@prisma/cli-init 0.0.0-dev.202511260043 → 0.0.0-dev.202511260112

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.
@@ -16,16 +16,16 @@ import {
16
16
  safeParse,
17
17
  string,
18
18
  union
19
- } from "./chunk-IASWUJDO.js";
19
+ } from "./chunk-7C5I22R2.js";
20
20
  import {
21
21
  __commonJS,
22
22
  __require,
23
23
  __toESM
24
24
  } from "./chunk-YX4UTTNJ.js";
25
25
 
26
- // ../../node_modules/.pnpm/@prisma+query-plan-executor@7.0.1/node_modules/@prisma/query-plan-executor/dist/index.js
26
+ // ../../node_modules/.pnpm/@prisma+query-plan-executor@6.18.0/node_modules/@prisma/query-plan-executor/dist/index.js
27
27
  var require_dist = __commonJS({
28
- "../../node_modules/.pnpm/@prisma+query-plan-executor@7.0.1/node_modules/@prisma/query-plan-executor/dist/index.js"(exports2, module2) {
28
+ "../../node_modules/.pnpm/@prisma+query-plan-executor@6.18.0/node_modules/@prisma/query-plan-executor/dist/index.js"(exports2, module2) {
29
29
  "use strict";
30
30
  var __create = Object.create;
31
31
  var __defProp = Object.defineProperty;
@@ -344,10 +344,10 @@ var require_dist = __commonJS({
344
344
  }
345
345
  };
346
346
  exports22.Hash = Hash2;
347
- function checkOpts(defaults2, opts) {
347
+ function checkOpts(defaults, opts) {
348
348
  if (opts !== void 0 && {}.toString.call(opts) !== "[object Object]")
349
349
  throw new Error("Options should be object or undefined");
350
- const merged = Object.assign(defaults2, opts);
350
+ const merged = Object.assign(defaults, opts);
351
351
  return merged;
352
352
  }
353
353
  function wrapConstructor(hashCons) {
@@ -8553,10 +8553,10 @@ var require_dist = __commonJS({
8553
8553
  var escapeString = (val) => {
8554
8554
  let offset = 0;
8555
8555
  let escaped = "";
8556
- let match2;
8557
- while (match2 = CHARS_GLOBAL_REGEXP.exec(val)) {
8558
- escaped += val.substring(offset, match2.index);
8559
- escaped += LITTERAL_ESCAPE[match2[0]];
8556
+ let match;
8557
+ while (match = CHARS_GLOBAL_REGEXP.exec(val)) {
8558
+ escaped += val.substring(offset, match.index);
8559
+ escaped += LITTERAL_ESCAPE[match[0]];
8560
8560
  offset = CHARS_GLOBAL_REGEXP.lastIndex;
8561
8561
  }
8562
8562
  if (offset === 0) {
@@ -9150,21 +9150,21 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end, this.header)}`
9150
9150
  */
9151
9151
  writeDefaultStringEscapeQuote(str) {
9152
9152
  this.writeInt8(QUOTE);
9153
- let match2;
9154
- let lastIndex = 0;
9155
- while ((match2 = CHARS_GLOBAL_REGEXP.exec(str)) !== null) {
9156
- this.writeString(str.slice(lastIndex, match2.index));
9153
+ let match;
9154
+ let lastIndex2 = 0;
9155
+ while ((match = CHARS_GLOBAL_REGEXP.exec(str)) !== null) {
9156
+ this.writeString(str.slice(lastIndex2, match.index));
9157
9157
  this.writeInt8(SLASH);
9158
- this.writeInt8(match2[0].charCodeAt(0));
9159
- lastIndex = CHARS_GLOBAL_REGEXP.lastIndex;
9158
+ this.writeInt8(match[0].charCodeAt(0));
9159
+ lastIndex2 = CHARS_GLOBAL_REGEXP.lastIndex;
9160
9160
  }
9161
- if (lastIndex === 0) {
9161
+ if (lastIndex2 === 0) {
9162
9162
  this.writeString(str);
9163
9163
  this.writeInt8(QUOTE);
9164
9164
  return;
9165
9165
  }
9166
- if (lastIndex < str.length) {
9167
- this.writeString(str.slice(lastIndex));
9166
+ if (lastIndex2 < str.length) {
9167
+ this.writeString(str.slice(lastIndex2));
9168
9168
  }
9169
9169
  this.writeInt8(QUOTE);
9170
9170
  }
@@ -10360,7 +10360,7 @@ ${Utils.log(this.opts, emptyBuf, 0, 7)}`
10360
10360
  var SslRequest = require_ssl_request();
10361
10361
  var Errors2 = require_errors();
10362
10362
  var NativePasswordAuth = require_native_password_auth();
10363
- var os5 = __require("os");
10363
+ var os4 = __require("os");
10364
10364
  var Iconv = require_lib();
10365
10365
  var Crypto = __require("crypto");
10366
10366
  var driverVersion = require_package().version;
@@ -10492,7 +10492,7 @@ ${Utils.log(this.opts, emptyBuf, 0, 7)}`
10492
10492
  _Handshake.writeAttribute(out, "_os", encoding);
10493
10493
  _Handshake.writeAttribute(out, process.platform, encoding);
10494
10494
  _Handshake.writeAttribute(out, "_client_host", encoding);
10495
- _Handshake.writeAttribute(out, os5.hostname(), encoding);
10495
+ _Handshake.writeAttribute(out, os4.hostname(), encoding);
10496
10496
  _Handshake.writeAttribute(out, "_node_version", encoding);
10497
10497
  _Handshake.writeAttribute(out, process.versions.node, encoding);
10498
10498
  if (opts.connectAttributes !== true) {
@@ -13909,7 +13909,7 @@ ${Utils.log(this.opts, emptyBuf, 0, 7)}`
13909
13909
  var TextEncoder2 = require_text_encoder();
13910
13910
  var { Readable } = __require("stream");
13911
13911
  var QUOTE = 39;
13912
- var Query2 = class extends Parser2 {
13912
+ var Query = class extends Parser2 {
13913
13913
  constructor(resolve, reject, connOpts, cmdParam) {
13914
13914
  super(resolve, reject, connOpts, cmdParam);
13915
13915
  this.binary = false;
@@ -14221,7 +14221,7 @@ ${Utils.log(this.opts, emptyBuf, 0, 7)}`
14221
14221
  return this.inStream;
14222
14222
  }
14223
14223
  };
14224
- module22.exports = Query2;
14224
+ module22.exports = Query;
14225
14225
  }
14226
14226
  });
14227
14227
  var require_binary_encoder = __commonJS2({
@@ -17394,7 +17394,7 @@ ${Utils.log(this.opts, emptyBuf, 0, 7)}`
17394
17394
  var Quit = require_quit();
17395
17395
  var Ping = require_ping();
17396
17396
  var Reset = require_reset();
17397
- var Query2 = require_query();
17397
+ var Query = require_query();
17398
17398
  var Prepare = require_prepare();
17399
17399
  var OkPacket = require_ok_packet();
17400
17400
  var Execute = require_execute();
@@ -17433,7 +17433,7 @@ ${Utils.log(this.opts, emptyBuf, 0, 7)}`
17433
17433
  return tz;
17434
17434
  };
17435
17435
  var redirectUrlFormat = /(mariadb|mysql):\/\/(([^/@:]+)?(:([^/]+))?@)?(([^/:]+)(:([0-9]+))?)(\/([^?]+)(\?(.*))?)?$/;
17436
- var Connection2 = class _Connection extends EventEmitter {
17436
+ var Connection = class _Connection extends EventEmitter {
17437
17437
  opts;
17438
17438
  sendQueue = new Queue();
17439
17439
  receiveQueue = new Queue();
@@ -18767,7 +18767,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
18767
18767
  return;
18768
18768
  }
18769
18769
  if (this.receiveQueue.peekFront() || this.info.status & ServerStatus.STATUS_IN_TRANS) {
18770
- const cmd = new Query2(resolve, (err) => this._logAndReject(reject, err), this.opts, cmdParam);
18770
+ const cmd = new Query(resolve, (err) => this._logAndReject(reject, err), this.opts, cmdParam);
18771
18771
  this.addCommand(cmd, true);
18772
18772
  } else
18773
18773
  resolve();
@@ -18837,7 +18837,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
18837
18837
  cmdParam.stack
18838
18838
  )
18839
18839
  );
18840
- const cmd = new Query2(resolve, (err) => this._logAndReject(reject, err), this.opts, cmdParam);
18840
+ const cmd = new Query(resolve, (err) => this._logAndReject(reject, err), this.opts, cmdParam);
18841
18841
  this.addCommand(cmd, true);
18842
18842
  }
18843
18843
  prepare(cmdParam, resolve, reject) {
@@ -18980,7 +18980,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
18980
18980
  this.waitingAuthenticationQueue = new Queue();
18981
18981
  this.addCommand = this.addCommandQueue;
18982
18982
  const tmpQuery = function(sql4, resolve2, reject2) {
18983
- const cmd = new Query2(
18983
+ const cmd = new Query(
18984
18984
  resolve2,
18985
18985
  (err) => {
18986
18986
  if (conn.opts.logger.error)
@@ -19248,15 +19248,15 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
19248
19248
  return this.#socket;
19249
19249
  }
19250
19250
  };
19251
- module22.exports = Connection2;
19251
+ module22.exports = Connection;
19252
19252
  }
19253
19253
  });
19254
19254
  var require_stream = __commonJS2({
19255
19255
  "../../node_modules/.pnpm/mariadb@3.4.5/node_modules/mariadb/lib/cmd/stream.js"(exports22, module22) {
19256
19256
  "use strict";
19257
- var Query2 = require_query();
19257
+ var Query = require_query();
19258
19258
  var { Readable } = __require("stream");
19259
- var Stream = class extends Query2 {
19259
+ var Stream = class extends Query {
19260
19260
  constructor(cmdParam, connOpts, socket) {
19261
19261
  super(
19262
19262
  () => {
@@ -19625,8 +19625,8 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
19625
19625
  var Queue = require_denque();
19626
19626
  var Errors2 = require_errors();
19627
19627
  var Utils = require_utils2();
19628
- var Connection2 = require_connection();
19629
- var Pool2 = class extends EventEmitter {
19628
+ var Connection = require_connection();
19629
+ var Pool = class extends EventEmitter {
19630
19630
  opts;
19631
19631
  #closed = false;
19632
19632
  #connectionInCreation = false;
@@ -19756,7 +19756,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
19756
19756
  const connectionOpts = Object.assign({}, this.opts.connOptions, {
19757
19757
  connectTimeout: Math.max(1, Math.min(minTimeout, this.opts.connOptions.connectTimeout || Number.MAX_SAFE_INTEGER))
19758
19758
  });
19759
- const conn = new Connection2(connectionOpts);
19759
+ const conn = new Connection(connectionOpts);
19760
19760
  this._connectionCreationTask = null;
19761
19761
  conn.connect().then((conn2) => this._prepareNewConnection(conn2, onSuccess, onError)).catch((err) => this._handleConnectionCreationError(err, onSuccess, onError, timeoutEnd));
19762
19762
  }
@@ -20395,21 +20395,21 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
20395
20395
  process.nextTick(this.rejecter, err);
20396
20396
  }
20397
20397
  };
20398
- module22.exports = Pool2;
20398
+ module22.exports = Pool;
20399
20399
  }
20400
20400
  });
20401
20401
  var require_pool_promise = __commonJS2({
20402
20402
  "../../node_modules/.pnpm/mariadb@3.4.5/node_modules/mariadb/lib/pool-promise.js"(exports22, module22) {
20403
20403
  "use strict";
20404
20404
  var { EventEmitter } = __require("events");
20405
- var Pool2 = require_pool();
20405
+ var Pool = require_pool();
20406
20406
  var ConnectionPromise = require_connection_promise();
20407
20407
  var Errors2 = require_errors();
20408
20408
  var PoolPromise = class extends EventEmitter {
20409
20409
  #pool;
20410
20410
  constructor(options) {
20411
20411
  super();
20412
- this.#pool = new Pool2(options);
20412
+ this.#pool = new Pool(options);
20413
20413
  this.#pool.on("acquire", this.emit.bind(this, "acquire"));
20414
20414
  this.#pool.on("connection", this.emit.bind(this, "connection"));
20415
20415
  this.#pool.on("enqueue", this.emit.bind(this, "enqueue"));
@@ -20700,7 +20700,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
20700
20700
  "use strict";
20701
20701
  var Errors2 = require_errors();
20702
20702
  var { Status } = require_connection_status();
20703
- var Query2 = require_query();
20703
+ var Query = require_query();
20704
20704
  var ConnectionCallback = class _ConnectionCallback {
20705
20705
  #conn;
20706
20706
  constructor(conn) {
@@ -20817,7 +20817,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
20817
20817
  let cmd;
20818
20818
  if (cmdParam.callback) {
20819
20819
  cmdParam.opts = cmdParam.opts ? Object.assign(cmdParam.opts, { metaAsArray: true }) : { metaAsArray: true };
20820
- cmd = new Query2(
20820
+ cmd = new Query(
20821
20821
  ([rows, meta]) => {
20822
20822
  cmdParam.callback(null, rows, meta);
20823
20823
  },
@@ -20826,7 +20826,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
20826
20826
  cmdParam
20827
20827
  );
20828
20828
  } else {
20829
- cmd = new Query2(
20829
+ cmd = new Query(
20830
20830
  () => {
20831
20831
  },
20832
20832
  () => {
@@ -21178,14 +21178,14 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
21178
21178
  "../../node_modules/.pnpm/mariadb@3.4.5/node_modules/mariadb/lib/pool-callback.js"(exports22, module22) {
21179
21179
  "use strict";
21180
21180
  var { EventEmitter } = __require("events");
21181
- var Pool2 = require_pool();
21181
+ var Pool = require_pool();
21182
21182
  var Errors2 = require_errors();
21183
21183
  var ConnectionCallback = require_connection_callback();
21184
21184
  var PoolCallback = class extends EventEmitter {
21185
21185
  #pool;
21186
21186
  constructor(options) {
21187
21187
  super();
21188
- this.#pool = new Pool2(options);
21188
+ this.#pool = new Pool(options);
21189
21189
  this.#pool.on("acquire", this.emit.bind(this, "acquire"));
21190
21190
  this.#pool.on("connection", this.emit.bind(this, "connection"));
21191
21191
  this.#pool.on("enqueue", this.emit.bind(this, "enqueue"));
@@ -21976,7 +21976,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
21976
21976
  "../../node_modules/.pnpm/mariadb@3.4.5/node_modules/mariadb/promise.js"(exports22, module22) {
21977
21977
  "use strict";
21978
21978
  require_check_node();
21979
- var Connection2 = require_connection();
21979
+ var Connection = require_connection();
21980
21980
  var ConnectionPromise = require_connection_promise();
21981
21981
  var PoolPromise = require_pool_promise();
21982
21982
  var Cluster = require_cluster();
@@ -21998,7 +21998,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
21998
21998
  module22.exports.createConnection = function createConnection(opts) {
21999
21999
  try {
22000
22000
  const options = new ConnOptions(opts);
22001
- const conn = new Connection2(options);
22001
+ const conn = new Connection(options);
22002
22002
  const connPromise = new ConnectionPromise(conn);
22003
22003
  return conn.connect().then(() => Promise.resolve(connPromise));
22004
22004
  } catch (err) {
@@ -22019,7 +22019,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
22019
22019
  module22.exports.importFile = function importFile(opts) {
22020
22020
  try {
22021
22021
  const options = new ConnOptions(opts);
22022
- const conn = new Connection2(options);
22022
+ const conn = new Connection(options);
22023
22023
  return conn.connect().then(() => {
22024
22024
  return new Promise(conn.importFile.bind(conn, Object.assign({ skipDbCheck: true }, opts)));
22025
22025
  }).finally(() => {
@@ -22057,14 +22057,14 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
22057
22057
  if (str.length > 100) {
22058
22058
  return;
22059
22059
  }
22060
- var match2 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
22060
+ var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
22061
22061
  str
22062
22062
  );
22063
- if (!match2) {
22063
+ if (!match) {
22064
22064
  return;
22065
22065
  }
22066
- var n2 = parseFloat(match2[1]);
22067
- var type2 = (match2[2] || "ms").toLowerCase();
22066
+ var n2 = parseFloat(match[1]);
22067
+ var type2 = (match[2] || "ms").toLowerCase();
22068
22068
  switch (type2) {
22069
22069
  case "years":
22070
22070
  case "year":
@@ -22147,9 +22147,9 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
22147
22147
  }
22148
22148
  });
22149
22149
  var require_common = __commonJS2({
22150
- "../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/common.js"(exports22, module22) {
22150
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js"(exports22, module22) {
22151
22151
  "use strict";
22152
- function setup(env2) {
22152
+ function setup(env) {
22153
22153
  createDebug.debug = createDebug;
22154
22154
  createDebug.default = createDebug;
22155
22155
  createDebug.coerce = coerce;
@@ -22158,8 +22158,8 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
22158
22158
  createDebug.enabled = enabled2;
22159
22159
  createDebug.humanize = require_ms();
22160
22160
  createDebug.destroy = destroy2;
22161
- Object.keys(env2).forEach((key) => {
22162
- createDebug[key] = env2[key];
22161
+ Object.keys(env).forEach((key) => {
22162
+ createDebug[key] = env[key];
22163
22163
  });
22164
22164
  createDebug.names = [];
22165
22165
  createDebug.skips = [];
@@ -22194,19 +22194,19 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
22194
22194
  args.unshift("%O");
22195
22195
  }
22196
22196
  let index = 0;
22197
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format) => {
22198
- if (match2 === "%%") {
22197
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
22198
+ if (match === "%%") {
22199
22199
  return "%";
22200
22200
  }
22201
22201
  index++;
22202
22202
  const formatter = createDebug.formatters[format];
22203
22203
  if (typeof formatter === "function") {
22204
22204
  const val = args[index];
22205
- match2 = formatter.call(self2, val);
22205
+ match = formatter.call(self2, val);
22206
22206
  args.splice(index, 1);
22207
22207
  index--;
22208
22208
  }
22209
- return match2;
22209
+ return match;
22210
22210
  });
22211
22211
  createDebug.formatArgs.call(self2, args);
22212
22212
  const logFn = self2.log || createDebug.log;
@@ -22323,7 +22323,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
22323
22323
  }
22324
22324
  });
22325
22325
  var require_browser = __commonJS2({
22326
- "../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/browser.js"(exports22, module22) {
22326
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js"(exports22, module22) {
22327
22327
  "use strict";
22328
22328
  exports22.formatArgs = formatArgs;
22329
22329
  exports22.save = save;
@@ -22440,12 +22440,12 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
22440
22440
  args.splice(1, 0, c2, "color: inherit");
22441
22441
  let index = 0;
22442
22442
  let lastC = 0;
22443
- args[0].replace(/%[a-zA-Z%]/g, (match2) => {
22444
- if (match2 === "%%") {
22443
+ args[0].replace(/%[a-zA-Z%]/g, (match) => {
22444
+ if (match === "%%") {
22445
22445
  return;
22446
22446
  }
22447
22447
  index++;
22448
- if (match2 === "%c") {
22448
+ if (match === "%c") {
22449
22449
  lastC = index;
22450
22450
  }
22451
22451
  });
@@ -22491,164 +22491,133 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
22491
22491
  };
22492
22492
  }
22493
22493
  });
22494
- var supports_color_exports = {};
22495
- __export(supports_color_exports, {
22496
- createSupportsColor: () => createSupportsColor,
22497
- default: () => supports_color_default
22498
- });
22499
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
22500
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
22501
- const position = argv.indexOf(prefix + flag);
22502
- const terminatorPosition = argv.indexOf("--");
22503
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
22504
- }
22505
- function envForceColor() {
22506
- if (!("FORCE_COLOR" in env)) {
22507
- return;
22508
- }
22509
- if (env.FORCE_COLOR === "true") {
22510
- return 1;
22511
- }
22512
- if (env.FORCE_COLOR === "false") {
22513
- return 0;
22514
- }
22515
- if (env.FORCE_COLOR.length === 0) {
22516
- return 1;
22517
- }
22518
- const level = Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
22519
- if (![0, 1, 2, 3].includes(level)) {
22520
- return;
22521
- }
22522
- return level;
22523
- }
22524
- function translateLevel(level) {
22525
- if (level === 0) {
22526
- return false;
22527
- }
22528
- return {
22529
- level,
22530
- hasBasic: true,
22531
- has256: level >= 2,
22532
- has16m: level >= 3
22533
- };
22534
- }
22535
- function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
22536
- const noFlagForceColor = envForceColor();
22537
- if (noFlagForceColor !== void 0) {
22538
- flagForceColor = noFlagForceColor;
22539
- }
22540
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
22541
- if (forceColor === 0) {
22542
- return 0;
22543
- }
22544
- if (sniffFlags) {
22545
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
22546
- return 3;
22547
- }
22548
- if (hasFlag("color=256")) {
22549
- return 2;
22550
- }
22551
- }
22552
- if ("TF_BUILD" in env && "AGENT_NAME" in env) {
22553
- return 1;
22554
- }
22555
- if (haveStream && !streamIsTTY && forceColor === void 0) {
22556
- return 0;
22557
- }
22558
- const min2 = forceColor || 0;
22559
- if (env.TERM === "dumb") {
22560
- return min2;
22494
+ var require_has_flag = __commonJS2({
22495
+ "../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports22, module22) {
22496
+ "use strict";
22497
+ module22.exports = (flag, argv = process.argv) => {
22498
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
22499
+ const position = argv.indexOf(prefix + flag);
22500
+ const terminatorPosition = argv.indexOf("--");
22501
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
22502
+ };
22561
22503
  }
22562
- if (import_node_process.default.platform === "win32") {
22563
- const osRelease = import_node_os.default.release().split(".");
22564
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
22565
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
22504
+ });
22505
+ var require_supports_color = __commonJS2({
22506
+ "../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports22, module22) {
22507
+ "use strict";
22508
+ var os4 = __require("os");
22509
+ var tty = __require("tty");
22510
+ var hasFlag = require_has_flag();
22511
+ var { env } = process;
22512
+ var flagForceColor;
22513
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
22514
+ flagForceColor = 0;
22515
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
22516
+ flagForceColor = 1;
22566
22517
  }
22567
- return 1;
22568
- }
22569
- if ("CI" in env) {
22570
- if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
22571
- return 3;
22518
+ function envForceColor() {
22519
+ if ("FORCE_COLOR" in env) {
22520
+ if (env.FORCE_COLOR === "true") {
22521
+ return 1;
22522
+ }
22523
+ if (env.FORCE_COLOR === "false") {
22524
+ return 0;
22525
+ }
22526
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
22527
+ }
22572
22528
  }
22573
- if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign2) => sign2 in env) || env.CI_NAME === "codeship") {
22574
- return 1;
22529
+ function translateLevel(level) {
22530
+ if (level === 0) {
22531
+ return false;
22532
+ }
22533
+ return {
22534
+ level,
22535
+ hasBasic: true,
22536
+ has256: level >= 2,
22537
+ has16m: level >= 3
22538
+ };
22575
22539
  }
22576
- return min2;
22577
- }
22578
- if ("TEAMCITY_VERSION" in env) {
22579
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
22580
- }
22581
- if (env.COLORTERM === "truecolor") {
22582
- return 3;
22583
- }
22584
- if (env.TERM === "xterm-kitty") {
22585
- return 3;
22586
- }
22587
- if (env.TERM === "xterm-ghostty") {
22588
- return 3;
22589
- }
22590
- if (env.TERM === "wezterm") {
22591
- return 3;
22592
- }
22593
- if ("TERM_PROGRAM" in env) {
22594
- const version5 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
22595
- switch (env.TERM_PROGRAM) {
22596
- case "iTerm.app": {
22597
- return version5 >= 3 ? 3 : 2;
22540
+ function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
22541
+ const noFlagForceColor = envForceColor();
22542
+ if (noFlagForceColor !== void 0) {
22543
+ flagForceColor = noFlagForceColor;
22544
+ }
22545
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
22546
+ if (forceColor === 0) {
22547
+ return 0;
22598
22548
  }
22599
- case "Apple_Terminal": {
22549
+ if (sniffFlags) {
22550
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
22551
+ return 3;
22552
+ }
22553
+ if (hasFlag("color=256")) {
22554
+ return 2;
22555
+ }
22556
+ }
22557
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
22558
+ return 0;
22559
+ }
22560
+ const min2 = forceColor || 0;
22561
+ if (env.TERM === "dumb") {
22562
+ return min2;
22563
+ }
22564
+ if (process.platform === "win32") {
22565
+ const osRelease = os4.release().split(".");
22566
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
22567
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
22568
+ }
22569
+ return 1;
22570
+ }
22571
+ if ("CI" in env) {
22572
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign2) => sign2 in env) || env.CI_NAME === "codeship") {
22573
+ return 1;
22574
+ }
22575
+ return min2;
22576
+ }
22577
+ if ("TEAMCITY_VERSION" in env) {
22578
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
22579
+ }
22580
+ if (env.COLORTERM === "truecolor") {
22581
+ return 3;
22582
+ }
22583
+ if ("TERM_PROGRAM" in env) {
22584
+ const version5 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
22585
+ switch (env.TERM_PROGRAM) {
22586
+ case "iTerm.app":
22587
+ return version5 >= 3 ? 3 : 2;
22588
+ case "Apple_Terminal":
22589
+ return 2;
22590
+ }
22591
+ }
22592
+ if (/-256(color)?$/i.test(env.TERM)) {
22600
22593
  return 2;
22601
22594
  }
22595
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
22596
+ return 1;
22597
+ }
22598
+ if ("COLORTERM" in env) {
22599
+ return 1;
22600
+ }
22601
+ return min2;
22602
22602
  }
22603
- }
22604
- if (/-256(color)?$/i.test(env.TERM)) {
22605
- return 2;
22606
- }
22607
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
22608
- return 1;
22609
- }
22610
- if ("COLORTERM" in env) {
22611
- return 1;
22612
- }
22613
- return min2;
22614
- }
22615
- function createSupportsColor(stream, options = {}) {
22616
- const level = _supportsColor(stream, {
22617
- streamIsTTY: stream && stream.isTTY,
22618
- ...options
22619
- });
22620
- return translateLevel(level);
22621
- }
22622
- var import_node_process;
22623
- var import_node_os;
22624
- var import_node_tty;
22625
- var env;
22626
- var flagForceColor;
22627
- var supportsColor;
22628
- var supports_color_default;
22629
- var init_supports_color = __esm({
22630
- "../../node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js"() {
22631
- "use strict";
22632
- import_node_process = __toESM2(__require("process"), 1);
22633
- import_node_os = __toESM2(__require("os"), 1);
22634
- import_node_tty = __toESM2(__require("tty"), 1);
22635
- ({ env } = import_node_process.default);
22636
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
22637
- flagForceColor = 0;
22638
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
22639
- flagForceColor = 1;
22603
+ function getSupportLevel(stream, options = {}) {
22604
+ const level = supportsColor(stream, {
22605
+ streamIsTTY: stream && stream.isTTY,
22606
+ ...options
22607
+ });
22608
+ return translateLevel(level);
22640
22609
  }
22641
- supportsColor = {
22642
- stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
22643
- stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
22610
+ module22.exports = {
22611
+ supportsColor: getSupportLevel,
22612
+ stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
22613
+ stderr: getSupportLevel({ isTTY: tty.isatty(2) })
22644
22614
  };
22645
- supports_color_default = supportsColor;
22646
22615
  }
22647
22616
  });
22648
22617
  var require_node = __commonJS2({
22649
- "../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/node.js"(exports22, module22) {
22618
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js"(exports22, module22) {
22650
22619
  "use strict";
22651
- var tty2 = __require("tty");
22620
+ var tty = __require("tty");
22652
22621
  var util2 = __require("util");
22653
22622
  exports22.init = init3;
22654
22623
  exports22.log = log4;
@@ -22663,8 +22632,8 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
22663
22632
  );
22664
22633
  exports22.colors = [6, 2, 3, 4, 5, 1];
22665
22634
  try {
22666
- const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
22667
- if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
22635
+ const supportsColor = require_supports_color();
22636
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
22668
22637
  exports22.colors = [
22669
22638
  20,
22670
22639
  21,
@@ -22766,7 +22735,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
22766
22735
  return obj;
22767
22736
  }, {});
22768
22737
  function useColors() {
22769
- return "colors" in exports22.inspectOpts ? Boolean(exports22.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
22738
+ return "colors" in exports22.inspectOpts ? Boolean(exports22.inspectOpts.colors) : tty.isatty(process.stderr.fd);
22770
22739
  }
22771
22740
  function formatArgs(args) {
22772
22741
  const { namespace: name6, useColors: useColors2 } = this;
@@ -22819,7 +22788,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
22819
22788
  }
22820
22789
  });
22821
22790
  var require_src2 = __commonJS2({
22822
- "../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/index.js"(exports22, module22) {
22791
+ "../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js"(exports22, module22) {
22823
22792
  "use strict";
22824
22793
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
22825
22794
  module22.exports = require_browser();
@@ -23509,7 +23478,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
23509
23478
  var utils_1 = require_utils3();
23510
23479
  var events_1 = __require("events");
23511
23480
  var timers_1 = __require("timers");
23512
- var Pool2 = class {
23481
+ var Pool = class {
23513
23482
  constructor(opt) {
23514
23483
  this.destroyed = false;
23515
23484
  this.emitter = new events_1.EventEmitter();
@@ -23893,7 +23862,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
23893
23862
  });
23894
23863
  }
23895
23864
  };
23896
- exports22.Pool = Pool2;
23865
+ exports22.Pool = Pool;
23897
23866
  function remove(arr, item) {
23898
23867
  const idx = arr.indexOf(item);
23899
23868
  if (idx === -1) {
@@ -28851,13 +28820,13 @@ ${errorDetail}`);
28851
28820
  }
28852
28821
  function setPlatformSpecificData(map2) {
28853
28822
  map2.set("Node", process.version);
28854
- map2.set("OS", `(${os3.arch()}-${os3.type()}-${os3.release()})`);
28823
+ map2.set("OS", `(${os2.arch()}-${os2.type()}-${os2.release()})`);
28855
28824
  }
28856
- var os3;
28825
+ var os2;
28857
28826
  var init_userAgentPlatform = __esm({
28858
28827
  "../../node_modules/.pnpm/@azure+core-rest-pipeline@1.9.2/node_modules/@azure/core-rest-pipeline/dist-esm/src/util/userAgentPlatform.js"() {
28859
28828
  "use strict";
28860
- os3 = __toESM2(__require("os"));
28829
+ os2 = __toESM2(__require("os"));
28861
28830
  }
28862
28831
  });
28863
28832
  var SDK_VERSION2;
@@ -38156,12 +38125,12 @@ ${errorDetail}`);
38156
38125
  if (!type2 || typeof type2 !== "string") {
38157
38126
  return false;
38158
38127
  }
38159
- var match2 = EXTRACT_TYPE_REGEXP.exec(type2);
38160
- var mime = match2 && db[match2[1].toLowerCase()];
38128
+ var match = EXTRACT_TYPE_REGEXP.exec(type2);
38129
+ var mime = match && db[match[1].toLowerCase()];
38161
38130
  if (mime && mime.charset) {
38162
38131
  return mime.charset;
38163
38132
  }
38164
- if (match2 && TEXT_TYPE_REGEXP.test(match2[1])) {
38133
+ if (match && TEXT_TYPE_REGEXP.test(match[1])) {
38165
38134
  return "UTF-8";
38166
38135
  }
38167
38136
  return false;
@@ -38185,8 +38154,8 @@ ${errorDetail}`);
38185
38154
  if (!type2 || typeof type2 !== "string") {
38186
38155
  return false;
38187
38156
  }
38188
- var match2 = EXTRACT_TYPE_REGEXP.exec(type2);
38189
- var exts = match2 && exports22.extensions[match2[1].toLowerCase()];
38157
+ var match = EXTRACT_TYPE_REGEXP.exec(type2);
38158
+ var exts = match && exports22.extensions[match[1].toLowerCase()];
38190
38159
  if (!exts || !exts.length) {
38191
38160
  return false;
38192
38161
  }
@@ -39069,8 +39038,8 @@ ${errorDetail}`);
39069
39038
  throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
39070
39039
  }
39071
39040
  var result = [];
39072
- $replace(string4, rePropName, function(match2, number4, quote, subString) {
39073
- result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number4 || match2;
39041
+ $replace(string4, rePropName, function(match, number4, quote, subString) {
39042
+ result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number4 || match;
39074
39043
  });
39075
39044
  return result;
39076
39045
  };
@@ -39200,7 +39169,7 @@ ${errorDetail}`);
39200
39169
  }
39201
39170
  });
39202
39171
  var require_populate = __commonJS2({
39203
- "../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/populate.js"(exports22, module22) {
39172
+ "../../node_modules/.pnpm/form-data@4.0.2/node_modules/form-data/lib/populate.js"(exports22, module22) {
39204
39173
  "use strict";
39205
39174
  module22.exports = function(dst, src) {
39206
39175
  Object.keys(src).forEach(function(prop) {
@@ -39211,7 +39180,7 @@ ${errorDetail}`);
39211
39180
  }
39212
39181
  });
39213
39182
  var require_form_data = __commonJS2({
39214
- "../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/form_data.js"(exports22, module22) {
39183
+ "../../node_modules/.pnpm/form-data@4.0.2/node_modules/form-data/lib/form_data.js"(exports22, module22) {
39215
39184
  "use strict";
39216
39185
  var CombinedStream = require_combined_stream();
39217
39186
  var util2 = __require("util");
@@ -39221,12 +39190,12 @@ ${errorDetail}`);
39221
39190
  var parseUrl = __require("url").parse;
39222
39191
  var fs3 = __require("fs");
39223
39192
  var Stream = __require("stream").Stream;
39224
- var crypto7 = __require("crypto");
39225
39193
  var mime = require_mime_types();
39226
39194
  var asynckit = require_asynckit();
39227
39195
  var setToStringTag = require_es_set_tostringtag();
39228
- var hasOwn = require_hasown();
39229
39196
  var populate = require_populate();
39197
+ module22.exports = FormData2;
39198
+ util2.inherits(FormData2, CombinedStream);
39230
39199
  function FormData2(options) {
39231
39200
  if (!(this instanceof FormData2)) {
39232
39201
  return new FormData2(options);
@@ -39240,17 +39209,16 @@ ${errorDetail}`);
39240
39209
  this[option] = options[option];
39241
39210
  }
39242
39211
  }
39243
- util2.inherits(FormData2, CombinedStream);
39244
39212
  FormData2.LINE_BREAK = "\r\n";
39245
39213
  FormData2.DEFAULT_CONTENT_TYPE = "application/octet-stream";
39246
39214
  FormData2.prototype.append = function(field, value, options) {
39247
39215
  options = options || {};
39248
- if (typeof options === "string") {
39216
+ if (typeof options == "string") {
39249
39217
  options = { filename: options };
39250
39218
  }
39251
39219
  var append = CombinedStream.prototype.append.bind(this);
39252
- if (typeof value === "number" || value == null) {
39253
- value = String(value);
39220
+ if (typeof value == "number") {
39221
+ value = "" + value;
39254
39222
  }
39255
39223
  if (Array.isArray(value)) {
39256
39224
  this._error(new Error("Arrays are not supported."));
@@ -39266,7 +39234,7 @@ ${errorDetail}`);
39266
39234
  FormData2.prototype._trackLength = function(header, value, options) {
39267
39235
  var valueLength = 0;
39268
39236
  if (options.knownLength != null) {
39269
- valueLength += Number(options.knownLength);
39237
+ valueLength += +options.knownLength;
39270
39238
  } else if (Buffer.isBuffer(value)) {
39271
39239
  valueLength = value.length;
39272
39240
  } else if (typeof value === "string") {
@@ -39274,7 +39242,7 @@ ${errorDetail}`);
39274
39242
  }
39275
39243
  this._valueLength += valueLength;
39276
39244
  this._overheadLength += Buffer.byteLength(header) + FormData2.LINE_BREAK.length;
39277
- if (!value || !value.path && !(value.readable && hasOwn(value, "httpVersion")) && !(value instanceof Stream)) {
39245
+ if (!value || !value.path && !(value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) && !(value instanceof Stream)) {
39278
39246
  return;
39279
39247
  }
39280
39248
  if (!options.knownLength) {
@@ -39282,25 +39250,26 @@ ${errorDetail}`);
39282
39250
  }
39283
39251
  };
39284
39252
  FormData2.prototype._lengthRetriever = function(value, callback) {
39285
- if (hasOwn(value, "fd")) {
39253
+ if (Object.prototype.hasOwnProperty.call(value, "fd")) {
39286
39254
  if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
39287
39255
  callback(null, value.end + 1 - (value.start ? value.start : 0));
39288
39256
  } else {
39289
39257
  fs3.stat(value.path, function(err, stat) {
39258
+ var fileSize;
39290
39259
  if (err) {
39291
39260
  callback(err);
39292
39261
  return;
39293
39262
  }
39294
- var fileSize = stat.size - (value.start ? value.start : 0);
39263
+ fileSize = stat.size - (value.start ? value.start : 0);
39295
39264
  callback(null, fileSize);
39296
39265
  });
39297
39266
  }
39298
- } else if (hasOwn(value, "httpVersion")) {
39299
- callback(null, Number(value.headers["content-length"]));
39300
- } else if (hasOwn(value, "httpModule")) {
39267
+ } else if (Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
39268
+ callback(null, +value.headers["content-length"]);
39269
+ } else if (Object.prototype.hasOwnProperty.call(value, "httpModule")) {
39301
39270
  value.on("response", function(response) {
39302
39271
  value.pause();
39303
- callback(null, Number(response.headers["content-length"]));
39272
+ callback(null, +response.headers["content-length"]);
39304
39273
  });
39305
39274
  value.resume();
39306
39275
  } else {
@@ -39308,7 +39277,7 @@ ${errorDetail}`);
39308
39277
  }
39309
39278
  };
39310
39279
  FormData2.prototype._multiPartHeader = function(field, value, options) {
39311
- if (typeof options.header === "string") {
39280
+ if (typeof options.header == "string") {
39312
39281
  return options.header;
39313
39282
  }
39314
39283
  var contentDisposition = this._getContentDisposition(value, options);
@@ -39320,12 +39289,12 @@ ${errorDetail}`);
39320
39289
  // if no content type. allow it to be empty array
39321
39290
  "Content-Type": [].concat(contentType || [])
39322
39291
  };
39323
- if (typeof options.header === "object") {
39292
+ if (typeof options.header == "object") {
39324
39293
  populate(headers, options.header);
39325
39294
  }
39326
39295
  var header;
39327
39296
  for (var prop in headers) {
39328
- if (hasOwn(headers, prop)) {
39297
+ if (Object.prototype.hasOwnProperty.call(headers, prop)) {
39329
39298
  header = headers[prop];
39330
39299
  if (header == null) {
39331
39300
  continue;
@@ -39341,33 +39310,34 @@ ${errorDetail}`);
39341
39310
  return "--" + this.getBoundary() + FormData2.LINE_BREAK + contents + FormData2.LINE_BREAK;
39342
39311
  };
39343
39312
  FormData2.prototype._getContentDisposition = function(value, options) {
39344
- var filename;
39313
+ var filename, contentDisposition;
39345
39314
  if (typeof options.filepath === "string") {
39346
39315
  filename = path3.normalize(options.filepath).replace(/\\/g, "/");
39347
- } else if (options.filename || value && (value.name || value.path)) {
39348
- filename = path3.basename(options.filename || value && (value.name || value.path));
39349
- } else if (value && value.readable && hasOwn(value, "httpVersion")) {
39316
+ } else if (options.filename || value.name || value.path) {
39317
+ filename = path3.basename(options.filename || value.name || value.path);
39318
+ } else if (value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
39350
39319
  filename = path3.basename(value.client._httpMessage.path || "");
39351
39320
  }
39352
39321
  if (filename) {
39353
- return 'filename="' + filename + '"';
39322
+ contentDisposition = 'filename="' + filename + '"';
39354
39323
  }
39324
+ return contentDisposition;
39355
39325
  };
39356
39326
  FormData2.prototype._getContentType = function(value, options) {
39357
39327
  var contentType = options.contentType;
39358
- if (!contentType && value && value.name) {
39328
+ if (!contentType && value.name) {
39359
39329
  contentType = mime.lookup(value.name);
39360
39330
  }
39361
- if (!contentType && value && value.path) {
39331
+ if (!contentType && value.path) {
39362
39332
  contentType = mime.lookup(value.path);
39363
39333
  }
39364
- if (!contentType && value && value.readable && hasOwn(value, "httpVersion")) {
39334
+ if (!contentType && value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
39365
39335
  contentType = value.headers["content-type"];
39366
39336
  }
39367
39337
  if (!contentType && (options.filepath || options.filename)) {
39368
39338
  contentType = mime.lookup(options.filepath || options.filename);
39369
39339
  }
39370
- if (!contentType && value && typeof value === "object") {
39340
+ if (!contentType && typeof value == "object") {
39371
39341
  contentType = FormData2.DEFAULT_CONTENT_TYPE;
39372
39342
  }
39373
39343
  return contentType;
@@ -39391,16 +39361,13 @@ ${errorDetail}`);
39391
39361
  "content-type": "multipart/form-data; boundary=" + this.getBoundary()
39392
39362
  };
39393
39363
  for (header in userHeaders) {
39394
- if (hasOwn(userHeaders, header)) {
39364
+ if (Object.prototype.hasOwnProperty.call(userHeaders, header)) {
39395
39365
  formHeaders[header.toLowerCase()] = userHeaders[header];
39396
39366
  }
39397
39367
  }
39398
39368
  return formHeaders;
39399
39369
  };
39400
39370
  FormData2.prototype.setBoundary = function(boundary) {
39401
- if (typeof boundary !== "string") {
39402
- throw new TypeError("FormData boundary must be a string");
39403
- }
39404
39371
  this._boundary = boundary;
39405
39372
  };
39406
39373
  FormData2.prototype.getBoundary = function() {
@@ -39427,7 +39394,11 @@ ${errorDetail}`);
39427
39394
  return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
39428
39395
  };
39429
39396
  FormData2.prototype._generateBoundary = function() {
39430
- this._boundary = "--------------------------" + crypto7.randomBytes(12).toString("hex");
39397
+ var boundary = "--------------------------";
39398
+ for (var i2 = 0; i2 < 24; i2++) {
39399
+ boundary += Math.floor(Math.random() * 10).toString(16);
39400
+ }
39401
+ this._boundary = boundary;
39431
39402
  };
39432
39403
  FormData2.prototype.getLengthSync = function() {
39433
39404
  var knownLength = this._overheadLength + this._valueLength;
@@ -39467,25 +39438,23 @@ ${errorDetail}`);
39467
39438
  });
39468
39439
  };
39469
39440
  FormData2.prototype.submit = function(params, cb) {
39470
- var request3;
39471
- var options;
39472
- var defaults2 = { method: "post" };
39473
- if (typeof params === "string") {
39441
+ var request3, options, defaults = { method: "post" };
39442
+ if (typeof params == "string") {
39474
39443
  params = parseUrl(params);
39475
39444
  options = populate({
39476
39445
  port: params.port,
39477
39446
  path: params.pathname,
39478
39447
  host: params.hostname,
39479
39448
  protocol: params.protocol
39480
- }, defaults2);
39449
+ }, defaults);
39481
39450
  } else {
39482
- options = populate(params, defaults2);
39451
+ options = populate(params, defaults);
39483
39452
  if (!options.port) {
39484
- options.port = options.protocol === "https:" ? 443 : 80;
39453
+ options.port = options.protocol == "https:" ? 443 : 80;
39485
39454
  }
39486
39455
  }
39487
39456
  options.headers = this.getHeaders(params.headers);
39488
- if (options.protocol === "https:") {
39457
+ if (options.protocol == "https:") {
39489
39458
  request3 = https4.request(options);
39490
39459
  } else {
39491
39460
  request3 = http4.request(options);
@@ -39523,8 +39492,7 @@ ${errorDetail}`);
39523
39492
  FormData2.prototype.toString = function() {
39524
39493
  return "[object FormData]";
39525
39494
  };
39526
- setToStringTag(FormData2.prototype, "FormData");
39527
- module22.exports = FormData2;
39495
+ setToStringTag(FormData2, "FormData");
39528
39496
  }
39529
39497
  });
39530
39498
  function formDataPolicy() {
@@ -39601,7 +39569,7 @@ ${errorDetail}`);
39601
39569
  var require_common2 = __commonJS2({
39602
39570
  "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js"(exports22, module22) {
39603
39571
  "use strict";
39604
- function setup(env2) {
39572
+ function setup(env) {
39605
39573
  createDebug.debug = createDebug;
39606
39574
  createDebug.default = createDebug;
39607
39575
  createDebug.coerce = coerce;
@@ -39610,8 +39578,8 @@ ${errorDetail}`);
39610
39578
  createDebug.enabled = enabled2;
39611
39579
  createDebug.humanize = require_ms();
39612
39580
  createDebug.destroy = destroy2;
39613
- Object.keys(env2).forEach((key) => {
39614
- createDebug[key] = env2[key];
39581
+ Object.keys(env).forEach((key) => {
39582
+ createDebug[key] = env[key];
39615
39583
  });
39616
39584
  createDebug.names = [];
39617
39585
  createDebug.skips = [];
@@ -39646,19 +39614,19 @@ ${errorDetail}`);
39646
39614
  args.unshift("%O");
39647
39615
  }
39648
39616
  let index = 0;
39649
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format) => {
39650
- if (match2 === "%%") {
39617
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
39618
+ if (match === "%%") {
39651
39619
  return "%";
39652
39620
  }
39653
39621
  index++;
39654
39622
  const formatter = createDebug.formatters[format];
39655
39623
  if (typeof formatter === "function") {
39656
39624
  const val = args[index];
39657
- match2 = formatter.call(self2, val);
39625
+ match = formatter.call(self2, val);
39658
39626
  args.splice(index, 1);
39659
39627
  index--;
39660
39628
  }
39661
- return match2;
39629
+ return match;
39662
39630
  });
39663
39631
  createDebug.formatArgs.call(self2, args);
39664
39632
  const logFn = self2.log || createDebug.log;
@@ -39892,12 +39860,12 @@ ${errorDetail}`);
39892
39860
  args.splice(1, 0, c2, "color: inherit");
39893
39861
  let index = 0;
39894
39862
  let lastC = 0;
39895
- args[0].replace(/%[a-zA-Z%]/g, (match2) => {
39896
- if (match2 === "%%") {
39863
+ args[0].replace(/%[a-zA-Z%]/g, (match) => {
39864
+ if (match === "%%") {
39897
39865
  return;
39898
39866
  }
39899
39867
  index++;
39900
- if (match2 === "%c") {
39868
+ if (match === "%c") {
39901
39869
  lastC = index;
39902
39870
  }
39903
39871
  });
@@ -39946,7 +39914,7 @@ ${errorDetail}`);
39946
39914
  var require_node2 = __commonJS2({
39947
39915
  "../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js"(exports22, module22) {
39948
39916
  "use strict";
39949
- var tty2 = __require("tty");
39917
+ var tty = __require("tty");
39950
39918
  var util2 = __require("util");
39951
39919
  exports22.init = init3;
39952
39920
  exports22.log = log4;
@@ -39961,8 +39929,8 @@ ${errorDetail}`);
39961
39929
  );
39962
39930
  exports22.colors = [6, 2, 3, 4, 5, 1];
39963
39931
  try {
39964
- const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
39965
- if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
39932
+ const supportsColor = require_supports_color();
39933
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
39966
39934
  exports22.colors = [
39967
39935
  20,
39968
39936
  21,
@@ -40064,7 +40032,7 @@ ${errorDetail}`);
40064
40032
  return obj;
40065
40033
  }, {});
40066
40034
  function useColors() {
40067
- return "colors" in exports22.inspectOpts ? Boolean(exports22.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
40035
+ return "colors" in exports22.inspectOpts ? Boolean(exports22.inspectOpts.colors) : tty.isatty(process.stderr.fd);
40068
40036
  }
40069
40037
  function formatArgs(args) {
40070
40038
  const { namespace: name6, useColors: useColors2 } = this;
@@ -44659,15 +44627,15 @@ ${errorDetail}`);
44659
44627
  */
44660
44628
  getUrlComponents() {
44661
44629
  const regEx = RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?");
44662
- const match2 = this.urlString.match(regEx);
44663
- if (!match2) {
44630
+ const match = this.urlString.match(regEx);
44631
+ if (!match) {
44664
44632
  throw createClientConfigurationError(urlParseError);
44665
44633
  }
44666
44634
  const urlComponents = {
44667
- Protocol: match2[1],
44668
- HostNameAndPort: match2[4],
44669
- AbsolutePath: match2[5],
44670
- QueryString: match2[7]
44635
+ Protocol: match[1],
44636
+ HostNameAndPort: match[4],
44637
+ AbsolutePath: match[5],
44638
+ QueryString: match[7]
44671
44639
  };
44672
44640
  let pathSegments = urlComponents.AbsolutePath.split("/");
44673
44641
  pathSegments = pathSegments.filter((val) => val && val.length > 0);
@@ -44679,11 +44647,11 @@ ${errorDetail}`);
44679
44647
  }
44680
44648
  static getDomainFromUrl(url2) {
44681
44649
  const regEx = RegExp("^([^:/?#]+://)?([^/?#]*)");
44682
- const match2 = url2.match(regEx);
44683
- if (!match2) {
44650
+ const match = url2.match(regEx);
44651
+ if (!match) {
44684
44652
  throw createClientConfigurationError(urlParseError);
44685
44653
  }
44686
- return match2[2];
44654
+ return match[2];
44687
44655
  }
44688
44656
  static getAbsoluteUrl(relativeUrl, baseUrl) {
44689
44657
  if (relativeUrl[0] === Constants.FORWARD_SLASH) {
@@ -46280,7 +46248,7 @@ ${errorDetail}`);
46280
46248
  this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId);
46281
46249
  const instanceDiscoveryEndpoint = `${Constants.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`;
46282
46250
  const options = {};
46283
- let match2 = null;
46251
+ let match = null;
46284
46252
  try {
46285
46253
  const response = await this.networkInterface.sendGetRequestAsync(instanceDiscoveryEndpoint, options);
46286
46254
  let typedResponseBody;
@@ -46305,7 +46273,7 @@ ${errorDetail}`);
46305
46273
  return null;
46306
46274
  }
46307
46275
  this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request.");
46308
- match2 = getCloudDiscoveryMetadataFromNetworkResponse(metadata, this.hostnameAndPort);
46276
+ match = getCloudDiscoveryMetadataFromNetworkResponse(metadata, this.hostnameAndPort);
46309
46277
  } catch (error44) {
46310
46278
  if (error44 instanceof AuthError) {
46311
46279
  this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
@@ -46319,12 +46287,12 @@ Error Description: ${typedError.message}`);
46319
46287
  }
46320
46288
  return null;
46321
46289
  }
46322
- if (!match2) {
46290
+ if (!match) {
46323
46291
  this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request.");
46324
46292
  this.logger.verbose("Creating custom Authority for custom domain scenario.");
46325
- match2 = _Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
46293
+ match = _Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
46326
46294
  }
46327
- return match2;
46295
+ return match;
46328
46296
  }
46329
46297
  /**
46330
46298
  * Helper function to determine if this host is included in the knownAuthorities config option
@@ -47242,11 +47210,11 @@ Error Description: ${typedError.message}`);
47242
47210
  account.clientInfo = accountDetails.clientInfo;
47243
47211
  account.homeAccountId = accountDetails.homeAccountId;
47244
47212
  account.nativeAccountId = accountDetails.nativeAccountId;
47245
- const env2 = accountDetails.environment || authority && authority.getPreferredCache();
47246
- if (!env2) {
47213
+ const env = accountDetails.environment || authority && authority.getPreferredCache();
47214
+ if (!env) {
47247
47215
  throw createClientAuthError(invalidCacheEnvironment);
47248
47216
  }
47249
- account.environment = env2;
47217
+ account.environment = env;
47250
47218
  account.realm = clientInfo?.utid || getTenantIdFromIdTokenClaims(accountDetails.idTokenClaims) || "";
47251
47219
  account.localAccountId = clientInfo?.uid || accountDetails.idTokenClaims.oid || accountDetails.idTokenClaims.sub || "";
47252
47220
  const preferredUsername = accountDetails.idTokenClaims.preferred_username || accountDetails.idTokenClaims.upn;
@@ -49757,15 +49725,15 @@ ${serverError}`);
49757
49725
  * @param authority
49758
49726
  */
49759
49727
  generateCacheRecord(serverTokenResponse, authority, reqTimestamp, request3, idTokenClaims, userAssertionHash, authCodePayload) {
49760
- const env2 = authority.getPreferredCache();
49761
- if (!env2) {
49728
+ const env = authority.getPreferredCache();
49729
+ if (!env) {
49762
49730
  throw createClientAuthError(invalidCacheEnvironment);
49763
49731
  }
49764
49732
  const claimsTenantId = getTenantIdFromIdTokenClaims(idTokenClaims);
49765
49733
  let cachedIdToken;
49766
49734
  let cachedAccount;
49767
49735
  if (serverTokenResponse.id_token && !!idTokenClaims) {
49768
- cachedIdToken = createIdTokenEntity(this.homeAccountIdentifier, env2, serverTokenResponse.id_token, this.clientId, claimsTenantId || "");
49736
+ cachedIdToken = createIdTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.id_token, this.clientId, claimsTenantId || "");
49769
49737
  cachedAccount = buildAccountToCache(
49770
49738
  this.cacheStorage,
49771
49739
  authority,
@@ -49773,7 +49741,7 @@ ${serverError}`);
49773
49741
  idTokenClaims,
49774
49742
  this.cryptoObj.base64Decode,
49775
49743
  serverTokenResponse.client_info,
49776
- env2,
49744
+ env,
49777
49745
  claimsTenantId,
49778
49746
  authCodePayload,
49779
49747
  void 0,
@@ -49790,7 +49758,7 @@ ${serverError}`);
49790
49758
  const tokenExpirationSeconds = reqTimestamp + expiresIn;
49791
49759
  const extendedTokenExpirationSeconds = tokenExpirationSeconds + extExpiresIn;
49792
49760
  const refreshOnSeconds = refreshIn && refreshIn > 0 ? reqTimestamp + refreshIn : void 0;
49793
- cachedAccessToken = createAccessTokenEntity(this.homeAccountIdentifier, env2, serverTokenResponse.access_token, this.clientId, claimsTenantId || authority.tenant || "", responseScopes.printScopes(), tokenExpirationSeconds, extendedTokenExpirationSeconds, this.cryptoObj.base64Decode, refreshOnSeconds, serverTokenResponse.token_type, userAssertionHash, serverTokenResponse.key_id, request3.claims, request3.requestedClaimsHash);
49761
+ cachedAccessToken = createAccessTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.access_token, this.clientId, claimsTenantId || authority.tenant || "", responseScopes.printScopes(), tokenExpirationSeconds, extendedTokenExpirationSeconds, this.cryptoObj.base64Decode, refreshOnSeconds, serverTokenResponse.token_type, userAssertionHash, serverTokenResponse.key_id, request3.claims, request3.requestedClaimsHash);
49794
49762
  }
49795
49763
  let cachedRefreshToken = null;
49796
49764
  if (serverTokenResponse.refresh_token) {
@@ -49799,13 +49767,13 @@ ${serverError}`);
49799
49767
  const rtExpiresIn = typeof serverTokenResponse.refresh_token_expires_in === "string" ? parseInt(serverTokenResponse.refresh_token_expires_in, 10) : serverTokenResponse.refresh_token_expires_in;
49800
49768
  rtExpiresOn = reqTimestamp + rtExpiresIn;
49801
49769
  }
49802
- cachedRefreshToken = createRefreshTokenEntity(this.homeAccountIdentifier, env2, serverTokenResponse.refresh_token, this.clientId, serverTokenResponse.foci, userAssertionHash, rtExpiresOn);
49770
+ cachedRefreshToken = createRefreshTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.refresh_token, this.clientId, serverTokenResponse.foci, userAssertionHash, rtExpiresOn);
49803
49771
  }
49804
49772
  let cachedAppMetadata = null;
49805
49773
  if (serverTokenResponse.foci) {
49806
49774
  cachedAppMetadata = {
49807
49775
  clientId: this.clientId,
49808
- environment: env2,
49776
+ environment: env,
49809
49777
  familyId: serverTokenResponse.foci
49810
49778
  };
49811
49779
  }
@@ -49831,11 +49799,11 @@ ${serverError}`);
49831
49799
  if (cacheRecord.accessToken) {
49832
49800
  if (cacheRecord.accessToken.tokenType === AuthenticationScheme.POP && !request3.popKid) {
49833
49801
  const popTokenGenerator = new PopTokenGenerator(cryptoObj);
49834
- const { secret: secret2, keyId } = cacheRecord.accessToken;
49802
+ const { secret, keyId } = cacheRecord.accessToken;
49835
49803
  if (!keyId) {
49836
49804
  throw createClientAuthError(keyIdMissing);
49837
49805
  }
49838
- accessToken = await popTokenGenerator.signPopToken(secret2, keyId, request3);
49806
+ accessToken = await popTokenGenerator.signPopToken(secret, keyId, request3);
49839
49807
  } else {
49840
49808
  accessToken = cacheRecord.accessToken.secret;
49841
49809
  }
@@ -52917,17 +52885,17 @@ Headers: ${JSON.stringify(headers)}`
52917
52885
  return thing;
52918
52886
  }
52919
52887
  function createHmacSigner(bits) {
52920
- return function sign2(thing, secret2) {
52921
- checkIsSecretKey(secret2);
52888
+ return function sign2(thing, secret) {
52889
+ checkIsSecretKey(secret);
52922
52890
  thing = normalizeInput(thing);
52923
- var hmac = crypto7.createHmac("sha" + bits, secret2);
52891
+ var hmac = crypto7.createHmac("sha" + bits, secret);
52924
52892
  var sig = (hmac.update(thing), hmac.digest("base64"));
52925
52893
  return fromBase64(sig);
52926
52894
  };
52927
52895
  }
52928
52896
  function createHmacVerifier(bits) {
52929
- return function verify(thing, signature, secret2) {
52930
- var computedSig = createHmacSigner(bits)(thing, secret2);
52897
+ return function verify(thing, signature, secret) {
52898
+ var computedSig = createHmacSigner(bits)(thing, secret);
52931
52899
  return bufferEqual(Buffer22.from(signature), Buffer22.from(computedSig));
52932
52900
  };
52933
52901
  }
@@ -53018,11 +52986,11 @@ Headers: ${JSON.stringify(headers)}`
53018
52986
  es: createECDSAVerifer,
53019
52987
  none: createNoneVerifier
53020
52988
  };
53021
- var match2 = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);
53022
- if (!match2)
52989
+ var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);
52990
+ if (!match)
53023
52991
  throw typeError(MSG_INVALID_ALGORITHM, algorithm);
53024
- var algo = (match2[1] || match2[3]).toLowerCase();
53025
- var bits = match2[2];
52992
+ var algo = (match[1] || match[3]).toLowerCase();
52993
+ var bits = match[2];
53026
52994
  return {
53027
52995
  sign: signerFactories[algo](bits),
53028
52996
  verify: verifierFactories[algo](bits)
@@ -53072,8 +53040,8 @@ Headers: ${JSON.stringify(headers)}`
53072
53040
  return util2.format("%s.%s", securedInput, signature);
53073
53041
  }
53074
53042
  function SignStream(opts) {
53075
- var secret2 = opts.secret || opts.privateKey || opts.key;
53076
- var secretStream = new DataStream(secret2);
53043
+ var secret = opts.secret || opts.privateKey || opts.key;
53044
+ var secretStream = new DataStream(secret);
53077
53045
  this.readable = true;
53078
53046
  this.header = opts.header;
53079
53047
  this.encoding = opts.encoding;
@@ -53659,8 +53627,8 @@ Headers: ${JSON.stringify(headers)}`
53659
53627
  throw new Error("invalid increment argument: identifier is empty");
53660
53628
  }
53661
53629
  if (identifier) {
53662
- const match2 = `-${identifier}`.match(this.options.loose ? re3[t2.PRERELEASELOOSE] : re3[t2.PRERELEASE]);
53663
- if (!match2 || match2[1] !== identifier) {
53630
+ const match = `-${identifier}`.match(this.options.loose ? re3[t2.PRERELEASELOOSE] : re3[t2.PRERELEASE]);
53631
+ if (!match || match[1] !== identifier) {
53664
53632
  throw new Error(`invalid identifier: ${identifier}`);
53665
53633
  }
53666
53634
  }
@@ -54070,28 +54038,28 @@ Headers: ${JSON.stringify(headers)}`
54070
54038
  return null;
54071
54039
  }
54072
54040
  options = options || {};
54073
- let match2 = null;
54041
+ let match = null;
54074
54042
  if (!options.rtl) {
54075
- match2 = version5.match(options.includePrerelease ? re3[t2.COERCEFULL] : re3[t2.COERCE]);
54043
+ match = version5.match(options.includePrerelease ? re3[t2.COERCEFULL] : re3[t2.COERCE]);
54076
54044
  } else {
54077
54045
  const coerceRtlRegex = options.includePrerelease ? re3[t2.COERCERTLFULL] : re3[t2.COERCERTL];
54078
54046
  let next;
54079
- while ((next = coerceRtlRegex.exec(version5)) && (!match2 || match2.index + match2[0].length !== version5.length)) {
54080
- if (!match2 || next.index + next[0].length !== match2.index + match2[0].length) {
54081
- match2 = next;
54047
+ while ((next = coerceRtlRegex.exec(version5)) && (!match || match.index + match[0].length !== version5.length)) {
54048
+ if (!match || next.index + next[0].length !== match.index + match[0].length) {
54049
+ match = next;
54082
54050
  }
54083
54051
  coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
54084
54052
  }
54085
54053
  coerceRtlRegex.lastIndex = -1;
54086
54054
  }
54087
- if (match2 === null) {
54055
+ if (match === null) {
54088
54056
  return null;
54089
54057
  }
54090
- const major2 = match2[2];
54091
- const minor = match2[3] || "0";
54092
- const patch = match2[4] || "0";
54093
- const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "";
54094
- const build = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
54058
+ const major2 = match[2];
54059
+ const minor = match[3] || "0";
54060
+ const patch = match[4] || "0";
54061
+ const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
54062
+ const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
54095
54063
  return parse5(`${major2}.${minor}.${patch}${prerelease}${build}`, options);
54096
54064
  };
54097
54065
  module22.exports = coerce;
@@ -55396,12 +55364,12 @@ Headers: ${JSON.stringify(headers)}`
55396
55364
  if (options.audience) {
55397
55365
  const audiences = Array.isArray(options.audience) ? options.audience : [options.audience];
55398
55366
  const target = Array.isArray(payload.aud) ? payload.aud : [payload.aud];
55399
- const match2 = target.some(function(targetAudience) {
55367
+ const match = target.some(function(targetAudience) {
55400
55368
  return audiences.some(function(audience) {
55401
55369
  return audience instanceof RegExp ? audience.test(targetAudience) : audience === targetAudience;
55402
55370
  });
55403
55371
  });
55404
- if (!match2) {
55372
+ if (!match) {
55405
55373
  return done(new JsonWebTokenError("jwt audience invalid. expected: " + audiences.join(" or ")));
55406
55374
  }
55407
55375
  }
@@ -57955,13 +57923,13 @@ Headers: ${JSON.stringify(headers)}`
57955
57923
  if (secretFileSize > AZURE_ARC_SECRET_FILE_MAX_SIZE_BYTES) {
57956
57924
  throw createManagedIdentityError(invalidSecret);
57957
57925
  }
57958
- let secret2;
57926
+ let secret;
57959
57927
  try {
57960
- secret2 = (0, import_fs2.readFileSync)(secretFilePath, "utf-8");
57928
+ secret = (0, import_fs2.readFileSync)(secretFilePath, "utf-8");
57961
57929
  } catch (e2) {
57962
57930
  throw createManagedIdentityError(unableToReadSecretFile);
57963
57931
  }
57964
- const authHeaderValue = `Basic ${secret2}`;
57932
+ const authHeaderValue = `Basic ${secret}`;
57965
57933
  this.logger.info(`[Managed Identity] Adding authorization header to the request.`);
57966
57934
  networkRequest.headers[AUTHORIZATION_HEADER_NAME] = authHeaderValue;
57967
57935
  try {
@@ -58391,8 +58359,8 @@ Headers: ${JSON.stringify(headers)}`
58391
58359
  logger5.info(`${msiName}: Unavailable. Multiple scopes are not supported.`);
58392
58360
  return false;
58393
58361
  }
58394
- const env2 = process.env;
58395
- const result = Boolean(env2.MSI_ENDPOINT && env2.MSI_SECRET);
58362
+ const env = process.env;
58363
+ const result = Boolean(env.MSI_ENDPOINT && env.MSI_SECRET);
58396
58364
  if (!result) {
58397
58365
  logger5.info(`${msiName}: Unavailable. The environment variables needed are: MSI_ENDPOINT and MSI_SECRET.`);
58398
58366
  }
@@ -58464,8 +58432,8 @@ Headers: ${JSON.stringify(headers)}`
58464
58432
  logger6.info(`${msiName2}: Unavailable. Multiple scopes are not supported.`);
58465
58433
  return false;
58466
58434
  }
58467
- const env2 = process.env;
58468
- const result = Boolean(env2.IDENTITY_ENDPOINT && env2.IDENTITY_HEADER);
58435
+ const env = process.env;
58436
+ const result = Boolean(env.IDENTITY_ENDPOINT && env.IDENTITY_HEADER);
58469
58437
  if (!result) {
58470
58438
  logger6.info(`${msiName2}: Unavailable. The environment variables needed are: IDENTITY_ENDPOINT and IDENTITY_HEADER.`);
58471
58439
  }
@@ -58738,8 +58706,8 @@ Headers: ${JSON.stringify(headers)}`
58738
58706
  logger9.info(`${msiName5}: Unavailable. Multiple scopes are not supported.`);
58739
58707
  return false;
58740
58708
  }
58741
- const env2 = process.env;
58742
- const result = Boolean(env2.IDENTITY_ENDPOINT && env2.IDENTITY_HEADER && env2.IDENTITY_SERVER_THUMBPRINT);
58709
+ const env = process.env;
58710
+ const result = Boolean(env.IDENTITY_ENDPOINT && env.IDENTITY_HEADER && env.IDENTITY_SERVER_THUMBPRINT);
58743
58711
  if (!result) {
58744
58712
  logger9.info(`${msiName5}: Unavailable. The environment variables needed are: IDENTITY_ENDPOINT, IDENTITY_HEADER and IDENTITY_SERVER_THUMBPRINT`);
58745
58713
  }
@@ -59532,8 +59500,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
59532
59500
  return {
59533
59501
  name: "tokenExchangeMsi",
59534
59502
  async isAvailable({ clientId }) {
59535
- const env2 = process.env;
59536
- const result = Boolean((clientId || env2.AZURE_CLIENT_ID) && env2.AZURE_TENANT_ID && process.env.AZURE_FEDERATED_TOKEN_FILE);
59503
+ const env = process.env;
59504
+ const result = Boolean((clientId || env.AZURE_CLIENT_ID) && env.AZURE_TENANT_ID && process.env.AZURE_FEDERATED_TOKEN_FILE);
59537
59505
  if (!result) {
59538
59506
  logger14.info(`${msiName7}: Unavailable. The environment variables needed are: AZURE_CLIENT_ID (or the client ID sent through the parameters), AZURE_TENANT_ID and AZURE_FEDERATED_TOKEN_FILE`);
59539
59507
  }
@@ -60482,13 +60450,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
60482
60450
  const x5c = this.sendCertificateChain ? certificateContents : void 0;
60483
60451
  const certificatePattern = /(-+BEGIN CERTIFICATE-+)(\n\r?|\r\n?)([A-Za-z0-9+/\n\r]+=*)(\n\r?|\r\n?)(-+END CERTIFICATE-+)/g;
60484
60452
  const publicKeys = [];
60485
- let match2;
60453
+ let match;
60486
60454
  do {
60487
- match2 = certificatePattern.exec(certificateContents);
60488
- if (match2) {
60489
- publicKeys.push(match2[3]);
60455
+ match = certificatePattern.exec(certificateContents);
60456
+ if (match) {
60457
+ publicKeys.push(match[3]);
60490
60458
  }
60491
- } while (match2);
60459
+ } while (match);
60492
60460
  if (publicKeys.length === 0) {
60493
60461
  throw new Error("The file at the specified path does not contain a PEM-encoded certificate.");
60494
60462
  }
@@ -61136,14 +61104,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
61136
61104
  var require_is_wsl = __commonJS2({
61137
61105
  "../../node_modules/.pnpm/is-wsl@2.2.0/node_modules/is-wsl/index.js"(exports22, module22) {
61138
61106
  "use strict";
61139
- var os5 = __require("os");
61107
+ var os4 = __require("os");
61140
61108
  var fs3 = __require("fs");
61141
61109
  var isDocker = require_is_docker();
61142
61110
  var isWsl = () => {
61143
61111
  if (process.platform !== "linux") {
61144
61112
  return false;
61145
61113
  }
61146
- if (os5.release().toLowerCase().includes("microsoft")) {
61114
+ if (os4.release().toLowerCase().includes("microsoft")) {
61147
61115
  if (isDocker()) {
61148
61116
  return false;
61149
61117
  }
@@ -61184,7 +61152,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
61184
61152
  }
61185
61153
  });
61186
61154
  var require_open = __commonJS2({
61187
- "../../node_modules/.pnpm/open@8.4.2/node_modules/open/index.js"(exports22, module22) {
61155
+ "../../node_modules/.pnpm/open@8.4.0/node_modules/open/index.js"(exports22, module22) {
61188
61156
  "use strict";
61189
61157
  var path3 = __require("path");
61190
61158
  var childProcess2 = __require("child_process");
@@ -61194,21 +61162,6 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
61194
61162
  var defineLazyProperty = require_define_lazy_prop();
61195
61163
  var localXdgOpenPath = path3.join(__dirname, "xdg-open");
61196
61164
  var { platform, arch: arch2 } = process;
61197
- var hasContainerEnv = () => {
61198
- try {
61199
- fs3.statSync("/run/.containerenv");
61200
- return true;
61201
- } catch {
61202
- return false;
61203
- }
61204
- };
61205
- var cachedResult;
61206
- function isInsideContainer() {
61207
- if (cachedResult === void 0) {
61208
- cachedResult = hasContainerEnv() || isDocker();
61209
- }
61210
- return cachedResult;
61211
- }
61212
61165
  var getWslDrivesMountPoint = /* @__PURE__ */ (() => {
61213
61166
  const defaultMountPoint = "/mnt/";
61214
61167
  let mountPoint;
@@ -61289,7 +61242,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
61289
61242
  if (app) {
61290
61243
  cliArguments.push("-a", app);
61291
61244
  }
61292
- } else if (platform === "win32" || isWsl && !isInsideContainer() && !app) {
61245
+ } else if (platform === "win32" || isWsl && !isDocker()) {
61293
61246
  const mountPoint = await getWslDrivesMountPoint();
61294
61247
  command = isWsl ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
61295
61248
  cliArguments.push(
@@ -61352,7 +61305,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
61352
61305
  return new Promise((resolve, reject) => {
61353
61306
  subprocess.once("error", reject);
61354
61307
  subprocess.once("close", (exitCode) => {
61355
- if (!options.allowNonzeroExitCode && exitCode > 0) {
61308
+ if (options.allowNonzeroExitCode && exitCode > 0) {
61356
61309
  reject(new Error(`Exited with code ${exitCode}`));
61357
61310
  return;
61358
61311
  }
@@ -61887,13 +61840,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
61887
61840
  }
61888
61841
  const certificatePattern = /(-+BEGIN CERTIFICATE-+)(\n\r?|\r\n?)([A-Za-z0-9+/\n\r]+=*)(\n\r?|\r\n?)(-+END CERTIFICATE-+)/g;
61889
61842
  const publicKeys = [];
61890
- let match2;
61843
+ let match;
61891
61844
  do {
61892
- match2 = certificatePattern.exec(certificateParts.certificateContents);
61893
- if (match2) {
61894
- publicKeys.push(match2[3]);
61845
+ match = certificatePattern.exec(certificateParts.certificateContents);
61846
+ if (match) {
61847
+ publicKeys.push(match[3]);
61895
61848
  }
61896
- } while (match2);
61849
+ } while (match);
61897
61850
  if (publicKeys.length === 0) {
61898
61851
  throw new Error("The file at the specified path does not contain a PEM-encoded certificate.");
61899
61852
  }
@@ -62600,16 +62553,16 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
62600
62553
  if (sprintf_cache[fmt]) {
62601
62554
  return sprintf_cache[fmt];
62602
62555
  }
62603
- var _fmt = fmt, match2, parse_tree = [], arg_names = 0;
62556
+ var _fmt = fmt, match, parse_tree = [], arg_names = 0;
62604
62557
  while (_fmt) {
62605
- if ((match2 = re3.text.exec(_fmt)) !== null) {
62606
- parse_tree.push(match2[0]);
62607
- } else if ((match2 = re3.modulo.exec(_fmt)) !== null) {
62558
+ if ((match = re3.text.exec(_fmt)) !== null) {
62559
+ parse_tree.push(match[0]);
62560
+ } else if ((match = re3.modulo.exec(_fmt)) !== null) {
62608
62561
  parse_tree.push("%");
62609
- } else if ((match2 = re3.placeholder.exec(_fmt)) !== null) {
62610
- if (match2[2]) {
62562
+ } else if ((match = re3.placeholder.exec(_fmt)) !== null) {
62563
+ if (match[2]) {
62611
62564
  arg_names |= 1;
62612
- var field_list = [], replacement_field = match2[2], field_match = [];
62565
+ var field_list = [], replacement_field = match[2], field_match = [];
62613
62566
  if ((field_match = re3.key.exec(replacement_field)) !== null) {
62614
62567
  field_list.push(field_match[1]);
62615
62568
  while ((replacement_field = replacement_field.substring(field_match[0].length)) !== "") {
@@ -62624,7 +62577,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
62624
62577
  } else {
62625
62578
  throw new SyntaxError("[sprintf] failed to parse named argument key");
62626
62579
  }
62627
- match2[2] = field_list;
62580
+ match[2] = field_list;
62628
62581
  } else {
62629
62582
  arg_names |= 2;
62630
62583
  }
@@ -62633,21 +62586,21 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
62633
62586
  }
62634
62587
  parse_tree.push(
62635
62588
  {
62636
- placeholder: match2[0],
62637
- param_no: match2[1],
62638
- keys: match2[2],
62639
- sign: match2[3],
62640
- pad_char: match2[4],
62641
- align: match2[5],
62642
- width: match2[6],
62643
- precision: match2[7],
62644
- type: match2[8]
62589
+ placeholder: match[0],
62590
+ param_no: match[1],
62591
+ keys: match[2],
62592
+ sign: match[3],
62593
+ pad_char: match[4],
62594
+ align: match[5],
62595
+ width: match[6],
62596
+ precision: match[7],
62597
+ type: match[8]
62645
62598
  }
62646
62599
  );
62647
62600
  } else {
62648
62601
  throw new SyntaxError("[sprintf] unexpected placeholder");
62649
62602
  }
62650
- _fmt = _fmt.substring(match2[0].length);
62603
+ _fmt = _fmt.substring(match[0].length);
62651
62604
  }
62652
62605
  return sprintf_cache[fmt] = parse_tree;
62653
62606
  }
@@ -66259,7 +66212,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
66259
66212
  var require_end_of_stream = __commonJS2({
66260
66213
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports22, module22) {
66261
66214
  "use strict";
66262
- var process3 = require_process();
66215
+ var process2 = require_process();
66263
66216
  var { AbortError: AbortError3, codes } = require_errors3();
66264
66217
  var { ERR_INVALID_ARG_TYPE, ERR_STREAM_PREMATURE_CLOSE } = codes;
66265
66218
  var { kEmptyObject, once } = require_util();
@@ -66396,17 +66349,17 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
66396
66349
  }
66397
66350
  stream.on("close", onclose);
66398
66351
  if (closed) {
66399
- process3.nextTick(onclose);
66352
+ process2.nextTick(onclose);
66400
66353
  } else if (wState !== null && wState !== void 0 && wState.errorEmitted || rState !== null && rState !== void 0 && rState.errorEmitted) {
66401
66354
  if (!willEmitClose) {
66402
- process3.nextTick(onclosed);
66355
+ process2.nextTick(onclosed);
66403
66356
  }
66404
66357
  } else if (!readable && (!willEmitClose || isReadable(stream)) && (writableFinished || isWritable(stream) === false)) {
66405
- process3.nextTick(onclosed);
66358
+ process2.nextTick(onclosed);
66406
66359
  } else if (!writable && (!willEmitClose || isWritable(stream)) && (readableFinished || isReadable(stream) === false)) {
66407
- process3.nextTick(onclosed);
66360
+ process2.nextTick(onclosed);
66408
66361
  } else if (rState && stream.req && stream.aborted) {
66409
- process3.nextTick(onclosed);
66362
+ process2.nextTick(onclosed);
66410
66363
  }
66411
66364
  const cleanup = () => {
66412
66365
  callback = nop;
@@ -66435,7 +66388,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
66435
66388
  );
66436
66389
  };
66437
66390
  if (options.signal.aborted) {
66438
- process3.nextTick(abort);
66391
+ process2.nextTick(abort);
66439
66392
  } else {
66440
66393
  const originalCallback = callback;
66441
66394
  callback = once((...args) => {
@@ -66461,7 +66414,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
66461
66414
  );
66462
66415
  };
66463
66416
  if (options.signal.aborted) {
66464
- process3.nextTick(abort);
66417
+ process2.nextTick(abort);
66465
66418
  } else {
66466
66419
  const originalCallback = callback;
66467
66420
  callback = once((...args) => {
@@ -66473,7 +66426,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
66473
66426
  }
66474
66427
  const resolverFn = (...args) => {
66475
66428
  if (!isAborted) {
66476
- process3.nextTick(() => callback.apply(stream, args));
66429
+ process2.nextTick(() => callback.apply(stream, args));
66477
66430
  }
66478
66431
  };
66479
66432
  PromisePrototypeThen(stream[kIsClosedPromise].promise, resolverFn, resolverFn);
@@ -66509,7 +66462,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
66509
66462
  var require_destroy = __commonJS2({
66510
66463
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports22, module22) {
66511
66464
  "use strict";
66512
- var process3 = require_process();
66465
+ var process2 = require_process();
66513
66466
  var {
66514
66467
  aggregateTwoErrors,
66515
66468
  codes: { ERR_MULTIPLE_CALLBACK },
@@ -66576,9 +66529,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
66576
66529
  cb(err2);
66577
66530
  }
66578
66531
  if (err2) {
66579
- process3.nextTick(emitErrorCloseNT, self2, err2);
66532
+ process2.nextTick(emitErrorCloseNT, self2, err2);
66580
66533
  } else {
66581
- process3.nextTick(emitCloseNT, self2);
66534
+ process2.nextTick(emitCloseNT, self2);
66582
66535
  }
66583
66536
  }
66584
66537
  try {
@@ -66663,7 +66616,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
66663
66616
  r2.errored = err;
66664
66617
  }
66665
66618
  if (sync) {
66666
- process3.nextTick(emitErrorNT, stream, err);
66619
+ process2.nextTick(emitErrorNT, stream, err);
66667
66620
  } else {
66668
66621
  emitErrorNT(stream, err);
66669
66622
  }
@@ -66685,7 +66638,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
66685
66638
  if (stream.listenerCount(kConstruct) > 1) {
66686
66639
  return;
66687
66640
  }
66688
- process3.nextTick(constructNT, stream);
66641
+ process2.nextTick(constructNT, stream);
66689
66642
  }
66690
66643
  function constructNT(stream) {
66691
66644
  let called = false;
@@ -66709,15 +66662,15 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
66709
66662
  } else if (err) {
66710
66663
  errorOrDestroy(stream, err, true);
66711
66664
  } else {
66712
- process3.nextTick(emitConstructNT, stream);
66665
+ process2.nextTick(emitConstructNT, stream);
66713
66666
  }
66714
66667
  }
66715
66668
  try {
66716
66669
  stream._construct((err) => {
66717
- process3.nextTick(onConstruct, err);
66670
+ process2.nextTick(onConstruct, err);
66718
66671
  });
66719
66672
  } catch (err) {
66720
- process3.nextTick(onConstruct, err);
66673
+ process2.nextTick(onConstruct, err);
66721
66674
  }
66722
66675
  }
66723
66676
  function emitConstructNT(stream) {
@@ -66731,7 +66684,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
66731
66684
  }
66732
66685
  function emitErrorCloseLegacy(stream, err) {
66733
66686
  stream.emit("error", err);
66734
- process3.nextTick(emitCloseLegacy, stream);
66687
+ process2.nextTick(emitCloseLegacy, stream);
66735
66688
  }
66736
66689
  function destroyer(stream, err) {
66737
66690
  if (!stream || isDestroyed(stream)) {
@@ -66752,9 +66705,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
66752
66705
  } else if (typeof stream.close === "function") {
66753
66706
  stream.close();
66754
66707
  } else if (err) {
66755
- process3.nextTick(emitErrorCloseLegacy, stream, err);
66708
+ process2.nextTick(emitErrorCloseLegacy, stream, err);
66756
66709
  } else {
66757
- process3.nextTick(emitCloseLegacy, stream);
66710
+ process2.nextTick(emitCloseLegacy, stream);
66758
66711
  }
66759
66712
  if (!stream.destroyed) {
66760
66713
  stream[kDestroyed] = true;
@@ -67095,7 +67048,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
67095
67048
  var require_from = __commonJS2({
67096
67049
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/from.js"(exports22, module22) {
67097
67050
  "use strict";
67098
- var process3 = require_process();
67051
+ var process2 = require_process();
67099
67052
  var { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require_primordials();
67100
67053
  var { Buffer: Buffer22 } = __require("buffer");
67101
67054
  var { ERR_INVALID_ARG_TYPE, ERR_STREAM_NULL_VALUES } = require_errors3().codes;
@@ -67137,9 +67090,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
67137
67090
  readable._destroy = function(error44, cb) {
67138
67091
  PromisePrototypeThen(
67139
67092
  close(error44),
67140
- () => process3.nextTick(cb, error44),
67093
+ () => process2.nextTick(cb, error44),
67141
67094
  // nextTick is here in case cb throws
67142
- (e2) => process3.nextTick(cb, e2 || error44)
67095
+ (e2) => process2.nextTick(cb, e2 || error44)
67143
67096
  );
67144
67097
  };
67145
67098
  async function close(error44) {
@@ -67188,7 +67141,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
67188
67141
  var require_readable = __commonJS2({
67189
67142
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/readable.js"(exports22, module22) {
67190
67143
  "use strict";
67191
- var process3 = require_process();
67144
+ var process2 = require_process();
67192
67145
  var {
67193
67146
  ArrayPrototypeIndexOf,
67194
67147
  NumberIsInteger,
@@ -67543,7 +67496,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
67543
67496
  if (!state2.emittedReadable) {
67544
67497
  debug7("emitReadable", state2.flowing);
67545
67498
  state2.emittedReadable = true;
67546
- process3.nextTick(emitReadable_, stream);
67499
+ process2.nextTick(emitReadable_, stream);
67547
67500
  }
67548
67501
  }
67549
67502
  function emitReadable_(stream) {
@@ -67559,7 +67512,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
67559
67512
  function maybeReadMore(stream, state2) {
67560
67513
  if (!state2.readingMore && state2.constructed) {
67561
67514
  state2.readingMore = true;
67562
- process3.nextTick(maybeReadMore_, stream, state2);
67515
+ process2.nextTick(maybeReadMore_, stream, state2);
67563
67516
  }
67564
67517
  }
67565
67518
  function maybeReadMore_(stream, state2) {
@@ -67586,10 +67539,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
67586
67539
  }
67587
67540
  state2.pipes.push(dest);
67588
67541
  debug7("pipe count=%d opts=%j", state2.pipes.length, pipeOpts);
67589
- const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process3.stdout && dest !== process3.stderr;
67542
+ const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process2.stdout && dest !== process2.stderr;
67590
67543
  const endFn = doEnd ? onend : unpipe;
67591
67544
  if (state2.endEmitted)
67592
- process3.nextTick(endFn);
67545
+ process2.nextTick(endFn);
67593
67546
  else
67594
67547
  src.once("end", endFn);
67595
67548
  dest.on("unpipe", onunpipe);
@@ -67747,7 +67700,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
67747
67700
  if (state2.length) {
67748
67701
  emitReadable(this);
67749
67702
  } else if (!state2.reading) {
67750
- process3.nextTick(nReadingNextTick, this);
67703
+ process2.nextTick(nReadingNextTick, this);
67751
67704
  }
67752
67705
  }
67753
67706
  }
@@ -67757,7 +67710,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
67757
67710
  Readable.prototype.removeListener = function(ev, fn2) {
67758
67711
  const res = Stream.prototype.removeListener.call(this, ev, fn2);
67759
67712
  if (ev === "readable") {
67760
- process3.nextTick(updateReadableListening, this);
67713
+ process2.nextTick(updateReadableListening, this);
67761
67714
  }
67762
67715
  return res;
67763
67716
  };
@@ -67765,7 +67718,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
67765
67718
  Readable.prototype.removeAllListeners = function(ev) {
67766
67719
  const res = Stream.prototype.removeAllListeners.apply(this, arguments);
67767
67720
  if (ev === "readable" || ev === void 0) {
67768
- process3.nextTick(updateReadableListening, this);
67721
+ process2.nextTick(updateReadableListening, this);
67769
67722
  }
67770
67723
  return res;
67771
67724
  };
@@ -67797,7 +67750,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
67797
67750
  function resume(stream, state2) {
67798
67751
  if (!state2.resumeScheduled) {
67799
67752
  state2.resumeScheduled = true;
67800
- process3.nextTick(resume_, stream, state2);
67753
+ process2.nextTick(resume_, stream, state2);
67801
67754
  }
67802
67755
  }
67803
67756
  function resume_(stream, state2) {
@@ -68081,7 +68034,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
68081
68034
  debug7("endReadable", state2.endEmitted);
68082
68035
  if (!state2.endEmitted) {
68083
68036
  state2.ended = true;
68084
- process3.nextTick(endReadableNT, state2, stream);
68037
+ process2.nextTick(endReadableNT, state2, stream);
68085
68038
  }
68086
68039
  }
68087
68040
  function endReadableNT(state2, stream) {
@@ -68090,7 +68043,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
68090
68043
  state2.endEmitted = true;
68091
68044
  stream.emit("end");
68092
68045
  if (stream.writable && stream.allowHalfOpen === false) {
68093
- process3.nextTick(endWritableNT, stream);
68046
+ process2.nextTick(endWritableNT, stream);
68094
68047
  } else if (state2.autoDestroy) {
68095
68048
  const wState = stream._writableState;
68096
68049
  const autoDestroy = !wState || wState.autoDestroy && // We don't expect the writable to ever 'finish'
@@ -68139,7 +68092,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
68139
68092
  var require_writable = __commonJS2({
68140
68093
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/writable.js"(exports22, module22) {
68141
68094
  "use strict";
68142
- var process3 = require_process();
68095
+ var process2 = require_process();
68143
68096
  var {
68144
68097
  ArrayPrototypeSlice,
68145
68098
  Error: Error2,
@@ -68306,7 +68259,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
68306
68259
  err = new ERR_STREAM_DESTROYED("write");
68307
68260
  }
68308
68261
  if (err) {
68309
- process3.nextTick(cb, err);
68262
+ process2.nextTick(cb, err);
68310
68263
  errorOrDestroy(stream, err, true);
68311
68264
  return err;
68312
68265
  }
@@ -68403,7 +68356,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
68403
68356
  stream._readableState.errored = er2;
68404
68357
  }
68405
68358
  if (sync) {
68406
- process3.nextTick(onwriteError, stream, state2, er2, cb);
68359
+ process2.nextTick(onwriteError, stream, state2, er2, cb);
68407
68360
  } else {
68408
68361
  onwriteError(stream, state2, er2, cb);
68409
68362
  }
@@ -68421,7 +68374,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
68421
68374
  stream,
68422
68375
  state: state2
68423
68376
  };
68424
- process3.nextTick(afterWriteTick, state2.afterWriteTickInfo);
68377
+ process2.nextTick(afterWriteTick, state2.afterWriteTickInfo);
68425
68378
  }
68426
68379
  } else {
68427
68380
  afterWrite(stream, state2, 1, cb);
@@ -68558,7 +68511,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
68558
68511
  }
68559
68512
  if (typeof cb === "function") {
68560
68513
  if (err || state2.finished) {
68561
- process3.nextTick(cb, err);
68514
+ process2.nextTick(cb, err);
68562
68515
  } else {
68563
68516
  state2[kOnFinished].push(cb);
68564
68517
  }
@@ -68587,7 +68540,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
68587
68540
  state2.prefinished = true;
68588
68541
  stream.emit("prefinish");
68589
68542
  state2.pendingcb++;
68590
- process3.nextTick(finish, stream, state2);
68543
+ process2.nextTick(finish, stream, state2);
68591
68544
  }
68592
68545
  }
68593
68546
  state2.sync = true;
@@ -68616,7 +68569,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
68616
68569
  if (state2.pendingcb === 0) {
68617
68570
  if (sync) {
68618
68571
  state2.pendingcb++;
68619
- process3.nextTick(
68572
+ process2.nextTick(
68620
68573
  (stream2, state3) => {
68621
68574
  if (needFinish(state3)) {
68622
68575
  finish(stream2, state3);
@@ -68752,7 +68705,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
68752
68705
  Writable.prototype.destroy = function(err, cb) {
68753
68706
  const state2 = this._writableState;
68754
68707
  if (!state2.destroyed && (state2.bufferedIndex < state2.buffered.length || state2[kOnFinished].length)) {
68755
- process3.nextTick(errorBuffer, state2);
68708
+ process2.nextTick(errorBuffer, state2);
68756
68709
  }
68757
68710
  destroy2.call(this, err, cb);
68758
68711
  return this;
@@ -68781,7 +68734,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
68781
68734
  var require_duplexify = __commonJS2({
68782
68735
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/duplexify.js"(exports22, module22) {
68783
68736
  "use strict";
68784
- var process3 = require_process();
68737
+ var process2 = require_process();
68785
68738
  var bufferModule = __require("buffer");
68786
68739
  var {
68787
68740
  isReadable,
@@ -68881,9 +68834,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
68881
68834
  final(async () => {
68882
68835
  try {
68883
68836
  await promise2;
68884
- process3.nextTick(cb, null);
68837
+ process2.nextTick(cb, null);
68885
68838
  } catch (err) {
68886
- process3.nextTick(cb, err);
68839
+ process2.nextTick(cb, err);
68887
68840
  }
68888
68841
  });
68889
68842
  },
@@ -68959,7 +68912,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
68959
68912
  const _promise2 = promise2;
68960
68913
  promise2 = null;
68961
68914
  const { chunk, done, cb } = await _promise2;
68962
- process3.nextTick(cb);
68915
+ process2.nextTick(cb);
68963
68916
  if (done)
68964
68917
  return;
68965
68918
  if (signal.aborted)
@@ -69351,7 +69304,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
69351
69304
  var require_pipeline = __commonJS2({
69352
69305
  "../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports22, module22) {
69353
69306
  "use strict";
69354
- var process3 = require_process();
69307
+ var process2 = require_process();
69355
69308
  var { ArrayIsArray, Promise: Promise2, SymbolAsyncIterator } = require_primordials();
69356
69309
  var eos = require_end_of_stream();
69357
69310
  var { once } = require_util();
@@ -69547,7 +69500,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
69547
69500
  if (!error44) {
69548
69501
  lastStreamCleanup.forEach((fn2) => fn2());
69549
69502
  }
69550
- process3.nextTick(callback, error44, value);
69503
+ process2.nextTick(callback, error44, value);
69551
69504
  }
69552
69505
  }
69553
69506
  let ret;
@@ -69626,11 +69579,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
69626
69579
  if (end) {
69627
69580
  pt2.end();
69628
69581
  }
69629
- process3.nextTick(finish);
69582
+ process2.nextTick(finish);
69630
69583
  },
69631
69584
  (err) => {
69632
69585
  pt2.destroy(err);
69633
- process3.nextTick(finish, err);
69586
+ process2.nextTick(finish, err);
69634
69587
  }
69635
69588
  );
69636
69589
  } else if (isIterable(ret, true)) {
@@ -69711,7 +69664,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
69711
69664
  }
69712
69665
  }
69713
69666
  if (signal !== null && signal !== void 0 && signal.aborted || outerSignal !== null && outerSignal !== void 0 && outerSignal.aborted) {
69714
- process3.nextTick(abort);
69667
+ process2.nextTick(abort);
69715
69668
  }
69716
69669
  return ret;
69717
69670
  }
@@ -69732,7 +69685,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
69732
69685
  };
69733
69686
  var endFn = endFn2;
69734
69687
  if (isReadableEnded(src)) {
69735
- process3.nextTick(endFn2);
69688
+ process2.nextTick(endFn2);
69736
69689
  } else {
69737
69690
  src.once("end", endFn2);
69738
69691
  }
@@ -84897,13 +84850,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
84897
84850
  exports22.readUNumeric96LE = readUNumeric96LE;
84898
84851
  exports22.readUsVarByte = readUsVarByte;
84899
84852
  exports22.readUsVarChar = readUsVarChar;
84900
- var Result2 = class {
84853
+ var Result = class {
84901
84854
  constructor(value, offset) {
84902
84855
  this.value = value;
84903
84856
  this.offset = offset;
84904
84857
  }
84905
84858
  };
84906
- exports22.Result = Result2;
84859
+ exports22.Result = Result;
84907
84860
  var NotEnoughDataError = class extends Error {
84908
84861
  byteCount;
84909
84862
  constructor(byteCount) {
@@ -84917,84 +84870,84 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
84917
84870
  if (buf.length < offset + 1) {
84918
84871
  throw new NotEnoughDataError(offset + 1);
84919
84872
  }
84920
- return new Result2(buf.readUInt8(offset), offset + 1);
84873
+ return new Result(buf.readUInt8(offset), offset + 1);
84921
84874
  }
84922
84875
  function readUInt16LE(buf, offset) {
84923
84876
  offset = +offset;
84924
84877
  if (buf.length < offset + 2) {
84925
84878
  throw new NotEnoughDataError(offset + 2);
84926
84879
  }
84927
- return new Result2(buf.readUInt16LE(offset), offset + 2);
84880
+ return new Result(buf.readUInt16LE(offset), offset + 2);
84928
84881
  }
84929
84882
  function readInt16LE(buf, offset) {
84930
84883
  offset = +offset;
84931
84884
  if (buf.length < offset + 2) {
84932
84885
  throw new NotEnoughDataError(offset + 2);
84933
84886
  }
84934
- return new Result2(buf.readInt16LE(offset), offset + 2);
84887
+ return new Result(buf.readInt16LE(offset), offset + 2);
84935
84888
  }
84936
84889
  function readUInt24LE(buf, offset) {
84937
84890
  offset = +offset;
84938
84891
  if (buf.length < offset + 3) {
84939
84892
  throw new NotEnoughDataError(offset + 3);
84940
84893
  }
84941
- return new Result2(buf.readUIntLE(offset, 3), offset + 3);
84894
+ return new Result(buf.readUIntLE(offset, 3), offset + 3);
84942
84895
  }
84943
84896
  function readUInt32LE(buf, offset) {
84944
84897
  offset = +offset;
84945
84898
  if (buf.length < offset + 4) {
84946
84899
  throw new NotEnoughDataError(offset + 4);
84947
84900
  }
84948
- return new Result2(buf.readUInt32LE(offset), offset + 4);
84901
+ return new Result(buf.readUInt32LE(offset), offset + 4);
84949
84902
  }
84950
84903
  function readUInt32BE(buf, offset) {
84951
84904
  offset = +offset;
84952
84905
  if (buf.length < offset + 4) {
84953
84906
  throw new NotEnoughDataError(offset + 4);
84954
84907
  }
84955
- return new Result2(buf.readUInt32BE(offset), offset + 4);
84908
+ return new Result(buf.readUInt32BE(offset), offset + 4);
84956
84909
  }
84957
84910
  function readUInt40LE(buf, offset) {
84958
84911
  offset = +offset;
84959
84912
  if (buf.length < offset + 5) {
84960
84913
  throw new NotEnoughDataError(offset + 5);
84961
84914
  }
84962
- return new Result2(buf.readUIntLE(offset, 5), offset + 5);
84915
+ return new Result(buf.readUIntLE(offset, 5), offset + 5);
84963
84916
  }
84964
84917
  function readInt32LE(buf, offset) {
84965
84918
  offset = +offset;
84966
84919
  if (buf.length < offset + 4) {
84967
84920
  throw new NotEnoughDataError(offset + 4);
84968
84921
  }
84969
- return new Result2(buf.readInt32LE(offset), offset + 4);
84922
+ return new Result(buf.readInt32LE(offset), offset + 4);
84970
84923
  }
84971
84924
  function readBigUInt64LE(buf, offset) {
84972
84925
  offset = +offset;
84973
84926
  if (buf.length < offset + 8) {
84974
84927
  throw new NotEnoughDataError(offset + 8);
84975
84928
  }
84976
- return new Result2(buf.readBigUInt64LE(offset), offset + 8);
84929
+ return new Result(buf.readBigUInt64LE(offset), offset + 8);
84977
84930
  }
84978
84931
  function readBigInt64LE(buf, offset) {
84979
84932
  offset = +offset;
84980
84933
  if (buf.length < offset + 8) {
84981
84934
  throw new NotEnoughDataError(offset + 8);
84982
84935
  }
84983
- return new Result2(buf.readBigInt64LE(offset), offset + 8);
84936
+ return new Result(buf.readBigInt64LE(offset), offset + 8);
84984
84937
  }
84985
84938
  function readFloatLE(buf, offset) {
84986
84939
  offset = +offset;
84987
84940
  if (buf.length < offset + 4) {
84988
84941
  throw new NotEnoughDataError(offset + 4);
84989
84942
  }
84990
- return new Result2(buf.readFloatLE(offset), offset + 4);
84943
+ return new Result(buf.readFloatLE(offset), offset + 4);
84991
84944
  }
84992
84945
  function readDoubleLE(buf, offset) {
84993
84946
  offset = +offset;
84994
84947
  if (buf.length < offset + 8) {
84995
84948
  throw new NotEnoughDataError(offset + 8);
84996
84949
  }
84997
- return new Result2(buf.readDoubleLE(offset), offset + 8);
84950
+ return new Result(buf.readDoubleLE(offset), offset + 8);
84998
84951
  }
84999
84952
  function readBVarChar(buf, offset) {
85000
84953
  offset = +offset;
@@ -85007,7 +84960,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
85007
84960
  if (buf.length < offset + byteLength) {
85008
84961
  throw new NotEnoughDataError(offset + byteLength);
85009
84962
  }
85010
- return new Result2(buf.toString("ucs2", offset, offset + byteLength), offset + byteLength);
84963
+ return new Result(buf.toString("ucs2", offset, offset + byteLength), offset + byteLength);
85011
84964
  }
85012
84965
  function readBVarByte(buf, offset) {
85013
84966
  offset = +offset;
@@ -85019,7 +84972,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
85019
84972
  if (buf.length < offset + byteLength) {
85020
84973
  throw new NotEnoughDataError(offset + byteLength);
85021
84974
  }
85022
- return new Result2(buf.slice(offset, offset + byteLength), offset + byteLength);
84975
+ return new Result(buf.slice(offset, offset + byteLength), offset + byteLength);
85023
84976
  }
85024
84977
  function readUsVarChar(buf, offset) {
85025
84978
  offset = +offset;
@@ -85032,7 +84985,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
85032
84985
  if (buf.length < offset + byteLength) {
85033
84986
  throw new NotEnoughDataError(offset + byteLength);
85034
84987
  }
85035
- return new Result2(buf.toString("ucs2", offset, offset + byteLength), offset + byteLength);
84988
+ return new Result(buf.toString("ucs2", offset, offset + byteLength), offset + byteLength);
85036
84989
  }
85037
84990
  function readUsVarByte(buf, offset) {
85038
84991
  offset = +offset;
@@ -85044,7 +84997,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
85044
84997
  if (buf.length < offset + byteLength) {
85045
84998
  throw new NotEnoughDataError(offset + byteLength);
85046
84999
  }
85047
- return new Result2(buf.slice(offset, offset + byteLength), offset + byteLength);
85000
+ return new Result(buf.slice(offset, offset + byteLength), offset + byteLength);
85048
85001
  }
85049
85002
  function readUNumeric64LE(buf, offset) {
85050
85003
  offset = +offset;
@@ -85053,7 +85006,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
85053
85006
  }
85054
85007
  const low = buf.readUInt32LE(offset);
85055
85008
  const high = buf.readUInt32LE(offset + 4);
85056
- return new Result2(4294967296 * high + low, offset + 8);
85009
+ return new Result(4294967296 * high + low, offset + 8);
85057
85010
  }
85058
85011
  function readUNumeric96LE(buf, offset) {
85059
85012
  offset = +offset;
@@ -85063,7 +85016,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
85063
85016
  const dword1 = buf.readUInt32LE(offset);
85064
85017
  const dword2 = buf.readUInt32LE(offset + 4);
85065
85018
  const dword3 = buf.readUInt32LE(offset + 8);
85066
- return new Result2(dword1 + 4294967296 * dword2 + 4294967296 * 4294967296 * dword3, offset + 12);
85019
+ return new Result(dword1 + 4294967296 * dword2 + 4294967296 * 4294967296 * dword3, offset + 12);
85067
85020
  }
85068
85021
  function readUNumeric128LE(buf, offset) {
85069
85022
  offset = +offset;
@@ -85074,7 +85027,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
85074
85027
  const dword2 = buf.readUInt32LE(offset + 4);
85075
85028
  const dword3 = buf.readUInt32LE(offset + 8);
85076
85029
  const dword4 = buf.readUInt32LE(offset + 12);
85077
- return new Result2(dword1 + 4294967296 * dword2 + 4294967296 * 4294967296 * dword3 + 4294967296 * 4294967296 * 4294967296 * dword4, offset + 16);
85030
+ return new Result(dword1 + 4294967296 * dword2 + 4294967296 * 4294967296 * dword3 + 4294967296 * 4294967296 * 4294967296 * dword4, offset + 16);
85078
85031
  }
85079
85032
  }
85080
85033
  });
@@ -88720,7 +88673,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
88720
88673
  REDIRECT: 1,
88721
88674
  RETRY: 2
88722
88675
  };
88723
- var Connection2 = class extends _events.EventEmitter {
88676
+ var Connection = class extends _events.EventEmitter {
88724
88677
  /**
88725
88678
  * @private
88726
88679
  */
@@ -90632,9 +90585,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
90632
90585
  }
90633
90586
  return error44 instanceof _errors.ConnectionError && !!error44.isTransient;
90634
90587
  }
90635
- var _default3 = exports22.default = Connection2;
90636
- module22.exports = Connection2;
90637
- Connection2.prototype.STATE = {
90588
+ var _default3 = exports22.default = Connection;
90589
+ module22.exports = Connection;
90590
+ Connection.prototype.STATE = {
90638
90591
  INITIALIZED: {
90639
90592
  name: "Initialized",
90640
90593
  events: {}
@@ -92825,11 +92778,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
92825
92778
  "use strict";
92826
92779
  var extend3 = require_mutable();
92827
92780
  module22.exports = PostgresInterval;
92828
- function PostgresInterval(raw3) {
92781
+ function PostgresInterval(raw2) {
92829
92782
  if (!(this instanceof PostgresInterval)) {
92830
- return new PostgresInterval(raw3);
92783
+ return new PostgresInterval(raw2);
92831
92784
  }
92832
- extend3(this, parse5(raw3));
92785
+ extend3(this, parse5(raw2));
92833
92786
  }
92834
92787
  var properties = ["seconds", "minutes", "hours", "days", "months", "years"];
92835
92788
  PostgresInterval.prototype.toPostgres = function() {
@@ -93536,7 +93489,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93536
93489
  }
93537
93490
  });
93538
93491
  var require_defaults2 = __commonJS2({
93539
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/defaults.js"(exports22, module22) {
93492
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/defaults.js"(exports22, module22) {
93540
93493
  "use strict";
93541
93494
  module22.exports = {
93542
93495
  // database host. defaults to localhost
@@ -93596,18 +93549,16 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93596
93549
  }
93597
93550
  });
93598
93551
  var require_utils6 = __commonJS2({
93599
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/utils.js"(exports22, module22) {
93552
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/utils.js"(exports22, module22) {
93600
93553
  "use strict";
93601
- var defaults2 = require_defaults2();
93602
- var util2 = __require("util");
93603
- var { isDate } = util2.types || util2;
93554
+ var defaults = require_defaults2();
93604
93555
  function escapeElement(elementRepresentation) {
93605
- const escaped = elementRepresentation.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
93556
+ var escaped = elementRepresentation.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
93606
93557
  return '"' + escaped + '"';
93607
93558
  }
93608
93559
  function arrayString(val) {
93609
- let result = "{";
93610
- for (let i2 = 0; i2 < val.length; i2++) {
93560
+ var result = "{";
93561
+ for (var i2 = 0; i2 < val.length; i2++) {
93611
93562
  if (i2 > 0) {
93612
93563
  result = result + ",";
93613
93564
  }
@@ -93616,9 +93567,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93616
93567
  } else if (Array.isArray(val[i2])) {
93617
93568
  result = result + arrayString(val[i2]);
93618
93569
  } else if (ArrayBuffer.isView(val[i2])) {
93619
- let item = val[i2];
93570
+ var item = val[i2];
93620
93571
  if (!(item instanceof Buffer)) {
93621
- const buf = Buffer.from(item.buffer, item.byteOffset, item.byteLength);
93572
+ var buf = Buffer.from(item.buffer, item.byteOffset, item.byteLength);
93622
93573
  if (buf.length === item.byteLength) {
93623
93574
  item = buf;
93624
93575
  } else {
@@ -93642,14 +93593,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93642
93593
  return val;
93643
93594
  }
93644
93595
  if (ArrayBuffer.isView(val)) {
93645
- const buf = Buffer.from(val.buffer, val.byteOffset, val.byteLength);
93596
+ var buf = Buffer.from(val.buffer, val.byteOffset, val.byteLength);
93646
93597
  if (buf.length === val.byteLength) {
93647
93598
  return buf;
93648
93599
  }
93649
93600
  return buf.slice(val.byteOffset, val.byteOffset + val.byteLength);
93650
93601
  }
93651
- if (isDate(val)) {
93652
- if (defaults2.parseInputDatesAsUTC) {
93602
+ if (val instanceof Date) {
93603
+ if (defaults.parseInputDatesAsUTC) {
93653
93604
  return dateToStringUTC(val);
93654
93605
  } else {
93655
93606
  return dateToString(val);
@@ -93674,12 +93625,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93674
93625
  return JSON.stringify(val);
93675
93626
  }
93676
93627
  function dateToString(date5) {
93677
- let offset = -date5.getTimezoneOffset();
93678
- let year = date5.getFullYear();
93679
- const isBCYear = year < 1;
93628
+ var offset = -date5.getTimezoneOffset();
93629
+ var year = date5.getFullYear();
93630
+ var isBCYear = year < 1;
93680
93631
  if (isBCYear)
93681
93632
  year = Math.abs(year) + 1;
93682
- let ret = String(year).padStart(4, "0") + "-" + String(date5.getMonth() + 1).padStart(2, "0") + "-" + String(date5.getDate()).padStart(2, "0") + "T" + String(date5.getHours()).padStart(2, "0") + ":" + String(date5.getMinutes()).padStart(2, "0") + ":" + String(date5.getSeconds()).padStart(2, "0") + "." + String(date5.getMilliseconds()).padStart(3, "0");
93633
+ var ret = String(year).padStart(4, "0") + "-" + String(date5.getMonth() + 1).padStart(2, "0") + "-" + String(date5.getDate()).padStart(2, "0") + "T" + String(date5.getHours()).padStart(2, "0") + ":" + String(date5.getMinutes()).padStart(2, "0") + ":" + String(date5.getSeconds()).padStart(2, "0") + "." + String(date5.getMilliseconds()).padStart(3, "0");
93683
93634
  if (offset < 0) {
93684
93635
  ret += "-";
93685
93636
  offset *= -1;
@@ -93692,11 +93643,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93692
93643
  return ret;
93693
93644
  }
93694
93645
  function dateToStringUTC(date5) {
93695
- let year = date5.getUTCFullYear();
93696
- const isBCYear = year < 1;
93646
+ var year = date5.getUTCFullYear();
93647
+ var isBCYear = year < 1;
93697
93648
  if (isBCYear)
93698
93649
  year = Math.abs(year) + 1;
93699
- let ret = String(year).padStart(4, "0") + "-" + String(date5.getUTCMonth() + 1).padStart(2, "0") + "-" + String(date5.getUTCDate()).padStart(2, "0") + "T" + String(date5.getUTCHours()).padStart(2, "0") + ":" + String(date5.getUTCMinutes()).padStart(2, "0") + ":" + String(date5.getUTCSeconds()).padStart(2, "0") + "." + String(date5.getUTCMilliseconds()).padStart(3, "0");
93650
+ var ret = String(year).padStart(4, "0") + "-" + String(date5.getUTCMonth() + 1).padStart(2, "0") + "-" + String(date5.getUTCDate()).padStart(2, "0") + "T" + String(date5.getUTCHours()).padStart(2, "0") + ":" + String(date5.getUTCMinutes()).padStart(2, "0") + ":" + String(date5.getUTCSeconds()).padStart(2, "0") + "." + String(date5.getUTCMilliseconds()).padStart(3, "0");
93700
93651
  ret += "+00:00";
93701
93652
  if (isBCYear)
93702
93653
  ret += " BC";
@@ -93716,20 +93667,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93716
93667
  }
93717
93668
  return config3;
93718
93669
  }
93719
- var escapeIdentifier2 = function(str) {
93670
+ var escapeIdentifier = function(str) {
93720
93671
  return '"' + str.replace(/"/g, '""') + '"';
93721
93672
  };
93722
- var escapeLiteral2 = function(str) {
93723
- let hasBackslash = false;
93724
- let escaped = "'";
93725
- if (str == null) {
93726
- return "''";
93727
- }
93728
- if (typeof str !== "string") {
93729
- return "''";
93730
- }
93731
- for (let i2 = 0; i2 < str.length; i2++) {
93732
- const c2 = str[i2];
93673
+ var escapeLiteral = function(str) {
93674
+ var hasBackslash = false;
93675
+ var escaped = "'";
93676
+ for (var i2 = 0; i2 < str.length; i2++) {
93677
+ var c2 = str[i2];
93733
93678
  if (c2 === "'") {
93734
93679
  escaped += c2 + c2;
93735
93680
  } else if (c2 === "\\") {
@@ -93750,21 +93695,21 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93750
93695
  return prepareValue(value);
93751
93696
  },
93752
93697
  normalizeQueryConfig,
93753
- escapeIdentifier: escapeIdentifier2,
93754
- escapeLiteral: escapeLiteral2
93698
+ escapeIdentifier,
93699
+ escapeLiteral
93755
93700
  };
93756
93701
  }
93757
93702
  });
93758
93703
  var require_utils_legacy = __commonJS2({
93759
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/crypto/utils-legacy.js"(exports22, module22) {
93704
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/crypto/utils-legacy.js"(exports22, module22) {
93760
93705
  "use strict";
93761
93706
  var nodeCrypto = __require("crypto");
93762
93707
  function md5(string4) {
93763
93708
  return nodeCrypto.createHash("md5").update(string4, "utf-8").digest("hex");
93764
93709
  }
93765
93710
  function postgresMd5PasswordHash(user, password, salt) {
93766
- const inner = md5(password + user);
93767
- const outer = md5(Buffer.concat([Buffer.from(inner), salt]));
93711
+ var inner = md5(password + user);
93712
+ var outer = md5(Buffer.concat([Buffer.from(inner), salt]));
93768
93713
  return "md5" + outer;
93769
93714
  }
93770
93715
  function sha2562(text) {
@@ -93792,7 +93737,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93792
93737
  }
93793
93738
  });
93794
93739
  var require_utils_webcrypto = __commonJS2({
93795
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/crypto/utils-webcrypto.js"(exports22, module22) {
93740
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/crypto/utils-webcrypto.js"(exports22, module22) {
93796
93741
  "use strict";
93797
93742
  var nodeCrypto = __require("crypto");
93798
93743
  module22.exports = {
@@ -93820,8 +93765,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93820
93765
  }
93821
93766
  }
93822
93767
  async function postgresMd5PasswordHash(user, password, salt) {
93823
- const inner = await md5(password + user);
93824
- const outer = await md5(Buffer.concat([Buffer.from(inner), salt]));
93768
+ var inner = await md5(password + user);
93769
+ var outer = await md5(Buffer.concat([Buffer.from(inner), salt]));
93825
93770
  return "md5" + outer;
93826
93771
  }
93827
93772
  async function sha2562(text) {
@@ -93842,7 +93787,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93842
93787
  }
93843
93788
  });
93844
93789
  var require_utils7 = __commonJS2({
93845
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/crypto/utils.js"(exports22, module22) {
93790
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/crypto/utils.js"(exports22, module22) {
93846
93791
  "use strict";
93847
93792
  var useLegacyCrypto = parseInt(process.versions && process.versions.node && process.versions.node.split(".")[0]) < 15;
93848
93793
  if (useLegacyCrypto) {
@@ -93853,10 +93798,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93853
93798
  }
93854
93799
  });
93855
93800
  var require_cert_signatures = __commonJS2({
93856
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/crypto/cert-signatures.js"(exports22, module22) {
93801
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/crypto/cert-signatures.js"(exports22, module22) {
93857
93802
  "use strict";
93858
93803
  function x509Error(msg, cert) {
93859
- return new Error("SASL channel binding: " + msg + " when parsing public certificate " + cert.toString("base64"));
93804
+ throw new Error("SASL channel binding: " + msg + " when parsing public certificate " + cert.toString("base64"));
93860
93805
  }
93861
93806
  function readASN1Length(data, index) {
93862
93807
  let length2 = data[index++];
@@ -93864,7 +93809,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93864
93809
  return { length: length2, index };
93865
93810
  const lengthBytes = length2 & 127;
93866
93811
  if (lengthBytes > 4)
93867
- throw x509Error("bad length", data);
93812
+ x509Error("bad length", data);
93868
93813
  length2 = 0;
93869
93814
  for (let i2 = 0; i2 < lengthBytes; i2++) {
93870
93815
  length2 = length2 << 8 | data[index++];
@@ -93873,10 +93818,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93873
93818
  }
93874
93819
  function readASN1OID(data, index) {
93875
93820
  if (data[index++] !== 6)
93876
- throw x509Error("non-OID data", data);
93821
+ x509Error("non-OID data", data);
93877
93822
  const { length: OIDLength, index: indexAfterOIDLength } = readASN1Length(data, index);
93878
93823
  index = indexAfterOIDLength;
93879
- const lastIndex = index + OIDLength;
93824
+ lastIndex = index + OIDLength;
93880
93825
  const byte1 = data[index++];
93881
93826
  let oid = (byte1 / 40 >> 0) + "." + byte1 % 40;
93882
93827
  while (index < lastIndex) {
@@ -93893,7 +93838,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93893
93838
  }
93894
93839
  function expectASN1Seq(data, index) {
93895
93840
  if (data[index++] !== 48)
93896
- throw x509Error("non-sequence data", data);
93841
+ x509Error("non-sequence data", data);
93897
93842
  return readASN1Length(data, index);
93898
93843
  }
93899
93844
  function signatureAlgorithmHashFromCertificate(data, index) {
@@ -93931,11 +93876,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93931
93876
  return "SHA-384";
93932
93877
  case "1.2.840.10045.4.3.4":
93933
93878
  return "SHA-512";
93934
- case "1.2.840.113549.1.1.10": {
93879
+ case "1.2.840.113549.1.1.10":
93935
93880
  index = indexAfterOID;
93936
93881
  index = expectASN1Seq(data, index).index;
93937
93882
  if (data[index++] !== 160)
93938
- throw x509Error("non-tag data", data);
93883
+ x509Error("non-tag data", data);
93939
93884
  index = readASN1Length(data, index).index;
93940
93885
  index = expectASN1Seq(data, index).index;
93941
93886
  const { oid: hashOID } = readASN1OID(data, index);
@@ -93951,22 +93896,21 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
93951
93896
  case "2.16.840.1.101.3.4.2.3":
93952
93897
  return "SHA-512";
93953
93898
  }
93954
- throw x509Error("unknown hash OID " + hashOID, data);
93955
- }
93899
+ x509Error("unknown hash OID " + hashOID, data);
93956
93900
  case "1.3.101.110":
93957
93901
  case "1.3.101.112":
93958
93902
  return "SHA-512";
93959
93903
  case "1.3.101.111":
93960
93904
  case "1.3.101.113":
93961
- throw x509Error("Ed448 certificate channel binding is not currently supported by Postgres");
93905
+ x509Error("Ed448 certificate channel binding is not currently supported by Postgres");
93962
93906
  }
93963
- throw x509Error("unknown OID " + oid, data);
93907
+ x509Error("unknown OID " + oid, data);
93964
93908
  }
93965
93909
  module22.exports = { signatureAlgorithmHashFromCertificate };
93966
93910
  }
93967
93911
  });
93968
93912
  var require_sasl = __commonJS2({
93969
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/crypto/sasl.js"(exports22, module22) {
93913
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/crypto/sasl.js"(exports22, module22) {
93970
93914
  "use strict";
93971
93915
  var crypto7 = require_utils7();
93972
93916
  var { signatureAlgorithmHashFromCertificate } = require_cert_signatures();
@@ -94009,8 +93953,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94009
93953
  } else if (sv.nonce.length === session.clientNonce.length) {
94010
93954
  throw new Error("SASL: SCRAM-SERVER-FIRST-MESSAGE: server nonce is too short");
94011
93955
  }
94012
- const clientFirstMessageBare = "n=*,r=" + session.clientNonce;
94013
- const serverFirstMessage = "r=" + sv.nonce + ",s=" + sv.salt + ",i=" + sv.iteration;
93956
+ var clientFirstMessageBare = "n=*,r=" + session.clientNonce;
93957
+ var serverFirstMessage = "r=" + sv.nonce + ",s=" + sv.salt + ",i=" + sv.iteration;
94014
93958
  let channelBinding = stream ? "eSws" : "biws";
94015
93959
  if (session.mechanism === "SCRAM-SHA-256-PLUS") {
94016
93960
  const peerCert = stream.getPeerCertificate().raw;
@@ -94021,16 +93965,16 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94021
93965
  const bindingData = Buffer.concat([Buffer.from("p=tls-server-end-point,,"), Buffer.from(certHash)]);
94022
93966
  channelBinding = bindingData.toString("base64");
94023
93967
  }
94024
- const clientFinalMessageWithoutProof = "c=" + channelBinding + ",r=" + sv.nonce;
94025
- const authMessage = clientFirstMessageBare + "," + serverFirstMessage + "," + clientFinalMessageWithoutProof;
94026
- const saltBytes = Buffer.from(sv.salt, "base64");
94027
- const saltedPassword = await crypto7.deriveKey(password, saltBytes, sv.iteration);
94028
- const clientKey = await crypto7.hmacSha256(saltedPassword, "Client Key");
94029
- const storedKey = await crypto7.sha256(clientKey);
94030
- const clientSignature = await crypto7.hmacSha256(storedKey, authMessage);
94031
- const clientProof = xorBuffers(Buffer.from(clientKey), Buffer.from(clientSignature)).toString("base64");
94032
- const serverKey = await crypto7.hmacSha256(saltedPassword, "Server Key");
94033
- const serverSignatureBytes = await crypto7.hmacSha256(serverKey, authMessage);
93968
+ var clientFinalMessageWithoutProof = "c=" + channelBinding + ",r=" + sv.nonce;
93969
+ var authMessage = clientFirstMessageBare + "," + serverFirstMessage + "," + clientFinalMessageWithoutProof;
93970
+ var saltBytes = Buffer.from(sv.salt, "base64");
93971
+ var saltedPassword = await crypto7.deriveKey(password, saltBytes, sv.iteration);
93972
+ var clientKey = await crypto7.hmacSha256(saltedPassword, "Client Key");
93973
+ var storedKey = await crypto7.sha256(clientKey);
93974
+ var clientSignature = await crypto7.hmacSha256(storedKey, authMessage);
93975
+ var clientProof = xorBuffers(Buffer.from(clientKey), Buffer.from(clientSignature)).toString("base64");
93976
+ var serverKey = await crypto7.hmacSha256(saltedPassword, "Server Key");
93977
+ var serverSignatureBytes = await crypto7.hmacSha256(serverKey, authMessage);
94034
93978
  session.message = "SASLResponse";
94035
93979
  session.serverSignature = Buffer.from(serverSignatureBytes).toString("base64");
94036
93980
  session.response = clientFinalMessageWithoutProof + ",p=" + clientProof;
@@ -94133,15 +94077,15 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94133
94077
  }
94134
94078
  });
94135
94079
  var require_type_overrides = __commonJS2({
94136
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/type-overrides.js"(exports22, module22) {
94080
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/type-overrides.js"(exports22, module22) {
94137
94081
  "use strict";
94138
94082
  var types3 = require_pg_types();
94139
- function TypeOverrides2(userTypes) {
94083
+ function TypeOverrides(userTypes) {
94140
94084
  this._types = userTypes || types3;
94141
94085
  this.text = {};
94142
94086
  this.binary = {};
94143
94087
  }
94144
- TypeOverrides2.prototype.getOverrides = function(format) {
94088
+ TypeOverrides.prototype.getOverrides = function(format) {
94145
94089
  switch (format) {
94146
94090
  case "text":
94147
94091
  return this.text;
@@ -94151,24 +94095,24 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94151
94095
  return {};
94152
94096
  }
94153
94097
  };
94154
- TypeOverrides2.prototype.setTypeParser = function(oid, format, parseFn) {
94098
+ TypeOverrides.prototype.setTypeParser = function(oid, format, parseFn) {
94155
94099
  if (typeof format === "function") {
94156
94100
  parseFn = format;
94157
94101
  format = "text";
94158
94102
  }
94159
94103
  this.getOverrides(format)[oid] = parseFn;
94160
94104
  };
94161
- TypeOverrides2.prototype.getTypeParser = function(oid, format) {
94105
+ TypeOverrides.prototype.getTypeParser = function(oid, format) {
94162
94106
  format = format || "text";
94163
94107
  return this.getOverrides(format)[oid] || this._types.getTypeParser(oid, format);
94164
94108
  };
94165
- module22.exports = TypeOverrides2;
94109
+ module22.exports = TypeOverrides;
94166
94110
  }
94167
94111
  });
94168
94112
  var require_pg_connection_string = __commonJS2({
94169
- "../../node_modules/.pnpm/pg-connection-string@2.9.1/node_modules/pg-connection-string/index.js"(exports22, module22) {
94113
+ "../../node_modules/.pnpm/pg-connection-string@2.7.0/node_modules/pg-connection-string/index.js"(exports22, module22) {
94170
94114
  "use strict";
94171
- function parse5(str, options = {}) {
94115
+ function parse5(str) {
94172
94116
  if (str.charAt(0) === "/") {
94173
94117
  const config4 = str.split(" ");
94174
94118
  return { host: config4[0], database: config4[1] };
@@ -94177,17 +94121,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94177
94121
  let result;
94178
94122
  let dummyHost = false;
94179
94123
  if (/ |%[^a-f0-9]|%[a-f0-9][^a-f0-9]/i.test(str)) {
94180
- str = encodeURI(str).replace(/%25(\d\d)/g, "%$1");
94124
+ str = encodeURI(str).replace(/\%25(\d\d)/g, "%$1");
94181
94125
  }
94182
94126
  try {
94183
- try {
94184
- result = new URL(str, "postgres://base");
94185
- } catch (e2) {
94186
- result = new URL(str.replace("@/", "@___DUMMY___/"), "postgres://base");
94187
- dummyHost = true;
94188
- }
94189
- } catch (err) {
94190
- err.input && (err.input = "*****REDACTED*****");
94127
+ result = new URL(str, "postgres://base");
94128
+ } catch (e2) {
94129
+ result = new URL(str.replace("@/", "@___DUMMY___/"), "postgres://base");
94130
+ dummyHost = true;
94191
94131
  }
94192
94132
  for (const entry of result.searchParams.entries()) {
94193
94133
  config3[entry[0]] = entry[1];
@@ -94230,112 +94170,33 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94230
94170
  if (config3.sslrootcert) {
94231
94171
  config3.ssl.ca = fs3.readFileSync(config3.sslrootcert).toString();
94232
94172
  }
94233
- if (options.useLibpqCompat && config3.uselibpqcompat) {
94234
- throw new Error("Both useLibpqCompat and uselibpqcompat are set. Please use only one of them.");
94235
- }
94236
- if (config3.uselibpqcompat === "true" || options.useLibpqCompat) {
94237
- switch (config3.sslmode) {
94238
- case "disable": {
94239
- config3.ssl = false;
94240
- break;
94241
- }
94242
- case "prefer": {
94243
- config3.ssl.rejectUnauthorized = false;
94244
- break;
94245
- }
94246
- case "require": {
94247
- if (config3.sslrootcert) {
94248
- config3.ssl.checkServerIdentity = function() {
94249
- };
94250
- } else {
94251
- config3.ssl.rejectUnauthorized = false;
94252
- }
94253
- break;
94254
- }
94255
- case "verify-ca": {
94256
- if (!config3.ssl.ca) {
94257
- throw new Error(
94258
- "SECURITY WARNING: Using sslmode=verify-ca requires specifying a CA with sslrootcert. If a public CA is used, verify-ca allows connections to a server that somebody else may have registered with the CA, making you vulnerable to Man-in-the-Middle attacks. Either specify a custom CA certificate with sslrootcert parameter or use sslmode=verify-full for proper security."
94259
- );
94260
- }
94261
- config3.ssl.checkServerIdentity = function() {
94262
- };
94263
- break;
94264
- }
94265
- case "verify-full": {
94266
- break;
94267
- }
94173
+ switch (config3.sslmode) {
94174
+ case "disable": {
94175
+ config3.ssl = false;
94176
+ break;
94268
94177
  }
94269
- } else {
94270
- switch (config3.sslmode) {
94271
- case "disable": {
94272
- config3.ssl = false;
94273
- break;
94274
- }
94275
- case "prefer":
94276
- case "require":
94277
- case "verify-ca":
94278
- case "verify-full": {
94279
- break;
94280
- }
94281
- case "no-verify": {
94282
- config3.ssl.rejectUnauthorized = false;
94283
- break;
94284
- }
94178
+ case "prefer":
94179
+ case "require":
94180
+ case "verify-ca":
94181
+ case "verify-full": {
94182
+ break;
94183
+ }
94184
+ case "no-verify": {
94185
+ config3.ssl.rejectUnauthorized = false;
94186
+ break;
94285
94187
  }
94286
94188
  }
94287
94189
  return config3;
94288
94190
  }
94289
- function toConnectionOptions(sslConfig) {
94290
- const connectionOptions = Object.entries(sslConfig).reduce((c2, [key, value]) => {
94291
- if (value !== void 0 && value !== null) {
94292
- c2[key] = value;
94293
- }
94294
- return c2;
94295
- }, {});
94296
- return connectionOptions;
94297
- }
94298
- function toClientConfig(config3) {
94299
- const poolConfig = Object.entries(config3).reduce((c2, [key, value]) => {
94300
- if (key === "ssl") {
94301
- const sslConfig = value;
94302
- if (typeof sslConfig === "boolean") {
94303
- c2[key] = sslConfig;
94304
- }
94305
- if (typeof sslConfig === "object") {
94306
- c2[key] = toConnectionOptions(sslConfig);
94307
- }
94308
- } else if (value !== void 0 && value !== null) {
94309
- if (key === "port") {
94310
- if (value !== "") {
94311
- const v2 = parseInt(value, 10);
94312
- if (isNaN(v2)) {
94313
- throw new Error(`Invalid ${key}: ${value}`);
94314
- }
94315
- c2[key] = v2;
94316
- }
94317
- } else {
94318
- c2[key] = value;
94319
- }
94320
- }
94321
- return c2;
94322
- }, {});
94323
- return poolConfig;
94324
- }
94325
- function parseIntoClientConfig(str) {
94326
- return toClientConfig(parse5(str));
94327
- }
94328
94191
  module22.exports = parse5;
94329
94192
  parse5.parse = parse5;
94330
- parse5.toClientConfig = toClientConfig;
94331
- parse5.parseIntoClientConfig = parseIntoClientConfig;
94332
94193
  }
94333
94194
  });
94334
94195
  var require_connection_parameters = __commonJS2({
94335
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/connection-parameters.js"(exports22, module22) {
94196
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/connection-parameters.js"(exports22, module22) {
94336
94197
  "use strict";
94337
94198
  var dns = __require("dns");
94338
- var defaults2 = require_defaults2();
94199
+ var defaults = require_defaults2();
94339
94200
  var parse5 = require_pg_connection_string().parse;
94340
94201
  var val = function(key, config3, envVar) {
94341
94202
  if (envVar === void 0) {
@@ -94344,7 +94205,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94344
94205
  } else {
94345
94206
  envVar = process.env[envVar];
94346
94207
  }
94347
- return config3[key] || envVar || defaults2[key];
94208
+ return config3[key] || envVar || defaults[key];
94348
94209
  };
94349
94210
  var readSSLConfigFromEnvironment = function() {
94350
94211
  switch (process.env.PGSSLMODE) {
@@ -94358,13 +94219,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94358
94219
  case "no-verify":
94359
94220
  return { rejectUnauthorized: false };
94360
94221
  }
94361
- return defaults2.ssl;
94222
+ return defaults.ssl;
94362
94223
  };
94363
94224
  var quoteParamValue = function(value) {
94364
94225
  return "'" + ("" + value).replace(/\\/g, "\\\\").replace(/'/g, "\\'") + "'";
94365
94226
  };
94366
94227
  var add2 = function(params, config3, paramName) {
94367
- const value = config3[paramName];
94228
+ var value = config3[paramName];
94368
94229
  if (value !== void 0 && value !== null) {
94369
94230
  params.push(paramName + "=" + quoteParamValue(value));
94370
94231
  }
@@ -94428,7 +94289,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94428
94289
  }
94429
94290
  }
94430
94291
  getLibpqConnectionString(cb) {
94431
- const params = [];
94292
+ var params = [];
94432
94293
  add2(params, this, "user");
94433
94294
  add2(params, this, "password");
94434
94295
  add2(params, this, "port");
@@ -94436,7 +94297,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94436
94297
  add2(params, this, "fallback_application_name");
94437
94298
  add2(params, this, "connect_timeout");
94438
94299
  add2(params, this, "options");
94439
- const ssl = typeof this.ssl === "object" ? this.ssl : this.ssl ? { sslmode: this.ssl } : {};
94300
+ var ssl = typeof this.ssl === "object" ? this.ssl : this.ssl ? { sslmode: this.ssl } : {};
94440
94301
  add2(params, ssl, "sslmode");
94441
94302
  add2(params, ssl, "sslca");
94442
94303
  add2(params, ssl, "sslkey");
@@ -94469,11 +94330,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94469
94330
  }
94470
94331
  });
94471
94332
  var require_result = __commonJS2({
94472
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/result.js"(exports22, module22) {
94333
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/result.js"(exports22, module22) {
94473
94334
  "use strict";
94474
94335
  var types3 = require_pg_types();
94475
94336
  var matchRegexp = /^([A-Za-z]+)(?: (\d+))?(?: (\d+))?/;
94476
- var Result2 = class {
94337
+ var Result = class {
94477
94338
  constructor(rowMode, types4) {
94478
94339
  this.command = null;
94479
94340
  this.rowCount = null;
@@ -94491,26 +94352,26 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94491
94352
  }
94492
94353
  // adds a command complete message
94493
94354
  addCommandComplete(msg) {
94494
- let match2;
94355
+ var match;
94495
94356
  if (msg.text) {
94496
- match2 = matchRegexp.exec(msg.text);
94357
+ match = matchRegexp.exec(msg.text);
94497
94358
  } else {
94498
- match2 = matchRegexp.exec(msg.command);
94359
+ match = matchRegexp.exec(msg.command);
94499
94360
  }
94500
- if (match2) {
94501
- this.command = match2[1];
94502
- if (match2[3]) {
94503
- this.oid = parseInt(match2[2], 10);
94504
- this.rowCount = parseInt(match2[3], 10);
94505
- } else if (match2[2]) {
94506
- this.rowCount = parseInt(match2[2], 10);
94361
+ if (match) {
94362
+ this.command = match[1];
94363
+ if (match[3]) {
94364
+ this.oid = parseInt(match[2], 10);
94365
+ this.rowCount = parseInt(match[3], 10);
94366
+ } else if (match[2]) {
94367
+ this.rowCount = parseInt(match[2], 10);
94507
94368
  }
94508
94369
  }
94509
94370
  }
94510
94371
  _parseRowAsArray(rowData) {
94511
- const row = new Array(rowData.length);
94512
- for (let i2 = 0, len = rowData.length; i2 < len; i2++) {
94513
- const rawValue = rowData[i2];
94372
+ var row = new Array(rowData.length);
94373
+ for (var i2 = 0, len = rowData.length; i2 < len; i2++) {
94374
+ var rawValue = rowData[i2];
94514
94375
  if (rawValue !== null) {
94515
94376
  row[i2] = this._parsers[i2](rawValue);
94516
94377
  } else {
@@ -94520,13 +94381,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94520
94381
  return row;
94521
94382
  }
94522
94383
  parseRow(rowData) {
94523
- const row = { ...this._prebuiltEmptyResultObject };
94524
- for (let i2 = 0, len = rowData.length; i2 < len; i2++) {
94525
- const rawValue = rowData[i2];
94526
- const field = this.fields[i2].name;
94384
+ var row = { ...this._prebuiltEmptyResultObject };
94385
+ for (var i2 = 0, len = rowData.length; i2 < len; i2++) {
94386
+ var rawValue = rowData[i2];
94387
+ var field = this.fields[i2].name;
94527
94388
  if (rawValue !== null) {
94528
- const v2 = this.fields[i2].format === "binary" ? Buffer.from(rawValue) : rawValue;
94529
- row[field] = this._parsers[i2](v2);
94389
+ row[field] = this._parsers[i2](rawValue);
94530
94390
  } else {
94531
94391
  row[field] = null;
94532
94392
  }
@@ -94541,9 +94401,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94541
94401
  if (this.fields.length) {
94542
94402
  this._parsers = new Array(fieldDescriptions.length);
94543
94403
  }
94544
- const row = {};
94545
- for (let i2 = 0; i2 < fieldDescriptions.length; i2++) {
94546
- const desc = fieldDescriptions[i2];
94404
+ var row = {};
94405
+ for (var i2 = 0; i2 < fieldDescriptions.length; i2++) {
94406
+ var desc = fieldDescriptions[i2];
94547
94407
  row[desc.name] = null;
94548
94408
  if (this._types) {
94549
94409
  this._parsers[i2] = this._types.getTypeParser(desc.dataTypeID, desc.format || "text");
@@ -94554,16 +94414,16 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94554
94414
  this._prebuiltEmptyResultObject = { ...row };
94555
94415
  }
94556
94416
  };
94557
- module22.exports = Result2;
94417
+ module22.exports = Result;
94558
94418
  }
94559
94419
  });
94560
94420
  var require_query2 = __commonJS2({
94561
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/query.js"(exports22, module22) {
94421
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/query.js"(exports22, module22) {
94562
94422
  "use strict";
94563
94423
  var { EventEmitter } = __require("events");
94564
- var Result2 = require_result();
94424
+ var Result = require_result();
94565
94425
  var utils = require_utils6();
94566
- var Query2 = class extends EventEmitter {
94426
+ var Query = class extends EventEmitter {
94567
94427
  constructor(config3, values, callback) {
94568
94428
  super();
94569
94429
  config3 = utils.normalizeQueryConfig(config3, values, callback);
@@ -94580,7 +94440,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94580
94440
  if (process.domain && config3.callback) {
94581
94441
  this.callback = process.domain.bind(config3.callback);
94582
94442
  }
94583
- this._result = new Result2(this._rowMode, this.types);
94443
+ this._result = new Result(this._rowMode, this.types);
94584
94444
  this._results = this._result;
94585
94445
  this._canceledDueToError = false;
94586
94446
  }
@@ -94607,7 +94467,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94607
94467
  if (!Array.isArray(this._results)) {
94608
94468
  this._results = [this._result];
94609
94469
  }
94610
- this._result = new Result2(this._rowMode, this._result._types);
94470
+ this._result = new Result(this._rowMode, this._result._types);
94611
94471
  this._results.push(this._result);
94612
94472
  }
94613
94473
  }
@@ -94645,7 +94505,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94645
94505
  // if a named prepared statement is created with empty query text
94646
94506
  // the backend will send an emptyQuery message but *not* a command complete message
94647
94507
  // since we pipeline sync immediately after execute we don't need to do anything here
94648
- // unless we have rows specified, in which case we did not pipeline the initial sync call
94508
+ // unless we have rows specified, in which case we did not pipeline the intial sync call
94649
94509
  handleEmptyQuery(connection) {
94650
94510
  if (this.rows) {
94651
94511
  connection.sync();
@@ -94746,14 +94606,15 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94746
94606
  handleCopyInResponse(connection) {
94747
94607
  connection.sendCopyFail("No source stream defined");
94748
94608
  }
94609
+ // eslint-disable-next-line no-unused-vars
94749
94610
  handleCopyData(msg, connection) {
94750
94611
  }
94751
94612
  };
94752
- module22.exports = Query2;
94613
+ module22.exports = Query;
94753
94614
  }
94754
94615
  });
94755
94616
  var require_messages = __commonJS2({
94756
- "../../node_modules/.pnpm/pg-protocol@1.10.3/node_modules/pg-protocol/dist/messages.js"(exports22) {
94617
+ "../../node_modules/.pnpm/pg-protocol@1.8.0/node_modules/pg-protocol/dist/messages.js"(exports22) {
94757
94618
  "use strict";
94758
94619
  Object.defineProperty(exports22, "__esModule", { value: true });
94759
94620
  exports22.NoticeMessage = exports22.DataRowMessage = exports22.CommandCompleteMessage = exports22.ReadyForQueryMessage = exports22.NotificationResponseMessage = exports22.BackendKeyDataMessage = exports22.AuthenticationMD5Password = exports22.ParameterStatusMessage = exports22.ParameterDescriptionMessage = exports22.RowDescriptionMessage = exports22.Field = exports22.CopyResponse = exports22.CopyDataMessage = exports22.DatabaseError = exports22.copyDone = exports22.emptyQuery = exports22.replicationStart = exports22.portalSuspended = exports22.noData = exports22.closeComplete = exports22.bindComplete = exports22.parseComplete = void 0;
@@ -94789,14 +94650,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94789
94650
  name: "copyDone",
94790
94651
  length: 4
94791
94652
  };
94792
- var DatabaseError2 = class extends Error {
94653
+ var DatabaseError = class extends Error {
94793
94654
  constructor(message, length2, name6) {
94794
94655
  super(message);
94795
94656
  this.length = length2;
94796
94657
  this.name = name6;
94797
94658
  }
94798
94659
  };
94799
- exports22.DatabaseError = DatabaseError2;
94660
+ exports22.DatabaseError = DatabaseError;
94800
94661
  var CopyDataMessage = class {
94801
94662
  constructor(length2, chunk) {
94802
94663
  this.length = length2;
@@ -94916,7 +94777,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94916
94777
  }
94917
94778
  });
94918
94779
  var require_buffer_writer = __commonJS2({
94919
- "../../node_modules/.pnpm/pg-protocol@1.10.3/node_modules/pg-protocol/dist/buffer-writer.js"(exports22) {
94780
+ "../../node_modules/.pnpm/pg-protocol@1.8.0/node_modules/pg-protocol/dist/buffer-writer.js"(exports22) {
94920
94781
  "use strict";
94921
94782
  Object.defineProperty(exports22, "__esModule", { value: true });
94922
94783
  exports22.Writer = void 0;
@@ -94928,10 +94789,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94928
94789
  this.buffer = Buffer.allocUnsafe(size);
94929
94790
  }
94930
94791
  ensure(size) {
94931
- const remaining = this.buffer.length - this.offset;
94792
+ var remaining = this.buffer.length - this.offset;
94932
94793
  if (remaining < size) {
94933
- const oldBuffer = this.buffer;
94934
- const newSize = oldBuffer.length + (oldBuffer.length >> 1) + size;
94794
+ var oldBuffer = this.buffer;
94795
+ var newSize = oldBuffer.length + (oldBuffer.length >> 1) + size;
94935
94796
  this.buffer = Buffer.allocUnsafe(newSize);
94936
94797
  oldBuffer.copy(this.buffer);
94937
94798
  }
@@ -94954,7 +94815,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94954
94815
  if (!string4) {
94955
94816
  this.ensure(1);
94956
94817
  } else {
94957
- const len = Buffer.byteLength(string4);
94818
+ var len = Buffer.byteLength(string4);
94958
94819
  this.ensure(len + 1);
94959
94820
  this.buffer.write(string4, this.offset, "utf-8");
94960
94821
  this.offset += len;
@@ -94963,7 +94824,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94963
94824
  return this;
94964
94825
  }
94965
94826
  addString(string4 = "") {
94966
- const len = Buffer.byteLength(string4);
94827
+ var len = Buffer.byteLength(string4);
94967
94828
  this.ensure(len);
94968
94829
  this.buffer.write(string4, this.offset);
94969
94830
  this.offset += len;
@@ -94984,7 +94845,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94984
94845
  return this.buffer.slice(code ? 0 : 5, this.offset);
94985
94846
  }
94986
94847
  flush(code) {
94987
- const result = this.join(code);
94848
+ var result = this.join(code);
94988
94849
  this.offset = 5;
94989
94850
  this.headerPosition = 0;
94990
94851
  this.buffer = Buffer.allocUnsafe(this.size);
@@ -94995,7 +94856,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
94995
94856
  }
94996
94857
  });
94997
94858
  var require_serializer = __commonJS2({
94998
- "../../node_modules/.pnpm/pg-protocol@1.10.3/node_modules/pg-protocol/dist/serializer.js"(exports22) {
94859
+ "../../node_modules/.pnpm/pg-protocol@1.8.0/node_modules/pg-protocol/dist/serializer.js"(exports22) {
94999
94860
  "use strict";
95000
94861
  Object.defineProperty(exports22, "__esModule", { value: true });
95001
94862
  exports22.serialize = void 0;
@@ -95007,8 +94868,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95007
94868
  writer.addCString(key).addCString(opts[key]);
95008
94869
  }
95009
94870
  writer.addCString("client_encoding").addCString("UTF8");
95010
- const bodyBuffer = writer.addCString("").flush();
95011
- const length2 = bodyBuffer.length + 4;
94871
+ var bodyBuffer = writer.addCString("").flush();
94872
+ var length2 = bodyBuffer.length + 4;
95012
94873
  return new buffer_writer_1.Writer().addInt32(length2).add(bodyBuffer).flush();
95013
94874
  };
95014
94875
  var requestSsl = () => {
@@ -95051,9 +94912,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95051
94912
  console.error("This can cause conflicts and silent errors executing queries");
95052
94913
  }
95053
94914
  const types3 = query3.types || emptyArray;
95054
- const len = types3.length;
95055
- const buffer = writer.addCString(name6).addCString(query3.text).addInt16(len);
95056
- for (let i2 = 0; i2 < len; i2++) {
94915
+ var len = types3.length;
94916
+ var buffer = writer.addCString(name6).addCString(query3.text).addInt16(len);
94917
+ for (var i2 = 0; i2 < len; i2++) {
95057
94918
  buffer.addInt32(types3[i2]);
95058
94919
  }
95059
94920
  return writer.flush(
@@ -95099,7 +94960,6 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95099
94960
  writeValues(values, config3.valueMapper);
95100
94961
  writer.addInt16(len);
95101
94962
  writer.add(paramWriter.flush());
95102
- writer.addInt16(1);
95103
94963
  writer.addInt16(
95104
94964
  binary ? 1 : 0
95105
94965
  /* ParamType.STRING */
@@ -95210,7 +95070,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95210
95070
  }
95211
95071
  });
95212
95072
  var require_buffer_reader = __commonJS2({
95213
- "../../node_modules/.pnpm/pg-protocol@1.10.3/node_modules/pg-protocol/dist/buffer-reader.js"(exports22) {
95073
+ "../../node_modules/.pnpm/pg-protocol@1.8.0/node_modules/pg-protocol/dist/buffer-reader.js"(exports22) {
95214
95074
  "use strict";
95215
95075
  Object.defineProperty(exports22, "__esModule", { value: true });
95216
95076
  exports22.BufferReader = void 0;
@@ -95268,7 +95128,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95268
95128
  }
95269
95129
  });
95270
95130
  var require_parser22 = __commonJS2({
95271
- "../../node_modules/.pnpm/pg-protocol@1.10.3/node_modules/pg-protocol/dist/parser.js"(exports22) {
95131
+ "../../node_modules/.pnpm/pg-protocol@1.8.0/node_modules/pg-protocol/dist/parser.js"(exports22) {
95272
95132
  "use strict";
95273
95133
  Object.defineProperty(exports22, "__esModule", { value: true });
95274
95134
  exports22.Parser = void 0;
@@ -95501,17 +95361,15 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95501
95361
  }
95502
95362
  break;
95503
95363
  case 10:
95504
- {
95505
- message.name = "authenticationSASL";
95506
- message.mechanisms = [];
95507
- let mechanism;
95508
- do {
95509
- mechanism = this.reader.cstring();
95510
- if (mechanism) {
95511
- message.mechanisms.push(mechanism);
95512
- }
95513
- } while (mechanism);
95514
- }
95364
+ message.name = "authenticationSASL";
95365
+ message.mechanisms = [];
95366
+ let mechanism;
95367
+ do {
95368
+ mechanism = this.reader.cstring();
95369
+ if (mechanism) {
95370
+ message.mechanisms.push(mechanism);
95371
+ }
95372
+ } while (mechanism);
95515
95373
  break;
95516
95374
  case 11:
95517
95375
  message.name = "authenticationSASLContinue";
@@ -95559,7 +95417,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95559
95417
  }
95560
95418
  });
95561
95419
  var require_dist4 = __commonJS2({
95562
- "../../node_modules/.pnpm/pg-protocol@1.10.3/node_modules/pg-protocol/dist/index.js"(exports22) {
95420
+ "../../node_modules/.pnpm/pg-protocol@1.8.0/node_modules/pg-protocol/dist/index.js"(exports22) {
95563
95421
  "use strict";
95564
95422
  Object.defineProperty(exports22, "__esModule", { value: true });
95565
95423
  exports22.DatabaseError = exports22.serialize = exports22.parse = void 0;
@@ -95580,15 +95438,19 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95580
95438
  exports22.parse = parse5;
95581
95439
  }
95582
95440
  });
95583
- var require_empty = __commonJS2({
95584
- "../../node_modules/.pnpm/pg-cloudflare@1.2.7/node_modules/pg-cloudflare/dist/empty.js"(exports22) {
95441
+ var empty_exports = {};
95442
+ __export(empty_exports, {
95443
+ default: () => empty_default
95444
+ });
95445
+ var empty_default;
95446
+ var init_empty = __esm({
95447
+ "../../node_modules/.pnpm/pg-cloudflare@1.1.1/node_modules/pg-cloudflare/dist/empty.js"() {
95585
95448
  "use strict";
95586
- Object.defineProperty(exports22, "__esModule", { value: true });
95587
- exports22.default = {};
95449
+ empty_default = {};
95588
95450
  }
95589
95451
  });
95590
95452
  var require_stream3 = __commonJS2({
95591
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/stream.js"(exports22, module22) {
95453
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/stream.js"(exports22, module22) {
95592
95454
  "use strict";
95593
95455
  var { getStream, getSecureStream } = getStreamFuncs();
95594
95456
  module22.exports = {
@@ -95610,7 +95472,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95610
95472
  return new net.Socket();
95611
95473
  }
95612
95474
  function getSecureStream2(options) {
95613
- const tls = __require("tls");
95475
+ var tls = __require("tls");
95614
95476
  return tls.connect(options);
95615
95477
  }
95616
95478
  return {
@@ -95620,7 +95482,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95620
95482
  }
95621
95483
  function getCloudflareStreamFuncs() {
95622
95484
  function getStream2(ssl) {
95623
- const { CloudflareSocket } = require_empty();
95485
+ const { CloudflareSocket } = (init_empty(), __toCommonJS(empty_exports));
95624
95486
  return new CloudflareSocket(ssl);
95625
95487
  }
95626
95488
  function getSecureStream2(options) {
@@ -95653,7 +95515,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95653
95515
  }
95654
95516
  });
95655
95517
  var require_connection3 = __commonJS2({
95656
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/connection.js"(exports22, module22) {
95518
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/connection.js"(exports22, module22) {
95657
95519
  "use strict";
95658
95520
  var EventEmitter = __require("events").EventEmitter;
95659
95521
  var { parse: parse5, serialize: serialize2 } = require_dist4();
@@ -95661,7 +95523,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95661
95523
  var flushBuffer = serialize2.flush();
95662
95524
  var syncBuffer = serialize2.sync();
95663
95525
  var endBuffer = serialize2.end();
95664
- var Connection2 = class extends EventEmitter {
95526
+ var Connection = class extends EventEmitter {
95665
95527
  constructor(config3) {
95666
95528
  super();
95667
95529
  config3 = config3 || {};
@@ -95676,7 +95538,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95676
95538
  this.ssl = config3.ssl || false;
95677
95539
  this._ending = false;
95678
95540
  this._emitMessage = false;
95679
- const self2 = this;
95541
+ var self2 = this;
95680
95542
  this.on("newListener", function(eventName) {
95681
95543
  if (eventName === "message") {
95682
95544
  self2._emitMessage = true;
@@ -95684,7 +95546,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95684
95546
  });
95685
95547
  }
95686
95548
  connect(port, host) {
95687
- const self2 = this;
95549
+ var self2 = this;
95688
95550
  this._connecting = true;
95689
95551
  this.stream.setNoDelay(true);
95690
95552
  this.stream.connect(port, host);
@@ -95708,7 +95570,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95708
95570
  return this.attachListeners(this.stream);
95709
95571
  }
95710
95572
  this.stream.once("data", function(buffer) {
95711
- const responseCode = buffer.toString("utf8");
95573
+ var responseCode = buffer.toString("utf8");
95712
95574
  switch (responseCode) {
95713
95575
  case "S":
95714
95576
  break;
@@ -95728,7 +95590,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95728
95590
  options.key = self2.ssl.key;
95729
95591
  }
95730
95592
  }
95731
- const net = __require("net");
95593
+ var net = __require("net");
95732
95594
  if (net.isIP && net.isIP(host) === 0) {
95733
95595
  options.servername = host;
95734
95596
  }
@@ -95744,7 +95606,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95744
95606
  }
95745
95607
  attachListeners(stream) {
95746
95608
  parse5(stream, (msg) => {
95747
- const eventName = msg.name === "error" ? "errorMessage" : msg.name;
95609
+ var eventName = msg.name === "error" ? "errorMessage" : msg.name;
95748
95610
  if (this._emitMessage) {
95749
95611
  this.emit("message", msg);
95750
95612
  }
@@ -95831,7 +95693,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95831
95693
  this._send(serialize2.copyFail(msg));
95832
95694
  }
95833
95695
  };
95834
- module22.exports = Connection2;
95696
+ module22.exports = Connection;
95835
95697
  }
95836
95698
  });
95837
95699
  var require_split2 = __commonJS2({
@@ -95975,8 +95837,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
95975
95837
  return old;
95976
95838
  };
95977
95839
  module22.exports.getFileName = function(rawEnv) {
95978
- var env2 = rawEnv || process.env;
95979
- var file2 = env2.PGPASSFILE || (isWin ? path3.join(env2.APPDATA || "./", "postgresql", "pgpass.conf") : path3.join(env2.HOME || "./", ".pgpass"));
95840
+ var env = rawEnv || process.env;
95841
+ var file2 = env.PGPASSFILE || (isWin ? path3.join(env.APPDATA || "./", "postgresql", "pgpass.conf") : path3.join(env.HOME || "./", ".pgpass"));
95980
95842
  return file2;
95981
95843
  };
95982
95844
  module22.exports.usePgPass = function(stats, fname) {
@@ -96123,18 +95985,18 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96123
95985
  }
96124
95986
  });
96125
95987
  var require_client = __commonJS2({
96126
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/client.js"(exports22, module22) {
95988
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/client.js"(exports22, module22) {
96127
95989
  "use strict";
96128
95990
  var EventEmitter = __require("events").EventEmitter;
96129
95991
  var utils = require_utils6();
96130
95992
  var sasl = require_sasl();
96131
- var TypeOverrides2 = require_type_overrides();
95993
+ var TypeOverrides = require_type_overrides();
96132
95994
  var ConnectionParameters = require_connection_parameters();
96133
- var Query2 = require_query2();
96134
- var defaults2 = require_defaults2();
96135
- var Connection2 = require_connection3();
95995
+ var Query = require_query2();
95996
+ var defaults = require_defaults2();
95997
+ var Connection = require_connection3();
96136
95998
  var crypto7 = require_utils7();
96137
- var Client2 = class extends EventEmitter {
95999
+ var Client = class extends EventEmitter {
96138
96000
  constructor(config3) {
96139
96001
  super();
96140
96002
  this.connectionParameters = new ConnectionParameters(config3);
@@ -96149,9 +96011,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96149
96011
  value: this.connectionParameters.password
96150
96012
  });
96151
96013
  this.replication = this.connectionParameters.replication;
96152
- const c2 = config3 || {};
96014
+ var c2 = config3 || {};
96153
96015
  this._Promise = c2.Promise || global.Promise;
96154
- this._types = new TypeOverrides2(c2.types);
96016
+ this._types = new TypeOverrides(c2.types);
96155
96017
  this._ending = false;
96156
96018
  this._ended = false;
96157
96019
  this._connecting = false;
@@ -96159,7 +96021,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96159
96021
  this._connectionError = false;
96160
96022
  this._queryable = true;
96161
96023
  this.enableChannelBinding = Boolean(c2.enableChannelBinding);
96162
- this.connection = c2.connection || new Connection2({
96024
+ this.connection = c2.connection || new Connection({
96163
96025
  stream: c2.stream,
96164
96026
  ssl: this.connectionParameters.ssl,
96165
96027
  keepAlive: c2.keepAlive || false,
@@ -96167,7 +96029,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96167
96029
  encoding: this.connectionParameters.client_encoding || "utf8"
96168
96030
  });
96169
96031
  this.queryQueue = [];
96170
- this.binary = c2.binary || defaults2.binary;
96032
+ this.binary = c2.binary || defaults.binary;
96171
96033
  this.processID = null;
96172
96034
  this.secretKey = null;
96173
96035
  this.ssl = this.connectionParameters.ssl || false;
@@ -96192,8 +96054,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96192
96054
  this.queryQueue.length = 0;
96193
96055
  }
96194
96056
  _connect(callback) {
96195
- const self2 = this;
96196
- const con = this.connection;
96057
+ var self2 = this;
96058
+ var con = this.connection;
96197
96059
  this._connectionCallback = callback;
96198
96060
  if (this._connecting || this._connected) {
96199
96061
  const err = new Error("Client has already been connected. You cannot reuse a client.");
@@ -96389,7 +96251,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96389
96251
  }
96390
96252
  this._pulseQueryQueue();
96391
96253
  }
96392
- // if we receive an error event or error message
96254
+ // if we receieve an error event or error message
96393
96255
  // during the connection process we handle it here
96394
96256
  _handleErrorWhileConnecting(err) {
96395
96257
  if (this._connectionError) {
@@ -96469,12 +96331,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96469
96331
  this.emit("notice", msg);
96470
96332
  }
96471
96333
  getStartupConf() {
96472
- const params = this.connectionParameters;
96473
- const data = {
96334
+ var params = this.connectionParameters;
96335
+ var data = {
96474
96336
  user: params.user,
96475
96337
  database: params.database
96476
96338
  };
96477
- const appName = params.application_name || params.fallback_application_name;
96339
+ var appName = params.application_name || params.fallback_application_name;
96478
96340
  if (appName) {
96479
96341
  data.application_name = appName;
96480
96342
  }
@@ -96497,7 +96359,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96497
96359
  }
96498
96360
  cancel(client, query2) {
96499
96361
  if (client.activeQuery === query2) {
96500
- const con = this.connection;
96362
+ var con = this.connection;
96501
96363
  if (this.host && this.host.indexOf("/") === 0) {
96502
96364
  con.connect(this.host + "/.s.PGSQL." + this.port);
96503
96365
  } else {
@@ -96546,11 +96408,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96546
96408
  }
96547
96409
  }
96548
96410
  query(config3, values, callback) {
96549
- let query2;
96550
- let result;
96551
- let readTimeout;
96552
- let readTimeoutTimer;
96553
- let queryCallback;
96411
+ var query2;
96412
+ var result;
96413
+ var readTimeout;
96414
+ var readTimeoutTimer;
96415
+ var queryCallback;
96554
96416
  if (config3 === null || config3 === void 0) {
96555
96417
  throw new TypeError("Client was passed a null or undefined query");
96556
96418
  } else if (typeof config3.submit === "function") {
@@ -96561,7 +96423,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96561
96423
  }
96562
96424
  } else {
96563
96425
  readTimeout = config3.query_timeout || this.connectionParameters.query_timeout;
96564
- query2 = new Query2(config3, values, callback);
96426
+ query2 = new Query(config3, values, callback);
96565
96427
  if (!query2.callback) {
96566
96428
  result = new this._Promise((resolve, reject) => {
96567
96429
  query2.callback = (err, res) => err ? reject(err) : resolve(res);
@@ -96574,14 +96436,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96574
96436
  if (readTimeout) {
96575
96437
  queryCallback = query2.callback;
96576
96438
  readTimeoutTimer = setTimeout(() => {
96577
- const error44 = new Error("Query read timeout");
96439
+ var error44 = new Error("Query read timeout");
96578
96440
  process.nextTick(() => {
96579
96441
  query2.handleError(error44, this.connection);
96580
96442
  });
96581
96443
  queryCallback(error44);
96582
96444
  query2.callback = () => {
96583
96445
  };
96584
- const index = this.queryQueue.indexOf(query2);
96446
+ var index = this.queryQueue.indexOf(query2);
96585
96447
  if (index > -1) {
96586
96448
  this.queryQueue.splice(index, 1);
96587
96449
  }
@@ -96643,12 +96505,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96643
96505
  }
96644
96506
  }
96645
96507
  };
96646
- Client2.Query = Query2;
96647
- module22.exports = Client2;
96508
+ Client.Query = Query;
96509
+ module22.exports = Client;
96648
96510
  }
96649
96511
  });
96650
96512
  var require_pg_pool = __commonJS2({
96651
- "../../node_modules/.pnpm/pg-pool@3.10.1_pg@8.16.3/node_modules/pg-pool/index.js"(exports22, module22) {
96513
+ "../../node_modules/.pnpm/pg-pool@3.8.0_pg@8.14.1/node_modules/pg-pool/index.js"(exports22, module22) {
96652
96514
  "use strict";
96653
96515
  var EventEmitter = __require("events").EventEmitter;
96654
96516
  var NOOP = function() {
@@ -96701,8 +96563,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96701
96563
  pool2.emit("error", err, client);
96702
96564
  };
96703
96565
  }
96704
- var Pool2 = class extends EventEmitter {
96705
- constructor(options, Client2) {
96566
+ var Pool = class extends EventEmitter {
96567
+ constructor(options, Client) {
96706
96568
  super();
96707
96569
  this.options = Object.assign({}, options);
96708
96570
  if (options != null && "password" in options) {
@@ -96719,13 +96581,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96719
96581
  });
96720
96582
  }
96721
96583
  this.options.max = this.options.max || this.options.poolSize || 10;
96722
- this.options.min = this.options.min || 0;
96723
96584
  this.options.maxUses = this.options.maxUses || Infinity;
96724
96585
  this.options.allowExitOnIdle = this.options.allowExitOnIdle || false;
96725
96586
  this.options.maxLifetimeSeconds = this.options.maxLifetimeSeconds || 0;
96726
96587
  this.log = this.options.log || function() {
96727
96588
  };
96728
- this.Client = this.options.Client || Client2 || require_lib4().Client;
96589
+ this.Client = this.options.Client || Client || require_lib4().Client;
96729
96590
  this.Promise = this.options.Promise || global.Promise;
96730
96591
  if (typeof this.options.idleTimeoutMillis === "undefined") {
96731
96592
  this.options.idleTimeoutMillis = 1e4;
@@ -96741,9 +96602,6 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96741
96602
  _isFull() {
96742
96603
  return this._clients.length >= this.options.max;
96743
96604
  }
96744
- _isAboveMin() {
96745
- return this._clients.length > this.options.min;
96746
- }
96747
96605
  _pulseQueue() {
96748
96606
  this.log("pulse queue");
96749
96607
  if (this.ended) {
@@ -96784,19 +96642,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96784
96642
  }
96785
96643
  throw new Error("unexpected condition");
96786
96644
  }
96787
- _remove(client, callback) {
96645
+ _remove(client) {
96788
96646
  const removed = removeWhere(this._idle, (item) => item.client === client);
96789
96647
  if (removed !== void 0) {
96790
96648
  clearTimeout(removed.timeoutId);
96791
96649
  }
96792
96650
  this._clients = this._clients.filter((c2) => c2 !== client);
96793
- const context2 = this;
96794
- client.end(() => {
96795
- context2.emit("remove", client);
96796
- if (typeof callback === "function") {
96797
- callback();
96798
- }
96799
- });
96651
+ client.end();
96652
+ this.emit("remove", client);
96800
96653
  }
96801
96654
  connect(cb) {
96802
96655
  if (this.ending) {
@@ -96934,19 +96787,23 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
96934
96787
  if (client._poolUseCount >= this.options.maxUses) {
96935
96788
  this.log("remove expended client");
96936
96789
  }
96937
- return this._remove(client, this._pulseQueue.bind(this));
96790
+ this._remove(client);
96791
+ this._pulseQueue();
96792
+ return;
96938
96793
  }
96939
96794
  const isExpired = this._expired.has(client);
96940
96795
  if (isExpired) {
96941
96796
  this.log("remove expired client");
96942
96797
  this._expired.delete(client);
96943
- return this._remove(client, this._pulseQueue.bind(this));
96798
+ this._remove(client);
96799
+ this._pulseQueue();
96800
+ return;
96944
96801
  }
96945
96802
  let tid;
96946
- if (this.options.idleTimeoutMillis && this._isAboveMin()) {
96803
+ if (this.options.idleTimeoutMillis) {
96947
96804
  tid = setTimeout(() => {
96948
96805
  this.log("remove idle client");
96949
- this._remove(client, this._pulseQueue.bind(this));
96806
+ this._remove(client);
96950
96807
  }, this.options.idleTimeoutMillis);
96951
96808
  if (this.options.allowExitOnIdle) {
96952
96809
  tid.unref();
@@ -97033,11 +96890,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97033
96890
  return this._clients.length;
97034
96891
  }
97035
96892
  };
97036
- module22.exports = Pool2;
96893
+ module22.exports = Pool;
97037
96894
  }
97038
96895
  });
97039
96896
  var require_query3 = __commonJS2({
97040
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/native/query.js"(exports22, module22) {
96897
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/native/query.js"(exports22, module22) {
97041
96898
  "use strict";
97042
96899
  var EventEmitter = __require("events").EventEmitter;
97043
96900
  var util2 = __require("util");
@@ -97063,6 +96920,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97063
96920
  };
97064
96921
  util2.inherits(NativeQuery, EventEmitter);
97065
96922
  var errorFieldMap = {
96923
+ /* eslint-disable quote-props */
97066
96924
  sqlState: "code",
97067
96925
  statementPosition: "position",
97068
96926
  messagePrimary: "message",
@@ -97077,10 +96935,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97077
96935
  sourceFunction: "routine"
97078
96936
  };
97079
96937
  NativeQuery.prototype.handleError = function(err) {
97080
- const fields = this.native.pq.resultErrorFields();
96938
+ var fields = this.native.pq.resultErrorFields();
97081
96939
  if (fields) {
97082
- for (const key in fields) {
97083
- const normalizedFieldName = errorFieldMap[key] || key;
96940
+ for (var key in fields) {
96941
+ var normalizedFieldName = errorFieldMap[key] || key;
97084
96942
  err[normalizedFieldName] = fields[key];
97085
96943
  }
97086
96944
  }
@@ -97110,10 +96968,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97110
96968
  };
97111
96969
  NativeQuery.prototype.submit = function(client) {
97112
96970
  this.state = "running";
97113
- const self2 = this;
96971
+ var self2 = this;
97114
96972
  this.native = client.native;
97115
96973
  client.native.arrayMode = this._arrayMode;
97116
- let after = function(err, rows, results) {
96974
+ var after = function(err, rows, results) {
97117
96975
  client.native.arrayMode = false;
97118
96976
  setImmediate(function() {
97119
96977
  self2.emit("_done");
@@ -97149,7 +97007,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97149
97007
  console.error("You supplied %s (%s)", this.name, this.name.length);
97150
97008
  console.error("This can cause conflicts and silent errors executing queries");
97151
97009
  }
97152
- const values = (this.values || []).map(utils.prepareValue);
97010
+ var values = (this.values || []).map(utils.prepareValue);
97153
97011
  if (client.namedQueries[this.name]) {
97154
97012
  if (this.text && client.namedQueries[this.name] !== this.text) {
97155
97013
  const err = new Error(`Prepared statements must be unique - '${this.name}' was used for a different statement`);
@@ -97168,7 +97026,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97168
97026
  const err = new Error("Query values must be an array");
97169
97027
  return after(err);
97170
97028
  }
97171
- const vals = this.values.map(utils.prepareValue);
97029
+ var vals = this.values.map(utils.prepareValue);
97172
97030
  client.native.query(this.text, vals, after);
97173
97031
  } else if (this.queryMode === "extended") {
97174
97032
  client.native.query(this.text, [], after);
@@ -97179,7 +97037,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97179
97037
  }
97180
97038
  });
97181
97039
  var require_client2 = __commonJS2({
97182
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/native/client.js"(exports22, module22) {
97040
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/native/client.js"(exports22, module22) {
97183
97041
  "use strict";
97184
97042
  var Native;
97185
97043
  try {
@@ -97187,16 +97045,16 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97187
97045
  } catch (e2) {
97188
97046
  throw e2;
97189
97047
  }
97190
- var TypeOverrides2 = require_type_overrides();
97048
+ var TypeOverrides = require_type_overrides();
97191
97049
  var EventEmitter = __require("events").EventEmitter;
97192
97050
  var util2 = __require("util");
97193
97051
  var ConnectionParameters = require_connection_parameters();
97194
97052
  var NativeQuery = require_query3();
97195
- var Client2 = module22.exports = function(config3) {
97053
+ var Client = module22.exports = function(config3) {
97196
97054
  EventEmitter.call(this);
97197
97055
  config3 = config3 || {};
97198
97056
  this._Promise = config3.Promise || global.Promise;
97199
- this._types = new TypeOverrides2(config3.types);
97057
+ this._types = new TypeOverrides(config3.types);
97200
97058
  this.native = new Native({
97201
97059
  types: this._types
97202
97060
  });
@@ -97205,7 +97063,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97205
97063
  this._connecting = false;
97206
97064
  this._connected = false;
97207
97065
  this._queryable = true;
97208
- const cp = this.connectionParameters = new ConnectionParameters(config3);
97066
+ var cp = this.connectionParameters = new ConnectionParameters(config3);
97209
97067
  if (config3.nativeConnectionString)
97210
97068
  cp.nativeConnectionString = config3.nativeConnectionString;
97211
97069
  this.user = cp.user;
@@ -97220,9 +97078,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97220
97078
  this.port = cp.port;
97221
97079
  this.namedQueries = {};
97222
97080
  };
97223
- Client2.Query = NativeQuery;
97224
- util2.inherits(Client2, EventEmitter);
97225
- Client2.prototype._errorAllQueries = function(err) {
97081
+ Client.Query = NativeQuery;
97082
+ util2.inherits(Client, EventEmitter);
97083
+ Client.prototype._errorAllQueries = function(err) {
97226
97084
  const enqueueError = (query2) => {
97227
97085
  process.nextTick(() => {
97228
97086
  query2.native = this.native;
@@ -97236,8 +97094,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97236
97094
  this._queryQueue.forEach(enqueueError);
97237
97095
  this._queryQueue.length = 0;
97238
97096
  };
97239
- Client2.prototype._connect = function(cb) {
97240
- const self2 = this;
97097
+ Client.prototype._connect = function(cb) {
97098
+ var self2 = this;
97241
97099
  if (this._connecting) {
97242
97100
  process.nextTick(() => cb(new Error("Client has already been connected. You cannot reuse a client.")));
97243
97101
  return;
@@ -97271,7 +97129,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97271
97129
  });
97272
97130
  });
97273
97131
  };
97274
- Client2.prototype.connect = function(callback) {
97132
+ Client.prototype.connect = function(callback) {
97275
97133
  if (callback) {
97276
97134
  this._connect(callback);
97277
97135
  return;
@@ -97286,12 +97144,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97286
97144
  });
97287
97145
  });
97288
97146
  };
97289
- Client2.prototype.query = function(config3, values, callback) {
97290
- let query2;
97291
- let result;
97292
- let readTimeout;
97293
- let readTimeoutTimer;
97294
- let queryCallback;
97147
+ Client.prototype.query = function(config3, values, callback) {
97148
+ var query2;
97149
+ var result;
97150
+ var readTimeout;
97151
+ var readTimeoutTimer;
97152
+ var queryCallback;
97295
97153
  if (config3 === null || config3 === void 0) {
97296
97154
  throw new TypeError("Client was passed a null or undefined query");
97297
97155
  } else if (typeof config3.submit === "function") {
@@ -97318,14 +97176,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97318
97176
  if (readTimeout) {
97319
97177
  queryCallback = query2.callback;
97320
97178
  readTimeoutTimer = setTimeout(() => {
97321
- const error44 = new Error("Query read timeout");
97179
+ var error44 = new Error("Query read timeout");
97322
97180
  process.nextTick(() => {
97323
97181
  query2.handleError(error44, this.connection);
97324
97182
  });
97325
97183
  queryCallback(error44);
97326
97184
  query2.callback = () => {
97327
97185
  };
97328
- const index = this._queryQueue.indexOf(query2);
97186
+ var index = this._queryQueue.indexOf(query2);
97329
97187
  if (index > -1) {
97330
97188
  this._queryQueue.splice(index, 1);
97331
97189
  }
@@ -97354,13 +97212,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97354
97212
  this._pulseQueryQueue();
97355
97213
  return result;
97356
97214
  };
97357
- Client2.prototype.end = function(cb) {
97358
- const self2 = this;
97215
+ Client.prototype.end = function(cb) {
97216
+ var self2 = this;
97359
97217
  this._ending = true;
97360
97218
  if (!this._connected) {
97361
97219
  this.once("connect", this.end.bind(this, cb));
97362
97220
  }
97363
- let result;
97221
+ var result;
97364
97222
  if (!cb) {
97365
97223
  result = new this._Promise(function(resolve, reject) {
97366
97224
  cb = (err) => err ? reject(err) : resolve();
@@ -97376,17 +97234,17 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97376
97234
  });
97377
97235
  return result;
97378
97236
  };
97379
- Client2.prototype._hasActiveQuery = function() {
97237
+ Client.prototype._hasActiveQuery = function() {
97380
97238
  return this._activeQuery && this._activeQuery.state !== "error" && this._activeQuery.state !== "end";
97381
97239
  };
97382
- Client2.prototype._pulseQueryQueue = function(initialConnection) {
97240
+ Client.prototype._pulseQueryQueue = function(initialConnection) {
97383
97241
  if (!this._connected) {
97384
97242
  return;
97385
97243
  }
97386
97244
  if (this._hasActiveQuery()) {
97387
97245
  return;
97388
97246
  }
97389
- const query2 = this._queryQueue.shift();
97247
+ var query2 = this._queryQueue.shift();
97390
97248
  if (!query2) {
97391
97249
  if (!initialConnection) {
97392
97250
  this.emit("drain");
@@ -97395,12 +97253,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97395
97253
  }
97396
97254
  this._activeQuery = query2;
97397
97255
  query2.submit(this);
97398
- const self2 = this;
97256
+ var self2 = this;
97399
97257
  query2.once("_done", function() {
97400
97258
  self2._pulseQueryQueue();
97401
97259
  });
97402
97260
  };
97403
- Client2.prototype.cancel = function(query2) {
97261
+ Client.prototype.cancel = function(query2) {
97404
97262
  if (this._activeQuery === query2) {
97405
97263
  this.native.cancel(function() {
97406
97264
  });
@@ -97408,67 +97266,61 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97408
97266
  this._queryQueue.splice(this._queryQueue.indexOf(query2), 1);
97409
97267
  }
97410
97268
  };
97411
- Client2.prototype.ref = function() {
97269
+ Client.prototype.ref = function() {
97412
97270
  };
97413
- Client2.prototype.unref = function() {
97271
+ Client.prototype.unref = function() {
97414
97272
  };
97415
- Client2.prototype.setTypeParser = function(oid, format, parseFn) {
97273
+ Client.prototype.setTypeParser = function(oid, format, parseFn) {
97416
97274
  return this._types.setTypeParser(oid, format, parseFn);
97417
97275
  };
97418
- Client2.prototype.getTypeParser = function(oid, format) {
97276
+ Client.prototype.getTypeParser = function(oid, format) {
97419
97277
  return this._types.getTypeParser(oid, format);
97420
97278
  };
97421
97279
  }
97422
97280
  });
97423
97281
  var require_native = __commonJS2({
97424
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/native/index.js"(exports22, module22) {
97282
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/native/index.js"(exports22, module22) {
97425
97283
  "use strict";
97426
97284
  module22.exports = require_client2();
97427
97285
  }
97428
97286
  });
97429
97287
  var require_lib4 = __commonJS2({
97430
- "../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/index.js"(exports22, module22) {
97431
- "use strict";
97432
- var Client2 = require_client();
97433
- var defaults2 = require_defaults2();
97434
- var Connection2 = require_connection3();
97435
- var Result2 = require_result();
97436
- var utils = require_utils6();
97437
- var Pool2 = require_pg_pool();
97438
- var TypeOverrides2 = require_type_overrides();
97439
- var { DatabaseError: DatabaseError2 } = require_dist4();
97440
- var { escapeIdentifier: escapeIdentifier2, escapeLiteral: escapeLiteral2 } = require_utils6();
97441
- var poolFactory = (Client3) => {
97442
- return class BoundPool extends Pool2 {
97288
+ "../../node_modules/.pnpm/pg@8.14.1/node_modules/pg/lib/index.js"(exports22, module22) {
97289
+ "use strict";
97290
+ var Client = require_client();
97291
+ var defaults = require_defaults2();
97292
+ var Connection = require_connection3();
97293
+ var Pool = require_pg_pool();
97294
+ var { DatabaseError } = require_dist4();
97295
+ var { escapeIdentifier, escapeLiteral } = require_utils6();
97296
+ var poolFactory = (Client2) => {
97297
+ return class BoundPool extends Pool {
97443
97298
  constructor(options) {
97444
- super(options, Client3);
97299
+ super(options, Client2);
97445
97300
  }
97446
97301
  };
97447
97302
  };
97448
97303
  var PG = function(clientConstructor) {
97449
- this.defaults = defaults2;
97304
+ this.defaults = defaults;
97450
97305
  this.Client = clientConstructor;
97451
97306
  this.Query = this.Client.Query;
97452
97307
  this.Pool = poolFactory(this.Client);
97453
97308
  this._pools = [];
97454
- this.Connection = Connection2;
97309
+ this.Connection = Connection;
97455
97310
  this.types = require_pg_types();
97456
- this.DatabaseError = DatabaseError2;
97457
- this.TypeOverrides = TypeOverrides2;
97458
- this.escapeIdentifier = escapeIdentifier2;
97459
- this.escapeLiteral = escapeLiteral2;
97460
- this.Result = Result2;
97461
- this.utils = utils;
97311
+ this.DatabaseError = DatabaseError;
97312
+ this.escapeIdentifier = escapeIdentifier;
97313
+ this.escapeLiteral = escapeLiteral;
97462
97314
  };
97463
97315
  if (typeof process.env.NODE_PG_FORCE_NATIVE !== "undefined") {
97464
97316
  module22.exports = new PG(require_native());
97465
97317
  } else {
97466
- module22.exports = new PG(Client2);
97318
+ module22.exports = new PG(Client);
97467
97319
  Object.defineProperty(module22.exports, "native", {
97468
97320
  configurable: true,
97469
97321
  enumerable: false,
97470
97322
  get() {
97471
- let native = null;
97323
+ var native = null;
97472
97324
  try {
97473
97325
  native = new PG(require_native());
97474
97326
  } catch (err) {
@@ -97593,7 +97445,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
97593
97445
  withActiveLogger: () => withActiveLogger
97594
97446
  });
97595
97447
  module2.exports = __toCommonJS(index_exports);
97596
- var version4 = "7.0.1";
97448
+ var version4 = "6.18.0";
97597
97449
  function clampProp(e2, n2, t2, o2, r2) {
97598
97450
  return clampEntity(n2, ((e3, n3) => {
97599
97451
  const t3 = e3[n3];
@@ -101333,11 +101185,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
101333
101185
  if (/^\d+$/.test(value)) {
101334
101186
  return parseInteger(value);
101335
101187
  }
101336
- const match2 = value.match(/^([\d.]+)\s*([A-Za-z]+)$/);
101337
- if (!match2) {
101188
+ const match = value.match(/^([\d.]+)\s*([A-Za-z]+)$/);
101189
+ if (!match) {
101338
101190
  throw new Error(`Invalid size format: ${value}`);
101339
101191
  }
101340
- const [_3, numStr, unit] = match2;
101192
+ const [_3, numStr, unit] = match;
101341
101193
  const num = parseFloat(numStr);
101342
101194
  if (Number.isNaN(num)) {
101343
101195
  throw new Error(`Invalid size value: ${numStr}`);
@@ -102414,9 +102266,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
102414
102266
  };
102415
102267
  var extractGroupsFromPath = (path3) => {
102416
102268
  const groups = [];
102417
- path3 = path3.replace(/\{[^}]+\}/g, (match2, index) => {
102269
+ path3 = path3.replace(/\{[^}]+\}/g, (match, index) => {
102418
102270
  const mark = `@${index}`;
102419
- groups.push([mark, match2]);
102271
+ groups.push([mark, match]);
102420
102272
  return mark;
102421
102273
  });
102422
102274
  return { groups, path: path3 };
@@ -102438,14 +102290,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
102438
102290
  if (label === "*") {
102439
102291
  return "*";
102440
102292
  }
102441
- const match2 = label.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);
102442
- if (match2) {
102293
+ const match = label.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);
102294
+ if (match) {
102443
102295
  const cacheKey = `${label}#${next}`;
102444
102296
  if (!patternCache[cacheKey]) {
102445
- if (match2[2]) {
102446
- patternCache[cacheKey] = next && next[0] !== ":" && next[0] !== "*" ? [cacheKey, match2[1], new RegExp(`^${match2[2]}(?=/${next})`)] : [label, match2[1], new RegExp(`^${match2[2]}$`)];
102297
+ if (match[2]) {
102298
+ patternCache[cacheKey] = next && next[0] !== ":" && next[0] !== "*" ? [cacheKey, match[1], new RegExp(`^${match[2]}(?=/${next})`)] : [label, match[1], new RegExp(`^${match[2]}$`)];
102447
102299
  } else {
102448
- patternCache[cacheKey] = [label, match2[1], true];
102300
+ patternCache[cacheKey] = [label, match[1], true];
102449
102301
  }
102450
102302
  }
102451
102303
  return patternCache[cacheKey];
@@ -102456,11 +102308,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
102456
102308
  try {
102457
102309
  return decoder(str);
102458
102310
  } catch {
102459
- return str.replace(/(?:%[0-9A-Fa-f]{2})+/g, (match2) => {
102311
+ return str.replace(/(?:%[0-9A-Fa-f]{2})+/g, (match) => {
102460
102312
  try {
102461
- return decoder(match2);
102313
+ return decoder(match);
102462
102314
  } catch {
102463
- return match2;
102315
+ return match;
102464
102316
  }
102465
102317
  });
102466
102318
  }
@@ -102468,7 +102320,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
102468
102320
  var tryDecodeURI = (str) => tryDecode(str, decodeURI);
102469
102321
  var getPath = (request3) => {
102470
102322
  const url2 = request3.url;
102471
- const start = url2.indexOf("/", url2.indexOf(":") + 4);
102323
+ const start = url2.indexOf(
102324
+ "/",
102325
+ url2.charCodeAt(9) === 58 ? 13 : 8
102326
+ );
102472
102327
  let i2 = start;
102473
102328
  for (; i2 < url2.length; i2++) {
102474
102329
  const charCode = url2.charCodeAt(i2);
@@ -102531,12 +102386,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
102531
102386
  var _getQueryParam = (url2, key, multiple) => {
102532
102387
  let encoded;
102533
102388
  if (!multiple && key && !/[%+]/.test(key)) {
102534
- let keyIndex2 = url2.indexOf("?", 8);
102389
+ let keyIndex2 = url2.indexOf(`?${key}`, 8);
102535
102390
  if (keyIndex2 === -1) {
102536
- return void 0;
102537
- }
102538
- if (!url2.startsWith(key, keyIndex2 + 1)) {
102539
- keyIndex2 = url2.indexOf(`&${key}`, keyIndex2 + 1);
102391
+ keyIndex2 = url2.indexOf(`&${key}`, 8);
102540
102392
  }
102541
102393
  while (keyIndex2 !== -1) {
102542
102394
  const trailingKeyCode = url2.charCodeAt(keyIndex2 + key.length + 1);
@@ -102757,7 +102609,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
102757
102609
  return res;
102758
102610
  }
102759
102611
  c2.req.addValidatedData(target, res);
102760
- return await next();
102612
+ await next();
102761
102613
  };
102762
102614
  };
102763
102615
  var zValidator = (target, schema, hook, options) => (
@@ -102794,181 +102646,6 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
102794
102646
  return result.data;
102795
102647
  })
102796
102648
  );
102797
- function setClassName(classObject, name6) {
102798
- Object.defineProperty(classObject, "name", {
102799
- value: name6,
102800
- configurable: true
102801
- });
102802
- }
102803
- var PrismaClientInitializationError = class _PrismaClientInitializationError extends Error {
102804
- clientVersion;
102805
- errorCode;
102806
- retryable;
102807
- constructor(message, clientVersion, errorCode) {
102808
- super(message);
102809
- this.name = "PrismaClientInitializationError";
102810
- this.clientVersion = clientVersion;
102811
- this.errorCode = errorCode;
102812
- Error.captureStackTrace(_PrismaClientInitializationError);
102813
- }
102814
- get [Symbol.toStringTag]() {
102815
- return "PrismaClientInitializationError";
102816
- }
102817
- };
102818
- setClassName(PrismaClientInitializationError, "PrismaClientInitializationError");
102819
- var PrismaClientKnownRequestError = class extends Error {
102820
- code;
102821
- meta;
102822
- clientVersion;
102823
- batchRequestIdx;
102824
- constructor(message, { code, clientVersion, meta, batchRequestIdx }) {
102825
- super(message);
102826
- this.name = "PrismaClientKnownRequestError";
102827
- this.code = code;
102828
- this.clientVersion = clientVersion;
102829
- this.meta = meta;
102830
- Object.defineProperty(this, "batchRequestIdx", {
102831
- value: batchRequestIdx,
102832
- enumerable: false,
102833
- writable: true
102834
- });
102835
- }
102836
- get [Symbol.toStringTag]() {
102837
- return "PrismaClientKnownRequestError";
102838
- }
102839
- };
102840
- setClassName(PrismaClientKnownRequestError, "PrismaClientKnownRequestError");
102841
- function getBacktrace(log32) {
102842
- if (log32.fields?.message) {
102843
- let str = log32.fields?.message;
102844
- if (log32.fields?.file) {
102845
- str += ` in ${log32.fields.file}`;
102846
- if (log32.fields?.line) {
102847
- str += `:${log32.fields.line}`;
102848
- }
102849
- if (log32.fields?.column) {
102850
- str += `:${log32.fields.column}`;
102851
- }
102852
- }
102853
- if (log32.fields?.reason) {
102854
- str += `
102855
- ${log32.fields?.reason}`;
102856
- }
102857
- return str;
102858
- }
102859
- return "Unknown error";
102860
- }
102861
- function isPanic(err) {
102862
- return err.fields?.message === "PANIC";
102863
- }
102864
- var PrismaClientRustError = class extends Error {
102865
- clientVersion;
102866
- _isPanic;
102867
- constructor({ clientVersion, error: error44 }) {
102868
- const backtrace = getBacktrace(error44);
102869
- super(backtrace ?? "Unknown error");
102870
- this._isPanic = isPanic(error44);
102871
- this.clientVersion = clientVersion;
102872
- }
102873
- get [Symbol.toStringTag]() {
102874
- return "PrismaClientRustError";
102875
- }
102876
- isPanic() {
102877
- return this._isPanic;
102878
- }
102879
- };
102880
- setClassName(PrismaClientRustError, "PrismaClientRustError");
102881
- var PrismaClientRustPanicError = class extends Error {
102882
- clientVersion;
102883
- constructor(message, clientVersion) {
102884
- super(message);
102885
- this.name = "PrismaClientRustPanicError";
102886
- this.clientVersion = clientVersion;
102887
- }
102888
- get [Symbol.toStringTag]() {
102889
- return "PrismaClientRustPanicError";
102890
- }
102891
- };
102892
- setClassName(PrismaClientRustPanicError, "PrismaClientRustPanicError");
102893
- var PrismaClientUnknownRequestError = class extends Error {
102894
- clientVersion;
102895
- batchRequestIdx;
102896
- constructor(message, { clientVersion, batchRequestIdx }) {
102897
- super(message);
102898
- this.name = "PrismaClientUnknownRequestError";
102899
- this.clientVersion = clientVersion;
102900
- Object.defineProperty(this, "batchRequestIdx", {
102901
- value: batchRequestIdx,
102902
- writable: true,
102903
- enumerable: false
102904
- });
102905
- }
102906
- get [Symbol.toStringTag]() {
102907
- return "PrismaClientUnknownRequestError";
102908
- }
102909
- };
102910
- setClassName(PrismaClientUnknownRequestError, "PrismaClientUnknownRequestError");
102911
- var PrismaClientValidationError = class extends Error {
102912
- name = "PrismaClientValidationError";
102913
- clientVersion;
102914
- constructor(message, { clientVersion }) {
102915
- super(message);
102916
- this.clientVersion = clientVersion;
102917
- }
102918
- get [Symbol.toStringTag]() {
102919
- return "PrismaClientValidationError";
102920
- }
102921
- };
102922
- setClassName(PrismaClientValidationError, "PrismaClientValidationError");
102923
- var secret = Symbol();
102924
- var representations = /* @__PURE__ */ new WeakMap();
102925
- var ObjectEnumValue = class {
102926
- constructor(arg) {
102927
- if (arg === secret) {
102928
- representations.set(this, `Prisma.${this._getName()}`);
102929
- } else {
102930
- representations.set(this, `new Prisma.${this._getNamespace()}.${this._getName()}()`);
102931
- }
102932
- }
102933
- _getName() {
102934
- return this.constructor.name;
102935
- }
102936
- toString() {
102937
- return representations.get(this);
102938
- }
102939
- };
102940
- function setClassName2(classObject, name6) {
102941
- Object.defineProperty(classObject, "name", {
102942
- value: name6,
102943
- configurable: true
102944
- });
102945
- }
102946
- var NullTypesEnumValue = class extends ObjectEnumValue {
102947
- _getNamespace() {
102948
- return "NullTypes";
102949
- }
102950
- };
102951
- var DbNullClass = class extends NullTypesEnumValue {
102952
- // Phantom private property to prevent structural type equality
102953
- // eslint-disable-next-line no-unused-private-class-members
102954
- #_brand_DbNull;
102955
- };
102956
- setClassName2(DbNullClass, "DbNull");
102957
- var JsonNullClass = class extends NullTypesEnumValue {
102958
- // Phantom private property to prevent structural type equality
102959
- // eslint-disable-next-line no-unused-private-class-members
102960
- #_brand_JsonNull;
102961
- };
102962
- setClassName2(JsonNullClass, "JsonNull");
102963
- var AnyNullClass = class extends NullTypesEnumValue {
102964
- // Phantom private property to prevent structural type equality
102965
- // eslint-disable-next-line no-unused-private-class-members
102966
- #_brand_AnyNull;
102967
- };
102968
- setClassName2(AnyNullClass, "AnyNull");
102969
- var DbNull = new DbNullClass(secret);
102970
- var JsonNull = new JsonNullClass(secret);
102971
- var AnyNull = new AnyNullClass(secret);
102972
102649
  var EXP_LIMIT = 9e15;
102973
102650
  var MAX_DIGITS = 1e9;
102974
102651
  var NUMERALS = "0123456789abcdef";
@@ -105018,7 +104695,7 @@ ${log32.fields?.reason}`;
105018
104695
  function clone(obj) {
105019
104696
  var i2, p2, ps;
105020
104697
  function Decimal2(v2) {
105021
- var e2, i22, t2, x2 = this;
104698
+ var e2, i3, t2, x2 = this;
105022
104699
  if (!(x2 instanceof Decimal2))
105023
104700
  return new Decimal2(v2);
105024
104701
  x2.constructor = Decimal2;
@@ -105056,7 +104733,7 @@ ${log32.fields?.reason}`;
105056
104733
  x2.s = 1;
105057
104734
  }
105058
104735
  if (v2 === ~~v2 && v2 < 1e7) {
105059
- for (e2 = 0, i22 = v2; i22 >= 10; i22 /= 10)
104736
+ for (e2 = 0, i3 = v2; i3 >= 10; i3 /= 10)
105060
104737
  e2++;
105061
104738
  if (external) {
105062
104739
  if (e2 > Decimal2.maxE) {
@@ -105085,11 +104762,11 @@ ${log32.fields?.reason}`;
105085
104762
  return parseDecimal(x2, v2.toString());
105086
104763
  }
105087
104764
  if (t2 === "string") {
105088
- if ((i22 = v2.charCodeAt(0)) === 45) {
104765
+ if ((i3 = v2.charCodeAt(0)) === 45) {
105089
104766
  v2 = v2.slice(1);
105090
104767
  x2.s = -1;
105091
104768
  } else {
105092
- if (i22 === 43)
104769
+ if (i3 === 43)
105093
104770
  v2 = v2.slice(1);
105094
104771
  x2.s = 1;
105095
104772
  }
@@ -105328,73 +105005,7 @@ ${log32.fields?.reason}`;
105328
105005
  var Decimal = P2.constructor = clone(DEFAULTS);
105329
105006
  LN10 = new Decimal(LN10);
105330
105007
  PI = new Decimal(PI);
105331
- var Sql = class _Sql {
105332
- constructor(rawStrings, rawValues) {
105333
- if (rawStrings.length - 1 !== rawValues.length) {
105334
- if (rawStrings.length === 0) {
105335
- throw new TypeError("Expected at least 1 string");
105336
- }
105337
- throw new TypeError(`Expected ${rawStrings.length} strings to have ${rawStrings.length - 1} values`);
105338
- }
105339
- const valuesLength = rawValues.reduce((len, value) => len + (value instanceof _Sql ? value.values.length : 1), 0);
105340
- this.values = new Array(valuesLength);
105341
- this.strings = new Array(valuesLength + 1);
105342
- this.strings[0] = rawStrings[0];
105343
- let i2 = 0, pos = 0;
105344
- while (i2 < rawValues.length) {
105345
- const child = rawValues[i2++];
105346
- const rawString = rawStrings[i2];
105347
- if (child instanceof _Sql) {
105348
- this.strings[pos] += child.strings[0];
105349
- let childIndex = 0;
105350
- while (childIndex < child.values.length) {
105351
- this.values[pos++] = child.values[childIndex++];
105352
- this.strings[pos] = child.strings[childIndex];
105353
- }
105354
- this.strings[pos] += rawString;
105355
- } else {
105356
- this.values[pos++] = child;
105357
- this.strings[pos] = rawString;
105358
- }
105359
- }
105360
- }
105361
- get sql() {
105362
- const len = this.strings.length;
105363
- let i2 = 1;
105364
- let value = this.strings[0];
105365
- while (i2 < len)
105366
- value += `?${this.strings[i2++]}`;
105367
- return value;
105368
- }
105369
- get statement() {
105370
- const len = this.strings.length;
105371
- let i2 = 1;
105372
- let value = this.strings[0];
105373
- while (i2 < len)
105374
- value += `:${i2}${this.strings[i2++]}`;
105375
- return value;
105376
- }
105377
- get text() {
105378
- const len = this.strings.length;
105379
- let i2 = 1;
105380
- let value = this.strings[0];
105381
- while (i2 < len)
105382
- value += `$${i2}${this.strings[i2++]}`;
105383
- return value;
105384
- }
105385
- inspect() {
105386
- return {
105387
- sql: this.sql,
105388
- statement: this.statement,
105389
- text: this.text,
105390
- values: this.values
105391
- };
105392
- }
105393
- };
105394
- function raw(value) {
105395
- return new Sql([value], []);
105396
- }
105397
- var empty = raw("");
105008
+ var decimal_default = Decimal;
105398
105009
  var __defProp2 = Object.defineProperty;
105399
105010
  var __export2 = (target, all) => {
105400
105011
  for (var name6 in all)
@@ -105925,7 +105536,7 @@ ${log32.fields?.reason}`;
105925
105536
  if (typeof lhs[key] === typeof rhs[key] && typeof lhs[key] !== "object") {
105926
105537
  return lhs[key] === rhs[key];
105927
105538
  }
105928
- if (Decimal.isDecimal(lhs[key]) || Decimal.isDecimal(rhs[key])) {
105539
+ if (decimal_default.isDecimal(lhs[key]) || decimal_default.isDecimal(rhs[key])) {
105929
105540
  const lhsDecimal = asDecimal(lhs[key]);
105930
105541
  const rhsDecimal = asDecimal(rhs[key]);
105931
105542
  return lhsDecimal && rhsDecimal && lhsDecimal.equals(rhsDecimal);
@@ -105944,10 +105555,10 @@ ${log32.fields?.reason}`;
105944
105555
  });
105945
105556
  }
105946
105557
  function asDecimal(value) {
105947
- if (Decimal.isDecimal(value)) {
105558
+ if (decimal_default.isDecimal(value)) {
105948
105559
  return value;
105949
105560
  } else if (typeof value === "number" || typeof value === "string") {
105950
- return new Decimal(value);
105561
+ return new decimal_default(value);
105951
105562
  } else {
105952
105563
  return;
105953
105564
  }
@@ -106397,7 +106008,7 @@ ${log32.fields?.reason}`;
106397
106008
  throw new DataMapperError(`Expected a boolean in column '${columnName}', got ${typeof value}: ${value}`);
106398
106009
  }
106399
106010
  case "decimal":
106400
- if (typeof value !== "number" && typeof value !== "string" && !Decimal.isDecimal(value)) {
106011
+ if (typeof value !== "number" && typeof value !== "string" && !decimal_default.isDecimal(value)) {
106401
106012
  throw new DataMapperError(`Expected a decimal in column '${columnName}', got ${typeof value}: ${value}`);
106402
106013
  }
106403
106014
  return { $type: "Decimal", value };
@@ -107794,13 +107405,8 @@ ${log32.fields?.reason}`;
107794
107405
  await this.#withQuerySpanAndEvent(PHANTOM_COMMIT_QUERY(), tx.transaction, () => tx.transaction.commit());
107795
107406
  } else {
107796
107407
  const query2 = COMMIT_QUERY();
107797
- await this.#withQuerySpanAndEvent(query2, tx.transaction, () => tx.transaction.executeRaw(query2)).then(
107798
- () => tx.transaction.commit(),
107799
- (err) => {
107800
- const fail = () => Promise.reject(err);
107801
- return tx.transaction.rollback().then(fail, fail);
107802
- }
107803
- );
107408
+ await this.#withQuerySpanAndEvent(query2, tx.transaction, () => tx.transaction.executeRaw(query2));
107409
+ await tx.transaction.commit();
107804
107410
  }
107805
107411
  } else if (tx.transaction) {
107806
107412
  if (tx.transaction.options.usePhantomQuery) {
@@ -107811,11 +107417,8 @@ ${log32.fields?.reason}`;
107811
107417
  );
107812
107418
  } else {
107813
107419
  const query2 = ROLLBACK_QUERY();
107814
- try {
107815
- await this.#withQuerySpanAndEvent(query2, tx.transaction, () => tx.transaction.executeRaw(query2));
107816
- } finally {
107817
- await tx.transaction.rollback();
107818
- }
107420
+ await this.#withQuerySpanAndEvent(query2, tx.transaction, () => tx.transaction.executeRaw(query2));
107421
+ await tx.transaction.rollback();
107819
107422
  }
107820
107423
  }
107821
107424
  } finally {
@@ -107996,14 +107599,14 @@ ${log32.fields?.reason}`;
107996
107599
  #getDecodedParam(key) {
107997
107600
  const paramKey = this.#matchResult[0][this.routeIndex][1][key];
107998
107601
  const param = this.#getParamValue(paramKey);
107999
- return param && /\%/.test(param) ? tryDecodeURIComponent(param) : param;
107602
+ return param ? /\%/.test(param) ? tryDecodeURIComponent(param) : param : void 0;
108000
107603
  }
108001
107604
  #getAllDecodedParams() {
108002
107605
  const decoded = {};
108003
107606
  const keys = Object.keys(this.#matchResult[0][this.routeIndex][1]);
108004
107607
  for (const key of keys) {
108005
107608
  const value = this.#getParamValue(this.#matchResult[0][this.routeIndex][1][key]);
108006
- if (value !== void 0) {
107609
+ if (value && typeof value === "string") {
108007
107610
  decoded[key] = /\%/.test(value) ? tryDecodeURIComponent(value) : value;
108008
107611
  }
108009
107612
  }
@@ -108032,7 +107635,7 @@ ${log32.fields?.reason}`;
108032
107635
  return this.bodyCache.parsedBody ??= await parseBody(this, options);
108033
107636
  }
108034
107637
  #cachedBody = (key) => {
108035
- const { bodyCache, raw: raw3 } = this;
107638
+ const { bodyCache, raw: raw2 } = this;
108036
107639
  const cachedBody = bodyCache[key];
108037
107640
  if (cachedBody) {
108038
107641
  return cachedBody;
@@ -108046,7 +107649,7 @@ ${log32.fields?.reason}`;
108046
107649
  return new Response(body)[key]();
108047
107650
  });
108048
107651
  }
108049
- return bodyCache[key] = raw3[key]();
107652
+ return bodyCache[key] = raw2[key]();
108050
107653
  };
108051
107654
  json() {
108052
107655
  return this.#cachedBody("text").then((text) => JSON.parse(text));
@@ -108090,7 +107693,7 @@ ${log32.fields?.reason}`;
108090
107693
  BeforeStream: 2,
108091
107694
  Stream: 3
108092
107695
  };
108093
- var raw2 = (value, callbacks) => {
107696
+ var raw = (value, callbacks) => {
108094
107697
  const escapedString = new String(value);
108095
107698
  escapedString.isEscaped = true;
108096
107699
  escapedString.callbacks = callbacks;
@@ -108120,7 +107723,7 @@ ${log32.fields?.reason}`;
108120
107723
  ).then(() => buffer[0])
108121
107724
  );
108122
107725
  if (preserveCallbacks) {
108123
- return raw2(await resStr, callbacks);
107726
+ return raw(await resStr, callbacks);
108124
107727
  } else {
108125
107728
  return resStr;
108126
107729
  }
@@ -108472,16 +108075,16 @@ ${log32.fields?.reason}`;
108472
108075
  }
108473
108076
  throw err;
108474
108077
  }
108475
- #dispatch(request3, executionCtx, env2, method) {
108078
+ #dispatch(request3, executionCtx, env, method) {
108476
108079
  if (method === "HEAD") {
108477
- return (async () => new Response(null, await this.#dispatch(request3, executionCtx, env2, "GET")))();
108080
+ return (async () => new Response(null, await this.#dispatch(request3, executionCtx, env, "GET")))();
108478
108081
  }
108479
- const path3 = this.getPath(request3, { env: env2 });
108082
+ const path3 = this.getPath(request3, { env });
108480
108083
  const matchResult = this.router.match(method, path3);
108481
108084
  const c2 = new Context(request3, {
108482
108085
  path: path3,
108483
108086
  matchResult,
108484
- env: env2,
108087
+ env,
108485
108088
  executionCtx,
108486
108089
  notFoundHandler: this.#notFoundHandler
108487
108090
  });
@@ -108536,25 +108139,6 @@ ${log32.fields?.reason}`;
108536
108139
  });
108537
108140
  };
108538
108141
  };
108539
- var emptyParam = [];
108540
- function match(method, path3) {
108541
- const matchers = this.buildAllMatchers();
108542
- const match2 = (method2, path22) => {
108543
- const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
108544
- const staticMatch = matcher[2][path22];
108545
- if (staticMatch) {
108546
- return staticMatch;
108547
- }
108548
- const match3 = path22.match(matcher[0]);
108549
- if (!match3) {
108550
- return [[], emptyParam];
108551
- }
108552
- const index = match3.indexOf("", 1);
108553
- return [matcher[1][index], match3];
108554
- };
108555
- this.match = match2;
108556
- return match2(method, path3);
108557
- }
108558
108142
  var LABEL_REG_EXP_STR = "[^/]+";
108559
108143
  var ONLY_WILDCARD_REG_EXP_STR = ".*";
108560
108144
  var TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
@@ -108715,6 +108299,7 @@ ${log32.fields?.reason}`;
108715
108299
  return [new RegExp(`^${regexp}`), indexReplacementMap, paramReplacementMap];
108716
108300
  }
108717
108301
  };
108302
+ var emptyParam = [];
108718
108303
  var nullMatcher = [/^$/, [], /* @__PURE__ */ Object.create(null)];
108719
108304
  var wildcardRegExpCache = /* @__PURE__ */ Object.create(null);
108720
108305
  function buildWildcardRegExp(path3) {
@@ -108861,14 +108446,30 @@ ${log32.fields?.reason}`;
108861
108446
  });
108862
108447
  }
108863
108448
  }
108864
- match = match;
108865
- buildAllMatchers() {
108449
+ match(method, path3) {
108450
+ clearWildcardRegExpCache();
108451
+ const matchers = this.#buildAllMatchers();
108452
+ this.match = (method2, path22) => {
108453
+ const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
108454
+ const staticMatch = matcher[2][path22];
108455
+ if (staticMatch) {
108456
+ return staticMatch;
108457
+ }
108458
+ const match = path22.match(matcher[0]);
108459
+ if (!match) {
108460
+ return [[], emptyParam];
108461
+ }
108462
+ const index = match.indexOf("", 1);
108463
+ return [matcher[1][index], match];
108464
+ };
108465
+ return this.match(method, path3);
108466
+ }
108467
+ #buildAllMatchers() {
108866
108468
  const matchers = /* @__PURE__ */ Object.create(null);
108867
108469
  Object.keys(this.#routes).concat(Object.keys(this.#middleware)).forEach((method) => {
108868
108470
  matchers[method] ||= this.#buildMatcher(method);
108869
108471
  });
108870
108472
  this.#middleware = this.#routes = void 0;
108871
- clearWildcardRegExpCache();
108872
108473
  return matchers;
108873
108474
  }
108874
108475
  #buildMatcher(method) {
@@ -110778,27 +110379,13 @@ ${log32.fields?.reason}`;
110778
110379
  return new PrismaMssqlAdapter(pool2, this.#options);
110779
110380
  }
110780
110381
  };
110781
- var import_lib = __toESM2(require_lib4(), 1);
110782
- var Client = import_lib.default.Client;
110783
- var Pool = import_lib.default.Pool;
110784
- var Connection = import_lib.default.Connection;
110785
- var types = import_lib.default.types;
110786
- var Query = import_lib.default.Query;
110787
- var DatabaseError = import_lib.default.DatabaseError;
110788
- var escapeIdentifier = import_lib.default.escapeIdentifier;
110789
- var escapeLiteral = import_lib.default.escapeLiteral;
110790
- var Result = import_lib.default.Result;
110791
- var TypeOverrides = import_lib.default.TypeOverrides;
110792
- var defaults = import_lib.default.defaults;
110793
- var esm_default = import_lib.default;
110382
+ var import_pg = __toESM2(require_lib4(), 1);
110383
+ var import_pg2 = __toESM2(require_lib4(), 1);
110794
110384
  var import_postgres_array = __toESM2(require_postgres_array2(), 1);
110795
110385
  var name5 = "@prisma/adapter-pg";
110796
110386
  var FIRST_NORMAL_OBJECT_ID = 16384;
110797
- var { types: types2 } = esm_default;
110798
- var { builtins: ScalarColumnType, getTypeParser } = types2;
110799
- var AdditionalScalarColumnType = {
110800
- NAME: 19
110801
- };
110387
+ var { types } = import_pg2.default;
110388
+ var { builtins: ScalarColumnType, getTypeParser } = types;
110802
110389
  var ArrayColumnType = {
110803
110390
  BIT_ARRAY: 1561,
110804
110391
  BOOL_ARRAY: 1e3,
@@ -110989,7 +110576,6 @@ ${log32.fields?.reason}`;
110989
110576
  case ScalarColumnType.INET:
110990
110577
  case ScalarColumnType.CIDR:
110991
110578
  case ScalarColumnType.XML:
110992
- case AdditionalScalarColumnType.NAME:
110993
110579
  return ColumnTypeEnum.Text;
110994
110580
  case ScalarColumnType.BYTEA:
110995
110581
  return ColumnTypeEnum.Bytes;
@@ -111332,7 +110918,7 @@ ${log32.fields?.reason}`;
111332
110918
  }
111333
110919
  return false;
111334
110920
  }
111335
- var types22 = esm_default.types;
110921
+ var types2 = import_pg.default.types;
111336
110922
  var debug6 = Debug("prisma:driver-adapter:pg");
111337
110923
  var PgQueryable = class {
111338
110924
  constructor(client, pgOptions) {
@@ -111419,7 +111005,7 @@ ${log32.fields?.reason}`;
111419
111005
  if (format === "text" && customParsers[oid]) {
111420
111006
  return customParsers[oid];
111421
111007
  }
111422
- return types22.getTypeParser(oid, format);
111008
+ return types2.getTypeParser(oid, format);
111423
111009
  }
111424
111010
  }
111425
111011
  },
@@ -111517,7 +111103,7 @@ ${log32.fields?.reason}`;
111517
111103
  var PrismaPgAdapterFactory = class {
111518
111104
  constructor(poolOrConfig, options) {
111519
111105
  this.options = options;
111520
- if (poolOrConfig instanceof esm_default.Pool) {
111106
+ if (poolOrConfig instanceof import_pg.default.Pool) {
111521
111107
  this.externalPool = poolOrConfig;
111522
111108
  this.config = poolOrConfig.options;
111523
111109
  } else {
@@ -111530,7 +111116,7 @@ ${log32.fields?.reason}`;
111530
111116
  config;
111531
111117
  externalPool;
111532
111118
  async connect() {
111533
- const client = this.externalPool ?? new esm_default.Pool(this.config);
111119
+ const client = this.externalPool ?? new import_pg.default.Pool(this.config);
111534
111120
  const onIdleClientError = (err) => {
111535
111121
  debug6(`Error from idle pool client: ${err.message} %O`, err);
111536
111122
  this.options?.onPoolError?.(err);
@@ -111553,7 +111139,7 @@ ${log32.fields?.reason}`;
111553
111139
  const conn = await this.connect();
111554
111140
  const database = `prisma_migrate_shadow_db_${globalThis.crypto.randomUUID()}`;
111555
111141
  await conn.executeScript(`CREATE DATABASE "${database}"`);
111556
- const client = new esm_default.Pool({ ...this.config, database });
111142
+ const client = new import_pg.default.Pool({ ...this.config, database });
111557
111143
  return new PrismaPgAdapter(client, void 0, async () => {
111558
111144
  await conn.executeScript(`DROP DATABASE "${database}"`);
111559
111145
  await client.end();
@@ -112528,9 +112114,9 @@ ${log32.fields?.reason}`;
112528
112114
  const stepString = step.toString();
112529
112115
  let stepDecCount = (stepString.split(".")[1] || "").length;
112530
112116
  if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
112531
- const match2 = stepString.match(/\d?e-(\d?)/);
112532
- if (match2?.[1]) {
112533
- stepDecCount = Number.parseInt(match2[1]);
112117
+ const match = stepString.match(/\d?e-(\d?)/);
112118
+ if (match?.[1]) {
112119
+ stepDecCount = Number.parseInt(match[1]);
112534
112120
  }
112535
112121
  }
112536
112122
  const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
@@ -124534,8 +124120,8 @@ var require_listCacheDelete = __commonJS({
124534
124120
  if (index < 0) {
124535
124121
  return false;
124536
124122
  }
124537
- var lastIndex = data.length - 1;
124538
- if (index == lastIndex) {
124123
+ var lastIndex2 = data.length - 1;
124124
+ if (index == lastIndex2) {
124539
124125
  data.pop();
124540
124126
  } else {
124541
124127
  splice.call(data, index, 1);
@@ -127112,13 +126698,13 @@ var require_baseSet = __commonJS({
127112
126698
  return object2;
127113
126699
  }
127114
126700
  path = castPath(path, object2);
127115
- var index = -1, length = path.length, lastIndex = length - 1, nested = object2;
126701
+ var index = -1, length = path.length, lastIndex2 = length - 1, nested = object2;
127116
126702
  while (nested != null && ++index < length) {
127117
126703
  var key = toKey(path[index]), newValue = value;
127118
126704
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
127119
126705
  return object2;
127120
126706
  }
127121
- if (index != lastIndex) {
126707
+ if (index != lastIndex2) {
127122
126708
  var objValue = nested[key];
127123
126709
  newValue = customizer ? customizer(objValue, key, nested) : void 0;
127124
126710
  if (newValue === void 0) {
@@ -137116,7 +136702,7 @@ var tokenLabel = import_api.default.tokenLabel;
137116
136702
  var tokenMatcher = import_api.default.tokenMatcher;
137117
136703
  var tokenName = import_api.default.tokenName;
137118
136704
 
137119
- // ../../node_modules/.pnpm/@mrleebo+prisma-ast@0.13.1/node_modules/@mrleebo/prisma-ast/dist/prisma-ast.esm.js
136705
+ // ../../node_modules/.pnpm/@mrleebo+prisma-ast@0.12.1/node_modules/@mrleebo/prisma-ast/dist/prisma-ast.esm.js
137120
136706
  var import_lilconfig = __toESM(require_dist2());
137121
136707
  import { EOL } from "os";
137122
136708
  function _inheritsLoose(subClass, superClass) {
@@ -138377,7 +137963,7 @@ var ConcretePrismaSchemaBuilder = /* @__PURE__ */ function() {
138377
137963
  }, {
138378
137964
  type: "assignment",
138379
137965
  key: "provider",
138380
- value: '"' + provider + '"'
137966
+ value: provider
138381
137967
  }]
138382
137968
  };
138383
137969
  var existingIndex = this.schema.list.findIndex(function(block) {
@@ -138935,17 +138521,6 @@ export {
138935
138521
  @prisma/query-plan-executor/dist/index.js:
138936
138522
  (*! Bundled license information:
138937
138523
 
138938
- decimal.js/decimal.mjs:
138939
- (*!
138940
- * decimal.js v10.5.0
138941
- * An arbitrary-precision Decimal type for JavaScript.
138942
- * https://github.com/MikeMcl/decimal.js
138943
- * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
138944
- * MIT Licence
138945
- *)
138946
- *)
138947
- (*! Bundled license information:
138948
-
138949
138524
  @noble/hashes/utils.js:
138950
138525
  (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
138951
138526
 
@@ -139118,5 +138693,14 @@ export {
139118
138693
  * @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
139119
138694
  * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
139120
138695
  *)
138696
+
138697
+ decimal.js/decimal.mjs:
138698
+ (*!
138699
+ * decimal.js v10.5.0
138700
+ * An arbitrary-precision Decimal type for JavaScript.
138701
+ * https://github.com/MikeMcl/decimal.js
138702
+ * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
138703
+ * MIT Licence
138704
+ *)
139121
138705
  *)
139122
138706
  */