@gearbox-protocol/deploy-tools 5.60.1 → 5.60.3

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 (2) hide show
  1. package/dist/index.mjs +804 -465
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -4480,7 +4480,7 @@ var init_size = __esm({
4480
4480
  var version2;
4481
4481
  var init_version2 = __esm({
4482
4482
  "../../node_modules/viem/_esm/errors/version.js"() {
4483
- version2 = "2.39.3";
4483
+ version2 = "2.40.2";
4484
4484
  }
4485
4485
  });
4486
4486
 
@@ -7036,20 +7036,12 @@ function prettyPrint(args) {
7036
7036
  const maxLength = entries.reduce((acc, [key]) => Math.max(acc, key.length), 0);
7037
7037
  return entries.map(([key, value]) => ` ${`${key}:`.padEnd(maxLength + 1)} ${value}`).join("\n");
7038
7038
  }
7039
- var FeeConflictError, InvalidLegacyVError, InvalidSerializableTransactionError, InvalidStorageKeySizeError, TransactionExecutionError, TransactionNotFoundError, TransactionReceiptNotFoundError, TransactionReceiptRevertedError, WaitForTransactionReceiptTimeoutError;
7039
+ var InvalidLegacyVError, InvalidSerializableTransactionError, InvalidStorageKeySizeError, TransactionExecutionError, TransactionNotFoundError, TransactionReceiptNotFoundError, TransactionReceiptRevertedError, WaitForTransactionReceiptTimeoutError;
7040
7040
  var init_transaction = __esm({
7041
7041
  "../../node_modules/viem/_esm/errors/transaction.js"() {
7042
7042
  init_formatEther();
7043
7043
  init_formatGwei();
7044
7044
  init_base();
7045
- FeeConflictError = class extends BaseError2 {
7046
- constructor() {
7047
- super([
7048
- "Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
7049
- "Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."
7050
- ].join("\n"), { name: "FeeConflictError" });
7051
- }
7052
- };
7053
7045
  InvalidLegacyVError = class extends BaseError2 {
7054
7046
  constructor({ v }) {
7055
7047
  super(`Invalid \`v\` value "${v}". Expected 27 or 28.`, {
@@ -7502,8 +7494,15 @@ var init_request = __esm({
7502
7494
  writable: true,
7503
7495
  value: void 0
7504
7496
  });
7497
+ Object.defineProperty(this, "url", {
7498
+ enumerable: true,
7499
+ configurable: true,
7500
+ writable: true,
7501
+ value: void 0
7502
+ });
7505
7503
  this.code = error46.code;
7506
7504
  this.data = error46.data;
7505
+ this.url = url2;
7507
7506
  }
7508
7507
  };
7509
7508
  TimeoutError = class extends BaseError2 {
@@ -7513,6 +7512,13 @@ var init_request = __esm({
7513
7512
  metaMessages: [`URL: ${getUrl(url2)}`, `Request body: ${stringify(body)}`],
7514
7513
  name: "TimeoutError"
7515
7514
  });
7515
+ Object.defineProperty(this, "url", {
7516
+ enumerable: true,
7517
+ configurable: true,
7518
+ writable: true,
7519
+ value: void 0
7520
+ });
7521
+ this.url = url2;
7516
7522
  }
7517
7523
  };
7518
7524
  }
@@ -11233,14 +11239,12 @@ var init_number = __esm({
11233
11239
 
11234
11240
  // ../../node_modules/viem/_esm/utils/transaction/assertRequest.js
11235
11241
  function assertRequest(args) {
11236
- const { account: account_, gasPrice, maxFeePerGas, maxPriorityFeePerGas, to } = args;
11242
+ const { account: account_, maxFeePerGas, maxPriorityFeePerGas, to } = args;
11237
11243
  const account = account_ ? parseAccount(account_) : void 0;
11238
11244
  if (account && !isAddress(account.address))
11239
11245
  throw new InvalidAddressError({ address: account.address });
11240
11246
  if (to && !isAddress(to))
11241
11247
  throw new InvalidAddressError({ address: to });
11242
- if (typeof gasPrice !== "undefined" && (typeof maxFeePerGas !== "undefined" || typeof maxPriorityFeePerGas !== "undefined"))
11243
- throw new FeeConflictError();
11244
11248
  if (maxFeePerGas && maxFeePerGas > maxUint256)
11245
11249
  throw new FeeCapTooHighError({ maxFeePerGas });
11246
11250
  if (maxPriorityFeePerGas && maxFeePerGas && maxPriorityFeePerGas > maxFeePerGas)
@@ -11252,7 +11256,6 @@ var init_assertRequest = __esm({
11252
11256
  init_number();
11253
11257
  init_address();
11254
11258
  init_node();
11255
- init_transaction();
11256
11259
  init_isAddress();
11257
11260
  }
11258
11261
  });
@@ -71560,7 +71563,7 @@ var require_mode_ctr = __commonJS({
71560
71563
  }
71561
71564
  }
71562
71565
  encrypt(plaintext) {
71563
- var _a, _b;
71566
+ var _a2, _b;
71564
71567
  const crypttext = new Uint8Array(plaintext);
71565
71568
  for (let i = 0; i < crypttext.length; i++) {
71566
71569
  if (__classPrivateFieldGet4(this, _CTR_remainingIndex, "f") === 16) {
@@ -71568,7 +71571,7 @@ var require_mode_ctr = __commonJS({
71568
71571
  __classPrivateFieldSet4(this, _CTR_remainingIndex, 0, "f");
71569
71572
  this.increment();
71570
71573
  }
71571
- crypttext[i] ^= __classPrivateFieldGet4(this, _CTR_remaining, "f")[__classPrivateFieldSet4(this, _CTR_remainingIndex, (_b = __classPrivateFieldGet4(this, _CTR_remainingIndex, "f"), _a = _b++, _b), "f"), _a];
71574
+ crypttext[i] ^= __classPrivateFieldGet4(this, _CTR_remaining, "f")[__classPrivateFieldSet4(this, _CTR_remainingIndex, (_b = __classPrivateFieldGet4(this, _CTR_remainingIndex, "f"), _a2 = _b++, _b), "f"), _a2];
71572
71575
  }
71573
71576
  return crypttext;
71574
71577
  }
@@ -71659,7 +71662,7 @@ var require_mode_ofb = __commonJS({
71659
71662
  return new Uint8Array(__classPrivateFieldGet4(this, _OFB_iv, "f"));
71660
71663
  }
71661
71664
  encrypt(plaintext) {
71662
- var _a, _b;
71665
+ var _a2, _b;
71663
71666
  if (plaintext.length % 16) {
71664
71667
  throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");
71665
71668
  }
@@ -71669,7 +71672,7 @@ var require_mode_ofb = __commonJS({
71669
71672
  __classPrivateFieldSet4(this, _OFB_lastPrecipher, this.aes.encrypt(__classPrivateFieldGet4(this, _OFB_lastPrecipher, "f")), "f");
71670
71673
  __classPrivateFieldSet4(this, _OFB_lastPrecipherIndex, 0, "f");
71671
71674
  }
71672
- ciphertext[i] ^= __classPrivateFieldGet4(this, _OFB_lastPrecipher, "f")[__classPrivateFieldSet4(this, _OFB_lastPrecipherIndex, (_b = __classPrivateFieldGet4(this, _OFB_lastPrecipherIndex, "f"), _a = _b++, _b), "f"), _a];
71675
+ ciphertext[i] ^= __classPrivateFieldGet4(this, _OFB_lastPrecipher, "f")[__classPrivateFieldSet4(this, _OFB_lastPrecipherIndex, (_b = __classPrivateFieldGet4(this, _OFB_lastPrecipherIndex, "f"), _a2 = _b++, _b), "f"), _a2];
71673
71676
  }
71674
71677
  return ciphertext;
71675
71678
  }
@@ -72022,7 +72025,7 @@ var require_json_keystore = __commonJS({
72022
72025
  const macPrefix = key.slice(16, 32);
72023
72026
  const aesCtr = new aes_js_1.CTR(derivedKey, iv);
72024
72027
  const ciphertext = (0, index_js_4.getBytes)(aesCtr.encrypt(privateKey));
72025
- const mac = (0, index_js_2.keccak256)((0, index_js_4.concat)([macPrefix, ciphertext]));
72028
+ const mac3 = (0, index_js_2.keccak256)((0, index_js_4.concat)([macPrefix, ciphertext]));
72026
72029
  const data = {
72027
72030
  address: account.address.substring(2).toLowerCase(),
72028
72031
  id: (0, index_js_4.uuidV4)(uuidRandom),
@@ -72041,7 +72044,7 @@ var require_json_keystore = __commonJS({
72041
72044
  p: kdf.p,
72042
72045
  r: kdf.r
72043
72046
  },
72044
- mac: mac.substring(2)
72047
+ mac: mac3.substring(2)
72045
72048
  }
72046
72049
  };
72047
72050
  if (account.mnemonic) {
@@ -81016,9 +81019,9 @@ var require_axios = __commonJS({
81016
81019
  if (!url3.startsWith("data:")) return 0;
81017
81020
  const comma = url3.indexOf(",");
81018
81021
  if (comma < 0) return 0;
81019
- const meta = url3.slice(5, comma);
81022
+ const meta3 = url3.slice(5, comma);
81020
81023
  const body = url3.slice(comma + 1);
81021
- const isBase64 = /;base64/i.test(meta);
81024
+ const isBase64 = /;base64/i.test(meta3);
81022
81025
  if (isBase64) {
81023
81026
  let effectiveLen = body.length;
81024
81027
  const len = body.length;
@@ -99076,7 +99079,7 @@ var require_bytecode = __commonJS({
99076
99079
  try {
99077
99080
  CBOR.decode((0, bytes_1.arrayify)(`0x${auxdata}`));
99078
99081
  return true;
99079
- } catch (_a) {
99082
+ } catch (_a2) {
99080
99083
  return false;
99081
99084
  }
99082
99085
  };
@@ -128710,11 +128713,11 @@ var require_utils8 = __commonJS({
128710
128713
  return new Date(date5.getTime() + date5.getTimezoneOffset() * 6e4);
128711
128714
  }
128712
128715
  function getParametersValue(parameters, name, defaultValue) {
128713
- var _a;
128716
+ var _a2;
128714
128717
  if (parameters instanceof Object === false) {
128715
128718
  return defaultValue;
128716
128719
  }
128717
- return (_a = parameters[name]) !== null && _a !== void 0 ? _a : defaultValue;
128720
+ return (_a2 = parameters[name]) !== null && _a2 !== void 0 ? _a2 : defaultValue;
128718
128721
  }
128719
128722
  function bufferToHexCodes(inputBuffer, inputOffset = 0, inputLength = inputBuffer.byteLength - inputOffset, insertSpace = false) {
128720
128723
  let result = "";
@@ -129153,8 +129156,8 @@ var require_build2 = __commonJS({
129153
129156
  var OCTET_STRING_NAME = "OCTET STRING";
129154
129157
  var BIT_STRING_NAME = "BIT STRING";
129155
129158
  function HexBlock(BaseClass) {
129156
- var _a2;
129157
- return _a2 = class Some extends BaseClass {
129159
+ var _a3;
129160
+ return _a3 = class Some extends BaseClass {
129158
129161
  get valueHex() {
129159
129162
  return this.valueHexView.slice().buffer;
129160
129163
  }
@@ -129199,7 +129202,7 @@ var require_build2 = __commonJS({
129199
129202
  valueHex: pvtsutils__namespace.Convert.ToHex(this.valueHexView)
129200
129203
  };
129201
129204
  }
129202
- }, _a2.NAME = "hexBlock", _a2;
129205
+ }, _a3.NAME = "hexBlock", _a3;
129203
129206
  }
129204
129207
  var LocalBaseBlock = class {
129205
129208
  static blockName() {
@@ -129239,10 +129242,10 @@ var require_build2 = __commonJS({
129239
129242
  ValueBlock.NAME = "valueBlock";
129240
129243
  var LocalIdentificationBlock = class extends HexBlock(LocalBaseBlock) {
129241
129244
  constructor({ idBlock = {} } = {}) {
129242
- var _a2, _b, _c, _d;
129245
+ var _a3, _b, _c, _d;
129243
129246
  super();
129244
129247
  if (idBlock) {
129245
- this.isHexOnly = (_a2 = idBlock.isHexOnly) !== null && _a2 !== void 0 ? _a2 : false;
129248
+ this.isHexOnly = (_a3 = idBlock.isHexOnly) !== null && _a3 !== void 0 ? _a3 : false;
129246
129249
  this.valueHexView = idBlock.valueHex ? pvtsutils__namespace.BufferSourceConverter.toUint8Array(idBlock.valueHex) : EMPTY_VIEW;
129247
129250
  this.tagClass = (_b = idBlock.tagClass) !== null && _b !== void 0 ? _b : -1;
129248
129251
  this.tagNumber = (_c = idBlock.tagNumber) !== null && _c !== void 0 ? _c : -1;
@@ -129407,9 +129410,9 @@ var require_build2 = __commonJS({
129407
129410
  LocalIdentificationBlock.NAME = "identificationBlock";
129408
129411
  var LocalLengthBlock = class extends LocalBaseBlock {
129409
129412
  constructor({ lenBlock = {} } = {}) {
129410
- var _a2, _b, _c;
129413
+ var _a3, _b, _c;
129411
129414
  super();
129412
- this.isIndefiniteForm = (_a2 = lenBlock.isIndefiniteForm) !== null && _a2 !== void 0 ? _a2 : false;
129415
+ this.isIndefiniteForm = (_a3 = lenBlock.isIndefiniteForm) !== null && _a3 !== void 0 ? _a3 : false;
129413
129416
  this.longFormUsed = (_b = lenBlock.longFormUsed) !== null && _b !== void 0 ? _b : false;
129414
129417
  this.length = (_c = lenBlock.length) !== null && _c !== void 0 ? _c : 0;
129415
129418
  }
@@ -129591,7 +129594,7 @@ var require_build2 = __commonJS({
129591
129594
  };
129592
129595
  BaseBlock.NAME = "BaseBlock";
129593
129596
  function prepareIndefiniteForm(baseBlock) {
129594
- var _a2;
129597
+ var _a3;
129595
129598
  if (baseBlock instanceof typeStore.Constructed) {
129596
129599
  for (const value of baseBlock.valueBlock.value) {
129597
129600
  if (prepareIndefiniteForm(value)) {
@@ -129599,7 +129602,7 @@ var require_build2 = __commonJS({
129599
129602
  }
129600
129603
  }
129601
129604
  }
129602
- return !!((_a2 = baseBlock.lenBlock) === null || _a2 === void 0 ? void 0 : _a2.isIndefiniteForm);
129605
+ return !!((_a3 = baseBlock.lenBlock) === null || _a3 === void 0 ? void 0 : _a3.isIndefiniteForm);
129603
129606
  }
129604
129607
  var BaseStringBlock = class extends BaseBlock {
129605
129608
  getValue() {
@@ -131695,7 +131698,7 @@ ${values.join("\n")}` : `${blockName} :`;
131695
131698
  typeStore.Duration = _a$1;
131696
131699
  })();
131697
131700
  Duration.NAME = "Duration";
131698
- var _a;
131701
+ var _a2;
131699
131702
  var TIME = class extends Utf8String {
131700
131703
  constructor(parameters = {}) {
131701
131704
  super(parameters);
@@ -131703,9 +131706,9 @@ ${values.join("\n")}` : `${blockName} :`;
131703
131706
  this.idBlock.tagNumber = 14;
131704
131707
  }
131705
131708
  };
131706
- _a = TIME;
131709
+ _a2 = TIME;
131707
131710
  (() => {
131708
- typeStore.TIME = _a;
131711
+ typeStore.TIME = _a2;
131709
131712
  })();
131710
131713
  TIME.NAME = "TIME";
131711
131714
  var Any = class {
@@ -132438,10 +132441,10 @@ var require_helper = __commonJS({
132438
132441
  }
132439
132442
  }
132440
132443
  function isTypeOfArray(target) {
132441
- var _a;
132444
+ var _a2;
132442
132445
  if (target) {
132443
132446
  const proto2 = Object.getPrototypeOf(target);
132444
- if (((_a = proto2 === null || proto2 === void 0 ? void 0 : proto2.prototype) === null || _a === void 0 ? void 0 : _a.constructor) === Array) {
132447
+ if (((_a2 = proto2 === null || proto2 === void 0 ? void 0 : proto2.prototype) === null || _a2 === void 0 ? void 0 : _a2.constructor) === Array) {
132445
132448
  return true;
132446
132449
  }
132447
132450
  return isTypeOfArray(proto2);
@@ -132876,8 +132879,8 @@ var require_parser = __commonJS({
132876
132879
  }
132877
132880
  }
132878
132881
  static processPrimitiveSchemaItem(asn1SchemaValue, schemaItem, schemaItemType) {
132879
- var _a;
132880
- const converter = (_a = schemaItem.converter) !== null && _a !== void 0 ? _a : (0, helper_1.isConvertible)(schemaItemType) ? new schemaItemType() : null;
132882
+ var _a2;
132883
+ const converter = (_a2 = schemaItem.converter) !== null && _a2 !== void 0 ? _a2 : (0, helper_1.isConvertible)(schemaItemType) ? new schemaItemType() : null;
132881
132884
  if (!converter) {
132882
132885
  throw new Error("Converter is empty");
132883
132886
  }
@@ -164237,7 +164240,7 @@ var require_json_keystore2 = __commonJS({
164237
164240
  const macPrefix = key.slice(16, 32);
164238
164241
  const aesCtr = new aes_js_1.CTR(derivedKey, iv);
164239
164242
  const ciphertext = (0, index_js_4.getBytes)(aesCtr.encrypt(privateKey));
164240
- const mac = (0, index_js_2.keccak256)((0, index_js_4.concat)([macPrefix, ciphertext]));
164243
+ const mac3 = (0, index_js_2.keccak256)((0, index_js_4.concat)([macPrefix, ciphertext]));
164241
164244
  const data = {
164242
164245
  address: account.address.substring(2).toLowerCase(),
164243
164246
  id: (0, index_js_4.uuidV4)(uuidRandom),
@@ -164256,7 +164259,7 @@ var require_json_keystore2 = __commonJS({
164256
164259
  p: kdf.p,
164257
164260
  r: kdf.r
164258
164261
  },
164259
- mac: mac.substring(2)
164262
+ mac: mac3.substring(2)
164260
164263
  }
164261
164264
  };
164262
164265
  if (account.mnemonic) {
@@ -169411,7 +169414,7 @@ var require_SolidityCheckedContract = __commonJS({
169411
169414
  const metadata = reorderAlphabetically(JSON.parse(this.metadataRaw));
169412
169415
  for (const sources of Object.values(byVariation)) {
169413
169416
  metadata.sources = sources.reduce((sources2, source) => {
169414
- var _a;
169417
+ var _a2;
169415
169418
  if (metadata.sources[source.path]) {
169416
169419
  sources2[source.path] = metadata.sources[source.path];
169417
169420
  sources2[source.path].keccak256 = (0, ethers_1.id)(source.content);
@@ -169419,7 +169422,7 @@ var require_SolidityCheckedContract = __commonJS({
169419
169422
  sources2[source.path].content = source.content;
169420
169423
  }
169421
169424
  if (sources2[source.path].urls) {
169422
- sources2[source.path].urls = (_a = sources2[source.path].urls) === null || _a === void 0 ? void 0 : _a.map((url2) => {
169425
+ sources2[source.path].urls = (_a2 = sources2[source.path].urls) === null || _a2 === void 0 ? void 0 : _a2.map((url2) => {
169423
169426
  if (url2.includes("dweb:/ipfs/")) {
169424
169427
  return `dweb:/ipfs/${(0, ipfsHash_1.ipfsHash)(source.content)}`;
169425
169428
  }
@@ -169467,7 +169470,7 @@ var require_SolidityCheckedContract = __commonJS({
169467
169470
  * @returns false if the auxdata positions cannot be generated or if the auxdata in legacyAssembly differs from the auxdata in the bytecode, true otherwise.
169468
169471
  */
169469
169472
  async generateCborAuxdataPositions(forceEmscripten = false) {
169470
- var _a, _b;
169473
+ var _a2, _b;
169471
169474
  if (!this.creationBytecode || !this.runtimeBytecode || !this.compilerOutput) {
169472
169475
  return false;
169473
169476
  }
@@ -169518,13 +169521,13 @@ var require_SolidityCheckedContract = __commonJS({
169518
169521
  const editedContract = editedContractCompilerOutput === null || editedContractCompilerOutput === void 0 ? void 0 : editedContractCompilerOutput.contracts[this.compiledPath][this.name];
169519
169522
  const editedContractAuxdatasFromCompilerOutput = findAuxdatasInLegacyAssembly(editedContract.evm.legacyAssembly);
169520
169523
  if (this.runtimeBytecodeCborAuxdata === void 0) {
169521
- this.runtimeBytecodeCborAuxdata = findAuxdataPositions(this.runtimeBytecode, `0x${(_b = (_a = editedContract === null || editedContract === void 0 ? void 0 : editedContract.evm) === null || _a === void 0 ? void 0 : _a.deployedBytecode) === null || _b === void 0 ? void 0 : _b.object}`, auxdatasFromCompilerOutput, editedContractAuxdatasFromCompilerOutput);
169524
+ this.runtimeBytecodeCborAuxdata = findAuxdataPositions(this.runtimeBytecode, `0x${(_b = (_a2 = editedContract === null || editedContract === void 0 ? void 0 : editedContract.evm) === null || _a2 === void 0 ? void 0 : _a2.deployedBytecode) === null || _b === void 0 ? void 0 : _b.object}`, auxdatasFromCompilerOutput, editedContractAuxdatasFromCompilerOutput);
169522
169525
  }
169523
169526
  this.creationBytecodeCborAuxdata = findAuxdataPositions(this.creationBytecode, `0x${editedContract === null || editedContract === void 0 ? void 0 : editedContract.evm.bytecode.object}`, auxdatasFromCompilerOutput, editedContractAuxdatasFromCompilerOutput);
169524
169527
  return true;
169525
169528
  }
169526
169529
  async recompile(forceEmscripten = false) {
169527
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
169530
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _j;
169528
169531
  if (!this.isValid()) {
169529
169532
  await _SolidityCheckedContract.fetchMissing(this);
169530
169533
  }
@@ -169556,7 +169559,7 @@ var require_SolidityCheckedContract = __commonJS({
169556
169559
  compilationDuration: `${compilationDuration}ms`
169557
169560
  });
169558
169561
  if (!this.compilerOutput.contracts || !this.compilerOutput.contracts[this.compiledPath] || !this.compilerOutput.contracts[this.compiledPath][this.name] || !this.compilerOutput.contracts[this.compiledPath][this.name].evm || !this.compilerOutput.contracts[this.compiledPath][this.name].evm.bytecode) {
169559
- const errorMessages2 = ((_a = this.compilerOutput.errors) === null || _a === void 0 ? void 0 : _a.filter((e) => e.severity === "error").map((e) => e.formattedMessage)) || [];
169562
+ const errorMessages2 = ((_a2 = this.compilerOutput.errors) === null || _a2 === void 0 ? void 0 : _a2.filter((e) => e.severity === "error").map((e) => e.formattedMessage)) || [];
169560
169563
  const error46 = new Error("Compiler error");
169561
169564
  (0, logger_1.logWarn)("Compiler error", {
169562
169565
  errorMessages: errorMessages2
@@ -169682,7 +169685,7 @@ var require_SolidityCheckedContract = __commonJS({
169682
169685
  return url2.replace("github.com", "raw.githubusercontent.com").replace("/blob/", "/");
169683
169686
  }
169684
169687
  function createJsonInputFromMetadata(metadata, sources) {
169685
- var _a, _b, _c, _d, _e, _f, _g, _h;
169688
+ var _a2, _b, _c, _d, _e, _f, _g, _h;
169686
169689
  const solcJsonInput = {};
169687
169690
  let contractPath = "";
169688
169691
  let contractName = "";
@@ -169694,7 +169697,7 @@ var require_SolidityCheckedContract = __commonJS({
169694
169697
  for (contractPath in metadata.settings.compilationTarget) {
169695
169698
  contractName = metadata.settings.compilationTarget[contractPath];
169696
169699
  }
169697
- (_a = solcJsonInput === null || solcJsonInput === void 0 ? void 0 : solcJsonInput.settings) === null || _a === void 0 ? true : delete _a.compilationTarget;
169700
+ (_a2 = solcJsonInput === null || solcJsonInput === void 0 ? void 0 : solcJsonInput.settings) === null || _a2 === void 0 ? true : delete _a2.compilationTarget;
169698
169701
  const versions = ["0.8.2", "0.8.3", "0.8.4"];
169699
169702
  const coercedVersion = (_b = semver_1.default.coerce(metadata.compiler.version)) === null || _b === void 0 ? void 0 : _b.version;
169700
169703
  const affectedVersions = versions.filter((version5) => semver_1.default.eq(version5, coercedVersion || ""));
@@ -173304,12 +173307,12 @@ var require_NodejsStreamOutputAdapter = __commonJS({
173304
173307
  Readable.call(this, options);
173305
173308
  this._helper = helper;
173306
173309
  var self2 = this;
173307
- helper.on("data", function(data, meta) {
173310
+ helper.on("data", function(data, meta3) {
173308
173311
  if (!self2.push(data)) {
173309
173312
  self2._helper.pause();
173310
173313
  }
173311
173314
  if (updateCb) {
173312
- updateCb(meta);
173315
+ updateCb(meta3);
173313
173316
  }
173314
173317
  }).on("error", function(e) {
173315
173318
  self2.emit("error", e);
@@ -173378,10 +173381,10 @@ var require_StreamHelper = __commonJS({
173378
173381
  return new external.Promise(function(resolve2, reject) {
173379
173382
  var dataArray = [];
173380
173383
  var chunkType = helper._internalType, resultType = helper._outputType, mimeType = helper._mimeType;
173381
- helper.on("data", function(data, meta) {
173384
+ helper.on("data", function(data, meta3) {
173382
173385
  dataArray.push(data);
173383
173386
  if (updateCallback) {
173384
- updateCallback(meta);
173387
+ updateCallback(meta3);
173385
173388
  }
173386
173389
  }).on("error", function(err) {
173387
173390
  dataArray = [];
@@ -179658,9 +179661,9 @@ var require_VyperCheckedContract = __commonJS({
179658
179661
  var semver_1 = __importStar4(require_semver5());
179659
179662
  var VyperCheckedContract = class extends AbstractCheckedContract_1.AbstractCheckedContract {
179660
179663
  generateMetadata(output) {
179661
- var _a, _b;
179664
+ var _a2, _b;
179662
179665
  let outputMetadata;
179663
- if ((_b = (_a = output === null || output === void 0 ? void 0 : output.contracts) === null || _a === void 0 ? void 0 : _a[this.compiledPath]) === null || _b === void 0 ? void 0 : _b[this.name]) {
179666
+ if ((_b = (_a2 = output === null || output === void 0 ? void 0 : output.contracts) === null || _a2 === void 0 ? void 0 : _a2[this.compiledPath]) === null || _b === void 0 ? void 0 : _b[this.name]) {
179664
179667
  const contract = output.contracts[this.compiledPath][this.name];
179665
179668
  outputMetadata = {
179666
179669
  abi: contract.abi,
@@ -179767,7 +179770,7 @@ var require_VyperCheckedContract = __commonJS({
179767
179770
  return immutableReferences;
179768
179771
  }
179769
179772
  async recompile() {
179770
- var _a, _b, _c;
179773
+ var _a2, _b, _c;
179771
179774
  const version5 = this.metadata.compiler.version;
179772
179775
  const compilationStartTime = Date.now();
179773
179776
  (0, logger_1.logInfo)("Compiling contract", {
@@ -179794,7 +179797,7 @@ var require_VyperCheckedContract = __commonJS({
179794
179797
  compilationDuration: `${compilationDuration}ms`
179795
179798
  });
179796
179799
  if (!this.compilerOutput.contracts || !this.compilerOutput.contracts[this.compiledPath] || !this.compilerOutput.contracts[this.compiledPath][this.name] || !this.compilerOutput.contracts[this.compiledPath][this.name].evm || !this.compilerOutput.contracts[this.compiledPath][this.name].evm.bytecode) {
179797
- const errorMessages2 = ((_a = this.compilerOutput.errors) === null || _a === void 0 ? void 0 : _a.filter((e) => e.severity === "error").map((e) => e.formattedMessage)) || [];
179800
+ const errorMessages2 = ((_a2 = this.compilerOutput.errors) === null || _a2 === void 0 ? void 0 : _a2.filter((e) => e.severity === "error").map((e) => e.formattedMessage)) || [];
179798
179801
  const error46 = new Error("Compiler error");
179799
179802
  (0, logger_1.logWarn)("Compiler error", {
179800
179803
  errorMessages: errorMessages2
@@ -180162,8 +180165,8 @@ var require_validation3 = __commonJS({
180162
180165
  return null;
180163
180166
  }
180164
180167
  function isMetadata(obj) {
180165
- var _a, _b, _c, _d;
180166
- return ((obj === null || obj === void 0 ? void 0 : obj.language) === "Vyper" || (obj === null || obj === void 0 ? void 0 : obj.language) === "Solidity") && !!((_a = obj === null || obj === void 0 ? void 0 : obj.settings) === null || _a === void 0 ? void 0 : _a.compilationTarget) && !!(obj === null || obj === void 0 ? void 0 : obj.version) && !!((_b = obj === null || obj === void 0 ? void 0 : obj.output) === null || _b === void 0 ? void 0 : _b.abi) && !!((_c = obj === null || obj === void 0 ? void 0 : obj.output) === null || _c === void 0 ? void 0 : _c.userdoc) && !!((_d = obj === null || obj === void 0 ? void 0 : obj.output) === null || _d === void 0 ? void 0 : _d.devdoc) && !!(obj === null || obj === void 0 ? void 0 : obj.sources);
180168
+ var _a2, _b, _c, _d;
180169
+ return ((obj === null || obj === void 0 ? void 0 : obj.language) === "Vyper" || (obj === null || obj === void 0 ? void 0 : obj.language) === "Solidity") && !!((_a2 = obj === null || obj === void 0 ? void 0 : obj.settings) === null || _a2 === void 0 ? void 0 : _a2.compilationTarget) && !!(obj === null || obj === void 0 ? void 0 : obj.version) && !!((_b = obj === null || obj === void 0 ? void 0 : obj.output) === null || _b === void 0 ? void 0 : _b.abi) && !!((_c = obj === null || obj === void 0 ? void 0 : obj.output) === null || _c === void 0 ? void 0 : _c.userdoc) && !!((_d = obj === null || obj === void 0 ? void 0 : obj.output) === null || _d === void 0 ? void 0 : _d.devdoc) && !!(obj === null || obj === void 0 ? void 0 : obj.sources);
180167
180170
  }
180168
180171
  function traversePathRecursively(path9, worker, afterDirectory) {
180169
180172
  if (!fs_1.default.existsSync(path9)) {
@@ -182986,8 +182989,8 @@ var require_lib17 = __commonJS({
182986
182989
  function resolveProperties(object2) {
182987
182990
  return __awaiter4(this, void 0, void 0, function() {
182988
182991
  var promises, results;
182989
- return __generator4(this, function(_a) {
182990
- switch (_a.label) {
182992
+ return __generator4(this, function(_a2) {
182993
+ switch (_a2.label) {
182991
182994
  case 0:
182992
182995
  promises = Object.keys(object2).map(function(key) {
182993
182996
  var value = object2[key];
@@ -182997,7 +183000,7 @@ var require_lib17 = __commonJS({
182997
183000
  });
182998
183001
  return [4, Promise.all(promises)];
182999
183002
  case 1:
183000
- results = _a.sent();
183003
+ results = _a2.sent();
183001
183004
  return [2, results.reduce(function(accum, result) {
183002
183005
  accum[result.key] = result.value;
183003
183006
  return accum;
@@ -187025,8 +187028,8 @@ var require_lib25 = __commonJS({
187025
187028
  });
187026
187029
  }
187027
187030
  function ens_normalize_post_check(name) {
187028
- for (var _i = 0, _a = name.split("."); _i < _a.length; _i++) {
187029
- var label = _a[_i];
187031
+ for (var _i = 0, _a2 = name.split("."); _i < _a2.length; _i++) {
187032
+ var label = _a2[_i];
187030
187033
  var cps = explode_cp(label);
187031
187034
  try {
187032
187035
  for (var i = cps.lastIndexOf(UNDERSCORE) - 1; i >= 0; i--) {
@@ -187080,7 +187083,7 @@ var require_lib25 = __commonJS({
187080
187083
  return s.normalize("NFC");
187081
187084
  }
187082
187085
  function consume_emoji_reversed(cps, eaten) {
187083
- var _a;
187086
+ var _a2;
187084
187087
  var node = EMOJI_ROOT;
187085
187088
  var emoji3;
187086
187089
  var saved;
@@ -187090,9 +187093,9 @@ var require_lib25 = __commonJS({
187090
187093
  eaten.length = 0;
187091
187094
  var _loop_1 = function() {
187092
187095
  var cp = cps[--pos];
187093
- node = (_a = node.branches.find(function(x) {
187096
+ node = (_a2 = node.branches.find(function(x) {
187094
187097
  return x.set.has(cp);
187095
- })) === null || _a === void 0 ? void 0 : _a.node;
187098
+ })) === null || _a2 === void 0 ? void 0 : _a2.node;
187096
187099
  if (!node)
187097
187100
  return "break";
187098
187101
  if (node.save) {
@@ -187467,8 +187470,8 @@ var require_typed_data3 = __commonJS({
187467
187470
  return null;
187468
187471
  }
187469
187472
  function encodeType3(name, fields) {
187470
- return name + "(" + fields.map(function(_a) {
187471
- var name2 = _a.name, type = _a.type;
187473
+ return name + "(" + fields.map(function(_a2) {
187474
+ var name2 = _a2.name, type = _a2.type;
187472
187475
  return type + " " + name2;
187473
187476
  }).join(",") + ")";
187474
187477
  }
@@ -187583,8 +187586,8 @@ var require_typed_data3 = __commonJS({
187583
187586
  if (fields) {
187584
187587
  var encodedType_1 = (0, id_1.id)(this._types[type]);
187585
187588
  return function(value) {
187586
- var values = fields.map(function(_a) {
187587
- var name = _a.name, type2 = _a.type;
187589
+ var values = fields.map(function(_a2) {
187590
+ var name = _a2.name, type2 = _a2.type;
187588
187591
  var result = _this.getEncoder(type2)(value[name]);
187589
187592
  if (_this._types[type2]) {
187590
187593
  return (0, keccak256_1.keccak256)(result);
@@ -187637,8 +187640,8 @@ var require_typed_data3 = __commonJS({
187637
187640
  }
187638
187641
  var fields = this.types[type];
187639
187642
  if (fields) {
187640
- return fields.reduce(function(accum, _a) {
187641
- var name = _a.name, type2 = _a.type;
187643
+ return fields.reduce(function(accum, _a2) {
187644
+ var name = _a2.name, type2 = _a2.type;
187642
187645
  accum[name] = _this._visit(type2, value[name], callback);
187643
187646
  return accum;
187644
187647
  }, {});
@@ -187683,7 +187686,7 @@ var require_typed_data3 = __commonJS({
187683
187686
  };
187684
187687
  TypedDataEncoder2.resolveNames = function(domain2, types, value, resolveName) {
187685
187688
  return __awaiter4(this, void 0, void 0, function() {
187686
- var ensCache, encoder5, _a, _b, _i, name_4, _c, _d;
187689
+ var ensCache, encoder5, _a2, _b, _i, name_4, _c, _d;
187687
187690
  return __generator4(this, function(_e) {
187688
187691
  switch (_e.label) {
187689
187692
  case 0:
@@ -187699,14 +187702,14 @@ var require_typed_data3 = __commonJS({
187699
187702
  }
187700
187703
  return value2;
187701
187704
  });
187702
- _a = [];
187705
+ _a2 = [];
187703
187706
  for (_b in ensCache)
187704
- _a.push(_b);
187707
+ _a2.push(_b);
187705
187708
  _i = 0;
187706
187709
  _e.label = 1;
187707
187710
  case 1:
187708
- if (!(_i < _a.length)) return [3, 4];
187709
- name_4 = _a[_i];
187711
+ if (!(_i < _a2.length)) return [3, 4];
187712
+ name_4 = _a2[_i];
187710
187713
  _c = ensCache;
187711
187714
  _d = name_4;
187712
187715
  return [4, resolveName(name_4)];
@@ -188530,7 +188533,7 @@ var require_verification = __commonJS({
188530
188533
  var semver_1 = require_semver5();
188531
188534
  var utils_1 = require_utils14();
188532
188535
  async function verifyDeployed(checkedContract, sourcifyChain, address, creatorTxHash, forceEmscripten = false) {
188533
- var _a, _b, _c;
188536
+ var _a2, _b, _c;
188534
188537
  let match2 = {
188535
188538
  address,
188536
188539
  chainId: sourcifyChain.chainId.toString(),
@@ -188648,7 +188651,7 @@ var require_verification = __commonJS({
188648
188651
  });
188649
188652
  }
188650
188653
  try {
188651
- if (checkedContract instanceof SolidityCheckedContract_1.SolidityCheckedContract && (0, bytecode_utils_1.splitAuxdata)(match2.onchainRuntimeBytecode || "", bytecode_utils_1.AuxdataStyle.SOLIDITY)[1] === (0, bytecode_utils_1.splitAuxdata)(checkedContract.runtimeBytecode || "", bytecode_utils_1.AuxdataStyle.SOLIDITY)[1] && match2.runtimeMatch === null && match2.creationMatch === null && ((_a = checkedContract.metadata.settings.optimizer) === null || _a === void 0 ? void 0 : _a.enabled)) {
188654
+ if (checkedContract instanceof SolidityCheckedContract_1.SolidityCheckedContract && (0, bytecode_utils_1.splitAuxdata)(match2.onchainRuntimeBytecode || "", bytecode_utils_1.AuxdataStyle.SOLIDITY)[1] === (0, bytecode_utils_1.splitAuxdata)(checkedContract.runtimeBytecode || "", bytecode_utils_1.AuxdataStyle.SOLIDITY)[1] && match2.runtimeMatch === null && match2.creationMatch === null && ((_a2 = checkedContract.metadata.settings.optimizer) === null || _a2 === void 0 ? void 0 : _a2.enabled)) {
188652
188655
  const [, deployedAuxdata] = (0, bytecode_utils_1.splitAuxdata)(runtimeBytecode, bytecode_utils_1.AuxdataStyle.SOLIDITY);
188653
188656
  const [, recompiledAuxdata] = (0, bytecode_utils_1.splitAuxdata)(recompiled.runtimeBytecode, bytecode_utils_1.AuxdataStyle.SOLIDITY);
188654
188657
  if (deployedAuxdata === recompiledAuxdata) {
@@ -188806,7 +188809,7 @@ var require_verification = __commonJS({
188806
188809
  }
188807
188810
  }
188808
188811
  async function matchWithCreationTx(match2, recompiledCreationBytecode, sourcifyChain, address, creatorTxHash, recompiledMetadata, generateCborAuxdataPositions, linkReferences) {
188809
- var _a, _b, _c, _d;
188812
+ var _a2, _b, _c, _d;
188810
188813
  if (recompiledCreationBytecode === "0x") {
188811
188814
  match2.creationMatch = null;
188812
188815
  match2.message = `Failed to match with creation bytecode: recompiled contract's creation bytecode is empty`;
@@ -188875,7 +188878,7 @@ var require_verification = __commonJS({
188875
188878
  }
188876
188879
  if (match2.creationMatch) {
188877
188880
  const abiEncodedConstructorArguments = extractAbiEncodedConstructorArguments2(match2.onchainCreationBytecode, recompiledCreationBytecode);
188878
- const constructorAbiParamInputs = (_c = (_b = (_a = recompiledMetadata === null || recompiledMetadata === void 0 ? void 0 : recompiledMetadata.output) === null || _a === void 0 ? void 0 : _a.abi) === null || _b === void 0 ? void 0 : _b.find((param) => param.type === "constructor")) === null || _c === void 0 ? void 0 : _c.inputs;
188881
+ const constructorAbiParamInputs = (_c = (_b = (_a2 = recompiledMetadata === null || recompiledMetadata === void 0 ? void 0 : recompiledMetadata.output) === null || _a2 === void 0 ? void 0 : _a2.abi) === null || _b === void 0 ? void 0 : _b.find((param) => param.type === "constructor")) === null || _c === void 0 ? void 0 : _c.inputs;
188879
188882
  if (abiEncodedConstructorArguments) {
188880
188883
  if (!constructorAbiParamInputs) {
188881
188884
  match2.creationMatch = null;
@@ -189419,10 +189422,10 @@ var require_SourcifyChain = __commonJS({
189419
189422
  */
189420
189423
  findCreateInDebugTraceTransactionCalls(calls, createCalls) {
189421
189424
  calls.forEach((call2) => {
189422
- var _a;
189425
+ var _a2;
189423
189426
  if ((call2 === null || call2 === void 0 ? void 0 : call2.type) === "CREATE" || (call2 === null || call2 === void 0 ? void 0 : call2.type) === "CREATE2") {
189424
189427
  createCalls.push(call2);
189425
- } else if (((_a = call2 === null || call2 === void 0 ? void 0 : call2.calls) === null || _a === void 0 ? void 0 : _a.length) > 0) {
189428
+ } else if (((_a2 = call2 === null || call2 === void 0 ? void 0 : call2.calls) === null || _a2 === void 0 ? void 0 : _a2.length) > 0) {
189426
189429
  this.findCreateInDebugTraceTransactionCalls(call2.calls, createCalls);
189427
189430
  }
189428
189431
  });
@@ -193630,8 +193633,8 @@ var require_utils16 = __commonJS({
193630
193633
  };
193631
193634
  exports2.groupBySizes = groupBySizes;
193632
193635
  var countSpaceSequence = (input) => {
193633
- var _a, _b;
193634
- return (_b = (_a = input.match(/\s+/g)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
193636
+ var _a2, _b;
193637
+ return (_b = (_a2 = input.match(/\s+/g)) === null || _a2 === void 0 ? void 0 : _a2.length) !== null && _b !== void 0 ? _b : 0;
193635
193638
  };
193636
193639
  exports2.countSpaceSequence = countSpaceSequence;
193637
193640
  var distributeUnevenly = (sum, length) => {
@@ -193759,9 +193762,9 @@ var require_alignTableData = __commonJS({
193759
193762
  var alignTableData = (rows, config2) => {
193760
193763
  return rows.map((row, rowIndex) => {
193761
193764
  return row.map((cell, cellIndex) => {
193762
- var _a;
193765
+ var _a2;
193763
193766
  const { width, alignment } = config2.columns[cellIndex];
193764
- const containingRange = (_a = config2.spanningCellManager) === null || _a === void 0 ? void 0 : _a.getContainingRange({
193767
+ const containingRange = (_a2 = config2.spanningCellManager) === null || _a2 === void 0 ? void 0 : _a2.getContainingRange({
193765
193768
  col: cellIndex,
193766
193769
  row: rowIndex
193767
193770
  }, { mapped: true });
@@ -193899,8 +193902,8 @@ var require_calculateRowHeights = __commonJS({
193899
193902
  for (const [rowIndex, row] of rows.entries()) {
193900
193903
  let rowHeight = 1;
193901
193904
  row.forEach((cell, cellIndex) => {
193902
- var _a;
193903
- const containingRange = (_a = config2.spanningCellManager) === null || _a === void 0 ? void 0 : _a.getContainingRange({
193905
+ var _a2;
193906
+ const containingRange = (_a2 = config2.spanningCellManager) === null || _a2 === void 0 ? void 0 : _a2.getContainingRange({
193904
193907
  col: cellIndex,
193905
193908
  row: rowIndex
193906
193909
  });
@@ -193914,8 +193917,8 @@ var require_calculateRowHeights = __commonJS({
193914
193917
  const totalOccupiedSpanningCellHeight = (0, utils_1.sumArray)(rowHeights.slice(topLeft.row));
193915
193918
  const totalHorizontalBorderHeight = bottomRight.row - topLeft.row;
193916
193919
  const totalHiddenHorizontalBorderHeight = (0, utils_1.sequence)(topLeft.row + 1, bottomRight.row).filter((horizontalBorderIndex) => {
193917
- var _a2;
193918
- return !((_a2 = config2.drawHorizontalLine) === null || _a2 === void 0 ? void 0 : _a2.call(config2, horizontalBorderIndex, rows.length));
193920
+ var _a3;
193921
+ return !((_a3 = config2.drawHorizontalLine) === null || _a3 === void 0 ? void 0 : _a3.call(config2, horizontalBorderIndex, rows.length));
193919
193922
  }).length;
193920
193923
  const cellHeight = height - totalOccupiedSpanningCellHeight - totalHorizontalBorderHeight + totalHiddenHorizontalBorderHeight;
193921
193924
  rowHeight = Math.max(rowHeight, cellHeight);
@@ -196892,8 +196895,8 @@ var require_mapDataUsingRowHeights = __commonJS({
196892
196895
  return new Array(nColumns).fill("");
196893
196896
  });
196894
196897
  unmappedRow.forEach((cell, cellIndex) => {
196895
- var _a;
196896
- const containingRange = (_a = config2.spanningCellManager) === null || _a === void 0 ? void 0 : _a.getContainingRange({
196898
+ var _a2;
196899
+ const containingRange = (_a2 = config2.spanningCellManager) === null || _a2 === void 0 ? void 0 : _a2.getContainingRange({
196897
196900
  col: cellIndex,
196898
196901
  row: unmappedRowIndex
196899
196902
  });
@@ -196930,8 +196933,8 @@ var require_padTableData = __commonJS({
196930
196933
  var padTableData = (rows, config2) => {
196931
196934
  return rows.map((cells, rowIndex) => {
196932
196935
  return cells.map((cell, cellIndex) => {
196933
- var _a;
196934
- const containingRange = (_a = config2.spanningCellManager) === null || _a === void 0 ? void 0 : _a.getContainingRange({
196936
+ var _a2;
196937
+ const containingRange = (_a2 = config2.spanningCellManager) === null || _a2 === void 0 ? void 0 : _a2.getContainingRange({
196935
196938
  col: cellIndex,
196936
196939
  row: rowIndex
196937
196940
  }, { mapped: true });
@@ -197354,8 +197357,8 @@ var require_injectHeaderConfig = __commonJS({
197354
197357
  Object.defineProperty(exports2, "__esModule", { value: true });
197355
197358
  exports2.injectHeaderConfig = void 0;
197356
197359
  var injectHeaderConfig = (rows, config2) => {
197357
- var _a;
197358
- let spanningCellConfig = (_a = config2.spanningCells) !== null && _a !== void 0 ? _a : [];
197360
+ var _a2;
197361
+ let spanningCellConfig = (_a2 = config2.spanningCells) !== null && _a2 !== void 0 ? _a2 : [];
197359
197362
  const headerConfig = config2.header;
197360
197363
  const adjustedRows = [...rows];
197361
197364
  if (headerConfig) {
@@ -197510,12 +197513,12 @@ var require_makeRangeConfig = __commonJS({
197510
197513
  exports2.makeRangeConfig = void 0;
197511
197514
  var utils_1 = require_utils16();
197512
197515
  var makeRangeConfig = (spanningCellConfig, columnsConfig) => {
197513
- var _a;
197516
+ var _a2;
197514
197517
  const { topLeft, bottomRight } = (0, utils_1.calculateRangeCoordinate)(spanningCellConfig);
197515
197518
  const cellConfig = {
197516
197519
  ...columnsConfig[topLeft.col],
197517
197520
  ...spanningCellConfig,
197518
- paddingRight: (_a = spanningCellConfig.paddingRight) !== null && _a !== void 0 ? _a : columnsConfig[bottomRight.col].paddingRight
197521
+ paddingRight: (_a2 = spanningCellConfig.paddingRight) !== null && _a2 !== void 0 ? _a2 : columnsConfig[bottomRight.col].paddingRight
197519
197522
  };
197520
197523
  return {
197521
197524
  ...cellConfig,
@@ -197591,7 +197594,7 @@ var require_spanningCellManager = __commonJS({
197591
197594
  let rowIndexMapping = [];
197592
197595
  return {
197593
197596
  getContainingRange: (cell, options) => {
197594
- var _a;
197597
+ var _a2;
197595
197598
  const originalRow = (options === null || options === void 0 ? void 0 : options.mapped) ? rowIndexMapping[cell.row] : cell.row;
197596
197599
  const range2 = findRangeConfig({
197597
197600
  ...cell,
@@ -197607,7 +197610,7 @@ var require_spanningCellManager = __commonJS({
197607
197610
  });
197608
197611
  }
197609
197612
  const hash4 = hashRange(range2);
197610
- (_a = rangeCache[hash4]) !== null && _a !== void 0 ? _a : rangeCache[hash4] = getContainingRange(range2, {
197613
+ (_a2 = rangeCache[hash4]) !== null && _a2 !== void 0 ? _a2 : rangeCache[hash4] = getContainingRange(range2, {
197611
197614
  ...parameters,
197612
197615
  rowHeights
197613
197616
  });
@@ -197710,9 +197713,9 @@ var require_makeTableConfig = __commonJS({
197710
197713
  });
197711
197714
  };
197712
197715
  var makeTableConfig = (rows, config2 = {}, injectedSpanningCellConfig) => {
197713
- var _a, _b, _c, _d, _e;
197716
+ var _a2, _b, _c, _d, _e;
197714
197717
  (0, validateConfig_1.validateConfig)("config.json", config2);
197715
- (0, validateSpanningCellConfig_1.validateSpanningCellConfig)(rows, (_a = config2.spanningCells) !== null && _a !== void 0 ? _a : []);
197718
+ (0, validateSpanningCellConfig_1.validateSpanningCellConfig)(rows, (_a2 = config2.spanningCells) !== null && _a2 !== void 0 ? _a2 : []);
197716
197719
  const spanningCellConfigs = (_b = injectedSpanningCellConfig !== null && injectedSpanningCellConfig !== void 0 ? injectedSpanningCellConfig : config2.spanningCells) !== null && _b !== void 0 ? _b : [];
197717
197720
  const columnsConfig = makeColumnsConfig(rows, config2.columns, config2.columnDefault, spanningCellConfigs);
197718
197721
  const drawVerticalLine = (_c = config2.drawVerticalLine) !== null && _c !== void 0 ? _c : (() => {
@@ -226682,6 +226685,7 @@ function toBlobSidecars(parameters) {
226682
226685
  }
226683
226686
 
226684
226687
  // ../../node_modules/viem/_esm/actions/wallet/prepareTransactionRequest.js
226688
+ init_lru();
226685
226689
  init_assertRequest();
226686
226690
 
226687
226691
  // ../../node_modules/viem/_esm/utils/transaction/getTransactionType.js
@@ -226704,6 +226708,31 @@ function getTransactionType(transaction) {
226704
226708
  throw new InvalidSerializableTransactionError({ transaction });
226705
226709
  }
226706
226710
 
226711
+ // ../../node_modules/viem/_esm/actions/public/fillTransaction.js
226712
+ init_parseAccount();
226713
+
226714
+ // ../../node_modules/viem/_esm/utils/errors/getTransactionError.js
226715
+ init_node();
226716
+ init_transaction();
226717
+ init_getNodeError();
226718
+ function getTransactionError(err, { docsPath: docsPath8, ...args }) {
226719
+ const cause = (() => {
226720
+ const cause2 = getNodeError(err, args);
226721
+ if (cause2 instanceof UnknownNodeError)
226722
+ return err;
226723
+ return cause2;
226724
+ })();
226725
+ return new TransactionExecutionError(cause, {
226726
+ docsPath: docsPath8,
226727
+ ...args
226728
+ });
226729
+ }
226730
+
226731
+ // ../../node_modules/viem/_esm/actions/public/fillTransaction.js
226732
+ init_extract();
226733
+ init_transactionRequest();
226734
+ init_assertRequest();
226735
+
226707
226736
  // ../../node_modules/viem/_esm/actions/public/getChainId.js
226708
226737
  init_fromHex();
226709
226738
  async function getChainId(client) {
@@ -226713,6 +226742,106 @@ async function getChainId(client) {
226713
226742
  return hexToNumber(chainIdHex);
226714
226743
  }
226715
226744
 
226745
+ // ../../node_modules/viem/_esm/actions/public/fillTransaction.js
226746
+ async function fillTransaction(client, parameters) {
226747
+ const { account = client.account, accessList, authorizationList, chain = client.chain, blobVersionedHashes, blobs, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce: nonce_, nonceManager, to, type, value, ...rest } = parameters;
226748
+ const nonce = await (async () => {
226749
+ if (!account)
226750
+ return nonce_;
226751
+ if (!nonceManager)
226752
+ return nonce_;
226753
+ const account_ = parseAccount(account);
226754
+ const chainId = chain ? chain.id : await getAction(client, getChainId, "getChainId")({});
226755
+ return await nonceManager.consume({
226756
+ address: account_.address,
226757
+ chainId,
226758
+ client
226759
+ });
226760
+ })();
226761
+ assertRequest(parameters);
226762
+ const chainFormat = chain?.formatters?.transactionRequest?.format;
226763
+ const format = chainFormat || formatTransactionRequest;
226764
+ const request = format({
226765
+ // Pick out extra data that might exist on the chain's transaction request type.
226766
+ ...extract(rest, { format: chainFormat }),
226767
+ account: account ? parseAccount(account) : void 0,
226768
+ accessList,
226769
+ authorizationList,
226770
+ blobs,
226771
+ blobVersionedHashes,
226772
+ data,
226773
+ gas,
226774
+ gasPrice,
226775
+ maxFeePerBlobGas,
226776
+ maxFeePerGas,
226777
+ maxPriorityFeePerGas,
226778
+ nonce,
226779
+ to,
226780
+ type,
226781
+ value
226782
+ }, "fillTransaction");
226783
+ try {
226784
+ const response = await client.request({
226785
+ method: "eth_fillTransaction",
226786
+ params: [request]
226787
+ });
226788
+ const format2 = chain?.formatters?.transaction?.format || formatTransaction;
226789
+ const transaction = format2(response.tx);
226790
+ delete transaction.blockHash;
226791
+ delete transaction.blockNumber;
226792
+ delete transaction.r;
226793
+ delete transaction.s;
226794
+ delete transaction.transactionIndex;
226795
+ delete transaction.v;
226796
+ delete transaction.yParity;
226797
+ transaction.data = transaction.input;
226798
+ if (transaction.gas)
226799
+ transaction.gas = parameters.gas ?? transaction.gas;
226800
+ if (transaction.gasPrice)
226801
+ transaction.gasPrice = parameters.gasPrice ?? transaction.gasPrice;
226802
+ if (transaction.maxFeePerBlobGas)
226803
+ transaction.maxFeePerBlobGas = parameters.maxFeePerBlobGas ?? transaction.maxFeePerBlobGas;
226804
+ if (transaction.maxFeePerGas)
226805
+ transaction.maxFeePerGas = parameters.maxFeePerGas ?? transaction.maxFeePerGas;
226806
+ if (transaction.maxPriorityFeePerGas)
226807
+ transaction.maxPriorityFeePerGas = parameters.maxPriorityFeePerGas ?? transaction.maxPriorityFeePerGas;
226808
+ if (transaction.nonce)
226809
+ transaction.nonce = parameters.nonce ?? transaction.nonce;
226810
+ const feeMultiplier = await (async () => {
226811
+ if (typeof chain?.fees?.baseFeeMultiplier === "function") {
226812
+ const block = await getAction(client, getBlock, "getBlock")({});
226813
+ return chain.fees.baseFeeMultiplier({
226814
+ block,
226815
+ client,
226816
+ request: parameters
226817
+ });
226818
+ }
226819
+ return chain?.fees?.baseFeeMultiplier ?? 1.2;
226820
+ })();
226821
+ if (feeMultiplier < 1)
226822
+ throw new BaseFeeScalarError();
226823
+ const decimals = feeMultiplier.toString().split(".")[1]?.length ?? 0;
226824
+ const denominator = 10 ** decimals;
226825
+ const multiplyFee = (base2) => base2 * BigInt(Math.ceil(feeMultiplier * denominator)) / BigInt(denominator);
226826
+ if (transaction.maxFeePerGas && !parameters.maxFeePerGas)
226827
+ transaction.maxFeePerGas = multiplyFee(transaction.maxFeePerGas);
226828
+ if (transaction.gasPrice && !parameters.gasPrice)
226829
+ transaction.gasPrice = multiplyFee(transaction.gasPrice);
226830
+ return {
226831
+ raw: response.raw,
226832
+ transaction: {
226833
+ from: request.from,
226834
+ ...transaction
226835
+ }
226836
+ };
226837
+ } catch (err) {
226838
+ throw getTransactionError(err, {
226839
+ ...parameters,
226840
+ chain: client.chain
226841
+ });
226842
+ }
226843
+ }
226844
+
226716
226845
  // ../../node_modules/viem/_esm/actions/wallet/prepareTransactionRequest.js
226717
226846
  var defaultParameters = [
226718
226847
  "blobVersionedHashes",
@@ -226723,10 +226852,41 @@ var defaultParameters = [
226723
226852
  "type"
226724
226853
  ];
226725
226854
  var eip1559NetworkCache = /* @__PURE__ */ new Map();
226726
- async function prepareTransactionRequest(client, args) {
226727
- const { account: account_ = client.account, blobs, chain, gas, kzg, nonce, nonceManager, parameters = defaultParameters, type } = args;
226855
+ var supportsFillTransaction = /* @__PURE__ */ new LruMap(128);
226856
+ async function prepareTransactionRequest(client, args_) {
226857
+ const attemptFill = (
226858
+ // Do not attempt if `eth_fillTransaction` is not supported.
226859
+ supportsFillTransaction.get(client.uid) !== false && // Should attempt `eth_fillTransaction` if "fees" or "gas" are required to be populated,
226860
+ // otherwise, can just use the other individual calls.
226861
+ ["fees", "gas"].some((parameter) => args_.parameters?.includes(parameter))
226862
+ );
226863
+ const fillResult = attemptFill ? await getAction(client, fillTransaction, "fillTransaction")(args_).then((result) => {
226864
+ const { chainId: chainId2, from: from14, gas: gas2, gasPrice, nonce: nonce2, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, type: type2 } = result.transaction;
226865
+ supportsFillTransaction.set(client.uid, true);
226866
+ return {
226867
+ ...args_,
226868
+ chainId: chainId2,
226869
+ from: from14,
226870
+ gas: gas2,
226871
+ gasPrice,
226872
+ nonce: nonce2,
226873
+ maxFeePerBlobGas,
226874
+ maxFeePerGas,
226875
+ maxPriorityFeePerGas,
226876
+ type: type2
226877
+ };
226878
+ }).catch((e) => {
226879
+ const error46 = e;
226880
+ if (error46.cause.name === "MethodNotFoundRpcError" || error46.cause.name === "MethodNotSupportedRpcError")
226881
+ supportsFillTransaction.set(client.uid, false);
226882
+ return args_;
226883
+ }) : args_;
226884
+ const { account: account_ = client.account, blobs, chain, gas, kzg, nonce, nonceManager, parameters = defaultParameters, type } = fillResult;
226728
226885
  const account = account_ ? parseAccount(account_) : account_;
226729
- const request = { ...args, ...account ? { from: account?.address } : {} };
226886
+ const request = {
226887
+ ...fillResult,
226888
+ ...account ? { from: account?.address } : {}
226889
+ };
226730
226890
  let block;
226731
226891
  async function getBlock2() {
226732
226892
  if (block)
@@ -226740,8 +226900,8 @@ async function prepareTransactionRequest(client, args) {
226740
226900
  return chainId;
226741
226901
  if (chain)
226742
226902
  return chain.id;
226743
- if (typeof args.chainId !== "undefined")
226744
- return args.chainId;
226903
+ if (typeof request.chainId !== "undefined")
226904
+ return request.chainId;
226745
226905
  const chainId_ = await getAction(client, getChainId, "getChainId")({});
226746
226906
  chainId = chainId_;
226747
226907
  return chainId;
@@ -226805,7 +226965,7 @@ async function prepareTransactionRequest(client, args) {
226805
226965
  chain,
226806
226966
  request
226807
226967
  });
226808
- if (typeof args.maxPriorityFeePerGas === "undefined" && args.maxFeePerGas && args.maxFeePerGas < maxPriorityFeePerGas)
226968
+ if (typeof request.maxPriorityFeePerGas === "undefined" && request.maxFeePerGas && request.maxFeePerGas < maxPriorityFeePerGas)
226809
226969
  throw new MaxFeePerGasTooLowError({
226810
226970
  maxPriorityFeePerGas
226811
226971
  });
@@ -226813,9 +226973,9 @@ async function prepareTransactionRequest(client, args) {
226813
226973
  request.maxFeePerGas = maxFeePerGas;
226814
226974
  }
226815
226975
  } else {
226816
- if (typeof args.maxFeePerGas !== "undefined" || typeof args.maxPriorityFeePerGas !== "undefined")
226976
+ if (typeof request.maxFeePerGas !== "undefined" || typeof request.maxPriorityFeePerGas !== "undefined")
226817
226977
  throw new Eip1559FeesNotSupportedError();
226818
- if (typeof args.gasPrice === "undefined") {
226978
+ if (typeof request.gasPrice === "undefined") {
226819
226979
  const block2 = await getBlock2();
226820
226980
  const { gasPrice: gasPrice_ } = await internal_estimateFeesPerGas(client, {
226821
226981
  block: block2,
@@ -227648,23 +227808,6 @@ function assertCurrentChain({ chain, currentChainId }) {
227648
227808
  throw new ChainMismatchError({ chain, currentChainId });
227649
227809
  }
227650
227810
 
227651
- // ../../node_modules/viem/_esm/utils/errors/getTransactionError.js
227652
- init_node();
227653
- init_transaction();
227654
- init_getNodeError();
227655
- function getTransactionError(err, { docsPath: docsPath8, ...args }) {
227656
- const cause = (() => {
227657
- const cause2 = getNodeError(err, args);
227658
- if (cause2 instanceof UnknownNodeError)
227659
- return err;
227660
- return cause2;
227661
- })();
227662
- return new TransactionExecutionError(cause, {
227663
- docsPath: docsPath8,
227664
- ...args
227665
- });
227666
- }
227667
-
227668
227811
  // ../../node_modules/viem/_esm/actions/wallet/sendTransaction.js
227669
227812
  init_extract();
227670
227813
  init_transactionRequest();
@@ -232928,7 +233071,7 @@ var VerificationError = class extends Error {
232928
233071
  // ../../node_modules/viem/_esm/actions/public/verifyMessage.js
232929
233072
  async function verifyMessage(client, { address, message, factory, factoryData, signature, ...callRequest }) {
232930
233073
  const hash4 = hashMessage(message);
232931
- return verifyHash(client, {
233074
+ return getAction(client, verifyHash, "verifyHash")({
232932
233075
  address,
232933
233076
  factory,
232934
233077
  factoryData,
@@ -232942,7 +233085,7 @@ async function verifyMessage(client, { address, message, factory, factoryData, s
232942
233085
  async function verifyTypedData(client, parameters) {
232943
233086
  const { address, factory, factoryData, signature, message, primaryType, types, domain: domain2, ...callRequest } = parameters;
232944
233087
  const hash4 = hashTypedData({ message, primaryType, types, domain: domain2 });
232945
- return verifyHash(client, {
233088
+ return getAction(client, verifyHash, "verifyHash")({
232946
233089
  address,
232947
233090
  factory,
232948
233091
  factoryData,
@@ -233668,6 +233811,7 @@ function publicActions(client) {
233668
233811
  getLogs: (args) => getLogs(client, args),
233669
233812
  getProof: (args) => getProof(client, args),
233670
233813
  estimateMaxPriorityFeePerGas: (args) => estimateMaxPriorityFeePerGas(client, args),
233814
+ fillTransaction: (args) => fillTransaction(client, args),
233671
233815
  getStorageAt: (args) => getStorageAt(client, args),
233672
233816
  getTransaction: (args) => getTransaction(client, args),
233673
233817
  getTransactionConfirmations: (args) => getTransactionConfirmations(client, args),
@@ -234499,6 +234643,7 @@ function walletActions(client) {
234499
234643
  return {
234500
234644
  addChain: (args) => addChain(client, args),
234501
234645
  deployContract: (args) => deployContract(client, args),
234646
+ fillTransaction: (args) => fillTransaction(client, args),
234502
234647
  getAddresses: () => getAddresses(client),
234503
234648
  getCallsStatus: (args) => getCallsStatus(client, args),
234504
234649
  getCapabilities: (args) => getCapabilities(client, args),
@@ -234693,7 +234838,8 @@ var TIMELOCK = {
234693
234838
  Etherlink: NOT_DEPLOYED,
234694
234839
  Hemi: NOT_DEPLOYED,
234695
234840
  Lisk: NOT_DEPLOYED,
234696
- Plasma: NOT_DEPLOYED
234841
+ Plasma: NOT_DEPLOYED,
234842
+ Somnia: NOT_DEPLOYED
234697
234843
  };
234698
234844
  var GEARBOX_RISK_CURATORS = {
234699
234845
  Mainnet: [TIMELOCK.Mainnet],
@@ -234711,7 +234857,8 @@ var GEARBOX_RISK_CURATORS = {
234711
234857
  Etherlink: [],
234712
234858
  Hemi: [],
234713
234859
  Lisk: [],
234714
- Plasma: []
234860
+ Plasma: [],
234861
+ Somnia: []
234715
234862
  };
234716
234863
  var DEPRECIATED_POOLS = {
234717
234864
  Mainnet: {
@@ -234731,7 +234878,8 @@ var DEPRECIATED_POOLS = {
234731
234878
  Etherlink: {},
234732
234879
  Hemi: {},
234733
234880
  Lisk: {},
234734
- Plasma: {}
234881
+ Plasma: {},
234882
+ Somnia: {}
234735
234883
  };
234736
234884
 
234737
234885
  // ../../node_modules/viem/_esm/chains/index.js
@@ -234996,6 +235144,8 @@ __export(chains_exports, {
234996
235144
  humanodeTestnet5: () => humanodeTestnet5,
234997
235145
  hychain: () => hychain,
234998
235146
  hychainTestnet: () => hychainTestnet,
235147
+ hyperEvm: () => hyperEvm,
235148
+ hyperliquid: () => hyperEvm,
234999
235149
  hyperliquidEvmTestnet: () => hyperliquidEvmTestnet,
235000
235150
  iSunCoin: () => iSunCoin,
235001
235151
  icbNetwork: () => icbNetwork,
@@ -242696,6 +242846,25 @@ var hychainTestnet = /* @__PURE__ */ defineChain({
242696
242846
  testnet: true
242697
242847
  });
242698
242848
 
242849
+ // ../../node_modules/viem/_esm/chains/definitions/hyperEvm.js
242850
+ var hyperEvm = /* @__PURE__ */ defineChain({
242851
+ id: 999,
242852
+ name: "HyperEVM",
242853
+ nativeCurrency: { name: "HYPE", symbol: "HYPE", decimals: 18 },
242854
+ blockExplorers: {
242855
+ default: {
242856
+ name: "HyperEVMScan",
242857
+ url: "https://hyperevmscan.io"
242858
+ }
242859
+ },
242860
+ rpcUrls: {
242861
+ default: {
242862
+ http: ["https://rpc.hyperliquid.xyz/evm"]
242863
+ }
242864
+ },
242865
+ testnet: false
242866
+ });
242867
+
242699
242868
  // ../../node_modules/viem/_esm/chains/definitions/hyperliquidEvmTestnet.js
242700
242869
  var hyperliquidEvmTestnet = /* @__PURE__ */ defineChain({
242701
242870
  id: 998,
@@ -243801,7 +243970,7 @@ var katana = /* @__PURE__ */ defineChain({
243801
243970
  blockExplorers: {
243802
243971
  default: {
243803
243972
  name: "katana explorer",
243804
- url: "https://explorer.katanarpc.com"
243973
+ url: "https://katanascan.com"
243805
243974
  }
243806
243975
  },
243807
243976
  testnet: false
@@ -245842,16 +246011,28 @@ var monad = /* @__PURE__ */ defineChain({
245842
246011
  },
245843
246012
  rpcUrls: {
245844
246013
  default: {
245845
- http: ["https://rpc.monad.xyz"]
246014
+ http: ["https://rpc.monad.xyz", "https://rpc1.monad.xyz"],
246015
+ webSocket: ["wss://rpc.monad.xyz", "wss://rpc1.monad.xyz"]
245846
246016
  }
245847
246017
  },
245848
246018
  blockExplorers: {
245849
246019
  default: {
245850
- name: "Monvision",
245851
- url: "https://mainnet-beta.monvision.io"
246020
+ name: "MonadVision",
246021
+ url: "https://monadvision.com"
246022
+ },
246023
+ monadscan: {
246024
+ name: "Monadscan",
246025
+ url: "https://monadscan.com",
246026
+ apiUrl: "https://api.monadscan.com/api"
245852
246027
  }
245853
246028
  },
245854
- testnet: false
246029
+ testnet: false,
246030
+ contracts: {
246031
+ multicall3: {
246032
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
246033
+ blockCreated: 9248132
246034
+ }
246035
+ }
245855
246036
  });
245856
246037
 
245857
246038
  // ../../node_modules/viem/_esm/chains/definitions/monadTestnet.js
@@ -253229,6 +253410,7 @@ __export(external_exports, {
253229
253410
  ZodKSUID: () => ZodKSUID,
253230
253411
  ZodLazy: () => ZodLazy,
253231
253412
  ZodLiteral: () => ZodLiteral,
253413
+ ZodMAC: () => ZodMAC,
253232
253414
  ZodMap: () => ZodMap,
253233
253415
  ZodNaN: () => ZodNaN,
253234
253416
  ZodNanoID: () => ZodNanoID,
@@ -253287,6 +253469,7 @@ __export(external_exports, {
253287
253469
  date: () => date3,
253288
253470
  decode: () => decode3,
253289
253471
  decodeAsync: () => decodeAsync2,
253472
+ describe: () => describe2,
253290
253473
  discriminatedUnion: () => discriminatedUnion,
253291
253474
  e164: () => e1642,
253292
253475
  email: () => email2,
@@ -253331,9 +253514,11 @@ __export(external_exports, {
253331
253514
  lowercase: () => _lowercase,
253332
253515
  lt: () => _lt,
253333
253516
  lte: () => _lte,
253517
+ mac: () => mac2,
253334
253518
  map: () => map,
253335
253519
  maxLength: () => _maxLength,
253336
253520
  maxSize: () => _maxSize,
253521
+ meta: () => meta2,
253337
253522
  mime: () => _mime,
253338
253523
  minLength: () => _minLength,
253339
253524
  minSize: () => _minSize,
@@ -253379,6 +253564,7 @@ __export(external_exports, {
253379
253564
  set: () => set,
253380
253565
  setErrorMap: () => setErrorMap,
253381
253566
  size: () => _size,
253567
+ slugify: () => _slugify,
253382
253568
  startsWith: () => _startsWith,
253383
253569
  strictObject: () => strictObject,
253384
253570
  string: () => string2,
@@ -253476,6 +253662,7 @@ __export(core_exports2, {
253476
253662
  $ZodKSUID: () => $ZodKSUID,
253477
253663
  $ZodLazy: () => $ZodLazy,
253478
253664
  $ZodLiteral: () => $ZodLiteral,
253665
+ $ZodMAC: () => $ZodMAC,
253479
253666
  $ZodMap: () => $ZodMap,
253480
253667
  $ZodNaN: () => $ZodNaN,
253481
253668
  $ZodNanoID: () => $ZodNanoID,
@@ -253576,6 +253763,7 @@ __export(core_exports2, {
253576
253763
  _lowercase: () => _lowercase,
253577
253764
  _lt: () => _lt,
253578
253765
  _lte: () => _lte,
253766
+ _mac: () => _mac,
253579
253767
  _map: () => _map,
253580
253768
  _max: () => _lte,
253581
253769
  _maxLength: () => _maxLength,
@@ -253617,6 +253805,7 @@ __export(core_exports2, {
253617
253805
  _safeParseAsync: () => _safeParseAsync,
253618
253806
  _set: () => _set,
253619
253807
  _size: () => _size,
253808
+ _slugify: () => _slugify,
253620
253809
  _startsWith: () => _startsWith,
253621
253810
  _string: () => _string,
253622
253811
  _stringFormat: () => _stringFormat,
@@ -253648,6 +253837,7 @@ __export(core_exports2, {
253648
253837
  config: () => config,
253649
253838
  decode: () => decode2,
253650
253839
  decodeAsync: () => decodeAsync,
253840
+ describe: () => describe,
253651
253841
  encode: () => encode5,
253652
253842
  encodeAsync: () => encodeAsync,
253653
253843
  flattenError: () => flattenError,
@@ -253658,6 +253848,7 @@ __export(core_exports2, {
253658
253848
  isValidBase64URL: () => isValidBase64URL,
253659
253849
  isValidJWT: () => isValidJWT,
253660
253850
  locales: () => locales_exports,
253851
+ meta: () => meta,
253661
253852
  parse: () => parse,
253662
253853
  parseAsync: () => parseAsync,
253663
253854
  prettifyError: () => prettifyError,
@@ -253683,30 +253874,39 @@ var NEVER = Object.freeze({
253683
253874
  // @__NO_SIDE_EFFECTS__
253684
253875
  function $constructor(name, initializer3, params) {
253685
253876
  function init(inst, def) {
253686
- var _a;
253687
- Object.defineProperty(inst, "_zod", {
253688
- value: inst._zod ?? {},
253689
- enumerable: false
253690
- });
253691
- (_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set());
253877
+ if (!inst._zod) {
253878
+ Object.defineProperty(inst, "_zod", {
253879
+ value: {
253880
+ def,
253881
+ constr: _,
253882
+ traits: /* @__PURE__ */ new Set()
253883
+ },
253884
+ enumerable: false
253885
+ });
253886
+ }
253887
+ if (inst._zod.traits.has(name)) {
253888
+ return;
253889
+ }
253692
253890
  inst._zod.traits.add(name);
253693
253891
  initializer3(inst, def);
253694
- for (const k in _.prototype) {
253695
- if (!(k in inst))
253696
- Object.defineProperty(inst, k, { value: _.prototype[k].bind(inst) });
253892
+ const proto2 = _.prototype;
253893
+ const keys2 = Object.keys(proto2);
253894
+ for (let i = 0; i < keys2.length; i++) {
253895
+ const k = keys2[i];
253896
+ if (!(k in inst)) {
253897
+ inst[k] = proto2[k].bind(inst);
253898
+ }
253697
253899
  }
253698
- inst._zod.constr = _;
253699
- inst._zod.def = def;
253700
253900
  }
253701
253901
  const Parent = params?.Parent ?? Object;
253702
253902
  class Definition extends Parent {
253703
253903
  }
253704
253904
  Object.defineProperty(Definition, "name", { value: name });
253705
253905
  function _(def) {
253706
- var _a;
253906
+ var _a2;
253707
253907
  const inst = params?.Parent ? new Definition() : this;
253708
253908
  init(inst, def);
253709
- (_a = inst._zod).deferred ?? (_a.deferred = []);
253909
+ (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
253710
253910
  for (const fn of inst._zod.deferred) {
253711
253911
  fn();
253712
253912
  }
@@ -253800,6 +254000,7 @@ __export(util_exports, {
253800
254000
  required: () => required,
253801
254001
  safeExtend: () => safeExtend,
253802
254002
  shallowClone: () => shallowClone,
254003
+ slugify: () => slugify,
253803
254004
  stringifyPrimitive: () => stringifyPrimitive,
253804
254005
  uint8ArrayToBase64: () => uint8ArrayToBase64,
253805
254006
  uint8ArrayToBase64url: () => uint8ArrayToBase64url,
@@ -253940,6 +254141,9 @@ function randomString(length = 10) {
253940
254141
  function esc(str) {
253941
254142
  return JSON.stringify(str);
253942
254143
  }
254144
+ function slugify(input) {
254145
+ return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
254146
+ }
253943
254147
  var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
253944
254148
  };
253945
254149
  function isObject(data) {
@@ -253963,6 +254167,8 @@ function isPlainObject(o) {
253963
254167
  const ctor = o.constructor;
253964
254168
  if (ctor === void 0)
253965
254169
  return true;
254170
+ if (typeof ctor !== "function")
254171
+ return true;
253966
254172
  const prot = ctor.prototype;
253967
254173
  if (isObject(prot) === false)
253968
254174
  return false;
@@ -254279,8 +254485,8 @@ function aborted(x, startIndex = 0) {
254279
254485
  }
254280
254486
  function prefixIssues(path9, issues) {
254281
254487
  return issues.map((iss) => {
254282
- var _a;
254283
- (_a = iss).path ?? (_a.path = []);
254488
+ var _a2;
254489
+ (_a2 = iss).path ?? (_a2.path = []);
254284
254490
  iss.path.unshift(path9);
254285
254491
  return iss;
254286
254492
  });
@@ -254444,7 +254650,7 @@ function formatError(error46, mapper = (issue2) => issue2.message) {
254444
254650
  function treeifyError(error46, mapper = (issue2) => issue2.message) {
254445
254651
  const result = { errors: [] };
254446
254652
  const processError = (error47, path9 = []) => {
254447
- var _a, _b;
254653
+ var _a2, _b;
254448
254654
  for (const issue2 of error47.issues) {
254449
254655
  if (issue2.code === "invalid_union" && issue2.errors.length) {
254450
254656
  issue2.errors.map((issues) => processError({ issues }, issue2.path));
@@ -254465,7 +254671,7 @@ function treeifyError(error46, mapper = (issue2) => issue2.message) {
254465
254671
  const terminal = i === fullpath.length - 1;
254466
254672
  if (typeof el === "string") {
254467
254673
  curr.properties ?? (curr.properties = {});
254468
- (_a = curr.properties)[el] ?? (_a[el] = { errors: [] });
254674
+ (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
254469
254675
  curr = curr.properties[el];
254470
254676
  } else {
254471
254677
  curr.items ?? (curr.items = []);
@@ -254630,6 +254836,7 @@ __export(regexes_exports, {
254630
254836
  ipv6: () => ipv6,
254631
254837
  ksuid: () => ksuid,
254632
254838
  lowercase: () => lowercase,
254839
+ mac: () => mac,
254633
254840
  md5_base64: () => md5_base64,
254634
254841
  md5_base64url: () => md5_base64url,
254635
254842
  md5_hex: () => md5_hex,
@@ -254690,6 +254897,10 @@ function emoji() {
254690
254897
  }
254691
254898
  var ipv4 = /^(?:(?: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])$/;
254692
254899
  var ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;
254900
+ var mac = (delimiter) => {
254901
+ const escapedDelim = escapeRegex(delimiter ?? ":");
254902
+ return new RegExp(`^(?:[0-9A-F]{2}${escapedDelim}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${escapedDelim}){5}[0-9a-f]{2}$`);
254903
+ };
254693
254904
  var cidrv4 = /^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/;
254694
254905
  var cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
254695
254906
  var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
@@ -254754,10 +254965,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
254754
254965
 
254755
254966
  // ../../node_modules/zod/v4/core/checks.js
254756
254967
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
254757
- var _a;
254968
+ var _a2;
254758
254969
  inst._zod ?? (inst._zod = {});
254759
254970
  inst._zod.def = def;
254760
- (_a = inst._zod).onattach ?? (_a.onattach = []);
254971
+ (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
254761
254972
  });
254762
254973
  var numericOriginMap = {
254763
254974
  number: "number",
@@ -254823,8 +255034,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
254823
255034
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
254824
255035
  $ZodCheck.init(inst, def);
254825
255036
  inst._zod.onattach.push((inst2) => {
254826
- var _a;
254827
- (_a = inst2._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
255037
+ var _a2;
255038
+ (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
254828
255039
  });
254829
255040
  inst._zod.check = (payload) => {
254830
255041
  if (typeof payload.value !== typeof def.value)
@@ -254951,9 +255162,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
254951
255162
  };
254952
255163
  });
254953
255164
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
254954
- var _a;
255165
+ var _a2;
254955
255166
  $ZodCheck.init(inst, def);
254956
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
255167
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
254957
255168
  const val = payload.value;
254958
255169
  return !nullish(val) && val.size !== void 0;
254959
255170
  });
@@ -254979,9 +255190,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
254979
255190
  };
254980
255191
  });
254981
255192
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
254982
- var _a;
255193
+ var _a2;
254983
255194
  $ZodCheck.init(inst, def);
254984
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
255195
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
254985
255196
  const val = payload.value;
254986
255197
  return !nullish(val) && val.size !== void 0;
254987
255198
  });
@@ -255007,9 +255218,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
255007
255218
  };
255008
255219
  });
255009
255220
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
255010
- var _a;
255221
+ var _a2;
255011
255222
  $ZodCheck.init(inst, def);
255012
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
255223
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
255013
255224
  const val = payload.value;
255014
255225
  return !nullish(val) && val.size !== void 0;
255015
255226
  });
@@ -255037,9 +255248,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
255037
255248
  };
255038
255249
  });
255039
255250
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
255040
- var _a;
255251
+ var _a2;
255041
255252
  $ZodCheck.init(inst, def);
255042
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
255253
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
255043
255254
  const val = payload.value;
255044
255255
  return !nullish(val) && val.length !== void 0;
255045
255256
  });
@@ -255066,9 +255277,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
255066
255277
  };
255067
255278
  });
255068
255279
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
255069
- var _a;
255280
+ var _a2;
255070
255281
  $ZodCheck.init(inst, def);
255071
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
255282
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
255072
255283
  const val = payload.value;
255073
255284
  return !nullish(val) && val.length !== void 0;
255074
255285
  });
@@ -255095,9 +255306,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
255095
255306
  };
255096
255307
  });
255097
255308
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
255098
- var _a;
255309
+ var _a2;
255099
255310
  $ZodCheck.init(inst, def);
255100
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
255311
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
255101
255312
  const val = payload.value;
255102
255313
  return !nullish(val) && val.length !== void 0;
255103
255314
  });
@@ -255126,7 +255337,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
255126
255337
  };
255127
255338
  });
255128
255339
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
255129
- var _a, _b;
255340
+ var _a2, _b;
255130
255341
  $ZodCheck.init(inst, def);
255131
255342
  inst._zod.onattach.push((inst2) => {
255132
255343
  const bag = inst2._zod.bag;
@@ -255137,7 +255348,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
255137
255348
  }
255138
255349
  });
255139
255350
  if (def.pattern)
255140
- (_a = inst._zod).check ?? (_a.check = (payload) => {
255351
+ (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
255141
255352
  def.pattern.lastIndex = 0;
255142
255353
  if (def.pattern.test(payload.value))
255143
255354
  return;
@@ -255334,12 +255545,12 @@ var Doc = class {
255334
255545
  var version4 = {
255335
255546
  major: 4,
255336
255547
  minor: 1,
255337
- patch: 12
255548
+ patch: 13
255338
255549
  };
255339
255550
 
255340
255551
  // ../../node_modules/zod/v4/core/schemas.js
255341
255552
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
255342
- var _a;
255553
+ var _a2;
255343
255554
  inst ?? (inst = {});
255344
255555
  inst._zod.def = def;
255345
255556
  inst._zod.bag = inst._zod.bag || {};
@@ -255354,7 +255565,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
255354
255565
  }
255355
255566
  }
255356
255567
  if (checks.length === 0) {
255357
- (_a = inst._zod).deferred ?? (_a.deferred = []);
255568
+ (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
255358
255569
  inst._zod.deferred?.push(() => {
255359
255570
  inst._zod.run = inst._zod.parse;
255360
255571
  });
@@ -255512,7 +255723,7 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
255512
255723
  code: "invalid_format",
255513
255724
  format: "url",
255514
255725
  note: "Invalid hostname",
255515
- pattern: hostname.source,
255726
+ pattern: def.hostname.source,
255516
255727
  input: payload.value,
255517
255728
  inst,
255518
255729
  continue: !def.abort
@@ -255597,18 +255808,12 @@ var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def
255597
255808
  var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
255598
255809
  def.pattern ?? (def.pattern = ipv4);
255599
255810
  $ZodStringFormat.init(inst, def);
255600
- inst._zod.onattach.push((inst2) => {
255601
- const bag = inst2._zod.bag;
255602
- bag.format = `ipv4`;
255603
- });
255811
+ inst._zod.bag.format = `ipv4`;
255604
255812
  });
255605
255813
  var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
255606
255814
  def.pattern ?? (def.pattern = ipv6);
255607
255815
  $ZodStringFormat.init(inst, def);
255608
- inst._zod.onattach.push((inst2) => {
255609
- const bag = inst2._zod.bag;
255610
- bag.format = `ipv6`;
255611
- });
255816
+ inst._zod.bag.format = `ipv6`;
255612
255817
  inst._zod.check = (payload) => {
255613
255818
  try {
255614
255819
  new URL(`http://[${payload.value}]`);
@@ -255623,6 +255828,11 @@ var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
255623
255828
  }
255624
255829
  };
255625
255830
  });
255831
+ var $ZodMAC = /* @__PURE__ */ $constructor("$ZodMAC", (inst, def) => {
255832
+ def.pattern ?? (def.pattern = mac(def.delimiter));
255833
+ $ZodStringFormat.init(inst, def);
255834
+ inst._zod.bag.format = `mac`;
255835
+ });
255626
255836
  var $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
255627
255837
  def.pattern ?? (def.pattern = cidrv4);
255628
255838
  $ZodStringFormat.init(inst, def);
@@ -255670,9 +255880,7 @@ function isValidBase64(data) {
255670
255880
  var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
255671
255881
  def.pattern ?? (def.pattern = base64);
255672
255882
  $ZodStringFormat.init(inst, def);
255673
- inst._zod.onattach.push((inst2) => {
255674
- inst2._zod.bag.contentEncoding = "base64";
255675
- });
255883
+ inst._zod.bag.contentEncoding = "base64";
255676
255884
  inst._zod.check = (payload) => {
255677
255885
  if (isValidBase64(payload.value))
255678
255886
  return;
@@ -255695,9 +255903,7 @@ function isValidBase64URL(data) {
255695
255903
  var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
255696
255904
  def.pattern ?? (def.pattern = base64url);
255697
255905
  $ZodStringFormat.init(inst, def);
255698
- inst._zod.onattach.push((inst2) => {
255699
- inst2._zod.bag.contentEncoding = "base64url";
255700
- });
255906
+ inst._zod.bag.contentEncoding = "base64url";
255701
255907
  inst._zod.check = (payload) => {
255702
255908
  if (isValidBase64URL(payload.value))
255703
255909
  return;
@@ -255786,7 +255992,7 @@ var $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
255786
255992
  return payload;
255787
255993
  };
255788
255994
  });
255789
- var $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
255995
+ var $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumberFormat", (inst, def) => {
255790
255996
  $ZodCheckNumberFormat.init(inst, def);
255791
255997
  $ZodNumber.init(inst, def);
255792
255998
  });
@@ -255831,7 +256037,7 @@ var $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
255831
256037
  return payload;
255832
256038
  };
255833
256039
  });
255834
- var $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
256040
+ var $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigIntFormat", (inst, def) => {
255835
256041
  $ZodCheckBigIntFormat.init(inst, def);
255836
256042
  $ZodBigInt.init(inst, def);
255837
256043
  });
@@ -256017,7 +256223,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
256017
256223
  const keySet = def.keySet;
256018
256224
  const _catchall = def.catchall._zod;
256019
256225
  const t = _catchall.def.type;
256020
- for (const key of Object.keys(input)) {
256226
+ for (const key in input) {
256021
256227
  if (keySet.has(key))
256022
256228
  continue;
256023
256229
  if (t === "never") {
@@ -256392,7 +256598,6 @@ function handleIntersectionResults(result, left, right) {
256392
256598
  var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
256393
256599
  $ZodType.init(inst, def);
256394
256600
  const items = def.items;
256395
- const optStart = items.length - [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
256396
256601
  inst._zod.parse = (payload, ctx) => {
256397
256602
  const input = payload.value;
256398
256603
  if (!Array.isArray(input)) {
@@ -256406,6 +256611,8 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
256406
256611
  }
256407
256612
  payload.value = [];
256408
256613
  const proms = [];
256614
+ const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
256615
+ const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
256409
256616
  if (!def.rest) {
256410
256617
  const tooBig = input.length > items.length;
256411
256618
  const tooSmall = input.length < optStart - 1;
@@ -256476,11 +256683,13 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
256476
256683
  return payload;
256477
256684
  }
256478
256685
  const proms = [];
256479
- if (def.keyType._zod.values) {
256480
- const values = def.keyType._zod.values;
256686
+ const values = def.keyType._zod.values;
256687
+ if (values) {
256481
256688
  payload.value = {};
256689
+ const recordKeys = /* @__PURE__ */ new Set();
256482
256690
  for (const key of values) {
256483
256691
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
256692
+ recordKeys.add(typeof key === "number" ? key.toString() : key);
256484
256693
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
256485
256694
  if (result instanceof Promise) {
256486
256695
  proms.push(result.then((result2) => {
@@ -256499,7 +256708,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
256499
256708
  }
256500
256709
  let unrecognized;
256501
256710
  for (const key in input) {
256502
- if (!values.has(key)) {
256711
+ if (!recordKeys.has(key)) {
256503
256712
  unrecognized = unrecognized ?? [];
256504
256713
  unrecognized.push(key);
256505
256714
  }
@@ -256674,11 +256883,12 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
256674
256883
  if (def.values.length === 0) {
256675
256884
  throw new Error("Cannot create literal schema with no valid values");
256676
256885
  }
256677
- inst._zod.values = new Set(def.values);
256886
+ const values = new Set(def.values);
256887
+ inst._zod.values = values;
256678
256888
  inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$`);
256679
256889
  inst._zod.parse = (payload, _ctx) => {
256680
256890
  const input = payload.value;
256681
- if (inst._zod.values.has(input)) {
256891
+ if (values.has(input)) {
256682
256892
  return payload;
256683
256893
  }
256684
256894
  payload.issues.push({
@@ -256991,8 +257201,8 @@ var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
256991
257201
  $ZodType.init(inst, def);
256992
257202
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
256993
257203
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
256994
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
256995
- defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
257204
+ defineLazy(inst._zod, "optin", () => def.innerType?._zod?.optin);
257205
+ defineLazy(inst._zod, "optout", () => def.innerType?._zod?.optout);
256996
257206
  inst._zod.parse = (payload, ctx) => {
256997
257207
  if (ctx.direction === "backward") {
256998
257208
  return def.innerType._zod.run(payload, ctx);
@@ -257139,10 +257349,10 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
257139
257349
  var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
257140
257350
  $ZodType.init(inst, def);
257141
257351
  defineLazy(inst._zod, "innerType", () => def.getter());
257142
- defineLazy(inst._zod, "pattern", () => inst._zod.innerType._zod.pattern);
257143
- defineLazy(inst._zod, "propValues", () => inst._zod.innerType._zod.propValues);
257144
- defineLazy(inst._zod, "optin", () => inst._zod.innerType._zod.optin ?? void 0);
257145
- defineLazy(inst._zod, "optout", () => inst._zod.innerType._zod.optout ?? void 0);
257352
+ defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
257353
+ defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
257354
+ defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
257355
+ defineLazy(inst._zod, "optout", () => inst._zod.innerType?._zod?.optout ?? void 0);
257146
257356
  inst._zod.parse = (payload, ctx) => {
257147
257357
  const inner = inst._zod.innerType;
257148
257358
  return inner._zod.run(payload, ctx);
@@ -258318,6 +258528,7 @@ var error9 = () => {
258318
258528
  duration: "ISO duration",
258319
258529
  ipv4: "IPv4 address",
258320
258530
  ipv6: "IPv6 address",
258531
+ mac: "MAC address",
258321
258532
  cidrv4: "IPv4 range",
258322
258533
  cidrv6: "IPv6 range",
258323
258534
  base64: "base64-encoded string",
@@ -259134,111 +259345,201 @@ function fr_CA_default() {
259134
259345
 
259135
259346
  // ../../node_modules/zod/v4/locales/he.js
259136
259347
  var error16 = () => {
259348
+ const TypeNames = {
259349
+ string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
259350
+ number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
259351
+ boolean: { label: "\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9", gender: "m" },
259352
+ bigint: { label: "BigInt", gender: "m" },
259353
+ date: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA", gender: "m" },
259354
+ array: { label: "\u05DE\u05E2\u05E8\u05DA", gender: "m" },
259355
+ object: { label: "\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8", gender: "m" },
259356
+ null: { label: "\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)", gender: "m" },
259357
+ undefined: { label: "\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)", gender: "m" },
259358
+ symbol: { label: "\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)", gender: "m" },
259359
+ function: { label: "\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4", gender: "f" },
259360
+ map: { label: "\u05DE\u05E4\u05D4 (Map)", gender: "f" },
259361
+ set: { label: "\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)", gender: "f" },
259362
+ file: { label: "\u05E7\u05D5\u05D1\u05E5", gender: "m" },
259363
+ promise: { label: "Promise", gender: "m" },
259364
+ NaN: { label: "NaN", gender: "m" },
259365
+ unknown: { label: "\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2", gender: "m" },
259366
+ value: { label: "\u05E2\u05E8\u05DA", gender: "m" }
259367
+ };
259137
259368
  const Sizable = {
259138
- string: { unit: "\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
259139
- file: { unit: "\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
259140
- array: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
259141
- set: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" }
259369
+ string: { unit: "\u05EA\u05D5\u05D5\u05D9\u05DD", shortLabel: "\u05E7\u05E6\u05E8", longLabel: "\u05D0\u05E8\u05D5\u05DA" },
259370
+ file: { unit: "\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
259371
+ array: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
259372
+ set: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
259373
+ number: { unit: "", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" }
259374
+ // no unit
259142
259375
  };
259143
- function getSizing(origin) {
259376
+ const typeEntry = (t) => t ? TypeNames[t] : void 0;
259377
+ const typeLabel = (t) => {
259378
+ const e = typeEntry(t);
259379
+ if (e)
259380
+ return e.label;
259381
+ return t ?? TypeNames.unknown.label;
259382
+ };
259383
+ const withDefinite = (t) => `\u05D4${typeLabel(t)}`;
259384
+ const verbFor = (t) => {
259385
+ const e = typeEntry(t);
259386
+ const gender = e?.gender ?? "m";
259387
+ return gender === "f" ? "\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA" : "\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA";
259388
+ };
259389
+ const getSizing = (origin) => {
259390
+ if (!origin)
259391
+ return null;
259144
259392
  return Sizable[origin] ?? null;
259145
- }
259393
+ };
259146
259394
  const parsedType8 = (data) => {
259147
259395
  const t = typeof data;
259148
259396
  switch (t) {
259149
- case "number": {
259397
+ case "number":
259150
259398
  return Number.isNaN(data) ? "NaN" : "number";
259151
- }
259152
259399
  case "object": {
259153
- if (Array.isArray(data)) {
259400
+ if (Array.isArray(data))
259154
259401
  return "array";
259155
- }
259156
- if (data === null) {
259402
+ if (data === null)
259157
259403
  return "null";
259158
- }
259159
259404
  if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
259160
259405
  return data.constructor.name;
259161
259406
  }
259407
+ return "object";
259162
259408
  }
259409
+ default:
259410
+ return t;
259163
259411
  }
259164
- return t;
259165
259412
  };
259166
259413
  const Nouns = {
259167
- regex: "\u05E7\u05DC\u05D8",
259168
- email: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",
259169
- url: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",
259170
- emoji: "\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",
259171
- uuid: "UUID",
259172
- uuidv4: "UUIDv4",
259173
- uuidv6: "UUIDv6",
259174
- nanoid: "nanoid",
259175
- guid: "GUID",
259176
- cuid: "cuid",
259177
- cuid2: "cuid2",
259178
- ulid: "ULID",
259179
- xid: "XID",
259180
- ksuid: "KSUID",
259181
- datetime: "\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",
259182
- date: "\u05EA\u05D0\u05E8\u05D9\u05DA ISO",
259183
- time: "\u05D6\u05DE\u05DF ISO",
259184
- duration: "\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",
259185
- ipv4: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",
259186
- ipv6: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",
259187
- cidrv4: "\u05D8\u05D5\u05D5\u05D7 IPv4",
259188
- cidrv6: "\u05D8\u05D5\u05D5\u05D7 IPv6",
259189
- base64: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",
259190
- base64url: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",
259191
- json_string: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",
259192
- e164: "\u05DE\u05E1\u05E4\u05E8 E.164",
259193
- jwt: "JWT",
259194
- template_literal: "\u05E7\u05DC\u05D8"
259414
+ regex: { label: "\u05E7\u05DC\u05D8", gender: "m" },
259415
+ email: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC", gender: "f" },
259416
+ url: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA", gender: "f" },
259417
+ emoji: { label: "\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9", gender: "m" },
259418
+ uuid: { label: "UUID", gender: "m" },
259419
+ nanoid: { label: "nanoid", gender: "m" },
259420
+ guid: { label: "GUID", gender: "m" },
259421
+ cuid: { label: "cuid", gender: "m" },
259422
+ cuid2: { label: "cuid2", gender: "m" },
259423
+ ulid: { label: "ULID", gender: "m" },
259424
+ xid: { label: "XID", gender: "m" },
259425
+ ksuid: { label: "KSUID", gender: "m" },
259426
+ datetime: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO", gender: "m" },
259427
+ date: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA ISO", gender: "m" },
259428
+ time: { label: "\u05D6\u05DE\u05DF ISO", gender: "m" },
259429
+ duration: { label: "\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO", gender: "m" },
259430
+ ipv4: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv4", gender: "f" },
259431
+ ipv6: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv6", gender: "f" },
259432
+ cidrv4: { label: "\u05D8\u05D5\u05D5\u05D7 IPv4", gender: "m" },
259433
+ cidrv6: { label: "\u05D8\u05D5\u05D5\u05D7 IPv6", gender: "m" },
259434
+ base64: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64", gender: "f" },
259435
+ base64url: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA", gender: "f" },
259436
+ json_string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON", gender: "f" },
259437
+ e164: { label: "\u05DE\u05E1\u05E4\u05E8 E.164", gender: "m" },
259438
+ jwt: { label: "JWT", gender: "m" },
259439
+ ends_with: { label: "\u05E7\u05DC\u05D8", gender: "m" },
259440
+ includes: { label: "\u05E7\u05DC\u05D8", gender: "m" },
259441
+ lowercase: { label: "\u05E7\u05DC\u05D8", gender: "m" },
259442
+ starts_with: { label: "\u05E7\u05DC\u05D8", gender: "m" },
259443
+ uppercase: { label: "\u05E7\u05DC\u05D8", gender: "m" }
259195
259444
  };
259196
259445
  return (issue2) => {
259197
259446
  switch (issue2.code) {
259198
- case "invalid_type":
259199
- return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${issue2.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${parsedType8(issue2.input)}`;
259200
- // return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
259201
- case "invalid_value":
259202
- if (issue2.values.length === 1)
259203
- return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${stringifyPrimitive(issue2.values[0])}`;
259204
- return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${joinValues(issue2.values, "|")}`;
259447
+ case "invalid_type": {
259448
+ const expectedKey = issue2.expected;
259449
+ const expected = typeLabel(expectedKey);
259450
+ const receivedKey = parsedType8(issue2.input);
259451
+ const received = TypeNames[receivedKey]?.label ?? receivedKey;
259452
+ return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${received}`;
259453
+ }
259454
+ case "invalid_value": {
259455
+ if (issue2.values.length === 1) {
259456
+ return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${stringifyPrimitive(issue2.values[0])}`;
259457
+ }
259458
+ const stringified = issue2.values.map((v) => stringifyPrimitive(v));
259459
+ if (issue2.values.length === 2) {
259460
+ return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${stringified[0]} \u05D0\u05D5 ${stringified[1]}`;
259461
+ }
259462
+ const lastValue = stringified[stringified.length - 1];
259463
+ const restValues = stringified.slice(0, -1).join(", ");
259464
+ return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${restValues} \u05D0\u05D5 ${lastValue}`;
259465
+ }
259205
259466
  case "too_big": {
259206
- const adj = issue2.inclusive ? "<=" : "<";
259207
259467
  const sizing = getSizing(issue2.origin);
259208
- if (sizing)
259209
- return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${issue2.origin ?? "value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elements"}`;
259210
- return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${issue2.origin ?? "value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${adj}${issue2.maximum.toString()}`;
259468
+ const subject = withDefinite(issue2.origin ?? "value");
259469
+ if (issue2.origin === "string") {
259470
+ return `${sizing?.longLabel ?? "\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${issue2.maximum.toString()} ${sizing?.unit ?? ""} ${issue2.inclusive ? "\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA" : "\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();
259471
+ }
259472
+ if (issue2.origin === "number") {
259473
+ const comparison = issue2.inclusive ? `\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${issue2.maximum}` : `\u05E7\u05D8\u05DF \u05DE-${issue2.maximum}`;
259474
+ return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${comparison}`;
259475
+ }
259476
+ if (issue2.origin === "array" || issue2.origin === "set") {
259477
+ const verb = issue2.origin === "set" ? "\u05E6\u05E8\u05D9\u05DB\u05D4" : "\u05E6\u05E8\u05D9\u05DA";
259478
+ const comparison = issue2.inclusive ? `${issue2.maximum} ${sizing?.unit ?? ""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA` : `\u05E4\u05D7\u05D5\u05EA \u05DE-${issue2.maximum} ${sizing?.unit ?? ""}`;
259479
+ return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${comparison}`.trim();
259480
+ }
259481
+ const adj = issue2.inclusive ? "<=" : "<";
259482
+ const be = verbFor(issue2.origin ?? "value");
259483
+ if (sizing?.unit) {
259484
+ return `${sizing.longLabel} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.maximum.toString()} ${sizing.unit}`;
259485
+ }
259486
+ return `${sizing?.longLabel ?? "\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.maximum.toString()}`;
259211
259487
  }
259212
259488
  case "too_small": {
259213
- const adj = issue2.inclusive ? ">=" : ">";
259214
259489
  const sizing = getSizing(issue2.origin);
259215
- if (sizing) {
259216
- return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${issue2.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
259490
+ const subject = withDefinite(issue2.origin ?? "value");
259491
+ if (issue2.origin === "string") {
259492
+ return `${sizing?.shortLabel ?? "\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${issue2.minimum.toString()} ${sizing?.unit ?? ""} ${issue2.inclusive ? "\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8" : "\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();
259217
259493
  }
259218
- return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${issue2.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${adj}${issue2.minimum.toString()}`;
259494
+ if (issue2.origin === "number") {
259495
+ const comparison = issue2.inclusive ? `\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${issue2.minimum}` : `\u05D2\u05D3\u05D5\u05DC \u05DE-${issue2.minimum}`;
259496
+ return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${comparison}`;
259497
+ }
259498
+ if (issue2.origin === "array" || issue2.origin === "set") {
259499
+ const verb = issue2.origin === "set" ? "\u05E6\u05E8\u05D9\u05DB\u05D4" : "\u05E6\u05E8\u05D9\u05DA";
259500
+ if (issue2.minimum === 1 && issue2.inclusive) {
259501
+ const singularPhrase = issue2.origin === "set" ? "\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3" : "\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3";
259502
+ return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${singularPhrase}`;
259503
+ }
259504
+ const comparison = issue2.inclusive ? `${issue2.minimum} ${sizing?.unit ?? ""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8` : `\u05D9\u05D5\u05EA\u05E8 \u05DE-${issue2.minimum} ${sizing?.unit ?? ""}`;
259505
+ return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${comparison}`.trim();
259506
+ }
259507
+ const adj = issue2.inclusive ? ">=" : ">";
259508
+ const be = verbFor(issue2.origin ?? "value");
259509
+ if (sizing?.unit) {
259510
+ return `${sizing.shortLabel} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
259511
+ }
259512
+ return `${sizing?.shortLabel ?? "\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.minimum.toString()}`;
259219
259513
  }
259220
259514
  case "invalid_format": {
259221
259515
  const _issue = issue2;
259222
259516
  if (_issue.format === "starts_with")
259223
- return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${_issue.prefix}"`;
259517
+ return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${_issue.prefix}"`;
259224
259518
  if (_issue.format === "ends_with")
259225
- return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${_issue.suffix}"`;
259519
+ return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${_issue.suffix}"`;
259226
259520
  if (_issue.format === "includes")
259227
- return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${_issue.includes}"`;
259521
+ return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${_issue.includes}"`;
259228
259522
  if (_issue.format === "regex")
259229
- return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${_issue.pattern}`;
259230
- return `${Nouns[_issue.format] ?? issue2.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`;
259523
+ return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${_issue.pattern}`;
259524
+ const nounEntry = Nouns[_issue.format];
259525
+ const noun = nounEntry?.label ?? _issue.format;
259526
+ const gender = nounEntry?.gender ?? "m";
259527
+ const adjective = gender === "f" ? "\u05EA\u05E7\u05D9\u05E0\u05D4" : "\u05EA\u05E7\u05D9\u05DF";
259528
+ return `${noun} \u05DC\u05D0 ${adjective}`;
259231
259529
  }
259232
259530
  case "not_multiple_of":
259233
259531
  return `\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${issue2.divisor}`;
259234
259532
  case "unrecognized_keys":
259235
259533
  return `\u05DE\u05E4\u05EA\u05D7${issue2.keys.length > 1 ? "\u05D5\u05EA" : ""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${issue2.keys.length > 1 ? "\u05D9\u05DD" : "\u05D4"}: ${joinValues(issue2.keys, ", ")}`;
259236
- case "invalid_key":
259237
- return `\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${issue2.origin}`;
259534
+ case "invalid_key": {
259535
+ return `\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8`;
259536
+ }
259238
259537
  case "invalid_union":
259239
259538
  return "\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";
259240
- case "invalid_element":
259241
- return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${issue2.origin}`;
259539
+ case "invalid_element": {
259540
+ const place = withDefinite(issue2.origin ?? "array");
259541
+ return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${place}`;
259542
+ }
259242
259543
  default:
259243
259544
  return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`;
259244
259545
  }
@@ -260678,10 +260979,10 @@ function ms_default() {
260678
260979
  // ../../node_modules/zod/v4/locales/nl.js
260679
260980
  var error28 = () => {
260680
260981
  const Sizable = {
260681
- string: { unit: "tekens" },
260682
- file: { unit: "bytes" },
260683
- array: { unit: "elementen" },
260684
- set: { unit: "elementen" }
260982
+ string: { unit: "tekens", verb: "te hebben" },
260983
+ file: { unit: "bytes", verb: "te hebben" },
260984
+ array: { unit: "elementen", verb: "te hebben" },
260985
+ set: { unit: "elementen", verb: "te hebben" }
260685
260986
  };
260686
260987
  function getSizing(origin) {
260687
260988
  return Sizable[origin] ?? null;
@@ -260748,16 +261049,16 @@ var error28 = () => {
260748
261049
  const adj = issue2.inclusive ? "<=" : "<";
260749
261050
  const sizing = getSizing(issue2.origin);
260750
261051
  if (sizing)
260751
- return `Te lang: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementen"} bevat`;
260752
- return `Te lang: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} is`;
261052
+ return `Te groot: verwacht dat ${issue2.origin ?? "waarde"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementen"}`;
261053
+ return `Te groot: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} is`;
260753
261054
  }
260754
261055
  case "too_small": {
260755
261056
  const adj = issue2.inclusive ? ">=" : ">";
260756
261057
  const sizing = getSizing(issue2.origin);
260757
261058
  if (sizing) {
260758
- return `Te kort: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} bevat`;
261059
+ return `Te klein: verwacht dat ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
260759
261060
  }
260760
- return `Te kort: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} is`;
261061
+ return `Te klein: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} is`;
260761
261062
  }
260762
261063
  case "invalid_format": {
260763
261064
  const _issue = issue2;
@@ -262850,6 +263151,7 @@ function yo_default() {
262850
263151
  }
262851
263152
 
262852
263153
  // ../../node_modules/zod/v4/core/registries.js
263154
+ var _a;
262853
263155
  var $output = Symbol("ZodOutput");
262854
263156
  var $input = Symbol("ZodInput");
262855
263157
  var $ZodRegistry = class {
@@ -262858,13 +263160,13 @@ var $ZodRegistry = class {
262858
263160
  this._idmap = /* @__PURE__ */ new Map();
262859
263161
  }
262860
263162
  add(schema, ..._meta) {
262861
- const meta = _meta[0];
262862
- this._map.set(schema, meta);
262863
- if (meta && typeof meta === "object" && "id" in meta) {
262864
- if (this._idmap.has(meta.id)) {
262865
- throw new Error(`ID ${meta.id} already exists in the registry`);
263163
+ const meta3 = _meta[0];
263164
+ this._map.set(schema, meta3);
263165
+ if (meta3 && typeof meta3 === "object" && "id" in meta3) {
263166
+ if (this._idmap.has(meta3.id)) {
263167
+ throw new Error(`ID ${meta3.id} already exists in the registry`);
262866
263168
  }
262867
- this._idmap.set(meta.id, schema);
263169
+ this._idmap.set(meta3.id, schema);
262868
263170
  }
262869
263171
  return this;
262870
263172
  }
@@ -262874,9 +263176,9 @@ var $ZodRegistry = class {
262874
263176
  return this;
262875
263177
  }
262876
263178
  remove(schema) {
262877
- const meta = this._map.get(schema);
262878
- if (meta && typeof meta === "object" && "id" in meta) {
262879
- this._idmap.delete(meta.id);
263179
+ const meta3 = this._map.get(schema);
263180
+ if (meta3 && typeof meta3 === "object" && "id" in meta3) {
263181
+ this._idmap.delete(meta3.id);
262880
263182
  }
262881
263183
  this._map.delete(schema);
262882
263184
  return this;
@@ -262898,7 +263200,8 @@ var $ZodRegistry = class {
262898
263200
  function registry() {
262899
263201
  return new $ZodRegistry();
262900
263202
  }
262901
- var globalRegistry = /* @__PURE__ */ registry();
263203
+ (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
263204
+ var globalRegistry = globalThis.__zod_globalRegistry;
262902
263205
 
262903
263206
  // ../../node_modules/zod/v4/core/api.js
262904
263207
  function _string(Class2, params) {
@@ -263061,6 +263364,15 @@ function _ipv6(Class2, params) {
263061
263364
  ...normalizeParams(params)
263062
263365
  });
263063
263366
  }
263367
+ function _mac(Class2, params) {
263368
+ return new Class2({
263369
+ type: "string",
263370
+ format: "mac",
263371
+ check: "string_format",
263372
+ abort: false,
263373
+ ...normalizeParams(params)
263374
+ });
263375
+ }
263064
263376
  function _cidrv4(Class2, params) {
263065
263377
  return new Class2({
263066
263378
  type: "string",
@@ -263494,6 +263806,9 @@ function _toLowerCase() {
263494
263806
  function _toUpperCase() {
263495
263807
  return _overwrite((input) => input.toUpperCase());
263496
263808
  }
263809
+ function _slugify() {
263810
+ return _overwrite((input) => slugify(input));
263811
+ }
263497
263812
  function _array(Class2, element, params) {
263498
263813
  return new Class2({
263499
263814
  type: "array",
@@ -263715,6 +264030,30 @@ function _check(fn, params) {
263715
264030
  ch._zod.check = fn;
263716
264031
  return ch;
263717
264032
  }
264033
+ function describe(description) {
264034
+ const ch = new $ZodCheck({ check: "describe" });
264035
+ ch._zod.onattach = [
264036
+ (inst) => {
264037
+ const existing = globalRegistry.get(inst) ?? {};
264038
+ globalRegistry.add(inst, { ...existing, description });
264039
+ }
264040
+ ];
264041
+ ch._zod.check = () => {
264042
+ };
264043
+ return ch;
264044
+ }
264045
+ function meta(metadata) {
264046
+ const ch = new $ZodCheck({ check: "meta" });
264047
+ ch._zod.onattach = [
264048
+ (inst) => {
264049
+ const existing = globalRegistry.get(inst) ?? {};
264050
+ globalRegistry.add(inst, { ...existing, ...metadata });
264051
+ }
264052
+ ];
264053
+ ch._zod.check = () => {
264054
+ };
264055
+ return ch;
264056
+ }
263718
264057
  function _stringbool(Classes, _params) {
263719
264058
  const params = normalizeParams(_params);
263720
264059
  let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
@@ -263795,7 +264134,7 @@ var JSONSchemaGenerator = class {
263795
264134
  this.seen = /* @__PURE__ */ new Map();
263796
264135
  }
263797
264136
  process(schema, _params = { path: [], schemaPath: [] }) {
263798
- var _a;
264137
+ var _a2;
263799
264138
  const def = schema._zod.def;
263800
264139
  const formatMap = {
263801
264140
  guid: "uuid",
@@ -264011,11 +264350,16 @@ var JSONSchemaGenerator = class {
264011
264350
  }
264012
264351
  case "union": {
264013
264352
  const json2 = _json;
264353
+ const isDiscriminated = def.discriminator !== void 0;
264014
264354
  const options = def.options.map((x, i) => this.process(x, {
264015
264355
  ...params,
264016
- path: [...params.path, "anyOf", i]
264356
+ path: [...params.path, isDiscriminated ? "oneOf" : "anyOf", i]
264017
264357
  }));
264018
- json2.anyOf = options;
264358
+ if (isDiscriminated) {
264359
+ json2.oneOf = options;
264360
+ } else {
264361
+ json2.anyOf = options;
264362
+ }
264019
264363
  break;
264020
264364
  }
264021
264365
  case "intersection": {
@@ -264296,15 +264640,15 @@ var JSONSchemaGenerator = class {
264296
264640
  }
264297
264641
  }
264298
264642
  }
264299
- const meta = this.metadataRegistry.get(schema);
264300
- if (meta)
264301
- Object.assign(result.schema, meta);
264643
+ const meta3 = this.metadataRegistry.get(schema);
264644
+ if (meta3)
264645
+ Object.assign(result.schema, meta3);
264302
264646
  if (this.io === "input" && isTransforming(schema)) {
264303
264647
  delete result.schema.examples;
264304
264648
  delete result.schema.default;
264305
264649
  }
264306
264650
  if (this.io === "input" && result.schema._prefault)
264307
- (_a = result.schema).default ?? (_a.default = result.schema._prefault);
264651
+ (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
264308
264652
  delete result.schema._prefault;
264309
264653
  const _result = this.seen.get(schema);
264310
264654
  return _result.schema;
@@ -264504,102 +264848,51 @@ function isTransforming(_schema, _ctx) {
264504
264848
  if (ctx.seen.has(_schema))
264505
264849
  return false;
264506
264850
  ctx.seen.add(_schema);
264507
- const schema = _schema;
264508
- const def = schema._zod.def;
264509
- switch (def.type) {
264510
- case "string":
264511
- case "number":
264512
- case "bigint":
264513
- case "boolean":
264514
- case "date":
264515
- case "symbol":
264516
- case "undefined":
264517
- case "null":
264518
- case "any":
264519
- case "unknown":
264520
- case "never":
264521
- case "void":
264522
- case "literal":
264523
- case "enum":
264524
- case "nan":
264525
- case "file":
264526
- case "template_literal":
264527
- return false;
264528
- case "array": {
264529
- return isTransforming(def.element, ctx);
264530
- }
264531
- case "object": {
264532
- for (const key in def.shape) {
264533
- if (isTransforming(def.shape[key], ctx))
264534
- return true;
264535
- }
264536
- return false;
264537
- }
264538
- case "union": {
264539
- for (const option of def.options) {
264540
- if (isTransforming(option, ctx))
264541
- return true;
264542
- }
264543
- return false;
264544
- }
264545
- case "intersection": {
264546
- return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
264547
- }
264548
- case "tuple": {
264549
- for (const item of def.items) {
264550
- if (isTransforming(item, ctx))
264551
- return true;
264552
- }
264553
- if (def.rest && isTransforming(def.rest, ctx))
264851
+ const def = _schema._zod.def;
264852
+ if (def.type === "transform")
264853
+ return true;
264854
+ if (def.type === "array")
264855
+ return isTransforming(def.element, ctx);
264856
+ if (def.type === "set")
264857
+ return isTransforming(def.valueType, ctx);
264858
+ if (def.type === "lazy")
264859
+ return isTransforming(def.getter(), ctx);
264860
+ if (def.type === "promise" || def.type === "optional" || def.type === "nonoptional" || def.type === "nullable" || def.type === "readonly" || def.type === "default" || def.type === "prefault") {
264861
+ return isTransforming(def.innerType, ctx);
264862
+ }
264863
+ if (def.type === "intersection") {
264864
+ return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
264865
+ }
264866
+ if (def.type === "record" || def.type === "map") {
264867
+ return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
264868
+ }
264869
+ if (def.type === "pipe") {
264870
+ return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
264871
+ }
264872
+ if (def.type === "object") {
264873
+ for (const key in def.shape) {
264874
+ if (isTransforming(def.shape[key], ctx))
264554
264875
  return true;
264555
- return false;
264556
- }
264557
- case "record": {
264558
- return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
264559
264876
  }
264560
- case "map": {
264561
- return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
264562
- }
264563
- case "set": {
264564
- return isTransforming(def.valueType, ctx);
264565
- }
264566
- // inner types
264567
- case "promise":
264568
- case "optional":
264569
- case "nonoptional":
264570
- case "nullable":
264571
- case "readonly":
264572
- return isTransforming(def.innerType, ctx);
264573
- case "lazy":
264574
- return isTransforming(def.getter(), ctx);
264575
- case "default": {
264576
- return isTransforming(def.innerType, ctx);
264577
- }
264578
- case "prefault": {
264579
- return isTransforming(def.innerType, ctx);
264877
+ return false;
264878
+ }
264879
+ if (def.type === "union") {
264880
+ for (const option of def.options) {
264881
+ if (isTransforming(option, ctx))
264882
+ return true;
264580
264883
  }
264581
- case "custom": {
264582
- return false;
264884
+ return false;
264885
+ }
264886
+ if (def.type === "tuple") {
264887
+ for (const item of def.items) {
264888
+ if (isTransforming(item, ctx))
264889
+ return true;
264583
264890
  }
264584
- case "transform": {
264891
+ if (def.rest && isTransforming(def.rest, ctx))
264585
264892
  return true;
264586
- }
264587
- case "pipe": {
264588
- return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
264589
- }
264590
- case "success": {
264591
- return false;
264592
- }
264593
- case "catch": {
264594
- return false;
264595
- }
264596
- case "function": {
264597
- return false;
264598
- }
264599
- default:
264600
- def;
264893
+ return false;
264601
264894
  }
264602
- throw new Error(`Unknown schema type: ${def.type}`);
264895
+ return false;
264603
264896
  }
264604
264897
 
264605
264898
  // ../../node_modules/zod/v4/core/json-schema.js
@@ -264716,8 +265009,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
264716
265009
  };
264717
265010
  inst.clone = (def2, params) => clone(inst, def2, params);
264718
265011
  inst.brand = () => inst;
264719
- inst.register = ((reg, meta) => {
264720
- reg.add(inst, meta);
265012
+ inst.register = ((reg, meta3) => {
265013
+ reg.add(inst, meta3);
264721
265014
  return inst;
264722
265015
  });
264723
265016
  inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
@@ -264793,6 +265086,7 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
264793
265086
  inst.normalize = (...args) => inst.check(_normalize(...args));
264794
265087
  inst.toLowerCase = () => inst.check(_toLowerCase());
264795
265088
  inst.toUpperCase = () => inst.check(_toUpperCase());
265089
+ inst.slugify = () => inst.check(_slugify());
264796
265090
  });
264797
265091
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
264798
265092
  $ZodString.init(inst, def);
@@ -264932,6 +265226,13 @@ var ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {
264932
265226
  function ipv42(params) {
264933
265227
  return _ipv4(ZodIPv4, params);
264934
265228
  }
265229
+ var ZodMAC = /* @__PURE__ */ $constructor("ZodMAC", (inst, def) => {
265230
+ $ZodMAC.init(inst, def);
265231
+ ZodStringFormat.init(inst, def);
265232
+ });
265233
+ function mac2(params) {
265234
+ return _mac(ZodMAC, params);
265235
+ }
264935
265236
  var ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {
264936
265237
  $ZodIPv6.init(inst, def);
264937
265238
  ZodStringFormat.init(inst, def);
@@ -265642,6 +265943,8 @@ function refine(fn, _params = {}) {
265642
265943
  function superRefine(fn) {
265643
265944
  return _superRefine(fn);
265644
265945
  }
265946
+ var describe2 = describe;
265947
+ var meta2 = meta;
265645
265948
  function _instanceof(cls, params = {
265646
265949
  error: `Input not instance of ${cls.name}`
265647
265950
  }) {
@@ -266720,7 +267023,8 @@ var SUPPORTED_NETWORKS = [
266720
267023
  "Etherlink",
266721
267024
  "Hemi",
266722
267025
  "Lisk",
266723
- "Plasma"
267026
+ "Plasma",
267027
+ "Somnia"
266724
267028
  ];
266725
267029
  var NetworkType = external_exports.enum(SUPPORTED_NETWORKS);
266726
267030
  function withPublicNode(chain, subdomain) {
@@ -266847,31 +267151,11 @@ var chains = {
266847
267151
  }),
266848
267152
  // NOTE: Monad chain configs should be updated once the public mainnet is available
266849
267153
  Monad: defineChain({
266850
- id: 143,
266851
- name: "Monad",
266852
- nativeCurrency: {
266853
- name: "Monad",
266854
- symbol: "MON",
266855
- decimals: 18
266856
- },
266857
- rpcUrls: {
266858
- default: {
266859
- http: [
266860
- "https://permissionless-staging.gearbox.foundation/api/proxy/rpc/143"
266861
- ]
266862
- }
266863
- },
267154
+ ...monad,
266864
267155
  blockExplorers: {
266865
267156
  default: {
266866
- name: "Monvision",
266867
- url: "https://mainnet-beta.monvision.io"
266868
- }
266869
- },
266870
- blockTime: 400,
266871
- contracts: {
266872
- multicall3: {
266873
- address: "0xcA11bde05977b3631167028862bE2a173976CA11",
266874
- blockCreated: 9248132
267157
+ name: "Monadscan",
267158
+ url: "https://monadscan.com/"
266875
267159
  }
266876
267160
  },
266877
267161
  network: "Monad",
@@ -266879,7 +267163,7 @@ var chains = {
266879
267163
  "0x16956912813ab9a38d95730b52a8cf53e860a7c5": "Tulipa",
266880
267164
  "0x7c6ee1bf9c1eb3ee55bdbdc1e8d0317aab718e0a": "Edge UltraYield"
266881
267165
  },
266882
- isPublic: false,
267166
+ isPublic: true,
266883
267167
  wellKnownToken: {
266884
267168
  address: "0xe7cd86e13AC4309349F30B3435a9d337750fC82D",
266885
267169
  symbol: "USDT0"
@@ -267010,6 +267294,40 @@ var chains = {
267010
267294
  address: "0xcA11bde05977b3631167028862bE2a173976CA11"
267011
267295
  }
267012
267296
  }
267297
+ }),
267298
+ Somnia: defineChain({
267299
+ id: 5031,
267300
+ name: "Somnia",
267301
+ nativeCurrency: {
267302
+ name: "Somnia",
267303
+ symbol: "STT",
267304
+ decimals: 18
267305
+ },
267306
+ rpcUrls: {
267307
+ default: {
267308
+ http: ["https://api.infra.mainnet.somnia.network"]
267309
+ }
267310
+ },
267311
+ blockExplorers: {
267312
+ default: {
267313
+ name: "Somnia Explorer",
267314
+ url: "https://explorer.somnia.network"
267315
+ }
267316
+ },
267317
+ contracts: {
267318
+ multicall3: {
267319
+ address: "0x5e44F178E8cF9B2F5409B6f18ce936aB817C5a11",
267320
+ blockCreated: 38516341
267321
+ }
267322
+ },
267323
+ blockTime: 200,
267324
+ network: "Somnia",
267325
+ defaultMarketConfigurators: {},
267326
+ isPublic: false,
267327
+ wellKnownToken: {
267328
+ address: "0x67B302E35Aef5EEE8c32D934F5856869EF428330",
267329
+ symbol: "USDT"
267330
+ }
267013
267331
  })
267014
267332
  };
267015
267333
  var networkByChainId = Object.values(chains).reduce((acc, chain) => {
@@ -267195,8 +267513,9 @@ var ADDRESS_PROVIDER_BLOCK = {
267195
267513
  // arbitrary not deployed yet
267196
267514
  Lisk: 18934260n,
267197
267515
  // arbitrary not deployed yet
267198
- Plasma: 670918n
267516
+ Plasma: 670918n,
267199
267517
  // arbitrary not deployed yet
267518
+ Somnia: 147687418n
267200
267519
  };
267201
267520
  var BLOCK_DURATION_LOCAL = {
267202
267521
  Mainnet: 12050,
@@ -267215,7 +267534,8 @@ var BLOCK_DURATION_LOCAL = {
267215
267534
  Etherlink: 1e3,
267216
267535
  Hemi: 12e3,
267217
267536
  Lisk: 2e3,
267218
- Plasma: 1e3
267537
+ Plasma: 1e3,
267538
+ Somnia: 200
267219
267539
  };
267220
267540
  var DEFAULT_DURATION = 12e3;
267221
267541
  var BLOCK_DURATION = Object.values(chains).reduce(
@@ -267835,7 +268155,8 @@ var tokenDataByNetwork = {
267835
268155
  wstETH: "0x76D8de471F54aAA87784119c60Df1bbFc852C415",
267836
268156
  lskETH: "0x1b10E2270780858923cdBbC9B5423e29fffD1A44"
267837
268157
  },
267838
- Plasma: {}
268158
+ Plasma: {},
268159
+ Somnia: {}
267839
268160
  };
267840
268161
  var tickerInfoTokensByNetwork = {
267841
268162
  Mainnet: {
@@ -268237,7 +268558,8 @@ var tickerInfoTokensByNetwork = {
268237
268558
  Etherlink: {},
268238
268559
  Hemi: {},
268239
268560
  Lisk: {},
268240
- Plasma: {}
268561
+ Plasma: {},
268562
+ Somnia: {}
268241
268563
  };
268242
268564
  var tokenSymbolByAddress = Object.entries(tokenDataByNetwork).reduce(
268243
268565
  (acc, [, tokens]) => ({
@@ -269118,7 +269440,8 @@ function tryBisectBlockRange({ fromBlock, toBlock }, e) {
269118
269440
  "query exceeds max block",
269119
269441
  "range is too large",
269120
269442
  "eth_getLogs is limited to",
269121
- "eth_getLogs requests with up to"
269443
+ "eth_getLogs requests with up to",
269444
+ "exceeded max allowed range"
269122
269445
  ];
269123
269446
  if (e instanceof Error && blockRangeErrors.some((errorText) => e.message.includes(errorText))) {
269124
269447
  const middle = (fromBlock + toBlock) / 2n;
@@ -286240,12 +286563,12 @@ var Auditor = class {
286240
286563
  }
286241
286564
  this.#logger.debug("audit repositories setup complete");
286242
286565
  }
286243
- async auditFiles(meta) {
286244
- if (!meta.files) {
286566
+ async auditFiles(meta3) {
286567
+ if (!meta3.files) {
286245
286568
  throw new Error("no files to audit");
286246
286569
  }
286247
- const files = extractFilesFromJSON(meta.files).filter((f) => f.path !== "metadata.json").map(({ path: path9, buffer: buffer2 }) => {
286248
- const p = path9.includes("node_modules/") ? path9.replace("node_modules/", "") : meta.source;
286570
+ const files = extractFilesFromJSON(meta3.files).filter((f) => f.path !== "metadata.json").map(({ path: path9, buffer: buffer2 }) => {
286571
+ const p = path9.includes("node_modules/") ? path9.replace("node_modules/", "") : meta3.source;
286249
286572
  const gearbox = p.startsWith("@gearbox-protocol");
286250
286573
  return {
286251
286574
  gearbox,
@@ -303235,7 +303558,8 @@ var ADDRESS_PROVIDER = {
303235
303558
  Etherlink: NOT_DEPLOYED,
303236
303559
  Hemi: NOT_DEPLOYED,
303237
303560
  Lisk: NOT_DEPLOYED,
303238
- Plasma: NOT_DEPLOYED
303561
+ Plasma: NOT_DEPLOYED,
303562
+ Somnia: NOT_DEPLOYED
303239
303563
  };
303240
303564
  var GOVERNOR = {
303241
303565
  Mainnet: "0x29B97F37B3E0C704bCFD785F5b7bBa2A0B7df2c7",
@@ -303253,7 +303577,8 @@ var GOVERNOR = {
303253
303577
  Etherlink: NOT_DEPLOYED,
303254
303578
  Hemi: NOT_DEPLOYED,
303255
303579
  Lisk: NOT_DEPLOYED,
303256
- Plasma: NOT_DEPLOYED
303580
+ Plasma: NOT_DEPLOYED,
303581
+ Somnia: NOT_DEPLOYED
303257
303582
  };
303258
303583
  var TIMELOCK2 = {
303259
303584
  Mainnet: "0xa133C9A92Fb8dDB962Af1cbae58b2723A0bdf23b",
@@ -303271,7 +303596,8 @@ var TIMELOCK2 = {
303271
303596
  Etherlink: NOT_DEPLOYED,
303272
303597
  Hemi: NOT_DEPLOYED,
303273
303598
  Lisk: NOT_DEPLOYED,
303274
- Plasma: NOT_DEPLOYED
303599
+ Plasma: NOT_DEPLOYED,
303600
+ Somnia: NOT_DEPLOYED
303275
303601
  };
303276
303602
  var BATCH_CHAIN = {
303277
303603
  Mainnet: "0xB900bDEf6eAc8C5D97F8e876aBC39573Cf6626b2",
@@ -303289,7 +303615,8 @@ var BATCH_CHAIN = {
303289
303615
  Etherlink: NOT_DEPLOYED,
303290
303616
  Hemi: NOT_DEPLOYED,
303291
303617
  Lisk: NOT_DEPLOYED,
303292
- Plasma: NOT_DEPLOYED
303618
+ Plasma: NOT_DEPLOYED,
303619
+ Somnia: NOT_DEPLOYED
303293
303620
  };
303294
303621
  var BLACKLIST_HELPER = {
303295
303622
  Mainnet: "0xFfbF344741654a1B9Ab1286Cf05A42f275F67839",
@@ -303307,7 +303634,8 @@ var BLACKLIST_HELPER = {
303307
303634
  Etherlink: NOT_DEPLOYED,
303308
303635
  Hemi: NOT_DEPLOYED,
303309
303636
  Lisk: NOT_DEPLOYED,
303310
- Plasma: NOT_DEPLOYED
303637
+ Plasma: NOT_DEPLOYED,
303638
+ Somnia: NOT_DEPLOYED
303311
303639
  };
303312
303640
  var CREATE2FACTORY = {
303313
303641
  Mainnet: "0x45d146CAA25aa565Cfc7434926633f4F1C97c873",
@@ -303325,7 +303653,8 @@ var CREATE2FACTORY = {
303325
303653
  Etherlink: NOT_DEPLOYED,
303326
303654
  Hemi: NOT_DEPLOYED,
303327
303655
  Lisk: NOT_DEPLOYED,
303328
- Plasma: NOT_DEPLOYED
303656
+ Plasma: NOT_DEPLOYED,
303657
+ Somnia: NOT_DEPLOYED
303329
303658
  };
303330
303659
  var MULTISIG = {
303331
303660
  Mainnet: "0xA7D5DDc1b8557914F158076b228AA91eF613f1D5",
@@ -303343,7 +303672,8 @@ var MULTISIG = {
303343
303672
  Etherlink: NOT_DEPLOYED,
303344
303673
  Hemi: NOT_DEPLOYED,
303345
303674
  Lisk: NOT_DEPLOYED,
303346
- Plasma: NOT_DEPLOYED
303675
+ Plasma: NOT_DEPLOYED,
303676
+ Somnia: NOT_DEPLOYED
303347
303677
  };
303348
303678
  var VETO_ADMIN = {
303349
303679
  Mainnet: "0xbb803559B4D58b75E12dd74641AB955e8B0Df40E",
@@ -303361,7 +303691,8 @@ var VETO_ADMIN = {
303361
303691
  Etherlink: NOT_DEPLOYED,
303362
303692
  Hemi: NOT_DEPLOYED,
303363
303693
  Lisk: NOT_DEPLOYED,
303364
- Plasma: NOT_DEPLOYED
303694
+ Plasma: NOT_DEPLOYED,
303695
+ Somnia: NOT_DEPLOYED
303365
303696
  };
303366
303697
  var TREASURY = {
303367
303698
  Mainnet: "0x7b065fcb0760df0cea8cfd144e08554f3cea73d1",
@@ -303379,7 +303710,8 @@ var TREASURY = {
303379
303710
  Etherlink: NOT_DEPLOYED,
303380
303711
  Hemi: NOT_DEPLOYED,
303381
303712
  Lisk: NOT_DEPLOYED,
303382
- Plasma: NOT_DEPLOYED
303713
+ Plasma: NOT_DEPLOYED,
303714
+ Somnia: NOT_DEPLOYED
303383
303715
  };
303384
303716
  var ROUTER_MULTISIG_ADDRESS = {
303385
303717
  Mainnet: "0xaaDf86C39a76eEEf5a5337Ca449C7EfA66E3175E",
@@ -303397,7 +303729,8 @@ var ROUTER_MULTISIG_ADDRESS = {
303397
303729
  Etherlink: NOT_DEPLOYED,
303398
303730
  Hemi: NOT_DEPLOYED,
303399
303731
  Lisk: NOT_DEPLOYED,
303400
- Plasma: NOT_DEPLOYED
303732
+ Plasma: NOT_DEPLOYED,
303733
+ Somnia: NOT_DEPLOYED
303401
303734
  };
303402
303735
  var ROUTER_CREATE2FACTORY = {
303403
303736
  Mainnet: "0xA287577Fb7Cf49246e569EA268FE919F1cD6d9E2",
@@ -303415,7 +303748,8 @@ var ROUTER_CREATE2FACTORY = {
303415
303748
  Etherlink: NOT_DEPLOYED,
303416
303749
  Hemi: NOT_DEPLOYED,
303417
303750
  Lisk: NOT_DEPLOYED,
303418
- Plasma: NOT_DEPLOYED
303751
+ Plasma: NOT_DEPLOYED,
303752
+ Somnia: NOT_DEPLOYED
303419
303753
  };
303420
303754
  var NEXO_ADDRESS_PROVIDER = {
303421
303755
  Mainnet: "0x2Eb0BE5585E49190414307597912BD039a029Eda",
@@ -303433,7 +303767,8 @@ var NEXO_ADDRESS_PROVIDER = {
303433
303767
  Etherlink: NOT_DEPLOYED,
303434
303768
  Hemi: NOT_DEPLOYED,
303435
303769
  Lisk: NOT_DEPLOYED,
303436
- Plasma: NOT_DEPLOYED
303770
+ Plasma: NOT_DEPLOYED,
303771
+ Somnia: NOT_DEPLOYED
303437
303772
  };
303438
303773
  var NEXO_TIMELOCK = {
303439
303774
  Mainnet: "0xdcC3FD83DBF480e8Ad74DD3A634CaE29B68b9814",
@@ -303451,7 +303786,8 @@ var NEXO_TIMELOCK = {
303451
303786
  Etherlink: NOT_DEPLOYED,
303452
303787
  Hemi: NOT_DEPLOYED,
303453
303788
  Lisk: NOT_DEPLOYED,
303454
- Plasma: NOT_DEPLOYED
303789
+ Plasma: NOT_DEPLOYED,
303790
+ Somnia: NOT_DEPLOYED
303455
303791
  };
303456
303792
  var NEXO_GOVERNOR = {
303457
303793
  Mainnet: "0x42Cf536467f4fa474010a16f66A3fa7576f987D6",
@@ -303469,7 +303805,8 @@ var NEXO_GOVERNOR = {
303469
303805
  Etherlink: NOT_DEPLOYED,
303470
303806
  Hemi: NOT_DEPLOYED,
303471
303807
  Lisk: NOT_DEPLOYED,
303472
- Plasma: NOT_DEPLOYED
303808
+ Plasma: NOT_DEPLOYED,
303809
+ Somnia: NOT_DEPLOYED
303473
303810
  };
303474
303811
  var NEXO_BATCH_CHAIN = {
303475
303812
  Mainnet: "0xcba71ACEDe17d2CABBfADBab30cc08F20eeaca52",
@@ -303487,7 +303824,8 @@ var NEXO_BATCH_CHAIN = {
303487
303824
  Etherlink: NOT_DEPLOYED,
303488
303825
  Hemi: NOT_DEPLOYED,
303489
303826
  Lisk: NOT_DEPLOYED,
303490
- Plasma: NOT_DEPLOYED
303827
+ Plasma: NOT_DEPLOYED,
303828
+ Somnia: NOT_DEPLOYED
303491
303829
  };
303492
303830
  var NEXO_CREATE2FACTORY = {
303493
303831
  Mainnet: "0x48D945ACc64043B10A781917bfB88dDF49e06Fc6",
@@ -303505,7 +303843,8 @@ var NEXO_CREATE2FACTORY = {
303505
303843
  Etherlink: NOT_DEPLOYED,
303506
303844
  Hemi: NOT_DEPLOYED,
303507
303845
  Lisk: NOT_DEPLOYED,
303508
- Plasma: NOT_DEPLOYED
303846
+ Plasma: NOT_DEPLOYED,
303847
+ Somnia: NOT_DEPLOYED
303509
303848
  };
303510
303849
  var UTILITY_CONTRACTS = {
303511
303850
  ADDRESS_PROVIDER,
@@ -304077,19 +304416,19 @@ var Verifier = class {
304077
304416
  this.logger = log_default.child({ name: "Verifier" });
304078
304417
  (0, import_lib_sourcify.setLibSourcifyLogger)(new SourcifyLoggerAdaper(this.logger));
304079
304418
  }
304080
- async verifyCreate2Tx(bytecode, meta) {
304081
- this.logger.debug(`verifying ${meta.contractName} at ${meta.contractAddress}`);
304419
+ async verifyCreate2Tx(bytecode, meta3) {
304420
+ this.logger.debug(`verifying ${meta3.contractName} at ${meta3.contractAddress}`);
304082
304421
  const result = {
304083
- contract: meta.contractName
304422
+ contract: meta3.contractName
304084
304423
  };
304085
304424
  try {
304086
- if (!meta.metadata.files) {
304425
+ if (!meta3.metadata.files) {
304087
304426
  return {
304088
304427
  ...result,
304089
304428
  error: "files not provided"
304090
304429
  };
304091
304430
  }
304092
- const files = extractFilesFromJSON(meta.metadata.files);
304431
+ const files = extractFilesFromJSON(meta3.metadata.files);
304093
304432
  const contracts2 = await (0, import_lib_sourcify.checkFilesWithMetadata)(solc2, vyperCompiler, files);
304094
304433
  const errors = contracts2.filter((contract2) => !contract2.isValid(false)).map(stringifyInvalidAndMissing);
304095
304434
  if (errors.length) {
@@ -304131,10 +304470,10 @@ ${errors.join("\n")}`
304131
304470
  }
304132
304471
  if (match2) {
304133
304472
  const abiEncodedConstructorArguments = extractAbiEncodedConstructorArguments(creatorTxData, recompiledCreationBytecode) ?? "";
304134
- if (!hexEq(abiEncodedConstructorArguments, meta.encodedConstructorArgs)) {
304473
+ if (!hexEq(abiEncodedConstructorArguments, meta3.encodedConstructorArgs)) {
304135
304474
  return {
304136
304475
  ...result,
304137
- error: `Encoded constructor arguments mismatch: meta ${meta.encodedConstructorArgs} tx ${abiEncodedConstructorArguments}`
304476
+ error: `Encoded constructor arguments mismatch: meta ${meta3.encodedConstructorArgs} tx ${abiEncodedConstructorArguments}`
304138
304477
  };
304139
304478
  }
304140
304479
  const recompiledMetadata = json_parse(recompiled.metadata);
@@ -304157,7 +304496,7 @@ ${errors.join("\n")}`
304157
304496
  }
304158
304497
  }
304159
304498
  if (match2 === "perfect" || match2 === "partial") {
304160
- const audits2 = await container.auditor.auditFiles(meta.metadata);
304499
+ const audits2 = await container.auditor.auditFiles(meta3.metadata);
304161
304500
  return { ...result, match: match2, files: audits2 };
304162
304501
  }
304163
304502
  return { ...result, error: `match is ${match2}` };
@@ -304368,7 +304707,7 @@ var AbstractVisitor = class {
304368
304707
  // ../../packages/node/dist/tree/visitors/AddressProviderV1Visitor.js
304369
304708
  var AddressProviderV1Visitor = class extends AbstractVisitor {
304370
304709
  async _visit({ address, lastVisitBlock, discoveryBlock }, client, block) {
304371
- const events = await client.getLogs({
304710
+ const events = await getLogsSafe(client, {
304372
304711
  address,
304373
304712
  event: getAbiItem({ abi: iAddressProviderV2Abi, name: "AddressSet" }),
304374
304713
  fromBlock: lastVisitBlock ? BigInt(lastVisitBlock + 1) : BigInt(discoveryBlock ?? 0n),
@@ -304664,7 +305003,7 @@ var CreditConfiguratorV2Visitor = class extends AbstractVisitor {
304664
305003
  async _visit(_entry, client, block) {
304665
305004
  const entry = _entry;
304666
305005
  const { address, lastVisitBlock, immutableState } = entry;
304667
- const logs = await client.getLogs({
305006
+ const logs = await getLogsSafe(client, {
304668
305007
  address,
304669
305008
  events: [
304670
305009
  getAbiItem({ abi: iCreditConfiguratorV2Abi, name: "ContractAllowed" }),
@@ -304835,7 +305174,7 @@ var CreditFacadeV2Visitor = class extends AbstractVisitor {
304835
305174
  allowFailure: false
304836
305175
  });
304837
305176
  entry.immutableState.creditManager = creditManager;
304838
- const logs = await client.getLogs({
305177
+ const logs = await getLogsSafe(client, {
304839
305178
  address,
304840
305179
  events: [
304841
305180
  getAbiItem({ abi: iCreditFacadeV2Abi, name: "BlacklistHelperSet" }),
@@ -304932,7 +305271,7 @@ var CreditFilterVisitor = class extends AbstractVisitor {
304932
305271
  async _visit(_entry, client, block) {
304933
305272
  const entry = _entry;
304934
305273
  const { address, lastVisitBlock } = entry;
304935
- const logs = await client.getLogs({
305274
+ const logs = await getLogsSafe(client, {
304936
305275
  address,
304937
305276
  events: [
304938
305277
  getAbiItem({ abi: iCreditFilterAbi, name: "ContractAllowed" }),
@@ -304989,7 +305328,7 @@ var CreditManagerV1Visitor = class extends AbstractVisitor {
304989
305328
  allowFailure: false
304990
305329
  });
304991
305330
  entry.immutableState.pool = poolService;
304992
- const events = await client.getLogs({
305331
+ const events = await getLogsSafe(client, {
304993
305332
  address,
304994
305333
  event: getAbiItem({ abi: iCreditManagerAbi, name: "OpenCreditAccount" }),
304995
305334
  fromBlock: BigInt(lastVisitBlock ? lastVisitBlock + 1 : GEARBOX_V1_BLOCK),
@@ -305030,7 +305369,7 @@ var CreditManagerV2Visitor = class extends AbstractVisitor {
305030
305369
  functionName: "poolService"
305031
305370
  });
305032
305371
  entry.immutableState.pool = poolService;
305033
- const events = await client.getLogs({
305372
+ const events = await getLogsSafe(client, {
305034
305373
  address,
305035
305374
  event: getAbiItem({ abi: iCreditManagerV2Abi, name: "NewConfigurator" }),
305036
305375
  fromBlock: BigInt(lastVisitBlock ? lastVisitBlock + 1 : GEARBOX_V1_BLOCK),
@@ -305177,7 +305516,7 @@ var PoolQuotaKeeperV3Visitor = class extends AbstractVisitor {
305177
305516
  // ../../packages/node/dist/tree/visitors/PoolV1Visitor.js
305178
305517
  var PoolV1Visitor = class extends AbstractVisitor {
305179
305518
  async _visit({ address, lastVisitBlock }, client, block) {
305180
- const events = await client.getLogs({
305519
+ const events = await getLogsSafe(client, {
305181
305520
  address,
305182
305521
  event: getAbiItem({ abi: iPoolServiceAbi, name: "NewInterestRateModel" }),
305183
305522
  fromBlock: BigInt(lastVisitBlock ? lastVisitBlock + 1 : GEARBOX_V1_BLOCK),
@@ -305292,7 +305631,7 @@ async function loadPriceFeedTypes(client, entries) {
305292
305631
  // ../../packages/node/dist/tree/visitors/PriceOracleV2Visitor.js
305293
305632
  var PriceOracleV2Visitor = class extends AbstractVisitor {
305294
305633
  async _visit({ address, lastVisitBlock }, client, block) {
305295
- const events = await client.getLogs({
305634
+ const events = await getLogsSafe(client, {
305296
305635
  address,
305297
305636
  event: getAbiItem({ abi: iPriceOracleV2Abi, name: "NewPriceFeed" }),
305298
305637
  fromBlock: BigInt(lastVisitBlock ? lastVisitBlock + 1 : GEARBOX_V1_BLOCK),
@@ -305753,11 +306092,11 @@ var MetaRepo = class {
305753
306092
  for (const f of files) {
305754
306093
  const fname = path6.basename(f, `.json`);
305755
306094
  if (isAddress(fname)) {
305756
- const meta = await readFile6(path6.resolve(metaRoot, f), "utf-8").then(json_parse);
305757
- if (meta.encodedConstructorArgs && !meta.encodedConstructorArgs.startsWith("0x")) {
306095
+ const meta3 = await readFile6(path6.resolve(metaRoot, f), "utf-8").then(json_parse);
306096
+ if (meta3.encodedConstructorArgs && !meta3.encodedConstructorArgs.startsWith("0x")) {
305758
306097
  throw new Error(`expect encodedConstructorArgs for ${fname} to start with '0x'`);
305759
306098
  }
305760
- this.#meta.set(fname.toLowerCase(), meta);
306099
+ this.#meta.set(fname.toLowerCase(), meta3);
305761
306100
  this.#logger.trace(`loaded meta for address ${fname}`);
305762
306101
  }
305763
306102
  }
@@ -310960,7 +311299,7 @@ function getRenderer(opts) {
310960
311299
  var package_default = {
310961
311300
  name: "@gearbox-protocol/deploy-tools",
310962
311301
  description: "Gearbox deploy tools",
310963
- version: "5.60.1",
311302
+ version: "5.60.3",
310964
311303
  homepage: "https://gearbox.fi",
310965
311304
  keywords: [
310966
311305
  "gearbox"
@@ -311000,11 +311339,11 @@ var package_default = {
311000
311339
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
311001
311340
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
311002
311341
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
311003
- "@gearbox-protocol/sdk": "11.5.0",
311342
+ "@gearbox-protocol/sdk": "11.6.6",
311004
311343
  "@gearbox-protocol/sdk-gov": "2.34.0-next.114",
311005
311344
  "@types/lodash-es": "^4.17.12",
311006
311345
  "@types/node": "^24.10.1",
311007
- "@types/react": "^19.2.6",
311346
+ "@types/react": "^19.2.7",
311008
311347
  "@types/react-dom": "^19.2.3",
311009
311348
  abitype: "^1.2.0",
311010
311349
  chalk: "^5.6.2",
@@ -311020,9 +311359,9 @@ var package_default = {
311020
311359
  "react-dom": "^19.2.0",
311021
311360
  table: "^6.9.0",
311022
311361
  tsx: "^4.20.6",
311023
- viem: "^2.39.3",
311362
+ viem: "^2.40.2",
311024
311363
  yaml: "^2.8.1",
311025
- zod: "^4.1.12"
311364
+ zod: "^4.1.13"
311026
311365
  }
311027
311366
  };
311028
311367