@dodoex/wallet-web3 0.0.3-4 → 0.0.4

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 (97) hide show
  1. package/dist/blocto-72bf7aa6.js +1 -0
  2. package/dist/cjs/blocto-b869f9d4.cjs +1 -0
  3. package/dist/cjs/contract/index.d.ts +12 -2
  4. package/dist/cjs/core/index.d.ts +2 -2
  5. package/dist/cjs/helpers/index.d.ts +4 -0
  6. package/dist/cjs/helpers/transactions.d.ts +5 -5
  7. package/dist/cjs/index-4081ac23.cjs +1 -0
  8. package/dist/cjs/index-c1794c22.cjs +1 -0
  9. package/dist/cjs/index-c2fa7be5.cjs +1 -0
  10. package/dist/cjs/index.cjs +1 -1
  11. package/dist/cjs/index.d.ts +1 -0
  12. package/dist/cjs/portis-cb52810f.cjs +1 -0
  13. package/dist/cjs/provider-a5132ca0.cjs +1 -0
  14. package/dist/cjs/providers/connector/blocto.d.ts +3 -0
  15. package/dist/cjs/providers/connector/index.d.ts +5 -0
  16. package/dist/cjs/providers/connector/ledgerUSB/index.d.ts +129 -1
  17. package/dist/cjs/providers/connector/ledgerUSB/provider.d.ts +131 -1
  18. package/dist/cjs/providers/connector/ledgerUSB/signer.d.ts +22 -0
  19. package/dist/cjs/providers/connector/types.d.ts +3 -0
  20. package/dist/cjs/providers/wallets/index.d.ts +24 -30
  21. package/dist/cjs/providers/wallets/injected.d.ts +1 -0
  22. package/dist/cjs/providers/wallets/standalone.d.ts +1 -0
  23. package/dist/cjs/providers/wallets/types.d.ts +22 -1
  24. package/dist/cjs/state.d.ts +3 -0
  25. package/dist/cjs/uAuth-089d8c64.cjs +1 -0
  26. package/dist/cjs/walletConnect-7624b12b.cjs +1 -0
  27. package/dist/cjs/walletLink-aa126dac.cjs +1 -0
  28. package/dist/contract/index.d.ts +12 -2
  29. package/dist/core/index.d.ts +2 -2
  30. package/dist/helpers/index.d.ts +4 -0
  31. package/dist/helpers/transactions.d.ts +5 -5
  32. package/dist/index-44c5224a.js +1 -0
  33. package/dist/index-c418b636.js +1 -0
  34. package/dist/index-f5bd0eff.js +1 -0
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.js +1 -1
  37. package/dist/portis-693e3b82.js +1 -0
  38. package/dist/provider-9af035cb.js +1 -0
  39. package/dist/providers/connector/blocto.d.ts +3 -0
  40. package/dist/providers/connector/index.d.ts +5 -0
  41. package/dist/providers/connector/ledgerUSB/index.d.ts +129 -1
  42. package/dist/providers/connector/ledgerUSB/provider.d.ts +131 -1
  43. package/dist/providers/connector/ledgerUSB/signer.d.ts +22 -0
  44. package/dist/providers/connector/types.d.ts +3 -0
  45. package/dist/providers/wallets/index.d.ts +24 -30
  46. package/dist/providers/wallets/injected.d.ts +1 -0
  47. package/dist/providers/wallets/standalone.d.ts +1 -0
  48. package/dist/providers/wallets/types.d.ts +22 -1
  49. package/dist/state.d.ts +3 -0
  50. package/dist/uAuth-f4156c7e.js +1 -0
  51. package/dist/walletConnect-a17a15c2.js +1 -0
  52. package/dist/walletLink-e058c81d.js +1 -0
  53. package/package.json +2 -1
  54. package/dist/_commonjsHelpers-70de2c37.js +0 -1
  55. package/dist/bn-16003306.js +0 -1
  56. package/dist/cjs/_commonjsHelpers-66ecbaf8.cjs +0 -1
  57. package/dist/cjs/bn-1bd77809.cjs +0 -1
  58. package/dist/cjs/elliptic-174586a6.cjs +0 -1
  59. package/dist/cjs/hash-121fdd2c.cjs +0 -1
  60. package/dist/cjs/index-0eeb697b.cjs +0 -22
  61. package/dist/cjs/index-33e57d81.cjs +0 -1
  62. package/dist/cjs/index-3a14a931.cjs +0 -3
  63. package/dist/cjs/index-5976e357.cjs +0 -1
  64. package/dist/cjs/index-6d7369f7.cjs +0 -1
  65. package/dist/cjs/index-a26b6945.cjs +0 -1
  66. package/dist/cjs/index-a9081fe4.cjs +0 -1
  67. package/dist/cjs/index-f7522058.cjs +0 -1
  68. package/dist/cjs/inherits-6d52d55b.cjs +0 -1
  69. package/dist/cjs/interface-6a2093d7.cjs +0 -1
  70. package/dist/cjs/node-ponyfill-c08c51bf.cjs +0 -1
  71. package/dist/cjs/portis-8c790653.cjs +0 -1
  72. package/dist/cjs/provider-95f3425c.cjs +0 -1
  73. package/dist/cjs/sha256-21fccd26.cjs +0 -1
  74. package/dist/cjs/sha3-499f6bea.cjs +0 -10
  75. package/dist/cjs/uAuth-692ecdf6.cjs +0 -1
  76. package/dist/cjs/walletConnect-14d9d490.cjs +0 -1
  77. package/dist/cjs/walletLink-b99948b8.cjs +0 -1
  78. package/dist/elliptic-1100204f.js +0 -1
  79. package/dist/hash-4b8ad136.js +0 -1
  80. package/dist/index-3a9d1d45.js +0 -22
  81. package/dist/index-5c16deff.js +0 -1
  82. package/dist/index-632fbf92.js +0 -1
  83. package/dist/index-9547c0cf.js +0 -1
  84. package/dist/index-9af08480.js +0 -2
  85. package/dist/index-a2c8f38f.js +0 -1
  86. package/dist/index-afc4ce88.js +0 -1
  87. package/dist/index-e3ab6de5.js +0 -1
  88. package/dist/inherits-e2363129.js +0 -1
  89. package/dist/interface-36a3c8cf.js +0 -1
  90. package/dist/node-ponyfill-bda9b4f4.js +0 -1
  91. package/dist/portis-f89a1cba.js +0 -1
  92. package/dist/provider-1ecbc0fa.js +0 -1
  93. package/dist/sha256-8f7b3565.js +0 -1
  94. package/dist/sha3-a5661517.js +0 -9
  95. package/dist/uAuth-1f7b3a0a.js +0 -1
  96. package/dist/walletConnect-ac756ff6.js +0 -1
  97. package/dist/walletLink-c286f908.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";var e=require("./_commonjsHelpers-66ecbaf8.cjs"),t=require("tty"),r=require("util"),n=require("os");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=s(t),i=s(r),a=s(n),c={},u={};class l extends TypeError{constructor(e,t){let r;const{message:n,explanation:s,...o}=e,{path:i}=e,a=0===i.length?n:`At path: ${i.join(".")} -- ${n}`;super(s??a),null!=s&&(this.cause=a),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>r??(r=[e,...t()])}}function p(e){return"object"==typeof e&&null!=e}function h(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function f(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function d(e,t,r,n){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:s,branch:o}=t,{type:i}=r,{refinement:a,message:c=`Expected a value of type \`${i}\`${a?` with refinement \`${a}\``:""}, but received: \`${f(n)}\``}=e;return{value:n,type:i,refinement:a,key:s[s.length-1],path:s,branch:o,...e,message:c}}function*m(e,t,r,n){var s;p(s=e)&&"function"==typeof s[Symbol.iterator]||(e=[e]);for(const s of e){const e=d(s,t,r,n);e&&(yield e)}}function*g(e,t,r={}){const{path:n=[],branch:s=[e],coerce:o=!1,mask:i=!1}=r,a={path:n,branch:s};if(o&&(e=t.coercer(e,a),i&&"type"!==t.type&&p(t.schema)&&p(e)&&!Array.isArray(e)))for(const r in e)void 0===t.schema[r]&&delete e[r];let c="valid";for(const n of t.validator(e,a))n.explanation=r.message,c="not_valid",yield[n,void 0];for(let[u,l,h]of t.entries(e,a)){const t=g(l,h,{path:void 0===u?n:[...n,u],branch:void 0===u?s:[...s,l],coerce:o,mask:i,message:r.message});for(const r of t)r[0]?(c=null!=r[0].refinement?"not_refined":"not_valid",yield[r[0],void 0]):o&&(l=r[1],void 0===u?e=l:e instanceof Map?e.set(u,l):e instanceof Set?e.add(l):p(e)&&(void 0!==l||u in e)&&(e[u]=l))}if("not_valid"!==c)for(const n of t.refiner(e,a))n.explanation=r.message,c="not_refined",yield[n,void 0];"valid"===c&&(yield[void 0,e])}class v{constructor(e){const{type:t,schema:r,validator:n,refiner:s,coercer:o=(e=>e),entries:i=function*(){}}=e;this.type=t,this.schema=r,this.entries=i,this.coercer=o,this.validator=n?(e,t)=>m(n(e,t),t,this,e):()=>[],this.refiner=s?(e,t)=>m(s(e,t),t,this,e):()=>[]}assert(e,t){return E(e,this,t)}create(e,t){return y(e,this,t)}is(e){return R(e,this)}mask(e,t){return S(e,this,t)}validate(e,t={}){return b(e,this,t)}}function E(e,t,r){const n=b(e,t,{message:r});if(n[0])throw n[0]}function y(e,t,r){const n=b(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function S(e,t,r){const n=b(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function R(e,t){return!b(e,t)[0]}function b(e,t,r={}){const n=g(e,t,r),s=function(e){const{done:t,value:r}=e.next();return t?void 0:r}(n);if(s[0]){const e=new l(s[0],(function*(){for(const e of n)e[0]&&(yield e[0])}));return[e,void 0]}return[void 0,s[1]]}function I(e,t){return new v({type:e,schema:null,validator:t})}function $(){return I("never",(()=>!1))}function w(e){const t=e?Object.keys(e):[],r=$();return new v({type:"object",schema:e||null,*entries(n){if(e&&p(n)){const s=new Set(Object.keys(n));for(const r of t)s.delete(r),yield[r,n[r],e[r]];for(const e of s)yield[e,n[e],r]}},validator:e=>p(e)||`Expected an object, but received: ${f(e)}`,coercer:e=>p(e)?{...e}:e})}function O(e){return new v({...e,validator:(t,r)=>void 0===t||e.validator(t,r),refiner:(t,r)=>void 0===t||e.refiner(t,r)})}function C(){return I("string",(e=>"string"==typeof e||`Expected a string, but received: ${f(e)}`))}function N(e){const t=Object.keys(e);return new v({type:"type",schema:e,*entries(r){if(p(r))for(const n of t)yield[n,r[n],e[n]]},validator:e=>p(e)||`Expected an object, but received: ${f(e)}`,coercer:e=>p(e)?{...e}:e})}function A(){return I("unknown",(()=>!0))}function x(e,t,r){return new v({...e,coercer:(n,s)=>R(n,t)?e.coercer(r(n,s),s):e.coercer(n,s)})}function T(e){return e instanceof Map||e instanceof Set?e.size:e.length}function L(e,t,r){return new v({...e,*refiner(n,s){yield*e.refiner(n,s);const o=m(r(n,s),s,e,n);for(const e of o)yield{...e,refinement:t}}})}var j=Object.freeze({__proto__:null,Struct:v,StructError:l,any:function(){return I("any",(()=>!0))},array:function(e){return new v({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[r,n]of t.entries())yield[r,n,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${f(e)}`})},assert:E,assign:function(...e){const t="type"===e[0].type,r=e.map((e=>e.schema)),n=Object.assign({},...r);return t?N(n):w(n)},bigint:function(){return I("bigint",(e=>"bigint"==typeof e))},boolean:function(){return I("boolean",(e=>"boolean"==typeof e))},coerce:x,create:y,date:function(){return I("date",(e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${f(e)}`))},defaulted:function(e,t,r={}){return x(e,A(),(e=>{const n="function"==typeof t?t():t;if(void 0===e)return n;if(!r.strict&&h(e)&&h(n)){const t={...e};let r=!1;for(const e in n)void 0===t[e]&&(t[e]=n[e],r=!0);if(r)return t}return e}))},define:I,deprecated:function(e,t){return new v({...e,refiner:(t,r)=>void 0===t||e.refiner(t,r),validator:(r,n)=>void 0===r||(t(r,n),e.validator(r,n))})},dynamic:function(e){return new v({type:"dynamic",schema:null,*entries(t,r){const n=e(t,r);yield*n.entries(t,r)},validator:(t,r)=>e(t,r).validator(t,r),coercer:(t,r)=>e(t,r).coercer(t,r),refiner:(t,r)=>e(t,r).refiner(t,r)})},empty:function(e){return L(e,"empty",(t=>{const r=T(t);return 0===r||`Expected an empty ${e.type} but received one with a size of \`${r}\``}))},enums:function(e){const t={},r=e.map((e=>f(e))).join();for(const r of e)t[r]=r;return new v({type:"enums",schema:t,validator:t=>e.includes(t)||`Expected one of \`${r}\`, but received: ${f(t)}`})},func:function(){return I("func",(e=>"function"==typeof e||`Expected a function, but received: ${f(e)}`))},instance:function(e){return I("instance",(t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${f(t)}`))},integer:function(){return I("integer",(e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${f(e)}`))},intersection:function(e){return new v({type:"intersection",schema:null,*entries(t,r){for(const n of e)yield*n.entries(t,r)},*validator(t,r){for(const n of e)yield*n.validator(t,r)},*refiner(t,r){for(const n of e)yield*n.refiner(t,r)}})},is:R,lazy:function(e){let t;return new v({type:"lazy",schema:null,*entries(r,n){t??(t=e()),yield*t.entries(r,n)},validator:(r,n)=>(t??(t=e()),t.validator(r,n)),coercer:(r,n)=>(t??(t=e()),t.coercer(r,n)),refiner:(r,n)=>(t??(t=e()),t.refiner(r,n))})},literal:function(e){const t=f(e),r=typeof e;return new v({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?e:null,validator:r=>r===e||`Expected the literal \`${t}\`, but received: ${f(r)}`})},map:function(e,t){return new v({type:"map",schema:null,*entries(r){if(e&&t&&r instanceof Map)for(const[n,s]of r.entries())yield[n,n,e],yield[n,s,t]},coercer:e=>e instanceof Map?new Map(e):e,validator:e=>e instanceof Map||`Expected a \`Map\` object, but received: ${f(e)}`})},mask:S,max:function(e,t,r={}){const{exclusive:n}=r;return L(e,"max",(r=>n?r<t:r<=t||`Expected a ${e.type} less than ${n?"":"or equal to "}${t} but received \`${r}\``))},min:function(e,t,r={}){const{exclusive:n}=r;return L(e,"min",(r=>n?r>t:r>=t||`Expected a ${e.type} greater than ${n?"":"or equal to "}${t} but received \`${r}\``))},never:$,nonempty:function(e){return L(e,"nonempty",(t=>T(t)>0||`Expected a nonempty ${e.type} but received an empty one`))},nullable:function(e){return new v({...e,validator:(t,r)=>null===t||e.validator(t,r),refiner:(t,r)=>null===t||e.refiner(t,r)})},number:function(){return I("number",(e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${f(e)}`))},object:w,omit:function(e,t){const{schema:r}=e,n={...r};for(const e of t)delete n[e];return"type"===e.type?N(n):w(n)},optional:O,partial:function(e){const t=e instanceof v?{...e.schema}:{...e};for(const e in t)t[e]=O(t[e]);return w(t)},pattern:function(e,t){return L(e,"pattern",(r=>t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`))},pick:function(e,t){const{schema:r}=e,n={};for(const e of t)n[e]=r[e];return w(n)},record:function(e,t){return new v({type:"record",schema:null,*entries(r){if(p(r))for(const n in r){const s=r[n];yield[n,n,e],yield[n,s,t]}},validator:e=>p(e)||`Expected an object, but received: ${f(e)}`})},refine:L,regexp:function(){return I("regexp",(e=>e instanceof RegExp))},set:function(e){return new v({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(const r of t)yield[r,r,e]},coercer:e=>e instanceof Set?new Set(e):e,validator:e=>e instanceof Set||`Expected a \`Set\` object, but received: ${f(e)}`})},size:function(e,t,r=t){const n=`Expected a ${e.type}`,s=t===r?`of \`${t}\``:`between \`${t}\` and \`${r}\``;return L(e,"size",(e=>{if("number"==typeof e||e instanceof Date)return t<=e&&e<=r||`${n} ${s} but received \`${e}\``;if(e instanceof Map||e instanceof Set){const{size:o}=e;return t<=o&&o<=r||`${n} with a size ${s} but received one with a size of \`${o}\``}{const{length:o}=e;return t<=o&&o<=r||`${n} with a length ${s} but received one with a length of \`${o}\``}}))},string:C,struct:function(e,t){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),I(e,t)},trimmed:function(e){return x(e,C(),(e=>e.trim()))},tuple:function(e){const t=$();return new v({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const n=Math.max(e.length,r.length);for(let s=0;s<n;s++)yield[s,r[s],e[s]||t]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${f(e)}`})},type:N,union:function(e){const t=e.map((e=>e.type)).join(" | ");return new v({type:"union",schema:null,coercer(t){for(const r of e){const[e,n]=r.validate(t,{coerce:!0});if(!e)return n}return t},validator(r,n){const s=[];for(const t of e){const[...e]=g(r,t,n),[o]=e;if(!o[0])return[];for(const[t]of e)t&&s.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${f(r)}`,...s]}})},unknown:A,validate:b}),F=e.getAugmentedNamespace(j);Object.defineProperty(u,"__esModule",{value:!0}),u.assertExhaustive=u.assertStruct=u.assert=u.AssertionError=void 0;const P=F;function J(e,t){return r=e,Boolean("string"==typeof(null===(s=null===(n=null==r?void 0:r.prototype)||void 0===n?void 0:n.constructor)||void 0===s?void 0:s.name))?new e({message:t}):e({message:t});var r,n,s}class _ extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}u.AssertionError=_,u.assert=function(e,t="Assertion failed.",r=_){if(!e){if(t instanceof Error)throw t;throw J(r,t)}},u.assertStruct=function(e,t,r="Assertion failed",n=_){try{(0,P.assert)(e,t)}catch(e){throw J(n,`${r}: ${function(e){const t=function(e){return"object"==typeof e&&null!==e&&"message"in e}(e)?e.message:String(e);return t.endsWith(".")?t.slice(0,-1):t}(e)}.`)}},u.assertExhaustive=function(e){throw new Error("Invalid branch reached. Should be detected during compilation.")};var M={};Object.defineProperty(M,"__esModule",{value:!0}),M.base64=void 0;const D=F,V=u;M.base64=(e,t={})=>{var r,n;const s=null!==(r=t.paddingRequired)&&void 0!==r&&r,o=null!==(n=t.characterSet)&&void 0!==n?n:"base64";let i,a;return"base64"===o?i=String.raw`[A-Za-z0-9+\/]`:((0,V.assert)("base64url"===o),i=String.raw`[-_A-Za-z0-9]`),a=s?new RegExp(`^(?:${i}{4})*(?:${i}{3}=|${i}{2}==)?$`,"u"):new RegExp(`^(?:${i}{4})*(?:${i}{2,3}|${i}{3}=|${i}{2}==)?$`,"u"),(0,D.pattern)(e,a)};var G={},B={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.remove0x=e.add0x=e.assertIsStrictHexString=e.assertIsHexString=e.isStrictHexString=e.isHexString=e.StrictHexStruct=e.HexStruct=void 0;const t=F,r=u;function n(r){return(0,t.is)(r,e.HexStruct)}function s(r){return(0,t.is)(r,e.StrictHexStruct)}e.HexStruct=(0,t.pattern)((0,t.string)(),/^(?:0x)?[0-9a-f]+$/iu),e.StrictHexStruct=(0,t.pattern)((0,t.string)(),/^0x[0-9a-f]+$/iu),e.isHexString=n,e.isStrictHexString=s,e.assertIsHexString=function(e){(0,r.assert)(n(e),"Value must be a hexadecimal string.")},e.assertIsStrictHexString=function(e){(0,r.assert)(s(e),'Value must be a hexadecimal string, starting with "0x".')},e.add0x=function(e){return e.startsWith("0x")?e:e.startsWith("0X")?`0x${e.substring(2)}`:`0x${e}`},e.remove0x=function(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}}(B),Object.defineProperty(G,"__esModule",{value:!0}),G.createDataView=G.concatBytes=G.valueToBytes=G.stringToBytes=G.numberToBytes=G.signedBigIntToBytes=G.bigIntToBytes=G.hexToBytes=G.bytesToString=G.bytesToNumber=G.bytesToSignedBigInt=G.bytesToBigInt=G.bytesToHex=G.assertIsBytes=G.isBytes=void 0;const k=u,z=B,U=48,H=58,X=87;const W=function(){const e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}();function q(e){return e instanceof Uint8Array}function Y(e){(0,k.assert)(q(e),"Value must be a Uint8Array.")}function Z(e){if(Y(e),0===e.length)return"0x";const t=W(),r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=t[e[n]];return(0,z.add0x)(r.join(""))}function Q(e){Y(e);const t=Z(e);return BigInt(t)}function K(e){var t;if("0x"===(null===(t=null==e?void 0:e.toLowerCase)||void 0===t?void 0:t.call(e)))return new Uint8Array;(0,z.assertIsHexString)(e);const r=(0,z.remove0x)(e).toLowerCase(),n=r.length%2==0?r:`0${r}`,s=new Uint8Array(n.length/2);for(let e=0;e<s.length;e++){const t=n.charCodeAt(2*e),r=n.charCodeAt(2*e+1),o=t-(t<H?U:X),i=r-(r<H?U:X);s[e]=16*o+i}return s}function ee(e){(0,k.assert)("bigint"==typeof e,"Value must be a bigint."),(0,k.assert)(e>=BigInt(0),"Value must be a non-negative bigint.");return K(e.toString(16))}function te(e){(0,k.assert)("number"==typeof e,"Value must be a number."),(0,k.assert)(e>=0,"Value must be a non-negative number."),(0,k.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");return K(e.toString(16))}function re(e){return(0,k.assert)("string"==typeof e,"Value must be a string."),(new TextEncoder).encode(e)}function ne(e){if("bigint"==typeof e)return ee(e);if("number"==typeof e)return te(e);if("string"==typeof e)return e.startsWith("0x")?K(e):re(e);if(q(e))return e;throw new TypeError(`Unsupported value type: "${typeof e}".`)}G.isBytes=q,G.assertIsBytes=Y,G.bytesToHex=Z,G.bytesToBigInt=Q,G.bytesToSignedBigInt=function(e){Y(e);let t=BigInt(0);for(const r of e)t=(t<<BigInt(8))+BigInt(r);return BigInt.asIntN(8*e.length,t)},G.bytesToNumber=function(e){Y(e);const t=Q(e);return(0,k.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(t)},G.bytesToString=function(e){return Y(e),(new TextDecoder).decode(e)},G.hexToBytes=K,G.bigIntToBytes=ee,G.signedBigIntToBytes=function(e,t){(0,k.assert)("bigint"==typeof e,"Value must be a bigint."),(0,k.assert)("number"==typeof t,"Byte length must be a number."),(0,k.assert)(t>0,"Byte length must be greater than 0."),(0,k.assert)(function(e,t){(0,k.assert)(t>0);const r=e>>BigInt(31);return!((~e&r)+(e&~r)>>BigInt(8*t-1))}(e,t),"Byte length is too small to represent the given value.");let r=e;const n=new Uint8Array(t);for(let e=0;e<n.length;e++)n[e]=Number(BigInt.asUintN(8,r)),r>>=BigInt(8);return n.reverse()},G.numberToBytes=te,G.stringToBytes=re,G.valueToBytes=ne,G.concatBytes=function(e){const t=new Array(e.length);let r=0;for(let n=0;n<e.length;n++){const s=ne(e[n]);t[n]=s,r+=s.length}const n=new Uint8Array(r);for(let e=0,r=0;e<t.length;e++)n.set(t[e],r),r+=t[e].length;return n},G.createDataView=function(e){if("undefined"!=typeof Buffer&&e instanceof Buffer){const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new DataView(t)}return new DataView(e.buffer,e.byteOffset,e.byteLength)};var se={};Object.defineProperty(se,"__esModule",{value:!0}),se.ChecksumStruct=void 0;const oe=F,ie=M;se.ChecksumStruct=(0,oe.size)((0,ie.base64)((0,oe.string)(),{paddingRequired:!0}),44,44);var ae={};Object.defineProperty(ae,"__esModule",{value:!0}),ae.createHex=ae.createBytes=ae.createBigInt=ae.createNumber=void 0;const ce=F,ue=u,le=G,pe=B,he=(0,ce.union)([(0,ce.number)(),(0,ce.bigint)(),(0,ce.string)(),pe.StrictHexStruct]),fe=(0,ce.coerce)((0,ce.number)(),he,Number),de=(0,ce.coerce)((0,ce.bigint)(),he,BigInt);(0,ce.union)([pe.StrictHexStruct,(0,ce.instance)(Uint8Array)]);const me=(0,ce.coerce)((0,ce.instance)(Uint8Array),(0,ce.union)([pe.StrictHexStruct]),le.hexToBytes),ge=(0,ce.coerce)(pe.StrictHexStruct,(0,ce.instance)(Uint8Array),le.bytesToHex);ae.createNumber=function(e){try{const t=(0,ce.create)(e,fe);return(0,ue.assert)(Number.isFinite(t),`Expected a number-like value, got "${e}".`),t}catch(t){if(t instanceof ce.StructError)throw new Error(`Expected a number-like value, got "${e}".`);throw t}},ae.createBigInt=function(e){try{return(0,ce.create)(e,de)}catch(e){if(e instanceof ce.StructError)throw new Error(`Expected a number-like value, got "${String(e.value)}".`);throw e}},ae.createBytes=function(e){if("string"==typeof e&&"0x"===e.toLowerCase())return new Uint8Array;try{return(0,ce.create)(e,me)}catch(e){if(e instanceof ce.StructError)throw new Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}},ae.createHex=function(e){if(e instanceof Uint8Array&&0===e.length||"string"==typeof e&&"0x"===e.toLowerCase())return"0x";try{return(0,ce.create)(e,ge)}catch(e){if(e instanceof ce.StructError)throw new Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}};var ve,Ee,ye={},Se=e.commonjsGlobal&&e.commonjsGlobal.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r},Re=e.commonjsGlobal&&e.commonjsGlobal.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(ye,"__esModule",{value:!0}),ye.FrozenSet=ye.FrozenMap=void 0;class be{constructor(e){ve.set(this,void 0),Se(this,ve,new Map(e),"f"),Object.freeze(this)}get size(){return Re(this,ve,"f").size}[(ve=new WeakMap,Symbol.iterator)](){return Re(this,ve,"f")[Symbol.iterator]()}entries(){return Re(this,ve,"f").entries()}forEach(e,t){return Re(this,ve,"f").forEach(((r,n,s)=>e.call(t,r,n,this)))}get(e){return Re(this,ve,"f").get(e)}has(e){return Re(this,ve,"f").has(e)}keys(){return Re(this,ve,"f").keys()}values(){return Re(this,ve,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map((([e,t])=>`${String(e)} => ${String(t)}`)).join(", ")} `:""}}`}}ye.FrozenMap=be;class Ie{constructor(e){Ee.set(this,void 0),Se(this,Ee,new Set(e),"f"),Object.freeze(this)}get size(){return Re(this,Ee,"f").size}[(Ee=new WeakMap,Symbol.iterator)](){return Re(this,Ee,"f")[Symbol.iterator]()}entries(){return Re(this,Ee,"f").entries()}forEach(e,t){return Re(this,Ee,"f").forEach(((r,n,s)=>e.call(t,r,n,this)))}has(e){return Re(this,Ee,"f").has(e)}keys(){return Re(this,Ee,"f").keys()}values(){return Re(this,Ee,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map((e=>String(e))).join(", ")} `:""}}`}}ye.FrozenSet=Ie,Object.freeze(be),Object.freeze(be.prototype),Object.freeze(Ie),Object.freeze(Ie.prototype);var $e={},we={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateNumberSize=e.calculateStringSize=e.isASCII=e.isPlainObject=e.ESCAPE_CHARACTERS_REGEXP=e.JsonSize=e.hasProperty=e.isObject=e.isNullOrUndefined=e.isNonEmptyArray=void 0,e.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},e.isNullOrUndefined=function(e){return null==e},e.isObject=function(e){return Boolean(e)&&"object"==typeof e&&!Array.isArray(e)};var t;function r(e){return e.charCodeAt(0)<=127}e.hasProperty=(e,t)=>Object.hasOwnProperty.call(e,t),(t=e.JsonSize||(e.JsonSize={}))[t.Null=4]="Null",t[t.Comma=1]="Comma",t[t.Wrapper=1]="Wrapper",t[t.True=4]="True",t[t.False=5]="False",t[t.Quote=1]="Quote",t[t.Colon=1]="Colon",t[t.Date=24]="Date",e.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu,e.isPlainObject=function(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}},e.isASCII=r,e.calculateStringSize=function(t){var n;return t.split("").reduce(((e,t)=>r(t)?e+1:e+2),0)+(null!==(n=t.match(e.ESCAPE_CHARACTERS_REGEXP))&&void 0!==n?n:[]).length},e.calculateNumberSize=function(e){return e.toString().length}}(we),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateJsonAndGetSize=e.getJsonRpcIdValidator=e.assertIsJsonRpcError=e.isJsonRpcError=e.assertIsJsonRpcFailure=e.isJsonRpcFailure=e.assertIsJsonRpcSuccess=e.isJsonRpcSuccess=e.assertIsJsonRpcResponse=e.isJsonRpcResponse=e.assertIsPendingJsonRpcResponse=e.isPendingJsonRpcResponse=e.JsonRpcResponseStruct=e.JsonRpcFailureStruct=e.JsonRpcSuccessStruct=e.PendingJsonRpcResponseStruct=e.assertIsJsonRpcRequest=e.isJsonRpcRequest=e.assertIsJsonRpcNotification=e.isJsonRpcNotification=e.JsonRpcNotificationStruct=e.JsonRpcRequestStruct=e.JsonRpcParamsStruct=e.JsonRpcErrorStruct=e.JsonRpcIdStruct=e.JsonRpcVersionStruct=e.jsonrpc2=e.isValidJson=e.JsonStruct=void 0;const t=F,r=u,n=we;function s(e,t=!1){const r=new Set;return function e(t,s){if(void 0===t)return[!1,0];if(null===t)return[!0,s?0:n.JsonSize.Null];const o=typeof t;try{if("function"===o)return[!1,0];if("string"===o||t instanceof String)return[!0,s?0:(0,n.calculateStringSize)(t)+2*n.JsonSize.Quote];if("boolean"===o||t instanceof Boolean)return s?[!0,0]:[!0,1==t?n.JsonSize.True:n.JsonSize.False];if("number"===o||t instanceof Number)return s?[!0,0]:[!0,(0,n.calculateNumberSize)(t)];if(t instanceof Date)return s?[!0,0]:[!0,isNaN(t.getDate())?n.JsonSize.Null:n.JsonSize.Date+2*n.JsonSize.Quote]}catch(e){return[!1,0]}if(!(0,n.isPlainObject)(t)&&!Array.isArray(t))return[!1,0];if(r.has(t))return[!1,0];r.add(t);try{return[!0,Object.entries(t).reduce(((o,[i,a],c,u)=>{let[l,p]=e(a,s);if(!l)throw new Error("JSON validation did not pass. Validation process stopped.");if(r.delete(t),s)return 0;return o+(Array.isArray(t)?0:i.length+n.JsonSize.Comma+2*n.JsonSize.Colon)+p+(c<u.length-1?n.JsonSize.Comma:0)}),s?0:2*n.JsonSize.Wrapper)]}catch(e){return[!1,0]}}(e,t)}e.JsonStruct=(0,t.define)("Json",(e=>{const[t]=s(e,!0);return!!t||"Expected a valid JSON-serializable value"})),e.isValidJson=function(r){return(0,t.is)(r,e.JsonStruct)},e.jsonrpc2="2.0",e.JsonRpcVersionStruct=(0,t.literal)(e.jsonrpc2),e.JsonRpcIdStruct=(0,t.nullable)((0,t.union)([(0,t.number)(),(0,t.string)()])),e.JsonRpcErrorStruct=(0,t.object)({code:(0,t.integer)(),message:(0,t.string)(),data:(0,t.optional)(e.JsonStruct),stack:(0,t.optional)((0,t.string)())}),e.JsonRpcParamsStruct=(0,t.optional)((0,t.union)([(0,t.record)((0,t.string)(),e.JsonStruct),(0,t.array)(e.JsonStruct)])),e.JsonRpcRequestStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,method:(0,t.string)(),params:e.JsonRpcParamsStruct}),e.JsonRpcNotificationStruct=(0,t.omit)(e.JsonRpcRequestStruct,["id"]),e.isJsonRpcNotification=function(r){return(0,t.is)(r,e.JsonRpcNotificationStruct)},e.assertIsJsonRpcNotification=function(t,n){(0,r.assertStruct)(t,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",n)},e.isJsonRpcRequest=function(r){return(0,t.is)(r,e.JsonRpcRequestStruct)},e.assertIsJsonRpcRequest=function(t,n){(0,r.assertStruct)(t,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",n)},e.PendingJsonRpcResponseStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:(0,t.optional)((0,t.unknown)()),error:(0,t.optional)(e.JsonRpcErrorStruct)}),e.JsonRpcSuccessStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:e.JsonStruct}),e.JsonRpcFailureStruct=(0,t.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,error:e.JsonRpcErrorStruct}),e.JsonRpcResponseStruct=(0,t.union)([e.JsonRpcSuccessStruct,e.JsonRpcFailureStruct]),e.isPendingJsonRpcResponse=function(r){return(0,t.is)(r,e.PendingJsonRpcResponseStruct)},e.assertIsPendingJsonRpcResponse=function(t,n){(0,r.assertStruct)(t,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",n)},e.isJsonRpcResponse=function(r){return(0,t.is)(r,e.JsonRpcResponseStruct)},e.assertIsJsonRpcResponse=function(t,n){(0,r.assertStruct)(t,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",n)},e.isJsonRpcSuccess=function(r){return(0,t.is)(r,e.JsonRpcSuccessStruct)},e.assertIsJsonRpcSuccess=function(t,n){(0,r.assertStruct)(t,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",n)},e.isJsonRpcFailure=function(r){return(0,t.is)(r,e.JsonRpcFailureStruct)},e.assertIsJsonRpcFailure=function(t,n){(0,r.assertStruct)(t,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",n)},e.isJsonRpcError=function(r){return(0,t.is)(r,e.JsonRpcErrorStruct)},e.assertIsJsonRpcError=function(t,n){(0,r.assertStruct)(t,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",n)},e.getJsonRpcIdValidator=function(e){const{permitEmptyString:t,permitFractions:r,permitNull:n}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},e);return e=>Boolean("number"==typeof e&&(r||Number.isInteger(e))||"string"==typeof e&&(t||e.length>0)||n&&null===e)},e.validateJsonAndGetSize=s}($e);var Oe,Ce,Ne,Ae,xe,Te={},Le={exports:{}},je={exports:{}};function Fe(){if(Ce)return Oe;Ce=1;var e=1e3,t=60*e,r=60*t,n=24*r,s=7*n,o=365.25*n;function i(e,t,r,n){var s=t>=1.5*r;return Math.round(e/r)+" "+n+(s?"s":"")}return Oe=function(a,c){c=c||{};var u=typeof a;if("string"===u&&a.length>0)return function(i){if((i=String(i)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(a);if("number"===u&&isFinite(a))return c.long?function(s){var o=Math.abs(s);if(o>=n)return i(s,o,n,"day");if(o>=r)return i(s,o,r,"hour");if(o>=t)return i(s,o,t,"minute");if(o>=e)return i(s,o,e,"second");return s+" ms"}(a):function(s){var o=Math.abs(s);if(o>=n)return Math.round(s/n)+"d";if(o>=r)return Math.round(s/r)+"h";if(o>=t)return Math.round(s/t)+"m";if(o>=e)return Math.round(s/e)+"s";return s+"ms"}(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))},Oe}function Pe(){if(Ae)return Ne;return Ae=1,Ne=function(e){function t(e){let n,s,o,i=null;function a(...e){if(!a.enabled)return;const r=a,s=Number(new Date),o=s-(n||s);r.diff=o,r.prev=n,r.curr=s,n=s,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,s)=>{if("%%"===n)return"%";i++;const o=t.formatters[s];if("function"==typeof o){const t=e[i];n=o.call(r,t),e.splice(i,1),i--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(s!==t.namespaces&&(s=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(n),...t.skips.map(n).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),s=n.length;for(r=0;r<s;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=Fe(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t},Ne}var Je,_e,Me,De,Ve,Ge,Be={exports:{}};function ke(){return _e?Je:(_e=1,Je=(e,t=process.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return-1!==n&&(-1===s||n<s)})}function ze(){return Ve||(Ve=1,function(e,t){const r=o.default,n=i.default;t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(n.format(...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:s}=this;if(s){const t=this.color,s="[3"+(t<8?t:"8;5;"+t),o=` ${s};1m${n} `;r[0]=o+r[0].split("\n").join("\n"+o),r.push(s+"m+"+e.exports.humanize(this.diff)+"")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=function(){if(De)return Me;De=1;const e=a.default,t=o.default,r=ke(),{env:n}=process;let s;function i(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function c(t,o){if(0===s)return 0;if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2;if(t&&!o&&void 0===s)return 0;const i=s||0;if("dumb"===n.TERM)return i;if("win32"===process.platform){const t=e.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in n))||"codeship"===n.CI_NAME?1:i;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if("truecolor"===n.COLORTERM)return 3;if("TERM_PROGRAM"in n){const e=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:i}return r("no-color")||r("no-colors")||r("color=false")||r("color=never")?s=0:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(s=1),"FORCE_COLOR"in n&&(s="true"===n.FORCE_COLOR?1:"false"===n.FORCE_COLOR?0:0===n.FORCE_COLOR.length?1:Math.min(parseInt(n.FORCE_COLOR,10),3)),Me={supportsColor:function(e){return i(c(e,e&&e.isTTY))},stdout:i(c(!0,t.isatty(1))),stderr:i(c(!0,t.isatty(2)))}}();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),e.exports=Pe()(t);const{formatters:s}=e.exports;s.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},s.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)}}(Be,Be.exports)),Be.exports}Ge=Le,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?Ge.exports=(xe||(xe=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))})),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=Pe()(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(je,je.exports)),je.exports):Ge.exports=ze();var Ue=e.commonjsGlobal&&e.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Te,"__esModule",{value:!0}),Te.createModuleLogger=Te.createProjectLogger=void 0;const He=(0,Ue(Le.exports).default)("metamask");Te.createProjectLogger=function(e){return He.extend(e)},Te.createModuleLogger=function(e,t){return e.extend(t)};var Xe={};Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.hexToBigInt=Xe.hexToNumber=Xe.bigIntToHex=Xe.numberToHex=void 0;const We=u,qe=B;Xe.numberToHex=e=>((0,We.assert)("number"==typeof e,"Value must be a number."),(0,We.assert)(e>=0,"Value must be a non-negative number."),(0,We.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,qe.add0x)(e.toString(16)));Xe.bigIntToHex=e=>((0,We.assert)("bigint"==typeof e,"Value must be a bigint."),(0,We.assert)(e>=0,"Value must be a non-negative bigint."),(0,qe.add0x)(e.toString(16)));Xe.hexToNumber=e=>{(0,qe.assertIsHexString)(e);const t=parseInt(e,16);return(0,We.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t};Xe.hexToBigInt=e=>((0,qe.assertIsHexString)(e),BigInt((0,qe.add0x)(e)));var Ye={};Object.defineProperty(Ye,"__esModule",{value:!0});var Ze={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.inMilliseconds=e.Duration=void 0,(t=e.Duration||(e.Duration={}))[t.Millisecond=1]="Millisecond",t[t.Second=1e3]="Second",t[t.Minute=6e4]="Minute",t[t.Hour=36e5]="Hour",t[t.Day=864e5]="Day",t[t.Week=6048e5]="Week",t[t.Year=31536e6]="Year";const r=(e,t)=>{if(!(e=>Number.isInteger(e)&&e>=0)(e))throw new Error(`"${t}" must be a non-negative integer. Received: "${e}".`)};e.inMilliseconds=function(e,t){return r(e,"count"),e*t},e.timeSince=function(e){return r(e,"timestamp"),Date.now()-e}}(Ze);var Qe={},Ke={exports:{}};var et={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};var tt="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=et,n=tt,s=(t=e.exports={}).re=[],o=t.src=[],i=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;n(e,c,t),i[e]=c,o[c]=t,s[c]=new RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${o[i.NUMERICIDENTIFIER]})\\.(${o[i.NUMERICIDENTIFIER]})\\.(${o[i.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${o[i.NUMERICIDENTIFIERLOOSE]})\\.(${o[i.NUMERICIDENTIFIERLOOSE]})\\.(${o[i.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${o[i.NUMERICIDENTIFIER]}|${o[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${o[i.NUMERICIDENTIFIERLOOSE]}|${o[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${o[i.PRERELEASEIDENTIFIER]}(?:\\.${o[i.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${o[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[i.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${o[i.BUILDIDENTIFIER]}(?:\\.${o[i.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${o[i.MAINVERSION]}${o[i.PRERELEASE]}?${o[i.BUILD]}?`),c("FULL",`^${o[i.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${o[i.MAINVERSIONLOOSE]}${o[i.PRERELEASELOOSE]}?${o[i.BUILD]}?`),c("LOOSE",`^${o[i.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${o[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${o[i.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${o[i.XRANGEIDENTIFIER]})(?:\\.(${o[i.XRANGEIDENTIFIER]})(?:\\.(${o[i.XRANGEIDENTIFIER]})(?:${o[i.PRERELEASE]})?${o[i.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${o[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[i.XRANGEIDENTIFIERLOOSE]})(?:${o[i.PRERELEASELOOSE]})?${o[i.BUILD]}?)?)?`),c("XRANGE",`^${o[i.GTLT]}\\s*${o[i.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${o[i.GTLT]}\\s*${o[i.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",o[i.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${o[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${o[i.LONETILDE]}${o[i.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${o[i.LONETILDE]}${o[i.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${o[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${o[i.LONECARET]}${o[i.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${o[i.LONECARET]}${o[i.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${o[i.GTLT]}\\s*(${o[i.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${o[i.GTLT]}\\s*(${o[i.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${o[i.GTLT]}\\s*(${o[i.LOOSEPLAIN]}|${o[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${o[i.XRANGEPLAIN]})\\s+-\\s+(${o[i.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${o[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[i.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Ke,Ke.exports);const rt=Object.freeze({loose:!0}),nt=Object.freeze({});var st=e=>e?"object"!=typeof e?rt:e:nt;const ot=/^[0-9]+$/,it=(e,t)=>{const r=ot.test(e),n=ot.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1};var at={compareIdentifiers:it,rcompareIdentifiers:(e,t)=>it(t,e)};const ct=tt,{MAX_LENGTH:ut,MAX_SAFE_INTEGER:lt}=et,{re:pt,t:ht}=Ke.exports,ft=st,{compareIdentifiers:dt}=at;class mt{constructor(e,t){if(t=ft(t),e instanceof mt){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${i.default.inspect(e)}`);if(e.length>ut)throw new TypeError(`version is longer than ${ut} characters`);ct("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?pt[ht.LOOSE]:pt[ht.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>lt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>lt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>lt||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<lt)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(ct("SemVer.compare",this.version,this.options,e),!(e instanceof mt)){if("string"==typeof e&&e===this.version)return 0;e=new mt(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof mt||(e=new mt(e,this.options)),dt(this.major,e.major)||dt(this.minor,e.minor)||dt(this.patch,e.patch)}comparePre(e){if(e instanceof mt||(e=new mt(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],n=e.prerelease[t];if(ct("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return dt(r,n)}while(++t)}compareBuild(e){e instanceof mt||(e=new mt(e,this.options));let t=0;do{const r=this.build[t],n=e.build[t];if(ct("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return dt(r,n)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===dt(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}var gt=mt;const vt=gt;var Et=(e,t,r=!1)=>{if(e instanceof vt)return e;try{return new vt(e,t)}catch(e){if(!r)return null;throw e}};const yt=Et;var St=(e,t)=>{const r=yt(e,t);return r?r.version:null};const Rt=Et;var bt=(e,t)=>{const r=Rt(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};const It=gt;var $t=(e,t,r,n,s)=>{"string"==typeof r&&(s=n,n=r,r=void 0);try{return new It(e instanceof It?e.version:e,r).inc(t,n,s).version}catch(e){return null}};const wt=Et;var Ot=(e,t)=>{const r=wt(e,null,!0),n=wt(t,null,!0),s=r.compare(n);if(0===s)return null;const o=s>0,i=o?n:r,a=!!(o?r:n).prerelease.length,c=a?"pre":"";return r.major!==n.major?c+"major":r.minor!==n.minor?c+"minor":r.patch!==n.patch?c+"patch":a?"prerelease":i.patch?"patch":i.minor?"minor":"major"};const Ct=gt;var Nt=(e,t)=>new Ct(e,t).major;const At=gt;var xt=(e,t)=>new At(e,t).minor;const Tt=gt;var Lt=(e,t)=>new Tt(e,t).patch;const jt=Et;var Ft=(e,t)=>{const r=jt(e,t);return r&&r.prerelease.length?r.prerelease:null};const Pt=gt;var Jt=(e,t,r)=>new Pt(e,r).compare(new Pt(t,r));const _t=Jt;var Mt=(e,t,r)=>_t(t,e,r);const Dt=Jt;var Vt=(e,t)=>Dt(e,t,!0);const Gt=gt;var Bt=(e,t,r)=>{const n=new Gt(e,r),s=new Gt(t,r);return n.compare(s)||n.compareBuild(s)};const kt=Bt;var zt=(e,t)=>e.sort(((e,r)=>kt(e,r,t)));const Ut=Bt;var Ht=(e,t)=>e.sort(((e,r)=>Ut(r,e,t)));const Xt=Jt;var Wt=(e,t,r)=>Xt(e,t,r)>0;const qt=Jt;var Yt=(e,t,r)=>qt(e,t,r)<0;const Zt=Jt;var Qt=(e,t,r)=>0===Zt(e,t,r);const Kt=Jt;var er=(e,t,r)=>0!==Kt(e,t,r);const tr=Jt;var rr=(e,t,r)=>tr(e,t,r)>=0;const nr=Jt;var sr=(e,t,r)=>nr(e,t,r)<=0;const or=Qt,ir=er,ar=Wt,cr=rr,ur=Yt,lr=sr;var pr=(e,t,r,n)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return or(e,r,n);case"!=":return ir(e,r,n);case">":return ar(e,r,n);case">=":return cr(e,r,n);case"<":return ur(e,r,n);case"<=":return lr(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};const hr=gt,fr=Et,{re:dr,t:mr}=Ke.exports;var gr,vr,Er,yr,Sr,Rr,br,Ir,$r,wr,Or=(e,t)=>{if(e instanceof hr)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=dr[mr.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),dr[mr.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;dr[mr.COERCERTL].lastIndex=-1}else r=e.match(dr[mr.COERCE]);return null===r?null:fr(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};function Cr(){if(yr)return Er;function e(t){var r=this;if(r instanceof e||(r=new e),r.tail=null,r.head=null,r.length=0,t&&"function"==typeof t.forEach)t.forEach((function(e){r.push(e)}));else if(arguments.length>0)for(var n=0,s=arguments.length;n<s;n++)r.push(arguments[n]);return r}function t(e,t,r){var n=t===e.head?new s(r,null,t,e):new s(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function r(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function n(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,r,n){if(!(this instanceof s))return new s(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}yr=1,Er=e,e.Node=s,e.create=e,e.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},e.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},e.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},e.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)r(this,arguments[e]);return this.length},e.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)n(this,arguments[e]);return this.length},e.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},e.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},e.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},e.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},e.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},e.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},e.prototype.map=function(t,r){r=r||this;for(var n=new e,s=this.head;null!==s;)n.push(t.call(r,s.value,this)),s=s.next;return n},e.prototype.mapReverse=function(t,r){r=r||this;for(var n=new e,s=this.tail;null!==s;)n.push(t.call(r,s.value,this)),s=s.prev;return n},e.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var s=0;null!==n;s++)r=e(r,n.value,s),n=n.next;return r},e.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var s=this.length-1;null!==n;s--)r=e(r,n.value,s),n=n.prev;return r},e.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},e.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},e.prototype.slice=function(t,r){(r=r||this.length)<0&&(r+=this.length),(t=t||0)<0&&(t+=this.length);var n=new e;if(r<t||r<0)return n;t<0&&(t=0),r>this.length&&(r=this.length);for(var s=0,o=this.head;null!==o&&s<t;s++)o=o.next;for(;null!==o&&s<r;s++,o=o.next)n.push(o.value);return n},e.prototype.sliceReverse=function(t,r){(r=r||this.length)<0&&(r+=this.length),(t=t||0)<0&&(t+=this.length);var n=new e;if(r<t||r<0)return n;t<0&&(t=0),r>this.length&&(r=this.length);for(var s=this.length,o=this.tail;null!==o&&s>r;s--)o=o.prev;for(;null!==o&&s>t;s--,o=o.prev)n.push(o.value);return n},e.prototype.splice=function(e,r,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var s=0,o=this.head;null!==o&&s<e;s++)o=o.next;var i=[];for(s=0;o&&s<r;s++)i.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(s=0;s<n.length;s++)o=t(this,o,n[s]);return i},e.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{(vr?gr:(vr=1,gr=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(e)}catch(e){}return Er}function Nr(){if(Ir)return br;Ir=1;class e{constructor(t,r){if(r=n(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof s)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t,this.set=t.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${t}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!d(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=((this.options.includePrerelease&&h)|(this.options.loose&&f))+":"+e,n=r.get(t);if(n)return n;const i=this.options.loose,m=i?a[c.HYPHENRANGELOOSE]:a[c.HYPHENRANGE];e=e.replace(m,C(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[c.COMPARATORTRIM],u),o("comparator trim",e);let g=(e=(e=(e=e.replace(a[c.TILDETRIM],l)).replace(a[c.CARETTRIM],p)).split(/\s+/).join(" ")).split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>O(e,this.options)));i&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(a[c.COMPARATORLOOSE]))))),o("range list",g);const E=new Map,y=g.map((e=>new s(e,this.options)));for(const e of y){if(d(e))return[e];E.set(e.value,e)}E.size>1&&E.has("")&&E.delete("");const S=[...E.values()];return r.set(t,S),S}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,r)&&t.set.some((t=>g(t,r)&&e.every((e=>t.every((t=>e.intersects(t,r)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(N(this.set[t],e,this.options))return!0;return!1}}br=e;const t=function(){if(Rr)return Sr;Rr=1;const e=Cr(),t=Symbol("max"),r=Symbol("length"),n=Symbol("lengthCalculator"),s=Symbol("allowStale"),o=Symbol("maxAge"),i=Symbol("dispose"),a=Symbol("noDisposeOnSet"),c=Symbol("lruList"),u=Symbol("cache"),l=Symbol("updateAgeOnGet"),p=()=>1,h=(e,t,r)=>{const n=e[u].get(t);if(n){const t=n.value;if(f(e,t)){if(m(e,n),!e[s])return}else r&&(e[l]&&(n.value.now=Date.now()),e[c].unshiftNode(n));return t.value}},f=(e,t)=>{if(!t||!t.maxAge&&!e[o])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[o]&&r>e[o]},d=e=>{if(e[r]>e[t])for(let n=e[c].tail;e[r]>e[t]&&null!==n;){const t=n.prev;m(e,n),n=t}},m=(e,t)=>{if(t){const n=t.value;e[i]&&e[i](n.key,n.value),e[r]-=n.length,e[u].delete(n.key),e[c].removeNode(t)}};class g{constructor(e,t,r,n,s){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=s||0}}const v=(e,t,r,n)=>{let o=r.value;f(e,o)&&(m(e,r),e[s]||(o=void 0)),o&&t.call(n,o.value,o.key,e)};return Sr=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[t]=e.max||1/0;const r=e.length||p;if(this[n]="function"!=typeof r?p:r,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[o]=e.maxAge||0,this[i]=e.dispose,this[a]=e.noDisposeOnSet||!1,this[l]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[t]=e||1/0,d(this)}get max(){return this[t]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[o]=e,d(this)}get maxAge(){return this[o]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[n]&&(this[n]=e,this[r]=0,this[c].forEach((e=>{e.length=this[n](e.value,e.key),this[r]+=e.length}))),d(this)}get lengthCalculator(){return this[n]}get length(){return this[r]}get itemCount(){return this[c].length}rforEach(e,t){t=t||this;for(let r=this[c].tail;null!==r;){const n=r.prev;v(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[c].head;null!==r;){const n=r.next;v(this,e,r,t),r=n}}keys(){return this[c].toArray().map((e=>e.key))}values(){return this[c].toArray().map((e=>e.value))}reset(){this[i]&&this[c]&&this[c].length&&this[c].forEach((e=>this[i](e.key,e.value))),this[u]=new Map,this[c]=new e,this[r]=0}dump(){return this[c].map((e=>!f(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[c]}set(e,s,l){if((l=l||this[o])&&"number"!=typeof l)throw new TypeError("maxAge must be a number");const p=l?Date.now():0,h=this[n](s,e);if(this[u].has(e)){if(h>this[t])return m(this,this[u].get(e)),!1;const n=this[u].get(e).value;return this[i]&&(this[a]||this[i](e,n.value)),n.now=p,n.maxAge=l,n.value=s,this[r]+=h-n.length,n.length=h,this.get(e),d(this),!0}const f=new g(e,s,h,p,l);return f.length>this[t]?(this[i]&&this[i](e,s),!1):(this[r]+=f.length,this[c].unshift(f),this[u].set(e,this[c].head),d(this),!0)}has(e){if(!this[u].has(e))return!1;const t=this[u].get(e).value;return!f(this,t)}get(e){return h(this,e,!0)}peek(e){return h(this,e,!1)}pop(){const e=this[c].tail;return e?(m(this,e),e.value):null}del(e){m(this,this[u].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],s=n.e||0;if(0===s)this.set(n.k,n.v);else{const e=s-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[u].forEach(((e,t)=>h(this,t,!1)))}},Sr}(),r=new t({max:1e3}),n=st,s=Ar(),o=tt,i=gt,{re:a,t:c,comparatorTrimReplace:u,tildeTrimReplace:l,caretTrimReplace:p}=Ke.exports,{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:f}=et,d=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let r=!0;const n=e.slice();let s=n.pop();for(;r&&n.length;)r=n.every((e=>s.intersects(e,t))),s=n.pop();return r},v=(e,t)=>(o("comp",e,t),e=R(e,t),o("caret",e),e=y(e,t),o("tildes",e),e=I(e,t),o("xrange",e),e=w(e,t),o("stars",e),e),E=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const r=t.loose?a[c.TILDELOOSE]:a[c.TILDE];return e.replace(r,((t,r,n,s,i)=>{let a;return o("tilde",e,t,r,n,s,i),E(r)?a="":E(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:E(s)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(o("replaceTilde pr",i),a=`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`,o("tilde return",a),a}))},R=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{o("caret",e,t);const r=t.loose?a[c.CARETLOOSE]:a[c.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,i,a)=>{let c;return o("caret",e,t,r,s,i,a),E(r)?c="":E(s)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:E(i)?c="0"===r?`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.0${n} <${+r+1}.0.0-0`:a?(o("replaceCaret pr",a),c="0"===r?"0"===s?`>=${r}.${s}.${i}-${a} <${r}.${s}.${+i+1}-0`:`>=${r}.${s}.${i}-${a} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${i}-${a} <${+r+1}.0.0-0`):(o("no pr"),c="0"===r?"0"===s?`>=${r}.${s}.${i}${n} <${r}.${s}.${+i+1}-0`:`>=${r}.${s}.${i}${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${i} <${+r+1}.0.0-0`),o("caret return",c),c}))},I=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>$(e,t))).join(" ")),$=(e,t)=>{e=e.trim();const r=t.loose?a[c.XRANGELOOSE]:a[c.XRANGE];return e.replace(r,((r,n,s,i,a,c)=>{o("xRange",e,r,n,s,i,a,c);const u=E(s),l=u||E(i),p=l||E(a),h=p;return"="===n&&h&&(n=""),c=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&h?(l&&(i=0),a=0,">"===n?(n=">=",l?(s=+s+1,i=0,a=0):(i=+i+1,a=0)):"<="===n&&(n="<",l?s=+s+1:i=+i+1),"<"===n&&(c="-0"),r=`${n+s}.${i}.${a}${c}`):l?r=`>=${s}.0.0${c} <${+s+1}.0.0-0`:p&&(r=`>=${s}.${i}.0${c} <${s}.${+i+1}.0-0`),o("xRange return",r),r}))},w=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),O=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),C=e=>(t,r,n,s,o,i,a,c,u,l,p,h,f)=>`${r=E(n)?"":E(s)?`>=${n}.0.0${e?"-0":""}`:E(o)?`>=${n}.${s}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=E(u)?"":E(l)?`<${+u+1}.0.0-0`:E(p)?`<${u}.${+l+1}.0-0`:h?`<=${u}.${l}.${p}-${h}`:e?`<${u}.${l}.${+p+1}-0`:`<=${c}`}`.trim(),N=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(o(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0};return br}function Ar(){if(wr)return $r;wr=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(n,s){if(s=r(s),n instanceof t){if(n.loose===!!s.loose)return n;n=n.value}i("comparator",n,s),this.options=s,this.loose=!!s.loose,this.parse(n),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(t){const r=this.options.loose?n[s.COMPARATORLOOSE]:n[s.COMPARATOR],o=t.match(r);if(!o)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==o[1]?o[1]:"","="===this.operator&&(this.operator=""),o[2]?this.semver=new a(o[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(i("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new a(t,this.options)}catch(e){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new c(e.value,n).test(this.value):""===e.operator?""===e.value||new c(this.value,n).test(e.semver):(!(n=r(n)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(o(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(o(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}$r=t;const r=st,{re:n,t:s}=Ke.exports,o=pr,i=tt,a=gt,c=Nr();return $r}const xr=Nr();var Tr=(e,t,r)=>{try{t=new xr(t,r)}catch(e){return!1}return t.test(e)};const Lr=Nr();var jr=(e,t)=>new Lr(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const Fr=gt,Pr=Nr();var Jr=(e,t,r)=>{let n=null,s=null,o=null;try{o=new Pr(t,r)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(n&&-1!==s.compare(e)||(n=e,s=new Fr(n,r)))})),n};const _r=gt,Mr=Nr();var Dr=(e,t,r)=>{let n=null,s=null,o=null;try{o=new Mr(t,r)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(n&&1!==s.compare(e)||(n=e,s=new _r(n,r)))})),n};const Vr=gt,Gr=Nr(),Br=Wt;var kr=(e,t)=>{e=new Gr(e,t);let r=new Vr("0.0.0");if(e.test(r))return r;if(r=new Vr("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const n=e.set[t];let s=null;n.forEach((e=>{const t=new Vr(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!Br(t,s)||(s=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!s||r&&!Br(r,s)||(r=s)}return r&&e.test(r)?r:null};const zr=Nr();var Ur=(e,t)=>{try{return new zr(e,t).range||"*"}catch(e){return null}};const Hr=gt,Xr=Ar(),{ANY:Wr}=Xr,qr=Nr(),Yr=Tr,Zr=Wt,Qr=Yt,Kr=sr,en=rr;var tn=(e,t,r,n)=>{let s,o,i,a,c;switch(e=new Hr(e,n),t=new qr(t,n),r){case">":s=Zr,o=Kr,i=Qr,a=">",c=">=";break;case"<":s=Qr,o=en,i=Zr,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Yr(e,t,n))return!1;for(let r=0;r<t.set.length;++r){const u=t.set[r];let l=null,p=null;if(u.forEach((e=>{e.semver===Wr&&(e=new Xr(">=0.0.0")),l=l||e,p=p||e,s(e.semver,l.semver,n)?l=e:i(e.semver,p.semver,n)&&(p=e)})),l.operator===a||l.operator===c)return!1;if((!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&i(e,p.semver))return!1}return!0};const rn=tn;var nn=(e,t,r)=>rn(e,t,">",r);const sn=tn;var on=(e,t,r)=>sn(e,t,"<",r);const an=Nr();var cn=(e,t,r)=>(e=new an(e,r),t=new an(t,r),e.intersects(t,r));const un=Tr,ln=Jt;const pn=Nr(),hn=Ar(),{ANY:fn}=hn,dn=Tr,mn=Jt,gn=[new hn(">=0.0.0-0")],vn=[new hn(">=0.0.0")],En=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===fn){if(1===t.length&&t[0].semver===fn)return!0;e=r.includePrerelease?gn:vn}if(1===t.length&&t[0].semver===fn){if(r.includePrerelease)return!0;t=vn}const n=new Set;let s,o,i,a,c,u,l;for(const t of e)">"===t.operator||">="===t.operator?s=yn(s,t,r):"<"===t.operator||"<="===t.operator?o=Sn(o,t,r):n.add(t.semver);if(n.size>1)return null;if(s&&o){if(i=mn(s.semver,o.semver,r),i>0)return null;if(0===i&&(">="!==s.operator||"<="!==o.operator))return null}for(const e of n){if(s&&!dn(e,String(s),r))return null;if(o&&!dn(e,String(o),r))return null;for(const n of t)if(!dn(e,String(n),r))return!1;return!0}let p=!(!o||r.includePrerelease||!o.semver.prerelease.length)&&o.semver,h=!(!s||r.includePrerelease||!s.semver.prerelease.length)&&s.semver;p&&1===p.prerelease.length&&"<"===o.operator&&0===p.prerelease[0]&&(p=!1);for(const e of t){if(l=l||">"===e.operator||">="===e.operator,u=u||"<"===e.operator||"<="===e.operator,s)if(h&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===h.major&&e.semver.minor===h.minor&&e.semver.patch===h.patch&&(h=!1),">"===e.operator||">="===e.operator){if(a=yn(s,e,r),a===e&&a!==s)return!1}else if(">="===s.operator&&!dn(s.semver,String(e),r))return!1;if(o)if(p&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===p.major&&e.semver.minor===p.minor&&e.semver.patch===p.patch&&(p=!1),"<"===e.operator||"<="===e.operator){if(c=Sn(o,e,r),c===e&&c!==o)return!1}else if("<="===o.operator&&!dn(o.semver,String(e),r))return!1;if(!e.operator&&(o||s)&&0!==i)return!1}return!(s&&u&&!o&&0!==i)&&(!(o&&l&&!s&&0!==i)&&(!h&&!p))},yn=(e,t,r)=>{if(!e)return t;const n=mn(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},Sn=(e,t,r)=>{if(!e)return t;const n=mn(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};var Rn=(e,t,r={})=>{if(e===t)return!0;e=new pn(e,r),t=new pn(t,r);let n=!1;e:for(const s of e.set){for(const e of t.set){const t=En(s,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0};const bn=Ke.exports,In=et,$n=gt,wn=at,On=(e,t,r)=>{const n=[];let s=null,o=null;const i=e.sort(((e,t)=>ln(e,t,r)));for(const e of i){un(e,t,r)?(o=e,s||(s=e)):(o&&n.push([s,o]),o=null,s=null)}s&&n.push([s,null]);const a=[];for(const[e,t]of n)e===t?a.push(e):t||e!==i[0]?t?e===i[0]?a.push(`<=${t}`):a.push(`${e} - ${t}`):a.push(`>=${e}`):a.push("*");const c=a.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return c.length<u.length?c:t};var Cn={parse:Et,valid:St,clean:bt,inc:$t,diff:Ot,major:Nt,minor:xt,patch:Lt,prerelease:Ft,compare:Jt,rcompare:Mt,compareLoose:Vt,compareBuild:Bt,sort:zt,rsort:Ht,gt:Wt,lt:Yt,eq:Qt,neq:er,gte:rr,lte:sr,cmp:pr,coerce:Or,Comparator:Ar(),Range:Nr(),satisfies:Tr,toComparators:jr,maxSatisfying:Jr,minSatisfying:Dr,minVersion:kr,validRange:Ur,outside:tn,gtr:nn,ltr:on,intersects:cn,simplifyRange:On,subset:Rn,SemVer:$n,re:bn.re,src:bn.src,tokens:bn.t,SEMVER_SPEC_VERSION:In.SEMVER_SPEC_VERSION,RELEASE_TYPES:In.RELEASE_TYPES,compareIdentifiers:wn.compareIdentifiers,rcompareIdentifiers:wn.rcompareIdentifiers};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.satisfiesVersionRange=e.gtRange=e.gtVersion=e.assertIsSemVerRange=e.assertIsSemVerVersion=e.isValidSemVerRange=e.isValidSemVerVersion=e.VersionRangeStruct=e.VersionStruct=void 0;const t=Cn,r=F,n=u;e.VersionStruct=(0,r.refine)((0,r.string)(),"Version",(e=>null!==(0,t.valid)(e)||`Expected SemVer version, got "${e}"`)),e.VersionRangeStruct=(0,r.refine)((0,r.string)(),"Version range",(e=>null!==(0,t.validRange)(e)||`Expected SemVer range, got "${e}"`)),e.isValidSemVerVersion=function(t){return(0,r.is)(t,e.VersionStruct)},e.isValidSemVerRange=function(t){return(0,r.is)(t,e.VersionRangeStruct)},e.assertIsSemVerVersion=function(t){(0,n.assertStruct)(t,e.VersionStruct)},e.assertIsSemVerRange=function(t){(0,n.assertStruct)(t,e.VersionRangeStruct)},e.gtVersion=function(e,r){return(0,t.gt)(e,r)},e.gtRange=function(e,r){return(0,t.gtr)(e,r)},e.satisfiesVersionRange=function(e,r){return(0,t.satisfies)(e,r,{includePrerelease:!0})}}(Qe),function(t){var r=e.commonjsGlobal&&e.commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=e.commonjsGlobal&&e.commonjsGlobal.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),n(u,t),n(M,t),n(G,t),n(se,t),n(ae,t),n(ye,t),n(B,t),n($e,t),n(Te,t),n(we,t),n(Xe,t),n(Ye,t),n(Ze,t),n(Qe,t)}(c),exports.dist=c,exports.semver=Cn,exports.src=Le;
@@ -1 +0,0 @@
1
- "use strict";var t,e={exports:{}},r={exports:{}};!function(e){try{var o=require("util");if("function"!=typeof o.inherits)throw"";e.exports=o.inherits}catch(o){e.exports=(t||(t=1,"function"==typeof Object.create?r.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:r.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),r.exports)}}(e),exports.inherits=e;