dispach 0.2.4 → 0.2.13

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 (187) hide show
  1. package/README.md +32 -33
  2. package/dist/APEv2Parser-rt8hyadd.js +5 -0
  3. package/dist/{FlacParser-8xprykrh.js.map → APEv2Parser-rt8hyadd.js.map} +1 -1
  4. package/dist/{AiffParser-ns1y9f0g.js → AiffParser-gvpmtb2e.js} +3 -3
  5. package/dist/{AiffParser-ns1y9f0g.js.map → AiffParser-gvpmtb2e.js.map} +1 -1
  6. package/dist/{App-wkpkwgjt.js → App-18dvbyev.js} +8 -8
  7. package/dist/{App-wkpkwgjt.js.map → App-18dvbyev.js.map} +1 -1
  8. package/dist/{AsfParser-bae2a1yf.js → AsfParser-h9zyh6cx.js} +3 -3
  9. package/dist/{AsfParser-bae2a1yf.js.map → AsfParser-h9zyh6cx.js.map} +1 -1
  10. package/dist/{ConfigEditor-hy9jtas3.js → ConfigEditor-444m13ta.js} +3 -3
  11. package/dist/{ConfigEditor-hy9jtas3.js.map → ConfigEditor-444m13ta.js.map} +1 -1
  12. package/dist/{DsdiffParser-s0zvxnfa.js → DsdiffParser-gxqv4gn1.js} +3 -3
  13. package/dist/{DsdiffParser-s0zvxnfa.js.map → DsdiffParser-gxqv4gn1.js.map} +1 -1
  14. package/dist/{DsfParser-90mvzt4v.js → DsfParser-sndt4jbk.js} +3 -3
  15. package/dist/{DsfParser-90mvzt4v.js.map → DsfParser-sndt4jbk.js.map} +1 -1
  16. package/dist/FlacParser-rmkpvf9e.js +5 -0
  17. package/dist/{APEv2Parser-x13n424p.js.map → FlacParser-rmkpvf9e.js.map} +1 -1
  18. package/dist/{KeyProbe-fk5krzks.js → KeyProbe-6t531sy6.js} +3 -3
  19. package/dist/{KeyProbe-fk5krzks.js.map → KeyProbe-6t531sy6.js.map} +1 -1
  20. package/dist/{MP4Parser-nmvbkq21.js → MP4Parser-87xfsck4.js} +3 -3
  21. package/dist/{MP4Parser-nmvbkq21.js.map → MP4Parser-87xfsck4.js.map} +1 -1
  22. package/dist/{MatroskaParser-tsmz2qfq.js → MatroskaParser-7krspfgx.js} +3 -3
  23. package/dist/{MatroskaParser-tsmz2qfq.js.map → MatroskaParser-7krspfgx.js.map} +1 -1
  24. package/dist/{MpegParser-y5fjpaz9.js → MpegParser-jcs35q0h.js} +3 -3
  25. package/dist/{MpegParser-y5fjpaz9.js.map → MpegParser-jcs35q0h.js.map} +1 -1
  26. package/dist/{MusepackParser-544q0byg.js → MusepackParser-d4zfnzk3.js} +3 -3
  27. package/dist/{MusepackParser-544q0byg.js.map → MusepackParser-d4zfnzk3.js.map} +1 -1
  28. package/dist/{OggParser-v77rbjnt.js → OggParser-fbspjs7v.js} +3 -3
  29. package/dist/{OggParser-v77rbjnt.js.map → OggParser-fbspjs7v.js.map} +1 -1
  30. package/dist/{Picker-32m79nmp.js → Picker-x6aj42tc.js} +3 -3
  31. package/dist/{Picker-32m79nmp.js.map → Picker-x6aj42tc.js.map} +1 -1
  32. package/dist/{SessionPicker-9p06npt5.js → SessionPicker-pngdv97x.js} +3 -3
  33. package/dist/{SessionPicker-9p06npt5.js.map → SessionPicker-pngdv97x.js.map} +1 -1
  34. package/dist/{SkillBrowser-ezdx3xsh.js → SkillBrowser-3mnzkakr.js} +3 -3
  35. package/dist/{SkillBrowser-ezdx3xsh.js.map → SkillBrowser-3mnzkakr.js.map} +1 -1
  36. package/dist/{WavPackParser-k623m0hk.js → WavPackParser-0x9z4466.js} +3 -3
  37. package/dist/{WavPackParser-k623m0hk.js.map → WavPackParser-0x9z4466.js.map} +1 -1
  38. package/dist/{WaveParser-nj4p1vx8.js → WaveParser-31b6qtef.js} +3 -3
  39. package/dist/{WaveParser-nj4p1vx8.js.map → WaveParser-31b6qtef.js.map} +1 -1
  40. package/dist/{WizardApp-p350qspw.js → WizardApp-c42wc116.js} +3 -3
  41. package/dist/{WizardApp-p350qspw.js.map → WizardApp-c42wc116.js.map} +1 -1
  42. package/dist/{channels-a9zx9yba.js → channels-nf6d8fvx.js} +14 -14
  43. package/dist/{channels-a9zx9yba.js.map → channels-nf6d8fvx.js.map} +1 -1
  44. package/dist/client.d.ts +1 -1
  45. package/dist/client.js +11 -11
  46. package/dist/client.js.map +4 -4
  47. package/dist/{config-3mz4zwsf.js → config-sx40rg8m.js} +21 -21
  48. package/dist/{config-3mz4zwsf.js.map → config-sx40rg8m.js.map} +1 -1
  49. package/dist/{credential-ja7zmd4c.js → credential-vdbkfk65.js} +5 -5
  50. package/dist/{credential-ja7zmd4c.js.map → credential-vdbkfk65.js.map} +1 -1
  51. package/dist/daemon.d.ts.map +1 -1
  52. package/dist/{index-dcy14zdn.js → index-0dcpsfet.js} +5 -5
  53. package/dist/{index-dcy14zdn.js.map → index-0dcpsfet.js.map} +1 -1
  54. package/dist/{index-a1axc952.js → index-1h8s50d9.js} +4 -4
  55. package/dist/{index-a1axc952.js.map → index-1h8s50d9.js.map} +1 -1
  56. package/dist/{index-ayhdn87b.js → index-1hbvhrsj.js} +4 -4
  57. package/dist/{index-ayhdn87b.js.map → index-1hbvhrsj.js.map} +1 -1
  58. package/dist/{index-5gn74n56.js → index-1hfece7s.js} +7 -7
  59. package/dist/{index-5gn74n56.js.map → index-1hfece7s.js.map} +1 -1
  60. package/dist/{index-0dvs3a06.js → index-2h566rtg.js} +4 -4
  61. package/dist/{index-0dvs3a06.js.map → index-2h566rtg.js.map} +1 -1
  62. package/dist/{index-zzpgsbn3.js → index-4fj1k64j.js} +4 -4
  63. package/dist/{index-zzpgsbn3.js.map → index-4fj1k64j.js.map} +1 -1
  64. package/dist/{index-gezqawvw.js → index-4g4smpkk.js} +5 -5
  65. package/dist/{index-gezqawvw.js.map → index-4g4smpkk.js.map} +1 -1
  66. package/dist/index-4gfsf9n8.js +6 -0
  67. package/dist/{index-tc054tcb.js.map → index-4gfsf9n8.js.map} +1 -1
  68. package/dist/{index-mgef1n4e.js → index-5ptbytze.js} +9 -9
  69. package/dist/{index-mgef1n4e.js.map → index-5ptbytze.js.map} +1 -1
  70. package/dist/{index-f6r3h2yh.js → index-5s1cq8np.js} +5 -5
  71. package/dist/{index-f6r3h2yh.js.map → index-5s1cq8np.js.map} +1 -1
  72. package/dist/{index-rqfwd7j5.js → index-659ggfbf.js} +4 -4
  73. package/dist/{index-rqfwd7j5.js.map → index-659ggfbf.js.map} +1 -1
  74. package/dist/index-6ebppx3t.js +6 -0
  75. package/dist/{index-x9nn57kk.js.map → index-6ebppx3t.js.map} +1 -1
  76. package/dist/{index-4j65jp20.js → index-6pym9p8h.js} +6 -6
  77. package/dist/{index-4j65jp20.js.map → index-6pym9p8h.js.map} +1 -1
  78. package/dist/index-9ejax6hp.js +6 -0
  79. package/dist/{index-s0t15ndj.js.map → index-9ejax6hp.js.map} +1 -1
  80. package/dist/{index-86rb86nr.js → index-9hw9j1qg.js} +4 -4
  81. package/dist/{index-86rb86nr.js.map → index-9hw9j1qg.js.map} +1 -1
  82. package/dist/{index-yz0fcxky.js → index-9xhresrg.js} +4 -4
  83. package/dist/{index-yz0fcxky.js.map → index-9xhresrg.js.map} +1 -1
  84. package/dist/{index-2td5h856.js → index-abm0zyc0.js} +6 -6
  85. package/dist/{index-2td5h856.js.map → index-abm0zyc0.js.map} +1 -1
  86. package/dist/{index-8k8y7edx.js → index-ar5c9d2f.js} +5 -5
  87. package/dist/{index-8k8y7edx.js.map → index-ar5c9d2f.js.map} +1 -1
  88. package/dist/index-bhj4pmrx.js +74 -0
  89. package/dist/index-bhj4pmrx.js.map +13 -0
  90. package/dist/{index-brh25jhq.js → index-brt17yfr.js} +3 -3
  91. package/dist/{index-brh25jhq.js.map → index-brt17yfr.js.map} +1 -1
  92. package/dist/index-bysnsdkd.js +6 -0
  93. package/dist/{index-c6qrcweh.js.map → index-bysnsdkd.js.map} +1 -1
  94. package/dist/{index-kz01jz58.js → index-c74wx9pv.js} +4 -4
  95. package/dist/{index-kz01jz58.js.map → index-c74wx9pv.js.map} +1 -1
  96. package/dist/{index-qj4adnfe.js → index-cm3g4t3r.js} +9 -9
  97. package/dist/{index-qj4adnfe.js.map → index-cm3g4t3r.js.map} +1 -1
  98. package/dist/{index-8mkatm20.js → index-dzp6mc5h.js} +4 -4
  99. package/dist/{index-8mkatm20.js.map → index-dzp6mc5h.js.map} +1 -1
  100. package/dist/{index-b8bfzbfe.js → index-fad09b8c.js} +4 -4
  101. package/dist/{index-b8bfzbfe.js.map → index-fad09b8c.js.map} +1 -1
  102. package/dist/{index-2fw9e5gg.js → index-fvb2dxzn.js} +4 -4
  103. package/dist/{index-2fw9e5gg.js.map → index-fvb2dxzn.js.map} +1 -1
  104. package/dist/index-gpq4agva.js +5 -0
  105. package/dist/{index-635wcsh1.js.map → index-gpq4agva.js.map} +1 -1
  106. package/dist/index-hcpvk5de.js +5 -0
  107. package/dist/{index-7zgjkbb0.js.map → index-hcpvk5de.js.map} +1 -1
  108. package/dist/{index-s0f0s6n5.js → index-jv5t63tp.js} +4 -4
  109. package/dist/{index-s0f0s6n5.js.map → index-jv5t63tp.js.map} +1 -1
  110. package/dist/{index-60h4knj6.js → index-kyz4t0j0.js} +59 -59
  111. package/dist/{index-60h4knj6.js.map → index-kyz4t0j0.js.map} +1 -1
  112. package/dist/{index-7p8d1gf0.js → index-m6r2sxcw.js} +23 -23
  113. package/dist/{index-7p8d1gf0.js.map → index-m6r2sxcw.js.map} +1 -1
  114. package/dist/{index-4fajxhdv.js → index-mhw3d7af.js} +4 -4
  115. package/dist/{index-4fajxhdv.js.map → index-mhw3d7af.js.map} +1 -1
  116. package/dist/{index-h787rq0h.js → index-mk7hrzq7.js} +10 -10
  117. package/dist/{index-h787rq0h.js.map → index-mk7hrzq7.js.map} +1 -1
  118. package/dist/{index-r83jpct7.js → index-n0hqgwad.js} +4 -4
  119. package/dist/{index-r83jpct7.js.map → index-n0hqgwad.js.map} +1 -1
  120. package/dist/{index-k6wq0j4q.js → index-ncb840sk.js} +4 -4
  121. package/dist/{index-k6wq0j4q.js.map → index-ncb840sk.js.map} +1 -1
  122. package/dist/{index-8jejze0z.js → index-ntczmwnf.js} +3 -3
  123. package/dist/{index-8jejze0z.js.map → index-ntczmwnf.js.map} +1 -1
  124. package/dist/{index-ts8a1sdn.js → index-p5gy5s7p.js} +6 -6
  125. package/dist/{index-ts8a1sdn.js.map → index-p5gy5s7p.js.map} +1 -1
  126. package/dist/index-p86w0qjw.js +5 -0
  127. package/dist/{index-pz92ksp8.js.map → index-p86w0qjw.js.map} +1 -1
  128. package/dist/{index-cb45233h.js → index-qhh30m9p.js} +4 -4
  129. package/dist/{index-cb45233h.js.map → index-qhh30m9p.js.map} +1 -1
  130. package/dist/{index-z4adxmzm.js → index-rerdsr3d.js} +5 -5
  131. package/dist/{index-z4adxmzm.js.map → index-rerdsr3d.js.map} +1 -1
  132. package/dist/{index-67sfck4d.js → index-s0mfq8t7.js} +18 -18
  133. package/dist/index-s0mfq8t7.js.map +11 -0
  134. package/dist/{index-9k6qa50r.js → index-s9ybp2r1.js} +6 -6
  135. package/dist/{index-9k6qa50r.js.map → index-s9ybp2r1.js.map} +1 -1
  136. package/dist/index-ss77hvwy.js +1246 -0
  137. package/dist/{index-tv52jhac.js.map → index-ss77hvwy.js.map} +32 -31
  138. package/dist/{index-yy4v9kca.js → index-t9bnt6a1.js} +4 -4
  139. package/dist/{index-yy4v9kca.js.map → index-t9bnt6a1.js.map} +1 -1
  140. package/dist/{index-5zpfz4kb.js → index-w2ss9hn5.js} +7 -7
  141. package/dist/{index-5zpfz4kb.js.map → index-w2ss9hn5.js.map} +1 -1
  142. package/dist/{index-1cagdzqe.js → index-w80shmpv.js} +2 -2
  143. package/dist/index-w8e8qxd4.js +337 -0
  144. package/dist/index-w8e8qxd4.js.map +21 -0
  145. package/dist/{index-xyh98x7p.js → index-z9r4e0yq.js} +4 -4
  146. package/dist/{index-xyh98x7p.js.map → index-z9r4e0yq.js.map} +1 -1
  147. package/dist/{index-039ew35r.js → index-zj87j4j2.js} +4 -4
  148. package/dist/{index-039ew35r.js.map → index-zj87j4j2.js.map} +1 -1
  149. package/dist/{index-446exxcb.js → index-zmerx9rc.js} +7 -7
  150. package/dist/{index-446exxcb.js.map → index-zmerx9rc.js.map} +1 -1
  151. package/dist/{index-nndwx2wp.js → index-zqjtjs7c.js} +39 -39
  152. package/dist/{index-nndwx2wp.js.map → index-zqjtjs7c.js.map} +1 -1
  153. package/dist/index.js +318 -305
  154. package/dist/index.js.map +6 -5
  155. package/dist/lib/launchd.d.ts.map +1 -1
  156. package/dist/lib/service-env.d.ts.map +1 -1
  157. package/dist/lib/templates.d.ts.map +1 -1
  158. package/dist/lib/theme.d.ts.map +1 -1
  159. package/dist/lib/watchdog.d.ts +20 -0
  160. package/dist/lib/watchdog.d.ts.map +1 -0
  161. package/dist/serve.d.ts.map +1 -1
  162. package/dist/skills.d.ts.map +1 -1
  163. package/dist/sources.d.ts.map +1 -1
  164. package/dist/{web-7mdrcb8a.js → web-zvf80ns1.js} +5 -5
  165. package/dist/{web-7mdrcb8a.js.map → web-zvf80ns1.js.map} +1 -1
  166. package/dist/wire.js +11 -11
  167. package/dist/wire.js.map +4 -4
  168. package/dist/wrapper-5zhcdmnk.js +5 -0
  169. package/dist/{wrapper-4hdmdwft.js.map → wrapper-5zhcdmnk.js.map} +1 -1
  170. package/package.json +4 -4
  171. package/dist/APEv2Parser-x13n424p.js +0 -5
  172. package/dist/FlacParser-8xprykrh.js +0 -5
  173. package/dist/index-635wcsh1.js +0 -5
  174. package/dist/index-67sfck4d.js.map +0 -13
  175. package/dist/index-7zgjkbb0.js +0 -5
  176. package/dist/index-c6qrcweh.js +0 -6
  177. package/dist/index-hd5nkwd7.js +0 -74
  178. package/dist/index-hd5nkwd7.js.map +0 -13
  179. package/dist/index-n197qdw1.js +0 -308
  180. package/dist/index-n197qdw1.js.map +0 -21
  181. package/dist/index-pz92ksp8.js +0 -5
  182. package/dist/index-s0t15ndj.js +0 -6
  183. package/dist/index-tc054tcb.js +0 -6
  184. package/dist/index-tv52jhac.js +0 -1252
  185. package/dist/index-x9nn57kk.js +0 -6
  186. package/dist/wrapper-4hdmdwft.js +0 -5
  187. /package/dist/{index-1cagdzqe.js.map → index-w80shmpv.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import{A,n}from"./index-tv52jhac.js";import{cn,at,RA,ln,as}from"./index-039ew35r.js";class st extends n{static ERROR_NAME="UsageError"}function S(e,i){let t=Array.from({length:i.length+1},(o,g)=>g);for(let o=1;o<=e.length;o+=1){let g=[o];for(let l=1;l<=i.length;l+=1){let f=(t[l-1]??0)+(e[o-1]===i[l-1]?0:1),d=(g[l-1]??0)+1,_=(t[l]??0)+1;g.push(Math.min(f,d,_))}t=g}return t[i.length]??Math.max(e.length,i.length)}function M(e,i){let t,o=Number.POSITIVE_INFINITY;for(let g of i){let l=S(e,g);if(l<o)o=l,t=g}return t!==void 0&&o<=Math.max(2,Math.floor(e.length/3))?t:void 0}class R{#e;#t;constructor(e,i){this.#e=e,this.#t=i}#n(e,i){let t=this.#t.get(e);if(t===void 0)throw new st({code:"cli_flag_not_declared",message:`No flag "${e}" is declared for this command.`,hint:"This is a bug in the CLI, not in the command line. Add the flag to lib/commands.ts or fix the reader."});if(t.kind!==i)throw new st({code:"cli_flag_kind_mismatch",message:`Flag "${e}" is declared as ${t.kind} but was read as ${i}.`,hint:"This is a bug in the CLI. The reader and lib/commands.ts disagree."});return this.#e.get(e)}str(e){let i=this.#n(e,"string");return typeof i==="string"?i:void 0}num(e){let i=this.#n(e,"number");return typeof i==="number"?i:void 0}bool(e){return this.#n(e,"boolean")===!0}has(e){return this.#e.has(e)}}function c(e,i,t,o){return o===void 0?{code:e,message:i,hint:t}:{code:e,message:i,hint:t,field:o}}function y(e){let i=e[0];return new st({code:"cli_usage",message:e.length===1&&i!==void 0?i.message:`${e.length} problems with the command line.`,hint:e.length===1&&i!==void 0?i.hint:"Each problem below names the flag and its fix.",...i?.field===void 0?{}:{field:i.field},details:e})}function D(e,i,t){let o=Number(i);if(i.trim()===""||!Number.isFinite(o))return c("cli_flag_not_a_number",`${t} expects a number, got ${JSON.stringify(i)}.`,`Pass a number, as in ${t} 50. The old parser silently used the default here, which made a typo look like it worked.`,t);if(e.integer===!0&&!Number.isInteger(o))return c("cli_flag_not_an_integer",`${t} expects a whole number, got ${i}.`,`Drop the fractional part: ${t} ${Math.trunc(o)}.`,t);if(e.min!==void 0&&o<e.min)return c("cli_flag_below_min",`${t} must be at least ${e.min}, got ${o}.`,`Pass ${e.min} or more.`,t);return o}function ss(e){let i=e[0];if(i===void 0)return{kind:"usage"};if(i.startsWith("-")){let s=new Set(cn.flatMap((a)=>a.short===void 0?[`--${a.name}`]:[`--${a.name}`,`-${a.short}`])),r=e.filter((a)=>!s.has(a));if(r.length>0)throw y([c("cli_no_command","No command given.",`Run \`${A.slug} --help\` for the command list. Commands are ${at.map((a)=>a.name).join(", ")}.`,r[0])]);if(e.includes("--version")||e.includes("-v"))return{kind:"version"};if(e.includes("--help")||e.includes("-h"))return{kind:"help",command:void 0};return{kind:"usage"}}let t=RA(i);if(t===void 0){let s=M(i,at.map((r)=>r.name));throw y([c("cli_unknown_command",`Unknown command "${i}".`,s===void 0?`Run \`${A.slug} --help\` for the command list.`:`Did you mean "${s}"? Run \`${A.slug} --help\` for the full list.`,i)])}let o=new Map(ln(t).map((s)=>[s.name,s])),g=new Map(ln(t).filter((s)=>s.short!==void 0).map((s)=>[s.short,s])),l=new Map,f=[],d=[],_=!1,w=(s,r,a)=>{if(r===""){d.push(c("cli_flag_empty_value",`${a} was given an empty value.`,"Pass a value, or drop the flag entirely to use the default.",a));return}if(s.kind==="number"){let u=D(s,r,a);if(typeof u==="number")l.set(s.name,u);else d.push(u);return}l.set(s.name,r)};for(let s=1;s<e.length;s+=1){let r=e[s];if(r===void 0)continue;if(_){f.push(r);continue}if(r==="--"){_=!0;continue}if(r.startsWith("--")){let a=r.slice(2),u=a.indexOf("="),m=u===-1?a:a.slice(0,u),h=o.get(m);if(h===void 0){let k=as(m,t.name),x=M(m,[...o.keys()]);d.push(c(k.length>0?"cli_flag_wrong_command":"cli_unknown_flag",k.length>0?`${t.name} does not accept --${m}.`:`Unknown flag --${m}.`,k.length>0?`--${m} is accepted by: ${k.join(", ")}.`:x===void 0?`Run \`${A.slug} ${t.name} --help\` for the flags this command accepts.`:`Did you mean --${x}?`,`--${m}`));continue}let p=`--${m}`;if(h.kind==="boolean"){if(u!==-1){d.push(c("cli_flag_takes_no_value",`${p} is a switch and takes no value.`,`Drop the "=${a.slice(u+1)}" — pass ${p} on its own.`,p));continue}l.set(h.name,!0);continue}if(u!==-1){w(h,a.slice(u+1),p);continue}let b=e[s+1];if(h.bare!==void 0&&(b===void 0||b.startsWith("-"))){l.set(h.name,h.bare);continue}if(b===void 0){d.push(c("cli_flag_needs_value",`${p} needs a value.`,`Pass one, as in ${p} <${h.placeholder??"value"}>.`,p));continue}w(h,b,p),s+=1;continue}if(r.startsWith("-")&&r.length>1){for(let a of[...r.slice(1)]){let u=g.get(a);if(u===void 0){d.push(c("cli_unknown_flag",`Unknown flag -${a}.`,`Run \`${A.slug} ${t.name} --help\` for the flags this command accepts.`,`-${a}`));continue}if(u.kind!=="boolean"){d.push(c("cli_short_flag_needs_value",`-${a} takes a value and cannot be bundled.`,`Write it on its own: --${u.name} <${u.placeholder??"value"}>.`,`-${a}`));continue}l.set(u.name,!0)}continue}f.push(r)}let v=new R(l,o);if(v.bool("help"))return{kind:"help",command:t};if(v.bool("version"))return{kind:"version"};let N=t.args.some((s)=>s.variadic===!0),F=t.args.filter((s)=>s.required);if(d.length>0)throw y(d);else if(f.length<F.length){let s=F[f.length];d.push(c("cli_missing_argument",`${t.name} needs ${s===void 0?"another argument":`a ${s.name}`}.`,`Usage: ${A.slug} ${t.name} ${t.args.map((r)=>`<${r.name}${r.variadic===!0?"...":""}>`).join(" ")}`))}else if(!N&&f.length>t.args.length){let s=f.slice(t.args.length);d.push(c("cli_unexpected_argument",`${t.name} takes ${t.args.length} argument(s), got ${f.length}.`,t.unexpectedArgHint??`Unexpected: ${s.join(" ")}. Quote a value containing spaces.`))}if(d.length>0)throw y(d);return{kind:"command",parsed:{command:t,positionals:f,flags:v}}}
3
- export{st,ss};
2
+ import{A,n}from"./index-ss77hvwy.js";import{gn,st,TA,cn,is}from"./index-zj87j4j2.js";class it extends n{static ERROR_NAME="UsageError"}function S(e,i){let t=Array.from({length:i.length+1},(o,g)=>g);for(let o=1;o<=e.length;o+=1){let g=[o];for(let l=1;l<=i.length;l+=1){let f=(t[l-1]??0)+(e[o-1]===i[l-1]?0:1),d=(g[l-1]??0)+1,_=(t[l]??0)+1;g.push(Math.min(f,d,_))}t=g}return t[i.length]??Math.max(e.length,i.length)}function M(e,i){let t,o=Number.POSITIVE_INFINITY;for(let g of i){let l=S(e,g);if(l<o)o=l,t=g}return t!==void 0&&o<=Math.max(2,Math.floor(e.length/3))?t:void 0}class R{#e;#t;constructor(e,i){this.#e=e,this.#t=i}#n(e,i){let t=this.#t.get(e);if(t===void 0)throw new it({code:"cli_flag_not_declared",message:`No flag "${e}" is declared for this command.`,hint:"This is a bug in the CLI, not in the command line. Add the flag to lib/commands.ts or fix the reader."});if(t.kind!==i)throw new it({code:"cli_flag_kind_mismatch",message:`Flag "${e}" is declared as ${t.kind} but was read as ${i}.`,hint:"This is a bug in the CLI. The reader and lib/commands.ts disagree."});return this.#e.get(e)}str(e){let i=this.#n(e,"string");return typeof i==="string"?i:void 0}num(e){let i=this.#n(e,"number");return typeof i==="number"?i:void 0}bool(e){return this.#n(e,"boolean")===!0}has(e){return this.#e.has(e)}}function c(e,i,t,o){return o===void 0?{code:e,message:i,hint:t}:{code:e,message:i,hint:t,field:o}}function y(e){let i=e[0];return new it({code:"cli_usage",message:e.length===1&&i!==void 0?i.message:`${e.length} problems with the command line.`,hint:e.length===1&&i!==void 0?i.hint:"Each problem below names the flag and its fix.",...i?.field===void 0?{}:{field:i.field},details:e})}function D(e,i,t){let o=Number(i);if(i.trim()===""||!Number.isFinite(o))return c("cli_flag_not_a_number",`${t} expects a number, got ${JSON.stringify(i)}.`,`Pass a number, as in ${t} 50. The old parser silently used the default here, which made a typo look like it worked.`,t);if(e.integer===!0&&!Number.isInteger(o))return c("cli_flag_not_an_integer",`${t} expects a whole number, got ${i}.`,`Drop the fractional part: ${t} ${Math.trunc(o)}.`,t);if(e.min!==void 0&&o<e.min)return c("cli_flag_below_min",`${t} must be at least ${e.min}, got ${o}.`,`Pass ${e.min} or more.`,t);return o}function rs(e){let i=e[0];if(i===void 0)return{kind:"usage"};if(i.startsWith("-")){let s=new Set(gn.flatMap((a)=>a.short===void 0?[`--${a.name}`]:[`--${a.name}`,`-${a.short}`])),r=e.filter((a)=>!s.has(a));if(r.length>0)throw y([c("cli_no_command","No command given.",`Run \`${A.slug} --help\` for the command list. Commands are ${st.map((a)=>a.name).join(", ")}.`,r[0])]);if(e.includes("--version")||e.includes("-v"))return{kind:"version"};if(e.includes("--help")||e.includes("-h"))return{kind:"help",command:void 0};return{kind:"usage"}}let t=TA(i);if(t===void 0){let s=M(i,st.map((r)=>r.name));throw y([c("cli_unknown_command",`Unknown command "${i}".`,s===void 0?`Run \`${A.slug} --help\` for the command list.`:`Did you mean "${s}"? Run \`${A.slug} --help\` for the full list.`,i)])}let o=new Map(cn(t).map((s)=>[s.name,s])),g=new Map(cn(t).filter((s)=>s.short!==void 0).map((s)=>[s.short,s])),l=new Map,f=[],d=[],_=!1,w=(s,r,a)=>{if(r===""){d.push(c("cli_flag_empty_value",`${a} was given an empty value.`,"Pass a value, or drop the flag entirely to use the default.",a));return}if(s.kind==="number"){let u=D(s,r,a);if(typeof u==="number")l.set(s.name,u);else d.push(u);return}l.set(s.name,r)};for(let s=1;s<e.length;s+=1){let r=e[s];if(r===void 0)continue;if(_){f.push(r);continue}if(r==="--"){_=!0;continue}if(r.startsWith("--")){let a=r.slice(2),u=a.indexOf("="),m=u===-1?a:a.slice(0,u),h=o.get(m);if(h===void 0){let k=is(m,t.name),x=M(m,[...o.keys()]);d.push(c(k.length>0?"cli_flag_wrong_command":"cli_unknown_flag",k.length>0?`${t.name} does not accept --${m}.`:`Unknown flag --${m}.`,k.length>0?`--${m} is accepted by: ${k.join(", ")}.`:x===void 0?`Run \`${A.slug} ${t.name} --help\` for the flags this command accepts.`:`Did you mean --${x}?`,`--${m}`));continue}let p=`--${m}`;if(h.kind==="boolean"){if(u!==-1){d.push(c("cli_flag_takes_no_value",`${p} is a switch and takes no value.`,`Drop the "=${a.slice(u+1)}" — pass ${p} on its own.`,p));continue}l.set(h.name,!0);continue}if(u!==-1){w(h,a.slice(u+1),p);continue}let b=e[s+1];if(h.bare!==void 0&&(b===void 0||b.startsWith("-"))){l.set(h.name,h.bare);continue}if(b===void 0){d.push(c("cli_flag_needs_value",`${p} needs a value.`,`Pass one, as in ${p} <${h.placeholder??"value"}>.`,p));continue}w(h,b,p),s+=1;continue}if(r.startsWith("-")&&r.length>1){for(let a of[...r.slice(1)]){let u=g.get(a);if(u===void 0){d.push(c("cli_unknown_flag",`Unknown flag -${a}.`,`Run \`${A.slug} ${t.name} --help\` for the flags this command accepts.`,`-${a}`));continue}if(u.kind!=="boolean"){d.push(c("cli_short_flag_needs_value",`-${a} takes a value and cannot be bundled.`,`Write it on its own: --${u.name} <${u.placeholder??"value"}>.`,`-${a}`));continue}l.set(u.name,!0)}continue}f.push(r)}let v=new R(l,o);if(v.bool("help"))return{kind:"help",command:t};if(v.bool("version"))return{kind:"version"};let N=t.args.some((s)=>s.variadic===!0),F=t.args.filter((s)=>s.required);if(d.length>0)throw y(d);else if(f.length<F.length){let s=F[f.length];d.push(c("cli_missing_argument",`${t.name} needs ${s===void 0?"another argument":`a ${s.name}`}.`,`Usage: ${A.slug} ${t.name} ${t.args.map((r)=>`<${r.name}${r.variadic===!0?"...":""}>`).join(" ")}`))}else if(!N&&f.length>t.args.length){let s=f.slice(t.args.length);d.push(c("cli_unexpected_argument",`${t.name} takes ${t.args.length} argument(s), got ${f.length}.`,t.unexpectedArgHint??`Unexpected: ${s.join(" ")}. Quote a value containing spaces.`))}if(d.length>0)throw y(d);return{kind:"command",parsed:{command:t,positionals:f,flags:v}}}
3
+ export{it,rs};
4
4
 
5
- //# debugId=0B3BB667C43691EF64756E2164756E21
6
- //# sourceMappingURL=index-yy4v9kca.js.map
5
+ //# debugId=B1158EA43F6C46A664756E2164756E21
6
+ //# sourceMappingURL=index-t9bnt6a1.js.map
@@ -5,6 +5,6 @@
5
5
  "/**\n * The argument parser. Pure — argv in, a decision out, no I/O and no `process`.\n *\n * It replaces a parser that failed silently in four distinct ways, each of which is now a test:\n *\n * - **A value beginning with `-` was swallowed.** The old rule was \"consume the next token unless\n * it looks like a flag\", so `--input \"-5 degrees\"` set `input` to boolean `true`, the caller's\n * `typeof input === \"string\"` check failed, and the process opened an interactive session instead\n * of running the one turn it was asked for. The rule here has no such hole: whether a flag\n * consumes the next token is a property of the *flag*, declared in `commands.ts`, never a guess\n * about the value.\n * - **Unknown flags were ignored.** `--sesion local:x` ran against the default session silently.\n * - **A non-numeric `--limit` fell back to the default.**\n * - **`--help` with no command exited 1**, reporting failure for the one thing that had succeeded.\n *\n * Every problem found is collected rather than thrown on sight, so a line with two mistakes reports\n * both. `HarnessError.details` already renders that shape.\n */\n\nimport { BRAND, type ErrorDetail, HarnessError } from \"@dispach/core\"\nimport { COMMANDS, commandsAccepting, findCommand, flagsFor, GLOBAL_FLAGS } from \"#lib/commands\"\nimport type { FlagSpec, FlagValue, FlagValues, ParseResult } from \"#lib/schema\"\n\n/** Anything wrong with the command line itself. Distinct from anything wrong with a manifest. */\nexport class UsageError extends HarnessError {\n static override readonly ERROR_NAME = \"UsageError\"\n}\n\n// ─── nearest match ───────────────────────────────────────────────────────────────────────\n\nfunction distance(a: string, b: string): number {\n // Two rows rather than a full matrix; the strings here are flag names.\n let previous = Array.from({ length: b.length + 1 }, (_, i) => i)\n for (let i = 1; i <= a.length; i += 1) {\n const current = [i]\n for (let j = 1; j <= b.length; j += 1) {\n const substitution = (previous[j - 1] ?? 0) + (a[i - 1] === b[j - 1] ? 0 : 1)\n const insertion = (current[j - 1] ?? 0) + 1\n const deletion = (previous[j] ?? 0) + 1\n current.push(Math.min(substitution, insertion, deletion))\n }\n previous = current\n }\n return previous[b.length] ?? Math.max(a.length, b.length)\n}\n\nfunction nearest(word: string, candidates: readonly string[]): string | undefined {\n let best: string | undefined\n let bestScore = Number.POSITIVE_INFINITY\n for (const candidate of candidates) {\n const score = distance(word, candidate)\n if (score < bestScore) {\n bestScore = score\n best = candidate\n }\n }\n // A suggestion has to be plausible. Beyond a third of the word it is noise, and noise in an\n // error message is worse than no suggestion at all.\n return best !== undefined && bestScore <= Math.max(2, Math.floor(word.length / 3))\n ? best\n : undefined\n}\n\n// ─── flag values ─────────────────────────────────────────────────────────────────────────\n\nclass Values implements FlagValues {\n readonly #values: ReadonlyMap<string, FlagValue>\n readonly #specs: ReadonlyMap<string, FlagSpec>\n\n constructor(values: ReadonlyMap<string, FlagValue>, specs: ReadonlyMap<string, FlagSpec>) {\n this.#values = values\n this.#specs = specs\n }\n\n #expect(name: string, kind: FlagSpec[\"kind\"]): FlagValue | undefined {\n const spec = this.#specs.get(name)\n if (spec === undefined) {\n throw new UsageError({\n code: \"cli_flag_not_declared\",\n message: `No flag \"${name}\" is declared for this command.`,\n hint: \"This is a bug in the CLI, not in the command line. Add the flag to lib/commands.ts or fix the reader.\",\n })\n }\n if (spec.kind !== kind) {\n throw new UsageError({\n code: \"cli_flag_kind_mismatch\",\n message: `Flag \"${name}\" is declared as ${spec.kind} but was read as ${kind}.`,\n hint: \"This is a bug in the CLI. The reader and lib/commands.ts disagree.\",\n })\n }\n return this.#values.get(name)\n }\n\n str(name: string): string | undefined {\n const value = this.#expect(name, \"string\")\n return typeof value === \"string\" ? value : undefined\n }\n\n num(name: string): number | undefined {\n const value = this.#expect(name, \"number\")\n return typeof value === \"number\" ? value : undefined\n }\n\n bool(name: string): boolean {\n return this.#expect(name, \"boolean\") === true\n }\n\n has(name: string): boolean {\n return this.#values.has(name)\n }\n}\n\n// ─── parse ───────────────────────────────────────────────────────────────────────────────\n\nfunction detail(code: string, message: string, hint: string, field?: string): ErrorDetail {\n return field === undefined ? { code, message, hint } : { code, message, hint, field }\n}\n\nfunction usage(details: ErrorDetail[]): UsageError {\n const first = details[0]\n return new UsageError({\n code: \"cli_usage\",\n message:\n details.length === 1 && first !== undefined\n ? first.message\n : `${details.length} problems with the command line.`,\n hint:\n details.length === 1 && first !== undefined\n ? first.hint\n : \"Each problem below names the flag and its fix.\",\n ...(first?.field === undefined ? {} : { field: first.field }),\n details,\n })\n}\n\nfunction readNumber(spec: FlagSpec, raw: string, written: string): number | ErrorDetail {\n const value = Number(raw)\n if (raw.trim() === \"\" || !Number.isFinite(value)) {\n return detail(\n \"cli_flag_not_a_number\",\n `${written} expects a number, got ${JSON.stringify(raw)}.`,\n `Pass a number, as in ${written} 50. The old parser silently used the default here, which made a typo look like it worked.`,\n written,\n )\n }\n if (spec.integer === true && !Number.isInteger(value)) {\n return detail(\n \"cli_flag_not_an_integer\",\n `${written} expects a whole number, got ${raw}.`,\n `Drop the fractional part: ${written} ${Math.trunc(value)}.`,\n written,\n )\n }\n if (spec.min !== undefined && value < spec.min) {\n return detail(\n \"cli_flag_below_min\",\n `${written} must be at least ${spec.min}, got ${value}.`,\n `Pass ${spec.min} or more.`,\n written,\n )\n }\n return value\n}\n\n/**\n * `argv` is everything after the program name.\n *\n * The command comes first, before any flag, as with git and docker. That ordering is what makes the\n * parse unambiguous: flag semantics depend on the command's spec, so the command has to be known\n * before a single flag can be interpreted.\n */\nexport function parse(argv: readonly string[]): ParseResult {\n const head = argv[0]\n\n if (head === undefined) return { kind: \"usage\" }\n\n if (head.startsWith(\"-\")) {\n // No command. Only the global flags can appear here, and only two of them do anything.\n const globals = new Set(\n GLOBAL_FLAGS.flatMap((flag) =>\n flag.short === undefined\n ? [`--${flag.name}`]\n : [`--${flag.name}`, `-${flag.short}`],\n ),\n )\n const unknown = argv.filter((token) => !globals.has(token))\n if (unknown.length > 0) {\n throw usage([\n detail(\n \"cli_no_command\",\n \"No command given.\",\n `Run \\`${BRAND.slug} --help\\` for the command list. Commands are ${COMMANDS.map((c) => c.name).join(\", \")}.`,\n unknown[0],\n ),\n ])\n }\n if (argv.includes(\"--version\") || argv.includes(\"-v\")) return { kind: \"version\" }\n if (argv.includes(\"--help\") || argv.includes(\"-h\")) {\n return { kind: \"help\", command: undefined }\n }\n return { kind: \"usage\" }\n }\n\n const command = findCommand(head)\n if (command === undefined) {\n const suggestion = nearest(\n head,\n COMMANDS.map((c) => c.name),\n )\n throw usage([\n detail(\n \"cli_unknown_command\",\n `Unknown command \"${head}\".`,\n suggestion === undefined\n ? `Run \\`${BRAND.slug} --help\\` for the command list.`\n : `Did you mean \"${suggestion}\"? Run \\`${BRAND.slug} --help\\` for the full list.`,\n head,\n ),\n ])\n }\n\n const specs = new Map(flagsFor(command).map((flag) => [flag.name, flag]))\n const shorts = new Map(\n flagsFor(command)\n .filter((flag) => flag.short !== undefined)\n .map((flag) => [flag.short as string, flag]),\n )\n\n const values = new Map<string, FlagValue>()\n const positionals: string[] = []\n const errors: ErrorDetail[] = []\n let terminated = false\n\n const setValue = (spec: FlagSpec, raw: string, written: string): void => {\n if (raw === \"\") {\n errors.push(\n detail(\n \"cli_flag_empty_value\",\n `${written} was given an empty value.`,\n \"Pass a value, or drop the flag entirely to use the default.\",\n written,\n ),\n )\n return\n }\n if (spec.kind === \"number\") {\n const result = readNumber(spec, raw, written)\n if (typeof result === \"number\") values.set(spec.name, result)\n else errors.push(result)\n return\n }\n values.set(spec.name, raw)\n }\n\n for (let i = 1; i < argv.length; i += 1) {\n const token = argv[i]\n if (token === undefined) continue\n\n if (terminated) {\n positionals.push(token)\n continue\n }\n if (token === \"--\") {\n terminated = true\n continue\n }\n\n if (token.startsWith(\"--\")) {\n const body = token.slice(2)\n const eq = body.indexOf(\"=\")\n const name = eq === -1 ? body : body.slice(0, eq)\n const spec = specs.get(name)\n\n if (spec === undefined) {\n const elsewhere = commandsAccepting(name, command.name)\n const suggestion = nearest(name, [...specs.keys()])\n errors.push(\n detail(\n elsewhere.length > 0 ? \"cli_flag_wrong_command\" : \"cli_unknown_flag\",\n elsewhere.length > 0\n ? `${command.name} does not accept --${name}.`\n : `Unknown flag --${name}.`,\n elsewhere.length > 0\n ? `--${name} is accepted by: ${elsewhere.join(\", \")}.`\n : suggestion === undefined\n ? `Run \\`${BRAND.slug} ${command.name} --help\\` for the flags this command accepts.`\n : `Did you mean --${suggestion}?`,\n `--${name}`,\n ),\n )\n continue\n }\n\n const written = `--${name}`\n\n if (spec.kind === \"boolean\") {\n if (eq !== -1) {\n errors.push(\n detail(\n \"cli_flag_takes_no_value\",\n `${written} is a switch and takes no value.`,\n `Drop the \"=${body.slice(eq + 1)}\" — pass ${written} on its own.`,\n written,\n ),\n )\n continue\n }\n values.set(spec.name, true)\n continue\n }\n\n if (eq !== -1) {\n setValue(spec, body.slice(eq + 1), written)\n continue\n }\n\n // Consume the next token unconditionally. This is the fix for the swallowed-value bug:\n // whether a token is a value is decided by the spec, never by whether it starts with a\n // dash. `--input -5` means the text \"-5\".\n const next = argv[i + 1]\n // Unless the spec declares a bare form, in which case a missing token or one starting with a\n // dash means the flag was written on its own. Opt-in per flag, because the inversion is only\n // safe for a field whose values cannot start with a dash — see `FlagSpec.bare`.\n if (spec.bare !== undefined && (next === undefined || next.startsWith(\"-\"))) {\n values.set(spec.name, spec.bare)\n continue\n }\n if (next === undefined) {\n errors.push(\n detail(\n \"cli_flag_needs_value\",\n `${written} needs a value.`,\n `Pass one, as in ${written} <${spec.placeholder ?? \"value\"}>.`,\n written,\n ),\n )\n continue\n }\n setValue(spec, next, written)\n i += 1\n continue\n }\n\n if (token.startsWith(\"-\") && token.length > 1) {\n // Short flags cluster only when every letter is a switch. Anything else is ambiguous\n // about which flag the trailing text belongs to, and guessing is how values get lost.\n for (const letter of [...token.slice(1)]) {\n const spec = shorts.get(letter)\n if (spec === undefined) {\n errors.push(\n detail(\n \"cli_unknown_flag\",\n `Unknown flag -${letter}.`,\n `Run \\`${BRAND.slug} ${command.name} --help\\` for the flags this command accepts.`,\n `-${letter}`,\n ),\n )\n continue\n }\n if (spec.kind !== \"boolean\") {\n errors.push(\n detail(\n \"cli_short_flag_needs_value\",\n `-${letter} takes a value and cannot be bundled.`,\n `Write it on its own: --${spec.name} <${spec.placeholder ?? \"value\"}>.`,\n `-${letter}`,\n ),\n )\n continue\n }\n values.set(spec.name, true)\n }\n continue\n }\n\n positionals.push(token)\n }\n\n // Help wins over argument checking. Asking how to use a command you invoked wrongly is the most\n // likely next thing you want, and refusing to answer would be perverse.\n const flags = new Values(values, specs)\n if (flags.bool(\"help\")) return { kind: \"help\", command }\n if (flags.bool(\"version\")) return { kind: \"version\" }\n\n // Positional counting is only meaningful once every flag parsed. An unknown flag cannot consume\n // its value — the kind is unknown — so the orphan lands here as a positional, and reporting\n // \"takes 1 argument, got 2\" alongside the real mistake sends the reader looking in the wrong\n // place. Report causes, never their consequences.\n const variadic = command.args.some((arg) => arg.variadic === true)\n const required = command.args.filter((arg) => arg.required)\n if (errors.length > 0) {\n throw usage(errors)\n } else if (positionals.length < required.length) {\n const missing = required[positionals.length]\n errors.push(\n detail(\n \"cli_missing_argument\",\n `${command.name} needs ${missing === undefined ? \"another argument\" : `a ${missing.name}`}.`,\n `Usage: ${BRAND.slug} ${command.name} ${command.args.map((a) => `<${a.name}${a.variadic === true ? \"...\" : \"\"}>`).join(\" \")}`,\n ),\n )\n } else if (!variadic && positionals.length > command.args.length) {\n const extra = positionals.slice(command.args.length)\n errors.push(\n detail(\n \"cli_unexpected_argument\",\n `${command.name} takes ${command.args.length} argument(s), got ${positionals.length}.`,\n command.unexpectedArgHint ??\n `Unexpected: ${extra.join(\" \")}. Quote a value containing spaces.`,\n ),\n )\n }\n\n if (errors.length > 0) throw usage(errors)\n\n return { kind: \"command\", parsed: { command, positionals, flags } }\n}\n"
6
6
  ],
7
7
  "mappings": "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",
8
- "debugId": "0B3BB667C43691EF64756E2164756E21",
8
+ "debugId": "B1158EA43F6C46A664756E2164756E21",
9
9
  "names": []
10
10
  }
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import{n,Re,IA,dA}from"./index-tv52jhac.js";import{Ft,rn}from"./index-k6wq0j4q.js";import{Xn,eo,Ve}from"./index-gezqawvw.js";import{C,L,w,S}from"./index-9k6qa50r.js";import{readFileSync as u}from"node:fs";function zA(e){if(e===void 0||e===null)return"(not set)";if(typeof e==="string")return e===""?'""':e;if(typeof e==="boolean"||typeof e==="number")return String(e);return JSON.stringify(e)}function h(e){return e.split(/[.[]/)[0]??e}function Pi(e,t){let o=[`${t}`,""],s=new Map;for(let i of e){let l=h(i.setting.path);s.set(l,[...s.get(l)??[],i])}let r=!0;for(let[i,l]of s){o.push(L(i,r)),r=!1;for(let a of l){let d=a.setting.agentListed?"":" · yours only",g=a.setting.via===void 0?"":` · set with \`${a.setting.via}\``,p=a.setting.confirm===void 0?"":" · asks first";o.push(C([{label:a.setting.path,value:zA(a.value)}]),S(`${a.setting.means}${d}${g}${p}`,4))}}return o.push("","A change takes effect the next time the agent starts. `yours only` marks a field the agent is","refused: what it may do is its to ask for, where it writes and who may reach it are yours."),o.join(`
3
- `)}function Gi(e,t){return[C([{label:e.path,value:zA(t)}]),S(e.means,4),...e.toAgent===void 0?[]:[S(`to the agent: ${e.toAgent}`,4)]].join(`
4
- `)}function Fi(e,t){if(e.confirm===void 0)return;if(e.path==="tools.untrusted.onMutate"&&String(t).toLowerCase()!=="allow")return;return e.confirm}function Ui(e){let t=[C([{label:"set",value:`${e.path} = ${zA(e.after)}`},{label:"was",value:e.before===void 0?"(not set)":zA(e.before)},{label:"file",value:e.file}])];if(e.reflowed)t.push("",w("the block could not be edited in place, so the file was re-serialised — it is valid, and comments may have moved"));if(e.running!==void 0)t.push("",w(`this agent is running (pid ${e.running.pid}, ${e.running.mode}) and holds its settings for its lifetime — the change applies after ${e.restartHint}`));for(let o of e.pending)t.push(w(`${o.name} is not set — ${o.why}`)),t.push(w(`fill it in with \`config env <agent> ${o.name}\``));return t.join(`
5
- `)}function xi(){return dA.filter((e)=>e.via===void 0&&!/[[<]/.test(e.path)).map((e)=>e.path)}function ZA(e){if(typeof e!=="object"||e===null)return[];let t=e,o=[],s=(a,d)=>{if(typeof a==="string"&&a!=="")o.push({name:a,why:d})},r=f(t.model);for(let a of["main","selector","compactor"]){let d=f(r?.[a]);s(d?.apiKeyEnv,"the manifest will not load until it is set")}if(Array.isArray(t.channels))for(let a of t.channels){let d=f(a);if(d===void 0||d.enabled===!1)continue;s(d.tokenEnv,`the ${String(d.id??d.type??"channel")} channel is read at boot, so the agent will not start until it is set`)}let i=f(t.server);if(i?.enabled===!0)s(i.tokenEnv,"the HTTP API would accept unauthenticated requests. This does not stop the agent starting");let l=f(f(t.tools)?.providers);for(let[a,d]of Object.entries(l??{}))s(f(d)?.apiKeyEnv,`the ${a} provider's tools will not work until it is set`);return o}function f(e){if(typeof e!=="object"||e===null||Array.isArray(e))return;return e}function Vo(e,t){return e.filter((o)=>t[o.name]===void 0||t[o.name]==="")}function c(e,t){let o=[],s=new Map;for(let r of e){if(r.setting.via!==void 0||/[[<]/.test(r.setting.path))continue;let i=r.setting.path.split(".")[0]??r.setting.path;s.set(i,[...s.get(i)??[],r])}for(let[r,i]of s){o.push({kind:"heading",label:r});for(let l of i)o.push({kind:"setting",setting:l.setting,value:l.value})}if(t.channels.length>0){o.push({kind:"heading",label:"who may reach it"});for(let r of t.channels)o.push({kind:"allow",channelId:r.id,channelType:r.type,handles:r.allowFrom})}if(t.secrets.length>0){o.push({kind:"heading",label:"secrets — written to the .env, never shown"});for(let r of t.secrets)o.push({kind:"secret",name:r.name,why:r.why,present:t.present(r.name)})}return o}function Wo(e){let t=u(e,"utf8");return dA.map((o)=>{if(o.path==="channels[].allowFrom"){let s=Re(t,["channels"]);if(!Array.isArray(s))return{setting:o,value:void 0};let r={};for(let i of s){if(typeof i!=="object"||i===null)continue;let l=i;if(typeof l.id!=="string")continue;r[l.id]=l.allowFrom??[]}return{setting:o,value:Object.keys(r).length===0?void 0:r}}if(o.path==="tools.providers.<id>.writeRoots"){let s=Re(t,["tools","providers"]);if(typeof s!=="object"||s===null||Array.isArray(s))return{setting:o,value:void 0};let r={};for(let[i,l]of Object.entries(s)){if(typeof l!=="object"||l===null)continue;let a=l.writeRoots;if(a!==void 0)r[i]=a}return{setting:o,value:Object.keys(r).length===0?void 0:r}}return{setting:o,value:Re(t,o.path.split("."))}})}function yA(e){let t=u(e,"utf8"),o=IA(t),s=Ft(e),r=Re(t,["channels"]);return c(Wo(e),{channels:(Array.isArray(r)?r:[]).filter((i)=>typeof i==="object"&&i!==null&&!Array.isArray(i)).map((i)=>({id:String(i.id??""),type:String(i.type??""),allowFrom:Array.isArray(i.allowFrom)?i.allowFrom.map(String):[]})).filter((i)=>i.id!==""),secrets:ZA(o),present:(i)=>rn(s,i)})}async function Mn(e,t,o){switch(t.kind){case"setting":{if(o.trim()==="")throw new n({code:"cli_config_value_missing",message:`No value given for ${t.setting.path}.`,hint:'A bare word, a number, a list as ["a", "b"], or a map as {k: v}.',field:"value"});return(await Xn(e,t.setting.path,o)).note}case"allow":{let s=o.trim()===""?[]:o.trim().split(/\s+/);return(await eo(e,t.channelId,s)).note}case"secret":return Ve(e,t.name,o).note;case"heading":return""}}
6
- export{zA,Pi,Gi,Fi,Ui,xi,ZA,Vo,Wo,yA,Mn};
2
+ import{n,Re,lA,IA}from"./index-ss77hvwy.js";import{Gt,on}from"./index-ncb840sk.js";import{$n,Xn,Ve}from"./index-4g4smpkk.js";import{p,L,D,w}from"./index-s9ybp2r1.js";import{readFileSync as u}from"node:fs";function WA(e){if(e===void 0||e===null)return"(not set)";if(typeof e==="string")return e===""?'""':e;if(typeof e==="boolean"||typeof e==="number")return String(e);return JSON.stringify(e)}function y(e){return e.split(/[.[]/)[0]??e}function vi(e,t){let o=[`${t}`,""],s=new Map;for(let i of e){let l=y(i.setting.path);s.set(l,[...s.get(l)??[],i])}let r=!0;for(let[i,l]of s){o.push(L(i,r)),r=!1;for(let a of l){let d=a.setting.agentListed?"":" · yours only",g=a.setting.via===void 0?"":` · set with \`${a.setting.via}\``,h=a.setting.confirm===void 0?"":" · asks first";o.push(p([{label:a.setting.path,value:WA(a.value)}]),w(`${a.setting.means}${d}${g}${h}`,4))}}return o.push("","A change takes effect the next time the agent starts. `yours only` marks a field the agent is","refused: what it may do is its to ask for, where it writes and who may reach it are yours."),o.join(`
3
+ `)}function Li(e,t){return[p([{label:e.path,value:WA(t)}]),w(e.means,4),...e.toAgent===void 0?[]:[w(`to the agent: ${e.toAgent}`,4)]].join(`
4
+ `)}function Pi(e,t){if(e.confirm===void 0)return;if(e.path==="tools.untrusted.onMutate"&&String(t).toLowerCase()!=="allow")return;return e.confirm}function Gi(e){let t=[p([{label:"set",value:`${e.path} = ${WA(e.after)}`},{label:"was",value:e.before===void 0?"(not set)":WA(e.before)},{label:"file",value:e.file}])];if(e.reflowed)t.push("",D("the block could not be edited in place, so the file was re-serialised — it is valid, and comments may have moved"));if(e.running!==void 0)t.push("",D(`this agent is running (pid ${e.running.pid}, ${e.running.mode}) and holds its settings for its lifetime — the change applies after ${e.restartHint}`));for(let o of e.pending)t.push(D(`${o.name} is not set — ${o.why}`)),t.push(D(`fill it in with \`config env <agent> ${o.name}\``));return t.join(`
5
+ `)}function Fi(){return IA.filter((e)=>e.via===void 0&&!/[[<]/.test(e.path)).map((e)=>e.path)}function zA(e){if(typeof e!=="object"||e===null)return[];let t=e,o=[],s=(a,d)=>{if(typeof a==="string"&&a!=="")o.push({name:a,why:d})},r=f(t.model);for(let a of["main","selector","compactor"]){let d=f(r?.[a]);s(d?.apiKeyEnv,"the manifest will not load until it is set")}if(Array.isArray(t.channels))for(let a of t.channels){let d=f(a);if(d===void 0||d.enabled===!1)continue;s(d.tokenEnv,`the ${String(d.id??d.type??"channel")} channel is read at boot, so the agent will not start until it is set`)}let i=f(t.server);if(i?.enabled===!0)s(i.tokenEnv,"the HTTP API would accept unauthenticated requests. This does not stop the agent starting");let l=f(f(t.tools)?.providers);for(let[a,d]of Object.entries(l??{}))s(f(d)?.apiKeyEnv,`the ${a} provider's tools will not work until it is set`);return o}function f(e){if(typeof e!=="object"||e===null||Array.isArray(e))return;return e}function qo(e,t){return e.filter((o)=>t[o.name]===void 0||t[o.name]==="")}function c(e,t){let o=[],s=new Map;for(let r of e){if(r.setting.via!==void 0||/[[<]/.test(r.setting.path))continue;let i=r.setting.path.split(".")[0]??r.setting.path;s.set(i,[...s.get(i)??[],r])}for(let[r,i]of s){o.push({kind:"heading",label:r});for(let l of i)o.push({kind:"setting",setting:l.setting,value:l.value})}if(t.channels.length>0){o.push({kind:"heading",label:"who may reach it"});for(let r of t.channels)o.push({kind:"allow",channelId:r.id,channelType:r.type,handles:r.allowFrom})}if(t.secrets.length>0){o.push({kind:"heading",label:"secrets — written to the .env, never shown"});for(let r of t.secrets)o.push({kind:"secret",name:r.name,why:r.why,present:t.present(r.name)})}return o}function Vo(e){let t=u(e,"utf8");return IA.map((o)=>{if(o.path==="channels[].allowFrom"){let s=Re(t,["channels"]);if(!Array.isArray(s))return{setting:o,value:void 0};let r={};for(let i of s){if(typeof i!=="object"||i===null)continue;let l=i;if(typeof l.id!=="string")continue;r[l.id]=l.allowFrom??[]}return{setting:o,value:Object.keys(r).length===0?void 0:r}}if(o.path==="tools.providers.<id>.writeRoots"){let s=Re(t,["tools","providers"]);if(typeof s!=="object"||s===null||Array.isArray(s))return{setting:o,value:void 0};let r={};for(let[i,l]of Object.entries(s)){if(typeof l!=="object"||l===null)continue;let a=l.writeRoots;if(a!==void 0)r[i]=a}return{setting:o,value:Object.keys(r).length===0?void 0:r}}return{setting:o,value:Re(t,o.path.split("."))}})}function BA(e){let t=u(e,"utf8"),o=lA(t),s=Gt(e),r=Re(t,["channels"]);return c(Vo(e),{channels:(Array.isArray(r)?r:[]).filter((i)=>typeof i==="object"&&i!==null&&!Array.isArray(i)).map((i)=>({id:String(i.id??""),type:String(i.type??""),allowFrom:Array.isArray(i.allowFrom)?i.allowFrom.map(String):[]})).filter((i)=>i.id!==""),secrets:zA(o),present:(i)=>on(s,i)})}async function Nn(e,t,o){switch(t.kind){case"setting":{if(o.trim()==="")throw new n({code:"cli_config_value_missing",message:`No value given for ${t.setting.path}.`,hint:'A bare word, a number, a list as ["a", "b"], or a map as {k: v}.',field:"value"});return(await $n(e,t.setting.path,o)).note}case"allow":{let s=o.trim()===""?[]:o.trim().split(/\s+/);return(await Xn(e,t.channelId,s)).note}case"secret":return Ve(e,t.name,o).note;case"heading":return""}}
6
+ export{WA,vi,Li,Pi,Gi,Fi,zA,qo,Vo,BA,Nn};
7
7
 
8
- //# debugId=1300A9FD8C6F344A64756E2164756E21
9
- //# sourceMappingURL=index-5zpfz4kb.js.map
8
+ //# debugId=EE5B81C64E57903164756E2164756E21
9
+ //# sourceMappingURL=index-w2ss9hn5.js.map
@@ -6,6 +6,6 @@
6
6
  "/**\n * What `config` prints, and what a person has to confirm. Pure, so both are asserted as strings.\n *\n * The policy lives here rather than in the command for the same reason `remove-plan.ts` does: this\n * surface can disable the write gate and open a bind address to the network, and \"which edits need a\n * confirmation\" is exactly the thing that must be checkable without performing one.\n *\n * ## Why the person's policy is not the agent's\n *\n * Decision 11.29: *enabling a capability answers \"what may I do\"; a write root, an allowlist and a\n * bind address answer \"who and where\", and those are the person's by definition.* The agent's floor\n * exists because an agent that could widen its own inbound gate could be **talked into** widening it\n * by the very message it is reading — `config_set` sits in `policy.allow` on a real manifest, so the\n * write gate would not stop that. A person typing at a terminal is not that threat, and refusing them\n * is what left the fields reserved for them with the worst ergonomics in the system.\n *\n * So nothing here is floored. Two edits are confirmed, both from decision 4.50, and only those two:\n * a confirmation that fires on `limits.maxSteps` is one nobody reads by the time it fires on the\n * write gate.\n */\n\nimport { SETTINGS, type Setting } from \"@dispach/core\"\nimport type { EditorRow } from \"#lib/config-editor\"\nimport { bullet, indent, keyValue, section } from \"#lib/render\"\n\n/** A setting with whatever the manifest currently has in it. */\nexport interface SettingValue {\n readonly setting: Setting\n /** Plain JS, or `undefined` when the field is absent from the file. */\n readonly value: unknown\n}\n\n/**\n * How a value appears in a listing.\n *\n * Lists and maps as JSON rather than flattened YAML, which is the lesson from `config_read`: collapsing\n * a block's newlines rendered `[type: telegram id: tg tokenEnv: …]`, one run-on string where the reader\n * needed fields. A sequence of maps went through `String(entry)` and wrote `[object Object]` — the same\n * defect, three times, in three renderers.\n */\nexport function showValue(value: unknown): string {\n if (value === undefined || value === null) return \"(not set)\"\n if (typeof value === \"string\") return value === \"\" ? '\"\"' : value\n if (typeof value === \"boolean\" || typeof value === \"number\") return String(value)\n return JSON.stringify(value)\n}\n\n/** The top-level key a path belongs under, for grouping. */\nfunction group(path: string): string {\n return path.split(/[.[]/)[0] ?? path\n}\n\n/**\n * The whole catalogue, grouped by the block it lives in, each row carrying who owns it.\n *\n * Grouped by manifest block rather than by owner, because the question a reader arrives with is \"what\n * can I change about tools\" far more often than \"what is mine versus the agent's\" — and the ownership\n * still shows on every row that is not the default.\n */\nexport function renderSettings(rows: readonly SettingValue[], file: string): string {\n const out: string[] = [`${file}`, \"\"]\n\n // Collected by block rather than emitted in catalogue order. Printing a heading whenever the block\n // *changes* looks equivalent and is not: the person-only rows sit at the end of the catalogue, so a\n // real listing came out with `server` and `tools` as two sections each, reading as though there\n // were two of them. Grouping here rather than reordering the catalogue keeps the render correct\n // whatever order the rows arrive in, which is the property worth having.\n const blocks = new Map<string, SettingValue[]>()\n for (const row of rows) {\n const block = group(row.setting.path)\n blocks.set(block, [...(blocks.get(block) ?? []), row])\n }\n\n let first = true\n for (const [block, members] of blocks) {\n out.push(section(block, first))\n first = false\n for (const row of members) {\n const owner = row.setting.agentListed ? \"\" : \" · yours only\"\n const via = row.setting.via === undefined ? \"\" : ` · set with \\`${row.setting.via}\\``\n const guard = row.setting.confirm === undefined ? \"\" : \" · asks first\"\n out.push(\n keyValue([{ label: row.setting.path, value: showValue(row.value) }]),\n indent(`${row.setting.means}${owner}${via}${guard}`, 4),\n )\n }\n }\n out.push(\n \"\",\n \"A change takes effect the next time the agent starts. `yours only` marks a field the agent is\",\n \"refused: what it may do is its to ask for, where it writes and who may reach it are yours.\",\n )\n return out.join(\"\\n\")\n}\n\n/** One field, for `config get`. */\nexport function renderOne(setting: Setting, value: unknown): string {\n return [\n keyValue([{ label: setting.path, value: showValue(value) }]),\n indent(setting.means, 4),\n ...(setting.toAgent === undefined ? [] : [indent(`to the agent: ${setting.toAgent}`, 4)]),\n ].join(\"\\n\")\n}\n\n/**\n * What a confirmation says before a guard-weakening edit, or `undefined` when none is needed.\n *\n * The value matters, not only the path: `onMutate: confirm` tightens the gate and `allow` removes it,\n * and asking about both would teach people to agree to the one that matters. Same asymmetry the agent's\n * floor has, where `confirm` is settable and `allow` is refused.\n */\nexport function confirmationFor(setting: Setting, value: unknown): string | undefined {\n if (setting.confirm === undefined) return undefined\n if (setting.path === \"tools.untrusted.onMutate\" && String(value).toLowerCase() !== \"allow\") {\n return undefined\n }\n return setting.confirm\n}\n\n/**\n * The report after a successful set.\n *\n * `reflowed` is surfaced rather than swallowed: the file is correct and its comments have moved, which\n * is a surprise better heard from the command than found later in a diff.\n */\nexport function renderChange(input: {\n readonly path: string\n readonly before: unknown\n readonly after: unknown\n readonly file: string\n readonly reflowed: boolean\n /** A live process holding this agent, if there is one. */\n readonly running?: { readonly pid: number; readonly mode: string }\n /**\n * Env variables this edit has *newly* made load-bearing and that are not set.\n *\n * Newly, not \"all of them\": a note about tokens printed on every `limits.maxSteps` change is a note\n * nobody reads by the time it matters — the same reasoning that makes `config_set` report a pending\n * secret only for a write that could have introduced one. What is already missing is `config list`'s\n * to report, because that is the command whose job is the overview.\n */\n readonly pending: readonly EnvNeed[]\n readonly restartHint: string\n}): string {\n const out: string[] = [\n keyValue([\n { label: \"set\", value: `${input.path} = ${showValue(input.after)}` },\n {\n label: \"was\",\n value: input.before === undefined ? \"(not set)\" : showValue(input.before),\n },\n { label: \"file\", value: input.file },\n ]),\n ]\n if (input.reflowed) {\n out.push(\n \"\",\n bullet(\n \"the block could not be edited in place, so the file was re-serialised — it is valid, and comments may have moved\",\n ),\n )\n }\n if (input.running !== undefined) {\n // Never a refusal. Fixing a misconfiguration while it is running and broken is the main use of\n // this command, so the state it would refuse in is the state somebody is trying to get out of.\n out.push(\n \"\",\n bullet(\n `this agent is running (pid ${input.running.pid}, ${input.running.mode}) and holds its settings for its lifetime — the change applies after ${input.restartHint}`,\n ),\n )\n }\n for (const need of input.pending) {\n out.push(bullet(`${need.name} is not set — ${need.why}`))\n out.push(bullet(`fill it in with \\`config env <agent> ${need.name}\\``))\n }\n return out.join(\"\\n\")\n}\n\n/** Every setting with a real dotted path, in catalogue order. `config set`'s accepted list. */\nexport function settablePaths(): readonly string[] {\n return SETTINGS.filter((entry) => entry.via === undefined && !/[[<]/.test(entry.path)).map(\n (entry) => entry.path,\n )\n}\n\n/** An env variable this manifest depends on, and what actually happens without it. */\nexport interface EnvNeed {\n readonly name: string\n /** The real consequence, which differs per source and is not interchangeable. */\n readonly why: string\n}\n\n/**\n * The env variables a manifest depends on, each with the consequence of it being unset.\n *\n * One message for all of them was wrong, and a live run showed it: the API token variable reported as\n * \"read at boot — the agent will refuse to start until it is filled in\", printed for an agent with\n * `server.enabled: false` that starts perfectly well. Three sources, three different outcomes:\n *\n * - `model.<role>.apiKeyEnv` — a **load failure**. `validateApiKeyEnv` refuses the manifest outright.\n * - an enabled channel's `tokenEnv` — a **boot failure**, because the factory reads it inside\n * `Runtime.create`. A channel with `enabled: false` is never constructed, so it needs nothing.\n * - `server.tokenEnv` — **no failure at all**. The API serves unauthenticated and the banner says so,\n * which is worth telling somebody and is not the same sentence as \"will not start\".\n * - a provider's `apiKeyEnv` — that provider's tools do not work; the agent runs.\n *\n * A disabled block contributes nothing. Claiming a dependency that does not exist is worse than\n * claiming none, because it is the kind of warning that teaches people to ignore this line.\n */\nexport function envNeeds(document: unknown): readonly EnvNeed[] {\n if (typeof document !== \"object\" || document === null) return []\n const doc = document as Record<string, unknown>\n const needs: EnvNeed[] = []\n const add = (name: unknown, why: string) => {\n if (typeof name === \"string\" && name !== \"\") needs.push({ name, why })\n }\n\n const model = asRecord(doc.model)\n for (const role of [\"main\", \"selector\", \"compactor\"]) {\n const config = asRecord(model?.[role])\n add(config?.apiKeyEnv, \"the manifest will not load until it is set\")\n }\n\n if (Array.isArray(doc.channels)) {\n for (const entry of doc.channels) {\n const channel = asRecord(entry)\n if (channel === undefined || channel.enabled === false) continue\n add(\n channel.tokenEnv,\n `the ${String(channel.id ?? channel.type ?? \"channel\")} channel is read at boot, so the agent will not start until it is set`,\n )\n }\n }\n\n const server = asRecord(doc.server)\n if (server?.enabled === true) {\n add(\n server.tokenEnv,\n \"the HTTP API would accept unauthenticated requests. This does not stop the agent starting\",\n )\n }\n\n const providers = asRecord(asRecord(doc.tools)?.providers)\n for (const [id, config] of Object.entries(providers ?? {})) {\n add(asRecord(config)?.apiKeyEnv, `the ${id} provider's tools will not work until it is set`)\n }\n\n return needs\n}\n\nfunction asRecord(value: unknown): Record<string, unknown> | undefined {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) return undefined\n return value as Record<string, unknown>\n}\n\n/** Those of `needs` the environment does not supply. */\nexport function unmet(\n needs: readonly EnvNeed[],\n env: Readonly<Record<string, string | undefined>>,\n): readonly EnvNeed[] {\n return needs.filter((need) => env[need.name] === undefined || env[need.name] === \"\")\n}\n\n/**\n * The editor's rows for a manifest: every setting, one `allowFrom` per channel, and every secret.\n *\n * Here rather than in the component because it is the whole shape of the surface and it is pure — what\n * appears, in what order, under which heading — and because both hosts build it the same way.\n *\n * The two catalogue rows that are not dotted paths are *replaced* by their expansions rather than shown\n * beside them: `channels[].allowFrom` becomes one row per declared channel, and\n * `tools.providers.<id>.writeRoots` is left as a listing-only row, because writing it means naming a\n * provider and the editor has no way to ask which. A row nobody can act on would be the dead end this\n * surface exists to remove, so it is not offered at all — `config list` still shows it.\n */\nexport function editorRows(\n settings: readonly SettingValue[],\n input: {\n readonly channels: readonly {\n readonly id: string\n readonly type: string\n readonly allowFrom: readonly string[]\n }[]\n readonly secrets: readonly EnvNeed[]\n readonly present: (name: string) => boolean\n },\n): readonly EditorRow[] {\n const out: EditorRow[] = []\n\n // Collected by block, not emitted when the block *changes* — the same distinction `renderSettings`\n // records above, which this renderer had never been given. The two are not equivalent: the\n // person-only rows sit at the end of the catalogue, so `server.host` and `server.tokenEnv` were\n // already a second `server` section here, and inserting any row between `server.port` and them\n // made it visible. `schedules` was that row. Grouping keeps the render correct whatever order the\n // catalogue arrives in, which is the property worth having and the reason not to fix it by\n // reordering the table.\n const blocks = new Map<string, SettingValue[]>()\n for (const row of settings) {\n if (row.setting.via !== undefined || /[[<]/.test(row.setting.path)) continue\n const key = row.setting.path.split(\".\")[0] ?? row.setting.path\n blocks.set(key, [...(blocks.get(key) ?? []), row])\n }\n for (const [label, members] of blocks) {\n out.push({ kind: \"heading\", label })\n for (const row of members) {\n out.push({ kind: \"setting\", setting: row.setting, value: row.value })\n }\n }\n\n if (input.channels.length > 0) {\n out.push({ kind: \"heading\", label: \"who may reach it\" })\n for (const channel of input.channels) {\n out.push({\n kind: \"allow\",\n channelId: channel.id,\n channelType: channel.type,\n handles: channel.allowFrom,\n })\n }\n }\n\n if (input.secrets.length > 0) {\n out.push({ kind: \"heading\", label: \"secrets — written to the .env, never shown\" })\n for (const need of input.secrets) {\n out.push({\n kind: \"secret\",\n name: need.name,\n why: need.why,\n present: input.present(need.name),\n })\n }\n }\n\n return out\n}\n"
7
7
  ],
8
8
  "mappings": "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",
9
- "debugId": "1300A9FD8C6F344A64756E2164756E21",
9
+ "debugId": "EE5B81C64E57903164756E2164756E21",
10
10
  "names": []
11
11
  }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{u,e,I}from"./index-kz01jz58.js";var kr=e(function(Bh,Ar){var jr=()=>process.platform==="linux",Pe=null,Dn=()=>{if(!Pe)if(jr()&&process.report){let r=process.report.excludeNetwork;process.report.excludeNetwork=!0,Pe=process.report.getReport(),process.report.excludeNetwork=r}else Pe={};return Pe};Ar.exports={isLinux:jr,getReport:Dn}});var Lr=e(function(Fh,Sr){var C=I("fs"),On=(r)=>{let t=C.openSync(r,"r"),n=Buffer.alloc(2048),a=C.readSync(t,n,0,2048,0);return C.close(t,()=>{}),n.subarray(0,a)},Gn=(r)=>new Promise((t,n)=>{C.open(r,"r",(a,s)=>{if(a)n(a);else{let o=Buffer.alloc(2048);C.read(s,o,0,2048,0,(l,c)=>{t(o.subarray(0,c)),C.close(s,()=>{})})}})});Sr.exports={LDD_PATH:"/usr/bin/ldd",SELF_PATH:"/proc/self/exe",readFileSync:On,readFile:Gn}});var Nr=e(function(Dh,$r){var zn=(r)=>{if(r.length<64)return null;if(r.readUInt32BE(0)!==2135247942)return null;if(r.readUInt8(4)!==2)return null;if(r.readUInt8(5)!==1)return null;let t=r.readUInt32LE(32),n=r.readUInt16LE(54),a=r.readUInt16LE(56);for(let s=0;s<a;s++){let o=t+s*n;if(r.readUInt32LE(o)===3){let c=r.readUInt32LE(o+8),h=r.readUInt32LE(o+32);return r.subarray(c,c+h).toString().replace(/\0.*$/g,"")}}return null};$r.exports={interpreterPath:zn}});var je=e(function(Oh,Xr){var Re=I("child_process"),{isLinux:ne,getReport:qr}=kr(),{LDD_PATH:Ie,SELF_PATH:Tr,readFile:Ve,readFileSync:Xe}=Lr(),{interpreterPath:Cr}=Nr(),D,O,G,J="",Mr=()=>{if(!J)return new Promise((r)=>{Re.exec("getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true",(t,n)=>{J=t?" ":n,r(J)})});return J},Br=()=>{if(!J)try{J=Re.execSync("getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true",{encoding:"utf8"})}catch(r){J=" "}return J},W="glibc",Fr=/LIBC[a-z0-9 \-).]*?(\d+\.\d+)/i,re="musl",Un=(r)=>r.includes("libc.musl-")||r.includes("ld-musl-"),Dr=()=>{let r=qr();if(r.header&&r.header.glibcVersionRuntime)return W;if(Array.isArray(r.sharedObjects)){if(r.sharedObjects.some(Un))return re}return null},Or=(r)=>{let[t,n]=r.split(/[\r\n]+/);if(t&&t.includes(W))return W;if(n&&n.includes(re))return re;return null},Gr=(r)=>{if(r){if(r.includes("/ld-musl-"))return re;else if(r.includes("/ld-linux-"))return W}return null},zr=(r)=>{if(r=r.toString(),r.includes("musl"))return re;if(r.includes("GNU C Library"))return W;return null},Hn=async()=>{if(O!==void 0)return O;O=null;try{let r=await Ve(Ie);O=zr(r)}catch(r){}return O},Wn=()=>{if(O!==void 0)return O;O=null;try{let r=Xe(Ie);O=zr(r)}catch(r){}return O},Vn=async()=>{if(D!==void 0)return D;D=null;try{let r=await Ve(Tr),t=Cr(r);D=Gr(t)}catch(r){}return D},Xn=()=>{if(D!==void 0)return D;D=null;try{let r=Xe(Tr),t=Cr(r);D=Gr(t)}catch(r){}return D},Ur=async()=>{let r=null;if(ne()){if(r=await Vn(),!r){if(r=await Hn(),!r)r=Dr();if(!r){let t=await Mr();r=Or(t)}}}return r},Hr=()=>{let r=null;if(ne()){if(r=Xn(),!r){if(r=Wn(),!r)r=Dr();if(!r){let t=Br();r=Or(t)}}}return r},Qn=async()=>ne()&&await Ur()!==W,Jn=()=>ne()&&Hr()!==W,Yn=async()=>{if(G!==void 0)return G;G=null;try{let t=(await Ve(Ie)).match(Fr);if(t)G=t[1]}catch(r){}return G},Kn=()=>{if(G!==void 0)return G;G=null;try{let t=Xe(Ie).match(Fr);if(t)G=t[1]}catch(r){}return G},Wr=()=>{let r=qr();if(r.header&&r.header.glibcVersionRuntime)return r.header.glibcVersionRuntime;return null},_r=(r)=>r.trim().split(/\s+/)[1],Vr=(r)=>{let[t,n,a]=r.split(/[\r\n]+/);if(t&&t.includes(W))return _r(t);if(n&&a&&n.includes(re))return _r(a);return null},Zn=async()=>{let r=null;if(ne()){if(r=await Yn(),!r)r=Wr();if(!r){let t=await Mr();r=Vr(t)}}return r},ea=()=>{let r=null;if(ne()){if(r=Kn(),!r)r=Wr();if(!r){let t=Br();r=Vr(t)}}return r};Xr.exports={GLIBC:W,MUSL:re,family:Ur,familySync:Hr,isNonGlibcLinux:Qn,isNonGlibcLinuxSync:Jn,version:Zn,versionSync:ea}});var ae=e(function(Gh,Qr){var ra=Number.MAX_SAFE_INTEGER||9007199254740991,ta=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Qr.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:ra,RELEASE_TYPES:ta,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var me=e(function(zh,Jr){var ia=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Jr.exports=ia});var se=e(function(z,Yr){var{MAX_SAFE_COMPONENT_LENGTH:Qe,MAX_SAFE_BUILD_LENGTH:na,MAX_LENGTH:aa}=ae(),sa=me();z=Yr.exports={};var oa=z.re=[],la=z.safeRe=[],m=z.src=[],ca=z.safeSrc=[],g=z.t={},ha=0,Je="[a-zA-Z0-9-]",fa=[["\\s",1],["\\d",aa],[Je,na]],ua=(r)=>{for(let[t,n]of fa)r=r.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return r},v=(r,t,n)=>{let a=ua(t),s=ha++;sa(r,s,t),g[r]=s,m[s]=t,ca[s]=a,oa[s]=new RegExp(t,n?"g":void 0),la[s]=new RegExp(a,n?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*");v("NUMERICIDENTIFIERLOOSE","\\d+");v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Je}*`);v("MAINVERSION",`(${m[g.NUMERICIDENTIFIER]})\\.(${m[g.NUMERICIDENTIFIER]})\\.(${m[g.NUMERICIDENTIFIER]})`);v("MAINVERSIONLOOSE",`(${m[g.NUMERICIDENTIFIERLOOSE]})\\.(${m[g.NUMERICIDENTIFIERLOOSE]})\\.(${m[g.NUMERICIDENTIFIERLOOSE]})`);v("PRERELEASEIDENTIFIER",`(?:${m[g.NONNUMERICIDENTIFIER]}|${m[g.NUMERICIDENTIFIER]})`);v("PRERELEASEIDENTIFIERLOOSE",`(?:${m[g.NONNUMERICIDENTIFIER]}|${m[g.NUMERICIDENTIFIERLOOSE]})`);v("PRERELEASE",`(?:-(${m[g.PRERELEASEIDENTIFIER]}(?:\\.${m[g.PRERELEASEIDENTIFIER]})*))`);v("PRERELEASELOOSE",`(?:-?(${m[g.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${m[g.PRERELEASEIDENTIFIERLOOSE]})*))`);v("BUILDIDENTIFIER",`${Je}+`);v("BUILD",`(?:\\+(${m[g.BUILDIDENTIFIER]}(?:\\.${m[g.BUILDIDENTIFIER]})*))`);v("FULLPLAIN",`v?${m[g.MAINVERSION]}${m[g.PRERELEASE]}?${m[g.BUILD]}?`);v("FULL",`^${m[g.FULLPLAIN]}$`);v("LOOSEPLAIN",`[v=\\s]*${m[g.MAINVERSIONLOOSE]}${m[g.PRERELEASELOOSE]}?${m[g.BUILD]}?`);v("LOOSE",`^${m[g.LOOSEPLAIN]}$`);v("GTLT","((?:<|>)?=?)");v("XRANGEIDENTIFIERLOOSE",`${m[g.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);v("XRANGEIDENTIFIER",`${m[g.NUMERICIDENTIFIER]}|x|X|\\*`);v("XRANGEPLAIN",`[v=\\s]*(${m[g.XRANGEIDENTIFIER]})(?:\\.(${m[g.XRANGEIDENTIFIER]})(?:\\.(${m[g.XRANGEIDENTIFIER]})(?:${m[g.PRERELEASE]})?${m[g.BUILD]}?)?)?`);v("XRANGEPLAINLOOSE",`[v=\\s]*(${m[g.XRANGEIDENTIFIERLOOSE]})(?:\\.(${m[g.XRANGEIDENTIFIERLOOSE]})(?:\\.(${m[g.XRANGEIDENTIFIERLOOSE]})(?:${m[g.PRERELEASELOOSE]})?${m[g.BUILD]}?)?)?`);v("XRANGE",`^${m[g.GTLT]}\\s*${m[g.XRANGEPLAIN]}$`);v("XRANGELOOSE",`^${m[g.GTLT]}\\s*${m[g.XRANGEPLAINLOOSE]}$`);v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Qe}})(?:\\.(\\d{1,${Qe}}))?(?:\\.(\\d{1,${Qe}}))?`);v("COERCE",`${m[g.COERCEPLAIN]}(?:$|[^\\d])`);v("COERCEFULL",m[g.COERCEPLAIN]+`(?:${m[g.PRERELEASE]})?(?:${m[g.BUILD]})?(?:$|[^\\d])`);v("COERCERTL",m[g.COERCE],!0);v("COERCERTLFULL",m[g.COERCEFULL],!0);v("LONETILDE","(?:~>?)");v("TILDETRIM",`(\\s*)${m[g.LONETILDE]}\\s+`,!0);z.tildeTrimReplace="$1~";v("TILDE",`^${m[g.LONETILDE]}${m[g.XRANGEPLAIN]}$`);v("TILDELOOSE",`^${m[g.LONETILDE]}${m[g.XRANGEPLAINLOOSE]}$`);v("LONECARET","(?:\\^)");v("CARETTRIM",`(\\s*)${m[g.LONECARET]}\\s+`,!0);z.caretTrimReplace="$1^";v("CARET",`^${m[g.LONECARET]}${m[g.XRANGEPLAIN]}$`);v("CARETLOOSE",`^${m[g.LONECARET]}${m[g.XRANGEPLAINLOOSE]}$`);v("COMPARATORLOOSE",`^${m[g.GTLT]}\\s*(${m[g.LOOSEPLAIN]})$|^$`);v("COMPARATOR",`^${m[g.GTLT]}\\s*(${m[g.FULLPLAIN]})$|^$`);v("COMPARATORTRIM",`(\\s*)${m[g.GTLT]}\\s*(${m[g.LOOSEPLAIN]}|${m[g.XRANGEPLAIN]})`,!0);z.comparatorTrimReplace="$1$2$3";v("HYPHENRANGE",`^\\s*(${m[g.XRANGEPLAIN]})\\s+-\\s+(${m[g.XRANGEPLAIN]})\\s*$`);v("HYPHENRANGELOOSE",`^\\s*(${m[g.XRANGEPLAINLOOSE]})\\s+-\\s+(${m[g.XRANGEPLAINLOOSE]})\\s*$`);v("STAR","(<|>)?=?\\s*\\*");v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Ae=e(function(Uh,Kr){var da=Object.freeze({loose:!0}),ma=Object.freeze({}),ga=(r)=>{if(!r)return ma;if(typeof r!=="object")return da;return r};Kr.exports=ga});var Ye=e(function(Hh,rt){var Zr=/^[0-9]+$/,et=(r,t)=>{if(typeof r==="number"&&typeof t==="number")return r===t?0:r<t?-1:1;let n=Zr.test(r),a=Zr.test(t);if(n&&a)r=+r,t=+t;return r===t?0:n&&!a?-1:a&&!n?1:r<t?-1:1},pa=(r,t)=>et(t,r);rt.exports={compareIdentifiers:et,rcompareIdentifiers:pa}});var L=e(function(Wh,it){var ke=me(),{MAX_LENGTH:tt,MAX_SAFE_INTEGER:Se}=ae(),{safeRe:Le,t:$e}=se(),ba=Ae(),{compareIdentifiers:Ke}=Ye(),wa=(r,t)=>{let n=t.split(".");if(n.length>r.length)return!1;for(let a=0;a<n.length;a++)if(Ke(r[a],n[a])!==0)return!1;return!0};class F{constructor(r,t){if(t=ba(t),r instanceof F)if(r.loose===!!t.loose&&r.includePrerelease===!!t.includePrerelease)return r;else r=r.version;else if(typeof r!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>tt)throw TypeError(`version is longer than ${tt} characters`);ke("SemVer",r,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=r.trim().match(t.loose?Le[$e.LOOSE]:Le[$e.FULL]);if(!n)throw TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Se||this.major<0)throw TypeError("Invalid major version");if(this.minor>Se||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>Se||this.patch<0)throw TypeError("Invalid patch version");if(!n[4])this.prerelease=[];else this.prerelease=n[4].split(".").map((a)=>{if(/^[0-9]+$/.test(a)){let s=+a;if(s>=0&&s<Se)return s}return a});this.build=n[5]?n[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(r){if(ke("SemVer.compare",this.version,this.options,r),!(r instanceof F)){if(typeof r==="string"&&r===this.version)return 0;r=new F(r,this.options)}if(r.version===this.version)return 0;return this.compareMain(r)||this.comparePre(r)}compareMain(r){if(!(r instanceof F))r=new F(r,this.options);if(this.major<r.major)return-1;if(this.major>r.major)return 1;if(this.minor<r.minor)return-1;if(this.minor>r.minor)return 1;if(this.patch<r.patch)return-1;if(this.patch>r.patch)return 1;return 0}comparePre(r){if(!(r instanceof F))r=new F(r,this.options);if(this.prerelease.length&&!r.prerelease.length)return-1;else if(!this.prerelease.length&&r.prerelease.length)return 1;else if(!this.prerelease.length&&!r.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],a=r.prerelease[t];if(ke("prerelease compare",t,n,a),n===void 0&&a===void 0)return 0;else if(a===void 0)return 1;else if(n===void 0)return-1;else if(n===a)continue;else return Ke(n,a)}while(++t)}compareBuild(r){if(!(r instanceof F))r=new F(r,this.options);let t=0;do{let n=this.build[t],a=r.build[t];if(ke("build compare",t,n,a),n===void 0&&a===void 0)return 0;else if(a===void 0)return 1;else if(n===void 0)return-1;else if(n===a)continue;else return Ke(n,a)}while(++t)}inc(r,t,n){if(r.startsWith("pre")){if(!t&&n===!1)throw Error("invalid increment argument: identifier is empty");if(t){let a=`-${t}`.match(this.options.loose?Le[$e.PRERELEASELOOSE]:Le[$e.PRERELEASE]);if(!a||a[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",t,n);this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let a=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[a];else{let s=this.prerelease.length;while(--s>=0)if(typeof this.prerelease[s]==="number")this.prerelease[s]++,s=-2;if(s===-1){if(t===this.prerelease.join(".")&&n===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(t){let s=[t,a];if(n===!1)s=[t];if(wa(this.prerelease,t)){let o=this.prerelease[t.split(".").length];if(isNaN(o))this.prerelease=s}else this.prerelease=s}break}default:throw Error(`invalid increment argument: ${r}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}it.exports=F});var Y=e(function(Vh,at){var nt=L(),va=(r,t,n=!1)=>{if(r instanceof nt)return r;try{return new nt(r,t)}catch(a){if(!n)return null;throw a}};at.exports=va});var ot=e(function(Xh,st){var Ea=Y(),ya=(r,t)=>{let n=Ea(r,t);return n?n.version:null};st.exports=ya});var ct=e(function(Qh,lt){var xa=Y(),Pa=(r,t)=>{let n=xa(r.trim().replace(/^[=v]+/,""),t);return n?n.version:null};lt.exports=Pa});var ut=e(function(Jh,ft){var ht=L(),Ra=(r,t,n,a,s)=>{if(typeof n==="string")s=a,a=n,n=void 0;try{return new ht(r instanceof ht?r.version:r,n).inc(t,a,s).version}catch(o){return null}};ft.exports=Ra});var gt=e(function(Yh,mt){var dt=Y(),Ia=(r,t)=>{let n=dt(r,null,!0),a=dt(t,null,!0),s=n.compare(a);if(s===0)return null;let o=s>0,l=o?n:a,c=o?a:n,h=!!l.prerelease.length;if(!!c.prerelease.length&&!h){if(!c.patch&&!c.minor)return"major";if(c.compareMain(l)===0){if(c.minor&&!c.patch)return"minor";return"patch"}}let p=h?"pre":"";if(n.major!==a.major)return p+"major";if(n.minor!==a.minor)return p+"minor";if(n.patch!==a.patch)return p+"patch";return"prerelease"};mt.exports=Ia});var bt=e(function(Kh,pt){var ja=L(),Aa=(r,t)=>new ja(r,t).major;pt.exports=Aa});var vt=e(function(Zh,wt){var ka=L(),Sa=(r,t)=>new ka(r,t).minor;wt.exports=Sa});var yt=e(function(ef,Et){var La=L(),$a=(r,t)=>new La(r,t).patch;Et.exports=$a});var Pt=e(function(rf,xt){var Na=Y(),_a=(r,t)=>{let n=Na(r,t);return n&&n.prerelease.length?n.prerelease:null};xt.exports=_a});var M=e(function(tf,It){var Rt=L(),qa=(r,t,n)=>new Rt(r,n).compare(new Rt(t,n));It.exports=qa});var At=e(function(nf,jt){var Ta=M(),Ca=(r,t,n)=>Ta(t,r,n);jt.exports=Ca});var St=e(function(af,kt){var Ma=M(),Ba=(r,t)=>Ma(r,t,!0);kt.exports=Ba});var Ne=e(function(sf,$t){var Lt=L(),Fa=(r,t,n)=>{let a=new Lt(r,n),s=new Lt(t,n);return a.compare(s)||a.compareBuild(s)};$t.exports=Fa});var _t=e(function(of,Nt){var Da=Ne(),Oa=(r,t)=>r.sort((n,a)=>Da(n,a,t));Nt.exports=Oa});var Tt=e(function(lf,qt){var Ga=Ne(),za=(r,t)=>r.sort((n,a)=>Ga(a,n,t));qt.exports=za});var ge=e(function(cf,Ct){var Ua=M(),Ha=(r,t,n)=>Ua(r,t,n)>0;Ct.exports=Ha});var _e=e(function(hf,Mt){var Wa=M(),Va=(r,t,n)=>Wa(r,t,n)<0;Mt.exports=Va});var Ze=e(function(ff,Bt){var Xa=M(),Qa=(r,t,n)=>Xa(r,t,n)===0;Bt.exports=Qa});var er=e(function(uf,Ft){var Ja=M(),Ya=(r,t,n)=>Ja(r,t,n)!==0;Ft.exports=Ya});var qe=e(function(df,Dt){var Ka=M(),Za=(r,t,n)=>Ka(r,t,n)>=0;Dt.exports=Za});var Te=e(function(mf,Ot){var es=M(),rs=(r,t,n)=>es(r,t,n)<=0;Ot.exports=rs});var rr=e(function(gf,Gt){var ts=Ze(),is=er(),ns=ge(),as=qe(),ss=_e(),os=Te(),ls=(r,t,n,a)=>{switch(t){case"===":if(typeof r==="object")r=r.version;if(typeof n==="object")n=n.version;return r===n;case"!==":if(typeof r==="object")r=r.version;if(typeof n==="object")n=n.version;return r!==n;case"":case"=":case"==":return ts(r,n,a);case"!=":return is(r,n,a);case">":return ns(r,n,a);case">=":return as(r,n,a);case"<":return ss(r,n,a);case"<=":return os(r,n,a);default:throw TypeError(`Invalid operator: ${t}`)}};Gt.exports=ls});var Ut=e(function(pf,zt){var cs=L(),hs=Y(),{safeRe:Ce,t:Me}=se(),fs=(r,t)=>{if(r instanceof cs)return r;if(typeof r==="number")r=String(r);if(typeof r!=="string")return null;t=t||{};let n=null;if(!t.rtl)n=r.match(t.includePrerelease?Ce[Me.COERCEFULL]:Ce[Me.COERCE]);else{let h=t.includePrerelease?Ce[Me.COERCERTLFULL]:Ce[Me.COERCERTL],f;while((f=h.exec(r))&&(!n||n.index+n[0].length!==r.length)){if(!n||f.index+f[0].length!==n.index+n[0].length)n=f;h.lastIndex=f.index+f[1].length+f[2].length}h.lastIndex=-1}if(n===null)return null;let a=n[2],s=n[3]||"0",o=n[4]||"0",l=t.includePrerelease&&n[5]?`-${n[5]}`:"",c=t.includePrerelease&&n[6]?`+${n[6]}`:"";return hs(`${a}.${s}.${o}${l}${c}`,t)};zt.exports=fs});var Vt=e(function(bf,Wt){var us=Y(),Ht=ae(),ds=L(),ms=(r,t,n)=>{if(!Ht.RELEASE_TYPES.includes(t))return null;let a=gs(r,n);return a&&ps(a,t)},gs=(r,t)=>{let n=r instanceof ds?r.version:r;return us(n,t)},ps=(r,t)=>{if(bs(t))return r.version;switch(r.prerelease=[],t){case"major":r.minor=0,r.patch=0;break;case"minor":r.patch=0;break}return r.format()},bs=(r)=>r.startsWith("pre");Wt.exports=ms});var Jt=e(function(wf,Qt){class Xt{constructor(){this.max=1000,this.map=new Map}get(r){let t=this.map.get(r);if(t===void 0)return;else return this.map.delete(r),this.map.set(r,t),t}delete(r){return this.map.delete(r)}set(r,t){if(!this.delete(r)&&t!==void 0){if(this.map.size>=this.max){let a=this.map.keys().next().value;this.delete(a)}this.map.set(r,t)}return this}}Qt.exports=Xt});var B=e(function(vf,ei){var ws=/\s+/g;class pe{constructor(r,t){if(t=Es(t),r instanceof pe)if(r.loose===!!t.loose&&r.includePrerelease===!!t.includePrerelease)return r;else return new pe(r.raw,t);if(r instanceof Be)return this.raw=r.value,this.set=[[r]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=r.trim().replace(ws," "),this.set=this.raw.split("||").map((n)=>this.parseRange(n.trim())).filter((n)=>n.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter((a)=>!Kt(a[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&Ss(a[0])){this.set=[a];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let r=0;r<this.set.length;r++){if(r>0)this.formatted+="||";let t=this.set[r];for(let n=0;n<t.length;n++){if(n>0)this.formatted+=" ";this.formatted+=t[n].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(r){r=r.replace(ks,"");let n=((this.options.includePrerelease&&js)|(this.options.loose&&As))+":"+r,a=Yt.get(n);if(a)return a;let s=this.options.loose,o=s?_[N.HYPHENRANGELOOSE]:_[N.HYPHENRANGE];r=r.replace(o,Ds(this.options.includePrerelease)),x("hyphen replace",r),r=r.replace(_[N.COMPARATORTRIM],Ps),x("comparator trim",r),r=r.replace(_[N.TILDETRIM],Rs),x("tilde trim",r),r=r.replace(_[N.CARETTRIM],Is),x("caret trim",r);let l=r.split(" ").map((p)=>Ls(p,this.options)).join(" ").split(/\s+/).map((p)=>Fs(p,this.options));if(s)l=l.filter((p)=>(x("loose invalid filter",p,this.options),!!p.match(_[N.COMPARATORLOOSE])));x("range list",l);let c=new Map,h=l.map((p)=>new Be(p,this.options));for(let p of h){if(Kt(p))return[p];c.set(p.value,p)}if(c.size>1&&c.has(""))c.delete("");let f=[...c.values()];return Yt.set(n,f),f}intersects(r,t){if(!(r instanceof pe))throw TypeError("a Range is required");return this.set.some((n)=>Zt(n,t)&&r.set.some((a)=>Zt(a,t)&&n.every((s)=>a.every((o)=>s.intersects(o,t)))))}test(r){if(!r)return!1;if(typeof r==="string")try{r=new ys(r,this.options)}catch(t){return!1}for(let t=0;t<this.set.length;t++)if(Os(this.set[t],r,this.options))return!0;return!1}}ei.exports=pe;var vs=Jt(),Yt=new vs,Es=Ae(),Be=be(),x=me(),ys=L(),{safeRe:_,src:xs,t:N,comparatorTrimReplace:Ps,tildeTrimReplace:Rs,caretTrimReplace:Is}=se(),{FLAG_INCLUDE_PRERELEASE:js,FLAG_LOOSE:As}=ae(),ks=new RegExp(xs[N.BUILD],"g"),Kt=(r)=>r.value==="<0.0.0-0",Ss=(r)=>r.value==="",Zt=(r,t)=>{let n=!0,a=r.slice(),s=a.pop();while(n&&a.length)n=a.every((o)=>s.intersects(o,t)),s=a.pop();return n},Ls=(r,t)=>(r=r.replace(_[N.BUILD],""),x("comp",r,t),r=qs(r,t),x("caret",r),r=Ns(r,t),x("tildes",r),r=Cs(r,t),x("xrange",r),r=Bs(r,t),x("stars",r),r),j=(r)=>!r||r.toLowerCase()==="x"||r==="*",$s=(r,t,n)=>j(r)&&!j(t)||j(t)&&n&&!j(n),Ns=(r,t)=>r.trim().split(/\s+/).map((n)=>_s(n,t)).join(" "),_s=(r,t)=>{let n=t.loose?_[N.TILDELOOSE]:_[N.TILDE],a=t.includePrerelease?"-0":"";return r.replace(n,(s,o,l,c,h)=>{x("tilde",r,s,o,l,c,h);let f;if(j(o))f="";else if(j(l))f=`>=${o}.0.0${a} <${+o+1}.0.0-0`;else if(j(c))f=`>=${o}.${l}.0${a} <${o}.${+l+1}.0-0`;else if(h)x("replaceTilde pr",h),f=`>=${o}.${l}.${c}-${h} <${o}.${+l+1}.0-0`;else f=`>=${o}.${l}.${c} <${o}.${+l+1}.0-0`;return x("tilde return",f),f})},qs=(r,t)=>r.trim().split(/\s+/).map((n)=>Ts(n,t)).join(" "),Ts=(r,t)=>{x("caret",r,t);let n=t.loose?_[N.CARETLOOSE]:_[N.CARET],a=t.includePrerelease?"-0":"";return r.replace(n,(s,o,l,c,h)=>{x("caret",r,s,o,l,c,h);let f;if(j(o))f="";else if(j(l))f=`>=${o}.0.0${a} <${+o+1}.0.0-0`;else if(j(c))if(o==="0")f=`>=${o}.${l}.0${a} <${o}.${+l+1}.0-0`;else f=`>=${o}.${l}.0${a} <${+o+1}.0.0-0`;else if(h)if(x("replaceCaret pr",h),o==="0")if(l==="0")f=`>=${o}.${l}.${c}-${h} <${o}.${l}.${+c+1}-0`;else f=`>=${o}.${l}.${c}-${h} <${o}.${+l+1}.0-0`;else f=`>=${o}.${l}.${c}-${h} <${+o+1}.0.0-0`;else if(x("no pr"),o==="0")if(l==="0")f=`>=${o}.${l}.${c} <${o}.${l}.${+c+1}-0`;else f=`>=${o}.${l}.${c} <${o}.${+l+1}.0-0`;else f=`>=${o}.${l}.${c} <${+o+1}.0.0-0`;return x("caret return",f),f})},Cs=(r,t)=>(x("replaceXRanges",r,t),r.split(/\s+/).map((n)=>Ms(n,t)).join(" ")),Ms=(r,t)=>{r=r.trim();let n=t.loose?_[N.XRANGELOOSE]:_[N.XRANGE];return r.replace(n,(a,s,o,l,c,h)=>{if(x("xRange",r,a,s,o,l,c,h),$s(o,l,c))return r;let f=j(o),p=f||j(l),w=p||j(c),P=w;if(s==="="&&P)s="";if(h=t.includePrerelease?"-0":"",f)if(s===">"||s==="<")a="<0.0.0-0";else a="*";else if(s&&P){if(p)l=0;if(c=0,s===">")if(s=">=",p)o=+o+1,l=0,c=0;else l=+l+1,c=0;else if(s==="<=")if(s="<",p)o=+o+1;else l=+l+1;if(s==="<")h="-0";a=`${s+o}.${l}.${c}${h}`}else if(p)a=`>=${o}.0.0${h} <${+o+1}.0.0-0`;else if(w)a=`>=${o}.${l}.0${h} <${o}.${+l+1}.0-0`;return x("xRange return",a),a})},Bs=(r,t)=>(x("replaceStars",r,t),r.trim().replace(_[N.STAR],"")),Fs=(r,t)=>(x("replaceGTE0",r,t),r.trim().replace(_[t.includePrerelease?N.GTE0PRE:N.GTE0],"")),Ds=(r)=>(t,n,a,s,o,l,c,h,f,p,w,P)=>{if(j(a))n="";else if(j(s))n=`>=${a}.0.0${r?"-0":""}`;else if(j(o))n=`>=${a}.${s}.0${r?"-0":""}`;else if(l)n=`>=${n}`;else n=`>=${n}${r?"-0":""}`;if(j(f))h="";else if(j(p))h=`<${+f+1}.0.0-0`;else if(j(w))h=`<${f}.${+p+1}.0-0`;else if(P)h=`<=${f}.${p}.${w}-${P}`;else if(r)h=`<${f}.${p}.${+w+1}-0`;else h=`<=${h}`;return`${n} ${h}`.trim()},Os=(r,t,n)=>{for(let a=0;a<r.length;a++)if(!r[a].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let a=0;a<r.length;a++){if(x(r[a].semver),r[a].semver===Be.ANY)continue;if(r[a].semver.prerelease.length>0){let s=r[a].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}}return!1}return!0}});var be=e(function(Ef,si){var we=Symbol("SemVer ANY");class Fe{static get ANY(){return we}constructor(r,t){if(t=ri(t),r instanceof Fe)if(r.loose===!!t.loose)return r;else r=r.value;if(r=r.trim().split(/\s+/).join(" "),ir("comparator",r,t),this.options=t,this.loose=!!t.loose,this.parse(r),this.semver===we)this.value="";else this.value=this.operator+this.semver.version;ir("comp",this)}parse(r){let t=this.options.loose?ti[ii.COMPARATORLOOSE]:ti[ii.COMPARATOR],n=r.match(t);if(!n)throw TypeError(`Invalid comparator: ${r}`);if(this.operator=n[1]!==void 0?n[1]:"",this.operator==="=")this.operator="";if(!n[2])this.semver=we;else this.semver=new ni(n[2],this.options.loose)}toString(){return this.value}test(r){if(ir("Comparator.test",r,this.options.loose),this.semver===we||r===we)return!0;if(typeof r==="string")try{r=new ni(r,this.options)}catch(t){return!1}return tr(r,this.operator,this.semver,this.options)}intersects(r,t){if(!(r instanceof Fe))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new ai(r.value,t).test(this.value)}else if(r.operator===""){if(r.value==="")return!0;return new ai(this.value,t).test(r.semver)}if(t=ri(t),t.includePrerelease&&(this.value==="<0.0.0-0"||r.value==="<0.0.0-0"))return!1;if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||r.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&r.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&r.operator.startsWith("<"))return!0;if(this.semver.version===r.semver.version&&this.operator.includes("=")&&r.operator.includes("="))return!0;if(tr(this.semver,"<",r.semver,t)&&this.operator.startsWith(">")&&r.operator.startsWith("<"))return!0;if(tr(this.semver,">",r.semver,t)&&this.operator.startsWith("<")&&r.operator.startsWith(">"))return!0;return!1}}si.exports=Fe;var ri=Ae(),{safeRe:ti,t:ii}=se(),tr=rr(),ir=me(),ni=L(),ai=B()});var ve=e(function(yf,oi){var Gs=B(),zs=(r,t,n)=>{try{t=new Gs(t,n)}catch(a){return!1}return t.test(r)};oi.exports=zs});var ci=e(function(xf,li){var Us=B(),Hs=(r,t)=>new Us(r,t).set.map((n)=>n.map((a)=>a.value).join(" ").trim().split(" "));li.exports=Hs});var fi=e(function(Pf,hi){var Ws=L(),Vs=B(),Xs=(r,t,n)=>{let a=null,s=null,o=null;try{o=new Vs(t,n)}catch(l){return null}return r.forEach((l)=>{if(o.test(l)){if(!a||s.compare(l)===-1)a=l,s=new Ws(a,n)}}),a};hi.exports=Xs});var di=e(function(Rf,ui){var Qs=L(),Js=B(),Ys=(r,t,n)=>{let a=null,s=null,o=null;try{o=new Js(t,n)}catch(l){return null}return r.forEach((l)=>{if(o.test(l)){if(!a||s.compare(l)===1)a=l,s=new Qs(a,n)}}),a};ui.exports=Ys});var pi=e(function(If,gi){var nr=L(),Ks=B(),mi=ge(),Zs=(r,t)=>{r=new Ks(r,t);let n=new nr("0.0.0");if(r.test(n))return n;if(n=new nr("0.0.0-0"),r.test(n))return n;n=null;for(let a=0;a<r.set.length;++a){let s=r.set[a],o=null;if(s.forEach((l)=>{let c=new nr(l.semver.version);switch(l.operator){case">":if(c.prerelease.length===0)c.patch++;else c.prerelease.push(0);c.raw=c.format();case"":case">=":if(!o||mi(c,o))o=c;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${l.operator}`)}}),o&&(!n||mi(n,o)))n=o}if(n&&r.test(n))return n;return null};gi.exports=Zs});var wi=e(function(jf,bi){var eo=B(),ro=(r,t)=>{try{return new eo(r,t).range||"*"}catch(n){return null}};bi.exports=ro});var De=e(function(Af,xi){var to=L(),yi=be(),{ANY:io}=yi,no=B(),ao=ve(),vi=ge(),Ei=_e(),so=Te(),oo=qe(),lo=(r,t,n,a)=>{r=new to(r,a),t=new no(t,a);let s,o,l,c,h;switch(n){case">":s=vi,o=so,l=Ei,c=">",h=">=";break;case"<":s=Ei,o=oo,l=vi,c="<",h="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(ao(r,t,a))return!1;for(let f=0;f<t.set.length;++f){let p=t.set[f],w=null,P=null;if(p.forEach((b)=>{if(b.semver===io)b=new yi(">=0.0.0");if(w=w||b,P=P||b,s(b.semver,w.semver,a))w=b;else if(l(b.semver,P.semver,a))P=b}),w.operator===c||w.operator===h)return!1;if((!P.operator||P.operator===c)&&o(r,P.semver))return!1;else if(P.operator===h&&l(r,P.semver))return!1}return!0};xi.exports=lo});var Ri=e(function(kf,Pi){var co=De(),ho=(r,t,n)=>co(r,t,">",n);Pi.exports=ho});var ji=e(function(Sf,Ii){var fo=De(),uo=(r,t,n)=>fo(r,t,"<",n);Ii.exports=uo});var Si=e(function(Lf,ki){var Ai=B(),mo=(r,t,n)=>(r=new Ai(r,n),t=new Ai(t,n),r.intersects(t,n));ki.exports=mo});var $i=e(function($f,Li){var go=ve(),po=M();Li.exports=(r,t,n)=>{let a=[],s=null,o=null,l=r.sort((p,w)=>po(p,w,n));for(let p of l)if(go(p,t,n)){if(o=p,!s)s=p}else{if(o)a.push([s,o]);o=null,s=null}if(s)a.push([s,null]);let c=[];for(let[p,w]of a)if(p===w)c.push(p);else if(!w&&p===l[0])c.push("*");else if(!w)c.push(`>=${p}`);else if(p===l[0])c.push(`<=${w}`);else c.push(`${p} - ${w}`);let h=c.join(" || "),f=typeof t.raw==="string"?t.raw:String(t);return h.length<f.length?h:t}});var Mi=e(function(Nf,Ci){var Ni=B(),or=be(),{ANY:ar}=or,sr=ve(),lr=M(),bo=(r,t,n={})=>{if(r===t)return!0;r=new Ni(r,n),t=new Ni(t,n);let a=!1;e:for(let s of r.set){for(let o of t.set){let l=vo(s,o,n);if(a=a||l!==null,l)continue e}if(a)return!1}return!0},wo=[new or(">=0.0.0-0")],_i=[new or(">=0.0.0")],vo=(r,t,n)=>{if(r===t)return!0;if(r.length===1&&r[0].semver===ar)if(t.length===1&&t[0].semver===ar)return!0;else if(n.includePrerelease)r=wo;else r=_i;if(t.length===1&&t[0].semver===ar)if(n.includePrerelease)return!0;else t=_i;let a=new Set,s,o;for(let b of r)if(b.operator===">"||b.operator===">=")s=qi(s,b,n);else if(b.operator==="<"||b.operator==="<=")o=Ti(o,b,n);else a.add(b.semver);if(a.size>1)return null;let l;if(s&&o){if(l=lr(s.semver,o.semver,n),l>0)return null;else if(l===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let b of a){if(s&&!sr(b,String(s),n))return null;if(o&&!sr(b,String(o),n))return null;for(let In of t)if(!sr(b,String(In),n))return!1;return!0}let c,h,f,p,w=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,P=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;if(w&&w.prerelease.length===1&&o.operator==="<"&&w.prerelease[0]===0)w=!1;for(let b of t){if(p=p||b.operator===">"||b.operator===">=",f=f||b.operator==="<"||b.operator==="<=",s){if(P){if(b.semver.prerelease&&b.semver.prerelease.length&&b.semver.major===P.major&&b.semver.minor===P.minor&&b.semver.patch===P.patch)P=!1}if(b.operator===">"||b.operator===">="){if(c=qi(s,b,n),c===b&&c!==s)return!1}else if(s.operator===">="&&!b.test(s.semver))return!1}if(o){if(w){if(b.semver.prerelease&&b.semver.prerelease.length&&b.semver.major===w.major&&b.semver.minor===w.minor&&b.semver.patch===w.patch)w=!1}if(b.operator==="<"||b.operator==="<="){if(h=Ti(o,b,n),h===b&&h!==o)return!1}else if(o.operator==="<="&&!b.test(o.semver))return!1}if(!b.operator&&(o||s)&&l!==0)return!1}if(s&&f&&!o&&l!==0)return!1;if(o&&p&&!s&&l!==0)return!1;if(P||w)return!1;return!0},qi=(r,t,n)=>{if(!r)return t;let a=lr(r.semver,t.semver,n);return a>0?r:a<0?t:t.operator===">"&&r.operator===">="?t:r},Ti=(r,t,n)=>{if(!r)return t;let a=lr(r.semver,t.semver,n);return a<0?r:a>0?t:t.operator==="<"&&r.operator==="<="?t:r};Ci.exports=bo});var Fi=e(function(_f,Bi){var oe=se(),Oe=ae(),Eo=L(),Ge=Ye(),yo=Y(),xo=ot(),Po=ct(),Ro=ut(),Io=gt(),jo=bt(),Ao=vt(),ko=yt(),So=Pt(),Lo=M(),$o=At(),No=St(),_o=Ne(),qo=_t(),To=Tt(),Co=ge(),Mo=_e(),Bo=Ze(),Fo=er(),Do=qe(),Oo=Te(),Go=rr(),zo=Ut(),Uo=Vt(),Ho=be(),Wo=B(),Vo=ve(),Xo=ci(),Qo=fi(),Jo=di(),Yo=pi(),Ko=wi(),Zo=De(),el=Ri(),rl=ji(),tl=Si(),il=$i(),nl=Mi();Bi.exports={parse:yo,valid:xo,clean:Po,inc:Ro,diff:Io,major:jo,minor:Ao,patch:ko,prerelease:So,compare:Lo,rcompare:$o,compareLoose:No,compareBuild:_o,sort:qo,rsort:To,gt:Co,lt:Mo,eq:Bo,neq:Fo,gte:Do,lte:Oo,cmp:Go,coerce:zo,truncate:Uo,Comparator:Ho,Range:Wo,satisfies:Vo,toComparators:Xo,maxSatisfying:Qo,minSatisfying:Jo,minVersion:Yo,validRange:Ko,outside:Zo,gtr:el,ltr:rl,intersects:tl,simplifyRange:il,subset:nl,SemVer:Eo,re:oe.re,src:oe.src,tokens:oe.t,SEMVER_SPEC_VERSION:Oe.SEMVER_SPEC_VERSION,RELEASE_TYPES:Oe.RELEASE_TYPES,compareIdentifiers:Ge.compareIdentifiers,rcompareIdentifiers:Ge.rcompareIdentifiers}});var hn=e(function(nu,cn){var{defineProperty:Er,getOwnPropertyDescriptor:mc,getOwnPropertyNames:gc}=Object,pc=Object.prototype.hasOwnProperty,bc=(r,t)=>{for(var n in t)Er(r,n,{get:t[n],enumerable:!0})},wc=(r,t,n,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let s of gc(t))if(!pc.call(r,s)&&s!==n)Er(r,s,{get:()=>t[s],enumerable:!(a=mc(t,s))||a.enumerable})}return r},vc=(r)=>wc(Er({},"__esModule",{value:!0}),r),an={};bc(an,{default:()=>_c});cn.exports=vc(an);var pr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(let r in pr)Object.freeze(pr[r]);var H=Object.freeze(pr),sn=Object.create(null);for(let r in H)if(Object.hasOwn(H,r))sn[H[r]]=r;var q={to:{},get:{}};q.get=function(r){let t=r.slice(0,3).toLowerCase(),n,a;switch(t){case"hsl":{n=q.get.hsl(r),a="hsl";break}case"hwb":{n=q.get.hwb(r),a="hwb";break}default:{n=q.get.rgb(r),a="rgb";break}}if(!n)return null;return{model:a,value:n}};q.get.rgb=function(r){if(!r)return null;let t=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,a=/^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i,s=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i,o=/^(\w+)$/,l=[0,0,0,1],c,h,f;if(c=r.match(n)){f=c[2],c=c[1];for(h=0;h<3;h++){let p=h*2;l[h]=Number.parseInt(c.slice(p,p+2),16)}if(f)l[3]=Number.parseInt(f,16)/255}else if(c=r.match(t)){c=c[1],f=c[3];for(h=0;h<3;h++)l[h]=Number.parseInt(c[h]+c[h],16);if(f)l[3]=Number.parseInt(f+f,16)/255}else if(c=r.match(a)){for(h=0;h<3;h++)l[h]=Number.parseFloat(c[h+1]);if(c[4])l[3]=c[5]?Number.parseFloat(c[4])*0.01:Number.parseFloat(c[4])}else if(c=r.match(s)){for(h=0;h<3;h++)l[h]=Math.round(Number.parseFloat(c[h+1])*2.55);if(c[4])l[3]=c[5]?Number.parseFloat(c[4])*0.01:Number.parseFloat(c[4])}else if(c=r.toLowerCase().match(o)){if(c[1]==="transparent")return[0,0,0,0];if(!Object.hasOwn(H,c[1]))return null;return l=H[c[1]].slice(),l[3]=1,l}else return null;for(h=0;h<3;h++)l[h]=Z(l[h],0,255);return l[3]=Z(l[3],0,1),l};q.get.hsl=function(r){if(!r)return null;let t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=r.match(t);if(n){let a=Number.parseFloat(n[4]),s=(Number.parseFloat(n[1])%360+360)%360,o=Z(Number.parseFloat(n[2]),0,100),l=Z(Number.parseFloat(n[3]),0,100),c=Z(Number.isNaN(a)?1:a,0,1);return[s,o,l,c]}return null};q.get.hwb=function(r){if(!r)return null;let t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=r.match(t);if(n){let a=Number.parseFloat(n[4]),s=(Number.parseFloat(n[1])%360+360)%360,o=Z(Number.parseFloat(n[2]),0,100),l=Z(Number.parseFloat(n[3]),0,100),c=Z(Number.isNaN(a)?1:a,0,1);return[s,o,l,c]}return null};q.to.hex=function(...r){return"#"+We(r[0])+We(r[1])+We(r[2])+(r[3]<1?We(Math.round(r[3]*255)):"")};q.to.rgb=function(...r){return r.length<4||r[3]===1?"rgb("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+")":"rgba("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+", "+r[3]+")"};q.to.rgb.percent=function(...r){let t=Math.round(r[0]/255*100),n=Math.round(r[1]/255*100),a=Math.round(r[2]/255*100);return r.length<4||r[3]===1?"rgb("+t+"%, "+n+"%, "+a+"%)":"rgba("+t+"%, "+n+"%, "+a+"%, "+r[3]+")"};q.to.hsl=function(...r){return r.length<4||r[3]===1?"hsl("+r[0]+", "+r[1]+"%, "+r[2]+"%)":"hsla("+r[0]+", "+r[1]+"%, "+r[2]+"%, "+r[3]+")"};q.to.hwb=function(...r){let t="";if(r.length>=4&&r[3]!==1)t=", "+r[3];return"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+t+")"};q.to.keyword=function(...r){return sn[r.slice(0,3)]};function Z(r,t,n){return Math.min(Math.max(t,r),n)}function We(r){let t=Math.round(r).toString(16).toUpperCase();return t.length<2?"0"+t:t}var ce=q,on={};for(let r of Object.keys(H))on[H[r]]=r;var d={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},ie=d,Q=0.008856451679035631;function fe(r){let t=r>0.0031308?1.055*r**0.4166666666666667-0.055:r*12.92;return Math.min(Math.max(0,t),1)}function ue(r){return r>0.04045?((r+0.055)/1.055)**2.4:r/12.92}for(let r of Object.keys(d)){if(!("channels"in d[r]))throw Error("missing channels property: "+r);if(!("labels"in d[r]))throw Error("missing channel labels property: "+r);if(d[r].labels.length!==d[r].channels)throw Error("channel and label counts mismatch: "+r);let{channels:t,labels:n}=d[r];delete d[r].channels,delete d[r].labels,Object.defineProperty(d[r],"channels",{value:t}),Object.defineProperty(d[r],"labels",{value:n})}d.rgb.hsl=function(r){let t=r[0]/255,n=r[1]/255,a=r[2]/255,s=Math.min(t,n,a),o=Math.max(t,n,a),l=o-s,c,h;switch(o){case s:{c=0;break}case t:{c=(n-a)/l;break}case n:{c=2+(a-t)/l;break}case a:{c=4+(t-n)/l;break}}if(c=Math.min(c*60,360),c<0)c+=360;let f=(s+o)/2;if(o===s)h=0;else if(f<=0.5)h=l/(o+s);else h=l/(2-o-s);return[c,h*100,f*100]};d.rgb.hsv=function(r){let t,n,a,s,o,l=r[0]/255,c=r[1]/255,h=r[2]/255,f=Math.max(l,c,h),p=f-Math.min(l,c,h),w=function(P){return(f-P)/6/p+0.5};if(p===0)s=0,o=0;else{switch(o=p/f,t=w(l),n=w(c),a=w(h),f){case l:{s=a-n;break}case c:{s=0.3333333333333333+t-a;break}case h:{s=0.6666666666666666+n-t;break}}if(s<0)s+=1;else if(s>1)s-=1}return[s*360,o*100,f*100]};d.rgb.hwb=function(r){let t=r[0],n=r[1],a=r[2],s=d.rgb.hsl(r)[0],o=0.00392156862745098*Math.min(t,Math.min(n,a));return a=1-0.00392156862745098*Math.max(t,Math.max(n,a)),[s,o*100,a*100]};d.rgb.oklab=function(r){let t=ue(r[0]/255),n=ue(r[1]/255),a=ue(r[2]/255),s=Math.cbrt(0.4122214708*t+0.5363325363*n+0.0514459929*a),o=Math.cbrt(0.2119034982*t+0.6806995451*n+0.1073969566*a),l=Math.cbrt(0.0883024619*t+0.2817188376*n+0.6299787005*a),c=0.2104542553*s+0.793617785*o-0.0040720468*l,h=1.9779984951*s-2.428592205*o+0.4505937099*l,f=0.0259040371*s+0.7827717662*o-0.808675766*l;return[c*100,h*100,f*100]};d.rgb.cmyk=function(r){let t=r[0]/255,n=r[1]/255,a=r[2]/255,s=Math.min(1-t,1-n,1-a),o=(1-t-s)/(1-s)||0,l=(1-n-s)/(1-s)||0,c=(1-a-s)/(1-s)||0;return[o*100,l*100,c*100,s*100]};function Ec(r,t){return(r[0]-t[0])**2+(r[1]-t[1])**2+(r[2]-t[2])**2}d.rgb.keyword=function(r){let t=on[r];if(t)return t;let n=Number.POSITIVE_INFINITY,a;for(let s of Object.keys(H)){let o=H[s],l=Ec(r,o);if(l<n)n=l,a=s}return a};d.keyword.rgb=function(r){return[...H[r]]};d.rgb.xyz=function(r){let t=ue(r[0]/255),n=ue(r[1]/255),a=ue(r[2]/255),s=t*0.4124564+n*0.3575761+a*0.1804375,o=t*0.2126729+n*0.7151522+a*0.072175,l=t*0.0193339+n*0.119192+a*0.9503041;return[s*100,o*100,l*100]};d.rgb.lab=function(r){let t=d.rgb.xyz(r),n=t[0],a=t[1],s=t[2];n/=95.047,a/=100,s/=108.883,n=n>Q?n**0.3333333333333333:7.787*n+0.13793103448275862,a=a>Q?a**0.3333333333333333:7.787*a+0.13793103448275862,s=s>Q?s**0.3333333333333333:7.787*s+0.13793103448275862;let o=116*a-16,l=500*(n-a),c=200*(a-s);return[o,l,c]};d.hsl.rgb=function(r){let t=r[0]/360,n=r[1]/100,a=r[2]/100,s,o;if(n===0)return o=a*255,[o,o,o];let l=a<0.5?a*(1+n):a+n-a*n,c=2*a-l,h=[0,0,0];for(let f=0;f<3;f++){if(s=t+0.3333333333333333*-(f-1),s<0)s++;if(s>1)s--;if(6*s<1)o=c+(l-c)*6*s;else if(2*s<1)o=l;else if(3*s<2)o=c+(l-c)*(0.6666666666666666-s)*6;else o=c;h[f]=o*255}return h};d.hsl.hsv=function(r){let t=r[0],n=r[1]/100,a=r[2]/100,s=n,o=Math.max(a,0.01);a*=2,n*=a<=1?a:2-a,s*=o<=1?o:2-o;let l=(a+n)/2,c=a===0?2*s/(o+s):2*n/(a+n);return[t,c*100,l*100]};d.hsv.rgb=function(r){let t=r[0]/60,n=r[1]/100,a=r[2]/100,s=Math.floor(t)%6,o=t-Math.floor(t),l=255*a*(1-n),c=255*a*(1-n*o),h=255*a*(1-n*(1-o));switch(a*=255,s){case 0:return[a,h,l];case 1:return[c,a,l];case 2:return[l,a,h];case 3:return[l,c,a];case 4:return[h,l,a];case 5:return[a,l,c]}};d.hsv.hsl=function(r){let t=r[0],n=r[1]/100,a=r[2]/100,s=Math.max(a,0.01),o,l;l=(2-n)*a;let c=(2-n)*s;return o=n*s,o/=c<=1?c:2-c,o=o||0,l/=2,[t,o*100,l*100]};d.hwb.rgb=function(r){let t=r[0]/360,n=r[1]/100,a=r[2]/100,s=n+a,o;if(s>1)n/=s,a/=s;let l=Math.floor(6*t),c=1-a;if(o=6*t-l,(l&1)!==0)o=1-o;let h=n+o*(c-n),f,p,w;switch(l){default:case 6:case 0:{f=c,p=h,w=n;break}case 1:{f=h,p=c,w=n;break}case 2:{f=n,p=c,w=h;break}case 3:{f=n,p=h,w=c;break}case 4:{f=h,p=n,w=c;break}case 5:{f=c,p=n,w=h;break}}return[f*255,p*255,w*255]};d.cmyk.rgb=function(r){let t=r[0]/100,n=r[1]/100,a=r[2]/100,s=r[3]/100,o=1-Math.min(1,t*(1-s)+s),l=1-Math.min(1,n*(1-s)+s),c=1-Math.min(1,a*(1-s)+s);return[o*255,l*255,c*255]};d.xyz.rgb=function(r){let t=r[0]/100,n=r[1]/100,a=r[2]/100,s,o,l;return s=t*3.2404542+n*-1.5371385+a*-0.4985314,o=t*-0.969266+n*1.8760108+a*0.041556,l=t*0.0556434+n*-0.2040259+a*1.0572252,s=fe(s),o=fe(o),l=fe(l),[s*255,o*255,l*255]};d.xyz.lab=function(r){let t=r[0],n=r[1],a=r[2];t/=95.047,n/=100,a/=108.883,t=t>Q?t**0.3333333333333333:7.787*t+0.13793103448275862,n=n>Q?n**0.3333333333333333:7.787*n+0.13793103448275862,a=a>Q?a**0.3333333333333333:7.787*a+0.13793103448275862;let s=116*n-16,o=500*(t-n),l=200*(n-a);return[s,o,l]};d.xyz.oklab=function(r){let t=r[0]/100,n=r[1]/100,a=r[2]/100,s=Math.cbrt(0.8189330101*t+0.3618667424*n-0.1288597137*a),o=Math.cbrt(0.0329845436*t+0.9293118715*n+0.0361456387*a),l=Math.cbrt(0.0482003018*t+0.2643662691*n+0.633851707*a),c=0.2104542553*s+0.793617785*o-0.0040720468*l,h=1.9779984951*s-2.428592205*o+0.4505937099*l,f=0.0259040371*s+0.7827717662*o-0.808675766*l;return[c*100,h*100,f*100]};d.oklab.oklch=function(r){return d.lab.lch(r)};d.oklab.xyz=function(r){let t=r[0]/100,n=r[1]/100,a=r[2]/100,s=(0.999999998*t+0.396337792*n+0.215803758*a)**3,o=(1.000000008*t-0.105561342*n-0.063854175*a)**3,l=(1.000000055*t-0.089484182*n-1.291485538*a)**3,c=1.227013851*s-0.55779998*o+0.281256149*l,h=-0.040580178*s+1.11225687*o-0.071676679*l,f=-0.076381285*s-0.421481978*o+1.58616322*l;return[c*100,h*100,f*100]};d.oklab.rgb=function(r){let t=r[0]/100,n=r[1]/100,a=r[2]/100,s=(t+0.3963377774*n+0.2158037573*a)**3,o=(t-0.1055613458*n-0.0638541728*a)**3,l=(t-0.0894841775*n-1.291485548*a)**3,c=fe(4.0767416621*s-3.3077115913*o+0.2309699292*l),h=fe(-1.2684380046*s+2.6097574011*o-0.3413193965*l),f=fe(-0.0041960863*s-0.7034186147*o+1.707614701*l);return[c*255,h*255,f*255]};d.oklch.oklab=function(r){return d.lch.lab(r)};d.lab.xyz=function(r){let t=r[0],n=r[1],a=r[2],s,o,l;o=(t+16)/116,s=n/500+o,l=o-a/200;let c=o**3,h=s**3,f=l**3;return o=c>Q?c:(o-0.13793103448275862)/7.787,s=h>Q?h:(s-0.13793103448275862)/7.787,l=f>Q?f:(l-0.13793103448275862)/7.787,s*=95.047,o*=100,l*=108.883,[s,o,l]};d.lab.lch=function(r){let t=r[0],n=r[1],a=r[2],s;if(s=Math.atan2(a,n)*360/2/Math.PI,s<0)s+=360;let l=Math.sqrt(n*n+a*a);return[t,l,s]};d.lch.lab=function(r){let t=r[0],n=r[1],s=r[2]/360*2*Math.PI,o=n*Math.cos(s),l=n*Math.sin(s);return[t,o,l]};d.rgb.ansi16=function(r,t=null){let[n,a,s]=r,o=t===null?d.rgb.hsv(r)[2]:t;if(o=Math.round(o/50),o===0)return 30;let l=30+(Math.round(s/255)<<2|Math.round(a/255)<<1|Math.round(n/255));if(o===2)l+=60;return l};d.hsv.ansi16=function(r){return d.rgb.ansi16(d.hsv.rgb(r),r[2])};d.rgb.ansi256=function(r){let t=r[0],n=r[1],a=r[2];if(t>>4===n>>4&&n>>4===a>>4){if(t<8)return 16;if(t>248)return 231;return Math.round((t-8)/247*24)+232}return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(a/255*5)};d.ansi16.rgb=function(r){r=r[0];let t=r%10;if(t===0||t===7){if(r>50)t+=3.5;return t=t/10.5*255,[t,t,t]}let n=(Math.trunc(r>50)+1)*0.5,a=(t&1)*n*255,s=(t>>1&1)*n*255,o=(t>>2&1)*n*255;return[a,s,o]};d.ansi256.rgb=function(r){if(r=r[0],r>=232){let o=(r-232)*10+8;return[o,o,o]}r-=16;let t,n=Math.floor(r/36)/5*255,a=Math.floor((t=r%36)/6)/5*255,s=t%6/5*255;return[n,a,s]};d.rgb.hex=function(r){let n=(((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n};d.hex.rgb=function(r){let t=r.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];if(t[0].length===3)n=[...n].map((c)=>c+c).join("");let a=Number.parseInt(n,16),s=a>>16&255,o=a>>8&255,l=a&255;return[s,o,l]};d.rgb.hcg=function(r){let t=r[0]/255,n=r[1]/255,a=r[2]/255,s=Math.max(Math.max(t,n),a),o=Math.min(Math.min(t,n),a),l=s-o,c,h=l<1?o/(1-l):0;if(l<=0)c=0;else if(s===t)c=(n-a)/l%6;else if(s===n)c=2+(a-t)/l;else c=4+(t-n)/l;return c/=6,c%=1,[c*360,l*100,h*100]};d.hsl.hcg=function(r){let t=r[1]/100,n=r[2]/100,a=n<0.5?2*t*n:2*t*(1-n),s=0;if(a<1)s=(n-0.5*a)/(1-a);return[r[0],a*100,s*100]};d.hsv.hcg=function(r){let t=r[1]/100,n=r[2]/100,a=t*n,s=0;if(a<1)s=(n-a)/(1-a);return[r[0],a*100,s*100]};d.hcg.rgb=function(r){let t=r[0]/360,n=r[1]/100,a=r[2]/100;if(n===0)return[a*255,a*255,a*255];let s=[0,0,0],o=t%1*6,l=o%1,c=1-l,h=0;switch(Math.floor(o)){case 0:{s[0]=1,s[1]=l,s[2]=0;break}case 1:{s[0]=c,s[1]=1,s[2]=0;break}case 2:{s[0]=0,s[1]=1,s[2]=l;break}case 3:{s[0]=0,s[1]=c,s[2]=1;break}case 4:{s[0]=l,s[1]=0,s[2]=1;break}default:s[0]=1,s[1]=0,s[2]=c}return h=(1-n)*a,[(n*s[0]+h)*255,(n*s[1]+h)*255,(n*s[2]+h)*255]};d.hcg.hsv=function(r){let t=r[1]/100,n=r[2]/100,a=t+n*(1-t),s=0;if(a>0)s=t/a;return[r[0],s*100,a*100]};d.hcg.hsl=function(r){let t=r[1]/100,a=r[2]/100*(1-t)+0.5*t,s=0;if(a>0&&a<0.5)s=t/(2*a);else if(a>=0.5&&a<1)s=t/(2*(1-a));return[r[0],s*100,a*100]};d.hcg.hwb=function(r){let t=r[1]/100,n=r[2]/100,a=t+n*(1-t);return[r[0],(a-t)*100,(1-a)*100]};d.hwb.hcg=function(r){let t=r[1]/100,a=1-r[2]/100,s=a-t,o=0;if(s<1)o=(a-s)/(1-s);return[r[0],s*100,o*100]};d.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};d.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};d.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};d.gray.hsl=function(r){return[0,0,r[0]]};d.gray.hsv=d.gray.hsl;d.gray.hwb=function(r){return[0,100,r[0]]};d.gray.cmyk=function(r){return[0,0,0,r[0]]};d.gray.lab=function(r){return[r[0],0,0]};d.gray.hex=function(r){let t=Math.round(r[0]/100*255)&255,a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(a.length)+a};d.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]};function yc(){let r={},t=Object.keys(ie);for(let{length:n}=t,a=0;a<n;a++)r[t[a]]={distance:-1,parent:null};return r}function xc(r){let t=yc(),n=[r];t[r].distance=0;while(n.length>0){let a=n.pop(),s=Object.keys(ie[a]);for(let{length:o}=s,l=0;l<o;l++){let c=s[l],h=t[c];if(h.distance===-1)h.distance=t[a].distance+1,h.parent=a,n.unshift(c)}}return t}function Pc(r,t){return function(n){return t(r(n))}}function Rc(r,t){let n=[t[r].parent,r],a=ie[t[r].parent][r],s=t[r].parent;while(t[s].parent)n.unshift(t[s].parent),a=Pc(ie[t[s].parent][s],a),s=t[s].parent;return a.conversion=n,a}function Ic(r){let t=xc(r),n={},a=Object.keys(t);for(let{length:s}=a,o=0;o<s;o++){let l=a[o];if(t[l].parent===null)continue;n[l]=Rc(l,t)}return n}var jc=Ic,he={},Ac=Object.keys(ie);function kc(r){let t=function(...n){let a=n[0];if(a===void 0||a===null)return a;if(a.length>1)n=a;return r(n)};if("conversion"in r)t.conversion=r.conversion;return t}function Sc(r){let t=function(...n){let a=n[0];if(a===void 0||a===null)return a;if(a.length>1)n=a;let s=r(n);if(typeof s==="object")for(let{length:o}=s,l=0;l<o;l++)s[l]=Math.round(s[l]);return s};if("conversion"in r)t.conversion=r.conversion;return t}for(let r of Ac){he[r]={},Object.defineProperty(he[r],"channels",{value:ie[r].channels}),Object.defineProperty(he[r],"labels",{value:ie[r].labels});let t=jc(r),n=Object.keys(t);for(let a of n){let s=t[a];he[r][a]=Sc(s),he[r][a].raw=kc(s)}}var T=he,ln=["keyword","gray","hex"],br={};for(let r of Object.keys(T))br[[...T[r].labels].sort().join("")]=r;var wr={};function S(r,t){if(!(this instanceof S))return new S(r,t);if(t&&t in ln)t=null;if(t&&!(t in T))throw Error("Unknown model: "+t);let n,a;if(r==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(r instanceof S)this.model=r.model,this.color=[...r.color],this.valpha=r.valpha;else if(typeof r==="string"){let s=ce.get(r);if(s===null)throw Error("Unable to parse color from string: "+r);this.model=s.model,a=T[this.model].channels,this.color=s.value.slice(0,a),this.valpha=typeof s.value[a]==="number"?s.value[a]:1}else if(r.length>0){this.model=t||"rgb",a=T[this.model].channels;let s=Array.prototype.slice.call(r,0,a);this.color=vr(s,a),this.valpha=typeof r[a]==="number"?r[a]:1}else if(typeof r==="number")this.model="rgb",this.color=[r>>16&255,r>>8&255,r&255],this.valpha=1;else{this.valpha=1;let s=Object.keys(r);if("alpha"in r)s.splice(s.indexOf("alpha"),1),this.valpha=typeof r.alpha==="number"?r.alpha:0;let o=s.sort().join("");if(!(o in br))throw Error("Unable to parse color from object: "+JSON.stringify(r));this.model=br[o];let{labels:l}=T[this.model],c=[];for(n=0;n<l.length;n++)c.push(r[l[n]]);this.color=vr(c)}if(wr[this.model]){a=T[this.model].channels;for(n=0;n<a;n++){let s=wr[this.model][n];if(s)this.color[n]=s(this.color[n])}}if(this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze)Object.freeze(this)}S.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(r){let t=this.model in ce.to?this:this.rgb();t=t.round(typeof r==="number"?r:1);let n=t.valpha===1?t.color:[...t.color,this.valpha];return ce.to[t.model](...n)},percentString(r){let t=this.rgb().round(typeof r==="number"?r:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return ce.to.rgb.percent(...n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let r={},{channels:t}=T[this.model],{labels:n}=T[this.model];for(let a=0;a<t;a++)r[n[a]]=this.color[a];if(this.valpha!==1)r.alpha=this.valpha;return r},unitArray(){let r=this.rgb().color;if(r[0]/=255,r[1]/=255,r[2]/=255,this.valpha!==1)r.push(this.valpha);return r},unitObject(){let r=this.rgb().object();if(r.r/=255,r.g/=255,r.b/=255,this.valpha!==1)r.alpha=this.valpha;return r},round(r){return r=Math.max(r||0,0),new S([...this.color.map($c(r)),this.valpha],this.model)},alpha(r){if(r!==void 0)return new S([...this.color,Math.max(0,Math.min(1,r))],this.model);return this.valpha},red:R("rgb",0,k(255)),green:R("rgb",1,k(255)),blue:R("rgb",2,k(255)),hue:R(["hsl","hsv","hsl","hwb","hcg"],0,(r)=>(r%360+360)%360),saturationl:R("hsl",1,k(100)),lightness:R("hsl",2,k(100)),saturationv:R("hsv",1,k(100)),value:R("hsv",2,k(100)),chroma:R("hcg",1,k(100)),gray:R("hcg",2,k(100)),white:R("hwb",1,k(100)),wblack:R("hwb",2,k(100)),cyan:R("cmyk",0,k(100)),magenta:R("cmyk",1,k(100)),yellow:R("cmyk",2,k(100)),black:R("cmyk",3,k(100)),x:R("xyz",0,k(95.047)),y:R("xyz",1,k(100)),z:R("xyz",2,k(108.833)),l:R("lab",0,k(100)),a:R("lab",1),b:R("lab",2),keyword(r){if(r!==void 0)return new S(r);return T[this.model].keyword(this.color)},hex(r){if(r!==void 0)return new S(r);return ce.to.hex(...this.rgb().round().color)},hexa(r){if(r!==void 0)return new S(r);let t=this.rgb().round().color,n=Math.round(this.valpha*255).toString(16).toUpperCase();if(n.length===1)n="0"+n;return ce.to.hex(...t)+n},rgbNumber(){let r=this.rgb().color;return(r[0]&255)<<16|(r[1]&255)<<8|r[2]&255},luminosity(){let r=this.rgb().color,t=[];for(let[n,a]of r.entries()){let s=a/255;t[n]=s<=0.04045?s/12.92:((s+0.055)/1.055)**2.4}return 0.2126*t[0]+0.7152*t[1]+0.0722*t[2]},contrast(r){let t=this.luminosity(),n=r.luminosity();if(t>n)return(t+0.05)/(n+0.05);return(n+0.05)/(t+0.05)},level(r){let t=this.contrast(r);if(t>=7)return"AAA";return t>=4.5?"AA":""},isDark(){let r=this.rgb().color;return(r[0]*2126+r[1]*7152+r[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let r=this.rgb();for(let t=0;t<3;t++)r.color[t]=255-r.color[t];return r},lighten(r){let t=this.hsl();return t.color[2]+=t.color[2]*r,t},darken(r){let t=this.hsl();return t.color[2]-=t.color[2]*r,t},saturate(r){let t=this.hsl();return t.color[1]+=t.color[1]*r,t},desaturate(r){let t=this.hsl();return t.color[1]-=t.color[1]*r,t},whiten(r){let t=this.hwb();return t.color[1]+=t.color[1]*r,t},blacken(r){let t=this.hwb();return t.color[2]+=t.color[2]*r,t},grayscale(){let r=this.rgb().color,t=r[0]*0.3+r[1]*0.59+r[2]*0.11;return S.rgb(t,t,t)},fade(r){return this.alpha(this.valpha-this.valpha*r)},opaquer(r){return this.alpha(this.valpha+this.valpha*r)},rotate(r){let t=this.hsl(),n=t.color[0];return n=(n+r)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(r,t){if(!r||!r.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof r);let n=r.rgb(),a=this.rgb(),s=t===void 0?0.5:t,o=2*s-1,l=n.alpha()-a.alpha(),c=((o*l===-1?o:(o+l)/(1+o*l))+1)/2,h=1-c;return S.rgb(c*n.red()+h*a.red(),c*n.green()+h*a.green(),c*n.blue()+h*a.blue(),n.alpha()*s+a.alpha()*(1-s))}};for(let r of Object.keys(T)){if(ln.includes(r))continue;let{channels:t}=T[r];S.prototype[r]=function(...n){if(this.model===r)return new S(this);if(n.length>0)return new S(n,r);return new S([...Nc(T[this.model][r].raw(this.color)),this.valpha],r)},S[r]=function(...n){let a=n[0];if(typeof a==="number")a=vr(n,t);return new S(a,r)}}function Lc(r,t){return Number(r.toFixed(t))}function $c(r){return function(t){return Lc(t,r)}}function R(r,t,n){r=Array.isArray(r)?r:[r];for(let a of r)(wr[a]||=[])[t]=n;return r=r[0],function(a){let s;if(a!==void 0){if(n)a=n(a);return s=this[r](),s.color[t]=a,s}if(s=this[r]().color[t],n)s=n(s);return s}}function k(r){return function(t){return Math.max(0,Math.min(r,t))}}function Nc(r){return Array.isArray(r)?r:[r]}function vr(r,t){for(let n=0;n<t;n++)if(typeof r[n]!=="number")r[n]=0;return r}var _c=S});var un=e(function(au,fn){fn.exports=hn().default});import Il from"node:util";import ur from"node:stream";/*!
2
+ import{u,e,I}from"./index-c74wx9pv.js";var kr=e(function(Bh,Ar){var jr=()=>process.platform==="linux",Pe=null,Dn=()=>{if(!Pe)if(jr()&&process.report){let r=process.report.excludeNetwork;process.report.excludeNetwork=!0,Pe=process.report.getReport(),process.report.excludeNetwork=r}else Pe={};return Pe};Ar.exports={isLinux:jr,getReport:Dn}});var Lr=e(function(Fh,Sr){var C=I("fs"),On=(r)=>{let t=C.openSync(r,"r"),n=Buffer.alloc(2048),a=C.readSync(t,n,0,2048,0);return C.close(t,()=>{}),n.subarray(0,a)},Gn=(r)=>new Promise((t,n)=>{C.open(r,"r",(a,s)=>{if(a)n(a);else{let o=Buffer.alloc(2048);C.read(s,o,0,2048,0,(l,c)=>{t(o.subarray(0,c)),C.close(s,()=>{})})}})});Sr.exports={LDD_PATH:"/usr/bin/ldd",SELF_PATH:"/proc/self/exe",readFileSync:On,readFile:Gn}});var Nr=e(function(Dh,$r){var zn=(r)=>{if(r.length<64)return null;if(r.readUInt32BE(0)!==2135247942)return null;if(r.readUInt8(4)!==2)return null;if(r.readUInt8(5)!==1)return null;let t=r.readUInt32LE(32),n=r.readUInt16LE(54),a=r.readUInt16LE(56);for(let s=0;s<a;s++){let o=t+s*n;if(r.readUInt32LE(o)===3){let c=r.readUInt32LE(o+8),h=r.readUInt32LE(o+32);return r.subarray(c,c+h).toString().replace(/\0.*$/g,"")}}return null};$r.exports={interpreterPath:zn}});var je=e(function(Oh,Xr){var Re=I("child_process"),{isLinux:ne,getReport:qr}=kr(),{LDD_PATH:Ie,SELF_PATH:Tr,readFile:Ve,readFileSync:Xe}=Lr(),{interpreterPath:Cr}=Nr(),D,O,G,J="",Mr=()=>{if(!J)return new Promise((r)=>{Re.exec("getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true",(t,n)=>{J=t?" ":n,r(J)})});return J},Br=()=>{if(!J)try{J=Re.execSync("getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true",{encoding:"utf8"})}catch(r){J=" "}return J},W="glibc",Fr=/LIBC[a-z0-9 \-).]*?(\d+\.\d+)/i,re="musl",Un=(r)=>r.includes("libc.musl-")||r.includes("ld-musl-"),Dr=()=>{let r=qr();if(r.header&&r.header.glibcVersionRuntime)return W;if(Array.isArray(r.sharedObjects)){if(r.sharedObjects.some(Un))return re}return null},Or=(r)=>{let[t,n]=r.split(/[\r\n]+/);if(t&&t.includes(W))return W;if(n&&n.includes(re))return re;return null},Gr=(r)=>{if(r){if(r.includes("/ld-musl-"))return re;else if(r.includes("/ld-linux-"))return W}return null},zr=(r)=>{if(r=r.toString(),r.includes("musl"))return re;if(r.includes("GNU C Library"))return W;return null},Hn=async()=>{if(O!==void 0)return O;O=null;try{let r=await Ve(Ie);O=zr(r)}catch(r){}return O},Wn=()=>{if(O!==void 0)return O;O=null;try{let r=Xe(Ie);O=zr(r)}catch(r){}return O},Vn=async()=>{if(D!==void 0)return D;D=null;try{let r=await Ve(Tr),t=Cr(r);D=Gr(t)}catch(r){}return D},Xn=()=>{if(D!==void 0)return D;D=null;try{let r=Xe(Tr),t=Cr(r);D=Gr(t)}catch(r){}return D},Ur=async()=>{let r=null;if(ne()){if(r=await Vn(),!r){if(r=await Hn(),!r)r=Dr();if(!r){let t=await Mr();r=Or(t)}}}return r},Hr=()=>{let r=null;if(ne()){if(r=Xn(),!r){if(r=Wn(),!r)r=Dr();if(!r){let t=Br();r=Or(t)}}}return r},Qn=async()=>ne()&&await Ur()!==W,Jn=()=>ne()&&Hr()!==W,Yn=async()=>{if(G!==void 0)return G;G=null;try{let t=(await Ve(Ie)).match(Fr);if(t)G=t[1]}catch(r){}return G},Kn=()=>{if(G!==void 0)return G;G=null;try{let t=Xe(Ie).match(Fr);if(t)G=t[1]}catch(r){}return G},Wr=()=>{let r=qr();if(r.header&&r.header.glibcVersionRuntime)return r.header.glibcVersionRuntime;return null},_r=(r)=>r.trim().split(/\s+/)[1],Vr=(r)=>{let[t,n,a]=r.split(/[\r\n]+/);if(t&&t.includes(W))return _r(t);if(n&&a&&n.includes(re))return _r(a);return null},Zn=async()=>{let r=null;if(ne()){if(r=await Yn(),!r)r=Wr();if(!r){let t=await Mr();r=Vr(t)}}return r},ea=()=>{let r=null;if(ne()){if(r=Kn(),!r)r=Wr();if(!r){let t=Br();r=Vr(t)}}return r};Xr.exports={GLIBC:W,MUSL:re,family:Ur,familySync:Hr,isNonGlibcLinux:Qn,isNonGlibcLinuxSync:Jn,version:Zn,versionSync:ea}});var ae=e(function(Gh,Qr){var ra=Number.MAX_SAFE_INTEGER||9007199254740991,ta=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Qr.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:ra,RELEASE_TYPES:ta,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var me=e(function(zh,Jr){var ia=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Jr.exports=ia});var se=e(function(z,Yr){var{MAX_SAFE_COMPONENT_LENGTH:Qe,MAX_SAFE_BUILD_LENGTH:na,MAX_LENGTH:aa}=ae(),sa=me();z=Yr.exports={};var oa=z.re=[],la=z.safeRe=[],m=z.src=[],ca=z.safeSrc=[],g=z.t={},ha=0,Je="[a-zA-Z0-9-]",fa=[["\\s",1],["\\d",aa],[Je,na]],ua=(r)=>{for(let[t,n]of fa)r=r.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return r},v=(r,t,n)=>{let a=ua(t),s=ha++;sa(r,s,t),g[r]=s,m[s]=t,ca[s]=a,oa[s]=new RegExp(t,n?"g":void 0),la[s]=new RegExp(a,n?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*");v("NUMERICIDENTIFIERLOOSE","\\d+");v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Je}*`);v("MAINVERSION",`(${m[g.NUMERICIDENTIFIER]})\\.(${m[g.NUMERICIDENTIFIER]})\\.(${m[g.NUMERICIDENTIFIER]})`);v("MAINVERSIONLOOSE",`(${m[g.NUMERICIDENTIFIERLOOSE]})\\.(${m[g.NUMERICIDENTIFIERLOOSE]})\\.(${m[g.NUMERICIDENTIFIERLOOSE]})`);v("PRERELEASEIDENTIFIER",`(?:${m[g.NONNUMERICIDENTIFIER]}|${m[g.NUMERICIDENTIFIER]})`);v("PRERELEASEIDENTIFIERLOOSE",`(?:${m[g.NONNUMERICIDENTIFIER]}|${m[g.NUMERICIDENTIFIERLOOSE]})`);v("PRERELEASE",`(?:-(${m[g.PRERELEASEIDENTIFIER]}(?:\\.${m[g.PRERELEASEIDENTIFIER]})*))`);v("PRERELEASELOOSE",`(?:-?(${m[g.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${m[g.PRERELEASEIDENTIFIERLOOSE]})*))`);v("BUILDIDENTIFIER",`${Je}+`);v("BUILD",`(?:\\+(${m[g.BUILDIDENTIFIER]}(?:\\.${m[g.BUILDIDENTIFIER]})*))`);v("FULLPLAIN",`v?${m[g.MAINVERSION]}${m[g.PRERELEASE]}?${m[g.BUILD]}?`);v("FULL",`^${m[g.FULLPLAIN]}$`);v("LOOSEPLAIN",`[v=\\s]*${m[g.MAINVERSIONLOOSE]}${m[g.PRERELEASELOOSE]}?${m[g.BUILD]}?`);v("LOOSE",`^${m[g.LOOSEPLAIN]}$`);v("GTLT","((?:<|>)?=?)");v("XRANGEIDENTIFIERLOOSE",`${m[g.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);v("XRANGEIDENTIFIER",`${m[g.NUMERICIDENTIFIER]}|x|X|\\*`);v("XRANGEPLAIN",`[v=\\s]*(${m[g.XRANGEIDENTIFIER]})(?:\\.(${m[g.XRANGEIDENTIFIER]})(?:\\.(${m[g.XRANGEIDENTIFIER]})(?:${m[g.PRERELEASE]})?${m[g.BUILD]}?)?)?`);v("XRANGEPLAINLOOSE",`[v=\\s]*(${m[g.XRANGEIDENTIFIERLOOSE]})(?:\\.(${m[g.XRANGEIDENTIFIERLOOSE]})(?:\\.(${m[g.XRANGEIDENTIFIERLOOSE]})(?:${m[g.PRERELEASELOOSE]})?${m[g.BUILD]}?)?)?`);v("XRANGE",`^${m[g.GTLT]}\\s*${m[g.XRANGEPLAIN]}$`);v("XRANGELOOSE",`^${m[g.GTLT]}\\s*${m[g.XRANGEPLAINLOOSE]}$`);v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Qe}})(?:\\.(\\d{1,${Qe}}))?(?:\\.(\\d{1,${Qe}}))?`);v("COERCE",`${m[g.COERCEPLAIN]}(?:$|[^\\d])`);v("COERCEFULL",m[g.COERCEPLAIN]+`(?:${m[g.PRERELEASE]})?(?:${m[g.BUILD]})?(?:$|[^\\d])`);v("COERCERTL",m[g.COERCE],!0);v("COERCERTLFULL",m[g.COERCEFULL],!0);v("LONETILDE","(?:~>?)");v("TILDETRIM",`(\\s*)${m[g.LONETILDE]}\\s+`,!0);z.tildeTrimReplace="$1~";v("TILDE",`^${m[g.LONETILDE]}${m[g.XRANGEPLAIN]}$`);v("TILDELOOSE",`^${m[g.LONETILDE]}${m[g.XRANGEPLAINLOOSE]}$`);v("LONECARET","(?:\\^)");v("CARETTRIM",`(\\s*)${m[g.LONECARET]}\\s+`,!0);z.caretTrimReplace="$1^";v("CARET",`^${m[g.LONECARET]}${m[g.XRANGEPLAIN]}$`);v("CARETLOOSE",`^${m[g.LONECARET]}${m[g.XRANGEPLAINLOOSE]}$`);v("COMPARATORLOOSE",`^${m[g.GTLT]}\\s*(${m[g.LOOSEPLAIN]})$|^$`);v("COMPARATOR",`^${m[g.GTLT]}\\s*(${m[g.FULLPLAIN]})$|^$`);v("COMPARATORTRIM",`(\\s*)${m[g.GTLT]}\\s*(${m[g.LOOSEPLAIN]}|${m[g.XRANGEPLAIN]})`,!0);z.comparatorTrimReplace="$1$2$3";v("HYPHENRANGE",`^\\s*(${m[g.XRANGEPLAIN]})\\s+-\\s+(${m[g.XRANGEPLAIN]})\\s*$`);v("HYPHENRANGELOOSE",`^\\s*(${m[g.XRANGEPLAINLOOSE]})\\s+-\\s+(${m[g.XRANGEPLAINLOOSE]})\\s*$`);v("STAR","(<|>)?=?\\s*\\*");v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Ae=e(function(Uh,Kr){var da=Object.freeze({loose:!0}),ma=Object.freeze({}),ga=(r)=>{if(!r)return ma;if(typeof r!=="object")return da;return r};Kr.exports=ga});var Ye=e(function(Hh,rt){var Zr=/^[0-9]+$/,et=(r,t)=>{if(typeof r==="number"&&typeof t==="number")return r===t?0:r<t?-1:1;let n=Zr.test(r),a=Zr.test(t);if(n&&a)r=+r,t=+t;return r===t?0:n&&!a?-1:a&&!n?1:r<t?-1:1},pa=(r,t)=>et(t,r);rt.exports={compareIdentifiers:et,rcompareIdentifiers:pa}});var L=e(function(Wh,it){var ke=me(),{MAX_LENGTH:tt,MAX_SAFE_INTEGER:Se}=ae(),{safeRe:Le,t:$e}=se(),ba=Ae(),{compareIdentifiers:Ke}=Ye(),wa=(r,t)=>{let n=t.split(".");if(n.length>r.length)return!1;for(let a=0;a<n.length;a++)if(Ke(r[a],n[a])!==0)return!1;return!0};class F{constructor(r,t){if(t=ba(t),r instanceof F)if(r.loose===!!t.loose&&r.includePrerelease===!!t.includePrerelease)return r;else r=r.version;else if(typeof r!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>tt)throw TypeError(`version is longer than ${tt} characters`);ke("SemVer",r,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=r.trim().match(t.loose?Le[$e.LOOSE]:Le[$e.FULL]);if(!n)throw TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Se||this.major<0)throw TypeError("Invalid major version");if(this.minor>Se||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>Se||this.patch<0)throw TypeError("Invalid patch version");if(!n[4])this.prerelease=[];else this.prerelease=n[4].split(".").map((a)=>{if(/^[0-9]+$/.test(a)){let s=+a;if(s>=0&&s<Se)return s}return a});this.build=n[5]?n[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(r){if(ke("SemVer.compare",this.version,this.options,r),!(r instanceof F)){if(typeof r==="string"&&r===this.version)return 0;r=new F(r,this.options)}if(r.version===this.version)return 0;return this.compareMain(r)||this.comparePre(r)}compareMain(r){if(!(r instanceof F))r=new F(r,this.options);if(this.major<r.major)return-1;if(this.major>r.major)return 1;if(this.minor<r.minor)return-1;if(this.minor>r.minor)return 1;if(this.patch<r.patch)return-1;if(this.patch>r.patch)return 1;return 0}comparePre(r){if(!(r instanceof F))r=new F(r,this.options);if(this.prerelease.length&&!r.prerelease.length)return-1;else if(!this.prerelease.length&&r.prerelease.length)return 1;else if(!this.prerelease.length&&!r.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],a=r.prerelease[t];if(ke("prerelease compare",t,n,a),n===void 0&&a===void 0)return 0;else if(a===void 0)return 1;else if(n===void 0)return-1;else if(n===a)continue;else return Ke(n,a)}while(++t)}compareBuild(r){if(!(r instanceof F))r=new F(r,this.options);let t=0;do{let n=this.build[t],a=r.build[t];if(ke("build compare",t,n,a),n===void 0&&a===void 0)return 0;else if(a===void 0)return 1;else if(n===void 0)return-1;else if(n===a)continue;else return Ke(n,a)}while(++t)}inc(r,t,n){if(r.startsWith("pre")){if(!t&&n===!1)throw Error("invalid increment argument: identifier is empty");if(t){let a=`-${t}`.match(this.options.loose?Le[$e.PRERELEASELOOSE]:Le[$e.PRERELEASE]);if(!a||a[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",t,n);this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let a=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[a];else{let s=this.prerelease.length;while(--s>=0)if(typeof this.prerelease[s]==="number")this.prerelease[s]++,s=-2;if(s===-1){if(t===this.prerelease.join(".")&&n===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(t){let s=[t,a];if(n===!1)s=[t];if(wa(this.prerelease,t)){let o=this.prerelease[t.split(".").length];if(isNaN(o))this.prerelease=s}else this.prerelease=s}break}default:throw Error(`invalid increment argument: ${r}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}it.exports=F});var Y=e(function(Vh,at){var nt=L(),va=(r,t,n=!1)=>{if(r instanceof nt)return r;try{return new nt(r,t)}catch(a){if(!n)return null;throw a}};at.exports=va});var ot=e(function(Xh,st){var Ea=Y(),ya=(r,t)=>{let n=Ea(r,t);return n?n.version:null};st.exports=ya});var ct=e(function(Qh,lt){var xa=Y(),Pa=(r,t)=>{let n=xa(r.trim().replace(/^[=v]+/,""),t);return n?n.version:null};lt.exports=Pa});var ut=e(function(Jh,ft){var ht=L(),Ra=(r,t,n,a,s)=>{if(typeof n==="string")s=a,a=n,n=void 0;try{return new ht(r instanceof ht?r.version:r,n).inc(t,a,s).version}catch(o){return null}};ft.exports=Ra});var gt=e(function(Yh,mt){var dt=Y(),Ia=(r,t)=>{let n=dt(r,null,!0),a=dt(t,null,!0),s=n.compare(a);if(s===0)return null;let o=s>0,l=o?n:a,c=o?a:n,h=!!l.prerelease.length;if(!!c.prerelease.length&&!h){if(!c.patch&&!c.minor)return"major";if(c.compareMain(l)===0){if(c.minor&&!c.patch)return"minor";return"patch"}}let p=h?"pre":"";if(n.major!==a.major)return p+"major";if(n.minor!==a.minor)return p+"minor";if(n.patch!==a.patch)return p+"patch";return"prerelease"};mt.exports=Ia});var bt=e(function(Kh,pt){var ja=L(),Aa=(r,t)=>new ja(r,t).major;pt.exports=Aa});var vt=e(function(Zh,wt){var ka=L(),Sa=(r,t)=>new ka(r,t).minor;wt.exports=Sa});var yt=e(function(ef,Et){var La=L(),$a=(r,t)=>new La(r,t).patch;Et.exports=$a});var Pt=e(function(rf,xt){var Na=Y(),_a=(r,t)=>{let n=Na(r,t);return n&&n.prerelease.length?n.prerelease:null};xt.exports=_a});var M=e(function(tf,It){var Rt=L(),qa=(r,t,n)=>new Rt(r,n).compare(new Rt(t,n));It.exports=qa});var At=e(function(nf,jt){var Ta=M(),Ca=(r,t,n)=>Ta(t,r,n);jt.exports=Ca});var St=e(function(af,kt){var Ma=M(),Ba=(r,t)=>Ma(r,t,!0);kt.exports=Ba});var Ne=e(function(sf,$t){var Lt=L(),Fa=(r,t,n)=>{let a=new Lt(r,n),s=new Lt(t,n);return a.compare(s)||a.compareBuild(s)};$t.exports=Fa});var _t=e(function(of,Nt){var Da=Ne(),Oa=(r,t)=>r.sort((n,a)=>Da(n,a,t));Nt.exports=Oa});var Tt=e(function(lf,qt){var Ga=Ne(),za=(r,t)=>r.sort((n,a)=>Ga(a,n,t));qt.exports=za});var ge=e(function(cf,Ct){var Ua=M(),Ha=(r,t,n)=>Ua(r,t,n)>0;Ct.exports=Ha});var _e=e(function(hf,Mt){var Wa=M(),Va=(r,t,n)=>Wa(r,t,n)<0;Mt.exports=Va});var Ze=e(function(ff,Bt){var Xa=M(),Qa=(r,t,n)=>Xa(r,t,n)===0;Bt.exports=Qa});var er=e(function(uf,Ft){var Ja=M(),Ya=(r,t,n)=>Ja(r,t,n)!==0;Ft.exports=Ya});var qe=e(function(df,Dt){var Ka=M(),Za=(r,t,n)=>Ka(r,t,n)>=0;Dt.exports=Za});var Te=e(function(mf,Ot){var es=M(),rs=(r,t,n)=>es(r,t,n)<=0;Ot.exports=rs});var rr=e(function(gf,Gt){var ts=Ze(),is=er(),ns=ge(),as=qe(),ss=_e(),os=Te(),ls=(r,t,n,a)=>{switch(t){case"===":if(typeof r==="object")r=r.version;if(typeof n==="object")n=n.version;return r===n;case"!==":if(typeof r==="object")r=r.version;if(typeof n==="object")n=n.version;return r!==n;case"":case"=":case"==":return ts(r,n,a);case"!=":return is(r,n,a);case">":return ns(r,n,a);case">=":return as(r,n,a);case"<":return ss(r,n,a);case"<=":return os(r,n,a);default:throw TypeError(`Invalid operator: ${t}`)}};Gt.exports=ls});var Ut=e(function(pf,zt){var cs=L(),hs=Y(),{safeRe:Ce,t:Me}=se(),fs=(r,t)=>{if(r instanceof cs)return r;if(typeof r==="number")r=String(r);if(typeof r!=="string")return null;t=t||{};let n=null;if(!t.rtl)n=r.match(t.includePrerelease?Ce[Me.COERCEFULL]:Ce[Me.COERCE]);else{let h=t.includePrerelease?Ce[Me.COERCERTLFULL]:Ce[Me.COERCERTL],f;while((f=h.exec(r))&&(!n||n.index+n[0].length!==r.length)){if(!n||f.index+f[0].length!==n.index+n[0].length)n=f;h.lastIndex=f.index+f[1].length+f[2].length}h.lastIndex=-1}if(n===null)return null;let a=n[2],s=n[3]||"0",o=n[4]||"0",l=t.includePrerelease&&n[5]?`-${n[5]}`:"",c=t.includePrerelease&&n[6]?`+${n[6]}`:"";return hs(`${a}.${s}.${o}${l}${c}`,t)};zt.exports=fs});var Vt=e(function(bf,Wt){var us=Y(),Ht=ae(),ds=L(),ms=(r,t,n)=>{if(!Ht.RELEASE_TYPES.includes(t))return null;let a=gs(r,n);return a&&ps(a,t)},gs=(r,t)=>{let n=r instanceof ds?r.version:r;return us(n,t)},ps=(r,t)=>{if(bs(t))return r.version;switch(r.prerelease=[],t){case"major":r.minor=0,r.patch=0;break;case"minor":r.patch=0;break}return r.format()},bs=(r)=>r.startsWith("pre");Wt.exports=ms});var Jt=e(function(wf,Qt){class Xt{constructor(){this.max=1000,this.map=new Map}get(r){let t=this.map.get(r);if(t===void 0)return;else return this.map.delete(r),this.map.set(r,t),t}delete(r){return this.map.delete(r)}set(r,t){if(!this.delete(r)&&t!==void 0){if(this.map.size>=this.max){let a=this.map.keys().next().value;this.delete(a)}this.map.set(r,t)}return this}}Qt.exports=Xt});var B=e(function(vf,ei){var ws=/\s+/g;class pe{constructor(r,t){if(t=Es(t),r instanceof pe)if(r.loose===!!t.loose&&r.includePrerelease===!!t.includePrerelease)return r;else return new pe(r.raw,t);if(r instanceof Be)return this.raw=r.value,this.set=[[r]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=r.trim().replace(ws," "),this.set=this.raw.split("||").map((n)=>this.parseRange(n.trim())).filter((n)=>n.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter((a)=>!Kt(a[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&Ss(a[0])){this.set=[a];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let r=0;r<this.set.length;r++){if(r>0)this.formatted+="||";let t=this.set[r];for(let n=0;n<t.length;n++){if(n>0)this.formatted+=" ";this.formatted+=t[n].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(r){r=r.replace(ks,"");let n=((this.options.includePrerelease&&js)|(this.options.loose&&As))+":"+r,a=Yt.get(n);if(a)return a;let s=this.options.loose,o=s?_[N.HYPHENRANGELOOSE]:_[N.HYPHENRANGE];r=r.replace(o,Ds(this.options.includePrerelease)),x("hyphen replace",r),r=r.replace(_[N.COMPARATORTRIM],Ps),x("comparator trim",r),r=r.replace(_[N.TILDETRIM],Rs),x("tilde trim",r),r=r.replace(_[N.CARETTRIM],Is),x("caret trim",r);let l=r.split(" ").map((p)=>Ls(p,this.options)).join(" ").split(/\s+/).map((p)=>Fs(p,this.options));if(s)l=l.filter((p)=>(x("loose invalid filter",p,this.options),!!p.match(_[N.COMPARATORLOOSE])));x("range list",l);let c=new Map,h=l.map((p)=>new Be(p,this.options));for(let p of h){if(Kt(p))return[p];c.set(p.value,p)}if(c.size>1&&c.has(""))c.delete("");let f=[...c.values()];return Yt.set(n,f),f}intersects(r,t){if(!(r instanceof pe))throw TypeError("a Range is required");return this.set.some((n)=>Zt(n,t)&&r.set.some((a)=>Zt(a,t)&&n.every((s)=>a.every((o)=>s.intersects(o,t)))))}test(r){if(!r)return!1;if(typeof r==="string")try{r=new ys(r,this.options)}catch(t){return!1}for(let t=0;t<this.set.length;t++)if(Os(this.set[t],r,this.options))return!0;return!1}}ei.exports=pe;var vs=Jt(),Yt=new vs,Es=Ae(),Be=be(),x=me(),ys=L(),{safeRe:_,src:xs,t:N,comparatorTrimReplace:Ps,tildeTrimReplace:Rs,caretTrimReplace:Is}=se(),{FLAG_INCLUDE_PRERELEASE:js,FLAG_LOOSE:As}=ae(),ks=new RegExp(xs[N.BUILD],"g"),Kt=(r)=>r.value==="<0.0.0-0",Ss=(r)=>r.value==="",Zt=(r,t)=>{let n=!0,a=r.slice(),s=a.pop();while(n&&a.length)n=a.every((o)=>s.intersects(o,t)),s=a.pop();return n},Ls=(r,t)=>(r=r.replace(_[N.BUILD],""),x("comp",r,t),r=qs(r,t),x("caret",r),r=Ns(r,t),x("tildes",r),r=Cs(r,t),x("xrange",r),r=Bs(r,t),x("stars",r),r),j=(r)=>!r||r.toLowerCase()==="x"||r==="*",$s=(r,t,n)=>j(r)&&!j(t)||j(t)&&n&&!j(n),Ns=(r,t)=>r.trim().split(/\s+/).map((n)=>_s(n,t)).join(" "),_s=(r,t)=>{let n=t.loose?_[N.TILDELOOSE]:_[N.TILDE],a=t.includePrerelease?"-0":"";return r.replace(n,(s,o,l,c,h)=>{x("tilde",r,s,o,l,c,h);let f;if(j(o))f="";else if(j(l))f=`>=${o}.0.0${a} <${+o+1}.0.0-0`;else if(j(c))f=`>=${o}.${l}.0${a} <${o}.${+l+1}.0-0`;else if(h)x("replaceTilde pr",h),f=`>=${o}.${l}.${c}-${h} <${o}.${+l+1}.0-0`;else f=`>=${o}.${l}.${c} <${o}.${+l+1}.0-0`;return x("tilde return",f),f})},qs=(r,t)=>r.trim().split(/\s+/).map((n)=>Ts(n,t)).join(" "),Ts=(r,t)=>{x("caret",r,t);let n=t.loose?_[N.CARETLOOSE]:_[N.CARET],a=t.includePrerelease?"-0":"";return r.replace(n,(s,o,l,c,h)=>{x("caret",r,s,o,l,c,h);let f;if(j(o))f="";else if(j(l))f=`>=${o}.0.0${a} <${+o+1}.0.0-0`;else if(j(c))if(o==="0")f=`>=${o}.${l}.0${a} <${o}.${+l+1}.0-0`;else f=`>=${o}.${l}.0${a} <${+o+1}.0.0-0`;else if(h)if(x("replaceCaret pr",h),o==="0")if(l==="0")f=`>=${o}.${l}.${c}-${h} <${o}.${l}.${+c+1}-0`;else f=`>=${o}.${l}.${c}-${h} <${o}.${+l+1}.0-0`;else f=`>=${o}.${l}.${c}-${h} <${+o+1}.0.0-0`;else if(x("no pr"),o==="0")if(l==="0")f=`>=${o}.${l}.${c} <${o}.${l}.${+c+1}-0`;else f=`>=${o}.${l}.${c} <${o}.${+l+1}.0-0`;else f=`>=${o}.${l}.${c} <${+o+1}.0.0-0`;return x("caret return",f),f})},Cs=(r,t)=>(x("replaceXRanges",r,t),r.split(/\s+/).map((n)=>Ms(n,t)).join(" ")),Ms=(r,t)=>{r=r.trim();let n=t.loose?_[N.XRANGELOOSE]:_[N.XRANGE];return r.replace(n,(a,s,o,l,c,h)=>{if(x("xRange",r,a,s,o,l,c,h),$s(o,l,c))return r;let f=j(o),p=f||j(l),w=p||j(c),P=w;if(s==="="&&P)s="";if(h=t.includePrerelease?"-0":"",f)if(s===">"||s==="<")a="<0.0.0-0";else a="*";else if(s&&P){if(p)l=0;if(c=0,s===">")if(s=">=",p)o=+o+1,l=0,c=0;else l=+l+1,c=0;else if(s==="<=")if(s="<",p)o=+o+1;else l=+l+1;if(s==="<")h="-0";a=`${s+o}.${l}.${c}${h}`}else if(p)a=`>=${o}.0.0${h} <${+o+1}.0.0-0`;else if(w)a=`>=${o}.${l}.0${h} <${o}.${+l+1}.0-0`;return x("xRange return",a),a})},Bs=(r,t)=>(x("replaceStars",r,t),r.trim().replace(_[N.STAR],"")),Fs=(r,t)=>(x("replaceGTE0",r,t),r.trim().replace(_[t.includePrerelease?N.GTE0PRE:N.GTE0],"")),Ds=(r)=>(t,n,a,s,o,l,c,h,f,p,w,P)=>{if(j(a))n="";else if(j(s))n=`>=${a}.0.0${r?"-0":""}`;else if(j(o))n=`>=${a}.${s}.0${r?"-0":""}`;else if(l)n=`>=${n}`;else n=`>=${n}${r?"-0":""}`;if(j(f))h="";else if(j(p))h=`<${+f+1}.0.0-0`;else if(j(w))h=`<${f}.${+p+1}.0-0`;else if(P)h=`<=${f}.${p}.${w}-${P}`;else if(r)h=`<${f}.${p}.${+w+1}-0`;else h=`<=${h}`;return`${n} ${h}`.trim()},Os=(r,t,n)=>{for(let a=0;a<r.length;a++)if(!r[a].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let a=0;a<r.length;a++){if(x(r[a].semver),r[a].semver===Be.ANY)continue;if(r[a].semver.prerelease.length>0){let s=r[a].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}}return!1}return!0}});var be=e(function(Ef,si){var we=Symbol("SemVer ANY");class Fe{static get ANY(){return we}constructor(r,t){if(t=ri(t),r instanceof Fe)if(r.loose===!!t.loose)return r;else r=r.value;if(r=r.trim().split(/\s+/).join(" "),ir("comparator",r,t),this.options=t,this.loose=!!t.loose,this.parse(r),this.semver===we)this.value="";else this.value=this.operator+this.semver.version;ir("comp",this)}parse(r){let t=this.options.loose?ti[ii.COMPARATORLOOSE]:ti[ii.COMPARATOR],n=r.match(t);if(!n)throw TypeError(`Invalid comparator: ${r}`);if(this.operator=n[1]!==void 0?n[1]:"",this.operator==="=")this.operator="";if(!n[2])this.semver=we;else this.semver=new ni(n[2],this.options.loose)}toString(){return this.value}test(r){if(ir("Comparator.test",r,this.options.loose),this.semver===we||r===we)return!0;if(typeof r==="string")try{r=new ni(r,this.options)}catch(t){return!1}return tr(r,this.operator,this.semver,this.options)}intersects(r,t){if(!(r instanceof Fe))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new ai(r.value,t).test(this.value)}else if(r.operator===""){if(r.value==="")return!0;return new ai(this.value,t).test(r.semver)}if(t=ri(t),t.includePrerelease&&(this.value==="<0.0.0-0"||r.value==="<0.0.0-0"))return!1;if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||r.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&r.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&r.operator.startsWith("<"))return!0;if(this.semver.version===r.semver.version&&this.operator.includes("=")&&r.operator.includes("="))return!0;if(tr(this.semver,"<",r.semver,t)&&this.operator.startsWith(">")&&r.operator.startsWith("<"))return!0;if(tr(this.semver,">",r.semver,t)&&this.operator.startsWith("<")&&r.operator.startsWith(">"))return!0;return!1}}si.exports=Fe;var ri=Ae(),{safeRe:ti,t:ii}=se(),tr=rr(),ir=me(),ni=L(),ai=B()});var ve=e(function(yf,oi){var Gs=B(),zs=(r,t,n)=>{try{t=new Gs(t,n)}catch(a){return!1}return t.test(r)};oi.exports=zs});var ci=e(function(xf,li){var Us=B(),Hs=(r,t)=>new Us(r,t).set.map((n)=>n.map((a)=>a.value).join(" ").trim().split(" "));li.exports=Hs});var fi=e(function(Pf,hi){var Ws=L(),Vs=B(),Xs=(r,t,n)=>{let a=null,s=null,o=null;try{o=new Vs(t,n)}catch(l){return null}return r.forEach((l)=>{if(o.test(l)){if(!a||s.compare(l)===-1)a=l,s=new Ws(a,n)}}),a};hi.exports=Xs});var di=e(function(Rf,ui){var Qs=L(),Js=B(),Ys=(r,t,n)=>{let a=null,s=null,o=null;try{o=new Js(t,n)}catch(l){return null}return r.forEach((l)=>{if(o.test(l)){if(!a||s.compare(l)===1)a=l,s=new Qs(a,n)}}),a};ui.exports=Ys});var pi=e(function(If,gi){var nr=L(),Ks=B(),mi=ge(),Zs=(r,t)=>{r=new Ks(r,t);let n=new nr("0.0.0");if(r.test(n))return n;if(n=new nr("0.0.0-0"),r.test(n))return n;n=null;for(let a=0;a<r.set.length;++a){let s=r.set[a],o=null;if(s.forEach((l)=>{let c=new nr(l.semver.version);switch(l.operator){case">":if(c.prerelease.length===0)c.patch++;else c.prerelease.push(0);c.raw=c.format();case"":case">=":if(!o||mi(c,o))o=c;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${l.operator}`)}}),o&&(!n||mi(n,o)))n=o}if(n&&r.test(n))return n;return null};gi.exports=Zs});var wi=e(function(jf,bi){var eo=B(),ro=(r,t)=>{try{return new eo(r,t).range||"*"}catch(n){return null}};bi.exports=ro});var De=e(function(Af,xi){var to=L(),yi=be(),{ANY:io}=yi,no=B(),ao=ve(),vi=ge(),Ei=_e(),so=Te(),oo=qe(),lo=(r,t,n,a)=>{r=new to(r,a),t=new no(t,a);let s,o,l,c,h;switch(n){case">":s=vi,o=so,l=Ei,c=">",h=">=";break;case"<":s=Ei,o=oo,l=vi,c="<",h="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(ao(r,t,a))return!1;for(let f=0;f<t.set.length;++f){let p=t.set[f],w=null,P=null;if(p.forEach((b)=>{if(b.semver===io)b=new yi(">=0.0.0");if(w=w||b,P=P||b,s(b.semver,w.semver,a))w=b;else if(l(b.semver,P.semver,a))P=b}),w.operator===c||w.operator===h)return!1;if((!P.operator||P.operator===c)&&o(r,P.semver))return!1;else if(P.operator===h&&l(r,P.semver))return!1}return!0};xi.exports=lo});var Ri=e(function(kf,Pi){var co=De(),ho=(r,t,n)=>co(r,t,">",n);Pi.exports=ho});var ji=e(function(Sf,Ii){var fo=De(),uo=(r,t,n)=>fo(r,t,"<",n);Ii.exports=uo});var Si=e(function(Lf,ki){var Ai=B(),mo=(r,t,n)=>(r=new Ai(r,n),t=new Ai(t,n),r.intersects(t,n));ki.exports=mo});var $i=e(function($f,Li){var go=ve(),po=M();Li.exports=(r,t,n)=>{let a=[],s=null,o=null,l=r.sort((p,w)=>po(p,w,n));for(let p of l)if(go(p,t,n)){if(o=p,!s)s=p}else{if(o)a.push([s,o]);o=null,s=null}if(s)a.push([s,null]);let c=[];for(let[p,w]of a)if(p===w)c.push(p);else if(!w&&p===l[0])c.push("*");else if(!w)c.push(`>=${p}`);else if(p===l[0])c.push(`<=${w}`);else c.push(`${p} - ${w}`);let h=c.join(" || "),f=typeof t.raw==="string"?t.raw:String(t);return h.length<f.length?h:t}});var Mi=e(function(Nf,Ci){var Ni=B(),or=be(),{ANY:ar}=or,sr=ve(),lr=M(),bo=(r,t,n={})=>{if(r===t)return!0;r=new Ni(r,n),t=new Ni(t,n);let a=!1;e:for(let s of r.set){for(let o of t.set){let l=vo(s,o,n);if(a=a||l!==null,l)continue e}if(a)return!1}return!0},wo=[new or(">=0.0.0-0")],_i=[new or(">=0.0.0")],vo=(r,t,n)=>{if(r===t)return!0;if(r.length===1&&r[0].semver===ar)if(t.length===1&&t[0].semver===ar)return!0;else if(n.includePrerelease)r=wo;else r=_i;if(t.length===1&&t[0].semver===ar)if(n.includePrerelease)return!0;else t=_i;let a=new Set,s,o;for(let b of r)if(b.operator===">"||b.operator===">=")s=qi(s,b,n);else if(b.operator==="<"||b.operator==="<=")o=Ti(o,b,n);else a.add(b.semver);if(a.size>1)return null;let l;if(s&&o){if(l=lr(s.semver,o.semver,n),l>0)return null;else if(l===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let b of a){if(s&&!sr(b,String(s),n))return null;if(o&&!sr(b,String(o),n))return null;for(let In of t)if(!sr(b,String(In),n))return!1;return!0}let c,h,f,p,w=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,P=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;if(w&&w.prerelease.length===1&&o.operator==="<"&&w.prerelease[0]===0)w=!1;for(let b of t){if(p=p||b.operator===">"||b.operator===">=",f=f||b.operator==="<"||b.operator==="<=",s){if(P){if(b.semver.prerelease&&b.semver.prerelease.length&&b.semver.major===P.major&&b.semver.minor===P.minor&&b.semver.patch===P.patch)P=!1}if(b.operator===">"||b.operator===">="){if(c=qi(s,b,n),c===b&&c!==s)return!1}else if(s.operator===">="&&!b.test(s.semver))return!1}if(o){if(w){if(b.semver.prerelease&&b.semver.prerelease.length&&b.semver.major===w.major&&b.semver.minor===w.minor&&b.semver.patch===w.patch)w=!1}if(b.operator==="<"||b.operator==="<="){if(h=Ti(o,b,n),h===b&&h!==o)return!1}else if(o.operator==="<="&&!b.test(o.semver))return!1}if(!b.operator&&(o||s)&&l!==0)return!1}if(s&&f&&!o&&l!==0)return!1;if(o&&p&&!s&&l!==0)return!1;if(P||w)return!1;return!0},qi=(r,t,n)=>{if(!r)return t;let a=lr(r.semver,t.semver,n);return a>0?r:a<0?t:t.operator===">"&&r.operator===">="?t:r},Ti=(r,t,n)=>{if(!r)return t;let a=lr(r.semver,t.semver,n);return a<0?r:a>0?t:t.operator==="<"&&r.operator==="<="?t:r};Ci.exports=bo});var Fi=e(function(_f,Bi){var oe=se(),Oe=ae(),Eo=L(),Ge=Ye(),yo=Y(),xo=ot(),Po=ct(),Ro=ut(),Io=gt(),jo=bt(),Ao=vt(),ko=yt(),So=Pt(),Lo=M(),$o=At(),No=St(),_o=Ne(),qo=_t(),To=Tt(),Co=ge(),Mo=_e(),Bo=Ze(),Fo=er(),Do=qe(),Oo=Te(),Go=rr(),zo=Ut(),Uo=Vt(),Ho=be(),Wo=B(),Vo=ve(),Xo=ci(),Qo=fi(),Jo=di(),Yo=pi(),Ko=wi(),Zo=De(),el=Ri(),rl=ji(),tl=Si(),il=$i(),nl=Mi();Bi.exports={parse:yo,valid:xo,clean:Po,inc:Ro,diff:Io,major:jo,minor:Ao,patch:ko,prerelease:So,compare:Lo,rcompare:$o,compareLoose:No,compareBuild:_o,sort:qo,rsort:To,gt:Co,lt:Mo,eq:Bo,neq:Fo,gte:Do,lte:Oo,cmp:Go,coerce:zo,truncate:Uo,Comparator:Ho,Range:Wo,satisfies:Vo,toComparators:Xo,maxSatisfying:Qo,minSatisfying:Jo,minVersion:Yo,validRange:Ko,outside:Zo,gtr:el,ltr:rl,intersects:tl,simplifyRange:il,subset:nl,SemVer:Eo,re:oe.re,src:oe.src,tokens:oe.t,SEMVER_SPEC_VERSION:Oe.SEMVER_SPEC_VERSION,RELEASE_TYPES:Oe.RELEASE_TYPES,compareIdentifiers:Ge.compareIdentifiers,rcompareIdentifiers:Ge.rcompareIdentifiers}});var hn=e(function(nu,cn){var{defineProperty:Er,getOwnPropertyDescriptor:mc,getOwnPropertyNames:gc}=Object,pc=Object.prototype.hasOwnProperty,bc=(r,t)=>{for(var n in t)Er(r,n,{get:t[n],enumerable:!0})},wc=(r,t,n,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let s of gc(t))if(!pc.call(r,s)&&s!==n)Er(r,s,{get:()=>t[s],enumerable:!(a=mc(t,s))||a.enumerable})}return r},vc=(r)=>wc(Er({},"__esModule",{value:!0}),r),an={};bc(an,{default:()=>_c});cn.exports=vc(an);var pr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(let r in pr)Object.freeze(pr[r]);var H=Object.freeze(pr),sn=Object.create(null);for(let r in H)if(Object.hasOwn(H,r))sn[H[r]]=r;var q={to:{},get:{}};q.get=function(r){let t=r.slice(0,3).toLowerCase(),n,a;switch(t){case"hsl":{n=q.get.hsl(r),a="hsl";break}case"hwb":{n=q.get.hwb(r),a="hwb";break}default:{n=q.get.rgb(r),a="rgb";break}}if(!n)return null;return{model:a,value:n}};q.get.rgb=function(r){if(!r)return null;let t=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,a=/^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i,s=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i,o=/^(\w+)$/,l=[0,0,0,1],c,h,f;if(c=r.match(n)){f=c[2],c=c[1];for(h=0;h<3;h++){let p=h*2;l[h]=Number.parseInt(c.slice(p,p+2),16)}if(f)l[3]=Number.parseInt(f,16)/255}else if(c=r.match(t)){c=c[1],f=c[3];for(h=0;h<3;h++)l[h]=Number.parseInt(c[h]+c[h],16);if(f)l[3]=Number.parseInt(f+f,16)/255}else if(c=r.match(a)){for(h=0;h<3;h++)l[h]=Number.parseFloat(c[h+1]);if(c[4])l[3]=c[5]?Number.parseFloat(c[4])*0.01:Number.parseFloat(c[4])}else if(c=r.match(s)){for(h=0;h<3;h++)l[h]=Math.round(Number.parseFloat(c[h+1])*2.55);if(c[4])l[3]=c[5]?Number.parseFloat(c[4])*0.01:Number.parseFloat(c[4])}else if(c=r.toLowerCase().match(o)){if(c[1]==="transparent")return[0,0,0,0];if(!Object.hasOwn(H,c[1]))return null;return l=H[c[1]].slice(),l[3]=1,l}else return null;for(h=0;h<3;h++)l[h]=Z(l[h],0,255);return l[3]=Z(l[3],0,1),l};q.get.hsl=function(r){if(!r)return null;let t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=r.match(t);if(n){let a=Number.parseFloat(n[4]),s=(Number.parseFloat(n[1])%360+360)%360,o=Z(Number.parseFloat(n[2]),0,100),l=Z(Number.parseFloat(n[3]),0,100),c=Z(Number.isNaN(a)?1:a,0,1);return[s,o,l,c]}return null};q.get.hwb=function(r){if(!r)return null;let t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=r.match(t);if(n){let a=Number.parseFloat(n[4]),s=(Number.parseFloat(n[1])%360+360)%360,o=Z(Number.parseFloat(n[2]),0,100),l=Z(Number.parseFloat(n[3]),0,100),c=Z(Number.isNaN(a)?1:a,0,1);return[s,o,l,c]}return null};q.to.hex=function(...r){return"#"+We(r[0])+We(r[1])+We(r[2])+(r[3]<1?We(Math.round(r[3]*255)):"")};q.to.rgb=function(...r){return r.length<4||r[3]===1?"rgb("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+")":"rgba("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+", "+r[3]+")"};q.to.rgb.percent=function(...r){let t=Math.round(r[0]/255*100),n=Math.round(r[1]/255*100),a=Math.round(r[2]/255*100);return r.length<4||r[3]===1?"rgb("+t+"%, "+n+"%, "+a+"%)":"rgba("+t+"%, "+n+"%, "+a+"%, "+r[3]+")"};q.to.hsl=function(...r){return r.length<4||r[3]===1?"hsl("+r[0]+", "+r[1]+"%, "+r[2]+"%)":"hsla("+r[0]+", "+r[1]+"%, "+r[2]+"%, "+r[3]+")"};q.to.hwb=function(...r){let t="";if(r.length>=4&&r[3]!==1)t=", "+r[3];return"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+t+")"};q.to.keyword=function(...r){return sn[r.slice(0,3)]};function Z(r,t,n){return Math.min(Math.max(t,r),n)}function We(r){let t=Math.round(r).toString(16).toUpperCase();return t.length<2?"0"+t:t}var ce=q,on={};for(let r of Object.keys(H))on[H[r]]=r;var d={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},ie=d,Q=0.008856451679035631;function fe(r){let t=r>0.0031308?1.055*r**0.4166666666666667-0.055:r*12.92;return Math.min(Math.max(0,t),1)}function ue(r){return r>0.04045?((r+0.055)/1.055)**2.4:r/12.92}for(let r of Object.keys(d)){if(!("channels"in d[r]))throw Error("missing channels property: "+r);if(!("labels"in d[r]))throw Error("missing channel labels property: "+r);if(d[r].labels.length!==d[r].channels)throw Error("channel and label counts mismatch: "+r);let{channels:t,labels:n}=d[r];delete d[r].channels,delete d[r].labels,Object.defineProperty(d[r],"channels",{value:t}),Object.defineProperty(d[r],"labels",{value:n})}d.rgb.hsl=function(r){let t=r[0]/255,n=r[1]/255,a=r[2]/255,s=Math.min(t,n,a),o=Math.max(t,n,a),l=o-s,c,h;switch(o){case s:{c=0;break}case t:{c=(n-a)/l;break}case n:{c=2+(a-t)/l;break}case a:{c=4+(t-n)/l;break}}if(c=Math.min(c*60,360),c<0)c+=360;let f=(s+o)/2;if(o===s)h=0;else if(f<=0.5)h=l/(o+s);else h=l/(2-o-s);return[c,h*100,f*100]};d.rgb.hsv=function(r){let t,n,a,s,o,l=r[0]/255,c=r[1]/255,h=r[2]/255,f=Math.max(l,c,h),p=f-Math.min(l,c,h),w=function(P){return(f-P)/6/p+0.5};if(p===0)s=0,o=0;else{switch(o=p/f,t=w(l),n=w(c),a=w(h),f){case l:{s=a-n;break}case c:{s=0.3333333333333333+t-a;break}case h:{s=0.6666666666666666+n-t;break}}if(s<0)s+=1;else if(s>1)s-=1}return[s*360,o*100,f*100]};d.rgb.hwb=function(r){let t=r[0],n=r[1],a=r[2],s=d.rgb.hsl(r)[0],o=0.00392156862745098*Math.min(t,Math.min(n,a));return a=1-0.00392156862745098*Math.max(t,Math.max(n,a)),[s,o*100,a*100]};d.rgb.oklab=function(r){let t=ue(r[0]/255),n=ue(r[1]/255),a=ue(r[2]/255),s=Math.cbrt(0.4122214708*t+0.5363325363*n+0.0514459929*a),o=Math.cbrt(0.2119034982*t+0.6806995451*n+0.1073969566*a),l=Math.cbrt(0.0883024619*t+0.2817188376*n+0.6299787005*a),c=0.2104542553*s+0.793617785*o-0.0040720468*l,h=1.9779984951*s-2.428592205*o+0.4505937099*l,f=0.0259040371*s+0.7827717662*o-0.808675766*l;return[c*100,h*100,f*100]};d.rgb.cmyk=function(r){let t=r[0]/255,n=r[1]/255,a=r[2]/255,s=Math.min(1-t,1-n,1-a),o=(1-t-s)/(1-s)||0,l=(1-n-s)/(1-s)||0,c=(1-a-s)/(1-s)||0;return[o*100,l*100,c*100,s*100]};function Ec(r,t){return(r[0]-t[0])**2+(r[1]-t[1])**2+(r[2]-t[2])**2}d.rgb.keyword=function(r){let t=on[r];if(t)return t;let n=Number.POSITIVE_INFINITY,a;for(let s of Object.keys(H)){let o=H[s],l=Ec(r,o);if(l<n)n=l,a=s}return a};d.keyword.rgb=function(r){return[...H[r]]};d.rgb.xyz=function(r){let t=ue(r[0]/255),n=ue(r[1]/255),a=ue(r[2]/255),s=t*0.4124564+n*0.3575761+a*0.1804375,o=t*0.2126729+n*0.7151522+a*0.072175,l=t*0.0193339+n*0.119192+a*0.9503041;return[s*100,o*100,l*100]};d.rgb.lab=function(r){let t=d.rgb.xyz(r),n=t[0],a=t[1],s=t[2];n/=95.047,a/=100,s/=108.883,n=n>Q?n**0.3333333333333333:7.787*n+0.13793103448275862,a=a>Q?a**0.3333333333333333:7.787*a+0.13793103448275862,s=s>Q?s**0.3333333333333333:7.787*s+0.13793103448275862;let o=116*a-16,l=500*(n-a),c=200*(a-s);return[o,l,c]};d.hsl.rgb=function(r){let t=r[0]/360,n=r[1]/100,a=r[2]/100,s,o;if(n===0)return o=a*255,[o,o,o];let l=a<0.5?a*(1+n):a+n-a*n,c=2*a-l,h=[0,0,0];for(let f=0;f<3;f++){if(s=t+0.3333333333333333*-(f-1),s<0)s++;if(s>1)s--;if(6*s<1)o=c+(l-c)*6*s;else if(2*s<1)o=l;else if(3*s<2)o=c+(l-c)*(0.6666666666666666-s)*6;else o=c;h[f]=o*255}return h};d.hsl.hsv=function(r){let t=r[0],n=r[1]/100,a=r[2]/100,s=n,o=Math.max(a,0.01);a*=2,n*=a<=1?a:2-a,s*=o<=1?o:2-o;let l=(a+n)/2,c=a===0?2*s/(o+s):2*n/(a+n);return[t,c*100,l*100]};d.hsv.rgb=function(r){let t=r[0]/60,n=r[1]/100,a=r[2]/100,s=Math.floor(t)%6,o=t-Math.floor(t),l=255*a*(1-n),c=255*a*(1-n*o),h=255*a*(1-n*(1-o));switch(a*=255,s){case 0:return[a,h,l];case 1:return[c,a,l];case 2:return[l,a,h];case 3:return[l,c,a];case 4:return[h,l,a];case 5:return[a,l,c]}};d.hsv.hsl=function(r){let t=r[0],n=r[1]/100,a=r[2]/100,s=Math.max(a,0.01),o,l;l=(2-n)*a;let c=(2-n)*s;return o=n*s,o/=c<=1?c:2-c,o=o||0,l/=2,[t,o*100,l*100]};d.hwb.rgb=function(r){let t=r[0]/360,n=r[1]/100,a=r[2]/100,s=n+a,o;if(s>1)n/=s,a/=s;let l=Math.floor(6*t),c=1-a;if(o=6*t-l,(l&1)!==0)o=1-o;let h=n+o*(c-n),f,p,w;switch(l){default:case 6:case 0:{f=c,p=h,w=n;break}case 1:{f=h,p=c,w=n;break}case 2:{f=n,p=c,w=h;break}case 3:{f=n,p=h,w=c;break}case 4:{f=h,p=n,w=c;break}case 5:{f=c,p=n,w=h;break}}return[f*255,p*255,w*255]};d.cmyk.rgb=function(r){let t=r[0]/100,n=r[1]/100,a=r[2]/100,s=r[3]/100,o=1-Math.min(1,t*(1-s)+s),l=1-Math.min(1,n*(1-s)+s),c=1-Math.min(1,a*(1-s)+s);return[o*255,l*255,c*255]};d.xyz.rgb=function(r){let t=r[0]/100,n=r[1]/100,a=r[2]/100,s,o,l;return s=t*3.2404542+n*-1.5371385+a*-0.4985314,o=t*-0.969266+n*1.8760108+a*0.041556,l=t*0.0556434+n*-0.2040259+a*1.0572252,s=fe(s),o=fe(o),l=fe(l),[s*255,o*255,l*255]};d.xyz.lab=function(r){let t=r[0],n=r[1],a=r[2];t/=95.047,n/=100,a/=108.883,t=t>Q?t**0.3333333333333333:7.787*t+0.13793103448275862,n=n>Q?n**0.3333333333333333:7.787*n+0.13793103448275862,a=a>Q?a**0.3333333333333333:7.787*a+0.13793103448275862;let s=116*n-16,o=500*(t-n),l=200*(n-a);return[s,o,l]};d.xyz.oklab=function(r){let t=r[0]/100,n=r[1]/100,a=r[2]/100,s=Math.cbrt(0.8189330101*t+0.3618667424*n-0.1288597137*a),o=Math.cbrt(0.0329845436*t+0.9293118715*n+0.0361456387*a),l=Math.cbrt(0.0482003018*t+0.2643662691*n+0.633851707*a),c=0.2104542553*s+0.793617785*o-0.0040720468*l,h=1.9779984951*s-2.428592205*o+0.4505937099*l,f=0.0259040371*s+0.7827717662*o-0.808675766*l;return[c*100,h*100,f*100]};d.oklab.oklch=function(r){return d.lab.lch(r)};d.oklab.xyz=function(r){let t=r[0]/100,n=r[1]/100,a=r[2]/100,s=(0.999999998*t+0.396337792*n+0.215803758*a)**3,o=(1.000000008*t-0.105561342*n-0.063854175*a)**3,l=(1.000000055*t-0.089484182*n-1.291485538*a)**3,c=1.227013851*s-0.55779998*o+0.281256149*l,h=-0.040580178*s+1.11225687*o-0.071676679*l,f=-0.076381285*s-0.421481978*o+1.58616322*l;return[c*100,h*100,f*100]};d.oklab.rgb=function(r){let t=r[0]/100,n=r[1]/100,a=r[2]/100,s=(t+0.3963377774*n+0.2158037573*a)**3,o=(t-0.1055613458*n-0.0638541728*a)**3,l=(t-0.0894841775*n-1.291485548*a)**3,c=fe(4.0767416621*s-3.3077115913*o+0.2309699292*l),h=fe(-1.2684380046*s+2.6097574011*o-0.3413193965*l),f=fe(-0.0041960863*s-0.7034186147*o+1.707614701*l);return[c*255,h*255,f*255]};d.oklch.oklab=function(r){return d.lch.lab(r)};d.lab.xyz=function(r){let t=r[0],n=r[1],a=r[2],s,o,l;o=(t+16)/116,s=n/500+o,l=o-a/200;let c=o**3,h=s**3,f=l**3;return o=c>Q?c:(o-0.13793103448275862)/7.787,s=h>Q?h:(s-0.13793103448275862)/7.787,l=f>Q?f:(l-0.13793103448275862)/7.787,s*=95.047,o*=100,l*=108.883,[s,o,l]};d.lab.lch=function(r){let t=r[0],n=r[1],a=r[2],s;if(s=Math.atan2(a,n)*360/2/Math.PI,s<0)s+=360;let l=Math.sqrt(n*n+a*a);return[t,l,s]};d.lch.lab=function(r){let t=r[0],n=r[1],s=r[2]/360*2*Math.PI,o=n*Math.cos(s),l=n*Math.sin(s);return[t,o,l]};d.rgb.ansi16=function(r,t=null){let[n,a,s]=r,o=t===null?d.rgb.hsv(r)[2]:t;if(o=Math.round(o/50),o===0)return 30;let l=30+(Math.round(s/255)<<2|Math.round(a/255)<<1|Math.round(n/255));if(o===2)l+=60;return l};d.hsv.ansi16=function(r){return d.rgb.ansi16(d.hsv.rgb(r),r[2])};d.rgb.ansi256=function(r){let t=r[0],n=r[1],a=r[2];if(t>>4===n>>4&&n>>4===a>>4){if(t<8)return 16;if(t>248)return 231;return Math.round((t-8)/247*24)+232}return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(a/255*5)};d.ansi16.rgb=function(r){r=r[0];let t=r%10;if(t===0||t===7){if(r>50)t+=3.5;return t=t/10.5*255,[t,t,t]}let n=(Math.trunc(r>50)+1)*0.5,a=(t&1)*n*255,s=(t>>1&1)*n*255,o=(t>>2&1)*n*255;return[a,s,o]};d.ansi256.rgb=function(r){if(r=r[0],r>=232){let o=(r-232)*10+8;return[o,o,o]}r-=16;let t,n=Math.floor(r/36)/5*255,a=Math.floor((t=r%36)/6)/5*255,s=t%6/5*255;return[n,a,s]};d.rgb.hex=function(r){let n=(((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n};d.hex.rgb=function(r){let t=r.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];if(t[0].length===3)n=[...n].map((c)=>c+c).join("");let a=Number.parseInt(n,16),s=a>>16&255,o=a>>8&255,l=a&255;return[s,o,l]};d.rgb.hcg=function(r){let t=r[0]/255,n=r[1]/255,a=r[2]/255,s=Math.max(Math.max(t,n),a),o=Math.min(Math.min(t,n),a),l=s-o,c,h=l<1?o/(1-l):0;if(l<=0)c=0;else if(s===t)c=(n-a)/l%6;else if(s===n)c=2+(a-t)/l;else c=4+(t-n)/l;return c/=6,c%=1,[c*360,l*100,h*100]};d.hsl.hcg=function(r){let t=r[1]/100,n=r[2]/100,a=n<0.5?2*t*n:2*t*(1-n),s=0;if(a<1)s=(n-0.5*a)/(1-a);return[r[0],a*100,s*100]};d.hsv.hcg=function(r){let t=r[1]/100,n=r[2]/100,a=t*n,s=0;if(a<1)s=(n-a)/(1-a);return[r[0],a*100,s*100]};d.hcg.rgb=function(r){let t=r[0]/360,n=r[1]/100,a=r[2]/100;if(n===0)return[a*255,a*255,a*255];let s=[0,0,0],o=t%1*6,l=o%1,c=1-l,h=0;switch(Math.floor(o)){case 0:{s[0]=1,s[1]=l,s[2]=0;break}case 1:{s[0]=c,s[1]=1,s[2]=0;break}case 2:{s[0]=0,s[1]=1,s[2]=l;break}case 3:{s[0]=0,s[1]=c,s[2]=1;break}case 4:{s[0]=l,s[1]=0,s[2]=1;break}default:s[0]=1,s[1]=0,s[2]=c}return h=(1-n)*a,[(n*s[0]+h)*255,(n*s[1]+h)*255,(n*s[2]+h)*255]};d.hcg.hsv=function(r){let t=r[1]/100,n=r[2]/100,a=t+n*(1-t),s=0;if(a>0)s=t/a;return[r[0],s*100,a*100]};d.hcg.hsl=function(r){let t=r[1]/100,a=r[2]/100*(1-t)+0.5*t,s=0;if(a>0&&a<0.5)s=t/(2*a);else if(a>=0.5&&a<1)s=t/(2*(1-a));return[r[0],s*100,a*100]};d.hcg.hwb=function(r){let t=r[1]/100,n=r[2]/100,a=t+n*(1-t);return[r[0],(a-t)*100,(1-a)*100]};d.hwb.hcg=function(r){let t=r[1]/100,a=1-r[2]/100,s=a-t,o=0;if(s<1)o=(a-s)/(1-s);return[r[0],s*100,o*100]};d.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};d.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};d.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};d.gray.hsl=function(r){return[0,0,r[0]]};d.gray.hsv=d.gray.hsl;d.gray.hwb=function(r){return[0,100,r[0]]};d.gray.cmyk=function(r){return[0,0,0,r[0]]};d.gray.lab=function(r){return[r[0],0,0]};d.gray.hex=function(r){let t=Math.round(r[0]/100*255)&255,a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(a.length)+a};d.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]};function yc(){let r={},t=Object.keys(ie);for(let{length:n}=t,a=0;a<n;a++)r[t[a]]={distance:-1,parent:null};return r}function xc(r){let t=yc(),n=[r];t[r].distance=0;while(n.length>0){let a=n.pop(),s=Object.keys(ie[a]);for(let{length:o}=s,l=0;l<o;l++){let c=s[l],h=t[c];if(h.distance===-1)h.distance=t[a].distance+1,h.parent=a,n.unshift(c)}}return t}function Pc(r,t){return function(n){return t(r(n))}}function Rc(r,t){let n=[t[r].parent,r],a=ie[t[r].parent][r],s=t[r].parent;while(t[s].parent)n.unshift(t[s].parent),a=Pc(ie[t[s].parent][s],a),s=t[s].parent;return a.conversion=n,a}function Ic(r){let t=xc(r),n={},a=Object.keys(t);for(let{length:s}=a,o=0;o<s;o++){let l=a[o];if(t[l].parent===null)continue;n[l]=Rc(l,t)}return n}var jc=Ic,he={},Ac=Object.keys(ie);function kc(r){let t=function(...n){let a=n[0];if(a===void 0||a===null)return a;if(a.length>1)n=a;return r(n)};if("conversion"in r)t.conversion=r.conversion;return t}function Sc(r){let t=function(...n){let a=n[0];if(a===void 0||a===null)return a;if(a.length>1)n=a;let s=r(n);if(typeof s==="object")for(let{length:o}=s,l=0;l<o;l++)s[l]=Math.round(s[l]);return s};if("conversion"in r)t.conversion=r.conversion;return t}for(let r of Ac){he[r]={},Object.defineProperty(he[r],"channels",{value:ie[r].channels}),Object.defineProperty(he[r],"labels",{value:ie[r].labels});let t=jc(r),n=Object.keys(t);for(let a of n){let s=t[a];he[r][a]=Sc(s),he[r][a].raw=kc(s)}}var T=he,ln=["keyword","gray","hex"],br={};for(let r of Object.keys(T))br[[...T[r].labels].sort().join("")]=r;var wr={};function S(r,t){if(!(this instanceof S))return new S(r,t);if(t&&t in ln)t=null;if(t&&!(t in T))throw Error("Unknown model: "+t);let n,a;if(r==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(r instanceof S)this.model=r.model,this.color=[...r.color],this.valpha=r.valpha;else if(typeof r==="string"){let s=ce.get(r);if(s===null)throw Error("Unable to parse color from string: "+r);this.model=s.model,a=T[this.model].channels,this.color=s.value.slice(0,a),this.valpha=typeof s.value[a]==="number"?s.value[a]:1}else if(r.length>0){this.model=t||"rgb",a=T[this.model].channels;let s=Array.prototype.slice.call(r,0,a);this.color=vr(s,a),this.valpha=typeof r[a]==="number"?r[a]:1}else if(typeof r==="number")this.model="rgb",this.color=[r>>16&255,r>>8&255,r&255],this.valpha=1;else{this.valpha=1;let s=Object.keys(r);if("alpha"in r)s.splice(s.indexOf("alpha"),1),this.valpha=typeof r.alpha==="number"?r.alpha:0;let o=s.sort().join("");if(!(o in br))throw Error("Unable to parse color from object: "+JSON.stringify(r));this.model=br[o];let{labels:l}=T[this.model],c=[];for(n=0;n<l.length;n++)c.push(r[l[n]]);this.color=vr(c)}if(wr[this.model]){a=T[this.model].channels;for(n=0;n<a;n++){let s=wr[this.model][n];if(s)this.color[n]=s(this.color[n])}}if(this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze)Object.freeze(this)}S.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(r){let t=this.model in ce.to?this:this.rgb();t=t.round(typeof r==="number"?r:1);let n=t.valpha===1?t.color:[...t.color,this.valpha];return ce.to[t.model](...n)},percentString(r){let t=this.rgb().round(typeof r==="number"?r:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return ce.to.rgb.percent(...n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let r={},{channels:t}=T[this.model],{labels:n}=T[this.model];for(let a=0;a<t;a++)r[n[a]]=this.color[a];if(this.valpha!==1)r.alpha=this.valpha;return r},unitArray(){let r=this.rgb().color;if(r[0]/=255,r[1]/=255,r[2]/=255,this.valpha!==1)r.push(this.valpha);return r},unitObject(){let r=this.rgb().object();if(r.r/=255,r.g/=255,r.b/=255,this.valpha!==1)r.alpha=this.valpha;return r},round(r){return r=Math.max(r||0,0),new S([...this.color.map($c(r)),this.valpha],this.model)},alpha(r){if(r!==void 0)return new S([...this.color,Math.max(0,Math.min(1,r))],this.model);return this.valpha},red:R("rgb",0,k(255)),green:R("rgb",1,k(255)),blue:R("rgb",2,k(255)),hue:R(["hsl","hsv","hsl","hwb","hcg"],0,(r)=>(r%360+360)%360),saturationl:R("hsl",1,k(100)),lightness:R("hsl",2,k(100)),saturationv:R("hsv",1,k(100)),value:R("hsv",2,k(100)),chroma:R("hcg",1,k(100)),gray:R("hcg",2,k(100)),white:R("hwb",1,k(100)),wblack:R("hwb",2,k(100)),cyan:R("cmyk",0,k(100)),magenta:R("cmyk",1,k(100)),yellow:R("cmyk",2,k(100)),black:R("cmyk",3,k(100)),x:R("xyz",0,k(95.047)),y:R("xyz",1,k(100)),z:R("xyz",2,k(108.833)),l:R("lab",0,k(100)),a:R("lab",1),b:R("lab",2),keyword(r){if(r!==void 0)return new S(r);return T[this.model].keyword(this.color)},hex(r){if(r!==void 0)return new S(r);return ce.to.hex(...this.rgb().round().color)},hexa(r){if(r!==void 0)return new S(r);let t=this.rgb().round().color,n=Math.round(this.valpha*255).toString(16).toUpperCase();if(n.length===1)n="0"+n;return ce.to.hex(...t)+n},rgbNumber(){let r=this.rgb().color;return(r[0]&255)<<16|(r[1]&255)<<8|r[2]&255},luminosity(){let r=this.rgb().color,t=[];for(let[n,a]of r.entries()){let s=a/255;t[n]=s<=0.04045?s/12.92:((s+0.055)/1.055)**2.4}return 0.2126*t[0]+0.7152*t[1]+0.0722*t[2]},contrast(r){let t=this.luminosity(),n=r.luminosity();if(t>n)return(t+0.05)/(n+0.05);return(n+0.05)/(t+0.05)},level(r){let t=this.contrast(r);if(t>=7)return"AAA";return t>=4.5?"AA":""},isDark(){let r=this.rgb().color;return(r[0]*2126+r[1]*7152+r[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let r=this.rgb();for(let t=0;t<3;t++)r.color[t]=255-r.color[t];return r},lighten(r){let t=this.hsl();return t.color[2]+=t.color[2]*r,t},darken(r){let t=this.hsl();return t.color[2]-=t.color[2]*r,t},saturate(r){let t=this.hsl();return t.color[1]+=t.color[1]*r,t},desaturate(r){let t=this.hsl();return t.color[1]-=t.color[1]*r,t},whiten(r){let t=this.hwb();return t.color[1]+=t.color[1]*r,t},blacken(r){let t=this.hwb();return t.color[2]+=t.color[2]*r,t},grayscale(){let r=this.rgb().color,t=r[0]*0.3+r[1]*0.59+r[2]*0.11;return S.rgb(t,t,t)},fade(r){return this.alpha(this.valpha-this.valpha*r)},opaquer(r){return this.alpha(this.valpha+this.valpha*r)},rotate(r){let t=this.hsl(),n=t.color[0];return n=(n+r)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(r,t){if(!r||!r.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof r);let n=r.rgb(),a=this.rgb(),s=t===void 0?0.5:t,o=2*s-1,l=n.alpha()-a.alpha(),c=((o*l===-1?o:(o+l)/(1+o*l))+1)/2,h=1-c;return S.rgb(c*n.red()+h*a.red(),c*n.green()+h*a.green(),c*n.blue()+h*a.blue(),n.alpha()*s+a.alpha()*(1-s))}};for(let r of Object.keys(T)){if(ln.includes(r))continue;let{channels:t}=T[r];S.prototype[r]=function(...n){if(this.model===r)return new S(this);if(n.length>0)return new S(n,r);return new S([...Nc(T[this.model][r].raw(this.color)),this.valpha],r)},S[r]=function(...n){let a=n[0];if(typeof a==="number")a=vr(n,t);return new S(a,r)}}function Lc(r,t){return Number(r.toFixed(t))}function $c(r){return function(t){return Lc(t,r)}}function R(r,t,n){r=Array.isArray(r)?r:[r];for(let a of r)(wr[a]||=[])[t]=n;return r=r[0],function(a){let s;if(a!==void 0){if(n)a=n(a);return s=this[r](),s.color[t]=a,s}if(s=this[r]().color[t],n)s=n(s);return s}}function k(r){return function(t){return Math.max(0,Math.min(r,t))}}function Nc(r){return Array.isArray(r)?r:[r]}function vr(r,t){for(let n=0;n<t;n++)if(typeof r[n]!=="number")r[n]=0;return r}var _c=S});var un=e(function(au,fn){fn.exports=hn().default});import Il from"node:util";import ur from"node:stream";/*!
3
3
  Copyright 2013 Lovell Fuller and others.
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
  */var Ir=(r)=>typeof r<"u"&&r!==null,jn=(r)=>typeof r==="object",An=(r)=>Object.prototype.toString.call(r)==="[object Object]",kn=(r)=>typeof r==="function",Sn=(r)=>typeof r==="boolean",Ln=(r)=>r instanceof Buffer,$n=(r)=>{if(Ir(r))switch(r.constructor){case Uint8Array:case Uint8ClampedArray:case Int8Array:case Uint16Array:case Int16Array:case Uint32Array:case Int32Array:case Float32Array:case Float64Array:return!0}return!1},Nn=(r)=>r instanceof ArrayBuffer,_n=(r)=>typeof r==="string"&&r.length>0,qn=(r)=>typeof r==="number"&&Number.isFinite(r),Tn=(r)=>Number.isInteger(r),Cn=(r,t,n)=>r>=t&&r<=n,Mn=(r,t)=>t.includes(r),Bn=(r,t,n)=>Error(`Expected ${t} for ${r} but received ${n} of type ${typeof n}`),Fn=(r,t)=>(t.message=r.message,t),i={defined:Ir,object:jn,plainObject:An,fn:kn,bool:Sn,buffer:Ln,typedArray:$n,arrayBuffer:Nn,string:_n,number:qn,integer:Tn,inRange:Cn,inArray:Mn,invalidParameterError:Bn,nativeError:Fn};var Ue=u(je(),1);import{createRequire as yl}from"node:module";var ye=u(Fi(),1),hr=u(je(),1);import{spawnSync as Ee}from"node:child_process";import{createHash as sl}from"node:crypto";var V={name:"sharp",description:"High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images",version:"0.35.4",author:"Lovell Fuller <npm@lovell.info>",homepage:"https://sharp.pixelplumbing.com",contributors:["Pierre Inglebert <pierre.inglebert@gmail.com>","Jonathan Ong <jonathanrichardong@gmail.com>","Chanon Sajjamanochai <chanon.s@gmail.com>","Juliano Julio <julianojulio@gmail.com>","Daniel Gasienica <daniel@gasienica.ch>","Julian Walker <julian@fiftythree.com>","Amit Pitaru <pitaru.amit@gmail.com>","Brandon Aaron <hello.brandon@aaron.sh>","Andreas Lind <andreas@one.com>","Maurus Cuelenaere <mcuelenaere@gmail.com>","Linus Unnebäck <linus@folkdatorn.se>","Victor Mateevitsi <mvictoras@gmail.com>","Alaric Holloway <alaric.holloway@gmail.com>","Bernhard K. Weisshuhn <bkw@codingforce.com>","Chris Riley <criley@primedia.com>","David Carley <dacarley@gmail.com>","John Tobin <john@limelightmobileinc.com>","Kenton Gray <kentongray@gmail.com>","Felix Bünemann <Felix.Buenemann@gmail.com>","Samy Al Zahrani <samyalzahrany@gmail.com>","Chintan Thakkar <lemnisk8@gmail.com>","F. Orlando Galashan <frulo@gmx.de>","Kleis Auke Wolthuizen <info@kleisauke.nl>","Matt Hirsch <mhirsch@media.mit.edu>","Matthias Thoemmes <thoemmes@gmail.com>","Patrick Paskaris <patrick@paskaris.gr>","Jérémy Lal <kapouer@melix.org>","Rahul Nanwani <r.nanwani@gmail.com>","Alice Monday <alice0meta@gmail.com>","Kristo Jorgenson <kristo.jorgenson@gmail.com>","YvesBos <yves_bos@outlook.com>","Guy Maliar <guy@tailorbrands.com>","Nicolas Coden <nicolas@ncoden.fr>","Matt Parrish <matt.r.parrish@gmail.com>","Marcel Bretschneider <marcel.bretschneider@gmail.com>","Matthew McEachen <matthew+github@mceachen.org>","Jarda Kotěšovec <jarda.kotesovec@gmail.com>","Kenric D'Souza <kenric.dsouza@gmail.com>","Oleh Aleinyk <oleg.aleynik@gmail.com>","Marcel Bretschneider <marcel.bretschneider@gmail.com>","Andrea Bianco <andrea.bianco@unibas.ch>","Rik Heywood <rik@rik.org>","Thomas Parisot <hi@oncletom.io>","Nathan Graves <nathanrgraves+github@gmail.com>","Tom Lokhorst <tom@lokhorst.eu>","Espen Hovlandsdal <espen@hovlandsdal.com>","Sylvain Dumont <sylvain.dumont35@gmail.com>","Alun Davies <alun.owain.davies@googlemail.com>","Aidan Hoolachan <ajhoolachan21@gmail.com>","Axel Eirola <axel.eirola@iki.fi>","Freezy <freezy@xbmc.org>","Daiz <taneli.vatanen@gmail.com>","Julian Aubourg <j@ubourg.net>","Keith Belovay <keith@picthrive.com>","Michael B. Klein <mbklein@gmail.com>","Jordan Prudhomme <jordan@raboland.fr>","Ilya Ovdin <iovdin@gmail.com>","Andargor <andargor@yahoo.com>","Paul Neave <paul.neave@gmail.com>","Brendan Kennedy <brenwken@gmail.com>","Brychan Bennett-Odlum <git@brychan.io>","Edward Silverton <e.silverton@gmail.com>","Roman Malieiev <aromaleev@gmail.com>","Tomas Szabo <tomas.szabo@deftomat.com>","Robert O'Rourke <robert@o-rourke.org>","Guillermo Alfonso Varela Chouciño <guillevch@gmail.com>","Christian Flintrup <chr@gigahost.dk>","Manan Jadhav <manan@motionden.com>","Leon Radley <leon@radley.se>","alza54 <alza54@thiocod.in>","Jacob Smith <jacob@frende.me>","Michael Nutt <michael@nutt.im>","Brad Parham <baparham@gmail.com>","Taneli Vatanen <taneli.vatanen@gmail.com>","Joris Dugué <zaruike10@gmail.com>","Chris Banks <christopher.bradley.banks@gmail.com>","Ompal Singh <ompal.hitm09@gmail.com>","Brodan <christopher.hranj@gmail.com>","Ankur Parihar <ankur.github@gmail.com>","Brahim Ait elhaj <brahima@gmail.com>","Mart Jansink <m.jansink@gmail.com>","Lachlan Newman <lachnewman007@gmail.com>","Dennis Beatty <dennis@dcbeatty.com>","Ingvar Stepanyan <me@rreverser.com>","Don Denton <don@happycollision.com>","Dmytro Tiapukhin <cool.gegeg@gmail.com>","Florian Lefebvre <contact@florian-lefebvre.dev>"],scripts:{build:"node install/build.js","build:dist":"node scripts/build.mjs",clean:"rm -rf src/build/ test/fixtures/output.*",test:"npm run lint && npm run test-unit",lint:"npm run lint-cpp && npm run lint-js && npm run lint-types && npm run lint-publish","lint-cpp":"cpplint --quiet src/*.h src/*.cc","lint-js":"biome lint","lint-publish":"publint --strict","lint-types":"tsd --files ./test/types/sharp.test-d.{cts,mts}","test-leak":"./test/leak/leak.sh","test-unit":"node --experimental-test-coverage test/unit.mjs","package-from-local-build":"node npm/from-local-build.js","package-wasm-wrappers":"node npm/wasm-wrappers.js","package-release-notes":"node npm/release-notes.js","docs-build":"node docs/build.mjs","docs-serve":"cd docs && npm start","docs-publish":"cd docs && npm run build && npx firebase-tools deploy --project pixelplumbing --only hosting:pixelplumbing-sharp"},type:"commonjs",files:["dist","install","lib/index.d.ts","src/*.{cc,h,gyp}"],main:"./dist/index.cjs",module:"./dist/index.mjs",types:"./dist/index.d.mts",exports:{".":{import:{types:"./dist/index.d.mts",default:"./dist/index.mjs"},require:{types:"./dist/index.d.cts",default:"./dist/index.cjs"}}},sideEffects:!0,repository:{type:"git",url:"git+https://github.com/lovell/sharp.git"},keywords:["jpeg","png","webp","avif","tiff","gif","svg","jp2","dzi","image","resize","thumbnail","crop","embed","libvips","vips"],dependencies:{"@img/colour":"^1.1.0","detect-libc":"^2.1.2",semver:"^7.8.5"},optionalDependencies:{"@img/sharp-darwin-arm64":"0.35.4","@img/sharp-darwin-x64":"0.35.4","@img/sharp-freebsd-wasm32":"0.35.4","@img/sharp-libvips-darwin-arm64":"1.3.3","@img/sharp-libvips-darwin-x64":"1.3.3","@img/sharp-libvips-linux-arm":"1.3.3","@img/sharp-libvips-linux-arm64":"1.3.3","@img/sharp-libvips-linux-ppc64":"1.3.3","@img/sharp-libvips-linux-riscv64":"1.3.3","@img/sharp-libvips-linux-s390x":"1.3.3","@img/sharp-libvips-linux-x64":"1.3.3","@img/sharp-libvips-linuxmusl-arm64":"1.3.3","@img/sharp-libvips-linuxmusl-x64":"1.3.3","@img/sharp-linux-arm":"0.35.4","@img/sharp-linux-arm64":"0.35.4","@img/sharp-linux-ppc64":"0.35.4","@img/sharp-linux-riscv64":"0.35.4","@img/sharp-linux-s390x":"0.35.4","@img/sharp-linux-x64":"0.35.4","@img/sharp-linuxmusl-arm64":"0.35.4","@img/sharp-linuxmusl-x64":"0.35.4","@img/sharp-webcontainers-wasm32":"0.35.4","@img/sharp-win32-arm64":"0.35.4","@img/sharp-win32-ia32":"0.35.4","@img/sharp-win32-x64":"0.35.4"},peerDependenciesMeta:{"@types/node":{optional:!0}},devDependencies:{"@biomejs/biome":"^2.5.10","@cpplint/cli":"^0.1.0","@emnapi/runtime":"^1.11.3","@img/sharp-libvips-dev":"1.3.3","@img/sharp-libvips-dev-wasm32":"1.3.3","@img/sharp-libvips-win32-arm64":"1.3.3","@img/sharp-libvips-win32-ia32":"1.3.3","@img/sharp-libvips-win32-x64":"1.3.3","@types/node":"*",emnapi:"^1.11.3","exif-reader":"^2.0.3",yauzl:"^3.4.0",icc:"^4.0.0","node-addon-api":"^8.9.2","node-gyp":"^12.4.0",publint:"^0.3.24","tar-fs":"^3.1.3",tsd:"^0.33.0"},license:"Apache-2.0",engines:{node:">=20.9.0"},config:{libvips:">=8.18.6"},funding:{url:"https://opencollective.com/libvips"}};/*!
@@ -42,4 +42,4 @@ import{u,e,I}from"./index-kz01jz58.js";var kr=e(function(Bh,Ar){var jr=()=>proce
42
42
  */Qi(U);en(U);rn(U);nn(U);pn(U);bn(U);yn(U);Rn(U);var Nu=U;export{Nu as default};
43
43
 
44
44
  //# debugId=FA9942D2BD928E7164756E2164756E21
45
- //# sourceMappingURL=index-1cagdzqe.js.map
45
+ //# sourceMappingURL=index-w80shmpv.js.map