shopify 3.94.3 → 4.0.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 (295) hide show
  1. package/bin/run.js +5 -1
  2. package/dist/analytics-6IHHYAV6.js +1 -0
  3. package/dist/analytics-KKVP5DT3.js +1 -0
  4. package/dist/bootstrap.d.ts +5 -0
  5. package/dist/bootstrap.js +3 -0
  6. package/dist/chunk-22PCRFG4.js +1 -0
  7. package/dist/chunk-26D72ZNV.js +1 -0
  8. package/dist/chunk-2APPXD5Z.js +2 -0
  9. package/dist/chunk-2I4PRX2I.js +1 -0
  10. package/dist/chunk-2VQJQ36C.js +103 -0
  11. package/dist/chunk-323UTVMM.js +1 -0
  12. package/dist/chunk-3DQIVE24.js +9 -0
  13. package/dist/chunk-3F6NZK7S.js +2 -0
  14. package/dist/chunk-3LVGAQB4.js +1 -0
  15. package/dist/chunk-3TNEIDOD.js +1 -0
  16. package/dist/chunk-3VZEETAV.js +1 -0
  17. package/dist/chunk-4G7J6HIV.js +1 -0
  18. package/dist/chunk-4HHXSMD7.js +10 -0
  19. package/dist/chunk-4LNCYIS3.js +1 -0
  20. package/dist/chunk-4ZGSSQC6.js +1 -0
  21. package/dist/chunk-52GC6XUT.js +1 -0
  22. package/dist/chunk-5CH3B62S.js +2 -0
  23. package/dist/chunk-5Y7GIF2W.js +1 -0
  24. package/dist/chunk-66RJ5T7A.js +102 -0
  25. package/dist/chunk-6B53BWJW.js +1 -0
  26. package/dist/chunk-6BMMB2UO.js +1 -0
  27. package/dist/chunk-6HBRBQAN.js +6 -0
  28. package/dist/chunk-6M3ZYNGO.js +451 -0
  29. package/dist/chunk-6TZAAS5H.js +1 -0
  30. package/dist/chunk-72F3YBNA.js +1 -0
  31. package/dist/chunk-74HYYXXE.js +17 -0
  32. package/dist/chunk-75VPUOC5.js +1 -0
  33. package/dist/chunk-7BGM2GAH.js +1 -0
  34. package/dist/chunk-7UYZQN4V.js +18 -0
  35. package/dist/chunk-A74GETYC.js +1 -0
  36. package/dist/chunk-AIV5RI3X.js +1 -0
  37. package/dist/chunk-ALKTLKQ6.js +5 -0
  38. package/dist/chunk-B2EHO7ZC.js +847 -0
  39. package/dist/chunk-B2IVY4V5.js +1 -0
  40. package/dist/chunk-BDVAE5MS.js +28 -0
  41. package/dist/chunk-CERXUPGC.js +14 -0
  42. package/dist/chunk-D3TSJA5S.js +1 -0
  43. package/dist/chunk-D6JARNEH.js +1 -0
  44. package/dist/chunk-DFMQWJQ3.js +3 -0
  45. package/dist/chunk-DJONKJSZ.js +1 -0
  46. package/dist/chunk-DJQVNH7P.js +567 -0
  47. package/dist/chunk-DU4WR4OP.js +1 -0
  48. package/dist/chunk-ELVFJ7BR.js +4 -0
  49. package/dist/chunk-ELYP4KFP.js +8 -0
  50. package/dist/chunk-FFQ5EWII.js +294 -0
  51. package/dist/chunk-FUOIGXI4.js +1 -0
  52. package/dist/chunk-GD7FWXJ5.js +2 -0
  53. package/dist/chunk-GFEAKSGV.js +374 -0
  54. package/dist/chunk-GFJ7UV74.js +1 -0
  55. package/dist/chunk-GNPS5SBU.js +1 -0
  56. package/dist/chunk-GOJ2QHSR.js +1 -0
  57. package/dist/chunk-HSK7YMRE.js +359 -0
  58. package/dist/chunk-HUZUORYM.js +19 -0
  59. package/dist/chunk-HZA6IAA4.js +1 -0
  60. package/dist/chunk-IASVAERO.js +1 -0
  61. package/dist/chunk-IIIVWD4R.js +1 -0
  62. package/dist/chunk-INEU4XKS.js +6 -0
  63. package/dist/chunk-IOLVEXM6.js +1 -0
  64. package/dist/chunk-IU2ZQ6TE.js +2 -0
  65. package/dist/chunk-IX5ICOBV.js +7 -0
  66. package/dist/chunk-J3KVONB3.js +6 -0
  67. package/dist/chunk-JGXWQULI.js +1 -0
  68. package/dist/chunk-JHPRFW5B.js +19 -0
  69. package/dist/chunk-JLBH7RCF.js +4 -0
  70. package/dist/chunk-JPGO36XP.js +1 -0
  71. package/dist/chunk-JUVAGMIH.js +1 -0
  72. package/dist/chunk-JVIKCGDY.js +1 -0
  73. package/dist/chunk-K2WUCOQJ.js +32 -0
  74. package/dist/chunk-K5YV6UVF.js +4 -0
  75. package/dist/chunk-KBQ4LGFB.js +1 -0
  76. package/dist/chunk-KGXQS7LS.js +1 -0
  77. package/dist/chunk-KL5Z3T6L.js +1 -0
  78. package/dist/chunk-KLMDWDT2.js +1 -0
  79. package/dist/chunk-KNVM7N3U.js +1 -0
  80. package/dist/chunk-KWJ562F2.js +12 -0
  81. package/dist/chunk-LALIKZPS.js +5 -0
  82. package/dist/chunk-LAZJ47DZ.js +6 -0
  83. package/dist/chunk-LDGAHMS7.js +159 -0
  84. package/dist/chunk-LNHLDRC5.js +1 -0
  85. package/dist/chunk-LW7U753G.js +1 -0
  86. package/dist/chunk-LX3ZOW52.js +12 -0
  87. package/dist/chunk-LXFJDCNG.js +1 -0
  88. package/dist/chunk-MBAFWQSZ.js +7 -0
  89. package/dist/chunk-MOA33ZFO.js +1 -0
  90. package/dist/chunk-MQNYGGAM.js +1 -0
  91. package/dist/chunk-N5YIPQ6J.js +1 -0
  92. package/dist/chunk-N7RBSKYT.js +1 -0
  93. package/dist/chunk-NF2ABOOU.js +1 -0
  94. package/dist/chunk-NRAFVIU3.js +1 -0
  95. package/dist/chunk-OCOY5MV2.js +1 -0
  96. package/dist/chunk-ODNGDO4H.js +50 -0
  97. package/dist/chunk-OHY4ZL3U.js +2 -0
  98. package/dist/chunk-OLZHWPZP.js +1 -0
  99. package/dist/chunk-OUOYKNMY.js +1 -0
  100. package/dist/chunk-OXPWCC7I.js +64 -0
  101. package/dist/chunk-P5VVOLGV.js +1 -0
  102. package/dist/chunk-P6XE4MH5.js +1 -0
  103. package/dist/chunk-P7R7FBY2.js +3 -0
  104. package/dist/chunk-PD5ZHJWI.js +1 -0
  105. package/dist/chunk-PIBY5DDZ.js +1 -0
  106. package/dist/chunk-Q7ING5F5.js +1 -0
  107. package/dist/chunk-QFWIDATO.js +1 -0
  108. package/dist/chunk-QRRNOVJ3.js +1 -0
  109. package/dist/chunk-QSTEVZFQ.js +1 -0
  110. package/dist/chunk-R466TU3N.js +2 -0
  111. package/dist/chunk-RF2DPBA6.js +1 -0
  112. package/dist/chunk-RFG5RMPL.js +1 -0
  113. package/dist/chunk-RM5SJJN6.js +559 -0
  114. package/dist/chunk-RVNMVBPM.js +1 -0
  115. package/dist/chunk-SBEZBZM7.js +144 -0
  116. package/dist/chunk-SGQ6D3LU.js +15 -0
  117. package/dist/chunk-SRCQVUMC.js +1 -0
  118. package/dist/chunk-TFSBQ4RY.js +5 -0
  119. package/dist/chunk-TQYMC7TH.js +1 -0
  120. package/dist/chunk-UGDBJTLP.js +6 -0
  121. package/dist/chunk-UGXYQ23Y.js +1411 -0
  122. package/dist/chunk-UWJ73J4B.js +1 -0
  123. package/dist/chunk-V2CNCPIE.js +2 -0
  124. package/dist/chunk-VBUZWRUL.js +1 -0
  125. package/dist/chunk-VS3T5YOG.js +264 -0
  126. package/dist/chunk-VWYM4OWK.js +1 -0
  127. package/dist/chunk-VY6SNDKW.js +3 -0
  128. package/dist/chunk-WDC3KIZT.js +2 -0
  129. package/dist/chunk-WFXRSKRK.js +1 -0
  130. package/dist/chunk-WXVZJJOR.js +16 -0
  131. package/dist/chunk-WZBSLU4Q.js +6 -0
  132. package/dist/chunk-XBXMPFXM.js +1 -0
  133. package/dist/chunk-XEFQQPL4.js +1 -0
  134. package/dist/chunk-XLELNRFF.js +3 -0
  135. package/dist/chunk-XNO6DZYP.js +1 -0
  136. package/dist/chunk-Y5JKV2AI.js +1 -0
  137. package/dist/chunk-YC6G4MHD.js +3 -0
  138. package/dist/chunk-YI232QLS.js +1 -0
  139. package/dist/chunk-YMWHHINU.js +1 -0
  140. package/dist/chunk-YOZNRLFC.js +1 -0
  141. package/dist/chunk-YZDDTYTU.js +11 -0
  142. package/dist/chunk-Z35BTAM6.js +2 -0
  143. package/dist/chunk-ZR76GGZ6.js +5 -0
  144. package/dist/chunk-ZTMSBSYD.js +1 -0
  145. package/dist/chunk-ZV6NCNI4.js +586 -0
  146. package/dist/chunk-ZVJVDCIM.js +1 -0
  147. package/dist/cli/commands/app/app-logs/sources.js +2 -0
  148. package/dist/cli/commands/app/build.js +1 -0
  149. package/dist/cli/commands/app/bulk/cancel.js +1 -0
  150. package/dist/cli/commands/app/bulk/execute.js +9 -0
  151. package/dist/cli/commands/app/bulk/status.js +5 -0
  152. package/dist/cli/commands/app/config/link.js +4 -0
  153. package/dist/cli/commands/app/config/pull.js +1 -0
  154. package/dist/cli/commands/app/config/use.js +1 -0
  155. package/dist/cli/commands/app/config/validate.js +3 -0
  156. package/dist/cli/commands/app/demo/watcher.js +1 -0
  157. package/dist/cli/commands/app/deploy.js +22 -0
  158. package/dist/cli/commands/app/dev/clean.js +5 -0
  159. package/dist/cli/commands/app/dev.js +320 -0
  160. package/dist/cli/commands/app/env/pull.js +11 -0
  161. package/dist/cli/commands/app/env/show.js +1 -0
  162. package/dist/cli/commands/app/execute.js +1 -0
  163. package/dist/cli/commands/app/function/build.js +1 -0
  164. package/dist/cli/commands/app/function/info.js +16 -0
  165. package/dist/cli/commands/app/function/replay.js +5 -0
  166. package/dist/cli/commands/app/function/run.js +1 -0
  167. package/dist/cli/commands/app/function/schema.js +1 -0
  168. package/dist/cli/commands/app/function/typegen.js +1 -0
  169. package/dist/cli/commands/app/generate/extension.js +5 -0
  170. package/dist/cli/commands/app/import-custom-data-definitions.js +4 -0
  171. package/dist/cli/commands/app/import-extensions.js +1 -0
  172. package/dist/cli/commands/app/info.js +11 -0
  173. package/dist/cli/commands/app/init.js +10 -0
  174. package/dist/cli/commands/app/logs.js +2 -0
  175. package/dist/cli/commands/app/release.js +4 -0
  176. package/dist/cli/commands/app/versions/list.js +1 -0
  177. package/dist/cli/commands/app/webhook/trigger.js +25 -0
  178. package/dist/cli/commands/auth/login.js +1 -20
  179. package/dist/cli/commands/auth/logout.js +1 -12
  180. package/dist/cli/commands/cache/clear.js +1 -11
  181. package/dist/cli/commands/config/autoupgrade/constants.d.ts +0 -1
  182. package/dist/cli/commands/config/autoupgrade/constants.js +1 -6
  183. package/dist/cli/commands/config/autoupgrade/off.js +1 -22
  184. package/dist/cli/commands/config/autoupgrade/on.js +1 -22
  185. package/dist/cli/commands/config/autoupgrade/status.js +1 -30
  186. package/dist/cli/commands/debug/command-flags.js +1 -79
  187. package/dist/cli/commands/docs/generate.js +1 -157
  188. package/dist/cli/commands/doctor-release/doctor-release.js +1 -25
  189. package/dist/cli/commands/doctor-release/theme/index.js +1 -56
  190. package/dist/cli/commands/help.js +1 -26
  191. package/dist/cli/commands/kitchen-sink/async.js +1 -16
  192. package/dist/cli/commands/kitchen-sink/index.js +1 -21
  193. package/dist/cli/commands/kitchen-sink/prompts.js +1 -16
  194. package/dist/cli/commands/kitchen-sink/static.js +1 -16
  195. package/dist/cli/commands/notifications/generate.js +1 -11
  196. package/dist/cli/commands/notifications/list.js +1 -33
  197. package/dist/cli/commands/organization/list.js +1 -0
  198. package/dist/cli/commands/search.js +1 -27
  199. package/dist/cli/commands/theme/check.js +1 -0
  200. package/dist/cli/commands/theme/console.js +15 -0
  201. package/dist/cli/commands/theme/delete.js +7 -0
  202. package/dist/cli/commands/theme/dev.js +26 -0
  203. package/dist/cli/commands/theme/duplicate.js +32 -0
  204. package/dist/cli/commands/theme/info.js +1 -0
  205. package/dist/cli/commands/theme/init.js +8 -0
  206. package/dist/cli/commands/theme/language-server.js +1 -0
  207. package/dist/cli/commands/theme/list.js +1 -0
  208. package/dist/cli/commands/theme/metafields/pull.js +3 -0
  209. package/dist/cli/commands/theme/open.js +8 -0
  210. package/dist/cli/commands/theme/package.js +7 -0
  211. package/dist/cli/commands/theme/preview.js +1 -0
  212. package/dist/cli/commands/theme/profile.js +3 -0
  213. package/dist/cli/commands/theme/publish.js +7 -0
  214. package/dist/cli/commands/theme/pull.js +3 -0
  215. package/dist/cli/commands/theme/push.js +28 -0
  216. package/dist/cli/commands/theme/rename.js +6 -0
  217. package/dist/cli/commands/theme/share.js +3 -0
  218. package/dist/cli/commands/upgrade.js +1 -17
  219. package/dist/cli/commands/version.js +1 -10
  220. package/dist/command-registry.d.ts +8 -0
  221. package/dist/command-registry.js +1 -0
  222. package/dist/conf-store-U5ZITKJN.js +1 -0
  223. package/dist/custom-oclif-loader-DVFFWCBV.js +1 -0
  224. package/dist/deprecations-TU5UQJVV.js +1 -0
  225. package/dist/dist-2Z5TND4U.js +1 -0
  226. package/dist/dist-GYHFDHKP.js +1 -0
  227. package/dist/environments-Z5PR7DSI.js +1 -0
  228. package/dist/error-IJGNYKZ3.js +1 -0
  229. package/dist/error-handler-WSCGNS2P.js +1 -0
  230. package/dist/fs-5BDEA2KD.js +1 -0
  231. package/dist/hooks/app-init.d.ts +9 -0
  232. package/dist/hooks/app-init.js +1 -0
  233. package/dist/hooks/did-you-mean.d.ts +1 -0
  234. package/dist/hooks/did-you-mean.js +1 -0
  235. package/dist/hooks/hydrogen-init.d.ts +7 -0
  236. package/dist/hooks/hydrogen-init.js +1 -0
  237. package/dist/hooks/plugin-plugins.d.ts +1 -0
  238. package/dist/hooks/plugin-plugins.js +1 -0
  239. package/dist/hooks/postrun.js +1 -1
  240. package/dist/hooks/prerun.js +1 -1
  241. package/dist/hooks/public-metadata.d.ts +1 -0
  242. package/dist/hooks/public-metadata.js +1 -0
  243. package/dist/hooks/sensitive-metadata.d.ts +1 -0
  244. package/dist/hooks/sensitive-metadata.js +1 -0
  245. package/dist/hooks/tunnel-provider.d.ts +1 -0
  246. package/dist/hooks/tunnel-provider.js +1 -0
  247. package/dist/hooks/tunnel-start.d.ts +1 -0
  248. package/dist/hooks/tunnel-start.js +1 -0
  249. package/dist/http-proxy-node16-Q5DZMBHC.js +38 -0
  250. package/dist/index.js +254 -3668
  251. package/dist/is-global-V4ZRHQG2.js +1 -0
  252. package/dist/latest-version-EFWBOTWM.js +49 -0
  253. package/dist/lib-5L7UKDEK.js +1 -0
  254. package/dist/lib-C3VO2BQW.js +1 -0
  255. package/dist/lib-QB6I6CTC.js +1 -0
  256. package/dist/local-6QPX4GCJ.js +1 -0
  257. package/dist/local-storage-JLXBZVWO.js +1 -0
  258. package/dist/metadata-UDMOTRS7.js +1 -0
  259. package/dist/{morph-DQREIZD2.js → morph-EMYAITFM.js} +1 -1
  260. package/dist/node-package-manager-HAFRYGUM.js +1 -0
  261. package/dist/notifications-system-MP7WDOCS.js +1 -0
  262. package/dist/npa-ICFSA3NL.js +1 -0
  263. package/dist/output-YGMHXEIS.js +1 -0
  264. package/dist/{path-HUAU3YBW.js → path-CWUNINMX.js} +1 -1
  265. package/dist/{prettier-PGDJ5B7I.js → prettier-NVRHEAFO.js} +1 -1
  266. package/dist/system-KLXD4FXF.js +1 -0
  267. package/dist/tsconfig.tsbuildinfo +1 -1
  268. package/dist/typescript-K5CWIA4V.js +1 -0
  269. package/dist/ui-GHG3UGB3.js +1 -0
  270. package/dist/upgrade-OPZGPM5J.js +1 -0
  271. package/dist/version-D5PJZIRW.js +1 -0
  272. package/dist/version-KRQBMYCH.js +1 -0
  273. package/dist/workerd-L2EJKIAQ.js +18 -0
  274. package/oclif.manifest.json +5247 -6056
  275. package/package.json +17 -41
  276. package/dist/chunk-45T5XUIM.js +0 -1
  277. package/dist/chunk-52KHWFYF.js +0 -1
  278. package/dist/chunk-66TIGB4U.js +0 -415
  279. package/dist/chunk-675GKVCB.js +0 -3
  280. package/dist/chunk-7ES6PV7M.js +0 -847
  281. package/dist/chunk-BF7JM4FH.js +0 -396
  282. package/dist/chunk-FU2Y2M3M.js +0 -5
  283. package/dist/chunk-IDQ4X47Z.js +0 -3
  284. package/dist/chunk-JBSYWYIP.js +0 -2
  285. package/dist/chunk-PBKIXB7L.js +0 -63
  286. package/dist/chunk-SVA22NZQ.js +0 -607
  287. package/dist/error-handler-LC7FITE7.js +0 -1
  288. package/dist/http-proxy-node16-TTURN6MD.js +0 -38
  289. package/dist/lib-3WHF5XD3.js +0 -1
  290. package/dist/local-TWIGLQ7X.js +0 -1
  291. package/dist/node-package-manager-3UCLJPGW.js +0 -1
  292. package/dist/npa-OKDXXRCU.js +0 -1
  293. package/dist/ui-UYE67X4Y.js +0 -1
  294. package/dist/workerd-37BZZEVW.js +0 -18
  295. /package/dist/{chunk-KADPE3PY.js → chunk-7MUKLZOL.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{b as MSt}from"./chunk-52KHWFYF.js";import{c as PSt}from"./chunk-QYR5VPQA.js";import{b as RSt}from"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import{a as __,c as q_,e as I7e,g as el}from"./chunk-VPRTJUIN.js";var R7e=q_((NDt,$4)=>{"use strict";el();var LSt=(()=>{var y=Object.defineProperty,i=Object.getOwnPropertyNames,u=(e,t)=>function(){return e&&(t=(0,e[i(e)[0]])(e=0)),t},S=(e,t)=>function(){return t||(0,e[i(e)[0]])((t={exports:{}}).exports,t),t.exports},P=(e,t)=>{for(var r in t)y(e,r,{get:t[r],enumerable:!0})},z,re,De,nt=u({"src/compiler/corePublic.ts"(){"use strict";z="5.2",re="5.2.2",De=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(De||{})}});function We(e){return e?e.length:0}function ze(e,t){if(e)for(let r=0;r<e.length;r++){let o=t(e[r],r);if(o)return o}}function Jt(e,t){if(e)for(let r=e.length-1;r>=0;r--){let o=t(e[r],r);if(o)return o}}function En(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let o=t(e[r],r);if(o!==void 0)return o}}function Bn(e,t){for(let r of e){let o=t(r);if(o!==void 0)return o}}function jr(e,t,r){let o=r;if(e){let s=0;for(let l of e)o=t(o,l,s),s++}return o}function oo(e,t,r){let o=[];M.assertEqual(e.length,t.length);for(let s=0;s<e.length;s++)o.push(r(e[s],t[s],s));return o}function Uo(e,t){if(e.length<=1)return e;let r=[];for(let o=0,s=e.length;o<s;o++)o&&r.push(t),r.push(e[o]);return r}function ni(e,t){if(e){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function Mn(e,t,r){if(e!==void 0)for(let o=r??0;o<e.length;o++){let s=e[o];if(t(s,o))return s}}function Hs(e,t,r){if(e!==void 0)for(let o=r??e.length-1;o>=0;o--){let s=e[o];if(t(s,o))return s}}function ho(e,t,r){if(e===void 0)return-1;for(let o=r??0;o<e.length;o++)if(t(e[o],o))return o;return-1}function _s(e,t,r){if(e===void 0)return-1;for(let o=r??e.length-1;o>=0;o--)if(t(e[o],o))return o;return-1}function Sd(e,t){for(let r=0;r<e.length;r++){let o=t(e[r],r);if(o)return o}return M.fail()}function Br(e,t,r=I0){if(e){for(let o of e)if(r(o,t))return!0}return!1}function Wo(e,t,r=I0){return e.length===t.length&&e.every((o,s)=>r(o,t[s]))}function ks(e,t,r){for(let o=r||0;o<e.length;o++)if(Br(t,e.charCodeAt(o)))return o;return-1}function us(e,t){let r=0;if(e)for(let o=0;o<e.length;o++){let s=e[o];t(s,o)&&r++}return r}function Ar(e,t){if(e){let r=e.length,o=0;for(;o<r&&t(e[o]);)o++;if(o<r){let s=e.slice(0,o);for(o++;o<r;){let l=e[o];t(l)&&s.push(l),o++}return s}}return e}function x0(e,t){let r=0;for(let o=0;o<e.length;o++)t(e[o],o,e)&&(e[r]=e[o],r++);e.length=r}function Dm(e){e.length=0}function vn(e,t){let r;if(e){r=[];for(let o=0;o<e.length;o++)r.push(t(e[o],o))}return r}function*j$(e,t){for(let r of e)yield t(r)}function Wc(e,t){if(e)for(let r=0;r<e.length;r++){let o=e[r],s=t(o,r);if(o!==s){let l=e.slice(0,r);for(l.push(s),r++;r<e.length;r++)l.push(t(e[r],r));return l}}return e}function y_(e){let t=[];for(let r of e)r&&(Jo(r)?Qr(t,r):t.push(r));return t}function Za(e,t){let r;if(e)for(let o=0;o<e.length;o++){let s=t(e[o],o);s&&(Jo(s)?r=Qr(r,s):r=Cn(r,s))}return r||rt}function Ek(e,t){let r=[];if(e)for(let o=0;o<e.length;o++){let s=t(e[o],o);s&&(Jo(s)?Qr(r,s):r.push(s))}return r}function*J$(e,t){for(let r of e){let o=t(r);o&&(yield*o)}}function wye(e,t){let r;if(e)for(let o=0;o<e.length;o++){let s=e[o],l=t(s,o);(r||s!==l||Jo(l))&&(r||(r=e.slice(0,o)),Jo(l)?Qr(r,l):r.push(l))}return r||e}function q$(e,t){let r=[];for(let o=0;o<e.length;o++){let s=t(e[o],o);if(s===void 0)return;r.push(s)}return r}function co(e,t){let r=[];if(e)for(let o=0;o<e.length;o++){let s=t(e[o],o);s!==void 0&&r.push(s)}return r}function*Sk(e,t){for(let r of e){let o=t(r);o!==void 0&&(yield o)}}function u9e(e,t){if(!e)return;let r=new Map;return e.forEach((o,s)=>{let l=t(s,o);if(l!==void 0){let[d,f]=l;d!==void 0&&f!==void 0&&r.set(d,f)}}),r}function Tk(e,t,r){if(e.has(t))return e.get(t);let o=r();return e.set(t,o),o}function lS(e,t){return e.has(t)?!1:(e.add(t),!0)}function*d9e(e){yield e}function X$(e,t,r){let o;if(e){o=[];let s=e.length,l,d,f=0,_=0;for(;f<s;){for(;_<s;){let v=e[_];if(d=t(v,_),_===0)l=d;else if(d!==l)break;_++}if(f<_){let v=r(e.slice(f,_),l,f,_);v&&o.push(v),f=_}l=d,_++}}return o}function Oye(e,t){if(!e)return;let r=new Map;return e.forEach((o,s)=>{let[l,d]=t(s,o);r.set(l,d)}),r}function At(e,t){if(e)if(t){for(let r of e)if(t(r))return!0}else return e.length>0;return!1}function $$(e,t,r){let o;for(let s=0;s<e.length;s++)t(e[s])?o=o===void 0?s:o:o!==void 0&&(r(o,s),o=void 0);o!==void 0&&r(o,e.length)}function yo(e,t){return At(t)?At(e)?[...e,...t]:t:e}function p9e(e,t){return t}function xk(e){return e.map(p9e)}function f9e(e,t,r){let o=xk(e);Bye(e,o,r);let s=e[o[0]],l=[o[0]];for(let d=1;d<o.length;d++){let f=o[d],_=e[f];t(s,_)||(l.push(f),s=_)}return l.sort(),l.map(d=>e[d])}function _9e(e,t){let r=[];for(let o of e)Vf(r,o,t);return r}function XI(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?f9e(e,t,r):_9e(e,t)}function m9e(e,t){if(e.length===0)return rt;let r=e[0],o=[r];for(let s=1;s<e.length;s++){let l=e[s];switch(t(l,r)){case!0:case 0:continue;case-1:return M.fail("Array is unsorted.")}o.push(r=l)}return o}function Y$(){return[]}function ob(e,t,r,o){if(e.length===0)return e.push(t),!0;let s=ab(e,t,Cl,r);return s<0?(e.splice(~s,0,t),!0):o?(e.splice(s,0,t),!0):!1}function Ak(e,t,r){return m9e($R(e,t),r||t||ld)}function Fye(e,t){if(e.length<2)return!0;for(let r=1,o=e.length;r<o;r++)if(t(e[r-1],e[r])===1)return!1;return!0}function M3(e,t,r,o){let s=3;if(e.length<2)return s;let l=t(e[0]);for(let d=1,f=e.length;d<f&&s!==0;d++){let _=t(e[d]);s&1&&r(l,_)>0&&(s&=-2),s&2&&o(l,_)>0&&(s&=-3),l=_}return s}function Im(e,t,r=I0){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!r(e[o],t[o],o))return!1;return!0}function Dk(e){let t;if(e)for(let r=0;r<e.length;r++){let o=e[r];(t||!o)&&(t||(t=e.slice(0,r)),o&&t.push(o))}return t||e}function Wye(e,t,r){if(!t||!e||t.length===0||e.length===0)return t;let o=[];e:for(let s=0,l=0;l<t.length;l++){l>0&&M.assertGreaterThanOrEqual(r(t[l],t[l-1]),0);t:for(let d=s;s<e.length;s++)switch(s>d&&M.assertGreaterThanOrEqual(r(e[s],e[s-1]),0),r(t[l],e[s])){case-1:o.push(t[l]);continue e;case 0:continue e;case 1:continue t}}return o}function Cn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function $I(e,t){return e===void 0?t:t===void 0?e:Jo(e)?Jo(t)?yo(e,t):Cn(e,t):Jo(t)?Cn(t,e):[e,t]}function Q$(e,t){return t<0?e.length+t:t}function Qr(e,t,r,o){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,o);r=r===void 0?0:Q$(t,r),o=o===void 0?t.length:Q$(t,o);for(let s=r;s<o&&s<t.length;s++)t[s]!==void 0&&e.push(t[s]);return e}function Vf(e,t,r){return Br(e,t,r)?!1:(e.push(t),!0)}function Hh(e,t,r){return e?(Vf(e,t,r),e):[t]}function Bye(e,t,r){t.sort((o,s)=>r(e[o],e[s])||tl(o,s))}function $R(e,t){return e.length===0?e:e.slice().sort(t)}function*g9e(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function jy(e,t){let r=xk(e);return Bye(e,r,t),r.map(o=>e[o])}function Z$(e,t,r,o){for(;r<o;){if(e[r]!==t[r])return!1;r++}return!0}function su(e){return e===void 0||e.length===0?void 0:e[0]}function L3(e){if(e)for(let t of e)return t}function $a(e){return M.assert(e.length!==0),e[0]}function Gye(e){for(let t of e)return t;M.fail("iterator is empty")}function gl(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function qa(e){return M.assert(e.length!==0),e[e.length-1]}function ug(e){return e&&e.length===1?e[0]:void 0}function eY(e){return M.checkDefined(ug(e))}function dg(e){return e&&e.length===1?e[0]:e}function tY(e,t,r){let o=e.slice(0);return o[t]=r,o}function ab(e,t,r,o,s){return uA(e,r(t),r,o,s)}function uA(e,t,r,o,s){if(!At(e))return-1;let l=s||0,d=e.length-1;for(;l<=d;){let f=l+(d-l>>1),_=r(e[f],f);switch(o(_,t)){case-1:l=f+1;break;case 0:return f;case 1:d=f-1;break}}return~l}function sd(e,t,r,o,s){if(e&&e.length>0){let l=e.length;if(l>0){let d=o===void 0||o<0?0:o,f=s===void 0||d+s>l-1?l-1:d+s,_;for(arguments.length<=2?(_=e[d],d++):_=r;d<=f;)_=t(_,e[d],d),d++;return _}}return r}function ws(e,t){return $y.call(e,t)}function Ik(e,t){return $y.call(e,t)?e[t]:void 0}function jh(e){let t=[];for(let r in e)$y.call(e,r)&&t.push(r);return t}function h9e(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let o of r)Vf(t,o)}while(e=Object.getPrototypeOf(e));return t}function dA(e){let t=[];for(let r in e)$y.call(e,r)&&t.push(e[r]);return t}function zye(e,t){let r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o);return r}function Aa(e,t){let r=[];for(let o of e)r.push(t?t(o):o);return r}function Ck(e,...t){for(let r of t)if(r!==void 0)for(let o in r)ws(r,o)&&(e[o]=r[o]);return e}function Vye(e,t,r=I0){if(e===t)return!0;if(!e||!t)return!1;for(let o in e)if($y.call(e,o)&&(!$y.call(t,o)||!r(e[o],t[o])))return!1;for(let o in t)if($y.call(t,o)&&!$y.call(e,o))return!1;return!0}function cS(e,t,r=Cl){let o=new Map;for(let s of e){let l=t(s);l!==void 0&&o.set(l,r(s))}return o}function Uye(e,t,r=Cl){let o=[];for(let s of e)o[t(s)]=r(s);return o}function Nk(e,t,r=Cl){let o=Uf();for(let s of e)o.add(t(s),r(s));return o}function YR(e,t,r=Cl){return Aa(Nk(e,t).values(),r)}function Kye(e,t){let r={};if(e)for(let o of e){let s=`${t(o)}`;(r[s]??(r[s]=[])).push(o)}return r}function nY(e){let t={};for(let r in e)$y.call(e,r)&&(t[r]=e[r]);return t}function k3(e,t){let r={};for(let o in t)$y.call(t,o)&&(r[o]=t[o]);for(let o in e)$y.call(e,o)&&(r[o]=e[o]);return r}function rY(e,t){for(let r in t)$y.call(t,r)&&(e[r]=t[r])}function _a(e,t){return t?t.bind(e):void 0}function Uf(){let e=new Map;return e.add=y9e,e.remove=v9e,e}function y9e(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function v9e(e,t){let r=this.get(e);r&&(ZR(r,t),r.length||this.delete(e))}function iY(e){let t=e?.slice()||[],r=0;function o(){return r===t.length}function s(...d){t.push(...d)}function l(){if(o())throw new Error("Queue is empty");let d=t[r];if(t[r]=void 0,r++,r>100&&r>t.length>>1){let f=t.length-r;t.copyWithin(0,r),t.length=f,r=0}return d}return{enqueue:s,dequeue:l,isEmpty:o}}function b9e(e,t){let r=new Map,o=0;function*s(){for(let d of r.values())Jo(d)?yield*d:yield d}let l={has(d){let f=e(d);if(!r.has(f))return!1;let _=r.get(f);if(!Jo(_))return t(_,d);for(let v of _)if(t(v,d))return!0;return!1},add(d){let f=e(d);if(r.has(f)){let _=r.get(f);if(Jo(_))Br(_,d,t)||(_.push(d),o++);else{let v=_;t(v,d)||(r.set(f,[v,d]),o++)}}else r.set(f,d),o++;return this},delete(d){let f=e(d);if(!r.has(f))return!1;let _=r.get(f);if(Jo(_)){for(let v=0;v<_.length;v++)if(t(_[v],d))return _.length===1?r.delete(f):_.length===2?r.set(f,_[1-v]):aY(_,v),o--,!0}else if(t(_,d))return r.delete(f),o--,!0;return!1},clear(){r.clear(),o=0},get size(){return o},forEach(d){for(let f of Aa(r.values()))if(Jo(f))for(let _ of f)d(_,_,l);else{let _=f;d(_,_,l)}},keys(){return s()},values(){return s()},*entries(){for(let d of s())yield[d,d]},[Symbol.iterator]:()=>s(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return l}function Jo(e){return Array.isArray(e)}function Rk(e){return Jo(e)?e:[e]}function ma(e){return typeof e=="string"}function Jy(e){return typeof e=="number"}function ci(e,t){return e!==void 0&&t(e)?e:void 0}function ra(e,t){return e!==void 0&&t(e)?e:M.fail(`Invalid cast. The supplied value ${e} did not pass the test '${M.getFunctionName(t)}'.`)}function Os(e){}function qy(){return!1}function A0(){return!0}function D0(){}function Cl(e){return e}function Hye(e){return e.toLowerCase()}function Q_(e){return dY.test(e)?e.replace(dY,Hye):e}function Ko(){throw new Error("Not implemented")}function gp(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function pg(e){let t=new Map;return r=>{let o=`${typeof r}:${r}`,s=t.get(o);return s===void 0&&!t.has(o)&&(s=e(r),t.set(o,s)),s}}function E9e(e){let t=new WeakMap;return r=>{let o=t.get(r);return o===void 0&&!t.has(r)&&(o=e(r),t.set(r,o)),o}}function jye(e,t){return(...r)=>{let o=t.get(r);return o===void 0&&!t.has(r)&&(o=e(...r),t.set(r,o)),o}}function S9e(e,t,r,o,s){if(s){let l=[];for(let d=0;d<arguments.length;d++)l[d]=arguments[d];return d=>sd(l,(f,_)=>_(f),d)}else return o?l=>o(r(t(e(l)))):r?l=>r(t(e(l))):t?l=>t(e(l)):e?l=>e(l):l=>l}function I0(e,t){return e===t}function pA(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function fA(e,t){return I0(e,t)}function Jye(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function tl(e,t){return Jye(e,t)}function w3(e,t){return tl(e?.start,t?.start)||tl(e?.length,t?.length)}function oY(e,t){return sd(e,(r,o)=>t(r,o)===-1?r:o)}function O3(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),e<t?-1:e>t?1:0)}function qye(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),e<t?-1:e>t?1:0)}function ld(e,t){return Jye(e,t)}function F3(e){return e?O3:ld}function Xye(){return K3}function $ye(e){K3!==e&&(K3=e,fY=void 0)}function Pk(e,t){return(fY||(fY=sve(K3)))(e,t)}function Yye(e,t,r,o){return e===t?0:e===void 0?-1:t===void 0?1:o(e[r],t[r])}function uS(e,t){return tl(e?1:0,t?1:0)}function QR(e,t,r){let o=Math.max(2,Math.floor(e.length*.34)),s=Math.floor(e.length*.4)+1,l;for(let d of t){let f=r(d);if(f!==void 0&&Math.abs(f.length-e.length)<=o){if(f===e||f.length<3&&f.toLowerCase()!==e.toLowerCase())continue;let _=T9e(e,f,s-.1);if(_===void 0)continue;M.assert(_<s),s=_,l=d}}return l}function T9e(e,t,r){let o=new Array(t.length+1),s=new Array(t.length+1),l=r+.01;for(let f=0;f<=t.length;f++)o[f]=f;for(let f=1;f<=e.length;f++){let _=e.charCodeAt(f-1),v=Math.ceil(f>r?f-r:1),h=Math.floor(t.length>r+f?r+f:t.length);s[0]=f;let T=f;for(let N=1;N<v;N++)s[N]=l;for(let N=v;N<=h;N++){let R=e[f-1].toLowerCase()===t[N-1].toLowerCase()?o[N-1]+.1:o[N-1]+2,O=_===t.charCodeAt(N-1)?o[N-1]:Math.min(o[N]+1,s[N-1]+1,R);s[N]=O,T=Math.min(T,O)}for(let N=h+1;N<=t.length;N++)s[N]=l;if(T>r)return;let I=o;o=s,s=I}let d=o[t.length];return d>r?void 0:d}function $l(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function YI(e,t){return $l(e,t)?e.slice(0,e.length-t.length):e}function Qye(e,t){return $l(e,t)?e.slice(0,e.length-t.length):void 0}function Ru(e,t){return e.indexOf(t)!==-1}function Zye(e){let t=e.length;for(let r=t-1;r>0;r--){let o=e.charCodeAt(r);if(o>=48&&o<=57)do--r,o=e.charCodeAt(r);while(r>0&&o>=48&&o<=57);else if(r>4&&(o===110||o===78)){if(--r,o=e.charCodeAt(r),o!==105&&o!==73||(--r,o=e.charCodeAt(r),o!==109&&o!==77))break;--r,o=e.charCodeAt(r)}else break;if(o!==45&&o!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function W3(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return C0(e,r),!0;return!1}function C0(e,t){for(let r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function aY(e,t){e[t]=e[e.length-1],e.pop()}function ZR(e,t){return x9e(e,r=>r===t)}function x9e(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return aY(e,r),!0;return!1}function Pu(e){return e?Cl:Q_}function eve({prefix:e,suffix:t}){return`${e}*${t}`}function tve(e,t){return M.assert(B3(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function sY(e,t,r){let o,s=-1;for(let l of e){let d=t(l);B3(d,r)&&d.prefix.length>s&&(s=d.prefix.length,o=l)}return o}function bo(e,t){return e.lastIndexOf(t,0)===0}function eP(e,t){return bo(e,t)?e.substr(t.length):e}function lY(e,t,r=Cl){return bo(r(e),r(t))?e.substring(t.length):void 0}function B3({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&bo(r,e)&&$l(r,t)}function G3(e,t){return r=>e(r)&&t(r)}function Z_(...e){return(...t)=>{let r;for(let o of e)if(r=o(...t),r)return r;return r}}function z3(e){return(...t)=>!e(...t)}function A9e(e){}function ux(e){return e===void 0?void 0:[e]}function nve(e,t,r,o,s,l){l=l||Os;let d=0,f=0,_=e.length,v=t.length,h=!1;for(;d<_&&f<v;){let T=e[d],I=t[f],N=r(T,I);N===-1?(o(T),d++,h=!0):N===1?(s(I),f++,h=!0):(l(I,T),d++,f++)}for(;d<_;)o(e[d++]),h=!0;for(;f<v;)s(t[f++]),h=!0;return h}function rve(e){let t=[];return ive(e,t,void 0,0),t}function ive(e,t,r,o){for(let s of e[o]){let l;r?(l=r.slice(),l.push(s)):l=[s],o===e.length-1?t.push(l):ive(e,t,l,o+1)}}function dx(e,t,r=" "){return t<=e.length?e:r.repeat(t-e.length)+e}function D9e(e,t,r=" "){return t<=e.length?e:e+r.repeat(t-e.length)}function V3(e,t){if(e){let r=e.length,o=0;for(;o<r&&t(e[o]);)o++;return e.slice(0,o)}}function ove(e,t){if(e){let r=e.length,o=0;for(;o<r&&t(e[o]);)o++;return e.slice(o)}}function I9e(e){let t=e.length-1;for(;t>=0&&$g(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function cY(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof $4=="object"}var rt,U3,ave,uY,Xy,$y,dY,pY,sve,fY,K3,dS,_A,tP,C9e=u({"src/compiler/core.ts"(){"use strict";ea(),rt=[],U3=new Map,ave=new Set,uY=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(uY||{}),Xy=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e&&(t=Q$(e,t),t<e.length))return e[t]},$y=Object.prototype.hasOwnProperty,dY=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g,pY=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(pY||{}),sve=(()=>{let e,t,r=f();return _;function o(v,h,T){if(v===h)return 0;if(v===void 0)return-1;if(h===void 0)return 1;let I=T(v,h);return I<0?-1:I>0?1:0}function s(v){let h=new Intl.Collator(v,{usage:"sort",sensitivity:"variant"}).compare;return(T,I)=>o(T,I,h)}function l(v){if(v!==void 0)return d();return(T,I)=>o(T,I,h);function h(T,I){return T.localeCompare(I)}}function d(){return(T,I)=>o(T,I,v);function v(T,I){return h(T.toUpperCase(),I.toUpperCase())||h(T,I)}function h(T,I){return T<I?-1:T>I?1:0}}function f(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?s:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?l:d}function _(v){return v===void 0?e||(e=r(v)):v==="en-US"?t||(t=r(v)):r(v)}})(),dS=String.prototype.trim?e=>e.trim():e=>_A(tP(e)),_A=String.prototype.trimEnd?e=>e.trimEnd():I9e,tP=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),_Y,M,N9e=u({"src/compiler/debug.ts"(){"use strict";ea(),ea(),_Y=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(_Y||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(Kt){return e.currentLogLevel<=Kt}e.shouldLog=r;function o(Kt,xn){e.loggingHost&&r(Kt)&&e.loggingHost.log(Kt,xn)}function s(Kt){o(3,Kt)}e.log=s,(Kt=>{function xn(mn){o(1,mn)}Kt.error=xn;function jn(mn){o(2,mn)}Kt.warn=jn;function Gr(mn){o(3,mn)}Kt.log=Gr;function Ui(mn){o(4,mn)}Kt.trace=Ui})(s=e.log||(e.log={}));let l={};function d(){return t}e.getAssertionLevel=d;function f(Kt){let xn=t;if(t=Kt,Kt>xn)for(let jn of jh(l)){let Gr=l[jn];Gr!==void 0&&e[jn]!==Gr.assertion&&Kt>=Gr.level&&(e[jn]=Gr,l[jn]=void 0)}}e.setAssertionLevel=f;function _(Kt){return t>=Kt}e.shouldAssert=_;function v(Kt,xn){return _(Kt)?!0:(l[xn]={level:Kt,assertion:e[xn]},e[xn]=Os,!1)}function h(Kt,xn){debugger;let jn=new Error(Kt?`Debug Failure. ${Kt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(jn,xn||h),jn}e.fail=h;function T(Kt,xn,jn){return h(`${xn||"Unexpected node."}\r
1
+ import{b as MSt}from"./chunk-5Y7GIF2W.js";import{c as PSt}from"./chunk-QYR5VPQA.js";import{b as RSt}from"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import{a as __,c as q_,e as I7e,g as el}from"./chunk-VPRTJUIN.js";var R7e=q_((NDt,$4)=>{"use strict";el();var LSt=(()=>{var y=Object.defineProperty,i=Object.getOwnPropertyNames,u=(e,t)=>function(){return e&&(t=(0,e[i(e)[0]])(e=0)),t},S=(e,t)=>function(){return t||(0,e[i(e)[0]])((t={exports:{}}).exports,t),t.exports},P=(e,t)=>{for(var r in t)y(e,r,{get:t[r],enumerable:!0})},z,re,De,nt=u({"src/compiler/corePublic.ts"(){"use strict";z="5.2",re="5.2.2",De=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(De||{})}});function We(e){return e?e.length:0}function ze(e,t){if(e)for(let r=0;r<e.length;r++){let o=t(e[r],r);if(o)return o}}function Jt(e,t){if(e)for(let r=e.length-1;r>=0;r--){let o=t(e[r],r);if(o)return o}}function En(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let o=t(e[r],r);if(o!==void 0)return o}}function Bn(e,t){for(let r of e){let o=t(r);if(o!==void 0)return o}}function jr(e,t,r){let o=r;if(e){let s=0;for(let l of e)o=t(o,l,s),s++}return o}function oo(e,t,r){let o=[];M.assertEqual(e.length,t.length);for(let s=0;s<e.length;s++)o.push(r(e[s],t[s],s));return o}function Uo(e,t){if(e.length<=1)return e;let r=[];for(let o=0,s=e.length;o<s;o++)o&&r.push(t),r.push(e[o]);return r}function ni(e,t){if(e){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function Mn(e,t,r){if(e!==void 0)for(let o=r??0;o<e.length;o++){let s=e[o];if(t(s,o))return s}}function Hs(e,t,r){if(e!==void 0)for(let o=r??e.length-1;o>=0;o--){let s=e[o];if(t(s,o))return s}}function ho(e,t,r){if(e===void 0)return-1;for(let o=r??0;o<e.length;o++)if(t(e[o],o))return o;return-1}function _s(e,t,r){if(e===void 0)return-1;for(let o=r??e.length-1;o>=0;o--)if(t(e[o],o))return o;return-1}function Sd(e,t){for(let r=0;r<e.length;r++){let o=t(e[r],r);if(o)return o}return M.fail()}function Br(e,t,r=I0){if(e){for(let o of e)if(r(o,t))return!0}return!1}function Wo(e,t,r=I0){return e.length===t.length&&e.every((o,s)=>r(o,t[s]))}function ks(e,t,r){for(let o=r||0;o<e.length;o++)if(Br(t,e.charCodeAt(o)))return o;return-1}function us(e,t){let r=0;if(e)for(let o=0;o<e.length;o++){let s=e[o];t(s,o)&&r++}return r}function Ar(e,t){if(e){let r=e.length,o=0;for(;o<r&&t(e[o]);)o++;if(o<r){let s=e.slice(0,o);for(o++;o<r;){let l=e[o];t(l)&&s.push(l),o++}return s}}return e}function x0(e,t){let r=0;for(let o=0;o<e.length;o++)t(e[o],o,e)&&(e[r]=e[o],r++);e.length=r}function Dm(e){e.length=0}function vn(e,t){let r;if(e){r=[];for(let o=0;o<e.length;o++)r.push(t(e[o],o))}return r}function*j$(e,t){for(let r of e)yield t(r)}function Wc(e,t){if(e)for(let r=0;r<e.length;r++){let o=e[r],s=t(o,r);if(o!==s){let l=e.slice(0,r);for(l.push(s),r++;r<e.length;r++)l.push(t(e[r],r));return l}}return e}function y_(e){let t=[];for(let r of e)r&&(Jo(r)?Qr(t,r):t.push(r));return t}function Za(e,t){let r;if(e)for(let o=0;o<e.length;o++){let s=t(e[o],o);s&&(Jo(s)?r=Qr(r,s):r=Cn(r,s))}return r||rt}function Ek(e,t){let r=[];if(e)for(let o=0;o<e.length;o++){let s=t(e[o],o);s&&(Jo(s)?Qr(r,s):r.push(s))}return r}function*J$(e,t){for(let r of e){let o=t(r);o&&(yield*o)}}function wye(e,t){let r;if(e)for(let o=0;o<e.length;o++){let s=e[o],l=t(s,o);(r||s!==l||Jo(l))&&(r||(r=e.slice(0,o)),Jo(l)?Qr(r,l):r.push(l))}return r||e}function q$(e,t){let r=[];for(let o=0;o<e.length;o++){let s=t(e[o],o);if(s===void 0)return;r.push(s)}return r}function co(e,t){let r=[];if(e)for(let o=0;o<e.length;o++){let s=t(e[o],o);s!==void 0&&r.push(s)}return r}function*Sk(e,t){for(let r of e){let o=t(r);o!==void 0&&(yield o)}}function u9e(e,t){if(!e)return;let r=new Map;return e.forEach((o,s)=>{let l=t(s,o);if(l!==void 0){let[d,f]=l;d!==void 0&&f!==void 0&&r.set(d,f)}}),r}function Tk(e,t,r){if(e.has(t))return e.get(t);let o=r();return e.set(t,o),o}function lS(e,t){return e.has(t)?!1:(e.add(t),!0)}function*d9e(e){yield e}function X$(e,t,r){let o;if(e){o=[];let s=e.length,l,d,f=0,_=0;for(;f<s;){for(;_<s;){let v=e[_];if(d=t(v,_),_===0)l=d;else if(d!==l)break;_++}if(f<_){let v=r(e.slice(f,_),l,f,_);v&&o.push(v),f=_}l=d,_++}}return o}function Oye(e,t){if(!e)return;let r=new Map;return e.forEach((o,s)=>{let[l,d]=t(s,o);r.set(l,d)}),r}function At(e,t){if(e)if(t){for(let r of e)if(t(r))return!0}else return e.length>0;return!1}function $$(e,t,r){let o;for(let s=0;s<e.length;s++)t(e[s])?o=o===void 0?s:o:o!==void 0&&(r(o,s),o=void 0);o!==void 0&&r(o,e.length)}function yo(e,t){return At(t)?At(e)?[...e,...t]:t:e}function p9e(e,t){return t}function xk(e){return e.map(p9e)}function f9e(e,t,r){let o=xk(e);Bye(e,o,r);let s=e[o[0]],l=[o[0]];for(let d=1;d<o.length;d++){let f=o[d],_=e[f];t(s,_)||(l.push(f),s=_)}return l.sort(),l.map(d=>e[d])}function _9e(e,t){let r=[];for(let o of e)Vf(r,o,t);return r}function XI(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?f9e(e,t,r):_9e(e,t)}function m9e(e,t){if(e.length===0)return rt;let r=e[0],o=[r];for(let s=1;s<e.length;s++){let l=e[s];switch(t(l,r)){case!0:case 0:continue;case-1:return M.fail("Array is unsorted.")}o.push(r=l)}return o}function Y$(){return[]}function ob(e,t,r,o){if(e.length===0)return e.push(t),!0;let s=ab(e,t,Cl,r);return s<0?(e.splice(~s,0,t),!0):o?(e.splice(s,0,t),!0):!1}function Ak(e,t,r){return m9e($R(e,t),r||t||ld)}function Fye(e,t){if(e.length<2)return!0;for(let r=1,o=e.length;r<o;r++)if(t(e[r-1],e[r])===1)return!1;return!0}function M3(e,t,r,o){let s=3;if(e.length<2)return s;let l=t(e[0]);for(let d=1,f=e.length;d<f&&s!==0;d++){let _=t(e[d]);s&1&&r(l,_)>0&&(s&=-2),s&2&&o(l,_)>0&&(s&=-3),l=_}return s}function Im(e,t,r=I0){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!r(e[o],t[o],o))return!1;return!0}function Dk(e){let t;if(e)for(let r=0;r<e.length;r++){let o=e[r];(t||!o)&&(t||(t=e.slice(0,r)),o&&t.push(o))}return t||e}function Wye(e,t,r){if(!t||!e||t.length===0||e.length===0)return t;let o=[];e:for(let s=0,l=0;l<t.length;l++){l>0&&M.assertGreaterThanOrEqual(r(t[l],t[l-1]),0);t:for(let d=s;s<e.length;s++)switch(s>d&&M.assertGreaterThanOrEqual(r(e[s],e[s-1]),0),r(t[l],e[s])){case-1:o.push(t[l]);continue e;case 0:continue e;case 1:continue t}}return o}function Cn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function $I(e,t){return e===void 0?t:t===void 0?e:Jo(e)?Jo(t)?yo(e,t):Cn(e,t):Jo(t)?Cn(t,e):[e,t]}function Q$(e,t){return t<0?e.length+t:t}function Qr(e,t,r,o){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,o);r=r===void 0?0:Q$(t,r),o=o===void 0?t.length:Q$(t,o);for(let s=r;s<o&&s<t.length;s++)t[s]!==void 0&&e.push(t[s]);return e}function Vf(e,t,r){return Br(e,t,r)?!1:(e.push(t),!0)}function Hh(e,t,r){return e?(Vf(e,t,r),e):[t]}function Bye(e,t,r){t.sort((o,s)=>r(e[o],e[s])||tl(o,s))}function $R(e,t){return e.length===0?e:e.slice().sort(t)}function*g9e(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function jy(e,t){let r=xk(e);return Bye(e,r,t),r.map(o=>e[o])}function Z$(e,t,r,o){for(;r<o;){if(e[r]!==t[r])return!1;r++}return!0}function su(e){return e===void 0||e.length===0?void 0:e[0]}function L3(e){if(e)for(let t of e)return t}function $a(e){return M.assert(e.length!==0),e[0]}function Gye(e){for(let t of e)return t;M.fail("iterator is empty")}function gl(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function qa(e){return M.assert(e.length!==0),e[e.length-1]}function ug(e){return e&&e.length===1?e[0]:void 0}function eY(e){return M.checkDefined(ug(e))}function dg(e){return e&&e.length===1?e[0]:e}function tY(e,t,r){let o=e.slice(0);return o[t]=r,o}function ab(e,t,r,o,s){return uA(e,r(t),r,o,s)}function uA(e,t,r,o,s){if(!At(e))return-1;let l=s||0,d=e.length-1;for(;l<=d;){let f=l+(d-l>>1),_=r(e[f],f);switch(o(_,t)){case-1:l=f+1;break;case 0:return f;case 1:d=f-1;break}}return~l}function sd(e,t,r,o,s){if(e&&e.length>0){let l=e.length;if(l>0){let d=o===void 0||o<0?0:o,f=s===void 0||d+s>l-1?l-1:d+s,_;for(arguments.length<=2?(_=e[d],d++):_=r;d<=f;)_=t(_,e[d],d),d++;return _}}return r}function ws(e,t){return $y.call(e,t)}function Ik(e,t){return $y.call(e,t)?e[t]:void 0}function jh(e){let t=[];for(let r in e)$y.call(e,r)&&t.push(r);return t}function h9e(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let o of r)Vf(t,o)}while(e=Object.getPrototypeOf(e));return t}function dA(e){let t=[];for(let r in e)$y.call(e,r)&&t.push(e[r]);return t}function zye(e,t){let r=new Array(e);for(let o=0;o<e;o++)r[o]=t(o);return r}function Aa(e,t){let r=[];for(let o of e)r.push(t?t(o):o);return r}function Ck(e,...t){for(let r of t)if(r!==void 0)for(let o in r)ws(r,o)&&(e[o]=r[o]);return e}function Vye(e,t,r=I0){if(e===t)return!0;if(!e||!t)return!1;for(let o in e)if($y.call(e,o)&&(!$y.call(t,o)||!r(e[o],t[o])))return!1;for(let o in t)if($y.call(t,o)&&!$y.call(e,o))return!1;return!0}function cS(e,t,r=Cl){let o=new Map;for(let s of e){let l=t(s);l!==void 0&&o.set(l,r(s))}return o}function Uye(e,t,r=Cl){let o=[];for(let s of e)o[t(s)]=r(s);return o}function Nk(e,t,r=Cl){let o=Uf();for(let s of e)o.add(t(s),r(s));return o}function YR(e,t,r=Cl){return Aa(Nk(e,t).values(),r)}function Kye(e,t){let r={};if(e)for(let o of e){let s=`${t(o)}`;(r[s]??(r[s]=[])).push(o)}return r}function nY(e){let t={};for(let r in e)$y.call(e,r)&&(t[r]=e[r]);return t}function k3(e,t){let r={};for(let o in t)$y.call(t,o)&&(r[o]=t[o]);for(let o in e)$y.call(e,o)&&(r[o]=e[o]);return r}function rY(e,t){for(let r in t)$y.call(t,r)&&(e[r]=t[r])}function _a(e,t){return t?t.bind(e):void 0}function Uf(){let e=new Map;return e.add=y9e,e.remove=v9e,e}function y9e(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function v9e(e,t){let r=this.get(e);r&&(ZR(r,t),r.length||this.delete(e))}function iY(e){let t=e?.slice()||[],r=0;function o(){return r===t.length}function s(...d){t.push(...d)}function l(){if(o())throw new Error("Queue is empty");let d=t[r];if(t[r]=void 0,r++,r>100&&r>t.length>>1){let f=t.length-r;t.copyWithin(0,r),t.length=f,r=0}return d}return{enqueue:s,dequeue:l,isEmpty:o}}function b9e(e,t){let r=new Map,o=0;function*s(){for(let d of r.values())Jo(d)?yield*d:yield d}let l={has(d){let f=e(d);if(!r.has(f))return!1;let _=r.get(f);if(!Jo(_))return t(_,d);for(let v of _)if(t(v,d))return!0;return!1},add(d){let f=e(d);if(r.has(f)){let _=r.get(f);if(Jo(_))Br(_,d,t)||(_.push(d),o++);else{let v=_;t(v,d)||(r.set(f,[v,d]),o++)}}else r.set(f,d),o++;return this},delete(d){let f=e(d);if(!r.has(f))return!1;let _=r.get(f);if(Jo(_)){for(let v=0;v<_.length;v++)if(t(_[v],d))return _.length===1?r.delete(f):_.length===2?r.set(f,_[1-v]):aY(_,v),o--,!0}else if(t(_,d))return r.delete(f),o--,!0;return!1},clear(){r.clear(),o=0},get size(){return o},forEach(d){for(let f of Aa(r.values()))if(Jo(f))for(let _ of f)d(_,_,l);else{let _=f;d(_,_,l)}},keys(){return s()},values(){return s()},*entries(){for(let d of s())yield[d,d]},[Symbol.iterator]:()=>s(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return l}function Jo(e){return Array.isArray(e)}function Rk(e){return Jo(e)?e:[e]}function ma(e){return typeof e=="string"}function Jy(e){return typeof e=="number"}function ci(e,t){return e!==void 0&&t(e)?e:void 0}function ra(e,t){return e!==void 0&&t(e)?e:M.fail(`Invalid cast. The supplied value ${e} did not pass the test '${M.getFunctionName(t)}'.`)}function Os(e){}function qy(){return!1}function A0(){return!0}function D0(){}function Cl(e){return e}function Hye(e){return e.toLowerCase()}function Q_(e){return dY.test(e)?e.replace(dY,Hye):e}function Ko(){throw new Error("Not implemented")}function gp(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function pg(e){let t=new Map;return r=>{let o=`${typeof r}:${r}`,s=t.get(o);return s===void 0&&!t.has(o)&&(s=e(r),t.set(o,s)),s}}function E9e(e){let t=new WeakMap;return r=>{let o=t.get(r);return o===void 0&&!t.has(r)&&(o=e(r),t.set(r,o)),o}}function jye(e,t){return(...r)=>{let o=t.get(r);return o===void 0&&!t.has(r)&&(o=e(...r),t.set(r,o)),o}}function S9e(e,t,r,o,s){if(s){let l=[];for(let d=0;d<arguments.length;d++)l[d]=arguments[d];return d=>sd(l,(f,_)=>_(f),d)}else return o?l=>o(r(t(e(l)))):r?l=>r(t(e(l))):t?l=>t(e(l)):e?l=>e(l):l=>l}function I0(e,t){return e===t}function pA(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function fA(e,t){return I0(e,t)}function Jye(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function tl(e,t){return Jye(e,t)}function w3(e,t){return tl(e?.start,t?.start)||tl(e?.length,t?.length)}function oY(e,t){return sd(e,(r,o)=>t(r,o)===-1?r:o)}function O3(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),e<t?-1:e>t?1:0)}function qye(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),e<t?-1:e>t?1:0)}function ld(e,t){return Jye(e,t)}function F3(e){return e?O3:ld}function Xye(){return K3}function $ye(e){K3!==e&&(K3=e,fY=void 0)}function Pk(e,t){return(fY||(fY=sve(K3)))(e,t)}function Yye(e,t,r,o){return e===t?0:e===void 0?-1:t===void 0?1:o(e[r],t[r])}function uS(e,t){return tl(e?1:0,t?1:0)}function QR(e,t,r){let o=Math.max(2,Math.floor(e.length*.34)),s=Math.floor(e.length*.4)+1,l;for(let d of t){let f=r(d);if(f!==void 0&&Math.abs(f.length-e.length)<=o){if(f===e||f.length<3&&f.toLowerCase()!==e.toLowerCase())continue;let _=T9e(e,f,s-.1);if(_===void 0)continue;M.assert(_<s),s=_,l=d}}return l}function T9e(e,t,r){let o=new Array(t.length+1),s=new Array(t.length+1),l=r+.01;for(let f=0;f<=t.length;f++)o[f]=f;for(let f=1;f<=e.length;f++){let _=e.charCodeAt(f-1),v=Math.ceil(f>r?f-r:1),h=Math.floor(t.length>r+f?r+f:t.length);s[0]=f;let T=f;for(let N=1;N<v;N++)s[N]=l;for(let N=v;N<=h;N++){let R=e[f-1].toLowerCase()===t[N-1].toLowerCase()?o[N-1]+.1:o[N-1]+2,O=_===t.charCodeAt(N-1)?o[N-1]:Math.min(o[N]+1,s[N-1]+1,R);s[N]=O,T=Math.min(T,O)}for(let N=h+1;N<=t.length;N++)s[N]=l;if(T>r)return;let I=o;o=s,s=I}let d=o[t.length];return d>r?void 0:d}function $l(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function YI(e,t){return $l(e,t)?e.slice(0,e.length-t.length):e}function Qye(e,t){return $l(e,t)?e.slice(0,e.length-t.length):void 0}function Ru(e,t){return e.indexOf(t)!==-1}function Zye(e){let t=e.length;for(let r=t-1;r>0;r--){let o=e.charCodeAt(r);if(o>=48&&o<=57)do--r,o=e.charCodeAt(r);while(r>0&&o>=48&&o<=57);else if(r>4&&(o===110||o===78)){if(--r,o=e.charCodeAt(r),o!==105&&o!==73||(--r,o=e.charCodeAt(r),o!==109&&o!==77))break;--r,o=e.charCodeAt(r)}else break;if(o!==45&&o!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function W3(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return C0(e,r),!0;return!1}function C0(e,t){for(let r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function aY(e,t){e[t]=e[e.length-1],e.pop()}function ZR(e,t){return x9e(e,r=>r===t)}function x9e(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return aY(e,r),!0;return!1}function Pu(e){return e?Cl:Q_}function eve({prefix:e,suffix:t}){return`${e}*${t}`}function tve(e,t){return M.assert(B3(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function sY(e,t,r){let o,s=-1;for(let l of e){let d=t(l);B3(d,r)&&d.prefix.length>s&&(s=d.prefix.length,o=l)}return o}function bo(e,t){return e.lastIndexOf(t,0)===0}function eP(e,t){return bo(e,t)?e.substr(t.length):e}function lY(e,t,r=Cl){return bo(r(e),r(t))?e.substring(t.length):void 0}function B3({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&bo(r,e)&&$l(r,t)}function G3(e,t){return r=>e(r)&&t(r)}function Z_(...e){return(...t)=>{let r;for(let o of e)if(r=o(...t),r)return r;return r}}function z3(e){return(...t)=>!e(...t)}function A9e(e){}function ux(e){return e===void 0?void 0:[e]}function nve(e,t,r,o,s,l){l=l||Os;let d=0,f=0,_=e.length,v=t.length,h=!1;for(;d<_&&f<v;){let T=e[d],I=t[f],N=r(T,I);N===-1?(o(T),d++,h=!0):N===1?(s(I),f++,h=!0):(l(I,T),d++,f++)}for(;d<_;)o(e[d++]),h=!0;for(;f<v;)s(t[f++]),h=!0;return h}function rve(e){let t=[];return ive(e,t,void 0,0),t}function ive(e,t,r,o){for(let s of e[o]){let l;r?(l=r.slice(),l.push(s)):l=[s],o===e.length-1?t.push(l):ive(e,t,l,o+1)}}function dx(e,t,r=" "){return t<=e.length?e:r.repeat(t-e.length)+e}function D9e(e,t,r=" "){return t<=e.length?e:e+r.repeat(t-e.length)}function V3(e,t){if(e){let r=e.length,o=0;for(;o<r&&t(e[o]);)o++;return e.slice(0,o)}}function ove(e,t){if(e){let r=e.length,o=0;for(;o<r&&t(e[o]);)o++;return e.slice(o)}}function I9e(e){let t=e.length-1;for(;t>=0&&$g(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function cY(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof $4=="object"}var rt,U3,ave,uY,Xy,$y,dY,pY,sve,fY,K3,dS,_A,tP,C9e=u({"src/compiler/core.ts"(){"use strict";ea(),rt=[],U3=new Map,ave=new Set,uY=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(uY||{}),Xy=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e&&(t=Q$(e,t),t<e.length))return e[t]},$y=Object.prototype.hasOwnProperty,dY=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g,pY=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(pY||{}),sve=(()=>{let e,t,r=f();return _;function o(v,h,T){if(v===h)return 0;if(v===void 0)return-1;if(h===void 0)return 1;let I=T(v,h);return I<0?-1:I>0?1:0}function s(v){let h=new Intl.Collator(v,{usage:"sort",sensitivity:"variant"}).compare;return(T,I)=>o(T,I,h)}function l(v){if(v!==void 0)return d();return(T,I)=>o(T,I,h);function h(T,I){return T.localeCompare(I)}}function d(){return(T,I)=>o(T,I,v);function v(T,I){return h(T.toUpperCase(),I.toUpperCase())||h(T,I)}function h(T,I){return T<I?-1:T>I?1:0}}function f(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?s:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?l:d}function _(v){return v===void 0?e||(e=r(v)):v==="en-US"?t||(t=r(v)):r(v)}})(),dS=String.prototype.trim?e=>e.trim():e=>_A(tP(e)),_A=String.prototype.trimEnd?e=>e.trimEnd():I9e,tP=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),_Y,M,N9e=u({"src/compiler/debug.ts"(){"use strict";ea(),ea(),_Y=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(_Y||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(Kt){return e.currentLogLevel<=Kt}e.shouldLog=r;function o(Kt,xn){e.loggingHost&&r(Kt)&&e.loggingHost.log(Kt,xn)}function s(Kt){o(3,Kt)}e.log=s,(Kt=>{function xn(mn){o(1,mn)}Kt.error=xn;function jn(mn){o(2,mn)}Kt.warn=jn;function Gr(mn){o(3,mn)}Kt.log=Gr;function Ui(mn){o(4,mn)}Kt.trace=Ui})(s=e.log||(e.log={}));let l={};function d(){return t}e.getAssertionLevel=d;function f(Kt){let xn=t;if(t=Kt,Kt>xn)for(let jn of jh(l)){let Gr=l[jn];Gr!==void 0&&e[jn]!==Gr.assertion&&Kt>=Gr.level&&(e[jn]=Gr,l[jn]=void 0)}}e.setAssertionLevel=f;function _(Kt){return t>=Kt}e.shouldAssert=_;function v(Kt,xn){return _(Kt)?!0:(l[xn]={level:Kt,assertion:e[xn]},e[xn]=Os,!1)}function h(Kt,xn){debugger;let jn=new Error(Kt?`Debug Failure. ${Kt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(jn,xn||h),jn}e.fail=h;function T(Kt,xn,jn){return h(`${xn||"Unexpected node."}\r
2
2
  Node ${He(Kt.kind)} was unexpected.`,jn||T)}e.failBadSyntaxKind=T;function I(Kt,xn,jn,Gr){Kt||(xn=xn?`False expression: ${xn}`:"False expression.",jn&&(xn+=`\r
3
3
  Verbose Debug Information: `+(typeof jn=="string"?jn:jn())),h(xn,Gr||I))}e.assert=I;function N(Kt,xn,jn,Gr,Ui){if(Kt!==xn){let mn=jn?Gr?`${jn} ${Gr}`:jn:"";h(`Expected ${Kt} === ${xn}. ${mn}`,Ui||N)}}e.assertEqual=N;function R(Kt,xn,jn,Gr){Kt>=xn&&h(`Expected ${Kt} < ${xn}. ${jn||""}`,Gr||R)}e.assertLessThan=R;function O(Kt,xn,jn){Kt>xn&&h(`Expected ${Kt} <= ${xn}`,jn||O)}e.assertLessThanOrEqual=O;function k(Kt,xn,jn){Kt<xn&&h(`Expected ${Kt} >= ${xn}`,jn||k)}e.assertGreaterThanOrEqual=k;function U(Kt,xn,jn){Kt==null&&h(xn,jn||U)}e.assertIsDefined=U;function X(Kt,xn,jn){return U(Kt,xn,jn||X),Kt}e.checkDefined=X;function Y(Kt,xn,jn){for(let Gr of Kt)U(Gr,xn,jn||Y)}e.assertEachIsDefined=Y;function le(Kt,xn,jn){return Y(Kt,xn,jn||le),Kt}e.checkEachDefined=le;function J(Kt,xn="Illegal value:",jn){let Gr=typeof Kt=="object"&&ws(Kt,"kind")&&ws(Kt,"pos")?"SyntaxKind: "+He(Kt.kind):JSON.stringify(Kt);return h(`${xn} ${Gr}`,jn||J)}e.assertNever=J;function _e(Kt,xn,jn,Gr){v(1,"assertEachNode")&&I(xn===void 0||ni(Kt,xn),jn||"Unexpected node.",()=>`Node array did not pass test '${se(xn)}'.`,Gr||_e)}e.assertEachNode=_e;function K(Kt,xn,jn,Gr){v(1,"assertNode")&&I(Kt!==void 0&&(xn===void 0||xn(Kt)),jn||"Unexpected node.",()=>`Node ${He(Kt?.kind)} did not pass test '${se(xn)}'.`,Gr||K)}e.assertNode=K;function ae(Kt,xn,jn,Gr){v(1,"assertNotNode")&&I(Kt===void 0||xn===void 0||!xn(Kt),jn||"Unexpected node.",()=>`Node ${He(Kt.kind)} should not have passed test '${se(xn)}'.`,Gr||ae)}e.assertNotNode=ae;function ge(Kt,xn,jn,Gr){v(1,"assertOptionalNode")&&I(xn===void 0||Kt===void 0||xn(Kt),jn||"Unexpected node.",()=>`Node ${He(Kt?.kind)} did not pass test '${se(xn)}'.`,Gr||ge)}e.assertOptionalNode=ge;function be(Kt,xn,jn,Gr){v(1,"assertOptionalToken")&&I(xn===void 0||Kt===void 0||Kt.kind===xn,jn||"Unexpected node.",()=>`Node ${He(Kt?.kind)} was not a '${He(xn)}' token.`,Gr||be)}e.assertOptionalToken=be;function ne(Kt,xn,jn){v(1,"assertMissingNode")&&I(Kt===void 0,xn||"Unexpected node.",()=>`Node ${He(Kt.kind)} was unexpected'.`,jn||ne)}e.assertMissingNode=ne;function ee(Kt){}e.type=ee;function se(Kt){if(typeof Kt!="function")return"";if(ws(Kt,"name"))return Kt.name;{let xn=Function.prototype.toString.call(Kt),jn=/^function\s+([\w$]+)\s*\(/.exec(xn);return jn?jn[1]:""}}e.getFunctionName=se;function oe(Kt){return`{ name: ${Qi(Kt.escapedName)}; flags: ${xt(Kt.flags)}; declarations: ${vn(Kt.declarations,xn=>He(xn.kind))} }`}e.formatSymbol=oe;function Se(Kt=0,xn,jn){let Gr=te(xn);if(Kt===0)return Gr.length>0&&Gr[0][0]===0?Gr[0][1]:"0";if(jn){let Ui=[],mn=Kt;for(let[un,Ln]of Gr){if(un>Kt)break;un!==0&&un&Kt&&(Ui.push(Ln),mn&=~un)}if(mn===0)return Ui.join("|")}else for(let[Ui,mn]of Gr)if(Ui===Kt)return mn;return Kt.toString()}e.formatEnum=Se;let Ee=new Map;function te(Kt){let xn=Ee.get(Kt);if(xn)return xn;let jn=[];for(let Ui in Kt){let mn=Kt[Ui];typeof mn=="number"&&jn.push([mn,Ui])}let Gr=jy(jn,(Ui,mn)=>tl(Ui[0],mn[0]));return Ee.set(Kt,Gr),Gr}function He(Kt){return Se(Kt,$3,!1)}e.formatSyntaxKind=He;function Ve(Kt){return Se(Kt,lW,!1)}e.formatSnippetKind=Ve;function st(Kt){return Se(Kt,aW,!1)}e.formatScriptKind=st;function Pe(Kt){return Se(Kt,Y3,!0)}e.formatNodeFlags=Pe;function Re(Kt){return Se(Kt,Q3,!0)}e.formatModifierFlags=Re;function Me(Kt){return Se(Kt,sW,!0)}e.formatTransformFlags=Me;function bt(Kt){return Se(Kt,cW,!0)}e.formatEmitFlags=bt;function xt(Kt){return Se(Kt,nW,!0)}e.formatSymbolFlags=xt;function Te(Kt){return Se(Kt,rW,!0)}e.formatTypeFlags=Te;function Ue(Kt){return Se(Kt,oW,!0)}e.formatSignatureFlags=Ue;function ct(Kt){return Se(Kt,iW,!0)}e.formatObjectFlags=ct;function gt(Kt){return Se(Kt,wk,!0)}e.formatFlowFlags=gt;function Nt(Kt){return Se(Kt,Z3,!0)}e.formatRelationComparisonResult=Nt;function Ze(Kt){return Se(Kt,U5,!0)}e.formatCheckMode=Ze;function yt(Kt){return Se(Kt,K5,!0)}e.formatSignatureCheckMode=yt;function en(Kt){return Se(Kt,z5,!0)}e.formatTypeFacts=en;let on=!1,kt;function Mr(Kt){"__debugFlowFlags"in Kt||Object.defineProperties(Kt,{__tsDebuggerDisplay:{value(){let xn=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",jn=this.flags&-2048;return`${xn}${jn?` (${gt(jn)})`:""}`}},__debugFlowFlags:{get(){return Se(this.flags,wk,!0)}},__debugToString:{value(){return Rn(this)}}})}function wn(Kt){on&&(typeof Object.setPrototypeOf=="function"?(kt||(kt=Object.create(Object.prototype),Mr(kt)),Object.setPrototypeOf(Kt,kt)):Mr(Kt))}e.attachFlowNodeDebugInfo=wn;let Yt;function mr(Kt){"__tsDebuggerDisplay"in Kt||Object.defineProperties(Kt,{__tsDebuggerDisplay:{value(xn){return xn=String(xn).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${xn}`}}})}function Fr(Kt){on&&(typeof Object.setPrototypeOf=="function"?(Yt||(Yt=Object.create(Array.prototype),mr(Yt)),Object.setPrototypeOf(Kt,Yt)):mr(Kt))}e.attachNodeArrayDebugInfo=Fr;function Di(){if(on)return;let Kt=new WeakMap,xn=new WeakMap;Object.defineProperties(fu.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Gr=this.flags&33554432?"TransientSymbol":"Symbol",Ui=this.flags&-33554433;return`${Gr} '${Yl(this)}'${Ui?` (${xt(Ui)})`:""}`}},__debugFlags:{get(){return xt(this.flags)}}}),Object.defineProperties(fu.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Gr=this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?`IntrinsicType ${this.intrinsicName}`:this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Ui=this.flags&524288?this.objectFlags&-1344:0;return`${Gr}${this.symbol?` '${Yl(this.symbol)}'`:""}${Ui?` (${ct(Ui)})`:""}`}},__debugFlags:{get(){return Te(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?ct(this.objectFlags):""}},__debugTypeToString:{value(){let Gr=Kt.get(this);return Gr===void 0&&(Gr=this.checker.typeToString(this),Kt.set(this,Gr)),Gr}}}),Object.defineProperties(fu.getSignatureConstructor().prototype,{__debugFlags:{get(){return Ue(this.flags)}},__debugSignatureToString:{value(){var Gr;return(Gr=this.checker)==null?void 0:Gr.signatureToString(this)}}});let jn=[fu.getNodeConstructor(),fu.getIdentifierConstructor(),fu.getTokenConstructor(),fu.getSourceFileConstructor()];for(let Gr of jn)ws(Gr.prototype,"__debugKind")||Object.defineProperties(Gr.prototype,{__tsDebuggerDisplay:{value(){return`${hl(this)?"GeneratedIdentifier":Be(this)?`Identifier '${Cr(this)}'`:Vi(this)?`PrivateIdentifier '${Cr(this)}'`:Oa(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Sp(this)?`NumericLiteral ${this.text}`:kB(this)?`BigIntLiteral ${this.text}n`:Tl(this)?"TypeParameterDeclaration":Eo(this)?"ParameterDeclaration":nc(this)?"ConstructorDeclaration":sf(this)?"GetAccessorDeclaration":Tp(this)?"SetAccessorDeclaration":nN(this)?"CallSignatureDeclaration":JO(this)?"ConstructSignatureDeclaration":Fx(this)?"IndexSignatureDeclaration":WB(this)?"TypePredicateNode":e_(this)?"TypeReferenceNode":uh(this)?"FunctionTypeNode":xM(this)?"ConstructorTypeNode":rN(this)?"TypeQueryNode":Kp(this)?"TypeLiteralNode":Gte(this)?"ArrayTypeNode":iN(this)?"TupleTypeNode":zte(this)?"OptionalTypeNode":Vte(this)?"RestTypeNode":QA(this)?"UnionTypeNode":qO(this)?"IntersectionTypeNode":oN(this)?"ConditionalTypeNode":ZA(this)?"InferTypeNode":eD(this)?"ParenthesizedTypeNode":BB(this)?"ThisTypeNode":tD(this)?"TypeOperatorNode":nD(this)?"IndexedAccessTypeNode":DM(this)?"MappedTypeNode":J0(this)?"LiteralTypeNode":AM(this)?"NamedTupleMember":dh(this)?"ImportTypeNode":He(this.kind)}${this.flags?` (${Pe(this.flags)})`:""}`}},__debugKind:{get(){return He(this.kind)}},__debugNodeFlags:{get(){return Pe(this.flags)}},__debugModifierFlags:{get(){return Re(vEe(this))}},__debugTransformFlags:{get(){return Me(this.transformFlags)}},__debugIsParseTreeNode:{get(){return pP(this)}},__debugEmitFlags:{get(){return bt(Ba(this))}},__debugGetText:{value(Ui){if(il(this))return"";let mn=xn.get(this);if(mn===void 0){let un=vo(this),Ln=un&&nr(un);mn=Ln?SS(Ln,un,Ui):"",xn.set(this,mn)}return mn}}});on=!0}e.enableDebugInfo=Di;function Oi(Kt){let xn=Kt&7,jn=xn===0?"in out":xn===3?"[bivariant]":xn===2?"in":xn===1?"out":xn===4?"[independent]":"";return Kt&8?jn+=" (unmeasurable)":Kt&16&&(jn+=" (unreliable)"),jn}e.formatVariance=Oi;class Jr{__debugToString(){var xn;switch(this.kind){case 3:return((xn=this.debugInfo)==null?void 0:xn.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return oo(this.sources,this.targets||vn(this.sources,()=>"any"),(jn,Gr)=>`${jn.__debugTypeToString()} -> ${typeof Gr=="string"?Gr:Gr.__debugTypeToString()}`).join(", ");case 2:return oo(this.sources,this.targets,(jn,Gr)=>`${jn.__debugTypeToString()} -> ${Gr().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
4
4
  `).join(`
@@ -0,0 +1 @@
1
+ import{A,B,C,D,E,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-LAZJ47DZ.js";import"./chunk-GOJ2QHSR.js";import"./chunk-4HHXSMD7.js";import"./chunk-BDVAE5MS.js";import"./chunk-P6XE4MH5.js";import"./chunk-KLMDWDT2.js";import"./chunk-5CH3B62S.js";import"./chunk-QUTQDXSL.js";import"./chunk-IASVAERO.js";import"./chunk-JPGO36XP.js";import"./chunk-PD5ZHJWI.js";import"./chunk-LDGAHMS7.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-FUOIGXI4.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-V2CNCPIE.js";import"./chunk-GFEAKSGV.js";import"./chunk-CERXUPGC.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-YC6G4MHD.js";import"./chunk-N7RBSKYT.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{k as FindUpAndReadPackageJsonNotFoundError,j as PackageJsonNotFoundError,i as UnknownPackageManagerError,z as addNPMDependencies,y as addNPMDependenciesIfNeeded,A as addNPMDependenciesWithoutVersionIfNeeded,C as addResolutionOrOverride,d as bunLockfile,v as checkForCachedNewVersion,u as checkForNewVersion,B as findUpAndReadPackageJson,s as getDependencies,m as getPackageManager,q as getPackageName,r as getPackageVersion,E as inferPackageManager,o as installNPMDependenciesRecursively,p as installNodeModules,f as lockfiles,g as lockfilesByManager,b as npmLockfile,h as packageManager,n as packageManagerBinaryCommandForDirectory,l as packageManagerFromUserAgent,c as pnpmLockfile,e as pnpmWorkspaceFile,x as readAndParsePackageJson,t as usesWorkspaces,w as versionSatisfies,D as writePackageJSON,a as yarnLockfile};
@@ -0,0 +1 @@
1
+ import{a,b,c,d,e,f}from"./chunk-XLELNRFF.js";import"./chunk-B2EHO7ZC.js";import"./chunk-4LNCYIS3.js";import"./chunk-LAZJ47DZ.js";import"./chunk-PRKBO42R.js";import"./chunk-GOJ2QHSR.js";import"./chunk-7BGM2GAH.js";import"./chunk-XNO6DZYP.js";import"./chunk-3TNEIDOD.js";import"./chunk-4HHXSMD7.js";import"./chunk-MOA33ZFO.js";import"./chunk-JUVAGMIH.js";import"./chunk-BDVAE5MS.js";import"./chunk-P6XE4MH5.js";import"./chunk-KLMDWDT2.js";import"./chunk-5CH3B62S.js";import"./chunk-QUTQDXSL.js";import"./chunk-IASVAERO.js";import"./chunk-JPGO36XP.js";import"./chunk-PD5ZHJWI.js";import"./chunk-LDGAHMS7.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-FUOIGXI4.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-V2CNCPIE.js";import"./chunk-GFEAKSGV.js";import"./chunk-CERXUPGC.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-YC6G4MHD.js";import"./chunk-N7RBSKYT.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{c as fetchNotifications,d as fetchNotificationsInBackground,e as filterNotifications,b as getNotifications,a as showNotificationsIfNeeded,f as stringifyFilters};
@@ -0,0 +1 @@
1
+ import{a as At}from"./chunk-75VPUOC5.js";import{a as vt}from"./chunk-HZA6IAA4.js";import{a as D,c as F,g as y}from"./chunk-VPRTJUIN.js";var st=F(N=>{"use strict";y();Object.defineProperty(N,"__esModule",{value:!0});N.LRUCache=void 0;var T=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,tt=new Set,k=typeof process=="object"&&process?process:{},et=(e,t,i,s)=>{typeof k.emitWarning=="function"?k.emitWarning(e,t,i,s):console.error(`[${i}] ${t}: ${e}`)},j=globalThis.AbortController,Q=globalThis.AbortSignal;if(typeof j>"u"){Q=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,n){this._onabort.push(n)}},j=class{constructor(){t()}signal=new Q;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let n of this.signal._onabort)n(s);this.signal.onabort?.(s)}}};let e=k.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,et("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var Et=e=>!tt.has(e),_=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),it=e=>_(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?z:null:null,z=class extends Array{constructor(t){super(t),this.fill(0)}},M=class e{heap;length;static#n=!1;static create(t){let i=it(t);if(!i)return[];e.#n=!0;let s=new e(t,i);return e.#n=!1,s}constructor(t,i){if(!e.#n)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new i(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},q=class e{#n;#l;#e;#g;#x;#T;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#w;#r;#s;#t;#f;#p;#c;#h;#b;#a;#S;#$;#d;#y;#_;#u;static unsafeExposeInternals(t){return{starts:t.#$,ttls:t.#d,sizes:t.#S,keyMap:t.#r,keyList:t.#s,valList:t.#t,next:t.#f,prev:t.#p,get head(){return t.#c},get tail(){return t.#h},free:t.#b,isBackgroundFetch:i=>t.#i(i),backgroundFetch:(i,s,n,r)=>t.#W(i,s,n,r),moveToTail:i=>t.#F(i),indexes:i=>t.#v(i),rindexes:i=>t.#A(i),isStale:i=>t.#m(i)}}get max(){return this.#n}get maxSize(){return this.#l}get calculatedSize(){return this.#w}get size(){return this.#o}get fetchMethod(){return this.#x}get memoMethod(){return this.#T}get dispose(){return this.#e}get disposeAfter(){return this.#g}constructor(t){let{max:i=0,ttl:s,ttlResolution:n=1,ttlAutopurge:r,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:h,dispose:f,disposeAfter:w,noDisposeOnSet:p,noUpdateTTL:m,maxSize:d=0,maxEntrySize:A=0,sizeCalculation:l,fetchMethod:S,memoMethod:c,noDeleteOnFetchRejection:$,noDeleteOnStaleGet:E,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:v,ignoreFetchAbort:W}=t;if(i!==0&&!_(i))throw new TypeError("max option must be a nonnegative integer");let O=i?it(i):Array;if(!O)throw new Error("invalid max value: "+i);if(this.#n=i,this.#l=d,this.maxEntrySize=A||this.#l,this.sizeCalculation=l,this.sizeCalculation){if(!this.#l&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(c!==void 0&&typeof c!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#T=c,S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#x=S,this.#_=!!S,this.#r=new Map,this.#s=new Array(i).fill(void 0),this.#t=new Array(i).fill(void 0),this.#f=new O(i),this.#p=new O(i),this.#c=0,this.#h=0,this.#b=M.create(i),this.#o=0,this.#w=0,typeof f=="function"&&(this.#e=f),typeof w=="function"?(this.#g=w,this.#a=[]):(this.#g=void 0,this.#a=void 0),this.#y=!!this.#e,this.#u=!!this.#g,this.noDisposeOnSet=!!p,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!$,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!v,this.ignoreFetchAbort=!!W,this.maxEntrySize!==0){if(this.#l!==0&&!_(this.#l))throw new TypeError("maxSize must be a positive integer if specified");if(!_(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#H()}if(this.allowStale=!!h,this.noDeleteOnStaleGet=!!E,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=_(n)||n===0?n:1,this.ttlAutopurge=!!r,this.ttl=s||0,this.ttl){if(!_(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#D()}if(this.#n===0&&this.ttl===0&&this.#l===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#l){let P="LRU_CACHE_UNBOUNDED";Et(P)&&(tt.add(P),et("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",P,e))}}getRemainingTTL(t){return this.#r.has(t)?1/0:0}#D(){let t=new z(this.#n),i=new z(this.#n);this.#d=t,this.#$=i,this.#L=(r,o,a=T.now())=>{if(i[r]=o!==0?a:0,t[r]=o,o!==0&&this.ttlAutopurge){let h=setTimeout(()=>{this.#m(r)&&this.#E(this.#s[r],"expire")},o+1);h.unref&&h.unref()}},this.#R=r=>{i[r]=t[r]!==0?T.now():0},this.#O=(r,o)=>{if(t[o]){let a=t[o],h=i[o];if(!a||!h)return;r.ttl=a,r.start=h,r.now=s||n();let f=r.now-h;r.remainingTTL=a-f}};let s=0,n=()=>{let r=T.now();if(this.ttlResolution>0){s=r;let o=setTimeout(()=>s=0,this.ttlResolution);o.unref&&o.unref()}return r};this.getRemainingTTL=r=>{let o=this.#r.get(r);if(o===void 0)return 0;let a=t[o],h=i[o];if(!a||!h)return 1/0;let f=(s||n())-h;return a-f},this.#m=r=>{let o=i[r],a=t[r];return!!a&&!!o&&(s||n())-o>a}}#R=()=>{};#O=()=>{};#L=()=>{};#m=()=>!1;#H(){let t=new z(this.#n);this.#w=0,this.#S=t,this.#C=i=>{this.#w-=t[i],t[i]=0},this.#I=(i,s,n,r)=>{if(this.#i(s))return 0;if(!_(n))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(n=r(s,i),!_(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#z=(i,s,n)=>{if(t[i]=s,this.#l){let r=this.#l-t[i];for(;this.#w>r;)this.#U(!0)}this.#w+=t[i],n&&(n.entrySize=s,n.totalCalculatedSize=this.#w)}}#C=t=>{};#z=(t,i,s)=>{};#I=(t,i,s,n)=>{if(s||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#v({allowStale:t=this.allowStale}={}){if(this.#o)for(let i=this.#h;!(!this.#P(i)||((t||!this.#m(i))&&(yield i),i===this.#c));)i=this.#p[i]}*#A({allowStale:t=this.allowStale}={}){if(this.#o)for(let i=this.#c;!(!this.#P(i)||((t||!this.#m(i))&&(yield i),i===this.#h));)i=this.#f[i]}#P(t){return t!==void 0&&this.#r.get(this.#s[t])===t}*entries(){for(let t of this.#v())this.#t[t]!==void 0&&this.#s[t]!==void 0&&!this.#i(this.#t[t])&&(yield[this.#s[t],this.#t[t]])}*rentries(){for(let t of this.#A())this.#t[t]!==void 0&&this.#s[t]!==void 0&&!this.#i(this.#t[t])&&(yield[this.#s[t],this.#t[t]])}*keys(){for(let t of this.#v()){let i=this.#s[t];i!==void 0&&!this.#i(this.#t[t])&&(yield i)}}*rkeys(){for(let t of this.#A()){let i=this.#s[t];i!==void 0&&!this.#i(this.#t[t])&&(yield i)}}*values(){for(let t of this.#v())this.#t[t]!==void 0&&!this.#i(this.#t[t])&&(yield this.#t[t])}*rvalues(){for(let t of this.#A())this.#t[t]!==void 0&&!this.#i(this.#t[t])&&(yield this.#t[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,i={}){for(let s of this.#v()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;if(r!==void 0&&t(r,this.#s[s],this))return this.get(this.#s[s],i)}}forEach(t,i=this){for(let s of this.#v()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;r!==void 0&&t.call(i,r,this.#s[s],this)}}rforEach(t,i=this){for(let s of this.#A()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;r!==void 0&&t.call(i,r,this.#s[s],this)}}purgeStale(){let t=!1;for(let i of this.#A({allowStale:!0}))this.#m(i)&&(this.#E(this.#s[i],"expire"),t=!0);return t}info(t){let i=this.#r.get(t);if(i===void 0)return;let s=this.#t[i],n=this.#i(s)?s.__staleWhileFetching:s;if(n===void 0)return;let r={value:n};if(this.#d&&this.#$){let o=this.#d[i],a=this.#$[i];if(o&&a){let h=o-(T.now()-a);r.ttl=h,r.start=Date.now()}}return this.#S&&(r.size=this.#S[i]),r}dump(){let t=[];for(let i of this.#v({allowStale:!0})){let s=this.#s[i],n=this.#t[i],r=this.#i(n)?n.__staleWhileFetching:n;if(r===void 0||s===void 0)continue;let o={value:r};if(this.#d&&this.#$){o.ttl=this.#d[i];let a=T.now()-this.#$[i];o.start=Math.floor(Date.now()-a)}this.#S&&(o.size=this.#S[i]),t.unshift([s,o])}return t}load(t){this.clear();for(let[i,s]of t){if(s.start){let n=Date.now()-s.start;s.start=T.now()-n}this.set(i,s.value,s)}}set(t,i,s={}){if(i===void 0)return this.delete(t),this;let{ttl:n=this.ttl,start:r,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:h}=s,{noUpdateTTL:f=this.noUpdateTTL}=s,w=this.#I(t,i,s.size||0,a);if(this.maxEntrySize&&w>this.maxEntrySize)return h&&(h.set="miss",h.maxEntrySizeExceeded=!0),this.#E(t,"set"),this;let p=this.#o===0?void 0:this.#r.get(t);if(p===void 0)p=this.#o===0?this.#h:this.#b.length!==0?this.#b.pop():this.#o===this.#n?this.#U(!1):this.#o,this.#s[p]=t,this.#t[p]=i,this.#r.set(t,p),this.#f[this.#h]=p,this.#p[p]=this.#h,this.#h=p,this.#o++,this.#z(p,w,h),h&&(h.set="add"),f=!1;else{this.#F(p);let m=this.#t[p];if(i!==m){if(this.#_&&this.#i(m)){m.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=m;d!==void 0&&!o&&(this.#y&&this.#e?.(d,t,"set"),this.#u&&this.#a?.push([d,t,"set"]))}else o||(this.#y&&this.#e?.(m,t,"set"),this.#u&&this.#a?.push([m,t,"set"]));if(this.#C(p),this.#z(p,w,h),this.#t[p]=i,h){h.set="replace";let d=m&&this.#i(m)?m.__staleWhileFetching:m;d!==void 0&&(h.oldValue=d)}}else h&&(h.set="update")}if(n!==0&&!this.#d&&this.#D(),this.#d&&(f||this.#L(p,n,r),h&&this.#O(h,p)),!o&&this.#u&&this.#a){let m=this.#a,d;for(;d=m?.shift();)this.#g?.(...d)}return this}pop(){try{for(;this.#o;){let t=this.#t[this.#c];if(this.#U(!0),this.#i(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#u&&this.#a){let t=this.#a,i;for(;i=t?.shift();)this.#g?.(...i)}}}#U(t){let i=this.#c,s=this.#s[i],n=this.#t[i];return this.#_&&this.#i(n)?n.__abortController.abort(new Error("evicted")):(this.#y||this.#u)&&(this.#y&&this.#e?.(n,s,"evict"),this.#u&&this.#a?.push([n,s,"evict"])),this.#C(i),t&&(this.#s[i]=void 0,this.#t[i]=void 0,this.#b.push(i)),this.#o===1?(this.#c=this.#h=0,this.#b.length=0):this.#c=this.#f[i],this.#r.delete(s),this.#o--,i}has(t,i={}){let{updateAgeOnHas:s=this.updateAgeOnHas,status:n}=i,r=this.#r.get(t);if(r!==void 0){let o=this.#t[r];if(this.#i(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#m(r))n&&(n.has="stale",this.#O(n,r));else return s&&this.#R(r),n&&(n.has="hit",this.#O(n,r)),!0}else n&&(n.has="miss");return!1}peek(t,i={}){let{allowStale:s=this.allowStale}=i,n=this.#r.get(t);if(n===void 0||!s&&this.#m(n))return;let r=this.#t[n];return this.#i(r)?r.__staleWhileFetching:r}#W(t,i,s,n){let r=i===void 0?void 0:this.#t[i];if(this.#i(r))return r;let o=new j,{signal:a}=s;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let h={signal:o.signal,options:s,context:n},f=(l,S=!1)=>{let{aborted:c}=o.signal,$=s.ignoreFetchAbort&&l!==void 0;if(s.status&&(c&&!S?(s.status.fetchAborted=!0,s.status.fetchError=o.signal.reason,$&&(s.status.fetchAbortIgnored=!0)):s.status.fetchResolved=!0),c&&!$&&!S)return p(o.signal.reason);let E=d;return this.#t[i]===d&&(l===void 0?E.__staleWhileFetching?this.#t[i]=E.__staleWhileFetching:this.#E(t,"fetch"):(s.status&&(s.status.fetchUpdated=!0),this.set(t,l,h.options))),l},w=l=>(s.status&&(s.status.fetchRejected=!0,s.status.fetchError=l),p(l)),p=l=>{let{aborted:S}=o.signal,c=S&&s.allowStaleOnFetchAbort,$=c||s.allowStaleOnFetchRejection,E=$||s.noDeleteOnFetchRejection,b=d;if(this.#t[i]===d&&(!E||b.__staleWhileFetching===void 0?this.#E(t,"fetch"):c||(this.#t[i]=b.__staleWhileFetching)),$)return s.status&&b.__staleWhileFetching!==void 0&&(s.status.returnedStale=!0),b.__staleWhileFetching;if(b.__returned===b)throw l},m=(l,S)=>{let c=this.#x?.(t,r,h);c&&c instanceof Promise&&c.then($=>l($===void 0?void 0:$),S),o.signal.addEventListener("abort",()=>{(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort)&&(l(void 0),s.allowStaleOnFetchAbort&&(l=$=>f($,!0)))})};s.status&&(s.status.fetchDispatched=!0);let d=new Promise(m).then(f,w),A=Object.assign(d,{__abortController:o,__staleWhileFetching:r,__returned:void 0});return i===void 0?(this.set(t,A,{...h.options,status:void 0}),i=this.#r.get(t)):this.#t[i]=A,A}#i(t){if(!this.#_)return!1;let i=t;return!!i&&i instanceof Promise&&i.hasOwnProperty("__staleWhileFetching")&&i.__abortController instanceof j}async fetch(t,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:h=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:w=this.noUpdateTTL,noDeleteOnFetchRejection:p=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:A=this.allowStaleOnFetchAbort,context:l,forceRefresh:S=!1,status:c,signal:$}=i;if(!this.#_)return c&&(c.fetch="get"),this.get(t,{allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:r,status:c});let E={allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:o,noDisposeOnSet:a,size:h,sizeCalculation:f,noUpdateTTL:w,noDeleteOnFetchRejection:p,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:A,ignoreFetchAbort:d,status:c,signal:$},b=this.#r.get(t);if(b===void 0){c&&(c.fetch="miss");let v=this.#W(t,b,E,l);return v.__returned=v}else{let v=this.#t[b];if(this.#i(v)){let Z=s&&v.__staleWhileFetching!==void 0;return c&&(c.fetch="inflight",Z&&(c.returnedStale=!0)),Z?v.__staleWhileFetching:v.__returned=v}let W=this.#m(b);if(!S&&!W)return c&&(c.fetch="hit"),this.#F(b),n&&this.#R(b),c&&this.#O(c,b),v;let O=this.#W(t,b,E,l),G=O.__staleWhileFetching!==void 0&&s;return c&&(c.fetch=W?"stale":"refresh",G&&W&&(c.returnedStale=!0)),G?O.__staleWhileFetching:O.__returned=O}}async forceFetch(t,i={}){let s=await this.fetch(t,i);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(t,i={}){let s=this.#T;if(!s)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:r,...o}=i,a=this.get(t,o);if(!r&&a!==void 0)return a;let h=s(t,a,{options:o,context:n});return this.set(t,h,o),h}get(t,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:o}=i,a=this.#r.get(t);if(a!==void 0){let h=this.#t[a],f=this.#i(h);return o&&this.#O(o,a),this.#m(a)?(o&&(o.get="stale"),f?(o&&s&&h.__staleWhileFetching!==void 0&&(o.returnedStale=!0),s?h.__staleWhileFetching:void 0):(r||this.#E(t,"expire"),o&&s&&(o.returnedStale=!0),s?h:void 0)):(o&&(o.get="hit"),f?h.__staleWhileFetching:(this.#F(a),n&&this.#R(a),h))}else o&&(o.get="miss")}#j(t,i){this.#p[i]=t,this.#f[t]=i}#F(t){t!==this.#h&&(t===this.#c?this.#c=this.#f[t]:this.#j(this.#p[t],this.#f[t]),this.#j(this.#h,t),this.#h=t)}delete(t){return this.#E(t,"delete")}#E(t,i){let s=!1;if(this.#o!==0){let n=this.#r.get(t);if(n!==void 0)if(s=!0,this.#o===1)this.#N(i);else{this.#C(n);let r=this.#t[n];if(this.#i(r)?r.__abortController.abort(new Error("deleted")):(this.#y||this.#u)&&(this.#y&&this.#e?.(r,t,i),this.#u&&this.#a?.push([r,t,i])),this.#r.delete(t),this.#s[n]=void 0,this.#t[n]=void 0,n===this.#h)this.#h=this.#p[n];else if(n===this.#c)this.#c=this.#f[n];else{let o=this.#p[n];this.#f[o]=this.#f[n];let a=this.#f[n];this.#p[a]=this.#p[n]}this.#o--,this.#b.push(n)}}if(this.#u&&this.#a?.length){let n=this.#a,r;for(;r=n?.shift();)this.#g?.(...r)}return s}clear(){return this.#N("delete")}#N(t){for(let i of this.#A({allowStale:!0})){let s=this.#t[i];if(this.#i(s))s.__abortController.abort(new Error("deleted"));else{let n=this.#s[i];this.#y&&this.#e?.(s,n,t),this.#u&&this.#a?.push([s,n,t])}}if(this.#r.clear(),this.#t.fill(void 0),this.#s.fill(void 0),this.#d&&this.#$&&(this.#d.fill(0),this.#$.fill(0)),this.#S&&this.#S.fill(0),this.#c=0,this.#h=0,this.#b.length=0,this.#w=0,this.#o=0,this.#u&&this.#a){let i=this.#a,s;for(;s=i?.shift();)this.#g?.(...s)}}};N.LRUCache=q});var ot=F((ee,rt)=>{"use strict";y();var u=(...e)=>e.every(t=>t)?e.join(""):"",g=e=>e?encodeURIComponent(e):"",nt=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Ot={sshtemplate:({domain:e,user:t,project:i,committish:s})=>`git@${e}:${t}/${i}.git${u("#",s)}`,sshurltemplate:({domain:e,user:t,project:i,committish:s})=>`git+ssh://git@${e}/${t}/${i}.git${u("#",s)}`,edittemplate:({domain:e,user:t,project:i,committish:s,editpath:n,path:r})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s||"HEAD"),"/",r)}`,browsetemplate:({domain:e,user:t,project:i,committish:s,treepath:n})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s))}`,browsetreetemplate:({domain:e,user:t,project:i,committish:s,treepath:n,path:r,fragment:o,hashformat:a})=>`https://${e}/${t}/${i}/${n}/${g(s||"HEAD")}/${r}${u("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:i,committish:s,blobpath:n,path:r,fragment:o,hashformat:a})=>`https://${e}/${t}/${i}/${n}/${g(s||"HEAD")}/${r}${u("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:i,treepath:s,committish:n})=>`https://${e}/${t}/${i}${u("/",s,"/",g(n))}#readme`,httpstemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git+https://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,filetemplate:({domain:e,user:t,project:i,committish:s,path:n})=>`https://${e}/${t}/${i}/raw/${g(s||"HEAD")}/${n}`,shortcuttemplate:({type:e,user:t,project:i,committish:s})=>`${e}:${t}/${i}${u("#",s)}`,pathtemplate:({user:e,project:t,committish:i})=>`${e}/${t}${u("#",i)}`,bugstemplate:({domain:e,user:t,project:i})=>`https://${e}/${t}/${i}/issues`,hashformat:nt},R={};R.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:i,committish:s,path:n})=>`https://${u(e,"@")}raw.githubusercontent.com/${t}/${i}/${g(s||"HEAD")}/${n}`,gittemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://codeload.${e}/${t}/${i}/tar.gz/${g(s||"HEAD")}`,extract:e=>{let[,t,i,s,n]=e.pathname.split("/",5);if(!(s&&s!=="tree")&&(s||(n=e.hash.slice(1)),i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:n}}};R.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:i,committish:s,treepath:n,path:r,editpath:o})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s||"HEAD"),"/",r,o)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/get/${g(s||"HEAD")}.tar.gz`,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(!["get"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:e.hash.slice(1)}}};R.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git+https://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/repository/archive.tar.gz?ref=${g(s||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let i=t.split("/"),s=i.pop();s.endsWith(".git")&&(s=s.slice(0,-4));let n=i.join("/");if(!(!n||!s))return{user:n,project:s,committish:e.hash.slice(1)}}};R.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:i})=>`git@${e}:${t}.git${u("#",i)}`,sshurltemplate:({domain:e,project:t,committish:i})=>`git+ssh://git@${e}/${t}.git${u("#",i)}`,edittemplate:({domain:e,user:t,project:i,committish:s,editpath:n})=>`https://${e}/${t}/${i}${u("/",g(s))}/${n}`,browsetemplate:({domain:e,project:t,committish:i})=>`https://${e}/${t}${u("/",g(i))}`,browsetreetemplate:({domain:e,project:t,committish:i,path:s,hashformat:n})=>`https://${e}/${t}${u("/",g(i))}${u("#",n(s))}`,browseblobtemplate:({domain:e,project:t,committish:i,path:s,hashformat:n})=>`https://${e}/${t}${u("/",g(i))}${u("#",n(s))}`,docstemplate:({domain:e,project:t,committish:i})=>`https://${e}/${t}${u("/",g(i))}`,httpstemplate:({domain:e,project:t,committish:i})=>`git+https://${e}/${t}.git${u("#",i)}`,filetemplate:({user:e,project:t,committish:i,path:s})=>`https://gist.githubusercontent.com/${e}/${t}/raw${u("/",g(i))}/${s}`,shortcuttemplate:({type:e,project:t,committish:i})=>`${e}:${t}${u("#",i)}`,pathtemplate:({project:e,committish:t})=>`${e}${u("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:i})=>`git://${e}/${t}.git${u("#",i)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${g(t||"HEAD")}`,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(s!=="raw"){if(!i){if(!t)return;i=t,t=null}return i.endsWith(".git")&&(i=i.slice(0,-4)),{user:t,project:i,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+nt(e)}};R.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:i,committish:s,path:n})=>`https://${e}/${t}/${i}/blob/${g(s)||"HEAD"}/${n}`,httpstemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}.git${u("#",s)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/archive/${g(s)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(!["archive"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(R))R[e]=Object.assign({},Ot,t);rt.exports=R});var K=F((se,at)=>{y();var _t=D("url"),V=(e,t,i)=>{let s=e.indexOf(i);return e.lastIndexOf(t,s>-1?s:1/0)},ht=e=>{try{return new _t.URL(e)}catch{}},Rt=(e,t)=>{let i=e.indexOf(":"),s=e.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(t,s))return e;let n=e.indexOf("@");return n>-1?n>i?`git+ssh://${e}`:e:e.indexOf("//")===i+1?e:`${e.slice(0,i+1)}//${e.slice(i+1)}`},Ct=e=>{let t=V(e,"@","#"),i=V(e,":","#");return i>t&&(e=e.slice(0,i)+"/"+e.slice(i+1)),V(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};at.exports=(e,t)=>{let i=t?Rt(e,t):e;return ht(i)||ht(Ct(i))}});var ct=F((re,lt)=>{"use strict";y();var Ft=K(),xt=e=>{let t=e.indexOf("#"),i=e.indexOf("/"),s=e.indexOf("/",i+1),n=e.indexOf(":"),r=/\s/.exec(e),o=e.indexOf("@"),a=!r||t>-1&&r.index>t,h=o===-1||t>-1&&o>t,f=n===-1||t>-1&&n>t,w=s===-1||t>-1&&s>t,p=i>0,m=t>-1?e[t-1]!=="/":!e.endsWith("/"),d=!e.startsWith(".");return a&&p&&m&&d&&h&&f&&w};lt.exports=(e,t,{gitHosts:i,protocols:s})=>{if(!e)return;let n=xt(e)?`github:${e}`:e,r=Ft(n,s);if(!r)return;let o=i.byShortcut[r.protocol],a=i.byDomain[r.hostname.startsWith("www.")?r.hostname.slice(4):r.hostname],h=o||a;if(!h)return;let f=i[o||a],w=null;s[r.protocol]?.auth&&(r.username||r.password)&&(w=`${r.username}${r.password?":"+r.password:""}`);let p=null,m=null,d=null,A=null;try{if(o){let l=r.pathname.startsWith("/")?r.pathname.slice(1):r.pathname,S=l.indexOf("@");S>-1&&(l=l.slice(S+1));let c=l.lastIndexOf("/");c>-1?(m=decodeURIComponent(l.slice(0,c)),m||(m=null),d=decodeURIComponent(l.slice(c+1))):d=decodeURIComponent(l),d.endsWith(".git")&&(d=d.slice(0,-4)),r.hash&&(p=decodeURIComponent(r.hash.slice(1))),A="shortcut"}else{if(!f.protocols.includes(r.protocol))return;let l=f.extract(r);if(!l)return;m=l.user&&decodeURIComponent(l.user),d=decodeURIComponent(l.project),p=decodeURIComponent(l.committish),A=s[r.protocol]?.name||r.protocol.slice(0,-1)}}catch(l){if(l instanceof URIError)return;throw l}return[h,m,w,d,p,A,t]}});var ut=F((he,ft)=>{"use strict";y();var{LRUCache:Tt}=st(),zt=ot(),Ut=ct(),Wt=K(),Y=new Tt({max:1e3}),H=class e{constructor(t,i,s,n,r,o,a={}){Object.assign(this,e.#n[t],{type:t,user:i,auth:s,project:n,committish:r,default:o,opts:a})}static#n={byShortcut:{},byDomain:{}};static#l={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,i){e.#n[t]=i,e.#n.byDomain[i.domain]=t,e.#n.byShortcut[`${t}:`]=t,e.#l[`${t}:`]={name:t}}static fromUrl(t,i){if(typeof t!="string")return;let s=t+JSON.stringify(i||{});if(!Y.has(s)){let n=Ut(t,i,{gitHosts:e.#n,protocols:e.#l});Y.set(s,n?new e(...n):void 0)}return Y.get(s)}static parseUrl(t){return Wt(t)}#e(t,i){if(typeof t!="function")return null;let s={...this,...this.opts,...i};s.path||(s.path=""),s.path.startsWith("/")&&(s.path=s.path.slice(1)),s.noCommittish&&(s.committish=null);let n=t(s);return s.noGitPlus&&n.startsWith("git+")?n.slice(4):n}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#e(this.sshtemplate,t)}sshurl(t){return this.#e(this.sshurltemplate,t)}browse(t,...i){return typeof t!="string"?this.#e(this.browsetemplate,t):typeof i[0]!="string"?this.#e(this.browsetreetemplate,{...i[0],path:t}):this.#e(this.browsetreetemplate,{...i[1],fragment:i[0],path:t})}browseFile(t,...i){return typeof i[0]!="string"?this.#e(this.browseblobtemplate,{...i[0],path:t}):this.#e(this.browseblobtemplate,{...i[1],fragment:i[0],path:t})}docs(t){return this.#e(this.docstemplate,t)}bugs(t){return this.#e(this.bugstemplate,t)}https(t){return this.#e(this.httpstemplate,t)}git(t){return this.#e(this.gittemplate,t)}shortcut(t){return this.#e(this.shortcuttemplate,t)}path(t){return this.#e(this.pathtemplate,t)}tarball(t){return this.#e(this.tarballtemplate,{...t,noCommittish:!1})}file(t,i){return this.#e(this.filetemplate,{...i,path:t})}edit(t,i){return this.#e(this.edittemplate,{...i,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(zt))H.addHost(e,t);ft.exports=H});var dt=F((le,pt)=>{y();var Dt=Symbol("proc-log.meta");pt.exports={META:Dt,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function i(){return process.emit("time","end",e)}if(typeof t=="function"){let s=t();return s&&s.finally?s.finally(i):(i(),s)}return i},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e=="function"){let i=e();return i&&i.finally?i.finally(t):(t(),i)}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,i,s=new Promise((n,r)=>{t=n,i=r});return process.emit("input","read",t,i,...e),s}}}});var Jt=F((fe,I)=>{y();I.exports=L;I.exports.resolve=yt;I.exports.toPurl=Ht;I.exports.Result=U;var{URL:x}=D("url"),Lt=ut(),mt=vt(),C=global.FAKE_WINDOWS?D("path").win32:D("path"),bt=At(),{homedir:It}=D("os"),{log:Pt}=dt(),J=process.platform==="win32"||global.FAKE_WINDOWS,St=J?/\\|[/]/:/[/]/,$t=/^(?:git[+])?[a-z]+:/i,jt=/^[^@]+@[^:.]+\.[^:]+:.+$/i,X=/[.](?:tgz|tar.gz|tar)$/i;function L(e,t){let i,s;if(typeof e=="object")return e instanceof U&&(!t||t===e.where)?e:e.name&&e.rawSpec?L.resolve(e.name,e.rawSpec,t||e.where):L(e.raw,t||e.where);let n=e[0]==="@"?e.slice(1).indexOf("@")+1:e.indexOf("@"),r=n>0?e.slice(0,n):e;return $t.test(e)?s=e:jt.test(e)?s=`git+ssh://${e}`:r[0]!=="@"&&(St.test(r)||X.test(r))?s=e:n>0?(i=r,s=e.slice(n+1)||"*"):bt(e).validForOldPackages?(i=e,s="*"):s=e,yt(i,s,t,e)}var Nt=J?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function yt(e,t,i,s){let n=new U({raw:s,name:e,rawSpec:t,fromArgument:s!=null});if(e&&n.setName(e),t&&(Nt.test(t)||/^file:/i.test(t)))return wt(n,i);if(t&&/^npm:/i.test(t))return Yt(n,i);let r=Lt.fromUrl(t,{noGitPlus:!0,noCommittish:!0});return r?qt(n,r):t&&$t.test(t)?Kt(n):t&&(St.test(t)||X.test(t))?wt(n,i):Bt(n)}var gt="https://registry.npmjs.org";function Ht(e,t=gt){let i=L(e);if(i.type!=="version")throw Mt(i.type,i.raw);let s="pkg:npm/"+i.name.replace(/^@/,"%40")+"@"+i.rawSpec;return t!==gt&&(s+="?repository_url="+t),s}function Gt(e,t,i){let s=new Error(`Invalid package name "${e}" of package "${i}": ${t.errors.join("; ")}.`);return s.code="EINVALIDPACKAGENAME",s}function kt(e,t){let i=new Error(`Invalid tag name "${e}" of package "${t}": Tags may not have any characters that encodeURIComponent encodes.`);return i.code="EINVALIDTAGNAME",i}function Mt(e,t){let i=new Error(`Invalid type "${e}" of package "${t}": Purl can only be generated for "version" types.`);return i.code="EINVALIDPURLTYPE",i}function U(e){this.type=e.type,this.registry=e.registry,this.where=e.where,e.raw==null?this.raw=e.name?e.name+"@"+e.rawSpec:e.rawSpec:this.raw=e.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=e.rawSpec||"",this.saveSpec=e.saveSpec,this.fetchSpec=e.fetchSpec,e.name&&this.setName(e.name),this.gitRange=e.gitRange,this.gitCommittish=e.gitCommittish,this.gitSubdir=e.gitSubdir,this.hosted=e.hosted}U.prototype.setName=function(e){let t=bt(e);if(!t.validForOldPackages)throw Gt(e,t,this.raw);return this.name=e,this.scope=e[0]==="@"?e.slice(0,e.indexOf("/")):void 0,this.escapedName=e.replace("/","%2f"),this};U.prototype.toString=function(){let e=[];this.name!=null&&this.name!==""&&e.push(this.name);let t=this.saveSpec||this.fetchSpec||this.rawSpec;return t!=null&&t!==""&&e.push(t),e.length?e.join("@"):this.raw};U.prototype.toJSON=function(){let e=Object.assign({},this);return delete e.hosted,e};function B(e,t){if(!t){e.gitCommittish=null;return}for(let i of t.split("::")){if(!i.includes(":")){if(e.gitRange)throw new Error("cannot override existing semver range with a committish");if(e.gitCommittish)throw new Error("cannot override existing committish with a second committish");e.gitCommittish=i;continue}let[s,n]=i.split(":");if(s==="semver"){if(e.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(e.gitRange)throw new Error("cannot override existing semver range with a second semver range");e.gitRange=decodeURIComponent(n);continue}if(s==="path"){if(e.gitSubdir)throw new Error("cannot override existing path with a second path");e.gitSubdir=`/${n}`;continue}Pt.warn("npm-package-arg",`ignoring unknown key "${s}"`)}}function wt(e,t){t||(t=process.cwd()),e.type=X.test(e.rawSpec)?"file":"directory",e.where=t;let i,s,r=(/^file:/.test(e.rawSpec)?"":"file:")+e.rawSpec,o=r.replace(/^file:/,"");try{s=new x(r,`file://${C.resolve(t)}/`),i=new x(r)}catch(f){let w=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(w,{raw:e.rawSpec,spec:e,where:t,originalError:f})}if(s.host&&s.host!=="localhost"){let f=e.rawSpec.replace(/^file:\/\//,"file:///");s=new x(f,`file://${C.resolve(t)}/`),i=new x(f),o=f.replace(/^file:/,"")}if(/^\/{1,3}\.\.?(\/|$)/.test(o)){let f=e.rawSpec.replace(/^file:\/{1,3}/,"file:");s=new x(f,`file://${C.resolve(t)}/`),i=new x(f),o=f.replace(/^file:/,"")}let a=decodeURIComponent(i.pathname),h=decodeURIComponent(s.pathname);return J&&(a=a.replace(/^\/+([a-z]:\/)/i,"$1"),h=h.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(a)?(e.saveSpec=`file:${a.substr(1)}`,h=C.resolve(It(),a.substr(3))):C.isAbsolute(o)?e.saveSpec=`file:${C.resolve(h)}`:e.saveSpec=`file:${C.relative(t,h)}`,e.fetchSpec=C.resolve(t,h),e}function qt(e,t){return e.type="git",e.hosted=t,e.saveSpec=t.toString({noGitPlus:!1,noCommittish:!1}),e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString(),B(e,t.committish),e}function Vt(e,t){let i=new Error(`Unsupported URL Type "${e}": ${t}`);return i.code="EUNSUPPORTEDPROTOCOL",i}function Kt(e){let t=e.rawSpec;if(e.saveSpec=t,t.startsWith("git+ssh:")){let s=t.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(s&&!s[1].match(/:[0-9]+\/?.*$/i))return e.type="git",B(e,s[2]),e.fetchSpec=s[1],e}else t.startsWith("git+file://")&&(t=t.replace(/\\/g,"/"));let i=new x(t);switch(i.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":e.type="git",B(e,i.hash.slice(1)),i.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(t)?e.fetchSpec=`git+file://${i.host.toLowerCase()}:${i.pathname}`:(i.hash="",e.fetchSpec=i.toString()),e.fetchSpec.startsWith("git+")&&(e.fetchSpec=e.fetchSpec.slice(4));break;case"http:":case"https:":e.type="remote",e.fetchSpec=e.saveSpec;break;default:throw Vt(i.protocol,t)}return e}function Yt(e,t){let i=L(e.rawSpec.substr(4),t);if(i.type==="alias")throw new Error("nested aliases not supported");if(!i.registry)throw new Error("aliases only work for registry deps");if(!i.name)throw new Error("aliases must have a name");return e.subSpec=i,e.registry=!0,e.type="alias",e.saveSpec=null,e.fetchSpec=null,e}function Bt(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let i=mt.valid(t,!0),s=mt.validRange(t,!0);if(i)e.type="version";else if(s)e.type="range";else{if(encodeURIComponent(t)!==t)throw kt(t,e.raw);e.type="tag"}return e}});export default Jt();
@@ -0,0 +1 @@
1
+ import{Fb as a,Gb as b,Hb as c,Ib as d,Jb as e,Kb as f,Lb as g,Mb as h,Nb as i,Ob as j,Pb as k,Qb as l,Rb as m,Sb as n,Tb as o,Ub as p,Vb as q,Wb as r,Xb as s,Yb as t}from"./chunk-GFEAKSGV.js";import"./chunk-CERXUPGC.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-YC6G4MHD.js";import"./chunk-N7RBSKYT.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{a as TokenizedString,g as clearCollectedLogs,f as collectLog,e as collectedLogs,c as formatPackageManagerCommand,t as formatSection,p as itemToString,k as outputCompleted,d as outputContent,l as outputDebug,i as outputInfo,n as outputNewline,h as outputResult,j as outputSuccess,b as outputToken,m as outputWarn,q as outputWhereAppropriate,s as shouldDisplayColors,o as stringifyMessage,r as unstyled};
@@ -1 +1 @@
1
- import{c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i,l as j,m as k,n as l,o as m,p as n,q as o,r as p,s as q}from"./chunk-JBSYWYIP.js";import"./chunk-VPRTJUIN.js";export{g as basename,j as commonParentDirectory,n as cwd,f as dirname,h as extname,e as isAbsolutePath,l as isSubpath,a as joinPath,m as moduleDirectory,b as normalizePath,i as parsePath,d as relativePath,k as relativizePath,c as resolvePath,q as sanitizeRelativePath,p as sniffForJson,o as sniffForPath};
1
+ import{d as a,e as b,f as c,g as d,h as e,i as f,j as g,k as h,l as i,m as j,n as k,o as l,p as m,q as n,r as o,s as p,t as q}from"./chunk-IU2ZQ6TE.js";import"./chunk-VPRTJUIN.js";export{g as basename,j as commonParentDirectory,n as cwd,f as dirname,h as extname,e as isAbsolutePath,l as isSubpath,a as joinPath,m as moduleDirectory,b as normalizePath,i as parsePath,d as relativePath,k as relativizePath,c as resolvePath,q as sanitizeRelativePath,p as sniffForJson,o as sniffForPath};
@@ -1 +1 @@
1
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk-KADPE3PY.js";import"./chunk-VPRTJUIN.js";o();export{n as __debug,m as __internal,j as check,k as clearConfigCache,b as default,a as doc,i as format,h as formatWithCursor,e as getFileInfo,l as getSupportInfo,c as resolveConfig,d as resolveConfigFile,g as util,f as version};
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk-7MUKLZOL.js";import"./chunk-VPRTJUIN.js";o();export{n as __debug,m as __internal,j as check,k as clearConfigCache,b as default,a as doc,i as format,h as formatWithCursor,e as getFileInfo,l as getSupportInfo,c as resolveConfig,d as resolveConfigFile,g as util,f as version};
@@ -0,0 +1 @@
1
+ import{J as a,K as b,L as c,M as d,N as e,O as f,P as g,Q as h,R as i,S as j,T as k,U as l,V as m}from"./chunk-BDVAE5MS.js";import"./chunk-P6XE4MH5.js";import"./chunk-KLMDWDT2.js";import"./chunk-5CH3B62S.js";import"./chunk-QUTQDXSL.js";import"./chunk-IASVAERO.js";import"./chunk-JPGO36XP.js";import"./chunk-PD5ZHJWI.js";import"./chunk-LDGAHMS7.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-FUOIGXI4.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-V2CNCPIE.js";import"./chunk-GFEAKSGV.js";import"./chunk-CERXUPGC.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-YC6G4MHD.js";import"./chunk-N7RBSKYT.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{d as captureCommandWithExitCode,b as captureOutput,c as captureOutputWithExitCode,f as exec,e as execCommand,j as isCI,l as isStdinPiped,k as isWsl,a as openURL,m as readStdinString,g as sleep,h as terminalSupportsHyperlinks,i as terminalSupportsPrompting};