drizzle-kit 0.24.2-8db0aa4 → 0.24.2-ab3b46d

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. package/api.js +3136 -192
  2. package/api.mjs +3135 -192
  3. package/bin.cjs +1 -1
  4. package/package.json +1 -1
package/api.js CHANGED
@@ -571,7 +571,7 @@ var require_old = __commonJS({
571
571
  "use strict";
572
572
  var pathModule = require("path");
573
573
  var isWindows = process.platform === "win32";
574
- var fs4 = require("fs");
574
+ var fs5 = require("fs");
575
575
  var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
576
576
  function rethrow() {
577
577
  var callback;
@@ -636,7 +636,7 @@ var require_old = __commonJS({
636
636
  base = m7[0];
637
637
  previous = "";
638
638
  if (isWindows && !knownHard[base]) {
639
- fs4.lstatSync(base);
639
+ fs5.lstatSync(base);
640
640
  knownHard[base] = true;
641
641
  }
642
642
  }
@@ -654,7 +654,7 @@ var require_old = __commonJS({
654
654
  if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
655
655
  resolvedLink = cache[base];
656
656
  } else {
657
- var stat = fs4.lstatSync(base);
657
+ var stat = fs5.lstatSync(base);
658
658
  if (!stat.isSymbolicLink()) {
659
659
  knownHard[base] = true;
660
660
  if (cache) cache[base] = base;
@@ -668,8 +668,8 @@ var require_old = __commonJS({
668
668
  }
669
669
  }
670
670
  if (linkTarget === null) {
671
- fs4.statSync(base);
672
- linkTarget = fs4.readlinkSync(base);
671
+ fs5.statSync(base);
672
+ linkTarget = fs5.readlinkSync(base);
673
673
  }
674
674
  resolvedLink = pathModule.resolve(previous, linkTarget);
675
675
  if (cache) cache[base] = resolvedLink;
@@ -703,7 +703,7 @@ var require_old = __commonJS({
703
703
  base = m7[0];
704
704
  previous = "";
705
705
  if (isWindows && !knownHard[base]) {
706
- fs4.lstat(base, function(err) {
706
+ fs5.lstat(base, function(err) {
707
707
  if (err) return cb(err);
708
708
  knownHard[base] = true;
709
709
  LOOP();
@@ -729,7 +729,7 @@ var require_old = __commonJS({
729
729
  if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
730
730
  return gotResolvedLink(cache[base]);
731
731
  }
732
- return fs4.lstat(base, gotStat);
732
+ return fs5.lstat(base, gotStat);
733
733
  }
734
734
  function gotStat(err, stat) {
735
735
  if (err) return cb(err);
@@ -744,9 +744,9 @@ var require_old = __commonJS({
744
744
  return gotTarget(null, seenLinks[id], base);
745
745
  }
746
746
  }
747
- fs4.stat(base, function(err2) {
747
+ fs5.stat(base, function(err2) {
748
748
  if (err2) return cb(err2);
749
- fs4.readlink(base, function(err3, target) {
749
+ fs5.readlink(base, function(err3, target) {
750
750
  if (!isWindows) seenLinks[id] = target;
751
751
  gotTarget(err3, target);
752
752
  });
@@ -776,9 +776,9 @@ var require_fs = __commonJS({
776
776
  realpath.realpathSync = realpathSync;
777
777
  realpath.monkeypatch = monkeypatch;
778
778
  realpath.unmonkeypatch = unmonkeypatch;
779
- var fs4 = require("fs");
780
- var origRealpath = fs4.realpath;
781
- var origRealpathSync = fs4.realpathSync;
779
+ var fs5 = require("fs");
780
+ var origRealpath = fs5.realpath;
781
+ var origRealpathSync = fs5.realpathSync;
782
782
  var version3 = process.version;
783
783
  var ok = /^v[0-5]\./.test(version3);
784
784
  var old = require_old();
@@ -816,12 +816,12 @@ var require_fs = __commonJS({
816
816
  }
817
817
  }
818
818
  function monkeypatch() {
819
- fs4.realpath = realpath;
820
- fs4.realpathSync = realpathSync;
819
+ fs5.realpath = realpath;
820
+ fs5.realpathSync = realpathSync;
821
821
  }
822
822
  function unmonkeypatch() {
823
- fs4.realpath = origRealpath;
824
- fs4.realpathSync = origRealpathSync;
823
+ fs5.realpath = origRealpath;
824
+ fs5.realpathSync = origRealpathSync;
825
825
  }
826
826
  }
827
827
  });
@@ -1056,8 +1056,8 @@ var require_minimatch = __commonJS({
1056
1056
  return new Minimatch2(pattern, options).match(p7);
1057
1057
  };
1058
1058
  module2.exports = minimatch2;
1059
- var path2 = require_path();
1060
- minimatch2.sep = path2.sep;
1059
+ var path3 = require_path();
1060
+ minimatch2.sep = path3.sep;
1061
1061
  var GLOBSTAR2 = Symbol("globstar **");
1062
1062
  minimatch2.GLOBSTAR = GLOBSTAR2;
1063
1063
  var expand2 = require_brace_expansion();
@@ -1562,8 +1562,8 @@ var require_minimatch = __commonJS({
1562
1562
  if (this.empty) return f5 === "";
1563
1563
  if (f5 === "/" && partial) return true;
1564
1564
  const options = this.options;
1565
- if (path2.sep !== "/") {
1566
- f5 = f5.split(path2.sep).join("/");
1565
+ if (path3.sep !== "/") {
1566
+ f5 = f5.split(path3.sep).join("/");
1567
1567
  }
1568
1568
  f5 = f5.split(slashSplit);
1569
1569
  this.debug(this.pattern, "split", f5);
@@ -1659,8 +1659,8 @@ var require_common = __commonJS({
1659
1659
  function ownProp(obj, field) {
1660
1660
  return Object.prototype.hasOwnProperty.call(obj, field);
1661
1661
  }
1662
- var fs4 = require("fs");
1663
- var path2 = require("path");
1662
+ var fs5 = require("fs");
1663
+ var path3 = require("path");
1664
1664
  var minimatch2 = require_minimatch();
1665
1665
  var isAbsolute = require("path").isAbsolute;
1666
1666
  var Minimatch2 = minimatch2.Minimatch;
@@ -1718,7 +1718,7 @@ var require_common = __commonJS({
1718
1718
  self2.stat = !!options.stat;
1719
1719
  self2.noprocess = !!options.noprocess;
1720
1720
  self2.absolute = !!options.absolute;
1721
- self2.fs = options.fs || fs4;
1721
+ self2.fs = options.fs || fs5;
1722
1722
  self2.maxLength = options.maxLength || Infinity;
1723
1723
  self2.cache = options.cache || /* @__PURE__ */ Object.create(null);
1724
1724
  self2.statCache = options.statCache || /* @__PURE__ */ Object.create(null);
@@ -1727,13 +1727,13 @@ var require_common = __commonJS({
1727
1727
  self2.changedCwd = false;
1728
1728
  var cwd = process.cwd();
1729
1729
  if (!ownProp(options, "cwd"))
1730
- self2.cwd = path2.resolve(cwd);
1730
+ self2.cwd = path3.resolve(cwd);
1731
1731
  else {
1732
- self2.cwd = path2.resolve(options.cwd);
1732
+ self2.cwd = path3.resolve(options.cwd);
1733
1733
  self2.changedCwd = self2.cwd !== cwd;
1734
1734
  }
1735
- self2.root = options.root || path2.resolve(self2.cwd, "/");
1736
- self2.root = path2.resolve(self2.root);
1735
+ self2.root = options.root || path3.resolve(self2.cwd, "/");
1736
+ self2.root = path3.resolve(self2.root);
1737
1737
  self2.cwdAbs = isAbsolute(self2.cwd) ? self2.cwd : makeAbs(self2, self2.cwd);
1738
1738
  self2.nomount = !!options.nomount;
1739
1739
  if (process.platform === "win32") {
@@ -1815,30 +1815,30 @@ var require_common = __commonJS({
1815
1815
  function makeAbs(self2, f5) {
1816
1816
  var abs = f5;
1817
1817
  if (f5.charAt(0) === "/") {
1818
- abs = path2.join(self2.root, f5);
1818
+ abs = path3.join(self2.root, f5);
1819
1819
  } else if (isAbsolute(f5) || f5 === "") {
1820
1820
  abs = f5;
1821
1821
  } else if (self2.changedCwd) {
1822
- abs = path2.resolve(self2.cwd, f5);
1822
+ abs = path3.resolve(self2.cwd, f5);
1823
1823
  } else {
1824
- abs = path2.resolve(f5);
1824
+ abs = path3.resolve(f5);
1825
1825
  }
1826
1826
  if (process.platform === "win32")
1827
1827
  abs = abs.replace(/\\/g, "/");
1828
1828
  return abs;
1829
1829
  }
1830
- function isIgnored(self2, path3) {
1830
+ function isIgnored(self2, path4) {
1831
1831
  if (!self2.ignore.length)
1832
1832
  return false;
1833
1833
  return self2.ignore.some(function(item) {
1834
- return item.matcher.match(path3) || !!(item.gmatcher && item.gmatcher.match(path3));
1834
+ return item.matcher.match(path4) || !!(item.gmatcher && item.gmatcher.match(path4));
1835
1835
  });
1836
1836
  }
1837
- function childrenIgnored(self2, path3) {
1837
+ function childrenIgnored(self2, path4) {
1838
1838
  if (!self2.ignore.length)
1839
1839
  return false;
1840
1840
  return self2.ignore.some(function(item) {
1841
- return !!(item.gmatcher && item.gmatcher.match(path3));
1841
+ return !!(item.gmatcher && item.gmatcher.match(path4));
1842
1842
  });
1843
1843
  }
1844
1844
  }
@@ -1855,7 +1855,7 @@ var require_sync = __commonJS({
1855
1855
  var Minimatch2 = minimatch2.Minimatch;
1856
1856
  var Glob = require_glob().Glob;
1857
1857
  var util2 = require("util");
1858
- var path2 = require("path");
1858
+ var path3 = require("path");
1859
1859
  var assert = require("assert");
1860
1860
  var isAbsolute = require("path").isAbsolute;
1861
1861
  var common = require_common();
@@ -1983,7 +1983,7 @@ var require_sync = __commonJS({
1983
1983
  e5 = prefix2 + e5;
1984
1984
  }
1985
1985
  if (e5.charAt(0) === "/" && !this.nomount) {
1986
- e5 = path2.join(this.root, e5);
1986
+ e5 = path3.join(this.root, e5);
1987
1987
  }
1988
1988
  this._emitMatch(index4, e5);
1989
1989
  }
@@ -2132,9 +2132,9 @@ var require_sync = __commonJS({
2132
2132
  if (prefix2 && isAbsolute(prefix2) && !this.nomount) {
2133
2133
  var trail = /[\/\\]$/.test(prefix2);
2134
2134
  if (prefix2.charAt(0) === "/") {
2135
- prefix2 = path2.join(this.root, prefix2);
2135
+ prefix2 = path3.join(this.root, prefix2);
2136
2136
  } else {
2137
- prefix2 = path2.resolve(this.root, prefix2);
2137
+ prefix2 = path3.resolve(this.root, prefix2);
2138
2138
  if (trail)
2139
2139
  prefix2 += "/";
2140
2140
  }
@@ -2330,7 +2330,7 @@ var require_glob = __commonJS({
2330
2330
  var Minimatch2 = minimatch2.Minimatch;
2331
2331
  var inherits = require_inherits();
2332
2332
  var EE = require("events").EventEmitter;
2333
- var path2 = require("path");
2333
+ var path3 = require("path");
2334
2334
  var assert = require("assert");
2335
2335
  var isAbsolute = require("path").isAbsolute;
2336
2336
  var globSync = require_sync();
@@ -2611,7 +2611,7 @@ var require_glob = __commonJS({
2611
2611
  e5 = prefix2 + e5;
2612
2612
  }
2613
2613
  if (e5.charAt(0) === "/" && !this.nomount) {
2614
- e5 = path2.join(this.root, e5);
2614
+ e5 = path3.join(this.root, e5);
2615
2615
  }
2616
2616
  this._emitMatch(index4, e5);
2617
2617
  }
@@ -2798,9 +2798,9 @@ var require_glob = __commonJS({
2798
2798
  if (prefix2 && isAbsolute(prefix2) && !this.nomount) {
2799
2799
  var trail = /[\/\\]$/.test(prefix2);
2800
2800
  if (prefix2.charAt(0) === "/") {
2801
- prefix2 = path2.join(this.root, prefix2);
2801
+ prefix2 = path3.join(this.root, prefix2);
2802
2802
  } else {
2803
- prefix2 = path2.resolve(this.root, prefix2);
2803
+ prefix2 = path3.resolve(this.root, prefix2);
2804
2804
  if (trail)
2805
2805
  prefix2 += "/";
2806
2806
  }
@@ -3952,8 +3952,8 @@ var init_lib = __esm({
3952
3952
  };
3953
3953
  overrideErrorMap = errorMap;
3954
3954
  makeIssue = (params) => {
3955
- const { data, path: path2, errorMaps, issueData } = params;
3956
- const fullPath = [...path2, ...issueData.path || []];
3955
+ const { data, path: path3, errorMaps, issueData } = params;
3956
+ const fullPath = [...path3, ...issueData.path || []];
3957
3957
  const fullIssue = {
3958
3958
  ...issueData,
3959
3959
  path: fullPath
@@ -4044,11 +4044,11 @@ var init_lib = __esm({
4044
4044
  errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
4045
4045
  })(errorUtil || (errorUtil = {}));
4046
4046
  ParseInputLazyPath = class {
4047
- constructor(parent, value, path2, key) {
4047
+ constructor(parent, value, path3, key) {
4048
4048
  this._cachedPath = [];
4049
4049
  this.parent = parent;
4050
4050
  this.data = value;
4051
- this._path = path2;
4051
+ this._path = path3;
4052
4052
  this._key = key;
4053
4053
  }
4054
4054
  get path() {
@@ -20224,12 +20224,12 @@ var require_utils3 = __commonJS({
20224
20224
  var require_sasl = __commonJS({
20225
20225
  "../node_modules/.pnpm/pg@8.11.5/node_modules/pg/lib/crypto/sasl.js"(exports2, module2) {
20226
20226
  "use strict";
20227
- var crypto4 = require_utils3();
20227
+ var crypto5 = require_utils3();
20228
20228
  function startSession(mechanisms) {
20229
20229
  if (mechanisms.indexOf("SCRAM-SHA-256") === -1) {
20230
20230
  throw new Error("SASL: Only mechanism SCRAM-SHA-256 is currently supported");
20231
20231
  }
20232
- const clientNonce = crypto4.randomBytes(18).toString("base64");
20232
+ const clientNonce = crypto5.randomBytes(18).toString("base64");
20233
20233
  return {
20234
20234
  mechanism: "SCRAM-SHA-256",
20235
20235
  clientNonce,
@@ -20261,13 +20261,13 @@ var require_sasl = __commonJS({
20261
20261
  var clientFinalMessageWithoutProof = "c=biws,r=" + sv.nonce;
20262
20262
  var authMessage = clientFirstMessageBare + "," + serverFirstMessage + "," + clientFinalMessageWithoutProof;
20263
20263
  var saltBytes = Buffer.from(sv.salt, "base64");
20264
- var saltedPassword = await crypto4.deriveKey(password, saltBytes, sv.iteration);
20265
- var clientKey = await crypto4.hmacSha256(saltedPassword, "Client Key");
20266
- var storedKey = await crypto4.sha256(clientKey);
20267
- var clientSignature = await crypto4.hmacSha256(storedKey, authMessage);
20264
+ var saltedPassword = await crypto5.deriveKey(password, saltBytes, sv.iteration);
20265
+ var clientKey = await crypto5.hmacSha256(saltedPassword, "Client Key");
20266
+ var storedKey = await crypto5.sha256(clientKey);
20267
+ var clientSignature = await crypto5.hmacSha256(storedKey, authMessage);
20268
20268
  var clientProof = xorBuffers(Buffer.from(clientKey), Buffer.from(clientSignature)).toString("base64");
20269
- var serverKey = await crypto4.hmacSha256(saltedPassword, "Server Key");
20270
- var serverSignatureBytes = await crypto4.hmacSha256(serverKey, authMessage);
20269
+ var serverKey = await crypto5.hmacSha256(saltedPassword, "Server Key");
20270
+ var serverSignatureBytes = await crypto5.hmacSha256(serverKey, authMessage);
20271
20271
  session.message = "SASLResponse";
20272
20272
  session.serverSignature = Buffer.from(serverSignatureBytes).toString("base64");
20273
20273
  session.response = clientFinalMessageWithoutProof + ",p=" + clientProof;
@@ -20457,15 +20457,15 @@ var require_pg_connection_string = __commonJS({
20457
20457
  if (config.sslcert || config.sslkey || config.sslrootcert || config.sslmode) {
20458
20458
  config.ssl = {};
20459
20459
  }
20460
- const fs4 = config.sslcert || config.sslkey || config.sslrootcert ? require("fs") : null;
20460
+ const fs5 = config.sslcert || config.sslkey || config.sslrootcert ? require("fs") : null;
20461
20461
  if (config.sslcert) {
20462
- config.ssl.cert = fs4.readFileSync(config.sslcert).toString();
20462
+ config.ssl.cert = fs5.readFileSync(config.sslcert).toString();
20463
20463
  }
20464
20464
  if (config.sslkey) {
20465
- config.ssl.key = fs4.readFileSync(config.sslkey).toString();
20465
+ config.ssl.key = fs5.readFileSync(config.sslkey).toString();
20466
20466
  }
20467
20467
  if (config.sslrootcert) {
20468
- config.ssl.ca = fs4.readFileSync(config.sslrootcert).toString();
20468
+ config.ssl.ca = fs5.readFileSync(config.sslrootcert).toString();
20469
20469
  }
20470
20470
  switch (config.sslmode) {
20471
20471
  case "disable": {
@@ -22067,7 +22067,7 @@ var require_split2 = __commonJS({
22067
22067
  var require_helper = __commonJS({
22068
22068
  "../node_modules/.pnpm/pgpass@1.0.5/node_modules/pgpass/lib/helper.js"(exports2, module2) {
22069
22069
  "use strict";
22070
- var path2 = require("path");
22070
+ var path3 = require("path");
22071
22071
  var Stream5 = require("stream").Stream;
22072
22072
  var split = require_split2();
22073
22073
  var util2 = require("util");
@@ -22106,7 +22106,7 @@ var require_helper = __commonJS({
22106
22106
  };
22107
22107
  module2.exports.getFileName = function(rawEnv) {
22108
22108
  var env3 = rawEnv || process.env;
22109
- var file = env3.PGPASSFILE || (isWin ? path2.join(env3.APPDATA || "./", "postgresql", "pgpass.conf") : path2.join(env3.HOME || "./", ".pgpass"));
22109
+ var file = env3.PGPASSFILE || (isWin ? path3.join(env3.APPDATA || "./", "postgresql", "pgpass.conf") : path3.join(env3.HOME || "./", ".pgpass"));
22110
22110
  return file;
22111
22111
  };
22112
22112
  module2.exports.usePgPass = function(stats, fname) {
@@ -22238,16 +22238,16 @@ var require_helper = __commonJS({
22238
22238
  var require_lib2 = __commonJS({
22239
22239
  "../node_modules/.pnpm/pgpass@1.0.5/node_modules/pgpass/lib/index.js"(exports2, module2) {
22240
22240
  "use strict";
22241
- var path2 = require("path");
22242
- var fs4 = require("fs");
22241
+ var path3 = require("path");
22242
+ var fs5 = require("fs");
22243
22243
  var helper = require_helper();
22244
22244
  module2.exports = function(connInfo, cb) {
22245
22245
  var file = helper.getFileName();
22246
- fs4.stat(file, function(err, stat) {
22246
+ fs5.stat(file, function(err, stat) {
22247
22247
  if (err || !helper.usePgPass(stat, file)) {
22248
22248
  return cb(void 0);
22249
22249
  }
22250
- var st = fs4.createReadStream(file);
22250
+ var st = fs5.createReadStream(file);
22251
22251
  helper.getPassword(connInfo, st, cb);
22252
22252
  });
22253
22253
  };
@@ -22267,7 +22267,7 @@ var require_client = __commonJS({
22267
22267
  var Query2 = require_query();
22268
22268
  var defaults2 = require_defaults();
22269
22269
  var Connection4 = require_connection();
22270
- var crypto4 = require_utils3();
22270
+ var crypto5 = require_utils3();
22271
22271
  var Client4 = class extends EventEmitter {
22272
22272
  constructor(config) {
22273
22273
  super();
@@ -22459,7 +22459,7 @@ var require_client = __commonJS({
22459
22459
  _handleAuthMD5Password(msg) {
22460
22460
  this._checkPgPass(async () => {
22461
22461
  try {
22462
- const hashedPassword = await crypto4.postgresMd5PasswordHash(this.user, this.password, msg.salt);
22462
+ const hashedPassword = await crypto5.postgresMd5PasswordHash(this.user, this.password, msg.salt);
22463
22463
  this.connection.password(hashedPassword);
22464
22464
  } catch (e5) {
22465
22465
  this.emit("error", e5);
@@ -23627,7 +23627,7 @@ var init_query_promise = __esm({
23627
23627
  function mapResultRow(columns, row, joinsNotNullableMap) {
23628
23628
  const nullifyMap = {};
23629
23629
  const result = columns.reduce(
23630
- (result2, { path: path2, field }, columnIndex) => {
23630
+ (result2, { path: path3, field }, columnIndex) => {
23631
23631
  let decoder2;
23632
23632
  if (is(field, Column2)) {
23633
23633
  decoder2 = field;
@@ -23637,8 +23637,8 @@ function mapResultRow(columns, row, joinsNotNullableMap) {
23637
23637
  decoder2 = field.sql.decoder;
23638
23638
  }
23639
23639
  let node = result2;
23640
- for (const [pathChunkIndex, pathChunk] of path2.entries()) {
23641
- if (pathChunkIndex < path2.length - 1) {
23640
+ for (const [pathChunkIndex, pathChunk] of path3.entries()) {
23641
+ if (pathChunkIndex < path3.length - 1) {
23642
23642
  if (!(pathChunk in node)) {
23643
23643
  node[pathChunk] = {};
23644
23644
  }
@@ -23646,8 +23646,8 @@ function mapResultRow(columns, row, joinsNotNullableMap) {
23646
23646
  } else {
23647
23647
  const rawValue = row[columnIndex];
23648
23648
  const value = node[pathChunk] = rawValue === null ? null : decoder2.mapFromDriverValue(rawValue);
23649
- if (joinsNotNullableMap && is(field, Column2) && path2.length === 2) {
23650
- const objectName = path2[0];
23649
+ if (joinsNotNullableMap && is(field, Column2) && path3.length === 2) {
23650
+ const objectName = path3[0];
23651
23651
  if (!(objectName in nullifyMap)) {
23652
23652
  nullifyMap[objectName] = value === null ? getTableName(field.table) : false;
23653
23653
  } else if (typeof nullifyMap[objectName] === "string" && nullifyMap[objectName] !== getTableName(field.table)) {
@@ -30392,18 +30392,18 @@ var init_getAttrPathList = __esm({
30392
30392
  "../node_modules/.pnpm/@smithy+util-endpoints@2.0.0/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js"() {
30393
30393
  "use strict";
30394
30394
  init_types2();
30395
- getAttrPathList = (path2) => {
30396
- const parts = path2.split(".");
30395
+ getAttrPathList = (path3) => {
30396
+ const parts = path3.split(".");
30397
30397
  const pathList = [];
30398
30398
  for (const part of parts) {
30399
30399
  const squareBracketIndex = part.indexOf("[");
30400
30400
  if (squareBracketIndex !== -1) {
30401
30401
  if (part.indexOf("]") !== part.length - 1) {
30402
- throw new EndpointError(`Path: '${path2}' does not end with ']'`);
30402
+ throw new EndpointError(`Path: '${path3}' does not end with ']'`);
30403
30403
  }
30404
30404
  const arrayIndex = part.slice(squareBracketIndex + 1, -1);
30405
30405
  if (Number.isNaN(parseInt(arrayIndex))) {
30406
- throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path2}'`);
30406
+ throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path3}'`);
30407
30407
  }
30408
30408
  if (squareBracketIndex !== 0) {
30409
30409
  pathList.push(part.slice(0, squareBracketIndex));
@@ -30425,9 +30425,9 @@ var init_getAttr = __esm({
30425
30425
  "use strict";
30426
30426
  init_types2();
30427
30427
  init_getAttrPathList();
30428
- getAttr = (value, path2) => getAttrPathList(path2).reduce((acc, index4) => {
30428
+ getAttr = (value, path3) => getAttrPathList(path3).reduce((acc, index4) => {
30429
30429
  if (typeof acc !== "object") {
30430
- throw new EndpointError(`Index '${index4}' in '${path2}' not found in '${JSON.stringify(value)}'`);
30430
+ throw new EndpointError(`Index '${index4}' in '${path3}' not found in '${JSON.stringify(value)}'`);
30431
30431
  } else if (Array.isArray(acc)) {
30432
30432
  return acc[parseInt(index4)];
30433
30433
  }
@@ -30472,8 +30472,8 @@ var init_parseURL = __esm({
30472
30472
  return value;
30473
30473
  }
30474
30474
  if (typeof value === "object" && "hostname" in value) {
30475
- const { hostname: hostname2, port, protocol: protocol3 = "", path: path2 = "", query = {} } = value;
30476
- const url = new URL(`${protocol3}//${hostname2}${port ? `:${port}` : ""}${path2}`);
30475
+ const { hostname: hostname2, port, protocol: protocol3 = "", path: path3 = "", query = {} } = value;
30476
+ const url = new URL(`${protocol3}//${hostname2}${port ? `:${port}` : ""}${path3}`);
30477
30477
  url.search = Object.entries(query).map(([k6, v8]) => `${k6}=${v8}`).join("&");
30478
30478
  return url;
30479
30479
  }
@@ -31929,8 +31929,8 @@ var init_createConfigValueProvider = __esm({
31929
31929
  return endpoint.url.href;
31930
31930
  }
31931
31931
  if ("hostname" in endpoint) {
31932
- const { protocol: protocol2, hostname, port, path: path2 } = endpoint;
31933
- return `${protocol2}//${hostname}${port ? ":" + port : ""}${path2}`;
31932
+ const { protocol: protocol2, hostname, port, path: path3 } = endpoint;
31933
+ return `${protocol2}//${hostname}${port ? ":" + port : ""}${path3}`;
31934
31934
  }
31935
31935
  }
31936
31936
  return endpoint;
@@ -32302,11 +32302,11 @@ var init_slurpFile = __esm({
32302
32302
  import_fs2 = require("fs");
32303
32303
  ({ readFile: readFile2 } = import_fs2.promises);
32304
32304
  filePromisesHash = {};
32305
- slurpFile = (path2, options) => {
32306
- if (!filePromisesHash[path2] || options?.ignoreCache) {
32307
- filePromisesHash[path2] = readFile2(path2, "utf8");
32305
+ slurpFile = (path3, options) => {
32306
+ if (!filePromisesHash[path3] || options?.ignoreCache) {
32307
+ filePromisesHash[path3] = readFile2(path3, "utf8");
32308
32308
  }
32309
- return filePromisesHash[path2];
32309
+ return filePromisesHash[path3];
32310
32310
  };
32311
32311
  }
32312
32312
  });
@@ -34370,18 +34370,18 @@ var init_node_http_handler = __esm({
34370
34370
  const password = request2.password ?? "";
34371
34371
  auth = `${username}:${password}`;
34372
34372
  }
34373
- let path2 = request2.path;
34373
+ let path3 = request2.path;
34374
34374
  if (queryString) {
34375
- path2 += `?${queryString}`;
34375
+ path3 += `?${queryString}`;
34376
34376
  }
34377
34377
  if (request2.fragment) {
34378
- path2 += `#${request2.fragment}`;
34378
+ path3 += `#${request2.fragment}`;
34379
34379
  }
34380
34380
  const nodeHttpsOptions = {
34381
34381
  headers: request2.headers,
34382
34382
  host: request2.hostname,
34383
34383
  method: request2.method,
34384
- path: path2,
34384
+ path: path3,
34385
34385
  port: request2.port,
34386
34386
  agent,
34387
34387
  auth
@@ -36382,8 +36382,8 @@ var init_requestBuilder = __esm({
36382
36382
  return this;
36383
36383
  }
36384
36384
  p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
36385
- this.resolvePathStack.push((path2) => {
36386
- this.path = resolvedPath(path2, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
36385
+ this.resolvePathStack.push((path3) => {
36386
+ this.path = resolvedPath(path3, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
36387
36387
  });
36388
36388
  return this;
36389
36389
  }
@@ -36438,9 +36438,9 @@ var init_createPaginator = __esm({
36438
36438
  makePagedClientRequest = async (CommandCtor, client, input, ...args) => {
36439
36439
  return await client.send(new CommandCtor(input), ...args);
36440
36440
  };
36441
- get = (fromObject, path2) => {
36441
+ get = (fromObject, path3) => {
36442
36442
  let cursor = fromObject;
36443
- const pathComponents = path2.split(".");
36443
+ const pathComponents = path3.split(".");
36444
36444
  for (const step of pathComponents) {
36445
36445
  if (!cursor || typeof cursor !== "object") {
36446
36446
  return void 0;
@@ -37597,10 +37597,10 @@ ${longDate}
37597
37597
  ${credentialScope}
37598
37598
  ${toHex(hashedRequest)}`;
37599
37599
  }
37600
- getCanonicalPath({ path: path2 }) {
37600
+ getCanonicalPath({ path: path3 }) {
37601
37601
  if (this.uriEscapePath) {
37602
37602
  const normalizedPathSegments = [];
37603
- for (const pathSegment of path2.split("/")) {
37603
+ for (const pathSegment of path3.split("/")) {
37604
37604
  if (pathSegment?.length === 0)
37605
37605
  continue;
37606
37606
  if (pathSegment === ".")
@@ -37611,11 +37611,11 @@ ${toHex(hashedRequest)}`;
37611
37611
  normalizedPathSegments.push(pathSegment);
37612
37612
  }
37613
37613
  }
37614
- const normalizedPath = `${path2?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path2?.endsWith("/") ? "/" : ""}`;
37614
+ const normalizedPath = `${path3?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path3?.endsWith("/") ? "/" : ""}`;
37615
37615
  const doubleEncoded = escapeUri(normalizedPath);
37616
37616
  return doubleEncoded.replace(/%2F/g, "/");
37617
37617
  }
37618
- return path2;
37618
+ return path3;
37619
37619
  }
37620
37620
  async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) {
37621
37621
  const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest);
@@ -45148,14 +45148,14 @@ var init_Aws_query = __esm({
45148
45148
  cfId: output.headers["x-amz-cf-id"]
45149
45149
  });
45150
45150
  throwDefaultError4 = withBaseException(STSServiceException);
45151
- buildHttpRpcRequest = async (context, headers, path2, resolvedHostname, body) => {
45151
+ buildHttpRpcRequest = async (context, headers, path3, resolvedHostname, body) => {
45152
45152
  const { hostname, protocol: protocol2 = "https", port, path: basePath } = await context.endpoint();
45153
45153
  const contents = {
45154
45154
  protocol: protocol2,
45155
45155
  hostname,
45156
45156
  port,
45157
45157
  method: "POST",
45158
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path2 : basePath + path2,
45158
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path3 : basePath + path3,
45159
45159
  headers
45160
45160
  };
45161
45161
  if (resolvedHostname !== void 0) {
@@ -47914,20 +47914,20 @@ var require_file_uri_to_path = __commonJS({
47914
47914
  var rest = decodeURI(uri.substring(7));
47915
47915
  var firstSlash = rest.indexOf("/");
47916
47916
  var host = rest.substring(0, firstSlash);
47917
- var path2 = rest.substring(firstSlash + 1);
47917
+ var path3 = rest.substring(firstSlash + 1);
47918
47918
  if ("localhost" == host) host = "";
47919
47919
  if (host) {
47920
47920
  host = sep3 + sep3 + host;
47921
47921
  }
47922
- path2 = path2.replace(/^(.+)\|/, "$1:");
47922
+ path3 = path3.replace(/^(.+)\|/, "$1:");
47923
47923
  if (sep3 == "\\") {
47924
- path2 = path2.replace(/\//g, "\\");
47924
+ path3 = path3.replace(/\//g, "\\");
47925
47925
  }
47926
- if (/^.+\:/.test(path2)) {
47926
+ if (/^.+\:/.test(path3)) {
47927
47927
  } else {
47928
- path2 = sep3 + path2;
47928
+ path3 = sep3 + path3;
47929
47929
  }
47930
- return host + path2;
47930
+ return host + path3;
47931
47931
  }
47932
47932
  }
47933
47933
  });
@@ -47936,19 +47936,19 @@ var require_file_uri_to_path = __commonJS({
47936
47936
  var require_bindings = __commonJS({
47937
47937
  "../node_modules/.pnpm/bindings@1.5.0/node_modules/bindings/bindings.js"(exports2, module2) {
47938
47938
  "use strict";
47939
- var fs4 = require("fs");
47940
- var path2 = require("path");
47939
+ var fs5 = require("fs");
47940
+ var path3 = require("path");
47941
47941
  var fileURLToPath = require_file_uri_to_path();
47942
- var join4 = path2.join;
47943
- var dirname = path2.dirname;
47944
- var exists2 = fs4.accessSync && function(path3) {
47942
+ var join4 = path3.join;
47943
+ var dirname = path3.dirname;
47944
+ var exists2 = fs5.accessSync && function(path4) {
47945
47945
  try {
47946
- fs4.accessSync(path3);
47946
+ fs5.accessSync(path4);
47947
47947
  } catch (e5) {
47948
47948
  return false;
47949
47949
  }
47950
47950
  return true;
47951
- } || fs4.existsSync || path2.existsSync;
47951
+ } || fs5.existsSync || path3.existsSync;
47952
47952
  var defaults2 = {
47953
47953
  arrow: process.env.NODE_BINDINGS_ARROW || " \u2192 ",
47954
47954
  compiled: process.env.NODE_BINDINGS_COMPILED_DIR || "compiled",
@@ -47993,7 +47993,7 @@ var require_bindings = __commonJS({
47993
47993
  if (!opts.module_root) {
47994
47994
  opts.module_root = exports2.getRoot(exports2.getFileName());
47995
47995
  }
47996
- if (path2.extname(opts.bindings) != ".node") {
47996
+ if (path3.extname(opts.bindings) != ".node") {
47997
47997
  opts.bindings += ".node";
47998
47998
  }
47999
47999
  var requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : require;
@@ -48228,11 +48228,11 @@ var require_pragma = __commonJS({
48228
48228
  var require_backup = __commonJS({
48229
48229
  "../node_modules/.pnpm/better-sqlite3@8.7.0/node_modules/better-sqlite3/lib/methods/backup.js"(exports2, module2) {
48230
48230
  "use strict";
48231
- var fs4 = require("fs");
48232
- var path2 = require("path");
48231
+ var fs5 = require("fs");
48232
+ var path3 = require("path");
48233
48233
  var { promisify: promisify2 } = require("util");
48234
48234
  var { cppdb } = require_util3();
48235
- var fsAccess = promisify2(fs4.access);
48235
+ var fsAccess = promisify2(fs5.access);
48236
48236
  module2.exports = async function backup(filename, options) {
48237
48237
  if (options == null) options = {};
48238
48238
  if (typeof filename !== "string") throw new TypeError("Expected first argument to be a string");
@@ -48245,7 +48245,7 @@ var require_backup = __commonJS({
48245
48245
  if (typeof attachedName !== "string") throw new TypeError('Expected the "attached" option to be a string');
48246
48246
  if (!attachedName) throw new TypeError('The "attached" option cannot be an empty string');
48247
48247
  if (handler != null && typeof handler !== "function") throw new TypeError('Expected the "progress" option to be a function');
48248
- await fsAccess(path2.dirname(filename)).catch(() => {
48248
+ await fsAccess(path3.dirname(filename)).catch(() => {
48249
48249
  throw new TypeError("Cannot save backup because the directory does not exist");
48250
48250
  });
48251
48251
  const isNewFile = await fsAccess(filename).then(() => false, () => true);
@@ -48550,8 +48550,8 @@ var require_inspect = __commonJS({
48550
48550
  var require_database = __commonJS({
48551
48551
  "../node_modules/.pnpm/better-sqlite3@8.7.0/node_modules/better-sqlite3/lib/database.js"(exports2, module2) {
48552
48552
  "use strict";
48553
- var fs4 = require("fs");
48554
- var path2 = require("path");
48553
+ var fs5 = require("fs");
48554
+ var path3 = require("path");
48555
48555
  var util2 = require_util3();
48556
48556
  var SqliteError = require_sqlite_error();
48557
48557
  var DEFAULT_ADDON;
@@ -48587,7 +48587,7 @@ var require_database = __commonJS({
48587
48587
  addon = DEFAULT_ADDON || (DEFAULT_ADDON = require_bindings()("better_sqlite3.node"));
48588
48588
  } else if (typeof nativeBinding === "string") {
48589
48589
  const requireFunc = typeof __non_webpack_require__ === "function" ? __non_webpack_require__ : require;
48590
- addon = requireFunc(path2.resolve(nativeBinding).replace(/(\.node)?$/, ".node"));
48590
+ addon = requireFunc(path3.resolve(nativeBinding).replace(/(\.node)?$/, ".node"));
48591
48591
  } else {
48592
48592
  addon = nativeBinding;
48593
48593
  }
@@ -48595,7 +48595,7 @@ var require_database = __commonJS({
48595
48595
  addon.setErrorConstructor(SqliteError);
48596
48596
  addon.isInitialized = true;
48597
48597
  }
48598
- if (!anonymous && !fs4.existsSync(path2.dirname(filename))) {
48598
+ if (!anonymous && !fs5.existsSync(path3.dirname(filename))) {
48599
48599
  throw new TypeError("Cannot open database because the directory does not exist");
48600
48600
  }
48601
48601
  Object.defineProperties(this, {
@@ -52486,10 +52486,10 @@ function parseUri(text) {
52486
52486
  const groups = match2.groups;
52487
52487
  const scheme = groups["scheme"];
52488
52488
  const authority = groups["authority"] !== void 0 ? parseAuthority(groups["authority"]) : void 0;
52489
- const path2 = percentDecode(groups["path"]);
52489
+ const path3 = percentDecode(groups["path"]);
52490
52490
  const query = groups["query"] !== void 0 ? parseQuery(groups["query"]) : void 0;
52491
52491
  const fragment2 = groups["fragment"] !== void 0 ? percentDecode(groups["fragment"]) : void 0;
52492
- return { scheme, authority, path: path2, query, fragment: fragment2 };
52492
+ return { scheme, authority, path: path3, query, fragment: fragment2 };
52493
52493
  }
52494
52494
  function parseAuthority(text) {
52495
52495
  const match2 = AUTHORITY_RE.exec(text);
@@ -52539,7 +52539,7 @@ function percentDecode(text) {
52539
52539
  throw e5;
52540
52540
  }
52541
52541
  }
52542
- function encodeBaseUrl(scheme, authority, path2) {
52542
+ function encodeBaseUrl(scheme, authority, path3) {
52543
52543
  if (authority === void 0) {
52544
52544
  throw new LibsqlError(`URL with scheme ${JSON.stringify(scheme + ":")} requires authority (the "//" part)`, "URL_INVALID");
52545
52545
  }
@@ -52548,7 +52548,7 @@ function encodeBaseUrl(scheme, authority, path2) {
52548
52548
  const portText = encodePort(authority.port);
52549
52549
  const userinfoText = encodeUserinfo(authority.userinfo);
52550
52550
  const authorityText = `//${userinfoText}${hostText}${portText}`;
52551
- let pathText = path2.split("/").map(encodeURIComponent).join("/");
52551
+ let pathText = path3.split("/").map(encodeURIComponent).join("/");
52552
52552
  if (pathText !== "" && !pathText.startsWith("/")) {
52553
52553
  pathText = "/" + pathText;
52554
52554
  }
@@ -52925,8 +52925,8 @@ var require_dist2 = __commonJS({
52925
52925
  };
52926
52926
  Object.defineProperty(exports2, "__esModule", { value: true });
52927
52927
  exports2.load = exports2.currentTarget = void 0;
52928
- var path2 = __importStar2(require("path"));
52929
- var fs4 = __importStar2(require("fs"));
52928
+ var path3 = __importStar2(require("path"));
52929
+ var fs5 = __importStar2(require("fs"));
52930
52930
  function currentTarget() {
52931
52931
  let os3 = null;
52932
52932
  switch (process.platform) {
@@ -52991,8 +52991,8 @@ var require_dist2 = __commonJS({
52991
52991
  return typeof header === "object" && !!header && "glibcVersionRuntime" in header;
52992
52992
  }
52993
52993
  function load(dirname) {
52994
- const m7 = path2.join(dirname, "index.node");
52995
- return fs4.existsSync(m7) ? require(m7) : null;
52994
+ const m7 = path3.join(dirname, "index.node");
52995
+ return fs5.existsSync(m7) ? require(m7) : null;
52996
52996
  }
52997
52997
  exports2.load = load;
52998
52998
  }
@@ -53018,11 +53018,11 @@ var require_process = __commonJS({
53018
53018
  var require_filesystem = __commonJS({
53019
53019
  "../node_modules/.pnpm/detect-libc@2.0.2/node_modules/detect-libc/lib/filesystem.js"(exports2, module2) {
53020
53020
  "use strict";
53021
- var fs4 = require("fs");
53021
+ var fs5 = require("fs");
53022
53022
  var LDD_PATH = "/usr/bin/ldd";
53023
- var readFileSync2 = (path2) => fs4.readFileSync(path2, "utf-8");
53024
- var readFile3 = (path2) => new Promise((resolve, reject) => {
53025
- fs4.readFile(path2, "utf-8", (err, data) => {
53023
+ var readFileSync2 = (path3) => fs5.readFileSync(path3, "utf-8");
53024
+ var readFile3 = (path3) => new Promise((resolve, reject) => {
53025
+ fs5.readFile(path3, "utf-8", (err, data) => {
53026
53026
  if (err) {
53027
53027
  reject(err);
53028
53028
  } else {
@@ -53331,7 +53331,7 @@ var require_libsql = __commonJS({
53331
53331
  * @constructor
53332
53332
  * @param {string} path - Path to the database file.
53333
53333
  */
53334
- constructor(path2, opts) {
53334
+ constructor(path3, opts) {
53335
53335
  const encryptionCipher = opts?.encryptionCipher ?? "aes256cbc";
53336
53336
  if (opts && opts.syncUrl) {
53337
53337
  var authToken = "";
@@ -53343,13 +53343,13 @@ var require_libsql = __commonJS({
53343
53343
  }
53344
53344
  const encryptionKey = opts?.encryptionKey ?? "";
53345
53345
  const syncPeriod = opts?.syncPeriod ?? 0;
53346
- this.db = databaseOpenWithRpcSync(path2, opts.syncUrl, authToken, encryptionCipher, encryptionKey, syncPeriod);
53346
+ this.db = databaseOpenWithRpcSync(path3, opts.syncUrl, authToken, encryptionCipher, encryptionKey, syncPeriod);
53347
53347
  } else {
53348
53348
  const authToken2 = opts?.authToken ?? "";
53349
53349
  const encryptionKey = opts?.encryptionKey ?? "";
53350
- this.db = databaseOpen(path2, authToken2, encryptionCipher, encryptionKey);
53350
+ this.db = databaseOpen(path3, authToken2, encryptionCipher, encryptionKey);
53351
53351
  }
53352
- this.memory = path2 === ":memory:";
53352
+ this.memory = path3 === ":memory:";
53353
53353
  this.readonly = false;
53354
53354
  this.name = "";
53355
53355
  this.open = true;
@@ -53623,16 +53623,16 @@ function _createClient(config) {
53623
53623
  throw new LibsqlError("File URL cannot have username and password", "URL_INVALID");
53624
53624
  }
53625
53625
  }
53626
- const path2 = config.path;
53626
+ const path3 = config.path;
53627
53627
  const options = {
53628
53628
  authToken: config.authToken,
53629
53629
  encryptionKey: config.encryptionKey,
53630
53630
  syncUrl: config.syncUrl,
53631
53631
  syncInterval: config.syncInterval
53632
53632
  };
53633
- const db2 = new import_libsql.default(path2, options);
53633
+ const db2 = new import_libsql.default(path3, options);
53634
53634
  executeStmt(db2, "SELECT 1 AS checkThatTheDatabaseCanBeOpened", config.intMode);
53635
- return new Sqlite3Client(path2, options, db2, config.intMode);
53635
+ return new Sqlite3Client(path3, options, db2, config.intMode);
53636
53636
  }
53637
53637
  function executeStmt(db2, stmt, intMode) {
53638
53638
  let sql3;
@@ -53767,7 +53767,7 @@ var init_sqlite3 = __esm({
53767
53767
  init_api();
53768
53768
  Sqlite3Client = class {
53769
53769
  /** @private */
53770
- constructor(path2, options, db2, intMode) {
53770
+ constructor(path3, options, db2, intMode) {
53771
53771
  __privateAdd(this, _Sqlite3Client_instances);
53772
53772
  __privateAdd(this, _path);
53773
53773
  __privateAdd(this, _options);
@@ -53775,7 +53775,7 @@ var init_sqlite3 = __esm({
53775
53775
  __privateAdd(this, _intMode);
53776
53776
  __publicField(this, "closed");
53777
53777
  __publicField(this, "protocol");
53778
- __privateSet(this, _path, path2);
53778
+ __privateSet(this, _path, path3);
53779
53779
  __privateSet(this, _options, options);
53780
53780
  __privateSet(this, _db, db2);
53781
53781
  __privateSet(this, _intMode, intMode);
@@ -54027,8 +54027,8 @@ var require_constants = __commonJS({
54027
54027
  var require_node_gyp_build = __commonJS({
54028
54028
  "../node_modules/.pnpm/node-gyp-build@4.8.1/node_modules/node-gyp-build/node-gyp-build.js"(exports2, module2) {
54029
54029
  "use strict";
54030
- var fs4 = require("fs");
54031
- var path2 = require("path");
54030
+ var fs5 = require("fs");
54031
+ var path3 = require("path");
54032
54032
  var os3 = require("os");
54033
54033
  var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : require;
54034
54034
  var vars = process.config && process.config.variables || {};
@@ -54045,21 +54045,21 @@ var require_node_gyp_build = __commonJS({
54045
54045
  return runtimeRequire(load.resolve(dir));
54046
54046
  }
54047
54047
  load.resolve = load.path = function(dir) {
54048
- dir = path2.resolve(dir || ".");
54048
+ dir = path3.resolve(dir || ".");
54049
54049
  try {
54050
- var name2 = runtimeRequire(path2.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_");
54050
+ var name2 = runtimeRequire(path3.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_");
54051
54051
  if (process.env[name2 + "_PREBUILD"]) dir = process.env[name2 + "_PREBUILD"];
54052
54052
  } catch (err) {
54053
54053
  }
54054
54054
  if (!prebuildsOnly) {
54055
- var release2 = getFirst(path2.join(dir, "build/Release"), matchBuild);
54055
+ var release2 = getFirst(path3.join(dir, "build/Release"), matchBuild);
54056
54056
  if (release2) return release2;
54057
- var debug = getFirst(path2.join(dir, "build/Debug"), matchBuild);
54057
+ var debug = getFirst(path3.join(dir, "build/Debug"), matchBuild);
54058
54058
  if (debug) return debug;
54059
54059
  }
54060
54060
  var prebuild = resolve(dir);
54061
54061
  if (prebuild) return prebuild;
54062
- var nearby = resolve(path2.dirname(process.execPath));
54062
+ var nearby = resolve(path3.dirname(process.execPath));
54063
54063
  if (nearby) return nearby;
54064
54064
  var target = [
54065
54065
  "platform=" + platform2,
@@ -54076,26 +54076,26 @@ var require_node_gyp_build = __commonJS({
54076
54076
  ].filter(Boolean).join(" ");
54077
54077
  throw new Error("No native build was found for " + target + "\n loaded from: " + dir + "\n");
54078
54078
  function resolve(dir2) {
54079
- var tuples2 = readdirSync(path2.join(dir2, "prebuilds")).map(parseTuple);
54079
+ var tuples2 = readdirSync(path3.join(dir2, "prebuilds")).map(parseTuple);
54080
54080
  var tuple = tuples2.filter(matchTuple(platform2, arch)).sort(compareTuples)[0];
54081
54081
  if (!tuple) return;
54082
- var prebuilds = path2.join(dir2, "prebuilds", tuple.name);
54082
+ var prebuilds = path3.join(dir2, "prebuilds", tuple.name);
54083
54083
  var parsed = readdirSync(prebuilds).map(parseTags);
54084
54084
  var candidates = parsed.filter(matchTags(runtime, abi));
54085
54085
  var winner = candidates.sort(compareTags(runtime))[0];
54086
- if (winner) return path2.join(prebuilds, winner.file);
54086
+ if (winner) return path3.join(prebuilds, winner.file);
54087
54087
  }
54088
54088
  };
54089
54089
  function readdirSync(dir) {
54090
54090
  try {
54091
- return fs4.readdirSync(dir);
54091
+ return fs5.readdirSync(dir);
54092
54092
  } catch (err) {
54093
54093
  return [];
54094
54094
  }
54095
54095
  }
54096
54096
  function getFirst(dir, filter2) {
54097
54097
  var files = readdirSync(dir).filter(filter2);
54098
- return files[0] && path2.join(dir, files[0]);
54098
+ return files[0] && path3.join(dir, files[0]);
54099
54099
  }
54100
54100
  function matchBuild(name2) {
54101
54101
  return /\.node$/.test(name2);
@@ -54182,7 +54182,7 @@ var require_node_gyp_build = __commonJS({
54182
54182
  return typeof window !== "undefined" && window.process && window.process.type === "renderer";
54183
54183
  }
54184
54184
  function isAlpine(platform3) {
54185
- return platform3 === "linux" && fs4.existsSync("/etc/alpine-release");
54185
+ return platform3 === "linux" && fs5.existsSync("/etc/alpine-release");
54186
54186
  }
54187
54187
  load.parseTags = parseTags;
54188
54188
  load.matchTags = matchTags;
@@ -61137,14 +61137,14 @@ var require_url_state_machine = __commonJS({
61137
61137
  return url.replace(/\u0009|\u000A|\u000D/g, "");
61138
61138
  }
61139
61139
  function shortenPath(url) {
61140
- const path2 = url.path;
61141
- if (path2.length === 0) {
61140
+ const path3 = url.path;
61141
+ if (path3.length === 0) {
61142
61142
  return;
61143
61143
  }
61144
- if (url.scheme === "file" && path2.length === 1 && isNormalizedWindowsDriveLetter(path2[0])) {
61144
+ if (url.scheme === "file" && path3.length === 1 && isNormalizedWindowsDriveLetter(path3[0])) {
61145
61145
  return;
61146
61146
  }
61147
- path2.pop();
61147
+ path3.pop();
61148
61148
  }
61149
61149
  function includesCredentials(url) {
61150
61150
  return url.username !== "" || url.password !== "";
@@ -76885,9 +76885,9 @@ var require_client4 = __commonJS({
76885
76885
  var require_auth_41 = __commonJS({
76886
76886
  "../node_modules/.pnpm/mysql2@3.3.3/node_modules/mysql2/lib/auth_41.js"(exports2) {
76887
76887
  "use strict";
76888
- var crypto4 = require("crypto");
76888
+ var crypto5 = require("crypto");
76889
76889
  function sha1(msg, msg1, msg2) {
76890
- const hash = crypto4.createHash("sha1");
76890
+ const hash = crypto5.createHash("sha1");
76891
76891
  hash.update(msg);
76892
76892
  if (msg1) {
76893
76893
  hash.update(msg1);
@@ -78487,7 +78487,7 @@ var require_sha256_password = __commonJS({
78487
78487
  "../node_modules/.pnpm/mysql2@3.3.3/node_modules/mysql2/lib/auth_plugins/sha256_password.js"(exports2, module2) {
78488
78488
  "use strict";
78489
78489
  var PLUGIN_NAME = "sha256_password";
78490
- var crypto4 = require("crypto");
78490
+ var crypto5 = require("crypto");
78491
78491
  var { xorRotating } = require_auth_41();
78492
78492
  var REQUEST_SERVER_KEY_PACKET = Buffer.from([1]);
78493
78493
  var STATE_INITIAL = 0;
@@ -78498,7 +78498,7 @@ var require_sha256_password = __commonJS({
78498
78498
  Buffer.from(`${password}\0`, "utf8"),
78499
78499
  scramble
78500
78500
  );
78501
- return crypto4.publicEncrypt(key, stage1);
78501
+ return crypto5.publicEncrypt(key, stage1);
78502
78502
  }
78503
78503
  module2.exports = (pluginOptions = {}) => ({ connection: connection2 }) => {
78504
78504
  let state = 0;
@@ -78541,7 +78541,7 @@ var require_caching_sha2_password = __commonJS({
78541
78541
  "../node_modules/.pnpm/mysql2@3.3.3/node_modules/mysql2/lib/auth_plugins/caching_sha2_password.js"(exports2, module2) {
78542
78542
  "use strict";
78543
78543
  var PLUGIN_NAME = "caching_sha2_password";
78544
- var crypto4 = require("crypto");
78544
+ var crypto5 = require("crypto");
78545
78545
  var { xor: xor2, xorRotating } = require_auth_41();
78546
78546
  var REQUEST_SERVER_KEY_PACKET = Buffer.from([2]);
78547
78547
  var FAST_AUTH_SUCCESS_PACKET = Buffer.from([3]);
@@ -78551,7 +78551,7 @@ var require_caching_sha2_password = __commonJS({
78551
78551
  var STATE_WAIT_SERVER_KEY = 2;
78552
78552
  var STATE_FINAL = -1;
78553
78553
  function sha2562(msg) {
78554
- const hash = crypto4.createHash("sha256");
78554
+ const hash = crypto5.createHash("sha256");
78555
78555
  hash.update(msg);
78556
78556
  return hash.digest();
78557
78557
  }
@@ -78569,7 +78569,7 @@ var require_caching_sha2_password = __commonJS({
78569
78569
  Buffer.from(`${password}\0`, "utf8"),
78570
78570
  scramble
78571
78571
  );
78572
- return crypto4.publicEncrypt(key, stage1);
78572
+ return crypto5.publicEncrypt(key, stage1);
78573
78573
  }
78574
78574
  module2.exports = (pluginOptions = {}) => ({ connection: connection2 }) => {
78575
78575
  let state = 0;
@@ -80195,12 +80195,12 @@ var require_query4 = __commonJS({
80195
80195
  this._fields.push([]);
80196
80196
  return this.readField;
80197
80197
  }
80198
- _streamLocalInfile(connection2, path2) {
80198
+ _streamLocalInfile(connection2, path3) {
80199
80199
  if (this._streamFactory) {
80200
- this._localStream = this._streamFactory(path2);
80200
+ this._localStream = this._streamFactory(path3);
80201
80201
  } else {
80202
80202
  this._localStreamError = new Error(
80203
- `As a result of LOCAL INFILE command server wants to read ${path2} file, but as of v2.0 you must provide streamFactory option returning ReadStream.`
80203
+ `As a result of LOCAL INFILE command server wants to read ${path3} file, but as of v2.0 you must provide streamFactory option returning ReadStream.`
80204
80204
  );
80205
80205
  connection2.writePacket(EmptyPacket);
80206
80206
  return this.infileOk;
@@ -83504,11 +83504,11 @@ var require_connection2 = __commonJS({
83504
83504
  if (this.config.debug) {
83505
83505
  console.log("Upgrading connection to TLS");
83506
83506
  }
83507
- const crypto4 = require("crypto");
83507
+ const crypto5 = require("crypto");
83508
83508
  const config = this.config;
83509
83509
  const stream2 = this.stream;
83510
83510
  const rejectUnauthorized = this.config.ssl.rejectUnauthorized;
83511
- const credentials2 = crypto4.createCredentials({
83511
+ const credentials2 = crypto5.createCredentials({
83512
83512
  key: config.ssl.key,
83513
83513
  cert: config.ssl.cert,
83514
83514
  passphrase: config.ssl.passphrase,
@@ -90814,7 +90814,7 @@ var init_serverless = __esm({
90814
90814
  var gr = wr;
90815
90815
  us2.exports = gr;
90816
90816
  });
90817
- ps = I2((Rl, fs4) => {
90817
+ ps = I2((Rl, fs5) => {
90818
90818
  "use strict";
90819
90819
  p5();
90820
90820
  var { EventEmitter: Fu } = we(), hs = cs(), ls = tt(), Sr = class Sr extends Fu {
@@ -90905,7 +90905,7 @@ var init_serverless = __esm({
90905
90905
  };
90906
90906
  a5(Sr, "Query");
90907
90907
  var br = Sr;
90908
- fs4.exports = br;
90908
+ fs5.exports = br;
90909
90909
  });
90910
90910
  ys = {};
90911
90911
  te(ys, { Socket: () => Ae, isIP: () => Mu });
@@ -95524,13 +95524,13 @@ function Subscribe(postgres2, options) {
95524
95524
  }
95525
95525
  }
95526
95526
  function handle(a7, b8) {
95527
- const path2 = b8.relation.schema + "." + b8.relation.table;
95527
+ const path3 = b8.relation.schema + "." + b8.relation.table;
95528
95528
  call("*", a7, b8);
95529
- call("*:" + path2, a7, b8);
95530
- b8.relation.keys.length && call("*:" + path2 + "=" + b8.relation.keys.map((x6) => a7[x6.name]), a7, b8);
95529
+ call("*:" + path3, a7, b8);
95530
+ b8.relation.keys.length && call("*:" + path3 + "=" + b8.relation.keys.map((x6) => a7[x6.name]), a7, b8);
95531
95531
  call(b8.command, a7, b8);
95532
- call(b8.command + ":" + path2, a7, b8);
95533
- b8.relation.keys.length && call(b8.command + ":" + path2 + "=" + b8.relation.keys.map((x6) => a7[x6.name]), a7, b8);
95532
+ call(b8.command + ":" + path3, a7, b8);
95533
+ b8.relation.keys.length && call(b8.command + ":" + path3 + "=" + b8.relation.keys.map((x6) => a7[x6.name]), a7, b8);
95534
95534
  }
95535
95535
  function pong() {
95536
95536
  const x6 = Buffer.alloc(34);
@@ -95643,8 +95643,8 @@ function parseEvent(x5) {
95643
95643
  const xs2 = x5.match(/^(\*|insert|update|delete)?:?([^.]+?\.?[^=]+)?=?(.+)?/i) || [];
95644
95644
  if (!xs2)
95645
95645
  throw new Error("Malformed subscribe pattern: " + x5);
95646
- const [, command, path2, key] = xs2;
95647
- return (command || "*") + (path2 ? ":" + (path2.indexOf(".") === -1 ? "public." + path2 : path2) : "") + (key ? "=" + key : "");
95646
+ const [, command, path3, key] = xs2;
95647
+ return (command || "*") + (path3 ? ":" + (path3.indexOf(".") === -1 ? "public." + path3 : path3) : "") + (key ? "=" + key : "");
95648
95648
  }
95649
95649
  var noop2;
95650
95650
  var init_subscribe = __esm({
@@ -95787,10 +95787,10 @@ function Postgres(a7, b8) {
95787
95787
  });
95788
95788
  return query;
95789
95789
  }
95790
- function file(path2, args = [], options2 = {}) {
95790
+ function file(path3, args = [], options2 = {}) {
95791
95791
  arguments.length === 2 && !Array.isArray(args) && (options2 = args, args = []);
95792
95792
  const query = new Query([], args, (query2) => {
95793
- import_fs6.default.readFile(path2, "utf8", (err, string2) => {
95793
+ import_fs6.default.readFile(path3, "utf8", (err, string2) => {
95794
95794
  if (err)
95795
95795
  return query2.reject(err);
95796
95796
  query2.strings = [string2];
@@ -106119,14 +106119,11 @@ var init_monodriver = __esm({
106119
106119
  "use strict";
106120
106120
  importError = (libName) => {
106121
106121
  throw new Error(
106122
- `Drizzle init error: unable to import selected database driver library '${libName}' - make sure it is installed.`
106122
+ `Please install '${libName}' for Drizzle ORM to connect to database`
106123
106123
  );
106124
106124
  };
106125
106125
  drizzle14 = async (params) => {
106126
- const { client, connection: connection2 } = params;
106127
- const drizzleConfig = params;
106128
- delete drizzleConfig.client;
106129
- delete drizzleConfig.connection;
106126
+ const { client, connection: connection2, ...drizzleConfig } = params;
106130
106127
  switch (client) {
106131
106128
  case "node-postgres": {
106132
106129
  const { Pool: Pool2 } = await Promise.resolve().then(() => __toESM(require_lib3(), 1)).catch(() => importError("pg"));
@@ -106144,16 +106141,24 @@ var init_monodriver = __esm({
106144
106141
  }
106145
106142
  case "better-sqlite3": {
106146
106143
  const { default: Client4 } = await Promise.resolve().then(() => __toESM(require_lib4(), 1)).catch(() => importError("better-sqlite3"));
106147
- const { filename, options } = connection2;
106148
106144
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_better_sqlite3(), better_sqlite3_exports));
106149
- const instance = new Client4(filename, options);
106145
+ if (typeof connection2 === "object") {
106146
+ const { filename, options } = connection2;
106147
+ const instance2 = new Client4(filename, options);
106148
+ return drizzle22(instance2, drizzleConfig);
106149
+ }
106150
+ const instance = new Client4(connection2);
106150
106151
  return drizzle22(instance, drizzleConfig);
106151
106152
  }
106152
- case "bun-sqlite": {
106153
+ case "bun:sqlite": {
106153
106154
  const { Database: Client4 } = require("bun:sqlite").catch(() => importError("bun:sqlite"));
106154
- const { filename, options } = connection2;
106155
106155
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_bun_sqlite(), bun_sqlite_exports));
106156
- const instance = new Client4(filename, options);
106156
+ if (typeof connection2 === "object") {
106157
+ const { filename, options } = connection2;
106158
+ const instance2 = new Client4(filename, options);
106159
+ return drizzle22(instance2, drizzleConfig);
106160
+ }
106161
+ const instance = new Client4(connection2);
106157
106162
  return drizzle22(instance, drizzleConfig);
106158
106163
  }
106159
106164
  case "d1": {
@@ -106215,6 +106220,2921 @@ var init_monodriver = __esm({
106215
106220
  }
106216
106221
  });
106217
106222
 
106223
+ // ../drizzle-orm/dist/migrator.js
106224
+ function readMigrationFiles(config) {
106225
+ let migrationFolderTo;
106226
+ if (typeof config === "string") {
106227
+ const configAsString = import_node_fs.default.readFileSync(import_node_path.default.resolve(".", config), "utf8");
106228
+ const jsonConfig = JSON.parse(configAsString);
106229
+ migrationFolderTo = jsonConfig.out;
106230
+ } else {
106231
+ migrationFolderTo = config.migrationsFolder;
106232
+ }
106233
+ if (!migrationFolderTo) {
106234
+ throw new Error("no migration folder defined");
106235
+ }
106236
+ const migrationQueries = [];
106237
+ const journalPath = `${migrationFolderTo}/meta/_journal.json`;
106238
+ if (!import_node_fs.default.existsSync(journalPath)) {
106239
+ throw new Error(`Can't find meta/_journal.json file`);
106240
+ }
106241
+ const journalAsString = import_node_fs.default.readFileSync(`${migrationFolderTo}/meta/_journal.json`).toString();
106242
+ const journal = JSON.parse(journalAsString);
106243
+ for (const journalEntry of journal.entries) {
106244
+ const migrationPath = `${migrationFolderTo}/${journalEntry.tag}.sql`;
106245
+ try {
106246
+ const query = import_node_fs.default.readFileSync(`${migrationFolderTo}/${journalEntry.tag}.sql`).toString();
106247
+ const result = query.split("--> statement-breakpoint").map((it) => {
106248
+ return it;
106249
+ });
106250
+ migrationQueries.push({
106251
+ sql: result,
106252
+ bps: journalEntry.breakpoints,
106253
+ folderMillis: journalEntry.when,
106254
+ hash: import_node_crypto.default.createHash("sha256").update(query).digest("hex")
106255
+ });
106256
+ } catch {
106257
+ throw new Error(`No file ${migrationPath} found in ${migrationFolderTo} folder`);
106258
+ }
106259
+ }
106260
+ return migrationQueries;
106261
+ }
106262
+ var import_node_crypto, import_node_fs, import_node_path;
106263
+ var init_migrator = __esm({
106264
+ "../drizzle-orm/dist/migrator.js"() {
106265
+ "use strict";
106266
+ import_node_crypto = __toESM(require("crypto"), 1);
106267
+ import_node_fs = __toESM(require("fs"), 1);
106268
+ import_node_path = __toESM(require("path"), 1);
106269
+ }
106270
+ });
106271
+
106272
+ // ../drizzle-orm/dist/aws-data-api/pg/migrator.js
106273
+ var migrator_exports = {};
106274
+ __export(migrator_exports, {
106275
+ migrate: () => migrate
106276
+ });
106277
+ async function migrate(db2, config) {
106278
+ const migrations = readMigrationFiles(config);
106279
+ await db2.dialect.migrate(migrations, db2.session, config);
106280
+ }
106281
+ var init_migrator2 = __esm({
106282
+ "../drizzle-orm/dist/aws-data-api/pg/migrator.js"() {
106283
+ "use strict";
106284
+ init_migrator();
106285
+ }
106286
+ });
106287
+
106288
+ // ../drizzle-orm/dist/better-sqlite3/migrator.js
106289
+ var migrator_exports2 = {};
106290
+ __export(migrator_exports2, {
106291
+ migrate: () => migrate2
106292
+ });
106293
+ function migrate2(db2, config) {
106294
+ const migrations = readMigrationFiles(config);
106295
+ db2.dialect.migrate(migrations, db2.session, config);
106296
+ }
106297
+ var init_migrator3 = __esm({
106298
+ "../drizzle-orm/dist/better-sqlite3/migrator.js"() {
106299
+ "use strict";
106300
+ init_migrator();
106301
+ }
106302
+ });
106303
+
106304
+ // ../drizzle-orm/dist/bun-sqlite/migrator.js
106305
+ var migrator_exports3 = {};
106306
+ __export(migrator_exports3, {
106307
+ migrate: () => migrate3
106308
+ });
106309
+ function migrate3(db2, config) {
106310
+ const migrations = readMigrationFiles(config);
106311
+ db2.dialect.migrate(migrations, db2.session, config);
106312
+ }
106313
+ var init_migrator4 = __esm({
106314
+ "../drizzle-orm/dist/bun-sqlite/migrator.js"() {
106315
+ "use strict";
106316
+ init_migrator();
106317
+ }
106318
+ });
106319
+
106320
+ // ../drizzle-orm/dist/d1/migrator.js
106321
+ var migrator_exports4 = {};
106322
+ __export(migrator_exports4, {
106323
+ migrate: () => migrate4
106324
+ });
106325
+ async function migrate4(db2, config) {
106326
+ const migrations = readMigrationFiles(config);
106327
+ const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
106328
+ const migrationTableCreate = sql`
106329
+ CREATE TABLE IF NOT EXISTS ${sql.identifier(migrationsTable)} (
106330
+ id SERIAL PRIMARY KEY,
106331
+ hash text NOT NULL,
106332
+ created_at numeric
106333
+ )
106334
+ `;
106335
+ await db2.session.run(migrationTableCreate);
106336
+ const dbMigrations = await db2.values(
106337
+ sql`SELECT id, hash, created_at FROM ${sql.identifier(migrationsTable)} ORDER BY created_at DESC LIMIT 1`
106338
+ );
106339
+ const lastDbMigration = dbMigrations[0] ?? void 0;
106340
+ const statementToBatch = [];
106341
+ for (const migration of migrations) {
106342
+ if (!lastDbMigration || Number(lastDbMigration[2]) < migration.folderMillis) {
106343
+ for (const stmt of migration.sql) {
106344
+ statementToBatch.push(db2.run(sql.raw(stmt)));
106345
+ }
106346
+ statementToBatch.push(
106347
+ db2.run(
106348
+ sql`INSERT INTO ${sql.identifier(migrationsTable)} ("hash", "created_at") VALUES(${sql.raw(`'${migration.hash}'`)}, ${sql.raw(`${migration.folderMillis}`)})`
106349
+ )
106350
+ );
106351
+ }
106352
+ }
106353
+ if (statementToBatch.length > 0) {
106354
+ await db2.session.batch(statementToBatch);
106355
+ }
106356
+ }
106357
+ var init_migrator5 = __esm({
106358
+ "../drizzle-orm/dist/d1/migrator.js"() {
106359
+ "use strict";
106360
+ init_migrator();
106361
+ init_sql();
106362
+ }
106363
+ });
106364
+
106365
+ // ../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js
106366
+ var require_react_production_min = __commonJS({
106367
+ "../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js"(exports2) {
106368
+ "use strict";
106369
+ var l5 = Symbol.for("react.element");
106370
+ var n5 = Symbol.for("react.portal");
106371
+ var p7 = Symbol.for("react.fragment");
106372
+ var q5 = Symbol.for("react.strict_mode");
106373
+ var r5 = Symbol.for("react.profiler");
106374
+ var t5 = Symbol.for("react.provider");
106375
+ var u5 = Symbol.for("react.context");
106376
+ var v8 = Symbol.for("react.forward_ref");
106377
+ var w5 = Symbol.for("react.suspense");
106378
+ var x5 = Symbol.for("react.memo");
106379
+ var y2 = Symbol.for("react.lazy");
106380
+ var z2 = Symbol.iterator;
106381
+ function A2(a7) {
106382
+ if (null === a7 || "object" !== typeof a7) return null;
106383
+ a7 = z2 && a7[z2] || a7["@@iterator"];
106384
+ return "function" === typeof a7 ? a7 : null;
106385
+ }
106386
+ var B2 = { isMounted: function() {
106387
+ return false;
106388
+ }, enqueueForceUpdate: function() {
106389
+ }, enqueueReplaceState: function() {
106390
+ }, enqueueSetState: function() {
106391
+ } };
106392
+ var C2 = Object.assign;
106393
+ var D2 = {};
106394
+ function E3(a7, b8, e5) {
106395
+ this.props = a7;
106396
+ this.context = b8;
106397
+ this.refs = D2;
106398
+ this.updater = e5 || B2;
106399
+ }
106400
+ E3.prototype.isReactComponent = {};
106401
+ E3.prototype.setState = function(a7, b8) {
106402
+ if ("object" !== typeof a7 && "function" !== typeof a7 && null != a7) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
106403
+ this.updater.enqueueSetState(this, a7, b8, "setState");
106404
+ };
106405
+ E3.prototype.forceUpdate = function(a7) {
106406
+ this.updater.enqueueForceUpdate(this, a7, "forceUpdate");
106407
+ };
106408
+ function F2() {
106409
+ }
106410
+ F2.prototype = E3.prototype;
106411
+ function G2(a7, b8, e5) {
106412
+ this.props = a7;
106413
+ this.context = b8;
106414
+ this.refs = D2;
106415
+ this.updater = e5 || B2;
106416
+ }
106417
+ var H2 = G2.prototype = new F2();
106418
+ H2.constructor = G2;
106419
+ C2(H2, E3.prototype);
106420
+ H2.isPureReactComponent = true;
106421
+ var I4 = Array.isArray;
106422
+ var J2 = Object.prototype.hasOwnProperty;
106423
+ var K2 = { current: null };
106424
+ var L = { key: true, ref: true, __self: true, __source: true };
106425
+ function M(a7, b8, e5) {
106426
+ var d7, c5 = {}, k6 = null, h5 = null;
106427
+ if (null != b8) for (d7 in void 0 !== b8.ref && (h5 = b8.ref), void 0 !== b8.key && (k6 = "" + b8.key), b8) J2.call(b8, d7) && !L.hasOwnProperty(d7) && (c5[d7] = b8[d7]);
106428
+ var g6 = arguments.length - 2;
106429
+ if (1 === g6) c5.children = e5;
106430
+ else if (1 < g6) {
106431
+ for (var f5 = Array(g6), m7 = 0; m7 < g6; m7++) f5[m7] = arguments[m7 + 2];
106432
+ c5.children = f5;
106433
+ }
106434
+ if (a7 && a7.defaultProps) for (d7 in g6 = a7.defaultProps, g6) void 0 === c5[d7] && (c5[d7] = g6[d7]);
106435
+ return { $$typeof: l5, type: a7, key: k6, ref: h5, props: c5, _owner: K2.current };
106436
+ }
106437
+ function N(a7, b8) {
106438
+ return { $$typeof: l5, type: a7.type, key: b8, ref: a7.ref, props: a7.props, _owner: a7._owner };
106439
+ }
106440
+ function O3(a7) {
106441
+ return "object" === typeof a7 && null !== a7 && a7.$$typeof === l5;
106442
+ }
106443
+ function escape5(a7) {
106444
+ var b8 = { "=": "=0", ":": "=2" };
106445
+ return "$" + a7.replace(/[=:]/g, function(a8) {
106446
+ return b8[a8];
106447
+ });
106448
+ }
106449
+ var P = /\/+/g;
106450
+ function Q(a7, b8) {
106451
+ return "object" === typeof a7 && null !== a7 && null != a7.key ? escape5("" + a7.key) : b8.toString(36);
106452
+ }
106453
+ function R(a7, b8, e5, d7, c5) {
106454
+ var k6 = typeof a7;
106455
+ if ("undefined" === k6 || "boolean" === k6) a7 = null;
106456
+ var h5 = false;
106457
+ if (null === a7) h5 = true;
106458
+ else switch (k6) {
106459
+ case "string":
106460
+ case "number":
106461
+ h5 = true;
106462
+ break;
106463
+ case "object":
106464
+ switch (a7.$$typeof) {
106465
+ case l5:
106466
+ case n5:
106467
+ h5 = true;
106468
+ }
106469
+ }
106470
+ if (h5) return h5 = a7, c5 = c5(h5), a7 = "" === d7 ? "." + Q(h5, 0) : d7, I4(c5) ? (e5 = "", null != a7 && (e5 = a7.replace(P, "$&/") + "/"), R(c5, b8, e5, "", function(a8) {
106471
+ return a8;
106472
+ })) : null != c5 && (O3(c5) && (c5 = N(c5, e5 + (!c5.key || h5 && h5.key === c5.key ? "" : ("" + c5.key).replace(P, "$&/") + "/") + a7)), b8.push(c5)), 1;
106473
+ h5 = 0;
106474
+ d7 = "" === d7 ? "." : d7 + ":";
106475
+ if (I4(a7)) for (var g6 = 0; g6 < a7.length; g6++) {
106476
+ k6 = a7[g6];
106477
+ var f5 = d7 + Q(k6, g6);
106478
+ h5 += R(k6, b8, e5, f5, c5);
106479
+ }
106480
+ else if (f5 = A2(a7), "function" === typeof f5) for (a7 = f5.call(a7), g6 = 0; !(k6 = a7.next()).done; ) k6 = k6.value, f5 = d7 + Q(k6, g6++), h5 += R(k6, b8, e5, f5, c5);
106481
+ else if ("object" === k6) throw b8 = String(a7), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b8 ? "object with keys {" + Object.keys(a7).join(", ") + "}" : b8) + "). If you meant to render a collection of children, use an array instead.");
106482
+ return h5;
106483
+ }
106484
+ function S3(a7, b8, e5) {
106485
+ if (null == a7) return a7;
106486
+ var d7 = [], c5 = 0;
106487
+ R(a7, d7, "", "", function(a8) {
106488
+ return b8.call(e5, a8, c5++);
106489
+ });
106490
+ return d7;
106491
+ }
106492
+ function T3(a7) {
106493
+ if (-1 === a7._status) {
106494
+ var b8 = a7._result;
106495
+ b8 = b8();
106496
+ b8.then(function(b9) {
106497
+ if (0 === a7._status || -1 === a7._status) a7._status = 1, a7._result = b9;
106498
+ }, function(b9) {
106499
+ if (0 === a7._status || -1 === a7._status) a7._status = 2, a7._result = b9;
106500
+ });
106501
+ -1 === a7._status && (a7._status = 0, a7._result = b8);
106502
+ }
106503
+ if (1 === a7._status) return a7._result.default;
106504
+ throw a7._result;
106505
+ }
106506
+ var U2 = { current: null };
106507
+ var V = { transition: null };
106508
+ var W = { ReactCurrentDispatcher: U2, ReactCurrentBatchConfig: V, ReactCurrentOwner: K2 };
106509
+ function X2() {
106510
+ throw Error("act(...) is not supported in production builds of React.");
106511
+ }
106512
+ exports2.Children = { map: S3, forEach: function(a7, b8, e5) {
106513
+ S3(a7, function() {
106514
+ b8.apply(this, arguments);
106515
+ }, e5);
106516
+ }, count: function(a7) {
106517
+ var b8 = 0;
106518
+ S3(a7, function() {
106519
+ b8++;
106520
+ });
106521
+ return b8;
106522
+ }, toArray: function(a7) {
106523
+ return S3(a7, function(a8) {
106524
+ return a8;
106525
+ }) || [];
106526
+ }, only: function(a7) {
106527
+ if (!O3(a7)) throw Error("React.Children.only expected to receive a single React element child.");
106528
+ return a7;
106529
+ } };
106530
+ exports2.Component = E3;
106531
+ exports2.Fragment = p7;
106532
+ exports2.Profiler = r5;
106533
+ exports2.PureComponent = G2;
106534
+ exports2.StrictMode = q5;
106535
+ exports2.Suspense = w5;
106536
+ exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
106537
+ exports2.act = X2;
106538
+ exports2.cloneElement = function(a7, b8, e5) {
106539
+ if (null === a7 || void 0 === a7) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a7 + ".");
106540
+ var d7 = C2({}, a7.props), c5 = a7.key, k6 = a7.ref, h5 = a7._owner;
106541
+ if (null != b8) {
106542
+ void 0 !== b8.ref && (k6 = b8.ref, h5 = K2.current);
106543
+ void 0 !== b8.key && (c5 = "" + b8.key);
106544
+ if (a7.type && a7.type.defaultProps) var g6 = a7.type.defaultProps;
106545
+ for (f5 in b8) J2.call(b8, f5) && !L.hasOwnProperty(f5) && (d7[f5] = void 0 === b8[f5] && void 0 !== g6 ? g6[f5] : b8[f5]);
106546
+ }
106547
+ var f5 = arguments.length - 2;
106548
+ if (1 === f5) d7.children = e5;
106549
+ else if (1 < f5) {
106550
+ g6 = Array(f5);
106551
+ for (var m7 = 0; m7 < f5; m7++) g6[m7] = arguments[m7 + 2];
106552
+ d7.children = g6;
106553
+ }
106554
+ return { $$typeof: l5, type: a7.type, key: c5, ref: k6, props: d7, _owner: h5 };
106555
+ };
106556
+ exports2.createContext = function(a7) {
106557
+ a7 = { $$typeof: u5, _currentValue: a7, _currentValue2: a7, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
106558
+ a7.Provider = { $$typeof: t5, _context: a7 };
106559
+ return a7.Consumer = a7;
106560
+ };
106561
+ exports2.createElement = M;
106562
+ exports2.createFactory = function(a7) {
106563
+ var b8 = M.bind(null, a7);
106564
+ b8.type = a7;
106565
+ return b8;
106566
+ };
106567
+ exports2.createRef = function() {
106568
+ return { current: null };
106569
+ };
106570
+ exports2.forwardRef = function(a7) {
106571
+ return { $$typeof: v8, render: a7 };
106572
+ };
106573
+ exports2.isValidElement = O3;
106574
+ exports2.lazy = function(a7) {
106575
+ return { $$typeof: y2, _payload: { _status: -1, _result: a7 }, _init: T3 };
106576
+ };
106577
+ exports2.memo = function(a7, b8) {
106578
+ return { $$typeof: x5, type: a7, compare: void 0 === b8 ? null : b8 };
106579
+ };
106580
+ exports2.startTransition = function(a7) {
106581
+ var b8 = V.transition;
106582
+ V.transition = {};
106583
+ try {
106584
+ a7();
106585
+ } finally {
106586
+ V.transition = b8;
106587
+ }
106588
+ };
106589
+ exports2.unstable_act = X2;
106590
+ exports2.useCallback = function(a7, b8) {
106591
+ return U2.current.useCallback(a7, b8);
106592
+ };
106593
+ exports2.useContext = function(a7) {
106594
+ return U2.current.useContext(a7);
106595
+ };
106596
+ exports2.useDebugValue = function() {
106597
+ };
106598
+ exports2.useDeferredValue = function(a7) {
106599
+ return U2.current.useDeferredValue(a7);
106600
+ };
106601
+ exports2.useEffect = function(a7, b8) {
106602
+ return U2.current.useEffect(a7, b8);
106603
+ };
106604
+ exports2.useId = function() {
106605
+ return U2.current.useId();
106606
+ };
106607
+ exports2.useImperativeHandle = function(a7, b8, e5) {
106608
+ return U2.current.useImperativeHandle(a7, b8, e5);
106609
+ };
106610
+ exports2.useInsertionEffect = function(a7, b8) {
106611
+ return U2.current.useInsertionEffect(a7, b8);
106612
+ };
106613
+ exports2.useLayoutEffect = function(a7, b8) {
106614
+ return U2.current.useLayoutEffect(a7, b8);
106615
+ };
106616
+ exports2.useMemo = function(a7, b8) {
106617
+ return U2.current.useMemo(a7, b8);
106618
+ };
106619
+ exports2.useReducer = function(a7, b8, e5) {
106620
+ return U2.current.useReducer(a7, b8, e5);
106621
+ };
106622
+ exports2.useRef = function(a7) {
106623
+ return U2.current.useRef(a7);
106624
+ };
106625
+ exports2.useState = function(a7) {
106626
+ return U2.current.useState(a7);
106627
+ };
106628
+ exports2.useSyncExternalStore = function(a7, b8, e5) {
106629
+ return U2.current.useSyncExternalStore(a7, b8, e5);
106630
+ };
106631
+ exports2.useTransition = function() {
106632
+ return U2.current.useTransition();
106633
+ };
106634
+ exports2.version = "18.3.1";
106635
+ }
106636
+ });
106637
+
106638
+ // ../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js
106639
+ var require_react_development = __commonJS({
106640
+ "../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js"(exports2, module2) {
106641
+ "use strict";
106642
+ if (process.env.NODE_ENV !== "production") {
106643
+ (function() {
106644
+ "use strict";
106645
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
106646
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
106647
+ }
106648
+ var ReactVersion = "18.3.1";
106649
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
106650
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
106651
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
106652
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
106653
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
106654
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
106655
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
106656
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
106657
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
106658
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
106659
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
106660
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
106661
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
106662
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
106663
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
106664
+ function getIteratorFn(maybeIterable) {
106665
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
106666
+ return null;
106667
+ }
106668
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
106669
+ if (typeof maybeIterator === "function") {
106670
+ return maybeIterator;
106671
+ }
106672
+ return null;
106673
+ }
106674
+ var ReactCurrentDispatcher = {
106675
+ /**
106676
+ * @internal
106677
+ * @type {ReactComponent}
106678
+ */
106679
+ current: null
106680
+ };
106681
+ var ReactCurrentBatchConfig = {
106682
+ transition: null
106683
+ };
106684
+ var ReactCurrentActQueue = {
106685
+ current: null,
106686
+ // Used to reproduce behavior of `batchedUpdates` in legacy mode.
106687
+ isBatchingLegacy: false,
106688
+ didScheduleLegacyUpdate: false
106689
+ };
106690
+ var ReactCurrentOwner = {
106691
+ /**
106692
+ * @internal
106693
+ * @type {ReactComponent}
106694
+ */
106695
+ current: null
106696
+ };
106697
+ var ReactDebugCurrentFrame = {};
106698
+ var currentExtraStackFrame = null;
106699
+ function setExtraStackFrame(stack) {
106700
+ {
106701
+ currentExtraStackFrame = stack;
106702
+ }
106703
+ }
106704
+ {
106705
+ ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
106706
+ {
106707
+ currentExtraStackFrame = stack;
106708
+ }
106709
+ };
106710
+ ReactDebugCurrentFrame.getCurrentStack = null;
106711
+ ReactDebugCurrentFrame.getStackAddendum = function() {
106712
+ var stack = "";
106713
+ if (currentExtraStackFrame) {
106714
+ stack += currentExtraStackFrame;
106715
+ }
106716
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
106717
+ if (impl) {
106718
+ stack += impl() || "";
106719
+ }
106720
+ return stack;
106721
+ };
106722
+ }
106723
+ var enableScopeAPI = false;
106724
+ var enableCacheElement = false;
106725
+ var enableTransitionTracing = false;
106726
+ var enableLegacyHidden = false;
106727
+ var enableDebugTracing = false;
106728
+ var ReactSharedInternals = {
106729
+ ReactCurrentDispatcher,
106730
+ ReactCurrentBatchConfig,
106731
+ ReactCurrentOwner
106732
+ };
106733
+ {
106734
+ ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
106735
+ ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
106736
+ }
106737
+ function warn(format3) {
106738
+ {
106739
+ {
106740
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
106741
+ args[_key - 1] = arguments[_key];
106742
+ }
106743
+ printWarning("warn", format3, args);
106744
+ }
106745
+ }
106746
+ }
106747
+ function error2(format3) {
106748
+ {
106749
+ {
106750
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
106751
+ args[_key2 - 1] = arguments[_key2];
106752
+ }
106753
+ printWarning("error", format3, args);
106754
+ }
106755
+ }
106756
+ }
106757
+ function printWarning(level, format3, args) {
106758
+ {
106759
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
106760
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
106761
+ if (stack !== "") {
106762
+ format3 += "%s";
106763
+ args = args.concat([stack]);
106764
+ }
106765
+ var argsWithFormat = args.map(function(item) {
106766
+ return String(item);
106767
+ });
106768
+ argsWithFormat.unshift("Warning: " + format3);
106769
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
106770
+ }
106771
+ }
106772
+ var didWarnStateUpdateForUnmountedComponent = {};
106773
+ function warnNoop(publicInstance, callerName) {
106774
+ {
106775
+ var _constructor = publicInstance.constructor;
106776
+ var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
106777
+ var warningKey = componentName + "." + callerName;
106778
+ if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
106779
+ return;
106780
+ }
106781
+ error2("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName);
106782
+ didWarnStateUpdateForUnmountedComponent[warningKey] = true;
106783
+ }
106784
+ }
106785
+ var ReactNoopUpdateQueue = {
106786
+ /**
106787
+ * Checks whether or not this composite component is mounted.
106788
+ * @param {ReactClass} publicInstance The instance we want to test.
106789
+ * @return {boolean} True if mounted, false otherwise.
106790
+ * @protected
106791
+ * @final
106792
+ */
106793
+ isMounted: function(publicInstance) {
106794
+ return false;
106795
+ },
106796
+ /**
106797
+ * Forces an update. This should only be invoked when it is known with
106798
+ * certainty that we are **not** in a DOM transaction.
106799
+ *
106800
+ * You may want to call this when you know that some deeper aspect of the
106801
+ * component's state has changed but `setState` was not called.
106802
+ *
106803
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
106804
+ * `componentWillUpdate` and `componentDidUpdate`.
106805
+ *
106806
+ * @param {ReactClass} publicInstance The instance that should rerender.
106807
+ * @param {?function} callback Called after component is updated.
106808
+ * @param {?string} callerName name of the calling function in the public API.
106809
+ * @internal
106810
+ */
106811
+ enqueueForceUpdate: function(publicInstance, callback, callerName) {
106812
+ warnNoop(publicInstance, "forceUpdate");
106813
+ },
106814
+ /**
106815
+ * Replaces all of the state. Always use this or `setState` to mutate state.
106816
+ * You should treat `this.state` as immutable.
106817
+ *
106818
+ * There is no guarantee that `this.state` will be immediately updated, so
106819
+ * accessing `this.state` after calling this method may return the old value.
106820
+ *
106821
+ * @param {ReactClass} publicInstance The instance that should rerender.
106822
+ * @param {object} completeState Next state.
106823
+ * @param {?function} callback Called after component is updated.
106824
+ * @param {?string} callerName name of the calling function in the public API.
106825
+ * @internal
106826
+ */
106827
+ enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
106828
+ warnNoop(publicInstance, "replaceState");
106829
+ },
106830
+ /**
106831
+ * Sets a subset of the state. This only exists because _pendingState is
106832
+ * internal. This provides a merging strategy that is not available to deep
106833
+ * properties which is confusing. TODO: Expose pendingState or don't use it
106834
+ * during the merge.
106835
+ *
106836
+ * @param {ReactClass} publicInstance The instance that should rerender.
106837
+ * @param {object} partialState Next partial state to be merged with state.
106838
+ * @param {?function} callback Called after component is updated.
106839
+ * @param {?string} Name of the calling function in the public API.
106840
+ * @internal
106841
+ */
106842
+ enqueueSetState: function(publicInstance, partialState, callback, callerName) {
106843
+ warnNoop(publicInstance, "setState");
106844
+ }
106845
+ };
106846
+ var assign = Object.assign;
106847
+ var emptyObject = {};
106848
+ {
106849
+ Object.freeze(emptyObject);
106850
+ }
106851
+ function Component(props, context, updater) {
106852
+ this.props = props;
106853
+ this.context = context;
106854
+ this.refs = emptyObject;
106855
+ this.updater = updater || ReactNoopUpdateQueue;
106856
+ }
106857
+ Component.prototype.isReactComponent = {};
106858
+ Component.prototype.setState = function(partialState, callback) {
106859
+ if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
106860
+ throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
106861
+ }
106862
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
106863
+ };
106864
+ Component.prototype.forceUpdate = function(callback) {
106865
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
106866
+ };
106867
+ {
106868
+ var deprecatedAPIs = {
106869
+ isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
106870
+ replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
106871
+ };
106872
+ var defineDeprecationWarning = function(methodName, info2) {
106873
+ Object.defineProperty(Component.prototype, methodName, {
106874
+ get: function() {
106875
+ warn("%s(...) is deprecated in plain JavaScript React classes. %s", info2[0], info2[1]);
106876
+ return void 0;
106877
+ }
106878
+ });
106879
+ };
106880
+ for (var fnName in deprecatedAPIs) {
106881
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
106882
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
106883
+ }
106884
+ }
106885
+ }
106886
+ function ComponentDummy() {
106887
+ }
106888
+ ComponentDummy.prototype = Component.prototype;
106889
+ function PureComponent(props, context, updater) {
106890
+ this.props = props;
106891
+ this.context = context;
106892
+ this.refs = emptyObject;
106893
+ this.updater = updater || ReactNoopUpdateQueue;
106894
+ }
106895
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
106896
+ pureComponentPrototype.constructor = PureComponent;
106897
+ assign(pureComponentPrototype, Component.prototype);
106898
+ pureComponentPrototype.isPureReactComponent = true;
106899
+ function createRef() {
106900
+ var refObject = {
106901
+ current: null
106902
+ };
106903
+ {
106904
+ Object.seal(refObject);
106905
+ }
106906
+ return refObject;
106907
+ }
106908
+ var isArrayImpl = Array.isArray;
106909
+ function isArray(a7) {
106910
+ return isArrayImpl(a7);
106911
+ }
106912
+ function typeName(value) {
106913
+ {
106914
+ var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
106915
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
106916
+ return type;
106917
+ }
106918
+ }
106919
+ function willCoercionThrow(value) {
106920
+ {
106921
+ try {
106922
+ testStringCoercion(value);
106923
+ return false;
106924
+ } catch (e5) {
106925
+ return true;
106926
+ }
106927
+ }
106928
+ }
106929
+ function testStringCoercion(value) {
106930
+ return "" + value;
106931
+ }
106932
+ function checkKeyStringCoercion(value) {
106933
+ {
106934
+ if (willCoercionThrow(value)) {
106935
+ error2("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
106936
+ return testStringCoercion(value);
106937
+ }
106938
+ }
106939
+ }
106940
+ function getWrappedName(outerType, innerType, wrapperName) {
106941
+ var displayName = outerType.displayName;
106942
+ if (displayName) {
106943
+ return displayName;
106944
+ }
106945
+ var functionName = innerType.displayName || innerType.name || "";
106946
+ return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
106947
+ }
106948
+ function getContextName(type) {
106949
+ return type.displayName || "Context";
106950
+ }
106951
+ function getComponentNameFromType(type) {
106952
+ if (type == null) {
106953
+ return null;
106954
+ }
106955
+ {
106956
+ if (typeof type.tag === "number") {
106957
+ error2("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
106958
+ }
106959
+ }
106960
+ if (typeof type === "function") {
106961
+ return type.displayName || type.name || null;
106962
+ }
106963
+ if (typeof type === "string") {
106964
+ return type;
106965
+ }
106966
+ switch (type) {
106967
+ case REACT_FRAGMENT_TYPE:
106968
+ return "Fragment";
106969
+ case REACT_PORTAL_TYPE:
106970
+ return "Portal";
106971
+ case REACT_PROFILER_TYPE:
106972
+ return "Profiler";
106973
+ case REACT_STRICT_MODE_TYPE:
106974
+ return "StrictMode";
106975
+ case REACT_SUSPENSE_TYPE:
106976
+ return "Suspense";
106977
+ case REACT_SUSPENSE_LIST_TYPE:
106978
+ return "SuspenseList";
106979
+ }
106980
+ if (typeof type === "object") {
106981
+ switch (type.$$typeof) {
106982
+ case REACT_CONTEXT_TYPE:
106983
+ var context = type;
106984
+ return getContextName(context) + ".Consumer";
106985
+ case REACT_PROVIDER_TYPE:
106986
+ var provider = type;
106987
+ return getContextName(provider._context) + ".Provider";
106988
+ case REACT_FORWARD_REF_TYPE:
106989
+ return getWrappedName(type, type.render, "ForwardRef");
106990
+ case REACT_MEMO_TYPE:
106991
+ var outerName = type.displayName || null;
106992
+ if (outerName !== null) {
106993
+ return outerName;
106994
+ }
106995
+ return getComponentNameFromType(type.type) || "Memo";
106996
+ case REACT_LAZY_TYPE: {
106997
+ var lazyComponent = type;
106998
+ var payload = lazyComponent._payload;
106999
+ var init = lazyComponent._init;
107000
+ try {
107001
+ return getComponentNameFromType(init(payload));
107002
+ } catch (x5) {
107003
+ return null;
107004
+ }
107005
+ }
107006
+ }
107007
+ }
107008
+ return null;
107009
+ }
107010
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
107011
+ var RESERVED_PROPS = {
107012
+ key: true,
107013
+ ref: true,
107014
+ __self: true,
107015
+ __source: true
107016
+ };
107017
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
107018
+ {
107019
+ didWarnAboutStringRefs = {};
107020
+ }
107021
+ function hasValidRef(config) {
107022
+ {
107023
+ if (hasOwnProperty.call(config, "ref")) {
107024
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
107025
+ if (getter && getter.isReactWarning) {
107026
+ return false;
107027
+ }
107028
+ }
107029
+ }
107030
+ return config.ref !== void 0;
107031
+ }
107032
+ function hasValidKey(config) {
107033
+ {
107034
+ if (hasOwnProperty.call(config, "key")) {
107035
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
107036
+ if (getter && getter.isReactWarning) {
107037
+ return false;
107038
+ }
107039
+ }
107040
+ }
107041
+ return config.key !== void 0;
107042
+ }
107043
+ function defineKeyPropWarningGetter(props, displayName) {
107044
+ var warnAboutAccessingKey = function() {
107045
+ {
107046
+ if (!specialPropKeyWarningShown) {
107047
+ specialPropKeyWarningShown = true;
107048
+ error2("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
107049
+ }
107050
+ }
107051
+ };
107052
+ warnAboutAccessingKey.isReactWarning = true;
107053
+ Object.defineProperty(props, "key", {
107054
+ get: warnAboutAccessingKey,
107055
+ configurable: true
107056
+ });
107057
+ }
107058
+ function defineRefPropWarningGetter(props, displayName) {
107059
+ var warnAboutAccessingRef = function() {
107060
+ {
107061
+ if (!specialPropRefWarningShown) {
107062
+ specialPropRefWarningShown = true;
107063
+ error2("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
107064
+ }
107065
+ }
107066
+ };
107067
+ warnAboutAccessingRef.isReactWarning = true;
107068
+ Object.defineProperty(props, "ref", {
107069
+ get: warnAboutAccessingRef,
107070
+ configurable: true
107071
+ });
107072
+ }
107073
+ function warnIfStringRefCannotBeAutoConverted(config) {
107074
+ {
107075
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
107076
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
107077
+ if (!didWarnAboutStringRefs[componentName]) {
107078
+ error2('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
107079
+ didWarnAboutStringRefs[componentName] = true;
107080
+ }
107081
+ }
107082
+ }
107083
+ }
107084
+ var ReactElement = function(type, key, ref, self2, source, owner, props) {
107085
+ var element = {
107086
+ // This tag allows us to uniquely identify this as a React Element
107087
+ $$typeof: REACT_ELEMENT_TYPE,
107088
+ // Built-in properties that belong on the element
107089
+ type,
107090
+ key,
107091
+ ref,
107092
+ props,
107093
+ // Record the component responsible for creating this element.
107094
+ _owner: owner
107095
+ };
107096
+ {
107097
+ element._store = {};
107098
+ Object.defineProperty(element._store, "validated", {
107099
+ configurable: false,
107100
+ enumerable: false,
107101
+ writable: true,
107102
+ value: false
107103
+ });
107104
+ Object.defineProperty(element, "_self", {
107105
+ configurable: false,
107106
+ enumerable: false,
107107
+ writable: false,
107108
+ value: self2
107109
+ });
107110
+ Object.defineProperty(element, "_source", {
107111
+ configurable: false,
107112
+ enumerable: false,
107113
+ writable: false,
107114
+ value: source
107115
+ });
107116
+ if (Object.freeze) {
107117
+ Object.freeze(element.props);
107118
+ Object.freeze(element);
107119
+ }
107120
+ }
107121
+ return element;
107122
+ };
107123
+ function createElement(type, config, children) {
107124
+ var propName;
107125
+ var props = {};
107126
+ var key = null;
107127
+ var ref = null;
107128
+ var self2 = null;
107129
+ var source = null;
107130
+ if (config != null) {
107131
+ if (hasValidRef(config)) {
107132
+ ref = config.ref;
107133
+ {
107134
+ warnIfStringRefCannotBeAutoConverted(config);
107135
+ }
107136
+ }
107137
+ if (hasValidKey(config)) {
107138
+ {
107139
+ checkKeyStringCoercion(config.key);
107140
+ }
107141
+ key = "" + config.key;
107142
+ }
107143
+ self2 = config.__self === void 0 ? null : config.__self;
107144
+ source = config.__source === void 0 ? null : config.__source;
107145
+ for (propName in config) {
107146
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
107147
+ props[propName] = config[propName];
107148
+ }
107149
+ }
107150
+ }
107151
+ var childrenLength = arguments.length - 2;
107152
+ if (childrenLength === 1) {
107153
+ props.children = children;
107154
+ } else if (childrenLength > 1) {
107155
+ var childArray = Array(childrenLength);
107156
+ for (var i5 = 0; i5 < childrenLength; i5++) {
107157
+ childArray[i5] = arguments[i5 + 2];
107158
+ }
107159
+ {
107160
+ if (Object.freeze) {
107161
+ Object.freeze(childArray);
107162
+ }
107163
+ }
107164
+ props.children = childArray;
107165
+ }
107166
+ if (type && type.defaultProps) {
107167
+ var defaultProps = type.defaultProps;
107168
+ for (propName in defaultProps) {
107169
+ if (props[propName] === void 0) {
107170
+ props[propName] = defaultProps[propName];
107171
+ }
107172
+ }
107173
+ }
107174
+ {
107175
+ if (key || ref) {
107176
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
107177
+ if (key) {
107178
+ defineKeyPropWarningGetter(props, displayName);
107179
+ }
107180
+ if (ref) {
107181
+ defineRefPropWarningGetter(props, displayName);
107182
+ }
107183
+ }
107184
+ }
107185
+ return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
107186
+ }
107187
+ function cloneAndReplaceKey(oldElement, newKey) {
107188
+ var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
107189
+ return newElement;
107190
+ }
107191
+ function cloneElement(element, config, children) {
107192
+ if (element === null || element === void 0) {
107193
+ throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
107194
+ }
107195
+ var propName;
107196
+ var props = assign({}, element.props);
107197
+ var key = element.key;
107198
+ var ref = element.ref;
107199
+ var self2 = element._self;
107200
+ var source = element._source;
107201
+ var owner = element._owner;
107202
+ if (config != null) {
107203
+ if (hasValidRef(config)) {
107204
+ ref = config.ref;
107205
+ owner = ReactCurrentOwner.current;
107206
+ }
107207
+ if (hasValidKey(config)) {
107208
+ {
107209
+ checkKeyStringCoercion(config.key);
107210
+ }
107211
+ key = "" + config.key;
107212
+ }
107213
+ var defaultProps;
107214
+ if (element.type && element.type.defaultProps) {
107215
+ defaultProps = element.type.defaultProps;
107216
+ }
107217
+ for (propName in config) {
107218
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
107219
+ if (config[propName] === void 0 && defaultProps !== void 0) {
107220
+ props[propName] = defaultProps[propName];
107221
+ } else {
107222
+ props[propName] = config[propName];
107223
+ }
107224
+ }
107225
+ }
107226
+ }
107227
+ var childrenLength = arguments.length - 2;
107228
+ if (childrenLength === 1) {
107229
+ props.children = children;
107230
+ } else if (childrenLength > 1) {
107231
+ var childArray = Array(childrenLength);
107232
+ for (var i5 = 0; i5 < childrenLength; i5++) {
107233
+ childArray[i5] = arguments[i5 + 2];
107234
+ }
107235
+ props.children = childArray;
107236
+ }
107237
+ return ReactElement(element.type, key, ref, self2, source, owner, props);
107238
+ }
107239
+ function isValidElement(object2) {
107240
+ return typeof object2 === "object" && object2 !== null && object2.$$typeof === REACT_ELEMENT_TYPE;
107241
+ }
107242
+ var SEPARATOR = ".";
107243
+ var SUBSEPARATOR = ":";
107244
+ function escape5(key) {
107245
+ var escapeRegex = /[=:]/g;
107246
+ var escaperLookup = {
107247
+ "=": "=0",
107248
+ ":": "=2"
107249
+ };
107250
+ var escapedString = key.replace(escapeRegex, function(match2) {
107251
+ return escaperLookup[match2];
107252
+ });
107253
+ return "$" + escapedString;
107254
+ }
107255
+ var didWarnAboutMaps = false;
107256
+ var userProvidedKeyEscapeRegex = /\/+/g;
107257
+ function escapeUserProvidedKey(text) {
107258
+ return text.replace(userProvidedKeyEscapeRegex, "$&/");
107259
+ }
107260
+ function getElementKey(element, index4) {
107261
+ if (typeof element === "object" && element !== null && element.key != null) {
107262
+ {
107263
+ checkKeyStringCoercion(element.key);
107264
+ }
107265
+ return escape5("" + element.key);
107266
+ }
107267
+ return index4.toString(36);
107268
+ }
107269
+ function mapIntoArray(children, array2, escapedPrefix, nameSoFar, callback) {
107270
+ var type = typeof children;
107271
+ if (type === "undefined" || type === "boolean") {
107272
+ children = null;
107273
+ }
107274
+ var invokeCallback = false;
107275
+ if (children === null) {
107276
+ invokeCallback = true;
107277
+ } else {
107278
+ switch (type) {
107279
+ case "string":
107280
+ case "number":
107281
+ invokeCallback = true;
107282
+ break;
107283
+ case "object":
107284
+ switch (children.$$typeof) {
107285
+ case REACT_ELEMENT_TYPE:
107286
+ case REACT_PORTAL_TYPE:
107287
+ invokeCallback = true;
107288
+ }
107289
+ }
107290
+ }
107291
+ if (invokeCallback) {
107292
+ var _child = children;
107293
+ var mappedChild = callback(_child);
107294
+ var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
107295
+ if (isArray(mappedChild)) {
107296
+ var escapedChildKey = "";
107297
+ if (childKey != null) {
107298
+ escapedChildKey = escapeUserProvidedKey(childKey) + "/";
107299
+ }
107300
+ mapIntoArray(mappedChild, array2, escapedChildKey, "", function(c5) {
107301
+ return c5;
107302
+ });
107303
+ } else if (mappedChild != null) {
107304
+ if (isValidElement(mappedChild)) {
107305
+ {
107306
+ if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
107307
+ checkKeyStringCoercion(mappedChild.key);
107308
+ }
107309
+ }
107310
+ mappedChild = cloneAndReplaceKey(
107311
+ mappedChild,
107312
+ // Keep both the (mapped) and old keys if they differ, just as
107313
+ // traverseAllChildren used to do for objects as children
107314
+ escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
107315
+ (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
107316
+ // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
107317
+ // eslint-disable-next-line react-internal/safe-string-coercion
107318
+ escapeUserProvidedKey("" + mappedChild.key) + "/"
107319
+ ) : "") + childKey
107320
+ );
107321
+ }
107322
+ array2.push(mappedChild);
107323
+ }
107324
+ return 1;
107325
+ }
107326
+ var child;
107327
+ var nextName;
107328
+ var subtreeCount = 0;
107329
+ var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
107330
+ if (isArray(children)) {
107331
+ for (var i5 = 0; i5 < children.length; i5++) {
107332
+ child = children[i5];
107333
+ nextName = nextNamePrefix + getElementKey(child, i5);
107334
+ subtreeCount += mapIntoArray(child, array2, escapedPrefix, nextName, callback);
107335
+ }
107336
+ } else {
107337
+ var iteratorFn = getIteratorFn(children);
107338
+ if (typeof iteratorFn === "function") {
107339
+ var iterableChildren = children;
107340
+ {
107341
+ if (iteratorFn === iterableChildren.entries) {
107342
+ if (!didWarnAboutMaps) {
107343
+ warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
107344
+ }
107345
+ didWarnAboutMaps = true;
107346
+ }
107347
+ }
107348
+ var iterator = iteratorFn.call(iterableChildren);
107349
+ var step;
107350
+ var ii2 = 0;
107351
+ while (!(step = iterator.next()).done) {
107352
+ child = step.value;
107353
+ nextName = nextNamePrefix + getElementKey(child, ii2++);
107354
+ subtreeCount += mapIntoArray(child, array2, escapedPrefix, nextName, callback);
107355
+ }
107356
+ } else if (type === "object") {
107357
+ var childrenString = String(children);
107358
+ throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
107359
+ }
107360
+ }
107361
+ return subtreeCount;
107362
+ }
107363
+ function mapChildren(children, func, context) {
107364
+ if (children == null) {
107365
+ return children;
107366
+ }
107367
+ var result = [];
107368
+ var count2 = 0;
107369
+ mapIntoArray(children, result, "", "", function(child) {
107370
+ return func.call(context, child, count2++);
107371
+ });
107372
+ return result;
107373
+ }
107374
+ function countChildren(children) {
107375
+ var n5 = 0;
107376
+ mapChildren(children, function() {
107377
+ n5++;
107378
+ });
107379
+ return n5;
107380
+ }
107381
+ function forEachChildren(children, forEachFunc, forEachContext) {
107382
+ mapChildren(children, function() {
107383
+ forEachFunc.apply(this, arguments);
107384
+ }, forEachContext);
107385
+ }
107386
+ function toArray(children) {
107387
+ return mapChildren(children, function(child) {
107388
+ return child;
107389
+ }) || [];
107390
+ }
107391
+ function onlyChild(children) {
107392
+ if (!isValidElement(children)) {
107393
+ throw new Error("React.Children.only expected to receive a single React element child.");
107394
+ }
107395
+ return children;
107396
+ }
107397
+ function createContext(defaultValue) {
107398
+ var context = {
107399
+ $$typeof: REACT_CONTEXT_TYPE,
107400
+ // As a workaround to support multiple concurrent renderers, we categorize
107401
+ // some renderers as primary and others as secondary. We only expect
107402
+ // there to be two concurrent renderers at most: React Native (primary) and
107403
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
107404
+ // Secondary renderers store their context values on separate fields.
107405
+ _currentValue: defaultValue,
107406
+ _currentValue2: defaultValue,
107407
+ // Used to track how many concurrent renderers this context currently
107408
+ // supports within in a single renderer. Such as parallel server rendering.
107409
+ _threadCount: 0,
107410
+ // These are circular
107411
+ Provider: null,
107412
+ Consumer: null,
107413
+ // Add these to use same hidden class in VM as ServerContext
107414
+ _defaultValue: null,
107415
+ _globalName: null
107416
+ };
107417
+ context.Provider = {
107418
+ $$typeof: REACT_PROVIDER_TYPE,
107419
+ _context: context
107420
+ };
107421
+ var hasWarnedAboutUsingNestedContextConsumers = false;
107422
+ var hasWarnedAboutUsingConsumerProvider = false;
107423
+ var hasWarnedAboutDisplayNameOnConsumer = false;
107424
+ {
107425
+ var Consumer = {
107426
+ $$typeof: REACT_CONTEXT_TYPE,
107427
+ _context: context
107428
+ };
107429
+ Object.defineProperties(Consumer, {
107430
+ Provider: {
107431
+ get: function() {
107432
+ if (!hasWarnedAboutUsingConsumerProvider) {
107433
+ hasWarnedAboutUsingConsumerProvider = true;
107434
+ error2("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
107435
+ }
107436
+ return context.Provider;
107437
+ },
107438
+ set: function(_Provider) {
107439
+ context.Provider = _Provider;
107440
+ }
107441
+ },
107442
+ _currentValue: {
107443
+ get: function() {
107444
+ return context._currentValue;
107445
+ },
107446
+ set: function(_currentValue) {
107447
+ context._currentValue = _currentValue;
107448
+ }
107449
+ },
107450
+ _currentValue2: {
107451
+ get: function() {
107452
+ return context._currentValue2;
107453
+ },
107454
+ set: function(_currentValue2) {
107455
+ context._currentValue2 = _currentValue2;
107456
+ }
107457
+ },
107458
+ _threadCount: {
107459
+ get: function() {
107460
+ return context._threadCount;
107461
+ },
107462
+ set: function(_threadCount) {
107463
+ context._threadCount = _threadCount;
107464
+ }
107465
+ },
107466
+ Consumer: {
107467
+ get: function() {
107468
+ if (!hasWarnedAboutUsingNestedContextConsumers) {
107469
+ hasWarnedAboutUsingNestedContextConsumers = true;
107470
+ error2("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
107471
+ }
107472
+ return context.Consumer;
107473
+ }
107474
+ },
107475
+ displayName: {
107476
+ get: function() {
107477
+ return context.displayName;
107478
+ },
107479
+ set: function(displayName) {
107480
+ if (!hasWarnedAboutDisplayNameOnConsumer) {
107481
+ warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
107482
+ hasWarnedAboutDisplayNameOnConsumer = true;
107483
+ }
107484
+ }
107485
+ }
107486
+ });
107487
+ context.Consumer = Consumer;
107488
+ }
107489
+ {
107490
+ context._currentRenderer = null;
107491
+ context._currentRenderer2 = null;
107492
+ }
107493
+ return context;
107494
+ }
107495
+ var Uninitialized = -1;
107496
+ var Pending = 0;
107497
+ var Resolved = 1;
107498
+ var Rejected = 2;
107499
+ function lazyInitializer(payload) {
107500
+ if (payload._status === Uninitialized) {
107501
+ var ctor = payload._result;
107502
+ var thenable = ctor();
107503
+ thenable.then(function(moduleObject2) {
107504
+ if (payload._status === Pending || payload._status === Uninitialized) {
107505
+ var resolved = payload;
107506
+ resolved._status = Resolved;
107507
+ resolved._result = moduleObject2;
107508
+ }
107509
+ }, function(error3) {
107510
+ if (payload._status === Pending || payload._status === Uninitialized) {
107511
+ var rejected = payload;
107512
+ rejected._status = Rejected;
107513
+ rejected._result = error3;
107514
+ }
107515
+ });
107516
+ if (payload._status === Uninitialized) {
107517
+ var pending = payload;
107518
+ pending._status = Pending;
107519
+ pending._result = thenable;
107520
+ }
107521
+ }
107522
+ if (payload._status === Resolved) {
107523
+ var moduleObject = payload._result;
107524
+ {
107525
+ if (moduleObject === void 0) {
107526
+ error2("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject);
107527
+ }
107528
+ }
107529
+ {
107530
+ if (!("default" in moduleObject)) {
107531
+ error2("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
107532
+ }
107533
+ }
107534
+ return moduleObject.default;
107535
+ } else {
107536
+ throw payload._result;
107537
+ }
107538
+ }
107539
+ function lazy(ctor) {
107540
+ var payload = {
107541
+ // We use these fields to store the result.
107542
+ _status: Uninitialized,
107543
+ _result: ctor
107544
+ };
107545
+ var lazyType2 = {
107546
+ $$typeof: REACT_LAZY_TYPE,
107547
+ _payload: payload,
107548
+ _init: lazyInitializer
107549
+ };
107550
+ {
107551
+ var defaultProps;
107552
+ var propTypes;
107553
+ Object.defineProperties(lazyType2, {
107554
+ defaultProps: {
107555
+ configurable: true,
107556
+ get: function() {
107557
+ return defaultProps;
107558
+ },
107559
+ set: function(newDefaultProps) {
107560
+ error2("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
107561
+ defaultProps = newDefaultProps;
107562
+ Object.defineProperty(lazyType2, "defaultProps", {
107563
+ enumerable: true
107564
+ });
107565
+ }
107566
+ },
107567
+ propTypes: {
107568
+ configurable: true,
107569
+ get: function() {
107570
+ return propTypes;
107571
+ },
107572
+ set: function(newPropTypes) {
107573
+ error2("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
107574
+ propTypes = newPropTypes;
107575
+ Object.defineProperty(lazyType2, "propTypes", {
107576
+ enumerable: true
107577
+ });
107578
+ }
107579
+ }
107580
+ });
107581
+ }
107582
+ return lazyType2;
107583
+ }
107584
+ function forwardRef(render6) {
107585
+ {
107586
+ if (render6 != null && render6.$$typeof === REACT_MEMO_TYPE) {
107587
+ error2("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
107588
+ } else if (typeof render6 !== "function") {
107589
+ error2("forwardRef requires a render function but was given %s.", render6 === null ? "null" : typeof render6);
107590
+ } else {
107591
+ if (render6.length !== 0 && render6.length !== 2) {
107592
+ error2("forwardRef render functions accept exactly two parameters: props and ref. %s", render6.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
107593
+ }
107594
+ }
107595
+ if (render6 != null) {
107596
+ if (render6.defaultProps != null || render6.propTypes != null) {
107597
+ error2("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
107598
+ }
107599
+ }
107600
+ }
107601
+ var elementType = {
107602
+ $$typeof: REACT_FORWARD_REF_TYPE,
107603
+ render: render6
107604
+ };
107605
+ {
107606
+ var ownName;
107607
+ Object.defineProperty(elementType, "displayName", {
107608
+ enumerable: false,
107609
+ configurable: true,
107610
+ get: function() {
107611
+ return ownName;
107612
+ },
107613
+ set: function(name2) {
107614
+ ownName = name2;
107615
+ if (!render6.name && !render6.displayName) {
107616
+ render6.displayName = name2;
107617
+ }
107618
+ }
107619
+ });
107620
+ }
107621
+ return elementType;
107622
+ }
107623
+ var REACT_MODULE_REFERENCE;
107624
+ {
107625
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
107626
+ }
107627
+ function isValidElementType(type) {
107628
+ if (typeof type === "string" || typeof type === "function") {
107629
+ return true;
107630
+ }
107631
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
107632
+ return true;
107633
+ }
107634
+ if (typeof type === "object" && type !== null) {
107635
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
107636
+ // types supported by any Flight configuration anywhere since
107637
+ // we don't know which Flight build this will end up being used
107638
+ // with.
107639
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
107640
+ return true;
107641
+ }
107642
+ }
107643
+ return false;
107644
+ }
107645
+ function memo(type, compare) {
107646
+ {
107647
+ if (!isValidElementType(type)) {
107648
+ error2("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
107649
+ }
107650
+ }
107651
+ var elementType = {
107652
+ $$typeof: REACT_MEMO_TYPE,
107653
+ type,
107654
+ compare: compare === void 0 ? null : compare
107655
+ };
107656
+ {
107657
+ var ownName;
107658
+ Object.defineProperty(elementType, "displayName", {
107659
+ enumerable: false,
107660
+ configurable: true,
107661
+ get: function() {
107662
+ return ownName;
107663
+ },
107664
+ set: function(name2) {
107665
+ ownName = name2;
107666
+ if (!type.name && !type.displayName) {
107667
+ type.displayName = name2;
107668
+ }
107669
+ }
107670
+ });
107671
+ }
107672
+ return elementType;
107673
+ }
107674
+ function resolveDispatcher() {
107675
+ var dispatcher = ReactCurrentDispatcher.current;
107676
+ {
107677
+ if (dispatcher === null) {
107678
+ error2("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
107679
+ }
107680
+ }
107681
+ return dispatcher;
107682
+ }
107683
+ function useContext(Context) {
107684
+ var dispatcher = resolveDispatcher();
107685
+ {
107686
+ if (Context._context !== void 0) {
107687
+ var realContext = Context._context;
107688
+ if (realContext.Consumer === Context) {
107689
+ error2("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");
107690
+ } else if (realContext.Provider === Context) {
107691
+ error2("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
107692
+ }
107693
+ }
107694
+ }
107695
+ return dispatcher.useContext(Context);
107696
+ }
107697
+ function useState(initialState) {
107698
+ var dispatcher = resolveDispatcher();
107699
+ return dispatcher.useState(initialState);
107700
+ }
107701
+ function useReducer3(reducer, initialArg, init) {
107702
+ var dispatcher = resolveDispatcher();
107703
+ return dispatcher.useReducer(reducer, initialArg, init);
107704
+ }
107705
+ function useRef(initialValue) {
107706
+ var dispatcher = resolveDispatcher();
107707
+ return dispatcher.useRef(initialValue);
107708
+ }
107709
+ function useEffect3(create, deps) {
107710
+ var dispatcher = resolveDispatcher();
107711
+ return dispatcher.useEffect(create, deps);
107712
+ }
107713
+ function useInsertionEffect(create, deps) {
107714
+ var dispatcher = resolveDispatcher();
107715
+ return dispatcher.useInsertionEffect(create, deps);
107716
+ }
107717
+ function useLayoutEffect(create, deps) {
107718
+ var dispatcher = resolveDispatcher();
107719
+ return dispatcher.useLayoutEffect(create, deps);
107720
+ }
107721
+ function useCallback(callback, deps) {
107722
+ var dispatcher = resolveDispatcher();
107723
+ return dispatcher.useCallback(callback, deps);
107724
+ }
107725
+ function useMemo(create, deps) {
107726
+ var dispatcher = resolveDispatcher();
107727
+ return dispatcher.useMemo(create, deps);
107728
+ }
107729
+ function useImperativeHandle(ref, create, deps) {
107730
+ var dispatcher = resolveDispatcher();
107731
+ return dispatcher.useImperativeHandle(ref, create, deps);
107732
+ }
107733
+ function useDebugValue(value, formatterFn) {
107734
+ {
107735
+ var dispatcher = resolveDispatcher();
107736
+ return dispatcher.useDebugValue(value, formatterFn);
107737
+ }
107738
+ }
107739
+ function useTransition() {
107740
+ var dispatcher = resolveDispatcher();
107741
+ return dispatcher.useTransition();
107742
+ }
107743
+ function useDeferredValue(value) {
107744
+ var dispatcher = resolveDispatcher();
107745
+ return dispatcher.useDeferredValue(value);
107746
+ }
107747
+ function useId() {
107748
+ var dispatcher = resolveDispatcher();
107749
+ return dispatcher.useId();
107750
+ }
107751
+ function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
107752
+ var dispatcher = resolveDispatcher();
107753
+ return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
107754
+ }
107755
+ var disabledDepth = 0;
107756
+ var prevLog;
107757
+ var prevInfo;
107758
+ var prevWarn;
107759
+ var prevError;
107760
+ var prevGroup;
107761
+ var prevGroupCollapsed;
107762
+ var prevGroupEnd;
107763
+ function disabledLog() {
107764
+ }
107765
+ disabledLog.__reactDisabledLog = true;
107766
+ function disableLogs() {
107767
+ {
107768
+ if (disabledDepth === 0) {
107769
+ prevLog = console.log;
107770
+ prevInfo = console.info;
107771
+ prevWarn = console.warn;
107772
+ prevError = console.error;
107773
+ prevGroup = console.group;
107774
+ prevGroupCollapsed = console.groupCollapsed;
107775
+ prevGroupEnd = console.groupEnd;
107776
+ var props = {
107777
+ configurable: true,
107778
+ enumerable: true,
107779
+ value: disabledLog,
107780
+ writable: true
107781
+ };
107782
+ Object.defineProperties(console, {
107783
+ info: props,
107784
+ log: props,
107785
+ warn: props,
107786
+ error: props,
107787
+ group: props,
107788
+ groupCollapsed: props,
107789
+ groupEnd: props
107790
+ });
107791
+ }
107792
+ disabledDepth++;
107793
+ }
107794
+ }
107795
+ function reenableLogs() {
107796
+ {
107797
+ disabledDepth--;
107798
+ if (disabledDepth === 0) {
107799
+ var props = {
107800
+ configurable: true,
107801
+ enumerable: true,
107802
+ writable: true
107803
+ };
107804
+ Object.defineProperties(console, {
107805
+ log: assign({}, props, {
107806
+ value: prevLog
107807
+ }),
107808
+ info: assign({}, props, {
107809
+ value: prevInfo
107810
+ }),
107811
+ warn: assign({}, props, {
107812
+ value: prevWarn
107813
+ }),
107814
+ error: assign({}, props, {
107815
+ value: prevError
107816
+ }),
107817
+ group: assign({}, props, {
107818
+ value: prevGroup
107819
+ }),
107820
+ groupCollapsed: assign({}, props, {
107821
+ value: prevGroupCollapsed
107822
+ }),
107823
+ groupEnd: assign({}, props, {
107824
+ value: prevGroupEnd
107825
+ })
107826
+ });
107827
+ }
107828
+ if (disabledDepth < 0) {
107829
+ error2("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
107830
+ }
107831
+ }
107832
+ }
107833
+ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
107834
+ var prefix2;
107835
+ function describeBuiltInComponentFrame(name2, source, ownerFn) {
107836
+ {
107837
+ if (prefix2 === void 0) {
107838
+ try {
107839
+ throw Error();
107840
+ } catch (x5) {
107841
+ var match2 = x5.stack.trim().match(/\n( *(at )?)/);
107842
+ prefix2 = match2 && match2[1] || "";
107843
+ }
107844
+ }
107845
+ return "\n" + prefix2 + name2;
107846
+ }
107847
+ }
107848
+ var reentry = false;
107849
+ var componentFrameCache;
107850
+ {
107851
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
107852
+ componentFrameCache = new PossiblyWeakMap();
107853
+ }
107854
+ function describeNativeComponentFrame(fn, construct) {
107855
+ if (!fn || reentry) {
107856
+ return "";
107857
+ }
107858
+ {
107859
+ var frame = componentFrameCache.get(fn);
107860
+ if (frame !== void 0) {
107861
+ return frame;
107862
+ }
107863
+ }
107864
+ var control;
107865
+ reentry = true;
107866
+ var previousPrepareStackTrace = Error.prepareStackTrace;
107867
+ Error.prepareStackTrace = void 0;
107868
+ var previousDispatcher;
107869
+ {
107870
+ previousDispatcher = ReactCurrentDispatcher$1.current;
107871
+ ReactCurrentDispatcher$1.current = null;
107872
+ disableLogs();
107873
+ }
107874
+ try {
107875
+ if (construct) {
107876
+ var Fake = function() {
107877
+ throw Error();
107878
+ };
107879
+ Object.defineProperty(Fake.prototype, "props", {
107880
+ set: function() {
107881
+ throw Error();
107882
+ }
107883
+ });
107884
+ if (typeof Reflect === "object" && Reflect.construct) {
107885
+ try {
107886
+ Reflect.construct(Fake, []);
107887
+ } catch (x5) {
107888
+ control = x5;
107889
+ }
107890
+ Reflect.construct(fn, [], Fake);
107891
+ } else {
107892
+ try {
107893
+ Fake.call();
107894
+ } catch (x5) {
107895
+ control = x5;
107896
+ }
107897
+ fn.call(Fake.prototype);
107898
+ }
107899
+ } else {
107900
+ try {
107901
+ throw Error();
107902
+ } catch (x5) {
107903
+ control = x5;
107904
+ }
107905
+ fn();
107906
+ }
107907
+ } catch (sample) {
107908
+ if (sample && control && typeof sample.stack === "string") {
107909
+ var sampleLines = sample.stack.split("\n");
107910
+ var controlLines = control.stack.split("\n");
107911
+ var s5 = sampleLines.length - 1;
107912
+ var c5 = controlLines.length - 1;
107913
+ while (s5 >= 1 && c5 >= 0 && sampleLines[s5] !== controlLines[c5]) {
107914
+ c5--;
107915
+ }
107916
+ for (; s5 >= 1 && c5 >= 0; s5--, c5--) {
107917
+ if (sampleLines[s5] !== controlLines[c5]) {
107918
+ if (s5 !== 1 || c5 !== 1) {
107919
+ do {
107920
+ s5--;
107921
+ c5--;
107922
+ if (c5 < 0 || sampleLines[s5] !== controlLines[c5]) {
107923
+ var _frame = "\n" + sampleLines[s5].replace(" at new ", " at ");
107924
+ if (fn.displayName && _frame.includes("<anonymous>")) {
107925
+ _frame = _frame.replace("<anonymous>", fn.displayName);
107926
+ }
107927
+ {
107928
+ if (typeof fn === "function") {
107929
+ componentFrameCache.set(fn, _frame);
107930
+ }
107931
+ }
107932
+ return _frame;
107933
+ }
107934
+ } while (s5 >= 1 && c5 >= 0);
107935
+ }
107936
+ break;
107937
+ }
107938
+ }
107939
+ }
107940
+ } finally {
107941
+ reentry = false;
107942
+ {
107943
+ ReactCurrentDispatcher$1.current = previousDispatcher;
107944
+ reenableLogs();
107945
+ }
107946
+ Error.prepareStackTrace = previousPrepareStackTrace;
107947
+ }
107948
+ var name2 = fn ? fn.displayName || fn.name : "";
107949
+ var syntheticFrame = name2 ? describeBuiltInComponentFrame(name2) : "";
107950
+ {
107951
+ if (typeof fn === "function") {
107952
+ componentFrameCache.set(fn, syntheticFrame);
107953
+ }
107954
+ }
107955
+ return syntheticFrame;
107956
+ }
107957
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
107958
+ {
107959
+ return describeNativeComponentFrame(fn, false);
107960
+ }
107961
+ }
107962
+ function shouldConstruct(Component2) {
107963
+ var prototype = Component2.prototype;
107964
+ return !!(prototype && prototype.isReactComponent);
107965
+ }
107966
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
107967
+ if (type == null) {
107968
+ return "";
107969
+ }
107970
+ if (typeof type === "function") {
107971
+ {
107972
+ return describeNativeComponentFrame(type, shouldConstruct(type));
107973
+ }
107974
+ }
107975
+ if (typeof type === "string") {
107976
+ return describeBuiltInComponentFrame(type);
107977
+ }
107978
+ switch (type) {
107979
+ case REACT_SUSPENSE_TYPE:
107980
+ return describeBuiltInComponentFrame("Suspense");
107981
+ case REACT_SUSPENSE_LIST_TYPE:
107982
+ return describeBuiltInComponentFrame("SuspenseList");
107983
+ }
107984
+ if (typeof type === "object") {
107985
+ switch (type.$$typeof) {
107986
+ case REACT_FORWARD_REF_TYPE:
107987
+ return describeFunctionComponentFrame(type.render);
107988
+ case REACT_MEMO_TYPE:
107989
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
107990
+ case REACT_LAZY_TYPE: {
107991
+ var lazyComponent = type;
107992
+ var payload = lazyComponent._payload;
107993
+ var init = lazyComponent._init;
107994
+ try {
107995
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
107996
+ } catch (x5) {
107997
+ }
107998
+ }
107999
+ }
108000
+ }
108001
+ return "";
108002
+ }
108003
+ var loggedTypeFailures = {};
108004
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
108005
+ function setCurrentlyValidatingElement(element) {
108006
+ {
108007
+ if (element) {
108008
+ var owner = element._owner;
108009
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
108010
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
108011
+ } else {
108012
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
108013
+ }
108014
+ }
108015
+ }
108016
+ function checkPropTypes(typeSpecs, values2, location, componentName, element) {
108017
+ {
108018
+ var has = Function.call.bind(hasOwnProperty);
108019
+ for (var typeSpecName in typeSpecs) {
108020
+ if (has(typeSpecs, typeSpecName)) {
108021
+ var error$1 = void 0;
108022
+ try {
108023
+ if (typeof typeSpecs[typeSpecName] !== "function") {
108024
+ var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
108025
+ err.name = "Invariant Violation";
108026
+ throw err;
108027
+ }
108028
+ error$1 = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
108029
+ } catch (ex) {
108030
+ error$1 = ex;
108031
+ }
108032
+ if (error$1 && !(error$1 instanceof Error)) {
108033
+ setCurrentlyValidatingElement(element);
108034
+ error2("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
108035
+ setCurrentlyValidatingElement(null);
108036
+ }
108037
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
108038
+ loggedTypeFailures[error$1.message] = true;
108039
+ setCurrentlyValidatingElement(element);
108040
+ error2("Failed %s type: %s", location, error$1.message);
108041
+ setCurrentlyValidatingElement(null);
108042
+ }
108043
+ }
108044
+ }
108045
+ }
108046
+ }
108047
+ function setCurrentlyValidatingElement$1(element) {
108048
+ {
108049
+ if (element) {
108050
+ var owner = element._owner;
108051
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
108052
+ setExtraStackFrame(stack);
108053
+ } else {
108054
+ setExtraStackFrame(null);
108055
+ }
108056
+ }
108057
+ }
108058
+ var propTypesMisspellWarningShown;
108059
+ {
108060
+ propTypesMisspellWarningShown = false;
108061
+ }
108062
+ function getDeclarationErrorAddendum() {
108063
+ if (ReactCurrentOwner.current) {
108064
+ var name2 = getComponentNameFromType(ReactCurrentOwner.current.type);
108065
+ if (name2) {
108066
+ return "\n\nCheck the render method of `" + name2 + "`.";
108067
+ }
108068
+ }
108069
+ return "";
108070
+ }
108071
+ function getSourceInfoErrorAddendum(source) {
108072
+ if (source !== void 0) {
108073
+ var fileName = source.fileName.replace(/^.*[\\\/]/, "");
108074
+ var lineNumber = source.lineNumber;
108075
+ return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
108076
+ }
108077
+ return "";
108078
+ }
108079
+ function getSourceInfoErrorAddendumForProps(elementProps) {
108080
+ if (elementProps !== null && elementProps !== void 0) {
108081
+ return getSourceInfoErrorAddendum(elementProps.__source);
108082
+ }
108083
+ return "";
108084
+ }
108085
+ var ownerHasKeyUseWarning = {};
108086
+ function getCurrentComponentErrorInfo(parentType) {
108087
+ var info2 = getDeclarationErrorAddendum();
108088
+ if (!info2) {
108089
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
108090
+ if (parentName) {
108091
+ info2 = "\n\nCheck the top-level render call using <" + parentName + ">.";
108092
+ }
108093
+ }
108094
+ return info2;
108095
+ }
108096
+ function validateExplicitKey(element, parentType) {
108097
+ if (!element._store || element._store.validated || element.key != null) {
108098
+ return;
108099
+ }
108100
+ element._store.validated = true;
108101
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
108102
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
108103
+ return;
108104
+ }
108105
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
108106
+ var childOwner = "";
108107
+ if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
108108
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
108109
+ }
108110
+ {
108111
+ setCurrentlyValidatingElement$1(element);
108112
+ error2('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
108113
+ setCurrentlyValidatingElement$1(null);
108114
+ }
108115
+ }
108116
+ function validateChildKeys(node, parentType) {
108117
+ if (typeof node !== "object") {
108118
+ return;
108119
+ }
108120
+ if (isArray(node)) {
108121
+ for (var i5 = 0; i5 < node.length; i5++) {
108122
+ var child = node[i5];
108123
+ if (isValidElement(child)) {
108124
+ validateExplicitKey(child, parentType);
108125
+ }
108126
+ }
108127
+ } else if (isValidElement(node)) {
108128
+ if (node._store) {
108129
+ node._store.validated = true;
108130
+ }
108131
+ } else if (node) {
108132
+ var iteratorFn = getIteratorFn(node);
108133
+ if (typeof iteratorFn === "function") {
108134
+ if (iteratorFn !== node.entries) {
108135
+ var iterator = iteratorFn.call(node);
108136
+ var step;
108137
+ while (!(step = iterator.next()).done) {
108138
+ if (isValidElement(step.value)) {
108139
+ validateExplicitKey(step.value, parentType);
108140
+ }
108141
+ }
108142
+ }
108143
+ }
108144
+ }
108145
+ }
108146
+ function validatePropTypes(element) {
108147
+ {
108148
+ var type = element.type;
108149
+ if (type === null || type === void 0 || typeof type === "string") {
108150
+ return;
108151
+ }
108152
+ var propTypes;
108153
+ if (typeof type === "function") {
108154
+ propTypes = type.propTypes;
108155
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
108156
+ // Inner props are checked in the reconciler.
108157
+ type.$$typeof === REACT_MEMO_TYPE)) {
108158
+ propTypes = type.propTypes;
108159
+ } else {
108160
+ return;
108161
+ }
108162
+ if (propTypes) {
108163
+ var name2 = getComponentNameFromType(type);
108164
+ checkPropTypes(propTypes, element.props, "prop", name2, element);
108165
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
108166
+ propTypesMisspellWarningShown = true;
108167
+ var _name = getComponentNameFromType(type);
108168
+ error2("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
108169
+ }
108170
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
108171
+ error2("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
108172
+ }
108173
+ }
108174
+ }
108175
+ function validateFragmentProps(fragment2) {
108176
+ {
108177
+ var keys = Object.keys(fragment2.props);
108178
+ for (var i5 = 0; i5 < keys.length; i5++) {
108179
+ var key = keys[i5];
108180
+ if (key !== "children" && key !== "key") {
108181
+ setCurrentlyValidatingElement$1(fragment2);
108182
+ error2("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
108183
+ setCurrentlyValidatingElement$1(null);
108184
+ break;
108185
+ }
108186
+ }
108187
+ if (fragment2.ref !== null) {
108188
+ setCurrentlyValidatingElement$1(fragment2);
108189
+ error2("Invalid attribute `ref` supplied to `React.Fragment`.");
108190
+ setCurrentlyValidatingElement$1(null);
108191
+ }
108192
+ }
108193
+ }
108194
+ function createElementWithValidation(type, props, children) {
108195
+ var validType = isValidElementType(type);
108196
+ if (!validType) {
108197
+ var info2 = "";
108198
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
108199
+ info2 += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
108200
+ }
108201
+ var sourceInfo = getSourceInfoErrorAddendumForProps(props);
108202
+ if (sourceInfo) {
108203
+ info2 += sourceInfo;
108204
+ } else {
108205
+ info2 += getDeclarationErrorAddendum();
108206
+ }
108207
+ var typeString;
108208
+ if (type === null) {
108209
+ typeString = "null";
108210
+ } else if (isArray(type)) {
108211
+ typeString = "array";
108212
+ } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
108213
+ typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
108214
+ info2 = " Did you accidentally export a JSX literal instead of a component?";
108215
+ } else {
108216
+ typeString = typeof type;
108217
+ }
108218
+ {
108219
+ error2("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info2);
108220
+ }
108221
+ }
108222
+ var element = createElement.apply(this, arguments);
108223
+ if (element == null) {
108224
+ return element;
108225
+ }
108226
+ if (validType) {
108227
+ for (var i5 = 2; i5 < arguments.length; i5++) {
108228
+ validateChildKeys(arguments[i5], type);
108229
+ }
108230
+ }
108231
+ if (type === REACT_FRAGMENT_TYPE) {
108232
+ validateFragmentProps(element);
108233
+ } else {
108234
+ validatePropTypes(element);
108235
+ }
108236
+ return element;
108237
+ }
108238
+ var didWarnAboutDeprecatedCreateFactory = false;
108239
+ function createFactoryWithValidation(type) {
108240
+ var validatedFactory = createElementWithValidation.bind(null, type);
108241
+ validatedFactory.type = type;
108242
+ {
108243
+ if (!didWarnAboutDeprecatedCreateFactory) {
108244
+ didWarnAboutDeprecatedCreateFactory = true;
108245
+ warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
108246
+ }
108247
+ Object.defineProperty(validatedFactory, "type", {
108248
+ enumerable: false,
108249
+ get: function() {
108250
+ warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
108251
+ Object.defineProperty(this, "type", {
108252
+ value: type
108253
+ });
108254
+ return type;
108255
+ }
108256
+ });
108257
+ }
108258
+ return validatedFactory;
108259
+ }
108260
+ function cloneElementWithValidation(element, props, children) {
108261
+ var newElement = cloneElement.apply(this, arguments);
108262
+ for (var i5 = 2; i5 < arguments.length; i5++) {
108263
+ validateChildKeys(arguments[i5], newElement.type);
108264
+ }
108265
+ validatePropTypes(newElement);
108266
+ return newElement;
108267
+ }
108268
+ function startTransition(scope, options) {
108269
+ var prevTransition = ReactCurrentBatchConfig.transition;
108270
+ ReactCurrentBatchConfig.transition = {};
108271
+ var currentTransition = ReactCurrentBatchConfig.transition;
108272
+ {
108273
+ ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
108274
+ }
108275
+ try {
108276
+ scope();
108277
+ } finally {
108278
+ ReactCurrentBatchConfig.transition = prevTransition;
108279
+ {
108280
+ if (prevTransition === null && currentTransition._updatedFibers) {
108281
+ var updatedFibersCount = currentTransition._updatedFibers.size;
108282
+ if (updatedFibersCount > 10) {
108283
+ warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
108284
+ }
108285
+ currentTransition._updatedFibers.clear();
108286
+ }
108287
+ }
108288
+ }
108289
+ }
108290
+ var didWarnAboutMessageChannel = false;
108291
+ var enqueueTaskImpl = null;
108292
+ function enqueueTask(task) {
108293
+ if (enqueueTaskImpl === null) {
108294
+ try {
108295
+ var requireString = ("require" + Math.random()).slice(0, 7);
108296
+ var nodeRequire = module2 && module2[requireString];
108297
+ enqueueTaskImpl = nodeRequire.call(module2, "timers").setImmediate;
108298
+ } catch (_err) {
108299
+ enqueueTaskImpl = function(callback) {
108300
+ {
108301
+ if (didWarnAboutMessageChannel === false) {
108302
+ didWarnAboutMessageChannel = true;
108303
+ if (typeof MessageChannel === "undefined") {
108304
+ error2("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.");
108305
+ }
108306
+ }
108307
+ }
108308
+ var channel = new MessageChannel();
108309
+ channel.port1.onmessage = callback;
108310
+ channel.port2.postMessage(void 0);
108311
+ };
108312
+ }
108313
+ }
108314
+ return enqueueTaskImpl(task);
108315
+ }
108316
+ var actScopeDepth = 0;
108317
+ var didWarnNoAwaitAct = false;
108318
+ function act(callback) {
108319
+ {
108320
+ var prevActScopeDepth = actScopeDepth;
108321
+ actScopeDepth++;
108322
+ if (ReactCurrentActQueue.current === null) {
108323
+ ReactCurrentActQueue.current = [];
108324
+ }
108325
+ var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
108326
+ var result;
108327
+ try {
108328
+ ReactCurrentActQueue.isBatchingLegacy = true;
108329
+ result = callback();
108330
+ if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
108331
+ var queue = ReactCurrentActQueue.current;
108332
+ if (queue !== null) {
108333
+ ReactCurrentActQueue.didScheduleLegacyUpdate = false;
108334
+ flushActQueue(queue);
108335
+ }
108336
+ }
108337
+ } catch (error3) {
108338
+ popActScope(prevActScopeDepth);
108339
+ throw error3;
108340
+ } finally {
108341
+ ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
108342
+ }
108343
+ if (result !== null && typeof result === "object" && typeof result.then === "function") {
108344
+ var thenableResult = result;
108345
+ var wasAwaited = false;
108346
+ var thenable = {
108347
+ then: function(resolve, reject) {
108348
+ wasAwaited = true;
108349
+ thenableResult.then(function(returnValue2) {
108350
+ popActScope(prevActScopeDepth);
108351
+ if (actScopeDepth === 0) {
108352
+ recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
108353
+ } else {
108354
+ resolve(returnValue2);
108355
+ }
108356
+ }, function(error3) {
108357
+ popActScope(prevActScopeDepth);
108358
+ reject(error3);
108359
+ });
108360
+ }
108361
+ };
108362
+ {
108363
+ if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
108364
+ Promise.resolve().then(function() {
108365
+ }).then(function() {
108366
+ if (!wasAwaited) {
108367
+ didWarnNoAwaitAct = true;
108368
+ error2("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);");
108369
+ }
108370
+ });
108371
+ }
108372
+ }
108373
+ return thenable;
108374
+ } else {
108375
+ var returnValue = result;
108376
+ popActScope(prevActScopeDepth);
108377
+ if (actScopeDepth === 0) {
108378
+ var _queue4 = ReactCurrentActQueue.current;
108379
+ if (_queue4 !== null) {
108380
+ flushActQueue(_queue4);
108381
+ ReactCurrentActQueue.current = null;
108382
+ }
108383
+ var _thenable = {
108384
+ then: function(resolve, reject) {
108385
+ if (ReactCurrentActQueue.current === null) {
108386
+ ReactCurrentActQueue.current = [];
108387
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
108388
+ } else {
108389
+ resolve(returnValue);
108390
+ }
108391
+ }
108392
+ };
108393
+ return _thenable;
108394
+ } else {
108395
+ var _thenable2 = {
108396
+ then: function(resolve, reject) {
108397
+ resolve(returnValue);
108398
+ }
108399
+ };
108400
+ return _thenable2;
108401
+ }
108402
+ }
108403
+ }
108404
+ }
108405
+ function popActScope(prevActScopeDepth) {
108406
+ {
108407
+ if (prevActScopeDepth !== actScopeDepth - 1) {
108408
+ error2("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
108409
+ }
108410
+ actScopeDepth = prevActScopeDepth;
108411
+ }
108412
+ }
108413
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
108414
+ {
108415
+ var queue = ReactCurrentActQueue.current;
108416
+ if (queue !== null) {
108417
+ try {
108418
+ flushActQueue(queue);
108419
+ enqueueTask(function() {
108420
+ if (queue.length === 0) {
108421
+ ReactCurrentActQueue.current = null;
108422
+ resolve(returnValue);
108423
+ } else {
108424
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
108425
+ }
108426
+ });
108427
+ } catch (error3) {
108428
+ reject(error3);
108429
+ }
108430
+ } else {
108431
+ resolve(returnValue);
108432
+ }
108433
+ }
108434
+ }
108435
+ var isFlushing = false;
108436
+ function flushActQueue(queue) {
108437
+ {
108438
+ if (!isFlushing) {
108439
+ isFlushing = true;
108440
+ var i5 = 0;
108441
+ try {
108442
+ for (; i5 < queue.length; i5++) {
108443
+ var callback = queue[i5];
108444
+ do {
108445
+ callback = callback(true);
108446
+ } while (callback !== null);
108447
+ }
108448
+ queue.length = 0;
108449
+ } catch (error3) {
108450
+ queue = queue.slice(i5 + 1);
108451
+ throw error3;
108452
+ } finally {
108453
+ isFlushing = false;
108454
+ }
108455
+ }
108456
+ }
108457
+ }
108458
+ var createElement$1 = createElementWithValidation;
108459
+ var cloneElement$1 = cloneElementWithValidation;
108460
+ var createFactory = createFactoryWithValidation;
108461
+ var Children = {
108462
+ map: mapChildren,
108463
+ forEach: forEachChildren,
108464
+ count: countChildren,
108465
+ toArray,
108466
+ only: onlyChild
108467
+ };
108468
+ exports2.Children = Children;
108469
+ exports2.Component = Component;
108470
+ exports2.Fragment = REACT_FRAGMENT_TYPE;
108471
+ exports2.Profiler = REACT_PROFILER_TYPE;
108472
+ exports2.PureComponent = PureComponent;
108473
+ exports2.StrictMode = REACT_STRICT_MODE_TYPE;
108474
+ exports2.Suspense = REACT_SUSPENSE_TYPE;
108475
+ exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
108476
+ exports2.act = act;
108477
+ exports2.cloneElement = cloneElement$1;
108478
+ exports2.createContext = createContext;
108479
+ exports2.createElement = createElement$1;
108480
+ exports2.createFactory = createFactory;
108481
+ exports2.createRef = createRef;
108482
+ exports2.forwardRef = forwardRef;
108483
+ exports2.isValidElement = isValidElement;
108484
+ exports2.lazy = lazy;
108485
+ exports2.memo = memo;
108486
+ exports2.startTransition = startTransition;
108487
+ exports2.unstable_act = act;
108488
+ exports2.useCallback = useCallback;
108489
+ exports2.useContext = useContext;
108490
+ exports2.useDebugValue = useDebugValue;
108491
+ exports2.useDeferredValue = useDeferredValue;
108492
+ exports2.useEffect = useEffect3;
108493
+ exports2.useId = useId;
108494
+ exports2.useImperativeHandle = useImperativeHandle;
108495
+ exports2.useInsertionEffect = useInsertionEffect;
108496
+ exports2.useLayoutEffect = useLayoutEffect;
108497
+ exports2.useMemo = useMemo;
108498
+ exports2.useReducer = useReducer3;
108499
+ exports2.useRef = useRef;
108500
+ exports2.useState = useState;
108501
+ exports2.useSyncExternalStore = useSyncExternalStore;
108502
+ exports2.useTransition = useTransition;
108503
+ exports2.version = ReactVersion;
108504
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
108505
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
108506
+ }
108507
+ })();
108508
+ }
108509
+ }
108510
+ });
108511
+
108512
+ // ../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js
108513
+ var require_react = __commonJS({
108514
+ "../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"(exports2, module2) {
108515
+ "use strict";
108516
+ if (process.env.NODE_ENV === "production") {
108517
+ module2.exports = require_react_production_min();
108518
+ } else {
108519
+ module2.exports = require_react_development();
108520
+ }
108521
+ }
108522
+ });
108523
+
108524
+ // ../drizzle-orm/dist/expo-sqlite/migrator.js
108525
+ var migrator_exports5 = {};
108526
+ __export(migrator_exports5, {
108527
+ migrate: () => migrate5,
108528
+ useMigrations: () => useMigrations
108529
+ });
108530
+ async function readMigrationFiles2({ journal, migrations }) {
108531
+ const migrationQueries = [];
108532
+ for await (const journalEntry of journal.entries) {
108533
+ const query = migrations[`m${journalEntry.idx.toString().padStart(4, "0")}`];
108534
+ if (!query) {
108535
+ throw new Error(`Missing migration: ${journalEntry.tag}`);
108536
+ }
108537
+ try {
108538
+ const result = query.split("--> statement-breakpoint").map((it) => {
108539
+ return it;
108540
+ });
108541
+ migrationQueries.push({
108542
+ sql: result,
108543
+ bps: journalEntry.breakpoints,
108544
+ folderMillis: journalEntry.when,
108545
+ hash: ""
108546
+ });
108547
+ } catch {
108548
+ throw new Error(`Failed to parse migration: ${journalEntry.tag}`);
108549
+ }
108550
+ }
108551
+ return migrationQueries;
108552
+ }
108553
+ async function migrate5(db2, config) {
108554
+ const migrations = await readMigrationFiles2(config);
108555
+ return db2.dialect.migrate(migrations, db2.session);
108556
+ }
108557
+ var import_react, useMigrations;
108558
+ var init_migrator6 = __esm({
108559
+ "../drizzle-orm/dist/expo-sqlite/migrator.js"() {
108560
+ "use strict";
108561
+ import_react = __toESM(require_react(), 1);
108562
+ useMigrations = (db2, migrations) => {
108563
+ const initialState = {
108564
+ success: false,
108565
+ error: void 0
108566
+ };
108567
+ const fetchReducer = (state2, action) => {
108568
+ switch (action.type) {
108569
+ case "migrating": {
108570
+ return { ...initialState };
108571
+ }
108572
+ case "migrated": {
108573
+ return { ...initialState, success: action.payload };
108574
+ }
108575
+ case "error": {
108576
+ return { ...initialState, error: action.payload };
108577
+ }
108578
+ default: {
108579
+ return state2;
108580
+ }
108581
+ }
108582
+ };
108583
+ const [state, dispatch] = (0, import_react.useReducer)(fetchReducer, initialState);
108584
+ (0, import_react.useEffect)(() => {
108585
+ dispatch({ type: "migrating" });
108586
+ migrate5(db2, migrations).then(() => {
108587
+ dispatch({ type: "migrated", payload: true });
108588
+ }).catch((error2) => {
108589
+ dispatch({ type: "error", payload: error2 });
108590
+ });
108591
+ }, []);
108592
+ return state;
108593
+ };
108594
+ }
108595
+ });
108596
+
108597
+ // ../drizzle-orm/dist/libsql/migrator.js
108598
+ var migrator_exports6 = {};
108599
+ __export(migrator_exports6, {
108600
+ migrate: () => migrate6
108601
+ });
108602
+ async function migrate6(db2, config) {
108603
+ const migrations = readMigrationFiles(config);
108604
+ const migrationsTable = config === void 0 ? "__drizzle_migrations" : typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
108605
+ const migrationTableCreate = sql`
108606
+ CREATE TABLE IF NOT EXISTS ${sql.identifier(migrationsTable)} (
108607
+ id SERIAL PRIMARY KEY,
108608
+ hash text NOT NULL,
108609
+ created_at numeric
108610
+ )
108611
+ `;
108612
+ await db2.session.run(migrationTableCreate);
108613
+ const dbMigrations = await db2.values(
108614
+ sql`SELECT id, hash, created_at FROM ${sql.identifier(migrationsTable)} ORDER BY created_at DESC LIMIT 1`
108615
+ );
108616
+ const lastDbMigration = dbMigrations[0] ?? void 0;
108617
+ const statementToBatch = [];
108618
+ for (const migration of migrations) {
108619
+ if (!lastDbMigration || Number(lastDbMigration[2]) < migration.folderMillis) {
108620
+ for (const stmt of migration.sql) {
108621
+ statementToBatch.push(db2.run(sql.raw(stmt)));
108622
+ }
108623
+ statementToBatch.push(
108624
+ db2.run(
108625
+ sql`INSERT INTO ${sql.identifier(migrationsTable)} ("hash", "created_at") VALUES(${migration.hash}, ${migration.folderMillis})`
108626
+ )
108627
+ );
108628
+ }
108629
+ }
108630
+ await db2.session.batch(statementToBatch);
108631
+ }
108632
+ var init_migrator7 = __esm({
108633
+ "../drizzle-orm/dist/libsql/migrator.js"() {
108634
+ "use strict";
108635
+ init_migrator();
108636
+ init_sql();
108637
+ }
108638
+ });
108639
+
108640
+ // ../drizzle-orm/dist/mysql-proxy/migrator.js
108641
+ var migrator_exports7 = {};
108642
+ __export(migrator_exports7, {
108643
+ migrate: () => migrate7
108644
+ });
108645
+ async function migrate7(db2, callback, config) {
108646
+ const migrations = readMigrationFiles(config);
108647
+ const migrationsTable = config.migrationsTable ?? "__drizzle_migrations";
108648
+ const migrationTableCreate = sql`
108649
+ create table if not exists ${sql.identifier(migrationsTable)} (
108650
+ id serial primary key,
108651
+ hash text not null,
108652
+ created_at bigint
108653
+ )
108654
+ `;
108655
+ await db2.execute(migrationTableCreate);
108656
+ const dbMigrations = await db2.select({
108657
+ id: sql.raw("id"),
108658
+ hash: sql.raw("hash"),
108659
+ created_at: sql.raw("created_at")
108660
+ }).from(sql.identifier(migrationsTable).getSQL()).orderBy(
108661
+ sql.raw("created_at desc")
108662
+ ).limit(1);
108663
+ const lastDbMigration = dbMigrations[0];
108664
+ const queriesToRun = [];
108665
+ for (const migration of migrations) {
108666
+ if (!lastDbMigration || Number(lastDbMigration.created_at) < migration.folderMillis) {
108667
+ queriesToRun.push(
108668
+ ...migration.sql,
108669
+ `insert into ${sql.identifier(migrationsTable).value} (\`hash\`, \`created_at\`) values('${migration.hash}', '${migration.folderMillis}')`
108670
+ );
108671
+ }
108672
+ }
108673
+ await callback(queriesToRun);
108674
+ }
108675
+ var init_migrator8 = __esm({
108676
+ "../drizzle-orm/dist/mysql-proxy/migrator.js"() {
108677
+ "use strict";
108678
+ init_migrator();
108679
+ init_sql();
108680
+ }
108681
+ });
108682
+
108683
+ // ../drizzle-orm/dist/mysql2/migrator.js
108684
+ var migrator_exports8 = {};
108685
+ __export(migrator_exports8, {
108686
+ migrate: () => migrate8
108687
+ });
108688
+ async function migrate8(db2, config) {
108689
+ const migrations = readMigrationFiles(config);
108690
+ await db2.dialect.migrate(migrations, db2.session, config);
108691
+ }
108692
+ var init_migrator9 = __esm({
108693
+ "../drizzle-orm/dist/mysql2/migrator.js"() {
108694
+ "use strict";
108695
+ init_migrator();
108696
+ }
108697
+ });
108698
+
108699
+ // ../drizzle-orm/dist/neon-http/migrator.js
108700
+ var migrator_exports9 = {};
108701
+ __export(migrator_exports9, {
108702
+ migrate: () => migrate9
108703
+ });
108704
+ async function migrate9(db2, config) {
108705
+ const migrations = readMigrationFiles(config);
108706
+ const migrationsTable = typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
108707
+ const migrationsSchema = typeof config === "string" ? "drizzle" : config.migrationsSchema ?? "drizzle";
108708
+ const migrationTableCreate = sql`
108709
+ CREATE TABLE IF NOT EXISTS ${sql.identifier(migrationsSchema)}.${sql.identifier(migrationsTable)} (
108710
+ id SERIAL PRIMARY KEY,
108711
+ hash text NOT NULL,
108712
+ created_at bigint
108713
+ )
108714
+ `;
108715
+ await db2.session.execute(sql`CREATE SCHEMA IF NOT EXISTS ${sql.identifier(migrationsSchema)}`);
108716
+ await db2.session.execute(migrationTableCreate);
108717
+ const dbMigrations = await db2.session.all(
108718
+ sql`select id, hash, created_at from ${sql.identifier(migrationsSchema)}.${sql.identifier(migrationsTable)} order by created_at desc limit 1`
108719
+ );
108720
+ const lastDbMigration = dbMigrations[0];
108721
+ const rowsToInsert = [];
108722
+ for await (const migration of migrations) {
108723
+ if (!lastDbMigration || Number(lastDbMigration.created_at) < migration.folderMillis) {
108724
+ for (const stmt of migration.sql) {
108725
+ await db2.session.execute(sql.raw(stmt));
108726
+ }
108727
+ rowsToInsert.push(
108728
+ sql`insert into ${sql.identifier(migrationsSchema)}.${sql.identifier(migrationsTable)} ("hash", "created_at") values(${migration.hash}, ${migration.folderMillis})`
108729
+ );
108730
+ }
108731
+ }
108732
+ for await (const rowToInsert of rowsToInsert) {
108733
+ await db2.session.execute(rowToInsert);
108734
+ }
108735
+ }
108736
+ var init_migrator10 = __esm({
108737
+ "../drizzle-orm/dist/neon-http/migrator.js"() {
108738
+ "use strict";
108739
+ init_migrator();
108740
+ init_sql();
108741
+ }
108742
+ });
108743
+
108744
+ // ../drizzle-orm/dist/neon-serverless/migrator.js
108745
+ var migrator_exports10 = {};
108746
+ __export(migrator_exports10, {
108747
+ migrate: () => migrate10
108748
+ });
108749
+ async function migrate10(db2, config) {
108750
+ const migrations = readMigrationFiles(config);
108751
+ await db2.dialect.migrate(migrations, db2.session, config);
108752
+ }
108753
+ var init_migrator11 = __esm({
108754
+ "../drizzle-orm/dist/neon-serverless/migrator.js"() {
108755
+ "use strict";
108756
+ init_migrator();
108757
+ }
108758
+ });
108759
+
108760
+ // ../drizzle-orm/dist/node-postgres/migrator.js
108761
+ var migrator_exports11 = {};
108762
+ __export(migrator_exports11, {
108763
+ migrate: () => migrate11
108764
+ });
108765
+ async function migrate11(db2, config) {
108766
+ const migrations = readMigrationFiles(config);
108767
+ await db2.dialect.migrate(migrations, db2.session, config);
108768
+ }
108769
+ var init_migrator12 = __esm({
108770
+ "../drizzle-orm/dist/node-postgres/migrator.js"() {
108771
+ "use strict";
108772
+ init_migrator();
108773
+ }
108774
+ });
108775
+
108776
+ // ../drizzle-orm/dist/op-sqlite/migrator.js
108777
+ var migrator_exports12 = {};
108778
+ __export(migrator_exports12, {
108779
+ migrate: () => migrate12,
108780
+ useMigrations: () => useMigrations2
108781
+ });
108782
+ async function readMigrationFiles3({ journal, migrations }) {
108783
+ const migrationQueries = [];
108784
+ for await (const journalEntry of journal.entries) {
108785
+ const query = migrations[`m${journalEntry.idx.toString().padStart(4, "0")}`];
108786
+ if (!query) {
108787
+ throw new Error(`Missing migration: ${journalEntry.tag}`);
108788
+ }
108789
+ try {
108790
+ const result = query.split("--> statement-breakpoint").map((it) => {
108791
+ return it;
108792
+ });
108793
+ migrationQueries.push({
108794
+ sql: result,
108795
+ bps: journalEntry.breakpoints,
108796
+ folderMillis: journalEntry.when,
108797
+ hash: ""
108798
+ });
108799
+ } catch {
108800
+ throw new Error(`Failed to parse migration: ${journalEntry.tag}`);
108801
+ }
108802
+ }
108803
+ return migrationQueries;
108804
+ }
108805
+ async function migrate12(db2, config) {
108806
+ const migrations = await readMigrationFiles3(config);
108807
+ return db2.dialect.migrate(migrations, db2.session);
108808
+ }
108809
+ var import_react2, useMigrations2;
108810
+ var init_migrator13 = __esm({
108811
+ "../drizzle-orm/dist/op-sqlite/migrator.js"() {
108812
+ "use strict";
108813
+ import_react2 = __toESM(require_react(), 1);
108814
+ useMigrations2 = (db2, migrations) => {
108815
+ const initialState = {
108816
+ success: false,
108817
+ error: void 0
108818
+ };
108819
+ const fetchReducer = (state2, action) => {
108820
+ switch (action.type) {
108821
+ case "migrating": {
108822
+ return { ...initialState };
108823
+ }
108824
+ case "migrated": {
108825
+ return { ...initialState, success: action.payload };
108826
+ }
108827
+ case "error": {
108828
+ return { ...initialState, error: action.payload };
108829
+ }
108830
+ default: {
108831
+ return state2;
108832
+ }
108833
+ }
108834
+ };
108835
+ const [state, dispatch] = (0, import_react2.useReducer)(fetchReducer, initialState);
108836
+ (0, import_react2.useEffect)(() => {
108837
+ dispatch({ type: "migrating" });
108838
+ migrate12(db2, migrations).then(() => {
108839
+ dispatch({ type: "migrated", payload: true });
108840
+ }).catch((error2) => {
108841
+ dispatch({ type: "error", payload: error2 });
108842
+ });
108843
+ }, []);
108844
+ return state;
108845
+ };
108846
+ }
108847
+ });
108848
+
108849
+ // ../drizzle-orm/dist/pg-proxy/migrator.js
108850
+ var migrator_exports13 = {};
108851
+ __export(migrator_exports13, {
108852
+ migrate: () => migrate13
108853
+ });
108854
+ async function migrate13(db2, callback, config) {
108855
+ const migrations = readMigrationFiles(config);
108856
+ const migrationTableCreate = sql`
108857
+ CREATE TABLE IF NOT EXISTS "drizzle"."__drizzle_migrations" (
108858
+ id SERIAL PRIMARY KEY,
108859
+ hash text NOT NULL,
108860
+ created_at numeric
108861
+ )
108862
+ `;
108863
+ await db2.execute(sql`CREATE SCHEMA IF NOT EXISTS "drizzle"`);
108864
+ await db2.execute(migrationTableCreate);
108865
+ const dbMigrations = await db2.execute(
108866
+ sql`SELECT id, hash, created_at FROM "drizzle"."__drizzle_migrations" ORDER BY created_at DESC LIMIT 1`
108867
+ );
108868
+ const lastDbMigration = dbMigrations[0] ?? void 0;
108869
+ const queriesToRun = [];
108870
+ for (const migration of migrations) {
108871
+ if (!lastDbMigration || Number(lastDbMigration.created_at) < migration.folderMillis) {
108872
+ queriesToRun.push(
108873
+ ...migration.sql,
108874
+ `INSERT INTO "drizzle"."__drizzle_migrations" ("hash", "created_at") VALUES('${migration.hash}', '${migration.folderMillis}')`
108875
+ );
108876
+ }
108877
+ }
108878
+ await callback(queriesToRun);
108879
+ }
108880
+ var init_migrator14 = __esm({
108881
+ "../drizzle-orm/dist/pg-proxy/migrator.js"() {
108882
+ "use strict";
108883
+ init_migrator();
108884
+ init_sql();
108885
+ }
108886
+ });
108887
+
108888
+ // ../drizzle-orm/dist/pglite/migrator.js
108889
+ var migrator_exports14 = {};
108890
+ __export(migrator_exports14, {
108891
+ migrate: () => migrate14
108892
+ });
108893
+ async function migrate14(db2, config) {
108894
+ const migrations = readMigrationFiles(config);
108895
+ await db2.dialect.migrate(migrations, db2.session, config);
108896
+ }
108897
+ var init_migrator15 = __esm({
108898
+ "../drizzle-orm/dist/pglite/migrator.js"() {
108899
+ "use strict";
108900
+ init_migrator();
108901
+ }
108902
+ });
108903
+
108904
+ // ../drizzle-orm/dist/planetscale-serverless/migrator.js
108905
+ var migrator_exports15 = {};
108906
+ __export(migrator_exports15, {
108907
+ migrate: () => migrate15
108908
+ });
108909
+ async function migrate15(db2, config) {
108910
+ const migrations = readMigrationFiles(config);
108911
+ await db2.dialect.migrate(migrations, db2.session, config);
108912
+ }
108913
+ var init_migrator16 = __esm({
108914
+ "../drizzle-orm/dist/planetscale-serverless/migrator.js"() {
108915
+ "use strict";
108916
+ init_migrator();
108917
+ }
108918
+ });
108919
+
108920
+ // ../drizzle-orm/dist/postgres-js/migrator.js
108921
+ var migrator_exports16 = {};
108922
+ __export(migrator_exports16, {
108923
+ migrate: () => migrate16
108924
+ });
108925
+ async function migrate16(db2, config) {
108926
+ const migrations = readMigrationFiles(config);
108927
+ await db2.dialect.migrate(migrations, db2.session, config);
108928
+ }
108929
+ var init_migrator17 = __esm({
108930
+ "../drizzle-orm/dist/postgres-js/migrator.js"() {
108931
+ "use strict";
108932
+ init_migrator();
108933
+ }
108934
+ });
108935
+
108936
+ // ../drizzle-orm/dist/sqlite-proxy/migrator.js
108937
+ var migrator_exports17 = {};
108938
+ __export(migrator_exports17, {
108939
+ migrate: () => migrate17
108940
+ });
108941
+ async function migrate17(db2, callback, config) {
108942
+ const migrations = readMigrationFiles(config);
108943
+ const migrationsTable = typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
108944
+ const migrationTableCreate = sql`
108945
+ CREATE TABLE IF NOT EXISTS ${sql.identifier(migrationsTable)} (
108946
+ id SERIAL PRIMARY KEY,
108947
+ hash text NOT NULL,
108948
+ created_at numeric
108949
+ )
108950
+ `;
108951
+ await db2.run(migrationTableCreate);
108952
+ const dbMigrations = await db2.values(
108953
+ sql`SELECT id, hash, created_at FROM ${sql.identifier(migrationsTable)} ORDER BY created_at DESC LIMIT 1`
108954
+ );
108955
+ const lastDbMigration = dbMigrations[0] ?? void 0;
108956
+ const queriesToRun = [];
108957
+ for (const migration of migrations) {
108958
+ if (!lastDbMigration || Number(lastDbMigration[2]) < migration.folderMillis) {
108959
+ queriesToRun.push(
108960
+ ...migration.sql,
108961
+ `INSERT INTO \`${migrationsTable}\` ("hash", "created_at") VALUES('${migration.hash}', '${migration.folderMillis}')`
108962
+ );
108963
+ }
108964
+ }
108965
+ await callback(queriesToRun);
108966
+ }
108967
+ var init_migrator18 = __esm({
108968
+ "../drizzle-orm/dist/sqlite-proxy/migrator.js"() {
108969
+ "use strict";
108970
+ init_migrator();
108971
+ init_sql();
108972
+ }
108973
+ });
108974
+
108975
+ // ../drizzle-orm/dist/tidb-serverless/migrator.js
108976
+ var migrator_exports18 = {};
108977
+ __export(migrator_exports18, {
108978
+ migrate: () => migrate18
108979
+ });
108980
+ async function migrate18(db2, config) {
108981
+ const migrations = readMigrationFiles(config);
108982
+ await db2.dialect.migrate(migrations, db2.session, config);
108983
+ }
108984
+ var init_migrator19 = __esm({
108985
+ "../drizzle-orm/dist/tidb-serverless/migrator.js"() {
108986
+ "use strict";
108987
+ init_migrator();
108988
+ }
108989
+ });
108990
+
108991
+ // ../drizzle-orm/dist/vercel-postgres/migrator.js
108992
+ var migrator_exports19 = {};
108993
+ __export(migrator_exports19, {
108994
+ migrate: () => migrate19
108995
+ });
108996
+ async function migrate19(db2, config) {
108997
+ const migrations = readMigrationFiles(config);
108998
+ await db2.dialect.migrate(migrations, db2.session, config);
108999
+ }
109000
+ var init_migrator20 = __esm({
109001
+ "../drizzle-orm/dist/vercel-postgres/migrator.js"() {
109002
+ "use strict";
109003
+ init_migrator();
109004
+ }
109005
+ });
109006
+
109007
+ // ../drizzle-orm/dist/xata-http/migrator.js
109008
+ var migrator_exports20 = {};
109009
+ __export(migrator_exports20, {
109010
+ migrate: () => migrate20
109011
+ });
109012
+ async function migrate20(db2, config) {
109013
+ const migrations = readMigrationFiles(config);
109014
+ const migrationsTable = typeof config === "string" ? "__drizzle_migrations" : config.migrationsTable ?? "__drizzle_migrations";
109015
+ const migrationTableCreate = sql`
109016
+ CREATE TABLE IF NOT EXISTS ${sql.identifier(migrationsTable)} (
109017
+ id SERIAL PRIMARY KEY,
109018
+ hash text NOT NULL,
109019
+ created_at bigint
109020
+ )
109021
+ `;
109022
+ await db2.session.execute(migrationTableCreate);
109023
+ const dbMigrations = await db2.session.all(
109024
+ sql`select id, hash, created_at from ${sql.identifier(migrationsTable)} order by created_at desc limit 1`
109025
+ );
109026
+ const lastDbMigration = dbMigrations[0];
109027
+ for await (const migration of migrations) {
109028
+ if (!lastDbMigration || Number(lastDbMigration.created_at) < migration.folderMillis) {
109029
+ for (const stmt of migration.sql) {
109030
+ await db2.session.execute(sql.raw(stmt));
109031
+ }
109032
+ await db2.session.execute(
109033
+ sql`insert into ${sql.identifier(migrationsTable)} ("hash", "created_at") values(${migration.hash}, ${migration.folderMillis})`
109034
+ );
109035
+ }
109036
+ }
109037
+ }
109038
+ var init_migrator21 = __esm({
109039
+ "../drizzle-orm/dist/xata-http/migrator.js"() {
109040
+ "use strict";
109041
+ init_migrator();
109042
+ init_sql();
109043
+ }
109044
+ });
109045
+
109046
+ // ../drizzle-orm/dist/monomigrator.js
109047
+ async function migrate21(type, db2, config, extraConfig) {
109048
+ const rest = [db2, config, extraConfig];
109049
+ switch (type) {
109050
+ case "aws-data-api-pg": {
109051
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator2(), migrator_exports));
109052
+ return migrate22(rest[0], rest[1]);
109053
+ }
109054
+ case "better-sqlite3": {
109055
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator3(), migrator_exports2));
109056
+ return migrate22(rest[0], rest[1]);
109057
+ }
109058
+ case "bun:sqlite": {
109059
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator4(), migrator_exports3));
109060
+ return migrate22(rest[0], rest[1]);
109061
+ }
109062
+ case "d1": {
109063
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator5(), migrator_exports4));
109064
+ return migrate22(rest[0], rest[1]);
109065
+ }
109066
+ case "expo-sqlite": {
109067
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator6(), migrator_exports5));
109068
+ return migrate22(rest[0], rest[1]);
109069
+ }
109070
+ case "libsql": {
109071
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator7(), migrator_exports6));
109072
+ return migrate22(rest[0], rest[1]);
109073
+ }
109074
+ case "mysql-proxy": {
109075
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator8(), migrator_exports7));
109076
+ return migrate22(rest[0], rest[1], rest[2]);
109077
+ }
109078
+ case "mysql2": {
109079
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator9(), migrator_exports8));
109080
+ return migrate22(rest[0], rest[1]);
109081
+ }
109082
+ case "neon-http": {
109083
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator10(), migrator_exports9));
109084
+ return migrate22(rest[0], rest[1]);
109085
+ }
109086
+ case "neon-serverless": {
109087
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator11(), migrator_exports10));
109088
+ return migrate22(rest[0], rest[1]);
109089
+ }
109090
+ case "node-postgres": {
109091
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator12(), migrator_exports11));
109092
+ return migrate22(rest[0], rest[1]);
109093
+ }
109094
+ case "op-sqlite": {
109095
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator13(), migrator_exports12));
109096
+ return migrate22(rest[0], rest[1]);
109097
+ }
109098
+ case "pg-proxy": {
109099
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator14(), migrator_exports13));
109100
+ return migrate22(rest[0], rest[1], rest[2]);
109101
+ }
109102
+ case "pglite": {
109103
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator15(), migrator_exports14));
109104
+ return migrate22(rest[0], rest[1]);
109105
+ }
109106
+ case "planetscale": {
109107
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator16(), migrator_exports15));
109108
+ return migrate22(rest[0], rest[1]);
109109
+ }
109110
+ case "postgres-js": {
109111
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator17(), migrator_exports16));
109112
+ return migrate22(rest[0], rest[1]);
109113
+ }
109114
+ case "sqlite-proxy": {
109115
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator18(), migrator_exports17));
109116
+ return migrate22(rest[0], rest[1], rest[2]);
109117
+ }
109118
+ case "tidb-serverless": {
109119
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator19(), migrator_exports18));
109120
+ return migrate22(rest[0], rest[1]);
109121
+ }
109122
+ case "vercel-postgres": {
109123
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator20(), migrator_exports19));
109124
+ return migrate22(rest[0], rest[1]);
109125
+ }
109126
+ case "xata-http": {
109127
+ const { migrate: migrate22 } = await Promise.resolve().then(() => (init_migrator21(), migrator_exports20));
109128
+ return migrate22(rest[0], rest[1]);
109129
+ }
109130
+ }
109131
+ }
109132
+ var init_monomigrator = __esm({
109133
+ "../drizzle-orm/dist/monomigrator.js"() {
109134
+ "use strict";
109135
+ }
109136
+ });
109137
+
106218
109138
  // ../drizzle-orm/dist/operations.js
106219
109139
  var init_operations = __esm({
106220
109140
  "../drizzle-orm/dist/operations.js"() {
@@ -106317,6 +109237,7 @@ __export(dist_exports3, {
106317
109237
  mapResultRow: () => mapResultRow,
106318
109238
  mapUpdateSet: () => mapUpdateSet,
106319
109239
  max: () => max,
109240
+ migrate: () => migrate21,
106320
109241
  min: () => min,
106321
109242
  name: () => name,
106322
109243
  ne: () => ne,
@@ -106350,6 +109271,7 @@ var init_dist3 = __esm({
106350
109271
  init_expressions2();
106351
109272
  init_logger();
106352
109273
  init_monodriver();
109274
+ init_monomigrator();
106353
109275
  init_operations();
106354
109276
  init_query_promise();
106355
109277
  init_relations();
@@ -111563,4 +114485,26 @@ long/umd/index.js:
111563
114485
  * @license MIT
111564
114486
  *)
111565
114487
  *)
114488
+
114489
+ react/cjs/react.production.min.js:
114490
+ (**
114491
+ * @license React
114492
+ * react.production.min.js
114493
+ *
114494
+ * Copyright (c) Facebook, Inc. and its affiliates.
114495
+ *
114496
+ * This source code is licensed under the MIT license found in the
114497
+ * LICENSE file in the root directory of this source tree.
114498
+ *)
114499
+
114500
+ react/cjs/react.development.js:
114501
+ (**
114502
+ * @license React
114503
+ * react.development.js
114504
+ *
114505
+ * Copyright (c) Facebook, Inc. and its affiliates.
114506
+ *
114507
+ * This source code is licensed under the MIT license found in the
114508
+ * LICENSE file in the root directory of this source tree.
114509
+ *)
111566
114510
  */