microboard-ui-temp 0.1.30 → 0.1.32

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.js +455 -553
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -32876,18 +32876,18 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
32876
32876
  const targetParameter = targetParameters[parameterIndex];
32877
32877
  if (sourceParameter.type === "tuple" && targetParameter.type === "tuple" && "components" in sourceParameter && "components" in targetParameter)
32878
32878
  return getAmbiguousTypes(sourceParameter.components, targetParameter.components, args[parameterIndex]);
32879
- const types6 = [sourceParameter.type, targetParameter.type];
32879
+ const types7 = [sourceParameter.type, targetParameter.type];
32880
32880
  const ambiguous = (() => {
32881
- if (types6.includes("address") && types6.includes("bytes20"))
32881
+ if (types7.includes("address") && types7.includes("bytes20"))
32882
32882
  return true;
32883
- if (types6.includes("address") && types6.includes("string"))
32883
+ if (types7.includes("address") && types7.includes("string"))
32884
32884
  return isAddress2(args[parameterIndex], { strict: false });
32885
- if (types6.includes("address") && types6.includes("bytes"))
32885
+ if (types7.includes("address") && types7.includes("bytes"))
32886
32886
  return isAddress2(args[parameterIndex], { strict: false });
32887
32887
  return false;
32888
32888
  })();
32889
32889
  if (ambiguous)
32890
- return types6;
32890
+ return types7;
32891
32891
  }
32892
32892
  return;
32893
32893
  }
@@ -36727,22 +36727,22 @@ function getAmbiguousTypes2(sourceParameters, targetParameters, args) {
36727
36727
  const targetParameter = targetParameters[parameterIndex];
36728
36728
  if (sourceParameter.type === "tuple" && targetParameter.type === "tuple" && "components" in sourceParameter && "components" in targetParameter)
36729
36729
  return getAmbiguousTypes2(sourceParameter.components, targetParameter.components, args[parameterIndex]);
36730
- const types6 = [sourceParameter.type, targetParameter.type];
36730
+ const types7 = [sourceParameter.type, targetParameter.type];
36731
36731
  const ambiguous = (() => {
36732
- if (types6.includes("address") && types6.includes("bytes20"))
36732
+ if (types7.includes("address") && types7.includes("bytes20"))
36733
36733
  return true;
36734
- if (types6.includes("address") && types6.includes("string"))
36734
+ if (types7.includes("address") && types7.includes("string"))
36735
36735
  return validate2(args[parameterIndex], {
36736
36736
  strict: false
36737
36737
  });
36738
- if (types6.includes("address") && types6.includes("bytes"))
36738
+ if (types7.includes("address") && types7.includes("bytes"))
36739
36739
  return validate2(args[parameterIndex], {
36740
36740
  strict: false
36741
36741
  });
36742
36742
  return false;
36743
36743
  })();
36744
36744
  if (ambiguous)
36745
- return types6;
36745
+ return types7;
36746
36746
  }
36747
36747
  return;
36748
36748
  }
@@ -37240,15 +37240,15 @@ function encode3(parameters, values2, options2) {
37240
37240
  return "0x";
37241
37241
  return data;
37242
37242
  }
37243
- function encodePacked(types6, values2) {
37244
- if (types6.length !== values2.length)
37243
+ function encodePacked(types7, values2) {
37244
+ if (types7.length !== values2.length)
37245
37245
  throw new LengthMismatchError({
37246
- expectedLength: types6.length,
37246
+ expectedLength: types7.length,
37247
37247
  givenLength: values2.length
37248
37248
  });
37249
37249
  const data = [];
37250
- for (let i2 = 0;i2 < types6.length; i2++) {
37251
- const type = types6[i2];
37250
+ for (let i2 = 0;i2 < types7.length; i2++) {
37251
+ const type = types7[i2];
37252
37252
  const value = values2[i2];
37253
37253
  data.push(encodePacked.encode(type, value));
37254
37254
  }
@@ -37747,8 +37747,8 @@ var init_typedData = __esm(() => {
37747
37747
  }
37748
37748
  };
37749
37749
  InvalidPrimaryTypeError = class InvalidPrimaryTypeError extends BaseError {
37750
- constructor({ primaryType, types: types6 }) {
37751
- super(`Invalid primary type \`${primaryType}\` must be one of \`${JSON.stringify(Object.keys(types6))}\`.`, {
37750
+ constructor({ primaryType, types: types7 }) {
37751
+ super(`Invalid primary type \`${primaryType}\` must be one of \`${JSON.stringify(Object.keys(types7))}\`.`, {
37752
37752
  docsPath: "/api/glossary/Errors#typeddatainvalidprimarytypeerror",
37753
37753
  metaMessages: ["Check that the primary type is a key in `types`."]
37754
37754
  });
@@ -37767,7 +37767,7 @@ var init_typedData = __esm(() => {
37767
37767
  // node_modules/viem/_esm/utils/signature/hashTypedData.js
37768
37768
  function hashTypedData(parameters) {
37769
37769
  const { domain: domain2 = {}, message, primaryType } = parameters;
37770
- const types6 = {
37770
+ const types7 = {
37771
37771
  EIP712Domain: getTypesForEIP712Domain({ domain: domain2 }),
37772
37772
  ...parameters.types
37773
37773
  };
@@ -37775,43 +37775,43 @@ function hashTypedData(parameters) {
37775
37775
  domain: domain2,
37776
37776
  message,
37777
37777
  primaryType,
37778
- types: types6
37778
+ types: types7
37779
37779
  });
37780
37780
  const parts = ["0x1901"];
37781
37781
  if (domain2)
37782
37782
  parts.push(hashDomain({
37783
37783
  domain: domain2,
37784
- types: types6
37784
+ types: types7
37785
37785
  }));
37786
37786
  if (primaryType !== "EIP712Domain")
37787
37787
  parts.push(hashStruct({
37788
37788
  data: message,
37789
37789
  primaryType,
37790
- types: types6
37790
+ types: types7
37791
37791
  }));
37792
37792
  return keccak2562(concat3(parts));
37793
37793
  }
37794
- function hashDomain({ domain: domain2, types: types6 }) {
37794
+ function hashDomain({ domain: domain2, types: types7 }) {
37795
37795
  return hashStruct({
37796
37796
  data: domain2,
37797
37797
  primaryType: "EIP712Domain",
37798
- types: types6
37798
+ types: types7
37799
37799
  });
37800
37800
  }
37801
- function hashStruct({ data, primaryType, types: types6 }) {
37801
+ function hashStruct({ data, primaryType, types: types7 }) {
37802
37802
  const encoded = encodeData2({
37803
37803
  data,
37804
37804
  primaryType,
37805
- types: types6
37805
+ types: types7
37806
37806
  });
37807
37807
  return keccak2562(encoded);
37808
37808
  }
37809
- function encodeData2({ data, primaryType, types: types6 }) {
37809
+ function encodeData2({ data, primaryType, types: types7 }) {
37810
37810
  const encodedTypes = [{ type: "bytes32" }];
37811
- const encodedValues = [hashType({ primaryType, types: types6 })];
37812
- for (const field of types6[primaryType]) {
37811
+ const encodedValues = [hashType({ primaryType, types: types7 })];
37812
+ for (const field of types7[primaryType]) {
37813
37813
  const [type, value] = encodeField({
37814
- types: types6,
37814
+ types: types7,
37815
37815
  name: field.name,
37816
37816
  type: field.type,
37817
37817
  value: data[field.name]
@@ -37821,37 +37821,37 @@ function encodeData2({ data, primaryType, types: types6 }) {
37821
37821
  }
37822
37822
  return encodeAbiParameters(encodedTypes, encodedValues);
37823
37823
  }
37824
- function hashType({ primaryType, types: types6 }) {
37825
- const encodedHashType = toHex2(encodeType2({ primaryType, types: types6 }));
37824
+ function hashType({ primaryType, types: types7 }) {
37825
+ const encodedHashType = toHex2(encodeType2({ primaryType, types: types7 }));
37826
37826
  return keccak2562(encodedHashType);
37827
37827
  }
37828
- function encodeType2({ primaryType, types: types6 }) {
37828
+ function encodeType2({ primaryType, types: types7 }) {
37829
37829
  let result = "";
37830
- const unsortedDeps = findTypeDependencies({ primaryType, types: types6 });
37830
+ const unsortedDeps = findTypeDependencies({ primaryType, types: types7 });
37831
37831
  unsortedDeps.delete(primaryType);
37832
37832
  const deps = [primaryType, ...Array.from(unsortedDeps).sort()];
37833
37833
  for (const type of deps) {
37834
- result += `${type}(${types6[type].map(({ name, type: t4 }) => `${t4} ${name}`).join(",")})`;
37834
+ result += `${type}(${types7[type].map(({ name, type: t4 }) => `${t4} ${name}`).join(",")})`;
37835
37835
  }
37836
37836
  return result;
37837
37837
  }
37838
- function findTypeDependencies({ primaryType: primaryType_, types: types6 }, results = new Set) {
37838
+ function findTypeDependencies({ primaryType: primaryType_, types: types7 }, results = new Set) {
37839
37839
  const match = primaryType_.match(/^\w*/u);
37840
37840
  const primaryType = match?.[0];
37841
- if (results.has(primaryType) || types6[primaryType] === undefined) {
37841
+ if (results.has(primaryType) || types7[primaryType] === undefined) {
37842
37842
  return results;
37843
37843
  }
37844
37844
  results.add(primaryType);
37845
- for (const field of types6[primaryType]) {
37846
- findTypeDependencies({ primaryType: field.type, types: types6 }, results);
37845
+ for (const field of types7[primaryType]) {
37846
+ findTypeDependencies({ primaryType: field.type, types: types7 }, results);
37847
37847
  }
37848
37848
  return results;
37849
37849
  }
37850
- function encodeField({ types: types6, name, type, value }) {
37851
- if (types6[type] !== undefined) {
37850
+ function encodeField({ types: types7, name, type, value }) {
37851
+ if (types7[type] !== undefined) {
37852
37852
  return [
37853
37853
  { type: "bytes32" },
37854
- keccak2562(encodeData2({ data: value, primaryType: type, types: types6 }))
37854
+ keccak2562(encodeData2({ data: value, primaryType: type, types: types7 }))
37855
37855
  ];
37856
37856
  }
37857
37857
  if (type === "bytes") {
@@ -37866,7 +37866,7 @@ function encodeField({ types: types6, name, type, value }) {
37866
37866
  const typeValuePairs = value.map((item) => encodeField({
37867
37867
  name,
37868
37868
  type: parsedType,
37869
- types: types6,
37869
+ types: types7,
37870
37870
  value: item
37871
37871
  }));
37872
37872
  return [
@@ -37885,7 +37885,7 @@ var init_hashTypedData = __esm(() => {
37885
37885
 
37886
37886
  // node_modules/viem/_esm/utils/typedData.js
37887
37887
  function validateTypedData(parameters) {
37888
- const { domain: domain2, message, primaryType, types: types6 } = parameters;
37888
+ const { domain: domain2, message, primaryType, types: types7 } = parameters;
37889
37889
  const validateData = (struct, data) => {
37890
37890
  for (const param of struct) {
37891
37891
  const { name, type } = param;
@@ -37909,23 +37909,23 @@ function validateTypedData(parameters) {
37909
37909
  givenSize: size2(value)
37910
37910
  });
37911
37911
  }
37912
- const struct2 = types6[type];
37912
+ const struct2 = types7[type];
37913
37913
  if (struct2) {
37914
37914
  validateReference(type);
37915
37915
  validateData(struct2, value);
37916
37916
  }
37917
37917
  }
37918
37918
  };
37919
- if (types6.EIP712Domain && domain2) {
37919
+ if (types7.EIP712Domain && domain2) {
37920
37920
  if (typeof domain2 !== "object")
37921
37921
  throw new InvalidDomainError({ domain: domain2 });
37922
- validateData(types6.EIP712Domain, domain2);
37922
+ validateData(types7.EIP712Domain, domain2);
37923
37923
  }
37924
37924
  if (primaryType !== "EIP712Domain") {
37925
- if (types6[primaryType])
37926
- validateData(types6[primaryType], message);
37925
+ if (types7[primaryType])
37926
+ validateData(types7[primaryType], message);
37927
37927
  else
37928
- throw new InvalidPrimaryTypeError({ primaryType, types: types6 });
37928
+ throw new InvalidPrimaryTypeError({ primaryType, types: types7 });
37929
37929
  }
37930
37930
  }
37931
37931
  function getTypesForEIP712Domain({ domain: domain2 }) {
@@ -39173,8 +39173,8 @@ var init_verifyMessage = __esm(() => {
39173
39173
 
39174
39174
  // node_modules/viem/_esm/actions/public/verifyTypedData.js
39175
39175
  async function verifyTypedData2(client, parameters) {
39176
- const { address, factory, factoryData, signature, message, primaryType, types: types6, domain: domain2, ...callRequest } = parameters;
39177
- const hash3 = hashTypedData({ message, primaryType, types: types6, domain: domain2 });
39176
+ const { address, factory, factoryData, signature, message, primaryType, types: types7, domain: domain2, ...callRequest } = parameters;
39177
+ const hash3 = hashTypedData({ message, primaryType, types: types7, domain: domain2 });
39178
39178
  return verifyHash(client, {
39179
39179
  address,
39180
39180
  factory,
@@ -44613,12 +44613,12 @@ var require_abi = __commonJS((exports2, module2) => {
44613
44613
  function isArray2(type) {
44614
44614
  return type.lastIndexOf("]") === type.length - 1;
44615
44615
  }
44616
- function rawEncode(types8, values2) {
44616
+ function rawEncode(types9, values2) {
44617
44617
  var output2 = [];
44618
44618
  var data = [];
44619
- var headLength = 32 * types8.length;
44620
- for (var i2 in types8) {
44621
- var type = elementaryName(types8[i2]);
44619
+ var headLength = 32 * types9.length;
44620
+ for (var i2 in types9) {
44621
+ var type = elementaryName(types9[i2]);
44622
44622
  var value = values2[i2];
44623
44623
  var cur = encodeSingle(type, value);
44624
44624
  if (isDynamic(type)) {
@@ -44631,14 +44631,14 @@ var require_abi = __commonJS((exports2, module2) => {
44631
44631
  }
44632
44632
  return Buffer.concat(output2.concat(data));
44633
44633
  }
44634
- function solidityPack(types8, values2) {
44635
- if (types8.length !== values2.length) {
44634
+ function solidityPack(types9, values2) {
44635
+ if (types9.length !== values2.length) {
44636
44636
  throw new Error("Number of types are not matching the values");
44637
44637
  }
44638
44638
  var size7, num2;
44639
44639
  var ret = [];
44640
- for (var i2 = 0;i2 < types8.length; i2++) {
44641
- var type = elementaryName(types8[i2]);
44640
+ for (var i2 = 0;i2 < types9.length; i2++) {
44641
+ var type = elementaryName(types9[i2]);
44642
44642
  var value = values2[i2];
44643
44643
  if (type === "bytes") {
44644
44644
  ret.push(value);
@@ -44683,8 +44683,8 @@ var require_abi = __commonJS((exports2, module2) => {
44683
44683
  }
44684
44684
  return Buffer.concat(ret);
44685
44685
  }
44686
- function soliditySHA3(types8, values2) {
44687
- return util.keccak(solidityPack(types8, values2));
44686
+ function soliditySHA3(types9, values2) {
44687
+ return util.keccak(solidityPack(types9, values2));
44688
44688
  }
44689
44689
  module2.exports = {
44690
44690
  rawEncode,
@@ -44721,13 +44721,13 @@ var require_eth_eip712_util = __commonJS((exports2, module2) => {
44721
44721
  required: ["types", "primaryType", "domain", "message"]
44722
44722
  };
44723
44723
  var TypedDataUtils = {
44724
- encodeData(primaryType, data, types8, useV4 = true) {
44724
+ encodeData(primaryType, data, types9, useV4 = true) {
44725
44725
  const encodedTypes = ["bytes32"];
44726
- const encodedValues = [this.hashType(primaryType, types8)];
44726
+ const encodedValues = [this.hashType(primaryType, types9)];
44727
44727
  if (useV4) {
44728
44728
  const encodeField2 = (name, type, value) => {
44729
- if (types8[type] !== undefined) {
44730
- return ["bytes32", value == null ? "0x0000000000000000000000000000000000000000000000000000000000000000" : util.keccak(this.encodeData(type, value, types8, useV4))];
44729
+ if (types9[type] !== undefined) {
44730
+ return ["bytes32", value == null ? "0x0000000000000000000000000000000000000000000000000000000000000000" : util.keccak(this.encodeData(type, value, types9, useV4))];
44731
44731
  }
44732
44732
  if (value === undefined)
44733
44733
  throw new Error(`missing value for field ${name} of type ${type}`);
@@ -44747,13 +44747,13 @@ var require_eth_eip712_util = __commonJS((exports2, module2) => {
44747
44747
  }
44748
44748
  return [type, value];
44749
44749
  };
44750
- for (const field of types8[primaryType]) {
44750
+ for (const field of types9[primaryType]) {
44751
44751
  const [type, value] = encodeField2(field.name, field.type, data[field.name]);
44752
44752
  encodedTypes.push(type);
44753
44753
  encodedValues.push(value);
44754
44754
  }
44755
44755
  } else {
44756
- for (const field of types8[primaryType]) {
44756
+ for (const field of types9[primaryType]) {
44757
44757
  let value = data[field.name];
44758
44758
  if (value !== undefined) {
44759
44759
  if (field.type === "bytes") {
@@ -44767,9 +44767,9 @@ var require_eth_eip712_util = __commonJS((exports2, module2) => {
44767
44767
  }
44768
44768
  value = util.keccak(value);
44769
44769
  encodedValues.push(value);
44770
- } else if (types8[field.type] !== undefined) {
44770
+ } else if (types9[field.type] !== undefined) {
44771
44771
  encodedTypes.push("bytes32");
44772
- value = util.keccak(this.encodeData(field.type, value, types8, useV4));
44772
+ value = util.keccak(this.encodeData(field.type, value, types9, useV4));
44773
44773
  encodedValues.push(value);
44774
44774
  } else if (field.type.lastIndexOf("]") === field.type.length - 1) {
44775
44775
  throw new Error("Arrays currently unimplemented in encodeData");
@@ -44782,37 +44782,37 @@ var require_eth_eip712_util = __commonJS((exports2, module2) => {
44782
44782
  }
44783
44783
  return abi2.rawEncode(encodedTypes, encodedValues);
44784
44784
  },
44785
- encodeType(primaryType, types8) {
44785
+ encodeType(primaryType, types9) {
44786
44786
  let result = "";
44787
- let deps = this.findTypeDependencies(primaryType, types8).filter((dep) => dep !== primaryType);
44787
+ let deps = this.findTypeDependencies(primaryType, types9).filter((dep) => dep !== primaryType);
44788
44788
  deps = [primaryType].concat(deps.sort());
44789
44789
  for (const type of deps) {
44790
- const children = types8[type];
44790
+ const children = types9[type];
44791
44791
  if (!children) {
44792
44792
  throw new Error("No type definition specified: " + type);
44793
44793
  }
44794
- result += type + "(" + types8[type].map(({ name, type: type2 }) => type2 + " " + name).join(",") + ")";
44794
+ result += type + "(" + types9[type].map(({ name, type: type2 }) => type2 + " " + name).join(",") + ")";
44795
44795
  }
44796
44796
  return result;
44797
44797
  },
44798
- findTypeDependencies(primaryType, types8, results = []) {
44798
+ findTypeDependencies(primaryType, types9, results = []) {
44799
44799
  primaryType = primaryType.match(/^\w*/)[0];
44800
- if (results.includes(primaryType) || types8[primaryType] === undefined) {
44800
+ if (results.includes(primaryType) || types9[primaryType] === undefined) {
44801
44801
  return results;
44802
44802
  }
44803
44803
  results.push(primaryType);
44804
- for (const field of types8[primaryType]) {
44805
- for (const dep of this.findTypeDependencies(field.type, types8, results)) {
44804
+ for (const field of types9[primaryType]) {
44805
+ for (const dep of this.findTypeDependencies(field.type, types9, results)) {
44806
44806
  !results.includes(dep) && results.push(dep);
44807
44807
  }
44808
44808
  }
44809
44809
  return results;
44810
44810
  },
44811
- hashStruct(primaryType, data, types8, useV4 = true) {
44812
- return util.keccak(this.encodeData(primaryType, data, types8, useV4));
44811
+ hashStruct(primaryType, data, types9, useV4 = true) {
44812
+ return util.keccak(this.encodeData(primaryType, data, types9, useV4));
44813
44813
  },
44814
- hashType(primaryType, types8) {
44815
- return util.keccak(this.encodeType(primaryType, types8));
44814
+ hashType(primaryType, types9) {
44815
+ return util.keccak(this.encodeType(primaryType, types9));
44816
44816
  },
44817
44817
  sanitizeData(data) {
44818
44818
  const sanitizedData = {};
@@ -44854,7 +44854,7 @@ var require_eth_eip712_util = __commonJS((exports2, module2) => {
44854
44854
  const data = typedData.map(function(e4) {
44855
44855
  return e4.type === "bytes" ? util.toBuffer(e4.value) : e4.value;
44856
44856
  });
44857
- const types8 = typedData.map(function(e4) {
44857
+ const types9 = typedData.map(function(e4) {
44858
44858
  return e4.type;
44859
44859
  });
44860
44860
  const schema = typedData.map(function(e4) {
@@ -44864,7 +44864,7 @@ var require_eth_eip712_util = __commonJS((exports2, module2) => {
44864
44864
  });
44865
44865
  return abi2.soliditySHA3(["bytes32", "bytes32"], [
44866
44866
  abi2.soliditySHA3(new Array(typedData.length).fill("string"), schema),
44867
- abi2.soliditySHA3(types8, data)
44867
+ abi2.soliditySHA3(types9, data)
44868
44868
  ]);
44869
44869
  }
44870
44870
  });
@@ -58481,7 +58481,7 @@ var require_stream_browser = __commonJS((exports2, module2) => {
58481
58481
  // node:util
58482
58482
  var exports_util = {};
58483
58483
  __export(exports_util, {
58484
- types: () => types8,
58484
+ types: () => types9,
58485
58485
  promisify: () => promisify,
58486
58486
  log: () => log,
58487
58487
  isUndefined: () => isUndefined2,
@@ -58820,7 +58820,7 @@ function callbackify(original) {
58820
58820
  }
58821
58821
  return Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original)), Object.defineProperties(callbackified, Object.getOwnPropertyDescriptors(original)), callbackified;
58822
58822
  }
58823
- var formatRegExp2, debuglog2, inspect5, types8 = () => {}, months, promisify, TextEncoder2, TextDecoder2, util_default;
58823
+ var formatRegExp2, debuglog2, inspect5, types9 = () => {}, months, promisify, TextEncoder2, TextDecoder2, util_default;
58824
58824
  var init_util3 = __esm(() => {
58825
58825
  formatRegExp2 = /%[sdj%]/g;
58826
58826
  debuglog2 = ((debugs2 = {}, debugEnvRegex = {}, debugEnv) => ((debugEnv = typeof process !== "undefined" && false) && (debugEnv = debugEnv.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase()), debugEnvRegex = new RegExp("^" + debugEnv + "$", "i"), (set2) => {
@@ -62168,12 +62168,12 @@ var require_abi2 = __commonJS((exports2, module2) => {
62168
62168
  function isArray3(type) {
62169
62169
  return type.lastIndexOf("]") === type.length - 1;
62170
62170
  }
62171
- function rawEncode(types9, values2) {
62171
+ function rawEncode(types10, values2) {
62172
62172
  var output2 = [];
62173
62173
  var data = [];
62174
- var headLength = 32 * types9.length;
62175
- for (var i5 in types9) {
62176
- var type = elementaryName(types9[i5]);
62174
+ var headLength = 32 * types10.length;
62175
+ for (var i5 in types10) {
62176
+ var type = elementaryName(types10[i5]);
62177
62177
  var value = values2[i5];
62178
62178
  var cur = encodeSingle(type, value);
62179
62179
  if (isDynamic(type)) {
@@ -62186,14 +62186,14 @@ var require_abi2 = __commonJS((exports2, module2) => {
62186
62186
  }
62187
62187
  return Buffer.concat(output2.concat(data));
62188
62188
  }
62189
- function solidityPack(types9, values2) {
62190
- if (types9.length !== values2.length) {
62189
+ function solidityPack(types10, values2) {
62190
+ if (types10.length !== values2.length) {
62191
62191
  throw new Error("Number of types are not matching the values");
62192
62192
  }
62193
62193
  var size7, num2;
62194
62194
  var ret = [];
62195
- for (var i5 = 0;i5 < types9.length; i5++) {
62196
- var type = elementaryName(types9[i5]);
62195
+ for (var i5 = 0;i5 < types10.length; i5++) {
62196
+ var type = elementaryName(types10[i5]);
62197
62197
  var value = values2[i5];
62198
62198
  if (type === "bytes") {
62199
62199
  ret.push(value);
@@ -62235,8 +62235,8 @@ var require_abi2 = __commonJS((exports2, module2) => {
62235
62235
  }
62236
62236
  return Buffer.concat(ret);
62237
62237
  }
62238
- function soliditySHA3(types9, values2) {
62239
- return util.keccak(solidityPack(types9, values2));
62238
+ function soliditySHA3(types10, values2) {
62239
+ return util.keccak(solidityPack(types10, values2));
62240
62240
  }
62241
62241
  module2.exports = {
62242
62242
  rawEncode,
@@ -62273,13 +62273,13 @@ var require_eth_eip712_util2 = __commonJS((exports2, module2) => {
62273
62273
  required: ["types", "primaryType", "domain", "message"]
62274
62274
  };
62275
62275
  var TypedDataUtils = {
62276
- encodeData(primaryType, data, types9, useV4 = true) {
62276
+ encodeData(primaryType, data, types10, useV4 = true) {
62277
62277
  const encodedTypes = ["bytes32"];
62278
- const encodedValues = [this.hashType(primaryType, types9)];
62278
+ const encodedValues = [this.hashType(primaryType, types10)];
62279
62279
  if (useV4) {
62280
62280
  const encodeField2 = (name, type, value) => {
62281
- if (types9[type] !== undefined) {
62282
- return ["bytes32", value == null ? "0x0000000000000000000000000000000000000000000000000000000000000000" : util.keccak(this.encodeData(type, value, types9, useV4))];
62281
+ if (types10[type] !== undefined) {
62282
+ return ["bytes32", value == null ? "0x0000000000000000000000000000000000000000000000000000000000000000" : util.keccak(this.encodeData(type, value, types10, useV4))];
62283
62283
  }
62284
62284
  if (value === undefined)
62285
62285
  throw new Error(`missing value for field ${name} of type ${type}`);
@@ -62299,13 +62299,13 @@ var require_eth_eip712_util2 = __commonJS((exports2, module2) => {
62299
62299
  }
62300
62300
  return [type, value];
62301
62301
  };
62302
- for (const field of types9[primaryType]) {
62302
+ for (const field of types10[primaryType]) {
62303
62303
  const [type, value] = encodeField2(field.name, field.type, data[field.name]);
62304
62304
  encodedTypes.push(type);
62305
62305
  encodedValues.push(value);
62306
62306
  }
62307
62307
  } else {
62308
- for (const field of types9[primaryType]) {
62308
+ for (const field of types10[primaryType]) {
62309
62309
  let value = data[field.name];
62310
62310
  if (value !== undefined) {
62311
62311
  if (field.type === "bytes") {
@@ -62319,9 +62319,9 @@ var require_eth_eip712_util2 = __commonJS((exports2, module2) => {
62319
62319
  }
62320
62320
  value = util.keccak(value);
62321
62321
  encodedValues.push(value);
62322
- } else if (types9[field.type] !== undefined) {
62322
+ } else if (types10[field.type] !== undefined) {
62323
62323
  encodedTypes.push("bytes32");
62324
- value = util.keccak(this.encodeData(field.type, value, types9, useV4));
62324
+ value = util.keccak(this.encodeData(field.type, value, types10, useV4));
62325
62325
  encodedValues.push(value);
62326
62326
  } else if (field.type.lastIndexOf("]") === field.type.length - 1) {
62327
62327
  throw new Error("Arrays currently unimplemented in encodeData");
@@ -62334,37 +62334,37 @@ var require_eth_eip712_util2 = __commonJS((exports2, module2) => {
62334
62334
  }
62335
62335
  return abi2.rawEncode(encodedTypes, encodedValues);
62336
62336
  },
62337
- encodeType(primaryType, types9) {
62337
+ encodeType(primaryType, types10) {
62338
62338
  let result = "";
62339
- let deps = this.findTypeDependencies(primaryType, types9).filter((dep) => dep !== primaryType);
62339
+ let deps = this.findTypeDependencies(primaryType, types10).filter((dep) => dep !== primaryType);
62340
62340
  deps = [primaryType].concat(deps.sort());
62341
62341
  for (const type of deps) {
62342
- const children = types9[type];
62342
+ const children = types10[type];
62343
62343
  if (!children) {
62344
62344
  throw new Error("No type definition specified: " + type);
62345
62345
  }
62346
- result += type + "(" + types9[type].map(({ name, type: type2 }) => type2 + " " + name).join(",") + ")";
62346
+ result += type + "(" + types10[type].map(({ name, type: type2 }) => type2 + " " + name).join(",") + ")";
62347
62347
  }
62348
62348
  return result;
62349
62349
  },
62350
- findTypeDependencies(primaryType, types9, results = []) {
62350
+ findTypeDependencies(primaryType, types10, results = []) {
62351
62351
  primaryType = primaryType.match(/^\w*/)[0];
62352
- if (results.includes(primaryType) || types9[primaryType] === undefined) {
62352
+ if (results.includes(primaryType) || types10[primaryType] === undefined) {
62353
62353
  return results;
62354
62354
  }
62355
62355
  results.push(primaryType);
62356
- for (const field of types9[primaryType]) {
62357
- for (const dep of this.findTypeDependencies(field.type, types9, results)) {
62356
+ for (const field of types10[primaryType]) {
62357
+ for (const dep of this.findTypeDependencies(field.type, types10, results)) {
62358
62358
  !results.includes(dep) && results.push(dep);
62359
62359
  }
62360
62360
  }
62361
62361
  return results;
62362
62362
  },
62363
- hashStruct(primaryType, data, types9, useV4 = true) {
62364
- return util.keccak(this.encodeData(primaryType, data, types9, useV4));
62363
+ hashStruct(primaryType, data, types10, useV4 = true) {
62364
+ return util.keccak(this.encodeData(primaryType, data, types10, useV4));
62365
62365
  },
62366
- hashType(primaryType, types9) {
62367
- return util.keccak(this.encodeType(primaryType, types9));
62366
+ hashType(primaryType, types10) {
62367
+ return util.keccak(this.encodeType(primaryType, types10));
62368
62368
  },
62369
62369
  sanitizeData(data) {
62370
62370
  const sanitizedData = {};
@@ -62406,7 +62406,7 @@ var require_eth_eip712_util2 = __commonJS((exports2, module2) => {
62406
62406
  const data = typedData.map(function(e6) {
62407
62407
  return e6.type === "bytes" ? util.toBuffer(e6.value) : e6.value;
62408
62408
  });
62409
- const types9 = typedData.map(function(e6) {
62409
+ const types10 = typedData.map(function(e6) {
62410
62410
  return e6.type;
62411
62411
  });
62412
62412
  const schema = typedData.map(function(e6) {
@@ -62416,7 +62416,7 @@ var require_eth_eip712_util2 = __commonJS((exports2, module2) => {
62416
62416
  });
62417
62417
  return abi2.soliditySHA3(["bytes32", "bytes32"], [
62418
62418
  abi2.soliditySHA3(new Array(typedData.length).fill("string"), schema),
62419
- abi2.soliditySHA3(types9, data)
62419
+ abi2.soliditySHA3(types10, data)
62420
62420
  ]);
62421
62421
  }
62422
62422
  });
@@ -70844,11 +70844,11 @@ var require_eventemitter2 = __commonJS((exports2, module2) => {
70844
70844
  }
70845
70845
  return value;
70846
70846
  }
70847
- function makeTypeReducer(types9) {
70848
- var message = "value must be type of " + types9.join("|");
70849
- var len2 = types9.length;
70850
- var firstType = types9[0];
70851
- var secondType = types9[1];
70847
+ function makeTypeReducer(types10) {
70848
+ var message = "value must be type of " + types10.join("|");
70849
+ var len2 = types10.length;
70850
+ var firstType = types10[0];
70851
+ var secondType = types10[1];
70852
70852
  if (len2 === 1) {
70853
70853
  return function(v5, reject) {
70854
70854
  if (typeof v5 === firstType) {
@@ -70869,7 +70869,7 @@ var require_eventemitter2 = __commonJS((exports2, module2) => {
70869
70869
  var kind = typeof v5;
70870
70870
  var i5 = len2;
70871
70871
  while (i5-- > 0) {
70872
- if (kind === types9[i5])
70872
+ if (kind === types10[i5])
70873
70873
  return v5;
70874
70874
  }
70875
70875
  reject(message);
@@ -91763,18 +91763,18 @@ var require_getAbiItem = __commonJS((exports2) => {
91763
91763
  const targetParameter = targetParameters[parameterIndex];
91764
91764
  if (sourceParameter.type === "tuple" && targetParameter.type === "tuple" && "components" in sourceParameter && "components" in targetParameter)
91765
91765
  return getAmbiguousTypes3(sourceParameter.components, targetParameter.components, args[parameterIndex]);
91766
- const types10 = [sourceParameter.type, targetParameter.type];
91766
+ const types11 = [sourceParameter.type, targetParameter.type];
91767
91767
  const ambiguous = (() => {
91768
- if (types10.includes("address") && types10.includes("bytes20"))
91768
+ if (types11.includes("address") && types11.includes("bytes20"))
91769
91769
  return true;
91770
- if (types10.includes("address") && types10.includes("string"))
91770
+ if (types11.includes("address") && types11.includes("string"))
91771
91771
  return (0, isAddress_js_1.isAddress)(args[parameterIndex], { strict: false });
91772
- if (types10.includes("address") && types10.includes("bytes"))
91772
+ if (types11.includes("address") && types11.includes("bytes"))
91773
91773
  return (0, isAddress_js_1.isAddress)(args[parameterIndex], { strict: false });
91774
91774
  return false;
91775
91775
  })();
91776
91776
  if (ambiguous)
91777
- return types10;
91777
+ return types11;
91778
91778
  }
91779
91779
  return;
91780
91780
  }
@@ -106136,8 +106136,8 @@ var require_typedData = __commonJS((exports2) => {
106136
106136
  exports2.InvalidDomainError = InvalidDomainError2;
106137
106137
 
106138
106138
  class InvalidPrimaryTypeError2 extends base_js_1.BaseError {
106139
- constructor({ primaryType, types: types10 }) {
106140
- super(`Invalid primary type \`${primaryType}\` must be one of \`${JSON.stringify(Object.keys(types10))}\`.`, {
106139
+ constructor({ primaryType, types: types11 }) {
106140
+ super(`Invalid primary type \`${primaryType}\` must be one of \`${JSON.stringify(Object.keys(types11))}\`.`, {
106141
106141
  docsPath: "/api/glossary/Errors#typeddatainvalidprimarytypeerror",
106142
106142
  metaMessages: ["Check that the primary type is a key in `types`."]
106143
106143
  });
@@ -106170,7 +106170,7 @@ var require_hashTypedData = __commonJS((exports2) => {
106170
106170
  var typedData_js_1 = require_typedData2();
106171
106171
  function hashTypedData2(parameters) {
106172
106172
  const { domain: domain2 = {}, message, primaryType } = parameters;
106173
- const types10 = {
106173
+ const types11 = {
106174
106174
  EIP712Domain: (0, typedData_js_1.getTypesForEIP712Domain)({ domain: domain2 }),
106175
106175
  ...parameters.types
106176
106176
  };
@@ -106178,43 +106178,43 @@ var require_hashTypedData = __commonJS((exports2) => {
106178
106178
  domain: domain2,
106179
106179
  message,
106180
106180
  primaryType,
106181
- types: types10
106181
+ types: types11
106182
106182
  });
106183
106183
  const parts2 = ["0x1901"];
106184
106184
  if (domain2)
106185
106185
  parts2.push(hashDomain2({
106186
106186
  domain: domain2,
106187
- types: types10
106187
+ types: types11
106188
106188
  }));
106189
106189
  if (primaryType !== "EIP712Domain")
106190
106190
  parts2.push(hashStruct2({
106191
106191
  data: message,
106192
106192
  primaryType,
106193
- types: types10
106193
+ types: types11
106194
106194
  }));
106195
106195
  return (0, keccak256_js_1.keccak256)((0, concat_js_1.concat)(parts2));
106196
106196
  }
106197
- function hashDomain2({ domain: domain2, types: types10 }) {
106197
+ function hashDomain2({ domain: domain2, types: types11 }) {
106198
106198
  return hashStruct2({
106199
106199
  data: domain2,
106200
106200
  primaryType: "EIP712Domain",
106201
- types: types10
106201
+ types: types11
106202
106202
  });
106203
106203
  }
106204
- function hashStruct2({ data, primaryType, types: types10 }) {
106204
+ function hashStruct2({ data, primaryType, types: types11 }) {
106205
106205
  const encoded = encodeData3({
106206
106206
  data,
106207
106207
  primaryType,
106208
- types: types10
106208
+ types: types11
106209
106209
  });
106210
106210
  return (0, keccak256_js_1.keccak256)(encoded);
106211
106211
  }
106212
- function encodeData3({ data, primaryType, types: types10 }) {
106212
+ function encodeData3({ data, primaryType, types: types11 }) {
106213
106213
  const encodedTypes = [{ type: "bytes32" }];
106214
- const encodedValues = [hashType2({ primaryType, types: types10 })];
106215
- for (const field of types10[primaryType]) {
106214
+ const encodedValues = [hashType2({ primaryType, types: types11 })];
106215
+ for (const field of types11[primaryType]) {
106216
106216
  const [type, value2] = encodeField2({
106217
- types: types10,
106217
+ types: types11,
106218
106218
  name: field.name,
106219
106219
  type: field.type,
106220
106220
  value: data[field.name]
@@ -106224,37 +106224,37 @@ var require_hashTypedData = __commonJS((exports2) => {
106224
106224
  }
106225
106225
  return (0, encodeAbiParameters_js_1.encodeAbiParameters)(encodedTypes, encodedValues);
106226
106226
  }
106227
- function hashType2({ primaryType, types: types10 }) {
106228
- const encodedHashType = (0, toHex_js_1.toHex)(encodeType3({ primaryType, types: types10 }));
106227
+ function hashType2({ primaryType, types: types11 }) {
106228
+ const encodedHashType = (0, toHex_js_1.toHex)(encodeType3({ primaryType, types: types11 }));
106229
106229
  return (0, keccak256_js_1.keccak256)(encodedHashType);
106230
106230
  }
106231
- function encodeType3({ primaryType, types: types10 }) {
106231
+ function encodeType3({ primaryType, types: types11 }) {
106232
106232
  let result = "";
106233
- const unsortedDeps = findTypeDependencies2({ primaryType, types: types10 });
106233
+ const unsortedDeps = findTypeDependencies2({ primaryType, types: types11 });
106234
106234
  unsortedDeps.delete(primaryType);
106235
106235
  const deps = [primaryType, ...Array.from(unsortedDeps).sort()];
106236
106236
  for (const type of deps) {
106237
- result += `${type}(${types10[type].map(({ name, type: t7 }) => `${t7} ${name}`).join(",")})`;
106237
+ result += `${type}(${types11[type].map(({ name, type: t7 }) => `${t7} ${name}`).join(",")})`;
106238
106238
  }
106239
106239
  return result;
106240
106240
  }
106241
- function findTypeDependencies2({ primaryType: primaryType_, types: types10 }, results = new Set) {
106241
+ function findTypeDependencies2({ primaryType: primaryType_, types: types11 }, results = new Set) {
106242
106242
  const match = primaryType_.match(/^\w*/u);
106243
106243
  const primaryType = match?.[0];
106244
- if (results.has(primaryType) || types10[primaryType] === undefined) {
106244
+ if (results.has(primaryType) || types11[primaryType] === undefined) {
106245
106245
  return results;
106246
106246
  }
106247
106247
  results.add(primaryType);
106248
- for (const field of types10[primaryType]) {
106249
- findTypeDependencies2({ primaryType: field.type, types: types10 }, results);
106248
+ for (const field of types11[primaryType]) {
106249
+ findTypeDependencies2({ primaryType: field.type, types: types11 }, results);
106250
106250
  }
106251
106251
  return results;
106252
106252
  }
106253
- function encodeField2({ types: types10, name, type, value: value2 }) {
106254
- if (types10[type] !== undefined) {
106253
+ function encodeField2({ types: types11, name, type, value: value2 }) {
106254
+ if (types11[type] !== undefined) {
106255
106255
  return [
106256
106256
  { type: "bytes32" },
106257
- (0, keccak256_js_1.keccak256)(encodeData3({ data: value2, primaryType: type, types: types10 }))
106257
+ (0, keccak256_js_1.keccak256)(encodeData3({ data: value2, primaryType: type, types: types11 }))
106258
106258
  ];
106259
106259
  }
106260
106260
  if (type === "bytes") {
@@ -106269,7 +106269,7 @@ var require_hashTypedData = __commonJS((exports2) => {
106269
106269
  const typeValuePairs = value2.map((item) => encodeField2({
106270
106270
  name,
106271
106271
  type: parsedType,
106272
- types: types10,
106272
+ types: types11,
106273
106273
  value: item
106274
106274
  }));
106275
106275
  return [
@@ -106298,7 +106298,7 @@ var require_typedData2 = __commonJS((exports2) => {
106298
106298
  var hashTypedData_js_1 = require_hashTypedData();
106299
106299
  var stringify_js_1 = require_stringify();
106300
106300
  function serializeTypedData(parameters) {
106301
- const { domain: domain_, message: message_, primaryType, types: types10 } = parameters;
106301
+ const { domain: domain_, message: message_, primaryType, types: types11 } = parameters;
106302
106302
  const normalizeData = (struct, data_) => {
106303
106303
  const data = { ...data_ };
106304
106304
  for (const param of struct) {
@@ -106309,21 +106309,21 @@ var require_typedData2 = __commonJS((exports2) => {
106309
106309
  return data;
106310
106310
  };
106311
106311
  const domain2 = (() => {
106312
- if (!types10.EIP712Domain)
106312
+ if (!types11.EIP712Domain)
106313
106313
  return {};
106314
106314
  if (!domain_)
106315
106315
  return {};
106316
- return normalizeData(types10.EIP712Domain, domain_);
106316
+ return normalizeData(types11.EIP712Domain, domain_);
106317
106317
  })();
106318
106318
  const message = (() => {
106319
106319
  if (primaryType === "EIP712Domain")
106320
106320
  return;
106321
- return normalizeData(types10[primaryType], message_);
106321
+ return normalizeData(types11[primaryType], message_);
106322
106322
  })();
106323
- return (0, stringify_js_1.stringify)({ domain: domain2, message, primaryType, types: types10 });
106323
+ return (0, stringify_js_1.stringify)({ domain: domain2, message, primaryType, types: types11 });
106324
106324
  }
106325
106325
  function validateTypedData2(parameters) {
106326
- const { domain: domain2, message, primaryType, types: types10 } = parameters;
106326
+ const { domain: domain2, message, primaryType, types: types11 } = parameters;
106327
106327
  const validateData = (struct, data) => {
106328
106328
  for (const param of struct) {
106329
106329
  const { name, type } = param;
@@ -106347,23 +106347,23 @@ var require_typedData2 = __commonJS((exports2) => {
106347
106347
  givenSize: (0, size_js_1.size)(value2)
106348
106348
  });
106349
106349
  }
106350
- const struct2 = types10[type];
106350
+ const struct2 = types11[type];
106351
106351
  if (struct2) {
106352
106352
  validateReference2(type);
106353
106353
  validateData(struct2, value2);
106354
106354
  }
106355
106355
  }
106356
106356
  };
106357
- if (types10.EIP712Domain && domain2) {
106357
+ if (types11.EIP712Domain && domain2) {
106358
106358
  if (typeof domain2 !== "object")
106359
106359
  throw new typedData_js_1.InvalidDomainError({ domain: domain2 });
106360
- validateData(types10.EIP712Domain, domain2);
106360
+ validateData(types11.EIP712Domain, domain2);
106361
106361
  }
106362
106362
  if (primaryType !== "EIP712Domain") {
106363
- if (types10[primaryType])
106364
- validateData(types10[primaryType], message);
106363
+ if (types11[primaryType])
106364
+ validateData(types11[primaryType], message);
106365
106365
  else
106366
- throw new typedData_js_1.InvalidPrimaryTypeError({ primaryType, types: types10 });
106366
+ throw new typedData_js_1.InvalidPrimaryTypeError({ primaryType, types: types11 });
106367
106367
  }
106368
106368
  }
106369
106369
  function getTypesForEIP712Domain2({ domain: domain2 }) {
@@ -106406,15 +106406,15 @@ var require_encodePacked = __commonJS((exports2) => {
106406
106406
  var pad_js_1 = require_pad();
106407
106407
  var toHex_js_1 = require_toHex();
106408
106408
  var regex_js_1 = require_regex2();
106409
- function encodePacked2(types10, values2) {
106410
- if (types10.length !== values2.length)
106409
+ function encodePacked2(types11, values2) {
106410
+ if (types11.length !== values2.length)
106411
106411
  throw new abi_js_1.AbiEncodingLengthMismatchError({
106412
- expectedLength: types10.length,
106412
+ expectedLength: types11.length,
106413
106413
  givenLength: values2.length
106414
106414
  });
106415
106415
  const data = [];
106416
- for (let i6 = 0;i6 < types10.length; i6++) {
106417
- const type = types10[i6];
106416
+ for (let i6 = 0;i6 < types11.length; i6++) {
106417
+ const type = types11[i6];
106418
106418
  const value2 = values2[i6];
106419
106419
  data.push(encode7(type, value2));
106420
106420
  }
@@ -107357,13 +107357,13 @@ var require_recoverTypedDataAddress = __commonJS((exports2) => {
107357
107357
  var hashTypedData_js_1 = require_hashTypedData();
107358
107358
  var recoverAddress_js_1 = require_recoverAddress();
107359
107359
  async function recoverTypedDataAddress(parameters) {
107360
- const { domain: domain2, message, primaryType, signature, types: types10 } = parameters;
107360
+ const { domain: domain2, message, primaryType, signature, types: types11 } = parameters;
107361
107361
  return (0, recoverAddress_js_1.recoverAddress)({
107362
107362
  hash: (0, hashTypedData_js_1.hashTypedData)({
107363
107363
  domain: domain2,
107364
107364
  message,
107365
107365
  primaryType,
107366
- types: types10
107366
+ types: types11
107367
107367
  }),
107368
107368
  signature
107369
107369
  });
@@ -107402,13 +107402,13 @@ var require_verifyTypedData = __commonJS((exports2) => {
107402
107402
  var isAddressEqual_js_1 = require_isAddressEqual();
107403
107403
  var recoverTypedDataAddress_js_1 = require_recoverTypedDataAddress();
107404
107404
  async function verifyTypedData3(parameters) {
107405
- const { address, domain: domain2, message, primaryType, signature, types: types10 } = parameters;
107405
+ const { address, domain: domain2, message, primaryType, signature, types: types11 } = parameters;
107406
107406
  return (0, isAddressEqual_js_1.isAddressEqual)((0, getAddress_js_1.getAddress)(address), await (0, recoverTypedDataAddress_js_1.recoverTypedDataAddress)({
107407
107407
  domain: domain2,
107408
107408
  message,
107409
107409
  primaryType,
107410
107410
  signature,
107411
- types: types10
107411
+ types: types11
107412
107412
  }));
107413
107413
  }
107414
107414
  });
@@ -110625,22 +110625,22 @@ var require_abiItem2 = __commonJS((exports2) => {
110625
110625
  const targetParameter = targetParameters[parameterIndex];
110626
110626
  if (sourceParameter.type === "tuple" && targetParameter.type === "tuple" && "components" in sourceParameter && "components" in targetParameter)
110627
110627
  return getAmbiguousTypes3(sourceParameter.components, targetParameter.components, args[parameterIndex]);
110628
- const types10 = [sourceParameter.type, targetParameter.type];
110628
+ const types11 = [sourceParameter.type, targetParameter.type];
110629
110629
  const ambiguous = (() => {
110630
- if (types10.includes("address") && types10.includes("bytes20"))
110630
+ if (types11.includes("address") && types11.includes("bytes20"))
110631
110631
  return true;
110632
- if (types10.includes("address") && types10.includes("string"))
110632
+ if (types11.includes("address") && types11.includes("string"))
110633
110633
  return Address.validate(args[parameterIndex], {
110634
110634
  strict: false
110635
110635
  });
110636
- if (types10.includes("address") && types10.includes("bytes"))
110636
+ if (types11.includes("address") && types11.includes("bytes"))
110637
110637
  return Address.validate(args[parameterIndex], {
110638
110638
  strict: false
110639
110639
  });
110640
110640
  return false;
110641
110641
  })();
110642
110642
  if (ambiguous)
110643
- return types10;
110643
+ return types11;
110644
110644
  }
110645
110645
  return;
110646
110646
  }
@@ -111620,15 +111620,15 @@ var require_AbiParameters = __commonJS((exports2) => {
111620
111620
  return "0x";
111621
111621
  return data;
111622
111622
  }
111623
- function encodePacked2(types10, values2) {
111624
- if (types10.length !== values2.length)
111623
+ function encodePacked2(types11, values2) {
111624
+ if (types11.length !== values2.length)
111625
111625
  throw new LengthMismatchError2({
111626
- expectedLength: types10.length,
111626
+ expectedLength: types11.length,
111627
111627
  givenLength: values2.length
111628
111628
  });
111629
111629
  const data = [];
111630
- for (let i6 = 0;i6 < types10.length; i6++) {
111631
- const type = types10[i6];
111630
+ for (let i6 = 0;i6 < types11.length; i6++) {
111631
+ const type = types11[i6];
111632
111632
  const value2 = values2[i6];
111633
111633
  data.push(encodePacked2.encode(type, value2));
111634
111634
  }
@@ -112242,8 +112242,8 @@ var require_verifyTypedData2 = __commonJS((exports2) => {
112242
112242
  var hashTypedData_js_1 = require_hashTypedData();
112243
112243
  var verifyHash_js_1 = require_verifyHash2();
112244
112244
  async function verifyTypedData3(client, parameters) {
112245
- const { address, factory, factoryData, signature, message, primaryType, types: types10, domain: domain2, ...callRequest } = parameters;
112246
- const hash3 = (0, hashTypedData_js_1.hashTypedData)({ message, primaryType, types: types10, domain: domain2 });
112245
+ const { address, factory, factoryData, signature, message, primaryType, types: types11, domain: domain2, ...callRequest } = parameters;
112246
+ const hash3 = (0, hashTypedData_js_1.hashTypedData)({ message, primaryType, types: types11, domain: domain2 });
112247
112247
  return (0, verifyHash_js_1.verifyHash)(client, {
112248
112248
  address,
112249
112249
  factory,
@@ -113905,14 +113905,14 @@ var require_signTypedData = __commonJS((exports2) => {
113905
113905
  docsPath: "/docs/actions/wallet/signTypedData"
113906
113906
  });
113907
113907
  const account = (0, parseAccount_js_1.parseAccount)(account_);
113908
- const types10 = {
113908
+ const types11 = {
113909
113909
  EIP712Domain: (0, typedData_js_1.getTypesForEIP712Domain)({ domain: domain2 }),
113910
113910
  ...parameters.types
113911
113911
  };
113912
- (0, typedData_js_1.validateTypedData)({ domain: domain2, message, primaryType, types: types10 });
113912
+ (0, typedData_js_1.validateTypedData)({ domain: domain2, message, primaryType, types: types11 });
113913
113913
  if (account.signTypedData)
113914
- return account.signTypedData({ domain: domain2, message, primaryType, types: types10 });
113915
- const typedData = (0, typedData_js_1.serializeTypedData)({ domain: domain2, message, primaryType, types: types10 });
113914
+ return account.signTypedData({ domain: domain2, message, primaryType, types: types11 });
113915
+ const typedData = (0, typedData_js_1.serializeTypedData)({ domain: domain2, message, primaryType, types: types11 });
113916
113916
  return client.request({
113917
113917
  method: "eth_signTypedData_v4",
113918
113918
  params: [account.address, typedData]
@@ -136423,7 +136423,7 @@ var init_OptionsController = __esm(() => {
136423
136423
  });
136424
136424
 
136425
136425
  // node_modules/@reown/appkit-controllers/dist/esm/src/controllers/TelemetryController.js
136426
- var DEFAULT_STATE, api6, MAX_ERRORS_PER_MINUTE = 5, ONE_MINUTE_MS, state2, TelemetryController;
136426
+ var DEFAULT_STATE, api7, MAX_ERRORS_PER_MINUTE = 5, ONE_MINUTE_MS, state2, TelemetryController;
136427
136427
  var init_TelemetryController = __esm(() => {
136428
136428
  init_vanilla();
136429
136429
  init_utils12();
@@ -136433,7 +136433,7 @@ var init_TelemetryController = __esm(() => {
136433
136433
  enabled: true,
136434
136434
  events: []
136435
136435
  });
136436
- api6 = new FetchUtil({ baseUrl: CoreHelperUtil.getAnalyticsUrl(), clientId: null });
136436
+ api7 = new FetchUtil({ baseUrl: CoreHelperUtil.getAnalyticsUrl(), clientId: null });
136437
136437
  ONE_MINUTE_MS = 60 * 1000;
136438
136438
  state2 = proxy({
136439
136439
  ...DEFAULT_STATE
@@ -136471,7 +136471,7 @@ var init_TelemetryController = __esm(() => {
136471
136471
  return;
136472
136472
  }
136473
136473
  const { projectId, sdkType, sdkVersion } = OptionsController.state;
136474
- await api6.post({
136474
+ await api7.post({
136475
136475
  path: "/e",
136476
136476
  params: {
136477
136477
  projectId,
@@ -136784,7 +136784,7 @@ var init_AlertController = __esm(() => {
136784
136784
  });
136785
136785
 
136786
136786
  // node_modules/@reown/appkit-controllers/dist/esm/src/controllers/EventsController.js
136787
- var baseUrl2, api7, excluded, state6, EventsController;
136787
+ var baseUrl2, api8, excluded, state6, EventsController;
136788
136788
  var init_EventsController = __esm(() => {
136789
136789
  init_vanilla();
136790
136790
  init_esm11();
@@ -136793,7 +136793,7 @@ var init_EventsController = __esm(() => {
136793
136793
  init_AlertController();
136794
136794
  init_OptionsController();
136795
136795
  baseUrl2 = CoreHelperUtil.getAnalyticsUrl();
136796
- api7 = new FetchUtil({ baseUrl: baseUrl2, clientId: null });
136796
+ api8 = new FetchUtil({ baseUrl: baseUrl2, clientId: null });
136797
136797
  excluded = ["MODAL_CREATED"];
136798
136798
  state6 = proxy({
136799
136799
  timestamp: Date.now(),
@@ -136822,7 +136822,7 @@ var init_EventsController = __esm(() => {
136822
136822
  if (excluded.includes(payload.data.event) || typeof window === "undefined") {
136823
136823
  return;
136824
136824
  }
136825
- await api7.post({
136825
+ await api8.post({
136826
136826
  path: "/e",
136827
136827
  params: EventsController.getSdkProperties(),
136828
136828
  body: {
@@ -136856,7 +136856,7 @@ var init_EventsController = __esm(() => {
136856
136856
  });
136857
136857
 
136858
136858
  // node_modules/@reown/appkit-controllers/dist/esm/src/controllers/ApiController.js
136859
- var baseUrl3, api8, entries = 40, recommendedEntries = 4, imageCountToFetch = 20, state7, ApiController;
136859
+ var baseUrl3, api9, entries = 40, recommendedEntries = 4, imageCountToFetch = 20, state7, ApiController;
136860
136860
  var init_ApiController = __esm(() => {
136861
136861
  init_vanilla();
136862
136862
  init_utils12();
@@ -136870,7 +136870,7 @@ var init_ApiController = __esm(() => {
136870
136870
  init_EventsController();
136871
136871
  init_OptionsController();
136872
136872
  baseUrl3 = CoreHelperUtil.getApiUrl();
136873
- api8 = new FetchUtil({
136873
+ api9 = new FetchUtil({
136874
136874
  baseUrl: baseUrl3,
136875
136875
  clientId: null
136876
136876
  });
@@ -136909,28 +136909,28 @@ var init_ApiController = __esm(() => {
136909
136909
  return wallets;
136910
136910
  },
136911
136911
  async _fetchWalletImage(imageId) {
136912
- const imageUrl = `${api8.baseUrl}/getWalletImage/${imageId}`;
136913
- const blob = await api8.getBlob({ path: imageUrl, params: ApiController._getSdkProperties() });
136912
+ const imageUrl = `${api9.baseUrl}/getWalletImage/${imageId}`;
136913
+ const blob = await api9.getBlob({ path: imageUrl, params: ApiController._getSdkProperties() });
136914
136914
  AssetController.setWalletImage(imageId, URL.createObjectURL(blob));
136915
136915
  },
136916
136916
  async _fetchNetworkImage(imageId) {
136917
- const imageUrl = `${api8.baseUrl}/public/getAssetImage/${imageId}`;
136918
- const blob = await api8.getBlob({ path: imageUrl, params: ApiController._getSdkProperties() });
136917
+ const imageUrl = `${api9.baseUrl}/public/getAssetImage/${imageId}`;
136918
+ const blob = await api9.getBlob({ path: imageUrl, params: ApiController._getSdkProperties() });
136919
136919
  AssetController.setNetworkImage(imageId, URL.createObjectURL(blob));
136920
136920
  },
136921
136921
  async _fetchConnectorImage(imageId) {
136922
- const imageUrl = `${api8.baseUrl}/public/getAssetImage/${imageId}`;
136923
- const blob = await api8.getBlob({ path: imageUrl, params: ApiController._getSdkProperties() });
136922
+ const imageUrl = `${api9.baseUrl}/public/getAssetImage/${imageId}`;
136923
+ const blob = await api9.getBlob({ path: imageUrl, params: ApiController._getSdkProperties() });
136924
136924
  AssetController.setConnectorImage(imageId, URL.createObjectURL(blob));
136925
136925
  },
136926
136926
  async _fetchCurrencyImage(countryCode) {
136927
- const imageUrl = `${api8.baseUrl}/public/getCurrencyImage/${countryCode}`;
136928
- const blob = await api8.getBlob({ path: imageUrl, params: ApiController._getSdkProperties() });
136927
+ const imageUrl = `${api9.baseUrl}/public/getCurrencyImage/${countryCode}`;
136928
+ const blob = await api9.getBlob({ path: imageUrl, params: ApiController._getSdkProperties() });
136929
136929
  AssetController.setCurrencyImage(countryCode, URL.createObjectURL(blob));
136930
136930
  },
136931
136931
  async _fetchTokenImage(symbol) {
136932
- const imageUrl = `${api8.baseUrl}/public/getTokenImage/${symbol}`;
136933
- const blob = await api8.getBlob({ path: imageUrl, params: ApiController._getSdkProperties() });
136932
+ const imageUrl = `${api9.baseUrl}/public/getTokenImage/${symbol}`;
136933
+ const blob = await api9.getBlob({ path: imageUrl, params: ApiController._getSdkProperties() });
136934
136934
  AssetController.setTokenImage(symbol, URL.createObjectURL(blob));
136935
136935
  },
136936
136936
  _filterWalletsByPlatform(wallets) {
@@ -136947,7 +136947,7 @@ var init_ApiController = __esm(() => {
136947
136947
  return filteredWallets;
136948
136948
  },
136949
136949
  async fetchProjectConfig() {
136950
- const response = await api8.get({
136950
+ const response = await api9.get({
136951
136951
  path: "/appkit/v1/config",
136952
136952
  params: ApiController._getSdkProperties()
136953
136953
  });
@@ -136955,7 +136955,7 @@ var init_ApiController = __esm(() => {
136955
136955
  },
136956
136956
  async fetchAllowedOrigins() {
136957
136957
  try {
136958
- const { allowedOrigins } = await api8.get({
136958
+ const { allowedOrigins } = await api9.get({
136959
136959
  path: "/projects/v1/origins",
136960
136960
  params: ApiController._getSdkProperties()
136961
136961
  });
@@ -136988,7 +136988,7 @@ var init_ApiController = __esm(() => {
136988
136988
  if (sdkProperties.sv.startsWith("html-core-")) {
136989
136989
  exclude2.push(...Object.values(CUSTOM_DEEPLINK_WALLETS).map((w8) => w8.id));
136990
136990
  }
136991
- const wallets = await api8.get({
136991
+ const wallets = await api9.get({
136992
136992
  path: "/getWallets",
136993
136993
  params: {
136994
136994
  ...ApiController._getSdkProperties(),
@@ -137131,7 +137131,7 @@ var init_ApiController = __esm(() => {
137131
137131
  },
137132
137132
  async fetchAnalyticsConfig() {
137133
137133
  try {
137134
- const { isAnalyticsEnabled } = await api8.get({
137134
+ const { isAnalyticsEnabled } = await api9.get({
137135
137135
  path: "/getAnalyticsConfig",
137136
137136
  params: ApiController._getSdkProperties()
137137
137137
  });
@@ -256014,7 +256014,7 @@ registerItem({
256014
256014
  });
256015
256015
  registerHotkey({
256016
256016
  name: "flipCard",
256017
- hotkey: { key: { button: "KeyF" }, label: { windows: "F", mac: "F" } },
256017
+ hotkey: { key: { button: "KeyF", shift: true }, label: { windows: "F", mac: "F" } },
256018
256018
  boardMode: "edit",
256019
256019
  hotkeyConfig: {
256020
256020
  allItemsType: ["Card"],
@@ -256280,7 +256280,7 @@ registerHotkey({
256280
256280
  });
256281
256281
  registerHotkey({
256282
256282
  name: "flipDeck",
256283
- hotkey: { key: { button: "KeyF" }, label: { windows: "F", mac: "F" } },
256283
+ hotkey: { key: { button: "KeyF", shift: true }, label: { windows: "F", mac: "F" } },
256284
256284
  boardMode: "edit",
256285
256285
  hotkeyConfig: {
256286
256286
  allItemsType: ["Deck"],
@@ -288418,90 +288418,217 @@ function removeAvatar() {
288418
288418
  // src/shared/api/boards/index.ts
288419
288419
  var exports_boards = {};
288420
288420
  __export(exports_boards, {
288421
- unvisitBoard: () => unvisitBoard,
288422
- renameBoardUnauthed: () => renameBoardUnauthed,
288423
- renameBoard: () => renameBoard,
288424
- publishSnapshot: () => publishSnapshot,
288425
- getBoards: () => getBoards,
288426
- getBoardDetails: () => getBoardDetails,
288427
- deleteBoardUnauthed: () => deleteBoardUnauthed,
288421
+ manageAccess: () => manageAccess,
288422
+ grantAccess: () => grantAccess,
288423
+ getGrantedUsers: () => getGrantedUsers,
288424
+ getBoard: () => getBoard,
288425
+ getAccessKeys: () => getAccessKeys,
288426
+ getAccessKey: () => getAccessKey,
288427
+ editBoard: () => editBoard,
288428
288428
  deleteBoard: () => deleteBoard,
288429
+ deleteAccessKey: () => deleteAccessKey,
288429
288430
  createBoard: () => createBoard,
288430
- claim: () => claim
288431
+ createAccessKey: () => createAccessKey,
288432
+ claimBoards: () => claimBoards,
288433
+ UserAccessType: () => UserAccessType,
288434
+ DirectAccessType: () => DirectAccessType,
288435
+ AccessKeyType: () => AccessKeyType,
288436
+ AUTHOR_KEY_HEADER: () => AUTHOR_KEY_HEADER
288431
288437
  });
288432
288438
 
288439
+ // src/shared/api/boards/types.ts
288440
+ var AUTHOR_KEY_HEADER = "x-author-key";
288441
+ var DirectAccessType;
288442
+ ((DirectAccessType2) => {
288443
+ DirectAccessType2["EDIT"] = "edit";
288444
+ DirectAccessType2["VIEW"] = "view";
288445
+ })(DirectAccessType ||= {});
288446
+ var AccessKeyType;
288447
+ ((AccessKeyType2) => {
288448
+ AccessKeyType2["EDIT"] = "edit";
288449
+ AccessKeyType2["VIEW"] = "view";
288450
+ })(AccessKeyType ||= {});
288451
+ var UserAccessType;
288452
+ ((UserAccessType2) => {
288453
+ UserAccessType2["View"] = "view";
288454
+ UserAccessType2["Edit"] = "edit";
288455
+ UserAccessType2["NoAccess"] = "noAccess";
288456
+ })(UserAccessType ||= {});
288457
+
288433
288458
  // src/shared/api/boards/api.ts
288434
- function createBoard(title, isPublic) {
288435
- return api.post("/boards", {
288436
- title,
288437
- isPublic
288438
- }, {
288439
- redirect: "follow",
288440
- referrerPolicy: "no-referrer",
288441
- mode: "cors",
288442
- cache: "no-cache"
288443
- });
288459
+ function createBoard(body) {
288460
+ return api.post("/boards", body);
288444
288461
  }
288445
- function claim(body) {
288462
+ function claimBoards(body) {
288446
288463
  return api.post("/boards/claim", body);
288447
288464
  }
288448
- function getBoards() {
288449
- return api.get("/boards");
288465
+ function getBoard(boardId) {
288466
+ return api.get("/boards/:boardId", {
288467
+ params: {
288468
+ boardId
288469
+ }
288470
+ });
288450
288471
  }
288451
- function getBoardDetails(boardId) {
288452
- return api.get("/boards/:boardId/details", {
288472
+ function editBoard(boardId, body, authorKey) {
288473
+ return api.patch("/boards/:boardId", body, {
288453
288474
  params: {
288454
288475
  boardId
288476
+ },
288477
+ headers: {
288478
+ ...authorKey && { [AUTHOR_KEY_HEADER]: authorKey }
288455
288479
  }
288456
288480
  });
288457
288481
  }
288458
- function deleteBoard(boardId) {
288482
+ function deleteBoard(boardId, authorKey) {
288459
288483
  return api.delete("/boards/:boardId", {
288460
288484
  params: {
288461
288485
  boardId
288486
+ },
288487
+ headers: {
288488
+ ...authorKey && { [AUTHOR_KEY_HEADER]: authorKey }
288462
288489
  }
288463
288490
  });
288464
288491
  }
288465
- function unvisitBoard(boardId) {
288466
- return api.delete("/boards/:boardId/visited", {
288492
+ function createAccessKey(boardId, body, authorKey) {
288493
+ return api.post("/boards/:boardId/access-key", body, {
288467
288494
  params: {
288468
288495
  boardId
288496
+ },
288497
+ headers: {
288498
+ ...authorKey && { [AUTHOR_KEY_HEADER]: authorKey }
288469
288499
  }
288470
288500
  });
288471
288501
  }
288472
- function deleteBoardUnauthed(boardId, authorKey) {
288473
- return api.delete("/boards/:boardId/:authorKey", {
288502
+ function getAccessKeys(boardId, authorKey) {
288503
+ return api.get("/boards/:boardId/access-key", {
288474
288504
  params: {
288475
- authorKey,
288476
288505
  boardId
288506
+ },
288507
+ headers: {
288508
+ ...authorKey && { [AUTHOR_KEY_HEADER]: authorKey }
288477
288509
  }
288478
288510
  });
288479
288511
  }
288480
- function renameBoard(boardId, newTitle) {
288481
- return api.patch("/boards/:boardId", { newTitle }, {
288512
+ function getAccessKey(boardId, accessKey, authorKey) {
288513
+ return api.get("/boards/:boardId/access-key/:accessKey", {
288482
288514
  params: {
288483
- boardId
288515
+ boardId,
288516
+ accessKey
288517
+ },
288518
+ headers: {
288519
+ ...authorKey && { [AUTHOR_KEY_HEADER]: authorKey }
288484
288520
  }
288485
288521
  });
288486
288522
  }
288487
- function renameBoardUnauthed(boardId, authorKey, newTitle) {
288488
- return api.patch("/boards/:boardId/:authorKey", { newTitle }, {
288523
+ function deleteAccessKey(boardId, accessKey, authorKey) {
288524
+ return api.delete("/boards/:boardId/access-key/:accessKey", {
288489
288525
  params: {
288490
288526
  boardId,
288491
- authorKey
288527
+ accessKey
288528
+ },
288529
+ headers: {
288530
+ ...authorKey && { [AUTHOR_KEY_HEADER]: authorKey }
288492
288531
  }
288493
288532
  });
288494
288533
  }
288495
- async function publishSnapshot(HTMLSnapshot, snapshotUId, boardUId) {
288496
- const { data } = await api.post("/media/snapshot", {
288497
- snapshot: HTMLSnapshot,
288498
- snapshotUId,
288499
- boardUId
288534
+ function getGrantedUsers(boardId) {
288535
+ return api.get("/boards/:boardId/grant-access", {
288536
+ params: {
288537
+ boardId
288538
+ }
288539
+ });
288540
+ }
288541
+ function grantAccess(boardId, users) {
288542
+ return api.post("/boards/:boardId/grant-access", { users }, {
288543
+ params: {
288544
+ boardId
288545
+ }
288546
+ });
288547
+ }
288548
+ function manageAccess(boardId, manageAccess2) {
288549
+ return api.post("/boards/:boardId/manage-access", manageAccess2, {
288550
+ params: {
288551
+ boardId
288552
+ }
288553
+ });
288554
+ }
288555
+ // src/shared/api/folders/index.ts
288556
+ var exports_folders = {};
288557
+ __export(exports_folders, {
288558
+ reorderFolder: () => reorderFolder,
288559
+ initFolders: () => initFolders,
288560
+ getRootFolder: () => getRootFolder,
288561
+ getFodler: () => getFodler,
288562
+ editFolder: () => editFolder,
288563
+ deleteFolderContent: () => deleteFolderContent,
288564
+ deleteFolder: () => deleteFolder,
288565
+ createFolder: () => createFolder,
288566
+ addToFolder: () => addToFolder,
288567
+ FolderType: () => FolderType
288568
+ });
288569
+
288570
+ // src/shared/api/folders/types.ts
288571
+ var FolderType;
288572
+ ((FolderType2) => {
288573
+ FolderType2["ROOT"] = "root";
288574
+ FolderType2["NESTED"] = "nested";
288575
+ FolderType2["VISITED"] = "visited";
288576
+ FolderType2["TRASH"] = "trash";
288577
+ FolderType2["DRAFTS"] = "drafts";
288578
+ })(FolderType ||= {});
288579
+ // src/shared/api/folders/api.ts
288580
+ function getRootFolder(folderType) {
288581
+ return api.get("/folders", {
288582
+ query: folderType ? { type: folderType } : undefined
288583
+ });
288584
+ }
288585
+ function createFolder(body) {
288586
+ return api.post("/folders", body);
288587
+ }
288588
+ function initFolders() {
288589
+ return api.post("/folders/init");
288590
+ }
288591
+ function getFodler(folderId) {
288592
+ return api.get("/folders/:folderId", {
288593
+ params: {
288594
+ folderId
288595
+ }
288596
+ });
288597
+ }
288598
+ function addToFolder(folderId, body) {
288599
+ return api.post("/folders/:folderId", body, {
288600
+ params: {
288601
+ folderId
288602
+ }
288603
+ });
288604
+ }
288605
+ function deleteFolder(folderId) {
288606
+ return api.delete("/folders/:folderId", {
288607
+ params: {
288608
+ folderId
288609
+ }
288610
+ });
288611
+ }
288612
+ function deleteFolderContent(folderId, body) {
288613
+ return api.delete("/folders/:folderId", {
288614
+ params: {
288615
+ folderId
288616
+ }
288617
+ }, body);
288618
+ }
288619
+ function editFolder(folderId, body) {
288620
+ return api.patch("/folders/:folderId", body, {
288621
+ params: {
288622
+ folderId
288623
+ }
288624
+ });
288625
+ }
288626
+ function reorderFolder(folderId, body) {
288627
+ return api.post("/folders/:folderId/reorder", { items: body }, {
288628
+ params: {
288629
+ folderId
288630
+ }
288500
288631
  });
288501
- if (!data) {
288502
- throw new Error;
288503
- }
288504
- return data;
288505
288632
  }
288506
288633
  // src/shared/api/billing/index.ts
288507
288634
  var exports_billing = {};
@@ -301606,11 +301733,11 @@ var require$$5 = /* @__PURE__ */ getAugmentedNamespace(_polyfillNode_zlib$1);
301606
301733
  });
301607
301734
  }
301608
301735
  }
301609
- registerEditorTypes(types6) {
301736
+ registerEditorTypes(types7) {
301610
301737
  if (this.#editorTypes) {
301611
301738
  return;
301612
301739
  }
301613
- this.#editorTypes = types6;
301740
+ this.#editorTypes = types7;
301614
301741
  for (const editorType of this.#editorTypes) {
301615
301742
  this.#dispatchUpdateUI(editorType.defaultPropertiesToUpdate);
301616
301743
  }
@@ -317312,13 +317439,13 @@ function createStore() {
317312
317439
  init__esm();
317313
317440
 
317314
317441
  // node_modules/zustand/esm/middleware.mjs
317315
- var subscribeWithSelectorImpl = (fn) => (set2, get3, api6) => {
317316
- const origSubscribe = api6.subscribe;
317317
- api6.subscribe = (selector, optListener, options2) => {
317442
+ var subscribeWithSelectorImpl = (fn) => (set2, get3, api7) => {
317443
+ const origSubscribe = api7.subscribe;
317444
+ api7.subscribe = (selector, optListener, options2) => {
317318
317445
  let listener = selector;
317319
317446
  if (optListener) {
317320
317447
  const equalityFn = (options2 == null ? undefined : options2.equalityFn) || Object.is;
317321
- let currentSlice = selector(api6.getState());
317448
+ let currentSlice = selector(api7.getState());
317322
317449
  listener = (state) => {
317323
317450
  const nextSlice = selector(state);
317324
317451
  if (!equalityFn(currentSlice, nextSlice)) {
@@ -317332,7 +317459,7 @@ var subscribeWithSelectorImpl = (fn) => (set2, get3, api6) => {
317332
317459
  }
317333
317460
  return origSubscribe(listener);
317334
317461
  };
317335
- const initialState = fn(set2, get3, api6);
317462
+ const initialState = fn(set2, get3, api7);
317336
317463
  return initialState;
317337
317464
  };
317338
317465
  var subscribeWithSelector = subscribeWithSelectorImpl;
@@ -317388,7 +317515,7 @@ var toThenable = (fn) => (input2) => {
317388
317515
  };
317389
317516
  }
317390
317517
  };
317391
- var persistImpl = (config4, baseOptions) => (set2, get3, api6) => {
317518
+ var persistImpl = (config4, baseOptions) => (set2, get3, api7) => {
317392
317519
  let options2 = {
317393
317520
  storage: createJSONStorage(() => localStorage),
317394
317521
  partialize: (state) => state,
@@ -317407,7 +317534,7 @@ var persistImpl = (config4, baseOptions) => (set2, get3, api6) => {
317407
317534
  return config4((...args) => {
317408
317535
  console.warn(`[zustand persist middleware] Unable to update item '${options2.name}', the given storage is currently unavailable.`);
317409
317536
  set2(...args);
317410
- }, get3, api6);
317537
+ }, get3, api7);
317411
317538
  }
317412
317539
  const setItem = () => {
317413
317540
  const state = options2.partialize({ ...get3() });
@@ -317416,16 +317543,16 @@ var persistImpl = (config4, baseOptions) => (set2, get3, api6) => {
317416
317543
  version: options2.version
317417
317544
  });
317418
317545
  };
317419
- const savedSetState = api6.setState;
317420
- api6.setState = (state, replace) => {
317546
+ const savedSetState = api7.setState;
317547
+ api7.setState = (state, replace) => {
317421
317548
  savedSetState(state, replace);
317422
317549
  setItem();
317423
317550
  };
317424
317551
  const configResult = config4((...args) => {
317425
317552
  set2(...args);
317426
317553
  setItem();
317427
- }, get3, api6);
317428
- api6.getInitialState = () => configResult;
317554
+ }, get3, api7);
317555
+ api7.getInitialState = () => configResult;
317429
317556
  let stateFromStorage;
317430
317557
  const hydrate = () => {
317431
317558
  var _a2, _b;
@@ -317469,7 +317596,7 @@ var persistImpl = (config4, baseOptions) => (set2, get3, api6) => {
317469
317596
  postRehydrationCallback == null || postRehydrationCallback(undefined, e4);
317470
317597
  });
317471
317598
  };
317472
- api6.persist = {
317599
+ api7.persist = {
317473
317600
  setOptions: (newOptions) => {
317474
317601
  options2 = {
317475
317602
  ...options2,
@@ -317523,9 +317650,9 @@ var createStoreImpl = (createState2) => {
317523
317650
  listeners2.add(listener);
317524
317651
  return () => listeners2.delete(listener);
317525
317652
  };
317526
- const api6 = { setState, getState, getInitialState, subscribe };
317527
- const initialState = state = createState2(setState, getState, api6);
317528
- return api6;
317653
+ const api7 = { setState, getState, getInitialState, subscribe };
317654
+ const initialState = state = createState2(setState, getState, api7);
317655
+ return api7;
317529
317656
  };
317530
317657
  var createStore2 = (createState2) => createState2 ? createStoreImpl(createState2) : createStoreImpl;
317531
317658
 
@@ -331492,229 +331619,6 @@ function getAuthInterceptor(account) {
331492
331619
  return config4;
331493
331620
  };
331494
331621
  }
331495
- // src/shared/apiV2/boards/index.ts
331496
- var exports_boards2 = {};
331497
- __export(exports_boards2, {
331498
- manageAccess: () => manageAccess,
331499
- grantAccess: () => grantAccess,
331500
- getGrantedUsers: () => getGrantedUsers,
331501
- getBoard: () => getBoard,
331502
- getAccessKeys: () => getAccessKeys,
331503
- getAccessKey: () => getAccessKey,
331504
- editBoard: () => editBoard,
331505
- deleteBoard: () => deleteBoard2,
331506
- deleteAccessKey: () => deleteAccessKey,
331507
- createBoard: () => createBoard2,
331508
- createAccessKey: () => createAccessKey,
331509
- claimBoards: () => claimBoards,
331510
- UserAccessType: () => UserAccessType,
331511
- DirectAccessType: () => DirectAccessType,
331512
- AccessKeyType: () => AccessKeyType,
331513
- AUTHOR_KEY_HEADER: () => AUTHOR_KEY_HEADER
331514
- });
331515
-
331516
- // src/shared/apiV2/base.ts
331517
- var apiV2 = new HTTP({
331518
- baseURL: getApiUrl(),
331519
- headers: {
331520
- "Content-Type": "application/json"
331521
- }
331522
- });
331523
-
331524
- // src/shared/apiV2/boards/types.ts
331525
- var AUTHOR_KEY_HEADER = "x-author-key";
331526
- var DirectAccessType;
331527
- ((DirectAccessType2) => {
331528
- DirectAccessType2["EDIT"] = "edit";
331529
- DirectAccessType2["VIEW"] = "view";
331530
- })(DirectAccessType ||= {});
331531
- var AccessKeyType;
331532
- ((AccessKeyType2) => {
331533
- AccessKeyType2["EDIT"] = "edit";
331534
- AccessKeyType2["VIEW"] = "view";
331535
- })(AccessKeyType ||= {});
331536
- var UserAccessType;
331537
- ((UserAccessType2) => {
331538
- UserAccessType2["View"] = "view";
331539
- UserAccessType2["Edit"] = "edit";
331540
- UserAccessType2["NoAccess"] = "noAccess";
331541
- })(UserAccessType ||= {});
331542
-
331543
- // src/shared/apiV2/boards/api.ts
331544
- function createBoard2(body) {
331545
- return apiV2.post("/boards", body);
331546
- }
331547
- function claimBoards(body) {
331548
- return apiV2.post("/boards/claim", body);
331549
- }
331550
- function getBoard(boardId) {
331551
- return apiV2.get("/boards/:boardId", {
331552
- params: {
331553
- boardId
331554
- }
331555
- });
331556
- }
331557
- function editBoard(boardId, body, authorKey) {
331558
- return apiV2.patch("/boards/:boardId", body, {
331559
- params: {
331560
- boardId
331561
- },
331562
- headers: {
331563
- ...authorKey && { [AUTHOR_KEY_HEADER]: authorKey }
331564
- }
331565
- });
331566
- }
331567
- function deleteBoard2(boardId, authorKey) {
331568
- return apiV2.delete("/boards/:boardId", {
331569
- params: {
331570
- boardId
331571
- },
331572
- headers: {
331573
- ...authorKey && { [AUTHOR_KEY_HEADER]: authorKey }
331574
- }
331575
- });
331576
- }
331577
- function createAccessKey(boardId, body, authorKey) {
331578
- return apiV2.post("/boards/:boardId/access-key", body, {
331579
- params: {
331580
- boardId
331581
- },
331582
- headers: {
331583
- ...authorKey && { [AUTHOR_KEY_HEADER]: authorKey }
331584
- }
331585
- });
331586
- }
331587
- function getAccessKeys(boardId, authorKey) {
331588
- return apiV2.get("/boards/:boardId/access-key", {
331589
- params: {
331590
- boardId
331591
- },
331592
- headers: {
331593
- ...authorKey && { [AUTHOR_KEY_HEADER]: authorKey }
331594
- }
331595
- });
331596
- }
331597
- function getAccessKey(boardId, accessKey, authorKey) {
331598
- return apiV2.get("/boards/:boardId/access-key/:accessKey", {
331599
- params: {
331600
- boardId,
331601
- accessKey
331602
- },
331603
- headers: {
331604
- ...authorKey && { [AUTHOR_KEY_HEADER]: authorKey }
331605
- }
331606
- });
331607
- }
331608
- function deleteAccessKey(boardId, accessKey, authorKey) {
331609
- return apiV2.delete("/boards/:boardId/access-key/:accessKey", {
331610
- params: {
331611
- boardId,
331612
- accessKey
331613
- },
331614
- headers: {
331615
- ...authorKey && { [AUTHOR_KEY_HEADER]: authorKey }
331616
- }
331617
- });
331618
- }
331619
- function getGrantedUsers(boardId) {
331620
- return apiV2.get("/boards/:boardId/grant-access", {
331621
- params: {
331622
- boardId
331623
- }
331624
- });
331625
- }
331626
- function grantAccess(boardId, users) {
331627
- return apiV2.post("/boards/:boardId/grant-access", { users }, {
331628
- params: {
331629
- boardId
331630
- }
331631
- });
331632
- }
331633
- function manageAccess(boardId, manageAccess2) {
331634
- return apiV2.post("/boards/:boardId/manage-access", manageAccess2, {
331635
- params: {
331636
- boardId
331637
- }
331638
- });
331639
- }
331640
- // src/shared/apiV2/folders/index.ts
331641
- var exports_folders = {};
331642
- __export(exports_folders, {
331643
- reorderFolder: () => reorderFolder,
331644
- initFolders: () => initFolders,
331645
- getRootFolder: () => getRootFolder,
331646
- getFodler: () => getFodler,
331647
- editFolder: () => editFolder,
331648
- deleteFolderContent: () => deleteFolderContent,
331649
- deleteFolder: () => deleteFolder,
331650
- createFolder: () => createFolder,
331651
- addToFolder: () => addToFolder,
331652
- FolderType: () => FolderType
331653
- });
331654
-
331655
- // src/shared/apiV2/folders/types.ts
331656
- var FolderType;
331657
- ((FolderType2) => {
331658
- FolderType2["ROOT"] = "root";
331659
- FolderType2["NESTED"] = "nested";
331660
- FolderType2["VISITED"] = "visited";
331661
- FolderType2["TRASH"] = "trash";
331662
- FolderType2["DRAFTS"] = "drafts";
331663
- })(FolderType ||= {});
331664
- // src/shared/apiV2/folders/api.ts
331665
- function getRootFolder(folderType) {
331666
- return apiV2.get("/folders", {
331667
- query: folderType ? { type: folderType } : undefined
331668
- });
331669
- }
331670
- function createFolder(body) {
331671
- return apiV2.post("/folders", body);
331672
- }
331673
- function initFolders() {
331674
- return apiV2.post("/folders/init");
331675
- }
331676
- function getFodler(folderId) {
331677
- return apiV2.get("/folders/:folderId", {
331678
- params: {
331679
- folderId
331680
- }
331681
- });
331682
- }
331683
- function addToFolder(folderId, body) {
331684
- return apiV2.post("/folders/:folderId", body, {
331685
- params: {
331686
- folderId
331687
- }
331688
- });
331689
- }
331690
- function deleteFolder(folderId) {
331691
- return apiV2.delete("/folders/:folderId", {
331692
- params: {
331693
- folderId
331694
- }
331695
- });
331696
- }
331697
- function deleteFolderContent(folderId, body) {
331698
- return apiV2.delete("/folders/:folderId", {
331699
- params: {
331700
- folderId
331701
- }
331702
- }, body);
331703
- }
331704
- function editFolder(folderId, body) {
331705
- return apiV2.patch("/folders/:folderId", body, {
331706
- params: {
331707
- folderId
331708
- }
331709
- });
331710
- }
331711
- function reorderFolder(folderId, body) {
331712
- return apiV2.post("/folders/:folderId/reorder", { items: body }, {
331713
- params: {
331714
- folderId
331715
- }
331716
- });
331717
- }
331718
331622
  // src/shared/Lang/en.json
331719
331623
  var en_default = {
331720
331624
  common: {
@@ -334340,7 +334244,7 @@ class BoardsList {
334340
334244
  }
334341
334245
  async createBoard(name2, isPublic = false, parentFolder) {
334342
334246
  return await this.action(async () => {
334343
- const { data } = await exports_boards2.createBoard({
334247
+ const { data } = await exports_boards.createBoard({
334344
334248
  title: name2,
334345
334249
  parentFolder,
334346
334250
  isPublic
@@ -334351,7 +334255,7 @@ class BoardsList {
334351
334255
  await this.updateList();
334352
334256
  return data.id;
334353
334257
  }, async () => {
334354
- const { data } = await exports_boards2.createBoard({
334258
+ const { data } = await exports_boards.createBoard({
334355
334259
  title: name2,
334356
334260
  isPublic: true,
334357
334261
  parentFolder
@@ -334546,7 +334450,7 @@ class BoardsList {
334546
334450
  }
334547
334451
  this.isLoading = true;
334548
334452
  this.subject.publish();
334549
- await exports_boards2.editBoard(boardId, {
334453
+ await exports_boards.editBoard(boardId, {
334550
334454
  isPublic,
334551
334455
  directAccessType: mode
334552
334456
  });
@@ -334567,13 +334471,13 @@ class BoardsList {
334567
334471
  }
334568
334472
  async visitBoard(id3) {
334569
334473
  return await this.action(async () => {
334570
- await exports_boards2.claimBoards({ visited: [id3] });
334474
+ await exports_boards.claimBoards({ visited: [id3] });
334571
334475
  await this.updateList();
334572
334476
  }, async () => {
334573
334477
  if (this.storage.getVisitedBoard(id3) || this.storage.getCreatedBoard(id3)) {
334574
334478
  return;
334575
334479
  }
334576
- const { data } = await exports_boards2.getBoard(id3);
334480
+ const { data } = await exports_boards.getBoard(id3);
334577
334481
  if (data && data.isPublic) {
334578
334482
  this.storage.addVisitedBoard(data);
334579
334483
  await this.updateList();
@@ -334594,7 +334498,7 @@ class BoardsList {
334594
334498
  return;
334595
334499
  }
334596
334500
  try {
334597
- await exports_boards2.claimBoards({
334501
+ await exports_boards.claimBoards({
334598
334502
  authorKeys: publicBoards.map(({ authorKey }) => authorKey).filter((ak) => ak !== null),
334599
334503
  visited: sharedBoards.map(({ id: id3 }) => id3)
334600
334504
  });
@@ -334614,10 +334518,10 @@ class BoardsList {
334614
334518
  board.title = name2 || conf.i18n.t("board.untitled");
334615
334519
  this.subject.publish();
334616
334520
  await this.action(async () => {
334617
- await exports_boards2.editBoard(boardId, { title: name2 });
334521
+ await exports_boards.editBoard(boardId, { title: name2 });
334618
334522
  await this.updateList();
334619
334523
  }, async () => {
334620
- await exports_boards2.editBoard(boardId, { title: name2 }, board.authorKey);
334524
+ await exports_boards.editBoard(boardId, { title: name2 }, board.authorKey);
334621
334525
  this.storage.renameCreatedBoard(board.id, name2);
334622
334526
  await this.updateList();
334623
334527
  });
@@ -334642,13 +334546,13 @@ class BoardsList {
334642
334546
  }
334643
334547
  async removeBoard(boardId) {
334644
334548
  await this.action(async () => {
334645
- await exports_boards2.deleteBoard(boardId);
334549
+ await exports_boards.deleteBoard(boardId);
334646
334550
  await this.updateList();
334647
334551
  }, async () => {
334648
334552
  const createdBoard = this.storage.getCreatedBoard(boardId);
334649
334553
  if (createdBoard) {
334650
334554
  try {
334651
- await exports_boards2.deleteBoard(createdBoard.id, createdBoard.authorKey);
334555
+ await exports_boards.deleteBoard(createdBoard.id, createdBoard.authorKey);
334652
334556
  } finally {
334653
334557
  this.storage.removeCreatedBoard(boardId);
334654
334558
  }
@@ -334776,7 +334680,7 @@ class BoardsList {
334776
334680
  }
334777
334681
  const visitedBoards = this.storage.listVisitedBoards();
334778
334682
  try {
334779
- const detailsRes = await Promise.all(visitedBoards.map(async ({ id: id3 }) => await exports_boards2.getBoard(id3)));
334683
+ const detailsRes = await Promise.all(visitedBoards.map(async ({ id: id3 }) => await exports_boards.getBoard(id3)));
334780
334684
  const details = detailsRes.map(({ data }) => data).filter((data) => data !== null);
334781
334685
  this.storage.setVisitedBoards(details);
334782
334686
  } catch {
@@ -334787,7 +334691,7 @@ class BoardsList {
334787
334691
  async manageAccess(boardId, payload) {
334788
334692
  this.isLoading = true;
334789
334693
  this.subject.publish();
334790
- await exports_boards2.manageAccess(boardId, payload);
334694
+ await exports_boards.manageAccess(boardId, payload);
334791
334695
  this.loadBoards();
334792
334696
  }
334793
334697
  setDraggableDndItem(item) {
@@ -335732,7 +335636,7 @@ function init5(converter, defaultAttributes) {
335732
335636
  converter: { value: Object.freeze(converter) }
335733
335637
  });
335734
335638
  }
335735
- var api11 = init5(defaultConverter2, { path: "/" });
335639
+ var api10 = init5(defaultConverter2, { path: "/" });
335736
335640
 
335737
335641
  // src/features/ImportMiro/ImgAuthClipboardModal/ImgAuthClipboardModal.tsx
335738
335642
  var import_react141 = __toESM(require_react(), 1);
@@ -337248,7 +337152,7 @@ var useCopyBoardItems = (board, accessToken, miroItems, withoutImgs) => {
337248
337152
  }
337249
337153
  };
337250
337154
  const getImage = async (imageUrl) => {
337251
- const token = api11.get("miro_accessToken");
337155
+ const token = api10.get("miro_accessToken");
337252
337156
  try {
337253
337157
  const response = await fetch(imageUrl, {
337254
337158
  headers: {
@@ -337258,7 +337162,7 @@ var useCopyBoardItems = (board, accessToken, miroItems, withoutImgs) => {
337258
337162
  const img2 = await response.json();
337259
337163
  if (img2.status === 401) {
337260
337164
  getMiroToken();
337261
- api11.remove("miro_accessToken");
337165
+ api10.remove("miro_accessToken");
337262
337166
  }
337263
337167
  return img2;
337264
337168
  } catch (error3) {
@@ -337470,7 +337374,7 @@ var useCopyBoardItems = (board, accessToken, miroItems, withoutImgs) => {
337470
337374
  };
337471
337375
  const copyBoardItems = async () => {
337472
337376
  const miroBoardItems = getMiroBoardItems();
337473
- const token = api11.get("miro_accessToken");
337377
+ const token = api10.get("miro_accessToken");
337474
337378
  if ((!token || token === "undefined") && miroBoardItems.some((item) => item.type === "image") && !withoutImgs) {
337475
337379
  getMiroToken();
337476
337380
  return;
@@ -346922,7 +346826,7 @@ function ShareModal() {
346922
346826
  return;
346923
346827
  }
346924
346828
  try {
346925
- const { data } = await exports_boards2.getGrantedUsers(boardId);
346829
+ const { data } = await exports_boards.getGrantedUsers(boardId);
346926
346830
  setGrantedUsers(data?.map((user) => {
346927
346831
  return {
346928
346832
  ...user,
@@ -347151,7 +347055,7 @@ function ShareModal() {
347151
347055
  isSettingsChange.current = true;
347152
347056
  setMode(opt);
347153
347057
  },
347154
- value: mode === exports_boards2.DirectAccessType.EDIT ? MODE_SELECTOR_OPTIONS2[0].value : MODE_SELECTOR_OPTIONS2[1].value
347058
+ value: mode === exports_boards.DirectAccessType.EDIT ? MODE_SELECTOR_OPTIONS2[0].value : MODE_SELECTOR_OPTIONS2[1].value
347155
347059
  }))), boardInfo?.isPublic && /* @__PURE__ */ import_react196.default.createElement("p", {
347156
347060
  className: ShareModal_module_default.publicMsg
347157
347061
  }, t10("sharing.publicBoard"))), /* @__PURE__ */ import_react196.default.createElement("div", {
@@ -356393,7 +356297,7 @@ function ImportMiro() {
356393
356297
  });
356394
356298
  const token = await response.json();
356395
356299
  if (token) {
356396
- api11.set("miro_accessToken", token.access_token);
356300
+ api10.set("miro_accessToken", token.access_token);
356397
356301
  openSeenLastBoard();
356398
356302
  }
356399
356303
  } catch (error3) {
@@ -356417,7 +356321,7 @@ function ImportMiro() {
356417
356321
  useCopyBoardItems(lastSeenBoard, app.account.accessToken);
356418
356322
  };
356419
356323
  import_react293.useEffect(() => {
356420
- const token = api11.get("miro_accessToken");
356324
+ const token = api10.get("miro_accessToken");
356421
356325
  if (!authCode && !teamIdSearch) {
356422
356326
  return;
356423
356327
  }
@@ -356637,7 +356541,7 @@ function MobileLandingMenu() {
356637
356541
  }
356638
356542
  const handleOpen = () => setIsOpen(true);
356639
356543
  const handleClose = () => setIsOpen(false);
356640
- const isAuthorized = api11.get("refreshToken");
356544
+ const isAuthorized = api10.get("refreshToken");
356641
356545
  return /* @__PURE__ */ import_react297.default.createElement(UiPanel, {
356642
356546
  padding: 0,
356643
356547
  className: MobileLandingMenu_module_default.mobileLandingMenuWrapper
@@ -356760,11 +356664,11 @@ var CookiesModal = ({
356760
356664
  window.location.href = policyUrl;
356761
356665
  };
356762
356666
  const onAccept = () => {
356763
- api11.set("first_visit", "true", { expires: 182, path: "/" });
356667
+ api10.set("first_visit", "true", { expires: 182, path: "/" });
356764
356668
  setOpen(false);
356765
356669
  };
356766
356670
  import_react299.useEffect(() => {
356767
- const isOpenModal = api11.get("first_visit");
356671
+ const isOpenModal = api10.get("first_visit");
356768
356672
  if (!isOpenModal) {
356769
356673
  setOpen(true);
356770
356674
  } else {
@@ -404472,7 +404376,7 @@ function isolatesEq(a22, b16) {
404472
404376
  }
404473
404377
  return true;
404474
404378
  }
404475
- var types13 = [];
404379
+ var types12 = [];
404476
404380
  function computeCharTypes(line2, rFrom, rTo, isolates, outerType) {
404477
404381
  for (let iI = 0;iI <= isolates.length; iI++) {
404478
404382
  let from22 = iI ? isolates[iI - 1].to : rFrom, to7 = iI < isolates.length ? isolates[iI].from : rTo;
@@ -404483,28 +404387,28 @@ function computeCharTypes(line2, rFrom, rTo, isolates, outerType) {
404483
404387
  type = prev2;
404484
404388
  else if (type == 8 && prevStrong == 4)
404485
404389
  type = 16;
404486
- types13[i22] = type == 4 ? 2 : type;
404390
+ types12[i22] = type == 4 ? 2 : type;
404487
404391
  if (type & 7)
404488
404392
  prevStrong = type;
404489
404393
  prev2 = type;
404490
404394
  }
404491
404395
  for (let i22 = from22, prev2 = prevType, prevStrong = prevType;i22 < to7; i22++) {
404492
- let type = types13[i22];
404396
+ let type = types12[i22];
404493
404397
  if (type == 128) {
404494
- if (i22 < to7 - 1 && prev2 == types13[i22 + 1] && prev2 & 24)
404495
- type = types13[i22] = prev2;
404398
+ if (i22 < to7 - 1 && prev2 == types12[i22 + 1] && prev2 & 24)
404399
+ type = types12[i22] = prev2;
404496
404400
  else
404497
- types13[i22] = 256;
404401
+ types12[i22] = 256;
404498
404402
  } else if (type == 64) {
404499
404403
  let end22 = i22 + 1;
404500
- while (end22 < to7 && types13[end22] == 64)
404404
+ while (end22 < to7 && types12[end22] == 64)
404501
404405
  end22++;
404502
- let replace2 = i22 && prev2 == 8 || end22 < rTo && types13[end22] == 8 ? prevStrong == 1 ? 1 : 8 : 256;
404406
+ let replace2 = i22 && prev2 == 8 || end22 < rTo && types12[end22] == 8 ? prevStrong == 1 ? 1 : 8 : 256;
404503
404407
  for (let j11 = i22;j11 < end22; j11++)
404504
- types13[j11] = replace2;
404408
+ types12[j11] = replace2;
404505
404409
  i22 = end22 - 1;
404506
404410
  } else if (type == 8 && prevStrong == 1) {
404507
- types13[i22] = 1;
404411
+ types12[i22] = 1;
404508
404412
  }
404509
404413
  prev2 = type;
404510
404414
  if (type & 7)
@@ -404524,7 +404428,7 @@ function processBracketPairs(line2, rFrom, rTo, isolates, outerType) {
404524
404428
  let flags = BracketStack[sJ + 2];
404525
404429
  let type2 = flags & 2 ? outerType : !(flags & 4) ? 0 : flags & 1 ? oppositeType : outerType;
404526
404430
  if (type2)
404527
- types13[i22] = types13[BracketStack[sJ]] = type2;
404431
+ types12[i22] = types12[BracketStack[sJ]] = type2;
404528
404432
  sI = sJ;
404529
404433
  break;
404530
404434
  }
@@ -404536,7 +404440,7 @@ function processBracketPairs(line2, rFrom, rTo, isolates, outerType) {
404536
404440
  BracketStack[sI++] = ch2;
404537
404441
  BracketStack[sI++] = context;
404538
404442
  }
404539
- } else if ((type = types13[i22]) == 2 || type == 1) {
404443
+ } else if ((type = types12[i22]) == 2 || type == 1) {
404540
404444
  let embed = type == outerType;
404541
404445
  context = embed ? 0 : 1;
404542
404446
  for (let sJ = sI - 3;sJ >= 0; sJ -= 3) {
@@ -404559,7 +404463,7 @@ function processNeutrals(rFrom, rTo, isolates, outerType) {
404559
404463
  for (let iI = 0, prev2 = outerType;iI <= isolates.length; iI++) {
404560
404464
  let from22 = iI ? isolates[iI - 1].to : rFrom, to7 = iI < isolates.length ? isolates[iI].from : rTo;
404561
404465
  for (let i22 = from22;i22 < to7; ) {
404562
- let type = types13[i22];
404466
+ let type = types12[i22];
404563
404467
  if (type == 256) {
404564
404468
  let end22 = i22 + 1;
404565
404469
  for (;; ) {
@@ -404568,21 +404472,21 @@ function processNeutrals(rFrom, rTo, isolates, outerType) {
404568
404472
  break;
404569
404473
  end22 = isolates[iI++].to;
404570
404474
  to7 = iI < isolates.length ? isolates[iI].from : rTo;
404571
- } else if (types13[end22] == 256) {
404475
+ } else if (types12[end22] == 256) {
404572
404476
  end22++;
404573
404477
  } else {
404574
404478
  break;
404575
404479
  }
404576
404480
  }
404577
404481
  let beforeL = prev2 == 1;
404578
- let afterL = (end22 < rTo ? types13[end22] : outerType) == 1;
404482
+ let afterL = (end22 < rTo ? types12[end22] : outerType) == 1;
404579
404483
  let replace2 = beforeL == afterL ? beforeL ? 1 : 2 : outerType;
404580
404484
  for (let j11 = end22, jI = iI, fromJ = jI ? isolates[jI - 1].to : rFrom;j11 > i22; ) {
404581
404485
  if (j11 == fromJ) {
404582
404486
  j11 = isolates[--jI].from;
404583
404487
  fromJ = jI ? isolates[jI - 1].to : rFrom;
404584
404488
  }
404585
- types13[--j11] = replace2;
404489
+ types12[--j11] = replace2;
404586
404490
  }
404587
404491
  i22 = end22;
404588
404492
  } else {
@@ -404598,7 +404502,7 @@ function emitSpans(line2, from22, to7, level, baseLevel, isolates, order22) {
404598
404502
  for (let iCh = from22, iI = 0;iCh < to7; ) {
404599
404503
  let sameDir = true, isNum = false;
404600
404504
  if (iI == isolates.length || iCh < isolates[iI].from) {
404601
- let next22 = types13[iCh];
404505
+ let next22 = types12[iCh];
404602
404506
  if (next22 != ourType) {
404603
404507
  sameDir = false;
404604
404508
  isNum = next22 == 16;
@@ -404619,7 +404523,7 @@ function emitSpans(line2, from22, to7, level, baseLevel, isolates, order22) {
404619
404523
  break run;
404620
404524
  if (jI < isolates.length && isolates[jI].from == upto)
404621
404525
  upto = isolates[jI++].to;
404622
- else if (types13[upto] == ourType)
404526
+ else if (types12[upto] == ourType)
404623
404527
  break run;
404624
404528
  else
404625
404529
  break;
@@ -404635,7 +404539,7 @@ function emitSpans(line2, from22, to7, level, baseLevel, isolates, order22) {
404635
404539
  iCh = iso.to;
404636
404540
  }
404637
404541
  iScan = iso.to;
404638
- } else if (iScan == to7 || (sameDir ? types13[iScan] != ourType : types13[iScan] == ourType)) {
404542
+ } else if (iScan == to7 || (sameDir ? types12[iScan] != ourType : types12[iScan] == ourType)) {
404639
404543
  break;
404640
404544
  } else {
404641
404545
  iScan++;
@@ -404651,7 +404555,7 @@ function emitSpans(line2, from22, to7, level, baseLevel, isolates, order22) {
404651
404555
  for (let iCh = to7, iI = isolates.length;iCh > from22; ) {
404652
404556
  let sameDir = true, isNum = false;
404653
404557
  if (!iI || iCh > isolates[iI - 1].to) {
404654
- let next22 = types13[iCh - 1];
404558
+ let next22 = types12[iCh - 1];
404655
404559
  if (next22 != ourType) {
404656
404560
  sameDir = false;
404657
404561
  isNum = next22 == 16;
@@ -404672,7 +404576,7 @@ function emitSpans(line2, from22, to7, level, baseLevel, isolates, order22) {
404672
404576
  break run;
404673
404577
  if (jI && isolates[jI - 1].to == upto)
404674
404578
  upto = isolates[--jI].from;
404675
- else if (types13[upto - 1] == ourType)
404579
+ else if (types12[upto - 1] == ourType)
404676
404580
  break run;
404677
404581
  else
404678
404582
  break;
@@ -404687,7 +404591,7 @@ function emitSpans(line2, from22, to7, level, baseLevel, isolates, order22) {
404687
404591
  iCh = iso.from;
404688
404592
  }
404689
404593
  iScan = iso.from;
404690
- } else if (iScan == from22 || (sameDir ? types13[iScan - 1] != ourType : types13[iScan - 1] == ourType)) {
404594
+ } else if (iScan == from22 || (sameDir ? types12[iScan - 1] != ourType : types12[iScan - 1] == ourType)) {
404691
404595
  break;
404692
404596
  } else {
404693
404597
  iScan--;
@@ -404714,8 +404618,8 @@ function computeOrder(line2, direction, isolates) {
404714
404618
  if (direction == LTR && !isolates.length && !BidiRE.test(line2))
404715
404619
  return trivialOrder(line2.length);
404716
404620
  if (isolates.length)
404717
- while (line2.length > types13.length)
404718
- types13[types13.length] = 256;
404621
+ while (line2.length > types12.length)
404622
+ types12[types12.length] = 256;
404719
404623
  let order22 = [], level = direction == LTR ? 0 : 1;
404720
404624
  computeSectionOrder(line2, level, level, isolates, 0, line2.length, order22);
404721
404625
  return order22;
@@ -416502,7 +416406,7 @@ var CreateTemplate = () => {
416502
416406
  credentials: "same-origin",
416503
416407
  headers: {
416504
416408
  "Content-Type": "application/json",
416505
- Authorization: `Bearer ${api11.get("accessToken")}`
416409
+ Authorization: `Bearer ${api10.get("accessToken")}`
416506
416410
  },
416507
416411
  body: JSON.stringify({ ...body, viewLink }),
416508
416412
  redirect: "follow",
@@ -417038,7 +416942,7 @@ function TitlePanel() {
417038
416942
  credentials: "same-origin",
417039
416943
  headers: {
417040
416944
  "Content-Type": "application/json",
417041
- Authorization: `Bearer ${api11.get("accessToken")}`
416945
+ Authorization: `Bearer ${api10.get("accessToken")}`
417042
416946
  },
417043
416947
  body,
417044
416948
  redirect: "follow",
@@ -443947,7 +443851,7 @@ var BoardPage = () => {
443947
443851
  });
443948
443852
  } else {
443949
443853
  const lastSeenBoard = localStorage.getItem(LAST_BOARD_KEY);
443950
- const isFirstVisit = !api11.get("first_visit");
443854
+ const isFirstVisit = !api10.get("first_visit");
443951
443855
  if (lastSeenBoard) {
443952
443856
  app.openBoard(lastSeenBoard).then(() => {
443953
443857
  navigate(`/boards/${lastSeenBoard}${search3}`, {
@@ -444723,7 +444627,7 @@ var SelectBoardPage = () => {
444723
444627
  if (!accessKeyType) {
444724
444628
  throw new Error("Error creating access key");
444725
444629
  }
444726
- const { data: accessKey } = await exports_boards2.createAccessKey(boardId, {
444630
+ const { data: accessKey } = await exports_boards.createAccessKey(boardId, {
444727
444631
  keyType: accessKeyType
444728
444632
  }, authorKey);
444729
444633
  if (!accessKey) {
@@ -446619,7 +446523,6 @@ function createApp(isHistory = true) {
446619
446523
  const boardSubject = new Subject2;
446620
446524
  const authInterceptor = getAuthInterceptor(account);
446621
446525
  api.interceptors.addRequestInterceptor(authInterceptor);
446622
- apiV2.interceptors.addRequestInterceptor(authInterceptor);
446623
446526
  async function openBoard(id3, accessKey) {
446624
446527
  const appBoard = app.getBoard();
446625
446528
  if (id3 === "boards" || appBoard?.getBoardId() === id3) {
@@ -446952,7 +446855,6 @@ export {
446952
446855
  exports_folders as foldersApi,
446953
446856
  customCursors_default as customCursors,
446954
446857
  createApp,
446955
- exports_boards2 as boardsApiV2,
446956
446858
  exports_boards as boardsApi,
446957
446859
  exports_billing as billingApi,
446958
446860
  exports_auth as authApi,