alistgo-alist-web 3.56.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 (306) hide show
  1. package/README.md +34 -0
  2. package/dist/assets/2fa-46b8256b.js +1 -0
  3. package/dist/assets/2fa-legacy.398e8e78.js +1 -0
  4. package/dist/assets/About-e47182af.js +1 -0
  5. package/dist/assets/About-legacy.1289a3bb.js +1 -0
  6. package/dist/assets/AddLabelDialog-0c30515a.js +1 -0
  7. package/dist/assets/AddLabelDialog-legacy.cc57656a.js +1 -0
  8. package/dist/assets/AddOrEdit-1124188f.js +1 -0
  9. package/dist/assets/AddOrEdit-6d416fd2.js +1 -0
  10. package/dist/assets/AddOrEdit-9d27739a.js +1 -0
  11. package/dist/assets/AddOrEdit-e6bf2264.js +1 -0
  12. package/dist/assets/AddOrEdit-legacy.0f9dd018.js +1 -0
  13. package/dist/assets/AddOrEdit-legacy.73708fb8.js +1 -0
  14. package/dist/assets/AddOrEdit-legacy.8c9d1f76.js +1 -0
  15. package/dist/assets/AddOrEdit-legacy.abdbec5f.js +1 -0
  16. package/dist/assets/Common-972fe675.js +1 -0
  17. package/dist/assets/Common-legacy.d3b29529.js +1 -0
  18. package/dist/assets/Copy-27ccc5bb.js +1 -0
  19. package/dist/assets/Copy-legacy.4726f176.js +1 -0
  20. package/dist/assets/Decompress-487355e7.js +1 -0
  21. package/dist/assets/Decompress-legacy.c2c88fbd.js +1 -0
  22. package/dist/assets/DeletePopover-14667228.js +1 -0
  23. package/dist/assets/DeletePopover-legacy.eea88399.js +1 -0
  24. package/dist/assets/EditLabelDialog-e1c497f9.js +1 -0
  25. package/dist/assets/EditLabelDialog-legacy.4297e407.js +1 -0
  26. package/dist/assets/File-d8b1045a.js +8 -0
  27. package/dist/assets/File-legacy.42c11a63.js +1 -0
  28. package/dist/assets/Folder-015eb94d.js +179 -0
  29. package/dist/assets/Folder-6ee8584f.css +1 -0
  30. package/dist/assets/Folder-legacy.4311946a.js +29 -0
  31. package/dist/assets/FolderTree-6f54b0b0.js +1 -0
  32. package/dist/assets/FolderTree-legacy.eeec4df2.js +1 -0
  33. package/dist/assets/Grid-9188d13c.js +1 -0
  34. package/dist/assets/Grid-legacy.304bdbd6.js +1 -0
  35. package/dist/assets/GridItem-e11988da.js +1 -0
  36. package/dist/assets/GridItem-legacy.92e61601.js +1 -0
  37. package/dist/assets/ImageWithError-335988a8.js +1 -0
  38. package/dist/assets/ImageWithError-legacy.3b16de13.js +1 -0
  39. package/dist/assets/Images-12aaeeaa.js +1 -0
  40. package/dist/assets/Images-legacy.08b105c3.js +1 -0
  41. package/dist/assets/Layout-66d6a6fd.js +11 -0
  42. package/dist/assets/Layout-legacy.b2082e61.js +1 -0
  43. package/dist/assets/List-d289fe27.js +9 -0
  44. package/dist/assets/List-legacy.0b19a233.js +1 -0
  45. package/dist/assets/Messenger-b99aa3a0.js +1 -0
  46. package/dist/assets/Messenger-legacy.f7d5c274.js +1 -0
  47. package/dist/assets/Metas-73ad14ea.js +1 -0
  48. package/dist/assets/Metas-legacy.047fb1e9.js +1 -0
  49. package/dist/assets/Other-db3bfec1.js +1 -0
  50. package/dist/assets/Other-legacy.ca03d7c1.js +1 -0
  51. package/dist/assets/PackageDownload-8b8471d2.js +1 -0
  52. package/dist/assets/PackageDownload-legacy.6d567c0f.js +1 -0
  53. package/dist/assets/Paginator-6b8b297f.js +1 -0
  54. package/dist/assets/Paginator-legacy.0e75f264.js +1 -0
  55. package/dist/assets/Password-eb061964.js +1 -0
  56. package/dist/assets/Password-legacy.471d11cd.js +1 -0
  57. package/dist/assets/PermissionForm-4251595a.js +1 -0
  58. package/dist/assets/PermissionForm-legacy.90ad121a.js +1 -0
  59. package/dist/assets/Profile-3fecd1ab.js +1 -0
  60. package/dist/assets/Profile-legacy.8c4b70ea.js +1 -0
  61. package/dist/assets/ResponsiveGrid-35b6c8ed.js +1 -0
  62. package/dist/assets/ResponsiveGrid-legacy.6c0954c3.js +1 -0
  63. package/dist/assets/Role-a54a8031.js +1 -0
  64. package/dist/assets/Role-legacy.4362cd27.js +1 -0
  65. package/dist/assets/S3-3368841d.js +1 -0
  66. package/dist/assets/S3-legacy.88de8a46.js +1 -0
  67. package/dist/assets/S3Transition-0528c963.js +1 -0
  68. package/dist/assets/S3Transition-legacy.288c6def.js +1 -0
  69. package/dist/assets/SettingItem-b001fb21.js +1 -0
  70. package/dist/assets/SettingItem-legacy.30070d20.js +1 -0
  71. package/dist/assets/SourceHanSansCN-Bold-b5627435.woff2 +0 -0
  72. package/dist/assets/Storages-71961af9.js +1 -0
  73. package/dist/assets/Storages-legacy.62a6c6f5.js +1 -0
  74. package/dist/assets/Tag-28e6c753.js +1 -0
  75. package/dist/assets/Tag-legacy.02ba977c.js +1 -0
  76. package/dist/assets/Tasks-955b8122.js +1 -0
  77. package/dist/assets/Tasks-legacy.db2a67ab.js +1 -0
  78. package/dist/assets/TimesNewRoman-d9fb32eb.ttf +0 -0
  79. package/dist/assets/Upload-2acc2769.js +5 -0
  80. package/dist/assets/Upload-dac85921.js +1 -0
  81. package/dist/assets/Upload-legacy.2aae06b6.js +6 -0
  82. package/dist/assets/Upload-legacy.63a456fd.js +1 -0
  83. package/dist/assets/Users-d61fcb09.js +1 -0
  84. package/dist/assets/Users-legacy.351af943.js +1 -0
  85. package/dist/assets/Wether-efd806ad.js +1 -0
  86. package/dist/assets/Wether-legacy.99a49486.js +1 -0
  87. package/dist/assets/aliyun_office-f185e970.js +1 -0
  88. package/dist/assets/aliyun_office-legacy.bb247542.js +1 -0
  89. package/dist/assets/aliyun_video-fefe8145.js +1 -0
  90. package/dist/assets/aliyun_video-legacy.5de29048.js +1 -0
  91. package/dist/assets/archive-cd361e2c.js +1 -0
  92. package/dist/assets/archive-legacy.1dba1a02.js +1 -0
  93. package/dist/assets/asciinema-53412307.css +1 -0
  94. package/dist/assets/asciinema-9a29aaad.js +7 -0
  95. package/dist/assets/asciinema-legacy.f47a54ab.js +1 -0
  96. package/dist/assets/audio-43f4c02b.css +1 -0
  97. package/dist/assets/audio-4a4cbc3a.js +154 -0
  98. package/dist/assets/audio-legacy.e6590bf5.js +1 -0
  99. package/dist/assets/backup-restore-7a7d8f68.js +1 -0
  100. package/dist/assets/backup-restore-legacy.9aaed952.js +1 -0
  101. package/dist/assets/color-a58de010.js +1 -0
  102. package/dist/assets/color-legacy.24148ccb.js +1 -0
  103. package/dist/assets/entry-125255d4.js +9 -0
  104. package/dist/assets/entry-1f8750d3.js +5 -0
  105. package/dist/assets/entry-2dcf102b.js +5 -0
  106. package/dist/assets/entry-40c0efae.js +6 -0
  107. package/dist/assets/entry-89a5b151.js +5 -0
  108. package/dist/assets/entry-c149acf6.js +5 -0
  109. package/dist/assets/entry-c9079448.js +5 -0
  110. package/dist/assets/entry-e8ead902.js +7 -0
  111. package/dist/assets/entry-fe0e94b2.js +5 -0
  112. package/dist/assets/entry-ff0ec710.js +5 -0
  113. package/dist/assets/entry-legacy.0bf5e0ca.js +1 -0
  114. package/dist/assets/entry-legacy.1bea9f3a.js +1 -0
  115. package/dist/assets/entry-legacy.3cbf81df.js +1 -0
  116. package/dist/assets/entry-legacy.5e9cadea.js +1 -0
  117. package/dist/assets/entry-legacy.759fde7b.js +1 -0
  118. package/dist/assets/entry-legacy.bca06ca5.js +1 -0
  119. package/dist/assets/entry-legacy.c35a6372.js +1 -0
  120. package/dist/assets/entry-legacy.d14255c4.js +1 -0
  121. package/dist/assets/entry-legacy.e8ec9e72.js +1 -0
  122. package/dist/assets/entry-legacy.fea7f65d.js +1 -0
  123. package/dist/assets/helper-35b1dcfb.js +1 -0
  124. package/dist/assets/helper-edad9708.js +1 -0
  125. package/dist/assets/helper-legacy.a9f06abb.js +1 -0
  126. package/dist/assets/helper-legacy.f89e2639.js +1 -0
  127. package/dist/assets/hls-d6b9fc1a.js +52 -0
  128. package/dist/assets/hls-legacy.ae2e1dfe.js +8 -0
  129. package/dist/assets/html-d6918c57.js +1 -0
  130. package/dist/assets/html-legacy.3d2480dd.js +1 -0
  131. package/dist/assets/image-a16903d2.js +1 -0
  132. package/dist/assets/image-legacy.80edfdc1.js +1 -0
  133. package/dist/assets/index-13b290a7.js +103 -0
  134. package/dist/assets/index-4ce3d2a1.js +1 -0
  135. package/dist/assets/index-5b99d24c.js +263 -0
  136. package/dist/assets/index-69644529.js +1 -0
  137. package/dist/assets/index-8034ec29.js +14 -0
  138. package/dist/assets/index-864d4e91.js +1 -0
  139. package/dist/assets/index-870b387c.js +5 -0
  140. package/dist/assets/index-b206f97b.css +1 -0
  141. package/dist/assets/index-c1c6ff9d.js +1 -0
  142. package/dist/assets/index-d9416289.js +4 -0
  143. package/dist/assets/index-legacy.0f46aa15.js +1 -0
  144. package/dist/assets/index-legacy.43a11866.js +1 -0
  145. package/dist/assets/index-legacy.52c6160a.js +1 -0
  146. package/dist/assets/index-legacy.5b54d5e4.js +1 -0
  147. package/dist/assets/index-legacy.62c06d64.js +17 -0
  148. package/dist/assets/index-legacy.9842d021.js +1 -0
  149. package/dist/assets/index-legacy.d760057f.js +1 -0
  150. package/dist/assets/index-legacy.de03403a.js +18 -0
  151. package/dist/assets/index-legacy.e98cf2bb.js +1 -0
  152. package/dist/assets/indexes-7cc6998a.js +2 -0
  153. package/dist/assets/indexes-legacy.c057d4aa.js +1 -0
  154. package/dist/assets/ipa-99035991.js +1 -0
  155. package/dist/assets/ipa-legacy.5f9016d0.js +1 -0
  156. package/dist/assets/item_type-32dc6fdf.js +1 -0
  157. package/dist/assets/item_type-legacy.1b6076a1.js +1 -0
  158. package/dist/assets/lg-22b72ba5.ttf +0 -0
  159. package/dist/assets/lg-f2fe1c00.svg +54 -0
  160. package/dist/assets/lg-fefc5c0d.woff +0 -0
  161. package/dist/assets/loading-298ad3ff.gif +0 -0
  162. package/dist/assets/management-c5058b09.js +1 -0
  163. package/dist/assets/management-legacy.dac45ae8.js +1 -0
  164. package/dist/assets/markdown-68e1268c.js +1 -0
  165. package/dist/assets/markdown-legacy.345b4c89.js +1 -0
  166. package/dist/assets/markdown_with_word_wrap-223f2b9c.js +1 -0
  167. package/dist/assets/markdown_with_word_wrap-legacy.bfb81d65.js +1 -0
  168. package/dist/assets/mySession-94f62c14.js +1 -0
  169. package/dist/assets/mySession-legacy.1dc68111.js +1 -0
  170. package/dist/assets/offline_download-827377f8.js +1 -0
  171. package/dist/assets/offline_download-legacy.8be0325e.js +1 -0
  172. package/dist/assets/plist-a2abd5f6.js +1 -0
  173. package/dist/assets/plist-legacy.48a58efc.js +1 -0
  174. package/dist/assets/polyfills-legacy.4a227757.js +1 -0
  175. package/dist/assets/storage-class-1ac53f89.js +1 -0
  176. package/dist/assets/storage-class-legacy.7f6d9768.js +1 -0
  177. package/dist/assets/style-a6d16836.css +1 -0
  178. package/dist/assets/style-a91f2fe1.js +1 -0
  179. package/dist/assets/style-legacy.92f43969.js +1 -0
  180. package/dist/assets/subtitles-octopus-worker-62892886.wasm +0 -0
  181. package/dist/assets/subtitles-octopus-worker-f95f2186.js +1 -0
  182. package/dist/assets/text-editor-4cdde982.js +11 -0
  183. package/dist/assets/text-editor-legacy.c89be03c.js +1 -0
  184. package/dist/assets/ua-parser-5a8f43f2.js +1 -0
  185. package/dist/assets/ua-parser-legacy.5e4c06d6.js +1 -0
  186. package/dist/assets/url-64ba4724.js +1 -0
  187. package/dist/assets/url-legacy.bce70b79.js +1 -0
  188. package/dist/assets/useTitle-efd03a2a.js +1 -0
  189. package/dist/assets/useTitle-legacy.771fa6e1.js +1 -0
  190. package/dist/assets/video-e846152c.js +9 -0
  191. package/dist/assets/video-legacy.3e8def69.js +9 -0
  192. package/dist/assets/video360-7ff50eab.js +18 -0
  193. package/dist/assets/video360-f0192288.css +1 -0
  194. package/dist/assets/video360-legacy.53143d53.js +16 -0
  195. package/dist/assets/video_box-06f63821.js +18 -0
  196. package/dist/assets/video_box-legacy.95767478.js +8 -0
  197. package/dist/assets/webauthn-json.browser-ponyfill-f2f06d6e.js +1 -0
  198. package/dist/assets/webauthn-json.browser-ponyfill-legacy.1eb8248a.js +1 -0
  199. package/dist/images/config-active.png +0 -0
  200. package/dist/images/config-gray.png +0 -0
  201. package/dist/images/figplayer.webp +0 -0
  202. package/dist/images/fileball.webp +0 -0
  203. package/dist/images/filetypes/3GP.png +0 -0
  204. package/dist/images/filetypes/7z.png +0 -0
  205. package/dist/images/filetypes/AAC.png +0 -0
  206. package/dist/images/filetypes/AI-1.png +0 -0
  207. package/dist/images/filetypes/AI.png +0 -0
  208. package/dist/images/filetypes/AMR.png +0 -0
  209. package/dist/images/filetypes/ASE.png +0 -0
  210. package/dist/images/filetypes/ASP.png +0 -0
  211. package/dist/images/filetypes/ASPX.png +0 -0
  212. package/dist/images/filetypes/AU.png +0 -0
  213. package/dist/images/filetypes/AVI.png +0 -0
  214. package/dist/images/filetypes/BMP.png +0 -0
  215. package/dist/images/filetypes/C++.png +0 -0
  216. package/dist/images/filetypes/CAD.png +0 -0
  217. package/dist/images/filetypes/CFM.png +0 -0
  218. package/dist/images/filetypes/CGI.png +0 -0
  219. package/dist/images/filetypes/COM.png +0 -0
  220. package/dist/images/filetypes/CPP.png +0 -0
  221. package/dist/images/filetypes/CSS.png +0 -0
  222. package/dist/images/filetypes/CSV.png +0 -0
  223. package/dist/images/filetypes/DMG.png +0 -0
  224. package/dist/images/filetypes/DOC.png +0 -0
  225. package/dist/images/filetypes/DOCX.png +0 -0
  226. package/dist/images/filetypes/FLAC.png +0 -0
  227. package/dist/images/filetypes/GIF.png +0 -0
  228. package/dist/images/filetypes/GZ.png +0 -0
  229. package/dist/images/filetypes/ICO.png +0 -0
  230. package/dist/images/filetypes/ISO.png +0 -0
  231. package/dist/images/filetypes/JAVA.png +0 -0
  232. package/dist/images/filetypes/JPEG.png +0 -0
  233. package/dist/images/filetypes/JPG.png +0 -0
  234. package/dist/images/filetypes/JSON.png +0 -0
  235. package/dist/images/filetypes/MDF.png +0 -0
  236. package/dist/images/filetypes/MMF.png +0 -0
  237. package/dist/images/filetypes/MOV.png +0 -0
  238. package/dist/images/filetypes/MP3.png +0 -0
  239. package/dist/images/filetypes/MP4.png +0 -0
  240. package/dist/images/filetypes/MPG-1.png +0 -0
  241. package/dist/images/filetypes/MPG.png +0 -0
  242. package/dist/images/filetypes/MSI.png +0 -0
  243. package/dist/images/filetypes/OBJ.png +0 -0
  244. package/dist/images/filetypes/OTF.png +0 -0
  245. package/dist/images/filetypes/PDF.png +0 -0
  246. package/dist/images/filetypes/PHP.png +0 -0
  247. package/dist/images/filetypes/PKG.png +0 -0
  248. package/dist/images/filetypes/PNG-1.png +0 -0
  249. package/dist/images/filetypes/PNG.png +0 -0
  250. package/dist/images/filetypes/PPT-1.png +0 -0
  251. package/dist/images/filetypes/PPT.png +0 -0
  252. package/dist/images/filetypes/PPTX.png +0 -0
  253. package/dist/images/filetypes/PSD.png +0 -0
  254. package/dist/images/filetypes/PY.png +0 -0
  255. package/dist/images/filetypes/RM.png +0 -0
  256. package/dist/images/filetypes/RMVB.png +0 -0
  257. package/dist/images/filetypes/SQL.png +0 -0
  258. package/dist/images/filetypes/SRT.png +0 -0
  259. package/dist/images/filetypes/SVG.png +0 -0
  260. package/dist/images/filetypes/TAR.png +0 -0
  261. package/dist/images/filetypes/TIF-1.png +0 -0
  262. package/dist/images/filetypes/TIF.png +0 -0
  263. package/dist/images/filetypes/TIFF.png +0 -0
  264. package/dist/images/filetypes/TXT-1.png +0 -0
  265. package/dist/images/filetypes/TXT.png +0 -0
  266. package/dist/images/filetypes/WAV.png +0 -0
  267. package/dist/images/filetypes/WMA.png +0 -0
  268. package/dist/images/filetypes/WMV.png +0 -0
  269. package/dist/images/filetypes/WPS.png +0 -0
  270. package/dist/images/filetypes/XLS.png +0 -0
  271. package/dist/images/filetypes/XLSX.png +0 -0
  272. package/dist/images/filetypes/XML.png +0 -0
  273. package/dist/images/filetypes/ZIP.png +0 -0
  274. package/dist/images/filetypes/aif.png +0 -0
  275. package/dist/images/filetypes/apk.png +0 -0
  276. package/dist/images/filetypes/exe.png +0 -0
  277. package/dist/images/filetypes/htm.png +0 -0
  278. package/dist/images/filetypes/html.png +0 -0
  279. package/dist/images/filetypes/ipa.png +0 -0
  280. package/dist/images/filetypes/rar.png +0 -0
  281. package/dist/images/filetypes/rat.png +0 -0
  282. package/dist/images/filetypes/tipa.png +0 -0
  283. package/dist/images/iPlay.webp +0 -0
  284. package/dist/images/iina.webp +0 -0
  285. package/dist/images/infuse.webp +0 -0
  286. package/dist/images/mpv.webp +0 -0
  287. package/dist/images/mxplayer-pro.webp +0 -0
  288. package/dist/images/mxplayer.webp +0 -0
  289. package/dist/images/new_bg.png +0 -0
  290. package/dist/images/new_icon.png +0 -0
  291. package/dist/images/nplayer.webp +0 -0
  292. package/dist/images/omniplayer.webp +0 -0
  293. package/dist/images/permissions-active.png +0 -0
  294. package/dist/images/permissions-gray.png +0 -0
  295. package/dist/images/potplayer.webp +0 -0
  296. package/dist/images/role-active.png +0 -0
  297. package/dist/images/role-gray.png +0 -0
  298. package/dist/images/tag-active.png +0 -0
  299. package/dist/images/tag-gray.png +0 -0
  300. package/dist/images/vlc.webp +0 -0
  301. package/dist/index.html +81 -0
  302. package/dist/static/epub.js/viewer.html +467 -0
  303. package/dist/static/manifest.json +13 -0
  304. package/dist/streamer/mitm.html +186 -0
  305. package/dist/streamer/sw.js +141 -0
  306. package/package.json +104 -0
@@ -0,0 +1,103 @@
1
+ var L6=Object.defineProperty;var P6=(e,t,n)=>t in e?L6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var rf=(e,t,n)=>(P6(e,typeof t!="symbol"?t+"":t,n),n);function eB(){import("data:text/javascript,")}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();const Ye={};function yi(e){Ye.context=e}const D6=(e,t)=>e===t,ea=Symbol("solid-proxy"),Du=Symbol("solid-track"),v1={equals:D6};let eo=null,o5=d5;const Wo={},yr=1,ro=2,a5={owned:null,cleanups:null,context:null,owner:null},[$6,of]=Me(!1);var nt=null;let Ce=null,jt=null,Ds=null,Pn=null,_n=null,$u=0;function Ci(e,t){const n=jt,r=nt,i=e.length===0,o=i?a5:{owned:null,cleanups:null,context:null,owner:t||r},a=i?e:()=>e(()=>Pa(o));nt=o,jt=null;try{return Ga(a,!0)}finally{jt=n,nt=r}}function Me(e,t){t=t?Object.assign({},v1,t):v1;const n={value:e,observers:null,observerSlots:null,pending:Wo,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(Ce&&Ce.running&&Ce.sources.has(n)?i=i(n.pending!==Wo?n.pending:n.tValue):i=i(n.pending!==Wo?n.pending:n.value)),Fu(n,i));return[u5.bind(n),r]}function Qs(e,t,n){const r=G1(e,t,!0,yr);ja(r)}function Dn(e,t,n){const r=G1(e,t,!1,yr);ja(r)}function tn(e,t,n){o5=G6;const r=G1(e,t,!1,yr),i=na&&dl(nt,na.id);i&&(r.suspense=i),r.user=!0,_n?_n.push(r):ja(r)}function Xe(e,t,n){n=n?Object.assign({},v1,n):v1;const r=G1(e,t,!0,0);return r.pending=Wo,r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,ja(r),u5.bind(r)}function s5(e,t,n){arguments.length===2?typeof t=="object"&&(n=t,t=e,e=!0):arguments.length===1&&(t=e,e=!0),n||(n={});const r=new Set,[i,o]=Me(n.initialValue),[a,s]=Me(void 0,{equals:!1}),[l,c]=Me(!1),[u,f]=Me();let g,d=null,h=null,m=null,p=!1,b=!1,E="initialValue"in n,v=typeof e=="function"&&Xe(e);Ye.context&&(m=`${Ye.context.id}${Ye.context.count++}`,Ye.load&&(h=Ye.load(m)));function N(O,M,j,H){return d===O&&(d=null,E=!0,h&&(O===h||M===h)&&n.onHydrated&&queueMicrotask(()=>n.onHydrated(H,{value:M})),h=null,f(g=j),Ce&&O&&p?(Ce.promises.delete(O),p=!1,Ga(()=>{Ce.running=!0,Ce.promises.size||(_n.push.apply(_n,Ce.effects),Ce.effects=[]),I(M)},!1)):I(M)),M}function I(O){ta(()=>{o(()=>O),c(!1);for(const M of r.keys())M.decrement();r.clear()})}function S(){const O=na&&dl(nt,na.id),M=i();if(g)throw g;return jt&&!jt.user&&O&&Qs(()=>{a(),d&&(O.resolved&&Ce?Ce.promises.add(d):r.has(O)||(O.increment(),r.add(O)))}),M}function y(O=!0){if(O&&b)return;b=!1,f(g=void 0);const M=v?v():e;if(p=Ce&&Ce.running,M==null||M===!1){N(d,mn(i));return}Ce&&d&&Ce.promises.delete(d);const j=h||mn(()=>t(M,{value:i(),refetching:O}));return typeof j!="object"||!("then"in j)?(N(d,j),j):(d=j,b=!0,queueMicrotask(()=>b=!1),ta(()=>{c(!0),s()}),j.then(H=>N(j,H,void 0,M),H=>N(j,H,H)))}return Object.defineProperties(S,{loading:{get(){return l()}},error:{get(){return u()}},latest:{get(){if(!E)return S();if(g)throw g;return i()}}}),v?Qs(()=>y(!1)):y(!1),[S,{refetch:y,mutate:o}]}function ta(e){if(Ds)return e();let t;const n=Ds=[];try{t=e()}finally{Ds=null}return Ga(()=>{for(let r=0;r<n.length;r+=1){const i=n[r];if(i.pending!==Wo){const o=i.pending;i.pending=Wo,Fu(i,o)}}},!1),t}function mn(e){let t,n=jt;return jt=null,t=e(),jt=n,t}function wi(e,t,n){const r=Array.isArray(e);let i,o=n&&n.defer;return a=>{let s;if(r){s=Array(e.length);for(let c=0;c<e.length;c++)s[c]=e[c]()}else s=e();if(o){o=!1;return}const l=mn(()=>t(s,i,a));return i=s,l}}function Gn(e){tn(()=>mn(e))}function Dt(e){return nt===null||(nt.cleanups===null?nt.cleanups=[e]:nt.cleanups.push(e)),e}function B6(e){eo||(eo=Symbol("error")),nt===null||(nt.context===null?nt.context={[eo]:[e]}:nt.context[eo]?nt.context[eo].push(e):nt.context[eo]=[e])}function l5(){return jt}function Bu(){return nt}function c5(e,t){const n=nt;nt=e;try{return Ga(t,!0)}finally{nt=n}}function F6(e){if(Ce&&Ce.running)return e(),Ce.done;const t=jt,n=nt;return Promise.resolve().then(()=>{jt=t,nt=n;let r;return na&&(r=Ce||(Ce={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),r.done||(r.done=new Promise(i=>r.resolve=i)),r.running=!0),ta(e),jt=nt=null,r?r.done:void 0})}function H6(){return[$6,F6]}function z6(e){_n.push.apply(_n,e),e.length=0}function Ct(e){const t=Symbol("context");return{id:t,Provider:K6(t),defaultValue:e}}function $t(e){let t;return(t=dl(nt,e.id))!==void 0?t:e.defaultValue}function Gr(e){const t=Xe(e);return Xe(()=>q0(t()))}let na;function U6(){return na||(na=Ct({}))}function u5(){const e=Ce&&Ce.running;if(this.sources&&(!e&&this.state||e&&this.tState)){const t=Pn;Pn=null,!e&&this.state===yr||e&&this.tState===yr?ja(this):E1(this),Pn=t}if(jt){const t=this.observers?this.observers.length:0;jt.sources?(jt.sources.push(this),jt.sourceSlots.push(t)):(jt.sources=[this],jt.sourceSlots=[t]),this.observers?(this.observers.push(jt),this.observerSlots.push(jt.sources.length-1)):(this.observers=[jt],this.observerSlots=[jt.sources.length-1])}return e&&Ce.sources.has(this)?this.tValue:this.value}function Fu(e,t,n){if(Ds)return e.pending===Wo&&Ds.push(e),e.pending=t,t;if(e.comparator){if(Ce&&Ce.running&&Ce.sources.has(e)){if(e.comparator(e.tValue,t))return t}else if(e.comparator(e.value,t))return t}let r=!1;return Ce?(r=Ce.running,(r||!n&&Ce.sources.has(e))&&(Ce.sources.add(e),e.tValue=t),r||(e.value=t)):e.value=t,e.observers&&e.observers.length&&Ga(()=>{for(let i=0;i<e.observers.length;i+=1){const o=e.observers[i];r&&Ce.disposed.has(o)||((r&&!o.tState||!r&&!o.state)&&(o.pure?Pn.push(o):_n.push(o),o.observers&&f5(o)),r?o.tState=yr:o.state=yr)}if(Pn.length>1e6)throw Pn=[],new Error},!1),t}function ja(e){if(!e.fn)return;Pa(e);const t=nt,n=jt,r=$u;jt=nt=e,af(e,Ce&&Ce.running&&Ce.sources.has(e)?e.tValue:e.value,r),Ce&&!Ce.running&&Ce.sources.has(e)&&queueMicrotask(()=>{Ga(()=>{Ce&&(Ce.running=!0),af(e,e.tValue,r)},!1)}),jt=n,nt=t}function af(e,t,n){let r;try{r=e.fn(t)}catch(i){g5(i)}(!e.updatedAt||e.updatedAt<=n)&&(e.observers&&e.observers.length?Fu(e,r,!0):Ce&&Ce.running&&e.pure?(Ce.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function G1(e,t,n,r=yr,i){const o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:nt,context:null,pure:n};return Ce&&Ce.running&&(o.state=0,o.tState=r),nt===null||nt!==a5&&(Ce&&Ce.running&&nt.pure?nt.tOwned?nt.tOwned.push(o):nt.tOwned=[o]:nt.owned?nt.owned.push(o):nt.owned=[o]),o}function $s(e){const t=Ce&&Ce.running;if(!t&&e.state===0||t&&e.tState===0)return;if(!t&&e.state===ro||t&&e.tState===ro)return E1(e);if(e.suspense&&mn(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<$u);){if(t&&Ce.disposed.has(e))return;(!t&&e.state||t&&e.tState)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let i=e,o=n[r+1];for(;(i=i.owner)&&i!==o;)if(Ce.disposed.has(i))return}if(!t&&e.state===yr||t&&e.tState===yr)ja(e);else if(!t&&e.state===ro||t&&e.tState===ro){const i=Pn;Pn=null,E1(e,n[0]),Pn=i}}}function Ga(e,t){if(Pn)return e();let n=!1;t||(Pn=[]),_n?n=!0:_n=[],$u++;try{const r=e();return j6(n),r}catch(r){Pn||(_n=null),g5(r)}}function j6(e){if(Pn&&(d5(Pn),Pn=null),e)return;let t;if(Ce&&Ce.running){if(Ce.promises.size||Ce.queue.size){Ce.running=!1,Ce.effects.push.apply(Ce.effects,_n),_n=null,of(!0);return}const n=Ce.sources,r=Ce.disposed;t=Ce.resolve;for(const i of _n)"tState"in i&&(i.state=i.tState),delete i.tState;Ce=null,ta(()=>{for(const i of r)Pa(i);for(const i of n){if(i.value=i.tValue,i.owned)for(let o=0,a=i.owned.length;o<a;o++)Pa(i.owned[o]);i.tOwned&&(i.owned=i.tOwned),delete i.tValue,delete i.tOwned,i.tState=0}of(!1)})}_n.length?ta(()=>{o5(_n),_n=null}):_n=null,t&&t()}function d5(e){for(let t=0;t<e.length;t++)$s(e[t])}function G6(e){let t,n=0;for(t=0;t<e.length;t++){const i=e[t];i.user?e[n++]=i:$s(i)}Ye.context&&yi();const r=e.length;for(t=0;t<n;t++)$s(e[t]);for(t=r;t<e.length;t++)$s(e[t])}function E1(e,t){const n=Ce&&Ce.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){const i=e.sources[r];i.sources&&(!n&&i.state===yr||n&&i.tState===yr?i!==t&&$s(i):(!n&&i.state===ro||n&&i.tState===ro)&&E1(i,t))}}function f5(e){const t=Ce&&Ce.running;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];(!t&&!r.state||t&&!r.tState)&&(t?r.tState=ro:r.state=ro,r.pure?Pn.push(r):_n.push(r),r.observers&&f5(r))}}function Pa(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){const o=i.pop(),a=n.observerSlots.pop();r<i.length&&(o.sourceSlots[a]=r,i[r]=o,n.observerSlots[r]=a)}}if(Ce&&Ce.running&&e.pure){if(e.tOwned){for(t=0;t<e.tOwned.length;t++)Pa(e.tOwned[t]);delete e.tOwned}h5(e,!0)}else if(e.owned){for(t=0;t<e.owned.length;t++)Pa(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}Ce&&Ce.running?e.tState=0:e.state=0,e.context=null}function h5(e,t){if(t||(e.tState=0,Ce.disposed.add(e)),e.owned)for(let n=0;n<e.owned.length;n++)h5(e.owned[n])}function g5(e){const t=eo&&dl(nt,eo);if(!t)throw e;for(const n of t)n(e)}function dl(e,t){return e?e.context&&e.context[t]!==void 0?e.context[t]:dl(e.owner,t):void 0}function q0(e){if(typeof e=="function"&&!e.length)return q0(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=q0(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function K6(e){return function(n){let r;return Qs(()=>r=mn(()=>(nt.context={[e]:n.value},Gr(()=>n.children)))),r}}const Y0=Symbol("fallback");function T1(e){for(let t=0;t<e.length;t++)e[t]()}function W6(e,t,n={}){let r=[],i=[],o=[],a=0,s=t.length>1?[]:null;return Dt(()=>T1(o)),()=>{let l=e()||[],c,u;return l[Du],mn(()=>{let g=l.length,d,h,m,p,b,E,v,N,I;if(g===0)a!==0&&(T1(o),o=[],r=[],i=[],a=0,s&&(s=[])),n.fallback&&(r=[Y0],i[0]=Ci(S=>(o[0]=S,n.fallback())),a=1);else if(a===0){for(i=new Array(g),u=0;u<g;u++)r[u]=l[u],i[u]=Ci(f);a=g}else{for(m=new Array(g),p=new Array(g),s&&(b=new Array(g)),E=0,v=Math.min(a,g);E<v&&r[E]===l[E];E++);for(v=a-1,N=g-1;v>=E&&N>=E&&r[v]===l[N];v--,N--)m[N]=i[v],p[N]=o[v],s&&(b[N]=s[v]);for(d=new Map,h=new Array(N+1),u=N;u>=E;u--)I=l[u],c=d.get(I),h[u]=c===void 0?-1:c,d.set(I,u);for(c=E;c<=v;c++)I=r[c],u=d.get(I),u!==void 0&&u!==-1?(m[u]=i[c],p[u]=o[c],s&&(b[u]=s[c]),u=h[u],d.set(I,u)):o[c]();for(u=E;u<g;u++)u in m?(i[u]=m[u],o[u]=p[u],s&&(s[u]=b[u],s[u](u))):i[u]=Ci(f);i=i.slice(0,a=g),r=l.slice(0)}return i});function f(g){if(o[u]=g,s){const[d,h]=Me(u);return s[u]=h,t(l[u],d)}return t(l[u])}}}function V6(e,t,n={}){let r=[],i=[],o=[],a=[],s=0,l;return Dt(()=>T1(o)),()=>{const c=e()||[];return c[Du],mn(()=>{if(c.length===0)return s!==0&&(T1(o),o=[],r=[],i=[],s=0,a=[]),n.fallback&&(r=[Y0],i[0]=Ci(f=>(o[0]=f,n.fallback())),s=1),i;for(r[0]===Y0&&(o[0](),o=[],r=[],i=[],s=0),l=0;l<c.length;l++)l<r.length&&r[l]!==c[l]?a[l](()=>c[l]):l>=r.length&&(i[l]=Ci(u));for(;l<r.length;l++)o[l]();return s=a.length=o.length=c.length,r=c.slice(0),i=i.slice(0,s)});function u(f){o[l]=f;const[g,d]=Me(c[l]);return a[l]=d,t(g,l)}}}function T(e,t){return mn(()=>e(t||{}))}function Dl(){return!0}const m5={get(e,t,n){return t===ea?n:e.get(t)},has(e,t){return e.has(t)},set:Dl,deleteProperty:Dl,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Dl,deleteProperty:Dl}},ownKeys(e){return e.keys()}};function qc(e){return(e=typeof e=="function"?e():e)==null?{}:e}function K(...e){return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){const r=qc(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in qc(e[n]))return!0;return!1},keys(){const t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(qc(e[n])));return[...new Set(t)]}},m5)}function se(e,...t){const n=new Set(t.flat()),r=Object.getOwnPropertyDescriptors(e),i=t.map(o=>{const a={};for(let s=0;s<o.length;s++){const l=o[s];Object.defineProperty(a,l,r[l]?r[l]:{get(){return e[l]},set(){return!0}})}return a});return i.push(new Proxy({get(o){return n.has(o)?void 0:e[o]},has(o){return n.has(o)?!1:o in e},keys(){return Object.keys(e).filter(o=>!n.has(o))}},m5)),i}function K1(e){let t,n;const r=i=>{const o=Ye.context;if(o){const[s,l]=Me();(n||(n=e())).then(c=>{yi(o),l(()=>c.default),yi()}),t=s}else if(t){const s=t();if(s)return s(i)}else{const[s]=s5(()=>(n||(n=e())).then(l=>l.default));t=s}let a;return Xe(()=>(a=t())&&mn(()=>{if(!o)return a(i);const s=Ye.context;yi(o);const l=a(i);return yi(s),l}))};return r.preload=()=>n||((n=e()).then(i=>t=()=>i.default),n),r}let q6=0;function lr(){const e=Ye.context;return e?`${e.id}${e.count++}`:`cl-${q6++}`}function Ka(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Xe(W6(()=>e.each,e.children,t||void 0))}function tB(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Xe(V6(()=>e.each,e.children,t||void 0))}function Ae(e){let t=!1;const n=Xe(()=>e.when,void 0,{equals:(r,i)=>t?r===i:!r==!i});return Xe(()=>{const r=n();if(r){const i=e.children;return(t=typeof i=="function"&&i.length>0)?mn(()=>i(r)):i}return e.fallback})}function W1(e){let t=!1;const n=Gr(()=>e.children),r=Xe(()=>{let i=n();Array.isArray(i)||(i=[i]);for(let o=0;o<i.length;o++){const a=i[o].when;if(a)return[o,a,i[o]]}return[-1]},void 0,{equals:(i,o)=>i[0]===o[0]&&(t?i[1]===o[1]:!i[1]==!o[1])&&i[2]===o[2]});return Xe(()=>{const[i,o,a]=r();if(i<0)return e.fallback;const s=a.children;return(t=typeof s=="function"&&s.length>0)?mn(()=>s(o)):s})}function Ai(e){return e}let Sa;const As={};function Y6(){Sa&&[...Sa].forEach(e=>e(As))}function X6(e){let t=As;Ye.context&&Ye.load&&(t=Ye.load(Ye.context.id+Ye.context.count)||As);const[n,r]=Me(t);return Sa||(Sa=new Set),Sa.add(r),Dt(()=>Sa.delete(r)),Xe(()=>{let i;if((i=n())!==As){const o=e.fallback;return typeof o=="function"&&o.length?mn(()=>o(i,()=>r(As))):o}return B6(r),e.children})}const Q6=Ct();function Z6(e){let t=0,n,r,i,o,a,s;const[l,c]=Me(!1),u=U6(),f={increment:()=>{++t===1&&c(!0)},decrement:()=>{--t===0&&c(!1)},inFallback:l,effects:[],resolved:!1},g=Bu();if(Ye.context&&Ye.load){const m=Ye.context.id+Ye.context.count;if(o=Ye.load(m),o){(typeof o!="object"||!("then"in o))&&(o=Promise.resolve(o));const[p,b]=Me(void 0,{equals:!1});a=p,o.then(E=>{if((s=E)||Ye.done)return b();Ye.gather(m),yi(i),b(),yi()})}else o===null&&Ye.gather(m)}const d=$t(Q6);d&&([n,r]=d.register(f.inFallback));let h;return Dt(()=>h&&h()),T(u.Provider,{value:f,get children(){return Xe(()=>{if(s)throw s;if(i=Ye.context,a)return a(),a=void 0;i&&o===void 0&&yi();const m=Xe(()=>e.children);return Xe(()=>{const p=f.inFallback(),b=n?n():!0,E=r?r():!0;if(h&&h(),(!p||o!==void 0)&&b)return f.resolved=!0,i=o=void 0,z6(f.effects),m();if(E)return Ci(v=>(h=v,i&&(yi({id:i.id+"f",count:0}),i=void 0),e.fallback),g)})})}})}const J6=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],e8=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...J6]),t8=new Set(["innerHTML","textContent","innerText","children"]),n8={className:"class",htmlFor:"for"},sf={class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"},r8=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),i8=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),o8={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function Sr(e,t){return Xe(e,void 0,t?void 0:{equals:t})}function a8(e,t,n){let r=n.length,i=t.length,o=r,a=0,s=0,l=t[i-1].nextSibling,c=null;for(;a<i||s<o;){if(t[a]===n[s]){a++,s++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===a){const u=o<r?s?n[s-1].nextSibling:n[o-s]:l;for(;s<o;)e.insertBefore(n[s++],u)}else if(o===s)for(;a<i;)(!c||!c.has(t[a]))&&t[a].remove(),a++;else if(t[a]===n[o-1]&&n[s]===t[i-1]){const u=t[--i].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--o],u),t[i]=n[o]}else{if(!c){c=new Map;let f=s;for(;f<o;)c.set(n[f],f++)}const u=c.get(t[a]);if(u!=null)if(s<u&&u<o){let f=a,g=1,d;for(;++f<i&&f<o&&!((d=c.get(t[f]))==null||d!==u+g);)g++;if(g>u-s){const h=t[a];for(;s<u;)e.insertBefore(n[s++],h)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}}const lf="_$DX_DELEGATE";function s8(e,t,n){let r;return Ci(i=>{r=i,t===document?e():jr(t,e(),t.firstChild?null:void 0,n)}),()=>{r(),t.textContent=""}}function Bt(e,t,n){const r=document.createElement("template");r.innerHTML=e;let i=r.content.firstChild;return n&&(i=i.firstChild),i}function l8(e,t=window.document){const n=t[lf]||(t[lf]=new Set);for(let r=0,i=e.length;r<i;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,m8))}}function at(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function c8(e,t,n,r){r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}function p5(e,t){t==null?e.removeAttribute("class"):e.className=t}function u8(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const i=n[0];e.addEventListener(t,n[0]=o=>i.call(e,n[1],o))}else e.addEventListener(t,n)}function d8(e,t,n={}){const r=Object.keys(t||{}),i=Object.keys(n);let o,a;for(o=0,a=i.length;o<a;o++){const s=i[o];!s||s==="undefined"||t[s]||(cf(e,s,!1),delete n[s])}for(o=0,a=r.length;o<a;o++){const s=r[o],l=!!t[s];!s||s==="undefined"||n[s]===l||!l||(cf(e,s,!0),n[s]=l)}return n}function x5(e,t,n={}){const r=e.style,i=typeof n=="string";if(t==null&&i||typeof t=="string")return r.cssText=t;i&&(r.cssText=void 0,n={}),t||(t={});let o,a;for(a in n)t[a]==null&&r.removeProperty(a),delete n[a];for(a in t)o=t[a],o!==n[a]&&(r.setProperty(a,o),n[a]=o);return n}function y1(e,t,n,r){typeof t=="function"?Dn(i=>df(e,t(),i,n,r)):df(e,t,void 0,n,r)}function jr(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return Da(e,t,r,n);Dn(i=>Da(e,t(),i,n),r)}function f8(e,t,n,r,i={},o=!1){t||(t={});for(const a in i)if(!(a in t)){if(a==="children")continue;uf(e,a,null,i[a],n,o)}for(const a in t){if(a==="children"){r||Da(e,t.children);continue}const s=t[a];i[a]=uf(e,a,s,i[a],n,o)}}function h8(e){let t,n;return!Ye.context||!(t=Ye.registry.get(n=p8()))?e.cloneNode(!0):(Ye.completed&&Ye.completed.add(t),Ye.registry.delete(n),t)}function g8(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function cf(e,t,n){const r=t.trim().split(/\s+/);for(let i=0,o=r.length;i<o;i++)e.classList.toggle(r[i],n)}function uf(e,t,n,r,i,o){let a,s,l;if(t==="style")return x5(e,n,r);if(t==="classList")return d8(e,n,r);if(n===r)return r;if(t==="ref")o||n(e);else if(t.slice(0,3)==="on:"){const c=t.slice(3);r&&e.removeEventListener(c,r),n&&e.addEventListener(c,n)}else if(t.slice(0,10)==="oncapture:"){const c=t.slice(10);r&&e.removeEventListener(c,r,!0),n&&e.addEventListener(c,n,!0)}else if(t.slice(0,2)==="on"){const c=t.slice(2).toLowerCase(),u=r8.has(c);if(!u&&r){const f=Array.isArray(r)?r[0]:r;e.removeEventListener(c,f)}(u||n)&&(u8(e,c,n,u),u&&l8([c]))}else if((l=t8.has(t))||!i&&(sf[t]||(s=e8.has(t)))||(a=e.nodeName.includes("-")))t==="class"||t==="className"?p5(e,n):a&&!s&&!l?e[g8(t)]=n:e[sf[t]||t]=n;else{const c=i&&t.indexOf(":")>-1&&o8[t.split(":")[0]];c?c8(e,c,t,n):at(e,n8[t]||t,n)}return n}function m8(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),Ye.registry&&!Ye.done&&(Ye.done=!0,document.querySelectorAll("[id^=pl-]").forEach(r=>r.remove()));n!==null;){const r=n[t];if(r&&!n.disabled){const i=n[`${t}Data`];if(i!==void 0?r.call(n,i,e):r.call(n,e),e.cancelBubble)return}n=n.host&&n.host!==n&&n.host instanceof Node?n.host:n.parentNode}}function df(e,t,n={},r,i){return t||(t={}),!i&&"children"in t&&Dn(()=>n.children=Da(e,t.children,n.children)),t.ref&&t.ref(e),Dn(()=>f8(e,t,r,!0,n,!0)),n}function Da(e,t,n,r,i){for(Ye.context&&!n&&(n=[...e.childNodes]);typeof n=="function";)n=n();if(t===n)return n;const o=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,o==="string"||o==="number"){if(Ye.context)return n;if(o==="number"&&(t=t.toString()),a){let s=n[0];s&&s.nodeType===3?s.data=t:s=document.createTextNode(t),n=ma(e,n,r,s)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||o==="boolean"){if(Ye.context)return n;n=ma(e,n,r)}else{if(o==="function")return Dn(()=>{let s=t();for(;typeof s=="function";)s=s();n=Da(e,s,n,r)}),()=>n;if(Array.isArray(t)){const s=[],l=n&&Array.isArray(n);if(X0(s,t,n,i))return Dn(()=>n=Da(e,s,n,r,!0)),()=>n;if(Ye.context){for(let c=0;c<s.length;c++)if(s[c].parentNode)return n=s}if(s.length===0){if(n=ma(e,n,r),a)return n}else l?n.length===0?ff(e,s,r):a8(e,n,s):(n&&ma(e),ff(e,s));n=s}else if(t instanceof Node){if(Ye.context&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=ma(e,n,r,t);ma(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function X0(e,t,n,r){let i=!1;for(let o=0,a=t.length;o<a;o++){let s=t[o],l=n&&n[o];if(s instanceof Node)e.push(s);else if(!(s==null||s===!0||s===!1))if(Array.isArray(s))i=X0(e,s,l)||i;else if(typeof s=="function")if(r){for(;typeof s=="function";)s=s();i=X0(e,Array.isArray(s)?s:[s],l)||i}else e.push(s),i=!0;else{const c=String(s);l&&l.nodeType===3&&l.data===c?e.push(l):e.push(document.createTextNode(c))}}return i}function ff(e,t,n){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function ma(e,t,n,r){if(n===void 0)return e.textContent="";const i=r||document.createTextNode("");if(t.length){let o=!1;for(let a=t.length-1;a>=0;a--){const s=t[a];if(i!==s){const l=s.parentNode===e;!o&&!a?l?e.replaceChild(i,s):e.insertBefore(i,n):l&&s.remove()}else o=!0}}else e.insertBefore(i,n);return[i]}function p8(){const e=Ye.context;return`${e.id}${e.count++}`}const x8="http://www.w3.org/2000/svg";function b5(e,t=!1){return t?document.createElementNS(x8,e):document.createElement(e)}function go(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function i(){if(Ye.context){const[o,a]=Me(!1);return queueMicrotask(()=>a(!0)),()=>o()&&e.children}else return()=>e.children}if(r instanceof HTMLHeadElement){const[o,a]=Me(!1),s=()=>a(!0);Ci(l=>jr(r,()=>o()?l():i()(),null)),Dt(()=>{Ye.context?queueMicrotask(s):s()})}else{const o=b5(e.isSVG?"g":"div",e.isSVG),a=t&&o.attachShadow?o.attachShadow({mode:"open"}):o;Object.defineProperty(o,"host",{get(){return n.parentNode}}),jr(a,i()),r.appendChild(o),e.ref&&e.ref(o),Dt(()=>r.removeChild(o))}return n}function Hu(e){const[t,n]=se(e,["component"]),r=Xe(()=>t.component);return Xe(()=>{const i=r();switch(typeof i){case"function":return mn(()=>i(n));case"string":const o=i8.has(i),a=Ye.context?h8():b5(i,o);return y1(a,n,o),a}})}function b8(e,t,n){return e.addEventListener(t,n),()=>e.removeEventListener(t,n)}function _8([e,t],n,r){return[n?()=>n(e()):e,r?i=>t(r(i)):t]}function v8(e){try{return document.querySelector(e)}catch{return null}}function E8(e,t){const n=v8(`#${e}`);n?n.scrollIntoView():t&&window.scrollTo(0,0)}function T8(e,t,n,r){let i=!1;const o=s=>typeof s=="string"?{value:s}:s,a=_8(Me(o(e()),{equals:(s,l)=>s.value===l.value}),void 0,s=>(!i&&t(s),s));return n&&Dt(n((s=e())=>{i=!0,a[1](o(s)),i=!1})),{signal:a,utils:r}}function y8(e){if(e){if(Array.isArray(e))return{signal:e}}else return{signal:Me({value:""})};return e}function S8(){return T8(()=>({value:window.location.pathname+window.location.search+window.location.hash,state:history.state}),({value:e,replace:t,scroll:n,state:r})=>{t?window.history.replaceState(r,"",e):window.history.pushState(r,"",e),E8(window.location.hash.slice(1),n)},e=>b8(window,"popstate",()=>e()),{go:e=>window.history.go(e)})}const C8=/^(?:[a-z0-9]+:)?\/\//i,w8=/^\/+|\/+$/g;function Bs(e,t=!1){const n=e.replace(w8,"");return n?t||/^[?#]/.test(n)?n:"/"+n:""}function l1(e,t,n){if(C8.test(t))return;const r=Bs(e),i=n&&Bs(n);let o="";return!i||t.startsWith("/")?o=r:i.toLowerCase().indexOf(r.toLowerCase())!==0?o=r+i:o=i,(o||"/")+Bs(t,!o)}function A8(e,t){if(e==null)throw new Error(t);return e}function _5(e,t){return Bs(e).replace(/\/*(\*.*)?$/g,"")+Bs(t)}function k8(e){const t={};return e.searchParams.forEach((n,r)=>{t[r]=n}),t}function Fs(e,t){return decodeURIComponent(t?e.replace(/\+/g," "):e)}function O8(e,t){const[n,r]=e.split("/*",2),i=n.split("/").filter(Boolean),o=i.length;return a=>{const s=a.split("/").filter(Boolean),l=s.length-o;if(l<0||l>0&&r===void 0&&!t)return null;const c={path:o?"":"/",params:{}};for(let u=0;u<o;u++){const f=i[u],g=s[u];if(f[0]===":")c.params[f.slice(1)]=g;else if(f.localeCompare(g,void 0,{sensitivity:"base"})!==0)return null;c.path+=`/${g}`}return r&&(c.params[r]=l?s.slice(-l).join("/"):""),c}}function N8(e){const[t,n]=e.pattern.split("/*",2),r=t.split("/").filter(Boolean);return r.reduce((i,o)=>i+(o.startsWith(":")?2:3),r.length-(n===void 0?0:1))}function v5(e){const t=new Map,n=Bu();return new Proxy({},{get(r,i){return t.has(i)||c5(n,()=>t.set(i,Xe(()=>e()[i]))),t.get(i)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())}})}function I8(e,t){const n=new URLSearchParams(e);Object.entries(t).forEach(([i,o])=>{o==null||o===""?n.delete(i):n.set(i,String(o))});const r=n.toString();return r?`?${r}`:""}function E5(e){let t=/(\/?\:[^\/]+)\?/.exec(e);if(!t)return[e];let n=e.slice(0,t.index),r=e.slice(t.index+t[0].length);const i=[n,n+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(r);)i.push(n+=t[1]),r=r.slice(t[0].length);return E5(r).reduce((o,a)=>[...o,...i.map(s=>s+a)],[])}const R8=100,T5=Ct(),V1=Ct(),Wa=()=>A8($t(T5),"Make sure your app is wrapped in a <Router />");let Zs;const q1=()=>Zs||$t(V1)||Wa().base,M8=e=>{const t=q1();return Xe(()=>t.resolvePath(e()))},L8=e=>{const t=Wa();return Xe(()=>{const n=e();return n!==void 0?t.renderPath(n):n})},P8=()=>Wa().navigatorFactory(),D8=()=>Wa().location,$8=()=>Wa().isRouting,B8=()=>q1().params;function F8(e,t="",n){const{component:r,data:i,children:o}=e,a=!o||Array.isArray(o)&&!o.length,s={key:e,element:r?()=>T(r,{}):()=>{const{element:l}=e;return l===void 0&&n?T(n,{}):l},preload:e.component?r.preload:e.preload,data:i};return y5(e.path).reduce((l,c)=>{for(const u of E5(c)){const f=_5(t,u),g=a?f:f.split("/*",1)[0];l.push({...s,originalPath:u,pattern:g,matcher:O8(g,!a)})}return l},[])}function H8(e,t=0){return{routes:e,score:N8(e[e.length-1])*1e4-t,matcher(n){const r=[];for(let i=e.length-1;i>=0;i--){const o=e[i],a=o.matcher(n);if(!a)return null;r.unshift({...a,route:o})}return r}}}function y5(e){return Array.isArray(e)?e:[e]}function S5(e,t="",n,r=[],i=[]){const o=y5(e);for(let a=0,s=o.length;a<s;a++){const l=o[a];if(l&&typeof l=="object"&&l.hasOwnProperty("path")){const c=F8(l,t,n);for(const u of c){if(r.push(u),l.children)S5(l.children,u.pattern,n,r,i);else{const f=H8([...r],i.length);i.push(f)}r.pop()}}}return r.length?i:i.sort((a,s)=>s.score-a.score)}function z8(e,t){for(let n=0,r=e.length;n<r;n++){const i=e[n].matcher(t);if(i)return i}return[]}function U8(e,t){const n=new URL("http://sar"),r=Xe(l=>{const c=e();try{return new URL(c,n)}catch{return console.error(`Invalid path ${c}`),l}},n,{equals:(l,c)=>l.href===c.href}),i=Xe(()=>Fs(r().pathname)),o=Xe(()=>Fs(r().search,!0)),a=Xe(()=>Fs(r().hash)),s=Xe(()=>"");return{get pathname(){return i()},get search(){return o()},get hash(){return a()},get state(){return t()},get key(){return s()},query:v5(wi(o,()=>k8(r())))}}function j8(e,t="",n,r){const{signal:[i,o],utils:a={}}=y8(e),s=a.parsePath||(y=>y),l=a.renderPath||(y=>y),c=l1("",t),u=void 0;if(c===void 0)throw new Error(`${c} is not a valid base path`);c&&!i().value&&o({value:c,replace:!0,scroll:!1});const[f,g]=H6(),[d,h]=Me(i().value),[m,p]=Me(i().state),b=U8(d,m),E=[],v={pattern:c,params:{},path:()=>c,outlet:()=>null,resolvePath(y){return l1(c,y)}};if(n)try{Zs=v,v.data=n({data:void 0,params:{},location:b,navigate:I(v)})}finally{Zs=void 0}function N(y,O,M){mn(()=>{if(typeof O=="number"){O&&(a.go?a.go(O):console.warn("Router integration does not support relative routing"));return}const{replace:j,resolve:H,scroll:X,state:ne}={replace:!1,resolve:!0,scroll:!0,...M},oe=H?y.resolvePath(O):l1("",O);if(oe===void 0)throw new Error(`Path '${O}' is not a routable path`);if(E.length>=R8)throw new Error("Too many redirects");const ae=d();if(oe!==ae||ne!==m()){const D=E.push({value:ae,replace:j,scroll:X,state:m()});g(()=>{h(oe),p(ne),Y6()}).then(()=>{E.length===D&&S({value:oe,state:ne})})}})}function I(y){return y=y||$t(V1)||v,(O,M)=>N(y,O,M)}function S(y){const O=E[0];O&&((y.value!==O.value||y.state!==O.state)&&o({...y,replace:O.replace,scroll:O.scroll}),E.length=0)}Dn(()=>{const{value:y,state:O}=i();mn(()=>{y!==d()&&g(()=>{h(y),p(O)})})});{let y=function(M){return M.namespaceURI==="http://www.w3.org/2000/svg"},O=function(M){if(M.defaultPrevented||M.button!==0||M.metaKey||M.altKey||M.ctrlKey||M.shiftKey)return;const j=M.composedPath().find(Pe=>Pe instanceof Node&&Pe.nodeName.toUpperCase()==="A");if(!j)return;const H=y(j),X=H?j.href.baseVal:j.href;if((H?j.target.baseVal:j.target)||!X&&!j.hasAttribute("state"))return;const oe=(j.getAttribute("rel")||"").split(/\s+/);if(j.hasAttribute("download")||oe&&oe.includes("external"))return;const ae=H?new URL(X,document.baseURI):new URL(X),D=ae.pathname;if(ae.origin!==window.location.origin||c&&D&&!D.toLowerCase().startsWith(c.toLowerCase()))return;const Re=s(D+Fs(ae.search,!0)+Fs(ae.hash)),Y=j.getAttribute("state");M.preventDefault(),N(v,Re,{resolve:!1,replace:j.hasAttribute("replace"),scroll:!j.hasAttribute("noscroll"),state:Y&&JSON.parse(Y)})};document.addEventListener("click",O),Dt(()=>document.removeEventListener("click",O))}return{base:v,out:u,location:b,isRouting:f,renderPath:l,parsePath:s,navigatorFactory:I}}function G8(e,t,n,r){const{base:i,location:o,navigatorFactory:a}=e,{pattern:s,element:l,preload:c,data:u}=r().route,f=Xe(()=>r().path),g=v5(()=>r().params);c&&c();const d={parent:t,pattern:s,get child(){return n()},path:f,params:g,data:t.data,outlet:l,resolvePath(h){return l1(i.path(),h,f())}};if(u)try{Zs=d,d.data=u({data:t.data,params:g,location:o,navigate:a(d)})}finally{Zs=void 0}return d}const K8=Bt("<a></a>"),W8=e=>{const{source:t,url:n,base:r,data:i,out:o}=e,a=t||S8(),s=j8(a,r,i);return T(T5.Provider,{value:s,get children(){return e.children}})},V8=e=>{const t=Wa(),n=q1(),r=Gr(()=>e.children),i=Xe(()=>S5(r(),_5(n.pattern,e.base||""),q8)),o=Xe(()=>z8(i(),t.location.pathname));t.out&&t.out.matches.push(o().map(({route:c,path:u,params:f})=>({originalPath:c.originalPath,pattern:c.pattern,path:u,params:f})));const a=[];let s;const l=Xe(wi(o,(c,u,f)=>{let g=u&&c.length===u.length;const d=[];for(let h=0,m=c.length;h<m;h++){const p=u&&u[h],b=c[h];f&&p&&b.route.key===p.route.key?d[h]=f[h]:(g=!1,a[h]&&a[h](),Ci(E=>{a[h]=E,d[h]=G8(t,d[h-1]||n,()=>l()[h+1],()=>o()[h])}))}return a.splice(c.length).forEach(h=>h()),f&&g?f:(s=d[0],d)}));return T(Ae,{get when(){return l()&&s},children:c=>T(V1.Provider,{value:c,get children(){return c.outlet()}})})},$l=e=>{const t=Gr(()=>e.children);return K(e,{get children(){return t()}})},q8=()=>{const e=q1();return T(Ae,{get when(){return e.child},children:t=>T(V1.Provider,{value:t,get children(){return t.outlet()}})})};function Y8(e){const[,t]=se(e,["children","to","href","state"]),n=L8(()=>e.to);return(()=>{const r=K8.cloneNode(!0);return y1(r,t,!1,!0),jr(r,()=>e.children),Dn(i=>{const o=n()||e.href,a=JSON.stringify(e.state);return o!==i._v$&&at(r,"href",i._v$=o),a!==i._v$2&&at(r,"state",i._v$2=a),i},{_v$:void 0,_v$2:void 0}),r})()}function nB(e){const t=M8(()=>e.href);return T(Y8,K(e,{get to(){return t()}}))}const zu=Symbol("store-raw"),S1=Symbol("store-node"),X8=Symbol("store-name");function C5(e,t){let n=e[ea];if(!n){Object.defineProperty(e,ea,{value:n=new Proxy(e,J8)});const r=Object.keys(e),i=Object.getOwnPropertyDescriptors(e);for(let o=0,a=r.length;o<a;o++){const s=r[o];if(i[s].get){const l=i[s].get.bind(n);Object.defineProperty(e,s,{get:l})}}}return n}function $a(e){let t;return e!=null&&typeof e=="object"&&(e[ea]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Ba(e,t=new Set){let n,r,i,o;if(n=e!=null&&e[zu])return n;if(!$a(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let a=0,s=e.length;a<s;a++)i=e[a],(r=Ba(i,t))!==i&&(e[a]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const a=Object.keys(e),s=Object.getOwnPropertyDescriptors(e);for(let l=0,c=a.length;l<c;l++)o=a[l],!s[o].get&&(i=e[o],(r=Ba(i,t))!==i&&(e[o]=r))}return e}function Uu(e){let t=e[S1];return t||Object.defineProperty(e,S1,{value:t={}}),t}function Q0(e,t,n){return e[t]||(e[t]=A5(n,!0))}function Q8(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===ea||t===S1||t===X8||(delete n.value,delete n.writable,n.get=()=>e[ea][t]),n}function w5(e){if(l5()){const t=Uu(e);(t._||(t._=A5()))()}}function Z8(e){return w5(e),Reflect.ownKeys(e)}function A5(e,t){const[n,r]=Me(e,t?{internal:!0}:{equals:!1,internal:!0});return n.$=r,n}const J8={get(e,t,n){if(t===zu)return e;if(t===ea)return n;if(t===Du)return w5(e);const r=Uu(e),i=r[t];let o=i?r[t]():e[t];if(t===S1||t==="__proto__")return o;if(!i){const a=Object.getOwnPropertyDescriptor(e,t);l5()&&(typeof o!="function"||e.hasOwnProperty(t))&&!(a&&a.get)&&(o=Q0(r,t,o)())}return $a(o)?C5(o):o},set(){return!0},deleteProperty(){return!0},ownKeys:Z8,getOwnPropertyDescriptor:Q8};function Fa(e,t,n){if(e[t]===n)return;const r=e[t],i=e.length;n===void 0?delete e[t]:e[t]=n;let o=Uu(e),a;(a=Q0(o,t,r))&&a.$(()=>n),Array.isArray(e)&&e.length!==i&&(a=Q0(o,"length",i))&&a.$(e.length),(a=o._)&&a.$()}function k5(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const i=n[r];Fa(e,i,t[i])}}function eb(e,t){if(typeof t=="function"&&(t=t(e)),t=Ba(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const i=t[n];e[n]!==i&&Fa(e,n,i)}Fa(e,"length",r)}else k5(e,t)}function ks(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();const a=typeof r,s=Array.isArray(e);if(Array.isArray(r)){for(let l=0;l<r.length;l++)ks(e,[r[l]].concat(t),n);return}else if(s&&a==="function"){for(let l=0;l<e.length;l++)r(e[l],l)&&ks(e,[l].concat(t),n);return}else if(s&&a==="object"){const{from:l=0,to:c=e.length-1,by:u=1}=r;for(let f=l;f<=c;f+=u)ks(e,[f].concat(t),n);return}else if(t.length>1){ks(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let o=t[0];typeof o=="function"&&(o=o(i,n),o===i)||r===void 0&&o==null||(o=Ba(o),r===void 0||$a(i)&&$a(o)&&!Array.isArray(o)?k5(i,o):Fa(e,r,o))}function An(...[e,t]){const n=Ba(e||{}),r=Array.isArray(n),i=C5(n);function o(...a){ta(()=>{r&&a.length===1?eb(n,a[0]):ks(n,a)})}return[i,o]}const C1=new WeakMap,O5={get(e,t){if(t===zu)return e;const n=e[t];let r;return $a(n)?C1.get(n)||(C1.set(n,r=new Proxy(n,O5)),r):n},set(e,t,n){return Fa(e,t,Ba(n)),!0},deleteProperty(e,t){return Fa(e,t,void 0),!0}};function N5(e){return t=>{if($a(t)){let n;(n=C1.get(t))||C1.set(t,n=new Proxy(t,O5)),e(n)}return t}}var kt="colors",Un="sizes",Ne="space",I5={gap:Ne,gridGap:Ne,columnGap:Ne,gridColumnGap:Ne,rowGap:Ne,gridRowGap:Ne,inset:Ne,insetBlock:Ne,insetBlockEnd:Ne,insetBlockStart:Ne,insetInline:Ne,insetInlineEnd:Ne,insetInlineStart:Ne,margin:Ne,marginTop:Ne,marginRight:Ne,marginBottom:Ne,marginLeft:Ne,marginBlock:Ne,marginBlockEnd:Ne,marginBlockStart:Ne,marginInline:Ne,marginInlineEnd:Ne,marginInlineStart:Ne,padding:Ne,paddingTop:Ne,paddingRight:Ne,paddingBottom:Ne,paddingLeft:Ne,paddingBlock:Ne,paddingBlockEnd:Ne,paddingBlockStart:Ne,paddingInline:Ne,paddingInlineEnd:Ne,paddingInlineStart:Ne,top:Ne,right:Ne,bottom:Ne,left:Ne,scrollMargin:Ne,scrollMarginTop:Ne,scrollMarginRight:Ne,scrollMarginBottom:Ne,scrollMarginLeft:Ne,scrollMarginX:Ne,scrollMarginY:Ne,scrollMarginBlock:Ne,scrollMarginBlockEnd:Ne,scrollMarginBlockStart:Ne,scrollMarginInline:Ne,scrollMarginInlineEnd:Ne,scrollMarginInlineStart:Ne,scrollPadding:Ne,scrollPaddingTop:Ne,scrollPaddingRight:Ne,scrollPaddingBottom:Ne,scrollPaddingLeft:Ne,scrollPaddingX:Ne,scrollPaddingY:Ne,scrollPaddingBlock:Ne,scrollPaddingBlockEnd:Ne,scrollPaddingBlockStart:Ne,scrollPaddingInline:Ne,scrollPaddingInlineEnd:Ne,scrollPaddingInlineStart:Ne,fontSize:"fontSizes",background:kt,backgroundColor:kt,backgroundImage:kt,borderImage:kt,border:kt,borderBlock:kt,borderBlockEnd:kt,borderBlockStart:kt,borderBottom:kt,borderBottomColor:kt,borderColor:kt,borderInline:kt,borderInlineEnd:kt,borderInlineStart:kt,borderLeft:kt,borderLeftColor:kt,borderRight:kt,borderRightColor:kt,borderTop:kt,borderTopColor:kt,caretColor:kt,color:kt,columnRuleColor:kt,fill:kt,outline:kt,outlineColor:kt,stroke:kt,textDecorationColor:kt,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Un,minBlockSize:Un,maxBlockSize:Un,inlineSize:Un,minInlineSize:Un,maxInlineSize:Un,width:Un,minWidth:Un,maxWidth:Un,height:Un,minHeight:Un,maxHeight:Un,flexBasis:Un,gridTemplateColumns:Un,gridTemplateRows:Un,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},tb=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,fl=()=>{const e=Object.create(null);return(t,n,...r)=>{const i=(o=>JSON.stringify(o,tb))(t);return i in e?e[i]:e[i]=n(t,...r)}},c1=Symbol.for("sxs.internal"),ju=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),hf=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:nb}=Object.prototype,Z0=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),rb=/\s+(?![^()]*\))/,pa=e=>t=>e(...typeof t=="string"?String(t).split(rb):[t]),gf={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:pa((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:pa((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:pa((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:pa((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:pa((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:pa((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Yc=/([\d.]+)([^]*)/,ib=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(i=>i.includes("&")?i.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(i)?`:is(${r})`:r):r+" "+i)),n),[]):t,ob=(e,t)=>e in ab&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,i,o)=>r+(i==="stretch"?`-moz-available${o};${Z0(e)}:${r}-webkit-fill-available`:`-moz-fit-content${o};${Z0(e)}:${r}fit-content`)+o):String(t),ab={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Ii=e=>e?e+"-":"",R5=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,i,o,a,s)=>a=="$"==!!o?r:(i||a=="--"?"calc(":"")+"var(--"+(a==="$"?Ii(t)+(s.includes("$")?"":Ii(n))+s.replace(/\$/g,"-"):s)+")"+(i||a=="--"?"*"+(i||"")+(o||"1")+")":"")),sb=/\s*,\s*(?![^()]*\))/,lb=Object.prototype.toString,Ca=(e,t,n,r,i)=>{let o,a,s;const l=(c,u,f)=>{let g,d;const h=m=>{for(g in m){const E=g.charCodeAt(0)===64,v=E&&Array.isArray(m[g])?m[g]:[m[g]];for(d of v){const N=/[A-Z]/.test(b=g)?b:b.replace(/-[^]/g,S=>S[1].toUpperCase()),I=typeof d=="object"&&d&&d.toString===lb&&(!r.utils[N]||!u.length);if(N in r.utils&&!I){const S=r.utils[N];if(S!==a){a=S,h(S(d)),a=null;continue}}else if(N in gf){const S=gf[N];if(S!==s){s=S,h(S(d)),s=null;continue}}if(E&&(p=g.slice(1)in r.media?"@media "+r.media[g.slice(1)]:g,g=p.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(S,y,O,M,j,H)=>{const X=Yc.test(y),ne=.0625*(X?-1:1),[oe,ae]=X?[M,y]:[y,M];return"("+(O[0]==="="?"":O[0]===">"===X?"max-":"min-")+oe+":"+(O[0]!=="="&&O.length===1?ae.replace(Yc,(D,Re,Y)=>Number(Re)+ne*(O===">"?1:-1)+Y):ae)+(j?") and ("+(j[0]===">"?"min-":"max-")+oe+":"+(j.length===1?H.replace(Yc,(D,Re,Y)=>Number(Re)+ne*(j===">"?-1:1)+Y):H):"")+")"})),I){const S=E?f.concat(g):[...f],y=E?[...u]:ib(u,g.split(sb));o!==void 0&&i(mf(...o)),o=void 0,l(d,y,S)}else o===void 0&&(o=[[],u,f]),g=E||g.charCodeAt(0)!==36?g:`--${Ii(r.prefix)}${g.slice(1).replace(/\$/g,"-")}`,d=I?d:typeof d=="number"?d&&N in cb?String(d)+"px":String(d):R5(ob(N,d??""),r.prefix,r.themeMap[N]),o[0].push(`${E?`${g} `:`${Z0(g)}:`}${d}`)}}var p,b};h(c),o!==void 0&&i(mf(...o)),o=void 0};l(e,t,n)},mf=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,cb={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},pf=e=>String.fromCharCode(e+(e>25?39:97)),Vo=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=pf(n%52)+r;return pf(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),Os=["themed","global","styled","onevar","resonevar","allvar","inline"],ub=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},db=e=>{let t;const n=()=>{const{cssRules:i}=t.sheet;return[].map.call(i,(o,a)=>{const{cssText:s}=o;let l="";if(s.startsWith("--sxs"))return"";if(i[a-1]&&(l=i[a-1].cssText).startsWith("--sxs")){if(!o.cssRules.length)return"";for(const c in t.rules)if(t.rules[c].group===o)return`--sxs{--sxs:${[...t.rules[c].cache].join(" ")}}${s}`;return o.cssRules.length?`${l}${s}`:""}return s}).join("")},r=()=>{if(t){const{rules:s,sheet:l}=t;if(!l.deleteRule){for(;Object(Object(l.cssRules)[0]).type===3;)l.cssRules.splice(0,1);l.cssRules=[]}for(const c in s)delete s[c]}const i=Object(e).styleSheets||[];for(const s of i)if(ub(s)){for(let l=0,c=s.cssRules;c[l];++l){const u=Object(c[l]);if(u.type!==1)continue;const f=Object(c[l+1]);if(f.type!==4)continue;++l;const{cssText:g}=u;if(!g.startsWith("--sxs"))continue;const d=g.slice(14,-3).trim().split(/\s+/),h=Os[d[0]];h&&(t||(t={sheet:s,reset:r,rules:{},toString:n}),t.rules[h]={group:f,index:l,cache:new Set(d)})}if(t)break}if(!t){const s=(l,c)=>({type:c,cssRules:[],insertRule(u,f){this.cssRules.splice(f,0,s(u,{import:3,undefined:1}[(u.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return l==="@media{}"?`@media{${[].map.call(this.cssRules,u=>u.cssText).join("")}}`:l}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:s("","text/css"),rules:{},reset:r,toString:n}}const{sheet:o,rules:a}=t;for(let s=Os.length-1;s>=0;--s){const l=Os[s];if(!a[l]){const c=Os[s+1],u=a[c]?a[c].index:o.cssRules.length;o.insertRule("@media{}",u),o.insertRule(`--sxs{--sxs:${s}}`,u),a[l]={group:o.cssRules[u+1],index:u,cache:new Set([s])}}fb(a[l])}};return r(),t},fb=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},ds=Symbol(),hb=fl(),gb=(e,t)=>hb(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const i of n)if(i!=null)if(i[c1]){r.type==null&&(r.type=i[c1].type);for(const o of i[c1].composers)r.composers.add(o)}else i.constructor!==Object||i.$$typeof?r.type==null&&(r.type=i):r.composers.add(mb(i,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),pb(e,r,t)}),mb=({variants:e,compoundVariants:t,defaultVariants:n,...r},i)=>{const o=`${Ii(i.prefix)}c-${Vo(r)}`,a=[],s=[],l=Object.create(null),c=[];for(const g in n)l[g]=String(n[g]);if(typeof e=="object"&&e)for(const g in e){u=l,f=g,nb.call(u,f)||(l[g]="undefined");const d=e[g];for(const h in d){const m={[g]:String(h)};String(h)==="undefined"&&c.push(g);const p=d[h],b=[m,p,!hf(p)];a.push(b)}}var u,f;if(typeof t=="object"&&t)for(const g of t){let{css:d,...h}=g;d=typeof d=="object"&&d||{};for(const p in h)h[p]=String(h[p]);const m=[h,d,!hf(d)];s.push(m)}return[o,r,a,s,l,c]},pb=(e,t,n)=>{const[r,i,o,a]=xb(t.composers),s=typeof t.type=="function"||t.type.$$typeof?(f=>{function g(){for(let d=0;d<g[ds].length;d++){const[h,m]=g[ds][d];f.rules[h].apply(m)}return g[ds]=[],null}return g[ds]=[],g.rules={},Os.forEach(d=>g.rules[d]={apply:h=>g[ds].push([d,h])}),g})(n):null,l=(s||n).rules,c=`.${r}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,u=f=>{f=typeof f=="object"&&f||bb;const{css:g,...d}=f,h={};for(const b in o)if(delete d[b],b in f){let E=f[b];typeof E=="object"&&E?h[b]={"@initial":o[b],...E}:(E=String(E),h[b]=E!=="undefined"||a.has(b)?E:o[b])}else h[b]=o[b];const m=new Set([...i]);for(const[b,E,v,N]of t.composers){n.rules.styled.cache.has(b)||(n.rules.styled.cache.add(b),Ca(E,[`.${b}`],[],e,y=>{l.styled.apply(y)}));const I=xf(v,h,e.media),S=xf(N,h,e.media,!0);for(const y of I)if(y!==void 0)for(const[O,M,j]of y){const H=`${b}-${Vo(M)}-${O}`;m.add(H);const X=(j?n.rules.resonevar:n.rules.onevar).cache,ne=j?l.resonevar:l.onevar;X.has(H)||(X.add(H),Ca(M,[`.${H}`],[],e,oe=>{ne.apply(oe)}))}for(const y of S)if(y!==void 0)for(const[O,M]of y){const j=`${b}-${Vo(M)}-${O}`;m.add(j),n.rules.allvar.cache.has(j)||(n.rules.allvar.cache.add(j),Ca(M,[`.${j}`],[],e,H=>{l.allvar.apply(H)}))}}if(typeof g=="object"&&g){const b=`${r}-i${Vo(g)}-css`;m.add(b),n.rules.inline.cache.has(b)||(n.rules.inline.cache.add(b),Ca(g,[`.${b}`],[],e,E=>{l.inline.apply(E)}))}for(const b of String(f.className||"").trim().split(/\s+/))b&&m.add(b);const p=d.className=[...m].join(" ");return{type:t.type,className:p,selector:c,props:d,toString:()=>p,deferredInjector:s}};return ju(u,{className:r,selector:c,[c1]:t,toString:()=>(n.rules.styled.cache.has(r)||u(),r)})},xb=e=>{let t="";const n=[],r={},i=[];for(const[o,,,,a,s]of e){t===""&&(t=o),n.push(o),i.push(...s);for(const l in a){const c=a[l];(r[l]===void 0||c!=="undefined"||s.includes(c))&&(r[l]=c)}}return[t,n,r,new Set(i)]},xf=(e,t,n,r)=>{const i=[];e:for(let[o,a,s]of e){if(s)continue;let l,c=0,u=!1;for(l in o){const f=o[l];let g=t[l];if(g!==f){if(typeof g!="object"||!g)continue e;{let d,h,m=0;for(const p in g){if(f===String(g[p])){if(p!=="@initial"){const b=p.slice(1);(h=h||[]).push(b in n?n[b]:p.replace(/^@media ?/,"")),u=!0}c+=m,d=!0}++m}if(h&&h.length&&(a={["@media "+h.join(", ")]:a}),!d)continue e}}}(i[c]=i[c]||[]).push([r?"cv":`${l}-${o[l]}`,a,u])}return i},bb={},_b=fl(),vb=(e,t)=>_b(e,()=>(...n)=>{const r=()=>{for(let i of n){i=typeof i=="object"&&i||{};let o=Vo(i);if(!t.rules.global.cache.has(o)){if(t.rules.global.cache.add(o),"@import"in i){let a=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let s of[].concat(i["@import"]))s=s.includes('"')||s.includes("'")?s:`"${s}"`,t.sheet.insertRule(`@import ${s};`,a++);delete i["@import"]}Ca(i,[],[],e,a=>{t.rules.global.apply(a)})}}return""};return ju(r,{toString:r})}),Eb=fl(),Tb=(e,t)=>Eb(e,()=>n=>{const r=`${Ii(e.prefix)}k-${Vo(n)}`,i=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];Ca(n,[],[],e,s=>o.push(s));const a=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(a)}return r};return ju(i,{get name(){return i()},toString:i})}),yb=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Ii(this.prefix)+Ii(this.scale)+this.token}toString(){return this.computedValue}},Sb=fl(),Cb=(e,t)=>Sb(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const i=`.${n=(n=typeof n=="string"?n:"")||`${Ii(e.prefix)}t-${Vo(r)}`}`,o={},a=[];for(const l in r){o[l]={};for(const c in r[l]){const u=`--${Ii(e.prefix)}${l}-${c}`,f=R5(String(r[l][c]),e.prefix,l);o[l][c]=new yb(c,f,l,e.prefix),a.push(`${u}:${f}`)}}const s=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const l=`${r===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(l)}return n};return{...o,get className(){return s()},selector:i,toString:s}}),wb=fl(),Ab=e=>{let t=!1;const n=wb(e,r=>{t=!0;const i="prefix"in(r=typeof r=="object"&&r||{})?String(r.prefix):"",o=typeof r.media=="object"&&r.media||{},a=typeof r.root=="object"?r.root||null:globalThis.document||null,s=typeof r.theme=="object"&&r.theme||{},l={prefix:i,media:o,theme:s,themeMap:typeof r.themeMap=="object"&&r.themeMap||{...I5},utils:typeof r.utils=="object"&&r.utils||{}},c=db(a),u={css:gb(l,c),globalCss:vb(l,c),keyframes:Tb(l,c),createTheme:Cb(l,c),reset(){c.reset(),u.theme.toString()},theme:{},sheet:c,config:l,prefix:i,getCssText:c.toString,toString:c.toString};return String(u.theme=u.createTheme(s)),u});return t||n.reset(),n},It=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rB(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var w1={exports:{}};w1.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",f="[object Date]",g="[object Error]",d="[object Function]",h="[object GeneratorFunction]",m="[object Map]",p="[object Number]",b="[object Null]",E="[object Object]",v="[object Proxy]",N="[object RegExp]",I="[object Set]",S="[object String]",y="[object Undefined]",O="[object WeakMap]",M="[object ArrayBuffer]",j="[object DataView]",H="[object Float32Array]",X="[object Float64Array]",ne="[object Int8Array]",oe="[object Int16Array]",ae="[object Int32Array]",D="[object Uint8Array]",Re="[object Uint8ClampedArray]",Y="[object Uint16Array]",Pe="[object Uint32Array]",we=/[\\^$.*+?()[\]{}|]/g,C=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,fe={};fe[H]=fe[X]=fe[ne]=fe[oe]=fe[ae]=fe[D]=fe[Re]=fe[Y]=fe[Pe]=!0,fe[s]=fe[l]=fe[M]=fe[u]=fe[j]=fe[f]=fe[g]=fe[d]=fe[m]=fe[p]=fe[E]=fe[N]=fe[I]=fe[S]=fe[O]=!1;var $e=typeof It=="object"&&It&&It.Object===Object&&It,vt=typeof self=="object"&&self&&self.Object===Object&&self,Je=$e||vt||Function("return this")(),et=t&&!t.nodeType&&t,st=et&&!0&&e&&!e.nodeType&&e,Et=st&&st.exports===et,ee=Et&&$e.process,ve=function(){try{var k=st&&st.require&&st.require("util").types;return k||ee&&ee.binding&&ee.binding("util")}catch{}}(),qe=ve&&ve.isTypedArray;function gt(k,F,G){switch(G.length){case 0:return k.call(F);case 1:return k.call(F,G[0]);case 2:return k.call(F,G[0],G[1]);case 3:return k.call(F,G[0],G[1],G[2])}return k.apply(F,G)}function Kn(k,F){for(var G=-1,Oe=Array(k);++G<k;)Oe[G]=F(G);return Oe}function Ir(k){return function(F){return k(F)}}function ze(k,F){return k==null?void 0:k[F]}function xn(k,F){return function(G){return k(F(G))}}var Zn=Array.prototype,cr=Function.prototype,nn=Object.prototype,kn=Je["__core-js_shared__"],Fn=cr.toString,rn=nn.hasOwnProperty,Hn=function(){var k=/[^.]+$/.exec(kn&&kn.keys&&kn.keys.IE_PROTO||"");return k?"Symbol(src)_1."+k:""}(),ur=nn.toString,Vr=Fn.call(Object),Jn=RegExp("^"+Fn.call(rn).replace(we,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=Et?Je.Buffer:void 0,A=Je.Symbol,V=Je.Uint8Array,re=$?$.allocUnsafe:void 0,ye=xn(Object.getPrototypeOf,Object),Qt=Object.create,tt=nn.propertyIsEnumerable,_t=Zn.splice,qt=A?A.toStringTag:void 0,zn=function(){try{var k=tr(Object,"defineProperty");return k({},"",{}),k}catch{}}(),yt=$?$.isBuffer:void 0,wt=Math.max,Tn=Date.now,zi=tr(Je,"Map"),er=tr(Object,"create"),Uc=function(){function k(){}return function(F){if(!So(F))return{};if(Qt)return Qt(F);k.prototype=F;var G=new k;return k.prototype=void 0,G}}();function Rr(k){var F=-1,G=k==null?0:k.length;for(this.clear();++F<G;){var Oe=k[F];this.set(Oe[0],Oe[1])}}function Ol(){this.__data__=er?er(null):{},this.size=0}function jc(k){var F=this.has(k)&&delete this.__data__[k];return this.size-=F?1:0,F}function Gc(k){var F=this.__data__;if(er){var G=F[k];return G===r?void 0:G}return rn.call(F,k)?F[k]:void 0}function Nl(k){var F=this.__data__;return er?F[k]!==void 0:rn.call(F,k)}function Il(k,F){var G=this.__data__;return this.size+=this.has(k)?0:1,G[k]=er&&F===void 0?r:F,this}Rr.prototype.clear=Ol,Rr.prototype.delete=jc,Rr.prototype.get=Gc,Rr.prototype.has=Nl,Rr.prototype.set=Il;function dr(k){var F=-1,G=k==null?0:k.length;for(this.clear();++F<G;){var Oe=k[F];this.set(Oe[0],Oe[1])}}function as(){this.__data__=[],this.size=0}function Rl(k){var F=this.__data__,G=Se(F,k);if(G<0)return!1;var Oe=F.length-1;return G==Oe?F.pop():_t.call(F,G,1),--this.size,!0}function fa(k){var F=this.__data__,G=Se(F,k);return G<0?void 0:F[G][1]}function Mr(k){return Se(this.__data__,k)>-1}function ss(k,F){var G=this.__data__,Oe=Se(G,k);return Oe<0?(++this.size,G.push([k,F])):G[Oe][1]=F,this}dr.prototype.clear=as,dr.prototype.delete=Rl,dr.prototype.get=fa,dr.prototype.has=Mr,dr.prototype.set=ss;function Ui(k){var F=-1,G=k==null?0:k.length;for(this.clear();++F<G;){var Oe=k[F];this.set(Oe[0],Oe[1])}}function Kc(){this.size=0,this.__data__={hash:new Rr,map:new(zi||dr),string:new Rr}}function Ml(k){var F=Lr(this,k).delete(k);return this.size-=F?1:0,F}function Ll(k){return Lr(this,k).get(k)}function _(k){return Lr(this,k).has(k)}function w(k,F){var G=Lr(this,k),Oe=G.size;return G.set(k,F),this.size+=G.size==Oe?0:1,this}Ui.prototype.clear=Kc,Ui.prototype.delete=Ml,Ui.prototype.get=Ll,Ui.prototype.has=_,Ui.prototype.set=w;function B(k){var F=this.__data__=new dr(k);this.size=F.size}function U(){this.__data__=new dr,this.size=0}function J(k){var F=this.__data__,G=F.delete(k);return this.size=F.size,G}function z(k){return this.__data__.get(k)}function Q(k){return this.__data__.has(k)}function q(k,F){var G=this.__data__;if(G instanceof dr){var Oe=G.__data__;if(!zi||Oe.length<n-1)return Oe.push([k,F]),this.size=++G.size,this;G=this.__data__=new Ui(Oe)}return G.set(k,F),this.size=G.size,this}B.prototype.clear=U,B.prototype.delete=J,B.prototype.get=z,B.prototype.has=Q,B.prototype.set=q;function de(k,F){var G=St(k),Oe=!G&&mt(k),dt=!G&&!Oe&&ga(k),Lt=!G&&!Oe&&!dt&&Jd(k),Kt=G||Oe||dt||Lt,lt=Kt?Kn(k.length,String):[],Wt=lt.length;for(var fr in k)(F||rn.call(k,fr))&&!(Kt&&(fr=="length"||dt&&(fr=="offset"||fr=="parent")||Lt&&(fr=="buffer"||fr=="byteLength"||fr=="byteOffset")||To(fr,Wt)))&&lt.push(fr);return lt}function pe(k,F,G){(G!==void 0&&!xt(k[F],G)||G===void 0&&!(F in k))&&Fe(k,F,G)}function Ee(k,F,G){var Oe=k[F];(!(rn.call(k,F)&&xt(Oe,G))||G===void 0&&!(F in k))&&Fe(k,F,G)}function Se(k,F){for(var G=k.length;G--;)if(xt(k[G][0],F))return G;return-1}function Fe(k,F,G){F=="__proto__"&&zn?zn(k,F,{configurable:!0,enumerable:!0,value:G,writable:!0}):k[F]=G}var ut=di();function Ge(k){return k==null?k===void 0?y:b:qt&&qt in Object(k)?ji(k):ha(k)}function Rt(k){return cs(k)&&Ge(k)==s}function On(k){if(!So(k)||Pl(k))return!1;var F=Ki(k)?Jn:C;return F.test(He(k))}function Nn(k){return cs(k)&&Zd(k.length)&&!!fe[Ge(k)]}function dn(k){if(!So(k))return Mt(k);var F=Zt(k),G=[];for(var Oe in k)Oe=="constructor"&&(F||!rn.call(k,Oe))||G.push(Oe);return G}function be(k,F,G,Oe,dt){k!==F&&ut(F,function(Lt,Kt){if(dt||(dt=new B),So(Lt))Le(k,F,Kt,G,be,Oe,dt);else{var lt=Oe?Oe(yo(k,Kt),Lt,Kt+"",k,F,dt):void 0;lt===void 0&&(lt=Lt),pe(k,Kt,lt)}},ef)}function Le(k,F,G,Oe,dt,Lt,Kt){var lt=yo(k,G),Wt=yo(F,G),fr=Kt.get(Wt);if(fr){pe(k,G,fr);return}var nr=Lt?Lt(lt,Wt,G+"",k,F,Kt):void 0,us=nr===void 0;if(us){var Wc=St(Wt),Vc=!Wc&&ga(Wt),nf=!Wc&&!Vc&&Jd(Wt);nr=Wt,Wc||Vc||nf?St(lt)?nr=lt:Pr(lt)?nr=Vt(lt):Vc?(us=!1,nr=At(Wt,!0)):nf?(us=!1,nr=Gt(Wt,!0)):nr=[]:O6(Wt)||mt(Wt)?(nr=lt,mt(lt)?nr=N6(lt):(!So(lt)||Ki(lt))&&(nr=it(Wt))):us=!1}us&&(Kt.set(Wt,nr),dt(nr,Wt,Oe,Lt,Kt),Kt.delete(Wt)),pe(k,G,nr)}function Ue(k,F){return ls(fi(k,F,tf),k+"")}var Ft=zn?function(k,F){return zn(k,"toString",{configurable:!0,enumerable:!1,value:R6(F),writable:!0})}:tf;function At(k,F){if(F)return k.slice();var G=k.length,Oe=re?re(G):new k.constructor(G);return k.copy(Oe),Oe}function pt(k){var F=new k.constructor(k.byteLength);return new V(F).set(new V(k)),F}function Gt(k,F){var G=F?pt(k.buffer):k.buffer;return new k.constructor(G,k.byteOffset,k.length)}function Vt(k,F){var G=-1,Oe=k.length;for(F||(F=Array(Oe));++G<Oe;)F[G]=k[G];return F}function Tt(k,F,G,Oe){var dt=!G;G||(G={});for(var Lt=-1,Kt=F.length;++Lt<Kt;){var lt=F[Lt],Wt=Oe?Oe(G[lt],k[lt],lt,G,k):void 0;Wt===void 0&&(Wt=k[lt]),dt?Fe(G,lt,Wt):Ee(G,lt,Wt)}return G}function on(k){return Ue(function(F,G){var Oe=-1,dt=G.length,Lt=dt>1?G[dt-1]:void 0,Kt=dt>2?G[2]:void 0;for(Lt=k.length>3&&typeof Lt=="function"?(dt--,Lt):void 0,Kt&&Gi(G[0],G[1],Kt)&&(Lt=dt<3?void 0:Lt,dt=1),F=Object(F);++Oe<dt;){var lt=G[Oe];lt&&k(F,lt,Oe,Lt)}return F})}function di(k){return function(F,G,Oe){for(var dt=-1,Lt=Object(F),Kt=Oe(F),lt=Kt.length;lt--;){var Wt=Kt[k?lt:++dt];if(G(Lt[Wt],Wt,Lt)===!1)break}return F}}function Lr(k,F){var G=k.__data__;return Ke(F)?G[typeof F=="string"?"string":"hash"]:G.map}function tr(k,F){var G=ze(k,F);return On(G)?G:void 0}function ji(k){var F=rn.call(k,qt),G=k[qt];try{k[qt]=void 0;var Oe=!0}catch{}var dt=ur.call(k);return Oe&&(F?k[qt]=G:delete k[qt]),dt}function it(k){return typeof k.constructor=="function"&&!Zt(k)?Uc(ye(k)):{}}function To(k,F){var G=typeof k;return F=F??a,!!F&&(G=="number"||G!="symbol"&&R.test(k))&&k>-1&&k%1==0&&k<F}function Gi(k,F,G){if(!So(G))return!1;var Oe=typeof F;return(Oe=="number"?bn(G)&&To(F,G.length):Oe=="string"&&F in G)?xt(G[F],k):!1}function Ke(k){var F=typeof k;return F=="string"||F=="number"||F=="symbol"||F=="boolean"?k!=="__proto__":k===null}function Pl(k){return!!Hn&&Hn in k}function Zt(k){var F=k&&k.constructor,G=typeof F=="function"&&F.prototype||nn;return k===G}function Mt(k){var F=[];if(k!=null)for(var G in Object(k))F.push(G);return F}function ha(k){return ur.call(k)}function fi(k,F,G){return F=wt(F===void 0?k.length-1:F,0),function(){for(var Oe=arguments,dt=-1,Lt=wt(Oe.length-F,0),Kt=Array(Lt);++dt<Lt;)Kt[dt]=Oe[F+dt];dt=-1;for(var lt=Array(F+1);++dt<F;)lt[dt]=Oe[dt];return lt[F]=G(Kt),gt(k,this,lt)}}function yo(k,F){if(!(F==="constructor"&&typeof k[F]=="function")&&F!="__proto__")return k[F]}var ls=ke(Ft);function ke(k){var F=0,G=0;return function(){var Oe=Tn(),dt=o-(Oe-G);if(G=Oe,dt>0){if(++F>=i)return arguments[0]}else F=0;return k.apply(void 0,arguments)}}function He(k){if(k!=null){try{return Fn.call(k)}catch{}try{return k+""}catch{}}return""}function xt(k,F){return k===F||k!==k&&F!==F}var mt=Rt(function(){return arguments}())?Rt:function(k){return cs(k)&&rn.call(k,"callee")&&!tt.call(k,"callee")},St=Array.isArray;function bn(k){return k!=null&&Zd(k.length)&&!Ki(k)}function Pr(k){return cs(k)&&bn(k)}var ga=yt||M6;function Ki(k){if(!So(k))return!1;var F=Ge(k);return F==d||F==h||F==c||F==v}function Zd(k){return typeof k=="number"&&k>-1&&k%1==0&&k<=a}function So(k){var F=typeof k;return k!=null&&(F=="object"||F=="function")}function cs(k){return k!=null&&typeof k=="object"}function O6(k){if(!cs(k)||Ge(k)!=E)return!1;var F=ye(k);if(F===null)return!0;var G=rn.call(F,"constructor")&&F.constructor;return typeof G=="function"&&G instanceof G&&Fn.call(G)==Vr}var Jd=qe?Ir(qe):Nn;function N6(k){return Tt(k,ef(k))}function ef(k){return bn(k)?de(k,!0):dn(k)}var I6=on(function(k,F,G){be(k,F,G)});function R6(k){return function(){return k}}function tf(k){return k}function M6(){return!1}e.exports=I6})(w1,w1.exports);var kb=w1.exports;const bf=mo(kb);function A1(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}const po=e=>{let t,n=!0;const[r,i]=Me(),[o,a]=Me(),s=Gr(()=>e.children),{onBeforeEnter:l,onEnter:c,onAfterEnter:u,onBeforeExit:f,onExit:g,onAfterExit:d}=e,h=Xe(()=>{const b=e.name||"s";return{enterActiveClass:e.enterActiveClass||b+"-enter-active",enterClass:e.enterClass||b+"-enter",enterToClass:e.enterToClass||b+"-enter-to",exitActiveClass:e.exitActiveClass||b+"-exit-active",exitClass:e.exitClass||b+"-exit",exitToClass:e.exitToClass||b+"-exit-to"}});function m(b,E){if(!n||e.appear){let S=function(y){b&&(!y||y.target===b)&&(b.removeEventListener("transitionend",S),b.removeEventListener("animationend",S),b.classList.remove(...N),b.classList.remove(...I),ta(()=>{r()!==b&&i(b),o()===b&&a(void 0)}),u&&u(b),e.mode==="inout"&&p(b,E))};const v=h().enterClass.split(" "),N=h().enterActiveClass.split(" "),I=h().enterToClass.split(" ");l&&l(b),b.classList.add(...v),b.classList.add(...N),A1(()=>{b.classList.remove(...v),b.classList.add(...I),c&&c(b,()=>S()),(!c||c.length<2)&&(b.addEventListener("transitionend",S),b.addEventListener("animationend",S))})}E&&!e.mode?a(b):i(b)}function p(b,E){const v=h().exitClass.split(" "),N=h().exitActiveClass.split(" "),I=h().exitToClass.split(" ");if(!E.parentNode)return S();f&&f(E),E.classList.add(...v),E.classList.add(...N),A1(()=>{E.classList.remove(...v),E.classList.add(...I)}),g&&g(E,()=>S()),(!g||g.length<2)&&(E.addEventListener("transitionend",S),E.addEventListener("animationend",S));function S(y){(!y||y.target===E)&&(E.removeEventListener("transitionend",S),E.removeEventListener("animationend",S),E.classList.remove(...N),E.classList.remove(...I),r()===E&&i(void 0),d&&d(E),e.mode==="outin"&&m(b,E))}}return Qs(b=>{for(t=s();typeof t=="function";)t=t();return mn(()=>(t&&t!==b&&(e.mode!=="outin"?m(t,b):n&&i(t)),b&&b!==t&&e.mode!=="inout"&&p(t,b),n=!1,t))}),[r,o]};function Bl(e){const{top:t,bottom:n,left:r,right:i,width:o,height:a}=e.getBoundingClientRect(),s=e.parentNode.getBoundingClientRect();return{top:t-s.top,bottom:n,left:r-s.left,right:i,width:o,height:a}}const Ob=e=>{const t=Gr(()=>e.children),n=Xe(()=>{const d=e.name||"s";return{enterActiveClass:e.enterActiveClass||d+"-enter-active",enterClass:e.enterClass||d+"-enter",enterToClass:e.enterToClass||d+"-enter-to",exitActiveClass:e.exitActiveClass||d+"-exit-active",exitClass:e.exitClass||d+"-exit",exitToClass:e.exitToClass||d+"-exit-to",moveClass:e.moveClass||d+"-move"}}),{onBeforeEnter:r,onEnter:i,onAfterEnter:o,onBeforeExit:a,onExit:s,onAfterExit:l}=e,[c,u]=Me();let f=[],g=!0;return Qs(()=>{const d=t(),h=[...d],m=new Set(d),p=new Set(f),b=n().enterClass.split(" "),E=n().enterActiveClass.split(" "),v=n().enterToClass.split(" "),N=n().exitClass.split(" "),I=n().exitActiveClass.split(" "),S=n().exitToClass.split(" ");for(let y=0;y<d.length;y++){const O=d[y];if(!g&&!p.has(O)){let M=function(j){O&&(!j||j.target===O)&&(O.removeEventListener("transitionend",M),O.removeEventListener("animationend",M),O.classList.remove(...E),O.classList.remove(...v),o&&o(O))};r&&r(O),O.classList.add(...b),O.classList.add(...E),A1(()=>{O.classList.remove(...b),O.classList.add(...v),i&&i(O,()=>M()),(!i||i.length<2)&&(O.addEventListener("transitionend",M),O.addEventListener("animationend",M))})}}for(let y=0;y<f.length;y++){const O=f[y];if(!m.has(O)&&O.parentNode){let M=function(j){(!j||j.target===O)&&(O.removeEventListener("transitionend",M),O.removeEventListener("animationend",M),O.classList.remove(...I),O.classList.remove(...S),l&&l(O),f=f.filter(H=>H!==O),u(f))};h.splice(y,0,O),a&&a(O),O.classList.add(...N),O.classList.add(...I),A1(()=>{O.classList.remove(...N),O.classList.add(...S)}),s&&s(O,()=>M()),(!s||s.length<2)&&(O.addEventListener("transitionend",M),O.addEventListener("animationend",M))}}f=h,u(h)}),tn(d=>{const h=c();return h.forEach(m=>{let p;(p=d.get(m))?p.new&&(p.new=!1,p.newPos=Bl(m)):d.set(m,p={pos:Bl(m),new:!g}),p.new&&m.addEventListener("transitionend",()=>{p.new=!1,m.parentNode&&(p.newPos=Bl(m))},{once:!0}),p.newPos&&(p.pos=p.newPos),p.newPos=Bl(m)}),g?(g=!1,d):(h.forEach(m=>{const p=d.get(m),b=p.pos,E=p.newPos,v=b.left-E.left,N=b.top-E.top;if(v||N){p.moved=!0;const I=m.style;I.transform=`translate(${v}px,${N}px)`,I.transitionDuration="0s"}}),document.body.offsetHeight,h.forEach(m=>{const p=d.get(m);if(p.moved){let v=function(N){N&&N.target!==m||!m.parentNode||(!N||/transform$/.test(N.propertyName))&&(m.removeEventListener("transitionend",v),m.classList.remove(...E))};p.moved=!1;const b=m.style,E=n().moveClass.split(" ");m.classList.add(...E),b.transform=b.transitionDuration="",m.addEventListener("transitionend",v)}}),d)},new Map),c};/*!
2
+ * tabbable 5.3.3
3
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
+ */var M5=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],k1=M5.join(","),L5=typeof Element>"u",ra=L5?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,J0=!L5&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},P5=function(t,n,r){var i=Array.prototype.slice.apply(t.querySelectorAll(k1));return n&&ra.call(t,k1)&&i.unshift(t),i=i.filter(r),i},D5=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(a.tagName==="SLOT"){var s=a.assignedElements(),l=s.length?s:a.children,c=e(l,!0,r);r.flatten?i.push.apply(i,c):i.push({scope:a,candidates:c})}else{var u=ra.call(a,k1);u&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var f=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),g=!r.shadowRootFilter||r.shadowRootFilter(a);if(f&&g){var d=e(f===!0?a.children:f.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scope:a,candidates:d})}else o.unshift.apply(o,a.children)}}return i},$5=function(t,n){return t.tabIndex<0&&(n||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},Nb=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},B5=function(t){return t.tagName==="INPUT"},Ib=function(t){return B5(t)&&t.type==="hidden"},Rb=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Mb=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Lb=function(t){if(!t.name)return!0;var n=t.form||J0(t),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=Mb(i,t.form);return!o||o===t},Pb=function(t){return B5(t)&&t.type==="radio"},Db=function(t){return Pb(t)&&!Lb(t)},_f=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},$b=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=ra.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(ra.call(a,"details:not([open]) *"))return!0;var s=J0(t).host,l=(s==null?void 0:s.ownerDocument.contains(s))||t.ownerDocument.contains(t);if(!r||r==="full"){if(typeof i=="function"){for(var c=t;t;){var u=t.parentElement,f=J0(t);if(u&&!u.shadowRoot&&i(u)===!0)return _f(t);t.assignedSlot?t=t.assignedSlot:!u&&f!==t.ownerDocument?t=f.host:t=u}t=c}if(l)return!t.getClientRects().length}else if(r==="non-zero-area")return _f(t);return!1},Bb=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return ra.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},O1=function(t,n){return!(n.disabled||Ib(n)||$b(n,t)||Rb(n)||Bb(n))},eu=function(t,n){return!(Db(n)||$5(n)<0||!O1(t,n))},Fb=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Hb=function e(t){var n=[],r=[];return t.forEach(function(i,o){var a=!!i.scope,s=a?i.scope:i,l=$5(s,a),c=a?e(i.candidates):s;l===0?a?n.push.apply(n,c):n.push(s):r.push({documentOrder:o,tabIndex:l,item:i,isScope:a,content:c})}),r.sort(Nb).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(n)},zb=function(t,n){n=n||{};var r;return n.getShadowRoot?r=D5([t],n.includeContainer,{filter:eu.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Fb}):r=P5(t,n.includeContainer,eu.bind(null,n)),Hb(r)},Ub=function(t,n){n=n||{};var r;return n.getShadowRoot?r=D5([t],n.includeContainer,{filter:O1.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=P5(t,n.includeContainer,O1.bind(null,n)),r},Fl=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return ra.call(t,k1)===!1?!1:eu(n,t)},jb=M5.concat("iframe").join(","),Xc=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return ra.call(t,jb)===!1?!1:O1(n,t)};/*!
5
+ * focus-trap 6.7.3
6
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
7
+ */function vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vf(Object(n),!0).forEach(function(r){Kb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ef=function(){var e=[];return{activateTrap:function(n){if(e.length>0){var r=e[e.length-1];r!==n&&r.pause()}var i=e.indexOf(n);i===-1||e.splice(i,1),e.push(n)},deactivateTrap:function(n){var r=e.indexOf(n);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}}}(),Wb=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Vb=function(t){return t.key==="Escape"||t.key==="Esc"||t.keyCode===27},qb=function(t){return t.key==="Tab"||t.keyCode===9},Tf=function(t){return setTimeout(t,0)},Qc=function(t,n){var r=-1;return t.every(function(i,o){return n(i)?(r=o,!1):!0}),r},fs=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return typeof t=="function"?t.apply(void 0,r):t},Hl=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},F5=function(t,n){var r=(n==null?void 0:n.document)||document,i=Gb({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},n),o={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a,s=function(S,y,O){return S&&S[y]!==void 0?S[y]:i[O||y]},l=function(S){return!!(S&&o.containers.some(function(y){return y.contains(S)}))},c=function(S){var y=i[S];if(typeof y=="function"){for(var O=arguments.length,M=new Array(O>1?O-1:0),j=1;j<O;j++)M[j-1]=arguments[j];y=y.apply(void 0,M)}if(!y){if(y===void 0||y===!1)return y;throw new Error("`".concat(S,"` was specified but was not a node, or did not return a node"))}var H=y;if(typeof y=="string"&&(H=r.querySelector(y),!H))throw new Error("`".concat(S,"` as selector refers to no known node"));return H},u=function(){var S=c("initialFocus");if(S===!1)return!1;if(S===void 0)if(l(r.activeElement))S=r.activeElement;else{var y=o.tabbableGroups[0],O=y&&y.firstTabbableNode;S=O||c("fallbackFocus")}if(!S)throw new Error("Your focus-trap needs to have at least one focusable element");return S},f=function(){if(o.tabbableGroups=o.containers.map(function(S){var y=zb(S),O=Ub(S);if(y.length>0)return{container:S,firstTabbableNode:y[0],lastTabbableNode:y[y.length-1],nextTabbableNode:function(j){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,X=O.findIndex(function(ne){return ne===j});return H?O.slice(X+1).find(function(ne){return Fl(ne)}):O.slice(0,X).reverse().find(function(ne){return Fl(ne)})}}}).filter(function(S){return!!S}),o.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},g=function I(S){if(S!==!1&&S!==r.activeElement){if(!S||!S.focus){I(u());return}S.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=S,Wb(S)&&S.select()}},d=function(S){var y=c("setReturnFocus",S);return y||(y===!1?!1:S)},h=function(S){var y=Hl(S);if(!l(y)){if(fs(i.clickOutsideDeactivates,S)){a.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Xc(y)});return}fs(i.allowOutsideClick,S)||S.preventDefault()}},m=function(S){var y=Hl(S),O=l(y);O||y instanceof Document?O&&(o.mostRecentlyFocusedNode=y):(S.stopImmediatePropagation(),g(o.mostRecentlyFocusedNode||u()))},p=function(S){var y=Hl(S);f();var O=null;if(o.tabbableGroups.length>0){var M=Qc(o.tabbableGroups,function(Re){var Y=Re.container;return Y.contains(y)}),j=M>=0?o.tabbableGroups[M]:void 0;if(M<0)S.shiftKey?O=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:O=o.tabbableGroups[0].firstTabbableNode;else if(S.shiftKey){var H=Qc(o.tabbableGroups,function(Re){var Y=Re.firstTabbableNode;return y===Y});if(H<0&&(j.container===y||Xc(y)&&!Fl(y)&&!j.nextTabbableNode(y,!1))&&(H=M),H>=0){var X=H===0?o.tabbableGroups.length-1:H-1,ne=o.tabbableGroups[X];O=ne.lastTabbableNode}}else{var oe=Qc(o.tabbableGroups,function(Re){var Y=Re.lastTabbableNode;return y===Y});if(oe<0&&(j.container===y||Xc(y)&&!Fl(y)&&!j.nextTabbableNode(y))&&(oe=M),oe>=0){var ae=oe===o.tabbableGroups.length-1?0:oe+1,D=o.tabbableGroups[ae];O=D.firstTabbableNode}}}else O=c("fallbackFocus");O&&(S.preventDefault(),g(O))},b=function(S){if(Vb(S)&&fs(i.escapeDeactivates,S)!==!1){S.preventDefault(),a.deactivate();return}if(qb(S)){p(S);return}},E=function(S){if(!fs(i.clickOutsideDeactivates,S)){var y=Hl(S);l(y)||fs(i.allowOutsideClick,S)||(S.preventDefault(),S.stopImmediatePropagation())}},v=function(){if(o.active)return Ef.activateTrap(a),o.delayInitialFocusTimer=i.delayInitialFocus?Tf(function(){g(u())}):g(u()),r.addEventListener("focusin",m,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",E,{capture:!0,passive:!1}),r.addEventListener("keydown",b,{capture:!0,passive:!1}),a},N=function(){if(o.active)return r.removeEventListener("focusin",m,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",E,!0),r.removeEventListener("keydown",b,!0),a};return a={activate:function(S){if(o.active)return this;var y=s(S,"onActivate"),O=s(S,"onPostActivate"),M=s(S,"checkCanFocusTrap");M||f(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,y&&y();var j=function(){M&&f(),v(),O&&O()};return M?(M(o.containers.concat()).then(j,j),this):(j(),this)},deactivate:function(S){if(!o.active)return this;clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,N(),o.active=!1,o.paused=!1,Ef.deactivateTrap(a);var y=s(S,"onDeactivate"),O=s(S,"onPostDeactivate"),M=s(S,"checkCanReturnFocus");y&&y();var j=s(S,"returnFocus","returnFocusOnDeactivate"),H=function(){Tf(function(){j&&g(d(o.nodeFocusedBeforeActivation)),O&&O()})};return j&&M?(M(d(o.nodeFocusedBeforeActivation)).then(H,H),this):(H(),this)},pause:function(){return o.paused||!o.active?this:(o.paused=!0,N(),this)},unpause:function(){return!o.paused||!o.active?this:(o.paused=!1,f(),v(),this)},updateContainerElements:function(S){var y=[].concat(S).filter(Boolean);return o.containers=y.map(function(O){return typeof O=="string"?r.querySelector(O):O}),o.active&&f(),this}},a.updateContainerElements(t),a},H5={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(It,function(){return function(n){var r={};function i(o){if(r[o])return r[o].exports;var a=r[o]={i:o,l:!1,exports:{}};return n[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=n,i.c=r,i.d=function(o,a,s){i.o(o,a)||Object.defineProperty(o,a,{enumerable:!0,get:s})},i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,a){if(a&1&&(o=i(o)),a&8||a&4&&typeof o=="object"&&o&&o.__esModule)return o;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:o}),a&2&&typeof o!="string")for(var l in o)i.d(s,l,(function(c){return o[c]}).bind(null,l));return s},i.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(a,"a",a),a},i.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},i.p="",i(i.s=0)}([function(n,r,i){i.r(r);var o=function(A){return Array.isArray(A)?A:[A]},a=function(A){return A instanceof Node},s=function(A){return A instanceof NodeList},l=function(A,V){if(A&&V){A=s(A)?A:[A];for(var re=0;re<A.length&&V(A[re],re,A.length)!==!0;re++);}},c=function(A){return console.error("[scroll-lock] ".concat(A))},u=function(A){if(Array.isArray(A)){var V=A.join(", ");return V}},f=function(A){var V=[];return l(A,function(re){return V.push(re)}),V},g=function(A,V){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:document;if(re&&f(ye.querySelectorAll(V)).indexOf(A)!==-1)return A;for(;(A=A.parentElement)&&f(ye.querySelectorAll(V)).indexOf(A)===-1;);return A},d=function(A,V){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:document,ye=f(re.querySelectorAll(V)).indexOf(A)!==-1;return ye},h=function(A){if(A){var V=getComputedStyle(A),re=V.overflow==="hidden";return re}},m=function(A){if(A){if(h(A))return!0;var V=A.scrollTop;return V<=0}},p=function(A){if(A){if(h(A))return!0;var V=A.scrollTop,re=A.scrollHeight,ye=V+A.offsetHeight;return ye>=re}},b=function(A){if(A){if(h(A))return!0;var V=A.scrollLeft;return V<=0}},E=function(A){if(A){if(h(A))return!0;var V=A.scrollLeft,re=A.scrollWidth,ye=V+A.offsetWidth;return ye>=re}},v=function(A){var V='textarea, [contenteditable="true"]';return d(A,V)},N=function(A){var V='input[type="range"]';return d(A,V)};i.d(r,"disablePageScroll",function(){return j}),i.d(r,"enablePageScroll",function(){return H}),i.d(r,"getScrollState",function(){return X}),i.d(r,"clearQueueScrollLocks",function(){return ne}),i.d(r,"getTargetScrollBarWidth",function(){return oe}),i.d(r,"getCurrentTargetScrollBarWidth",function(){return ae}),i.d(r,"getPageScrollBarWidth",function(){return D}),i.d(r,"getCurrentPageScrollBarWidth",function(){return Re}),i.d(r,"addScrollableTarget",function(){return Y}),i.d(r,"removeScrollableTarget",function(){return Pe}),i.d(r,"addScrollableSelector",function(){return we}),i.d(r,"removeScrollableSelector",function(){return C}),i.d(r,"addLockableTarget",function(){return R}),i.d(r,"addLockableSelector",function(){return fe}),i.d(r,"setFillGapMethod",function(){return $e}),i.d(r,"addFillGapTarget",function(){return vt}),i.d(r,"removeFillGapTarget",function(){return Je}),i.d(r,"addFillGapSelector",function(){return et}),i.d(r,"removeFillGapSelector",function(){return st}),i.d(r,"refillGaps",function(){return Et});function I($){for(var A=1;A<arguments.length;A++){var V=arguments[A]!=null?arguments[A]:{},re=Object.keys(V);typeof Object.getOwnPropertySymbols=="function"&&(re=re.concat(Object.getOwnPropertySymbols(V).filter(function(ye){return Object.getOwnPropertyDescriptor(V,ye).enumerable}))),re.forEach(function(ye){S($,ye,V[ye])})}return $}function S($,A,V){return A in $?Object.defineProperty($,A,{value:V,enumerable:!0,configurable:!0,writable:!0}):$[A]=V,$}var y=["padding","margin","width","max-width","none"],O=3,M={scroll:!0,queue:0,scrollableSelectors:["[data-scroll-lock-scrollable]"],lockableSelectors:["body","[data-scroll-lock-lockable]"],fillGapSelectors:["body","[data-scroll-lock-fill-gap]","[data-scroll-lock-lockable]"],fillGapMethod:y[0],startTouchY:0,startTouchX:0},j=function(A){M.queue<=0&&(M.scroll=!1,ee(),ze()),Y(A),M.queue++},H=function(A){M.queue>0&&M.queue--,M.queue<=0&&(M.scroll=!0,ve(),xn()),Pe(A)},X=function(){return M.scroll},ne=function(){M.queue=0},oe=function(A){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(a(A)){var re=A.style.overflowY;V?X()||(A.style.overflowY=A.getAttribute("data-scroll-lock-saved-overflow-y-property")):A.style.overflowY="scroll";var ye=ae(A);return A.style.overflowY=re,ye}else return 0},ae=function(A){if(a(A))if(A===document.body){var V=document.documentElement.clientWidth,re=window.innerWidth,ye=re-V;return ye}else{var Qt=A.style.borderLeftWidth,tt=A.style.borderRightWidth;A.style.borderLeftWidth="0px",A.style.borderRightWidth="0px";var _t=A.offsetWidth-A.clientWidth;return A.style.borderLeftWidth=Qt,A.style.borderRightWidth=tt,_t}else return 0},D=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return oe(document.body,A)},Re=function(){return ae(document.body)},Y=function(A){if(A){var V=o(A);V.map(function(re){l(re,function(ye){a(ye)?ye.setAttribute("data-scroll-lock-scrollable",""):c('"'.concat(ye,'" is not a Element.'))})})}},Pe=function(A){if(A){var V=o(A);V.map(function(re){l(re,function(ye){a(ye)?ye.removeAttribute("data-scroll-lock-scrollable"):c('"'.concat(ye,'" is not a Element.'))})})}},we=function(A){if(A){var V=o(A);V.map(function(re){M.scrollableSelectors.push(re)})}},C=function(A){if(A){var V=o(A);V.map(function(re){M.scrollableSelectors=M.scrollableSelectors.filter(function(ye){return ye!==re})})}},R=function(A){if(A){var V=o(A);V.map(function(re){l(re,function(ye){a(ye)?ye.setAttribute("data-scroll-lock-lockable",""):c('"'.concat(ye,'" is not a Element.'))})}),X()||ee()}},fe=function(A){if(A){var V=o(A);V.map(function(re){M.lockableSelectors.push(re)}),X()||ee(),et(A)}},$e=function(A){if(A)if(y.indexOf(A)!==-1)M.fillGapMethod=A,Et();else{var V=y.join(", ");c('"'.concat(A,`" method is not available!
8
+ Available fill gap methods: `).concat(V,"."))}},vt=function(A){if(A){var V=o(A);V.map(function(re){l(re,function(ye){a(ye)?(ye.setAttribute("data-scroll-lock-fill-gap",""),M.scroll||cr(ye)):c('"'.concat(ye,'" is not a Element.'))})})}},Je=function(A){if(A){var V=o(A);V.map(function(re){l(re,function(ye){a(ye)?(ye.removeAttribute("data-scroll-lock-fill-gap"),M.scroll||kn(ye)):c('"'.concat(ye,'" is not a Element.'))})})}},et=function(A){if(A){var V=o(A);V.map(function(re){M.fillGapSelectors.indexOf(re)===-1&&(M.fillGapSelectors.push(re),M.scroll||Zn(re))})}},st=function(A){if(A){var V=o(A);V.map(function(re){M.fillGapSelectors=M.fillGapSelectors.filter(function(ye){return ye!==re}),M.scroll||nn(re)})}},Et=function(){M.scroll||ze()},ee=function(){var A=u(M.lockableSelectors);qe(A)},ve=function(){var A=u(M.lockableSelectors);gt(A)},qe=function(A){var V=document.querySelectorAll(A);l(V,function(re){Kn(re)})},gt=function(A){var V=document.querySelectorAll(A);l(V,function(re){Ir(re)})},Kn=function(A){if(a(A)&&A.getAttribute("data-scroll-lock-locked")!=="true"){var V=window.getComputedStyle(A);A.setAttribute("data-scroll-lock-saved-overflow-y-property",V.overflowY),A.setAttribute("data-scroll-lock-saved-inline-overflow-property",A.style.overflow),A.setAttribute("data-scroll-lock-saved-inline-overflow-y-property",A.style.overflowY),A.style.overflow="hidden",A.setAttribute("data-scroll-lock-locked","true")}},Ir=function(A){a(A)&&A.getAttribute("data-scroll-lock-locked")==="true"&&(A.style.overflow=A.getAttribute("data-scroll-lock-saved-inline-overflow-property"),A.style.overflowY=A.getAttribute("data-scroll-lock-saved-inline-overflow-y-property"),A.removeAttribute("data-scroll-lock-saved-overflow-property"),A.removeAttribute("data-scroll-lock-saved-inline-overflow-property"),A.removeAttribute("data-scroll-lock-saved-inline-overflow-y-property"),A.removeAttribute("data-scroll-lock-locked"))},ze=function(){M.fillGapSelectors.map(function(A){Zn(A)})},xn=function(){M.fillGapSelectors.map(function(A){nn(A)})},Zn=function(A){var V=document.querySelectorAll(A),re=M.lockableSelectors.indexOf(A)!==-1;l(V,function(ye){cr(ye,re)})},cr=function(A){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(a(A)){var re;if(A.getAttribute("data-scroll-lock-lockable")===""||V)re=oe(A,!0);else{var ye=g(A,u(M.lockableSelectors));re=oe(ye,!0)}A.getAttribute("data-scroll-lock-filled-gap")==="true"&&kn(A);var Qt=window.getComputedStyle(A);if(A.setAttribute("data-scroll-lock-filled-gap","true"),A.setAttribute("data-scroll-lock-current-fill-gap-method",M.fillGapMethod),M.fillGapMethod==="margin"){var tt=parseFloat(Qt.marginRight);A.style.marginRight="".concat(tt+re,"px")}else if(M.fillGapMethod==="width")A.style.width="calc(100% - ".concat(re,"px)");else if(M.fillGapMethod==="max-width")A.style.maxWidth="calc(100% - ".concat(re,"px)");else if(M.fillGapMethod==="padding"){var _t=parseFloat(Qt.paddingRight);A.style.paddingRight="".concat(_t+re,"px")}}},nn=function(A){var V=document.querySelectorAll(A);l(V,function(re){kn(re)})},kn=function(A){if(a(A)&&A.getAttribute("data-scroll-lock-filled-gap")==="true"){var V=A.getAttribute("data-scroll-lock-current-fill-gap-method");A.removeAttribute("data-scroll-lock-filled-gap"),A.removeAttribute("data-scroll-lock-current-fill-gap-method"),V==="margin"?A.style.marginRight="":V==="width"?A.style.width="":V==="max-width"?A.style.maxWidth="":V==="padding"&&(A.style.paddingRight="")}},Fn=function(A){Et()},rn=function(A){M.scroll||(M.startTouchY=A.touches[0].clientY,M.startTouchX=A.touches[0].clientX)},Hn=function(A){if(!M.scroll){var V=M.startTouchY,re=M.startTouchX,ye=A.touches[0].clientY,Qt=A.touches[0].clientX;if(A.touches.length<2){var tt=u(M.scrollableSelectors),_t={up:V<ye,down:V>ye,left:re<Qt,right:re>Qt},qt={up:V+O<ye,down:V-O>ye,left:re+O<Qt,right:re-O>Qt},zn=function yt(wt){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(wt){var zi=g(wt,tt,!1);if(N(wt))return!1;if(Tn||v(wt)&&g(wt,tt)||d(wt,tt)){var er=!1;b(wt)&&E(wt)?(_t.up&&m(wt)||_t.down&&p(wt))&&(er=!0):m(wt)&&p(wt)?(_t.left&&b(wt)||_t.right&&E(wt))&&(er=!0):(qt.up&&m(wt)||qt.down&&p(wt)||qt.left&&b(wt)||qt.right&&E(wt))&&(er=!0),er&&(zi?yt(zi,!0):A.cancelable&&A.preventDefault())}else yt(zi)}else A.cancelable&&A.preventDefault()};zn(A.target)}}},ur=function(A){M.scroll||(M.startTouchY=0,M.startTouchX=0)};typeof window<"u"&&window.addEventListener("resize",Fn),typeof document<"u"&&(document.addEventListener("touchstart",rn),document.addEventListener("touchmove",Hn,{passive:!1}),document.addEventListener("touchend",ur));var Vr={hide:function(A){c(`"hide" is deprecated! Use "disablePageScroll" instead.
9
+ https://github.com/FL3NKEY/scroll-lock#disablepagescrollscrollabletarget`),j(A)},show:function(A){c(`"show" is deprecated! Use "enablePageScroll" instead.
10
+ https://github.com/FL3NKEY/scroll-lock#enablepagescrollscrollabletarget`),H(A)},toggle:function(A){c('"toggle" is deprecated! Do not use it.'),X()?j():H(A)},getState:function(){return c(`"getState" is deprecated! Use "getScrollState" instead.
11
+ https://github.com/FL3NKEY/scroll-lock#getscrollstate`),X()},getWidth:function(){return c(`"getWidth" is deprecated! Use "getPageScrollBarWidth" instead.
12
+ https://github.com/FL3NKEY/scroll-lock#getpagescrollbarwidth`),D()},getCurrentWidth:function(){return c(`"getCurrentWidth" is deprecated! Use "getCurrentPageScrollBarWidth" instead.
13
+ https://github.com/FL3NKEY/scroll-lock#getcurrentpagescrollbarwidth`),Re()},setScrollableTargets:function(A){c(`"setScrollableTargets" is deprecated! Use "addScrollableTarget" instead.
14
+ https://github.com/FL3NKEY/scroll-lock#addscrollabletargetscrollabletarget`),Y(A)},setFillGapSelectors:function(A){c(`"setFillGapSelectors" is deprecated! Use "addFillGapSelector" instead.
15
+ https://github.com/FL3NKEY/scroll-lock#addfillgapselectorfillgapselector`),et(A)},setFillGapTargets:function(A){c(`"setFillGapTargets" is deprecated! Use "addFillGapTarget" instead.
16
+ https://github.com/FL3NKEY/scroll-lock#addfillgaptargetfillgaptarget`),vt(A)},clearQueue:function(){c(`"clearQueue" is deprecated! Use "clearQueueScrollLocks" instead.
17
+ https://github.com/FL3NKEY/scroll-lock#clearqueuescrolllocks`),ne()}},Jn=I({disablePageScroll:j,enablePageScroll:H,getScrollState:X,clearQueueScrollLocks:ne,getTargetScrollBarWidth:oe,getCurrentTargetScrollBarWidth:ae,getPageScrollBarWidth:D,getCurrentPageScrollBarWidth:Re,addScrollableSelector:we,removeScrollableSelector:C,addScrollableTarget:Y,removeScrollableTarget:Pe,addLockableSelector:fe,addLockableTarget:R,addFillGapSelector:et,removeFillGapSelector:st,addFillGapTarget:vt,removeFillGapTarget:Je,setFillGapMethod:$e,refillGaps:Et,_state:M},Vr);r.default=Jn}]).default})})(H5);var hs=H5.exports;function uo(e){return e.split("-")[0]}function Y1(e){return e.split("-")[1]}function Va(e){return["top","bottom"].includes(uo(e))?"x":"y"}function Gu(e){return e==="y"?"height":"width"}function yf(e,t,n){let{reference:r,floating:i}=e;const o=r.x+r.width/2-i.width/2,a=r.y+r.height/2-i.height/2,s=Va(t),l=Gu(s),c=r[l]/2-i[l]/2,u=s==="x";let f;switch(uo(t)){case"top":f={x:o,y:r.y-i.height};break;case"bottom":f={x:o,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:a};break;case"left":f={x:r.x-i.width,y:a};break;default:f={x:r.x,y:r.y}}switch(Y1(t)){case"start":f[s]-=c*(n&&u?-1:1);break;case"end":f[s]+=c*(n&&u?-1:1)}return f}const Yb=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:u}=yf(l,r,s),f=r,g={};for(let d=0;d<o.length;d++){const{name:h,fn:m}=o[d],{x:p,y:b,data:E,reset:v}=await m({x:c,y:u,initialPlacement:r,placement:f,strategy:i,middlewareData:g,rects:l,platform:a,elements:{reference:e,floating:t}});c=p??c,u=b??u,g={...g,[h]:{...g[h],...E}},v&&(typeof v=="object"&&(v.placement&&(f=v.placement),v.rects&&(l=v.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):v.rects),{x:c,y:u}=yf(l,f,s)),d=-1)}return{x:c,y:u,placement:f,strategy:i,middlewareData:g}};function Ku(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function Js(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function el(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:g=!1,padding:d=0}=t,h=Ku(d),m=s[g?f==="floating"?"reference":"floating":f],p=Js(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(m)))==null||n?m:m.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),b=Js(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f==="floating"?{...a.floating,x:r,y:i}:a.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),strategy:l}):a[f]);return{top:p.top-b.top+h.top,bottom:b.bottom-p.bottom+h.bottom,left:p.left-b.left+h.left,right:b.right-p.right+h.right}}const z5=Math.min,to=Math.max;function tu(e,t,n){return to(e,z5(t,n))}const U5=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e??{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(n==null)return{};const c=Ku(r),u={x:i,y:o},f=Va(a),g=Gu(f),d=await l.getDimensions(n),h=f==="y"?"top":"left",m=f==="y"?"bottom":"right",p=s.reference[g]+s.reference[f]-u[f]-s.floating[g],b=u[f]-s.reference[f],E=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n)),v=E?f==="y"?E.clientHeight||0:E.clientWidth||0:0,N=p/2-b/2,I=c[h],S=v-d[g]-c[m],y=v/2-d[g]/2+N,O=tu(I,y,S);return{data:{[f]:O,centerOffset:y-O}}}}),Xb={left:"right",right:"left",bottom:"top",top:"bottom"};function N1(e){return e.replace(/left|right|bottom|top/g,t=>Xb[t])}function Qb(e,t,n){n===void 0&&(n=!1);const r=Y1(e),i=Va(e),o=Gu(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=N1(a)),{main:a,cross:N1(a)}}const Zb={start:"end",end:"start"};function Sf(e){return e.replace(/start|end/g,t=>Zb[t])}const j5=["top","right","bottom","left"];j5.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const X1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:o,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",flipAlignment:d=!0,...h}=e,m=uo(r),p=f||(m===a||!d?[N1(a)]:function(O){const M=N1(O);return[Sf(O),M,Sf(M)]}(a)),b=[a,...p],E=await el(t,h),v=[];let N=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&v.push(E[m]),u){const{main:O,cross:M}=Qb(r,o,await(s.isRTL==null?void 0:s.isRTL(l.floating)));v.push(E[O],E[M])}if(N=[...N,{placement:r,overflows:v}],!v.every(O=>O<=0)){var I,S;const O=((I=(S=i.flip)==null?void 0:S.index)!=null?I:0)+1,M=b[O];if(M)return{data:{index:O,overflows:N},reset:{placement:M}};let j="bottom";switch(g){case"bestFit":{var y;const H=(y=N.map(X=>[X,X.overflows.filter(ne=>ne>0).reduce((ne,oe)=>ne+oe,0)]).sort((X,ne)=>X[1]-ne[1])[0])==null?void 0:y[0].placement;H&&(j=H);break}case"initialPlacement":j=a}if(r!==j)return{reset:{placement:j}}}return{}}}};function Cf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wf(e){return j5.some(t=>e[t]>=0)}const G5=function(e){let{strategy:t="referenceHidden",...n}=e===void 0?{}:e;return{name:"hide",async fn(r){const{rects:i}=r;switch(t){case"referenceHidden":{const o=Cf(await el(r,{...n,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:wf(o)}}}case"escaped":{const o=Cf(await el(r,{...n,altBoundary:!0}),i.floating);return{data:{escapedOffsets:o,escaped:wf(o)}}}default:return{}}}}},Q1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s}=t,l=function(c,u,f,g){g===void 0&&(g=!1);const d=uo(c),h=Y1(c),m=Va(c)==="x",p=["left","top"].includes(d)?-1:1,b=g&&m?-1:1,E=typeof f=="function"?f({...u,placement:c}):f;let{mainAxis:v,crossAxis:N,alignmentAxis:I}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...E};return h&&typeof I=="number"&&(N=h==="end"?-1*I:I),m?{x:N*b,y:v*p}:{x:v*p,y:N*b}}(i,o,e,await(a.isRTL==null?void 0:a.isRTL(s.floating)));return{x:n+l.x,y:r+l.y,data:l}}}};function Jb(e){return e==="x"?"y":"x"}const Z1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:p=>{let{x:b,y:E}=p;return{x:b,y:E}}},...l}=e,c={x:n,y:r},u=await el(t,l),f=Va(uo(i)),g=Jb(f);let d=c[f],h=c[g];if(o){const p=f==="y"?"bottom":"right";d=tu(d+u[f==="y"?"top":"left"],d,d-u[p])}if(a){const p=g==="y"?"bottom":"right";h=tu(h+u[g==="y"?"top":"left"],h,h-u[p])}const m=s.fn({...t,[f]:d,[g]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},e7=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:a,...s}=e,l=await el(t,s),c=uo(n),u=Y1(n);let f,g;c==="top"||c==="bottom"?(f=c,g=u===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(g=c,f=u==="end"?"top":"bottom");const d=to(l.left,0),h=to(l.right,0),m=to(l.top,0),p=to(l.bottom,0),b={height:r.floating.height-(["left","right"].includes(n)?2*(m!==0||p!==0?m+p:to(l.top,l.bottom)):l[f]),width:r.floating.width-(["top","bottom"].includes(n)?2*(d!==0||h!==0?d+h:to(l.left,l.right)):l[g])},E=await i.getDimensions(o.floating);a==null||a({...b,...r});const v=await i.getDimensions(o.floating);return E.width!==v.width||E.height!==v.height?{reset:{rects:!0}}:{}}}},K5=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:r,elements:i,rects:o,platform:a,strategy:s}=t,{padding:l=2,x:c,y:u}=e,f=Js(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:o.reference,offsetParent:await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),strategy:s}):o.reference),g=(n=await(a.getClientRects==null?void 0:a.getClientRects(i.reference)))!=null?n:[],d=Ku(l),h=await a.getElementRects({reference:{getBoundingClientRect:function(){var m;if(g.length===2&&g[0].left>g[1].right&&c!=null&&u!=null)return(m=g.find(p=>c>p.left-d.left&&c<p.right+d.right&&u>p.top-d.top&&u<p.bottom+d.bottom))!=null?m:f;if(g.length>=2){if(Va(r)==="x"){const S=g[0],y=g[g.length-1],O=uo(r)==="top",M=S.top,j=y.bottom,H=O?S.left:y.left,X=O?S.right:y.right;return{top:M,bottom:j,left:H,right:X,width:X-H,height:j-M,x:H,y:M}}const p=uo(r)==="left",b=to(...g.map(S=>S.right)),E=z5(...g.map(S=>S.left)),v=g.filter(S=>p?S.left===E:S.right===b),N=v[0].top,I=v[v.length-1].bottom;return{top:N,bottom:I,left:E,right:b,width:b-E,height:I-N,x:E,y:N}}return f}},floating:i.floating,strategy:s});return o.reference.x!==h.reference.x||o.reference.y!==h.reference.y||o.reference.width!==h.reference.width||o.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}};function W5(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Li(e){if(e==null)return window;if(!W5(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function hl(e){return Li(e).getComputedStyle(e)}function ki(e){return W5(e)?"":e?(e.nodeName||"").toLowerCase():""}function oi(e){return e instanceof Li(e).HTMLElement}function fo(e){return e instanceof Li(e).Element}function Wu(e){return e instanceof Li(e).ShadowRoot||e instanceof ShadowRoot}function J1(e){const{overflow:t,overflowX:n,overflowY:r}=hl(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function t7(e){return["table","td","th"].includes(ki(e))}function Af(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=hl(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"}function V5(){return!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}const kf=Math.min,Hs=Math.max,I1=Math.round;function Oi(e,t,n){var r,i,o,a;t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&oi(e)&&(l=e.offsetWidth>0&&I1(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&I1(s.height)/e.offsetHeight||1);const u=fo(e)?Li(e):window,f=!V5()&&n,g=(s.left+(f&&(r=(i=u.visualViewport)==null?void 0:i.offsetLeft)!=null?r:0))/l,d=(s.top+(f&&(o=(a=u.visualViewport)==null?void 0:a.offsetTop)!=null?o:0))/c,h=s.width/l,m=s.height/c;return{width:h,height:m,top:d,right:g+h,bottom:d+m,left:g,x:g,y:d}}function oo(e){return(t=e,(t instanceof Li(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function ec(e){return fo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function q5(e){return Oi(oo(e)).left+ec(e).scrollLeft}function n7(e,t,n){const r=oi(t),i=oo(t),o=Oi(e,r&&function(l){const c=Oi(l);return I1(c.width)!==l.offsetWidth||I1(c.height)!==l.offsetHeight}(t),n==="fixed");let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&n!=="fixed")if((ki(t)!=="body"||J1(i))&&(a=ec(t)),oi(t)){const l=Oi(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else i&&(s.x=q5(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function Y5(e){return ki(e)==="html"?e:e.assignedSlot||e.parentNode||(Wu(e)?e.host:null)||oo(e)}function Of(e){return oi(e)&&getComputedStyle(e).position!=="fixed"?e.offsetParent:null}function nu(e){const t=Li(e);let n=Of(e);for(;n&&t7(n)&&getComputedStyle(n).position==="static";)n=Of(n);return n&&(ki(n)==="html"||ki(n)==="body"&&getComputedStyle(n).position==="static"&&!Af(n))?t:n||function(r){let i=Y5(r);for(Wu(i)&&(i=i.host);oi(i)&&!["html","body"].includes(ki(i));){if(Af(i))return i;i=i.parentNode}return null}(e)||t}function Nf(e){if(oi(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Oi(e);return{width:t.width,height:t.height}}function X5(e){const t=Y5(e);return["html","body","#document"].includes(ki(t))?e.ownerDocument.body:oi(t)&&J1(t)?t:X5(t)}function R1(e,t){var n;t===void 0&&(t=[]);const r=X5(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Li(r),a=i?[o].concat(o.visualViewport||[],J1(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(R1(a))}function If(e,t,n){return t==="viewport"?Js(function(r,i){const o=Li(r),a=oo(r),s=o.visualViewport;let l=a.clientWidth,c=a.clientHeight,u=0,f=0;if(s){l=s.width,c=s.height;const g=V5();(g||!g&&i==="fixed")&&(u=s.offsetLeft,f=s.offsetTop)}return{width:l,height:c,x:u,y:f}}(e,n)):fo(t)?function(r,i){const o=Oi(r,!1,i==="fixed"),a=o.top+r.clientTop,s=o.left+r.clientLeft;return{top:a,left:s,x:s,y:a,right:s+r.clientWidth,bottom:a+r.clientHeight,width:r.clientWidth,height:r.clientHeight}}(t,n):Js(function(r){var i;const o=oo(r),a=ec(r),s=(i=r.ownerDocument)==null?void 0:i.body,l=Hs(o.scrollWidth,o.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=Hs(o.scrollHeight,o.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let u=-a.scrollLeft+q5(r);const f=-a.scrollTop;return hl(s||o).direction==="rtl"&&(u+=Hs(o.clientWidth,s?s.clientWidth:0)-l),{width:l,height:c,x:u,y:f}}(oo(e)))}function r7(e){const t=R1(e),n=["absolute","fixed"].includes(hl(e).position)&&oi(e)?nu(e):e;return fo(n)?t.filter(r=>fo(r)&&function(i,o){const a=o==null||o.getRootNode==null?void 0:o.getRootNode();if(i!=null&&i.contains(o))return!0;if(a&&Wu(a)){let s=o;do{if(s&&i===s)return!0;s=s.parentNode||s.host}while(s)}return!1}(r,n)&&ki(r)!=="body"):[]}const i7={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?r7(t):[].concat(n),r],a=o[0],s=o.reduce((l,c)=>{const u=If(t,c,i);return l.top=Hs(u.top,l.top),l.right=kf(u.right,l.right),l.bottom=kf(u.bottom,l.bottom),l.left=Hs(u.left,l.left),l},If(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=oi(n),o=oo(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&r!=="fixed")&&((ki(n)!=="body"||J1(o))&&(a=ec(n)),oi(n))){const l=Oi(n,!0);s.x=l.x+n.clientLeft,s.y=l.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:fo,getDimensions:Nf,getOffsetParent:nu,getDocumentElement:oo,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:n7(t,nu(n),r),floating:{...Nf(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>hl(e).direction==="rtl"};function tc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r;let l=!1;const c=i&&!s,u=o&&!s,f=a&&!s,g=c||u?[...fo(e)?R1(e):[],...R1(t)]:[];g.forEach(p=>{c&&p.addEventListener("scroll",n,{passive:!0}),u&&p.addEventListener("resize",n)});let d,h=null;f&&(h=new ResizeObserver(n),fo(e)&&h.observe(e),h.observe(t));let m=s?Oi(e):null;return s&&function p(){if(l)return;const b=Oi(e);!m||b.x===m.x&&b.y===m.y&&b.width===m.width&&b.height===m.height||n(),m=b,d=requestAnimationFrame(p)}(),()=>{var p;l=!0,g.forEach(b=>{c&&b.removeEventListener("scroll",n),u&&b.removeEventListener("resize",n)}),(p=h)==null||p.disconnect(),h=null,s&&cancelAnimationFrame(d)}}const nc=(e,t,n)=>Yb(e,t,{platform:i7,...n});var o7=Object.defineProperty,a7=Object.defineProperties,s7=Object.getOwnPropertyDescriptors,Rf=Object.getOwnPropertySymbols,l7=Object.prototype.hasOwnProperty,c7=Object.prototype.propertyIsEnumerable,Mf=(e,t,n)=>t in e?o7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,me=(e,t)=>{for(var n in t||(t={}))l7.call(t,n)&&Mf(e,n,t[n]);if(Rf)for(var n of Rf(t))c7.call(t,n)&&Mf(e,n,t[n]);return e},ni=(e,t)=>a7(e,s7(t));function u7(e){return typeof e=="number"}function u1(e){return Array.isArray(e)}function rc(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!u1(e)}function $n(e){return typeof e=="function"}function Q5(e){return e==null}function d7(e){return Object.prototype.toString.call(e)==="[object String]"}function f7(e,t){return rc(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function Cn(e,t){return e&&($n(e)?e(t):e[0](e[1],t)),t==null?void 0:t.defaultPrevented}function Ln(...e){return function(t){e.some(n=>Cn(n,t))}}const Z5=()=>typeof Storage<"u",J5="hope-ui-color-mode",Ha={light:"hope-ui-light",dark:"hope-ui-dark"};function h7(){if(!Z5())return null;try{return localStorage.getItem(J5)}catch{return null}}function g7(e){if(Z5())try{localStorage.setItem(J5,e)}catch{}}function m7(e){const t=h7();return t||(e==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e)}function p7(e){return e?Ha.dark:Ha.light}function x7(e){const t=document.body;t.classList.add(p7(e)),t.classList.remove(e?Ha.light:Ha.dark)}const em={px:"1px","0_5":"0.125rem",1:"0.25rem","1_5":"0.375rem",2:"0.5rem","2_5":"0.625rem",3:"0.75rem","3_5":"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},va=ni(me({},em),{prose:"65ch",max:"max-content",min:"min-content",full:"100%",screenW:"100vw",screenH:"100vh",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",containerSm:"640px",containerMd:"768px",containerLg:"1024px",containerXl:"1280px",container2xl:"1536px"}),b7={sm:`(min-width: ${va.containerSm})`,md:`(min-width: ${va.containerMd})`,lg:`(min-width: ${va.containerLg})`,xl:`(min-width: ${va.containerXl})`,"2xl":`(min-width: ${va.container2xl})`,"reduce-motion":"(prefers-reduced-motion: reduce)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},_7={bg:e=>({background:e}),bgColor:e=>({backgroundColor:e})},v7={borderX:e=>({borderLeft:e,borderRight:e}),borderY:e=>({borderTop:e,borderBottom:e})},E7={d:e=>({display:e})},T7={m:e=>({margin:e}),mt:e=>({marginTop:e}),mr:e=>({marginRight:e}),marginStart:e=>({marginInlineStart:e}),ms:e=>({marginInlineStart:e}),mb:e=>({marginBottom:e}),ml:e=>({marginLeft:e}),marginEnd:e=>({marginInlineEnd:e}),me:e=>({marginInlineEnd:e}),mx:e=>({marginInlineStart:e,marginInlineEnd:e}),my:e=>({marginTop:e,marginBottom:e}),spaceX:e=>({"& > * + *":{marginLeft:e}}),spaceY:e=>({"& > * + *":{marginTop:e}})},y7={p:e=>({padding:e}),pt:e=>({paddingTop:e}),pr:e=>({paddingRight:e}),paddingStart:e=>({paddingInlineStart:e}),ps:e=>({paddingInlineStart:e}),pb:e=>({paddingBottom:e}),pl:e=>({paddingLeft:e}),pe:e=>({paddingInlineEnd:e}),paddingEnd:e=>({paddingInlineEnd:e}),px:e=>({paddingInlineStart:e,paddingInlineEnd:e}),py:e=>({paddingTop:e,paddingBottom:e})},S7={pos:e=>({position:e})};function hi(...e){return e.map(t=>`[role=group]${t} &, [data-group]${t} &, .group${t} &`).join(", ")}function qr(...e){return e.map(t=>`[data-peer]${t} ~ &, .peer${t} ~ &`).join(", ")}const C7={_hover:e=>({"&:hover, &[data-hover]":e}),_active:e=>({"&:active, &[data-active]":e}),_focus:e=>({"&:focus, &[data-focus]":e}),_highlighted:e=>({"&[data-highlighted]":e}),_focusWithin:e=>({"&:focus-within":e}),_focusVisible:e=>({"&:focus-visible":e}),_disabled:e=>({"&[disabled], &[aria-disabled=true], &[data-disabled]":e}),_readOnly:e=>({"&[aria-readonly=true], &[readonly], &[data-readonly]":e}),_before:e=>({"&::before":e}),_after:e=>({"&::after":e}),_empty:e=>({"&:empty":e}),_expanded:e=>({"&[aria-expanded=true], &[data-expanded]":e}),_checked:e=>({"&[aria-checked=true], &[data-checked]":e}),_grabbed:e=>({"&[aria-grabbed=true], &[data-grabbed]":e}),_pressed:e=>({"&[aria-pressed=true], &[data-pressed]":e}),_invalid:e=>({"&[aria-invalid=true], &[data-invalid]":e}),_valid:e=>({"&[data-valid], &[data-state=valid]":e}),_loading:e=>({"&[data-loading], &[aria-busy=true]":e}),_selected:e=>({"&[aria-selected=true], &[data-selected]":e}),_hidden:e=>({"&[hidden], &[data-hidden]":e}),_even:e=>({"&:nth-of-type(even)":e}),_odd:e=>({"&:nth-of-type(odd)":e}),_first:e=>({"&:first-of-type":e}),_last:e=>({"&:last-of-type":e}),_notFirst:e=>({"&:not(:first-of-type)":e}),_notLast:e=>({"&:not(:last-of-type)":e}),_visited:e=>({"&:visited":e}),_activeLink:e=>({"&[aria-current=page]":e}),_activeStep:e=>({"&[aria-current=step]":e}),_indeterminate:e=>({"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]":e}),_groupHover:e=>({[hi(":hover","[data-hover]")]:e}),_peerHover:e=>({[qr(":hover","[data-hover]")]:e}),_groupFocus:e=>({[hi(":focus","[data-focus]")]:e}),_peerFocus:e=>({[qr(":focus","[data-focus]")]:e}),_groupFocusVisible:e=>({[hi(":focus-visible")]:e}),_peerFocusVisible:e=>({[qr(":focus-visible")]:e}),_groupActive:e=>({[hi(":active","[data-active]")]:e}),_peerActive:e=>({[qr(":active","[data-active]")]:e}),_groupSelected:e=>({[hi("[aria-selected=true]","[data-selected]")]:e}),_peerSelected:e=>({[qr("[aria-selected=true]","[data-selected]")]:e}),_groupDisabled:e=>({[hi(":disabled","[data-disabled]")]:e}),_peerDisabled:e=>({[qr(":disabled","[data-disabled]")]:e}),_groupInvalid:e=>({[hi(":invalid","[data-invalid]")]:e}),_peerInvalid:e=>({[qr(":invalid","[data-invalid]")]:e}),_groupChecked:e=>({[hi(":checked","[data-checked]")]:e}),_peerChecked:e=>({[qr(":checked","[data-checked]")]:e}),_groupFocusWithin:e=>({[hi(":focus-within")]:e}),_peerFocusWithin:e=>({[qr(":focus-within")]:e}),_peerPlaceholderShown:e=>({[qr(":placeholder-shown")]:e}),_placeholder:e=>({"&::placeholder":e}),_placeholderShown:e=>({"&:placeholder-shown":e}),_fullScreen:e=>({"&:fullscreen":e}),_selection:e=>({"&::selection":e}),_mediaDark:e=>({"@media (prefers-color-scheme: dark)":e}),_mediaReduceMotion:e=>({"@media (prefers-reduced-motion: reduce)":e}),_dark:e=>({".hope-ui-dark &":e}),_light:e=>({".hope-ui-light &":e})},w7={borderTopRadius:e=>({borderTopLeftRadius:e,borderTopRightRadius:e}),borderRightRadius:e=>({borderTopRightRadius:e,borderBottomRightRadius:e}),borderStartRadius:e=>({borderStartStartRadius:e,borderEndStartRadius:e}),borderBottomRadius:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e}),borderLeftRadius:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e}),borderEndRadius:e=>({borderStartEndRadius:e,borderEndEndRadius:e}),rounded:e=>({borderRadius:e}),roundedTop:e=>({borderTopLeftRadius:e,borderTopRightRadius:e}),roundedRight:e=>({borderTopRightRadius:e,borderBottomRightRadius:e}),roundedStart:e=>({borderStartStartRadius:e,borderEndStartRadius:e}),roundedBottom:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e}),roundedLeft:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e}),roundedEnd:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},A7={shadow:e=>({boxShadow:e})},k7={w:e=>({width:e}),minW:e=>({minWidth:e}),maxW:e=>({maxWidth:e}),h:e=>({height:e}),minH:e=>({minHeight:e}),maxH:e=>({maxHeight:e}),boxSize:e=>({width:e,height:e})},O7={noOfLines:e=>({overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":e})},N7=me(me(me(me(me(me(me(me(me(me(me({},_7),v7),E7),S7),C7),w7),T7),y7),A7),k7),O7),I7={blackAlpha1:"#00000003",blackAlpha2:"#00000007",blackAlpha3:"#0000000c",blackAlpha4:"#00000012",blackAlpha5:"#00000017",blackAlpha6:"#0000001d",blackAlpha7:"#00000024",blackAlpha8:"#00000038",blackAlpha9:"#00000070",blackAlpha10:"#0000007a",blackAlpha11:"#00000090",blackAlpha12:"#000000e8"},R7={whiteAlpha1:"#ffffff00",whiteAlpha2:"#ffffff03",whiteAlpha3:"#ffffff09",whiteAlpha4:"#ffffff0e",whiteAlpha5:"#ffffff16",whiteAlpha6:"#ffffff20",whiteAlpha7:"#ffffff2d",whiteAlpha8:"#ffffff3f",whiteAlpha9:"#ffffff62",whiteAlpha10:"#ffffff72",whiteAlpha11:"#ffffff97",whiteAlpha12:"#ffffffeb"},M7=me(me({},I7),R7),L7={primary1:"#fafdfe",primary2:"#f2fcfd",primary3:"#e7f9fb",primary4:"#d8f3f6",primary5:"#c4eaef",primary6:"#aadee6",primary7:"#84cdda",primary8:"#3db9cf",primary9:"#05a2c2",primary10:"#0894b3",primary11:"#0c7792",primary12:"#04313c"},P7={accent1:"#fdfcfe",accent2:"#fbfaff",accent3:"#f5f2ff",accent4:"#ede9fe",accent5:"#e4defc",accent6:"#d7cff9",accent7:"#c4b8f3",accent8:"#aa99ec",accent9:"#6e56cf",accent10:"#644fc1",accent11:"#5746af",accent12:"#20134b"},D7={neutral1:"#fbfcfd",neutral2:"#f8f9fa",neutral3:"#f1f3f5",neutral4:"#eceef0",neutral5:"#e6e8eb",neutral6:"#dfe3e6",neutral7:"#d7dbdf",neutral8:"#c1c8cd",neutral9:"#889096",neutral10:"#7e868c",neutral11:"#687076",neutral12:"#11181c"},$7={success1:"#fbfefc",success2:"#f2fcf5",success3:"#e9f9ee",success4:"#ddf3e4",success5:"#ccebd7",success6:"#b4dfc4",success7:"#92ceac",success8:"#5bb98c",success9:"#30a46c",success10:"#299764",success11:"#18794e",success12:"#153226"},B7={info1:"#fbfdff",info2:"#f5faff",info3:"#edf6ff",info4:"#e1f0ff",info5:"#cee7fe",info6:"#b7d9f8",info7:"#96c7f2",info8:"#5eb0ef",info9:"#0091ff",info10:"#0081f1",info11:"#006adc",info12:"#00254d"},F7={warning1:"#fefdfb",warning2:"#fff9ed",warning3:"#fff4d5",warning4:"#ffecbc",warning5:"#ffe3a2",warning6:"#ffd386",warning7:"#f3ba63",warning8:"#ee9d2b",warning9:"#ffb224",warning10:"#ffa01c",warning11:"#ad5700",warning12:"#4e2009"},H7={danger1:"#fffcfc",danger2:"#fff8f8",danger3:"#ffefef",danger4:"#ffe5e5",danger5:"#fdd8d8",danger6:"#f9c6c6",danger7:"#f3aeaf",danger8:"#eb9091",danger9:"#e5484d",danger10:"#dc3d43",danger11:"#cd2b31",danger12:"#381316"},z7={loContrast:"white",background:"$loContrast",focusRing:"#96c7f2",closeButtonHoverBackground:"$blackAlpha4",closeButtonActiveBackground:"$blackAlpha5",progressStripe:"$whiteAlpha6"},U7=me(me(me(me(me(me(me(me({},L7),P7),D7),$7),B7),F7),H7),z7),j7={primary1:"#07191d",primary2:"#061e24",primary3:"#072830",primary4:"#07303b",primary5:"#073844",primary6:"#064150",primary7:"#045063",primary8:"#00647d",primary9:"#05a2c2",primary10:"#00b1cc",primary11:"#00c2d7",primary12:"#e1f8fa"},G7={accent1:"#17151f",accent2:"#1c172b",accent3:"#251e40",accent4:"#2c2250",accent5:"#32275f",accent6:"#392c72",accent7:"#443592",accent8:"#5842c3",accent9:"#6e56cf",accent10:"#7c66dc",accent11:"#9e8cfc",accent12:"#f1eefe"},K7={neutral1:"#151718",neutral2:"#1a1d1e",neutral3:"#202425",neutral4:"#26292b",neutral5:"#2b2f31",neutral6:"#313538",neutral7:"#3a3f42",neutral8:"#4c5155",neutral9:"#697177",neutral10:"#787f85",neutral11:"#9ba1a6",neutral12:"#ecedee"},W7={success1:"#0d1912",success2:"#0c1f17",success3:"#0f291e",success4:"#113123",success5:"#133929",success6:"#164430",success7:"#1b543a",success8:"#236e4a",success9:"#30a46c",success10:"#3cb179",success11:"#4cc38a",success12:"#e5fbeb"},V7={info1:"#0f1720",info2:"#0f1b2d",info3:"#10243e",info4:"#102a4c",info5:"#0f3058",info6:"#0d3868",info7:"#0a4481",info8:"#0954a5",info9:"#0091ff",info10:"#369eff",info11:"#52a9ff",info12:"#eaf6ff"},q7={warning1:"#1f1300",warning2:"#271700",warning3:"#341c00",warning4:"#3f2200",warning5:"#4a2900",warning6:"#573300",warning7:"#693f05",warning8:"#824e00",warning9:"#ffb224",warning10:"#ffcb47",warning11:"#f1a10d",warning12:"#fef3dd"},Y7={danger1:"#1f1315",danger2:"#291415",danger3:"#3c181a",danger4:"#481a1d",danger5:"#541b1f",danger6:"#671e22",danger7:"#822025",danger8:"#aa2429",danger9:"#e5484d",danger10:"#f2555a",danger11:"#ff6369",danger12:"#feecee"},X7={loContrast:"$neutral1",background:"$loContrast",focusRing:"#0a4481",closeButtonHoverBackground:"$whiteAlpha4",closeButtonActiveBackground:"$whiteAlpha5",progressStripe:"$blackAlpha6"},Q7=me(me(me(me(me(me(me(me({},j7),G7),K7),W7),V7),q7),Y7),X7),Z7={none:"0",xs:"0.125rem",sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},J7={none:"0 0 #0000",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.09), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.09), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.09), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.09), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.24)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.06)",outline:"0 0 0 3px $colors$focusRing"},e3={lg:"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},t3={sans:'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol","Noto Color Emoji"',serif:'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},n3={"2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},r3={hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},i3={normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:2,3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},o3={tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},a3={hide:-1,auto:"auto",base:0,docked:10,sticky:1e3,banner:1100,overlay:1200,modal:1300,dropdown:1400,popover:1500,tooltip:1600,skipLink:1700,notification:1800},s3={colors:me(me({},M7),U7),space:em,sizes:va,fonts:t3,fontSizes:n3,fontWeights:r3,letterSpacings:o3,lineHeights:i3,radii:Z7,shadows:J7,zIndices:a3},l3={colors:Q7,shadows:e3},{theme:c3,css:W,globalCss:Pi,config:iB,createTheme:u3,getCssText:oB,keyframes:qa}=Ab({prefix:"hope",themeMap:ni(me({},I5),{borderWidth:"sizes",borderTopWidth:"sizes",borderRightWidth:"sizes",borderBottomWidth:"sizes",borderLeftWidth:"sizes",strokeWidth:"sizes"}),theme:s3,media:b7,utils:N7}),en={fade:"hope-modal-fade-transition",fadeInBottom:"hope-modal-fade-in-bottom-transition",scale:"hope-modal-scale-transition"},d3=Pi({[`.${en.fade}-enter, .${en.fade}-exit-to`]:{opacity:0},[`.${en.fade}-enter-to, .${en.fade}-exit`]:{opacity:1},[`.${en.fade}-enter-active`]:{transition:"opacity 300ms ease-out"},[`.${en.fade}-exit-active`]:{transition:"opacity 200ms ease-in"},[`.${en.fadeInBottom}-enter, .${en.fadeInBottom}-exit-to`]:{opacity:0,transform:"translateY(16px)"},[`.${en.fadeInBottom}-enter-to, .${en.fadeInBottom}-exit`]:{opacity:1,transform:"translateY(0)"},[`.${en.fadeInBottom}-enter-active`]:{transitionProperty:"opacity, transform",transitionDuration:"300ms",transitionTimingFunction:"ease-out"},[`.${en.fadeInBottom}-exit-active`]:{transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease-in"},[`.${en.scale}-enter, .${en.scale}-exit-to`]:{opacity:0,transform:"scale(0.95)"},[`.${en.scale}-enter-to, .${en.scale}-exit`]:{opacity:1,transform:"scale(1)"},[`.${en.scale}-enter-active`]:{transitionProperty:"opacity, transform",transitionDuration:"300ms",transitionTimingFunction:"ease-out"},[`.${en.scale}-exit-active`]:{transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease-in"}}),tm=W({zIndex:"$overlay",position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"hsl(0 0% 0% / 65%)"}),nm=W({zIndex:"$modal",position:"fixed",top:0,left:0,display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},outline:"none","&:focus":{outline:"none"}}),f3=W(nm,{justifyContent:"center",variants:{centered:{true:{alignItems:"center"},false:{alignItems:"flex-start"}},scrollBehavior:{inside:{overflow:"hidden"},outside:{overflow:"auto"}}}}),rm=W({zIndex:"$modal",position:"relative",display:"flex",flexDirection:"column",width:"100%",outline:"none",boxShadow:"$lg",backgroundColor:"$loContrast",color:"inherit","&:focus":{outline:"none"}}),h3=W(rm,{justifyContent:"center",my:"3.75rem",borderRadius:"$sm",variants:{size:{xs:{maxWidth:"$xs"},sm:{maxWidth:"$sm"},md:{maxWidth:"$md"},lg:{maxWidth:"$lg"},xl:{maxWidth:"$xl"},"2xl":{maxWidth:"$2xl"},"3xl":{maxWidth:"$3xl"},"4xl":{maxWidth:"$4xl"},"5xl":{maxWidth:"$5xl"},"6xl":{maxWidth:"$6xl"},"7xl":{maxWidth:"$7xl"},"8xl":{maxWidth:"$8xl"},full:{maxWidth:"100vw",minHeight:"100vh","@supports(min-height: -webkit-fill-available)":{minHeight:"-webkit-fill-available"},my:0,borderRadius:"$none"}},scrollBehavior:{inside:{maxHeight:"calc(100% - 7.5rem)"},outside:{maxHeight:"none"}}}}),g3=W({flex:0,pt:"$5",px:"$5",pb:"$3",fontSize:"$lg",fontWeight:"$medium"}),m3=W({flex:1,px:"$5",py:"$2",variants:{scrollBehavior:{inside:{overflow:"auto"},outside:{overflow:void 0}}}}),p3=W({display:"flex",alignItems:"center",justifyContent:"flex-end",pt:"$3",px:"$5",pb:"$5"}),x3=W({position:"absolute",top:"$4",insetInlineEnd:"$4"}),ct={fade:"hope-drawer-fade-transition",slideInTop:"hope-drawer-slide-in-top-transition",slideInRight:"hope-drawer-slide-in-right-transition",slideInBottom:"hope-drawer-slide-in-bottom-transition",slideInLeft:"hope-drawer-slide-in-left-transition"},b3=Pi({[`.${ct.fade}-enter, .${ct.fade}-exit-to`]:{opacity:0},[`.${ct.fade}-enter-to, .${ct.fade}-exit`]:{opacity:1},[`.${ct.fade}-enter-active, .${ct.fade}-exit-active`]:{transition:"opacity 500ms ease-in-out"},[`.${ct.slideInTop}-enter-active, .${ct.slideInTop}-exit-active,
18
+ .${ct.slideInRight}-enter-active, .${ct.slideInRight}-exit-active,
19
+ .${ct.slideInBottom}-enter-active, .${ct.slideInBottom}-exit-active,
20
+ .${ct.slideInLeft}-enter-active, .${ct.slideInLeft}-exit-active`]:{transition:"transform 500ms ease-in-out"},[`.${ct.slideInTop}-enter, .${ct.slideInTop}-exit-to`]:{transform:"translateY(-100%)"},[`.${ct.slideInTop}-enter-to, .${ct.slideInTop}-exit`]:{transform:"translateY(0)"},[`.${ct.slideInRight}-enter, .${ct.slideInRight}-exit-to`]:{transform:"translateX(100%)"},[`.${ct.slideInRight}-enter-to, .${ct.slideInRight}-exit`]:{transform:"translateX(0)"},[`.${ct.slideInBottom}-enter, .${ct.slideInBottom}-exit-to`]:{transform:"translateY(100%)"},[`.${ct.slideInBottom}-enter-to, .${ct.slideInBottom}-exit`]:{transform:"translateY(0)"},[`.${ct.slideInLeft}-enter, .${ct.slideInLeft}-exit-to`]:{transform:"translateX(-100%)"},[`.${ct.slideInLeft}-enter-to, .${ct.slideInLeft}-exit`]:{transform:"translateX(0)"}}),_3=W(nm,{overflow:"hidden",variants:{placement:{top:{alignItems:"flex-start",justifyContent:"stretch"},right:{alignItems:"stretch",justifyContent:"flex-end"},bottom:{alignItems:"flex-end",justifyContent:"stretch"},left:{alignItems:"stretch",justifyContent:"flex-start"}}}}),v3=W(rm,{maxHeight:"100vh",variants:{size:{xs:{maxWidth:"$xs"},sm:{maxWidth:"$md"},md:{maxWidth:"$lg"},lg:{maxWidth:"$2xl"},xl:{maxWidth:"$4xl"},full:{maxWidth:"100vw",height:"100vh"}},placement:{top:{},right:{},bottom:{},left:{}},fullHeight:{true:{height:"100vh"},false:{}}},compoundVariants:[{placement:"top",size:"xs",css:{maxWidth:"100vw"}},{placement:"top",size:"sm",css:{maxWidth:"100vw"}},{placement:"top",size:"md",css:{maxWidth:"100vw"}},{placement:"top",size:"lg",css:{maxWidth:"100vw"}},{placement:"top",size:"xl",css:{maxWidth:"100vw"}},{placement:"bottom",size:"xs",css:{maxWidth:"100vw"}},{placement:"bottom",size:"sm",css:{maxWidth:"100vw"}},{placement:"bottom",size:"md",css:{maxWidth:"100vw"}},{placement:"bottom",size:"lg",css:{maxWidth:"100vw"}},{placement:"bottom",size:"xl",css:{maxWidth:"100vw"}}]}),io={scaleTopLeft:"hope-menu-scale-top-left-transition",scaleTopRight:"hope-menu-scale-top-right-transition",scaleBottomLeft:"hope-menu-scale-bottom-left-transition",scaleBottomRight:"hope-menu-scale-bottom-right-transition"};function zl(e,t){return{[`.${e}-enter, .${e}-exit-to`]:{opacity:0,transform:"scale(0.8)"},[`.${e}-enter-to, .${e}-exit`]:{opacity:1,transform:"scale(1)"},[`.${e}-enter-active`]:{transformOrigin:t,transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease-out"},[`.${e}-exit-active`]:{transformOrigin:t,transitionProperty:"opacity, transform",transitionDuration:"100ms",transitionTimingFunction:"ease-in"}}}const E3=Pi(me(me(me(me({},zl(io.scaleTopLeft,"top left")),zl(io.scaleTopRight,"top right")),zl(io.scaleBottomLeft,"bottom left")),zl(io.scaleBottomRight,"bottom right"))),T3=W({appearance:"none",display:"inline-flex",alignItems:"center",outline:"none"}),y3=W({zIndex:"$dropdown",position:"absolute",left:0,top:"100%",display:"flex",flexDirection:"column",minWidth:"$56",overflowY:"auto",outline:"none",margin:0,boxShadow:"$md",border:"1px solid $colors$neutral7",borderRadius:"$sm",backgroundColor:"$loContrast",px:0,py:"$1","&:focus":{outline:"none"}});W({});W({display:"flex",alignItems:"center",mx:"$1",py:"$2",px:"$3",color:"$neutral11",fontSize:"$xs",fontWeight:"$medium",lineHeight:"$4"});function Co(e){return{color:e.color,"&[data-active]":{backgroundColor:e.bgColorActive}}}const S3=W({position:"relative",display:"flex",alignItems:"center",mx:"$1",borderRadius:"$sm",py:"$2",px:"$3",fontSize:"$base",fontWeight:"$normal",lineHeight:"$6",cursor:"pointer",userSelect:"none",transition:"color 250ms, background-color 250ms","&[data-disabled]":{color:"$neutral8",cursor:"not-allowed"},variants:{colorScheme:{primary:Co({color:"$primary11",bgColorActive:"$primary3"}),accent:Co({color:"$accent11",bgColorActive:"$accent3"}),neutral:Co({color:"$neutral12",bgColorActive:"$neutral4"}),success:Co({color:"$success11",bgColorActive:"$success3"}),info:Co({color:"$info11",bgColorActive:"$info3"}),warning:Co({color:"$warning11",bgColorActive:"$warning3"}),danger:Co({color:"$danger11",bgColorActive:"$danger3"})}},defaultVariants:{colorScheme:"neutral"}}),C3=W({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),w3=W({flexGrow:1}),A3=W({flexShrink:0,color:"$neutral11",fontSize:"$sm",lineHeight:"$none"}),ic=qa({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}});qa({from:{opacity:0},to:{opacity:1}});const Fr={slideInTop:"hope-notification-slide-in-top-transition",slideInRight:"hope-notification-slide-in-right-transition",slideInBottom:"hope-notification-slide-in-bottom-transition",slideInLeft:"hope-notification-slide-in-left-transition"};function Ul(e){return{[`.${e.name}-enter, .${e.name}-exit-to`]:{opacity:0,transform:e.enterTransform},[`.${e.name}-enter-to, .${e.name}-exit`]:{opacity:1,transform:e.leaveTransform},[`.${e.name}-enter-active`]:{transitionProperty:"opacity, transform",transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21)",transitionDuration:"300ms"},[`.${e.name}-exit-active`]:{transitionProperty:"opacity, transform",transitionTimingFunction:"ease-in",transitionDuration:"200ms"}}}const k3=Pi(me(me(me(me({},Ul({name:Fr.slideInTop,enterTransform:"translateY(-100%)",leaveTransform:"translateY(0)"})),Ul({name:Fr.slideInRight,enterTransform:"translateX(100%)",leaveTransform:"translateX(0)"})),Ul({name:Fr.slideInBottom,enterTransform:"translateY(100%)",leaveTransform:"translateY(0)"})),Ul({name:Fr.slideInLeft,enterTransform:"translateX(-100%)",leaveTransform:"translateX(0)"}))),O3=W({position:"fixed",zIndex:"$notification",display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"$4",width:"calc(100% - 32px)",maxWidth:"$md",variants:{placement:{"top-start":{top:"$4",left:"$4"},top:{top:"$4",left:"50%",transform:"translateX(-50%)"},"top-end":{top:"$4",right:"$4"},"bottom-start":{bottom:"$4",left:"$4"},bottom:{bottom:"$4",left:"50%",transform:"translateX(-50%)"},"bottom-end":{bottom:"$4",right:"$4"}}},defaultVariants:{placement:"top-end"}}),N3=W({position:"relative",display:"flex",alignItems:"center",width:"100%",maxWidth:"$md",borderRadius:"$sm",border:"1px solid $colors$neutral5",boxShadow:"$lg",backgroundColor:"$loContrast",padding:"$3",fontSize:"$sm",lineHeight:"$5",variants:{status:{success:{},info:{},warning:{},danger:{}}}}),I3=W({animation:`1s linear infinite ${ic}`}),R3=W({flexShrink:0,variants:{status:{success:{color:"$success9"},info:{color:"$info9"},warning:{color:"$warning9"},danger:{color:"$danger9"}}}}),M3=W({fontWeight:"$medium"}),L3=W({display:"inline-block",color:"$neutral11"}),Fo={scale:"hope-popover-scale-transition"},P3=Pi({[`.${Fo.scale}-enter, .${Fo.scale}-exit-to`]:{opacity:0,transform:"scale(0.95)"},[`.${Fo.scale}-enter-to, .${Fo.scale}-exit`]:{opacity:1,transform:"scale(1)"},[`.${Fo.scale}-enter-active`]:{transitionProperty:"opacity, transform",transitionDuration:"300ms",transitionTimingFunction:"ease"},[`.${Fo.scale}-exit-active`]:{transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease-in-out"}}),D3=W({zIndex:"$popover",position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",maxWidth:"$xs",outline:"none",boxShadow:"$md",border:"1px solid $colors$neutral7",borderRadius:"$sm",backgroundColor:"$loContrast",color:"inherit","&:focus":{outline:"none"}}),$3=W({display:"flex",alignItems:"center",flex:0,borderColor:"inherit",borderBottomWidth:"1px",px:"$3",py:"$2",fontSize:"$base",fontWeight:"$medium"}),B3=W({flex:1,px:"$3",py:"$2"});W({display:"flex",alignItems:"center",borderColor:"inherit",borderTopWidth:"1px",px:"$3",py:"$2"});W({position:"absolute",top:"$2",insetInlineEnd:"$2"});const F3=W({zIndex:"$popover",position:"absolute",boxSize:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"inherit",backgroundColor:"inherit",transform:"rotate(45deg)",variants:{popoverPlacement:{left:{borderLeft:0,borderBottom:0},top:{borderLeft:0,borderTop:0},right:{borderTop:0,borderRight:0},bottom:{borderRight:0,borderBottom:0}}}});function jl(e){return{minHeight:e.minHeight,fontSize:e.fontSize,lineHeight:e.lineHeight}}const Qr={xs:jl({fontSize:"$xs",lineHeight:"$4",minHeight:"$6"}),sm:jl({fontSize:"$sm",lineHeight:"$5",minHeight:"$8"}),md:jl({fontSize:"$base",lineHeight:"$6",minHeight:"$10"}),lg:jl({fontSize:"$lg",lineHeight:"$7",minHeight:"$12"})},Lf={"&:disabled":{opacity:.4,cursor:"not-allowed"},"&:focus":{boxShadow:"0 0 0 3px $colors$primary5",borderColor:"$primary8"},"&[aria-invalid=true]":{borderColor:"$danger8"},"&[aria-invalid=true]:focus":{boxShadow:"0 0 0 3px $colors$danger5"}},Vu=W({appearance:"none",position:"relative",width:"100%",minWidth:0,outline:"none",borderRadius:"$sm",backgroundColor:"transparent",padding:0,color:"$neutral12",fontSize:"$base",lineHeight:"$base",transition:"color 250ms, border-color 250ms, background-color 250ms, box-shadow 250ms","&[readonly]":{boxShadow:"none !important",userSelect:"all",cursor:"default"},"&::placeholder":{color:"$neutral9",opacity:1},variants:{variant:{outline:me({border:"1px solid $neutral7",backgroundColor:"transparent","&:hover":{borderColor:"$neutral8"}},Lf),filled:me({border:"1px solid transparent",backgroundColor:"$neutral3","&:hover, &:focus":{backgroundColor:"$neutral4"}},Lf),unstyled:{border:"1px solid transparent",backgroundColor:"transparent"}},size:me({},Qr)}});function hr(e){return[{variant:e.variant,size:e.size,css:{px:e.paddingX}},{withLeftElement:!0,variant:e.variant,size:e.size,css:{paddingInlineStart:e.paddingWithElement}},{withRightElement:!0,variant:e.variant,size:e.size,css:{paddingInlineEnd:e.paddingWithElement}}]}const H3=W(Vu,{variants:{withLeftElement:{true:{}},withRightElement:{true:{}},withLeftAddon:{true:{borderLeftRadius:0}},withRightAddon:{true:{borderRightRadius:0}}},compoundVariants:[...hr({variant:"outline",size:"xs",paddingX:"$2",paddingWithElement:"$6"}),...hr({variant:"outline",size:"sm",paddingX:"$2_5",paddingWithElement:"$8"}),...hr({variant:"outline",size:"md",paddingX:"$3",paddingWithElement:"$10"}),...hr({variant:"outline",size:"lg",paddingX:"$4",paddingWithElement:"$12"}),...hr({variant:"filled",size:"xs",paddingX:"$2",paddingWithElement:"$6"}),...hr({variant:"filled",size:"sm",paddingX:"$2_5",paddingWithElement:"$8"}),...hr({variant:"filled",size:"md",paddingX:"$3",paddingWithElement:"$10"}),...hr({variant:"filled",size:"lg",paddingX:"$4",paddingWithElement:"$12"}),...hr({variant:"unstyled",size:"xs",paddingX:0,paddingWithElement:"$6"}),...hr({variant:"unstyled",size:"sm",paddingX:0,paddingWithElement:"$8"}),...hr({variant:"unstyled",size:"md",paddingX:0,paddingWithElement:"$10"}),...hr({variant:"unstyled",size:"lg",paddingX:0,paddingWithElement:"$12"})]});W({position:"relative",display:"flex",width:"100%"});W({position:"absolute",top:"0",zIndex:2,display:"flex",alignItems:"center",justifyContent:"center",variants:{placement:{left:{insetInlineStart:"0"},right:{insetInlineEnd:"0"}},size:{xs:ni(me({},Qr.xs),{width:Qr.xs.minHeight}),sm:ni(me({},Qr.sm),{width:Qr.sm.minHeight}),md:ni(me({},Qr.md),{width:Qr.md.minHeight}),lg:ni(me({},Qr.lg),{width:Qr.lg.minHeight})}}});function gr(e){return{variant:e.variant,size:e.size,css:{px:e.paddingX}}}W({display:"flex",alignItems:"center",flex:"0 0 auto",width:"auto",whiteSpace:"nowrap",variants:{placement:{left:{marginEnd:"-1px"},right:{marginStart:"-1px"}},variant:{outline:{borderRadius:"$sm",border:"1px solid $neutral7",backgroundColor:"$neutral3",color:"$neutral12"},filled:{borderRadius:"$sm",border:"1px solid transparent",backgroundColor:"$neutral3",color:"$neutral12"},unstyled:{border:"1px solid transparent",backgroundColor:"transparent"}},size:me({},Qr)},compoundVariants:[{variant:"outline",placement:"left",css:{borderRightRadius:0,borderInlineEndColor:"transparent"}},{variant:"outline",placement:"right",css:{borderLeftRadius:0,borderInlineStartColor:"transparent"}},{variant:"filled",placement:"left",css:{borderStartEndRadius:0,borderEndEndRadius:0,borderInlineEndColor:"transparent"}},{variant:"filled",placement:"right",css:{borderStartStartRadius:0,borderEndStartRadius:0,borderInlineStartColor:"transparent"}},gr({variant:"outline",size:"xs",paddingX:"$2"}),gr({variant:"outline",size:"sm",paddingX:"$2_5"}),gr({variant:"outline",size:"md",paddingX:"$3"}),gr({variant:"outline",size:"lg",paddingX:"$4"}),gr({variant:"filled",size:"xs",paddingX:"$2"}),gr({variant:"filled",size:"sm",paddingX:"$2_5"}),gr({variant:"filled",size:"md",paddingX:"$3"}),gr({variant:"filled",size:"lg",paddingX:"$4"}),gr({variant:"unstyled",size:"xs",paddingX:0}),gr({variant:"unstyled",size:"sm",paddingX:0}),gr({variant:"unstyled",size:"md",paddingX:0}),gr({variant:"unstyled",size:"lg",paddingX:0})]});const Ho={fadeInTop:"hope-select-fade-in-top-transition"},z3=Pi({[`.${Ho.fadeInTop}-enter, .${Ho.fadeInTop}-exit-to`]:{opacity:0,transform:"translateY(-16px)"},[`.${Ho.fadeInTop}-enter-to, .${Ho.fadeInTop}-exit`]:{opacity:1,transform:"translateY(0)"},[`.${Ho.fadeInTop}-enter-active`]:{transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease-out"},[`.${Ho.fadeInTop}-exit-active`]:{transitionProperty:"opacity, transform",transitionDuration:"100ms",transitionTimingFunction:"ease-in"}});function Zc(e,t,n){return Object.entries({xs:{start:t??"$2",end:n??"$1"},sm:{start:t??"$2_5",end:n??"$1_5"},md:{start:t??"$3",end:n??"$2"},lg:{start:t??"$4",end:n??"$3"}}).map(([r,i])=>({variant:e,size:r,css:{paddingInlineStart:i.start,paddingInlineEnd:i.end}}))}const U3=W(Vu,{appearance:"none",display:"inline-flex",alignItems:"center",outline:"none",cursor:"pointer","&:focus":{outline:"none"},compoundVariants:[...Zc("outline"),...Zc("filled"),...Zc("unstyled",0,0)]}),im=W({flexGrow:1,flexShrink:1,textAlign:"start",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),j3=W({display:"inline-flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",flexGrow:1,flexShrink:1,variants:{size:{xs:{gap:"$0_5",py:"$0_5"},sm:{gap:"$1",py:"$1"},md:{gap:"$1_5",py:"$1_5"},lg:{gap:"$2",py:"$2"}}}}),G3=W({display:"inline-flex",justifyContent:"center",alignItems:"center",gap:"$0_5",borderRadius:"$sm",py:0,pl:"$2",lineHeight:"$none",variants:{variant:{subtle:{backgroundColor:"$neutral4",color:"$neutral12"},outline:{border:"1px solid $colors$neutral7",backgroundColor:"$loContrast",color:"$neutral12"}},size:{xs:{height:"$4",fontSize:"$2xs"},sm:{height:"$5",fontSize:"$xs"},md:{height:"$6",fontSize:"$sm"},lg:{height:"$7",fontSize:"$base"}}}}),K3=W({appearance:"none",display:"inline-flex",justifyContent:"center",alignItems:"center",height:"100%",outline:"none",borderRightRadius:"$sm",backgroundColor:"transparent",px:"$1",color:"inherit",lineHeight:"$none",textDecoration:"none",cursor:"pointer",userSelect:"none",transition:"color 250ms, background-color 250ms, box-shadow 250ms","&:hover":{backgroundColor:"$neutral7"},"&:focus":{outline:"none",boxShadow:"$outline"}}),W3=W(im,{color:"$neutral9",opacity:1}),V3=W({flexGrow:0,flexShrink:0,marginInlineStart:"auto",color:"$neutral11",fontSize:"1.25em",pointerEvents:"none",transition:"transform 250ms",transformOrigin:"center",variants:{opened:{true:{transform:"rotate(-180deg)"}}}}),q3=W({zIndex:"$dropdown",position:"absolute",left:0,top:"100%",display:"flex",flexDirection:"column",width:"100%",overflow:"hidden",margin:0,boxShadow:"$md",border:"1px solid $colors$neutral7",borderRadius:"$sm",backgroundColor:"$loContrast",padding:0}),Y3=W({position:"relative",display:"flex",flexDirection:"column",maxHeight:"$60",width:"100%",overflowY:"auto",margin:0,padding:"$1",listStyle:"none"});W({});W({display:"flex",alignItems:"center",py:"$2",px:"$3",color:"$neutral11",fontSize:"$xs",lineHeight:"$4"});const X3=W({position:"relative",display:"flex",alignItems:"center",borderRadius:"$sm",color:"$neutral12",fontSize:"$base",fontWeight:"$normal",lineHeight:"$6",cursor:"pointer",userSelect:"none","&[data-disabled]":{color:"$neutral8",cursor:"not-allowed"},"&[data-active]":{backgroundColor:"$neutral4"}}),Q3=W({display:"inline-flex",alignItems:"center",py:"$2",paddingInlineStart:"$3",paddingInlineEnd:"$6"}),Z3=W({position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",paddingInlineEnd:"$3",color:"$primary10",pointerEvents:"none"}),zo={scale:"hope-tooltip-scale-transition"},J3=Pi({[`.${zo.scale}-enter, .${zo.scale}-exit-to`]:{opacity:0,transform:"scale(0.90)"},[`.${zo.scale}-enter-to, .${zo.scale}-exit`]:{opacity:1,transform:"scale(1)"},[`.${zo.scale}-enter-active`]:{transitionProperty:"opacity, transform",transitionDuration:"200ms",transitionTimingFunction:"ease"},[`.${zo.scale}-exit-active`]:{transitionProperty:"opacity, transform",transitionDuration:"150ms",transitionTimingFunction:"ease-in-out"}}),e_=W({zIndex:"$tooltip",position:"absolute",maxWidth:"$96",boxShadow:"$md",borderRadius:"$sm",backgroundColor:"$neutral12",px:"$2",py:"$1",color:"$neutral1",fontSize:"$sm",fontWeight:"$normal",lineHeight:"$4"}),t_=W({zIndex:"$tooltip",position:"absolute",boxSize:"8px",backgroundColor:"inherit",transform:"rotate(45deg)"}),n_=Pi({"*, ::before, ::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid"},"*":{margin:0},"html, body":{height:"100%"},html:{fontFamily:"$sans",lineHeight:"$base",fontSize:"16px"},body:{backgroundColor:"$background",color:"$neutral12",fontFamily:"inherit",lineHeight:"inherit","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},"h1, h2, h3, h4, h5, h6":{fontSize:"inherit",fontWeight:"inherit"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"img, picture, video, canvas, svg":{display:"block",maxWidth:"100%"},"button, input, textarea, select, optgroup":{fontFamily:"inherit",fontSize:"100%"},"button:focus":{outline:"5px auto -webkit-focus-ring-color"},fieldset:{margin:0,padding:0},"ol, ul":{margin:0,padding:0},a:{backgroundColor:"transparent",color:"inherit",textDecoration:"inherit"}});function Pf(e,t,n){Object.entries(e).forEach(([r,i])=>{if(rc(i))if(r in n){const o=r;n[o]=me(me({},n[o]),i)}else t[r]=me(me({},t[r]),i);else t[r]=i})}function r_(e,t){const n={},r={"@sm":{},"@md":{},"@lg":{},"@xl":{},"@2xl":{},"@reduce-motion":{},"@light":{},"@dark":{}};return t==null||t.forEach(i=>i&&Pf(i,n,r)),Object.entries(e).forEach(([i,o])=>{o!=null&&i!=="css"&&(i.startsWith("_")?n[i]=o:rc(o)?Object.keys(o).forEach(a=>{if(a==="@initial")n[i]=o[a];else if(a in r){const s=a;r[s]=ni(me({},r[s]),{[i]:o[s]})}}):n[i]=o)}),e.css&&Pf(e.css,n,r),me(me({},n),r)}function Df(e,t){const n=e==="dark",r=n?Ha.dark:Ha.light,i=n?bf({},l3,t):t,o=u3(r,i);return bf({},c3,o)}function om(e,t){return rc(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}const oc=W({position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}),qu=Ct();function i_(){b3(),E3(),d3(),k3(),P3(),z3(),J3()}function o_(e){var t,n,r,i,o,a,s,l;e=K({enableCssReset:!0},e);const u=Df("light",(n=(t=e.config)==null?void 0:t.lightTheme)!=null?n:{}),f=Df("dark",(i=(r=e.config)==null?void 0:r.darkTheme)!=null?i:{}),g=m7((a=(o=e.config)==null?void 0:o.initialColorMode)!=null?a:"light"),d=g==="dark"?f:u,[h,m]=Me(g),[p,b]=Me(d),E=()=>h()==="dark",v=S=>{m(S),g7(S)},N=()=>{v(E()?"light":"dark")},I={components:(l=(s=e.config)==null?void 0:s.components)!=null?l:{},theme:p,colorMode:h,setColorMode:v,toggleColorMode:N};return tn(()=>{b(E()?f:u),x7(E())}),e.enableCssReset&&n_(),i_(),T(qu.Provider,{value:I,get children(){return e.children}})}function xe(){const e=$t(qu);if(!e)throw new Error("[Hope UI]: useStyleConfig must be used within a HopeProvider");return e.components}function am(){const e=$t(qu);if(!e)throw new Error("[Hope UI]: useColorMode must be used within a HopeProvider");return{colorMode:e.colorMode,setColorMode:e.setColorMode,toggleColorMode:e.toggleColorMode}}function ac(e,t){const{colorMode:n}=am();return()=>n()==="dark"?t:e}function ge(e){return`.${e}`}function ie(...e){return e.filter(Boolean).join(" ")}function a_(e,t,n){return(e-t)*100/(n-t)}const s_={border:!0,borderWidth:!0,borderStyle:!0,borderColor:!0,borderTop:!0,borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0,borderRight:!0,borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0,borderBottom:!0,borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0,borderLeft:!0,borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0,borderX:!0,borderY:!0},l_={color:!0,background:!0,bg:!0,backgroundColor:!0,bgColor:!0,opacity:!0},c_={css:!0},u_={alignItems:!0,alignContent:!0,alignSelf:!0,justifyItems:!0,justifyContent:!0,justifySelf:!0,flexDirection:!0,flexWrap:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,order:!0},d_={gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0,gridRow:!0,gridRowStart:!0,gridRowEnd:!0,gridColumn:!0,gridColumnStart:!0,gridColumnEnd:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:!0,rowGap:!0,columnGap:!0},f_={appearance:!0,userSelect:!0,pointerEvents:!0,resize:!0,cursor:!0,outline:!0,outlineOffset:!0,outlineColor:!0},h_={display:!0,d:!0,verticalAlign:!0,overflow:!0,overflowX:!0,overflowY:!0,objectFit:!0,objectPosition:!0},g_={margin:!0,m:!0,marginTop:!0,mt:!0,marginRight:!0,mr:!0,marginStart:!0,ms:!0,marginBottom:!0,mb:!0,marginLeft:!0,ml:!0,marginEnd:!0,me:!0,mx:!0,my:!0},m_={padding:!0,p:!0,paddingTop:!0,pt:!0,paddingRight:!0,pr:!0,paddingStart:!0,ps:!0,paddingBottom:!0,pb:!0,paddingLeft:!0,pl:!0,paddingEnd:!0,pe:!0,px:!0,py:!0},p_={position:!0,pos:!0,zIndex:!0,top:!0,right:!0,bottom:!0,left:!0},x_={_hover:!0,_active:!0,_focus:!0,_highlighted:!0,_focusWithin:!0,_focusVisible:!0,_disabled:!0,_readOnly:!0,_before:!0,_after:!0,_empty:!0,_expanded:!0,_checked:!0,_grabbed:!0,_pressed:!0,_invalid:!0,_valid:!0,_loading:!0,_selected:!0,_hidden:!0,_even:!0,_odd:!0,_first:!0,_last:!0,_notFirst:!0,_notLast:!0,_visited:!0,_activeLink:!0,_activeStep:!0,_indeterminate:!0,_groupHover:!0,_peerHover:!0,_groupFocus:!0,_peerFocus:!0,_groupFocusVisible:!0,_peerFocusVisible:!0,_groupActive:!0,_peerActive:!0,_groupSelected:!0,_peerSelected:!0,_groupDisabled:!0,_peerDisabled:!0,_groupInvalid:!0,_peerInvalid:!0,_groupChecked:!0,_peerChecked:!0,_groupFocusWithin:!0,_peerFocusWithin:!0,_peerPlaceholderShown:!0,_placeholder:!0,_placeholderShown:!0,_fullScreen:!0,_selection:!0,_mediaDark:!0,_mediaReduceMotion:!0,_dark:!0,_light:!0},b_={borderRadius:!0,borderTopRightRadius:!0,borderTopLeftRadius:!0,borderBottomRightRadius:!0,borderBottomLeftRadius:!0,borderTopRadius:!0,borderRightRadius:!0,borderStartRadius:!0,borderBottomRadius:!0,borderLeftRadius:!0,borderEndRadius:!0,rounded:!0,roundedTop:!0,roundedRight:!0,roundedStart:!0,roundedBottom:!0,roundedLeft:!0,roundedEnd:!0},__={textShadow:!0,boxShadow:!0,shadow:!0},v_={width:!0,w:!0,minWidth:!0,minW:!0,maxWidth:!0,maxW:!0,height:!0,h:!0,minHeight:!0,minH:!0,maxHeight:!0,maxH:!0,boxSize:!0},E_={transform:!0,transformOrigin:!0,clipPath:!0},T_={transition:!0,transitionProperty:!0,transitionTimingFunction:!0,transitionDuration:!0,transitionDelay:!0,animation:!0,willChange:!0},y_={fontFamily:!0,fontSize:!0,fontWeight:!0,lineHeight:!0,letterSpacing:!0,textAlign:!0,fontStyle:!0,textTransform:!0,textDecoration:!0,noOfLines:!0},S_=me(me(me(me(me(me(me(me(me(me(me(me(me(me(me(me(me({},s_),l_),u_),d_),f_),h_),g_),m_),p_),b_),__),v_),E_),T_),y_),x_),c_),C_=W({});function w_(e,t){return C_({css:r_(e,t)})}function A_(e){return Object.keys(e).filter(t=>t in S_)}const Jc=(e,t)=>{const n=r=>{const i=A_(r),o=K({as:e},r),[a,s,l]=se(o,["as","class","className","__baseStyle"],i),c=Xe(()=>[$n(t==null?void 0:t.baseStyle)?t==null?void 0:t.baseStyle(r):t==null?void 0:t.baseStyle,a.__baseStyle]),u=()=>ie(t==null?void 0:t.baseClass,a.class,a.className,w_(s,c()));return T(Hu,K({get component(){var f;return(f=a.as)!=null?f:"div"},get class(){return u()}},l))};return n.toString=()=>t!=null&&t.baseClass?ge(t.baseClass):"",n};function k_(){const e=new Map;return new Proxy(Jc,{apply(t,n,r){return Jc(...r)},get(t,n){return e.has(n)||e.set(n,Jc(n)),e.get(n)}})}const je=k_(),De=je.div;W({borderTopWidth:"1px",borderColor:"$neutral7",overflowAnchor:"none","&:last-of-type":{borderBottomWidth:"1px"}});W({appearance:"none",display:"flex",alignItems:"center",width:"100%",outline:"none",backgroundColor:"transparent",px:"$4",py:"$2",color:"inherit",fontSize:"$base",lineHeight:"$6",cursor:"pointer",transition:"background-color 250ms","&:disabled":{opacity:.4,cursor:"not-allowed"},"&:hover":{backgroundColor:"$neutral4"},"&:focus":{outline:"none",boxShadow:"$outline"}});W({flexGrow:0,flexShrink:0,fontSize:"1.25em",pointerEvents:"none",transition:"transform 250ms",transformOrigin:"center",variants:{expanded:{true:{transform:"rotate(-180deg)"}},disabled:{true:{opacity:.4}}}});W({pt:"$2",px:"$4",pb:"$4"});function sm(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function O_(e){var t;if(!sm(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function M1(e){var t;return sm(e)&&(t=e.ownerDocument)!=null?t:document}function e0(e,t){const n=e.target;return e.button>0||n&&!M1(n).body.contains(n)?!1:!(t!=null&&t.contains(n))}function N_(e){const t=M1(e);return t==null?void 0:t.activeElement}function qo(e,t){return e?e===t||e.contains(t):!1}function L1(e){var t,n;const r=(t=e.target)!=null?t:e.currentTarget,i=N_(r);return(n=e.relatedTarget)!=null?n:i}function lm(e){return e&&e.clientHeight<e.scrollHeight}function cm(e,t){const{offsetHeight:n,offsetTop:r}=e,{offsetHeight:i,scrollTop:o}=t,a=r<o,s=r+n>o+i;a?t.scrollTo(0,r):s&&t.scrollTo(0,r-i+n)}function sc(e){const t=Object.getOwnPropertyDescriptor(e,"children");return t==null?!1:$n(t.value)}const I_=W({display:"inline-block",flexShrink:0,boxSize:"1em",color:"currentColor",lineHeight:"1em",verticalAlign:"middle"}),R_=Bt('<svg><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>',4,!0),$f={viewBox:"0 0 24 24",path:()=>R_.cloneNode(!0)},Yu="hope-icon";function oa(e){const t={viewBox:$f.viewBox},n=K(t,e),[r,i]=se(n,["as","class","children","viewBox"]),o=()=>ie(r.class,Yu,I_()),a=()=>r.as&&!d7(r.as);return T(Ae,{get when(){return a()},get fallback(){return T(je.svg,K({get class(){return o()},get viewBox(){return r.viewBox}},i,{get children(){return T(Ae,{get when(){return r.children},get fallback(){return $f.path},get children(){return r.children}})}}))},get children(){return T(De,K({get as(){return r.as},get class(){return o()}},i))}})}oa.toString=()=>ge(Yu);function Cr(e){const{viewBox:t="0 0 24 24",defaultProps:n={}}=e,r=i=>T(oa,K({viewBox:t},n,i,{get children(){return e.path}}));return r.toString=()=>ge(Yu),r}const M_=Bt('<svg><path d="M4.18179 6.18181C4.35753 6.00608 4.64245 6.00608 4.81819 6.18181L7.49999 8.86362L10.1818 6.18181C10.3575 6.00608 10.6424 6.00608 10.8182 6.18181C10.9939 6.35755 10.9939 6.64247 10.8182 6.81821L7.81819 9.81821C7.73379 9.9026 7.61934 9.95001 7.49999 9.95001C7.38064 9.95001 7.26618 9.9026 7.18179 9.81821L4.18179 6.81821C4.00605 6.64247 4.00605 6.35755 4.18179 6.18181Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>',4,!0);Cr({viewBox:"0 0 15 15",path:()=>M_.cloneNode(!0)});W({overflow:"hidden"});const rr=W({flexShrink:0}),L_=W({fontWeight:"$semibold"}),P_=W({display:"inline-block"}),D_=W({position:"relative",display:"flex",alignItems:"center",borderRadius:"$sm",px:"$4",py:"$3",fontSize:"$base",lineHeight:"$6",variants:{variant:{solid:{},subtle:{},"left-accent":{borderLeftStyle:"solid",borderLeftWidth:"$sizes$1"},"top-accent":{borderTopStyle:"solid",borderTopWidth:"$sizes$1"}},status:{success:{},info:{},warning:{},danger:{}}},compoundVariants:[{variant:"solid",status:"success",css:{backgroundColor:"$success9",color:"white"}},{variant:"solid",status:"info",css:{backgroundColor:"$info9",color:"white"}},{variant:"solid",status:"warning",css:{backgroundColor:"$warning9",color:"$blackAlpha12"}},{variant:"solid",status:"danger",css:{backgroundColor:"$danger9",color:"white"}},{variant:"subtle",status:"success",css:{backgroundColor:"$success3",color:"$success11",[`& .${rr}`]:{color:"$success9"}}},{variant:"subtle",status:"info",css:{backgroundColor:"$info3",color:"$info11",[`& .${rr}`]:{color:"$info9"}}},{variant:"subtle",status:"warning",css:{backgroundColor:"$warning3",color:"$warning11",[`& .${rr}`]:{color:"$warning9"}}},{variant:"subtle",status:"danger",css:{backgroundColor:"$danger3",color:"$danger11",[`& .${rr}`]:{color:"$danger9"}}},{variant:"left-accent",status:"success",css:{borderLeftColor:"$success9",backgroundColor:"$success3",color:"$success11",[`& .${rr}`]:{color:"$success9"}}},{variant:"left-accent",status:"info",css:{borderLeftColor:"$info9",backgroundColor:"$info3",color:"$info11",[`& .${rr}`]:{color:"$info9"}}},{variant:"left-accent",status:"warning",css:{borderLeftColor:"$warning9",backgroundColor:"$warning3",color:"$warning11",[`& .${rr}`]:{color:"$warning9"}}},{variant:"left-accent",status:"danger",css:{borderLeftColor:"$danger9",backgroundColor:"$danger3",color:"$danger11",[`& .${rr}`]:{color:"$danger9"}}},{variant:"top-accent",status:"success",css:{borderTopColor:"$success9",backgroundColor:"$success3",color:"$success11",[`& .${rr}`]:{color:"$success9"}}},{variant:"top-accent",status:"info",css:{borderTopColor:"$info9",backgroundColor:"$info3",color:"$info11",[`& .${rr}`]:{color:"$info9"}}},{variant:"top-accent",status:"warning",css:{borderTopColor:"$warning9",backgroundColor:"$warning3",color:"$warning11",[`& .${rr}`]:{color:"$warning9"}}},{variant:"top-accent",status:"danger",css:{borderTopColor:"$danger9",backgroundColor:"$danger3",color:"$danger11",[`& .${rr}`]:{color:"$danger9"}}}]}),um="hope-alert";function $_(e){var t,n,r,i,o,a;const s=xe().Alert,l={variant:(r=(n=(t=s==null?void 0:s.defaultProps)==null?void 0:t.root)==null?void 0:n.variant)!=null?r:"subtle",status:(a=(o=(i=s==null?void 0:s.defaultProps)==null?void 0:i.root)==null?void 0:o.status)!=null?a:"info"},c=K(l,e),[u,f]=se(c,["class","variant","status"]),g=()=>ie(u.class,um,D_({variant:u.variant,status:u.status})),h={status:()=>u.status};return T(dm.Provider,{value:h,get children(){return T(De,K({role:"alert",get class(){return g()},get __baseStyle(){var m;return(m=s==null?void 0:s.baseStyle)==null?void 0:m.root}},f))}})}$_.toString=()=>ge(um);const dm=Ct();function B_(){const e=$t(dm);if(!e)throw new Error("[Hope UI]: useAlertContext must be used within an `<Alert />` component");return e}const fm="hope-alert__description";function F_(e){const t=xe().Alert,[n,r]=se(e,["class"]),i=()=>ie(n.class,fm,P_());return T(De,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.description}},r))}F_.toString=()=>ge(fm);const H_=Bt('<svg><path fill="currentColor" d="M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2Zm-2 19.59l-5-5L10.59 15L14 18.41L21.41 11l1.596 1.586Z"></path></svg>',4,!0),z_=Bt('<svg><path fill="none" d="m14 21.591l-5-5L10.591 15L14 18.409L21.41 11l1.595 1.585L14 21.591z"></path></svg>',4,!0),hm=Cr({viewBox:"0 0 32 32",path:()=>[H_.cloneNode(!0),z_.cloneNode(!0)]}),U_=Bt('<svg><path fill="currentColor" d="M16 2C8.3 2 2 8.3 2 16s6.3 14 14 14s14-6.3 14-14S23.7 2 16 2zm-1.1 6h2.2v11h-2.2V8zM16 25c-.8 0-1.5-.7-1.5-1.5S15.2 22 16 22s1.5.7 1.5 1.5S16.8 25 16 25z"></path></svg>',4,!0),gm=Cr({viewBox:"0 0 32 32",path:()=>U_.cloneNode(!0)}),j_=Bt('<svg><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M29.4898 29.8706C29.3402 29.9548 29.1713 29.9991 28.9996 29.9993H2.99961C2.82787 29.9991 2.65905 29.9548 2.5094 29.8706C2.35976 29.7864 2.23433 29.665 2.14521 29.5182C2.05608 29.3713 2.00626 29.2041 2.00055 29.0325C1.99485 28.8608 2.03344 28.6907 2.1126 28.5382L15.1126 3.53821C15.1971 3.37598 15.3245 3.23999 15.4808 3.14514C15.6372 3.05017 15.8167 3 15.9996 3C16.1825 3 16.362 3.05017 16.5184 3.14514C16.6748 3.23999 16.8021 3.37598 16.8866 3.53821L29.8866 28.5382C29.9658 28.6907 30.0044 28.8608 29.9986 29.0325C29.9929 29.2041 29.9431 29.3713 29.854 29.5182C29.7649 29.665 29.6395 29.7864 29.4898 29.8706ZM16.0016 6.16919V6.17029H15.9976V6.16919H16.0016ZM15.9996 25.9993C15.7029 25.9993 15.4129 25.9113 15.1662 25.7465C14.9196 25.5817 14.7273 25.3474 14.6138 25.0734C14.5996 25.0391 14.5867 25.0044 14.5752 24.9694C14.4942 24.724 14.4778 24.4613 14.5284 24.2067C14.5863 23.9156 14.7292 23.6484 14.9389 23.4386C14.9652 23.4124 14.9923 23.3872 15.0202 23.3632C15.2159 23.1945 15.4524 23.0787 15.707 23.0281C15.7433 23.0209 15.7799 23.015 15.8165 23.0105C16.0723 22.979 16.3326 23.014 16.572 23.1129L16.5736 23.1135C16.8477 23.2271 17.082 23.4193 17.2468 23.6659C17.2674 23.6968 17.2868 23.7283 17.305 23.7604C17.4322 23.9852 17.4996 24.2397 17.4996 24.4993C17.4996 24.8971 17.3416 25.2787 17.0603 25.5599C16.7789 25.8413 16.3974 25.9993 15.9996 25.9993ZM17.1246 20.9993H14.8746V11.9993H17.1246V20.9993Z"></path></svg>',4,!0),mm=Cr({viewBox:"0 0 32 32",path:()=>j_.cloneNode(!0)}),G_=Bt('<svg><path fill="none" d="M16 8a1.5 1.5 0 1 1-1.5 1.5A1.5 1.5 0 0 1 16 8Zm4 13.875h-2.875v-8H13v2.25h1.875v5.75H12v2.25h8Z"></path></svg>',4,!0),K_=Bt('<svg><path fill="currentColor" d="M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2Zm0 6a1.5 1.5 0 1 1-1.5 1.5A1.5 1.5 0 0 1 16 8Zm4 16.125h-8v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"></path></svg>',4,!0),pm=Cr({viewBox:"0 0 32 32",path:()=>[G_.cloneNode(!0),K_.cloneNode(!0)]}),xm="hope-alert__icon";function W_(e){const t=xe().Alert,{status:n}=B_(),i=K({boxSize:"$6"},e),[o,a]=se(i,["as","class"]),s=()=>ie(o.class,xm,rr()),l=()=>{if(o.as)return o.as;switch(n()){case"success":return hm;case"info":return pm;case"warning":return mm;case"danger":return gm}};return T(oa,K({get as(){return l()},get class(){return s()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.icon}},a))}W_.toString=()=>ge(xm);const bm="hope-alert__title";function V_(e){const t=xe().Alert,[n,r]=se(e,["class"]),i=()=>ie(n.class,bm,L_());return T(De,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.title}},r))}V_.toString=()=>ge(bm);const q_=W({position:"relative",outline:"none",backgroundColor:"transparent",textDecoration:"none",cursor:"pointer",transition:"text-decoration 250ms","&:hover":{textDecoration:"underline"},"&:focus":{boxShadow:"$outline"}}),_m="hope-anchor";function vm(e){const t=xe().Anchor,[n,r]=se(e,["class","external"]),i=()=>ie(n.class,_m,q_());return T(je.a,K({get class(){return i()},get __baseStyle(){return t==null?void 0:t.baseStyle},get target(){return n.external?"_blank":void 0},get rel(){return n.external?"noopener noreferrer":void 0}},r))}vm.toString=()=>ge(_m);W({position:"relative","&::before":{height:0,content:"''",display:"block"},"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}});const lc="hope-icon-button",Y_=W({display:"inline-flex",alignSelf:"center",flexShrink:0}),X_=W({position:"absolute",display:"flex",alignItems:"center",flexShrink:0,fontSize:"1em",lineHeight:"$normal",variants:{withLoadingText:{true:{position:"relative"}}}}),Q_=W({fontSize:"1.3em",animation:`1s linear infinite ${ic}`});function gs(e){return{height:e.height,py:0,px:e.paddingX,fontSize:e.fontSize,[`&.${lc}`]:{width:e.height,padding:"0"}}}function ms(e){return{height:e.height,py:0,px:e.paddingX,[`&.${lc}`]:{width:e.height,padding:"0"}}}function wo(e){return{backgroundColor:e.bgColor,color:e.color,"&:hover":{backgroundColor:e.bgColorHover}}}function Ao(e){return{backgroundColor:e.bgColor,color:e.color,"&:hover":{backgroundColor:e.bgColorHover},"&:active":{backgroundColor:e.bgColorActive}}}function Wn(e){return{borderColor:e.borderColor,color:e.color,"&:hover":{borderColor:e.borderColorHover,backgroundColor:e.bgColorHover},"&:active":{backgroundColor:e.bgColorActive}}}function ko(e){return{color:e.color,"&:hover":{backgroundColor:e.bgColorHover},"&:active":{backgroundColor:e.bgColorActive}}}const Em=W({appearance:"none",position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",outline:"none",borderRadius:"$sm",padding:"0",fontWeight:"$medium",lineHeight:"$none",textDecoration:"none",cursor:"pointer",userSelect:"none",whiteSpace:"nowrap",verticalAlign:"middle",transition:"color 250ms, background-color 250ms, box-shadow 250ms","&:focus":{outline:"none",boxShadow:"$outline"},"&:disabled, &:hover:disabled":{color:"$neutral7",cursor:"not-allowed"},variants:{variant:{solid:{border:"1px solid transparent","&:disabled, &:hover:disabled":{backgroundColor:"$neutral3"}},subtle:{border:"1px solid transparent","&:disabled, &:hover:disabled":{backgroundColor:"$neutral3"}},outline:{borderStyle:"solid",borderWidth:"1px",backgroundColor:"transparent","&:disabled, &:hover:disabled":{borderColor:"$neutral3"}},dashed:{borderStyle:"dashed",borderWidth:"1px",backgroundColor:"transparent","&:disabled, &:hover:disabled":{borderColor:"$neutral3"}},ghost:{border:"1px solid transparent",backgroundColor:"transparent"}},colorScheme:{primary:{},accent:{},neutral:{},success:{},info:{},warning:{},danger:{}},size:{xs:gs({height:"$6",paddingX:"$2",fontSize:"$xs",spacing:"$1"}),sm:gs({height:"$8",paddingX:"$3",fontSize:"$sm",spacing:"$1_5"}),md:gs({height:"$10",paddingX:"$4",fontSize:"$base",spacing:"$1_5"}),lg:gs({height:"$12",paddingX:"$6",fontSize:"$lg",spacing:"$2"}),xl:gs({height:"$16",paddingX:"$10",fontSize:"$xl",spacing:"$2"})},compact:{true:{},false:{}},fullWidth:{true:{display:"flex",width:"100%"},false:{display:"inline-flex",width:"auto"}},loading:{true:{opacity:"0.75",cursor:"default",pointerEvents:"none"},false:{}}},compoundVariants:[{variant:"solid",colorScheme:"primary",css:wo({color:"white",bgColor:"$primary9",bgColorHover:"$primary10"})},{variant:"solid",colorScheme:"accent",css:wo({color:"white",bgColor:"$accent9",bgColorHover:"$accent10"})},{variant:"solid",colorScheme:"neutral",css:wo({color:"white",bgColor:"$neutral9",bgColorHover:"$neutral10"})},{variant:"solid",colorScheme:"success",css:wo({color:"white",bgColor:"$success9",bgColorHover:"$success10"})},{variant:"solid",colorScheme:"info",css:wo({color:"white",bgColor:"$info9",bgColorHover:"$info10"})},{variant:"solid",colorScheme:"warning",css:wo({color:"$blackAlpha12",bgColor:"$warning9",bgColorHover:"$warning10"})},{variant:"solid",colorScheme:"danger",css:wo({color:"white",bgColor:"$danger9",bgColorHover:"$danger10"})},{variant:"subtle",colorScheme:"primary",css:Ao({color:"$primary11",bgColor:"$primary4",bgColorHover:"$primary5",bgColorActive:"$primary6"})},{variant:"subtle",colorScheme:"accent",css:Ao({color:"$accent11",bgColor:"$accent4",bgColorHover:"$accent5",bgColorActive:"$accent6"})},{variant:"subtle",colorScheme:"neutral",css:Ao({color:"$neutral12",bgColor:"$neutral4",bgColorHover:"$neutral5",bgColorActive:"$neutral6"})},{variant:"subtle",colorScheme:"success",css:Ao({color:"$success11",bgColor:"$success4",bgColorHover:"$success5",bgColorActive:"$success6"})},{variant:"subtle",colorScheme:"info",css:Ao({color:"$info11",bgColor:"$info4",bgColorHover:"$info5",bgColorActive:"$info6"})},{variant:"subtle",colorScheme:"warning",css:Ao({color:"$warning11",bgColor:"$warning4",bgColorHover:"$warning5",bgColorActive:"$warning6"})},{variant:"subtle",colorScheme:"danger",css:Ao({color:"$danger11",bgColor:"$danger4",bgColorHover:"$danger5",bgColorActive:"$danger6"})},{variant:"outline",colorScheme:"primary",css:Wn({color:"$primary11",borderColor:"$primary7",borderColorHover:"$primary8",bgColorHover:"$primary4",bgColorActive:"$primary5"})},{variant:"outline",colorScheme:"accent",css:Wn({color:"$accent11",borderColor:"$accent7",borderColorHover:"$accent8",bgColorHover:"$accent4",bgColorActive:"$accent5"})},{variant:"outline",colorScheme:"neutral",css:Wn({color:"$neutral12",borderColor:"$neutral7",borderColorHover:"$neutral8",bgColorHover:"$neutral4",bgColorActive:"$neutral5"})},{variant:"outline",colorScheme:"success",css:Wn({color:"$success11",borderColor:"$success7",borderColorHover:"$success8",bgColorHover:"$success4",bgColorActive:"$success5"})},{variant:"outline",colorScheme:"info",css:Wn({color:"$info11",borderColor:"$info7",borderColorHover:"$info8",bgColorHover:"$info4",bgColorActive:"$info5"})},{variant:"outline",colorScheme:"warning",css:Wn({color:"$warning11",borderColor:"$warning7",borderColorHover:"$warning8",bgColorHover:"$warning4",bgColorActive:"$warning5"})},{variant:"outline",colorScheme:"danger",css:Wn({color:"$danger11",borderColor:"$danger7",borderColorHover:"$danger8",bgColorHover:"$danger4",bgColorActive:"$danger5"})},{variant:"dashed",colorScheme:"primary",css:Wn({color:"$primary11",borderColor:"$primary7",borderColorHover:"$primary8",bgColorHover:"$primary4",bgColorActive:"$primary5"})},{variant:"dashed",colorScheme:"accent",css:Wn({color:"$accent11",borderColor:"$accent7",borderColorHover:"$accent8",bgColorHover:"$accent4",bgColorActive:"$accent5"})},{variant:"dashed",colorScheme:"neutral",css:Wn({color:"$neutral12",borderColor:"$neutral7",borderColorHover:"$neutral8",bgColorHover:"$neutral4",bgColorActive:"$neutral5"})},{variant:"dashed",colorScheme:"success",css:Wn({color:"$success11",borderColor:"$success7",borderColorHover:"$success8",bgColorHover:"$success4",bgColorActive:"$success5"})},{variant:"dashed",colorScheme:"info",css:Wn({color:"$info11",borderColor:"$info7",borderColorHover:"$info8",bgColorHover:"$info4",bgColorActive:"$info5"})},{variant:"dashed",colorScheme:"warning",css:Wn({color:"$warning11",borderColor:"$warning7",borderColorHover:"$warning8",bgColorHover:"$warning4",bgColorActive:"$warning5"})},{variant:"dashed",colorScheme:"danger",css:Wn({color:"$danger11",borderColor:"$danger7",borderColorHover:"$danger8",bgColorHover:"$danger4",bgColorActive:"$danger5"})},{variant:"ghost",colorScheme:"primary",css:ko({color:"$primary11",bgColorHover:"$primary4",bgColorActive:"$primary5"})},{variant:"ghost",colorScheme:"accent",css:ko({color:"$accent11",bgColorHover:"$accent4",bgColorActive:"$accent5"})},{variant:"ghost",colorScheme:"neutral",css:ko({color:"$neutral12",bgColorHover:"$neutral4",bgColorActive:"$neutral5"})},{variant:"ghost",colorScheme:"success",css:ko({color:"$success11",bgColorHover:"$success4",bgColorActive:"$success5"})},{variant:"ghost",colorScheme:"info",css:ko({color:"$info11",bgColorHover:"$info4",bgColorActive:"$info5"})},{variant:"ghost",colorScheme:"warning",css:ko({color:"$warning11",bgColorHover:"$warning4",bgColorActive:"$warning5"})},{variant:"ghost",colorScheme:"danger",css:ko({color:"$danger11",bgColorHover:"$danger4",bgColorActive:"$danger5"})},{size:"xs",compact:"true",css:ms({height:"$5",paddingX:"$1"})},{size:"sm",compact:"true",css:ms({height:"$6",paddingX:"$1_5"})},{size:"md",compact:"true",css:ms({height:"$7",paddingX:"$2"})},{size:"lg",compact:"true",css:ms({height:"$8",paddingX:"$2_5"})},{size:"xl",compact:"true",css:ms({height:"$10",paddingX:"$3_5"})}]});W({display:"inline-flex",[`& .${Em}:focus`]:{zIndex:1}});const Z_=Ct();function Tm(){return $t(Z_)}const ym="hope-button__icon";function ru(e){const[t,n]=se(e,["class","children"]),r=()=>ie(t.class,ym,Y_());return T(je.span,K({get class(){return r()}},n,{get children(){return t.children}}))}ru.toString=()=>ge(ym);const J_=Bt('<svg><g fill="none"><path opacity=".2" fill-rule="evenodd" clip-rule="evenodd" d="M12 19a7 7 0 1 0 0-14a7 7 0 0 0 0 14zm0 3c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10z" fill="currentColor"></path><path d="M2 12C2 6.477 6.477 2 12 2v3a7 7 0 0 0-7 7H2z" fill="currentColor"></path></g></svg>',8,!0),Sm=Cr({path:()=>J_.cloneNode(!0)}),Cm="hope-button__loader";function iu(e){const t={spacing:"0.5rem",children:T(Sm,{get class(){return Q_()}})},n=K(t,e),[r,i]=se(n,["class","children","withLoadingText","placement","spacing"]),o=()=>r.placement==="start"?"marginEnd":"marginStart",a=()=>({[o()]:r.withLoadingText?r.spacing:0}),s=()=>ie(r.class,Cm,X_({withLoadingText:r.withLoadingText}));return T(je.div,K({get class(){return s()}},a,i,{get children(){return r.children}}))}iu.toString=()=>ge(Cm);const wm="hope-button";function P1(e){var t,n,r;const i=xe().Button,o=Tm(),a={loaderPlacement:(r=(n=(t=i==null?void 0:i.defaultProps)==null?void 0:t.root)==null?void 0:n.loaderPlacement)!=null?r:"start",iconSpacing:"0.5rem",type:"button",role:"button"},s=K(a,e),[l,c,u]=se(s,["class","disabled","loadingText","loader","loaderPlacement","variant","colorScheme","size","loading","compact","fullWidth"],["children","iconSpacing","leftIcon","rightIcon"]),f=()=>{var d;return(d=l.disabled)!=null?d:o==null?void 0:o.state.disabled},g=()=>{var d,h,m,p,b,E,v,N,I,S,y,O,M,j,H;return ie(l.class,wm,Em({variant:(b=(p=(d=l.variant)!=null?d:o==null?void 0:o.state.variant)!=null?p:(m=(h=i==null?void 0:i.defaultProps)==null?void 0:h.root)==null?void 0:m.variant)!=null?b:"solid",colorScheme:(S=(I=(E=l.colorScheme)!=null?E:o==null?void 0:o.state.colorScheme)!=null?I:(N=(v=i==null?void 0:i.defaultProps)==null?void 0:v.root)==null?void 0:N.colorScheme)!=null?S:"primary",size:(H=(j=(y=l.size)!=null?y:o==null?void 0:o.state.size)!=null?j:(M=(O=i==null?void 0:i.defaultProps)==null?void 0:O.root)==null?void 0:M.size)!=null?H:"md",loading:l.loading,compact:l.compact,fullWidth:l.fullWidth}))};return T(je.button,K({get class(){return g()},get disabled(){return f()},get __baseStyle(){var d;return(d=i==null?void 0:i.baseStyle)==null?void 0:d.root}},u,{get children(){return[T(Ae,{get when(){return l.loading&&l.loaderPlacement==="start"},get children(){return T(iu,{class:"hope-button__loader--start",get withLoadingText(){return!!l.loadingText},placement:"start",get spacing(){return c.iconSpacing},get children(){return l.loader}})}}),T(Ae,{get when(){return l.loading},get fallback(){return T(Bf,c)},get children(){return T(Ae,{get when(){return l.loadingText},get fallback(){return T(je.span,{opacity:0,get children(){return T(Bf,c)}})},get children(){return l.loadingText}})}}),T(Ae,{get when(){return l.loading&&l.loaderPlacement==="end"},get children(){return T(iu,{class:"hope-button__loader--end",get withLoadingText(){return!!l.loadingText},placement:"end",get spacing(){return c.iconSpacing},get children(){return l.loader}})}})]}}))}P1.toString=()=>ge(wm);function Bf(e){return[T(Ae,{get when(){return e.leftIcon},get children(){return T(ru,{get marginEnd(){return e.iconSpacing},get children(){return e.leftIcon}})}}),Sr(()=>e.children),T(Ae,{get when(){return e.rightIcon},get children(){return T(ru,{get marginStart(){return e.iconSpacing},get children(){return e.rightIcon}})}})]}function Oo(e){return{boxSize:e,fontSize:`calc(${e} / 2.5)`,lineHeight:e}}const Am=W({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,borderRadius:"$full",borderColor:"$loContrast",backgroundColor:"$neutral8",color:"$neutral12",fontWeight:"$medium",textAlign:"center",textTransform:"uppercase",verticalAlign:"top",variants:{size:{"2xs":Oo("$sizes$4"),xs:Oo("$sizes$6"),sm:Oo("$sizes$8"),md:Oo("$sizes$12"),lg:Oo("$sizes$16"),xl:Oo("$sizes$24"),"2xl":Oo("$sizes$32"),full:{boxSize:"$full",fontSize:"calc($sizes$full / 2.5)"}},withBorder:{true:{}}},compoundVariants:[{withBorder:!0,size:"2xs",css:{borderWidth:"1px"}},{withBorder:!0,size:"xs",css:{borderWidth:"1px"}},{withBorder:!0,size:"sm",css:{borderWidth:"2px"}},{withBorder:!0,size:"md",css:{borderWidth:"2px"}},{withBorder:!0,size:"lg",css:{borderWidth:"3px"}},{withBorder:!0,size:"xl",css:{borderWidth:"4px"}},{withBorder:!0,size:"2xl",css:{borderWidth:"5px"}},{withBorder:!0,size:"full",css:{borderWidth:"2px"}}]});W(Am);W({boxSize:"$full",borderRadius:"$full",objectFit:"cover"});W({position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"$full",borderWidth:"0.2em",borderStyle:"solid",borderColor:"$loContrast",variants:{placement:{"top-start":{insetInlineStart:"0",top:"0",transform:"translate(-25%, -25%)"},"top-end":{insetInlineEnd:"0",top:"0",transform:"translate(25%, -25%)"},"bottom-start":{insetInlineStart:"0",bottom:"0",transform:"translate(-25%, 25%)"},"bottom-end":{insetInlineEnd:"0",bottom:"0",transform:"translate(25%, 25%)"}}}});W({display:"flex",alignItems:"center",justifyContent:"flex-start",flexDirection:"row",[`& .${Am}:first-child`]:{marginStart:"0"}});function ev(e){const[t,n]=Me("pending"),r=()=>e.ignoreFallback?"loaded":t();let i=null;const o=()=>{i&&(i.onload=null,i.onerror=null,i=null)},a=()=>{if(!e.src)return;o();const s=new Image;s.src=e.src,e.crossOrigin&&(s.crossOrigin=e.crossOrigin),e.srcSet&&(s.srcset=e.srcSet),e.sizes&&(s.sizes=e.sizes),e.loading&&(s.loading=e.loading),s.onload=l=>{o(),n("loaded"),Cn(e.onLoad,l)},s.onerror=l=>{o(),n("failed"),Cn(e.onError,l)},i=s};return tn(()=>{n(e.src?"loading":"pending")}),Dn(()=>{e.ignoreFallback||(t()==="loading"&&a(),Dt(()=>{o()}))}),r}const tv=W({display:"inline-block",borderRadius:"$sm",py:"$0_5",px:"$1",fontSize:"$xs",fontWeight:"$bold",lineHeight:"$none",letterSpacing:"$wide",textTransform:"uppercase",whiteSpace:"nowrap",verticalAlign:"middle",variants:{variant:{solid:{border:"1px solid transparent",color:"white"},subtle:{border:"1px solid transparent"},outline:{borderStyle:"solid",borderWidth:"1px",backgroundColor:"transparent"}},colorScheme:{primary:{},accent:{},neutral:{},success:{},info:{},warning:{},danger:{}}},compoundVariants:[{variant:"solid",colorScheme:"primary",css:{color:"white",bgColor:"$primary9"}},{variant:"solid",colorScheme:"accent",css:{color:"white",bgColor:"$accent9"}},{variant:"solid",colorScheme:"neutral",css:{color:"white",bgColor:"$neutral9"}},{variant:"solid",colorScheme:"success",css:{color:"white",bgColor:"$success9"}},{variant:"solid",colorScheme:"info",css:{color:"white",bgColor:"$info9"}},{variant:"solid",colorScheme:"warning",css:{color:"$blackAlpha12",bgColor:"$warning9"}},{variant:"solid",colorScheme:"danger",css:{color:"white",bgColor:"$danger9"}},{variant:"subtle",colorScheme:"primary",css:{color:"$primary11",bgColor:"$primary4"}},{variant:"subtle",colorScheme:"accent",css:{color:"$accent11",bgColor:"$accent4"}},{variant:"subtle",colorScheme:"neutral",css:{color:"$neutral12",bgColor:"$neutral4"}},{variant:"subtle",colorScheme:"success",css:{color:"$success11",bgColor:"$success4"}},{variant:"subtle",colorScheme:"info",css:{color:"$info11",bgColor:"$info4"}},{variant:"subtle",colorScheme:"warning",css:{color:"$warning11",bgColor:"$warning4"}},{variant:"subtle",colorScheme:"danger",css:{color:"$danger11",bgColor:"$danger4"}},{variant:"outline",colorScheme:"primary",css:{color:"$primary11",borderColor:"$primary7"}},{variant:"outline",colorScheme:"accent",css:{color:"$accent11",borderColor:"$accent7"}},{variant:"outline",colorScheme:"neutral",css:{color:"$neutral12",borderColor:"$neutral7"}},{variant:"outline",colorScheme:"success",css:{color:"$success11",borderColor:"$success7"}},{variant:"outline",colorScheme:"info",css:{color:"$info11",borderColor:"$info7"}},{variant:"outline",colorScheme:"warning",css:{color:"$warning11",borderColor:"$warning7"}},{variant:"outline",colorScheme:"danger",css:{color:"$danger11",borderColor:"$danger7"}}]}),km="hope-badge";function nv(e){var t,n,r,i;const o=xe().Badge,a={variant:(n=(t=o==null?void 0:o.defaultProps)==null?void 0:t.variant)!=null?n:"subtle",colorScheme:(i=(r=o==null?void 0:o.defaultProps)==null?void 0:r.colorScheme)!=null?i:"neutral"},s=K(a,e),[l,c,u]=se(s,["class"],["variant","colorScheme"]),f=()=>ie(l.class,km,tv(c));return T(je.span,K({get class(){return f()},get __baseStyle(){return o==null?void 0:o.baseStyle}},u))}nv.toString=()=>ge(km);const rv=W({display:"block",fontSize:"$base",lineHeight:"$6"}),iv=W({display:"flex",alignItems:"center",margin:0,padding:0,listStyle:"none"}),ov=W({display:"inline-flex",alignItems:"center"}),av=W({display:"inline-flex",alignItems:"center",justifyContent:"center"}),sv=W({position:"relative",display:"inline-flex",alignItems:"center",outline:"none",backgroundColor:"transparent",color:"$neutral11",textDecoration:"none",cursor:"pointer",transition:"color 250ms, text-decoration 250ms","&:focus":{boxShadow:"$outline"},variants:{currentPage:{true:{color:"$neutral12",cursor:"default"},false:{"&:hover":{color:"$primary11"}}}}}),Om=Ct(),Nm="hope-breadcrumb",lv="hope-breadcrumb__list";function cv(e){const t=xe().Breadcrumb,[n]=An({get spacing(){var l,c,u,f;return(f=(u=e.spacing)!=null?u:(c=(l=t==null?void 0:t.defaultProps)==null?void 0:l.root)==null?void 0:c.spacing)!=null?f:"0.5rem"},get separator(){var l,c,u,f;return(f=(u=e.separator)!=null?u:(c=(l=t==null?void 0:t.defaultProps)==null?void 0:l.root)==null?void 0:c.separator)!=null?f:"/"}}),[r,i]=se(e,["class","children","separator","spacing"]),o=()=>ie(r.class,Nm,rv()),a=()=>ie(lv,iv()),s={state:n};return T(Om.Provider,{value:s,get children(){return T(je.nav,K({"aria-label":"breadcrumb",get class(){return o()},get __baseStyle(){var l;return(l=t==null?void 0:t.baseStyle)==null?void 0:l.root}},i,{get children(){return T(je.ol,{get class(){return a()},get gap(){return n.spacing},get children(){return r.children}})}}))}})}cv.toString=()=>ge(Nm);function Im(){const e=$t(Om);if(!e)throw new Error("[Hope UI]: useBreadcrumbContext must be used within a `<Breadcrumb />` component");return e}const Rm="hope-breadcrumb__item";function uv(e){const t=xe().Breadcrumb,n=Im(),[r,i]=se(e,["class"]),o=()=>ie(r.class,Rm,ov());return T(je.li,K({get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.item},get gap(){return n.state.spacing}},i))}uv.toString=()=>ge(Rm);const Mm="hope-breadcrumb__link";function dv(e){const t=xe().Breadcrumb,[n,r]=se(e,["class","currentPage","href"]),i=()=>ie(n.class,Mm,sv({currentPage:n.currentPage===!0}));return T(Ae,{get when(){return n.currentPage},get fallback(){return T(je.a,K({get href(){return n.href},get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.link}},r))},get children(){return T(je.span,K({"aria-current":"page",get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.link}},r))}})}dv.toString=()=>ge(Mm);const Lm="hope-breadcrumb__separator";function fv(e){const t=xe().Breadcrumb,n=Im(),[r,i]=se(e,["class","children"]),o=()=>ie(r.class,Lm,av());return T(je.span,K({role:"presentation",get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.separator}},i,{get children(){return T(Ae,{get when(){return r.children},get fallback(){return n.state.separator},get children(){return r.children}})}}))}fv.toString=()=>ge(Lm);const hv=W({display:"flex",justifyContent:"center",alignItems:"center"}),Pm="hope-center";function Ya(e){const[t,n]=se(e,["class"]),r=()=>ie(t.class,Pm,hv());return T(De,K({get class(){return r()}},n))}Ya.toString=()=>ge(Pm);function No(e){return{color:e.color,"&[data-disabled]":{color:"$neutral10"},"&[data-focus]":{boxShadow:`0 0 0 3px $colors${e.boxShadowColorFocus}`,borderColor:e.borderColorFocus}}}const Xu=W({position:"relative",display:"inline-flex",alignItems:"center",gap:"$2",cursor:"pointer",userSelect:"none","&[data-disabled]":{opacity:"0.5",cursor:"not-allowed"},variants:{size:{sm:{fontSize:"$sm",lineHeight:"$5"},md:{fontSize:"$base",lineHeight:"$6"},lg:{fontSize:"$lg",lineHeight:"$7"}}}}),Qu=W({cursor:"pointer",userSelect:"none","&[data-disabled]":{opacity:"0.5",cursor:"not-allowed"}}),Zu=W({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:"100%",outline:"none",padding:0,verticalAlign:"middle",cursor:"pointer",userSelect:"none",transition:"border-color 250ms, box-shadow 250ms","&[data-disabled]":{opacity:"0.5",cursor:"not-allowed"},"&[data-invalid]":{borderColor:"$danger8",color:"$danger9"},"&[data-focus][data-invalid]":{boxShadow:"0 0 0 3px $colors$danger5",borderColor:"$danger8"},"&[data-checked], &[data-focus][data-checked]":{borderColor:"transparent",backgroundColor:"currentColor"},variants:{variant:{outline:{border:"1px solid $colors$neutral8",backgroundColor:"transparent"},filled:{border:"1px solid transparent",backgroundColor:"$neutral7"}},colorScheme:{primary:No({color:"$primary9",boxShadowColorFocus:"$primary5",borderColorFocus:"$primary8"}),accent:No({color:"$accent9",boxShadowColorFocus:"$accent5",borderColorFocus:"$accent8"}),neutral:No({color:"$neutral9",boxShadowColorFocus:"$neutral5",borderColorFocus:"$neutral8"}),success:No({color:"$success9",boxShadowColorFocus:"$success5",borderColorFocus:"$success8"}),info:No({color:"$info9",boxShadowColorFocus:"$info5",borderColorFocus:"$info8"}),warning:No({color:"$warning9",boxShadowColorFocus:"$warning5",borderColorFocus:"$warning8"}),danger:No({color:"$danger9",boxShadowColorFocus:"$danger5",borderColorFocus:"$danger8"})},size:{sm:{boxSize:"$3"},md:{boxSize:"$4"},lg:{boxSize:"$5"}}}}),gv=W(Xu,{variants:{labelPlacement:{start:{flexDirection:"row-reverse"},end:{flexDirection:"row"}}}}),mv=W(Qu),pv=W(Zu,{borderRadius:"$sm","& svg":{color:"$loContrast"},"&[data-indeterminate], &[data-focus][data-indeterminate]":{borderColor:"transparent",backgroundColor:"currentColor"}}),xv=Ct();function Dm(){return $t(xv)}const bv=W({position:"relative",width:"$full"}),_v=W({display:"inline-block",marginBottom:"$1",color:"$neutral12",fontWeight:"$medium",fontSize:"$sm",lineHeight:"$5",textAlign:"start",opacity:1,"&[data-disabled]":{opacity:.4,cursor:"not-allowed"}}),vv=W({marginInlineStart:"$1",color:"$danger9",fontSize:"$base"}),Ev=W({display:"inline-block",marginTop:"$1",color:"$neutral11",fontWeight:"$normal",fontSize:"$sm",lineHeight:"$5",textAlign:"start",opacity:1,"&[data-disabled]":{opacity:.4,cursor:"not-allowed"}});W({display:"inline-block",marginTop:"$1",color:"$danger9",fontWeight:"$normal",fontSize:"$sm",lineHeight:"$5",textAlign:"start",opacity:1,"&[data-disabled]":{opacity:.4,cursor:"not-allowed"}});const $m=Ct(),Bm="hope-form-control";function Tv(e){const t=`hope-field-${lr()}`,n=xe().FormControl,[r,i]=An({get id(){var d;return(d=e.id)!=null?d:t},get labelId(){return`${this.id}-label`},get helperTextId(){return`${this.id}-helper-text`},get errorMessageId(){return`${this.id}-error-message`},get required(){return e.required},get disabled(){return e.disabled},get invalid(){return e.invalid},get readOnly(){return e.readOnly},get"data-focus"(){return this.isFocused?"":void 0},get"data-disabled"(){return this.disabled?"":void 0},get"data-invalid"(){return this.invalid?"":void 0},get"data-readonly"(){return this.readOnly?"":void 0},hasHelperText:!1,hasErrorMessage:!1,isFocused:!1}),[o,a]=se(e,["id","required","disabled","invalid","readOnly","class"]),s=d=>i("hasHelperText",d),l=d=>i("hasErrorMessage",d),c=()=>i("isFocused",!0),u=()=>i("isFocused",!1),f=()=>({state:r,setHasHelperText:s,setHasErrorMessage:l,onFocus:c,onBlur:u}),g=()=>ie(o.class,Bm,bv());return T($m.Provider,{get value(){return f()},get children(){return T(De,K({role:"group",get class(){return g()},get __baseStyle(){var d;return(d=n==null?void 0:n.baseStyle)==null?void 0:d.root}},a))}})}Tv.toString=()=>ge(Bm);function gl(){return $t($m)}function Xa(e){const t=gl(),n=Xe(()=>Ln(t==null?void 0:t.onFocus,e.onFocus)),r=Xe(()=>Ln(t==null?void 0:t.onBlur,e.onBlur)),[i]=An({get id(){var o;return(o=e.id)!=null?o:t==null?void 0:t.state.id},get required(){var o;return(o=e.required)!=null?o:t==null?void 0:t.state.required},get disabled(){var o;return(o=e.disabled)!=null?o:t==null?void 0:t.state.disabled},get invalid(){var o;return(o=e.invalid)!=null?o:t==null?void 0:t.state.invalid},get readOnly(){var o;return(o=e.readOnly)!=null?o:t==null?void 0:t.state.readOnly},get"aria-required"(){return this.required?!0:void 0},get"aria-disabled"(){return this.disabled?!0:void 0},get"aria-invalid"(){return this.invalid?!0:void 0},get"aria-readonly"(){return this.readOnly?!0:void 0},get"aria-describedby"(){const o=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.state.hasErrorMessage&&(t!=null&&t.state.invalid)&&o.push(t.state.errorMessageId),t!=null&&t.state.hasHelperText&&o.push(t.state.helperTextId),o.join(" ")||void 0},get onFocus(){return n},get onBlur(){return r}});return i}const yv=Bt('<input type="checkbox">');function Sv(e){const t=`hope-checkbox-${lr()}`,n=gl(),r=Dm(),i=Xa(e),[o,a]=An({_checked:!!e.defaultChecked,isFocused:!1,get isControlled(){return e.checked!==void 0},get checked(){if(r){const p=r.state.value;return p!=null?p.some(b=>String(e.value)===String(b)):!1}return this.isControlled?!!e.checked:this._checked},get id(){var p;return n&&!r?i.id:(p=e.id)!=null?p:t},get name(){var p;return(p=e.name)!=null?p:r==null?void 0:r.state.name},get value(){return e.value},get indeterminate(){return e.indeterminate},get required(){var p;return(p=i.required)!=null?p:r==null?void 0:r.state.required},get disabled(){var p;return(p=i.disabled)!=null?p:r==null?void 0:r.state.disabled},get invalid(){var p;return(p=i.invalid)!=null?p:r==null?void 0:r.state.invalid},get readOnly(){var p;return(p=i.readOnly)!=null?p:r==null?void 0:r.state.readOnly},get"aria-required"(){return this.required?!0:void 0},get"aria-disabled"(){return this.disabled?!0:void 0},get"aria-invalid"(){return this.invalid?!0:void 0},get"aria-readonly"(){return this.readOnly?!0:void 0},get"aria-label"(){return e["aria-label"]},get"aria-labelledby"(){return e["aria-labelledby"]},get"aria-describedby"(){return e["aria-describedby"]},get"data-indeterminate"(){return this.indeterminate?"":void 0},get"data-focus"(){return this.isFocused?"":void 0},get"data-checked"(){return this.checked?"":void 0},get"data-required"(){return this.required?"":void 0},get"data-disabled"(){return this.disabled?"":void 0},get"data-invalid"(){return this.invalid?"":void 0},get"data-readonly"(){return this.readOnly?"":void 0}}),[s,l,c]=se(e,["inputClass","children","ref","tabIndex","onChange"],["id","name","value","indeterminate","checked","defaultChecked","required","disabled","invalid","readOnly","onFocus","onBlur"]),u=p=>{if(o.readOnly||o.disabled){p.preventDefault();return}if(!o.isControlled){const b=p.target;a("_checked",b.checked)}Ln(r==null?void 0:r.onChange,s.onChange)(p)},f=p=>{a("isFocused",!0),Cn(i.onFocus,p)},g=p=>{a("isFocused",!1),Cn(i.onBlur,p)},d=()=>ie(s.inputClass,oc()),h=()=>o,m={state:o};return T(Cv.Provider,{value:m,get children(){return T(je.label,K({get for(){return o.id},"data-group":!0,get"data-indeterminate"(){return o["data-indeterminate"]},get"data-focus"(){return o["data-focus"]},get"data-checked"(){return o["data-checked"]},get"data-required"(){return o["data-required"]},get"data-disabled"(){return o["data-disabled"]},get"data-invalid"(){return o["data-invalid"]},get"data-readonly"(){return o["data-readonly"]}},c,{get children(){return[(()=>{const p=yv.cloneNode(!0);p.addEventListener("blur",g),p.addEventListener("focus",f),p.addEventListener("change",u);const b=s.ref;return typeof b=="function"?b(p):s.ref=p,Dn(E=>{const v=d(),N=s.tabIndex,I=o.value,S=o.id,y=o.name,O=o.checked,M=o.required,j=o.disabled,H=o.readOnly,X=o["aria-required"],ne=o["aria-disabled"],oe=o["aria-invalid"],ae=o["aria-readonly"],D=o["aria-label"],Re=o["aria-labelledby"],Y=o["aria-describedby"];return v!==E._v$&&(p.className=E._v$=v),N!==E._v$2&&at(p,"tabindex",E._v$2=N),I!==E._v$3&&(p.value=E._v$3=I),S!==E._v$4&&at(p,"id",E._v$4=S),y!==E._v$5&&at(p,"name",E._v$5=y),O!==E._v$6&&(p.checked=E._v$6=O),M!==E._v$7&&(p.required=E._v$7=M),j!==E._v$8&&(p.disabled=E._v$8=j),H!==E._v$9&&(p.readOnly=E._v$9=H),X!==E._v$10&&at(p,"aria-required",E._v$10=X),ne!==E._v$11&&at(p,"aria-disabled",E._v$11=ne),oe!==E._v$12&&at(p,"aria-invalid",E._v$12=oe),ae!==E._v$13&&at(p,"aria-readonly",E._v$13=ae),D!==E._v$14&&at(p,"aria-label",E._v$14=D),Re!==E._v$15&&at(p,"aria-labelledby",E._v$15=Re),Y!==E._v$16&&at(p,"aria-describedby",E._v$16=Y),E},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0,_v$6:void 0,_v$7:void 0,_v$8:void 0,_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0,_v$13:void 0,_v$14:void 0,_v$15:void 0,_v$16:void 0}),p})(),T(Ae,{get when(){return $n(s.children)},get fallback(){return s.children},get children(){var p;return(p=s.children)==null?void 0:p.call(s,{state:h})}})]}}))}})}const Cv=Ct(),wv=Bt('<svg><path d="M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z" fill="currentColor" stroke="currentColor" stroke-width="1" fill-rule="evenodd" clip-rule="evenodd"></path></svg>',4,!0),Av=Bt('<svg><path d="M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z" fill="currentColor" stroke="currentColor" stroke-width="1" fill-rule="evenodd" clip-rule="evenodd"></path></svg>',4,!0),Fm="hope-checkbox",kv="hope-checkbox__input",Ov="hope-checkbox__control",Nv="hope-checkbox__label";function Iv(e){var t,n,r,i,o,a,s,l,c,u,f,g,d,h,m,p,b,E,v,N;const I=xe().Checkbox,S=Dm(),y={variant:(o=(i=(t=S==null?void 0:S.state)==null?void 0:t.variant)!=null?i:(r=(n=I==null?void 0:I.defaultProps)==null?void 0:n.root)==null?void 0:r.variant)!=null?o:"outline",colorScheme:(u=(c=(a=S==null?void 0:S.state)==null?void 0:a.colorScheme)!=null?c:(l=(s=I==null?void 0:I.defaultProps)==null?void 0:s.root)==null?void 0:l.colorScheme)!=null?u:"primary",size:(m=(h=(f=S==null?void 0:S.state)==null?void 0:f.size)!=null?h:(d=(g=I==null?void 0:I.defaultProps)==null?void 0:g.root)==null?void 0:d.size)!=null?m:"md",labelPlacement:(N=(v=(p=S==null?void 0:S.state)==null?void 0:p.labelPlacement)!=null?v:(E=(b=I==null?void 0:I.defaultProps)==null?void 0:b.root)==null?void 0:E.labelPlacement)!=null?N:"end"},O=K(y,e),[M,j]=se(O,["children","class","variant","colorScheme","size","labelPlacement","iconChecked","iconIndeterminate"]),H=()=>ie(M.class,Fm,gv({size:M.size,labelPlacement:M.labelPlacement})),X=()=>ie(Ov,pv({variant:M.variant,colorScheme:M.colorScheme,size:M.size})),ne=()=>ie(Nv,mv());return T(Sv,K({get class(){return H()},inputClass:kv,get __baseStyle(){var oe;return(oe=I==null?void 0:I.baseStyle)==null?void 0:oe.root}},j,{children:({state:oe})=>[T(je.span,{"aria-hidden":!0,get class(){return X()},get __baseStyle(){var ae;return(ae=I==null?void 0:I.baseStyle)==null?void 0:ae.control},get"data-indeterminate"(){return oe()["data-indeterminate"]},get"data-focus"(){return oe()["data-focus"]},get"data-checked"(){return oe()["data-checked"]},get"data-required"(){return oe()["data-required"]},get"data-disabled"(){return oe()["data-disabled"]},get"data-invalid"(){return oe()["data-invalid"]},get"data-readonly"(){return oe()["data-readonly"]},get children(){return T(W1,{get children(){return[T(Ai,{get when(){return oe().indeterminate},get children(){return T(Ae,{get when(){return M.iconIndeterminate},get fallback(){return T(Mv,{})},get children(){return M.iconIndeterminate}})}}),T(Ai,{get when(){return Sr(()=>!!oe().checked,!0)()&&!oe().indeterminate},get children(){return T(Ae,{get when(){return M.iconChecked},get fallback(){return T(Rv,{})},get children(){return M.iconChecked}})}})]}})}}),T(je.span,{get class(){return ne()},get __baseStyle(){var ae;return(ae=I==null?void 0:I.baseStyle)==null?void 0:ae.label},get"data-indeterminate"(){return oe()["data-indeterminate"]},get"data-focus"(){return oe()["data-focus"]},get"data-checked"(){return oe()["data-checked"]},get"data-required"(){return oe()["data-required"]},get"data-disabled"(){return oe()["data-disabled"]},get"data-invalid"(){return oe()["data-invalid"]},get"data-readonly"(){return oe()["data-readonly"]},get children(){return M.children}})]}))}Iv.toString=()=>ge(Fm);const Rv=Cr({viewBox:"0 0 15 15",path:()=>wv.cloneNode(!0)}),Mv=Cr({viewBox:"0 0 15 15",path:()=>Av.cloneNode(!0)}),Lv=qa({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});W({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle"});W({fill:"transparent",stroke:"currentColor"});W({position:"absolute",top:0,left:0,variants:{spin:{true:{animation:`${ic} 2s linear infinite`}}}});W({fill:"transparent",stroke:"currentColor",opacity:1,variants:{hidden:{true:{opacity:0}},withRoundCaps:{true:{strokeLinecap:"round"}},indeterminate:{true:{animation:`${Lv} 2s linear infinite`},false:{strokeDashoffset:66,transitionProperty:"stroke-dasharray, stroke, opacity",transitionDuration:"600ms",transitionTimingFunction:"ease"}}}});W({position:"absolute",top:"50%",left:"50%",width:"100%",color:"$neutral12",fontSize:"$xs",lineHeight:"$none",fontWeight:"$bold",textAlign:"center",transform:"translate(-50%, -50%)"});const Pv=Bt('<svg><path fill="currentColor" d="M2.64 1.27L7.5 6.13l4.84-4.84A.92.92 0 0 1 13 1a1 1 0 0 1 1 1a.9.9 0 0 1-.27.66L8.84 7.5l4.89 4.89A.9.9 0 0 1 14 13a1 1 0 0 1-1 1a.92.92 0 0 1-.69-.27L7.5 8.87l-4.85 4.85A.92.92 0 0 1 2 14a1 1 0 0 1-1-1a.9.9 0 0 1 .27-.66L6.16 7.5L1.27 2.61A.9.9 0 0 1 1 2a1 1 0 0 1 1-1c.24.003.47.1.64.27z"></path></svg>',4,!0),Dv=Cr({viewBox:"0 0 15 15",path:()=>Pv.cloneNode(!0)}),$v=W({appearance:"none",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,outline:"none",borderWidth:0,borderRadius:"$sm",backgroundColor:"transparent",padding:0,color:"currentColor",cursor:"pointer",userSelect:"none",transition:"color 250ms, background-color 250ms","&:disbaled":{opacity:"0.5",cursor:"not-allowed",boxShadow:"none"},"&:hover":{backgroundColor:"$closeButtonHoverBackground"},"&:active":{backgroundColor:"$closeButtonActiveBackground"},"&:focus":{outline:"none",boxShadow:"$outline"},variants:{size:{sm:{boxSize:"24px",fontSize:"10px"},md:{boxSize:"32px",fontSize:"12px"},lg:{boxSize:"40px",fontSize:"16px"}}}}),Hm="hope-close-button";function cc(e){var t,n,r,i,o,a;const s=xe().CloseButton,l={"aria-label":(n=(t=s==null?void 0:s.defaultProps)==null?void 0:t["aria-label"])!=null?n:"Close",icon:(i=(r=s==null?void 0:s.defaultProps)==null?void 0:r.icon)!=null?i:T(Dv,{}),size:(a=(o=s==null?void 0:s.defaultProps)==null?void 0:o.size)!=null?a:"md"},c=K(l,e),[u,f]=se(c,["class","children","size","icon"]),g=()=>ie(u.class,Hm,$v({size:u.size}));return T(je.button,K({type:"button",get class(){return g()},get __baseStyle(){return s==null?void 0:s.baseStyle}},f,{get children(){return T(Ae,{get when(){return u.children},get fallback(){return u.icon},get children(){return u.children}})}}))}cc.toString=()=>ge(Hm);const Bv=W({width:"100%","@sm":{maxWidth:"$containerSm"},"@md":{maxWidth:"$containerMd"},"@lg":{maxWidth:"$containerLg"},"@xl":{maxWidth:"$containerXl"},"@2xl":{maxWidth:"$container2xl"},variants:{centered:{true:{mx:"auto"}},centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}}}}),zm="hope-container";function Fv(e){const n=K({centered:!0,centerContent:!1},e),[r,i,o]=se(n,["class"],["centered","centerContent"]),a=()=>ie(r.class,zm,Bv(i));return T(De,K({get class(){return a()}},o))}Fv.toString=()=>ge(zm);const Hv=W({border:0,borderColor:"currentColor",variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{height:"100%"},horizontal:{width:"100%"}}}}),Um="hope-divider";function zv(e){const n=K({as:"div",variant:"solid",orientation:"horizontal",color:"$neutral6",thickness:"1px"},e),[r,i]=se(n,["class","variant","orientation","thickness"]),o=()=>ie(r.class,Um,Hv({variant:r.variant,orientation:r.orientation,css:{borderLeftWidth:r.orientation==="vertical"?r.thickness:0,borderBottomWidth:r.orientation==="horizontal"?r.thickness:0}}));return T(De,K({get class(){return o()}},i))}zv.toString=()=>ge(Um);function Uv(e){const t=`hope-modal-${lr()}`,n=xe().Modal,[r,i]=An({headerMounted:!1,bodyMounted:!1,get opened(){return e.opened},get dialogId(){var p;return(p=e.id)!=null?p:t},get headerId(){return`${this.dialogId}--header`},get bodyId(){return`${this.dialogId}--body`},get initialFocus(){return e.initialFocus},get motionPreset(){var p,b,E,v;return(v=(E=e.motionPreset)!=null?E:(b=(p=n==null?void 0:n.defaultProps)==null?void 0:p.root)==null?void 0:b.motionPreset)!=null?v:"scale"},get size(){var p,b,E,v;return(v=(E=e.size)!=null?E:(b=(p=n==null?void 0:n.defaultProps)==null?void 0:p.root)==null?void 0:b.size)!=null?v:"md"},get centered(){var p,b,E,v;return(v=(E=e.centered)!=null?E:(b=(p=n==null?void 0:n.defaultProps)==null?void 0:p.root)==null?void 0:b.centered)!=null?v:!1},get scrollBehavior(){var p,b,E,v;return(v=(E=e.scrollBehavior)!=null?E:(b=(p=n==null?void 0:n.defaultProps)==null?void 0:p.root)==null?void 0:b.scrollBehavior)!=null?v:"outside"},get closeOnOverlayClick(){var p,b,E,v;return(v=(E=e.closeOnOverlayClick)!=null?E:(b=(p=n==null?void 0:n.defaultProps)==null?void 0:p.root)==null?void 0:b.closeOnOverlayClick)!=null?v:!0},get closeOnEsc(){var p,b,E,v;return(v=(E=e.closeOnEsc)!=null?E:(b=(p=n==null?void 0:n.defaultProps)==null?void 0:p.root)==null?void 0:b.closeOnEsc)!=null?v:!0},get trapFocus(){var p,b,E,v;return(v=(E=e.trapFocus)!=null?E:(b=(p=n==null?void 0:n.defaultProps)==null?void 0:p.root)==null?void 0:b.trapFocus)!=null?v:!0},get blockScrollOnMount(){var p,b,E,v;return(v=(E=e.blockScrollOnMount)!=null?E:(b=(p=n==null?void 0:n.defaultProps)==null?void 0:p.root)==null?void 0:b.blockScrollOnMount)!=null?v:!0},get preserveScrollBarGap(){var p,b,E,v;return(v=(E=e.preserveScrollBarGap)!=null?E:(b=(p=n==null?void 0:n.defaultProps)==null?void 0:p.root)==null?void 0:b.preserveScrollBarGap)!=null?v:!1}}),[o,a]=Me(!1);tn(()=>{r.opened?a(!0):r.motionPreset==="none"&&a(!1)});const s=()=>a(!1),l=()=>e.onClose(),c=p=>i("headerMounted",p),u=p=>i("bodyMounted",p);let f=null;const m={state:r,unmountPortal:s,onClose:l,onMouseDown:p=>{f=p.target},onKeyDown:p=>{var b;p.key==="Escape"&&(p.stopPropagation(),r.closeOnEsc&&l(),(b=e.onEsc)==null||b.call(e))},onOverlayClick:p=>{var b;p.stopPropagation(),f===p.target&&(r.closeOnOverlayClick&&l(),(b=e.onOverlayClick)==null||b.call(e))},setHeaderMounted:c,setBodyMounted:u};return T(Ae,{get when(){return o()},get children(){return T(jm.Provider,{value:m,get children(){return T(go,{get children(){return e.children}})}})}})}const jm=Ct();function xo(){const e=$t(jm);if(!e)throw new Error("[Hope UI]: useModalContext must be used within a `<Modal />` component");return e}const Gm="hope-modal__body";function Km(e){const t=xe().Modal,n=xo(),[r,i]=se(e,["class"]),o=()=>ie(r.class,Gm,m3({scrollBehavior:n.state.scrollBehavior}));return Gn(()=>n.setBodyMounted(!0)),Dt(()=>n.setBodyMounted(!1)),T(De,K({get class(){return o()},get id(){return n.state.bodyId},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.body}},i))}Km.toString=()=>ge(Gm);const Wm="hope-modal__close-button";function Vm(e){var t,n,r,i,o,a,s,l;const c=xe().Modal,u=xo(),f={"aria-label":(r=(n=(t=c==null?void 0:c.defaultProps)==null?void 0:t.closeButton)==null?void 0:n["aria-label"])!=null?r:"Close modal",size:(a=(o=(i=c==null?void 0:c.defaultProps)==null?void 0:i.closeButton)==null?void 0:o.size)!=null?a:"md",icon:(l=(s=c==null?void 0:c.defaultProps)==null?void 0:s.closeButton)==null?void 0:l.icon},g=K(f,e),[d,h]=se(g,["class","onClick"]),m=()=>ie(d.class,Wm,x3());return T(cc,K({get class(){return m()},get __baseStyle(){var b;return(b=c==null?void 0:c.baseStyle)==null?void 0:b.closeButton},onClick:b=>{Ln(d.onClick,E=>{E.stopPropagation(),u.onClose()})(b)}},h))}Vm.toString=()=>ge(Wm);const qm="hope-modal__footer";function jv(e){const t=xe().Modal,[n,r]=se(e,["class"]),i=()=>ie(n.class,qm,p3());return T(De,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.footer}},r))}jv.toString=()=>ge(qm);const Ym="hope-modal__header";function Xm(e){const t=xe().Modal,n=xo(),[r,i]=se(e,["class"]),o=()=>ie(r.class,Ym,g3());return Gn(()=>n.setHeaderMounted(!0)),Dt(()=>n.setHeaderMounted(!1)),T(De,K({get class(){return o()},get id(){return n.state.headerId},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.header}},i))}Xm.toString=()=>ge(Ym);const Qm=Ct();function aB(e){const t=xe().Drawer,[,n]=se(e,["opened","onClose","placement","size","fullHeight","disableMotion"]),[r]=An({get placement(){var i,o,a,s;return(s=(a=e.placement)!=null?a:(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.placement)!=null?s:"right"},get size(){var i,o,a,s;return(s=(a=e.size)!=null?a:(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.size)!=null?s:"xs"},get fullHeight(){var i,o,a,s;return(s=(a=e.fullHeight)!=null?a:(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.fullHeight)!=null?s:!1},get disableMotion(){var i,o,a,s;return(s=(a=e.disableMotion)!=null?a:(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.disableMotion)!=null?s:!1}});return T(Qm.Provider,{value:r,get children(){return T(Uv,K({scrollBehavior:"inside",get blockScrollOnMount(){var i,o;return(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.blockScrollOnMount},get closeOnEsc(){var i,o;return(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.closeOnEsc},get closeOnOverlayClick(){var i,o;return(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.closeOnOverlayClick},get preserveScrollBarGap(){var i,o;return(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.preserveScrollBarGap},get trapFocus(){var i,o;return(o=(i=t==null?void 0:t.defaultProps)==null?void 0:i.root)==null?void 0:o.trapFocus},get opened(){return e.opened},get onClose(){return e.onClose}},n))}})}function Zm(){const e=$t(Qm);if(!e)throw new Error("[Hope UI]: useDrawerContext must be used within a `<Drawer />` component");return e}function sB(e){var t,n,r,i,o,a,s,l;const c=xe().Drawer,u={"aria-label":(r=(n=(t=c==null?void 0:c.defaultProps)==null?void 0:t.closeButton)==null?void 0:n["aria-label"])!=null?r:"Close drawer",size:(a=(o=(i=c==null?void 0:c.defaultProps)==null?void 0:i.closeButton)==null?void 0:o.size)!=null?a:"md",icon:(l=(s=c==null?void 0:c.defaultProps)==null?void 0:s.closeButton)==null?void 0:l.icon},f=K(u,e);return T(Vm,K({get __baseStyle(){var g;return(g=c==null?void 0:c.baseStyle)==null?void 0:g.closeButton}},f))}function lB(e){const t=xe().Drawer;return T(Km,K({get __baseStyle(){var n;return(n=t==null?void 0:t.baseStyle)==null?void 0:n.body}},e))}function cB(e){const t=xe().Drawer;return T(Xm,K({get __baseStyle(){var n;return(n=t==null?void 0:t.baseStyle)==null?void 0:n.header}},e))}function Jm(e){const t=xo();let n,r;const i=g=>{n=g},o=()=>t.state.headerMounted?t.state.headerId:void 0,a=()=>t.state.bodyMounted?t.state.bodyId:void 0,s=g=>{Ln(e.onClick,d=>d.stopPropagation())(g)},l=()=>`[id='${t.state.dialogId}']`,c=()=>`${l()} *`,u=()=>{n&&(t.state.trapFocus&&(r=F5(n,{initialFocus:t.state.initialFocus,fallbackFocus:l(),allowOutsideClick:!0}),r.activate()),t.state.blockScrollOnMount&&(hs.addScrollableSelector(c()),hs.disablePageScroll(n)))},f=()=>{r==null||r.deactivate(),hs.removeScrollableSelector(c()),hs.clearQueueScrollLocks(),hs.enablePageScroll()};return Gn(()=>{u()}),Dt(()=>{f()}),{assignContainerRef:i,ariaLabelledBy:o,ariaDescribedBy:a,onDialogClick:s}}const Gv="hope-modal__content-container",ep="hope-modal__content";function Kv(e){const t=xe().Modal,n=xo(),[r,i]=se(e,["ref","class","role","aria-labelledby","aria-describedby","onClick"]),{assignContainerRef:o,ariaLabelledBy:a,ariaDescribedBy:s,onDialogClick:l}=Jm(r),c=()=>{const g=f3({centered:n.state.centered,scrollBehavior:n.state.scrollBehavior});return ie(Gv,g)},u=()=>{const g=h3({size:n.state.size,scrollBehavior:n.state.scrollBehavior});return ie(r.class,ep,g)},f=()=>{switch(n.state.motionPreset){case"fade-in-bottom":return en.fadeInBottom;case"scale":return en.scale;case"none":return"hope-none"}};return T(po,{get name(){return f()},appear:!0,get onAfterExit(){return n.unmountPortal},get children(){return T(Ae,{get when(){return n.state.opened},get children(){return T(De,{ref:o,get class(){return c()},tabIndex:-1,get onMouseDown(){return n.onMouseDown},get onKeyDown(){return n.onKeyDown},get onClick(){return n.onOverlayClick},get children(){return T(je.section,K({get class(){return u()},get __baseStyle(){var g;return(g=t==null?void 0:t.baseStyle)==null?void 0:g.content},get id(){return n.state.dialogId},get role(){var g;return(g=r.role)!=null?g:"dialog"},tabIndex:-1,"aria-modal":!0,get"aria-labelledby"(){return a()},get"aria-describedby"(){return s()},onClick:l},i))}})}})}})}Kv.toString=()=>ge(ep);const tp="hope-modal__overlay";function Wv(e){const t=xe().Modal,n=xo(),[r,i]=se(e,["class"]),o=()=>ie(r.class,tp,tm()),a=()=>n.state.motionPreset==="none"?"hope-none":en.fade;return T(po,{get name(){return a()},appear:!0,get children(){return T(Ae,{get when(){return n.state.opened},get children(){return T(De,K({get class(){return o()},get __baseStyle(){var s;return(s=t==null?void 0:t.baseStyle)==null?void 0:s.overlay}},i))}})}})}Wv.toString=()=>ge(tp);const Vv="hope-drawer__content-container",np="hope-drawer__content";function qv(e){const t=xe().Drawer,n=Zm(),r=xo(),[i,o]=se(e,["ref","class","role","aria-labelledby","aria-describedby","onClick"]),{assignContainerRef:a,ariaLabelledBy:s,ariaDescribedBy:l,onDialogClick:c}=Jm(i),u=()=>ie(Vv,_3({placement:n.placement})),f=()=>{const d=v3({size:n.size,placement:n.placement,fullHeight:n.fullHeight});return ie(i.class,np,d)},g=()=>{if(n.disableMotion)return"hope-none";switch(n.placement){case"top":return ct.slideInTop;case"right":return ct.slideInRight;case"bottom":return ct.slideInBottom;case"left":return ct.slideInLeft}};return T(po,{get name(){return g()},appear:!0,get onAfterExit(){return r.unmountPortal},get children(){return T(Ae,{get when(){return r.state.opened},get children(){return T(De,{ref:a,get class(){return u()},tabIndex:-1,get onMouseDown(){return r.onMouseDown},get onKeyDown(){return r.onKeyDown},get onClick(){return r.onOverlayClick},get children(){return T(je.section,K({get class(){return f()},get __baseStyle(){var d;return(d=t==null?void 0:t.baseStyle)==null?void 0:d.content},get id(){return r.state.dialogId},get role(){var d;return(d=i.role)!=null?d:"dialog"},tabIndex:-1,"aria-modal":!0,get"aria-labelledby"(){return s()},get"aria-describedby"(){return l()},onClick:c},o))}})}})}})}qv.toString=()=>ge(np);const rp="hope-drawer__overlay";function Yv(e){const t=xe().Drawer,n=Zm(),r=xo(),[i,o]=se(e,["class"]),a=()=>ie(i.class,rp,tm()),s=()=>n.disableMotion?"hope-none":ct.fade;return T(po,{get name(){return s()},appear:!0,get children(){return T(Ae,{get when(){return r.state.opened},get children(){return T(De,K({get class(){return a()},get __baseStyle(){var l;return(l=t==null?void 0:t.baseStyle)==null?void 0:l.overlay}},o))}})}})}Yv.toString=()=>ge(rp);const ip="hope-flex";function Ju(e){const[t,n]=se(e,["class","direction","wrap"]),r=()=>ie(t.class,ip);return T(De,K({get class(){return r()},display:"flex",get flexDirection(){return t.direction},get flexWrap(){return t.wrap}},n))}Ju.toString=()=>ge(ip);const op="hope-form-helper-text";function Xv(e){const t=xe().FormControl,n=gl(),[r,i]=se(e,["ref","id","class"]),o=()=>{var s;return(s=r.id)!=null?s:n==null?void 0:n.state.helperTextId},a=()=>ie(r.class,op,Ev());return Gn(()=>n==null?void 0:n.setHasHelperText(!0)),Dt(()=>n==null?void 0:n.setHasHelperText(!1)),T(De,K({get id(){return o()},get class(){return a()},get __baseStyle(){var s;return(s=t==null?void 0:t.baseStyle)==null?void 0:s.helperText},get"data-disabled"(){return n==null?void 0:n.state["data-disabled"]},get"data-readonly"(){return n==null?void 0:n.state["data-readonly"]}},i))}Xv.toString=()=>ge(op);const Qv=Bt('<span role="presentation" aria-hidden="true">*</span>'),ap="hope-form-label";function Zv(e){var t,n,r;const i=xe().FormControl,o=gl(),a={withRequiredIndicator:(r=(n=(t=i==null?void 0:i.defaultProps)==null?void 0:t.label)==null?void 0:n.withRequiredIndicator)!=null?r:!0},s=K(a,e),[l,c]=se(s,["id","for","class","children","withRequiredIndicator"]),u=()=>{var d;return(d=l.id)!=null?d:o==null?void 0:o.state.labelId},f=()=>{var d;return(d=l.for)!=null?d:o==null?void 0:o.state.id},g=()=>ie(l.class,ap,_v());return T(je.label,K({get id(){return u()},get for(){return f()},get class(){return g()},get __baseStyle(){var d;return(d=i==null?void 0:i.baseStyle)==null?void 0:d.label},get"data-focus"(){return o==null?void 0:o.state["data-focus"]},get"data-disabled"(){return o==null?void 0:o.state["data-disabled"]},get"data-invalid"(){return o==null?void 0:o.state["data-invalid"]},get"data-readonly"(){return o==null?void 0:o.state["data-readonly"]}},c,{get children(){return[Sr(()=>l.children),T(Ae,{get when(){return(o==null?void 0:o.state.required)&&l.withRequiredIndicator},get children(){const d=Qv.cloneNode(!0);return Dn(()=>d.className=vv()),d}})]}}))}Zv.toString=()=>ge(ap);const sp="hope-grid";function lp(e){const[t,n]=se(e,["class","autoFlow","autoColumns","autoRows","templateAreas","templateColumns","templateRows"]),r=()=>ie(t.class,sp);return T(De,K({get class(){return r()},display:"grid",get gridAutoFlow(){return t.autoFlow},get gridAutoColumns(){return t.autoColumns},get gridAutoRows(){return t.autoRows},get gridTemplateAreas(){return t.templateAreas},get gridTemplateColumns(){return t.templateColumns},get gridTemplateRows(){return t.templateRows}},n))}lp.toString=()=>ge(sp);function Ff(e){if(e!=null)return f7(e,t=>{switch(t){case"auto":return"auto";case"full":return"1 / -1";default:return`span ${t} / span ${t}`}})}const cp="hope-grid-item";function Jv(e){const[t,n]=se(e,["class","area","colSpan","colStart","colEnd","rowSpan","rowStart","rowEnd"]),r=()=>ie(t.class,cp);return T(De,K({get class(){return r()},get gridArea(){return t.area},get gridColumn(){return Ff(t.colSpan)},get gridRow(){return Ff(t.rowSpan)},get gridColumnStart(){return t.colStart},get gridColumnEnd(){return t.colEnd},get gridRowStart(){return t.rowStart},get gridRowEnd(){return t.rowEnd}},n))}Jv.toString=()=>ge(cp);const up="hope-simple-grid";function eE(e){return u7(e)?`${e}px`:e}function tE(e){return om(e,t=>Q5(t)?null:`repeat(auto-fit, minmax(${eE(t)}, 1fr))`)}function nE(e){return om(e,t=>Q5(t)?null:`repeat(${t}, minmax(0, 1fr))`)}function rE(e){const[t,n]=se(e,["class","minChildWidth","columns"]),r=()=>ie(t.class,up),i=()=>t.minChildWidth?tE(t.minChildWidth):nE(t.columns);return T(lp,K({get class(){return r()},get templateColumns(){return i()}},n))}rE.toString=()=>ge(up);const dp=W({variants:{size:{xs:{fontSize:"$xs",lineHeight:"$4"},sm:{fontSize:"$sm",lineHeight:"$5"},base:{fontSize:"$base",lineHeight:"$6"},lg:{fontSize:"$lg",lineHeight:"$7"},xl:{fontSize:"$xl",lineHeight:"$7"},"2xl":{fontSize:"$2xl",lineHeight:"$8"},"3xl":{fontSize:"$3xl",lineHeight:"$9"},"4xl":{fontSize:"$4xl",lineHeight:"$10"},"5xl":{fontSize:"$5xl",lineHeight:"$none"},"6xl":{fontSize:"$6xl",lineHeight:"$none"},"7xl":{fontSize:"$7xl",lineHeight:"$none"},"8xl":{fontSize:"$8xl",lineHeight:"$none"},"9xl":{fontSize:"$9xl",lineHeight:"$none"}}}}),iE=W(dp,{fontWeight:"$semibold"}),fp="hope-heading";function hp(e){var t,n;const r=xe().Heading,i={as:"h2",level:(t=r==null?void 0:r.defaultProps)==null?void 0:t.level,size:(n=r==null?void 0:r.defaultProps)==null?void 0:n.size},o=K(i,e),[a,s]=se(o,["class","as","level","size"]),l=()=>ie(a.class,fp,iE({size:a.size})),c=()=>a.level?`h${a.level}`:a.as;return T(De,K({get as(){return c()},get class(){return l()},get __baseStyle(){return r==null?void 0:r.baseStyle}},s))}hp.toString=()=>ge(fp);function oE(e){const t=xe().IconButton,n=Tm(),[r,i]=se(e,["class","children","icon","variant","colorScheme","size","disabled"]),o=()=>{var u,f,g,d;return(d=(g=(u=r.variant)!=null?u:n==null?void 0:n.state.variant)!=null?g:(f=t==null?void 0:t.defaultProps)==null?void 0:f.variant)!=null?d:"solid"},a=()=>{var u,f,g,d;return(d=(g=(u=r.colorScheme)!=null?u:n==null?void 0:n.state.colorScheme)!=null?g:(f=t==null?void 0:t.defaultProps)==null?void 0:f.colorScheme)!=null?d:"primary"},s=()=>{var u,f,g,d;return(d=(g=(u=r.size)!=null?u:n==null?void 0:n.state.size)!=null?g:(f=t==null?void 0:t.defaultProps)==null?void 0:f.size)!=null?d:"md"},l=()=>{var u;return(u=r.disabled)!=null?u:n==null?void 0:n.state.disabled},c=()=>ie(r.class,lc);return T(P1,K({get class(){return c()},get __baseStyle(){return t==null?void 0:t.baseStyle},get variant(){return o()},get colorScheme(){return a()},get size(){return s()},get disabled(){return l()}},i,{get children(){return T(Ae,{get when(){return r.icon},get fallback(){return r.children},get children(){return r.icon}})}}))}oE.toString=()=>ge(lc);const gp="hope-image";function aE(e){const[t,n,r]=se(e,["class","htmlWidth","htmlHeight","fallbackSrc","fallback","src","srcSet","align","fit","loading","ignoreFallback","crossOrigin"],["onError","onLoad"]),i=()=>t.loading!=null||t.ignoreFallback||t.fallbackSrc===void 0&&t.fallback===void 0,o=Xe(()=>ev(ni(me({},e),{ignoreFallback:i()}))),a=()=>me(me({objectFit:t.fit,objectPosition:t.align,width:t.htmlWidth,height:t.htmlHeight},i()?n:{}),r),s=()=>ie(t.class,gp);return T(Ae,{get when(){return o()()==="loaded"},get fallback(){return T(Ae,{get when(){return t.fallback},get fallback(){return T(De,K({as:"img",get src(){return t.fallbackSrc},class:"hope-image__placeholder"},a))},get children(){return t.fallback}})},get children(){return T(De,K({as:"img",get src(){return t.src},get srcSet(){return t.srcSet},get crossOrigin(){return t.crossOrigin},get loading(){return t.loading},get class(){return s()}},a))}})}aE.toString=()=>ge(gp);const sE=Ct();function lE(){return $t(sE)}const mp="hope-input";function pp(e){const t=xe().Input,n=lE(),r=Xa(e),[i,o]=se(e,["class","htmlSize","variant","size"]),a=()=>{var s,l,c,u,f,g,d,h,m,p,b,E,v,N;return ie(i.class,mp,H3({variant:(f=(u=(s=i.variant)!=null?s:n==null?void 0:n.state.variant)!=null?u:(c=(l=t==null?void 0:t.defaultProps)==null?void 0:l.input)==null?void 0:c.variant)!=null?f:"outline",size:(p=(m=(g=i.size)!=null?g:n==null?void 0:n.state.size)!=null?m:(h=(d=t==null?void 0:t.defaultProps)==null?void 0:d.input)==null?void 0:h.size)!=null?p:"md",withLeftElement:(b=n==null?void 0:n.state.hasLeftElement)!=null?b:!1,withRightElement:(E=n==null?void 0:n.state.hasRightElement)!=null?E:!1,withLeftAddon:(v=n==null?void 0:n.state.hasLeftAddon)!=null?v:!1,withRightAddon:(N=n==null?void 0:n.state.hasRightAddon)!=null?N:!1}))};return T(je.input,K({type:"text",get class(){return a()},get size(){return i.htmlSize},get __baseStyle(){var s;return(s=t==null?void 0:t.baseStyle)==null?void 0:s.input}},r,o))}pp.toString=()=>ge(mp);const cE=W({borderRadius:"$md",borderColor:"$neutral7",borderWidth:"1px",borderBottomWidth:"3px",backgroundColor:"$neutral2",px:"0.4em",fontFamily:"$mono",fontSize:"0.8em",fontWeight:"$bold",lineHeight:"$normal",whiteSpace:"nowrap"}),xp="hope-kbd";function uE(e){const t=xe().Kbd,[n,r]=se(e,["class"]),i=()=>ie(n.class,xp,cE());return T(je.kbd,K({get class(){return i()},get __baseStyle(){return t==null?void 0:t.baseStyle}},r))}uE.toString=()=>ge(xp);const dE=W({listStyleType:"none"});W({marginEnd:"0.5rem"});const bp="hope-list",fE="& > *:not(style) ~ *:not(style)";function _p(e){const[t,n]=se(e,["class","styleType","stylePosition","spacing"]),r=()=>t.spacing?{[fE]:{mt:t.spacing}}:{},i=()=>ie(t.class,bp,dE({css:me({listStyleType:t.styleType,listStylePosition:t.stylePosition},r())}));return T(je.ul,K({role:"list",get class(){return i()}},n))}_p.toString=()=>ge(bp);const vp="hope-list__item";function Ep(e){const[t,n]=se(e,["class"]),r=()=>ie(t.class,vp);return T(je.li,K({get class(){return r()}},n))}Ep.toString=()=>ge(vp);var Xr=(e=>(e[e.Close=0]="Close",e[e.SelectAndClose=1]="SelectAndClose",e[e.First=2]="First",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Open=5]="Open",e[e.OpenAndFocusLast=6]="OpenAndFocusLast",e[e.Previous=7]="Previous",e[e.Select=8]="Select",e[e.Type=9]="Type",e))(Xr||{});function Hf(e=[],t,n=[]){return e.filter(r=>r.disabled?!1:r.textValue.toLowerCase().indexOf(t.toLowerCase())===0&&n.indexOf(r.textValue)<0)}function hE(e,t,n=0){const r=[...e.slice(n),...e.slice(0,n)],i=Hf(r,t)[0],o=a=>a.every(s=>s===a[0]);if(i)return e.indexOf(i);if(o(t.split(""))){const a=Hf(r,t[0]);return e.indexOf(a[0])}else return-1}function gE(e,t){const{key:n,altKey:r,ctrlKey:i,metaKey:o}=e;if(!t&&["ArrowDown","Enter"," "].includes(n))return 5;if(!t&&n==="ArrowUp")return 6;if(n==="Home")return 2;if(n==="End")return 3;if(n==="Backspace"||n==="Clear"||n.length===1&&n!==" "&&!r&&!i&&!o)return 9;if(t){if(n==="ArrowDown")return 4;if(n==="ArrowUp")return 7;if(n==="Escape")return 0;if(n==="Enter"||n===" ")return 1}}function zf(e,t,n){switch(n){case 2:return 0;case 3:return t;case 7:return e-1<0?t:e-1;case 4:return e+1>t?0:e+1;default:return e}}function mE(e){const{currentIndex:t,maxIndex:n,initialAction:r,isItemDisabled:i}=e;let o=zf(t,n,r);for(;i(o);){let a=r;const s=o===0,l=o===n;if(r===2&&(a=4),r===3&&(a=7),r===7&&s){o=t;break}if(r===4&&l){o=t;break}o=zf(o,n,a)}return o}function pE(e){const t=`hope-menu-${lr()}`,n=xe().Menu,[r,i]=Me([]),[o,a]=An({get triggerId(){var Y;return(Y=e.id)!=null?Y:`${t}-trigger`},get menuContentId(){return`${t}-content`},get labelIdPrefix(){return`${t}-label`},get itemIdPrefix(){return`${t}-item`},get activeDescendantId(){return this.opened?`${this.itemIdPrefix}-${this.activeIndex}`:void 0},get closeOnSelect(){var Y,Pe,we,C;return(C=(we=e.closeOnSelect)!=null?we:(Pe=(Y=n==null?void 0:n.defaultProps)==null?void 0:Y.root)==null?void 0:Pe.closeOnSelect)!=null?C:!0},get motionPreset(){var Y,Pe,we,C,R;return e.motionPreset?e.motionPreset:(Pe=(Y=n==null?void 0:n.defaultProps)==null?void 0:Y.root)!=null&&Pe.motionPreset?(C=(we=n==null?void 0:n.defaultProps)==null?void 0:we.root)==null?void 0:C.motionPreset:(R=e.placement)!=null&&R.startsWith("top")?"scale-bottom-left":"scale-top-left"},get items(){return r()},opened:!1,activeIndex:0,ignoreBlur:!1,searchString:"",searchTimeoutId:void 0});let s,l,c;const u=async()=>{var Y,Pe,we,C,R,fe,$e,vt;if(!s||!l)return;const{x:Je,y:et}=await nc(s,l,{placement:(C=(we=e.placement)!=null?we:(Pe=(Y=n==null?void 0:n.defaultProps)==null?void 0:Y.root)==null?void 0:Pe.placement)!=null?C:"bottom-start",middleware:[Q1((vt=($e=e.offset)!=null?$e:(fe=(R=n==null?void 0:n.defaultProps)==null?void 0:R.root)==null?void 0:fe.offset)!=null?vt:5),X1(),Z1()]});l&&Object.assign(l.style,{left:`${Math.round(Je)}px`,top:`${Math.round(et)}px`})},f=Y=>{o.searchTimeoutId&&window.clearTimeout(o.searchTimeoutId);const Pe=window.setTimeout(()=>{a("searchString","")},500);return a("searchTimeoutId",Pe),a("searchString",we=>we+=Y),o.searchString},g=Y=>{a("activeIndex",Y)},d=Y=>o.items[Y].disabled,h=Y=>{var Pe;g(Y);const we=o.items[Y];(Pe=we.onSelect)==null||Pe.call(we),we.closeOnSelect?O(!1):m()},m=()=>{s==null||s.focus()},p=Y=>{if(!qo(s,L1(Y))){if(o.ignoreBlur){a("ignoreBlur",!1);return}o.opened&&O(!1,!1)}},b=()=>{O(!o.opened,!1)},E=Y=>{const{key:Pe}=Y,we=o.items.length-1,C=gE(Y,o.opened);switch(C){case Xr.Last:case Xr.First:case Xr.Next:case Xr.Previous:return Y.preventDefault(),g(mE({currentIndex:o.activeIndex,maxIndex:we,initialAction:C,isItemDisabled:d}));case Xr.SelectAndClose:Y.preventDefault(),h(o.activeIndex);return;case Xr.Close:return Y.preventDefault(),O(!1);case Xr.Type:return v(Pe);case Xr.Open:return Y.preventDefault(),O(!0);case Xr.OpenAndFocusLast:return Y.preventDefault(),O(!0,!0,!0)}},v=Y=>{O(!0);const Pe=f(Y),we=hE(o.items,Pe,o.activeIndex+1);we>=0?g(we):(window.clearTimeout(o.searchTimeoutId),a("searchString",""))},N=Y=>{if(o.items[Y].disabled){m();return}h(Y)},I=Y=>{o.activeIndex!==Y&&g(Y)},S=()=>{a("ignoreBlur",!0)},y=()=>{o.opened?(u(),s&&l&&(c=tc(s,l,u))):c==null||c()},O=(Y,Pe=!0,we=!1)=>{o.opened!==Y&&(a("opened",Y),a("activeIndex",we?o.items.length-1:0),y(),Pe&&m())},M=()=>{g(-1)},j=Y=>{qo(s,Y)||O(!1,!1)},H=Y=>Y===o.activeIndex,X=Y=>{s=Y},ne=Y=>{l=Y},oe=Y=>{l&&lm(l)&&cm(Y,l)},ae=Y=>{const Pe=o.items.findIndex(C=>C.key===Y.key);return Pe!=-1?Pe:i(C=>[...C,Y]).length-1},D=()=>o.opened,Re={state:o,isItemActiveDescendant:H,assignTriggerRef:X,assignContentRef:ne,registerItem:ae,scrollToItem:oe,onTriggerBlur:p,onTriggerClick:b,onTriggerKeyDown:E,onContentMouseLeave:M,onContentClickOutside:j,onItemClick:N,onItemMouseMove:I,onItemMouseDown:S};return T(Tp.Provider,{value:Re,get children(){return T(Ae,{get when(){return sc(e)},get fallback(){return e.children},get children(){var Y;return(Y=e.children)==null?void 0:Y.call(e,{opened:D})}})}})}const Tp=Ct();function ed(){const e=$t(Tp);if(!e)throw new Error("[Hope UI]: useMenuContext must be used within a `<Menu />` component");return e}function xE(e){const[t,n]=An({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),r=a=>{e0(a,e.element())&&n("isPointerDown",!0)},i=a=>{if(t.ignoreEmulatedMouseEvents){n("ignoreEmulatedMouseEvents",!1);return}t.isPointerDown&&e.handler&&e0(a,e.element())&&(n("isPointerDown",!1),e.handler(a))},o=a=>{n("ignoreEmulatedMouseEvents",!0),e.handler&&t.isPointerDown&&e0(a,e.element())&&(n("isPointerDown",!1),e.handler(a))};Gn(()=>{const a=M1(e.element());a.addEventListener("mousedown",r,!0),a.addEventListener("mouseup",i,!0),a.addEventListener("touchstart",r,!0),a.addEventListener("touchend",o,!0)}),Dt(()=>{const a=M1(e.element());a.removeEventListener("mousedown",r,!0),a.removeEventListener("mouseup",i,!0),a.removeEventListener("touchstart",r,!0),a.removeEventListener("touchend",o,!0)})}function yp(e){const t=Gr(()=>e.children);return xE({element:()=>t(),handler:n=>e.onClickOutside(n)}),t}const Sp="hope-menu__content";function Cp(e){const t=xe().Menu,n=ed(),[r,i]=se(e,["ref","class","children"]),[o,a]=Me(!1);tn(wi(()=>n.state.opened,()=>{n.state.opened?a(!0):n.state.motionPreset==="none"&&a(!1)}));const s=()=>a(!1),l=Gr(()=>r.children),c=d=>{n.assignContentRef(d),$n(r.ref)?r.ref(d):r.ref=d},u=d=>{n.onContentClickOutside(d.target)},f=()=>ie(r.class,Sp,y3()),g=()=>{switch(n.state.motionPreset){case"scale-top-left":return io.scaleTopLeft;case"scale-top-right":return io.scaleTopRight;case"scale-bottom-left":return io.scaleBottomLeft;case"scale-bottom-right":return io.scaleBottomRight;case"none":return"hope-none"}};return T(Ae,{get when(){return o()},get children(){return T(go,{get children(){return T(po,{get name(){return g()},appear:!0,onAfterExit:s,get children(){return T(Ae,{get when(){return n.state.opened},get children(){return T(yp,{onClickOutside:u,get children(){return T(De,K({role:"menu",tabindex:"-1",ref:c,get id(){return n.state.menuContentId},get"aria-activedescendant"(){return n.state.activeDescendantId},get"aria-labelledby"(){return n.state.triggerId},"aria-orientation":"vertical",get class(){return f()},get __baseStyle(){var d;return(d=t==null?void 0:t.baseStyle)==null?void 0:d.content},get onMouseLeave(){return n.onContentMouseLeave}},i,{get children(){return l()}}))}})}})}})}})}})}Cp.toString=()=>ge(Sp);const wp="hope-menu__item",bE="hope-menu__item__icon-wrapper",_E="hope-menu__item__text",vE="hope-menu__item__command";function Ap(e){const t=lr(),n=xe().Menu,r=ed(),[i,o]=Me(-1);let a;const[s,l]=se(e,["ref","class","children","colorScheme","icon","iconSpacing","command","commandSpacing","textValue","disabled","closeOnSelect","onSelect","onClick"]),c=()=>{var v,N;return{key:t,textValue:(N=(v=s.textValue)!=null?v:a==null?void 0:a.textContent)!=null?N:"",disabled:!!s.disabled,closeOnSelect:s.closeOnSelect!=null?!!s.closeOnSelect:r.state.closeOnSelect,onSelect:s.onSelect}},u=()=>`${r.state.itemIdPrefix}-${i()}`,f=()=>r.isItemActiveDescendant(i()),g=v=>{a=v,$n(s.ref)?s.ref(v):s.ref=v},d=v=>{v.stopPropagation(),r.onItemClick(i())},h=v=>{if(s.disabled&&r.onItemMouseMove(-1),f()||s.disabled){v.preventDefault(),v.stopPropagation();return}r.onItemMouseMove(i())},m=()=>ie(s.class,wp,S3({colorScheme:s.colorScheme})),p=()=>ie(bE,C3()),b=()=>ie(_E,w3()),E=()=>ie(vE,A3());return Gn(()=>{o(r.registerItem(c()))}),tn(()=>{f()&&a&&r.scrollToItem(a)}),T(De,K({ref:g,role:"menuitem",get id(){return u()},get"data-active"(){return f()?"":void 0},get"data-disabled"(){return s.disabled?"":void 0},"data-group":!0,get class(){return m()},get __baseStyle(){var v;return(v=n==null?void 0:n.baseStyle)==null?void 0:v.item},onClick:d,onMouseMove:h,get onMouseDown(){return r.onItemMouseDown}},l,{get children(){return[T(Ae,{get when(){return s.icon},get children(){return T(je.span,{"aria-hidden":"true",get class(){return p()},get __baseStyle(){var v;return(v=n==null?void 0:n.baseStyle)==null?void 0:v.itemIconWrapper},get mr(){var v;return(v=s.iconSpacing)!=null?v:"0.5rem"},get children(){return s.icon}})}}),T(Ae,{get when(){return s.children},get children(){return T(je.span,{get class(){return b()},get __baseStyle(){var v;return(v=n==null?void 0:n.baseStyle)==null?void 0:v.itemText},get children(){return s.children}})}}),T(Ae,{get when(){return s.command},get children(){return T(je.span,{get class(){return E()},get __baseStyle(){var v;return(v=n==null?void 0:n.baseStyle)==null?void 0:v.itemCommand},get ml(){var v;return(v=s.commandSpacing)!=null?v:"0.5rem"},get children(){return s.command}})}})]}}))}Ap.toString=()=>ge(wp);const kp="hope-menu__trigger";function Op(e){const t=xe().Menu,n=ed(),[r,i]=se(e,["ref","class","onClick","onKeyDown","onBlur"]),o=u=>{n.assignTriggerRef(u),$n(r.ref)?r.ref(u):r.ref=u},a=u=>{Ln(n.onTriggerClick,r.onClick)(u)},s=u=>{Ln(n.onTriggerKeyDown,r.onKeyDown)(u)},l=u=>{Ln(n.onTriggerBlur,r.onBlur)(u)},c=()=>ie(r.class,kp,T3());return T(je.button,K({ref:o,get id(){return n.state.triggerId},type:"button","aria-haspopup":"menu",get"aria-controls"(){return n.state.menuContentId},get"aria-expanded"(){return n.state.opened},get class(){return c()},get __baseStyle(){var u;return(u=t==null?void 0:t.baseStyle)==null?void 0:u.trigger},onClick:a,onKeyDown:s,onBlur:l},i))}Op.toString=()=>ge(kp);const Np="hope-notification";function Ip(e){const t=xe().Notification,r=K({},e),[i,o]=se(r,["class","status"]),a=()=>ie(i.class,Np,N3({status:i.status})),l={status:()=>i.status};return T(Rp.Provider,{value:l,get children(){return T(De,K({role:"alert",get class(){return a()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.root}},o))}})}Ip.toString=()=>ge(Np);const Rp=Ct();function EE(){const e=$t(Rp);if(!e)throw new Error("[Hope UI]: useNotificationContext must be used within an `<Notification />` component");return e}const jn={show:"hope-ui:show-notification",update:"hope-ui:update-notification",hide:"hope-ui:hide-notification",clear:"hope-ui:clear-notifications",clearQueue:"hope-ui:clear-notifications-queue"};function ml(e,t){return new CustomEvent(e,{detail:t})}function TE(e){window.dispatchEvent(ml(jn.show,e))}function yE(e){window.dispatchEvent(ml(jn.update,e))}function SE(e){window.dispatchEvent(ml(jn.hide,e))}function CE(){window.dispatchEvent(ml(jn.clear))}function wE(){window.dispatchEvent(ml(jn.clearQueue))}const ps={show:TE,update:yE,hide:SE,clear:CE,clearQueue:wE},Mp="hope-notification__description";function ou(e){const t=xe().Notification,[n,r]=se(e,["class"]),i=()=>ie(n.class,Mp,L3());return T(De,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.description}},r))}ou.toString=()=>ge(Mp);const Lp="hope-notification__icon";function Pp(e){const t=xe().Notification,{status:n}=EE(),i=K({boxSize:"$7"},e),[o,a]=se(i,["as","class"]),s=()=>ie(o.class,Lp,R3({status:n()})),l=()=>{if(o.as)return o.as;switch(n()){case"success":return hm;case"info":return pm;case"warning":return mm;case"danger":return gm}};return T(oa,K({get as(){return l()},get class(){return s()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.icon}},a))}Pp.toString=()=>ge(Lp);const Dp="hope-notification__title";function au(e){const t=xe().Notification,[n,r]=se(e,["class"]),i=()=>ie(n.class,Dp,M3());return T(De,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.title}},r))}au.toString=()=>ge(Dp);function AE(e){var t,n,r,i;const[o,a]=Me((n=(t=e.initialValues)==null?void 0:t.slice(0,e.limit))!=null?n:[]),[s,l]=Me((i=(r=e.initialValues)==null?void 0:r.slice(e.limit))!=null?i:[]),c=()=>e.limit;return{state:{current:o,queue:s,limit:c},add:(...h)=>{const m=[...o(),...s(),...h];a(m.slice(0,c())),l(m.slice(c()))},update:h=>{const m=h([...o(),...s()]);a(m.slice(0,c())),l(m.slice(c()))},clearQueue:()=>{l([])}}}const kE=W({display:"flex"}),uc="hope-stack";function td(e){const[t,n]=se(e,["class","direction","wrap","spacing"]),r=()=>ie(t.class,uc,kE());return T(De,K({get class(){return r()},get flexDirection(){return t.direction},get flexWrap(){return t.wrap},get gap(){return t.spacing}},n))}td.toString=()=>ge(uc);function OE(e){const[t,n]=se(e,["spacing"]);return T(td,K({direction:"row",alignItems:"center",get columnGap(){return t.spacing}},n))}OE.toString=()=>ge(uc);function zs(e){const[t,n]=se(e,["spacing"]);return T(td,K({direction:"column",alignItems:"center",get rowGap(){return t.spacing}},n))}zs.toString=()=>ge(uc);const $p=Ct();function NE(){const e=$t($p);if(!e)throw new Error("[Hope UI]: useNotificationsProviderContext must be used within a `<NotificationsProvider />` component");return e}function IE(e){const t=NE(),[n]=se(e,["render","id","status","title","description","duration","persistent","closable","loading","onMouseEnter","onMouseLeave"]);let r;const i=()=>{r&&window.clearTimeout(r)},o=()=>{i(),t.hideNotification(n.id)},a=()=>{n.persistent||n.duration==null||(r=window.setTimeout(o,n.duration))},s=()=>n.status&&!n.loading;return Gn(()=>{a()}),Dt(()=>{i()}),T(Ae,{get when(){return n.render},get fallback(){return T(Ip,{get status(){return n.status},get pr(){return n.closable?"$9":"$3"},onMouseEnter:i,onMouseLeave:a,get children(){return[T(Ae,{get when(){return s()},get children(){return T(Pp,{mr:"$2_5"})}}),T(Ae,{get when(){return n.loading},get children(){return T(Sm,{color:"$primary10",boxSize:"$8",mr:"$2_5",get class(){return I3()}})}}),T(W1,{get children(){return[T(Ai,{get when(){return n.title&&n.description},get children(){return T(zs,{alignItems:"flex-start",spacing:"$1",get children(){return[T(au,{get children(){return n.title}}),T(ou,{get children(){return n.description}})]}})}}),T(Ai,{get when(){return n.title},get children(){return T(au,{get children(){return n.title}})}}),T(Ai,{get when(){return n.description},get children(){return T(ou,{get children(){return n.description}})}})]}}),T(Ae,{get when(){return n.closable},get children(){return T(cc,{size:"sm",position:"absolute",top:"$1_5",right:"$1_5",onClick:o})}})]}})},get children(){return T(Ju,{w:"$full",justifyContent:"flex-end",onMouseEnter:i,onMouseLeave:a,get children(){var l;return(l=n.render)==null?void 0:l.call(n,{id:n.id,close:o})}})}})}const RE="hope-notification__list",ME=5e3;function LE(e){const[t]=se(e,["children","placement","duration","persistent","closable","limit","zIndex"]),n=Xe(()=>{var b;return AE({initialValues:[],limit:(b=t.limit)!=null?b:10})}),r=()=>{var b;return(b=t.placement)!=null?b:"top-end"},i=()=>n().state.current(),o=()=>n().state.queue(),a=b=>{var E,v,N,I,S,y,O;const M=(E=b.id)!=null?E:`hope-notification-${lr()}`,j=(N=(v=b.persistent)!=null?v:t.persistent)!=null?N:!1,H=(S=(I=b.duration)!=null?I:t.duration)!=null?S:ME,X=(O=(y=b.closable)!=null?y:t.closable)!=null?O:!0;return n().update(ne=>{if(b.id&&ne.some(ae=>ae.id===b.id))return ne;const oe=ni(me({},b),{id:M,persistent:j,duration:H,closable:X});return[...ne,oe]}),M},s=(b,E)=>{n().update(v=>{const N=v.findIndex(S=>S.id===b);if(N===-1)return v;const I=[...v];return I[N]=E,I})},l=b=>{n().update(E=>E.filter(v=>{var N;return v.id===b?((N=v.onClose)==null||N.call(v,v.id),!1):!0}))},c=()=>n().update(()=>[]),u=()=>n().clearQueue(),f=()=>ie(RE,O3({placement:r()})),g=()=>{switch(r()){case"top-start":return Fr.slideInLeft;case"top":return Fr.slideInTop;case"top-end":return Fr.slideInRight;case"bottom-start":return Fr.slideInLeft;case"bottom":return Fr.slideInBottom;case"bottom-end":return Fr.slideInRight;default:return Fr.slideInRight}},d={notifications:i,queue:o,showNotification:a,updateNotification:s,hideNotification:l,clear:c,clearQueue:u},h=b=>a(b.detail),m=b=>s(b.detail.id,b.detail),p=b=>l(b.detail);return Gn(()=>{window.addEventListener(jn.show,h),window.addEventListener(jn.update,m),window.addEventListener(jn.hide,p),window.addEventListener(jn.clear,c),window.addEventListener(jn.clearQueue,u)}),Dt(()=>{window.removeEventListener(jn.show,h),window.removeEventListener(jn.update,m),window.removeEventListener(jn.hide,p),window.removeEventListener(jn.clear,c),window.removeEventListener(jn.clearQueue,u)}),T($p.Provider,{value:d,get children(){return[T(go,{get children(){return T(De,{get class(){return f()},get zIndex(){return t.zIndex},get children(){return T(Ob,{get name(){return g()},get children(){return T(Ka,{get each(){return d.notifications()},children:b=>T(IE,b)})}})}})}}),Sr(()=>t.children)]}})}const PE=e=>e.hasAttribute("tabindex");function Bp(e){return e.parentElement&&Bp(e.parentElement)?!0:e.hidden}function DE(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function $E(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function BE(e){if(!O_(e)||Bp(e)||DE(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():$E(e)?!0:PE(e)}function uB(e){const t=`hope-popover-${lr()}`,n=xe().Popover,[r,i]=An({_opened:!!e.defaultOpened,isHovering:!1,headerMounted:!1,bodyMounted:!1,finalPlacement:"bottom",get isControlled(){return e.opened!==void 0},get opened(){return this.isControlled?!!e.opened:this._opened},get contentId(){var C;return(C=e.id)!=null?C:t},get triggerId(){return`${this.contentId}--trigger`},get headerId(){return`${this.contentId}--header`},get bodyId(){return`${this.contentId}--body`},get triggerMode(){var C;return(C=e.triggerMode)!=null?C:"click"},get triggerOnClick(){return this.triggerMode==="click"},get triggerOnHover(){return this.triggerMode==="hover"},get initialFocus(){return e.initialFocus},get inline(){var C;return(C=e.inline)!=null?C:!1},get initialPlacement(){var C,R,fe,$e;return($e=(fe=e.placement)!=null?fe:(R=(C=n==null?void 0:n.defaultProps)==null?void 0:C.root)==null?void 0:R.placement)!=null?$e:"bottom"},get offset(){var C,R,fe,$e;return($e=(fe=e.offset)!=null?fe:(R=(C=n==null?void 0:n.defaultProps)==null?void 0:C.root)==null?void 0:R.offset)!=null?$e:8},get arrowPadding(){var C,R,fe,$e;return($e=(fe=e.arrowPadding)!=null?fe:(R=(C=n==null?void 0:n.defaultProps)==null?void 0:C.root)==null?void 0:R.arrowPadding)!=null?$e:8},get openDelay(){var C,R,fe,$e;return($e=(fe=e.openDelay)!=null?fe:(R=(C=n==null?void 0:n.defaultProps)==null?void 0:C.root)==null?void 0:R.openDelay)!=null?$e:0},get closeDelay(){var C,R,fe,$e;return($e=(fe=e.closeDelay)!=null?fe:(R=(C=n==null?void 0:n.defaultProps)==null?void 0:C.root)==null?void 0:R.closeDelay)!=null?$e:100},get motionPreset(){var C,R,fe,$e;return($e=(fe=e.motionPreset)!=null?fe:(R=(C=n==null?void 0:n.defaultProps)==null?void 0:C.root)==null?void 0:R.motionPreset)!=null?$e:"scale"},get closeOnBlur(){var C,R,fe,$e;return($e=(fe=e.closeOnBlur)!=null?fe:(R=(C=n==null?void 0:n.defaultProps)==null?void 0:C.root)==null?void 0:R.closeOnBlur)!=null?$e:!0},get closeOnEsc(){var C,R,fe,$e;return($e=(fe=e.closeOnEsc)!=null?fe:(R=(C=n==null?void 0:n.defaultProps)==null?void 0:C.root)==null?void 0:R.closeOnEsc)!=null?$e:!0},get trapFocus(){var C,R,fe,$e;return($e=(fe=e.trapFocus)!=null?fe:(R=(C=n==null?void 0:n.defaultProps)==null?void 0:C.root)==null?void 0:R.trapFocus)!=null?$e:!1}});let o,a,s,l,c,u,f,g;const d=()=>`[id='${r.contentId}']`,h=C=>{o=C},m=C=>{a=C},p=C=>{s=C},b=C=>{l=C};async function E(){var C,R,fe;const $e=o??a;if(!$e||!s)return;const vt=[Q1(r.offset)];r.inline&&vt.push(K5()),vt.push(X1()),vt.push(Z1({padding:e.shiftPadding})),l&&vt.push(U5({element:l,padding:r.arrowPadding})),vt.push(G5());const{x:Je,y:et,placement:st,middlewareData:Et}=await nc($e,s,{placement:r.initialPlacement,middleware:vt});if(st!==r.finalPlacement&&i("finalPlacement",st),!s)return;const ee=(C=Et.hide)==null?void 0:C.referenceHidden;if(Object.assign(s.style,{left:`${Math.round(Je)}px`,top:`${Math.round(et)}px`,visibility:ee?"hidden":"visible"}),!l)return;const ve=(R=Et.arrow)==null?void 0:R.x,qe=(fe=Et.arrow)==null?void 0:fe.y,gt={top:"bottom",right:"left",bottom:"top",left:"right"}[st.split("-")[0]],Kn=`${(Math.round(l.clientWidth/2)+1)*-1}px`;Object.assign(l.style,{left:ve!=null?`${Math.round(ve)}px`:"",top:qe!=null?`${Math.round(qe)}px`:"",right:"",bottom:"",[gt]:Kn})}const v=()=>{var C;r.isControlled||i("_opened",!0),(C=e.onOpen)==null||C.call(e),E()},N=()=>{var C;r.isControlled||i("_opened",!1),(C=e.onClose)==null||C.call(e)},I=()=>{!r.isHovering&&N()},S=()=>{u=window.setTimeout(v,r.openDelay)},y=()=>{u&&window.clearTimeout(u),f=window.setTimeout(N,r.closeDelay)},O=()=>{const C=o??a;!C||!s||(g=tc(C,s,E))},M=()=>{if(!r.initialFocus){s==null||s.focus();return}const C=document.querySelector(r.initialFocus);C&&BE(C)&&(C==null||C.focus())},j=C=>{const R=L1(C),fe=!qo(s,R);r.opened&&r.closeOnBlur&&fe&&y()},H=()=>{D(!1),u&&window.clearTimeout(u),f=window.setTimeout(I,r.closeDelay)},X=C=>{const R=L1(C),fe=qo(s,R),$e=qo(a,R),vt=!fe&&!$e;r.opened&&r.closeOnBlur&&vt&&y()},ne=H,oe=()=>{O(),r.trapFocus&&s?(c=F5(s,{initialFocus:r.initialFocus,fallbackFocus:d(),allowOutsideClick:!1}),c.activate()):M()},ae=()=>{c==null||c.deactivate(),g==null||g()},D=C=>i("isHovering",C),Re=C=>i("headerMounted",C),Y=C=>i("bodyMounted",C),Pe=()=>r.opened;Dt(()=>{window.clearTimeout(u),window.clearTimeout(f)});const we={state:r,assignAnchorRef:h,assignTriggerRef:m,assignPopoverRef:p,assignArrowRef:b,openWithDelay:S,closeWithDelay:y,onTriggerBlur:j,onTriggerMouseLeave:H,onPopoverFocusOut:X,onPopoverMouseLeave:ne,updatePopoverPosition:E,afterPopoverOpen:oe,afterPopoverClose:ae,setIsHovering:D,setHeaderMounted:Re,setBodyMounted:Y};return T(Fp.Provider,{value:we,get children(){return T(Ae,{get when(){return sc(e)},get fallback(){return e.children},get children(){var C;return(C=e.children)==null?void 0:C.call(e,{opened:Pe,onClose:y})}})}})}const Fp=Ct();function pl(){const e=$t(Fp);if(!e)throw new Error("[Hope UI]: usePopoverContext must be used within a `<Popover />` component");return e}const Hp="hope-popover__arrow";function FE(e){const t=xe().Popover,n=pl(),[r,i]=se(e,["class"]),o=Xe(()=>n.state.finalPlacement.split("-")[0]),a=()=>ie(r.class,Hp,F3({popoverPlacement:o()}));return T(De,K({ref(s){const l=n.assignArrowRef;typeof l=="function"?l(s):n.assignArrowRef=s},get class(){return a()},get __baseStyle(){var s;return(s=t==null?void 0:t.baseStyle)==null?void 0:s.arrow}},i))}FE.toString=()=>ge(Hp);const zp="hope-popover__body";function HE(e){const t=xe().Popover,n=pl(),[r,i]=se(e,["class"]),o=()=>ie(r.class,zp,B3());return Gn(()=>n.setBodyMounted(!0)),Dt(()=>n.setBodyMounted(!1)),T(De,K({get class(){return o()},get id(){return n.state.bodyId},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.body}},i))}HE.toString=()=>ge(zp);const Up="hope-popover__content";function zE(e){const t=xe().Popover,n=pl(),[r,i]=Me(!1),[o,a]=se(e,["ref","class","onKeyDown","onFocusOut","onMouseEnter","onMouseLeave"]),s=b=>{n.assignPopoverRef(b),$n(o.ref)?o.ref(b):o.ref=b},l=b=>{n.state.closeOnEsc&&b.key==="Escape"&&n.closeWithDelay()},c=b=>{Ln(o.onKeyDown,l)(b)},u=b=>{Ln(o.onFocusOut,n.onPopoverFocusOut)(b)},f=b=>{Cn(o.onMouseEnter,b),n.setIsHovering(!0)},g=b=>{Cn(o.onMouseLeave,b),n.onPopoverMouseLeave()},d=()=>{document.addEventListener("keydown",l),n.afterPopoverOpen()},h=()=>{document.removeEventListener("keydown",l),n.afterPopoverClose(),i(!1)},m=()=>ie(o.class,Up,D3()),p=()=>{switch(n.state.motionPreset){case"scale":return Fo.scale;case"none":return"hope-none"}};return tn(()=>{n.state.opened?i(!0):n.state.motionPreset==="none"&&i(!1)}),T(Ae,{get when(){return r()},get children(){return T(go,{get children(){return T(po,{get name(){return p()},appear:!0,get onBeforeEnter(){return n.updatePopoverPosition},onAfterEnter:d,onAfterExit:h,get children(){return T(Ae,{get when(){return n.state.opened},get children(){return T(je.section,K({ref:s,tabIndex:-1,get id(){return n.state.contentId},get role(){return n.state.triggerOnHover?"tooltip":"dialog"},get"aria-labelledby"(){return n.state.headerMounted?n.state.headerId:void 0},get"aria-describedby"(){return n.state.bodyMounted?n.state.bodyId:void 0},get class(){return m()},get __baseStyle(){var b;return(b=t==null?void 0:t.baseStyle)==null?void 0:b.content},onKeyDown:c,onFocusOut:u,get onMouseEnter(){return n.state.triggerOnHover?f:void 0},get onMouseLeave(){return n.state.triggerOnHover?g:void 0}},a))}})}})}})}})}zE.toString=()=>ge(Up);const jp="hope-popover__header";function UE(e){const t=xe().Popover,n=pl(),[r,i]=se(e,["class"]),o=()=>ie(r.class,jp,$3());return Gn(()=>n.setHeaderMounted(!0)),Dt(()=>n.setHeaderMounted(!1)),T(De,K({get class(){return o()},get id(){return n.state.headerId},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.header}},i))}UE.toString=()=>ge(jp);function dB(e){const t=pl(),[n,r]=se(e,["ref","onClick","onKeyDown","onFocus","onBlur","onMouseEnter","onMouseLeave"]),i=f=>{t.assignTriggerRef(f),$n(n.ref)?n.ref(f):n.ref=f},o=f=>{Cn(n.onClick,f),t.state.opened?t.closeWithDelay():t.openWithDelay()},a=f=>{Cn(n.onKeyDown,f),f.key==="Escape"&&t.closeWithDelay()},s=f=>{Cn(n.onFocus,f),t.openWithDelay()},l=f=>{Ln(n.onBlur,t.onTriggerBlur)(f)},c=f=>{Cn(n.onMouseEnter,f),t.setIsHovering(!0),t.openWithDelay()},u=f=>{Cn(n.onMouseLeave,f),t.onTriggerMouseLeave()};return T(je.button,K({ref:i,get id(){return t.state.triggerId},type:"button","aria-haspopup":"dialog",get"aria-controls"(){return t.state.contentId},get"aria-expanded"(){return t.state.opened},get onClick(){return t.state.triggerOnClick?o:void 0},get onKeyDown(){return t.state.triggerOnHover?a:void 0},get onFocus(){return t.state.triggerOnHover?s:void 0},get onBlur(){return t.state.triggerOnHover?l:void 0},get onMouseEnter(){return t.state.triggerOnHover?c:void 0},get onMouseLeave(){return t.state.triggerOnHover?u:void 0}},r))}const jE=qa({"0%":{left:"-40%"},"100%":{left:"100%"}}),GE=qa({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}}),KE=W({position:"relative",overflow:"hidden",variants:{size:{xs:{height:"$1",fontSize:"4px"},sm:{height:"$2",fontSize:"6px"},md:{height:"$3",fontSize:"8px"},lg:{height:"$4",fontSize:"10px"}}}}),WE=W({position:"relative",height:"100%",transition:"width 600ms ease",variants:{striped:{true:{}},animated:{true:{}},indeterminate:{true:{position:"absolute",willChange:"left",minWidth:"50%",animation:`${jE} 1200ms ease infinite normal none running`}}},compoundVariants:[{indeterminate:!1,striped:!0,css:{backgroundImage:"linear-gradient(45deg, $colors$progressStripe 25%, transparent 25%, transparent 50%, $colors$progressStripe 50%, $colors$progressStripe 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem"}},{indeterminate:!1,striped:!0,animated:!0,css:{animation:`${GE} 750ms linear infinite`}}]});W({position:"absolute",top:"50%",left:"50%",width:"100%",color:"$neutral12",lineHeight:"$none",fontWeight:"$bold",textAlign:"center",transform:"translate(-50%, -50%)"});const Gp=Ct(),Kp="hope-progress";function Wp(e){var t,n,r,i,o,a;const s=xe().Progress,[l]=An({get min(){var p;return(p=e.min)!=null?p:0},get max(){var p;return(p=e.max)!=null?p:100},get value(){var p;return(p=e.value)!=null?p:0},get percent(){return a_(this.value,this.min,this.max)},get indeterminate(){var p;return(p=e.indeterminate)!=null?p:!1},get ariaValueText(){var p;if(!this.indeterminate)return $n(this.getValueText)?this.getValueText(this.value,this.percent):(p=e.valueText)!=null?p:`${this.percent}%`},get getValueText(){return e.getValueText}}),c={size:(r=(n=(t=s==null?void 0:s.defaultProps)==null?void 0:t.root)==null?void 0:n.size)!=null?r:"md",trackColor:(a=(o=(i=s==null?void 0:s.defaultProps)==null?void 0:i.root)==null?void 0:o.trackColor)!=null?a:"$neutral4"},u=K(c,e),[f,g,d]=se(u,["class","size","trackColor"],["min","max","value","indeterminate","valueText","getValueText"]),h=()=>ie(f.class,Kp,KE({size:f.size})),m={state:l};return T(Gp.Provider,{value:m,get children(){return T(De,K({role:"progressbar",get"data-indeterminate"(){return l.indeterminate?"":void 0},get"aria-valuemin"(){return l.min},get"aria-valuemax"(){return l.max},get"aria-valuenow"(){return l.indeterminate?void 0:l.value},get"aria-valuetext"(){return l.ariaValueText},get class(){return h()},get __baseStyle(){var p;return(p=s==null?void 0:s.baseStyle)==null?void 0:p.root},get backgroundColor(){return f.trackColor}},d))}})}Wp.toString=()=>ge(Kp);function VE(){const e=$t(Gp);if(!e)throw new Error("[Hope UI]: useProgressContext must be used within a `<Progress />` component");return e}const Vp="hope-progress__indicator";function qp(e){const t=xe().Progress,n=VE(),i=K({color:"$primary9"},e),[o,a]=se(i,["class","color","striped","animated"]),s=()=>n.state.indeterminate?{backgroundImage:`linear-gradient(to right, transparent 0%, ${o.color} 50%, transparent 100%)`}:{backgroundColor:o.color},l=()=>ie(o.class,Vp,WE({striped:o.striped,animated:o.animated,indeterminate:n.state.indeterminate===!0,css:ni(me({},s()),{width:`${n.state.percent}%`})}));return T(De,K({get class(){return l()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.indicator}},a))}qp.toString=()=>ge(Vp);const qE=W(Xu,{variants:{labelPlacement:{start:{flexDirection:"row-reverse"},end:{flexDirection:"row"}}}}),YE=W(Qu),XE=W(Zu,{borderRadius:"$full","&[data-checked]::before":{content:"",display:"inline-block",position:"relative",boxSize:"calc(50% + 1px)",borderRadius:"$full",backgroundColor:"$loContrast"}}),Yp="hope-radio-group";function QE(e){const t=`hope-radio-group-${lr()}--radio`,n=xe().Radio,[r,i]=An({_value:e.defaultValue,get isControlled(){return e.value!==void 0},get value(){return this.isControlled?e.value:this._value},get name(){var f;return(f=e.name)!=null?f:t},get required(){return e.required},get disabled(){return e.disabled},get invalid(){return e.invalid},get readOnly(){return e.readOnly},get variant(){var f,g,d;return(d=e.variant)!=null?d:(g=(f=n==null?void 0:n.defaultProps)==null?void 0:f.group)==null?void 0:g.variant},get colorScheme(){var f,g,d;return(d=e.colorScheme)!=null?d:(g=(f=n==null?void 0:n.defaultProps)==null?void 0:f.group)==null?void 0:g.colorScheme},get size(){var f,g,d;return(d=e.size)!=null?d:(g=(f=n==null?void 0:n.defaultProps)==null?void 0:f.group)==null?void 0:g.size}}),[o,a,s]=se(e,["class","onChange"],["value","defaultValue","name","required","disabled","readOnly","invalid"]),l=f=>{var g;const d=f.target.value;i("_value",d),(g=o.onChange)==null||g.call(o,String(d))},c=()=>ie(o.class,Yp),u={state:r,onChange:l};return T(Xp.Provider,{value:u,get children(){return T(De,K({role:"radiogroup",get class(){return c()},get __baseStyle(){var f;return(f=n==null?void 0:n.baseStyle)==null?void 0:f.group}},s))}})}QE.toString=()=>ge(Yp);const Xp=Ct();function ZE(){return $t(Xp)}const JE=Bt('<input type="radio">'),Qp="hope-radio",eT="hope-radio__input",tT="hope-radio__control",nT="hope-radio__label";function rT(e){const t=`hope-radio-${lr()}`,n=xe().Radio,r=gl(),i=ZE(),o=Xa(e),[a,s]=An({_checked:!!e.defaultChecked,isFocused:!1,get isControlled(){return e.checked!==void 0},get checked(){if(i){const v=i.state.value;return v!=null?String(e.value)===String(v):!1}return this.isControlled?!!e.checked:this._checked},get variant(){var v,N,I,S,y,O;return(O=(y=(N=e.variant)!=null?N:(v=i==null?void 0:i.state)==null?void 0:v.variant)!=null?y:(S=(I=n==null?void 0:n.defaultProps)==null?void 0:I.root)==null?void 0:S.variant)!=null?O:"outline"},get colorScheme(){var v,N,I,S,y,O;return(O=(y=(N=e.colorScheme)!=null?N:(v=i==null?void 0:i.state)==null?void 0:v.colorScheme)!=null?y:(S=(I=n==null?void 0:n.defaultProps)==null?void 0:I.root)==null?void 0:S.colorScheme)!=null?O:"primary"},get size(){var v,N,I,S,y,O;return(O=(y=(N=e.size)!=null?N:(v=i==null?void 0:i.state)==null?void 0:v.size)!=null?y:(S=(I=n==null?void 0:n.defaultProps)==null?void 0:I.root)==null?void 0:S.size)!=null?O:"md"},get labelPlacement(){var v,N,I,S,y,O;return(O=(y=(N=e.labelPlacement)!=null?N:(v=i==null?void 0:i.state)==null?void 0:v.labelPlacement)!=null?y:(S=(I=n==null?void 0:n.defaultProps)==null?void 0:I.root)==null?void 0:S.labelPlacement)!=null?O:"end"},get id(){var v;return r&&!i?o.id:(v=e.id)!=null?v:t},get name(){var v;return(v=e.name)!=null?v:i==null?void 0:i.state.name},get value(){return e.value},get required(){var v;return(v=o.required)!=null?v:i==null?void 0:i.state.required},get disabled(){var v;return(v=o.disabled)!=null?v:i==null?void 0:i.state.disabled},get invalid(){var v;return(v=o.invalid)!=null?v:i==null?void 0:i.state.invalid},get readOnly(){var v;return(v=o.readOnly)!=null?v:i==null?void 0:i.state.readOnly},get"aria-required"(){return this.required?!0:void 0},get"aria-disabled"(){return this.disabled?!0:void 0},get"aria-invalid"(){return this.invalid?!0:void 0},get"aria-readonly"(){return this.readOnly?!0:void 0},get"aria-label"(){return e["aria-label"]},get"aria-labelledby"(){return e["aria-labelledby"]},get"aria-describedby"(){return e["aria-describedby"]},get"data-focus"(){return this.isFocused?"":void 0},get"data-checked"(){return this.checked?"":void 0},get"data-required"(){return this.required?"":void 0},get"data-disabled"(){return this.disabled?"":void 0},get"data-invalid"(){return this.invalid?"":void 0},get"data-readonly"(){return this.readOnly?"":void 0}}),[l,c,u]=se(e,["class","children","ref","tabIndex","onChange"],["variant","colorScheme","size","labelPlacement","id","name","value","checked","defaultChecked","required","disabled","invalid","readOnly","onFocus","onBlur"]),f=v=>{if(a.readOnly||a.disabled){v.preventDefault();return}if(!a.isControlled){const N=v.target;s("_checked",N.checked)}Ln(i==null?void 0:i.onChange,l.onChange)(v)},g=v=>{s("isFocused",!0),Cn(o.onFocus,v)},d=v=>{s("isFocused",!1),Cn(o.onBlur,v)},h=()=>ie(l.class,Qp,qE({size:a.size,labelPlacement:a.labelPlacement})),m=()=>ie(eT,oc()),p=()=>ie(tT,XE({variant:a.variant,colorScheme:a.colorScheme,size:a.size})),b=()=>ie(nT,YE()),E={state:a,onChange:f,onFocus:g,onBlur:d};return T(iT.Provider,{value:E,get children(){return T(je.label,K({get class(){return h()},get __baseStyle(){var v;return(v=n==null?void 0:n.baseStyle)==null?void 0:v.root},get for(){return a.id},"data-group":!0,get"data-focus"(){return a["data-focus"]},get"data-checked"(){return a["data-checked"]},get"data-required"(){return a["data-required"]},get"data-disabled"(){return a["data-disabled"]},get"data-invalid"(){return a["data-invalid"]},get"data-readonly"(){return a["data-readonly"]}},u,{get children(){return[(()=>{const v=JE.cloneNode(!0);v.addEventListener("blur",d),v.addEventListener("focus",g),v.addEventListener("change",f);const N=l.ref;return typeof N=="function"?N(v):l.ref=v,Dn(I=>{const S=m(),y=l.tabIndex,O=a.value,M=a.id,j=a.name,H=a.checked,X=a.required,ne=a.disabled,oe=a.readOnly,ae=a["aria-required"],D=a["aria-disabled"],Re=a["aria-invalid"],Y=a["aria-readonly"],Pe=a["aria-label"],we=a["aria-labelledby"],C=a["aria-describedby"];return S!==I._v$&&(v.className=I._v$=S),y!==I._v$2&&at(v,"tabindex",I._v$2=y),O!==I._v$3&&(v.value=I._v$3=O),M!==I._v$4&&at(v,"id",I._v$4=M),j!==I._v$5&&at(v,"name",I._v$5=j),H!==I._v$6&&(v.checked=I._v$6=H),X!==I._v$7&&(v.required=I._v$7=X),ne!==I._v$8&&(v.disabled=I._v$8=ne),oe!==I._v$9&&(v.readOnly=I._v$9=oe),ae!==I._v$10&&at(v,"aria-required",I._v$10=ae),D!==I._v$11&&at(v,"aria-disabled",I._v$11=D),Re!==I._v$12&&at(v,"aria-invalid",I._v$12=Re),Y!==I._v$13&&at(v,"aria-readonly",I._v$13=Y),Pe!==I._v$14&&at(v,"aria-label",I._v$14=Pe),we!==I._v$15&&at(v,"aria-labelledby",I._v$15=we),C!==I._v$16&&at(v,"aria-describedby",I._v$16=C),I},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0,_v$6:void 0,_v$7:void 0,_v$8:void 0,_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0,_v$13:void 0,_v$14:void 0,_v$15:void 0,_v$16:void 0}),v})(),T(je.span,K({"aria-hidden":!0,get class(){return p()},get __baseStyle(){var v;return(v=n==null?void 0:n.baseStyle)==null?void 0:v.control},get"data-focus"(){return a["data-focus"]},get"data-checked"(){return a["data-checked"]},get"data-required"(){return a["data-required"]},get"data-disabled"(){return a["data-disabled"]},get"data-invalid"(){return a["data-invalid"]},get"data-readonly"(){return a["data-readonly"]}},u)),T(je.span,{get class(){return b()},get __baseStyle(){var v;return(v=n==null?void 0:n.baseStyle)==null?void 0:v.label},get"data-focus"(){return a["data-focus"]},get"data-checked"(){return a["data-checked"]},get"data-required"(){return a["data-required"]},get"data-disabled"(){return a["data-disabled"]},get"data-invalid"(){return a["data-invalid"]},get"data-readonly"(){return a["data-readonly"]},get children(){return T(Ae,{get when(){return sc(l)},get fallback(){return l.children},get children(){var v;return(v=l.children)==null?void 0:v.call(l,{checked:a.checked})}})}})]}}))}})}rT.toString=()=>ge(Qp);const iT=Ct();var _i=(e=>(e[e.Close=0]="Close",e[e.SelectAndClose=1]="SelectAndClose",e[e.First=2]="First",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Open=5]="Open",e[e.Previous=6]="Previous",e[e.Select=7]="Select",e[e.Type=8]="Type",e))(_i||{});function Uf(e=[],t,n=[]){return e.filter(r=>r.disabled?!1:r.textValue.toLowerCase().indexOf(t.toLowerCase())===0&&n.indexOf(r.textValue)<0)}function oT(e,t,n=0){const r=[...e.slice(n),...e.slice(0,n)],i=Uf(r,t)[0],o=a=>a.every(s=>s===a[0]);if(i)return e.indexOf(i);if(o(t.split(""))){const a=Uf(r,t[0]);return e.indexOf(a[0])}else return-1}function aT(e,t){const{key:n,altKey:r,ctrlKey:i,metaKey:o}=e;if(!t&&["ArrowDown","ArrowUp","Enter"," "].includes(n))return 5;if(n==="Home"||n==="PageUp")return 2;if(n==="End"||n==="PageDown")return 3;if(n==="Backspace"||n==="Clear"||n.length===1&&n!==" "&&!r&&!i&&!o)return 8;if(t){if(n==="ArrowUp"&&r)return 1;if(n==="ArrowDown"&&!r)return 4;if(n==="ArrowUp")return 6;if(n==="Escape")return 0;if(n==="Enter"||n===" ")return 1}}function jf(e,t,n){switch(n){case 2:return 0;case 3:return t;case 6:return Math.max(0,e-1);case 4:return Math.min(t,e+1);default:return e}}function sT(e){const{currentIndex:t,maxIndex:n,initialAction:r,isOptionDisabled:i}=e;let o=jf(t,n,r);for(;i(o);){let a=r;const s=o===0,l=o===n;if(r===2&&(a=4),r===3&&(a=6),r===6&&s){o=t;break}if(r===4&&l){o=t;break}o=jf(o,n,a)}return o}function Gl(e,t){return String(e.value)===String(t.value)}function Zp(e){const t=`hope-select-${lr()}`,n=xe().Select,r=Xa(e),[i,o]=Me(!1),[a,s]=Me([]),[l,c]=An({get isControlled(){return e.value!==void 0},get value(){var ee;return this.isControlled?e.value:this.multiple?this.selectedOptions.map(ve=>ve.value):(ee=this.selectedOptions[0].value)!=null?ee:void 0},get multiple(){return e.multiple},get baseId(){var ee,ve;return(ve=(ee=e.id)!=null?ee:r.id)!=null?ve:t},get triggerId(){return`${this.baseId}-trigger`},get listboxId(){return`${this.baseId}-listbox`},get labelIdPrefix(){return`${this.baseId}-label`},get optionIdPrefix(){return`${this.baseId}-option`},get disabled(){var ee;return(ee=e.disabled)!=null?ee:r.disabled},get invalid(){var ee;return(ee=e.invalid)!=null?ee:r.invalid},get variant(){var ee,ve,qe,gt;return(gt=(qe=e.variant)!=null?qe:(ve=(ee=n==null?void 0:n.defaultProps)==null?void 0:ee.root)==null?void 0:ve.variant)!=null?gt:"outline"},get size(){var ee,ve,qe,gt;return(gt=(qe=e.size)!=null?qe:(ve=(ee=n==null?void 0:n.defaultProps)==null?void 0:ee.root)==null?void 0:ve.size)!=null?gt:"md"},get motionPreset(){var ee,ve,qe,gt;return(gt=(qe=e.motionPreset)!=null?qe:(ve=(ee=n==null?void 0:n.defaultProps)==null?void 0:ee.root)==null?void 0:ve.motionPreset)!=null?gt:"fade-in-top"},get activeDescendantId(){return this.opened?`${this.optionIdPrefix}-${this.activeIndex}`:void 0},get hasSelectedOptions(){return this.selectedOptions.length>0},get options(){return a()},selectedOptions:[],opened:!1,activeIndex:0,ignoreBlur:!1,searchString:"",searchTimeoutId:void 0});let u,f,g,d;const h=async()=>{var ee,ve,qe,gt;if(!u||!f)return;const{x:Kn,y:Ir}=await nc(u,f,{placement:"bottom",middleware:[Q1((gt=(qe=e.offset)!=null?qe:(ve=(ee=n==null?void 0:n.defaultProps)==null?void 0:ee.root)==null?void 0:ve.offset)!=null?gt:5),X1(),Z1(),e7({apply({reference:ze}){f&&Object.assign(f.style,{width:`${ze.width}px`})}})]});f&&Object.assign(f.style,{left:`${Math.round(Kn)}px`,top:`${Math.round(Ir)}px`})},m=ee=>{l.searchTimeoutId&&window.clearTimeout(l.searchTimeoutId);const ve=window.setTimeout(()=>{c("searchString","")},500);return c("searchTimeoutId",ve),c("searchString",qe=>qe+=ee),l.searchString},p=()=>{u==null||u.focus()},b=()=>l.isControlled?e.value==null?[]:u1(e.value)?e.value:[e.value]:e.defaultValue==null?[]:u1(e.defaultValue)?e.defaultValue:[e.defaultValue],E=()=>{if(i())return;const ee=b().map(ve=>l.options.find(qe=>qe.value===ve)).filter(Boolean);c("selectedOptions",ve=>[...ve,...ee]),o(!0)},v=ee=>{c("activeIndex",ee)},N=ee=>l.selectedOptions.length<=0?!1:l.multiple?!!l.selectedOptions.find(ve=>Gl(ee,ve)):Gl(ee,l.selectedOptions[0]),I=ee=>{c("selectedOptions",ve=>ve.filter(qe=>!Gl(ee,qe)))},S=ee=>{const ve=l.options[ee];l.multiple?N(ve)?I(ve):c("selectedOptions",qe=>[...qe,ve]):c("selectedOptions",[ve])},y=()=>{var ee;return l.multiple?l.selectedOptions.map(ve=>ve.value):(ee=l.selectedOptions[0].value)!=null?ee:void 0},O=ee=>{var ve;v(ee),S(ee),(ve=e.onChange)==null||ve.call(e,y())},M=ee=>{var ve;I(ee),(ve=e.onChange)==null||ve.call(e,y()),p()},j=ee=>l.options[ee].disabled,H=ee=>{if(!qo(u,L1(ee))){if(l.ignoreBlur){c("ignoreBlur",!1);return}l.opened&&we(!1,!1)}},X=()=>{r.readOnly||we(!l.opened,!1)},ne=ee=>{if(r.readOnly)return;const{key:ve}=ee;if(l.hasSelectedOptions&&l.multiple&&ve==="Backspace"){M(l.selectedOptions[l.selectedOptions.length-1]);return}const qe=l.options.length-1,gt=aT(ee,l.opened);switch(gt){case _i.Last:case _i.First:we(!0);case _i.Next:case _i.Previous:return ee.preventDefault(),v(sT({currentIndex:l.activeIndex,maxIndex:qe,initialAction:gt,isOptionDisabled:j}));case _i.SelectAndClose:return ee.preventDefault(),O(l.activeIndex),l.multiple?void 0:we(!1);case _i.Close:return ee.preventDefault(),we(!1);case _i.Type:return oe(ve);case _i.Open:return ee.preventDefault(),we(!0)}},oe=ee=>{if(r.readOnly)return;we(!0);const ve=m(ee),qe=oT(l.options,ve,l.activeIndex+1);qe>=0?v(qe):(window.clearTimeout(l.searchTimeoutId),c("searchString",""))},ae=ee=>{if(l.options[ee].disabled){p();return}O(ee),l.multiple?p():we(!1)},D=ee=>{l.activeIndex!==ee&&v(ee)},Re=()=>{c("ignoreBlur",!0)},Y=()=>{l.selectedOptions.length>0?c("activeIndex",l.options.findIndex(ee=>N(ee))):c("activeIndex",0)},Pe=()=>{l.opened?(h(),u&&f&&(d=tc(u,f,h))):d==null||d()},we=(ee,ve=!0)=>{l.opened!==ee&&(c("opened",ee),Y(),Pe(),ve&&p())},C=()=>{v(-1)},R=ee=>{qo(u,ee)||we(!1,!1)},fe=ee=>ee===l.activeIndex,$e=ee=>{u=ee},vt=ee=>{f=ee},Je=ee=>{g=ee},et=ee=>{g&&lm(g)&&cm(ee,g)},st=ee=>{const ve=l.options.findIndex(gt=>Gl(gt,ee));return ve!=-1?ve:s(gt=>[...gt,ee]).length-1};tn(wi(()=>l.options,()=>E(),{defer:!0})),tn(wi(()=>e.value,()=>{if(!l.isControlled)return;const ve=(u1(e.value)?e.value:[e.value]).map(qe=>l.options.find(gt=>gt.value===qe)).filter(Boolean);c("selectedOptions",ve)},{defer:!0})),tn(wi(()=>l.opened,ee=>{ee&&setTimeout(()=>{const ve=g==null?void 0:g.querySelector("[role='option'][aria-selected='true']");ve&&et(ve)},0)}));const Et={state:l,isOptionSelected:N,unselectOption:M,isOptionActiveDescendant:fe,formControlProps:r,assignTriggerRef:$e,assignContentRef:vt,assignListboxRef:Je,registerOption:st,scrollToOption:et,onContentClickOutside:R,onTriggerBlur:H,onTriggerClick:X,onTriggerKeyDown:ne,onOptionClick:ae,onOptionMouseMove:D,onOptionMouseDown:Re,onListboxMouseLeave:C};return T(Jp.Provider,{value:Et,get children(){return e.children}})}const Jp=Ct();function Di(){const e=$t(Jp);if(!e)throw new Error("[Hope UI]: useSelectContext must be used within a `<Select />` component");return e}const e9="hope-select__content";function dc(e){const t=xe().Select,n=Di(),[r,i]=se(e,["ref","class","children"]),[o,a]=Me(!1);tn(wi(()=>n.state.opened,()=>{n.state.opened?a(!0):n.state.motionPreset==="none"&&a(!1)}));const s=()=>a(!1),l=()=>ie(r.class,e9,q3()),c=Gr(()=>r.children),u=d=>{n.assignContentRef(d),$n(r.ref)?r.ref(d):r.ref=d},f=d=>{n.onContentClickOutside(d.target)},g=()=>{switch(n.state.motionPreset){case"fade-in-top":return Ho.fadeInTop;case"none":return"hope-none"}};return T(Ae,{get when(){return o()},get children(){return T(go,{get children(){return T(po,{get name(){return g()},appear:!0,onAfterExit:s,get children(){return T(Ae,{get when(){return n.state.opened},get children(){return T(yp,{onClickOutside:f,get children(){return T(De,K({ref:u,get class(){return l()},get __baseStyle(){var d;return(d=t==null?void 0:t.baseStyle)==null?void 0:d.content}},i,{get children(){return c()}}))}})}})}})}})}})}dc.toString=()=>ge(e9);const lT=Bt('<svg><path d="M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>',4,!0),cT=Cr({viewBox:"0 0 15 15",path:()=>lT.cloneNode(!0)}),t9="hope-select__icon";function tl(e){const t=xe().Select,n=Di(),[r,i]=se(e,["class","rotateOnOpen"]),o=()=>ie(r.class,t9,V3(r.rotateOnOpen?{opened:n.state.opened}:void 0));return T(cT,K({"aria-hidden":!0,get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.icon}},i))}tl.toString=()=>ge(t9);const n9="hope-select__listbox";function fc(e){const t=xe().Select,n=Di(),[r,i]=se(e,["ref","class"]),o=()=>ie(r.class,n9,Y3());return T(De,K({ref:l=>{n.assignListboxRef(l),$n(r.ref)?r.ref(l):r.ref=l},role:"listbox",tabindex:"-1",get id(){return n.state.listboxId},get class(){return o()},get __baseStyle(){var l;return(l=t==null?void 0:t.baseStyle)==null?void 0:l.listbox},get onMouseLeave(){return n.onListboxMouseLeave},onMouseDown:l=>{l.preventDefault()}},i))}fc.toString=()=>ge(n9);const r9=Ct(),i9="hope-select__option";function hc(e){const t=xe().Select,n=Di(),[r,i]=Me(-1);let o;const[a,s]=se(e,["ref","class","value","textValue","disabled"]),l=()=>{var b,E;return{value:a.value,textValue:(E=(b=a.textValue)!=null?b:o==null?void 0:o.textContent)!=null?E:String(a.value),disabled:!!a.disabled}},c=()=>`${n.state.optionIdPrefix}-${r()}`,u=()=>n.isOptionSelected(l()),f=()=>n.isOptionActiveDescendant(r()),g=()=>ie(a.class,i9,X3()),d=b=>{o=b,$n(a.ref)?a.ref(b):a.ref=b},h=b=>{b.stopPropagation(),n.onOptionClick(r())},m=b=>{if(a.disabled&&n.onOptionMouseMove(-1),f()||a.disabled){b.preventDefault(),b.stopPropagation();return}n.onOptionMouseMove(r())},p={selected:u};return Gn(()=>{i(n.registerOption(l()))}),tn(()=>{f()&&o&&n.scrollToOption(o)}),T(r9.Provider,{value:p,get children(){return T(De,K({ref:d,role:"option",get id(){return c()},get"aria-selected"(){return u()},get"data-active"(){return f()?"":void 0},get"data-disabled"(){return a.disabled?"":void 0},"data-group":!0,get class(){return g()},get __baseStyle(){var b;return(b=t==null?void 0:t.baseStyle)==null?void 0:b.option},onClick:h,onMouseMove:m,get onMouseDown(){return n.onOptionMouseDown}},s))}})}hc.toString=()=>ge(i9);function uT(){const e=$t(r9);if(!e)throw new Error("[Hope UI]: useSelectOptionContext must be used within a `<Select.Option />` component");return e}const dT=Bt('<svg><g fill="none"><path d="M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></g></svg>',6,!0),fT=Cr({viewBox:"0 0 15 15",path:()=>dT.cloneNode(!0)}),o9="hope-select__option-indicator";function gc(e){const t=xe().Select,n=uT(),[r,i]=se(e,["class","children"]),o=()=>ie(r.class,o9,Z3());return T(Ae,{get when(){return n.selected()},get children(){return T(je.span,K({get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.optionIndicator}},i,{get children(){return T(Ae,{get when(){return r.children},get fallback(){return T(fT,{"aria-hidden":"true",boxSize:"$5"})},get children(){return r.children}})}}))}})}gc.toString=()=>ge(o9);const a9="hope-select__option-text";function mc(e){const t=xe().Select,[n,r]=se(e,["class"]),i=()=>ie(n.class,a9,Q3());return T(je.span,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.optionText}},r))}mc.toString=()=>ge(a9);const s9="hope-select__placeholder";function nd(e){const t=xe().Select,n=Di(),[r,i]=se(e,["class"]),o=()=>ie(r.class,s9,W3());return T(Ae,{get when(){return!n.state.hasSelectedOptions},get children(){return T(je.span,K({get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.placeholder}},i))}})}nd.toString=()=>ge(s9);const l9="hope-select__tag";function c9(e){const t=xe().Select,n=Di(),[r,i]=se(e,["class","size","variant"]),o=()=>{var a,s,l;return ie(r.class,l9,G3({size:(s=(a=r.size)!=null?a:n.state.size)!=null?s:"md",variant:((l=r.variant)!=null?l:n.state.variant==="filled")?"outline":"subtle"}))};return T(je.span,K({get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.tag}},i))}c9.toString=()=>ge(l9);const hT=Bt('<svg><g fill="none"><path d="M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></g></svg>',6,!0),u9=Cr({viewBox:"0 0 15 15",path:()=>hT.cloneNode(!0)}),d9="hope-select__tag-close-button";function f9(e){const t=xe().Select,[n,r]=se(e,["class","children"]),i=()=>ie(n.class,d9,K3());return T(je.button,K({role:"button",type:"button","aria-label":"Delete",tabIndex:"-1",get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.tagCloseButton}},r,{get children(){return T(Ae,{get when(){return n.children},get fallback(){return T(u9,{})},get children(){return n.children}})}}))}f9.toString=()=>ge(d9);const h9="hope-select__trigger";function pc(e){const t=xe().Select,n=Di(),[r,i]=se(e,["ref","class","onClick","onKeyDown","onFocus","onBlur"]),o=()=>ie(r.class,h9,U3({variant:n.state.variant,size:n.state.size})),a=f=>{n.assignTriggerRef(f),$n(r.ref)?r.ref(f):r.ref=f},s=f=>{Ln(n.onTriggerClick,r.onClick)(f)},l=f=>{Ln(n.onTriggerKeyDown,r.onKeyDown)(f)},c=f=>{Ln(n.formControlProps.onFocus,r.onFocus)(f)},u=f=>{Ln(n.onTriggerBlur,n.formControlProps.onBlur,r.onBlur)(f)};return T(je.button,K({ref:a,get id(){return n.state.triggerId},get disabled(){return n.state.disabled},role:"combobox",type:"button",tabindex:"0","aria-haspopup":"listbox",get"aria-activedescendant"(){return n.state.activeDescendantId},get"aria-controls"(){return n.state.listboxId},get"aria-expanded"(){return n.state.opened},get"aria-required"(){return n.formControlProps["aria-required"]},get"aria-invalid"(){return n.formControlProps["aria-invalid"]},get"aria-readonly"(){return n.formControlProps["aria-readonly"]},get"aria-describedby"(){return n.formControlProps["aria-describedby"]},get class(){return o()},get __baseStyle(){var f;return(f=t==null?void 0:t.baseStyle)==null?void 0:f.trigger},onClick:s,onKeyDown:l,onFocus:c,onBlur:u},i))}pc.toString=()=>ge(h9);const gT=Bt("<span></span>"),su="hope-select__value";function xc(e){const t=xe().Select,n=Di(),[r,i]=se(e,["class","children"]),o=()=>ie(r.class,su,im()),a=()=>ie(r.class,su,j3({size:n.state.size})),s=(c,u)=>{c.preventDefault(),c.stopPropagation(),n.unselectOption(u)},l=Gr(()=>{var c;return sc(r)?(c=r.children)==null?void 0:c.call(r,{selectedOptions:n.state.selectedOptions}):r.children});return T(Ae,{get when(){return n.state.hasSelectedOptions},get children(){return T(Ae,{get when(){return!l()},get fallback(){return l()},get children(){return T(Ae,{get when(){return n.state.multiple},get fallback(){return T(De,K({get class(){return o()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.singleValue}},i,{get children(){return n.state.selectedOptions[0].textValue}}))},get children(){return T(De,K({get class(){return a()},get __baseStyle(){var c;return(c=t==null?void 0:t.baseStyle)==null?void 0:c.multiValue}},i,{get children(){return T(Ka,{get each(){return n.state.selectedOptions},children:c=>T(c9,{get children(){return[(()=>{const u=gT.cloneNode(!0);return jr(u,()=>c.textValue),u})(),T(f9,{onClick:u=>s(u,c)})]}})})}}))}})}})}})}xc.toString=()=>ge(su);function fB(e){const[t,n]=se(e,["children","value"]);return T(hc,K({get value(){return t.value}},n,{get children(){return[T(mc,{get children(){return t.children}}),T(gc,{})]}}))}function hB(e){const[t,n,r]=se(e,["children","placeholder"],["variant","size","offset","id","multiple","value","defaultValue","required","disabled","invalid","readOnly","onChange","onFocus","onBlur"]);return T(Zp,K(n,{get children(){return[T(pc,K(r,{get children(){return[T(Ae,{get when(){return t.placeholder},get children(){return T(nd,{get children(){return t.placeholder}})}}),T(xc,{}),T(tl,{})]}})),T(dc,{get children(){return T(fc,{get children(){return t.children}})}})]}}))}const mT=qa({from:{borderColor:"$$startColor",background:"$$startColor"},to:{borderColor:"$$endColor",background:"$$endColor"}});W({$$startColor:"$colors$neutral2",$$endColor:"$colors$neutral8",opacity:"0.7",borderRadius:"2px",borderColor:"$$startColor",boxShadow:"$none",background:"$$endColor",backgroundClip:"padding-box",color:"transparent",cursor:"default",pointerEvents:"none",userSelect:"none",animationTimingFunction:"linear",animationIterationCount:"infinite",animationDirection:"alternate",animationName:`${mT()}`,"&::before, &::after, *":{visibility:"hidden"}});const pT=W({flex:1,justifySelf:"stretch",alignSelf:"stretch"}),g9="hope-spacer";function xT(e){const[t,n]=se(e,["class"]),r=()=>ie(t.class,g9,pT());return T(De,K({get class(){return r()}},n))}xT.toString=()=>ge(g9);const bT=W({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"$full",borderWidth:"2px",borderBottomColor:"transparent",borderLeftColor:"transparent",animationName:`${ic}`,animationDuration:"0.45s",animationTimingFunction:"linear",animationIterationCount:"infinite",variants:{size:{xs:{boxSize:"0.75rem"},sm:{boxSize:"1rem"},md:{boxSize:"1.5rem"},lg:{boxSize:"2rem"},xl:{boxSize:"3rem"}}}}),_T=Bt("<span></span>"),m9="hope-spinner";function xl(e){var t,n,r,i,o,a,s,l;const c=xe().Spinner,u={label:(n=(t=c==null?void 0:c.defaultProps)==null?void 0:t.label)!=null?n:"Loading...",size:(i=(r=c==null?void 0:c.defaultProps)==null?void 0:r.size)!=null?i:"md",emptyColor:(o=c==null?void 0:c.defaultProps)==null?void 0:o.emptyColor,color:(a=c==null?void 0:c.defaultProps)==null?void 0:a.color,thickness:(s=c==null?void 0:c.defaultProps)==null?void 0:s.thickness,speed:(l=c==null?void 0:c.defaultProps)==null?void 0:l.speed},f=K(u,e),[g,d]=se(f,["class","children","label","size","emptyColor","color","thickness","speed"]),h=()=>ie(g.class,m9,bT({size:g.size,css:{color:g.color,borderWidth:g.thickness,borderBottomColor:g.emptyColor,borderLeftColor:g.emptyColor,animationDuration:g.speed}}));return T(De,K({get class(){return h()}},d,{get children(){return T(Ae,{get when(){return g.label},get children(){const m=_T.cloneNode(!0);return jr(m,()=>g.label),Dn(()=>m.className=oc()),m}})}}))}xl.toString=()=>ge(m9);const vT=W(Xu,{variants:{labelPlacement:{start:{flexDirection:"row"},end:{flexDirection:"row-reverse"}}}}),ET=W(Qu),TT=W(Zu,{borderRadius:"$full",transition:"background-color 250ms, border-color 250ms, box-shadow 250ms","&::before":{content:"''",position:"absolute",top:"2px",left:"2px",zIndex:"1",borderRadius:"$full",boxShadow:"$sm",transition:"250ms"},variants:{variant:{outline:{"&::before":{backgroundColor:"$neutral7"},"&[data-checked]::before":{backgroundColor:"$loContrast"}},filled:{"&::before":{backgroundColor:"$loContrast"}}},size:{sm:{height:"16px",width:"26px","&::before":{boxSize:"10px"},"&[data-checked]::before":{transform:"translateX(10px)"}},md:{columnGap:"2px",height:"20px",width:"34px","&::before":{boxSize:"14px"},"&[data-checked]::before":{transform:"translateX(14px)"}},lg:{columnGap:"4px",height:"28px",width:"50px","&::before":{boxSize:"22px"},"&[data-checked]::before":{transform:"translateX(22px)"}}}}}),yT=Bt('<input type="checkbox" role="switch">');function ST(e){const t=`hope-switch-${lr()}`,n=Xa(e),[r,i]=An({_checked:!!e.defaultChecked,isFocused:!1,get isControlled(){return e.checked!==void 0},get checked(){return this.isControlled?!!e.checked:this._checked},get id(){var h;return(h=n.id)!=null?h:t},get name(){return e.name},get value(){return e.value},get required(){return n.required},get disabled(){return n.disabled},get invalid(){return n.invalid},get readOnly(){return n.readOnly},get"aria-required"(){return this.required?!0:void 0},get"aria-disabled"(){return this.disabled?!0:void 0},get"aria-invalid"(){return this.invalid?!0:void 0},get"aria-readonly"(){return this.readOnly?!0:void 0},get"data-focus"(){return this.isFocused?"":void 0},get"data-checked"(){return this.checked?"":void 0},get"data-required"(){return this.required?"":void 0},get"data-disabled"(){return this.disabled?"":void 0},get"data-invalid"(){return this.invalid?"":void 0},get"data-readonly"(){return this.readOnly?"":void 0}}),[o,a,s]=se(e,["inputClass","children","ref","tabIndex","aria-label","aria-labelledby","aria-describedby","onChange"],["id","name","value","checked","defaultChecked","required","disabled","invalid","readOnly","onFocus","onBlur"]),l=h=>{if(r.readOnly||r.disabled){h.preventDefault();return}if(!r.isControlled){const m=h.target;i("_checked",m.checked)}Cn(o.onChange,h)},c=h=>{i("isFocused",!0),Cn(n.onFocus,h)},u=h=>{i("isFocused",!1),Cn(n.onBlur,h)},f=()=>ie(o.inputClass,oc()),g=()=>r,d={state:r};return T(CT.Provider,{value:d,get children(){return T(je.label,K({get for(){return r.id},"data-group":!0,get"data-focus"(){return r["data-focus"]},get"data-checked"(){return r["data-checked"]},get"data-required"(){return r["data-required"]},get"data-disabled"(){return r["data-disabled"]},get"data-invalid"(){return r["data-invalid"]},get"data-readonly"(){return r["data-readonly"]}},s,{get children(){return[(()=>{const h=yT.cloneNode(!0);h.addEventListener("blur",u),h.addEventListener("focus",c),h.addEventListener("change",l);const m=o.ref;return typeof m=="function"?m(h):o.ref=h,Dn(p=>{const b=f(),E=o.tabIndex,v=r.value,N=r.id,I=r.name,S=r.checked,y=r.required,O=r.disabled,M=r.readOnly,j=r["aria-required"],H=r["aria-disabled"],X=r["aria-invalid"],ne=r["aria-readonly"],oe=o["aria-label"],ae=o["aria-labelledby"],D=o["aria-describedby"];return b!==p._v$&&(h.className=p._v$=b),E!==p._v$2&&at(h,"tabindex",p._v$2=E),v!==p._v$3&&(h.value=p._v$3=v),N!==p._v$4&&at(h,"id",p._v$4=N),I!==p._v$5&&at(h,"name",p._v$5=I),S!==p._v$6&&(h.checked=p._v$6=S),y!==p._v$7&&(h.required=p._v$7=y),O!==p._v$8&&(h.disabled=p._v$8=O),M!==p._v$9&&(h.readOnly=p._v$9=M),j!==p._v$10&&at(h,"aria-required",p._v$10=j),H!==p._v$11&&at(h,"aria-disabled",p._v$11=H),X!==p._v$12&&at(h,"aria-invalid",p._v$12=X),ne!==p._v$13&&at(h,"aria-readonly",p._v$13=ne),oe!==p._v$14&&at(h,"aria-label",p._v$14=oe),ae!==p._v$15&&at(h,"aria-labelledby",p._v$15=ae),D!==p._v$16&&at(h,"aria-describedby",p._v$16=D),p},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0,_v$6:void 0,_v$7:void 0,_v$8:void 0,_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0,_v$13:void 0,_v$14:void 0,_v$15:void 0,_v$16:void 0}),h})(),T(Ae,{get when(){return $n(o.children)},get fallback(){return o.children},get children(){var h;return(h=o.children)==null?void 0:h.call(o,{state:g})}})]}}))}})}const CT=Ct(),p9="hope-switch",wT="hope-checkbox__input",AT="hope-switch__control",kT="hope-switch__label";function OT(e){var t,n,r,i,o,a,s,l,c,u,f,g;const d=xe().Switch,h={variant:(r=(n=(t=d==null?void 0:d.defaultProps)==null?void 0:t.root)==null?void 0:n.variant)!=null?r:"filled",colorScheme:(a=(o=(i=d==null?void 0:d.defaultProps)==null?void 0:i.root)==null?void 0:o.colorScheme)!=null?a:"primary",size:(c=(l=(s=d==null?void 0:d.defaultProps)==null?void 0:s.root)==null?void 0:l.size)!=null?c:"md",labelPlacement:(g=(f=(u=d==null?void 0:d.defaultProps)==null?void 0:u.root)==null?void 0:f.labelPlacement)!=null?g:"start"},m=K(h,e),[p,b]=se(m,["children","class","variant","colorScheme","size","labelPlacement"]),E=()=>ie(p.class,p9,vT({size:p.size,labelPlacement:p.labelPlacement})),v=()=>ie(AT,TT({variant:p.variant,colorScheme:p.colorScheme,size:p.size})),N=()=>ie(kT,ET());return T(ST,K({get class(){return E()},inputClass:wT,get __baseStyle(){var I;return(I=d==null?void 0:d.baseStyle)==null?void 0:I.root}},b,{children:({state:I})=>[T(je.span,{get class(){return N()},get __baseStyle(){var S;return(S=d==null?void 0:d.baseStyle)==null?void 0:S.label},get"data-focus"(){return I()["data-focus"]},get"data-checked"(){return I()["data-checked"]},get"data-required"(){return I()["data-required"]},get"data-disabled"(){return I()["data-disabled"]},get"data-invalid"(){return I()["data-invalid"]},get"data-readonly"(){return I()["data-readonly"]},get children(){return p.children}}),T(je.span,{"aria-hidden":!0,get class(){return v()},get __baseStyle(){var S;return(S=d==null?void 0:d.baseStyle)==null?void 0:S.control},get"data-focus"(){return I()["data-focus"]},get"data-checked"(){return I()["data-checked"]},get"data-required"(){return I()["data-required"]},get"data-disabled"(){return I()["data-disabled"]},get"data-invalid"(){return I()["data-invalid"]},get"data-readonly"(){return I()["data-readonly"]}})]}))}OT.toString=()=>ge(p9);const NT=W({width:"100%",borderCollapse:"collapse",fontVariantNumeric:"lining-nums tabular-nums"});W({px:"$6",py:"$4",color:"$neutral11",fontSize:"$sm",fontWeight:"$medium",lineHeight:"$5",textAlign:"center",variants:{dense:{true:{px:"$4",py:"$3",fontSize:"$xs",lineHeight:"$4"}},placement:{top:{captionSide:"top"},bottom:{captionSide:"bottom"}}}});function Gf(e){return{"& td":{borderBottomWidth:0},"& tr:last-of-type td":{borderBottomWidth:"1px"},[`& tr:nth-of-type(${e}) td`]:{backgroundColor:"$neutral3"}}}const IT=W({variants:{striped:{odd:Gf("odd"),even:Gf("even")},highlightOnHover:{true:{"& tr:hover td":{backgroundColor:"$neutral4"}}}},compoundVariants:[{striped:"odd",highlightOnHover:!0,css:{"& tr:nth-of-type(odd):hover td":{backgroundColor:"$neutral4"}}},{striped:"even",highlightOnHover:!0,css:{"& tr:nth-of-type(even):hover td":{backgroundColor:"$neutral4"}}}]});W({"& tr:last-of-type th":{borderBottomWidth:0}});const RT=W({borderBottom:"1px solid $colors$neutral6",px:"$6",py:"$3",fontSize:"$xs",fontWeight:"$semibold",lineHeight:"$4",letterSpacing:"$wider",textAlign:"start",textTransform:"uppercase",variants:{dense:{true:{px:"$4",py:"$1_5"}},numeric:{true:{textAlign:"end"}}}}),MT=W({borderBottom:"1px solid $colors$neutral6",px:"$6",py:"$4",fontSize:"$base",lineHeight:"$6",textAlign:"start",transition:"background-color 250ms",variants:{dense:{true:{px:"$4",py:"$2",fontSize:"$sm",lineHeight:"$5"}},numeric:{true:{textAlign:"end"}}}}),x9=Ct(),b9="hope-table";function LT(e){const t=xe().Table,[n]=An({get striped(){var a,s,l;return(l=e.striped)!=null?l:(s=(a=t==null?void 0:t.defaultProps)==null?void 0:a.root)==null?void 0:s.striped},get dense(){var a,s,l,c;return(c=(l=e.dense)!=null?l:(s=(a=t==null?void 0:t.defaultProps)==null?void 0:a.root)==null?void 0:s.dense)!=null?c:!1},get highlightOnHover(){var a,s,l,c;return(c=(l=e.highlightOnHover)!=null?l:(s=(a=t==null?void 0:t.defaultProps)==null?void 0:a.root)==null?void 0:s.highlightOnHover)!=null?c:!1}}),[r,i]=se(e,["class","striped","dense","highlightOnHover"]),o=()=>ie(r.class,b9,NT(n));return T(x9.Provider,{value:n,get children(){return T(De,K({as:"table",role:"table",get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.root}},i))}})}LT.toString=()=>ge(b9);function rd(){const e=$t(x9);if(!e)throw new Error("[Hope UI]: useTableContext must be used within a `<Table/>` component");return e}const _9="hope-tbody";function PT(e){const t=xe().Table,n=rd(),[r,i]=se(e,["class"]),o=()=>ie(r.class,_9,IT({striped:n.striped,highlightOnHover:n.highlightOnHover}));return T(De,K({as:"tbody",role:"rowgroup",get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.tbody}},i))}PT.toString=()=>ge(_9);const v9="hope-td";function DT(e){const t=xe().Table,n=rd(),[r,i]=se(e,["class","numeric"]),o=()=>ie(r.class,v9,MT({dense:n.dense,numeric:r.numeric}));return T(De,K({as:"td",role:"cell",get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.td}},i))}DT.toString=()=>ge(v9);const E9="hope-th";function $T(e){const t=xe().Table,n=rd(),[r,i]=se(e,["class","numeric"]),o=()=>ie(r.class,E9,RT({dense:n.dense,numeric:r.numeric}));return T(De,K({as:"th",role:"columnheader",get class(){return o()},get __baseStyle(){var a;return(a=t==null?void 0:t.baseStyle)==null?void 0:a.th}},i))}$T.toString=()=>ge(E9);const T9="hope-thead";function BT(e){const t=xe().Table,[n,r]=se(e,["class"]),i=()=>ie(n.class,T9);return T(De,K({as:"thead",role:"rowgroup",get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.thead}},r))}BT.toString=()=>ge(T9);const y9="hope-tr";function FT(e){const t=xe().Table,[n,r]=se(e,["class"]),i=()=>ie(n.class,y9);return T(De,K({as:"tr",role:"row",get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.tr}},r))}FT.toString=()=>ge(y9);W({variants:{orientation:{horizontal:{display:"block"},vertical:{display:"flex"}}}});W({display:"flex",color:"$neutral11",fontWeight:"$normal",variants:{variant:{underline:{borderWidth:0,borderStyle:"solid",borderColor:"$neutral7"},outline:{borderStyle:"solid",borderColor:"$neutral7"},cards:{borderStyle:"solid",borderColor:"$neutral7"},pills:{gap:"$1_5"}},alignment:{start:{justifyContent:"flex-start"},end:{justifyContent:"flex-end"},center:{justifyContent:"center"},apart:{justifyContent:"space-between"}},orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}}},compoundVariants:[{variant:"underline",orientation:"horizontal",css:{borderBottomWidth:"1px"}},{variant:"underline",orientation:"vertical",css:{borderInlineEndWidth:"1px"}},{variant:"outline",orientation:"horizontal",css:{mb:"-1px",borderBottomWidth:"1px"}},{variant:"outline",orientation:"vertical",css:{marginInlineEnd:"-1px",borderInlineEndWidth:"1px"}},{variant:"cards",orientation:"horizontal",css:{mb:"-1px",borderBottomWidth:"1px"}},{variant:"cards",orientation:"vertical",css:{marginInlineEnd:"-1px",borderInlineEndWidth:"1px"}}]});function Jt(e){return{"&[aria-selected='true']":{color:e}}}function Io(e){return{"&[aria-selected='true']":{color:e.color,backgroundColor:e.bgColor},"&[aria-selected='true']:hover":{backgroundColor:e.bgColorHover}}}W({appearance:"none",display:"flex",alignItems:"center",justifyContent:"center",outline:"none",border:"$none",backgroundColor:"transparent",px:"$4",color:"inherit",fontWeight:"inherit",cursor:"pointer",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",transitionDuration:"250ms","&:focus":{zIndex:1,outline:"none",boxShadow:"$outline"},"&:disabled":{opacity:.4,cursor:"not-allowed"},variants:{variant:{underline:{borderWidth:0,borderStyle:"solid",borderColor:"transparent","&[aria-selected='true']":{borderColor:"currentColor"},"&:active":{backgroundColor:"$neutral4"}},outline:{borderWidth:"1px",borderStyle:"solid",borderColor:"transparent","&[aria-selected='true']":{borderColor:"inherit"}},cards:{borderWidth:"1px",borderStyle:"solid",borderColor:"inherit",backgroundColor:"$neutral3","&[aria-selected='true']":{borderColor:"inherit",backgroundColor:"$loContrast"}},pills:{borderRadius:"$sm","&:hover":{backgroundColor:"$neutral3"},"&:hover:disabled":{backgroundColor:"transparent"}}},colorScheme:{primary:{},accent:{},neutral:{},success:{},info:{},warning:{},danger:{}},size:{sm:{py:"$1",fontSize:"$sm"},md:{py:"$2",fontSize:"$base"},lg:{py:"$3",fontSize:"$lg"}},orientation:{horizontal:{},vertical:{}},fitted:{true:{flex:1}}},compoundVariants:[{variant:"underline",colorScheme:"primary",css:Jt("$primary11")},{variant:"underline",colorScheme:"accent",css:Jt("$accent11")},{variant:"underline",colorScheme:"neutral",css:Jt("$neutral12")},{variant:"underline",colorScheme:"success",css:Jt("$success11")},{variant:"underline",colorScheme:"info",css:Jt("$info11")},{variant:"underline",colorScheme:"warning",css:Jt("$warning11")},{variant:"underline",colorScheme:"danger",css:Jt("$danger11")},{variant:"outline",colorScheme:"primary",css:Jt("$primary11")},{variant:"outline",colorScheme:"accent",css:Jt("$accent11")},{variant:"outline",colorScheme:"neutral",css:Jt("$neutral12")},{variant:"outline",colorScheme:"success",css:Jt("$success11")},{variant:"outline",colorScheme:"info",css:Jt("$info11")},{variant:"outline",colorScheme:"warning",css:Jt("$warning11")},{variant:"outline",colorScheme:"danger",css:Jt("$danger11")},{variant:"cards",colorScheme:"primary",css:Jt("$primary11")},{variant:"cards",colorScheme:"accent",css:Jt("$accent11")},{variant:"cards",colorScheme:"neutral",css:Jt("$neutral12")},{variant:"cards",colorScheme:"success",css:Jt("$success11")},{variant:"cards",colorScheme:"info",css:Jt("$info11")},{variant:"cards",colorScheme:"warning",css:Jt("$warning11")},{variant:"cards",colorScheme:"danger",css:Jt("$danger11")},{variant:"pills",colorScheme:"primary",css:Io({color:"$primary11",bgColor:"$primary3",bgColorHover:"$primary4"})},{variant:"pills",colorScheme:"accent",css:Io({color:"$accent11",bgColor:"$accent3",bgColorHover:"$accent4"})},{variant:"pills",colorScheme:"neutral",css:Io({color:"$neutral12",bgColor:"$neutral3",bgColorHover:"$neutral4"})},{variant:"pills",colorScheme:"success",css:Io({color:"$success11",bgColor:"$success3",bgColorHover:"$success4"})},{variant:"pills",colorScheme:"info",css:Io({color:"$info11",bgColor:"$info3",bgColorHover:"$info4"})},{variant:"pills",colorScheme:"warning",css:Io({color:"$warning11",bgColor:"$warning3",bgColorHover:"$warning4"})},{variant:"pills",colorScheme:"danger",css:Io({color:"$danger11",bgColor:"$danger3",bgColorHover:"$danger4"})},{variant:"underline",orientation:"horizontal",css:{borderBottomWidth:"2px",marginBottom:"-1px"}},{variant:"underline",orientation:"vertical",css:{borderInlineEndWidth:"2px",marginInlineEnd:"-1px"}},{variant:"outline",orientation:"horizontal",css:{mb:"-1px",borderTopRadius:"$sm","&[aria-selected='true']":{borderBottomColor:"$loContrast"}}},{variant:"outline",orientation:"vertical",css:{marginInlineEnd:"-1px",borderStartRadius:"$radii$sm","&[aria-selected='true']":{borderInlineEndColor:"$colors$loContrast"}}},{variant:"cards",orientation:"horizontal",css:{mb:"-1px",borderBottomWidth:"1px","&:not(:last-of-type)":{marginInlineEnd:"-1px"},"&[aria-selected='true']":{borderTopColor:"currentColor",borderBottomColor:"transparent"}}},{variant:"cards",orientation:"vertical",css:{marginInlineEnd:"-1px",borderInlineEndWidth:"1px","&:not(:last-of-type)":{mb:"-1px"},"&[aria-selected='true']":{borderInlineStartColor:"currentColor",borderInlineEndColor:"transparent"}}}]});W({outline:"none",padding:"$4"});W({marginInlineStart:"$2"});W({marginInlineEnd:"$2"});const HT=W({noOfLines:1}),ia=W({appearance:"none",position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",outline:"none",border:"1px solid transparent",borderRadius:"$full",backgroundColor:"transparent",padding:"0",lineHeight:"$none",textDecoration:"none",color:"inherit",cursor:"pointer",userSelect:"none",transition:"color 250ms, background-color 250ms, opacity 250ms, box-shadow 250ms","&:focus":{outline:"none",boxShadow:"$outline"},"&:disabled":{border:"1px solid transparent",backgroundColor:"transparent",color:"$neutral3",cursor:"not-allowed"},variants:{size:{sm:{marginInlineStart:"0.35rem",marginInlineEnd:"-3px"},md:{marginInlineStart:"$1_5",marginInlineEnd:"calc(0.15rem * -1)"},lg:{marginInlineStart:"$1_5",marginInlineEnd:"calc($1 * -1)"}}}});function t0(e){return{height:e.height,py:0,px:e.paddingX,fontSize:e.fontSize,lineHeight:e.lineHeight,[`& .${ia}`]:{boxSize:e.closeButtonSize}}}function Ro(e){return{backgroundColor:e.bgColor,color:e.color,[`& .${ia}:not(:disabled):hover`]:{backgroundColor:e.closeButtonBgColorHover}}}function Mo(e){return{backgroundColor:e.bgColor,color:e.color,[`& .${ia}:not(:disabled):hover`]:{backgroundColor:e.closeButtonBgColorHover}}}function Lo(e){return{borderColor:e.borderColor,color:e.color,[`& .${ia}:not(:disabled):hover`]:{backgroundColor:e.closeButtonBgColorHover}}}function n0(e){return{"&::before, &::after":{boxSize:e},"&::before":{marginRight:e},"&::after":{marginLeft:e}}}const zT=W({display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"$full",fontWeight:"$medium",lineHeight:"$none",variants:{variant:{solid:{border:"1px solid transparent",color:"white"},subtle:{border:"1px solid transparent"},outline:{borderStyle:"solid",borderWidth:"1px",backgroundColor:"transparent"},dot:{border:"1px solid $neutral7",backgroundColor:"transparent",color:"$neutral12","&::before, &::after":{content:"''",borderRadius:"$full"},"&::before":{display:"block"},"&::after":{display:"none"},[`& .${ia}:not(:disabled):hover`]:{backgroundColor:"$neutral4"},[`& .${ia}:not(:disabled):active`]:{backgroundColor:"$neutral5"}}},colorScheme:{primary:{},accent:{},neutral:{},success:{},info:{},warning:{},danger:{}},size:{sm:t0({height:"$5",paddingX:"$2",fontSize:"$xs",lineHeight:"$4",closeButtonSize:"$4"}),md:t0({height:"$6",paddingX:"$2",fontSize:"$sm",lineHeight:"$5",closeButtonSize:"$5"}),lg:t0({height:"$8",paddingX:"$3",fontSize:"$base",lineHeight:"$6",closeButtonSize:"$6"})},dotPlacement:{start:{},end:{}}},compoundVariants:[{variant:"solid",colorScheme:"primary",css:Ro({color:"white",bgColor:"$primary9",closeButtonBgColorHover:"$primary10"})},{variant:"solid",colorScheme:"accent",css:Ro({color:"white",bgColor:"$accent9",closeButtonBgColorHover:"$accent10"})},{variant:"solid",colorScheme:"neutral",css:Ro({color:"white",bgColor:"$neutral9",closeButtonBgColorHover:"$neutral11"})},{variant:"solid",colorScheme:"success",css:Ro({color:"white",bgColor:"$success9",closeButtonBgColorHover:"$success10"})},{variant:"solid",colorScheme:"info",css:Ro({color:"white",bgColor:"$info9",closeButtonBgColorHover:"$info10"})},{variant:"solid",colorScheme:"warning",css:Ro({color:"$blackAlpha12",bgColor:"$warning9",closeButtonBgColorHover:"$warning10"})},{variant:"solid",colorScheme:"danger",css:Ro({color:"white",bgColor:"$danger9",closeButtonBgColorHover:"$danger10"})},{variant:"subtle",colorScheme:"primary",css:Mo({color:"$primary11",bgColor:"$primary4",closeButtonBgColorHover:"$primary6"})},{variant:"subtle",colorScheme:"accent",css:Mo({color:"$accent11",bgColor:"$accent4",closeButtonBgColorHover:"$accent6"})},{variant:"subtle",colorScheme:"neutral",css:Mo({color:"$neutral12",bgColor:"$neutral4",closeButtonBgColorHover:"$neutral7"})},{variant:"subtle",colorScheme:"success",css:Mo({color:"$success11",bgColor:"$success4",closeButtonBgColorHover:"$success6"})},{variant:"subtle",colorScheme:"info",css:Mo({color:"$info11",bgColor:"$info4",closeButtonBgColorHover:"$info6"})},{variant:"subtle",colorScheme:"warning",css:Mo({color:"$warning11",bgColor:"$warning4",closeButtonBgColorHover:"$warning6"})},{variant:"subtle",colorScheme:"danger",css:Mo({color:"$danger11",bgColor:"$danger4",closeButtonBgColorHover:"$danger6"})},{variant:"outline",colorScheme:"primary",css:Lo({color:"$primary11",borderColor:"$primary7",closeButtonBgColorHover:"$primary4"})},{variant:"outline",colorScheme:"accent",css:Lo({color:"$accent11",borderColor:"$accent7",closeButtonBgColorHover:"$accent4"})},{variant:"outline",colorScheme:"neutral",css:Lo({color:"$neutral12",borderColor:"$neutral7",closeButtonBgColorHover:"$neutral4"})},{variant:"outline",colorScheme:"success",css:Lo({color:"$success11",borderColor:"$success7",closeButtonBgColorHover:"$success4"})},{variant:"outline",colorScheme:"info",css:Lo({color:"$info11",borderColor:"$info7",closeButtonBgColorHover:"$info4"})},{variant:"outline",colorScheme:"warning",css:Lo({color:"$warning11",borderColor:"$warning7",closeButtonBgColorHover:"$warning4"})},{variant:"outline",colorScheme:"danger",css:Lo({color:"$danger11",borderColor:"$danger7",closeButtonBgColorHover:"$danger4"})},{variant:"dot",colorScheme:"primary",css:{"&::before, &::after":{backgroundColor:"$primary9"}}},{variant:"dot",colorScheme:"accent",css:{"&::before, &::after":{backgroundColor:"$accent9"}}},{variant:"dot",colorScheme:"neutral",css:{"&::before, &::after":{backgroundColor:"$neutral9"}}},{variant:"dot",colorScheme:"success",css:{"&::before, &::after":{backgroundColor:"$success9"}}},{variant:"dot",colorScheme:"info",css:{"&::before, &::after":{backgroundColor:"$info9"}}},{variant:"dot",colorScheme:"warning",css:{"&::before, &::after":{backgroundColor:"$warning9"}}},{variant:"dot",colorScheme:"danger",css:{"&::before, &::after":{backgroundColor:"$danger9"}}},{variant:"dot",size:"sm",css:n0("$1_5")},{variant:"dot",size:"md",css:n0("$2")},{variant:"dot",size:"lg",css:n0("$2_5")},{variant:"dot",dotPlacement:"start",css:{"&::before":{display:"block"},"&::after":{display:"none"}}},{variant:"dot",dotPlacement:"end",css:{"&::before":{display:"none"},"&::after":{display:"block"}}}]}),S9="hope-tag",C9=Ct();function UT(e){var t,n,r,i,o,a,s,l,c;const u=xe().Tag,f={variant:(r=(n=(t=u==null?void 0:u.defaultProps)==null?void 0:t.root)==null?void 0:n.variant)!=null?r:"subtle",colorScheme:(a=(o=(i=u==null?void 0:u.defaultProps)==null?void 0:i.root)==null?void 0:o.colorScheme)!=null?a:"neutral",size:(c=(l=(s=u==null?void 0:u.defaultProps)==null?void 0:s.root)==null?void 0:l.size)!=null?c:"md"},g=K(f,e),[d,h,m]=se(g,["class"],["variant","colorScheme","size","dotPlacement"]),p=()=>ie(d.class,S9,zT(h)),E={size:()=>h.size};return T(C9.Provider,{value:E,get children(){return T(je.span,K({get class(){return p()},get __baseStyle(){var v;return(v=u==null?void 0:u.baseStyle)==null?void 0:v.root}},m))}})}UT.toString=()=>ge(S9);function jT(){const e=$t(C9);if(!e)throw new Error("[Hope UI]: useTagContext must be used within a `<Tag />` component");return e}const w9="hope-tag-close-button";function GT(e){const t=xe().Tag,n=jT(),i=K({type:"button",role:"button","aria-label":"Close"},e),[o,a]=se(i,["class","children"]),s=()=>ie(o.class,w9,ia({size:n.size()}));return T(je.button,K({get class(){return s()},get __baseStyle(){var l;return(l=t==null?void 0:t.baseStyle)==null?void 0:l.closeButton}},a,{get children(){return T(u9,{})}}))}GT.toString=()=>ge(w9);const A9="hope-tag-label";function KT(e){const t=xe().Tag,[n,r]=se(e,["class"]),i=()=>ie(n.class,A9,HT());return T(je.span,K({get class(){return i()},get __baseStyle(){var o;return(o=t==null?void 0:t.baseStyle)==null?void 0:o.label}},r))}KT.toString=()=>ge(A9);const k9="hope-text";function lu(e){var t;const n=xe().Text,r={size:(t=n==null?void 0:n.defaultProps)==null?void 0:t.size},i=K(r,e),[o,a]=se(i,["class","size"]),s=()=>ie(o.class,k9,dp({size:o.size}));return T(je.p,K({get class(){return s()},get __baseStyle(){return n==null?void 0:n.baseStyle}},a))}lu.toString=()=>ge(k9);function r0(e,t){return Object.entries({xs:t??"$2",sm:t??"$2_5",md:t??"$3",lg:t??"$4"}).map(([n,r])=>({variant:e,size:n,css:{px:r}}))}const WT=W(Vu,{minHeight:"80px",py:"$2",compoundVariants:[...r0("outline"),...r0("filled"),...r0("unstyled",0)]}),O9="hope-textarea";function VT(e){var t,n,r,i;const o=xe().Textarea,a={variant:(n=(t=o==null?void 0:o.defaultProps)==null?void 0:t.variant)!=null?n:"outline",size:(i=(r=o==null?void 0:o.defaultProps)==null?void 0:r.size)!=null?i:"md"},s=K(a,e),[l,c]=se(s,["class","variant","size"]),u=Xa(e),f=()=>ie(l.class,O9,WT({variant:l.variant,size:l.size}));return T(De,K({as:"textarea",get class(){return f()},get __baseStyle(){return o==null?void 0:o.baseStyle}},u,c))}VT.toString=()=>ge(O9);const N9="hope-tooltip",qT="hope-tooltip__arrow";function YT(e){var t,n,r,i,o,a,s,l,c,u,f,g,d,h,m,p,b,E;const v=`hope-tooltip-${lr()}`,N=xe().Tooltip,I={id:v,placement:(n=(t=N==null?void 0:N.defaultProps)==null?void 0:t.placement)!=null?n:"bottom",offset:(i=(r=N==null?void 0:N.defaultProps)==null?void 0:r.offset)!=null?i:8,withArrow:(a=(o=N==null?void 0:N.defaultProps)==null?void 0:o.withArrow)!=null?a:!1,arrowSize:(l=(s=N==null?void 0:N.defaultProps)==null?void 0:s.arrowSize)!=null?l:8,arrowPadding:(u=(c=N==null?void 0:N.defaultProps)==null?void 0:c.arrowPadding)!=null?u:8,openDelay:(g=(f=N==null?void 0:N.defaultProps)==null?void 0:f.openDelay)!=null?g:0,closeDelay:(h=(d=N==null?void 0:N.defaultProps)==null?void 0:d.closeDelay)!=null?h:0,closeOnClick:(p=(m=N==null?void 0:N.defaultProps)==null?void 0:m.closeOnClick)!=null?p:!0,closeOnMouseDown:(E=(b=N==null?void 0:N.defaultProps)==null?void 0:b.closeOnMouseDown)!=null?E:!1},S=K(I,e),[y,O]=se(S,["class","children","id","label","opened","defaultOpened","inline","disabled","placement","offset","withArrow","arrowSize","arrowPadding","openDelay","closeDelay","closeOnClick","closeOnMouseDown","onOpen","onClose"]),[M,j]=Me(!!y.defaultOpened),[H,X]=Me(!1);let ne,oe,ae,D;const Re=()=>y.opened!==void 0,Y=()=>Re()?!!y.opened:M(),Pe=()=>ie(y.class,N9,e_()),we=()=>ie(qT,t_());let C;const R=Gr(()=>y.children),fe=Xe(()=>{let ze=R();for(;$n(ze);)ze=ze();return ze});async function $e(){var ze,xn,Zn;const cr=fe();if(!cr||!ne)return;const nn=[Q1(y.offset)];y.inline&&nn.push(K5()),nn.push(X1()),nn.push(Z1()),y.withArrow&&oe&&nn.push(U5({element:oe,padding:y.arrowPadding})),nn.push(G5());const{x:kn,y:Fn,placement:rn,middlewareData:Hn}=await nc(cr,ne,{placement:y.placement,middleware:nn});if(!ne)return;const ur=(ze=Hn.hide)==null?void 0:ze.referenceHidden;if(Object.assign(ne.style,{left:`${Math.round(kn)}px`,top:`${Math.round(Fn)}px`,visibility:ur?"hidden":"visible"}),!oe)return;const Vr=(xn=Hn.arrow)==null?void 0:xn.x,Jn=(Zn=Hn.arrow)==null?void 0:Zn.y,$={top:"bottom",right:"left",bottom:"top",left:"right"}[rn.split("-")[0]],A=`${y.arrowSize?Math.round(y.arrowSize/2)*-1:-4}px`;Object.assign(oe.style,{left:Vr!=null?`${Math.round(Vr)}px`:"",top:Jn!=null?`${Math.round(Jn)}px`:"",right:"",bottom:"",[$]:A})}const vt=()=>{var ze;Re()||j(!0),(ze=y.onOpen)==null||ze.call(y),$e()},Je=()=>{var ze;Re()||j(!1),(ze=y.onClose)==null||ze.call(y)},et=()=>{y.disabled||(ae=window.setTimeout(vt,y.openDelay))},st=()=>{ae&&window.clearTimeout(ae),D=window.setTimeout(Je,y.closeDelay)},Et=()=>{y.closeOnClick&&st()},ee=()=>{y.closeOnMouseDown&&st()},ve=ze=>{Y()&&ze.key==="Escape"&&st()},qe=()=>{const ze=fe();ze.addEventListener("mouseenter",et),ze.addEventListener("focus",et),ze.addEventListener("click",Et),ze.addEventListener("mousedown",ee),ze.addEventListener("mouseleave",st),ze.addEventListener("blur",st)},gt=()=>{const ze=fe();ze.removeEventListener("mouseenter",et),ze.removeEventListener("focus",et),ze.removeEventListener("click",Et),ze.removeEventListener("mousedown",ee),ze.removeEventListener("mouseleave",st),ze.removeEventListener("blur",st)},Kn=()=>{ne&&(document.addEventListener("keydown",ve),C=tc(fe(),ne,$e))},Ir=()=>{document.removeEventListener("keydown",ve),C==null||C(),X(!1)};return Gn(()=>{qe()}),Dt(()=>{gt(),window.clearTimeout(ae),window.clearTimeout(D)}),tn(()=>{Y()?(X(!0),y.id&&fe().setAttribute("aria-describedby",y.id)):fe().removeAttribute("aria-describedby")}),[fe,T(Ae,{get when(){return H()},get children(){return T(go,{get children(){return T(po,{get name(){return zo.scale},appear:!0,onBeforeEnter:$e,onAfterEnter:Kn,onAfterExit:Ir,get children(){return T(Ae,{get when(){return Y()},get children(){return T(De,K({ref(ze){const xn=ne;typeof xn=="function"?xn(ze):ne=ze},role:"tooltip",get id(){return y.id},get class(){return Pe()},get __baseStyle(){return N==null?void 0:N.baseStyle}},O,{get children(){return[Sr(()=>y.label),T(Ae,{get when(){return y.withArrow},get children(){return T(De,{ref(ze){const xn=oe;typeof xn=="function"?xn(ze):oe=ze},get class(){return we()},get boxSize(){return y.arrowSize}})}})]}}))}})}})}})}})]}YT.toString=()=>ge(N9);function XT(e={}){const t=`disclosure-${lr()}`,[n,r]=Me(e.defaultIsOpen||!1),i=()=>e.isOpen!==void 0,o=()=>i()?!!e.isOpen:n(),a=()=>{var f;i()||r(!1),(f=e.onClose)==null||f.call(e)},s=()=>{var f;i()||r(!0),(f=e.onOpen)==null||f.call(e)};return{isControlled:i,isOpen:o,onOpen:s,onClose:a,onToggle:()=>{o()?a():s()},triggerProps:()=>({"aria-expanded":o(),"aria-controls":t}),disclosureProps:()=>({id:t,hidden:!o()})}}var cu=(e,t,n)=>{const r=t.trim().split(".").reduce((i,o)=>i?i[o]:void 0,e);return r!==void 0?r:n},QT=(e,t,n=/{{(.*?)}}/g)=>e.replace(n,(r,i)=>cu(t,i,"")),ZT=(e={},t=navigator.language in e?navigator.language:Object.keys(e)[0])=>{const[n,r]=Me(t),[i,o]=An(e);return[(l,c,u)=>{const f=cu(i[n()],l,u||"");return typeof f=="function"?f(c):typeof f=="string"?QT(f,c||{}):f},{add(l,c){o(l,u=>Object.assign(u||{},c))},locale:l=>l?r(l):n(),dict:l=>cu(i,l)}]},I9=Ct({}),id=()=>$t(I9),JT=function e(t,n){var r=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,i=/(^[ ]*|[ ]*$)/g,o=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,a=/^0x[0-9a-f]+$/i,s=/^0/,l=function(v){return e.insensitive&&(""+v).toLowerCase()||""+v},c=l(t).replace(i,"")||"",u=l(n).replace(i,"")||"",f=c.replace(r,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),g=u.replace(r,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),d=parseInt(c.match(a),16)||f.length!==1&&c.match(o)&&Date.parse(c),h=parseInt(u.match(a),16)||d&&u.match(o)&&Date.parse(u)||null,m,p;if(h){if(d<h)return-1;if(d>h)return 1}for(var b=0,E=Math.max(f.length,g.length);b<E;b++){if(m=!(f[b]||"").match(s)&&parseFloat(f[b])||f[b]||0,p=!(g[b]||"").match(s)&&parseFloat(g[b])||g[b]||0,isNaN(m)!==isNaN(p))return isNaN(m)?1:-1;if(typeof m!=typeof p&&(m+="",p+=""),m<p)return-1;if(m>p)return 1}return 0};const Kf=mo(JT);function ey(e){const[t,n]=Me(),r=e!=null&&e.throw?(g,d)=>{throw n(g instanceof Error?g:new Error(d)),g}:(g,d)=>{n(g instanceof Error?g:new Error(d))},i=e!=null&&e.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),o=e!=null&&e.prefix?`${e.prefix}.`:"",a=new Map,s=new Proxy({},{get(g,d){let h=a.get(d);h||(h=Me(void 0,{equals:!1}),a.set(d,h)),h[0]();const m=i.reduce((p,b)=>{if(p!==null||!b)return p;try{return b.getItem(`${o}${d}`)}catch(E){return r(E,`Error reading ${o}${d} from ${b.name}`),null}},null);return m!==null&&(e!=null&&e.deserializer)?e.deserializer(m,d,e==null?void 0:e.options):m}}),l=(g,d,h)=>{const m=e!=null&&e.serializer?e.serializer(d,g,h??(e==null?void 0:e.options)):d,p=`${o}${g}`;i.forEach(E=>{try{E.getItem(p)!==m&&E.setItem(p,m)}catch(v){r(v,`Error setting ${o}${g} to ${m} in ${E.name}`)}});const b=a.get(g);b&&b[1]()},c=g=>i.forEach(d=>{try{d.removeItem(`${o}${g}`)}catch(h){r(h,`Error removing ${o}${g} from ${d.name}`)}}),u=()=>i.forEach(g=>{var d;try{(d=g==null?void 0:g.clear)==null||d.call(g)}catch(h){r(h,`Error clearing ${g.name}`)}}),f=()=>{const g={},d=(h,m)=>{if(!g.hasOwnProperty(h)){const p=m&&(e!=null&&e.deserializer)?e.deserializer(m,h,e==null?void 0:e.options):m;p&&(g[h]=p)}};return i.forEach(h=>{if(typeof h.getAll=="function"){let m;try{m=h.getAll()}catch(p){r(p,`Error getting all values from in ${h.name}`)}for(const p of m)d(p,m[p])}else{let m=0,p;try{for(;p=h.key(m++);)g.hasOwnProperty(p)||d(p,h.getItem(p))}catch(b){r(b,`Error getting all values from ${h.name}`)}}}),g};return(e==null?void 0:e.sync)!==!1&&Gn(()=>{const g=d=>{var h;let m=!1;i.forEach(p=>{try{p!==d.storageArea&&d.key&&d.newValue!==p.getItem(d.key)&&(d.newValue?p.setItem(d.key,d.newValue):p.removeItem(d.key),m=!0)}catch(b){r(b,`Error synching api ${p.name} from storage event (${d.key}=${d.newValue})`)}}),m&&d.key&&((h=a.get(d.key))==null||h[1]())};"addEventListener"in globalThis?(globalThis.addEventListener("storage",g),Dt(()=>globalThis.removeEventListener("storage",g))):(i.forEach(d=>{var h;return(h=d.addEventListener)==null?void 0:h.call(d,"storage",g)}),Dt(()=>i.forEach(d=>{var h;return(h=d.removeEventListener)==null?void 0:h.call(d,"storage",g)})))}),[s,l,{clear:u,error:t,remove:c,toJSON:f}]}function R9(e,t,n){var r;const[i,o]=Me(),a=n!=null&&n.api?Array.isArray(n.api)?n.api:[n.api]:[globalThis.localStorage].filter(Boolean),s=n!=null&&n.prefix?`${n.prefix}.`:"",l=()=>a.reduce((g,d)=>{if(g!==null||!d)return g;let h=null;try{h=d.getItem(`${s}${e}`)}catch(m){if(o(m instanceof Error?m:new Error(`Error reading ${s}${e} from ${d.name}`)),n!=null&&n.throw)throw m}return h!==null&&(n!=null&&n.deserializer)?n.deserializer(h+"",e,n==null?void 0:n.options):h},null),[c,u]=Me((r=l())!=null?r:t,n);tn(()=>{const g=c(),d=n!=null&&n.serializer?n.serializer(g,e,n==null?void 0:n.options):g+"",h=`${s}${e}`;try{g===null?a.forEach(m=>m.getItem(h)!==null&&m.removeItem(h)):a.forEach(m=>m.getItem(h)!==d&&m.setItem(h,d,n==null?void 0:n.options))}catch(m){if(o(m instanceof Error?m:new Error(`Error ${g===null?"removing":"writing"} value`)),n!=null&&n.throw)throw m}});const f=()=>{const g=l();u(g)};return(n==null?void 0:n.sync)!==!1&&Gn(()=>{const g=d=>{let h=!1;try{a.forEach(m=>{m!==d.storageArea&&d.key&&d.newValue!==m.getItem(d.key)&&(d.newValue?m.setItem(d.key,d.newValue):m.removeItem(d.key),h=!0)})}catch(m){if(o(m instanceof Error?m:new Error("Error synching api after event")),n!=null&&n.throw)throw m}h&&f()};"addEventListener"in globalThis?(globalThis.addEventListener("storage",g),Dt(()=>globalThis.removeEventListener("storage",g))):(a.forEach(d=>{var h;return(h=d.addEventListener)==null?void 0:h.call(d,"storage",g)}),Dt(()=>a.forEach(d=>{var h;return(h=d.removeEventListener)==null?void 0:h.call(d,"storage",g)})))}),[Object.assign(c,{error:i}),u,f]}var ty=ey,ny=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),Wf=e=>{if(!e)return"";let t="";for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];t+=r instanceof Date?`; ${n}=${r.toUTCString()}`:typeof r=="boolean"?`; ${n}`:`; ${n}=${r}`}return t},Xn=ny({_cookies:[globalThis.document,"cookie"],getItem:e=>{var t,n;return(n=(t=Xn._cookies[0][Xn._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))==null?void 0:t.pop())!=null?n:null},setItem:(e,t,n)=>{var r;const i=Xn.getItem(e);Xn._cookies[0][Xn._cookies[1]]=`${e}=${t}${Wf(n)}`;const o=Object.assign(new Event("storage"),{key:e,oldValue:i,newValue:t,url:(r=globalThis.document)==null?void 0:r.URL,storageArea:Xn});window.dispatchEvent(o)},removeItem:e=>{Xn._cookies[0][Xn._cookies[1]]=`${e}=deleted${Wf({expires:new Date(0)})}`},key:e=>{let t=null,n=0;return Xn._cookies[0][Xn._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(r,i)=>(!t&&i&&n++===e&&(t=i),"")),t},get length(){let e=0;return Xn._cookies[0][Xn._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}});let Hr="";const ry=e=>{Hr=e,Hr.startsWith("/")||(Hr="/"+Hr),Hr.endsWith("/")&&(Hr=Hr.slice(0,-1))};window.ALIST.base_path&&ry(window.ALIST.base_path);let Ur="/";window.ALIST.api&&(Ur=window.ALIST.api);Ur==="/"&&(Ur=location.origin+Hr);Ur.endsWith("/")&&(Ur=Ur.slice(0,-1));const gB=window.ALIST.monaco_cdn||"https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs";function iy(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const Yo=iy(),oy=Bt("<div><div></div></div>"),ay=Bt("<div></div>"),nl={render:e=>{ps.show({render:t=>T(De,{get css(){return{display:"flex",backdropFilter:"blur(8px)",backgroundColor:OS(),boxShadow:"$md",borderRadius:"$lg",padding:"$3"}},get children(){return[(()=>{const n=oy.cloneNode(!0),r=n.firstChild;return n.style.setProperty("flexGrow","1"),n.style.setProperty("display","flex"),n.style.setProperty("alignItems","center"),r.style.setProperty("margin","auto"),jr(r,e),n})(),(()=>{const n=ay.cloneNode(!0);return n.style.setProperty("display","inline-block"),n.style.setProperty("padding","5px"),jr(n,T(cc,{style:{float:"right"},right:"$2",top:"$2",get onClick(){return t.close}})),n})()]}})})},success:e=>{ps.show({status:"success",title:Rs(e)})},error:e=>{ps.show({status:"danger",title:Rs(e)})},info:e=>{ps.show({status:"info",title:Rs(e)})},warning:e=>{ps.show({status:"warning",title:Rs(e)})}},sy=(e,t)=>(e.endsWith("/")&&(e=e.slice(0,-1)),e.startsWith("/")||(e="/"+e),t&&e==="/"?"":e),ly=(...e)=>new URL(_r(...e),location.origin).pathname,_r=(...e)=>e.join("/").replace(/\/{2,}/g,"/"),uu=(...e)=>_r(Hr,...e),M9=e=>{const t=e.replace(Hr,"");return t.startsWith("/")?t:"/"+t},mB=e=>e.split("/").pop(),od=e=>e.split("/").slice(0,-1).join("/"),Ns=(e,t)=>e.split("/").map(n=>t?encodeURIComponent(n):n.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23").replace(/ /g,"%20")).join("/"),L9=e=>e.split(".").pop()??"",pB=e=>e.split(".").slice(0,-1).join(".");function xB(e){const t=e.split("/").filter(Boolean),n=t.length;return r=>{const i=r.split("/").filter(Boolean);if(i.length-n<0)return null;let a=n?"":"/";for(let s=0;s<n;s++){const l=t[s],c=i[s];if(l.localeCompare(c,void 0,{sensitivity:"base"})!==0)return null;a+=`/${c}`}return a}}const bB=e=>JSON.parse(JSON.stringify(e)),Vf=e=>{const t=[];for(const n in e)t.push({key:n,value:e[n]});return t};function P9(e,t){return function(){return e.apply(t,arguments)}}const{toString:D9}=Object.prototype,{getPrototypeOf:ad}=Object,sd=(e=>t=>{const n=D9.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$i=e=>(e=e.toLowerCase(),t=>sd(t)===e),bc=e=>t=>typeof t===e,{isArray:bl}=Array,du=bc("undefined");function cy(e){return e!==null&&!du(e)&&e.constructor!==null&&!du(e.constructor)&&Qa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $9=$i("ArrayBuffer");function uy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&$9(e.buffer),t}const dy=bc("string"),Qa=bc("function"),B9=bc("number"),F9=e=>e!==null&&typeof e=="object",fy=e=>e===!0||e===!1,d1=e=>{if(sd(e)!=="object")return!1;const t=ad(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},hy=$i("Date"),gy=$i("File"),my=$i("Blob"),py=$i("FileList"),xy=e=>F9(e)&&Qa(e.pipe),by=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||D9.call(e)===t||Qa(e.toString)&&e.toString()===t)},_y=$i("URLSearchParams"),vy=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _c(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),bl(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function fu(){const e={},t=(n,r)=>{d1(e[r])&&d1(n)?e[r]=fu(e[r],n):d1(n)?e[r]=fu({},n):bl(n)?e[r]=n.slice():e[r]=n};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&_c(arguments[n],t);return e}const Ey=(e,t,n,{allOwnKeys:r}={})=>(_c(t,(i,o)=>{n&&Qa(i)?e[o]=P9(i,n):e[o]=i},{allOwnKeys:r}),e),Ty=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),yy=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Sy=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&ad(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Cy=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},wy=e=>{if(!e)return null;if(bl(e))return e;let t=e.length;if(!B9(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ay=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ad(Uint8Array)),ky=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Oy=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ny=$i("HTMLFormElement"),Iy=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),qf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ry=$i("RegExp"),H9=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_c(n,(i,o)=>{t(i,o,e)!==!1&&(r[o]=i)}),Object.defineProperties(e,r)},My=e=>{H9(e,(t,n)=>{const r=e[n];if(Qa(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")})}})},Ly=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return bl(e)?r(e):r(String(e).split(t)),n},Py=()=>{},Dy=(e,t)=>(e=+e,Number.isFinite(e)?e:t),te={isArray:bl,isArrayBuffer:$9,isBuffer:cy,isFormData:by,isArrayBufferView:uy,isString:dy,isNumber:B9,isBoolean:fy,isObject:F9,isPlainObject:d1,isUndefined:du,isDate:hy,isFile:gy,isBlob:my,isRegExp:Ry,isFunction:Qa,isStream:xy,isURLSearchParams:_y,isTypedArray:Ay,isFileList:py,forEach:_c,merge:fu,extend:Ey,trim:vy,stripBOM:Ty,inherits:yy,toFlatObject:Sy,kindOf:sd,kindOfTest:$i,endsWith:Cy,toArray:wy,forEachEntry:ky,matchAll:Oy,isHTMLForm:Ny,hasOwnProperty:qf,hasOwnProp:qf,reduceDescriptors:H9,freezeMethods:My,toObjectSet:Ly,toCamelCase:Iy,noop:Py,toFiniteNumber:Dy};function bt(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}te.inherits(bt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const z9=bt.prototype,U9={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{U9[e]={value:e}});Object.defineProperties(bt,U9);Object.defineProperty(z9,"isAxiosError",{value:!0});bt.from=(e,t,n,r,i,o)=>{const a=Object.create(z9);return te.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),bt.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var $y=typeof self=="object"?self.FormData:window.FormData;const By=mo($y);function hu(e){return te.isPlainObject(e)||te.isArray(e)}function j9(e){return te.endsWith(e,"[]")?e.slice(0,-2):e}function Yf(e,t,n){return e?e.concat(t).map(function(i,o){return i=j9(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Fy(e){return te.isArray(e)&&!e.some(hu)}const Hy=te.toFlatObject(te,{},null,function(t){return/^is[A-Z]/.test(t)});function zy(e){return e&&te.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function vc(e,t,n){if(!te.isObject(e))throw new TypeError("target must be an object");t=t||new(By||FormData),n=te.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!te.isUndefined(p[m])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&zy(t);if(!te.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(te.isDate(h))return h.toISOString();if(!l&&te.isBlob(h))throw new bt("Blob is not supported. Use a Buffer instead.");return te.isArrayBuffer(h)||te.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,m,p){let b=h;if(h&&!p&&typeof h=="object"){if(te.endsWith(m,"{}"))m=r?m:m.slice(0,-2),h=JSON.stringify(h);else if(te.isArray(h)&&Fy(h)||te.isFileList(h)||te.endsWith(m,"[]")&&(b=te.toArray(h)))return m=j9(m),b.forEach(function(v,N){!(te.isUndefined(v)||v===null)&&t.append(a===!0?Yf([m],N,o):a===null?m:m+"[]",c(v))}),!1}return hu(h)?!0:(t.append(Yf(p,m,o),c(h)),!1)}const f=[],g=Object.assign(Hy,{defaultVisitor:u,convertValue:c,isVisitable:hu});function d(h,m){if(!te.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(h),te.forEach(h,function(b,E){(!(te.isUndefined(b)||b===null)&&i.call(t,b,te.isString(E)?E.trim():E,m,g))===!0&&d(b,m?m.concat(E):[E])}),f.pop()}}if(!te.isObject(e))throw new TypeError("data must be an object");return d(e),t}function Xf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ld(e,t){this._pairs=[],e&&vc(e,this,t)}const G9=ld.prototype;G9.append=function(t,n){this._pairs.push([t,n])};G9.toString=function(t){const n=t?function(r){return t.call(this,r,Xf)}:Xf;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Uy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function K9(e,t,n){if(!t)return e;const r=n&&n.encode||Uy,i=n&&n.serialize;let o;if(i?o=i(t,n):o=te.isURLSearchParams(t)?t.toString():new ld(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Qf{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){te.forEach(this.handlers,function(r){r!==null&&t(r)})}}const W9={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jy=typeof URLSearchParams<"u"?URLSearchParams:ld,Gy=FormData,Ky=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Ni={isBrowser:!0,classes:{URLSearchParams:jy,FormData:Gy,Blob},isStandardBrowserEnv:Ky,protocols:["http","https","file","blob","url","data"]};function Wy(e,t){return vc(e,new Ni.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Ni.isNode&&te.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Vy(e){return te.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function qy(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function V9(e){function t(n,r,i,o){let a=n[o++];const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&te.isArray(i)?i.length:a,l?(te.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!te.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&te.isArray(i[a])&&(i[a]=qy(i[a])),!s)}if(te.isFormData(e)&&te.isFunction(e.entries)){const n={};return te.forEachEntry(e,(r,i)=>{t(Vy(r),i,n,0)}),n}return null}function Yy(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new bt("Request failed with status code "+n.status,[bt.ERR_BAD_REQUEST,bt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Xy=Ni.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,a,s){const l=[];l.push(n+"="+encodeURIComponent(r)),te.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),te.isString(o)&&l.push("path="+o),te.isString(a)&&l.push("domain="+a),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Qy(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Zy(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function q9(e,t){return e&&!Qy(t)?Zy(e,t):t}const Jy=Ni.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=te.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function _l(e,t,n){bt.call(this,e??"canceled",bt.ERR_CANCELED,t,n),this.name="CanceledError"}te.inherits(_l,bt,{__CANCEL__:!0});function eS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const tS=te.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),nS=e=>{const t={};let n,r,i;return e&&e.split(`
21
+ `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&tS[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Zf=Symbol("internals"),Y9=Symbol("defaults");function Is(e){return e&&String(e).trim().toLowerCase()}function f1(e){return e===!1||e==null?e:te.isArray(e)?e.map(f1):String(e)}function rS(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function Jf(e,t,n,r){if(te.isFunction(r))return r.call(this,t,n);if(te.isString(t)){if(te.isString(r))return t.indexOf(r)!==-1;if(te.isRegExp(r))return r.test(t)}}function iS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function oS(e,t){const n=te.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}function xs(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}function vr(e,t){e&&this.set(e),this[Y9]=t||null}Object.assign(vr.prototype,{set:function(e,t,n){const r=this;function i(o,a,s){const l=Is(a);if(!l)throw new Error("header name must be a non-empty string");const c=xs(r,l);c&&s!==!0&&(r[c]===!1||s===!1)||(r[c||a]=f1(o))}return te.isPlainObject(e)?te.forEach(e,(o,a)=>{i(o,a,t)}):i(t,e,n),this},get:function(e,t){if(e=Is(e),!e)return;const n=xs(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return rS(r);if(te.isFunction(t))return t.call(this,r,n);if(te.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=Is(e),e){const n=xs(this,e);return!!(n&&(!t||Jf(this,this[n],n,t)))}return!1},delete:function(e,t){const n=this;let r=!1;function i(o){if(o=Is(o),o){const a=xs(n,o);a&&(!t||Jf(n,n[a],a,t))&&(delete n[a],r=!0)}}return te.isArray(e)?e.forEach(i):i(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return te.forEach(this,(r,i)=>{const o=xs(n,i);if(o){t[o]=f1(r),delete t[i];return}const a=e?iS(i):String(i).trim();a!==i&&delete t[i],t[a]=f1(r),n[a]=!0}),this},toJSON:function(e){const t=Object.create(null);return te.forEach(Object.assign({},this[Y9]||null,this),(n,r)=>{n==null||n===!1||(t[r]=e&&te.isArray(n)?n.join(", "):n)}),t}});Object.assign(vr,{from:function(e){return te.isString(e)?new this(nS(e)):e instanceof this?e:new this(e)},accessor:function(e){const n=(this[Zf]=this[Zf]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Is(o);n[a]||(oS(r,o),n[a]=!0)}return te.isArray(e)?e.forEach(i):i(e),this}});vr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);te.freezeMethods(vr.prototype);te.freezeMethods(vr);function aS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];a||(a=c),n[i]=l,r[i]=c;let f=o,g=0;for(;f!==i;)g+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const d=u&&c-u;return d?Math.round(g*1e3/d):void 0}}function eh(e,t){let n=0;const r=aS(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s),c=o<=a;n=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&c?(a-o)/l:void 0};u[t?"download":"upload"]=!0,e(u)}}function th(e){return new Promise(function(n,r){let i=e.data;const o=vr.from(e.headers).normalize(),a=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}te.isFormData(i)&&Ni.isStandardBrowserEnv&&o.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(d+":"+h))}const u=q9(e.baseURL,e.url);c.open(e.method.toUpperCase(),K9(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function f(){if(!c)return;const d=vr.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),m={data:!a||a==="text"||a==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:d,config:e,request:c};Yy(function(b){n(b),l()},function(b){r(b),l()},m),c=null}if("onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(r(new bt("Request aborted",bt.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new bt("Network Error",bt.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||W9;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new bt(h,m.clarifyTimeoutError?bt.ETIMEDOUT:bt.ECONNABORTED,e,c)),c=null},Ni.isStandardBrowserEnv){const d=(e.withCredentials||Jy(u))&&e.xsrfCookieName&&Xy.read(e.xsrfCookieName);d&&o.set(e.xsrfHeaderName,d)}i===void 0&&o.setContentType(null),"setRequestHeader"in c&&te.forEach(o.toJSON(),function(h,m){c.setRequestHeader(m,h)}),te.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&a!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",eh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",eh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=d=>{c&&(r(!d||d.type?new _l(null,e,c):d),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const g=eS(u);if(g&&Ni.protocols.indexOf(g)===-1){r(new bt("Unsupported protocol "+g+":",bt.ERR_BAD_REQUEST,e));return}c.send(i||null)})}const nh={http:th,xhr:th},rh={getAdapter:e=>{if(te.isString(e)){const t=nh[e];if(!e)throw Error(te.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!te.isFunction(e))throw new TypeError("adapter is not a function");return e},adapters:nh},sS={"Content-Type":"application/x-www-form-urlencoded"};function lS(){let e;return typeof XMLHttpRequest<"u"?e=rh.getAdapter("xhr"):typeof process<"u"&&te.kindOf(process)==="process"&&(e=rh.getAdapter("http")),e}function cS(e,t,n){if(te.isString(e))try{return(t||JSON.parse)(e),te.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Za={transitional:W9,adapter:lS(),transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=te.isObject(t);if(o&&te.isHTMLForm(t)&&(t=new FormData(t)),te.isFormData(t))return i&&i?JSON.stringify(V9(t)):t;if(te.isArrayBuffer(t)||te.isBuffer(t)||te.isStream(t)||te.isFile(t)||te.isBlob(t))return t;if(te.isArrayBufferView(t))return t.buffer;if(te.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Wy(t,this.formSerializer).toString();if((s=te.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return vc(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),cS(t)):t}],transformResponse:[function(t){const n=this.transitional||Za.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&te.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?bt.from(s,bt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ni.classes.FormData,Blob:Ni.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};te.forEach(["delete","get","head"],function(t){Za.headers[t]={}});te.forEach(["post","put","patch"],function(t){Za.headers[t]=te.merge(sS)});function i0(e,t){const n=this||Za,r=t||n,i=vr.from(r.headers);let o=r.data;return te.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function X9(e){return!!(e&&e.__CANCEL__)}function o0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _l}function ih(e){return o0(e),e.headers=vr.from(e.headers),e.data=i0.call(e,e.transformRequest),(e.adapter||Za.adapter)(e).then(function(r){return o0(e),r.data=i0.call(e,e.transformResponse,r),r.headers=vr.from(r.headers),r},function(r){return X9(r)||(o0(e),r&&r.response&&(r.response.data=i0.call(e,e.transformResponse,r.response),r.response.headers=vr.from(r.response.headers))),Promise.reject(r)})}function rl(e,t){t=t||{};const n={};function r(c,u){return te.isPlainObject(c)&&te.isPlainObject(u)?te.merge(c,u):te.isPlainObject(u)?te.merge({},u):te.isArray(u)?u.slice():u}function i(c){if(te.isUndefined(t[c])){if(!te.isUndefined(e[c]))return r(void 0,e[c])}else return r(e[c],t[c])}function o(c){if(!te.isUndefined(t[c]))return r(void 0,t[c])}function a(c){if(te.isUndefined(t[c])){if(!te.isUndefined(e[c]))return r(void 0,e[c])}else return r(void 0,t[c])}function s(c){if(c in t)return r(e[c],t[c]);if(c in e)return r(void 0,e[c])}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return te.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const f=l[u]||i,g=f(u);te.isUndefined(g)&&f!==s||(n[u]=g)}),n}const Q9="1.1.3",cd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const oh={};cd.transitional=function(t,n,r){function i(o,a){return"[Axios v"+Q9+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new bt(i(a," has been removed"+(n?" in "+n:"")),bt.ERR_DEPRECATED);return n&&!oh[a]&&(oh[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function uS(e,t,n){if(typeof e!="object")throw new bt("options must be an object",bt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new bt("option "+o+" must be "+l,bt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new bt("Unknown option "+o,bt.ERR_BAD_OPTION)}}const gu={assertOptions:uS,validators:cd},Wi=gu.validators;class Xo{constructor(t){this.defaults=t,this.interceptors={request:new Qf,response:new Qf}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=rl(this.defaults,n);const{transitional:r,paramsSerializer:i}=n;r!==void 0&&gu.assertOptions(r,{silentJSONParsing:Wi.transitional(Wi.boolean),forcedJSONParsing:Wi.transitional(Wi.boolean),clarifyTimeoutError:Wi.transitional(Wi.boolean)},!1),i!==void 0&&gu.assertOptions(i,{encode:Wi.function,serialize:Wi.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();const o=n.headers&&te.merge(n.headers.common,n.headers[n.method]);o&&te.forEach(["delete","get","head","post","put","patch","common"],function(h){delete n.headers[h]}),n.headers=new vr(n.headers,o);const a=[];let s=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(s=s&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const l=[];this.interceptors.response.forEach(function(h){l.push(h.fulfilled,h.rejected)});let c,u=0,f;if(!s){const d=[ih.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,l),f=d.length,c=Promise.resolve(n);u<f;)c=c.then(d[u++],d[u++]);return c}f=a.length;let g=n;for(u=0;u<f;){const d=a[u++],h=a[u++];try{g=d(g)}catch(m){h.call(this,m);break}}try{c=ih.call(this,g)}catch(d){return Promise.reject(d)}for(u=0,f=l.length;u<f;)c=c.then(l[u++],l[u++]);return c}getUri(t){t=rl(this.defaults,t);const n=q9(t.baseURL,t.url);return K9(n,t.params,t.paramsSerializer)}}te.forEach(["delete","get","head","options"],function(t){Xo.prototype[t]=function(n,r){return this.request(rl(r||{},{method:t,url:n,data:(r||{}).data}))}});te.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(rl(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Xo.prototype[t]=n(),Xo.prototype[t+"Form"]=n(!0)});class ud{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new _l(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ud(function(i){t=i}),cancel:t}}}function dS(e){return function(n){return e.apply(null,n)}}function fS(e){return te.isObject(e)&&e.isAxiosError===!0}function Z9(e){const t=new Xo(e),n=P9(Xo.prototype.request,t);return te.extend(n,Xo.prototype,t,{allOwnKeys:!0}),te.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Z9(rl(e,i))},n}const En=Z9(Za);En.Axios=Xo;En.CanceledError=_l;En.CancelToken=ud;En.isCancel=X9;En.VERSION=Q9;En.toFormData=vc;En.AxiosError=bt;En.Cancel=En.CanceledError;En.all=function(t){return Promise.all(t)};En.spread=dS;En.isAxiosError=fS;En.formToJSON=e=>V9(te.isHTMLForm(e)?new FormData(e):e);const hS=["alist_client_id","remember-pwd","username","password","device_key"];function gS(){const e={};hS.forEach(t=>{const n=localStorage.getItem(t);n&&(e[t]=n)}),SS(),localStorage.clear(),Object.entries(e).forEach(([t,n])=>{localStorage.setItem(t,n)}),sessionStorage.clear()}const mS="modulepreload",pS=function(e){return window.__dynamic_base__+"/"+e},ah={},In=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=pS(o),o in ah)return;ah[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!r)for(let u=i.length-1;u>=0;u--){const f=i[u];if(f.href===o&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":mS,a||(c.as="script",c.crossOrigin=""),c.href=o,document.head.appendChild(c),a)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})},J9="čeština",_B={lang:J9},ex="English",vB={lang:ex},tx="Inglés",EB={lang:tx},nx="日本語",TB={lang:nx},rx="한국어",yB={lang:rx},ix="Português (Brasil)",SB={lang:ix},ox="Русский",CB={lang:ox},ax="ภาษาไทย",wB={lang:ax},sx="简体中文",AB={lang:sx},lx="繁體中文",kB={lang:lx},sh=Object.assign({"/src/lang/cs-CZ/index.json":J9,"/src/lang/en/index.json":ex,"/src/lang/es-ES/index.json":tx,"/src/lang/ja-JP/index.json":nx,"/src/lang/ko-KR/index.json":rx,"/src/lang/pt-BR/index.json":ix,"/src/lang/ru-RU/index.json":ox,"/src/lang/th-TH/index.json":ax,"/src/lang/zh-CN/index.json":sx,"/src/lang/zh-TW/index.json":lx}),il=[];for(const e in sh){const t=e.split("/")[3];il.push({code:t,lang:sh[e]})}var t5,n5;const xS=((t5=il.find(e=>e.code.toLowerCase()===navigator.language.toLowerCase()))==null?void 0:t5.code)||((n5=il.find(e=>e.code.toLowerCase().split("-")[0]===navigator.language.toLowerCase().split("-")[0]))==null?void 0:n5.code)||"en";let ao=localStorage.getItem("lang")??"";(!ao||!il.find(e=>e.code===ao))&&(ao=xS);const dd={},lh=Object.assign({"/src/lang/cs-CZ/entry.ts":()=>In(()=>import("./entry-1f8750d3.js"),[]),"/src/lang/en/entry.ts":()=>In(()=>import("./entry-2dcf102b.js"),[]),"/src/lang/es-ES/entry.ts":()=>In(()=>import("./entry-ff0ec710.js"),[]),"/src/lang/ja-JP/entry.ts":()=>In(()=>import("./entry-c149acf6.js"),[]),"/src/lang/ko-KR/entry.ts":()=>In(()=>import("./entry-c9079448.js"),[]),"/src/lang/pt-BR/entry.ts":()=>In(()=>import("./entry-89a5b151.js"),[]),"/src/lang/ru-RU/entry.ts":()=>In(()=>import("./entry-fe0e94b2.js"),[]),"/src/lang/th-TH/entry.ts":()=>In(()=>import("./entry-40c0efae.js"),[]),"/src/lang/zh-CN/entry.ts":()=>In(()=>import("./entry-125255d4.js"),[]),"/src/lang/zh-TW/entry.ts":()=>In(()=>import("./entry-e8ead902.js"),[])});for(const e in lh){const t=e.split("/")[3];dd[t]=lh[e]}const mu=new Set,cx=ZT({},ao),[OB,bS]=Me(ao),ch=(e,t,n)=>{const[r]=cx,i=r(e,t,n);if(!i){let o=e.lastIndexOf(".");return o===e.length-1&&(o=e.lastIndexOf(".",o-1)),e.slice(o+1).split("_").join(" ")}return i},yn=[];for(let e=0;e<256;++e)yn.push((e+256).toString(16).slice(1));function _S(e,t=0){return(yn[e[t+0]]+yn[e[t+1]]+yn[e[t+2]]+yn[e[t+3]]+"-"+yn[e[t+4]]+yn[e[t+5]]+"-"+yn[e[t+6]]+yn[e[t+7]]+"-"+yn[e[t+8]]+yn[e[t+9]]+"-"+yn[e[t+10]]+yn[e[t+11]]+yn[e[t+12]]+yn[e[t+13]]+yn[e[t+14]]+yn[e[t+15]]).toLowerCase()}let a0;const vS=new Uint8Array(16);function ES(){if(!a0){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");a0=crypto.getRandomValues.bind(crypto)}return a0(vS)}const TS=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),uh={randomUUID:TS};function yS(e,t,n){var i;if(uh.randomUUID&&!t&&!e)return uh.randomUUID();e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??ES();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let o=0;o<16;++o)t[n+o]=r[o];return t}return _S(r)}const dh="alist_client_id";function fh(){let e=localStorage.getItem(dh);return e||(e=yS(),localStorage.setItem(dh,e)),e}const We=En.create({baseURL:Ur+"/api",headers:{"Content-Type":"application/json;charset=utf-8"},withCredentials:!1});We.interceptors.request.use(e=>(e.headers?e.headers["Client-Id"]=fh():e.headers={"Client-Id":fh()},e),e=>(console.log("Error: "+e.message),Promise.reject(e)));We.interceptors.response.use(e=>e.data,e=>{var t,n,r,i;if(console.error(e),((t=e.response)==null?void 0:t.status)===403){const o=((r=(n=e.response)==null?void 0:n.data)==null?void 0:r.message)||e.message;if(o.includes("too many active devices"))return nl.error(ch("session.too_many_devices")),{code:403,message:o};if(o.includes("session inactive"))return nl.error(ch("session.session_inactive")),gS(),Yo.emit("to",`/@login?redirect=${encodeURIComponent(window.location.pathname)}`),{code:403,message:o}}return{code:En.isCancel(e)?-1:(i=e.response)==null?void 0:i.status,message:e.message}});We.defaults.headers.common.Authorization=localStorage.getItem("token")||"";const SS=e=>{We.defaults.headers.common.Authorization=e??"",localStorage.setItem("token",e??"")},Rs=e=>!e||e.length===0?"":e.charAt(0).toUpperCase()+e.slice(1),NB=(e,t)=>e.startsWith(t)?e.slice(t.length):e;function IB(e){if(!e)return"-";const t=1024;return e<t?e+"B":e<Math.pow(t,2)?(e/t).toFixed(2)+"K":e<Math.pow(t,3)?(e/Math.pow(t,2)).toFixed(2)+"M":e<Math.pow(t,4)?(e/Math.pow(t,3)).toFixed(2)+"G":(e/Math.pow(t,4)).toFixed(2)+"T"}const bs=e=>e<10?"0"+e:e;function RB(e){const t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,i=t.getDate(),o=t.getHours(),a=t.getMinutes(),s=t.getSeconds();return n+"-"+bs(r)+"-"+bs(i)+" "+bs(o)+":"+bs(a)+":"+bs(s)}const MB=(e,t)=>{let n=e;if(n=n.replace("$name",t.name),t.ts){const r=new URL(t.d_url),i=Date.now();r.searchParams.set("alist_ts",i.toString()),t.d_url=r.toString()}return n=n.replace(/\$[eb_]*url/,r=>{const i=r.match(/[eb]/g);let o=t.raw_url;if(i)for(const a of i.reverse())a==="e"?o=encodeURIComponent(o):a==="b"&&(o=window.btoa(o));return o}),n=n.replace(/\$[eb_]*durl/,r=>{const i=r.match(/[eb]/g);let o=t.d_url;if(i)for(const a of i.reverse())a==="e"?o=encodeURIComponent(o):a==="b"&&(o=window.btoa(o));return o}),n},CS=e=>{e=e.trim();let t=e.replace(/^\/(.*)\/([a-z]*)$/,"$1"),n=e.replace(/^\/(.*)\/([a-z]*)$/,"$2");return new RegExp(t,n)},wS={"+":"-","/":"_","=":"."},AS=e=>e.replace(/[+/=]/g,t=>wS[t]),LB=e=>AS(window.btoa(e)),kS=(e,t)=>new TextDecoder(t).decode(e),Ec=(e,t,n,r=!0,i=!0,o)=>{if(e.code===200)o&&nl.success(e.message),t==null||t(e.data);else{if(i&&nl.error(e.message),r&&e.code===401){location.pathname==="/@manage"?Yo.emit("to","/"):Yo.emit("to",`/@login?redirect=${encodeURIComponent(location.pathname)}`);return}n==null||n(e.message,e.code)}},hh=(e,t,n,r=!0)=>Ec(e,t,n,r,!1),gh=(e,t,n)=>Ec(e,t,n,!1,!1),PB=(e,t,n,r=!0,i=!0)=>Ec(e,t,n,r,i,!0),ux=()=>"rgba(132,133,141,0.18)",OS=()=>ac("$whiteAlpha10","$blackAlpha11")(),NS=(e="/",t="",n)=>We.post("/fs/get",{path:e,password:t},{cancelToken:n}),IS=(e="/",t="",n=1,r=0,i=!1,o)=>We.post("/fs/list",{path:e,password:t,page:n,per_page:r,refresh:i},{cancelToken:o}),DB=(e="/",t="",n=!1)=>{const r=e;return We.post("/fs/dirs",{path:r,password:t,force_root:n})},$B=e=>We.post("/fs/mkdir",{path:e}),BB=(e,t,n)=>We.post("/fs/rename",{path:e,name:t,overwrite:n}),FB=(e,t)=>We.post("/fs/batch_rename",{src_dir:e,rename_objects:t}),HB=(e,t,n,r)=>We.post("/fs/move",{src_dir:e,dst_dir:t,names:n,overwrite:r}),zB=(e,t,n)=>We.post("/fs/recursive_move",{src_dir:e,dst_dir:t,conflict_policy:n}),UB=(e,t,n,r)=>We.post("/fs/copy",{src_dir:e,dst_dir:t,names:n,overwrite:r}),jB=(e,t)=>We.post("/fs/remove",{dir:e,names:t}),GB=e=>We.post("/fs/remove_empty_directory",{src_dir:e}),KB=(e,t,n)=>We.put("/fs/put",void 0,{headers:{"File-Path":encodeURIComponent(e),Password:t,Overwrite:n.toString()}}),WB=(e="/",t="",n="",r=!1,i)=>We.post("/fs/archive/meta",{path:e,password:t,archive_pass:n,refresh:r},{cancelToken:i}),VB=(e="/",t="",n="",r="/",i=1,o=0,a=!1,s)=>We.post("/fs/archive/list",{path:e,password:t,archive_pass:n,inner_path:r,page:i,per_page:o,refresh:a},{cancelToken:s}),qB=(e,t,n,r="",i="/",o=!0,a=!1)=>We.post("/fs/archive/decompress",{src_dir:e,dst_dir:t,name:n,archive_pass:r,inner_path:i,cache_full:o,put_into_new_dir:a}),YB=(e,t,n="")=>{const r=t.action==="archive"?"archive":"thaw";return We.post("/fs/other",{path:e,password:n,method:r,data:t})},XB=(e,t,n,r)=>We.post("/fs/add_offline_download",{path:e,urls:t,tool:n,delete_policy:r}),dx=async(e,t=!0)=>{try{const n=await En.get(e,{responseType:"blob",params:t?{alist_ts:new Date().getTime()}:void 0}),r=await n.data.arrayBuffer(),i=n.headers["content-type"];return{content:r,contentType:i}}catch(n){return t?await dx(e,!1):{content:`Failed to fetch ${e}: ${n}`,contentType:""}}},QB=async(e,t,n="",r=0,i=1,o=100)=>We.post("/fs/search",{parent:e,keywords:t,scope:r,page:i,per_page:o,password:n}),ZB=async(e=["/"],t=-1)=>We.post("/admin/index/build",{paths:e,max_depth:t}),JB=async(e=[],t=-1)=>We.post("/admin/index/update",{paths:e,max_depth:t}),eF=()=>We.get("/label/list"),tF=(e,t,n)=>We.post("/admin/label/create",{name:e,description:t,bg_color:n}),nF=(e,t,n,r)=>We.post("/admin/label/update",{id:e,name:t,description:n,bg_color:r}),rF=e=>We.get(`/label/get?id=${e}`),iF=e=>We.get(`/label_file_binding/get_file_by_label?label_id=${e}`),oF=(e,t)=>{const n={items:t.map(r=>({path:r.path||"",name:r.name,isDir:r.is_dir,labelIdList:e.map(i=>parseInt(i)),size:r.size||0,type:r.type||0,modified:r.modified||"2025-08-15T00:00:00Z",created:r.created||"2025-08-15T00:00:00Z",sign:r.sign||"",thumb:r.thumb||"",hashInfoStr:r.hashinfo||""}))};return We.post("/admin/label_file_binding/create_batch",n)},aF=()=>We.get("/admin/role/list"),sF=e=>We.get("/admin/role/get",{params:{id:e}}),lF=e=>We.get(`/permission/${e}`),cF=e=>We.post("/permission",e),uF=e=>We.put("/permission",e),dF=e=>We.post("/admin/role/create",e),fF=e=>We.post("/admin/role/update",e),hF=e=>We.post(`/admin/role/delete?id=${e}`),gF=e=>We.post("/auth/register",e),mF=()=>We.get("/me/sessions"),pF=e=>We.post("/me/sessions/evict",{session_id:e}),xF=()=>We.get("/admin/session/list"),bF=e=>We.post("/admin/session/evict",{session_id:e}),_F=e=>We.post("/admin/session/clean",e||{});var fx={exports:{}},s0={exports:{}},mh;function RS(){return mh||(mh=1,function(e){(function(t){var n={bytesToHex:function(o){return r(o)},hexToBytes:function(o){if(o.length%2===1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return o.indexOf("0x")===0&&(o=o.slice(2)),o.match(/../g).map(function(a){return parseInt(a,16)})}};function r(o){return o.map(function(a){return i(a.toString(16),2)}).join("")}function i(o,a){return o.length>a?o:Array(a-o.length+1).join("0")+o}e.exports?e.exports=n:t.convertHex=n})(It)}(s0)),s0.exports}var l0={exports:{}},ph;function MS(){return ph||(ph=1,function(e){(function(t){var n={bytesToString:function(r){return r.map(function(i){return String.fromCharCode(i)}).join("")},stringToBytes:function(r){return r.split("").map(function(i){return i.charCodeAt(0)})}};n.UTF8={bytesToString:function(r){return decodeURIComponent(escape(n.bytesToString(r)))},stringToBytes:function(r){return n.stringToBytes(unescape(encodeURIComponent(r)))}},e.exports?e.exports=n:t.convertString=n})(It)}(l0)),l0.exports}(function(e){(function(t){var n={};e.exports?(n.bytesToHex=RS().bytesToHex,n.convertString=MS(),e.exports=l):(n.bytesToHex=t.convertHex.bytesToHex,n.convertString=t.convertString,t.sha256=l);var r=[];(function(){function c(d){for(var h=Math.sqrt(d),m=2;m<=h;m++)if(!(d%m))return!1;return!0}function u(d){return(d-(d|0))*4294967296|0}for(var f=2,g=0;g<64;)c(f)&&(r[g]=u(Math.pow(f,1/3)),g++),f++})();var i=function(c){for(var u=[],f=0,g=0;f<c.length;f++,g+=8)u[g>>>5]|=c[f]<<24-g%32;return u},o=function(c){for(var u=[],f=0;f<c.length*32;f+=8)u.push(c[f>>>5]>>>24-f%32&255);return u},a=[],s=function(c,u,f){for(var g=c[0],d=c[1],h=c[2],m=c[3],p=c[4],b=c[5],E=c[6],v=c[7],N=0;N<64;N++){if(N<16)a[N]=u[f+N]|0;else{var I=a[N-15],S=(I<<25|I>>>7)^(I<<14|I>>>18)^I>>>3,y=a[N-2],O=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;a[N]=S+a[N-7]+O+a[N-16]}var M=p&b^~p&E,j=g&d^g&h^d&h,H=(g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22),X=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),ne=v+X+M+r[N]+a[N],oe=H+j;v=E,E=b,b=p,p=m+ne|0,m=h,h=d,d=g,g=ne+oe|0}c[0]=c[0]+g|0,c[1]=c[1]+d|0,c[2]=c[2]+h|0,c[3]=c[3]+m|0,c[4]=c[4]+p|0,c[5]=c[5]+b|0,c[6]=c[6]+E|0,c[7]=c[7]+v|0};function l(c,u){c.constructor===String&&(c=n.convertString.UTF8.stringToBytes(c));var f=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],g=i(c),d=c.length*8;g[d>>5]|=128<<24-d%32,g[(d+64>>9<<4)+15]=d;for(var h=0;h<g.length;h+=16)s(f,g,h);var m=o(f);return u&&u.asBytes?m:u&&u.asString?n.convertString.bytesToString(m):n.bytesToHex(m)}l.x2=function(c,u){return l(l(c,{asBytes:!0}),u)}})(It)})(fx);var LS=fx.exports;const vF=mo(LS),fd={};document.addEventListener("keydown",e=>{fd[e.key]=!0});document.addEventListener("keyup",e=>{delete fd[e.key]});const[hd,PS,{remove:EF,clear:TF,toJSON:yF}]=ty(),DS=[{key:"aria2_rpc_url",default:"http://localhost:6800/jsonrpc"},{key:"aria2_rpc_secret",default:""},{key:"global_default_layout",default:"list",type:"select",options:["list","grid","image"]},{key:"show_folder_in_image_view",default:"top",type:"select",options:["top","bottom","none"]},{key:"show_sidebar",default:"none",type:"select",options:["none","visible"]},{key:"position_of_header_navbar",default:"static",type:"select",options:["static","sticky","only_navbar_sticky"]},{key:"grid_item_size",default:"90",type:"number"},{key:"list_item_filename_overflow",default:"ellipsis",type:"select",options:["ellipsis","scrollable","multi_line"]},{key:"open_item_on_checkbox",default:"direct",type:"select",options:["direct","dblclick","disable_while_checked"]}];for(const e of DS)hd[e.key]||PS(e.key,e.default);var cn=(e=>(e[e.Initial=0]="Initial",e[e.FetchingObj=1]="FetchingObj",e[e.FetchingObjs=2]="FetchingObjs",e[e.FetchingMore=3]="FetchingMore",e[e.Folder=4]="Folder",e[e.File=5]="File",e[e.NeedPassword=6]="NeedPassword",e))(cn||{});const[sr,hn]=An({obj:{},raw_url:"",related:[],objs:[],total:0,readme:"",header:"",provider:"",state:0,err:""}),$S=e=>{an.start=-1,an.end=-1,hn("objs",e),hn("obj","is_dir",!0)},ft={set:e=>{hn(e)},setObj:e=>{hn("obj",e)},setRawUrl:e=>{hn("raw_url",e)},setProvider:e=>{hn("provider",e)},setObjs:$S,setTotal:e=>{hn("total",e)},setReadme:e=>hn("readme",e),setHeader:e=>hn("header",e),setRelated:e=>hn("related",e),setWrite:e=>hn("write",e),setState:e=>hn("state",e),setErr:e=>hn("err",e)},SF=(e,t)=>{Kf.insensitive=!0,hn("objs",N5(n=>n.sort((r,i)=>(t?-1:1)*Kf(r[e],i[e]))))},BS=e=>{hn("objs",N5(t=>t.push(...e)))},an={start:-1,end:-1},CF=(e,t,n)=>{var r,i;if(n&&FS(!1),fd.Shift){if(an.start<0){for(let c=0;c<Math.max(e+1,sr.objs.length-e);++c)if((r=sr.objs[e-c])!=null&&r.selected){an.start=e-c,an.end=e-c;break}else if((i=sr.objs[e+c])!=null&&i.selected){an.start=e+c,an.end=e+c;break}}const o=Math.abs(an.end-an.start),a=Math.sign(an.end-an.start);for(let c=1;c<=o;++c)hn("objs",an.start+a*c,{selected:!1});const s=Math.abs(e-an.start),l=Math.sign(e-an.start);for(let c=0;c<=s;++c)hn("objs",an.start+l*c,{selected:!0});an.end=e}else hn("objs",e,{selected:t}),t?(an.start=e,an.end=e):(an.end=-1,an.start=-1)},FS=e=>{hn("objs",{},t=>({selected:e}))},pu=()=>sr.objs.filter(e=>e.selected),wF=()=>sr.objs.length===ol(),AF=()=>ol()===1,kF=()=>ol()>0,OF=()=>ol()>0&&ol()<sr.objs.length,ol=Xe(()=>pu().length),[Tc,HS]=Me(location.pathname),Us=(()=>{try{return JSON.parse(localStorage.getItem("layoutRecord")||"{}")}catch{return{}}})();Yo.on("pathname",e=>HS(e));const NF=()=>M9(Tc()),[zS,hx]=Me(Us[Tc()]||hd.global_default_layout),IF=()=>{const e=Us[Tc()];return hx(e||hd.global_default_layout),zS()},RF=e=>{Us[Tc()]=e,console.log("setLayout",Us),localStorage.setItem("layoutRecord",JSON.stringify(Us)),hx(e)},[US,jS]=R9("checkbox-open","false"),GS=()=>US()==="true",MF=()=>{jS(GS()?"false":"true")},[xh,KS]=Me(Xn.getItem("browser-password")||""),LF=e=>{KS(e),Xn.setItem("browser-password",e)},xu={},WS=e=>{Object.keys(e).forEach(n=>{xu[n]=e[n]});const t=xu.version||"Unknown";console.log(`%c AList %c ${t} %c https://github.com/alist-org/alist`,"color: #fff; background: #5f5f5f","color: #fff; background: #70c6be","")},aa=e=>xu[e]??"",PF=e=>{const t=aa(e);return t==="true"||t==="1"},VS=(e,t)=>{const n=aa(e);return n?Number(n):t??0},Qo=()=>window.ALIST.main_color?window.ALIST.main_color:aa("main_color")||"#1890ff";let Kl={};const c0=e=>{if(!Kl[e])try{Kl[e]=JSON.parse(aa(e))}catch(t){console.error(`failed parse ${e}, use default`,t),Kl[e]={}}return Kl[e]},gx=(e,t)=>{const n=L9(e).toLowerCase(),r=[];for(const i in c0(t))i.startsWith("/")?CS(i).test(n)&&r.push(...Vf(c0(t)[i])):i.split(",").includes(n)&&r.push(...Vf(c0(t)[i]));return r},DF=e=>gx(e,"external_previews"),$F=e=>gx(e,"iframe_previews"),qS=()=>({type:aa("pagination_type")||"all",size:VS("default_page_size",30)});let u0;const bh=()=>(u0||(u0=aa("hide_files").split(/\n/g).filter(e=>!!e.trim()).map(e=>{e=e.trim();let t=e.replace(/^\/(.*)\/([a-z]*)$/,"$1"),n=e.replace(/^\/(.*)\/([a-z]*)$/,"$2");return new RegExp(t,n)})),u0);var Uo=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.FOLDER=1]="FOLDER",e[e.VIDEO=2]="VIDEO",e[e.AUDIO=3]="AUDIO",e[e.TEXT=4]="TEXT",e[e.IMAGE=5]="IMAGE",e))(Uo||{}),YS=(e=>(e[e.GENERAL=0]="GENERAL",e[e.GUEST=1]="GUEST",e[e.ADMIN=2]="ADMIN",e))(YS||{});const XS=["see_hides","access_without_password","offline_download","write","rename","move","copy","delete","webdav_read","webdav_manage","ftp_read","ftp_manage","read_archives","decompress"],Qi={is_guest:e=>e.role.includes(1),is_admin:e=>e.role.includes(2),is_general:e=>!e.role.includes(1)&&!e.role.includes(2),hasAccess:(e,t)=>t===1?Qi.is_guest(e)||Qi.is_general(e)||Qi.is_admin(e):t===0?Qi.is_general(e)||Qi.is_admin(e):t===2?Qi.is_admin(e):!0,can:(e,t,n)=>{if(Qi.is_admin(e))return!0;if(!n)return e.permissions.some(i=>(i.permission>>t&1)===1);const r=e.permissions.filter(i=>n.startsWith(i.path)).sort((i,o)=>o.path.length-i.path.length)[0];return r?(r.permission>>t&1)===1:!1}},[Oa,QS]=Me({}),BF=e=>{const t=Oa();return Qi.can(t,XS.indexOf(e))},mx=(e,t,n)=>{const[r,i]=Me(n??!1);return[r,async(...o)=>{i(!0);const a=await e(...o);return(!t||a.code!==401)&&i(!1),a}]},bu=(e,t)=>mx(e,!0,t),ZS=(e,t,n)=>{const[r,i]=Me(n);return[r,async(o,...a)=>{i(()=>o);const s=await e(o,...a);return(!t||s.code!==401)&&i(void 0),s}]},FF=(e,t)=>ZS(e,!0,t),Ja=()=>{const e=P8(),t=D8(),n=B8(),r=Xe(()=>M9(t.pathname));return{to:(i,o,a)=>{!o&&i.startsWith("/")&&(i=uu(i)),$1(decodeURIComponent(i)),e(i,a)},replace:i=>{const o=Ns(_r(od(t.pathname),i),!0);$1(decodeURIComponent(o)),e(o)},pushHref:i=>{const o=Oa().permissions||[],a=r();if(o.some(c=>c.path===a))return Ns(_r(a,i));const l=o.find(c=>{const u=a.replace(/^\/|\/$/g,""),f=c.path.replace(/^\/|\/$/g,"");return u.startsWith(f)});return Ns(_r(l?l.path:r(),i))},back:()=>{e(-1)},forward:()=>{e(1)},pathname:r,search:t.search,searchParams:t.query,setSearchParams:(i,o)=>{const a=mn(()=>I8(t.search,i));e(uu(r())+a,{scroll:!1,...o,resolve:!0})},params:n}},vl=()=>{const[e]=id();return(t,n,r)=>{const i=e(t,n,r);if(!i){let o=t.lastIndexOf(".");o===t.length-1&&(o=t.lastIndexOf(".",o-1));const a=t.slice(o+1);return Rs(a).split("_").join(" ")}return i}},d0={};let Ei=1;const JS=()=>Ei,D1=e=>{Ei=e},eC=()=>{D1(1)},HF=()=>{const{pathname:e,to:t,searchParams:n}=Ja(),r=d=>{if(d==="/")return"/";const h=Oa().permissions||[];for(const b of h)if(d.startsWith(b.path))return d;let m=h[0],p=0;for(const b of h){const E=d.replace(/^\/|\/$/g,""),v=b.path.replace(/^\/|\/$/g,"");E.includes(v)&&v.length>p&&(m=b,p=v.length)}return m&&p>0?_r(m.path,d):h.length>0?_r(h[0].path,d):d},[,i]=bu(d=>NS(d,xh(),new En.CancelToken(h=>{}))),o=qS();o.type==="pagination"&&D1(parseInt(n.page)||1);const[,a]=bu(d=>{const h={index:d==null?void 0:d.index,size:d==null?void 0:d.size},m=r((d==null?void 0:d.path)||"/");return IS(m,xh(),h.index,h.size,d==null?void 0:d.force,new En.CancelToken(p=>{}))}),s=(d,h=!0,m=!1)=>{m&&(d=_r(e(),d)),h?d0[d]=!0:delete d0[d]},l=(d,h,m,p)=>{ft.setErr("");const b=Oa().permissions||[];if(d==="/"){if(b.some(E=>E.path==="/"))return u("/",h,void 0,void 0,p);if(b.length>0){const E=b.map(v=>({name:v.path.split("/").filter(Boolean).pop()||v.path,size:0,is_dir:!0,modified:new Date().toISOString(),created:new Date().toISOString(),sign:"",thumb:"",type:1,path:v.path,selected:!1}));ft.setObjs(E),ft.setTotal(E.length),ft.setState(cn.Folder)}else ft.setState(cn.Initial);return Promise.resolve()}return px(d,h)?fC(d,h):d0[d]?u(d,h,void 0,void 0,p):c(d,h)},c=async(d,h)=>{ft.setState(cn.FetchingObj);const m=await i(d);hh(m,p=>{ft.setObj(p),ft.setProvider(p.provider),p.is_dir?(s(d),u(d,h)):(ft.setReadme(p.readme),ft.setHeader(p.header),ft.setRelated(p.related??[]),ft.setRawUrl(p.raw_url),ft.setState(cn.File))},f)},u=async(d,h,m,p=!1,b)=>{m||(m=o.size),m!==void 0&&o.type==="all"&&(m=void 0),ft.setState(p?cn.FetchingMore:cn.FetchingObjs);const E=await a({path:d,index:h,size:m,force:b});hh(E,v=>{D1(h??1),p?BS(v.content):(ft.setObjs(v.content??[]),ft.setTotal(v.total)),ft.setReadme(v.readme),ft.setHeader(v.header),ft.setWrite(v.write),ft.setProvider(v.provider),s(d),ft.setState(cn.Folder)},f)},f=(d,h)=>{const m=e(),p=Oa().permissions||[];if(h===403){if(m==="/"||p.length===0){const b=p.map(E=>({name:E.path.split("/").filter(Boolean).pop()||E.path,size:0,is_dir:!0,modified:new Date().toISOString(),created:new Date().toISOString(),sign:"",thumb:"",type:1,path:E.path,selected:!1}));ft.setObjs(b),ft.setTotal(b.length),ft.setState(cn.Folder),t("/")}else ft.setState(cn.NeedPassword);return}if(d.includes("storage not found")||d.includes("please add a storage")){ft.setErr(d),ft.setState(cn.Initial);return}if(m==="/"){if(p.length>0){const b=p.map(E=>({name:E.path.split("/").filter(Boolean).pop()||E.path,size:0,is_dir:!0,modified:new Date().toISOString(),created:new Date().toISOString(),sign:"",thumb:"",type:1,path:E.path,selected:!1}));ft.setObjs(b),ft.setTotal(b.length),ft.setState(cn.Folder);return}}else{const b=p.find(E=>{const v=m.replace(/^\//,""),N=E.path.replace(/^\//,"");return v.includes(N)||N.includes(v)});if(b){const E=m.split("/").filter(Boolean),v=b.path.split("/").filter(Boolean);if(E.some(N=>v.includes(N))){t(b.path);return}}}ft.setErr(d),ft.setState(cn.Initial)},g=()=>u(e(),Ei+1,void 0,!0);return{handlePathChange:l,setPathAs:s,refresh:async(d,h)=>{const m=e(),p=window.scrollY;if($1(m,Ei),o.type==="load_more"||o.type==="auto_load_more"){const b=Ei;for(eC(),await l(m,Ei,d,h);Ei<b;)await g()}else await l(m,Ei,d,h);window.scroll({top:p,behavior:"smooth"})},loadMore:g,allLoaded:()=>Ei>=Math.ceil(sr.total/o.size)}},tC=(e,t,n="direct",r)=>{n!=="preview"&&(e=_r("/",e)),e=sy(e,!0);let i=`${e}/${t.name}`;i=Ns(i,r);let o=Ur,a=n==="direct"?"/d":"/p";n==="preview"&&(a="",Ur.startsWith(location.origin)||(o=location.origin));let s=`${o}${a}${i}`;return n!=="preview"&&t.sign&&(s+=`?sign=${t.sign}`),s},gd=()=>{const{pathname:e}=Ja(),t=(r,i,o)=>{const a=sr.state!==cn.File?e():od(e());return tC(a,r,i,o)},n=(r,i)=>t(r,"direct",i);return{getLinkByObj:t,rawLink:n,proxyLink:(r,i)=>t(r,"proxy",i),previewPage:(r,i)=>t(r,"preview",i),currentObjLink:r=>n(sr.obj,r)}},nC=()=>{const{previewPage:e,rawLink:t}=gd(),n=r=>pu().filter(i=>!i.is_dir).map(i=>t(i,r));return{rawLinks:n,previewPagesText:()=>pu().map(r=>e(r,!0)).join(`
22
+ `),rawLinksText:r=>n(r).join(`
23
+ `)}},zF=()=>{const{copy:e}=uC(),{previewPagesText:t,rawLinksText:n}=nC(),{currentObjLink:r}=gd();return{copySelectedPreviewPage:()=>{e(t())},copySelectedRawLink:i=>{e(n(i))},copyCurrentRawLink:i=>{e(r(i))}}};var rC=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}},iC=rC,_h={"text/plain":"Text","text/html":"Url",default:"Text"},oC="Copy to clipboard: #{key}, Enter";function aC(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function sC(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=iC(),o=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(u){if(u.stopPropagation(),t.format)if(u.preventDefault(),typeof u.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=_h[t.format]||_h.default;window.clipboardData.setData(f,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=aC("message"in t?t.message:oC),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var lC=sC;const cC=mo(lC),uC=()=>{const e=vl(),{pathname:t}=Ja();return{copy:n=>{cC(n),nl.success(e("global.copied"))},isHide:n=>{const r=bh();for(const i of r)if(i.test(_r(t(),n.name)))return!0;return!1},isHidePath:n=>{const r=bh();for(const i of r)if(i.test(n))return!0;return!1}}};function UF(){const{proxyLink:e}=gd();return s5("",async()=>dx(e(sr.obj,!0)))}function dC(e){const t=typeof e=="string";return{isString:t,text:(r="utf-8")=>e?t?e:kS(e,r):""}}const al=new Map,vh=()=>new Promise(e=>setTimeout(e)),yc=(e,t)=>{const n=e.split("?")[0];return t&&t>1?`${n}?page=${t}`:n},jF=(e,t)=>{const n=JSON.parse(JSON.stringify(sr));if(![cn.FetchingMore,cn.Folder,cn.File].includes(sr.state))return;sr.state===cn.FetchingMore&&(n.state=cn.Folder);const r=yc(e,t),i={obj:n,page:t??JS(),scroll:window.scrollY};al.set(r,i),console.log(`record history: [${r}]`)},fC=async(e,t)=>{const n=yc(e,t);if(!al.has(n))return;const r=al.get(n);D1(r.page),ft.setState(cn.Initial),await vh(),ft.set(JSON.parse(JSON.stringify(r.obj))),await vh(),window.scroll({top:r.scroll})},px=(e,t)=>{const n=yc(e,t);return al.has(n)},$1=(e,t)=>{const n=yc(e,t);px(e,t)&&(al.delete(n),console.log(`clear history: [${n}]`))};document.addEventListener("click",e=>{let n=e.target.closest("a"),r=n==null?void 0:n.getAttribute("href");r&&$1(decodeURIComponent(r))},!0);const md=()=>T(Ya,{h:"100vh",get children(){return T(xl,{thickness:"4px",speed:"0.65s",emptyColor:"$neutral4",get color(){return Qo()},size:"xl"})}}),hC=e=>{const t=K({py:"$8",size:"xl",thickness:4},e);return T(Ya,{ref(n){const r=e.ref;typeof r=="function"?r(n):e.ref=n},h:"$full",w:"$full",get py(){return t.py},get children(){return T(xl,{get thickness(){return`${t.thickness}px`},speed:"0.65s",emptyColor:"$neutral4",get color(){return Qo()},get size(){return t.size}})}})},GF=e=>T(Ae,{get when(){return!e.loading},get fallback(){return T(hC,{})},get children(){return e.children}}),KF=e=>T(Ya,{w:"$full",h:"$full",get children(){return T(xl,K({get color(){return Qo()}},e))}}),gC=Bt('<svg fill="currentColor" stroke-width="0" xmlns="http://www.w3.org/2000/svg"></svg>'),mC=Bt("<title></title>");function _e(e,t){return(()=>{const n=gC.cloneNode(!0);return y1(n,()=>e.a,!0,!0),y1(n,t,!0,!0),jr(n,(()=>{const r=Sr(()=>!!t.title,!0);return()=>r()&&(()=>{const i=mC.cloneNode(!0);return jr(i,()=>t.title),i})()})()),Dn(r=>{const i=e.a.stroke,o={...t.style,overflow:"visible",color:t.color},a=t.size||"1em",s=t.size||"1em",l=e.c;return i!==r._v$&&at(n,"stroke",r._v$=i),r._v$2=x5(n,o,r._v$2),a!==r._v$3&&at(n,"height",r._v$3=a),s!==r._v$4&&at(n,"width",r._v$4=s),l!==r._v$5&&(n.innerHTML=r._v$5=l),r},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0}),n})()}function pC(e){return _e({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M12 19V5M5 12l7-7 7 7"/>'},e)}function WF(e){return _e({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"/>'},e)}function VF(e){return _e({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/>'},e)}function qF(e){return _e({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 00-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0020 4.77 5.07 5.07 0 0019.91 1S18.73.65 16 2.48a13.38 13.38 0 00-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 005 4.77a5.44 5.44 0 00-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 009 18.13V22"/>'},e)}function YF(e){return _e({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0110 0v4"/>'},e)}function XF(e){return _e({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M15 3h4a2 2 0 012 2v14a2 2 0 01-2 2h-4M10 17l5-5-5-5M15 12H3"/>'},e)}function xC(e){return _e({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/>'},e)}function bC(e){return _e({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/>'},e)}function QF(e){return _e({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2"/><circle cx="12" cy="7" r="4"/>'},e)}const _C=()=>{const{toggleColorMode:e}=am(),t=ac({size:"$8",component:xC,p:"$0_5"},{size:"$8",component:bC,p:"$0_5"});return T(oa,{cursor:"pointer",get boxSize(){return t().size},get as(){return t().component},onClick:e,get p(){return t().p}})};function ZF(e){return _e({a:{viewBox:"0 0 512 512"},c:'<path d="M408 480H184a72 72 0 01-72-72V184a72 72 0 0172-72h224a72 72 0 0172 72v224a72 72 0 01-72 72z"/><path d="M160 80h235.88A72.12 72.12 0 00328 32H104a72 72 0 00-72 72v224a72.12 72.12 0 0048 67.88V160a80 80 0 0180-80z"/>'},e)}function JF(e){return _e({a:{viewBox:"0 0 512 512"},c:'<path d="M336 376V272H191a16 16 0 010-32h145V136a56.06 56.06 0 00-56-56H88a56.06 56.06 0 00-56 56v240a56.06 56.06 0 0056 56h192a56.06 56.06 0 0056-56zM425.37 272l-52.68 52.69a16 16 0 0022.62 22.62l80-80a16 16 0 000-22.62l-80-80a16 16 0 00-22.62 22.62L425.37 240H336v32z"/>'},e)}function eH(e){return _e({a:{viewBox:"0 0 512 512"},c:'<path d="M63.28 202a15.29 15.29 0 01-7.7-2 14.84 14.84 0 01-5.52-20.46C69.34 147.36 128 72.25 256 72.25c55.47 0 104.12 14.57 144.53 43.29 33.26 23.57 51.9 50.25 60.78 63.1a14.79 14.79 0 01-4 20.79 15.52 15.52 0 01-21.24-4C420 172.32 371 102 256 102c-112.25 0-163 64.71-179.53 92.46A15 15 0 0163.28 202z"/><path d="M320.49 496a15.31 15.31 0 01-3.79-.43c-92.85-23-127.52-115.82-128.93-119.68l-.22-.85c-.76-2.68-19.39-66.33 9.21-103.61 13.11-17 33.05-25.72 59.38-25.72 24.48 0 42.14 7.61 54.28 23.36 10 12.86 14 28.72 17.87 44 8.13 31.82 14 48.53 47.79 50.25 14.84.75 24.59-7.93 30.12-15.32 14.95-20.15 17.55-53 6.28-82C398 228.57 346.61 158 256 158c-38.68 0-74.22 12.43-102.72 35.79-23.59 19.35-42.28 46.67-51.28 74.75-16.69 52.28 5.2 134.46 5.41 135.21A14.83 14.83 0 0196.54 422a15.39 15.39 0 01-18.74-10.6c-1-3.75-24.38-91.4-5.1-151.82 21-65.47 85.81-131.47 183.33-131.47 45.07 0 87.65 15.32 123.19 44.25 27.52 22.5 50 52.72 61.76 82.93 14.95 38.57 10.94 81.86-10.19 110.14-14.08 18.86-34.13 28.72-56.34 27.65-57.86-2.9-68.26-43.29-75.84-72.75-7.8-30.22-12.79-44.79-42.58-44.79-16.36 0-27.85 4.5-35 13.82-9.75 12.75-10.51 32.68-9.43 47.14a152.44 152.44 0 005.1 29.79c2.38 6 33.37 82 107.59 100.39a14.88 14.88 0 0111 18.11 15.36 15.36 0 01-14.8 11.21z"/><path d="M201.31 489.14a15.5 15.5 0 01-11.16-4.71c-37.16-39-58.18-82.61-66.09-137.14V347c-4.44-36.1 2.06-87.21 33.91-122.35 23.51-25.93 56.56-39.11 98.06-39.11 49.08 0 87.65 22.82 111.7 65.89 17.45 31.29 20.91 62.47 21 63.75a15.07 15.07 0 01-13.65 16.4 15.26 15.26 0 01-16.79-13.29A154 154 0 00340.43 265c-18.64-32.89-47-49.61-84.51-49.61-32.4 0-57.75 9.75-75.19 29-25.14 27.75-30 70.5-26.55 98.78 6.93 48.22 25.46 86.58 58.18 120.86a14.7 14.7 0 01-.76 21.11 15.44 15.44 0 01-10.29 4z"/><path d="M372.5 446.18c-32.5 0-60.13-9-82.24-26.89-44.42-35.79-49.4-94.08-49.62-96.54a15.27 15.27 0 0130.45-2.36c.11.86 4.55 48.54 38.79 76 20.26 16.18 47.34 22.6 80.71 18.85a15.2 15.2 0 0116.91 13.18 14.92 14.92 0 01-13.44 16.5 187 187 0 01-21.56 1.26zM398.18 48.79C385.5 40.54 340.54 16 256 16c-88.74 0-133.81 27.11-143.78 34a11.59 11.59 0 00-1.84 1.4.36.36 0 01-.22.1 14.87 14.87 0 00-5.09 11.15 15.06 15.06 0 0015.31 14.85 15.56 15.56 0 008.88-2.79c.43-.32 39.22-28.82 126.77-28.82S382.58 74.29 383 74.5a15.25 15.25 0 009.21 3 15.06 15.06 0 0015.29-14.89 14.9 14.9 0 00-9.32-13.82z"/>'},e)}function vC(e){return _e({a:{viewBox:"0 0 512 512"},c:'<path d="M496 152a56 56 0 00-56-56H220.11a23.89 23.89 0 01-13.31-4L179 73.41A55.77 55.77 0 00147.89 64H72a56 56 0 00-56 56v48a8 8 0 008 8h464a8 8 0 008-8zM16 392a56 56 0 0056 56h368a56 56 0 0056-56V216a8 8 0 00-8-8H24a8 8 0 00-8 8z"/>'},e)}function tH(e){return _e({a:{viewBox:"0 0 512 512"},c:'<path d="M261.56 101.28a8 8 0 00-11.06 0L66.4 277.15a8 8 0 00-2.47 5.79L63.9 448a32 32 0 0032 32H192a16 16 0 0016-16V328a8 8 0 018-8h80a8 8 0 018 8v136a16 16 0 0016 16h96.06a32 32 0 0032-32V282.94a8 8 0 00-2.47-5.79z"/><path d="M490.91 244.15l-74.8-71.56V64a16 16 0 00-16-16h-48a16 16 0 00-16 16v32l-57.92-55.38C272.77 35.14 264.71 32 256 32c-8.68 0-16.72 3.14-22.14 8.63l-212.7 203.5c-6.22 6-7 15.87-1.34 22.37A16 16 0 0043 267.56L250.5 69.28a8 8 0 0111.06 0l207.52 198.28a16 16 0 0022.59-.44c6.14-6.36 5.63-16.86-.76-22.97z"/>'},e)}function EC(e){return _e({a:{viewBox:"0 0 512 512"},c:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M48 112h288M192 64v48M272 448l96-224 96 224M301.5 384h133M281.3 112S257 206 199 277 80 384 80 384"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M256 336s-35-27-72-75-56-85-56-85"/>'},e)}function nH(e){return _e({a:{viewBox:"0 0 512 512"},c:'<path fill="none" stroke="currentColor" stroke-miterlimit="10" stroke-width="32" d="M421.83 293.82A144 144 0 00218.18 90.17M353.94 225.94a48 48 0 00-67.88-67.88"/><path stroke-linecap="round" stroke-miterlimit="10" stroke-width="32" d="M192 464v-48M90.18 421.82l33.94-33.94M48 320h48"/><path fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32" d="M286.06 158.06L172.92 271.19a32 32 0 01-45.25 0L105 248.57a32 32 0 010-45.26L218.18 90.17M421.83 293.82L308.69 407a32 32 0 01-45.26 0l-22.62-22.63a32 32 0 010-45.26l113.13-113.17M139.6 169.98l67.88 67.89M275.36 305.75l67.89 67.88"/>'},e)}const[TC,Eh]=Me(!1),yC=e=>{const[,{locale:t,add:n}]=id(),r=async i=>{mu.has(i)||(Eh(!0),n(i,(await dd[i]()).default),Eh(!1),mu.add(i)),t(i),bS(i),localStorage.setItem("lang",i)};return[T(pE,{get children(){return[T(Op,K({cursor:"pointer"},e)),T(Cp,{get children(){return T(Ka,{each:il,children:(i,o)=>T(Ap,{onSelect:()=>{r(i.code)},get children(){return i.lang}})})}})]}}),T(Ae,{get when(){return TC()},get children(){return T(go,{get children(){return T(Ya,{h:"$full",w:"$full",pos:"fixed",top:0,get bg(){return ac("$blackAlpha4","$whiteAlpha4")()},zIndex:"9000",get children(){return T(xl,{thickness:"4px",speed:"0.65s",emptyColor:"$neutral4",color:"$info10",size:"xl"})}})}})}})]},rH=()=>T(yC,{as:EC,boxSize:"$8"});/*!
24
+ Highlight.js v11.4.0 (git: 2d0e7c1094)
25
+ (c) 2006-2022 Ivan Sagalaev and other contributors
26
+ License: BSD-3-Clause
27
+ */var xx=function(){var e={exports:{}};function t(_){return _ instanceof Map?_.clear=_.delete=_.set=()=>{throw Error("map is read-only")}:_ instanceof Set&&(_.add=_.clear=_.delete=()=>{throw Error("set is read-only")}),Object.freeze(_),Object.getOwnPropertyNames(_).forEach(w=>{var B=_[w];typeof B!="object"||Object.isFrozen(B)||t(B)}),_}e.exports=t,e.exports.default=t;var n=e.exports;class r{constructor(w){w.data===void 0&&(w.data={}),this.data=w.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(_){return _.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function o(_,...w){const B=Object.create(null);for(const U in _)B[U]=_[U];return w.forEach(U=>{for(const J in U)B[J]=U[J]}),B}const a=_=>!!_.kind;class s{constructor(w,B){this.buffer="",this.classPrefix=B.classPrefix,w.walk(this)}addText(w){this.buffer+=i(w)}openNode(w){if(!a(w))return;let B=w.kind;B=w.sublanguage?"language-"+B:((U,{prefix:J})=>{if(U.includes(".")){const z=U.split(".");return[`${J}${z.shift()}`,...z.map((Q,q)=>`${Q}${"_".repeat(q+1)}`)].join(" ")}return`${J}${U}`})(B,{prefix:this.classPrefix}),this.span(B)}closeNode(w){a(w)&&(this.buffer+="</span>")}value(){return this.buffer}span(w){this.buffer+=`<span class="${w}">`}}class l{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(w){this.top.children.push(w)}openNode(w){const B={kind:w,children:[]};this.add(B),this.stack.push(B)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(w){return this.constructor._walk(w,this.rootNode)}static _walk(w,B){return typeof B=="string"?w.addText(B):B.children&&(w.openNode(B),B.children.forEach(U=>this._walk(w,U)),w.closeNode(B)),w}static _collapse(w){typeof w!="string"&&w.children&&(w.children.every(B=>typeof B=="string")?w.children=[w.children.join("")]:w.children.forEach(B=>{l._collapse(B)}))}}class c extends l{constructor(w){super(),this.options=w}addKeyword(w,B){w!==""&&(this.openNode(B),this.addText(w),this.closeNode())}addText(w){w!==""&&this.add(w)}addSublanguage(w,B){const U=w.root;U.kind=B,U.sublanguage=!0,this.add(U)}toHTML(){return new s(this,this.options).value()}finalize(){return!0}}function u(_){return _?typeof _=="string"?_:_.source:null}function f(_){return h("(?=",_,")")}function g(_){return h("(?:",_,")*")}function d(_){return h("(?:",_,")?")}function h(..._){return _.map(w=>u(w)).join("")}function m(..._){return"("+((B=>{const U=B[B.length-1];return typeof U=="object"&&U.constructor===Object?(B.splice(B.length-1,1),U):{}})(_).capture?"":"?:")+_.map(B=>u(B)).join("|")+")"}function p(_){return RegExp(_.toString()+"|").exec("").length-1}const b=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function E(_,{joinWith:w}){let B=0;return _.map(U=>{B+=1;const J=B;let z=u(U),Q="";for(;z.length>0;){const q=b.exec(z);if(!q){Q+=z;break}Q+=z.substring(0,q.index),z=z.substring(q.index+q[0].length),q[0][0]==="\\"&&q[1]?Q+="\\"+(Number(q[1])+J):(Q+=q[0],q[0]==="("&&B++)}return Q}).map(U=>`(${U})`).join(w)}const v="[a-zA-Z]\\w*",N="[a-zA-Z_]\\w*",I="\\b\\d+(\\.\\d+)?",S="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",y="\\b(0b[01]+)",O={begin:"\\\\[\\s\\S]",relevance:0},M={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[O]},j={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[O]},H=(_,w,B={})=>{const U=o({scope:"comment",begin:_,end:w,contains:[]},B);U.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const J=m("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return U.contains.push({begin:h(/[ ]+/,"(",J,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),U},X=H("//","$"),ne=H("/\\*","\\*/"),oe=H("#","$");var ae=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:v,UNDERSCORE_IDENT_RE:N,NUMBER_RE:I,C_NUMBER_RE:S,BINARY_NUMBER_RE:y,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(_={})=>{const w=/^#![ ]*\//;return _.binary&&(_.begin=h(w,/.*\b/,_.binary,/\b.*/)),o({scope:"meta",begin:w,end:/$/,relevance:0,"on:begin":(B,U)=>{B.index!==0&&U.ignoreMatch()}},_)},BACKSLASH_ESCAPE:O,APOS_STRING_MODE:M,QUOTE_STRING_MODE:j,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT:H,C_LINE_COMMENT_MODE:X,C_BLOCK_COMMENT_MODE:ne,HASH_COMMENT_MODE:oe,NUMBER_MODE:{scope:"number",begin:I,relevance:0},C_NUMBER_MODE:{scope:"number",begin:S,relevance:0},BINARY_NUMBER_MODE:{scope:"number",begin:y,relevance:0},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[O,{begin:/\[/,end:/\]/,relevance:0,contains:[O]}]}]},TITLE_MODE:{scope:"title",begin:v,relevance:0},UNDERSCORE_TITLE_MODE:{scope:"title",begin:N,relevance:0},METHOD_GUARD:{begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},END_SAME_AS_BEGIN:_=>Object.assign(_,{"on:begin":(w,B)=>{B.data._beginMatch=w[1]},"on:end":(w,B)=>{B.data._beginMatch!==w[1]&&B.ignoreMatch()}})});function D(_,w){_.input[_.index-1]==="."&&w.ignoreMatch()}function Re(_,w){_.className!==void 0&&(_.scope=_.className,delete _.className)}function Y(_,w){w&&_.beginKeywords&&(_.begin="\\b("+_.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",_.__beforeBegin=D,_.keywords=_.keywords||_.beginKeywords,delete _.beginKeywords,_.relevance===void 0&&(_.relevance=0))}function Pe(_,w){Array.isArray(_.illegal)&&(_.illegal=m(..._.illegal))}function we(_,w){if(_.match){if(_.begin||_.end)throw Error("begin & end are not supported with match");_.begin=_.match,delete _.match}}function C(_,w){_.relevance===void 0&&(_.relevance=1)}const R=(_,w)=>{if(!_.beforeMatch)return;if(_.starts)throw Error("beforeMatch cannot be used with starts");const B=Object.assign({},_);Object.keys(_).forEach(U=>{delete _[U]}),_.keywords=B.keywords,_.begin=h(B.beforeMatch,f(B.begin)),_.starts={relevance:0,contains:[Object.assign(B,{endsParent:!0})]},_.relevance=0,delete B.beforeMatch},fe=["of","and","for","in","not","or","if","then","parent","list","value"];function $e(_,w,B="keyword"){const U=Object.create(null);return typeof _=="string"?J(B,_.split(" ")):Array.isArray(_)?J(B,_):Object.keys(_).forEach(z=>{Object.assign(U,$e(_[z],w,z))}),U;function J(z,Q){w&&(Q=Q.map(q=>q.toLowerCase())),Q.forEach(q=>{const de=q.split("|");U[de[0]]=[z,vt(de[0],de[1])]})}}function vt(_,w){return w?Number(w):(B=>fe.includes(B.toLowerCase()))(_)?0:1}const Je={},et=_=>{console.error(_)},st=(_,...w)=>{console.log("WARN: "+_,...w)},Et=(_,w)=>{Je[`${_}/${w}`]||(console.log(`Deprecated as of ${_}. ${w}`),Je[`${_}/${w}`]=!0)},ee=Error();function ve(_,w,{key:B}){let U=0;const J=_[B],z={},Q={};for(let q=1;q<=w.length;q++)Q[q+U]=J[q],z[q+U]=!0,U+=p(w[q-1]);_[B]=Q,_[B]._emit=z,_[B]._multi=!0}function qe(_){(w=>{w.scope&&typeof w.scope=="object"&&w.scope!==null&&(w.beginScope=w.scope,delete w.scope)})(_),typeof _.beginScope=="string"&&(_.beginScope={_wrap:_.beginScope}),typeof _.endScope=="string"&&(_.endScope={_wrap:_.endScope}),(w=>{if(Array.isArray(w.begin)){if(w.skip||w.excludeBegin||w.returnBegin)throw et("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ee;if(typeof w.beginScope!="object"||w.beginScope===null)throw et("beginScope must be object"),ee;ve(w,w.begin,{key:"beginScope"}),w.begin=E(w.begin,{joinWith:""})}})(_),(w=>{if(Array.isArray(w.end)){if(w.skip||w.excludeEnd||w.returnEnd)throw et("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ee;if(typeof w.endScope!="object"||w.endScope===null)throw et("endScope must be object"),ee;ve(w,w.end,{key:"endScope"}),w.end=E(w.end,{joinWith:""})}})(_)}function gt(_){function w(J,z){return RegExp(u(J),"m"+(_.case_insensitive?"i":"")+(_.unicodeRegex?"u":"")+(z?"g":""))}class B{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(z,Q){Q.position=this.position++,this.matchIndexes[this.matchAt]=Q,this.regexes.push([Q,z]),this.matchAt+=p(z)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const z=this.regexes.map(Q=>Q[1]);this.matcherRe=w(E(z,{joinWith:"|"}),!0),this.lastIndex=0}exec(z){this.matcherRe.lastIndex=this.lastIndex;const Q=this.matcherRe.exec(z);if(!Q)return null;const q=Q.findIndex((pe,Ee)=>Ee>0&&pe!==void 0),de=this.matchIndexes[q];return Q.splice(0,q),Object.assign(Q,de)}}class U{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(z){if(this.multiRegexes[z])return this.multiRegexes[z];const Q=new B;return this.rules.slice(z).forEach(([q,de])=>Q.addRule(q,de)),Q.compile(),this.multiRegexes[z]=Q,Q}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(z,Q){this.rules.push([z,Q]),Q.type==="begin"&&this.count++}exec(z){const Q=this.getMatcher(this.regexIndex);Q.lastIndex=this.lastIndex;let q=Q.exec(z);if(this.resumingScanAtSamePosition()&&!(q&&q.index===this.lastIndex)){const de=this.getMatcher(0);de.lastIndex=this.lastIndex+1,q=de.exec(z)}return q&&(this.regexIndex+=q.position+1,this.regexIndex===this.count&&this.considerAll()),q}}if(_.compilerExtensions||(_.compilerExtensions=[]),_.contains&&_.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return _.classNameAliases=o(_.classNameAliases||{}),function J(z,Q){const q=z;if(z.isCompiled)return q;[Re,we,qe,R].forEach(pe=>pe(z,Q)),_.compilerExtensions.forEach(pe=>pe(z,Q)),z.__beforeBegin=null,[Y,Pe,C].forEach(pe=>pe(z,Q)),z.isCompiled=!0;let de=null;return typeof z.keywords=="object"&&z.keywords.$pattern&&(z.keywords=Object.assign({},z.keywords),de=z.keywords.$pattern,delete z.keywords.$pattern),de=de||/\w+/,z.keywords&&(z.keywords=$e(z.keywords,_.case_insensitive)),q.keywordPatternRe=w(de,!0),Q&&(z.begin||(z.begin=/\B|\b/),q.beginRe=w(q.begin),z.end||z.endsWithParent||(z.end=/\B|\b/),z.end&&(q.endRe=w(q.end)),q.terminatorEnd=u(q.end)||"",z.endsWithParent&&Q.terminatorEnd&&(q.terminatorEnd+=(z.end?"|":"")+Q.terminatorEnd)),z.illegal&&(q.illegalRe=w(z.illegal)),z.contains||(z.contains=[]),z.contains=[].concat(...z.contains.map(pe=>(Ee=>(Ee.variants&&!Ee.cachedVariants&&(Ee.cachedVariants=Ee.variants.map(Se=>o(Ee,{variants:null},Se))),Ee.cachedVariants?Ee.cachedVariants:Kn(Ee)?o(Ee,{starts:Ee.starts?o(Ee.starts):null}):Object.isFrozen(Ee)?o(Ee):Ee))(pe==="self"?z:pe))),z.contains.forEach(pe=>{J(pe,q)}),z.starts&&J(z.starts,Q),q.matcher=(pe=>{const Ee=new U;return pe.contains.forEach(Se=>Ee.addRule(Se.begin,{rule:Se,type:"begin"})),pe.terminatorEnd&&Ee.addRule(pe.terminatorEnd,{type:"end"}),pe.illegal&&Ee.addRule(pe.illegal,{type:"illegal"}),Ee})(q),q}(_)}function Kn(_){return!!_&&(_.endsWithParent||Kn(_.starts))}class Ir extends Error{constructor(w,B){super(w),this.name="HTMLInjectionError",this.html=B}}const ze=i,xn=o,Zn=Symbol("nomatch");var cr=(_=>{const w=Object.create(null),B=Object.create(null),U=[];let J=!0;const z="Could not find the language '{}', did you forget to load/include a language module?",Q={disableAutodetect:!0,name:"Plain text",contains:[]};let q={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:c};function de(be){return q.noHighlightRe.test(be)}function pe(be,Le,Ue){let Ft="",At="";typeof Le=="object"?(Ft=be,Ue=Le.ignoreIllegals,At=Le.language):(Et("10.7.0","highlight(lang, code, ...args) has been deprecated."),Et("10.7.0",`Please use highlight(code, options) instead.
28
+ https://github.com/highlightjs/highlight.js/issues/2277`),At=be,Ft=Le),Ue===void 0&&(Ue=!0);const pt={code:Ft,language:At};dn("before:highlight",pt);const Gt=pt.result?pt.result:Ee(pt.language,pt.code,Ue);return Gt.code=pt.code,dn("after:highlight",Gt),Gt}function Ee(be,Le,Ue,Ft){const At=Object.create(null);function pt(){if(!Ke.keywords)return void Zt.addText(Mt);let ke=0;Ke.keywordPatternRe.lastIndex=0;let He=Ke.keywordPatternRe.exec(Mt),xt="";for(;He;){xt+=Mt.substring(ke,He.index);const St=it.case_insensitive?He[0].toLowerCase():He[0],bn=(mt=St,Ke.keywords[mt]);if(bn){const[Pr,ga]=bn;if(Zt.addText(xt),xt="",At[St]=(At[St]||0)+1,At[St]<=7&&(ha+=ga),Pr.startsWith("_"))xt+=He[0];else{const Ki=it.classNameAliases[Pr]||Pr;Zt.addKeyword(He[0],Ki)}}else xt+=He[0];ke=Ke.keywordPatternRe.lastIndex,He=Ke.keywordPatternRe.exec(Mt)}var mt;xt+=Mt.substr(ke),Zt.addText(xt)}function Gt(){Ke.subLanguage!=null?(()=>{if(Mt==="")return;let ke=null;if(typeof Ke.subLanguage=="string"){if(!w[Ke.subLanguage])return void Zt.addText(Mt);ke=Ee(Ke.subLanguage,Mt,!0,Pl[Ke.subLanguage]),Pl[Ke.subLanguage]=ke._top}else ke=Se(Mt,Ke.subLanguage.length?Ke.subLanguage:null);Ke.relevance>0&&(ha+=ke.relevance),Zt.addSublanguage(ke._emitter,ke.language)})():pt(),Mt=""}function Vt(ke,He){let xt=1;for(;He[xt]!==void 0;){if(!ke._emit[xt]){xt++;continue}const mt=it.classNameAliases[ke[xt]]||ke[xt],St=He[xt];mt?Zt.addKeyword(St,mt):(Mt=St,pt(),Mt=""),xt++}}function Tt(ke,He){return ke.scope&&typeof ke.scope=="string"&&Zt.openNode(it.classNameAliases[ke.scope]||ke.scope),ke.beginScope&&(ke.beginScope._wrap?(Zt.addKeyword(Mt,it.classNameAliases[ke.beginScope._wrap]||ke.beginScope._wrap),Mt=""):ke.beginScope._multi&&(Vt(ke.beginScope,He),Mt="")),Ke=Object.create(ke,{parent:{value:Ke}}),Ke}function on(ke,He,xt){let mt=((St,bn)=>{const Pr=St&&St.exec(bn);return Pr&&Pr.index===0})(ke.endRe,xt);if(mt){if(ke["on:end"]){const St=new r(ke);ke["on:end"](He,St),St.isMatchIgnored&&(mt=!1)}if(mt){for(;ke.endsParent&&ke.parent;)ke=ke.parent;return ke}}if(ke.endsWithParent)return on(ke.parent,He,xt)}function di(ke){return Ke.matcher.regexIndex===0?(Mt+=ke[0],1):(ls=!0,0)}function Lr(ke){const He=ke[0],xt=Le.substr(ke.index),mt=on(Ke,ke,xt);if(!mt)return Zn;const St=Ke;Ke.endScope&&Ke.endScope._wrap?(Gt(),Zt.addKeyword(He,Ke.endScope._wrap)):Ke.endScope&&Ke.endScope._multi?(Gt(),Vt(Ke.endScope,ke)):St.skip?Mt+=He:(St.returnEnd||St.excludeEnd||(Mt+=He),Gt(),St.excludeEnd&&(Mt=He));do Ke.scope&&Zt.closeNode(),Ke.skip||Ke.subLanguage||(ha+=Ke.relevance),Ke=Ke.parent;while(Ke!==mt.parent);return mt.starts&&Tt(mt.starts,ke),St.returnEnd?0:He.length}let tr={};function ji(ke,He){const xt=He&&He[0];if(Mt+=ke,xt==null)return Gt(),0;if(tr.type==="begin"&&He.type==="end"&&tr.index===He.index&&xt===""){if(Mt+=Le.slice(He.index,He.index+1),!J){const mt=Error(`0 width match regex (${be})`);throw mt.languageName=be,mt.badRule=tr.rule,mt}return 1}if(tr=He,He.type==="begin")return(mt=>{const St=mt[0],bn=mt.rule,Pr=new r(bn),ga=[bn.__beforeBegin,bn["on:begin"]];for(const Ki of ga)if(Ki&&(Ki(mt,Pr),Pr.isMatchIgnored))return di(St);return bn.skip?Mt+=St:(bn.excludeBegin&&(Mt+=St),Gt(),bn.returnBegin||bn.excludeBegin||(Mt=St)),Tt(bn,mt),bn.returnBegin?0:St.length})(He);if(He.type==="illegal"&&!Ue){const mt=Error('Illegal lexeme "'+xt+'" for mode "'+(Ke.scope||"<unnamed>")+'"');throw mt.mode=Ke,mt}if(He.type==="end"){const mt=Lr(He);if(mt!==Zn)return mt}if(He.type==="illegal"&&xt==="")return 1;if(yo>1e5&&yo>3*He.index)throw Error("potential infinite loop, way more iterations than matches");return Mt+=xt,xt.length}const it=Rt(be);if(!it)throw et(z.replace("{}",be)),Error('Unknown language: "'+be+'"');const To=gt(it);let Gi="",Ke=Ft||To;const Pl={},Zt=new q.__emitter(q);(()=>{const ke=[];for(let He=Ke;He!==it;He=He.parent)He.scope&&ke.unshift(He.scope);ke.forEach(He=>Zt.openNode(He))})();let Mt="",ha=0,fi=0,yo=0,ls=!1;try{for(Ke.matcher.considerAll();;){yo++,ls?ls=!1:Ke.matcher.considerAll(),Ke.matcher.lastIndex=fi;const ke=Ke.matcher.exec(Le);if(!ke)break;const He=ji(Le.substring(fi,ke.index),ke);fi=ke.index+He}return ji(Le.substr(fi)),Zt.closeAllNodes(),Zt.finalize(),Gi=Zt.toHTML(),{language:be,value:Gi,relevance:ha,illegal:!1,_emitter:Zt,_top:Ke}}catch(ke){if(ke.message&&ke.message.includes("Illegal"))return{language:be,value:ze(Le),illegal:!0,relevance:0,_illegalBy:{message:ke.message,index:fi,context:Le.slice(fi-100,fi+100),mode:ke.mode,resultSoFar:Gi},_emitter:Zt};if(J)return{language:be,value:ze(Le),illegal:!1,relevance:0,errorRaised:ke,_emitter:Zt,_top:Ke};throw ke}}function Se(be,Le){Le=Le||q.languages||Object.keys(w);const Ue=(Tt=>{const on={value:ze(Tt),illegal:!1,relevance:0,_top:Q,_emitter:new q.__emitter(q)};return on._emitter.addText(Tt),on})(be),Ft=Le.filter(Rt).filter(Nn).map(Tt=>Ee(Tt,be,!1));Ft.unshift(Ue);const At=Ft.sort((Tt,on)=>{if(Tt.relevance!==on.relevance)return on.relevance-Tt.relevance;if(Tt.language&&on.language){if(Rt(Tt.language).supersetOf===on.language)return 1;if(Rt(on.language).supersetOf===Tt.language)return-1}return 0}),[pt,Gt]=At,Vt=pt;return Vt.secondBest=Gt,Vt}function Fe(be){let Le=null;const Ue=(pt=>{let Gt=pt.className+" ";Gt+=pt.parentNode?pt.parentNode.className:"";const Vt=q.languageDetectRe.exec(Gt);if(Vt){const Tt=Rt(Vt[1]);return Tt||(st(z.replace("{}",Vt[1])),st("Falling back to no-highlight mode for this block.",pt)),Tt?Vt[1]:"no-highlight"}return Gt.split(/\s+/).find(Tt=>de(Tt)||Rt(Tt))})(be);if(de(Ue))return;if(dn("before:highlightElement",{el:be,language:Ue}),be.children.length>0&&(q.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(be)),q.throwUnescapedHTML))throw new Ir("One of your code blocks includes unescaped HTML.",be.innerHTML);Le=be;const Ft=Le.textContent,At=Ue?pe(Ft,{language:Ue,ignoreIllegals:!0}):Se(Ft);be.innerHTML=At.value,((pt,Gt,Vt)=>{const Tt=Gt&&B[Gt]||Vt;pt.classList.add("hljs"),pt.classList.add("language-"+Tt)})(be,Ue,At.language),be.result={language:At.language,re:At.relevance,relevance:At.relevance},At.secondBest&&(be.secondBest={language:At.secondBest.language,relevance:At.secondBest.relevance}),dn("after:highlightElement",{el:be,result:At,text:Ft})}let ut=!1;function Ge(){document.readyState!=="loading"?document.querySelectorAll(q.cssSelector).forEach(Fe):ut=!0}function Rt(be){return be=(be||"").toLowerCase(),w[be]||w[B[be]]}function On(be,{languageName:Le}){typeof be=="string"&&(be=[be]),be.forEach(Ue=>{B[Ue.toLowerCase()]=Le})}function Nn(be){const Le=Rt(be);return Le&&!Le.disableAutodetect}function dn(be,Le){const Ue=be;U.forEach(Ft=>{Ft[Ue]&&Ft[Ue](Le)})}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",()=>{ut&&Ge()},!1),Object.assign(_,{highlight:pe,highlightAuto:Se,highlightAll:Ge,highlightElement:Fe,highlightBlock:be=>(Et("10.7.0","highlightBlock will be removed entirely in v12.0"),Et("10.7.0","Please use highlightElement now."),Fe(be)),configure:be=>{q=xn(q,be)},initHighlighting:()=>{Ge(),Et("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:()=>{Ge(),Et("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:(be,Le)=>{let Ue=null;try{Ue=Le(_)}catch(Ft){if(et("Language definition for '{}' could not be registered.".replace("{}",be)),!J)throw Ft;et(Ft),Ue=Q}Ue.name||(Ue.name=be),w[be]=Ue,Ue.rawDefinition=Le.bind(null,_),Ue.aliases&&On(Ue.aliases,{languageName:be})},unregisterLanguage:be=>{delete w[be];for(const Le of Object.keys(B))B[Le]===be&&delete B[Le]},listLanguages:()=>Object.keys(w),getLanguage:Rt,registerAliases:On,autoDetection:Nn,inherit:xn,addPlugin:be=>{(Le=>{Le["before:highlightBlock"]&&!Le["before:highlightElement"]&&(Le["before:highlightElement"]=Ue=>{Le["before:highlightBlock"](Object.assign({block:Ue.el},Ue))}),Le["after:highlightBlock"]&&!Le["after:highlightElement"]&&(Le["after:highlightElement"]=Ue=>{Le["after:highlightBlock"](Object.assign({block:Ue.el},Ue))})})(be),U.push(be)}}),_.debugMode=()=>{J=!1},_.safeMode=()=>{J=!0},_.versionString="11.4.0",_.regex={concat:h,lookahead:f,either:m,optional:d,anyNumberOfTimes:g};for(const be in ae)typeof ae[be]=="object"&&n(ae[be]);return Object.assign(_,ae),_})({});const nn=_=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:_.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:_.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),kn=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Fn=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],rn=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Hn=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ur=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-height","max-width","min-height","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),Vr=rn.concat(Hn);var Jn="\\.([0-9](_*[0-9])*)",$="[0-9a-fA-F](_*[0-9a-fA-F])*",A={className:"number",variants:[{begin:`(\\b([0-9](_*[0-9])*)((${Jn})|\\.)?|(${Jn}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`},{begin:`\\b([0-9](_*[0-9])*)((${Jn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Jn})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{begin:`\\b0[xX]((${$})\\.?|(${$})?\\.(${$}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${$})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function V(_,w,B){return B===-1?"":_.replace(w,U=>V(_,w,B-1))}const re="[A-Za-z$_][0-9A-Za-z$_]*",ye=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Qt=["true","false","null","undefined","NaN","Infinity"],tt=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],_t=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],qt=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],zn=["arguments","this","super","console","window","document","localStorage","module","global"],yt=[].concat(qt,tt,_t);function wt(_){const w=_.regex,B=re,U={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Vt,Tt)=>{const on=Vt[0].length+Vt.index,di=Vt.input[on];if(di==="<"||di===",")return void Tt.ignoreMatch();let Lr;di===">"&&(((tr,{after:ji})=>{const it="</"+tr[0].slice(1);return tr.input.indexOf(it,ji)!==-1})(Vt,{after:on})||Tt.ignoreMatch()),(Lr=Vt.input.substr(on).match(/^\s+extends\s+/))&&Lr.index===0&&Tt.ignoreMatch()}},J={$pattern:re,keyword:ye,literal:Qt,built_in:yt,"variable.language":zn},z="\\.([0-9](_?[0-9])*)",Q="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",q={className:"number",variants:[{begin:`(\\b(${Q})((${z})|\\.)?|(${z}))[eE][+-]?([0-9](_?[0-9])*)\\b`},{begin:`\\b(${Q})\\b((${z})\\b|\\.)?|(${z})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},de={className:"subst",begin:"\\$\\{",end:"\\}",keywords:J,contains:[]},pe={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,de],subLanguage:"xml"}},Ee={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[_.BACKSLASH_ESCAPE,de],subLanguage:"css"}},Se={className:"string",begin:"`",end:"`",contains:[_.BACKSLASH_ESCAPE,de]},Fe={className:"comment",variants:[_.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:B+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),_.C_BLOCK_COMMENT_MODE,_.C_LINE_COMMENT_MODE]},ut=[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,pe,Ee,Se,q];de.contains=ut.concat({begin:/\{/,end:/\}/,keywords:J,contains:["self"].concat(ut)});const Ge=[].concat(Fe,de.contains),Rt=Ge.concat([{begin:/\(/,end:/\)/,keywords:J,contains:["self"].concat(Ge)}]),On={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:J,contains:Rt},Nn={variants:[{match:[/class/,/\s+/,B,/\s+/,/extends/,/\s+/,w.concat(B,"(",w.concat(/\./,B),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,B],scope:{1:"keyword",3:"title.class"}}]},dn={relevance:0,match:w.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...tt,..._t]}},be={variants:[{match:[/function/,/\s+/,B,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[On],illegal:/%/},Le={match:w.concat(/\b/,(Ue=[...qt,"super"],w.concat("(?!",Ue.join("|"),")")),B,w.lookahead(/\(/)),className:"title.function",relevance:0};var Ue;const Ft={begin:w.concat(/\./,w.lookahead(w.concat(B,/(?![0-9A-Za-z$_(])/))),end:B,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},At={match:[/get|set/,/\s+/,B,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},On]},pt="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+_.UNDERSCORE_IDENT_RE+")\\s*=>",Gt={match:[/const|var|let/,/\s+/,B,/\s*/,/=\s*/,/(async\s*)?/,w.lookahead(pt)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[On]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:J,exports:{PARAMS_CONTAINS:Rt,CLASS_REFERENCE:dn},illegal:/#(?![$_A-z])/,contains:[_.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,pe,Ee,Se,Fe,q,dn,{className:"attr",begin:B+w.lookahead(":"),relevance:0},Gt,{begin:"("+_.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[Fe,_.REGEXP_MODE,{className:"function",begin:pt,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:_.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:J,contains:Rt}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:"</>"},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:U.begin,"on:begin":U.isTrulyOpeningTag,end:U.end}],subLanguage:"xml",contains:[{begin:U.begin,end:U.end,skip:!0,contains:["self"]}]}]},be,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+_.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[On,_.inherit(_.TITLE_MODE,{begin:B,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ft,{match:"\\$"+B,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[On]},Le,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},Nn,At,{match:/\$[(.]/}]}}const Tn=_=>h(/\b/,_,/\w$/.test(_)?/\b/:/\B/),zi=["Protocol","Type"].map(Tn),er=["init","self"].map(Tn),Uc=["Any","Self"],Rr=["actor","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Ol=["false","nil","true"],jc=["assignment","associativity","higherThan","left","lowerThan","none","right"],Gc=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],Nl=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Il=m(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),dr=m(Il,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),as=h(Il,dr,"*"),Rl=m(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),fa=m(Rl,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Mr=h(Rl,fa,"*"),ss=h(/[A-Z]/,fa,"*"),Ui=["autoclosure",h(/convention\(/,m("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",h(/objc\(/,Mr,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],Kc=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];var Ml=Object.freeze({__proto__:null,grmr_bash:_=>{const w=_.regex,B={},U={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[B]}]};Object.assign(B,{className:"variable",variants:[{begin:w.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},U]});const J={className:"subst",begin:/\$\(/,end:/\)/,contains:[_.BACKSLASH_ESCAPE]},z={begin:/<<-?\s*(?=\w+)/,starts:{contains:[_.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},Q={className:"string",begin:/"/,end:/"/,contains:[_.BACKSLASH_ESCAPE,B,J]};J.contains.push(Q);const q={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},_.NUMBER_MODE,B]},de=_.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10}),pe={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[_.inherit(_.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:["if","then","else","elif","fi","for","while","in","do","done","case","esac","function"],literal:["true","false"],built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"]},contains:[de,_.SHEBANG(),pe,q,_.HASH_COMMENT_MODE,z,{match:/(\/[a-z._-]+)+/},Q,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},B]}},grmr_c:_=>{const w=_.regex,B=_.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),U="[a-zA-Z_]\\w*::",J="(decltype\\(auto\\)|"+w.optional(U)+"[a-zA-Z_]\\w*"+w.optional("<[^<>]+>")+")",z={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},Q={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[_.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},_.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},q={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},de={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},_.inherit(Q,{className:"string"}),{className:"string",begin:/<.*?>/},B,_.C_BLOCK_COMMENT_MODE]},pe={className:"title",begin:w.optional(U)+_.IDENT_RE,relevance:0},Ee=w.optional(U)+_.IDENT_RE+"\\s*\\(",Se={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},Fe=[de,z,B,_.C_BLOCK_COMMENT_MODE,q,Q],ut={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:Se,contains:Fe.concat([{begin:/\(/,end:/\)/,keywords:Se,contains:Fe.concat(["self"]),relevance:0}]),relevance:0},Ge={begin:"("+J+"[\\*&\\s]+)+"+Ee,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:Se,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:"decltype\\(auto\\)",keywords:Se,relevance:0},{begin:Ee,returnBegin:!0,contains:[_.inherit(pe,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:Se,relevance:0,contains:[B,_.C_BLOCK_COMMENT_MODE,Q,q,z,{begin:/\(/,end:/\)/,keywords:Se,relevance:0,contains:["self",B,_.C_BLOCK_COMMENT_MODE,Q,q,z]}]},z,B,_.C_BLOCK_COMMENT_MODE,de]};return{name:"C",aliases:["h"],keywords:Se,disableAutodetect:!0,illegal:"</",contains:[].concat(ut,Ge,Fe,[de,{begin:_.IDENT_RE+"::",keywords:Se},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},_.TITLE_MODE]}]),exports:{preprocessor:de,strings:Q,keywords:Se}}},grmr_cpp:_=>{const w=_.regex,B=_.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),U="[a-zA-Z_]\\w*::",J="(?!struct)(decltype\\(auto\\)|"+w.optional(U)+"[a-zA-Z_]\\w*"+w.optional("<[^<>]+>")+")",z={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},Q={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[_.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},_.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},q={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},de={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},_.inherit(Q,{className:"string"}),{className:"string",begin:/<.*?>/},B,_.C_BLOCK_COMMENT_MODE]},pe={className:"title",begin:w.optional(U)+_.IDENT_RE,relevance:0},Ee=w.optional(U)+_.IDENT_RE+"\\s*\\(",Se={type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]},Fe={className:"function.dispatch",relevance:0,keywords:{_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]},begin:w.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,_.IDENT_RE,w.lookahead(/(<[^<>]+>|)\s*\(/))},ut=[Fe,de,z,B,_.C_BLOCK_COMMENT_MODE,q,Q],Ge={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:Se,contains:ut.concat([{begin:/\(/,end:/\)/,keywords:Se,contains:ut.concat(["self"]),relevance:0}]),relevance:0},Rt={className:"function",begin:"("+J+"[\\*&\\s]+)+"+Ee,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:Se,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:"decltype\\(auto\\)",keywords:Se,relevance:0},{begin:Ee,returnBegin:!0,contains:[pe],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[Q,q]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:Se,relevance:0,contains:[B,_.C_BLOCK_COMMENT_MODE,Q,q,z,{begin:/\(/,end:/\)/,keywords:Se,relevance:0,contains:["self",B,_.C_BLOCK_COMMENT_MODE,Q,q,z]}]},z,B,_.C_BLOCK_COMMENT_MODE,de]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:Se,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(Ge,Rt,Fe,ut,[de,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:Se,contains:["self",z]},{begin:_.IDENT_RE+"::",keywords:Se},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}},grmr_csharp:_=>{const w={keyword:["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]),built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],literal:["default","false","null","true"]},B=_.inherit(_.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),U={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},J={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},z=_.inherit(J,{illegal:/\n/}),Q={className:"subst",begin:/\{/,end:/\}/,keywords:w},q=_.inherit(Q,{illegal:/\n/}),de={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},_.BACKSLASH_ESCAPE,q]},pe={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},Q]},Ee=_.inherit(pe,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},q]});Q.contains=[pe,de,J,_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,U,_.C_BLOCK_COMMENT_MODE],q.contains=[Ee,de,z,_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,U,_.inherit(_.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const Se={variants:[pe,de,J,_.APOS_STRING_MODE,_.QUOTE_STRING_MODE]},Fe={begin:"<",end:">",contains:[{beginKeywords:"in out"},B]},ut=_.IDENT_RE+"(<"+_.IDENT_RE+"(\\s*,\\s*"+_.IDENT_RE+")*>)?(\\[\\])?",Ge={begin:"@"+_.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:w,illegal:/::/,contains:[_.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},Se,U,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},B,Fe,_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[B,_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[B,Fe,_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+ut+"\\s+)+"+_.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:w,contains:[{beginKeywords:"public private protected static internal protected abstract async extern override unsafe virtual new sealed partial",relevance:0},{begin:_.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[_.TITLE_MODE,Fe],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,relevance:0,contains:[Se,U,_.C_BLOCK_COMMENT_MODE]},_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE]},Ge]}},grmr_css:_=>{const w=_.regex,B=nn(_),U=[_.APOS_STRING_MODE,_.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[B.BLOCK_COMMENT,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/},B.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},B.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+rn.join("|")+")"},{begin:":(:)?("+Hn.join("|")+")"}]},B.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ur.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[B.BLOCK_COMMENT,B.HEXCOLOR,B.IMPORTANT,B.CSS_NUMBER_MODE,...U,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},B.FUNCTION_DISPATCH]},{begin:w.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:Fn.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...U,B.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+kn.join("|")+")\\b"}]}},grmr_diff:_=>{const w=_.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:w.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:w.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}},grmr_go:_=>{const w={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:w,illegal:"</",contains:[_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE,{className:"string",variants:[_.QUOTE_STRING_MODE,_.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:_.C_NUMBER_RE+"[i]",relevance:1},_.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[_.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:w,illegal:/["']/}]}]}},grmr_ini:_=>{const w=_.regex,B={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:_.NUMBER_RE}]},U=_.COMMENT();U.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const J={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},z={className:"literal",begin:/\bon|off|true|false|yes|no\b/},Q={className:"string",contains:[_.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},q={begin:/\[/,end:/\]/,contains:[U,z,J,Q,B,"self"],relevance:0},de=w.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[U,{className:"section",begin:/\[+/,end:/\]+/},{begin:w.concat(de,"(\\s*\\.\\s*",de,")*",w.lookahead(/\s*=\s*[^#\s]/)),className:"attr",starts:{end:/$/,contains:[U,q,z,J,Q,B]}}]}},grmr_java:_=>{_.regex;const w="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",B=w+V("(?:<"+w+"~~~(?:\\s*,\\s*"+w+"~~~)*>)?",/~~~/g,2),U={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},J={className:"meta",begin:"@"+w,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},z={className:"params",begin:/\(/,end:/\)/,keywords:U,relevance:0,contains:[_.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:U,illegal:/<\/|#/,contains:[_.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[_.BACKSLASH_ESCAPE]},_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,w],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[w,/\s+/,w,/\s+/,/=/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,w],className:{1:"keyword",3:"title.class"},contains:[z,_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+B+"\\s+)",_.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:U,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:U,relevance:0,contains:[J,_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,A,_.C_BLOCK_COMMENT_MODE]},_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE]},A,J]}},grmr_javascript:wt,grmr_json:_=>({name:"JSON",contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},_.QUOTE_STRING_MODE,{beginKeywords:"true false null"},_.C_NUMBER_MODE,_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE],illegal:"\\S"}),grmr_kotlin:_=>{const w={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},B={className:"symbol",begin:_.UNDERSCORE_IDENT_RE+"@"},U={className:"subst",begin:/\$\{/,end:/\}/,contains:[_.C_NUMBER_MODE]},J={className:"variable",begin:"\\$"+_.UNDERSCORE_IDENT_RE},z={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[J,U]},{begin:"'",end:"'",illegal:/\n/,contains:[_.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[_.BACKSLASH_ESCAPE,J,U]}]};U.contains.push(z);const Q={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+_.UNDERSCORE_IDENT_RE+")?"},q={className:"meta",begin:"@"+_.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[_.inherit(z,{className:"string"})]}]},de=A,pe=_.COMMENT("/\\*","\\*/",{contains:[_.C_BLOCK_COMMENT_MODE]}),Ee={variants:[{className:"type",begin:_.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},Se=Ee;return Se.variants[1].contains=[Ee],Ee.variants[1].contains=[Se],{name:"Kotlin",aliases:["kt","kts"],keywords:w,contains:[_.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),_.C_LINE_COMMENT_MODE,pe,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},B,Q,q,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:w,relevance:5,contains:[{begin:_.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[_.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:w,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[Ee,_.C_LINE_COMMENT_MODE,pe],relevance:0},_.C_LINE_COMMENT_MODE,pe,Q,q,z,_.C_NUMBER_MODE]},pe]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},_.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},Q,q]},z,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
29
+ `},de]}},grmr_less:_=>{const w=nn(_),B=Vr,U="([\\w-]+|@\\{[\\w-]+\\})",J=[],z=[],Q=Nn=>({className:"string",begin:"~?"+Nn+".*?"+Nn}),q=(Nn,dn,be)=>({className:Nn,begin:dn,relevance:be}),de={$pattern:/[a-z-]+/,keyword:"and or not only",attribute:Fn.join(" ")},pe={begin:"\\(",end:"\\)",contains:z,keywords:de,relevance:0};z.push(_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE,Q("'"),Q('"'),w.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},w.HEXCOLOR,pe,q("variable","@@?[\\w-]+",10),q("variable","@\\{[\\w-]+\\}"),q("built_in","~?`[^`]*?`"),{className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0},w.IMPORTANT);const Ee=z.concat({begin:/\{/,end:/\}/,contains:J}),Se={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(z)},Fe={begin:U+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},w.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ur.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:z}}]},ut={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:de,returnEnd:!0,contains:z,relevance:0}},Ge={className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:Ee}},Rt={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:U,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE,Se,q("keyword","all\\b"),q("variable","@\\{[\\w-]+\\}"),{begin:"\\b("+kn.join("|")+")\\b",className:"selector-tag"},w.CSS_NUMBER_MODE,q("selector-tag",U,0),q("selector-id","#"+U),q("selector-class","\\."+U,0),q("selector-tag","&",0),w.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+rn.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Hn.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:Ee},{begin:"!important"},w.FUNCTION_DISPATCH]},On={begin:`[\\w-]+:(:)?(${B.join("|")})`,returnBegin:!0,contains:[Rt]};return J.push(_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE,ut,Ge,On,Fe,Rt),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:J}},grmr_lua:_=>{const w="\\[=*\\[",B="\\]=*\\]",U={begin:w,end:B,contains:["self"]},J=[_.COMMENT("--(?!\\[=*\\[)","$"),_.COMMENT("--\\[=*\\[",B,{contains:[U],relevance:10})];return{name:"Lua",keywords:{$pattern:_.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:J.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[_.inherit(_.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:J}].concat(J)},_.C_NUMBER_MODE,_.APOS_STRING_MODE,_.QUOTE_STRING_MODE,{className:"string",begin:w,end:B,contains:[U],relevance:5}])}},grmr_makefile:_=>{const w={className:"variable",variants:[{begin:"\\$\\("+_.UNDERSCORE_IDENT_RE+"\\)",contains:[_.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},B={className:"string",begin:/"/,end:/"/,contains:[_.BACKSLASH_ESCAPE,w]},U={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[w]},J={begin:"^"+_.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},z={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[w]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[_.HASH_COMMENT_MODE,w,B,U,J,{className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},z]}},grmr_xml:_=>{const w=_.regex,B=w.concat(/[A-Z_]/,w.optional(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),U={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},J={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},z=_.inherit(J,{begin:/\(/,end:/\)/}),Q=_.inherit(_.APOS_STRING_MODE,{className:"string"}),q=_.inherit(_.QUOTE_STRING_MODE,{className:"string"}),de={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[A-Za-z0-9._:-]+/,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[U]},{begin:/'/,end:/'/,contains:[U]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[J,q,Q,z,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[J,z,q,Q]}]}]},_.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},U,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[de],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[de],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:w.concat(/</,w.lookahead(w.concat(B,w.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:B,relevance:0,starts:de}]},{className:"tag",begin:w.concat(/<\//,w.lookahead(w.concat(B,/>/))),contains:[{className:"name",begin:B,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}},grmr_markdown:_=>{const w={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},B={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:_.regex.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},U={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},J={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]};U.contains.push(J),J.contains.push(U);let z=[w,B];return U.contains=U.contains.concat(z),J.contains=J.contains.concat(z),z=z.concat(U,J),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:z},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:z}]}]},w,{className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},U,J,{className:"quote",begin:"^>\\s+",contains:z,end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},B,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}},grmr_objectivec:_=>{const w=/[a-zA-Z@][a-zA-Z0-9_]*/,B={$pattern:w,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:{$pattern:w,keyword:["int","float","while","char","export","sizeof","typedef","const","struct","for","union","unsigned","long","volatile","static","bool","mutable","if","do","return","goto","void","enum","else","break","extern","asm","case","short","default","double","register","explicit","signed","typename","this","switch","continue","wchar_t","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","super","unichar","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["BOOL","dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"]},illegal:"</",contains:[{className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE,_.C_NUMBER_MODE,_.QUOTE_STRING_MODE,_.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[_.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},_.inherit(_.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+B.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:B,contains:[_.UNDERSCORE_TITLE_MODE]},{begin:"\\."+_.UNDERSCORE_IDENT_RE,relevance:0}]}},grmr_perl:_=>{const w=_.regex,B=/[dualxmsipngr]{0,12}/,U={$pattern:/[\w.]+/,keyword:"abs accept alarm and atan2 bind binmode bless break caller chdir chmod chomp chop chown chr chroot close closedir connect continue cos crypt dbmclose dbmopen defined delete die do dump each else elsif endgrent endhostent endnetent endprotoent endpwent endservent eof eval exec exists exit exp fcntl fileno flock for foreach fork format formline getc getgrent getgrgid getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr getnetbyname getnetent getpeername getpgrp getpriority getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid getservbyname getservbyport getservent getsockname getsockopt given glob gmtime goto grep gt hex if index int ioctl join keys kill last lc lcfirst length link listen local localtime log lstat lt ma map mkdir msgctl msgget msgrcv msgsnd my ne next no not oct open opendir or ord our pack package pipe pop pos print printf prototype push q|0 qq quotemeta qw qx rand read readdir readline readlink readpipe recv redo ref rename require reset return reverse rewinddir rindex rmdir say scalar seek seekdir select semctl semget semop send setgrent sethostent setnetent setpgrp setpriority setprotoent setpwent setservent setsockopt shift shmctl shmget shmread shmwrite shutdown sin sleep socket socketpair sort splice split sprintf sqrt srand stat state study sub substr symlink syscall sysopen sysread sysseek system syswrite tell telldir tie tied time times tr truncate uc ucfirst umask undef unless unlink unpack unshift untie until use utime values vec wait waitpid wantarray warn when while write x|0 xor y|0"},J={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:U},z={begin:/->\{/,end:/\}/},Q={variants:[{begin:/\$\d/},{begin:w.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},q=[_.BACKSLASH_ESCAPE,J,Q],de=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],pe=(Fe,ut,Ge="\\1")=>{const Rt=Ge==="\\1"?Ge:w.concat(Ge,ut);return w.concat(w.concat("(?:",Fe,")"),ut,/(?:\\.|[^\\\/])*?/,Rt,/(?:\\.|[^\\\/])*?/,Ge,B)},Ee=(Fe,ut,Ge)=>w.concat(w.concat("(?:",Fe,")"),ut,/(?:\\.|[^\\\/])*?/,Ge,B),Se=[Q,_.HASH_COMMENT_MODE,_.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),z,{className:"string",contains:q,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[_.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[_.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+_.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[_.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:pe("s|tr|y",w.either(...de,{capture:!0}))},{begin:pe("s|tr|y","\\(","\\)")},{begin:pe("s|tr|y","\\[","\\]")},{begin:pe("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:Ee("(?:m|qr)?",/\//,/\//)},{begin:Ee("m|qr",w.either(...de,{capture:!0}),/\1/)},{begin:Ee("m|qr",/\(/,/\)/)},{begin:Ee("m|qr",/\[/,/\]/)},{begin:Ee("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[_.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return J.contains=Se,z.contains=Se,{name:"Perl",aliases:["pl","pm"],keywords:U,contains:Se}},grmr_php:_=>{const w=_.regex,B="[a-zA-Z0-9_-ÿ]*(?![A-Za-z0-9])(?![$]))",U=w.concat("([a-zA-Z_\\x7f-\\xff]",B),J=w.concat("([A-Z]",B),z={scope:"variable",match:"\\$+"+U},Q={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},q=_.inherit(_.APOS_STRING_MODE,{illegal:null}),de=`[
30
+ ]`,pe={scope:"string",variants:[_.inherit(_.QUOTE_STRING_MODE,{illegal:null,contains:_.QUOTE_STRING_MODE.contains.concat(Q)}),q,_.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:_.QUOTE_STRING_MODE.contains.concat(Q)})]},Ee={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},Se=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],Fe=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],ut={keyword:Se,literal:(be=>{const Le=[];return["false","null","true"].forEach(Ue=>{Le.push(Ue),Ue.toLowerCase()===Ue?Le.push(Ue.toUpperCase()):Le.push(Ue.toLowerCase())}),Le})(),built_in:Fe},Ge=be=>be.map(Le=>Le.replace(/\|\d+$/,"")),Rt={variants:[{match:[/new/,w.concat(de,"+"),w.concat("(?!",Ge(Fe).join("\\b|"),"\\b)"),w.concat(/\\?/,U),w.concat(de,"*",/\(/)],scope:{1:"keyword",4:"title.class"}}]},On={relevance:0,match:[/\b/,w.concat("(?!fn\\b|function\\b|",Ge(Se).join("\\b|"),"|",Ge(Fe).join("\\b|"),"\\b)"),U,w.concat(de,"*"),w.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"}},Nn=w.concat(U,"\\b(?!\\()"),dn={variants:[{match:[w.concat(/::/,w.lookahead(/(?!class\b)/)),Nn],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[J,w.concat("::",w.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[J,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]};return{case_insensitive:!1,keywords:ut,contains:[_.HASH_COMMENT_MODE,_.COMMENT("//","$"),_.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:_.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},{scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{begin:/\?>/}]},{scope:"variable.language",match:/\$this\b/},z,On,dn,{match:[/const/,/\s/,U,/\s*=/],scope:{1:"keyword",3:"variable.constant"}},Rt,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},_.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:ut,contains:["self",z,dn,_.C_BLOCK_COMMENT_MODE,pe,Ee]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},_.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[_.inherit(_.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},_.UNDERSCORE_TITLE_MODE]},pe,Ee]}},grmr_php_template:_=>({name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},_.inherit(_.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),_.inherit(_.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}),grmr_plaintext:_=>({name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}),grmr_python:_=>{const w=_.regex,B=/[\p{XID_Start}_]\p{XID_Continue}*/u,U=["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],J={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:U,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},z={className:"meta",begin:/^(>>>|\.\.\.) /},Q={className:"subst",begin:/\{/,end:/\}/,keywords:J,illegal:/#/},q={begin:/\{\{/,relevance:0},de={className:"string",contains:[_.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[_.BACKSLASH_ESCAPE,z],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[_.BACKSLASH_ESCAPE,z],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[_.BACKSLASH_ESCAPE,z,q,Q]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[_.BACKSLASH_ESCAPE,z,q,Q]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[_.BACKSLASH_ESCAPE,q,Q]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[_.BACKSLASH_ESCAPE,q,Q]},_.APOS_STRING_MODE,_.QUOTE_STRING_MODE]},pe="[0-9](_?[0-9])*",Ee=`(\\b(${pe}))?\\.(${pe})|\\b(${pe})\\.`,Se="\\b|"+U.join("|"),Fe={className:"number",relevance:0,variants:[{begin:`(\\b(${pe})|(${Ee}))[eE][+-]?(${pe})[jJ]?(?=${Se})`},{begin:`(${Ee})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${Se})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${Se})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${Se})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${Se})`},{begin:`\\b(${pe})[jJ](?=${Se})`}]},ut={className:"comment",begin:w.lookahead(/# type:/),end:/$/,keywords:J,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},Ge={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:J,contains:["self",z,Fe,de,_.HASH_COMMENT_MODE]}]};return Q.contains=[de,Fe,z],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:J,illegal:/(<\/|->|\?)|=>/,contains:[z,Fe,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},de,ut,_.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,B],scope:{1:"keyword",3:"title.function"},contains:[Ge]},{variants:[{match:[/\bclass/,/\s+/,B,/\s*/,/\(\s*/,B,/\s*\)/]},{match:[/\bclass/,/\s+/,B]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[Fe,Ge,de]}]}},grmr_python_repl:_=>({aliases:["pycon"],contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}),grmr_r:_=>{const w=_.regex,B=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,U=w.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),J=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,z=w.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:B,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[_.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:w.lookahead(w.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:B},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),_.HASH_COMMENT_MODE,{scope:"string",contains:[_.BACKSLASH_ESCAPE],variants:[_.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),_.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),_.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),_.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),_.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),_.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[J,U]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,U]},{scope:{1:"punctuation",2:"number"},match:[z,U]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,U]}]},{scope:{3:"operator"},match:[B,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:J},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:z},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}},grmr_ruby:_=>{const w=_.regex,B="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",U={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor __FILE__",built_in:"proc lambda",literal:"true false nil"},J={className:"doctag",begin:"@[A-Za-z]+"},z={begin:"#<",end:">"},Q=[_.COMMENT("#","$",{contains:[J]}),_.COMMENT("^=begin","^=end",{contains:[J],relevance:10}),_.COMMENT("^__END__","\\n$")],q={className:"subst",begin:/#\{/,end:/\}/,keywords:U},de={className:"string",contains:[_.BACKSLASH_ESCAPE,q],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:w.concat(/<<[-~]?'?/,w.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[_.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[_.BACKSLASH_ESCAPE,q]})]}]},pe="[0-9](_?[0-9])*",Ee={className:"number",relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${pe}))?([eE][+-]?(${pe})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},Se={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:U},Fe=[de,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[_.inherit(_.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"}),{begin:"<\\s*",contains:[{begin:"("+_.IDENT_RE+"::)?"+_.IDENT_RE,relevance:0}]}].concat(Q)},{className:"function",begin:w.concat(/def\s+/,w.lookahead(B+"\\s*(\\(|;|$)")),relevance:0,keywords:"def",end:"$|;",contains:[_.inherit(_.TITLE_MODE,{begin:B}),Se].concat(Q)},{begin:_.IDENT_RE+"::"},{className:"symbol",begin:_.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[de,{begin:B}],relevance:0},Ee,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,relevance:0,keywords:U},{begin:"("+_.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[_.BACKSLASH_ESCAPE,q],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(z,Q),relevance:0}].concat(z,Q);q.contains=Fe,Se.contains=Fe;const ut=[{begin:/^\s*=>/,starts:{end:"$",contains:Fe}},{className:"meta",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])",starts:{end:"$",contains:Fe}}];return Q.unshift(z),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:U,illegal:/\/\*/,contains:[_.SHEBANG({binary:"ruby"})].concat(ut).concat(Q).concat(Fe)}},grmr_rust:_=>{const w=_.regex,B={className:"title.function.invoke",relevance:0,begin:w.concat(/\b/,/(?!let\b)/,_.IDENT_RE,w.lookahead(/\s*\(/))},U="([ui](8|16|32|64|128|size)|f(32|64))?",J=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bin!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:_.IDENT_RE+"!?",type:["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"],keyword:["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],literal:["true","false","Some","None","Ok","Err"],built_in:J},illegal:"</",contains:[_.C_LINE_COMMENT_MODE,_.COMMENT("/\\*","\\*/",{contains:["self"]}),_.inherit(_.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+U},{begin:"\\b0o([0-7_]+)"+U},{begin:"\\b0x([A-Fa-f0-9_]+)"+U},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+U}],relevance:0},{begin:[/fn/,/\s+/,_.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,_.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,_.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,_.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,_.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:_.IDENT_RE+"::",keywords:{keyword:"Self",built_in:J}},{className:"punctuation",begin:"->"},B]}},grmr_scss:_=>{const w=nn(_),B=Hn,U=rn,J="@[a-z-]+",z={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[_.C_LINE_COMMENT_MODE,_.C_BLOCK_COMMENT_MODE,w.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},w.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+kn.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+U.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+B.join("|")+")"},z,{begin:/\(/,end:/\)/,contains:[w.CSS_NUMBER_MODE]},w.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ur.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,contains:[w.BLOCK_COMMENT,z,w.HEXCOLOR,w.CSS_NUMBER_MODE,_.QUOTE_STRING_MODE,_.APOS_STRING_MODE,w.IMPORTANT]},{begin:"@(page|font-face)",keywords:{$pattern:J,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:Fn.join(" ")},contains:[{begin:J,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},z,_.QUOTE_STRING_MODE,_.APOS_STRING_MODE,w.HEXCOLOR,w.CSS_NUMBER_MODE]},w.FUNCTION_DISPATCH]}},grmr_shell:_=>({name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}),grmr_sql:_=>{const w=_.regex,B=_.COMMENT("--","$"),U=["true","false","unknown"],J=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],z=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],Q=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],q=z,de=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter(Ee=>!z.includes(Ee)),pe={begin:w.concat(/\b/,w.either(...q),/\s*\(/),relevance:0,keywords:{built_in:q}};return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:((Ee,{exceptions:Se,when:Fe}={})=>{const ut=Fe;return Se=Se||[],Ee.map(Ge=>Ge.match(/\|\d+$/)||Se.includes(Ge)?Ge:ut(Ge)?Ge+"|0":Ge)})(de,{when:Ee=>Ee.length<3}),literal:U,type:J,built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"]},contains:[{begin:w.either(...Q),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:de.concat(Q),literal:U,type:J}},{className:"type",begin:w.either("double precision","large object","with timezone","without timezone")},pe,{className:"variable",begin:/@[a-z0-9]+/},{className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},{begin:/"/,end:/"/,contains:[{begin:/""/}]},_.C_NUMBER_MODE,_.C_BLOCK_COMMENT_MODE,B,{className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}},grmr_swift:_=>{const w={match:/\s+/,relevance:0},B=_.COMMENT("/\\*","\\*/",{contains:["self"]}),U=[_.C_LINE_COMMENT_MODE,B],J={match:[/\./,m(...zi,...er)],className:{2:"keyword"}},z={match:h(/\./,m(...Rr)),relevance:0},Q=Rr.filter(it=>typeof it=="string").concat(["_|0"]),q={variants:[{className:"keyword",match:m(...Rr.filter(it=>typeof it!="string").concat(Uc).map(Tn),...er)}]},de={$pattern:m(/\b\w+/,/#\w+/),keyword:Q.concat(Gc),literal:Ol},pe=[J,z,q],Ee=[{match:h(/\./,m(...Nl)),relevance:0},{className:"built_in",match:h(/\b/,m(...Nl),/(?=\()/)}],Se={match:/->/,relevance:0},Fe=[Se,{className:"operator",relevance:0,variants:[{match:as},{match:`\\.(\\.|${dr})+`}]}],ut="([0-9a-fA-F]_*)+",Ge={className:"number",relevance:0,variants:[{match:"\\b(([0-9]_*)+)(\\.(([0-9]_*)+))?([eE][+-]?(([0-9]_*)+))?\\b"},{match:`\\b0x(${ut})(\\.(${ut}))?([pP][+-]?(([0-9]_*)+))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Rt=(it="")=>({className:"subst",variants:[{match:h(/\\/,it,/[0\\tnr"']/)},{match:h(/\\/,it,/u\{[0-9a-fA-F]{1,8}\}/)}]}),On=(it="")=>({className:"subst",match:h(/\\/,it,/[\t ]*(?:[\r\n]|\r\n)/)}),Nn=(it="")=>({className:"subst",label:"interpol",begin:h(/\\/,it,/\(/),end:/\)/}),dn=(it="")=>({begin:h(it,/"""/),end:h(/"""/,it),contains:[Rt(it),On(it),Nn(it)]}),be=(it="")=>({begin:h(it,/"/),end:h(/"/,it),contains:[Rt(it),Nn(it)]}),Le={className:"string",variants:[dn(),dn("#"),dn("##"),dn("###"),be(),be("#"),be("##"),be("###")]},Ue={match:h(/`/,Mr,/`/)},Ft=[Ue,{className:"variable",match:/\$\d+/},{className:"variable",match:`\\$${fa}+`}],At=[{match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Kc,contains:[...Fe,Ge,Le]}]}},{className:"keyword",match:h(/@/,m(...Ui))},{className:"meta",match:h(/@/,Mr)}],pt={match:f(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:h(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,fa,"+")},{className:"type",match:ss,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:h(/\s+&\s+/,f(ss)),relevance:0}]},Gt={begin:/</,end:/>/,keywords:de,contains:[...U,...pe,...At,Se,pt]};pt.contains.push(Gt);const Vt={begin:/\(/,end:/\)/,relevance:0,keywords:de,contains:["self",{match:h(Mr,/\s*:/),keywords:"_|0",relevance:0},...U,...pe,...Ee,...Fe,Ge,Le,...Ft,...At,pt]},Tt={begin:/</,end:/>/,contains:[...U,pt]},on={begin:/\(/,end:/\)/,keywords:de,contains:[{begin:m(f(h(Mr,/\s*:/)),f(h(Mr,/\s+/,Mr,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Mr}]},...U,...pe,...Fe,Ge,Le,...At,pt,Vt],endsParent:!0,illegal:/["']/},di={match:[/func/,/\s+/,m(Ue.match,Mr,as)],className:{1:"keyword",3:"title.function"},contains:[Tt,on,w],illegal:[/\[/,/%/]},Lr={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Tt,on,w],illegal:/\[|%/},tr={match:[/operator/,/\s+/,as],className:{1:"keyword",3:"title"}},ji={begin:[/precedencegroup/,/\s+/,ss],className:{1:"keyword",3:"title"},contains:[pt],keywords:[...jc,...Ol],end:/}/};for(const it of Le.variants){const To=it.contains.find(Ke=>Ke.label==="interpol");To.keywords=de;const Gi=[...pe,...Ee,...Fe,Ge,Le,...Ft];To.contains=[...Gi,{begin:/\(/,end:/\)/,contains:["self",...Gi]}]}return{name:"Swift",keywords:de,contains:[...U,di,Lr,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:de,contains:[_.inherit(_.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...pe]},tr,ji,{beginKeywords:"import",end:/$/,contains:[...U],relevance:0},...pe,...Ee,...Fe,Ge,Le,...Ft,...At,pt,Vt]}},grmr_typescript:_=>{const w=wt(_),B=["any","void","number","boolean","string","object","never","enum"],U={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[w.exports.CLASS_REFERENCE]},J={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:B},contains:[w.exports.CLASS_REFERENCE]},z={$pattern:re,keyword:ye.concat(["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"]),literal:Qt,built_in:yt.concat(B),"variable.language":zn},Q={className:"meta",begin:"@[A-Za-z$_][0-9A-Za-z$_]*"},q=(de,pe,Ee)=>{const Se=de.contains.findIndex(Fe=>Fe.label===pe);if(Se===-1)throw Error("can not find mode to replace");de.contains.splice(Se,1,Ee)};return Object.assign(w.keywords,z),w.exports.PARAMS_CONTAINS.push(Q),w.contains=w.contains.concat([Q,U,J]),q(w,"shebang",_.SHEBANG()),q(w,"use_strict",{className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/}),w.contains.find(de=>de.label==="func.def").relevance=0,Object.assign(w,{name:"TypeScript",aliases:["ts","tsx"]}),w},grmr_vbnet:_=>{const w=_.regex,B=/\d{1,2}\/\d{1,2}\/\d{4}/,U=/\d{4}-\d{1,2}-\d{1,2}/,J=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,z=/\d{1,2}(:\d{1,2}){1,2}/,Q={className:"literal",variants:[{begin:w.concat(/# */,w.either(U,B),/ *#/)},{begin:w.concat(/# */,z,/ *#/)},{begin:w.concat(/# */,J,/ *#/)},{begin:w.concat(/# */,w.either(U,B),/ +/,w.either(J,z),/ *#/)}]},q=_.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),de=_.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[{className:"string",begin:/"(""|[^/n])"C\b/},{className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},Q,{className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},{className:"label",begin:/^\w+:/},q,de,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[de]}]}},grmr_yaml:_=>{const w="true false yes no null",B="[\\w#;/?:@&=+$,.~*'()[\\]]+",U={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[_.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},J=_.inherit(U,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),z={end:",",endsWithParent:!0,excludeEnd:!0,keywords:w,relevance:0},Q={begin:/\{/,end:/\}/,contains:[z],illegal:"\\n",relevance:0},q={begin:"\\[",end:"\\]",contains:[z],illegal:"\\n",relevance:0},de=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+B},{className:"type",begin:"!<"+B+">"},{className:"type",begin:"!"+B},{className:"type",begin:"!!"+B},{className:"meta",begin:"&"+_.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+_.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},_.HASH_COMMENT_MODE,{beginKeywords:w,keywords:{literal:w}},{className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},{className:"number",begin:_.C_NUMBER_RE+"\\b",relevance:0},Q,q,U],pe=[...de];return pe.pop(),pe.push(J),z.contains=pe,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:de}}});const Ll=cr;for(const _ of Object.keys(Ml)){const w=_.replace("grmr_","").replace("_","-");Ll.registerLanguage(w,Ml[_])}return Ll}();typeof exports=="object"&&typeof module<"u"&&(module.exports=xx);const SC=Bt("<div></div>");var CC=Object.create,pd=Object.defineProperty,wC=Object.getOwnPropertyDescriptor,bx=Object.getOwnPropertyNames,AC=Object.getPrototypeOf,kC=Object.prototype.hasOwnProperty,El=(e,t)=>function(){return t||(0,e[bx(e)[0]])((t={exports:{}}).exports,t),t.exports},_x=(e,t)=>{for(var n in t)pd(e,n,{get:t[n],enumerable:!0})},OC=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of bx(t))!kC.call(e,i)&&i!==n&&pd(e,i,{get:()=>t[i],enumerable:!(r=wC(t,i))||r.enumerable});return e},bo=(e,t,n)=>(n=e!=null?CC(AC(e)):{},OC(t||!e||!e.__esModule?pd(n,"default",{value:e,enumerable:!0}):n,e)),Sc=El({"node_modules/mdurl/encode.js"(e,t){var n={};function r(o){var a,s,l=n[o];if(l)return l;for(l=n[o]=[],a=0;a<128;a++)s=String.fromCharCode(a),/^[0-9a-z]$/i.test(s)?l.push(s):l.push("%"+("0"+a.toString(16).toUpperCase()).slice(-2));for(a=0;a<o.length;a++)l[o.charCodeAt(a)]=o[a];return l}function i(o,a,s){var l,c,u,f,g,d="";for(typeof a!="string"&&(s=a,a=i.defaultChars),typeof s>"u"&&(s=!0),g=r(a),l=0,c=o.length;l<c;l++){if(u=o.charCodeAt(l),s&&u===37&&l+2<c&&/^[0-9a-f]{2}$/i.test(o.slice(l+1,l+3))){d+=o.slice(l,l+3),l+=2;continue}if(u<128){d+=g[u];continue}if(u>=55296&&u<=57343){if(u>=55296&&u<=56319&&l+1<c&&(f=o.charCodeAt(l+1),f>=56320&&f<=57343)){d+=encodeURIComponent(o[l]+o[l+1]),l++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(o[l])}return d}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",t.exports=i}}),vx=El({"node_modules/is-buffer/index.js"(e,t){t.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}}}),NC=El({"node_modules/extend/index.js"(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(f){return typeof Array.isArray=="function"?Array.isArray(f):r.call(f)==="[object Array]"},s=function(f){if(!f||r.call(f)!=="[object Object]")return!1;var g=n.call(f,"constructor"),d=f.constructor&&f.constructor.prototype&&n.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!g&&!d)return!1;var h;for(h in f);return typeof h>"u"||n.call(f,h)},l=function(f,g){i&&g.name==="__proto__"?i(f,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):f[g.name]=g.newValue},c=function(f,g){if(g==="__proto__")if(n.call(f,g)){if(o)return o(f,g).value}else return;return f[g]};t.exports=function u(){var f,g,d,h,m,p,b=arguments[0],E=1,v=arguments.length,N=!1;for(typeof b=="boolean"&&(N=b,b=arguments[1]||{},E=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});E<v;++E)if(f=arguments[E],f!=null)for(g in f)d=c(b,g),h=c(f,g),b!==h&&(N&&h&&(s(h)||(m=a(h)))?(m?(m=!1,p=d&&a(d)?d:[]):p=d&&s(d)?d:{},l(b,{name:g,newValue:u(N,p,h)})):typeof h<"u"&&l(b,{name:g,newValue:h}));return b}}}),IC=El({"node_modules/inline-style-parser/index.js"(e,t){var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,c=/^\s+|\s+$/g,u=`
31
+ `,f="/",g="*",d="",h="comment",m="declaration";t.exports=function(b,E){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];E=E||{};var v=1,N=1;function I(ae){var D=ae.match(r);D&&(v+=D.length);var Re=ae.lastIndexOf(u);N=~Re?ae.length-Re:N+ae.length}function S(){var ae={line:v,column:N};return function(D){return D.position=new y(ae),j(),D}}function y(ae){this.start=ae,this.end={line:v,column:N},this.source=E.source}y.prototype.content=b;function O(ae){var D=new Error(E.source+":"+v+":"+N+": "+ae);if(D.reason=ae,D.filename=E.source,D.line=v,D.column=N,D.source=b,!E.silent)throw D}function M(ae){var D=ae.exec(b);if(D){var Re=D[0];return I(Re),b=b.slice(Re.length),D}}function j(){M(i)}function H(ae){var D;for(ae=ae||[];D=X();)D!==!1&&ae.push(D);return ae}function X(){var ae=S();if(!(f!=b.charAt(0)||g!=b.charAt(1))){for(var D=2;d!=b.charAt(D)&&(g!=b.charAt(D)||f!=b.charAt(D+1));)++D;if(D+=2,d===b.charAt(D-1))return O("End of comment missing");var Re=b.slice(2,D-2);return N+=2,I(Re),b=b.slice(D),N+=2,ae({type:h,comment:Re})}}function ne(){var ae=S(),D=M(o);if(D){if(X(),!M(a))return O("property missing ':'");var Re=M(s),Y=ae({type:m,property:p(D[0].replace(n,d)),value:Re?p(Re[0].replace(n,d)):d});return M(l),Y}}function oe(){var ae=[];H(ae);for(var D;D=ne();)D!==!1&&(ae.push(D),H(ae));return ae}return j(),oe()};function p(b){return b?b.replace(c,d):d}}}),RC=El({"node_modules/style-to-object/index.js"(e,t){var n=IC();function r(i,o){var a=null;if(!i||typeof i!="string")return a;for(var s,l=n(i),c=typeof o=="function",u,f,g=0,d=l.length;g<d;g++)s=l[g],u=s.property,f=s.value,c?o(u,f,s):f&&(a||(a={}),a[u]=f);return a}t.exports=r}});function MC(e,t){var{includeImageAlt:n=!0}=t||{};return Ex(e,n)}function Ex(e,t){return e&&typeof e=="object"&&(e.value||(t?e.alt:"")||"children"in e&&Th(e.children,t)||Array.isArray(e)&&Th(e,t))||""}function Th(e,t){for(var n=[],r=-1;++r<e.length;)n[r]=Ex(e[r],t);return n.join("")}function ai(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),[].splice.apply(e,a);else for(n&&[].splice.apply(e,[t,n]);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),[].splice.apply(e,a),o+=1e4,t+=1e4}function xr(e,t){return e.length>0?(ai(e,e.length,0,t),e):t}var yh={}.hasOwnProperty;function LC(e){const t={};let n=-1;for(;++n<e.length;)PC(t,e[n]);return t}function PC(e,t){let n;for(n in t){const i=(yh.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;for(a in o){yh.call(i,a)||(i[a]=[]);const s=o[a];DC(i[a],Array.isArray(s)?s:s?[s]:[])}}}function DC(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ai(e,0,0,r)}var $C=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Jr=_o(/[A-Za-z]/),_u=_o(/\d/),BC=_o(/[\dA-Fa-f]/),ar=_o(/[\dA-Za-z]/),FC=_o(/[!-/:-@[-`{-~]/),Sh=_o(/[#-'*+\--9=?A-Z^-~]/);function vu(e){return e!==null&&(e<32||e===127)}function Er(e){return e!==null&&(e<0||e===32)}function Ve(e){return e!==null&&e<-2}function un(e){return e===-2||e===-1||e===32}var HC=_o(/\s/),zC=_o($C);function _o(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function Pt(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return un(l)?(e.enter(n),s(l)):t(l)}function s(l){return un(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}var UC={tokenize:jC};function jC(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Pt(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Ve(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}var GC={tokenize:KC},Ch={tokenize:WC};function KC(e){const t=this,n=[];let r=0,i,o,a;return s;function s(v){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,l,c)(v)}return c(v)}function l(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&E();const N=t.events.length;let I=N,S;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){S=t.events[I][1].end;break}b(r);let y=N;for(;y<t.events.length;)t.events[y][1].end=Object.assign({},S),y++;return ai(t.events,I+1,0,t.events.slice(N)),t.events.length=y,c(v)}return s(v)}function c(v){if(r===n.length){if(!i)return g(v);if(i.currentConstruct&&i.currentConstruct.concrete)return h(v);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ch,u,f)(v)}function u(v){return i&&E(),b(r),g(v)}function f(v){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,h(v)}function g(v){return t.containerState={},e.attempt(Ch,d,h)(v)}function d(v){return r++,n.push([t.currentConstruct,t.containerState]),g(v)}function h(v){if(v===null){i&&E(),b(0),e.consume(v);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),m(v)}function m(v){if(v===null){p(e.exit("chunkFlow"),!0),b(0),e.consume(v);return}return Ve(v)?(e.consume(v),p(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(v),m)}function p(v,N){const I=t.sliceStream(v);if(N&&I.push(null),v.previous=o,o&&(o.next=v),o=v,i.defineSkip(v.start),i.write(I),t.parser.lazy[v.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<a&&(!i.events[S][1].end||i.events[S][1].end.offset>a))return;const y=t.events.length;let O=y,M,j;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){if(M){j=t.events[O][1].end;break}M=!0}for(b(r),S=y;S<t.events.length;)t.events[S][1].end=Object.assign({},j),S++;ai(t.events,O+1,0,t.events.slice(y)),t.events.length=S}}function b(v){let N=n.length;for(;N-- >v;){const I=n[N];t.containerState=I[1],I[0].exit.call(t,e)}n.length=v}function E(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function WC(e,t,n){return Pt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wh(e){if(e===null||Er(e)||HC(e))return 1;if(zC(e))return 2}function xd(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}var Eu={name:"attention",tokenize:qC,resolveAll:VC};function VC(e,t){let n=-1,r,i,o,a,s,l,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),g=Object.assign({},e[n][1].start);Ah(f,-l),Ah(g,l),a={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:g},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=xr(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=xr(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=xr(c,xd(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=xr(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=xr(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,ai(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function qC(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=wh(r);let o;return a;function a(l){return e.enter("attentionSequence"),o=l,s(l)}function s(l){if(l===o)return e.consume(l),s;const c=e.exit("attentionSequence"),u=wh(l),f=!u||u===2&&i||n.includes(l),g=!i||i===2&&u||n.includes(r);return c._open=!!(o===42?f:f&&(i||!g)),c._close=!!(o===42?g:g&&(u||!f)),t(l)}}function Ah(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var YC={name:"autolink",tokenize:XC};function XC(e,t,n){let r=1;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Jr(h)?(e.consume(h),a):Sh(h)?c(h):n(h)}function a(h){return h===43||h===45||h===46||ar(h)?s(h):c(h)}function s(h){return h===58?(e.consume(h),l):(h===43||h===45||h===46||ar(h))&&r++<32?(e.consume(h),s):c(h)}function l(h){return h===62?(e.exit("autolinkProtocol"),d(h)):h===null||h===32||h===60||vu(h)?n(h):(e.consume(h),l)}function c(h){return h===64?(e.consume(h),r=0,u):Sh(h)?(e.consume(h),c):n(h)}function u(h){return ar(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,u):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",d(h)):g(h)}function g(h){return(h===45||ar(h))&&r++<63?(e.consume(h),h===45?g:f):n(h)}function d(h){return e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t}}var Cc={tokenize:QC,partial:!0};function QC(e,t,n){return Pt(e,r,"linePrefix");function r(i){return i===null||Ve(i)?t(i):n(i)}}var Tx={name:"blockQuote",tokenize:ZC,continuation:{tokenize:JC},exit:ew};function ZC(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return un(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function JC(e,t,n){return Pt(e,e.attempt(Tx,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ew(e){e.exit("blockQuote")}var yx={name:"characterEscape",tokenize:tw};function tw(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return FC(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}var kh=document.createElement("i");function bd(e){const t="&"+e+";";kh.innerHTML=t;const n=kh.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}var Sx={name:"characterReference",tokenize:nw};function nw(e,t,n){const r=this;let i=0,o,a;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=ar,u(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=BC,u):(e.enter("characterReferenceValue"),o=7,a=_u,u(f))}function u(f){let g;return f===59&&i?(g=e.exit("characterReferenceValue"),a===ar&&!bd(r.sliceSerialize(g))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):a(f)&&i++<o?(e.consume(f),u):n(f)}}var Oh={name:"codeFenced",tokenize:rw,concrete:!0};function rw(e,t,n){const r=this,i={tokenize:I,partial:!0},o={tokenize:N,partial:!0},a=this.events[this.events.length-1],s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let l=0,c;return u;function u(S){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c=S,f(S)}function f(S){return S===c?(e.consume(S),l++,f):(e.exit("codeFencedFenceSequence"),l<3?n(S):Pt(e,g,"whitespace")(S))}function g(S){return S===null||Ve(S)?p(S):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===null||Er(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Pt(e,h,"whitespace")(S)):S===96&&S===c?n(S):(e.consume(S),d)}function h(S){return S===null||Ve(S)?p(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||Ve(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(S)):S===96&&S===c?n(S):(e.consume(S),m)}function p(S){return e.exit("codeFencedFence"),r.interrupt?t(S):b(S)}function b(S){return S===null?v(S):Ve(S)?e.attempt(o,e.attempt(i,v,s?Pt(e,b,"linePrefix",s+1):b),v)(S):(e.enter("codeFlowValue"),E(S))}function E(S){return S===null||Ve(S)?(e.exit("codeFlowValue"),b(S)):(e.consume(S),E)}function v(S){return e.exit("codeFenced"),t(S)}function N(S,y,O){const M=this;return j;function j(X){return S.enter("lineEnding"),S.consume(X),S.exit("lineEnding"),H}function H(X){return M.parser.lazy[M.now().line]?O(X):y(X)}}function I(S,y,O){let M=0;return Pt(S,j,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function j(ne){return S.enter("codeFencedFence"),S.enter("codeFencedFenceSequence"),H(ne)}function H(ne){return ne===c?(S.consume(ne),M++,H):M<l?O(ne):(S.exit("codeFencedFenceSequence"),Pt(S,X,"whitespace")(ne))}function X(ne){return ne===null||Ve(ne)?(S.exit("codeFencedFence"),y(ne)):O(ne)}}}var f0={name:"codeIndented",tokenize:ow},iw={tokenize:aw,partial:!0};function ow(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Pt(e,o,"linePrefix",4+1)(c)}function o(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):Ve(c)?e.attempt(iw,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||Ve(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function aw(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):Ve(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Pt(e,o,"linePrefix",4+1)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):Ve(a)?i(a):n(a)}}var sw={name:"codeText",tokenize:uw,resolve:lw,previous:cw};function lw(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function cw(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function uw(e,t,n){let r=0,i,o;return a;function a(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),r++,s):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===96?(o=e.enter("codeTextSequence"),i=0,u(f)):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):Ve(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||Ve(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),c)}function u(f){return f===96?(e.consume(f),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(o.type="codeTextData",c(f))}}function Cx(e){const t={};let n=-1,r,i,o,a,s,l,c;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,dw(e,n)),n=t[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(a=e[o],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(r[1].end=Object.assign({},e[i][1].start),s=e.slice(i,n),s.unshift(r),ai(e,i,n-i+1,s))}}return!c}function dw(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,f,g=-1,d=n,h=0,m=0;const p=[m];for(;d;){for(;e[++i][1]!==d;);o.push(i),d._tokenizer||(u=r.sliceStream(d),d.next||u.push(null),f&&a.defineSkip(d.start),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++g<s.length;)s[g][0]==="exit"&&s[g-1][0]==="enter"&&s[g][1].type===s[g-1][1].type&&s[g][1].start.line!==s[g][1].end.line&&(m=g+1,p.push(m),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(a.events=[],d?(d._tokenizer=void 0,d.previous=void 0):p.pop(),g=p.length;g--;){const b=s.slice(p[g],p[g+1]),E=o.pop();l.unshift([E,E+b.length-1]),ai(e,E,2,b)}for(g=-1;++g<l.length;)c[h+l[g][0]]=h+l[g][1],h+=l[g][1]-l[g][0]-1;return c}var fw={tokenize:mw,resolve:gw},hw={tokenize:pw,partial:!0};function gw(e){return Cx(e),e}function mw(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):Ve(s)?e.check(hw,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function pw(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Pt(e,o,"linePrefix")}function o(a){if(a===null||Ve(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function wx(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return f;function f(b){return b===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(b),e.exit(o),g):b===null||b===41||vu(b)?n(b):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(b))}function g(b){return b===62?(e.enter(o),e.consume(b),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===62?(e.exit("chunkString"),e.exit(s),g(b)):b===null||b===60||Ve(b)?n(b):(e.consume(b),b===92?h:d)}function h(b){return b===60||b===62||b===92?(e.consume(b),d):d(b)}function m(b){return b===40?++u>c?n(b):(e.consume(b),m):b===41?u--?(e.consume(b),m):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(b)):b===null||Er(b)?u?n(b):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(b)):vu(b)?n(b):(e.consume(b),b===92?p:m)}function p(b){return b===40||b===41||b===92?(e.consume(b),m):m(b)}}function Ax(e,t,n,r,i,o){const a=this;let s=0,l;return c;function c(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(o),u}function u(d){return d===null||d===91||d===93&&!l||d===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs||s>999?n(d):d===93?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):Ve(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||Ve(d)||s++>999?(e.exit("chunkString"),u(d)):(e.consume(d),l=l||!un(d),d===92?g:f)}function g(d){return d===91||d===92||d===93?(e.consume(d),s++,f):f(d)}}function kx(e,t,n,r,i,o){let a;return s;function s(g){return e.enter(r),e.enter(i),e.consume(g),e.exit(i),a=g===40?41:g,l}function l(g){return g===a?(e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):(e.enter(o),c(g))}function c(g){return g===a?(e.exit(o),l(a)):g===null?n(g):Ve(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),Pt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(g))}function u(g){return g===a||g===null||Ve(g)?(e.exit("chunkString"),c(g)):(e.consume(g),g===92?f:u)}function f(g){return g===a||g===92?(e.consume(g),u):u(g)}}function js(e,t){let n;return r;function r(i){return Ve(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):un(i)?Pt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Na(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var xw={name:"definition",tokenize:_w},bw={tokenize:vw,partial:!0};function _w(e,t,n){const r=this;let i;return o;function o(l){return e.enter("definition"),Ax.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(l)}function a(l){return i=Na(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),l===58?(e.enter("definitionMarker"),e.consume(l),e.exit("definitionMarker"),js(e,wx(e,e.attempt(bw,Pt(e,s,"whitespace"),Pt(e,s,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(l)}function s(l){return l===null||Ve(l)?(e.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),t(l)):n(l)}}function vw(e,t,n){return r;function r(a){return Er(a)?js(e,i)(a):n(a)}function i(a){return a===34||a===39||a===40?kx(e,Pt(e,o,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a):n(a)}function o(a){return a===null||Ve(a)?t(a):n(a)}}var Ew={name:"hardBreakEscape",tokenize:Tw};function Tw(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(o),i}function i(o){return Ve(o)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(o)):n(o)}}var yw={name:"headingAtx",tokenize:Cw,resolve:Sw};function Sw(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ai(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Cw(e,t,n){const r=this;let i=0;return o;function o(u){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),a(u)}function a(u){return u===35&&i++<6?(e.consume(u),a):u===null||Er(u)?(e.exit("atxHeadingSequence"),r.interrupt?t(u):s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Ve(u)?(e.exit("atxHeading"),t(u)):un(u)?Pt(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||Er(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}var ww=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Nh=["pre","script","style","textarea"],Aw={name:"htmlFlow",tokenize:Nw,resolveTo:Ow,concrete:!0},kw={tokenize:Iw,partial:!0};function Ow(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Nw(e,t,n){const r=this;let i,o,a,s,l;return c;function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),u}function u(R){return R===33?(e.consume(R),f):R===47?(e.consume(R),h):R===63?(e.consume(R),i=3,r.interrupt?t:Pe):Jr(R)?(e.consume(R),a=String.fromCharCode(R),o=!0,m):n(R)}function f(R){return R===45?(e.consume(R),i=2,g):R===91?(e.consume(R),i=5,a="CDATA[",s=0,d):Jr(R)?(e.consume(R),i=4,r.interrupt?t:Pe):n(R)}function g(R){return R===45?(e.consume(R),r.interrupt?t:Pe):n(R)}function d(R){return R===a.charCodeAt(s++)?(e.consume(R),s===a.length?r.interrupt?t:H:d):n(R)}function h(R){return Jr(R)?(e.consume(R),a=String.fromCharCode(R),m):n(R)}function m(R){return R===null||R===47||R===62||Er(R)?R!==47&&o&&Nh.includes(a.toLowerCase())?(i=1,r.interrupt?t(R):H(R)):ww.includes(a.toLowerCase())?(i=6,R===47?(e.consume(R),p):r.interrupt?t(R):H(R)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):o?E(R):b(R)):R===45||ar(R)?(e.consume(R),a+=String.fromCharCode(R),m):n(R)}function p(R){return R===62?(e.consume(R),r.interrupt?t:H):n(R)}function b(R){return un(R)?(e.consume(R),b):M(R)}function E(R){return R===47?(e.consume(R),M):R===58||R===95||Jr(R)?(e.consume(R),v):un(R)?(e.consume(R),E):M(R)}function v(R){return R===45||R===46||R===58||R===95||ar(R)?(e.consume(R),v):N(R)}function N(R){return R===61?(e.consume(R),I):un(R)?(e.consume(R),N):E(R)}function I(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),l=R,S):un(R)?(e.consume(R),I):(l=null,y(R))}function S(R){return R===null||Ve(R)?n(R):R===l?(e.consume(R),O):(e.consume(R),S)}function y(R){return R===null||R===34||R===39||R===60||R===61||R===62||R===96||Er(R)?N(R):(e.consume(R),y)}function O(R){return R===47||R===62||un(R)?E(R):n(R)}function M(R){return R===62?(e.consume(R),j):n(R)}function j(R){return un(R)?(e.consume(R),j):R===null||Ve(R)?H(R):n(R)}function H(R){return R===45&&i===2?(e.consume(R),ae):R===60&&i===1?(e.consume(R),D):R===62&&i===4?(e.consume(R),we):R===63&&i===3?(e.consume(R),Pe):R===93&&i===5?(e.consume(R),Y):Ve(R)&&(i===6||i===7)?e.check(kw,we,X)(R):R===null||Ve(R)?X(R):(e.consume(R),H)}function X(R){return e.exit("htmlFlowData"),ne(R)}function ne(R){return R===null?C(R):Ve(R)?e.attempt({tokenize:oe,partial:!0},ne,C)(R):(e.enter("htmlFlowData"),H(R))}function oe(R,fe,$e){return vt;function vt(et){return R.enter("lineEnding"),R.consume(et),R.exit("lineEnding"),Je}function Je(et){return r.parser.lazy[r.now().line]?$e(et):fe(et)}}function ae(R){return R===45?(e.consume(R),Pe):H(R)}function D(R){return R===47?(e.consume(R),a="",Re):H(R)}function Re(R){return R===62&&Nh.includes(a.toLowerCase())?(e.consume(R),we):Jr(R)&&a.length<8?(e.consume(R),a+=String.fromCharCode(R),Re):H(R)}function Y(R){return R===93?(e.consume(R),Pe):H(R)}function Pe(R){return R===62?(e.consume(R),we):R===45&&i===2?(e.consume(R),Pe):H(R)}function we(R){return R===null||Ve(R)?(e.exit("htmlFlowData"),C(R)):(e.consume(R),we)}function C(R){return e.exit("htmlFlow"),t(R)}}function Iw(e,t,n){return r;function r(i){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt(Cc,t,n)}}var Rw={name:"htmlText",tokenize:Mw};function Mw(e,t,n){const r=this;let i,o,a,s;return l;function l(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),c}function c(C){return C===33?(e.consume(C),u):C===47?(e.consume(C),y):C===63?(e.consume(C),I):Jr(C)?(e.consume(C),j):n(C)}function u(C){return C===45?(e.consume(C),f):C===91?(e.consume(C),o="CDATA[",a=0,p):Jr(C)?(e.consume(C),N):n(C)}function f(C){return C===45?(e.consume(C),g):n(C)}function g(C){return C===null||C===62?n(C):C===45?(e.consume(C),d):h(C)}function d(C){return C===null||C===62?n(C):h(C)}function h(C){return C===null?n(C):C===45?(e.consume(C),m):Ve(C)?(s=h,Y(C)):(e.consume(C),h)}function m(C){return C===45?(e.consume(C),we):h(C)}function p(C){return C===o.charCodeAt(a++)?(e.consume(C),a===o.length?b:p):n(C)}function b(C){return C===null?n(C):C===93?(e.consume(C),E):Ve(C)?(s=b,Y(C)):(e.consume(C),b)}function E(C){return C===93?(e.consume(C),v):b(C)}function v(C){return C===62?we(C):C===93?(e.consume(C),v):b(C)}function N(C){return C===null||C===62?we(C):Ve(C)?(s=N,Y(C)):(e.consume(C),N)}function I(C){return C===null?n(C):C===63?(e.consume(C),S):Ve(C)?(s=I,Y(C)):(e.consume(C),I)}function S(C){return C===62?we(C):I(C)}function y(C){return Jr(C)?(e.consume(C),O):n(C)}function O(C){return C===45||ar(C)?(e.consume(C),O):M(C)}function M(C){return Ve(C)?(s=M,Y(C)):un(C)?(e.consume(C),M):we(C)}function j(C){return C===45||ar(C)?(e.consume(C),j):C===47||C===62||Er(C)?H(C):n(C)}function H(C){return C===47?(e.consume(C),we):C===58||C===95||Jr(C)?(e.consume(C),X):Ve(C)?(s=H,Y(C)):un(C)?(e.consume(C),H):we(C)}function X(C){return C===45||C===46||C===58||C===95||ar(C)?(e.consume(C),X):ne(C)}function ne(C){return C===61?(e.consume(C),oe):Ve(C)?(s=ne,Y(C)):un(C)?(e.consume(C),ne):H(C)}function oe(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),i=C,ae):Ve(C)?(s=oe,Y(C)):un(C)?(e.consume(C),oe):(e.consume(C),i=void 0,Re)}function ae(C){return C===i?(e.consume(C),D):C===null?n(C):Ve(C)?(s=ae,Y(C)):(e.consume(C),ae)}function D(C){return C===62||C===47||Er(C)?H(C):n(C)}function Re(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===62||Er(C)?H(C):(e.consume(C),Re)}function Y(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),Pt(e,Pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Pe(C){return e.enter("htmlTextData"),s(C)}function we(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):n(C)}}var _d={name:"labelEnd",tokenize:Fw,resolveTo:Bw,resolveAll:$w},Lw={tokenize:Hw},Pw={tokenize:zw},Dw={tokenize:Uw};function $w(e){let t=-1,n;for(;++t<e.length;)n=e[t][1],(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++);return e}function Bw(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[a][1].end)},u={type:"labelText",start:Object.assign({},e[o+r+2][1].end),end:Object.assign({},e[a-2][1].start)};return s=[["enter",l,t],["enter",c,t]],s=xr(s,e.slice(o+1,o+r+3)),s=xr(s,[["enter",u,t]]),s=xr(s,xd(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=xr(s,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),s=xr(s,e.slice(a+1)),s=xr(s,[["exit",l,t]]),ai(e,o,e.length,s),e}function Fw(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(u){return o?o._inactive?c(u):(a=r.parser.defined.includes(Na(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelEnd"),l):n(u)}function l(u){return u===40?e.attempt(Lw,t,a?t:c)(u):u===91?e.attempt(Pw,t,a?e.attempt(Dw,t,c):c)(u):a?t(u):c(u)}function c(u){return o._balanced=!0,n(u)}}function Hw(e,t,n){return r;function r(l){return e.enter("resource"),e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),js(e,i)}function i(l){return l===41?s(l):wx(e,o,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(l)}function o(l){return Er(l)?js(e,a)(l):s(l)}function a(l){return l===34||l===39||l===40?kx(e,js(e,s),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(l):s(l)}function s(l){return l===41?(e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),e.exit("resource"),t):n(l)}}function zw(e,t,n){const r=this;return i;function i(a){return Ax.call(r,e,o,n,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(Na(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}}function Uw(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}var jw={name:"labelStartImage",tokenize:Gw,resolveAll:_d.resolveAll};function Gw(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}var Kw={name:"labelStartLink",tokenize:Ww,resolveAll:_d.resolveAll};function Ww(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}var h0={name:"lineEnding",tokenize:Vw};function Vw(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Pt(e,t,"linePrefix")}}var h1={name:"thematicBreak",tokenize:qw};function qw(e,t,n){let r=0,i;return o;function o(l){return e.enter("thematicBreak"),i=l,a(l)}function a(l){return l===i?(e.enter("thematicBreakSequence"),s(l)):un(l)?Pt(e,a,"whitespace")(l):r<3||l!==null&&!Ve(l)?n(l):(e.exit("thematicBreak"),t(l))}function s(l){return l===i?(e.consume(l),r++,s):(e.exit("thematicBreakSequence"),a(l))}}var Vn={name:"list",tokenize:Qw,continuation:{tokenize:Zw},exit:eA},Yw={tokenize:tA,partial:!0},Xw={tokenize:Jw,partial:!0};function Qw(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(d){const h=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:_u(d)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(h1,n,c)(d):c(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return n(d)}function l(d){return _u(d)&&++a<10?(e.consume(d),l):(!r.interrupt||a<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),c(d)):n(d)}function c(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Cc,r.interrupt?n:u,e.attempt(Yw,g,f))}function u(d){return r.containerState.initialBlankLine=!0,o++,g(d)}function f(d){return un(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),g):n(d)}function g(d){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function Zw(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Cc,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Pt(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!un(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Xw,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Pt(e,e.attempt(Vn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Jw(e,t,n){const r=this;return Pt(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function eA(e){e.exit(this.containerState.type)}function tA(e,t,n){const r=this;return Pt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(o){const a=r.events[r.events.length-1];return!un(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}var Ih={name:"setextUnderline",tokenize:rA,resolveTo:nA};function nA(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function rA(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if(r.events[i][1].type!=="lineEnding"&&r.events[i][1].type!=="linePrefix"&&r.events[i][1].type!=="content"){a=r.events[i][1].type==="paragraph";break}return s;function s(u){return!r.parser.lazy[r.now().line]&&(r.interrupt||a)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=u,l(u)):n(u)}function l(u){return u===o?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),Pt(e,c,"lineSuffix")(u))}function c(u){return u===null||Ve(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}var iA={tokenize:oA};function oA(e){const t=this,n=e.attempt(Cc,r,e.attempt(this.parser.constructs.flowInitial,i,Pt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(fw,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}var aA={resolveAll:Nx()},sA=Ox("string"),lA=Ox("text");function Ox(e){return{tokenize:t,resolveAll:Nx(e==="text"?cA:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(u){return c(u)?o(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),o(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const f=i[u];let g=-1;if(f)for(;++g<f.length;){const d=f[g];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function Nx(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function cA(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){o++;break}}if(s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+o,_bufferIndex:o?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function uA(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[];const l={consume:E,enter:v,exit:N,attempt:y(I),check:y(S),interrupt:y(S,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:d,sliceSerialize:g,now:h,defineSkip:m,write:f};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function f(H){return a=xr(a,H),p(),a[a.length-1]!==null?[]:(O(t,0),c.events=xd(o,c.events,c),c.events)}function g(H,X){return fA(d(H),X)}function d(H){return dA(a,H)}function h(){return Object.assign({},r)}function m(H){i[H.line]=H.column,j()}function p(){let H;for(;r._index<a.length;){const X=a[r._index];if(typeof X=="string")for(H=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===H&&r._bufferIndex<X.length;)b(X.charCodeAt(r._bufferIndex));else b(X)}}function b(H){u=u(H)}function E(H){Ve(H)?(r.line++,r.column=1,r.offset+=H===-3?2:1,j()):H!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=H}function v(H,X){const ne=X||{};return ne.type=H,ne.start=h(),c.events.push(["enter",ne,c]),s.push(ne),ne}function N(H){const X=s.pop();return X.end=h(),c.events.push(["exit",X,c]),X}function I(H,X){O(H,X.from)}function S(H,X){X.restore()}function y(H,X){return ne;function ne(oe,ae,D){let Re,Y,Pe,we;return Array.isArray(oe)?R(oe):"tokenize"in oe?R([oe]):C(oe);function C(Je){return et;function et(st){const Et=st!==null&&Je[st],ee=st!==null&&Je.null,ve=[...Array.isArray(Et)?Et:Et?[Et]:[],...Array.isArray(ee)?ee:ee?[ee]:[]];return R(ve)(st)}}function R(Je){return Re=Je,Y=0,Je.length===0?D:fe(Je[Y])}function fe(Je){return et;function et(st){return we=M(),Pe=Je,Je.partial||(c.currentConstruct=Je),Je.name&&c.parser.constructs.disable.null.includes(Je.name)?vt():Je.tokenize.call(X?Object.assign(Object.create(c),X):c,l,$e,vt)(st)}}function $e(Je){return H(Pe,we),ae}function vt(Je){return we.restore(),++Y<Re.length?fe(Re[Y]):D}}}function O(H,X){H.resolveAll&&!o.includes(H)&&o.push(H),H.resolve&&ai(c.events,X,c.events.length-X,H.resolve(c.events.slice(X),c)),H.resolveTo&&(c.events=H.resolveTo(c.events,c))}function M(){const H=h(),X=c.previous,ne=c.currentConstruct,oe=c.events.length,ae=Array.from(s);return{restore:D,from:oe};function D(){r=H,c.previous=X,c.currentConstruct=ne,c.events.length=oe,s=ae,j()}}function j(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function dA(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;return n===i?a=[e[n].slice(r,o)]:(a=e.slice(n,i),r>-1&&(a[0]=a[0].slice(r)),o>0&&a.push(e[i].slice(0,o))),a}function fA(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
32
+ `;break}case-3:{a=`\r
33
+ `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}var Ix={};_x(Ix,{attentionMarkers:()=>vA,contentInitial:()=>gA,disable:()=>EA,document:()=>hA,flow:()=>pA,flowInitial:()=>mA,insideSpan:()=>_A,string:()=>xA,text:()=>bA});var hA={42:Vn,43:Vn,45:Vn,48:Vn,49:Vn,50:Vn,51:Vn,52:Vn,53:Vn,54:Vn,55:Vn,56:Vn,57:Vn,62:Tx},gA={91:xw},mA={[-2]:f0,[-1]:f0,32:f0},pA={35:yw,42:h1,45:[Ih,h1],60:Aw,61:Ih,95:h1,96:Oh,126:Oh},xA={38:Sx,92:yx},bA={[-5]:h0,[-4]:h0,[-3]:h0,33:jw,38:Sx,42:Eu,60:[YC,Rw],91:Kw,92:[Ew,yx],93:_d,95:Eu,96:sw},_A={null:[Eu,aA]},vA={null:[42,95]},EA={null:[]};function TA(e={}){const t=LC([Ix].concat(e.extensions||[])),n={defined:[],lazy:{},constructs:t,content:r(UC),document:r(GC),flow:r(iA),string:r(sA),text:r(lA)};return n;function r(i){return o;function o(a){return uA(n,i,a)}}}var Rh=/[\0\t\n\r]/g;function yA(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let c,u,f,g,d;for(o=t+o.toString(a),f=0,t="",n&&(o.charCodeAt(0)===65279&&f++,n=void 0);f<o.length;){if(Rh.lastIndex=f,c=Rh.exec(o),g=c&&c.index!==void 0?c.index:o.length,d=o.charCodeAt(g),!c){t=o.slice(f);break}if(d===10&&f===g&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<g&&(l.push(o.slice(f,g)),e+=g-f),d){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=g+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}function SA(e){for(;!Cx(e););return e}function Rx(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}var CA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function wA(e){return e.replace(CA,AA)}function AA(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Rx(n.slice(o?2:1),o?16:10)}return bd(n)||e}function Gs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Mh(e.position):"start"in e||"end"in e?Mh(e):"line"in e||"column"in e?Tu(e):""}function Tu(e){return Lh(e&&e.line)+":"+Lh(e&&e.column)}function Mh(e){return Tu(e&&e.start)+"-"+Tu(e&&e.end)}function Lh(e){return e&&typeof e=="number"?e:1}var yu={}.hasOwnProperty,kA=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),OA(n)(SA(TA(n).document().write(yA()(e,t,!0))))};function OA(e={}){const t=Mx({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(kn),autolinkProtocol:X,autolinkEmail:X,atxHeading:l(xn),blockQuote:l(qe),characterEscape:X,characterReference:X,codeFenced:l(gt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(gt,c),codeText:l(Kn,c),codeTextData:X,data:X,codeFlowValue:X,definition:l(Ir),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(ze),hardBreakEscape:l(Zn),hardBreakTrailing:l(Zn),htmlFlow:l(cr,c),htmlFlowData:X,htmlText:l(cr,c),htmlTextData:X,image:l(nn),label:c,link:l(kn),listItem:l(rn),listItemValue:m,listOrdered:l(Fn,h),listUnordered:l(Fn),paragraph:l(Hn),reference:Je,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(xn),strong:l(ur),thematicBreak:l(Jn)},exit:{atxHeading:f(),atxHeadingSequence:O,autolink:f(),autolinkEmail:ve,autolinkProtocol:ee,blockQuote:f(),characterEscapeValue:ne,characterReferenceMarkerHexadecimal:st,characterReferenceMarkerNumeric:st,characterReferenceValue:Et,codeFenced:f(v),codeFencedFence:E,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:ne,codeIndented:f(N),codeText:f(Y),codeTextData:ne,data:ne,definition:f(),definitionDestinationString:y,definitionLabelString:I,definitionTitleString:S,emphasis:f(),hardBreakEscape:f(ae),hardBreakTrailing:f(ae),htmlFlow:f(D),htmlFlowData:ne,htmlText:f(Re),htmlTextData:ne,image:f(we),label:R,labelText:C,lineEnding:oe,link:f(Pe),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:et,resourceDestinationString:fe,resourceTitleString:$e,resource:vt,setextHeading:f(H),setextHeadingLineSequence:j,setextHeadingText:M,strong:f(),thematicBreak:f()}},e.mdastExtensions||[]),n={};return r;function r($){let A={type:"root",children:[]};const V=[A],re=[],ye=[],Qt={stack:V,tokenStack:re,config:t,enter:u,exit:g,buffer:c,resume:d,setData:o,getData:a};let tt=-1;for(;++tt<$.length;)if($[tt][1].type==="listOrdered"||$[tt][1].type==="listUnordered")if($[tt][0]==="enter")ye.push(tt);else{const _t=ye.pop();tt=i($,_t,tt)}for(tt=-1;++tt<$.length;){const _t=t[$[tt][0]];yu.call(_t,$[tt][1].type)&&_t[$[tt][1].type].call(Object.assign({sliceSerialize:$[tt][2].sliceSerialize},Qt),$[tt][1])}if(re.length>0){const _t=re[re.length-1];(_t[1]||Ph).call(Qt,void 0,_t[0])}for(A.position={start:s($.length>0?$[0][1].start:{line:1,column:1,offset:0}),end:s($.length>0?$[$.length-2][1].end:{line:1,column:1,offset:0})},tt=-1;++tt<t.transforms.length;)A=t.transforms[tt](A)||A;return A}function i($,A,V){let re=A-1,ye=-1,Qt=!1,tt,_t,qt,zn;for(;++re<=V;){const yt=$[re];if(yt[1].type==="listUnordered"||yt[1].type==="listOrdered"||yt[1].type==="blockQuote"?(yt[0]==="enter"?ye++:ye--,zn=void 0):yt[1].type==="lineEndingBlank"?yt[0]==="enter"&&(tt&&!zn&&!ye&&!qt&&(qt=re),zn=void 0):yt[1].type==="linePrefix"||yt[1].type==="listItemValue"||yt[1].type==="listItemMarker"||yt[1].type==="listItemPrefix"||yt[1].type==="listItemPrefixWhitespace"||(zn=void 0),!ye&&yt[0]==="enter"&&yt[1].type==="listItemPrefix"||ye===-1&&yt[0]==="exit"&&(yt[1].type==="listUnordered"||yt[1].type==="listOrdered")){if(tt){let wt=re;for(_t=void 0;wt--;){const Tn=$[wt];if(Tn[1].type==="lineEnding"||Tn[1].type==="lineEndingBlank"){if(Tn[0]==="exit")continue;_t&&($[_t][1].type="lineEndingBlank",Qt=!0),Tn[1].type="lineEnding",_t=wt}else if(!(Tn[1].type==="linePrefix"||Tn[1].type==="blockQuotePrefix"||Tn[1].type==="blockQuotePrefixWhitespace"||Tn[1].type==="blockQuoteMarker"||Tn[1].type==="listItemIndent"))break}qt&&(!_t||qt<_t)&&(tt._spread=!0),tt.end=Object.assign({},_t?$[_t][1].start:yt[1].end),$.splice(_t||re,0,["exit",tt,yt[2]]),re++,V++}yt[1].type==="listItemPrefix"&&(tt={type:"listItem",_spread:!1,start:Object.assign({},yt[1].start)},$.splice(re,0,["enter",tt,yt[2]]),re++,V++,qt=void 0,zn=!0)}}return $[A][1]._spread=Qt,V}function o($,A){n[$]=A}function a($){return n[$]}function s($){return{line:$.line,column:$.column,offset:$.offset}}function l($,A){return V;function V(re){u.call(this,$(re),re),A&&A.call(this,re)}}function c(){this.stack.push({type:"fragment",children:[]})}function u($,A,V){return this.stack[this.stack.length-1].children.push($),this.stack.push($),this.tokenStack.push([A,V]),$.position={start:s(A.start)},$}function f($){return A;function A(V){$&&$.call(this,V),g.call(this,V)}}function g($,A){const V=this.stack.pop(),re=this.tokenStack.pop();if(re)re[0].type!==$.type&&(A?A.call(this,$,re[0]):(re[1]||Ph).call(this,$,re[0]));else throw new Error("Cannot close `"+$.type+"` ("+Gs({start:$.start,end:$.end})+"): it’s not open");return V.position.end=s($.end),V}function d(){return MC(this.stack.pop())}function h(){o("expectingFirstListItemValue",!0)}function m($){if(a("expectingFirstListItemValue")){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize($),10),o("expectingFirstListItemValue")}}function p(){const $=this.resume(),A=this.stack[this.stack.length-1];A.lang=$}function b(){const $=this.resume(),A=this.stack[this.stack.length-1];A.meta=$}function E(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function v(){const $=this.resume(),A=this.stack[this.stack.length-1];A.value=$.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function N(){const $=this.resume(),A=this.stack[this.stack.length-1];A.value=$.replace(/(\r?\n|\r)$/g,"")}function I($){const A=this.resume(),V=this.stack[this.stack.length-1];V.label=A,V.identifier=Na(this.sliceSerialize($)).toLowerCase()}function S(){const $=this.resume(),A=this.stack[this.stack.length-1];A.title=$}function y(){const $=this.resume(),A=this.stack[this.stack.length-1];A.url=$}function O($){const A=this.stack[this.stack.length-1];if(!A.depth){const V=this.sliceSerialize($).length;A.depth=V}}function M(){o("setextHeadingSlurpLineEnding",!0)}function j($){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize($).charCodeAt(0)===61?1:2}function H(){o("setextHeadingSlurpLineEnding")}function X($){const A=this.stack[this.stack.length-1];let V=A.children[A.children.length-1];(!V||V.type!=="text")&&(V=Vr(),V.position={start:s($.start)},A.children.push(V)),this.stack.push(V)}function ne($){const A=this.stack.pop();A.value+=this.sliceSerialize($),A.position.end=s($.end)}function oe($){const A=this.stack[this.stack.length-1];if(a("atHardBreak")){const V=A.children[A.children.length-1];V.position.end=s($.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(A.type)&&(X.call(this,$),ne.call(this,$))}function ae(){o("atHardBreak",!0)}function D(){const $=this.resume(),A=this.stack[this.stack.length-1];A.value=$}function Re(){const $=this.resume(),A=this.stack[this.stack.length-1];A.value=$}function Y(){const $=this.resume(),A=this.stack[this.stack.length-1];A.value=$}function Pe(){const $=this.stack[this.stack.length-1];a("inReference")?($.type+="Reference",$.referenceType=a("referenceType")||"shortcut",delete $.url,delete $.title):(delete $.identifier,delete $.label),o("referenceType")}function we(){const $=this.stack[this.stack.length-1];a("inReference")?($.type+="Reference",$.referenceType=a("referenceType")||"shortcut",delete $.url,delete $.title):(delete $.identifier,delete $.label),o("referenceType")}function C($){const A=this.stack[this.stack.length-2],V=this.sliceSerialize($);A.label=wA(V),A.identifier=Na(V).toLowerCase()}function R(){const $=this.stack[this.stack.length-1],A=this.resume(),V=this.stack[this.stack.length-1];o("inReference",!0),V.type==="link"?V.children=$.children:V.alt=A}function fe(){const $=this.resume(),A=this.stack[this.stack.length-1];A.url=$}function $e(){const $=this.resume(),A=this.stack[this.stack.length-1];A.title=$}function vt(){o("inReference")}function Je(){o("referenceType","collapsed")}function et($){const A=this.resume(),V=this.stack[this.stack.length-1];V.label=A,V.identifier=Na(this.sliceSerialize($)).toLowerCase(),o("referenceType","full")}function st($){o("characterReferenceType",$.type)}function Et($){const A=this.sliceSerialize($),V=a("characterReferenceType");let re;V?(re=Rx(A,V==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):re=bd(A);const ye=this.stack.pop();ye.value+=re,ye.position.end=s($.end)}function ee($){ne.call(this,$);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize($)}function ve($){ne.call(this,$);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize($)}function qe(){return{type:"blockquote",children:[]}}function gt(){return{type:"code",lang:null,meta:null,value:""}}function Kn(){return{type:"inlineCode",value:""}}function Ir(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ze(){return{type:"emphasis",children:[]}}function xn(){return{type:"heading",depth:void 0,children:[]}}function Zn(){return{type:"break"}}function cr(){return{type:"html",value:""}}function nn(){return{type:"image",title:null,url:"",alt:null}}function kn(){return{type:"link",title:null,url:"",children:[]}}function Fn($){return{type:"list",ordered:$.type==="listOrdered",start:null,spread:$._spread,children:[]}}function rn($){return{type:"listItem",spread:$._spread,checked:null,children:[]}}function Hn(){return{type:"paragraph",children:[]}}function ur(){return{type:"strong",children:[]}}function Vr(){return{type:"text",value:""}}function Jn(){return{type:"thematicBreak"}}}function Mx(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Mx(e,r):NA(e,r)}return e}function NA(e,t){let n;for(n in t)if(yu.call(t,n)){const r=n==="canContainEols"||n==="transforms",o=(yu.call(e,n)?e[n]:void 0)||(e[n]=r?[]:{}),a=t[n];a&&(r?e[n]=[...o,...a]:Object.assign(o,a))}}function Ph(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Gs({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Gs({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Gs({start:t.start,end:t.end})+") is still open")}function IA(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return kA(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var RA=IA,gn=function(e,t,n){var r={type:String(e)};return n==null&&(typeof t=="string"||Array.isArray(t))?n=t:Object.assign(r,t),Array.isArray(n)?r.children=n:n!=null&&(r.value=String(n)),r},g1={}.hasOwnProperty;function MA(e,t){const n=t.data||{};return"value"in t&&!(g1.call(n,"hName")||g1.call(n,"hProperties")||g1.call(n,"hChildren"))?e.augment(t,gn("text",t.value)):e(t,"div",Bn(e,t))}function Lx(e,t,n){const r=t&&t.type;let i;if(!r)throw new Error("Expected node, got `"+t+"`");return g1.call(e.handlers,r)?i=e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?i=LA:i=e.unknownHandler,(typeof i=="function"?i:MA)(e,t,n)}function LA(e,t){return"children"in t?{...t,children:Bn(e,t)}:t}function Bn(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=Lx(e,r[i],t);if(o){if(i&&r[i-1].type==="break"&&(!Array.isArray(o)&&o.type==="text"&&(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&o.type==="element")){const a=o.children[0];a&&a.type==="text"&&(a.value=a.value.replace(/^\s+/,""))}Array.isArray(o)?n.push(...o):n.push(o)}}}return n}var vd=function(e){if(e==null)return BA;if(typeof e=="string")return $A(e);if(typeof e=="object")return Array.isArray(e)?PA(e):DA(e);if(typeof e=="function")return wc(e);throw new Error("Expected function, string, or object as test")};function PA(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=vd(e[n]);return wc(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function DA(e){return wc(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function $A(e){return wc(t);function t(n){return n&&n.type===e}}function wc(e){return t;function t(...n){return!!e.call(this,...n)}}function BA(){return!0}var FA=!0,HA="skip",Dh=!1,zA=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=vd(t),o=r?-1:1;a(e,null,[])();function a(s,l,c){const u=typeof s=="object"&&s!==null?s:{};let f;return typeof u.type=="string"&&(f=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0,Object.defineProperty(g,"name",{value:"node ("+(u.type+(f?"<"+f+">":""))+")"})),g;function g(){let d=[],h,m,p;if((!t||i(s,l,c[c.length-1]||null))&&(d=UA(n(s,c)),d[0]===Dh))return d;if(s.children&&d[0]!==HA)for(m=(r?s.children.length:-1)+o,p=c.concat(s);m>-1&&m<s.children.length;){if(h=a(s.children[m],m,p)(),h[0]===Dh)return h;m=typeof h[1]=="number"?h[1]:m+o}return d}}};function UA(e){return Array.isArray(e)?e:typeof e=="number"?[FA,e]:[e]}var Px=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),zA(e,t,i,r);function i(o,a){const s=a[a.length-1];return n(o,s?s.children.indexOf(o):null,s)}},Dx=Bx("start"),$x=Bx("end");function Bx(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}function jA(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}var GA=!0,KA="skip",$h=!1,WA=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);var i=vd(t),o=r?-1:1;a(e,null,[])();function a(s,l,c){var u=typeof s=="object"&&s!==null?s:{},f;return typeof u.type=="string"&&(f=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0,Object.defineProperty(g,"name",{value:"node ("+(u.type+(f?"<"+f+">":""))+")"})),g;function g(){var d=[],h,m,p;if((!t||i(s,l,c[c.length-1]||null))&&(d=VA(n(s,c)),d[0]===$h))return d;if(s.children&&d[0]!==KA)for(m=(r?s.children.length:-1)+o,p=c.concat(s);m>-1&&m<s.children.length;){if(h=a(s.children[m],m,p)(),h[0]===$h)return h;m=typeof h[1]=="number"?h[1]:m+o}return d}}};function VA(e){return Array.isArray(e)?e:typeof e=="number"?[GA,e]:[e]}var qA=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),WA(e,t,i,r);function i(o,a){var s=a[a.length-1];return n(o,s?s.children.indexOf(o):null,s)}},Bh={}.hasOwnProperty;function YA(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return qA(e,"definition",n),r;function n(i){const o=Fh(i.identifier);o&&!Bh.call(t,o)&&(t[o]=i)}function r(i){const o=Fh(i);return o&&Bh.call(t,o)?t[o]:null}}function Fh(e){return String(e||"").toUpperCase()}var XA={'"':"quot","&":"amp","<":"lt",">":"gt"};function QA(e){return e.replace(/["&<>]/g,t);function t(n){return"&"+XA[n]+";"}}function Fx(e,t){const n=QA(ZA(e||""));if(!t)return n;const r=n.indexOf(":"),i=n.indexOf("?"),o=n.indexOf("#"),a=n.indexOf("/");return r<0||a>-1&&r>a||i>-1&&r>i||o>-1&&r>o||t.test(n.slice(0,r))?n:""}function ZA(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&ar(e.charCodeAt(n+1))&&ar(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Si(e,t){const n=[];let r=-1;for(t&&n.push(gn("text",`
34
+ `));++r<e.length;)r&&n.push(gn("text",`
35
+ `)),n.push(e[r]);return t&&e.length>0&&n.push(gn("text",`
36
+ `)),n}function JA(e){let t=-1;const n=[];for(;++t<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[t].toUpperCase()];if(!r)continue;const i=Bn(e,r),o=String(r.identifier),a=Fx(o.toLowerCase());let s=0;const l=[];for(;++s<=e.footnoteCounts[o];){const f={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&f.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(f)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const f=c.children[c.children.length-1];f&&f.type==="text"?f.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else i.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:Si(i,!0)};r.position&&(u.position=r.position),n.push(u)}return n.length===0?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[gn("text",e.footnoteLabel)]},{type:"text",value:`
37
+ `},{type:"element",tagName:"ol",properties:{},children:Si(n,!0)},{type:"text",value:`
38
+ `}]}}function ek(e,t){return e(t,"blockquote",Si(Bn(e,t),!0))}function tk(e,t){return[e(t,"br"),gn("text",`
39
+ `)]}function nk(e,t){const n=t.value?t.value+`
40
+ `:"",r=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),i={};r&&(i.className=["language-"+r]);const o=e(t,"code",i,[gn("text",n)]);return t.meta&&(o.data={meta:t.meta}),e(t.position,"pre",[o])}function rk(e,t){return e(t,"del",Bn(e,t))}function ik(e,t){return e(t,"em",Bn(e,t))}function Hx(e,t){const n=String(t.identifier),r=Fx(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let o;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,o=e.footnoteOrder.length):(e.footnoteCounts[n]++,o=i+1);const a=e.footnoteCounts[n];return e(t,"sup",[e(t.position,"a",{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[gn("text",String(o))])])}function ok(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},Hx(e,{type:"footnoteReference",identifier:i,position:t.position})}function ak(e,t){return e(t,"h"+t.depth,Bn(e,t))}function sk(e,t){return e.dangerous?e.augment(t,gn("raw",t.value)):null}var lk=bo(Sc(),1);function zx(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return gn("text","!["+t.alt+r);const i=Bn(e,t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift(gn("text","["));const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push(gn("text",r)),i}function ck(e,t){const n=e.definition(t.identifier);if(!n)return zx(e,t);const r={src:(0,lk.default)(n.url||""),alt:t.alt};return n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"img",r)}var uk=bo(Sc(),1);function dk(e,t){const n={src:(0,uk.default)(t.url),alt:t.alt};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"img",n)}function fk(e,t){return e(t,"code",[gn("text",t.value.replace(/\r?\n|\r/g," "))])}var hk=bo(Sc(),1);function gk(e,t){const n=e.definition(t.identifier);if(!n)return zx(e,t);const r={href:(0,hk.default)(n.url||"")};return n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"a",r,Bn(e,t))}var mk=bo(Sc(),1);function pk(e,t){const n={href:(0,mk.default)(t.url)};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"a",n,Bn(e,t))}function xk(e,t,n){const r=Bn(e,t),i=n?bk(n):Ux(t),o={},a=[];if(typeof t.checked=="boolean"){let c;r[0]&&r[0].type==="element"&&r[0].tagName==="p"?c=r[0]:(c=e(null,"p",[]),r.unshift(c)),c.children.length>0&&c.children.unshift(gn("text"," ")),c.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const c=r[s];(i||s!==0||c.type!=="element"||c.tagName!=="p")&&a.push(gn("text",`
41
+ `)),c.type==="element"&&c.tagName==="p"&&!i?a.push(...c.children):a.push(c)}const l=r[r.length-1];return l&&(i||!("tagName"in l)||l.tagName!=="p")&&a.push(gn("text",`
42
+ `)),e(t,"li",o,a)}function bk(e){let t=e.spread;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ux(n[r]);return!!t}function Ux(e){const t=e.spread;return t??e.children.length>1}function _k(e,t){const n={},r=t.ordered?"ol":"ul",i=Bn(e,t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<i.length;){const a=i[o];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}return e(t,r,n,Si(i,!0))}function vk(e,t){return e(t,"p",Bn(e,t))}function Ek(e,t){return e.augment(t,gn("root",Si(Bn(e,t))))}function Tk(e,t){return e(t,"strong",Bn(e,t))}function yk(e,t){const n=t.children;let r=-1;const i=t.align||[],o=[];for(;++r<n.length;){const a=n[r].children,s=r===0?"th":"td",l=[];let c=-1;const u=t.align?i.length:a.length;for(;++c<u;){const f=a[c];l.push(e(f,s,{align:i[c]},f?Bn(e,f):[]))}o[r]=e(n[r],"tr",Si(l,!0))}return e(t,"table",Si([e(o[0].position,"thead",Si([o[0]],!0))].concat(o[1]?e({start:Dx(o[1]),end:$x(o[o.length-1])},"tbody",Si(o.slice(1),!0)):[]),!0))}function Sk(e,t){return e.augment(t,gn("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))}function Ck(e,t){return e(t,"hr")}var wk={blockquote:ek,break:tk,code:nk,delete:rk,emphasis:ik,footnoteReference:Hx,footnote:ok,heading:ak,html:sk,imageReference:ck,image:dk,inlineCode:fk,linkReference:gk,link:pk,listItem:xk,list:_k,paragraph:vk,root:Ek,strong:Tk,table:yk,text:Sk,thematicBreak:Ck,toml:Wl,yaml:Wl,definition:Wl,footnoteDefinition:Wl};function Wl(){return null}var Ak={}.hasOwnProperty;function kk(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.definition=YA(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.augment=o,a.handlers={...wk,...n.handlers},a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,Px(e,"footnoteDefinition",s=>{const l=String(s.identifier).toUpperCase();Ak.call(i,l)||(i[l]=s)}),a;function o(s,l){if(s&&"data"in s&&s.data){const c=s.data;c.hName&&(l.type!=="element"&&(l={type:"element",tagName:"",properties:{},children:[]}),l.tagName=c.hName),l.type==="element"&&c.hProperties&&(l.properties={...l.properties,...c.hProperties}),"children"in l&&l.children&&c.hChildren&&(l.children=c.hChildren)}if(s){const c="type"in s?s:{position:s};jA(c)||(l.position={start:Dx(c),end:$x(c)})}return l}function a(s,l,c,u){return Array.isArray(c)&&(u=c,c={}),o(s,{type:"element",tagName:l,properties:c||{},children:u||[]})}}function jx(e,t){const n=kk(e,t),r=Lx(n,e,null),i=JA(n);return i&&r.children.push(gn("text",`
43
+ `),i),Array.isArray(r)?{type:"root",children:r}:r}var Ok=function(e,t){return e&&"run"in e?Ik(e,t):Rk(e||t)},Nk=Ok;function Ik(e,t){return(n,r,i)=>{e.run(jx(n,t),r,o=>{i(o)})}}function Rk(e){return t=>jx(t,e)}var Tl=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Tl.prototype.property={};Tl.prototype.normal={};Tl.prototype.space=null;function Gx(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Tl(n,r,t)}function Su(e){return e.toLowerCase()}var wr=class{constructor(t,n){this.property=t,this.attribute=n}};wr.prototype.space=null;wr.prototype.boolean=!1;wr.prototype.booleanish=!1;wr.prototype.overloadedBoolean=!1;wr.prototype.number=!1;wr.prototype.commaSeparated=!1;wr.prototype.spaceSeparated=!1;wr.prototype.commaOrSpaceSeparated=!1;wr.prototype.mustUseProperty=!1;wr.prototype.defined=!1;var B1={};_x(B1,{boolean:()=>Qe,booleanish:()=>sn,commaOrSpaceSeparated:()=>ir,commaSeparated:()=>Ia,number:()=>le,overloadedBoolean:()=>Kx,spaceSeparated:()=>zt});var Mk=0,Qe=sa(),sn=sa(),Kx=sa(),le=sa(),zt=sa(),Ia=sa(),ir=sa();function sa(){return 2**++Mk}var g0=Object.keys(B1),Ed=class extends wr{constructor(t,n,r,i){let o=-1;if(super(t,n),Hh(this,"space",i),typeof r=="number")for(;++o<g0.length;){const a=g0[o];Hh(this,g0[o],(r&B1[a])===B1[a])}}};Ed.prototype.defined=!0;function Hh(e,t,n){n&&(e[t]=n)}var Lk={}.hasOwnProperty;function es(e){const t={},n={};let r;for(r in e.properties)if(Lk.call(e.properties,r)){const i=e.properties[r],o=new Ed(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Su(r)]=r,n[Su(o.attribute)]=r}return new Tl(t,n,e.space)}var Wx=es({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Vx=es({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function qx(e,t){return t in e?e[t]:t}function Yx(e,t){return qx(e,t.toLowerCase())}var Xx=es({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Yx,properties:{xmlns:null,xmlnsXLink:null}}),Qx=es({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:sn,ariaAutoComplete:null,ariaBusy:sn,ariaChecked:sn,ariaColCount:le,ariaColIndex:le,ariaColSpan:le,ariaControls:zt,ariaCurrent:null,ariaDescribedBy:zt,ariaDetails:null,ariaDisabled:sn,ariaDropEffect:zt,ariaErrorMessage:null,ariaExpanded:sn,ariaFlowTo:zt,ariaGrabbed:sn,ariaHasPopup:null,ariaHidden:sn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:zt,ariaLevel:le,ariaLive:null,ariaModal:sn,ariaMultiLine:sn,ariaMultiSelectable:sn,ariaOrientation:null,ariaOwns:zt,ariaPlaceholder:null,ariaPosInSet:le,ariaPressed:sn,ariaReadOnly:sn,ariaRelevant:null,ariaRequired:sn,ariaRoleDescription:zt,ariaRowCount:le,ariaRowIndex:le,ariaRowSpan:le,ariaSelected:sn,ariaSetSize:le,ariaSort:null,ariaValueMax:le,ariaValueMin:le,ariaValueNow:le,ariaValueText:null,role:null}}),Pk=es({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Yx,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ia,acceptCharset:zt,accessKey:zt,action:null,allow:null,allowFullScreen:Qe,allowPaymentRequest:Qe,allowUserMedia:Qe,alt:null,as:null,async:Qe,autoCapitalize:null,autoComplete:zt,autoFocus:Qe,autoPlay:Qe,capture:Qe,charSet:null,checked:Qe,cite:null,className:zt,cols:le,colSpan:null,content:null,contentEditable:sn,controls:Qe,controlsList:zt,coords:le|Ia,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qe,defer:Qe,dir:null,dirName:null,disabled:Qe,download:Kx,draggable:sn,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qe,formTarget:null,headers:zt,height:le,hidden:Qe,high:le,href:null,hrefLang:null,htmlFor:zt,httpEquiv:zt,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Qe,itemId:null,itemProp:zt,itemRef:zt,itemScope:Qe,itemType:zt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qe,low:le,manifest:null,max:null,maxLength:le,media:null,method:null,min:null,minLength:le,multiple:Qe,muted:Qe,name:null,nonce:null,noModule:Qe,noValidate:Qe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Qe,optimum:le,pattern:null,ping:zt,placeholder:null,playsInline:Qe,poster:null,preload:null,readOnly:Qe,referrerPolicy:null,rel:zt,required:Qe,reversed:Qe,rows:le,rowSpan:le,sandbox:zt,scope:null,scoped:Qe,seamless:Qe,selected:Qe,shape:null,size:le,sizes:null,slot:null,span:le,spellCheck:sn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:le,step:null,style:null,tabIndex:le,target:null,title:null,translate:null,type:null,typeMustMatch:Qe,useMap:null,value:sn,width:le,wrap:null,align:null,aLink:null,archive:zt,axis:null,background:null,bgColor:null,border:le,borderColor:null,bottomMargin:le,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qe,declare:Qe,event:null,face:null,frame:null,frameBorder:null,hSpace:le,leftMargin:le,link:null,longDesc:null,lowSrc:null,marginHeight:le,marginWidth:le,noResize:Qe,noHref:Qe,noShade:Qe,noWrap:Qe,object:null,profile:null,prompt:null,rev:null,rightMargin:le,rules:null,scheme:null,scrolling:sn,standby:null,summary:null,text:null,topMargin:le,valueType:null,version:null,vAlign:null,vLink:null,vSpace:le,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qe,disableRemotePlayback:Qe,prefix:null,property:null,results:le,security:null,unselectable:null}}),Dk=es({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:qx,properties:{about:ir,accentHeight:le,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:le,amplitude:le,arabicForm:null,ascent:le,attributeName:null,attributeType:null,azimuth:le,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:le,by:null,calcMode:null,capHeight:le,className:zt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:le,diffuseConstant:le,direction:null,display:null,dur:null,divisor:le,dominantBaseline:null,download:Qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:le,enableBackground:null,end:null,event:null,exponent:le,externalResourcesRequired:null,fill:null,fillOpacity:le,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ia,g2:Ia,glyphName:Ia,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:le,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:le,horizOriginX:le,horizOriginY:le,id:null,ideographic:le,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:le,k:le,k1:le,k2:le,k3:le,k4:le,kernelMatrix:ir,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:le,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:le,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:le,overlineThickness:le,paintOrder:null,panose1:null,path:null,pathLength:le,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:zt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:le,pointsAtY:le,pointsAtZ:le,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ir,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ir,rev:ir,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ir,requiredFeatures:ir,requiredFonts:ir,requiredFormats:ir,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:le,specularExponent:le,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:le,strikethroughThickness:le,string:null,stroke:null,strokeDashArray:ir,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:le,strokeOpacity:le,strokeWidth:null,style:null,surfaceScale:le,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ir,tabIndex:le,tableValues:null,target:null,targetX:le,targetY:le,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ir,to:null,transform:null,u1:null,u2:null,underlinePosition:le,underlineThickness:le,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:le,values:null,vAlphabetic:le,vMathematical:le,vectorEffect:null,vHanging:le,vIdeographic:le,version:null,vertAdvY:le,vertOriginX:le,vertOriginY:le,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:le,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),$k=/^data[-\w.:]+$/i,zh=/-[a-z]/g,Bk=/[A-Z]/g;function Fk(e,t){const n=Su(t);let r=t,i=wr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&$k.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(zh,zk);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!zh.test(o)){let a=o.replace(Bk,Hk);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Ed}return new i(r,t)}function Hk(e){return"-"+e.toLowerCase()}function zk(e){return e.charAt(1).toUpperCase()}var Uh={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Uk=Gx([Vx,Wx,Xx,Qx,Pk],"html"),jk=Gx([Vx,Wx,Xx,Qx,Dk],"svg");function jh(e){if(e)throw e}var Gk=bo(vx(),1),Gh=bo(NC(),1);function Cu(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Kk(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...c){const u=e[++o];let f=-1;if(l){a(l);return}for(;++f<i.length;)(c[f]===null||c[f]===void 0)&&(c[f]=i[f]);i=c,u?Wk(u,s)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Wk(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l instanceof Promise?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}var Vk=bo(vx(),1),Ar=class extends Error{constructor(e,t,n){const r=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof t=="string"&&(n=t,t=void 0),typeof n=="string"){const o=n.indexOf(":");o===-1?r[1]=n:(r[0]=n.slice(0,o),r[1]=n.slice(o+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=Gs(t)||"1:1",this.message=typeof e=="object"?e.message:e,this.stack=typeof e=="object"?e.stack:"",this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.source=r[0],this.ruleId=r[1],this.position=i,this.actual,this.expected,this.file,this.url,this.note}};Ar.prototype.file="";Ar.prototype.name="";Ar.prototype.reason="";Ar.prototype.message="";Ar.prototype.stack="";Ar.prototype.fatal=null;Ar.prototype.column=null;Ar.prototype.line=null;Ar.prototype.source=null;Ar.prototype.ruleId=null;Ar.prototype.position=null;var Zr={basename:qk,dirname:Yk,extname:Xk,join:Qk,sep:"/"};function qk(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');yl(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function Yk(e){if(yl(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function Xk(e){yl(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Qk(...e){let t=-1,n;for(;++t<e.length;)yl(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Zk(n)}function Zk(e){yl(e);const t=e.charCodeAt(0)===47;let n=Jk(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Jk(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function yl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var eO={cwd:tO};function tO(){return"/"}function wu(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function nO(e){if(typeof e=="string")e=new URL(e);else if(!wu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return rO(e)}function rO(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.charCodeAt(n)===37&&t.charCodeAt(n+1)===50){const r=t.charCodeAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}var m0=["history","path","basename","stem","extname","dirname"],Zx=class{constructor(e){let t;e?typeof e=="string"||(0,Vk.default)(e)?t={value:e}:wu(e)?t={path:e}:t=e:t={},this.data={},this.messages=[],this.history=[],this.cwd=eO.cwd(),this.value,this.stored,this.result,this.map;let n=-1;for(;++n<m0.length;){const i=m0[n];i in t&&t[i]!==void 0&&(this[i]=i==="history"?[...t[i]]:t[i])}let r;for(r in t)m0.includes(r)||(this[r]=t[r])}get path(){return this.history[this.history.length-1]}set path(e){wu(e)&&(e=nO(e)),x0(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return typeof this.path=="string"?Zr.dirname(this.path):void 0}set dirname(e){Kh(this.basename,"dirname"),this.path=Zr.join(e||"",this.basename)}get basename(){return typeof this.path=="string"?Zr.basename(this.path):void 0}set basename(e){x0(e,"basename"),p0(e,"basename"),this.path=Zr.join(this.dirname||"",e)}get extname(){return typeof this.path=="string"?Zr.extname(this.path):void 0}set extname(e){if(p0(e,"extname"),Kh(this.dirname,"extname"),e){if(e.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Zr.join(this.dirname,this.stem+(e||""))}get stem(){return typeof this.path=="string"?Zr.basename(this.path,this.extname):void 0}set stem(e){x0(e,"stem"),p0(e,"stem"),this.path=Zr.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,t,n){const r=new Ar(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}};function p0(e,t){if(e&&e.includes(Zr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Zr.sep+"`")}function x0(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Kh(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}var iO=e4().freeze(),Jx={}.hasOwnProperty;function e4(){const e=Kk(),t=[];let n={},r,i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=s,o.attachers=t,o.use=l,o.parse=c,o.stringify=u,o.run=f,o.runSync=g,o.process=d,o.processSync=h,o;function o(){const m=e4();let p=-1;for(;++p<t.length;)m.use(...t[p]);return m.data((0,Gh.default)(!0,{},n)),m}function a(m,p){return typeof m=="string"?arguments.length===2?(v0("data",r),n[m]=p,o):Jx.call(n,m)&&n[m]||null:m?(v0("data",r),n=m,o):n}function s(){if(r)return o;for(;++i<t.length;){const[m,...p]=t[i];if(p[0]===!1)continue;p[0]===!0&&(p[0]=void 0);const b=m.call(o,...p);typeof b=="function"&&e.use(b)}return r=!0,i=Number.POSITIVE_INFINITY,o}function l(m,...p){let b;if(v0("use",r),m!=null)if(typeof m=="function")I(m,...p);else if(typeof m=="object")Array.isArray(m)?N(m):v(m);else throw new TypeError("Expected usable value, not `"+m+"`");return b&&(n.settings=Object.assign(n.settings||{},b)),o;function E(S){if(typeof S=="function")I(S);else if(typeof S=="object")if(Array.isArray(S)){const[y,...O]=S;I(y,...O)}else v(S);else throw new TypeError("Expected usable value, not `"+S+"`")}function v(S){N(S.plugins),S.settings&&(b=Object.assign(b||{},S.settings))}function N(S){let y=-1;if(S!=null)if(Array.isArray(S))for(;++y<S.length;){const O=S[y];E(O)}else throw new TypeError("Expected a list of plugins, not `"+S+"`")}function I(S,y){let O=-1,M;for(;++O<t.length;)if(t[O][0]===S){M=t[O];break}M?(Cu(M[1])&&Cu(y)&&(y=(0,Gh.default)(!0,M[1],y)),M[1]=y):t.push([...arguments])}}function c(m){o.freeze();const p=_s(m),b=o.Parser;return b0("parse",b),Wh(b,"parse")?new b(String(p),p).parse():b(String(p),p)}function u(m,p){o.freeze();const b=_s(p),E=o.Compiler;return _0("stringify",E),Vh(m),Wh(E,"compile")?new E(m,b).compile():E(m,b)}function f(m,p,b){if(Vh(m),o.freeze(),!b&&typeof p=="function"&&(b=p,p=void 0),!b)return new Promise(E);E(null,b);function E(v,N){e.run(m,_s(p),I);function I(S,y,O){y=y||m,S?N(S):v?v(y):b(null,y,O)}}}function g(m,p){let b,E;return o.run(m,p,v),qh("runSync","run",E),b;function v(N,I){jh(N),b=I,E=!0}}function d(m,p){if(o.freeze(),b0("process",o.Parser),_0("process",o.Compiler),!p)return new Promise(b);b(null,p);function b(E,v){const N=_s(m);o.run(o.parse(N),N,(S,y,O)=>{if(S||!y||!O)I(S);else{const M=o.stringify(y,O);M==null||(sO(M)?O.value=M:O.result=M),I(S,O)}});function I(S,y){S||!y?v(S):E?E(y):p(null,y)}}}function h(m){let p;o.freeze(),b0("processSync",o.Parser),_0("processSync",o.Compiler);const b=_s(m);return o.process(b,E),qh("processSync","process",p),b;function E(v){p=!0,jh(v)}}}function Wh(e,t){return typeof e=="function"&&e.prototype&&(oO(e.prototype)||t in e.prototype)}function oO(e){let t;for(t in e)if(Jx.call(e,t))return!0;return!1}function b0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function _0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function v0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Vh(e){if(!Cu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function qh(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _s(e){return aO(e)?e:new Zx(e)}function aO(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function sO(e){return typeof e=="string"||(0,Gk.default)(e)}function lO(e){return e.join(" ").trim()}function cO(e,t){var n=t||{};return e[e.length-1]===""&&(e=e.concat("")),e.join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var uO=bo(RC(),1),Au={}.hasOwnProperty,dO=new Set(["table","thead","tbody","tfoot","tr"]);function t4(e,t){const n=[];let r=-1;for(;++r<t.children.length;){const i=t.children[r];i.type==="element"?n.push(fO(e,i,r,t)):i.type==="text"?(t.type!=="element"||!dO.has(t.tagName)||i.value!==`
44
+ `)&&n.push(i.value):i.type==="raw"&&!e.options.skipHtml&&n.push(i.value)}return n}function fO(e,t,n,r){const i=e.options,o=e.schema,a=t.tagName,s={};let l=o,c;if(o.space==="html"&&a==="svg"&&(l=jk,e.schema=l),t.properties)for(c in t.properties)Au.call(t.properties,c)&&gO(s,c,t.properties[c],e);(a==="ol"||a==="ul")&&e.listDepth++;const u=t4(e,t);(a==="ol"||a==="ul")&&e.listDepth--,e.schema=o;const f=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},g=i.components&&Au.call(i.components,a)?i.components[a]:a,d=typeof g=="string";if(s.key=[a,f.start.line,f.start.column,n].join("-"),a==="a"&&i.linkTarget&&(s.target=typeof i.linkTarget=="function"?i.linkTarget(String(s.href||""),t.children,typeof s.title=="string"?s.title:void 0):i.linkTarget),a==="a"&&i.transformLinkUri&&(s.href=i.transformLinkUri(String(s.href||""),t.children,typeof s.title=="string"?s.title:void 0)),!d&&a==="code"&&r.type==="element"&&r.tagName!=="pre"&&(s.inline=!0),!d&&(a==="h1"||a==="h2"||a==="h3"||a==="h4"||a==="h5"||a==="h6")&&(s.level=Number.parseInt(a.charAt(1),10)),a==="img"&&i.transformImageUri&&(s.src=i.transformImageUri(String(s.src||""),String(s.alt||""),typeof s.title=="string"?s.title:void 0)),!d&&a==="li"&&r.type==="element"){const h=hO(t);s.checked=h&&h.properties?!!h.properties.checked:null,s.index=E0(r,t),s.ordered=r.tagName==="ol"}return!d&&(a==="ol"||a==="ul")&&(s.ordered=a==="ol",s.depth=e.listDepth),(a==="td"||a==="th")&&(s.align&&(s.style||(s.style={}),s.style.textAlign=s.align,delete s.align),d||(s.isHeader=a==="th")),!d&&a==="tr"&&r.type==="element"&&(s.isHeader=r.tagName==="thead"),i.sourcePos&&(s["data-sourcepos"]=xO(f)),!d&&i.rawSourcePos&&(s.sourcePosition=t.position),!d&&i.includeElementIndex&&(s.index=E0(r,t),s.siblingCount=E0(r)),d||(s.node=t),T(Hu,K({component:g},s,{children:u}))}function hO(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n.type==="element"&&n.tagName==="input")return n}return null}function E0(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)e.children[n].type==="element"&&r++;return r}function gO(e,t,n,r){const i=Fk(r.schema,t);let o=n;o==null||o!==o||(Array.isArray(o)&&(o=i.commaSeparated?cO(o):lO(o)),i.property==="style"&&typeof o=="string"&&(o=mO(o)),i.space&&i.property?e[Au.call(Uh,i.property)?Uh[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function mO(e){const t={};try{(0,uO.default)(e,n)}catch{}return t;function n(r,i){const o=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[o.replace(/-([a-z])/g,pO)]=i}}function pO(e,t){return t.toUpperCase()}function xO(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(t=>String(t)).join("")}var bO=e=>{if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Px(t,"element",(n,r,i)=>{const o=i;if(o===null)return;let a;if(e.allowedElements?a=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(a=e.disallowedElements.includes(n.tagName)),!a&&e.allowElement&&typeof r=="number"&&(a=!e.allowElement(n,r,o)),a&&typeof r=="number")return e.unwrapDisallowed&&n.children?o.children.splice(r,1,...n.children):o.children.splice(r,1),r})}},_O=bO,vO={remarkPlugins:[],rehypePlugins:[],class:"",unwrapDisallowed:!1,disallowedElements:void 0,allowedElements:void 0,allowElement:void 0,children:"",sourcePos:!1,rawSourcePos:!1,skipHtml:!1,includeElementIndex:!1,transformLinkUri:null,transformImageUri:void 0,linkTarget:"_self",components:{}},EO=e=>{const t=K(vO,e),n=iO().use(RA).use(t.remarkPlugins||[]).use(Nk,{allowDangerousHtml:!0}).use(t.rehypePlugins||[]).use(_O,t),r=new Zx;typeof t.children=="string"?r.value=t.children:t.children!==void 0&&t.children!==null&&console.warn(`[solid-markdown] Warning: please pass a string as \`children\` (not: \`${t.children}\`)`);const i=n.runSync(n.parse(r),r);if(i.type!=="root")throw new TypeError("Expected a `root` node");return(()=>{const o=SC.cloneNode(!0);return jr(o,()=>t4({options:t,schema:Uk,listDepth:0},i)),Dn(()=>p5(o,t.class)),o})()},TO=EO;/*!
45
+ * Determine if an object is a Buffer
46
+ *
47
+ * @author Feross Aboukhadijeh <https://feross.org>
48
+ * @license MIT
49
+ */function m1(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),[].splice.apply(e,a);else for(n&&[].splice.apply(e,[t,n]);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),[].splice.apply(e,a),o+=1e4,t+=1e4}const Yh={}.hasOwnProperty;function yO(e){const t={};let n=-1;for(;++n<e.length;)SO(t,e[n]);return t}function SO(e,t){let n;for(n in t){const i=(Yh.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;for(a in o){Yh.call(i,a)||(i[a]=[]);const s=o[a];CO(i[a],Array.isArray(s)?s:s?[s]:[])}}}function CO(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);m1(e,0,0,r)}const wO=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,n4=Sl(/[A-Za-z]/),AO=Sl(/\d/),r4=Sl(/[\dA-Za-z]/);function i4(e){return e!==null&&(e<32||e===127)}function Ri(e){return e!==null&&(e<0||e===32)}function ei(e){return e!==null&&e<-2}function Ti(e){return e===-2||e===-1||e===32}const Ac=Sl(/\s/),kc=Sl(wO);function Sl(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}const kO={tokenize:MO,partial:!0},o4={tokenize:LO,partial:!0},a4={tokenize:PO,partial:!0},Ra={tokenize:$O,partial:!0},s4={tokenize:DO,partial:!0},l4={tokenize:IO,previous:d4},c4={tokenize:RO,previous:yd},Bi={tokenize:NO,previous:f4},si={},OO={text:si};let Po=48;for(;Po<123;)si[Po]=Bi,Po++,Po===58?Po=65:Po===91&&(Po=97);si[43]=Bi;si[45]=Bi;si[46]=Bi;si[95]=Bi;si[72]=[Bi,c4];si[104]=[Bi,c4];si[87]=[Bi,l4];si[119]=[Bi,l4];function NO(e,t,n){const r=this;let i,o;return a;function a(d){return!Xh(d)||!f4(r.previous)||Sd(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return Xh(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(Ra,g,c)(d):d===45||d===95?e.check(Ra,n,u)(d):r4(d)?(!o&&AO(d)&&(o=!0),e.consume(d),l):g(d)}function c(d){return e.consume(d),i=!0,o=void 0,l}function u(d){return e.consume(d),f}function f(d){return d===46?e.check(Ra,n,c)(d):l(d)}function g(d){return i&&!o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function IO(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!d4(r.previous)||Sd(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(kO,e.attempt(o4,e.attempt(a4,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function RO(e,t,n){const r=this;return i;function i(h){return h!==72&&h!==104||!yd(r.previous)||Sd(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(h),o)}function o(h){return h===84||h===116?(e.consume(h),a):n(h)}function a(h){return h===84||h===116?(e.consume(h),s):n(h)}function s(h){return h===80||h===112?(e.consume(h),l):n(h)}function l(h){return h===83||h===115?(e.consume(h),c):c(h)}function c(h){return h===58?(e.consume(h),u):n(h)}function u(h){return h===47?(e.consume(h),f):n(h)}function f(h){return h===47?(e.consume(h),g):n(h)}function g(h){return h===null||i4(h)||Ac(h)||kc(h)?n(h):e.attempt(o4,e.attempt(a4,d),n)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function MO(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return l===87||l===119?(e.consume(l),o):n(l)}function o(l){return l===87||l===119?(e.consume(l),a):n(l)}function a(l){return l===46?(e.consume(l),s):n(l)}function s(l){return l===null||ei(l)?n(l):t(l)}}function LO(e,t,n){let r,i;return o;function o(l){return l===38?e.check(s4,s,a)(l):l===46||l===95?e.check(Ra,s,a)(l):l===null||i4(l)||Ac(l)||l!==45&&kc(l)?s(l):(e.consume(l),o)}function a(l){return l===46?(i=r,r=void 0,e.consume(l),o):(l===95&&(r=!0),e.consume(l),o)}function s(l){return!i&&!r?t(l):n(l)}}function PO(e,t){let n=0;return r;function r(a){return a===38?e.check(s4,t,i)(a):(a===40&&n++,a===41?e.check(Ra,o,i)(a):Td(a)?t(a):u4(a)?e.check(Ra,t,i)(a):(e.consume(a),r))}function i(a){return e.consume(a),r}function o(a){return n--,n<0?t(a):i(a)}}function DO(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return n4(a)?(e.consume(a),i):a===59?(e.consume(a),o):n(a)}function o(a){return Td(a)?t(a):n(a)}}function $O(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return u4(o)?(e.consume(o),i):Td(o)?t(o):n(o)}}function u4(e){return e===33||e===34||e===39||e===41||e===42||e===44||e===46||e===58||e===59||e===60||e===63||e===95||e===126}function Td(e){return e===null||e===60||Ri(e)}function Xh(e){return e===43||e===45||e===46||e===95||r4(e)}function d4(e){return e===null||e===40||e===42||e===95||e===126||Ri(e)}function yd(e){return e===null||!n4(e)}function f4(e){return e!==47&&yd(e)}function Sd(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Qh(e){if(e===null||Ri(e)||Ac(e))return 1;if(kc(e))return 2}function BO(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function Zo(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Ti(l)?(e.enter(n),s(l)):t(l)}function s(l){return Ti(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const FO={tokenize:HO,partial:!0};function HO(e,t,n){return Zo(e,r,"linePrefix");function r(i){return i===null||ei(i)?t(i):n(i)}}const Zh=document.createElement("i");function zO(e){const t="&"+e+";";Zh.innerHTML=t;const n=Zh.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function sl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const UO={tokenize:XO,partial:!0};function jO(){return{document:{91:{tokenize:VO,continuation:{tokenize:qO},exit:YO}},text:{91:{tokenize:WO},93:{add:"after",tokenize:GO,resolveTo:KO}}}}function GO(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const c=sl(r.sliceSerialize({start:a.end,end:r.now()}));return c.charCodeAt(0)!==94||!o.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function KO(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function WO(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),l}function l(g){return g!==94?n(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(g){let d;return g===null||g===91||o++>999?n(g):g===93?a?(e.exit("chunkString"),d=e.exit("gfmFootnoteCallString"),i.includes(sl(r.sliceSerialize(d)))?f(g):n(g)):n(g):(e.consume(g),Ri(g)||(a=!0),g===92?u:c)}function u(g){return g===91||g===92||g===93?(e.consume(g),o++,c):c(g)}function f(g){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t}}function VO(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),u):n(m)}function u(m){let p;return m===null||m===91||a>999?n(m):m===93?s?(p=e.exit("gfmFootnoteDefinitionLabelString"),o=sl(r.sliceSerialize(p)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d):n(m):ei(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),a++,u):(e.enter("chunkString").contentType="string",f(m))}function f(m){return m===null||ei(m)||m===91||m===93||a>999?(e.exit("chunkString"),u(m)):(Ri(m)||(s=!0),a++,e.consume(m),m===92?g:f)}function g(m){return m===91||m===92||m===93?(e.consume(m),a++,f):f(m)}function d(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),Zo(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return i.includes(o)||i.push(o),t(m)}}function qO(e,t,n){return e.check(FO,t,e.attempt(UO,t,n))}function YO(e){e.exit("gfmFootnoteDefinition")}function XO(e,t,n){const r=this;return Zo(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function QO(e={}){let t=e.singleTilde;const n={tokenize:i,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(o,a){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let l=s;for(;l--;)if(o[l][0]==="exit"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[l][1].end.offset-o[l][1].start.offset){o[s][1].type="strikethroughSequence",o[l][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},o[l][1].start),end:Object.assign({},o[s][1].end)},u={type:"strikethroughText",start:Object.assign({},o[l][1].end),end:Object.assign({},o[s][1].start)},f=[["enter",c,a],["enter",o[l][1],a],["exit",o[l][1],a],["enter",u,a]];m1(f,f.length,0,BO(a.parser.constructs.insideSpan.null,o.slice(l+1,s),a)),m1(f,f.length,0,[["exit",u,a],["enter",o[s][1],a],["exit",o[s][1],a],["exit",c,a]]),m1(o,l-1,s-l+3,f),s=l+f.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function i(o,a,s){const l=this.previous,c=this.events;let u=0;return f;function f(d){return l===126&&c[c.length-1][1].type!=="characterEscape"?s(d):(o.enter("strikethroughSequenceTemporary"),g(d))}function g(d){const h=Qh(l);if(d===126)return u>1?s(d):(o.consume(d),u++,g);if(u<2&&!t)return s(d);const m=o.exit("strikethroughSequenceTemporary"),p=Qh(d);return m._open=!p||p===2&&!!h,m._close=!h||h===2&&!!p,a(d)}}}const ZO={flow:{null:{tokenize:eN,resolve:JO}}},Jh={tokenize:tN,partial:!0};function JO(e,t){let n=-1,r,i,o,a,s,l,c;for(;++n<e.length;){const u=e[n][1];if(o&&(u.type==="temporaryTableCellContent"&&(a=a||n,s=n),(u.type==="tableCellDivider"||u.type==="tableRow")&&s)){const f={type:"tableContent",start:e[a][1].start,end:e[s][1].end},g={type:"chunkText",start:f.start,end:f.end,contentType:"text"};e.splice(a,s-a+1,["enter",f,t],["enter",g,t],["exit",g,t],["exit",f,t]),n-=s-a-3,a=void 0,s=void 0}if(e[n][0]==="exit"&&l!==void 0&&l+(c?0:1)<n&&(u.type==="tableCellDivider"||u.type==="tableRow"&&(l+3<n||e[l][1].type!=="whitespace"))){const f={type:i?"tableDelimiter":r?"tableHeader":"tableData",start:e[l][1].start,end:e[n][1].end};e.splice(n+(u.type==="tableCellDivider"?1:0),0,["exit",f,t]),e.splice(l,0,["enter",f,t]),n+=2,l=n+1,c=!0}u.type==="tableRow"&&(o=e[n][0]==="enter",o&&(l=n+1,c=!1)),u.type==="tableDelimiterRow"&&(i=e[n][0]==="enter",i&&(l=n+1,c=!1)),u.type==="tableHead"&&(r=e[n][0]==="enter")}return e}function eN(e,t,n){const r=this,i=[];let o=0,a,s;return l;function l(D){return e.enter("table")._align=i,e.enter("tableHead"),e.enter("tableRow"),D===124?c(D):(o++,e.enter("temporaryTableCellContent"),g(D))}function c(D){return e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),a=!0,u}function u(D){return D===null||ei(D)?h(D):Ti(D)?(e.enter("whitespace"),e.consume(D),f):(a&&(a=void 0,o++),D===124?c(D):(e.enter("temporaryTableCellContent"),g(D)))}function f(D){return Ti(D)?(e.consume(D),f):(e.exit("whitespace"),u(D))}function g(D){return D===null||D===124||Ri(D)?(e.exit("temporaryTableCellContent"),u(D)):(e.consume(D),D===92?d:g)}function d(D){return D===92||D===124?(e.consume(D),g):g(D)}function h(D){if(D===null)return n(D);e.exit("tableRow"),e.exit("tableHead");const Re=r.interrupt;return r.interrupt=!0,e.attempt({tokenize:ae,partial:!0},function(Y){return r.interrupt=Re,e.enter("tableDelimiterRow"),m(Y)},function(Y){return r.interrupt=Re,n(Y)})(D)}function m(D){return D===null||ei(D)?N(D):Ti(D)?(e.enter("whitespace"),e.consume(D),p):D===45?(e.enter("tableDelimiterFiller"),e.consume(D),s=!0,i.push("none"),b):D===58?(e.enter("tableDelimiterAlignment"),e.consume(D),e.exit("tableDelimiterAlignment"),i.push("left"),E):D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),m):n(D)}function p(D){return Ti(D)?(e.consume(D),p):(e.exit("whitespace"),m(D))}function b(D){return D===45?(e.consume(D),b):(e.exit("tableDelimiterFiller"),D===58?(e.enter("tableDelimiterAlignment"),e.consume(D),e.exit("tableDelimiterAlignment"),i[i.length-1]=i[i.length-1]==="left"?"center":"right",v):m(D))}function E(D){return D===45?(e.enter("tableDelimiterFiller"),e.consume(D),s=!0,b):n(D)}function v(D){return D===null||ei(D)?N(D):Ti(D)?(e.enter("whitespace"),e.consume(D),p):D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),m):n(D)}function N(D){return e.exit("tableDelimiterRow"),!s||o!==i.length?n(D):D===null?I(D):e.check(Jh,I,e.attempt({tokenize:ae,partial:!0},Zo(e,S,"linePrefix",4),I))(D)}function I(D){return e.exit("table"),t(D)}function S(D){return e.enter("tableBody"),y(D)}function y(D){return e.enter("tableRow"),D===124?O(D):(e.enter("temporaryTableCellContent"),H(D))}function O(D){return e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),M}function M(D){return D===null||ei(D)?ne(D):Ti(D)?(e.enter("whitespace"),e.consume(D),j):D===124?O(D):(e.enter("temporaryTableCellContent"),H(D))}function j(D){return Ti(D)?(e.consume(D),j):(e.exit("whitespace"),M(D))}function H(D){return D===null||D===124||Ri(D)?(e.exit("temporaryTableCellContent"),M(D)):(e.consume(D),D===92?X:H)}function X(D){return D===92||D===124?(e.consume(D),H):H(D)}function ne(D){return e.exit("tableRow"),D===null?oe(D):e.check(Jh,oe,e.attempt({tokenize:ae,partial:!0},Zo(e,y,"linePrefix",4),oe))(D)}function oe(D){return e.exit("tableBody"),I(D)}function ae(D,Re,Y){return Pe;function Pe(C){return D.enter("lineEnding"),D.consume(C),D.exit("lineEnding"),Zo(D,we,"linePrefix")}function we(C){if(r.parser.lazy[r.now().line]||C===null||ei(C))return Y(C);const R=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&R&&R[1].type==="linePrefix"&&R[2].sliceSerialize(R[1],!0).length>=4?Y(C):(r._gfmTableDynamicInterruptHack=!0,D.check(r.parser.constructs.flow,function(fe){return r._gfmTableDynamicInterruptHack=!1,Y(fe)},function(fe){return r._gfmTableDynamicInterruptHack=!1,Re(fe)})(C))}}}function tN(e,t,n){let r=0;return i;function i(a){return e.enter("check"),e.consume(a),o}function o(a){return a===-1||a===32?(e.consume(a),r++,r===4?t:o):a===null||Ri(a)?t(a):n(a)}}const nN={tokenize:iN},rN={text:{91:nN}};function iN(e,t,n){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return Ri(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),a):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),a):n(s)}function a(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:oN},t,n)):n(s)}}function oN(e,t,n){const r=this;return Zo(e,i,"whitespace");function i(o){const a=r.events[r.events.length-1];return(a&&a[1].type==="whitespace"||ei(o))&&o!==null?t(o):n(o)}}function aN(e){return yO([OO,jO(),QO(e),ZO,rN])}function eg(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function sN(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const ts=function(e){if(e==null)return dN;if(typeof e=="string")return uN(e);if(typeof e=="object")return Array.isArray(e)?lN(e):cN(e);if(typeof e=="function")return Oc(e);throw new Error("Expected function, string, or object as test")};function lN(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ts(e[n]);return Oc(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function cN(e){return Oc(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function uN(e){return Oc(t);function t(n){return n&&n.type===e}}function Oc(e){return t;function t(...n){return!!e.call(this,...n)}}function dN(){return!0}const fN=!0,hN="skip",tg=!1,h4=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=ts(t),o=r?-1:1;a(e,null,[])();function a(s,l,c){const u=typeof s=="object"&&s!==null?s:{};let f;return typeof u.type=="string"&&(f=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0,Object.defineProperty(g,"name",{value:"node ("+(u.type+(f?"<"+f+">":""))+")"})),g;function g(){let d=[],h,m,p;if((!t||i(s,l,c[c.length-1]||null))&&(d=gN(n(s,c)),d[0]===tg))return d;if(s.children&&d[0]!==hN)for(m=(r?s.children.length:-1)+o,p=c.concat(s);m>-1&&m<s.children.length;){if(h=a(s.children[m],m,p)(),h[0]===tg)return h;m=typeof h[1]=="number"?h[1]:m+o}return d}}};function gN(e){return Array.isArray(e)?e:typeof e=="number"?[fN,e]:[e]}const mN={}.hasOwnProperty,pN=function(e,t,n,r){let i,o;typeof t=="string"||t instanceof RegExp?(o=[[t,n]],i=r):(o=t,i=n),i||(i={});const a=ts(i.ignore||[]),s=xN(o);let l=-1;for(;++l<s.length;)h4(e,"text",c);return e;function c(f,g){let d=-1,h;for(;++d<g.length;){const m=g[d];if(a(m,h?h.children.indexOf(m):void 0,h))return;h=m}if(h)return u(f,g)}function u(f,g){const d=g[g.length-1],h=s[l][0],m=s[l][1];let p=0;const b=d.children.indexOf(f);let E=!1,v=[],N;h.lastIndex=0;let I=h.exec(f.value);for(;I;){N=I.index;const S={index:I.index,input:I.input,stack:[...g,f]};let y=m(...I,S);if(typeof y=="string"&&(y=y.length>0?{type:"text",value:y}:void 0),y!==!1&&(p!==N&&v.push({type:"text",value:f.value.slice(p,N)}),Array.isArray(y)?v.push(...y):y&&v.push(y),p=N+I[0].length,E=!0),!h.global)break;I=h.exec(f.value)}return E?(p<f.value.length&&v.push({type:"text",value:f.value.slice(p)}),d.children.splice(b,1,...v)):v=[f],b+v.length}};function xN(e){const t=[];if(typeof e!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([ng(e[n][0]),rg(e[n][1])])}else{let n;for(n in e)mN.call(e,n)&&t.push([ng(n),rg(e[n])])}return t}function ng(e){return typeof e=="string"?new RegExp(sN(e),"g"):e}function rg(e){return typeof e=="function"?e:()=>e}const T0="phrasing",y0=["autolink","link","image","label"],bN={transforms:[CN],enter:{literalAutolink:vN,literalAutolinkEmail:S0,literalAutolinkHttp:S0,literalAutolinkWww:S0},exit:{literalAutolink:SN,literalAutolinkEmail:yN,literalAutolinkHttp:EN,literalAutolinkWww:TN}},_N={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:T0,notInConstruct:y0},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:T0,notInConstruct:y0},{character:":",before:"[ps]",after:"\\/",inConstruct:T0,notInConstruct:y0}]};function vN(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function S0(e){this.config.enter.autolinkProtocol.call(this,e)}function EN(e){this.config.exit.autolinkProtocol.call(this,e)}function TN(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function yN(e){this.config.exit.autolinkEmail.call(this,e)}function SN(e){this.exit(e)}function CN(e){pN(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,wN],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,AN]],{ignore:["link","linkReference"]})}function wN(e,t,n,r,i){let o="";if(!g4(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!kN(n)))return!1;const a=ON(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function AN(e,t,n,r){return!g4(r,!0)||/[_-\d]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function kN(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function ON(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);let n,r,i,o;if(t)for(e=e.slice(0,t.index),o=t[0],n=o.indexOf(")"),r=eg(e,"("),i=eg(e,")");n!==-1&&r>i;)e+=o.slice(0,n+1),o=o.slice(n+1),n=o.indexOf(")"),i++;return[e,o]}function g4(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ac(n)||kc(n))&&(!t||n!==47)}function NN(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const IN=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function RN(e){return e.replace(IN,MN)}function MN(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return NN(n.slice(o?2:1),o?16:10)}return zO(n)||e}function ig(e){return e.label||!e.identifier?e.label||"":RN(e.identifier)}function ho(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:l,current:a,shift:s};function a(){return{now:{line:i,column:o},lineShift:r}}function s(c){r+=c}function l(c=""){const u=c.split(/\r?\n|\r/g),f=u[u.length-1];return i+=u.length-1,o=u.length===1?o+f.length:1+f.length+r,c}}function m4(e,t,n){const r=t.indexStack,i=e.children||[],o=ho(n),a=[];let s=-1;for(r.push(-1);++s<i.length;){const c=i[s];r[r.length-1]=s,a.push(o.move(t.handle(c,e,t,{before:`
50
+ `,after:`
51
+ `,...o.current()}))),c.type!=="list"&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(l(c,i[s+1])))}return r.pop(),a.join("");function l(c,u){let f=t.join.length;for(;f--;){const g=t.join[f](c,u,e,t);if(g===!0||g===1)break;if(typeof g=="number")return`
52
+ `.repeat(1+g);if(g===!1)return`
53
+
54
+ <!---->
55
+
56
+ `}return`
57
+
58
+ `}}const LN=/\r?\n|\r/g;function p4(e,t){const n=[];let r=0,i=0,o;for(;o=LN.exec(e);)a(e.slice(r,o.index)),n.push(o[0]),r=o.index+o[0].length,i++;return a(e.slice(r)),n.join("");function a(s){n.push(t(s,i,!s))}}function x4(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function PN(e,t){return og(e,t.inConstruct,!0)&&!og(e,t.notInConstruct,!1)}function og(e,t,n){if(!t)return n;typeof t=="string"&&(t=[t]);let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function ag(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],a={};let s=-1;for(;++s<e.unsafe.length;){const u=e.unsafe[s];if(!PN(e.stack,u))continue;const f=x4(u);let g;for(;g=f.exec(r);){const d="before"in u||!!u.atBreak,h="after"in u,m=g.index+(d?g[1].length:0);i.includes(m)?(a[m].before&&!d&&(a[m].before=!1),a[m].after&&!h&&(a[m].after=!1)):(i.push(m),a[m]={before:d,after:h})}}i.sort(DN);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){const u=i[s];u<l||u>=c||u+1<c&&i[s+1]===u+1&&a[u].after&&!a[u+1].before&&!a[u+1].after||i[s-1]===u-1&&a[u].before&&!a[u-1].before&&!a[u-1].after||(l!==u&&o.push(sg(r.slice(l,u),"\\")),l=u,/[!-/:-@[-`{-~]/.test(r.charAt(u))&&(!n.encode||!n.encode.includes(r.charAt(u)))?o.push("\\"):(o.push("&#x"+r.charCodeAt(u).toString(16).toUpperCase()+";"),l++))}return o.push(sg(r.slice(l,c),n.after)),o.join("")}function DN(e,t){return e-t}function sg(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let a=-1,s=0,l;for(;l=n.exec(o);)r.push(l.index);for(;++a<r.length;)s!==r[a]&&i.push(e.slice(s,r[a])),i.push("\\"),s=r[a];return i.push(e.slice(s)),i.join("")}function $N(){return{enter:{gfmFootnoteDefinition:e,gfmFootnoteDefinitionLabelString:t,gfmFootnoteCall:i,gfmFootnoteCallString:o},exit:{gfmFootnoteDefinition:r,gfmFootnoteDefinitionLabelString:n,gfmFootnoteCall:s,gfmFootnoteCallString:a}};function e(l){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},l)}function t(){this.buffer()}function n(l){const c=this.resume(),u=this.stack[this.stack.length-1];u.label=c,u.identifier=sl(this.sliceSerialize(l)).toLowerCase()}function r(l){this.exit(l)}function i(l){this.enter({type:"footnoteReference",identifier:"",label:""},l)}function o(){this.buffer()}function a(l){const c=this.resume(),u=this.stack[this.stack.length-1];u.label=c,u.identifier=sl(this.sliceSerialize(l)).toLowerCase()}function s(l){this.exit(l)}}function BN(){return e.peek=t,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:n,footnoteReference:e}};function e(r,i,o,a){const s=ho(a);let l=s.move("[^");const c=o.enter("footnoteReference"),u=o.enter("reference");return l+=s.move(ag(o,ig(r),{...s.current(),before:l,after:"]"})),u(),c(),l+=s.move("]"),l}function t(){return"["}function n(r,i,o,a){const s=ho(a);let l=s.move("[^");const c=o.enter("footnoteDefinition"),u=o.enter("label");return l+=s.move(ag(o,ig(r),{...s.current(),before:l,after:"]"})),u(),l+=s.move("]:"+(r.children&&r.children.length>0?" ":"")),s.shift(4),l+=s.move(p4(m4(r,o,s.current()),f)),c(),l;function f(g,d,h){return d?(h?"":" ")+g:g}}}function b4(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let a=-1,s=n.before;r.push(-1);let l=ho(n);for(;++a<i.length;){const c=i[a];let u;if(r[r.length-1]=a,a+1<i.length){let f=t.handle.handlers[i[a+1].type];f&&f.peek&&(f=f.peek),u=f?f(i[a+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else u=n.after;o.length>0&&(s==="\r"||s===`
59
+ `)&&c.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=ho(n),l.move(o.join(""))),o.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=o[o.length-1].slice(-1)}return r.pop(),o.join("")}const FN={canContainEols:["delete"],enter:{strikethrough:zN},exit:{strikethrough:UN}},HN={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:_4}};_4.peek=jN;function zN(e){this.enter({type:"delete",children:[]},e)}function UN(e){this.exit(e)}function _4(e,t,n,r){const i=ho(r),o=n.enter("emphasis");let a=i.move("~~");return a+=b4(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function jN(){return"~"}v4.peek=GN;function v4(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const a=n.unsafe[o],s=x4(a);let l;if(a.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function GN(){return"`"}function KN(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||VN,i=[],o=[],a=[],s=[];let l=0,c=-1;for(;++c<e.length;){const h=[],m=[];let p=-1;for(e[c].length>l&&(l=e[c].length);++p<e[c].length;){const b=WN(e[c][p]);if(t.alignDelimiters!==!1){const E=r(b);m[p]=E,(s[p]===void 0||E>s[p])&&(s[p]=E)}h.push(b)}o[c]=h,a[c]=m}let u=-1;if(typeof n=="object"&&"length"in n)for(;++u<l;)i[u]=lg(n[u]);else{const h=lg(n);for(;++u<l;)i[u]=h}u=-1;const f=[],g=[];for(;++u<l;){const h=i[u];let m="",p="";h===99?(m=":",p=":"):h===108?m=":":h===114&&(p=":");let b=t.alignDelimiters===!1?1:Math.max(1,s[u]-m.length-p.length);const E=m+"-".repeat(b)+p;t.alignDelimiters!==!1&&(b=m.length+b+p.length,b>s[u]&&(s[u]=b),g[u]=b),f[u]=E}o.splice(1,0,f),a.splice(1,0,g),c=-1;const d=[];for(;++c<o.length;){const h=o[c],m=a[c];u=-1;const p=[];for(;++u<l;){const b=h[u]||"";let E="",v="";if(t.alignDelimiters!==!1){const N=s[u]-(m[u]||0),I=i[u];I===114?E=" ".repeat(N):I===99?N%2?(E=" ".repeat(N/2+.5),v=" ".repeat(N/2-.5)):(E=" ".repeat(N/2),v=E):v=" ".repeat(N)}t.delimiterStart!==!1&&!u&&p.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&b==="")&&(t.delimiterStart!==!1||u)&&p.push(" "),t.alignDelimiters!==!1&&p.push(E),p.push(b),t.alignDelimiters!==!1&&p.push(v),t.padding!==!1&&p.push(" "),(t.delimiterEnd!==!1||u!==l-1)&&p.push("|")}d.push(t.delimiterEnd===!1?p.join("").replace(/ +$/,""):p.join(""))}return d.join(`
60
+ `)}function WN(e){return e==null?"":String(e)}function VN(e){return e.length}function lg(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const qN={enter:{table:YN,tableData:cg,tableHeader:cg,tableRow:QN},exit:{codeText:ZN,table:XN,tableData:C0,tableHeader:C0,tableRow:C0}};function YN(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function XN(e){this.exit(e),this.setData("inTable")}function QN(e){this.enter({type:"tableRow",children:[]},e)}function C0(e){this.exit(e)}function cg(e){this.enter({type:"tableCell",children:[]},e)}function ZN(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,JN));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function JN(e,t){return t==="|"?t:e}function eI(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
61
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:s,tableCell:l,inlineCode:g}};function a(d,h,m,p){return c(u(d,m,p),d.align)}function s(d,h,m,p){const b=f(d,m,p),E=c([b]);return E.slice(0,E.indexOf(`
62
+ `))}function l(d,h,m,p){const b=m.enter("tableCell"),E=m.enter("phrasing"),v=b4(d,m,{...p,before:o,after:o});return E(),b(),v}function c(d,h){return KN(d,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function u(d,h,m){const p=d.children;let b=-1;const E=[],v=h.enter("table");for(;++b<p.length;)E[b]=f(p[b],h,m);return v(),E}function f(d,h,m){const p=d.children;let b=-1;const E=[],v=h.enter("tableRow");for(;++b<p.length;)E[b]=l(p[b],d,h,m);return v(),E}function g(d,h,m){let p=v4(d,h,m);return m.stack.includes("tableCell")&&(p=p.replace(/\|/g,"\\$&")),p}}function tI(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function nI(e){const t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function rI(e,t,n,r){const i=nI(n);let o=n.bulletCurrent||tI(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=ho(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=p4(m4(e,n,s.current()),u);return l(),c;function u(f,g,d){return g?(d?"":" ".repeat(a))+f:(d?o:o+" ".repeat(a-o.length))+f}}const iI={exit:{taskListCheckValueChecked:ug,taskListCheckValueUnchecked:ug,paragraph:aI}},oI={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:sI}};function ug(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function aI(e){const t=this.stack[this.stack.length-2],n=this.stack[this.stack.length-1],r=t.children,i=n.children[0];let o=-1,a;if(t&&t.type==="listItem"&&typeof t.checked=="boolean"&&i&&i.type==="text"){for(;++o<r.length;){const s=r[o];if(s.type==="paragraph"){a=s;break}}a===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}this.exit(e)}function sI(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=ho(r);o&&s.move(a);let l=rI(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+a}}function lI(){return[bN,$N(),FN,qN,iI]}function cI(e){return{extensions:[_N,BN(),HN,eI(e),oI]}}function uI(e={}){const t=this.data();n("micromarkExtensions",aN(e)),n("fromMarkdownExtensions",lI()),n("toMarkdownExtensions",cI(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}var Kr={};const dI=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];Kr.REPLACEMENT_CHARACTER="�";Kr.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533};Kr.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]};Kr.isSurrogate=function(e){return e>=55296&&e<=57343};Kr.isSurrogatePair=function(e){return e>=56320&&e<=57343};Kr.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Kr.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Kr.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||dI.indexOf(e)>-1};var Cd={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const Ea=Kr,w0=Cd,Do=Ea.CODE_POINTS,fI=65536;let hI=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=fI}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(Ea.isSurrogatePair(n))return this.pos++,this._addGap(),Ea.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Do.EOF;return this._err(w0.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,Do.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Do.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Do.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Do.LINE_FEED):(this.skipNextNewLine=!1,Ea.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Do.LINE_FEED||t===Do.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ea.isControlCodePoint(t)?this._err(w0.controlCharacterInInputStream):Ea.isUndefinedCodePoint(t)&&this._err(w0.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var gI=hI,mI=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const pI=gI,Ot=Kr,Ko=mI,Z=Cd,L=Ot.CODE_POINTS,$o=Ot.CODE_POINT_SEQUENCES,xI={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},E4=1,T4=2,y4=4,bI=E4|T4|y4,rt="DATA_STATE",Ta="RCDATA_STATE",Ms="RAWTEXT_STATE",vi="SCRIPT_DATA_STATE",S4="PLAINTEXT_STATE",dg="TAG_OPEN_STATE",fg="END_TAG_OPEN_STATE",A0="TAG_NAME_STATE",hg="RCDATA_LESS_THAN_SIGN_STATE",gg="RCDATA_END_TAG_OPEN_STATE",mg="RCDATA_END_TAG_NAME_STATE",pg="RAWTEXT_LESS_THAN_SIGN_STATE",xg="RAWTEXT_END_TAG_OPEN_STATE",bg="RAWTEXT_END_TAG_NAME_STATE",_g="SCRIPT_DATA_LESS_THAN_SIGN_STATE",vg="SCRIPT_DATA_END_TAG_OPEN_STATE",Eg="SCRIPT_DATA_END_TAG_NAME_STATE",Tg="SCRIPT_DATA_ESCAPE_START_STATE",yg="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Dr="SCRIPT_DATA_ESCAPED_STATE",Sg="SCRIPT_DATA_ESCAPED_DASH_STATE",k0="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",Vl="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",Cg="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",wg="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",Ag="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",gi="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",kg="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",Og="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",ql="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",Ng="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Yr="BEFORE_ATTRIBUTE_NAME_STATE",Yl="ATTRIBUTE_NAME_STATE",O0="AFTER_ATTRIBUTE_NAME_STATE",N0="BEFORE_ATTRIBUTE_VALUE_STATE",Xl="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",Ql="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",Zl="ATTRIBUTE_VALUE_UNQUOTED_STATE",I0="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Vi="SELF_CLOSING_START_TAG_STATE",vs="BOGUS_COMMENT_STATE",Ig="MARKUP_DECLARATION_OPEN_STATE",Rg="COMMENT_START_STATE",Mg="COMMENT_START_DASH_STATE",qi="COMMENT_STATE",Lg="COMMENT_LESS_THAN_SIGN_STATE",Pg="COMMENT_LESS_THAN_SIGN_BANG_STATE",Dg="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",$g="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",Jl="COMMENT_END_DASH_STATE",e1="COMMENT_END_STATE",Bg="COMMENT_END_BANG_STATE",Fg="DOCTYPE_STATE",t1="BEFORE_DOCTYPE_NAME_STATE",n1="DOCTYPE_NAME_STATE",Hg="AFTER_DOCTYPE_NAME_STATE",zg="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",Ug="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",R0="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",M0="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",L0="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",jg="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",Gg="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Kg="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Es="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Ts="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",P0="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",mi="BOGUS_DOCTYPE_STATE",r1="CDATA_SECTION_STATE",Wg="CDATA_SECTION_BRACKET_STATE",Vg="CDATA_SECTION_END_STATE",xa="CHARACTER_REFERENCE_STATE",qg="NAMED_CHARACTER_REFERENCE_STATE",Yg="AMBIGUOS_AMPERSAND_STATE",Xg="NUMERIC_CHARACTER_REFERENCE_STATE",Qg="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Zg="DECIMAL_CHARACTER_REFERENCE_START_STATE",Jg="HEXADEMICAL_CHARACTER_REFERENCE_STATE",e2="DECIMAL_CHARACTER_REFERENCE_STATE",ys="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Ht(e){return e===L.SPACE||e===L.LINE_FEED||e===L.TABULATION||e===L.FORM_FEED}function Ks(e){return e>=L.DIGIT_0&&e<=L.DIGIT_9}function $r(e){return e>=L.LATIN_CAPITAL_A&&e<=L.LATIN_CAPITAL_Z}function jo(e){return e>=L.LATIN_SMALL_A&&e<=L.LATIN_SMALL_Z}function Zi(e){return jo(e)||$r(e)}function D0(e){return Zi(e)||Ks(e)}function C4(e){return e>=L.LATIN_CAPITAL_A&&e<=L.LATIN_CAPITAL_F}function w4(e){return e>=L.LATIN_SMALL_A&&e<=L.LATIN_SMALL_F}function _I(e){return Ks(e)||C4(e)||w4(e)}function p1(e){return e+32}function Yt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function Yi(e){return String.fromCharCode(p1(e))}function t2(e,t){const n=Ko[++e];let r=++e,i=r+n-1;for(;r<=i;){const o=r+i>>>1,a=Ko[o];if(a<t)r=o+1;else if(a>t)i=o-1;else return Ko[o+n]}return-1}let kr=class qn{constructor(){this.preprocessor=new pI,this.tokenQueue=[],this.allowCDATA=!1,this.state=rt,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:qn.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,o=!0;const a=t.length;let s=0,l=n,c;for(;s<a;s++){if(s>0&&(l=this._consume(),i++),l===L.EOF){o=!1;break}if(c=t[s],l!==c&&(r||l!==p1(c))){o=!1;break}}if(!o)for(;i--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==$o.SCRIPT_STRING.length)return!1;for(let t=0;t<this.tempBuff.length;t++)if(this.tempBuff[t]!==$o.SCRIPT_STRING[t])return!1;return!0}_createStartTagToken(){this.currentToken={type:qn.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:qn.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:qn.COMMENT_TOKEN,data:""}}_createDoctypeToken(t){this.currentToken={type:qn.DOCTYPE_TOKEN,name:t,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n}}_createEOFToken(){this.currentToken={type:qn.EOF_TOKEN}}_createAttr(t){this.currentAttr={name:t,value:""}}_leaveAttrName(t){qn.getTokenAttr(this.currentToken,this.currentAttr.name)===null?this.currentToken.attrs.push(this.currentAttr):this._err(Z.duplicateAttribute),this.state=t}_leaveAttrValue(t){this.state=t}_emitCurrentToken(){this._emitCurrentCharacterToken();const t=this.currentToken;this.currentToken=null,t.type===qn.START_TAG_TOKEN?this.lastStartTagName=t.tagName:t.type===qn.END_TAG_TOKEN&&(t.attrs.length>0&&this._err(Z.endTagWithAttributes),t.selfClosing&&this._err(Z.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=qn.CHARACTER_TOKEN;Ht(t)?n=qn.WHITESPACE_CHARACTER_TOKEN:t===L.NULL&&(n=qn.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Yt(t))}_emitSeveralCodePoints(t){for(let n=0;n<t.length;n++)this._emitCodePoint(t[n])}_emitChars(t){this._appendCharToCurrentCharacterToken(qn.CHARACTER_TOKEN,t)}_matchNamedCharacterReference(t){let n=null,r=1,i=t2(0,t);for(this.tempBuff.push(t);i>-1;){const o=Ko[i],a=o<bI;a&&o&E4&&(n=o&T4?[Ko[++i],Ko[++i]]:[Ko[++i]],r=0);const l=this._consume();if(this.tempBuff.push(l),r++,l===L.EOF)break;a?i=o&y4?t2(i,l):-1:i=l===o?++i:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return n}_isCharacterReferenceInAttribute(){return this.returnState===Xl||this.returnState===Ql||this.returnState===Zl}_isCharacterReferenceAttributeQuirk(t){if(!t&&this._isCharacterReferenceInAttribute()){const n=this._consume();return this._unconsume(),n===L.EQUALS_SIGN||D0(n)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let t=0;t<this.tempBuff.length;t++)this.currentAttr.value+=Yt(this.tempBuff[t]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[rt](t){this.preprocessor.dropParsedChunk(),t===L.LESS_THAN_SIGN?this.state=dg:t===L.AMPERSAND?(this.returnState=rt,this.state=xa):t===L.NULL?(this._err(Z.unexpectedNullCharacter),this._emitCodePoint(t)):t===L.EOF?this._emitEOFToken():this._emitCodePoint(t)}[Ta](t){this.preprocessor.dropParsedChunk(),t===L.AMPERSAND?(this.returnState=Ta,this.state=xa):t===L.LESS_THAN_SIGN?this.state=hg:t===L.NULL?(this._err(Z.unexpectedNullCharacter),this._emitChars(Ot.REPLACEMENT_CHARACTER)):t===L.EOF?this._emitEOFToken():this._emitCodePoint(t)}[Ms](t){this.preprocessor.dropParsedChunk(),t===L.LESS_THAN_SIGN?this.state=pg:t===L.NULL?(this._err(Z.unexpectedNullCharacter),this._emitChars(Ot.REPLACEMENT_CHARACTER)):t===L.EOF?this._emitEOFToken():this._emitCodePoint(t)}[vi](t){this.preprocessor.dropParsedChunk(),t===L.LESS_THAN_SIGN?this.state=_g:t===L.NULL?(this._err(Z.unexpectedNullCharacter),this._emitChars(Ot.REPLACEMENT_CHARACTER)):t===L.EOF?this._emitEOFToken():this._emitCodePoint(t)}[S4](t){this.preprocessor.dropParsedChunk(),t===L.NULL?(this._err(Z.unexpectedNullCharacter),this._emitChars(Ot.REPLACEMENT_CHARACTER)):t===L.EOF?this._emitEOFToken():this._emitCodePoint(t)}[dg](t){t===L.EXCLAMATION_MARK?this.state=Ig:t===L.SOLIDUS?this.state=fg:Zi(t)?(this._createStartTagToken(),this._reconsumeInState(A0)):t===L.QUESTION_MARK?(this._err(Z.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(vs)):t===L.EOF?(this._err(Z.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(Z.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(rt))}[fg](t){Zi(t)?(this._createEndTagToken(),this._reconsumeInState(A0)):t===L.GREATER_THAN_SIGN?(this._err(Z.missingEndTagName),this.state=rt):t===L.EOF?(this._err(Z.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(Z.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(vs))}[A0](t){Ht(t)?this.state=Yr:t===L.SOLIDUS?this.state=Vi:t===L.GREATER_THAN_SIGN?(this.state=rt,this._emitCurrentToken()):$r(t)?this.currentToken.tagName+=Yi(t):t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.currentToken.tagName+=Ot.REPLACEMENT_CHARACTER):t===L.EOF?(this._err(Z.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=Yt(t)}[hg](t){t===L.SOLIDUS?(this.tempBuff=[],this.state=gg):(this._emitChars("<"),this._reconsumeInState(Ta))}[gg](t){Zi(t)?(this._createEndTagToken(),this._reconsumeInState(mg)):(this._emitChars("</"),this._reconsumeInState(Ta))}[mg](t){if($r(t))this.currentToken.tagName+=Yi(t),this.tempBuff.push(t);else if(jo(t))this.currentToken.tagName+=Yt(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ht(t)){this.state=Yr;return}if(t===L.SOLIDUS){this.state=Vi;return}if(t===L.GREATER_THAN_SIGN){this.state=rt,this._emitCurrentToken();return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Ta)}}[pg](t){t===L.SOLIDUS?(this.tempBuff=[],this.state=xg):(this._emitChars("<"),this._reconsumeInState(Ms))}[xg](t){Zi(t)?(this._createEndTagToken(),this._reconsumeInState(bg)):(this._emitChars("</"),this._reconsumeInState(Ms))}[bg](t){if($r(t))this.currentToken.tagName+=Yi(t),this.tempBuff.push(t);else if(jo(t))this.currentToken.tagName+=Yt(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ht(t)){this.state=Yr;return}if(t===L.SOLIDUS){this.state=Vi;return}if(t===L.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=rt;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Ms)}}[_g](t){t===L.SOLIDUS?(this.tempBuff=[],this.state=vg):t===L.EXCLAMATION_MARK?(this.state=Tg,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(vi))}[vg](t){Zi(t)?(this._createEndTagToken(),this._reconsumeInState(Eg)):(this._emitChars("</"),this._reconsumeInState(vi))}[Eg](t){if($r(t))this.currentToken.tagName+=Yi(t),this.tempBuff.push(t);else if(jo(t))this.currentToken.tagName+=Yt(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ht(t)){this.state=Yr;return}else if(t===L.SOLIDUS){this.state=Vi;return}else if(t===L.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=rt;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(vi)}}[Tg](t){t===L.HYPHEN_MINUS?(this.state=yg,this._emitChars("-")):this._reconsumeInState(vi)}[yg](t){t===L.HYPHEN_MINUS?(this.state=k0,this._emitChars("-")):this._reconsumeInState(vi)}[Dr](t){t===L.HYPHEN_MINUS?(this.state=Sg,this._emitChars("-")):t===L.LESS_THAN_SIGN?this.state=Vl:t===L.NULL?(this._err(Z.unexpectedNullCharacter),this._emitChars(Ot.REPLACEMENT_CHARACTER)):t===L.EOF?(this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[Sg](t){t===L.HYPHEN_MINUS?(this.state=k0,this._emitChars("-")):t===L.LESS_THAN_SIGN?this.state=Vl:t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.state=Dr,this._emitChars(Ot.REPLACEMENT_CHARACTER)):t===L.EOF?(this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Dr,this._emitCodePoint(t))}[k0](t){t===L.HYPHEN_MINUS?this._emitChars("-"):t===L.LESS_THAN_SIGN?this.state=Vl:t===L.GREATER_THAN_SIGN?(this.state=vi,this._emitChars(">")):t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.state=Dr,this._emitChars(Ot.REPLACEMENT_CHARACTER)):t===L.EOF?(this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Dr,this._emitCodePoint(t))}[Vl](t){t===L.SOLIDUS?(this.tempBuff=[],this.state=Cg):Zi(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(Ag)):(this._emitChars("<"),this._reconsumeInState(Dr))}[Cg](t){Zi(t)?(this._createEndTagToken(),this._reconsumeInState(wg)):(this._emitChars("</"),this._reconsumeInState(Dr))}[wg](t){if($r(t))this.currentToken.tagName+=Yi(t),this.tempBuff.push(t);else if(jo(t))this.currentToken.tagName+=Yt(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(Ht(t)){this.state=Yr;return}if(t===L.SOLIDUS){this.state=Vi;return}if(t===L.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=rt;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Dr)}}[Ag](t){Ht(t)||t===L.SOLIDUS||t===L.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?gi:Dr,this._emitCodePoint(t)):$r(t)?(this.tempBuff.push(p1(t)),this._emitCodePoint(t)):jo(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Dr)}[gi](t){t===L.HYPHEN_MINUS?(this.state=kg,this._emitChars("-")):t===L.LESS_THAN_SIGN?(this.state=ql,this._emitChars("<")):t===L.NULL?(this._err(Z.unexpectedNullCharacter),this._emitChars(Ot.REPLACEMENT_CHARACTER)):t===L.EOF?(this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[kg](t){t===L.HYPHEN_MINUS?(this.state=Og,this._emitChars("-")):t===L.LESS_THAN_SIGN?(this.state=ql,this._emitChars("<")):t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.state=gi,this._emitChars(Ot.REPLACEMENT_CHARACTER)):t===L.EOF?(this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=gi,this._emitCodePoint(t))}[Og](t){t===L.HYPHEN_MINUS?this._emitChars("-"):t===L.LESS_THAN_SIGN?(this.state=ql,this._emitChars("<")):t===L.GREATER_THAN_SIGN?(this.state=vi,this._emitChars(">")):t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.state=gi,this._emitChars(Ot.REPLACEMENT_CHARACTER)):t===L.EOF?(this._err(Z.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=gi,this._emitCodePoint(t))}[ql](t){t===L.SOLIDUS?(this.tempBuff=[],this.state=Ng,this._emitChars("/")):this._reconsumeInState(gi)}[Ng](t){Ht(t)||t===L.SOLIDUS||t===L.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Dr:gi,this._emitCodePoint(t)):$r(t)?(this.tempBuff.push(p1(t)),this._emitCodePoint(t)):jo(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(gi)}[Yr](t){Ht(t)||(t===L.SOLIDUS||t===L.GREATER_THAN_SIGN||t===L.EOF?this._reconsumeInState(O0):t===L.EQUALS_SIGN?(this._err(Z.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Yl):(this._createAttr(""),this._reconsumeInState(Yl)))}[Yl](t){Ht(t)||t===L.SOLIDUS||t===L.GREATER_THAN_SIGN||t===L.EOF?(this._leaveAttrName(O0),this._unconsume()):t===L.EQUALS_SIGN?this._leaveAttrName(N0):$r(t)?this.currentAttr.name+=Yi(t):t===L.QUOTATION_MARK||t===L.APOSTROPHE||t===L.LESS_THAN_SIGN?(this._err(Z.unexpectedCharacterInAttributeName),this.currentAttr.name+=Yt(t)):t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.currentAttr.name+=Ot.REPLACEMENT_CHARACTER):this.currentAttr.name+=Yt(t)}[O0](t){Ht(t)||(t===L.SOLIDUS?this.state=Vi:t===L.EQUALS_SIGN?this.state=N0:t===L.GREATER_THAN_SIGN?(this.state=rt,this._emitCurrentToken()):t===L.EOF?(this._err(Z.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(Yl)))}[N0](t){Ht(t)||(t===L.QUOTATION_MARK?this.state=Xl:t===L.APOSTROPHE?this.state=Ql:t===L.GREATER_THAN_SIGN?(this._err(Z.missingAttributeValue),this.state=rt,this._emitCurrentToken()):this._reconsumeInState(Zl))}[Xl](t){t===L.QUOTATION_MARK?this.state=I0:t===L.AMPERSAND?(this.returnState=Xl,this.state=xa):t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.currentAttr.value+=Ot.REPLACEMENT_CHARACTER):t===L.EOF?(this._err(Z.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Yt(t)}[Ql](t){t===L.APOSTROPHE?this.state=I0:t===L.AMPERSAND?(this.returnState=Ql,this.state=xa):t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.currentAttr.value+=Ot.REPLACEMENT_CHARACTER):t===L.EOF?(this._err(Z.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Yt(t)}[Zl](t){Ht(t)?this._leaveAttrValue(Yr):t===L.AMPERSAND?(this.returnState=Zl,this.state=xa):t===L.GREATER_THAN_SIGN?(this._leaveAttrValue(rt),this._emitCurrentToken()):t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.currentAttr.value+=Ot.REPLACEMENT_CHARACTER):t===L.QUOTATION_MARK||t===L.APOSTROPHE||t===L.LESS_THAN_SIGN||t===L.EQUALS_SIGN||t===L.GRAVE_ACCENT?(this._err(Z.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Yt(t)):t===L.EOF?(this._err(Z.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Yt(t)}[I0](t){Ht(t)?this._leaveAttrValue(Yr):t===L.SOLIDUS?this._leaveAttrValue(Vi):t===L.GREATER_THAN_SIGN?(this._leaveAttrValue(rt),this._emitCurrentToken()):t===L.EOF?(this._err(Z.eofInTag),this._emitEOFToken()):(this._err(Z.missingWhitespaceBetweenAttributes),this._reconsumeInState(Yr))}[Vi](t){t===L.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=rt,this._emitCurrentToken()):t===L.EOF?(this._err(Z.eofInTag),this._emitEOFToken()):(this._err(Z.unexpectedSolidusInTag),this._reconsumeInState(Yr))}[vs](t){t===L.GREATER_THAN_SIGN?(this.state=rt,this._emitCurrentToken()):t===L.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.currentToken.data+=Ot.REPLACEMENT_CHARACTER):this.currentToken.data+=Yt(t)}[Ig](t){this._consumeSequenceIfMatch($o.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=Rg):this._consumeSequenceIfMatch($o.DOCTYPE_STRING,t,!1)?this.state=Fg:this._consumeSequenceIfMatch($o.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=r1:(this._err(Z.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=vs):this._ensureHibernation()||(this._err(Z.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(vs))}[Rg](t){t===L.HYPHEN_MINUS?this.state=Mg:t===L.GREATER_THAN_SIGN?(this._err(Z.abruptClosingOfEmptyComment),this.state=rt,this._emitCurrentToken()):this._reconsumeInState(qi)}[Mg](t){t===L.HYPHEN_MINUS?this.state=e1:t===L.GREATER_THAN_SIGN?(this._err(Z.abruptClosingOfEmptyComment),this.state=rt,this._emitCurrentToken()):t===L.EOF?(this._err(Z.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(qi))}[qi](t){t===L.HYPHEN_MINUS?this.state=Jl:t===L.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=Lg):t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.currentToken.data+=Ot.REPLACEMENT_CHARACTER):t===L.EOF?(this._err(Z.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Yt(t)}[Lg](t){t===L.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=Pg):t===L.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(qi)}[Pg](t){t===L.HYPHEN_MINUS?this.state=Dg:this._reconsumeInState(qi)}[Dg](t){t===L.HYPHEN_MINUS?this.state=$g:this._reconsumeInState(Jl)}[$g](t){t!==L.GREATER_THAN_SIGN&&t!==L.EOF&&this._err(Z.nestedComment),this._reconsumeInState(e1)}[Jl](t){t===L.HYPHEN_MINUS?this.state=e1:t===L.EOF?(this._err(Z.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(qi))}[e1](t){t===L.GREATER_THAN_SIGN?(this.state=rt,this._emitCurrentToken()):t===L.EXCLAMATION_MARK?this.state=Bg:t===L.HYPHEN_MINUS?this.currentToken.data+="-":t===L.EOF?(this._err(Z.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(qi))}[Bg](t){t===L.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=Jl):t===L.GREATER_THAN_SIGN?(this._err(Z.incorrectlyClosedComment),this.state=rt,this._emitCurrentToken()):t===L.EOF?(this._err(Z.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(qi))}[Fg](t){Ht(t)?this.state=t1:t===L.GREATER_THAN_SIGN?this._reconsumeInState(t1):t===L.EOF?(this._err(Z.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Z.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(t1))}[t1](t){Ht(t)||($r(t)?(this._createDoctypeToken(Yi(t)),this.state=n1):t===L.NULL?(this._err(Z.unexpectedNullCharacter),this._createDoctypeToken(Ot.REPLACEMENT_CHARACTER),this.state=n1):t===L.GREATER_THAN_SIGN?(this._err(Z.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=rt):t===L.EOF?(this._err(Z.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Yt(t)),this.state=n1))}[n1](t){Ht(t)?this.state=Hg:t===L.GREATER_THAN_SIGN?(this.state=rt,this._emitCurrentToken()):$r(t)?this.currentToken.name+=Yi(t):t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.currentToken.name+=Ot.REPLACEMENT_CHARACTER):t===L.EOF?(this._err(Z.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Yt(t)}[Hg](t){Ht(t)||(t===L.GREATER_THAN_SIGN?(this.state=rt,this._emitCurrentToken()):t===L.EOF?(this._err(Z.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch($o.PUBLIC_STRING,t,!1)?this.state=zg:this._consumeSequenceIfMatch($o.SYSTEM_STRING,t,!1)?this.state=Gg:this._ensureHibernation()||(this._err(Z.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(mi)))}[zg](t){Ht(t)?this.state=Ug:t===L.QUOTATION_MARK?(this._err(Z.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=R0):t===L.APOSTROPHE?(this._err(Z.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=M0):t===L.GREATER_THAN_SIGN?(this._err(Z.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=rt,this._emitCurrentToken()):t===L.EOF?(this._err(Z.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Z.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(mi))}[Ug](t){Ht(t)||(t===L.QUOTATION_MARK?(this.currentToken.publicId="",this.state=R0):t===L.APOSTROPHE?(this.currentToken.publicId="",this.state=M0):t===L.GREATER_THAN_SIGN?(this._err(Z.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=rt,this._emitCurrentToken()):t===L.EOF?(this._err(Z.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Z.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(mi)))}[R0](t){t===L.QUOTATION_MARK?this.state=L0:t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.currentToken.publicId+=Ot.REPLACEMENT_CHARACTER):t===L.GREATER_THAN_SIGN?(this._err(Z.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=rt):t===L.EOF?(this._err(Z.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Yt(t)}[M0](t){t===L.APOSTROPHE?this.state=L0:t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.currentToken.publicId+=Ot.REPLACEMENT_CHARACTER):t===L.GREATER_THAN_SIGN?(this._err(Z.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=rt):t===L.EOF?(this._err(Z.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Yt(t)}[L0](t){Ht(t)?this.state=jg:t===L.GREATER_THAN_SIGN?(this.state=rt,this._emitCurrentToken()):t===L.QUOTATION_MARK?(this._err(Z.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Es):t===L.APOSTROPHE?(this._err(Z.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Ts):t===L.EOF?(this._err(Z.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(mi))}[jg](t){Ht(t)||(t===L.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=rt):t===L.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Es):t===L.APOSTROPHE?(this.currentToken.systemId="",this.state=Ts):t===L.EOF?(this._err(Z.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(mi)))}[Gg](t){Ht(t)?this.state=Kg:t===L.QUOTATION_MARK?(this._err(Z.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Es):t===L.APOSTROPHE?(this._err(Z.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Ts):t===L.GREATER_THAN_SIGN?(this._err(Z.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=rt,this._emitCurrentToken()):t===L.EOF?(this._err(Z.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(mi))}[Kg](t){Ht(t)||(t===L.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Es):t===L.APOSTROPHE?(this.currentToken.systemId="",this.state=Ts):t===L.GREATER_THAN_SIGN?(this._err(Z.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=rt,this._emitCurrentToken()):t===L.EOF?(this._err(Z.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Z.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(mi)))}[Es](t){t===L.QUOTATION_MARK?this.state=P0:t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.currentToken.systemId+=Ot.REPLACEMENT_CHARACTER):t===L.GREATER_THAN_SIGN?(this._err(Z.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=rt):t===L.EOF?(this._err(Z.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Yt(t)}[Ts](t){t===L.APOSTROPHE?this.state=P0:t===L.NULL?(this._err(Z.unexpectedNullCharacter),this.currentToken.systemId+=Ot.REPLACEMENT_CHARACTER):t===L.GREATER_THAN_SIGN?(this._err(Z.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=rt):t===L.EOF?(this._err(Z.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Yt(t)}[P0](t){Ht(t)||(t===L.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=rt):t===L.EOF?(this._err(Z.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Z.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(mi)))}[mi](t){t===L.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=rt):t===L.NULL?this._err(Z.unexpectedNullCharacter):t===L.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[r1](t){t===L.RIGHT_SQUARE_BRACKET?this.state=Wg:t===L.EOF?(this._err(Z.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Wg](t){t===L.RIGHT_SQUARE_BRACKET?this.state=Vg:(this._emitChars("]"),this._reconsumeInState(r1))}[Vg](t){t===L.GREATER_THAN_SIGN?this.state=rt:t===L.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(r1))}[xa](t){this.tempBuff=[L.AMPERSAND],t===L.NUMBER_SIGN?(this.tempBuff.push(t),this.state=Xg):D0(t)?this._reconsumeInState(qg):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[qg](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[L.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===L.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(Z.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Yg}[Yg](t){D0(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Yt(t):this._emitCodePoint(t):(t===L.SEMICOLON&&this._err(Z.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Xg](t){this.charRefCode=0,t===L.LATIN_SMALL_X||t===L.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=Qg):this._reconsumeInState(Zg)}[Qg](t){_I(t)?this._reconsumeInState(Jg):(this._err(Z.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Zg](t){Ks(t)?this._reconsumeInState(e2):(this._err(Z.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Jg](t){C4(t)?this.charRefCode=this.charRefCode*16+t-55:w4(t)?this.charRefCode=this.charRefCode*16+t-87:Ks(t)?this.charRefCode=this.charRefCode*16+t-48:t===L.SEMICOLON?this.state=ys:(this._err(Z.missingSemicolonAfterCharacterReference),this._reconsumeInState(ys))}[e2](t){Ks(t)?this.charRefCode=this.charRefCode*10+t-48:t===L.SEMICOLON?this.state=ys:(this._err(Z.missingSemicolonAfterCharacterReference),this._reconsumeInState(ys))}[ys](){if(this.charRefCode===L.NULL)this._err(Z.nullCharacterReference),this.charRefCode=L.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Z.characterReferenceOutsideUnicodeRange),this.charRefCode=L.REPLACEMENT_CHARACTER;else if(Ot.isSurrogate(this.charRefCode))this._err(Z.surrogateCharacterReference),this.charRefCode=L.REPLACEMENT_CHARACTER;else if(Ot.isUndefinedCodePoint(this.charRefCode))this._err(Z.noncharacterCharacterReference);else if(Ot.isControlCodePoint(this.charRefCode)||this.charRefCode===L.CARRIAGE_RETURN){this._err(Z.controlCharacterReference);const t=xI[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};kr.CHARACTER_TOKEN="CHARACTER_TOKEN";kr.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";kr.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";kr.START_TAG_TOKEN="START_TAG_TOKEN";kr.END_TAG_TOKEN="END_TAG_TOKEN";kr.COMMENT_TOKEN="COMMENT_TOKEN";kr.DOCTYPE_TOKEN="DOCTYPE_TOKEN";kr.EOF_TOKEN="EOF_TOKEN";kr.HIBERNATION_TOKEN="HIBERNATION_TOKEN";kr.MODE={DATA:rt,RCDATA:Ta,RAWTEXT:Ms,SCRIPT_DATA:vi,PLAINTEXT:S4};kr.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var Nc=kr,Wr={};const $0=Wr.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};Wr.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Wr.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const ue=Wr.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};Wr.SPECIAL_ELEMENTS={[$0.HTML]:{[ue.ADDRESS]:!0,[ue.APPLET]:!0,[ue.AREA]:!0,[ue.ARTICLE]:!0,[ue.ASIDE]:!0,[ue.BASE]:!0,[ue.BASEFONT]:!0,[ue.BGSOUND]:!0,[ue.BLOCKQUOTE]:!0,[ue.BODY]:!0,[ue.BR]:!0,[ue.BUTTON]:!0,[ue.CAPTION]:!0,[ue.CENTER]:!0,[ue.COL]:!0,[ue.COLGROUP]:!0,[ue.DD]:!0,[ue.DETAILS]:!0,[ue.DIR]:!0,[ue.DIV]:!0,[ue.DL]:!0,[ue.DT]:!0,[ue.EMBED]:!0,[ue.FIELDSET]:!0,[ue.FIGCAPTION]:!0,[ue.FIGURE]:!0,[ue.FOOTER]:!0,[ue.FORM]:!0,[ue.FRAME]:!0,[ue.FRAMESET]:!0,[ue.H1]:!0,[ue.H2]:!0,[ue.H3]:!0,[ue.H4]:!0,[ue.H5]:!0,[ue.H6]:!0,[ue.HEAD]:!0,[ue.HEADER]:!0,[ue.HGROUP]:!0,[ue.HR]:!0,[ue.HTML]:!0,[ue.IFRAME]:!0,[ue.IMG]:!0,[ue.INPUT]:!0,[ue.LI]:!0,[ue.LINK]:!0,[ue.LISTING]:!0,[ue.MAIN]:!0,[ue.MARQUEE]:!0,[ue.MENU]:!0,[ue.META]:!0,[ue.NAV]:!0,[ue.NOEMBED]:!0,[ue.NOFRAMES]:!0,[ue.NOSCRIPT]:!0,[ue.OBJECT]:!0,[ue.OL]:!0,[ue.P]:!0,[ue.PARAM]:!0,[ue.PLAINTEXT]:!0,[ue.PRE]:!0,[ue.SCRIPT]:!0,[ue.SECTION]:!0,[ue.SELECT]:!0,[ue.SOURCE]:!0,[ue.STYLE]:!0,[ue.SUMMARY]:!0,[ue.TABLE]:!0,[ue.TBODY]:!0,[ue.TD]:!0,[ue.TEMPLATE]:!0,[ue.TEXTAREA]:!0,[ue.TFOOT]:!0,[ue.TH]:!0,[ue.THEAD]:!0,[ue.TITLE]:!0,[ue.TR]:!0,[ue.TRACK]:!0,[ue.UL]:!0,[ue.WBR]:!0,[ue.XMP]:!0},[$0.MATHML]:{[ue.MI]:!0,[ue.MO]:!0,[ue.MN]:!0,[ue.MS]:!0,[ue.MTEXT]:!0,[ue.ANNOTATION_XML]:!0},[$0.SVG]:{[ue.TITLE]:!0,[ue.FOREIGN_OBJECT]:!0,[ue.DESC]:!0}};const A4=Wr,he=A4.TAG_NAMES,Nt=A4.NAMESPACES;function n2(e){switch(e.length){case 1:return e===he.P;case 2:return e===he.RB||e===he.RP||e===he.RT||e===he.DD||e===he.DT||e===he.LI;case 3:return e===he.RTC;case 6:return e===he.OPTION;case 8:return e===he.OPTGROUP}return!1}function vI(e){switch(e.length){case 1:return e===he.P;case 2:return e===he.RB||e===he.RP||e===he.RT||e===he.DD||e===he.DT||e===he.LI||e===he.TD||e===he.TH||e===he.TR;case 3:return e===he.RTC;case 5:return e===he.TBODY||e===he.TFOOT||e===he.THEAD;case 6:return e===he.OPTION;case 7:return e===he.CAPTION;case 8:return e===he.OPTGROUP||e===he.COLGROUP}return!1}function i1(e,t){switch(e.length){case 2:if(e===he.TD||e===he.TH)return t===Nt.HTML;if(e===he.MI||e===he.MO||e===he.MN||e===he.MS)return t===Nt.MATHML;break;case 4:if(e===he.HTML)return t===Nt.HTML;if(e===he.DESC)return t===Nt.SVG;break;case 5:if(e===he.TABLE)return t===Nt.HTML;if(e===he.MTEXT)return t===Nt.MATHML;if(e===he.TITLE)return t===Nt.SVG;break;case 6:return(e===he.APPLET||e===he.OBJECT)&&t===Nt.HTML;case 7:return(e===he.CAPTION||e===he.MARQUEE)&&t===Nt.HTML;case 8:return e===he.TEMPLATE&&t===Nt.HTML;case 13:return e===he.FOREIGN_OBJECT&&t===Nt.SVG;case 14:return e===he.ANNOTATION_XML&&t===Nt.MATHML}return!1}let EI=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===he.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Nt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===Nt.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===he.H1||t===he.H2||t===he.H3||t===he.H4||t===he.H5||t===he.H6&&n===Nt.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===he.TD||t===he.TH&&n===Nt.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==he.TABLE&&this.currentTagName!==he.TEMPLATE&&this.currentTagName!==he.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Nt.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==he.TBODY&&this.currentTagName!==he.TFOOT&&this.currentTagName!==he.THEAD&&this.currentTagName!==he.TEMPLATE&&this.currentTagName!==he.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Nt.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==he.TR&&this.currentTagName!==he.TEMPLATE&&this.currentTagName!==he.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Nt.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===he.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===he.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Nt.HTML)return!0;if(i1(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===he.H1||n===he.H2||n===he.H3||n===he.H4||n===he.H5||n===he.H6)&&r===Nt.HTML)return!0;if(i1(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Nt.HTML)return!0;if((r===he.UL||r===he.OL)&&i===Nt.HTML||i1(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Nt.HTML)return!0;if(r===he.BUTTON&&i===Nt.HTML||i1(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===Nt.HTML){if(r===t)return!0;if(r===he.TABLE||r===he.TEMPLATE||r===he.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===Nt.HTML){if(n===he.TBODY||n===he.THEAD||n===he.TFOOT)return!0;if(n===he.TABLE||n===he.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===Nt.HTML){if(r===t)return!0;if(r!==he.OPTION&&r!==he.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;n2(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;vI(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;n2(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var TI=EI;const o1=3;let wd=class Ji{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=o1){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let a=this.length-1;a>=0;a--){const s=this.entries[a];if(s.type===Ji.MARKER_ENTRY)break;const l=s.element,c=this.treeAdapter.getAttrList(l);this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===o&&c.length===r&&n.push({idx:a,attrs:c})}}return n.length<o1?[]:n}_ensureNoahArkCondition(t){const n=this._getNoahArkConditionCandidates(t);let r=n.length;if(r){const i=this.treeAdapter.getAttrList(t),o=i.length,a=Object.create(null);for(let s=0;s<o;s++){const l=i[s];a[l.name]=l.value}for(let s=0;s<o;s++)for(let l=0;l<r;l++){const c=n[l].attrs[s];if(a[c.name]!==c.value&&(n.splice(l,1),r--),n.length<o1)return}for(let s=r-1;s>=o1-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:Ji.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:Ji.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Ji.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===Ji.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Ji.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Ji.ELEMENT_ENTRY&&r.element===t)return r}return null}};wd.MARKER_ENTRY="MARKER_ENTRY";wd.ELEMENT_ENTRY="ELEMENT_ENTRY";var yI=wd;let k4=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};k4.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i<e.__mixins.length;i++)if(e.__mixins[i].constructor===t)return e.__mixins[i];const r=new t(e,n);return e.__mixins.push(r),r};var Fi=k4;const SI=Fi;let CI=class extends SI{constructor(t){super(t),this.preprocessor=t,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(t,n){return{advance(){const r=this.pos+1,i=this.html[r];return t.isEol&&(t.isEol=!1,t.line++,t.lineStartPos=r),(i===`
63
+ `||i==="\r"&&this.html[r+1]!==`
64
+ `)&&(t.isEol=!0),t.col=r-t.lineStartPos+1,t.offset=t.droppedBufferSize+r,n.advance.call(this)},retreat(){n.retreat.call(this),t.isEol=!1,t.col=this.pos-t.lineStartPos+1},dropParsedChunk(){const r=this.pos;n.dropParsedChunk.call(this);const i=r-this.pos;t.lineStartPos-=i,t.droppedBufferSize+=i,t.offset=t.droppedBufferSize+this.pos}}}};var O4=CI;const r2=Fi,B0=Nc,wI=O4;let AI=class extends r2{constructor(t){super(t),this.tokenizer=t,this.posTracker=r2.install(t.preprocessor,wI),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const t=this.tokenizer.currentToken,n=this.tokenizer.currentAttr;t.location.attrs||(t.location.attrs=Object.create(null)),t.location.attrs[n.name]=this.currentAttrLocation}_getOverriddenMethods(t,n){const r={_createStartTagToken(){n._createStartTagToken.call(this),this.currentToken.location=t.ctLoc},_createEndTagToken(){n._createEndTagToken.call(this),this.currentToken.location=t.ctLoc},_createCommentToken(){n._createCommentToken.call(this),this.currentToken.location=t.ctLoc},_createDoctypeToken(i){n._createDoctypeToken.call(this,i),this.currentToken.location=t.ctLoc},_createCharacterToken(i,o){n._createCharacterToken.call(this,i,o),this.currentCharacterToken.location=t.ctLoc},_createEOFToken(){n._createEOFToken.call(this),this.currentToken.location=t._getCurrentLocation()},_createAttr(i){n._createAttr.call(this,i),t.currentAttrLocation=t._getCurrentLocation()},_leaveAttrName(i){n._leaveAttrName.call(this,i),t._attachCurrentAttrLocationInfo()},_leaveAttrValue(i){n._leaveAttrValue.call(this,i),t._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const i=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentToken.type===B0.EOF_TOKEN?(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset):(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col+1,i.endOffset=t.posTracker.offset+1),n._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const i=this.currentCharacterToken&&this.currentCharacterToken.location;i&&i.endOffset===-1&&(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col,i.endOffset=t.posTracker.offset),n._emitCurrentCharacterToken.call(this)}};return Object.keys(B0.MODE).forEach(i=>{const o=B0.MODE[i];r[o]=function(a){t.ctLoc=t._getCurrentLocation(),n[o].call(this,a)}}),r}};var N4=AI;const kI=Fi;let OI=class extends kI{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var NI=OI;const F0=Fi,i2=Nc,II=N4,RI=NI,MI=Wr,H0=MI.TAG_NAMES;let LI=class extends F0{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,o=this.treeAdapter.getTagName(t),a=n.type===i2.END_TAG_TOKEN&&o===n.tagName,s={};a?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const o=F0.install(this.tokenizer,II);t.posTracker=o.posTracker,F0.install(this.openElements,RI,{onItemPop:function(a){t._setEndLocation(a,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===i2.END_TAG_TOKEN&&(r.tagName===H0.HTML||r.tagName===H0.BODY&&this.openElements.hasInScope(H0.BODY)))for(let o=this.openElements.stackTop;o>=0;o--){const a=this.openElements.items[o];if(this.treeAdapter.getTagName(a)===r.tagName){t._setEndLocation(a,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),o=i.length;for(let a=0;a<o;a++){const s=i[a];if(this.treeAdapter.isDocumentTypeNode(s)){this.treeAdapter.setNodeSourceCodeLocation(s,r.location);break}}},_attachElementToTree(r){t._setStartLocation(r),t.lastStartTagToken=null,n._attachElementToTree.call(this,r)},_appendElement(r,i){t.lastStartTagToken=r,n._appendElement.call(this,r,i)},_insertElement(r,i){t.lastStartTagToken=r,n._insertElement.call(this,r,i)},_insertTemplate(r){t.lastStartTagToken=r,n._insertTemplate.call(this,r);const i=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(i,null)},_insertFakeRootElement(){n._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(r,i){n._appendCommentNode.call(this,r,i);const o=this.treeAdapter.getChildNodes(i),a=o[o.length-1];this.treeAdapter.setNodeSourceCodeLocation(a,r.location)},_findFosterParentingLocation(){return t.lastFosterParentingLocation=n._findFosterParentingLocation.call(this),t.lastFosterParentingLocation},_insertCharacters(r){n._insertCharacters.call(this,r);const i=this._shouldFosterParentOnInsertion(),o=i&&t.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,a=this.treeAdapter.getChildNodes(o),s=i&&t.lastFosterParentingLocation.beforeElement?a.indexOf(t.lastFosterParentingLocation.beforeElement)-1:a.length-1,l=a[s];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:u,endCol:f,endOffset:g}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:u,endCol:f,endOffset:g})}else this.treeAdapter.setNodeSourceCodeLocation(l,r.location)}}}};var PI=LI;const DI=Fi;let $I=class extends DI{constructor(t,n){super(t),this.posTracker=null,this.onParseError=n.onParseError}_setErrorLocation(t){t.startLine=t.endLine=this.posTracker.line,t.startCol=t.endCol=this.posTracker.col,t.startOffset=t.endOffset=this.posTracker.offset}_reportError(t){const n={code:t,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(n),this.onParseError(n)}_getOverriddenMethods(t){return{_err(n){t._reportError(n)}}}};var Ad=$I;const BI=Ad,FI=O4,HI=Fi;let zI=class extends BI{constructor(t,n){super(t,n),this.posTracker=HI.install(t,FI),this.lastErrOffset=-1}_reportError(t){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(t))}};var UI=zI;const jI=Ad,GI=UI,KI=Fi;let WI=class extends jI{constructor(t,n){super(t,n);const r=KI.install(t.preprocessor,GI,n);this.posTracker=r.posTracker}};var VI=WI;const qI=Ad,YI=VI,XI=N4,o2=Fi;let QI=class extends qI{constructor(t,n){super(t,n),this.opts=n,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(t){this.ctLoc&&(t.startLine=this.ctLoc.startLine,t.startCol=this.ctLoc.startCol,t.startOffset=this.ctLoc.startOffset,t.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,t.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,t.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),o2.install(this.tokenizer,YI,t.opts),o2.install(this.tokenizer,XI)},_processInputToken(r){t.ctLoc=r.location,n._processInputToken.call(this,r)},_err(r,i){t.locBeforeToken=i&&i.beforeToken,t._reportError(r)}}}};var ZI=QI,ht={};const{DOCUMENT_MODE:JI}=Wr;ht.createDocument=function(){return{nodeName:"#document",mode:JI.NO_QUIRKS,childNodes:[]}};ht.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}};ht.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}};ht.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const I4=function(e){return{nodeName:"#text",value:e,parentNode:null}},R4=ht.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},eR=ht.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};ht.setTemplateContent=function(e,t){e.content=t};ht.getTemplateContent=function(e){return e.content};ht.setDocumentType=function(e,t,n,r){let i=null;for(let o=0;o<e.childNodes.length;o++)if(e.childNodes[o].nodeName==="#documentType"){i=e.childNodes[o];break}i?(i.name=t,i.publicId=n,i.systemId=r):R4(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})};ht.setDocumentMode=function(e,t){e.mode=t};ht.getDocumentMode=function(e){return e.mode};ht.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}};ht.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if(n.nodeName==="#text"){n.value+=t;return}}R4(e,I4(t))};ht.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&r.nodeName==="#text"?r.value+=t:eR(e,I4(t),n)};ht.adoptAttributes=function(e,t){const n=[];for(let r=0;r<e.attrs.length;r++)n.push(e.attrs[r].name);for(let r=0;r<t.length;r++)n.indexOf(t[r].name)===-1&&e.attrs.push(t[r])};ht.getFirstChild=function(e){return e.childNodes[0]};ht.getChildNodes=function(e){return e.childNodes};ht.getParentNode=function(e){return e.parentNode};ht.getAttrList=function(e){return e.attrs};ht.getTagName=function(e){return e.tagName};ht.getNamespaceURI=function(e){return e.namespaceURI};ht.getTextNodeContent=function(e){return e.value};ht.getCommentNodeContent=function(e){return e.data};ht.getDocumentTypeNodeName=function(e){return e.name};ht.getDocumentTypeNodePublicId=function(e){return e.publicId};ht.getDocumentTypeNodeSystemId=function(e){return e.systemId};ht.isTextNode=function(e){return e.nodeName==="#text"};ht.isCommentNode=function(e){return e.nodeName==="#comment"};ht.isDocumentTypeNode=function(e){return e.nodeName==="#documentType"};ht.isElementNode=function(e){return!!e.tagName};ht.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t};ht.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation};ht.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var tR=function(t,n){return n=n||Object.create(null),[t,n].reduce((r,i)=>(Object.keys(i).forEach(o=>{r[o]=i[o]}),r),Object.create(null))},Ic={};const{DOCUMENT_MODE:ba}=Wr,M4="html",nR="about:legacy-compat",rR="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",L4=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],iR=L4.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),oR=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],P4=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],aR=P4.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function a2(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function s2(e,t){for(let n=0;n<t.length;n++)if(e.indexOf(t[n])===0)return!0;return!1}Ic.isConforming=function(e){return e.name===M4&&e.publicId===null&&(e.systemId===null||e.systemId===nR)};Ic.getDocumentMode=function(e){if(e.name!==M4)return ba.QUIRKS;const t=e.systemId;if(t&&t.toLowerCase()===rR)return ba.QUIRKS;let n=e.publicId;if(n!==null){if(n=n.toLowerCase(),oR.indexOf(n)>-1)return ba.QUIRKS;let r=t===null?iR:L4;if(s2(n,r))return ba.QUIRKS;if(r=t===null?P4:aR,s2(n,r))return ba.LIMITED_QUIRKS}return ba.NO_QUIRKS};Ic.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+a2(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+a2(n)),r};var vo={};const z0=Nc,kd=Wr,Be=kd.TAG_NAMES,Sn=kd.NAMESPACES,x1=kd.ATTRS,l2={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},sR="definitionurl",lR="definitionURL",cR={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},uR={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Sn.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Sn.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Sn.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Sn.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Sn.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Sn.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Sn.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Sn.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Sn.XML},"xml:space":{prefix:"xml",name:"space",namespace:Sn.XML},xmlns:{prefix:"",name:"xmlns",namespace:Sn.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Sn.XMLNS}},dR=vo.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},fR={[Be.B]:!0,[Be.BIG]:!0,[Be.BLOCKQUOTE]:!0,[Be.BODY]:!0,[Be.BR]:!0,[Be.CENTER]:!0,[Be.CODE]:!0,[Be.DD]:!0,[Be.DIV]:!0,[Be.DL]:!0,[Be.DT]:!0,[Be.EM]:!0,[Be.EMBED]:!0,[Be.H1]:!0,[Be.H2]:!0,[Be.H3]:!0,[Be.H4]:!0,[Be.H5]:!0,[Be.H6]:!0,[Be.HEAD]:!0,[Be.HR]:!0,[Be.I]:!0,[Be.IMG]:!0,[Be.LI]:!0,[Be.LISTING]:!0,[Be.MENU]:!0,[Be.META]:!0,[Be.NOBR]:!0,[Be.OL]:!0,[Be.P]:!0,[Be.PRE]:!0,[Be.RUBY]:!0,[Be.S]:!0,[Be.SMALL]:!0,[Be.SPAN]:!0,[Be.STRONG]:!0,[Be.STRIKE]:!0,[Be.SUB]:!0,[Be.SUP]:!0,[Be.TABLE]:!0,[Be.TT]:!0,[Be.U]:!0,[Be.UL]:!0,[Be.VAR]:!0};vo.causesExit=function(e){const t=e.tagName;return t===Be.FONT&&(z0.getTokenAttr(e,x1.COLOR)!==null||z0.getTokenAttr(e,x1.SIZE)!==null||z0.getTokenAttr(e,x1.FACE)!==null)?!0:fR[t]};vo.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===sR){e.attrs[t].name=lR;break}};vo.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=cR[e.attrs[t].name];n&&(e.attrs[t].name=n)}};vo.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=uR[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}};vo.adjustTokenSVGTagName=function(e){const t=dR[e.tagName];t&&(e.tagName=t)};function hR(e,t){return t===Sn.MATHML&&(e===Be.MI||e===Be.MO||e===Be.MN||e===Be.MS||e===Be.MTEXT)}function gR(e,t,n){if(t===Sn.MATHML&&e===Be.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===x1.ENCODING){const i=n[r].value.toLowerCase();return i===l2.TEXT_HTML||i===l2.APPLICATION_XML}}return t===Sn.SVG&&(e===Be.FOREIGN_OBJECT||e===Be.DESC||e===Be.TITLE)}vo.isIntegrationPoint=function(e,t,n,r){return!!((!r||r===Sn.HTML)&&gR(e,t,n)||(!r||r===Sn.MATHML)&&hR(e,t))};const P=Nc,mR=TI,c2=yI,pR=PI,xR=ZI,u2=Fi,bR=ht,_R=tR,d2=Ic,ti=vo,wn=Cd,vR=Kr,la=Wr,x=la.TAG_NAMES,Ie=la.NAMESPACES,D4=la.ATTRS,ER={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:bR},$4="hidden",TR=8,yR=3,B4="INITIAL_MODE",Od="BEFORE_HTML_MODE",Rc="BEFORE_HEAD_MODE",ns="IN_HEAD_MODE",F4="IN_HEAD_NO_SCRIPT_MODE",Mc="AFTER_HEAD_MODE",ii="IN_BODY_MODE",F1="TEXT_MODE",Mn="IN_TABLE_MODE",H4="IN_TABLE_TEXT_MODE",Lc="IN_CAPTION_MODE",Cl="IN_COLUMN_GROUP_MODE",Tr="IN_TABLE_BODY_MODE",Mi="IN_ROW_MODE",Pc="IN_CELL_MODE",Nd="IN_SELECT_MODE",Id="IN_SELECT_IN_TABLE_MODE",H1="IN_TEMPLATE_MODE",Rd="AFTER_BODY_MODE",Dc="IN_FRAMESET_MODE",z4="AFTER_FRAMESET_MODE",U4="AFTER_AFTER_BODY_MODE",j4="AFTER_AFTER_FRAMESET_MODE",SR={[x.TR]:Mi,[x.TBODY]:Tr,[x.THEAD]:Tr,[x.TFOOT]:Tr,[x.CAPTION]:Lc,[x.COLGROUP]:Cl,[x.TABLE]:Mn,[x.BODY]:ii,[x.FRAMESET]:Dc},CR={[x.CAPTION]:Mn,[x.COLGROUP]:Mn,[x.TBODY]:Mn,[x.TFOOT]:Mn,[x.THEAD]:Mn,[x.COL]:Cl,[x.TR]:Tr,[x.TD]:Mi,[x.TH]:Mi},f2={[B4]:{[P.CHARACTER_TOKEN]:Cs,[P.NULL_CHARACTER_TOKEN]:Cs,[P.WHITESPACE_CHARACTER_TOKEN]:ot,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:PR,[P.START_TAG_TOKEN]:Cs,[P.END_TAG_TOKEN]:Cs,[P.EOF_TOKEN]:Cs},[Od]:{[P.CHARACTER_TOKEN]:Ws,[P.NULL_CHARACTER_TOKEN]:Ws,[P.WHITESPACE_CHARACTER_TOKEN]:ot,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:DR,[P.END_TAG_TOKEN]:$R,[P.EOF_TOKEN]:Ws},[Rc]:{[P.CHARACTER_TOKEN]:Vs,[P.NULL_CHARACTER_TOKEN]:Vs,[P.WHITESPACE_CHARACTER_TOKEN]:ot,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:a1,[P.START_TAG_TOKEN]:BR,[P.END_TAG_TOKEN]:FR,[P.EOF_TOKEN]:Vs},[ns]:{[P.CHARACTER_TOKEN]:qs,[P.NULL_CHARACTER_TOKEN]:qs,[P.WHITESPACE_CHARACTER_TOKEN]:Yn,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:a1,[P.START_TAG_TOKEN]:vn,[P.END_TAG_TOKEN]:ca,[P.EOF_TOKEN]:qs},[F4]:{[P.CHARACTER_TOKEN]:Ys,[P.NULL_CHARACTER_TOKEN]:Ys,[P.WHITESPACE_CHARACTER_TOKEN]:Yn,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:a1,[P.START_TAG_TOKEN]:HR,[P.END_TAG_TOKEN]:zR,[P.EOF_TOKEN]:Ys},[Mc]:{[P.CHARACTER_TOKEN]:Xs,[P.NULL_CHARACTER_TOKEN]:Xs,[P.WHITESPACE_CHARACTER_TOKEN]:Yn,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:a1,[P.START_TAG_TOKEN]:UR,[P.END_TAG_TOKEN]:jR,[P.EOF_TOKEN]:Xs},[ii]:{[P.CHARACTER_TOKEN]:s1,[P.NULL_CHARACTER_TOKEN]:ot,[P.WHITESPACE_CHARACTER_TOKEN]:Bo,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:Qn,[P.END_TAG_TOKEN]:Md,[P.EOF_TOKEN]:xi},[F1]:{[P.CHARACTER_TOKEN]:Yn,[P.NULL_CHARACTER_TOKEN]:Yn,[P.WHITESPACE_CHARACTER_TOKEN]:Yn,[P.COMMENT_TOKEN]:ot,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:ot,[P.END_TAG_TOKEN]:vM,[P.EOF_TOKEN]:EM},[Mn]:{[P.CHARACTER_TOKEN]:bi,[P.NULL_CHARACTER_TOKEN]:bi,[P.WHITESPACE_CHARACTER_TOKEN]:bi,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:Ld,[P.END_TAG_TOKEN]:Pd,[P.EOF_TOKEN]:xi},[H4]:{[P.CHARACTER_TOKEN]:IM,[P.NULL_CHARACTER_TOKEN]:ot,[P.WHITESPACE_CHARACTER_TOKEN]:NM,[P.COMMENT_TOKEN]:ws,[P.DOCTYPE_TOKEN]:ws,[P.START_TAG_TOKEN]:ws,[P.END_TAG_TOKEN]:ws,[P.EOF_TOKEN]:ws},[Lc]:{[P.CHARACTER_TOKEN]:s1,[P.NULL_CHARACTER_TOKEN]:ot,[P.WHITESPACE_CHARACTER_TOKEN]:Bo,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:RM,[P.END_TAG_TOKEN]:MM,[P.EOF_TOKEN]:xi},[Cl]:{[P.CHARACTER_TOKEN]:z1,[P.NULL_CHARACTER_TOKEN]:z1,[P.WHITESPACE_CHARACTER_TOKEN]:Yn,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:LM,[P.END_TAG_TOKEN]:PM,[P.EOF_TOKEN]:xi},[Tr]:{[P.CHARACTER_TOKEN]:bi,[P.NULL_CHARACTER_TOKEN]:bi,[P.WHITESPACE_CHARACTER_TOKEN]:bi,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:DM,[P.END_TAG_TOKEN]:$M,[P.EOF_TOKEN]:xi},[Mi]:{[P.CHARACTER_TOKEN]:bi,[P.NULL_CHARACTER_TOKEN]:bi,[P.WHITESPACE_CHARACTER_TOKEN]:bi,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:BM,[P.END_TAG_TOKEN]:FM,[P.EOF_TOKEN]:xi},[Pc]:{[P.CHARACTER_TOKEN]:s1,[P.NULL_CHARACTER_TOKEN]:ot,[P.WHITESPACE_CHARACTER_TOKEN]:Bo,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:HM,[P.END_TAG_TOKEN]:zM,[P.EOF_TOKEN]:xi},[Nd]:{[P.CHARACTER_TOKEN]:Yn,[P.NULL_CHARACTER_TOKEN]:ot,[P.WHITESPACE_CHARACTER_TOKEN]:Yn,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:G4,[P.END_TAG_TOKEN]:K4,[P.EOF_TOKEN]:xi},[Id]:{[P.CHARACTER_TOKEN]:Yn,[P.NULL_CHARACTER_TOKEN]:ot,[P.WHITESPACE_CHARACTER_TOKEN]:Yn,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:UM,[P.END_TAG_TOKEN]:jM,[P.EOF_TOKEN]:xi},[H1]:{[P.CHARACTER_TOKEN]:s1,[P.NULL_CHARACTER_TOKEN]:ot,[P.WHITESPACE_CHARACTER_TOKEN]:Bo,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:GM,[P.END_TAG_TOKEN]:KM,[P.EOF_TOKEN]:W4},[Rd]:{[P.CHARACTER_TOKEN]:U1,[P.NULL_CHARACTER_TOKEN]:U1,[P.WHITESPACE_CHARACTER_TOKEN]:Bo,[P.COMMENT_TOKEN]:LR,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:WM,[P.END_TAG_TOKEN]:VM,[P.EOF_TOKEN]:Ss},[Dc]:{[P.CHARACTER_TOKEN]:ot,[P.NULL_CHARACTER_TOKEN]:ot,[P.WHITESPACE_CHARACTER_TOKEN]:Yn,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:qM,[P.END_TAG_TOKEN]:YM,[P.EOF_TOKEN]:Ss},[z4]:{[P.CHARACTER_TOKEN]:ot,[P.NULL_CHARACTER_TOKEN]:ot,[P.WHITESPACE_CHARACTER_TOKEN]:Yn,[P.COMMENT_TOKEN]:fn,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:XM,[P.END_TAG_TOKEN]:QM,[P.EOF_TOKEN]:Ss},[U4]:{[P.CHARACTER_TOKEN]:b1,[P.NULL_CHARACTER_TOKEN]:b1,[P.WHITESPACE_CHARACTER_TOKEN]:Bo,[P.COMMENT_TOKEN]:h2,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:ZM,[P.END_TAG_TOKEN]:b1,[P.EOF_TOKEN]:Ss},[j4]:{[P.CHARACTER_TOKEN]:ot,[P.NULL_CHARACTER_TOKEN]:ot,[P.WHITESPACE_CHARACTER_TOKEN]:Bo,[P.COMMENT_TOKEN]:h2,[P.DOCTYPE_TOKEN]:ot,[P.START_TAG_TOKEN]:JM,[P.END_TAG_TOKEN]:ot,[P.EOF_TOKEN]:Ss}};class wR{constructor(t){this.options=_R(ER,t),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&u2.install(this,pR),this.options.onParseError&&u2.install(this,xR,{onParseError:this.options.onParseError})}parse(t){const n=this.treeAdapter.createDocument();return this._bootstrap(n,null),this.tokenizer.write(t,!0),this._runParsingLoop(null),n}parseFragment(t,n){n||(n=this.treeAdapter.createElement(x.TEMPLATE,Ie.HTML,[]));const r=this.treeAdapter.createElement("documentmock",Ie.HTML,[]);this._bootstrap(r,n),this.treeAdapter.getTagName(n)===x.TEMPLATE&&this._pushTmplInsertionMode(H1),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(t,!0),this._runParsingLoop(null);const i=this.treeAdapter.getFirstChild(r),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(i,o),o}_bootstrap(t,n){this.tokenizer=new P(this.options),this.stopped=!1,this.insertionMode=B4,this.originalInsertionMode="",this.document=t,this.fragmentContext=n,this.headElement=null,this.formElement=null,this.openElements=new mR(this.document,this.treeAdapter),this.activeFormattingElements=new c2(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(t){for(;!this.stopped;){this._setupTokenizerCDATAMode();const n=this.tokenizer.getNextToken();if(n.type===P.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,n.type===P.WHITESPACE_CHARACTER_TOKEN&&n.chars[0]===`
65
+ `)){if(n.chars.length===1)continue;n.chars=n.chars.substr(1)}if(this._processInputToken(n),t&&this.pendingScript)break}}runParsingLoopForCurrentChunk(t,n){if(this._runParsingLoop(n),n&&this.pendingScript){const r=this.pendingScript;this.pendingScript=null,n(r);return}t&&t()}_setupTokenizerCDATAMode(){const t=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=t&&t!==this.document&&this.treeAdapter.getNamespaceURI(t)!==Ie.HTML&&!this._isIntegrationPoint(t)}_switchToTextParsing(t,n){this._insertElement(t,Ie.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=F1}switchToPlaintextParsing(){this.insertionMode=F1,this.originalInsertionMode=ii,this.tokenizer.state=P.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;do{if(this.treeAdapter.getTagName(t)===x.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}while(t)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Ie.HTML){const t=this.treeAdapter.getTagName(this.fragmentContext);t===x.TITLE||t===x.TEXTAREA?this.tokenizer.state=P.MODE.RCDATA:t===x.STYLE||t===x.XMP||t===x.IFRAME||t===x.NOEMBED||t===x.NOFRAMES||t===x.NOSCRIPT?this.tokenizer.state=P.MODE.RAWTEXT:t===x.SCRIPT?this.tokenizer.state=P.MODE.SCRIPT_DATA:t===x.PLAINTEXT&&(this.tokenizer.state=P.MODE.PLAINTEXT)}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";this.treeAdapter.setDocumentType(this.document,n,r,i)}_attachElementToTree(t){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(n,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(t){const n=this.treeAdapter.createElement(t,Ie.HTML,[]);this._attachElementToTree(n),this.openElements.push(n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Ie.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n),this.openElements.push(n)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(x.HTML,Ie.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r)}_insertCharacters(t){if(this._shouldFosterParentOnInsertion())this._fosterParentText(t.chars);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(n,t.chars)}}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_shouldProcessTokenInForeignContent(t){const n=this._getAdjustedCurrentElement();if(!n||n===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(n);if(r===Ie.HTML||this.treeAdapter.getTagName(n)===x.ANNOTATION_XML&&r===Ie.MATHML&&t.type===P.START_TAG_TOKEN&&t.tagName===x.SVG)return!1;const i=t.type===P.CHARACTER_TOKEN||t.type===P.NULL_CHARACTER_TOKEN||t.type===P.WHITESPACE_CHARACTER_TOKEN;return(t.type===P.START_TAG_TOKEN&&t.tagName!==x.MGLYPH&&t.tagName!==x.MALIGNMARK||i)&&this._isIntegrationPoint(n,Ie.MATHML)||(t.type===P.START_TAG_TOKEN||i)&&this._isIntegrationPoint(n,Ie.HTML)?!1:t.type!==P.EOF_TOKEN}_processToken(t){f2[this.insertionMode][t.type](this,t)}_processTokenInBodyMode(t){f2[ii][t.type](this,t)}_processTokenInForeignContent(t){t.type===P.CHARACTER_TOKEN?tL(this,t):t.type===P.NULL_CHARACTER_TOKEN?eL(this,t):t.type===P.WHITESPACE_CHARACTER_TOKEN?Yn(this,t):t.type===P.COMMENT_TOKEN?fn(this,t):t.type===P.START_TAG_TOKEN?nL(this,t):t.type===P.END_TAG_TOKEN&&rL(this,t)}_processInputToken(t){this._shouldProcessTokenInForeignContent(t)?this._processTokenInForeignContent(t):this._processToken(t),t.type===P.START_TAG_TOKEN&&t.selfClosing&&!t.ackSelfClosing&&this._err(wn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(t,n){const r=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t),o=this.treeAdapter.getAttrList(t);return ti.isIntegrationPoint(r,i,o,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.length;if(t){let n=t,r=null;do if(n--,r=this.activeFormattingElements.entries[n],r.type===c2.MARKER_ENTRY||this.openElements.contains(r.element)){n++;break}while(n>0);for(let i=n;i<t;i++)r=this.activeFormattingElements.entries[i],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Mi}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(x.P),this.openElements.popUntilTagNamePopped(x.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop,n=!1;t>=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),o=SR[i];if(o){this.insertionMode=o;break}else if(!n&&(i===x.TD||i===x.TH)){this.insertionMode=Pc;break}else if(!n&&i===x.HEAD){this.insertionMode=ns;break}else if(i===x.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===x.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===x.HTML){this.insertionMode=this.headElement?Mc:Rc;break}else if(n){this.insertionMode=ii;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===x.TEMPLATE)break;if(i===x.TABLE){this.insertionMode=Id;return}}this.insertionMode=Nd}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),o=this.treeAdapter.getNamespaceURI(r);if(i===x.TEMPLATE&&o===Ie.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===x.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return la.SPECIAL_ELEMENTS[r][n]}}var AR=wR;function kR(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Br(e,t),n}function OR(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function NR(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=yR;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=IR(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function IR(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function RR(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===x.TEMPLATE&&i===Ie.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function MR(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function no(e,t){let n;for(let r=0;r<TR&&(n=kR(e,t),!!n);r++){const i=OR(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const o=NR(e,i,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(o),RR(e,a,o),MR(e,i,n)}}function ot(){}function a1(e){e._err(wn.misplacedDoctype)}function fn(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function LR(e,t){e._appendCommentNode(t,e.openElements.items[0])}function h2(e,t){e._appendCommentNode(t,e.document)}function Yn(e,t){e._insertCharacters(t)}function Ss(e){e.stopped=!0}function PR(e,t){e._setDocumentType(t);const n=t.forceQuirks?la.DOCUMENT_MODE.QUIRKS:d2.getDocumentMode(t);d2.isConforming(t)||e._err(wn.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Od}function Cs(e,t){e._err(wn.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,la.DOCUMENT_MODE.QUIRKS),e.insertionMode=Od,e._processToken(t)}function DR(e,t){t.tagName===x.HTML?(e._insertElement(t,Ie.HTML),e.insertionMode=Rc):Ws(e,t)}function $R(e,t){const n=t.tagName;(n===x.HTML||n===x.HEAD||n===x.BODY||n===x.BR)&&Ws(e,t)}function Ws(e,t){e._insertFakeRootElement(),e.insertionMode=Rc,e._processToken(t)}function BR(e,t){const n=t.tagName;n===x.HTML?Qn(e,t):n===x.HEAD?(e._insertElement(t,Ie.HTML),e.headElement=e.openElements.current,e.insertionMode=ns):Vs(e,t)}function FR(e,t){const n=t.tagName;n===x.HEAD||n===x.BODY||n===x.HTML||n===x.BR?Vs(e,t):e._err(wn.endTagWithoutMatchingOpenElement)}function Vs(e,t){e._insertFakeElement(x.HEAD),e.headElement=e.openElements.current,e.insertionMode=ns,e._processToken(t)}function vn(e,t){const n=t.tagName;n===x.HTML?Qn(e,t):n===x.BASE||n===x.BASEFONT||n===x.BGSOUND||n===x.LINK||n===x.META?(e._appendElement(t,Ie.HTML),t.ackSelfClosing=!0):n===x.TITLE?e._switchToTextParsing(t,P.MODE.RCDATA):n===x.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,P.MODE.RAWTEXT):(e._insertElement(t,Ie.HTML),e.insertionMode=F4):n===x.NOFRAMES||n===x.STYLE?e._switchToTextParsing(t,P.MODE.RAWTEXT):n===x.SCRIPT?e._switchToTextParsing(t,P.MODE.SCRIPT_DATA):n===x.TEMPLATE?(e._insertTemplate(t,Ie.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=H1,e._pushTmplInsertionMode(H1)):n===x.HEAD?e._err(wn.misplacedStartTagForHeadElement):qs(e,t)}function ca(e,t){const n=t.tagName;n===x.HEAD?(e.openElements.pop(),e.insertionMode=Mc):n===x.BODY||n===x.BR||n===x.HTML?qs(e,t):n===x.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==x.TEMPLATE&&e._err(wn.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(x.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(wn.endTagWithoutMatchingOpenElement)}function qs(e,t){e.openElements.pop(),e.insertionMode=Mc,e._processToken(t)}function HR(e,t){const n=t.tagName;n===x.HTML?Qn(e,t):n===x.BASEFONT||n===x.BGSOUND||n===x.HEAD||n===x.LINK||n===x.META||n===x.NOFRAMES||n===x.STYLE?vn(e,t):n===x.NOSCRIPT?e._err(wn.nestedNoscriptInHead):Ys(e,t)}function zR(e,t){const n=t.tagName;n===x.NOSCRIPT?(e.openElements.pop(),e.insertionMode=ns):n===x.BR?Ys(e,t):e._err(wn.endTagWithoutMatchingOpenElement)}function Ys(e,t){const n=t.type===P.EOF_TOKEN?wn.openElementsLeftAfterEof:wn.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=ns,e._processToken(t)}function UR(e,t){const n=t.tagName;n===x.HTML?Qn(e,t):n===x.BODY?(e._insertElement(t,Ie.HTML),e.framesetOk=!1,e.insertionMode=ii):n===x.FRAMESET?(e._insertElement(t,Ie.HTML),e.insertionMode=Dc):n===x.BASE||n===x.BASEFONT||n===x.BGSOUND||n===x.LINK||n===x.META||n===x.NOFRAMES||n===x.SCRIPT||n===x.STYLE||n===x.TEMPLATE||n===x.TITLE?(e._err(wn.abandonedHeadElementChild),e.openElements.push(e.headElement),vn(e,t),e.openElements.remove(e.headElement)):n===x.HEAD?e._err(wn.misplacedStartTagForHeadElement):Xs(e,t)}function jR(e,t){const n=t.tagName;n===x.BODY||n===x.HTML||n===x.BR?Xs(e,t):n===x.TEMPLATE?ca(e,t):e._err(wn.endTagWithoutMatchingOpenElement)}function Xs(e,t){e._insertFakeElement(x.BODY),e.insertionMode=ii,e._processToken(t)}function Bo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function s1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function GR(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function KR(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function WR(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Ie.HTML),e.insertionMode=Dc)}function pi(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ie.HTML)}function VR(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===x.H1||n===x.H2||n===x.H3||n===x.H4||n===x.H5||n===x.H6)&&e.openElements.pop(),e._insertElement(t,Ie.HTML)}function g2(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ie.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function qR(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ie.HTML),n||(e.formElement=e.openElements.current))}function YR(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],o=e.treeAdapter.getTagName(i);let a=null;if(n===x.LI&&o===x.LI?a=x.LI:(n===x.DD||n===x.DT)&&(o===x.DD||o===x.DT)&&(a=o),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(o!==x.ADDRESS&&o!==x.DIV&&o!==x.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ie.HTML)}function XR(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ie.HTML),e.tokenizer.state=P.MODE.PLAINTEXT}function QR(e,t){e.openElements.hasInScope(x.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(x.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ie.HTML),e.framesetOk=!1}function ZR(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(x.A);n&&(no(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ie.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function _a(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ie.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function JR(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(x.NOBR)&&(no(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Ie.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function m2(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ie.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function eM(e,t){e.treeAdapter.getDocumentMode(e.document)!==la.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ie.HTML),e.framesetOk=!1,e.insertionMode=Mn}function ya(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ie.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function tM(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ie.HTML);const n=P.getTokenAttr(t,D4.TYPE);(!n||n.toLowerCase()!==$4)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function p2(e,t){e._appendElement(t,Ie.HTML),t.ackSelfClosing=!0}function nM(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._appendElement(t,Ie.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function rM(e,t){t.tagName=x.IMG,ya(e,t)}function iM(e,t){e._insertElement(t,Ie.HTML),e.skipNextNewLine=!0,e.tokenizer.state=P.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=F1}function oM(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,P.MODE.RAWTEXT)}function aM(e,t){e.framesetOk=!1,e._switchToTextParsing(t,P.MODE.RAWTEXT)}function x2(e,t){e._switchToTextParsing(t,P.MODE.RAWTEXT)}function sM(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ie.HTML),e.framesetOk=!1,e.insertionMode===Mn||e.insertionMode===Lc||e.insertionMode===Tr||e.insertionMode===Mi||e.insertionMode===Pc?e.insertionMode=Id:e.insertionMode=Nd}function b2(e,t){e.openElements.currentTagName===x.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Ie.HTML)}function _2(e,t){e.openElements.hasInScope(x.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Ie.HTML)}function lM(e,t){e.openElements.hasInScope(x.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(x.RTC),e._insertElement(t,Ie.HTML)}function cM(e,t){e.openElements.hasInButtonScope(x.P)&&e._closePElement(),e._insertElement(t,Ie.HTML)}function uM(e,t){e._reconstructActiveFormattingElements(),ti.adjustTokenMathMLAttrs(t),ti.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Ie.MATHML):e._insertElement(t,Ie.MATHML),t.ackSelfClosing=!0}function dM(e,t){e._reconstructActiveFormattingElements(),ti.adjustTokenSVGAttrs(t),ti.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Ie.SVG):e._insertElement(t,Ie.SVG),t.ackSelfClosing=!0}function mr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ie.HTML)}function Qn(e,t){const n=t.tagName;switch(n.length){case 1:n===x.I||n===x.S||n===x.B||n===x.U?_a(e,t):n===x.P?pi(e,t):n===x.A?ZR(e,t):mr(e,t);break;case 2:n===x.DL||n===x.OL||n===x.UL?pi(e,t):n===x.H1||n===x.H2||n===x.H3||n===x.H4||n===x.H5||n===x.H6?VR(e,t):n===x.LI||n===x.DD||n===x.DT?YR(e,t):n===x.EM||n===x.TT?_a(e,t):n===x.BR?ya(e,t):n===x.HR?nM(e,t):n===x.RB?_2(e,t):n===x.RT||n===x.RP?lM(e,t):n!==x.TH&&n!==x.TD&&n!==x.TR&&mr(e,t);break;case 3:n===x.DIV||n===x.DIR||n===x.NAV?pi(e,t):n===x.PRE?g2(e,t):n===x.BIG?_a(e,t):n===x.IMG||n===x.WBR?ya(e,t):n===x.XMP?oM(e,t):n===x.SVG?dM(e,t):n===x.RTC?_2(e,t):n!==x.COL&&mr(e,t);break;case 4:n===x.HTML?GR(e,t):n===x.BASE||n===x.LINK||n===x.META?vn(e,t):n===x.BODY?KR(e,t):n===x.MAIN||n===x.MENU?pi(e,t):n===x.FORM?qR(e,t):n===x.CODE||n===x.FONT?_a(e,t):n===x.NOBR?JR(e,t):n===x.AREA?ya(e,t):n===x.MATH?uM(e,t):n===x.MENU?cM(e,t):n!==x.HEAD&&mr(e,t);break;case 5:n===x.STYLE||n===x.TITLE?vn(e,t):n===x.ASIDE?pi(e,t):n===x.SMALL?_a(e,t):n===x.TABLE?eM(e,t):n===x.EMBED?ya(e,t):n===x.INPUT?tM(e,t):n===x.PARAM||n===x.TRACK?p2(e,t):n===x.IMAGE?rM(e,t):n!==x.FRAME&&n!==x.TBODY&&n!==x.TFOOT&&n!==x.THEAD&&mr(e,t);break;case 6:n===x.SCRIPT?vn(e,t):n===x.CENTER||n===x.FIGURE||n===x.FOOTER||n===x.HEADER||n===x.HGROUP||n===x.DIALOG?pi(e,t):n===x.BUTTON?QR(e,t):n===x.STRIKE||n===x.STRONG?_a(e,t):n===x.APPLET||n===x.OBJECT?m2(e,t):n===x.KEYGEN?ya(e,t):n===x.SOURCE?p2(e,t):n===x.IFRAME?aM(e,t):n===x.SELECT?sM(e,t):n===x.OPTION?b2(e,t):mr(e,t);break;case 7:n===x.BGSOUND?vn(e,t):n===x.DETAILS||n===x.ADDRESS||n===x.ARTICLE||n===x.SECTION||n===x.SUMMARY?pi(e,t):n===x.LISTING?g2(e,t):n===x.MARQUEE?m2(e,t):n===x.NOEMBED?x2(e,t):n!==x.CAPTION&&mr(e,t);break;case 8:n===x.BASEFONT?vn(e,t):n===x.FRAMESET?WR(e,t):n===x.FIELDSET?pi(e,t):n===x.TEXTAREA?iM(e,t):n===x.TEMPLATE?vn(e,t):n===x.NOSCRIPT?e.options.scriptingEnabled?x2(e,t):mr(e,t):n===x.OPTGROUP?b2(e,t):n!==x.COLGROUP&&mr(e,t);break;case 9:n===x.PLAINTEXT?XR(e,t):mr(e,t);break;case 10:n===x.BLOCKQUOTE||n===x.FIGCAPTION?pi(e,t):mr(e,t);break;default:mr(e,t)}}function fM(e){e.openElements.hasInScope(x.BODY)&&(e.insertionMode=Rd)}function hM(e,t){e.openElements.hasInScope(x.BODY)&&(e.insertionMode=Rd,e._processToken(t))}function Xi(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function gM(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(x.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(x.FORM):e.openElements.remove(n))}function mM(e){e.openElements.hasInButtonScope(x.P)||e._insertFakeElement(x.P),e._closePElement()}function pM(e){e.openElements.hasInListItemScope(x.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(x.LI),e.openElements.popUntilTagNamePopped(x.LI))}function xM(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function bM(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function v2(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function _M(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(x.BR),e.openElements.pop(),e.framesetOk=!1}function Br(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function Md(e,t){const n=t.tagName;switch(n.length){case 1:n===x.A||n===x.B||n===x.I||n===x.S||n===x.U?no(e,t):n===x.P?mM(e):Br(e,t);break;case 2:n===x.DL||n===x.UL||n===x.OL?Xi(e,t):n===x.LI?pM(e):n===x.DD||n===x.DT?xM(e,t):n===x.H1||n===x.H2||n===x.H3||n===x.H4||n===x.H5||n===x.H6?bM(e):n===x.BR?_M(e):n===x.EM||n===x.TT?no(e,t):Br(e,t);break;case 3:n===x.BIG?no(e,t):n===x.DIR||n===x.DIV||n===x.NAV||n===x.PRE?Xi(e,t):Br(e,t);break;case 4:n===x.BODY?fM(e):n===x.HTML?hM(e,t):n===x.FORM?gM(e):n===x.CODE||n===x.FONT||n===x.NOBR?no(e,t):n===x.MAIN||n===x.MENU?Xi(e,t):Br(e,t);break;case 5:n===x.ASIDE?Xi(e,t):n===x.SMALL?no(e,t):Br(e,t);break;case 6:n===x.CENTER||n===x.FIGURE||n===x.FOOTER||n===x.HEADER||n===x.HGROUP||n===x.DIALOG?Xi(e,t):n===x.APPLET||n===x.OBJECT?v2(e,t):n===x.STRIKE||n===x.STRONG?no(e,t):Br(e,t);break;case 7:n===x.ADDRESS||n===x.ARTICLE||n===x.DETAILS||n===x.SECTION||n===x.SUMMARY||n===x.LISTING?Xi(e,t):n===x.MARQUEE?v2(e,t):Br(e,t);break;case 8:n===x.FIELDSET?Xi(e,t):n===x.TEMPLATE?ca(e,t):Br(e,t);break;case 10:n===x.BLOCKQUOTE||n===x.FIGCAPTION?Xi(e,t):Br(e,t);break;default:Br(e,t)}}function xi(e,t){e.tmplInsertionModeStackTop>-1?W4(e,t):e.stopped=!0}function vM(e,t){t.tagName===x.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function EM(e,t){e._err(wn.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function bi(e,t){const n=e.openElements.currentTagName;n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=H4,e._processToken(t)):pr(e,t)}function TM(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Ie.HTML),e.insertionMode=Lc}function yM(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ie.HTML),e.insertionMode=Cl}function SM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(x.COLGROUP),e.insertionMode=Cl,e._processToken(t)}function CM(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ie.HTML),e.insertionMode=Tr}function wM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(x.TBODY),e.insertionMode=Tr,e._processToken(t)}function AM(e,t){e.openElements.hasInTableScope(x.TABLE)&&(e.openElements.popUntilTagNamePopped(x.TABLE),e._resetInsertionMode(),e._processToken(t))}function kM(e,t){const n=P.getTokenAttr(t,D4.TYPE);n&&n.toLowerCase()===$4?e._appendElement(t,Ie.HTML):pr(e,t),t.ackSelfClosing=!0}function OM(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Ie.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ld(e,t){const n=t.tagName;switch(n.length){case 2:n===x.TD||n===x.TH||n===x.TR?wM(e,t):pr(e,t);break;case 3:n===x.COL?SM(e,t):pr(e,t);break;case 4:n===x.FORM?OM(e,t):pr(e,t);break;case 5:n===x.TABLE?AM(e,t):n===x.STYLE?vn(e,t):n===x.TBODY||n===x.TFOOT||n===x.THEAD?CM(e,t):n===x.INPUT?kM(e,t):pr(e,t);break;case 6:n===x.SCRIPT?vn(e,t):pr(e,t);break;case 7:n===x.CAPTION?TM(e,t):pr(e,t);break;case 8:n===x.COLGROUP?yM(e,t):n===x.TEMPLATE?vn(e,t):pr(e,t);break;default:pr(e,t)}}function Pd(e,t){const n=t.tagName;n===x.TABLE?e.openElements.hasInTableScope(x.TABLE)&&(e.openElements.popUntilTagNamePopped(x.TABLE),e._resetInsertionMode()):n===x.TEMPLATE?ca(e,t):n!==x.BODY&&n!==x.CAPTION&&n!==x.COL&&n!==x.COLGROUP&&n!==x.HTML&&n!==x.TBODY&&n!==x.TD&&n!==x.TFOOT&&n!==x.TH&&n!==x.THEAD&&n!==x.TR&&pr(e,t)}function pr(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function NM(e,t){e.pendingCharacterTokens.push(t)}function IM(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ws(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)pr(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function RM(e,t){const n=t.tagName;n===x.CAPTION||n===x.COL||n===x.COLGROUP||n===x.TBODY||n===x.TD||n===x.TFOOT||n===x.TH||n===x.THEAD||n===x.TR?e.openElements.hasInTableScope(x.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(x.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Mn,e._processToken(t)):Qn(e,t)}function MM(e,t){const n=t.tagName;n===x.CAPTION||n===x.TABLE?e.openElements.hasInTableScope(x.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(x.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Mn,n===x.TABLE&&e._processToken(t)):n!==x.BODY&&n!==x.COL&&n!==x.COLGROUP&&n!==x.HTML&&n!==x.TBODY&&n!==x.TD&&n!==x.TFOOT&&n!==x.TH&&n!==x.THEAD&&n!==x.TR&&Md(e,t)}function LM(e,t){const n=t.tagName;n===x.HTML?Qn(e,t):n===x.COL?(e._appendElement(t,Ie.HTML),t.ackSelfClosing=!0):n===x.TEMPLATE?vn(e,t):z1(e,t)}function PM(e,t){const n=t.tagName;n===x.COLGROUP?e.openElements.currentTagName===x.COLGROUP&&(e.openElements.pop(),e.insertionMode=Mn):n===x.TEMPLATE?ca(e,t):n!==x.COL&&z1(e,t)}function z1(e,t){e.openElements.currentTagName===x.COLGROUP&&(e.openElements.pop(),e.insertionMode=Mn,e._processToken(t))}function DM(e,t){const n=t.tagName;n===x.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Ie.HTML),e.insertionMode=Mi):n===x.TH||n===x.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(x.TR),e.insertionMode=Mi,e._processToken(t)):n===x.CAPTION||n===x.COL||n===x.COLGROUP||n===x.TBODY||n===x.TFOOT||n===x.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Mn,e._processToken(t)):Ld(e,t)}function $M(e,t){const n=t.tagName;n===x.TBODY||n===x.TFOOT||n===x.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Mn):n===x.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Mn,e._processToken(t)):(n!==x.BODY&&n!==x.CAPTION&&n!==x.COL&&n!==x.COLGROUP||n!==x.HTML&&n!==x.TD&&n!==x.TH&&n!==x.TR)&&Pd(e,t)}function BM(e,t){const n=t.tagName;n===x.TH||n===x.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,Ie.HTML),e.insertionMode=Pc,e.activeFormattingElements.insertMarker()):n===x.CAPTION||n===x.COL||n===x.COLGROUP||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR?e.openElements.hasInTableScope(x.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Tr,e._processToken(t)):Ld(e,t)}function FM(e,t){const n=t.tagName;n===x.TR?e.openElements.hasInTableScope(x.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Tr):n===x.TABLE?e.openElements.hasInTableScope(x.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Tr,e._processToken(t)):n===x.TBODY||n===x.TFOOT||n===x.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(x.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Tr,e._processToken(t)):(n!==x.BODY&&n!==x.CAPTION&&n!==x.COL&&n!==x.COLGROUP||n!==x.HTML&&n!==x.TD&&n!==x.TH)&&Pd(e,t)}function HM(e,t){const n=t.tagName;n===x.CAPTION||n===x.COL||n===x.COLGROUP||n===x.TBODY||n===x.TD||n===x.TFOOT||n===x.TH||n===x.THEAD||n===x.TR?(e.openElements.hasInTableScope(x.TD)||e.openElements.hasInTableScope(x.TH))&&(e._closeTableCell(),e._processToken(t)):Qn(e,t)}function zM(e,t){const n=t.tagName;n===x.TD||n===x.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Mi):n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==x.BODY&&n!==x.CAPTION&&n!==x.COL&&n!==x.COLGROUP&&n!==x.HTML&&Md(e,t)}function G4(e,t){const n=t.tagName;n===x.HTML?Qn(e,t):n===x.OPTION?(e.openElements.currentTagName===x.OPTION&&e.openElements.pop(),e._insertElement(t,Ie.HTML)):n===x.OPTGROUP?(e.openElements.currentTagName===x.OPTION&&e.openElements.pop(),e.openElements.currentTagName===x.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Ie.HTML)):n===x.INPUT||n===x.KEYGEN||n===x.TEXTAREA||n===x.SELECT?e.openElements.hasInSelectScope(x.SELECT)&&(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode(),n!==x.SELECT&&e._processToken(t)):(n===x.SCRIPT||n===x.TEMPLATE)&&vn(e,t)}function K4(e,t){const n=t.tagName;if(n===x.OPTGROUP){const r=e.openElements.items[e.openElements.stackTop-1],i=r&&e.treeAdapter.getTagName(r);e.openElements.currentTagName===x.OPTION&&i===x.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===x.OPTGROUP&&e.openElements.pop()}else n===x.OPTION?e.openElements.currentTagName===x.OPTION&&e.openElements.pop():n===x.SELECT&&e.openElements.hasInSelectScope(x.SELECT)?(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode()):n===x.TEMPLATE&&ca(e,t)}function UM(e,t){const n=t.tagName;n===x.CAPTION||n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR||n===x.TD||n===x.TH?(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode(),e._processToken(t)):G4(e,t)}function jM(e,t){const n=t.tagName;n===x.CAPTION||n===x.TABLE||n===x.TBODY||n===x.TFOOT||n===x.THEAD||n===x.TR||n===x.TD||n===x.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(x.SELECT),e._resetInsertionMode(),e._processToken(t)):K4(e,t)}function GM(e,t){const n=t.tagName;if(n===x.BASE||n===x.BASEFONT||n===x.BGSOUND||n===x.LINK||n===x.META||n===x.NOFRAMES||n===x.SCRIPT||n===x.STYLE||n===x.TEMPLATE||n===x.TITLE)vn(e,t);else{const r=CR[n]||ii;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}}function KM(e,t){t.tagName===x.TEMPLATE&&ca(e,t)}function W4(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(x.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function WM(e,t){t.tagName===x.HTML?Qn(e,t):U1(e,t)}function VM(e,t){t.tagName===x.HTML?e.fragmentContext||(e.insertionMode=U4):U1(e,t)}function U1(e,t){e.insertionMode=ii,e._processToken(t)}function qM(e,t){const n=t.tagName;n===x.HTML?Qn(e,t):n===x.FRAMESET?e._insertElement(t,Ie.HTML):n===x.FRAME?(e._appendElement(t,Ie.HTML),t.ackSelfClosing=!0):n===x.NOFRAMES&&vn(e,t)}function YM(e,t){t.tagName===x.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==x.FRAMESET&&(e.insertionMode=z4))}function XM(e,t){const n=t.tagName;n===x.HTML?Qn(e,t):n===x.NOFRAMES&&vn(e,t)}function QM(e,t){t.tagName===x.HTML&&(e.insertionMode=j4)}function ZM(e,t){t.tagName===x.HTML?Qn(e,t):b1(e,t)}function b1(e,t){e.insertionMode=ii,e._processToken(t)}function JM(e,t){const n=t.tagName;n===x.HTML?Qn(e,t):n===x.NOFRAMES&&vn(e,t)}function eL(e,t){t.chars=vR.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function tL(e,t){e._insertCharacters(t),e.framesetOk=!1}function nL(e,t){if(ti.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Ie.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Ie.MATHML?ti.adjustTokenMathMLAttrs(t):r===Ie.SVG&&(ti.adjustTokenSVGTagName(t),ti.adjustTokenSVGAttrs(t)),ti.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function rL(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Ie.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const iL=mo(AR),V4=q4("start"),oL=q4("end");function q4(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}const aL=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),h4(e,t,i,r);function i(o,a){const s=a[a.length-1];return n(o,s?s.children.indexOf(o):null,s)}};class wl{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}wl.prototype.property={};wl.prototype.normal={};wl.prototype.space=null;function Y4(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new wl(n,r,t)}function ll(e){return e.toLowerCase()}class Or{constructor(t,n){this.property=t,this.attribute=n}}Or.prototype.space=null;Or.prototype.boolean=!1;Or.prototype.booleanish=!1;Or.prototype.overloadedBoolean=!1;Or.prototype.number=!1;Or.prototype.commaSeparated=!1;Or.prototype.spaceSeparated=!1;Or.prototype.commaOrSpaceSeparated=!1;Or.prototype.mustUseProperty=!1;Or.prototype.defined=!1;let sL=0;const Ze=ua(),ln=ua(),X4=ua(),ce=ua(),Ut=ua(),Ma=ua(),or=ua();function ua(){return 2**++sL}const ku=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ze,booleanish:ln,commaOrSpaceSeparated:or,commaSeparated:Ma,number:ce,overloadedBoolean:X4,spaceSeparated:Ut},Symbol.toStringTag,{value:"Module"})),U0=Object.keys(ku);class Dd extends Or{constructor(t,n,r,i){let o=-1;if(super(t,n),E2(this,"space",i),typeof r=="number")for(;++o<U0.length;){const a=U0[o];E2(this,U0[o],(r&ku[a])===ku[a])}}}Dd.prototype.defined=!0;function E2(e,t,n){n&&(e[t]=n)}const lL={}.hasOwnProperty;function rs(e){const t={},n={};let r;for(r in e.properties)if(lL.call(e.properties,r)){const i=e.properties[r],o=new Dd(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[ll(r)]=r,n[ll(o.attribute)]=r}return new wl(t,n,e.space)}const Q4=rs({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Z4=rs({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function J4(e,t){return t in e?e[t]:t}function e6(e,t){return J4(e,t.toLowerCase())}const t6=rs({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:e6,properties:{xmlns:null,xmlnsXLink:null}}),n6=rs({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ln,ariaAutoComplete:null,ariaBusy:ln,ariaChecked:ln,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:Ut,ariaCurrent:null,ariaDescribedBy:Ut,ariaDetails:null,ariaDisabled:ln,ariaDropEffect:Ut,ariaErrorMessage:null,ariaExpanded:ln,ariaFlowTo:Ut,ariaGrabbed:ln,ariaHasPopup:null,ariaHidden:ln,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ut,ariaLevel:ce,ariaLive:null,ariaModal:ln,ariaMultiLine:ln,ariaMultiSelectable:ln,ariaOrientation:null,ariaOwns:Ut,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:ln,ariaReadOnly:ln,ariaRelevant:null,ariaRequired:ln,ariaRoleDescription:Ut,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:ln,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null}}),cL=rs({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:e6,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ma,acceptCharset:Ut,accessKey:Ut,action:null,allow:null,allowFullScreen:Ze,allowPaymentRequest:Ze,allowUserMedia:Ze,alt:null,as:null,async:Ze,autoCapitalize:null,autoComplete:Ut,autoFocus:Ze,autoPlay:Ze,capture:Ze,charSet:null,checked:Ze,cite:null,className:Ut,cols:ce,colSpan:null,content:null,contentEditable:ln,controls:Ze,controlsList:Ut,coords:ce|Ma,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ze,defer:Ze,dir:null,dirName:null,disabled:Ze,download:X4,draggable:ln,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ze,formTarget:null,headers:Ut,height:ce,hidden:Ze,high:ce,href:null,hrefLang:null,htmlFor:Ut,httpEquiv:Ut,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Ze,itemId:null,itemProp:Ut,itemRef:Ut,itemScope:Ze,itemType:Ut,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ze,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:Ze,muted:Ze,name:null,nonce:null,noModule:Ze,noValidate:Ze,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ze,optimum:ce,pattern:null,ping:Ut,placeholder:null,playsInline:Ze,poster:null,preload:null,readOnly:Ze,referrerPolicy:null,rel:Ut,required:Ze,reversed:Ze,rows:ce,rowSpan:ce,sandbox:Ut,scope:null,scoped:Ze,seamless:Ze,selected:Ze,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:ln,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:Ze,useMap:null,value:ln,width:ce,wrap:null,align:null,aLink:null,archive:Ut,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ze,declare:Ze,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:Ze,noHref:Ze,noShade:Ze,noWrap:Ze,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:ln,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ze,disableRemotePlayback:Ze,prefix:null,property:null,results:ce,security:null,unselectable:null}}),uL=rs({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:J4,properties:{about:or,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:Ut,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:Ze,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ma,g2:Ma,glyphName:Ma,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:or,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ce,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ut,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:or,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:or,rev:or,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:or,requiredFeatures:or,requiredFonts:or,requiredFormats:or,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:or,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:or,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:or,to:null,transform:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),dL=/^data[-\w.:]+$/i,T2=/-[a-z]/g,fL=/[A-Z]/g;function $c(e,t){const n=ll(t);let r=t,i=Or;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&dL.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(T2,gL);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!T2.test(o)){let a=o.replace(fL,hL);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Dd}return new i(r,t)}function hL(e){return"-"+e.toLowerCase()}function gL(e){return e.charAt(1).toUpperCase()}const mL={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Al=Y4([Z4,Q4,t6,n6,cL],"html"),da=Y4([Z4,Q4,t6,n6,uL],"svg");var y2=/[#.]/g;const pL=function(e,t="div"){for(var n=e||"",r={},i=0,o,a,s;i<n.length;)y2.lastIndex=i,s=y2.exec(n),o=n.slice(i,s?s.index:n.length),o&&(a?a==="#"?r.id=o:Array.isArray(r.className)?r.className.push(o):r.className=[o]:t=o,i+=o.length),s&&(a=s[0],i++);return{type:"element",tagName:t,properties:r,children:[]}};function S2(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function xL(e){return e.join(" ").trim()}function C2(e){for(var t=[],n=String(e||""),r=n.indexOf(","),i=0,o,a;!o;)r===-1&&(r=n.length,o=!0),a=n.slice(i,r).trim(),(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i);return t}function bL(e,t){var n=t||{};return e[e.length-1]===""&&(e=e.concat("")),e.join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const _L=new Set(["menu","submit","reset","button"]),Ou={}.hasOwnProperty;function r6(e,t,n){const r=n&&yL(n);return function(o,a,...s){let l=-1,c;if(o==null)c={type:"root",children:[]},s.unshift(a);else if(c=pL(o,t),c.tagName=c.tagName.toLowerCase(),r&&Ou.call(r,c.tagName)&&(c.tagName=r[c.tagName]),vL(a,c.tagName)){let u;for(u in a)Ou.call(a,u)&&EL(e,c.properties,u,a[u])}else s.unshift(a);for(;++l<s.length;)Nu(c.children,s[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}}function vL(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?_L.has(e.type.toLowerCase()):!("value"in e)}function EL(e,t,n,r){const i=$c(e,n);let o=-1,a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=S2(r):i.commaSeparated?a=C2(r):i.commaOrSpaceSeparated?a=S2(C2(r).join(" ")):a=w2(i,i.property,r):Array.isArray(r)?a=r.concat():a=i.property==="style"?TL(r):String(r);if(Array.isArray(a)){const s=[];for(;++o<a.length;)s[o]=w2(i,i.property,a[o]);a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Nu(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)Nu(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?Nu(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function w2(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||ll(n)===ll(t)))return!0}return n}function TL(e){const t=[];let n;for(n in e)Ou.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function yL(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const SL=r6(Al,"div"),CL=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],wL=r6(da,"g",CL);function AL(e){for(var t=String(e),n=[],r=/\r?\n|\r/g;r.test(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:i,toOffset:o};function i(a){var s=-1;if(a>-1&&a<n[n.length-1]){for(;++s<n.length;)if(n[s]>a)return{line:s+1,column:a-(n[s-1]||0)+1,offset:a}}return{line:void 0,column:void 0,offset:void 0}}function o(a){var s=a&&a.line,l=a&&a.column,c;return typeof s=="number"&&typeof l=="number"&&!Number.isNaN(s)&&!Number.isNaN(l)&&s-1 in n&&(c=(n[s-2]||0)+l-1||0),c>-1&&c<n[n.length-1]?c:-1}}const Jo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},i6={}.hasOwnProperty,A2={"#document":k2,"#document-fragment":k2,"#text":IL,"#comment":RL,"#documentType":NL};function kL(e,t={}){let n,r;return PL(t)?(r=t,n={}):(r=t.file,n=t),$d({schema:n.space==="svg"?da:Al,file:r,verbose:n.verbose,location:!1},e)}function $d(e,t){const n=e.schema,r=i6.call(A2,t.nodeName)?A2[t.nodeName]:ML;let i;"tagName"in t&&(e.schema=t.namespaceURI===Jo.svg?da:Al),"childNodes"in t&&(i=OL(e,t.childNodes));const o=r(e,t,i);if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const a=LL(e,o,t.sourceCodeLocation);a&&(e.location=!0,o.position=a)}return e.schema=n,o}function OL(e,t){let n=-1;const r=[];for(;++n<t.length;)r[n]=$d(e,t[n]);return r}function k2(e,t,n){const r={type:"root",children:n,data:{quirksMode:t.mode==="quirks"||t.mode==="limited-quirks"}};if(e.file&&e.location){const i=String(e.file),o=AL(i);r.position={start:o.toPoint(0),end:o.toPoint(i.length)}}return r}function NL(){return{type:"doctype"}}function IL(e,t){return{type:"text",value:t.value}}function RL(e,t){return{type:"comment",value:t.data}}function ML(e,t,n){const r=e.schema.space==="svg"?wL:SL;let i=-1;const o={};for(;++i<t.attrs.length;){const s=t.attrs[i];o[(s.prefix?s.prefix+":":"")+s.name]=s.value}const a=r(t.tagName,o,n);if(a.tagName==="template"&&"content"in t){const s=t.sourceCodeLocation,l=s&&s.startTag&&wa(s.startTag),c=s&&s.endTag&&wa(s.endTag),u=$d(e,t.content);l&&c&&e.file&&(u.position={start:l.end,end:c.start}),a.content=u}return a}function LL(e,t,n){const r=wa(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const o={};let a;for(a in n.attrs)i6.call(n.attrs,a)&&(o[$c(e.schema,a).property]=wa(n.attrs[a]));t.data={position:{opening:wa(n.startTag),closing:n.endTag?wa(n.endTag):null,properties:o}}}}return r}function wa(e){const t=O2({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=O2({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:null}function O2(e){return e.line&&e.column?e:null}function PL(e){return"messages"in e}var N2=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,DL=/\n/g,$L=/^\s*/,BL=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,FL=/^:\s*/,HL=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,zL=/^[;\s]*/,UL=/^\s+|\s+$/g,jL=`
66
+ `,I2="/",R2="*",Go="",GL="comment",KL="declaration",WL=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(h){var m=h.match(DL);m&&(n+=m.length);var p=h.lastIndexOf(jL);r=~p?h.length-p:r+h.length}function o(){var h={line:n,column:r};return function(m){return m.position=new a(h),c(),m}}function a(h){this.start=h,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(h){var m=new Error(t.source+":"+n+":"+r+": "+h);if(m.reason=h,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function l(h){var m=h.exec(e);if(m){var p=m[0];return i(p),e=e.slice(p.length),m}}function c(){l($L)}function u(h){var m;for(h=h||[];m=f();)m!==!1&&h.push(m);return h}function f(){var h=o();if(!(I2!=e.charAt(0)||R2!=e.charAt(1))){for(var m=2;Go!=e.charAt(m)&&(R2!=e.charAt(m)||I2!=e.charAt(m+1));)++m;if(m+=2,Go===e.charAt(m-1))return s("End of comment missing");var p=e.slice(2,m-2);return r+=2,i(p),e=e.slice(m),r+=2,h({type:GL,comment:p})}}function g(){var h=o(),m=l(BL);if(m){if(f(),!l(FL))return s("property missing ':'");var p=l(HL),b=h({type:KL,property:M2(m[0].replace(N2,Go)),value:p?M2(p[0].replace(N2,Go)):Go});return l(zL),b}}function d(){var h=[];u(h);for(var m;m=g();)m!==!1&&(h.push(m),u(h));return h}return c(),d()};function M2(e){return e?e.replace(UL,Go):Go}var VL=WL;function qL(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=VL(e),o=typeof t=="function",a,s,l=0,c=i.length;l<c;l++)r=i[l],a=r.property,s=r.value,o?t(a,s,r):s&&(n||(n={}),n[a]=s);return n}var YL=qL;const XL=mo(YL),QL=Jo,ZL=mL,JL={}.hasOwnProperty,eP=ts("root"),Iu=ts("element"),tP=ts("text");function nP(e,t,n){if(typeof e!="function")throw new TypeError("h is not a function");const r=iP(e),i=sP(e),o=aP(e);let a,s;if(typeof n=="string"||typeof n=="boolean"?(a=n,n={}):(n||(n={}),a=n.prefix),eP(t))s=t.children.length===1&&Iu(t.children[0])?t.children[0]:{type:"element",tagName:"div",properties:{},children:t.children};else if(Iu(t))s=t;else throw new Error("Expected root or element, not `"+(t&&t.type||t)+"`");return o6(e,s,{schema:n.space==="svg"?da:Al,prefix:a==null?r||i||o?"h-":null:typeof a=="string"?a:a?"h-":null,key:0,react:r,vue:i,vdom:o,hyperscript:oP(e)})}function o6(e,t,n){const r=n.schema;let i=r,o=t.tagName;const a={},s=[];let l=-1,c;r.space==="html"&&o.toLowerCase()==="svg"&&(i=da,n.schema=i);for(c in t.properties)t.properties&&JL.call(t.properties,c)&&rP(a,c,t.properties[c],n,o);if(n.vdom&&(i.space==="html"?o=o.toUpperCase():i.space&&(a.namespace=QL[i.space])),n.prefix&&(n.key++,a.key=n.prefix+n.key),t.children)for(;++l<t.children.length;){const u=t.children[l];Iu(u)?s.push(o6(e,u,n)):tP(u)&&s.push(u.value)}return n.schema=r,s.length>0?e.call(t,o,a,s):e.call(t,o,a)}function rP(e,t,n,r,i){const o=$c(r.schema,t);let a;n==null||typeof n=="number"&&Number.isNaN(n)||n===!1&&(r.vue||r.vdom||r.hyperscript)||!n&&o.boolean&&(r.vue||r.vdom||r.hyperscript)||(Array.isArray(n)&&(n=o.commaSeparated?bL(n):xL(n)),o.boolean&&r.hyperscript&&(n=""),o.property==="style"&&typeof n=="string"&&(r.react||r.vue||r.vdom)&&(n=lP(n,i)),r.vue?o.property!=="style"&&(a="attrs"):o.mustUseProperty||(r.vdom?o.property!=="style"&&(a="attributes"):r.hyperscript&&(a="attrs")),a?e[a]=Object.assign(e[a]||{},{[o.attribute]:n}):o.space&&r.react?e[ZL[o.property]||o.property]=n:e[o.attribute]=n)}function iP(e){const t=e("div",{});return!!(t&&("_owner"in t||"_store"in t)&&(t.key===void 0||t.key===null))}function oP(e){return"context"in e&&"cleanup"in e}function aP(e){return e("div",{}).type==="VirtualNode"}function sP(e){const t=e("div",{});return!!(t&&t.context&&t.context._isVue)}function lP(e,t){const n={};try{XL(e,(r,i)=>{r.slice(0,4)==="-ms-"&&(r="ms-"+r.slice(4)),n[r.replace(/-([a-z])/g,(o,a)=>a.toUpperCase())]=i})}catch(r){throw r.message=t+"[style]"+r.message.slice(9),r}return n}var L2={}.hasOwnProperty;function a6(e,t){var n=t||{};function r(i){var o=r.invalid,a=r.handlers;if(i&&L2.call(i,e)&&(o=L2.call(a,i[e])?a[i[e]]:r.unknown),o)return o.apply(this,arguments)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var cP={}.hasOwnProperty,s6=a6("type",{handlers:{root:dP,element:pP,text:gP,comment:mP,doctype:hP}});function uP(e,t){return s6(e,t==="svg"?da:Al)}function dP(e,t){var n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Bd(e.children,n,t),is(e,n)}function fP(e,t){var n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Bd(e.children,n,t),is(e,n)}function hP(e){return is(e,{nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0})}function gP(e){return is(e,{nodeName:"#text",value:e.value,parentNode:void 0})}function mP(e){return is(e,{nodeName:"#comment",data:e.value,parentNode:void 0})}function pP(e,t){var n=t.space;return nP(r,Object.assign({},e,{children:[]}),{space:n});function r(i,o){var a=[],s,l,c,u,f;for(c in o)!cP.call(o,c)||o[c]===!1||(s=$c(t,c),!(s.boolean&&!o[c])&&(l={name:c,value:o[c]===!0?"":String(o[c])},s.space&&s.space!=="html"&&s.space!=="svg"&&(u=c.indexOf(":"),u<0?l.prefix="":(l.name=c.slice(u+1),l.prefix=c.slice(0,u)),l.namespace=Jo[s.space]),a.push(l)));return t.space==="html"&&e.tagName==="svg"&&(t=da),f=is(e,{nodeName:i,tagName:i,attrs:a,namespaceURI:Jo[t.space],childNodes:[],parentNode:void 0}),f.childNodes=Bd(e.children,f,t),i==="template"&&(f.content=fP(e.content,t)),f}}function Bd(e,t,n){var r=-1,i=[],o;if(e)for(;++r<e.length;)o=s6(e[r],n),o.parentNode=t,i.push(o);return i}function is(e,t){var n=e.position;return n&&n.start&&n.end&&(t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset}),t}const xP=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"],bP="IN_TEMPLATE_MODE",_P="DATA_STATE",vP="CHARACTER_TOKEN",EP="START_TAG_TOKEN",TP="END_TAG_TOKEN",yP="COMMENT_TOKEN",SP="DOCTYPE_TOKEN",CP={sourceCodeLocationInfo:!0,scriptingEnabled:!1},l6=function(e,t,n){let r=-1;const i=new iL(CP),o=a6("type",{handlers:{root:m,element:p,text:b,comment:v,doctype:E,raw:N},unknown:OP});let a,s,l,c,u;if(IP(t)&&(n=t,t=void 0),n&&n.passThrough)for(;++r<n.passThrough.length;)o.handlers[n.passThrough[r]]=I;const f=kL(NP(e)?d():g(),t);if(a&&aL(f,"comment",(y,O,M)=>{const j=y;if(j.value.stitch&&M!==null&&O!==null)return M.children[O]=j.value.stitch,O}),e.type!=="root"&&f.type==="root"&&f.children.length===1)return f.children[0];return f;function g(){const y={nodeName:"template",tagName:"template",attrs:[],namespaceURI:Jo.html,childNodes:[]},O={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:Jo.html,childNodes:[]},M={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(O,y),i._pushTmplInsertionMode(bP),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,o(e),S(),i._adoptNodes(O.childNodes[0],M),M}function d(){const y=i.treeAdapter.createDocument();if(i._bootstrap(y,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,o(e),S(),y}function h(y){let O=-1;if(y)for(;++O<y.length;)o(y[O])}function m(y){h(y.children)}function p(y){S(),i._processToken(wP(y),Jo.html),h(y.children),xP.includes(y.tagName)||(S(),i._processToken(kP(y)))}function b(y){S(),i._processToken({type:vP,chars:y.value,location:Aa(y)})}function E(y){S(),i._processToken({type:SP,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Aa(y)})}function v(y){S(),i._processToken({type:yP,data:y.value,location:Aa(y)})}function N(y){const O=V4(y),M=O.line||1,j=O.column||1,H=O.offset||0;if(!l)throw new Error("Expected `preprocessor`");if(!s)throw new Error("Expected `tokenizer`");if(!c)throw new Error("Expected `posTracker`");if(!u)throw new Error("Expected `locationTracker`");l.html=void 0,l.pos=-1,l.lastGapPos=-1,l.lastCharPos=-1,l.gapStack=[],l.skipNextNewLine=!1,l.lastChunkWritten=!1,l.endOfChunkHit=!1,c.isEol=!1,c.lineStartPos=-j+1,c.droppedBufferSize=H,c.offset=0,c.col=1,c.line=M,u.currentAttrLocation=void 0,u.ctLoc=Aa(y),s.write(y.value),i._runParsingLoop(null),(s.state==="NAMED_CHARACTER_REFERENCE_STATE"||s.state==="NUMERIC_CHARACTER_REFERENCE_END_STATE")&&(l.lastChunkWritten=!0,s[s.state](s._consume()))}function I(y){a=!0;let O;"children"in y?O={...y,children:l6({type:"root",children:y.children},t,n).children}:O={...y},v({type:"comment",value:{stitch:O}})}function S(){if(!s)throw new Error("Expected `tokenizer`");if(!c)throw new Error("Expected `posTracker`");const y=s.currentCharacterToken;y&&(y.location.endLine=c.line,y.location.endCol=c.col+1,y.location.endOffset=c.offset+1,i._processToken(y)),s.tokenQueue=[],s.state=_P,s.returnState="",s.charRefCode=-1,s.tempBuff=[],s.lastStartTagName="",s.consumedAfterSnapshot=-1,s.active=!1,s.currentCharacterToken=void 0,s.currentToken=void 0,s.currentAttr=void 0}};function wP(e){const t=Object.assign(Aa(e));return t.startTag=Object.assign({},t),{type:EP,tagName:e.tagName,selfClosing:!1,attrs:AP(e),location:t}}function AP(e){return uP({tagName:e.tagName,type:"element",properties:e.properties,children:[]}).attrs}function kP(e){const t=Object.assign(Aa(e));return t.startTag=Object.assign({},t),{type:TP,tagName:e.tagName,attrs:[],location:t}}function OP(e){throw new Error("Cannot compile `"+e.type+"` node")}function NP(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName==="html"))}function Aa(e){const t=V4(e),n=oL(e);return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function IP(e){return!!(e&&!("message"in e&&"messages"in e))}function RP(e={}){return(t,n)=>l6(t,n,e)}function c6(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=c6(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function MP(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=c6(e))&&(r&&(r+=" "),r+=t);return r}var u6=LP;function LP(e){var t,n;if(typeof e!="function")throw new Error("expected a function but got "+e);return function(){return t||(t=!0,n=e.apply(this,arguments),e=void 0),n}}const PP=typeof window<"u"?window.navigator.userAgent:"",d6=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(PP);var r5,i5;const bH=(i5=((r5=window==null?void 0:window.navigator)==null?void 0:r5.platform)??"")==null?void 0:i5.includes("Mac");function f6(e,t){e.indexOf(t)===-1&&e.push(t)}function DP(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const h6=(e,t,n)=>Math.min(Math.max(n,e),t),zr={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},cl=e=>typeof e=="number",La=e=>Array.isArray(e)&&!cl(e[0]),$P=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function BP(e,t){return La(e)?e[$P(0,e.length,t)]:e}const g6=(e,t,n)=>-n*e+n*t+e,m6=()=>{},so=e=>e,Fd=(e,t,n)=>t-e===0?1:(n-e)/(t-e);function p6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Fd(0,t,r);e.push(g6(n,1,i))}}function FP(e){const t=[0];return p6(t,e-1),t}function HP(e,t=FP(e.length),n=so){const r=e.length,i=r-t.length;return i>0&&p6(t,i),o=>{let a=0;for(;a<r-2&&!(o<t[a+1]);a++);let s=h6(0,1,Fd(t[a],t[a+1],o));return s=BP(n,a)(s),g6(e[a],e[a+1],s)}}const x6=e=>Array.isArray(e)&&cl(e[0]),Ru=e=>typeof e=="object"&&!!e.createAnimation,ul=e=>typeof e=="function",zP=e=>typeof e=="string",j0={ms:e=>e*1e3,s:e=>e/1e3},b6=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,UP=1e-7,jP=12;function GP(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=b6(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>UP&&++s<jP);return a}function Ls(e,t,n,r){if(e===t&&n===r)return so;const i=o=>GP(o,0,1,e,n);return o=>o===0||o===1?o:b6(i(o),t,r)}const KP=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return h6(0,1,i/e)},P2={ease:Ls(.25,.1,.25,1),"ease-in":Ls(.42,0,1,1),"ease-in-out":Ls(.42,0,.58,1),"ease-out":Ls(0,0,.58,1)},WP=/\((.*?)\)/;function D2(e){if(ul(e))return e;if(x6(e))return Ls(...e);if(P2[e])return P2[e];if(e.startsWith("steps")){const t=WP.exec(e);if(t){const n=t[1].split(",");return KP(parseFloat(n[0]),n[1].trim())}}return so}class VP{constructor(t,n=[0,1],{easing:r,duration:i=zr.duration,delay:o=zr.delay,endDelay:a=zr.endDelay,repeat:s=zr.repeat,offset:l,direction:c="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=so,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((f,g)=>{this.resolve=f,this.reject=g}),r=r||zr.easing,Ru(r)){const f=r.createAnimation(n);r=f.easing,n=f.keyframes||n,i=f.duration||i}this.repeat=s,this.easing=La(r)?so:D2(r),this.updateDuration(i);const u=HP(n,l,La(r)?r.map(D2):so);this.tick=f=>{var g;o=o;let d=0;this.pauseTime!==void 0?d=this.pauseTime:d=(f-this.startTime)*this.rate,this.t=d,d/=1e3,d=Math.max(d-o,0),this.playState==="finished"&&this.pauseTime===void 0&&(d=this.totalDuration);const h=d/this.duration;let m=Math.floor(h),p=h%1;!p&&h>=1&&(p=1),p===1&&m--;const b=m%2;(c==="reverse"||c==="alternate"&&b||c==="alternate-reverse"&&!b)&&(p=1-p);const E=d>=this.totalDuration?1:Math.min(p,1),v=u(this.easing(E));t(v),this.pauseTime===void 0&&(this.playState==="finished"||d>=this.totalDuration+a)?(this.playState="finished",(g=this.resolve)===null||g===void 0||g.call(this,v)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}class qP{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const G0=new WeakMap;function _6(e){return G0.has(e)||G0.set(e,{transforms:[],values:new Map}),G0.get(e)}function YP(e,t){return e.has(t)||e.set(t,new qP),e.get(t)}const XP=["","X","Y","Z"],QP=["translate","scale","rotate","skew"],za={x:"translateX",y:"translateY",z:"translateZ"},$2={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},ZP={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:$2,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:so},skew:$2},Ua=new Map,Bc=e=>`--motion-${e}`,j1=["x","y","z"];QP.forEach(e=>{XP.forEach(t=>{j1.push(e+t),Ua.set(Bc(e+t),ZP[e])})});const JP=(e,t)=>j1.indexOf(e)-j1.indexOf(t),eD=new Set(j1),Hd=e=>eD.has(e),tD=(e,t)=>{za[t]&&(t=za[t]);const{transforms:n}=_6(e);f6(n,t),e.style.transform=v6(n)},v6=e=>e.sort(JP).reduce(nD,"").trim(),nD=(e,t)=>`${e} ${t}(var(${Bc(t)}))`,Mu=e=>e.startsWith("--"),B2=new Set;function rD(e){if(!B2.has(e)){B2.add(e);try{const{syntax:t,initialValue:n}=Ua.has(e)?Ua.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:n})}catch{}}}const K0=(e,t)=>document.createElement("div").animate(e,t),F2={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{K0({opacity:[1]})}catch{return!1}return!0},finished:()=>!!K0({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{K0({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},W0={},ka={};for(const e in F2)ka[e]=()=>(W0[e]===void 0&&(W0[e]=F2[e]()),W0[e]);const iD=.015,oD=(e,t)=>{let n="";const r=Math.round(t/iD);for(let i=0;i<r;i++)n+=e(Fd(0,r-1,i))+", ";return n.substring(0,n.length-2)},H2=(e,t)=>ul(e)?ka.linearEasing()?`linear(${oD(e,t)})`:zr.easing:x6(e)?aD(e):e,aD=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`;function sD(e,t){for(let n=0;n<e.length;n++)e[n]===null&&(e[n]=n?e[n-1]:t());return e}const lD=e=>Array.isArray(e)?e:[e];function Lu(e){return za[e]&&(e=za[e]),Hd(e)?Bc(e):e}const Ps={get:(e,t)=>{t=Lu(t);let n=Mu(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!n&&n!==0){const r=Ua.get(t);r&&(n=r.initialValue)}return n},set:(e,t,n)=>{t=Lu(t),Mu(t)?e.style.setProperty(t,n):e.style[t]=n}};function cD(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function uD(e,t){var n;let r=(t==null?void 0:t.toDefaultUnit)||so;const i=e[e.length-1];if(zP(i)){const o=((n=i.match(/(-?[\d.]+)([a-z%]*)/))===null||n===void 0?void 0:n[2])||"";o&&(r=a=>a+o)}return r}function dD(){return window.__MOTION_DEV_TOOLS_RECORD}function fD(e,t,n,r={},i){const o=dD(),a=r.record!==!1&&o;let s,{duration:l=zr.duration,delay:c=zr.delay,endDelay:u=zr.endDelay,repeat:f=zr.repeat,easing:g=zr.easing,direction:d,offset:h,allowWebkitAcceleration:m=!1}=r;const p=_6(e),b=Hd(t);let E=ka.waapi();b&&tD(e,t);const v=Lu(t),N=YP(p.values,v),I=Ua.get(v);return cD(N.animation,!(Ru(g)&&N.generator)&&r.record!==!1),()=>{const S=()=>{var M,j;return(j=(M=Ps.get(e,v))!==null&&M!==void 0?M:I==null?void 0:I.initialValue)!==null&&j!==void 0?j:0};let y=sD(lD(n),S);const O=uD(y,I);if(Ru(g)){const M=g.createAnimation(y,t!=="opacity",S,v,N);g=M.easing,y=M.keyframes||y,l=M.duration||l}if(Mu(v)&&(ka.cssRegisterProperty()?rD(v):E=!1),b&&!ka.linearEasing()&&(ul(g)||La(g)&&g.some(ul))&&(E=!1),E){I&&(y=y.map(H=>cl(H)?I.toDefaultUnit(H):H)),y.length===1&&(!ka.partialKeyframes()||a)&&y.unshift(S());const M={delay:j0.ms(c),duration:j0.ms(l),endDelay:j0.ms(u),easing:La(g)?void 0:H2(g,l),direction:d,iterations:f+1,fill:"both"};s=e.animate({[v]:y,offset:h,easing:La(g)?g.map(H=>H2(H,l)):void 0},M),s.finished||(s.finished=new Promise((H,X)=>{s.onfinish=H,s.oncancel=X}));const j=y[y.length-1];s.finished.then(()=>{Ps.set(e,v,j),s.cancel()}).catch(m6),m||(s.playbackRate=1.000001)}else if(i&&b)y=y.map(M=>typeof M=="string"?parseFloat(M):M),y.length===1&&y.unshift(parseFloat(S())),s=new i(M=>{Ps.set(e,v,O?O(M):M)},y,Object.assign(Object.assign({},r),{duration:l,easing:g}));else{const M=y[y.length-1];Ps.set(e,v,I&&cl(M)?I.toDefaultUnit(M):M)}return a&&o(e,t,y,{duration:l,delay:c,easing:g,repeat:f,offset:h},"motion-one"),N.setAnimation(s),s}}const hD=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function gD(e,t){var n;return typeof e=="string"?t?((n=t[e])!==null&&n!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}function E6(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}const mD={any:0,all:1};function pD(e,t,{root:n,margin:r,amount:i="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const o=gD(e),a=new WeakMap,s=c=>{c.forEach(u=>{const f=a.get(u.target);if(u.isIntersecting!==!!f)if(u.isIntersecting){const g=t(u);ul(g)?a.set(u.target,g):l.unobserve(u.target)}else f&&(f(u),a.delete(u.target))})},l=new IntersectionObserver(s,{root:n,rootMargin:r,threshold:typeof i=="number"?i:mD[i]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}function xD(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!bD(e,t):e!==t}function bD(e,t){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function _D(e){return typeof e=="object"}function z2(e,t){if(_D(e))return e;if(e&&t)return t[e]}let lo;function vD(){if(!lo)return;const e=lo.sort(TD).map(yD);e.forEach(U2),e.forEach(U2),lo=void 0}function V0(e){lo?f6(lo,e):(lo=[e],requestAnimationFrame(vD))}function ED(e){lo&&DP(lo,e)}const TD=(e,t)=>e.getDepth()-t.getDepth(),yD=e=>e.animateUpdates(),U2=e=>e.next(),j2=(e,t)=>new CustomEvent(e,{detail:{target:t}});function Pu(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:n}}))}function G2(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:n}}))}const SD={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:n},{inViewOptions:r={}})=>{const{once:i}=r,o=E6(r,["once"]);return pD(e,a=>{if(t(),G2(e,"viewenter",a),!i)return s=>{n(),G2(e,"viewleave",s)}},o)}},K2=(e,t,n)=>r=>{r.pointerType&&r.pointerType!=="mouse"||(n(),Pu(e,t,r))},CD={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:n})=>{const r=K2(e,"hoverstart",t),i=K2(e,"hoverend",n);return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",i),()=>{e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",i)}}},wD={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:n})=>{const r=o=>{n(),Pu(e,"pressend",o),window.removeEventListener("pointerup",r)},i=o=>{t(),Pu(e,"pressstart",o),window.addEventListener("pointerup",r)};return e.addEventListener("pointerdown",i),()=>{e.removeEventListener("pointerdown",i),window.removeEventListener("pointerup",r)}}},_1={inView:SD,hover:CD,press:wD},W2=["initial","animate",...Object.keys(_1),"exit"],V2=new WeakMap;function AD(e={},t){let n,r=t?t.getDepth()+1:0;const i={initial:!0,animate:!0},o={},a={};for(const m of W2)a[m]=typeof e[m]=="string"?e[m]:t==null?void 0:t.getContext()[m];const s=e.initial===!1?"animate":"initial";let l=z2(e[s]||a[s],e.variants)||{},c=E6(l,["transition"]);const u=Object.assign({},c);function*f(){var m,p;const b=c;c={};const E={};for(const y of W2){if(!i[y])continue;const O=z2(e[y]);if(O)for(const M in O)M!=="transition"&&(c[M]=O[M],E[M]=hD((p=(m=O.transition)!==null&&m!==void 0?m:e.transition)!==null&&p!==void 0?p:{},M))}const v=new Set([...Object.keys(c),...Object.keys(b)]),N=[];v.forEach(y=>{var O;c[y]===void 0&&(c[y]=u[y]),xD(b[y],c[y])&&((O=u[y])!==null&&O!==void 0||(u[y]=Ps.get(n,y)),N.push(fD(n,y,c[y],E[y],VP)))}),yield;const I=N.map(y=>y()).filter(Boolean);if(!I.length)return;const S=c;n.dispatchEvent(j2("motionstart",S)),Promise.all(I.map(y=>y.finished)).then(()=>{n.dispatchEvent(j2("motioncomplete",S))}).catch(m6)}const g=(m,p)=>()=>{i[m]=p,V0(h)},d=()=>{for(const m in _1){const p=_1[m].isActive(e),b=o[m];p&&!b?o[m]=_1[m].subscribe(n,{enable:g(m,!0),disable:g(m,!1)},e):!p&&b&&(b(),delete o[m])}},h={update:m=>{n&&(e=m,d(),V0(h))},setActive:(m,p)=>{n&&(i[m]=p,V0(h))},animateUpdates:f,getDepth:()=>r,getTarget:()=>c,getOptions:()=>e,getContext:()=>a,mount:m=>(n=m,V2.set(n,h),d(),()=>{V2.delete(n),ED(h);for(const p in o)o[p]()}),isMounted:()=>!!n};return h}function kD(e){const t={},n=[];for(let r in e){const i=e[r];Hd(r)&&(za[r]&&(r=za[r]),n.push(r),r=Bc(r));let o=Array.isArray(i)?i[0]:i;const a=Ua.get(r);a&&(o=cl(i)?a.toDefaultUnit(i):i),t[r]=o}return n.length&&(t.transform=v6(n)),t}const OD={initial:()=>!0,addCleanup:Dt,addMount:Gn},q2=Ct(),ND=Ct(OD);function ID(e,t,n,r){const{addCleanup:i,addMount:o,initial:a}=n,s=AD(a()?t():{...t(),initial:!1},r);return o(c5.bind(void 0,Bu(),()=>{i(s.mount(e())),tn(()=>s.update(t()))})),s}const RD=/([^:; ]*):\s*([^;]*)/g;function Y2(e){const t={};let n;for(;n=RD.exec(e);)t[n[1]]=n[2];return t}function MD(e,t){if(typeof e=="object"&&typeof t=="object")return{...e,...t};if(typeof e=="string"&&typeof t=="string")return`${e};${t}`;const n=typeof e=="object"?e:Y2(e),r=typeof t=="object"?t:Y2(t);return{...n,...r}}const X2=e=>{const[t,,n]=se(e,["initial","animate","inView","inViewOptions","hover","press","variants","transition","exit"],["tag","ref","style","onMotionStart","onMotionComplete","onHoverStart","onHoverEnd","onPressStart","onPressEnd","onViewEnter","onViewLeave"]),r=ID(()=>o,()=>({...t}),$t(ND),$t(q2)),i=kD(r.getTarget());let o;return T(q2.Provider,{value:r,get children(){return T(Hu,K({ref:a=>{var s;o=a,(s=e.ref)==null||s.call(e,a)},get component(){return mn(()=>e.tag||"div")},get style(){return Sr(()=>!!e.style,!0)()?MD(e.style,i):i},get"on:motionstart"(){return e.onMotionStart},get"on:motioncomplete"(){return e.onMotionComplete},get"on:hoverstart"(){return e.onHoverStart},get"on:hoverend"(){return e.onHoverEnd},get"on:pressstart"(){return e.onPressStart},get"on:pressend"(){return e.onPressEnd},get"on:viewenter"(){return e.onViewEnter},get"on:viewleave"(){return e.onViewLeave}},n))}})},T6=new Proxy(X2,{get:(e,t)=>n=>(delete n.tag,T(X2,K(n,{tag:t})))}),y6=(e,t)=>{t!=null&&t.immediate&&e(),window.addEventListener("scroll",e,{passive:!0}),Dt(()=>window.removeEventListener("scroll",e))},_H=()=>{if(d6)return null;const[e,t]=Me(!1);return y6(()=>t(window.scrollY>100)),T(Ae,{get when(){return e()},get children(){return T(De,{get as(){return T6.div},initial:{y:-999},animate:{y:0},zIndex:"$overlay",pos:"fixed",right:"$5",top:"0",borderBottomRadius:"50%",bgColor:"$whiteAlpha12",get color(){return Qo()},overflow:"hidden",shadow:"$lg",get _dark(){return{bgColor:Qo(),color:"white"}},get _hover(){return{bgColor:Qo(),color:"white"}},get children(){return T(oa,{_focus:{outline:"none"},cursor:"pointer",boxSize:"$7",p:"$1",rounded:"$lg",as:pC,onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})}})}})}})},[LD,PD]=Me(!1),[DD,vH]=R9("isMarkdownTocDisabled",!0,{serializer:e=>JSON.stringify(e),deserializer:e=>JSON.parse(e)});function $D(e){if(e.disabled||d6)return null;const[t,n]=Me([]);y6(()=>PD(window.scrollY>100&&t().length>1),{immediate:!0}),tn(()=>{const s=e.markdownRef.querySelector(".markdown-body");if(!s)return;const l=document.createNodeIterator(s,NodeFilter.SHOW_ELEMENT,{acceptNode(g){return/h1|h2|h3/i.test(g.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),c=[];let u=l.nextNode(),f=6;for(;u;){const g=Number(u.nodeName.match(/h(\d)/i)[1]);g<f&&(f=g),c.push({indent:g,text:u.textContent,tagName:u.nodeName.toLowerCase(),key:u.getAttribute("key")}),u=l.nextNode()}n(c.map(g=>({...g,indent:g.indent-f})))});const r=s=>{const l=e.markdownRef.querySelector(`${s.tagName}[key=${s.key}]`);if(!l)return;const c=document.querySelector(".nav");let u=(c==null?void 0:c.getBoundingClientRect().bottom)??0;u<0&&(u=0);const f=l.getBoundingClientRect().y;window.scrollBy({behavior:"smooth",top:f-u})},i="calc(100% - 20px)",[o,a]=Me(i);return T(Ae,{get when(){return Sr(()=>!DD(),!0)()&&LD()},get children(){return T(De,{get as(){return T6.div},initial:{x:999},get animate(){return{x:o()}},onMouseEnter:()=>a(0),onMouseLeave:()=>a(i),zIndex:"$overlay",pos:"fixed",right:"$6",top:"$6",get children(){return T(De,{mt:"$5",p:"$2",shadow:"$outline",rounded:"$lg",bgColor:"white",_dark:{bgColor:"$neutral3"},get children(){return T(_p,{maxH:"60vh",overflowY:"auto",get children(){return T(Ka,{get each(){return t()},children:s=>T(Ep,{get pl(){return 15*s.indent},m:4,get children(){return T(vm,{get color(){return Qo()},onClick:()=>r(s),get children(){return s.text}})}})})}})}})}})}})}const BD=u6(()=>{const e=document.createElement("link");e.rel="stylesheet",e.href="https://registry.npmmirror.com/katex/0.16.11/files/dist/katex.min.css",document.head.appendChild(e)}),FD=u6(()=>{const e=document.createElement("script");e.src="https://registry.npmmirror.com/mermaid/11/files/dist/mermaid.min.js",document.body.appendChild(e)});function EH(e){const[t,n]=Me("utf-8"),[r,i]=Me(!0),{isString:o,text:a}=dC(e.children),s=p=>!e.ext||e.ext.toLocaleLowerCase()==="md"?p:"```"+e.ext+`
67
+ `+p+"\n```",{pathname:l}=Ja(),c=Xe(()=>{let p=s(a(t()));return p=p.replace(/!\[.*?\]\((.*?)\)/g,b=>{const E=b.match(/!\[(.*?)\]\(.*?\)/)[1];let v=b.match(/!\[.*?\]\((.*?)\)/)[1];if(v.startsWith("data:image/")||v.startsWith("http://")||v.startsWith("https://")||v.startsWith("//"))return b;v.startsWith("/")?v=`${Ur}/d${v}`:v=`${Ur}/d${_r(Oa().base_path,ly(e.readme?l():od(l()),v))}`;const N=`![${E}](${v})`;return console.log(N),N}),p}),[u,f]=Me([uI]),[g,d]=Me([RP]);tn(wi(c,async()=>{if(i(!1),/\$\$[\s\S]+?\$\$|\$[^$\n]+?\$/.test(c())){const{default:p}=await In(()=>import("./index-870b387c.js"),[]),{default:b}=await In(()=>import("./index-5b99d24c.js"),[]);BD(),f([...u(),p]),d([...g(),b])}FD(),setTimeout(()=>{i(!0),xx.highlightAll(),window.mermaid&&window.mermaid.run({querySelector:".language-mermaid"}),window.onMDRender&&window.onMDRender()})}));const[h,m]=Me();return T(De,{ref:p=>m(p),class:"markdown",pos:"relative",w:"$full",get children(){return[T(Ae,{get when(){return r()},get children(){return T(TO,{get class(){return MP("markdown-body",e.class)},get remarkPlugins(){return u()},get rehypePlugins(){return g()},get children(){return c()}})}}),T(Ae,{when:!o,get children(){return T(L$,{get encoding(){return t()},setEncoding:n,get referenceText(){return e.children}})}}),T($D,{get disabled(){return!e.toc},get markdownRef(){return h()}})]}})}function TH(e){return _e({a:{viewBox:"0 0 1024 1024"},c:'<path d="M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"/><path d="M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"/>'},e)}function yH(e){return _e({a:{viewBox:"0 0 1024 1024"},c:'<path d="M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"/><path d="M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"/>'},e)}function SH(e){return _e({a:{viewBox:"0 0 1024 1024"},c:'<path d="M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"/>'},e)}function HD(e){return _e({a:{viewBox:"0 0 1024 1024"},c:'<path d="M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"/>'},e)}function zD(e){return _e({a:{viewBox:"0 0 1024 1024"},c:'<path d="M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"/>'},e)}function CH(e){return _e({a:{viewBox:"0 0 1024 1024"},c:'<path d="M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 86-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z"/>'},e)}function wH(e){return _e({a:{viewBox:"0 0 1024 1024"},c:'<path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"/>'},e)}function AH(e){return _e({a:{viewBox:"0 0 1024 1024"},c:'<path d="M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 000 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7zM680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"/>'},e)}function kH(e){return _e({a:{viewBox:"0 0 1024 1024"},c:'<path fill="currentColor" fill-opacity="0.6" d="M292.7 840h438.6l24.2-512h-487z"/><path d="M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-504-72h304v72H360v-72zm371.3 656H292.7l-24.2-512h487l-24.2 512z"/>'},e)}const zd=e=>{const t=K({h:"$full"},e),{to:n}=Ja(),r=vl(),i=()=>e.msg.includes("storage not found")||e.msg.includes("please add a storage"),o=()=>e.msg.includes("too many active devices"),a=()=>e.msg.includes("session inactive"),s=()=>{n("/@manage/storages")},l=()=>{n(`/@login?redirect=${encodeURIComponent(window.location.pathname)}`)};return T(Ya,{get h(){return t.h},p:"$2",flexDirection:"column",get children(){return T(De,{rounded:"$lg",px:"$4",py:"$6",get bgColor(){return ac("white","$neutral3")()},get children(){return T(zs,{spacing:"$4",textAlign:"center",get children(){return[T(Ae,{get when(){return Sr(()=>!o(),!0)()&&!a()},get children(){return T(hp,{css:{wordBreak:"break-all"},get children(){return e.msg}})}}),T(Ae,{get when(){return i()},get children(){return T(P1,{onClick:s,size:"md",get children(){return r("home.go_to_storages")}})}}),T(Ae,{get when(){return o()},get children(){return T(zs,{spacing:"$2",get children(){return T(lu,{fontSize:"sm",get children(){return r("session.too_many_devices")}})}})}}),T(Ae,{get when(){return a()},get children(){return T(zs,{spacing:"$2",get children(){return[T(lu,{fontSize:"sm",get children(){return r("session.session_inactive")}}),T(P1,{onClick:l,size:"md",colorScheme:"accent",get children(){return r("global.go_login")}})]}})}}),T(Ae,{get when(){return!e.disableColor},get children(){return T(Ju,{mt:"$2",justifyContent:"end",get children(){return T(_C,{})}})}})]}})}})}})},OH=e=>{const{isOpen:t,onToggle:n}=XT();return T(De,{get pos(){return t()?"fixed":"relative"},get w(){return t()?"100vw":e.w},get h(){return t()?"100vh":e.h},top:0,left:0,zIndex:1,transition:"all 0.2s ease-in-out",get css(){return{backdropFilter:t()?"blur(5px)":void 0}},get children(){return[Sr(()=>e.children),T(oa,{pos:"absolute",right:"$2",bottom:"$2","aria-label":"toggle fullscreen",get as(){return t()?HD:zD},onClick:n,cursor:"pointer",rounded:"$md",get bgColor(){return ux()},p:"$1",boxSize:"$7"})]}})};function UD(e){return T(Zp,{get size(){return e.size},get value(){return e.value},get onChange(){return e.onChange},get children(){return[T(pc,{get borderColor(){return e.alwaysShowBorder?"$info5":void 0},get w(){return e.w},get children(){return[T(xc,{}),T(tl,{})]}}),T(dc,{get children(){return T(fc,{get children(){return T(Ka,{get each(){return e.options},children:t=>T(hc,{get value(){return t.value},get children(){return[T(mc,{get children(){return t.label??t.value}}),T(gc,{})]}})})}})}})]}})}function NH(e){return _e({a:{viewBox:"0 0 384 512"},c:'<path d="M192 384c-8.188 0-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L192 306.8l137.4-137.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-160 160C208.4 380.9 200.2 384 192 384z"/>'},e)}function IH(e){return _e({a:{viewBox:"0 0 256 512"},c:'<path d="M192 448c-8.188 0-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25l160-160c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l137.4 137.4c12.5 12.5 12.5 32.75 0 45.25C208.4 444.9 200.2 448 192 448z"/>'},e)}function RH(e){return _e({a:{viewBox:"0 0 256 512"},c:'<path d="M64 448c-8.188 0-16.38-3.125-22.62-9.375-12.5-12.5-12.5-32.75 0-45.25L178.8 256 41.38 118.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160c12.5 12.5 12.5 32.75 0 45.25l-160 160C80.38 444.9 72.19 448 64 448z"/>'},e)}function jD(e){return _e({a:{viewBox:"0 0 448 512"},c:'<path d="M448 336V48c0-26.51-21.5-48-48-48H96C42.98 0 0 42.98 0 96v320c0 53.02 42.98 96 96 96h320c17.67 0 32-14.33 32-31.1 0-11.72-6.607-21.52-16-27.1v-81.36c9.8-9.64 16-22.24 16-36.44zM143.1 128h192c9.7 0 16.9 7.2 16.9 16s-7.2 16-16 16H143.1c-7.9 0-15.1-7.2-15.1-16s7.2-16 15.1-16zm0 64h192c9.7 0 16.9 7.2 16.9 16s-7.2 16-16 16H143.1c-7.9 0-15.1-7.2-15.1-16s7.2-16 15.1-16zM384 448H96c-17.67 0-32-14.33-32-32s14.33-32 32-32h288v64z"/>'},e)}function GD(e){return _e({a:{viewBox:"0 0 512 512"},c:'<path d="M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zM80.72 256h-1.09c-9.078 0-16.4-8.011-15.56-17.34C72.36 146 146.5 72.06 239.3 64.06c9-.78 16.7 6.69 16.7 16.03 0 8.35-6.215 15.28-14.27 15.99C164.7 102.9 103.1 164.3 96.15 241.4c-.75 8.2-7.38 14.6-15.43 14.6zM256 351.1c-53.02 0-96-43-96-95.1s42.98-96 96-96 96 43 96 96-43 95.1-96 95.1zm0-127.1c-17.7 0-32 14.2-32 32s14.3 32 32 32 32-14.25 32-32-14.3-32-32-32z"/>'},e)}function KD(e){return _e({a:{viewBox:"0 0 448 512"},c:'<path d="M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.82 100.3 0 224 0s224 35.82 224 80zm-54.8 134.7c19.9-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.93 11.7 34.02 21.2 54.85 28.6C99.66 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zm-338.35 160C99.66 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c19.9-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432v-85.9c14.93 11.7 34.02 21.2 54.85 28.6z"/>'},e)}function WD(e){return _e({a:{viewBox:"0 0 640 512"},c:'<path d="M172.5 131.1c55.6-55.59 148-55.59 203.6 0 50 50 57.4 129.7 16.3 187.2l-1.1 1.6c-10.3 14.3-30.3 17.7-44.6 7.4-14.4-10.3-17.8-30.3-7.5-44.6l1.1-1.6c22.9-32.1 19.3-76-8.6-103.9-31.4-31.4-82.5-31.4-114 0L105.5 289.5c-31.51 30.6-31.51 82.5 0 114 27.8 27.9 71.8 31.5 103.8 8.6l1.6-2c14.4-9.4 34.4-6.1 44.6 8.3 10.3 14.4 7 34.4-7.4 44.7l-1.6 1.1c-58.4 41.1-136.3 34.5-186.29-15.4-56.469-56.5-56.469-148.1 0-204.5L172.5 131.1zm295 248.9c-56.5 56.5-148 56.5-204.5 0-50-50-56.5-128.8-15.4-186.3l1.1-1.6c9.4-14.3 29.4-17.7 44.6-7.4 14.4 9.4 17.8 29.4 7.5 44.6l-1.1 1.6c-22.9 31.2-19.3 76 8.6 103.9 31.4 31.4 82.5 31.4 114 0l112.2-112.3c31.5-31.5 31.5-83.4 0-114-27.8-27.87-71.8-31.51-103.8-8.6l-1.6 1.1c-14.4 10.3-34.4 6.1-44.6-7.42-10.3-14.38-7-34.37 7.4-44.64l1.6-1.12C451 6.731 529.8 13.25 579.8 63.24c56.5 56.46 56.5 148.06 0 204.46L467.5 380z"/>'},e)}function MH(e){return _e({a:{viewBox:"0 0 512 512"},c:'<path d="M16 96c0-26.51 21.49-48 48-48s48 21.49 48 48c0 26.5-21.49 48-48 48s-48-21.5-48-48zm464-32c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32 0-17.67 14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zM16 416c0-26.5 21.49-48 48-48s48 21.5 48 48-21.49 48-48 48-48-21.5-48-48zm96-160c0 26.5-21.49 48-48 48s-48-21.5-48-48 21.49-48 48-48 48 21.5 48 48z"/>'},e)}function LH(e){return _e({a:{viewBox:"0 0 640 512"},c:'<path d="M425.1 482.6a149.547 149.547 0 01-6.809-3.93l-7.818 4.493a39.211 39.211 0 01-19.75 5.352c-10.71 0-21.13-4.492-28.97-12.75-18.41-20.09-32.29-44.15-40.22-69.9-5.352-18.06 2.343-36.87 17.83-45.24l8.018-4.669a155.055 155.055 0 010-7.859l-7.655-4.461c-12.3-6.953-19.4-19.66-19.64-33.38C305.6 306.3 290.4 304 274.7 304H173.3C77.61 304 0 381.7 0 477.4 0 496.5 15.52 512 34.66 512H413.3c5.727 0 10.9-1.727 15.66-4.188-2.271-4.984-3.86-10.3-3.86-16.06V482.6zM224 256c70.7 0 128-57.31 128-128S294.7 0 224 0 96 57.31 96 128s57.3 128 128 128zm386.5 117.3c2.625-14 2.625-28.5 0-42.5l25.75-15c3-1.625 4.375-5.125 3.375-8.5-6.75-21.5-18.25-41.13-33.25-57.38-2.25-2.5-6-3.125-9-1.375l-25.75 14.88c-10.88-9.25-23.38-16.5-36.88-21.25V212.3c0-3.375-2.5-6.375-5.75-7-22.25-5-45-4.875-66.25 0-3.25.625-5.625 3.625-5.625 7v29.88c-13.5 4.75-26 12-36.88 21.25L394.4 248.5c-2.875-1.75-6.625-1.125-9 1.375-15 16.25-26.5 35.88-33.13 57.38-1 3.375.375 6.875 3.25 8.5l25.75 15c-2.5 14-2.5 28.5 0 42.5l-25.75 15c-3 1.625-4.25 5.125-3.25 8.5 6.625 21.5 18.13 41 33.13 57.38 2.375 2.5 6 3.125 9 1.375l25.88-14.88c10.88 9.25 23.38 16.5 36.88 21.25v29.88c0 3.375 2.375 6.375 5.625 7 22.38 5 45 4.875 66.25 0 3.25-.625 5.75-3.625 5.75-7v-29.88c13.5-4.75 26-12 36.88-21.25l25.75 14.88c2.875 1.75 6.75 1.125 9-1.375 15-16.25 26.5-35.88 33.25-57.38 1-3.375-.375-6.875-3.375-8.5L610.5 373.3zM496 400.5c-26.75 0-48.5-21.75-48.5-48.5s21.75-48.5 48.5-48.5 48.5 21.75 48.5 48.5-21.7 48.5-48.5 48.5z"/>'},e)}function VD(e){return _e({a:{viewBox:"0 0 32 32"},c:`<path
68
+ fill="#070444"
69
+ d="M24.099 2H8.837v28h20.91V7.888l-5.579-5.816L24.099 2"
70
+ ></path>
71
+ <path
72
+ fill="#5bc3f6"
73
+ d="M2.253 3.493H22.56v7.844H2.253zM24.099 2v5.888h5.648L24.099 2z"
74
+ ></path>
75
+ <path
76
+ fill="#070444"
77
+ d="M7.1 4.987a6 6 0 0 1 1.242-.1a1.576 1.576 0 0 1 1.187.392a1.714 1.714 0 0 1 .429 1.207A1.946 1.946 0 0 1 9.6 7.712a1.565 1.565 0 0 1-1.254.518a2.084 2.084 0 0 1-.246-.015v1.7h-1Zm1 2.206a1.61 1.61 0 0 0 .228.015a.621.621 0 0 0 .641-.7a.546.546 0 0 0-.569-.618a1.166 1.166 0 0 0-.3.03Zm2.983 1.385a1.845 1.845 0 0 0 .975.311c.345 0 .513-.156.513-.407S12.4 8.1 11.98 7.9a1.594 1.594 0 0 1-1.053-1.5a1.454 1.454 0 0 1 1.5-1.562a1.925 1.925 0 0 1 1.02.259l-.207 1.067a1.576 1.576 0 0 0-.819-.237c-.306 0-.474.148-.474.37c0 .252.2.355.674.592a1.543 1.543 0 0 1 .981 1.5a1.494 1.494 0 0 1-1.6 1.6a2.117 2.117 0 0 1-1.1-.311Zm4.537.402h-.1V5.755h.014a1.117 1.117 0 0 1 .629.113a1.262 1.262 0 0 1 .341.422a1.369 1.369 0 0 1 .149.553c.01.231 0 .417 0 .578a3.079 3.079 0 0 1-.035.539a1.846 1.846 0 0 1-.178.529a1.187 1.187 0 0 1-.382.379a.707.707 0 0 1-.437.111m.192-4.141c-.117 0-.23.009-.31.012l-.247.007h-.82v5.054h.964a2.815 2.815 0 0 0 1.082-.184a1.8 1.8 0 0 0 .718-.517a2.04 2.04 0 0 0 .392-.788a3.921 3.921 0 0 0 .12-1a4.644 4.644 0 0 0-.092-1.186a1.868 1.868 0 0 0-.425-.771a1.712 1.712 0 0 0-.563-.422a2.537 2.537 0 0 0-.577-.188a1.349 1.349 0 0 0-.24-.018"
78
+ ></path>
79
+ <path
80
+ fill="#5bc3f6"
81
+ d="M16 19.651a7.218 7.218 0 0 1-.9-.031v-3.49c.111-.016.5-.031 1.04-.031c1.3 0 1.873.546 1.873 1.791c0 1.556-.916 1.761-2.012 1.761m.139-5.031c-1.054 0-2.095.016-2.622.031c-.069 0-.083.031-.083.109v9.93c0 .078.028.109.1.109H15c.069 0 .1-.031.1-.125V21.13h.86c2.039 0 3.718-.658 3.718-3.132c-.014-1.805-.818-3.378-3.538-3.378m6.935 2.598a2.266 2.266 0 0 0-2.539 2.257c0 1.136.5 1.743 1.928 2.4c1 .451 1.249.685 1.249 1.089c0 .342-.222.7-.86.7a4.067 4.067 0 0 1-2.247-.841a.056.056 0 0 0-.034-.012c-.033 0-.063.032-.063.09v1.432a.159.159 0 0 0 .083.156a3.942 3.942 0 0 0 2.15.607a2.317 2.317 0 0 0 2.594-2.4c0-1.121-.61-1.7-2.039-2.35c-1.04-.467-1.221-.669-1.221-1.043c0-.3.18-.654.86-.654a3.8 3.8 0 0 1 1.928.591a.094.094 0 0 0 .052.018c.043 0 .073-.043.073-.112v-1.274a.224.224 0 0 0-.083-.2a3.365 3.365 0 0 0-1.831-.451"
82
+ ></path>`},e)}function qD(e){return _e({a:{viewBox:"0 0 32 32"},c:`<path
83
+ fill="#909090"
84
+ d="m24.037 2.072l5.564 5.8v22.056H8.814V30H29.67V7.945l-5.633-5.873"
85
+ ></path>
86
+ <path
87
+ fill="#231612"
88
+ d="M23.965 2H8.742v27.928H29.6V7.873L23.965 2"
89
+ ></path>
90
+ <path fill="#4c4442" d="M23.893 2.072v5.874h5.633l-5.633-5.874"></path>
91
+ <path fill="#f36617" d="M23.965 2v5.873H29.6L23.965 2Z"></path>
92
+ <path fill="#909090" d="M2.384 10.264h6.359V3.432H2.384v6.832Z"></path>
93
+ <path fill="#4c4442" d="M8.743 10.264h13.718V3.432H8.743v6.832Z"></path>
94
+ <path fill="#f36617" d="M22.407 10.211H2.33V3.379h20.077v6.832"></path>
95
+ <path
96
+ fill="#f46c25"
97
+ d="M18.1 20.619c-.275-1.07-.948-3.226-1.223-4.344h-.014c-.206 1.054-.769 2.859-1.181 4.344H18.1Zm-2.775 1.566l-.838 2.779c-.014.1-.055.128-.137.128h-1.4c-.1 0-.124-.048-.1-.16a858.912 858.912 0 0 1 2.871-9.279a3.686 3.686 0 0 0 .11-.878a.086.086 0 0 1 .082-.1h1.9c.069 0 .082.016.11.08c1.016 3.274 2.129 6.884 3.173 10.19q.041.144-.082.144h-1.542c-.069 0-.1-.032-.124-.1l-.879-2.811h-3.146m6.967-4.631c0-.1.027-.128.094-.128h1.431c.081 0 .108.016.108.128v7.506c0 .08-.027.128-.108.128h-1.4c-.081 0-.121-.032-.121-.144v-7.49Zm-.09-2.173a.918.918 0 0 1 .918-.99a.884.884 0 0 1 .891.99a.908.908 0 1 1-1.809 0"
98
+ ></path>
99
+ <path
100
+ fill="#231612"
101
+ d="M11.238 5.279h-.013L10.9 7.352h.652ZM9.5 9.3l1.06-4.86h1.355l1.033 4.86H11.81l-.15-1.133h-.882L10.634 9.3H9.5m3.938 0V4.44h1.086V9.3h-1.086"
102
+ ></path>F`},e)}function PH(e){return _e({a:{viewBox:"0 0 48 48"},c:`<path d="M0 0h48v48H0z" fill="none"/>
103
+ <path fill="#ffffff" d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"/>`},e)}var S6={},Ud={};Object.defineProperty(Ud,"__esModule",{value:!0});Ud.default=()=>{throw new Error("File system is not available")};var jd={},Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=(e,t,n)=>({confidence:n,name:t.name(e),lang:t.language?t.language():void 0});var YD=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jd,"__esModule",{value:!0});const Q2=YD(Eo);class XD{name(){return"ASCII"}match(t){const n=t.rawInput;for(let r=0;r<t.rawLen;r++){const i=n[r];if(i<32||i>126)return(0,Q2.default)(t,this,0)}return(0,Q2.default)(t,this,100)}}jd.default=XD;var Gd={},QD=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gd,"__esModule",{value:!0});const ZD=QD(Eo);class JD{name(){return"UTF-8"}match(t){let n=!1,r=0,i=0,o=0,a;const s=t.rawInput;t.rawLen>=3&&(s[0]&255)==239&&(s[1]&255)==187&&(s[2]&255)==191&&(n=!0);for(let l=0;l<t.rawLen;l++){const c=s[l];if(c&128){if((c&224)==192)o=1;else if((c&240)==224)o=2;else if((c&248)==240)o=3;else{if(i++,i>5)break;o=0}for(;l++,!(l>=t.rawLen);){if((s[l]&192)!=128){i++;break}if(--o==0){r++;break}}}}if(a=0,n&&i==0)a=100;else if(n&&r>i*10)a=80;else if(r>3&&i==0)a=100;else if(r>0&&i==0)a=80;else if(r==0&&i==0)a=10;else if(r>i*10)a=25;else return null;return(0,ZD.default)(t,this,a)}}Gd.default=JD;var ri={},e$=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ri,"__esModule",{value:!0});ri.UTF_32LE=ri.UTF_32BE=ri.UTF_16LE=ri.UTF_16BE=void 0;const Kd=e$(Eo);class t${name(){return"UTF-16BE"}match(t){const n=t.rawInput;return n.length>=2&&(n[0]&255)==254&&(n[1]&255)==255?(0,Kd.default)(t,this,100):null}}ri.UTF_16BE=t$;class n${name(){return"UTF-16LE"}match(t){const n=t.rawInput;return n.length>=2&&(n[0]&255)==255&&(n[1]&255)==254?n.length>=4&&n[2]==0&&n[3]==0?null:(0,Kd.default)(t,this,100):null}}ri.UTF_16LE=n$;class C6{name(){return"UTF-32"}getChar(t,n){return-1}match(t){let n=0,r=0,i=!1,o=0;const a=t.rawLen/4*4,s=t.rawInput;if(a==0)return null;this.getChar(s,0)==65279&&(i=!0);for(let l=0;l<a;l+=4){const c=this.getChar(s,l);c<0||c>=1114111||c>=55296&&c<=57343?r+=1:n+=1}return i&&r==0?o=100:i&&n>r*10?o=80:n>3&&r==0?o=100:n>0&&r==0?o=80:n>r*10&&(o=25),o==0?null:(0,Kd.default)(t,this,o)}}class r$ extends C6{name(){return"UTF-32BE"}getChar(t,n){return(t[n+0]&255)<<24|(t[n+1]&255)<<16|(t[n+2]&255)<<8|t[n+3]&255}}ri.UTF_32BE=r$;class i$ extends C6{name(){return"UTF-32LE"}getChar(t,n){return(t[n+3]&255)<<24|(t[n+2]&255)<<16|(t[n+1]&255)<<8|t[n+0]&255}}ri.UTF_32LE=i$;var br={},o$=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(br,"__esModule",{value:!0});br.gb_18030=br.euc_kr=br.euc_jp=br.big5=br.sjis=void 0;const a$=o$(Eo);function s$(e,t){const n=(r,i,o,a)=>{if(a<o)return-1;const s=Math.floor(o+a>>>1);return i>r[s]?n(r,i,s+1,a):i<r[s]?n(r,i,o,s-1):s};return n(e,t,0,e.length-1)}class l${constructor(){this.charValue=0,this.index=0,this.nextIndex=0,this.error=!1,this.done=!1}reset(){this.charValue=0,this.index=-1,this.nextIndex=0,this.error=!1,this.done=!1}nextByte(t){return this.nextIndex>=t.rawLen?(this.done=!0,-1):t.rawInput[this.nextIndex++]&255}}class kl{constructor(){this.commonChars=[]}name(){return"mbcs"}match(t){let n=0,r=0,i=0,o=0,a=0;const s=new l$;e:{for(s.reset();this.nextChar(s,t);){if(o++,s.error)i++;else{const l=s.charValue&4294967295;l>255&&(n++,this.commonChars!=null&&s$(this.commonChars,l)>=0&&r++)}if(i>=2&&i*5>=n)break e}if(n<=10&&i==0){n==0&&o<10?a=0:a=10;break e}if(n<20*i){a=0;break e}if(this.commonChars==null)a=30+n-20*i,a>100&&(a=100);else{const c=90/Math.log(n/4);a=Math.floor(Math.log(r+1)*c+10),a=Math.min(a,100)}}return a==0?null:(0,a$.default)(t,this,a)}nextChar(t,n){return!0}}class c$ extends kl{constructor(){super(...arguments),this.commonChars=[33088,33089,33090,33093,33115,33129,33130,33141,33142,33440,33442,33444,33449,33450,33451,33453,33455,33457,33459,33461,33463,33469,33470,33473,33476,33477,33478,33480,33481,33484,33485,33500,33504,33511,33512,33513,33514,33520,33521,33601,33603,33614,33615,33624,33630,33634,33639,33653,33654,33673,33674,33675,33677,33683,36502,37882,38314]}name(){return"Shift_JIS"}language(){return"ja"}nextChar(t,n){t.index=t.nextIndex,t.error=!1;const r=t.charValue=t.nextByte(n);if(r<0)return!1;if(r<=127||r>160&&r<=223)return!0;const i=t.nextByte(n);return i<0?!1:(t.charValue=r<<8|i,i>=64&&i<=127||i>=128&&i<=255||(t.error=!0),!0)}}br.sjis=c$;class u$ extends kl{constructor(){super(...arguments),this.commonChars=[41280,41281,41282,41283,41287,41289,41333,41334,42048,42054,42055,42056,42065,42068,42071,42084,42090,42092,42103,42147,42148,42151,42177,42190,42193,42207,42216,42237,42304,42312,42328,42345,42445,42471,42583,42593,42594,42600,42608,42664,42675,42681,42707,42715,42726,42738,42816,42833,42841,42970,43171,43173,43181,43217,43219,43236,43260,43456,43474,43507,43627,43706,43710,43724,43772,44103,44111,44208,44242,44377,44745,45024,45290,45423,45747,45764,45935,46156,46158,46412,46501,46525,46544,46552,46705,47085,47207,47428,47832,47940,48033,48593,49860,50105,50240,50271]}name(){return"Big5"}language(){return"zh"}nextChar(t,n){t.index=t.nextIndex,t.error=!1;const r=t.charValue=t.nextByte(n);if(r<0)return!1;if(r<=127||r==255)return!0;const i=t.nextByte(n);return i<0?!1:(t.charValue=t.charValue<<8|i,(i<64||i==127||i==255)&&(t.error=!0),!0)}}br.big5=u$;function w6(e,t){e.index=e.nextIndex,e.error=!1;let n=0,r=0,i=0;e:{if(n=e.charValue=e.nextByte(t),n<0){e.done=!0;break e}if(n<=141)break e;if(r=e.nextByte(t),e.charValue=e.charValue<<8|r,n>=161&&n<=254){r<161&&(e.error=!0);break e}if(n==142){r<161&&(e.error=!0);break e}n==143&&(i=e.nextByte(t),e.charValue=e.charValue<<8|i,i<161&&(e.error=!0))}return e.done==!1}class d$ extends kl{constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41382,41404,41418,41419,41430,41431,42146,42148,42150,42152,42154,42155,42156,42157,42159,42161,42163,42165,42167,42169,42171,42173,42175,42176,42177,42179,42180,42182,42183,42184,42185,42186,42187,42190,42191,42192,42206,42207,42209,42210,42212,42216,42217,42218,42219,42220,42223,42226,42227,42402,42403,42404,42406,42407,42410,42413,42415,42416,42419,42421,42423,42424,42425,42431,42435,42438,42439,42440,42441,42443,42448,42453,42454,42455,42462,42464,42465,42469,42473,42474,42475,42476,42477,42483,47273,47572,47854,48072,48880,49079,50410,50940,51133,51896,51955,52188,52689],this.nextChar=w6}name(){return"EUC-JP"}language(){return"ja"}}br.euc_jp=d$;class f$ extends kl{constructor(){super(...arguments),this.commonChars=[45217,45235,45253,45261,45268,45286,45293,45304,45306,45308,45496,45497,45511,45527,45538,45994,46011,46274,46287,46297,46315,46501,46517,46527,46535,46569,46835,47023,47042,47054,47270,47278,47286,47288,47291,47337,47531,47534,47564,47566,47613,47800,47822,47824,47857,48103,48115,48125,48301,48314,48338,48374,48570,48576,48579,48581,48838,48840,48863,48878,48888,48890,49057,49065,49088,49124,49131,49132,49144,49319,49327,49336,49338,49339,49341,49351,49356,49358,49359,49366,49370,49381,49403,49404,49572,49574,49590,49622,49631,49654,49656,50337,50637,50862,51151,51153,51154,51160,51173,51373],this.nextChar=w6}name(){return"EUC-KR"}language(){return"ko"}}br.euc_kr=f$;class h$ extends kl{constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41380,41392,41393,41457,41459,41889,41900,41914,45480,45496,45502,45755,46025,46070,46323,46525,46532,46563,46767,46804,46816,47010,47016,47037,47062,47069,47284,47327,47350,47531,47561,47576,47610,47613,47821,48039,48086,48097,48122,48316,48347,48382,48588,48845,48861,49076,49094,49097,49332,49389,49611,49883,50119,50396,50410,50636,50935,51192,51371,51403,51413,51431,51663,51706,51889,51893,51911,51920,51926,51957,51965,52460,52728,52906,52932,52946,52965,53173,53186,53206,53442,53445,53456,53460,53671,53930,53938,53941,53947,53972,54211,54224,54269,54466,54490,54754,54992]}name(){return"GB18030"}language(){return"zh"}nextChar(t,n){t.index=t.nextIndex,t.error=!1;let r=0,i=0,o=0,a=0;e:{if(r=t.charValue=t.nextByte(n),r<0){t.done=!0;break e}if(r<=128)break e;if(i=t.nextByte(n),t.charValue=t.charValue<<8|i,r>=129&&r<=254){if(i>=64&&i<=126||i>=80&&i<=254)break e;if(i>=48&&i<=57&&(o=t.nextByte(n),o>=129&&o<=254&&(a=t.nextByte(n),a>=48&&a<=57))){t.charValue=t.charValue<<16|o<<8|a;break e}t.error=!0;break e}}return t.done==!1}}br.gb_18030=h$;var Xt={},g$=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.KOI8_R=Xt.windows_1256=Xt.windows_1251=Xt.ISO_8859_9=Xt.ISO_8859_8=Xt.ISO_8859_7=Xt.ISO_8859_6=Xt.ISO_8859_5=Xt.ISO_8859_2=Xt.ISO_8859_1=void 0;const Z2=g$(Eo),m$=16777215;class J2{constructor(t,n){this.byteIndex=0,this.ngram=0,this.ngramCount=0,this.hitCount=0,this.spaceChar=32,this.ngramList=t,this.byteMap=n}search(t,n){let r=0;return t[r+32]<=n&&(r+=32),t[r+16]<=n&&(r+=16),t[r+8]<=n&&(r+=8),t[r+4]<=n&&(r+=4),t[r+2]<=n&&(r+=2),t[r+1]<=n&&(r+=1),t[r]>n&&(r-=1),r<0||t[r]!=n?-1:r}lookup(t){this.ngramCount+=1,this.search(this.ngramList,t)>=0&&(this.hitCount+=1)}addByte(t){this.ngram=(this.ngram<<8)+(t&255)&m$,this.lookup(this.ngram)}nextByte(t){return this.byteIndex>=t.inputLen?-1:t.inputBytes[this.byteIndex++]&255}parse(t,n){let r,i=!1;for(this.spaceChar=n;(r=this.nextByte(t))>=0;){const a=this.byteMap[r];a!=0&&(a==this.spaceChar&&i||this.addByte(a),i=a==this.spaceChar)}this.addByte(this.spaceChar);const o=this.hitCount/this.ngramCount;return o>.33?98:Math.floor(o*300)}}class Rn{constructor(t,n){this.fLang=t,this.fNGrams=n}}const p$=e=>Array.isArray(e)&&isFinite(e[0]);class li{constructor(){this.spaceChar=32,this.nGramLang=void 0}ngrams(){return[]}byteMap(){return[]}name(t){return"sbcs"}language(){return this.nGramLang}match(t){this.nGramLang=void 0;const n=this.ngrams();if(p$(n)){const o=new J2(n,this.byteMap()).parse(t,this.spaceChar);return o<=0?null:(0,Z2.default)(t,this,o)}let r=-1;for(let i=n.length-1;i>=0;i--){const o=n[i],s=new J2(o.fNGrams,this.byteMap()).parse(t,this.spaceChar);s>r&&(r=s,this.nGramLang=o.fLang)}return r<=0?null:(0,Z2.default)(t,this,r)}}class x$ extends li{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[new Rn("da",[2122086,2122100,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126697,2126708,2126953,2127465,6383136,6385184,6385252,6386208,6386720,6579488,6579566,6579570,6579572,6627443,6644768,6644837,6647328,6647396,6648352,6648421,6648608,6648864,6713202,6776096,6776174,6776178,6907749,6908960,6909543,7038240,7039845,7103858,7104871,7105637,7169380,7234661,7234848,7235360,7235429,7300896,7302432,7303712,7398688,7479396,7479397,7479411,7496992,7566437,7610483,7628064,7628146,7629164,7759218]),new Rn("de",[2122094,2122101,2122341,2122849,2122853,2122857,2123113,2123621,2123873,2124142,2125161,2126691,2126693,2127214,2127461,2127471,2127717,2128501,6448498,6514720,6514789,6514804,6578547,6579566,6579570,6580581,6627428,6627443,6646126,6646132,6647328,6648352,6648608,6776174,6841710,6845472,6906728,6907168,6909472,6909541,6911008,7104867,7105637,7217249,7217252,7217267,7234592,7234661,7234848,7235360,7235429,7238757,7479396,7496805,7497065,7562088,7566437,7610468,7628064,7628142,7628146,7695972,7695975,7759218]),new Rn("en",[2122016,2122094,2122341,2122607,2123375,2123873,2123877,2124142,2125153,2125670,2125938,2126437,2126689,2126708,2126952,2126959,2127720,6383972,6384672,6385184,6385252,6386464,6386720,6386789,6386793,6561889,6561908,6627425,6627443,6627444,6644768,6647412,6648352,6648608,6713202,6840692,6841632,6841714,6906912,6909472,6909543,6909806,6910752,7217249,7217268,7234592,7235360,7238688,7300640,7302688,7303712,7496992,7500576,7544929,7544948,7561577,7566368,7610484,7628146,7628897,7628901,7629167,7630624,7631648]),new Rn("es",[2122016,2122593,2122607,2122853,2123116,2123118,2123123,2124142,2124897,2124911,2125921,2125935,2125938,2126197,2126437,2126693,2127214,2128160,6365283,6365284,6365285,6365292,6365296,6382441,6382703,6384672,6386208,6386464,6515187,6516590,6579488,6579564,6582048,6627428,6627429,6627436,6646816,6647328,6647412,6648608,6648692,6907246,6943598,7102752,7106419,7217253,7238757,7282788,7282789,7302688,7303712,7303968,7364978,7435621,7495968,7497075,7544932,7544933,7544944,7562528,7628064,7630624,7693600,15953440]),new Rn("fr",[2122101,2122607,2122849,2122853,2122869,2123118,2123124,2124897,2124901,2125921,2125935,2125938,2126197,2126693,2126703,2127214,2154528,6385268,6386793,6513952,6516590,6579488,6579571,6583584,6627425,6627427,6627428,6627429,6627436,6627440,6627443,6647328,6647412,6648352,6648608,6648864,6649202,6909806,6910752,6911008,7102752,7103776,7103859,7169390,7217252,7234848,7238432,7238688,7302688,7302772,7304562,7435621,7479404,7496992,7544929,7544932,7544933,7544940,7544944,7610468,7628064,7629167,7693600,7696928]),new Rn("it",[2122092,2122600,2122607,2122853,2122857,2123040,2124140,2124142,2124897,2125925,2125938,2127214,6365283,6365284,6365296,6365299,6386799,6514789,6516590,6579564,6580512,6627425,6627427,6627428,6627433,6627436,6627440,6627443,6646816,6646892,6647412,6648352,6841632,6889569,6889571,6889572,6889587,6906144,6908960,6909472,6909806,7102752,7103776,7104800,7105633,7234848,7235872,7237408,7238757,7282785,7282788,7282793,7282803,7302688,7302757,7366002,7495968,7496992,7563552,7627040,7628064,7629088,7630624,8022383]),new Rn("nl",[2122092,2122341,2122849,2122853,2122857,2123109,2123118,2123621,2123877,2124142,2125153,2125157,2125680,2126949,2127457,2127461,2127471,2127717,2128489,6381934,6381938,6385184,6385252,6386208,6386720,6514804,6579488,6579566,6579570,6627426,6627446,6645102,6645106,6647328,6648352,6648435,6648864,6776174,6841716,6907168,6909472,6909543,6910752,7217250,7217252,7217253,7217256,7217263,7217270,7234661,7235360,7302756,7303026,7303200,7303712,7562088,7566437,7610468,7628064,7628142,7628146,7758190,7759218,7761775]),new Rn("no",[2122100,2122102,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126693,2126699,2126703,2126708,2126953,2127465,2155808,6385252,6386208,6386720,6579488,6579566,6579572,6627443,6644768,6647328,6647397,6648352,6648421,6648864,6648948,6713202,6776174,6908779,6908960,6909543,7038240,7039845,7103776,7105637,7169380,7169390,7217267,7234848,7235360,7235429,7237221,7300896,7302432,7303712,7398688,7479411,7496992,7565165,7566437,7610483,7628064,7628142,7628146,7629164,7631904,7631973,7759218]),new Rn("pt",[2122016,2122607,2122849,2122853,2122863,2123040,2123123,2125153,2125423,2125600,2125921,2125935,2125938,2126197,2126437,2126693,2127213,6365281,6365283,6365284,6365296,6382693,6382703,6384672,6386208,6386273,6386464,6516589,6516590,6578464,6579488,6582048,6582131,6627425,6627428,6647072,6647412,6648608,6648692,6906144,6906721,7169390,7238757,7238767,7282785,7282787,7282788,7282789,7282800,7303968,7364978,7435621,7495968,7497075,7544929,7544932,7544933,7544944,7566433,7628064,7630624,7693600,14905120,15197039]),new Rn("sv",[2122100,2122102,2122853,2123118,2123510,2123873,2124064,2124142,2124655,2125157,2125667,2126053,2126699,2126703,2126708,2126953,2127457,2127465,2155634,6382693,6385184,6385252,6386208,6386804,6514720,6579488,6579566,6579570,6579572,6644768,6647328,6648352,6648864,6747762,6776174,6909036,6909543,7037216,7105568,7169380,7217267,7233824,7234661,7235360,7235429,7235950,7299944,7302432,7302688,7398688,7479393,7479411,7495968,7564129,7565165,7610483,7627040,7628064,7628146,7629164,7631904,7758194,14971424,16151072])]}name(t){return t&&t.c1Bytes?"windows-1252":"ISO-8859-1"}}Xt.ISO_8859_1=x$;class b$ extends li{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,177,32,179,32,181,182,32,32,185,186,187,188,32,190,191,32,177,32,179,32,181,182,183,32,185,186,187,188,32,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,32]}ngrams(){return[new Rn("cs",[2122016,2122361,2122863,2124389,2125409,2125413,2125600,2125668,2125935,2125938,2126072,2126447,2126693,2126703,2126708,2126959,2127392,2127481,2128481,6365296,6513952,6514720,6627440,6627443,6627446,6647072,6647533,6844192,6844260,6910836,6972704,7042149,7103776,7104800,7233824,7268640,7269408,7269664,7282800,7300206,7301737,7304052,7304480,7304801,7368548,7368554,7369327,7403621,7562528,7565173,7566433,7566441,7566446,7628146,7630573,7630624,7676016,12477728,14773997,15296623,15540336,15540339,15559968,16278884]),new Rn("hu",[2122016,2122106,2122341,2123111,2123116,2123365,2123873,2123887,2124147,2124645,2124649,2124790,2124901,2125153,2125157,2125161,2125413,2126714,2126949,2156915,6365281,6365291,6365293,6365299,6384416,6385184,6388256,6447470,6448494,6645625,6646560,6646816,6646885,6647072,6647328,6648421,6648864,6648933,6648948,6781216,6844263,6909556,6910752,7020641,7075450,7169383,7170414,7217249,7233899,7234923,7234925,7238688,7300985,7544929,7567973,7567988,7568097,7596391,7610465,7631904,7659891,8021362,14773792,15299360]),new Rn("pl",[2122618,2122863,2124064,2124389,2124655,2125153,2125161,2125409,2125417,2125668,2125935,2125938,2126697,2127648,2127721,2127737,2128416,2128481,6365296,6365303,6385257,6514720,6519397,6519417,6582048,6584937,6627440,6627443,6627447,6627450,6645615,6646304,6647072,6647401,6778656,6906144,6907168,6907242,7037216,7039264,7039333,7170405,7233824,7235937,7235941,7282800,7305057,7305065,7368556,7369313,7369327,7369338,7502437,7502457,7563754,7564137,7566433,7825765,7955304,7957792,8021280,8022373,8026400,15955744]),new Rn("ro",[2122016,2122083,2122593,2122597,2122607,2122613,2122853,2122857,2124897,2125153,2125925,2125938,2126693,2126819,2127214,2144873,2158190,6365283,6365284,6386277,6386720,6386789,6386976,6513010,6516590,6518048,6546208,6579488,6627425,6627427,6627428,6627440,6627443,6644e3,6646048,6646885,6647412,6648692,6889569,6889571,6889572,6889584,6907168,6908192,6909472,7102752,7103776,7106418,7107945,7234848,7238770,7303712,7365998,7496992,7497057,7501088,7594784,7628064,7631477,7660320,7694624,7695392,12216608,15625760])]}name(t){return t&&t.c1Bytes?"windows-1250":"ISO-8859-2"}}Xt.ISO_8859_2=b$;class _$ extends li{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255]}ngrams(){return[2150944,2151134,2151646,2152400,2152480,2153168,2153182,2153936,2153941,2154193,2154462,2154464,2154704,2154974,2154978,2155230,2156514,2158050,13688280,13689580,13884960,14015468,14015960,14016994,14017056,14164191,14210336,14211104,14216992,14407133,14407712,14413021,14536736,14538016,14538965,14538991,14540320,14540498,14557394,14557407,14557409,14602784,14602960,14603230,14604576,14605292,14605344,14606818,14671579,14672085,14672088,14672094,14733522,14734804,14803664,14803666,14803672,14806816,14865883,14868e3,14868192,14871584,15196894,15459616]}name(){return"ISO-8859-5"}language(){return"ru"}}Xt.ISO_8859_5=_$;class v$ extends li{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]}ngrams(){return[2148324,2148326,2148551,2152932,2154986,2155748,2156006,2156743,13050055,13091104,13093408,13095200,13100064,13100227,13100231,13100232,13100234,13100236,13100237,13100239,13100243,13100249,13100258,13100261,13100264,13100266,13100320,13100576,13100746,13115591,13181127,13181153,13181156,13181157,13181160,13246663,13574343,13617440,13705415,13748512,13836487,14229703,14279913,14805536,14950599,14993696,15001888,15002144,15016135,15058720,15059232,15066656,15081671,15147207,15189792,15255524,15263264,15278279,15343815,15343845,15343848,15386912,15388960,15394336]}name(){return"ISO-8859-6"}language(){return"ar"}}Xt.ISO_8859_6=v$;class E$ extends li{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,161,162,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,220,32,221,222,223,32,252,32,253,254,192,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,32,243,244,245,246,247,248,249,250,251,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,32]}ngrams(){return[2154989,2154992,2155497,2155753,2156016,2156320,2157281,2157797,2158049,2158368,2158817,2158831,2158833,2159604,2159605,2159847,2159855,14672160,14754017,14754036,14805280,14806304,14807292,14807584,14936545,15067424,15069728,15147252,15199520,15200800,15278324,15327520,15330014,15331872,15393257,15393268,15525152,15540449,15540453,15540464,15589664,15725088,15725856,15790069,15790575,15793184,15868129,15868133,15868138,15868144,15868148,15983904,15984416,15987951,16048416,16048617,16050157,16050162,16050666,16052e3,16052213,16054765,16379168,16706848]}name(t){return t&&t.c1Bytes?"windows-1253":"ISO-8859-7"}language(){return"el"}}Xt.ISO_8859_7=E$;class T$ extends li{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,32,32,32,32,32]}ngrams(){return[new Rn("he",[2154725,2154727,2154729,2154746,2154985,2154990,2155744,2155749,2155753,2155758,2155762,2155769,2155770,2157792,2157796,2158304,2159340,2161132,14744096,14950624,14950625,14950628,14950636,14950638,14950649,15001056,15065120,15068448,15068960,15071264,15071776,15278308,15328288,15328762,15329773,15330592,15331104,15333408,15333920,15474912,15474916,15523872,15524896,15540448,15540449,15540452,15540460,15540462,15540473,15655968,15671524,15787040,15788320,15788525,15920160,16261348,16312813,16378912,16392416,16392417,16392420,16392428,16392430,16392441]),new Rn("he",[2154725,2154732,2155753,2155756,2155758,2155760,2157040,2157810,2157817,2158053,2158057,2158565,2158569,2160869,2160873,2161376,2161381,2161385,14688484,14688492,14688493,14688506,14738464,14738916,14740512,14741024,14754020,14754029,14754042,14950628,14950633,14950636,14950637,14950639,14950648,14950650,15002656,15065120,15066144,15196192,15327264,15327520,15328288,15474916,15474925,15474938,15528480,15530272,15591913,15591920,15591928,15605988,15605997,15606010,15655200,15655968,15918112,16326884,16326893,16326906,16376864,16441376,16442400,16442857])]}name(t){return t&&t.c1Bytes?"windows-1255":"ISO-8859-8"}language(){return"he"}}Xt.ISO_8859_8=T$;class y$ extends li{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,105,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[2122337,2122345,2122357,2122849,2122853,2123621,2123873,2124140,2124641,2124655,2125153,2125676,2126689,2126945,2127461,2128225,6365282,6384416,6384737,6384993,6385184,6385405,6386208,6386273,6386429,6386685,6388065,6449522,6578464,6579488,6580512,6627426,6627435,6644841,6647328,6648352,6648425,6648681,6909029,6909472,6909545,6910496,7102830,7102834,7103776,7103858,7217249,7217250,7217259,7234657,7234661,7234848,7235872,7235950,7273760,7498094,7535982,7759136,7954720,7958386,16608800,16608868,16609021,16642301]}name(t){return t&&t.c1Bytes?"windows-1254":"ISO-8859-9"}language(){return"tr"}}Xt.ISO_8859_9=y$;class S$ extends li{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,144,131,32,131,32,32,32,32,32,32,154,32,156,157,158,159,144,32,32,32,32,32,32,32,32,32,154,32,156,157,158,159,32,162,162,188,32,180,32,32,184,32,186,32,32,32,32,191,32,32,179,179,180,181,32,32,184,32,186,32,188,190,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}ngrams(){return[2155040,2155246,2155758,2156512,2156576,2157280,2157294,2158048,2158053,2158305,2158574,2158576,2158816,2159086,2159090,2159342,2160626,2162162,14740968,14742268,14937632,15068156,15068648,15069682,15069728,15212783,15263008,15263776,15269664,15459821,15460384,15465709,15589408,15590688,15591653,15591679,15592992,15593186,15605986,15605999,15606001,15655456,15655648,15655918,15657248,15657980,15658016,15659506,15724267,15724773,15724776,15724782,15786210,15787492,15856352,15856354,15856360,15859488,15918571,15920672,15920880,15924256,16249582,16512288]}name(){return"windows-1251"}language(){return"ru"}}Xt.windows_1251=S$;class C$ extends li{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,129,32,131,32,32,32,32,136,32,138,32,156,141,142,143,144,32,32,32,32,32,32,32,152,32,154,32,156,32,32,159,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,32,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,32,32,32,244,32,32,32,32,249,32,251,252,32,32,255]}ngrams(){return[2148321,2148324,2148551,2153185,2153965,2154977,2155492,2156231,13050055,13091104,13093408,13095200,13099296,13099459,13099463,13099464,13099466,13099468,13099469,13099471,13099475,13099482,13099486,13099491,13099494,13099501,13099808,13100064,13100234,13115591,13181127,13181149,13181153,13181155,13181158,13246663,13574343,13617440,13705415,13748512,13836487,14295239,14344684,14544160,14753991,14797088,14806048,14806304,14885063,14927648,14928160,14935072,14950599,15016135,15058720,15124449,15131680,15474887,15540423,15540451,15540454,15583520,15585568,15590432]}name(){return"windows-1256"}language(){return"ar"}}Xt.windows_1256=C$;class w$ extends li{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223]}ngrams(){return[2147535,2148640,2149313,2149327,2150081,2150085,2150338,2150607,2150610,2151105,2151375,2151380,2151631,2152224,2152399,2153153,2153684,2154196,12701385,12702936,12963032,12963529,12964820,12964896,13094688,13181136,13223200,13224224,13226272,13419982,13420832,13424846,13549856,13550880,13552069,13552081,13553440,13553623,13574352,13574355,13574359,13617103,13617696,13618392,13618464,13620180,13621024,13621185,13684684,13685445,13685449,13685455,13812183,13813188,13881632,13882561,13882569,13882583,13944268,13946656,13946834,13948960,14272544,14603471]}name(){return"KOI8-R"}language(){return"ru"}}Xt.KOI8_R=w$;var co={},A$=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(co,"__esModule",{value:!0});co.ISO_2022_CN=co.ISO_2022_KR=co.ISO_2022_JP=void 0;const k$=A$(Eo);class Wd{constructor(){this.escapeSequences=[]}name(){return"ISO_2022"}match(t){let n,r,i,o=0,a=0,s=0,l;const c=t.inputBytes,u=t.inputLen;e:for(n=0;n<u;n++){if(c[n]==27){t:for(i=0;i<this.escapeSequences.length;i++){const f=this.escapeSequences[i];if(u-n<f.length)continue t;for(r=1;r<f.length;r++)if(f[r]!=c[n+r])continue t;o++,n+=f.length-1;continue e}a++}(c[n]==14||c[n]==15)&&s++}return o==0?null:(l=(100*o-100*a)/(o+a),o+s<5&&(l-=(5-(o+s))*10),l<=0?null:(0,k$.default)(t,this,l))}}class O$ extends Wd{constructor(){super(...arguments),this.escapeSequences=[[27,36,40,67],[27,36,40,68],[27,36,64],[27,36,65],[27,36,66],[27,38,64],[27,40,66],[27,40,72],[27,40,73],[27,40,74],[27,46,65],[27,46,70]]}name(){return"ISO-2022-JP"}language(){return"ja"}}co.ISO_2022_JP=O$;class N$ extends Wd{constructor(){super(...arguments),this.escapeSequences=[[27,36,41,67]]}name(){return"ISO-2022-KR"}language(){return"kr"}}co.ISO_2022_KR=N$;class I$ extends Wd{constructor(){super(...arguments),this.escapeSequences=[[27,36,41,65],[27,36,41,71],[27,36,42,72],[27,36,41,69],[27,36,43,73],[27,36,43,74],[27,36,43,75],[27,36,43,76],[27,36,43,77],[27,78],[27,79]]}name(){return"ISO-2022-CN"}language(){return"zh"}}co.ISO_2022_CN=I$;var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});Fc.isByteArray=void 0;const R$=e=>e==null||typeof e!="object"?!1:isFinite(e.length)&&e.length>=0;Fc.isByteArray=R$;(function(e){var t=It&&It.__createBinding||(Object.create?function(E,v,N,I){I===void 0&&(I=N);var S=Object.getOwnPropertyDescriptor(v,N);(!S||("get"in S?!v.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return v[N]}}),Object.defineProperty(E,I,S)}:function(E,v,N,I){I===void 0&&(I=N),E[I]=v[N]}),n=It&&It.__setModuleDefault||(Object.create?function(E,v){Object.defineProperty(E,"default",{enumerable:!0,value:v})}:function(E,v){E.default=v}),r=It&&It.__importStar||function(E){if(E&&E.__esModule)return E;var v={};if(E!=null)for(var N in E)N!=="default"&&Object.prototype.hasOwnProperty.call(E,N)&&t(v,E,N);return n(v,E),v},i=It&&It.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0}),e.detectFileSync=e.detectFile=e.analyse=e.detect=void 0;const o=i(Ud),a=i(jd),s=i(Gd),l=r(ri),c=r(br),u=r(Xt),f=r(co),g=Fc,d=[new s.default,new l.UTF_16BE,new l.UTF_16LE,new l.UTF_32BE,new l.UTF_32LE,new c.sjis,new c.big5,new c.euc_jp,new c.euc_kr,new c.gb_18030,new f.ISO_2022_JP,new f.ISO_2022_KR,new f.ISO_2022_CN,new u.ISO_8859_1,new u.ISO_8859_2,new u.ISO_8859_5,new u.ISO_8859_6,new u.ISO_8859_7,new u.ISO_8859_8,new u.ISO_8859_9,new u.windows_1251,new u.windows_1256,new u.KOI8_R,new a.default],h=E=>{const v=(0,e.analyse)(E);return v.length>0?v[0].name:null};e.detect=h;const m=E=>{if(!(0,g.isByteArray)(E))throw new Error("Input must be a byte array, e.g. Buffer or Uint8Array");const v=[];for(let y=0;y<256;y++)v[y]=0;for(let y=E.length-1;y>=0;y--)v[E[y]&255]++;let N=!1;for(let y=128;y<=159;y+=1)if(v[y]!==0){N=!0;break}const I={byteStats:v,c1Bytes:N,rawInput:E,rawLen:E.length,inputBytes:E,inputLen:E.length};return d.map(y=>y.match(I)).filter(y=>!!y).sort((y,O)=>O.confidence-y.confidence)};e.analyse=m;const p=(E,v={})=>new Promise((N,I)=>{let S;const y=(0,o.default)(),O=(M,j)=>{S&&y.closeSync(S),M?I(M):N((0,e.detect)(j))};if(v&&v.sampleSize){S=y.openSync(E,"r");const M=Buffer.allocUnsafe(v.sampleSize);y.read(S,M,0,v.sampleSize,v.offset,j=>{O(j,M)});return}y.readFile(E,O)});e.detectFile=p;const b=(E,v={})=>{const N=(0,o.default)();if(v&&v.sampleSize){const I=N.openSync(E,"r"),S=Buffer.allocUnsafe(v.sampleSize);return N.readSync(I,S,0,v.sampleSize,v.offset),N.closeSync(I),(0,e.detect)(S)}return(0,e.detect)(N.readFileSync(E))};e.detectFileSync=b,e.default={analyse:e.analyse,detect:e.detect,detectFileSync:e.detectFileSync,detectFile:e.detectFile}})(S6);const M$=mo(S6);function L$(e){const t=["utf-8","gbk","gb18030","ibm866","iso-8859-2","iso-8859-3","iso-8859-4","iso-8859-5","iso-8859-6","iso-8859-7","iso-8859-8","iso-8859-8i","iso-8859-10","iso-8859-13","iso-8859-14","iso-8859-15","iso-8859-16","koi8-r","koi8-u","macintosh","windows-874","windows-1250","windows-1251","windows-1252","windows-1253","windows-1254","windows-1255","windows-1256","windows-1257","windows-1258","x-mac-cyrillic","big5","euc-jp","iso-2022-jp","shift_jis","euc-kr","iso-2022-kr","utf-16be","utf-16le","x-user-defined","iso-2022-cn"];return tn(()=>{if(e.referenceText){let n;typeof e.referenceText=="string"?n=new TextEncoder().encode(e.referenceText):n=new Uint8Array(e.referenceText);for(let r of M$.analyse(n)){const i=r.name.toLowerCase();if(t.includes(i)){e.setEncoding(i);return}}}}),T(De,{pos:"absolute",right:0,top:0,w:"$36",opacity:.15,_hover:{opacity:1},zIndex:1,get children(){return T(UD,{get options(){return t.map(n=>({label:n.toLocaleUpperCase(),value:n}))},get value(){return e.encoding},onChange:n=>e.setEncoding(n)})}})}function Hc(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 00-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282z"/><path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 00-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282z"/>'},e)}function DH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path fill-rule="evenodd" d="M1 11.5a.5.5 0 00.5.5h11.793l-3.147 3.146a.5.5 0 00.708.708l4-4a.5.5 0 000-.708l-4-4a.5.5 0 00-.708.708L13.293 11H1.5a.5.5 0 00-.5.5zm14-7a.5.5 0 01-.5.5H2.707l3.147 3.146a.5.5 0 11-.708.708l-4-4a.5.5 0 010-.708l4-4a.5.5 0 11.708.708L2.707 4H14.5a.5.5 0 01.5.5z"/>'},e)}function $H(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M2.522 5H2a.5.5 0 00-.494.574l1.372 9.149A1.5 1.5 0 004.36 16h7.278a1.5 1.5 0 001.483-1.277l1.373-9.149A.5.5 0 0014 5h-.522A5.5 5.5 0 002.522 5zm1.005 0a4.5 4.5 0 018.945 0H3.527zm9.892 1l-1.286 8.574a.5.5 0 01-.494.426H4.36a.5.5 0 01-.494-.426L2.58 6h10.838z"/>'},e)}function BH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M10.5 8.5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z"/><path d="M2 4a2 2 0 00-2 2v6a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1.172a2 2 0 01-1.414-.586l-.828-.828A2 2 0 009.172 2H6.828a2 2 0 00-1.414.586l-.828.828A2 2 0 013.172 4H2zm.5 2a.5.5 0 110-1 .5.5 0 010 1zm9 2.5a3.5 3.5 0 11-7 0 3.5 3.5 0 017 0z"/>'},e)}function FH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M6.002 5.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z"/><path d="M1.5 2A1.5 1.5 0 000 3.5v9A1.5 1.5 0 001.5 14h13a1.5 1.5 0 001.5-1.5v-9A1.5 1.5 0 0014.5 2h-13zm13 1a.5.5 0 01.5.5v6l-3.775-1.947a.5.5 0 00-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 00-.63.062L1.002 12v.54A.505.505 0 011 12.5v-9a.5.5 0 01.5-.5h13z"/>'},e)}function HH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path fill-rule="evenodd" d="M8 0a5.53 5.53 0 00-3.594 1.342c-.766.66-1.321 1.52-1.464 2.383C1.266 4.095 0 5.555 0 7.318 0 9.366 1.708 11 3.781 11H7.5V5.707L5.354 7.854a.5.5 0 11-.708-.708l3-3a.5.5 0 01.708 0l3 3a.5.5 0 01-.708.708L8.5 5.707V11h4.188C14.502 11 16 9.57 16 7.773c0-1.636-1.242-2.969-2.834-3.194C12.923 1.999 10.69 0 8 0zm-.5 14.5V11h1v3.5a.5.5 0 01-1 0z"/>'},e)}function Vd(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V4.707A1 1 0 0013.707 4L10 .293A1 1 0 009.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 01-1-1zM5.884 6.68L8 9.219l2.116-2.54a.5.5 0 11.768.641L8.651 10l2.233 2.68a.5.5 0 01-.768.64L8 10.781l-2.116 2.54a.5.5 0 01-.768-.641L7.349 10 5.116 7.32a.5.5 0 11.768-.64z"/>'},e)}function pn(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V4.707A1 1 0 0013.707 4L10 .293A1 1 0 009.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 01-1-1zM5.057 6h5.886L11 8h-.5c-.18-1.096-.356-1.192-1.694-1.235l-.298-.01v5.09c0 .47.1.582.903.655v.5H6.59v-.5c.799-.073.898-.184.898-.654V6.755l-.293.01C5.856 6.808 5.68 6.905 5.5 8H5l.057-2z"/>'},e)}function Nr(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M4 0h5.293A1 1 0 0110 .293L13.707 4a1 1 0 01.293.707v5.586l-2.73-2.73a1 1 0 00-1.52.127l-1.889 2.644-1.769-1.062a1 1 0 00-1.222.15L2 12.292V2a2 2 0 012-2zm5.5 1.5v2a1 1 0 001 1h2l-3-3zm-1.498 4a1.5 1.5 0 10-3 0 1.5 1.5 0 003 0z"/><path d="M10.564 8.27L14 11.708V14a2 2 0 01-2 2H4a2 2 0 01-2-2v-.293l3.578-3.577 2.56 1.536 2.426-3.395z"/>'},e)}function Hi(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V4.707A1 1 0 0013.707 4L10 .293A1 1 0 009.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 01-1-1zM6 8.5h4a.5.5 0 010 1H6a.5.5 0 010-1z"/>'},e)}function ci(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V4.707A1 1 0 0013.707 4L10 .293A1 1 0 009.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 01-1-1zM11 6.64v1.75l-2 .5v3.61c0 .495-.301.883-.662 1.123C7.974 13.866 7.499 14 7 14c-.5 0-.974-.134-1.338-.377-.36-.24-.662-.628-.662-1.123s.301-.883.662-1.123C6.026 11.134 6.501 11 7 11c.356 0 .7.068 1 .196V6.89a1 1 0 01.757-.97l1-.25A1 1 0 0111 6.64z"/>'},e)}function qd(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M5.523 12.424c.14-.082.293-.162.459-.238a7.878 7.878 0 01-.45.606c-.28.337-.498.516-.635.572a.266.266 0 01-.035.012.282.282 0 01-.026-.044c-.056-.11-.054-.216.04-.36.106-.165.319-.354.647-.548zm2.455-1.647c-.119.025-.237.05-.356.078a21.148 21.148 0 00.5-1.05 12.045 12.045 0 00.51.858c-.217.032-.436.07-.654.114zm2.525.939a3.881 3.881 0 01-.435-.41c.228.005.434.022.612.054.317.057.466.147.518.209a.095.095 0 01.026.064.436.436 0 01-.06.2.307.307 0 01-.094.124.107.107 0 01-.069.015c-.09-.003-.258-.066-.498-.256zM8.278 6.97c-.04.244-.108.524-.2.829a4.86 4.86 0 01-.089-.346c-.076-.353-.087-.63-.046-.822.038-.177.11-.248.196-.283a.517.517 0 01.145-.04c.013.03.028.092.032.198.005.122-.007.277-.038.465z"/><path fill-rule="evenodd" d="M4 0h5.293A1 1 0 0110 .293L13.707 4a1 1 0 01.293.707V14a2 2 0 01-2 2H4a2 2 0 01-2-2V2a2 2 0 012-2zm5.5 1.5v2a1 1 0 001 1h2l-3-3zM4.165 13.668c.09.18.23.343.438.419.207.075.412.04.58-.03.318-.13.635-.436.926-.786.333-.401.683-.927 1.021-1.51a11.651 11.651 0 011.997-.406c.3.383.61.713.91.95.28.22.603.403.934.417a.856.856 0 00.51-.138c.155-.101.27-.247.354-.416.09-.181.145-.37.138-.563a.844.844 0 00-.2-.518c-.226-.27-.596-.4-.96-.465a5.76 5.76 0 00-1.335-.05 10.954 10.954 0 01-.98-1.686c.25-.66.437-1.284.52-1.794.036-.218.055-.426.048-.614a1.238 1.238 0 00-.127-.538.7.7 0 00-.477-.365c-.202-.043-.41 0-.601.077-.377.15-.576.47-.651.823-.073.34-.04.736.046 1.136.088.406.238.848.43 1.295a19.697 19.697 0 01-1.062 2.227 7.662 7.662 0 00-1.482.645c-.37.22-.699.48-.897.787-.21.326-.275.714-.08 1.103z"/>'},e)}function ui(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V4.707A1 1 0 0013.707 4L10 .293A1 1 0 009.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 01-1-1zM6 6.883a.5.5 0 01.757-.429l3.528 2.117a.5.5 0 010 .858l-3.528 2.117a.5.5 0 01-.757-.43V6.884z"/>'},e)}function Yd(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M8.188 10H7V6.5h1.188a1.75 1.75 0 110 3.5z"/><path d="M4 0h5.293A1 1 0 0110 .293L13.707 4a1 1 0 01.293.707V14a2 2 0 01-2 2H4a2 2 0 01-2-2V2a2 2 0 012-2zm5.5 1.5v2a1 1 0 001 1h2l-3-3zM7 5.5a1 1 0 00-1 1V13a.5.5 0 001 0v-2h1.188a2.75 2.75 0 000-5.5H7z"/>'},e)}function zc(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.293 0H4a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V4.707A1 1 0 0013.707 4L10 .293A1 1 0 009.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 01-1-1zM5.485 6.879l1.036 4.144.997-3.655a.5.5 0 01.964 0l.997 3.655 1.036-4.144a.5.5 0 01.97.242l-1.5 6a.5.5 0 01-.967.01L8 9.402l-1.018 3.73a.5.5 0 01-.967-.01l-1.5-6a.5.5 0 11.97-.242z"/>'},e)}function os(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M5.5 9.438V8.5h1v.938a1 1 0 00.03.243l.4 1.598-.93.62-.93-.62.4-1.598a1 1 0 00.03-.243z"/><path d="M9.293 0H4a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V4.707A1 1 0 0013.707 4L10 .293A1 1 0 009.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 01-1-1zm-4-.5V2h-1V1H6v1h1v1H6v1h1v1H6v1h1v1H5.5V6h-1V5h1V4h-1V3h1zm0 4.5h1a1 1 0 011 1v.938l.4 1.599a1 1 0 01-.416 1.074l-.93.62a1 1 0 01-1.109 0l-.93-.62a1 1 0 01-.415-1.074l.4-1.599V8.5a1 1 0 011-1z"/>'},e)}function zH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M8.06 6.5a.5.5 0 01.5.5v.776a11.5 11.5 0 01-.552 3.519l-1.331 4.14a.5.5 0 01-.952-.305l1.33-4.141a10.5 10.5 0 00.504-3.213V7a.5.5 0 01.5-.5z"/><path d="M6.06 7a2 2 0 114 0 .5.5 0 11-1 0 1 1 0 10-2 0v.332c0 .409-.022.816-.066 1.221A.5.5 0 016 8.447c.04-.37.06-.742.06-1.115V7zm3.509 1a.5.5 0 01.487.513 11.5 11.5 0 01-.587 3.339l-1.266 3.8a.5.5 0 01-.949-.317l1.267-3.8a10.5 10.5 0 00.535-3.048A.5.5 0 019.569 8zm-3.356 2.115a.5.5 0 01.33.626L5.24 14.939a.5.5 0 11-.955-.296l1.303-4.199a.5.5 0 01.625-.329z"/><path d="M4.759 5.833A3.501 3.501 0 0111.559 7a.5.5 0 01-1 0 2.5 2.5 0 00-4.857-.833.5.5 0 11-.943-.334zm.3 1.67a.5.5 0 01.449.546 10.72 10.72 0 01-.4 2.031l-1.222 4.072a.5.5 0 11-.958-.287L4.15 9.793a9.72 9.72 0 00.363-1.842.5.5 0 01.546-.449zm6 .647a.5.5 0 01.5.5c0 1.28-.213 2.552-.632 3.762l-1.09 3.145a.5.5 0 01-.944-.327l1.089-3.145c.382-1.105.578-2.266.578-3.435a.5.5 0 01.5-.5z"/><path d="M3.902 4.222a4.996 4.996 0 015.202-2.113.5.5 0 01-.208.979 3.996 3.996 0 00-4.163 1.69.5.5 0 01-.831-.556zm6.72-.955a.5.5 0 01.705-.052A4.99 4.99 0 0113.059 7v1.5a.5.5 0 11-1 0V7a3.99 3.99 0 00-1.386-3.028.5.5 0 01-.051-.705zM3.68 5.842a.5.5 0 01.422.568c-.029.192-.044.39-.044.59 0 .71-.1 1.417-.298 2.1l-1.14 3.923a.5.5 0 11-.96-.279L2.8 8.821A6.531 6.531 0 003.058 7c0-.25.019-.496.054-.736a.5.5 0 01.568-.422zm8.882 3.66a.5.5 0 01.456.54c-.084 1-.298 1.986-.64 2.934l-.744 2.068a.5.5 0 01-.941-.338l.745-2.07a10.51 10.51 0 00.584-2.678.5.5 0 01.54-.456z"/><path d="M4.81 1.37A6.5 6.5 0 0114.56 7a.5.5 0 11-1 0 5.5 5.5 0 00-8.25-4.765.5.5 0 01-.5-.865zm-.89 1.257a.5.5 0 01.04.706A5.478 5.478 0 002.56 7a.5.5 0 01-1 0c0-1.664.626-3.184 1.655-4.333a.5.5 0 01.706-.04zM1.915 8.02a.5.5 0 01.346.616l-.779 2.767a.5.5 0 11-.962-.27l.778-2.767a.5.5 0 01.617-.346zm12.15.481a.5.5 0 01.49.51c-.03 1.499-.161 3.025-.727 4.533l-.07.187a.5.5 0 01-.936-.351l.07-.187c.506-1.35.634-2.74.663-4.202a.5.5 0 01.51-.49z"/>'},e)}function UH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M0 2a2 2 0 012-2h8a2 2 0 012 2v2h2a2 2 0 012 2v8a2 2 0 01-2 2H6a2 2 0 01-2-2v-2H2a2 2 0 01-2-2V2zm5 10v2a1 1 0 001 1h8a1 1 0 001-1V6a1 1 0 00-1-1h-2v5a2 2 0 01-2 2H5z"/>'},e)}function jH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 01-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 01.872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 012.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 012.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 01.872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 01-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 01-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 110-5.86 2.929 2.929 0 010 5.858z"/>'},e)}function GH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M1 2.5A1.5 1.5 0 012.5 1h3A1.5 1.5 0 017 2.5v3A1.5 1.5 0 015.5 7h-3A1.5 1.5 0 011 5.5v-3zm8 0A1.5 1.5 0 0110.5 1h3A1.5 1.5 0 0115 2.5v3A1.5 1.5 0 0113.5 7h-3A1.5 1.5 0 019 5.5v-3zm-8 8A1.5 1.5 0 012.5 9h3A1.5 1.5 0 017 10.5v3A1.5 1.5 0 015.5 15h-3A1.5 1.5 0 011 13.5v-3zm8 0A1.5 1.5 0 0110.5 9h3a1.5 1.5 0 011.5 1.5v3a1.5 1.5 0 01-1.5 1.5h-3A1.5 1.5 0 019 13.5v-3z"/>'},e)}function KH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M4.5 5a.5.5 0 100-1 .5.5 0 000 1zM3 4.5a.5.5 0 11-1 0 .5.5 0 011 0z"/><path d="M0 4a2 2 0 012-2h12a2 2 0 012 2v1a2 2 0 01-2 2H8.5v3a1.5 1.5 0 011.5 1.5h5.5a.5.5 0 010 1H10A1.5 1.5 0 018.5 14h-1A1.5 1.5 0 016 12.5H.5a.5.5 0 010-1H6A1.5 1.5 0 017.5 10V7H2a2 2 0 01-2-2V4zm1 0v1a1 1 0 001 1h12a1 1 0 001-1V4a1 1 0 00-1-1H2a1 1 0 00-1 1zm6 7.5v1a.5.5 0 00.5.5h1a.5.5 0 00.5-.5v-1a.5.5 0 00-.5-.5h-1a.5.5 0 00-.5.5z"/>'},e)}function WH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M10 2a2 2 0 01-1.5 1.937v5.087c.863.083 1.5.377 1.5.726 0 .414-.895.75-2 .75s-2-.336-2-.75c0-.35.637-.643 1.5-.726V3.937A2 2 0 1110 2z"/><path d="M0 9.665v1.717a1 1 0 00.553.894l6.553 3.277a2 2 0 001.788 0l6.553-3.277a1 1 0 00.553-.894V9.665c0-.1-.06-.19-.152-.23L9.5 6.715v.993l5.227 2.178a.125.125 0 01.001.23l-5.94 2.546a2 2 0 01-1.576 0l-5.94-2.546a.125.125 0 01.001-.23L6.5 7.708l-.013-.988L.152 9.435a.25.25 0 00-.152.23z"/>'},e)}function P$(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M0 4a2 2 0 012-2h12a2 2 0 012 2v8a2 2 0 01-2 2H2a2 2 0 01-2-2V4zm11.5 1a.5.5 0 00-.5.5v3.793L9.854 8.146a.5.5 0 10-.708.708l2 2a.5.5 0 00.708 0l2-2a.5.5 0 00-.708-.708L12 9.293V5.5a.5.5 0 00-.5-.5zM3.56 7.01h.056l1.428 3.239h.774l1.42-3.24h.056V11h1.073V5.001h-1.2l-1.71 3.894h-.039l-1.71-3.894H2.5V11h1.06V7.01z"/>'},e)}function VH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M9.025 8c0 2.485-2.02 4.5-4.513 4.5A4.506 4.506 0 010 8c0-2.486 2.02-4.5 4.512-4.5A4.506 4.506 0 019.025 8zm4.95 0c0 2.34-1.01 4.236-2.256 4.236-1.246 0-2.256-1.897-2.256-4.236 0-2.34 1.01-4.236 2.256-4.236 1.246 0 2.256 1.897 2.256 4.236zM16 8c0 2.096-.355 3.795-.794 3.795-.438 0-.793-1.7-.793-3.795 0-2.096.355-3.795.794-3.795.438 0 .793 1.699.793 3.795z"/>'},e)}function qH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"/>'},e)}function YH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M12.433 10.07C14.133 10.585 16 11.15 16 8a8 8 0 10-8 8c1.996 0 1.826-1.504 1.649-3.08-.124-1.101-.252-2.237.351-2.92.465-.527 1.42-.237 2.433.07zM8 5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm4.5 3a1.5 1.5 0 110-3 1.5 1.5 0 010 3zM5 6.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zm.5 6.5a1.5 1.5 0 110-3 1.5 1.5 0 010 3z"/>'},e)}function XH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M11 6a3 3 0 11-6 0 3 3 0 016 0z"/><path fill-rule="evenodd" d="M0 8a8 8 0 1116 0A8 8 0 010 8zm8-7a7 7 0 00-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 008 1z"/>'},e)}function QH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M16 8A8 8 0 110 8a8 8 0 0116 0zM6.79 5.093A.5.5 0 006 5.5v5a.5.5 0 00.79.407l3.5-2.5a.5.5 0 000-.814l-3.5-2.5z"/>'},e)}function ZH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M8 4a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 018 4z"/>'},e)}function JH(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M2 2h2v2H2V2z"/><path d="M6 0v6H0V0h6zM5 1H1v4h4V1zM4 12H2v2h2v-2z"/><path d="M6 10v6H0v-6h6zm-5 1v4h4v-4H1zm11-9h2v2h-2V2z"/><path d="M10 0v6h6V0h-6zm5 1v4h-4V1h4zM8 1V0h1v2H8v2H7V1h1zm0 5V4h1v2H8zM6 8V7h1V6h1v2h1V7h5v1h-4v1H7V8H6zm0 0v1H2V8H1v1H0V7h3v1h3zm10 1h-1V7h1v2zm-1 0h-1v2h2v-1h-1V9zm-4 0h2v1h-1v1h-1V9zm2 3v-1h-1v1h-1v1H9v1h3v-2h1zm0 0h3v1h-2v1h-1v-2zm-4-1v1h1v-2H7v1h2z"/><path d="M7 12h1v3h4v1H7v-4zm9 2v2h-3v-1h2v-1h1z"/>'},e)}function D$(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M11.742 10.344a6.5 6.5 0 10-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 001.415-1.414l-3.85-3.85a1.007 1.007 0 00-.115-.1zM12 6.5a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z"/>'},e)}function ez(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M2.5 4a.5.5 0 100-1 .5.5 0 000 1zm2-.5a.5.5 0 11-1 0 .5.5 0 011 0zm1 .5a.5.5 0 100-1 .5.5 0 000 1z"/><path d="M2 1a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V3a2 2 0 00-2-2H2zm13 2v2H1V3a1 1 0 011-1h12a1 1 0 011 1zM2 14a1 1 0 01-1-1V6h14v7a1 1 0 01-1 1H2z"/>'},e)}function Xd(e){return _e({a:{fill:"currentColor",viewBox:"0 0 16 16"},c:'<path d="M6.555 1.375L0 2.237v5.45h6.555V1.375zM0 13.795l6.555.933V8.313H0v5.482zm7.278-5.4l.026 6.378L16 16V8.395H7.278zM16 0L7.33 1.244v6.414H16V0z"/>'},e)}const $$=je(D$,{baseStyle:{color:"$neutral11"}}),tz=e=>{const t=vl(),n=Di(),[r,i]=Me(!1),[o,a]=Me("");let s;const l=()=>e.searchable?e.options.filter(u=>new RegExp(o(),"i").test(u.label)):e.options,c=()=>n.state.selectedOptions.map(u=>u.textValue).join(",");return tn(wi(c,a)),[T(pc,{get as(){return e.searchable?"div":void 0},get children(){return T(Ae,{get fallback(){return[T(nd,{get children(){return t("global.choose")}}),T(xc,{}),T(tl,{})]},get when(){return!e.readonly&&e.searchable},get children(){return[T(pp,{border:"none",variant:"unstyled",get placeholder(){return Sr(()=>!!r(),!0)()&&c()||t("global.choose")},get value(){return Sr(()=>!!r(),!0)()?o():c()},onKeyDown:u=>u.stopPropagation(),onClick:u=>{n.state.opened&&u.stopPropagation()},onInput:u=>{clearTimeout(s),a(u.currentTarget.value)},onBlur:()=>{i(!1),s=setTimeout(()=>a(""),300)},onFocus:()=>{clearTimeout(s),a(""),i(!0)}}),T(Ae,{get when(){return r()},get fallback(){return T(tl,{})},get children(){return T($$,{})}})]}})}}),T(dc,{get children(){return T(fc,{get children(){return T(Ka,{get each(){return l()},children:u=>T(hc,{get value(){return u.key},get children(){return[T(mc,{get children(){return u.label}}),T(gc,{})]}})})}})}})]},B$={initialColorMode:"system",lightTheme:{colors:{background:"#f7f8fa"}},components:{Button:{baseStyle:{root:{rounded:"$lg",_active:{transform:"scale(.95)",transition:"0.2s"},_focus:{boxShadow:"unset"}}},defaultProps:{root:{colorScheme:"info",variant:"subtle"}}},IconButton:{defaultProps:{colorScheme:"info",variant:"subtle"}},Input:{baseStyle:{input:{rounded:"$lg",_focus:{boxShadow:"unset",borderColor:"$info8"}}},defaultProps:{input:{variant:"filled"}}},Textarea:{baseStyle:{rounded:"$lg",_focus:{boxShadow:"unset",borderColor:"$info8"},resize:"vertical",wordBreak:"break-all"},defaultProps:{variant:"filled"}},Select:{baseStyle:{trigger:{rounded:"$lg",_focus:{boxShadow:"unset",borderColor:"$info8"}},content:{border:"none",rounded:"$lg"},optionIndicator:{color:"$info10"}},defaultProps:{root:{variant:"filled"}}},Checkbox:{defaultProps:{root:{colorScheme:"info",variant:"filled"}}},Switch:{defaultProps:{root:{colorScheme:"info"}}},Menu:{baseStyle:{content:{rounded:"$md",minW:"unset",border:"unset"},item:{rounded:"$md",py:"$1"}}},Notification:{baseStyle:{root:{rounded:"$lg",border:"unset"}}},Alert:{baseStyle:{root:{rounded:"$lg"}}},Anchor:{baseStyle:{rounded:"$lg",px:"$1_5",py:"$1",_hover:{bgColor:ux(),textDecoration:"none"},_focus:{boxShadow:"unset"},_active:{transform:"scale(.95)",transition:"0.1s"}}},Modal:{baseStyle:{content:{rounded:"$lg"}}}}},A6=Pi({"*":{margin:0,padding:0},html:{fontFamily:'-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol" !important'},"#root":{display:"flex",flexDirection:"column",alignItems:"center"},".hope-breadcrumb__list":{flexWrap:"wrap",rowGap:"0 !important"},".lightgallery-container":{"& .lg-backdrop":{zIndex:"$popover"},"& .lg-outer":{zIndex:"calc($popover + 10)"}},".viselect-selection-area":{background:"rgba(46, 115, 252, 0.11)",border:"2px solid rgba(98, 155, 255, 0.81)",borderRadius:"0.1em"},".viselect-container":{userSelect:"none","& .viselect-item":{"-webkit-user-drag":"none","& img":{"-webkit-user-drag":"none"}}}}),e5=e=>{const t=vl(),[n,r]=bu(()=>We.get("/me")),[i,o]=Me();return(async()=>Ec(await r(),QS,o))(),T(W1,{get fallback(){return e.children},get children(){return[T(Ai,{get when(){return n()},get children(){return T(md,{})}}),T(Ai,{get when(){return i()!==void 0},get children(){return T(zd,{get msg(){return t("home.get_current_user_failed")+i()}})}})]}})};let k6=[];const F$=e=>{k6=e},H$=e=>(e=e.toLowerCase(),k6.some(t=>e.endsWith(t)));function nz(e){return _e({a:{viewBox:"0 0 16 16"},c:'<path fill="currentColor" d="M11 8v6h1V8h2.5l-3-3-3 3zM1 3h1.5v1H1V3zM3 3h1.5v1H3V3zM5 3h1v1.5H5V3zM1 6.5h1V8H1V6.5zM2.5 7H4v1H2.5V7zM4.5 7H6v1H4.5V7zM1 4.5h1V6H1V4.5zM5 5h1v1.5H5V5zM5 11v3H2v-3h3zm1-1H1v5h5v-5z"/>'},e)}function z$(e){return _e({a:{viewBox:"0 0 16 16"},c:'<path fill="currentColor" d="M14 6c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1V7c0-.55-.45-1-1-1zM2 6c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1V7c0-.55-.45-1-1-1zm1.5 5.5A1.5 1.5 0 005 13v2c0 .55.45 1 1 1s1-.45 1-1v-2h2v2c0 .55.45 1 1 1s1-.45 1-1v-2a1.5 1.5 0 001.5-1.5V6h-9v5.5zM12.472 5a4.5 4.5 0 00-2.025-3.276l.5-1.001a.5.5 0 00-.895-.447L9.55 1.28l-.13-.052a4.504 4.504 0 00-2.84 0l-.13.052L5.948.276a.5.5 0 00-.895.447l.5 1.001A4.499 4.499 0 003.528 5v.5H12.5V5h-.028zM6.5 4a.5.5 0 01-.001-1h.002A.5.5 0 016.5 4zm3 0a.5.5 0 01-.001-1h.003a.5.5 0 01-.001 1z"/>'},e)}function U$(e){return _e({a:{viewBox:"0 0 24 24"},c:'<path d="M1.61 0v24l20.78-12L1.61 0m4.15 7.2l4.3 2.48-4.3 2.48V7.2m6.79 3.92l1.53.88-8.32 4.8v-1.76l6.79-3.92z"/>'},e)}function rz(e){return _e({a:{viewBox:"0 0 24 24"},c:'<path d="M5.385 6.136c0 .807-.644 1.461-1.438 1.461s-1.438-.654-1.438-1.461.644-1.461 1.438-1.461 1.438.654 1.438 1.461zm-1.438 2.63c-.794 0-1.438.654-1.438 1.461s.644 1.461 1.438 1.461 1.438-.654 1.438-1.461-.644-1.461-1.438-1.461zm5.465-2.63c0 .807-.644 1.461-1.438 1.461s-1.438-.654-1.438-1.461.644-1.461 1.438-1.461 1.438.654 1.438 1.461zm-.35 0c0-.613-.488-1.111-1.088-1.111s-1.088.499-1.088 1.111.488 1.111 1.088 1.111 1.088-.498 1.088-1.111zm-1.088 5.592c.794 0 1.438-.654 1.438-1.461s-.644-1.461-1.438-1.461-1.438.654-1.438 1.461.643 1.461 1.438 1.461zm5.464-5.592c0 .807-.644 1.461-1.438 1.461s-1.438-.654-1.438-1.461.644-1.461 1.438-1.461 1.438.654 1.438 1.461zm-.35 0c0-.613-.488-1.111-1.088-1.111s-1.088.498-1.088 1.111S11.4 7.247 12 7.247s1.088-.498 1.088-1.111zm.35-4.675c0 .807-.644 1.461-1.438 1.461s-1.438-.654-1.438-1.461S11.206 0 12 0s1.438.654 1.438 1.461zm-.35 0C13.088.848 12.6.35 12 .35s-1.088.498-1.088 1.111S11.4 2.572 12 2.572s1.088-.498 1.088-1.111zm.35 8.806c0 .807-.644 1.461-1.438 1.461s-1.438-.654-1.438-1.461.644-1.461 1.438-1.461 1.438.654 1.438 1.461zm-.35 0c0-.613-.488-1.111-1.088-1.111s-1.088.498-1.088 1.111.488 1.111 1.088 1.111 1.088-.499 1.088-1.111zm4.376-4.131c0 .807-.644 1.461-1.438 1.461s-1.438-.654-1.438-1.461.644-1.461 1.438-1.461 1.438.654 1.438 1.461zm-.35 0c0-.613-.488-1.111-1.088-1.111s-1.088.498-1.088 1.111.488 1.111 1.088 1.111 1.088-.498 1.088-1.111zm2.939 1.461c.794 0 1.438-.654 1.438-1.461s-.644-1.461-1.438-1.461-1.438.654-1.438 1.461.644 1.461 1.438 1.461zm-4.027 1.209c-.794 0-1.438.654-1.438 1.461s.644 1.461 1.438 1.461 1.438-.654 1.438-1.461-.643-1.461-1.438-1.461zm4.027 0c-.794 0-1.438.654-1.438 1.461s.644 1.461 1.438 1.461 1.438-.654 1.438-1.461-.644-1.461-1.438-1.461zM3.947 12.857a1.45 1.45 0 00-1.438 1.461c0 .807.644 1.461 1.438 1.461s1.438-.654 1.438-1.461a1.45 1.45 0 00-1.438-1.461zm5.465 1.5c0 .807-.644 1.461-1.438 1.461s-1.438-.654-1.438-1.461.644-1.461 1.438-1.461 1.438.655 1.438 1.461zm-.35 0c0-.613-.488-1.111-1.088-1.111s-1.088.498-1.088 1.111.488 1.111 1.088 1.111 1.088-.498 1.088-1.111zM12 12.896c-.794 0-1.438.654-1.438 1.461s.644 1.461 1.438 1.461 1.438-.654 1.438-1.461-.644-1.461-1.438-1.461zm5.464 1.461c0 .807-.644 1.461-1.438 1.461s-1.438-.654-1.438-1.461.644-1.461 1.438-1.461 1.438.655 1.438 1.461zm-.35 0c0-.613-.488-1.111-1.088-1.111s-1.088.498-1.088 1.111.488 1.111 1.088 1.111 1.088-.498 1.088-1.111zm2.939-1.461c-.794 0-1.438.654-1.438 1.461s.644 1.461 1.438 1.461 1.438-.654 1.438-1.461-.644-1.461-1.438-1.461zM3.947 16.948c-.794 0-1.438.654-1.438 1.461s.644 1.461 1.438 1.461 1.438-.654 1.438-1.461-.644-1.461-1.438-1.461zm5.465 1.5c0 .807-.644 1.461-1.438 1.461s-1.438-.654-1.438-1.461.644-1.461 1.438-1.461 1.438.654 1.438 1.461zm-.35 0c0-.613-.488-1.111-1.088-1.111s-1.088.498-1.088 1.111.488 1.111 1.088 1.111 1.088-.498 1.088-1.111zm4.376 0c0 .807-.644 1.461-1.438 1.461s-1.438-.654-1.438-1.461.644-1.461 1.438-1.461 1.438.654 1.438 1.461zm-.35 0c0-.613-.488-1.111-1.088-1.111s-1.088.498-1.088 1.111.488 1.111 1.088 1.111 1.088-.498 1.088-1.111zm.35 4.091c0 .807-.644 1.461-1.438 1.461s-1.438-.654-1.438-1.461.644-1.461 1.438-1.461 1.438.654 1.438 1.461zm-.35 0c0-.613-.488-1.111-1.088-1.111s-1.088.498-1.088 1.111S11.4 23.65 12 23.65s1.088-.498 1.088-1.111zm4.376-4.091c0 .807-.644 1.461-1.438 1.461s-1.438-.654-1.438-1.461.644-1.461 1.438-1.461 1.438.654 1.438 1.461zm-.35 0c0-.613-.488-1.111-1.088-1.111s-1.088.498-1.088 1.111.488 1.111 1.088 1.111 1.088-.498 1.088-1.111zm2.939-1.461c-.794 0-1.438.654-1.438 1.461s.644 1.461 1.438 1.461 1.438-.654 1.438-1.461-.644-1.461-1.438-1.461z"/>'},e)}function j$(e,t){return n=>aa("use_newui")==="true"?_e({a:{viewBox:"0 0 32 32"},c:`<image href="${uu(e)}" width="32" height="32" />`},n):t(n)}class G${constructor(){rf(this,"customIcons",new Map)}register(t,n){this.customIcons.set(t.toLowerCase(),n)}getIcon(t){const n=this.customIcons.get(t.toLowerCase());return n?j$(n.imagePath,n.fallbackIcon):null}hasCustomIcon(t){return this.customIcons.has(t.toLowerCase())}getRegisteredExtensions(){return Array.from(this.customIcons.keys())}}const Qd=new G$;Qd.register("pdf",{imagePath:"/images/filetypes/PDF.png",fallbackIcon:qd});function Te(e,t,n){Qd.register(e,{imagePath:t,fallbackIcon:n})}const K$={"dmg,ipa,plist,tipa":Hc,"exe,msi":Xd,apk:z$,db:KD,md:P$,epub:jD,iso:GD,m3u8:ui,"doc,docx":zc,"xls,xlsx":Vd,"ppt,pptx":Yd,pdf:qd,psd:VD,ai:qD,url:WD,cast:U$},W$=(e,t)=>{if(e!==Uo.FOLDER){const n=L9(t).toLowerCase(),r=Qd.getIcon(n);if(r)return r;for(const[i,o]of Object.entries(K$))if(i.split(",").includes(n))return o;if(H$(t))return os}switch(e){case Uo.FOLDER:return vC;case Uo.VIDEO:return ui;case Uo.AUDIO:return ci;case Uo.TEXT:return pn;case Uo.IMAGE:return Nr;default:return Hi}},iz=e=>W$(e.type,e.name);Te("doc","/images/filetypes/DOC.png",zc);Te("docx","/images/filetypes/DOCX.png",zc);Te("xls","/images/filetypes/XLS.png",Vd);Te("xlsx","/images/filetypes/XLSX.png",Vd);Te("ppt","/images/filetypes/PPT.png",Yd);Te("pptx","/images/filetypes/PPTX.png",Yd);Te("pdf","/images/filetypes/PDF.png",qd);Te("wps","/images/filetypes/WPS.png",zc);Te("zip","/images/filetypes/ZIP.png",os);Te("rar","/images/filetypes/rar.png",os);Te("7z","/images/filetypes/7z.png",os);Te("gz","/images/filetypes/GZ.png",os);Te("tar","/images/filetypes/TAR.png",os);Te("jpg","/images/filetypes/JPG.png",Nr);Te("jpeg","/images/filetypes/JPEG.png",Nr);Te("png","/images/filetypes/PNG.png",Nr);Te("gif","/images/filetypes/GIF.png",Nr);Te("bmp","/images/filetypes/BMP.png",Nr);Te("svg","/images/filetypes/SVG.png",Nr);Te("ico","/images/filetypes/ICO.png",Nr);Te("tif","/images/filetypes/TIF.png",Nr);Te("tiff","/images/filetypes/TIFF.png",Nr);Te("psd","/images/filetypes/PSD.png",Nr);Te("ai","/images/filetypes/AI.png",Nr);Te("mp4","/images/filetypes/MP4.png",ui);Te("avi","/images/filetypes/AVI.png",ui);Te("mov","/images/filetypes/MOV.png",ui);Te("wmv","/images/filetypes/WMV.png",ui);Te("3gp","/images/filetypes/3GP.png",ui);Te("mpg","/images/filetypes/MPG.png",ui);Te("rm","/images/filetypes/RM.png",ui);Te("rmvb","/images/filetypes/RMVB.png",ui);Te("mp3","/images/filetypes/MP3.png",ci);Te("wav","/images/filetypes/WAV.png",ci);Te("flac","/images/filetypes/FLAC.png",ci);Te("aac","/images/filetypes/AAC.png",ci);Te("wma","/images/filetypes/WMA.png",ci);Te("aif","/images/filetypes/aif.png",ci);Te("au","/images/filetypes/AU.png",ci);Te("amr","/images/filetypes/AMR.png",ci);Te("mmf","/images/filetypes/MMF.png",ci);Te("txt","/images/filetypes/TXT.png",pn);Te("json","/images/filetypes/JSON.png",pn);Te("xml","/images/filetypes/XML.png",pn);Te("csv","/images/filetypes/CSV.png",pn);Te("sql","/images/filetypes/SQL.png",pn);Te("srt","/images/filetypes/SRT.png",pn);Te("html","/images/filetypes/html.png",pn);Te("htm","/images/filetypes/htm.png",pn);Te("css","/images/filetypes/CSS.png",pn);Te("php","/images/filetypes/PHP.png",pn);Te("py","/images/filetypes/PY.png",pn);Te("java","/images/filetypes/JAVA.png",pn);Te("cpp","/images/filetypes/CPP.png",pn);Te("asp","/images/filetypes/ASP.png",pn);Te("aspx","/images/filetypes/ASPX.png",pn);Te("cfm","/images/filetypes/CFM.png",pn);Te("cgi","/images/filetypes/CGI.png",pn);Te("iso","/images/filetypes/ISO.png",Hi);Te("dmg","/images/filetypes/DMG.png",Hc);Te("exe","/images/filetypes/exe.png",Xd);Te("msi","/images/filetypes/MSI.png",Xd);Te("apk","/images/filetypes/apk.png",Hi);Te("ipa","/images/filetypes/ipa.png",Hc);Te("tipa","/images/filetypes/tipa.png",Hc);Te("pkg","/images/filetypes/PKG.png",Hi);Te("com","/images/filetypes/COM.png",Hi);Te("cad","/images/filetypes/CAD.png",Hi);Te("obj","/images/filetypes/OBJ.png",Hi);Te("mdf","/images/filetypes/MDF.png",Hi);Te("otf","/images/filetypes/OTF.png",pn);Te("rat","/images/filetypes/rat.png",Hi);const V$=K1(()=>In(()=>import("./Layout-66d6a6fd.js").then(e=>e.L),["assets/Layout-66d6a6fd.js","assets/useTitle-efd03a2a.js","assets/index-c1c6ff9d.js","assets/FolderTree-6f54b0b0.js","assets/index-69644529.js","assets/index-8034ec29.js","assets/storage-class-1ac53f89.js"])),q$=K1(()=>In(()=>import("./index-4ce3d2a1.js").then(e=>e.i),["assets/index-4ce3d2a1.js","assets/useTitle-efd03a2a.js","assets/index-c1c6ff9d.js","assets/index-69644529.js"])),Y$=K1(()=>In(()=>import("./index-d9416289.js"),["assets/index-d9416289.js","assets/useTitle-efd03a2a.js","assets/webauthn-json.browser-ponyfill-f2f06d6e.js"])),X$=K1(()=>In(()=>import("./index-864d4e91.js"),["assets/index-864d4e91.js","assets/Upload-2acc2769.js","assets/index-69644529.js"])),Q$=()=>{const e=vl();A6();const[,{add:t}]=id(),n=$8(),{to:r,pathname:i}=Ja(),o=u=>{r(u)};Yo.on("to",o),Dt(()=>{Yo.off("to",o)}),tn(()=>{Yo.emit("pathname",i())});const[a,s]=Me([]),[l,c]=mx(()=>Promise.all([(async()=>{t(ao,(await dd[ao]()).default),mu.add(ao)})(),(async()=>{gh(await We.get("/public/settings"),WS,u=>s(a().concat(u)))})(),(async()=>{gh(await We.get("/public/archive_extensions"),F$,u=>s(a().concat(u)))})()]));return c(),[T(go,{get children(){return T(Wp,{indeterminate:!0,size:"xs",position:"fixed",top:"0",left:"0",right:"0",zIndex:"$banner",get d(){return n()?"block":"none"},get children(){return T(qp,{})}})}}),T(W1,{get fallback(){return T(V8,{base:Hr,get children(){return[T($l,{path:"/@test",component:X$}),T($l,{path:"/@login",component:Y$}),T($l,{path:"/@manage/*",get element(){return T(e5,{get children(){return T(q$,{})}})}}),T($l,{path:"*",get element(){return T(e5,{get children(){return T(V$,{})}})}})]}})},get children(){return[T(Ai,{get when(){return a().length>0},get children(){return T(zd,{h:"100vh",get msg(){return e("home.fetching_settings_failed")+a().map(u=>e("home."+u)).join(", ")}})}}),T(Ai,{get when(){return l()},get children(){return T(md,{})}})]}})]};const Z$=()=>(A6(),T(o_,{config:B$,get children(){return T(X6,{fallback:e=>(console.error("error",e),T(zd,{msg:`System error: ${e}`,h:"100vh"})),get children(){return T(I9.Provider,{value:cx,get children(){return T(LE,{duration:3e3,get children(){return T(Z6,{get fallback(){return T(md,{})},get children(){return T(Q$,{})}})}})}})}})}}));s8(()=>T(W8,{get children(){return T(Z$,{})}}),document.getElementById("root"));export{ux as $,Xe as A,Me as B,Qs as C,wi as D,ta as E,V2 as F,ND as G,tn as H,Kv as I,Xm as J,Km as K,pp as L,Wv as M,Xv as N,jv as O,q2 as P,P1 as Q,Uv as R,Ae as S,VT as T,HF as U,K as V,Ka as W,Ns as X,uv as Y,dv as Z,xh as _,eB as __vite_legacy_guard,wL as a,XT as a$,nB as a0,uu as a1,fv as a2,cv as a3,aa as a4,K1 as a5,In as a6,ac as a7,qS as a8,Z6 as a9,Op as aA,oE as aB,Qo as aC,IF as aD,MH as aE,GH as aF,FH as aG,Cp as aH,Ap as aI,Hu as aJ,RF as aK,pE as aL,aE as aM,KF as aN,Yo as aO,oa as aP,D$ as aQ,bH as aR,uE as aS,Ya as aT,_e as aU,kH as aV,nz as aW,TH as aX,XS as aY,YT as aZ,zF as a_,hC as aa,W1 as ab,Ai as ac,sr as ad,zd as ae,cn as af,LF as ag,lu as ah,zs as ai,jF as aj,gd as ak,s5 as al,Sr as am,PF as an,De as ao,GF as ap,EH as aq,dx as ar,Fv as as,D8 as at,T6 as au,OE as av,vm as aw,Qi as ax,Oa as ay,Bt as az,vl as b,at as b$,jr as b0,eF as b1,GS as b2,kF as b3,AH as b4,FS as b5,oF as b6,BF as b7,yH as b8,nH as b9,Yv as bA,qv as bB,sB as bC,cB as bD,lB as bE,DS as bF,rH as bG,_C as bH,aB as bI,Zv as bJ,PS as bK,Zp as bL,pc as bM,nd as bN,xc as bO,tl as bP,dc as bQ,fc as bR,hc as bS,mc as bT,gc as bU,OT as bV,Tv as bW,qB as bX,tz as bY,YB as bZ,Dn as b_,LD as ba,vH as bb,MF as bc,wH as bd,bu as be,UB as bf,Iv as bg,PB as bh,HB as bi,jB as bj,BB as bk,AF as bl,KB as bm,$B as bn,zB as bo,hB as bp,fB as bq,GB as br,FB as bs,QE as bt,rT as bu,We as bv,Ec as bw,XB as bx,UD as by,Vm as bz,ts as c,am as c$,_H as c0,go as c1,hp as c2,Ju as c3,zH as c4,YS as c5,jH as c6,ez as c7,YH as c8,BH as c9,qH as cA,qF as cB,R9 as cC,gF as cD,eH as cE,zv as cF,QF as cG,YF as cH,WF as cI,VF as cJ,WS as cK,hh as cL,_B as cM,vB as cN,EB as cO,TB as cP,yB as cQ,SB as cR,CB as cS,wB as cT,AB as cU,kB as cV,An as cW,nv as cX,IB as cY,Wp as cZ,qp as c_,WH as ca,XF as cb,$H as cc,x5 as cd,KH as ce,DH as cf,VH as cg,HH as ch,ZF as ci,LH as cj,XH as ck,rz as cl,KD as cm,UH as cn,jD as co,tH as cp,JF as cq,gS as cr,NB as cs,V8 as ct,$l as cu,vF as cv,SS as cw,Hr as cx,SH as cy,CH as cz,Ja as d,UE as d$,NF as d0,H$ as d1,Uo as d2,QH as d3,MB as d4,JS as d5,$1 as d6,It as d7,mo as d8,QB as d9,rE as dA,bB as dB,tB as dC,LT as dD,BT as dE,FT as dF,$T as dG,PT as dH,DT as dI,rF as dJ,iF as dK,ps as dL,nF as dM,tF as dN,uC as dO,$t as dP,xB as dQ,xl as dR,Ct as dS,rB as dT,l8 as dU,se as dV,y1 as dW,p5 as dX,IH as dY,RH as dZ,lp as d_,iz as da,je as db,RB as dc,DF as dd,NH as de,uB as df,dB as dg,JH as dh,zE as di,FE as dj,HE as dk,OH as dl,$F as dm,L9 as dn,UT as dp,KT as dq,GT as dr,ZH as ds,td as dt,xT as du,QS as dv,$_ as dw,W_ as dx,V_ as dy,F_ as dz,pu as e,Jv as e0,aF as e1,hF as e2,FF as e3,mF as e4,pF as e5,xF as e6,_F as e7,bF as e8,ZB as e9,Ur as eA,LB as eB,WB as eC,VB as eD,Kf as eE,JB as ea,N5 as eb,sF as ec,DB as ed,fF as ee,dF as ef,lF as eg,uF as eh,cF as ei,CF as ej,wF as ek,OF as el,SF as em,d6 as en,UF as eo,dC as ep,L$ as eq,P8 as er,OB as es,PH as et,od as eu,gB as ev,Ci as ew,Bu as ex,NS as ey,pB as ez,Zo as f,En as g,SL as h,mB as i,_r as j,tC as k,IS as l,ei as m,nl as n,hd as o,x4 as p,Gn as q,Dt as r,ag as s,ho as t,nC as u,aL as v,Jo as w,T as x,mn as y,Gr as z};