drizzle-kit 0.20.8 → 0.20.9-343f36c
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/bin.cjs +643 -670
- package/package.json +4 -3
- package/serializer/pgSerializer.d.ts +0 -2
- package/serializer/schemaToDrizzle.d.ts +7 -0
- package/serializer/sqliteSerializer.d.ts +0 -2
- package/serializer/studioUtils.d.ts +4 -4
- package/utils-studio.d.mts +2 -2
- package/utils-studio.d.ts +2 -2
- package/utils-studio.js +959 -957
- package/utils-studio.mjs +624 -622
- package/utils.js +173 -167
    
        package/bin.cjs
    CHANGED
    
    | @@ -469,8 +469,8 @@ var init_lib = __esm({ | |
| 469 469 | 
             
                };
         | 
| 470 470 | 
             
                overrideErrorMap = errorMap;
         | 
| 471 471 | 
             
                makeIssue = (params) => {
         | 
| 472 | 
            -
                  const { data, path:  | 
| 473 | 
            -
                  const fullPath = [... | 
| 472 | 
            +
                  const { data, path: path5, errorMaps, issueData } = params;
         | 
| 473 | 
            +
                  const fullPath = [...path5, ...issueData.path || []];
         | 
| 474 474 | 
             
                  const fullIssue = {
         | 
| 475 475 | 
             
                    ...issueData,
         | 
| 476 476 | 
             
                    path: fullPath
         | 
| @@ -552,10 +552,10 @@ var init_lib = __esm({ | |
| 552 552 | 
             
                  errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
         | 
| 553 553 | 
             
                })(errorUtil || (errorUtil = {}));
         | 
| 554 554 | 
             
                ParseInputLazyPath = class {
         | 
| 555 | 
            -
                  constructor(parent, value,  | 
| 555 | 
            +
                  constructor(parent, value, path5, key) {
         | 
| 556 556 | 
             
                    this.parent = parent;
         | 
| 557 557 | 
             
                    this.data = value;
         | 
| 558 | 
            -
                    this._path =  | 
| 558 | 
            +
                    this._path = path5;
         | 
| 559 559 | 
             
                    this._key = key;
         | 
| 560 560 | 
             
                  }
         | 
| 561 561 | 
             
                  get path() {
         | 
| @@ -5774,7 +5774,7 @@ var require_ms = __commonJS({ | |
| 5774 5774 | 
             
            // node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js
         | 
| 5775 5775 | 
             
            var require_common = __commonJS({
         | 
| 5776 5776 | 
             
              "node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js"(exports, module2) {
         | 
| 5777 | 
            -
                function setup( | 
| 5777 | 
            +
                function setup(env3) {
         | 
| 5778 5778 | 
             
                  createDebug.debug = createDebug;
         | 
| 5779 5779 | 
             
                  createDebug.default = createDebug;
         | 
| 5780 5780 | 
             
                  createDebug.coerce = coerce2;
         | 
| @@ -5783,8 +5783,8 @@ var require_common = __commonJS({ | |
| 5783 5783 | 
             
                  createDebug.enabled = enabled;
         | 
| 5784 5784 | 
             
                  createDebug.humanize = require_ms();
         | 
| 5785 5785 | 
             
                  createDebug.destroy = destroy;
         | 
| 5786 | 
            -
                  Object.keys( | 
| 5787 | 
            -
                    createDebug[key] =  | 
| 5786 | 
            +
                  Object.keys(env3).forEach((key) => {
         | 
| 5787 | 
            +
                    createDebug[key] = env3[key];
         | 
| 5788 5788 | 
             
                  });
         | 
| 5789 5789 | 
             
                  createDebug.names = [];
         | 
| 5790 5790 | 
             
                  createDebug.skips = [];
         | 
| @@ -6120,23 +6120,23 @@ var require_has_flag = __commonJS({ | |
| 6120 6120 | 
             
            var require_supports_color = __commonJS({
         | 
| 6121 6121 | 
             
              "node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module2) {
         | 
| 6122 6122 | 
             
                "use strict";
         | 
| 6123 | 
            -
                var  | 
| 6123 | 
            +
                var os3 = require("os");
         | 
| 6124 6124 | 
             
                var tty2 = require("tty");
         | 
| 6125 6125 | 
             
                var hasFlag2 = require_has_flag();
         | 
| 6126 | 
            -
                var { env:  | 
| 6126 | 
            +
                var { env: env3 } = process;
         | 
| 6127 6127 | 
             
                var forceColor;
         | 
| 6128 6128 | 
             
                if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
         | 
| 6129 6129 | 
             
                  forceColor = 0;
         | 
| 6130 6130 | 
             
                } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
         | 
| 6131 6131 | 
             
                  forceColor = 1;
         | 
| 6132 6132 | 
             
                }
         | 
| 6133 | 
            -
                if ("FORCE_COLOR" in  | 
| 6134 | 
            -
                  if ( | 
| 6133 | 
            +
                if ("FORCE_COLOR" in env3) {
         | 
| 6134 | 
            +
                  if (env3.FORCE_COLOR === "true") {
         | 
| 6135 6135 | 
             
                    forceColor = 1;
         | 
| 6136 | 
            -
                  } else if ( | 
| 6136 | 
            +
                  } else if (env3.FORCE_COLOR === "false") {
         | 
| 6137 6137 | 
             
                    forceColor = 0;
         | 
| 6138 6138 | 
             
                  } else {
         | 
| 6139 | 
            -
                    forceColor =  | 
| 6139 | 
            +
                    forceColor = env3.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env3.FORCE_COLOR, 10), 3);
         | 
| 6140 6140 | 
             
                  }
         | 
| 6141 6141 | 
             
                }
         | 
| 6142 6142 | 
             
                function translateLevel2(level) {
         | 
| @@ -6164,44 +6164,44 @@ var require_supports_color = __commonJS({ | |
| 6164 6164 | 
             
                    return 0;
         | 
| 6165 6165 | 
             
                  }
         | 
| 6166 6166 | 
             
                  const min = forceColor || 0;
         | 
| 6167 | 
            -
                  if ( | 
| 6167 | 
            +
                  if (env3.TERM === "dumb") {
         | 
| 6168 6168 | 
             
                    return min;
         | 
| 6169 6169 | 
             
                  }
         | 
| 6170 6170 | 
             
                  if (process.platform === "win32") {
         | 
| 6171 | 
            -
                    const osRelease =  | 
| 6171 | 
            +
                    const osRelease = os3.release().split(".");
         | 
| 6172 6172 | 
             
                    if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
         | 
| 6173 6173 | 
             
                      return Number(osRelease[2]) >= 14931 ? 3 : 2;
         | 
| 6174 6174 | 
             
                    }
         | 
| 6175 6175 | 
             
                    return 1;
         | 
| 6176 6176 | 
             
                  }
         | 
| 6177 | 
            -
                  if ("CI" in  | 
| 6178 | 
            -
                    if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in  | 
| 6177 | 
            +
                  if ("CI" in env3) {
         | 
| 6178 | 
            +
                    if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env3) || env3.CI_NAME === "codeship") {
         | 
| 6179 6179 | 
             
                      return 1;
         | 
| 6180 6180 | 
             
                    }
         | 
| 6181 6181 | 
             
                    return min;
         | 
| 6182 6182 | 
             
                  }
         | 
| 6183 | 
            -
                  if ("TEAMCITY_VERSION" in  | 
| 6184 | 
            -
                    return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test( | 
| 6183 | 
            +
                  if ("TEAMCITY_VERSION" in env3) {
         | 
| 6184 | 
            +
                    return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
         | 
| 6185 6185 | 
             
                  }
         | 
| 6186 | 
            -
                  if ( | 
| 6186 | 
            +
                  if (env3.COLORTERM === "truecolor") {
         | 
| 6187 6187 | 
             
                    return 3;
         | 
| 6188 6188 | 
             
                  }
         | 
| 6189 | 
            -
                  if ("TERM_PROGRAM" in  | 
| 6190 | 
            -
                    const version = parseInt(( | 
| 6191 | 
            -
                    switch ( | 
| 6189 | 
            +
                  if ("TERM_PROGRAM" in env3) {
         | 
| 6190 | 
            +
                    const version = parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
         | 
| 6191 | 
            +
                    switch (env3.TERM_PROGRAM) {
         | 
| 6192 6192 | 
             
                      case "iTerm.app":
         | 
| 6193 6193 | 
             
                        return version >= 3 ? 3 : 2;
         | 
| 6194 6194 | 
             
                      case "Apple_Terminal":
         | 
| 6195 6195 | 
             
                        return 2;
         | 
| 6196 6196 | 
             
                    }
         | 
| 6197 6197 | 
             
                  }
         | 
| 6198 | 
            -
                  if (/-256(color)?$/i.test( | 
| 6198 | 
            +
                  if (/-256(color)?$/i.test(env3.TERM)) {
         | 
| 6199 6199 | 
             
                    return 2;
         | 
| 6200 6200 | 
             
                  }
         | 
| 6201 | 
            -
                  if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test( | 
| 6201 | 
            +
                  if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
         | 
| 6202 6202 | 
             
                    return 1;
         | 
| 6203 6203 | 
             
                  }
         | 
| 6204 | 
            -
                  if ("COLORTERM" in  | 
| 6204 | 
            +
                  if ("COLORTERM" in env3) {
         | 
| 6205 6205 | 
             
                    return 1;
         | 
| 6206 6206 | 
             
                  }
         | 
| 6207 6207 | 
             
                  return min;
         | 
| @@ -6572,16 +6572,16 @@ var require_node2 = __commonJS({ | |
| 6572 6572 | 
             
                  }
         | 
| 6573 6573 | 
             
                  exports2.urlGenerate = urlGenerate;
         | 
| 6574 6574 | 
             
                  function normalize(aPath) {
         | 
| 6575 | 
            -
                    var  | 
| 6575 | 
            +
                    var path5 = aPath;
         | 
| 6576 6576 | 
             
                    var url = urlParse(aPath);
         | 
| 6577 6577 | 
             
                    if (url) {
         | 
| 6578 6578 | 
             
                      if (!url.path) {
         | 
| 6579 6579 | 
             
                        return aPath;
         | 
| 6580 6580 | 
             
                      }
         | 
| 6581 | 
            -
                       | 
| 6581 | 
            +
                      path5 = url.path;
         | 
| 6582 6582 | 
             
                    }
         | 
| 6583 | 
            -
                    var isAbsolute = exports2.isAbsolute( | 
| 6584 | 
            -
                    var parts =  | 
| 6583 | 
            +
                    var isAbsolute = exports2.isAbsolute(path5);
         | 
| 6584 | 
            +
                    var parts = path5.split(/\/+/);
         | 
| 6585 6585 | 
             
                    for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
         | 
| 6586 6586 | 
             
                      part = parts[i];
         | 
| 6587 6587 | 
             
                      if (part === ".") {
         | 
| @@ -6598,15 +6598,15 @@ var require_node2 = __commonJS({ | |
| 6598 6598 | 
             
                        }
         | 
| 6599 6599 | 
             
                      }
         | 
| 6600 6600 | 
             
                    }
         | 
| 6601 | 
            -
                     | 
| 6602 | 
            -
                    if ( | 
| 6603 | 
            -
                       | 
| 6601 | 
            +
                    path5 = parts.join("/");
         | 
| 6602 | 
            +
                    if (path5 === "") {
         | 
| 6603 | 
            +
                      path5 = isAbsolute ? "/" : ".";
         | 
| 6604 6604 | 
             
                    }
         | 
| 6605 6605 | 
             
                    if (url) {
         | 
| 6606 | 
            -
                      url.path =  | 
| 6606 | 
            +
                      url.path = path5;
         | 
| 6607 6607 | 
             
                      return urlGenerate(url);
         | 
| 6608 6608 | 
             
                    }
         | 
| 6609 | 
            -
                    return  | 
| 6609 | 
            +
                    return path5;
         | 
| 6610 6610 | 
             
                  }
         | 
| 6611 6611 | 
             
                  exports2.normalize = normalize;
         | 
| 6612 6612 | 
             
                  function join22(aRoot, aPath) {
         | 
| @@ -7243,13 +7243,13 @@ var require_node2 = __commonJS({ | |
| 7243 7243 | 
             
                  function randomIntInRange(low, high) {
         | 
| 7244 7244 | 
             
                    return Math.round(low + Math.random() * (high - low));
         | 
| 7245 7245 | 
             
                  }
         | 
| 7246 | 
            -
                  function doQuickSort(ary, comparator,  | 
| 7247 | 
            -
                    if ( | 
| 7248 | 
            -
                      var pivotIndex = randomIntInRange( | 
| 7249 | 
            -
                      var i =  | 
| 7246 | 
            +
                  function doQuickSort(ary, comparator, p2, r) {
         | 
| 7247 | 
            +
                    if (p2 < r) {
         | 
| 7248 | 
            +
                      var pivotIndex = randomIntInRange(p2, r);
         | 
| 7249 | 
            +
                      var i = p2 - 1;
         | 
| 7250 7250 | 
             
                      swap(ary, pivotIndex, r);
         | 
| 7251 7251 | 
             
                      var pivot = ary[r];
         | 
| 7252 | 
            -
                      for (var j =  | 
| 7252 | 
            +
                      for (var j = p2; j < r; j++) {
         | 
| 7253 7253 | 
             
                        if (comparator(ary[j], pivot) <= 0) {
         | 
| 7254 7254 | 
             
                          i += 1;
         | 
| 7255 7255 | 
             
                          swap(ary, i, j);
         | 
| @@ -7257,7 +7257,7 @@ var require_node2 = __commonJS({ | |
| 7257 7257 | 
             
                      }
         | 
| 7258 7258 | 
             
                      swap(ary, i + 1, j);
         | 
| 7259 7259 | 
             
                      var q = i + 1;
         | 
| 7260 | 
            -
                      doQuickSort(ary, comparator,  | 
| 7260 | 
            +
                      doQuickSort(ary, comparator, p2, q - 1);
         | 
| 7261 7261 | 
             
                      doQuickSort(ary, comparator, q + 1, r);
         | 
| 7262 7262 | 
             
                    }
         | 
| 7263 7263 | 
             
                  }
         | 
| @@ -8136,7 +8136,7 @@ var require_node2 = __commonJS({ | |
| 8136 8136 | 
             
                });
         | 
| 8137 8137 | 
             
                var require_source_map_support = __commonJS2((exports2, module22) => {
         | 
| 8138 8138 | 
             
                  var SourceMapConsumer = require_source_map().SourceMapConsumer;
         | 
| 8139 | 
            -
                  var  | 
| 8139 | 
            +
                  var path5 = require("path");
         | 
| 8140 8140 | 
             
                  var fs32;
         | 
| 8141 8141 | 
             
                  try {
         | 
| 8142 8142 | 
             
                    fs32 = require("fs");
         | 
| @@ -8209,15 +8209,15 @@ var require_node2 = __commonJS({ | |
| 8209 8209 | 
             
                  function supportRelativeURL(file, url) {
         | 
| 8210 8210 | 
             
                    if (!file)
         | 
| 8211 8211 | 
             
                      return url;
         | 
| 8212 | 
            -
                    var dir =  | 
| 8212 | 
            +
                    var dir = path5.dirname(file);
         | 
| 8213 8213 | 
             
                    var match2 = /^\w+:\/\/[^\/]*/.exec(dir);
         | 
| 8214 8214 | 
             
                    var protocol = match2 ? match2[0] : "";
         | 
| 8215 8215 | 
             
                    var startPath = dir.slice(protocol.length);
         | 
| 8216 8216 | 
             
                    if (protocol && /^\/\w\:/.test(startPath)) {
         | 
| 8217 8217 | 
             
                      protocol += "/";
         | 
| 8218 | 
            -
                      return protocol +  | 
| 8218 | 
            +
                      return protocol + path5.resolve(dir.slice(protocol.length), url).replace(/\\/g, "/");
         | 
| 8219 8219 | 
             
                    }
         | 
| 8220 | 
            -
                    return protocol +  | 
| 8220 | 
            +
                    return protocol + path5.resolve(dir.slice(protocol.length), url);
         | 
| 8221 8221 | 
             
                  }
         | 
| 8222 8222 | 
             
                  function retrieveSourceMapURL(source) {
         | 
| 8223 8223 | 
             
                    var fileData;
         | 
| @@ -8697,7 +8697,7 @@ var require_node2 = __commonJS({ | |
| 8697 8697 | 
             
                      });
         | 
| 8698 8698 | 
             
                    };
         | 
| 8699 8699 | 
             
                  }
         | 
| 8700 | 
            -
                  var  | 
| 8700 | 
            +
                  var readFile2 = (fp) => new Promise((resolve2, reject) => {
         | 
| 8701 8701 | 
             
                    _fs.default.readFile(fp, "utf8", (err2, data) => {
         | 
| 8702 8702 | 
             
                      if (err2)
         | 
| 8703 8703 | 
             
                        return reject(err2);
         | 
| @@ -8895,7 +8895,7 @@ var require_node2 = __commonJS({ | |
| 8895 8895 | 
             
                                data: _this3.packageJsonCache.get(filepath)[options.packageKey]
         | 
| 8896 8896 | 
             
                              };
         | 
| 8897 8897 | 
             
                            }
         | 
| 8898 | 
            -
                            const data = _this3.options.parseJSON(yield  | 
| 8898 | 
            +
                            const data = _this3.options.parseJSON(yield readFile2(filepath));
         | 
| 8899 8899 | 
             
                            return {
         | 
| 8900 8900 | 
             
                              path: filepath,
         | 
| 8901 8901 | 
             
                              data
         | 
| @@ -8903,7 +8903,7 @@ var require_node2 = __commonJS({ | |
| 8903 8903 | 
             
                          }
         | 
| 8904 8904 | 
             
                          return {
         | 
| 8905 8905 | 
             
                            path: filepath,
         | 
| 8906 | 
            -
                            data: yield  | 
| 8906 | 
            +
                            data: yield readFile2(filepath)
         | 
| 8907 8907 | 
             
                          };
         | 
| 8908 8908 | 
             
                        }
         | 
| 8909 8909 | 
             
                        return {};
         | 
| @@ -9013,12 +9013,12 @@ var require_node2 = __commonJS({ | |
| 9013 9013 | 
             
                  Object.defineProperty(exports2, "__esModule", { value: true });
         | 
| 9014 9014 | 
             
                  exports2.removeExtension = exports2.fileExistsAsync = exports2.readJsonFromDiskAsync = exports2.readJsonFromDiskSync = exports2.fileExistsSync = void 0;
         | 
| 9015 9015 | 
             
                  var fs32 = require("fs");
         | 
| 9016 | 
            -
                  function fileExistsSync( | 
| 9017 | 
            -
                    if (!fs32.existsSync( | 
| 9016 | 
            +
                  function fileExistsSync(path5) {
         | 
| 9017 | 
            +
                    if (!fs32.existsSync(path5)) {
         | 
| 9018 9018 | 
             
                      return false;
         | 
| 9019 9019 | 
             
                    }
         | 
| 9020 9020 | 
             
                    try {
         | 
| 9021 | 
            -
                      var stats = fs32.statSync( | 
| 9021 | 
            +
                      var stats = fs32.statSync(path5);
         | 
| 9022 9022 | 
             
                      return stats.isFile();
         | 
| 9023 9023 | 
             
                    } catch (err2) {
         | 
| 9024 9024 | 
             
                      return false;
         | 
| @@ -9032,8 +9032,8 @@ var require_node2 = __commonJS({ | |
| 9032 9032 | 
             
                    return require(packageJsonPath);
         | 
| 9033 9033 | 
             
                  }
         | 
| 9034 9034 | 
             
                  exports2.readJsonFromDiskSync = readJsonFromDiskSync;
         | 
| 9035 | 
            -
                  function readJsonFromDiskAsync( | 
| 9036 | 
            -
                    fs32.readFile( | 
| 9035 | 
            +
                  function readJsonFromDiskAsync(path5, callback) {
         | 
| 9036 | 
            +
                    fs32.readFile(path5, "utf8", function(err2, result) {
         | 
| 9037 9037 | 
             
                      if (err2 || !result) {
         | 
| 9038 9038 | 
             
                        return callback();
         | 
| 9039 9039 | 
             
                      }
         | 
| @@ -9051,8 +9051,8 @@ var require_node2 = __commonJS({ | |
| 9051 9051 | 
             
                    });
         | 
| 9052 9052 | 
             
                  }
         | 
| 9053 9053 | 
             
                  exports2.fileExistsAsync = fileExistsAsync;
         | 
| 9054 | 
            -
                  function removeExtension( | 
| 9055 | 
            -
                    return  | 
| 9054 | 
            +
                  function removeExtension(path5) {
         | 
| 9055 | 
            +
                    return path5.substring(0, path5.lastIndexOf(".")) || path5;
         | 
| 9056 9056 | 
             
                  }
         | 
| 9057 9057 | 
             
                  exports2.removeExtension = removeExtension;
         | 
| 9058 9058 | 
             
                });
         | 
| @@ -9060,7 +9060,7 @@ var require_node2 = __commonJS({ | |
| 9060 9060 | 
             
                  "use strict";
         | 
| 9061 9061 | 
             
                  Object.defineProperty(exports2, "__esModule", { value: true });
         | 
| 9062 9062 | 
             
                  exports2.getAbsoluteMappingEntries = void 0;
         | 
| 9063 | 
            -
                  var  | 
| 9063 | 
            +
                  var path5 = require("path");
         | 
| 9064 9064 | 
             
                  function getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll) {
         | 
| 9065 9065 | 
             
                    var sortedKeys = sortByLongestPrefix(Object.keys(paths));
         | 
| 9066 9066 | 
             
                    var absolutePaths = [];
         | 
| @@ -9069,7 +9069,7 @@ var require_node2 = __commonJS({ | |
| 9069 9069 | 
             
                      absolutePaths.push({
         | 
| 9070 9070 | 
             
                        pattern: key,
         | 
| 9071 9071 | 
             
                        paths: paths[key].map(function(pathToResolve) {
         | 
| 9072 | 
            -
                          return  | 
| 9072 | 
            +
                          return path5.resolve(absoluteBaseUrl, pathToResolve);
         | 
| 9073 9073 | 
             
                        })
         | 
| 9074 9074 | 
             
                      });
         | 
| 9075 9075 | 
             
                    }
         | 
| @@ -9096,7 +9096,7 @@ var require_node2 = __commonJS({ | |
| 9096 9096 | 
             
                  "use strict";
         | 
| 9097 9097 | 
             
                  Object.defineProperty(exports2, "__esModule", { value: true });
         | 
| 9098 9098 | 
             
                  exports2.exhaustiveTypeException = exports2.getStrippedPath = exports2.getPathsToTry = void 0;
         | 
| 9099 | 
            -
                  var  | 
| 9099 | 
            +
                  var path5 = require("path");
         | 
| 9100 9100 | 
             
                  var path_1 = require("path");
         | 
| 9101 9101 | 
             
                  var filesystem_1 = require_filesystem();
         | 
| 9102 9102 | 
             
                  function getPathsToTry(extensions, absolutePathMappings, requestedModule) {
         | 
| @@ -9116,9 +9116,9 @@ var require_node2 = __commonJS({ | |
| 9116 9116 | 
             
                          }));
         | 
| 9117 9117 | 
             
                          pathsToTry.push({
         | 
| 9118 9118 | 
             
                            type: "package",
         | 
| 9119 | 
            -
                            path:  | 
| 9119 | 
            +
                            path: path5.join(physicalPath, "/package.json")
         | 
| 9120 9120 | 
             
                          });
         | 
| 9121 | 
            -
                          var indexPath =  | 
| 9121 | 
            +
                          var indexPath = path5.join(physicalPath, "/index");
         | 
| 9122 9122 | 
             
                          pathsToTry.push.apply(pathsToTry, extensions.map(function(e) {
         | 
| 9123 9123 | 
             
                            return { type: "index", path: indexPath + e };
         | 
| 9124 9124 | 
             
                          }));
         | 
| @@ -9166,7 +9166,7 @@ var require_node2 = __commonJS({ | |
| 9166 9166 | 
             
                  "use strict";
         | 
| 9167 9167 | 
             
                  Object.defineProperty(exports2, "__esModule", { value: true });
         | 
| 9168 9168 | 
             
                  exports2.matchFromAbsolutePaths = exports2.createMatchPath = void 0;
         | 
| 9169 | 
            -
                  var  | 
| 9169 | 
            +
                  var path5 = require("path");
         | 
| 9170 9170 | 
             
                  var Filesystem = require_filesystem();
         | 
| 9171 9171 | 
             
                  var MappingEntry = require_mapping_entry();
         | 
| 9172 9172 | 
             
                  var TryPath = require_try_path();
         | 
| @@ -9210,7 +9210,7 @@ var require_node2 = __commonJS({ | |
| 9210 9210 | 
             
                        return obj[key];
         | 
| 9211 9211 | 
             
                      }, packageJson);
         | 
| 9212 9212 | 
             
                      if (candidateMapping && typeof candidateMapping === "string") {
         | 
| 9213 | 
            -
                        var candidateFilePath =  | 
| 9213 | 
            +
                        var candidateFilePath = path5.join(path5.dirname(packageJsonPath), candidateMapping);
         | 
| 9214 9214 | 
             
                        if (fileExists(candidateFilePath)) {
         | 
| 9215 9215 | 
             
                          return candidateFilePath;
         | 
| 9216 9216 | 
             
                        }
         | 
| @@ -9250,7 +9250,7 @@ var require_node2 = __commonJS({ | |
| 9250 9250 | 
             
                  "use strict";
         | 
| 9251 9251 | 
             
                  Object.defineProperty(exports2, "__esModule", { value: true });
         | 
| 9252 9252 | 
             
                  exports2.matchFromAbsolutePathsAsync = exports2.createMatchPathAsync = void 0;
         | 
| 9253 | 
            -
                  var  | 
| 9253 | 
            +
                  var path5 = require("path");
         | 
| 9254 9254 | 
             
                  var TryPath = require_try_path();
         | 
| 9255 9255 | 
             
                  var MappingEntry = require_mapping_entry();
         | 
| 9256 9256 | 
             
                  var Filesystem = require_filesystem();
         | 
| @@ -9304,7 +9304,7 @@ var require_node2 = __commonJS({ | |
| 9304 9304 | 
             
                    if (typeof mainFieldMapping !== "string") {
         | 
| 9305 9305 | 
             
                      return tryNext();
         | 
| 9306 9306 | 
             
                    }
         | 
| 9307 | 
            -
                    var mappedFilePath =  | 
| 9307 | 
            +
                    var mappedFilePath = path5.join(path5.dirname(packageJsonPath), mainFieldMapping);
         | 
| 9308 9308 | 
             
                    fileExistsAsync(mappedFilePath, function(err2, exists) {
         | 
| 9309 9309 | 
             
                      if (err2) {
         | 
| 9310 9310 | 
             
                        return doneCallback(err2);
         | 
| @@ -9954,8 +9954,8 @@ var require_node2 = __commonJS({ | |
| 9954 9954 | 
             
                  }
         | 
| 9955 9955 | 
             
                  function literal(s) {
         | 
| 9956 9956 | 
             
                    for (const c2 of s) {
         | 
| 9957 | 
            -
                      const  | 
| 9958 | 
            -
                      if ( | 
| 9957 | 
            +
                      const p2 = peek();
         | 
| 9958 | 
            +
                      if (p2 !== c2) {
         | 
| 9959 9959 | 
             
                        throw invalidChar(read());
         | 
| 9960 9960 | 
             
                      }
         | 
| 9961 9961 | 
             
                      read();
         | 
| @@ -10469,9 +10469,9 @@ var require_node2 = __commonJS({ | |
| 10469 10469 | 
             
                    __assign = Object.assign || function(t) {
         | 
| 10470 10470 | 
             
                      for (var s, i = 1, n = arguments.length; i < n; i++) {
         | 
| 10471 10471 | 
             
                        s = arguments[i];
         | 
| 10472 | 
            -
                        for (var  | 
| 10473 | 
            -
                          if (Object.prototype.hasOwnProperty.call(s,  | 
| 10474 | 
            -
                            t[ | 
| 10472 | 
            +
                        for (var p2 in s)
         | 
| 10473 | 
            +
                          if (Object.prototype.hasOwnProperty.call(s, p2))
         | 
| 10474 | 
            +
                            t[p2] = s[p2];
         | 
| 10475 10475 | 
             
                      }
         | 
| 10476 10476 | 
             
                      return t;
         | 
| 10477 10477 | 
             
                    };
         | 
| @@ -10479,7 +10479,7 @@ var require_node2 = __commonJS({ | |
| 10479 10479 | 
             
                  };
         | 
| 10480 10480 | 
             
                  Object.defineProperty(exports2, "__esModule", { value: true });
         | 
| 10481 10481 | 
             
                  exports2.loadTsconfig = exports2.walkForTsConfig = exports2.tsConfigLoader = void 0;
         | 
| 10482 | 
            -
                  var  | 
| 10482 | 
            +
                  var path5 = require("path");
         | 
| 10483 10483 | 
             
                  var fs32 = require("fs");
         | 
| 10484 10484 | 
             
                  var JSON5 = require_lib32();
         | 
| 10485 10485 | 
             
                  var StripBom = require_strip_bom();
         | 
| @@ -10509,14 +10509,14 @@ var require_node2 = __commonJS({ | |
| 10509 10509 | 
             
                  }
         | 
| 10510 10510 | 
             
                  function resolveConfigPath(cwd, filename) {
         | 
| 10511 10511 | 
             
                    if (filename) {
         | 
| 10512 | 
            -
                      var absolutePath = fs32.lstatSync(filename).isDirectory() ?  | 
| 10512 | 
            +
                      var absolutePath = fs32.lstatSync(filename).isDirectory() ? path5.resolve(filename, "./tsconfig.json") : path5.resolve(cwd, filename);
         | 
| 10513 10513 | 
             
                      return absolutePath;
         | 
| 10514 10514 | 
             
                    }
         | 
| 10515 10515 | 
             
                    if (fs32.statSync(cwd).isFile()) {
         | 
| 10516 | 
            -
                      return  | 
| 10516 | 
            +
                      return path5.resolve(cwd);
         | 
| 10517 10517 | 
             
                    }
         | 
| 10518 10518 | 
             
                    var configAbsolutePath = walkForTsConfig(cwd);
         | 
| 10519 | 
            -
                    return configAbsolutePath ?  | 
| 10519 | 
            +
                    return configAbsolutePath ? path5.resolve(configAbsolutePath) : void 0;
         | 
| 10520 10520 | 
             
                  }
         | 
| 10521 10521 | 
             
                  function walkForTsConfig(directory, readdirSync3) {
         | 
| 10522 10522 | 
             
                    if (readdirSync3 === void 0) {
         | 
| @@ -10527,10 +10527,10 @@ var require_node2 = __commonJS({ | |
| 10527 10527 | 
             
                    for (var _i = 0, filesToCheck_1 = filesToCheck; _i < filesToCheck_1.length; _i++) {
         | 
| 10528 10528 | 
             
                      var fileToCheck = filesToCheck_1[_i];
         | 
| 10529 10529 | 
             
                      if (files.indexOf(fileToCheck) !== -1) {
         | 
| 10530 | 
            -
                        return  | 
| 10530 | 
            +
                        return path5.join(directory, fileToCheck);
         | 
| 10531 10531 | 
             
                      }
         | 
| 10532 10532 | 
             
                    }
         | 
| 10533 | 
            -
                    var parentDirectory =  | 
| 10533 | 
            +
                    var parentDirectory = path5.dirname(directory);
         | 
| 10534 10534 | 
             
                    if (directory === parentDirectory) {
         | 
| 10535 10535 | 
             
                      return void 0;
         | 
| 10536 10536 | 
             
                    }
         | 
| @@ -10577,15 +10577,15 @@ var require_node2 = __commonJS({ | |
| 10577 10577 | 
             
                    if (typeof extendedConfigValue === "string" && extendedConfigValue.indexOf(".json") === -1) {
         | 
| 10578 10578 | 
             
                      extendedConfigValue += ".json";
         | 
| 10579 10579 | 
             
                    }
         | 
| 10580 | 
            -
                    var currentDir =  | 
| 10581 | 
            -
                    var extendedConfigPath =  | 
| 10580 | 
            +
                    var currentDir = path5.dirname(configFilePath);
         | 
| 10581 | 
            +
                    var extendedConfigPath = path5.join(currentDir, extendedConfigValue);
         | 
| 10582 10582 | 
             
                    if (extendedConfigValue.indexOf("/") !== -1 && extendedConfigValue.indexOf(".") !== -1 && !existsSync4(extendedConfigPath)) {
         | 
| 10583 | 
            -
                      extendedConfigPath =  | 
| 10583 | 
            +
                      extendedConfigPath = path5.join(currentDir, "node_modules", extendedConfigValue);
         | 
| 10584 10584 | 
             
                    }
         | 
| 10585 10585 | 
             
                    var config = loadTsconfig(extendedConfigPath, existsSync4, readFileSync4) || {};
         | 
| 10586 10586 | 
             
                    if ((_a3 = config.compilerOptions) === null || _a3 === void 0 ? void 0 : _a3.baseUrl) {
         | 
| 10587 | 
            -
                      var extendsDir =  | 
| 10588 | 
            -
                      config.compilerOptions.baseUrl =  | 
| 10587 | 
            +
                      var extendsDir = path5.dirname(extendedConfigValue);
         | 
| 10588 | 
            +
                      config.compilerOptions.baseUrl = path5.join(extendsDir, config.compilerOptions.baseUrl);
         | 
| 10589 10589 | 
             
                    }
         | 
| 10590 10590 | 
             
                    return config;
         | 
| 10591 10591 | 
             
                  }
         | 
| @@ -10600,7 +10600,7 @@ var require_node2 = __commonJS({ | |
| 10600 10600 | 
             
                  Object.defineProperty(exports2, "__esModule", { value: true });
         | 
| 10601 10601 | 
             
                  exports2.configLoader = exports2.loadConfig = void 0;
         | 
| 10602 10602 | 
             
                  var TsConfigLoader2 = require_tsconfig_loader();
         | 
| 10603 | 
            -
                  var  | 
| 10603 | 
            +
                  var path5 = require("path");
         | 
| 10604 10604 | 
             
                  function loadConfig2(cwd) {
         | 
| 10605 10605 | 
             
                    if (cwd === void 0) {
         | 
| 10606 10606 | 
             
                      cwd = process.cwd();
         | 
| @@ -10611,7 +10611,7 @@ var require_node2 = __commonJS({ | |
| 10611 10611 | 
             
                  function configLoader(_a3) {
         | 
| 10612 10612 | 
             
                    var cwd = _a3.cwd, explicitParams = _a3.explicitParams, _b = _a3.tsConfigLoader, tsConfigLoader = _b === void 0 ? TsConfigLoader2.tsConfigLoader : _b;
         | 
| 10613 10613 | 
             
                    if (explicitParams) {
         | 
| 10614 | 
            -
                      var absoluteBaseUrl =  | 
| 10614 | 
            +
                      var absoluteBaseUrl = path5.isAbsolute(explicitParams.baseUrl) ? explicitParams.baseUrl : path5.join(cwd, explicitParams.baseUrl);
         | 
| 10615 10615 | 
             
                      return {
         | 
| 10616 10616 | 
             
                        resultType: "success",
         | 
| 10617 10617 | 
             
                        configFileAbsolutePath: "",
         | 
| @@ -10638,7 +10638,7 @@ var require_node2 = __commonJS({ | |
| 10638 10638 | 
             
                      resultType: "success",
         | 
| 10639 10639 | 
             
                      configFileAbsolutePath: loadResult.tsConfigPath,
         | 
| 10640 10640 | 
             
                      baseUrl: loadResult.baseUrl,
         | 
| 10641 | 
            -
                      absoluteBaseUrl:  | 
| 10641 | 
            +
                      absoluteBaseUrl: path5.resolve(path5.dirname(loadResult.tsConfigPath), loadResult.baseUrl || ""),
         | 
| 10642 10642 | 
             
                      paths: loadResult.paths || {},
         | 
| 10643 10643 | 
             
                      addMatchAll: loadResult.baseUrl !== void 0
         | 
| 10644 10644 | 
             
                    };
         | 
| @@ -11094,8 +11094,8 @@ var require_node2 = __commonJS({ | |
| 11094 11094 | 
             
                });
         | 
| 11095 11095 | 
             
                var getOptions = (cwd) => {
         | 
| 11096 11096 | 
             
                  var _a3, _b, _c, _d;
         | 
| 11097 | 
            -
                  const { data, path:  | 
| 11098 | 
            -
                  if ( | 
| 11097 | 
            +
                  const { data, path: path5 } = joycon.loadSync(["tsconfig.json", "jsconfig.json"], cwd);
         | 
| 11098 | 
            +
                  if (path5 && data) {
         | 
| 11099 11099 | 
             
                    return {
         | 
| 11100 11100 | 
             
                      jsxFactory: (_a3 = data.compilerOptions) == null ? void 0 : _a3.jsxFactory,
         | 
| 11101 11101 | 
             
                      jsxFragment: (_b = data.compilerOptions) == null ? void 0 : _b.jsxFragmentFactory,
         | 
| @@ -11443,14 +11443,14 @@ var init_utils = __esm({ | |
| 11443 11443 | 
             
                      )
         | 
| 11444 11444 | 
             
                    );
         | 
| 11445 11445 | 
             
                  }
         | 
| 11446 | 
            -
                  const  | 
| 11447 | 
            -
                  if (!(0, import_fs.existsSync)( | 
| 11448 | 
            -
                    console.log(`${ | 
| 11446 | 
            +
                  const path5 = (0, import_path.join)((0, import_path.resolve)(configPath ?? defaultConfigPath));
         | 
| 11447 | 
            +
                  if (!(0, import_fs.existsSync)(path5)) {
         | 
| 11448 | 
            +
                    console.log(`${path5} file does not exist`);
         | 
| 11449 11449 | 
             
                    process.exit(1);
         | 
| 11450 11450 | 
             
                  }
         | 
| 11451 | 
            -
                  console.log(source_default.grey(`Reading config file '${ | 
| 11451 | 
            +
                  console.log(source_default.grey(`Reading config file '${path5}'`));
         | 
| 11452 11452 | 
             
                  const { unregister } = await safeRegister();
         | 
| 11453 | 
            -
                  const required = require(`${ | 
| 11453 | 
            +
                  const required = require(`${path5}`);
         | 
| 11454 11454 | 
             
                  const content = required.default ?? required;
         | 
| 11455 11455 | 
             
                  unregister();
         | 
| 11456 11456 | 
             
                  const res = mySqlCliConfigSchema.safeParse(content);
         | 
| @@ -11473,14 +11473,14 @@ var init_utils = __esm({ | |
| 11473 11473 | 
             
                  if (!configPath) {
         | 
| 11474 11474 | 
             
                    console.log(source_default.gray(`No config path provided, using default path`));
         | 
| 11475 11475 | 
             
                  }
         | 
| 11476 | 
            -
                  const  | 
| 11477 | 
            -
                  if (!(0, import_fs.existsSync)( | 
| 11478 | 
            -
                    console.log(source_default.red(`${ | 
| 11476 | 
            +
                  const path5 = (0, import_path.join)((0, import_path.resolve)(configPath ?? defaultConfigPath));
         | 
| 11477 | 
            +
                  if (!(0, import_fs.existsSync)(path5)) {
         | 
| 11478 | 
            +
                    console.log(source_default.red(`${path5} file does not exist`));
         | 
| 11479 11479 | 
             
                    process.exit(1);
         | 
| 11480 11480 | 
             
                  }
         | 
| 11481 | 
            -
                  console.log(source_default.grey(`Reading config file '${ | 
| 11481 | 
            +
                  console.log(source_default.grey(`Reading config file '${path5}'`));
         | 
| 11482 11482 | 
             
                  const { unregister } = await safeRegister();
         | 
| 11483 | 
            -
                  const required = require(`${ | 
| 11483 | 
            +
                  const required = require(`${path5}`);
         | 
| 11484 11484 | 
             
                  const content = required.default ?? required;
         | 
| 11485 11485 | 
             
                  unregister();
         | 
| 11486 11486 | 
             
                  return content;
         | 
| @@ -12173,10 +12173,9 @@ var pgSerializer_exports = {}; | |
| 12173 12173 | 
             
            __export(pgSerializer_exports, {
         | 
| 12174 12174 | 
             
              fromDatabase: () => fromDatabase2,
         | 
| 12175 12175 | 
             
              generatePgSnapshot: () => generatePgSnapshot,
         | 
| 12176 | 
            -
              indexName: () => indexName2 | 
| 12177 | 
            -
              toDrizzle: () => toDrizzle
         | 
| 12176 | 
            +
              indexName: () => indexName2
         | 
| 12178 12177 | 
             
            });
         | 
| 12179 | 
            -
            var import_pg_core2, import_pg_core3, import_drizzle_orm5, dialect4, indexName2, generatePgSnapshot, trimChar, fromDatabase2, columnToDefault, defaultForColumn | 
| 12178 | 
            +
            var import_pg_core2, import_pg_core3, import_drizzle_orm5, dialect4, indexName2, generatePgSnapshot, trimChar, fromDatabase2, columnToDefault, defaultForColumn;
         | 
| 12180 12179 | 
             
            var init_pgSerializer = __esm({
         | 
| 12181 12180 | 
             
              "src/serializer/pgSerializer.ts"() {
         | 
| 12182 12181 | 
             
                import_pg_core2 = require("drizzle-orm/pg-core");
         | 
| @@ -12806,108 +12805,6 @@ ${withStyle.errorWarning( | |
| 12806 12805 | 
             
                    }
         | 
| 12807 12806 | 
             
                  }
         | 
| 12808 12807 | 
             
                };
         | 
| 12809 | 
            -
                toDrizzle = (schema4, schemaName) => {
         | 
| 12810 | 
            -
                  const tables = {};
         | 
| 12811 | 
            -
                  Object.values(schema4.tables).forEach((t) => {
         | 
| 12812 | 
            -
                    const columns = {};
         | 
| 12813 | 
            -
                    Object.values(t.columns).forEach((c) => {
         | 
| 12814 | 
            -
                      const columnName = c.name;
         | 
| 12815 | 
            -
                      const type = c.type;
         | 
| 12816 | 
            -
                      let columnBuilder;
         | 
| 12817 | 
            -
                      if (type === "bigint") {
         | 
| 12818 | 
            -
                        columnBuilder = new import_pg_core2.PgBigInt53Builder(columnName);
         | 
| 12819 | 
            -
                      } else if (type === "bigserial") {
         | 
| 12820 | 
            -
                        columnBuilder = new import_pg_core2.PgBigSerial53Builder(columnName);
         | 
| 12821 | 
            -
                      } else if (type === "boolean") {
         | 
| 12822 | 
            -
                        columnBuilder = new import_pg_core2.PgBooleanBuilder(columnName);
         | 
| 12823 | 
            -
                      } else if (type === "cidr") {
         | 
| 12824 | 
            -
                        columnBuilder = new import_pg_core2.PgCidrBuilder(columnName);
         | 
| 12825 | 
            -
                      } else if (type === "date") {
         | 
| 12826 | 
            -
                        columnBuilder = new import_pg_core2.PgDateBuilder(columnName);
         | 
| 12827 | 
            -
                      } else if (type === "double precision") {
         | 
| 12828 | 
            -
                        columnBuilder = new import_pg_core2.PgDoublePrecisionBuilder(columnName);
         | 
| 12829 | 
            -
                      } else if (type === "inet") {
         | 
| 12830 | 
            -
                        columnBuilder = new import_pg_core2.PgInetBuilder(columnName);
         | 
| 12831 | 
            -
                      } else if (type === "integer") {
         | 
| 12832 | 
            -
                        columnBuilder = new import_pg_core2.PgIntegerBuilder(columnName);
         | 
| 12833 | 
            -
                      } else if (type === "interval" || type.startsWith("interval ")) {
         | 
| 12834 | 
            -
                        columnBuilder = new import_pg_core2.PgIntervalBuilder(columnName, {});
         | 
| 12835 | 
            -
                      } else if (type === "json") {
         | 
| 12836 | 
            -
                        columnBuilder = new import_pg_core2.PgJsonBuilder(columnName);
         | 
| 12837 | 
            -
                      } else if (type === "jsonb") {
         | 
| 12838 | 
            -
                        columnBuilder = new import_pg_core2.PgJsonbBuilder(columnName);
         | 
| 12839 | 
            -
                      } else if (type === "macaddr") {
         | 
| 12840 | 
            -
                        columnBuilder = new import_pg_core2.PgMacaddrBuilder(columnName);
         | 
| 12841 | 
            -
                      } else if (type === "macaddr8") {
         | 
| 12842 | 
            -
                        columnBuilder = new import_pg_core2.PgMacaddr8Builder(columnName);
         | 
| 12843 | 
            -
                      } else if (type === "numeric" || type.startsWith("numeric(")) {
         | 
| 12844 | 
            -
                        columnBuilder = new import_pg_core2.PgNumericBuilder(columnName);
         | 
| 12845 | 
            -
                      } else if (type === "real") {
         | 
| 12846 | 
            -
                        columnBuilder = new import_pg_core2.PgRealBuilder(columnName);
         | 
| 12847 | 
            -
                      } else if (type === "serial") {
         | 
| 12848 | 
            -
                        columnBuilder = new import_pg_core2.PgSerialBuilder(columnName);
         | 
| 12849 | 
            -
                      } else if (type === "smallint") {
         | 
| 12850 | 
            -
                        columnBuilder = new import_pg_core2.PgSmallIntBuilder(columnName);
         | 
| 12851 | 
            -
                      } else if (type === "smallserial") {
         | 
| 12852 | 
            -
                        columnBuilder = new import_pg_core2.PgSmallSerialBuilder(columnName);
         | 
| 12853 | 
            -
                      } else if (type === "text") {
         | 
| 12854 | 
            -
                        columnBuilder = new import_pg_core2.PgTextBuilder(columnName, {});
         | 
| 12855 | 
            -
                      } else if (type === "time" || type.startsWith("time(") || type === "time with time zone") {
         | 
| 12856 | 
            -
                        columnBuilder = new import_pg_core2.PgTimeBuilder(columnName, false, void 0);
         | 
| 12857 | 
            -
                      } else if (type === "timestamp" || type.startsWith("timestamp(") || type === "timestamp with time zone") {
         | 
| 12858 | 
            -
                        columnBuilder = new import_pg_core2.PgTimestampBuilder(columnName, false, void 0);
         | 
| 12859 | 
            -
                      } else if (type === "uuid") {
         | 
| 12860 | 
            -
                        columnBuilder = new import_pg_core2.PgUUIDBuilder(columnName);
         | 
| 12861 | 
            -
                      } else if (type === "varchar" || type.startsWith("varchar(")) {
         | 
| 12862 | 
            -
                        columnBuilder = new import_pg_core2.PgVarcharBuilder(columnName, {});
         | 
| 12863 | 
            -
                      } else if (type === "char" || type.startsWith("char(")) {
         | 
| 12864 | 
            -
                        columnBuilder = new import_pg_core2.PgCharBuilder(columnName, {});
         | 
| 12865 | 
            -
                      } else {
         | 
| 12866 | 
            -
                        columnBuilder = (0, import_pg_core2.customType)({
         | 
| 12867 | 
            -
                          dataType() {
         | 
| 12868 | 
            -
                            return type;
         | 
| 12869 | 
            -
                          }
         | 
| 12870 | 
            -
                        })(columnName);
         | 
| 12871 | 
            -
                      }
         | 
| 12872 | 
            -
                      if (c.notNull) {
         | 
| 12873 | 
            -
                        columnBuilder = columnBuilder.notNull();
         | 
| 12874 | 
            -
                      }
         | 
| 12875 | 
            -
                      if (c.default) {
         | 
| 12876 | 
            -
                        columnBuilder = columnBuilder.default(c.default);
         | 
| 12877 | 
            -
                      }
         | 
| 12878 | 
            -
                      if (c.primaryKey) {
         | 
| 12879 | 
            -
                        columnBuilder = columnBuilder.primaryKey();
         | 
| 12880 | 
            -
                      }
         | 
| 12881 | 
            -
                      columns[columnName] = columnBuilder;
         | 
| 12882 | 
            -
                    });
         | 
| 12883 | 
            -
                    if (schemaName === "public") {
         | 
| 12884 | 
            -
                      tables[t.name] = (0, import_pg_core2.pgTable)(t.name, columns, (cb) => {
         | 
| 12885 | 
            -
                        const res = {};
         | 
| 12886 | 
            -
                        Object.values(t.compositePrimaryKeys).forEach((cpk) => {
         | 
| 12887 | 
            -
                          const gh = cpk.columns.map((c) => cb[c]);
         | 
| 12888 | 
            -
                          res[cpk.name] = new import_pg_core2.PrimaryKeyBuilder(
         | 
| 12889 | 
            -
                            gh,
         | 
| 12890 | 
            -
                            cpk.name
         | 
| 12891 | 
            -
                          );
         | 
| 12892 | 
            -
                        });
         | 
| 12893 | 
            -
                        return res;
         | 
| 12894 | 
            -
                      });
         | 
| 12895 | 
            -
                    } else {
         | 
| 12896 | 
            -
                      tables[t.name] = (0, import_pg_core2.pgSchema)(schemaName).table(t.name, columns, (cb) => {
         | 
| 12897 | 
            -
                        const res = {};
         | 
| 12898 | 
            -
                        Object.values(t.compositePrimaryKeys).forEach((cpk) => {
         | 
| 12899 | 
            -
                          const gh = cpk.columns.map((c) => cb[c]);
         | 
| 12900 | 
            -
                          res[cpk.name] = new import_pg_core2.PrimaryKeyBuilder(
         | 
| 12901 | 
            -
                            gh,
         | 
| 12902 | 
            -
                            cpk.name
         | 
| 12903 | 
            -
                          );
         | 
| 12904 | 
            -
                        });
         | 
| 12905 | 
            -
                        return res;
         | 
| 12906 | 
            -
                      });
         | 
| 12907 | 
            -
                    }
         | 
| 12908 | 
            -
                  });
         | 
| 12909 | 
            -
                  return tables;
         | 
| 12910 | 
            -
                };
         | 
| 12911 12808 | 
             
              }
         | 
| 12912 12809 | 
             
            });
         | 
| 12913 12810 |  | 
| @@ -12946,8 +12843,7 @@ var init_sqliteImports = __esm({ | |
| 12946 12843 | 
             
            var sqliteSerializer_exports = {};
         | 
| 12947 12844 | 
             
            __export(sqliteSerializer_exports, {
         | 
| 12948 12845 | 
             
              fromDatabase: () => fromDatabase3,
         | 
| 12949 | 
            -
              generateSqliteSnapshot: () => generateSqliteSnapshot | 
| 12950 | 
            -
              toDrizzle: () => toDrizzle2
         | 
| 12846 | 
            +
              generateSqliteSnapshot: () => generateSqliteSnapshot
         | 
| 12951 12847 | 
             
            });
         | 
| 12952 12848 | 
             
            function mapSqlToSqliteType(sqlType) {
         | 
| 12953 12849 | 
             
              if ([
         | 
| @@ -12984,7 +12880,7 @@ function mapSqlToSqliteType(sqlType) { | |
| 12984 12880 | 
             
                return "numeric";
         | 
| 12985 12881 | 
             
              }
         | 
| 12986 12882 | 
             
            }
         | 
| 12987 | 
            -
            var import_drizzle_orm7, import_sqlite_core2, dialect5, generateSqliteSnapshot, fromDatabase3 | 
| 12883 | 
            +
            var import_drizzle_orm7, import_sqlite_core2, dialect5, generateSqliteSnapshot, fromDatabase3;
         | 
| 12988 12884 | 
             
            var init_sqliteSerializer = __esm({
         | 
| 12989 12885 | 
             
              "src/serializer/sqliteSerializer.ts"() {
         | 
| 12990 12886 | 
             
                import_drizzle_orm7 = require("drizzle-orm");
         | 
| @@ -13352,50 +13248,6 @@ WHERE | |
| 13352 13248 | 
             
                    }
         | 
| 13353 13249 | 
             
                  };
         | 
| 13354 13250 | 
             
                };
         | 
| 13355 | 
            -
                toDrizzle2 = (schema4) => {
         | 
| 13356 | 
            -
                  const tables = {};
         | 
| 13357 | 
            -
                  Object.values(schema4.tables).forEach((t) => {
         | 
| 13358 | 
            -
                    const columns = {};
         | 
| 13359 | 
            -
                    Object.values(t.columns).forEach((c) => {
         | 
| 13360 | 
            -
                      const columnName = c.name;
         | 
| 13361 | 
            -
                      const type = c.type;
         | 
| 13362 | 
            -
                      let columnBuilder;
         | 
| 13363 | 
            -
                      if (type === "integer") {
         | 
| 13364 | 
            -
                        columnBuilder = new import_sqlite_core2.SQLiteIntegerBuilder(columnName);
         | 
| 13365 | 
            -
                      } else if (type === "text") {
         | 
| 13366 | 
            -
                        columnBuilder = new import_sqlite_core2.SQLiteTextBuilder(columnName, {});
         | 
| 13367 | 
            -
                      } else if (type === "blob") {
         | 
| 13368 | 
            -
                        columnBuilder = new import_sqlite_core2.SQLiteBlobBufferBuilder(columnName);
         | 
| 13369 | 
            -
                      } else if (type === "real") {
         | 
| 13370 | 
            -
                        columnBuilder = new import_sqlite_core2.SQLiteRealBuilder(columnName);
         | 
| 13371 | 
            -
                      } else {
         | 
| 13372 | 
            -
                        columnBuilder = new import_sqlite_core2.SQLiteNumericBuilder(columnName);
         | 
| 13373 | 
            -
                      }
         | 
| 13374 | 
            -
                      if (c.notNull) {
         | 
| 13375 | 
            -
                        columnBuilder = columnBuilder.notNull();
         | 
| 13376 | 
            -
                      }
         | 
| 13377 | 
            -
                      if (c.default) {
         | 
| 13378 | 
            -
                        columnBuilder = columnBuilder.default(c.default);
         | 
| 13379 | 
            -
                      }
         | 
| 13380 | 
            -
                      if (c.primaryKey) {
         | 
| 13381 | 
            -
                        columnBuilder = columnBuilder.primaryKey();
         | 
| 13382 | 
            -
                      }
         | 
| 13383 | 
            -
                      columns[columnName] = columnBuilder;
         | 
| 13384 | 
            -
                    });
         | 
| 13385 | 
            -
                    tables[t.name] = (0, import_sqlite_core2.sqliteTable)(t.name, columns, (cb) => {
         | 
| 13386 | 
            -
                      const res = {};
         | 
| 13387 | 
            -
                      Object.values(t.compositePrimaryKeys).forEach((cpk) => {
         | 
| 13388 | 
            -
                        const gh = cpk.columns.map((c) => cb[c]);
         | 
| 13389 | 
            -
                        res[cpk.name] = new import_sqlite_core2.PrimaryKeyBuilder(
         | 
| 13390 | 
            -
                          gh,
         | 
| 13391 | 
            -
                          cpk.name
         | 
| 13392 | 
            -
                        );
         | 
| 13393 | 
            -
                      });
         | 
| 13394 | 
            -
                      return res;
         | 
| 13395 | 
            -
                    });
         | 
| 13396 | 
            -
                  });
         | 
| 13397 | 
            -
                  return tables;
         | 
| 13398 | 
            -
                };
         | 
| 13399 13251 | 
             
              }
         | 
| 13400 13252 | 
             
            });
         | 
| 13401 13253 |  | 
| @@ -13429,8 +13281,8 @@ var init_serializer = __esm({ | |
| 13429 13281 | 
             
                    }
         | 
| 13430 13282 | 
             
                  }).sql;
         | 
| 13431 13283 | 
             
                };
         | 
| 13432 | 
            -
                serializeMySql = async ( | 
| 13433 | 
            -
                  const filenames = prepareFilenames( | 
| 13284 | 
            +
                serializeMySql = async (path5) => {
         | 
| 13285 | 
            +
                  const filenames = prepareFilenames(path5);
         | 
| 13434 13286 | 
             
                  console.log(source_default.gray(`Reading schema files:
         | 
| 13435 13287 | 
             
            ${filenames.join("\n")}
         | 
| 13436 13288 | 
             
            `));
         | 
| @@ -13439,25 +13291,25 @@ ${filenames.join("\n")} | |
| 13439 13291 | 
             
                  const { tables, enums, schemas } = await prepareFromMySqlImports2(filenames);
         | 
| 13440 13292 | 
             
                  return generateMySqlSnapshot2(tables, enums, schemas);
         | 
| 13441 13293 | 
             
                };
         | 
| 13442 | 
            -
                serializePg = async ( | 
| 13443 | 
            -
                  const filenames = prepareFilenames( | 
| 13294 | 
            +
                serializePg = async (path5, schemaFilter) => {
         | 
| 13295 | 
            +
                  const filenames = prepareFilenames(path5);
         | 
| 13444 13296 | 
             
                  const { prepareFromPgImports: prepareFromPgImports2 } = await Promise.resolve().then(() => (init_pgImports(), pgImports_exports));
         | 
| 13445 13297 | 
             
                  const { generatePgSnapshot: generatePgSnapshot2 } = await Promise.resolve().then(() => (init_pgSerializer(), pgSerializer_exports));
         | 
| 13446 13298 | 
             
                  const { tables, enums, schemas } = await prepareFromPgImports2(filenames);
         | 
| 13447 13299 | 
             
                  return generatePgSnapshot2(tables, enums, schemas, schemaFilter);
         | 
| 13448 13300 | 
             
                };
         | 
| 13449 | 
            -
                serializeSQLite = async ( | 
| 13450 | 
            -
                  const filenames = prepareFilenames( | 
| 13301 | 
            +
                serializeSQLite = async (path5) => {
         | 
| 13302 | 
            +
                  const filenames = prepareFilenames(path5);
         | 
| 13451 13303 | 
             
                  const { prepareFromSqliteImports: prepareFromSqliteImports2 } = await Promise.resolve().then(() => (init_sqliteImports(), sqliteImports_exports));
         | 
| 13452 13304 | 
             
                  const { generateSqliteSnapshot: generateSqliteSnapshot2 } = await Promise.resolve().then(() => (init_sqliteSerializer(), sqliteSerializer_exports));
         | 
| 13453 13305 | 
             
                  const { tables, enums } = await prepareFromSqliteImports2(filenames);
         | 
| 13454 13306 | 
             
                  return generateSqliteSnapshot2(tables, enums);
         | 
| 13455 13307 | 
             
                };
         | 
| 13456 | 
            -
                prepareFilenames = ( | 
| 13457 | 
            -
                  if (typeof  | 
| 13458 | 
            -
                     | 
| 13308 | 
            +
                prepareFilenames = (path5) => {
         | 
| 13309 | 
            +
                  if (typeof path5 === "string") {
         | 
| 13310 | 
            +
                    path5 = [path5];
         | 
| 13459 13311 | 
             
                  }
         | 
| 13460 | 
            -
                  const result =  | 
| 13312 | 
            +
                  const result = path5.reduce((result2, cur) => {
         | 
| 13461 13313 | 
             
                    const globbed = glob.sync(cur);
         | 
| 13462 13314 | 
             
                    globbed.forEach((it) => {
         | 
| 13463 13315 | 
             
                      const fileName = import_fs2.default.lstatSync(it).isDirectory() ? null : import_path2.default.resolve(it);
         | 
| @@ -13471,7 +13323,7 @@ ${filenames.join("\n")} | |
| 13471 13323 | 
             
                    return !(it.endsWith(".ts") || it.endsWith(".js") || it.endsWith(".cjs") || it.endsWith(".mjs") || it.endsWith(".mts") || it.endsWith(".cts"));
         | 
| 13472 13324 | 
             
                  });
         | 
| 13473 13325 | 
             
                  if (res.length === 0) {
         | 
| 13474 | 
            -
                    console.log(error(`No schema files found for path config [${ | 
| 13326 | 
            +
                    console.log(error(`No schema files found for path config [${path5.map((it) => `'${it}'`).join(", ")}]`));
         | 
| 13475 13327 | 
             
                    console.log(error(`If path represents a file - please make sure to use .ts or other extension in the path`));
         | 
| 13476 13328 | 
             
                    process.exit(1);
         | 
| 13477 13329 | 
             
                  }
         | 
| @@ -18014,11 +17866,11 @@ var init_pgUp = __esm({ | |
| 18014 17866 | 
             
                    path: it,
         | 
| 18015 17867 | 
             
                    raw: report.rawMap[it]
         | 
| 18016 17868 | 
             
                  })).forEach((it) => {
         | 
| 18017 | 
            -
                    const  | 
| 17869 | 
            +
                    const path5 = it.path;
         | 
| 18018 17870 | 
             
                    const result = updateUpToV4(it.raw, prevId);
         | 
| 18019 17871 | 
             
                    prevId = result.id;
         | 
| 18020 | 
            -
                    console.log(`[${source_default.green("\u2713")}] ${ | 
| 18021 | 
            -
                    (0, import_fs5.writeFileSync)( | 
| 17872 | 
            +
                    console.log(`[${source_default.green("\u2713")}] ${path5}`);
         | 
| 17873 | 
            +
                    (0, import_fs5.writeFileSync)(path5, JSON.stringify(result, null, 2));
         | 
| 18022 17874 | 
             
                  });
         | 
| 18023 17875 | 
             
                  console.log("Everything's fine \u{1F436}\u{1F525}");
         | 
| 18024 17876 | 
             
                };
         | 
| @@ -18269,10 +18121,10 @@ var init_mysqlUp = __esm({ | |
| 18269 18121 | 
             
                    path: it,
         | 
| 18270 18122 | 
             
                    raw: report.rawMap[it]
         | 
| 18271 18123 | 
             
                  })).forEach((it) => {
         | 
| 18272 | 
            -
                    const  | 
| 18124 | 
            +
                    const path5 = it.path;
         | 
| 18273 18125 | 
             
                    const result = updateToLatestV4(it.raw);
         | 
| 18274 | 
            -
                    console.log(`[${source_default.green("\u2713")}] ${ | 
| 18275 | 
            -
                    import_fs6.default.writeFileSync( | 
| 18126 | 
            +
                    console.log(`[${source_default.green("\u2713")}] ${path5}`);
         | 
| 18127 | 
            +
                    import_fs6.default.writeFileSync(path5, JSON.stringify(result, null, 2));
         | 
| 18276 18128 | 
             
                  });
         | 
| 18277 18129 | 
             
                  console.log("Everything's fine \u{1F436}\u{1F525}");
         | 
| 18278 18130 | 
             
                };
         | 
| @@ -18765,7 +18617,7 @@ var init_upFolders = __esm({ | |
| 18765 18617 | 
             
                      date.setUTCMinutes(Number(it.substring(10, 12)));
         | 
| 18766 18618 | 
             
                      date.setUTCSeconds(Number(it.substring(12, 14)));
         | 
| 18767 18619 | 
             
                      date.setUTCMilliseconds(0);
         | 
| 18768 | 
            -
                      const  | 
| 18620 | 
            +
                      const path5 = (0, import_path4.join)(out, it);
         | 
| 18769 18621 | 
             
                      const pathJson = (0, import_path4.join)(out, it, "snapshot.json");
         | 
| 18770 18622 | 
             
                      const pathSQL = (0, import_path4.join)(out, it, "migration.sql");
         | 
| 18771 18623 | 
             
                      const snapshot = JSON.parse((0, import_fs7.readFileSync)(pathJson).toString());
         | 
| @@ -18776,7 +18628,7 @@ var init_upFolders = __esm({ | |
| 18776 18628 | 
             
                        json: snapshot,
         | 
| 18777 18629 | 
             
                        date,
         | 
| 18778 18630 | 
             
                        sql: sql2,
         | 
| 18779 | 
            -
                        path:  | 
| 18631 | 
            +
                        path: path5
         | 
| 18780 18632 | 
             
                      });
         | 
| 18781 18633 | 
             
                      res2.idx += 1;
         | 
| 18782 18634 | 
             
                      return res2;
         | 
| @@ -19677,14 +19529,14 @@ var require_brace_expansion = __commonJS({ | |
| 19677 19529 | 
             
                  var pre = m.pre;
         | 
| 19678 19530 | 
             
                  var body = m.body;
         | 
| 19679 19531 | 
             
                  var post = m.post;
         | 
| 19680 | 
            -
                  var  | 
| 19681 | 
            -
                   | 
| 19532 | 
            +
                  var p2 = pre.split(",");
         | 
| 19533 | 
            +
                  p2[p2.length - 1] += "{" + body + "}";
         | 
| 19682 19534 | 
             
                  var postParts = parseCommaParts(post);
         | 
| 19683 19535 | 
             
                  if (post.length) {
         | 
| 19684 | 
            -
                     | 
| 19685 | 
            -
                     | 
| 19536 | 
            +
                    p2[p2.length - 1] += postParts.shift();
         | 
| 19537 | 
            +
                    p2.push.apply(p2, postParts);
         | 
| 19686 19538 | 
             
                  }
         | 
| 19687 | 
            -
                  parts.push.apply(parts,  | 
| 19539 | 
            +
                  parts.push.apply(parts, p2);
         | 
| 19688 19540 | 
             
                  return parts;
         | 
| 19689 19541 | 
             
                }
         | 
| 19690 19542 | 
             
                function expandTop(str) {
         | 
| @@ -19739,8 +19591,8 @@ var require_brace_expansion = __commonJS({ | |
| 19739 19591 | 
             
                      if (n.length === 1) {
         | 
| 19740 19592 | 
             
                        n = expand2(n[0], false).map(embrace);
         | 
| 19741 19593 | 
             
                        if (n.length === 1) {
         | 
| 19742 | 
            -
                          return post.map(function( | 
| 19743 | 
            -
                            return m.pre + n[0] +  | 
| 19594 | 
            +
                          return post.map(function(p2) {
         | 
| 19595 | 
            +
                            return m.pre + n[0] + p2;
         | 
| 19744 19596 | 
             
                          });
         | 
| 19745 19597 | 
             
                        }
         | 
| 19746 19598 | 
             
                      }
         | 
| @@ -19944,12 +19796,12 @@ var init_mjs = __esm({ | |
| 19944 19796 | 
             
                init_unescape();
         | 
| 19945 19797 | 
             
                init_escape();
         | 
| 19946 19798 | 
             
                init_unescape();
         | 
| 19947 | 
            -
                minimatch = ( | 
| 19799 | 
            +
                minimatch = (p2, pattern, options = {}) => {
         | 
| 19948 19800 | 
             
                  assertValidPattern(pattern);
         | 
| 19949 19801 | 
             
                  if (!options.nocomment && pattern.charAt(0) === "#") {
         | 
| 19950 19802 | 
             
                    return false;
         | 
| 19951 19803 | 
             
                  }
         | 
| 19952 | 
            -
                  return new Minimatch(pattern, options).match( | 
| 19804 | 
            +
                  return new Minimatch(pattern, options).match(p2);
         | 
| 19953 19805 | 
             
                };
         | 
| 19954 19806 | 
             
                starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
         | 
| 19955 19807 | 
             
                starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
         | 
| @@ -20027,7 +19879,7 @@ var init_mjs = __esm({ | |
| 20027 19879 | 
             
                }, {});
         | 
| 20028 19880 | 
             
                reSpecials = charSet("().*{}+?[]^$\\!");
         | 
| 20029 19881 | 
             
                addPatternStartSet = charSet("[.(");
         | 
| 20030 | 
            -
                filter = (pattern, options = {}) => ( | 
| 19882 | 
            +
                filter = (pattern, options = {}) => (p2) => minimatch(p2, pattern, options);
         | 
| 20031 19883 | 
             
                minimatch.filter = filter;
         | 
| 20032 19884 | 
             
                ext = (a, b = {}) => Object.assign({}, a, b);
         | 
| 20033 19885 | 
             
                defaults = (def) => {
         | 
| @@ -20035,7 +19887,7 @@ var init_mjs = __esm({ | |
| 20035 19887 | 
             
                    return minimatch;
         | 
| 20036 19888 | 
             
                  }
         | 
| 20037 19889 | 
             
                  const orig = minimatch;
         | 
| 20038 | 
            -
                  const m = ( | 
| 19890 | 
            +
                  const m = (p2, pattern, options = {}) => orig(p2, pattern, ext(def, options));
         | 
| 20039 19891 | 
             
                  return Object.assign(m, {
         | 
| 20040 19892 | 
             
                    Minimatch: class Minimatch extends orig.Minimatch {
         | 
| 20041 19893 | 
             
                      constructor(pattern, options = {}) {
         | 
| @@ -20181,9 +20033,9 @@ var init_mjs = __esm({ | |
| 20181 20033 | 
             
                    this.set = set2.filter((s) => s.indexOf(false) === -1);
         | 
| 20182 20034 | 
             
                    if (this.isWindows) {
         | 
| 20183 20035 | 
             
                      for (let i = 0; i < this.set.length; i++) {
         | 
| 20184 | 
            -
                        const  | 
| 20185 | 
            -
                        if ( | 
| 20186 | 
            -
                           | 
| 20036 | 
            +
                        const p2 = this.set[i];
         | 
| 20037 | 
            +
                        if (p2[0] === "" && p2[1] === "" && this.globParts[i][2] === "?" && typeof p2[3] === "string" && /^[a-z]:$/i.test(p2[3])) {
         | 
| 20038 | 
            +
                          p2[2] = "?";
         | 
| 20187 20039 | 
             
                        }
         | 
| 20188 20040 | 
             
                      }
         | 
| 20189 20041 | 
             
                    }
         | 
| @@ -20260,10 +20112,10 @@ var init_mjs = __esm({ | |
| 20260 20112 | 
             
                      didSomething = false;
         | 
| 20261 20113 | 
             
                      if (!this.preserveMultipleSlashes) {
         | 
| 20262 20114 | 
             
                        for (let i = 1; i < parts.length - 1; i++) {
         | 
| 20263 | 
            -
                          const  | 
| 20264 | 
            -
                          if (i === 1 &&  | 
| 20115 | 
            +
                          const p2 = parts[i];
         | 
| 20116 | 
            +
                          if (i === 1 && p2 === "" && parts[0] === "")
         | 
| 20265 20117 | 
             
                            continue;
         | 
| 20266 | 
            -
                          if ( | 
| 20118 | 
            +
                          if (p2 === "." || p2 === "") {
         | 
| 20267 20119 | 
             
                            didSomething = true;
         | 
| 20268 20120 | 
             
                            parts.splice(i, 1);
         | 
| 20269 20121 | 
             
                            i--;
         | 
| @@ -20276,8 +20128,8 @@ var init_mjs = __esm({ | |
| 20276 20128 | 
             
                      }
         | 
| 20277 20129 | 
             
                      let dd = 0;
         | 
| 20278 20130 | 
             
                      while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
         | 
| 20279 | 
            -
                        const  | 
| 20280 | 
            -
                        if ( | 
| 20131 | 
            +
                        const p2 = parts[dd - 1];
         | 
| 20132 | 
            +
                        if (p2 && p2 !== "." && p2 !== ".." && p2 !== "**") {
         | 
| 20281 20133 | 
             
                          didSomething = true;
         | 
| 20282 20134 | 
             
                          parts.splice(dd - 1, 2);
         | 
| 20283 20135 | 
             
                          dd -= 2;
         | 
| @@ -20319,11 +20171,11 @@ var init_mjs = __esm({ | |
| 20319 20171 | 
             
                            parts.splice(gs + 1, gss - gs);
         | 
| 20320 20172 | 
             
                          }
         | 
| 20321 20173 | 
             
                          let next = parts[gs + 1];
         | 
| 20322 | 
            -
                          const  | 
| 20323 | 
            -
                          const  | 
| 20174 | 
            +
                          const p2 = parts[gs + 2];
         | 
| 20175 | 
            +
                          const p22 = parts[gs + 3];
         | 
| 20324 20176 | 
             
                          if (next !== "..")
         | 
| 20325 20177 | 
             
                            continue;
         | 
| 20326 | 
            -
                          if (! | 
| 20178 | 
            +
                          if (!p2 || p2 === "." || p2 === ".." || !p22 || p22 === "." || p22 === "..") {
         | 
| 20327 20179 | 
             
                            continue;
         | 
| 20328 20180 | 
             
                          }
         | 
| 20329 20181 | 
             
                          didSomething = true;
         | 
| @@ -20335,10 +20187,10 @@ var init_mjs = __esm({ | |
| 20335 20187 | 
             
                        }
         | 
| 20336 20188 | 
             
                        if (!this.preserveMultipleSlashes) {
         | 
| 20337 20189 | 
             
                          for (let i = 1; i < parts.length - 1; i++) {
         | 
| 20338 | 
            -
                            const  | 
| 20339 | 
            -
                            if (i === 1 &&  | 
| 20190 | 
            +
                            const p2 = parts[i];
         | 
| 20191 | 
            +
                            if (i === 1 && p2 === "" && parts[0] === "")
         | 
| 20340 20192 | 
             
                              continue;
         | 
| 20341 | 
            -
                            if ( | 
| 20193 | 
            +
                            if (p2 === "." || p2 === "") {
         | 
| 20342 20194 | 
             
                              didSomething = true;
         | 
| 20343 20195 | 
             
                              parts.splice(i, 1);
         | 
| 20344 20196 | 
             
                              i--;
         | 
| @@ -20351,8 +20203,8 @@ var init_mjs = __esm({ | |
| 20351 20203 | 
             
                        }
         | 
| 20352 20204 | 
             
                        let dd = 0;
         | 
| 20353 20205 | 
             
                        while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
         | 
| 20354 | 
            -
                          const  | 
| 20355 | 
            -
                          if ( | 
| 20206 | 
            +
                          const p2 = parts[dd - 1];
         | 
| 20207 | 
            +
                          if (p2 && p2 !== "." && p2 !== ".." && p2 !== "**") {
         | 
| 20356 20208 | 
             
                            didSomething = true;
         | 
| 20357 20209 | 
             
                            const needDot = dd === 1 && parts[dd + 1] === "**";
         | 
| 20358 20210 | 
             
                            const splin = needDot ? ["."] : [];
         | 
| @@ -20474,14 +20326,14 @@ var init_mjs = __esm({ | |
| 20474 20326 | 
             
                    this.debug("matchOne", file.length, pattern.length);
         | 
| 20475 20327 | 
             
                    for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
         | 
| 20476 20328 | 
             
                      this.debug("matchOne loop");
         | 
| 20477 | 
            -
                      var  | 
| 20329 | 
            +
                      var p2 = pattern[pi];
         | 
| 20478 20330 | 
             
                      var f = file[fi];
         | 
| 20479 | 
            -
                      this.debug(pattern,  | 
| 20480 | 
            -
                      if ( | 
| 20331 | 
            +
                      this.debug(pattern, p2, f);
         | 
| 20332 | 
            +
                      if (p2 === false) {
         | 
| 20481 20333 | 
             
                        return false;
         | 
| 20482 20334 | 
             
                      }
         | 
| 20483 | 
            -
                      if ( | 
| 20484 | 
            -
                        this.debug("GLOBSTAR", [pattern,  | 
| 20335 | 
            +
                      if (p2 === GLOBSTAR) {
         | 
| 20336 | 
            +
                        this.debug("GLOBSTAR", [pattern, p2, f]);
         | 
| 20485 20337 | 
             
                        var fr = fi;
         | 
| 20486 20338 | 
             
                        var pr = pi + 1;
         | 
| 20487 20339 | 
             
                        if (pr === pl) {
         | 
| @@ -20516,12 +20368,12 @@ var init_mjs = __esm({ | |
| 20516 20368 | 
             
                        return false;
         | 
| 20517 20369 | 
             
                      }
         | 
| 20518 20370 | 
             
                      let hit;
         | 
| 20519 | 
            -
                      if (typeof  | 
| 20520 | 
            -
                        hit = f ===  | 
| 20521 | 
            -
                        this.debug("string match",  | 
| 20371 | 
            +
                      if (typeof p2 === "string") {
         | 
| 20372 | 
            +
                        hit = f === p2;
         | 
| 20373 | 
            +
                        this.debug("string match", p2, f, hit);
         | 
| 20522 20374 | 
             
                      } else {
         | 
| 20523 | 
            -
                        hit =  | 
| 20524 | 
            -
                        this.debug("pattern match",  | 
| 20375 | 
            +
                        hit = p2.test(f);
         | 
| 20376 | 
            +
                        this.debug("pattern match", p2, f, hit);
         | 
| 20525 20377 | 
             
                      }
         | 
| 20526 20378 | 
             
                      if (!hit)
         | 
| 20527 20379 | 
             
                        return false;
         | 
| @@ -20570,7 +20422,7 @@ var init_mjs = __esm({ | |
| 20570 20422 | 
             
                    let dotTravAllowed = pattern.charAt(0) === ".";
         | 
| 20571 20423 | 
             
                    let dotFileAllowed = options.dot || dotTravAllowed;
         | 
| 20572 20424 | 
             
                    const patternStart = () => dotTravAllowed ? "" : dotFileAllowed ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
         | 
| 20573 | 
            -
                    const subPatternStart = ( | 
| 20425 | 
            +
                    const subPatternStart = (p2) => p2.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
         | 
| 20574 20426 | 
             
                    const clearStateChar = () => {
         | 
| 20575 20427 | 
             
                      if (stateChar) {
         | 
| 20576 20428 | 
             
                        switch (stateChar) {
         | 
| @@ -20773,11 +20625,11 @@ var init_mjs = __esm({ | |
| 20773 20625 | 
             
                    const twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot;
         | 
| 20774 20626 | 
             
                    const flags = options.nocase ? "i" : "";
         | 
| 20775 20627 | 
             
                    let re = set2.map((pattern) => {
         | 
| 20776 | 
            -
                      const pp = pattern.map(( | 
| 20777 | 
            -
                      pp.forEach(( | 
| 20628 | 
            +
                      const pp = pattern.map((p2) => typeof p2 === "string" ? regExpEscape(p2) : p2 === GLOBSTAR ? GLOBSTAR : p2._src);
         | 
| 20629 | 
            +
                      pp.forEach((p2, i) => {
         | 
| 20778 20630 | 
             
                        const next = pp[i + 1];
         | 
| 20779 20631 | 
             
                        const prev = pp[i - 1];
         | 
| 20780 | 
            -
                        if ( | 
| 20632 | 
            +
                        if (p2 !== GLOBSTAR || prev === GLOBSTAR) {
         | 
| 20781 20633 | 
             
                          return;
         | 
| 20782 20634 | 
             
                        }
         | 
| 20783 20635 | 
             
                        if (prev === void 0) {
         | 
| @@ -20793,7 +20645,7 @@ var init_mjs = __esm({ | |
| 20793 20645 | 
             
                          pp[i + 1] = GLOBSTAR;
         | 
| 20794 20646 | 
             
                        }
         | 
| 20795 20647 | 
             
                      });
         | 
| 20796 | 
            -
                      return pp.filter(( | 
| 20648 | 
            +
                      return pp.filter((p2) => p2 !== GLOBSTAR).join("/");
         | 
| 20797 20649 | 
             
                    }).join("|");
         | 
| 20798 20650 | 
             
                    re = "^(?:" + re + ")$";
         | 
| 20799 20651 | 
             
                    if (this.negate)
         | 
| @@ -20805,13 +20657,13 @@ var init_mjs = __esm({ | |
| 20805 20657 | 
             
                    }
         | 
| 20806 20658 | 
             
                    return this.regexp;
         | 
| 20807 20659 | 
             
                  }
         | 
| 20808 | 
            -
                  slashSplit( | 
| 20660 | 
            +
                  slashSplit(p2) {
         | 
| 20809 20661 | 
             
                    if (this.preserveMultipleSlashes) {
         | 
| 20810 | 
            -
                      return  | 
| 20811 | 
            -
                    } else if (this.isWindows && /^\/\/[^\/]+/.test( | 
| 20812 | 
            -
                      return ["", ... | 
| 20662 | 
            +
                      return p2.split("/");
         | 
| 20663 | 
            +
                    } else if (this.isWindows && /^\/\/[^\/]+/.test(p2)) {
         | 
| 20664 | 
            +
                      return ["", ...p2.split(/\/+/)];
         | 
| 20813 20665 | 
             
                    } else {
         | 
| 20814 | 
            -
                      return  | 
| 20666 | 
            +
                      return p2.split(/\/+/);
         | 
| 20815 20667 | 
             
                    }
         | 
| 20816 20668 | 
             
                  }
         | 
| 20817 20669 | 
             
                  match(f, partial = this.partial) {
         | 
| @@ -21263,56 +21115,56 @@ var require_textParsers = __commonJS({ | |
| 21263 21115 | 
             
                  if (!value) {
         | 
| 21264 21116 | 
             
                    return null;
         | 
| 21265 21117 | 
             
                  }
         | 
| 21266 | 
            -
                  var  | 
| 21118 | 
            +
                  var p2 = arrayParser.create(value, function(entry) {
         | 
| 21267 21119 | 
             
                    if (entry !== null) {
         | 
| 21268 21120 | 
             
                      entry = parsePoint(entry);
         | 
| 21269 21121 | 
             
                    }
         | 
| 21270 21122 | 
             
                    return entry;
         | 
| 21271 21123 | 
             
                  });
         | 
| 21272 | 
            -
                  return  | 
| 21124 | 
            +
                  return p2.parse();
         | 
| 21273 21125 | 
             
                };
         | 
| 21274 21126 | 
             
                var parseFloatArray = function(value) {
         | 
| 21275 21127 | 
             
                  if (!value) {
         | 
| 21276 21128 | 
             
                    return null;
         | 
| 21277 21129 | 
             
                  }
         | 
| 21278 | 
            -
                  var  | 
| 21130 | 
            +
                  var p2 = arrayParser.create(value, function(entry) {
         | 
| 21279 21131 | 
             
                    if (entry !== null) {
         | 
| 21280 21132 | 
             
                      entry = parseFloat(entry);
         | 
| 21281 21133 | 
             
                    }
         | 
| 21282 21134 | 
             
                    return entry;
         | 
| 21283 21135 | 
             
                  });
         | 
| 21284 | 
            -
                  return  | 
| 21136 | 
            +
                  return p2.parse();
         | 
| 21285 21137 | 
             
                };
         | 
| 21286 21138 | 
             
                var parseStringArray = function(value) {
         | 
| 21287 21139 | 
             
                  if (!value) {
         | 
| 21288 21140 | 
             
                    return null;
         | 
| 21289 21141 | 
             
                  }
         | 
| 21290 | 
            -
                  var  | 
| 21291 | 
            -
                  return  | 
| 21142 | 
            +
                  var p2 = arrayParser.create(value);
         | 
| 21143 | 
            +
                  return p2.parse();
         | 
| 21292 21144 | 
             
                };
         | 
| 21293 21145 | 
             
                var parseDateArray = function(value) {
         | 
| 21294 21146 | 
             
                  if (!value) {
         | 
| 21295 21147 | 
             
                    return null;
         | 
| 21296 21148 | 
             
                  }
         | 
| 21297 | 
            -
                  var  | 
| 21149 | 
            +
                  var p2 = arrayParser.create(value, function(entry) {
         | 
| 21298 21150 | 
             
                    if (entry !== null) {
         | 
| 21299 21151 | 
             
                      entry = parseDate(entry);
         | 
| 21300 21152 | 
             
                    }
         | 
| 21301 21153 | 
             
                    return entry;
         | 
| 21302 21154 | 
             
                  });
         | 
| 21303 | 
            -
                  return  | 
| 21155 | 
            +
                  return p2.parse();
         | 
| 21304 21156 | 
             
                };
         | 
| 21305 21157 | 
             
                var parseIntervalArray = function(value) {
         | 
| 21306 21158 | 
             
                  if (!value) {
         | 
| 21307 21159 | 
             
                    return null;
         | 
| 21308 21160 | 
             
                  }
         | 
| 21309 | 
            -
                  var  | 
| 21161 | 
            +
                  var p2 = arrayParser.create(value, function(entry) {
         | 
| 21310 21162 | 
             
                    if (entry !== null) {
         | 
| 21311 21163 | 
             
                      entry = parseInterval(entry);
         | 
| 21312 21164 | 
             
                    }
         | 
| 21313 21165 | 
             
                    return entry;
         | 
| 21314 21166 | 
             
                  });
         | 
| 21315 | 
            -
                  return  | 
| 21167 | 
            +
                  return p2.parse();
         | 
| 21316 21168 | 
             
                };
         | 
| 21317 21169 | 
             
                var parseByteAArray = function(value) {
         | 
| 21318 21170 | 
             
                  if (!value) {
         | 
| @@ -23978,7 +23830,7 @@ var require_split2 = __commonJS({ | |
| 23978 23830 | 
             
            var require_helper = __commonJS({
         | 
| 23979 23831 | 
             
              "node_modules/.pnpm/pgpass@1.0.5/node_modules/pgpass/lib/helper.js"(exports, module2) {
         | 
| 23980 23832 | 
             
                "use strict";
         | 
| 23981 | 
            -
                var  | 
| 23833 | 
            +
                var path5 = require("path");
         | 
| 23982 23834 | 
             
                var Stream = require("stream").Stream;
         | 
| 23983 23835 | 
             
                var split = require_split2();
         | 
| 23984 23836 | 
             
                var util2 = require("util");
         | 
| @@ -24016,8 +23868,8 @@ var require_helper = __commonJS({ | |
| 24016 23868 | 
             
                  return old;
         | 
| 24017 23869 | 
             
                };
         | 
| 24018 23870 | 
             
                module2.exports.getFileName = function(rawEnv) {
         | 
| 24019 | 
            -
                  var  | 
| 24020 | 
            -
                  var file =  | 
| 23871 | 
            +
                  var env3 = rawEnv || process.env;
         | 
| 23872 | 
            +
                  var file = env3.PGPASSFILE || (isWin ? path5.join(env3.APPDATA || "./", "postgresql", "pgpass.conf") : path5.join(env3.HOME || "./", ".pgpass"));
         | 
| 24021 23873 | 
             
                  return file;
         | 
| 24022 23874 | 
             
                };
         | 
| 24023 23875 | 
             
                module2.exports.usePgPass = function(stats, fname) {
         | 
| @@ -24149,7 +24001,7 @@ var require_helper = __commonJS({ | |
| 24149 24001 | 
             
            var require_lib = __commonJS({
         | 
| 24150 24002 | 
             
              "node_modules/.pnpm/pgpass@1.0.5/node_modules/pgpass/lib/index.js"(exports, module2) {
         | 
| 24151 24003 | 
             
                "use strict";
         | 
| 24152 | 
            -
                var  | 
| 24004 | 
            +
                var path5 = require("path");
         | 
| 24153 24005 | 
             
                var fs9 = require("fs");
         | 
| 24154 24006 | 
             
                var helper = require_helper();
         | 
| 24155 24007 | 
             
                module2.exports = function(connInfo, cb) {
         | 
| @@ -26319,6 +26171,15 @@ var init_sqliteIntrospect = __esm({ | |
| 26319 26171 | 
             
              }
         | 
| 26320 26172 | 
             
            });
         | 
| 26321 26173 |  | 
| 26174 | 
            +
            // src/serializer/schemaToDrizzle.ts
         | 
| 26175 | 
            +
            var import_pg_core4, import_sqlite_core3;
         | 
| 26176 | 
            +
            var init_schemaToDrizzle = __esm({
         | 
| 26177 | 
            +
              "src/serializer/schemaToDrizzle.ts"() {
         | 
| 26178 | 
            +
                import_pg_core4 = require("drizzle-orm/pg-core");
         | 
| 26179 | 
            +
                import_sqlite_core3 = require("drizzle-orm/sqlite-core");
         | 
| 26180 | 
            +
              }
         | 
| 26181 | 
            +
            });
         | 
| 26182 | 
            +
             | 
| 26322 26183 | 
             
            // node_modules/.pnpm/semver@7.5.4/node_modules/semver/internal/constants.js
         | 
| 26323 26184 | 
             
            var require_constants = __commonJS({
         | 
| 26324 26185 | 
             
              "node_modules/.pnpm/semver@7.5.4/node_modules/semver/internal/constants.js"(exports, module2) {
         | 
| @@ -27397,9 +27258,9 @@ var require_yallist = __commonJS({ | |
| 27397 27258 | 
             
                  var head = this.head;
         | 
| 27398 27259 | 
             
                  var tail = this.tail;
         | 
| 27399 27260 | 
             
                  for (var walker = head; walker !== null; walker = walker.prev) {
         | 
| 27400 | 
            -
                    var  | 
| 27261 | 
            +
                    var p2 = walker.prev;
         | 
| 27401 27262 | 
             
                    walker.prev = walker.next;
         | 
| 27402 | 
            -
                    walker.next =  | 
| 27263 | 
            +
                    walker.next = p2;
         | 
| 27403 27264 | 
             
                  }
         | 
| 27404 27265 | 
             
                  this.head = tail;
         | 
| 27405 27266 | 
             
                  this.tail = head;
         | 
| @@ -27897,20 +27758,20 @@ var require_range = __commonJS({ | |
| 27897 27758 | 
             
                };
         | 
| 27898 27759 | 
             
                var replaceTilde = (comp, options) => {
         | 
| 27899 27760 | 
             
                  const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
         | 
| 27900 | 
            -
                  return comp.replace(r, (_2, M, m,  | 
| 27901 | 
            -
                    debug("tilde", comp, _2, M, m,  | 
| 27761 | 
            +
                  return comp.replace(r, (_2, M, m, p2, pr) => {
         | 
| 27762 | 
            +
                    debug("tilde", comp, _2, M, m, p2, pr);
         | 
| 27902 27763 | 
             
                    let ret;
         | 
| 27903 27764 | 
             
                    if (isX(M)) {
         | 
| 27904 27765 | 
             
                      ret = "";
         | 
| 27905 27766 | 
             
                    } else if (isX(m)) {
         | 
| 27906 27767 | 
             
                      ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
         | 
| 27907 | 
            -
                    } else if (isX( | 
| 27768 | 
            +
                    } else if (isX(p2)) {
         | 
| 27908 27769 | 
             
                      ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
         | 
| 27909 27770 | 
             
                    } else if (pr) {
         | 
| 27910 27771 | 
             
                      debug("replaceTilde pr", pr);
         | 
| 27911 | 
            -
                      ret = `>=${M}.${m}.${ | 
| 27772 | 
            +
                      ret = `>=${M}.${m}.${p2}-${pr} <${M}.${+m + 1}.0-0`;
         | 
| 27912 27773 | 
             
                    } else {
         | 
| 27913 | 
            -
                      ret = `>=${M}.${m}.${ | 
| 27774 | 
            +
                      ret = `>=${M}.${m}.${p2} <${M}.${+m + 1}.0-0`;
         | 
| 27914 27775 | 
             
                    }
         | 
| 27915 27776 | 
             
                    debug("tilde return", ret);
         | 
| 27916 27777 | 
             
                    return ret;
         | 
| @@ -27923,14 +27784,14 @@ var require_range = __commonJS({ | |
| 27923 27784 | 
             
                  debug("caret", comp, options);
         | 
| 27924 27785 | 
             
                  const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
         | 
| 27925 27786 | 
             
                  const z2 = options.includePrerelease ? "-0" : "";
         | 
| 27926 | 
            -
                  return comp.replace(r, (_2, M, m,  | 
| 27927 | 
            -
                    debug("caret", comp, _2, M, m,  | 
| 27787 | 
            +
                  return comp.replace(r, (_2, M, m, p2, pr) => {
         | 
| 27788 | 
            +
                    debug("caret", comp, _2, M, m, p2, pr);
         | 
| 27928 27789 | 
             
                    let ret;
         | 
| 27929 27790 | 
             
                    if (isX(M)) {
         | 
| 27930 27791 | 
             
                      ret = "";
         | 
| 27931 27792 | 
             
                    } else if (isX(m)) {
         | 
| 27932 27793 | 
             
                      ret = `>=${M}.0.0${z2} <${+M + 1}.0.0-0`;
         | 
| 27933 | 
            -
                    } else if (isX( | 
| 27794 | 
            +
                    } else if (isX(p2)) {
         | 
| 27934 27795 | 
             
                      if (M === "0") {
         | 
| 27935 27796 | 
             
                        ret = `>=${M}.${m}.0${z2} <${M}.${+m + 1}.0-0`;
         | 
| 27936 27797 | 
             
                      } else {
         | 
| @@ -27940,23 +27801,23 @@ var require_range = __commonJS({ | |
| 27940 27801 | 
             
                      debug("replaceCaret pr", pr);
         | 
| 27941 27802 | 
             
                      if (M === "0") {
         | 
| 27942 27803 | 
             
                        if (m === "0") {
         | 
| 27943 | 
            -
                          ret = `>=${M}.${m}.${ | 
| 27804 | 
            +
                          ret = `>=${M}.${m}.${p2}-${pr} <${M}.${m}.${+p2 + 1}-0`;
         | 
| 27944 27805 | 
             
                        } else {
         | 
| 27945 | 
            -
                          ret = `>=${M}.${m}.${ | 
| 27806 | 
            +
                          ret = `>=${M}.${m}.${p2}-${pr} <${M}.${+m + 1}.0-0`;
         | 
| 27946 27807 | 
             
                        }
         | 
| 27947 27808 | 
             
                      } else {
         | 
| 27948 | 
            -
                        ret = `>=${M}.${m}.${ | 
| 27809 | 
            +
                        ret = `>=${M}.${m}.${p2}-${pr} <${+M + 1}.0.0-0`;
         | 
| 27949 27810 | 
             
                      }
         | 
| 27950 27811 | 
             
                    } else {
         | 
| 27951 27812 | 
             
                      debug("no pr");
         | 
| 27952 27813 | 
             
                      if (M === "0") {
         | 
| 27953 27814 | 
             
                        if (m === "0") {
         | 
| 27954 | 
            -
                          ret = `>=${M}.${m}.${ | 
| 27815 | 
            +
                          ret = `>=${M}.${m}.${p2}${z2} <${M}.${m}.${+p2 + 1}-0`;
         | 
| 27955 27816 | 
             
                        } else {
         | 
| 27956 | 
            -
                          ret = `>=${M}.${m}.${ | 
| 27817 | 
            +
                          ret = `>=${M}.${m}.${p2}${z2} <${M}.${+m + 1}.0-0`;
         | 
| 27957 27818 | 
             
                        }
         | 
| 27958 27819 | 
             
                      } else {
         | 
| 27959 | 
            -
                        ret = `>=${M}.${m}.${ | 
| 27820 | 
            +
                        ret = `>=${M}.${m}.${p2} <${+M + 1}.0.0-0`;
         | 
| 27960 27821 | 
             
                      }
         | 
| 27961 27822 | 
             
                    }
         | 
| 27962 27823 | 
             
                    debug("caret return", ret);
         | 
| @@ -27970,11 +27831,11 @@ var require_range = __commonJS({ | |
| 27970 27831 | 
             
                var replaceXRange = (comp, options) => {
         | 
| 27971 27832 | 
             
                  comp = comp.trim();
         | 
| 27972 27833 | 
             
                  const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
         | 
| 27973 | 
            -
                  return comp.replace(r, (ret, gtlt, M, m,  | 
| 27974 | 
            -
                    debug("xRange", comp, ret, gtlt, M, m,  | 
| 27834 | 
            +
                  return comp.replace(r, (ret, gtlt, M, m, p2, pr) => {
         | 
| 27835 | 
            +
                    debug("xRange", comp, ret, gtlt, M, m, p2, pr);
         | 
| 27975 27836 | 
             
                    const xM = isX(M);
         | 
| 27976 27837 | 
             
                    const xm = xM || isX(m);
         | 
| 27977 | 
            -
                    const xp = xm || isX( | 
| 27838 | 
            +
                    const xp = xm || isX(p2);
         | 
| 27978 27839 | 
             
                    const anyX = xp;
         | 
| 27979 27840 | 
             
                    if (gtlt === "=" && anyX) {
         | 
| 27980 27841 | 
             
                      gtlt = "";
         | 
| @@ -27990,16 +27851,16 @@ var require_range = __commonJS({ | |
| 27990 27851 | 
             
                      if (xm) {
         | 
| 27991 27852 | 
             
                        m = 0;
         | 
| 27992 27853 | 
             
                      }
         | 
| 27993 | 
            -
                       | 
| 27854 | 
            +
                      p2 = 0;
         | 
| 27994 27855 | 
             
                      if (gtlt === ">") {
         | 
| 27995 27856 | 
             
                        gtlt = ">=";
         | 
| 27996 27857 | 
             
                        if (xm) {
         | 
| 27997 27858 | 
             
                          M = +M + 1;
         | 
| 27998 27859 | 
             
                          m = 0;
         | 
| 27999 | 
            -
                           | 
| 27860 | 
            +
                          p2 = 0;
         | 
| 28000 27861 | 
             
                        } else {
         | 
| 28001 27862 | 
             
                          m = +m + 1;
         | 
| 28002 | 
            -
                           | 
| 27863 | 
            +
                          p2 = 0;
         | 
| 28003 27864 | 
             
                        }
         | 
| 28004 27865 | 
             
                      } else if (gtlt === "<=") {
         | 
| 28005 27866 | 
             
                        gtlt = "<";
         | 
| @@ -28012,7 +27873,7 @@ var require_range = __commonJS({ | |
| 28012 27873 | 
             
                      if (gtlt === "<") {
         | 
| 28013 27874 | 
             
                        pr = "-0";
         | 
| 28014 27875 | 
             
                      }
         | 
| 28015 | 
            -
                      ret = `${gtlt + M}.${m}.${ | 
| 27876 | 
            +
                      ret = `${gtlt + M}.${m}.${p2}${pr}`;
         | 
| 28016 27877 | 
             
                    } else if (xm) {
         | 
| 28017 27878 | 
             
                      ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
         | 
| 28018 27879 | 
             
                    } else if (xp) {
         | 
| @@ -31814,10 +31675,10 @@ var require_long = __commonJS({ | |
| 31814 31675 | 
             
                  radix = radix || 10;
         | 
| 31815 31676 | 
             
                  if (radix < 2 || 36 < radix)
         | 
| 31816 31677 | 
             
                    throw RangeError("radix");
         | 
| 31817 | 
            -
                  var  | 
| 31818 | 
            -
                  if (( | 
| 31678 | 
            +
                  var p2;
         | 
| 31679 | 
            +
                  if ((p2 = str.indexOf("-")) > 0)
         | 
| 31819 31680 | 
             
                    throw Error("interior hyphen");
         | 
| 31820 | 
            -
                  else if ( | 
| 31681 | 
            +
                  else if (p2 === 0) {
         | 
| 31821 31682 | 
             
                    return fromString(str.substring(1), unsigned, radix).neg();
         | 
| 31822 31683 | 
             
                  }
         | 
| 31823 31684 | 
             
                  var radixToPower = fromNumber(pow_dbl(radix, 8));
         | 
| @@ -37690,8 +37551,8 @@ var require_change_user = __commonJS({ | |
| 37690 37551 | 
             
                    if (typeof this.database !== "string") {
         | 
| 37691 37552 | 
             
                      throw new Error('"database" connection config property must be a string');
         | 
| 37692 37553 | 
             
                    }
         | 
| 37693 | 
            -
                    const  | 
| 37694 | 
            -
                    return this.serializeToBuffer(Buffer.allocUnsafe( | 
| 37554 | 
            +
                    const p2 = this.serializeToBuffer(Packet.MockBuffer());
         | 
| 37555 | 
            +
                    return this.serializeToBuffer(Buffer.allocUnsafe(p2.offset));
         | 
| 37695 37556 | 
             
                  }
         | 
| 37696 37557 | 
             
                };
         | 
| 37697 37558 | 
             
                module2.exports = ChangeUser;
         | 
| @@ -38174,8 +38035,8 @@ var require_handshake_response = __commonJS({ | |
| 38174 38035 | 
             
                    if (typeof this.database !== "string") {
         | 
| 38175 38036 | 
             
                      throw new Error('"database" connection config property must be a string');
         | 
| 38176 38037 | 
             
                    }
         | 
| 38177 | 
            -
                    const  | 
| 38178 | 
            -
                    return this.serializeResponse(Buffer.alloc( | 
| 38038 | 
            +
                    const p2 = this.serializeResponse(Packet.MockBuffer());
         | 
| 38039 | 
            +
                    return this.serializeResponse(Buffer.alloc(p2.offset));
         | 
| 38179 38040 | 
             
                  }
         | 
| 38180 38041 | 
             
                  static fromPacket(packet) {
         | 
| 38181 38042 | 
             
                    const args = {};
         | 
| @@ -38605,7 +38466,7 @@ var require_text_row = __commonJS({ | |
| 38605 38466 | 
             
            var require_packets = __commonJS({
         | 
| 38606 38467 | 
             
              "node_modules/.pnpm/mysql2@2.3.3/node_modules/mysql2/lib/packets/index.js"(exports, module2) {
         | 
| 38607 38468 | 
             
                "use strict";
         | 
| 38608 | 
            -
                var  | 
| 38469 | 
            +
                var process5 = require("process");
         | 
| 38609 38470 | 
             
                var AuthSwitchRequest = require_auth_switch_request();
         | 
| 38610 38471 | 
             
                var AuthSwitchRequestMoreData = require_auth_switch_request_more_data();
         | 
| 38611 38472 | 
             
                var AuthSwitchResponse = require_auth_switch_response();
         | 
| @@ -38646,13 +38507,13 @@ var require_packets = __commonJS({ | |
| 38646 38507 | 
             
                };
         | 
| 38647 38508 | 
             
                Object.entries(ctorMap).forEach(([name, ctor]) => {
         | 
| 38648 38509 | 
             
                  module2.exports[name] = ctor;
         | 
| 38649 | 
            -
                  if ( | 
| 38510 | 
            +
                  if (process5.env.NODE_DEBUG) {
         | 
| 38650 38511 | 
             
                    if (ctor.prototype.toPacket) {
         | 
| 38651 38512 | 
             
                      const old = ctor.prototype.toPacket;
         | 
| 38652 38513 | 
             
                      ctor.prototype.toPacket = function() {
         | 
| 38653 | 
            -
                        const  | 
| 38654 | 
            -
                         | 
| 38655 | 
            -
                        return  | 
| 38514 | 
            +
                        const p2 = old.call(this);
         | 
| 38515 | 
            +
                        p2._name = name;
         | 
| 38516 | 
            +
                        return p2;
         | 
| 38656 38517 | 
             
                      };
         | 
| 38657 38518 | 
             
                    }
         | 
| 38658 38519 | 
             
                  }
         | 
| @@ -39249,8 +39110,8 @@ var require_compressed_protocol = __commonJS({ | |
| 39249 39110 | 
             
                  connection._lastWrittenPacketId = 0;
         | 
| 39250 39111 | 
             
                  connection._lastReceivedPacketId = 0;
         | 
| 39251 39112 | 
             
                  connection._handleCompressedPacket = handleCompressedPacket;
         | 
| 39252 | 
            -
                  connection._inflatedPacketsParser = new PacketParser(( | 
| 39253 | 
            -
                    connection.handlePacket( | 
| 39113 | 
            +
                  connection._inflatedPacketsParser = new PacketParser((p2) => {
         | 
| 39114 | 
            +
                    connection.handlePacket(p2);
         | 
| 39254 39115 | 
             
                  }, 4);
         | 
| 39255 39116 | 
             
                  connection._inflatedPacketsParser._lastPacket = 0;
         | 
| 39256 39117 | 
             
                  connection.packetParser = new PacketParser((packet) => {
         | 
| @@ -40289,7 +40150,7 @@ var require_text_parser = __commonJS({ | |
| 40289 40150 | 
             
            var require_query4 = __commonJS({
         | 
| 40290 40151 | 
             
              "node_modules/.pnpm/mysql2@2.3.3/node_modules/mysql2/lib/commands/query.js"(exports, module2) {
         | 
| 40291 40152 | 
             
                "use strict";
         | 
| 40292 | 
            -
                var  | 
| 40153 | 
            +
                var process5 = require("process");
         | 
| 40293 40154 | 
             
                var Timers = require("timers");
         | 
| 40294 40155 | 
             
                var Readable = require("stream").Readable;
         | 
| 40295 40156 | 
             
                var Command2 = require_command();
         | 
| @@ -40358,11 +40219,11 @@ var require_query4 = __commonJS({ | |
| 40358 40219 | 
             
                        fields = this._fields;
         | 
| 40359 40220 | 
             
                      }
         | 
| 40360 40221 | 
             
                      if (fields) {
         | 
| 40361 | 
            -
                         | 
| 40222 | 
            +
                        process5.nextTick(() => {
         | 
| 40362 40223 | 
             
                          this.onResult(null, rows, fields);
         | 
| 40363 40224 | 
             
                        });
         | 
| 40364 40225 | 
             
                      } else {
         | 
| 40365 | 
            -
                         | 
| 40226 | 
            +
                        process5.nextTick(() => {
         | 
| 40366 40227 | 
             
                          this.onResult(null, rows);
         | 
| 40367 40228 | 
             
                        });
         | 
| 40368 40229 | 
             
                      }
         | 
| @@ -40407,12 +40268,12 @@ var require_query4 = __commonJS({ | |
| 40407 40268 | 
             
                    this._fields.push([]);
         | 
| 40408 40269 | 
             
                    return this.readField;
         | 
| 40409 40270 | 
             
                  }
         | 
| 40410 | 
            -
                  _streamLocalInfile(connection,  | 
| 40271 | 
            +
                  _streamLocalInfile(connection, path5) {
         | 
| 40411 40272 | 
             
                    if (this._streamFactory) {
         | 
| 40412 | 
            -
                      this._localStream = this._streamFactory( | 
| 40273 | 
            +
                      this._localStream = this._streamFactory(path5);
         | 
| 40413 40274 | 
             
                    } else {
         | 
| 40414 40275 | 
             
                      this._localStreamError = new Error(
         | 
| 40415 | 
            -
                        `As a result of LOCAL INFILE command server wants to read ${ | 
| 40276 | 
            +
                        `As a result of LOCAL INFILE command server wants to read ${path5} file, but as of v2.0 you must provide streamFactory option returning ReadStream.`
         | 
| 40416 40277 | 
             
                      );
         | 
| 40417 40278 | 
             
                      connection.writePacket(EmptyPacket);
         | 
| 40418 40279 | 
             
                      return this.infileOk;
         | 
| @@ -42337,10 +42198,10 @@ var require_lru_cache2 = __commonJS({ | |
| 42337 42198 | 
             
                      if (aborted && !ignoreAbort && !updateCache) {
         | 
| 42338 42199 | 
             
                        return fetchFail(ac.signal.reason);
         | 
| 42339 42200 | 
             
                      }
         | 
| 42340 | 
            -
                      if (this.valList[index4] ===  | 
| 42201 | 
            +
                      if (this.valList[index4] === p2) {
         | 
| 42341 42202 | 
             
                        if (v2 === void 0) {
         | 
| 42342 | 
            -
                          if ( | 
| 42343 | 
            -
                            this.valList[index4] =  | 
| 42203 | 
            +
                          if (p2.__staleWhileFetching) {
         | 
| 42204 | 
            +
                            this.valList[index4] = p2.__staleWhileFetching;
         | 
| 42344 42205 | 
             
                          } else {
         | 
| 42345 42206 | 
             
                            this.delete(k);
         | 
| 42346 42207 | 
             
                          }
         | 
| @@ -42364,20 +42225,20 @@ var require_lru_cache2 = __commonJS({ | |
| 42364 42225 | 
             
                      const allowStaleAborted = aborted && options.allowStaleOnFetchAbort;
         | 
| 42365 42226 | 
             
                      const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;
         | 
| 42366 42227 | 
             
                      const noDelete = allowStale || options.noDeleteOnFetchRejection;
         | 
| 42367 | 
            -
                      if (this.valList[index4] ===  | 
| 42368 | 
            -
                        const del = !noDelete ||  | 
| 42228 | 
            +
                      if (this.valList[index4] === p2) {
         | 
| 42229 | 
            +
                        const del = !noDelete || p2.__staleWhileFetching === void 0;
         | 
| 42369 42230 | 
             
                        if (del) {
         | 
| 42370 42231 | 
             
                          this.delete(k);
         | 
| 42371 42232 | 
             
                        } else if (!allowStaleAborted) {
         | 
| 42372 | 
            -
                          this.valList[index4] =  | 
| 42233 | 
            +
                          this.valList[index4] = p2.__staleWhileFetching;
         | 
| 42373 42234 | 
             
                        }
         | 
| 42374 42235 | 
             
                      }
         | 
| 42375 42236 | 
             
                      if (allowStale) {
         | 
| 42376 | 
            -
                        if (options.status &&  | 
| 42237 | 
            +
                        if (options.status && p2.__staleWhileFetching !== void 0) {
         | 
| 42377 42238 | 
             
                          options.status.returnedStale = true;
         | 
| 42378 42239 | 
             
                        }
         | 
| 42379 | 
            -
                        return  | 
| 42380 | 
            -
                      } else if ( | 
| 42240 | 
            +
                        return p2.__staleWhileFetching;
         | 
| 42241 | 
            +
                      } else if (p2.__returned === p2) {
         | 
| 42381 42242 | 
             
                        throw er;
         | 
| 42382 42243 | 
             
                      }
         | 
| 42383 42244 | 
             
                    };
         | 
| @@ -42394,23 +42255,23 @@ var require_lru_cache2 = __commonJS({ | |
| 42394 42255 | 
             
                    };
         | 
| 42395 42256 | 
             
                    if (options.status)
         | 
| 42396 42257 | 
             
                      options.status.fetchDispatched = true;
         | 
| 42397 | 
            -
                    const  | 
| 42398 | 
            -
                     | 
| 42399 | 
            -
                     | 
| 42400 | 
            -
                     | 
| 42258 | 
            +
                    const p2 = new Promise(pcall).then(cb, eb);
         | 
| 42259 | 
            +
                    p2.__abortController = ac;
         | 
| 42260 | 
            +
                    p2.__staleWhileFetching = v;
         | 
| 42261 | 
            +
                    p2.__returned = null;
         | 
| 42401 42262 | 
             
                    if (index4 === void 0) {
         | 
| 42402 | 
            -
                      this.set(k,  | 
| 42263 | 
            +
                      this.set(k, p2, { ...fetchOpts.options, status: void 0 });
         | 
| 42403 42264 | 
             
                      index4 = this.keyMap.get(k);
         | 
| 42404 42265 | 
             
                    } else {
         | 
| 42405 | 
            -
                      this.valList[index4] =  | 
| 42266 | 
            +
                      this.valList[index4] = p2;
         | 
| 42406 42267 | 
             
                    }
         | 
| 42407 | 
            -
                    return  | 
| 42268 | 
            +
                    return p2;
         | 
| 42408 42269 | 
             
                  }
         | 
| 42409 | 
            -
                  isBackgroundFetch( | 
| 42410 | 
            -
                    return  | 
| 42411 | 
            -
                       | 
| 42270 | 
            +
                  isBackgroundFetch(p2) {
         | 
| 42271 | 
            +
                    return p2 && typeof p2 === "object" && typeof p2.then === "function" && Object.prototype.hasOwnProperty.call(
         | 
| 42272 | 
            +
                      p2,
         | 
| 42412 42273 | 
             
                      "__staleWhileFetching"
         | 
| 42413 | 
            -
                    ) && Object.prototype.hasOwnProperty.call( | 
| 42274 | 
            +
                    ) && Object.prototype.hasOwnProperty.call(p2, "__returned") && (p2.__returned === p2 || p2.__returned === null);
         | 
| 42414 42275 | 
             
                  }
         | 
| 42415 42276 | 
             
                  // this takes the union of get() and set() opts, because it does both
         | 
| 42416 42277 | 
             
                  async fetch(k, {
         | 
| @@ -42464,8 +42325,8 @@ var require_lru_cache2 = __commonJS({ | |
| 42464 42325 | 
             
                    if (index4 === void 0) {
         | 
| 42465 42326 | 
             
                      if (status)
         | 
| 42466 42327 | 
             
                        status.fetch = "miss";
         | 
| 42467 | 
            -
                      const  | 
| 42468 | 
            -
                      return  | 
| 42328 | 
            +
                      const p2 = this.backgroundFetch(k, index4, options, fetchContext);
         | 
| 42329 | 
            +
                      return p2.__returned = p2;
         | 
| 42469 42330 | 
             
                    } else {
         | 
| 42470 42331 | 
             
                      const v = this.valList[index4];
         | 
| 42471 42332 | 
             
                      if (this.isBackgroundFetch(v)) {
         | 
| @@ -42488,15 +42349,15 @@ var require_lru_cache2 = __commonJS({ | |
| 42488 42349 | 
             
                        this.statusTTL(status, index4);
         | 
| 42489 42350 | 
             
                        return v;
         | 
| 42490 42351 | 
             
                      }
         | 
| 42491 | 
            -
                      const  | 
| 42492 | 
            -
                      const hasStale =  | 
| 42352 | 
            +
                      const p2 = this.backgroundFetch(k, index4, options, fetchContext);
         | 
| 42353 | 
            +
                      const hasStale = p2.__staleWhileFetching !== void 0;
         | 
| 42493 42354 | 
             
                      const staleVal = hasStale && allowStale;
         | 
| 42494 42355 | 
             
                      if (status) {
         | 
| 42495 42356 | 
             
                        status.fetch = hasStale && isStale ? "stale" : "refresh";
         | 
| 42496 42357 | 
             
                        if (staleVal && isStale)
         | 
| 42497 42358 | 
             
                          status.returnedStale = true;
         | 
| 42498 42359 | 
             
                      }
         | 
| 42499 | 
            -
                      return staleVal ?  | 
| 42360 | 
            +
                      return staleVal ? p2.__staleWhileFetching : p2.__returned = p2;
         | 
| 42500 42361 | 
             
                    }
         | 
| 42501 42362 | 
             
                  }
         | 
| 42502 42363 | 
             
                  get(k, {
         | 
| @@ -42542,9 +42403,9 @@ var require_lru_cache2 = __commonJS({ | |
| 42542 42403 | 
             
                      status.get = "miss";
         | 
| 42543 42404 | 
             
                    }
         | 
| 42544 42405 | 
             
                  }
         | 
| 42545 | 
            -
                  connect( | 
| 42546 | 
            -
                    this.prev[n] =  | 
| 42547 | 
            -
                    this.next[ | 
| 42406 | 
            +
                  connect(p2, n) {
         | 
| 42407 | 
            +
                    this.prev[n] = p2;
         | 
| 42408 | 
            +
                    this.next[p2] = n;
         | 
| 42548 42409 | 
             
                  }
         | 
| 42549 42410 | 
             
                  moveToTail(index4) {
         | 
| 42550 42411 | 
             
                    if (index4 !== this.tail) {
         | 
| @@ -42754,7 +42615,7 @@ var require_named_placeholders = __commonJS({ | |
| 42754 42615 | 
             
                    }
         | 
| 42755 42616 | 
             
                    return s;
         | 
| 42756 42617 | 
             
                  }
         | 
| 42757 | 
            -
                  function  | 
| 42618 | 
            +
                  function join7(tree) {
         | 
| 42758 42619 | 
             
                    if (tree.length == 1) {
         | 
| 42759 42620 | 
             
                      return tree;
         | 
| 42760 42621 | 
             
                    }
         | 
| @@ -42780,7 +42641,7 @@ var require_named_placeholders = __commonJS({ | |
| 42780 42641 | 
             
                    if (cache && (tree = cache.get(query))) {
         | 
| 42781 42642 | 
             
                      return toArrayParams(tree, paramsObj);
         | 
| 42782 42643 | 
             
                    }
         | 
| 42783 | 
            -
                    tree =  | 
| 42644 | 
            +
                    tree = join7(parse(query));
         | 
| 42784 42645 | 
             
                    if (cache) {
         | 
| 42785 42646 | 
             
                      cache.set(query, tree);
         | 
| 42786 42647 | 
             
                    }
         | 
| @@ -42880,8 +42741,8 @@ var require_connection2 = __commonJS({ | |
| 42880 42741 | 
             
                    this._outOfOrderPackets = [];
         | 
| 42881 42742 | 
             
                    this.clientEncoding = CharsetToEncoding[this.config.charsetNumber];
         | 
| 42882 42743 | 
             
                    this.stream.on("error", this._handleNetworkError.bind(this));
         | 
| 42883 | 
            -
                    this.packetParser = new PacketParser(( | 
| 42884 | 
            -
                      this.handlePacket( | 
| 42744 | 
            +
                    this.packetParser = new PacketParser((p2) => {
         | 
| 42745 | 
            +
                      this.handlePacket(p2);
         | 
| 42885 42746 | 
             
                    });
         | 
| 42886 42747 | 
             
                    this.stream.on("data", (data) => {
         | 
| 42887 42748 | 
             
                      if (this.connectTimeout) {
         | 
| @@ -43662,7 +43523,7 @@ var require_pool_connection = __commonJS({ | |
| 43662 43523 | 
             
            var require_pool = __commonJS({
         | 
| 43663 43524 | 
             
              "node_modules/.pnpm/mysql2@2.3.3/node_modules/mysql2/lib/pool.js"(exports, module2) {
         | 
| 43664 43525 | 
             
                "use strict";
         | 
| 43665 | 
            -
                var  | 
| 43526 | 
            +
                var process5 = require("process");
         | 
| 43666 43527 | 
             
                var mysql = require_mysql2();
         | 
| 43667 43528 | 
             
                var EventEmitter = require("events").EventEmitter;
         | 
| 43668 43529 | 
             
                var PoolConnection = require_pool_connection();
         | 
| @@ -43693,13 +43554,13 @@ var require_pool = __commonJS({ | |
| 43693 43554 | 
             
                  }
         | 
| 43694 43555 | 
             
                  getConnection(cb) {
         | 
| 43695 43556 | 
             
                    if (this._closed) {
         | 
| 43696 | 
            -
                      return  | 
| 43557 | 
            +
                      return process5.nextTick(() => cb(new Error("Pool is closed.")));
         | 
| 43697 43558 | 
             
                    }
         | 
| 43698 43559 | 
             
                    let connection;
         | 
| 43699 43560 | 
             
                    if (this._freeConnections.length > 0) {
         | 
| 43700 43561 | 
             
                      connection = this._freeConnections.shift();
         | 
| 43701 43562 | 
             
                      this.emit("acquire", connection);
         | 
| 43702 | 
            -
                      return  | 
| 43563 | 
            +
                      return process5.nextTick(() => cb(null, connection));
         | 
| 43703 43564 | 
             
                    }
         | 
| 43704 43565 | 
             
                    if (this.config.connectionLimit === 0 || this._allConnections.length < this.config.connectionLimit) {
         | 
| 43705 43566 | 
             
                      connection = new PoolConnection(this, {
         | 
| @@ -43719,7 +43580,7 @@ var require_pool = __commonJS({ | |
| 43719 43580 | 
             
                      });
         | 
| 43720 43581 | 
             
                    }
         | 
| 43721 43582 | 
             
                    if (!this.config.waitForConnections) {
         | 
| 43722 | 
            -
                      return  | 
| 43583 | 
            +
                      return process5.nextTick(() => cb(new Error("No connections available.")));
         | 
| 43723 43584 | 
             
                    }
         | 
| 43724 43585 | 
             
                    if (this.config.queueLimit && this._connectionQueue.length >= this.config.queueLimit) {
         | 
| 43725 43586 | 
             
                      return cb(new Error("Queue limit reached."));
         | 
| @@ -43732,11 +43593,11 @@ var require_pool = __commonJS({ | |
| 43732 43593 | 
             
                    if (!connection._pool) {
         | 
| 43733 43594 | 
             
                      if (this._connectionQueue.length) {
         | 
| 43734 43595 | 
             
                        cb = this._connectionQueue.shift();
         | 
| 43735 | 
            -
                         | 
| 43596 | 
            +
                        process5.nextTick(this.getConnection.bind(this, cb));
         | 
| 43736 43597 | 
             
                      }
         | 
| 43737 43598 | 
             
                    } else if (this._connectionQueue.length) {
         | 
| 43738 43599 | 
             
                      cb = this._connectionQueue.shift();
         | 
| 43739 | 
            -
                       | 
| 43600 | 
            +
                      process5.nextTick(cb.bind(null, null, connection));
         | 
| 43740 43601 | 
             
                    } else {
         | 
| 43741 43602 | 
             
                      this._freeConnections.push(connection);
         | 
| 43742 43603 | 
             
                      this.emit("release", connection);
         | 
| @@ -43874,7 +43735,7 @@ var require_pool_config = __commonJS({ | |
| 43874 43735 | 
             
            var require_pool_cluster = __commonJS({
         | 
| 43875 43736 | 
             
              "node_modules/.pnpm/mysql2@2.3.3/node_modules/mysql2/lib/pool_cluster.js"(exports, module2) {
         | 
| 43876 43737 | 
             
                "use strict";
         | 
| 43877 | 
            -
                var  | 
| 43738 | 
            +
                var process5 = require("process");
         | 
| 43878 43739 | 
             
                var Pool = require_pool();
         | 
| 43879 43740 | 
             
                var PoolConfig = require_pool_config();
         | 
| 43880 43741 | 
             
                var Connection2 = require_connection2();
         | 
| @@ -44038,7 +43899,7 @@ var require_pool_cluster = __commonJS({ | |
| 44038 43899 | 
             
                      }
         | 
| 44039 43900 | 
             
                    };
         | 
| 44040 43901 | 
             
                    if (this._closed) {
         | 
| 44041 | 
            -
                       | 
| 43902 | 
            +
                      process5.nextTick(cb);
         | 
| 44042 43903 | 
             
                      return;
         | 
| 44043 43904 | 
             
                    }
         | 
| 44044 43905 | 
             
                    this._closed = true;
         | 
| @@ -44055,7 +43916,7 @@ var require_pool_cluster = __commonJS({ | |
| 44055 43916 | 
             
                      this._nodes[id].pool.end(onEnd);
         | 
| 44056 43917 | 
             
                    }
         | 
| 44057 43918 | 
             
                    if (waitingClose === 0) {
         | 
| 44058 | 
            -
                       | 
| 43919 | 
            +
                      process5.nextTick(onEnd);
         | 
| 44059 43920 | 
             
                    }
         | 
| 44060 43921 | 
             
                  }
         | 
| 44061 43922 | 
             
                  _findNodeIds(pattern) {
         | 
| @@ -44709,15 +44570,15 @@ var require_promise = __commonJS({ | |
| 44709 44570 | 
             
            });
         | 
| 44710 44571 |  | 
| 44711 44572 | 
             
            // src/orm-extenstions/d1-driver/session.ts
         | 
| 44712 | 
            -
            var import_drizzle_orm10, import_drizzle_orm11, import_drizzle_orm12,  | 
| 44573 | 
            +
            var import_drizzle_orm10, import_drizzle_orm11, import_drizzle_orm12, import_sqlite_core4, import_drizzle_orm13, _a, SQLiteWranglerD1Session, _a2, PreparedQuery;
         | 
| 44713 44574 | 
             
            var init_session = __esm({
         | 
| 44714 44575 | 
             
              "src/orm-extenstions/d1-driver/session.ts"() {
         | 
| 44715 44576 | 
             
                import_drizzle_orm10 = require("drizzle-orm");
         | 
| 44716 44577 | 
             
                import_drizzle_orm11 = require("drizzle-orm");
         | 
| 44717 44578 | 
             
                import_drizzle_orm12 = require("drizzle-orm");
         | 
| 44718 | 
            -
                 | 
| 44579 | 
            +
                import_sqlite_core4 = require("drizzle-orm/sqlite-core");
         | 
| 44719 44580 | 
             
                import_drizzle_orm13 = require("drizzle-orm");
         | 
| 44720 | 
            -
                SQLiteWranglerD1Session = class extends  | 
| 44581 | 
            +
                SQLiteWranglerD1Session = class extends import_sqlite_core4.SQLiteSession {
         | 
| 44721 44582 | 
             
                  constructor(client, configPath, dbName, dialect6, schema4, options = {}) {
         | 
| 44722 44583 | 
             
                    super(dialect6);
         | 
| 44723 44584 | 
             
                    this.client = client;
         | 
| @@ -44746,7 +44607,7 @@ var init_session = __esm({ | |
| 44746 44607 | 
             
                };
         | 
| 44747 44608 | 
             
                _a = import_drizzle_orm10.entityKind;
         | 
| 44748 44609 | 
             
                SQLiteWranglerD1Session[_a] = "SQLiteD1Session";
         | 
| 44749 | 
            -
                PreparedQuery = class extends  | 
| 44610 | 
            +
                PreparedQuery = class extends import_sqlite_core4.SQLitePreparedQuery {
         | 
| 44750 44611 | 
             
                  constructor(stmt, configPath, dbName, queryString, params, logger, fields, executeMethod, customResultMapper) {
         | 
| 44751 44612 | 
             
                    super("async", executeMethod, {
         | 
| 44752 44613 | 
             
                      sql: queryString,
         | 
| @@ -44871,20 +44732,20 @@ function drizzle(client, configPath, dbName, config = {}) { | |
| 44871 44732 | 
             
              const session = new SQLiteWranglerD1Session(client, configPath, dbName, dialect6, schema4, {
         | 
| 44872 44733 | 
             
                logger
         | 
| 44873 44734 | 
             
              });
         | 
| 44874 | 
            -
              return new  | 
| 44735 | 
            +
              return new import_sqlite_core5.BaseSQLiteDatabase(
         | 
| 44875 44736 | 
             
                "async",
         | 
| 44876 44737 | 
             
                dialect6,
         | 
| 44877 44738 | 
             
                session,
         | 
| 44878 44739 | 
             
                schema4
         | 
| 44879 44740 | 
             
              );
         | 
| 44880 44741 | 
             
            }
         | 
| 44881 | 
            -
            var import_drizzle_orm14,  | 
| 44742 | 
            +
            var import_drizzle_orm14, import_sqlite_core5, WranglerDialect;
         | 
| 44882 44743 | 
             
            var init_driver = __esm({
         | 
| 44883 44744 | 
             
              "src/orm-extenstions/d1-driver/driver.ts"() {
         | 
| 44884 44745 | 
             
                import_drizzle_orm14 = require("drizzle-orm");
         | 
| 44885 | 
            -
                 | 
| 44746 | 
            +
                import_sqlite_core5 = require("drizzle-orm/sqlite-core");
         | 
| 44886 44747 | 
             
                init_session();
         | 
| 44887 | 
            -
                WranglerDialect = class extends  | 
| 44748 | 
            +
                WranglerDialect = class extends import_sqlite_core5.SQLiteAsyncDialect {
         | 
| 44888 44749 | 
             
                  sqlToQuery(sql2) {
         | 
| 44889 44750 | 
             
                    return sql2.toQuery({
         | 
| 44890 44751 | 
             
                      escapeName: this.escapeName,
         | 
| @@ -44904,7 +44765,7 @@ var require_windows = __commonJS({ | |
| 44904 44765 | 
             
                module2.exports = isexe;
         | 
| 44905 44766 | 
             
                isexe.sync = sync2;
         | 
| 44906 44767 | 
             
                var fs9 = require("fs");
         | 
| 44907 | 
            -
                function checkPathExt( | 
| 44768 | 
            +
                function checkPathExt(path5, options) {
         | 
| 44908 44769 | 
             
                  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
         | 
| 44909 44770 | 
             
                  if (!pathext) {
         | 
| 44910 44771 | 
             
                    return true;
         | 
| @@ -44914,26 +44775,26 @@ var require_windows = __commonJS({ | |
| 44914 44775 | 
             
                    return true;
         | 
| 44915 44776 | 
             
                  }
         | 
| 44916 44777 | 
             
                  for (var i = 0; i < pathext.length; i++) {
         | 
| 44917 | 
            -
                    var  | 
| 44918 | 
            -
                    if ( | 
| 44778 | 
            +
                    var p2 = pathext[i].toLowerCase();
         | 
| 44779 | 
            +
                    if (p2 && path5.substr(-p2.length).toLowerCase() === p2) {
         | 
| 44919 44780 | 
             
                      return true;
         | 
| 44920 44781 | 
             
                    }
         | 
| 44921 44782 | 
             
                  }
         | 
| 44922 44783 | 
             
                  return false;
         | 
| 44923 44784 | 
             
                }
         | 
| 44924 | 
            -
                function checkStat(stat,  | 
| 44785 | 
            +
                function checkStat(stat, path5, options) {
         | 
| 44925 44786 | 
             
                  if (!stat.isSymbolicLink() && !stat.isFile()) {
         | 
| 44926 44787 | 
             
                    return false;
         | 
| 44927 44788 | 
             
                  }
         | 
| 44928 | 
            -
                  return checkPathExt( | 
| 44789 | 
            +
                  return checkPathExt(path5, options);
         | 
| 44929 44790 | 
             
                }
         | 
| 44930 | 
            -
                function isexe( | 
| 44931 | 
            -
                  fs9.stat( | 
| 44932 | 
            -
                    cb(er, er ? false : checkStat(stat,  | 
| 44791 | 
            +
                function isexe(path5, options, cb) {
         | 
| 44792 | 
            +
                  fs9.stat(path5, function(er, stat) {
         | 
| 44793 | 
            +
                    cb(er, er ? false : checkStat(stat, path5, options));
         | 
| 44933 44794 | 
             
                  });
         | 
| 44934 44795 | 
             
                }
         | 
| 44935 | 
            -
                function sync2( | 
| 44936 | 
            -
                  return checkStat(fs9.statSync( | 
| 44796 | 
            +
                function sync2(path5, options) {
         | 
| 44797 | 
            +
                  return checkStat(fs9.statSync(path5), path5, options);
         | 
| 44937 44798 | 
             
                }
         | 
| 44938 44799 | 
             
              }
         | 
| 44939 44800 | 
             
            });
         | 
| @@ -44944,13 +44805,13 @@ var require_mode = __commonJS({ | |
| 44944 44805 | 
             
                module2.exports = isexe;
         | 
| 44945 44806 | 
             
                isexe.sync = sync2;
         | 
| 44946 44807 | 
             
                var fs9 = require("fs");
         | 
| 44947 | 
            -
                function isexe( | 
| 44948 | 
            -
                  fs9.stat( | 
| 44808 | 
            +
                function isexe(path5, options, cb) {
         | 
| 44809 | 
            +
                  fs9.stat(path5, function(er, stat) {
         | 
| 44949 44810 | 
             
                    cb(er, er ? false : checkStat(stat, options));
         | 
| 44950 44811 | 
             
                  });
         | 
| 44951 44812 | 
             
                }
         | 
| 44952 | 
            -
                function sync2( | 
| 44953 | 
            -
                  return checkStat(fs9.statSync( | 
| 44813 | 
            +
                function sync2(path5, options) {
         | 
| 44814 | 
            +
                  return checkStat(fs9.statSync(path5), options);
         | 
| 44954 44815 | 
             
                }
         | 
| 44955 44816 | 
             
                function checkStat(stat, options) {
         | 
| 44956 44817 | 
             
                  return stat.isFile() && checkMode(stat, options);
         | 
| @@ -44983,7 +44844,7 @@ var require_isexe = __commonJS({ | |
| 44983 44844 | 
             
                }
         | 
| 44984 44845 | 
             
                module2.exports = isexe;
         | 
| 44985 44846 | 
             
                isexe.sync = sync2;
         | 
| 44986 | 
            -
                function isexe( | 
| 44847 | 
            +
                function isexe(path5, options, cb) {
         | 
| 44987 44848 | 
             
                  if (typeof options === "function") {
         | 
| 44988 44849 | 
             
                    cb = options;
         | 
| 44989 44850 | 
             
                    options = {};
         | 
| @@ -44993,7 +44854,7 @@ var require_isexe = __commonJS({ | |
| 44993 44854 | 
             
                      throw new TypeError("callback not provided");
         | 
| 44994 44855 | 
             
                    }
         | 
| 44995 44856 | 
             
                    return new Promise(function(resolve2, reject) {
         | 
| 44996 | 
            -
                      isexe( | 
| 44857 | 
            +
                      isexe(path5, options || {}, function(er, is9) {
         | 
| 44997 44858 | 
             
                        if (er) {
         | 
| 44998 44859 | 
             
                          reject(er);
         | 
| 44999 44860 | 
             
                        } else {
         | 
| @@ -45002,7 +44863,7 @@ var require_isexe = __commonJS({ | |
| 45002 44863 | 
             
                      });
         | 
| 45003 44864 | 
             
                    });
         | 
| 45004 44865 | 
             
                  }
         | 
| 45005 | 
            -
                  core( | 
| 44866 | 
            +
                  core(path5, options || {}, function(er, is9) {
         | 
| 45006 44867 | 
             
                    if (er) {
         | 
| 45007 44868 | 
             
                      if (er.code === "EACCES" || options && options.ignoreErrors) {
         | 
| 45008 44869 | 
             
                        er = null;
         | 
| @@ -45012,9 +44873,9 @@ var require_isexe = __commonJS({ | |
| 45012 44873 | 
             
                    cb(er, is9);
         | 
| 45013 44874 | 
             
                  });
         | 
| 45014 44875 | 
             
                }
         | 
| 45015 | 
            -
                function sync2( | 
| 44876 | 
            +
                function sync2(path5, options) {
         | 
| 45016 44877 | 
             
                  try {
         | 
| 45017 | 
            -
                    return core.sync( | 
| 44878 | 
            +
                    return core.sync(path5, options || {});
         | 
| 45018 44879 | 
             
                  } catch (er) {
         | 
| 45019 44880 | 
             
                    if (options && options.ignoreErrors || er.code === "EACCES") {
         | 
| 45020 44881 | 
             
                      return false;
         | 
| @@ -45030,7 +44891,7 @@ var require_isexe = __commonJS({ | |
| 45030 44891 | 
             
            var require_lib4 = __commonJS({
         | 
| 45031 44892 | 
             
              "node_modules/.pnpm/which@3.0.1/node_modules/which/lib/index.js"(exports, module2) {
         | 
| 45032 44893 | 
             
                var isexe = require_isexe();
         | 
| 45033 | 
            -
                var { join:  | 
| 44894 | 
            +
                var { join: join7, delimiter, sep: sep2, posix } = require("path");
         | 
| 45034 44895 | 
             
                var isWindows = process.platform === "win32";
         | 
| 45035 44896 | 
             
                var rSlash = new RegExp(`[${posix.sep}${sep2 === posix.sep ? "" : sep2}]`.replace(/(\\)/g, "\\$1"));
         | 
| 45036 44897 | 
             
                var rRel = new RegExp(`^\\.${rSlash.source}`);
         | 
| @@ -45063,15 +44924,15 @@ var require_lib4 = __commonJS({ | |
| 45063 44924 | 
             
                var getPathPart = (raw, cmd) => {
         | 
| 45064 44925 | 
             
                  const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
         | 
| 45065 44926 | 
             
                  const prefix = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "";
         | 
| 45066 | 
            -
                  return prefix +  | 
| 44927 | 
            +
                  return prefix + join7(pathPart, cmd);
         | 
| 45067 44928 | 
             
                };
         | 
| 45068 44929 | 
             
                var which2 = async (cmd, opt = {}) => {
         | 
| 45069 44930 | 
             
                  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
         | 
| 45070 44931 | 
             
                  const found = [];
         | 
| 45071 44932 | 
             
                  for (const envPart of pathEnv) {
         | 
| 45072 | 
            -
                    const  | 
| 44933 | 
            +
                    const p2 = getPathPart(envPart, cmd);
         | 
| 45073 44934 | 
             
                    for (const ext2 of pathExt) {
         | 
| 45074 | 
            -
                      const withExt =  | 
| 44935 | 
            +
                      const withExt = p2 + ext2;
         | 
| 45075 44936 | 
             
                      const is9 = await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: true });
         | 
| 45076 44937 | 
             
                      if (is9) {
         | 
| 45077 44938 | 
             
                        if (!opt.all) {
         | 
| @@ -45093,9 +44954,9 @@ var require_lib4 = __commonJS({ | |
| 45093 44954 | 
             
                  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
         | 
| 45094 44955 | 
             
                  const found = [];
         | 
| 45095 44956 | 
             
                  for (const pathEnvPart of pathEnv) {
         | 
| 45096 | 
            -
                    const  | 
| 44957 | 
            +
                    const p2 = getPathPart(pathEnvPart, cmd);
         | 
| 45097 44958 | 
             
                    for (const ext2 of pathExt) {
         | 
| 45098 | 
            -
                      const withExt =  | 
| 44959 | 
            +
                      const withExt = p2 + ext2;
         | 
| 45099 44960 | 
             
                      const is9 = isexe.sync(withExt, { pathExt: pathExtExe, ignoreErrors: true });
         | 
| 45100 44961 | 
             
                      if (is9) {
         | 
| 45101 44962 | 
             
                        if (!opt.all) {
         | 
| @@ -46256,7 +46117,7 @@ var init_core = __esm({ | |
| 46256 46117 | 
             
                }
         | 
| 46257 46118 | 
             
                $ = new Proxy(function(pieces, ...args) {
         | 
| 46258 46119 | 
             
                  const from = new Error().stack.split(/^\s*at\s/m)[2].trim();
         | 
| 46259 | 
            -
                  if (pieces.some(( | 
| 46120 | 
            +
                  if (pieces.some((p2) => p2 == void 0)) {
         | 
| 46260 46121 | 
             
                    throw new Error(`Malformed command at ${from}`);
         | 
| 46261 46122 | 
             
                  }
         | 
| 46262 46123 | 
             
                  let resolve2, reject;
         | 
| @@ -46398,7 +46259,7 @@ var init_core = __esm({ | |
| 46398 46259 | 
             
                    return this.child.stderr;
         | 
| 46399 46260 | 
             
                  }
         | 
| 46400 46261 | 
             
                  get exitCode() {
         | 
| 46401 | 
            -
                    return this.then(( | 
| 46262 | 
            +
                    return this.then((p2) => p2.exitCode, (p2) => p2.exitCode);
         | 
| 46402 46263 | 
             
                  }
         | 
| 46403 46264 | 
             
                  then(onfulfilled, onrejected) {
         | 
| 46404 46265 | 
             
                    if (this.isHalted && !this.child) {
         | 
| @@ -46438,9 +46299,9 @@ var init_core = __esm({ | |
| 46438 46299 | 
             
                    if (!this.child.pid)
         | 
| 46439 46300 | 
             
                      throw new Error("The process pid is undefined.");
         | 
| 46440 46301 | 
             
                    let children = await psTree(this.child.pid);
         | 
| 46441 | 
            -
                    for (const  | 
| 46302 | 
            +
                    for (const p2 of children) {
         | 
| 46442 46303 | 
             
                      try {
         | 
| 46443 | 
            -
                        process.kill(+ | 
| 46304 | 
            +
                        process.kill(+p2.PID, signal);
         | 
| 46444 46305 | 
             
                      } catch (e) {
         | 
| 46445 46306 | 
             
                      }
         | 
| 46446 46307 | 
             
                    }
         | 
| @@ -46701,9 +46562,9 @@ var require_path = __commonJS({ | |
| 46701 46562 | 
             
                "use strict";
         | 
| 46702 46563 | 
             
                Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 46703 46564 | 
             
                exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
         | 
| 46704 | 
            -
                var  | 
| 46705 | 
            -
                var  | 
| 46706 | 
            -
                var IS_WINDOWS_PLATFORM =  | 
| 46565 | 
            +
                var os3 = require("os");
         | 
| 46566 | 
            +
                var path5 = require("path");
         | 
| 46567 | 
            +
                var IS_WINDOWS_PLATFORM = os3.platform() === "win32";
         | 
| 46707 46568 | 
             
                var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
         | 
| 46708 46569 | 
             
                var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
         | 
| 46709 46570 | 
             
                var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([(){}]|^!|[!+@](?=\())/g;
         | 
| @@ -46714,7 +46575,7 @@ var require_path = __commonJS({ | |
| 46714 46575 | 
             
                }
         | 
| 46715 46576 | 
             
                exports.unixify = unixify;
         | 
| 46716 46577 | 
             
                function makeAbsolute(cwd, filepath) {
         | 
| 46717 | 
            -
                  return  | 
| 46578 | 
            +
                  return path5.resolve(cwd, filepath);
         | 
| 46718 46579 | 
             
                }
         | 
| 46719 46580 | 
             
                exports.makeAbsolute = makeAbsolute;
         | 
| 46720 46581 | 
             
                function removeLeadingDotSegment(entry) {
         | 
| @@ -47561,11 +47422,11 @@ var require_expand = __commonJS({ | |
| 47561 47422 | 
             
                  let rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
         | 
| 47562 47423 | 
             
                  let walk = (node, parent = {}) => {
         | 
| 47563 47424 | 
             
                    node.queue = [];
         | 
| 47564 | 
            -
                    let  | 
| 47425 | 
            +
                    let p2 = parent;
         | 
| 47565 47426 | 
             
                    let q = parent.queue;
         | 
| 47566 | 
            -
                    while ( | 
| 47567 | 
            -
                       | 
| 47568 | 
            -
                      q =  | 
| 47427 | 
            +
                    while (p2.type !== "brace" && p2.type !== "root" && p2.parent) {
         | 
| 47428 | 
            +
                      p2 = p2.parent;
         | 
| 47429 | 
            +
                      q = p2.queue;
         | 
| 47569 47430 | 
             
                    }
         | 
| 47570 47431 | 
             
                    if (node.invalid || node.dollar) {
         | 
| 47571 47432 | 
             
                      q.push(append(q.pop(), stringify(node, options)));
         | 
| @@ -48035,7 +47896,7 @@ var require_braces = __commonJS({ | |
| 48035 47896 | 
             
            var require_constants3 = __commonJS({
         | 
| 48036 47897 | 
             
              "node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module2) {
         | 
| 48037 47898 | 
             
                "use strict";
         | 
| 48038 | 
            -
                var  | 
| 47899 | 
            +
                var path5 = require("path");
         | 
| 48039 47900 | 
             
                var WIN_SLASH = "\\\\/";
         | 
| 48040 47901 | 
             
                var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
         | 
| 48041 47902 | 
             
                var DOT_LITERAL = "\\.";
         | 
| @@ -48205,7 +48066,7 @@ var require_constants3 = __commonJS({ | |
| 48205 48066 | 
             
                  /* | */
         | 
| 48206 48067 | 
             
                  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
         | 
| 48207 48068 | 
             
                  /* \uFEFF */
         | 
| 48208 | 
            -
                  SEP:  | 
| 48069 | 
            +
                  SEP: path5.sep,
         | 
| 48209 48070 | 
             
                  /**
         | 
| 48210 48071 | 
             
                   * Create EXTGLOB_CHARS
         | 
| 48211 48072 | 
             
                   */
         | 
| @@ -48232,7 +48093,7 @@ var require_constants3 = __commonJS({ | |
| 48232 48093 | 
             
            var require_utils5 = __commonJS({
         | 
| 48233 48094 | 
             
              "node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
         | 
| 48234 48095 | 
             
                "use strict";
         | 
| 48235 | 
            -
                var  | 
| 48096 | 
            +
                var path5 = require("path");
         | 
| 48236 48097 | 
             
                var win32 = process.platform === "win32";
         | 
| 48237 48098 | 
             
                var {
         | 
| 48238 48099 | 
             
                  REGEX_BACKSLASH,
         | 
| @@ -48261,7 +48122,7 @@ var require_utils5 = __commonJS({ | |
| 48261 48122 | 
             
                  if (options && typeof options.windows === "boolean") {
         | 
| 48262 48123 | 
             
                    return options.windows;
         | 
| 48263 48124 | 
             
                  }
         | 
| 48264 | 
            -
                  return win32 === true ||  | 
| 48125 | 
            +
                  return win32 === true || path5.sep === "\\";
         | 
| 48265 48126 | 
             
                };
         | 
| 48266 48127 | 
             
                exports.escapeLast = (input, char, lastIdx) => {
         | 
| 48267 48128 | 
             
                  const idx = input.lastIndexOf(char, lastIdx);
         | 
| @@ -49409,7 +49270,7 @@ var require_parse3 = __commonJS({ | |
| 49409 49270 | 
             
            var require_picomatch = __commonJS({
         | 
| 49410 49271 | 
             
              "node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module2) {
         | 
| 49411 49272 | 
             
                "use strict";
         | 
| 49412 | 
            -
                var  | 
| 49273 | 
            +
                var path5 = require("path");
         | 
| 49413 49274 | 
             
                var scan = require_scan();
         | 
| 49414 49275 | 
             
                var parse = require_parse3();
         | 
| 49415 49276 | 
             
                var utils = require_utils5();
         | 
| @@ -49495,12 +49356,12 @@ var require_picomatch = __commonJS({ | |
| 49495 49356 | 
             
                };
         | 
| 49496 49357 | 
             
                picomatch.matchBase = (input, glob2, options, posix = utils.isWindows(options)) => {
         | 
| 49497 49358 | 
             
                  const regex = glob2 instanceof RegExp ? glob2 : picomatch.makeRe(glob2, options);
         | 
| 49498 | 
            -
                  return regex.test( | 
| 49359 | 
            +
                  return regex.test(path5.basename(input));
         | 
| 49499 49360 | 
             
                };
         | 
| 49500 49361 | 
             
                picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
         | 
| 49501 49362 | 
             
                picomatch.parse = (pattern, options) => {
         | 
| 49502 49363 | 
             
                  if (Array.isArray(pattern))
         | 
| 49503 | 
            -
                    return pattern.map(( | 
| 49364 | 
            +
                    return pattern.map((p2) => picomatch.parse(p2, options));
         | 
| 49504 49365 | 
             
                  return parse(pattern, { ...options, fastpaths: false });
         | 
| 49505 49366 | 
             
                };
         | 
| 49506 49367 | 
             
                picomatch.scan = (input, options) => scan(input, options);
         | 
| @@ -49604,7 +49465,7 @@ var require_micromatch = __commonJS({ | |
| 49604 49465 | 
             
                      throw new Error(`No matches found for "${patterns.join(", ")}"`);
         | 
| 49605 49466 | 
             
                    }
         | 
| 49606 49467 | 
             
                    if (options.nonull === true || options.nullglob === true) {
         | 
| 49607 | 
            -
                      return options.unescape ? patterns.map(( | 
| 49468 | 
            +
                      return options.unescape ? patterns.map((p2) => p2.replace(/\\/g, "")) : patterns;
         | 
| 49608 49469 | 
             
                    }
         | 
| 49609 49470 | 
             
                  }
         | 
| 49610 49471 | 
             
                  return matches;
         | 
| @@ -49635,7 +49496,7 @@ var require_micromatch = __commonJS({ | |
| 49635 49496 | 
             
                    throw new TypeError(`Expected a string: "${util2.inspect(str)}"`);
         | 
| 49636 49497 | 
             
                  }
         | 
| 49637 49498 | 
             
                  if (Array.isArray(pattern)) {
         | 
| 49638 | 
            -
                    return pattern.some(( | 
| 49499 | 
            +
                    return pattern.some((p2) => micromatch.contains(str, p2, options));
         | 
| 49639 49500 | 
             
                  }
         | 
| 49640 49501 | 
             
                  if (typeof pattern === "string") {
         | 
| 49641 49502 | 
             
                    if (isEmptyString(str) || isEmptyString(pattern)) {
         | 
| @@ -49681,7 +49542,7 @@ var require_micromatch = __commonJS({ | |
| 49681 49542 | 
             
                  if (typeof str !== "string") {
         | 
| 49682 49543 | 
             
                    throw new TypeError(`Expected a string: "${util2.inspect(str)}"`);
         | 
| 49683 49544 | 
             
                  }
         | 
| 49684 | 
            -
                  return [].concat(patterns).every(( | 
| 49545 | 
            +
                  return [].concat(patterns).every((p2) => picomatch(p2, options)(str));
         | 
| 49685 49546 | 
             
                };
         | 
| 49686 49547 | 
             
                micromatch.capture = (glob2, input, options) => {
         | 
| 49687 49548 | 
             
                  let posix = utils.isWindows(options);
         | 
| @@ -49725,7 +49586,7 @@ var require_pattern = __commonJS({ | |
| 49725 49586 | 
             
                "use strict";
         | 
| 49726 49587 | 
             
                Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 49727 49588 | 
             
                exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
         | 
| 49728 | 
            -
                var  | 
| 49589 | 
            +
                var path5 = require("path");
         | 
| 49729 49590 | 
             
                var globParent = require_glob_parent();
         | 
| 49730 49591 | 
             
                var micromatch = require_micromatch();
         | 
| 49731 49592 | 
             
                var GLOBSTAR2 = "**";
         | 
| @@ -49820,7 +49681,7 @@ var require_pattern = __commonJS({ | |
| 49820 49681 | 
             
                }
         | 
| 49821 49682 | 
             
                exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
         | 
| 49822 49683 | 
             
                function isAffectDepthOfReadingPattern(pattern) {
         | 
| 49823 | 
            -
                  const basename =  | 
| 49684 | 
            +
                  const basename = path5.basename(pattern);
         | 
| 49824 49685 | 
             
                  return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
         | 
| 49825 49686 | 
             
                }
         | 
| 49826 49687 | 
             
                exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
         | 
| @@ -49919,8 +49780,8 @@ var require_utils6 = __commonJS({ | |
| 49919 49780 | 
             
                exports.errno = errno;
         | 
| 49920 49781 | 
             
                var fs9 = require_fs();
         | 
| 49921 49782 | 
             
                exports.fs = fs9;
         | 
| 49922 | 
            -
                var  | 
| 49923 | 
            -
                exports.path =  | 
| 49783 | 
            +
                var path5 = require_path();
         | 
| 49784 | 
            +
                exports.path = path5;
         | 
| 49924 49785 | 
             
                var pattern = require_pattern();
         | 
| 49925 49786 | 
             
                exports.pattern = pattern;
         | 
| 49926 49787 | 
             
                var stream = require_stream2();
         | 
| @@ -50032,8 +49893,8 @@ var require_async = __commonJS({ | |
| 50032 49893 | 
             
                "use strict";
         | 
| 50033 49894 | 
             
                Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 50034 49895 | 
             
                exports.read = void 0;
         | 
| 50035 | 
            -
                function read( | 
| 50036 | 
            -
                  settings.fs.lstat( | 
| 49896 | 
            +
                function read(path5, settings, callback) {
         | 
| 49897 | 
            +
                  settings.fs.lstat(path5, (lstatError, lstat) => {
         | 
| 50037 49898 | 
             
                    if (lstatError !== null) {
         | 
| 50038 49899 | 
             
                      callFailureCallback(callback, lstatError);
         | 
| 50039 49900 | 
             
                      return;
         | 
| @@ -50042,7 +49903,7 @@ var require_async = __commonJS({ | |
| 50042 49903 | 
             
                      callSuccessCallback(callback, lstat);
         | 
| 50043 49904 | 
             
                      return;
         | 
| 50044 49905 | 
             
                    }
         | 
| 50045 | 
            -
                    settings.fs.stat( | 
| 49906 | 
            +
                    settings.fs.stat(path5, (statError, stat) => {
         | 
| 50046 49907 | 
             
                      if (statError !== null) {
         | 
| 50047 49908 | 
             
                        if (settings.throwErrorOnBrokenSymbolicLink) {
         | 
| 50048 49909 | 
             
                          callFailureCallback(callback, statError);
         | 
| @@ -50074,13 +49935,13 @@ var require_sync = __commonJS({ | |
| 50074 49935 | 
             
                "use strict";
         | 
| 50075 49936 | 
             
                Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 50076 49937 | 
             
                exports.read = void 0;
         | 
| 50077 | 
            -
                function read( | 
| 50078 | 
            -
                  const lstat = settings.fs.lstatSync( | 
| 49938 | 
            +
                function read(path5, settings) {
         | 
| 49939 | 
            +
                  const lstat = settings.fs.lstatSync(path5);
         | 
| 50079 49940 | 
             
                  if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
         | 
| 50080 49941 | 
             
                    return lstat;
         | 
| 50081 49942 | 
             
                  }
         | 
| 50082 49943 | 
             
                  try {
         | 
| 50083 | 
            -
                    const stat = settings.fs.statSync( | 
| 49944 | 
            +
                    const stat = settings.fs.statSync(path5);
         | 
| 50084 49945 | 
             
                    if (settings.markSymbolicLink) {
         | 
| 50085 49946 | 
             
                      stat.isSymbolicLink = () => true;
         | 
| 50086 49947 | 
             
                    }
         | 
| @@ -50151,17 +50012,17 @@ var require_out = __commonJS({ | |
| 50151 50012 | 
             
                var sync2 = require_sync();
         | 
| 50152 50013 | 
             
                var settings_1 = require_settings();
         | 
| 50153 50014 | 
             
                exports.Settings = settings_1.default;
         | 
| 50154 | 
            -
                function stat( | 
| 50015 | 
            +
                function stat(path5, optionsOrSettingsOrCallback, callback) {
         | 
| 50155 50016 | 
             
                  if (typeof optionsOrSettingsOrCallback === "function") {
         | 
| 50156 | 
            -
                    async.read( | 
| 50017 | 
            +
                    async.read(path5, getSettings(), optionsOrSettingsOrCallback);
         | 
| 50157 50018 | 
             
                    return;
         | 
| 50158 50019 | 
             
                  }
         | 
| 50159 | 
            -
                  async.read( | 
| 50020 | 
            +
                  async.read(path5, getSettings(optionsOrSettingsOrCallback), callback);
         | 
| 50160 50021 | 
             
                }
         | 
| 50161 50022 | 
             
                exports.stat = stat;
         | 
| 50162 | 
            -
                function statSync( | 
| 50023 | 
            +
                function statSync(path5, optionsOrSettings) {
         | 
| 50163 50024 | 
             
                  const settings = getSettings(optionsOrSettings);
         | 
| 50164 | 
            -
                  return sync2.read( | 
| 50025 | 
            +
                  return sync2.read(path5, settings);
         | 
| 50165 50026 | 
             
                }
         | 
| 50166 50027 | 
             
                exports.statSync = statSync;
         | 
| 50167 50028 | 
             
                function getSettings(settingsOrOptions = {}) {
         | 
| @@ -50380,16 +50241,16 @@ var require_async2 = __commonJS({ | |
| 50380 50241 | 
             
                      return;
         | 
| 50381 50242 | 
             
                    }
         | 
| 50382 50243 | 
             
                    const tasks = names.map((name) => {
         | 
| 50383 | 
            -
                      const  | 
| 50244 | 
            +
                      const path5 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
         | 
| 50384 50245 | 
             
                      return (done) => {
         | 
| 50385 | 
            -
                        fsStat.stat( | 
| 50246 | 
            +
                        fsStat.stat(path5, settings.fsStatSettings, (error2, stats) => {
         | 
| 50386 50247 | 
             
                          if (error2 !== null) {
         | 
| 50387 50248 | 
             
                            done(error2);
         | 
| 50388 50249 | 
             
                            return;
         | 
| 50389 50250 | 
             
                          }
         | 
| 50390 50251 | 
             
                          const entry = {
         | 
| 50391 50252 | 
             
                            name,
         | 
| 50392 | 
            -
                            path:  | 
| 50253 | 
            +
                            path: path5,
         | 
| 50393 50254 | 
             
                            dirent: utils.fs.createDirentFromStats(name, stats)
         | 
| 50394 50255 | 
             
                          };
         | 
| 50395 50256 | 
             
                          if (settings.stats) {
         | 
| @@ -50507,7 +50368,7 @@ var require_settings2 = __commonJS({ | |
| 50507 50368 | 
             
              "node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
         | 
| 50508 50369 | 
             
                "use strict";
         | 
| 50509 50370 | 
             
                Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 50510 | 
            -
                var  | 
| 50371 | 
            +
                var path5 = require("path");
         | 
| 50511 50372 | 
             
                var fsStat = require_out();
         | 
| 50512 50373 | 
             
                var fs9 = require_fs4();
         | 
| 50513 50374 | 
             
                var Settings = class {
         | 
| @@ -50515,7 +50376,7 @@ var require_settings2 = __commonJS({ | |
| 50515 50376 | 
             
                    this._options = _options;
         | 
| 50516 50377 | 
             
                    this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
         | 
| 50517 50378 | 
             
                    this.fs = fs9.createFileSystemAdapter(this._options.fs);
         | 
| 50518 | 
            -
                    this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,  | 
| 50379 | 
            +
                    this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path5.sep);
         | 
| 50519 50380 | 
             
                    this.stats = this._getValue(this._options.stats, false);
         | 
| 50520 50381 | 
             
                    this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
         | 
| 50521 50382 | 
             
                    this.fsStatSettings = new fsStat.Settings({
         | 
| @@ -50542,17 +50403,17 @@ var require_out2 = __commonJS({ | |
| 50542 50403 | 
             
                var sync2 = require_sync2();
         | 
| 50543 50404 | 
             
                var settings_1 = require_settings2();
         | 
| 50544 50405 | 
             
                exports.Settings = settings_1.default;
         | 
| 50545 | 
            -
                function scandir( | 
| 50406 | 
            +
                function scandir(path5, optionsOrSettingsOrCallback, callback) {
         | 
| 50546 50407 | 
             
                  if (typeof optionsOrSettingsOrCallback === "function") {
         | 
| 50547 | 
            -
                    async.read( | 
| 50408 | 
            +
                    async.read(path5, getSettings(), optionsOrSettingsOrCallback);
         | 
| 50548 50409 | 
             
                    return;
         | 
| 50549 50410 | 
             
                  }
         | 
| 50550 | 
            -
                  async.read( | 
| 50411 | 
            +
                  async.read(path5, getSettings(optionsOrSettingsOrCallback), callback);
         | 
| 50551 50412 | 
             
                }
         | 
| 50552 50413 | 
             
                exports.scandir = scandir;
         | 
| 50553 | 
            -
                function scandirSync( | 
| 50414 | 
            +
                function scandirSync(path5, optionsOrSettings) {
         | 
| 50554 50415 | 
             
                  const settings = getSettings(optionsOrSettings);
         | 
| 50555 | 
            -
                  return sync2.read( | 
| 50416 | 
            +
                  return sync2.read(path5, settings);
         | 
| 50556 50417 | 
             
                }
         | 
| 50557 50418 | 
             
                exports.scandirSync = scandirSync;
         | 
| 50558 50419 | 
             
                function getSettings(settingsOrOptions = {}) {
         | 
| @@ -50790,7 +50651,7 @@ var require_queue = __commonJS({ | |
| 50790 50651 | 
             
                  queue.drained = drained;
         | 
| 50791 50652 | 
             
                  return queue;
         | 
| 50792 50653 | 
             
                  function push(value) {
         | 
| 50793 | 
            -
                    var  | 
| 50654 | 
            +
                    var p2 = new Promise(function(resolve2, reject) {
         | 
| 50794 50655 | 
             
                      pushCb(value, function(err2, result) {
         | 
| 50795 50656 | 
             
                        if (err2) {
         | 
| 50796 50657 | 
             
                          reject(err2);
         | 
| @@ -50799,11 +50660,11 @@ var require_queue = __commonJS({ | |
| 50799 50660 | 
             
                        resolve2(result);
         | 
| 50800 50661 | 
             
                      });
         | 
| 50801 50662 | 
             
                    });
         | 
| 50802 | 
            -
                     | 
| 50803 | 
            -
                    return  | 
| 50663 | 
            +
                    p2.catch(noop2);
         | 
| 50664 | 
            +
                    return p2;
         | 
| 50804 50665 | 
             
                  }
         | 
| 50805 50666 | 
             
                  function unshift(value) {
         | 
| 50806 | 
            -
                    var  | 
| 50667 | 
            +
                    var p2 = new Promise(function(resolve2, reject) {
         | 
| 50807 50668 | 
             
                      unshiftCb(value, function(err2, result) {
         | 
| 50808 50669 | 
             
                        if (err2) {
         | 
| 50809 50670 | 
             
                          reject(err2);
         | 
| @@ -50812,8 +50673,8 @@ var require_queue = __commonJS({ | |
| 50812 50673 | 
             
                        resolve2(result);
         | 
| 50813 50674 | 
             
                      });
         | 
| 50814 50675 | 
             
                    });
         | 
| 50815 | 
            -
                     | 
| 50816 | 
            -
                    return  | 
| 50676 | 
            +
                    p2.catch(noop2);
         | 
| 50677 | 
            +
                    return p2;
         | 
| 50817 50678 | 
             
                  }
         | 
| 50818 50679 | 
             
                  function drained() {
         | 
| 50819 50680 | 
             
                    if (queue.idle()) {
         | 
| @@ -50822,13 +50683,13 @@ var require_queue = __commonJS({ | |
| 50822 50683 | 
             
                      });
         | 
| 50823 50684 | 
             
                    }
         | 
| 50824 50685 | 
             
                    var previousDrain = queue.drain;
         | 
| 50825 | 
            -
                    var  | 
| 50686 | 
            +
                    var p2 = new Promise(function(resolve2) {
         | 
| 50826 50687 | 
             
                      queue.drain = function() {
         | 
| 50827 50688 | 
             
                        previousDrain();
         | 
| 50828 50689 | 
             
                        resolve2();
         | 
| 50829 50690 | 
             
                      };
         | 
| 50830 50691 | 
             
                    });
         | 
| 50831 | 
            -
                    return  | 
| 50692 | 
            +
                    return p2;
         | 
| 50832 50693 | 
             
                  }
         | 
| 50833 50694 | 
             
                }
         | 
| 50834 50695 | 
             
                module2.exports = fastqueue;
         | 
| @@ -51156,7 +51017,7 @@ var require_settings3 = __commonJS({ | |
| 51156 51017 | 
             
              "node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
         | 
| 51157 51018 | 
             
                "use strict";
         | 
| 51158 51019 | 
             
                Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 51159 | 
            -
                var  | 
| 51020 | 
            +
                var path5 = require("path");
         | 
| 51160 51021 | 
             
                var fsScandir = require_out2();
         | 
| 51161 51022 | 
             
                var Settings = class {
         | 
| 51162 51023 | 
             
                  constructor(_options = {}) {
         | 
| @@ -51166,7 +51027,7 @@ var require_settings3 = __commonJS({ | |
| 51166 51027 | 
             
                    this.deepFilter = this._getValue(this._options.deepFilter, null);
         | 
| 51167 51028 | 
             
                    this.entryFilter = this._getValue(this._options.entryFilter, null);
         | 
| 51168 51029 | 
             
                    this.errorFilter = this._getValue(this._options.errorFilter, null);
         | 
| 51169 | 
            -
                    this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,  | 
| 51030 | 
            +
                    this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path5.sep);
         | 
| 51170 51031 | 
             
                    this.fsScandirSettings = new fsScandir.Settings({
         | 
| 51171 51032 | 
             
                      followSymbolicLinks: this._options.followSymbolicLinks,
         | 
| 51172 51033 | 
             
                      fs: this._options.fs,
         | 
| @@ -51228,7 +51089,7 @@ var require_reader2 = __commonJS({ | |
| 51228 51089 | 
             
              "node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/reader.js"(exports) {
         | 
| 51229 51090 | 
             
                "use strict";
         | 
| 51230 51091 | 
             
                Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 51231 | 
            -
                var  | 
| 51092 | 
            +
                var path5 = require("path");
         | 
| 51232 51093 | 
             
                var fsStat = require_out();
         | 
| 51233 51094 | 
             
                var utils = require_utils6();
         | 
| 51234 51095 | 
             
                var Reader = class {
         | 
| @@ -51241,7 +51102,7 @@ var require_reader2 = __commonJS({ | |
| 51241 51102 | 
             
                    });
         | 
| 51242 51103 | 
             
                  }
         | 
| 51243 51104 | 
             
                  _getFullEntryPath(filepath) {
         | 
| 51244 | 
            -
                    return  | 
| 51105 | 
            +
                    return path5.resolve(this._settings.cwd, filepath);
         | 
| 51245 51106 | 
             
                  }
         | 
| 51246 51107 | 
             
                  _makeEntry(stats, pattern) {
         | 
| 51247 51108 | 
             
                    const entry = {
         | 
| @@ -51635,7 +51496,7 @@ var require_provider = __commonJS({ | |
| 51635 51496 | 
             
              "node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/provider.js"(exports) {
         | 
| 51636 51497 | 
             
                "use strict";
         | 
| 51637 51498 | 
             
                Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 51638 | 
            -
                var  | 
| 51499 | 
            +
                var path5 = require("path");
         | 
| 51639 51500 | 
             
                var deep_1 = require_deep();
         | 
| 51640 51501 | 
             
                var entry_1 = require_entry();
         | 
| 51641 51502 | 
             
                var error_1 = require_error();
         | 
| @@ -51649,7 +51510,7 @@ var require_provider = __commonJS({ | |
| 51649 51510 | 
             
                    this.entryTransformer = new entry_2.default(this._settings);
         | 
| 51650 51511 | 
             
                  }
         | 
| 51651 51512 | 
             
                  _getRootDirectory(task) {
         | 
| 51652 | 
            -
                    return  | 
| 51513 | 
            +
                    return path5.resolve(this._settings.cwd, task.base);
         | 
| 51653 51514 | 
             
                  }
         | 
| 51654 51515 | 
             
                  _getReaderOptions(task) {
         | 
| 51655 51516 | 
             
                    const basePath = task.base === "." ? "" : task.base;
         | 
| @@ -51831,8 +51692,8 @@ var require_settings4 = __commonJS({ | |
| 51831 51692 | 
             
                Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 51832 51693 | 
             
                exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
         | 
| 51833 51694 | 
             
                var fs9 = require("fs");
         | 
| 51834 | 
            -
                var  | 
| 51835 | 
            -
                var CPU_COUNT = Math.max( | 
| 51695 | 
            +
                var os3 = require("os");
         | 
| 51696 | 
            +
                var CPU_COUNT = Math.max(os3.cpus().length, 1);
         | 
| 51836 51697 | 
             
                exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
         | 
| 51837 51698 | 
             
                  lstat: fs9.lstat,
         | 
| 51838 51699 | 
             
                  lstatSync: fs9.lstatSync,
         | 
| @@ -52031,15 +51892,15 @@ var require_path_type = __commonJS({ | |
| 52031 51892 | 
             
            var require_dir_glob = __commonJS({
         | 
| 52032 51893 | 
             
              "node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.js"(exports, module2) {
         | 
| 52033 51894 | 
             
                "use strict";
         | 
| 52034 | 
            -
                var  | 
| 51895 | 
            +
                var path5 = require("path");
         | 
| 52035 51896 | 
             
                var pathType = require_path_type();
         | 
| 52036 51897 | 
             
                var getExtensions = (extensions) => extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0];
         | 
| 52037 51898 | 
             
                var getPath = (filepath, cwd) => {
         | 
| 52038 51899 | 
             
                  const pth = filepath[0] === "!" ? filepath.slice(1) : filepath;
         | 
| 52039 | 
            -
                  return  | 
| 51900 | 
            +
                  return path5.isAbsolute(pth) ? pth : path5.join(cwd, pth);
         | 
| 52040 51901 | 
             
                };
         | 
| 52041 51902 | 
             
                var addExtensions = (file, extensions) => {
         | 
| 52042 | 
            -
                  if ( | 
| 51903 | 
            +
                  if (path5.extname(file)) {
         | 
| 52043 51904 | 
             
                    return `**/${file}`;
         | 
| 52044 51905 | 
             
                  }
         | 
| 52045 51906 | 
             
                  return `**/${file}.${getExtensions(extensions)}`;
         | 
| @@ -52052,15 +51913,15 @@ var require_dir_glob = __commonJS({ | |
| 52052 51913 | 
             
                    throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof options.extensions}\``);
         | 
| 52053 51914 | 
             
                  }
         | 
| 52054 51915 | 
             
                  if (options.files && options.extensions) {
         | 
| 52055 | 
            -
                    return options.files.map((x) =>  | 
| 51916 | 
            +
                    return options.files.map((x) => path5.posix.join(directory, addExtensions(x, options.extensions)));
         | 
| 52056 51917 | 
             
                  }
         | 
| 52057 51918 | 
             
                  if (options.files) {
         | 
| 52058 | 
            -
                    return options.files.map((x) =>  | 
| 51919 | 
            +
                    return options.files.map((x) => path5.posix.join(directory, `**/${x}`));
         | 
| 52059 51920 | 
             
                  }
         | 
| 52060 51921 | 
             
                  if (options.extensions) {
         | 
| 52061 | 
            -
                    return [ | 
| 51922 | 
            +
                    return [path5.posix.join(directory, `**/*.${getExtensions(options.extensions)}`)];
         | 
| 52062 51923 | 
             
                  }
         | 
| 52063 | 
            -
                  return [ | 
| 51924 | 
            +
                  return [path5.posix.join(directory, "**")];
         | 
| 52064 51925 | 
             
                };
         | 
| 52065 51926 | 
             
                module2.exports = async (input, options) => {
         | 
| 52066 51927 | 
             
                  options = {
         | 
| @@ -52306,17 +52167,17 @@ var require_ignore = __commonJS({ | |
| 52306 52167 | 
             
                var throwError = (message, Ctor) => {
         | 
| 52307 52168 | 
             
                  throw new Ctor(message);
         | 
| 52308 52169 | 
             
                };
         | 
| 52309 | 
            -
                var checkPath = ( | 
| 52310 | 
            -
                  if (!isString2( | 
| 52170 | 
            +
                var checkPath = (path5, originalPath, doThrow) => {
         | 
| 52171 | 
            +
                  if (!isString2(path5)) {
         | 
| 52311 52172 | 
             
                    return doThrow(
         | 
| 52312 52173 | 
             
                      `path must be a string, but got \`${originalPath}\``,
         | 
| 52313 52174 | 
             
                      TypeError
         | 
| 52314 52175 | 
             
                    );
         | 
| 52315 52176 | 
             
                  }
         | 
| 52316 | 
            -
                  if (! | 
| 52177 | 
            +
                  if (!path5) {
         | 
| 52317 52178 | 
             
                    return doThrow(`path must not be empty`, TypeError);
         | 
| 52318 52179 | 
             
                  }
         | 
| 52319 | 
            -
                  if (checkPath.isNotRelative( | 
| 52180 | 
            +
                  if (checkPath.isNotRelative(path5)) {
         | 
| 52320 52181 | 
             
                    const r = "`path.relative()`d";
         | 
| 52321 52182 | 
             
                    return doThrow(
         | 
| 52322 52183 | 
             
                      `path should be a ${r} string, but got "${originalPath}"`,
         | 
| @@ -52325,9 +52186,9 @@ var require_ignore = __commonJS({ | |
| 52325 52186 | 
             
                  }
         | 
| 52326 52187 | 
             
                  return true;
         | 
| 52327 52188 | 
             
                };
         | 
| 52328 | 
            -
                var isNotRelative = ( | 
| 52189 | 
            +
                var isNotRelative = (path5) => REGEX_TEST_INVALID_PATH.test(path5);
         | 
| 52329 52190 | 
             
                checkPath.isNotRelative = isNotRelative;
         | 
| 52330 | 
            -
                checkPath.convert = ( | 
| 52191 | 
            +
                checkPath.convert = (p2) => p2;
         | 
| 52331 52192 | 
             
                var Ignore = class {
         | 
| 52332 52193 | 
             
                  constructor({
         | 
| 52333 52194 | 
             
                    ignorecase = true,
         | 
| @@ -52384,7 +52245,7 @@ var require_ignore = __commonJS({ | |
| 52384 52245 | 
             
                  //   setting `checkUnignored` to `false` could reduce additional
         | 
| 52385 52246 | 
             
                  //   path matching.
         | 
| 52386 52247 | 
             
                  // @returns {TestResult} true if a file is ignored
         | 
| 52387 | 
            -
                  _testOne( | 
| 52248 | 
            +
                  _testOne(path5, checkUnignored) {
         | 
| 52388 52249 | 
             
                    let ignored = false;
         | 
| 52389 52250 | 
             
                    let unignored = false;
         | 
| 52390 52251 | 
             
                    this._rules.forEach((rule) => {
         | 
| @@ -52392,7 +52253,7 @@ var require_ignore = __commonJS({ | |
| 52392 52253 | 
             
                      if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
         | 
| 52393 52254 | 
             
                        return;
         | 
| 52394 52255 | 
             
                      }
         | 
| 52395 | 
            -
                      const matched = rule.regex.test( | 
| 52256 | 
            +
                      const matched = rule.regex.test(path5);
         | 
| 52396 52257 | 
             
                      if (matched) {
         | 
| 52397 52258 | 
             
                        ignored = !negative;
         | 
| 52398 52259 | 
             
                        unignored = negative;
         | 
| @@ -52405,24 +52266,24 @@ var require_ignore = __commonJS({ | |
| 52405 52266 | 
             
                  }
         | 
| 52406 52267 | 
             
                  // @returns {TestResult}
         | 
| 52407 52268 | 
             
                  _test(originalPath, cache, checkUnignored, slices) {
         | 
| 52408 | 
            -
                    const  | 
| 52269 | 
            +
                    const path5 = originalPath && checkPath.convert(originalPath);
         | 
| 52409 52270 | 
             
                    checkPath(
         | 
| 52410 | 
            -
                       | 
| 52271 | 
            +
                      path5,
         | 
| 52411 52272 | 
             
                      originalPath,
         | 
| 52412 52273 | 
             
                      this._allowRelativePaths ? RETURN_FALSE : throwError
         | 
| 52413 52274 | 
             
                    );
         | 
| 52414 | 
            -
                    return this._t( | 
| 52275 | 
            +
                    return this._t(path5, cache, checkUnignored, slices);
         | 
| 52415 52276 | 
             
                  }
         | 
| 52416 | 
            -
                  _t( | 
| 52417 | 
            -
                    if ( | 
| 52418 | 
            -
                      return cache[ | 
| 52277 | 
            +
                  _t(path5, cache, checkUnignored, slices) {
         | 
| 52278 | 
            +
                    if (path5 in cache) {
         | 
| 52279 | 
            +
                      return cache[path5];
         | 
| 52419 52280 | 
             
                    }
         | 
| 52420 52281 | 
             
                    if (!slices) {
         | 
| 52421 | 
            -
                      slices =  | 
| 52282 | 
            +
                      slices = path5.split(SLASH);
         | 
| 52422 52283 | 
             
                    }
         | 
| 52423 52284 | 
             
                    slices.pop();
         | 
| 52424 52285 | 
             
                    if (!slices.length) {
         | 
| 52425 | 
            -
                      return cache[ | 
| 52286 | 
            +
                      return cache[path5] = this._testOne(path5, checkUnignored);
         | 
| 52426 52287 | 
             
                    }
         | 
| 52427 52288 | 
             
                    const parent = this._t(
         | 
| 52428 52289 | 
             
                      slices.join(SLASH) + SLASH,
         | 
| @@ -52430,24 +52291,24 @@ var require_ignore = __commonJS({ | |
| 52430 52291 | 
             
                      checkUnignored,
         | 
| 52431 52292 | 
             
                      slices
         | 
| 52432 52293 | 
             
                    );
         | 
| 52433 | 
            -
                    return cache[ | 
| 52294 | 
            +
                    return cache[path5] = parent.ignored ? parent : this._testOne(path5, checkUnignored);
         | 
| 52434 52295 | 
             
                  }
         | 
| 52435 | 
            -
                  ignores( | 
| 52436 | 
            -
                    return this._test( | 
| 52296 | 
            +
                  ignores(path5) {
         | 
| 52297 | 
            +
                    return this._test(path5, this._ignoreCache, false).ignored;
         | 
| 52437 52298 | 
             
                  }
         | 
| 52438 52299 | 
             
                  createFilter() {
         | 
| 52439 | 
            -
                    return ( | 
| 52300 | 
            +
                    return (path5) => !this.ignores(path5);
         | 
| 52440 52301 | 
             
                  }
         | 
| 52441 52302 | 
             
                  filter(paths) {
         | 
| 52442 52303 | 
             
                    return makeArray(paths).filter(this.createFilter());
         | 
| 52443 52304 | 
             
                  }
         | 
| 52444 52305 | 
             
                  // @returns {TestResult}
         | 
| 52445 | 
            -
                  test( | 
| 52446 | 
            -
                    return this._test( | 
| 52306 | 
            +
                  test(path5) {
         | 
| 52307 | 
            +
                    return this._test(path5, this._testCache, true);
         | 
| 52447 52308 | 
             
                  }
         | 
| 52448 52309 | 
             
                };
         | 
| 52449 52310 | 
             
                var factory = (options) => new Ignore(options);
         | 
| 52450 | 
            -
                var isPathValid = ( | 
| 52311 | 
            +
                var isPathValid = (path5) => checkPath(path5 && checkPath.convert(path5), path5, RETURN_FALSE);
         | 
| 52451 52312 | 
             
                factory.isPathValid = isPathValid;
         | 
| 52452 52313 | 
             
                factory.default = factory;
         | 
| 52453 52314 | 
             
                module2.exports = factory;
         | 
| @@ -52458,19 +52319,19 @@ var require_ignore = __commonJS({ | |
| 52458 52319 | 
             
                  const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
         | 
| 52459 52320 | 
             
                  checkPath.convert = makePosix;
         | 
| 52460 52321 | 
             
                  const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
         | 
| 52461 | 
            -
                  checkPath.isNotRelative = ( | 
| 52322 | 
            +
                  checkPath.isNotRelative = (path5) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path5) || isNotRelative(path5);
         | 
| 52462 52323 | 
             
                }
         | 
| 52463 52324 | 
             
              }
         | 
| 52464 52325 | 
             
            });
         | 
| 52465 52326 |  | 
| 52466 52327 | 
             
            // node_modules/.pnpm/slash@4.0.0/node_modules/slash/index.js
         | 
| 52467 | 
            -
            function slash( | 
| 52468 | 
            -
              const isExtendedLengthPath = /^\\\\\?\\/.test( | 
| 52469 | 
            -
              const hasNonAscii = /[^\u0000-\u0080]+/.test( | 
| 52328 | 
            +
            function slash(path5) {
         | 
| 52329 | 
            +
              const isExtendedLengthPath = /^\\\\\?\\/.test(path5);
         | 
| 52330 | 
            +
              const hasNonAscii = /[^\u0000-\u0080]+/.test(path5);
         | 
| 52470 52331 | 
             
              if (isExtendedLengthPath || hasNonAscii) {
         | 
| 52471 | 
            -
                return  | 
| 52332 | 
            +
                return path5;
         | 
| 52472 52333 | 
             
              }
         | 
| 52473 | 
            -
              return  | 
| 52334 | 
            +
              return path5.replace(/\\/g, "/");
         | 
| 52474 52335 | 
             
            }
         | 
| 52475 52336 | 
             
            var init_slash = __esm({
         | 
| 52476 52337 | 
             
              "node_modules/.pnpm/slash@4.0.0/node_modules/slash/index.js"() {
         | 
| @@ -52656,9 +52517,9 @@ var init_globby = __esm({ | |
| 52656 52517 | 
             
                createFilterFunction = (isIgnored) => {
         | 
| 52657 52518 | 
             
                  const seen = /* @__PURE__ */ new Set();
         | 
| 52658 52519 | 
             
                  return (fastGlobResult) => {
         | 
| 52659 | 
            -
                    const  | 
| 52660 | 
            -
                    const pathKey = import_node_path2.default.normalize( | 
| 52661 | 
            -
                    const seenOrIgnored = seen.has(pathKey) || isIgnored && isIgnored( | 
| 52520 | 
            +
                    const path5 = fastGlobResult.path || fastGlobResult;
         | 
| 52521 | 
            +
                    const pathKey = import_node_path2.default.normalize(path5);
         | 
| 52522 | 
            +
                    const seenOrIgnored = seen.has(pathKey) || isIgnored && isIgnored(path5);
         | 
| 52662 52523 | 
             
                    seen.add(pathKey);
         | 
| 52663 52524 | 
             
                    return !seenOrIgnored;
         | 
| 52664 52525 | 
             
                  };
         | 
| @@ -53064,17 +52925,17 @@ var require_visit = __commonJS({ | |
| 53064 52925 | 
             
                visit.BREAK = BREAK;
         | 
| 53065 52926 | 
             
                visit.SKIP = SKIP;
         | 
| 53066 52927 | 
             
                visit.REMOVE = REMOVE;
         | 
| 53067 | 
            -
                function visit_(key, node, visitor,  | 
| 53068 | 
            -
                  const ctrl = callVisitor(key, node, visitor,  | 
| 52928 | 
            +
                function visit_(key, node, visitor, path5) {
         | 
| 52929 | 
            +
                  const ctrl = callVisitor(key, node, visitor, path5);
         | 
| 53069 52930 | 
             
                  if (identity.isNode(ctrl) || identity.isPair(ctrl)) {
         | 
| 53070 | 
            -
                    replaceNode(key,  | 
| 53071 | 
            -
                    return visit_(key, ctrl, visitor,  | 
| 52931 | 
            +
                    replaceNode(key, path5, ctrl);
         | 
| 52932 | 
            +
                    return visit_(key, ctrl, visitor, path5);
         | 
| 53072 52933 | 
             
                  }
         | 
| 53073 52934 | 
             
                  if (typeof ctrl !== "symbol") {
         | 
| 53074 52935 | 
             
                    if (identity.isCollection(node)) {
         | 
| 53075 | 
            -
                       | 
| 52936 | 
            +
                      path5 = Object.freeze(path5.concat(node));
         | 
| 53076 52937 | 
             
                      for (let i = 0; i < node.items.length; ++i) {
         | 
| 53077 | 
            -
                        const ci = visit_(i, node.items[i], visitor,  | 
| 52938 | 
            +
                        const ci = visit_(i, node.items[i], visitor, path5);
         | 
| 53078 52939 | 
             
                        if (typeof ci === "number")
         | 
| 53079 52940 | 
             
                          i = ci - 1;
         | 
| 53080 52941 | 
             
                        else if (ci === BREAK)
         | 
| @@ -53085,13 +52946,13 @@ var require_visit = __commonJS({ | |
| 53085 52946 | 
             
                        }
         | 
| 53086 52947 | 
             
                      }
         | 
| 53087 52948 | 
             
                    } else if (identity.isPair(node)) {
         | 
| 53088 | 
            -
                       | 
| 53089 | 
            -
                      const ck = visit_("key", node.key, visitor,  | 
| 52949 | 
            +
                      path5 = Object.freeze(path5.concat(node));
         | 
| 52950 | 
            +
                      const ck = visit_("key", node.key, visitor, path5);
         | 
| 53090 52951 | 
             
                      if (ck === BREAK)
         | 
| 53091 52952 | 
             
                        return BREAK;
         | 
| 53092 52953 | 
             
                      else if (ck === REMOVE)
         | 
| 53093 52954 | 
             
                        node.key = null;
         | 
| 53094 | 
            -
                      const cv = visit_("value", node.value, visitor,  | 
| 52955 | 
            +
                      const cv = visit_("value", node.value, visitor, path5);
         | 
| 53095 52956 | 
             
                      if (cv === BREAK)
         | 
| 53096 52957 | 
             
                        return BREAK;
         | 
| 53097 52958 | 
             
                      else if (cv === REMOVE)
         | 
| @@ -53112,17 +52973,17 @@ var require_visit = __commonJS({ | |
| 53112 52973 | 
             
                visitAsync.BREAK = BREAK;
         | 
| 53113 52974 | 
             
                visitAsync.SKIP = SKIP;
         | 
| 53114 52975 | 
             
                visitAsync.REMOVE = REMOVE;
         | 
| 53115 | 
            -
                async function visitAsync_(key, node, visitor,  | 
| 53116 | 
            -
                  const ctrl = await callVisitor(key, node, visitor,  | 
| 52976 | 
            +
                async function visitAsync_(key, node, visitor, path5) {
         | 
| 52977 | 
            +
                  const ctrl = await callVisitor(key, node, visitor, path5);
         | 
| 53117 52978 | 
             
                  if (identity.isNode(ctrl) || identity.isPair(ctrl)) {
         | 
| 53118 | 
            -
                    replaceNode(key,  | 
| 53119 | 
            -
                    return visitAsync_(key, ctrl, visitor,  | 
| 52979 | 
            +
                    replaceNode(key, path5, ctrl);
         | 
| 52980 | 
            +
                    return visitAsync_(key, ctrl, visitor, path5);
         | 
| 53120 52981 | 
             
                  }
         | 
| 53121 52982 | 
             
                  if (typeof ctrl !== "symbol") {
         | 
| 53122 52983 | 
             
                    if (identity.isCollection(node)) {
         | 
| 53123 | 
            -
                       | 
| 52984 | 
            +
                      path5 = Object.freeze(path5.concat(node));
         | 
| 53124 52985 | 
             
                      for (let i = 0; i < node.items.length; ++i) {
         | 
| 53125 | 
            -
                        const ci = await visitAsync_(i, node.items[i], visitor,  | 
| 52986 | 
            +
                        const ci = await visitAsync_(i, node.items[i], visitor, path5);
         | 
| 53126 52987 | 
             
                        if (typeof ci === "number")
         | 
| 53127 52988 | 
             
                          i = ci - 1;
         | 
| 53128 52989 | 
             
                        else if (ci === BREAK)
         | 
| @@ -53133,13 +52994,13 @@ var require_visit = __commonJS({ | |
| 53133 52994 | 
             
                        }
         | 
| 53134 52995 | 
             
                      }
         | 
| 53135 52996 | 
             
                    } else if (identity.isPair(node)) {
         | 
| 53136 | 
            -
                       | 
| 53137 | 
            -
                      const ck = await visitAsync_("key", node.key, visitor,  | 
| 52997 | 
            +
                      path5 = Object.freeze(path5.concat(node));
         | 
| 52998 | 
            +
                      const ck = await visitAsync_("key", node.key, visitor, path5);
         | 
| 53138 52999 | 
             
                      if (ck === BREAK)
         | 
| 53139 53000 | 
             
                        return BREAK;
         | 
| 53140 53001 | 
             
                      else if (ck === REMOVE)
         | 
| 53141 53002 | 
             
                        node.key = null;
         | 
| 53142 | 
            -
                      const cv = await visitAsync_("value", node.value, visitor,  | 
| 53003 | 
            +
                      const cv = await visitAsync_("value", node.value, visitor, path5);
         | 
| 53143 53004 | 
             
                      if (cv === BREAK)
         | 
| 53144 53005 | 
             
                        return BREAK;
         | 
| 53145 53006 | 
             
                      else if (cv === REMOVE)
         | 
| @@ -53166,24 +53027,24 @@ var require_visit = __commonJS({ | |
| 53166 53027 | 
             
                  }
         | 
| 53167 53028 | 
             
                  return visitor;
         | 
| 53168 53029 | 
             
                }
         | 
| 53169 | 
            -
                function callVisitor(key, node, visitor,  | 
| 53030 | 
            +
                function callVisitor(key, node, visitor, path5) {
         | 
| 53170 53031 | 
             
                  var _a3, _b, _c, _d, _e;
         | 
| 53171 53032 | 
             
                  if (typeof visitor === "function")
         | 
| 53172 | 
            -
                    return visitor(key, node,  | 
| 53033 | 
            +
                    return visitor(key, node, path5);
         | 
| 53173 53034 | 
             
                  if (identity.isMap(node))
         | 
| 53174 | 
            -
                    return (_a3 = visitor.Map) == null ? void 0 : _a3.call(visitor, key, node,  | 
| 53035 | 
            +
                    return (_a3 = visitor.Map) == null ? void 0 : _a3.call(visitor, key, node, path5);
         | 
| 53175 53036 | 
             
                  if (identity.isSeq(node))
         | 
| 53176 | 
            -
                    return (_b = visitor.Seq) == null ? void 0 : _b.call(visitor, key, node,  | 
| 53037 | 
            +
                    return (_b = visitor.Seq) == null ? void 0 : _b.call(visitor, key, node, path5);
         | 
| 53177 53038 | 
             
                  if (identity.isPair(node))
         | 
| 53178 | 
            -
                    return (_c = visitor.Pair) == null ? void 0 : _c.call(visitor, key, node,  | 
| 53039 | 
            +
                    return (_c = visitor.Pair) == null ? void 0 : _c.call(visitor, key, node, path5);
         | 
| 53179 53040 | 
             
                  if (identity.isScalar(node))
         | 
| 53180 | 
            -
                    return (_d = visitor.Scalar) == null ? void 0 : _d.call(visitor, key, node,  | 
| 53041 | 
            +
                    return (_d = visitor.Scalar) == null ? void 0 : _d.call(visitor, key, node, path5);
         | 
| 53181 53042 | 
             
                  if (identity.isAlias(node))
         | 
| 53182 | 
            -
                    return (_e = visitor.Alias) == null ? void 0 : _e.call(visitor, key, node,  | 
| 53043 | 
            +
                    return (_e = visitor.Alias) == null ? void 0 : _e.call(visitor, key, node, path5);
         | 
| 53183 53044 | 
             
                  return void 0;
         | 
| 53184 53045 | 
             
                }
         | 
| 53185 | 
            -
                function replaceNode(key,  | 
| 53186 | 
            -
                  const parent =  | 
| 53046 | 
            +
                function replaceNode(key, path5, node) {
         | 
| 53047 | 
            +
                  const parent = path5[path5.length - 1];
         | 
| 53187 53048 | 
             
                  if (identity.isCollection(parent)) {
         | 
| 53188 53049 | 
             
                    parent.items[key] = node;
         | 
| 53189 53050 | 
             
                  } else if (identity.isPair(parent)) {
         | 
| @@ -53779,10 +53640,10 @@ var require_Collection = __commonJS({ | |
| 53779 53640 | 
             
                var createNode = require_createNode();
         | 
| 53780 53641 | 
             
                var identity = require_identity();
         | 
| 53781 53642 | 
             
                var Node = require_Node();
         | 
| 53782 | 
            -
                function collectionFromPath(schema4,  | 
| 53643 | 
            +
                function collectionFromPath(schema4, path5, value) {
         | 
| 53783 53644 | 
             
                  let v = value;
         | 
| 53784 | 
            -
                  for (let i =  | 
| 53785 | 
            -
                    const k =  | 
| 53645 | 
            +
                  for (let i = path5.length - 1; i >= 0; --i) {
         | 
| 53646 | 
            +
                    const k = path5[i];
         | 
| 53786 53647 | 
             
                    if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
         | 
| 53787 53648 | 
             
                      const a = [];
         | 
| 53788 53649 | 
             
                      a[k] = v;
         | 
| @@ -53801,7 +53662,7 @@ var require_Collection = __commonJS({ | |
| 53801 53662 | 
             
                    sourceObjects: /* @__PURE__ */ new Map()
         | 
| 53802 53663 | 
             
                  });
         | 
| 53803 53664 | 
             
                }
         | 
| 53804 | 
            -
                var isEmptyPath = ( | 
| 53665 | 
            +
                var isEmptyPath = (path5) => path5 == null || typeof path5 === "object" && !!path5[Symbol.iterator]().next().done;
         | 
| 53805 53666 | 
             
                var Collection = class extends Node.NodeBase {
         | 
| 53806 53667 | 
             
                  constructor(type, schema4) {
         | 
| 53807 53668 | 
             
                    super(type);
         | 
| @@ -53831,11 +53692,11 @@ var require_Collection = __commonJS({ | |
| 53831 53692 | 
             
                   * be a Pair instance or a `{ key, value }` object, which may not have a key
         | 
| 53832 53693 | 
             
                   * that already exists in the map.
         | 
| 53833 53694 | 
             
                   */
         | 
| 53834 | 
            -
                  addIn( | 
| 53835 | 
            -
                    if (isEmptyPath( | 
| 53695 | 
            +
                  addIn(path5, value) {
         | 
| 53696 | 
            +
                    if (isEmptyPath(path5))
         | 
| 53836 53697 | 
             
                      this.add(value);
         | 
| 53837 53698 | 
             
                    else {
         | 
| 53838 | 
            -
                      const [key, ...rest] =  | 
| 53699 | 
            +
                      const [key, ...rest] = path5;
         | 
| 53839 53700 | 
             
                      const node = this.get(key, true);
         | 
| 53840 53701 | 
             
                      if (identity.isCollection(node))
         | 
| 53841 53702 | 
             
                        node.addIn(rest, value);
         | 
| @@ -53849,8 +53710,8 @@ var require_Collection = __commonJS({ | |
| 53849 53710 | 
             
                   * Removes a value from the collection.
         | 
| 53850 53711 | 
             
                   * @returns `true` if the item was found and removed.
         | 
| 53851 53712 | 
             
                   */
         | 
| 53852 | 
            -
                  deleteIn( | 
| 53853 | 
            -
                    const [key, ...rest] =  | 
| 53713 | 
            +
                  deleteIn(path5) {
         | 
| 53714 | 
            +
                    const [key, ...rest] = path5;
         | 
| 53854 53715 | 
             
                    if (rest.length === 0)
         | 
| 53855 53716 | 
             
                      return this.delete(key);
         | 
| 53856 53717 | 
             
                    const node = this.get(key, true);
         | 
| @@ -53864,8 +53725,8 @@ var require_Collection = __commonJS({ | |
| 53864 53725 | 
             
                   * scalar values from their surrounding node; to disable set `keepScalar` to
         | 
| 53865 53726 | 
             
                   * `true` (collections are always returned intact).
         | 
| 53866 53727 | 
             
                   */
         | 
| 53867 | 
            -
                  getIn( | 
| 53868 | 
            -
                    const [key, ...rest] =  | 
| 53728 | 
            +
                  getIn(path5, keepScalar) {
         | 
| 53729 | 
            +
                    const [key, ...rest] = path5;
         | 
| 53869 53730 | 
             
                    const node = this.get(key, true);
         | 
| 53870 53731 | 
             
                    if (rest.length === 0)
         | 
| 53871 53732 | 
             
                      return !keepScalar && identity.isScalar(node) ? node.value : node;
         | 
| @@ -53883,8 +53744,8 @@ var require_Collection = __commonJS({ | |
| 53883 53744 | 
             
                  /**
         | 
| 53884 53745 | 
             
                   * Checks if the collection includes a value with the key `key`.
         | 
| 53885 53746 | 
             
                   */
         | 
| 53886 | 
            -
                  hasIn( | 
| 53887 | 
            -
                    const [key, ...rest] =  | 
| 53747 | 
            +
                  hasIn(path5) {
         | 
| 53748 | 
            +
                    const [key, ...rest] = path5;
         | 
| 53888 53749 | 
             
                    if (rest.length === 0)
         | 
| 53889 53750 | 
             
                      return this.has(key);
         | 
| 53890 53751 | 
             
                    const node = this.get(key, true);
         | 
| @@ -53894,8 +53755,8 @@ var require_Collection = __commonJS({ | |
| 53894 53755 | 
             
                   * Sets a value in this collection. For `!!set`, `value` needs to be a
         | 
| 53895 53756 | 
             
                   * boolean to add/remove the item from the set.
         | 
| 53896 53757 | 
             
                   */
         | 
| 53897 | 
            -
                  setIn( | 
| 53898 | 
            -
                    const [key, ...rest] =  | 
| 53758 | 
            +
                  setIn(path5, value) {
         | 
| 53759 | 
            +
                    const [key, ...rest] = path5;
         | 
| 53899 53760 | 
             
                    if (rest.length === 0) {
         | 
| 53900 53761 | 
             
                      this.set(key, value);
         | 
| 53901 53762 | 
             
                    } else {
         | 
| @@ -55957,7 +55818,7 @@ var require_timestamp = __commonJS({ | |
| 55957 55818 | 
             
                  const sign = str[0];
         | 
| 55958 55819 | 
             
                  const parts = sign === "-" || sign === "+" ? str.substring(1) : str;
         | 
| 55959 55820 | 
             
                  const num = (n) => asBigInt ? BigInt(n) : Number(n);
         | 
| 55960 | 
            -
                  const res = parts.replace(/_/g, "").split(":").reduce((res2,  | 
| 55821 | 
            +
                  const res = parts.replace(/_/g, "").split(":").reduce((res2, p2) => res2 * num(60) + num(p2), num(0));
         | 
| 55961 55822 | 
             
                  return sign === "-" ? num(-1) * res : res;
         | 
| 55962 55823 | 
             
                }
         | 
| 55963 55824 | 
             
                function stringifySexagesimal(node) {
         | 
| @@ -56352,9 +56213,9 @@ var require_Document = __commonJS({ | |
| 56352 56213 | 
             
                      this.contents.add(value);
         | 
| 56353 56214 | 
             
                  }
         | 
| 56354 56215 | 
             
                  /** Adds a value to the document. */
         | 
| 56355 | 
            -
                  addIn( | 
| 56216 | 
            +
                  addIn(path5, value) {
         | 
| 56356 56217 | 
             
                    if (assertCollection(this.contents))
         | 
| 56357 | 
            -
                      this.contents.addIn( | 
| 56218 | 
            +
                      this.contents.addIn(path5, value);
         | 
| 56358 56219 | 
             
                  }
         | 
| 56359 56220 | 
             
                  /**
         | 
| 56360 56221 | 
             
                   * Create a new `Alias` node, ensuring that the target `node` has the required anchor.
         | 
| @@ -56429,14 +56290,14 @@ var require_Document = __commonJS({ | |
| 56429 56290 | 
             
                   * Removes a value from the document.
         | 
| 56430 56291 | 
             
                   * @returns `true` if the item was found and removed.
         | 
| 56431 56292 | 
             
                   */
         | 
| 56432 | 
            -
                  deleteIn( | 
| 56433 | 
            -
                    if (Collection.isEmptyPath( | 
| 56293 | 
            +
                  deleteIn(path5) {
         | 
| 56294 | 
            +
                    if (Collection.isEmptyPath(path5)) {
         | 
| 56434 56295 | 
             
                      if (this.contents == null)
         | 
| 56435 56296 | 
             
                        return false;
         | 
| 56436 56297 | 
             
                      this.contents = null;
         | 
| 56437 56298 | 
             
                      return true;
         | 
| 56438 56299 | 
             
                    }
         | 
| 56439 | 
            -
                    return assertCollection(this.contents) ? this.contents.deleteIn( | 
| 56300 | 
            +
                    return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
         | 
| 56440 56301 | 
             
                  }
         | 
| 56441 56302 | 
             
                  /**
         | 
| 56442 56303 | 
             
                   * Returns item at `key`, or `undefined` if not found. By default unwraps
         | 
| @@ -56451,10 +56312,10 @@ var require_Document = __commonJS({ | |
| 56451 56312 | 
             
                   * scalar values from their surrounding node; to disable set `keepScalar` to
         | 
| 56452 56313 | 
             
                   * `true` (collections are always returned intact).
         | 
| 56453 56314 | 
             
                   */
         | 
| 56454 | 
            -
                  getIn( | 
| 56455 | 
            -
                    if (Collection.isEmptyPath( | 
| 56315 | 
            +
                  getIn(path5, keepScalar) {
         | 
| 56316 | 
            +
                    if (Collection.isEmptyPath(path5))
         | 
| 56456 56317 | 
             
                      return !keepScalar && identity.isScalar(this.contents) ? this.contents.value : this.contents;
         | 
| 56457 | 
            -
                    return identity.isCollection(this.contents) ? this.contents.getIn( | 
| 56318 | 
            +
                    return identity.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : void 0;
         | 
| 56458 56319 | 
             
                  }
         | 
| 56459 56320 | 
             
                  /**
         | 
| 56460 56321 | 
             
                   * Checks if the document includes a value with the key `key`.
         | 
| @@ -56465,10 +56326,10 @@ var require_Document = __commonJS({ | |
| 56465 56326 | 
             
                  /**
         | 
| 56466 56327 | 
             
                   * Checks if the document includes a value at `path`.
         | 
| 56467 56328 | 
             
                   */
         | 
| 56468 | 
            -
                  hasIn( | 
| 56469 | 
            -
                    if (Collection.isEmptyPath( | 
| 56329 | 
            +
                  hasIn(path5) {
         | 
| 56330 | 
            +
                    if (Collection.isEmptyPath(path5))
         | 
| 56470 56331 | 
             
                      return this.contents !== void 0;
         | 
| 56471 | 
            -
                    return identity.isCollection(this.contents) ? this.contents.hasIn( | 
| 56332 | 
            +
                    return identity.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
         | 
| 56472 56333 | 
             
                  }
         | 
| 56473 56334 | 
             
                  /**
         | 
| 56474 56335 | 
             
                   * Sets a value in this document. For `!!set`, `value` needs to be a
         | 
| @@ -56485,13 +56346,13 @@ var require_Document = __commonJS({ | |
| 56485 56346 | 
             
                   * Sets a value in this document. For `!!set`, `value` needs to be a
         | 
| 56486 56347 | 
             
                   * boolean to add/remove the item from the set.
         | 
| 56487 56348 | 
             
                   */
         | 
| 56488 | 
            -
                  setIn( | 
| 56489 | 
            -
                    if (Collection.isEmptyPath( | 
| 56349 | 
            +
                  setIn(path5, value) {
         | 
| 56350 | 
            +
                    if (Collection.isEmptyPath(path5)) {
         | 
| 56490 56351 | 
             
                      this.contents = value;
         | 
| 56491 56352 | 
             
                    } else if (this.contents == null) {
         | 
| 56492 | 
            -
                      this.contents = Collection.collectionFromPath(this.schema, Array.from( | 
| 56353 | 
            +
                      this.contents = Collection.collectionFromPath(this.schema, Array.from(path5), value);
         | 
| 56493 56354 | 
             
                    } else if (assertCollection(this.contents)) {
         | 
| 56494 | 
            -
                      this.contents.setIn( | 
| 56355 | 
            +
                      this.contents.setIn(path5, value);
         | 
| 56495 56356 | 
             
                    }
         | 
| 56496 56357 | 
             
                  }
         | 
| 56497 56358 | 
             
                  /**
         | 
| @@ -58383,9 +58244,9 @@ var require_cst_visit = __commonJS({ | |
| 58383 58244 | 
             
                visit.BREAK = BREAK;
         | 
| 58384 58245 | 
             
                visit.SKIP = SKIP;
         | 
| 58385 58246 | 
             
                visit.REMOVE = REMOVE;
         | 
| 58386 | 
            -
                visit.itemAtPath = (cst,  | 
| 58247 | 
            +
                visit.itemAtPath = (cst, path5) => {
         | 
| 58387 58248 | 
             
                  let item = cst;
         | 
| 58388 | 
            -
                  for (const [field, index4] of  | 
| 58249 | 
            +
                  for (const [field, index4] of path5) {
         | 
| 58389 58250 | 
             
                    const tok = item == null ? void 0 : item[field];
         | 
| 58390 58251 | 
             
                    if (tok && "items" in tok) {
         | 
| 58391 58252 | 
             
                      item = tok.items[index4];
         | 
| @@ -58394,23 +58255,23 @@ var require_cst_visit = __commonJS({ | |
| 58394 58255 | 
             
                  }
         | 
| 58395 58256 | 
             
                  return item;
         | 
| 58396 58257 | 
             
                };
         | 
| 58397 | 
            -
                visit.parentCollection = (cst,  | 
| 58398 | 
            -
                  const parent = visit.itemAtPath(cst,  | 
| 58399 | 
            -
                  const field =  | 
| 58258 | 
            +
                visit.parentCollection = (cst, path5) => {
         | 
| 58259 | 
            +
                  const parent = visit.itemAtPath(cst, path5.slice(0, -1));
         | 
| 58260 | 
            +
                  const field = path5[path5.length - 1][0];
         | 
| 58400 58261 | 
             
                  const coll = parent == null ? void 0 : parent[field];
         | 
| 58401 58262 | 
             
                  if (coll && "items" in coll)
         | 
| 58402 58263 | 
             
                    return coll;
         | 
| 58403 58264 | 
             
                  throw new Error("Parent collection not found");
         | 
| 58404 58265 | 
             
                };
         | 
| 58405 | 
            -
                function _visit( | 
| 58406 | 
            -
                  let ctrl = visitor(item,  | 
| 58266 | 
            +
                function _visit(path5, item, visitor) {
         | 
| 58267 | 
            +
                  let ctrl = visitor(item, path5);
         | 
| 58407 58268 | 
             
                  if (typeof ctrl === "symbol")
         | 
| 58408 58269 | 
             
                    return ctrl;
         | 
| 58409 58270 | 
             
                  for (const field of ["key", "value"]) {
         | 
| 58410 58271 | 
             
                    const token = item[field];
         | 
| 58411 58272 | 
             
                    if (token && "items" in token) {
         | 
| 58412 58273 | 
             
                      for (let i = 0; i < token.items.length; ++i) {
         | 
| 58413 | 
            -
                        const ci = _visit(Object.freeze( | 
| 58274 | 
            +
                        const ci = _visit(Object.freeze(path5.concat([[field, i]])), token.items[i], visitor);
         | 
| 58414 58275 | 
             
                        if (typeof ci === "number")
         | 
| 58415 58276 | 
             
                          i = ci - 1;
         | 
| 58416 58277 | 
             
                        else if (ci === BREAK)
         | 
| @@ -58421,10 +58282,10 @@ var require_cst_visit = __commonJS({ | |
| 58421 58282 | 
             
                        }
         | 
| 58422 58283 | 
             
                      }
         | 
| 58423 58284 | 
             
                      if (typeof ctrl === "function" && field === "key")
         | 
| 58424 | 
            -
                        ctrl = ctrl(item,  | 
| 58285 | 
            +
                        ctrl = ctrl(item, path5);
         | 
| 58425 58286 | 
             
                    }
         | 
| 58426 58287 | 
             
                  }
         | 
| 58427 | 
            -
                  return typeof ctrl === "function" ? ctrl(item,  | 
| 58288 | 
            +
                  return typeof ctrl === "function" ? ctrl(item, path5) : ctrl;
         | 
| 58428 58289 | 
             
                }
         | 
| 58429 58290 | 
             
                exports.visit = visit;
         | 
| 58430 58291 | 
             
              }
         | 
| @@ -60211,19 +60072,19 @@ __export(studioUtils_exports, { | |
| 60211 60072 | 
             
              preparePgSchema: () => preparePgSchema,
         | 
| 60212 60073 | 
             
              prepareSQLiteSchema: () => prepareSQLiteSchema
         | 
| 60213 60074 | 
             
            });
         | 
| 60214 | 
            -
            var import_drizzle_orm15, import_mysql_core4,  | 
| 60075 | 
            +
            var import_drizzle_orm15, import_mysql_core4, import_pg_core5, import_sqlite_core6, preparePgSchema, prepareMySqlSchema, prepareSQLiteSchema, prepareModels, drizzleForPostgres, drizzleForMySQL, drizzleForSQLite, drizzleDb;
         | 
| 60215 60076 | 
             
            var init_studioUtils = __esm({
         | 
| 60216 60077 | 
             
              "src/serializer/studioUtils.ts"() {
         | 
| 60217 60078 | 
             
                import_drizzle_orm15 = require("drizzle-orm");
         | 
| 60218 60079 | 
             
                import_mysql_core4 = require("drizzle-orm/mysql-core");
         | 
| 60219 | 
            -
                 | 
| 60220 | 
            -
                 | 
| 60080 | 
            +
                import_pg_core5 = require("drizzle-orm/pg-core");
         | 
| 60081 | 
            +
                import_sqlite_core6 = require("drizzle-orm/sqlite-core");
         | 
| 60221 60082 | 
             
                init_utils();
         | 
| 60222 60083 | 
             
                init_utils3();
         | 
| 60223 60084 | 
             
                init_global();
         | 
| 60224 60085 | 
             
                init_serializer();
         | 
| 60225 | 
            -
                preparePgSchema = async ( | 
| 60226 | 
            -
                  const imports = prepareFilenames( | 
| 60086 | 
            +
                preparePgSchema = async (path5) => {
         | 
| 60087 | 
            +
                  const imports = prepareFilenames(path5);
         | 
| 60227 60088 | 
             
                  const pgSchema4 = {};
         | 
| 60228 60089 | 
             
                  const relations4 = {};
         | 
| 60229 60090 | 
             
                  const { unregister } = await safeRegister();
         | 
| @@ -60232,8 +60093,8 @@ var init_studioUtils = __esm({ | |
| 60232 60093 | 
             
                    const i0 = require(`${it}`);
         | 
| 60233 60094 | 
             
                    const i0values = Object.entries(i0);
         | 
| 60234 60095 | 
             
                    i0values.forEach(([k, t]) => {
         | 
| 60235 | 
            -
                      if ((0, import_drizzle_orm15.is)(t,  | 
| 60236 | 
            -
                        const schema4 = (0,  | 
| 60096 | 
            +
                      if ((0, import_drizzle_orm15.is)(t, import_pg_core5.PgTable)) {
         | 
| 60097 | 
            +
                        const schema4 = (0, import_pg_core5.getTableConfig)(t).schema || "public";
         | 
| 60237 60098 | 
             
                        pgSchema4[schema4] = pgSchema4[schema4] || {};
         | 
| 60238 60099 | 
             
                        pgSchema4[schema4][k] = t;
         | 
| 60239 60100 | 
             
                      }
         | 
| @@ -60245,8 +60106,8 @@ var init_studioUtils = __esm({ | |
| 60245 60106 | 
             
                  unregister();
         | 
| 60246 60107 | 
             
                  return { schema: pgSchema4, relations: relations4 };
         | 
| 60247 60108 | 
             
                };
         | 
| 60248 | 
            -
                prepareMySqlSchema = async ( | 
| 60249 | 
            -
                  const imports = prepareFilenames( | 
| 60109 | 
            +
                prepareMySqlSchema = async (path5) => {
         | 
| 60110 | 
            +
                  const imports = prepareFilenames(path5);
         | 
| 60250 60111 | 
             
                  const mysqlSchema4 = {
         | 
| 60251 60112 | 
             
                    public: {}
         | 
| 60252 60113 | 
             
                  };
         | 
| @@ -60269,8 +60130,8 @@ var init_studioUtils = __esm({ | |
| 60269 60130 | 
             
                  unregister();
         | 
| 60270 60131 | 
             
                  return { schema: mysqlSchema4, relations: relations4 };
         | 
| 60271 60132 | 
             
                };
         | 
| 60272 | 
            -
                prepareSQLiteSchema = async ( | 
| 60273 | 
            -
                  const imports = prepareFilenames( | 
| 60133 | 
            +
                prepareSQLiteSchema = async (path5) => {
         | 
| 60134 | 
            +
                  const imports = prepareFilenames(path5);
         | 
| 60274 60135 | 
             
                  const sqliteSchema2 = {
         | 
| 60275 60136 | 
             
                    public: {}
         | 
| 60276 60137 | 
             
                  };
         | 
| @@ -60281,7 +60142,7 @@ var init_studioUtils = __esm({ | |
| 60281 60142 | 
             
                    const i0 = require(`${it}`);
         | 
| 60282 60143 | 
             
                    const i0values = Object.entries(i0);
         | 
| 60283 60144 | 
             
                    i0values.forEach(([k, t]) => {
         | 
| 60284 | 
            -
                      if ((0, import_drizzle_orm15.is)(t,  | 
| 60145 | 
            +
                      if ((0, import_drizzle_orm15.is)(t, import_sqlite_core6.SQLiteTable)) {
         | 
| 60285 60146 | 
             
                        const schema4 = "public";
         | 
| 60286 60147 | 
             
                        sqliteSchema2[schema4][k] = t;
         | 
| 60287 60148 | 
             
                      }
         | 
| @@ -60293,8 +60154,8 @@ var init_studioUtils = __esm({ | |
| 60293 60154 | 
             
                  unregister();
         | 
| 60294 60155 | 
             
                  return { schema: sqliteSchema2, relations: relations4 };
         | 
| 60295 60156 | 
             
                };
         | 
| 60296 | 
            -
                prepareModels = async ( | 
| 60297 | 
            -
                  const imports = prepareFilenames( | 
| 60157 | 
            +
                prepareModels = async (path5) => {
         | 
| 60158 | 
            +
                  const imports = prepareFilenames(path5);
         | 
| 60298 60159 | 
             
                  const sqliteSchema2 = {};
         | 
| 60299 60160 | 
             
                  const pgSchema4 = {};
         | 
| 60300 60161 | 
             
                  const mysqlSchema4 = {};
         | 
| @@ -60304,13 +60165,13 @@ var init_studioUtils = __esm({ | |
| 60304 60165 | 
             
                    const i0 = require(`${it}`);
         | 
| 60305 60166 | 
             
                    const i0values = Object.entries(i0);
         | 
| 60306 60167 | 
             
                    i0values.forEach(([k, t]) => {
         | 
| 60307 | 
            -
                      if ((0, import_drizzle_orm15.is)(t,  | 
| 60168 | 
            +
                      if ((0, import_drizzle_orm15.is)(t, import_pg_core5.PgTable)) {
         | 
| 60308 60169 | 
             
                        pgSchema4[k] = t;
         | 
| 60309 60170 | 
             
                      }
         | 
| 60310 60171 | 
             
                      if ((0, import_drizzle_orm15.is)(t, import_mysql_core4.MySqlTable)) {
         | 
| 60311 60172 | 
             
                        mysqlSchema4[k] = t;
         | 
| 60312 60173 | 
             
                      }
         | 
| 60313 | 
            -
                      if ((0, import_drizzle_orm15.is)(t,  | 
| 60174 | 
            +
                      if ((0, import_drizzle_orm15.is)(t, import_sqlite_core6.SQLiteTable)) {
         | 
| 60314 60175 | 
             
                        sqliteSchema2[k] = t;
         | 
| 60315 60176 | 
             
                      }
         | 
| 60316 60177 | 
             
                      if ((0, import_drizzle_orm15.is)(t, import_drizzle_orm15.Relations)) {
         | 
| @@ -60343,6 +60204,9 @@ var init_studioUtils = __esm({ | |
| 60343 60204 | 
             
                    dialect: "pg",
         | 
| 60344 60205 | 
             
                    db,
         | 
| 60345 60206 | 
             
                    proxy,
         | 
| 60207 | 
            +
                    raw: (sql2) => {
         | 
| 60208 | 
            +
                      return client.query(sql2).then((it) => it.rows);
         | 
| 60209 | 
            +
                    },
         | 
| 60346 60210 | 
             
                    schema: pgSchema4,
         | 
| 60347 60211 | 
             
                    relations: relations4,
         | 
| 60348 60212 | 
             
                    ts
         | 
| @@ -60366,6 +60230,10 @@ var init_studioUtils = __esm({ | |
| 60366 60230 | 
             
                    dialect: "mysql",
         | 
| 60367 60231 | 
             
                    db,
         | 
| 60368 60232 | 
             
                    proxy,
         | 
| 60233 | 
            +
                    raw: async (sql2) => {
         | 
| 60234 | 
            +
                      const [rows] = await client.execute(sql2, []);
         | 
| 60235 | 
            +
                      return rows;
         | 
| 60236 | 
            +
                    },
         | 
| 60369 60237 | 
             
                    schema: mysqlSchema4,
         | 
| 60370 60238 | 
             
                    relations: relations4,
         | 
| 60371 60239 | 
             
                    ts
         | 
| @@ -60386,6 +60254,9 @@ var init_studioUtils = __esm({ | |
| 60386 60254 | 
             
                      dialect: "sqlite",
         | 
| 60387 60255 | 
             
                      db,
         | 
| 60388 60256 | 
             
                      proxy,
         | 
| 60257 | 
            +
                      raw: (sql2) => {
         | 
| 60258 | 
            +
                        throw new Error("Not implemented for D1");
         | 
| 60259 | 
            +
                      },
         | 
| 60389 60260 | 
             
                      schema: sqliteSchema2,
         | 
| 60390 60261 | 
             
                      relations: relations4,
         | 
| 60391 60262 | 
             
                      ts
         | 
| @@ -60405,6 +60276,9 @@ var init_studioUtils = __esm({ | |
| 60405 60276 | 
             
                      dialect: "sqlite",
         | 
| 60406 60277 | 
             
                      db,
         | 
| 60407 60278 | 
             
                      proxy,
         | 
| 60279 | 
            +
                      raw: (sql2) => {
         | 
| 60280 | 
            +
                        return Promise.resolve(client.prepare(sql2).all());
         | 
| 60281 | 
            +
                      },
         | 
| 60408 60282 | 
             
                      schema: sqliteSchema2,
         | 
| 60409 60283 | 
             
                      relations: relations4,
         | 
| 60410 60284 | 
             
                      ts
         | 
| @@ -60429,6 +60303,9 @@ var init_studioUtils = __esm({ | |
| 60429 60303 | 
             
                      dialect: "sqlite",
         | 
| 60430 60304 | 
             
                      db,
         | 
| 60431 60305 | 
             
                      proxy,
         | 
| 60306 | 
            +
                      raw: (sql2) => {
         | 
| 60307 | 
            +
                        return client.execute(sql2).then((it) => it.rows.map((row) => Object.values(row)));
         | 
| 60308 | 
            +
                      },
         | 
| 60432 60309 | 
             
                      schema: sqliteSchema2,
         | 
| 60433 60310 | 
             
                      relations: relations4,
         | 
| 60434 60311 | 
             
                      ts
         | 
| @@ -60518,8 +60395,7 @@ var init_utils5 = __esm({ | |
| 60518 60395 | 
             
                init_pgIntrospect();
         | 
| 60519 60396 | 
             
                init_pgPushUtils();
         | 
| 60520 60397 | 
             
                init_sqliteIntrospect();
         | 
| 60521 | 
            -
                 | 
| 60522 | 
            -
                init_pgSerializer();
         | 
| 60398 | 
            +
                init_schemaToDrizzle();
         | 
| 60523 60399 | 
             
                init_studioUtils();
         | 
| 60524 60400 | 
             
                init_pgConnect();
         | 
| 60525 60401 | 
             
                assertV1OutFolder = (out, dialect6) => {
         | 
| @@ -61322,8 +61198,8 @@ var require_package = __commonJS({ | |
| 61322 61198 | 
             
            var require_main = __commonJS({
         | 
| 61323 61199 | 
             
              "node_modules/.pnpm/dotenv@16.0.3/node_modules/dotenv/lib/main.js"(exports, module2) {
         | 
| 61324 61200 | 
             
                var fs9 = require("fs");
         | 
| 61325 | 
            -
                var  | 
| 61326 | 
            -
                var  | 
| 61201 | 
            +
                var path5 = require("path");
         | 
| 61202 | 
            +
                var os3 = require("os");
         | 
| 61327 61203 | 
             
                var packageJson = require_package();
         | 
| 61328 61204 | 
             
                var version = packageJson.version;
         | 
| 61329 61205 | 
             
                var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
         | 
| @@ -61350,10 +61226,10 @@ var require_main = __commonJS({ | |
| 61350 61226 | 
             
                  console.log(`[dotenv@${version}][DEBUG] ${message}`);
         | 
| 61351 61227 | 
             
                }
         | 
| 61352 61228 | 
             
                function _resolveHome(envPath) {
         | 
| 61353 | 
            -
                  return envPath[0] === "~" ?  | 
| 61229 | 
            +
                  return envPath[0] === "~" ? path5.join(os3.homedir(), envPath.slice(1)) : envPath;
         | 
| 61354 61230 | 
             
                }
         | 
| 61355 61231 | 
             
                function config(options) {
         | 
| 61356 | 
            -
                  let dotenvPath =  | 
| 61232 | 
            +
                  let dotenvPath = path5.resolve(process.cwd(), ".env");
         | 
| 61357 61233 | 
             
                  let encoding = "utf8";
         | 
| 61358 61234 | 
             
                  const debug = Boolean(options && options.debug);
         | 
| 61359 61235 | 
             
                  const override = Boolean(options && options.override);
         | 
| @@ -62160,7 +62036,7 @@ __export(cli_exports, { | |
| 62160 62036 | 
             
            });
         | 
| 62161 62037 | 
             
            module.exports = __toCommonJS(cli_exports);
         | 
| 62162 62038 | 
             
            var import_commander = require("commander");
         | 
| 62163 | 
            -
            var  | 
| 62039 | 
            +
            var import_fs13 = require("fs");
         | 
| 62164 62040 | 
             
            init_lib();
         | 
| 62165 62041 |  | 
| 62166 62042 | 
             
            // src/cli/commands/check.ts
         | 
| @@ -62202,14 +62078,14 @@ var checkHandler = (out, dialect6) => { | |
| 62202 62078 |  | 
| 62203 62079 | 
             
            // src/cli/index.ts
         | 
| 62204 62080 | 
             
            var import_hanji11 = __toESM(require_hanji());
         | 
| 62205 | 
            -
            var  | 
| 62081 | 
            +
            var import_path8 = __toESM(require("path"));
         | 
| 62206 62082 | 
             
            init_utils3();
         | 
| 62207 62083 | 
             
            init_source();
         | 
| 62208 62084 |  | 
| 62209 62085 | 
             
            // package.json
         | 
| 62210 62086 | 
             
            var package_default = {
         | 
| 62211 62087 | 
             
              name: "drizzle-kit",
         | 
| 62212 | 
            -
              version: "0.20. | 
| 62088 | 
            +
              version: "0.20.9",
         | 
| 62213 62089 | 
             
              repository: "https://github.com/drizzle-team/drizzle-kit-mirror",
         | 
| 62214 62090 | 
             
              author: "Drizzle Team",
         | 
| 62215 62091 | 
             
              license: "MIT",
         | 
| @@ -62265,11 +62141,12 @@ var package_default = { | |
| 62265 62141 | 
             
                ]
         | 
| 62266 62142 | 
             
              },
         | 
| 62267 62143 | 
             
              dependencies: {
         | 
| 62268 | 
            -
                "@drizzle-team/studio": "^0.0. | 
| 62144 | 
            +
                "@drizzle-team/studio": "^0.0.38",
         | 
| 62269 62145 | 
             
                "@esbuild-kit/esm-loader": "^2.5.5",
         | 
| 62270 62146 | 
             
                camelcase: "^7.0.1",
         | 
| 62271 62147 | 
             
                chalk: "^5.2.0",
         | 
| 62272 62148 | 
             
                commander: "^9.4.1",
         | 
| 62149 | 
            +
                "env-paths": "^3.0.0",
         | 
| 62273 62150 | 
             
                esbuild: "^0.19.7",
         | 
| 62274 62151 | 
             
                "esbuild-register": "^3.5.0",
         | 
| 62275 62152 | 
             
                glob: "^8.1.0",
         | 
| @@ -62277,7 +62154,6 @@ var package_default = { | |
| 62277 62154 | 
             
                "json-diff": "0.9.0",
         | 
| 62278 62155 | 
             
                minimatch: "^7.4.3",
         | 
| 62279 62156 | 
             
                semver: "^7.5.4",
         | 
| 62280 | 
            -
                wrangler: "^3.7.0",
         | 
| 62281 62157 | 
             
                zod: "^3.20.2"
         | 
| 62282 62158 | 
             
              },
         | 
| 62283 62159 | 
             
              devDependencies: {
         | 
| @@ -62309,6 +62185,7 @@ var package_default = { | |
| 62309 62185 | 
             
                tsx: "^3.12.1",
         | 
| 62310 62186 | 
             
                typescript: "^4.9.4",
         | 
| 62311 62187 | 
             
                uvu: "^0.5.6",
         | 
| 62188 | 
            +
                wrangler: "^3.22.1",
         | 
| 62312 62189 | 
             
                zx: "^7.2.2"
         | 
| 62313 62190 | 
             
              },
         | 
| 62314 62191 | 
             
              exports: {
         | 
| @@ -62360,10 +62237,10 @@ var upSqliteHandlerV4 = (out) => { | |
| 62360 62237 | 
             
                path: it,
         | 
| 62361 62238 | 
             
                raw: report.rawMap[it]
         | 
| 62362 62239 | 
             
              })).forEach((it) => {
         | 
| 62363 | 
            -
                const  | 
| 62240 | 
            +
                const path5 = it.path;
         | 
| 62364 62241 | 
             
                const result = updateToLatestV42(it.raw);
         | 
| 62365 | 
            -
                console.log(`[${source_default.green("\u2713")}] ${ | 
| 62366 | 
            -
                import_fs9.default.writeFileSync( | 
| 62242 | 
            +
                console.log(`[${source_default.green("\u2713")}] ${path5}`);
         | 
| 62243 | 
            +
                import_fs9.default.writeFileSync(path5, JSON.stringify(result, null, 2));
         | 
| 62367 62244 | 
             
              });
         | 
| 62368 62245 | 
             
              console.log("Everything's fine \u{1F436}\u{1F525}");
         | 
| 62369 62246 | 
             
            };
         | 
| @@ -63000,6 +62877,97 @@ init_sqlgenerator(); | |
| 63000 62877 | 
             
            init_selector_ui();
         | 
| 63001 62878 | 
             
            var import_studio = require("@drizzle-team/studio");
         | 
| 63002 62879 | 
             
            init_global();
         | 
| 62880 | 
            +
             | 
| 62881 | 
            +
            // src/utils/certs.ts
         | 
| 62882 | 
            +
            init_build();
         | 
| 62883 | 
            +
            var import_path7 = require("path");
         | 
| 62884 | 
            +
             | 
| 62885 | 
            +
            // node_modules/.pnpm/env-paths@3.0.0/node_modules/env-paths/index.js
         | 
| 62886 | 
            +
            var import_node_path3 = __toESM(require("node:path"), 1);
         | 
| 62887 | 
            +
            var import_node_os2 = __toESM(require("node:os"), 1);
         | 
| 62888 | 
            +
            var import_node_process3 = __toESM(require("node:process"), 1);
         | 
| 62889 | 
            +
            var homedir = import_node_os2.default.homedir();
         | 
| 62890 | 
            +
            var tmpdir = import_node_os2.default.tmpdir();
         | 
| 62891 | 
            +
            var { env: env2 } = import_node_process3.default;
         | 
| 62892 | 
            +
            var macos = (name) => {
         | 
| 62893 | 
            +
              const library = import_node_path3.default.join(homedir, "Library");
         | 
| 62894 | 
            +
              return {
         | 
| 62895 | 
            +
                data: import_node_path3.default.join(library, "Application Support", name),
         | 
| 62896 | 
            +
                config: import_node_path3.default.join(library, "Preferences", name),
         | 
| 62897 | 
            +
                cache: import_node_path3.default.join(library, "Caches", name),
         | 
| 62898 | 
            +
                log: import_node_path3.default.join(library, "Logs", name),
         | 
| 62899 | 
            +
                temp: import_node_path3.default.join(tmpdir, name)
         | 
| 62900 | 
            +
              };
         | 
| 62901 | 
            +
            };
         | 
| 62902 | 
            +
            var windows = (name) => {
         | 
| 62903 | 
            +
              const appData = env2.APPDATA || import_node_path3.default.join(homedir, "AppData", "Roaming");
         | 
| 62904 | 
            +
              const localAppData = env2.LOCALAPPDATA || import_node_path3.default.join(homedir, "AppData", "Local");
         | 
| 62905 | 
            +
              return {
         | 
| 62906 | 
            +
                // Data/config/cache/log are invented by me as Windows isn't opinionated about this
         | 
| 62907 | 
            +
                data: import_node_path3.default.join(localAppData, name, "Data"),
         | 
| 62908 | 
            +
                config: import_node_path3.default.join(appData, name, "Config"),
         | 
| 62909 | 
            +
                cache: import_node_path3.default.join(localAppData, name, "Cache"),
         | 
| 62910 | 
            +
                log: import_node_path3.default.join(localAppData, name, "Log"),
         | 
| 62911 | 
            +
                temp: import_node_path3.default.join(tmpdir, name)
         | 
| 62912 | 
            +
              };
         | 
| 62913 | 
            +
            };
         | 
| 62914 | 
            +
            var linux = (name) => {
         | 
| 62915 | 
            +
              const username = import_node_path3.default.basename(homedir);
         | 
| 62916 | 
            +
              return {
         | 
| 62917 | 
            +
                data: import_node_path3.default.join(env2.XDG_DATA_HOME || import_node_path3.default.join(homedir, ".local", "share"), name),
         | 
| 62918 | 
            +
                config: import_node_path3.default.join(env2.XDG_CONFIG_HOME || import_node_path3.default.join(homedir, ".config"), name),
         | 
| 62919 | 
            +
                cache: import_node_path3.default.join(env2.XDG_CACHE_HOME || import_node_path3.default.join(homedir, ".cache"), name),
         | 
| 62920 | 
            +
                // https://wiki.debian.org/XDGBaseDirectorySpecification#state
         | 
| 62921 | 
            +
                log: import_node_path3.default.join(env2.XDG_STATE_HOME || import_node_path3.default.join(homedir, ".local", "state"), name),
         | 
| 62922 | 
            +
                temp: import_node_path3.default.join(tmpdir, username, name)
         | 
| 62923 | 
            +
              };
         | 
| 62924 | 
            +
            };
         | 
| 62925 | 
            +
            function envPaths(name, { suffix = "nodejs" } = {}) {
         | 
| 62926 | 
            +
              if (typeof name !== "string") {
         | 
| 62927 | 
            +
                throw new TypeError(`Expected a string, got ${typeof name}`);
         | 
| 62928 | 
            +
              }
         | 
| 62929 | 
            +
              if (suffix) {
         | 
| 62930 | 
            +
                name += `-${suffix}`;
         | 
| 62931 | 
            +
              }
         | 
| 62932 | 
            +
              if (import_node_process3.default.platform === "darwin") {
         | 
| 62933 | 
            +
                return macos(name);
         | 
| 62934 | 
            +
              }
         | 
| 62935 | 
            +
              if (import_node_process3.default.platform === "win32") {
         | 
| 62936 | 
            +
                return windows(name);
         | 
| 62937 | 
            +
              }
         | 
| 62938 | 
            +
              return linux(name);
         | 
| 62939 | 
            +
            }
         | 
| 62940 | 
            +
             | 
| 62941 | 
            +
            // src/utils/certs.ts
         | 
| 62942 | 
            +
            var import_promises = require("fs/promises");
         | 
| 62943 | 
            +
            var import_fs12 = require("fs");
         | 
| 62944 | 
            +
            var p = envPaths("drizzle-studio", {
         | 
| 62945 | 
            +
              suffix: ""
         | 
| 62946 | 
            +
            });
         | 
| 62947 | 
            +
            $.verbose = false;
         | 
| 62948 | 
            +
            $.cwd = p.data;
         | 
| 62949 | 
            +
            (0, import_fs12.mkdirSync)(p.data, { recursive: true });
         | 
| 62950 | 
            +
            var certs = async () => {
         | 
| 62951 | 
            +
              const res = await $`mkcert --help`.nothrow();
         | 
| 62952 | 
            +
              const keyPath = (0, import_path7.join)(p.data, "localhost-key.pem");
         | 
| 62953 | 
            +
              const certPath = (0, import_path7.join)(p.data, "localhost.pem");
         | 
| 62954 | 
            +
              if (res.exitCode === 0) {
         | 
| 62955 | 
            +
                try {
         | 
| 62956 | 
            +
                  await Promise.all([(0, import_promises.access)(keyPath), (0, import_promises.access)(certPath)]);
         | 
| 62957 | 
            +
                } catch (e) {
         | 
| 62958 | 
            +
                  await $`mkcert localhost`.nothrow();
         | 
| 62959 | 
            +
                }
         | 
| 62960 | 
            +
                const [key, cert] = await Promise.all([
         | 
| 62961 | 
            +
                  (0, import_promises.readFile)(keyPath, { encoding: "utf-8" }),
         | 
| 62962 | 
            +
                  (0, import_promises.readFile)(certPath, { encoding: "utf-8" })
         | 
| 62963 | 
            +
                ]);
         | 
| 62964 | 
            +
                return key && cert ? { key, cert } : null;
         | 
| 62965 | 
            +
              }
         | 
| 62966 | 
            +
              return null;
         | 
| 62967 | 
            +
            };
         | 
| 62968 | 
            +
            certs();
         | 
| 62969 | 
            +
             | 
| 62970 | 
            +
            // src/cli/index.ts
         | 
| 63003 62971 | 
             
            var printVersions = async () => {
         | 
| 63004 62972 | 
             
              const v = await versions();
         | 
| 63005 62973 | 
             
              console.log(`${source_default.gray(v)}
         | 
| @@ -63531,8 +63499,8 @@ var introspectPgCommand = new import_commander.Command("introspect:pg").option(" | |
| 63531 63499 | 
             
                tablesFilter,
         | 
| 63532 63500 | 
             
                schemasFilter
         | 
| 63533 63501 | 
             
              );
         | 
| 63534 | 
            -
              const schemaFile =  | 
| 63535 | 
            -
              (0,  | 
| 63502 | 
            +
              const schemaFile = import_path8.default.join(validatedConfig.out, "schema.ts");
         | 
| 63503 | 
            +
              (0, import_fs13.writeFileSync)(schemaFile, ts.file);
         | 
| 63536 63504 | 
             
              console.log();
         | 
| 63537 63505 | 
             
              if (snapshots.length === 0) {
         | 
| 63538 63506 | 
             
                const { sqlStatements, _meta } = await prepareSQL(
         | 
| @@ -63542,15 +63510,15 @@ var introspectPgCommand = new import_commander.Command("introspect:pg").option(" | |
| 63542 63510 | 
             
                  dryMySql,
         | 
| 63543 63511 | 
             
                  schema4
         | 
| 63544 63512 | 
             
                );
         | 
| 63545 | 
            -
                writeResult(
         | 
| 63546 | 
            -
                  schema4,
         | 
| 63513 | 
            +
                writeResult({
         | 
| 63514 | 
            +
                  cur: schema4,
         | 
| 63547 63515 | 
             
                  sqlStatements,
         | 
| 63548 63516 | 
             
                  journal,
         | 
| 63549 63517 | 
             
                  _meta,
         | 
| 63550 | 
            -
                  validatedConfig.out,
         | 
| 63551 | 
            -
                  validatedConfig.breakpoints,
         | 
| 63552 | 
            -
                  "introspect"
         | 
| 63553 | 
            -
                );
         | 
| 63518 | 
            +
                  outFolder: validatedConfig.out,
         | 
| 63519 | 
            +
                  breakpoints: validatedConfig.breakpoints ?? false,
         | 
| 63520 | 
            +
                  type: "introspect"
         | 
| 63521 | 
            +
                });
         | 
| 63554 63522 | 
             
              } else {
         | 
| 63555 63523 | 
             
                (0, import_hanji11.render)(
         | 
| 63556 63524 | 
             
                  `[${source_default.blue(
         | 
| @@ -63584,8 +63552,8 @@ var introspectMySqlCommand = new import_commander.Command("introspect:mysql").op | |
| 63584 63552 | 
             
              const filterConfig = res.tablesFilter;
         | 
| 63585 63553 | 
             
              const tablesFilter = filterConfig ? typeof filterConfig === "string" ? [filterConfig] : filterConfig : [];
         | 
| 63586 63554 | 
             
              const { schema: schema4, ts } = await mysqlIntrospect2(res, tablesFilter);
         | 
| 63587 | 
            -
              const schemaFile =  | 
| 63588 | 
            -
              (0,  | 
| 63555 | 
            +
              const schemaFile = import_path8.default.join(out, "schema.ts");
         | 
| 63556 | 
            +
              (0, import_fs13.writeFileSync)(schemaFile, ts.file);
         | 
| 63589 63557 | 
             
              console.log();
         | 
| 63590 63558 | 
             
              if (snapshots.length === 0) {
         | 
| 63591 63559 | 
             
                const { sqlStatements, _meta } = await prepareSQL(
         | 
| @@ -63595,15 +63563,15 @@ var introspectMySqlCommand = new import_commander.Command("introspect:mysql").op | |
| 63595 63563 | 
             
                  dryMySql,
         | 
| 63596 63564 | 
             
                  schema4
         | 
| 63597 63565 | 
             
                );
         | 
| 63598 | 
            -
                writeResult(
         | 
| 63599 | 
            -
                  schema4,
         | 
| 63566 | 
            +
                writeResult({
         | 
| 63567 | 
            +
                  cur: schema4,
         | 
| 63600 63568 | 
             
                  sqlStatements,
         | 
| 63601 63569 | 
             
                  journal,
         | 
| 63602 63570 | 
             
                  _meta,
         | 
| 63603 | 
            -
                  out,
         | 
| 63604 | 
            -
                  res.breakpoints ?? false,
         | 
| 63605 | 
            -
                  "introspect"
         | 
| 63606 | 
            -
                );
         | 
| 63571 | 
            +
                  outFolder: out,
         | 
| 63572 | 
            +
                  breakpoints: res.breakpoints ?? false,
         | 
| 63573 | 
            +
                  type: "introspect"
         | 
| 63574 | 
            +
                });
         | 
| 63607 63575 | 
             
              } else {
         | 
| 63608 63576 | 
             
                (0, import_hanji11.render)(
         | 
| 63609 63577 | 
             
                  `[${source_default.blue(
         | 
| @@ -63637,8 +63605,8 @@ var introspectSQLiteCommand = new import_commander.Command("introspect:sqlite"). | |
| 63637 63605 | 
             
              const filterConfig = res.tablesFilter;
         | 
| 63638 63606 | 
             
              const tablesFilter = filterConfig ? typeof filterConfig === "string" ? [filterConfig] : filterConfig : [];
         | 
| 63639 63607 | 
             
              const { schema: schema4, ts } = await sqliteIntrospect2(res, tablesFilter);
         | 
| 63640 | 
            -
              const schemaFile =  | 
| 63641 | 
            -
              (0,  | 
| 63608 | 
            +
              const schemaFile = import_path8.default.join(out, "schema.ts");
         | 
| 63609 | 
            +
              (0, import_fs13.writeFileSync)(schemaFile, ts.file);
         | 
| 63642 63610 | 
             
              console.log();
         | 
| 63643 63611 | 
             
              if (snapshots.length === 0) {
         | 
| 63644 63612 | 
             
                const { sqlStatements, _meta } = await prepareSQL(
         | 
| @@ -63648,15 +63616,15 @@ var introspectSQLiteCommand = new import_commander.Command("introspect:sqlite"). | |
| 63648 63616 | 
             
                  drySQLite,
         | 
| 63649 63617 | 
             
                  schema4
         | 
| 63650 63618 | 
             
                );
         | 
| 63651 | 
            -
                writeResult(
         | 
| 63652 | 
            -
                  schema4,
         | 
| 63619 | 
            +
                writeResult({
         | 
| 63620 | 
            +
                  cur: schema4,
         | 
| 63653 63621 | 
             
                  sqlStatements,
         | 
| 63654 63622 | 
             
                  journal,
         | 
| 63655 63623 | 
             
                  _meta,
         | 
| 63656 | 
            -
                  out,
         | 
| 63657 | 
            -
                  res.breakpoints ?? false,
         | 
| 63658 | 
            -
                  "introspect"
         | 
| 63659 | 
            -
                );
         | 
| 63624 | 
            +
                  outFolder: out,
         | 
| 63625 | 
            +
                  breakpoints: res.breakpoints ?? false,
         | 
| 63626 | 
            +
                  type: "introspect"
         | 
| 63627 | 
            +
                });
         | 
| 63660 63628 | 
             
              } else {
         | 
| 63661 63629 | 
             
                (0, import_hanji11.render)(
         | 
| 63662 63630 | 
             
                  `[${source_default.blue(
         | 
| @@ -63690,7 +63658,9 @@ var dropCommand = new import_commander.Command("drop").option("--out <out>", `Ou | |
| 63690 63658 | 
             
              if (typeof options.driver !== "undefined") {
         | 
| 63691 63659 | 
             
                bundle = options.driver === "expo";
         | 
| 63692 63660 | 
             
              } else {
         | 
| 63693 | 
            -
                const drizzleConfig = await drizzleConfigFromFile( | 
| 63661 | 
            +
                const drizzleConfig = await drizzleConfigFromFile(
         | 
| 63662 | 
            +
                  options.config
         | 
| 63663 | 
            +
                );
         | 
| 63694 63664 | 
             
                bundle = drizzleConfig.driver === "expo";
         | 
| 63695 63665 | 
             
              }
         | 
| 63696 63666 | 
             
              assertV1OutFolder(out, "{dialect}");
         | 
| @@ -63786,9 +63756,12 @@ var studioCommand = new import_commander.Command("studio").option("--port <port> | |
| 63786 63756 | 
             
                  )
         | 
| 63787 63757 | 
             
                );
         | 
| 63788 63758 | 
             
              }
         | 
| 63759 | 
            +
              const { key, cert } = await certs() || {};
         | 
| 63789 63760 | 
             
              server.start({
         | 
| 63790 63761 | 
             
                host,
         | 
| 63791 63762 | 
             
                port,
         | 
| 63763 | 
            +
                key,
         | 
| 63764 | 
            +
                cert,
         | 
| 63792 63765 | 
             
                cb: (err2, address) => {
         | 
| 63793 63766 | 
             
                  if (err2) {
         | 
| 63794 63767 | 
             
                    console.error(err2);
         | 
| @@ -63800,7 +63773,7 @@ var studioCommand = new import_commander.Command("studio").option("--port <port> | |
| 63800 63773 | 
             
                    if (host !== "127.0.0.1") {
         | 
| 63801 63774 | 
             
                      queryParams.host = host;
         | 
| 63802 63775 | 
             
                    }
         | 
| 63803 | 
            -
                    const queryString = Object.keys(queryParams).map(( | 
| 63776 | 
            +
                    const queryString = Object.keys(queryParams).map((key2) => `${key2}=${queryParams[key2]}`).join("&");
         | 
| 63804 63777 | 
             
                    console.log(
         | 
| 63805 63778 | 
             
                      `
         | 
| 63806 63779 | 
             
            Drizzle Studio is up and running on ${source_default.blue(
         |