drizzle-kit 0.25.0-178591 → 0.25.0-1800fdd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.d.mts +0 -82
- package/api.d.ts +0 -82
- package/api.js +604 -1024
- package/api.mjs +603 -1023
- package/bin.cjs +139 -793
- package/package.json +1 -1
- package/utils.js +6 -24
- package/utils.mjs +6 -24
    
        package/api.mjs
    CHANGED
    
    | @@ -1061,8 +1061,8 @@ var require_minimatch = __commonJS({ | |
| 1061 1061 | 
             
                  return new Minimatch2(pattern, options).match(p7);
         | 
| 1062 1062 | 
             
                };
         | 
| 1063 1063 | 
             
                module.exports = minimatch2;
         | 
| 1064 | 
            -
                var  | 
| 1065 | 
            -
                minimatch2.sep =  | 
| 1064 | 
            +
                var path2 = require_path();
         | 
| 1065 | 
            +
                minimatch2.sep = path2.sep;
         | 
| 1066 1066 | 
             
                var GLOBSTAR2 = Symbol("globstar **");
         | 
| 1067 1067 | 
             
                minimatch2.GLOBSTAR = GLOBSTAR2;
         | 
| 1068 1068 | 
             
                var expand2 = require_brace_expansion();
         | 
| @@ -1567,8 +1567,8 @@ var require_minimatch = __commonJS({ | |
| 1567 1567 | 
             
                    if (this.empty) return f5 === "";
         | 
| 1568 1568 | 
             
                    if (f5 === "/" && partial) return true;
         | 
| 1569 1569 | 
             
                    const options = this.options;
         | 
| 1570 | 
            -
                    if ( | 
| 1571 | 
            -
                      f5 = f5.split( | 
| 1570 | 
            +
                    if (path2.sep !== "/") {
         | 
| 1571 | 
            +
                      f5 = f5.split(path2.sep).join("/");
         | 
| 1572 1572 | 
             
                    }
         | 
| 1573 1573 | 
             
                    f5 = f5.split(slashSplit);
         | 
| 1574 1574 | 
             
                    this.debug(this.pattern, "split", f5);
         | 
| @@ -1665,7 +1665,7 @@ var require_common = __commonJS({ | |
| 1665 1665 | 
             
                  return Object.prototype.hasOwnProperty.call(obj, field);
         | 
| 1666 1666 | 
             
                }
         | 
| 1667 1667 | 
             
                var fs5 = __require("fs");
         | 
| 1668 | 
            -
                var  | 
| 1668 | 
            +
                var path2 = __require("path");
         | 
| 1669 1669 | 
             
                var minimatch2 = require_minimatch();
         | 
| 1670 1670 | 
             
                var isAbsolute = __require("path").isAbsolute;
         | 
| 1671 1671 | 
             
                var Minimatch2 = minimatch2.Minimatch;
         | 
| @@ -1732,13 +1732,13 @@ var require_common = __commonJS({ | |
| 1732 1732 | 
             
                  self2.changedCwd = false;
         | 
| 1733 1733 | 
             
                  var cwd = process.cwd();
         | 
| 1734 1734 | 
             
                  if (!ownProp(options, "cwd"))
         | 
| 1735 | 
            -
                    self2.cwd =  | 
| 1735 | 
            +
                    self2.cwd = path2.resolve(cwd);
         | 
| 1736 1736 | 
             
                  else {
         | 
| 1737 | 
            -
                    self2.cwd =  | 
| 1737 | 
            +
                    self2.cwd = path2.resolve(options.cwd);
         | 
| 1738 1738 | 
             
                    self2.changedCwd = self2.cwd !== cwd;
         | 
| 1739 1739 | 
             
                  }
         | 
| 1740 | 
            -
                  self2.root = options.root ||  | 
| 1741 | 
            -
                  self2.root =  | 
| 1740 | 
            +
                  self2.root = options.root || path2.resolve(self2.cwd, "/");
         | 
| 1741 | 
            +
                  self2.root = path2.resolve(self2.root);
         | 
| 1742 1742 | 
             
                  self2.cwdAbs = isAbsolute(self2.cwd) ? self2.cwd : makeAbs(self2, self2.cwd);
         | 
| 1743 1743 | 
             
                  self2.nomount = !!options.nomount;
         | 
| 1744 1744 | 
             
                  if (process.platform === "win32") {
         | 
| @@ -1820,30 +1820,30 @@ var require_common = __commonJS({ | |
| 1820 1820 | 
             
                function makeAbs(self2, f5) {
         | 
| 1821 1821 | 
             
                  var abs = f5;
         | 
| 1822 1822 | 
             
                  if (f5.charAt(0) === "/") {
         | 
| 1823 | 
            -
                    abs =  | 
| 1823 | 
            +
                    abs = path2.join(self2.root, f5);
         | 
| 1824 1824 | 
             
                  } else if (isAbsolute(f5) || f5 === "") {
         | 
| 1825 1825 | 
             
                    abs = f5;
         | 
| 1826 1826 | 
             
                  } else if (self2.changedCwd) {
         | 
| 1827 | 
            -
                    abs =  | 
| 1827 | 
            +
                    abs = path2.resolve(self2.cwd, f5);
         | 
| 1828 1828 | 
             
                  } else {
         | 
| 1829 | 
            -
                    abs =  | 
| 1829 | 
            +
                    abs = path2.resolve(f5);
         | 
| 1830 1830 | 
             
                  }
         | 
| 1831 1831 | 
             
                  if (process.platform === "win32")
         | 
| 1832 1832 | 
             
                    abs = abs.replace(/\\/g, "/");
         | 
| 1833 1833 | 
             
                  return abs;
         | 
| 1834 1834 | 
             
                }
         | 
| 1835 | 
            -
                function isIgnored(self2,  | 
| 1835 | 
            +
                function isIgnored(self2, path3) {
         | 
| 1836 1836 | 
             
                  if (!self2.ignore.length)
         | 
| 1837 1837 | 
             
                    return false;
         | 
| 1838 1838 | 
             
                  return self2.ignore.some(function(item) {
         | 
| 1839 | 
            -
                    return item.matcher.match( | 
| 1839 | 
            +
                    return item.matcher.match(path3) || !!(item.gmatcher && item.gmatcher.match(path3));
         | 
| 1840 1840 | 
             
                  });
         | 
| 1841 1841 | 
             
                }
         | 
| 1842 | 
            -
                function childrenIgnored(self2,  | 
| 1842 | 
            +
                function childrenIgnored(self2, path3) {
         | 
| 1843 1843 | 
             
                  if (!self2.ignore.length)
         | 
| 1844 1844 | 
             
                    return false;
         | 
| 1845 1845 | 
             
                  return self2.ignore.some(function(item) {
         | 
| 1846 | 
            -
                    return !!(item.gmatcher && item.gmatcher.match( | 
| 1846 | 
            +
                    return !!(item.gmatcher && item.gmatcher.match(path3));
         | 
| 1847 1847 | 
             
                  });
         | 
| 1848 1848 | 
             
                }
         | 
| 1849 1849 | 
             
              }
         | 
| @@ -1860,7 +1860,7 @@ var require_sync = __commonJS({ | |
| 1860 1860 | 
             
                var Minimatch2 = minimatch2.Minimatch;
         | 
| 1861 1861 | 
             
                var Glob = require_glob().Glob;
         | 
| 1862 1862 | 
             
                var util2 = __require("util");
         | 
| 1863 | 
            -
                var  | 
| 1863 | 
            +
                var path2 = __require("path");
         | 
| 1864 1864 | 
             
                var assert = __require("assert");
         | 
| 1865 1865 | 
             
                var isAbsolute = __require("path").isAbsolute;
         | 
| 1866 1866 | 
             
                var common = require_common();
         | 
| @@ -1988,7 +1988,7 @@ var require_sync = __commonJS({ | |
| 1988 1988 | 
             
                          e5 = prefix2 + e5;
         | 
| 1989 1989 | 
             
                      }
         | 
| 1990 1990 | 
             
                      if (e5.charAt(0) === "/" && !this.nomount) {
         | 
| 1991 | 
            -
                        e5 =  | 
| 1991 | 
            +
                        e5 = path2.join(this.root, e5);
         | 
| 1992 1992 | 
             
                      }
         | 
| 1993 1993 | 
             
                      this._emitMatch(index4, e5);
         | 
| 1994 1994 | 
             
                    }
         | 
| @@ -2137,9 +2137,9 @@ var require_sync = __commonJS({ | |
| 2137 2137 | 
             
                  if (prefix2 && isAbsolute(prefix2) && !this.nomount) {
         | 
| 2138 2138 | 
             
                    var trail = /[\/\\]$/.test(prefix2);
         | 
| 2139 2139 | 
             
                    if (prefix2.charAt(0) === "/") {
         | 
| 2140 | 
            -
                      prefix2 =  | 
| 2140 | 
            +
                      prefix2 = path2.join(this.root, prefix2);
         | 
| 2141 2141 | 
             
                    } else {
         | 
| 2142 | 
            -
                      prefix2 =  | 
| 2142 | 
            +
                      prefix2 = path2.resolve(this.root, prefix2);
         | 
| 2143 2143 | 
             
                      if (trail)
         | 
| 2144 2144 | 
             
                        prefix2 += "/";
         | 
| 2145 2145 | 
             
                    }
         | 
| @@ -2335,7 +2335,7 @@ var require_glob = __commonJS({ | |
| 2335 2335 | 
             
                var Minimatch2 = minimatch2.Minimatch;
         | 
| 2336 2336 | 
             
                var inherits = require_inherits();
         | 
| 2337 2337 | 
             
                var EE = __require("events").EventEmitter;
         | 
| 2338 | 
            -
                var  | 
| 2338 | 
            +
                var path2 = __require("path");
         | 
| 2339 2339 | 
             
                var assert = __require("assert");
         | 
| 2340 2340 | 
             
                var isAbsolute = __require("path").isAbsolute;
         | 
| 2341 2341 | 
             
                var globSync = require_sync();
         | 
| @@ -2616,7 +2616,7 @@ var require_glob = __commonJS({ | |
| 2616 2616 | 
             
                          e5 = prefix2 + e5;
         | 
| 2617 2617 | 
             
                      }
         | 
| 2618 2618 | 
             
                      if (e5.charAt(0) === "/" && !this.nomount) {
         | 
| 2619 | 
            -
                        e5 =  | 
| 2619 | 
            +
                        e5 = path2.join(this.root, e5);
         | 
| 2620 2620 | 
             
                      }
         | 
| 2621 2621 | 
             
                      this._emitMatch(index4, e5);
         | 
| 2622 2622 | 
             
                    }
         | 
| @@ -2803,9 +2803,9 @@ var require_glob = __commonJS({ | |
| 2803 2803 | 
             
                  if (prefix2 && isAbsolute(prefix2) && !this.nomount) {
         | 
| 2804 2804 | 
             
                    var trail = /[\/\\]$/.test(prefix2);
         | 
| 2805 2805 | 
             
                    if (prefix2.charAt(0) === "/") {
         | 
| 2806 | 
            -
                      prefix2 =  | 
| 2806 | 
            +
                      prefix2 = path2.join(this.root, prefix2);
         | 
| 2807 2807 | 
             
                    } else {
         | 
| 2808 | 
            -
                      prefix2 =  | 
| 2808 | 
            +
                      prefix2 = path2.resolve(this.root, prefix2);
         | 
| 2809 2809 | 
             
                      if (trail)
         | 
| 2810 2810 | 
             
                        prefix2 += "/";
         | 
| 2811 2811 | 
             
                    }
         | 
| @@ -3957,8 +3957,8 @@ var init_lib = __esm({ | |
| 3957 3957 | 
             
                };
         | 
| 3958 3958 | 
             
                overrideErrorMap = errorMap;
         | 
| 3959 3959 | 
             
                makeIssue = (params) => {
         | 
| 3960 | 
            -
                  const { data, path:  | 
| 3961 | 
            -
                  const fullPath = [... | 
| 3960 | 
            +
                  const { data, path: path2, errorMaps, issueData } = params;
         | 
| 3961 | 
            +
                  const fullPath = [...path2, ...issueData.path || []];
         | 
| 3962 3962 | 
             
                  const fullIssue = {
         | 
| 3963 3963 | 
             
                    ...issueData,
         | 
| 3964 3964 | 
             
                    path: fullPath
         | 
| @@ -4049,11 +4049,11 @@ var init_lib = __esm({ | |
| 4049 4049 | 
             
                  errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
         | 
| 4050 4050 | 
             
                })(errorUtil || (errorUtil = {}));
         | 
| 4051 4051 | 
             
                ParseInputLazyPath = class {
         | 
| 4052 | 
            -
                  constructor(parent, value,  | 
| 4052 | 
            +
                  constructor(parent, value, path2, key) {
         | 
| 4053 4053 | 
             
                    this._cachedPath = [];
         | 
| 4054 4054 | 
             
                    this.parent = parent;
         | 
| 4055 4055 | 
             
                    this.data = value;
         | 
| 4056 | 
            -
                    this._path =  | 
| 4056 | 
            +
                    this._path = path2;
         | 
| 4057 4057 | 
             
                    this._key = key;
         | 
| 4058 4058 | 
             
                  }
         | 
| 4059 4059 | 
             
                  get path() {
         | 
| @@ -7219,7 +7219,7 @@ var init_lib = __esm({ | |
| 7219 7219 | 
             
            });
         | 
| 7220 7220 |  | 
| 7221 7221 | 
             
            // src/serializer/mysqlSchema.ts
         | 
| 7222 | 
            -
            var index, fk, column, tableV3, compositePK, uniqueConstraint,  | 
| 7222 | 
            +
            var index, fk, column, tableV3, compositePK, uniqueConstraint, tableV4, table, kitInternals, dialect, schemaHash, schemaInternalV3, schemaInternalV4, schemaInternalV5, schemaInternal, schemaV3, schemaV4, schemaV5, schema, tableSquashedV4, tableSquashed, schemaSquashed, schemaSquashedV4, MySqlSquasher, squashMysqlScheme, mysqlSchema, mysqlSchemaV5, mysqlSchemaSquashed, backwardCompatibleMysqlSchema, dryMySql;
         | 
| 7223 7223 | 
             
            var init_mysqlSchema = __esm({
         | 
| 7224 7224 | 
             
              "src/serializer/mysqlSchema.ts"() {
         | 
| 7225 7225 | 
             
                "use strict";
         | 
| @@ -7269,10 +7269,6 @@ var init_mysqlSchema = __esm({ | |
| 7269 7269 | 
             
                  name: stringType(),
         | 
| 7270 7270 | 
             
                  columns: stringType().array()
         | 
| 7271 7271 | 
             
                }).strict();
         | 
| 7272 | 
            -
                checkConstraint = objectType({
         | 
| 7273 | 
            -
                  name: stringType(),
         | 
| 7274 | 
            -
                  value: stringType()
         | 
| 7275 | 
            -
                }).strict();
         | 
| 7276 7272 | 
             
                tableV4 = objectType({
         | 
| 7277 7273 | 
             
                  name: stringType(),
         | 
| 7278 7274 | 
             
                  schema: stringType().optional(),
         | 
| @@ -7286,8 +7282,7 @@ var init_mysqlSchema = __esm({ | |
| 7286 7282 | 
             
                  indexes: recordType(stringType(), index),
         | 
| 7287 7283 | 
             
                  foreignKeys: recordType(stringType(), fk),
         | 
| 7288 7284 | 
             
                  compositePrimaryKeys: recordType(stringType(), compositePK),
         | 
| 7289 | 
            -
                  uniqueConstraints: recordType(stringType(), uniqueConstraint).default({}) | 
| 7290 | 
            -
                  checkConstraint: recordType(stringType(), checkConstraint).default({})
         | 
| 7285 | 
            +
                  uniqueConstraints: recordType(stringType(), uniqueConstraint).default({})
         | 
| 7291 7286 | 
             
                }).strict();
         | 
| 7292 7287 | 
             
                kitInternals = objectType({
         | 
| 7293 7288 | 
             
                  tables: recordType(
         | 
| @@ -7364,8 +7359,7 @@ var init_mysqlSchema = __esm({ | |
| 7364 7359 | 
             
                  indexes: recordType(stringType(), stringType()),
         | 
| 7365 7360 | 
             
                  foreignKeys: recordType(stringType(), stringType()),
         | 
| 7366 7361 | 
             
                  compositePrimaryKeys: recordType(stringType(), stringType()),
         | 
| 7367 | 
            -
                  uniqueConstraints: recordType(stringType(), stringType()).default({}) | 
| 7368 | 
            -
                  checkConstraints: recordType(stringType(), stringType()).default({})
         | 
| 7362 | 
            +
                  uniqueConstraints: recordType(stringType(), stringType()).default({})
         | 
| 7369 7363 | 
             
                }).strict();
         | 
| 7370 7364 | 
             
                schemaSquashed = objectType({
         | 
| 7371 7365 | 
             
                  version: literalType("5"),
         | 
| @@ -7432,13 +7426,6 @@ var init_mysqlSchema = __esm({ | |
| 7432 7426 | 
             
                      onDelete
         | 
| 7433 7427 | 
             
                    });
         | 
| 7434 7428 | 
             
                    return result;
         | 
| 7435 | 
            -
                  },
         | 
| 7436 | 
            -
                  squashCheck: (input) => {
         | 
| 7437 | 
            -
                    return `${input.name};${input.value}`;
         | 
| 7438 | 
            -
                  },
         | 
| 7439 | 
            -
                  unsquashCheck: (input) => {
         | 
| 7440 | 
            -
                    const [name2, value] = input.split(";");
         | 
| 7441 | 
            -
                    return { name: name2, value };
         | 
| 7442 7429 | 
             
                  }
         | 
| 7443 7430 | 
             
                };
         | 
| 7444 7431 | 
             
                squashMysqlScheme = (json) => {
         | 
| @@ -7459,9 +7446,6 @@ var init_mysqlSchema = __esm({ | |
| 7459 7446 | 
             
                          return MySqlSquasher.squashUnique(unq);
         | 
| 7460 7447 | 
             
                        }
         | 
| 7461 7448 | 
             
                      );
         | 
| 7462 | 
            -
                      const squashedCheckConstraints = mapValues(it[1].checkConstraint, (check) => {
         | 
| 7463 | 
            -
                        return MySqlSquasher.squashCheck(check);
         | 
| 7464 | 
            -
                      });
         | 
| 7465 7449 | 
             
                      return [
         | 
| 7466 7450 | 
             
                        it[0],
         | 
| 7467 7451 | 
             
                        {
         | 
| @@ -7470,8 +7454,7 @@ var init_mysqlSchema = __esm({ | |
| 7470 7454 | 
             
                          indexes: squashedIndexes,
         | 
| 7471 7455 | 
             
                          foreignKeys: squashedFKs,
         | 
| 7472 7456 | 
             
                          compositePrimaryKeys: squashedPKs,
         | 
| 7473 | 
            -
                          uniqueConstraints: squashedUniqueConstraints | 
| 7474 | 
            -
                          checkConstraints: squashedCheckConstraints
         | 
| 7457 | 
            +
                          uniqueConstraints: squashedUniqueConstraints
         | 
| 7475 7458 | 
             
                        }
         | 
| 7476 7459 | 
             
                      ];
         | 
| 7477 7460 | 
             
                    })
         | 
| @@ -7521,7 +7504,7 @@ var init_vector = __esm({ | |
| 7521 7504 | 
             
            });
         | 
| 7522 7505 |  | 
| 7523 7506 | 
             
            // src/serializer/pgSchema.ts
         | 
| 7524 | 
            -
            var indexV2, columnV2, tableV2, enumSchemaV1, enumSchema, pgSchemaV2, references, columnV1, tableV1, pgSchemaV1, indexColumn, index2, indexV4, indexV5, indexV6, fk2, sequenceSchema, sequenceSquashed, columnV7, column2,  | 
| 7507 | 
            +
            var indexV2, columnV2, tableV2, enumSchemaV1, enumSchema, pgSchemaV2, references, columnV1, tableV1, pgSchemaV1, indexColumn, index2, indexV4, indexV5, indexV6, fk2, sequenceSchema, sequenceSquashed, columnV7, column2, columnSquashed, tableV32, compositePK2, uniqueConstraint2, tableV42, tableV5, tableV6, tableV7, table2, schemaHash2, kitInternals2, pgSchemaInternalV3, pgSchemaInternalV4, pgSchemaInternalV5, pgSchemaInternalV6, pgSchemaExternal, pgSchemaInternalV7, pgSchemaInternal, tableSquashed2, tableSquashedV42, pgSchemaSquashedV4, pgSchemaSquashedV6, pgSchemaSquashed, pgSchemaV3, pgSchemaV4, pgSchemaV5, pgSchemaV6, pgSchemaV7, pgSchema, backwardCompatiblePgSchema, PgSquasher, squashPgScheme, dryPg;
         | 
| 7525 7508 | 
             
            var init_pgSchema = __esm({
         | 
| 7526 7509 | 
             
              "src/serializer/pgSchema.ts"() {
         | 
| 7527 7510 | 
             
                "use strict";
         | 
| @@ -7685,10 +7668,6 @@ var init_pgSchema = __esm({ | |
| 7685 7668 | 
             
                  }).optional(),
         | 
| 7686 7669 | 
             
                  identity: sequenceSchema.merge(objectType({ type: enumType(["always", "byDefault"]) })).optional()
         | 
| 7687 7670 | 
             
                }).strict();
         | 
| 7688 | 
            -
                checkConstraint2 = objectType({
         | 
| 7689 | 
            -
                  name: stringType(),
         | 
| 7690 | 
            -
                  value: stringType()
         | 
| 7691 | 
            -
                }).strict();
         | 
| 7692 7671 | 
             
                columnSquashed = objectType({
         | 
| 7693 7672 | 
             
                  name: stringType(),
         | 
| 7694 7673 | 
             
                  type: stringType(),
         | 
| @@ -7761,8 +7740,7 @@ var init_pgSchema = __esm({ | |
| 7761 7740 | 
             
                  indexes: recordType(stringType(), index2),
         | 
| 7762 7741 | 
             
                  foreignKeys: recordType(stringType(), fk2),
         | 
| 7763 7742 | 
             
                  compositePrimaryKeys: recordType(stringType(), compositePK2),
         | 
| 7764 | 
            -
                  uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({}) | 
| 7765 | 
            -
                  checkConstraints: recordType(stringType(), checkConstraint2).default({})
         | 
| 7743 | 
            +
                  uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
         | 
| 7766 7744 | 
             
                }).strict();
         | 
| 7767 7745 | 
             
                schemaHash2 = objectType({
         | 
| 7768 7746 | 
             
                  id: stringType(),
         | 
| @@ -7870,8 +7848,7 @@ var init_pgSchema = __esm({ | |
| 7870 7848 | 
             
                  indexes: recordType(stringType(), stringType()),
         | 
| 7871 7849 | 
             
                  foreignKeys: recordType(stringType(), stringType()),
         | 
| 7872 7850 | 
             
                  compositePrimaryKeys: recordType(stringType(), stringType()),
         | 
| 7873 | 
            -
                  uniqueConstraints: recordType(stringType(), stringType()) | 
| 7874 | 
            -
                  checkConstraints: recordType(stringType(), stringType())
         | 
| 7851 | 
            +
                  uniqueConstraints: recordType(stringType(), stringType())
         | 
| 7875 7852 | 
             
                }).strict();
         | 
| 7876 7853 | 
             
                tableSquashedV42 = objectType({
         | 
| 7877 7854 | 
             
                  name: stringType(),
         | 
| @@ -8053,16 +8030,6 @@ var init_pgSchema = __esm({ | |
| 8053 8030 | 
             
                      cache: splitted[6] !== "undefined" ? splitted[6] : void 0,
         | 
| 8054 8031 | 
             
                      cycle: splitted[7] === "true"
         | 
| 8055 8032 | 
             
                    };
         | 
| 8056 | 
            -
                  },
         | 
| 8057 | 
            -
                  squashCheck: (check) => {
         | 
| 8058 | 
            -
                    return `${check.name};${check.value}`;
         | 
| 8059 | 
            -
                  },
         | 
| 8060 | 
            -
                  unsquashCheck: (input) => {
         | 
| 8061 | 
            -
                    const [
         | 
| 8062 | 
            -
                      name2,
         | 
| 8063 | 
            -
                      value
         | 
| 8064 | 
            -
                    ] = input.split(";");
         | 
| 8065 | 
            -
                    return { name: name2, value };
         | 
| 8066 8033 | 
             
                  }
         | 
| 8067 8034 | 
             
                };
         | 
| 8068 8035 | 
             
                squashPgScheme = (json, action) => {
         | 
| @@ -8095,12 +8062,6 @@ var init_pgSchema = __esm({ | |
| 8095 8062 | 
             
                          return PgSquasher.squashUnique(unq);
         | 
| 8096 8063 | 
             
                        }
         | 
| 8097 8064 | 
             
                      );
         | 
| 8098 | 
            -
                      const squashedChecksContraints = mapValues(
         | 
| 8099 | 
            -
                        it[1].checkConstraints,
         | 
| 8100 | 
            -
                        (check) => {
         | 
| 8101 | 
            -
                          return PgSquasher.squashCheck(check);
         | 
| 8102 | 
            -
                        }
         | 
| 8103 | 
            -
                      );
         | 
| 8104 8065 | 
             
                      return [
         | 
| 8105 8066 | 
             
                        it[0],
         | 
| 8106 8067 | 
             
                        {
         | 
| @@ -8110,8 +8071,7 @@ var init_pgSchema = __esm({ | |
| 8110 8071 | 
             
                          indexes: squashedIndexes,
         | 
| 8111 8072 | 
             
                          foreignKeys: squashedFKs,
         | 
| 8112 8073 | 
             
                          compositePrimaryKeys: squashedPKs,
         | 
| 8113 | 
            -
                          uniqueConstraints: squashedUniqueConstraints | 
| 8114 | 
            -
                          checkConstraints: squashedChecksContraints
         | 
| 8074 | 
            +
                          uniqueConstraints: squashedUniqueConstraints
         | 
| 8115 8075 | 
             
                        }
         | 
| 8116 8076 | 
             
                      ];
         | 
| 8117 8077 | 
             
                    })
         | 
| @@ -8156,7 +8116,7 @@ var init_pgSchema = __esm({ | |
| 8156 8116 | 
             
            });
         | 
| 8157 8117 |  | 
| 8158 8118 | 
             
            // src/serializer/sqliteSchema.ts
         | 
| 8159 | 
            -
            var index3, fk3, compositePK3, column3, tableV33, uniqueConstraint3,  | 
| 8119 | 
            +
            var index3, fk3, compositePK3, column3, tableV33, uniqueConstraint3, table3, dialect2, schemaHash3, schemaInternalV32, schemaInternalV42, schemaInternalV52, kitInternals3, latestVersion, schemaInternal2, schemaV32, schemaV42, schemaV52, schema2, tableSquashed3, schemaSquashed2, SQLiteSquasher, squashSqliteScheme, drySQLite, sqliteSchemaV5, sqliteSchema, SQLiteSchemaSquashed, backwardCompatibleSqliteSchema;
         | 
| 8160 8120 | 
             
            var init_sqliteSchema = __esm({
         | 
| 8161 8121 | 
             
              "src/serializer/sqliteSchema.ts"() {
         | 
| 8162 8122 | 
             
                "use strict";
         | 
| @@ -8203,18 +8163,13 @@ var init_sqliteSchema = __esm({ | |
| 8203 8163 | 
             
                  name: stringType(),
         | 
| 8204 8164 | 
             
                  columns: stringType().array()
         | 
| 8205 8165 | 
             
                }).strict();
         | 
| 8206 | 
            -
                checkConstraint3 = objectType({
         | 
| 8207 | 
            -
                  name: stringType(),
         | 
| 8208 | 
            -
                  value: stringType()
         | 
| 8209 | 
            -
                }).strict();
         | 
| 8210 8166 | 
             
                table3 = objectType({
         | 
| 8211 8167 | 
             
                  name: stringType(),
         | 
| 8212 8168 | 
             
                  columns: recordType(stringType(), column3),
         | 
| 8213 8169 | 
             
                  indexes: recordType(stringType(), index3),
         | 
| 8214 8170 | 
             
                  foreignKeys: recordType(stringType(), fk3),
         | 
| 8215 8171 | 
             
                  compositePrimaryKeys: recordType(stringType(), compositePK3),
         | 
| 8216 | 
            -
                  uniqueConstraints: recordType(stringType(), uniqueConstraint3).default({}) | 
| 8217 | 
            -
                  checkConstraints: recordType(stringType(), checkConstraint3).default({})
         | 
| 8172 | 
            +
                  uniqueConstraints: recordType(stringType(), uniqueConstraint3).default({})
         | 
| 8218 8173 | 
             
                }).strict();
         | 
| 8219 8174 | 
             
                dialect2 = enumType(["sqlite"]);
         | 
| 8220 8175 | 
             
                schemaHash3 = objectType({
         | 
| @@ -8276,8 +8231,7 @@ var init_sqliteSchema = __esm({ | |
| 8276 8231 | 
             
                  indexes: recordType(stringType(), stringType()),
         | 
| 8277 8232 | 
             
                  foreignKeys: recordType(stringType(), stringType()),
         | 
| 8278 8233 | 
             
                  compositePrimaryKeys: recordType(stringType(), stringType()),
         | 
| 8279 | 
            -
                  uniqueConstraints: recordType(stringType(), stringType()).default({}) | 
| 8280 | 
            -
                  checkConstraints: recordType(stringType(), stringType()).default({})
         | 
| 8234 | 
            +
                  uniqueConstraints: recordType(stringType(), stringType()).default({})
         | 
| 8281 8235 | 
             
                }).strict();
         | 
| 8282 8236 | 
             
                schemaSquashed2 = objectType({
         | 
| 8283 8237 | 
             
                  version: latestVersion,
         | 
| @@ -8359,16 +8313,6 @@ var init_sqliteSchema = __esm({ | |
| 8359 8313 | 
             
                  },
         | 
| 8360 8314 | 
             
                  unsquashPK: (pk) => {
         | 
| 8361 8315 | 
             
                    return pk.split(",");
         | 
| 8362 | 
            -
                  },
         | 
| 8363 | 
            -
                  squashCheck: (check) => {
         | 
| 8364 | 
            -
                    return `${check.name};${check.value}`;
         | 
| 8365 | 
            -
                  },
         | 
| 8366 | 
            -
                  unsquashCheck: (input) => {
         | 
| 8367 | 
            -
                    const [
         | 
| 8368 | 
            -
                      name2,
         | 
| 8369 | 
            -
                      value
         | 
| 8370 | 
            -
                    ] = input.split(";");
         | 
| 8371 | 
            -
                    return { name: name2, value };
         | 
| 8372 8316 | 
             
                  }
         | 
| 8373 8317 | 
             
                };
         | 
| 8374 8318 | 
             
                squashSqliteScheme = (json, action) => {
         | 
| @@ -8395,12 +8339,6 @@ var init_sqliteSchema = __esm({ | |
| 8395 8339 | 
             
                          return SQLiteSquasher.squashUnique(unq);
         | 
| 8396 8340 | 
             
                        }
         | 
| 8397 8341 | 
             
                      );
         | 
| 8398 | 
            -
                      const squashedCheckConstraints = mapValues(
         | 
| 8399 | 
            -
                        it[1].checkConstraints,
         | 
| 8400 | 
            -
                        (check) => {
         | 
| 8401 | 
            -
                          return SQLiteSquasher.squashCheck(check);
         | 
| 8402 | 
            -
                        }
         | 
| 8403 | 
            -
                      );
         | 
| 8404 8342 | 
             
                      return [
         | 
| 8405 8343 | 
             
                        it[0],
         | 
| 8406 8344 | 
             
                        {
         | 
| @@ -8409,8 +8347,7 @@ var init_sqliteSchema = __esm({ | |
| 8409 8347 | 
             
                          indexes: squashedIndexes,
         | 
| 8410 8348 | 
             
                          foreignKeys: squashedFKs,
         | 
| 8411 8349 | 
             
                          compositePrimaryKeys: squashedPKs,
         | 
| 8412 | 
            -
                          uniqueConstraints: squashedUniqueConstraints | 
| 8413 | 
            -
                          checkConstraints: squashedCheckConstraints
         | 
| 8350 | 
            +
                          uniqueConstraints: squashedUniqueConstraints
         | 
| 8414 8351 | 
             
                        }
         | 
| 8415 8352 | 
             
                      ];
         | 
| 8416 8353 | 
             
                    })
         | 
| @@ -11284,21 +11221,6 @@ var init_jsonDiffer = __esm({ | |
| 11284 11221 | 
             
                      return !it[0].endsWith("__deleted") && !it[0].endsWith("__added");
         | 
| 11285 11222 | 
             
                    })
         | 
| 11286 11223 | 
             
                  );
         | 
| 11287 | 
            -
                  const addedCheckConstraints = Object.fromEntries(
         | 
| 11288 | 
            -
                    Object.entries(table4.checkConstraints || {}).filter((it) => {
         | 
| 11289 | 
            -
                      return it[0].endsWith("__added");
         | 
| 11290 | 
            -
                    })
         | 
| 11291 | 
            -
                  );
         | 
| 11292 | 
            -
                  const deletedCheckConstraints = Object.fromEntries(
         | 
| 11293 | 
            -
                    Object.entries(table4.checkConstraints || {}).filter((it) => {
         | 
| 11294 | 
            -
                      return it[0].endsWith("__deleted");
         | 
| 11295 | 
            -
                    })
         | 
| 11296 | 
            -
                  );
         | 
| 11297 | 
            -
                  const alteredCheckConstraints = Object.fromEntries(
         | 
| 11298 | 
            -
                    Object.entries(table4.checkConstraints || {}).filter((it) => {
         | 
| 11299 | 
            -
                      return !it[0].endsWith("__deleted") && !it[0].endsWith("__added");
         | 
| 11300 | 
            -
                    })
         | 
| 11301 | 
            -
                  );
         | 
| 11302 11224 | 
             
                  const mappedAltered = altered.map((it) => alternationsInColumn(it)).filter(Boolean);
         | 
| 11303 11225 | 
             
                  return {
         | 
| 11304 11226 | 
             
                    name: table4.name,
         | 
| @@ -11315,10 +11237,7 @@ var init_jsonDiffer = __esm({ | |
| 11315 11237 | 
             
                    alteredCompositePKs,
         | 
| 11316 11238 | 
             
                    addedUniqueConstraints,
         | 
| 11317 11239 | 
             
                    deletedUniqueConstraints,
         | 
| 11318 | 
            -
                    alteredUniqueConstraints | 
| 11319 | 
            -
                    addedCheckConstraints,
         | 
| 11320 | 
            -
                    deletedCheckConstraints,
         | 
| 11321 | 
            -
                    alteredCheckConstraints
         | 
| 11240 | 
            +
                    alteredUniqueConstraints
         | 
| 11322 11241 | 
             
                  };
         | 
| 11323 11242 | 
             
                };
         | 
| 11324 11243 | 
             
                alternationsInColumn = (column4) => {
         | 
| @@ -11572,32 +11491,6 @@ var init_jsonDiffer = __esm({ | |
| 11572 11491 | 
             
                      };
         | 
| 11573 11492 | 
             
                    }
         | 
| 11574 11493 | 
             
                    return it;
         | 
| 11575 | 
            -
                  }).map((it) => {
         | 
| 11576 | 
            -
                    if ("" in it) {
         | 
| 11577 | 
            -
                      return {
         | 
| 11578 | 
            -
                        ...it,
         | 
| 11579 | 
            -
                        autoincrement: {
         | 
| 11580 | 
            -
                          type: "changed",
         | 
| 11581 | 
            -
                          old: it.autoincrement.__old,
         | 
| 11582 | 
            -
                          new: it.autoincrement.__new
         | 
| 11583 | 
            -
                        }
         | 
| 11584 | 
            -
                      };
         | 
| 11585 | 
            -
                    }
         | 
| 11586 | 
            -
                    if ("autoincrement__added" in it) {
         | 
| 11587 | 
            -
                      const { autoincrement__added, ...others } = it;
         | 
| 11588 | 
            -
                      return {
         | 
| 11589 | 
            -
                        ...others,
         | 
| 11590 | 
            -
                        autoincrement: { type: "added", value: it.autoincrement__added }
         | 
| 11591 | 
            -
                      };
         | 
| 11592 | 
            -
                    }
         | 
| 11593 | 
            -
                    if ("autoincrement__deleted" in it) {
         | 
| 11594 | 
            -
                      const { autoincrement__deleted, ...others } = it;
         | 
| 11595 | 
            -
                      return {
         | 
| 11596 | 
            -
                        ...others,
         | 
| 11597 | 
            -
                        autoincrement: { type: "deleted", value: it.autoincrement__deleted }
         | 
| 11598 | 
            -
                      };
         | 
| 11599 | 
            -
                    }
         | 
| 11600 | 
            -
                    return it;
         | 
| 11601 11494 | 
             
                  }).filter(Boolean);
         | 
| 11602 11495 | 
             
                  return result[0];
         | 
| 11603 11496 | 
             
                };
         | 
| @@ -11618,7 +11511,7 @@ function fromJson(statements, dialect7, action, json2) { | |
| 11618 11511 | 
             
              }).filter((it) => it !== "");
         | 
| 11619 11512 | 
             
              return result;
         | 
| 11620 11513 | 
             
            }
         | 
| 11621 | 
            -
            var pgNativeTypes, isPgNativeType, Convertor, PgCreateTableConvertor, MySqlCreateTableConvertor, SQLiteCreateTableConvertor, PgAlterTableAlterColumnSetGenerated, PgAlterTableAlterColumnDropGenerated, PgAlterTableAlterColumnAlterGenerated, PgAlterTableAddUniqueConstraintConvertor, PgAlterTableDropUniqueConstraintConvertor,  | 
| 11514 | 
            +
            var pgNativeTypes, isPgNativeType, Convertor, PgCreateTableConvertor, MySqlCreateTableConvertor, SQLiteCreateTableConvertor, PgAlterTableAlterColumnSetGenerated, PgAlterTableAlterColumnDropGenerated, PgAlterTableAlterColumnAlterGenerated, PgAlterTableAddUniqueConstraintConvertor, PgAlterTableDropUniqueConstraintConvertor, MySQLAlterTableAddUniqueConstraintConvertor, MySQLAlterTableDropUniqueConstraintConvertor, CreatePgSequenceConvertor, DropPgSequenceConvertor, RenamePgSequenceConvertor, MovePgSequenceConvertor, AlterPgSequenceConvertor, CreateTypeEnumConvertor, AlterTypeAddValueConvertor, PgDropTableConvertor, MySQLDropTableConvertor, SQLiteDropTableConvertor, PgRenameTableConvertor, SqliteRenameTableConvertor, MySqlRenameTableConvertor, PgAlterTableRenameColumnConvertor, MySqlAlterTableRenameColumnConvertor, SQLiteAlterTableRenameColumnConvertor, PgAlterTableDropColumnConvertor, MySqlAlterTableDropColumnConvertor, SQLiteAlterTableDropColumnConvertor, PgAlterTableAddColumnConvertor, MySqlAlterTableAddColumnConvertor, SQLiteAlterTableAddColumnConvertor, PgAlterTableAlterColumnSetTypeConvertor, PgAlterTableAlterColumnSetDefaultConvertor, PgAlterTableAlterColumnDropDefaultConvertor, PgAlterTableAlterColumnDropGeneratedConvertor, PgAlterTableAlterColumnSetExpressionConvertor, PgAlterTableAlterColumnAlterrGeneratedConvertor, SqliteAlterTableAlterColumnDropGeneratedConvertor, SqliteAlterTableAlterColumnSetExpressionConvertor, SqliteAlterTableAlterColumnAlterGeneratedConvertor, MySqlAlterTableAlterColumnAlterrGeneratedConvertor, MySqlAlterTableAddPk, MySqlAlterTableDropPk, LibSQLModifyColumn, MySqlModifyColumn, PgAlterTableCreateCompositePrimaryKeyConvertor, PgAlterTableDeleteCompositePrimaryKeyConvertor, PgAlterTableAlterCompositePrimaryKeyConvertor, MySqlAlterTableCreateCompositePrimaryKeyConvertor, MySqlAlterTableDeleteCompositePrimaryKeyConvertor, MySqlAlterTableAlterCompositePrimaryKeyConvertor, PgAlterTableAlterColumnSetPrimaryKeyConvertor, PgAlterTableAlterColumnDropPrimaryKeyConvertor, PgAlterTableAlterColumnSetNotNullConvertor, PgAlterTableAlterColumnDropNotNullConvertor, PgCreateForeignKeyConvertor, LibSQLCreateForeignKeyConvertor, MySqlCreateForeignKeyConvertor, PgAlterForeignKeyConvertor, PgDeleteForeignKeyConvertor, MySqlDeleteForeignKeyConvertor, CreatePgIndexConvertor, CreateMySqlIndexConvertor, CreateSqliteIndexConvertor, PgDropIndexConvertor, PgCreateSchemaConvertor, PgRenameSchemaConvertor, PgDropSchemaConvertor, PgAlterTableSetSchemaConvertor, PgAlterTableSetNewSchemaConvertor, PgAlterTableRemoveFromSchemaConvertor, SqliteDropIndexConvertor, MySqlDropIndexConvertor, SQLiteRecreateTableConvertor, LibSQLRecreateTableConvertor, convertors;
         | 
| 11622 11515 | 
             
            var init_sqlgenerator = __esm({
         | 
| 11623 11516 | 
             
              "src/sqlgenerator.ts"() {
         | 
| 11624 11517 | 
             
                "use strict";
         | 
| @@ -11679,7 +11572,7 @@ var init_sqlgenerator = __esm({ | |
| 11679 11572 | 
             
                    return statement.type === "create_table" && dialect7 === "postgresql";
         | 
| 11680 11573 | 
             
                  }
         | 
| 11681 11574 | 
             
                  convert(st) {
         | 
| 11682 | 
            -
                    const { tableName, schema: schema4, columns, compositePKs, uniqueConstraints | 
| 11575 | 
            +
                    const { tableName, schema: schema4, columns, compositePKs, uniqueConstraints } = st;
         | 
| 11683 11576 | 
             
                    let statement = "";
         | 
| 11684 11577 | 
             
                    const name2 = schema4 ? `"${schema4}"."${tableName}"` : `"${tableName}"`;
         | 
| 11685 11578 | 
             
                    statement += `CREATE TABLE IF NOT EXISTS ${name2} (
         | 
| @@ -11712,13 +11605,6 @@ var init_sqlgenerator = __esm({ | |
| 11712 11605 | 
             
                        statement += `	CONSTRAINT "${unsquashedUnique.name}" UNIQUE${unsquashedUnique.nullsNotDistinct ? " NULLS NOT DISTINCT" : ""}("${unsquashedUnique.columns.join(`","`)}")`;
         | 
| 11713 11606 | 
             
                      }
         | 
| 11714 11607 | 
             
                    }
         | 
| 11715 | 
            -
                    if (typeof checkConstraints !== "undefined" && checkConstraints.length > 0) {
         | 
| 11716 | 
            -
                      for (const checkConstraint4 of checkConstraints) {
         | 
| 11717 | 
            -
                        statement += ",\n";
         | 
| 11718 | 
            -
                        const unsquashedCheck = PgSquasher.unsquashCheck(checkConstraint4);
         | 
| 11719 | 
            -
                        statement += `	CONSTRAINT "${unsquashedCheck.name}" CHECK (${unsquashedCheck.value})`;
         | 
| 11720 | 
            -
                      }
         | 
| 11721 | 
            -
                    }
         | 
| 11722 11608 | 
             
                    statement += `
         | 
| 11723 11609 | 
             
            );`;
         | 
| 11724 11610 | 
             
                    statement += `
         | 
| @@ -11735,7 +11621,6 @@ var init_sqlgenerator = __esm({ | |
| 11735 11621 | 
             
                      tableName,
         | 
| 11736 11622 | 
             
                      columns,
         | 
| 11737 11623 | 
             
                      schema: schema4,
         | 
| 11738 | 
            -
                      checkConstraints,
         | 
| 11739 11624 | 
             
                      compositePKs,
         | 
| 11740 11625 | 
             
                      uniqueConstraints,
         | 
| 11741 11626 | 
             
                      internals
         | 
| @@ -11769,13 +11654,6 @@ var init_sqlgenerator = __esm({ | |
| 11769 11654 | 
             
                        statement += `	CONSTRAINT \`${unsquashedUnique.name}\` UNIQUE(${uniqueString})`;
         | 
| 11770 11655 | 
             
                      }
         | 
| 11771 11656 | 
             
                    }
         | 
| 11772 | 
            -
                    if (typeof checkConstraints !== "undefined" && checkConstraints.length > 0) {
         | 
| 11773 | 
            -
                      for (const checkConstraint4 of checkConstraints) {
         | 
| 11774 | 
            -
                        statement += ",\n";
         | 
| 11775 | 
            -
                        const unsquashedCheck = MySqlSquasher.unsquashCheck(checkConstraint4);
         | 
| 11776 | 
            -
                        statement += `	CONSTRAINT \`${unsquashedCheck.name}\` CHECK(${unsquashedCheck.value})`;
         | 
| 11777 | 
            -
                      }
         | 
| 11778 | 
            -
                    }
         | 
| 11779 11657 | 
             
                    statement += `
         | 
| 11780 11658 | 
             
            );`;
         | 
| 11781 11659 | 
             
                    statement += `
         | 
| @@ -11793,8 +11671,7 @@ var init_sqlgenerator = __esm({ | |
| 11793 11671 | 
             
                      columns,
         | 
| 11794 11672 | 
             
                      referenceData,
         | 
| 11795 11673 | 
             
                      compositePKs,
         | 
| 11796 | 
            -
                      uniqueConstraints | 
| 11797 | 
            -
                      checkConstraints
         | 
| 11674 | 
            +
                      uniqueConstraints
         | 
| 11798 11675 | 
             
                    } = st;
         | 
| 11799 11676 | 
             
                    let statement = "";
         | 
| 11800 11677 | 
             
                    statement += `CREATE TABLE \`${tableName}\` (
         | 
| @@ -11835,17 +11712,10 @@ var init_sqlgenerator = __esm({ | |
| 11835 11712 | 
             
                    if (typeof uniqueConstraints !== "undefined" && uniqueConstraints.length > 0) {
         | 
| 11836 11713 | 
             
                      for (const uniqueConstraint4 of uniqueConstraints) {
         | 
| 11837 11714 | 
             
                        statement += ",\n";
         | 
| 11838 | 
            -
                        const unsquashedUnique =  | 
| 11715 | 
            +
                        const unsquashedUnique = MySqlSquasher.unsquashUnique(uniqueConstraint4);
         | 
| 11839 11716 | 
             
                        statement += `	CONSTRAINT ${unsquashedUnique.name} UNIQUE(\`${unsquashedUnique.columns.join(`\`,\``)}\`)`;
         | 
| 11840 11717 | 
             
                      }
         | 
| 11841 11718 | 
             
                    }
         | 
| 11842 | 
            -
                    if (typeof checkConstraints !== "undefined" && checkConstraints.length > 0) {
         | 
| 11843 | 
            -
                      for (const check of checkConstraints) {
         | 
| 11844 | 
            -
                        statement += ",\n";
         | 
| 11845 | 
            -
                        const { value, name: name2 } = SQLiteSquasher.unsquashCheck(check);
         | 
| 11846 | 
            -
                        statement += `	CONSTRAINT "${name2}" CHECK(${value})`;
         | 
| 11847 | 
            -
                      }
         | 
| 11848 | 
            -
                    }
         | 
| 11849 11719 | 
             
                    statement += `
         | 
| 11850 11720 | 
             
            `;
         | 
| 11851 11721 | 
             
                    statement += `);`;
         | 
| @@ -11945,25 +11815,6 @@ var init_sqlgenerator = __esm({ | |
| 11945 11815 | 
             
                    return `ALTER TABLE ${tableNameWithSchema} DROP CONSTRAINT "${unsquashed.name}";`;
         | 
| 11946 11816 | 
             
                  }
         | 
| 11947 11817 | 
             
                };
         | 
| 11948 | 
            -
                PgAlterTableAddCheckConstraintConvertor = class extends Convertor {
         | 
| 11949 | 
            -
                  can(statement, dialect7) {
         | 
| 11950 | 
            -
                    return statement.type === "create_check_constraint" && dialect7 === "postgresql";
         | 
| 11951 | 
            -
                  }
         | 
| 11952 | 
            -
                  convert(statement) {
         | 
| 11953 | 
            -
                    const unsquashed = PgSquasher.unsquashCheck(statement.data);
         | 
| 11954 | 
            -
                    const tableNameWithSchema = statement.schema ? `"${statement.schema}"."${statement.tableName}"` : `"${statement.tableName}"`;
         | 
| 11955 | 
            -
                    return `ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT "${unsquashed.name}" CHECK (${unsquashed.value});`;
         | 
| 11956 | 
            -
                  }
         | 
| 11957 | 
            -
                };
         | 
| 11958 | 
            -
                PgAlterTableDeleteCheckConstraintConvertor = class extends Convertor {
         | 
| 11959 | 
            -
                  can(statement, dialect7) {
         | 
| 11960 | 
            -
                    return statement.type === "delete_check_constraint" && dialect7 === "postgresql";
         | 
| 11961 | 
            -
                  }
         | 
| 11962 | 
            -
                  convert(statement) {
         | 
| 11963 | 
            -
                    const tableNameWithSchema = statement.schema ? `"${statement.schema}"."${statement.tableName}"` : `"${statement.tableName}"`;
         | 
| 11964 | 
            -
                    return `ALTER TABLE ${tableNameWithSchema} DROP CONSTRAINT "${statement.constraintName}";`;
         | 
| 11965 | 
            -
                  }
         | 
| 11966 | 
            -
                };
         | 
| 11967 11818 | 
             
                MySQLAlterTableAddUniqueConstraintConvertor = class extends Convertor {
         | 
| 11968 11819 | 
             
                  can(statement, dialect7) {
         | 
| 11969 11820 | 
             
                    return statement.type === "create_unique_constraint" && dialect7 === "mysql";
         | 
| @@ -11982,25 +11833,6 @@ var init_sqlgenerator = __esm({ | |
| 11982 11833 | 
             
                    return `ALTER TABLE \`${statement.tableName}\` DROP INDEX \`${unsquashed.name}\`;`;
         | 
| 11983 11834 | 
             
                  }
         | 
| 11984 11835 | 
             
                };
         | 
| 11985 | 
            -
                MySqlAlterTableAddCheckConstraintConvertor = class extends Convertor {
         | 
| 11986 | 
            -
                  can(statement, dialect7) {
         | 
| 11987 | 
            -
                    return statement.type === "create_check_constraint" && dialect7 === "mysql";
         | 
| 11988 | 
            -
                  }
         | 
| 11989 | 
            -
                  convert(statement) {
         | 
| 11990 | 
            -
                    const unsquashed = MySqlSquasher.unsquashCheck(statement.data);
         | 
| 11991 | 
            -
                    const { tableName } = statement;
         | 
| 11992 | 
            -
                    return `ALTER TABLE \`${tableName}\` ADD CONSTRAINT \`${unsquashed.name}\` CHECK (${unsquashed.value});`;
         | 
| 11993 | 
            -
                  }
         | 
| 11994 | 
            -
                };
         | 
| 11995 | 
            -
                MySqlAlterTableDeleteCheckConstraintConvertor = class extends Convertor {
         | 
| 11996 | 
            -
                  can(statement, dialect7) {
         | 
| 11997 | 
            -
                    return statement.type === "delete_check_constraint" && dialect7 === "mysql";
         | 
| 11998 | 
            -
                  }
         | 
| 11999 | 
            -
                  convert(statement) {
         | 
| 12000 | 
            -
                    const { tableName } = statement;
         | 
| 12001 | 
            -
                    return `ALTER TABLE \`${tableName}\` DROP CONSTRAINT \`${statement.constraintName}\`;`;
         | 
| 12002 | 
            -
                  }
         | 
| 12003 | 
            -
                };
         | 
| 12004 11836 | 
             
                CreatePgSequenceConvertor = class extends Convertor {
         | 
| 12005 11837 | 
             
                  can(statement, dialect7) {
         | 
| 12006 11838 | 
             
                    return statement.type === "create_sequence" && dialect7 === "postgresql";
         | 
| @@ -12555,7 +12387,7 @@ var init_sqlgenerator = __esm({ | |
| 12555 12387 | 
             
                };
         | 
| 12556 12388 | 
             
                LibSQLModifyColumn = class extends Convertor {
         | 
| 12557 12389 | 
             
                  can(statement, dialect7) {
         | 
| 12558 | 
            -
                    return (statement.type === "alter_table_alter_column_set_type" || statement.type === "alter_table_alter_column_drop_notnull" || statement.type === "alter_table_alter_column_set_notnull" || statement.type === "alter_table_alter_column_set_default" || statement.type === "alter_table_alter_column_drop_default" | 
| 12390 | 
            +
                    return (statement.type === "alter_table_alter_column_set_type" || statement.type === "alter_table_alter_column_drop_notnull" || statement.type === "alter_table_alter_column_set_notnull" || statement.type === "alter_table_alter_column_set_default" || statement.type === "alter_table_alter_column_drop_default") && dialect7 === "turso";
         | 
| 12559 12391 | 
             
                  }
         | 
| 12560 12392 | 
             
                  convert(statement, json2) {
         | 
| 12561 12393 | 
             
                    const { tableName, columnName } = statement;
         | 
| @@ -13142,22 +12974,18 @@ ${BREAKPOINT}ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT ${statement.newCo | |
| 13142 12974 | 
             
                    return statement.type === "recreate_table" && dialect7 === "sqlite";
         | 
| 13143 12975 | 
             
                  }
         | 
| 13144 12976 | 
             
                  convert(statement) {
         | 
| 13145 | 
            -
                    const { tableName, columns, compositePKs, referenceData | 
| 12977 | 
            +
                    const { tableName, columns, compositePKs, referenceData } = statement;
         | 
| 13146 12978 | 
             
                    const columnNames = columns.map((it) => `"${it.name}"`).join(", ");
         | 
| 13147 12979 | 
             
                    const newTableName = `__new_${tableName}`;
         | 
| 13148 12980 | 
             
                    const sqlStatements = [];
         | 
| 13149 12981 | 
             
                    sqlStatements.push(`PRAGMA foreign_keys=OFF;`);
         | 
| 13150 | 
            -
                    const mappedCheckConstraints = checkConstraints.map(
         | 
| 13151 | 
            -
                      (it) => it.replaceAll(`"${tableName}".`, `"${newTableName}".`).replaceAll(`\`${tableName}\`.`, `\`${newTableName}\`.`).replaceAll(`${tableName}.`, `${newTableName}.`).replaceAll(`'${tableName}'.`, `'${newTableName}'.`)
         | 
| 13152 | 
            -
                    );
         | 
| 13153 12982 | 
             
                    sqlStatements.push(
         | 
| 13154 12983 | 
             
                      new SQLiteCreateTableConvertor().convert({
         | 
| 13155 12984 | 
             
                        type: "sqlite_create_table",
         | 
| 13156 12985 | 
             
                        tableName: newTableName,
         | 
| 13157 12986 | 
             
                        columns,
         | 
| 13158 12987 | 
             
                        referenceData,
         | 
| 13159 | 
            -
                        compositePKs | 
| 13160 | 
            -
                        checkConstraints: mappedCheckConstraints
         | 
| 12988 | 
            +
                        compositePKs
         | 
| 13161 12989 | 
             
                      })
         | 
| 13162 12990 | 
             
                    );
         | 
| 13163 12991 | 
             
                    sqlStatements.push(
         | 
| @@ -13188,13 +13016,10 @@ ${BREAKPOINT}ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT ${statement.newCo | |
| 13188 13016 | 
             
                    return statement.type === "recreate_table" && dialect7 === "turso";
         | 
| 13189 13017 | 
             
                  }
         | 
| 13190 13018 | 
             
                  convert(statement) {
         | 
| 13191 | 
            -
                    const { tableName, columns, compositePKs, referenceData | 
| 13019 | 
            +
                    const { tableName, columns, compositePKs, referenceData } = statement;
         | 
| 13192 13020 | 
             
                    const columnNames = columns.map((it) => `"${it.name}"`).join(", ");
         | 
| 13193 13021 | 
             
                    const newTableName = `__new_${tableName}`;
         | 
| 13194 13022 | 
             
                    const sqlStatements = [];
         | 
| 13195 | 
            -
                    const mappedCheckConstraints = checkConstraints.map(
         | 
| 13196 | 
            -
                      (it) => it.replaceAll(`"${tableName}".`, `"${newTableName}".`).replaceAll(`\`${tableName}\`.`, `\`${newTableName}\`.`).replaceAll(`${tableName}.`, `${newTableName}.`).replaceAll(`'${tableName}'.`, `\`${newTableName}\`.`)
         | 
| 13197 | 
            -
                    );
         | 
| 13198 13023 | 
             
                    sqlStatements.push(`PRAGMA foreign_keys=OFF;`);
         | 
| 13199 13024 | 
             
                    sqlStatements.push(
         | 
| 13200 13025 | 
             
                      new SQLiteCreateTableConvertor().convert({
         | 
| @@ -13202,8 +13027,7 @@ ${BREAKPOINT}ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT ${statement.newCo | |
| 13202 13027 | 
             
                        tableName: newTableName,
         | 
| 13203 13028 | 
             
                        columns,
         | 
| 13204 13029 | 
             
                        referenceData,
         | 
| 13205 | 
            -
                        compositePKs | 
| 13206 | 
            -
                        checkConstraints: mappedCheckConstraints
         | 
| 13030 | 
            +
                        compositePKs
         | 
| 13207 13031 | 
             
                      })
         | 
| 13208 13032 | 
             
                    );
         | 
| 13209 13033 | 
             
                    sqlStatements.push(
         | 
| @@ -13259,10 +13083,6 @@ ${BREAKPOINT}ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT ${statement.newCo | |
| 13259 13083 | 
             
                convertors.push(new PgAlterTableAlterColumnSetTypeConvertor());
         | 
| 13260 13084 | 
             
                convertors.push(new PgAlterTableAddUniqueConstraintConvertor());
         | 
| 13261 13085 | 
             
                convertors.push(new PgAlterTableDropUniqueConstraintConvertor());
         | 
| 13262 | 
            -
                convertors.push(new PgAlterTableAddCheckConstraintConvertor());
         | 
| 13263 | 
            -
                convertors.push(new PgAlterTableDeleteCheckConstraintConvertor());
         | 
| 13264 | 
            -
                convertors.push(new MySqlAlterTableAddCheckConstraintConvertor());
         | 
| 13265 | 
            -
                convertors.push(new MySqlAlterTableDeleteCheckConstraintConvertor());
         | 
| 13266 13086 | 
             
                convertors.push(new MySQLAlterTableAddUniqueConstraintConvertor());
         | 
| 13267 13087 | 
             
                convertors.push(new MySQLAlterTableDropUniqueConstraintConvertor());
         | 
| 13268 13088 | 
             
                convertors.push(new CreatePgIndexConvertor());
         | 
| @@ -13353,10 +13173,6 @@ var init_sqlitePushUtils = __esm({ | |
| 13353 13173 | 
             
                  const compositePKs = Object.values(
         | 
| 13354 13174 | 
             
                    json.tables[tableName].compositePrimaryKeys
         | 
| 13355 13175 | 
             
                  ).map((it) => SQLiteSquasher.unsquashPK(it));
         | 
| 13356 | 
            -
                  const checkConstraints = Object.values(json.tables[tableName].checkConstraints);
         | 
| 13357 | 
            -
                  const mappedCheckConstraints = checkConstraints.map(
         | 
| 13358 | 
            -
                    (it) => it.replaceAll(`"${tableName}".`, `"${newTableName}".`).replaceAll(`\`${tableName}\`.`, `\`${newTableName}\`.`).replaceAll(`${tableName}.`, `${newTableName}.`).replaceAll(`'${tableName}'.`, `\`${newTableName}\`.`)
         | 
| 13359 | 
            -
                  );
         | 
| 13360 13176 | 
             
                  const fks = referenceData.map((it) => SQLiteSquasher.unsquashPushFK(it));
         | 
| 13361 13177 | 
             
                  statements.push(
         | 
| 13362 13178 | 
             
                    new SQLiteCreateTableConvertor().convert({
         | 
| @@ -13364,8 +13180,7 @@ var init_sqlitePushUtils = __esm({ | |
| 13364 13180 | 
             
                      tableName: newTableName,
         | 
| 13365 13181 | 
             
                      columns: tableColumns,
         | 
| 13366 13182 | 
             
                      referenceData: fks,
         | 
| 13367 | 
            -
                      compositePKs | 
| 13368 | 
            -
                      checkConstraints: mappedCheckConstraints
         | 
| 13183 | 
            +
                      compositePKs
         | 
| 13369 13184 | 
             
                    })
         | 
| 13370 13185 | 
             
                  );
         | 
| 13371 13186 | 
             
                  if (!dataLoss) {
         | 
| @@ -13577,7 +13392,7 @@ var init_sqlitePushUtils = __esm({ | |
| 13577 13392 | 
             
            });
         | 
| 13578 13393 |  | 
| 13579 13394 | 
             
            // src/jsonStatements.ts
         | 
| 13580 | 
            -
            var preparePgCreateTableJson, prepareMySqlCreateTableJson, prepareSQLiteCreateTable, prepareDropTableJson, prepareRenameTableJson, prepareCreateEnumJson, prepareAddValuesToEnumJson, prepareDropEnumJson, prepareMoveEnumJson, prepareRenameEnumJson, prepareCreateSequenceJson, prepareAlterSequenceJson, prepareDropSequenceJson, prepareMoveSequenceJson, prepareRenameSequenceJson, prepareCreateSchemasJson, prepareRenameSchemasJson, prepareDeleteSchemasJson, prepareRenameColumns, _prepareDropColumns, _prepareAddColumns, _prepareSqliteAddColumns, prepareAlterColumnsMysql, preparePgAlterColumns, prepareSqliteAlterColumns, preparePgCreateIndexesJson, prepareCreateIndexesJson, prepareCreateReferencesJson, prepareLibSQLCreateReferencesJson, prepareDropReferencesJson, prepareLibSQLDropReferencesJson, prepareAlterReferencesJson, prepareDropIndexesJson, prepareAddCompositePrimaryKeySqlite, prepareDeleteCompositePrimaryKeySqlite, prepareAlterCompositePrimaryKeySqlite, prepareAddCompositePrimaryKeyPg, prepareDeleteCompositePrimaryKeyPg, prepareAlterCompositePrimaryKeyPg, prepareAddUniqueConstraintPg, prepareDeleteUniqueConstraintPg,  | 
| 13395 | 
            +
            var preparePgCreateTableJson, prepareMySqlCreateTableJson, prepareSQLiteCreateTable, prepareDropTableJson, prepareRenameTableJson, prepareCreateEnumJson, prepareAddValuesToEnumJson, prepareDropEnumJson, prepareMoveEnumJson, prepareRenameEnumJson, prepareCreateSequenceJson, prepareAlterSequenceJson, prepareDropSequenceJson, prepareMoveSequenceJson, prepareRenameSequenceJson, prepareCreateSchemasJson, prepareRenameSchemasJson, prepareDeleteSchemasJson, prepareRenameColumns, _prepareDropColumns, _prepareAddColumns, _prepareSqliteAddColumns, prepareAlterColumnsMysql, preparePgAlterColumns, prepareSqliteAlterColumns, preparePgCreateIndexesJson, prepareCreateIndexesJson, prepareCreateReferencesJson, prepareLibSQLCreateReferencesJson, prepareDropReferencesJson, prepareLibSQLDropReferencesJson, prepareAlterReferencesJson, prepareDropIndexesJson, prepareAddCompositePrimaryKeySqlite, prepareDeleteCompositePrimaryKeySqlite, prepareAlterCompositePrimaryKeySqlite, prepareAddCompositePrimaryKeyPg, prepareDeleteCompositePrimaryKeyPg, prepareAlterCompositePrimaryKeyPg, prepareAddUniqueConstraintPg, prepareDeleteUniqueConstraintPg, prepareAddCompositePrimaryKeyMySql, prepareDeleteCompositePrimaryKeyMySql, prepareAlterCompositePrimaryKeyMySql;
         | 
| 13581 13396 | 
             
            var init_jsonStatements = __esm({
         | 
| 13582 13397 | 
             
              "src/jsonStatements.ts"() {
         | 
| 13583 13398 | 
             
                "use strict";
         | 
| @@ -13588,7 +13403,7 @@ var init_jsonStatements = __esm({ | |
| 13588 13403 | 
             
                init_pgSchema();
         | 
| 13589 13404 | 
             
                init_sqliteSchema();
         | 
| 13590 13405 | 
             
                preparePgCreateTableJson = (table4, json2) => {
         | 
| 13591 | 
            -
                  const { name: name2, schema: schema4, columns, compositePrimaryKeys, uniqueConstraints | 
| 13406 | 
            +
                  const { name: name2, schema: schema4, columns, compositePrimaryKeys, uniqueConstraints } = table4;
         | 
| 13592 13407 | 
             
                  const tableKey2 = `${schema4 || "public"}.${name2}`;
         | 
| 13593 13408 | 
             
                  const compositePkName = Object.values(compositePrimaryKeys).length > 0 ? json2.tables[tableKey2].compositePrimaryKeys[`${PgSquasher.unsquashPK(Object.values(compositePrimaryKeys)[0]).name}`].name : "";
         | 
| 13594 13409 | 
             
                  return {
         | 
| @@ -13598,12 +13413,11 @@ var init_jsonStatements = __esm({ | |
| 13598 13413 | 
             
                    columns: Object.values(columns),
         | 
| 13599 13414 | 
             
                    compositePKs: Object.values(compositePrimaryKeys),
         | 
| 13600 13415 | 
             
                    compositePkName,
         | 
| 13601 | 
            -
                    uniqueConstraints: Object.values(uniqueConstraints) | 
| 13602 | 
            -
                    checkConstraints: Object.values(checkConstraints)
         | 
| 13416 | 
            +
                    uniqueConstraints: Object.values(uniqueConstraints)
         | 
| 13603 13417 | 
             
                  };
         | 
| 13604 13418 | 
             
                };
         | 
| 13605 13419 | 
             
                prepareMySqlCreateTableJson = (table4, json2, internals) => {
         | 
| 13606 | 
            -
                  const { name: name2, schema: schema4, columns, compositePrimaryKeys, uniqueConstraints | 
| 13420 | 
            +
                  const { name: name2, schema: schema4, columns, compositePrimaryKeys, uniqueConstraints } = table4;
         | 
| 13607 13421 | 
             
                  return {
         | 
| 13608 13422 | 
             
                    type: "create_table",
         | 
| 13609 13423 | 
             
                    tableName: name2,
         | 
| @@ -13612,12 +13426,11 @@ var init_jsonStatements = __esm({ | |
| 13612 13426 | 
             
                    compositePKs: Object.values(compositePrimaryKeys),
         | 
| 13613 13427 | 
             
                    compositePkName: Object.values(compositePrimaryKeys).length > 0 ? json2.tables[name2].compositePrimaryKeys[MySqlSquasher.unsquashPK(Object.values(compositePrimaryKeys)[0]).name].name : "",
         | 
| 13614 13428 | 
             
                    uniqueConstraints: Object.values(uniqueConstraints),
         | 
| 13615 | 
            -
                    internals | 
| 13616 | 
            -
                    checkConstraints: Object.values(checkConstraints)
         | 
| 13429 | 
            +
                    internals
         | 
| 13617 13430 | 
             
                  };
         | 
| 13618 13431 | 
             
                };
         | 
| 13619 13432 | 
             
                prepareSQLiteCreateTable = (table4, action) => {
         | 
| 13620 | 
            -
                  const { name: name2, columns, uniqueConstraints | 
| 13433 | 
            +
                  const { name: name2, columns, uniqueConstraints } = table4;
         | 
| 13621 13434 | 
             
                  const references2 = Object.values(table4.foreignKeys);
         | 
| 13622 13435 | 
             
                  const composites = Object.values(table4.compositePrimaryKeys).map(
         | 
| 13623 13436 | 
             
                    (it) => SQLiteSquasher.unsquashPK(it)
         | 
| @@ -13631,8 +13444,7 @@ var init_jsonStatements = __esm({ | |
| 13631 13444 | 
             
                    columns: Object.values(columns),
         | 
| 13632 13445 | 
             
                    referenceData: fks,
         | 
| 13633 13446 | 
             
                    compositePKs: composites,
         | 
| 13634 | 
            -
                    uniqueConstraints: Object.values(uniqueConstraints) | 
| 13635 | 
            -
                    checkConstraints: Object.values(checkConstraints)
         | 
| 13447 | 
            +
                    uniqueConstraints: Object.values(uniqueConstraints)
         | 
| 13636 13448 | 
             
                  };
         | 
| 13637 13449 | 
             
                };
         | 
| 13638 13450 | 
             
                prepareDropTableJson = (table4) => {
         | 
| @@ -14875,26 +14687,6 @@ var init_jsonStatements = __esm({ | |
| 14875 14687 | 
             
                    };
         | 
| 14876 14688 | 
             
                  });
         | 
| 14877 14689 | 
             
                };
         | 
| 14878 | 
            -
                prepareAddCheckConstraint = (tableName, schema4, check) => {
         | 
| 14879 | 
            -
                  return Object.values(check).map((it) => {
         | 
| 14880 | 
            -
                    return {
         | 
| 14881 | 
            -
                      type: "create_check_constraint",
         | 
| 14882 | 
            -
                      tableName,
         | 
| 14883 | 
            -
                      data: it,
         | 
| 14884 | 
            -
                      schema: schema4
         | 
| 14885 | 
            -
                    };
         | 
| 14886 | 
            -
                  });
         | 
| 14887 | 
            -
                };
         | 
| 14888 | 
            -
                prepareDeleteCheckConstraint = (tableName, schema4, check) => {
         | 
| 14889 | 
            -
                  return Object.values(check).map((it) => {
         | 
| 14890 | 
            -
                    return {
         | 
| 14891 | 
            -
                      type: "delete_check_constraint",
         | 
| 14892 | 
            -
                      tableName,
         | 
| 14893 | 
            -
                      constraintName: PgSquasher.unsquashCheck(it).name,
         | 
| 14894 | 
            -
                      schema: schema4
         | 
| 14895 | 
            -
                    };
         | 
| 14896 | 
            -
                  });
         | 
| 14897 | 
            -
                };
         | 
| 14898 14690 | 
             
                prepareAddCompositePrimaryKeyMySql = (tableName, pks, json1, json2) => {
         | 
| 14899 14691 | 
             
                  const res = [];
         | 
| 14900 14692 | 
             
                  for (const it of Object.values(pks)) {
         | 
| @@ -14944,7 +14736,7 @@ var init_statementCombiner = __esm({ | |
| 14944 14736 | 
             
                init_jsonStatements();
         | 
| 14945 14737 | 
             
                init_sqliteSchema();
         | 
| 14946 14738 | 
             
                prepareLibSQLRecreateTable = (table4, action) => {
         | 
| 14947 | 
            -
                  const { name: name2, columns, uniqueConstraints, indexes | 
| 14739 | 
            +
                  const { name: name2, columns, uniqueConstraints, indexes } = table4;
         | 
| 14948 14740 | 
             
                  const composites = Object.values(table4.compositePrimaryKeys).map(
         | 
| 14949 14741 | 
             
                    (it) => SQLiteSquasher.unsquashPK(it)
         | 
| 14950 14742 | 
             
                  );
         | 
| @@ -14959,8 +14751,7 @@ var init_statementCombiner = __esm({ | |
| 14959 14751 | 
             
                      columns: Object.values(columns),
         | 
| 14960 14752 | 
             
                      compositePKs: composites,
         | 
| 14961 14753 | 
             
                      referenceData: fks,
         | 
| 14962 | 
            -
                      uniqueConstraints: Object.values(uniqueConstraints) | 
| 14963 | 
            -
                      checkConstraints: Object.values(checkConstraints)
         | 
| 14754 | 
            +
                      uniqueConstraints: Object.values(uniqueConstraints)
         | 
| 14964 14755 | 
             
                    }
         | 
| 14965 14756 | 
             
                  ];
         | 
| 14966 14757 | 
             
                  if (Object.keys(indexes).length) {
         | 
| @@ -14969,7 +14760,7 @@ var init_statementCombiner = __esm({ | |
| 14969 14760 | 
             
                  return statements;
         | 
| 14970 14761 | 
             
                };
         | 
| 14971 14762 | 
             
                prepareSQLiteRecreateTable = (table4, action) => {
         | 
| 14972 | 
            -
                  const { name: name2, columns, uniqueConstraints, indexes | 
| 14763 | 
            +
                  const { name: name2, columns, uniqueConstraints, indexes } = table4;
         | 
| 14973 14764 | 
             
                  const composites = Object.values(table4.compositePrimaryKeys).map(
         | 
| 14974 14765 | 
             
                    (it) => SQLiteSquasher.unsquashPK(it)
         | 
| 14975 14766 | 
             
                  );
         | 
| @@ -14984,8 +14775,7 @@ var init_statementCombiner = __esm({ | |
| 14984 14775 | 
             
                      columns: Object.values(columns),
         | 
| 14985 14776 | 
             
                      compositePKs: composites,
         | 
| 14986 14777 | 
             
                      referenceData: fks,
         | 
| 14987 | 
            -
                      uniqueConstraints: Object.values(uniqueConstraints) | 
| 14988 | 
            -
                      checkConstraints: Object.values(checkConstraints)
         | 
| 14778 | 
            +
                      uniqueConstraints: Object.values(uniqueConstraints)
         | 
| 14989 14779 | 
             
                    }
         | 
| 14990 14780 | 
             
                  ];
         | 
| 14991 14781 | 
             
                  if (Object.keys(indexes).length) {
         | 
| @@ -14996,7 +14786,7 @@ var init_statementCombiner = __esm({ | |
| 14996 14786 | 
             
                libSQLCombineStatements = (statements, json2, action) => {
         | 
| 14997 14787 | 
             
                  const newStatements = {};
         | 
| 14998 14788 | 
             
                  for (const statement of statements) {
         | 
| 14999 | 
            -
                    if (statement.type === "alter_table_alter_column_drop_autoincrement" || statement.type === "alter_table_alter_column_set_autoincrement" || statement.type === "alter_table_alter_column_drop_pk" || statement.type === "alter_table_alter_column_set_pk" || statement.type === "create_composite_pk" || statement.type === "alter_composite_pk" || statement.type === "delete_composite_pk" | 
| 14789 | 
            +
                    if (statement.type === "alter_table_alter_column_drop_autoincrement" || statement.type === "alter_table_alter_column_set_autoincrement" || statement.type === "alter_table_alter_column_drop_pk" || statement.type === "alter_table_alter_column_set_pk" || statement.type === "create_composite_pk" || statement.type === "alter_composite_pk" || statement.type === "delete_composite_pk") {
         | 
| 15000 14790 | 
             
                      const tableName2 = statement.tableName;
         | 
| 15001 14791 | 
             
                      const statementsForTable2 = newStatements[tableName2];
         | 
| 15002 14792 | 
             
                      if (!statementsForTable2) {
         | 
| @@ -15137,16 +14927,16 @@ var init_statementCombiner = __esm({ | |
| 15137 14927 | 
             
                sqliteCombineStatements = (statements, json2, action) => {
         | 
| 15138 14928 | 
             
                  const newStatements = {};
         | 
| 15139 14929 | 
             
                  for (const statement of statements) {
         | 
| 15140 | 
            -
                    if (statement.type === "alter_table_alter_column_set_type" || statement.type === "alter_table_alter_column_set_default" || statement.type === "alter_table_alter_column_drop_default" || statement.type === "alter_table_alter_column_set_notnull" || statement.type === "alter_table_alter_column_drop_notnull" || statement.type === "alter_table_alter_column_drop_autoincrement" || statement.type === "alter_table_alter_column_set_autoincrement" || statement.type === "alter_table_alter_column_drop_pk" || statement.type === "alter_table_alter_column_set_pk" || statement.type === "delete_reference" || statement.type === "alter_reference" || statement.type === "create_composite_pk" || statement.type === "alter_composite_pk" || statement.type === "delete_composite_pk" || statement.type === "create_unique_constraint" || statement.type === "delete_unique_constraint" | 
| 14930 | 
            +
                    if (statement.type === "alter_table_alter_column_set_type" || statement.type === "alter_table_alter_column_set_default" || statement.type === "alter_table_alter_column_drop_default" || statement.type === "alter_table_alter_column_set_notnull" || statement.type === "alter_table_alter_column_drop_notnull" || statement.type === "alter_table_alter_column_drop_autoincrement" || statement.type === "alter_table_alter_column_set_autoincrement" || statement.type === "alter_table_alter_column_drop_pk" || statement.type === "alter_table_alter_column_set_pk" || statement.type === "delete_reference" || statement.type === "alter_reference" || statement.type === "create_composite_pk" || statement.type === "alter_composite_pk" || statement.type === "delete_composite_pk" || statement.type === "create_unique_constraint" || statement.type === "delete_unique_constraint") {
         | 
| 15141 14931 | 
             
                      const tableName2 = statement.tableName;
         | 
| 15142 14932 | 
             
                      const statementsForTable2 = newStatements[tableName2];
         | 
| 15143 14933 | 
             
                      if (!statementsForTable2) {
         | 
| 15144 | 
            -
                        newStatements[tableName2] =  | 
| 14934 | 
            +
                        newStatements[tableName2] = prepareLibSQLRecreateTable(json2.tables[tableName2], action);
         | 
| 15145 14935 | 
             
                        continue;
         | 
| 15146 14936 | 
             
                      }
         | 
| 15147 14937 | 
             
                      if (!statementsForTable2.some(({ type }) => type === "recreate_table")) {
         | 
| 15148 14938 | 
             
                        const wasRename = statementsForTable2.some(({ type }) => type === "rename_table");
         | 
| 15149 | 
            -
                        const preparedStatements =  | 
| 14939 | 
            +
                        const preparedStatements = prepareLibSQLRecreateTable(json2.tables[tableName2], action);
         | 
| 15150 14940 | 
             
                        if (wasRename) {
         | 
| 15151 14941 | 
             
                          newStatements[tableName2].push(...preparedStatements);
         | 
| 15152 14942 | 
             
                        } else {
         | 
| @@ -15160,12 +14950,12 @@ var init_statementCombiner = __esm({ | |
| 15160 14950 | 
             
                      const tableName2 = statement.tableName;
         | 
| 15161 14951 | 
             
                      const statementsForTable2 = newStatements[tableName2];
         | 
| 15162 14952 | 
             
                      if (!statementsForTable2) {
         | 
| 15163 | 
            -
                        newStatements[tableName2] =  | 
| 14953 | 
            +
                        newStatements[tableName2] = prepareLibSQLRecreateTable(json2.tables[tableName2], action);
         | 
| 15164 14954 | 
             
                        continue;
         | 
| 15165 14955 | 
             
                      }
         | 
| 15166 14956 | 
             
                      if (!statementsForTable2.some(({ type }) => type === "recreate_table")) {
         | 
| 15167 14957 | 
             
                        const wasRename = statementsForTable2.some(({ type }) => type === "rename_table");
         | 
| 15168 | 
            -
                        const preparedStatements =  | 
| 14958 | 
            +
                        const preparedStatements = prepareLibSQLRecreateTable(json2.tables[tableName2], action);
         | 
| 15169 14959 | 
             
                        if (wasRename) {
         | 
| 15170 14960 | 
             
                          newStatements[tableName2].push(...preparedStatements);
         | 
| 15171 14961 | 
             
                        } else {
         | 
| @@ -15190,7 +14980,7 @@ var init_statementCombiner = __esm({ | |
| 15190 14980 | 
             
                      }
         | 
| 15191 14981 | 
             
                      if (!statementsForTable2.some(({ type }) => type === "recreate_table")) {
         | 
| 15192 14982 | 
             
                        const wasRename = statementsForTable2.some(({ type }) => type === "rename_table");
         | 
| 15193 | 
            -
                        const preparedStatements =  | 
| 14983 | 
            +
                        const preparedStatements = prepareLibSQLRecreateTable(json2.tables[tableName2], action);
         | 
| 15194 14984 | 
             
                        if (wasRename) {
         | 
| 15195 14985 | 
             
                          newStatements[tableName2].push(...preparedStatements);
         | 
| 15196 14986 | 
             
                        } else {
         | 
| @@ -15359,8 +15149,7 @@ var init_snapshotsDiffer = __esm({ | |
| 15359 15149 | 
             
                  indexes: recordType(stringType(), stringType()),
         | 
| 15360 15150 | 
             
                  foreignKeys: recordType(stringType(), stringType()),
         | 
| 15361 15151 | 
             
                  compositePrimaryKeys: recordType(stringType(), stringType()).default({}),
         | 
| 15362 | 
            -
                  uniqueConstraints: recordType(stringType(), stringType()).default({}) | 
| 15363 | 
            -
                  checkConstraints: recordType(stringType(), stringType()).default({})
         | 
| 15152 | 
            +
                  uniqueConstraints: recordType(stringType(), stringType()).default({})
         | 
| 15364 15153 | 
             
                }).strict();
         | 
| 15365 15154 | 
             
                alteredTableScheme = objectType({
         | 
| 15366 15155 | 
             
                  name: stringType(),
         | 
| @@ -15401,21 +15190,6 @@ var init_snapshotsDiffer = __esm({ | |
| 15401 15190 | 
             
                      __new: stringType(),
         | 
| 15402 15191 | 
             
                      __old: stringType()
         | 
| 15403 15192 | 
             
                    })
         | 
| 15404 | 
            -
                  ),
         | 
| 15405 | 
            -
                  addedCheckConstraints: recordType(
         | 
| 15406 | 
            -
                    stringType(),
         | 
| 15407 | 
            -
                    stringType()
         | 
| 15408 | 
            -
                  ),
         | 
| 15409 | 
            -
                  deletedCheckConstraints: recordType(
         | 
| 15410 | 
            -
                    stringType(),
         | 
| 15411 | 
            -
                    stringType()
         | 
| 15412 | 
            -
                  ),
         | 
| 15413 | 
            -
                  alteredCheckConstraints: recordType(
         | 
| 15414 | 
            -
                    stringType(),
         | 
| 15415 | 
            -
                    objectType({
         | 
| 15416 | 
            -
                      __new: stringType(),
         | 
| 15417 | 
            -
                      __old: stringType()
         | 
| 15418 | 
            -
                    })
         | 
| 15419 15193 | 
             
                  )
         | 
| 15420 15194 | 
             
                }).strict();
         | 
| 15421 15195 | 
             
                diffResultScheme = objectType({
         | 
| @@ -15756,8 +15530,6 @@ var init_snapshotsDiffer = __esm({ | |
| 15756 15530 | 
             
                      schemaTo: it.schemaTo || "public"
         | 
| 15757 15531 | 
             
                    });
         | 
| 15758 15532 | 
             
                  }
         | 
| 15759 | 
            -
                  const jsonDeletedCheckConstraints = [];
         | 
| 15760 | 
            -
                  const jsonCreatedCheckConstraints = [];
         | 
| 15761 15533 | 
             
                  for (let it of alteredTables) {
         | 
| 15762 15534 | 
             
                    let addedColumns = [];
         | 
| 15763 15535 | 
             
                    for (const addedPkName of Object.keys(it.addedCompositePKs)) {
         | 
| @@ -15797,8 +15569,6 @@ var init_snapshotsDiffer = __esm({ | |
| 15797 15569 | 
             
                    let addedUniqueConstraints = [];
         | 
| 15798 15570 | 
             
                    let deletedUniqueConstraints = [];
         | 
| 15799 15571 | 
             
                    let alteredUniqueConstraints = [];
         | 
| 15800 | 
            -
                    let createCheckConstraints = [];
         | 
| 15801 | 
            -
                    let deleteCheckConstraints = [];
         | 
| 15802 15572 | 
             
                    addedUniqueConstraints = prepareAddUniqueConstraintPg(
         | 
| 15803 15573 | 
             
                      it.name,
         | 
| 15804 15574 | 
             
                      it.schema,
         | 
| @@ -15823,24 +15593,6 @@ var init_snapshotsDiffer = __esm({ | |
| 15823 15593 | 
             
                        ...prepareDeleteUniqueConstraintPg(it.name, it.schema, deleted)
         | 
| 15824 15594 | 
             
                      );
         | 
| 15825 15595 | 
             
                    }
         | 
| 15826 | 
            -
                    createCheckConstraints = prepareAddCheckConstraint(it.name, it.schema, it.addedCheckConstraints);
         | 
| 15827 | 
            -
                    deleteCheckConstraints = prepareDeleteCheckConstraint(
         | 
| 15828 | 
            -
                      it.name,
         | 
| 15829 | 
            -
                      it.schema,
         | 
| 15830 | 
            -
                      it.deletedCheckConstraints
         | 
| 15831 | 
            -
                    );
         | 
| 15832 | 
            -
                    if (it.alteredCheckConstraints && action !== "push") {
         | 
| 15833 | 
            -
                      const added = {};
         | 
| 15834 | 
            -
                      const deleted = {};
         | 
| 15835 | 
            -
                      for (const k6 of Object.keys(it.alteredCheckConstraints)) {
         | 
| 15836 | 
            -
                        added[k6] = it.alteredCheckConstraints[k6].__new;
         | 
| 15837 | 
            -
                        deleted[k6] = it.alteredCheckConstraints[k6].__old;
         | 
| 15838 | 
            -
                      }
         | 
| 15839 | 
            -
                      createCheckConstraints.push(...prepareAddCheckConstraint(it.name, it.schema, added));
         | 
| 15840 | 
            -
                      deleteCheckConstraints.push(...prepareDeleteCheckConstraint(it.name, it.schema, deleted));
         | 
| 15841 | 
            -
                    }
         | 
| 15842 | 
            -
                    jsonCreatedCheckConstraints.push(...createCheckConstraints);
         | 
| 15843 | 
            -
                    jsonDeletedCheckConstraints.push(...deleteCheckConstraints);
         | 
| 15844 15596 | 
             
                    jsonAddedCompositePKs.push(...addedCompositePKs);
         | 
| 15845 15597 | 
             
                    jsonDeletedCompositePKs.push(...deletedCompositePKs);
         | 
| 15846 15598 | 
             
                    jsonAlteredCompositePKs.push(...alteredCompositePKs);
         | 
| @@ -15994,7 +15746,6 @@ var init_snapshotsDiffer = __esm({ | |
| 15994 15746 | 
             
                  jsonStatements.push(...jsonRenameTables);
         | 
| 15995 15747 | 
             
                  jsonStatements.push(...jsonRenameColumnsStatements);
         | 
| 15996 15748 | 
             
                  jsonStatements.push(...jsonDeletedUniqueConstraints);
         | 
| 15997 | 
            -
                  jsonStatements.push(...jsonDeletedCheckConstraints);
         | 
| 15998 15749 | 
             
                  jsonStatements.push(...jsonDroppedReferencesForAlteredTables);
         | 
| 15999 15750 | 
             
                  jsonStatements.push(...jsonDropIndexesForAllAlteredTables);
         | 
| 16000 15751 | 
             
                  jsonStatements.push(...jsonDeletedCompositePKs);
         | 
| @@ -16008,7 +15759,6 @@ var init_snapshotsDiffer = __esm({ | |
| 16008 15759 | 
             
                  jsonStatements.push(...jsonDropColumnsStatemets);
         | 
| 16009 15760 | 
             
                  jsonStatements.push(...jsonAlteredCompositePKs);
         | 
| 16010 15761 | 
             
                  jsonStatements.push(...jsonAddedUniqueConstraints);
         | 
| 16011 | 
            -
                  jsonStatements.push(...jsonCreatedCheckConstraints);
         | 
| 16012 15762 | 
             
                  jsonStatements.push(...jsonAlteredUniqueConstraints);
         | 
| 16013 15763 | 
             
                  jsonStatements.push(...dropEnums);
         | 
| 16014 15764 | 
             
                  jsonStatements.push(...dropSequences);
         | 
| @@ -16172,8 +15922,6 @@ var init_snapshotsDiffer = __esm({ | |
| 16172 15922 | 
             
                  const jsonAddedUniqueConstraints = [];
         | 
| 16173 15923 | 
             
                  const jsonDeletedUniqueConstraints = [];
         | 
| 16174 15924 | 
             
                  const jsonAlteredUniqueConstraints = [];
         | 
| 16175 | 
            -
                  const jsonCreatedCheckConstraints = [];
         | 
| 16176 | 
            -
                  const jsonDeletedCheckConstraints = [];
         | 
| 16177 15925 | 
             
                  const jsonRenameColumnsStatements = columnRenames.map((it) => prepareRenameColumns(it.table, "", it.renames)).flat();
         | 
| 16178 15926 | 
             
                  const jsonAddColumnsStatemets = columnCreates.map((it) => _prepareAddColumns(it.table, "", it.columns)).flat();
         | 
| 16179 15927 | 
             
                  const jsonDropColumnsStatemets = columnDeletes.map((it) => _prepareDropColumns(it.table, "", it.columns)).flat();
         | 
| @@ -16212,8 +15960,6 @@ var init_snapshotsDiffer = __esm({ | |
| 16212 15960 | 
             
                    let addedUniqueConstraints = [];
         | 
| 16213 15961 | 
             
                    let deletedUniqueConstraints = [];
         | 
| 16214 15962 | 
             
                    let alteredUniqueConstraints = [];
         | 
| 16215 | 
            -
                    let createdCheckConstraints = [];
         | 
| 16216 | 
            -
                    let deletedCheckConstraints = [];
         | 
| 16217 15963 | 
             
                    addedUniqueConstraints = prepareAddUniqueConstraintPg(
         | 
| 16218 15964 | 
             
                      it.name,
         | 
| 16219 15965 | 
             
                      it.schema,
         | 
| @@ -16238,30 +15984,12 @@ var init_snapshotsDiffer = __esm({ | |
| 16238 15984 | 
             
                        ...prepareDeleteUniqueConstraintPg(it.name, it.schema, deleted)
         | 
| 16239 15985 | 
             
                      );
         | 
| 16240 15986 | 
             
                    }
         | 
| 16241 | 
            -
                    createdCheckConstraints = prepareAddCheckConstraint(it.name, it.schema, it.addedCheckConstraints);
         | 
| 16242 | 
            -
                    deletedCheckConstraints = prepareDeleteCheckConstraint(
         | 
| 16243 | 
            -
                      it.name,
         | 
| 16244 | 
            -
                      it.schema,
         | 
| 16245 | 
            -
                      it.deletedCheckConstraints
         | 
| 16246 | 
            -
                    );
         | 
| 16247 | 
            -
                    if (it.alteredCheckConstraints && action !== "push") {
         | 
| 16248 | 
            -
                      const added = {};
         | 
| 16249 | 
            -
                      const deleted = {};
         | 
| 16250 | 
            -
                      for (const k6 of Object.keys(it.alteredCheckConstraints)) {
         | 
| 16251 | 
            -
                        added[k6] = it.alteredCheckConstraints[k6].__new;
         | 
| 16252 | 
            -
                        deleted[k6] = it.alteredCheckConstraints[k6].__old;
         | 
| 16253 | 
            -
                      }
         | 
| 16254 | 
            -
                      createdCheckConstraints.push(...prepareAddCheckConstraint(it.name, it.schema, added));
         | 
| 16255 | 
            -
                      deletedCheckConstraints.push(...prepareDeleteCheckConstraint(it.name, it.schema, deleted));
         | 
| 16256 | 
            -
                    }
         | 
| 16257 15987 | 
             
                    jsonAddedCompositePKs.push(...addedCompositePKs);
         | 
| 16258 15988 | 
             
                    jsonDeletedCompositePKs.push(...deletedCompositePKs);
         | 
| 16259 15989 | 
             
                    jsonAlteredCompositePKs.push(...alteredCompositePKs);
         | 
| 16260 15990 | 
             
                    jsonAddedUniqueConstraints.push(...addedUniqueConstraints);
         | 
| 16261 15991 | 
             
                    jsonDeletedUniqueConstraints.push(...deletedUniqueConstraints);
         | 
| 16262 15992 | 
             
                    jsonAlteredUniqueConstraints.push(...alteredUniqueConstraints);
         | 
| 16263 | 
            -
                    jsonCreatedCheckConstraints.push(...createdCheckConstraints);
         | 
| 16264 | 
            -
                    jsonDeletedCheckConstraints.push(...deletedCheckConstraints);
         | 
| 16265 15993 | 
             
                  });
         | 
| 16266 15994 | 
             
                  const rColumns = jsonRenameColumnsStatements.map((it) => {
         | 
| 16267 15995 | 
             
                    const tableName = it.tableName;
         | 
| @@ -16357,7 +16085,6 @@ var init_snapshotsDiffer = __esm({ | |
| 16357 16085 | 
             
                  jsonStatements.push(...jsonRenameTables);
         | 
| 16358 16086 | 
             
                  jsonStatements.push(...jsonRenameColumnsStatements);
         | 
| 16359 16087 | 
             
                  jsonStatements.push(...jsonDeletedUniqueConstraints);
         | 
| 16360 | 
            -
                  jsonStatements.push(...jsonDeletedCheckConstraints);
         | 
| 16361 16088 | 
             
                  jsonStatements.push(...jsonDroppedReferencesForAlteredTables);
         | 
| 16362 16089 | 
             
                  jsonStatements.push(...jsonDropIndexesForAllAlteredTables);
         | 
| 16363 16090 | 
             
                  jsonStatements.push(...jsonDeletedCompositePKs);
         | 
| @@ -16368,11 +16095,11 @@ var init_snapshotsDiffer = __esm({ | |
| 16368 16095 | 
             
                  jsonStatements.push(...jsonAddColumnsStatemets);
         | 
| 16369 16096 | 
             
                  jsonStatements.push(...jsonCreateReferencesForCreatedTables);
         | 
| 16370 16097 | 
             
                  jsonStatements.push(...jsonCreateIndexesForCreatedTables);
         | 
| 16371 | 
            -
                  jsonStatements.push(...jsonCreatedCheckConstraints);
         | 
| 16372 16098 | 
             
                  jsonStatements.push(...jsonCreatedReferencesForAlteredTables);
         | 
| 16373 16099 | 
             
                  jsonStatements.push(...jsonCreateIndexesForAllAlteredTables);
         | 
| 16374 16100 | 
             
                  jsonStatements.push(...jsonDropColumnsStatemets);
         | 
| 16375 16101 | 
             
                  jsonStatements.push(...jsonAlteredCompositePKs);
         | 
| 16102 | 
            +
                  jsonStatements.push(...jsonAddedUniqueConstraints);
         | 
| 16376 16103 | 
             
                  jsonStatements.push(...jsonAlteredUniqueConstraints);
         | 
| 16377 16104 | 
             
                  const sqlStatements = fromJson(jsonStatements, "mysql");
         | 
| 16378 16105 | 
             
                  const uniqueSqlStatements = [];
         | 
| @@ -16500,8 +16227,6 @@ var init_snapshotsDiffer = __esm({ | |
| 16500 16227 | 
             
                  const jsonAddedUniqueConstraints = [];
         | 
| 16501 16228 | 
             
                  const jsonDeletedUniqueConstraints = [];
         | 
| 16502 16229 | 
             
                  const jsonAlteredUniqueConstraints = [];
         | 
| 16503 | 
            -
                  const jsonDeletedCheckConstraints = [];
         | 
| 16504 | 
            -
                  const jsonCreatedCheckConstraints = [];
         | 
| 16505 16230 | 
             
                  allAltered.forEach((it) => {
         | 
| 16506 16231 | 
             
                    let addedColumns = [];
         | 
| 16507 16232 | 
             
                    for (const addedPkName of Object.keys(it.addedCompositePKs)) {
         | 
| @@ -16558,56 +16283,12 @@ var init_snapshotsDiffer = __esm({ | |
| 16558 16283 | 
             
                        ...prepareDeleteUniqueConstraintPg(it.name, it.schema, deleted)
         | 
| 16559 16284 | 
             
                      );
         | 
| 16560 16285 | 
             
                    }
         | 
| 16561 | 
            -
                    let createdCheckConstraints = [];
         | 
| 16562 | 
            -
                    let deletedCheckConstraints = [];
         | 
| 16563 | 
            -
                    addedUniqueConstraints = prepareAddUniqueConstraintPg(
         | 
| 16564 | 
            -
                      it.name,
         | 
| 16565 | 
            -
                      it.schema,
         | 
| 16566 | 
            -
                      it.addedUniqueConstraints
         | 
| 16567 | 
            -
                    );
         | 
| 16568 | 
            -
                    deletedUniqueConstraints = prepareDeleteUniqueConstraintPg(
         | 
| 16569 | 
            -
                      it.name,
         | 
| 16570 | 
            -
                      it.schema,
         | 
| 16571 | 
            -
                      it.deletedUniqueConstraints
         | 
| 16572 | 
            -
                    );
         | 
| 16573 | 
            -
                    if (it.alteredUniqueConstraints) {
         | 
| 16574 | 
            -
                      const added = {};
         | 
| 16575 | 
            -
                      const deleted = {};
         | 
| 16576 | 
            -
                      for (const k6 of Object.keys(it.alteredUniqueConstraints)) {
         | 
| 16577 | 
            -
                        added[k6] = it.alteredUniqueConstraints[k6].__new;
         | 
| 16578 | 
            -
                        deleted[k6] = it.alteredUniqueConstraints[k6].__old;
         | 
| 16579 | 
            -
                      }
         | 
| 16580 | 
            -
                      addedUniqueConstraints.push(
         | 
| 16581 | 
            -
                        ...prepareAddUniqueConstraintPg(it.name, it.schema, added)
         | 
| 16582 | 
            -
                      );
         | 
| 16583 | 
            -
                      deletedUniqueConstraints.push(
         | 
| 16584 | 
            -
                        ...prepareDeleteUniqueConstraintPg(it.name, it.schema, deleted)
         | 
| 16585 | 
            -
                      );
         | 
| 16586 | 
            -
                    }
         | 
| 16587 | 
            -
                    createdCheckConstraints = prepareAddCheckConstraint(it.name, it.schema, it.addedCheckConstraints);
         | 
| 16588 | 
            -
                    deletedCheckConstraints = prepareDeleteCheckConstraint(
         | 
| 16589 | 
            -
                      it.name,
         | 
| 16590 | 
            -
                      it.schema,
         | 
| 16591 | 
            -
                      it.deletedCheckConstraints
         | 
| 16592 | 
            -
                    );
         | 
| 16593 | 
            -
                    if (it.alteredCheckConstraints && action !== "push") {
         | 
| 16594 | 
            -
                      const added = {};
         | 
| 16595 | 
            -
                      const deleted = {};
         | 
| 16596 | 
            -
                      for (const k6 of Object.keys(it.alteredCheckConstraints)) {
         | 
| 16597 | 
            -
                        added[k6] = it.alteredCheckConstraints[k6].__new;
         | 
| 16598 | 
            -
                        deleted[k6] = it.alteredCheckConstraints[k6].__old;
         | 
| 16599 | 
            -
                      }
         | 
| 16600 | 
            -
                      createdCheckConstraints.push(...prepareAddCheckConstraint(it.name, it.schema, added));
         | 
| 16601 | 
            -
                      deletedCheckConstraints.push(...prepareDeleteCheckConstraint(it.name, it.schema, deleted));
         | 
| 16602 | 
            -
                    }
         | 
| 16603 16286 | 
             
                    jsonAddedCompositePKs.push(...addedCompositePKs);
         | 
| 16604 16287 | 
             
                    jsonDeletedCompositePKs.push(...deletedCompositePKs);
         | 
| 16605 16288 | 
             
                    jsonAlteredCompositePKs.push(...alteredCompositePKs);
         | 
| 16606 16289 | 
             
                    jsonAddedUniqueConstraints.push(...addedUniqueConstraints);
         | 
| 16607 16290 | 
             
                    jsonDeletedUniqueConstraints.push(...deletedUniqueConstraints);
         | 
| 16608 16291 | 
             
                    jsonAlteredUniqueConstraints.push(...alteredUniqueConstraints);
         | 
| 16609 | 
            -
                    jsonCreatedCheckConstraints.push(...createdCheckConstraints);
         | 
| 16610 | 
            -
                    jsonDeletedCheckConstraints.push(...deletedCheckConstraints);
         | 
| 16611 16292 | 
             
                  });
         | 
| 16612 16293 | 
             
                  const rColumns = jsonRenameColumnsStatements.map((it) => {
         | 
| 16613 16294 | 
             
                    const tableName = it.tableName;
         | 
| @@ -16692,7 +16373,6 @@ var init_snapshotsDiffer = __esm({ | |
| 16692 16373 | 
             
                  jsonStatements.push(...jsonRenameTables);
         | 
| 16693 16374 | 
             
                  jsonStatements.push(...jsonRenameColumnsStatements);
         | 
| 16694 16375 | 
             
                  jsonStatements.push(...jsonDroppedReferencesForAlteredTables);
         | 
| 16695 | 
            -
                  jsonStatements.push(...jsonDeletedCheckConstraints);
         | 
| 16696 16376 | 
             
                  jsonStatements.push(...jsonDropIndexesForAllAlteredTables);
         | 
| 16697 16377 | 
             
                  jsonStatements.push(...jsonDeletedCompositePKs);
         | 
| 16698 16378 | 
             
                  jsonStatements.push(...jsonTableAlternations);
         | 
| @@ -16700,7 +16380,6 @@ var init_snapshotsDiffer = __esm({ | |
| 16700 16380 | 
             
                  jsonStatements.push(...jsonAddColumnsStatemets);
         | 
| 16701 16381 | 
             
                  jsonStatements.push(...jsonCreateIndexesForCreatedTables);
         | 
| 16702 16382 | 
             
                  jsonStatements.push(...jsonCreateIndexesForAllAlteredTables);
         | 
| 16703 | 
            -
                  jsonStatements.push(...jsonCreatedCheckConstraints);
         | 
| 16704 16383 | 
             
                  jsonStatements.push(...jsonCreatedReferencesForAlteredTables);
         | 
| 16705 16384 | 
             
                  jsonStatements.push(...jsonDropColumnsStatemets);
         | 
| 16706 16385 | 
             
                  jsonStatements.push(...jsonAlteredCompositePKs);
         | 
| @@ -16844,8 +16523,6 @@ var init_snapshotsDiffer = __esm({ | |
| 16844 16523 | 
             
                  const jsonAddedUniqueConstraints = [];
         | 
| 16845 16524 | 
             
                  const jsonDeletedUniqueConstraints = [];
         | 
| 16846 16525 | 
             
                  const jsonAlteredUniqueConstraints = [];
         | 
| 16847 | 
            -
                  const jsonDeletedCheckConstraints = [];
         | 
| 16848 | 
            -
                  const jsonCreatedCheckConstraints = [];
         | 
| 16849 16526 | 
             
                  allAltered.forEach((it) => {
         | 
| 16850 16527 | 
             
                    let addedColumns = [];
         | 
| 16851 16528 | 
             
                    for (const addedPkName of Object.keys(it.addedCompositePKs)) {
         | 
| @@ -16878,8 +16555,6 @@ var init_snapshotsDiffer = __esm({ | |
| 16878 16555 | 
             
                    let addedUniqueConstraints = [];
         | 
| 16879 16556 | 
             
                    let deletedUniqueConstraints = [];
         | 
| 16880 16557 | 
             
                    let alteredUniqueConstraints = [];
         | 
| 16881 | 
            -
                    let createdCheckConstraints = [];
         | 
| 16882 | 
            -
                    let deletedCheckConstraints = [];
         | 
| 16883 16558 | 
             
                    addedUniqueConstraints = prepareAddUniqueConstraintPg(
         | 
| 16884 16559 | 
             
                      it.name,
         | 
| 16885 16560 | 
             
                      it.schema,
         | 
| @@ -16904,30 +16579,12 @@ var init_snapshotsDiffer = __esm({ | |
| 16904 16579 | 
             
                        ...prepareDeleteUniqueConstraintPg(it.name, it.schema, deleted)
         | 
| 16905 16580 | 
             
                      );
         | 
| 16906 16581 | 
             
                    }
         | 
| 16907 | 
            -
                    createdCheckConstraints = prepareAddCheckConstraint(it.name, it.schema, it.addedCheckConstraints);
         | 
| 16908 | 
            -
                    deletedCheckConstraints = prepareDeleteCheckConstraint(
         | 
| 16909 | 
            -
                      it.name,
         | 
| 16910 | 
            -
                      it.schema,
         | 
| 16911 | 
            -
                      it.deletedCheckConstraints
         | 
| 16912 | 
            -
                    );
         | 
| 16913 | 
            -
                    if (it.alteredCheckConstraints && action !== "push") {
         | 
| 16914 | 
            -
                      const added = {};
         | 
| 16915 | 
            -
                      const deleted = {};
         | 
| 16916 | 
            -
                      for (const k6 of Object.keys(it.alteredCheckConstraints)) {
         | 
| 16917 | 
            -
                        added[k6] = it.alteredCheckConstraints[k6].__new;
         | 
| 16918 | 
            -
                        deleted[k6] = it.alteredCheckConstraints[k6].__old;
         | 
| 16919 | 
            -
                      }
         | 
| 16920 | 
            -
                      createdCheckConstraints.push(...prepareAddCheckConstraint(it.name, it.schema, added));
         | 
| 16921 | 
            -
                      deletedCheckConstraints.push(...prepareDeleteCheckConstraint(it.name, it.schema, deleted));
         | 
| 16922 | 
            -
                    }
         | 
| 16923 16582 | 
             
                    jsonAddedCompositePKs.push(...addedCompositePKs);
         | 
| 16924 16583 | 
             
                    jsonDeletedCompositePKs.push(...deletedCompositePKs);
         | 
| 16925 16584 | 
             
                    jsonAlteredCompositePKs.push(...alteredCompositePKs);
         | 
| 16926 16585 | 
             
                    jsonAddedUniqueConstraints.push(...addedUniqueConstraints);
         | 
| 16927 16586 | 
             
                    jsonDeletedUniqueConstraints.push(...deletedUniqueConstraints);
         | 
| 16928 16587 | 
             
                    jsonAlteredUniqueConstraints.push(...alteredUniqueConstraints);
         | 
| 16929 | 
            -
                    jsonCreatedCheckConstraints.push(...createdCheckConstraints);
         | 
| 16930 | 
            -
                    jsonDeletedCheckConstraints.push(...deletedCheckConstraints);
         | 
| 16931 16588 | 
             
                  });
         | 
| 16932 16589 | 
             
                  const jsonTableAlternations = allAltered.map((it) => {
         | 
| 16933 16590 | 
             
                    return prepareSqliteAlterColumns(it.name, it.schema, it.altered, json2);
         | 
| @@ -17005,7 +16662,6 @@ var init_snapshotsDiffer = __esm({ | |
| 17005 16662 | 
             
                  jsonStatements.push(...jsonRenameTables);
         | 
| 17006 16663 | 
             
                  jsonStatements.push(...jsonRenameColumnsStatements);
         | 
| 17007 16664 | 
             
                  jsonStatements.push(...jsonDroppedReferencesForAlteredTables);
         | 
| 17008 | 
            -
                  jsonStatements.push(...jsonDeletedCheckConstraints);
         | 
| 17009 16665 | 
             
                  jsonStatements.push(...jsonDropIndexesForAllAlteredTables);
         | 
| 17010 16666 | 
             
                  jsonStatements.push(...jsonDeletedCompositePKs);
         | 
| 17011 16667 | 
             
                  jsonStatements.push(...jsonTableAlternations);
         | 
| @@ -17013,7 +16669,6 @@ var init_snapshotsDiffer = __esm({ | |
| 17013 16669 | 
             
                  jsonStatements.push(...jsonAddColumnsStatemets);
         | 
| 17014 16670 | 
             
                  jsonStatements.push(...jsonCreateIndexesForCreatedTables);
         | 
| 17015 16671 | 
             
                  jsonStatements.push(...jsonCreateIndexesForAllAlteredTables);
         | 
| 17016 | 
            -
                  jsonStatements.push(...jsonCreatedCheckConstraints);
         | 
| 17017 16672 | 
             
                  jsonStatements.push(...jsonCreatedReferencesForAlteredTables);
         | 
| 17018 16673 | 
             
                  jsonStatements.push(...jsonDropColumnsStatemets);
         | 
| 17019 16674 | 
             
                  jsonStatements.push(...jsonAlteredCompositePKs);
         | 
| @@ -23253,7 +22908,7 @@ var require_split2 = __commonJS({ | |
| 23253 22908 | 
             
            var require_helper = __commonJS({
         | 
| 23254 22909 | 
             
              "../node_modules/.pnpm/pgpass@1.0.5/node_modules/pgpass/lib/helper.js"(exports, module) {
         | 
| 23255 22910 | 
             
                "use strict";
         | 
| 23256 | 
            -
                var  | 
| 22911 | 
            +
                var path2 = __require("path");
         | 
| 23257 22912 | 
             
                var Stream4 = __require("stream").Stream;
         | 
| 23258 22913 | 
             
                var split = require_split2();
         | 
| 23259 22914 | 
             
                var util2 = __require("util");
         | 
| @@ -23292,7 +22947,7 @@ var require_helper = __commonJS({ | |
| 23292 22947 | 
             
                };
         | 
| 23293 22948 | 
             
                module.exports.getFileName = function(rawEnv) {
         | 
| 23294 22949 | 
             
                  var env3 = rawEnv || process.env;
         | 
| 23295 | 
            -
                  var file = env3.PGPASSFILE || (isWin ?  | 
| 22950 | 
            +
                  var file = env3.PGPASSFILE || (isWin ? path2.join(env3.APPDATA || "./", "postgresql", "pgpass.conf") : path2.join(env3.HOME || "./", ".pgpass"));
         | 
| 23296 22951 | 
             
                  return file;
         | 
| 23297 22952 | 
             
                };
         | 
| 23298 22953 | 
             
                module.exports.usePgPass = function(stats, fname) {
         | 
| @@ -23424,7 +23079,7 @@ var require_helper = __commonJS({ | |
| 23424 23079 | 
             
            var require_lib2 = __commonJS({
         | 
| 23425 23080 | 
             
              "../node_modules/.pnpm/pgpass@1.0.5/node_modules/pgpass/lib/index.js"(exports, module) {
         | 
| 23426 23081 | 
             
                "use strict";
         | 
| 23427 | 
            -
                var  | 
| 23082 | 
            +
                var path2 = __require("path");
         | 
| 23428 23083 | 
             
                var fs5 = __require("fs");
         | 
| 23429 23084 | 
             
                var helper = require_helper();
         | 
| 23430 23085 | 
             
                module.exports = function(connInfo, cb) {
         | 
| @@ -24813,7 +24468,7 @@ var init_query_promise = __esm({ | |
| 24813 24468 | 
             
            function mapResultRow(columns, row, joinsNotNullableMap) {
         | 
| 24814 24469 | 
             
              const nullifyMap = {};
         | 
| 24815 24470 | 
             
              const result = columns.reduce(
         | 
| 24816 | 
            -
                (result2, { path:  | 
| 24471 | 
            +
                (result2, { path: path2, field }, columnIndex) => {
         | 
| 24817 24472 | 
             
                  let decoder2;
         | 
| 24818 24473 | 
             
                  if (is(field, Column2)) {
         | 
| 24819 24474 | 
             
                    decoder2 = field;
         | 
| @@ -24823,8 +24478,8 @@ function mapResultRow(columns, row, joinsNotNullableMap) { | |
| 24823 24478 | 
             
                    decoder2 = field.sql.decoder;
         | 
| 24824 24479 | 
             
                  }
         | 
| 24825 24480 | 
             
                  let node = result2;
         | 
| 24826 | 
            -
                  for (const [pathChunkIndex, pathChunk] of  | 
| 24827 | 
            -
                    if (pathChunkIndex <  | 
| 24481 | 
            +
                  for (const [pathChunkIndex, pathChunk] of path2.entries()) {
         | 
| 24482 | 
            +
                    if (pathChunkIndex < path2.length - 1) {
         | 
| 24828 24483 | 
             
                      if (!(pathChunk in node)) {
         | 
| 24829 24484 | 
             
                        node[pathChunk] = {};
         | 
| 24830 24485 | 
             
                      }
         | 
| @@ -24832,8 +24487,8 @@ function mapResultRow(columns, row, joinsNotNullableMap) { | |
| 24832 24487 | 
             
                    } else {
         | 
| 24833 24488 | 
             
                      const rawValue = row[columnIndex];
         | 
| 24834 24489 | 
             
                      const value = node[pathChunk] = rawValue === null ? null : decoder2.mapFromDriverValue(rawValue);
         | 
| 24835 | 
            -
                      if (joinsNotNullableMap && is(field, Column2) &&  | 
| 24836 | 
            -
                        const objectName =  | 
| 24490 | 
            +
                      if (joinsNotNullableMap && is(field, Column2) && path2.length === 2) {
         | 
| 24491 | 
            +
                        const objectName = path2[0];
         | 
| 24837 24492 | 
             
                        if (!(objectName in nullifyMap)) {
         | 
| 24838 24493 | 
             
                          nullifyMap[objectName] = value === null ? getTableName(field.table) : false;
         | 
| 24839 24494 | 
             
                        } else if (typeof nullifyMap[objectName] === "string" && nullifyMap[objectName] !== getTableName(field.table)) {
         | 
| @@ -27191,6 +26846,46 @@ var init_dialect = __esm({ | |
| 27191 26846 | 
             
                    });
         | 
| 27192 26847 | 
             
                    return sql.join(chunks);
         | 
| 27193 26848 | 
             
                  }
         | 
| 26849 | 
            +
                  buildOptimizedSelection(fields, { isSingleTable = false } = {}) {
         | 
| 26850 | 
            +
                    const columnsLen = fields.length;
         | 
| 26851 | 
            +
                    const chunks = fields.flatMap(({ field }, i5) => {
         | 
| 26852 | 
            +
                      const chunk = [];
         | 
| 26853 | 
            +
                      if (is(field, SQL.Aliased) && field.isSelectionField) {
         | 
| 26854 | 
            +
                        chunk.push(sql.identifier(field.fieldAlias));
         | 
| 26855 | 
            +
                      } else if (is(field, SQL.Aliased) || is(field, SQL)) {
         | 
| 26856 | 
            +
                        const query = is(field, SQL.Aliased) ? field.sql : field;
         | 
| 26857 | 
            +
                        if (isSingleTable) {
         | 
| 26858 | 
            +
                          const parts = [];
         | 
| 26859 | 
            +
                          for (const c5 of query.queryChunks) {
         | 
| 26860 | 
            +
                            if (is(c5, PgColumn)) {
         | 
| 26861 | 
            +
                              parts.push(sql.raw(c5.name), sql`, `, sql.identifier(c5.name));
         | 
| 26862 | 
            +
                              continue;
         | 
| 26863 | 
            +
                            }
         | 
| 26864 | 
            +
                            parts.push(c5);
         | 
| 26865 | 
            +
                          }
         | 
| 26866 | 
            +
                          chunk.push(new SQL(parts));
         | 
| 26867 | 
            +
                        } else {
         | 
| 26868 | 
            +
                          chunk.push(query);
         | 
| 26869 | 
            +
                        }
         | 
| 26870 | 
            +
                        if (is(field, SQL.Aliased)) {
         | 
| 26871 | 
            +
                          chunk.push(sql` as ${sql.identifier(field.fieldAlias)}`);
         | 
| 26872 | 
            +
                        }
         | 
| 26873 | 
            +
                      } else if (is(field, Column2)) {
         | 
| 26874 | 
            +
                        if (isSingleTable) {
         | 
| 26875 | 
            +
                          chunk.push(sql`'${sql.raw(field.name)}', ${sql.identifier(field.name)}`);
         | 
| 26876 | 
            +
                        } else {
         | 
| 26877 | 
            +
                          chunk.push(field);
         | 
| 26878 | 
            +
                        }
         | 
| 26879 | 
            +
                      }
         | 
| 26880 | 
            +
                      if (i5 < columnsLen - 1) {
         | 
| 26881 | 
            +
                        chunk.push(sql`, `);
         | 
| 26882 | 
            +
                      }
         | 
| 26883 | 
            +
                      return chunk;
         | 
| 26884 | 
            +
                    });
         | 
| 26885 | 
            +
                    chunks.unshift(sql`json_build_object(`);
         | 
| 26886 | 
            +
                    chunks.push(sql`)`);
         | 
| 26887 | 
            +
                    return sql.join(chunks);
         | 
| 26888 | 
            +
                  }
         | 
| 27194 26889 | 
             
                  buildSelectQuery({
         | 
| 27195 26890 | 
             
                    withList,
         | 
| 27196 26891 | 
             
                    fields,
         | 
| @@ -27205,7 +26900,8 @@ var init_dialect = __esm({ | |
| 27205 26900 | 
             
                    offset,
         | 
| 27206 26901 | 
             
                    lockingClause,
         | 
| 27207 26902 | 
             
                    distinct,
         | 
| 27208 | 
            -
                    setOperators
         | 
| 26903 | 
            +
                    setOperators,
         | 
| 26904 | 
            +
                    optimize
         | 
| 27209 26905 | 
             
                  }) {
         | 
| 27210 26906 | 
             
                    const fieldsList = fieldsFlat ?? orderSelectedFields(fields);
         | 
| 27211 26907 | 
             
                    for (const f5 of fieldsList) {
         | 
| @@ -27224,7 +26920,9 @@ var init_dialect = __esm({ | |
| 27224 26920 | 
             
                    if (distinct) {
         | 
| 27225 26921 | 
             
                      distinctSql = distinct === true ? sql` distinct` : sql` distinct on (${sql.join(distinct.on, sql`, `)})`;
         | 
| 27226 26922 | 
             
                    }
         | 
| 27227 | 
            -
                    const selection = this. | 
| 26923 | 
            +
                    const selection = optimize ? this.buildOptimizedSelection(fieldsList, {
         | 
| 26924 | 
            +
                      isSingleTable
         | 
| 26925 | 
            +
                    }) : this.buildSelection(fieldsList, { isSingleTable });
         | 
| 27228 26926 | 
             
                    const tableSql = (() => {
         | 
| 27229 26927 | 
             
                      if (is(table4, Table2) && table4[Table2.Symbol.OriginalName] !== table4[Table2.Symbol.Name]) {
         | 
| 27230 26928 | 
             
                        let fullName = sql`${sql.identifier(table4[Table2.Symbol.OriginalName])}`;
         | 
| @@ -28905,6 +28603,10 @@ var init_select2 = __esm({ | |
| 28905 28603 | 
             
                  $dynamic() {
         | 
| 28906 28604 | 
             
                    return this;
         | 
| 28907 28605 | 
             
                  }
         | 
| 28606 | 
            +
                  $optimize() {
         | 
| 28607 | 
            +
                    this.config.optimize = true;
         | 
| 28608 | 
            +
                    return this;
         | 
| 28609 | 
            +
                  }
         | 
| 28908 28610 | 
             
                };
         | 
| 28909 28611 | 
             
                __publicField(PgSelectQueryBuilderBase, _a130, "PgSelectQueryBuilder");
         | 
| 28910 28612 | 
             
                PgSelectBase = class extends (_b101 = PgSelectQueryBuilderBase, _a131 = entityKind, _b101) {
         | 
| @@ -28924,7 +28626,7 @@ var init_select2 = __esm({ | |
| 28924 28626 | 
             
                    }
         | 
| 28925 28627 | 
             
                    return tracer.startActiveSpan("drizzle.prepareQuery", () => {
         | 
| 28926 28628 | 
             
                      const fieldsList = orderSelectedFields(config.fields);
         | 
| 28927 | 
            -
                      const query = session.prepareQuery(dialect7.sqlToQuery(this.getSQL()), fieldsList, name2, true);
         | 
| 28629 | 
            +
                      const query = session.prepareQuery(dialect7.sqlToQuery(this.getSQL()), fieldsList, name2, true, void 0, config.optimize);
         | 
| 28928 28630 | 
             
                      query.joinsNotNullableMap = joinsNotNullableMap;
         | 
| 28929 28631 | 
             
                      return query;
         | 
| 28930 28632 | 
             
                    });
         | 
| @@ -29449,6 +29151,7 @@ var init_db = __esm({ | |
| 29449 29151 | 
             
                init_entity();
         | 
| 29450 29152 | 
             
                init_query_builders();
         | 
| 29451 29153 | 
             
                init_selection_proxy();
         | 
| 29154 | 
            +
                init_sql();
         | 
| 29452 29155 | 
             
                init_subquery();
         | 
| 29453 29156 | 
             
                init_count();
         | 
| 29454 29157 | 
             
                init_query();
         | 
| @@ -29703,8 +29406,8 @@ var init_db = __esm({ | |
| 29703 29406 | 
             
                    return new PgRefreshMaterializedView(view, this.session, this.dialect);
         | 
| 29704 29407 | 
             
                  }
         | 
| 29705 29408 | 
             
                  execute(query) {
         | 
| 29706 | 
            -
                    const  | 
| 29707 | 
            -
                    const builtQuery = this.dialect.sqlToQuery( | 
| 29409 | 
            +
                    const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
         | 
| 29410 | 
            +
                    const builtQuery = this.dialect.sqlToQuery(sequel);
         | 
| 29708 29411 | 
             
                    const prepared = this.session.prepareQuery(
         | 
| 29709 29412 | 
             
                      builtQuery,
         | 
| 29710 29413 | 
             
                      void 0,
         | 
| @@ -29713,7 +29416,7 @@ var init_db = __esm({ | |
| 29713 29416 | 
             
                    );
         | 
| 29714 29417 | 
             
                    return new PgRaw(
         | 
| 29715 29418 | 
             
                      () => prepared.execute(),
         | 
| 29716 | 
            -
                       | 
| 29419 | 
            +
                      sequel,
         | 
| 29717 29420 | 
             
                      builtQuery,
         | 
| 29718 29421 | 
             
                      (result) => prepared.mapResult(result, true)
         | 
| 29719 29422 | 
             
                    );
         | 
| @@ -30399,7 +30102,7 @@ var init_session2 = __esm({ | |
| 30399 30102 | 
             
                init_utils2();
         | 
| 30400 30103 | 
             
                ({ Pool } = import_pg.default);
         | 
| 30401 30104 | 
             
                NodePgPreparedQuery = class extends (_b114 = PgPreparedQuery, _a159 = entityKind, _b114) {
         | 
| 30402 | 
            -
                  constructor(client, queryString, params, logger2, fields, name2, _isResponseInArrayMode, customResultMapper) {
         | 
| 30105 | 
            +
                  constructor(client, queryString, params, logger2, fields, name2, _isResponseInArrayMode, customResultMapper, isOptimized) {
         | 
| 30403 30106 | 
             
                    super({ sql: queryString, params });
         | 
| 30404 30107 | 
             
                    __publicField(this, "rawQueryConfig");
         | 
| 30405 30108 | 
             
                    __publicField(this, "queryConfig");
         | 
| @@ -30409,6 +30112,7 @@ var init_session2 = __esm({ | |
| 30409 30112 | 
             
                    this.fields = fields;
         | 
| 30410 30113 | 
             
                    this._isResponseInArrayMode = _isResponseInArrayMode;
         | 
| 30411 30114 | 
             
                    this.customResultMapper = customResultMapper;
         | 
| 30115 | 
            +
                    this.isOptimized = isOptimized;
         | 
| 30412 30116 | 
             
                    this.rawQueryConfig = {
         | 
| 30413 30117 | 
             
                      name: name2,
         | 
| 30414 30118 | 
             
                      text: queryString
         | 
| @@ -30423,7 +30127,15 @@ var init_session2 = __esm({ | |
| 30423 30127 | 
             
                    return tracer.startActiveSpan("drizzle.execute", async () => {
         | 
| 30424 30128 | 
             
                      const params = fillPlaceholders(this.params, placeholderValues);
         | 
| 30425 30129 | 
             
                      this.logger.logQuery(this.rawQueryConfig.text, params);
         | 
| 30426 | 
            -
                      const { | 
| 30130 | 
            +
                      const {
         | 
| 30131 | 
            +
                        fields,
         | 
| 30132 | 
            +
                        rawQueryConfig: rawQuery,
         | 
| 30133 | 
            +
                        client,
         | 
| 30134 | 
            +
                        queryConfig: query,
         | 
| 30135 | 
            +
                        joinsNotNullableMap,
         | 
| 30136 | 
            +
                        customResultMapper,
         | 
| 30137 | 
            +
                        isOptimized
         | 
| 30138 | 
            +
                      } = this;
         | 
| 30427 30139 | 
             
                      if (!fields && !customResultMapper) {
         | 
| 30428 30140 | 
             
                        return tracer.startActiveSpan("drizzle.driver.execute", async (span) => {
         | 
| 30429 30141 | 
             
                          span?.setAttributes({
         | 
| @@ -30443,7 +30155,7 @@ var init_session2 = __esm({ | |
| 30443 30155 | 
             
                        return client.query(query, params);
         | 
| 30444 30156 | 
             
                      });
         | 
| 30445 30157 | 
             
                      return tracer.startActiveSpan("drizzle.mapResponse", () => {
         | 
| 30446 | 
            -
                        return customResultMapper ? customResultMapper(result.rows) : result.rows.map((row) => mapResultRow(fields, row, joinsNotNullableMap));
         | 
| 30158 | 
            +
                        return isOptimized ? result.rows.flat(1) : customResultMapper ? customResultMapper(result.rows) : result.rows.map((row) => mapResultRow(fields, row, joinsNotNullableMap));
         | 
| 30447 30159 | 
             
                      });
         | 
| 30448 30160 | 
             
                    });
         | 
| 30449 30161 | 
             
                  }
         | 
| @@ -30476,7 +30188,7 @@ var init_session2 = __esm({ | |
| 30476 30188 | 
             
                    this.options = options;
         | 
| 30477 30189 | 
             
                    this.logger = options.logger ?? new NoopLogger();
         | 
| 30478 30190 | 
             
                  }
         | 
| 30479 | 
            -
                  prepareQuery(query, fields, name2, isResponseInArrayMode, customResultMapper) {
         | 
| 30191 | 
            +
                  prepareQuery(query, fields, name2, isResponseInArrayMode, customResultMapper, isOptimized) {
         | 
| 30480 30192 | 
             
                    return new NodePgPreparedQuery(
         | 
| 30481 30193 | 
             
                      this.client,
         | 
| 30482 30194 | 
             
                      query.sql,
         | 
| @@ -30485,7 +30197,8 @@ var init_session2 = __esm({ | |
| 30485 30197 | 
             
                      fields,
         | 
| 30486 30198 | 
             
                      name2,
         | 
| 30487 30199 | 
             
                      isResponseInArrayMode,
         | 
| 30488 | 
            -
                      customResultMapper
         | 
| 30200 | 
            +
                      customResultMapper,
         | 
| 30201 | 
            +
                      isOptimized
         | 
| 30489 30202 | 
             
                    );
         | 
| 30490 30203 | 
             
                  }
         | 
| 30491 30204 | 
             
                  async transaction(transaction, config) {
         | 
| @@ -30562,7 +30275,9 @@ function drizzle(client, config = {}) { | |
| 30562 30275 | 
             
              }
         | 
| 30563 30276 | 
             
              const driver2 = new NodePgDriver(client, dialect7, { logger: logger2 });
         | 
| 30564 30277 | 
             
              const session = driver2.createSession(schema4);
         | 
| 30565 | 
            -
               | 
| 30278 | 
            +
              const db2 = new NodePgDatabase(dialect7, session, schema4);
         | 
| 30279 | 
            +
              db2.$client = client;
         | 
| 30280 | 
            +
              return db2;
         | 
| 30566 30281 | 
             
            }
         | 
| 30567 30282 | 
             
            var import_pg2, types, _a162, NodePgDriver, _a163, _b117, NodePgDatabase;
         | 
| 30568 30283 | 
             
            var init_driver = __esm({
         | 
| @@ -31652,18 +31367,18 @@ var init_getAttrPathList = __esm({ | |
| 31652 31367 | 
             
              "../node_modules/.pnpm/@smithy+util-endpoints@2.0.0/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js"() {
         | 
| 31653 31368 | 
             
                "use strict";
         | 
| 31654 31369 | 
             
                init_types2();
         | 
| 31655 | 
            -
                getAttrPathList = ( | 
| 31656 | 
            -
                  const parts =  | 
| 31370 | 
            +
                getAttrPathList = (path2) => {
         | 
| 31371 | 
            +
                  const parts = path2.split(".");
         | 
| 31657 31372 | 
             
                  const pathList = [];
         | 
| 31658 31373 | 
             
                  for (const part of parts) {
         | 
| 31659 31374 | 
             
                    const squareBracketIndex = part.indexOf("[");
         | 
| 31660 31375 | 
             
                    if (squareBracketIndex !== -1) {
         | 
| 31661 31376 | 
             
                      if (part.indexOf("]") !== part.length - 1) {
         | 
| 31662 | 
            -
                        throw new EndpointError(`Path: '${ | 
| 31377 | 
            +
                        throw new EndpointError(`Path: '${path2}' does not end with ']'`);
         | 
| 31663 31378 | 
             
                      }
         | 
| 31664 31379 | 
             
                      const arrayIndex = part.slice(squareBracketIndex + 1, -1);
         | 
| 31665 31380 | 
             
                      if (Number.isNaN(parseInt(arrayIndex))) {
         | 
| 31666 | 
            -
                        throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${ | 
| 31381 | 
            +
                        throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path2}'`);
         | 
| 31667 31382 | 
             
                      }
         | 
| 31668 31383 | 
             
                      if (squareBracketIndex !== 0) {
         | 
| 31669 31384 | 
             
                        pathList.push(part.slice(0, squareBracketIndex));
         | 
| @@ -31685,9 +31400,9 @@ var init_getAttr = __esm({ | |
| 31685 31400 | 
             
                "use strict";
         | 
| 31686 31401 | 
             
                init_types2();
         | 
| 31687 31402 | 
             
                init_getAttrPathList();
         | 
| 31688 | 
            -
                getAttr = (value,  | 
| 31403 | 
            +
                getAttr = (value, path2) => getAttrPathList(path2).reduce((acc, index4) => {
         | 
| 31689 31404 | 
             
                  if (typeof acc !== "object") {
         | 
| 31690 | 
            -
                    throw new EndpointError(`Index '${index4}' in '${ | 
| 31405 | 
            +
                    throw new EndpointError(`Index '${index4}' in '${path2}' not found in '${JSON.stringify(value)}'`);
         | 
| 31691 31406 | 
             
                  } else if (Array.isArray(acc)) {
         | 
| 31692 31407 | 
             
                    return acc[parseInt(index4)];
         | 
| 31693 31408 | 
             
                  }
         | 
| @@ -31732,8 +31447,8 @@ var init_parseURL = __esm({ | |
| 31732 31447 | 
             
                        return value;
         | 
| 31733 31448 | 
             
                      }
         | 
| 31734 31449 | 
             
                      if (typeof value === "object" && "hostname" in value) {
         | 
| 31735 | 
            -
                        const { hostname: hostname2, port, protocol: protocol3 = "", path:  | 
| 31736 | 
            -
                        const url = new URL(`${protocol3}//${hostname2}${port ? `:${port}` : ""}${ | 
| 31450 | 
            +
                        const { hostname: hostname2, port, protocol: protocol3 = "", path: path2 = "", query = {} } = value;
         | 
| 31451 | 
            +
                        const url = new URL(`${protocol3}//${hostname2}${port ? `:${port}` : ""}${path2}`);
         | 
| 31737 31452 | 
             
                        url.search = Object.entries(query).map(([k6, v8]) => `${k6}=${v8}`).join("&");
         | 
| 31738 31453 | 
             
                        return url;
         | 
| 31739 31454 | 
             
                      }
         | 
| @@ -33189,8 +32904,8 @@ var init_createConfigValueProvider = __esm({ | |
| 33189 32904 | 
             
                          return endpoint.url.href;
         | 
| 33190 32905 | 
             
                        }
         | 
| 33191 32906 | 
             
                        if ("hostname" in endpoint) {
         | 
| 33192 | 
            -
                          const { protocol: protocol2, hostname, port, path:  | 
| 33193 | 
            -
                          return `${protocol2}//${hostname}${port ? ":" + port : ""}${ | 
| 32907 | 
            +
                          const { protocol: protocol2, hostname, port, path: path2 } = endpoint;
         | 
| 32908 | 
            +
                          return `${protocol2}//${hostname}${port ? ":" + port : ""}${path2}`;
         | 
| 33194 32909 | 
             
                        }
         | 
| 33195 32910 | 
             
                      }
         | 
| 33196 32911 | 
             
                      return endpoint;
         | 
| @@ -33562,11 +33277,11 @@ var init_slurpFile = __esm({ | |
| 33562 33277 | 
             
                "use strict";
         | 
| 33563 33278 | 
             
                ({ readFile: readFile2 } = fsPromises2);
         | 
| 33564 33279 | 
             
                filePromisesHash = {};
         | 
| 33565 | 
            -
                slurpFile = ( | 
| 33566 | 
            -
                  if (!filePromisesHash[ | 
| 33567 | 
            -
                    filePromisesHash[ | 
| 33280 | 
            +
                slurpFile = (path2, options) => {
         | 
| 33281 | 
            +
                  if (!filePromisesHash[path2] || options?.ignoreCache) {
         | 
| 33282 | 
            +
                    filePromisesHash[path2] = readFile2(path2, "utf8");
         | 
| 33568 33283 | 
             
                  }
         | 
| 33569 | 
            -
                  return filePromisesHash[ | 
| 33284 | 
            +
                  return filePromisesHash[path2];
         | 
| 33570 33285 | 
             
                };
         | 
| 33571 33286 | 
             
              }
         | 
| 33572 33287 | 
             
            });
         | 
| @@ -35630,18 +35345,18 @@ var init_node_http_handler = __esm({ | |
| 35630 35345 | 
             
                        const password = request2.password ?? "";
         | 
| 35631 35346 | 
             
                        auth = `${username}:${password}`;
         | 
| 35632 35347 | 
             
                      }
         | 
| 35633 | 
            -
                      let  | 
| 35348 | 
            +
                      let path2 = request2.path;
         | 
| 35634 35349 | 
             
                      if (queryString) {
         | 
| 35635 | 
            -
                         | 
| 35350 | 
            +
                        path2 += `?${queryString}`;
         | 
| 35636 35351 | 
             
                      }
         | 
| 35637 35352 | 
             
                      if (request2.fragment) {
         | 
| 35638 | 
            -
                         | 
| 35353 | 
            +
                        path2 += `#${request2.fragment}`;
         | 
| 35639 35354 | 
             
                      }
         | 
| 35640 35355 | 
             
                      const nodeHttpsOptions = {
         | 
| 35641 35356 | 
             
                        headers: request2.headers,
         | 
| 35642 35357 | 
             
                        host: request2.hostname,
         | 
| 35643 35358 | 
             
                        method: request2.method,
         | 
| 35644 | 
            -
                        path:  | 
| 35359 | 
            +
                        path: path2,
         | 
| 35645 35360 | 
             
                        port: request2.port,
         | 
| 35646 35361 | 
             
                        agent,
         | 
| 35647 35362 | 
             
                        auth
         | 
| @@ -37642,8 +37357,8 @@ var init_requestBuilder = __esm({ | |
| 37642 37357 | 
             
                    return this;
         | 
| 37643 37358 | 
             
                  }
         | 
| 37644 37359 | 
             
                  p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
         | 
| 37645 | 
            -
                    this.resolvePathStack.push(( | 
| 37646 | 
            -
                      this.path = resolvedPath( | 
| 37360 | 
            +
                    this.resolvePathStack.push((path2) => {
         | 
| 37361 | 
            +
                      this.path = resolvedPath(path2, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
         | 
| 37647 37362 | 
             
                    });
         | 
| 37648 37363 | 
             
                    return this;
         | 
| 37649 37364 | 
             
                  }
         | 
| @@ -37698,9 +37413,9 @@ var init_createPaginator = __esm({ | |
| 37698 37413 | 
             
                makePagedClientRequest = async (CommandCtor, client, input, ...args) => {
         | 
| 37699 37414 | 
             
                  return await client.send(new CommandCtor(input), ...args);
         | 
| 37700 37415 | 
             
                };
         | 
| 37701 | 
            -
                get = (fromObject,  | 
| 37416 | 
            +
                get = (fromObject, path2) => {
         | 
| 37702 37417 | 
             
                  let cursor = fromObject;
         | 
| 37703 | 
            -
                  const pathComponents =  | 
| 37418 | 
            +
                  const pathComponents = path2.split(".");
         | 
| 37704 37419 | 
             
                  for (const step of pathComponents) {
         | 
| 37705 37420 | 
             
                    if (!cursor || typeof cursor !== "object") {
         | 
| 37706 37421 | 
             
                      return void 0;
         | 
| @@ -38857,10 +38572,10 @@ ${longDate} | |
| 38857 38572 | 
             
            ${credentialScope}
         | 
| 38858 38573 | 
             
            ${toHex(hashedRequest)}`;
         | 
| 38859 38574 | 
             
                  }
         | 
| 38860 | 
            -
                  getCanonicalPath({ path:  | 
| 38575 | 
            +
                  getCanonicalPath({ path: path2 }) {
         | 
| 38861 38576 | 
             
                    if (this.uriEscapePath) {
         | 
| 38862 38577 | 
             
                      const normalizedPathSegments = [];
         | 
| 38863 | 
            -
                      for (const pathSegment of  | 
| 38578 | 
            +
                      for (const pathSegment of path2.split("/")) {
         | 
| 38864 38579 | 
             
                        if (pathSegment?.length === 0)
         | 
| 38865 38580 | 
             
                          continue;
         | 
| 38866 38581 | 
             
                        if (pathSegment === ".")
         | 
| @@ -38871,11 +38586,11 @@ ${toHex(hashedRequest)}`; | |
| 38871 38586 | 
             
                          normalizedPathSegments.push(pathSegment);
         | 
| 38872 38587 | 
             
                        }
         | 
| 38873 38588 | 
             
                      }
         | 
| 38874 | 
            -
                      const normalizedPath = `${ | 
| 38589 | 
            +
                      const normalizedPath = `${path2?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path2?.endsWith("/") ? "/" : ""}`;
         | 
| 38875 38590 | 
             
                      const doubleEncoded = escapeUri(normalizedPath);
         | 
| 38876 38591 | 
             
                      return doubleEncoded.replace(/%2F/g, "/");
         | 
| 38877 38592 | 
             
                    }
         | 
| 38878 | 
            -
                    return  | 
| 38593 | 
            +
                    return path2;
         | 
| 38879 38594 | 
             
                  }
         | 
| 38880 38595 | 
             
                  async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) {
         | 
| 38881 38596 | 
             
                    const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest);
         | 
| @@ -41913,7 +41628,7 @@ var init_constants7 = __esm({ | |
| 41913 41628 | 
             
              }
         | 
| 41914 41629 | 
             
            });
         | 
| 41915 41630 |  | 
| 41916 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 41631 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthSchemeProvider.js
         | 
| 41917 41632 | 
             
            function createAwsAuthSigv4HttpAuthOption2(authParameters) {
         | 
| 41918 41633 | 
             
              return {
         | 
| 41919 41634 | 
             
                schemeId: "aws.auth#sigv4",
         | 
| @@ -41936,7 +41651,7 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) { | |
| 41936 41651 | 
             
            }
         | 
| 41937 41652 | 
             
            var import_core2, defaultSSOOIDCHttpAuthSchemeParametersProvider, defaultSSOOIDCHttpAuthSchemeProvider, resolveHttpAuthSchemeConfig2;
         | 
| 41938 41653 | 
             
            var init_httpAuthSchemeProvider2 = __esm({
         | 
| 41939 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 41654 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthSchemeProvider.js"() {
         | 
| 41940 41655 | 
             
                "use strict";
         | 
| 41941 41656 | 
             
                import_core2 = __toESM(require_dist_cjs());
         | 
| 41942 41657 | 
             
                init_dist_es10();
         | 
| @@ -41978,10 +41693,10 @@ var init_httpAuthSchemeProvider2 = __esm({ | |
| 41978 41693 | 
             
              }
         | 
| 41979 41694 | 
             
            });
         | 
| 41980 41695 |  | 
| 41981 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 41696 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/EndpointParameters.js
         | 
| 41982 41697 | 
             
            var resolveClientEndpointParameters2, commonParams2;
         | 
| 41983 41698 | 
             
            var init_EndpointParameters2 = __esm({
         | 
| 41984 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 41699 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/EndpointParameters.js"() {
         | 
| 41985 41700 | 
             
                "use strict";
         | 
| 41986 41701 | 
             
                resolveClientEndpointParameters2 = (options) => {
         | 
| 41987 41702 | 
             
                  return {
         | 
| @@ -42000,10 +41715,10 @@ var init_EndpointParameters2 = __esm({ | |
| 42000 41715 | 
             
              }
         | 
| 42001 41716 | 
             
            });
         | 
| 42002 41717 |  | 
| 42003 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 41718 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json
         | 
| 42004 41719 | 
             
            var package_default2;
         | 
| 42005 41720 | 
             
            var init_package2 = __esm({
         | 
| 42006 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 41721 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json"() {
         | 
| 42007 41722 | 
             
                package_default2 = {
         | 
| 42008 41723 | 
             
                  name: "@aws-sdk/client-sso-oidc",
         | 
| 42009 41724 | 
             
                  description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
         | 
| @@ -42256,10 +41971,10 @@ var init_dist_es42 = __esm({ | |
| 42256 41971 | 
             
              }
         | 
| 42257 41972 | 
             
            });
         | 
| 42258 41973 |  | 
| 42259 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 41974 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js
         | 
| 42260 41975 | 
             
            var u, v, w, x, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, _data, ruleSet;
         | 
| 42261 41976 | 
             
            var init_ruleset = __esm({
         | 
| 42262 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 41977 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js"() {
         | 
| 42263 41978 | 
             
                "use strict";
         | 
| 42264 41979 | 
             
                u = "required";
         | 
| 42265 41980 | 
             
                v = "fn";
         | 
| @@ -42290,10 +42005,10 @@ var init_ruleset = __esm({ | |
| 42290 42005 | 
             
              }
         | 
| 42291 42006 | 
             
            });
         | 
| 42292 42007 |  | 
| 42293 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42008 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js
         | 
| 42294 42009 | 
             
            var defaultEndpointResolver;
         | 
| 42295 42010 | 
             
            var init_endpointResolver = __esm({
         | 
| 42296 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42011 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js"() {
         | 
| 42297 42012 | 
             
                "use strict";
         | 
| 42298 42013 | 
             
                init_dist_es7();
         | 
| 42299 42014 | 
             
                init_dist_es6();
         | 
| @@ -42308,10 +42023,10 @@ var init_endpointResolver = __esm({ | |
| 42308 42023 | 
             
              }
         | 
| 42309 42024 | 
             
            });
         | 
| 42310 42025 |  | 
| 42311 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42026 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js
         | 
| 42312 42027 | 
             
            var import_core3, getRuntimeConfig;
         | 
| 42313 42028 | 
             
            var init_runtimeConfig_shared = __esm({
         | 
| 42314 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42029 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js"() {
         | 
| 42315 42030 | 
             
                "use strict";
         | 
| 42316 42031 | 
             
                import_core3 = __toESM(require_dist_cjs());
         | 
| 42317 42032 | 
             
                init_dist_es34();
         | 
| @@ -42451,10 +42166,10 @@ var init_dist_es43 = __esm({ | |
| 42451 42166 | 
             
              }
         | 
| 42452 42167 | 
             
            });
         | 
| 42453 42168 |  | 
| 42454 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42169 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js
         | 
| 42455 42170 | 
             
            var import_core5, getRuntimeConfig2;
         | 
| 42456 42171 | 
             
            var init_runtimeConfig = __esm({
         | 
| 42457 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42172 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js"() {
         | 
| 42458 42173 | 
             
                "use strict";
         | 
| 42459 42174 | 
             
                init_package2();
         | 
| 42460 42175 | 
             
                import_core5 = __toESM(require_dist_cjs());
         | 
| @@ -42583,10 +42298,10 @@ var init_dist_es44 = __esm({ | |
| 42583 42298 | 
             
              }
         | 
| 42584 42299 | 
             
            });
         | 
| 42585 42300 |  | 
| 42586 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42301 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthExtensionConfiguration.js
         | 
| 42587 42302 | 
             
            var getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig;
         | 
| 42588 42303 | 
             
            var init_httpAuthExtensionConfiguration = __esm({
         | 
| 42589 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42304 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthExtensionConfiguration.js"() {
         | 
| 42590 42305 | 
             
                "use strict";
         | 
| 42591 42306 | 
             
                getHttpAuthExtensionConfiguration = (runtimeConfig) => {
         | 
| 42592 42307 | 
             
                  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
         | 
| @@ -42628,10 +42343,10 @@ var init_httpAuthExtensionConfiguration = __esm({ | |
| 42628 42343 | 
             
              }
         | 
| 42629 42344 | 
             
            });
         | 
| 42630 42345 |  | 
| 42631 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42346 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js
         | 
| 42632 42347 | 
             
            var asPartial, resolveRuntimeExtensions;
         | 
| 42633 42348 | 
             
            var init_runtimeExtensions = __esm({
         | 
| 42634 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42349 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js"() {
         | 
| 42635 42350 | 
             
                "use strict";
         | 
| 42636 42351 | 
             
                init_dist_es44();
         | 
| 42637 42352 | 
             
                init_dist_es2();
         | 
| @@ -42657,10 +42372,10 @@ var init_runtimeExtensions = __esm({ | |
| 42657 42372 | 
             
              }
         | 
| 42658 42373 | 
             
            });
         | 
| 42659 42374 |  | 
| 42660 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42375 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js
         | 
| 42661 42376 | 
             
            var SSOOIDCClient;
         | 
| 42662 42377 | 
             
            var init_SSOOIDCClient = __esm({
         | 
| 42663 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42378 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js"() {
         | 
| 42664 42379 | 
             
                "use strict";
         | 
| 42665 42380 | 
             
                init_dist_es3();
         | 
| 42666 42381 | 
             
                init_dist_es4();
         | 
| @@ -42716,10 +42431,10 @@ var init_SSOOIDCClient = __esm({ | |
| 42716 42431 | 
             
              }
         | 
| 42717 42432 | 
             
            });
         | 
| 42718 42433 |  | 
| 42719 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42434 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js
         | 
| 42720 42435 | 
             
            var SSOOIDCServiceException;
         | 
| 42721 42436 | 
             
            var init_SSOOIDCServiceException = __esm({
         | 
| 42722 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42437 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js"() {
         | 
| 42723 42438 | 
             
                "use strict";
         | 
| 42724 42439 | 
             
                init_dist_es32();
         | 
| 42725 42440 | 
             
                SSOOIDCServiceException = class _SSOOIDCServiceException extends ServiceException {
         | 
| @@ -42731,10 +42446,10 @@ var init_SSOOIDCServiceException = __esm({ | |
| 42731 42446 | 
             
              }
         | 
| 42732 42447 | 
             
            });
         | 
| 42733 42448 |  | 
| 42734 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42449 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js
         | 
| 42735 42450 | 
             
            var AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidGrantException, InvalidRequestException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, InvalidRequestRegionException, InvalidClientMetadataException, InvalidRedirectUriException, CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog, CreateTokenWithIAMRequestFilterSensitiveLog, CreateTokenWithIAMResponseFilterSensitiveLog, RegisterClientResponseFilterSensitiveLog, StartDeviceAuthorizationRequestFilterSensitiveLog;
         | 
| 42736 42451 | 
             
            var init_models_0 = __esm({
         | 
| 42737 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42452 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js"() {
         | 
| 42738 42453 | 
             
                "use strict";
         | 
| 42739 42454 | 
             
                init_dist_es32();
         | 
| 42740 42455 | 
             
                init_SSOOIDCServiceException();
         | 
| @@ -42972,10 +42687,10 @@ var init_models_0 = __esm({ | |
| 42972 42687 | 
             
              }
         | 
| 42973 42688 | 
             
            });
         | 
| 42974 42689 |  | 
| 42975 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42690 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js
         | 
| 42976 42691 | 
             
            var import_core7, se_CreateTokenCommand, se_CreateTokenWithIAMCommand, se_RegisterClientCommand, se_StartDeviceAuthorizationCommand, de_CreateTokenCommand, de_CreateTokenWithIAMCommand, de_RegisterClientCommand, de_StartDeviceAuthorizationCommand, de_CommandError, throwDefaultError2, de_AccessDeniedExceptionRes, de_AuthorizationPendingExceptionRes, de_ExpiredTokenExceptionRes, de_InternalServerExceptionRes, de_InvalidClientExceptionRes, de_InvalidClientMetadataExceptionRes, de_InvalidGrantExceptionRes, de_InvalidRedirectUriExceptionRes, de_InvalidRequestExceptionRes, de_InvalidRequestRegionExceptionRes, de_InvalidScopeExceptionRes, de_SlowDownExceptionRes, de_UnauthorizedClientExceptionRes, de_UnsupportedGrantTypeExceptionRes, deserializeMetadata2, _ai;
         | 
| 42977 42692 | 
             
            var init_Aws_restJson1 = __esm({
         | 
| 42978 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 42693 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js"() {
         | 
| 42979 42694 | 
             
                "use strict";
         | 
| 42980 42695 | 
             
                import_core7 = __toESM(require_dist_cjs());
         | 
| 42981 42696 | 
             
                init_dist_es34();
         | 
| @@ -43406,10 +43121,10 @@ var init_Aws_restJson1 = __esm({ | |
| 43406 43121 | 
             
              }
         | 
| 43407 43122 | 
             
            });
         | 
| 43408 43123 |  | 
| 43409 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43124 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js
         | 
| 43410 43125 | 
             
            var CreateTokenCommand;
         | 
| 43411 43126 | 
             
            var init_CreateTokenCommand = __esm({
         | 
| 43412 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43127 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js"() {
         | 
| 43413 43128 | 
             
                "use strict";
         | 
| 43414 43129 | 
             
                init_dist_es18();
         | 
| 43415 43130 | 
             
                init_dist_es17();
         | 
| @@ -43429,10 +43144,10 @@ var init_CreateTokenCommand = __esm({ | |
| 43429 43144 | 
             
              }
         | 
| 43430 43145 | 
             
            });
         | 
| 43431 43146 |  | 
| 43432 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43147 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js
         | 
| 43433 43148 | 
             
            var CreateTokenWithIAMCommand;
         | 
| 43434 43149 | 
             
            var init_CreateTokenWithIAMCommand = __esm({
         | 
| 43435 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43150 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js"() {
         | 
| 43436 43151 | 
             
                "use strict";
         | 
| 43437 43152 | 
             
                init_dist_es18();
         | 
| 43438 43153 | 
             
                init_dist_es17();
         | 
| @@ -43452,10 +43167,10 @@ var init_CreateTokenWithIAMCommand = __esm({ | |
| 43452 43167 | 
             
              }
         | 
| 43453 43168 | 
             
            });
         | 
| 43454 43169 |  | 
| 43455 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43170 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js
         | 
| 43456 43171 | 
             
            var RegisterClientCommand;
         | 
| 43457 43172 | 
             
            var init_RegisterClientCommand = __esm({
         | 
| 43458 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43173 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js"() {
         | 
| 43459 43174 | 
             
                "use strict";
         | 
| 43460 43175 | 
             
                init_dist_es18();
         | 
| 43461 43176 | 
             
                init_dist_es17();
         | 
| @@ -43475,10 +43190,10 @@ var init_RegisterClientCommand = __esm({ | |
| 43475 43190 | 
             
              }
         | 
| 43476 43191 | 
             
            });
         | 
| 43477 43192 |  | 
| 43478 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43193 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js
         | 
| 43479 43194 | 
             
            var StartDeviceAuthorizationCommand;
         | 
| 43480 43195 | 
             
            var init_StartDeviceAuthorizationCommand = __esm({
         | 
| 43481 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43196 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js"() {
         | 
| 43482 43197 | 
             
                "use strict";
         | 
| 43483 43198 | 
             
                init_dist_es18();
         | 
| 43484 43199 | 
             
                init_dist_es17();
         | 
| @@ -43498,10 +43213,10 @@ var init_StartDeviceAuthorizationCommand = __esm({ | |
| 43498 43213 | 
             
              }
         | 
| 43499 43214 | 
             
            });
         | 
| 43500 43215 |  | 
| 43501 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43216 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js
         | 
| 43502 43217 | 
             
            var commands, SSOOIDC;
         | 
| 43503 43218 | 
             
            var init_SSOOIDC = __esm({
         | 
| 43504 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43219 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js"() {
         | 
| 43505 43220 | 
             
                "use strict";
         | 
| 43506 43221 | 
             
                init_dist_es32();
         | 
| 43507 43222 | 
             
                init_CreateTokenCommand();
         | 
| @@ -43521,9 +43236,9 @@ var init_SSOOIDC = __esm({ | |
| 43521 43236 | 
             
              }
         | 
| 43522 43237 | 
             
            });
         | 
| 43523 43238 |  | 
| 43524 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43239 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/index.js
         | 
| 43525 43240 | 
             
            var init_commands = __esm({
         | 
| 43526 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43241 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/index.js"() {
         | 
| 43527 43242 | 
             
                "use strict";
         | 
| 43528 43243 | 
             
                init_CreateTokenCommand();
         | 
| 43529 43244 | 
             
                init_CreateTokenWithIAMCommand();
         | 
| @@ -43532,15 +43247,15 @@ var init_commands = __esm({ | |
| 43532 43247 | 
             
              }
         | 
| 43533 43248 | 
             
            });
         | 
| 43534 43249 |  | 
| 43535 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43250 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/index.js
         | 
| 43536 43251 | 
             
            var init_models = __esm({
         | 
| 43537 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43252 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/index.js"() {
         | 
| 43538 43253 | 
             
                "use strict";
         | 
| 43539 43254 | 
             
                init_models_0();
         | 
| 43540 43255 | 
             
              }
         | 
| 43541 43256 | 
             
            });
         | 
| 43542 43257 |  | 
| 43543 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43258 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js
         | 
| 43544 43259 | 
             
            var dist_es_exports8 = {};
         | 
| 43545 43260 | 
             
            __export(dist_es_exports8, {
         | 
| 43546 43261 | 
             
              $Command: () => Command,
         | 
| @@ -43574,7 +43289,7 @@ __export(dist_es_exports8, { | |
| 43574 43289 | 
             
              __Client: () => Client
         | 
| 43575 43290 | 
             
            });
         | 
| 43576 43291 | 
             
            var init_dist_es45 = __esm({
         | 
| 43577 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583. | 
| 43292 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js"() {
         | 
| 43578 43293 | 
             
                "use strict";
         | 
| 43579 43294 | 
             
                init_SSOOIDCClient();
         | 
| 43580 43295 | 
             
                init_SSOOIDC();
         | 
| @@ -44949,7 +44664,7 @@ var init_resolveCredentialSource = __esm({ | |
| 44949 44664 | 
             
              }
         | 
| 44950 44665 | 
             
            });
         | 
| 44951 44666 |  | 
| 44952 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthSchemeProvider.js
         | 
| 44667 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthSchemeProvider.js
         | 
| 44953 44668 | 
             
            function createAwsAuthSigv4HttpAuthOption4(authParameters) {
         | 
| 44954 44669 | 
             
              return {
         | 
| 44955 44670 | 
             
                schemeId: "aws.auth#sigv4",
         | 
| @@ -44972,7 +44687,7 @@ function createSmithyApiNoAuthHttpAuthOption3(authParameters) { | |
| 44972 44687 | 
             
            }
         | 
| 44973 44688 | 
             
            var import_core18, defaultSTSHttpAuthSchemeParametersProvider, defaultSTSHttpAuthSchemeProvider, resolveStsAuthConfig, resolveHttpAuthSchemeConfig4;
         | 
| 44974 44689 | 
             
            var init_httpAuthSchemeProvider4 = __esm({
         | 
| 44975 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthSchemeProvider.js"() {
         | 
| 44690 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthSchemeProvider.js"() {
         | 
| 44976 44691 | 
             
                "use strict";
         | 
| 44977 44692 | 
             
                import_core18 = __toESM(require_dist_cjs());
         | 
| 44978 44693 | 
             
                init_dist_es10();
         | 
| @@ -45016,10 +44731,10 @@ var init_httpAuthSchemeProvider4 = __esm({ | |
| 45016 44731 | 
             
              }
         | 
| 45017 44732 | 
             
            });
         | 
| 45018 44733 |  | 
| 45019 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/endpoint/EndpointParameters.js
         | 
| 44734 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/endpoint/EndpointParameters.js
         | 
| 45020 44735 | 
             
            var resolveClientEndpointParameters4, commonParams4;
         | 
| 45021 44736 | 
             
            var init_EndpointParameters4 = __esm({
         | 
| 45022 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/endpoint/EndpointParameters.js"() {
         | 
| 44737 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/endpoint/EndpointParameters.js"() {
         | 
| 45023 44738 | 
             
                "use strict";
         | 
| 45024 44739 | 
             
                resolveClientEndpointParameters4 = (options) => {
         | 
| 45025 44740 | 
             
                  return {
         | 
| @@ -45040,10 +44755,10 @@ var init_EndpointParameters4 = __esm({ | |
| 45040 44755 | 
             
              }
         | 
| 45041 44756 | 
             
            });
         | 
| 45042 44757 |  | 
| 45043 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/package.json
         | 
| 44758 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/package.json
         | 
| 45044 44759 | 
             
            var package_default4;
         | 
| 45045 44760 | 
             
            var init_package4 = __esm({
         | 
| 45046 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/package.json"() {
         | 
| 44761 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/package.json"() {
         | 
| 45047 44762 | 
             
                package_default4 = {
         | 
| 45048 44763 | 
             
                  name: "@aws-sdk/client-sts",
         | 
| 45049 44764 | 
             
                  description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
         | 
| @@ -45149,10 +44864,10 @@ var init_package4 = __esm({ | |
| 45149 44864 | 
             
              }
         | 
| 45150 44865 | 
             
            });
         | 
| 45151 44866 |  | 
| 45152 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js
         | 
| 44867 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js
         | 
| 45153 44868 | 
             
            var F, G, H, I, J, a3, b3, c3, d3, e3, f3, g3, h3, i3, j3, k3, l3, m3, n3, o3, p3, q3, r3, s3, t3, u3, v3, w3, x3, y, z, A, B, C, D, E, _data3, ruleSet3;
         | 
| 45154 44869 | 
             
            var init_ruleset3 = __esm({
         | 
| 45155 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js"() {
         | 
| 44870 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js"() {
         | 
| 45156 44871 | 
             
                "use strict";
         | 
| 45157 44872 | 
             
                F = "required";
         | 
| 45158 44873 | 
             
                G = "type";
         | 
| @@ -45195,10 +44910,10 @@ var init_ruleset3 = __esm({ | |
| 45195 44910 | 
             
              }
         | 
| 45196 44911 | 
             
            });
         | 
| 45197 44912 |  | 
| 45198 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js
         | 
| 44913 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js
         | 
| 45199 44914 | 
             
            var defaultEndpointResolver3;
         | 
| 45200 44915 | 
             
            var init_endpointResolver3 = __esm({
         | 
| 45201 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js"() {
         | 
| 44916 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js"() {
         | 
| 45202 44917 | 
             
                "use strict";
         | 
| 45203 44918 | 
             
                init_dist_es7();
         | 
| 45204 44919 | 
             
                init_dist_es6();
         | 
| @@ -45213,10 +44928,10 @@ var init_endpointResolver3 = __esm({ | |
| 45213 44928 | 
             
              }
         | 
| 45214 44929 | 
             
            });
         | 
| 45215 44930 |  | 
| 45216 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js
         | 
| 44931 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js
         | 
| 45217 44932 | 
             
            var import_core19, getRuntimeConfig5;
         | 
| 45218 44933 | 
             
            var init_runtimeConfig_shared3 = __esm({
         | 
| 45219 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js"() {
         | 
| 44934 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js"() {
         | 
| 45220 44935 | 
             
                "use strict";
         | 
| 45221 44936 | 
             
                import_core19 = __toESM(require_dist_cjs());
         | 
| 45222 44937 | 
             
                init_dist_es34();
         | 
| @@ -45257,10 +44972,10 @@ var init_runtimeConfig_shared3 = __esm({ | |
| 45257 44972 | 
             
              }
         | 
| 45258 44973 | 
             
            });
         | 
| 45259 44974 |  | 
| 45260 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js
         | 
| 44975 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js
         | 
| 45261 44976 | 
             
            var import_core21, getRuntimeConfig6;
         | 
| 45262 44977 | 
             
            var init_runtimeConfig3 = __esm({
         | 
| 45263 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js"() {
         | 
| 44978 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js"() {
         | 
| 45264 44979 | 
             
                "use strict";
         | 
| 45265 44980 | 
             
                init_package4();
         | 
| 45266 44981 | 
             
                import_core21 = __toESM(require_dist_cjs());
         | 
| @@ -45320,10 +45035,10 @@ var init_runtimeConfig3 = __esm({ | |
| 45320 45035 | 
             
              }
         | 
| 45321 45036 | 
             
            });
         | 
| 45322 45037 |  | 
| 45323 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthExtensionConfiguration.js
         | 
| 45038 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthExtensionConfiguration.js
         | 
| 45324 45039 | 
             
            var getHttpAuthExtensionConfiguration3, resolveHttpAuthRuntimeConfig3;
         | 
| 45325 45040 | 
             
            var init_httpAuthExtensionConfiguration3 = __esm({
         | 
| 45326 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthExtensionConfiguration.js"() {
         | 
| 45041 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthExtensionConfiguration.js"() {
         | 
| 45327 45042 | 
             
                "use strict";
         | 
| 45328 45043 | 
             
                getHttpAuthExtensionConfiguration3 = (runtimeConfig) => {
         | 
| 45329 45044 | 
             
                  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
         | 
| @@ -45365,10 +45080,10 @@ var init_httpAuthExtensionConfiguration3 = __esm({ | |
| 45365 45080 | 
             
              }
         | 
| 45366 45081 | 
             
            });
         | 
| 45367 45082 |  | 
| 45368 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js
         | 
| 45083 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js
         | 
| 45369 45084 | 
             
            var asPartial3, resolveRuntimeExtensions3;
         | 
| 45370 45085 | 
             
            var init_runtimeExtensions3 = __esm({
         | 
| 45371 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js"() {
         | 
| 45086 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js"() {
         | 
| 45372 45087 | 
             
                "use strict";
         | 
| 45373 45088 | 
             
                init_dist_es44();
         | 
| 45374 45089 | 
             
                init_dist_es2();
         | 
| @@ -45394,10 +45109,10 @@ var init_runtimeExtensions3 = __esm({ | |
| 45394 45109 | 
             
              }
         | 
| 45395 45110 | 
             
            });
         | 
| 45396 45111 |  | 
| 45397 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js
         | 
| 45112 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js
         | 
| 45398 45113 | 
             
            var STSClient;
         | 
| 45399 45114 | 
             
            var init_STSClient = __esm({
         | 
| 45400 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js"() {
         | 
| 45115 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js"() {
         | 
| 45401 45116 | 
             
                "use strict";
         | 
| 45402 45117 | 
             
                init_dist_es3();
         | 
| 45403 45118 | 
             
                init_dist_es4();
         | 
| @@ -45453,10 +45168,10 @@ var init_STSClient = __esm({ | |
| 45453 45168 | 
             
              }
         | 
| 45454 45169 | 
             
            });
         | 
| 45455 45170 |  | 
| 45456 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js
         | 
| 45171 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js
         | 
| 45457 45172 | 
             
            var STSServiceException;
         | 
| 45458 45173 | 
             
            var init_STSServiceException = __esm({
         | 
| 45459 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js"() {
         | 
| 45174 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js"() {
         | 
| 45460 45175 | 
             
                "use strict";
         | 
| 45461 45176 | 
             
                init_dist_es32();
         | 
| 45462 45177 | 
             
                STSServiceException = class _STSServiceException extends ServiceException {
         | 
| @@ -45468,10 +45183,10 @@ var init_STSServiceException = __esm({ | |
| 45468 45183 | 
             
              }
         | 
| 45469 45184 | 
             
            });
         | 
| 45470 45185 |  | 
| 45471 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js
         | 
| 45186 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js
         | 
| 45472 45187 | 
             
            var ExpiredTokenException2, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, IDPRejectedClaimException, InvalidIdentityTokenException, IDPCommunicationErrorException, InvalidAuthorizationMessageException, CredentialsFilterSensitiveLog, AssumeRoleResponseFilterSensitiveLog, AssumeRoleWithSAMLRequestFilterSensitiveLog, AssumeRoleWithSAMLResponseFilterSensitiveLog, AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog, GetFederationTokenResponseFilterSensitiveLog, GetSessionTokenResponseFilterSensitiveLog;
         | 
| 45473 45188 | 
             
            var init_models_03 = __esm({
         | 
| 45474 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js"() {
         | 
| 45189 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js"() {
         | 
| 45475 45190 | 
             
                "use strict";
         | 
| 45476 45191 | 
             
                init_dist_es32();
         | 
| 45477 45192 | 
             
                init_STSServiceException();
         | 
| @@ -45606,10 +45321,10 @@ var init_models_03 = __esm({ | |
| 45606 45321 | 
             
              }
         | 
| 45607 45322 | 
             
            });
         | 
| 45608 45323 |  | 
| 45609 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js
         | 
| 45324 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js
         | 
| 45610 45325 | 
             
            var import_core24, se_AssumeRoleCommand, se_AssumeRoleWithSAMLCommand, se_AssumeRoleWithWebIdentityCommand, se_DecodeAuthorizationMessageCommand, se_GetAccessKeyInfoCommand, se_GetCallerIdentityCommand, se_GetFederationTokenCommand, se_GetSessionTokenCommand, de_AssumeRoleCommand, de_AssumeRoleWithSAMLCommand, de_AssumeRoleWithWebIdentityCommand, de_DecodeAuthorizationMessageCommand, de_GetAccessKeyInfoCommand, de_GetCallerIdentityCommand, de_GetFederationTokenCommand, de_GetSessionTokenCommand, de_CommandError3, de_ExpiredTokenExceptionRes2, de_IDPCommunicationErrorExceptionRes, de_IDPRejectedClaimExceptionRes, de_InvalidAuthorizationMessageExceptionRes, de_InvalidIdentityTokenExceptionRes, de_MalformedPolicyDocumentExceptionRes, de_PackedPolicyTooLargeExceptionRes, de_RegionDisabledExceptionRes, se_AssumeRoleRequest, se_AssumeRoleWithSAMLRequest, se_AssumeRoleWithWebIdentityRequest, se_DecodeAuthorizationMessageRequest, se_GetAccessKeyInfoRequest, se_GetCallerIdentityRequest, se_GetFederationTokenRequest, se_GetSessionTokenRequest, se_policyDescriptorListType, se_PolicyDescriptorType, se_ProvidedContext, se_ProvidedContextsListType, se_Tag, se_tagKeyListType, se_tagListType, de_AssumedRoleUser, de_AssumeRoleResponse, de_AssumeRoleWithSAMLResponse, de_AssumeRoleWithWebIdentityResponse, de_Credentials, de_DecodeAuthorizationMessageResponse, de_ExpiredTokenException, de_FederatedUser, de_GetAccessKeyInfoResponse, de_GetCallerIdentityResponse, de_GetFederationTokenResponse, de_GetSessionTokenResponse, de_IDPCommunicationErrorException, de_IDPRejectedClaimException, de_InvalidAuthorizationMessageException, de_InvalidIdentityTokenException, de_MalformedPolicyDocumentException, de_PackedPolicyTooLargeException, de_RegionDisabledException, deserializeMetadata4, throwDefaultError4, buildHttpRpcRequest, SHARED_HEADERS, _, _A, _AKI, _AR, _ARI, _ARU, _ARWSAML, _ARWWI, _Ac, _Ar, _Au, _C, _CA, _DAM, _DM, _DS, _E, _EI, _EM, _FU, _FUI, _GAKI, _GCI, _GFT, _GST, _I, _K, _N, _NQ, _P, _PA, _PAr, _PAro, _PC, _PI, _PPS, _Pr, _RA, _RSN, _S, _SAK, _SAMLA, _SFWIT, _SI, _SN, _ST, _STe, _T, _TC, _TTK, _UI, _V, _Va, _WIT, _a164, _m, buildFormUrlencodedString, loadQueryErrorCode;
         | 
| 45611 45326 | 
             
            var init_Aws_query = __esm({
         | 
| 45612 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js"() {
         | 
| 45327 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js"() {
         | 
| 45613 45328 | 
             
                "use strict";
         | 
| 45614 45329 | 
             
                import_core24 = __toESM(require_dist_cjs());
         | 
| 45615 45330 | 
             
                init_dist_es2();
         | 
| @@ -46407,14 +46122,14 @@ var init_Aws_query = __esm({ | |
| 46407 46122 | 
             
                  cfId: output.headers["x-amz-cf-id"]
         | 
| 46408 46123 | 
             
                });
         | 
| 46409 46124 | 
             
                throwDefaultError4 = withBaseException(STSServiceException);
         | 
| 46410 | 
            -
                buildHttpRpcRequest = async (context, headers,  | 
| 46125 | 
            +
                buildHttpRpcRequest = async (context, headers, path2, resolvedHostname, body) => {
         | 
| 46411 46126 | 
             
                  const { hostname, protocol: protocol2 = "https", port, path: basePath } = await context.endpoint();
         | 
| 46412 46127 | 
             
                  const contents = {
         | 
| 46413 46128 | 
             
                    protocol: protocol2,
         | 
| 46414 46129 | 
             
                    hostname,
         | 
| 46415 46130 | 
             
                    port,
         | 
| 46416 46131 | 
             
                    method: "POST",
         | 
| 46417 | 
            -
                    path: basePath.endsWith("/") ? basePath.slice(0, -1) +  | 
| 46132 | 
            +
                    path: basePath.endsWith("/") ? basePath.slice(0, -1) + path2 : basePath + path2,
         | 
| 46418 46133 | 
             
                    headers
         | 
| 46419 46134 | 
             
                  };
         | 
| 46420 46135 | 
             
                  if (resolvedHostname !== void 0) {
         | 
| @@ -46496,10 +46211,10 @@ var init_Aws_query = __esm({ | |
| 46496 46211 | 
             
              }
         | 
| 46497 46212 | 
             
            });
         | 
| 46498 46213 |  | 
| 46499 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js
         | 
| 46214 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js
         | 
| 46500 46215 | 
             
            var AssumeRoleCommand;
         | 
| 46501 46216 | 
             
            var init_AssumeRoleCommand = __esm({
         | 
| 46502 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js"() {
         | 
| 46217 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js"() {
         | 
| 46503 46218 | 
             
                "use strict";
         | 
| 46504 46219 | 
             
                init_dist_es18();
         | 
| 46505 46220 | 
             
                init_dist_es17();
         | 
| @@ -46519,10 +46234,10 @@ var init_AssumeRoleCommand = __esm({ | |
| 46519 46234 | 
             
              }
         | 
| 46520 46235 | 
             
            });
         | 
| 46521 46236 |  | 
| 46522 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js
         | 
| 46237 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js
         | 
| 46523 46238 | 
             
            var AssumeRoleWithSAMLCommand;
         | 
| 46524 46239 | 
             
            var init_AssumeRoleWithSAMLCommand = __esm({
         | 
| 46525 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js"() {
         | 
| 46240 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js"() {
         | 
| 46526 46241 | 
             
                "use strict";
         | 
| 46527 46242 | 
             
                init_dist_es18();
         | 
| 46528 46243 | 
             
                init_dist_es17();
         | 
| @@ -46542,10 +46257,10 @@ var init_AssumeRoleWithSAMLCommand = __esm({ | |
| 46542 46257 | 
             
              }
         | 
| 46543 46258 | 
             
            });
         | 
| 46544 46259 |  | 
| 46545 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js
         | 
| 46260 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js
         | 
| 46546 46261 | 
             
            var AssumeRoleWithWebIdentityCommand;
         | 
| 46547 46262 | 
             
            var init_AssumeRoleWithWebIdentityCommand = __esm({
         | 
| 46548 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js"() {
         | 
| 46263 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js"() {
         | 
| 46549 46264 | 
             
                "use strict";
         | 
| 46550 46265 | 
             
                init_dist_es18();
         | 
| 46551 46266 | 
             
                init_dist_es17();
         | 
| @@ -46565,10 +46280,10 @@ var init_AssumeRoleWithWebIdentityCommand = __esm({ | |
| 46565 46280 | 
             
              }
         | 
| 46566 46281 | 
             
            });
         | 
| 46567 46282 |  | 
| 46568 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js
         | 
| 46283 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js
         | 
| 46569 46284 | 
             
            var DecodeAuthorizationMessageCommand;
         | 
| 46570 46285 | 
             
            var init_DecodeAuthorizationMessageCommand = __esm({
         | 
| 46571 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js"() {
         | 
| 46286 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js"() {
         | 
| 46572 46287 | 
             
                "use strict";
         | 
| 46573 46288 | 
             
                init_dist_es18();
         | 
| 46574 46289 | 
             
                init_dist_es17();
         | 
| @@ -46587,10 +46302,10 @@ var init_DecodeAuthorizationMessageCommand = __esm({ | |
| 46587 46302 | 
             
              }
         | 
| 46588 46303 | 
             
            });
         | 
| 46589 46304 |  | 
| 46590 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js
         | 
| 46305 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js
         | 
| 46591 46306 | 
             
            var GetAccessKeyInfoCommand;
         | 
| 46592 46307 | 
             
            var init_GetAccessKeyInfoCommand = __esm({
         | 
| 46593 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js"() {
         | 
| 46308 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js"() {
         | 
| 46594 46309 | 
             
                "use strict";
         | 
| 46595 46310 | 
             
                init_dist_es18();
         | 
| 46596 46311 | 
             
                init_dist_es17();
         | 
| @@ -46609,10 +46324,10 @@ var init_GetAccessKeyInfoCommand = __esm({ | |
| 46609 46324 | 
             
              }
         | 
| 46610 46325 | 
             
            });
         | 
| 46611 46326 |  | 
| 46612 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js
         | 
| 46327 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js
         | 
| 46613 46328 | 
             
            var GetCallerIdentityCommand;
         | 
| 46614 46329 | 
             
            var init_GetCallerIdentityCommand = __esm({
         | 
| 46615 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js"() {
         | 
| 46330 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js"() {
         | 
| 46616 46331 | 
             
                "use strict";
         | 
| 46617 46332 | 
             
                init_dist_es18();
         | 
| 46618 46333 | 
             
                init_dist_es17();
         | 
| @@ -46631,10 +46346,10 @@ var init_GetCallerIdentityCommand = __esm({ | |
| 46631 46346 | 
             
              }
         | 
| 46632 46347 | 
             
            });
         | 
| 46633 46348 |  | 
| 46634 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js
         | 
| 46349 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js
         | 
| 46635 46350 | 
             
            var GetFederationTokenCommand;
         | 
| 46636 46351 | 
             
            var init_GetFederationTokenCommand = __esm({
         | 
| 46637 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js"() {
         | 
| 46352 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js"() {
         | 
| 46638 46353 | 
             
                "use strict";
         | 
| 46639 46354 | 
             
                init_dist_es18();
         | 
| 46640 46355 | 
             
                init_dist_es17();
         | 
| @@ -46654,10 +46369,10 @@ var init_GetFederationTokenCommand = __esm({ | |
| 46654 46369 | 
             
              }
         | 
| 46655 46370 | 
             
            });
         | 
| 46656 46371 |  | 
| 46657 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js
         | 
| 46372 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js
         | 
| 46658 46373 | 
             
            var GetSessionTokenCommand;
         | 
| 46659 46374 | 
             
            var init_GetSessionTokenCommand = __esm({
         | 
| 46660 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js"() {
         | 
| 46375 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js"() {
         | 
| 46661 46376 | 
             
                "use strict";
         | 
| 46662 46377 | 
             
                init_dist_es18();
         | 
| 46663 46378 | 
             
                init_dist_es17();
         | 
| @@ -46677,10 +46392,10 @@ var init_GetSessionTokenCommand = __esm({ | |
| 46677 46392 | 
             
              }
         | 
| 46678 46393 | 
             
            });
         | 
| 46679 46394 |  | 
| 46680 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/STS.js
         | 
| 46395 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/STS.js
         | 
| 46681 46396 | 
             
            var commands3, STS;
         | 
| 46682 46397 | 
             
            var init_STS = __esm({
         | 
| 46683 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/STS.js"() {
         | 
| 46398 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/STS.js"() {
         | 
| 46684 46399 | 
             
                "use strict";
         | 
| 46685 46400 | 
             
                init_dist_es32();
         | 
| 46686 46401 | 
             
                init_AssumeRoleCommand();
         | 
| @@ -46708,9 +46423,9 @@ var init_STS = __esm({ | |
| 46708 46423 | 
             
              }
         | 
| 46709 46424 | 
             
            });
         | 
| 46710 46425 |  | 
| 46711 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js
         | 
| 46426 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js
         | 
| 46712 46427 | 
             
            var init_commands3 = __esm({
         | 
| 46713 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js"() {
         | 
| 46428 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js"() {
         | 
| 46714 46429 | 
             
                "use strict";
         | 
| 46715 46430 | 
             
                init_AssumeRoleCommand();
         | 
| 46716 46431 | 
             
                init_AssumeRoleWithSAMLCommand();
         | 
| @@ -46723,18 +46438,18 @@ var init_commands3 = __esm({ | |
| 46723 46438 | 
             
              }
         | 
| 46724 46439 | 
             
            });
         | 
| 46725 46440 |  | 
| 46726 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/models/index.js
         | 
| 46441 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/models/index.js
         | 
| 46727 46442 | 
             
            var init_models3 = __esm({
         | 
| 46728 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/models/index.js"() {
         | 
| 46443 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/models/index.js"() {
         | 
| 46729 46444 | 
             
                "use strict";
         | 
| 46730 46445 | 
             
                init_models_03();
         | 
| 46731 46446 | 
             
              }
         | 
| 46732 46447 | 
             
            });
         | 
| 46733 46448 |  | 
| 46734 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js
         | 
| 46449 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js
         | 
| 46735 46450 | 
             
            var ASSUME_ROLE_DEFAULT_REGION, resolveRegion, getDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity;
         | 
| 46736 46451 | 
             
            var init_defaultStsRoleAssumers = __esm({
         | 
| 46737 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js"() {
         | 
| 46452 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js"() {
         | 
| 46738 46453 | 
             
                "use strict";
         | 
| 46739 46454 | 
             
                init_AssumeRoleCommand();
         | 
| 46740 46455 | 
             
                init_AssumeRoleWithWebIdentityCommand();
         | 
| @@ -46801,10 +46516,10 @@ var init_defaultStsRoleAssumers = __esm({ | |
| 46801 46516 | 
             
              }
         | 
| 46802 46517 | 
             
            });
         | 
| 46803 46518 |  | 
| 46804 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/defaultRoleAssumers.js
         | 
| 46519 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/defaultRoleAssumers.js
         | 
| 46805 46520 | 
             
            var getCustomizableStsClientCtor, getDefaultRoleAssumer2, getDefaultRoleAssumerWithWebIdentity2, decorateDefaultCredentialProvider;
         | 
| 46806 46521 | 
             
            var init_defaultRoleAssumers = __esm({
         | 
| 46807 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/defaultRoleAssumers.js"() {
         | 
| 46522 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/defaultRoleAssumers.js"() {
         | 
| 46808 46523 | 
             
                "use strict";
         | 
| 46809 46524 | 
             
                init_defaultStsRoleAssumers();
         | 
| 46810 46525 | 
             
                init_STSClient();
         | 
| @@ -46831,7 +46546,7 @@ var init_defaultRoleAssumers = __esm({ | |
| 46831 46546 | 
             
              }
         | 
| 46832 46547 | 
             
            });
         | 
| 46833 46548 |  | 
| 46834 | 
            -
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/index.js
         | 
| 46549 | 
            +
            // ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/index.js
         | 
| 46835 46550 | 
             
            var dist_es_exports10 = {};
         | 
| 46836 46551 | 
             
            __export(dist_es_exports10, {
         | 
| 46837 46552 | 
             
              $Command: () => Command,
         | 
| @@ -46868,7 +46583,7 @@ __export(dist_es_exports10, { | |
| 46868 46583 | 
             
              getDefaultRoleAssumerWithWebIdentity: () => getDefaultRoleAssumerWithWebIdentity2
         | 
| 46869 46584 | 
             
            });
         | 
| 46870 46585 | 
             
            var init_dist_es49 = __esm({
         | 
| 46871 | 
            -
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/index.js"() {
         | 
| 46586 | 
            +
              "../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sts/dist-es/index.js"() {
         | 
| 46872 46587 | 
             
                "use strict";
         | 
| 46873 46588 | 
             
                init_STSClient();
         | 
| 46874 46589 | 
             
                init_STS();
         | 
| @@ -48961,6 +48676,7 @@ var init_session3 = __esm({ | |
| 48961 48676 | 
             
                      database: options.database
         | 
| 48962 48677 | 
             
                    };
         | 
| 48963 48678 | 
             
                  }
         | 
| 48679 | 
            +
                  // @ts-ignore
         | 
| 48964 48680 | 
             
                  prepareQuery(query, fields, name2, isResponseInArrayMode, customResultMapper, transactionId) {
         | 
| 48965 48681 | 
             
                    return new AwsDataApiPreparedQuery(
         | 
| 48966 48682 | 
             
                      this.client,
         | 
| @@ -48981,6 +48697,8 @@ var init_session3 = __esm({ | |
| 48981 48697 | 
             
                      void 0,
         | 
| 48982 48698 | 
             
                      false,
         | 
| 48983 48699 | 
             
                      void 0,
         | 
| 48700 | 
            +
                      void 0,
         | 
| 48701 | 
            +
                      // @ts-ignore
         | 
| 48984 48702 | 
             
                      this.transactionId
         | 
| 48985 48703 | 
             
                    ).execute();
         | 
| 48986 48704 | 
             
                  }
         | 
| @@ -49050,7 +48768,9 @@ function drizzle2(client, config) { | |
| 49050 48768 | 
             
                };
         | 
| 49051 48769 | 
             
              }
         | 
| 49052 48770 | 
             
              const session = new AwsDataApiSession(client, dialect7, schema4, { ...config, logger: logger2 }, void 0);
         | 
| 49053 | 
            -
               | 
| 48771 | 
            +
              const db2 = new AwsDataApiPgDatabase(dialect7, session, schema4);
         | 
| 48772 | 
            +
              db2.$client = client;
         | 
| 48773 | 
            +
              return db2;
         | 
| 49054 48774 | 
             
            }
         | 
| 49055 48775 | 
             
            var _a168, _b121, AwsDataApiPgDatabase, _a169, _b122, AwsPgDialect;
         | 
| 49056 48776 | 
             
            var init_driver2 = __esm({
         | 
| @@ -49173,20 +48893,20 @@ var require_file_uri_to_path = __commonJS({ | |
| 49173 48893 | 
             
                  var rest = decodeURI(uri.substring(7));
         | 
| 49174 48894 | 
             
                  var firstSlash = rest.indexOf("/");
         | 
| 49175 48895 | 
             
                  var host = rest.substring(0, firstSlash);
         | 
| 49176 | 
            -
                  var  | 
| 48896 | 
            +
                  var path2 = rest.substring(firstSlash + 1);
         | 
| 49177 48897 | 
             
                  if ("localhost" == host) host = "";
         | 
| 49178 48898 | 
             
                  if (host) {
         | 
| 49179 48899 | 
             
                    host = sep3 + sep3 + host;
         | 
| 49180 48900 | 
             
                  }
         | 
| 49181 | 
            -
                   | 
| 48901 | 
            +
                  path2 = path2.replace(/^(.+)\|/, "$1:");
         | 
| 49182 48902 | 
             
                  if (sep3 == "\\") {
         | 
| 49183 | 
            -
                     | 
| 48903 | 
            +
                    path2 = path2.replace(/\//g, "\\");
         | 
| 49184 48904 | 
             
                  }
         | 
| 49185 | 
            -
                  if (/^.+\:/.test( | 
| 48905 | 
            +
                  if (/^.+\:/.test(path2)) {
         | 
| 49186 48906 | 
             
                  } else {
         | 
| 49187 | 
            -
                     | 
| 48907 | 
            +
                    path2 = sep3 + path2;
         | 
| 49188 48908 | 
             
                  }
         | 
| 49189 | 
            -
                  return host +  | 
| 48909 | 
            +
                  return host + path2;
         | 
| 49190 48910 | 
             
                }
         | 
| 49191 48911 | 
             
              }
         | 
| 49192 48912 | 
             
            });
         | 
| @@ -49196,18 +48916,18 @@ var require_bindings = __commonJS({ | |
| 49196 48916 | 
             
              "../node_modules/.pnpm/bindings@1.5.0/node_modules/bindings/bindings.js"(exports, module) {
         | 
| 49197 48917 | 
             
                "use strict";
         | 
| 49198 48918 | 
             
                var fs5 = __require("fs");
         | 
| 49199 | 
            -
                var  | 
| 48919 | 
            +
                var path2 = __require("path");
         | 
| 49200 48920 | 
             
                var fileURLToPath = require_file_uri_to_path();
         | 
| 49201 | 
            -
                var join4 =  | 
| 49202 | 
            -
                var dirname =  | 
| 49203 | 
            -
                var exists2 = fs5.accessSync && function( | 
| 48921 | 
            +
                var join4 = path2.join;
         | 
| 48922 | 
            +
                var dirname = path2.dirname;
         | 
| 48923 | 
            +
                var exists2 = fs5.accessSync && function(path3) {
         | 
| 49204 48924 | 
             
                  try {
         | 
| 49205 | 
            -
                    fs5.accessSync( | 
| 48925 | 
            +
                    fs5.accessSync(path3);
         | 
| 49206 48926 | 
             
                  } catch (e5) {
         | 
| 49207 48927 | 
             
                    return false;
         | 
| 49208 48928 | 
             
                  }
         | 
| 49209 48929 | 
             
                  return true;
         | 
| 49210 | 
            -
                } || fs5.existsSync ||  | 
| 48930 | 
            +
                } || fs5.existsSync || path2.existsSync;
         | 
| 49211 48931 | 
             
                var defaults2 = {
         | 
| 49212 48932 | 
             
                  arrow: process.env.NODE_BINDINGS_ARROW || " \u2192 ",
         | 
| 49213 48933 | 
             
                  compiled: process.env.NODE_BINDINGS_COMPILED_DIR || "compiled",
         | 
| @@ -49252,7 +48972,7 @@ var require_bindings = __commonJS({ | |
| 49252 48972 | 
             
                  if (!opts.module_root) {
         | 
| 49253 48973 | 
             
                    opts.module_root = exports.getRoot(exports.getFileName());
         | 
| 49254 48974 | 
             
                  }
         | 
| 49255 | 
            -
                  if ( | 
| 48975 | 
            +
                  if (path2.extname(opts.bindings) != ".node") {
         | 
| 49256 48976 | 
             
                    opts.bindings += ".node";
         | 
| 49257 48977 | 
             
                  }
         | 
| 49258 48978 | 
             
                  var requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
         | 
| @@ -49488,7 +49208,7 @@ var require_backup = __commonJS({ | |
| 49488 49208 | 
             
              "../node_modules/.pnpm/better-sqlite3@8.7.0/node_modules/better-sqlite3/lib/methods/backup.js"(exports, module) {
         | 
| 49489 49209 | 
             
                "use strict";
         | 
| 49490 49210 | 
             
                var fs5 = __require("fs");
         | 
| 49491 | 
            -
                var  | 
| 49211 | 
            +
                var path2 = __require("path");
         | 
| 49492 49212 | 
             
                var { promisify: promisify2 } = __require("util");
         | 
| 49493 49213 | 
             
                var { cppdb } = require_util3();
         | 
| 49494 49214 | 
             
                var fsAccess = promisify2(fs5.access);
         | 
| @@ -49504,7 +49224,7 @@ var require_backup = __commonJS({ | |
| 49504 49224 | 
             
                  if (typeof attachedName !== "string") throw new TypeError('Expected the "attached" option to be a string');
         | 
| 49505 49225 | 
             
                  if (!attachedName) throw new TypeError('The "attached" option cannot be an empty string');
         | 
| 49506 49226 | 
             
                  if (handler != null && typeof handler !== "function") throw new TypeError('Expected the "progress" option to be a function');
         | 
| 49507 | 
            -
                  await fsAccess( | 
| 49227 | 
            +
                  await fsAccess(path2.dirname(filename)).catch(() => {
         | 
| 49508 49228 | 
             
                    throw new TypeError("Cannot save backup because the directory does not exist");
         | 
| 49509 49229 | 
             
                  });
         | 
| 49510 49230 | 
             
                  const isNewFile = await fsAccess(filename).then(() => false, () => true);
         | 
| @@ -49810,7 +49530,7 @@ var require_database = __commonJS({ | |
| 49810 49530 | 
             
              "../node_modules/.pnpm/better-sqlite3@8.7.0/node_modules/better-sqlite3/lib/database.js"(exports, module) {
         | 
| 49811 49531 | 
             
                "use strict";
         | 
| 49812 49532 | 
             
                var fs5 = __require("fs");
         | 
| 49813 | 
            -
                var  | 
| 49533 | 
            +
                var path2 = __require("path");
         | 
| 49814 49534 | 
             
                var util2 = require_util3();
         | 
| 49815 49535 | 
             
                var SqliteError = require_sqlite_error();
         | 
| 49816 49536 | 
             
                var DEFAULT_ADDON;
         | 
| @@ -49846,7 +49566,7 @@ var require_database = __commonJS({ | |
| 49846 49566 | 
             
                    addon = DEFAULT_ADDON || (DEFAULT_ADDON = require_bindings()("better_sqlite3.node"));
         | 
| 49847 49567 | 
             
                  } else if (typeof nativeBinding === "string") {
         | 
| 49848 49568 | 
             
                    const requireFunc = typeof __non_webpack_require__ === "function" ? __non_webpack_require__ : __require;
         | 
| 49849 | 
            -
                    addon = requireFunc( | 
| 49569 | 
            +
                    addon = requireFunc(path2.resolve(nativeBinding).replace(/(\.node)?$/, ".node"));
         | 
| 49850 49570 | 
             
                  } else {
         | 
| 49851 49571 | 
             
                    addon = nativeBinding;
         | 
| 49852 49572 | 
             
                  }
         | 
| @@ -49854,7 +49574,7 @@ var require_database = __commonJS({ | |
| 49854 49574 | 
             
                    addon.setErrorConstructor(SqliteError);
         | 
| 49855 49575 | 
             
                    addon.isInitialized = true;
         | 
| 49856 49576 | 
             
                  }
         | 
| 49857 | 
            -
                  if (!anonymous && !fs5.existsSync( | 
| 49577 | 
            +
                  if (!anonymous && !fs5.existsSync(path2.dirname(filename))) {
         | 
| 49858 49578 | 
             
                    throw new TypeError("Cannot open database because the directory does not exist");
         | 
| 49859 49579 | 
             
                  }
         | 
| 49860 49580 | 
             
                  Object.defineProperties(this, {
         | 
| @@ -52458,6 +52178,7 @@ var init_db2 = __esm({ | |
| 52458 52178 | 
             
                "use strict";
         | 
| 52459 52179 | 
             
                init_entity();
         | 
| 52460 52180 | 
             
                init_selection_proxy();
         | 
| 52181 | 
            +
                init_sql();
         | 
| 52461 52182 | 
             
                init_query_builders2();
         | 
| 52462 52183 | 
             
                init_subquery();
         | 
| 52463 52184 | 
             
                init_count2();
         | 
| @@ -52689,56 +52410,56 @@ var init_db2 = __esm({ | |
| 52689 52410 | 
             
                    return new SQLiteDeleteBase(from, this.session, this.dialect);
         | 
| 52690 52411 | 
             
                  }
         | 
| 52691 52412 | 
             
                  run(query) {
         | 
| 52692 | 
            -
                    const  | 
| 52413 | 
            +
                    const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
         | 
| 52693 52414 | 
             
                    if (this.resultKind === "async") {
         | 
| 52694 52415 | 
             
                      return new SQLiteRaw(
         | 
| 52695 | 
            -
                        async () => this.session.run( | 
| 52696 | 
            -
                        () =>  | 
| 52416 | 
            +
                        async () => this.session.run(sequel),
         | 
| 52417 | 
            +
                        () => sequel,
         | 
| 52697 52418 | 
             
                        "run",
         | 
| 52698 52419 | 
             
                        this.dialect,
         | 
| 52699 52420 | 
             
                        this.session.extractRawRunValueFromBatchResult.bind(this.session)
         | 
| 52700 52421 | 
             
                      );
         | 
| 52701 52422 | 
             
                    }
         | 
| 52702 | 
            -
                    return this.session.run( | 
| 52423 | 
            +
                    return this.session.run(sequel);
         | 
| 52703 52424 | 
             
                  }
         | 
| 52704 52425 | 
             
                  all(query) {
         | 
| 52705 | 
            -
                    const  | 
| 52426 | 
            +
                    const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
         | 
| 52706 52427 | 
             
                    if (this.resultKind === "async") {
         | 
| 52707 52428 | 
             
                      return new SQLiteRaw(
         | 
| 52708 | 
            -
                        async () => this.session.all( | 
| 52709 | 
            -
                        () =>  | 
| 52429 | 
            +
                        async () => this.session.all(sequel),
         | 
| 52430 | 
            +
                        () => sequel,
         | 
| 52710 52431 | 
             
                        "all",
         | 
| 52711 52432 | 
             
                        this.dialect,
         | 
| 52712 52433 | 
             
                        this.session.extractRawAllValueFromBatchResult.bind(this.session)
         | 
| 52713 52434 | 
             
                      );
         | 
| 52714 52435 | 
             
                    }
         | 
| 52715 | 
            -
                    return this.session.all( | 
| 52436 | 
            +
                    return this.session.all(sequel);
         | 
| 52716 52437 | 
             
                  }
         | 
| 52717 52438 | 
             
                  get(query) {
         | 
| 52718 | 
            -
                    const  | 
| 52439 | 
            +
                    const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
         | 
| 52719 52440 | 
             
                    if (this.resultKind === "async") {
         | 
| 52720 52441 | 
             
                      return new SQLiteRaw(
         | 
| 52721 | 
            -
                        async () => this.session.get( | 
| 52722 | 
            -
                        () =>  | 
| 52442 | 
            +
                        async () => this.session.get(sequel),
         | 
| 52443 | 
            +
                        () => sequel,
         | 
| 52723 52444 | 
             
                        "get",
         | 
| 52724 52445 | 
             
                        this.dialect,
         | 
| 52725 52446 | 
             
                        this.session.extractRawGetValueFromBatchResult.bind(this.session)
         | 
| 52726 52447 | 
             
                      );
         | 
| 52727 52448 | 
             
                    }
         | 
| 52728 | 
            -
                    return this.session.get( | 
| 52449 | 
            +
                    return this.session.get(sequel);
         | 
| 52729 52450 | 
             
                  }
         | 
| 52730 52451 | 
             
                  values(query) {
         | 
| 52731 | 
            -
                    const  | 
| 52452 | 
            +
                    const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
         | 
| 52732 52453 | 
             
                    if (this.resultKind === "async") {
         | 
| 52733 52454 | 
             
                      return new SQLiteRaw(
         | 
| 52734 | 
            -
                        async () => this.session.values( | 
| 52735 | 
            -
                        () =>  | 
| 52455 | 
            +
                        async () => this.session.values(sequel),
         | 
| 52456 | 
            +
                        () => sequel,
         | 
| 52736 52457 | 
             
                        "values",
         | 
| 52737 52458 | 
             
                        this.dialect,
         | 
| 52738 52459 | 
             
                        this.session.extractRawValuesValueFromBatchResult.bind(this.session)
         | 
| 52739 52460 | 
             
                      );
         | 
| 52740 52461 | 
             
                    }
         | 
| 52741 | 
            -
                    return this.session.values( | 
| 52462 | 
            +
                    return this.session.values(sequel);
         | 
| 52742 52463 | 
             
                  }
         | 
| 52743 52464 | 
             
                  transaction(transaction, config) {
         | 
| 52744 52465 | 
             
                    return this.session.transaction(transaction, config);
         | 
| @@ -53332,7 +53053,9 @@ function drizzle3(client, config = {}) { | |
| 53332 53053 | 
             
                };
         | 
| 53333 53054 | 
             
              }
         | 
| 53334 53055 | 
             
              const session = new BetterSQLiteSession(client, dialect7, schema4, { logger: logger2 });
         | 
| 53335 | 
            -
               | 
| 53056 | 
            +
              const db2 = new BetterSQLite3Database("sync", dialect7, session, schema4);
         | 
| 53057 | 
            +
              db2.$client = client;
         | 
| 53058 | 
            +
              return db2;
         | 
| 53336 53059 | 
             
            }
         | 
| 53337 53060 | 
             
            var _a239, _b170, BetterSQLite3Database;
         | 
| 53338 53061 | 
             
            var init_driver3 = __esm({
         | 
| @@ -53508,7 +53231,9 @@ function drizzle4(client, config = {}) { | |
| 53508 53231 | 
             
                };
         | 
| 53509 53232 | 
             
              }
         | 
| 53510 53233 | 
             
              const session = new SQLiteBunSession(client, dialect7, schema4, { logger: logger2 });
         | 
| 53511 | 
            -
               | 
| 53234 | 
            +
              const db2 = new BunSQLiteDatabase("sync", dialect7, session, schema4);
         | 
| 53235 | 
            +
              db2.$client = client;
         | 
| 53236 | 
            +
              return db2;
         | 
| 53512 53237 | 
             
            }
         | 
| 53513 53238 | 
             
            var _a243, _b174, BunSQLiteDatabase;
         | 
| 53514 53239 | 
             
            var init_driver4 = __esm({
         | 
| @@ -53748,7 +53473,9 @@ function drizzle5(client, config = {}) { | |
| 53748 53473 | 
             
                };
         | 
| 53749 53474 | 
             
              }
         | 
| 53750 53475 | 
             
              const session = new SQLiteD1Session(client, dialect7, schema4, { logger: logger2 });
         | 
| 53751 | 
            -
               | 
| 53476 | 
            +
              const db2 = new DrizzleD1Database("async", dialect7, session, schema4);
         | 
| 53477 | 
            +
              db2.$client = client;
         | 
| 53478 | 
            +
              return db2;
         | 
| 53752 53479 | 
             
            }
         | 
| 53753 53480 | 
             
            var _a247, _b178, DrizzleD1Database;
         | 
| 53754 53481 | 
             
            var init_driver5 = __esm({
         | 
| @@ -53818,10 +53545,10 @@ function parseUri(text) { | |
| 53818 53545 | 
             
              const groups = match2.groups;
         | 
| 53819 53546 | 
             
              const scheme = groups["scheme"];
         | 
| 53820 53547 | 
             
              const authority = groups["authority"] !== void 0 ? parseAuthority(groups["authority"]) : void 0;
         | 
| 53821 | 
            -
              const  | 
| 53548 | 
            +
              const path2 = percentDecode(groups["path"]);
         | 
| 53822 53549 | 
             
              const query = groups["query"] !== void 0 ? parseQuery(groups["query"]) : void 0;
         | 
| 53823 53550 | 
             
              const fragment2 = groups["fragment"] !== void 0 ? percentDecode(groups["fragment"]) : void 0;
         | 
| 53824 | 
            -
              return { scheme, authority, path:  | 
| 53551 | 
            +
              return { scheme, authority, path: path2, query, fragment: fragment2 };
         | 
| 53825 53552 | 
             
            }
         | 
| 53826 53553 | 
             
            function parseAuthority(text) {
         | 
| 53827 53554 | 
             
              const match2 = AUTHORITY_RE.exec(text);
         | 
| @@ -53871,7 +53598,7 @@ function percentDecode(text) { | |
| 53871 53598 | 
             
                throw e5;
         | 
| 53872 53599 | 
             
              }
         | 
| 53873 53600 | 
             
            }
         | 
| 53874 | 
            -
            function encodeBaseUrl(scheme, authority,  | 
| 53601 | 
            +
            function encodeBaseUrl(scheme, authority, path2) {
         | 
| 53875 53602 | 
             
              if (authority === void 0) {
         | 
| 53876 53603 | 
             
                throw new LibsqlError(`URL with scheme ${JSON.stringify(scheme + ":")} requires authority (the "//" part)`, "URL_INVALID");
         | 
| 53877 53604 | 
             
              }
         | 
| @@ -53880,7 +53607,7 @@ function encodeBaseUrl(scheme, authority, path3) { | |
| 53880 53607 | 
             
              const portText = encodePort(authority.port);
         | 
| 53881 53608 | 
             
              const userinfoText = encodeUserinfo(authority.userinfo);
         | 
| 53882 53609 | 
             
              const authorityText = `//${userinfoText}${hostText}${portText}`;
         | 
| 53883 | 
            -
              let pathText =  | 
| 53610 | 
            +
              let pathText = path2.split("/").map(encodeURIComponent).join("/");
         | 
| 53884 53611 | 
             
              if (pathText !== "" && !pathText.startsWith("/")) {
         | 
| 53885 53612 | 
             
                pathText = "/" + pathText;
         | 
| 53886 53613 | 
             
              }
         | 
| @@ -54186,7 +53913,7 @@ function expandConfig(config, preferHttp) { | |
| 54186 53913 | 
             
                }
         | 
| 54187 53914 | 
             
              }
         | 
| 54188 53915 | 
             
              const connectionQueryParamsString = connectionQueryParams.length === 0 ? "" : `?${connectionQueryParams.join("&")}`;
         | 
| 54189 | 
            -
              const  | 
| 53916 | 
            +
              const path2 = uri.path + connectionQueryParamsString;
         | 
| 54190 53917 | 
             
              let scheme;
         | 
| 54191 53918 | 
             
              if (originalUriScheme === "libsql") {
         | 
| 54192 53919 | 
             
                if (tls2 === false) {
         | 
| @@ -54218,7 +53945,7 @@ function expandConfig(config, preferHttp) { | |
| 54218 53945 | 
             
                return {
         | 
| 54219 53946 | 
             
                  scheme: "file",
         | 
| 54220 53947 | 
             
                  tls: false,
         | 
| 54221 | 
            -
                  path:  | 
| 53948 | 
            +
                  path: path2,
         | 
| 54222 53949 | 
             
                  intMode,
         | 
| 54223 53950 | 
             
                  concurrency,
         | 
| 54224 53951 | 
             
                  syncUrl: config.syncUrl,
         | 
| @@ -54233,7 +53960,7 @@ function expandConfig(config, preferHttp) { | |
| 54233 53960 | 
             
                scheme,
         | 
| 54234 53961 | 
             
                tls: tls2,
         | 
| 54235 53962 | 
             
                authority: uri.authority,
         | 
| 54236 | 
            -
                path:  | 
| 53963 | 
            +
                path: path2,
         | 
| 54237 53964 | 
             
                authToken,
         | 
| 54238 53965 | 
             
                intMode,
         | 
| 54239 53966 | 
             
                concurrency,
         | 
| @@ -54287,7 +54014,7 @@ var require_dist2 = __commonJS({ | |
| 54287 54014 | 
             
                };
         | 
| 54288 54015 | 
             
                Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 54289 54016 | 
             
                exports.load = exports.currentTarget = void 0;
         | 
| 54290 | 
            -
                var  | 
| 54017 | 
            +
                var path2 = __importStar2(__require("path"));
         | 
| 54291 54018 | 
             
                var fs5 = __importStar2(__require("fs"));
         | 
| 54292 54019 | 
             
                function currentTarget() {
         | 
| 54293 54020 | 
             
                  let os3 = null;
         | 
| @@ -54353,7 +54080,7 @@ var require_dist2 = __commonJS({ | |
| 54353 54080 | 
             
                  return typeof header === "object" && !!header && "glibcVersionRuntime" in header;
         | 
| 54354 54081 | 
             
                }
         | 
| 54355 54082 | 
             
                function load(dirname) {
         | 
| 54356 | 
            -
                  const m7 =  | 
| 54083 | 
            +
                  const m7 = path2.join(dirname, "index.node");
         | 
| 54357 54084 | 
             
                  return fs5.existsSync(m7) ? __require(m7) : null;
         | 
| 54358 54085 | 
             
                }
         | 
| 54359 54086 | 
             
                exports.load = load;
         | 
| @@ -54382,9 +54109,9 @@ var require_filesystem = __commonJS({ | |
| 54382 54109 | 
             
                "use strict";
         | 
| 54383 54110 | 
             
                var fs5 = __require("fs");
         | 
| 54384 54111 | 
             
                var LDD_PATH = "/usr/bin/ldd";
         | 
| 54385 | 
            -
                var readFileSync2 = ( | 
| 54386 | 
            -
                var readFile3 = ( | 
| 54387 | 
            -
                  fs5.readFile( | 
| 54112 | 
            +
                var readFileSync2 = (path2) => fs5.readFileSync(path2, "utf-8");
         | 
| 54113 | 
            +
                var readFile3 = (path2) => new Promise((resolve, reject) => {
         | 
| 54114 | 
            +
                  fs5.readFile(path2, "utf-8", (err, data) => {
         | 
| 54388 54115 | 
             
                    if (err) {
         | 
| 54389 54116 | 
             
                      reject(err);
         | 
| 54390 54117 | 
             
                    } else {
         | 
| @@ -54694,7 +54421,7 @@ var require_libsql = __commonJS({ | |
| 54694 54421 | 
             
                   * @constructor
         | 
| 54695 54422 | 
             
                   * @param {string} path - Path to the database file.
         | 
| 54696 54423 | 
             
                   */
         | 
| 54697 | 
            -
                  constructor( | 
| 54424 | 
            +
                  constructor(path2, opts) {
         | 
| 54698 54425 | 
             
                    const encryptionCipher = opts?.encryptionCipher ?? "aes256cbc";
         | 
| 54699 54426 | 
             
                    if (opts && opts.syncUrl) {
         | 
| 54700 54427 | 
             
                      var authToken = "";
         | 
| @@ -54707,13 +54434,13 @@ var require_libsql = __commonJS({ | |
| 54707 54434 | 
             
                      const encryptionKey = opts?.encryptionKey ?? "";
         | 
| 54708 54435 | 
             
                      const syncPeriod = opts?.syncPeriod ?? 0;
         | 
| 54709 54436 | 
             
                      const readYourWrites = opts?.readYourWrites ?? true;
         | 
| 54710 | 
            -
                      this.db = databaseOpenWithRpcSync( | 
| 54437 | 
            +
                      this.db = databaseOpenWithRpcSync(path2, opts.syncUrl, authToken, encryptionCipher, encryptionKey, syncPeriod, readYourWrites);
         | 
| 54711 54438 | 
             
                    } else {
         | 
| 54712 54439 | 
             
                      const authToken2 = opts?.authToken ?? "";
         | 
| 54713 54440 | 
             
                      const encryptionKey = opts?.encryptionKey ?? "";
         | 
| 54714 | 
            -
                      this.db = databaseOpen( | 
| 54441 | 
            +
                      this.db = databaseOpen(path2, authToken2, encryptionCipher, encryptionKey);
         | 
| 54715 54442 | 
             
                    }
         | 
| 54716 | 
            -
                    this.memory =  | 
| 54443 | 
            +
                    this.memory = path2 === ":memory:";
         | 
| 54717 54444 | 
             
                    this.readonly = false;
         | 
| 54718 54445 | 
             
                    this.name = "";
         | 
| 54719 54446 | 
             
                    this.open = true;
         | 
| @@ -54992,9 +54719,9 @@ function _createClient(config) { | |
| 54992 54719 | 
             
              if (isInMemory && config.syncUrl) {
         | 
| 54993 54720 | 
             
                throw new LibsqlError(`Embedded replica must use file for local db but URI with in-memory mode were provided instead: ${config.path}`, "URL_INVALID");
         | 
| 54994 54721 | 
             
              }
         | 
| 54995 | 
            -
              let  | 
| 54722 | 
            +
              let path2 = config.path;
         | 
| 54996 54723 | 
             
              if (isInMemory) {
         | 
| 54997 | 
            -
                 | 
| 54724 | 
            +
                path2 = `${config.scheme}:${config.path}`;
         | 
| 54998 54725 | 
             
              }
         | 
| 54999 54726 | 
             
              const options = {
         | 
| 55000 54727 | 
             
                authToken: config.authToken,
         | 
| @@ -55002,9 +54729,9 @@ function _createClient(config) { | |
| 55002 54729 | 
             
                syncUrl: config.syncUrl,
         | 
| 55003 54730 | 
             
                syncPeriod: config.syncInterval
         | 
| 55004 54731 | 
             
              };
         | 
| 55005 | 
            -
              const db2 = new import_libsql.default( | 
| 54732 | 
            +
              const db2 = new import_libsql.default(path2, options);
         | 
| 55006 54733 | 
             
              executeStmt(db2, "SELECT 1 AS checkThatTheDatabaseCanBeOpened", config.intMode);
         | 
| 55007 | 
            -
              return new Sqlite3Client( | 
| 54734 | 
            +
              return new Sqlite3Client(path2, options, db2, config.intMode);
         | 
| 55008 54735 | 
             
            }
         | 
| 55009 54736 | 
             
            function executeStmt(db2, stmt, intMode) {
         | 
| 55010 54737 | 
             
              let sql3;
         | 
| @@ -55143,7 +54870,7 @@ var init_sqlite3 = __esm({ | |
| 55143 54870 | 
             
                init_api();
         | 
| 55144 54871 | 
             
                Sqlite3Client = class {
         | 
| 55145 54872 | 
             
                  /** @private */
         | 
| 55146 | 
            -
                  constructor( | 
| 54873 | 
            +
                  constructor(path2, options, db2, intMode) {
         | 
| 55147 54874 | 
             
                    __privateAdd(this, _Sqlite3Client_instances);
         | 
| 55148 54875 | 
             
                    __privateAdd(this, _path);
         | 
| 55149 54876 | 
             
                    __privateAdd(this, _options);
         | 
| @@ -55151,7 +54878,7 @@ var init_sqlite3 = __esm({ | |
| 55151 54878 | 
             
                    __privateAdd(this, _intMode);
         | 
| 55152 54879 | 
             
                    __publicField(this, "closed");
         | 
| 55153 54880 | 
             
                    __publicField(this, "protocol");
         | 
| 55154 | 
            -
                    __privateSet(this, _path,  | 
| 54881 | 
            +
                    __privateSet(this, _path, path2);
         | 
| 55155 54882 | 
             
                    __privateSet(this, _options, options);
         | 
| 55156 54883 | 
             
                    __privateSet(this, _db, db2);
         | 
| 55157 54884 | 
             
                    __privateSet(this, _intMode, intMode);
         | 
| @@ -55451,7 +55178,7 @@ var require_node_gyp_build = __commonJS({ | |
| 55451 55178 | 
             
              "../node_modules/.pnpm/node-gyp-build@4.8.1/node_modules/node-gyp-build/node-gyp-build.js"(exports, module) {
         | 
| 55452 55179 | 
             
                "use strict";
         | 
| 55453 55180 | 
             
                var fs5 = __require("fs");
         | 
| 55454 | 
            -
                var  | 
| 55181 | 
            +
                var path2 = __require("path");
         | 
| 55455 55182 | 
             
                var os3 = __require("os");
         | 
| 55456 55183 | 
             
                var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
         | 
| 55457 55184 | 
             
                var vars = process.config && process.config.variables || {};
         | 
| @@ -55468,21 +55195,21 @@ var require_node_gyp_build = __commonJS({ | |
| 55468 55195 | 
             
                  return runtimeRequire(load.resolve(dir));
         | 
| 55469 55196 | 
             
                }
         | 
| 55470 55197 | 
             
                load.resolve = load.path = function(dir) {
         | 
| 55471 | 
            -
                  dir =  | 
| 55198 | 
            +
                  dir = path2.resolve(dir || ".");
         | 
| 55472 55199 | 
             
                  try {
         | 
| 55473 | 
            -
                    var name2 = runtimeRequire( | 
| 55200 | 
            +
                    var name2 = runtimeRequire(path2.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_");
         | 
| 55474 55201 | 
             
                    if (process.env[name2 + "_PREBUILD"]) dir = process.env[name2 + "_PREBUILD"];
         | 
| 55475 55202 | 
             
                  } catch (err) {
         | 
| 55476 55203 | 
             
                  }
         | 
| 55477 55204 | 
             
                  if (!prebuildsOnly) {
         | 
| 55478 | 
            -
                    var release2 = getFirst( | 
| 55205 | 
            +
                    var release2 = getFirst(path2.join(dir, "build/Release"), matchBuild);
         | 
| 55479 55206 | 
             
                    if (release2) return release2;
         | 
| 55480 | 
            -
                    var debug = getFirst( | 
| 55207 | 
            +
                    var debug = getFirst(path2.join(dir, "build/Debug"), matchBuild);
         | 
| 55481 55208 | 
             
                    if (debug) return debug;
         | 
| 55482 55209 | 
             
                  }
         | 
| 55483 55210 | 
             
                  var prebuild = resolve(dir);
         | 
| 55484 55211 | 
             
                  if (prebuild) return prebuild;
         | 
| 55485 | 
            -
                  var nearby = resolve( | 
| 55212 | 
            +
                  var nearby = resolve(path2.dirname(process.execPath));
         | 
| 55486 55213 | 
             
                  if (nearby) return nearby;
         | 
| 55487 55214 | 
             
                  var target = [
         | 
| 55488 55215 | 
             
                    "platform=" + platform2,
         | 
| @@ -55499,14 +55226,14 @@ var require_node_gyp_build = __commonJS({ | |
| 55499 55226 | 
             
                  ].filter(Boolean).join(" ");
         | 
| 55500 55227 | 
             
                  throw new Error("No native build was found for " + target + "\n    loaded from: " + dir + "\n");
         | 
| 55501 55228 | 
             
                  function resolve(dir2) {
         | 
| 55502 | 
            -
                    var tuples2 = readdirSync( | 
| 55229 | 
            +
                    var tuples2 = readdirSync(path2.join(dir2, "prebuilds")).map(parseTuple);
         | 
| 55503 55230 | 
             
                    var tuple = tuples2.filter(matchTuple(platform2, arch)).sort(compareTuples)[0];
         | 
| 55504 55231 | 
             
                    if (!tuple) return;
         | 
| 55505 | 
            -
                    var prebuilds =  | 
| 55232 | 
            +
                    var prebuilds = path2.join(dir2, "prebuilds", tuple.name);
         | 
| 55506 55233 | 
             
                    var parsed = readdirSync(prebuilds).map(parseTags);
         | 
| 55507 55234 | 
             
                    var candidates = parsed.filter(matchTags(runtime, abi));
         | 
| 55508 55235 | 
             
                    var winner = candidates.sort(compareTags(runtime))[0];
         | 
| 55509 | 
            -
                    if (winner) return  | 
| 55236 | 
            +
                    if (winner) return path2.join(prebuilds, winner.file);
         | 
| 55510 55237 | 
             
                  }
         | 
| 55511 55238 | 
             
                };
         | 
| 55512 55239 | 
             
                function readdirSync(dir) {
         | 
| @@ -55518,7 +55245,7 @@ var require_node_gyp_build = __commonJS({ | |
| 55518 55245 | 
             
                }
         | 
| 55519 55246 | 
             
                function getFirst(dir, filter2) {
         | 
| 55520 55247 | 
             
                  var files = readdirSync(dir).filter(filter2);
         | 
| 55521 | 
            -
                  return files[0] &&  | 
| 55248 | 
            +
                  return files[0] && path2.join(dir, files[0]);
         | 
| 55522 55249 | 
             
                }
         | 
| 55523 55250 | 
             
                function matchBuild(name2) {
         | 
| 55524 55251 | 
             
                  return /\.node$/.test(name2);
         | 
| @@ -64180,7 +63907,9 @@ function drizzle6(client, config = {}) { | |
| 64180 63907 | 
             
                };
         | 
| 64181 63908 | 
             
              }
         | 
| 64182 63909 | 
             
              const session = new LibSQLSession(client, dialect7, schema4, { logger: logger2 }, void 0);
         | 
| 64183 | 
            -
               | 
| 63910 | 
            +
              const db2 = new LibSQLDatabase("async", dialect7, session, schema4);
         | 
| 63911 | 
            +
              db2.$client = client;
         | 
| 63912 | 
            +
              return db2;
         | 
| 64184 63913 | 
             
            }
         | 
| 64185 63914 | 
             
            var _a251, _b182, LibSQLDatabase;
         | 
| 64186 63915 | 
             
            var init_driver6 = __esm({
         | 
| @@ -78793,12 +78522,12 @@ var require_query4 = __commonJS({ | |
| 78793 78522 | 
             
                    this._fields.push([]);
         | 
| 78794 78523 | 
             
                    return this.readField;
         | 
| 78795 78524 | 
             
                  }
         | 
| 78796 | 
            -
                  _streamLocalInfile(connection2,  | 
| 78525 | 
            +
                  _streamLocalInfile(connection2, path2) {
         | 
| 78797 78526 | 
             
                    if (this._streamFactory) {
         | 
| 78798 | 
            -
                      this._localStream = this._streamFactory( | 
| 78527 | 
            +
                      this._localStream = this._streamFactory(path2);
         | 
| 78799 78528 | 
             
                    } else {
         | 
| 78800 78529 | 
             
                      this._localStreamError = new Error(
         | 
| 78801 | 
            -
                        `As a result of LOCAL INFILE command server wants to read ${ | 
| 78530 | 
            +
                        `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.`
         | 
| 78802 78531 | 
             
                      );
         | 
| 78803 78532 | 
             
                      connection2.writePacket(EmptyPacket);
         | 
| 78804 78533 | 
             
                      return this.infileOk;
         | 
| @@ -85654,6 +85383,7 @@ var init_db3 = __esm({ | |
| 85654 85383 | 
             
                "use strict";
         | 
| 85655 85384 | 
             
                init_entity();
         | 
| 85656 85385 | 
             
                init_selection_proxy();
         | 
| 85386 | 
            +
                init_sql();
         | 
| 85657 85387 | 
             
                init_subquery();
         | 
| 85658 85388 | 
             
                init_count3();
         | 
| 85659 85389 | 
             
                init_query_builders3();
         | 
| @@ -85864,7 +85594,7 @@ var init_db3 = __esm({ | |
| 85864 85594 | 
             
                    return new MySqlDeleteBase(table4, this.session, this.dialect);
         | 
| 85865 85595 | 
             
                  }
         | 
| 85866 85596 | 
             
                  execute(query) {
         | 
| 85867 | 
            -
                    return this.session.execute(query.getSQL());
         | 
| 85597 | 
            +
                    return this.session.execute(typeof query === "string" ? sql.raw(query) : query.getSQL());
         | 
| 85868 85598 | 
             
                  }
         | 
| 85869 85599 | 
             
                  transaction(transaction, config) {
         | 
| 85870 85600 | 
             
                    return this.session.transaction(transaction, config);
         | 
| @@ -86190,9 +85920,7 @@ function drizzle7(client, config = {}) { | |
| 86190 85920 | 
             
              } else if (config.logger !== false) {
         | 
| 86191 85921 | 
             
                logger2 = config.logger;
         | 
| 86192 85922 | 
             
              }
         | 
| 86193 | 
            -
               | 
| 86194 | 
            -
                client = client.promise();
         | 
| 86195 | 
            -
              }
         | 
| 85923 | 
            +
              const clientForInstance = isCallbackClient(client) ? client.promise() : client;
         | 
| 86196 85924 | 
             
              let schema4;
         | 
| 86197 85925 | 
             
              if (config.schema) {
         | 
| 86198 85926 | 
             
                if (config.mode === void 0) {
         | 
| @@ -86211,9 +85939,11 @@ function drizzle7(client, config = {}) { | |
| 86211 85939 | 
             
                };
         | 
| 86212 85940 | 
             
              }
         | 
| 86213 85941 | 
             
              const mode = config.mode ?? "default";
         | 
| 86214 | 
            -
              const driver2 = new MySql2Driver( | 
| 85942 | 
            +
              const driver2 = new MySql2Driver(clientForInstance, dialect7, { logger: logger2 });
         | 
| 86215 85943 | 
             
              const session = driver2.createSession(schema4, mode);
         | 
| 86216 | 
            -
               | 
| 85944 | 
            +
              const db2 = new MySql2Database(dialect7, session, schema4, mode);
         | 
| 85945 | 
            +
              db2.$client = client;
         | 
| 85946 | 
            +
              return db2;
         | 
| 86217 85947 | 
             
            }
         | 
| 86218 85948 | 
             
            function isCallbackClient(client) {
         | 
| 86219 85949 | 
             
              return typeof client.promise === "function";
         | 
| @@ -91782,11 +91512,13 @@ function drizzle8(client, config = {}) { | |
| 91782 91512 | 
             
              }
         | 
| 91783 91513 | 
             
              const driver2 = new NeonHttpDriver(client, dialect7, { logger: logger2 });
         | 
| 91784 91514 | 
             
              const session = driver2.createSession(schema4);
         | 
| 91785 | 
            -
               | 
| 91515 | 
            +
              const db2 = new NeonHttpDatabase(
         | 
| 91786 91516 | 
             
                dialect7,
         | 
| 91787 91517 | 
             
                session,
         | 
| 91788 91518 | 
             
                schema4
         | 
| 91789 91519 | 
             
              );
         | 
| 91520 | 
            +
              db2.$client = client;
         | 
| 91521 | 
            +
              return db2;
         | 
| 91790 91522 | 
             
            }
         | 
| 91791 91523 | 
             
            var _a288, NeonHttpDriver, _a289, _b204, NeonHttpDatabase;
         | 
| 91792 91524 | 
             
            var init_driver8 = __esm({
         | 
| @@ -92000,7 +91732,9 @@ function drizzle9(client, config = {}) { | |
| 92000 91732 | 
             
              }
         | 
| 92001 91733 | 
             
              const driver2 = new NeonDriver(client, dialect7, { logger: logger2 });
         | 
| 92002 91734 | 
             
              const session = driver2.createSession(schema4);
         | 
| 92003 | 
            -
               | 
| 91735 | 
            +
              const db2 = new NeonDatabase(dialect7, session, schema4);
         | 
| 91736 | 
            +
              db2.$client = client;
         | 
| 91737 | 
            +
              return db2;
         | 
| 92004 91738 | 
             
            }
         | 
| 92005 91739 | 
             
            var _a293, NeonDriver, _a294, _b208, NeonDatabase;
         | 
| 92006 91740 | 
             
            var init_driver9 = __esm({
         | 
| @@ -92630,7 +92364,9 @@ Please make the necessary changes now to prevent any runtime errors in the futur | |
| 92630 92364 | 
             
                };
         | 
| 92631 92365 | 
             
              }
         | 
| 92632 92366 | 
             
              const session = new PlanetscaleSession(client, dialect7, void 0, schema4, { logger: logger2 });
         | 
| 92633 | 
            -
               | 
| 92367 | 
            +
              const db2 = new PlanetScaleDatabase(dialect7, session, schema4, "planetscale");
         | 
| 92368 | 
            +
              db2.$client = client;
         | 
| 92369 | 
            +
              return db2;
         | 
| 92634 92370 | 
             
            }
         | 
| 92635 92371 | 
             
            var _a298, _b212, PlanetScaleDatabase;
         | 
| 92636 92372 | 
             
            var init_driver10 = __esm({
         | 
| @@ -94212,13 +93948,13 @@ function Subscribe(postgres2, options) { | |
| 94212 93948 | 
             
                  }
         | 
| 94213 93949 | 
             
                }
         | 
| 94214 93950 | 
             
                function handle(a7, b8) {
         | 
| 94215 | 
            -
                  const  | 
| 93951 | 
            +
                  const path2 = b8.relation.schema + "." + b8.relation.table;
         | 
| 94216 93952 | 
             
                  call("*", a7, b8);
         | 
| 94217 | 
            -
                  call("*:" +  | 
| 94218 | 
            -
                  b8.relation.keys.length && call("*:" +  | 
| 93953 | 
            +
                  call("*:" + path2, a7, b8);
         | 
| 93954 | 
            +
                  b8.relation.keys.length && call("*:" + path2 + "=" + b8.relation.keys.map((x6) => a7[x6.name]), a7, b8);
         | 
| 94219 93955 | 
             
                  call(b8.command, a7, b8);
         | 
| 94220 | 
            -
                  call(b8.command + ":" +  | 
| 94221 | 
            -
                  b8.relation.keys.length && call(b8.command + ":" +  | 
| 93956 | 
            +
                  call(b8.command + ":" + path2, a7, b8);
         | 
| 93957 | 
            +
                  b8.relation.keys.length && call(b8.command + ":" + path2 + "=" + b8.relation.keys.map((x6) => a7[x6.name]), a7, b8);
         | 
| 94222 93958 | 
             
                }
         | 
| 94223 93959 | 
             
                function pong() {
         | 
| 94224 93960 | 
             
                  const x6 = Buffer.alloc(34);
         | 
| @@ -94331,8 +94067,8 @@ function parseEvent(x5) { | |
| 94331 94067 | 
             
              const xs2 = x5.match(/^(\*|insert|update|delete)?:?([^.]+?\.?[^=]+)?=?(.+)?/i) || [];
         | 
| 94332 94068 | 
             
              if (!xs2)
         | 
| 94333 94069 | 
             
                throw new Error("Malformed subscribe pattern: " + x5);
         | 
| 94334 | 
            -
              const [, command,  | 
| 94335 | 
            -
              return (command || "*") + ( | 
| 94070 | 
            +
              const [, command, path2, key] = xs2;
         | 
| 94071 | 
            +
              return (command || "*") + (path2 ? ":" + (path2.indexOf(".") === -1 ? "public." + path2 : path2) : "") + (key ? "=" + key : "");
         | 
| 94336 94072 | 
             
            }
         | 
| 94337 94073 | 
             
            var noop2;
         | 
| 94338 94074 | 
             
            var init_subscribe = __esm({
         | 
| @@ -94476,10 +94212,10 @@ function Postgres(a7, b8) { | |
| 94476 94212 | 
             
                  });
         | 
| 94477 94213 | 
             
                  return query;
         | 
| 94478 94214 | 
             
                }
         | 
| 94479 | 
            -
                function file( | 
| 94215 | 
            +
                function file(path2, args = [], options2 = {}) {
         | 
| 94480 94216 | 
             
                  arguments.length === 2 && !Array.isArray(args) && (options2 = args, args = []);
         | 
| 94481 94217 | 
             
                  const query = new Query([], args, (query2) => {
         | 
| 94482 | 
            -
                    fs2.readFile( | 
| 94218 | 
            +
                    fs2.readFile(path2, "utf8", (err, string2) => {
         | 
| 94483 94219 | 
             
                      if (err)
         | 
| 94484 94220 | 
             
                        return query2.reject(err);
         | 
| 94485 94221 | 
             
                      query2.strings = [string2];
         | 
| @@ -94847,7 +94583,7 @@ var init_session14 = __esm({ | |
| 94847 94583 | 
             
                init_tracing();
         | 
| 94848 94584 | 
             
                init_utils2();
         | 
| 94849 94585 | 
             
                PostgresJsPreparedQuery = class extends (_b213 = PgPreparedQuery, _a299 = entityKind, _b213) {
         | 
| 94850 | 
            -
                  constructor(client, queryString, params, logger2, fields, _isResponseInArrayMode, customResultMapper) {
         | 
| 94586 | 
            +
                  constructor(client, queryString, params, logger2, fields, _isResponseInArrayMode, customResultMapper, isOptimized) {
         | 
| 94851 94587 | 
             
                    super({ sql: queryString, params });
         | 
| 94852 94588 | 
             
                    this.client = client;
         | 
| 94853 94589 | 
             
                    this.queryString = queryString;
         | 
| @@ -94856,6 +94592,7 @@ var init_session14 = __esm({ | |
| 94856 94592 | 
             
                    this.fields = fields;
         | 
| 94857 94593 | 
             
                    this._isResponseInArrayMode = _isResponseInArrayMode;
         | 
| 94858 94594 | 
             
                    this.customResultMapper = customResultMapper;
         | 
| 94595 | 
            +
                    this.isOptimized = isOptimized;
         | 
| 94859 94596 | 
             
                  }
         | 
| 94860 94597 | 
             
                  async execute(placeholderValues = {}) {
         | 
| 94861 94598 | 
             
                    return tracer.startActiveSpan("drizzle.execute", async (span) => {
         | 
| @@ -94865,7 +94602,7 @@ var init_session14 = __esm({ | |
| 94865 94602 | 
             
                        "drizzle.query.params": JSON.stringify(params)
         | 
| 94866 94603 | 
             
                      });
         | 
| 94867 94604 | 
             
                      this.logger.logQuery(this.queryString, params);
         | 
| 94868 | 
            -
                      const { fields, queryString: query, client, joinsNotNullableMap, customResultMapper } = this;
         | 
| 94605 | 
            +
                      const { fields, queryString: query, client, joinsNotNullableMap, customResultMapper, isOptimized } = this;
         | 
| 94869 94606 | 
             
                      if (!fields && !customResultMapper) {
         | 
| 94870 94607 | 
             
                        return tracer.startActiveSpan("drizzle.driver.execute", () => {
         | 
| 94871 94608 | 
             
                          return client.unsafe(query, params);
         | 
| @@ -94879,7 +94616,7 @@ var init_session14 = __esm({ | |
| 94879 94616 | 
             
                        return client.unsafe(query, params).values();
         | 
| 94880 94617 | 
             
                      });
         | 
| 94881 94618 | 
             
                      return tracer.startActiveSpan("drizzle.mapResponse", () => {
         | 
| 94882 | 
            -
                        return customResultMapper ? customResultMapper(rows) : rows.map((row) => mapResultRow(fields, row, joinsNotNullableMap));
         | 
| 94619 | 
            +
                        return isOptimized ? rows.flat(1) : customResultMapper ? customResultMapper(rows) : rows.map((row) => mapResultRow(fields, row, joinsNotNullableMap));
         | 
| 94883 94620 | 
             
                      });
         | 
| 94884 94621 | 
             
                    });
         | 
| 94885 94622 | 
             
                  }
         | 
| @@ -94915,7 +94652,7 @@ var init_session14 = __esm({ | |
| 94915 94652 | 
             
                    this.options = options;
         | 
| 94916 94653 | 
             
                    this.logger = options.logger ?? new NoopLogger();
         | 
| 94917 94654 | 
             
                  }
         | 
| 94918 | 
            -
                  prepareQuery(query, fields, name2, isResponseInArrayMode, customResultMapper) {
         | 
| 94655 | 
            +
                  prepareQuery(query, fields, name2, isResponseInArrayMode, customResultMapper, isOptimized) {
         | 
| 94919 94656 | 
             
                    return new PostgresJsPreparedQuery(
         | 
| 94920 94657 | 
             
                      this.client,
         | 
| 94921 94658 | 
             
                      query.sql,
         | 
| @@ -94923,7 +94660,8 @@ var init_session14 = __esm({ | |
| 94923 94660 | 
             
                      this.logger,
         | 
| 94924 94661 | 
             
                      fields,
         | 
| 94925 94662 | 
             
                      isResponseInArrayMode,
         | 
| 94926 | 
            -
                      customResultMapper
         | 
| 94663 | 
            +
                      customResultMapper,
         | 
| 94664 | 
            +
                      isOptimized
         | 
| 94927 94665 | 
             
                    );
         | 
| 94928 94666 | 
             
                  }
         | 
| 94929 94667 | 
             
                  query(query, params) {
         | 
| @@ -95003,7 +94741,9 @@ function drizzle11(client, config = {}) { | |
| 95003 94741 | 
             
                };
         | 
| 95004 94742 | 
             
              }
         | 
| 95005 94743 | 
             
              const session = new PostgresJsSession(client, dialect7, schema4, { logger: logger2 });
         | 
| 95006 | 
            -
               | 
| 94744 | 
            +
              const db2 = new PostgresJsDatabase(dialect7, session, schema4);
         | 
| 94745 | 
            +
              db2.$client = client;
         | 
| 94746 | 
            +
              return db2;
         | 
| 95007 94747 | 
             
            }
         | 
| 95008 94748 | 
             
            var _a302, _b216, PostgresJsDatabase;
         | 
| 95009 94749 | 
             
            var init_driver11 = __esm({
         | 
| @@ -95573,7 +95313,9 @@ function drizzle12(client, config = {}) { | |
| 95573 95313 | 
             
                };
         | 
| 95574 95314 | 
             
              }
         | 
| 95575 95315 | 
             
              const session = new TiDBServerlessSession(client, dialect7, void 0, schema4, { logger: logger2 });
         | 
| 95576 | 
            -
               | 
| 95316 | 
            +
              const db2 = new TiDBServerlessDatabase(dialect7, session, schema4, "default");
         | 
| 95317 | 
            +
              db2.$client = client;
         | 
| 95318 | 
            +
              return db2;
         | 
| 95577 95319 | 
             
            }
         | 
| 95578 95320 | 
             
            var _a306, _b220, TiDBServerlessDatabase;
         | 
| 95579 95321 | 
             
            var init_driver12 = __esm({
         | 
| @@ -104765,7 +104507,9 @@ function drizzle13(client, config = {}) { | |
| 104765 104507 | 
             
              }
         | 
| 104766 104508 | 
             
              const driver2 = new VercelPgDriver(client, dialect7, { logger: logger2 });
         | 
| 104767 104509 | 
             
              const session = driver2.createSession(schema4);
         | 
| 104768 | 
            -
               | 
| 104510 | 
            +
              const db2 = new VercelPgDatabase(dialect7, session, schema4);
         | 
| 104511 | 
            +
              db2.$client = client;
         | 
| 104512 | 
            +
              return db2;
         | 
| 104769 104513 | 
             
            }
         | 
| 104770 104514 | 
             
            var _a310, VercelPgDriver, _a311, _b224, VercelPgDatabase;
         | 
| 104771 104515 | 
             
            var init_driver13 = __esm({
         | 
| @@ -104825,132 +104569,219 @@ var init_vercel_postgres = __esm({ | |
| 104825 104569 | 
             
            function assertUnreachable2(_3) {
         | 
| 104826 104570 | 
             
              throw new Error("Didn't expect to get here");
         | 
| 104827 104571 | 
             
            }
         | 
| 104828 | 
            -
            async function drizzle14(client, params) {
         | 
| 104829 | 
            -
              const { connection: connection2, ws: ws3, ...drizzleConfig } = params;
         | 
| 104572 | 
            +
            async function drizzle14(client, ...params) {
         | 
| 104830 104573 | 
             
              switch (client) {
         | 
| 104831 104574 | 
             
                case "node-postgres": {
         | 
| 104832 | 
            -
                  const  | 
| 104575 | 
            +
                  const defpg = await Promise.resolve().then(() => __toESM(require_lib3(), 1)).catch(() => importError("pg"));
         | 
| 104833 104576 | 
             
                  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_node_postgres(), node_postgres_exports));
         | 
| 104834 | 
            -
                   | 
| 104835 | 
            -
             | 
| 104836 | 
            -
             | 
| 104577 | 
            +
                  if (typeof params[0] === "object") {
         | 
| 104578 | 
            +
                    const { connection: connection2, ...drizzleConfig } = params[0];
         | 
| 104579 | 
            +
                    const instance2 = typeof connection2 === "string" ? new defpg.default.Pool({
         | 
| 104580 | 
            +
                      connectionString: connection2
         | 
| 104581 | 
            +
                    }) : new defpg.default.Pool(connection2);
         | 
| 104582 | 
            +
                    const db22 = drizzle22(instance2, drizzleConfig);
         | 
| 104583 | 
            +
                    return db22;
         | 
| 104584 | 
            +
                  }
         | 
| 104585 | 
            +
                  const instance = typeof params[0] === "string" ? new defpg.default.Pool({
         | 
| 104586 | 
            +
                    connectionString: params[0]
         | 
| 104587 | 
            +
                  }) : new defpg.default.Pool(params[0]);
         | 
| 104588 | 
            +
                  const db2 = drizzle22(instance);
         | 
| 104837 104589 | 
             
                  return db2;
         | 
| 104838 104590 | 
             
                }
         | 
| 104839 104591 | 
             
                case "aws-data-api-pg": {
         | 
| 104592 | 
            +
                  const { connection: connection2, ...drizzleConfig } = params[0];
         | 
| 104593 | 
            +
                  const { resourceArn, database, secretArn, ...rdsConfig } = connection2;
         | 
| 104840 104594 | 
             
                  const { RDSDataClient: RDSDataClient2 } = await Promise.resolve().then(() => (init_dist_es54(), dist_es_exports14)).catch(
         | 
| 104841 104595 | 
             
                    () => importError("@aws-sdk/client-rds-data")
         | 
| 104842 104596 | 
             
                  );
         | 
| 104843 104597 | 
             
                  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_pg(), pg_exports));
         | 
| 104844 | 
            -
                  const instance = new RDSDataClient2( | 
| 104845 | 
            -
                  const db2 = drizzle22(instance, drizzleConfig);
         | 
| 104846 | 
            -
                  db2.$client = instance;
         | 
| 104598 | 
            +
                  const instance = new RDSDataClient2(rdsConfig);
         | 
| 104599 | 
            +
                  const db2 = drizzle22(instance, { resourceArn, database, secretArn, ...drizzleConfig });
         | 
| 104847 104600 | 
             
                  return db2;
         | 
| 104848 104601 | 
             
                }
         | 
| 104849 104602 | 
             
                case "better-sqlite3": {
         | 
| 104850 104603 | 
             
                  const { default: Client4 } = await Promise.resolve().then(() => __toESM(require_lib4(), 1)).catch(() => importError("better-sqlite3"));
         | 
| 104851 104604 | 
             
                  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_better_sqlite3(), better_sqlite3_exports));
         | 
| 104852 | 
            -
                  if (typeof  | 
| 104853 | 
            -
                    const {  | 
| 104854 | 
            -
                     | 
| 104605 | 
            +
                  if (typeof params[0] === "object") {
         | 
| 104606 | 
            +
                    const { connection: connection2, ...drizzleConfig } = params[0];
         | 
| 104607 | 
            +
                    if (typeof connection2 === "object") {
         | 
| 104608 | 
            +
                      const { source, ...options } = connection2;
         | 
| 104609 | 
            +
                      const instance3 = new Client4(source, options);
         | 
| 104610 | 
            +
                      const db3 = drizzle22(instance3, drizzleConfig);
         | 
| 104611 | 
            +
                      return db3;
         | 
| 104612 | 
            +
                    }
         | 
| 104613 | 
            +
                    const instance2 = new Client4(connection2);
         | 
| 104855 104614 | 
             
                    const db22 = drizzle22(instance2, drizzleConfig);
         | 
| 104856 | 
            -
                    db22.$client = instance2;
         | 
| 104857 104615 | 
             
                    return db22;
         | 
| 104858 104616 | 
             
                  }
         | 
| 104859 | 
            -
                  const instance = new Client4( | 
| 104860 | 
            -
                  const db2 = drizzle22(instance | 
| 104861 | 
            -
                  db2.$client = instance;
         | 
| 104617 | 
            +
                  const instance = new Client4(params[0]);
         | 
| 104618 | 
            +
                  const db2 = drizzle22(instance);
         | 
| 104862 104619 | 
             
                  return db2;
         | 
| 104863 104620 | 
             
                }
         | 
| 104864 104621 | 
             
                case "bun:sqlite": {
         | 
| 104865 | 
            -
                  const { Database: Client4 } = await import("bun:sqlite").catch(() =>  | 
| 104622 | 
            +
                  const { Database: Client4 } = await import("bun:sqlite").catch(() => {
         | 
| 104623 | 
            +
                    throw new Error(`Please use bun to use 'bun:sqlite' for Drizzle ORM to connect to database`);
         | 
| 104624 | 
            +
                  });
         | 
| 104866 104625 | 
             
                  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_bun_sqlite(), bun_sqlite_exports));
         | 
| 104867 | 
            -
                  if (typeof  | 
| 104868 | 
            -
                    const {  | 
| 104869 | 
            -
                     | 
| 104626 | 
            +
                  if (typeof params[0] === "object") {
         | 
| 104627 | 
            +
                    const { connection: connection2, ...drizzleConfig } = params[0];
         | 
| 104628 | 
            +
                    if (typeof connection2 === "object") {
         | 
| 104629 | 
            +
                      const { source, ...opts } = connection2;
         | 
| 104630 | 
            +
                      const options = Object.values(opts).filter((v8) => v8 !== void 0).length ? opts : void 0;
         | 
| 104631 | 
            +
                      const instance3 = new Client4(source, options);
         | 
| 104632 | 
            +
                      const db3 = drizzle22(instance3, drizzleConfig);
         | 
| 104633 | 
            +
                      return db3;
         | 
| 104634 | 
            +
                    }
         | 
| 104635 | 
            +
                    const instance2 = new Client4(connection2);
         | 
| 104870 104636 | 
             
                    const db22 = drizzle22(instance2, drizzleConfig);
         | 
| 104871 | 
            -
                    db22.$client = instance2;
         | 
| 104872 104637 | 
             
                    return db22;
         | 
| 104873 104638 | 
             
                  }
         | 
| 104874 | 
            -
                  const instance = new Client4( | 
| 104875 | 
            -
                  const db2 = drizzle22(instance | 
| 104876 | 
            -
                  db2.$client = instance;
         | 
| 104639 | 
            +
                  const instance = new Client4(params[0]);
         | 
| 104640 | 
            +
                  const db2 = drizzle22(instance);
         | 
| 104877 104641 | 
             
                  return db2;
         | 
| 104878 104642 | 
             
                }
         | 
| 104879 104643 | 
             
                case "d1": {
         | 
| 104644 | 
            +
                  const { connection: connection2, ...drizzleConfig } = params[0];
         | 
| 104880 104645 | 
             
                  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_d1(), d1_exports));
         | 
| 104881 104646 | 
             
                  const db2 = drizzle22(connection2, drizzleConfig);
         | 
| 104882 | 
            -
                  db2.$client = connection2;
         | 
| 104883 104647 | 
             
                  return db2;
         | 
| 104884 104648 | 
             
                }
         | 
| 104885 | 
            -
                case "libsql": | 
| 104649 | 
            +
                case "libsql":
         | 
| 104650 | 
            +
                case "turso": {
         | 
| 104886 104651 | 
             
                  const { createClient: createClient3 } = await Promise.resolve().then(() => (init_node3(), node_exports)).catch(() => importError("@libsql/client"));
         | 
| 104887 104652 | 
             
                  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_libsql(), libsql_exports));
         | 
| 104888 | 
            -
                   | 
| 104653 | 
            +
                  if (typeof params[0] === "string") {
         | 
| 104654 | 
            +
                    const instance2 = createClient3({
         | 
| 104655 | 
            +
                      url: params[0]
         | 
| 104656 | 
            +
                    });
         | 
| 104657 | 
            +
                    const db22 = drizzle22(instance2);
         | 
| 104658 | 
            +
                    return db22;
         | 
| 104659 | 
            +
                  }
         | 
| 104660 | 
            +
                  const { connection: connection2, ...drizzleConfig } = params[0];
         | 
| 104661 | 
            +
                  const instance = typeof connection2 === "string" ? createClient3({ url: connection2 }) : createClient3(connection2);
         | 
| 104889 104662 | 
             
                  const db2 = drizzle22(instance, drizzleConfig);
         | 
| 104890 | 
            -
                  db2.$client = instance;
         | 
| 104891 104663 | 
             
                  return db2;
         | 
| 104892 104664 | 
             
                }
         | 
| 104893 104665 | 
             
                case "mysql2": {
         | 
| 104894 | 
            -
                  const { createPool: createPool2 } = await Promise.resolve().then(() => __toESM(require_promise(), 1)).catch(() => importError("mysql2 | 
| 104895 | 
            -
                  const instance = createPool2(connection2);
         | 
| 104666 | 
            +
                  const { createPool: createPool2 } = await Promise.resolve().then(() => __toESM(require_promise(), 1)).catch(() => importError("mysql2"));
         | 
| 104896 104667 | 
             
                  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_mysql2(), mysql2_exports));
         | 
| 104897 | 
            -
                   | 
| 104898 | 
            -
             | 
| 104668 | 
            +
                  if (typeof params[0] === "object") {
         | 
| 104669 | 
            +
                    const { connection: connection2, ...drizzleConfig } = params[0];
         | 
| 104670 | 
            +
                    const instance2 = createPool2(connection2);
         | 
| 104671 | 
            +
                    const db22 = drizzle22(instance2, drizzleConfig);
         | 
| 104672 | 
            +
                    return db22;
         | 
| 104673 | 
            +
                  }
         | 
| 104674 | 
            +
                  const connectionString = params[0];
         | 
| 104675 | 
            +
                  const instance = createPool2(connectionString);
         | 
| 104676 | 
            +
                  const db2 = drizzle22(instance);
         | 
| 104899 104677 | 
             
                  return db2;
         | 
| 104900 104678 | 
             
                }
         | 
| 104901 104679 | 
             
                case "neon-http": {
         | 
| 104902 104680 | 
             
                  const { neon } = await Promise.resolve().then(() => (init_serverless(), serverless_exports)).catch(() => importError("@neondatabase/serverless"));
         | 
| 104903 | 
            -
                  const { connectionString, options } = connection2;
         | 
| 104904 104681 | 
             
                  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_neon_http(), neon_http_exports));
         | 
| 104905 | 
            -
                   | 
| 104906 | 
            -
             | 
| 104907 | 
            -
             | 
| 104682 | 
            +
                  if (typeof params[0] === "object") {
         | 
| 104683 | 
            +
                    const { connection: connection2, ...drizzleConfig } = params[0];
         | 
| 104684 | 
            +
                    if (typeof connection2 === "object") {
         | 
| 104685 | 
            +
                      const { connectionString, ...options } = connection2;
         | 
| 104686 | 
            +
                      const instance3 = neon(connectionString, options);
         | 
| 104687 | 
            +
                      const db3 = drizzle22(instance3, drizzleConfig);
         | 
| 104688 | 
            +
                      return db3;
         | 
| 104689 | 
            +
                    }
         | 
| 104690 | 
            +
                    const instance2 = neon(connection2);
         | 
| 104691 | 
            +
                    const db22 = drizzle22(instance2, drizzleConfig);
         | 
| 104692 | 
            +
                    return db22;
         | 
| 104693 | 
            +
                  }
         | 
| 104694 | 
            +
                  const instance = neon(params[0]);
         | 
| 104695 | 
            +
                  const db2 = drizzle22(instance);
         | 
| 104908 104696 | 
             
                  return db2;
         | 
| 104909 104697 | 
             
                }
         | 
| 104910 | 
            -
                case "neon- | 
| 104698 | 
            +
                case "neon-websocket": {
         | 
| 104911 104699 | 
             
                  const { Pool: Pool2, neonConfig } = await Promise.resolve().then(() => (init_serverless(), serverless_exports)).catch(
         | 
| 104912 104700 | 
             
                    () => importError("@neondatabase/serverless")
         | 
| 104913 104701 | 
             
                  );
         | 
| 104914 104702 | 
             
                  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_neon_serverless(), neon_serverless_exports));
         | 
| 104915 | 
            -
                   | 
| 104916 | 
            -
             | 
| 104917 | 
            -
             | 
| 104703 | 
            +
                  if (typeof params[0] === "string") {
         | 
| 104704 | 
            +
                    const instance2 = new Pool2({
         | 
| 104705 | 
            +
                      connectionString: params[0]
         | 
| 104706 | 
            +
                    });
         | 
| 104707 | 
            +
                    const db22 = drizzle22(instance2);
         | 
| 104708 | 
            +
                    return db22;
         | 
| 104918 104709 | 
             
                  }
         | 
| 104919 | 
            -
                   | 
| 104920 | 
            -
             | 
| 104710 | 
            +
                  if (typeof params[0] === "object") {
         | 
| 104711 | 
            +
                    const { connection: connection2, ws: ws3, ...drizzleConfig } = params[0];
         | 
| 104712 | 
            +
                    if (ws3) {
         | 
| 104713 | 
            +
                      neonConfig.webSocketConstructor = ws3;
         | 
| 104714 | 
            +
                    }
         | 
| 104715 | 
            +
                    const instance2 = typeof connection2 === "string" ? new Pool2({
         | 
| 104716 | 
            +
                      connectionString: connection2
         | 
| 104717 | 
            +
                    }) : new Pool2(connection2);
         | 
| 104718 | 
            +
                    const db22 = drizzle22(instance2, drizzleConfig);
         | 
| 104719 | 
            +
                    return db22;
         | 
| 104720 | 
            +
                  }
         | 
| 104721 | 
            +
                  const instance = new Pool2();
         | 
| 104722 | 
            +
                  const db2 = drizzle22(instance);
         | 
| 104921 104723 | 
             
                  return db2;
         | 
| 104922 104724 | 
             
                }
         | 
| 104923 104725 | 
             
                case "planetscale": {
         | 
| 104924 104726 | 
             
                  const { Client: Client4 } = await Promise.resolve().then(() => (init_dist(), dist_exports)).catch(() => importError("@planetscale/database"));
         | 
| 104925 104727 | 
             
                  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_planetscale_serverless(), planetscale_serverless_exports));
         | 
| 104926 | 
            -
                   | 
| 104927 | 
            -
                    connection2
         | 
| 104928 | 
            -
             | 
| 104929 | 
            -
             | 
| 104930 | 
            -
             | 
| 104728 | 
            +
                  if (typeof params[0] === "object") {
         | 
| 104729 | 
            +
                    const { connection: connection2, ...drizzleConfig } = params[0];
         | 
| 104730 | 
            +
                    const instance2 = typeof connection2 === "string" ? new Client4({
         | 
| 104731 | 
            +
                      url: connection2
         | 
| 104732 | 
            +
                    }) : new Client4(
         | 
| 104733 | 
            +
                      connection2
         | 
| 104734 | 
            +
                    );
         | 
| 104735 | 
            +
                    const db22 = drizzle22(instance2, drizzleConfig);
         | 
| 104736 | 
            +
                    return db22;
         | 
| 104737 | 
            +
                  }
         | 
| 104738 | 
            +
                  const instance = new Client4({
         | 
| 104739 | 
            +
                    url: params[0]
         | 
| 104740 | 
            +
                  });
         | 
| 104741 | 
            +
                  const db2 = drizzle22(instance);
         | 
| 104931 104742 | 
             
                  return db2;
         | 
| 104932 104743 | 
             
                }
         | 
| 104933 104744 | 
             
                case "postgres-js": {
         | 
| 104934 104745 | 
             
                  const { default: client2 } = await Promise.resolve().then(() => (init_src(), src_exports)).catch(() => importError("postgres"));
         | 
| 104935 104746 | 
             
                  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_postgres_js(), postgres_js_exports));
         | 
| 104936 | 
            -
                   | 
| 104937 | 
            -
             | 
| 104938 | 
            -
             | 
| 104747 | 
            +
                  if (typeof params[0] === "object") {
         | 
| 104748 | 
            +
                    const { connection: connection2, ...drizzleConfig } = params[0];
         | 
| 104749 | 
            +
                    if (typeof connection2 === "object" && connection2.url !== void 0) {
         | 
| 104750 | 
            +
                      const { url, ...config } = connection2;
         | 
| 104751 | 
            +
                      const instance3 = client2(url, config);
         | 
| 104752 | 
            +
                      const db3 = drizzle22(instance3, drizzleConfig);
         | 
| 104753 | 
            +
                      return db3;
         | 
| 104754 | 
            +
                    }
         | 
| 104755 | 
            +
                    const instance2 = client2(connection2);
         | 
| 104756 | 
            +
                    const db22 = drizzle22(instance2, drizzleConfig);
         | 
| 104757 | 
            +
                    return db22;
         | 
| 104758 | 
            +
                  }
         | 
| 104759 | 
            +
                  const instance = client2(params[0]);
         | 
| 104760 | 
            +
                  const db2 = drizzle22(instance);
         | 
| 104939 104761 | 
             
                  return db2;
         | 
| 104940 104762 | 
             
                }
         | 
| 104941 104763 | 
             
                case "tidb-serverless": {
         | 
| 104942 104764 | 
             
                  const { connect: connect3 } = await Promise.resolve().then(() => (init_dist2(), dist_exports2)).catch(() => importError("@tidbcloud/serverless"));
         | 
| 104943 104765 | 
             
                  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_tidb_serverless(), tidb_serverless_exports));
         | 
| 104944 | 
            -
                   | 
| 104766 | 
            +
                  if (typeof params[0] === "string") {
         | 
| 104767 | 
            +
                    const instance2 = connect3({
         | 
| 104768 | 
            +
                      url: params[0]
         | 
| 104769 | 
            +
                    });
         | 
| 104770 | 
            +
                    const db22 = drizzle22(instance2);
         | 
| 104771 | 
            +
                    return db22;
         | 
| 104772 | 
            +
                  }
         | 
| 104773 | 
            +
                  const { connection: connection2, ...drizzleConfig } = params[0];
         | 
| 104774 | 
            +
                  const instance = typeof connection2 === "string" ? connect3({
         | 
| 104775 | 
            +
                    url: connection2
         | 
| 104776 | 
            +
                  }) : connect3(connection2);
         | 
| 104945 104777 | 
             
                  const db2 = drizzle22(instance, drizzleConfig);
         | 
| 104946 | 
            -
                  db2.$client = instance;
         | 
| 104947 104778 | 
             
                  return db2;
         | 
| 104948 104779 | 
             
                }
         | 
| 104949 104780 | 
             
                case "vercel-postgres": {
         | 
| 104781 | 
            +
                  const drizzleConfig = params[0];
         | 
| 104950 104782 | 
             
                  const { sql: sql3 } = await Promise.resolve().then(() => (init_index_node(), index_node_exports)).catch(() => importError("@vercel/postgres"));
         | 
| 104951 104783 | 
             
                  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_vercel_postgres(), vercel_postgres_exports));
         | 
| 104952 104784 | 
             
                  const db2 = drizzle22(sql3, drizzleConfig);
         | 
| 104953 | 
            -
                  db2.$client = sql3;
         | 
| 104954 104785 | 
             
                  return db2;
         | 
| 104955 104786 | 
             
                }
         | 
| 104956 104787 | 
             
              }
         | 
| @@ -104971,19 +104802,8 @@ var init_monodriver = __esm({ | |
| 104971 104802 | 
             
            // ../drizzle-orm/dist/migrator.js
         | 
| 104972 104803 | 
             
            import crypto4 from "crypto";
         | 
| 104973 104804 | 
             
            import fs4 from "fs";
         | 
| 104974 | 
            -
            import path2 from "path";
         | 
| 104975 104805 | 
             
            function readMigrationFiles(config) {
         | 
| 104976 | 
            -
               | 
| 104977 | 
            -
              if (typeof config === "string") {
         | 
| 104978 | 
            -
                const configAsString = fs4.readFileSync(path2.resolve(".", config), "utf8");
         | 
| 104979 | 
            -
                const jsonConfig = JSON.parse(configAsString);
         | 
| 104980 | 
            -
                migrationFolderTo = jsonConfig.out;
         | 
| 104981 | 
            -
              } else {
         | 
| 104982 | 
            -
                migrationFolderTo = config.migrationsFolder;
         | 
| 104983 | 
            -
              }
         | 
| 104984 | 
            -
              if (!migrationFolderTo) {
         | 
| 104985 | 
            -
                throw new Error("no migration folder defined");
         | 
| 104986 | 
            -
              }
         | 
| 104806 | 
            +
              const migrationFolderTo = config.migrationsFolder;
         | 
| 104987 104807 | 
             
              const migrationQueries = [];
         | 
| 104988 104808 | 
             
              const journalPath = `${migrationFolderTo}/meta/_journal.json`;
         | 
| 104989 104809 | 
             
              if (!fs4.existsSync(journalPath)) {
         | 
| @@ -105071,7 +104891,7 @@ __export(migrator_exports4, { | |
| 105071 104891 | 
             
            });
         | 
| 105072 104892 | 
             
            async function migrate4(db2, config) {
         | 
| 105073 104893 | 
             
              const migrations = readMigrationFiles(config);
         | 
| 105074 | 
            -
              const migrationsTable = config | 
| 104894 | 
            +
              const migrationsTable = config.migrationsTable ?? "__drizzle_migrations";
         | 
| 105075 104895 | 
             
              const migrationTableCreate = sql`
         | 
| 105076 104896 | 
             
            		CREATE TABLE IF NOT EXISTS ${sql.identifier(migrationsTable)} (
         | 
| 105077 104897 | 
             
            			id SERIAL PRIMARY KEY,
         | 
| @@ -105116,7 +104936,7 @@ __export(migrator_exports5, { | |
| 105116 104936 | 
             
            });
         | 
| 105117 104937 | 
             
            async function migrate5(db2, config) {
         | 
| 105118 104938 | 
             
              const migrations = readMigrationFiles(config);
         | 
| 105119 | 
            -
              const migrationsTable = config | 
| 104939 | 
            +
              const migrationsTable = config.migrationsTable ?? "__drizzle_migrations";
         | 
| 105120 104940 | 
             
              const migrationTableCreate = sql`
         | 
| 105121 104941 | 
             
            		CREATE TABLE IF NOT EXISTS ${sql.identifier(migrationsTable)} (
         | 
| 105122 104942 | 
             
            			id SERIAL PRIMARY KEY,
         | 
| @@ -105159,10 +104979,7 @@ __export(migrator_exports6, { | |
| 105159 104979 | 
             
            });
         | 
| 105160 104980 | 
             
            async function migrate6(db2, config) {
         | 
| 105161 104981 | 
             
              const migrations = readMigrationFiles(config);
         | 
| 105162 | 
            -
               | 
| 105163 | 
            -
                migrationsFolder: config
         | 
| 105164 | 
            -
              } : config;
         | 
| 105165 | 
            -
              await db2.dialect.migrate(migrations, db2.session, preparedConfig);
         | 
| 104982 | 
            +
              await db2.dialect.migrate(migrations, db2.session, config);
         | 
| 105166 104983 | 
             
            }
         | 
| 105167 104984 | 
             
            var init_migrator7 = __esm({
         | 
| 105168 104985 | 
             
              "../drizzle-orm/dist/mysql2/migrator.js"() {
         | 
| @@ -105178,8 +104995,8 @@ __export(migrator_exports7, { | |
| 105178 104995 | 
             
            });
         | 
| 105179 104996 | 
             
            async function migrate7(db2, config) {
         | 
| 105180 104997 | 
             
              const migrations = readMigrationFiles(config);
         | 
| 105181 | 
            -
              const migrationsTable =  | 
| 105182 | 
            -
              const migrationsSchema =  | 
| 104998 | 
            +
              const migrationsTable = config.migrationsTable ?? "__drizzle_migrations";
         | 
| 104999 | 
            +
              const migrationsSchema = config.migrationsSchema ?? "drizzle";
         | 
| 105183 105000 | 
             
              const migrationTableCreate = sql`
         | 
| 105184 105001 | 
             
            		CREATE TABLE IF NOT EXISTS ${sql.identifier(migrationsSchema)}.${sql.identifier(migrationsTable)} (
         | 
| 105185 105002 | 
             
            			id SERIAL PRIMARY KEY,
         | 
| @@ -105255,10 +105072,7 @@ __export(migrator_exports10, { | |
| 105255 105072 | 
             
            });
         | 
| 105256 105073 | 
             
            async function migrate10(db2, config) {
         | 
| 105257 105074 | 
             
              const migrations = readMigrationFiles(config);
         | 
| 105258 | 
            -
               | 
| 105259 | 
            -
                migrationsFolder: config
         | 
| 105260 | 
            -
              } : config;
         | 
| 105261 | 
            -
              await db2.dialect.migrate(migrations, db2.session, preparedConfig);
         | 
| 105075 | 
            +
              await db2.dialect.migrate(migrations, db2.session, config);
         | 
| 105262 105076 | 
             
            }
         | 
| 105263 105077 | 
             
            var init_migrator11 = __esm({
         | 
| 105264 105078 | 
             
              "../drizzle-orm/dist/planetscale-serverless/migrator.js"() {
         | 
| @@ -105585,7 +105399,6 @@ var init_pgSerializer = __esm({ | |
| 105585 105399 | 
             
                  const sequencesToReturn = {};
         | 
| 105586 105400 | 
             
                  const indexesInSchema = {};
         | 
| 105587 105401 | 
             
                  for (const table4 of tables) {
         | 
| 105588 | 
            -
                    const checksInTable = {};
         | 
| 105589 105402 | 
             
                    const {
         | 
| 105590 105403 | 
             
                      name: tableName,
         | 
| 105591 105404 | 
             
                      columns,
         | 
| @@ -105601,7 +105414,6 @@ var init_pgSerializer = __esm({ | |
| 105601 105414 | 
             
                    }
         | 
| 105602 105415 | 
             
                    const columnsObject = {};
         | 
| 105603 105416 | 
             
                    const indexesObject = {};
         | 
| 105604 | 
            -
                    const checksObject = {};
         | 
| 105605 105417 | 
             
                    const foreignKeysObject = {};
         | 
| 105606 105418 | 
             
                    const primaryKeysObject = {};
         | 
| 105607 105419 | 
             
                    const uniqueConstraintObject = {};
         | 
| @@ -105848,33 +105660,6 @@ ${withStyle.errorWarning( | |
| 105848 105660 | 
             
                        with: value.config.with ?? {}
         | 
| 105849 105661 | 
             
                      };
         | 
| 105850 105662 | 
             
                    });
         | 
| 105851 | 
            -
                    checks.forEach((check) => {
         | 
| 105852 | 
            -
                      const checkName = check.name;
         | 
| 105853 | 
            -
                      if (typeof checksInTable[`"${schema4 ?? "public"}"."${tableName}"`] !== "undefined") {
         | 
| 105854 | 
            -
                        if (checksInTable[`"${schema4 ?? "public"}"."${tableName}"`].includes(check.name)) {
         | 
| 105855 | 
            -
                          console.log(
         | 
| 105856 | 
            -
                            `
         | 
| 105857 | 
            -
            ${withStyle.errorWarning(
         | 
| 105858 | 
            -
                              `We've found duplicated check constraint name across ${source_default.underline.blue(
         | 
| 105859 | 
            -
                                schema4 ?? "public"
         | 
| 105860 | 
            -
                              )} schema in ${source_default.underline.blue(
         | 
| 105861 | 
            -
                                tableName
         | 
| 105862 | 
            -
                              )}. Please rename your check constraint in either the ${source_default.underline.blue(
         | 
| 105863 | 
            -
                                tableName
         | 
| 105864 | 
            -
                              )} table or the table with the duplicated check contraint name`
         | 
| 105865 | 
            -
                            )}`
         | 
| 105866 | 
            -
                          );
         | 
| 105867 | 
            -
                          process.exit(1);
         | 
| 105868 | 
            -
                        }
         | 
| 105869 | 
            -
                        checksInTable[`"${schema4 ?? "public"}"."${tableName}"`].push(checkName);
         | 
| 105870 | 
            -
                      } else {
         | 
| 105871 | 
            -
                        checksInTable[`"${schema4 ?? "public"}"."${tableName}"`] = [check.name];
         | 
| 105872 | 
            -
                      }
         | 
| 105873 | 
            -
                      checksObject[checkName] = {
         | 
| 105874 | 
            -
                        name: checkName,
         | 
| 105875 | 
            -
                        value: dialect4.sqlToQuery(check.value).sql
         | 
| 105876 | 
            -
                      };
         | 
| 105877 | 
            -
                    });
         | 
| 105878 105663 | 
             
                    const tableKey2 = `${schema4 ?? "public"}.${tableName}`;
         | 
| 105879 105664 | 
             
                    result[tableKey2] = {
         | 
| 105880 105665 | 
             
                      name: tableName,
         | 
| @@ -105883,8 +105668,7 @@ ${withStyle.errorWarning( | |
| 105883 105668 | 
             
                      indexes: indexesObject,
         | 
| 105884 105669 | 
             
                      foreignKeys: foreignKeysObject,
         | 
| 105885 105670 | 
             
                      compositePrimaryKeys: primaryKeysObject,
         | 
| 105886 | 
            -
                      uniqueConstraints: uniqueConstraintObject | 
| 105887 | 
            -
                      checkConstraints: checksObject
         | 
| 105671 | 
            +
                      uniqueConstraints: uniqueConstraintObject
         | 
| 105888 105672 | 
             
                    };
         | 
| 105889 105673 | 
             
                  }
         | 
| 105890 105674 | 
             
                  for (const sequence of sequences) {
         | 
| @@ -105973,7 +105757,6 @@ ${withStyle.errorWarning( | |
| 105973 105757 | 
             
                  let indexesCount = 0;
         | 
| 105974 105758 | 
             
                  let foreignKeysCount = 0;
         | 
| 105975 105759 | 
             
                  let tableCount = 0;
         | 
| 105976 | 
            -
                  let checksCount = 0;
         | 
| 105977 105760 | 
             
                  const sequencesToReturn = {};
         | 
| 105978 105761 | 
             
                  const seqWhere = schemaFilters.map((t5) => `schemaname = '${t5}'`).join(" or ");
         | 
| 105979 105762 | 
             
                  const allSequences = await db2.query(
         | 
| @@ -106043,8 +105826,7 @@ ${withStyle.errorWarning( | |
| 106043 105826 | 
             
                        const indexToReturn = {};
         | 
| 106044 105827 | 
             
                        const foreignKeysToReturn = {};
         | 
| 106045 105828 | 
             
                        const primaryKeys = {};
         | 
| 106046 | 
            -
                        const  | 
| 106047 | 
            -
                        const checkConstraints = {};
         | 
| 105829 | 
            +
                        const uniqueConstrains = {};
         | 
| 106048 105830 | 
             
                        const tableResponse = await db2.query(
         | 
| 106049 105831 | 
             
                          `SELECT a.attrelid::regclass::text, a.attname, is_nullable, a.attndims as array_dimensions
         | 
| 106050 105832 | 
             
                    , CASE WHEN a.atttypid = ANY ('{int,int8,int2}'::regtype[])
         | 
| @@ -106082,97 +105864,55 @@ ${withStyle.errorWarning( | |
| 106082 105864 | 
             
               ORDER  BY a.attnum;`
         | 
| 106083 105865 | 
             
                        );
         | 
| 106084 105866 | 
             
                        const tableConstraints = await db2.query(
         | 
| 106085 | 
            -
                          `SELECT c.column_name, 
         | 
| 106086 | 
            -
             | 
| 106087 | 
            -
             | 
| 106088 | 
            -
             | 
| 106089 | 
            -
             | 
| 106090 | 
            -
             | 
| 106091 | 
            -
            					FROM information_schema.table_constraints tc
         | 
| 106092 | 
            -
            					JOIN information_schema.constraint_column_usage AS ccu 
         | 
| 106093 | 
            -
            					    USING (constraint_schema, constraint_name)
         | 
| 106094 | 
            -
            					JOIN information_schema.columns AS c 
         | 
| 106095 | 
            -
            					    ON c.table_schema = tc.constraint_schema
         | 
| 106096 | 
            -
            					    AND tc.table_name = c.table_name 
         | 
| 106097 | 
            -
            					    AND ccu.column_name = c.column_name
         | 
| 106098 | 
            -
            					JOIN pg_constraint con 
         | 
| 106099 | 
            -
            					    ON con.conname = tc.constraint_name
         | 
| 106100 | 
            -
            					    AND con.conrelid = (
         | 
| 106101 | 
            -
            					        SELECT oid 
         | 
| 106102 | 
            -
            					        FROM pg_class 
         | 
| 106103 | 
            -
            					        WHERE relname = tc.table_name 
         | 
| 106104 | 
            -
            					        AND relnamespace = (
         | 
| 106105 | 
            -
            					            SELECT oid 
         | 
| 106106 | 
            -
            					            FROM pg_namespace 
         | 
| 106107 | 
            -
            					            WHERE nspname = tc.constraint_schema
         | 
| 106108 | 
            -
            					        )
         | 
| 106109 | 
            -
            					    )
         | 
| 106110 | 
            -
            					WHERE tc.table_name = '${tableName}' AND tc.constraint_schema = '${tableSchema}';`
         | 
| 105867 | 
            +
                          `SELECT c.column_name, c.data_type, constraint_type, constraint_name, constraint_schema
         | 
| 105868 | 
            +
                  FROM information_schema.table_constraints tc
         | 
| 105869 | 
            +
                  JOIN information_schema.constraint_column_usage AS ccu USING (constraint_schema, constraint_name)
         | 
| 105870 | 
            +
                  JOIN information_schema.columns AS c ON c.table_schema = tc.constraint_schema
         | 
| 105871 | 
            +
                    AND tc.table_name = c.table_name AND ccu.column_name = c.column_name
         | 
| 105872 | 
            +
                  WHERE tc.table_name = '${tableName}' and constraint_schema = '${tableSchema}';`
         | 
| 106111 105873 | 
             
                        );
         | 
| 106112 | 
            -
                        const tableChecks = await db2.query(`SELECT 
         | 
| 106113 | 
            -
            			    tc.constraint_name,
         | 
| 106114 | 
            -
            			    tc.constraint_type,
         | 
| 106115 | 
            -
            			    pg_get_constraintdef(con.oid) AS constraint_definition
         | 
| 106116 | 
            -
            			FROM 
         | 
| 106117 | 
            -
            			    information_schema.table_constraints AS tc
         | 
| 106118 | 
            -
            			    JOIN pg_constraint AS con 
         | 
| 106119 | 
            -
            			        ON tc.constraint_name = con.conname
         | 
| 106120 | 
            -
            			        AND con.conrelid = (
         | 
| 106121 | 
            -
            			            SELECT oid 
         | 
| 106122 | 
            -
            			            FROM pg_class 
         | 
| 106123 | 
            -
            			            WHERE relname = tc.table_name 
         | 
| 106124 | 
            -
            			            AND relnamespace = (
         | 
| 106125 | 
            -
            			                SELECT oid 
         | 
| 106126 | 
            -
            			                FROM pg_namespace 
         | 
| 106127 | 
            -
            			                WHERE nspname = tc.constraint_schema
         | 
| 106128 | 
            -
            			            )
         | 
| 106129 | 
            -
            			        )
         | 
| 106130 | 
            -
            			WHERE 
         | 
| 106131 | 
            -
            			    tc.table_name = '${tableName}'
         | 
| 106132 | 
            -
            			    AND tc.constraint_schema = '${tableSchema}'
         | 
| 106133 | 
            -
            				AND tc.constraint_type = 'CHECK';`);
         | 
| 106134 105874 | 
             
                        columnsCount += tableResponse.length;
         | 
| 106135 105875 | 
             
                        if (progressCallback) {
         | 
| 106136 105876 | 
             
                          progressCallback("columns", columnsCount, "fetching");
         | 
| 106137 105877 | 
             
                        }
         | 
| 106138 105878 | 
             
                        const tableForeignKeys = await db2.query(
         | 
| 106139 105879 | 
             
                          `SELECT
         | 
| 106140 | 
            -
             | 
| 106141 | 
            -
             | 
| 106142 | 
            -
             | 
| 106143 | 
            -
             | 
| 106144 | 
            -
             | 
| 106145 | 
            -
             | 
| 106146 | 
            -
             | 
| 106147 | 
            -
             | 
| 106148 | 
            -
             | 
| 106149 | 
            -
             | 
| 106150 | 
            -
             | 
| 106151 | 
            -
             | 
| 106152 | 
            -
             | 
| 106153 | 
            -
             | 
| 106154 | 
            -
             | 
| 106155 | 
            -
             | 
| 106156 | 
            -
             | 
| 106157 | 
            -
             | 
| 106158 | 
            -
             | 
| 106159 | 
            -
             | 
| 106160 | 
            -
             | 
| 106161 | 
            -
             | 
| 106162 | 
            -
             | 
| 106163 | 
            -
             | 
| 106164 | 
            -
             | 
| 106165 | 
            -
             | 
| 106166 | 
            -
             | 
| 106167 | 
            -
             | 
| 106168 | 
            -
             | 
| 106169 | 
            -
             | 
| 106170 | 
            -
             | 
| 106171 | 
            -
             | 
| 106172 | 
            -
             | 
| 106173 | 
            -
             | 
| 106174 | 
            -
             | 
| 106175 | 
            -
             | 
| 105880 | 
            +
                        con.contype AS constraint_type,
         | 
| 105881 | 
            +
                        nsp.nspname AS constraint_schema,
         | 
| 105882 | 
            +
                        con.conname AS constraint_name,
         | 
| 105883 | 
            +
                        rel.relname AS table_name,
         | 
| 105884 | 
            +
                        att.attname AS column_name,
         | 
| 105885 | 
            +
                        fnsp.nspname AS foreign_table_schema,
         | 
| 105886 | 
            +
                        frel.relname AS foreign_table_name,
         | 
| 105887 | 
            +
                        fatt.attname AS foreign_column_name,
         | 
| 105888 | 
            +
                        CASE con.confupdtype
         | 
| 105889 | 
            +
                          WHEN 'a' THEN 'NO ACTION'
         | 
| 105890 | 
            +
                          WHEN 'r' THEN 'RESTRICT'
         | 
| 105891 | 
            +
                          WHEN 'n' THEN 'SET NULL'
         | 
| 105892 | 
            +
                          WHEN 'c' THEN 'CASCADE'
         | 
| 105893 | 
            +
                          WHEN 'd' THEN 'SET DEFAULT'
         | 
| 105894 | 
            +
                        END AS update_rule,
         | 
| 105895 | 
            +
                        CASE con.confdeltype
         | 
| 105896 | 
            +
                          WHEN 'a' THEN 'NO ACTION'
         | 
| 105897 | 
            +
                          WHEN 'r' THEN 'RESTRICT'
         | 
| 105898 | 
            +
                          WHEN 'n' THEN 'SET NULL'
         | 
| 105899 | 
            +
                          WHEN 'c' THEN 'CASCADE'
         | 
| 105900 | 
            +
                          WHEN 'd' THEN 'SET DEFAULT'
         | 
| 105901 | 
            +
                        END AS delete_rule
         | 
| 105902 | 
            +
                      FROM
         | 
| 105903 | 
            +
                        pg_catalog.pg_constraint con
         | 
| 105904 | 
            +
                        JOIN pg_catalog.pg_class rel ON rel.oid = con.conrelid
         | 
| 105905 | 
            +
                        JOIN pg_catalog.pg_namespace nsp ON nsp.oid = con.connamespace
         | 
| 105906 | 
            +
                        LEFT JOIN pg_catalog.pg_attribute att ON att.attnum = ANY (con.conkey)
         | 
| 105907 | 
            +
                          AND att.attrelid = con.conrelid
         | 
| 105908 | 
            +
                        LEFT JOIN pg_catalog.pg_class frel ON frel.oid = con.confrelid
         | 
| 105909 | 
            +
                        LEFT JOIN pg_catalog.pg_namespace fnsp ON fnsp.oid = frel.relnamespace
         | 
| 105910 | 
            +
                        LEFT JOIN pg_catalog.pg_attribute fatt ON fatt.attnum = ANY (con.confkey)
         | 
| 105911 | 
            +
                          AND fatt.attrelid = con.confrelid
         | 
| 105912 | 
            +
                      WHERE
         | 
| 105913 | 
            +
                        nsp.nspname = '${tableSchema}'
         | 
| 105914 | 
            +
                        AND rel.relname = '${tableName}'
         | 
| 105915 | 
            +
                        AND con.contype IN ('f');`
         | 
| 106176 105916 | 
             
                        );
         | 
| 106177 105917 | 
             
                        foreignKeysCount += tableForeignKeys.length;
         | 
| 106178 105918 | 
             
                        if (progressCallback) {
         | 
| @@ -106214,29 +105954,16 @@ ${withStyle.errorWarning( | |
| 106214 105954 | 
             
                        for (const unqs of uniqueConstrainsRows) {
         | 
| 106215 105955 | 
             
                          const columnName = unqs.column_name;
         | 
| 106216 105956 | 
             
                          const constraintName = unqs.constraint_name;
         | 
| 106217 | 
            -
                          if (typeof  | 
| 106218 | 
            -
                             | 
| 105957 | 
            +
                          if (typeof uniqueConstrains[constraintName] !== "undefined") {
         | 
| 105958 | 
            +
                            uniqueConstrains[constraintName].columns.push(columnName);
         | 
| 106219 105959 | 
             
                          } else {
         | 
| 106220 | 
            -
                             | 
| 105960 | 
            +
                            uniqueConstrains[constraintName] = {
         | 
| 106221 105961 | 
             
                              columns: [columnName],
         | 
| 106222 105962 | 
             
                              nullsNotDistinct: false,
         | 
| 106223 105963 | 
             
                              name: constraintName
         | 
| 106224 105964 | 
             
                            };
         | 
| 106225 105965 | 
             
                          }
         | 
| 106226 105966 | 
             
                        }
         | 
| 106227 | 
            -
                        checksCount += tableChecks.length;
         | 
| 106228 | 
            -
                        if (progressCallback) {
         | 
| 106229 | 
            -
                          progressCallback("checks", checksCount, "fetching");
         | 
| 106230 | 
            -
                        }
         | 
| 106231 | 
            -
                        for (const checks of tableChecks) {
         | 
| 106232 | 
            -
                          let checkValue = checks.constraint_definition;
         | 
| 106233 | 
            -
                          const constraintName = checks.constraint_name;
         | 
| 106234 | 
            -
                          checkValue = checkValue.replace(/^CHECK\s*\(\(/, "").replace(/\)\)\s*$/, "");
         | 
| 106235 | 
            -
                          checkConstraints[constraintName] = {
         | 
| 106236 | 
            -
                            name: constraintName,
         | 
| 106237 | 
            -
                            value: checkValue
         | 
| 106238 | 
            -
                          };
         | 
| 106239 | 
            -
                        }
         | 
| 106240 105967 | 
             
                        for (const columnResponse of tableResponse) {
         | 
| 106241 105968 | 
             
                          const columnName = columnResponse.attname;
         | 
| 106242 105969 | 
             
                          const columnAdditionalDT = columnResponse.additional_dt;
         | 
| @@ -106480,8 +106207,7 @@ ${withStyle.errorWarning( | |
| 106480 106207 | 
             
                          indexes: indexToReturn,
         | 
| 106481 106208 | 
             
                          foreignKeys: foreignKeysToReturn,
         | 
| 106482 106209 | 
             
                          compositePrimaryKeys: primaryKeys,
         | 
| 106483 | 
            -
                          uniqueConstraints | 
| 106484 | 
            -
                          checkConstraints
         | 
| 106210 | 
            +
                          uniqueConstraints: uniqueConstrains
         | 
| 106485 106211 | 
             
                        };
         | 
| 106486 106212 | 
             
                      } catch (e5) {
         | 
| 106487 106213 | 
             
                        rej(e5);
         | 
| @@ -106499,7 +106225,6 @@ ${withStyle.errorWarning( | |
| 106499 106225 | 
             
                    progressCallback("columns", columnsCount, "done");
         | 
| 106500 106226 | 
             
                    progressCallback("indexes", indexesCount, "done");
         | 
| 106501 106227 | 
             
                    progressCallback("fks", foreignKeysCount, "done");
         | 
| 106502 | 
            -
                    progressCallback("checks", checksCount, "done");
         | 
| 106503 106228 | 
             
                  }
         | 
| 106504 106229 | 
             
                  const schemasObject = Object.fromEntries([...schemas].map((it) => [it, it]));
         | 
| 106505 106230 | 
             
                  return {
         | 
| @@ -106704,13 +106429,10 @@ var init_sqliteSerializer = __esm({ | |
| 106704 106429 | 
             
                    const foreignKeysObject = {};
         | 
| 106705 106430 | 
             
                    const primaryKeysObject = {};
         | 
| 106706 106431 | 
             
                    const uniqueConstraintObject = {};
         | 
| 106707 | 
            -
                    const checkConstraintObject = {};
         | 
| 106708 | 
            -
                    const checksInTable = {};
         | 
| 106709 106432 | 
             
                    const {
         | 
| 106710 106433 | 
             
                      name: tableName,
         | 
| 106711 106434 | 
             
                      columns,
         | 
| 106712 106435 | 
             
                      indexes,
         | 
| 106713 | 
            -
                      checks,
         | 
| 106714 106436 | 
             
                      foreignKeys: tableForeignKeys,
         | 
| 106715 106437 | 
             
                      primaryKeys,
         | 
| 106716 106438 | 
             
                      uniqueConstraints
         | 
| @@ -106867,39 +106589,13 @@ The unique constraint ${source_default.underline.blue( | |
| 106867 106589 | 
             
                        columnsObject[it.columns[0].name].primaryKey = true;
         | 
| 106868 106590 | 
             
                      }
         | 
| 106869 106591 | 
             
                    });
         | 
| 106870 | 
            -
                    checks.forEach((check) => {
         | 
| 106871 | 
            -
                      const checkName = check.name;
         | 
| 106872 | 
            -
                      if (typeof checksInTable[tableName] !== "undefined") {
         | 
| 106873 | 
            -
                        if (checksInTable[tableName].includes(check.name)) {
         | 
| 106874 | 
            -
                          console.log(
         | 
| 106875 | 
            -
                            `
         | 
| 106876 | 
            -
            ${withStyle.errorWarning(
         | 
| 106877 | 
            -
                              `We've found duplicated check constraint name in ${source_default.underline.blue(
         | 
| 106878 | 
            -
                                tableName
         | 
| 106879 | 
            -
                              )}. Please rename your check constraint in the ${source_default.underline.blue(
         | 
| 106880 | 
            -
                                tableName
         | 
| 106881 | 
            -
                              )} table`
         | 
| 106882 | 
            -
                            )}`
         | 
| 106883 | 
            -
                          );
         | 
| 106884 | 
            -
                          process.exit(1);
         | 
| 106885 | 
            -
                        }
         | 
| 106886 | 
            -
                        checksInTable[tableName].push(checkName);
         | 
| 106887 | 
            -
                      } else {
         | 
| 106888 | 
            -
                        checksInTable[tableName] = [check.name];
         | 
| 106889 | 
            -
                      }
         | 
| 106890 | 
            -
                      checkConstraintObject[checkName] = {
         | 
| 106891 | 
            -
                        name: checkName,
         | 
| 106892 | 
            -
                        value: dialect5.sqlToQuery(check.value).sql
         | 
| 106893 | 
            -
                      };
         | 
| 106894 | 
            -
                    });
         | 
| 106895 106592 | 
             
                    result[tableName] = {
         | 
| 106896 106593 | 
             
                      name: tableName,
         | 
| 106897 106594 | 
             
                      columns: columnsObject,
         | 
| 106898 106595 | 
             
                      indexes: indexesObject,
         | 
| 106899 106596 | 
             
                      foreignKeys: foreignKeysObject,
         | 
| 106900 106597 | 
             
                      compositePrimaryKeys: primaryKeysObject,
         | 
| 106901 | 
            -
                      uniqueConstraints: uniqueConstraintObject | 
| 106902 | 
            -
                      checkConstraints: checkConstraintObject
         | 
| 106598 | 
            +
                      uniqueConstraints: uniqueConstraintObject
         | 
| 106903 106599 | 
             
                    };
         | 
| 106904 106600 | 
             
                  }
         | 
| 106905 106601 | 
             
                  return {
         | 
| @@ -106946,7 +106642,6 @@ ${withStyle.errorWarning( | |
| 106946 106642 | 
             
                  let tablesCount = /* @__PURE__ */ new Set();
         | 
| 106947 106643 | 
             
                  let indexesCount = 0;
         | 
| 106948 106644 | 
             
                  let foreignKeysCount = 0;
         | 
| 106949 | 
            -
                  let checksCount = 0;
         | 
| 106950 106645 | 
             
                  const tableToPk = {};
         | 
| 106951 106646 | 
             
                  let tableToGeneratedColumnsInfo = {};
         | 
| 106952 106647 | 
             
                  for (const column4 of columns) {
         | 
| @@ -107004,8 +106699,7 @@ ${withStyle.errorWarning( | |
| 107004 106699 | 
             
                        compositePrimaryKeys: {},
         | 
| 107005 106700 | 
             
                        indexes: {},
         | 
| 107006 106701 | 
             
                        foreignKeys: {},
         | 
| 107007 | 
            -
                        uniqueConstraints: {} | 
| 107008 | 
            -
                        checkConstraints: {}
         | 
| 106702 | 
            +
                        uniqueConstraints: {}
         | 
| 107009 106703 | 
             
                      };
         | 
| 107010 106704 | 
             
                    } else {
         | 
| 107011 106705 | 
             
                      result[tableName].columns[columnName] = newColumn;
         | 
| @@ -107119,56 +106813,6 @@ WHERE | |
| 107119 106813 | 
             
                    progressCallback("indexes", indexesCount, "done");
         | 
| 107120 106814 | 
             
                    progressCallback("enums", 0, "done");
         | 
| 107121 106815 | 
             
                  }
         | 
| 107122 | 
            -
                  const namedCheckPattern = /CONSTRAINT\s*["']?(\w+)["']?\s*CHECK\s*\((.*?)\)/gi;
         | 
| 107123 | 
            -
                  const unnamedCheckPattern = /CHECK\s*\((.*?)\)/gi;
         | 
| 107124 | 
            -
                  let checkCounter = 0;
         | 
| 107125 | 
            -
                  const checkConstraints = {};
         | 
| 107126 | 
            -
                  const checks = await db2.query(`SELECT name as "tableName", sql as "sql"
         | 
| 107127 | 
            -
            		FROM sqlite_master 
         | 
| 107128 | 
            -
            		WHERE type = 'table' AND name != 'sqlite_sequence';`);
         | 
| 107129 | 
            -
                  for (const check of checks) {
         | 
| 107130 | 
            -
                    if (!tablesFilter(check.tableName)) continue;
         | 
| 107131 | 
            -
                    const { tableName, sql: sql3 } = check;
         | 
| 107132 | 
            -
                    let namedChecks = [...sql3.matchAll(namedCheckPattern)];
         | 
| 107133 | 
            -
                    if (namedChecks.length > 0) {
         | 
| 107134 | 
            -
                      namedChecks.forEach(([_3, checkName, checkValue]) => {
         | 
| 107135 | 
            -
                        checkConstraints[checkName] = {
         | 
| 107136 | 
            -
                          name: checkName,
         | 
| 107137 | 
            -
                          value: checkValue.trim()
         | 
| 107138 | 
            -
                        };
         | 
| 107139 | 
            -
                      });
         | 
| 107140 | 
            -
                    } else {
         | 
| 107141 | 
            -
                      let unnamedChecks = [...sql3.matchAll(unnamedCheckPattern)];
         | 
| 107142 | 
            -
                      unnamedChecks.forEach(([_3, checkValue]) => {
         | 
| 107143 | 
            -
                        let checkName = `${tableName}_check_${++checkCounter}`;
         | 
| 107144 | 
            -
                        checkConstraints[checkName] = {
         | 
| 107145 | 
            -
                          name: checkName,
         | 
| 107146 | 
            -
                          value: checkValue.trim()
         | 
| 107147 | 
            -
                        };
         | 
| 107148 | 
            -
                      });
         | 
| 107149 | 
            -
                    }
         | 
| 107150 | 
            -
                    checksCount += Object.values(checkConstraints).length;
         | 
| 107151 | 
            -
                    if (progressCallback) {
         | 
| 107152 | 
            -
                      progressCallback("checks", checksCount, "fetching");
         | 
| 107153 | 
            -
                    }
         | 
| 107154 | 
            -
                    const table4 = result[tableName];
         | 
| 107155 | 
            -
                    if (!table4) {
         | 
| 107156 | 
            -
                      result[tableName] = {
         | 
| 107157 | 
            -
                        name: tableName,
         | 
| 107158 | 
            -
                        columns: {},
         | 
| 107159 | 
            -
                        compositePrimaryKeys: {},
         | 
| 107160 | 
            -
                        indexes: {},
         | 
| 107161 | 
            -
                        foreignKeys: {},
         | 
| 107162 | 
            -
                        uniqueConstraints: {},
         | 
| 107163 | 
            -
                        checkConstraints
         | 
| 107164 | 
            -
                      };
         | 
| 107165 | 
            -
                    } else {
         | 
| 107166 | 
            -
                      result[tableName].checkConstraints = checkConstraints;
         | 
| 107167 | 
            -
                    }
         | 
| 107168 | 
            -
                  }
         | 
| 107169 | 
            -
                  if (progressCallback) {
         | 
| 107170 | 
            -
                    progressCallback("checks", checksCount, "done");
         | 
| 107171 | 
            -
                  }
         | 
| 107172 106816 | 
             
                  return {
         | 
| 107173 106817 | 
             
                    version: "6",
         | 
| 107174 106818 | 
             
                    dialect: "sqlite",
         | 
| @@ -108610,7 +108254,6 @@ var init_mysqlSerializer = __esm({ | |
| 108610 108254 | 
             
                      indexes,
         | 
| 108611 108255 | 
             
                      foreignKeys,
         | 
| 108612 108256 | 
             
                      schema: schema4,
         | 
| 108613 | 
            -
                      checks,
         | 
| 108614 108257 | 
             
                      primaryKeys,
         | 
| 108615 108258 | 
             
                      uniqueConstraints
         | 
| 108616 108259 | 
             
                    } = getTableConfig3(table4);
         | 
| @@ -108619,8 +108262,6 @@ var init_mysqlSerializer = __esm({ | |
| 108619 108262 | 
             
                    const foreignKeysObject = {};
         | 
| 108620 108263 | 
             
                    const primaryKeysObject = {};
         | 
| 108621 108264 | 
             
                    const uniqueConstraintObject = {};
         | 
| 108622 | 
            -
                    const checkConstraintObject = {};
         | 
| 108623 | 
            -
                    let checksInTable = {};
         | 
| 108624 108265 | 
             
                    columns.forEach((column4) => {
         | 
| 108625 108266 | 
             
                      const notNull = column4.notNull;
         | 
| 108626 108267 | 
             
                      const sqlTypeLowered = column4.getSQLType().toLowerCase();
         | 
| @@ -108833,32 +108474,6 @@ We have encountered a collision between the index name on columns ${source_defau | |
| 108833 108474 | 
             
                        lock: value.config.lock
         | 
| 108834 108475 | 
             
                      };
         | 
| 108835 108476 | 
             
                    });
         | 
| 108836 | 
            -
                    checks.forEach((check) => {
         | 
| 108837 | 
            -
                      check;
         | 
| 108838 | 
            -
                      const checkName = check.name;
         | 
| 108839 | 
            -
                      if (typeof checksInTable[tableName] !== "undefined") {
         | 
| 108840 | 
            -
                        if (checksInTable[tableName].includes(check.name)) {
         | 
| 108841 | 
            -
                          console.log(
         | 
| 108842 | 
            -
                            `
         | 
| 108843 | 
            -
            ${withStyle.errorWarning(
         | 
| 108844 | 
            -
                              `We've found duplicated check constraint name in ${source_default.underline.blue(
         | 
| 108845 | 
            -
                                tableName
         | 
| 108846 | 
            -
                              )}. Please rename your check constraint in the ${source_default.underline.blue(
         | 
| 108847 | 
            -
                                tableName
         | 
| 108848 | 
            -
                              )} table`
         | 
| 108849 | 
            -
                            )}`
         | 
| 108850 | 
            -
                          );
         | 
| 108851 | 
            -
                          process.exit(1);
         | 
| 108852 | 
            -
                        }
         | 
| 108853 | 
            -
                        checksInTable[tableName].push(checkName);
         | 
| 108854 | 
            -
                      } else {
         | 
| 108855 | 
            -
                        checksInTable[tableName] = [check.name];
         | 
| 108856 | 
            -
                      }
         | 
| 108857 | 
            -
                      checkConstraintObject[checkName] = {
         | 
| 108858 | 
            -
                        name: checkName,
         | 
| 108859 | 
            -
                        value: dialect6.sqlToQuery(check.value).sql
         | 
| 108860 | 
            -
                      };
         | 
| 108861 | 
            -
                    });
         | 
| 108862 108477 | 
             
                    if (!schema4) {
         | 
| 108863 108478 | 
             
                      result[tableName] = {
         | 
| 108864 108479 | 
             
                        name: tableName,
         | 
| @@ -108866,8 +108481,7 @@ ${withStyle.errorWarning( | |
| 108866 108481 | 
             
                        indexes: indexesObject,
         | 
| 108867 108482 | 
             
                        foreignKeys: foreignKeysObject,
         | 
| 108868 108483 | 
             
                        compositePrimaryKeys: primaryKeysObject,
         | 
| 108869 | 
            -
                        uniqueConstraints: uniqueConstraintObject | 
| 108870 | 
            -
                        checkConstraint: checkConstraintObject
         | 
| 108484 | 
            +
                        uniqueConstraints: uniqueConstraintObject
         | 
| 108871 108485 | 
             
                      };
         | 
| 108872 108486 | 
             
                    }
         | 
| 108873 108487 | 
             
                  }
         | 
| @@ -108894,7 +108508,6 @@ ${withStyle.errorWarning( | |
| 108894 108508 | 
             
                  let tablesCount = /* @__PURE__ */ new Set();
         | 
| 108895 108509 | 
             
                  let indexesCount = 0;
         | 
| 108896 108510 | 
             
                  let foreignKeysCount = 0;
         | 
| 108897 | 
            -
                  let checksCount = 0;
         | 
| 108898 108511 | 
             
                  const idxs = await db2.query(
         | 
| 108899 108512 | 
             
                    `select * from INFORMATION_SCHEMA.STATISTICS
         | 
| 108900 108513 | 
             
            	WHERE INFORMATION_SCHEMA.STATISTICS.TABLE_SCHEMA = '${inputSchema}' and INFORMATION_SCHEMA.STATISTICS.INDEX_NAME != 'PRIMARY';`
         | 
| @@ -108989,8 +108602,7 @@ ${withStyle.errorWarning( | |
| 108989 108602 | 
             
                        compositePrimaryKeys: {},
         | 
| 108990 108603 | 
             
                        indexes: {},
         | 
| 108991 108604 | 
             
                        foreignKeys: {},
         | 
| 108992 | 
            -
                        uniqueConstraints: {} | 
| 108993 | 
            -
                        checkConstraint: {}
         | 
| 108605 | 
            +
                        uniqueConstraints: {}
         | 
| 108994 108606 | 
             
                      };
         | 
| 108995 108607 | 
             
                    } else {
         | 
| 108996 108608 | 
             
                      result[tableName].columns[columnName] = newColumn;
         | 
| @@ -109139,38 +108751,6 @@ ${withStyle.errorWarning( | |
| 109139 108751 | 
             
                    progressCallback("indexes", indexesCount, "done");
         | 
| 109140 108752 | 
             
                    progressCallback("enums", 0, "done");
         | 
| 109141 108753 | 
             
                  }
         | 
| 109142 | 
            -
                  const checkConstraints = await db2.query(
         | 
| 109143 | 
            -
                    `SELECT 
         | 
| 109144 | 
            -
                tc.table_name, 
         | 
| 109145 | 
            -
                tc.constraint_name, 
         | 
| 109146 | 
            -
                cc.check_clause
         | 
| 109147 | 
            -
            FROM 
         | 
| 109148 | 
            -
                information_schema.table_constraints tc
         | 
| 109149 | 
            -
            JOIN 
         | 
| 109150 | 
            -
                information_schema.check_constraints cc 
         | 
| 109151 | 
            -
                ON tc.constraint_name = cc.constraint_name
         | 
| 109152 | 
            -
            WHERE 
         | 
| 109153 | 
            -
                tc.constraint_schema = '${inputSchema}'
         | 
| 109154 | 
            -
            AND 
         | 
| 109155 | 
            -
                tc.constraint_type = 'CHECK';`
         | 
| 109156 | 
            -
                  );
         | 
| 109157 | 
            -
                  checksCount += checkConstraints.length;
         | 
| 109158 | 
            -
                  if (progressCallback) {
         | 
| 109159 | 
            -
                    progressCallback("checks", checksCount, "fetching");
         | 
| 109160 | 
            -
                  }
         | 
| 109161 | 
            -
                  for (const checkConstraintRow of checkConstraints) {
         | 
| 109162 | 
            -
                    const constraintName = checkConstraintRow["CONSTRAINT_NAME"];
         | 
| 109163 | 
            -
                    const constraintValue = checkConstraintRow["CHECK_CLAUSE"];
         | 
| 109164 | 
            -
                    const tableName = checkConstraintRow["TABLE_NAME"];
         | 
| 109165 | 
            -
                    const tableInResult = result[tableName];
         | 
| 109166 | 
            -
                    tableInResult.checkConstraint[constraintName] = {
         | 
| 109167 | 
            -
                      name: constraintName,
         | 
| 109168 | 
            -
                      value: constraintValue
         | 
| 109169 | 
            -
                    };
         | 
| 109170 | 
            -
                  }
         | 
| 109171 | 
            -
                  if (progressCallback) {
         | 
| 109172 | 
            -
                    progressCallback("checks", checksCount, "done");
         | 
| 109173 | 
            -
                  }
         | 
| 109174 108754 | 
             
                  return {
         | 
| 109175 108755 | 
             
                    version: "5",
         | 
| 109176 108756 | 
             
                    dialect: "mysql",
         |