@gadgetinc/ggt 1.0.3 → 1.0.5

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 (220) hide show
  1. package/dist/add-4ME2KTJQ.js +84 -0
  2. package/dist/add-4ME2KTJQ.js.map +7 -0
  3. package/dist/build-4BGA4IZE.js +3 -0
  4. package/dist/build-4BGA4IZE.js.map +7 -0
  5. package/dist/chunk-57XALM2W.js +2 -0
  6. package/dist/chunk-57XALM2W.js.map +7 -0
  7. package/dist/chunk-5DLLJX5F.js +11 -0
  8. package/dist/chunk-5DLLJX5F.js.map +7 -0
  9. package/dist/chunk-5WC5D4WL.js +2 -0
  10. package/dist/chunk-5WC5D4WL.js.map +7 -0
  11. package/dist/chunk-BSCZOMV4.js +2 -0
  12. package/dist/chunk-BSCZOMV4.js.map +7 -0
  13. package/dist/chunk-BZY2AIPV.js +57 -0
  14. package/dist/chunk-BZY2AIPV.js.map +7 -0
  15. package/dist/chunk-D2K5XPNJ.js +2 -0
  16. package/dist/chunk-D2K5XPNJ.js.map +7 -0
  17. package/dist/chunk-F3EZ4KS3.js +2 -0
  18. package/dist/chunk-F3EZ4KS3.js.map +7 -0
  19. package/dist/chunk-G3VNV5Z6.js +33 -0
  20. package/dist/chunk-G3VNV5Z6.js.map +7 -0
  21. package/dist/chunk-GA7AL463.js +24 -0
  22. package/dist/chunk-GA7AL463.js.map +7 -0
  23. package/dist/chunk-GOBNB5VT.js +2 -0
  24. package/dist/chunk-GOBNB5VT.js.map +7 -0
  25. package/dist/chunk-HKBXEZNF.js +2 -0
  26. package/dist/chunk-HKBXEZNF.js.map +7 -0
  27. package/{lib/commands/push.js → dist/chunk-IKJVXTZK.js} +7 -48
  28. package/dist/chunk-IKJVXTZK.js.map +7 -0
  29. package/dist/chunk-KGSSHEEC.js +17 -0
  30. package/dist/chunk-KGSSHEEC.js.map +7 -0
  31. package/dist/chunk-KXK37C5D.js +183 -0
  32. package/dist/chunk-KXK37C5D.js.map +7 -0
  33. package/dist/chunk-NJIDVM2C.js +27 -0
  34. package/dist/chunk-NJIDVM2C.js.map +7 -0
  35. package/dist/chunk-Q5N5L6H3.js +6 -0
  36. package/dist/chunk-Q5N5L6H3.js.map +7 -0
  37. package/dist/chunk-QEVWPU3D.js +8 -0
  38. package/dist/chunk-QEVWPU3D.js.map +7 -0
  39. package/dist/chunk-X36GM74C.js +2 -0
  40. package/dist/chunk-X36GM74C.js.map +7 -0
  41. package/dist/chunk-YRP2UZ2I.js +126 -0
  42. package/dist/chunk-YRP2UZ2I.js.map +7 -0
  43. package/dist/deploy-6HOBYPE6.js +30 -0
  44. package/dist/deploy-6HOBYPE6.js.map +7 -0
  45. package/dist/dev-M3WDGK4D.js +57 -0
  46. package/dist/dev-M3WDGK4D.js.map +7 -0
  47. package/dist/esm-BL3OM5UJ.js +33 -0
  48. package/dist/esm-BL3OM5UJ.js.map +7 -0
  49. package/dist/list-725RHWD5.js +11 -0
  50. package/dist/list-725RHWD5.js.map +7 -0
  51. package/dist/login-I4RGMDLE.js +2 -0
  52. package/dist/login-I4RGMDLE.js.map +7 -0
  53. package/dist/logout-UZBACOIX.js +7 -0
  54. package/dist/logout-UZBACOIX.js.map +7 -0
  55. package/dist/main.js +45 -0
  56. package/dist/main.js.map +7 -0
  57. package/dist/open-GWKGQQG3.js +74 -0
  58. package/dist/open-GWKGQQG3.js.map +7 -0
  59. package/{lib/commands/pull.js → dist/pull-7C5A65KB.js} +7 -48
  60. package/dist/pull-7C5A65KB.js.map +7 -0
  61. package/dist/push-LPUIR4EO.js +2 -0
  62. package/dist/push-LPUIR4EO.js.map +7 -0
  63. package/dist/status-DFKKSRVB.js +14 -0
  64. package/dist/status-DFKKSRVB.js.map +7 -0
  65. package/dist/version-JD42JXWY.js +11 -0
  66. package/dist/version-JD42JXWY.js.map +7 -0
  67. package/dist/whoami-I23R6HOG.js +7 -0
  68. package/dist/whoami-I23R6HOG.js.map +7 -0
  69. package/package.json +73 -75
  70. package/lib/__generated__/graphql.js +0 -78
  71. package/lib/__generated__/graphql.js.map +0 -1
  72. package/lib/commands/add.js +0 -385
  73. package/lib/commands/add.js.map +0 -1
  74. package/lib/commands/deploy.js +0 -287
  75. package/lib/commands/deploy.js.map +0 -1
  76. package/lib/commands/dev.js +0 -374
  77. package/lib/commands/dev.js.map +0 -1
  78. package/lib/commands/list.js +0 -47
  79. package/lib/commands/list.js.map +0 -1
  80. package/lib/commands/login.js +0 -93
  81. package/lib/commands/login.js.map +0 -1
  82. package/lib/commands/logout.js +0 -20
  83. package/lib/commands/logout.js.map +0 -1
  84. package/lib/commands/open.js +0 -159
  85. package/lib/commands/open.js.map +0 -1
  86. package/lib/commands/pull.js.map +0 -1
  87. package/lib/commands/push.js.map +0 -1
  88. package/lib/commands/root.js +0 -110
  89. package/lib/commands/root.js.map +0 -1
  90. package/lib/commands/status.js +0 -56
  91. package/lib/commands/status.js.map +0 -1
  92. package/lib/commands/version.js +0 -18
  93. package/lib/commands/version.js.map +0 -1
  94. package/lib/commands/whoami.js +0 -23
  95. package/lib/commands/whoami.js.map +0 -1
  96. package/lib/ggt.js +0 -65
  97. package/lib/ggt.js.map +0 -1
  98. package/lib/main.js +0 -5
  99. package/lib/main.js.map +0 -1
  100. package/lib/services/app/api/api.js +0 -191
  101. package/lib/services/app/api/api.js.map +0 -1
  102. package/lib/services/app/api/operation.js +0 -23
  103. package/lib/services/app/api/operation.js.map +0 -1
  104. package/lib/services/app/app.js +0 -95
  105. package/lib/services/app/app.js.map +0 -1
  106. package/lib/services/app/arg.js +0 -28
  107. package/lib/services/app/arg.js.map +0 -1
  108. package/lib/services/app/client.js +0 -182
  109. package/lib/services/app/client.js.map +0 -1
  110. package/lib/services/app/edit/edit.js +0 -191
  111. package/lib/services/app/edit/edit.js.map +0 -1
  112. package/lib/services/app/edit/operation.js +0 -155
  113. package/lib/services/app/edit/operation.js.map +0 -1
  114. package/lib/services/app/error.js +0 -65
  115. package/lib/services/app/error.js.map +0 -1
  116. package/lib/services/command/arg.js +0 -55
  117. package/lib/services/command/arg.js.map +0 -1
  118. package/lib/services/command/command.js +0 -47
  119. package/lib/services/command/command.js.map +0 -1
  120. package/lib/services/command/context.js +0 -209
  121. package/lib/services/command/context.js.map +0 -1
  122. package/lib/services/config/config.js +0 -133
  123. package/lib/services/config/config.js.map +0 -1
  124. package/lib/services/config/env.js +0 -22
  125. package/lib/services/config/env.js.map +0 -1
  126. package/lib/services/config/package-json.js +0 -9
  127. package/lib/services/config/package-json.js.map +0 -1
  128. package/lib/services/filesync/changes.js +0 -134
  129. package/lib/services/filesync/changes.js.map +0 -1
  130. package/lib/services/filesync/conflicts.js +0 -140
  131. package/lib/services/filesync/conflicts.js.map +0 -1
  132. package/lib/services/filesync/directory.js +0 -269
  133. package/lib/services/filesync/directory.js.map +0 -1
  134. package/lib/services/filesync/error.js +0 -137
  135. package/lib/services/filesync/error.js.map +0 -1
  136. package/lib/services/filesync/file.js +0 -3
  137. package/lib/services/filesync/file.js.map +0 -1
  138. package/lib/services/filesync/filesync.js +0 -791
  139. package/lib/services/filesync/filesync.js.map +0 -1
  140. package/lib/services/filesync/hashes.js +0 -172
  141. package/lib/services/filesync/hashes.js.map +0 -1
  142. package/lib/services/filesync/strategy.js +0 -59
  143. package/lib/services/filesync/strategy.js.map +0 -1
  144. package/lib/services/filesync/sync-json.js +0 -475
  145. package/lib/services/filesync/sync-json.js.map +0 -1
  146. package/lib/services/http/auth.js +0 -70
  147. package/lib/services/http/auth.js.map +0 -1
  148. package/lib/services/http/http.js +0 -136
  149. package/lib/services/http/http.js.map +0 -1
  150. package/lib/services/output/confirm.js +0 -149
  151. package/lib/services/output/confirm.js.map +0 -1
  152. package/lib/services/output/footer.js +0 -22
  153. package/lib/services/output/footer.js.map +0 -1
  154. package/lib/services/output/log/field.js +0 -3
  155. package/lib/services/output/log/field.js.map +0 -1
  156. package/lib/services/output/log/format/format.js +0 -8
  157. package/lib/services/output/log/format/format.js.map +0 -1
  158. package/lib/services/output/log/format/json.js +0 -37
  159. package/lib/services/output/log/format/json.js.map +0 -1
  160. package/lib/services/output/log/format/pretty.js +0 -158
  161. package/lib/services/output/log/format/pretty.js.map +0 -1
  162. package/lib/services/output/log/level.js +0 -41
  163. package/lib/services/output/log/level.js.map +0 -1
  164. package/lib/services/output/log/logger.js +0 -53
  165. package/lib/services/output/log/logger.js.map +0 -1
  166. package/lib/services/output/log/structured.js +0 -52
  167. package/lib/services/output/log/structured.js.map +0 -1
  168. package/lib/services/output/notify.js +0 -27
  169. package/lib/services/output/notify.js.map +0 -1
  170. package/lib/services/output/output.js +0 -197
  171. package/lib/services/output/output.js.map +0 -1
  172. package/lib/services/output/print.js +0 -31
  173. package/lib/services/output/print.js.map +0 -1
  174. package/lib/services/output/problems.js +0 -84
  175. package/lib/services/output/problems.js.map +0 -1
  176. package/lib/services/output/prompt.js +0 -185
  177. package/lib/services/output/prompt.js.map +0 -1
  178. package/lib/services/output/report.js +0 -190
  179. package/lib/services/output/report.js.map +0 -1
  180. package/lib/services/output/select.js +0 -198
  181. package/lib/services/output/select.js.map +0 -1
  182. package/lib/services/output/spinner.js +0 -141
  183. package/lib/services/output/spinner.js.map +0 -1
  184. package/lib/services/output/sprint.js +0 -44
  185. package/lib/services/output/sprint.js.map +0 -1
  186. package/lib/services/output/symbols.js +0 -23
  187. package/lib/services/output/symbols.js.map +0 -1
  188. package/lib/services/output/table.js +0 -98
  189. package/lib/services/output/table.js.map +0 -1
  190. package/lib/services/output/timestamp.js +0 -12
  191. package/lib/services/output/timestamp.js.map +0 -1
  192. package/lib/services/output/update.js +0 -99
  193. package/lib/services/output/update.js.map +0 -1
  194. package/lib/services/user/session.js +0 -54
  195. package/lib/services/user/session.js.map +0 -1
  196. package/lib/services/user/user.js +0 -76
  197. package/lib/services/user/user.js.map +0 -1
  198. package/lib/services/util/assert.js +0 -11
  199. package/lib/services/util/assert.js.map +0 -1
  200. package/lib/services/util/boolean.js +0 -15
  201. package/lib/services/util/boolean.js.map +0 -1
  202. package/lib/services/util/collection.js +0 -38
  203. package/lib/services/util/collection.js.map +0 -1
  204. package/lib/services/util/function.js +0 -153
  205. package/lib/services/util/function.js.map +0 -1
  206. package/lib/services/util/is.js +0 -97
  207. package/lib/services/util/is.js.map +0 -1
  208. package/lib/services/util/json.js +0 -33
  209. package/lib/services/util/json.js.map +0 -1
  210. package/lib/services/util/number.js +0 -27
  211. package/lib/services/util/number.js.map +0 -1
  212. package/lib/services/util/object.js +0 -104
  213. package/lib/services/util/object.js.map +0 -1
  214. package/lib/services/util/paths.js +0 -36
  215. package/lib/services/util/paths.js.map +0 -1
  216. package/lib/services/util/promise.js +0 -74
  217. package/lib/services/util/promise.js.map +0 -1
  218. package/lib/services/util/types.js +0 -5
  219. package/lib/services/util/types.js.map +0 -1
  220. package/npm-shrinkwrap.json +0 -29512
@@ -0,0 +1,57 @@
1
+ import{h as Qa,i as ec}from"./chunk-GOBNB5VT.js";import{a as M,c as v,e as Je,g as a}from"./chunk-5WC5D4WL.js";var J=v(dn=>{"use strict";a();dn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{t.push((i,u)=>i!=null?n(i):r(u)),e.apply(this,t)})},"name",{value:e.name})};dn.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);t.pop(),e.apply(this,t).then(n=>r(null,n),r)},"name",{value:e.name})}});var Ki=v((d0,Ji)=>{a();var Ge=M("constants"),$D=process.cwd,Er=null,MD=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Er||(Er=$D.call(process)),Er};try{process.cwd()}catch{}typeof process.chdir=="function"&&(hn=process.chdir,process.chdir=function(e){Er=null,hn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,hn));var hn;Ji.exports=jD;function jD(e){Ge.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=u(e.chown),e.fchown=u(e.fchown),e.lchown=u(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(D,f,h){h&&process.nextTick(h)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(D,f,h,d){d&&process.nextTick(d)},e.lchownSync=function(){}),MD==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(D){function f(h,d,F){var p=Date.now(),C=0;D(h,d,function y(L){if(L&&(L.code==="EACCES"||L.code==="EPERM")&&Date.now()-p<6e4){setTimeout(function(){e.stat(d,function(I,W){I&&I.code==="ENOENT"?D(h,d,y):F(L)})},C),C<100&&(C+=10);return}F&&F(L)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,D),f}(e.rename)),e.read=typeof e.read!="function"?e.read:function(D){function f(h,d,F,p,C,y){var L;if(y&&typeof y=="function"){var I=0;L=function(W,se,Ne){if(W&&W.code==="EAGAIN"&&I<10)return I++,D.call(e,h,d,F,p,C,L);y.apply(this,arguments)}}return D.call(e,h,d,F,p,C,L)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,D),f}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(D){return function(f,h,d,F,p){for(var C=0;;)try{return D.call(e,f,h,d,F,p)}catch(y){if(y.code==="EAGAIN"&&C<10){C++;continue}throw y}}}(e.readSync);function t(D){D.lchmod=function(f,h,d){D.open(f,Ge.O_WRONLY|Ge.O_SYMLINK,h,function(F,p){if(F){d&&d(F);return}D.fchmod(p,h,function(C){D.close(p,function(y){d&&d(C||y)})})})},D.lchmodSync=function(f,h){var d=D.openSync(f,Ge.O_WRONLY|Ge.O_SYMLINK,h),F=!0,p;try{p=D.fchmodSync(d,h),F=!1}finally{if(F)try{D.closeSync(d)}catch{}else D.closeSync(d)}return p}}function r(D){Ge.hasOwnProperty("O_SYMLINK")&&D.futimes?(D.lutimes=function(f,h,d,F){D.open(f,Ge.O_SYMLINK,function(p,C){if(p){F&&F(p);return}D.futimes(C,h,d,function(y){D.close(C,function(L){F&&F(y||L)})})})},D.lutimesSync=function(f,h,d){var F=D.openSync(f,Ge.O_SYMLINK),p,C=!0;try{p=D.futimesSync(F,h,d),C=!1}finally{if(C)try{D.closeSync(F)}catch{}else D.closeSync(F)}return p}):D.futimes&&(D.lutimes=function(f,h,d,F){F&&process.nextTick(F)},D.lutimesSync=function(){})}function n(D){return D&&function(f,h,d){return D.call(e,f,h,function(F){l(F)&&(F=null),d&&d.apply(this,arguments)})}}function i(D){return D&&function(f,h){try{return D.call(e,f,h)}catch(d){if(!l(d))throw d}}}function u(D){return D&&function(f,h,d,F){return D.call(e,f,h,d,function(p){l(p)&&(p=null),F&&F.apply(this,arguments)})}}function s(D){return D&&function(f,h,d){try{return D.call(e,f,h,d)}catch(F){if(!l(F))throw F}}}function o(D){return D&&function(f,h,d){typeof h=="function"&&(d=h,h=null);function F(p,C){C&&(C.uid<0&&(C.uid+=4294967296),C.gid<0&&(C.gid+=4294967296)),d&&d.apply(this,arguments)}return h?D.call(e,f,h,F):D.call(e,f,F)}}function c(D){return D&&function(f,h){var d=h?D.call(e,f,h):D.call(e,f);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function l(D){if(!D||D.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(D.code==="EINVAL"||D.code==="EPERM"))}}});var eu=v((p0,Qi)=>{a();var Xi=M("stream").Stream;Qi.exports=GD;function GD(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Xi.call(this);var u=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var s=Object.keys(i),o=0,c=s.length;o<c;o++){var l=s[o];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){u._read()});return}e.open(this.path,this.flags,this.mode,function(D,f){if(D){u.emit("error",D),u.readable=!1;return}u.fd=f,u.emit("open",f),u._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Xi.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var u=Object.keys(i),s=0,o=u.length;s<o;s++){var c=u[s];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var ru=v((F0,tu)=>{"use strict";a();tu.exports=WD;var UD=Object.getPrototypeOf||function(e){return e.__proto__};function WD(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:UD(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var Tt=v((y0,Fn)=>{a();var Z=M("fs"),qD=Ki(),zD=eu(),ZD=ru(),vr=M("util"),re,br;typeof Symbol=="function"&&typeof Symbol.for=="function"?(re=Symbol.for("graceful-fs.queue"),br=Symbol.for("graceful-fs.previous")):(re="___graceful-fs.queue",br="___graceful-fs.previous");function VD(){}function uu(e,t){Object.defineProperty(e,re,{get:function(){return t}})}var dt=VD;vr.debuglog?dt=vr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(dt=function(){var e=vr.format.apply(vr,arguments);e="GFS4: "+e.split(/\n/).join(`
2
+ GFS4: `),console.error(e)});Z[re]||(nu=global[re]||[],uu(Z,nu),Z.close=function(e){function t(r,n){return e.call(Z,r,function(i){i||iu(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,br,{value:e}),t}(Z.close),Z.closeSync=function(e){function t(r){e.apply(Z,arguments),iu()}return Object.defineProperty(t,br,{value:e}),t}(Z.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){dt(Z[re]),M("assert").equal(Z[re].length,0)}));var nu;global[re]||uu(global,Z[re]);Fn.exports=pn(ZD(Z));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Z.__patched&&(Fn.exports=pn(Z),Z.__patched=!0);function pn(e){qD(e),e.gracefulify=pn,e.createReadStream=se,e.createWriteStream=Ne;var t=e.readFile;e.readFile=r;function r(A,T,P){return typeof T=="function"&&(P=T,T=null),Q(A,T,P);function Q(ee,H,q,V){return t(ee,H,function(R){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Lt([Q,[ee,H,q],R,V||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(A,T,P,Q){return typeof P=="function"&&(Q=P,P=null),ee(A,T,P,Q);function ee(H,q,V,R,te){return n(H,q,V,function($){$&&($.code==="EMFILE"||$.code==="ENFILE")?Lt([ee,[H,q,V,R],$,te||Date.now(),Date.now()]):typeof R=="function"&&R.apply(this,arguments)})}}var u=e.appendFile;u&&(e.appendFile=s);function s(A,T,P,Q){return typeof P=="function"&&(Q=P,P=null),ee(A,T,P,Q);function ee(H,q,V,R,te){return u(H,q,V,function($){$&&($.code==="EMFILE"||$.code==="ENFILE")?Lt([ee,[H,q,V,R],$,te||Date.now(),Date.now()]):typeof R=="function"&&R.apply(this,arguments)})}}var o=e.copyFile;o&&(e.copyFile=c);function c(A,T,P,Q){return typeof P=="function"&&(Q=P,P=0),ee(A,T,P,Q);function ee(H,q,V,R,te){return o(H,q,V,function($){$&&($.code==="EMFILE"||$.code==="ENFILE")?Lt([ee,[H,q,V,R],$,te||Date.now(),Date.now()]):typeof R=="function"&&R.apply(this,arguments)})}}var l=e.readdir;e.readdir=f;var D=/^v[0-5]\./;function f(A,T,P){typeof T=="function"&&(P=T,T=null);var Q=D.test(process.version)?function(q,V,R,te){return l(q,ee(q,V,R,te))}:function(q,V,R,te){return l(q,V,ee(q,V,R,te))};return Q(A,T,P);function ee(H,q,V,R){return function(te,$){te&&(te.code==="EMFILE"||te.code==="ENFILE")?Lt([Q,[H,q,V],te,R||Date.now(),Date.now()]):($&&$.sort&&$.sort(),typeof V=="function"&&V.call(this,te,$))}}}if(process.version.substr(0,4)==="v0.8"){var h=zD(e);y=h.ReadStream,I=h.WriteStream}var d=e.ReadStream;d&&(y.prototype=Object.create(d.prototype),y.prototype.open=L);var F=e.WriteStream;F&&(I.prototype=Object.create(F.prototype),I.prototype.open=W),Object.defineProperty(e,"ReadStream",{get:function(){return y},set:function(A){y=A},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return I},set:function(A){I=A},enumerable:!0,configurable:!0});var p=y;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(A){p=A},enumerable:!0,configurable:!0});var C=I;Object.defineProperty(e,"FileWriteStream",{get:function(){return C},set:function(A){C=A},enumerable:!0,configurable:!0});function y(A,T){return this instanceof y?(d.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function L(){var A=this;Ie(A.path,A.flags,A.mode,function(T,P){T?(A.autoClose&&A.destroy(),A.emit("error",T)):(A.fd=P,A.emit("open",P),A.read())})}function I(A,T){return this instanceof I?(F.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function W(){var A=this;Ie(A.path,A.flags,A.mode,function(T,P){T?(A.destroy(),A.emit("error",T)):(A.fd=P,A.emit("open",P))})}function se(A,T){return new e.ReadStream(A,T)}function Ne(A,T){return new e.WriteStream(A,T)}var be=e.open;e.open=Ie;function Ie(A,T,P,Q){return typeof P=="function"&&(Q=P,P=null),ee(A,T,P,Q);function ee(H,q,V,R,te){return be(H,q,V,function($,Gh){$&&($.code==="EMFILE"||$.code==="ENFILE")?Lt([ee,[H,q,V,R],$,te||Date.now(),Date.now()]):typeof R=="function"&&R.apply(this,arguments)})}}return e}function Lt(e){dt("ENQUEUE",e[0].name,e[1]),Z[re].push(e),mn()}var wr;function iu(){for(var e=Date.now(),t=0;t<Z[re].length;++t)Z[re][t].length>2&&(Z[re][t][3]=e,Z[re][t][4]=e);mn()}function mn(){if(clearTimeout(wr),wr=void 0,Z[re].length!==0){var e=Z[re].shift(),t=e[0],r=e[1],n=e[2],i=e[3],u=e[4];if(i===void 0)dt("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){dt("TIMEOUT",t.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var o=Date.now()-u,c=Math.max(u-i,1),l=Math.min(c*1.2,100);o>=l?(dt("RETRY",t.name,r),t.apply(null,r.concat([i]))):Z[re].push(e)}wr===void 0&&(wr=setTimeout(mn,0))}}});var ce=v(Oe=>{"use strict";a();var su=J().fromCallback,ae=Tt(),YD=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof ae[e]=="function");Object.assign(Oe,ae);YD.forEach(e=>{Oe[e]=su(ae[e])});Oe.exists=function(e,t){return typeof t=="function"?ae.exists(e,t):new Promise(r=>ae.exists(e,r))};Oe.read=function(e,t,r,n,i,u){return typeof u=="function"?ae.read(e,t,r,n,i,u):new Promise((s,o)=>{ae.read(e,t,r,n,i,(c,l,D)=>{if(c)return o(c);s({bytesRead:l,buffer:D})})})};Oe.write=function(e,t,...r){return typeof r[r.length-1]=="function"?ae.write(e,t,...r):new Promise((n,i)=>{ae.write(e,t,...r,(u,s,o)=>{if(u)return i(u);n({bytesWritten:s,buffer:o})})})};Oe.readv=function(e,t,...r){return typeof r[r.length-1]=="function"?ae.readv(e,t,...r):new Promise((n,i)=>{ae.readv(e,t,...r,(u,s,o)=>{if(u)return i(u);n({bytesRead:s,buffers:o})})})};Oe.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?ae.writev(e,t,...r):new Promise((n,i)=>{ae.writev(e,t,...r,(u,s,o)=>{if(u)return i(u);n({bytesWritten:s,buffers:o})})})};typeof ae.realpath.native=="function"?Oe.realpath.native=su(ae.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var au=v((w0,ou)=>{"use strict";a();var HD=M("path");ou.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(HD.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}}});var fu=v((x0,Cn)=>{"use strict";a();var cu=ce(),{checkPath:Du}=au(),lu=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};Cn.exports.makeDir=async(e,t)=>(Du(e),cu.mkdir(e,{mode:lu(t),recursive:!0}));Cn.exports.makeDirSync=(e,t)=>(Du(e),cu.mkdirSync(e,{mode:lu(t),recursive:!0}))});var Ee=v((S0,du)=>{"use strict";a();var JD=J().fromPromise,{makeDir:KD,makeDirSync:yn}=fu(),gn=JD(KD);du.exports={mkdirs:gn,mkdirsSync:yn,mkdirp:gn,mkdirpSync:yn,ensureDir:gn,ensureDirSync:yn}});var Ue=v((B0,pu)=>{"use strict";a();var XD=J().fromPromise,hu=ce();function QD(e){return hu.access(e).then(()=>!0).catch(()=>!1)}pu.exports={pathExists:XD(QD),pathExistsSync:hu.existsSync}});var En=v((T0,mu)=>{"use strict";a();var kt=ce(),el=J().fromPromise;async function tl(e,t,r){let n=await kt.open(e,"r+"),i=null;try{await kt.futimes(n,t,r)}finally{try{await kt.close(n)}catch(u){i=u}}if(i)throw i}function rl(e,t,r){let n=kt.openSync(e,"r+");return kt.futimesSync(n,t,r),kt.closeSync(n)}mu.exports={utimesMillis:el(tl),utimesMillisSync:rl}});var ht=v((O0,gu)=>{"use strict";a();var Ot=ce(),K=M("path"),Fu=J().fromPromise;function nl(e,t,r){let n=r.dereference?i=>Ot.stat(i,{bigint:!0}):i=>Ot.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,u])=>({srcStat:i,destStat:u}))}function il(e,t,r){let n,i=r.dereference?s=>Ot.statSync(s,{bigint:!0}):s=>Ot.lstatSync(s,{bigint:!0}),u=i(e);try{n=i(t)}catch(s){if(s.code==="ENOENT")return{srcStat:u,destStat:null};throw s}return{srcStat:u,destStat:n}}async function ul(e,t,r,n){let{srcStat:i,destStat:u}=await nl(e,t,n);if(u){if(Xt(i,u)){let s=K.basename(e),o=K.basename(t);if(r==="move"&&s!==o&&s.toLowerCase()===o.toLowerCase())return{srcStat:i,destStat:u,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!u.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&u.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&vn(e,t))throw new Error(xr(e,t,r));return{srcStat:i,destStat:u}}function sl(e,t,r,n){let{srcStat:i,destStat:u}=il(e,t,n);if(u){if(Xt(i,u)){let s=K.basename(e),o=K.basename(t);if(r==="move"&&s!==o&&s.toLowerCase()===o.toLowerCase())return{srcStat:i,destStat:u,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!u.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&u.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&vn(e,t))throw new Error(xr(e,t,r));return{srcStat:i,destStat:u}}async function Cu(e,t,r,n){let i=K.resolve(K.dirname(e)),u=K.resolve(K.dirname(r));if(u===i||u===K.parse(u).root)return;let s;try{s=await Ot.stat(u,{bigint:!0})}catch(o){if(o.code==="ENOENT")return;throw o}if(Xt(t,s))throw new Error(xr(e,r,n));return Cu(e,t,u,n)}function yu(e,t,r,n){let i=K.resolve(K.dirname(e)),u=K.resolve(K.dirname(r));if(u===i||u===K.parse(u).root)return;let s;try{s=Ot.statSync(u,{bigint:!0})}catch(o){if(o.code==="ENOENT")return;throw o}if(Xt(t,s))throw new Error(xr(e,r,n));return yu(e,t,u,n)}function Xt(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function vn(e,t){let r=K.resolve(e).split(K.sep).filter(i=>i),n=K.resolve(t).split(K.sep).filter(i=>i);return r.every((i,u)=>n[u]===i)}function xr(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}gu.exports={checkPaths:Fu(ul),checkPathsSync:sl,checkParentPaths:Fu(Cu),checkParentPathsSync:yu,isSrcSubdir:vn,areIdentical:Xt}});var xu=v((N0,bu)=>{"use strict";a();var ue=ce(),Qt=M("path"),{mkdirs:ol}=Ee(),{pathExists:al}=Ue(),{utimesMillis:cl}=En(),er=ht();async function Dl(e,t,r={}){typeof r=="function"&&(r={filter:r}),r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
3
+
4
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:n,destStat:i}=await er.checkPaths(e,t,"copy",r);if(await er.checkParentPaths(e,n,t,"copy"),!await vu(e,t,r))return;let s=Qt.dirname(t);await al(s)||await ol(s),await wu(i,e,t,r)}async function vu(e,t,r){return r.filter?r.filter(e,t):!0}async function wu(e,t,r,n){let u=await(n.dereference?ue.stat:ue.lstat)(t);if(u.isDirectory())return hl(u,e,t,r,n);if(u.isFile()||u.isCharacterDevice()||u.isBlockDevice())return ll(u,e,t,r,n);if(u.isSymbolicLink())return pl(e,t,r,n);throw u.isSocket()?new Error(`Cannot copy a socket file: ${t}`):u.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}async function ll(e,t,r,n,i){if(!t)return Eu(e,r,n,i);if(i.overwrite)return await ue.unlink(n),Eu(e,r,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}async function Eu(e,t,r,n){if(await ue.copyFile(t,r),n.preserveTimestamps){fl(e.mode)&&await dl(r,e.mode);let i=await ue.stat(t);await cl(r,i.atime,i.mtime)}return ue.chmod(r,e.mode)}function fl(e){return(e&128)===0}function dl(e,t){return ue.chmod(e,t|128)}async function hl(e,t,r,n,i){t||await ue.mkdir(n);let u=await ue.readdir(r);await Promise.all(u.map(async s=>{let o=Qt.join(r,s),c=Qt.join(n,s);if(!await vu(o,c,i))return;let{destStat:D}=await er.checkPaths(o,c,"copy",i);return wu(D,o,c,i)})),t||await ue.chmod(n,e.mode)}async function pl(e,t,r,n){let i=await ue.readlink(t);if(n.dereference&&(i=Qt.resolve(process.cwd(),i)),!e)return ue.symlink(i,r);let u=null;try{u=await ue.readlink(r)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return ue.symlink(i,r);throw s}if(n.dereference&&(u=Qt.resolve(process.cwd(),u)),er.isSrcSubdir(i,u))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${u}'.`);if(er.isSrcSubdir(u,i))throw new Error(`Cannot overwrite '${u}' with '${i}'.`);return await ue.unlink(r),ue.symlink(i,r)}bu.exports=Dl});var Lu=v((R0,Bu)=>{"use strict";a();var De=Tt(),tr=M("path"),ml=Ee().mkdirsSync,Fl=En().utimesMillisSync,rr=ht();function Cl(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
5
+
6
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:i}=rr.checkPathsSync(e,t,"copy",r);if(rr.checkParentPathsSync(e,n,t,"copy"),r.filter&&!r.filter(e,t))return;let u=tr.dirname(t);return De.existsSync(u)||ml(u),Au(i,e,t,r)}function Au(e,t,r,n){let u=(n.dereference?De.statSync:De.lstatSync)(t);if(u.isDirectory())return xl(u,e,t,r,n);if(u.isFile()||u.isCharacterDevice()||u.isBlockDevice())return yl(u,e,t,r,n);if(u.isSymbolicLink())return _l(e,t,r,n);throw u.isSocket()?new Error(`Cannot copy a socket file: ${t}`):u.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function yl(e,t,r,n,i){return t?gl(e,r,n,i):Su(e,r,n,i)}function gl(e,t,r,n){if(n.overwrite)return De.unlinkSync(r),Su(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Su(e,t,r,n){return De.copyFileSync(t,r),n.preserveTimestamps&&El(e.mode,t,r),wn(r,e.mode)}function El(e,t,r){return vl(e)&&wl(r,e),bl(t,r)}function vl(e){return(e&128)===0}function wl(e,t){return wn(e,t|128)}function wn(e,t){return De.chmodSync(e,t)}function bl(e,t){let r=De.statSync(e);return Fl(t,r.atime,r.mtime)}function xl(e,t,r,n,i){return t?_u(r,n,i):Al(e.mode,r,n,i)}function Al(e,t,r,n){return De.mkdirSync(r),_u(t,r,n),wn(r,e)}function _u(e,t,r){De.readdirSync(e).forEach(n=>Sl(n,e,t,r))}function Sl(e,t,r,n){let i=tr.join(t,e),u=tr.join(r,e);if(n.filter&&!n.filter(i,u))return;let{destStat:s}=rr.checkPathsSync(i,u,"copy",n);return Au(s,i,u,n)}function _l(e,t,r,n){let i=De.readlinkSync(t);if(n.dereference&&(i=tr.resolve(process.cwd(),i)),e){let u;try{u=De.readlinkSync(r)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return De.symlinkSync(i,r);throw s}if(n.dereference&&(u=tr.resolve(process.cwd(),u)),rr.isSrcSubdir(i,u))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${u}'.`);if(rr.isSrcSubdir(u,i))throw new Error(`Cannot overwrite '${u}' with '${i}'.`);return Bl(i,r)}else return De.symlinkSync(i,r)}function Bl(e,t){return De.unlinkSync(t),De.symlinkSync(e,t)}Bu.exports=Cl});var Ar=v((M0,Tu)=>{"use strict";a();var Ll=J().fromPromise;Tu.exports={copy:Ll(xu()),copySync:Lu()}});var nr=v((G0,Ou)=>{"use strict";a();var ku=Tt(),Tl=J().fromCallback;function kl(e,t){ku.rm(e,{recursive:!0,force:!0},t)}function Ol(e){ku.rmSync(e,{recursive:!0,force:!0})}Ou.exports={remove:Tl(kl),removeSync:Ol}});var Gu=v((W0,ju)=>{"use strict";a();var Pl=J().fromPromise,Iu=ce(),Ru=M("path"),$u=Ee(),Mu=nr(),Pu=Pl(async function(t){let r;try{r=await Iu.readdir(t)}catch{return $u.mkdirs(t)}return Promise.all(r.map(n=>Mu.remove(Ru.join(t,n))))});function Nu(e){let t;try{t=Iu.readdirSync(e)}catch{return $u.mkdirsSync(e)}t.forEach(r=>{r=Ru.join(e,r),Mu.removeSync(r)})}ju.exports={emptyDirSync:Nu,emptydirSync:Nu,emptyDir:Pu,emptydir:Pu}});var zu=v((z0,qu)=>{"use strict";a();var Nl=J().fromPromise,Uu=M("path"),Pe=ce(),Wu=Ee();async function Il(e){let t;try{t=await Pe.stat(e)}catch{}if(t&&t.isFile())return;let r=Uu.dirname(e),n=null;try{n=await Pe.stat(r)}catch(i){if(i.code==="ENOENT"){await Wu.mkdirs(r),await Pe.writeFile(e,"");return}else throw i}n.isDirectory()?await Pe.writeFile(e,""):await Pe.readdir(r)}function Rl(e){let t;try{t=Pe.statSync(e)}catch{}if(t&&t.isFile())return;let r=Uu.dirname(e);try{Pe.statSync(r).isDirectory()||Pe.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Wu.mkdirsSync(r);else throw n}Pe.writeFileSync(e,"")}qu.exports={createFile:Nl(Il),createFileSync:Rl}});var Ju=v((V0,Hu)=>{"use strict";a();var $l=J().fromPromise,Zu=M("path"),We=ce(),Vu=Ee(),{pathExists:Ml}=Ue(),{areIdentical:Yu}=ht();async function jl(e,t){let r;try{r=await We.lstat(t)}catch{}let n;try{n=await We.lstat(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}if(r&&Yu(n,r))return;let i=Zu.dirname(t);await Ml(i)||await Vu.mkdirs(i),await We.link(e,t)}function Gl(e,t){let r;try{r=We.lstatSync(t)}catch{}try{let u=We.lstatSync(e);if(r&&Yu(u,r))return}catch(u){throw u.message=u.message.replace("lstat","ensureLink"),u}let n=Zu.dirname(t);return We.existsSync(n)||Vu.mkdirsSync(n),We.linkSync(e,t)}Hu.exports={createLink:$l(jl),createLinkSync:Gl}});var Xu=v((H0,Ku)=>{"use strict";a();var qe=M("path"),ir=ce(),{pathExists:Ul}=Ue(),Wl=J().fromPromise;async function ql(e,t){if(qe.isAbsolute(e)){try{await ir.lstat(e)}catch(u){throw u.message=u.message.replace("lstat","ensureSymlink"),u}return{toCwd:e,toDst:e}}let r=qe.dirname(t),n=qe.join(r,e);if(await Ul(n))return{toCwd:n,toDst:e};try{await ir.lstat(e)}catch(u){throw u.message=u.message.replace("lstat","ensureSymlink"),u}return{toCwd:e,toDst:qe.relative(r,e)}}function zl(e,t){if(qe.isAbsolute(e)){if(!ir.existsSync(e))throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}let r=qe.dirname(t),n=qe.join(r,e);if(ir.existsSync(n))return{toCwd:n,toDst:e};if(!ir.existsSync(e))throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:qe.relative(r,e)}}Ku.exports={symlinkPaths:Wl(ql),symlinkPathsSync:zl}});var ts=v((K0,es)=>{"use strict";a();var Qu=ce(),Zl=J().fromPromise;async function Vl(e,t){if(t)return t;let r;try{r=await Qu.lstat(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}function Yl(e,t){if(t)return t;let r;try{r=Qu.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}es.exports={symlinkType:Zl(Vl),symlinkTypeSync:Yl}});var us=v((Q0,is)=>{"use strict";a();var Hl=J().fromPromise,rs=M("path"),Se=ce(),{mkdirs:Jl,mkdirsSync:Kl}=Ee(),{symlinkPaths:Xl,symlinkPathsSync:Ql}=Xu(),{symlinkType:ef,symlinkTypeSync:tf}=ts(),{pathExists:rf}=Ue(),{areIdentical:ns}=ht();async function nf(e,t,r){let n;try{n=await Se.lstat(t)}catch{}if(n&&n.isSymbolicLink()){let[o,c]=await Promise.all([Se.stat(e),Se.stat(t)]);if(ns(o,c))return}let i=await Xl(e,t);e=i.toDst;let u=await ef(i.toCwd,r),s=rs.dirname(t);return await rf(s)||await Jl(s),Se.symlink(e,t,u)}function uf(e,t,r){let n;try{n=Se.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){let o=Se.statSync(e),c=Se.statSync(t);if(ns(o,c))return}let i=Ql(e,t);e=i.toDst,r=tf(i.toCwd,r);let u=rs.dirname(t);return Se.existsSync(u)||Kl(u),Se.symlinkSync(e,t,r)}is.exports={createSymlink:Hl(nf),createSymlinkSync:uf}});var ds=v((tm,fs)=>{"use strict";a();var{createFile:ss,createFileSync:os}=zu(),{createLink:as,createLinkSync:cs}=Ju(),{createSymlink:Ds,createSymlinkSync:ls}=us();fs.exports={createFile:ss,createFileSync:os,ensureFile:ss,ensureFileSync:os,createLink:as,createLinkSync:cs,ensureLink:as,ensureLinkSync:cs,createSymlink:Ds,createSymlinkSync:ls,ensureSymlink:Ds,ensureSymlinkSync:ls}});var Sr=v((nm,hs)=>{a();function sf(e,{EOL:t=`
7
+ `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let u=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+u}function of(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}hs.exports={stringify:sf,stripBom:of}});var Cs=v((um,Fs)=>{a();var Pt;try{Pt=Tt()}catch{Pt=M("fs")}var _r=J(),{stringify:ps,stripBom:ms}=Sr();async function af(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Pt,n="throws"in t?t.throws:!0,i=await _r.fromCallback(r.readFile)(e,t);i=ms(i);let u;try{u=JSON.parse(i,t?t.reviver:null)}catch(s){if(n)throw s.message=`${e}: ${s.message}`,s;return null}return u}var cf=_r.fromPromise(af);function Df(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Pt,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=ms(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function lf(e,t,r={}){let n=r.fs||Pt,i=ps(t,r);await _r.fromCallback(n.writeFile)(e,i,r)}var ff=_r.fromPromise(lf);function df(e,t,r={}){let n=r.fs||Pt,i=ps(t,r);return n.writeFileSync(e,i,r)}var hf={readFile:cf,readFileSync:Df,writeFile:ff,writeFileSync:df};Fs.exports=hf});var gs=v((om,ys)=>{"use strict";a();var Br=Cs();ys.exports={readJson:Br.readFile,readJsonSync:Br.readFileSync,writeJson:Br.writeFile,writeJsonSync:Br.writeFileSync}});var Lr=v((cm,ws)=>{"use strict";a();var pf=J().fromPromise,bn=ce(),Es=M("path"),vs=Ee(),mf=Ue().pathExists;async function Ff(e,t,r="utf-8"){let n=Es.dirname(e);return await mf(n)||await vs.mkdirs(n),bn.writeFile(e,t,r)}function Cf(e,...t){let r=Es.dirname(e);bn.existsSync(r)||vs.mkdirsSync(r),bn.writeFileSync(e,...t)}ws.exports={outputFile:pf(Ff),outputFileSync:Cf}});var xs=v((lm,bs)=>{"use strict";a();var{stringify:yf}=Sr(),{outputFile:gf}=Lr();async function Ef(e,t,r={}){let n=yf(t,r);await gf(e,n,r)}bs.exports=Ef});var Ss=v((dm,As)=>{"use strict";a();var{stringify:vf}=Sr(),{outputFileSync:wf}=Lr();function bf(e,t,r){let n=vf(t,r);wf(e,n,r)}As.exports=bf});var Bs=v((pm,_s)=>{"use strict";a();var xf=J().fromPromise,le=gs();le.outputJson=xf(xs());le.outputJsonSync=Ss();le.outputJSON=le.outputJson;le.outputJSONSync=le.outputJsonSync;le.writeJSON=le.writeJson;le.writeJSONSync=le.writeJsonSync;le.readJSON=le.readJson;le.readJSONSync=le.readJsonSync;_s.exports=le});var Ps=v((Fm,Os)=>{"use strict";a();var Af=ce(),Ls=M("path"),{copy:Sf}=Ar(),{remove:ks}=nr(),{mkdirp:_f}=Ee(),{pathExists:Bf}=Ue(),Ts=ht();async function Lf(e,t,r={}){let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:u=!1}=await Ts.checkPaths(e,t,"move",r);await Ts.checkParentPaths(e,i,t,"move");let s=Ls.dirname(t);return Ls.parse(s).root!==s&&await _f(s),Tf(e,t,n,u)}async function Tf(e,t,r,n){if(!n){if(r)await ks(t);else if(await Bf(t))throw new Error("dest already exists.")}try{await Af.rename(e,t)}catch(i){if(i.code!=="EXDEV")throw i;await kf(e,t,r)}}async function kf(e,t,r){return await Sf(e,t,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),ks(e)}Os.exports=Lf});var Ms=v((ym,$s)=>{"use strict";a();var Is=Tt(),An=M("path"),Of=Ar().copySync,Rs=nr().removeSync,Pf=Ee().mkdirpSync,Ns=ht();function Nf(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:u=!1}=Ns.checkPathsSync(e,t,"move",r);return Ns.checkParentPathsSync(e,i,t,"move"),If(t)||Pf(An.dirname(t)),Rf(e,t,n,u)}function If(e){let t=An.dirname(e);return An.parse(t).root===t}function Rf(e,t,r,n){if(n)return xn(e,t,r);if(r)return Rs(t),xn(e,t,r);if(Is.existsSync(t))throw new Error("dest already exists.");return xn(e,t,r)}function xn(e,t,r){try{Is.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return $f(e,t,r)}}function $f(e,t,r){return Of(e,t,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),Rs(e)}$s.exports=Nf});var Gs=v((Em,js)=>{"use strict";a();var Mf=J().fromPromise;js.exports={move:Mf(Ps()),moveSync:Ms()}});var Ws=v((wm,Us)=>{"use strict";a();Us.exports={...ce(),...Ar(),...Gu(),...ds(),...Bs(),...Ee(),...Gs(),...Lr(),...Ue(),...nr()}});var Sn=v((xm,jf)=>{jf.exports=["0BSD","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMDPLPA","AML","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Abstyles","Adobe-2006","Adobe-Glyph","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-Protection","BSD-Source-Code","BSL-1.0","BUSL-1.1","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","BlueOak-1.0.0","Borceux","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-DE","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","ClArtistic","Community-Spec-1.0","Condor-1.1","Crossword","CrystalStacker","Cube","D-FSL-1.0","DOC","DRL-1.0","DSDP","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Entessa","ErlPL-1.1","Eurosym","FDK-AAC","FSFAP","FSFUL","FSFULLR","FTL","Fair","Frameworx-1.0","FreeBSD-DOC","FreeImage","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","HPND","HPND-sell-variant","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IJG","IPA","IPL-1.0","ISC","ImageMagick","Imlib2","Info-ZIP","Intel","Intel-ACPI","Interbase-1.0","JPNIC","JSON","JasPer-2.0","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","Latex2e","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-copyleft","MIT","MIT-0","MIT-CMU","MIT-Modern-Variant","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MITNFA","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-PL","MS-RL","MTLL","MakeIndex","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCGL-UK-2.0","NCSA","NGPL","NIST-PD","NIST-PD-fallback","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","Net-SNMP","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OML","OPL-1.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenSSL","PDDL-1.0","PHP-3.0","PHP-3.01","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","QPL-1.0","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","SAX-PD","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSPL-1.0","SWL","Saxpath","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","TAPR-OHL-1.0","TCL","TCP-wrappers","TMate","TORQUE-1.1","TOSL","TU-Berlin-1.0","TU-Berlin-2.0","UCL-1.0","UPL-1.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Wsuipa","X11","XFree86-1.1","XSkat","Xerox","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","blessing","bzip2-1.0.5","bzip2-1.0.6","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","diffmark","dvipdfm","eGenix","etalab-2.0","gSOAP-1.3b","gnuplot","iMatix","libpng-2.0","libselinux-1.0","libtiff","mpich2","psfrag","psutils","xinetd","xpp","zlib-acknowledgement"]});var qs=v((Am,Gf)=>{Gf.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Nunit","StandardML-NJ","eCos-2.0","wxWindows"]});var zs=v((Sm,Uf)=>{Uf.exports=["389-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-3.1","gnu-javamail-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","i2p-gpl-java-exception","Libtool-exception","Linux-syscall-note","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","Swift-exception","u-boot-exception-2.0","Universal-FOSS-exception-1.0","WxWindows-exception-3.1"]});var Vs=v((_m,Zs)=>{"use strict";a();var Wf=[].concat(Sn()).concat(qs()),qf=zs();Zs.exports=function(e){var t=0;function r(){return t<e.length}function n(F){if(F instanceof RegExp){var p=e.slice(t),C=p.match(F);if(C)return t+=C[0].length,C[0]}else if(e.indexOf(F,t)===t)return t+=F.length,F}function i(){n(/[ ]*/)}function u(){for(var F,p=["WITH","AND","OR","(",")",":","+"],C=0;C<p.length&&(F=n(p[C]),!F);C++);if(F==="+"&&t>1&&e[t-2]===" ")throw new Error("Space before `+`");return F&&{type:"OPERATOR",string:F}}function s(){return n(/[A-Za-z0-9-.]+/)}function o(){var F=s();if(!F)throw new Error("Expected idstring at offset "+t);return F}function c(){if(n("DocumentRef-")){var F=o();return{type:"DOCUMENTREF",string:F}}}function l(){if(n("LicenseRef-")){var F=o();return{type:"LICENSEREF",string:F}}}function D(){var F=t,p=s();if(Wf.indexOf(p)!==-1)return{type:"LICENSE",string:p};if(qf.indexOf(p)!==-1)return{type:"EXCEPTION",string:p};t=F}function f(){return u()||c()||l()||D()}for(var h=[];r()&&(i(),!!r());){var d=f();if(!d)throw new Error("Unexpected `"+e[t]+"` at offset "+t);h.push(d)}return h}});var Hs=v((Lm,Ys)=>{"use strict";a();Ys.exports=function(e){var t=0;function r(){return t<e.length}function n(){return r()?e[t]:null}function i(){if(!r())throw new Error;t++}function u(p){var C=n();if(C&&C.type==="OPERATOR"&&p===C.string)return i(),C.string}function s(){if(u("WITH")){var p=n();if(p&&p.type==="EXCEPTION")return i(),p.string;throw new Error("Expected exception after `WITH`")}}function o(){var p=t,C="",y=n();if(y.type==="DOCUMENTREF"&&(i(),C+="DocumentRef-"+y.string+":",!u(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(y=n(),y.type==="LICENSEREF")return i(),C+="LicenseRef-"+y.string,{license:C};t=p}function c(){var p=n();if(p&&p.type==="LICENSE"){i();var C={license:p.string};u("+")&&(C.plus=!0);var y=s();return y&&(C.exception=y),C}}function l(){var p=u("(");if(p){var C=d();if(!u(")"))throw new Error("Expected `)`");return C}}function D(){return l()||o()||c()}function f(p,C){return function y(){var L=C();if(L){if(!u(p))return L;var I=y();if(!I)throw new Error("Expected expression");return{left:L,conjunction:p.toLowerCase(),right:I}}}}var h=f("AND",D),d=f("OR",h),F=d();if(!F||r())throw new Error("Syntax error");return F}});var _n=v((km,Js)=>{"use strict";a();var zf=Vs(),Zf=Hs();Js.exports=function(e){return Zf(zf(e))}});var io=v((Pm,no)=>{a();var Vf=_n(),Yf=Sn();function Tr(e){try{return Vf(e),!0}catch{return!1}}var Ks=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["-License",""]],Hf=0,Jf=1,Xs=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],Bn=Yf.map(function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]}).reduce(function(e,t){var r=t[1];return e[r]=e[r]||[],e[r].push(t[0]),e},{}),Kf=Object.keys(Bn).map(function(t){return[t,Bn[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});Bn=void 0;var Qs=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(Kf),Xf=0,Qf=1,eo=function(e){for(var t=0;t<Xs.length;t++){var r=Xs[t](e).trim();if(r!==e&&Tr(r))return r}return null},to=function(e){for(var t=e.toUpperCase(),r=0;r<Qs.length;r++){var n=Qs[r];if(t.indexOf(n[Xf])>-1)return n[Qf]}return null},ro=function(e,t){for(var r=0;r<Ks.length;r++){var n=Ks[r],i=n[Hf];if(e.indexOf(i)>-1){var u=e.replace(i,n[Jf]),s=t(u);if(s!==null)return s}}return null};no.exports=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(o){return r?ed(o):o}var i=typeof e=="string"&&e.trim().length!==0;if(!i)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),Tr(e))return n(e);var u=e.replace(/\+$/,"").trim();if(Tr(u))return n(u);var s=eo(e);return s!==null||(s=ro(e,function(o){return Tr(o)?o:eo(o)}),s!==null)||(s=to(e),s!==null)||(s=ro(e,to),s!==null)?n(s):null};function ed(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}});var ao=v((Im,oo)=>{a();var td=_n(),rd=io(),uo='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',nd=/^SEE LICEN[CS]E IN (.+)$/;function so(e,t){return t.slice(0,e.length)===e}function Ln(e){if(e.hasOwnProperty("license")){var t=e.license;return so("LicenseRef",t)||so("DocumentRef",t)}else return Ln(e.left)||Ln(e.right)}oo.exports=function(e){var t;try{t=td(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=nd.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[uo]};if(e.trim().length!==0){var i=rd(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return Ln(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[uo]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var ho=v(Or=>{"use strict";a();Object.defineProperty(Or,"__esModule",{value:!0});Or.LRUCache=void 0;var Nt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Do=new Set,Tn=typeof process=="object"&&process?process:{},lo=(e,t,r,n)=>{typeof Tn.emitWarning=="function"?Tn.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},kr=globalThis.AbortController,co=globalThis.AbortSignal;if(typeof kr>"u"){co=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},kr=class{constructor(){t()}signal=new co;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let e=Tn.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,lo("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var id=e=>!Do.has(e),jm=Symbol("type"),ze=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),fo=e=>ze(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?It:null:null,It=class extends Array{constructor(t){super(t),this.fill(0)}},kn=class e{heap;length;static#t=!1;static create(t){let r=fo(t);if(!r)return[];e.#t=!0;let n=new e(t,r);return e.#t=!1,n}constructor(t,r){if(!e.#t)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},On=class e{#t;#u;#r;#d;#L;#T;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#F;#s;#i;#e;#l;#h;#D;#a;#C;#c;#y;#g;#p;#E;#A;#f;static unsafeExposeInternals(t){return{starts:t.#g,ttls:t.#p,sizes:t.#y,keyMap:t.#s,keyList:t.#i,valList:t.#e,next:t.#l,prev:t.#h,get head(){return t.#D},get tail(){return t.#a},free:t.#C,isBackgroundFetch:r=>t.#n(r),backgroundFetch:(r,n,i,u)=>t.#P(r,n,i,u),moveToTail:r=>t.#B(r),indexes:r=>t.#v(r),rindexes:r=>t.#w(r),isStale:r=>t.#m(r)}}get max(){return this.#t}get maxSize(){return this.#u}get calculatedSize(){return this.#F}get size(){return this.#o}get fetchMethod(){return this.#L}get memoMethod(){return this.#T}get dispose(){return this.#r}get disposeAfter(){return this.#d}constructor(t){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:u,updateAgeOnGet:s,updateAgeOnHas:o,allowStale:c,dispose:l,disposeAfter:D,noDisposeOnSet:f,noUpdateTTL:h,maxSize:d=0,maxEntrySize:F=0,sizeCalculation:p,fetchMethod:C,memoMethod:y,noDeleteOnFetchRejection:L,noDeleteOnStaleGet:I,allowStaleOnFetchRejection:W,allowStaleOnFetchAbort:se,ignoreFetchAbort:Ne}=t;if(r!==0&&!ze(r))throw new TypeError("max option must be a nonnegative integer");let be=r?fo(r):Array;if(!be)throw new Error("invalid max value: "+r);if(this.#t=r,this.#u=d,this.maxEntrySize=F||this.#u,this.sizeCalculation=p,this.sizeCalculation){if(!this.#u&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(y!==void 0&&typeof y!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#T=y,C!==void 0&&typeof C!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#L=C,this.#A=!!C,this.#s=new Map,this.#i=new Array(r).fill(void 0),this.#e=new Array(r).fill(void 0),this.#l=new be(r),this.#h=new be(r),this.#D=0,this.#a=0,this.#C=kn.create(r),this.#o=0,this.#F=0,typeof l=="function"&&(this.#r=l),typeof D=="function"?(this.#d=D,this.#c=[]):(this.#d=void 0,this.#c=void 0),this.#E=!!this.#r,this.#f=!!this.#d,this.noDisposeOnSet=!!f,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!L,this.allowStaleOnFetchRejection=!!W,this.allowStaleOnFetchAbort=!!se,this.ignoreFetchAbort=!!Ne,this.maxEntrySize!==0){if(this.#u!==0&&!ze(this.#u))throw new TypeError("maxSize must be a positive integer if specified");if(!ze(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#G()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!I,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!o,this.ttlResolution=ze(i)||i===0?i:1,this.ttlAutopurge=!!u,this.ttl=n||0,this.ttl){if(!ze(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#N()}if(this.#t===0&&this.ttl===0&&this.#u===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#t&&!this.#u){let Ie="LRU_CACHE_UNBOUNDED";id(Ie)&&(Do.add(Ie),lo("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Ie,e))}}getRemainingTTL(t){return this.#s.has(t)?1/0:0}#N(){let t=new It(this.#t),r=new It(this.#t);this.#p=t,this.#g=r,this.#I=(u,s,o=Nt.now())=>{if(r[u]=s!==0?o:0,t[u]=s,s!==0&&this.ttlAutopurge){let c=setTimeout(()=>{this.#m(u)&&this.#b(this.#i[u],"expire")},s+1);c.unref&&c.unref()}},this.#S=u=>{r[u]=t[u]!==0?Nt.now():0},this.#x=(u,s)=>{if(t[s]){let o=t[s],c=r[s];if(!o||!c)return;u.ttl=o,u.start=c,u.now=n||i();let l=u.now-c;u.remainingTTL=o-l}};let n=0,i=()=>{let u=Nt.now();if(this.ttlResolution>0){n=u;let s=setTimeout(()=>n=0,this.ttlResolution);s.unref&&s.unref()}return u};this.getRemainingTTL=u=>{let s=this.#s.get(u);if(s===void 0)return 0;let o=t[s],c=r[s];if(!o||!c)return 1/0;let l=(n||i())-c;return o-l},this.#m=u=>{let s=r[u],o=t[u];return!!o&&!!s&&(n||i())-s>o}}#S=()=>{};#x=()=>{};#I=()=>{};#m=()=>!1;#G(){let t=new It(this.#t);this.#F=0,this.#y=t,this.#_=r=>{this.#F-=t[r],t[r]=0},this.#R=(r,n,i,u)=>{if(this.#n(n))return 0;if(!ze(i))if(u){if(typeof u!="function")throw new TypeError("sizeCalculation must be a function");if(i=u(n,r),!ze(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#k=(r,n,i)=>{if(t[r]=n,this.#u){let u=this.#u-t[r];for(;this.#F>u;)this.#O(!0)}this.#F+=t[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#F)}}#_=t=>{};#k=(t,r,n)=>{};#R=(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#v({allowStale:t=this.allowStale}={}){if(this.#o)for(let r=this.#a;!(!this.#$(r)||((t||!this.#m(r))&&(yield r),r===this.#D));)r=this.#h[r]}*#w({allowStale:t=this.allowStale}={}){if(this.#o)for(let r=this.#D;!(!this.#$(r)||((t||!this.#m(r))&&(yield r),r===this.#a));)r=this.#l[r]}#$(t){return t!==void 0&&this.#s.get(this.#i[t])===t}*entries(){for(let t of this.#v())this.#e[t]!==void 0&&this.#i[t]!==void 0&&!this.#n(this.#e[t])&&(yield[this.#i[t],this.#e[t]])}*rentries(){for(let t of this.#w())this.#e[t]!==void 0&&this.#i[t]!==void 0&&!this.#n(this.#e[t])&&(yield[this.#i[t],this.#e[t]])}*keys(){for(let t of this.#v()){let r=this.#i[t];r!==void 0&&!this.#n(this.#e[t])&&(yield r)}}*rkeys(){for(let t of this.#w()){let r=this.#i[t];r!==void 0&&!this.#n(this.#e[t])&&(yield r)}}*values(){for(let t of this.#v())this.#e[t]!==void 0&&!this.#n(this.#e[t])&&(yield this.#e[t])}*rvalues(){for(let t of this.#w())this.#e[t]!==void 0&&!this.#n(this.#e[t])&&(yield this.#e[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(let n of this.#v()){let i=this.#e[n],u=this.#n(i)?i.__staleWhileFetching:i;if(u!==void 0&&t(u,this.#i[n],this))return this.get(this.#i[n],r)}}forEach(t,r=this){for(let n of this.#v()){let i=this.#e[n],u=this.#n(i)?i.__staleWhileFetching:i;u!==void 0&&t.call(r,u,this.#i[n],this)}}rforEach(t,r=this){for(let n of this.#w()){let i=this.#e[n],u=this.#n(i)?i.__staleWhileFetching:i;u!==void 0&&t.call(r,u,this.#i[n],this)}}purgeStale(){let t=!1;for(let r of this.#w({allowStale:!0}))this.#m(r)&&(this.#b(this.#i[r],"expire"),t=!0);return t}info(t){let r=this.#s.get(t);if(r===void 0)return;let n=this.#e[r],i=this.#n(n)?n.__staleWhileFetching:n;if(i===void 0)return;let u={value:i};if(this.#p&&this.#g){let s=this.#p[r],o=this.#g[r];if(s&&o){let c=s-(Nt.now()-o);u.ttl=c,u.start=Date.now()}}return this.#y&&(u.size=this.#y[r]),u}dump(){let t=[];for(let r of this.#v({allowStale:!0})){let n=this.#i[r],i=this.#e[r],u=this.#n(i)?i.__staleWhileFetching:i;if(u===void 0||n===void 0)continue;let s={value:u};if(this.#p&&this.#g){s.ttl=this.#p[r];let o=Nt.now()-this.#g[r];s.start=Math.floor(Date.now()-o)}this.#y&&(s.size=this.#y[r]),t.unshift([n,s])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let i=Date.now()-n.start;n.start=Nt.now()-i}this.set(r,n.value,n)}}set(t,r,n={}){if(r===void 0)return this.delete(t),this;let{ttl:i=this.ttl,start:u,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:c}=n,{noUpdateTTL:l=this.noUpdateTTL}=n,D=this.#R(t,r,n.size||0,o);if(this.maxEntrySize&&D>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.#b(t,"set"),this;let f=this.#o===0?void 0:this.#s.get(t);if(f===void 0)f=this.#o===0?this.#a:this.#C.length!==0?this.#C.pop():this.#o===this.#t?this.#O(!1):this.#o,this.#i[f]=t,this.#e[f]=r,this.#s.set(t,f),this.#l[this.#a]=f,this.#h[f]=this.#a,this.#a=f,this.#o++,this.#k(f,D,c),c&&(c.set="add"),l=!1;else{this.#B(f);let h=this.#e[f];if(r!==h){if(this.#A&&this.#n(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=h;d!==void 0&&!s&&(this.#E&&this.#r?.(d,t,"set"),this.#f&&this.#c?.push([d,t,"set"]))}else s||(this.#E&&this.#r?.(h,t,"set"),this.#f&&this.#c?.push([h,t,"set"]));if(this.#_(f),this.#k(f,D,c),this.#e[f]=r,c){c.set="replace";let d=h&&this.#n(h)?h.__staleWhileFetching:h;d!==void 0&&(c.oldValue=d)}}else c&&(c.set="update")}if(i!==0&&!this.#p&&this.#N(),this.#p&&(l||this.#I(f,i,u),c&&this.#x(c,f)),!s&&this.#f&&this.#c){let h=this.#c,d;for(;d=h?.shift();)this.#d?.(...d)}return this}pop(){try{for(;this.#o;){let t=this.#e[this.#D];if(this.#O(!0),this.#n(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#f&&this.#c){let t=this.#c,r;for(;r=t?.shift();)this.#d?.(...r)}}}#O(t){let r=this.#D,n=this.#i[r],i=this.#e[r];return this.#A&&this.#n(i)?i.__abortController.abort(new Error("evicted")):(this.#E||this.#f)&&(this.#E&&this.#r?.(i,n,"evict"),this.#f&&this.#c?.push([i,n,"evict"])),this.#_(r),t&&(this.#i[r]=void 0,this.#e[r]=void 0,this.#C.push(r)),this.#o===1?(this.#D=this.#a=0,this.#C.length=0):this.#D=this.#l[r],this.#s.delete(n),this.#o--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,u=this.#s.get(t);if(u!==void 0){let s=this.#e[u];if(this.#n(s)&&s.__staleWhileFetching===void 0)return!1;if(this.#m(u))i&&(i.has="stale",this.#x(i,u));else return n&&this.#S(u),i&&(i.has="hit",this.#x(i,u)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,i=this.#s.get(t);if(i===void 0||!n&&this.#m(i))return;let u=this.#e[i];return this.#n(u)?u.__staleWhileFetching:u}#P(t,r,n,i){let u=r===void 0?void 0:this.#e[r];if(this.#n(u))return u;let s=new kr,{signal:o}=n;o?.addEventListener("abort",()=>s.abort(o.reason),{signal:s.signal});let c={signal:s.signal,options:n,context:i},l=(p,C=!1)=>{let{aborted:y}=s.signal,L=n.ignoreFetchAbort&&p!==void 0;if(n.status&&(y&&!C?(n.status.fetchAborted=!0,n.status.fetchError=s.signal.reason,L&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),y&&!L&&!C)return f(s.signal.reason);let I=d;return this.#e[r]===d&&(p===void 0?I.__staleWhileFetching?this.#e[r]=I.__staleWhileFetching:this.#b(t,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(t,p,c.options))),p},D=p=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=p),f(p)),f=p=>{let{aborted:C}=s.signal,y=C&&n.allowStaleOnFetchAbort,L=y||n.allowStaleOnFetchRejection,I=L||n.noDeleteOnFetchRejection,W=d;if(this.#e[r]===d&&(!I||W.__staleWhileFetching===void 0?this.#b(t,"fetch"):y||(this.#e[r]=W.__staleWhileFetching)),L)return n.status&&W.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),W.__staleWhileFetching;if(W.__returned===W)throw p},h=(p,C)=>{let y=this.#L?.(t,u,c);y&&y instanceof Promise&&y.then(L=>p(L===void 0?void 0:L),C),s.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(p(void 0),n.allowStaleOnFetchAbort&&(p=L=>l(L,!0)))})};n.status&&(n.status.fetchDispatched=!0);let d=new Promise(h).then(l,D),F=Object.assign(d,{__abortController:s,__staleWhileFetching:u,__returned:void 0});return r===void 0?(this.set(t,F,{...c.options,status:void 0}),r=this.#s.get(t)):this.#e[r]=F,F}#n(t){if(!this.#A)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof kr}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:c=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:D=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:F=this.allowStaleOnFetchAbort,context:p,forceRefresh:C=!1,status:y,signal:L}=r;if(!this.#A)return y&&(y.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:u,status:y});let I={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:u,ttl:s,noDisposeOnSet:o,size:c,sizeCalculation:l,noUpdateTTL:D,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:F,ignoreFetchAbort:d,status:y,signal:L},W=this.#s.get(t);if(W===void 0){y&&(y.fetch="miss");let se=this.#P(t,W,I,p);return se.__returned=se}else{let se=this.#e[W];if(this.#n(se)){let T=n&&se.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",T&&(y.returnedStale=!0)),T?se.__staleWhileFetching:se.__returned=se}let Ne=this.#m(W);if(!C&&!Ne)return y&&(y.fetch="hit"),this.#B(W),i&&this.#S(W),y&&this.#x(y,W),se;let be=this.#P(t,W,I,p),A=be.__staleWhileFetching!==void 0&&n;return y&&(y.fetch=Ne?"stale":"refresh",A&&Ne&&(y.returnedStale=!0)),A?be.__staleWhileFetching:be.__returned=be}}async forceFetch(t,r={}){let n=await this.fetch(t,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(t,r={}){let n=this.#T;if(!n)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:u,...s}=r,o=this.get(t,s);if(!u&&o!==void 0)return o;let c=n(t,o,{options:s,context:i});return this.set(t,c,s),c}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,status:s}=r,o=this.#s.get(t);if(o!==void 0){let c=this.#e[o],l=this.#n(c);return s&&this.#x(s,o),this.#m(o)?(s&&(s.get="stale"),l?(s&&n&&c.__staleWhileFetching!==void 0&&(s.returnedStale=!0),n?c.__staleWhileFetching:void 0):(u||this.#b(t,"expire"),s&&n&&(s.returnedStale=!0),n?c:void 0)):(s&&(s.get="hit"),l?c.__staleWhileFetching:(this.#B(o),i&&this.#S(o),c))}else s&&(s.get="miss")}#M(t,r){this.#h[r]=t,this.#l[t]=r}#B(t){t!==this.#a&&(t===this.#D?this.#D=this.#l[t]:this.#M(this.#h[t],this.#l[t]),this.#M(this.#a,t),this.#a=t)}delete(t){return this.#b(t,"delete")}#b(t,r){let n=!1;if(this.#o!==0){let i=this.#s.get(t);if(i!==void 0)if(n=!0,this.#o===1)this.#j(r);else{this.#_(i);let u=this.#e[i];if(this.#n(u)?u.__abortController.abort(new Error("deleted")):(this.#E||this.#f)&&(this.#E&&this.#r?.(u,t,r),this.#f&&this.#c?.push([u,t,r])),this.#s.delete(t),this.#i[i]=void 0,this.#e[i]=void 0,i===this.#a)this.#a=this.#h[i];else if(i===this.#D)this.#D=this.#l[i];else{let s=this.#h[i];this.#l[s]=this.#l[i];let o=this.#l[i];this.#h[o]=this.#h[i]}this.#o--,this.#C.push(i)}}if(this.#f&&this.#c?.length){let i=this.#c,u;for(;u=i?.shift();)this.#d?.(...u)}return n}clear(){return this.#j("delete")}#j(t){for(let r of this.#w({allowStale:!0})){let n=this.#e[r];if(this.#n(n))n.__abortController.abort(new Error("deleted"));else{let i=this.#i[r];this.#E&&this.#r?.(n,i,t),this.#f&&this.#c?.push([n,i,t])}}if(this.#s.clear(),this.#e.fill(void 0),this.#i.fill(void 0),this.#p&&this.#g&&(this.#p.fill(0),this.#g.fill(0)),this.#y&&this.#y.fill(0),this.#D=0,this.#a=0,this.#C.length=0,this.#F=0,this.#o=0,this.#f&&this.#c){let r=this.#c,n;for(;n=r?.shift();)this.#d?.(...n)}}};Or.LRUCache=On});var Fo=v((Wm,mo)=>{"use strict";a();var O=(...e)=>e.every(t=>t)?e.join(""):"",Y=e=>e?encodeURIComponent(e):"",po=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),ud={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${O("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${O("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:u})=>`https://${e}/${t}/${r}${O("/",i,"/",Y(n||"HEAD"),"/",u)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${O("/",i,"/",Y(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:u,fragment:s,hashformat:o})=>`https://${e}/${t}/${r}/${i}/${Y(n||"HEAD")}/${u}${O("#",o(s||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:i,path:u,fragment:s,hashformat:o})=>`https://${e}/${t}/${r}/${i}/${Y(n||"HEAD")}/${u}${O("#",o(s||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${O("/",n,"/",Y(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${O(e,"@")}${t}/${r}/${n}.git${O("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${Y(n||"HEAD")}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${O("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${O("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:po},Ze={};Ze.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${O(e,"@")}raw.githubusercontent.com/${t}/${r}/${Y(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${O(e,"@")}${t}/${r}/${n}.git${O("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${Y(n||"HEAD")}`,extract:e=>{let[,t,r,n,i]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:i}}};Ze.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:u,editpath:s})=>`https://${e}/${t}/${r}${O("/",i,"/",Y(n||"HEAD"),"/",u,s)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${Y(n||"HEAD")}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};Ze.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${O(e,"@")}${t}/${r}/${n}.git${O("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${Y(n||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}};Ze.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${O("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${O("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${O("/",Y(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${O("/",Y(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${O("/",Y(r))}${O("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${O("/",Y(r))}${O("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${O("/",Y(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${O("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${O("/",Y(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${O("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${O("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${O("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${Y(t||"HEAD")}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+po(e)}};Ze.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${Y(n)||"HEAD"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${O("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${Y(n)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(Ze))Ze[e]=Object.assign({},ud,t);mo.exports=Ze});var Nn=v((zm,yo)=>{a();var sd=M("url"),Pn=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},Co=e=>{try{return new sd.URL(e)}catch{}},od=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let i=e.indexOf("@");return i>-1?i>r?`git+ssh://${e}`:e:e.indexOf("//")===r+1?e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},ad=e=>{let t=Pn(e,"@","#"),r=Pn(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),Pn(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};yo.exports=(e,t)=>{let r=t?od(e,t):e;return Co(r)||Co(ad(r))}});var Eo=v((Vm,go)=>{"use strict";a();var cd=Nn(),Dd=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),u=/\s/.exec(e),s=e.indexOf("@"),o=!u||t>-1&&u.index>t,c=s===-1||t>-1&&s>t,l=i===-1||t>-1&&i>t,D=n===-1||t>-1&&n>t,f=r>0,h=t>-1?e[t-1]!=="/":!e.endsWith("/"),d=!e.startsWith(".");return o&&f&&h&&d&&c&&l&&D};go.exports=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=Dd(e)?`github:${e}`:e,u=cd(i,n);if(!u)return;let s=r.byShortcut[u.protocol],o=r.byDomain[u.hostname.startsWith("www.")?u.hostname.slice(4):u.hostname],c=s||o;if(!c)return;let l=r[s||o],D=null;n[u.protocol]?.auth&&(u.username||u.password)&&(D=`${u.username}${u.password?":"+u.password:""}`);let f=null,h=null,d=null,F=null;try{if(s){let p=u.pathname.startsWith("/")?u.pathname.slice(1):u.pathname,C=p.indexOf("@");C>-1&&(p=p.slice(C+1));let y=p.lastIndexOf("/");y>-1?(h=decodeURIComponent(p.slice(0,y)),h||(h=null),d=decodeURIComponent(p.slice(y+1))):d=decodeURIComponent(p),d.endsWith(".git")&&(d=d.slice(0,-4)),u.hash&&(f=decodeURIComponent(u.hash.slice(1))),F="shortcut"}else{if(!l.protocols.includes(u.protocol))return;let p=l.extract(u);if(!p)return;h=p.user&&decodeURIComponent(p.user),d=decodeURIComponent(p.project),f=decodeURIComponent(p.committish),F=n[u.protocol]?.name||u.protocol.slice(0,-1)}}catch(p){if(p instanceof URIError)return;throw p}return[c,h,D,d,f,F,t]}});var wo=v((Hm,vo)=>{"use strict";a();var{LRUCache:ld}=ho(),fd=Fo(),dd=Eo(),hd=Nn(),In=new ld({max:1e3}),Pr=class e{constructor(t,r,n,i,u,s,o={}){Object.assign(this,e.#t[t],{type:t,user:r,auth:n,project:i,committish:u,default:s,opts:o})}static#t={byShortcut:{},byDomain:{}};static#u={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,r){e.#t[t]=r,e.#t.byDomain[r.domain]=t,e.#t.byShortcut[`${t}:`]=t,e.#u[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!In.has(n)){let i=dd(t,r,{gitHosts:e.#t,protocols:e.#u});In.set(n,i?new e(...i):void 0)}return In.get(n)}static parseUrl(t){return hd(t)}#r(t,r){if(typeof t!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#r(this.sshtemplate,t)}sshurl(t){return this.#r(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#r(this.browsetemplate,t):typeof r[0]!="string"?this.#r(this.browsetreetemplate,{...r[0],path:t}):this.#r(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#r(this.browseblobtemplate,{...r[0],path:t}):this.#r(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#r(this.docstemplate,t)}bugs(t){return this.#r(this.bugstemplate,t)}https(t){return this.#r(this.httpstemplate,t)}git(t){return this.#r(this.gittemplate,t)}shortcut(t){return this.#r(this.shortcuttemplate,t)}path(t){return this.#r(this.pathtemplate,t)}tarball(t){return this.#r(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#r(this.filetemplate,{...r,path:t})}edit(t,r){return this.#r(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(fd))Pr.addHost(e,t);vo.exports=Pr});var xo=v((Km,bo)=>{a();bo.exports=pd;function pd(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
8
+ `);let t=0;for(;e[t]&&e[t].trim().match(/^(#|$)/);)t++;let r=e.length,n=t+1;for(;n<r&&e[n].trim();)n++;return e.slice(t,n).join(" ").trim()}});var Ao=v((Qm,md)=>{md.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var Lo=v((eF,Bo)=>{a();var Fd=Qa(),Cd=ec(),yd=ao(),Nr=wo(),gd=M("node:module"),Ed=["dependencies","devDependencies","optionalDependencies"],vd=xo(),Rn=M("url"),Ve=Ao(),So=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf(".");Bo.exports={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var r=Nr.fromUrl(t);r&&(t=e.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}t.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(Ve.topLevel).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,Ve.topLevel[t])},this)},fixScriptsField:function(e){if(e.scripts){if(typeof e.scripts!="object"){this.warn("nonObjectScripts"),delete e.scripts;return}Object.keys(e.scripts).forEach(function(t){typeof e.scripts[t]!="string"?(this.warn("nonStringScript"),delete e.scripts[t]):Ve.script[t]&&!e.scripts[Ve.script[t]]&&this.warn("typo",t,Ve.script[t],"scripts")},this)}},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(e){if(e.bin&&typeof e.bin=="string"){var t={},r;(r=e.name.match(/^@[^/]+[/](.*)$/))?t[r[1]]=e.bin:t[e.name]=e.bin,e.bin=t}},fixManField:function(e){e.man&&typeof e.man=="string"&&(e.man=[e.man])},fixBundleDependenciesField:function(e){var t="bundledDependencies",r="bundleDependencies";e[t]&&!e[r]&&(e[r]=e[t],delete e[t]),e[r]&&!Array.isArray(e[r])?(this.warn("nonArrayBundleDependencies"),delete e[r]):e[r]&&(e[r]=e[r].filter(function(n){return!n||typeof n!="string"?(this.warn("nonStringBundleDependency",n),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,n)||(this.warn("nonDependencyBundleDependency",n),e.dependencies[n]="*"),!0)},this))},fixDependencies:function(e){Ld(e,this.warn),_d(e,this.warn),this.fixBundleDependenciesField(e),["dependencies","devDependencies"].forEach(function(t){if(t in e){if(!e[t]||typeof e[t]!="object"){this.warn("nonObjectDependencies",t),delete e[t];return}Object.keys(e[t]).forEach(function(r){var n=e[t][r];typeof n!="string"&&(this.warn("nonStringDependency",r,JSON.stringify(n)),delete e[t][r]);var i=Nr.fromUrl(e[t][r]);i&&(e[t][r]=i.toString())},this)}},this)},fixModulesField:function(e){e.modules&&(this.warn("deprecatedModules"),delete e.modules)},fixKeywordsField:function(e){typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,this.warn("nonArrayKeywords")):e.keywords&&(e.keywords=e.keywords.filter(function(t){return typeof t!="string"||!t?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(e,t){var r=!t;if(!e.version)return e.version="",!0;if(!Fd(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=Cd(e.version,r),!0},fixPeople:function(e){_o(e,Ad),_o(e,Sd)},fixNameField:function(e,t){typeof t=="boolean"?t={strict:t}:typeof t>"u"&&(t={});var r=t.strict;if(!e.name&&!r){e.name="";return}if(typeof e.name!="string")throw new Error("name field must be a string.");r||(e.name=e.name.trim()),xd(e.name,r,t.allowLegacyCase),gd.builtinModules.includes(e.name)&&this.warn("conflictingName",e.name)},fixDescriptionField:function(e){e.description&&typeof e.description!="string"&&(this.warn("nonStringDescription"),delete e.description),e.readme&&!e.description&&(e.description=vd(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=Nr.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")So(e.bugs)?e.bugs={email:e.bugs}:Rn.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{Td(e.bugs,this.warn);var r=e.bugs;e.bugs={},r.url&&(typeof r.url=="string"&&Rn.parse(r.url).protocol?e.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&So(r.email)?e.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=Nr.fromUrl(e.repository.url);t&&t.docs()&&(e.homepage=t.docs())}if(e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;Rn.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)}},fixLicenseField:function(e){let t=e.license||e.licence;if(!t)return this.warn("missingLicense");if(typeof t!="string"||t.length<1||t.trim()==="")return this.warn("invalidLicense");if(!yd(t).validForNewPackages)return this.warn("invalidLicense")}};function wd(e){if(e.charAt(0)!=="@")return!1;var t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function bd(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function xd(e,t,r){if(e.charAt(0)==="."||!(wd(e)||bd(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function _o(e,t){return e.author&&(e.author=t(e.author)),["maintainers","contributors"].forEach(function(r){Array.isArray(e[r])&&(e[r]=e[r].map(t))}),e}function Ad(e){if(typeof e=="string")return e;var t=e.name||"",r=e.url||e.web,n=r?" ("+r+")":"",i=e.email||e.mail,u=i?" <"+i+">":"";return t+u+n}function Sd(e){if(typeof e!="string")return e;var t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),i={};return t&&t[0].trim()&&(i.name=t[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function _d(e){var t=e.optionalDependencies;if(t){var r=e.dependencies||{};Object.keys(t).forEach(function(n){r[n]=t[n]}),e.dependencies=r}}function Bd(e,t,r){if(!e)return{};if(typeof e=="string"&&(e=e.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(e))return e;r("deprecatedArrayDependencies",t);var n={};return e.filter(function(i){return typeof i=="string"}).forEach(function(i){i=i.trim().split(/(:?[@\s><=])/);var u=i.shift(),s=i.join("");s=s.trim(),s=s.replace(/^@/,""),n[u]=s}),n}function Ld(e,t){Ed.forEach(function(r){e[r]&&(e[r]=Bd(e[r],r,t))})}function Td(e,t){e&&Object.keys(e).forEach(function(r){Ve.bugs[r]&&(t("typo",r,Ve.bugs[r],"bugs"),e[Ve.bugs[r]]=e[r],delete e[r])})}});var To=v((rF,kd)=>{kd.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var Po=v((nF,Oo)=>{a();var ko=M("util"),$n=To();Oo.exports=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return Od.apply(null,e);var r=$n[t]?$n[t]:t+": '%s'";return e.unshift(r),ko.format.apply(null,e)};function Od(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),ko.format($n.typo,e,t)}});var $o=v((uF,Ro)=>{a();Ro.exports=No;var Mn=Lo();No.fixer=Mn;var Pd=Po(),Nd=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],Id=["dependencies","people","typos"],jn=Nd.map(function(e){return Io(e)+"Field"});jn=jn.concat(Id);function No(e,t,r){t===!0&&(t=null,r=!0),r||(r=!1),(!t||e.private)&&(t=function(){}),e.scripts&&e.scripts.install==="node-gyp rebuild"&&!e.scripts.preinstall&&(e.gypfile=!0),Mn.warn=function(){t(Pd.apply(null,arguments))},jn.forEach(function(n){Mn["fix"+Io(n)](e,r)}),e._id=e.name+"@"+e.version}function Io(e){return e.charAt(0).toUpperCase()+e.slice(1)}});var Vo=v((HF,Zn)=>{"use strict";a();var Zo=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Zn.exports=Zo;Zn.exports.default=Zo});var Ho=v((KF,jr)=>{"use strict";a();var Vd=Vo(),Mr=new WeakMap,Yo=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",u=function(...s){if(Mr.set(u,++n),n===1)r=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Vd(u,e),Mr.set(u,n),u};jr.exports=Yo;jr.exports.default=Yo;jr.exports.callCount=e=>{if(!Mr.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Mr.get(e)}});var Jo=v((QF,Gr)=>{a();Gr.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Gr.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Gr.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ta=v((tC,jt)=>{a();var G=global.process,mt=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};mt(G)?(Ko=M("assert"),$t=Jo(),Xo=/^win/i.test(G.platform),ur=M("events"),typeof ur!="function"&&(ur=ur.EventEmitter),G.__signal_exit_emitter__?X=G.__signal_exit_emitter__:(X=G.__signal_exit_emitter__=new ur,X.count=0,X.emitted={}),X.infinite||(X.setMaxListeners(1/0),X.infinite=!0),jt.exports=function(e,t){if(!mt(global.process))return function(){};Ko.equal(typeof e,"function","a callback must be provided for exit handler"),Mt===!1&&Vn();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){X.removeListener(r,e),X.listeners("exit").length===0&&X.listeners("afterexit").length===0&&Ur()};return X.on(r,e),n},Ur=function(){!Mt||!mt(global.process)||(Mt=!1,$t.forEach(function(t){try{G.removeListener(t,Wr[t])}catch{}}),G.emit=qr,G.reallyExit=Yn,X.count-=1)},jt.exports.unload=Ur,Ft=function(t,r,n){X.emitted[t]||(X.emitted[t]=!0,X.emit(t,r,n))},Wr={},$t.forEach(function(e){Wr[e]=function(){if(mt(global.process)){var r=G.listeners(e);r.length===X.count&&(Ur(),Ft("exit",null,e),Ft("afterexit",null,e),Xo&&e==="SIGHUP"&&(e="SIGINT"),G.kill(G.pid,e))}}}),jt.exports.signals=function(){return $t},Mt=!1,Vn=function(){Mt||!mt(global.process)||(Mt=!0,X.count+=1,$t=$t.filter(function(t){try{return G.on(t,Wr[t]),!0}catch{return!1}}),G.emit=ea,G.reallyExit=Qo)},jt.exports.load=Vn,Yn=G.reallyExit,Qo=function(t){mt(global.process)&&(G.exitCode=t||0,Ft("exit",G.exitCode,null),Ft("afterexit",G.exitCode,null),Yn.call(G,G.exitCode))},qr=G.emit,ea=function(t,r){if(t==="exit"&&mt(global.process)){r!==void 0&&(G.exitCode=r);var n=qr.apply(this,arguments);return Ft("exit",G.exitCode,null),Ft("afterexit",G.exitCode,null),n}else return qr.apply(this,arguments)}):jt.exports=function(){return function(){}};var Ko,$t,Xo,ur,X,Ur,Ft,Wr,Mt,Vn,Yn,Qo,qr,ea});var la=v((AC,Da)=>{a();Da.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var ga=v((QC,ya)=>{"use strict";a();ya.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var va=v((ty,Ea)=>{"use strict";a();var ch=ga();Ea.exports=e=>typeof e=="string"?e.replace(ch(),""):e});var ba=v((ny,ui)=>{"use strict";a();var wa=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);ui.exports=wa;ui.exports.default=wa});var Aa=v((uy,xa)=>{"use strict";a();xa.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var _a=v((oy,si)=>{"use strict";a();var Dh=va(),lh=ba(),fh=Aa(),Sa=e=>{if(typeof e!="string"||e.length===0||(e=Dh(e),e.length===0))return 0;e=e.replace(fh()," ");let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=lh(n)?2:1)}return t};si.exports=Sa;si.exports.default=Sa});var La=v((cy,Ba)=>{"use strict";a();var dh=_a();function yt(e,t){if(!e)return e;t=t||{};let r=t.align||"center";if(r==="left")return e;let n=t.split||`
9
+ `,i=t.pad||" ",u=r!=="right"?hh:ph,s=!1;Array.isArray(e)||(s=!0,e=String(e).split(n));let o,c=0;return e=e.map(function(l){return l=String(l),o=dh(l),c=Math.max(o,c),{str:l,width:o}}).map(function(l){return new Array(u(c,l.width)+1).join(i)+l.str}),s?e.join(n):e}yt.left=function(t){return yt(t,{align:"left"})};yt.center=function(t){return yt(t,{align:"center"})};yt.right=function(t){return yt(t,{align:"right"})};Ba.exports=yt;function hh(e,t){return Math.floor((e-t)/2)}function ph(e,t){return e-t}});var Ja=v(ar=>{"use strict";a();Object.defineProperty(ar,"__esModule",{value:!0});ar.dedent=void 0;function Ha(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(o,c){var l=c.match(/\n([\t ]+|(?!\s).)/g);return l?o.concat(l.map(function(D){var f,h;return(h=(f=D.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):o},[]);if(i.length){var u=new RegExp(`
10
+ [ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(o){return o.replace(u,`
11
+ `)})}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return t.forEach(function(o,c){var l=s.match(/(?:^|\n)( *)$/),D=l?l[1]:"",f=o;typeof o=="string"&&o.includes(`
12
+ `)&&(f=String(o).split(`
13
+ `).map(function(h,d){return d===0?h:""+D+h}).join(`
14
+ `)),s+=f+n[c+1]}),s}ar.dedent=Ha;ar.default=Ha});a();a();var mi=(e=0)=>t=>`\x1B[${t+e}m`,Fi=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Ci=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,j={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Uh=Object.keys(j.modifier),tc=Object.keys(j.color),rc=Object.keys(j.bgColor),Wh=[...tc,...rc];function nc(){let e=new Map;for(let[t,r]of Object.entries(j)){for(let[n,i]of Object.entries(r))j[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=j[n],e.set(i[0],i[1]);Object.defineProperty(j,t,{value:r,enumerable:!1})}return Object.defineProperty(j,"codes",{value:e,enumerable:!1}),j.color.close="\x1B[39m",j.bgColor.close="\x1B[49m",j.color.ansi=mi(),j.color.ansi256=Fi(),j.color.ansi16m=Ci(),j.bgColor.ansi=mi(10),j.bgColor.ansi256=Fi(10),j.bgColor.ansi16m=Ci(10),Object.defineProperties(j,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(u=>u+u).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>j.rgbToAnsi256(...j.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let o=t%36;r=Math.floor(t/36)/5,n=Math.floor(o/6)/5,i=o%6/5}let u=Math.max(r,n,i)*2;if(u===0)return 30;let s=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return u===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>j.ansi256ToAnsi(j.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>j.ansi256ToAnsi(j.hexToAnsi256(t)),enumerable:!1}}),j}var ic=nc(),ye=ic;a();import Xr from"node:process";import uc from"node:os";import yi from"node:tty";function me(e,t=globalThis.Deno?globalThis.Deno.args:Xr.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:z}=Xr,cr;me("no-color")||me("no-colors")||me("color=false")||me("color=never")?cr=0:(me("color")||me("colors")||me("color=true")||me("color=always"))&&(cr=1);function sc(){if("FORCE_COLOR"in z)return z.FORCE_COLOR==="true"?1:z.FORCE_COLOR==="false"?0:z.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(z.FORCE_COLOR,10),3)}function oc(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ac(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=sc();n!==void 0&&(cr=n);let i=r?cr:n;if(i===0)return 0;if(r){if(me("color=16m")||me("color=full")||me("color=truecolor"))return 3;if(me("color=256"))return 2}if("TF_BUILD"in z&&"AGENT_NAME"in z)return 1;if(e&&!t&&i===void 0)return 0;let u=i||0;if(z.TERM==="dumb")return u;if(Xr.platform==="win32"){let s=uc.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in z)return"GITHUB_ACTIONS"in z||"GITEA_ACTIONS"in z?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in z)||z.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(z.TEAMCITY_VERSION)?1:0;if(z.COLORTERM==="truecolor"||z.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in z){let s=Number.parseInt((z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(z.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(z.TERM)||"COLORTERM"in z?1:u}function gi(e,t={}){let r=ac(e,{streamIsTTY:e&&e.isTTY,...t});return oc(r)}var cc={stdout:gi({isTTY:yi.isatty(1)}),stderr:gi({isTTY:yi.isatty(2)})},Ei=cc;a();function vi(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,u=0,s="";do s+=e.slice(u,n)+t+r,u=n+i,n=e.indexOf(t,u);while(n!==-1);return s+=e.slice(u),s}function wi(e,t,r,n){let i=0,u="";do{let s=e[n-1]==="\r";u+=e.slice(i,s?n-1:n)+t+(s?`\r
15
+ `:`
16
+ `)+r,i=n+1,n=e.indexOf(`
17
+ `,i)}while(n!==-1);return u+=e.slice(i),u}var{stdout:bi,stderr:xi}=Ei,Qr=Symbol("GENERATOR"),gt=Symbol("STYLER"),Ut=Symbol("IS_EMPTY"),Ai=["ansi","ansi","ansi256","ansi16m"],Et=Object.create(null),Dc=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=bi?bi.level:0;e.level=t.level===void 0?r:t.level},Si=class{constructor(t){return _i(t)}},_i=e=>{let t=(...r)=>r.join(" ");return Dc(t,e),Object.setPrototypeOf(t,Wt.prototype),t};function Wt(e){return _i(e)}Object.setPrototypeOf(Wt.prototype,Function.prototype);for(let[e,t]of Object.entries(ye))Et[e]={get(){let r=Dr(this,tn(t.open,t.close,this[gt]),this[Ut]);return Object.defineProperty(this,e,{value:r}),r}};Et.visible={get(){let e=Dr(this,this[gt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var en=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?ye[r].ansi16m(...n):t==="ansi256"?ye[r].ansi256(ye.rgbToAnsi256(...n)):ye[r].ansi(ye.rgbToAnsi(...n)):e==="hex"?en("rgb",t,r,...ye.hexToRgb(...n)):ye[r][e](...n),lc=["rgb","hex","ansi256"];for(let e of lc){Et[e]={get(){let{level:r}=this;return function(...n){let i=tn(en(e,Ai[r],"color",...n),ye.color.close,this[gt]);return Dr(this,i,this[Ut])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Et[t]={get(){let{level:r}=this;return function(...n){let i=tn(en(e,Ai[r],"bgColor",...n),ye.bgColor.close,this[gt]);return Dr(this,i,this[Ut])}}}}var fc=Object.defineProperties(()=>{},{...Et,level:{enumerable:!0,get(){return this[Qr].level},set(e){this[Qr].level=e}}}),tn=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Dr=(e,t,r)=>{let n=(...i)=>dc(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,fc),n[Qr]=e,n[gt]=t,n[Ut]=r,n},dc=(e,t)=>{if(e.level<=0||!t)return e[Ut]?"":t;let r=e[gt];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=vi(t,r.close,r.open),r=r.parent;let u=t.indexOf(`
18
+ `);return u!==-1&&(t=wi(t,i,n,u)),n+t+i};Object.defineProperties(Wt.prototype,Et);var hc=Wt(),Bi=Wt({level:xi?xi.level:0});var Be=hc;a();a();var B;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function r(i){throw new Error}e.assertNever=r,e.arrayToEnum=i=>{let u={};for(let s of i)u[s]=s;return u},e.getValidEnumValues=i=>{let u=e.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),s={};for(let o of u)s[o]=i[o];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(u){return i[u]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let u=[];for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&u.push(s);return u},e.find=(i,u)=>{for(let s of i)if(u(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,u=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(u)}e.joinValues=n,e.jsonStringifyReplacer=(i,u)=>typeof u=="bigint"?u.toString():u})(B||(B={}));var nn;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(nn||(nn={}));var E=B.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Re=e=>{switch(typeof e){case"undefined":return E.undefined;case"string":return E.string;case"number":return isNaN(e)?E.nan:E.number;case"boolean":return E.boolean;case"function":return E.function;case"bigint":return E.bigint;case"symbol":return E.symbol;case"object":return Array.isArray(e)?E.array:e===null?E.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?E.promise:typeof Map<"u"&&e instanceof Map?E.map:typeof Set<"u"&&e instanceof Set?E.set:typeof Date<"u"&&e instanceof Date?E.date:E.object;default:return E.unknown}},m=B.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),pc=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),de=class e extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){let r=t||function(u){return u.message},n={_errors:[]},i=u=>{for(let s of u.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)n._errors.push(r(s));else{let o=n,c=0;for(;c<s.path.length;){let l=s.path[c];c===s.path.length-1?(o[l]=o[l]||{_errors:[]},o[l]._errors.push(r(s))):o[l]=o[l]||{_errors:[]},o=o[l],c++}}};return i(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,B.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};de.create=e=>new de(e);var bt=(e,t)=>{let r;switch(e.code){case m.invalid_type:e.received===E.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case m.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,B.jsonStringifyReplacer)}`;break;case m.unrecognized_keys:r=`Unrecognized key(s) in object: ${B.joinValues(e.keys,", ")}`;break;case m.invalid_union:r="Invalid input";break;case m.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${B.joinValues(e.options)}`;break;case m.invalid_enum_value:r=`Invalid enum value. Expected ${B.joinValues(e.options)}, received '${e.received}'`;break;case m.invalid_arguments:r="Invalid function arguments";break;case m.invalid_return_type:r="Invalid function return type";break;case m.invalid_date:r="Invalid date";break;case m.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:B.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case m.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case m.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case m.custom:r="Invalid input";break;case m.invalid_intersection_types:r="Intersection results could not be merged";break;case m.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case m.not_finite:r="Number must be finite";break;default:r=t.defaultError,B.assertNever(e)}return{message:r}},ki=bt;function mc(e){ki=e}function lr(){return ki}var fr=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,u=[...r,...i.path||[]],s={...i,path:u};if(i.message!==void 0)return{...i,path:u,message:i.message};let o="",c=n.filter(l=>!!l).slice().reverse();for(let l of c)o=l(s,{data:t,defaultError:o}).message;return{...i,path:u,message:o}},Fc=[];function g(e,t){let r=lr(),n=fr({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===bt?void 0:bt].filter(i=>!!i)});e.common.issues.push(n)}var ie=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let i of r){if(i.status==="aborted")return x;i.status==="dirty"&&t.dirty(),n.push(i.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let i of r){let u=await i.key,s=await i.value;n.push({key:u,value:s})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let i of r){let{key:u,value:s}=i;if(u.status==="aborted"||s.status==="aborted")return x;u.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),u.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(n[u.value]=s.value)}return{status:t.value,value:n}}},x=Object.freeze({status:"aborted"}),wt=e=>({status:"dirty",value:e}),oe=e=>({status:"valid",value:e}),un=e=>e.status==="aborted",sn=e=>e.status==="dirty",Zt=e=>e.status==="valid",Vt=e=>typeof Promise<"u"&&e instanceof Promise;function dr(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function Oi(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}var w;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(w||(w={}));var qt,zt,Ce=class{constructor(t,r,n,i){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Li=(e,t)=>{if(Zt(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new de(e.common.issues);return this._error=r,this._error}}};function S(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,o)=>{var c,l;let{message:D}=e;return s.code==="invalid_enum_value"?{message:D??o.defaultError}:typeof o.data>"u"?{message:(c=D??n)!==null&&c!==void 0?c:o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:(l=D??r)!==null&&l!==void 0?l:o.defaultError}},description:i}}var _=class{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Re(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Re(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ie,ctx:{common:t.parent.common,data:t.data,parsedType:Re(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(Vt(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;let i={common:{issues:[],async:(n=r?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Re(t)},u=this._parseSync({data:t,path:i.path,parent:i});return Li(i,u)}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Re(t)},i=this._parse({data:t,path:n.path,parent:n}),u=await(Vt(i)?i:Promise.resolve(i));return Li(n,u)}refine(t,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,u)=>{let s=t(i),o=()=>u.addIssue({code:m.custom,...n(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(c=>c?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(t,r){return this._refinement((n,i)=>t(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(t){return new he({schema:this,typeName:b.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Fe.create(this,this._def)}nullable(){return Ae.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ke.create(this,this._def)}promise(){return je.create(this,this._def)}or(t){return nt.create([this,t],this._def)}and(t){return it.create(this,t,this._def)}transform(t){return new he({...S(this._def),schema:this,typeName:b.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new ct({...S(this._def),innerType:this,defaultValue:r,typeName:b.ZodDefault})}brand(){return new Yt({typeName:b.ZodBranded,type:this,...S(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new Dt({...S(this._def),innerType:this,catchValue:r,typeName:b.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Ht.create(this,t)}readonly(){return lt.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Cc=/^c[^\s-]{8,}$/i,yc=/^[0-9a-z]+$/,gc=/^[0-9A-HJKMNP-TV-Z]{26}$/,Ec=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,vc=/^[a-z0-9_-]{21}$/i,wc=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,bc=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,xc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",rn,Ac=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Sc=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,_c=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Pi="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Bc=new RegExp(`^${Pi}$`);function Ni(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function Lc(e){return new RegExp(`^${Ni(e)}$`)}function Ii(e){let t=`${Pi}T${Ni(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function Tc(e,t){return!!((t==="v4"||!t)&&Ac.test(e)||(t==="v6"||!t)&&Sc.test(e))}var $e=class e extends _{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==E.string){let u=this._getOrReturnCtx(t);return g(u,{code:m.invalid_type,expected:E.string,received:u.parsedType}),x}let n=new ie,i;for(let u of this._def.checks)if(u.kind==="min")t.data.length<u.value&&(i=this._getOrReturnCtx(t,i),g(i,{code:m.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),n.dirty());else if(u.kind==="max")t.data.length>u.value&&(i=this._getOrReturnCtx(t,i),g(i,{code:m.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),n.dirty());else if(u.kind==="length"){let s=t.data.length>u.value,o=t.data.length<u.value;(s||o)&&(i=this._getOrReturnCtx(t,i),s?g(i,{code:m.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):o&&g(i,{code:m.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),n.dirty())}else if(u.kind==="email")bc.test(t.data)||(i=this._getOrReturnCtx(t,i),g(i,{validation:"email",code:m.invalid_string,message:u.message}),n.dirty());else if(u.kind==="emoji")rn||(rn=new RegExp(xc,"u")),rn.test(t.data)||(i=this._getOrReturnCtx(t,i),g(i,{validation:"emoji",code:m.invalid_string,message:u.message}),n.dirty());else if(u.kind==="uuid")Ec.test(t.data)||(i=this._getOrReturnCtx(t,i),g(i,{validation:"uuid",code:m.invalid_string,message:u.message}),n.dirty());else if(u.kind==="nanoid")vc.test(t.data)||(i=this._getOrReturnCtx(t,i),g(i,{validation:"nanoid",code:m.invalid_string,message:u.message}),n.dirty());else if(u.kind==="cuid")Cc.test(t.data)||(i=this._getOrReturnCtx(t,i),g(i,{validation:"cuid",code:m.invalid_string,message:u.message}),n.dirty());else if(u.kind==="cuid2")yc.test(t.data)||(i=this._getOrReturnCtx(t,i),g(i,{validation:"cuid2",code:m.invalid_string,message:u.message}),n.dirty());else if(u.kind==="ulid")gc.test(t.data)||(i=this._getOrReturnCtx(t,i),g(i,{validation:"ulid",code:m.invalid_string,message:u.message}),n.dirty());else if(u.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),g(i,{validation:"url",code:m.invalid_string,message:u.message}),n.dirty()}else u.kind==="regex"?(u.regex.lastIndex=0,u.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),g(i,{validation:"regex",code:m.invalid_string,message:u.message}),n.dirty())):u.kind==="trim"?t.data=t.data.trim():u.kind==="includes"?t.data.includes(u.value,u.position)||(i=this._getOrReturnCtx(t,i),g(i,{code:m.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),n.dirty()):u.kind==="toLowerCase"?t.data=t.data.toLowerCase():u.kind==="toUpperCase"?t.data=t.data.toUpperCase():u.kind==="startsWith"?t.data.startsWith(u.value)||(i=this._getOrReturnCtx(t,i),g(i,{code:m.invalid_string,validation:{startsWith:u.value},message:u.message}),n.dirty()):u.kind==="endsWith"?t.data.endsWith(u.value)||(i=this._getOrReturnCtx(t,i),g(i,{code:m.invalid_string,validation:{endsWith:u.value},message:u.message}),n.dirty()):u.kind==="datetime"?Ii(u).test(t.data)||(i=this._getOrReturnCtx(t,i),g(i,{code:m.invalid_string,validation:"datetime",message:u.message}),n.dirty()):u.kind==="date"?Bc.test(t.data)||(i=this._getOrReturnCtx(t,i),g(i,{code:m.invalid_string,validation:"date",message:u.message}),n.dirty()):u.kind==="time"?Lc(u).test(t.data)||(i=this._getOrReturnCtx(t,i),g(i,{code:m.invalid_string,validation:"time",message:u.message}),n.dirty()):u.kind==="duration"?wc.test(t.data)||(i=this._getOrReturnCtx(t,i),g(i,{validation:"duration",code:m.invalid_string,message:u.message}),n.dirty()):u.kind==="ip"?Tc(t.data,u.version)||(i=this._getOrReturnCtx(t,i),g(i,{validation:"ip",code:m.invalid_string,message:u.message}),n.dirty()):u.kind==="base64"?_c.test(t.data)||(i=this._getOrReturnCtx(t,i),g(i,{validation:"base64",code:m.invalid_string,message:u.message}),n.dirty()):B.assertNever(u);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(i=>t.test(i),{validation:r,code:m.invalid_string,...w.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...w.errToObj(t)})}url(t){return this._addCheck({kind:"url",...w.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...w.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...w.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...w.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...w.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...w.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...w.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...w.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...w.errToObj(t)})}datetime(t){var r,n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:(r=t?.offset)!==null&&r!==void 0?r:!1,local:(n=t?.local)!==null&&n!==void 0?n:!1,...w.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...w.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...w.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...w.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...w.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...w.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...w.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...w.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...w.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...w.errToObj(r)})}nonempty(t){return this.min(1,w.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};$e.create=e=>{var t;return new $e({checks:[],typeName:b.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...S(e)})};function kc(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,u=parseInt(e.toFixed(i).replace(".","")),s=parseInt(t.toFixed(i).replace(".",""));return u%s/Math.pow(10,i)}var Ke=class e extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==E.number){let u=this._getOrReturnCtx(t);return g(u,{code:m.invalid_type,expected:E.number,received:u.parsedType}),x}let n,i=new ie;for(let u of this._def.checks)u.kind==="int"?B.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),g(n,{code:m.invalid_type,expected:"integer",received:"float",message:u.message}),i.dirty()):u.kind==="min"?(u.inclusive?t.data<u.value:t.data<=u.value)&&(n=this._getOrReturnCtx(t,n),g(n,{code:m.too_small,minimum:u.value,type:"number",inclusive:u.inclusive,exact:!1,message:u.message}),i.dirty()):u.kind==="max"?(u.inclusive?t.data>u.value:t.data>=u.value)&&(n=this._getOrReturnCtx(t,n),g(n,{code:m.too_big,maximum:u.value,type:"number",inclusive:u.inclusive,exact:!1,message:u.message}),i.dirty()):u.kind==="multipleOf"?kc(t.data,u.value)!==0&&(n=this._getOrReturnCtx(t,n),g(n,{code:m.not_multiple_of,multipleOf:u.value,message:u.message}),i.dirty()):u.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),g(n,{code:m.not_finite,message:u.message}),i.dirty()):B.assertNever(u);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,w.toString(r))}gt(t,r){return this.setLimit("min",t,!1,w.toString(r))}lte(t,r){return this.setLimit("max",t,!0,w.toString(r))}lt(t,r){return this.setLimit("max",t,!1,w.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:w.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:w.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:w.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:w.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:w.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:w.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:w.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:w.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:w.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:w.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&B.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}};Ke.create=e=>new Ke({checks:[],typeName:b.ZodNumber,coerce:e?.coerce||!1,...S(e)});var Xe=class e extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==E.bigint){let u=this._getOrReturnCtx(t);return g(u,{code:m.invalid_type,expected:E.bigint,received:u.parsedType}),x}let n,i=new ie;for(let u of this._def.checks)u.kind==="min"?(u.inclusive?t.data<u.value:t.data<=u.value)&&(n=this._getOrReturnCtx(t,n),g(n,{code:m.too_small,type:"bigint",minimum:u.value,inclusive:u.inclusive,message:u.message}),i.dirty()):u.kind==="max"?(u.inclusive?t.data>u.value:t.data>=u.value)&&(n=this._getOrReturnCtx(t,n),g(n,{code:m.too_big,type:"bigint",maximum:u.value,inclusive:u.inclusive,message:u.message}),i.dirty()):u.kind==="multipleOf"?t.data%u.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),g(n,{code:m.not_multiple_of,multipleOf:u.value,message:u.message}),i.dirty()):B.assertNever(u);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,w.toString(r))}gt(t,r){return this.setLimit("min",t,!1,w.toString(r))}lte(t,r){return this.setLimit("max",t,!0,w.toString(r))}lt(t,r){return this.setLimit("max",t,!1,w.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:w.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:w.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:w.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:w.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:w.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:w.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Xe.create=e=>{var t;return new Xe({checks:[],typeName:b.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...S(e)})};var Qe=class extends _{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==E.boolean){let n=this._getOrReturnCtx(t);return g(n,{code:m.invalid_type,expected:E.boolean,received:n.parsedType}),x}return oe(t.data)}};Qe.create=e=>new Qe({typeName:b.ZodBoolean,coerce:e?.coerce||!1,...S(e)});var et=class e extends _{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==E.date){let u=this._getOrReturnCtx(t);return g(u,{code:m.invalid_type,expected:E.date,received:u.parsedType}),x}if(isNaN(t.data.getTime())){let u=this._getOrReturnCtx(t);return g(u,{code:m.invalid_date}),x}let n=new ie,i;for(let u of this._def.checks)u.kind==="min"?t.data.getTime()<u.value&&(i=this._getOrReturnCtx(t,i),g(i,{code:m.too_small,message:u.message,inclusive:!0,exact:!1,minimum:u.value,type:"date"}),n.dirty()):u.kind==="max"?t.data.getTime()>u.value&&(i=this._getOrReturnCtx(t,i),g(i,{code:m.too_big,message:u.message,inclusive:!0,exact:!1,maximum:u.value,type:"date"}),n.dirty()):B.assertNever(u);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:w.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:w.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};et.create=e=>new et({checks:[],coerce:e?.coerce||!1,typeName:b.ZodDate,...S(e)});var xt=class extends _{_parse(t){if(this._getType(t)!==E.symbol){let n=this._getOrReturnCtx(t);return g(n,{code:m.invalid_type,expected:E.symbol,received:n.parsedType}),x}return oe(t.data)}};xt.create=e=>new xt({typeName:b.ZodSymbol,...S(e)});var tt=class extends _{_parse(t){if(this._getType(t)!==E.undefined){let n=this._getOrReturnCtx(t);return g(n,{code:m.invalid_type,expected:E.undefined,received:n.parsedType}),x}return oe(t.data)}};tt.create=e=>new tt({typeName:b.ZodUndefined,...S(e)});var rt=class extends _{_parse(t){if(this._getType(t)!==E.null){let n=this._getOrReturnCtx(t);return g(n,{code:m.invalid_type,expected:E.null,received:n.parsedType}),x}return oe(t.data)}};rt.create=e=>new rt({typeName:b.ZodNull,...S(e)});var Me=class extends _{constructor(){super(...arguments),this._any=!0}_parse(t){return oe(t.data)}};Me.create=e=>new Me({typeName:b.ZodAny,...S(e)});var Te=class extends _{constructor(){super(...arguments),this._unknown=!0}_parse(t){return oe(t.data)}};Te.create=e=>new Te({typeName:b.ZodUnknown,...S(e)});var ge=class extends _{_parse(t){let r=this._getOrReturnCtx(t);return g(r,{code:m.invalid_type,expected:E.never,received:r.parsedType}),x}};ge.create=e=>new ge({typeName:b.ZodNever,...S(e)});var At=class extends _{_parse(t){if(this._getType(t)!==E.undefined){let n=this._getOrReturnCtx(t);return g(n,{code:m.invalid_type,expected:E.void,received:n.parsedType}),x}return oe(t.data)}};At.create=e=>new At({typeName:b.ZodVoid,...S(e)});var ke=class e extends _{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),i=this._def;if(r.parsedType!==E.array)return g(r,{code:m.invalid_type,expected:E.array,received:r.parsedType}),x;if(i.exactLength!==null){let s=r.data.length>i.exactLength.value,o=r.data.length<i.exactLength.value;(s||o)&&(g(r,{code:s?m.too_big:m.too_small,minimum:o?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(g(r,{code:m.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(g(r,{code:m.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((s,o)=>i.type._parseAsync(new Ce(r,s,r.path,o)))).then(s=>ie.mergeArray(n,s));let u=[...r.data].map((s,o)=>i.type._parseSync(new Ce(r,s,r.path,o)));return ie.mergeArray(n,u)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:w.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:w.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:w.toString(r)}})}nonempty(t){return this.min(1,t)}};ke.create=(e,t)=>new ke({type:e,minLength:null,maxLength:null,exactLength:null,typeName:b.ZodArray,...S(t)});function vt(e){if(e instanceof fe){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=Fe.create(vt(n))}return new fe({...e._def,shape:()=>t})}else return e instanceof ke?new ke({...e._def,type:vt(e.element)}):e instanceof Fe?Fe.create(vt(e.unwrap())):e instanceof Ae?Ae.create(vt(e.unwrap())):e instanceof xe?xe.create(e.items.map(t=>vt(t))):e}var fe=class e extends _{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=B.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==E.object){let l=this._getOrReturnCtx(t);return g(l,{code:m.invalid_type,expected:E.object,received:l.parsedType}),x}let{status:n,ctx:i}=this._processInputParams(t),{shape:u,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof ge&&this._def.unknownKeys==="strip"))for(let l in i.data)s.includes(l)||o.push(l);let c=[];for(let l of s){let D=u[l],f=i.data[l];c.push({key:{status:"valid",value:l},value:D._parse(new Ce(i,f,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof ge){let l=this._def.unknownKeys;if(l==="passthrough")for(let D of o)c.push({key:{status:"valid",value:D},value:{status:"valid",value:i.data[D]}});else if(l==="strict")o.length>0&&(g(i,{code:m.unrecognized_keys,keys:o}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let D of o){let f=i.data[D];c.push({key:{status:"valid",value:D},value:l._parse(new Ce(i,f,i.path,D)),alwaysSet:D in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let l=[];for(let D of c){let f=await D.key,h=await D.value;l.push({key:f,value:h,alwaysSet:D.alwaysSet})}return l}).then(l=>ie.mergeObjectSync(n,l)):ie.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(t){return w.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var i,u,s,o;let c=(s=(u=(i=this._def).errorMap)===null||u===void 0?void 0:u.call(i,r,n).message)!==null&&s!==void 0?s:n.defaultError;return r.code==="unrecognized_keys"?{message:(o=w.errToObj(t).message)!==null&&o!==void 0?o:c}:{message:c}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:b.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};return B.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new e({...this._def,shape:()=>r})}omit(t){let r={};return B.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new e({...this._def,shape:()=>r})}deepPartial(){return vt(this)}partial(t){let r={};return B.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];t&&!t[n]?r[n]=i:r[n]=i.optional()}),new e({...this._def,shape:()=>r})}required(t){let r={};return B.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let u=this.shape[n];for(;u instanceof Fe;)u=u._def.innerType;r[n]=u}}),new e({...this._def,shape:()=>r})}keyof(){return Ri(B.objectKeys(this.shape))}};fe.create=(e,t)=>new fe({shape:()=>e,unknownKeys:"strip",catchall:ge.create(),typeName:b.ZodObject,...S(t)});fe.strictCreate=(e,t)=>new fe({shape:()=>e,unknownKeys:"strict",catchall:ge.create(),typeName:b.ZodObject,...S(t)});fe.lazycreate=(e,t)=>new fe({shape:e,unknownKeys:"strip",catchall:ge.create(),typeName:b.ZodObject,...S(t)});var nt=class extends _{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function i(u){for(let o of u)if(o.result.status==="valid")return o.result;for(let o of u)if(o.result.status==="dirty")return r.common.issues.push(...o.ctx.common.issues),o.result;let s=u.map(o=>new de(o.ctx.common.issues));return g(r,{code:m.invalid_union,unionErrors:s}),x}if(r.common.async)return Promise.all(n.map(async u=>{let s={...r,common:{...r.common,issues:[]},parent:null};return{result:await u._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(i);{let u,s=[];for(let c of n){let l={...r,common:{...r.common,issues:[]},parent:null},D=c._parseSync({data:r.data,path:r.path,parent:l});if(D.status==="valid")return D;D.status==="dirty"&&!u&&(u={result:D,ctx:l}),l.common.issues.length&&s.push(l.common.issues)}if(u)return r.common.issues.push(...u.ctx.common.issues),u.result;let o=s.map(c=>new de(c));return g(r,{code:m.invalid_union,unionErrors:o}),x}}get options(){return this._def.options}};nt.create=(e,t)=>new nt({options:e,typeName:b.ZodUnion,...S(t)});var Le=e=>e instanceof ut?Le(e.schema):e instanceof he?Le(e.innerType()):e instanceof st?[e.value]:e instanceof ot?e.options:e instanceof at?B.objectValues(e.enum):e instanceof ct?Le(e._def.innerType):e instanceof tt?[void 0]:e instanceof rt?[null]:e instanceof Fe?[void 0,...Le(e.unwrap())]:e instanceof Ae?[null,...Le(e.unwrap())]:e instanceof Yt||e instanceof lt?Le(e.unwrap()):e instanceof Dt?Le(e._def.innerType):[],hr=class e extends _{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==E.object)return g(r,{code:m.invalid_type,expected:E.object,received:r.parsedType}),x;let n=this.discriminator,i=r.data[n],u=this.optionsMap.get(i);return u?r.common.async?u._parseAsync({data:r.data,path:r.path,parent:r}):u._parseSync({data:r.data,path:r.path,parent:r}):(g(r,{code:m.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),x)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let i=new Map;for(let u of r){let s=Le(u.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let o of s){if(i.has(o))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(o)}`);i.set(o,u)}}return new e({typeName:b.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:i,...S(n)})}};function on(e,t){let r=Re(e),n=Re(t);if(e===t)return{valid:!0,data:e};if(r===E.object&&n===E.object){let i=B.objectKeys(t),u=B.objectKeys(e).filter(o=>i.indexOf(o)!==-1),s={...e,...t};for(let o of u){let c=on(e[o],t[o]);if(!c.valid)return{valid:!1};s[o]=c.data}return{valid:!0,data:s}}else if(r===E.array&&n===E.array){if(e.length!==t.length)return{valid:!1};let i=[];for(let u=0;u<e.length;u++){let s=e[u],o=t[u],c=on(s,o);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return r===E.date&&n===E.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var it=class extends _{_parse(t){let{status:r,ctx:n}=this._processInputParams(t),i=(u,s)=>{if(un(u)||un(s))return x;let o=on(u.value,s.value);return o.valid?((sn(u)||sn(s))&&r.dirty(),{status:r.value,value:o.data}):(g(n,{code:m.invalid_intersection_types}),x)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([u,s])=>i(u,s)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};it.create=(e,t,r)=>new it({left:e,right:t,typeName:b.ZodIntersection,...S(r)});var xe=class e extends _{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==E.array)return g(n,{code:m.invalid_type,expected:E.array,received:n.parsedType}),x;if(n.data.length<this._def.items.length)return g(n,{code:m.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),x;!this._def.rest&&n.data.length>this._def.items.length&&(g(n,{code:m.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let u=[...n.data].map((s,o)=>{let c=this._def.items[o]||this._def.rest;return c?c._parse(new Ce(n,s,n.path,o)):null}).filter(s=>!!s);return n.common.async?Promise.all(u).then(s=>ie.mergeArray(r,s)):ie.mergeArray(r,u)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};xe.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new xe({items:e,typeName:b.ZodTuple,rest:null,...S(t)})};var pr=class e extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==E.object)return g(n,{code:m.invalid_type,expected:E.object,received:n.parsedType}),x;let i=[],u=this._def.keyType,s=this._def.valueType;for(let o in n.data)i.push({key:u._parse(new Ce(n,o,n.path,o)),value:s._parse(new Ce(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?ie.mergeObjectAsync(r,i):ie.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof _?new e({keyType:t,valueType:r,typeName:b.ZodRecord,...S(n)}):new e({keyType:$e.create(),valueType:t,typeName:b.ZodRecord,...S(r)})}},St=class extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==E.map)return g(n,{code:m.invalid_type,expected:E.map,received:n.parsedType}),x;let i=this._def.keyType,u=this._def.valueType,s=[...n.data.entries()].map(([o,c],l)=>({key:i._parse(new Ce(n,o,n.path,[l,"key"])),value:u._parse(new Ce(n,c,n.path,[l,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let c of s){let l=await c.key,D=await c.value;if(l.status==="aborted"||D.status==="aborted")return x;(l.status==="dirty"||D.status==="dirty")&&r.dirty(),o.set(l.value,D.value)}return{status:r.value,value:o}})}else{let o=new Map;for(let c of s){let l=c.key,D=c.value;if(l.status==="aborted"||D.status==="aborted")return x;(l.status==="dirty"||D.status==="dirty")&&r.dirty(),o.set(l.value,D.value)}return{status:r.value,value:o}}}};St.create=(e,t,r)=>new St({valueType:t,keyType:e,typeName:b.ZodMap,...S(r)});var _t=class e extends _{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==E.set)return g(n,{code:m.invalid_type,expected:E.set,received:n.parsedType}),x;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(g(n,{code:m.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(g(n,{code:m.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let u=this._def.valueType;function s(c){let l=new Set;for(let D of c){if(D.status==="aborted")return x;D.status==="dirty"&&r.dirty(),l.add(D.value)}return{status:r.value,value:l}}let o=[...n.data.values()].map((c,l)=>u._parse(new Ce(n,c,n.path,l)));return n.common.async?Promise.all(o).then(c=>s(c)):s(o)}min(t,r){return new e({...this._def,minSize:{value:t,message:w.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:w.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};_t.create=(e,t)=>new _t({valueType:e,minSize:null,maxSize:null,typeName:b.ZodSet,...S(t)});var mr=class e extends _{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==E.function)return g(r,{code:m.invalid_type,expected:E.function,received:r.parsedType}),x;function n(o,c){return fr({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,lr(),bt].filter(l=>!!l),issueData:{code:m.invalid_arguments,argumentsError:c}})}function i(o,c){return fr({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,lr(),bt].filter(l=>!!l),issueData:{code:m.invalid_return_type,returnTypeError:c}})}let u={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof je){let o=this;return oe(async function(...c){let l=new de([]),D=await o._def.args.parseAsync(c,u).catch(d=>{throw l.addIssue(n(c,d)),l}),f=await Reflect.apply(s,this,D);return await o._def.returns._def.type.parseAsync(f,u).catch(d=>{throw l.addIssue(i(f,d)),l})})}else{let o=this;return oe(function(...c){let l=o._def.args.safeParse(c,u);if(!l.success)throw new de([n(c,l.error)]);let D=Reflect.apply(s,this,l.data),f=o._def.returns.safeParse(D,u);if(!f.success)throw new de([i(D,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:xe.create(t).rest(Te.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||xe.create([]).rest(Te.create()),returns:r||Te.create(),typeName:b.ZodFunction,...S(n)})}},ut=class extends _{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};ut.create=(e,t)=>new ut({getter:e,typeName:b.ZodLazy,...S(t)});var st=class extends _{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return g(r,{received:r.data,code:m.invalid_literal,expected:this._def.value}),x}return{status:"valid",value:t.data}}get value(){return this._def.value}};st.create=(e,t)=>new st({value:e,typeName:b.ZodLiteral,...S(t)});function Ri(e,t){return new ot({values:e,typeName:b.ZodEnum,...S(t)})}var ot=class e extends _{constructor(){super(...arguments),qt.set(this,void 0)}_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return g(r,{expected:B.joinValues(n),received:r.parsedType,code:m.invalid_type}),x}if(dr(this,qt,"f")||Oi(this,qt,new Set(this._def.values),"f"),!dr(this,qt,"f").has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return g(r,{received:r.data,code:m.invalid_enum_value,options:n}),x}return oe(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};qt=new WeakMap;ot.create=Ri;var at=class extends _{constructor(){super(...arguments),zt.set(this,void 0)}_parse(t){let r=B.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==E.string&&n.parsedType!==E.number){let i=B.objectValues(r);return g(n,{expected:B.joinValues(i),received:n.parsedType,code:m.invalid_type}),x}if(dr(this,zt,"f")||Oi(this,zt,new Set(B.getValidEnumValues(this._def.values)),"f"),!dr(this,zt,"f").has(t.data)){let i=B.objectValues(r);return g(n,{received:n.data,code:m.invalid_enum_value,options:i}),x}return oe(t.data)}get enum(){return this._def.values}};zt=new WeakMap;at.create=(e,t)=>new at({values:e,typeName:b.ZodNativeEnum,...S(t)});var je=class extends _{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==E.promise&&r.common.async===!1)return g(r,{code:m.invalid_type,expected:E.promise,received:r.parsedType}),x;let n=r.parsedType===E.promise?r.data:Promise.resolve(r.data);return oe(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};je.create=(e,t)=>new je({type:e,typeName:b.ZodPromise,...S(t)});var he=class extends _{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===b.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),i=this._def.effect||null,u={addIssue:s=>{g(n,s),s.fatal?r.abort():r.dirty()},get path(){return n.path}};if(u.addIssue=u.addIssue.bind(u),i.type==="preprocess"){let s=i.transform(n.data,u);if(n.common.async)return Promise.resolve(s).then(async o=>{if(r.value==="aborted")return x;let c=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return c.status==="aborted"?x:c.status==="dirty"||r.value==="dirty"?wt(c.value):c});{if(r.value==="aborted")return x;let o=this._def.schema._parseSync({data:s,path:n.path,parent:n});return o.status==="aborted"?x:o.status==="dirty"||r.value==="dirty"?wt(o.value):o}}if(i.type==="refinement"){let s=o=>{let c=i.refinement(o,u);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?x:(o.status==="dirty"&&r.dirty(),s(o.value),{status:r.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?x:(o.status==="dirty"&&r.dirty(),s(o.value).then(()=>({status:r.value,value:o.value}))))}if(i.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Zt(s))return s;let o=i.transform(s.value,u);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>Zt(s)?Promise.resolve(i.transform(s.value,u)).then(o=>({status:r.value,value:o})):s);B.assertNever(i)}};he.create=(e,t,r)=>new he({schema:e,typeName:b.ZodEffects,effect:t,...S(r)});he.createWithPreprocess=(e,t,r)=>new he({schema:t,effect:{type:"preprocess",transform:e},typeName:b.ZodEffects,...S(r)});var Fe=class extends _{_parse(t){return this._getType(t)===E.undefined?oe(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Fe.create=(e,t)=>new Fe({innerType:e,typeName:b.ZodOptional,...S(t)});var Ae=class extends _{_parse(t){return this._getType(t)===E.null?oe(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ae.create=(e,t)=>new Ae({innerType:e,typeName:b.ZodNullable,...S(t)});var ct=class extends _{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===E.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};ct.create=(e,t)=>new ct({innerType:e,typeName:b.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...S(t)});var Dt=class extends _{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Vt(i)?i.then(u=>({status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new de(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new de(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Dt.create=(e,t)=>new Dt({innerType:e,typeName:b.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...S(t)});var Bt=class extends _{_parse(t){if(this._getType(t)!==E.nan){let n=this._getOrReturnCtx(t);return g(n,{code:m.invalid_type,expected:E.nan,received:n.parsedType}),x}return{status:"valid",value:t.data}}};Bt.create=e=>new Bt({typeName:b.ZodNaN,...S(e)});var Oc=Symbol("zod_brand"),Yt=class extends _{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Ht=class e extends _{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let u=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return u.status==="aborted"?x:u.status==="dirty"?(r.dirty(),wt(u.value)):this._def.out._parseAsync({data:u.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?x:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:b.ZodPipeline})}},lt=class extends _{_parse(t){let r=this._def.innerType._parse(t),n=i=>(Zt(i)&&(i.value=Object.freeze(i.value)),i);return Vt(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}};lt.create=(e,t)=>new lt({innerType:e,typeName:b.ZodReadonly,...S(t)});function $i(e,t={},r){return e?Me.create().superRefine((n,i)=>{var u,s;if(!e(n)){let o=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,c=(s=(u=o.fatal)!==null&&u!==void 0?u:r)!==null&&s!==void 0?s:!0,l=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...l,fatal:c})}}):Me.create()}var Pc={object:fe.lazycreate},b;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(b||(b={}));var Nc=(e,t={message:`Input not instance of ${e.name}`})=>$i(r=>r instanceof e,t),Mi=$e.create,ji=Ke.create,Ic=Bt.create,Rc=Xe.create,Gi=Qe.create,$c=et.create,Mc=xt.create,jc=tt.create,Gc=rt.create,Uc=Me.create,Wc=Te.create,qc=ge.create,zc=At.create,Zc=ke.create,Vc=fe.create,Yc=fe.strictCreate,Hc=nt.create,Jc=hr.create,Kc=it.create,Xc=xe.create,Qc=pr.create,eD=St.create,tD=_t.create,rD=mr.create,nD=ut.create,iD=st.create,uD=ot.create,sD=at.create,oD=je.create,Ti=he.create,aD=Fe.create,cD=Ae.create,DD=he.createWithPreprocess,lD=Ht.create,fD=()=>Mi().optional(),dD=()=>ji().optional(),hD=()=>Gi().optional(),pD={string:e=>$e.create({...e,coerce:!0}),number:e=>Ke.create({...e,coerce:!0}),boolean:e=>Qe.create({...e,coerce:!0}),bigint:e=>Xe.create({...e,coerce:!0}),date:e=>et.create({...e,coerce:!0})},mD=x,k=Object.freeze({__proto__:null,defaultErrorMap:bt,setErrorMap:mc,getErrorMap:lr,makeIssue:fr,EMPTY_PATH:Fc,addIssueToContext:g,ParseStatus:ie,INVALID:x,DIRTY:wt,OK:oe,isAborted:un,isDirty:sn,isValid:Zt,isAsync:Vt,get util(){return B},get objectUtil(){return nn},ZodParsedType:E,getParsedType:Re,ZodType:_,datetimeRegex:Ii,ZodString:$e,ZodNumber:Ke,ZodBigInt:Xe,ZodBoolean:Qe,ZodDate:et,ZodSymbol:xt,ZodUndefined:tt,ZodNull:rt,ZodAny:Me,ZodUnknown:Te,ZodNever:ge,ZodVoid:At,ZodArray:ke,ZodObject:fe,ZodUnion:nt,ZodDiscriminatedUnion:hr,ZodIntersection:it,ZodTuple:xe,ZodRecord:pr,ZodMap:St,ZodSet:_t,ZodFunction:mr,ZodLazy:ut,ZodLiteral:st,ZodEnum:ot,ZodNativeEnum:at,ZodPromise:je,ZodEffects:he,ZodTransformer:he,ZodOptional:Fe,ZodNullable:Ae,ZodDefault:ct,ZodCatch:Dt,ZodNaN:Bt,BRAND:Oc,ZodBranded:Yt,ZodPipeline:Ht,ZodReadonly:lt,custom:$i,Schema:_,ZodSchema:_,late:Pc,get ZodFirstPartyTypeKind(){return b},coerce:pD,any:Uc,array:Zc,bigint:Rc,boolean:Gi,date:$c,discriminatedUnion:Jc,effect:Ti,enum:uD,function:rD,instanceof:Nc,intersection:Kc,lazy:nD,literal:iD,map:eD,nan:Ic,nativeEnum:sD,never:qc,null:Gc,nullable:cD,number:ji,object:Vc,oboolean:hD,onumber:dD,optional:aD,ostring:fD,pipeline:lD,preprocess:DD,promise:oD,record:Qc,set:tD,strictObject:Yc,string:Mi,symbol:Mc,transformer:Ti,tuple:Xc,undefined:jc,union:Hc,unknown:Wc,void:zc,NEVER:mD,ZodIssueCode:m,quotelessJson:pc,ZodError:de});var op=e=>e==null,an=e=>typeof e=="string",ft=e=>typeof e=="object"&&e!==null,Ui=Array.isArray,Wi=e=>typeof e=="function",ap=e=>e instanceof Error,cp=e=>k.object({type:k.string(),code:k.number(),reason:k.string(),wasClean:k.boolean()}).safeParse(e).success,Dp=e=>k.object({type:k.string(),message:k.string(),error:k.any()}).safeParse(e).success,lp=e=>k.union([k.object({data:k.record(k.unknown())}),k.object({errors:k.array(k.object({message:k.string()}))}),k.object({data:k.record(k.unknown()),errors:k.array(k.object({message:k.string()}))})]).safeParse(e).success,fp=e=>k.array(k.object({message:k.string(),extensions:k.record(k.unknown()).nullish().transform(t=>t??{})})).min(1).safeParse(e).success,dp=e=>{throw new Error(`Unexpected value: ${e}`)},hp=e=>e instanceof Error&&e.name==="AbortError"||e instanceof Event&&e.type==="abort",pp=e=>ft(e)&&"code"in e&&e.code==="ENOENT",mp=e=>ft(e)&&"code"in e&&e.code==="ENOTEMPTY",Fp=e=>ft(e)&&"code"in e&&e.code==="ENOTDIR",Cp=e=>ft(e)&&"code"in e&&e.code==="EEXIST",yp=e=>[".js",".jsx",".cjs",".mjs"].some(t=>e.endsWith(t)),gp=e=>[".ts",".tsx",".cts",".mts"].some(t=>e.endsWith(t)&&!e.endsWith(".d.ts")),Ep=e=>e.endsWith(".gelly");a();a();var FD=(e,t,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;let i=Object.getOwnPropertyDescriptor(e,r),u=Object.getOwnPropertyDescriptor(t,r);!CD(i,u)&&n||Object.defineProperty(e,r,u)},CD=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},yD=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},gD=(e,t)=>`/* Wrapped ${e}*/
19
+ ${t}`,ED=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),vD=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),wD=(e,t,r)=>{let n=r===""?"":`with ${r.trim()}() `,i=gD.bind(null,n,t.toString());Object.defineProperty(i,"name",vD);let{writable:u,enumerable:s,configurable:o}=ED;Object.defineProperty(e,"toString",{value:i,writable:u,enumerable:s,configurable:o})};function Fr(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let i of Reflect.ownKeys(t))FD(e,t,i,r);return yD(e,t),wD(e,t,n),e}import bD from"node:assert";a();var xD=new Set;var AD=(...e)=>String(e[0]),zi=(...e)=>e.map(String).join(":");function Zi(e,t){let r;t?r=e:(t=e,r=AD);let n=new Map,i=(...u)=>{let s=r(...u);if(n.has(s))return n.get(s);bD(t,"fn shouldn't be undefined");let o=t(...u);return n.set(s,o),o};return i.clear=n.clear.bind(n),xD.add(i),Fr(i,t),i}var Tp=(e,t)=>{let r,n,i,u=(...s)=>{n=()=>(n=void 0,r=void 0,i?i=i.then(()=>t(...s)).catch(qi).finally(()=>i=void 0):i=t(...s).catch(qi).finally(()=>i=void 0),i),clearTimeout(r),r=setTimeout(n,e)};return u.flush=async()=>{n&&await n()},Fr(u,t),u};var Cr=(e,...t)=>Wi(e)?e(...t):e,qi=(...e)=>{};a();a();import Kt from"node:path";a();import BD from"node:process";import LD from"node:path";import zp,{promises as Vi}from"node:fs";import{fileURLToPath as TD}from"node:url";a();a();a();var cn=class{value;next;constructor(t){this.value=t}},Jt=class{#t;#u;#r;constructor(){this.clear()}enqueue(t){let r=new cn(t);this.#t?(this.#u.next=r,this.#u=r):(this.#t=r,this.#u=r),this.#r++}dequeue(){let t=this.#t;if(t)return this.#t=this.#t.next,this.#r--,t.value}peek(){if(this.#t)return this.#t.value}clear(){this.#t=void 0,this.#u=void 0,this.#r=0}get size(){return this.#r}*[Symbol.iterator](){let t=this.#t;for(;t;)yield t.value,t=t.next}};function yr(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new Jt,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(o,c,l)=>{r++;let D=(async()=>o(...l))();c(D);try{await D}catch{}n()},u=(o,c,l)=>{t.enqueue(i.bind(void 0,o,c,l)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},s=(o,...c)=>new Promise(l=>{u(o,l,c)});return Object.defineProperties(s,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),s}var gr=class extends Error{constructor(t){super(),this.value=t}},SD=async(e,t)=>t(await e),_D=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new gr(t[0]);return!1};async function Dn(e,t,{concurrency:r=Number.POSITIVE_INFINITY,preserveOrder:n=!0}={}){let i=yr(r),u=[...e].map(o=>[o,i(SD,o,t)]),s=yr(n?1:Number.POSITIVE_INFINITY);try{await Promise.all(u.map(o=>s(_D,o)))}catch(o){if(o instanceof gr)return o.value;throw o}}var Yi={directory:"isDirectory",file:"isFile"};function kD(e){if(!Object.hasOwnProperty.call(Yi,e))throw new Error(`Invalid type specified: ${e}`)}var OD=(e,t)=>t[Yi[e]](),PD=e=>e instanceof URL?TD(e):e;async function ln(e,{cwd:t=BD.cwd(),type:r="file",allowSymlinks:n=!0,concurrency:i,preserveOrder:u}={}){kD(r),t=PD(t);let s=n?Vi.stat:Vi.lstat;return Dn(e,async o=>{try{let c=await s(LD.resolve(t,o));return OD(r,c)}catch{return!1}},{concurrency:i,preserveOrder:u})}a();import{fileURLToPath as ND}from"node:url";function fn(e){return e instanceof URL?ND(e):e}a();var ID=Symbol("findUpStop");async function RD(e,t={}){let r=Kt.resolve(fn(t.cwd)??""),{root:n}=Kt.parse(r),i=Kt.resolve(r,fn(t.stopAt??n)),u=t.limit??Number.POSITIVE_INFINITY,s=[e].flat(),o=async l=>{if(typeof e!="function")return ln(s,l);let D=await e(l.cwd);return typeof D=="string"?ln([D],l):D},c=[];for(;;){let l=await o({...t,cwd:r});if(l===ID||(l&&c.push(Kt.resolve(r,l)),r===i||c.length>=u))break;r=Kt.dirname(r)}return c}async function Hi(e,t={}){return(await RD(e,{...t,limit:1}))[0]}var Mo=Je(Ws(),1),jo=Je($o(),1);import Rd from"node:assert";import{fileURLToPath as $d}from"node:url";var Gn=await Hi("package.json",{cwd:$d(import.meta.url)});Rd(Gn!==void 0,"Could not find package.json for the ggt package.");var DF=Gn,Ir=await Mo.default.readJson(Gn);(0,jo.default)(Ir,!0);a();a();import Wo from"node:process";import Wd from"node:os";import qd from"node:fs";a();import Gd from"node:fs";a();import Go from"node:fs";var Un;function Md(){try{return Go.statSync("/.dockerenv"),!0}catch{return!1}}function jd(){try{return Go.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function Wn(){return Un===void 0&&(Un=Md()||jd()),Un}var qn,Ud=()=>{try{return Gd.statSync("/run/.containerenv"),!0}catch{return!1}};function Rr(){return qn===void 0&&(qn=Ud()||Wn()),qn}var Uo=()=>{if(Wo.platform!=="linux")return!1;if(Wd.release().toLowerCase().includes("microsoft"))return!Rr();try{return qd.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Rr():!1}catch{return!1}},zn=Wo.env.__IS_WSL_TEST__?Uo:Uo();import Rt from"node:os";import ve from"node:path";import N from"node:process";a();import zd from"node:assert";a();var qo=(e,t,r)=>Math.max(t,Math.min(r,e));var Ye={TRACE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,PRINT:6},zo=Zi(zi,(e,t)=>{let r=k.enum(["TRACE","DEBUG","INFO","WARN","ERROR"]).transform(n=>Ye[n]).safeParse(String(e).toUpperCase());return r.success||(r=k.number().min(Ye.TRACE).max(Ye.ERROR).safeParse(Number(e))),r.success?r.data:t}),kF=e=>(zd(e>0,"verbosity must be greater than 0"),qo(Ye.INFO+1-e,Ye.TRACE,Ye.INFO));a();import Zd from"node:process";var pt={get value(){return Zd.env.GGT_ENV||"production"},get productionLike(){return!this.developmentOrTestLike},get developmentLike(){return this.value.startsWith("development")},get testLike(){return this.value.startsWith("test")},get developmentOrTestLike(){return this.developmentLike||this.testLike}};var $r={get logLevel(){return zo(N.env.GGT_LOG_LEVEL,Ye.PRINT)},get logFormat(){return N.env.GGT_LOG_FORMAT==="json"?"json":"pretty"},get versionFull(){return`${Ir.name}/${Ir.version} ${this.platform}-${this.arch} node-${N.version}`},get arch(){return Rt.arch()==="ia32"?"x86":Rt.arch()},get platform(){return zn?"wsl":Rt.platform()},get windows(){return N.platform==="win32"},get windowsOrWsl(){return this.windows||zn},get macos(){return N.platform==="darwin"},get shell(){let e=N.env.SHELL??Rt.userInfo().shell?.split(ve.sep).pop();return e?e.split("/").at(-1):this.windows&&N.env.COMSPEC?N.env.COMSPEC.split(/\\|\//).at(-1):"unknown"},get homeDir(){if(N.env.HOME)return N.env.HOME;if(this.windows){if(N.env.HOMEDRIVE&&N.env.HOMEPATH)return ve.join(N.env.HOMEDRIVE,N.env.HOMEPATH);if(N.env.USERPROFILE)return N.env.USERPROFILE}return Rt.homedir()||Rt.tmpdir()},get configDir(){if(N.env.GGT_CONFIG_DIR)return N.env.GGT_CONFIG_DIR;let e=N.env.XDG_CONFIG_HOME||this.windows&&N.env.LOCALAPPDATA||ve.join(this.homeDir,".config");return ve.join(e,"ggt")},get cacheDir(){if(N.env.GGT_CACHE_DIR)return N.env.GGT_CACHE_DIR;if(this.macos)return ve.join(this.homeDir,"Library/Caches/ggt");let e=N.env.XDG_CACHE_HOME||this.windows&&N.env.LOCALAPPDATA||ve.join(this.homeDir,".cache");return ve.join(e,"ggt")},get dataDir(){if(N.env.GGT_DATA_DIR)return N.env.GGT_DATA_DIR;let e=N.env.XDG_DATA_HOME||this.windows&&N.env.LOCALAPPDATA||ve.join(this.homeDir,".local/share");return ve.join(e,"ggt")},domains:{get app(){return N.env.GGT_GADGET_APP_DOMAIN||(pt.productionLike?"gadget.app":"ggt.pub")},get services(){return N.env.GGT_GADGET_SERVICES_DOMAIN||(pt.productionLike?"app.gadget.dev":"app.ggt.dev")}}},zF=(...e)=>ve.join($r.configDir,...e),ZF=(...e)=>ve.join($r.homeDir,...e);a();a();import ua from"node:process";a();var ra=Je(Ho(),1),na=Je(ta(),1);import Yd from"node:process";var Hd=(0,ra.default)(()=>{(0,na.default)(()=>{Yd.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),ia=Hd;var zr=!1,Gt={};Gt.show=(e=ua.stderr)=>{e.isTTY&&(zr=!1,e.write("\x1B[?25h"))};Gt.hide=(e=ua.stderr)=>{e.isTTY&&(ia(),zr=!0,e.write("\x1B[?25l"))};Gt.toggle=(e,t)=>{e!==void 0&&(zr=e),zr?Gt.show(t):Gt.hide(t)};var Hn=Gt;a();function Jn({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}import ei from"node:assert";import we from"node:process";a();import _e from"node:process";var Jd=3,Kn=class{#t=0;start(){this.#t++,this.#t===1&&this.#u()}stop(){if(this.#t<=0)throw new Error("`stop` called more times than `start`");this.#t--,this.#t===0&&this.#r()}#u(){_e.platform==="win32"||!_e.stdin.isTTY||(_e.stdin.setRawMode(!0),_e.stdin.on("data",this.#d),_e.stdin.resume())}#r(){_e.stdin.isTTY&&(_e.stdin.off("data",this.#d),_e.stdin.pause(),_e.stdin.setRawMode(!1))}#d(t){t[0]===Jd&&_e.emit("SIGINT")}},Kd=new Kn,Xn=Kd;a();a();a();function Qn({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var Xd=Qn();function Ct(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Xd,"")}a();a();function sa(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function oa(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function aa(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function Qd(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function ca(e,{ambiguousAsWide:t=!1}={}){return Qd(e),oa(e)||aa(e)||t&&sa(e)?2:1}var fa=Je(la(),1),eh=new Intl.Segmenter,th=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function ne(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(e=Ct(e)),e.length===0)return 0;let i=0,u={ambiguousAsWide:!r};for(let{segment:s}of eh.segment(e)){let o=s.codePointAt(0);if(!(o<=31||o>=127&&o<=159)&&!(o>=8203&&o<=8207||o===65279)&&!(o>=768&&o<=879||o>=6832&&o<=6911||o>=7616&&o<=7679||o>=8400&&o<=8447||o>=65056&&o<=65071)&&!(o>=55296&&o<=57343)&&!(o>=65024&&o<=65039)&&!th.test(s)){if((0,fa.default)().test(s)){i+=2;continue}i+=ca(o,u)}}return i}var Zr=!1,ti=class{lastPrintedLineWasEmpty=!0;lastStickyLineWasEmpty=!0;_promptText="";_spinnerText="";_footerText="";_stickyTextLinesToClear=0;constructor(){we.stdout.on("error",t=>{if(!(ft(t)&&"code"in t&&t.code==="EPIPE"))throw t}),we.stderr.on("error",t=>{if(!(ft(t)&&"code"in t&&t.code==="EPIPE"))throw t})}get isInteractive(){return!pt.testLike&&Jn({stream:we.stdout})}writeStdout(t){this._clearStickyText(),t=this._stripUnnecessaryNewLines(t,this.lastPrintedLineWasEmpty),this._writeStdout(t),this.lastPrintedLineWasEmpty=t===`
20
+ `||t.endsWith(`
21
+
22
+ `),this.lastStickyLineWasEmpty=this.lastPrintedLineWasEmpty,this._writeStickyText()}writeStderr(t){this._clearStickyText(),t=this._stripUnnecessaryNewLines(t,this.lastPrintedLineWasEmpty),this._writeStderr(t),this.lastPrintedLineWasEmpty=t===`
23
+ `||t.endsWith(`
24
+
25
+ `),this.lastStickyLineWasEmpty=this.lastPrintedLineWasEmpty,this._writeStickyText()}updatePrompt(t){ei(this.isInteractive,"cannot update prompt in non-interactive mode"),this._promptText=Cr(t,this._promptText),this._writeStickyText()}persistPrompt(t=this._promptText){this._promptText="",this.writeStdout(t)}updateSpinner(t){ei(this.isInteractive,"cannot update spinner in non-interactive mode"),this._spinnerText=Cr(t,this._spinnerText),this._writeStickyText()}persistSpinner(t=this._spinnerText){this._spinnerText="",this.writeStdout(t)}updateFooter(t){ei(this.isInteractive,"cannot update footer in non-interactive mode"),this._footerText=Cr(t,this._footerText),this._writeStickyText()}persistFooter(t=this._footerText){this._footerText="",this.writeStdout(t)}_writeStdout(t){if(t!==""){if(!pt.testLike){we.stdout.write(t);return}t.endsWith(`
26
+ `)&&(t=t.slice(0,-1)),console.log(t)}}_writeStderr(t){if(t!==""){if(!pt.testLike){we.stderr.write(t);return}t.endsWith(`
27
+ `)&&(t=t.slice(0,-1)),console.error(t)}}_clearStickyText(){if(this.lastStickyLineWasEmpty=this.lastPrintedLineWasEmpty,this._stickyTextLinesToClear!==0){we.stderr.cursorTo(0);for(let t=0;t<this._stickyTextLinesToClear;t++)t>0&&we.stderr.moveCursor(0,-1),we.stderr.clearLine(1);this._stickyTextLinesToClear=0}}_writeStickyText(){if(!this.isInteractive)return;this._clearStickyText();let t="";this._promptText&&(t+=this._stripUnnecessaryNewLines(this._promptText,this.lastStickyLineWasEmpty),this.lastStickyLineWasEmpty=t===`
28
+ `||t.endsWith(`
29
+
30
+ `)),this._spinnerText&&(t+=this._stripUnnecessaryNewLines(this._spinnerText,this.lastStickyLineWasEmpty),this.lastStickyLineWasEmpty=t===`
31
+ `||t.endsWith(`
32
+
33
+ `)),this._footerText&&(t+=this._stripUnnecessaryNewLines(this._footerText,this.lastStickyLineWasEmpty),this.lastStickyLineWasEmpty=t===`
34
+ `||t.endsWith(`
35
+
36
+ `)),this._writeStderr(t),this._updateStickyTextLinesToClear(t),Zr&&!t?(Hn.show(we.stderr),Xn.stop(),Zr=!1):!Zr&&t&&(Hn.hide(we.stderr),Xn.start(),Zr=!0)}_updateStickyTextLinesToClear(t){for(let r of Ct(t).split(/\r?\n/)){let n=ne(r,{countAnsiEscapeCodes:!0}),i=Math.ceil(n/we.stderr.columns);this._stickyTextLinesToClear+=Math.max(1,i)}}_stripUnnecessaryNewLines(t,r){let n=-1;for(;(n=t.indexOf(`
37
+
38
+
39
+ `))!==-1;)t=t.slice(0,n)+t.slice(n+1);if(r)for(;t.startsWith(`
40
+ `);)t=t.slice(1);return t}},ri=new ti;a();a();import Kr from"node:process";a();function Vr(e){let t=0;for(let r of e.split(`
41
+ `))t=Math.max(t,ne(r));return t}a();var da={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}};var ha=da;a();var nh=/[\p{Lu}]/u,ih=/[\p{Ll}]/u,pa=/^[\p{Lu}](?![\p{Lu}])/gu,Ca=/([\p{Alpha}\p{N}_]|$)/u,ni=/[_.\- ]+/,uh=new RegExp("^"+ni.source),ma=new RegExp(ni.source+Ca.source,"gu"),Fa=new RegExp("\\d+"+Ca.source,"gu"),sh=(e,t,r,n)=>{let i=!1,u=!1,s=!1,o=!1;for(let c=0;c<e.length;c++){let l=e[c];o=c>2?e[c-3]==="-":!0,i&&nh.test(l)?(e=e.slice(0,c)+"-"+e.slice(c),i=!1,s=u,u=!0,c++):u&&s&&ih.test(l)&&(!o||n)?(e=e.slice(0,c-1)+"-"+e.slice(c-1),s=u,u=!1,i=!0):(i=t(l)===l&&r(l)!==l,s=u,u=r(l)===l&&t(l)!==l)}return e},oh=(e,t)=>(pa.lastIndex=0,e.replaceAll(pa,r=>t(r))),ah=(e,t)=>(ma.lastIndex=0,Fa.lastIndex=0,e.replaceAll(Fa,(r,n,i)=>["_","-"].includes(e.charAt(i+r.length))?r:t(r)).replaceAll(ma,(r,n)=>t(n)));function ii(e,t){if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},Array.isArray(e)?e=e.map(u=>u.trim()).filter(u=>u.length).join("-"):e=e.trim(),e.length===0)return"";let r=t.locale===!1?u=>u.toLowerCase():u=>u.toLocaleLowerCase(t.locale),n=t.locale===!1?u=>u.toUpperCase():u=>u.toLocaleUpperCase(t.locale);return e.length===1?ni.test(e)?"":t.pascalCase?n(e):r(e):(e!==r(e)&&(e=sh(e,r,n,t.preserveConsecutiveUppercase)),e=e.replace(uh,""),e=t.preserveConsecutiveUppercase?oh(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),ah(e,n))}var ci=Je(La(),1);a();a();var Ta=(e=0)=>t=>`\x1B[${t+e}m`,ka=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Oa=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,U={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},ly=Object.keys(U.modifier),mh=Object.keys(U.color),Fh=Object.keys(U.bgColor),fy=[...mh,...Fh];function Ch(){let e=new Map;for(let[t,r]of Object.entries(U)){for(let[n,i]of Object.entries(r))U[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=U[n],e.set(i[0],i[1]);Object.defineProperty(U,t,{value:r,enumerable:!1})}return Object.defineProperty(U,"codes",{value:e,enumerable:!1}),U.color.close="\x1B[39m",U.bgColor.close="\x1B[49m",U.color.ansi=Ta(),U.color.ansi256=ka(),U.color.ansi16m=Oa(),U.bgColor.ansi=Ta(10),U.bgColor.ansi256=ka(10),U.bgColor.ansi16m=Oa(10),Object.defineProperties(U,{rgbToAnsi256:{value:(t,r,n)=>t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:t=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(u=>u+u).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>U.rgbToAnsi256(...U.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let o=t%36;r=Math.floor(t/36)/5,n=Math.floor(o/6)/5,i=o%6/5}let u=Math.max(r,n,i)*2;if(u===0)return 30;let s=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return u===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>U.ansi256ToAnsi(U.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>U.ansi256ToAnsi(U.hexToAnsi256(t)),enumerable:!1}}),U}var yh=Ch(),Pa=yh;var Hr=new Set(["\x1B","\x9B"]),gh=39,ai="\x07",Ra="[",Eh="]",$a="m",Yr=`${Eh}8;;`,Na=e=>`${Hr.values().next().value}${Ra}${e}${$a}`,Ia=e=>`${Hr.values().next().value}${Yr}${e}${ai}`,vh=e=>e.split(" ").map(t=>ne(t)),oi=(e,t,r)=>{let n=[...t],i=!1,u=!1,s=ne(Ct(e.at(-1)));for(let[o,c]of n.entries()){let l=ne(c);if(s+l<=r?e[e.length-1]+=c:(e.push(c),s=0),Hr.has(c)&&(i=!0,u=n.slice(o+1,o+1+Yr.length).join("")===Yr),i){u?c===ai&&(i=!1,u=!1):c===$a&&(i=!1);continue}s+=l,s===r&&o<n.length-1&&(e.push(""),s=0)}!s&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},wh=e=>{let t=e.split(" "),r=t.length;for(;r>0&&!(ne(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},bh=(e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let n="",i,u,s=vh(e),o=[""];for(let[f,h]of e.split(" ").entries()){r.trim!==!1&&(o[o.length-1]=o.at(-1).trimStart());let d=ne(o.at(-1));if(f!==0&&(d>=t&&(r.wordWrap===!1||r.trim===!1)&&(o.push(""),d=0),(d>0||r.trim===!1)&&(o[o.length-1]+=" ",d++)),r.hard&&s[f]>t){let F=t-d,p=1+Math.floor((s[f]-F-1)/t);Math.floor((s[f]-1)/t)<p&&o.push(""),oi(o,h,t);continue}if(d+s[f]>t&&d>0&&s[f]>0){if(r.wordWrap===!1&&d<t){oi(o,h,t);continue}o.push("")}if(d+s[f]>t&&r.wordWrap===!1){oi(o,h,t);continue}o[o.length-1]+=h}r.trim!==!1&&(o=o.map(f=>wh(f)));let c=o.join(`
42
+ `),l=[...c],D=0;for(let[f,h]of l.entries()){if(n+=h,Hr.has(h)){let{groups:F}=new RegExp(`(?:\\${Ra}(?<code>\\d+)m|\\${Yr}(?<uri>.*)${ai})`).exec(c.slice(D))||{groups:{}};if(F.code!==void 0){let p=Number.parseFloat(F.code);i=p===gh?void 0:p}else F.uri!==void 0&&(u=F.uri.length===0?void 0:F.uri)}let d=Pa.codes.get(Number(i));l[f+1]===`
43
+ `?(u&&(n+=Ia("")),i&&d&&(n+=Na(d))):h===`
44
+ `&&(i&&d&&(n+=Na(i)),u&&(n+=Ia(u))),D+=h.length}return n};function Jr(e,t,r){return String(e).normalize().replaceAll(`\r
45
+ `,`
46
+ `).split(`
47
+ `).map(n=>bh(n,t,r)).join(`
48
+ `)}var He=`
49
+ `,pe=" ",sr="none",Ua=()=>{let{env:e,stdout:t,stderr:r}=Kr;return t?.columns?t.columns:r?.columns?r.columns:e.COLUMNS?Number.parseInt(e.COLUMNS,10):80},Ma=e=>typeof e=="number"?{top:e,right:e*3,bottom:e,left:e*3}:{top:0,right:0,bottom:0,left:0,...e},or=e=>e===sr?0:2,xh=e=>{let t=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"],r;if(e===sr){e={};for(let n of t)e[n]=""}if(typeof e=="string"){if(r=ha[e],!r)throw new TypeError(`Invalid border style: ${e}`)}else{typeof e?.vertical=="string"&&(e.left=e.vertical,e.right=e.vertical),typeof e?.horizontal=="string"&&(e.top=e.horizontal,e.bottom=e.horizontal);for(let n of t)if(e[n]===null||typeof e[n]!="string")throw new TypeError(`Invalid border style: ${n}`);r=e}return r},Ah=(e,t,r)=>{let n="",i=ne(e);switch(r){case"left":{n=e+t.slice(i);break}case"right":{n=t.slice(i)+e;break}default:{t=t.slice(i),t.length%2===1?(t=t.slice(Math.floor(t.length/2)),n=t.slice(1)+e+t):(t=t.slice(t.length/2),n=t+e+t);break}}return n},Sh=(e,{padding:t,width:r,textAlignment:n,height:i})=>{e=(0,ci.default)(e,{align:n});let u=e.split(He),s=Vr(e),o=r-t.left-t.right;if(s>o){let D=[];for(let f of u){let h=Jr(f,o,{hard:!0}),F=(0,ci.default)(h,{align:n}).split(`
50
+ `),p=Math.max(...F.map(C=>ne(C)));for(let C of F){let y;switch(n){case"center":{y=pe.repeat((o-p)/2)+C;break}case"right":{y=pe.repeat(o-p)+C;break}default:{y=C;break}}D.push(y)}}u=D}n==="center"&&s<o?u=u.map(D=>pe.repeat((o-s)/2)+D):n==="right"&&s<o&&(u=u.map(D=>pe.repeat(o-s)+D));let c=pe.repeat(t.left),l=pe.repeat(t.right);return u=u.map(D=>{let f=c+D+l;return f+pe.repeat(r-ne(f))}),t.top>0&&(u=[...Array.from({length:t.top}).fill(pe.repeat(r)),...u]),t.bottom>0&&(u=[...u,...Array.from({length:t.bottom}).fill(pe.repeat(r))]),i&&u.length>i?u=u.slice(0,i):i&&u.length<i&&(u=[...u,...Array.from({length:i-u.length}).fill(pe.repeat(r))]),u.join(He)},_h=(e,t,r)=>{let n=D=>{let f=r.borderColor?Th(r.borderColor)(D):D;return r.dimBorder?Be.dim(f):f},i=D=>r.backgroundColor?kh(r.backgroundColor)(D):D,u=xh(r.borderStyle),s=Ua(),o=pe.repeat(r.margin.left);if(r.float==="center"){let D=Math.max((s-t-or(r.borderStyle))/2,0);o=pe.repeat(D)}else if(r.float==="right"){let D=Math.max(s-t-r.margin.right-or(r.borderStyle),0);o=pe.repeat(D)}let c="";r.margin.top&&(c+=He.repeat(r.margin.top)),(r.borderStyle!==sr||r.title)&&(c+=n(o+u.topLeft+(r.title?Ah(r.title,u.top.repeat(t),r.titleAlignment):u.top.repeat(t))+u.topRight)+He);let l=e.split(He);return c+=l.map(D=>o+n(u.left)+i(D)+n(u.right)).join(He),r.borderStyle!==sr&&(c+=He+n(o+u.bottomLeft+u.bottom.repeat(t)+u.bottomRight)),r.margin.bottom&&(c+=He.repeat(r.margin.bottom)),c},Bh=e=>{if(e.fullscreen&&Kr?.stdout){let t=[Kr.stdout.columns,Kr.stdout.rows];typeof e.fullscreen=="function"&&(t=e.fullscreen(...t)),e.width||=t[0],e.height||=t[1]}return e.width&&=Math.max(1,e.width-or(e.borderStyle)),e.height&&=Math.max(1,e.height-or(e.borderStyle)),e},ja=(e,t)=>t===sr?e:` ${e} `,Lh=(e,t)=>{t=Bh(t);let r=t.width!==void 0,n=Ua(),i=or(t.borderStyle),u=n-t.margin.left-t.margin.right-i,s=Vr(Jr(e,n-i,{hard:!0,trim:!1}))+t.padding.left+t.padding.right;if(t.title&&r?(t.title=t.title.slice(0,Math.max(0,t.width-2)),t.title&&=ja(t.title,t.borderStyle)):t.title&&(t.title=t.title.slice(0,Math.max(0,u-2)),t.title&&(t.title=ja(t.title,t.borderStyle),ne(t.title)>s&&(t.width=ne(t.title)))),t.width||=s,!r){if(t.margin.left&&t.margin.right&&t.width>u){let c=(n-t.width-i)/(t.margin.left+t.margin.right);t.margin.left=Math.max(0,Math.floor(t.margin.left*c)),t.margin.right=Math.max(0,Math.floor(t.margin.right*c))}t.width=Math.min(t.width,n-i-t.margin.left-t.margin.right)}return t.width-(t.padding.left+t.padding.right)<=0&&(t.padding.left=0,t.padding.right=0),t.height&&t.height-(t.padding.top+t.padding.bottom)<=0&&(t.padding.top=0,t.padding.bottom=0),t},Di=e=>e.match(/^#(?:[0-f]{3}){1,2}$/i),Ga=e=>typeof e=="string"&&(Be[e]??Di(e)),Th=e=>Di(e)?Be.hex(e):Be[e],kh=e=>Di(e)?Be.bgHex(e):Be[ii(["bg",e])];function li(e,t){if(t={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...t},t.align&&(t.textAlignment=t.align),t.borderColor&&!Ga(t.borderColor))throw new Error(`${t.borderColor} is not a valid borderColor`);if(t.backgroundColor&&!Ga(t.backgroundColor))throw new Error(`${t.backgroundColor} is not a valid backgroundColor`);return t.padding=Ma(t.padding),t.margin=Ma(t.margin),t=Lh(e,t),e=Sh(e,t),_h(e,t.width,t)}a();var Oh=/(?:\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.))|(?:{(~)?(#?[\w:]+(?:\([^)]*\))?(?:\.#?[\w:]+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(})|((?:.|[\r\n\f])+?)/gi,Wa=/(?:^|\.)(?:(?:(\w+)(?:\(([^)]*)\))?)|(?:#(?=[:a-fA-F\d]{2,})([a-fA-F\d]{6})?(?::([a-fA-F\d]{6}))?))/g,Ph=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Nh=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Ih=new Map([["n",`
51
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function za(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCodePoint(Number.parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(Number.parseInt(e.slice(2,-1),16)):Ih.get(e)||e}function Rh(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let u of n){let s=Number(u);if(!Number.isNaN(s))r.push(s);else if(i=u.match(Ph))r.push(i[2].replace(Nh,(o,c,l)=>c?za(c):l));else throw new Error(`Invalid Chalk template style argument: ${u} (in style '${e}')`)}return r}function qa(e){let t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,t&255]}function $h(e){Wa.lastIndex=0;let t=[],r;for(;(r=Wa.exec(e))!==null;){let n=r[1];r[2]?t.push([n,...Rh(n,r[2])]):r[3]||r[4]?(r[3]&&t.push(["rgb",...qa(r[3])]),r[4]&&t.push(["bgRgb",...qa(r[4])])):t.push([n])}return t}function Za(e){function t(n){let i={};for(let s of n)for(let o of s.styles)i[o[0]]=s.inverse?null:o.slice(1);let u=e;for(let[s,o]of Object.entries(i))if(Array.isArray(o)){if(!(s in u))throw new Error(`Unknown Chalk style: ${s}`);u=o.length>0?u[s](...o):u[s]}return u}function r(n){let i=[],u=[],s=[];if(n.replace(Oh,(o,c,l,D,f,h)=>{if(c)s.push(za(c));else if(D){let d=s.join("");s=[],u.push(i.length===0?d:t(i)(d)),i.push({inverse:l,styles:$h(D)})}else if(f){if(i.length===0)throw new Error("Found extraneous } in Chalk template literal");u.push(t(i)(s.join(""))),s=[],i.pop()}else s.push(h)}),u.push(s.join("")),i.length>0)throw new Error(`Chalk template literal is missing ${i.length} closing bracket${i.length===1?"":"s"} (\`}\`)`);return u.join("")}return r}function Va(e){function t(r,...n){if(!Array.isArray(r)||!Array.isArray(r.raw))throw new TypeError("A tagged template literal must be provided");let i=[r.raw[0]];for(let u=1;u<r.raw.length;u++)i.push(String(n[u-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[u]));return e(i.join(""))}return t}var Mh=Za(Be),Ya=Va(Mh),jh=Za(Bi),Ly=Va(jh);a();function fi(e,t=1,r={}){let{indent:n=" ",includeEmptyLines:i=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(t===0)return e;let u=i?/^/gm:/^(?!\s*$)/gm;return e.replace(u,n.repeat(t))}var Ka=Je(Ja(),1);var di=e=>!an(e)&&!Ui(e),hi=e=>(t,...r)=>{if(di(t))return hi({...e,...t});let{ensureNewLine:n=!1,ensureEmptyLineAbove:i=!1,indent:u=0,boxen:s}=e,o=t;return an(o)||(o=(0,Ka.dedent)(Ya(o,...r))),i&&!o.startsWith(`
52
+ `)&&(o=`
53
+ `+o),n&&!o.endsWith(`
54
+ `)&&(o+=`
55
+ `),s&&(o=li(o,s)),u>0&&(o=fi(o,u)),o},Xa=hi({ensureNewLine:!1}),Gy=hi({ensureNewLine:!0});a();var pi=e=>(t,...r)=>{if(di(t))return pi({...e,...t});let{json:n,...i}=e;if($r.logFormat==="json"){n&&ri.writeStdout(JSON.stringify(n)+`
56
+ `);return}let u=Xa(i)(t,...r);ri.writeStdout(u)},Vy=pi({ensureNewLine:!1}),Yy=pi({ensureNewLine:!0});export{Si as a,Be as b,Rr as c,zn as d,k as e,op as f,an as g,ft as h,ap as i,cp as j,Dp as k,lp as l,fp as m,dp as n,hp as o,pp as p,mp as q,Fp as r,Cp as s,yp as t,gp as u,Ep as v,AD as w,Zi as x,Tp as y,Cr as z,qi as A,Ye as B,kF as C,Hi as D,Ws as E,DF as F,Ir as G,pt as H,$r as I,zF as J,ZF as K,Ct as L,ri as M,_a as N,li as O,Ya as P,fi as Q,Ja as R,di as S,Xa as T,Gy as U,Yy as V};
57
+ //# sourceMappingURL=chunk-BZY2AIPV.js.map