import { createRequire as __bundleCreateRequire } from "node:module"; const require = __bundleCreateRequire(import.meta.url); import { esm_default } from "./chunk-KIUJQ22G.js"; import { BadRequestException, Global, Inject, Injectable, Logger, Module, Optional, UnauthorizedException, init_common } from "./chunk-BX2ML7LW.js"; import { require_ms } from "./chunk-A34KYKJP.js"; import { BinaryDecisionDiagram, Client, Command, Crc32Node, EndpointCache, EndpointError, HttpRequest, HttpResponse, LazyJsonString, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NoOpLogger, NormalizedSchema, NumericValue, ProviderError, REGION_ENV_NAME, REGION_INI_NAME, SelectorType, ServiceException, Sha256Js, Sha256Node, TypeRegistry, Uint8ArrayBlobAdapter, _parseEpochTimestamp, _parseRfc3339DateTimeWithOffset, _parseRfc7231DateTime, booleanSelector, calculateBodyLength, checksum_exports, client_exports, concatBytes, config_exports, createAggregatedClient, createBufferedReadable, createChecksumStream, customEndpointFunctions, dateToUtcString, decideEndpoint, decorateServiceException, deref, emitWarningIfUnsupportedVersion, endpoints_exports, event_streams_exports, fromBase64, fromUtf8, generateIdempotencyToken, getDefaultExtensionConfiguration, getEndpointPlugin, getSchemaSerdePlugin, getSmithyContext, getValueFromTextNode, hasOwn, init_checksum, init_client, init_config, init_endpoints, init_event_streams, init_schema, init_serde, init_transport, isArrayBuffer, isIpAddress, isValidHostLabel, isValidHostname, loadConfig, loadConfigsForDefaultMode, makeBuilder, normalizeProvider, parseEpochTimestamp, parseQueryString, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, parseUrl, quoteHeader, require_dist_cjs, resolveDefaultRuntimeConfig, resolveDefaultsModeConfig, resolveEndpoint, resolveEndpointConfig, resolveParams, resolveRegionConfig, schema_exports, sdkStreamMixin, serde_exports, splitEvery, splitHeader, toBase64, toUint8Array, toUtf8, translateTraits, v4 } from "./chunk-6UPY3HEI.js"; import { __commonJS, __esm, __export, __name, __require, __toCommonJS, __toESM } from "./chunk-T6GW54FI.js"; // ../../node_modules/.pnpm/postgres-array@3.0.4/node_modules/postgres-array/index.js var require_postgres_array = __commonJS({ "../../node_modules/.pnpm/postgres-array@3.0.4/node_modules/postgres-array/index.js"(exports) { "use strict"; var BACKSLASH2 = "\\"; var DQUOT = '"'; var LBRACE = "{"; var RBRACE = "}"; var LBRACKET = "["; var EQUALS = "="; var COMMA2 = ","; var NULL_STRING = "NULL"; function makeParseArrayWithTransform(transform2) { const haveTransform = transform2 != null; return /* @__PURE__ */ __name(function parseArray3(str) { const rbraceIndex = str.length - 1; if (rbraceIndex === 1) { return []; } if (str[rbraceIndex] !== RBRACE) { throw new Error("Invalid array text - must end with }"); } let position = 0; if (str[position] === LBRACKET) { position = str.indexOf(EQUALS) + 1; } if (str[position++] !== LBRACE) { throw new Error("Invalid array text - must start with {"); } const output2 = []; let current = output2; const stack = []; let currentStringStart = position; let currentString = ""; let expectValue = true; for (; position < rbraceIndex; ++position) { let char = str[position]; if (char === DQUOT) { currentStringStart = ++position; let dquot = str.indexOf(DQUOT, currentStringStart); let backSlash = str.indexOf(BACKSLASH2, currentStringStart); while (backSlash !== -1 && backSlash < dquot) { position = backSlash; const part2 = str.slice(currentStringStart, position); currentString += part2; currentStringStart = ++position; if (dquot === position++) { dquot = str.indexOf(DQUOT, position); } backSlash = str.indexOf(BACKSLASH2, position); } position = dquot; const part = str.slice(currentStringStart, position); currentString += part; current.push(haveTransform ? transform2(currentString) : currentString); currentString = ""; expectValue = false; } else if (char === LBRACE) { const newArray = []; current.push(newArray); stack.push(current); current = newArray; currentStringStart = position + 1; expectValue = true; } else if (char === COMMA2) { expectValue = true; } else if (char === RBRACE) { expectValue = false; const arr = stack.pop(); if (arr === void 0) { throw new Error("Invalid array text - too many '}'"); } current = arr; } else if (expectValue) { currentStringStart = position; while ((char = str[position]) !== COMMA2 && char !== RBRACE && position < rbraceIndex) { ++position; } const part = str.slice(currentStringStart, position--); current.push( part === NULL_STRING ? null : haveTransform ? transform2(part) : part ); expectValue = false; } else { throw new Error("Was expecting delimeter"); } } return output2; }, "parseArray"); } __name(makeParseArrayWithTransform, "makeParseArrayWithTransform"); var parseArray2 = makeParseArrayWithTransform(); exports.parse = (source, transform2) => transform2 != null ? makeParseArrayWithTransform(transform2)(source) : parseArray2(source); } }); // ../../node_modules/.pnpm/@prisma+client-runtime-utils@7.10.1/node_modules/@prisma/client-runtime-utils/dist/index.js var require_dist = __commonJS({ "../../node_modules/.pnpm/@prisma+client-runtime-utils@7.10.1/node_modules/@prisma/client-runtime-utils/dist/index.js"(exports, module) { "use strict"; var __defProp2 = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export3 = /* @__PURE__ */ __name((target, all) => { for (var name2 in all) __defProp2(target, name2, { get: all[name2], enumerable: true }); }, "__export"); var __copyProps = /* @__PURE__ */ __name((to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }, "__copyProps"); var __toCommonJS2 = /* @__PURE__ */ __name((mod2) => __copyProps(__defProp2({}, "__esModule", { value: true }), mod2), "__toCommonJS"); var index_exports = {}; __export3(index_exports, { AnyNull: /* @__PURE__ */ __name(() => AnyNull4, "AnyNull"), AnyNullClass: /* @__PURE__ */ __name(() => AnyNullClass, "AnyNullClass"), DbNull: /* @__PURE__ */ __name(() => DbNull4, "DbNull"), DbNullClass: /* @__PURE__ */ __name(() => DbNullClass, "DbNullClass"), Decimal: /* @__PURE__ */ __name(() => Decimal4, "Decimal"), JsonNull: /* @__PURE__ */ __name(() => JsonNull4, "JsonNull"), JsonNullClass: /* @__PURE__ */ __name(() => JsonNullClass, "JsonNullClass"), NullTypes: /* @__PURE__ */ __name(() => NullTypes4, "NullTypes"), ObjectEnumValue: /* @__PURE__ */ __name(() => ObjectEnumValue2, "ObjectEnumValue"), PrismaClientInitializationError: /* @__PURE__ */ __name(() => PrismaClientInitializationError4, "PrismaClientInitializationError"), PrismaClientKnownRequestError: /* @__PURE__ */ __name(() => PrismaClientKnownRequestError4, "PrismaClientKnownRequestError"), PrismaClientRustError: /* @__PURE__ */ __name(() => PrismaClientRustError, "PrismaClientRustError"), PrismaClientRustPanicError: /* @__PURE__ */ __name(() => PrismaClientRustPanicError4, "PrismaClientRustPanicError"), PrismaClientUnknownRequestError: /* @__PURE__ */ __name(() => PrismaClientUnknownRequestError4, "PrismaClientUnknownRequestError"), PrismaClientValidationError: /* @__PURE__ */ __name(() => PrismaClientValidationError4, "PrismaClientValidationError"), Sql: /* @__PURE__ */ __name(() => Sql4, "Sql"), empty: /* @__PURE__ */ __name(() => empty4, "empty"), hasBatchIndex: /* @__PURE__ */ __name(() => hasBatchIndex, "hasBatchIndex"), isAnyNull: /* @__PURE__ */ __name(() => isAnyNull2, "isAnyNull"), isDbNull: /* @__PURE__ */ __name(() => isDbNull2, "isDbNull"), isJsonNull: /* @__PURE__ */ __name(() => isJsonNull2, "isJsonNull"), isObjectEnumValue: /* @__PURE__ */ __name(() => isObjectEnumValue2, "isObjectEnumValue"), join: /* @__PURE__ */ __name(() => join4, "join"), raw: /* @__PURE__ */ __name(() => raw4, "raw"), sql: /* @__PURE__ */ __name(() => sql2, "sql") }); module.exports = __toCommonJS2(index_exports); function hasBatchIndex(value) { return typeof value["batchRequestIdx"] === "number"; } __name(hasBatchIndex, "hasBatchIndex"); function setClassName(classObject, name2) { Object.defineProperty(classObject, "name", { value: name2, configurable: true }); } __name(setClassName, "setClassName"); var PrismaClientInitializationError4 = class _PrismaClientInitializationError extends Error { static { __name(this, "_PrismaClientInitializationError"); } clientVersion; errorCode; retryable; constructor(message, clientVersion, errorCode) { super(message); this.name = "PrismaClientInitializationError"; this.clientVersion = clientVersion; this.errorCode = errorCode; Error.captureStackTrace(_PrismaClientInitializationError); } get [Symbol.toStringTag]() { return "PrismaClientInitializationError"; } }; setClassName(PrismaClientInitializationError4, "PrismaClientInitializationError"); var PrismaClientKnownRequestError4 = class extends Error { static { __name(this, "PrismaClientKnownRequestError"); } code; meta; clientVersion; batchRequestIdx; constructor(message, { code, clientVersion, meta: meta3, batchRequestIdx }) { super(message); this.name = "PrismaClientKnownRequestError"; this.code = code; this.clientVersion = clientVersion; this.meta = meta3; Object.defineProperty(this, "batchRequestIdx", { value: batchRequestIdx, enumerable: false, writable: true }); } get [Symbol.toStringTag]() { return "PrismaClientKnownRequestError"; } }; setClassName(PrismaClientKnownRequestError4, "PrismaClientKnownRequestError"); function getBacktrace(log3) { if (log3.fields?.message) { let str = log3.fields?.message; if (log3.fields?.file) { str += ` in ${log3.fields.file}`; if (log3.fields?.line) { str += `:${log3.fields.line}`; } if (log3.fields?.column) { str += `:${log3.fields.column}`; } } if (log3.fields?.reason) { str += ` ${log3.fields?.reason}`; } return str; } return "Unknown error"; } __name(getBacktrace, "getBacktrace"); function isPanic(err) { return err.fields?.message === "PANIC"; } __name(isPanic, "isPanic"); var PrismaClientRustError = class extends Error { static { __name(this, "PrismaClientRustError"); } clientVersion; _isPanic; constructor({ clientVersion, error: error62 }) { const backtrace = getBacktrace(error62); super(backtrace ?? "Unknown error"); this._isPanic = isPanic(error62); this.clientVersion = clientVersion; } get [Symbol.toStringTag]() { return "PrismaClientRustError"; } isPanic() { return this._isPanic; } }; setClassName(PrismaClientRustError, "PrismaClientRustError"); var PrismaClientRustPanicError4 = class extends Error { static { __name(this, "PrismaClientRustPanicError"); } clientVersion; constructor(message, clientVersion) { super(message); this.name = "PrismaClientRustPanicError"; this.clientVersion = clientVersion; } get [Symbol.toStringTag]() { return "PrismaClientRustPanicError"; } }; setClassName(PrismaClientRustPanicError4, "PrismaClientRustPanicError"); var PrismaClientUnknownRequestError4 = class extends Error { static { __name(this, "PrismaClientUnknownRequestError"); } clientVersion; batchRequestIdx; constructor(message, { clientVersion, batchRequestIdx }) { super(message); this.name = "PrismaClientUnknownRequestError"; this.clientVersion = clientVersion; Object.defineProperty(this, "batchRequestIdx", { value: batchRequestIdx, writable: true, enumerable: false }); } get [Symbol.toStringTag]() { return "PrismaClientUnknownRequestError"; } }; setClassName(PrismaClientUnknownRequestError4, "PrismaClientUnknownRequestError"); var PrismaClientValidationError4 = class extends Error { static { __name(this, "PrismaClientValidationError"); } name = "PrismaClientValidationError"; clientVersion; constructor(message, { clientVersion }) { super(message); this.clientVersion = clientVersion; } get [Symbol.toStringTag]() { return "PrismaClientValidationError"; } }; setClassName(PrismaClientValidationError4, "PrismaClientValidationError"); var secret = /* @__PURE__ */ Symbol(); var PRISMA_OBJECT_ENUM_VALUE = /* @__PURE__ */ Symbol.for("prisma.objectEnumValue"); var ObjectEnumValue2 = class { static { __name(this, "ObjectEnumValue"); } [PRISMA_OBJECT_ENUM_VALUE] = true; #representation; constructor(arg) { if (arg === secret) { this.#representation = `Prisma.${this._getName()}`; } else { this.#representation = `new Prisma.${this._getNamespace()}.${this._getName()}()`; } } _getName() { return this.constructor.name; } toString() { return this.#representation; } }; function setClassName2(classObject, name2) { Object.defineProperty(classObject, "name", { value: name2, configurable: true }); } __name(setClassName2, "setClassName2"); var NullTypesEnumValue = class extends ObjectEnumValue2 { static { __name(this, "NullTypesEnumValue"); } _getNamespace() { return "NullTypes"; } }; var DbNullClass = class extends NullTypesEnumValue { static { __name(this, "DbNullClass"); } // Phantom private property to prevent structural type equality // eslint-disable-next-line no-unused-private-class-members #_brand_DbNull; }; setClassName2(DbNullClass, "DbNull"); var JsonNullClass = class extends NullTypesEnumValue { static { __name(this, "JsonNullClass"); } // Phantom private property to prevent structural type equality // eslint-disable-next-line no-unused-private-class-members #_brand_JsonNull; }; setClassName2(JsonNullClass, "JsonNull"); var AnyNullClass = class extends NullTypesEnumValue { static { __name(this, "AnyNullClass"); } // Phantom private property to prevent structural type equality // eslint-disable-next-line no-unused-private-class-members #_brand_AnyNull; }; setClassName2(AnyNullClass, "AnyNull"); var NullTypes4 = { DbNull: DbNullClass, JsonNull: JsonNullClass, AnyNull: AnyNullClass }; var DbNull4 = new DbNullClass(secret); var JsonNull4 = new JsonNullClass(secret); var AnyNull4 = new AnyNullClass(secret); function isObjectEnumValue2(value) { return typeof value === "object" && value !== null && value[PRISMA_OBJECT_ENUM_VALUE] === true; } __name(isObjectEnumValue2, "isObjectEnumValue"); function isDbNull2(value) { return value === DbNull4; } __name(isDbNull2, "isDbNull"); function isJsonNull2(value) { return value === JsonNull4; } __name(isJsonNull2, "isJsonNull"); function isAnyNull2(value) { return value === AnyNull4; } __name(isAnyNull2, "isAnyNull"); var EXP_LIMIT = 9e15; var MAX_DIGITS = 1e9; var NUMERALS = "0123456789abcdef"; var LN10 = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058"; var PI = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789"; var DEFAULTS = { // These values must be integers within the stated ranges (inclusive). // Most of these values can be changed at run-time using the `Decimal.config` method. // The maximum number of significant digits of the result of a calculation or base conversion. // E.g. `Decimal.config({ precision: 20 });` precision: 20, // 1 to MAX_DIGITS // The rounding mode used when rounding to `precision`. // // ROUND_UP 0 Away from zero. // ROUND_DOWN 1 Towards zero. // ROUND_CEIL 2 Towards +Infinity. // ROUND_FLOOR 3 Towards -Infinity. // ROUND_HALF_UP 4 Towards nearest neighbour. If equidistant, up. // ROUND_HALF_DOWN 5 Towards nearest neighbour. If equidistant, down. // ROUND_HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour. // ROUND_HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity. // ROUND_HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity. // // E.g. // `Decimal.rounding = 4;` // `Decimal.rounding = Decimal.ROUND_HALF_UP;` rounding: 4, // 0 to 8 // The modulo mode used when calculating the modulus: a mod n. // The quotient (q = a / n) is calculated according to the corresponding rounding mode. // The remainder (r) is calculated as: r = a - n * q. // // UP 0 The remainder is positive if the dividend is negative, else is negative. // DOWN 1 The remainder has the same sign as the dividend (JavaScript %). // FLOOR 3 The remainder has the same sign as the divisor (Python %). // HALF_EVEN 6 The IEEE 754 remainder function. // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)). Always positive. // // Truncated division (1), floored division (3), the IEEE 754 remainder (6), and Euclidian // division (9) are commonly used for the modulus operation. The other rounding modes can also // be used, but they may not give useful results. modulo: 1, // 0 to 9 // The exponent value at and beneath which `toString` returns exponential notation. // JavaScript numbers: -7 toExpNeg: -7, // 0 to -EXP_LIMIT // The exponent value at and above which `toString` returns exponential notation. // JavaScript numbers: 21 toExpPos: 21, // 0 to EXP_LIMIT // The minimum exponent value, beneath which underflow to zero occurs. // JavaScript numbers: -324 (5e-324) minE: -EXP_LIMIT, // -1 to -EXP_LIMIT // The maximum exponent value, above which overflow to Infinity occurs. // JavaScript numbers: 308 (1.7976931348623157e+308) maxE: EXP_LIMIT, // 1 to EXP_LIMIT // Whether to use cryptographically-secure random number generation, if available. crypto: false // true/false }; var inexact; var quadrant; var external = true; var decimalError = "[DecimalError] "; var invalidArgument = decimalError + "Invalid argument: "; var precisionLimitExceeded = decimalError + "Precision limit exceeded"; var cryptoUnavailable = decimalError + "crypto unavailable"; var tag = "[object Decimal]"; var mathfloor = Math.floor; var mathpow = Math.pow; var isBinary = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i; var isHex = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i; var isOctal = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i; var isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i; var BASE = 1e7; var LOG_BASE = 7; var MAX_SAFE_INTEGER = 9007199254740991; var LN10_PRECISION = LN10.length - 1; var PI_PRECISION = PI.length - 1; var P = { toStringTag: tag }; P.absoluteValue = P.abs = function() { var x = new this.constructor(this); if (x.s < 0) x.s = 1; return finalise(x); }; P.ceil = function() { return finalise(new this.constructor(this), this.e + 1, 2); }; P.clampedTo = P.clamp = function(min2, max2) { var k5, x = this, Ctor = x.constructor; min2 = new Ctor(min2); max2 = new Ctor(max2); if (!min2.s || !max2.s) return new Ctor(NaN); if (min2.gt(max2)) throw Error(invalidArgument + max2); k5 = x.cmp(min2); return k5 < 0 ? min2 : x.cmp(max2) > 0 ? max2 : new Ctor(x); }; P.comparedTo = P.cmp = function(y) { var i5, j5, xdL, ydL, x = this, xd = x.d, yd = (y = new x.constructor(y)).d, xs = x.s, ys = y.s; if (!xd || !yd) { return !xs || !ys ? NaN : xs !== ys ? xs : xd === yd ? 0 : !xd ^ xs < 0 ? 1 : -1; } if (!xd[0] || !yd[0]) return xd[0] ? xs : yd[0] ? -ys : 0; if (xs !== ys) return xs; if (x.e !== y.e) return x.e > y.e ^ xs < 0 ? 1 : -1; xdL = xd.length; ydL = yd.length; for (i5 = 0, j5 = xdL < ydL ? xdL : ydL; i5 < j5; ++i5) { if (xd[i5] !== yd[i5]) return xd[i5] > yd[i5] ^ xs < 0 ? 1 : -1; } return xdL === ydL ? 0 : xdL > ydL ^ xs < 0 ? 1 : -1; }; P.cosine = P.cos = function() { var pr, rm, x = this, Ctor = x.constructor; if (!x.d) return new Ctor(NaN); if (!x.d[0]) return new Ctor(1); pr = Ctor.precision; rm = Ctor.rounding; Ctor.precision = pr + Math.max(x.e, x.sd()) + LOG_BASE; Ctor.rounding = 1; x = cosine(Ctor, toLessThanHalfPi(Ctor, x)); Ctor.precision = pr; Ctor.rounding = rm; return finalise(quadrant == 2 || quadrant == 3 ? x.neg() : x, pr, rm, true); }; P.cubeRoot = P.cbrt = function() { var e5, m3, n3, r5, rep, s2, sd, t, t32, t3plusx, x = this, Ctor = x.constructor; if (!x.isFinite() || x.isZero()) return new Ctor(x); external = false; s2 = x.s * mathpow(x.s * x, 1 / 3); if (!s2 || Math.abs(s2) == 1 / 0) { n3 = digitsToString(x.d); e5 = x.e; if (s2 = (e5 - n3.length + 1) % 3) n3 += s2 == 1 || s2 == -2 ? "0" : "00"; s2 = mathpow(n3, 1 / 3); e5 = mathfloor((e5 + 1) / 3) - (e5 % 3 == (e5 < 0 ? -1 : 2)); if (s2 == 1 / 0) { n3 = "5e" + e5; } else { n3 = s2.toExponential(); n3 = n3.slice(0, n3.indexOf("e") + 1) + e5; } r5 = new Ctor(n3); r5.s = x.s; } else { r5 = new Ctor(s2.toString()); } sd = (e5 = Ctor.precision) + 3; for (; ; ) { t = r5; t32 = t.times(t).times(t); t3plusx = t32.plus(x); r5 = divide(t3plusx.plus(x).times(t), t3plusx.plus(t32), sd + 2, 1); if (digitsToString(t.d).slice(0, sd) === (n3 = digitsToString(r5.d)).slice(0, sd)) { n3 = n3.slice(sd - 3, sd + 1); if (n3 == "9999" || !rep && n3 == "4999") { if (!rep) { finalise(t, e5 + 1, 0); if (t.times(t).times(t).eq(x)) { r5 = t; break; } } sd += 4; rep = 1; } else { if (!+n3 || !+n3.slice(1) && n3.charAt(0) == "5") { finalise(r5, e5 + 1, 1); m3 = !r5.times(r5).times(r5).eq(x); } break; } } } external = true; return finalise(r5, e5, Ctor.rounding, m3); }; P.decimalPlaces = P.dp = function() { var w, d5 = this.d, n3 = NaN; if (d5) { w = d5.length - 1; n3 = (w - mathfloor(this.e / LOG_BASE)) * LOG_BASE; w = d5[w]; if (w) for (; w % 10 == 0; w /= 10) n3--; if (n3 < 0) n3 = 0; } return n3; }; P.dividedBy = P.div = function(y) { return divide(this, new this.constructor(y)); }; P.dividedToIntegerBy = P.divToInt = function(y) { var x = this, Ctor = x.constructor; return finalise(divide(x, new Ctor(y), 0, 1, 1), Ctor.precision, Ctor.rounding); }; P.equals = P.eq = function(y) { return this.cmp(y) === 0; }; P.floor = function() { return finalise(new this.constructor(this), this.e + 1, 3); }; P.greaterThan = P.gt = function(y) { return this.cmp(y) > 0; }; P.greaterThanOrEqualTo = P.gte = function(y) { var k5 = this.cmp(y); return k5 == 1 || k5 === 0; }; P.hyperbolicCosine = P.cosh = function() { var k5, n3, pr, rm, len, x = this, Ctor = x.constructor, one = new Ctor(1); if (!x.isFinite()) return new Ctor(x.s ? 1 / 0 : NaN); if (x.isZero()) return one; pr = Ctor.precision; rm = Ctor.rounding; Ctor.precision = pr + Math.max(x.e, x.sd()) + 4; Ctor.rounding = 1; len = x.d.length; if (len < 32) { k5 = Math.ceil(len / 3); n3 = (1 / tinyPow(4, k5)).toString(); } else { k5 = 16; n3 = "2.3283064365386962890625e-10"; } x = taylorSeries(Ctor, 1, x.times(n3), new Ctor(1), true); var cosh2_x, i5 = k5, d8 = new Ctor(8); for (; i5--; ) { cosh2_x = x.times(x); x = one.minus(cosh2_x.times(d8.minus(cosh2_x.times(d8)))); } return finalise(x, Ctor.precision = pr, Ctor.rounding = rm, true); }; P.hyperbolicSine = P.sinh = function() { var k5, pr, rm, len, x = this, Ctor = x.constructor; if (!x.isFinite() || x.isZero()) return new Ctor(x); pr = Ctor.precision; rm = Ctor.rounding; Ctor.precision = pr + Math.max(x.e, x.sd()) + 4; Ctor.rounding = 1; len = x.d.length; if (len < 3) { x = taylorSeries(Ctor, 2, x, x, true); } else { k5 = 1.4 * Math.sqrt(len); k5 = k5 > 16 ? 16 : k5 | 0; x = x.times(1 / tinyPow(5, k5)); x = taylorSeries(Ctor, 2, x, x, true); var sinh2_x, d5 = new Ctor(5), d16 = new Ctor(16), d20 = new Ctor(20); for (; k5--; ) { sinh2_x = x.times(x); x = x.times(d5.plus(sinh2_x.times(d16.times(sinh2_x).plus(d20)))); } } Ctor.precision = pr; Ctor.rounding = rm; return finalise(x, pr, rm, true); }; P.hyperbolicTangent = P.tanh = function() { var pr, rm, x = this, Ctor = x.constructor; if (!x.isFinite()) return new Ctor(x.s); if (x.isZero()) return new Ctor(x); pr = Ctor.precision; rm = Ctor.rounding; Ctor.precision = pr + 7; Ctor.rounding = 1; return divide(x.sinh(), x.cosh(), Ctor.precision = pr, Ctor.rounding = rm); }; P.inverseCosine = P.acos = function() { var x = this, Ctor = x.constructor, k5 = x.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding; if (k5 !== -1) { return k5 === 0 ? x.isNeg() ? getPi(Ctor, pr, rm) : new Ctor(0) : new Ctor(NaN); } if (x.isZero()) return getPi(Ctor, pr + 4, rm).times(0.5); Ctor.precision = pr + 6; Ctor.rounding = 1; x = new Ctor(1).minus(x).div(x.plus(1)).sqrt().atan(); Ctor.precision = pr; Ctor.rounding = rm; return x.times(2); }; P.inverseHyperbolicCosine = P.acosh = function() { var pr, rm, x = this, Ctor = x.constructor; if (x.lte(1)) return new Ctor(x.eq(1) ? 0 : NaN); if (!x.isFinite()) return new Ctor(x); pr = Ctor.precision; rm = Ctor.rounding; Ctor.precision = pr + Math.max(Math.abs(x.e), x.sd()) + 4; Ctor.rounding = 1; external = false; x = x.times(x).minus(1).sqrt().plus(x); external = true; Ctor.precision = pr; Ctor.rounding = rm; return x.ln(); }; P.inverseHyperbolicSine = P.asinh = function() { var pr, rm, x = this, Ctor = x.constructor; if (!x.isFinite() || x.isZero()) return new Ctor(x); pr = Ctor.precision; rm = Ctor.rounding; Ctor.precision = pr + 2 * Math.max(Math.abs(x.e), x.sd()) + 6; Ctor.rounding = 1; external = false; x = x.times(x).plus(1).sqrt().plus(x); external = true; Ctor.precision = pr; Ctor.rounding = rm; return x.ln(); }; P.inverseHyperbolicTangent = P.atanh = function() { var pr, rm, wpr, xsd, x = this, Ctor = x.constructor; if (!x.isFinite()) return new Ctor(NaN); if (x.e >= 0) return new Ctor(x.abs().eq(1) ? x.s / 0 : x.isZero() ? x : NaN); pr = Ctor.precision; rm = Ctor.rounding; xsd = x.sd(); if (Math.max(xsd, pr) < 2 * -x.e - 1) return finalise(new Ctor(x), pr, rm, true); Ctor.precision = wpr = xsd - x.e; x = divide(x.plus(1), new Ctor(1).minus(x), wpr + pr, 1); Ctor.precision = pr + 4; Ctor.rounding = 1; x = x.ln(); Ctor.precision = pr; Ctor.rounding = rm; return x.times(0.5); }; P.inverseSine = P.asin = function() { var halfPi, k5, pr, rm, x = this, Ctor = x.constructor; if (x.isZero()) return new Ctor(x); k5 = x.abs().cmp(1); pr = Ctor.precision; rm = Ctor.rounding; if (k5 !== -1) { if (k5 === 0) { halfPi = getPi(Ctor, pr + 4, rm).times(0.5); halfPi.s = x.s; return halfPi; } return new Ctor(NaN); } Ctor.precision = pr + 6; Ctor.rounding = 1; x = x.div(new Ctor(1).minus(x.times(x)).sqrt().plus(1)).atan(); Ctor.precision = pr; Ctor.rounding = rm; return x.times(2); }; P.inverseTangent = P.atan = function() { var i5, j5, k5, n3, px, t, r5, wpr, x2, x = this, Ctor = x.constructor, pr = Ctor.precision, rm = Ctor.rounding; if (!x.isFinite()) { if (!x.s) return new Ctor(NaN); if (pr + 4 <= PI_PRECISION) { r5 = getPi(Ctor, pr + 4, rm).times(0.5); r5.s = x.s; return r5; } } else if (x.isZero()) { return new Ctor(x); } else if (x.abs().eq(1) && pr + 4 <= PI_PRECISION) { r5 = getPi(Ctor, pr + 4, rm).times(0.25); r5.s = x.s; return r5; } Ctor.precision = wpr = pr + 10; Ctor.rounding = 1; k5 = Math.min(28, wpr / LOG_BASE + 2 | 0); for (i5 = k5; i5; --i5) x = x.div(x.times(x).plus(1).sqrt().plus(1)); external = false; j5 = Math.ceil(wpr / LOG_BASE); n3 = 1; x2 = x.times(x); r5 = new Ctor(x); px = x; for (; i5 !== -1; ) { px = px.times(x2); t = r5.minus(px.div(n3 += 2)); px = px.times(x2); r5 = t.plus(px.div(n3 += 2)); if (r5.d[j5] !== void 0) for (i5 = j5; r5.d[i5] === t.d[i5] && i5--; ) ; } if (k5) r5 = r5.times(2 << k5 - 1); external = true; return finalise(r5, Ctor.precision = pr, Ctor.rounding = rm, true); }; P.isFinite = function() { return !!this.d; }; P.isInteger = P.isInt = function() { return !!this.d && mathfloor(this.e / LOG_BASE) > this.d.length - 2; }; P.isNaN = function() { return !this.s; }; P.isNegative = P.isNeg = function() { return this.s < 0; }; P.isPositive = P.isPos = function() { return this.s > 0; }; P.isZero = function() { return !!this.d && this.d[0] === 0; }; P.lessThan = P.lt = function(y) { return this.cmp(y) < 0; }; P.lessThanOrEqualTo = P.lte = function(y) { return this.cmp(y) < 1; }; P.logarithm = P.log = function(base) { var isBase10, d5, denominator, k5, inf, num, sd, r5, arg = this, Ctor = arg.constructor, pr = Ctor.precision, rm = Ctor.rounding, guard = 5; if (base == null) { base = new Ctor(10); isBase10 = true; } else { base = new Ctor(base); d5 = base.d; if (base.s < 0 || !d5 || !d5[0] || base.eq(1)) return new Ctor(NaN); isBase10 = base.eq(10); } d5 = arg.d; if (arg.s < 0 || !d5 || !d5[0] || arg.eq(1)) { return new Ctor(d5 && !d5[0] ? -1 / 0 : arg.s != 1 ? NaN : d5 ? 0 : 1 / 0); } if (isBase10) { if (d5.length > 1) { inf = true; } else { for (k5 = d5[0]; k5 % 10 === 0; ) k5 /= 10; inf = k5 !== 1; } } external = false; sd = pr + guard; num = naturalLogarithm(arg, sd); denominator = isBase10 ? getLn10(Ctor, sd + 10) : naturalLogarithm(base, sd); r5 = divide(num, denominator, sd, 1); if (checkRoundingDigits(r5.d, k5 = pr, rm)) { do { sd += 10; num = naturalLogarithm(arg, sd); denominator = isBase10 ? getLn10(Ctor, sd + 10) : naturalLogarithm(base, sd); r5 = divide(num, denominator, sd, 1); if (!inf) { if (+digitsToString(r5.d).slice(k5 + 1, k5 + 15) + 1 == 1e14) { r5 = finalise(r5, pr + 1, 0); } break; } } while (checkRoundingDigits(r5.d, k5 += 10, rm)); } external = true; return finalise(r5, pr, rm); }; P.minus = P.sub = function(y) { var d5, e5, i5, j5, k5, len, pr, rm, xd, xe, xLTy, yd, x = this, Ctor = x.constructor; y = new Ctor(y); if (!x.d || !y.d) { if (!x.s || !y.s) y = new Ctor(NaN); else if (x.d) y.s = -y.s; else y = new Ctor(y.d || x.s !== y.s ? x : NaN); return y; } if (x.s != y.s) { y.s = -y.s; return x.plus(y); } xd = x.d; yd = y.d; pr = Ctor.precision; rm = Ctor.rounding; if (!xd[0] || !yd[0]) { if (yd[0]) y.s = -y.s; else if (xd[0]) y = new Ctor(x); else return new Ctor(rm === 3 ? -0 : 0); return external ? finalise(y, pr, rm) : y; } e5 = mathfloor(y.e / LOG_BASE); xe = mathfloor(x.e / LOG_BASE); xd = xd.slice(); k5 = xe - e5; if (k5) { xLTy = k5 < 0; if (xLTy) { d5 = xd; k5 = -k5; len = yd.length; } else { d5 = yd; e5 = xe; len = xd.length; } i5 = Math.max(Math.ceil(pr / LOG_BASE), len) + 2; if (k5 > i5) { k5 = i5; d5.length = 1; } d5.reverse(); for (i5 = k5; i5--; ) d5.push(0); d5.reverse(); } else { i5 = xd.length; len = yd.length; xLTy = i5 < len; if (xLTy) len = i5; for (i5 = 0; i5 < len; i5++) { if (xd[i5] != yd[i5]) { xLTy = xd[i5] < yd[i5]; break; } } k5 = 0; } if (xLTy) { d5 = xd; xd = yd; yd = d5; y.s = -y.s; } len = xd.length; for (i5 = yd.length - len; i5 > 0; --i5) xd[len++] = 0; for (i5 = yd.length; i5 > k5; ) { if (xd[--i5] < yd[i5]) { for (j5 = i5; j5 && xd[--j5] === 0; ) xd[j5] = BASE - 1; --xd[j5]; xd[i5] += BASE; } xd[i5] -= yd[i5]; } for (; xd[--len] === 0; ) xd.pop(); for (; xd[0] === 0; xd.shift()) --e5; if (!xd[0]) return new Ctor(rm === 3 ? -0 : 0); y.d = xd; y.e = getBase10Exponent(xd, e5); return external ? finalise(y, pr, rm) : y; }; P.modulo = P.mod = function(y) { var q3, x = this, Ctor = x.constructor; y = new Ctor(y); if (!x.d || !y.s || y.d && !y.d[0]) return new Ctor(NaN); if (!y.d || x.d && !x.d[0]) { return finalise(new Ctor(x), Ctor.precision, Ctor.rounding); } external = false; if (Ctor.modulo == 9) { q3 = divide(x, y.abs(), 0, 3, 1); q3.s *= y.s; } else { q3 = divide(x, y, 0, Ctor.modulo, 1); } q3 = q3.times(y); external = true; return x.minus(q3); }; P.naturalExponential = P.exp = function() { return naturalExponential(this); }; P.naturalLogarithm = P.ln = function() { return naturalLogarithm(this); }; P.negated = P.neg = function() { var x = new this.constructor(this); x.s = -x.s; return finalise(x); }; P.plus = P.add = function(y) { var carry, d5, e5, i5, k5, len, pr, rm, xd, yd, x = this, Ctor = x.constructor; y = new Ctor(y); if (!x.d || !y.d) { if (!x.s || !y.s) y = new Ctor(NaN); else if (!x.d) y = new Ctor(y.d || x.s === y.s ? x : NaN); return y; } if (x.s != y.s) { y.s = -y.s; return x.minus(y); } xd = x.d; yd = y.d; pr = Ctor.precision; rm = Ctor.rounding; if (!xd[0] || !yd[0]) { if (!yd[0]) y = new Ctor(x); return external ? finalise(y, pr, rm) : y; } k5 = mathfloor(x.e / LOG_BASE); e5 = mathfloor(y.e / LOG_BASE); xd = xd.slice(); i5 = k5 - e5; if (i5) { if (i5 < 0) { d5 = xd; i5 = -i5; len = yd.length; } else { d5 = yd; e5 = k5; len = xd.length; } k5 = Math.ceil(pr / LOG_BASE); len = k5 > len ? k5 + 1 : len + 1; if (i5 > len) { i5 = len; d5.length = 1; } d5.reverse(); for (; i5--; ) d5.push(0); d5.reverse(); } len = xd.length; i5 = yd.length; if (len - i5 < 0) { i5 = len; d5 = yd; yd = xd; xd = d5; } for (carry = 0; i5; ) { carry = (xd[--i5] = xd[i5] + yd[i5] + carry) / BASE | 0; xd[i5] %= BASE; } if (carry) { xd.unshift(carry); ++e5; } for (len = xd.length; xd[--len] == 0; ) xd.pop(); y.d = xd; y.e = getBase10Exponent(xd, e5); return external ? finalise(y, pr, rm) : y; }; P.precision = P.sd = function(z2) { var k5, x = this; if (z2 !== void 0 && z2 !== !!z2 && z2 !== 1 && z2 !== 0) throw Error(invalidArgument + z2); if (x.d) { k5 = getPrecision(x.d); if (z2 && x.e + 1 > k5) k5 = x.e + 1; } else { k5 = NaN; } return k5; }; P.round = function() { var x = this, Ctor = x.constructor; return finalise(new Ctor(x), x.e + 1, Ctor.rounding); }; P.sine = P.sin = function() { var pr, rm, x = this, Ctor = x.constructor; if (!x.isFinite()) return new Ctor(NaN); if (x.isZero()) return new Ctor(x); pr = Ctor.precision; rm = Ctor.rounding; Ctor.precision = pr + Math.max(x.e, x.sd()) + LOG_BASE; Ctor.rounding = 1; x = sine(Ctor, toLessThanHalfPi(Ctor, x)); Ctor.precision = pr; Ctor.rounding = rm; return finalise(quadrant > 2 ? x.neg() : x, pr, rm, true); }; P.squareRoot = P.sqrt = function() { var m3, n3, sd, r5, rep, t, x = this, d5 = x.d, e5 = x.e, s2 = x.s, Ctor = x.constructor; if (s2 !== 1 || !d5 || !d5[0]) { return new Ctor(!s2 || s2 < 0 && (!d5 || d5[0]) ? NaN : d5 ? x : 1 / 0); } external = false; s2 = Math.sqrt(+x); if (s2 == 0 || s2 == 1 / 0) { n3 = digitsToString(d5); if ((n3.length + e5) % 2 == 0) n3 += "0"; s2 = Math.sqrt(n3); e5 = mathfloor((e5 + 1) / 2) - (e5 < 0 || e5 % 2); if (s2 == 1 / 0) { n3 = "5e" + e5; } else { n3 = s2.toExponential(); n3 = n3.slice(0, n3.indexOf("e") + 1) + e5; } r5 = new Ctor(n3); } else { r5 = new Ctor(s2.toString()); } sd = (e5 = Ctor.precision) + 3; for (; ; ) { t = r5; r5 = t.plus(divide(x, t, sd + 2, 1)).times(0.5); if (digitsToString(t.d).slice(0, sd) === (n3 = digitsToString(r5.d)).slice(0, sd)) { n3 = n3.slice(sd - 3, sd + 1); if (n3 == "9999" || !rep && n3 == "4999") { if (!rep) { finalise(t, e5 + 1, 0); if (t.times(t).eq(x)) { r5 = t; break; } } sd += 4; rep = 1; } else { if (!+n3 || !+n3.slice(1) && n3.charAt(0) == "5") { finalise(r5, e5 + 1, 1); m3 = !r5.times(r5).eq(x); } break; } } } external = true; return finalise(r5, e5, Ctor.rounding, m3); }; P.tangent = P.tan = function() { var pr, rm, x = this, Ctor = x.constructor; if (!x.isFinite()) return new Ctor(NaN); if (x.isZero()) return new Ctor(x); pr = Ctor.precision; rm = Ctor.rounding; Ctor.precision = pr + 10; Ctor.rounding = 1; x = x.sin(); x.s = 1; x = divide(x, new Ctor(1).minus(x.times(x)).sqrt(), pr + 10, 0); Ctor.precision = pr; Ctor.rounding = rm; return finalise(quadrant == 2 || quadrant == 4 ? x.neg() : x, pr, rm, true); }; P.times = P.mul = function(y) { var carry, e5, i5, k5, r5, rL, t, xdL, ydL, x = this, Ctor = x.constructor, xd = x.d, yd = (y = new Ctor(y)).d; y.s *= x.s; if (!xd || !xd[0] || !yd || !yd[0]) { return new Ctor(!y.s || xd && !xd[0] && !yd || yd && !yd[0] && !xd ? NaN : !xd || !yd ? y.s / 0 : y.s * 0); } e5 = mathfloor(x.e / LOG_BASE) + mathfloor(y.e / LOG_BASE); xdL = xd.length; ydL = yd.length; if (xdL < ydL) { r5 = xd; xd = yd; yd = r5; rL = xdL; xdL = ydL; ydL = rL; } r5 = []; rL = xdL + ydL; for (i5 = rL; i5--; ) r5.push(0); for (i5 = ydL; --i5 >= 0; ) { carry = 0; for (k5 = xdL + i5; k5 > i5; ) { t = r5[k5] + yd[i5] * xd[k5 - i5 - 1] + carry; r5[k5--] = t % BASE | 0; carry = t / BASE | 0; } r5[k5] = (r5[k5] + carry) % BASE | 0; } for (; !r5[--rL]; ) r5.pop(); if (carry) ++e5; else r5.shift(); y.d = r5; y.e = getBase10Exponent(r5, e5); return external ? finalise(y, Ctor.precision, Ctor.rounding) : y; }; P.toBinary = function(sd, rm) { return toStringBinary(this, 2, sd, rm); }; P.toDecimalPlaces = P.toDP = function(dp, rm) { var x = this, Ctor = x.constructor; x = new Ctor(x); if (dp === void 0) return x; checkInt32(dp, 0, MAX_DIGITS); if (rm === void 0) rm = Ctor.rounding; else checkInt32(rm, 0, 8); return finalise(x, dp + x.e + 1, rm); }; P.toExponential = function(dp, rm) { var str, x = this, Ctor = x.constructor; if (dp === void 0) { str = finiteToString(x, true); } else { checkInt32(dp, 0, MAX_DIGITS); if (rm === void 0) rm = Ctor.rounding; else checkInt32(rm, 0, 8); x = finalise(new Ctor(x), dp + 1, rm); str = finiteToString(x, true, dp + 1); } return x.isNeg() && !x.isZero() ? "-" + str : str; }; P.toFixed = function(dp, rm) { var str, y, x = this, Ctor = x.constructor; if (dp === void 0) { str = finiteToString(x); } else { checkInt32(dp, 0, MAX_DIGITS); if (rm === void 0) rm = Ctor.rounding; else checkInt32(rm, 0, 8); y = finalise(new Ctor(x), dp + x.e + 1, rm); str = finiteToString(y, false, dp + y.e + 1); } return x.isNeg() && !x.isZero() ? "-" + str : str; }; P.toFraction = function(maxD) { var d5, d0, d1, d22, e5, k5, n3, n05, n1, pr, q3, r5, x = this, xd = x.d, Ctor = x.constructor; if (!xd) return new Ctor(x); n1 = d0 = new Ctor(1); d1 = n05 = new Ctor(0); d5 = new Ctor(d1); e5 = d5.e = getPrecision(xd) - x.e - 1; k5 = e5 % LOG_BASE; d5.d[0] = mathpow(10, k5 < 0 ? LOG_BASE + k5 : k5); if (maxD == null) { maxD = e5 > 0 ? d5 : n1; } else { n3 = new Ctor(maxD); if (!n3.isInt() || n3.lt(n1)) throw Error(invalidArgument + n3); maxD = n3.gt(d5) ? e5 > 0 ? d5 : n1 : n3; } external = false; n3 = new Ctor(digitsToString(xd)); pr = Ctor.precision; Ctor.precision = e5 = xd.length * LOG_BASE * 2; for (; ; ) { q3 = divide(n3, d5, 0, 1, 1); d22 = d0.plus(q3.times(d1)); if (d22.cmp(maxD) == 1) break; d0 = d1; d1 = d22; d22 = n1; n1 = n05.plus(q3.times(d22)); n05 = d22; d22 = d5; d5 = n3.minus(q3.times(d22)); n3 = d22; } d22 = divide(maxD.minus(d0), d1, 0, 1, 1); n05 = n05.plus(d22.times(n1)); d0 = d0.plus(d22.times(d1)); n05.s = n1.s = x.s; r5 = divide(n1, d1, e5, 1).minus(x).abs().cmp(divide(n05, d0, e5, 1).minus(x).abs()) < 1 ? [n1, d1] : [n05, d0]; Ctor.precision = pr; external = true; return r5; }; P.toHexadecimal = P.toHex = function(sd, rm) { return toStringBinary(this, 16, sd, rm); }; P.toNearest = function(y, rm) { var x = this, Ctor = x.constructor; x = new Ctor(x); if (y == null) { if (!x.d) return x; y = new Ctor(1); rm = Ctor.rounding; } else { y = new Ctor(y); if (rm === void 0) { rm = Ctor.rounding; } else { checkInt32(rm, 0, 8); } if (!x.d) return y.s ? x : y; if (!y.d) { if (y.s) y.s = x.s; return y; } } if (y.d[0]) { external = false; x = divide(x, y, 0, rm, 1).times(y); external = true; finalise(x); } else { y.s = x.s; x = y; } return x; }; P.toNumber = function() { return +this; }; P.toOctal = function(sd, rm) { return toStringBinary(this, 8, sd, rm); }; P.toPower = P.pow = function(y) { var e5, k5, pr, r5, rm, s2, x = this, Ctor = x.constructor, yn = +(y = new Ctor(y)); if (!x.d || !y.d || !x.d[0] || !y.d[0]) return new Ctor(mathpow(+x, yn)); x = new Ctor(x); if (x.eq(1)) return x; pr = Ctor.precision; rm = Ctor.rounding; if (y.eq(1)) return finalise(x, pr, rm); e5 = mathfloor(y.e / LOG_BASE); if (e5 >= y.d.length - 1 && (k5 = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) { r5 = intPow(Ctor, x, k5, pr); return y.s < 0 ? new Ctor(1).div(r5) : finalise(r5, pr, rm); } s2 = x.s; if (s2 < 0) { if (e5 < y.d.length - 1) return new Ctor(NaN); if ((y.d[e5] & 1) == 0) s2 = 1; if (x.e == 0 && x.d[0] == 1 && x.d.length == 1) { x.s = s2; return x; } } k5 = mathpow(+x, yn); e5 = k5 == 0 || !isFinite(k5) ? mathfloor(yn * (Math.log("0." + digitsToString(x.d)) / Math.LN10 + x.e + 1)) : new Ctor(k5 + "").e; if (e5 > Ctor.maxE + 1 || e5 < Ctor.minE - 1) return new Ctor(e5 > 0 ? s2 / 0 : 0); external = false; Ctor.rounding = x.s = 1; k5 = Math.min(12, (e5 + "").length); r5 = naturalExponential(y.times(naturalLogarithm(x, pr + k5)), pr); if (r5.d) { r5 = finalise(r5, pr + 5, 1); if (checkRoundingDigits(r5.d, pr, rm)) { e5 = pr + 10; r5 = finalise(naturalExponential(y.times(naturalLogarithm(x, e5 + k5)), e5), e5 + 5, 1); if (+digitsToString(r5.d).slice(pr + 1, pr + 15) + 1 == 1e14) { r5 = finalise(r5, pr + 1, 0); } } } r5.s = s2; external = true; Ctor.rounding = rm; return finalise(r5, pr, rm); }; P.toPrecision = function(sd, rm) { var str, x = this, Ctor = x.constructor; if (sd === void 0) { str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos); } else { checkInt32(sd, 1, MAX_DIGITS); if (rm === void 0) rm = Ctor.rounding; else checkInt32(rm, 0, 8); x = finalise(new Ctor(x), sd, rm); str = finiteToString(x, sd <= x.e || x.e <= Ctor.toExpNeg, sd); } return x.isNeg() && !x.isZero() ? "-" + str : str; }; P.toSignificantDigits = P.toSD = function(sd, rm) { var x = this, Ctor = x.constructor; if (sd === void 0) { sd = Ctor.precision; rm = Ctor.rounding; } else { checkInt32(sd, 1, MAX_DIGITS); if (rm === void 0) rm = Ctor.rounding; else checkInt32(rm, 0, 8); } return finalise(new Ctor(x), sd, rm); }; P.toString = function() { var x = this, Ctor = x.constructor, str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos); return x.isNeg() && !x.isZero() ? "-" + str : str; }; P.truncated = P.trunc = function() { return finalise(new this.constructor(this), this.e + 1, 1); }; P.valueOf = P.toJSON = function() { var x = this, Ctor = x.constructor, str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos); return x.isNeg() ? "-" + str : str; }; function digitsToString(d5) { var i5, k5, ws, indexOfLastWord = d5.length - 1, str = "", w = d5[0]; if (indexOfLastWord > 0) { str += w; for (i5 = 1; i5 < indexOfLastWord; i5++) { ws = d5[i5] + ""; k5 = LOG_BASE - ws.length; if (k5) str += getZeroString(k5); str += ws; } w = d5[i5]; ws = w + ""; k5 = LOG_BASE - ws.length; if (k5) str += getZeroString(k5); } else if (w === 0) { return "0"; } for (; w % 10 === 0; ) w /= 10; return str + w; } __name(digitsToString, "digitsToString"); function checkInt32(i5, min2, max2) { if (i5 !== ~~i5 || i5 < min2 || i5 > max2) { throw Error(invalidArgument + i5); } } __name(checkInt32, "checkInt32"); function checkRoundingDigits(d5, i5, rm, repeating) { var di, k5, r5, rd; for (k5 = d5[0]; k5 >= 10; k5 /= 10) --i5; if (--i5 < 0) { i5 += LOG_BASE; di = 0; } else { di = Math.ceil((i5 + 1) / LOG_BASE); i5 %= LOG_BASE; } k5 = mathpow(10, LOG_BASE - i5); rd = d5[di] % k5 | 0; if (repeating == null) { if (i5 < 3) { if (i5 == 0) rd = rd / 100 | 0; else if (i5 == 1) rd = rd / 10 | 0; r5 = rm < 4 && rd == 99999 || rm > 3 && rd == 49999 || rd == 5e4 || rd == 0; } else { r5 = (rm < 4 && rd + 1 == k5 || rm > 3 && rd + 1 == k5 / 2) && (d5[di + 1] / k5 / 100 | 0) == mathpow(10, i5 - 2) - 1 || (rd == k5 / 2 || rd == 0) && (d5[di + 1] / k5 / 100 | 0) == 0; } } else { if (i5 < 4) { if (i5 == 0) rd = rd / 1e3 | 0; else if (i5 == 1) rd = rd / 100 | 0; else if (i5 == 2) rd = rd / 10 | 0; r5 = (repeating || rm < 4) && rd == 9999 || !repeating && rm > 3 && rd == 4999; } else { r5 = ((repeating || rm < 4) && rd + 1 == k5 || !repeating && rm > 3 && rd + 1 == k5 / 2) && (d5[di + 1] / k5 / 1e3 | 0) == mathpow(10, i5 - 3) - 1; } } return r5; } __name(checkRoundingDigits, "checkRoundingDigits"); function convertBase(str, baseIn, baseOut) { var j5, arr = [0], arrL, i5 = 0, strL = str.length; for (; i5 < strL; ) { for (arrL = arr.length; arrL--; ) arr[arrL] *= baseIn; arr[0] += NUMERALS.indexOf(str.charAt(i5++)); for (j5 = 0; j5 < arr.length; j5++) { if (arr[j5] > baseOut - 1) { if (arr[j5 + 1] === void 0) arr[j5 + 1] = 0; arr[j5 + 1] += arr[j5] / baseOut | 0; arr[j5] %= baseOut; } } } return arr.reverse(); } __name(convertBase, "convertBase"); function cosine(Ctor, x) { var k5, len, y; if (x.isZero()) return x; len = x.d.length; if (len < 32) { k5 = Math.ceil(len / 3); y = (1 / tinyPow(4, k5)).toString(); } else { k5 = 16; y = "2.3283064365386962890625e-10"; } Ctor.precision += k5; x = taylorSeries(Ctor, 1, x.times(y), new Ctor(1)); for (var i5 = k5; i5--; ) { var cos2x = x.times(x); x = cos2x.times(cos2x).minus(cos2x).times(8).plus(1); } Ctor.precision -= k5; return x; } __name(cosine, "cosine"); var divide = /* @__PURE__ */ (function() { function multiplyInteger(x, k5, base) { var temp, carry = 0, i5 = x.length; for (x = x.slice(); i5--; ) { temp = x[i5] * k5 + carry; x[i5] = temp % base | 0; carry = temp / base | 0; } if (carry) x.unshift(carry); return x; } __name(multiplyInteger, "multiplyInteger"); function compare(a5, b5, aL, bL) { var i5, r5; if (aL != bL) { r5 = aL > bL ? 1 : -1; } else { for (i5 = r5 = 0; i5 < aL; i5++) { if (a5[i5] != b5[i5]) { r5 = a5[i5] > b5[i5] ? 1 : -1; break; } } } return r5; } __name(compare, "compare"); function subtract(a5, b5, aL, base) { var i5 = 0; for (; aL--; ) { a5[aL] -= i5; i5 = a5[aL] < b5[aL] ? 1 : 0; a5[aL] = i5 * base + a5[aL] - b5[aL]; } for (; !a5[0] && a5.length > 1; ) a5.shift(); } __name(subtract, "subtract"); return function(x, y, pr, rm, dp, base) { var cmp, e5, i5, k5, logBase, more, prod, prodL, q3, qd, rem, remL, rem0, sd, t, xi, xL, yd0, yL, yz, Ctor = x.constructor, sign22 = x.s == y.s ? 1 : -1, xd = x.d, yd = y.d; if (!xd || !xd[0] || !yd || !yd[0]) { return new Ctor( // Return NaN if either NaN, or both Infinity or 0. !x.s || !y.s || (xd ? yd && xd[0] == yd[0] : !yd) ? NaN : ( // Return ±0 if x is 0 or y is ±Infinity, or return ±Infinity as y is 0. xd && xd[0] == 0 || !yd ? sign22 * 0 : sign22 / 0 ) ); } if (base) { logBase = 1; e5 = x.e - y.e; } else { base = BASE; logBase = LOG_BASE; e5 = mathfloor(x.e / logBase) - mathfloor(y.e / logBase); } yL = yd.length; xL = xd.length; q3 = new Ctor(sign22); qd = q3.d = []; for (i5 = 0; yd[i5] == (xd[i5] || 0); i5++) ; if (yd[i5] > (xd[i5] || 0)) e5--; if (pr == null) { sd = pr = Ctor.precision; rm = Ctor.rounding; } else if (dp) { sd = pr + (x.e - y.e) + 1; } else { sd = pr; } if (sd < 0) { qd.push(1); more = true; } else { sd = sd / logBase + 2 | 0; i5 = 0; if (yL == 1) { k5 = 0; yd = yd[0]; sd++; for (; (i5 < xL || k5) && sd--; i5++) { t = k5 * base + (xd[i5] || 0); qd[i5] = t / yd | 0; k5 = t % yd | 0; } more = k5 || i5 < xL; } else { k5 = base / (yd[0] + 1) | 0; if (k5 > 1) { yd = multiplyInteger(yd, k5, base); xd = multiplyInteger(xd, k5, base); yL = yd.length; xL = xd.length; } xi = yL; rem = xd.slice(0, yL); remL = rem.length; for (; remL < yL; ) rem[remL++] = 0; yz = yd.slice(); yz.unshift(0); yd0 = yd[0]; if (yd[1] >= base / 2) ++yd0; do { k5 = 0; cmp = compare(yd, rem, yL, remL); if (cmp < 0) { rem0 = rem[0]; if (yL != remL) rem0 = rem0 * base + (rem[1] || 0); k5 = rem0 / yd0 | 0; if (k5 > 1) { if (k5 >= base) k5 = base - 1; prod = multiplyInteger(yd, k5, base); prodL = prod.length; remL = rem.length; cmp = compare(prod, rem, prodL, remL); if (cmp == 1) { k5--; subtract(prod, yL < prodL ? yz : yd, prodL, base); } } else { if (k5 == 0) cmp = k5 = 1; prod = yd.slice(); } prodL = prod.length; if (prodL < remL) prod.unshift(0); subtract(rem, prod, remL, base); if (cmp == -1) { remL = rem.length; cmp = compare(yd, rem, yL, remL); if (cmp < 1) { k5++; subtract(rem, yL < remL ? yz : yd, remL, base); } } remL = rem.length; } else if (cmp === 0) { k5++; rem = [0]; } qd[i5++] = k5; if (cmp && rem[0]) { rem[remL++] = xd[xi] || 0; } else { rem = [xd[xi]]; remL = 1; } } while ((xi++ < xL || rem[0] !== void 0) && sd--); more = rem[0] !== void 0; } if (!qd[0]) qd.shift(); } if (logBase == 1) { q3.e = e5; inexact = more; } else { for (i5 = 1, k5 = qd[0]; k5 >= 10; k5 /= 10) i5++; q3.e = i5 + e5 * logBase - 1; finalise(q3, dp ? pr + q3.e + 1 : pr, rm, more); } return q3; }; })(); function finalise(x, sd, rm, isTruncated) { var digits, i5, j5, k5, rd, roundUp, w, xd, xdi, Ctor = x.constructor; out: if (sd != null) { xd = x.d; if (!xd) return x; for (digits = 1, k5 = xd[0]; k5 >= 10; k5 /= 10) digits++; i5 = sd - digits; if (i5 < 0) { i5 += LOG_BASE; j5 = sd; w = xd[xdi = 0]; rd = w / mathpow(10, digits - j5 - 1) % 10 | 0; } else { xdi = Math.ceil((i5 + 1) / LOG_BASE); k5 = xd.length; if (xdi >= k5) { if (isTruncated) { for (; k5++ <= xdi; ) xd.push(0); w = rd = 0; digits = 1; i5 %= LOG_BASE; j5 = i5 - LOG_BASE + 1; } else { break out; } } else { w = k5 = xd[xdi]; for (digits = 1; k5 >= 10; k5 /= 10) digits++; i5 %= LOG_BASE; j5 = i5 - LOG_BASE + digits; rd = j5 < 0 ? 0 : w / mathpow(10, digits - j5 - 1) % 10 | 0; } } isTruncated = isTruncated || sd < 0 || xd[xdi + 1] !== void 0 || (j5 < 0 ? w : w % mathpow(10, digits - j5 - 1)); roundUp = rm < 4 ? (rd || isTruncated) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) : rd > 5 || rd == 5 && (rm == 4 || isTruncated || rm == 6 && // Check whether the digit to the left of the rounding digit is odd. (i5 > 0 ? j5 > 0 ? w / mathpow(10, digits - j5) : 0 : xd[xdi - 1]) % 10 & 1 || rm == (x.s < 0 ? 8 : 7)); if (sd < 1 || !xd[0]) { xd.length = 0; if (roundUp) { sd -= x.e + 1; xd[0] = mathpow(10, (LOG_BASE - sd % LOG_BASE) % LOG_BASE); x.e = -sd || 0; } else { xd[0] = x.e = 0; } return x; } if (i5 == 0) { xd.length = xdi; k5 = 1; xdi--; } else { xd.length = xdi + 1; k5 = mathpow(10, LOG_BASE - i5); xd[xdi] = j5 > 0 ? (w / mathpow(10, digits - j5) % mathpow(10, j5) | 0) * k5 : 0; } if (roundUp) { for (; ; ) { if (xdi == 0) { for (i5 = 1, j5 = xd[0]; j5 >= 10; j5 /= 10) i5++; j5 = xd[0] += k5; for (k5 = 1; j5 >= 10; j5 /= 10) k5++; if (i5 != k5) { x.e++; if (xd[0] == BASE) xd[0] = 1; } break; } else { xd[xdi] += k5; if (xd[xdi] != BASE) break; xd[xdi--] = 0; k5 = 1; } } } for (i5 = xd.length; xd[--i5] === 0; ) xd.pop(); } if (external) { if (x.e > Ctor.maxE) { x.d = null; x.e = NaN; } else if (x.e < Ctor.minE) { x.e = 0; x.d = [0]; } } return x; } __name(finalise, "finalise"); function finiteToString(x, isExp, sd) { if (!x.isFinite()) return nonFiniteToString(x); var k5, e5 = x.e, str = digitsToString(x.d), len = str.length; if (isExp) { if (sd && (k5 = sd - len) > 0) { str = str.charAt(0) + "." + str.slice(1) + getZeroString(k5); } else if (len > 1) { str = str.charAt(0) + "." + str.slice(1); } str = str + (x.e < 0 ? "e" : "e+") + x.e; } else if (e5 < 0) { str = "0." + getZeroString(-e5 - 1) + str; if (sd && (k5 = sd - len) > 0) str += getZeroString(k5); } else if (e5 >= len) { str += getZeroString(e5 + 1 - len); if (sd && (k5 = sd - e5 - 1) > 0) str = str + "." + getZeroString(k5); } else { if ((k5 = e5 + 1) < len) str = str.slice(0, k5) + "." + str.slice(k5); if (sd && (k5 = sd - len) > 0) { if (e5 + 1 === len) str += "."; str += getZeroString(k5); } } return str; } __name(finiteToString, "finiteToString"); function getBase10Exponent(digits, e5) { var w = digits[0]; for (e5 *= LOG_BASE; w >= 10; w /= 10) e5++; return e5; } __name(getBase10Exponent, "getBase10Exponent"); function getLn10(Ctor, sd, pr) { if (sd > LN10_PRECISION) { external = true; if (pr) Ctor.precision = pr; throw Error(precisionLimitExceeded); } return finalise(new Ctor(LN10), sd, 1, true); } __name(getLn10, "getLn10"); function getPi(Ctor, sd, rm) { if (sd > PI_PRECISION) throw Error(precisionLimitExceeded); return finalise(new Ctor(PI), sd, rm, true); } __name(getPi, "getPi"); function getPrecision(digits) { var w = digits.length - 1, len = w * LOG_BASE + 1; w = digits[w]; if (w) { for (; w % 10 == 0; w /= 10) len--; for (w = digits[0]; w >= 10; w /= 10) len++; } return len; } __name(getPrecision, "getPrecision"); function getZeroString(k5) { var zs = ""; for (; k5--; ) zs += "0"; return zs; } __name(getZeroString, "getZeroString"); function intPow(Ctor, x, n3, pr) { var isTruncated, r5 = new Ctor(1), k5 = Math.ceil(pr / LOG_BASE + 4); external = false; for (; ; ) { if (n3 % 2) { r5 = r5.times(x); if (truncate(r5.d, k5)) isTruncated = true; } n3 = mathfloor(n3 / 2); if (n3 === 0) { n3 = r5.d.length - 1; if (isTruncated && r5.d[n3] === 0) ++r5.d[n3]; break; } x = x.times(x); truncate(x.d, k5); } external = true; return r5; } __name(intPow, "intPow"); function isOdd(n3) { return n3.d[n3.d.length - 1] & 1; } __name(isOdd, "isOdd"); function maxOrMin(Ctor, args, n3) { var k5, y, x = new Ctor(args[0]), i5 = 0; for (; ++i5 < args.length; ) { y = new Ctor(args[i5]); if (!y.s) { x = y; break; } k5 = x.cmp(y); if (k5 === n3 || k5 === 0 && x.s === n3) { x = y; } } return x; } __name(maxOrMin, "maxOrMin"); function naturalExponential(x, sd) { var denominator, guard, j5, pow2, sum2, t, wpr, rep = 0, i5 = 0, k5 = 0, Ctor = x.constructor, rm = Ctor.rounding, pr = Ctor.precision; if (!x.d || !x.d[0] || x.e > 17) { return new Ctor(x.d ? !x.d[0] ? 1 : x.s < 0 ? 0 : 1 / 0 : x.s ? x.s < 0 ? 0 : x : 0 / 0); } if (sd == null) { external = false; wpr = pr; } else { wpr = sd; } t = new Ctor(0.03125); while (x.e > -2) { x = x.times(t); k5 += 5; } guard = Math.log(mathpow(2, k5)) / Math.LN10 * 2 + 5 | 0; wpr += guard; denominator = pow2 = sum2 = new Ctor(1); Ctor.precision = wpr; for (; ; ) { pow2 = finalise(pow2.times(x), wpr, 1); denominator = denominator.times(++i5); t = sum2.plus(divide(pow2, denominator, wpr, 1)); if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum2.d).slice(0, wpr)) { j5 = k5; while (j5--) sum2 = finalise(sum2.times(sum2), wpr, 1); if (sd == null) { if (rep < 3 && checkRoundingDigits(sum2.d, wpr - guard, rm, rep)) { Ctor.precision = wpr += 10; denominator = pow2 = t = new Ctor(1); i5 = 0; rep++; } else { return finalise(sum2, Ctor.precision = pr, rm, external = true); } } else { Ctor.precision = pr; return sum2; } } sum2 = t; } } __name(naturalExponential, "naturalExponential"); function naturalLogarithm(y, sd) { var c5, c0, denominator, e5, numerator, rep, sum2, t, wpr, x1, x2, n3 = 1, guard = 10, x = y, xd = x.d, Ctor = x.constructor, rm = Ctor.rounding, pr = Ctor.precision; if (x.s < 0 || !xd || !xd[0] || !x.e && xd[0] == 1 && xd.length == 1) { return new Ctor(xd && !xd[0] ? -1 / 0 : x.s != 1 ? NaN : xd ? 0 : x); } if (sd == null) { external = false; wpr = pr; } else { wpr = sd; } Ctor.precision = wpr += guard; c5 = digitsToString(xd); c0 = c5.charAt(0); if (Math.abs(e5 = x.e) < 15e14) { while (c0 < 7 && c0 != 1 || c0 == 1 && c5.charAt(1) > 3) { x = x.times(y); c5 = digitsToString(x.d); c0 = c5.charAt(0); n3++; } e5 = x.e; if (c0 > 1) { x = new Ctor("0." + c5); e5++; } else { x = new Ctor(c0 + "." + c5.slice(1)); } } else { t = getLn10(Ctor, wpr + 2, pr).times(e5 + ""); x = naturalLogarithm(new Ctor(c0 + "." + c5.slice(1)), wpr - guard).plus(t); Ctor.precision = pr; return sd == null ? finalise(x, pr, rm, external = true) : x; } x1 = x; sum2 = numerator = x = divide(x.minus(1), x.plus(1), wpr, 1); x2 = finalise(x.times(x), wpr, 1); denominator = 3; for (; ; ) { numerator = finalise(numerator.times(x2), wpr, 1); t = sum2.plus(divide(numerator, new Ctor(denominator), wpr, 1)); if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum2.d).slice(0, wpr)) { sum2 = sum2.times(2); if (e5 !== 0) sum2 = sum2.plus(getLn10(Ctor, wpr + 2, pr).times(e5 + "")); sum2 = divide(sum2, new Ctor(n3), wpr, 1); if (sd == null) { if (checkRoundingDigits(sum2.d, wpr - guard, rm, rep)) { Ctor.precision = wpr += guard; t = numerator = x = divide(x1.minus(1), x1.plus(1), wpr, 1); x2 = finalise(x.times(x), wpr, 1); denominator = rep = 1; } else { return finalise(sum2, Ctor.precision = pr, rm, external = true); } } else { Ctor.precision = pr; return sum2; } } sum2 = t; denominator += 2; } } __name(naturalLogarithm, "naturalLogarithm"); function nonFiniteToString(x) { return String(x.s * x.s / 0); } __name(nonFiniteToString, "nonFiniteToString"); function parseDecimal(x, str) { var e5, i5, len; if ((e5 = str.indexOf(".")) > -1) str = str.replace(".", ""); if ((i5 = str.search(/e/i)) > 0) { if (e5 < 0) e5 = i5; e5 += +str.slice(i5 + 1); str = str.substring(0, i5); } else if (e5 < 0) { e5 = str.length; } for (i5 = 0; str.charCodeAt(i5) === 48; i5++) ; for (len = str.length; str.charCodeAt(len - 1) === 48; --len) ; str = str.slice(i5, len); if (str) { len -= i5; x.e = e5 = e5 - i5 - 1; x.d = []; i5 = (e5 + 1) % LOG_BASE; if (e5 < 0) i5 += LOG_BASE; if (i5 < len) { if (i5) x.d.push(+str.slice(0, i5)); for (len -= LOG_BASE; i5 < len; ) x.d.push(+str.slice(i5, i5 += LOG_BASE)); str = str.slice(i5); i5 = LOG_BASE - str.length; } else { i5 -= len; } for (; i5--; ) str += "0"; x.d.push(+str); if (external) { if (x.e > x.constructor.maxE) { x.d = null; x.e = NaN; } else if (x.e < x.constructor.minE) { x.e = 0; x.d = [0]; } } } else { x.e = 0; x.d = [0]; } return x; } __name(parseDecimal, "parseDecimal"); function parseOther(x, str) { var base, Ctor, divisor, i5, isFloat, len, p3, xd, xe; if (str.indexOf("_") > -1) { str = str.replace(/(\d)_(?=\d)/g, "$1"); if (isDecimal.test(str)) return parseDecimal(x, str); } else if (str === "Infinity" || str === "NaN") { if (!+str) x.s = NaN; x.e = NaN; x.d = null; return x; } if (isHex.test(str)) { base = 16; str = str.toLowerCase(); } else if (isBinary.test(str)) { base = 2; } else if (isOctal.test(str)) { base = 8; } else { throw Error(invalidArgument + str); } i5 = str.search(/p/i); if (i5 > 0) { p3 = +str.slice(i5 + 1); str = str.substring(2, i5); } else { str = str.slice(2); } i5 = str.indexOf("."); isFloat = i5 >= 0; Ctor = x.constructor; if (isFloat) { str = str.replace(".", ""); len = str.length; i5 = len - i5; divisor = intPow(Ctor, new Ctor(base), i5, i5 * 2); } xd = convertBase(str, base, BASE); xe = xd.length - 1; for (i5 = xe; xd[i5] === 0; --i5) xd.pop(); if (i5 < 0) return new Ctor(x.s * 0); x.e = getBase10Exponent(xd, xe); x.d = xd; external = false; if (isFloat) x = divide(x, divisor, len * 4); if (p3) x = x.times(Math.abs(p3) < 54 ? mathpow(2, p3) : Decimal4.pow(2, p3)); external = true; return x; } __name(parseOther, "parseOther"); function sine(Ctor, x) { var k5, len = x.d.length; if (len < 3) { return x.isZero() ? x : taylorSeries(Ctor, 2, x, x); } k5 = 1.4 * Math.sqrt(len); k5 = k5 > 16 ? 16 : k5 | 0; x = x.times(1 / tinyPow(5, k5)); x = taylorSeries(Ctor, 2, x, x); var sin2_x, d5 = new Ctor(5), d16 = new Ctor(16), d20 = new Ctor(20); for (; k5--; ) { sin2_x = x.times(x); x = x.times(d5.plus(sin2_x.times(d16.times(sin2_x).minus(d20)))); } return x; } __name(sine, "sine"); function taylorSeries(Ctor, n3, x, y, isHyperbolic) { var j5, t, u, x2, i5 = 1, pr = Ctor.precision, k5 = Math.ceil(pr / LOG_BASE); external = false; x2 = x.times(x); u = new Ctor(y); for (; ; ) { t = divide(u.times(x2), new Ctor(n3++ * n3++), pr, 1); u = isHyperbolic ? y.plus(t) : y.minus(t); y = divide(t.times(x2), new Ctor(n3++ * n3++), pr, 1); t = u.plus(y); if (t.d[k5] !== void 0) { for (j5 = k5; t.d[j5] === u.d[j5] && j5--; ) ; if (j5 == -1) break; } j5 = u; u = y; y = t; t = j5; i5++; } external = true; t.d.length = k5 + 1; return t; } __name(taylorSeries, "taylorSeries"); function tinyPow(b5, e5) { var n3 = b5; while (--e5) n3 *= b5; return n3; } __name(tinyPow, "tinyPow"); function toLessThanHalfPi(Ctor, x) { var t, isNeg = x.s < 0, pi = getPi(Ctor, Ctor.precision, 1), halfPi = pi.times(0.5); x = x.abs(); if (x.lte(halfPi)) { quadrant = isNeg ? 4 : 1; return x; } t = x.divToInt(pi); if (t.isZero()) { quadrant = isNeg ? 3 : 2; } else { x = x.minus(t.times(pi)); if (x.lte(halfPi)) { quadrant = isOdd(t) ? isNeg ? 2 : 3 : isNeg ? 4 : 1; return x; } quadrant = isOdd(t) ? isNeg ? 1 : 4 : isNeg ? 3 : 2; } return x.minus(pi).abs(); } __name(toLessThanHalfPi, "toLessThanHalfPi"); function toStringBinary(x, baseOut, sd, rm) { var base, e5, i5, k5, len, roundUp, str, xd, y, Ctor = x.constructor, isExp = sd !== void 0; if (isExp) { checkInt32(sd, 1, MAX_DIGITS); if (rm === void 0) rm = Ctor.rounding; else checkInt32(rm, 0, 8); } else { sd = Ctor.precision; rm = Ctor.rounding; } if (!x.isFinite()) { str = nonFiniteToString(x); } else { str = finiteToString(x); i5 = str.indexOf("."); if (isExp) { base = 2; if (baseOut == 16) { sd = sd * 4 - 3; } else if (baseOut == 8) { sd = sd * 3 - 2; } } else { base = baseOut; } if (i5 >= 0) { str = str.replace(".", ""); y = new Ctor(1); y.e = str.length - i5; y.d = convertBase(finiteToString(y), 10, base); y.e = y.d.length; } xd = convertBase(str, 10, base); e5 = len = xd.length; for (; xd[--len] == 0; ) xd.pop(); if (!xd[0]) { str = isExp ? "0p+0" : "0"; } else { if (i5 < 0) { e5--; } else { x = new Ctor(x); x.d = xd; x.e = e5; x = divide(x, y, sd, rm, 0, base); xd = x.d; e5 = x.e; roundUp = inexact; } i5 = xd[sd]; k5 = base / 2; roundUp = roundUp || xd[sd + 1] !== void 0; roundUp = rm < 4 ? (i5 !== void 0 || roundUp) && (rm === 0 || rm === (x.s < 0 ? 3 : 2)) : i5 > k5 || i5 === k5 && (rm === 4 || roundUp || rm === 6 && xd[sd - 1] & 1 || rm === (x.s < 0 ? 8 : 7)); xd.length = sd; if (roundUp) { for (; ++xd[--sd] > base - 1; ) { xd[sd] = 0; if (!sd) { ++e5; xd.unshift(1); } } } for (len = xd.length; !xd[len - 1]; --len) ; for (i5 = 0, str = ""; i5 < len; i5++) str += NUMERALS.charAt(xd[i5]); if (isExp) { if (len > 1) { if (baseOut == 16 || baseOut == 8) { i5 = baseOut == 16 ? 4 : 3; for (--len; len % i5; len++) str += "0"; xd = convertBase(str, base, baseOut); for (len = xd.length; !xd[len - 1]; --len) ; for (i5 = 1, str = "1."; i5 < len; i5++) str += NUMERALS.charAt(xd[i5]); } else { str = str.charAt(0) + "." + str.slice(1); } } str = str + (e5 < 0 ? "p" : "p+") + e5; } else if (e5 < 0) { for (; ++e5; ) str = "0" + str; str = "0." + str; } else { if (++e5 > len) for (e5 -= len; e5--; ) str += "0"; else if (e5 < len) str = str.slice(0, e5) + "." + str.slice(e5); } } str = (baseOut == 16 ? "0x" : baseOut == 2 ? "0b" : baseOut == 8 ? "0o" : "") + str; } return x.s < 0 ? "-" + str : str; } __name(toStringBinary, "toStringBinary"); function truncate(arr, len) { if (arr.length > len) { arr.length = len; return true; } } __name(truncate, "truncate"); function abs(x) { return new this(x).abs(); } __name(abs, "abs"); function acos(x) { return new this(x).acos(); } __name(acos, "acos"); function acosh(x) { return new this(x).acosh(); } __name(acosh, "acosh"); function add(x, y) { return new this(x).plus(y); } __name(add, "add"); function asin(x) { return new this(x).asin(); } __name(asin, "asin"); function asinh(x) { return new this(x).asinh(); } __name(asinh, "asinh"); function atan(x) { return new this(x).atan(); } __name(atan, "atan"); function atanh(x) { return new this(x).atanh(); } __name(atanh, "atanh"); function atan2(y, x) { y = new this(y); x = new this(x); var r5, pr = this.precision, rm = this.rounding, wpr = pr + 4; if (!y.s || !x.s) { r5 = new this(NaN); } else if (!y.d && !x.d) { r5 = getPi(this, wpr, 1).times(x.s > 0 ? 0.25 : 0.75); r5.s = y.s; } else if (!x.d || y.isZero()) { r5 = x.s < 0 ? getPi(this, pr, rm) : new this(0); r5.s = y.s; } else if (!y.d || x.isZero()) { r5 = getPi(this, wpr, 1).times(0.5); r5.s = y.s; } else if (x.s < 0) { this.precision = wpr; this.rounding = 1; r5 = this.atan(divide(y, x, wpr, 1)); x = getPi(this, wpr, 1); this.precision = pr; this.rounding = rm; r5 = y.s < 0 ? r5.minus(x) : r5.plus(x); } else { r5 = this.atan(divide(y, x, wpr, 1)); } return r5; } __name(atan2, "atan2"); function cbrt(x) { return new this(x).cbrt(); } __name(cbrt, "cbrt"); function ceil(x) { return finalise(x = new this(x), x.e + 1, 2); } __name(ceil, "ceil"); function clamp(x, min2, max2) { return new this(x).clamp(min2, max2); } __name(clamp, "clamp"); function config3(obj) { if (!obj || typeof obj !== "object") throw Error(decimalError + "Object expected"); var i5, p3, v, useDefaults = obj.defaults === true, ps = [ "precision", 1, MAX_DIGITS, "rounding", 0, 8, "toExpNeg", -EXP_LIMIT, 0, "toExpPos", 0, EXP_LIMIT, "maxE", 0, EXP_LIMIT, "minE", -EXP_LIMIT, 0, "modulo", 0, 9 ]; for (i5 = 0; i5 < ps.length; i5 += 3) { if (p3 = ps[i5], useDefaults) this[p3] = DEFAULTS[p3]; if ((v = obj[p3]) !== void 0) { if (mathfloor(v) === v && v >= ps[i5 + 1] && v <= ps[i5 + 2]) this[p3] = v; else throw Error(invalidArgument + p3 + ": " + v); } } if (p3 = "crypto", useDefaults) this[p3] = DEFAULTS[p3]; if ((v = obj[p3]) !== void 0) { if (v === true || v === false || v === 0 || v === 1) { if (v) { if (typeof crypto != "undefined" && crypto && (crypto.getRandomValues || crypto.randomBytes)) { this[p3] = true; } else { throw Error(cryptoUnavailable); } } else { this[p3] = false; } } else { throw Error(invalidArgument + p3 + ": " + v); } } return this; } __name(config3, "config"); function cos(x) { return new this(x).cos(); } __name(cos, "cos"); function cosh(x) { return new this(x).cosh(); } __name(cosh, "cosh"); function clone2(obj) { var i5, p3, ps; function Decimal22(v) { var e5, i22, t, x = this; if (!(x instanceof Decimal22)) return new Decimal22(v); x.constructor = Decimal22; if (isDecimalInstance(v)) { x.s = v.s; if (external) { if (!v.d || v.e > Decimal22.maxE) { x.e = NaN; x.d = null; } else if (v.e < Decimal22.minE) { x.e = 0; x.d = [0]; } else { x.e = v.e; x.d = v.d.slice(); } } else { x.e = v.e; x.d = v.d ? v.d.slice() : v.d; } return; } t = typeof v; if (t === "number") { if (v === 0) { x.s = 1 / v < 0 ? -1 : 1; x.e = 0; x.d = [0]; return; } if (v < 0) { v = -v; x.s = -1; } else { x.s = 1; } if (v === ~~v && v < 1e7) { for (e5 = 0, i22 = v; i22 >= 10; i22 /= 10) e5++; if (external) { if (e5 > Decimal22.maxE) { x.e = NaN; x.d = null; } else if (e5 < Decimal22.minE) { x.e = 0; x.d = [0]; } else { x.e = e5; x.d = [v]; } } else { x.e = e5; x.d = [v]; } return; } if (v * 0 !== 0) { if (!v) x.s = NaN; x.e = NaN; x.d = null; return; } return parseDecimal(x, v.toString()); } if (t === "string") { if ((i22 = v.charCodeAt(0)) === 45) { v = v.slice(1); x.s = -1; } else { if (i22 === 43) v = v.slice(1); x.s = 1; } return isDecimal.test(v) ? parseDecimal(x, v) : parseOther(x, v); } if (t === "bigint") { if (v < 0) { v = -v; x.s = -1; } else { x.s = 1; } return parseDecimal(x, v.toString()); } throw Error(invalidArgument + v); } __name(Decimal22, "Decimal2"); Decimal22.prototype = P; Decimal22.ROUND_UP = 0; Decimal22.ROUND_DOWN = 1; Decimal22.ROUND_CEIL = 2; Decimal22.ROUND_FLOOR = 3; Decimal22.ROUND_HALF_UP = 4; Decimal22.ROUND_HALF_DOWN = 5; Decimal22.ROUND_HALF_EVEN = 6; Decimal22.ROUND_HALF_CEIL = 7; Decimal22.ROUND_HALF_FLOOR = 8; Decimal22.EUCLID = 9; Decimal22.config = Decimal22.set = config3; Decimal22.clone = clone2; Decimal22.isDecimal = isDecimalInstance; Decimal22.abs = abs; Decimal22.acos = acos; Decimal22.acosh = acosh; Decimal22.add = add; Decimal22.asin = asin; Decimal22.asinh = asinh; Decimal22.atan = atan; Decimal22.atanh = atanh; Decimal22.atan2 = atan2; Decimal22.cbrt = cbrt; Decimal22.ceil = ceil; Decimal22.clamp = clamp; Decimal22.cos = cos; Decimal22.cosh = cosh; Decimal22.div = div; Decimal22.exp = exp; Decimal22.floor = floor; Decimal22.hypot = hypot; Decimal22.ln = ln; Decimal22.log = log; Decimal22.log10 = log10; Decimal22.log2 = log2; Decimal22.max = max; Decimal22.min = min; Decimal22.mod = mod; Decimal22.mul = mul; Decimal22.pow = pow; Decimal22.random = random; Decimal22.round = round; Decimal22.sign = sign2; Decimal22.sin = sin; Decimal22.sinh = sinh; Decimal22.sqrt = sqrt; Decimal22.sub = sub; Decimal22.sum = sum; Decimal22.tan = tan; Decimal22.tanh = tanh; Decimal22.trunc = trunc; if (obj === void 0) obj = {}; if (obj) { if (obj.defaults !== true) { ps = ["precision", "rounding", "toExpNeg", "toExpPos", "maxE", "minE", "modulo", "crypto"]; for (i5 = 0; i5 < ps.length; ) if (!obj.hasOwnProperty(p3 = ps[i5++])) obj[p3] = this[p3]; } } Decimal22.config(obj); return Decimal22; } __name(clone2, "clone"); function div(x, y) { return new this(x).div(y); } __name(div, "div"); function exp(x) { return new this(x).exp(); } __name(exp, "exp"); function floor(x) { return finalise(x = new this(x), x.e + 1, 3); } __name(floor, "floor"); function hypot() { var i5, n3, t = new this(0); external = false; for (i5 = 0; i5 < arguments.length; ) { n3 = new this(arguments[i5++]); if (!n3.d) { if (n3.s) { external = true; return new this(1 / 0); } t = n3; } else if (t.d) { t = t.plus(n3.times(n3)); } } external = true; return t.sqrt(); } __name(hypot, "hypot"); function isDecimalInstance(obj) { return obj instanceof Decimal4 || obj && obj.toStringTag === tag || false; } __name(isDecimalInstance, "isDecimalInstance"); function ln(x) { return new this(x).ln(); } __name(ln, "ln"); function log(x, y) { return new this(x).log(y); } __name(log, "log"); function log2(x) { return new this(x).log(2); } __name(log2, "log2"); function log10(x) { return new this(x).log(10); } __name(log10, "log10"); function max() { return maxOrMin(this, arguments, -1); } __name(max, "max"); function min() { return maxOrMin(this, arguments, 1); } __name(min, "min"); function mod(x, y) { return new this(x).mod(y); } __name(mod, "mod"); function mul(x, y) { return new this(x).mul(y); } __name(mul, "mul"); function pow(x, y) { return new this(x).pow(y); } __name(pow, "pow"); function random(sd) { var d5, e5, k5, n3, i5 = 0, r5 = new this(1), rd = []; if (sd === void 0) sd = this.precision; else checkInt32(sd, 1, MAX_DIGITS); k5 = Math.ceil(sd / LOG_BASE); if (!this.crypto) { for (; i5 < k5; ) rd[i5++] = Math.random() * 1e7 | 0; } else if (crypto.getRandomValues) { d5 = crypto.getRandomValues(new Uint32Array(k5)); for (; i5 < k5; ) { n3 = d5[i5]; if (n3 >= 429e7) { d5[i5] = crypto.getRandomValues(new Uint32Array(1))[0]; } else { rd[i5++] = n3 % 1e7; } } } else if (crypto.randomBytes) { d5 = crypto.randomBytes(k5 *= 4); for (; i5 < k5; ) { n3 = d5[i5] + (d5[i5 + 1] << 8) + (d5[i5 + 2] << 16) + ((d5[i5 + 3] & 127) << 24); if (n3 >= 214e7) { crypto.randomBytes(4).copy(d5, i5); } else { rd.push(n3 % 1e7); i5 += 4; } } i5 = k5 / 4; } else { throw Error(cryptoUnavailable); } k5 = rd[--i5]; sd %= LOG_BASE; if (k5 && sd) { n3 = mathpow(10, LOG_BASE - sd); rd[i5] = (k5 / n3 | 0) * n3; } for (; rd[i5] === 0; i5--) rd.pop(); if (i5 < 0) { e5 = 0; rd = [0]; } else { e5 = -1; for (; rd[0] === 0; e5 -= LOG_BASE) rd.shift(); for (k5 = 1, n3 = rd[0]; n3 >= 10; n3 /= 10) k5++; if (k5 < LOG_BASE) e5 -= LOG_BASE - k5; } r5.e = e5; r5.d = rd; return r5; } __name(random, "random"); function round(x) { return finalise(x = new this(x), x.e + 1, this.rounding); } __name(round, "round"); function sign2(x) { x = new this(x); return x.d ? x.d[0] ? x.s : 0 * x.s : x.s || NaN; } __name(sign2, "sign"); function sin(x) { return new this(x).sin(); } __name(sin, "sin"); function sinh(x) { return new this(x).sinh(); } __name(sinh, "sinh"); function sqrt(x) { return new this(x).sqrt(); } __name(sqrt, "sqrt"); function sub(x, y) { return new this(x).sub(y); } __name(sub, "sub"); function sum() { var i5 = 0, args = arguments, x = new this(args[i5]); external = false; for (; x.s && ++i5 < args.length; ) x = x.plus(args[i5]); external = true; return finalise(x, this.precision, this.rounding); } __name(sum, "sum"); function tan(x) { return new this(x).tan(); } __name(tan, "tan"); function tanh(x) { return new this(x).tanh(); } __name(tanh, "tanh"); function trunc(x) { return finalise(x = new this(x), x.e + 1, 1); } __name(trunc, "trunc"); P[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = P.toString; P[Symbol.toStringTag] = "Decimal"; var Decimal4 = P.constructor = clone2(DEFAULTS); LN10 = new Decimal4(LN10); PI = new Decimal4(PI); var Sql4 = class _Sql { static { __name(this, "_Sql"); } constructor(rawStrings, rawValues) { if (rawStrings.length - 1 !== rawValues.length) { if (rawStrings.length === 0) { throw new TypeError("Expected at least 1 string"); } throw new TypeError(`Expected ${rawStrings.length} strings to have ${rawStrings.length - 1} values`); } const valuesLength = rawValues.reduce((len, value) => len + (value instanceof _Sql ? value.values.length : 1), 0); this.values = new Array(valuesLength); this.strings = new Array(valuesLength + 1); this.strings[0] = rawStrings[0]; let i5 = 0, pos = 0; while (i5 < rawValues.length) { const child = rawValues[i5++]; const rawString = rawStrings[i5]; if (child instanceof _Sql) { this.strings[pos] += child.strings[0]; let childIndex = 0; while (childIndex < child.values.length) { this.values[pos++] = child.values[childIndex++]; this.strings[pos] = child.strings[childIndex]; } this.strings[pos] += rawString; } else { this.values[pos++] = child; this.strings[pos] = rawString; } } } get sql() { const len = this.strings.length; let i5 = 1; let value = this.strings[0]; while (i5 < len) value += `?${this.strings[i5++]}`; return value; } get statement() { const len = this.strings.length; let i5 = 1; let value = this.strings[0]; while (i5 < len) value += `:${i5}${this.strings[i5++]}`; return value; } get text() { const len = this.strings.length; let i5 = 1; let value = this.strings[0]; while (i5 < len) value += `$${i5}${this.strings[i5++]}`; return value; } inspect() { return { sql: this.sql, statement: this.statement, text: this.text, values: this.values }; } }; function join4(values, separator = ",", prefix = "", suffix = "") { if (values.length === 0) { throw new TypeError("Expected `join([])` to be called with an array of multiple elements, but got an empty array"); } return new Sql4([prefix, ...Array(values.length - 1).fill(separator), suffix], values); } __name(join4, "join"); function raw4(value) { return new Sql4([value], []); } __name(raw4, "raw"); var empty4 = raw4(""); function sql2(strings, ...values) { return new Sql4(strings, values); } __name(sql2, "sql"); } }); // ../../node_modules/.pnpm/@prisma+client@7.10.1_prism_1fac53bcaa5c7503395b340f2e6f2cd9/node_modules/@prisma/client/runtime/client.js var require_client = __commonJS({ "../../node_modules/.pnpm/@prisma+client@7.10.1_prism_1fac53bcaa5c7503395b340f2e6f2cd9/node_modules/@prisma/client/runtime/client.js"(exports, module) { "use strict"; var pu = Object.create; var xr = Object.defineProperty; var du = Object.getOwnPropertyDescriptor; var mu = Object.getOwnPropertyNames; var fu = Object.getPrototypeOf; var gu = Object.prototype.hasOwnProperty; var eo = /* @__PURE__ */ __name((e5, t) => () => (e5 && (t = e5(e5 = 0)), t), "eo"); var at = /* @__PURE__ */ __name((e5, t) => () => (t || e5((t = { exports: {} }).exports, t), t.exports), "at"); var lt = /* @__PURE__ */ __name((e5, t) => { for (var r5 in t) xr(e5, r5, { get: t[r5], enumerable: true }); }, "lt"); var to = /* @__PURE__ */ __name((e5, t, r5, n3) => { if (t && typeof t == "object" || typeof t == "function") for (let i5 of mu(t)) !gu.call(e5, i5) && i5 !== r5 && xr(e5, i5, { get: /* @__PURE__ */ __name(() => t[i5], "get"), enumerable: !(n3 = du(t, i5)) || n3.enumerable }); return e5; }, "to"); var Pe = /* @__PURE__ */ __name((e5, t, r5) => (r5 = e5 != null ? pu(fu(e5)) : {}, to(t || !e5 || !e5.__esModule ? xr(r5, "default", { value: e5, enumerable: true }) : r5, e5)), "Pe"); var yu = /* @__PURE__ */ __name((e5) => to(xr({}, "__esModule", { value: true }), e5), "yu"); var ho = at((Rf, Lu) => { Lu.exports = { name: "@prisma/engines-version", version: "8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8", main: "index.js", types: "index.d.ts", license: "Apache-2.0", author: "Tim Suchanek ", prisma: { enginesVersion: "d1b3f377ca835d73fd50954a5e22128b9ebdd6b8" }, repository: { type: "git", url: "https://github.com/prisma/engines-wrapper.git", directory: "packages/engines-version" }, devDependencies: { "@types/node": "18.19.76", typescript: "4.9.5" }, files: ["index.js", "index.d.ts"], scripts: { build: "tsc -d" } }; }); var wo = at((Pr) => { "use strict"; Object.defineProperty(Pr, "__esModule", { value: true }); Pr.enginesVersion = void 0; Pr.enginesVersion = ho().prisma.enginesVersion; }); var bo = at((If, xo) => { "use strict"; xo.exports = (e5) => { let t = e5.match(/^[ \t]*(?=\S)/gm); return t ? t.reduce((r5, n3) => Math.min(r5, n3.length), 1 / 0) : 0; }; }); var So = at((Nf, vo) => { "use strict"; vo.exports = (e5, t = 1, r5) => { if (r5 = { indent: " ", includeEmptyLines: false, ...r5 }, typeof e5 != "string") throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e5}\``); if (typeof t != "number") throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``); if (typeof r5.indent != "string") throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r5.indent}\``); if (t === 0) return e5; let n3 = r5.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm; return e5.replace(n3, r5.indent.repeat(t)); }; }); var Ro = at((Lf, Tr) => { "use strict"; Tr.exports = (e5 = {}) => { let t; if (e5.repoUrl) t = e5.repoUrl; else if (e5.user && e5.repo) t = `https://github.com/${e5.user}/${e5.repo}`; else throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options"); let r5 = new URL(`${t}/issues/new`), n3 = ["body", "title", "labels", "template", "milestone", "assignee", "projects"]; for (let i5 of n3) { let o3 = e5[i5]; if (o3 !== void 0) { if (i5 === "labels" || i5 === "projects") { if (!Array.isArray(o3)) throw new TypeError(`The \`${i5}\` option should be an array`); o3 = o3.join(","); } r5.searchParams.set(i5, o3); } } return r5.toString(); }; Tr.exports.default = Tr.exports; }); var qn = at((Ig, Fo) => { "use strict"; Fo.exports = /* @__PURE__ */ (function() { function e5(t, r5, n3, i5, o3) { return t < r5 || n3 < r5 ? t > n3 ? n3 + 1 : t + 1 : i5 === o3 ? r5 : r5 + 1; } __name(e5, "e"); return function(t, r5) { if (t === r5) return 0; if (t.length > r5.length) { var n3 = t; t = r5, r5 = n3; } for (var i5 = t.length, o3 = r5.length; i5 > 0 && t.charCodeAt(i5 - 1) === r5.charCodeAt(o3 - 1); ) i5--, o3--; for (var s2 = 0; s2 < i5 && t.charCodeAt(s2) === r5.charCodeAt(s2); ) s2++; if (i5 -= s2, o3 -= s2, i5 === 0 || o3 < 3) return o3; var a5 = 0, u, m3, P, T2, S, I, A, M, L, q3, E, D, H = []; for (u = 0; u < i5; u++) H.push(u + 1), H.push(t.charCodeAt(s2 + u)); for (var ce = H.length - 1; a5 < o3 - 3; ) for (L = r5.charCodeAt(s2 + (m3 = a5)), q3 = r5.charCodeAt(s2 + (P = a5 + 1)), E = r5.charCodeAt(s2 + (T2 = a5 + 2)), D = r5.charCodeAt(s2 + (S = a5 + 3)), I = a5 += 4, u = 0; u < ce; u += 2) A = H[u], M = H[u + 1], m3 = e5(A, m3, P, L, M), P = e5(m3, P, T2, q3, M), T2 = e5(P, T2, S, E, M), I = e5(T2, S, I, D, M), H[u] = I, S = T2, T2 = P, P = m3, m3 = A; for (; a5 < o3; ) for (L = r5.charCodeAt(s2 + (m3 = a5)), I = ++a5, u = 0; u < ce; u += 2) A = H[u], H[u] = I = e5(A, m3, I, L, H[u + 1]), m3 = A; return I; }; })(); }); var qo = eo(() => { "use strict"; }); var Uo = eo(() => { "use strict"; }); var Hm = {}; lt(Hm, { AnyNull: /* @__PURE__ */ __name(() => ee.AnyNull, "AnyNull"), DMMF: /* @__PURE__ */ __name(() => Qt, "DMMF"), DbNull: /* @__PURE__ */ __name(() => ee.DbNull, "DbNull"), Debug: /* @__PURE__ */ __name(() => K2, "Debug"), Decimal: /* @__PURE__ */ __name(() => cu.Decimal, "Decimal"), Extensions: /* @__PURE__ */ __name(() => Rn, "Extensions"), JsonNull: /* @__PURE__ */ __name(() => ee.JsonNull, "JsonNull"), NullTypes: /* @__PURE__ */ __name(() => ee.NullTypes, "NullTypes"), ObjectEnumValue: /* @__PURE__ */ __name(() => ee.ObjectEnumValue, "ObjectEnumValue"), PrismaClientInitializationError: /* @__PURE__ */ __name(() => _.PrismaClientInitializationError, "PrismaClientInitializationError"), PrismaClientKnownRequestError: /* @__PURE__ */ __name(() => _.PrismaClientKnownRequestError, "PrismaClientKnownRequestError"), PrismaClientRustPanicError: /* @__PURE__ */ __name(() => _.PrismaClientRustPanicError, "PrismaClientRustPanicError"), PrismaClientUnknownRequestError: /* @__PURE__ */ __name(() => _.PrismaClientUnknownRequestError, "PrismaClientUnknownRequestError"), PrismaClientValidationError: /* @__PURE__ */ __name(() => _.PrismaClientValidationError, "PrismaClientValidationError"), Public: /* @__PURE__ */ __name(() => Cn, "Public"), Sql: /* @__PURE__ */ __name(() => Fe.Sql, "Sql"), createParam: /* @__PURE__ */ __name(() => os, "createParam"), defineDmmfProperty: /* @__PURE__ */ __name(() => ps, "defineDmmfProperty"), deserializeJsonObject: /* @__PURE__ */ __name(() => Ae, "deserializeJsonObject"), deserializeRawResult: /* @__PURE__ */ __name(() => Tn, "deserializeRawResult"), dmmfToRuntimeDataModel: /* @__PURE__ */ __name(() => so, "dmmfToRuntimeDataModel"), empty: /* @__PURE__ */ __name(() => Fe.empty, "empty"), getPrismaClient: /* @__PURE__ */ __name(() => au, "getPrismaClient"), getRuntime: /* @__PURE__ */ __name(() => uu, "getRuntime"), isAnyNull: /* @__PURE__ */ __name(() => ee.isAnyNull, "isAnyNull"), isDbNull: /* @__PURE__ */ __name(() => ee.isDbNull, "isDbNull"), isJsonNull: /* @__PURE__ */ __name(() => ee.isJsonNull, "isJsonNull"), isObjectEnumValue: /* @__PURE__ */ __name(() => ee.isObjectEnumValue, "isObjectEnumValue"), join: /* @__PURE__ */ __name(() => Fe.join, "join"), makeStrictEnum: /* @__PURE__ */ __name(() => lu, "makeStrictEnum"), makeTypedQueryFactory: /* @__PURE__ */ __name(() => ds, "makeTypedQueryFactory"), raw: /* @__PURE__ */ __name(() => Fe.raw, "raw"), serializeJsonQuery: /* @__PURE__ */ __name(() => Vr, "serializeJsonQuery"), skip: /* @__PURE__ */ __name(() => Lr, "skip"), sqltag: /* @__PURE__ */ __name(() => Fe.sql, "sqltag"), warnOnce: /* @__PURE__ */ __name(() => Vn, "warnOnce") }); module.exports = yu(Hm); var Rn = {}; lt(Rn, { defineExtension: /* @__PURE__ */ __name(() => ro, "defineExtension"), getExtensionContext: /* @__PURE__ */ __name(() => no, "getExtensionContext") }); function ro(e5) { return typeof e5 == "function" ? e5 : (t) => t.$extends(e5); } __name(ro, "ro"); function no(e5) { return e5; } __name(no, "no"); var Cn = {}; lt(Cn, { validator: /* @__PURE__ */ __name(() => io, "validator") }); function io(...e5) { return (t) => t; } __name(io, "io"); var Ie = class { static { __name(this, "Ie"); } _map = /* @__PURE__ */ new Map(); get(t) { return this._map.get(t)?.value; } set(t, r5) { this._map.set(t, { value: r5 }); } getOrCreate(t, r5) { let n3 = this._map.get(t); if (n3) return n3.value; let i5 = r5(); return this.set(t, i5), i5; } }; function qe(e5) { return e5.substring(0, 1).toLowerCase() + e5.substring(1); } __name(qe, "qe"); function oo(e5, t) { let r5 = {}; for (let n3 of e5) { let i5 = n3[t]; r5[i5] = n3; } return r5; } __name(oo, "oo"); function Nt(e5) { let t; return { get() { return t || (t = { value: e5() }), t.value; } }; } __name(Nt, "Nt"); function so(e5) { return { models: In(e5.models), enums: In(e5.enums), types: In(e5.types) }; } __name(so, "so"); function In(e5) { let t = {}; for (let { name: r5, ...n3 } of e5) t[r5] = n3; return t; } __name(In, "In"); var as = require_dist(); var br = {}; lt(br, { $: /* @__PURE__ */ __name(() => po, "$"), bgBlack: /* @__PURE__ */ __name(() => Au, "bgBlack"), bgBlue: /* @__PURE__ */ __name(() => ku, "bgBlue"), bgCyan: /* @__PURE__ */ __name(() => Nu, "bgCyan"), bgGreen: /* @__PURE__ */ __name(() => Cu, "bgGreen"), bgMagenta: /* @__PURE__ */ __name(() => Ou, "bgMagenta"), bgRed: /* @__PURE__ */ __name(() => Ru, "bgRed"), bgWhite: /* @__PURE__ */ __name(() => Du, "bgWhite"), bgYellow: /* @__PURE__ */ __name(() => Iu, "bgYellow"), black: /* @__PURE__ */ __name(() => Eu, "black"), blue: /* @__PURE__ */ __name(() => He, "blue"), bold: /* @__PURE__ */ __name(() => Ee, "bold"), cyan: /* @__PURE__ */ __name(() => _e5, "cyan"), dim: /* @__PURE__ */ __name(() => Dt, "dim"), gray: /* @__PURE__ */ __name(() => $t, "gray"), green: /* @__PURE__ */ __name(() => Ft, "green"), grey: /* @__PURE__ */ __name(() => Su, "grey"), hidden: /* @__PURE__ */ __name(() => bu, "hidden"), inverse: /* @__PURE__ */ __name(() => xu, "inverse"), italic: /* @__PURE__ */ __name(() => wu, "italic"), magenta: /* @__PURE__ */ __name(() => Tu, "magenta"), red: /* @__PURE__ */ __name(() => ze, "red"), reset: /* @__PURE__ */ __name(() => hu, "reset"), strikethrough: /* @__PURE__ */ __name(() => Pu, "strikethrough"), underline: /* @__PURE__ */ __name(() => Mt, "underline"), white: /* @__PURE__ */ __name(() => vu, "white"), yellow: /* @__PURE__ */ __name(() => _t, "yellow") }); var kn; var ao; var lo; var uo; var co = true; typeof process < "u" && ({ FORCE_COLOR: kn, NODE_DISABLE_COLORS: ao, NO_COLOR: lo, TERM: uo } = process.env || {}, co = process.stdout && process.stdout.isTTY); var po = { enabled: !ao && lo == null && uo !== "dumb" && (kn != null && kn !== "0" || co) }; function B(e5, t) { let r5 = new RegExp(`\\x1b\\[${t}m`, "g"), n3 = `\x1B[${e5}m`, i5 = `\x1B[${t}m`; return function(o3) { return !po.enabled || o3 == null ? o3 : n3 + (~("" + o3).indexOf(i5) ? o3.replace(r5, i5 + n3) : o3) + i5; }; } __name(B, "B"); var hu = B(0, 0); var Ee = B(1, 22); var Dt = B(2, 22); var wu = B(3, 23); var Mt = B(4, 24); var xu = B(7, 27); var bu = B(8, 28); var Pu = B(9, 29); var Eu = B(30, 39); var ze = B(31, 39); var Ft = B(32, 39); var _t = B(33, 39); var He = B(34, 39); var Tu = B(35, 39); var _e5 = B(36, 39); var vu = B(37, 39); var $t = B(90, 39); var Su = B(90, 39); var Au = B(40, 49); var Ru = B(41, 49); var Cu = B(42, 49); var Iu = B(43, 49); var ku = B(44, 49); var Ou = B(45, 49); var Nu = B(46, 49); var Du = B(47, 49); var Mu = 100; var mo = ["green", "yellow", "blue", "magenta", "cyan", "red"]; var Lt = []; var fo = Date.now(); var Fu = 0; var On = typeof process < "u" ? process.env : {}; globalThis.DEBUG ??= On.DEBUG ?? ""; globalThis.DEBUG_COLORS ??= On.DEBUG_COLORS ? On.DEBUG_COLORS === "true" : true; var Vt = { enable(e5) { typeof e5 == "string" && (globalThis.DEBUG = e5); }, disable() { let e5 = globalThis.DEBUG; return globalThis.DEBUG = "", e5; }, enabled(e5) { let t = globalThis.DEBUG.split(",").map((i5) => i5.replace(/[.+?^${}()|[\]\\]/g, "\\$&")), r5 = t.some((i5) => i5 === "" || i5[0] === "-" ? false : e5.match(RegExp(i5.split("*").join(".*") + "$"))), n3 = t.some((i5) => i5 === "" || i5[0] !== "-" ? false : e5.match(RegExp(i5.slice(1).split("*").join(".*") + "$"))); return r5 && !n3; }, log: /* @__PURE__ */ __name((...e5) => { let [t, r5, ...n3] = e5; (console.warn ?? console.log)(`${t} ${r5}`, ...n3); }, "log"), formatters: {} }; function _u(e5) { let t = { color: mo[Fu++ % mo.length], enabled: Vt.enabled(e5), namespace: e5, log: Vt.log, extend: /* @__PURE__ */ __name(() => { }, "extend") }, r5 = /* @__PURE__ */ __name((...n3) => { let { enabled: i5, namespace: o3, color: s2, log: a5 } = t; if (n3.length !== 0 && Lt.push([o3, ...n3]), Lt.length > Mu && Lt.shift(), Vt.enabled(o3) || i5) { let u = n3.map((P) => typeof P == "string" ? P : $u(P)), m3 = `+${Date.now() - fo}ms`; fo = Date.now(), globalThis.DEBUG_COLORS ? a5(br[s2](Ee(o3)), ...u, br[s2](m3)) : a5(o3, ...u, m3); } }, "r"); return new Proxy(r5, { get: /* @__PURE__ */ __name((n3, i5) => t[i5], "get"), set: /* @__PURE__ */ __name((n3, i5, o3) => t[i5] = o3, "set") }); } __name(_u, "_u"); var K2 = new Proxy(_u, { get: /* @__PURE__ */ __name((e5, t) => Vt[t], "get"), set: /* @__PURE__ */ __name((e5, t, r5) => Vt[t] = r5, "set") }); function $u(e5, t = 2) { let r5 = /* @__PURE__ */ new Set(); return JSON.stringify(e5, (n3, i5) => { if (typeof i5 == "object" && i5 !== null) { if (r5.has(i5)) return "[Circular *]"; r5.add(i5); } else if (typeof i5 == "bigint") return i5.toString(); return i5; }, t); } __name($u, "$u"); function go(e5 = 7500) { let t = Lt.map(([r5, ...n3]) => `${r5} ${n3.map((i5) => typeof i5 == "string" ? i5 : JSON.stringify(i5)).join(" ")}`).join(` `); return t.length < e5 ? t : t.slice(-e5); } __name(go, "go"); function yo() { Lt.length = 0; } __name(yo, "yo"); function $e(e5, t) { throw new Error(t); } __name($e, "$e"); var Po = Pe(bo(), 1); function Nn(e5) { let t = (0, Po.default)(e5); if (t === 0) return e5; let r5 = new RegExp(`^[ \\t]{${t}}`, "gm"); return e5.replace(r5, ""); } __name(Nn, "Nn"); var Eo = "prisma+postgres"; var Er = `${Eo}:`; function To(e5) { return e5?.toString().startsWith(`${Er}//`) ?? false; } __name(To, "To"); function Dn(e5) { if (!To(e5)) return false; let { host: t } = new URL(e5); return t.includes("localhost") || t.includes("127.0.0.1") || t.includes("[::1]"); } __name(Dn, "Dn"); var Ut = {}; lt(Ut, { error: /* @__PURE__ */ __name(() => Uu, "error"), info: /* @__PURE__ */ __name(() => qu, "info"), log: /* @__PURE__ */ __name(() => Vu, "log"), query: /* @__PURE__ */ __name(() => ju, "query"), should: /* @__PURE__ */ __name(() => Ao, "should"), tags: /* @__PURE__ */ __name(() => qt, "tags"), warn: /* @__PURE__ */ __name(() => Mn, "warn") }); var qt = { error: ze("prisma:error"), warn: _t("prisma:warn"), info: _e5("prisma:info"), query: He("prisma:query") }; var Ao = { warn: /* @__PURE__ */ __name(() => !process.env.PRISMA_DISABLE_WARNINGS, "warn") }; function Vu(...e5) { console.log(...e5); } __name(Vu, "Vu"); function Mn(e5, ...t) { Ao.warn() && console.warn(`${qt.warn} ${e5}`, ...t); } __name(Mn, "Mn"); function qu(e5, ...t) { console.info(`${qt.info} ${e5}`, ...t); } __name(qu, "qu"); function Uu(e5, ...t) { console.error(`${qt.error} ${e5}`, ...t); } __name(Uu, "Uu"); function ju(e5, ...t) { console.log(`${qt.query} ${e5}`, ...t); } __name(ju, "ju"); function Fn({ onlyFirst: e5 = false } = {}) { let r5 = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"); return new RegExp(r5, e5 ? void 0 : "g"); } __name(Fn, "Fn"); var Bu = Fn(); function ut(e5) { if (typeof e5 != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof e5}\``); return e5.replace(Bu, ""); } __name(ut, "ut"); var jt = Pe(__require("node:path")); function _n(e5) { return jt.default.sep === jt.default.posix.sep ? e5 : e5.split(jt.default.sep).join(jt.default.posix.sep); } __name(_n, "_n"); function $n(e5, t) { return Object.prototype.hasOwnProperty.call(e5, t); } __name($n, "$n"); function vr(e5, t) { let r5 = {}; for (let n3 of Object.keys(e5)) r5[n3] = t(e5[n3], n3); return r5; } __name(vr, "vr"); function Ln(e5, t) { if (e5.length === 0) return; let r5 = e5[0]; for (let n3 = 1; n3 < e5.length; n3++) t(r5, e5[n3]) < 0 && (r5 = e5[n3]); return r5; } __name(Ln, "Ln"); function Bt(e5, t) { Object.defineProperty(e5, "name", { value: t, configurable: true }); } __name(Bt, "Bt"); var Co = /* @__PURE__ */ new Set(); var Vn = /* @__PURE__ */ __name((e5, t, ...r5) => { Co.has(e5) || (Co.add(e5), Mn(t, ...r5)); }, "Vn"); function ct(e5) { return e5 instanceof Date || Object.prototype.toString.call(e5) === "[object Date]"; } __name(ct, "ct"); function pt(e5) { return e5.toString() !== "Invalid Date"; } __name(pt, "pt"); var Io = require_dist(); function dt(e5) { return Io.Decimal.isDecimal(e5) ? true : e5 !== null && typeof e5 == "object" && typeof e5.s == "number" && typeof e5.e == "number" && typeof e5.toFixed == "function" && Array.isArray(e5.d); } __name(dt, "dt"); var Yo = require_dist(); var Qt = {}; lt(Qt, { ModelAction: /* @__PURE__ */ __name(() => mt, "ModelAction"), datamodelEnumToSchemaEnum: /* @__PURE__ */ __name(() => Qu, "datamodelEnumToSchemaEnum") }); function Qu(e5) { return { name: e5.name, values: e5.values.map((t) => t.name) }; } __name(Qu, "Qu"); var mt = ((D) => (D.findUnique = "findUnique", D.findUniqueOrThrow = "findUniqueOrThrow", D.findFirst = "findFirst", D.findFirstOrThrow = "findFirstOrThrow", D.findMany = "findMany", D.create = "create", D.createMany = "createMany", D.createManyAndReturn = "createManyAndReturn", D.update = "update", D.updateMany = "updateMany", D.updateManyAndReturn = "updateManyAndReturn", D.upsert = "upsert", D.delete = "delete", D.deleteMany = "deleteMany", D.groupBy = "groupBy", D.count = "count", D.aggregate = "aggregate", D.findRaw = "findRaw", D.aggregateRaw = "aggregateRaw", D))(mt || {}); var Mo = Pe(So()); var Do = Pe(__require("node:fs")); var ko = { keyword: _e5, entity: _e5, value: /* @__PURE__ */ __name((e5) => Ee(He(e5)), "value"), punctuation: He, directive: _e5, function: _e5, variable: /* @__PURE__ */ __name((e5) => Ee(He(e5)), "variable"), string: /* @__PURE__ */ __name((e5) => Ee(Ft(e5)), "string"), boolean: _t, number: _e5, comment: $t }; var Ju = /* @__PURE__ */ __name((e5) => e5, "Ju"); var Sr = {}; var Gu = 0; var O = { manual: Sr.Prism && Sr.Prism.manual, disableWorkerMessageHandler: Sr.Prism && Sr.Prism.disableWorkerMessageHandler, util: { encode: /* @__PURE__ */ __name(function(e5) { if (e5 instanceof Te) { let t = e5; return new Te(t.type, O.util.encode(t.content), t.alias); } else return Array.isArray(e5) ? e5.map(O.util.encode) : e5.replace(/&/g, "&").replace(/ e5.length) return; if (p3 instanceof Te) continue; if (ce && l3 != t.length - 1) { E.lastIndex = c5; var T2 = E.exec(e5); if (!T2) break; var P = T2.index + (H ? T2[1].length : 0), S = T2.index + T2[0].length, a5 = l3, u = c5; for (let g5 = t.length; a5 < g5 && (u < S || !t[a5].type && !t[a5 - 1].greedy); ++a5) u += t[a5].length, P >= u && (++l3, c5 = u); if (t[l3] instanceof Te) continue; m3 = a5 - l3, p3 = e5.slice(c5, u), T2.index -= c5; } else { E.lastIndex = 0; var T2 = E.exec(p3), m3 = 1; } if (!T2) { if (o3) break; continue; } H && (ie = T2[1] ? T2[1].length : 0); var P = T2.index + ie, T2 = T2[0].slice(ie), S = P + T2.length, I = p3.slice(0, P), A = p3.slice(S); let h5 = [l3, m3]; I && (++l3, c5 += I.length, h5.push(I)); let f5 = new Te(M, D ? O.tokenize(T2, D) : T2, be, T2, ce); if (h5.push(f5), A && h5.push(A), Array.prototype.splice.apply(t, h5), m3 != 1 && O.matchGrammar(e5, t, r5, l3, c5, true, M), o3) break; } } } }, "matchGrammar"), tokenize: /* @__PURE__ */ __name(function(e5, t) { let r5 = [e5], n3 = t.rest; if (n3) { for (let i5 in n3) t[i5] = n3[i5]; delete t.rest; } return O.matchGrammar(e5, r5, t, 0, 0, false), r5; }, "tokenize"), hooks: { all: {}, add: /* @__PURE__ */ __name(function(e5, t) { let r5 = O.hooks.all; r5[e5] = r5[e5] || [], r5[e5].push(t); }, "add"), run: /* @__PURE__ */ __name(function(e5, t) { let r5 = O.hooks.all[e5]; if (!(!r5 || !r5.length)) for (var n3 = 0, i5; i5 = r5[n3++]; ) i5(t); }, "run") }, Token: Te }; O.languages.clike = { comment: [{ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: true }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: true, greedy: true }], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: true }, "class-name": { pattern: /((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i, lookbehind: true, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/, boolean: /\b(?:true|false)\b/, function: /\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/, punctuation: /[{}[\];(),.:]/ }; O.languages.javascript = O.languages.extend("clike", { "class-name": [O.languages.clike["class-name"], { pattern: /(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/, lookbehind: true }], keyword: [{ pattern: /((?:^|})\s*)(?:catch|finally)\b/, lookbehind: true }, { pattern: /(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, lookbehind: true }], number: /\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/, function: /[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, operator: /-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/ }); O.languages.javascript["class-name"][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/; O.languages.insertBefore("javascript", "keyword", { regex: { pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/, lookbehind: true, greedy: true }, "function-variable": { pattern: /[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/, alias: "function" }, parameter: [{ pattern: /(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/, lookbehind: true, inside: O.languages.javascript }, { pattern: /[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i, inside: O.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/, lookbehind: true, inside: O.languages.javascript }, { pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/, lookbehind: true, inside: O.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }); O.languages.markup && O.languages.markup.tag.addInlined("script", "javascript"); O.languages.js = O.languages.javascript; O.languages.typescript = O.languages.extend("javascript", { keyword: /\b(?:abstract|as|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type|typeof|var|void|while|with|yield)\b/, builtin: /\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/ }); O.languages.ts = O.languages.typescript; function Te(e5, t, r5, n3, i5) { this.type = e5, this.content = t, this.alias = r5, this.length = (n3 || "").length | 0, this.greedy = !!i5; } __name(Te, "Te"); Te.stringify = function(e5, t) { return typeof e5 == "string" ? e5 : Array.isArray(e5) ? e5.map(function(r5) { return Te.stringify(r5, t); }).join("") : zu(e5.type)(e5.content); }; function zu(e5) { return ko[e5] || Ju; } __name(zu, "zu"); function Oo(e5) { return Hu(e5, O.languages.javascript); } __name(Oo, "Oo"); function Hu(e5, t) { return O.tokenize(e5, t).map((n3) => Te.stringify(n3)).join(""); } __name(Hu, "Hu"); function No(e5) { return Nn(e5); } __name(No, "No"); var Ar = class e5 { static { __name(this, "e"); } firstLineNumber; lines; static read(t) { let r5; try { r5 = Do.default.readFileSync(t, "utf-8"); } catch { return null; } return e5.fromContent(r5); } static fromContent(t) { let r5 = t.split(/\r?\n/); return new e5(1, r5); } constructor(t, r5) { this.firstLineNumber = t, this.lines = r5; } get lastLineNumber() { return this.firstLineNumber + this.lines.length - 1; } mapLineAt(t, r5) { if (t < this.firstLineNumber || t > this.lastLineNumber) return this; let n3 = t - this.firstLineNumber, i5 = [...this.lines]; return i5[n3] = r5(i5[n3]), new e5(this.firstLineNumber, i5); } mapLines(t) { return new e5(this.firstLineNumber, this.lines.map((r5, n3) => t(r5, this.firstLineNumber + n3))); } lineAt(t) { return this.lines[t - this.firstLineNumber]; } prependSymbolAt(t, r5) { return this.mapLines((n3, i5) => i5 === t ? `${r5} ${n3}` : ` ${n3}`); } slice(t, r5) { let n3 = Math.max(t, this.firstLineNumber), i5 = Math.min(r5, this.lastLineNumber); if (n3 > i5) return new e5(t, []); let o3 = this.lines.slice(n3 - this.firstLineNumber, i5 - this.firstLineNumber + 1).join(` `); return new e5(n3, No(o3).split(` `)); } highlight() { let t = Oo(this.toString()); return new e5(this.firstLineNumber, t.split(` `)); } toString() { return this.lines.join(` `); } }; var Wu = { red: ze, gray: $t, dim: Dt, bold: Ee, underline: Mt, highlightSource: /* @__PURE__ */ __name((e5) => e5.highlight(), "highlightSource") }; var Ku = { red: /* @__PURE__ */ __name((e5) => e5, "red"), gray: /* @__PURE__ */ __name((e5) => e5, "gray"), dim: /* @__PURE__ */ __name((e5) => e5, "dim"), bold: /* @__PURE__ */ __name((e5) => e5, "bold"), underline: /* @__PURE__ */ __name((e5) => e5, "underline"), highlightSource: /* @__PURE__ */ __name((e5) => e5, "highlightSource") }; function Zu({ message: e5, originalMethod: t, isPanic: r5, callArguments: n3 }) { return { functionName: `prisma.${t}()`, message: e5, isPanic: r5 ?? false, callArguments: n3 }; } __name(Zu, "Zu"); function Xu({ callsite: e5, message: t, originalMethod: r5, isPanic: n3, callArguments: i5 }, o3) { let s2 = Zu({ message: t, originalMethod: r5, isPanic: n3, callArguments: i5 }); if (!e5 || typeof window < "u" || process.env.NODE_ENV === "production") return s2; let a5 = e5.getLocation(); if (!a5 || !a5.lineNumber || !a5.columnNumber) return s2; let u = Math.max(1, a5.lineNumber - 3), m3 = Ar.read(a5.fileName)?.slice(u, a5.lineNumber), P = m3?.lineAt(a5.lineNumber); if (m3 && P) { let T2 = ec(P), S = Yu(P); if (!S) return s2; s2.functionName = `${S.code})`, s2.location = a5, n3 || (m3 = m3.mapLineAt(a5.lineNumber, (A) => A.slice(0, S.openingBraceIndex))), m3 = o3.highlightSource(m3); let I = String(m3.lastLineNumber).length; if (s2.contextLines = m3.mapLines((A, M) => o3.gray(String(M).padStart(I)) + " " + A).mapLines((A) => o3.dim(A)).prependSymbolAt(a5.lineNumber, o3.bold(o3.red("\u2192"))), i5) { let A = T2 + I + 1; A += 2, s2.callArguments = (0, Mo.default)(i5, A).slice(A); } } return s2; } __name(Xu, "Xu"); function Yu(e5) { let t = Object.keys(mt).join("|"), n3 = new RegExp(String.raw`\.(${t})\(`).exec(e5); if (n3) { let i5 = n3.index + n3[0].length, o3 = e5.lastIndexOf(" ", n3.index) + 1; return { code: e5.slice(o3, i5), openingBraceIndex: i5 }; } return null; } __name(Yu, "Yu"); function ec(e5) { let t = 0; for (let r5 = 0; r5 < e5.length; r5++) { if (e5.charAt(r5) !== " ") return t; t++; } return t; } __name(ec, "ec"); function tc({ functionName: e5, location: t, message: r5, isPanic: n3, contextLines: i5, callArguments: o3 }, s2) { let a5 = [""], u = t ? " in" : ":"; if (n3 ? (a5.push(s2.red(`Oops, an unknown error occurred! This is ${s2.bold("on us")}, you did nothing wrong.`)), a5.push(s2.red(`It occurred in the ${s2.bold(`\`${e5}\``)} invocation${u}`))) : a5.push(s2.red(`Invalid ${s2.bold(`\`${e5}\``)} invocation${u}`)), t && a5.push(s2.underline(rc(t))), i5) { a5.push(""); let m3 = [i5.toString()]; o3 && (m3.push(o3), m3.push(s2.dim(")"))), a5.push(m3.join("")), o3 && a5.push(""); } else a5.push(""), o3 && a5.push(o3), a5.push(""); return a5.push(r5), a5.join(` `); } __name(tc, "tc"); function rc(e5) { let t = [e5.fileName]; return e5.lineNumber && t.push(String(e5.lineNumber)), e5.columnNumber && t.push(String(e5.columnNumber)), t.join(":"); } __name(rc, "rc"); function Rr(e5) { let t = e5.showColors ? Wu : Ku, r5; return r5 = Xu(e5, t), tc(r5, t); } __name(Rr, "Rr"); var Bo = Pe(qn()); function Lo(e5, t, r5) { let n3 = Vo(e5), i5 = nc(n3), o3 = oc(i5); o3 ? Cr(o3, t, r5) : t.addErrorMessage(() => "Unknown error"); } __name(Lo, "Lo"); function Vo(e5) { return e5.errors.flatMap((t) => t.kind === "Union" ? Vo(t) : [t]); } __name(Vo, "Vo"); function nc(e5) { let t = /* @__PURE__ */ new Map(), r5 = []; for (let n3 of e5) { if (n3.kind !== "InvalidArgumentType") { r5.push(n3); continue; } let i5 = `${n3.selectionPath.join(".")}:${n3.argumentPath.join(".")}`, o3 = t.get(i5); o3 ? t.set(i5, { ...n3, argument: { ...n3.argument, typeNames: ic(o3.argument.typeNames, n3.argument.typeNames) } }) : t.set(i5, n3); } return r5.push(...t.values()), r5; } __name(nc, "nc"); function ic(e5, t) { return [...new Set(e5.concat(t))]; } __name(ic, "ic"); function oc(e5) { return Ln(e5, (t, r5) => { let n3 = _o(t), i5 = _o(r5); return n3 !== i5 ? n3 - i5 : $o(t) - $o(r5); }); } __name(oc, "oc"); function _o(e5) { let t = 0; return Array.isArray(e5.selectionPath) && (t += e5.selectionPath.length), Array.isArray(e5.argumentPath) && (t += e5.argumentPath.length), t; } __name(_o, "_o"); function $o(e5) { switch (e5.kind) { case "InvalidArgumentValue": case "ValueTooLarge": return 20; case "InvalidArgumentType": return 10; case "RequiredArgumentMissing": return -10; default: return 0; } } __name($o, "$o"); var pe = class { static { __name(this, "pe"); } constructor(t, r5) { this.name = t; this.value = r5; } isRequired = false; makeRequired() { return this.isRequired = true, this; } write(t) { let { colors: { green: r5 } } = t.context; t.addMarginSymbol(r5(this.isRequired ? "+" : "?")), t.write(r5(this.name)), this.isRequired || t.write(r5("?")), t.write(r5(": ")), typeof this.value == "string" ? t.write(r5(this.value)) : t.write(this.value); } }; Uo(); var ft = class { static { __name(this, "ft"); } constructor(t = 0, r5) { this.context = r5; this.currentIndent = t; } lines = []; currentLine = ""; currentIndent = 0; marginSymbol; afterNextNewLineCallback; write(t) { return typeof t == "string" ? this.currentLine += t : t.write(this), this; } writeJoined(t, r5, n3 = (i5, o3) => o3.write(i5)) { let i5 = r5.length - 1; for (let o3 = 0; o3 < r5.length; o3++) n3(r5[o3], this), o3 !== i5 && this.write(t); return this; } writeLine(t) { return this.write(t).newLine(); } newLine() { this.lines.push(this.indentedCurrentLine()), this.currentLine = "", this.marginSymbol = void 0; let t = this.afterNextNewLineCallback; return this.afterNextNewLineCallback = void 0, t?.(), this; } withIndent(t) { return this.indent(), t(this), this.unindent(), this; } afterNextNewline(t) { return this.afterNextNewLineCallback = t, this; } indent() { return this.currentIndent++, this; } unindent() { return this.currentIndent > 0 && this.currentIndent--, this; } addMarginSymbol(t) { return this.marginSymbol = t, this; } toString() { return this.lines.concat(this.indentedCurrentLine()).join(` `); } getCurrentLineLength() { return this.currentLine.length; } indentedCurrentLine() { let t = this.currentLine.padStart(this.currentLine.length + 2 * this.currentIndent); return this.marginSymbol ? this.marginSymbol + t.slice(1) : t; } }; qo(); var Ir = class { static { __name(this, "Ir"); } constructor(t) { this.value = t; } write(t) { t.write(this.value); } markAsError() { this.value.markAsError(); } }; var kr = /* @__PURE__ */ __name((e5) => e5, "kr"); var Or = { bold: kr, red: kr, green: kr, dim: kr, enabled: false }; var jo = { bold: Ee, red: ze, green: Ft, dim: Dt, enabled: true }; var gt = { write(e5) { e5.writeLine(","); } }; var ke = class { static { __name(this, "ke"); } constructor(t) { this.contents = t; } isUnderlined = false; color = /* @__PURE__ */ __name((t) => t, "color"); underline() { return this.isUnderlined = true, this; } setColor(t) { return this.color = t, this; } write(t) { let r5 = t.getCurrentLineLength(); t.write(this.color(this.contents)), this.isUnderlined && t.afterNextNewline(() => { t.write(" ".repeat(r5)).writeLine(this.color("~".repeat(this.contents.length))); }); } }; var Ue = class { static { __name(this, "Ue"); } hasError = false; markAsError() { return this.hasError = true, this; } }; var yt = class extends Ue { static { __name(this, "yt"); } items = []; addItem(t) { return this.items.push(new Ir(t)), this; } getField(t) { return this.items[t]; } getPrintWidth() { return this.items.length === 0 ? 2 : Math.max(...this.items.map((r5) => r5.value.getPrintWidth())) + 2; } write(t) { if (this.items.length === 0) { this.writeEmpty(t); return; } this.writeWithItems(t); } writeEmpty(t) { let r5 = new ke("[]"); this.hasError && r5.setColor(t.context.colors.red).underline(), t.write(r5); } writeWithItems(t) { let { colors: r5 } = t.context; t.writeLine("[").withIndent(() => t.writeJoined(gt, this.items).newLine()).write("]"), this.hasError && t.afterNextNewline(() => { t.writeLine(r5.red("~".repeat(this.getPrintWidth()))); }); } asObject() { } }; var ht = class e5 extends Ue { static { __name(this, "e"); } fields = {}; suggestions = []; addField(t) { this.fields[t.name] = t; } addSuggestion(t) { this.suggestions.push(t); } getField(t) { return this.fields[t]; } getDeepField(t) { let [r5, ...n3] = t, i5 = this.getField(r5); if (!i5) return; let o3 = i5; for (let s2 of n3) { let a5; if (o3.value instanceof e5 ? a5 = o3.value.getField(s2) : o3.value instanceof yt && (a5 = o3.value.getField(Number(s2))), !a5) return; o3 = a5; } return o3; } getDeepFieldValue(t) { return t.length === 0 ? this : this.getDeepField(t)?.value; } hasField(t) { return !!this.getField(t); } removeAllFields() { this.fields = {}; } removeField(t) { delete this.fields[t]; } getFields() { return this.fields; } isEmpty() { return Object.keys(this.fields).length === 0; } getFieldValue(t) { return this.getField(t)?.value; } getDeepSubSelectionValue(t) { let r5 = this; for (let n3 of t) { if (!(r5 instanceof e5)) return; let i5 = r5.getSubSelectionValue(n3); if (!i5) return; r5 = i5; } return r5; } getDeepSelectionParent(t) { let r5 = this.getSelectionParent(); if (!r5) return; let n3 = r5; for (let i5 of t) { let o3 = n3.value.getFieldValue(i5); if (!o3 || !(o3 instanceof e5)) return; let s2 = o3.getSelectionParent(); if (!s2) return; n3 = s2; } return n3; } getSelectionParent() { let t = this.getField("select")?.value.asObject(); if (t) return { kind: "select", value: t }; let r5 = this.getField("include")?.value.asObject(); if (r5) return { kind: "include", value: r5 }; } getSubSelectionValue(t) { return this.getSelectionParent()?.value.fields[t].value; } getPrintWidth() { let t = Object.values(this.fields); return t.length == 0 ? 2 : Math.max(...t.map((n3) => n3.getPrintWidth())) + 2; } write(t) { let r5 = Object.values(this.fields); if (r5.length === 0 && this.suggestions.length === 0) { this.writeEmpty(t); return; } this.writeWithContents(t, r5); } asObject() { return this; } writeEmpty(t) { let r5 = new ke("{}"); this.hasError && r5.setColor(t.context.colors.red).underline(), t.write(r5); } writeWithContents(t, r5) { t.writeLine("{").withIndent(() => { t.writeJoined(gt, [...r5, ...this.suggestions]).newLine(); }), t.write("}"), this.hasError && t.afterNextNewline(() => { t.writeLine(t.context.colors.red("~".repeat(this.getPrintWidth()))); }); } }; var Z = class extends Ue { static { __name(this, "Z"); } constructor(r5) { super(); this.text = r5; } getPrintWidth() { return this.text.length; } write(r5) { let n3 = new ke(this.text); this.hasError && n3.underline().setColor(r5.context.colors.red), r5.write(n3); } asObject() { } }; var Jt = class { static { __name(this, "Jt"); } fields = []; addField(t, r5) { return this.fields.push({ write(n3) { let { green: i5, dim: o3 } = n3.context.colors; n3.write(i5(o3(`${t}: ${r5}`))).addMarginSymbol(i5(o3("+"))); } }), this; } write(t) { let { colors: { green: r5 } } = t.context; t.writeLine(r5("{")).withIndent(() => { t.writeJoined(gt, this.fields).newLine(); }).write(r5("}")).addMarginSymbol(r5("+")); } }; function Cr(e5, t, r5) { switch (e5.kind) { case "MutuallyExclusiveFields": sc(e5, t); break; case "IncludeOnScalar": ac(e5, t); break; case "EmptySelection": lc(e5, t, r5); break; case "UnknownSelectionField": dc(e5, t); break; case "InvalidSelectionValue": mc(e5, t); break; case "UnknownArgument": fc(e5, t); break; case "UnknownInputField": gc(e5, t); break; case "RequiredArgumentMissing": yc(e5, t); break; case "InvalidArgumentType": hc(e5, t); break; case "InvalidArgumentValue": wc(e5, t); break; case "ValueTooLarge": xc(e5, t); break; case "SomeFieldsMissing": bc(e5, t); break; case "TooManyFieldsGiven": Pc(e5, t); break; case "Union": Lo(e5, t, r5); break; default: throw new Error("not implemented: " + e5.kind); } } __name(Cr, "Cr"); function sc(e5, t) { let r5 = t.arguments.getDeepSubSelectionValue(e5.selectionPath)?.asObject(); r5 && (r5.getField(e5.firstField)?.markAsError(), r5.getField(e5.secondField)?.markAsError()), t.addErrorMessage((n3) => `Please ${n3.bold("either")} use ${n3.green(`\`${e5.firstField}\``)} or ${n3.green(`\`${e5.secondField}\``)}, but ${n3.red("not both")} at the same time.`); } __name(sc, "sc"); function ac(e5, t) { let [r5, n3] = wt(e5.selectionPath), i5 = e5.outputType, o3 = t.arguments.getDeepSelectionParent(r5)?.value; if (o3 && (o3.getField(n3)?.markAsError(), i5)) for (let s2 of i5.fields) s2.isRelation && o3.addSuggestion(new pe(s2.name, "true")); t.addErrorMessage((s2) => { let a5 = `Invalid scalar field ${s2.red(`\`${n3}\``)} for ${s2.bold("include")} statement`; return i5 ? a5 += ` on model ${s2.bold(i5.name)}. ${Gt(s2)}` : a5 += ".", a5 += ` Note that ${s2.bold("include")} statements only accept relation fields.`, a5; }); } __name(ac, "ac"); function lc(e5, t, r5) { let n3 = t.arguments.getDeepSubSelectionValue(e5.selectionPath)?.asObject(); if (n3) { let i5 = n3.getField("omit")?.value.asObject(); if (i5) { uc(e5, t, i5); return; } if (n3.hasField("select")) { cc(e5, t); return; } } if (r5?.[qe(e5.outputType.name)]) { pc(e5, t); return; } t.addErrorMessage(() => `Unknown field at "${e5.selectionPath.join(".")} selection"`); } __name(lc, "lc"); function uc(e5, t, r5) { r5.removeAllFields(); for (let n3 of e5.outputType.fields) r5.addSuggestion(new pe(n3.name, "false")); t.addErrorMessage((n3) => `The ${n3.red("omit")} statement includes every field of the model ${n3.bold(e5.outputType.name)}. At least one field must be included in the result`); } __name(uc, "uc"); function cc(e5, t) { let r5 = e5.outputType, n3 = t.arguments.getDeepSelectionParent(e5.selectionPath)?.value, i5 = n3?.isEmpty() ?? false; n3 && (n3.removeAllFields(), Go(n3, r5)), t.addErrorMessage((o3) => i5 ? `The ${o3.red("`select`")} statement for type ${o3.bold(r5.name)} must not be empty. ${Gt(o3)}` : `The ${o3.red("`select`")} statement for type ${o3.bold(r5.name)} needs ${o3.bold("at least one truthy value")}.`); } __name(cc, "cc"); function pc(e5, t) { let r5 = new Jt(); for (let i5 of e5.outputType.fields) i5.isRelation || r5.addField(i5.name, "false"); let n3 = new pe("omit", r5).makeRequired(); if (e5.selectionPath.length === 0) t.arguments.addSuggestion(n3); else { let [i5, o3] = wt(e5.selectionPath), a5 = t.arguments.getDeepSelectionParent(i5)?.value.asObject()?.getField(o3); if (a5) { let u = a5?.value.asObject() ?? new ht(); u.addSuggestion(n3), a5.value = u; } } t.addErrorMessage((i5) => `The global ${i5.red("omit")} configuration excludes every field of the model ${i5.bold(e5.outputType.name)}. At least one field must be included in the result`); } __name(pc, "pc"); function dc(e5, t) { let r5 = zo(e5.selectionPath, t); if (r5.parentKind !== "unknown") { r5.field.markAsError(); let n3 = r5.parent; switch (r5.parentKind) { case "select": Go(n3, e5.outputType); break; case "include": Ec(n3, e5.outputType); break; case "omit": Tc(n3, e5.outputType); break; } } t.addErrorMessage((n3) => { let i5 = [`Unknown field ${n3.red(`\`${r5.fieldName}\``)}`]; return r5.parentKind !== "unknown" && i5.push(`for ${n3.bold(r5.parentKind)} statement`), i5.push(`on model ${n3.bold(`\`${e5.outputType.name}\``)}.`), i5.push(Gt(n3)), i5.join(" "); }); } __name(dc, "dc"); function mc(e5, t) { let r5 = zo(e5.selectionPath, t); r5.parentKind !== "unknown" && r5.field.value.markAsError(), t.addErrorMessage((n3) => `Invalid value for selection field \`${n3.red(r5.fieldName)}\`: ${e5.underlyingError}`); } __name(mc, "mc"); function fc(e5, t) { let r5 = e5.argumentPath[0], n3 = t.arguments.getDeepSubSelectionValue(e5.selectionPath)?.asObject(); n3 && (n3.getField(r5)?.markAsError(), vc(n3, e5.arguments)), t.addErrorMessage((i5) => Qo(i5, r5, e5.arguments.map((o3) => o3.name))); } __name(fc, "fc"); function gc(e5, t) { let [r5, n3] = wt(e5.argumentPath), i5 = t.arguments.getDeepSubSelectionValue(e5.selectionPath)?.asObject(); if (i5) { i5.getDeepField(e5.argumentPath)?.markAsError(); let o3 = i5.getDeepFieldValue(r5)?.asObject(); o3 && Ho(o3, e5.inputType); } t.addErrorMessage((o3) => Qo(o3, n3, e5.inputType.fields.map((s2) => s2.name))); } __name(gc, "gc"); function Qo(e5, t, r5) { let n3 = [`Unknown argument \`${e5.red(t)}\`.`], i5 = Ac(t, r5); return i5 && n3.push(`Did you mean \`${e5.green(i5)}\`?`), r5.length > 0 && n3.push(Gt(e5)), n3.join(" "); } __name(Qo, "Qo"); function yc(e5, t) { let r5; t.addErrorMessage((u) => r5?.value instanceof Z && r5.value.text === "null" ? `Argument \`${u.green(o3)}\` must not be ${u.red("null")}.` : `Argument \`${u.green(o3)}\` is missing.`); let n3 = t.arguments.getDeepSubSelectionValue(e5.selectionPath)?.asObject(); if (!n3) return; let [i5, o3] = wt(e5.argumentPath), s2 = new Jt(), a5 = n3.getDeepFieldValue(i5)?.asObject(); if (a5) { if (r5 = a5.getField(o3), r5 && a5.removeField(o3), e5.inputTypes.length === 1 && e5.inputTypes[0].kind === "object") { for (let u of e5.inputTypes[0].fields) s2.addField(u.name, u.typeNames.join(" | ")); a5.addSuggestion(new pe(o3, s2).makeRequired()); } else { let u = e5.inputTypes.map(Jo).join(" | "); a5.addSuggestion(new pe(o3, u).makeRequired()); } if (e5.dependentArgumentPath) { n3.getDeepField(e5.dependentArgumentPath)?.markAsError(); let [, u] = wt(e5.dependentArgumentPath); t.addErrorMessage((m3) => `Argument \`${m3.green(o3)}\` is required because argument \`${m3.green(u)}\` was provided.`); } } } __name(yc, "yc"); function Jo(e5) { return e5.kind === "list" ? `${Jo(e5.elementType)}[]` : e5.name; } __name(Jo, "Jo"); function hc(e5, t) { let r5 = e5.argument.name, n3 = t.arguments.getDeepSubSelectionValue(e5.selectionPath)?.asObject(); n3 && n3.getDeepFieldValue(e5.argumentPath)?.markAsError(), t.addErrorMessage((i5) => { let o3 = Nr("or", e5.argument.typeNames.map((s2) => i5.green(s2))); return `Argument \`${i5.bold(r5)}\`: Invalid value provided. Expected ${o3}, provided ${i5.red(e5.inferredType)}.`; }); } __name(hc, "hc"); function wc(e5, t) { let r5 = e5.argument.name, n3 = t.arguments.getDeepSubSelectionValue(e5.selectionPath)?.asObject(); n3 && n3.getDeepFieldValue(e5.argumentPath)?.markAsError(), t.addErrorMessage((i5) => { let o3 = [`Invalid value for argument \`${i5.bold(r5)}\``]; if (e5.underlyingError && o3.push(`: ${e5.underlyingError}`), o3.push("."), e5.argument.typeNames.length > 0) { let s2 = Nr("or", e5.argument.typeNames.map((a5) => i5.green(a5))); o3.push(` Expected ${s2}.`); } return o3.join(""); }); } __name(wc, "wc"); function xc(e5, t) { let r5 = e5.argument.name, n3 = t.arguments.getDeepSubSelectionValue(e5.selectionPath)?.asObject(), i5; if (n3) { let s2 = n3.getDeepField(e5.argumentPath)?.value; s2?.markAsError(), s2 instanceof Z && (i5 = s2.text); } t.addErrorMessage((o3) => { let s2 = ["Unable to fit value"]; return i5 && s2.push(o3.red(i5)), s2.push(`into a 64-bit signed integer for field \`${o3.bold(r5)}\``), s2.join(" "); }); } __name(xc, "xc"); function bc(e5, t) { let r5 = e5.argumentPath[e5.argumentPath.length - 1], n3 = t.arguments.getDeepSubSelectionValue(e5.selectionPath)?.asObject(); if (n3) { let i5 = n3.getDeepFieldValue(e5.argumentPath)?.asObject(); i5 && Ho(i5, e5.inputType); } t.addErrorMessage((i5) => { let o3 = [`Argument \`${i5.bold(r5)}\` of type ${i5.bold(e5.inputType.name)} needs`]; return e5.constraints.minFieldCount === 1 ? e5.constraints.requiredFields ? o3.push(`${i5.green("at least one of")} ${Nr("or", e5.constraints.requiredFields.map((s2) => `\`${i5.bold(s2)}\``))} arguments.`) : o3.push(`${i5.green("at least one")} argument.`) : o3.push(`${i5.green(`at least ${e5.constraints.minFieldCount}`)} arguments.`), o3.push(Gt(i5)), o3.join(" "); }); } __name(bc, "bc"); function Pc(e5, t) { let r5 = e5.argumentPath[e5.argumentPath.length - 1], n3 = t.arguments.getDeepSubSelectionValue(e5.selectionPath)?.asObject(), i5 = []; if (n3) { let o3 = n3.getDeepFieldValue(e5.argumentPath)?.asObject(); o3 && (o3.markAsError(), i5 = Object.keys(o3.getFields())); } t.addErrorMessage((o3) => { let s2 = [`Argument \`${o3.bold(r5)}\` of type ${o3.bold(e5.inputType.name)} needs`]; return e5.constraints.minFieldCount === 1 && e5.constraints.maxFieldCount == 1 ? s2.push(`${o3.green("exactly one")} argument,`) : e5.constraints.maxFieldCount == 1 ? s2.push(`${o3.green("at most one")} argument,`) : s2.push(`${o3.green(`at most ${e5.constraints.maxFieldCount}`)} arguments,`), s2.push(`but you provided ${Nr("and", i5.map((a5) => o3.red(a5)))}. Please choose`), e5.constraints.maxFieldCount === 1 ? s2.push("one.") : s2.push(`${e5.constraints.maxFieldCount}.`), s2.join(" "); }); } __name(Pc, "Pc"); function Go(e5, t) { for (let r5 of t.fields) e5.hasField(r5.name) || e5.addSuggestion(new pe(r5.name, "true")); } __name(Go, "Go"); function Ec(e5, t) { for (let r5 of t.fields) r5.isRelation && !e5.hasField(r5.name) && e5.addSuggestion(new pe(r5.name, "true")); } __name(Ec, "Ec"); function Tc(e5, t) { for (let r5 of t.fields) !e5.hasField(r5.name) && !r5.isRelation && e5.addSuggestion(new pe(r5.name, "true")); } __name(Tc, "Tc"); function vc(e5, t) { for (let r5 of t) e5.hasField(r5.name) || e5.addSuggestion(new pe(r5.name, r5.typeNames.join(" | "))); } __name(vc, "vc"); function zo(e5, t) { let [r5, n3] = wt(e5), i5 = t.arguments.getDeepSubSelectionValue(r5)?.asObject(); if (!i5) return { parentKind: "unknown", fieldName: n3 }; let o3 = i5.getFieldValue("select")?.asObject(), s2 = i5.getFieldValue("include")?.asObject(), a5 = i5.getFieldValue("omit")?.asObject(), u = o3?.getField(n3); return o3 && u ? { parentKind: "select", parent: o3, field: u, fieldName: n3 } : (u = s2?.getField(n3), s2 && u ? { parentKind: "include", field: u, parent: s2, fieldName: n3 } : (u = a5?.getField(n3), a5 && u ? { parentKind: "omit", field: u, parent: a5, fieldName: n3 } : { parentKind: "unknown", fieldName: n3 })); } __name(zo, "zo"); function Ho(e5, t) { if (t.kind === "object") for (let r5 of t.fields) e5.hasField(r5.name) || e5.addSuggestion(new pe(r5.name, r5.typeNames.join(" | "))); } __name(Ho, "Ho"); function wt(e5) { let t = [...e5], r5 = t.pop(); if (!r5) throw new Error("unexpected empty path"); return [t, r5]; } __name(wt, "wt"); function Gt({ green: e5, enabled: t }) { return "Available options are " + (t ? `listed in ${e5("green")}` : "marked with ?") + "."; } __name(Gt, "Gt"); function Nr(e5, t) { if (t.length === 1) return t[0]; let r5 = [...t], n3 = r5.pop(); return `${r5.join(", ")} ${e5} ${n3}`; } __name(Nr, "Nr"); var Sc = 3; function Ac(e5, t) { let r5 = 1 / 0, n3; for (let i5 of t) { let o3 = (0, Bo.default)(e5, i5); o3 > Sc || o3 < r5 && (r5 = o3, n3 = i5); } return n3; } __name(Ac, "Ac"); var Ko = require_dist(); var zt = class { static { __name(this, "zt"); } modelName; name; typeName; isList; isEnum; constructor(t, r5, n3, i5, o3) { this.modelName = t, this.name = r5, this.typeName = n3, this.isList = i5, this.isEnum = o3; } _toGraphQLInputType() { let t = this.isList ? "List" : "", r5 = this.isEnum ? "Enum" : ""; return `${t}${r5}${this.typeName}FieldRefInput<${this.modelName}>`; } }; function xt(e5) { return e5 instanceof zt; } __name(xt, "xt"); var Wo = ": "; var Dr = class { static { __name(this, "Dr"); } constructor(t, r5) { this.name = t; this.value = r5; } hasError = false; markAsError() { this.hasError = true; } getPrintWidth() { return this.name.length + this.value.getPrintWidth() + Wo.length; } write(t) { let r5 = new ke(this.name); this.hasError && r5.underline().setColor(t.context.colors.red), t.write(r5).write(Wo).write(this.value); } }; var jn = class { static { __name(this, "jn"); } arguments; errorMessages = []; constructor(t) { this.arguments = t; } write(t) { t.write(this.arguments); } addErrorMessage(t) { this.errorMessages.push(t); } renderAllMessages(t) { return this.errorMessages.map((r5) => r5(t)).join(` `); } }; function bt(e5) { return new jn(Zo(e5)); } __name(bt, "bt"); function Zo(e5) { let t = new ht(); for (let [r5, n3] of Object.entries(e5)) { let i5 = new Dr(r5, Xo(n3)); t.addField(i5); } return t; } __name(Zo, "Zo"); function Xo(e5) { if (typeof e5 == "string") return new Z(JSON.stringify(e5)); if (typeof e5 == "number" || typeof e5 == "boolean") return new Z(String(e5)); if (typeof e5 == "bigint") return new Z(`${e5}n`); if (e5 === null) return new Z("null"); if (e5 === void 0) return new Z("undefined"); if (dt(e5)) return new Z(`new Prisma.Decimal("${e5.toFixed()}")`); if (e5 instanceof Uint8Array) return Buffer.isBuffer(e5) ? new Z(`Buffer.alloc(${e5.byteLength})`) : new Z(`new Uint8Array(${e5.byteLength})`); if (e5 instanceof Date) { let t = pt(e5) ? e5.toISOString() : "Invalid Date"; return new Z(`new Date("${t}")`); } return (0, Ko.isObjectEnumValue)(e5) ? new Z(`Prisma.${e5._getName()}`) : xt(e5) ? new Z(`prisma.${qe(e5.modelName)}.$fields.${e5.name}`) : Array.isArray(e5) ? Rc(e5) : typeof e5 == "object" ? Zo(e5) : new Z(Object.prototype.toString.call(e5)); } __name(Xo, "Xo"); function Rc(e5) { let t = new yt(); for (let r5 of e5) t.addItem(Xo(r5)); return t; } __name(Rc, "Rc"); function Mr(e5, t) { let r5 = t === "pretty" ? jo : Or, n3 = e5.renderAllMessages(r5), i5 = new ft(0, { colors: r5 }).write(e5).toString(); return { message: n3, args: i5 }; } __name(Mr, "Mr"); function Fr({ args: e5, errors: t, errorFormat: r5, callsite: n3, originalMethod: i5, clientVersion: o3, globalOmit: s2 }) { let a5 = bt(e5); for (let T2 of t) Cr(T2, a5, s2); let { message: u, args: m3 } = Mr(a5, r5), P = Rr({ message: u, callsite: n3, originalMethod: i5, showColors: r5 === "pretty", callArguments: m3 }); throw new Yo.PrismaClientValidationError(P, { clientVersion: o3 }); } __name(Fr, "Fr"); function Oe(e5) { return e5.replace(/^./, (t) => t.toLowerCase()); } __name(Oe, "Oe"); function ts(e5, t, r5) { let n3 = Oe(r5); return !t.result || !(t.result.$allModels || t.result[n3]) ? e5 : Cc({ ...e5, ...es(t.name, e5, t.result.$allModels), ...es(t.name, e5, t.result[n3]) }); } __name(ts, "ts"); function Cc(e5) { let t = new Ie(), r5 = /* @__PURE__ */ __name((n3, i5) => t.getOrCreate(n3, () => i5.has(n3) ? [n3] : (i5.add(n3), e5[n3] ? e5[n3].needs.flatMap((o3) => r5(o3, i5)) : [n3])), "r"); return vr(e5, (n3) => ({ ...n3, needs: r5(n3.name, /* @__PURE__ */ new Set()) })); } __name(Cc, "Cc"); function es(e5, t, r5) { return r5 ? vr(r5, ({ needs: n3, compute: i5 }, o3) => ({ name: o3, needs: n3 ? Object.keys(n3).filter((s2) => n3[s2]) : [], compute: Ic(t, o3, i5) })) : {}; } __name(es, "es"); function Ic(e5, t, r5) { let n3 = e5?.[t]?.compute; return n3 ? (i5, o3) => r5({ ...i5, [t]: n3(i5, o3) }, o3) : r5; } __name(Ic, "Ic"); function rs(e5, t) { if (!t) return e5; let r5 = { ...e5 }; for (let n3 of Object.values(t)) if (e5[n3.name]) for (let i5 of n3.needs) r5[i5] = true; return r5; } __name(rs, "rs"); function ns(e5, t) { if (!t) return e5; let r5 = { ...e5 }; for (let n3 of Object.values(t)) if (!e5[n3.name]) for (let i5 of n3.needs) delete r5[i5]; return r5; } __name(ns, "ns"); var _r3 = class { static { __name(this, "_r"); } constructor(t, r5) { this.extension = t; this.previous = r5; } computedFieldsCache = new Ie(); modelExtensionsCache = new Ie(); queryCallbacksCache = new Ie(); clientExtensions = Nt(() => this.extension.client ? { ...this.previous?.getAllClientExtensions(), ...this.extension.client } : this.previous?.getAllClientExtensions()); batchCallbacks = Nt(() => { let t = this.previous?.getAllBatchQueryCallbacks() ?? [], r5 = this.extension.query?.$__internalBatch; return r5 ? t.concat(r5) : t; }); getAllComputedFields(t) { return this.computedFieldsCache.getOrCreate(t, () => ts(this.previous?.getAllComputedFields(t), this.extension, t)); } getAllClientExtensions() { return this.clientExtensions.get(); } getAllModelExtensions(t) { return this.modelExtensionsCache.getOrCreate(t, () => { let r5 = Oe(t); return !this.extension.model || !(this.extension.model[r5] || this.extension.model.$allModels) ? this.previous?.getAllModelExtensions(t) : { ...this.previous?.getAllModelExtensions(t), ...this.extension.model.$allModels, ...this.extension.model[r5] }; }); } getAllQueryCallbacks(t, r5) { return this.queryCallbacksCache.getOrCreate(`${t}:${r5}`, () => { let n3 = this.previous?.getAllQueryCallbacks(t, r5) ?? [], i5 = [], o3 = this.extension.query; return !o3 || !(o3[t] || o3.$allModels || o3[r5] || o3.$allOperations) ? n3 : (o3[t] !== void 0 && (o3[t][r5] !== void 0 && i5.push(o3[t][r5]), o3[t].$allOperations !== void 0 && i5.push(o3[t].$allOperations)), t !== "$none" && o3.$allModels !== void 0 && (o3.$allModels[r5] !== void 0 && i5.push(o3.$allModels[r5]), o3.$allModels.$allOperations !== void 0 && i5.push(o3.$allModels.$allOperations)), o3[r5] !== void 0 && i5.push(o3[r5]), o3.$allOperations !== void 0 && i5.push(o3.$allOperations), n3.concat(i5)); }); } getAllBatchQueryCallbacks() { return this.batchCallbacks.get(); } }; var Pt = class e5 { static { __name(this, "e"); } constructor(t) { this.head = t; } static empty() { return new e5(); } static single(t) { return new e5(new _r3(t)); } isEmpty() { return this.head === void 0; } append(t) { return new e5(new _r3(t, this.head)); } getAllComputedFields(t) { return this.head?.getAllComputedFields(t); } getAllClientExtensions() { return this.head?.getAllClientExtensions(); } getAllModelExtensions(t) { return this.head?.getAllModelExtensions(t); } getAllQueryCallbacks(t, r5) { return this.head?.getAllQueryCallbacks(t, r5) ?? []; } getAllBatchQueryCallbacks() { return this.head?.getAllBatchQueryCallbacks() ?? []; } }; var $r = class { static { __name(this, "$r"); } constructor(t) { this.name = t; } }; function is(e5) { return e5 instanceof $r; } __name(is, "is"); function os(e5) { return new $r(e5); } __name(os, "os"); var ss = /* @__PURE__ */ Symbol(); var Ht = class { static { __name(this, "Ht"); } constructor(t) { if (t !== ss) throw new Error("Skip instance can not be constructed directly"); } ifUndefined(t) { return t === void 0 ? Lr : t; } }; var Lr = new Ht(ss); function fe(e5) { return e5 instanceof Ht; } __name(fe, "fe"); var kc = { findUnique: "findUnique", findUniqueOrThrow: "findUniqueOrThrow", findFirst: "findFirst", findFirstOrThrow: "findFirstOrThrow", findMany: "findMany", count: "aggregate", create: "createOne", createMany: "createMany", createManyAndReturn: "createManyAndReturn", update: "updateOne", updateMany: "updateMany", updateManyAndReturn: "updateManyAndReturn", upsert: "upsertOne", delete: "deleteOne", deleteMany: "deleteMany", executeRaw: "executeRaw", queryRaw: "queryRaw", aggregate: "aggregate", groupBy: "groupBy", runCommandRaw: "runCommandRaw", findRaw: "findRaw", aggregateRaw: "aggregateRaw" }; var ls = "explicitly `undefined` values are not allowed"; function Vr({ modelName: e5, action: t, args: r5, runtimeDataModel: n3, extensions: i5 = Pt.empty(), callsite: o3, clientMethod: s2, errorFormat: a5, clientVersion: u, previewFeatures: m3, globalOmit: P, wrapRawValues: T2 }) { let S = new Bn({ runtimeDataModel: n3, modelName: e5, action: t, rootArgs: r5, callsite: o3, extensions: i5, selectionPath: [], argumentPath: [], originalMethod: s2, errorFormat: a5, clientVersion: u, previewFeatures: m3, globalOmit: P, wrapRawValues: T2 }); return { modelName: e5, action: kc[t], query: Wt(r5, S) }; } __name(Vr, "Vr"); function Wt({ select: e5, include: t, ...r5 } = {}, n3) { let i5 = r5.omit; return delete r5.omit, { arguments: cs(r5, n3), selection: Oc(e5, t, i5, n3) }; } __name(Wt, "Wt"); function Oc(e5, t, r5, n3) { return e5 ? (t ? n3.throwValidationError({ kind: "MutuallyExclusiveFields", firstField: "include", secondField: "select", selectionPath: n3.getSelectionPath() }) : r5 && n3.throwValidationError({ kind: "MutuallyExclusiveFields", firstField: "omit", secondField: "select", selectionPath: n3.getSelectionPath() }), Fc(e5, n3)) : Nc(n3, t, r5); } __name(Oc, "Oc"); function Nc(e5, t, r5) { let n3 = {}; return e5.modelOrType && !e5.isRawAction() && (n3.$composites = true, n3.$scalars = true), t && Dc(n3, t, e5), Mc(n3, r5, e5), n3; } __name(Nc, "Nc"); function Dc(e5, t, r5) { for (let [n3, i5] of Object.entries(t)) { if (fe(i5)) continue; let o3 = r5.nestSelection(n3); if (Qn(i5, o3), i5 === false || i5 === void 0) { e5[n3] = false; continue; } let s2 = r5.findField(n3); if (s2 && s2.kind !== "object" && r5.throwValidationError({ kind: "IncludeOnScalar", selectionPath: r5.getSelectionPath().concat(n3), outputType: r5.getOutputTypeDescription() }), s2) { e5[n3] = Wt(i5 === true ? {} : i5, o3); continue; } if (i5 === true) { e5[n3] = true; continue; } e5[n3] = Wt(i5, o3); } } __name(Dc, "Dc"); function Mc(e5, t, r5) { let n3 = r5.getComputedFields(), i5 = { ...r5.getGlobalOmit(), ...t }, o3 = ns(i5, n3); for (let [s2, a5] of Object.entries(o3)) { if (fe(a5)) continue; Qn(a5, r5.nestSelection(s2)); let u = r5.findField(s2); n3?.[s2] && !u || (e5[s2] = !a5); } } __name(Mc, "Mc"); function Fc(e5, t) { let r5 = {}, n3 = t.getComputedFields(), i5 = rs(e5, n3); for (let [o3, s2] of Object.entries(i5)) { if (fe(s2)) continue; let a5 = t.nestSelection(o3); Qn(s2, a5); let u = t.findField(o3); if (!(n3?.[o3] && !u)) { if (s2 === false || s2 === void 0 || fe(s2)) { r5[o3] = false; continue; } if (s2 === true) { u?.kind === "object" ? r5[o3] = Wt({}, a5) : r5[o3] = true; continue; } r5[o3] = Wt(s2, a5); } } return r5; } __name(Fc, "Fc"); function us(e5, t) { if (e5 === null) return null; if (typeof e5 == "string" || typeof e5 == "number" || typeof e5 == "boolean") return e5; if (typeof e5 == "bigint") return { $type: "BigInt", value: String(e5) }; if (ct(e5)) { if (pt(e5)) return { $type: "DateTime", value: e5.toISOString() }; t.throwValidationError({ kind: "InvalidArgumentValue", selectionPath: t.getSelectionPath(), argumentPath: t.getArgumentPath(), argument: { name: t.getArgumentName(), typeNames: ["Date"] }, underlyingError: "Provided Date object is invalid" }); } if (is(e5)) return { $type: "Param", value: e5.name }; if (xt(e5)) return { $type: "FieldRef", value: { _ref: e5.name, _container: e5.modelName } }; if (Array.isArray(e5)) return _c5(e5, t); if (ArrayBuffer.isView(e5)) { let { buffer: r5, byteOffset: n3, byteLength: i5 } = e5; return { $type: "Bytes", value: Buffer.from(r5, n3, i5).toString("base64") }; } if ($c(e5)) return e5.values; if (dt(e5)) return { $type: "Decimal", value: e5.toFixed() }; if ((0, as.isObjectEnumValue)(e5)) { let r5 = e5._getName(); if (r5 !== "DbNull" && r5 !== "JsonNull" && r5 !== "AnyNull") throw new Error(`Invalid ObjectEnumValue: expected DbNull, JsonNull, or AnyNull, got ${r5}`); return { $type: "Enum", value: r5 }; } if (Lc(e5)) return e5.toJSON(); if (typeof e5 == "object") return cs(e5, t); t.throwValidationError({ kind: "InvalidArgumentValue", selectionPath: t.getSelectionPath(), argumentPath: t.getArgumentPath(), argument: { name: t.getArgumentName(), typeNames: [] }, underlyingError: `We could not serialize ${Object.prototype.toString.call(e5)} value. Serialize the object to JSON or implement a ".toJSON()" method on it` }); } __name(us, "us"); function cs(e5, t) { if (t.shouldWrapRawValues() && e5.$type) return { $type: "Raw", value: e5 }; let r5 = {}; for (let n3 in e5) { let i5 = e5[n3], o3 = t.nestArgument(n3); fe(i5) || (i5 !== void 0 ? r5[n3] = us(i5, o3) : t.isPreviewFeatureOn("strictUndefinedChecks") && t.throwValidationError({ kind: "InvalidArgumentValue", argumentPath: o3.getArgumentPath(), selectionPath: t.getSelectionPath(), argument: { name: t.getArgumentName(), typeNames: [] }, underlyingError: ls })); } return r5; } __name(cs, "cs"); function _c5(e5, t) { let r5 = []; for (let n3 = 0; n3 < e5.length; n3++) { let i5 = t.nestArgument(String(n3)), o3 = e5[n3]; if (o3 === void 0 || fe(o3)) { let s2 = o3 === void 0 ? "undefined" : "Prisma.skip"; t.throwValidationError({ kind: "InvalidArgumentValue", selectionPath: i5.getSelectionPath(), argumentPath: i5.getArgumentPath(), argument: { name: `${t.getArgumentName()}[${n3}]`, typeNames: [] }, underlyingError: `Can not use \`${s2}\` value within array. Use \`null\` or filter out \`${s2}\` values` }); } r5.push(us(o3, i5)); } return r5; } __name(_c5, "_c"); function $c(e5) { return typeof e5 == "object" && e5 !== null && e5.__prismaRawParameters__ === true; } __name($c, "$c"); function Lc(e5) { return typeof e5 == "object" && e5 !== null && typeof e5.toJSON == "function"; } __name(Lc, "Lc"); function Qn(e5, t) { e5 === void 0 && t.isPreviewFeatureOn("strictUndefinedChecks") && t.throwValidationError({ kind: "InvalidSelectionValue", selectionPath: t.getSelectionPath(), underlyingError: ls }); } __name(Qn, "Qn"); var Bn = class e5 { static { __name(this, "e"); } constructor(t) { this.params = t; this.params.modelName && (this.modelOrType = this.params.runtimeDataModel.models[this.params.modelName] ?? this.params.runtimeDataModel.types[this.params.modelName]); } modelOrType; throwValidationError(t) { Fr({ errors: [t], originalMethod: this.params.originalMethod, args: this.params.rootArgs ?? {}, callsite: this.params.callsite, errorFormat: this.params.errorFormat, clientVersion: this.params.clientVersion, globalOmit: this.params.globalOmit }); } getSelectionPath() { return this.params.selectionPath; } getArgumentPath() { return this.params.argumentPath; } getArgumentName() { return this.params.argumentPath[this.params.argumentPath.length - 1]; } getOutputTypeDescription() { if (!(!this.params.modelName || !this.modelOrType)) return { name: this.params.modelName, fields: this.modelOrType.fields.map((t) => ({ name: t.name, typeName: "boolean", isRelation: t.kind === "object" })) }; } isRawAction() { return ["executeRaw", "queryRaw", "runCommandRaw", "findRaw", "aggregateRaw"].includes(this.params.action); } isPreviewFeatureOn(t) { return this.params.previewFeatures.includes(t); } shouldWrapRawValues() { return this.params.wrapRawValues ?? true; } getComputedFields() { if (this.params.modelName) return this.params.extensions.getAllComputedFields(this.params.modelName); } findField(t) { return this.modelOrType?.fields.find((r5) => r5.name === t); } nestSelection(t) { let r5 = this.findField(t), n3 = r5?.kind === "object" ? r5.type : void 0; return new e5({ ...this.params, modelName: n3, selectionPath: this.params.selectionPath.concat(t) }); } getGlobalOmit() { return this.params.modelName && this.shouldApplyGlobalOmit() ? this.params.globalOmit?.[qe(this.params.modelName)] ?? {} : {}; } shouldApplyGlobalOmit() { switch (this.params.action) { case "findFirst": case "findFirstOrThrow": case "findUniqueOrThrow": case "findMany": case "upsert": case "findUnique": case "createManyAndReturn": case "create": case "update": case "updateManyAndReturn": case "delete": return true; case "executeRaw": case "aggregateRaw": case "runCommandRaw": case "findRaw": case "createMany": case "deleteMany": case "groupBy": case "updateMany": case "count": case "aggregate": case "queryRaw": return false; default: $e(this.params.action, "Unknown action"); } } nestArgument(t) { return new e5({ ...this.params, argumentPath: this.params.argumentPath.concat(t) }); } }; function ps(e5, t) { let r5 = Nt(() => Vc(t)); Object.defineProperty(e5, "dmmf", { get: /* @__PURE__ */ __name(() => r5.get(), "get") }); } __name(ps, "ps"); function Vc(e5) { return { datamodel: { models: Jn(e5.models), enums: Jn(e5.enums), types: Jn(e5.types) } }; } __name(Vc, "Vc"); function Jn(e5) { return Object.entries(e5).map(([t, r5]) => ({ name: t, ...r5 })); } __name(Jn, "Jn"); var Gn = /* @__PURE__ */ new WeakMap(); var qr = "$$PrismaTypedSql"; var Kt = class { static { __name(this, "Kt"); } constructor(t, r5) { Gn.set(this, { sql: t, values: r5 }), Object.defineProperty(this, qr, { value: qr }); } get sql() { return Gn.get(this).sql; } get values() { return Gn.get(this).values; } }; function ds(e5) { return (...t) => new Kt(e5, t); } __name(ds, "ds"); function Ur(e5) { return e5 != null && e5[qr] === qr; } __name(Ur, "Ur"); var nu = require_dist(); var iu = __require("node:async_hooks"); var ou = __require("node:events"); function Zt(e5) { return { getKeys() { return Object.keys(e5); }, getPropertyValue(t) { return e5[t]; } }; } __name(Zt, "Zt"); function ae(e5, t) { return { getKeys() { return [e5]; }, getPropertyValue() { return t(); } }; } __name(ae, "ae"); function We(e5) { let t = new Ie(); return { getKeys() { return e5.getKeys(); }, getPropertyValue(r5) { return t.getOrCreate(r5, () => e5.getPropertyValue(r5)); }, getPropertyDescriptor(r5) { return e5.getPropertyDescriptor?.(r5); } }; } __name(We, "We"); var jr = { enumerable: true, configurable: true, writable: true }; function Br(e5) { let t = new Set(e5); return { getPrototypeOf: /* @__PURE__ */ __name(() => Object.prototype, "getPrototypeOf"), getOwnPropertyDescriptor: /* @__PURE__ */ __name(() => jr, "getOwnPropertyDescriptor"), has: /* @__PURE__ */ __name((r5, n3) => t.has(n3), "has"), set: /* @__PURE__ */ __name((r5, n3, i5) => t.add(n3) && Reflect.set(r5, n3, i5), "set"), ownKeys: /* @__PURE__ */ __name(() => [...t], "ownKeys") }; } __name(Br, "Br"); var ms = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom"); function ve(e5, t) { let r5 = qc(t), n3 = /* @__PURE__ */ new Set(), i5 = new Proxy(e5, { get(o3, s2) { if (n3.has(s2)) return o3[s2]; let a5 = r5.get(s2); return a5 ? a5.getPropertyValue(s2) : o3[s2]; }, has(o3, s2) { if (n3.has(s2)) return true; let a5 = r5.get(s2); return a5 ? a5.has?.(s2) ?? true : Reflect.has(o3, s2); }, ownKeys(o3) { let s2 = fs(Reflect.ownKeys(o3), r5), a5 = fs(Array.from(r5.keys()), r5); return [.../* @__PURE__ */ new Set([...s2, ...a5, ...n3])]; }, set(o3, s2, a5) { return r5.get(s2)?.getPropertyDescriptor?.(s2)?.writable === false ? false : (n3.add(s2), Reflect.set(o3, s2, a5)); }, getOwnPropertyDescriptor(o3, s2) { let a5 = Reflect.getOwnPropertyDescriptor(o3, s2); if (a5 && !a5.configurable) return a5; let u = r5.get(s2); return u ? u.getPropertyDescriptor ? { ...jr, ...u?.getPropertyDescriptor(s2) } : jr : a5; }, defineProperty(o3, s2, a5) { return n3.add(s2), Reflect.defineProperty(o3, s2, a5); }, getPrototypeOf: /* @__PURE__ */ __name(() => Object.prototype, "getPrototypeOf") }); return i5[ms] = function() { let o3 = { ...this }; return delete o3[ms], o3; }, i5; } __name(ve, "ve"); function qc(e5) { let t = /* @__PURE__ */ new Map(); for (let r5 of e5) { let n3 = r5.getKeys(); for (let i5 of n3) t.set(i5, r5); } return t; } __name(qc, "qc"); function fs(e5, t) { return e5.filter((r5) => t.get(r5)?.has?.(r5) ?? true); } __name(fs, "fs"); function Et(e5) { return { getKeys() { return e5; }, has() { return false; }, getPropertyValue() { } }; } __name(Et, "Et"); function gs(e5) { if (e5 === void 0) return ""; let t = bt(e5); return new ft(0, { colors: Or }).write(t).toString(); } __name(gs, "gs"); var Xt = ""; function ys(e5) { var t = e5.split(` `); return t.reduce(function(r5, n3) { var i5 = Bc(n3) || Jc(n3) || Hc(n3) || Xc(n3) || Kc(n3); return i5 && r5.push(i5), r5; }, []); } __name(ys, "ys"); var Uc = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|rsc||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i; var jc = /\((\S*)(?::(\d+))(?::(\d+))\)/; function Bc(e5) { var t = Uc.exec(e5); if (!t) return null; var r5 = t[2] && t[2].indexOf("native") === 0, n3 = t[2] && t[2].indexOf("eval") === 0, i5 = jc.exec(t[2]); return n3 && i5 != null && (t[2] = i5[1], t[3] = i5[2], t[4] = i5[3]), { file: r5 ? null : t[2], methodName: t[1] || Xt, arguments: r5 ? [t[2]] : [], lineNumber: t[3] ? +t[3] : null, column: t[4] ? +t[4] : null }; } __name(Bc, "Bc"); var Qc = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|rsc|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i; function Jc(e5) { var t = Qc.exec(e5); return t ? { file: t[2], methodName: t[1] || Xt, arguments: [], lineNumber: +t[3], column: t[4] ? +t[4] : null } : null; } __name(Jc, "Jc"); var Gc = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|rsc|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i; var zc = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i; function Hc(e5) { var t = Gc.exec(e5); if (!t) return null; var r5 = t[3] && t[3].indexOf(" > eval") > -1, n3 = zc.exec(t[3]); return r5 && n3 != null && (t[3] = n3[1], t[4] = n3[2], t[5] = null), { file: t[3], methodName: t[1] || Xt, arguments: t[2] ? t[2].split(",") : [], lineNumber: t[4] ? +t[4] : null, column: t[5] ? +t[5] : null }; } __name(Hc, "Hc"); var Wc = /^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i; function Kc(e5) { var t = Wc.exec(e5); return t ? { file: t[3], methodName: t[1] || Xt, arguments: [], lineNumber: +t[4], column: t[5] ? +t[5] : null } : null; } __name(Kc, "Kc"); var Zc = /^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i; function Xc(e5) { var t = Zc.exec(e5); return t ? { file: t[2], methodName: t[1] || Xt, arguments: [], lineNumber: +t[3], column: t[4] ? +t[4] : null } : null; } __name(Xc, "Xc"); var zn = class { static { __name(this, "zn"); } getLocation() { return null; } }; var Hn = class { static { __name(this, "Hn"); } _error; constructor() { this._error = new Error(); } getLocation() { let t = this._error.stack; if (!t) return null; let n3 = ys(t).find((i5) => { if (!i5.file) return false; let o3 = _n(i5.file); return o3 !== "" && !o3.includes("@prisma") && !o3.includes("/packages/client/src/runtime/") && !o3.endsWith("/runtime/client.js") && !o3.startsWith("internal/") && !i5.methodName.includes("new ") && !i5.methodName.includes("getCallSite") && !i5.methodName.includes("Proxy.") && i5.methodName.split(".").length < 4; }); return !n3 || !n3.file ? null : { fileName: n3.file, lineNumber: n3.lineNumber, columnNumber: n3.column }; } }; function je(e5) { return e5 === "minimal" ? typeof $EnabledCallSite == "function" && e5 !== "minimal" ? new $EnabledCallSite() : new zn() : new Hn(); } __name(je, "je"); var hs = { _avg: true, _count: true, _sum: true, _min: true, _max: true }; function Tt(e5 = {}) { let t = ep(e5); return Object.entries(t).reduce((n3, [i5, o3]) => (hs[i5] !== void 0 ? n3.select[i5] = { select: o3 } : n3[i5] = o3, n3), { select: {} }); } __name(Tt, "Tt"); function ep(e5 = {}) { return typeof e5._count == "boolean" ? { ...e5, _count: { _all: e5._count } } : e5; } __name(ep, "ep"); function Qr(e5 = {}) { return (t) => (typeof e5._count == "boolean" && (t._count = t._count._all), t); } __name(Qr, "Qr"); function ws(e5, t) { let r5 = Qr(e5); return t({ action: "aggregate", unpacker: r5, argsMapper: Tt })(e5); } __name(ws, "ws"); function tp(e5 = {}) { let { select: t, ...r5 } = e5; return typeof t == "object" ? Tt({ ...r5, _count: t }) : Tt({ ...r5, _count: { _all: true } }); } __name(tp, "tp"); function rp(e5 = {}) { return typeof e5.select == "object" ? (t) => Qr(e5)(t)._count : (t) => Qr(e5)(t)._count._all; } __name(rp, "rp"); function xs(e5, t) { return t({ action: "count", unpacker: rp(e5), argsMapper: tp })(e5); } __name(xs, "xs"); function np(e5 = {}) { let t = Tt(e5); if (Array.isArray(t.by)) for (let r5 of t.by) typeof r5 == "string" && (t.select[r5] = true); else typeof t.by == "string" && (t.select[t.by] = true); return t; } __name(np, "np"); function ip(e5 = {}) { return (t) => (typeof e5?._count == "boolean" && t.forEach((r5) => { r5._count = r5._count._all; }), t); } __name(ip, "ip"); function bs(e5, t) { return t({ action: "groupBy", unpacker: ip(e5), argsMapper: np })(e5); } __name(bs, "bs"); function Ps(e5, t, r5) { if (t === "aggregate") return (n3) => ws(n3, r5); if (t === "count") return (n3) => xs(n3, r5); if (t === "groupBy") return (n3) => bs(n3, r5); } __name(Ps, "Ps"); function Es(e5, t) { let r5 = t.fields.filter((i5) => !i5.relationName), n3 = oo(r5, "name"); return new Proxy({}, { get(i5, o3) { if (o3 in i5 || typeof o3 == "symbol") return i5[o3]; let s2 = n3[o3]; if (s2) return new zt(e5, o3, s2.type, s2.isList, s2.kind === "enum"); }, ...Br(Object.keys(n3)) }); } __name(Es, "Es"); var Ts = /* @__PURE__ */ __name((e5) => Array.isArray(e5) ? e5 : e5.split("."), "Ts"); var Wn = /* @__PURE__ */ __name((e5, t) => Ts(t).reduce((r5, n3) => r5 && r5[n3], e5), "Wn"); var vs = /* @__PURE__ */ __name((e5, t, r5) => Ts(t).reduceRight((n3, i5, o3, s2) => Object.assign({}, Wn(e5, s2.slice(0, o3)), { [i5]: n3 }), r5), "vs"); function op(e5, t) { return e5 === void 0 || t === void 0 ? [] : [...t, "select", e5]; } __name(op, "op"); function sp(e5, t, r5) { return t === void 0 ? e5 ?? {} : vs(t, r5, e5 || true); } __name(sp, "sp"); function Kn(e5, t, r5, n3, i5, o3) { let s2 = e5._runtimeDataModel.models[t], a5; return (u) => { let m3 = je(e5._errorFormat), P = op(n3, i5), T2 = sp(u, o3, P), S = r5({ dataPath: P, callsite: m3 })(T2), I = ap(e5, t); return new Proxy(S, { get(A, M) { if (!I.includes(M)) return A[M]; a5 ??= Object.fromEntries(s2.fields.map((D) => [D.name, D])); let q3 = [a5[M].type, r5, M], E = [P, T2]; return Kn(e5, ...q3, ...E); }, ...Br([...I, ...Object.getOwnPropertyNames(S)]) }); }; } __name(Kn, "Kn"); function ap(e5, t) { return e5._runtimeDataModel.models[t].fields.filter((r5) => r5.kind === "object").map((r5) => r5.name); } __name(ap, "ap"); var lp = ["findUnique", "findUniqueOrThrow", "findFirst", "findFirstOrThrow", "create", "update", "upsert", "delete"]; var up = ["aggregate", "count", "groupBy"]; function Zn(e5, t) { let r5 = e5._extensions.getAllModelExtensions(t) ?? {}, n3 = [cp(e5, t), dp(e5, t), Zt(r5), ae("name", () => t), ae("$name", () => t), ae("$parent", () => e5._appliedParent)]; return ve({}, n3); } __name(Zn, "Zn"); function cp(e5, t) { let r5 = Oe(t), n3 = Object.keys(mt).concat("count"); return { getKeys() { return n3; }, getPropertyValue(i5) { let o3 = i5, s2 = /* @__PURE__ */ __name((a5) => (u) => { let m3 = je(e5._errorFormat); return e5._createPrismaPromise((P) => { let T2 = { args: u, dataPath: [], action: o3, model: t, clientMethod: `${r5}.${i5}`, jsModelName: r5, transaction: P, callsite: m3 }; return e5._request({ ...T2, ...a5 }); }, { action: o3, args: u, model: t }); }, "s"); return lp.includes(o3) ? Kn(e5, t, s2) : pp(i5) ? Ps(e5, i5, s2) : s2({}); } }; } __name(cp, "cp"); function pp(e5) { return up.includes(e5); } __name(pp, "pp"); function dp(e5, t) { return We(ae("fields", () => { let r5 = e5._runtimeDataModel.models[t]; return Es(t, r5); })); } __name(dp, "dp"); function Ss(e5) { return e5.replace(/^./, (t) => t.toUpperCase()); } __name(Ss, "Ss"); var Xn = /* @__PURE__ */ Symbol(); function Yt(e5) { let t = [mp(e5), fp(e5), ae(Xn, () => e5), ae("$parent", () => e5._appliedParent)], r5 = e5._extensions.getAllClientExtensions(); return r5 && t.push(Zt(r5)), ve(e5, t); } __name(Yt, "Yt"); function mp(e5) { let t = Object.getPrototypeOf(e5._originalClient), r5 = [...new Set(Object.getOwnPropertyNames(t))]; return { getKeys() { return r5; }, getPropertyValue(n3) { return e5[n3]; } }; } __name(mp, "mp"); function fp(e5) { let t = Object.keys(e5._runtimeDataModel.models), r5 = t.map(Oe), n3 = [...new Set(t.concat(r5))]; return We({ getKeys() { return n3; }, getPropertyValue(i5) { let o3 = Ss(i5); if (e5._runtimeDataModel.models[o3] !== void 0) return Zn(e5, o3); if (e5._runtimeDataModel.models[i5] !== void 0) return Zn(e5, i5); }, getPropertyDescriptor(i5) { if (!r5.includes(i5)) return { enumerable: false }; } }); } __name(fp, "fp"); function As(e5) { return e5[Xn] ? e5[Xn] : e5; } __name(As, "As"); function Rs(e5) { if (typeof e5 == "function") return e5(this); let t = Object.create(this._originalClient, { _extensions: { value: this._extensions.append(e5) }, _appliedParent: { value: this, configurable: true }, $on: { value: void 0 } }); return Yt(t); } __name(Rs, "Rs"); function Cs({ result: e5, modelName: t, select: r5, omit: n3, extensions: i5 }) { let o3 = i5.getAllComputedFields(t); if (!o3) return e5; let s2 = [], a5 = []; for (let u of Object.values(o3)) { if (n3) { if (n3[u.name]) continue; let m3 = u.needs.filter((P) => n3[P]); m3.length > 0 && a5.push(Et(m3)); } else if (r5) { if (!r5[u.name]) continue; let m3 = u.needs.filter((P) => !r5[P]); m3.length > 0 && a5.push(Et(m3)); } gp(e5, u.needs) && s2.push(yp(u, ve(e5, s2), t)); } return s2.length > 0 || a5.length > 0 ? ve(e5, [...s2, ...a5]) : e5; } __name(Cs, "Cs"); function gp(e5, t) { return t.every((r5) => $n(e5, r5)); } __name(gp, "gp"); function yp(e5, t, r5) { return We(ae(e5.name, () => e5.compute(t, r5))); } __name(yp, "yp"); function Jr({ visitor: e5, result: t, args: r5, runtimeDataModel: n3, modelName: i5 }) { if (Array.isArray(t)) { for (let s2 = 0; s2 < t.length; s2++) t[s2] = Jr({ result: t[s2], args: r5, modelName: i5, runtimeDataModel: n3, visitor: e5 }); return t; } let o3 = e5(t, i5, r5) ?? t; return r5.include && Is({ includeOrSelect: r5.include, result: o3, parentModelName: i5, runtimeDataModel: n3, visitor: e5 }), r5.select && Is({ includeOrSelect: r5.select, result: o3, parentModelName: i5, runtimeDataModel: n3, visitor: e5 }), o3; } __name(Jr, "Jr"); function Is({ includeOrSelect: e5, result: t, parentModelName: r5, runtimeDataModel: n3, visitor: i5 }) { for (let [o3, s2] of Object.entries(e5)) { if (!s2 || t[o3] == null || fe(s2)) continue; let u = n3.models[r5].fields.find((P) => P.name === o3); if (!u || u.kind !== "object" || !u.relationName) continue; let m3 = typeof s2 == "object" ? s2 : {}; t[o3] = Jr({ visitor: i5, result: t[o3], args: m3, modelName: u.type, runtimeDataModel: n3 }); } } __name(Is, "Is"); function ks({ result: e5, modelName: t, args: r5, extensions: n3, runtimeDataModel: i5, globalOmit: o3 }) { return n3.isEmpty() || e5 == null || typeof e5 != "object" || !i5.models[t] ? e5 : Jr({ result: e5, args: r5 ?? {}, modelName: t, runtimeDataModel: i5, visitor: /* @__PURE__ */ __name((a5, u, m3) => { let P = Oe(u); return Cs({ result: a5, modelName: P, select: m3.select, omit: m3.select ? void 0 : { ...o3?.[P], ...m3.omit }, extensions: n3 }); }, "visitor") }); } __name(ks, "ks"); var Ke = require_dist(); var hp = ["$connect", "$disconnect", "$on", "$use", "$extends"]; var Os = hp; function Ns(e5) { if (e5 instanceof Ke.Sql) return wp(e5); if (Ur(e5)) return xp(e5); if (Array.isArray(e5)) { let r5 = [e5[0]]; for (let n3 = 1; n3 < e5.length; n3++) r5[n3] = er(e5[n3]); return r5; } let t = {}; for (let r5 in e5) t[r5] = er(e5[r5]); return t; } __name(Ns, "Ns"); function wp(e5) { return new Ke.Sql(e5.strings, e5.values); } __name(wp, "wp"); function xp(e5) { return new Kt(e5.sql, e5.values); } __name(xp, "xp"); function er(e5) { if (typeof e5 != "object" || e5 == null || (0, Ke.isObjectEnumValue)(e5) || xt(e5) || fe(e5)) return e5; if (dt(e5)) return new Ke.Decimal(e5.toFixed()); if (ct(e5)) return /* @__PURE__ */ new Date(+e5); if (ArrayBuffer.isView(e5)) return e5.slice(0); if (Array.isArray(e5)) { let t = e5.length, r5; for (r5 = Array(t); t--; ) r5[t] = er(e5[t]); return r5; } if (typeof e5 == "object") { let t = {}; for (let r5 in e5) r5 === "__proto__" ? Object.defineProperty(t, r5, { value: er(e5[r5]), configurable: true, enumerable: true, writable: true }) : t[r5] = er(e5[r5]); return t; } $e(e5, "Unknown value"); } __name(er, "er"); function Ms(e5, t, r5, n3 = 0) { return e5._createPrismaPromise((i5) => { let o3 = t.customDataProxyFetch; return "transaction" in t && i5 !== void 0 && (t.transaction?.kind === "batch" && t.transaction.lock.then(), t.transaction = i5), n3 === r5.length ? e5._executeRequest(t) : r5[n3]({ model: t.model, operation: t.model ? t.action : t.clientMethod, args: Ns(t.args ?? {}), __internalParams: t, query: /* @__PURE__ */ __name((s2, a5 = t) => { let u = a5.customDataProxyFetch; return a5.customDataProxyFetch = Ls(o3, u), a5.args = s2, Ms(e5, a5, r5, n3 + 1); }, "query") }); }); } __name(Ms, "Ms"); function Fs(e5, t) { let { jsModelName: r5, action: n3, clientMethod: i5 } = t, o3 = r5 ? n3 : i5; if (e5._extensions.isEmpty()) return e5._executeRequest(t); let s2 = e5._extensions.getAllQueryCallbacks(r5 ?? "$none", o3); return Ms(e5, t, s2); } __name(Fs, "Fs"); function _s5(e5) { return (t) => { let r5 = { requests: t }, n3 = t[0].extensions.getAllBatchQueryCallbacks(); return n3.length ? $s(r5, n3, 0, e5) : e5(r5); }; } __name(_s5, "_s"); function $s(e5, t, r5, n3) { if (r5 === t.length) return n3(e5); let i5 = e5.customDataProxyFetch, o3 = e5.requests[0].transaction; return t[r5]({ args: { queries: e5.requests.map((s2) => ({ model: s2.modelName, operation: s2.action, args: s2.args })), transaction: o3 ? { isolationLevel: o3.kind === "batch" ? o3.isolationLevel : void 0 } : void 0 }, __internalParams: e5, query(s2, a5 = e5) { let u = a5.customDataProxyFetch; return a5.customDataProxyFetch = Ls(i5, u), $s(a5, t, r5 + 1, n3); } }); } __name($s, "$s"); var Ds = /* @__PURE__ */ __name((e5) => e5, "Ds"); function Ls(e5 = Ds, t = Ds) { return (r5) => e5(t(r5)); } __name(Ls, "Ls"); function qs({ dataPath: e5, modelName: t, args: r5, runtimeDataModel: n3 }) { let i5 = { modelName: t, args: r5 ?? {} }, o3 = bp(e5); if (!o3 || o3.length === 0) return i5; let s2 = t, a5 = r5 ?? {}; for (let u of o3) { let m3 = n3.models[s2]; if (!m3) return i5; let P = m3.fields.find((T2) => T2.name === u); if (!P) throw new Error(`Could not resolve relation field "${u}" on model "${s2}" from dataPath "${e5.join(".")}"`); if (P.kind !== "object" || !P.relationName) return i5; s2 = P.type, a5 = Pp(a5, u); } return { modelName: s2, args: a5 }; } __name(qs, "qs"); function bp(e5) { let t = []; for (let r5 = 0; r5 < e5.length; r5 += 2) { let n3 = e5[r5], i5 = e5[r5 + 1]; if (n3 !== "select" && n3 !== "include" || i5 === void 0) return; t.push(i5); } return t; } __name(bp, "bp"); function Pp(e5, t) { let r5 = e5.select?.[t]; if (Vs(r5)) return r5; let n3 = e5.include?.[t]; return Vs(n3) ? n3 : {}; } __name(Pp, "Pp"); function Vs(e5) { return !!e5 && typeof e5 == "object" && !Array.isArray(e5); } __name(Vs, "Vs"); var Gs = require_dist(); var tr = require_dist(); function vt(e5) { return ArrayBuffer.isView(e5) && Object.prototype.toString.call(e5) === "[object Uint8Array]"; } __name(vt, "vt"); function rr(e5) { return Object.prototype.toString.call(e5) === "[object Date]"; } __name(rr, "rr"); function V(e5, t) { throw new Error(t); } __name(V, "V"); function ei(e5, t) { return e5 === t || e5 !== null && t !== null && typeof e5 == "object" && typeof t == "object" && Object.keys(e5).length === Object.keys(t).length && Object.keys(e5).every((r5) => ei(e5[r5], t[r5])); } __name(ei, "ei"); function St(e5, t) { let r5 = Object.keys(e5), n3 = Object.keys(t); return (r5.length < n3.length ? r5 : n3).every((o3) => { if (typeof e5[o3] == typeof t[o3] && typeof e5[o3] != "object") return e5[o3] === t[o3]; if (tr.Decimal.isDecimal(e5[o3]) || tr.Decimal.isDecimal(t[o3])) { let s2 = Us(e5[o3]), a5 = Us(t[o3]); return s2 && a5 && s2.equals(a5); } else if (vt(e5[o3]) || vt(t[o3])) { let s2 = js(e5[o3]), a5 = js(t[o3]); return s2 && a5 && s2.equals(a5); } else { if (rr(e5[o3]) || rr(t[o3])) return Bs(e5[o3])?.getTime() === Bs(t[o3])?.getTime(); if (typeof e5[o3] == "bigint" || typeof t[o3] == "bigint") return Qs(e5[o3]) === Qs(t[o3]); if (typeof e5[o3] == "number" || typeof t[o3] == "number") return Js(e5[o3]) === Js(t[o3]); } return ei(e5[o3], t[o3]); }); } __name(St, "St"); function Us(e5) { return tr.Decimal.isDecimal(e5) ? e5 : typeof e5 == "number" || typeof e5 == "string" ? new tr.Decimal(e5) : void 0; } __name(Us, "Us"); function js(e5) { return Buffer.isBuffer(e5) ? e5 : vt(e5) ? Buffer.from(e5.buffer, e5.byteOffset, e5.byteLength) : typeof e5 == "string" ? Buffer.from(e5, "base64") : void 0; } __name(js, "js"); function Bs(e5) { return rr(e5) ? e5 : typeof e5 == "string" || typeof e5 == "number" ? new Date(e5) : void 0; } __name(Bs, "Bs"); function Qs(e5) { return typeof e5 == "bigint" ? e5 : typeof e5 == "number" || typeof e5 == "string" ? BigInt(e5) : void 0; } __name(Qs, "Qs"); function Js(e5) { return typeof e5 == "number" ? e5 : typeof e5 == "string" ? Number(e5) : void 0; } __name(Js, "Js"); function Se(e5) { return JSON.stringify(e5, (t, r5) => typeof r5 == "bigint" ? r5.toString() : ArrayBuffer.isView(r5) ? Buffer.from(r5.buffer, r5.byteOffset, r5.byteLength).toString("base64") : r5); } __name(Se, "Se"); var Yn = 8192; function Gr(e5, t) { if (t.length <= Yn) { e5.push(...t); return; } for (let r5 = 0; r5 < t.length; r5 += Yn) e5.push(...t.slice(r5, r5 + Yn)); } __name(Gr, "Gr"); function Ep(e5) { return e5 !== null && typeof e5 == "object" && typeof e5.$type == "string"; } __name(Ep, "Ep"); function Tp(e5, t) { let r5 = {}; for (let n3 of Object.keys(e5)) r5[n3] = t(e5[n3], n3); return r5; } __name(Tp, "Tp"); function Ae(e5) { return e5 === null ? e5 : Array.isArray(e5) ? e5.map(Ae) : typeof e5 == "object" ? Ep(e5) ? vp(e5) : e5.constructor !== null && e5.constructor.name !== "Object" ? e5 : Tp(e5, Ae) : e5; } __name(Ae, "Ae"); function vp({ $type: e5, value: t }) { switch (e5) { case "BigInt": return BigInt(t); case "Bytes": return new Uint8Array(Buffer.from(t, "base64")); case "DateTime": return new Date(t); case "Decimal": return new Gs.Decimal(t); case "Json": return JSON.parse(t); case "Raw": return t; case "FieldRef": throw new Error("FieldRef tagged values cannot be deserialized to JavaScript values"); case "Enum": return t; default: V(t, "Unknown tagged value"); } } __name(vp, "vp"); function zr(e5) { return e5.name === "DriverAdapterError" && typeof e5.cause == "object"; } __name(zr, "zr"); var k5 = { Int32: 0, Int64: 1, Float: 2, Double: 3, Numeric: 4, Boolean: 5, Character: 6, Text: 7, Date: 8, Time: 9, DateTime: 10, Json: 11, Enum: 12, Bytes: 13, Set: 14, Uuid: 15, Int32Array: 64, Int64Array: 65, FloatArray: 66, DoubleArray: 67, NumericArray: 68, BooleanArray: 69, CharacterArray: 70, TextArray: 71, DateArray: 72, TimeArray: 73, DateTimeArray: 74, JsonArray: 75, EnumArray: 76, BytesArray: 77, UuidArray: 78, UnknownNumber: 128 }; var X = class extends Error { static { __name(this, "X"); } name = "UserFacingError"; code; meta; constructor(t, r5, n3) { super(t), this.code = r5, this.meta = n3 ?? {}; } toQueryResponseErrorObject() { return { error: this.message, user_facing_error: { is_panic: false, message: this.message, meta: this.meta, error_code: this.code } }; } }; function Be(e5) { if (!zr(e5)) throw e5; let t = Cp(e5), r5 = Hs(e5); if (t !== void 0 && r5 !== void 0) { let n3 = { driverAdapterError: e5 }; throw e5.cause.kind === "UniqueConstraintViolation" && e5.cause.table && (n3.table = e5.cause.table), new X(r5, t, n3); } throw Rp(e5.cause.kind) ? Ap(e5) : e5; } __name(Be, "Be"); function ri(e5) { throw zr(e5) ? Sp(e5) : e5; } __name(ri, "ri"); function Sp(e5) { let t = e5.cause.originalCode ?? "N/A", r5 = zs(e5); return new X(`Raw query failed. Code: \`${t}\`. Message: \`${r5}\``, "P2010", { driverAdapterError: e5 }); } __name(Sp, "Sp"); function Ap(e5) { let t = e5.cause.originalCode ?? "N/A", r5 = zs(e5); return new X(`Database error. Code: \`${t}\`. Message: \`${r5}\``, "P2039", { driverAdapterError: e5 }); } __name(Ap, "Ap"); function zs(e5) { return e5.cause.originalMessage ?? Hs(e5) ?? e5.message ?? "N/A"; } __name(zs, "zs"); function Rp(e5) { switch (e5) { case "postgres": case "mysql": case "sqlite": case "mssql": return true; default: return false; } } __name(Rp, "Rp"); function Cp(e5) { switch (e5.cause.kind) { case "AuthenticationFailed": return "P1000"; case "DatabaseNotReachable": return "P1001"; case "DatabaseDoesNotExist": return "P1003"; case "SocketTimeout": return "P1008"; case "DatabaseAlreadyExists": return "P1009"; case "DatabaseAccessDenied": return "P1010"; case "TlsConnectionError": return "P1011"; case "ConnectionClosed": return "P1017"; case "TransactionAlreadyClosed": return "P1018"; case "LengthMismatch": return "P2000"; case "UniqueConstraintViolation": return "P2002"; case "ForeignKeyConstraintViolation": case "RestrictViolation": return "P2003"; case "InvalidInputValue": return "P2007"; case "UnsupportedNativeDataType": return "P2010"; case "NullConstraintViolation": return "P2011"; case "ValueOutOfRange": return "P2020"; case "TableDoesNotExist": return "P2021"; case "ColumnNotFound": return "P2022"; case "InvalidIsolationLevel": case "InconsistentColumnData": return "P2023"; case "MissingFullTextSearchIndex": return "P2030"; case "TransactionWriteConflict": return "P2034"; case "GenericJs": return "P2036"; case "TooManyConnections": return "P2037"; case "postgres": case "sqlite": case "mysql": case "mssql": return; default: V(e5.cause, `Unknown error: ${Se(e5.cause)}`); } } __name(Cp, "Cp"); function Hs(e5) { switch (e5.cause.kind) { case "AuthenticationFailed": return `Authentication failed against the database server, the provided database credentials for \`${e5.cause.user ?? "(not available)"}\` are not valid`; case "DatabaseNotReachable": { let t = e5.cause.host && e5.cause.port ? `${e5.cause.host}:${e5.cause.port}` : e5.cause.host; return `Can't reach database server${t ? ` at ${t}` : ""}`; } case "DatabaseDoesNotExist": return `Database \`${e5.cause.db ?? "(not available)"}\` does not exist on the database server`; case "SocketTimeout": return "Operation has timed out"; case "DatabaseAlreadyExists": return `Database \`${e5.cause.db ?? "(not available)"}\` already exists on the database server`; case "DatabaseAccessDenied": return `User was denied access on the database \`${e5.cause.db ?? "(not available)"}\``; case "TlsConnectionError": return `Error opening a TLS connection: ${e5.cause.reason}`; case "ConnectionClosed": return "Server has closed the connection."; case "TransactionAlreadyClosed": return e5.cause.cause; case "LengthMismatch": return `The provided value for the column is too long for the column's type. Column: ${e5.cause.column ?? "(not available)"}`; case "UniqueConstraintViolation": return `Unique constraint failed on the ${ti(e5.cause.constraint)}`; case "ForeignKeyConstraintViolation": case "RestrictViolation": return `Foreign key constraint violated on the ${ti(e5.cause.constraint)}`; case "UnsupportedNativeDataType": return `Failed to deserialize column of type '${e5.cause.type}'. If you're using $queryRaw and this column is explicitly marked as \`Unsupported\` in your Prisma schema, try casting this column to any supported Prisma type such as \`String\`.`; case "NullConstraintViolation": return `Null constraint violation on the ${ti(e5.cause.constraint)}`; case "ValueOutOfRange": return `Value out of range for the type: ${e5.cause.cause}`; case "TableDoesNotExist": return `The table \`${e5.cause.table ?? "(not available)"}\` does not exist in the current database.`; case "ColumnNotFound": return `The column \`${e5.cause.column ?? "(not available)"}\` does not exist in the current database.`; case "InvalidIsolationLevel": return `Error in connector: Conversion error: ${e5.cause.level}`; case "InconsistentColumnData": return `Inconsistent column data: ${e5.cause.cause}`; case "MissingFullTextSearchIndex": return "Cannot find a fulltext index to use for the native search, try adding a @@fulltext([Fields...]) to your schema"; case "TransactionWriteConflict": return "Transaction failed due to a write conflict or a deadlock. Please retry your transaction"; case "GenericJs": return `Error in external connector (id ${e5.cause.id})`; case "TooManyConnections": return `Too many database connections opened: ${e5.cause.cause}`; case "InvalidInputValue": return `Invalid input value: ${e5.cause.message}`; case "sqlite": case "postgres": case "mysql": case "mssql": return; default: V(e5.cause, `Unknown error: ${Se(e5.cause)}`); } } __name(Hs, "Hs"); function ti(e5) { return e5 && "fields" in e5 ? `fields: (${e5.fields.map((t) => `\`${t}\``).join(", ")})` : e5 && "index" in e5 ? `constraint: \`${e5.index}\`` : e5 && "foreignKey" in e5 ? "foreign key" : "(not available)"; } __name(ti, "ti"); function Ip(e5) { if (typeof e5 != "object" || e5 === null) return false; let t = e5; return "$type" in t && t.$type === "Param" || "prisma__type" in t && t.prisma__type === "param"; } __name(Ip, "Ip"); function kp(e5) { return "prisma__type" in e5 ? e5.prisma__value?.name : e5.value.name; } __name(kp, "kp"); function Op(e5, t) { let r5 = {}; for (let [n3, i5] of Object.entries(e5)) if (r5[n3] = i5, Ip(i5)) { let o3 = kp(i5); o3 && o3 in t && (r5[n3] = t[o3]); } return r5; } __name(Op, "Op"); function Ws(e5, t, r5 = {}) { let n3 = e5.map((o3) => t.keys.reduce((s2, a5) => (s2[a5] = Ae(o3[a5]), s2), {})), i5 = new Set(t.nestedSelection); return t.arguments.map((o3) => { let s2 = Op(o3, r5), a5 = n3.findIndex((u) => St(u, s2)); if (a5 === -1) return t.expectNonEmpty ? new X("An operation failed because it depends on one or more records that were required but not found", "P2025") : null; { let u = Object.entries(e5[a5]).filter(([m3]) => i5.has(m3)); return Object.fromEntries(u); } }); } __name(Ws, "Ws"); var Xs = require_dist(); var Q = class extends X { static { __name(this, "Q"); } name = "DataMapperError"; constructor(t, r5) { super(t, "P2023", r5); } }; var Ks = /* @__PURE__ */ new WeakMap(); function Np(e5) { let t = Ks.get(e5); return t || (t = Object.entries(e5), Ks.set(e5, t)), t; } __name(Np, "Np"); function ii(e5, t, r5) { switch (t.type) { case "affectedRows": if (typeof e5 != "number") throw new Q(`Expected an affected rows count, got: ${typeof e5} (${e5})`); return { count: e5 }; case "object": return oi(e5, t.fields, r5, t.skipNulls); case "field": return ni(e5, "", t.fieldType, r5); default: V(t, `Invalid data mapping type: '${t.type}'`); } } __name(ii, "ii"); function oi(e5, t, r5, n3) { if (e5 === null) return null; if (Array.isArray(e5)) { let i5 = e5; return n3 && (i5 = i5.filter((o3) => o3 !== null)), i5.map((o3) => Zs(o3, t, r5)); } if (typeof e5 == "object") return Zs(e5, t, r5); if (typeof e5 == "string") { let i5; try { i5 = JSON.parse(e5); } catch (o3) { throw new Q("Expected an array or object, got a string that is not valid JSON", { cause: o3 }); } return oi(i5, t, r5, n3); } throw new Q(`Expected an array or an object, got: ${typeof e5}`); } __name(oi, "oi"); function Zs(e5, t, r5) { if (typeof e5 != "object") throw new Q(`Expected an object, but got '${typeof e5}'`); let n3 = {}; for (let [i5, o3] of Np(t)) switch (o3.type) { case "affectedRows": throw new Q(`Unexpected 'AffectedRows' node in data mapping for field '${i5}'`); case "object": { let { serializedName: s2, fields: a5, skipNulls: u } = o3; if (s2 !== null && !Object.hasOwn(e5, s2)) throw new Q(`Missing data field (Object): '${i5}'; node: ${JSON.stringify(o3)}; data: ${JSON.stringify(e5)}`); let m3 = s2 !== null ? e5[s2] : e5; n3[i5] = oi(m3, a5, r5, u); break; } case "field": { let s2 = o3.dbName; if (Object.hasOwn(e5, s2)) n3[i5] = Dp(e5[s2], s2, o3.fieldType, r5); else throw new Q(`Missing data field (Value): '${s2}'; node: ${JSON.stringify(o3)}; data: ${JSON.stringify(e5)}`); } break; default: V(o3, `DataMapper: Invalid data mapping node type: '${o3.type}'`); } return n3; } __name(Zs, "Zs"); function Dp(e5, t, r5, n3) { return e5 === null ? r5.arity === "list" ? [] : null : r5.arity === "list" ? e5.map((o3, s2) => ni(o3, `${t}[${s2}]`, r5, n3)) : ni(e5, t, r5, n3); } __name(Dp, "Dp"); function ni(e5, t, r5, n3) { switch (r5.type) { case "unsupported": return e5; case "string": { if (typeof e5 != "string") throw new Q(`Expected a string in column '${t}', got ${typeof e5}: ${e5}`); return e5; } case "int": switch (typeof e5) { case "number": return Math.trunc(e5); case "string": { let i5 = Math.trunc(Number(e5)); if (Number.isNaN(i5) || !Number.isFinite(i5)) throw new Q(`Expected an integer in column '${t}', got string: ${e5}`); if (!Number.isSafeInteger(i5)) throw new Q(`Integer value in column '${t}' is too large to represent as a JavaScript number without loss of precision, got: ${e5}. Consider using BigInt type.`); return i5; } default: throw new Q(`Expected an integer in column '${t}', got ${typeof e5}: ${e5}`); } case "bigint": { if (typeof e5 != "number" && typeof e5 != "string") throw new Q(`Expected a bigint in column '${t}', got ${typeof e5}: ${e5}`); return { $type: "BigInt", value: e5 }; } case "float": { if (typeof e5 == "number") return e5; if (typeof e5 == "string") { let i5 = Number(e5); if (Number.isNaN(i5) && !/^[-+]?nan$/.test(e5.toLowerCase())) throw new Q(`Expected a float in column '${t}', got string: ${e5}`); return i5; } throw new Q(`Expected a float in column '${t}', got ${typeof e5}: ${e5}`); } case "boolean": { if (typeof e5 == "boolean") return e5; if (typeof e5 == "number") return e5 === 1; if (typeof e5 == "string") { if (e5 === "true" || e5 === "TRUE" || e5 === "1") return true; if (e5 === "false" || e5 === "FALSE" || e5 === "0") return false; throw new Q(`Expected a boolean in column '${t}', got ${typeof e5}: ${e5}`); } if (Array.isArray(e5) || vt(e5)) { for (let i5 of e5) if (i5 !== 0) return true; return false; } throw new Q(`Expected a boolean in column '${t}', got ${typeof e5}: ${e5}`); } case "decimal": if (typeof e5 != "number" && typeof e5 != "string" && !Xs.Decimal.isDecimal(e5)) throw new Q(`Expected a decimal in column '${t}', got ${typeof e5}: ${e5}`); return { $type: "Decimal", value: e5 }; case "datetime": { if (typeof e5 == "string") return { $type: "DateTime", value: Fp(e5) }; if (typeof e5 == "number" || rr(e5)) return { $type: "DateTime", value: e5 }; throw new Q(`Expected a date in column '${t}', got ${typeof e5}: ${e5}`); } case "object": return { $type: "Json", value: Se(e5) }; case "json": return { $type: "Json", value: `${e5}` }; case "bytes": { switch (r5.encoding) { case "base64": if (typeof e5 != "string") throw new Q(`Expected a base64-encoded byte array in column '${t}', got ${typeof e5}: ${e5}`); return { $type: "Bytes", value: e5 }; case "hex": if (typeof e5 != "string" || !e5.startsWith("\\x")) throw new Q(`Expected a hex-encoded byte array in column '${t}', got ${typeof e5}: ${e5}`); return { $type: "Bytes", value: Buffer.from(e5.slice(2), "hex").toString("base64") }; case "array": if (Array.isArray(e5)) return { $type: "Bytes", value: Buffer.from(e5).toString("base64") }; if (vt(e5)) return { $type: "Bytes", value: Buffer.from(e5).toString("base64") }; throw new Q(`Expected a byte array in column '${t}', got ${typeof e5}: ${e5}`); default: V(r5.encoding, `DataMapper: Unknown bytes encoding: ${r5.encoding}`); } break; } case "enum": { let i5 = n3[r5.name]; if (i5 === void 0) throw new Q(`Unknown enum '${r5.name}'`); let o3 = i5[`${e5}`]; if (o3 === void 0) throw new Q(`Value '${e5}' not found in enum '${r5.name}'`); return o3; } default: V(r5, `DataMapper: Unknown result type: ${r5.type}`); } } __name(ni, "ni"); var Mp = /\d{2}:\d{2}:\d{2}(?:\.\d+)?(Z|[+-]\d{2}(:?\d{2})?)?$/; function Fp(e5) { let t = Mp.exec(e5); if (t === null) return `${e5}T00:00:00Z`; let r5 = e5, [n3, i5, o3] = t; if (i5 !== void 0 && i5 !== "Z" && o3 === void 0 ? r5 = `${e5}:00` : i5 === void 0 && (r5 = `${e5}Z`), n3.length === e5.length) return `1970-01-01T${r5}`; let s2 = t.index - 1; return r5[s2] === " " && (r5 = `${r5.slice(0, s2)}T${r5.slice(s2 + 1)}`), r5; } __name(Fp, "Fp"); function ge(e5) { if (typeof e5 != "object") return e5; var t, r5, n3 = Object.prototype.toString.call(e5); if (n3 === "[object Object]") { if (e5.constructor !== Object && typeof e5.constructor == "function") { r5 = new e5.constructor(); for (t in e5) e5.hasOwnProperty(t) && r5[t] !== e5[t] && (r5[t] = ge(e5[t])); } else { r5 = {}; for (t in e5) t === "__proto__" ? Object.defineProperty(r5, t, { value: ge(e5[t]), configurable: true, enumerable: true, writable: true }) : r5[t] = ge(e5[t]); } return r5; } if (n3 === "[object Array]") { for (t = e5.length, r5 = Array(t); t--; ) r5[t] = ge(e5[t]); return r5; } return n3 === "[object Set]" ? (r5 = /* @__PURE__ */ new Set(), e5.forEach(function(i5) { r5.add(ge(i5)); }), r5) : n3 === "[object Map]" ? (r5 = /* @__PURE__ */ new Map(), e5.forEach(function(i5, o3) { r5.set(ge(o3), ge(i5)); }), r5) : n3 === "[object Date]" ? /* @__PURE__ */ new Date(+e5) : n3 === "[object RegExp]" ? (r5 = new RegExp(e5.source, e5.flags), r5.lastIndex = e5.lastIndex, r5) : n3 === "[object DataView]" ? new e5.constructor(ge(e5.buffer)) : n3 === "[object ArrayBuffer]" ? e5.slice(0) : n3.slice(-6) === "Array]" ? new e5.constructor(e5) : e5; } __name(ge, "ge"); function _p(e5) { let t = Object.entries(e5); return t.length === 0 ? "" : (t.sort(([n3], [i5]) => n3.localeCompare(i5)), `/*${t.map(([n3, i5]) => { let o3 = encodeURIComponent(n3), s2 = encodeURIComponent(i5).replace(/'/g, "\\'"); return `${o3}='${s2}'`; }).join(",")}*/`); } __name(_p, "_p"); function Hr(e5, t) { let r5 = {}; for (let n3 of e5) { let i5 = n3(ge(t)); for (let [o3, s2] of Object.entries(i5)) s2 !== void 0 && (r5[o3] = s2); } return r5; } __name(Hr, "Hr"); function Ys(e5, t) { let r5 = Hr(e5, t); return _p(r5); } __name(Ys, "Ys"); function ea(e5, t) { return t ? `${e5} ${t}` : e5; } __name(ea, "ea"); var nr; (function(e5) { e5[e5.INTERNAL = 0] = "INTERNAL", e5[e5.SERVER = 1] = "SERVER", e5[e5.CLIENT = 2] = "CLIENT", e5[e5.PRODUCER = 3] = "PRODUCER", e5[e5.CONSUMER = 4] = "CONSUMER"; })(nr || (nr = {})); function $p(e5) { switch (e5) { case "postgresql": case "postgres": case "prisma+postgres": return "postgresql"; case "sqlserver": return "mssql"; case "mysql": case "sqlite": case "cockroachdb": case "mongodb": return e5; default: V(e5, `Unknown provider: ${e5}`); } } __name($p, "$p"); async function Wr({ query: e5, tracingHelper: t, provider: r5, onQuery: n3, execute: i5 }) { let o3 = n3 === void 0 ? i5 : async () => { let s2 = /* @__PURE__ */ new Date(), a5 = performance.now(), u = await i5(), m3 = performance.now(); return n3({ timestamp: s2, duration: m3 - a5, query: e5.sql, params: e5.args }), u; }; return t.isEnabled() ? await t.runInChildSpan({ name: "db_query", kind: nr.CLIENT, attributes: { "db.query.text": e5.sql, "db.system.name": $p(r5) } }, o3) : o3(); } __name(Wr, "Wr"); function Ze(e5, t) { var r5 = "000000000" + e5; return r5.substr(r5.length - t); } __name(Ze, "Ze"); var ta = Pe(__require("node:os"), 1); function Lp() { try { return ta.default.hostname(); } catch { return process.env._CLUSTER_NETWORK_NAME_ || process.env.COMPUTERNAME || "hostname"; } } __name(Lp, "Lp"); var ra = 2; var Vp = Ze(process.pid.toString(36), ra); var na = Lp(); var qp = na.length; var Up = Ze(na.split("").reduce(function(e5, t) { return +e5 + t.charCodeAt(0); }, +qp + 36).toString(36), ra); function si() { return Vp + Up; } __name(si, "si"); function Kr(e5) { return typeof e5 == "string" && /^c[a-z0-9]{20,32}$/.test(e5); } __name(Kr, "Kr"); function ai(e5) { let n3 = Math.pow(36, 4), i5 = 0; function o3() { return Ze((Math.random() * n3 << 0).toString(36), 4); } __name(o3, "o"); function s2() { return i5 = i5 < n3 ? i5 : 0, i5++, i5 - 1; } __name(s2, "s"); function a5() { var u = "c", m3 = (/* @__PURE__ */ new Date()).getTime().toString(36), P = Ze(s2().toString(36), 4), T2 = e5(), S = o3() + o3(); return u + m3 + P + T2 + S; } __name(a5, "a"); return a5.fingerprint = e5, a5.isCuid = Kr, a5; } __name(ai, "ai"); var jp = ai(si); var ia = jp; var Zr = BigInt(4294967295); var oa = BigInt(32); function Bp(e5, t = false) { return t ? { h: Number(e5 & Zr), l: Number(e5 >> oa & Zr) } : { h: Number(e5 >> oa & Zr) | 0, l: Number(e5 & Zr) | 0 }; } __name(Bp, "Bp"); function sa(e5, t = false) { let r5 = e5.length, n3 = new Uint32Array(r5), i5 = new Uint32Array(r5); for (let o3 = 0; o3 < r5; o3++) { let { h: s2, l: a5 } = Bp(e5[o3], t); [n3[o3], i5[o3]] = [s2, a5]; } return [n3, i5]; } __name(sa, "sa"); var aa = /* @__PURE__ */ __name((e5, t, r5) => e5 << r5 | t >>> 32 - r5, "aa"); var la = /* @__PURE__ */ __name((e5, t, r5) => t << r5 | e5 >>> 32 - r5, "la"); var ua = /* @__PURE__ */ __name((e5, t, r5) => t << r5 - 32 | e5 >>> 64 - r5, "ua"); var ca = /* @__PURE__ */ __name((e5, t, r5) => e5 << r5 - 32 | t >>> 64 - r5, "ca"); function Qp(e5) { return e5 instanceof Uint8Array || ArrayBuffer.isView(e5) && e5.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in e5 && e5.BYTES_PER_ELEMENT === 1; } __name(Qp, "Qp"); function Xr(e5, t = "") { if (typeof e5 != "number") { let r5 = t && `"${t}" `; throw new TypeError(`${r5}expected number, got ${typeof e5}`); } if (!Number.isSafeInteger(e5) || e5 < 0) { let r5 = t && `"${t}" `; throw new RangeError(`${r5}expected integer >= 0, got ${e5}`); } } __name(Xr, "Xr"); function Yr(e5, t, r5 = "") { let n3 = Qp(e5), i5 = e5?.length, o3 = t !== void 0; if (!n3 || o3 && i5 !== t) { let s2 = r5 && `"${r5}" `, a5 = o3 ? ` of length ${t}` : "", u = n3 ? `length=${i5}` : `type=${typeof e5}`, m3 = s2 + "expected Uint8Array" + a5 + ", got " + u; throw n3 ? new RangeError(m3) : new TypeError(m3); } return e5; } __name(Yr, "Yr"); function li(e5, t = true) { if (e5.destroyed) throw new Error("Hash instance has been destroyed"); if (t && e5.finished) throw new Error("Hash#digest() has already been called"); } __name(li, "li"); function pa(e5, t) { Yr(e5, void 0, "digestInto() output"); let r5 = t.outputLen; if (e5.length < r5) throw new RangeError('"digestInto() output" expected to be of length >=' + r5); } __name(pa, "pa"); function da(e5) { return new Uint32Array(e5.buffer, e5.byteOffset, Math.floor(e5.byteLength / 4)); } __name(da, "da"); function ui(...e5) { for (let t = 0; t < e5.length; t++) e5[t].fill(0); } __name(ui, "ui"); var Jp = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68; function Gp(e5) { return e5 << 24 & 4278190080 | e5 << 8 & 16711680 | e5 >>> 8 & 65280 | e5 >>> 24 & 255; } __name(Gp, "Gp"); function zp(e5) { for (let t = 0; t < e5.length; t++) e5[t] = Gp(e5[t]); return e5; } __name(zp, "zp"); var ci = Jp ? (e5) => e5 : zp; function ma(e5, t = {}) { let r5 = /* @__PURE__ */ __name((i5, o3) => e5(o3).update(i5).digest(), "r"), n3 = e5(void 0); return r5.outputLen = n3.outputLen, r5.blockLen = n3.blockLen, r5.canXOF = n3.canXOF, r5.create = (i5) => e5(i5), Object.assign(r5, t), Object.freeze(r5); } __name(ma, "ma"); var fa = /* @__PURE__ */ __name((e5) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, e5]) }), "fa"); var Hp = BigInt(0); var ir = BigInt(1); var Wp = BigInt(2); var Kp = BigInt(7); var Zp = BigInt(256); var Xp = BigInt(113); var ha = []; var wa = []; var xa = []; for (let e5 = 0, t = ir, r5 = 1, n3 = 0; e5 < 24; e5++) { [r5, n3] = [n3, (2 * r5 + 3 * n3) % 5], ha.push(2 * (5 * n3 + r5)), wa.push((e5 + 1) * (e5 + 2) / 2 % 64); let i5 = Hp; for (let o3 = 0; o3 < 7; o3++) t = (t << ir ^ (t >> Kp) * Xp) % Zp, t & Wp && (i5 ^= ir << (ir << BigInt(o3)) - ir); xa.push(i5); } var ba = sa(xa, true); var Yp = ba[0]; var ed = ba[1]; var ga = /* @__PURE__ */ __name((e5, t, r5) => r5 > 32 ? ua(e5, t, r5) : aa(e5, t, r5), "ga"); var ya = /* @__PURE__ */ __name((e5, t, r5) => r5 > 32 ? ca(e5, t, r5) : la(e5, t, r5), "ya"); function td(e5, t = 24) { if (Xr(t, "rounds"), t < 1 || t > 24) throw new Error('"rounds" expected integer 1..24'); let r5 = new Uint32Array(5 * 2); for (let n3 = 24 - t; n3 < 24; n3++) { for (let s2 = 0; s2 < 10; s2++) r5[s2] = e5[s2] ^ e5[s2 + 10] ^ e5[s2 + 20] ^ e5[s2 + 30] ^ e5[s2 + 40]; for (let s2 = 0; s2 < 10; s2 += 2) { let a5 = (s2 + 8) % 10, u = (s2 + 2) % 10, m3 = r5[u], P = r5[u + 1], T2 = ga(m3, P, 1) ^ r5[a5], S = ya(m3, P, 1) ^ r5[a5 + 1]; for (let I = 0; I < 50; I += 10) e5[s2 + I] ^= T2, e5[s2 + I + 1] ^= S; } let i5 = e5[2], o3 = e5[3]; for (let s2 = 0; s2 < 24; s2++) { let a5 = wa[s2], u = ga(i5, o3, a5), m3 = ya(i5, o3, a5), P = ha[s2]; i5 = e5[P], o3 = e5[P + 1], e5[P] = u, e5[P + 1] = m3; } for (let s2 = 0; s2 < 50; s2 += 10) { let a5 = e5[s2], u = e5[s2 + 1], m3 = e5[s2 + 2], P = e5[s2 + 3]; e5[s2] ^= ~e5[s2 + 2] & e5[s2 + 4], e5[s2 + 1] ^= ~e5[s2 + 3] & e5[s2 + 5], e5[s2 + 2] ^= ~e5[s2 + 4] & e5[s2 + 6], e5[s2 + 3] ^= ~e5[s2 + 5] & e5[s2 + 7], e5[s2 + 4] ^= ~e5[s2 + 6] & e5[s2 + 8], e5[s2 + 5] ^= ~e5[s2 + 7] & e5[s2 + 9], e5[s2 + 6] ^= ~e5[s2 + 8] & a5, e5[s2 + 7] ^= ~e5[s2 + 9] & u, e5[s2 + 8] ^= ~a5 & m3, e5[s2 + 9] ^= ~u & P; } e5[0] ^= Yp[n3], e5[1] ^= ed[n3]; } ui(r5); } __name(td, "td"); var pi = class e5 { static { __name(this, "e"); } state; pos = 0; posOut = 0; finished = false; state32; destroyed = false; blockLen; suffix; outputLen; canXOF; enableXOF = false; rounds; constructor(t, r5, n3, i5 = false, o3 = 24) { if (this.blockLen = t, this.suffix = r5, this.outputLen = n3, this.enableXOF = i5, this.canXOF = i5, this.rounds = o3, Xr(n3, "outputLen"), !(0 < t && t < 200)) throw new Error("only keccak-f1600 function is supported"); this.state = new Uint8Array(200), this.state32 = da(this.state); } clone() { return this._cloneInto(); } keccak() { ci(this.state32), td(this.state32, this.rounds), ci(this.state32), this.posOut = 0, this.pos = 0; } update(t) { li(this), Yr(t); let { blockLen: r5, state: n3 } = this, i5 = t.length; for (let o3 = 0; o3 < i5; ) { let s2 = Math.min(r5 - this.pos, i5 - o3); for (let a5 = 0; a5 < s2; a5++) n3[this.pos++] ^= t[o3++]; this.pos === r5 && this.keccak(); } return this; } finish() { if (this.finished) return; this.finished = true; let { state: t, suffix: r5, pos: n3, blockLen: i5 } = this; t[n3] ^= r5, (r5 & 128) !== 0 && n3 === i5 - 1 && this.keccak(), t[i5 - 1] ^= 128, this.keccak(); } writeInto(t) { li(this, false), Yr(t), this.finish(); let r5 = this.state, { blockLen: n3 } = this; for (let i5 = 0, o3 = t.length; i5 < o3; ) { this.posOut >= n3 && this.keccak(); let s2 = Math.min(n3 - this.posOut, o3 - i5); t.set(r5.subarray(this.posOut, this.posOut + s2), i5), this.posOut += s2, i5 += s2; } return t; } xofInto(t) { if (!this.enableXOF) throw new Error("XOF is not possible for this instance"); return this.writeInto(t); } xof(t) { return Xr(t), this.xofInto(new Uint8Array(t)); } digestInto(t) { if (pa(t, this), this.finished) throw new Error("digest() was already called"); this.writeInto(t.subarray(0, this.outputLen)), this.destroy(); } digest() { let t = new Uint8Array(this.outputLen); return this.digestInto(t), t; } destroy() { this.destroyed = true, ui(this.state); } _cloneInto(t) { let { blockLen: r5, suffix: n3, outputLen: i5, rounds: o3, enableXOF: s2 } = this; return t ||= new e5(r5, n3, i5, s2, o3), t.blockLen = r5, t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = o3, t.suffix = n3, t.outputLen = i5, t.enableXOF = s2, t.canXOF = this.canXOF, t.destroyed = this.destroyed, t; } }; var rd = /* @__PURE__ */ __name((e5, t, r5, n3 = {}) => ma(() => new pi(t, e5, r5), n3), "rd"); var Pa = rd(6, 72, 64, fa(10)); var nd = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i; var di = Math.ceil; var he = Math.floor; var le = "[BigNumber Error] "; var Ea = le + "Number primitive has more than 15 significant digits: "; var Re = 1e14; var N = 14; var mi = 9007199254740991; var fi = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13]; var Qe = 1e7; var Y = 1e9; function Ta(e5) { var t, r5, n3, i5 = E.prototype = { constructor: E, toString: null, valueOf: null }, o3 = new E(1), s2 = 20, a5 = 4, u = -7, m3 = 21, P = -1e7, T2 = 1e7, S = false, I = 1, A = 0, M = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: "\xA0", suffix: "" }, L = "0123456789abcdefghijklmnopqrstuvwxyz", q3 = true; function E(l3, c5) { var p3, h5, f5, y, b5, d5, g5, x, w = this; if (!(w instanceof E)) return new E(l3, c5); if (c5 == null) { if (l3 && l3._isBigNumber === true) { w.s = l3.s, !l3.c || l3.e > T2 ? w.c = w.e = null : l3.e < P ? w.c = [w.e = 0] : (w.e = l3.e, w.c = l3.c.slice()); return; } if ((d5 = typeof l3 == "number") && l3 * 0 == 0) { if (w.s = 1 / l3 < 0 ? (l3 = -l3, -1) : 1, l3 === ~~l3) { for (y = 0, b5 = l3; b5 >= 10; b5 /= 10, y++) ; y > T2 ? w.c = w.e = null : (w.e = y, w.c = [l3]); return; } x = String(l3); } else { if (!nd.test(x = String(l3))) return n3(w, x, d5); w.s = x.charCodeAt(0) == 45 ? (x = x.slice(1), -1) : 1; } (y = x.indexOf(".")) > -1 && (x = x.replace(".", "")), (b5 = x.search(/e/i)) > 0 ? (y < 0 && (y = b5), y += +x.slice(b5 + 1), x = x.substring(0, b5)) : y < 0 && (y = x.length); } else { if (J(c5, 2, L.length, "Base"), c5 == 10 && q3) return w = new E(l3), ie(w, s2 + w.e + 1, a5); if (x = String(l3), d5 = typeof l3 == "number") { if (l3 * 0 != 0) return n3(w, x, d5, c5); if (w.s = 1 / l3 < 0 ? (x = x.slice(1), -1) : 1, E.DEBUG && x.replace(/^0\.0*|\./, "").length > 15) throw Error(Ea + l3); } else w.s = x.charCodeAt(0) === 45 ? (x = x.slice(1), -1) : 1; for (p3 = L.slice(0, c5), y = b5 = 0, g5 = x.length; b5 < g5; b5++) if (p3.indexOf(h5 = x.charAt(b5)) < 0) { if (h5 == ".") { if (b5 > y) { y = g5; continue; } } else if (!f5 && (x == x.toUpperCase() && (x = x.toLowerCase()) || x == x.toLowerCase() && (x = x.toUpperCase()))) { f5 = true, b5 = -1, y = 0; continue; } return n3(w, String(l3), d5, c5); } d5 = false, x = r5(x, c5, 10, w.s), (y = x.indexOf(".")) > -1 ? x = x.replace(".", "") : y = x.length; } for (b5 = 0; x.charCodeAt(b5) === 48; b5++) ; for (g5 = x.length; x.charCodeAt(--g5) === 48; ) ; if (x = x.slice(b5, ++g5)) { if (g5 -= b5, d5 && E.DEBUG && g5 > 15 && (l3 > mi || l3 !== he(l3))) throw Error(Ea + w.s * l3); if ((y = y - b5 - 1) > T2) w.c = w.e = null; else if (y < P) w.c = [w.e = 0]; else { if (w.e = y, w.c = [], b5 = (y + 1) % N, y < 0 && (b5 += N), b5 < g5) { for (b5 && w.c.push(+x.slice(0, b5)), g5 -= N; b5 < g5; ) w.c.push(+x.slice(b5, b5 += N)); b5 = N - (x = x.slice(b5)).length; } else b5 -= g5; for (; b5--; x += "0") ; w.c.push(+x); } } else w.c = [w.e = 0]; } __name(E, "E"); E.clone = Ta, E.ROUND_UP = 0, E.ROUND_DOWN = 1, E.ROUND_CEIL = 2, E.ROUND_FLOOR = 3, E.ROUND_HALF_UP = 4, E.ROUND_HALF_DOWN = 5, E.ROUND_HALF_EVEN = 6, E.ROUND_HALF_CEIL = 7, E.ROUND_HALF_FLOOR = 8, E.EUCLID = 9, E.config = E.set = function(l3) { var c5, p3; if (l3 != null) if (typeof l3 == "object") { if (l3.hasOwnProperty(c5 = "DECIMAL_PLACES") && (p3 = l3[c5], J(p3, 0, Y, c5), s2 = p3), l3.hasOwnProperty(c5 = "ROUNDING_MODE") && (p3 = l3[c5], J(p3, 0, 8, c5), a5 = p3), l3.hasOwnProperty(c5 = "EXPONENTIAL_AT") && (p3 = l3[c5], p3 && p3.pop ? (J(p3[0], -Y, 0, c5), J(p3[1], 0, Y, c5), u = p3[0], m3 = p3[1]) : (J(p3, -Y, Y, c5), u = -(m3 = p3 < 0 ? -p3 : p3))), l3.hasOwnProperty(c5 = "RANGE")) if (p3 = l3[c5], p3 && p3.pop) J(p3[0], -Y, -1, c5), J(p3[1], 1, Y, c5), P = p3[0], T2 = p3[1]; else if (J(p3, -Y, Y, c5), p3) P = -(T2 = p3 < 0 ? -p3 : p3); else throw Error(le + c5 + " cannot be zero: " + p3); if (l3.hasOwnProperty(c5 = "CRYPTO")) if (p3 = l3[c5], p3 === !!p3) if (p3) if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes)) S = p3; else throw S = !p3, Error(le + "crypto unavailable"); else S = p3; else throw Error(le + c5 + " not true or false: " + p3); if (l3.hasOwnProperty(c5 = "MODULO_MODE") && (p3 = l3[c5], J(p3, 0, 9, c5), I = p3), l3.hasOwnProperty(c5 = "POW_PRECISION") && (p3 = l3[c5], J(p3, 0, Y, c5), A = p3), l3.hasOwnProperty(c5 = "FORMAT")) if (p3 = l3[c5], typeof p3 == "object") M = p3; else throw Error(le + c5 + " not an object: " + p3); if (l3.hasOwnProperty(c5 = "ALPHABET")) if (p3 = l3[c5], typeof p3 == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(p3)) q3 = p3.slice(0, 10) == "0123456789", L = p3; else throw Error(le + c5 + " invalid: " + p3); } else throw Error(le + "Object expected: " + l3); return { DECIMAL_PLACES: s2, ROUNDING_MODE: a5, EXPONENTIAL_AT: [u, m3], RANGE: [P, T2], CRYPTO: S, MODULO_MODE: I, POW_PRECISION: A, FORMAT: M, ALPHABET: L }; }, E.isBigNumber = function(l3) { if (!l3 || l3._isBigNumber !== true) return false; if (!E.DEBUG) return true; var c5, p3, h5 = l3.c, f5 = l3.e, y = l3.s; e: if ({}.toString.call(h5) == "[object Array]") { if ((y === 1 || y === -1) && f5 >= -Y && f5 <= Y && f5 === he(f5)) { if (h5[0] === 0) { if (f5 === 0 && h5.length === 1) return true; break e; } if (c5 = (f5 + 1) % N, c5 < 1 && (c5 += N), String(h5[0]).length == c5) { for (c5 = 0; c5 < h5.length; c5++) if (p3 = h5[c5], p3 < 0 || p3 >= Re || p3 !== he(p3)) break e; if (p3 !== 0) return true; } } } else if (h5 === null && f5 === null && (y === null || y === 1 || y === -1)) return true; throw Error(le + "Invalid BigNumber: " + l3); }, E.maximum = E.max = function() { return H(arguments, -1); }, E.minimum = E.min = function() { return H(arguments, 1); }, E.random = (function() { var l3 = 9007199254740992, c5 = Math.random() * l3 & 2097151 ? function() { return he(Math.random() * l3); } : function() { return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0); }; return function(p3) { var h5, f5, y, b5, d5, g5 = 0, x = [], w = new E(o3); if (p3 == null ? p3 = s2 : J(p3, 0, Y), b5 = di(p3 / N), S) if (crypto.getRandomValues) { for (h5 = crypto.getRandomValues(new Uint32Array(b5 *= 2)); g5 < b5; ) d5 = h5[g5] * 131072 + (h5[g5 + 1] >>> 11), d5 >= 9e15 ? (f5 = crypto.getRandomValues(new Uint32Array(2)), h5[g5] = f5[0], h5[g5 + 1] = f5[1]) : (x.push(d5 % 1e14), g5 += 2); g5 = b5 / 2; } else if (crypto.randomBytes) { for (h5 = crypto.randomBytes(b5 *= 7); g5 < b5; ) d5 = (h5[g5] & 31) * 281474976710656 + h5[g5 + 1] * 1099511627776 + h5[g5 + 2] * 4294967296 + h5[g5 + 3] * 16777216 + (h5[g5 + 4] << 16) + (h5[g5 + 5] << 8) + h5[g5 + 6], d5 >= 9e15 ? crypto.randomBytes(7).copy(h5, g5) : (x.push(d5 % 1e14), g5 += 7); g5 = b5 / 7; } else throw S = false, Error(le + "crypto unavailable"); if (!S) for (; g5 < b5; ) d5 = c5(), d5 < 9e15 && (x[g5++] = d5 % 1e14); for (b5 = x[--g5], p3 %= N, b5 && p3 && (d5 = fi[N - p3], x[g5] = he(b5 / d5) * d5); x[g5] === 0; x.pop(), g5--) ; if (g5 < 0) x = [y = 0]; else { for (y = -1; x[0] === 0; x.splice(0, 1), y -= N) ; for (g5 = 1, d5 = x[0]; d5 >= 10; d5 /= 10, g5++) ; g5 < N && (y -= N - g5); } return w.e = y, w.c = x, w; }; })(), E.sum = function() { for (var l3 = 1, c5 = arguments, p3 = new E(c5[0]); l3 < c5.length; ) p3 = p3.plus(c5[l3++]); return p3; }, r5 = /* @__PURE__ */ (function() { var l3 = "0123456789"; function c5(p3, h5, f5, y) { for (var b5, d5 = [0], g5, x = 0, w = p3.length; x < w; ) { for (g5 = d5.length; g5--; d5[g5] *= h5) ; for (d5[0] += y.indexOf(p3.charAt(x++)), b5 = 0; b5 < d5.length; b5++) d5[b5] > f5 - 1 && (d5[b5 + 1] == null && (d5[b5 + 1] = 0), d5[b5 + 1] += d5[b5] / f5 | 0, d5[b5] %= f5); } return d5.reverse(); } __name(c5, "c"); return function(p3, h5, f5, y, b5) { var d5, g5, x, w, v, R, C, $2, G = p3.indexOf("."), W = s2, F = a5; for (G >= 0 && (w = A, A = 0, p3 = p3.replace(".", ""), $2 = new E(h5), R = $2.pow(p3.length - G), A = w, $2.c = c5(Le(ye(R.c), R.e, "0"), 10, f5, l3), $2.e = $2.c.length), C = c5(p3, h5, f5, b5 ? (d5 = L, l3) : (d5 = l3, L)), x = w = C.length; C[--w] == 0; C.pop()) ; if (!C[0]) return d5.charAt(0); if (G < 0 ? --x : (R.c = C, R.e = x, R.s = y, R = t(R, $2, W, F, f5), C = R.c, v = R.r, x = R.e), g5 = x + W + 1, G = C[g5], w = f5 / 2, v = v || g5 < 0 || C[g5 + 1] != null, v = F < 4 ? (G != null || v) && (F == 0 || F == (R.s < 0 ? 3 : 2)) : G > w || G == w && (F == 4 || v || F == 6 && C[g5 - 1] & 1 || F == (R.s < 0 ? 8 : 7)), g5 < 1 || !C[0]) p3 = v ? Le(d5.charAt(1), -W, d5.charAt(0)) : d5.charAt(0); else { if (C.length = g5, v) for (--f5; ++C[--g5] > f5; ) C[g5] = 0, g5 || (++x, C = [1].concat(C)); for (w = C.length; !C[--w]; ) ; for (G = 0, p3 = ""; G <= w; p3 += d5.charAt(C[G++])) ; p3 = Le(p3, x, d5.charAt(0)); } return p3; }; })(), t = /* @__PURE__ */ (function() { function l3(h5, f5, y) { var b5, d5, g5, x, w = 0, v = h5.length, R = f5 % Qe, C = f5 / Qe | 0; for (h5 = h5.slice(); v--; ) g5 = h5[v] % Qe, x = h5[v] / Qe | 0, b5 = C * g5 + x * R, d5 = R * g5 + b5 % Qe * Qe + w, w = (d5 / y | 0) + (b5 / Qe | 0) + C * x, h5[v] = d5 % y; return w && (h5 = [w].concat(h5)), h5; } __name(l3, "l"); function c5(h5, f5, y, b5) { var d5, g5; if (y != b5) g5 = y > b5 ? 1 : -1; else for (d5 = g5 = 0; d5 < y; d5++) if (h5[d5] != f5[d5]) { g5 = h5[d5] > f5[d5] ? 1 : -1; break; } return g5; } __name(c5, "c"); function p3(h5, f5, y, b5) { for (var d5 = 0; y--; ) h5[y] -= d5, d5 = h5[y] < f5[y] ? 1 : 0, h5[y] = d5 * b5 + h5[y] - f5[y]; for (; !h5[0] && h5.length > 1; h5.splice(0, 1)) ; } __name(p3, "p"); return function(h5, f5, y, b5, d5) { var g5, x, w, v, R, C, $2, G, W, F, U, oe, wr, Sn, An, Ce, Ot, me = h5.s == f5.s ? 1 : -1, se = h5.c, z2 = f5.c; if (!se || !se[0] || !z2 || !z2[0]) return new E(!h5.s || !f5.s || (se ? z2 && se[0] == z2[0] : !z2) ? NaN : se && se[0] == 0 || !z2 ? me * 0 : me / 0); for (G = new E(me), W = G.c = [], x = h5.e - f5.e, me = y + x + 1, d5 || (d5 = Re, x = we(h5.e / N) - we(f5.e / N), me = me / N | 0), w = 0; z2[w] == (se[w] || 0); w++) ; if (z2[w] > (se[w] || 0) && x--, me < 0) W.push(1), v = true; else { for (Sn = se.length, Ce = z2.length, w = 0, me += 2, R = he(d5 / (z2[0] + 1)), R > 1 && (z2 = l3(z2, R, d5), se = l3(se, R, d5), Ce = z2.length, Sn = se.length), wr = Ce, F = se.slice(0, Ce), U = F.length; U < Ce; F[U++] = 0) ; Ot = z2.slice(), Ot = [0].concat(Ot), An = z2[0], z2[1] >= d5 / 2 && An++; do { if (R = 0, g5 = c5(z2, F, Ce, U), g5 < 0) { if (oe = F[0], Ce != U && (oe = oe * d5 + (F[1] || 0)), R = he(oe / An), R > 1) for (R >= d5 && (R = d5 - 1), C = l3(z2, R, d5), $2 = C.length, U = F.length; c5(C, F, $2, U) == 1; ) R--, p3(C, Ce < $2 ? Ot : z2, $2, d5), $2 = C.length, g5 = 1; else R == 0 && (g5 = R = 1), C = z2.slice(), $2 = C.length; if ($2 < U && (C = [0].concat(C)), p3(F, C, U, d5), U = F.length, g5 == -1) for (; c5(z2, F, Ce, U) < 1; ) R++, p3(F, Ce < U ? Ot : z2, U, d5), U = F.length; } else g5 === 0 && (R++, F = [0]); W[w++] = R, F[0] ? F[U++] = se[wr] || 0 : (F = [se[wr]], U = 1); } while ((wr++ < Sn || F[0] != null) && me--); v = F[0] != null, W[0] || W.splice(0, 1); } if (d5 == Re) { for (w = 1, me = W[0]; me >= 10; me /= 10, w++) ; ie(G, y + (G.e = w + x * N - 1) + 1, b5, v); } else G.e = x, G.r = +v; return G; }; })(); function D(l3, c5, p3, h5) { var f5, y, b5, d5, g5; if (p3 == null ? p3 = a5 : J(p3, 0, 8), !l3.c) return l3.toString(); if (f5 = l3.c[0], b5 = l3.e, c5 == null) g5 = ye(l3.c), g5 = h5 == 1 || h5 == 2 && (b5 <= u || b5 >= m3) ? tn(g5, b5) : Le(g5, b5, "0"); else if (l3 = ie(new E(l3), c5, p3), y = l3.e, g5 = ye(l3.c), d5 = g5.length, h5 == 1 || h5 == 2 && (c5 <= y || y <= u)) { for (; d5 < c5; g5 += "0", d5++) ; g5 = tn(g5, y); } else if (c5 -= b5 + (h5 === 2 && y > b5), g5 = Le(g5, y, "0"), y + 1 > d5) { if (--c5 > 0) for (g5 += "."; c5--; g5 += "0") ; } else if (c5 += y - d5, c5 > 0) for (y + 1 == d5 && (g5 += "."); c5--; g5 += "0") ; return l3.s < 0 && f5 ? "-" + g5 : g5; } __name(D, "D"); function H(l3, c5) { for (var p3, h5, f5 = 1, y = new E(l3[0]); f5 < l3.length; f5++) h5 = new E(l3[f5]), (!h5.s || (p3 = Xe(y, h5)) === c5 || p3 === 0 && y.s === c5) && (y = h5); return y; } __name(H, "H"); function ce(l3, c5, p3) { for (var h5 = 1, f5 = c5.length; !c5[--f5]; c5.pop()) ; for (f5 = c5[0]; f5 >= 10; f5 /= 10, h5++) ; return (p3 = h5 + p3 * N - 1) > T2 ? l3.c = l3.e = null : p3 < P ? l3.c = [l3.e = 0] : (l3.e = p3, l3.c = c5), l3; } __name(ce, "ce"); n3 = /* @__PURE__ */ (function() { var l3 = /^(-?)0([xbo])(?=\w[\w.]*$)/i, c5 = /^([^.]+)\.$/, p3 = /^\.([^.]+)$/, h5 = /^-?(Infinity|NaN)$/, f5 = /^\s*\+(?=[\w.])|^\s+|\s+$/g; return function(y, b5, d5, g5) { var x, w = d5 ? b5 : b5.replace(f5, ""); if (h5.test(w)) y.s = isNaN(w) ? null : w < 0 ? -1 : 1; else { if (!d5 && (w = w.replace(l3, function(v, R, C) { return x = (C = C.toLowerCase()) == "x" ? 16 : C == "b" ? 2 : 8, !g5 || g5 == x ? R : v; }), g5 && (x = g5, w = w.replace(c5, "$1").replace(p3, "0.$1")), b5 != w)) return new E(w, x); if (E.DEBUG) throw Error(le + "Not a" + (g5 ? " base " + g5 : "") + " number: " + b5); y.s = null; } y.c = y.e = null; }; })(); function ie(l3, c5, p3, h5) { var f5, y, b5, d5, g5, x, w, v = l3.c, R = fi; if (v) { e: { for (f5 = 1, d5 = v[0]; d5 >= 10; d5 /= 10, f5++) ; if (y = c5 - f5, y < 0) y += N, b5 = c5, g5 = v[x = 0], w = he(g5 / R[f5 - b5 - 1] % 10); else if (x = di((y + 1) / N), x >= v.length) if (h5) { for (; v.length <= x; v.push(0)) ; g5 = w = 0, f5 = 1, y %= N, b5 = y - N + 1; } else break e; else { for (g5 = d5 = v[x], f5 = 1; d5 >= 10; d5 /= 10, f5++) ; y %= N, b5 = y - N + f5, w = b5 < 0 ? 0 : he(g5 / R[f5 - b5 - 1] % 10); } if (h5 = h5 || c5 < 0 || v[x + 1] != null || (b5 < 0 ? g5 : g5 % R[f5 - b5 - 1]), h5 = p3 < 4 ? (w || h5) && (p3 == 0 || p3 == (l3.s < 0 ? 3 : 2)) : w > 5 || w == 5 && (p3 == 4 || h5 || p3 == 6 && (y > 0 ? b5 > 0 ? g5 / R[f5 - b5] : 0 : v[x - 1]) % 10 & 1 || p3 == (l3.s < 0 ? 8 : 7)), c5 < 1 || !v[0]) return v.length = 0, h5 ? (c5 -= l3.e + 1, v[0] = R[(N - c5 % N) % N], l3.e = -c5 || 0) : v[0] = l3.e = 0, l3; if (y == 0 ? (v.length = x, d5 = 1, x--) : (v.length = x + 1, d5 = R[N - y], v[x] = b5 > 0 ? he(g5 / R[f5 - b5] % R[b5]) * d5 : 0), h5) for (; ; ) if (x == 0) { for (y = 1, b5 = v[0]; b5 >= 10; b5 /= 10, y++) ; for (b5 = v[0] += d5, d5 = 1; b5 >= 10; b5 /= 10, d5++) ; y != d5 && (l3.e++, v[0] == Re && (v[0] = 1)); break; } else { if (v[x] += d5, v[x] != Re) break; v[x--] = 0, d5 = 1; } for (y = v.length; v[--y] === 0; v.pop()) ; } l3.e > T2 ? l3.c = l3.e = null : l3.e < P && (l3.c = [l3.e = 0]); } return l3; } __name(ie, "ie"); function be(l3) { var c5, p3 = l3.e; return p3 === null ? l3.toString() : (c5 = ye(l3.c), c5 = p3 <= u || p3 >= m3 ? tn(c5, p3) : Le(c5, p3, "0"), l3.s < 0 ? "-" + c5 : c5); } __name(be, "be"); return i5.absoluteValue = i5.abs = function() { var l3 = new E(this); return l3.s < 0 && (l3.s = 1), l3; }, i5.comparedTo = function(l3, c5) { return Xe(this, new E(l3, c5)); }, i5.decimalPlaces = i5.dp = function(l3, c5) { var p3, h5, f5, y = this; if (l3 != null) return J(l3, 0, Y), c5 == null ? c5 = a5 : J(c5, 0, 8), ie(new E(y), l3 + y.e + 1, c5); if (!(p3 = y.c)) return null; if (h5 = ((f5 = p3.length - 1) - we(this.e / N)) * N, f5 = p3[f5]) for (; f5 % 10 == 0; f5 /= 10, h5--) ; return h5 < 0 && (h5 = 0), h5; }, i5.dividedBy = i5.div = function(l3, c5) { return t(this, new E(l3, c5), s2, a5); }, i5.dividedToIntegerBy = i5.idiv = function(l3, c5) { return t(this, new E(l3, c5), 0, 1); }, i5.exponentiatedBy = i5.pow = function(l3, c5) { var p3, h5, f5, y, b5, d5, g5, x, w, v = this; if (l3 = new E(l3), l3.c && !l3.isInteger()) throw Error(le + "Exponent not an integer: " + be(l3)); if (c5 != null && (c5 = new E(c5)), d5 = l3.e > 14, !v.c || !v.c[0] || v.c[0] == 1 && !v.e && v.c.length == 1 || !l3.c || !l3.c[0]) return w = new E(Math.pow(+be(v), d5 ? l3.s * (2 - en(l3)) : +be(l3))), c5 ? w.mod(c5) : w; if (g5 = l3.s < 0, c5) { if (c5.c ? !c5.c[0] : !c5.s) return new E(NaN); h5 = !g5 && v.isInteger() && c5.isInteger(), h5 && (v = v.mod(c5)); } else { if (l3.e > 9 && (v.e > 0 || v.e < -1 || (v.e == 0 ? v.c[0] > 1 || d5 && v.c[1] >= 24e7 : v.c[0] < 8e13 || d5 && v.c[0] <= 9999975e7))) return y = v.s < 0 && en(l3) ? -0 : 0, v.e > -1 && (y = 1 / y), new E(g5 ? 1 / y : y); A && (y = di(A / N + 2)); } for (d5 ? (p3 = new E(0.5), g5 && (l3.s = 1), x = en(l3)) : (f5 = Math.abs(+be(l3)), x = f5 % 2), w = new E(o3); ; ) { if (x) { if (w = w.times(v), !w.c) break; y ? w.c.length > y && (w.c.length = y) : h5 && (w = w.mod(c5)); } if (f5) { if (f5 = he(f5 / 2), f5 === 0) break; x = f5 % 2; } else if (l3 = l3.times(p3), ie(l3, l3.e + 1, 1), l3.e > 14) x = en(l3); else { if (f5 = +be(l3), f5 === 0) break; x = f5 % 2; } v = v.times(v), y ? v.c && v.c.length > y && (v.c.length = y) : h5 && (v = v.mod(c5)); } return h5 ? w : (g5 && (w = o3.div(w)), c5 ? w.mod(c5) : y ? ie(w, A, a5, b5) : w); }, i5.integerValue = function(l3) { var c5 = new E(this); return l3 == null ? l3 = a5 : J(l3, 0, 8), ie(c5, c5.e + 1, l3); }, i5.isEqualTo = i5.eq = function(l3, c5) { return Xe(this, new E(l3, c5)) === 0; }, i5.isFinite = function() { return !!this.c; }, i5.isGreaterThan = i5.gt = function(l3, c5) { return Xe(this, new E(l3, c5)) > 0; }, i5.isGreaterThanOrEqualTo = i5.gte = function(l3, c5) { return (c5 = Xe(this, new E(l3, c5))) === 1 || c5 === 0; }, i5.isInteger = function() { return !!this.c && we(this.e / N) > this.c.length - 2; }, i5.isLessThan = i5.lt = function(l3, c5) { return Xe(this, new E(l3, c5)) < 0; }, i5.isLessThanOrEqualTo = i5.lte = function(l3, c5) { return (c5 = Xe(this, new E(l3, c5))) === -1 || c5 === 0; }, i5.isNaN = function() { return !this.s; }, i5.isNegative = function() { return this.s < 0; }, i5.isPositive = function() { return this.s > 0; }, i5.isZero = function() { return !!this.c && this.c[0] == 0; }, i5.minus = function(l3, c5) { var p3, h5, f5, y, b5 = this, d5 = b5.s; if (l3 = new E(l3, c5), c5 = l3.s, !d5 || !c5) return new E(NaN); if (d5 != c5) return l3.s = -c5, b5.plus(l3); var g5 = b5.e / N, x = l3.e / N, w = b5.c, v = l3.c; if (!g5 || !x) { if (!w || !v) return w ? (l3.s = -c5, l3) : new E(v ? b5 : NaN); if (!w[0] || !v[0]) return v[0] ? (l3.s = -c5, l3) : new E(w[0] ? b5 : a5 == 3 ? -0 : 0); } if (g5 = we(g5), x = we(x), w = w.slice(), d5 = g5 - x) { for ((y = d5 < 0) ? (d5 = -d5, f5 = w) : (x = g5, f5 = v), f5.reverse(), c5 = d5; c5--; f5.push(0)) ; f5.reverse(); } else for (h5 = (y = (d5 = w.length) < (c5 = v.length)) ? d5 : c5, d5 = c5 = 0; c5 < h5; c5++) if (w[c5] != v[c5]) { y = w[c5] < v[c5]; break; } if (y && (f5 = w, w = v, v = f5, l3.s = -l3.s), c5 = (h5 = v.length) - (p3 = w.length), c5 > 0) for (; c5--; w[p3++] = 0) ; for (c5 = Re - 1; h5 > d5; ) { if (w[--h5] < v[h5]) { for (p3 = h5; p3 && !w[--p3]; w[p3] = c5) ; --w[p3], w[h5] += Re; } w[h5] -= v[h5]; } for (; w[0] == 0; w.splice(0, 1), --x) ; return w[0] ? ce(l3, w, x) : (l3.s = a5 == 3 ? -1 : 1, l3.c = [l3.e = 0], l3); }, i5.modulo = i5.mod = function(l3, c5) { var p3, h5, f5 = this; return l3 = new E(l3, c5), !f5.c || !l3.s || l3.c && !l3.c[0] ? new E(NaN) : !l3.c || f5.c && !f5.c[0] ? new E(f5) : (I == 9 ? (h5 = l3.s, l3.s = 1, p3 = t(f5, l3, 0, 3), l3.s = h5, p3.s *= h5) : p3 = t(f5, l3, 0, I), l3 = f5.minus(p3.times(l3)), !l3.c[0] && I == 1 && (l3.s = f5.s), l3); }, i5.multipliedBy = i5.times = function(l3, c5) { var p3, h5, f5, y, b5, d5, g5, x, w, v, R, C, $2, G, W, F = this, U = F.c, oe = (l3 = new E(l3, c5)).c; if (!U || !oe || !U[0] || !oe[0]) return !F.s || !l3.s || U && !U[0] && !oe || oe && !oe[0] && !U ? l3.c = l3.e = l3.s = null : (l3.s *= F.s, !U || !oe ? l3.c = l3.e = null : (l3.c = [0], l3.e = 0)), l3; for (h5 = we(F.e / N) + we(l3.e / N), l3.s *= F.s, g5 = U.length, v = oe.length, g5 < v && ($2 = U, U = oe, oe = $2, f5 = g5, g5 = v, v = f5), f5 = g5 + v, $2 = []; f5--; $2.push(0)) ; for (G = Re, W = Qe, f5 = v; --f5 >= 0; ) { for (p3 = 0, R = oe[f5] % W, C = oe[f5] / W | 0, b5 = g5, y = f5 + b5; y > f5; ) x = U[--b5] % W, w = U[b5] / W | 0, d5 = C * x + w * R, x = R * x + d5 % W * W + $2[y] + p3, p3 = (x / G | 0) + (d5 / W | 0) + C * w, $2[y--] = x % G; $2[y] = p3; } return p3 ? ++h5 : $2.splice(0, 1), ce(l3, $2, h5); }, i5.negated = function() { var l3 = new E(this); return l3.s = -l3.s || null, l3; }, i5.plus = function(l3, c5) { var p3, h5 = this, f5 = h5.s; if (l3 = new E(l3, c5), c5 = l3.s, !f5 || !c5) return new E(NaN); if (f5 != c5) return l3.s = -c5, h5.minus(l3); var y = h5.e / N, b5 = l3.e / N, d5 = h5.c, g5 = l3.c; if (!y || !b5) { if (!d5 || !g5) return new E(f5 / 0); if (!d5[0] || !g5[0]) return g5[0] ? l3 : new E(d5[0] ? h5 : f5 * 0); } if (y = we(y), b5 = we(b5), d5 = d5.slice(), f5 = y - b5) { for (f5 > 0 ? (b5 = y, p3 = g5) : (f5 = -f5, p3 = d5), p3.reverse(); f5--; p3.push(0)) ; p3.reverse(); } for (f5 = d5.length, c5 = g5.length, f5 - c5 < 0 && (p3 = g5, g5 = d5, d5 = p3, c5 = f5), f5 = 0; c5; ) f5 = (d5[--c5] = d5[c5] + g5[c5] + f5) / Re | 0, d5[c5] = Re === d5[c5] ? 0 : d5[c5] % Re; return f5 && (d5 = [f5].concat(d5), ++b5), ce(l3, d5, b5); }, i5.precision = i5.sd = function(l3, c5) { var p3, h5, f5, y = this; if (l3 != null && l3 !== !!l3) return J(l3, 1, Y), c5 == null ? c5 = a5 : J(c5, 0, 8), ie(new E(y), l3, c5); if (!(p3 = y.c)) return null; if (f5 = p3.length - 1, h5 = f5 * N + 1, f5 = p3[f5]) { for (; f5 % 10 == 0; f5 /= 10, h5--) ; for (f5 = p3[0]; f5 >= 10; f5 /= 10, h5++) ; } return l3 && y.e + 1 > h5 && (h5 = y.e + 1), h5; }, i5.shiftedBy = function(l3) { return J(l3, -mi, mi), this.times("1e" + l3); }, i5.squareRoot = i5.sqrt = function() { var l3, c5, p3, h5, f5, y = this, b5 = y.c, d5 = y.s, g5 = y.e, x = s2 + 4, w = new E("0.5"); if (d5 !== 1 || !b5 || !b5[0]) return new E(!d5 || d5 < 0 && (!b5 || b5[0]) ? NaN : b5 ? y : 1 / 0); if (d5 = Math.sqrt(+be(y)), d5 == 0 || d5 == 1 / 0 ? (c5 = ye(b5), (c5.length + g5) % 2 == 0 && (c5 += "0"), d5 = Math.sqrt(+c5), g5 = we((g5 + 1) / 2) - (g5 < 0 || g5 % 2), d5 == 1 / 0 ? c5 = "5e" + g5 : (c5 = d5.toExponential(), c5 = c5.slice(0, c5.indexOf("e") + 1) + g5), p3 = new E(c5)) : p3 = new E(d5 + ""), p3.c[0]) { for (g5 = p3.e, d5 = g5 + x, d5 < 3 && (d5 = 0); ; ) if (f5 = p3, p3 = w.times(f5.plus(t(y, f5, x, 1))), ye(f5.c).slice(0, d5) === (c5 = ye(p3.c)).slice(0, d5)) if (p3.e < g5 && --d5, c5 = c5.slice(d5 - 3, d5 + 1), c5 == "9999" || !h5 && c5 == "4999") { if (!h5 && (ie(f5, f5.e + s2 + 2, 0), f5.times(f5).eq(y))) { p3 = f5; break; } x += 4, d5 += 4, h5 = 1; } else { (!+c5 || !+c5.slice(1) && c5.charAt(0) == "5") && (ie(p3, p3.e + s2 + 2, 1), l3 = !p3.times(p3).eq(y)); break; } } return ie(p3, p3.e + s2 + 1, a5, l3); }, i5.toExponential = function(l3, c5) { return l3 != null && (J(l3, 0, Y), l3++), D(this, l3, c5, 1); }, i5.toFixed = function(l3, c5) { return l3 != null && (J(l3, 0, Y), l3 = l3 + this.e + 1), D(this, l3, c5); }, i5.toFormat = function(l3, c5, p3) { var h5, f5 = this; if (p3 == null) l3 != null && c5 && typeof c5 == "object" ? (p3 = c5, c5 = null) : l3 && typeof l3 == "object" ? (p3 = l3, l3 = c5 = null) : p3 = M; else if (typeof p3 != "object") throw Error(le + "Argument not an object: " + p3); if (h5 = f5.toFixed(l3, c5), f5.c) { var y, b5 = h5.split("."), d5 = +p3.groupSize, g5 = +p3.secondaryGroupSize, x = p3.groupSeparator || "", w = b5[0], v = b5[1], R = f5.s < 0, C = R ? w.slice(1) : w, $2 = C.length; if (g5 && (y = d5, d5 = g5, g5 = y, $2 -= y), d5 > 0 && $2 > 0) { for (y = $2 % d5 || d5, w = C.substr(0, y); y < $2; y += d5) w += x + C.substr(y, d5); g5 > 0 && (w += x + C.slice(y)), R && (w = "-" + w); } h5 = v ? w + (p3.decimalSeparator || "") + ((g5 = +p3.fractionGroupSize) ? v.replace(new RegExp("\\d{" + g5 + "}\\B", "g"), "$&" + (p3.fractionGroupSeparator || "")) : v) : w; } return (p3.prefix || "") + h5 + (p3.suffix || ""); }, i5.toFraction = function(l3) { var c5, p3, h5, f5, y, b5, d5, g5, x, w, v, R, C = this, $2 = C.c; if (l3 != null && (d5 = new E(l3), !d5.isInteger() && (d5.c || d5.s !== 1) || d5.lt(o3))) throw Error(le + "Argument " + (d5.isInteger() ? "out of range: " : "not an integer: ") + be(d5)); if (!$2) return new E(C); for (c5 = new E(o3), x = p3 = new E(o3), h5 = g5 = new E(o3), R = ye($2), y = c5.e = R.length - C.e - 1, c5.c[0] = fi[(b5 = y % N) < 0 ? N + b5 : b5], l3 = !l3 || d5.comparedTo(c5) > 0 ? y > 0 ? c5 : x : d5, b5 = T2, T2 = 1 / 0, d5 = new E(R), g5.c[0] = 0; w = t(d5, c5, 0, 1), f5 = p3.plus(w.times(h5)), f5.comparedTo(l3) != 1; ) p3 = h5, h5 = f5, x = g5.plus(w.times(f5 = x)), g5 = f5, c5 = d5.minus(w.times(f5 = c5)), d5 = f5; return f5 = t(l3.minus(p3), h5, 0, 1), g5 = g5.plus(f5.times(x)), p3 = p3.plus(f5.times(h5)), g5.s = x.s = C.s, y = y * 2, v = t(x, h5, y, a5).minus(C).abs().comparedTo(t(g5, p3, y, a5).minus(C).abs()) < 1 ? [x, h5] : [g5, p3], T2 = b5, v; }, i5.toNumber = function() { return +be(this); }, i5.toPrecision = function(l3, c5) { return l3 != null && J(l3, 1, Y), D(this, l3, c5, 2); }, i5.toString = function(l3) { var c5, p3 = this, h5 = p3.s, f5 = p3.e; return f5 === null ? h5 ? (c5 = "Infinity", h5 < 0 && (c5 = "-" + c5)) : c5 = "NaN" : (l3 == null ? c5 = f5 <= u || f5 >= m3 ? tn(ye(p3.c), f5) : Le(ye(p3.c), f5, "0") : l3 === 10 && q3 ? (p3 = ie(new E(p3), s2 + f5 + 1, a5), c5 = Le(ye(p3.c), p3.e, "0")) : (J(l3, 2, L.length, "Base"), c5 = r5(Le(ye(p3.c), f5, "0"), 10, l3, h5, true)), h5 < 0 && p3.c[0] && (c5 = "-" + c5)), c5; }, i5.valueOf = i5.toJSON = function() { return be(this); }, i5._isBigNumber = true, i5[Symbol.toStringTag] = "BigNumber", i5[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = i5.valueOf, e5 != null && E.set(e5), E; } __name(Ta, "Ta"); function we(e5) { var t = e5 | 0; return e5 > 0 || e5 === t ? t : t - 1; } __name(we, "we"); function ye(e5) { for (var t, r5, n3 = 1, i5 = e5.length, o3 = e5[0] + ""; n3 < i5; ) { for (t = e5[n3++] + "", r5 = N - t.length; r5--; t = "0" + t) ; o3 += t; } for (i5 = o3.length; o3.charCodeAt(--i5) === 48; ) ; return o3.slice(0, i5 + 1 || 1); } __name(ye, "ye"); function Xe(e5, t) { var r5, n3, i5 = e5.c, o3 = t.c, s2 = e5.s, a5 = t.s, u = e5.e, m3 = t.e; if (!s2 || !a5) return null; if (r5 = i5 && !i5[0], n3 = o3 && !o3[0], r5 || n3) return r5 ? n3 ? 0 : -a5 : s2; if (s2 != a5) return s2; if (r5 = s2 < 0, n3 = u == m3, !i5 || !o3) return n3 ? 0 : !i5 ^ r5 ? 1 : -1; if (!n3) return u > m3 ^ r5 ? 1 : -1; for (a5 = (u = i5.length) < (m3 = o3.length) ? u : m3, s2 = 0; s2 < a5; s2++) if (i5[s2] != o3[s2]) return i5[s2] > o3[s2] ^ r5 ? 1 : -1; return u == m3 ? 0 : u > m3 ^ r5 ? 1 : -1; } __name(Xe, "Xe"); function J(e5, t, r5, n3) { if (e5 < t || e5 > r5 || e5 !== he(e5)) throw Error(le + (n3 || "Argument") + (typeof e5 == "number" ? e5 < t || e5 > r5 ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e5)); } __name(J, "J"); function en(e5) { var t = e5.c.length - 1; return we(e5.e / N) == t && e5.c[t] % 2 != 0; } __name(en, "en"); function tn(e5, t) { return (e5.length > 1 ? e5.charAt(0) + "." + e5.slice(1) : e5) + (t < 0 ? "e" : "e+") + t; } __name(tn, "tn"); function Le(e5, t, r5) { var n3, i5; if (t < 0) { for (i5 = r5 + "."; ++t; i5 += r5) ; e5 = i5 + e5; } else if (n3 = e5.length, ++t > n3) { for (i5 = r5, t -= n3; --t; i5 += r5) ; e5 += i5; } else t < n3 && (e5 = e5.slice(0, t) + "." + e5.slice(t)); return e5; } __name(Le, "Le"); var id = Ta(); var va = id; var od = 24; var or = 32; var sd = /* @__PURE__ */ __name(() => typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.getRandomValues == "function" ? () => { let e5 = new Uint32Array(1); return globalThis.crypto.getRandomValues(e5), e5[0] / 4294967296; } : Math.random, "sd"); var yi = sd(); var gi = /* @__PURE__ */ __name((e5 = 4, t = yi) => { let r5 = ""; for (; r5.length < e5; ) r5 = r5 + Math.floor(t() * 36).toString(36); return r5; }, "gi"); function ad(e5) { let t = new va(0); for (let r5 of e5.values()) t = t.multipliedBy(256).plus(r5); return t; } __name(ad, "ad"); var Aa = /* @__PURE__ */ __name((e5 = "") => { let t = new TextEncoder(); return ad(Pa(t.encode(e5))).toString(36).slice(1); }, "Aa"); var Sa = Array.from({ length: 26 }, (e5, t) => String.fromCharCode(t + 97)); var ld = /* @__PURE__ */ __name((e5) => Sa[Math.floor(e5() * Sa.length)], "ld"); var ud = /* @__PURE__ */ __name(({ globalObj: e5 = typeof global < "u" ? global : typeof window < "u" ? window : {}, random: t = yi } = {}) => { let r5 = Object.keys(e5).toString(), n3 = r5.length ? r5 + gi(or, t) : gi(or, t); return Aa(n3).substring(0, or); }, "ud"); var cd = /* @__PURE__ */ __name((e5) => () => e5++, "cd"); var pd = 476782367; var Ra = /* @__PURE__ */ __name(({ random: e5 = yi, counter: t = cd(Math.floor(e5() * pd)), length: r5 = od, fingerprint: n3 = ud({ random: e5 }) } = {}) => { if (r5 > or) throw new Error(`Length must be between 2 and ${or}. Received: ${r5}`); return function() { let o3 = ld(e5), s2 = Date.now().toString(36), a5 = t().toString(36), u = gi(r5, e5), m3 = `${s2 + u + a5 + n3}`; return `${o3 + Aa(m3).substring(1, r5)}`; }; }, "Ra"); var hi = dd(Ra); function dd(e5) { let t; return () => (t || (t = e5()), t()); } __name(dd, "dd"); var wi = __require("node:crypto"); var Ca = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"; var md = 128; var Je; var At; function fd(e5) { if (e5 < 0) throw new RangeError("Wrong ID size"); try { !Je || Je.length < e5 ? (Je = Buffer.allocUnsafe(e5 * md), wi.webcrypto.getRandomValues(Je), At = 0) : At + e5 > Je.length && (wi.webcrypto.getRandomValues(Je), At = 0); } catch (t) { throw Je = void 0, t; } At += e5; } __name(fd, "fd"); function xi(e5 = 21) { fd(e5 |= 0); let t = ""; for (let r5 = At - e5; r5 < At; r5++) t += Ca[Je[r5] & 63]; return t; } __name(xi, "xi"); var sr = Pe(__require("node:crypto"), 1); var ka = "0123456789ABCDEFGHJKMNPQRSTVWXYZ"; var ar = 32; var gd = 16; var Oa = 10; var Ia = 281474976710655; var Ye; (function(e5) { e5.Base32IncorrectEncoding = "B32_ENC_INVALID", e5.DecodeTimeInvalidCharacter = "DEC_TIME_CHAR", e5.DecodeTimeValueMalformed = "DEC_TIME_MALFORMED", e5.EncodeTimeNegative = "ENC_TIME_NEG", e5.EncodeTimeSizeExceeded = "ENC_TIME_SIZE_EXCEED", e5.EncodeTimeValueMalformed = "ENC_TIME_MALFORMED", e5.PRNGDetectFailure = "PRNG_DETECT", e5.ULIDInvalid = "ULID_INVALID", e5.Unexpected = "UNEXPECTED", e5.UUIDInvalid = "UUID_INVALID"; })(Ye || (Ye = {})); var et = class extends Error { static { __name(this, "et"); } constructor(t, r5) { super(`${r5} (${t})`), this.name = "ULIDError", this.code = t; } }; function yd(e5) { let t = Math.floor(e5() * ar); return t === ar && (t = ar - 1), ka.charAt(t); } __name(yd, "yd"); function hd(e5) { let t = wd(), r5 = t && (t.crypto || t.msCrypto) || (typeof sr.default < "u" ? sr.default : null); if (typeof r5?.getRandomValues == "function") return () => { let n3 = new Uint8Array(1); return r5.getRandomValues(n3), n3[0] / 255; }; if (typeof r5?.randomBytes == "function") return () => r5.randomBytes(1).readUInt8() / 255; if (sr.default?.randomBytes) return () => sr.default.randomBytes(1).readUInt8() / 255; throw new et(Ye.PRNGDetectFailure, "Failed to find a reliable PRNG"); } __name(hd, "hd"); function wd() { return Pd() ? self : typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : null; } __name(wd, "wd"); function xd(e5, t) { let r5 = ""; for (; e5 > 0; e5--) r5 = yd(t) + r5; return r5; } __name(xd, "xd"); function bd(e5, t = Oa) { if (isNaN(e5)) throw new et(Ye.EncodeTimeValueMalformed, `Time must be a number: ${e5}`); if (e5 > Ia) throw new et(Ye.EncodeTimeSizeExceeded, `Cannot encode a time larger than ${Ia}: ${e5}`); if (e5 < 0) throw new et(Ye.EncodeTimeNegative, `Time must be positive: ${e5}`); if (Number.isInteger(e5) === false) throw new et(Ye.EncodeTimeValueMalformed, `Time must be an integer: ${e5}`); let r5, n3 = ""; for (let i5 = t; i5 > 0; i5--) r5 = e5 % ar, n3 = ka.charAt(r5) + n3, e5 = (e5 - r5) / ar; return n3; } __name(bd, "bd"); function Pd() { return typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope; } __name(Pd, "Pd"); function Na(e5, t) { let r5 = t || hd(), n3 = !e5 || isNaN(e5) ? Date.now() : e5; return bd(n3, Oa) + xd(gd, r5); } __name(Na, "Na"); var te = []; for (let e5 = 0; e5 < 256; ++e5) te.push((e5 + 256).toString(16).slice(1)); function rn(e5, t = 0) { return (te[e5[t + 0]] + te[e5[t + 1]] + te[e5[t + 2]] + te[e5[t + 3]] + "-" + te[e5[t + 4]] + te[e5[t + 5]] + "-" + te[e5[t + 6]] + te[e5[t + 7]] + "-" + te[e5[t + 8]] + te[e5[t + 9]] + "-" + te[e5[t + 10]] + te[e5[t + 11]] + te[e5[t + 12]] + te[e5[t + 13]] + te[e5[t + 14]] + te[e5[t + 15]]).toLowerCase(); } __name(rn, "rn"); var Ed = new Uint8Array(16); function Rt() { return crypto.getRandomValues(Ed); } __name(Rt, "Rt"); function Td(e5, t, r5) { return !t && !e5 && crypto.randomUUID ? crypto.randomUUID() : vd(e5, t, r5); } __name(Td, "Td"); function vd(e5, t, r5) { e5 = e5 || {}; let n3 = e5.random ?? e5.rng?.() ?? Rt(); if (n3.length < 16) throw new Error("Random bytes length must be >= 16"); if (n3[6] = n3[6] & 15 | 64, n3[8] = n3[8] & 63 | 128, t) { if (r5 = r5 || 0, r5 < 0 || r5 + 16 > t.length) throw new RangeError(`UUID byte range ${r5}:${r5 + 15} is out of buffer bounds`); for (let i5 = 0; i5 < 16; ++i5) t[r5 + i5] = n3[i5]; return t; } return rn(n3); } __name(vd, "vd"); var bi = Td; var Pi = {}; function Sd(e5, t, r5) { let n3; if (e5) n3 = Da(e5.random ?? e5.rng?.() ?? Rt(), e5.msecs, e5.seq, t, r5); else { let i5 = Date.now(), o3 = Rt(); Ad(Pi, i5, o3), n3 = Da(o3, Pi.msecs, Pi.seq, t, r5); } return t ?? rn(n3); } __name(Sd, "Sd"); function Ad(e5, t, r5) { return e5.msecs ??= -1 / 0, e5.seq ??= 0, t > e5.msecs ? (e5.seq = r5[6] << 23 | r5[7] << 16 | r5[8] << 8 | r5[9], e5.msecs = t) : (e5.seq = e5.seq + 1 | 0, e5.seq === 0 && e5.msecs++), e5; } __name(Ad, "Ad"); function Da(e5, t, r5, n3, i5 = 0) { if (e5.length < 16) throw new Error("Random bytes length must be >= 16"); if (!n3) n3 = new Uint8Array(16), i5 = 0; else if (i5 < 0 || i5 + 16 > n3.length) throw new RangeError(`UUID byte range ${i5}:${i5 + 15} is out of buffer bounds`); return t ??= Date.now(), r5 ??= e5[6] * 127 << 24 | e5[7] << 16 | e5[8] << 8 | e5[9], n3[i5++] = t / 1099511627776 & 255, n3[i5++] = t / 4294967296 & 255, n3[i5++] = t / 16777216 & 255, n3[i5++] = t / 65536 & 255, n3[i5++] = t / 256 & 255, n3[i5++] = t & 255, n3[i5++] = 112 | r5 >>> 28 & 15, n3[i5++] = r5 >>> 20 & 255, n3[i5++] = 128 | r5 >>> 14 & 63, n3[i5++] = r5 >>> 6 & 255, n3[i5++] = r5 << 2 & 255 | e5[10] & 3, n3[i5++] = e5[11], n3[i5++] = e5[12], n3[i5++] = e5[13], n3[i5++] = e5[14], n3[i5++] = e5[15], n3; } __name(Da, "Da"); var Ei = Sd; var nn = class { static { __name(this, "nn"); } #e = {}; constructor() { this.register("uuid", new vi()), this.register("cuid", new Si()), this.register("ulid", new Ai()), this.register("nanoid", new Ri()), this.register("product", new Ci()); } snapshot() { return Object.create(this.#e, { now: { value: new Ti() } }); } register(t, r5) { this.#e[t] = r5; } }; var Ti = class { static { __name(this, "Ti"); } #e; generate() { return this.#e === void 0 && (this.#e = /* @__PURE__ */ new Date()), this.#e.toISOString(); } }; var vi = class { static { __name(this, "vi"); } generate(t) { if (t === 4) return bi(); if (t === 7) return Ei(); throw new Error("Invalid UUID generator arguments"); } }; var Si = class { static { __name(this, "Si"); } generate(t) { if (t === 1) return ia(); if (t === 2) return hi(); throw new Error("Invalid CUID generator arguments"); } }; var Ai = class { static { __name(this, "Ai"); } generate() { return Na(); } }; var Ri = class { static { __name(this, "Ri"); } generate(t) { if (typeof t == "number") return xi(t); if (t === void 0) return xi(); throw new Error("Invalid Nanoid generator arguments"); } }; var Ci = class { static { __name(this, "Ci"); } generate(t, r5) { if (t === void 0 || r5 === void 0) throw new Error("Invalid Product generator arguments"); return Array.isArray(t) && Array.isArray(r5) ? t.flatMap((n3) => r5.map((i5) => [n3, i5])) : Array.isArray(t) ? t.map((n3) => [n3, r5]) : Array.isArray(r5) ? r5.map((n3) => [t, n3]) : [[t, r5]]; } }; function lr(e5, t) { return e5 == null ? e5 : typeof e5 == "string" ? lr(JSON.parse(e5), t) : Array.isArray(e5) ? Cd(e5, t) : Rd(e5, t); } __name(lr, "lr"); function Rd(e5, t) { if (t.pagination) { let { skip: r5, take: n3, cursor: i5 } = t.pagination; if (r5 !== null && r5 > 0 || n3 === 0 || i5 !== null && !St(e5, i5)) return null; } return Fa(e5, t.nested); } __name(Rd, "Rd"); function Fa(e5, t) { for (let [r5, n3] of Object.entries(t)) e5[r5] = lr(e5[r5], n3); return e5; } __name(Fa, "Fa"); function Cd(e5, t) { if (t.distinct !== null) { let r5 = t.linkingFields !== null ? [...t.distinct, ...t.linkingFields] : t.distinct; e5 = Id(e5, r5); } return t.pagination && (e5 = kd(e5, t.pagination, t.linkingFields)), t.reverse && e5.reverse(), Object.keys(t.nested).length === 0 ? e5 : e5.map((r5) => Fa(r5, t.nested)); } __name(Cd, "Cd"); function Id(e5, t) { let r5 = /* @__PURE__ */ new Set(), n3 = []; for (let i5 of e5) { let o3 = tt(i5, t); r5.has(o3) || (r5.add(o3), n3.push(i5)); } return n3; } __name(Id, "Id"); function kd(e5, t, r5) { if (r5 === null) return Ma(e5, t); let n3 = /* @__PURE__ */ new Map(); for (let o3 of e5) { let s2 = tt(o3, r5); n3.has(s2) || n3.set(s2, []), n3.get(s2).push(o3); } let i5 = Array.from(n3.entries()); return i5.sort(([o3], [s2]) => o3 < s2 ? -1 : o3 > s2 ? 1 : 0), i5.flatMap(([, o3]) => Ma(o3, t)); } __name(kd, "kd"); function Ma(e5, { cursor: t, skip: r5, take: n3 }) { let i5 = t !== null ? e5.findIndex((a5) => St(a5, t)) : 0; if (i5 === -1) return []; let o3 = i5 + (r5 ?? 0), s2 = n3 !== null ? o3 + n3 : e5.length; return e5.slice(o3, s2); } __name(Ma, "Ma"); function tt(e5, t, r5) { let n3 = t.map((i5, o3) => r5?.[o3] ? e5[i5] !== null ? r5[o3](e5[i5]) : null : e5[i5]); return JSON.stringify(n3); } __name(tt, "tt"); function Ii(e5) { return typeof e5 == "object" && e5 !== null && e5.prisma__type === "param"; } __name(Ii, "Ii"); function ki(e5) { return typeof e5 == "object" && e5 !== null && e5.prisma__type === "generatorCall"; } __name(ki, "ki"); function Di(e5, t, r5, n3) { let i5 = e5.args.map((o3) => de(o3, t, r5)); switch (e5.type) { case "rawSql": return [Dd(e5.sql, i5, e5.argTypes)]; case "templateSql": return (e5.chunkable ? Fd(e5.fragments, i5, n3) : [i5]).map((s2) => { let a5 = Od(e5.fragments, e5.placeholderFormat, s2, e5.argTypes); if (n3 !== void 0 && a5.args.length > n3) throw new X("The query parameter limit supported by your database is exceeded.", "P2029"); return a5; }); default: V(e5.type, "Invalid query type"); } } __name(Di, "Di"); function de(e5, t, r5) { for (; Md(e5); ) if (Ii(e5)) { let n3 = t[e5.prisma__value.name]; if (n3 === void 0) throw new Error(`Missing value for query variable ${e5.prisma__value.name}`); e5.prisma__value.type === "DateTime" && typeof n3 == "string" ? e5 = new Date(n3) : e5 = n3; } else if (ki(e5)) { let { name: n3, args: i5 } = e5.prisma__value, o3 = r5[n3]; if (!o3) throw new Error(`Encountered an unknown generator '${n3}'`); e5 = o3.generate(...i5.map((s2) => de(s2, t, r5))); } else V(e5, `Unexpected unevaluated value type: ${e5}`); return Array.isArray(e5) && (e5 = e5.map((n3) => de(n3, t, r5))), e5; } __name(de, "de"); function Od(e5, t, r5, n3) { let i5 = "", o3 = { placeholderNumber: 1 }, s2 = [], a5 = []; for (let u of Ni(e5, r5, n3)) { if (i5 += Nd(u, t, o3), u.type === "stringChunk") continue; let m3 = Array.from(_a4(u)), P = m3.length; if (Gr(s2, m3), u.argType.arity === "tuple") { if (P % u.argType.elements.length !== 0) throw new Error(`Malformed query template. Expected the number of parameters to match the tuple arity, but got ${P} parameters for a tuple of arity ${u.argType.elements.length}.`); for (let T2 = 0; T2 < P / u.argType.elements.length; T2++) a5.push(...u.argType.elements); } else for (let T2 = 0; T2 < P; T2++) a5.push(u.argType); } return { sql: i5, args: s2, argTypes: a5 }; } __name(Od, "Od"); function Nd(e5, t, r5) { let n3 = e5.type; switch (n3) { case "parameter": return Oi(t, r5.placeholderNumber++); case "stringChunk": return e5.chunk; case "parameterTuple": return `(${e5.value.length == 0 ? "NULL" : e5.value.map(() => { let o3 = Oi(t, r5.placeholderNumber++); return `${e5.itemPrefix}${o3}${e5.itemSuffix}`; }).join(e5.itemSeparator)})`; case "parameterTupleList": return e5.value.map((i5) => { let o3 = i5.map(() => Oi(t, r5.placeholderNumber++)).join(e5.itemSeparator); return `${e5.itemPrefix}${o3}${e5.itemSuffix}`; }).join(e5.groupSeparator); default: V(n3, "Invalid fragment type"); } } __name(Nd, "Nd"); function Oi(e5, t) { return e5.hasNumbering ? `${e5.prefix}${t}` : e5.prefix; } __name(Oi, "Oi"); function Dd(e5, t, r5) { return { sql: e5, args: t, argTypes: r5 }; } __name(Dd, "Dd"); function Md(e5) { return Ii(e5) || ki(e5); } __name(Md, "Md"); function* Ni(e5, t, r5) { let n3 = 0; for (let i5 of e5) switch (i5.type) { case "parameter": { if (n3 >= t.length) throw new Error(`Malformed query template. Fragments attempt to read over ${t.length} parameters.`); yield { ...i5, value: t[n3], argType: r5?.[n3] }, n3++; break; } case "stringChunk": { yield i5; break; } case "parameterTuple": { if (n3 >= t.length) throw new Error(`Malformed query template. Fragments attempt to read over ${t.length} parameters.`); let o3 = t[n3]; yield { ...i5, value: Array.isArray(o3) ? o3 : [o3], argType: r5?.[n3] }, n3++; break; } case "parameterTupleList": { if (n3 >= t.length) throw new Error(`Malformed query template. Fragments attempt to read over ${t.length} parameters.`); let o3 = t[n3]; if (!Array.isArray(o3)) throw new Error("Malformed query template. Tuple list expected."); if (o3.length === 0) throw new Error("Malformed query template. Tuple list cannot be empty."); for (let s2 of o3) if (!Array.isArray(s2)) throw new Error("Malformed query template. Tuple expected."); yield { ...i5, value: o3, argType: r5?.[n3] }, n3++; break; } } } __name(Ni, "Ni"); function* _a4(e5) { switch (e5.type) { case "parameter": yield e5.value; break; case "stringChunk": break; case "parameterTuple": yield* e5.value; break; case "parameterTupleList": for (let t of e5.value) yield* t; break; } } __name(_a4, "_a"); function Fd(e5, t, r5) { let n3 = 0, i5 = 0; for (let s2 of Ni(e5, t, void 0)) { let a5 = 0; for (let u of _a4(s2)) a5++; i5 = Math.max(i5, a5), n3 += a5; } let o3 = [[]]; for (let s2 of Ni(e5, t, void 0)) switch (s2.type) { case "parameter": { for (let a5 of o3) a5.push(s2.value); break; } case "stringChunk": break; case "parameterTuple": { let a5 = s2.value.length, u = []; if (r5 && o3.length === 1 && a5 === i5 && n3 > r5 && n3 - a5 < r5) { let m3 = r5 - (n3 - a5); u = _d(s2.value, m3); } else u = [s2.value]; o3 = o3.flatMap((m3) => u.map((P) => [...m3, P])); break; } case "parameterTupleList": { let a5 = s2.value.reduce((T2, S) => T2 + S.length, 0), u = [], m3 = [], P = 0; for (let T2 of s2.value) r5 && o3.length === 1 && a5 === i5 && m3.length > 0 && n3 - a5 + P + T2.length > r5 && (u.push(m3), m3 = [], P = 0), m3.push(T2), P += T2.length; m3.length > 0 && u.push(m3), o3 = o3.flatMap((T2) => u.map((S) => [...T2, S])); break; } } return o3; } __name(Fd, "Fd"); function _d(e5, t) { let r5 = []; for (let n3 = 0; n3 < e5.length; n3 += t) r5.push(e5.slice(n3, n3 + t)); return r5; } __name(_d, "_d"); function $a(e5) { return e5.rows.map((t) => t.reduce((r5, n3, i5) => (r5[e5.columnNames[i5]] = n3, r5), {})); } __name($a, "$a"); function La(e5) { return { columns: e5.columnNames, types: e5.columnTypes.map((t) => $d(t)), rows: e5.rows.map((t) => t.map((r5, n3) => ur(r5, e5.columnTypes[n3]))) }; } __name(La, "La"); function ur(e5, t) { if (e5 === null) return null; switch (t) { case k5.Int32: switch (typeof e5) { case "number": return Math.trunc(e5); case "string": return Math.trunc(Number(e5)); default: throw new Error(`Cannot serialize value of type ${typeof e5} as Int32`); } case k5.Int32Array: if (!Array.isArray(e5)) throw new Error(`Cannot serialize value of type ${typeof e5} as Int32Array`); return e5.map((r5) => ur(r5, k5.Int32)); case k5.Int64: switch (typeof e5) { case "number": return BigInt(Math.trunc(e5)); case "string": return e5; default: throw new Error(`Cannot serialize value of type ${typeof e5} as Int64`); } case k5.Int64Array: if (!Array.isArray(e5)) throw new Error(`Cannot serialize value of type ${typeof e5} as Int64Array`); return e5.map((r5) => ur(r5, k5.Int64)); case k5.Json: switch (typeof e5) { case "string": return JSON.parse(e5); default: throw new Error(`Cannot serialize value of type ${typeof e5} as Json`); } case k5.JsonArray: if (!Array.isArray(e5)) throw new Error(`Cannot serialize value of type ${typeof e5} as JsonArray`); return e5.map((r5) => ur(r5, k5.Json)); case k5.Boolean: switch (typeof e5) { case "boolean": return e5; case "string": return e5 === "true" || e5 === "1"; case "number": return e5 === 1; default: throw new Error(`Cannot serialize value of type ${typeof e5} as Boolean`); } case k5.BooleanArray: if (!Array.isArray(e5)) throw new Error(`Cannot serialize value of type ${typeof e5} as BooleanArray`); return e5.map((r5) => ur(r5, k5.Boolean)); default: return e5; } } __name(ur, "ur"); function $d(e5) { switch (e5) { case k5.Int32: return "int"; case k5.Int64: return "bigint"; case k5.Float: return "float"; case k5.Double: return "double"; case k5.Text: return "string"; case k5.Enum: return "enum"; case k5.Bytes: return "bytes"; case k5.Boolean: return "bool"; case k5.Character: return "char"; case k5.Numeric: return "decimal"; case k5.Json: return "json"; case k5.Uuid: return "uuid"; case k5.DateTime: return "datetime"; case k5.Date: return "date"; case k5.Time: return "time"; case k5.Int32Array: return "int-array"; case k5.Int64Array: return "bigint-array"; case k5.FloatArray: return "float-array"; case k5.DoubleArray: return "double-array"; case k5.TextArray: return "string-array"; case k5.EnumArray: return "string-array"; case k5.BytesArray: return "bytes-array"; case k5.BooleanArray: return "bool-array"; case k5.CharacterArray: return "char-array"; case k5.NumericArray: return "decimal-array"; case k5.JsonArray: return "json-array"; case k5.UuidArray: return "uuid-array"; case k5.DateTimeArray: return "datetime-array"; case k5.DateArray: return "date-array"; case k5.TimeArray: return "time-array"; case k5.UnknownNumber: return "unknown"; case k5.Set: return "string"; default: V(e5, `Unexpected column type: ${e5}`); } } __name($d, "$d"); function Mi(e5, t, r5) { if (!t.every((n3) => on(e5, n3))) { let n3 = Ld(e5, r5), i5 = Vd(r5); throw new X(n3, i5, r5.context); } } __name(Mi, "Mi"); function on(e5, t) { switch (t.type) { case "rowCountEq": return Array.isArray(e5) ? e5.length === t.args : e5 === null ? t.args === 0 : t.args === 1; case "rowCountNeq": return Array.isArray(e5) ? e5.length !== t.args : e5 === null ? t.args !== 0 : t.args !== 1; case "affectedRowCountEq": return e5 === t.args; case "never": return false; default: V(t, `Unknown rule type: ${t.type}`); } } __name(on, "on"); function Ld(e5, t) { switch (t.errorIdentifier) { case "RELATION_VIOLATION": return `The change you are trying to make would violate the required relation '${t.context.relation}' between the \`${t.context.modelA}\` and \`${t.context.modelB}\` models.`; case "MISSING_RECORD": return `An operation failed because it depends on one or more records that were required but not found. No record was found for ${t.context.operation}.`; case "MISSING_RELATED_RECORD": { let r5 = t.context.neededFor ? ` (needed to ${t.context.neededFor})` : ""; return `An operation failed because it depends on one or more records that were required but not found. No '${t.context.model}' record${r5} was found for ${t.context.operation} on ${t.context.relationType} relation '${t.context.relation}'.`; } case "INCOMPLETE_CONNECT_INPUT": return `An operation failed because it depends on one or more records that were required but not found. Expected ${t.context.expectedRows} records to be connected, found only ${Array.isArray(e5) ? e5.length : e5}.`; case "INCOMPLETE_CONNECT_OUTPUT": return `The required connected records were not found. Expected ${t.context.expectedRows} records to be connected after connect operation on ${t.context.relationType} relation '${t.context.relation}', found ${Array.isArray(e5) ? e5.length : e5}.`; case "RECORDS_NOT_CONNECTED": return `The records for relation \`${t.context.relation}\` between the \`${t.context.parent}\` and \`${t.context.child}\` models are not connected.`; default: V(t, `Unknown error identifier: ${t}`); } } __name(Ld, "Ld"); function Vd(e5) { switch (e5.errorIdentifier) { case "RELATION_VIOLATION": return "P2014"; case "RECORDS_NOT_CONNECTED": return "P2017"; case "INCOMPLETE_CONNECT_OUTPUT": return "P2018"; case "MISSING_RECORD": case "MISSING_RELATED_RECORD": case "INCOMPLETE_CONNECT_INPUT": return "P2025"; default: V(e5, `Unknown error identifier: ${e5}`); } } __name(Vd, "Vd"); var qd = K2("prisma:client:queryInterpreter"); var dr = class e5 { static { __name(this, "e"); } #e; #t = new nn(); #r; #i; #o; #s; #a; constructor({ onQuery: t, tracingHelper: r5, serializer: n3, rawSerializer: i5, provider: o3, connectionInfo: s2 }) { this.#e = t, this.#r = r5, this.#i = n3, this.#o = i5 ?? n3, this.#s = o3, this.#a = s2; } static forSql(t) { return new e5({ onQuery: t.onQuery, tracingHelper: t.tracingHelper, serializer: $a, rawSerializer: La, provider: t.provider, connectionInfo: t.connectionInfo }); } async run(t, r5) { let n3 = this.#t.snapshot(), i5 = { ...r5, generators: n3 }, o3 = jd(t, (a5) => this.interpretNode(a5, i5))?.catch((a5) => Be(a5)); if (o3) try { return this.#n(await o3, i5.scope, n3).value; } catch (a5) { Be(a5); } let { value: s2 } = await this.interpretNode(t, i5).catch((a5) => Be(a5)); return s2; } async interpretNode(t, r5) { switch (t.type) { case "value": return { value: de(t.args, r5.scope, r5.generators), lastInsertId: t.lastInsertId }; case "seq": { let n3; for (let i5 of t.args) n3 = await this.interpretNode(i5, r5); return n3 ?? { value: void 0 }; } case "let": { let n3 = Object.create(r5.scope); for (let i5 of t.args.bindings) { let { value: o3 } = await this.interpretNode(i5.expr, { ...r5, scope: n3 }); n3[i5.name] = o3; } return this.interpretNode(t.args.expr, { ...r5, scope: n3 }); } case "concat": { let n3 = await Promise.all(t.args.map((i5) => this.interpretNode(i5, r5).then((o3) => o3.value))); return { value: n3.length > 0 ? n3.reduce((i5, o3) => i5.concat(Ct(o3)), []) : [] }; } case "sum": { let n3 = await Promise.all(t.args.map((i5) => this.interpretNode(i5, r5).then((o3) => o3.value))); return { value: n3.length > 0 ? n3.reduce((i5, o3) => xe(i5) + xe(o3)) : 0 }; } case "execute": { let n3 = Di(t.args, r5.scope, r5.generators, this.#p()); return this.#u(n3.length, r5, async (i5) => { let o3 = 0; for (let s2 of n3) { let a5 = ja(s2, i5.sqlCommenter); o3 += await this.#d(a5, i5.queryable, () => i5.queryable.executeRaw(sn(a5)).catch((u) => t.args.type === "rawSql" ? ri(u) : Be(u))); } return { value: o3 }; }); } case "query": { let n3 = Di(t.args, r5.scope, r5.generators, this.#p()); return this.#u(n3.length, r5, async (i5) => { let o3; for (let s2 of n3) { let a5 = ja(s2, i5.sqlCommenter), u = await this.#d(a5, i5.queryable, () => i5.queryable.queryRaw(sn(a5)).catch((m3) => t.args.type === "rawSql" ? ri(m3) : Be(m3))); o3 === void 0 ? o3 = u : (Gr(o3.rows, u.rows), o3.lastInsertId = u.lastInsertId); } return { value: t.args.type === "rawSql" ? this.#o(o3) : this.#i(o3), lastInsertId: o3?.lastInsertId }; }); } case "reverse": { let { value: n3, lastInsertId: i5 } = await this.interpretNode(t.args, r5); return { value: Array.isArray(n3) ? n3.reverse() : n3, lastInsertId: i5 }; } case "unique": { let { value: n3, lastInsertId: i5 } = await this.interpretNode(t.args, r5); if (!Array.isArray(n3)) return { value: n3, lastInsertId: i5 }; if (n3.length > 1) throw new Error(`Expected zero or one element, got ${n3.length}`); return { value: n3[0] ?? null, lastInsertId: i5 }; } case "required": { let { value: n3, lastInsertId: i5 } = await this.interpretNode(t.args, r5); if (Fi(n3)) throw new Error("Required value is empty"); return { value: n3, lastInsertId: i5 }; } case "mapField": { let { value: n3, lastInsertId: i5 } = await this.interpretNode(t.args.records, r5); return { value: _i(n3, t.args.field), lastInsertId: i5 }; } case "join": { let { value: n3, lastInsertId: i5 } = await this.interpretNode(t.args.parent, r5); if (n3 === null) return { value: null, lastInsertId: i5 }; let o3 = await Promise.all(t.args.children.map(async (s2) => ({ joinExpr: s2, childRecords: (await this.interpretNode(s2.child, r5)).value }))); return { value: Va(n3, o3, t.args.canAssumeStrictEquality), lastInsertId: i5 }; } case "transaction": return this.#l(r5, (n3) => this.interpretNode(t.args, n3)); case "dataMap": { let { value: n3, lastInsertId: i5 } = await this.interpretNode(t.args.expr, r5); return { value: ii(n3, t.args.structure, t.args.enums), lastInsertId: i5 }; } case "validate": { let { value: n3, lastInsertId: i5 } = await this.interpretNode(t.args.expr, r5); return Mi(n3, t.args.rules, t.args), { value: n3, lastInsertId: i5 }; } case "if": { let { value: n3 } = await this.interpretNode(t.args.value, r5); return on(n3, t.args.rule) ? await this.interpretNode(t.args.then, r5) : await this.interpretNode(t.args.else, r5); } case "diff": { let { value: n3 } = await this.interpretNode(t.args.from, r5), { value: i5 } = await this.interpretNode(t.args.to, r5), o3 = /* @__PURE__ */ __name((a5) => a5 !== null ? tt(rt(a5), t.args.fields) : null, "o"), s2 = new Set(Ct(i5).map(o3)); return { value: Ct(n3).filter((a5) => !s2.has(o3(a5))) }; } case "process": { let { value: n3, lastInsertId: i5 } = await this.interpretNode(t.args.expr, r5), o3 = sn(t.args.operations); return $i(o3, r5.scope, r5.generators), { value: lr(n3, o3), lastInsertId: i5 }; } case "initializeRecord": { let { lastInsertId: n3 } = await this.interpretNode(t.args.expr, r5), i5 = {}; for (let [o3, s2] of Object.entries(t.args.fields)) i5[o3] = qa(s2, n3, r5.scope, r5.generators); return { value: i5, lastInsertId: n3 }; } case "mapRecord": { let { value: n3, lastInsertId: i5 } = await this.interpretNode(t.args.expr, r5), o3 = n3 === null ? {} : rt(n3); for (let [s2, a5] of Object.entries(t.args.fields)) o3[s2] = Ua(a5, o3[s2], r5.scope, r5.generators); return { value: o3, lastInsertId: i5 }; } default: return this.#n(t, r5.scope, r5.generators); } } #n(t, r5, n3) { switch (t.type) { case "value": return { value: de(t.args, r5, n3), lastInsertId: t.lastInsertId }; case "seq": { let i5; for (let o3 of t.args) i5 = this.#n(o3, r5, n3); return i5 ?? { value: void 0 }; } case "get": return { value: r5[t.args.name] }; case "let": { let i5 = Object.create(r5); for (let o3 of t.args.bindings) { let { value: s2 } = this.#n(o3.expr, i5, n3); i5[o3.name] = s2; } return this.#n(t.args.expr, i5, n3); } case "getFirstNonEmpty": { for (let i5 of t.args.names) { let o3 = r5[i5]; if (!Fi(o3)) return { value: o3 }; } return { value: [] }; } case "concat": { let i5 = t.args.map((o3) => this.#n(o3, r5, n3).value); return { value: i5.length > 0 ? i5.reduce((o3, s2) => o3.concat(Ct(s2)), []) : [] }; } case "sum": { let i5 = t.args.map((o3) => this.#n(o3, r5, n3).value); return { value: i5.length > 0 ? i5.reduce((o3, s2) => xe(o3) + xe(s2)) : 0 }; } case "reverse": { let { value: i5, lastInsertId: o3 } = this.#n(t.args, r5, n3); return { value: Array.isArray(i5) ? i5.reverse() : i5, lastInsertId: o3 }; } case "unique": { let { value: i5, lastInsertId: o3 } = this.#n(t.args, r5, n3); if (!Array.isArray(i5)) return { value: i5, lastInsertId: o3 }; if (i5.length > 1) throw new Error(`Expected zero or one element, got ${i5.length}`); return { value: i5[0] ?? null, lastInsertId: o3 }; } case "required": { let { value: i5, lastInsertId: o3 } = this.#n(t.args, r5, n3); if (Fi(i5)) throw new Error("Required value is empty"); return { value: i5, lastInsertId: o3 }; } case "mapField": { let { value: i5, lastInsertId: o3 } = this.#n(t.args.records, r5, n3); return { value: _i(i5, t.args.field), lastInsertId: o3 }; } case "join": { let { value: i5, lastInsertId: o3 } = this.#n(t.args.parent, r5, n3); if (i5 === null) return { value: null, lastInsertId: o3 }; let s2 = t.args.children.map((a5) => ({ joinExpr: a5, childRecords: this.#n(a5.child, r5, n3).value })); return { value: Va(i5, s2, t.args.canAssumeStrictEquality), lastInsertId: o3 }; } case "dataMap": { let { value: i5, lastInsertId: o3 } = this.#n(t.args.expr, r5, n3); return { value: ii(i5, t.args.structure, t.args.enums), lastInsertId: o3 }; } case "validate": { let { value: i5, lastInsertId: o3 } = this.#n(t.args.expr, r5, n3); return Mi(i5, t.args.rules, t.args), { value: i5, lastInsertId: o3 }; } case "if": { let { value: i5 } = this.#n(t.args.value, r5, n3); return on(i5, t.args.rule) ? this.#n(t.args.then, r5, n3) : this.#n(t.args.else, r5, n3); } case "unit": return { value: void 0 }; case "diff": { let { value: i5 } = this.#n(t.args.from, r5, n3), { value: o3 } = this.#n(t.args.to, r5, n3), s2 = /* @__PURE__ */ __name((u) => u !== null ? tt(rt(u), t.args.fields) : null, "s"), a5 = new Set(Ct(o3).map(s2)); return { value: Ct(i5).filter((u) => !a5.has(s2(u))) }; } case "process": { let { value: i5, lastInsertId: o3 } = this.#n(t.args.expr, r5, n3), s2 = sn(t.args.operations); return $i(s2, r5, n3), { value: lr(i5, s2), lastInsertId: o3 }; } case "initializeRecord": { let { lastInsertId: i5 } = this.#n(t.args.expr, r5, n3), o3 = {}; for (let [s2, a5] of Object.entries(t.args.fields)) o3[s2] = qa(a5, i5, r5, n3); return { value: o3, lastInsertId: i5 }; } case "mapRecord": { let { value: i5, lastInsertId: o3 } = this.#n(t.args.expr, r5, n3), s2 = i5 === null ? {} : rt(i5); for (let [a5, u] of Object.entries(t.args.fields)) s2[a5] = Ua(u, s2[a5], r5, n3); return { value: s2, lastInsertId: o3 }; } default: V(t, `Unexpected node type: ${t.type}`); } } #u(t, r5, n3) { return t <= 1 ? n3(r5) : this.#l(r5, n3); } async #l(t, r5) { if (!t.transactionManager.enabled) return r5(t); let n3 = t.transactionManager.manager, i5 = await n3.startInternalTransaction(), o3 = await n3.getTransaction(i5, "query"); try { let s2 = await r5({ ...t, queryable: o3, transactionManager: { enabled: false } }); return await n3.commitTransaction(i5.id), s2; } catch (s2) { try { await n3.rollbackTransaction(i5.id); } catch (a5) { qd("failed to roll back an internal transaction", a5); } throw s2; } } #p() { return this.#a?.maxBindValues !== void 0 ? this.#a.maxBindValues : this.#c(); } #c() { if (this.#s !== void 0) switch (this.#s) { case "cockroachdb": case "postgres": case "postgresql": case "prisma+postgres": return 32766; case "mysql": return 65535; case "sqlite": return 999; case "sqlserver": return 2098; case "mongodb": return; default: V(this.#s, `Unexpected provider: ${this.#s}`); } } #d(t, r5, n3) { return Wr({ query: t, execute: n3, provider: this.#s ?? r5.provider, tracingHelper: this.#r, onQuery: this.#e }); } }; function Fi(e5) { return Array.isArray(e5) ? e5.length === 0 : e5 == null; } __name(Fi, "Fi"); function Ct(e5) { return Array.isArray(e5) ? e5 : [e5]; } __name(Ct, "Ct"); function xe(e5) { if (typeof e5 == "number") return e5; if (typeof e5 == "string") return Number(e5); throw new Error(`Expected number, got ${typeof e5}`); } __name(xe, "xe"); function rt(e5) { if (typeof e5 == "object" && e5 !== null) return e5; throw new Error(`Expected object, got ${typeof e5}`); } __name(rt, "rt"); function _i(e5, t) { return Array.isArray(e5) ? e5.map((r5) => _i(r5, t)) : typeof e5 == "object" && e5 !== null ? e5[t] ?? null : e5; } __name(_i, "_i"); function Va(e5, t, r5) { for (let { joinExpr: n3, childRecords: i5 } of t) { let o3 = n3.on.map(([P]) => P), s2 = n3.on.map(([, P]) => P), a5 = {}, u = Array.isArray(e5) ? e5 : [e5]; for (let P of u) { let T2 = rt(P), S = tt(T2, o3); a5[S] || (a5[S] = []), a5[S].push(T2), n3.isRelationUnique ? T2[n3.parentField] = null : T2[n3.parentField] = []; } let m3 = r5 ? void 0 : Ud(u, o3); for (let P of Array.isArray(i5) ? i5 : [i5]) { if (P === null) continue; let T2 = tt(rt(P), s2, m3); for (let S of a5[T2] ?? []) n3.isRelationUnique ? S[n3.parentField] = P : S[n3.parentField].push(P); } } return e5; } __name(Va, "Va"); function Ud(e5, t) { function r5(o3) { switch (o3) { case "number": return Number; case "string": return String; case "boolean": return Boolean; case "bigint": return BigInt; default: return; } } __name(r5, "r"); let n3 = Array.from({ length: t.length }), i5 = 0; for (let o3 of e5) { let s2 = rt(o3); for (let [a5, u] of t.entries()) if (s2[u] !== null && n3[a5] === void 0) { let m3 = r5(typeof s2[u]); m3 !== void 0 && (n3[a5] = m3), i5++; } if (i5 === t.length) break; } return n3; } __name(Ud, "Ud"); function qa(e5, t, r5, n3) { switch (e5.type) { case "value": return de(e5.value, r5, n3); case "lastInsertId": return t; default: V(e5, `Unexpected field initializer type: ${e5.type}`); } } __name(qa, "qa"); function Ua(e5, t, r5, n3) { switch (e5.type) { case "set": return de(e5.value, r5, n3); case "add": return xe(t) + xe(de(e5.value, r5, n3)); case "subtract": return xe(t) - xe(de(e5.value, r5, n3)); case "multiply": return xe(t) * xe(de(e5.value, r5, n3)); case "divide": { let i5 = xe(t), o3 = xe(de(e5.value, r5, n3)); return o3 === 0 ? null : i5 / o3; } default: V(e5, `Unexpected field operation type: ${e5.type}`); } } __name(Ua, "Ua"); function jd(e5, t) { let r5 = pr(e5); if (r5) return t(r5).then((n3) => { let i5 = { type: "value", args: n3.value, lastInsertId: n3.lastInsertId }, o3 = cr(e5, r5, i5); if (!o3) throw new Error("Could not substitute the evaluated impure node into the query plan"); return o3; }); } __name(jd, "jd"); function cr(e5, t, r5) { if (e5 === t) return r5; switch (e5.type) { case "seq": case "sum": case "concat": { for (let n3 = 0; n3 < e5.args.length; n3++) { let i5 = cr(e5.args[n3], t, r5); if (i5) return { ...e5, args: e5.args.map((o3, s2) => s2 === n3 ? i5 : o3) }; } return; } case "dataMap": case "validate": case "initializeRecord": case "mapRecord": case "process": { let n3 = cr(e5.args.expr, t, r5); return n3 && { ...e5, args: { ...e5.args, expr: n3 } }; } case "mapField": { let n3 = cr(e5.args.records, t, r5); return n3 && { ...e5, args: { ...e5.args, records: n3 } }; } case "reverse": case "unique": case "required": { let n3 = cr(e5.args, t, r5); return n3 && { ...e5, args: n3 }; } default: return; } } __name(cr, "cr"); function pr(e5) { switch (e5.type) { case "query": case "execute": return e5; case "seq": case "sum": case "concat": { let t; for (let r5 of e5.args) { let n3 = pr(r5); if (n3 === null) return null; if (n3) { if (t) return null; t = n3; } } return t; } case "dataMap": case "validate": case "initializeRecord": case "mapRecord": case "process": return pr(e5.args.expr); case "mapField": return pr(e5.args.records); case "reverse": case "unique": case "required": return pr(e5.args); case "let": case "join": case "diff": case "if": case "transaction": return null; case "value": case "get": case "getFirstNonEmpty": case "unit": return; default: V(e5, `Unexpected node type: ${e5.type}`); } } __name(pr, "pr"); function ja(e5, t) { if (!t || t.plugins.length === 0) return e5; let r5 = Ys(t.plugins, { query: t.queryInfo, sql: e5.sql }); return r5 ? { ...e5, sql: ea(e5.sql, r5) } : e5; } __name(ja, "ja"); function $i(e5, t, r5) { let n3 = e5.pagination?.cursor; if (n3) for (let [i5, o3] of Object.entries(n3)) n3[i5] = de(o3, t, r5); for (let i5 of Object.values(e5.nested)) $i(i5, t, r5); } __name($i, "$i"); function sn(e5) { return ge(e5); } __name(sn, "sn"); function Ba(e5) { return new Li(e5).deserialize(); } __name(Ba, "Ba"); function Bd(e5) { return Buffer.from(e5, "base64url"); } __name(Bd, "Bd"); var Li = class { static { __name(this, "Li"); } #e; #t; #r = 0; constructor(t) { this.#e = t; let r5 = Bd(t.graph); this.#t = new DataView(r5.buffer, r5.byteOffset, r5.byteLength); } deserialize() { let { inputNodeCount: t, outputNodeCount: r5, rootCount: n3 } = this.#n(), i5 = this.#u(t), o3 = this.#l(r5), s2 = this.#p(n3); return { strings: this.#e.strings, inputNodes: i5, outputNodes: o3, roots: s2 }; } #i() { let t = 0, r5 = 0, n3; do n3 = this.#t.getUint8(this.#r++), t |= (n3 & 127) << r5, r5 += 7; while (n3 >= 128); return t; } #o() { let t = this.#i(); return t === 0 ? void 0 : t - 1; } #s() { let t = this.#t.getUint8(this.#r); return this.#r += 1, t; } #a() { let t = this.#t.getUint16(this.#r, true); return this.#r += 2, t; } #n() { let t = this.#i(), r5 = this.#i(), n3 = this.#i(); return { inputNodeCount: t, outputNodeCount: r5, rootCount: n3 }; } #u(t) { let r5 = []; for (let n3 = 0; n3 < t; n3++) { let i5 = this.#i(), o3 = {}; for (let s2 = 0; s2 < i5; s2++) { let a5 = this.#i(), u = this.#a(), m3 = this.#o(), P = this.#o(), S = { flags: this.#s() }; u !== 0 && (S.scalarMask = u), m3 !== void 0 && (S.childNodeId = m3), P !== void 0 && (S.enumNameIndex = P), o3[a5] = S; } r5.push({ edges: o3 }); } return r5; } #l(t) { let r5 = []; for (let n3 = 0; n3 < t; n3++) { let i5 = this.#i(), o3 = {}; for (let s2 = 0; s2 < i5; s2++) { let a5 = this.#i(), u = this.#o(), m3 = this.#o(), P = {}; u !== void 0 && (P.argsNodeId = u), m3 !== void 0 && (P.outputNodeId = m3), o3[a5] = P; } r5.push({ edges: o3 }); } return r5; } #p(t) { let r5 = {}; for (let n3 = 0; n3 < t; n3++) { let i5 = this.#i(), o3 = this.#o(), s2 = this.#o(), a5 = this.#e.strings[i5], u = {}; o3 !== void 0 && (u.argsNodeId = o3), s2 !== void 0 && (u.outputNodeId = s2), r5[a5] = u; } return r5; } }; var mr = class e5 { static { __name(this, "e"); } #e; #t; #r; constructor(t, r5) { this.#e = t, this.#r = r5, this.#t = /* @__PURE__ */ new Map(); for (let n3 = 0; n3 < t.strings.length; n3++) this.#t.set(t.strings[n3], n3); } static deserialize(t, r5) { let n3 = Ba(t); return new e5(n3, r5); } static fromData(t, r5) { return new e5(t, r5); } root(t) { let r5 = this.#e.roots[t]; if (r5) return { argsNodeId: r5.argsNodeId, outputNodeId: r5.outputNodeId }; } inputNode(t) { if (!(t === void 0 || t < 0 || t >= this.#e.inputNodes.length)) return { id: t }; } outputNode(t) { if (!(t === void 0 || t < 0 || t >= this.#e.outputNodes.length)) return { id: t }; } inputEdge(t, r5) { if (!t) return; let n3 = this.#e.inputNodes[t.id]; if (!n3) return; let i5 = this.#t.get(r5); if (i5 === void 0) return; let o3 = n3.edges[i5]; if (o3) return { flags: o3.flags, childNodeId: o3.childNodeId, scalarMask: o3.scalarMask ?? 0, enumNameIndex: o3.enumNameIndex }; } outputEdge(t, r5) { if (!t) return; let n3 = this.#e.outputNodes[t.id]; if (!n3) return; let i5 = this.#t.get(r5); if (i5 === void 0) return; let o3 = n3.edges[i5]; if (o3) return { argsNodeId: o3.argsNodeId, outputNodeId: o3.outputNodeId }; } enumValues(t) { if (t?.enumNameIndex === void 0) return; let r5 = this.#e.strings[t.enumNameIndex]; if (r5) return this.#r(r5); } getString(t) { return this.#e.strings[t]; } }; var Ne = { ParamScalar: 1, ParamEnum: 2, ParamListScalar: 4, ParamListEnum: 8, ListObject: 16, Object: 32 }; var re = { String: 1, Int: 2, BigInt: 4, Float: 8, Decimal: 16, Boolean: 32, DateTime: 64, Json: 128, Bytes: 256 }; function De(e5, t) { return (e5.flags & t) !== 0; } __name(De, "De"); function Ge(e5) { return e5.scalarMask; } __name(Ge, "Ge"); var Qd = /* @__PURE__ */ new Set(["DateTime", "Decimal", "BigInt", "Bytes", "Json", "Raw"]); function an(e5) { if (e5 == null) return { kind: "null" }; if (typeof e5 == "string") return { kind: "primitive", value: e5 }; if (typeof e5 == "number") return { kind: "primitive", value: e5 }; if (typeof e5 == "boolean") return { kind: "primitive", value: e5 }; if (Array.isArray(e5)) return { kind: "array", items: e5 }; if (typeof e5 == "object") { let t = e5; if ("$type" in t && typeof t.$type == "string") { let r5 = t.$type; return Qd.has(r5) ? { kind: "taggedScalar", tag: r5, value: t.value } : { kind: "structural", value: t.value }; } return { kind: "object", entries: t }; } return { kind: "structural", value: e5 }; } __name(an, "an"); function Qa(e5) { return typeof e5 == "object" && e5 !== null && !Array.isArray(e5) && !("$type" in e5); } __name(Qa, "Qa"); function Ja(e5) { return typeof e5 == "object" && e5 !== null && "$type" in e5 && typeof e5.$type == "string"; } __name(Ja, "Ja"); function Vi(e5, t) { let r5 = new ln(t), n3 = e5.modelName ? `${e5.modelName}.${e5.action}` : e5.action, i5 = t.root(n3); return { parameterizedQuery: { ...e5, query: r5.parameterizeFieldSelection(e5.query, i5?.argsNodeId, i5?.outputNodeId) }, placeholderValues: r5.getPlaceholderValues() }; } __name(Vi, "Vi"); function qi(e5, t) { let r5 = new ln(t), n3 = []; for (let i5 = 0; i5 < e5.batch.length; i5++) { let o3 = e5.batch[i5], s2 = o3.modelName ? `${o3.modelName}.${o3.action}` : o3.action, a5 = t.root(s2); n3.push({ ...o3, query: r5.parameterizeFieldSelection(o3.query, a5?.argsNodeId, a5?.outputNodeId) }); } return { parameterizedBatch: { ...e5, batch: n3 }, placeholderValues: r5.getPlaceholderValues() }; } __name(qi, "qi"); var ln = class { static { __name(this, "ln"); } #e; #t = /* @__PURE__ */ new Map(); #r = /* @__PURE__ */ new Map(); #i = 1; constructor(t) { this.#e = t; } getPlaceholderValues() { return Object.fromEntries(this.#t); } #o(t, r5) { let n3 = Gd(t, r5), i5 = this.#r.get(n3); if (i5 !== void 0) return Ga(i5, r5); let o3 = `%${this.#i++}`; return this.#r.set(n3, o3), this.#t.set(o3, t), Ga(o3, r5); } parameterizeFieldSelection(t, r5, n3) { let i5 = this.#e.inputNode(r5), o3 = this.#e.outputNode(n3), s2 = { ...t }; return t.arguments && t.arguments.$type !== "Raw" && (s2.arguments = this.#s(t.arguments, i5)), t.selection && (s2.selection = this.#c(t.selection, o3)), s2; } #s(t, r5) { if (!r5) return t; let n3 = {}; for (let [i5, o3] of Object.entries(t)) { let s2 = this.#e.inputEdge(r5, i5); s2 ? n3[i5] = this.#a(o3, s2) : n3[i5] = o3; } return n3; } #a(t, r5) { let n3 = an(t); switch (n3.kind) { case "null": return t; case "structural": return t; case "primitive": return this.#n(n3.value, r5); case "taggedScalar": return this.#u(t, n3.tag, r5); case "array": return this.#l(n3.items, t, r5); case "object": return this.#p(n3.entries, r5); default: throw new Error(`Unknown value kind ${n3.kind}`); } } #n(t, r5) { if (De(r5, Ne.ParamEnum) && r5.enumNameIndex !== void 0 && typeof t == "string") { let o3 = this.#e.enumValues(r5); if (o3 && Object.hasOwn(o3, t)) { let s2 = { type: "Enum" }; return this.#o(o3[t], s2); } } if (!De(r5, Ne.ParamScalar)) return t; let n3 = Ge(r5); if (n3 === 0) return t; let i5 = Ui(t); return Ha(i5, n3) ? (n3 & re.Json && (t = JSON.stringify(t)), this.#o(t, i5)) : t; } #u(t, r5, n3) { if (!De(n3, Ne.ParamScalar)) return t; let i5 = Ge(n3); if (i5 === 0 || !Ka(r5, i5)) return t; let o3 = Wa(t.$type), s2 = Za(t); return this.#o(s2, o3); } #l(t, r5, n3) { if (De(n3, Ne.ParamScalar) && Ge(n3) & re.Json) { let i5 = Se(Ae(t)), o3 = { type: "Json" }; return this.#o(i5, o3); } if (De(n3, Ne.ParamEnum)) { let i5 = this.#e.enumValues(n3); if (i5 && t.every((o3) => typeof o3 == "string" && Object.hasOwn(i5, o3))) { let o3 = { type: "List", inner: { type: "Enum" } }; return this.#o(t, o3); } } if (De(n3, Ne.ParamListScalar) && t.every((o3) => Zd(o3, n3)) && t.length > 0) { let o3 = t.map((u) => Xd(u)), a5 = { type: "List", inner: Wd(t) }; return this.#o(o3, a5); } if (De(n3, Ne.ListObject)) { let i5 = this.#e.inputNode(n3.childNodeId); if (i5) return t.map((o3) => Qa(o3) ? this.#s(o3, i5) : o3); } return r5; } #p(t, r5) { if (De(r5, Ne.Object)) { let i5 = this.#e.inputNode(r5.childNodeId); if (i5) return this.#s(t, i5); } if (Ge(r5) & re.Json) { let i5 = Se(Ae(t)), o3 = { type: "Json" }; return this.#o(i5, o3); } return t; } #c(t, r5) { if (!t || !r5) return t; let n3 = {}; for (let [i5, o3] of Object.entries(t)) { if (i5 === "$scalars" || i5 === "$composites" || typeof o3 == "boolean") { n3[i5] = o3; continue; } let s2 = this.#e.outputEdge(r5, i5); if (s2) { let a5 = o3, u = this.#e.inputNode(s2.argsNodeId), m3 = this.#e.outputNode(s2.outputNodeId), P = { selection: a5.selection ? this.#c(a5.selection, m3) : {} }; a5.arguments && (P.arguments = this.#s(a5.arguments, u)), n3[i5] = P; } else n3[i5] = o3; } return n3; } }; function Ga(e5, t) { return { $type: "Param", value: { name: e5, ...t } }; } __name(Ga, "Ga"); function za(e5) { return e5.type === "List" ? `List<${za(e5.inner)}>` : e5.type; } __name(za, "za"); function Jd(e5) { return ArrayBuffer.isView(e5) ? Buffer.from(e5.buffer, e5.byteOffset, e5.byteLength).toString("base64") : JSON.stringify(e5); } __name(Jd, "Jd"); function Gd(e5, t) { let r5 = za(t), n3 = Jd(e5); return `${r5}:${n3}`; } __name(Gd, "Gd"); var zd = 2 ** 31 - 1; var Hd = -(2 ** 31); function Ui(e5) { switch (typeof e5) { case "boolean": return { type: "Boolean" }; case "number": return Number.isInteger(e5) ? Hd <= e5 && e5 <= zd ? { type: "Int" } : { type: "BigInt" } : { type: "Float" }; case "string": return { type: "String" }; default: throw new Error("unreachable"); } } __name(Ui, "Ui"); function Ha({ type: e5 }, t) { switch (e5) { case "Boolean": return (t & re.Boolean) !== 0; case "Int": return (t & (re.Int | re.BigInt | re.Float)) !== 0; case "BigInt": return (t & re.BigInt) !== 0; case "Float": return (t & re.Float) !== 0; case "String": return (t & re.String) !== 0; default: return false; } } __name(Ha, "Ha"); function Wa(e5) { switch (e5) { case "BigInt": case "Bytes": case "DateTime": case "Json": return { type: e5 }; case "Decimal": return { type: "Float" }; default: return; } } __name(Wa, "Wa"); function Wd(e5) { let t = { type: "Any" }; for (let r5 of e5) { let n3 = an(r5), i5; switch (n3.kind) { case "primitive": i5 = Ui(n3.value); break; case "taggedScalar": i5 = Wa(n3.tag) ?? { type: "Any" }; break; default: return { type: "Any" }; } t = Kd(t, i5); } return t; } __name(Wd, "Wd"); function Kd(e5, t) { if (e5.type === "Any") return t; if (t.type === "Any" || e5.type === t.type) return e5; let r5 = { Int: 0, BigInt: 1, Float: 2 }, n3 = r5[e5.type], i5 = r5[t.type]; return n3 !== void 0 && i5 !== void 0 ? n3 >= i5 ? e5 : t : { type: "Any" }; } __name(Kd, "Kd"); function Ka(e5, t) { switch (e5) { case "DateTime": return (t & re.DateTime) !== 0; case "Decimal": return (t & re.Decimal) !== 0; case "BigInt": return (t & re.BigInt) !== 0; case "Bytes": return (t & re.Bytes) !== 0; case "Json": return (t & re.Json) !== 0; default: return false; } } __name(Ka, "Ka"); function Zd(e5, t) { let r5 = an(e5); switch (r5.kind) { case "structural": return false; case "null": return false; case "primitive": { let n3 = Ui(r5.value), i5 = Ge(t); return i5 !== 0 && Ha(n3, i5); } case "taggedScalar": { let n3 = Ge(t); return n3 !== 0 && Ka(r5.tag, n3); } default: return false; } } __name(Zd, "Zd"); function Xd(e5) { return Ja(e5) ? Za(e5) : e5; } __name(Xd, "Xd"); function Za(e5) { return e5.value; } __name(Za, "Za"); async function Yd() { return globalThis.crypto ?? await import("node:crypto"); } __name(Yd, "Yd"); async function Xa() { return (await Yd()).randomUUID(); } __name(Xa, "Xa"); async function Ya(e5, t) { return new Promise((r5) => { e5.addEventListener(t, r5, { once: true }); }); } __name(Ya, "Ya"); var ue = class extends X { static { __name(this, "ue"); } name = "TransactionManagerError"; constructor(t, r5) { super("Transaction API error: " + t, "P2028", r5); } }; var nt = class extends ue { static { __name(this, "nt"); } constructor() { super("Transaction not found. Transaction ID is invalid, refers to an old closed transaction Prisma doesn't have information about anymore, or was obtained before disconnecting."); } }; var un = class extends ue { static { __name(this, "un"); } constructor(t) { super(`Transaction already closed: A ${t} cannot be executed on a committed transaction.`); } }; var cn = class extends ue { static { __name(this, "cn"); } constructor(t) { super(`Transaction already closed: A ${t} cannot be executed on a transaction that was rolled back.`); } }; var fr = class extends ue { static { __name(this, "fr"); } constructor() { super("Unable to start a transaction in the given time."); } }; var pn = class extends ue { static { __name(this, "pn"); } constructor(t, { timeout: r5, timeTaken: n3 }) { super(`A ${t} cannot be executed on an expired transaction. The timeout for this transaction was ${r5} ms, however ${n3} ms passed since the start of the transaction. Consider increasing the interactive transaction timeout or doing less work in the transaction.`, { operation: t, timeout: r5, timeTaken: n3 }); } }; var Me = class extends ue { static { __name(this, "Me"); } constructor(t) { super(`Internal Consistency Error: ${t}`); } }; var dn = class extends ue { static { __name(this, "dn"); } constructor(t) { super(`Invalid isolation level: ${t}`, { isolationLevel: t }); } }; var em = 100; var tm = 2e3; function rm() { let e5, t = new Promise((r5) => { e5 = r5; }); return { abortController: new AbortController(), settled: t, markSettled: e5 }; } __name(rm, "rm"); var it = K2("prisma:client:transactionManager"); var nm = /* @__PURE__ */ __name(() => ({ sql: "COMMIT", args: [], argTypes: [] }), "nm"); var el = /* @__PURE__ */ __name(() => ({ sql: "ROLLBACK", args: [], argTypes: [] }), "el"); var im = /* @__PURE__ */ __name(() => ({ sql: '-- Implicit "COMMIT" query via underlying driver', args: [], argTypes: [] }), "im"); var om = /* @__PURE__ */ __name(() => ({ sql: '-- Implicit "ROLLBACK" query via underlying driver', args: [], argTypes: [] }), "om"); var gr = class { static { __name(this, "gr"); } transactions = /* @__PURE__ */ new Map(); closedTransactions = []; #e = /* @__PURE__ */ new Set(); driverAdapter; transactionOptions; tracingHelper; #t; #r; constructor({ driverAdapter: t, transactionOptions: r5, tracingHelper: n3, onQuery: i5, provider: o3 }) { this.driverAdapter = t, this.transactionOptions = r5, this.tracingHelper = n3, this.#t = i5, this.#r = o3; } async startInternalTransaction(t) { let r5 = t !== void 0 ? this.#y(t) : {}; return await this.tracingHelper.runInChildSpan("start_transaction", () => this.#i(r5)); } async startTransaction(t) { let r5 = t !== void 0 ? this.#y(t) : this.transactionOptions; return await this.tracingHelper.runInChildSpan("start_transaction", () => this.#i(r5)); } async #i(t) { if (t.newTxId) return await this.#d(t.newTxId, "start", async (o3) => { if (o3.status !== "running") throw new Me(`Transaction in invalid state ${o3.status} when starting a nested transaction.`); if (!o3.transaction) throw new Me("Transaction missing underlying driver transaction when starting a nested transaction."); o3.depth += 1; let s2 = this.#a(o3); o3.savepoints.push(s2); try { await this.#n(o3.transaction)(s2); } catch (a5) { throw o3.depth -= 1, o3.savepoints.pop(), a5; } return { id: o3.id }; }); let r5 = rm(), { abortController: n3 } = r5; this.#e.add(r5); let i5; try { let o3 = { id: await Xa(), status: "waiting", timer: void 0, timeout: t.timeout, startedAt: Date.now(), transaction: void 0, operationQueue: Promise.resolve(), depth: 1, savepoints: [], savepointCounter: 0 }; if (n3.signal.aborted) throw new fr(); let s2 = tl(() => n3.abort(), t.maxWait); s2?.unref?.(); let a5 = this.driverAdapter.startTransaction(t.isolationLevel).catch(Be); switch (o3.transaction = await Promise.race([a5.finally(() => clearTimeout(s2)), Ya(n3.signal, "abort").then(() => { })]), this.transactions.set(o3.id, o3), o3.status) { case "waiting": if (n3.signal.aborted) throw o3.transaction = void 0, i5 = this.#o(a5), await this.#f(o3, "timed_out"), new fr(); return o3.status = "running", o3.startedAt = Date.now(), o3.timer = this.#c(o3.id, t.timeout), { id: o3.id }; case "timed_out": case "running": case "committed": case "rolled_back": throw new Me(`Transaction in invalid state ${o3.status} although it just finished startup.`); default: return V(o3.status, "Unknown transaction status."); } } finally { this.#e.delete(r5), i5 ? i5.finally(r5.markSettled) : r5.markSettled(); } } async #o(t) { try { let r5 = await t; if (r5.options.usePhantomQuery) await r5.rollback(); else try { await r5.executeRaw(el()); } finally { await r5.rollback(); } } catch (r5) { it("error in discarded transaction:", r5); } } async commitTransaction(t) { return await this.tracingHelper.runInChildSpan("commit_transaction", async () => { await this.#d(t, "commit", async (r5) => { if (r5.depth > 1) { if (!r5.transaction) throw new nt(); let n3 = r5.savepoints.at(-1); if (!n3) throw new Me(`Missing savepoint for nested commit. Depth: ${r5.depth}, transactionId: ${r5.id}`); try { await this.#l(r5.transaction, n3); } finally { r5.savepoints.pop(), r5.depth -= 1; } return; } await this.#f(r5, "committed"); }); }); } async rollbackTransaction(t) { return await this.tracingHelper.runInChildSpan("rollback_transaction", async () => { await this.#d(t, "rollback", async (r5) => { if (r5.depth > 1) { if (!r5.transaction) throw new nt(); let n3 = r5.savepoints.at(-1); if (!n3) throw new Me(`Missing savepoint for nested rollback. Depth: ${r5.depth}, transactionId: ${r5.id}`); try { await this.#u(r5.transaction)(n3), await this.#l(r5.transaction, n3); } finally { r5.savepoints.pop(), r5.depth -= 1; } return; } await this.#f(r5, "rolled_back"); }); }); } async getTransaction(t, r5) { let n3 = this.#s(t.id, r5); if (n3.status === "closing" && (await n3.closing, n3 = this.#s(t.id, r5)), !n3.transaction) throw new nt(); return n3.transaction; } #s(t, r5) { let n3 = this.transactions.get(t); if (!n3) { let i5 = this.closedTransactions.find((o3) => o3.id === t); if (i5) switch (it("Transaction already closed.", { transactionId: t, status: i5.status }), i5.status) { case "closing": case "waiting": case "running": throw new Me("Active transaction found in closed transactions list."); case "committed": throw new un(r5); case "rolled_back": throw new cn(r5); case "timed_out": throw new pn(r5, { timeout: i5.timeout, timeTaken: Date.now() - i5.startedAt }); } else throw it("Transaction not found.", t), new nt(); } if (["committed", "rolled_back", "timed_out"].includes(n3.status)) throw new Me("Closed transaction found in active transactions map."); return n3; } async cancelAllTransactions() { let t = [...this.#e]; for (let { abortController: r5 } of t) r5.abort(); await Promise.allSettled([...[...this.transactions.values()].map((r5) => this.#m(r5, async () => { let n3 = this.transactions.get(r5.id); n3 && await this.#f(n3, "rolled_back"); })), ...t.map(({ settled: r5 }) => sm(r5, tm))]); } #a(t) { return `prisma_sp_${t.savepointCounter++}`; } #n(t) { if (t.createSavepoint) return t.createSavepoint.bind(t); throw new ue(`Nested transactions are not supported by adapter "${t.adapterName}" (${t.provider}): createSavepoint is not implemented.`); } #u(t) { if (t.rollbackToSavepoint) return t.rollbackToSavepoint.bind(t); throw new ue(`Nested transactions are not supported by adapter "${t.adapterName}" (${t.provider}): rollbackToSavepoint is not implemented.`); } async #l(t, r5) { t.releaseSavepoint && await t.releaseSavepoint(r5); } #p(t) { it("Transaction already committed or rolled back when timeout happened.", t); } #c(t, r5) { let n3 = Date.now(), i5 = tl(async () => { try { it("Transaction timed out.", { transactionId: t, timeoutStartedAt: n3, timeout: r5 }); let o3 = this.transactions.get(t); if (!o3) { this.#p(t); return; } await this.#m(o3, async () => { let s2 = this.transactions.get(t); s2 && ["running", "waiting"].includes(s2.status) ? await this.#f(s2, "timed_out") : this.#p(t); }); } catch (o3) { it("Error while closing timed-out transaction.", { transactionId: t, error: o3 }); } }, r5); return i5?.unref?.(), i5; } async #d(t, r5, n3) { let i5 = this.#s(t, r5); return await this.#m(i5, async () => { let o3 = this.#s(t, r5); return await n3(o3); }); } async #m(t, r5) { let n3 = t.operationQueue, i5; t.operationQueue = new Promise((o3) => { i5 = o3; }), await n3; try { return await r5(); } finally { i5(); } } async #f(t, r5) { let n3 = /* @__PURE__ */ __name(async () => { it("Closing transaction.", { transactionId: t.id, status: r5 }); try { if (t.transaction && r5 === "committed") if (t.transaction.options.usePhantomQuery) await this.#g(im(), t.transaction, () => t.transaction.commit()); else { let i5 = nm(); await this.#g(i5, t.transaction, () => t.transaction.executeRaw(i5)).then(() => t.transaction.commit(), (o3) => { let s2 = /* @__PURE__ */ __name(() => Promise.reject(o3), "s"); return t.transaction.rollback().then(s2, s2); }); } else if (t.transaction) if (t.transaction.options.usePhantomQuery) await this.#g(om(), t.transaction, () => t.transaction.rollback()); else { let i5 = el(); try { await this.#g(i5, t.transaction, () => t.transaction.executeRaw(i5)); } finally { await t.transaction.rollback(); } } } finally { t.status = r5, clearTimeout(t.timer), t.timer = void 0, this.transactions.delete(t.id), this.closedTransactions.push(t), this.closedTransactions.length > em && this.closedTransactions.shift(); } }, "n"); t.status === "closing" ? (await t.closing, this.#s(t.id, r5 === "committed" ? "commit" : "rollback")) : await Object.assign(t, { status: "closing", reason: r5, closing: n3() }).closing; } #y(t) { if (!t.timeout) throw new ue("timeout is required"); if (!t.maxWait) throw new ue("maxWait is required"); if (t.isolationLevel === "SNAPSHOT") throw new dn(t.isolationLevel); return { ...t, timeout: t.timeout, maxWait: t.maxWait }; } #g(t, r5, n3) { return Wr({ query: t, execute: n3, provider: this.#r ?? r5.provider, tracingHelper: this.tracingHelper, onQuery: this.#t }); } }; function tl(e5, t) { return t !== void 0 ? setTimeout(e5, t) : void 0; } __name(tl, "tl"); function sm(e5, t) { let r5, n3 = new Promise((i5) => { r5 = setTimeout(i5, t), r5?.unref?.(); }); return Promise.race([e5, n3]).finally(() => clearTimeout(r5)); } __name(sm, "sm"); var ne = require_dist(); var mn = "7.10.1"; var rl = { bigint: "bigint", date: "datetime", decimal: "decimal", bytes: "bytes" }; function il(e5) { let t; try { t = JSON.parse(e5); } catch (i5) { throw new Error(`Received invalid serialized parameters: ${i5.message}`); } if (!Array.isArray(t)) throw new Error("Received invalid serialized parameters: expected an array"); let r5 = t.map((i5) => ol(i5)), n3 = t.map((i5) => lm(i5)); return { args: r5, argTypes: n3 }; } __name(il, "il"); function ol(e5) { if (Array.isArray(e5)) return e5.map((t) => ol(t)); if (typeof e5 == "object" && e5 !== null && "prisma__value" in e5) { if (!("prisma__type" in e5)) throw new Error("Invalid serialized parameter, prisma__type should be present when prisma__value is present"); return `${e5.prisma__value}`; } return typeof e5 == "object" && e5 !== null ? JSON.stringify(e5) : e5; } __name(ol, "ol"); function lm(e5) { return Array.isArray(e5) ? { scalarType: e5.length > 0 ? nl(e5[0]) : "unknown", arity: "list" } : { scalarType: nl(e5), arity: "scalar" }; } __name(lm, "lm"); function nl(e5) { return typeof e5 == "object" && e5 !== null && "prisma__type" in e5 && typeof e5.prisma__type == "string" && e5.prisma__type in rl ? rl[e5.prisma__type] : typeof e5 == "number" ? "decimal" : typeof e5 == "string" ? "string" : "unknown"; } __name(nl, "nl"); function sl(e5, t) { return { batch: e5, transaction: t?.kind === "batch" ? { isolationLevel: t.options.isolationLevel } : void 0 }; } __name(sl, "sl"); function al(e5) { return e5 ? e5.replace(/"(?:[^"\\]|\\.)*"/g, '"X"').replace(/[\s:\[]([+-]?([0-9]*[.])?[0-9]+)/g, (t) => `${t[0]}5`) : ""; } __name(al, "al"); function ll(e5) { return e5.split(` `).map((t) => t.replace(/^\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)\s*/, "").replace(/\+\d+\s*ms$/, "")).join(` `); } __name(ll, "ll"); var ul = Pe(Ro()); function cl({ title: e5, user: t = "prisma", repo: r5 = "prisma", template: n3 = "bug_report.yml", body: i5 }) { return (0, ul.default)({ user: t, repo: r5, template: n3, title: e5, body: i5 }); } __name(cl, "cl"); function pl({ version: e5, binaryTarget: t, title: r5, description: n3, engineVersion: i5, database: o3, query: s2 }) { let a5 = go(6e3 - (s2?.length ?? 0)), u = ll(ut(a5)), m3 = n3 ? `# Description \`\`\` ${n3} \`\`\`` : "", P = ut(`Hi Prisma Team! My Prisma Client just crashed. This is the report: ## Versions | Name | Version | |-----------------|--------------------| | Node | ${process.version?.padEnd(19)}| | OS | ${t?.padEnd(19)}| | Prisma Client | ${e5?.padEnd(19)}| | Query Engine | ${i5?.padEnd(19)}| | Database | ${o3?.padEnd(19)}| ${m3} ## Logs \`\`\` ${u} \`\`\` ## Client Snippet \`\`\`ts // PLEASE FILL YOUR CODE SNIPPET HERE \`\`\` ## Schema \`\`\`prisma // PLEASE ADD YOUR SCHEMA HERE IF POSSIBLE \`\`\` ## Prisma Engine Query \`\`\` ${s2 ? al(s2) : ""} \`\`\` `), T2 = cl({ title: r5, body: P }); return `${r5} This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic. ${Mt(T2)} If you want the Prisma team to look into it, please open the link above \u{1F64F} To increase the chance of success, please post your schema and a snippet of how you used Prisma Client in the issue. `; } __name(pl, "pl"); var fn = class e5 { static { __name(this, "e"); } #e; #t; #r; #i; #o; constructor(t, r5, n3) { this.#e = t, this.#t = r5, this.#r = n3, this.#i = r5.getConnectionInfo?.(), this.#o = dr.forSql({ onQuery: this.#e.onQuery, tracingHelper: this.#e.tracingHelper, provider: this.#e.provider, connectionInfo: this.#i }); } static async connect(t) { let r5, n3; try { r5 = await t.driverAdapterFactory.connect(), n3 = new gr({ driverAdapter: r5, transactionOptions: t.transactionOptions, tracingHelper: t.tracingHelper, onQuery: t.onQuery, provider: t.provider }); } catch (i5) { throw await r5?.dispose(), i5; } return new e5(t, r5, n3); } getConnectionInfo() { let t = this.#i ?? { supportsRelationJoins: false }; return Promise.resolve({ provider: this.#t.provider, connectionInfo: t }); } async execute({ plan: t, placeholderValues: r5, transaction: n3, batchIndex: i5, queryInfo: o3 }) { let s2 = n3 ? await this.#r.getTransaction(n3, i5 !== void 0 ? "batch query" : "query") : this.#t; return await this.#o.run(t, { queryable: s2, transactionManager: n3 ? { enabled: false } : { enabled: true, manager: this.#r }, scope: r5, sqlCommenter: this.#e.sqlCommenters && { plugins: this.#e.sqlCommenters, queryInfo: o3 } }); } async startTransaction(t) { return { ...await this.#r.startTransaction(t), payload: void 0 }; } async commitTransaction(t) { await this.#r.commitTransaction(t.id); } async rollbackTransaction(t) { await this.#r.rollbackTransaction(t.id); } async disconnect() { try { await this.#r.cancelAllTransactions(); } finally { await this.#t.dispose(); } } apiKey() { return null; } }; var gn = class { static { __name(this, "gn"); } #e; #t; #r; constructor(t = 1e3) { this.#e = /* @__PURE__ */ new Map(), this.#t = /* @__PURE__ */ new Map(), this.#r = t; } getSingle(t) { let r5 = this.#e.get(t); return r5 && (this.#e.delete(t), this.#e.set(t, r5)), r5; } setSingle(t, r5) { if (this.#e.has(t)) { this.#e.delete(t), this.#e.set(t, r5); return; } if (this.#e.size >= this.#r) { let n3 = this.#e.keys().next().value; n3 !== void 0 && this.#e.delete(n3); } this.#e.set(t, r5); } getBatch(t) { let r5 = this.#t.get(t); return r5 && (this.#t.delete(t), this.#t.set(t, r5)), r5; } setBatch(t, r5) { if (this.#t.has(t)) { this.#t.delete(t), this.#t.set(t, r5); return; } if (this.#t.size >= this.#r) { let n3 = this.#t.keys().next().value; n3 !== void 0 && this.#t.delete(n3); } this.#t.set(t, r5); } clear() { this.#e.clear(), this.#t.clear(); } get size() { return this.#e.size + this.#t.size; } get singleCacheSize() { return this.#e.size; } get batchCacheSize() { return this.#t.size; } }; var hl = require_dist(); var yn = /^[\u0009\u0020-\u007E\u0080-\u00FF]+$/; function dl(e5, t, r5) { let n3 = r5 || {}, i5 = n3.encode || encodeURIComponent; if (typeof i5 != "function") throw new TypeError("option encode is invalid"); if (!yn.test(e5)) throw new TypeError("argument name is invalid"); let o3 = i5(t); if (o3 && !yn.test(o3)) throw new TypeError("argument val is invalid"); let s2 = e5 + "=" + o3; if (n3.maxAge !== void 0 && n3.maxAge !== null) { let a5 = n3.maxAge - 0; if (Number.isNaN(a5) || !Number.isFinite(a5)) throw new TypeError("option maxAge is invalid"); s2 += "; Max-Age=" + Math.floor(a5); } if (n3.domain) { if (!yn.test(n3.domain)) throw new TypeError("option domain is invalid"); s2 += "; Domain=" + n3.domain; } if (n3.path) { if (!yn.test(n3.path)) throw new TypeError("option path is invalid"); s2 += "; Path=" + n3.path; } if (n3.expires) { if (!um(n3.expires) || Number.isNaN(n3.expires.valueOf())) throw new TypeError("option expires is invalid"); s2 += "; Expires=" + n3.expires.toUTCString(); } if (n3.httpOnly && (s2 += "; HttpOnly"), n3.secure && (s2 += "; Secure"), n3.priority) switch (typeof n3.priority == "string" ? n3.priority.toLowerCase() : n3.priority) { case "low": { s2 += "; Priority=Low"; break; } case "medium": { s2 += "; Priority=Medium"; break; } case "high": { s2 += "; Priority=High"; break; } default: throw new TypeError("option priority is invalid"); } if (n3.sameSite) switch (typeof n3.sameSite == "string" ? n3.sameSite.toLowerCase() : n3.sameSite) { case true: { s2 += "; SameSite=Strict"; break; } case "lax": { s2 += "; SameSite=Lax"; break; } case "strict": { s2 += "; SameSite=Strict"; break; } case "none": { s2 += "; SameSite=None"; break; } default: throw new TypeError("option sameSite is invalid"); } return n3.partitioned && (s2 += "; Partitioned"), s2; } __name(dl, "dl"); function um(e5) { return Object.prototype.toString.call(e5) === "[object Date]" || e5 instanceof Date; } __name(um, "um"); function ml(e5, t) { let r5 = (e5 || "").split(";").filter((u) => typeof u == "string" && !!u.trim()), n3 = r5.shift() || "", i5 = cm(n3), o3 = i5.name, s2 = i5.value; try { s2 = t?.decode === false ? s2 : (t?.decode || decodeURIComponent)(s2); } catch { } let a5 = { name: o3, value: s2 }; for (let u of r5) { let m3 = u.split("="), P = (m3.shift() || "").trimStart().toLowerCase(), T2 = m3.join("="); switch (P) { case "expires": { a5.expires = new Date(T2); break; } case "max-age": { a5.maxAge = Number.parseInt(T2, 10); break; } case "secure": { a5.secure = true; break; } case "httponly": { a5.httpOnly = true; break; } case "samesite": { a5.sameSite = T2; break; } default: a5[P] = T2; } } return a5; } __name(ml, "ml"); function cm(e5) { let t = "", r5 = "", n3 = e5.split("="); return n3.length > 1 ? (t = n3.shift(), r5 = n3.join("=")) : r5 = e5, { name: t, value: r5 }; } __name(cm, "cm"); var hn = class extends Error { static { __name(this, "hn"); } clientVersion; cause; constructor(t, r5) { super(t), this.clientVersion = r5.clientVersion, this.cause = r5.cause; } get [Symbol.toStringTag]() { return this.name; } }; var wn = class extends hn { static { __name(this, "wn"); } isRetryable; constructor(t, r5) { super(t, r5), this.isRetryable = r5.isRetryable ?? true; } }; function fl(e5, t) { return { ...e5, isRetryable: t }; } __name(fl, "fl"); var ot = class extends wn { static { __name(this, "ot"); } name = "InvalidDatasourceError"; code = "P6001"; constructor(t, r5) { super(t, fl(r5, false)); } }; Bt(ot, "InvalidDatasourceError"); function gl(e5) { let t = { clientVersion: e5.clientVersion }, r5; try { r5 = new URL(e5.accelerateUrl); } catch (u) { let m3 = u.message; throw new ot(`Error validating \`accelerateUrl\`, the URL cannot be parsed, reason: ${m3}`, t); } let { protocol: n3, searchParams: i5 } = r5; if (n3 !== "prisma:" && n3 !== Er) throw new ot("Error validating `accelerateUrl`: the URL must start with the protocol `prisma://` or `prisma+postgres://`", t); let o3 = i5.get("api_key"); if (o3 === null || o3.length < 1) throw new ot("Error validating `accelerateUrl`: the URL must contain a valid API key", t); let s2 = Dn(r5) ? "http:" : "https:"; process.env.TEST_CLIENT_ENGINE_REMOTE_EXECUTOR && r5.searchParams.has("use_http") && (s2 = "http:"); let a5 = new URL(r5.href.replace(n3, s2)); return { apiKey: o3, url: a5 }; } __name(gl, "gl"); var yl = Pe(wo()); var xn = class { static { __name(this, "xn"); } apiKey; tracingHelper; logLevel; logQueries; engineHash; constructor({ apiKey: t, tracingHelper: r5, logLevel: n3, logQueries: i5, engineHash: o3 }) { this.apiKey = t, this.tracingHelper = r5, this.logLevel = n3, this.logQueries = i5, this.engineHash = o3; } build({ traceparent: t, transactionId: r5 } = {}) { let n3 = { Accept: "application/json", Authorization: `Bearer ${this.apiKey}`, "Content-Type": "application/json", "Prisma-Engine-Hash": this.engineHash, "Prisma-Engine-Version": yl.enginesVersion }; this.tracingHelper.isEnabled() && (n3.traceparent = t ?? this.tracingHelper.getTraceParent()), r5 && (n3["X-Transaction-Id"] = r5); let i5 = this.#e(); return i5.length > 0 && (n3["X-Capture-Telemetry"] = i5.join(", ")), n3; } #e() { let t = []; return this.tracingHelper.isEnabled() && t.push("tracing"), this.logLevel && t.push(this.logLevel), this.logQueries && t.push("query"), t; } }; function pm(e5) { return e5[0] * 1e3 + e5[1] / 1e6; } __name(pm, "pm"); function ji(e5) { return new Date(pm(e5)); } __name(ji, "ji"); var wl = K2("prisma:client:clientEngine:remoteExecutor"); var bn = class { static { __name(this, "bn"); } #e; #t; #r; #i; #o; #s; constructor(t) { this.#e = t.clientVersion, this.#i = t.logEmitter, this.#o = t.tracingHelper, this.#s = t.sqlCommenters; let { url: r5, apiKey: n3 } = gl({ clientVersion: t.clientVersion, accelerateUrl: t.accelerateUrl }); this.#r = new Bi(r5), this.#t = new xn({ apiKey: n3, engineHash: t.clientVersion, logLevel: t.logLevel, logQueries: t.logQueries, tracingHelper: t.tracingHelper }); } async getConnectionInfo() { return await this.#a({ path: "/connection-info", method: "GET" }); } async execute({ plan: t, placeholderValues: r5, batchIndex: n3, model: i5, operation: o3, transaction: s2, customFetch: a5, queryInfo: u }) { let m3 = u && this.#s?.length ? Hr(this.#s, { query: u }) : void 0; return (await this.#a({ path: s2 ? `/transaction/${s2.id}/query` : "/query", method: "POST", body: { model: i5, operation: o3, plan: t, params: r5, comments: m3 && Object.keys(m3).length > 0 ? m3 : void 0 }, batchRequestIdx: n3, fetch: a5 })).data; } async startTransaction(t) { return { ...await this.#a({ path: "/transaction/start", method: "POST", body: t }), payload: void 0 }; } async commitTransaction(t) { await this.#a({ path: `/transaction/${t.id}/commit`, method: "POST" }); } async rollbackTransaction(t) { await this.#a({ path: `/transaction/${t.id}/rollback`, method: "POST" }); } disconnect() { return Promise.resolve(); } apiKey() { return this.#t.apiKey; } async #a({ path: t, method: r5, body: n3, fetch: i5 = globalThis.fetch, batchRequestIdx: o3 }) { let s2 = await this.#r.request({ method: r5, path: t, headers: this.#t.build(), body: n3, fetch: i5 }); s2.ok || await this.#n(s2, o3); let a5 = await s2.json(); return typeof a5.extensions == "object" && a5.extensions !== null && this.#u(a5.extensions), a5; } async #n(t, r5) { let n3 = t.headers.get("Prisma-Error-Code"), i5 = await t.text(), o3, s2 = i5; try { o3 = JSON.parse(i5); } catch { o3 = {}; } typeof o3.code == "string" && (n3 = o3.code), typeof o3.error == "string" ? s2 = o3.error : typeof o3.message == "string" ? s2 = o3.message : typeof o3.InvalidRequestError == "object" && o3.InvalidRequestError !== null && typeof o3.InvalidRequestError.reason == "string" && (s2 = o3.InvalidRequestError.reason), s2 = s2 || `HTTP ${t.status}: ${t.statusText}`; let a5 = typeof o3.meta == "object" && o3.meta !== null ? o3.meta : o3; throw new hl.PrismaClientKnownRequestError(s2, { clientVersion: this.#e, code: n3 ?? "P6000", batchRequestIdx: r5, meta: a5 }); } #u(t) { let r5 = t.logs ?? []; if (t.spans) this.#o.dispatchEngineSpans(t.spans, r5, (n3) => this.#l(n3)); else for (let n3 of r5) this.#l(n3); } #l(t) { switch (t.level) { case "debug": case "trace": wl(t); break; case "error": case "warn": case "info": { this.#i.emit(t.level, { timestamp: ji(t.timestamp), message: t.attributes.message ?? "", target: t.target ?? "RemoteExecutor" }); break; } case "query": { this.#i.emit("query", { query: t.attributes.query ?? "", timestamp: ji(t.timestamp), duration: t.attributes.duration_ms ?? 0, params: t.attributes.params ?? "", target: t.target ?? "RemoteExecutor" }); break; } default: throw new Error(`Unexpected log level: ${t.level}`); } } }; var Bi = class { static { __name(this, "Bi"); } #e; #t; #r; constructor(t) { this.#e = t, this.#t = /* @__PURE__ */ new Map(); } async request({ method: t, path: r5, headers: n3, body: i5, fetch: o3 }) { let s2 = new URL(r5, this.#e), a5 = this.#i(s2); a5 && (n3.Cookie = a5), this.#r && (n3["Accelerate-Query-Engine-Jwt"] = this.#r); let u = await o3(s2.href, { method: t, body: i5 !== void 0 ? JSON.stringify(i5) : void 0, headers: n3 }); return wl(t, s2, u.status, u.statusText), this.#r = u.headers.get("Accelerate-Query-Engine-Jwt") ?? void 0, this.#o(s2, u), u; } #i(t) { let r5 = [], n3 = /* @__PURE__ */ new Date(); for (let [i5, o3] of this.#t) { if (o3.expires && o3.expires < n3) { this.#t.delete(i5); continue; } let s2 = o3.domain ?? t.hostname, a5 = o3.path ?? "/"; t.hostname.endsWith(s2) && t.pathname.startsWith(a5) && r5.push(dl(o3.name, o3.value)); } return r5.length > 0 ? r5.join("; ") : void 0; } #o(t, r5) { let n3 = r5.headers.getSetCookie?.() || []; if (n3.length === 0) { let i5 = r5.headers.get("Set-Cookie"); i5 && n3.push(i5); } for (let i5 of n3) { let o3 = ml(i5), s2 = o3.domain ?? t.hostname, a5 = o3.path ?? "/", u = `${s2}:${a5}:${o3.name}`; this.#t.set(u, { name: o3.name, value: o3.value, domain: s2, path: a5, expires: o3.expires }); } } }; var Ji = require_dist(); var Qi = {}; var xl = { async loadQueryCompiler(e5) { let { clientVersion: t, compilerWasm: r5 } = e5; if (r5 === void 0) throw new Ji.PrismaClientInitializationError("WASM query compiler was unexpectedly `undefined`", t); let n3; return e5.activeProvider === void 0 || Qi[e5.activeProvider] === void 0 ? (n3 = (async () => { let i5 = await r5.getRuntime(), o3 = await r5.getQueryCompilerWasmModule(); if (o3 == null) throw new Ji.PrismaClientInitializationError("The loaded wasm module was unexpectedly `undefined` or `null` once loaded", t); let s2 = { [r5.importName]: i5 }, a5 = new WebAssembly.Instance(o3, s2), u = a5.exports.__wbindgen_start; return i5.__wbg_set_wasm(a5.exports), u(), i5.QueryCompiler; })(), e5.activeProvider !== void 0 && (Qi[e5.activeProvider] = n3)) : n3 = Qi[e5.activeProvider], await n3; } }; var dm = "P2038"; var Ve = K2("prisma:client:clientEngine"); var Tl = globalThis; Tl.PRISMA_WASM_PANIC_REGISTRY = { set_message(e5) { throw new ne.PrismaClientRustPanicError(e5, mn); } }; var yr = class { static { __name(this, "yr"); } name = "ClientEngine"; #e; #t = { type: "disconnected" }; #r; #i; #o; #s; config; datamodel; logEmitter; logQueries; logLevel; tracingHelper; #a; constructor(t, r5) { if (t.accelerateUrl !== void 0) this.#i = { remote: true, accelerateUrl: t.accelerateUrl }; else if (t.adapter) this.#i = { remote: false, driverAdapterFactory: t.adapter }, Ve("Using driver adapter: %O", t.adapter); else throw new ne.PrismaClientInitializationError("PrismaClient requires a driver adapter to connect to your database, but none was provided. Pass one to the PrismaClient constructor, e.g. `new PrismaClient({ adapter })`. Learn more: https://pris.ly/d/driver-adapters", t.clientVersion, dm); this.#r = r5 ?? xl, this.config = t, this.logQueries = t.logQueries ?? false, this.logLevel = t.logLevel ?? "error", this.logEmitter = t.logEmitter, this.datamodel = t.inlineSchema, this.tracingHelper = t.tracingHelper, this.#o = t.queryPlanCacheMaxSize === 0 ? void 0 : new gn(t.queryPlanCacheMaxSize), this.#s = mr.deserialize(t.parameterizationSchema, (n3) => { if (!Object.hasOwn(t.runtimeDataModel.enums, n3)) return; let i5 = {}; for (let o3 of t.runtimeDataModel.enums[n3].values) i5[o3.name] = o3.dbName ?? o3.name; return i5; }), t.enableDebugLogs && (this.logLevel = "debug"), this.logQueries && (this.#a = (n3) => { this.logEmitter.emit("query", { ...n3, params: Se(n3.params), target: "ClientEngine" }); }); } async #n() { switch (this.#t.type) { case "disconnected": { let t = this.tracingHelper.runInChildSpan("connect", async () => { let r5, n3; try { r5 = await this.#u(), n3 = await this.#l(r5); } catch (o3) { throw this.#t = { type: "disconnected" }, n3?.free(), await r5?.disconnect(), o3; } let i5 = { executor: r5, queryCompiler: n3 }; return this.#t = { type: "connected", engine: i5 }, i5; }); return this.#t = { type: "connecting", promise: t }, await t; } case "connecting": return await this.#t.promise; case "connected": return this.#t.engine; case "disconnecting": return await this.#t.promise, await this.#n(); } } async #u() { return this.#i.remote ? new bn({ clientVersion: this.config.clientVersion, accelerateUrl: this.#i.accelerateUrl, logEmitter: this.logEmitter, logLevel: this.logLevel, logQueries: this.logQueries, tracingHelper: this.tracingHelper, sqlCommenters: this.config.sqlCommenters }) : await fn.connect({ driverAdapterFactory: this.#i.driverAdapterFactory, tracingHelper: this.tracingHelper, transactionOptions: { ...this.config.transactionOptions, isolationLevel: this.#g(this.config.transactionOptions.isolationLevel) }, onQuery: this.#a, provider: this.config.activeProvider, sqlCommenters: this.config.sqlCommenters }); } async #l(t) { let r5 = this.#e; r5 === void 0 && (r5 = await this.#r.loadQueryCompiler(this.config), this.#e = r5); let { provider: n3, connectionInfo: i5 } = await t.getConnectionInfo(); try { return this.#m(() => new r5({ datamodel: this.datamodel, provider: n3, connectionInfo: i5 }), void 0, false); } catch (o3) { throw this.#p(o3); } } #p(t) { if (t instanceof ne.PrismaClientRustPanicError) return t; try { let r5 = JSON.parse(t.message); return new ne.PrismaClientInitializationError(r5.message, this.config.clientVersion, r5.error_code); } catch { return t; } } #c(t, r5) { if (t instanceof ne.PrismaClientInitializationError) return t; if (t.code === "GenericFailure" && t.message?.startsWith("PANIC:")) return new ne.PrismaClientRustPanicError(bl(this, t.message, r5), this.config.clientVersion); if (t instanceof X) return new ne.PrismaClientKnownRequestError(t.message, { code: t.code, meta: t.meta, clientVersion: this.config.clientVersion }); try { let n3 = JSON.parse(t); return new ne.PrismaClientUnknownRequestError(`${n3.message} ${n3.backtrace}`, { clientVersion: this.config.clientVersion }); } catch { return t; } } #d(t) { return t instanceof ne.PrismaClientRustPanicError ? t : typeof t.message == "string" && typeof t.code == "string" ? new ne.PrismaClientKnownRequestError(t.message, { code: t.code, meta: t.meta, clientVersion: this.config.clientVersion }) : typeof t.message == "string" ? new ne.PrismaClientUnknownRequestError(t.message, { clientVersion: this.config.clientVersion }) : t; } #m(t, r5, n3 = true) { let i5 = Tl.PRISMA_WASM_PANIC_REGISTRY.set_message, o3; global.PRISMA_WASM_PANIC_REGISTRY.set_message = (s2) => { o3 = s2; }; try { return t(); } finally { if (global.PRISMA_WASM_PANIC_REGISTRY.set_message = i5, o3) throw this.#e = void 0, n3 && this.stop().catch((s2) => Ve("failed to disconnect:", s2)), new ne.PrismaClientRustPanicError(bl(this, o3, r5), this.config.clientVersion); } } onBeforeExit() { throw new Error('"beforeExit" hook is not applicable to the client engine, it is only relevant and implemented for the binary engine. Please add your event listener to the `process` object directly instead.'); } async start() { await this.#n(); } async stop() { switch (this.#t.type) { case "disconnected": return; case "connecting": return await this.#t.promise, await this.stop(); case "connected": { let t = this.#t.engine, r5 = this.tracingHelper.runInChildSpan("disconnect", async () => { try { await t.executor.disconnect(), t.queryCompiler.free(); } finally { this.#t = { type: "disconnected" }; } }); return this.#t = { type: "disconnecting", promise: r5 }, await r5; } case "disconnecting": return await this.#t.promise; } } version() { return "unknown"; } async transaction(t, r5, n3) { let i5, { executor: o3 } = await this.#n(); try { if (t === "start") { let s2 = n3; i5 = await o3.startTransaction({ ...s2, isolationLevel: this.#g(s2.isolationLevel) }); } else if (t === "commit") { let s2 = n3; await o3.commitTransaction(s2); } else if (t === "rollback") { let s2 = n3; await o3.rollbackTransaction(s2); } else $e(t, "Invalid transaction action."); } catch (s2) { throw this.#c(s2); } return i5 ? { id: i5.id, payload: void 0 } : void 0; } async request(t, { interactiveTransaction: r5, customDataProxyFetch: n3 }) { Ve("sending request"); let { executor: i5, queryCompiler: o3 } = await this.#n().catch((m3) => { throw this.#c(m3, JSON.stringify(t)); }), s2, a5 = {}, u = t.query; if (Pl(t)) s2 = El(t); else { let { parameterizedQuery: m3, placeholderValues: P } = Vi(t, this.#s), T2 = JSON.stringify(m3); a5 = P, u = m3.query; let S = t.action !== "createMany" && t.action !== "createManyAndReturn", I = S ? this.#o?.getSingle(T2) : void 0; I ? (Ve("query plan cache hit"), s2 = I) : (Ve("query plan cache miss"), s2 = this.#f(m3, T2, o3), S && this.#o?.setSingle(T2, s2)); } try { Ve("query plan created", s2); let m3 = await i5.execute({ plan: s2, model: t.modelName, operation: t.action, placeholderValues: a5, transaction: r5, batchIndex: void 0, customFetch: n3?.(globalThis.fetch), queryInfo: { type: "single", modelName: t.modelName, action: t.action, query: u } }); return Ve("query plan executed"), { data: { [t.action]: m3 } }; } catch (m3) { throw this.#c(m3, JSON.stringify(t)); } } async requestBatch(t, { transaction: r5, customDataProxyFetch: n3 }) { if (t.length === 0) return []; let i5 = t[0].action, o3 = t[0].modelName, s2 = sl(t, r5), a5 = JSON.stringify(s2), { executor: u, queryCompiler: m3 } = await this.#n().catch((A) => { throw this.#c(A, a5); }), P = o3 === void 0, T2, S = {}, I = t.map((A) => A.query); if (P) T2 = this.#y(t, a5, m3); else { let { parameterizedBatch: A, placeholderValues: M } = qi(s2, this.#s), L = JSON.stringify(A); S = M, I = A.batch.map((E) => E.query); let q3 = this.#o?.getBatch(L); if (q3) Ve("batch query plan cache hit"), T2 = q3; else { Ve("batch query plan cache miss"); try { T2 = this.#y(A.batch, L, m3), this.#o?.setBatch(L, T2); } catch (E) { throw this.#d(E); } } } try { let A; switch (r5?.kind === "itx" && (A = r5.options), T2.type) { case "multi": { if (r5?.kind !== "itx") { let E = r5?.options, D = { maxWait: E?.maxWait ?? this.config.transactionOptions.maxWait, timeout: E?.timeout ?? this.config.transactionOptions.timeout, isolationLevel: E?.isolationLevel ?? this.config.transactionOptions.isolationLevel }; A = await this.transaction("start", {}, D); } let M = [], L = false, q3; for (let [E, D] of T2.plans.entries()) try { let H = await u.execute({ plan: D, placeholderValues: S, model: t[E].modelName, operation: t[E].action, batchIndex: E, transaction: A, customFetch: n3?.(globalThis.fetch), queryInfo: { type: "single", modelName: t[E].modelName, action: t[E].action, query: I[E] } }); M.push({ data: { [t[E].action]: H } }); } catch (H) { if (q3 ??= r5?.kind !== "batch" && t.every((ce) => ce.action === "findUnique" || ce.action === "findUniqueOrThrow"), M.push(H), L = true, !q3) break; } return A !== void 0 && r5?.kind !== "itx" && (L ? await this.transaction("rollback", {}, A) : await this.transaction("commit", {}, A)), M; } case "compacted": { if (!t.every((q3) => q3.action === i5 && q3.modelName === o3)) { let q3 = t.map((D) => D.action).join(", "), E = t.map((D) => D.modelName).join(", "); throw new Error(`Internal error: All queries in a compacted batch must have the same action and model name, but received actions: [${q3}] and model names: [${E}]. This indicates a bug in the client. Please report this issue to the Prisma team with your query details.`); } if (o3 === void 0) throw new Error("Internal error: A compacted batch cannot contain raw queries. This indicates a bug in the client. Please report this issue to the Prisma team with your query details."); let M = await u.execute({ plan: T2.plan, placeholderValues: S, model: o3, operation: i5, batchIndex: void 0, transaction: A, customFetch: n3?.(globalThis.fetch), queryInfo: { type: "compacted", action: i5, modelName: o3, queries: I } }); return Ws(M, T2, S).map((q3) => ({ data: { [i5]: q3 } })); } } } catch (A) { throw this.#c(A, a5); } } async apiKey() { let { executor: t } = await this.#n(); return t.apiKey(); } #f(t, r5, n3) { try { return this.#m(() => this.#h({ queries: [t], execute: /* @__PURE__ */ __name(() => n3.compile(r5), "execute") })); } catch (i5) { throw this.#d(i5); } } #y(t, r5, n3) { if (t.every(Pl)) return { type: "multi", plans: t.map((i5) => El(i5)) }; try { return this.#m(() => this.#h({ queries: t, execute: /* @__PURE__ */ __name(() => n3.compileBatch(r5), "execute") })); } catch (i5) { throw this.#d(i5); } } #g(t) { switch (t) { case void 0: return; case "ReadUncommitted": return "READ UNCOMMITTED"; case "ReadCommitted": return "READ COMMITTED"; case "RepeatableRead": return "REPEATABLE READ"; case "Serializable": return "SERIALIZABLE"; case "Snapshot": return "SNAPSHOT"; default: throw new ne.PrismaClientKnownRequestError(`Inconsistent column data: Conversion failed: Invalid isolation level \`${t}\``, { code: "P2023", clientVersion: this.config.clientVersion, meta: { providedIsolationLevel: t } }); } } #h({ queries: t, execute: r5 }) { return this.tracingHelper.runInChildSpan({ name: "compile", attributes: { models: t.map((n3) => n3.modelName).filter((n3) => n3 !== void 0), actions: t.map((n3) => n3.action) } }, r5); } }; function bl(e5, t, r5) { return pl({ binaryTarget: void 0, title: t, version: e5.config.clientVersion, engineVersion: "unknown", database: e5.config.activeProvider, query: r5 }); } __name(bl, "bl"); function Pl(e5) { return e5.action === "queryRaw" || e5.action === "executeRaw"; } __name(Pl, "Pl"); function El(e5) { let t = e5.query.arguments.query, { args: r5, argTypes: n3 } = il(e5.query.arguments.parameters); return { type: e5.action === "queryRaw" ? "query" : "execute", args: { type: "rawSql", sql: t, args: r5, argTypes: n3 } }; } __name(El, "El"); function vl(e5) { return new yr(e5); } __name(vl, "vl"); var Sl = /* @__PURE__ */ __name((e5) => ({ command: e5 }), "Sl"); var Nl = require_dist(); var Al = /* @__PURE__ */ __name((e5) => e5.strings.reduce((t, r5, n3) => `${t}@P${n3}${r5}`), "Al"); var Pn = require_dist(); function It(e5, t) { try { return Rl(e5, "fast", t); } catch (r5) { if (r5 instanceof TypeError) return Rl(e5, "slow", t); throw r5; } } __name(It, "It"); function Rl(e5, t, r5) { return JSON.stringify(e5.map((n3) => Il(n3, t, r5))); } __name(Rl, "Rl"); function Il(e5, t, r5) { if (Array.isArray(e5)) return e5.map((n3) => Il(n3, t, r5)); if (typeof e5 == "bigint") return { prisma__type: "bigint", prisma__value: e5.toString() }; if (ct(e5)) { if (!pt(e5)) throw new Pn.PrismaClientValidationError("Provided Date object is invalid", { clientVersion: r5 }); return { prisma__type: "date", prisma__value: e5.toJSON() }; } if (Pn.Decimal.isDecimal(e5)) return { prisma__type: "decimal", prisma__value: e5.toJSON() }; if (Buffer.isBuffer(e5)) return { prisma__type: "bytes", prisma__value: e5.toString("base64") }; if (mm(e5)) return { prisma__type: "bytes", prisma__value: Buffer.from(e5).toString("base64") }; if (ArrayBuffer.isView(e5)) { let { buffer: n3, byteOffset: i5, byteLength: o3 } = e5; return { prisma__type: "bytes", prisma__value: Buffer.from(n3, i5, o3).toString("base64") }; } return typeof e5 == "object" && t === "slow" ? kl(e5) : e5; } __name(Il, "Il"); function mm(e5) { return e5 instanceof ArrayBuffer || e5 instanceof SharedArrayBuffer ? true : typeof e5 == "object" && e5 !== null ? e5[Symbol.toStringTag] === "ArrayBuffer" || e5[Symbol.toStringTag] === "SharedArrayBuffer" : false; } __name(mm, "mm"); function kl(e5) { if (typeof e5 != "object" || e5 === null) return e5; if (typeof e5.toJSON == "function") return e5.toJSON(); if (Array.isArray(e5)) return e5.map(Cl); let t = {}; for (let r5 of Object.keys(e5)) t[r5] = Cl(e5[r5]); return t; } __name(kl, "kl"); function Cl(e5) { return typeof e5 == "bigint" ? e5.toString() : kl(e5); } __name(Cl, "Cl"); var fm = /^(\s*alter\s)/i; var Ol = K2("prisma:client"); function Gi(e5, t, r5, n3) { if (!(e5 !== "postgresql" && e5 !== "cockroachdb") && r5.length > 0 && fm.exec(t)) throw new Error(`Running ALTER using ${n3} is not supported Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. Example: await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) More Information: https://pris.ly/d/execute-raw `); } __name(Gi, "Gi"); var zi = /* @__PURE__ */ __name(({ clientMethod: e5, activeProvider: t, clientVersion: r5 }) => (n3) => { let i5 = "", o3; if (Ur(n3)) i5 = n3.sql, o3 = { values: It(n3.values, r5), __prismaRawParameters__: true }; else if (Array.isArray(n3)) { let [s2, ...a5] = n3; i5 = s2, o3 = { values: It(a5 || [], r5), __prismaRawParameters__: true }; } else switch (t) { case "sqlite": case "mysql": { i5 = n3.sql, o3 = { values: It(n3.values, r5), __prismaRawParameters__: true }; break; } case "cockroachdb": case "postgresql": case "postgres": { i5 = n3.text, o3 = { values: It(n3.values, r5), __prismaRawParameters__: true }; break; } case "sqlserver": { i5 = Al(n3), o3 = { values: It(n3.values, r5), __prismaRawParameters__: true }; break; } default: throw new Error(`The ${t} provider does not support ${e5}`); } return o3?.values ? Ol(`prisma.${e5}(${i5}, ${o3.values})`) : Ol(`prisma.${e5}(${i5})`), { query: i5, parameters: o3 }; }, "zi"); var Dl = { requestArgsToMiddlewareArgs(e5) { return [e5.strings, ...e5.values]; }, middlewareArgsToRequestArgs(e5) { let [t, ...r5] = e5; return new Nl.Sql(t, r5); } }; var Ml = { requestArgsToMiddlewareArgs(e5) { return [e5]; }, middlewareArgsToRequestArgs(e5) { return e5[0]; } }; function Hi(e5) { return function(r5, n3) { let i5, o3 = /* @__PURE__ */ __name((s2 = e5) => { try { return s2 === void 0 || s2?.kind === "itx" ? i5 ??= Fl(r5(s2)) : Fl(r5(s2)); } catch (a5) { return Promise.reject(a5); } }, "o"); return { get spec() { return n3; }, then(s2, a5) { return o3().then(s2, a5); }, catch(s2) { return o3().catch(s2); }, finally(s2) { return o3().finally(s2); }, requestTransaction(s2) { let a5 = o3(s2); return a5.requestTransaction ? a5.requestTransaction(s2) : a5; }, [Symbol.toStringTag]: "PrismaPromise" }; }; } __name(Hi, "Hi"); function Fl(e5) { return typeof e5.then == "function" ? e5 : Promise.resolve(e5); } __name(Fl, "Fl"); var _l = { name: "@prisma/instrumentation-contract", version: "7.10.1", description: "Shared types and utilities for Prisma instrumentation", main: "dist/index.js", module: "dist/index.mjs", types: "dist/index.d.ts", exports: { ".": { require: { types: "./dist/index.d.ts", default: "./dist/index.js" }, import: { types: "./dist/index.d.mts", default: "./dist/index.mjs" } } }, license: "Apache-2.0", homepage: "https://www.prisma.io", repository: { type: "git", url: "https://github.com/prisma/orm.git", directory: "packages/instrumentation-contract" }, bugs: "https://github.com/prisma/prisma/issues", scripts: { dev: "DEV=true tsx helpers/build.ts", build: "tsx helpers/build.ts", prepublishOnly: "pnpm run build", test: "vitest run" }, files: ["dist"], sideEffects: false, devDependencies: { "@opentelemetry/api": "1.9.0" }, peerDependencies: { "@opentelemetry/api": "^1.8" } }; var ym = _l.version.split(".")[0]; var hm = "PRISMA_INSTRUMENTATION"; var wm = `V${ym}_PRISMA_INSTRUMENTATION`; var $l = globalThis; function Ll() { let e5 = $l[wm]; return e5?.helper ? e5.helper : $l[hm]?.helper; } __name(Ll, "Ll"); var xm = { isEnabled() { return false; }, getTraceParent() { return "00-10-10-00"; }, dispatchEngineSpans(e5, t, r5) { for (let n3 of t) r5(n3); }, getActiveContext() { }, runInChildSpan(e5, t) { return t(); } }; var Wi = class { static { __name(this, "Wi"); } isEnabled() { return this.getTracingHelper().isEnabled(); } getTraceParent(t) { return this.getTracingHelper().getTraceParent(t); } dispatchEngineSpans(t, r5, n3) { return this.getTracingHelper().dispatchEngineSpans(t, r5, n3); } getActiveContext() { return this.getTracingHelper().getActiveContext(); } runInChildSpan(t, r5) { return this.getTracingHelper().runInChildSpan(t, r5); } getTracingHelper() { return Ll() ?? xm; } }; function Vl() { return new Wi(); } __name(Vl, "Vl"); function ql(e5, t = () => { }) { let r5, n3 = new Promise((i5) => r5 = i5); return { then(i5) { return --e5 === 0 && r5(t()), i5?.(n3); } }; } __name(ql, "ql"); function Ul(e5) { return typeof e5 == "string" ? e5 : e5.reduce((t, r5) => { let n3 = typeof r5 == "string" ? r5 : r5.level; return n3 === "query" ? t : t && (r5 === "info" || t === "info") ? "info" : n3; }, void 0); } __name(Ul, "Ul"); var Ql = require_dist(); function Zi(e5) { if (e5.action !== "findUnique" && e5.action !== "findUniqueOrThrow") return; let t = []; return e5.modelName && t.push(e5.modelName), e5.query.arguments && t.push(Ki(e5.query.arguments)), t.push(Ki(e5.query.selection)), t.join(""); } __name(Zi, "Zi"); function Ki(e5) { return `(${Object.keys(e5).sort().map((r5) => { let n3 = e5[r5]; return typeof n3 == "object" && n3 !== null ? `(${r5} ${Ki(n3)})` : r5; }).join(" ")})`; } __name(Ki, "Ki"); var bm = { aggregate: false, aggregateRaw: false, createMany: true, createManyAndReturn: true, createOne: true, deleteMany: true, deleteOne: true, executeRaw: true, findFirst: false, findFirstOrThrow: false, findMany: false, findRaw: false, findUnique: false, findUniqueOrThrow: false, groupBy: false, queryRaw: false, runCommandRaw: true, updateMany: true, updateManyAndReturn: true, updateOne: true, upsertOne: true }; function Xi(e5) { return bm[e5]; } __name(Xi, "Xi"); var En = class { static { __name(this, "En"); } constructor(t) { this.options = t; this.batches = {}; } batches; tickActive = false; request(t) { let r5 = this.options.batchBy(t); return r5 ? (this.batches[r5] || (this.batches[r5] = [], this.tickActive || (this.tickActive = true, process.nextTick(() => { this.dispatchBatches(), this.tickActive = false; }))), new Promise((n3, i5) => { this.batches[r5].push({ request: t, resolve: n3, reject: i5 }); })) : this.options.singleLoader(t); } dispatchBatches() { for (let t in this.batches) { let r5 = this.batches[t]; delete this.batches[t], r5.length === 1 ? this.options.singleLoader(r5[0].request).then((n3) => { n3 instanceof Error ? r5[0].reject(n3) : r5[0].resolve(n3); }).catch((n3) => { r5[0].reject(n3); }) : (r5.sort((n3, i5) => this.options.batchOrder(n3.request, i5.request)), this.options.batchLoader(r5.map((n3) => n3.request)).then((n3) => { if (n3 instanceof Error) for (let i5 = 0; i5 < r5.length; i5++) r5[i5].reject(n3); else for (let i5 = 0; i5 < r5.length; i5++) { let o3 = n3[i5]; o3 instanceof Error ? r5[i5].reject(o3) : r5[i5].resolve(o3); } }).catch((n3) => { for (let i5 = 0; i5 < r5.length; i5++) r5[i5].reject(n3); })); } } get [Symbol.toStringTag]() { return "DataLoader"; } }; var jl = require_dist(); function st(e5, t) { if (t === null) return t; switch (e5) { case "bigint": return BigInt(t); case "bytes": return new Uint8Array(Buffer.from(t, "base64")); case "decimal": return new jl.Decimal(t); case "datetime": case "date": return new Date(t); case "time": return /* @__PURE__ */ new Date(`1970-01-01T${t}Z`); case "bigint-array": return t.map((r5) => st("bigint", r5)); case "bytes-array": return t.map((r5) => st("bytes", r5)); case "decimal-array": return t.map((r5) => st("decimal", r5)); case "datetime-array": return t.map((r5) => st("datetime", r5)); case "date-array": return t.map((r5) => st("date", r5)); case "time-array": return t.map((r5) => st("time", r5)); default: return t; } } __name(st, "st"); function Tn(e5) { let t = [], r5 = Pm(e5); for (let n3 = 0; n3 < e5.rows.length; n3++) { let i5 = e5.rows[n3], o3 = { ...r5 }; for (let s2 = 0; s2 < i5.length; s2++) o3[e5.columns[s2]] = st(e5.types[s2], i5[s2]); t.push(o3); } return t; } __name(Tn, "Tn"); function Pm(e5) { let t = {}; for (let r5 = 0; r5 < e5.columns.length; r5++) t[e5.columns[r5]] = null; return t; } __name(Pm, "Pm"); function Bl(e5, t) { let { schema: r5, name: n3 } = Em(t), i5 = Object.entries(e5.models).filter(([o3, s2]) => (s2.dbName ?? o3) === n3); if (i5.length <= 1) return i5[0]?.[0]; if (r5 !== void 0) { let o3 = i5.filter(([, s2]) => s2.schema === r5); if (o3.length === 1) return o3[0][0]; } } __name(Bl, "Bl"); function Em(e5) { let t = e5.lastIndexOf("."); return t === -1 ? { schema: void 0, name: e5 } : { schema: e5.slice(0, t), name: e5.slice(t + 1) }; } __name(Em, "Em"); var Tm = K2("prisma:client:request_handler"); var vn = class { static { __name(this, "vn"); } client; dataloader; logEmitter; constructor(t, r5) { this.logEmitter = r5, this.client = t, this.dataloader = new En({ batchLoader: _s5(async ({ requests: n3, customDataProxyFetch: i5 }) => { let { transaction: o3, otelParentCtx: s2 } = n3[0], a5 = n3.map((T2) => T2.protocolQuery), u = this.client._tracingHelper.getTraceParent(s2), m3 = n3.some((T2) => Xi(T2.protocolQuery.action)); return (await this.client._engine.requestBatch(a5, { traceparent: u, transaction: vm(o3), containsWrite: m3, customDataProxyFetch: i5 })).map((T2, S) => { if (T2 instanceof Error) return T2; try { return this.mapQueryEngineResult(n3[S], T2); } catch (I) { return I; } }); }), singleLoader: /* @__PURE__ */ __name(async (n3) => { let i5 = n3.transaction?.kind === "itx" ? Jl(n3.transaction) : void 0, o3 = await this.client._engine.request(n3.protocolQuery, { traceparent: this.client._tracingHelper.getTraceParent(), interactiveTransaction: i5, isWrite: Xi(n3.protocolQuery.action), customDataProxyFetch: n3.customDataProxyFetch }); return this.mapQueryEngineResult(n3, o3); }, "singleLoader"), batchBy: /* @__PURE__ */ __name((n3) => { if (n3.transaction?.kind === "itx") { let i5 = Zi(n3.protocolQuery); return `itx-${n3.transaction.id}${i5 ? `-${i5}` : ""}`; } return n3.transaction?.id ? `transaction-${n3.transaction.id}` : Zi(n3.protocolQuery); }, "batchBy"), batchOrder(n3, i5) { return n3.transaction?.kind === "batch" && i5.transaction?.kind === "batch" ? n3.transaction.index - i5.transaction.index : 0; } }); } async request(t) { try { return await this.dataloader.request(t); } catch (r5) { let { clientMethod: n3, callsite: i5, transaction: o3, args: s2, modelName: a5 } = t; this.handleAndLogRequestError({ error: r5, clientMethod: n3, callsite: i5, transaction: o3, args: s2, modelName: a5, globalOmit: t.globalOmit }); } } mapQueryEngineResult({ dataPath: t, unpacker: r5 }, n3) { let i5 = n3?.data, o3 = this.unpack(i5, t, r5); return process.env.PRISMA_CLIENT_GET_TIME ? { data: o3 } : o3; } handleAndLogRequestError(t) { try { this.handleRequestError(t); } catch (r5) { throw this.logEmitter && this.logEmitter.emit("error", { message: r5.message, target: t.clientMethod, timestamp: /* @__PURE__ */ new Date() }), r5; } } handleRequestError({ error: t, clientMethod: r5, callsite: n3, transaction: i5, args: o3, modelName: s2, globalOmit: a5 }) { if (Tm(t), Sm(t, i5)) throw t; if (t instanceof _.PrismaClientKnownRequestError && Am(t)) { let m3 = Gl(t.meta); Fr({ args: o3, errors: [m3], callsite: n3, errorFormat: this.client._errorFormat, originalMethod: r5, clientVersion: this.client._clientVersion, globalOmit: a5 }); } let u = t.message; if (n3 && (u = Rr({ callsite: n3, originalMethod: r5, isPanic: t.isPanic, showColors: this.client._errorFormat === "pretty", message: u })), u = this.sanitizeMessage(u), t.code) { let m3 = this.resolveErrorMeta(t.meta, t.code, s2); throw new _.PrismaClientKnownRequestError(u, { code: t.code, clientVersion: this.client._clientVersion, meta: m3, batchRequestIdx: t.batchRequestIdx }); } else { if (t.isPanic) throw new _.PrismaClientRustPanicError(u, this.client._clientVersion); if (t instanceof _.PrismaClientUnknownRequestError) throw new _.PrismaClientUnknownRequestError(u, { clientVersion: this.client._clientVersion, batchRequestIdx: t.batchRequestIdx }); if (t instanceof _.PrismaClientInitializationError) throw new _.PrismaClientInitializationError(u, this.client._clientVersion); if (t instanceof _.PrismaClientRustPanicError) throw new _.PrismaClientRustPanicError(u, this.client._clientVersion); } throw t.clientVersion = this.client._clientVersion, t; } resolveErrorMeta(t, r5, n3) { if (r5 !== "P2002" || typeof t?.table != "string") return n3 ? { modelName: n3, ...t } : t; let i5 = { ...t }; delete i5.table; let o3 = Bl(this.client._runtimeDataModel, t.table) ?? (typeof i5.modelName == "string" ? i5.modelName : n3); return o3 !== void 0 ? { ...i5, modelName: o3 } : i5; } sanitizeMessage(t) { return this.client._errorFormat && this.client._errorFormat !== "pretty" ? ut(t) : t; } unpack(t, r5, n3) { if (!t || (t.data && (t = t.data), !t)) return t; let i5 = Object.keys(t)[0], o3 = Object.values(t)[0], s2 = Rm(r5), a5 = Wn(o3, s2), u = i5 === "queryRaw" ? Tn(a5) : Ae(a5); return n3 ? n3(u) : u; } get [Symbol.toStringTag]() { return "RequestHandler"; } }; function vm(e5) { if (e5) { if (e5.kind === "batch") return { kind: "batch", options: { isolationLevel: e5.isolationLevel, maxWait: e5.maxWait, timeout: e5.timeout } }; if (e5.kind === "itx") return { kind: "itx", options: Jl(e5) }; $e(e5, "Unknown transaction kind"); } } __name(vm, "vm"); function Jl(e5) { return { id: e5.id, payload: e5.payload }; } __name(Jl, "Jl"); function Sm(e5, t) { return (0, Ql.hasBatchIndex)(e5) && t?.kind === "batch" && e5.batchRequestIdx !== t.index; } __name(Sm, "Sm"); function Am(e5) { return e5.code === "P2009" || e5.code === "P2012"; } __name(Am, "Am"); function Gl(e5) { if (e5.kind === "Union") return { kind: "Union", errors: e5.errors.map(Gl) }; if (Array.isArray(e5.selectionPath)) { let [, ...t] = e5.selectionPath; return { ...e5, selectionPath: t }; } return e5; } __name(Gl, "Gl"); function Rm(e5) { let t = []; for (let r5 = 1; r5 < e5.length; r5 += 2) t.push(e5[r5]); return t; } __name(Rm, "Rm"); var Yi = mn; var Zl = Pe(qn()); var j5 = class extends Error { static { __name(this, "j"); } constructor(t) { super(t + ` Read more at https://pris.ly/d/client-constructor`), this.name = "PrismaClientConstructorValidationError"; } get [Symbol.toStringTag]() { return "PrismaClientConstructorValidationError"; } }; Bt(j5, "PrismaClientConstructorValidationError"); var zl = ["errorFormat", "adapter", "accelerateUrl", "log", "transactionOptions", "omit", "comments", "queryPlanCacheMaxSize", "__internal"]; var Hl = ["pretty", "colorless", "minimal"]; var Wl = ["info", "query", "warn", "error"]; var Cm = { adapter: /* @__PURE__ */ __name(() => { }, "adapter"), accelerateUrl: /* @__PURE__ */ __name((e5) => { if (e5 !== void 0) { if (typeof e5 != "string") throw new j5(`Invalid value ${JSON.stringify(e5)} for "accelerateUrl" provided to PrismaClient constructor.`); if (e5.trim().length === 0) throw new j5('"accelerateUrl" provided to PrismaClient constructor must be a non-empty string.'); } }, "accelerateUrl"), errorFormat: /* @__PURE__ */ __name((e5) => { if (e5) { if (typeof e5 != "string") throw new j5(`Invalid value ${JSON.stringify(e5)} for "errorFormat" provided to PrismaClient constructor.`); if (!Hl.includes(e5)) { let t = hr(e5, Hl); throw new j5(`Invalid errorFormat ${e5} provided to PrismaClient constructor.${t}`); } } }, "errorFormat"), log: /* @__PURE__ */ __name((e5) => { if (!e5) return; if (!Array.isArray(e5)) throw new j5(`Invalid value ${JSON.stringify(e5)} for "log" provided to PrismaClient constructor.`); function t(r5) { if (typeof r5 == "string" && !Wl.includes(r5)) { let n3 = hr(r5, Wl); throw new j5(`Invalid log level "${r5}" provided to PrismaClient constructor.${n3}`); } } __name(t, "t"); for (let r5 of e5) { t(r5); let n3 = { level: t, emit: /* @__PURE__ */ __name((i5) => { let o3 = ["stdout", "event"]; if (!o3.includes(i5)) { let s2 = hr(i5, o3); throw new j5(`Invalid value ${JSON.stringify(i5)} for "emit" in logLevel provided to PrismaClient constructor.${s2}`); } }, "emit") }; if (r5 && typeof r5 == "object") for (let [i5, o3] of Object.entries(r5)) if (n3[i5]) n3[i5](o3); else throw new j5(`Invalid property ${i5} for "log" provided to PrismaClient constructor`); } }, "log"), transactionOptions: /* @__PURE__ */ __name((e5) => { if (!e5) return; let t = e5.maxWait; if (t != null && t <= 0) throw new j5(`Invalid value ${t} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`); let r5 = e5.timeout; if (r5 != null && r5 <= 0) throw new j5(`Invalid value ${r5} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`); }, "transactionOptions"), omit: /* @__PURE__ */ __name((e5, t) => { if (typeof e5 != "object") throw new j5('"omit" option is expected to be an object.'); if (e5 === null) throw new j5('"omit" option can not be `null`'); let r5 = []; for (let [n3, i5] of Object.entries(e5)) { let o3 = Om(n3, t.runtimeDataModel); if (!o3) { r5.push({ kind: "UnknownModel", modelKey: n3 }); continue; } for (let [s2, a5] of Object.entries(i5)) { let u = o3.fields.find((m3) => m3.name === s2); if (!u) { r5.push({ kind: "UnknownField", modelKey: n3, fieldName: s2 }); continue; } if (u.relationName) { r5.push({ kind: "RelationInOmit", modelKey: n3, fieldName: s2 }); continue; } typeof a5 != "boolean" && r5.push({ kind: "InvalidFieldValue", modelKey: n3, fieldName: s2 }); } } if (r5.length > 0) throw new j5(Nm(e5, r5)); }, "omit"), queryPlanCacheMaxSize: /* @__PURE__ */ __name((e5) => { if (e5 !== void 0) { if (typeof e5 != "number") throw new j5(`Invalid value ${JSON.stringify(e5)} for "queryPlanCacheMaxSize" provided to PrismaClient constructor. Expected a number.`); if (!Number.isInteger(e5)) throw new j5(`Invalid value ${e5} for "queryPlanCacheMaxSize" provided to PrismaClient constructor. Expected an integer.`); if (e5 < 0) throw new j5(`Invalid value ${e5} for "queryPlanCacheMaxSize" provided to PrismaClient constructor. Cache size needs to be greater or equal to 0.`); } }, "queryPlanCacheMaxSize"), comments: /* @__PURE__ */ __name((e5) => { if (e5 !== void 0) { if (!Array.isArray(e5)) throw new j5(`Invalid value ${JSON.stringify(e5)} for "comments" provided to PrismaClient constructor. Expected an array of SQL commenter plugins.`); for (let t = 0; t < e5.length; t++) if (typeof e5[t] != "function") throw new j5(`Invalid value at index ${t} for "comments" provided to PrismaClient constructor. Each plugin must be a function.`); } }, "comments"), __internal: /* @__PURE__ */ __name((e5) => { if (!e5) return; let t = ["debug", "engine", "configOverride"]; if (typeof e5 != "object") throw new j5(`Invalid value ${JSON.stringify(e5)} for "__internal" to PrismaClient constructor`); for (let [r5] of Object.entries(e5)) if (!t.includes(r5)) { let n3 = hr(r5, t); throw new j5(`Invalid property ${JSON.stringify(r5)} for "__internal" provided to PrismaClient constructor.${n3}`); } }, "__internal") }; function Im(e5) { let t = e5.adapter !== void 0, r5 = e5.accelerateUrl !== void 0; if (t && r5) throw new j5('The "adapter" and "accelerateUrl" options are mutually exclusive. Please provide only one of them.'); if (!t && !r5) throw new j5(`PrismaClient requires a driver adapter to connect to your database, but none was provided. Pass a driver adapter to the PrismaClient constructor, for example: import { PrismaPg } from '@prisma/adapter-pg' import { PrismaClient } from './generated/prisma/client' const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL }) const prisma = new PrismaClient({ adapter }) Learn more about driver adapters: https://pris.ly/d/driver-adapters If you use Prisma Accelerate instead of connecting to your database directly, pass \`accelerateUrl\` to the PrismaClient constructor instead of \`adapter\`.`); } __name(Im, "Im"); function Xl(e5, t) { for (let [r5, n3] of Object.entries(e5)) { if (!zl.includes(r5)) { let i5 = hr(r5, zl); throw new j5(`Unknown property ${r5} provided to PrismaClient constructor.${i5}`); } Cm[r5](n3, t); } Im(e5); } __name(Xl, "Xl"); function hr(e5, t) { if (t.length === 0 || typeof e5 != "string") return ""; let r5 = km(e5, t); return r5 ? ` Did you mean "${r5}"?` : ""; } __name(hr, "hr"); function km(e5, t) { if (t.length === 0) return null; let r5 = t.map((i5) => ({ value: i5, distance: (0, Zl.default)(e5, i5) })); r5.sort((i5, o3) => i5.distance < o3.distance ? -1 : 1); let n3 = r5[0]; return n3.distance < 3 ? n3.value : null; } __name(km, "km"); function Om(e5, t) { return Kl(t.models, e5) ?? Kl(t.types, e5); } __name(Om, "Om"); function Kl(e5, t) { let r5 = Object.keys(e5).find((n3) => qe(n3) === t); if (r5) return e5[r5]; } __name(Kl, "Kl"); function Nm(e5, t) { let r5 = bt(e5); for (let o3 of t) switch (o3.kind) { case "UnknownModel": r5.arguments.getField(o3.modelKey)?.markAsError(), r5.addErrorMessage(() => `Unknown model name: ${o3.modelKey}.`); break; case "UnknownField": r5.arguments.getDeepField([o3.modelKey, o3.fieldName])?.markAsError(), r5.addErrorMessage(() => `Model "${o3.modelKey}" does not have a field named "${o3.fieldName}".`); break; case "RelationInOmit": r5.arguments.getDeepField([o3.modelKey, o3.fieldName])?.markAsError(), r5.addErrorMessage(() => 'Relations are already excluded by default and can not be specified in "omit".'); break; case "InvalidFieldValue": r5.arguments.getDeepFieldValue([o3.modelKey, o3.fieldName])?.markAsError(), r5.addErrorMessage(() => "Omit field option value must be a boolean."); break; } let { message: n3, args: i5 } = Mr(r5, "colorless"); return `Error validating "omit" option: ${i5} ${n3}`; } __name(Nm, "Nm"); var Yl = require_dist(); function eu(e5) { return e5.length === 0 ? Promise.resolve([]) : new Promise((t, r5) => { let n3 = new Array(e5.length), i5 = null, o3 = false, s2 = 0, a5 = /* @__PURE__ */ __name(() => { o3 || (s2++, s2 === e5.length && (o3 = true, i5 ? r5(i5) : t(n3))); }, "a"), u = /* @__PURE__ */ __name((m3) => { o3 || (o3 = true, r5(m3)); }, "u"); for (let m3 = 0; m3 < e5.length; m3++) e5[m3].then((P) => { n3[m3] = P, a5(); }, (P) => { if (!(0, Yl.hasBatchIndex)(P)) { u(P); return; } P.batchRequestIdx === m3 ? u(P) : (i5 || (i5 = P), a5()); }); }); } __name(eu, "eu"); var kt = K2("prisma:client"); typeof globalThis == "object" && (globalThis.NODE_CLIENT = true); var Dm = { requestArgsToMiddlewareArgs: /* @__PURE__ */ __name((e5) => e5, "requestArgsToMiddlewareArgs"), middlewareArgsToRequestArgs: /* @__PURE__ */ __name((e5) => e5, "middlewareArgsToRequestArgs") }; var su = /* @__PURE__ */ Symbol.for("prisma.client.transaction.scope_context"); function tu(e5) { let r5 = e5[su]; if (r5 === void 0) return { kind: "top-level" }; if (Mm(r5)) return r5; throw new Error("Internal error: inconsistent transaction scope context."); } __name(tu, "tu"); function Mm(e5) { if (typeof e5 != "object" || e5 === null) return false; let t = e5; return t.kind === "nested" && typeof t.txId == "string" && typeof t.scopeId == "string" && Fm(t.scopeState); } __name(Mm, "Mm"); function Fm(e5) { return typeof e5 != "object" || e5 === null ? false : Array.isArray(e5.stack); } __name(Fm, "Fm"); function _m4() { return typeof globalThis.crypto?.randomUUID == "function" ? globalThis.crypto.randomUUID() : `${Date.now()}-${Math.random().toString(16).slice(2)}`; } __name(_m4, "_m"); var $m = { id: 0, nextId() { return ++this.id; } }; function au(e5) { class t { static { __name(this, "t"); } _originalClient = this; _runtimeDataModel; _requestHandler; _connectionPromise; _disconnectionPromise; _engineConfig; _accelerateEngineConfig; _clientVersion; _errorFormat; _tracingHelper; _previewFeatures; _activeProvider; _globalOmit; _extensions; _engine; _appliedParent; _createPrismaPromise = Hi(); constructor(n3) { if (!n3) throw new _.PrismaClientInitializationError(`PrismaClient was instantiated without any options. A driver adapter is required to connect to your database. Pass a driver adapter to the PrismaClient constructor, for example: import { PrismaPg } from '@prisma/adapter-pg' import { PrismaClient } from './generated/prisma/client' const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL }) const prisma = new PrismaClient({ adapter }) Learn more about driver adapters: https://pris.ly/d/driver-adapters If you use Prisma Accelerate instead of connecting to your database directly, pass \`accelerateUrl\` to the PrismaClient constructor instead of \`adapter\`.`, Yi); e5 = n3.__internal?.configOverride?.(e5) ?? e5, Xl(n3, e5); let i5 = new ou.EventEmitter().on("error", () => { }); this._extensions = Pt.empty(), this._previewFeatures = e5.previewFeatures, this._clientVersion = e5.clientVersion ?? Yi, this._activeProvider = e5.activeProvider, this._globalOmit = n3?.omit, this._tracingHelper = Vl(); let o3; if (n3.adapter) { o3 = n3.adapter; let s2 = e5.activeProvider === "postgresql" || e5.activeProvider === "cockroachdb" ? "postgres" : e5.activeProvider; if (o3.provider !== s2) throw new _.PrismaClientInitializationError(`The Driver Adapter \`${o3.adapterName}\`, based on \`${o3.provider}\`, is not compatible with the provider \`${s2}\` specified in the Prisma schema.`, this._clientVersion); } try { let s2 = n3 ?? {}, u = (s2.__internal ?? {}).debug === true; if (u && K2.enable("prisma:client"), s2.errorFormat ? this._errorFormat = s2.errorFormat : process.env.NODE_ENV === "production" ? this._errorFormat = "minimal" : process.env.NO_COLOR ? this._errorFormat = "colorless" : this._errorFormat = "colorless", this._runtimeDataModel = e5.runtimeDataModel, this._engineConfig = { enableDebugLogs: u, logLevel: s2.log && Ul(s2.log), logQueries: s2.log && !!(typeof s2.log == "string" ? s2.log === "query" : s2.log.find((m3) => typeof m3 == "string" ? m3 === "query" : m3.level === "query")), compilerWasm: e5.compilerWasm, clientVersion: e5.clientVersion, previewFeatures: this._previewFeatures, activeProvider: e5.activeProvider, inlineSchema: e5.inlineSchema, tracingHelper: this._tracingHelper, transactionOptions: { maxWait: s2.transactionOptions?.maxWait ?? 2e3, timeout: s2.transactionOptions?.timeout ?? 5e3, isolationLevel: s2.transactionOptions?.isolationLevel }, logEmitter: i5, adapter: o3, accelerateUrl: s2.accelerateUrl, sqlCommenters: s2.comments, parameterizationSchema: e5.parameterizationSchema, runtimeDataModel: e5.runtimeDataModel, queryPlanCacheMaxSize: n3.queryPlanCacheMaxSize }, this._accelerateEngineConfig = Object.create(this._engineConfig), this._accelerateEngineConfig.accelerateUtils = { resolveDatasourceUrl: /* @__PURE__ */ __name(() => { if (s2.accelerateUrl) return s2.accelerateUrl; throw new _.PrismaClientInitializationError(`\`accelerateUrl\` is required when using \`@prisma/extension-accelerate\`: new PrismaClient({ accelerateUrl: "prisma://...", }).$extends(withAccelerate()) `, e5.clientVersion); }, "resolveDatasourceUrl") }, kt("clientVersion", e5.clientVersion), this._engine = vl(this._engineConfig), this._requestHandler = new vn(this, i5), s2.log) for (let m3 of s2.log) { let P = typeof m3 == "string" ? m3 : m3.emit === "stdout" ? m3.level : null; P && this.$on(P, (T2) => { Ut.log(`${Ut.tags[P] ?? ""}`, T2.message || T2.query); }); } } catch (s2) { throw s2.clientVersion = this._clientVersion, s2; } return this._appliedParent = Yt(this); } get [Symbol.toStringTag]() { return "PrismaClient"; } $on(n3, i5) { return n3 === "beforeExit" ? this._engine.onBeforeExit(i5) : n3 && this._engineConfig.logEmitter.on(n3, i5), this; } $connect() { try { return this._engine.start(); } catch (n3) { throw n3.clientVersion = this._clientVersion, n3; } } async $disconnect() { try { await this._engine.stop(); } catch (n3) { throw n3.clientVersion = this._clientVersion, n3; } finally { yo(); } } $executeRawInternal(n3, i5, o3, s2) { let a5 = this._activeProvider; return this._request({ action: "executeRaw", args: o3, transaction: n3, clientMethod: i5, argsMapper: zi({ clientMethod: i5, activeProvider: a5, clientVersion: this._clientVersion }), callsite: je(this._errorFormat), dataPath: [], middlewareArgsMapper: s2 }); } $executeRaw(n3, ...i5) { return this._createPrismaPromise((o3) => { if (n3.raw !== void 0 || n3.sql !== void 0) { let [s2, a5] = ru(n3, i5); return Gi(this._activeProvider, s2.text, s2.values, Array.isArray(n3) ? "prisma.$executeRaw``" : "prisma.$executeRaw(sql``)"), this.$executeRawInternal(o3, "$executeRaw", s2, a5); } throw new _.PrismaClientValidationError("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n", { clientVersion: this._clientVersion }); }); } $executeRawUnsafe(n3, ...i5) { return this._createPrismaPromise((o3) => (Gi(this._activeProvider, n3, i5, "prisma.$executeRawUnsafe(, [...values])"), this.$executeRawInternal(o3, "$executeRawUnsafe", [n3, ...i5]))); } $runCommandRaw(n3) { if (e5.activeProvider !== "mongodb") throw new _.PrismaClientValidationError(`The ${e5.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`, { clientVersion: this._clientVersion }); return this._createPrismaPromise((i5) => this._request({ args: n3, clientMethod: "$runCommandRaw", dataPath: [], action: "runCommandRaw", argsMapper: Sl, callsite: je(this._errorFormat), transaction: i5 })); } async $queryRawInternal(n3, i5, o3, s2) { let a5 = this._activeProvider; return this._request({ action: "queryRaw", args: o3, transaction: n3, clientMethod: i5, argsMapper: zi({ clientMethod: i5, activeProvider: a5, clientVersion: this._clientVersion }), callsite: je(this._errorFormat), dataPath: [], middlewareArgsMapper: s2 }); } $queryRaw(n3, ...i5) { return this._createPrismaPromise((o3) => { if (n3.raw !== void 0 || n3.sql !== void 0) return this.$queryRawInternal(o3, "$queryRaw", ...ru(n3, i5)); throw new _.PrismaClientValidationError("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n", { clientVersion: this._clientVersion }); }); } $queryRawTyped(n3) { return this._createPrismaPromise((i5) => { if (!this._hasPreviewFlag("typedSql")) throw new _.PrismaClientValidationError("`typedSql` preview feature must be enabled in order to access $queryRawTyped API", { clientVersion: this._clientVersion }); return this.$queryRawInternal(i5, "$queryRawTyped", n3); }); } $queryRawUnsafe(n3, ...i5) { return this._createPrismaPromise((o3) => this.$queryRawInternal(o3, "$queryRawUnsafe", [n3, ...i5])); } _transactionWithArray({ promises: n3, options: i5 }) { let o3 = $m.nextId(), s2 = ql(n3.length), a5 = n3.map((u, m3) => { if (u?.[Symbol.toStringTag] !== "PrismaPromise") throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function."); let P = i5?.isolationLevel ?? this._engineConfig.transactionOptions.isolationLevel, T2 = { kind: "batch", id: o3, index: m3, isolationLevel: P, maxWait: i5?.maxWait ?? this._engineConfig.transactionOptions.maxWait, timeout: i5?.timeout ?? this._engineConfig.transactionOptions.timeout, lock: s2 }; return u.requestTransaction?.(T2) ?? u; }); return eu(a5); } async _transactionWithCallback({ callback: n3, options: i5 = {} }) { let o3 = tu(this), s2 = o3.kind === "nested", a5 = s2 ? o3.scopeState : { stack: [] }, u = a5.stack, m3 = _m4(); if (s2 && u.at(-1) !== o3.scopeId) throw new Error("Concurrent nested transactions are not supported"); u.push(m3); let P = { traceparent: this._tracingHelper.getTraceParent() }, T2 = { maxWait: i5?.maxWait ?? this._engineConfig.transactionOptions.maxWait, timeout: i5?.timeout ?? this._engineConfig.transactionOptions.timeout, isolationLevel: i5?.isolationLevel ?? this._engineConfig.transactionOptions.isolationLevel, newTxId: s2 ? o3.txId : void 0 }, S; try { S = await this._engine.transaction("start", P, T2); } catch (A) { throw u.at(-1) === m3 && u.pop(), A; } let I; try { let A = { kind: "itx", ...S }; if (I = await n3(this._createItxClient(A, m3, a5)), s2) { if (u.at(-1) !== m3) throw new Error("Nested transactions must be closed in reverse order of creation."); } else if (u.length !== 1) throw new Error("Cannot close transaction while a nested transaction is still active."); await this._engine.transaction("commit", P, S); } catch (A) { let L = u.at(-1) !== m3 ? Math.max(1, u.length) : 1; for (let q3 = 0; q3 < L; q3++) await this._engine.transaction("rollback", P, S).catch((E) => { kt("rollback attempt %d/%d failed: %O", q3 + 1, L, E); }); throw A; } finally { u.at(-1) === m3 ? u.pop() : u.length = 0; } return I; } _createItxClient(n3, i5, o3) { let s2 = { kind: "nested", txId: n3.id, scopeId: i5, scopeState: o3 }; return ve(Yt(ve(As(this), [ae("_appliedParent", () => this._appliedParent._createItxClient(n3, i5, o3)), ae("_createPrismaPromise", () => Hi(n3)), ae(su, () => s2)])), [Et(Os)]); } $transaction(n3, i5) { let o3; typeof n3 == "function" ? this._engineConfig.adapter?.adapterName === "@prisma/adapter-d1" ? o3 = /* @__PURE__ */ __name(() => { throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable."); }, "o") : e5.activeProvider === "mongodb" && tu(this).kind === "nested" ? o3 = /* @__PURE__ */ __name(() => { throw new _.PrismaClientValidationError(`The ${e5.activeProvider} provider does not support nested transactions`, { clientVersion: this._clientVersion }); }, "o") : o3 = /* @__PURE__ */ __name(() => this._transactionWithCallback({ callback: n3, options: i5 }), "o") : o3 = /* @__PURE__ */ __name(() => this._transactionWithArray({ promises: n3, options: i5 }), "o"); let s2 = { name: "transaction", attributes: { method: "$transaction" } }; return this._tracingHelper.runInChildSpan(s2, o3); } _request(n3) { n3.otelParentCtx = this._tracingHelper.getActiveContext(); let i5 = n3.middlewareArgsMapper ?? Dm, o3 = { args: i5.requestArgsToMiddlewareArgs(n3.args), dataPath: n3.dataPath, runInTransaction: !!n3.transaction, action: n3.action, model: n3.model }, s2 = { operation: { name: "operation", attributes: { method: o3.action, model: o3.model, name: o3.model ? `${o3.model}.${o3.action}` : o3.action } } }, a5 = /* @__PURE__ */ __name(async (u) => { let { runInTransaction: m3, args: P, ...T2 } = u, S = { ...n3, ...T2 }; P && (S.args = i5.middlewareArgsToRequestArgs(P)), n3.transaction !== void 0 && m3 === false && delete S.transaction; let I = await Fs(this, S); if (!S.model) return I; let A = qs({ dataPath: S.dataPath, modelName: S.model, args: S.args, runtimeDataModel: this._runtimeDataModel }); return ks({ result: I, modelName: A.modelName, args: A.args, extensions: this._extensions, runtimeDataModel: this._runtimeDataModel, globalOmit: this._globalOmit }); }, "a"); return this._tracingHelper.runInChildSpan(s2.operation, () => new iu.AsyncResource("prisma-client-request").runInAsyncScope(() => a5(o3))); } async _executeRequest({ args: n3, clientMethod: i5, dataPath: o3, callsite: s2, action: a5, model: u, argsMapper: m3, transaction: P, unpacker: T2, otelParentCtx: S, customDataProxyFetch: I }) { try { n3 = m3 ? m3(n3) : n3; let A = { name: "serialize" }, M = this._tracingHelper.runInChildSpan(A, () => Vr({ modelName: u, runtimeDataModel: this._runtimeDataModel, action: a5, args: n3, clientMethod: i5, callsite: s2, extensions: this._extensions, errorFormat: this._errorFormat, clientVersion: this._clientVersion, previewFeatures: this._previewFeatures, globalOmit: this._globalOmit })); return K2.enabled("prisma:client") && (kt("Prisma Client call:"), kt(`prisma.${i5}(${gs(n3)})`), kt("Generated request:"), kt(JSON.stringify(M, null, 2) + ` `)), P?.kind === "batch" && await P.lock, this._requestHandler.request({ protocolQuery: M, modelName: u, action: a5, clientMethod: i5, dataPath: o3, callsite: s2, args: n3, extensions: this._extensions, transaction: P, unpacker: T2, otelParentCtx: S, otelChildCtx: this._tracingHelper.getActiveContext(), globalOmit: this._globalOmit, customDataProxyFetch: I }); } catch (A) { throw A.clientVersion = this._clientVersion, A; } } _hasPreviewFlag(n3) { return !!this._engineConfig.previewFeatures?.includes(n3); } $extends = Rs; } return t; } __name(au, "au"); function ru(e5, t) { return Lm(e5) ? [new nu.Sql(e5, t), Dl] : [e5, Ml]; } __name(ru, "ru"); function Lm(e5) { return Array.isArray(e5) && Array.isArray(e5.raw); } __name(Lm, "Lm"); var Vm = /* @__PURE__ */ new Set(["toJSON", "$$typeof", "asymmetricMatch", Symbol.iterator, Symbol.toStringTag, Symbol.isConcatSpreadable, Symbol.toPrimitive]); function lu(e5) { return new Proxy(e5, { get(t, r5) { if (r5 in t) return t[r5]; if (!Vm.has(r5)) throw new TypeError(`Invalid enum value: ${String(r5)}`); } }); } __name(lu, "lu"); var qm = /* @__PURE__ */ __name(() => globalThis.process?.release?.name === "node", "qm"); var Um = /* @__PURE__ */ __name(() => !!globalThis.Bun || !!globalThis.process?.versions?.bun, "Um"); var jm = /* @__PURE__ */ __name(() => !!globalThis.Deno, "jm"); var Bm = /* @__PURE__ */ __name(() => typeof globalThis.Netlify == "object", "Bm"); var Qm = /* @__PURE__ */ __name(() => typeof globalThis.EdgeRuntime == "object", "Qm"); var Jm = /* @__PURE__ */ __name(() => globalThis.navigator?.userAgent === "Cloudflare-Workers", "Jm"); function Gm() { return [[Bm, "netlify"], [Qm, "edge-light"], [Jm, "workerd"], [jm, "deno"], [Um, "bun"], [qm, "node"]].flatMap((r5) => r5[0]() ? [r5[1]] : []).at(0) ?? ""; } __name(Gm, "Gm"); var zm = { node: "Node.js", workerd: "Cloudflare Workers", deno: "Deno and Deno Deploy", netlify: "Netlify Edge Functions", "edge-light": "Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)" }; function uu() { let e5 = Gm(); return { id: e5, prettyName: zm[e5] || e5, isEdge: ["workerd", "deno", "netlify", "edge-light"].includes(e5) }; } __name(uu, "uu"); var _ = require_dist(); var Fe = require_dist(); var ee = require_dist(); var cu = require_dist(); } }); // ../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js var require_safe_buffer = __commonJS({ "../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js"(exports, module) { var buffer = __require("buffer"); var Buffer2 = buffer.Buffer; function copyProps(src, dst) { for (var key in src) { dst[key] = src[key]; } } __name(copyProps, "copyProps"); if (Buffer2.from && Buffer2.alloc && Buffer2.allocUnsafe && Buffer2.allocUnsafeSlow) { module.exports = buffer; } else { copyProps(buffer, exports); exports.Buffer = SafeBuffer; } function SafeBuffer(arg, encodingOrOffset, length) { return Buffer2(arg, encodingOrOffset, length); } __name(SafeBuffer, "SafeBuffer"); SafeBuffer.prototype = Object.create(Buffer2.prototype); copyProps(Buffer2, SafeBuffer); SafeBuffer.from = function(arg, encodingOrOffset, length) { if (typeof arg === "number") { throw new TypeError("Argument must not be a number"); } return Buffer2(arg, encodingOrOffset, length); }; SafeBuffer.alloc = function(size, fill, encoding) { if (typeof size !== "number") { throw new TypeError("Argument must be a number"); } var buf = Buffer2(size); if (fill !== void 0) { if (typeof encoding === "string") { buf.fill(fill, encoding); } else { buf.fill(fill); } } else { buf.fill(0); } return buf; }; SafeBuffer.allocUnsafe = function(size) { if (typeof size !== "number") { throw new TypeError("Argument must be a number"); } return Buffer2(size); }; SafeBuffer.allocUnsafeSlow = function(size) { if (typeof size !== "number") { throw new TypeError("Argument must be a number"); } return buffer.SlowBuffer(size); }; } }); // ../../node_modules/.pnpm/jws@4.0.1/node_modules/jws/lib/data-stream.js var require_data_stream = __commonJS({ "../../node_modules/.pnpm/jws@4.0.1/node_modules/jws/lib/data-stream.js"(exports, module) { var Buffer2 = require_safe_buffer().Buffer; var Stream = __require("stream"); var util = __require("util"); function DataStream(data) { this.buffer = null; this.writable = true; this.readable = true; if (!data) { this.buffer = Buffer2.alloc(0); return this; } if (typeof data.pipe === "function") { this.buffer = Buffer2.alloc(0); data.pipe(this); return this; } if (data.length || typeof data === "object") { this.buffer = data; this.writable = false; process.nextTick(function() { this.emit("end", data); this.readable = false; this.emit("close"); }.bind(this)); return this; } throw new TypeError("Unexpected data type (" + typeof data + ")"); } __name(DataStream, "DataStream"); util.inherits(DataStream, Stream); DataStream.prototype.write = /* @__PURE__ */ __name(function write(data) { this.buffer = Buffer2.concat([this.buffer, Buffer2.from(data)]); this.emit("data", data); }, "write"); DataStream.prototype.end = /* @__PURE__ */ __name(function end(data) { if (data) this.write(data); this.emit("end", data); this.emit("close"); this.writable = false; this.readable = false; }, "end"); module.exports = DataStream; } }); // ../../node_modules/.pnpm/ecdsa-sig-formatter@1.0.11/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js var require_param_bytes_for_alg = __commonJS({ "../../node_modules/.pnpm/ecdsa-sig-formatter@1.0.11/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js"(exports, module) { "use strict"; function getParamSize(keySize) { var result = (keySize / 8 | 0) + (keySize % 8 === 0 ? 0 : 1); return result; } __name(getParamSize, "getParamSize"); var paramBytesForAlg = { ES256: getParamSize(256), ES384: getParamSize(384), ES512: getParamSize(521) }; function getParamBytesForAlg(alg) { var paramBytes = paramBytesForAlg[alg]; if (paramBytes) { return paramBytes; } throw new Error('Unknown algorithm "' + alg + '"'); } __name(getParamBytesForAlg, "getParamBytesForAlg"); module.exports = getParamBytesForAlg; } }); // ../../node_modules/.pnpm/ecdsa-sig-formatter@1.0.11/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js var require_ecdsa_sig_formatter = __commonJS({ "../../node_modules/.pnpm/ecdsa-sig-formatter@1.0.11/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js"(exports, module) { "use strict"; var Buffer2 = require_safe_buffer().Buffer; var getParamBytesForAlg = require_param_bytes_for_alg(); var MAX_OCTET = 128; var CLASS_UNIVERSAL = 0; var PRIMITIVE_BIT = 32; var TAG_SEQ = 16; var TAG_INT = 2; var ENCODED_TAG_SEQ = TAG_SEQ | PRIMITIVE_BIT | CLASS_UNIVERSAL << 6; var ENCODED_TAG_INT = TAG_INT | CLASS_UNIVERSAL << 6; function base64Url(base643) { return base643.replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_"); } __name(base64Url, "base64Url"); function signatureAsBuffer(signature) { if (Buffer2.isBuffer(signature)) { return signature; } else if ("string" === typeof signature) { return Buffer2.from(signature, "base64"); } throw new TypeError("ECDSA signature must be a Base64 string or a Buffer"); } __name(signatureAsBuffer, "signatureAsBuffer"); function derToJose(signature, alg) { signature = signatureAsBuffer(signature); var paramBytes = getParamBytesForAlg(alg); var maxEncodedParamLength = paramBytes + 1; var inputLength = signature.length; var offset = 0; if (signature[offset++] !== ENCODED_TAG_SEQ) { throw new Error('Could not find expected "seq"'); } var seqLength = signature[offset++]; if (seqLength === (MAX_OCTET | 1)) { seqLength = signature[offset++]; } if (inputLength - offset < seqLength) { throw new Error('"seq" specified length of "' + seqLength + '", only "' + (inputLength - offset) + '" remaining'); } if (signature[offset++] !== ENCODED_TAG_INT) { throw new Error('Could not find expected "int" for "r"'); } var rLength = signature[offset++]; if (inputLength - offset - 2 < rLength) { throw new Error('"r" specified length of "' + rLength + '", only "' + (inputLength - offset - 2) + '" available'); } if (maxEncodedParamLength < rLength) { throw new Error('"r" specified length of "' + rLength + '", max of "' + maxEncodedParamLength + '" is acceptable'); } var rOffset = offset; offset += rLength; if (signature[offset++] !== ENCODED_TAG_INT) { throw new Error('Could not find expected "int" for "s"'); } var sLength = signature[offset++]; if (inputLength - offset !== sLength) { throw new Error('"s" specified length of "' + sLength + '", expected "' + (inputLength - offset) + '"'); } if (maxEncodedParamLength < sLength) { throw new Error('"s" specified length of "' + sLength + '", max of "' + maxEncodedParamLength + '" is acceptable'); } var sOffset = offset; offset += sLength; if (offset !== inputLength) { throw new Error('Expected to consume entire buffer, but "' + (inputLength - offset) + '" bytes remain'); } var rPadding = paramBytes - rLength, sPadding = paramBytes - sLength; var dst = Buffer2.allocUnsafe(rPadding + rLength + sPadding + sLength); for (offset = 0; offset < rPadding; ++offset) { dst[offset] = 0; } signature.copy(dst, offset, rOffset + Math.max(-rPadding, 0), rOffset + rLength); offset = paramBytes; for (var o3 = offset; offset < o3 + sPadding; ++offset) { dst[offset] = 0; } signature.copy(dst, offset, sOffset + Math.max(-sPadding, 0), sOffset + sLength); dst = dst.toString("base64"); dst = base64Url(dst); return dst; } __name(derToJose, "derToJose"); function countPadding(buf, start, stop) { var padding = 0; while (start + padding < stop && buf[start + padding] === 0) { ++padding; } var needsSign = buf[start + padding] >= MAX_OCTET; if (needsSign) { --padding; } return padding; } __name(countPadding, "countPadding"); function joseToDer(signature, alg) { signature = signatureAsBuffer(signature); var paramBytes = getParamBytesForAlg(alg); var signatureBytes = signature.length; if (signatureBytes !== paramBytes * 2) { throw new TypeError('"' + alg + '" signatures must be "' + paramBytes * 2 + '" bytes, saw "' + signatureBytes + '"'); } var rPadding = countPadding(signature, 0, paramBytes); var sPadding = countPadding(signature, paramBytes, signature.length); var rLength = paramBytes - rPadding; var sLength = paramBytes - sPadding; var rsBytes = 1 + 1 + rLength + 1 + 1 + sLength; var shortLength = rsBytes < MAX_OCTET; var dst = Buffer2.allocUnsafe((shortLength ? 2 : 3) + rsBytes); var offset = 0; dst[offset++] = ENCODED_TAG_SEQ; if (shortLength) { dst[offset++] = rsBytes; } else { dst[offset++] = MAX_OCTET | 1; dst[offset++] = rsBytes & 255; } dst[offset++] = ENCODED_TAG_INT; dst[offset++] = rLength; if (rPadding < 0) { dst[offset++] = 0; offset += signature.copy(dst, offset, 0, paramBytes); } else { offset += signature.copy(dst, offset, rPadding, paramBytes); } dst[offset++] = ENCODED_TAG_INT; dst[offset++] = sLength; if (sPadding < 0) { dst[offset++] = 0; signature.copy(dst, offset, paramBytes); } else { signature.copy(dst, offset, paramBytes + sPadding); } return dst; } __name(joseToDer, "joseToDer"); module.exports = { derToJose, joseToDer }; } }); // ../../node_modules/.pnpm/buffer-equal-constant-time@1.0.1/node_modules/buffer-equal-constant-time/index.js var require_buffer_equal_constant_time = __commonJS({ "../../node_modules/.pnpm/buffer-equal-constant-time@1.0.1/node_modules/buffer-equal-constant-time/index.js"(exports, module) { "use strict"; var Buffer2 = __require("buffer").Buffer; var SlowBuffer = __require("buffer").SlowBuffer; module.exports = bufferEq; function bufferEq(a5, b5) { if (!Buffer2.isBuffer(a5) || !Buffer2.isBuffer(b5)) { return false; } if (a5.length !== b5.length) { return false; } var c5 = 0; for (var i5 = 0; i5 < a5.length; i5++) { c5 |= a5[i5] ^ b5[i5]; } return c5 === 0; } __name(bufferEq, "bufferEq"); bufferEq.install = function() { Buffer2.prototype.equal = SlowBuffer.prototype.equal = /* @__PURE__ */ __name(function equal(that) { return bufferEq(this, that); }, "equal"); }; var origBufEqual = Buffer2.prototype.equal; var origSlowBufEqual = SlowBuffer.prototype.equal; bufferEq.restore = function() { Buffer2.prototype.equal = origBufEqual; SlowBuffer.prototype.equal = origSlowBufEqual; }; } }); // ../../node_modules/.pnpm/jwa@2.0.1/node_modules/jwa/index.js var require_jwa = __commonJS({ "../../node_modules/.pnpm/jwa@2.0.1/node_modules/jwa/index.js"(exports, module) { var Buffer2 = require_safe_buffer().Buffer; var crypto2 = __require("crypto"); var formatEcdsa = require_ecdsa_sig_formatter(); var util = __require("util"); var MSG_INVALID_ALGORITHM = '"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".'; var MSG_INVALID_SECRET = "secret must be a string or buffer"; var MSG_INVALID_VERIFIER_KEY = "key must be a string or a buffer"; var MSG_INVALID_SIGNER_KEY = "key must be a string, a buffer or an object"; var supportsKeyObjects = typeof crypto2.createPublicKey === "function"; if (supportsKeyObjects) { MSG_INVALID_VERIFIER_KEY += " or a KeyObject"; MSG_INVALID_SECRET += "or a KeyObject"; } function checkIsPublicKey(key) { if (Buffer2.isBuffer(key)) { return; } if (typeof key === "string") { return; } if (!supportsKeyObjects) { throw typeError(MSG_INVALID_VERIFIER_KEY); } if (typeof key !== "object") { throw typeError(MSG_INVALID_VERIFIER_KEY); } if (typeof key.type !== "string") { throw typeError(MSG_INVALID_VERIFIER_KEY); } if (typeof key.asymmetricKeyType !== "string") { throw typeError(MSG_INVALID_VERIFIER_KEY); } if (typeof key.export !== "function") { throw typeError(MSG_INVALID_VERIFIER_KEY); } } __name(checkIsPublicKey, "checkIsPublicKey"); function checkIsPrivateKey(key) { if (Buffer2.isBuffer(key)) { return; } if (typeof key === "string") { return; } if (typeof key === "object") { return; } throw typeError(MSG_INVALID_SIGNER_KEY); } __name(checkIsPrivateKey, "checkIsPrivateKey"); function checkIsSecretKey(key) { if (Buffer2.isBuffer(key)) { return; } if (typeof key === "string") { return key; } if (!supportsKeyObjects) { throw typeError(MSG_INVALID_SECRET); } if (typeof key !== "object") { throw typeError(MSG_INVALID_SECRET); } if (key.type !== "secret") { throw typeError(MSG_INVALID_SECRET); } if (typeof key.export !== "function") { throw typeError(MSG_INVALID_SECRET); } } __name(checkIsSecretKey, "checkIsSecretKey"); function fromBase642(base643) { return base643.replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_"); } __name(fromBase642, "fromBase64"); function toBase642(base64url3) { base64url3 = base64url3.toString(); var padding = 4 - base64url3.length % 4; if (padding !== 4) { for (var i5 = 0; i5 < padding; ++i5) { base64url3 += "="; } } return base64url3.replace(/\-/g, "+").replace(/_/g, "/"); } __name(toBase642, "toBase64"); function typeError(template) { var args = [].slice.call(arguments, 1); var errMsg = util.format.bind(util, template).apply(null, args); return new TypeError(errMsg); } __name(typeError, "typeError"); function bufferOrString(obj) { return Buffer2.isBuffer(obj) || typeof obj === "string"; } __name(bufferOrString, "bufferOrString"); function normalizeInput(thing) { if (!bufferOrString(thing)) thing = JSON.stringify(thing); return thing; } __name(normalizeInput, "normalizeInput"); function createHmacSigner(bits) { return /* @__PURE__ */ __name(function sign2(thing, secret) { checkIsSecretKey(secret); thing = normalizeInput(thing); var hmac = crypto2.createHmac("sha" + bits, secret); var sig = (hmac.update(thing), hmac.digest("base64")); return fromBase642(sig); }, "sign"); } __name(createHmacSigner, "createHmacSigner"); var bufferEqual; var timingSafeEqual = "timingSafeEqual" in crypto2 ? /* @__PURE__ */ __name(function timingSafeEqual2(a5, b5) { if (a5.byteLength !== b5.byteLength) { return false; } return crypto2.timingSafeEqual(a5, b5); }, "timingSafeEqual") : /* @__PURE__ */ __name(function timingSafeEqual2(a5, b5) { if (!bufferEqual) { bufferEqual = require_buffer_equal_constant_time(); } return bufferEqual(a5, b5); }, "timingSafeEqual"); function createHmacVerifier(bits) { return /* @__PURE__ */ __name(function verify2(thing, signature, secret) { var computedSig = createHmacSigner(bits)(thing, secret); return timingSafeEqual(Buffer2.from(signature), Buffer2.from(computedSig)); }, "verify"); } __name(createHmacVerifier, "createHmacVerifier"); function createKeySigner(bits) { return /* @__PURE__ */ __name(function sign2(thing, privateKey) { checkIsPrivateKey(privateKey); thing = normalizeInput(thing); var signer = crypto2.createSign("RSA-SHA" + bits); var sig = (signer.update(thing), signer.sign(privateKey, "base64")); return fromBase642(sig); }, "sign"); } __name(createKeySigner, "createKeySigner"); function createKeyVerifier(bits) { return /* @__PURE__ */ __name(function verify2(thing, signature, publicKey) { checkIsPublicKey(publicKey); thing = normalizeInput(thing); signature = toBase642(signature); var verifier = crypto2.createVerify("RSA-SHA" + bits); verifier.update(thing); return verifier.verify(publicKey, signature, "base64"); }, "verify"); } __name(createKeyVerifier, "createKeyVerifier"); function createPSSKeySigner(bits) { return /* @__PURE__ */ __name(function sign2(thing, privateKey) { checkIsPrivateKey(privateKey); thing = normalizeInput(thing); var signer = crypto2.createSign("RSA-SHA" + bits); var sig = (signer.update(thing), signer.sign({ key: privateKey, padding: crypto2.constants.RSA_PKCS1_PSS_PADDING, saltLength: crypto2.constants.RSA_PSS_SALTLEN_DIGEST }, "base64")); return fromBase642(sig); }, "sign"); } __name(createPSSKeySigner, "createPSSKeySigner"); function createPSSKeyVerifier(bits) { return /* @__PURE__ */ __name(function verify2(thing, signature, publicKey) { checkIsPublicKey(publicKey); thing = normalizeInput(thing); signature = toBase642(signature); var verifier = crypto2.createVerify("RSA-SHA" + bits); verifier.update(thing); return verifier.verify({ key: publicKey, padding: crypto2.constants.RSA_PKCS1_PSS_PADDING, saltLength: crypto2.constants.RSA_PSS_SALTLEN_DIGEST }, signature, "base64"); }, "verify"); } __name(createPSSKeyVerifier, "createPSSKeyVerifier"); function createECDSASigner(bits) { var inner = createKeySigner(bits); return /* @__PURE__ */ __name(function sign2() { var signature = inner.apply(null, arguments); signature = formatEcdsa.derToJose(signature, "ES" + bits); return signature; }, "sign"); } __name(createECDSASigner, "createECDSASigner"); function createECDSAVerifer(bits) { var inner = createKeyVerifier(bits); return /* @__PURE__ */ __name(function verify2(thing, signature, publicKey) { signature = formatEcdsa.joseToDer(signature, "ES" + bits).toString("base64"); var result = inner(thing, signature, publicKey); return result; }, "verify"); } __name(createECDSAVerifer, "createECDSAVerifer"); function createNoneSigner() { return /* @__PURE__ */ __name(function sign2() { return ""; }, "sign"); } __name(createNoneSigner, "createNoneSigner"); function createNoneVerifier() { return /* @__PURE__ */ __name(function verify2(thing, signature) { return signature === ""; }, "verify"); } __name(createNoneVerifier, "createNoneVerifier"); module.exports = /* @__PURE__ */ __name(function jwa(algorithm) { var signerFactories = { hs: createHmacSigner, rs: createKeySigner, ps: createPSSKeySigner, es: createECDSASigner, none: createNoneSigner }; var verifierFactories = { hs: createHmacVerifier, rs: createKeyVerifier, ps: createPSSKeyVerifier, es: createECDSAVerifer, none: createNoneVerifier }; var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/); if (!match) throw typeError(MSG_INVALID_ALGORITHM, algorithm); var algo = (match[1] || match[3]).toLowerCase(); var bits = match[2]; return { sign: signerFactories[algo](bits), verify: verifierFactories[algo](bits) }; }, "jwa"); } }); // ../../node_modules/.pnpm/jws@4.0.1/node_modules/jws/lib/tostring.js var require_tostring = __commonJS({ "../../node_modules/.pnpm/jws@4.0.1/node_modules/jws/lib/tostring.js"(exports, module) { var Buffer2 = __require("buffer").Buffer; module.exports = /* @__PURE__ */ __name(function toString(obj) { if (typeof obj === "string") return obj; if (typeof obj === "number" || Buffer2.isBuffer(obj)) return obj.toString(); return JSON.stringify(obj); }, "toString"); } }); // ../../node_modules/.pnpm/jws@4.0.1/node_modules/jws/lib/sign-stream.js var require_sign_stream = __commonJS({ "../../node_modules/.pnpm/jws@4.0.1/node_modules/jws/lib/sign-stream.js"(exports, module) { var Buffer2 = require_safe_buffer().Buffer; var DataStream = require_data_stream(); var jwa = require_jwa(); var Stream = __require("stream"); var toString = require_tostring(); var util = __require("util"); function base64url3(string4, encoding) { return Buffer2.from(string4, encoding).toString("base64").replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_"); } __name(base64url3, "base64url"); function jwsSecuredInput(header, payload, encoding) { encoding = encoding || "utf8"; var encodedHeader = base64url3(toString(header), "binary"); var encodedPayload = base64url3(toString(payload), encoding); return util.format("%s.%s", encodedHeader, encodedPayload); } __name(jwsSecuredInput, "jwsSecuredInput"); function jwsSign(opts) { var header = opts.header; var payload = opts.payload; var secretOrKey = opts.secret || opts.privateKey; var encoding = opts.encoding; var algo = jwa(header.alg); var securedInput = jwsSecuredInput(header, payload, encoding); var signature = algo.sign(securedInput, secretOrKey); return util.format("%s.%s", securedInput, signature); } __name(jwsSign, "jwsSign"); function SignStream(opts) { var secret = opts.secret; secret = secret == null ? opts.privateKey : secret; secret = secret == null ? opts.key : secret; if (/^hs/i.test(opts.header.alg) === true && secret == null) { throw new TypeError("secret must be a string or buffer or a KeyObject"); } var secretStream = new DataStream(secret); this.readable = true; this.header = opts.header; this.encoding = opts.encoding; this.secret = this.privateKey = this.key = secretStream; this.payload = new DataStream(opts.payload); this.secret.once("close", function() { if (!this.payload.writable && this.readable) this.sign(); }.bind(this)); this.payload.once("close", function() { if (!this.secret.writable && this.readable) this.sign(); }.bind(this)); } __name(SignStream, "SignStream"); util.inherits(SignStream, Stream); SignStream.prototype.sign = /* @__PURE__ */ __name(function sign2() { try { var signature = jwsSign({ header: this.header, payload: this.payload.buffer, secret: this.secret.buffer, encoding: this.encoding }); this.emit("done", signature); this.emit("data", signature); this.emit("end"); this.readable = false; return signature; } catch (e5) { this.readable = false; this.emit("error", e5); this.emit("close"); } }, "sign"); SignStream.sign = jwsSign; module.exports = SignStream; } }); // ../../node_modules/.pnpm/jws@4.0.1/node_modules/jws/lib/verify-stream.js var require_verify_stream = __commonJS({ "../../node_modules/.pnpm/jws@4.0.1/node_modules/jws/lib/verify-stream.js"(exports, module) { var Buffer2 = require_safe_buffer().Buffer; var DataStream = require_data_stream(); var jwa = require_jwa(); var Stream = __require("stream"); var toString = require_tostring(); var util = __require("util"); var JWS_REGEX = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/; function isObject2(thing) { return Object.prototype.toString.call(thing) === "[object Object]"; } __name(isObject2, "isObject"); function safeJsonParse(thing) { if (isObject2(thing)) return thing; try { return JSON.parse(thing); } catch (e5) { return void 0; } } __name(safeJsonParse, "safeJsonParse"); function headerFromJWS(jwsSig) { var encodedHeader = jwsSig.split(".", 1)[0]; return safeJsonParse(Buffer2.from(encodedHeader, "base64").toString("binary")); } __name(headerFromJWS, "headerFromJWS"); function securedInputFromJWS(jwsSig) { return jwsSig.split(".", 2).join("."); } __name(securedInputFromJWS, "securedInputFromJWS"); function signatureFromJWS(jwsSig) { return jwsSig.split(".")[2]; } __name(signatureFromJWS, "signatureFromJWS"); function payloadFromJWS(jwsSig, encoding) { encoding = encoding || "utf8"; var payload = jwsSig.split(".")[1]; return Buffer2.from(payload, "base64").toString(encoding); } __name(payloadFromJWS, "payloadFromJWS"); function isValidJws(string4) { return JWS_REGEX.test(string4) && !!headerFromJWS(string4); } __name(isValidJws, "isValidJws"); function jwsVerify(jwsSig, algorithm, secretOrKey) { if (!algorithm) { var err = new Error("Missing algorithm parameter for jws.verify"); err.code = "MISSING_ALGORITHM"; throw err; } jwsSig = toString(jwsSig); var signature = signatureFromJWS(jwsSig); var securedInput = securedInputFromJWS(jwsSig); var algo = jwa(algorithm); return algo.verify(securedInput, signature, secretOrKey); } __name(jwsVerify, "jwsVerify"); function jwsDecode(jwsSig, opts) { opts = opts || {}; jwsSig = toString(jwsSig); if (!isValidJws(jwsSig)) return null; var header = headerFromJWS(jwsSig); if (!header) return null; var payload = payloadFromJWS(jwsSig); if (header.typ === "JWT" || opts.json) payload = JSON.parse(payload, opts.encoding); return { header, payload, signature: signatureFromJWS(jwsSig) }; } __name(jwsDecode, "jwsDecode"); function VerifyStream(opts) { opts = opts || {}; var secretOrKey = opts.secret; secretOrKey = secretOrKey == null ? opts.publicKey : secretOrKey; secretOrKey = secretOrKey == null ? opts.key : secretOrKey; if (/^hs/i.test(opts.algorithm) === true && secretOrKey == null) { throw new TypeError("secret must be a string or buffer or a KeyObject"); } var secretStream = new DataStream(secretOrKey); this.readable = true; this.algorithm = opts.algorithm; this.encoding = opts.encoding; this.secret = this.publicKey = this.key = secretStream; this.signature = new DataStream(opts.signature); this.secret.once("close", function() { if (!this.signature.writable && this.readable) this.verify(); }.bind(this)); this.signature.once("close", function() { if (!this.secret.writable && this.readable) this.verify(); }.bind(this)); } __name(VerifyStream, "VerifyStream"); util.inherits(VerifyStream, Stream); VerifyStream.prototype.verify = /* @__PURE__ */ __name(function verify2() { try { var valid = jwsVerify(this.signature.buffer, this.algorithm, this.key.buffer); var obj = jwsDecode(this.signature.buffer, this.encoding); this.emit("done", valid, obj); this.emit("data", valid); this.emit("end"); this.readable = false; return valid; } catch (e5) { this.readable = false; this.emit("error", e5); this.emit("close"); } }, "verify"); VerifyStream.decode = jwsDecode; VerifyStream.isValid = isValidJws; VerifyStream.verify = jwsVerify; module.exports = VerifyStream; } }); // ../../node_modules/.pnpm/jws@4.0.1/node_modules/jws/index.js var require_jws = __commonJS({ "../../node_modules/.pnpm/jws@4.0.1/node_modules/jws/index.js"(exports) { var SignStream = require_sign_stream(); var VerifyStream = require_verify_stream(); var ALGORITHMS = [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" ]; exports.ALGORITHMS = ALGORITHMS; exports.sign = SignStream.sign; exports.verify = VerifyStream.verify; exports.decode = VerifyStream.decode; exports.isValid = VerifyStream.isValid; exports.createSign = /* @__PURE__ */ __name(function createSign(opts) { return new SignStream(opts); }, "createSign"); exports.createVerify = /* @__PURE__ */ __name(function createVerify(opts) { return new VerifyStream(opts); }, "createVerify"); } }); // ../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/decode.js var require_decode = __commonJS({ "../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/decode.js"(exports, module) { var jws = require_jws(); module.exports = function(jwt2, options) { options = options || {}; var decoded = jws.decode(jwt2, options); if (!decoded) { return null; } var payload = decoded.payload; if (typeof payload === "string") { try { var obj = JSON.parse(payload); if (obj !== null && typeof obj === "object") { payload = obj; } } catch (e5) { } } if (options.complete === true) { return { header: decoded.header, payload, signature: decoded.signature }; } return payload; }; } }); // ../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/JsonWebTokenError.js var require_JsonWebTokenError = __commonJS({ "../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/JsonWebTokenError.js"(exports, module) { var JsonWebTokenError2 = /* @__PURE__ */ __name(function(message, error62) { Error.call(this, message); if (Error.captureStackTrace) { Error.captureStackTrace(this, this.constructor); } this.name = "JsonWebTokenError"; this.message = message; if (error62) this.inner = error62; }, "JsonWebTokenError"); JsonWebTokenError2.prototype = Object.create(Error.prototype); JsonWebTokenError2.prototype.constructor = JsonWebTokenError2; module.exports = JsonWebTokenError2; } }); // ../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/NotBeforeError.js var require_NotBeforeError = __commonJS({ "../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/NotBeforeError.js"(exports, module) { var JsonWebTokenError2 = require_JsonWebTokenError(); var NotBeforeError2 = /* @__PURE__ */ __name(function(message, date5) { JsonWebTokenError2.call(this, message); this.name = "NotBeforeError"; this.date = date5; }, "NotBeforeError"); NotBeforeError2.prototype = Object.create(JsonWebTokenError2.prototype); NotBeforeError2.prototype.constructor = NotBeforeError2; module.exports = NotBeforeError2; } }); // ../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/TokenExpiredError.js var require_TokenExpiredError = __commonJS({ "../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/TokenExpiredError.js"(exports, module) { var JsonWebTokenError2 = require_JsonWebTokenError(); var TokenExpiredError2 = /* @__PURE__ */ __name(function(message, expiredAt) { JsonWebTokenError2.call(this, message); this.name = "TokenExpiredError"; this.expiredAt = expiredAt; }, "TokenExpiredError"); TokenExpiredError2.prototype = Object.create(JsonWebTokenError2.prototype); TokenExpiredError2.prototype.constructor = TokenExpiredError2; module.exports = TokenExpiredError2; } }); // ../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/timespan.js var require_timespan = __commonJS({ "../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/timespan.js"(exports, module) { var ms = require_ms(); module.exports = function(time3, iat) { var timestamp = iat || Math.floor(Date.now() / 1e3); if (typeof time3 === "string") { var milliseconds = ms(time3); if (typeof milliseconds === "undefined") { return; } return Math.floor(timestamp + milliseconds / 1e3); } else if (typeof time3 === "number") { return timestamp + time3; } else { return; } }; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js var require_constants = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js"(exports, module) { "use strict"; var SEMVER_SPEC_VERSION = "2.0.0"; var MAX_LENGTH = 256; var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991; var MAX_SAFE_COMPONENT_LENGTH = 16; var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6; var RELEASE_TYPES = [ "major", "premajor", "minor", "preminor", "patch", "prepatch", "prerelease" ]; module.exports = { MAX_LENGTH, MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_SAFE_INTEGER, RELEASE_TYPES, SEMVER_SPEC_VERSION, FLAG_INCLUDE_PRERELEASE: 1, FLAG_LOOSE: 2 }; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js var require_debug = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js"(exports, module) { "use strict"; var debug3 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => { }; module.exports = debug3; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js var require_re = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js"(exports, module) { "use strict"; var { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants(); var debug3 = require_debug(); exports = module.exports = {}; var re = exports.re = []; var safeRe = exports.safeRe = []; var src = exports.src = []; var safeSrc = exports.safeSrc = []; var t = exports.t = {}; var R = 0; var LETTERDASHNUMBER = "[a-zA-Z0-9-]"; var safeRegexReplacements = [ ["\\s", 1], ["\\d", MAX_LENGTH], [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH] ]; var makeSafeRegex = /* @__PURE__ */ __name((value) => { for (const [token, max] of safeRegexReplacements) { value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`); } return value; }, "makeSafeRegex"); var createToken = /* @__PURE__ */ __name((name2, value, isGlobal) => { const safe = makeSafeRegex(value); const index = R++; debug3(name2, index, value); t[name2] = index; src[index] = value; safeSrc[index] = safe; re[index] = new RegExp(value, isGlobal ? "g" : void 0); safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0); }, "createToken"); createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*"); createToken("NUMERICIDENTIFIERLOOSE", "\\d+"); createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`); createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`); createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`); createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`); createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`); createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`); createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`); createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`); createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`); createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`); createToken("FULL", `^${src[t.FULLPLAIN]}$`); createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`); createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`); createToken("GTLT", "((?:<|>)?=?)"); createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`); createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`); createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`); createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`); createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`); createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`); createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`); createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`); createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`); createToken("COERCERTL", src[t.COERCE], true); createToken("COERCERTLFULL", src[t.COERCEFULL], true); createToken("LONETILDE", "(?:~>?)"); createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true); exports.tildeTrimReplace = "$1~"; createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`); createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`); createToken("LONECARET", "(?:\\^)"); createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true); exports.caretTrimReplace = "$1^"; createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`); createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`); createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`); createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`); createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true); exports.comparatorTrimReplace = "$1$2$3"; createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`); createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`); createToken("STAR", "(<|>)?=?\\s*\\*"); createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"); createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$"); } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js var require_parse_options = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js"(exports, module) { "use strict"; var looseOption = Object.freeze({ loose: true }); var emptyOpts = Object.freeze({}); var parseOptions = /* @__PURE__ */ __name((options) => { if (!options) { return emptyOpts; } if (typeof options !== "object") { return looseOption; } return options; }, "parseOptions"); module.exports = parseOptions; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js var require_identifiers = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js"(exports, module) { "use strict"; var numeric = /^[0-9]+$/; var compareIdentifiers = /* @__PURE__ */ __name((a5, b5) => { if (typeof a5 === "number" && typeof b5 === "number") { return a5 === b5 ? 0 : a5 < b5 ? -1 : 1; } const anum = numeric.test(a5); const bnum = numeric.test(b5); if (anum && bnum) { a5 = +a5; b5 = +b5; } return a5 === b5 ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a5 < b5 ? -1 : 1; }, "compareIdentifiers"); var rcompareIdentifiers = /* @__PURE__ */ __name((a5, b5) => compareIdentifiers(b5, a5), "rcompareIdentifiers"); module.exports = { compareIdentifiers, rcompareIdentifiers }; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js var require_semver = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js"(exports, module) { "use strict"; var debug3 = require_debug(); var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants(); var { safeRe: re, t } = require_re(); var parseOptions = require_parse_options(); var { compareIdentifiers } = require_identifiers(); var isPrereleaseIdentifier = /* @__PURE__ */ __name((prerelease, identifier) => { const identifiers = identifier.split("."); if (identifiers.length > prerelease.length) { return false; } for (let i5 = 0; i5 < identifiers.length; i5++) { if (compareIdentifiers(prerelease[i5], identifiers[i5]) !== 0) { return false; } } return true; }, "isPrereleaseIdentifier"); var SemVer = class _SemVer { static { __name(this, "SemVer"); } constructor(version2, options) { options = parseOptions(options); if (version2 instanceof _SemVer) { if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) { return version2; } else { version2 = version2.version; } } else if (typeof version2 !== "string") { throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`); } if (version2.length > MAX_LENGTH) { throw new TypeError( `version is longer than ${MAX_LENGTH} characters` ); } debug3("SemVer", version2, options); this.options = options; this.loose = !!options.loose; this.includePrerelease = !!options.includePrerelease; const m3 = version2.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]); if (!m3) { throw new TypeError(`Invalid Version: ${version2}`); } this.raw = version2; this.major = +m3[1]; this.minor = +m3[2]; this.patch = +m3[3]; if (this.major > MAX_SAFE_INTEGER || this.major < 0) { throw new TypeError("Invalid major version"); } if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { throw new TypeError("Invalid minor version"); } if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { throw new TypeError("Invalid patch version"); } if (!m3[4]) { this.prerelease = []; } else { this.prerelease = m3[4].split(".").map((id) => { if (/^[0-9]+$/.test(id)) { const num = +id; if (num >= 0 && num < MAX_SAFE_INTEGER) { return num; } } return id; }); } this.build = m3[5] ? m3[5].split(".") : []; this.format(); } format() { this.version = `${this.major}.${this.minor}.${this.patch}`; if (this.prerelease.length) { this.version += `-${this.prerelease.join(".")}`; } return this.version; } toString() { return this.version; } compare(other) { debug3("SemVer.compare", this.version, this.options, other); if (!(other instanceof _SemVer)) { if (typeof other === "string" && other === this.version) { return 0; } other = new _SemVer(other, this.options); } if (other.version === this.version) { return 0; } return this.compareMain(other) || this.comparePre(other); } compareMain(other) { if (!(other instanceof _SemVer)) { other = new _SemVer(other, this.options); } if (this.major < other.major) { return -1; } if (this.major > other.major) { return 1; } if (this.minor < other.minor) { return -1; } if (this.minor > other.minor) { return 1; } if (this.patch < other.patch) { return -1; } if (this.patch > other.patch) { return 1; } return 0; } comparePre(other) { if (!(other instanceof _SemVer)) { other = new _SemVer(other, this.options); } if (this.prerelease.length && !other.prerelease.length) { return -1; } else if (!this.prerelease.length && other.prerelease.length) { return 1; } else if (!this.prerelease.length && !other.prerelease.length) { return 0; } let i5 = 0; do { const a5 = this.prerelease[i5]; const b5 = other.prerelease[i5]; debug3("prerelease compare", i5, a5, b5); if (a5 === void 0 && b5 === void 0) { return 0; } else if (b5 === void 0) { return 1; } else if (a5 === void 0) { return -1; } else if (a5 === b5) { continue; } else { return compareIdentifiers(a5, b5); } } while (++i5); } compareBuild(other) { if (!(other instanceof _SemVer)) { other = new _SemVer(other, this.options); } let i5 = 0; do { const a5 = this.build[i5]; const b5 = other.build[i5]; debug3("build compare", i5, a5, b5); if (a5 === void 0 && b5 === void 0) { return 0; } else if (b5 === void 0) { return 1; } else if (a5 === void 0) { return -1; } else if (a5 === b5) { continue; } else { return compareIdentifiers(a5, b5); } } while (++i5); } // preminor will bump the version up to the next minor release, and immediately // down to pre-release. premajor and prepatch work the same way. inc(release2, identifier, identifierBase) { if (release2.startsWith("pre")) { if (!identifier && identifierBase === false) { throw new Error("invalid increment argument: identifier is empty"); } if (identifier) { const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]); if (!match || match[1] !== identifier) { throw new Error(`invalid identifier: ${identifier}`); } } } switch (release2) { case "premajor": this.prerelease.length = 0; this.patch = 0; this.minor = 0; this.major++; this.inc("pre", identifier, identifierBase); break; case "preminor": this.prerelease.length = 0; this.patch = 0; this.minor++; this.inc("pre", identifier, identifierBase); break; case "prepatch": this.prerelease.length = 0; this.inc("patch", identifier, identifierBase); this.inc("pre", identifier, identifierBase); break; // If the input is a non-prerelease version, this acts the same as // prepatch. case "prerelease": if (this.prerelease.length === 0) { this.inc("patch", identifier, identifierBase); } this.inc("pre", identifier, identifierBase); break; case "release": if (this.prerelease.length === 0) { throw new Error(`version ${this.raw} is not a prerelease`); } this.prerelease.length = 0; break; case "major": if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) { this.major++; } this.minor = 0; this.patch = 0; this.prerelease = []; break; case "minor": if (this.patch !== 0 || this.prerelease.length === 0) { this.minor++; } this.patch = 0; this.prerelease = []; break; case "patch": if (this.prerelease.length === 0) { this.patch++; } this.prerelease = []; break; // This probably shouldn't be used publicly. // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction. case "pre": { const base = Number(identifierBase) ? 1 : 0; if (this.prerelease.length === 0) { this.prerelease = [base]; } else { let i5 = this.prerelease.length; while (--i5 >= 0) { if (typeof this.prerelease[i5] === "number") { this.prerelease[i5]++; i5 = -2; } } if (i5 === -1) { if (identifier === this.prerelease.join(".") && identifierBase === false) { throw new Error("invalid increment argument: identifier already exists"); } this.prerelease.push(base); } } if (identifier) { let prerelease = [identifier, base]; if (identifierBase === false) { prerelease = [identifier]; } if (isPrereleaseIdentifier(this.prerelease, identifier)) { const prereleaseBase = this.prerelease[identifier.split(".").length]; if (isNaN(prereleaseBase)) { this.prerelease = prerelease; } } else { this.prerelease = prerelease; } } break; } default: throw new Error(`invalid increment argument: ${release2}`); } this.raw = this.format(); if (this.build.length) { this.raw += `+${this.build.join(".")}`; } return this; } }; module.exports = SemVer; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js var require_parse = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js"(exports, module) { "use strict"; var SemVer = require_semver(); var parse4 = /* @__PURE__ */ __name((version2, options, throwErrors = false) => { if (version2 instanceof SemVer) { return version2; } try { return new SemVer(version2, options); } catch (er) { if (!throwErrors) { return null; } throw er; } }, "parse"); module.exports = parse4; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js var require_valid = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js"(exports, module) { "use strict"; var parse4 = require_parse(); var valid = /* @__PURE__ */ __name((version2, options) => { const v = parse4(version2, options); return v ? v.version : null; }, "valid"); module.exports = valid; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js var require_clean = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js"(exports, module) { "use strict"; var parse4 = require_parse(); var clean = /* @__PURE__ */ __name((version2, options) => { const s2 = parse4(version2.trim().replace(/^[=v]+/, ""), options); return s2 ? s2.version : null; }, "clean"); module.exports = clean; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js var require_inc = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js"(exports, module) { "use strict"; var SemVer = require_semver(); var inc = /* @__PURE__ */ __name((version2, release2, options, identifier, identifierBase) => { if (typeof options === "string") { identifierBase = identifier; identifier = options; options = void 0; } try { return new SemVer( version2 instanceof SemVer ? version2.version : version2, options ).inc(release2, identifier, identifierBase).version; } catch (er) { return null; } }, "inc"); module.exports = inc; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js var require_diff = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js"(exports, module) { "use strict"; var parse4 = require_parse(); var diff = /* @__PURE__ */ __name((version1, version2) => { const v1 = parse4(version1, null, true); const v2 = parse4(version2, null, true); const comparison = v1.compare(v2); if (comparison === 0) { return null; } const v1Higher = comparison > 0; const highVersion = v1Higher ? v1 : v2; const lowVersion = v1Higher ? v2 : v1; const highHasPre = !!highVersion.prerelease.length; const lowHasPre = !!lowVersion.prerelease.length; if (lowHasPre && !highHasPre) { if (!lowVersion.patch && !lowVersion.minor) { return "major"; } if (lowVersion.compareMain(highVersion) === 0) { if (lowVersion.minor && !lowVersion.patch) { return "minor"; } return "patch"; } } const prefix = highHasPre ? "pre" : ""; if (v1.major !== v2.major) { return prefix + "major"; } if (v1.minor !== v2.minor) { return prefix + "minor"; } if (v1.patch !== v2.patch) { return prefix + "patch"; } return "prerelease"; }, "diff"); module.exports = diff; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js var require_major = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js"(exports, module) { "use strict"; var SemVer = require_semver(); var major = /* @__PURE__ */ __name((a5, loose) => new SemVer(a5, loose).major, "major"); module.exports = major; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js var require_minor = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js"(exports, module) { "use strict"; var SemVer = require_semver(); var minor = /* @__PURE__ */ __name((a5, loose) => new SemVer(a5, loose).minor, "minor"); module.exports = minor; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js var require_patch = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js"(exports, module) { "use strict"; var SemVer = require_semver(); var patch = /* @__PURE__ */ __name((a5, loose) => new SemVer(a5, loose).patch, "patch"); module.exports = patch; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js var require_prerelease = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js"(exports, module) { "use strict"; var parse4 = require_parse(); var prerelease = /* @__PURE__ */ __name((version2, options) => { const parsed2 = parse4(version2, options); return parsed2 && parsed2.prerelease.length ? parsed2.prerelease : null; }, "prerelease"); module.exports = prerelease; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js var require_compare = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js"(exports, module) { "use strict"; var SemVer = require_semver(); var compare = /* @__PURE__ */ __name((a5, b5, loose) => new SemVer(a5, loose).compare(new SemVer(b5, loose)), "compare"); module.exports = compare; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js var require_rcompare = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js"(exports, module) { "use strict"; var compare = require_compare(); var rcompare = /* @__PURE__ */ __name((a5, b5, loose) => compare(b5, a5, loose), "rcompare"); module.exports = rcompare; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js var require_compare_loose = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js"(exports, module) { "use strict"; var compare = require_compare(); var compareLoose = /* @__PURE__ */ __name((a5, b5) => compare(a5, b5, true), "compareLoose"); module.exports = compareLoose; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js var require_compare_build = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js"(exports, module) { "use strict"; var SemVer = require_semver(); var compareBuild = /* @__PURE__ */ __name((a5, b5, loose) => { const versionA = new SemVer(a5, loose); const versionB = new SemVer(b5, loose); return versionA.compare(versionB) || versionA.compareBuild(versionB); }, "compareBuild"); module.exports = compareBuild; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js var require_sort = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js"(exports, module) { "use strict"; var compareBuild = require_compare_build(); var sort = /* @__PURE__ */ __name((list, loose) => list.sort((a5, b5) => compareBuild(a5, b5, loose)), "sort"); module.exports = sort; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js var require_rsort = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js"(exports, module) { "use strict"; var compareBuild = require_compare_build(); var rsort = /* @__PURE__ */ __name((list, loose) => list.sort((a5, b5) => compareBuild(b5, a5, loose)), "rsort"); module.exports = rsort; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js var require_gt = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js"(exports, module) { "use strict"; var compare = require_compare(); var gt = /* @__PURE__ */ __name((a5, b5, loose) => compare(a5, b5, loose) > 0, "gt"); module.exports = gt; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js var require_lt = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js"(exports, module) { "use strict"; var compare = require_compare(); var lt = /* @__PURE__ */ __name((a5, b5, loose) => compare(a5, b5, loose) < 0, "lt"); module.exports = lt; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js var require_eq = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js"(exports, module) { "use strict"; var compare = require_compare(); var eq = /* @__PURE__ */ __name((a5, b5, loose) => compare(a5, b5, loose) === 0, "eq"); module.exports = eq; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js var require_neq = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js"(exports, module) { "use strict"; var compare = require_compare(); var neq = /* @__PURE__ */ __name((a5, b5, loose) => compare(a5, b5, loose) !== 0, "neq"); module.exports = neq; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js var require_gte = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js"(exports, module) { "use strict"; var compare = require_compare(); var gte = /* @__PURE__ */ __name((a5, b5, loose) => compare(a5, b5, loose) >= 0, "gte"); module.exports = gte; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js var require_lte = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js"(exports, module) { "use strict"; var compare = require_compare(); var lte = /* @__PURE__ */ __name((a5, b5, loose) => compare(a5, b5, loose) <= 0, "lte"); module.exports = lte; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js var require_cmp = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js"(exports, module) { "use strict"; var eq = require_eq(); var neq = require_neq(); var gt = require_gt(); var gte = require_gte(); var lt = require_lt(); var lte = require_lte(); var cmp = /* @__PURE__ */ __name((a5, op, b5, loose) => { switch (op) { case "===": if (typeof a5 === "object") { a5 = a5.version; } if (typeof b5 === "object") { b5 = b5.version; } return a5 === b5; case "!==": if (typeof a5 === "object") { a5 = a5.version; } if (typeof b5 === "object") { b5 = b5.version; } return a5 !== b5; case "": case "=": case "==": return eq(a5, b5, loose); case "!=": return neq(a5, b5, loose); case ">": return gt(a5, b5, loose); case ">=": return gte(a5, b5, loose); case "<": return lt(a5, b5, loose); case "<=": return lte(a5, b5, loose); default: throw new TypeError(`Invalid operator: ${op}`); } }, "cmp"); module.exports = cmp; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js var require_coerce = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js"(exports, module) { "use strict"; var SemVer = require_semver(); var parse4 = require_parse(); var { safeRe: re, t } = require_re(); var coerce = /* @__PURE__ */ __name((version2, options) => { if (version2 instanceof SemVer) { return version2; } if (typeof version2 === "number") { version2 = String(version2); } if (typeof version2 !== "string") { return null; } options = options || {}; let match = null; if (!options.rtl) { match = version2.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]); } else { const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]; let next; while ((next = coerceRtlRegex.exec(version2)) && (!match || match.index + match[0].length !== version2.length)) { if (!match || next.index + next[0].length !== match.index + match[0].length) { match = next; } coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length; } coerceRtlRegex.lastIndex = -1; } if (match === null) { return null; } const major = match[2]; const minor = match[3] || "0"; const patch = match[4] || "0"; const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ""; const build2 = options.includePrerelease && match[6] ? `+${match[6]}` : ""; return parse4(`${major}.${minor}.${patch}${prerelease}${build2}`, options); }, "coerce"); module.exports = coerce; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js var require_truncate = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js"(exports, module) { "use strict"; var parse4 = require_parse(); var constants = require_constants(); var SemVer = require_semver(); var truncate = /* @__PURE__ */ __name((version2, truncation, options) => { if (!constants.RELEASE_TYPES.includes(truncation)) { return null; } const clonedVersion = cloneInputVersion(version2, options); return clonedVersion && doTruncation(clonedVersion, truncation); }, "truncate"); var cloneInputVersion = /* @__PURE__ */ __name((version2, options) => { const versionStringToParse = version2 instanceof SemVer ? version2.version : version2; return parse4(versionStringToParse, options); }, "cloneInputVersion"); var doTruncation = /* @__PURE__ */ __name((version2, truncation) => { if (isPrerelease(truncation)) { return version2.version; } version2.prerelease = []; switch (truncation) { case "major": version2.minor = 0; version2.patch = 0; break; case "minor": version2.patch = 0; break; } return version2.format(); }, "doTruncation"); var isPrerelease = /* @__PURE__ */ __name((type) => { return type.startsWith("pre"); }, "isPrerelease"); module.exports = truncate; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js var require_lrucache = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js"(exports, module) { "use strict"; var LRUCache = class { static { __name(this, "LRUCache"); } constructor() { this.max = 1e3; this.map = /* @__PURE__ */ new Map(); } get(key) { const value = this.map.get(key); if (value === void 0) { return void 0; } else { this.map.delete(key); this.map.set(key, value); return value; } } delete(key) { return this.map.delete(key); } set(key, value) { const deleted = this.delete(key); if (!deleted && value !== void 0) { if (this.map.size >= this.max) { const firstKey = this.map.keys().next().value; this.delete(firstKey); } this.map.set(key, value); } return this; } }; module.exports = LRUCache; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js var require_range = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js"(exports, module) { "use strict"; var SPACE_CHARACTERS = /\s+/g; var Range = class _Range { static { __name(this, "Range"); } constructor(range, options) { options = parseOptions(options); if (range instanceof _Range) { if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) { return range; } else { return new _Range(range.raw, options); } } if (range instanceof Comparator) { this.raw = range.value; this.set = [[range]]; this.formatted = void 0; return this; } this.options = options; this.loose = !!options.loose; this.includePrerelease = !!options.includePrerelease; this.raw = range.trim().replace(SPACE_CHARACTERS, " "); this.set = this.raw.split("||").map((r5) => this.parseRange(r5.trim())).filter((c5) => c5.length); if (!this.set.length) { throw new TypeError(`Invalid SemVer Range: ${this.raw}`); } if (this.set.length > 1) { const first = this.set[0]; this.set = this.set.filter((c5) => !isNullSet(c5[0])); if (this.set.length === 0) { this.set = [first]; } else if (this.set.length > 1) { for (const c5 of this.set) { if (c5.length === 1 && isAny(c5[0])) { this.set = [c5]; break; } } } } this.formatted = void 0; } get range() { if (this.formatted === void 0) { this.formatted = ""; for (let i5 = 0; i5 < this.set.length; i5++) { if (i5 > 0) { this.formatted += "||"; } const comps = this.set[i5]; for (let k5 = 0; k5 < comps.length; k5++) { if (k5 > 0) { this.formatted += " "; } this.formatted += comps[k5].toString().trim(); } } } return this.formatted; } format() { return this.range; } toString() { return this.range; } parseRange(range) { range = range.replace(BUILDSTRIPRE, ""); const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE); const memoKey = memoOpts + ":" + range; const cached2 = cache5.get(memoKey); if (cached2) { return cached2; } const loose = this.options.loose; const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]; range = range.replace(hr, hyphenReplace(this.options.includePrerelease)); debug3("hyphen replace", range); range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace); debug3("comparator trim", range); range = range.replace(re[t.TILDETRIM], tildeTrimReplace); debug3("tilde trim", range); range = range.replace(re[t.CARETTRIM], caretTrimReplace); debug3("caret trim", range); let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options)); if (loose) { rangeList = rangeList.filter((comp) => { debug3("loose invalid filter", comp, this.options); return !!comp.match(re[t.COMPARATORLOOSE]); }); } debug3("range list", rangeList); const rangeMap = /* @__PURE__ */ new Map(); const comparators = rangeList.map((comp) => new Comparator(comp, this.options)); for (const comp of comparators) { if (isNullSet(comp)) { return [comp]; } rangeMap.set(comp.value, comp); } if (rangeMap.size > 1 && rangeMap.has("")) { rangeMap.delete(""); } const result = [...rangeMap.values()]; cache5.set(memoKey, result); return result; } intersects(range, options) { if (!(range instanceof _Range)) { throw new TypeError("a Range is required"); } return this.set.some((thisComparators) => { return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => { return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => { return rangeComparators.every((rangeComparator) => { return thisComparator.intersects(rangeComparator, options); }); }); }); }); } // if ANY of the sets match ALL of its comparators, then pass test(version2) { if (!version2) { return false; } if (typeof version2 === "string") { try { version2 = new SemVer(version2, this.options); } catch (er) { return false; } } for (let i5 = 0; i5 < this.set.length; i5++) { if (testSet(this.set[i5], version2, this.options)) { return true; } } return false; } }; module.exports = Range; var LRU = require_lrucache(); var cache5 = new LRU(); var parseOptions = require_parse_options(); var Comparator = require_comparator(); var debug3 = require_debug(); var SemVer = require_semver(); var { safeRe: re, src, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re(); var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants(); var BUILDSTRIPRE = new RegExp(src[t.BUILD], "g"); var isNullSet = /* @__PURE__ */ __name((c5) => c5.value === "<0.0.0-0", "isNullSet"); var isAny = /* @__PURE__ */ __name((c5) => c5.value === "", "isAny"); var isSatisfiable = /* @__PURE__ */ __name((comparators, options) => { let result = true; const remainingComparators = comparators.slice(); let testComparator = remainingComparators.pop(); while (result && remainingComparators.length) { result = remainingComparators.every((otherComparator) => { return testComparator.intersects(otherComparator, options); }); testComparator = remainingComparators.pop(); } return result; }, "isSatisfiable"); var parseComparator = /* @__PURE__ */ __name((comp, options) => { comp = comp.replace(re[t.BUILD], ""); debug3("comp", comp, options); comp = replaceCarets(comp, options); debug3("caret", comp); comp = replaceTildes(comp, options); debug3("tildes", comp); comp = replaceXRanges(comp, options); debug3("xrange", comp); comp = replaceStars(comp, options); debug3("stars", comp); return comp; }, "parseComparator"); var isX = /* @__PURE__ */ __name((id) => !id || id.toLowerCase() === "x" || id === "*", "isX"); var invalidXRangeOrder = /* @__PURE__ */ __name((M, m3, p3) => isX(M) && !isX(m3) || isX(m3) && p3 && !isX(p3), "invalidXRangeOrder"); var replaceTildes = /* @__PURE__ */ __name((comp, options) => { return comp.trim().split(/\s+/).map((c5) => replaceTilde(c5, options)).join(" "); }, "replaceTildes"); var replaceTilde = /* @__PURE__ */ __name((comp, options) => { const r5 = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]; const z2 = options.includePrerelease ? "-0" : ""; return comp.replace(r5, (_, M, m3, p3, pr) => { debug3("tilde", comp, _, M, m3, p3, pr); let ret; if (isX(M)) { ret = ""; } else if (isX(m3)) { ret = `>=${M}.0.0${z2} <${+M + 1}.0.0-0`; } else if (isX(p3)) { ret = `>=${M}.${m3}.0${z2} <${M}.${+m3 + 1}.0-0`; } else if (pr) { debug3("replaceTilde pr", pr); ret = `>=${M}.${m3}.${p3}-${pr} <${M}.${+m3 + 1}.0-0`; } else { ret = `>=${M}.${m3}.${p3} <${M}.${+m3 + 1}.0-0`; } debug3("tilde return", ret); return ret; }); }, "replaceTilde"); var replaceCarets = /* @__PURE__ */ __name((comp, options) => { return comp.trim().split(/\s+/).map((c5) => replaceCaret(c5, options)).join(" "); }, "replaceCarets"); var replaceCaret = /* @__PURE__ */ __name((comp, options) => { debug3("caret", comp, options); const r5 = options.loose ? re[t.CARETLOOSE] : re[t.CARET]; const z2 = options.includePrerelease ? "-0" : ""; return comp.replace(r5, (_, M, m3, p3, pr) => { debug3("caret", comp, _, M, m3, p3, pr); let ret; if (isX(M)) { ret = ""; } else if (isX(m3)) { ret = `>=${M}.0.0${z2} <${+M + 1}.0.0-0`; } else if (isX(p3)) { if (M === "0") { ret = `>=${M}.${m3}.0${z2} <${M}.${+m3 + 1}.0-0`; } else { ret = `>=${M}.${m3}.0${z2} <${+M + 1}.0.0-0`; } } else if (pr) { debug3("replaceCaret pr", pr); if (M === "0") { if (m3 === "0") { ret = `>=${M}.${m3}.${p3}-${pr} <${M}.${m3}.${+p3 + 1}-0`; } else { ret = `>=${M}.${m3}.${p3}-${pr} <${M}.${+m3 + 1}.0-0`; } } else { ret = `>=${M}.${m3}.${p3}-${pr} <${+M + 1}.0.0-0`; } } else { debug3("no pr"); if (M === "0") { if (m3 === "0") { ret = `>=${M}.${m3}.${p3} <${M}.${m3}.${+p3 + 1}-0`; } else { ret = `>=${M}.${m3}.${p3} <${M}.${+m3 + 1}.0-0`; } } else { ret = `>=${M}.${m3}.${p3} <${+M + 1}.0.0-0`; } } debug3("caret return", ret); return ret; }); }, "replaceCaret"); var replaceXRanges = /* @__PURE__ */ __name((comp, options) => { debug3("replaceXRanges", comp, options); return comp.split(/\s+/).map((c5) => replaceXRange(c5, options)).join(" "); }, "replaceXRanges"); var replaceXRange = /* @__PURE__ */ __name((comp, options) => { comp = comp.trim(); const r5 = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]; return comp.replace(r5, (ret, gtlt, M, m3, p3, pr) => { debug3("xRange", comp, ret, gtlt, M, m3, p3, pr); if (invalidXRangeOrder(M, m3, p3)) { return comp; } const xM = isX(M); const xm = xM || isX(m3); const xp = xm || isX(p3); const anyX = xp; if (gtlt === "=" && anyX) { gtlt = ""; } pr = options.includePrerelease ? "-0" : ""; if (xM) { if (gtlt === ">" || gtlt === "<") { ret = "<0.0.0-0"; } else { ret = "*"; } } else if (gtlt && anyX) { if (xm) { m3 = 0; } p3 = 0; if (gtlt === ">") { gtlt = ">="; if (xm) { M = +M + 1; m3 = 0; p3 = 0; } else { m3 = +m3 + 1; p3 = 0; } } else if (gtlt === "<=") { gtlt = "<"; if (xm) { M = +M + 1; } else { m3 = +m3 + 1; } } if (gtlt === "<") { pr = "-0"; } ret = `${gtlt + M}.${m3}.${p3}${pr}`; } else if (xm) { ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`; } else if (xp) { ret = `>=${M}.${m3}.0${pr} <${M}.${+m3 + 1}.0-0`; } debug3("xRange return", ret); return ret; }); }, "replaceXRange"); var replaceStars = /* @__PURE__ */ __name((comp, options) => { debug3("replaceStars", comp, options); return comp.trim().replace(re[t.STAR], ""); }, "replaceStars"); var replaceGTE0 = /* @__PURE__ */ __name((comp, options) => { debug3("replaceGTE0", comp, options); return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], ""); }, "replaceGTE0"); var hyphenReplace = /* @__PURE__ */ __name((incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => { if (isX(fM)) { from = ""; } else if (isX(fm)) { from = `>=${fM}.0.0${incPr ? "-0" : ""}`; } else if (isX(fp)) { from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`; } else if (fpr) { from = `>=${from}`; } else { from = `>=${from}${incPr ? "-0" : ""}`; } if (isX(tM)) { to = ""; } else if (isX(tm)) { to = `<${+tM + 1}.0.0-0`; } else if (isX(tp)) { to = `<${tM}.${+tm + 1}.0-0`; } else if (tpr) { to = `<=${tM}.${tm}.${tp}-${tpr}`; } else if (incPr) { to = `<${tM}.${tm}.${+tp + 1}-0`; } else { to = `<=${to}`; } return `${from} ${to}`.trim(); }, "hyphenReplace"); var testSet = /* @__PURE__ */ __name((set2, version2, options) => { for (let i5 = 0; i5 < set2.length; i5++) { if (!set2[i5].test(version2)) { return false; } } if (version2.prerelease.length && !options.includePrerelease) { for (let i5 = 0; i5 < set2.length; i5++) { debug3(set2[i5].semver); if (set2[i5].semver === Comparator.ANY) { continue; } if (set2[i5].semver.prerelease.length > 0) { const allowed = set2[i5].semver; if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) { return true; } } } return false; } return true; }, "testSet"); } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js var require_comparator = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js"(exports, module) { "use strict"; var ANY = /* @__PURE__ */ Symbol("SemVer ANY"); var Comparator = class _Comparator { static { __name(this, "Comparator"); } static get ANY() { return ANY; } constructor(comp, options) { options = parseOptions(options); if (comp instanceof _Comparator) { if (comp.loose === !!options.loose) { return comp; } else { comp = comp.value; } } comp = comp.trim().split(/\s+/).join(" "); debug3("comparator", comp, options); this.options = options; this.loose = !!options.loose; this.parse(comp); if (this.semver === ANY) { this.value = ""; } else { this.value = this.operator + this.semver.version; } debug3("comp", this); } parse(comp) { const r5 = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]; const m3 = comp.match(r5); if (!m3) { throw new TypeError(`Invalid comparator: ${comp}`); } this.operator = m3[1] !== void 0 ? m3[1] : ""; if (this.operator === "=") { this.operator = ""; } if (!m3[2]) { this.semver = ANY; } else { this.semver = new SemVer(m3[2], this.options.loose); } } toString() { return this.value; } test(version2) { debug3("Comparator.test", version2, this.options.loose); if (this.semver === ANY || version2 === ANY) { return true; } if (typeof version2 === "string") { try { version2 = new SemVer(version2, this.options); } catch (er) { return false; } } return cmp(version2, this.operator, this.semver, this.options); } intersects(comp, options) { if (!(comp instanceof _Comparator)) { throw new TypeError("a Comparator is required"); } if (this.operator === "") { if (this.value === "") { return true; } return new Range(comp.value, options).test(this.value); } else if (comp.operator === "") { if (comp.value === "") { return true; } return new Range(this.value, options).test(comp.semver); } options = parseOptions(options); if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) { return false; } if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) { return false; } if (this.operator.startsWith(">") && comp.operator.startsWith(">")) { return true; } if (this.operator.startsWith("<") && comp.operator.startsWith("<")) { return true; } if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) { return true; } if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) { return true; } if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) { return true; } return false; } }; module.exports = Comparator; var parseOptions = require_parse_options(); var { safeRe: re, t } = require_re(); var cmp = require_cmp(); var debug3 = require_debug(); var SemVer = require_semver(); var Range = require_range(); } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js var require_satisfies = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js"(exports, module) { "use strict"; var Range = require_range(); var satisfies = /* @__PURE__ */ __name((version2, range, options) => { try { range = new Range(range, options); } catch (er) { return false; } return range.test(version2); }, "satisfies"); module.exports = satisfies; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js var require_to_comparators = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js"(exports, module) { "use strict"; var Range = require_range(); var toComparators = /* @__PURE__ */ __name((range, options) => new Range(range, options).set.map((comp) => comp.map((c5) => c5.value).join(" ").trim().split(" ")), "toComparators"); module.exports = toComparators; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js var require_max_satisfying = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js"(exports, module) { "use strict"; var SemVer = require_semver(); var Range = require_range(); var maxSatisfying = /* @__PURE__ */ __name((versions2, range, options) => { let max = null; let maxSV = null; let rangeObj = null; try { rangeObj = new Range(range, options); } catch (er) { return null; } versions2.forEach((v) => { if (rangeObj.test(v)) { if (!max || maxSV.compare(v) === -1) { max = v; maxSV = new SemVer(max, options); } } }); return max; }, "maxSatisfying"); module.exports = maxSatisfying; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js var require_min_satisfying = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js"(exports, module) { "use strict"; var SemVer = require_semver(); var Range = require_range(); var minSatisfying = /* @__PURE__ */ __name((versions2, range, options) => { let min = null; let minSV = null; let rangeObj = null; try { rangeObj = new Range(range, options); } catch (er) { return null; } versions2.forEach((v) => { if (rangeObj.test(v)) { if (!min || minSV.compare(v) === 1) { min = v; minSV = new SemVer(min, options); } } }); return min; }, "minSatisfying"); module.exports = minSatisfying; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js var require_min_version = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js"(exports, module) { "use strict"; var SemVer = require_semver(); var Range = require_range(); var gt = require_gt(); var minVersion = /* @__PURE__ */ __name((range, loose) => { range = new Range(range, loose); let minver = new SemVer("0.0.0"); if (range.test(minver)) { return minver; } minver = new SemVer("0.0.0-0"); if (range.test(minver)) { return minver; } minver = null; for (let i5 = 0; i5 < range.set.length; ++i5) { const comparators = range.set[i5]; let setMin = null; comparators.forEach((comparator) => { const compver = new SemVer(comparator.semver.version); switch (comparator.operator) { case ">": if (compver.prerelease.length === 0) { compver.patch++; } else { compver.prerelease.push(0); } compver.raw = compver.format(); /* fallthrough */ case "": case ">=": if (!setMin || gt(compver, setMin)) { setMin = compver; } break; case "<": case "<=": break; /* istanbul ignore next */ default: throw new Error(`Unexpected operation: ${comparator.operator}`); } }); if (setMin && (!minver || gt(minver, setMin))) { minver = setMin; } } if (minver && range.test(minver)) { return minver; } return null; }, "minVersion"); module.exports = minVersion; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js var require_valid2 = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js"(exports, module) { "use strict"; var Range = require_range(); var validRange = /* @__PURE__ */ __name((range, options) => { try { return new Range(range, options).range || "*"; } catch (er) { return null; } }, "validRange"); module.exports = validRange; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js var require_outside = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js"(exports, module) { "use strict"; var SemVer = require_semver(); var Comparator = require_comparator(); var { ANY } = Comparator; var Range = require_range(); var satisfies = require_satisfies(); var gt = require_gt(); var lt = require_lt(); var lte = require_lte(); var gte = require_gte(); var outside = /* @__PURE__ */ __name((version2, range, hilo, options) => { version2 = new SemVer(version2, options); range = new Range(range, options); let gtfn, ltefn, ltfn, comp, ecomp; switch (hilo) { case ">": gtfn = gt; ltefn = lte; ltfn = lt; comp = ">"; ecomp = ">="; break; case "<": gtfn = lt; ltefn = gte; ltfn = gt; comp = "<"; ecomp = "<="; break; default: throw new TypeError('Must provide a hilo val of "<" or ">"'); } if (satisfies(version2, range, options)) { return false; } for (let i5 = 0; i5 < range.set.length; ++i5) { const comparators = range.set[i5]; let high = null; let low = null; comparators.forEach((comparator) => { if (comparator.semver === ANY) { comparator = new Comparator(">=0.0.0"); } high = high || comparator; low = low || comparator; if (gtfn(comparator.semver, high.semver, options)) { high = comparator; } else if (ltfn(comparator.semver, low.semver, options)) { low = comparator; } }); if (high.operator === comp || high.operator === ecomp) { return false; } if ((!low.operator || low.operator === comp) && ltefn(version2, low.semver)) { return false; } else if (low.operator === ecomp && ltfn(version2, low.semver)) { return false; } } return true; }, "outside"); module.exports = outside; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js var require_gtr = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js"(exports, module) { "use strict"; var outside = require_outside(); var gtr = /* @__PURE__ */ __name((version2, range, options) => outside(version2, range, ">", options), "gtr"); module.exports = gtr; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js var require_ltr = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js"(exports, module) { "use strict"; var outside = require_outside(); var ltr = /* @__PURE__ */ __name((version2, range, options) => outside(version2, range, "<", options), "ltr"); module.exports = ltr; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js var require_intersects = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js"(exports, module) { "use strict"; var Range = require_range(); var intersects = /* @__PURE__ */ __name((r1, r22, options) => { r1 = new Range(r1, options); r22 = new Range(r22, options); return r1.intersects(r22, options); }, "intersects"); module.exports = intersects; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js var require_simplify = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js"(exports, module) { "use strict"; var satisfies = require_satisfies(); var compare = require_compare(); module.exports = (versions2, range, options) => { const set2 = []; let first = null; let prev = null; const v = versions2.sort((a5, b5) => compare(a5, b5, options)); for (const version2 of v) { const included = satisfies(version2, range, options); if (included) { prev = version2; if (!first) { first = version2; } } else { if (prev) { set2.push([first, prev]); } prev = null; first = null; } } if (first) { set2.push([first, null]); } const ranges = []; for (const [min, max] of set2) { if (min === max) { ranges.push(min); } else if (!max && min === v[0]) { ranges.push("*"); } else if (!max) { ranges.push(`>=${min}`); } else if (min === v[0]) { ranges.push(`<=${max}`); } else { ranges.push(`${min} - ${max}`); } } const simplified = ranges.join(" || "); const original = typeof range.raw === "string" ? range.raw : String(range); return simplified.length < original.length ? simplified : range; }; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js var require_subset = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js"(exports, module) { "use strict"; var Range = require_range(); var Comparator = require_comparator(); var { ANY } = Comparator; var satisfies = require_satisfies(); var compare = require_compare(); var subset = /* @__PURE__ */ __name((sub, dom, options = {}) => { if (sub === dom) { return true; } sub = new Range(sub, options); dom = new Range(dom, options); let sawNonNull = false; OUTER: for (const simpleSub of sub.set) { for (const simpleDom of dom.set) { const isSub = simpleSubset(simpleSub, simpleDom, options); sawNonNull = sawNonNull || isSub !== null; if (isSub) { continue OUTER; } } if (sawNonNull) { return false; } } return true; }, "subset"); var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")]; var minimumVersion = [new Comparator(">=0.0.0")]; var simpleSubset = /* @__PURE__ */ __name((sub, dom, options) => { if (sub === dom) { return true; } if (sub.length === 1 && sub[0].semver === ANY) { if (dom.length === 1 && dom[0].semver === ANY) { return true; } else if (options.includePrerelease) { sub = minimumVersionWithPreRelease; } else { sub = minimumVersion; } } if (dom.length === 1 && dom[0].semver === ANY) { if (options.includePrerelease) { return true; } else { dom = minimumVersion; } } const eqSet = /* @__PURE__ */ new Set(); let gt, lt; for (const c5 of sub) { if (c5.operator === ">" || c5.operator === ">=") { gt = higherGT(gt, c5, options); } else if (c5.operator === "<" || c5.operator === "<=") { lt = lowerLT(lt, c5, options); } else { eqSet.add(c5.semver); } } if (eqSet.size > 1) { return null; } let gtltComp; if (gt && lt) { gtltComp = compare(gt.semver, lt.semver, options); if (gtltComp > 0) { return null; } else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) { return null; } } for (const eq of eqSet) { if (gt && !satisfies(eq, String(gt), options)) { return null; } if (lt && !satisfies(eq, String(lt), options)) { return null; } for (const c5 of dom) { if (!satisfies(eq, String(c5), options)) { return false; } } return true; } let higher, lower; let hasDomLT, hasDomGT; let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false; let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false; if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) { needDomLTPre = false; } for (const c5 of dom) { hasDomGT = hasDomGT || c5.operator === ">" || c5.operator === ">="; hasDomLT = hasDomLT || c5.operator === "<" || c5.operator === "<="; if (gt) { if (needDomGTPre) { if (c5.semver.prerelease && c5.semver.prerelease.length && c5.semver.major === needDomGTPre.major && c5.semver.minor === needDomGTPre.minor && c5.semver.patch === needDomGTPre.patch) { needDomGTPre = false; } } if (c5.operator === ">" || c5.operator === ">=") { higher = higherGT(gt, c5, options); if (higher === c5 && higher !== gt) { return false; } } else if (gt.operator === ">=" && !c5.test(gt.semver)) { return false; } } if (lt) { if (needDomLTPre) { if (c5.semver.prerelease && c5.semver.prerelease.length && c5.semver.major === needDomLTPre.major && c5.semver.minor === needDomLTPre.minor && c5.semver.patch === needDomLTPre.patch) { needDomLTPre = false; } } if (c5.operator === "<" || c5.operator === "<=") { lower = lowerLT(lt, c5, options); if (lower === c5 && lower !== lt) { return false; } } else if (lt.operator === "<=" && !c5.test(lt.semver)) { return false; } } if (!c5.operator && (lt || gt) && gtltComp !== 0) { return false; } } if (gt && hasDomLT && !lt && gtltComp !== 0) { return false; } if (lt && hasDomGT && !gt && gtltComp !== 0) { return false; } if (needDomGTPre || needDomLTPre) { return false; } return true; }, "simpleSubset"); var higherGT = /* @__PURE__ */ __name((a5, b5, options) => { if (!a5) { return b5; } const comp = compare(a5.semver, b5.semver, options); return comp > 0 ? a5 : comp < 0 ? b5 : b5.operator === ">" && a5.operator === ">=" ? b5 : a5; }, "higherGT"); var lowerLT = /* @__PURE__ */ __name((a5, b5, options) => { if (!a5) { return b5; } const comp = compare(a5.semver, b5.semver, options); return comp < 0 ? a5 : comp > 0 ? b5 : b5.operator === "<" && a5.operator === "<=" ? b5 : a5; }, "lowerLT"); module.exports = subset; } }); // ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/index.js var require_semver2 = __commonJS({ "../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/index.js"(exports, module) { "use strict"; var internalRe = require_re(); var constants = require_constants(); var SemVer = require_semver(); var identifiers = require_identifiers(); var parse4 = require_parse(); var valid = require_valid(); var clean = require_clean(); var inc = require_inc(); var diff = require_diff(); var major = require_major(); var minor = require_minor(); var patch = require_patch(); var prerelease = require_prerelease(); var compare = require_compare(); var rcompare = require_rcompare(); var compareLoose = require_compare_loose(); var compareBuild = require_compare_build(); var sort = require_sort(); var rsort = require_rsort(); var gt = require_gt(); var lt = require_lt(); var eq = require_eq(); var neq = require_neq(); var gte = require_gte(); var lte = require_lte(); var cmp = require_cmp(); var coerce = require_coerce(); var truncate = require_truncate(); var Comparator = require_comparator(); var Range = require_range(); var satisfies = require_satisfies(); var toComparators = require_to_comparators(); var maxSatisfying = require_max_satisfying(); var minSatisfying = require_min_satisfying(); var minVersion = require_min_version(); var validRange = require_valid2(); var outside = require_outside(); var gtr = require_gtr(); var ltr = require_ltr(); var intersects = require_intersects(); var simplifyRange = require_simplify(); var subset = require_subset(); module.exports = { parse: parse4, valid, clean, inc, diff, major, minor, patch, prerelease, compare, rcompare, compareLoose, compareBuild, sort, rsort, gt, lt, eq, neq, gte, lte, cmp, coerce, truncate, Comparator, Range, satisfies, toComparators, maxSatisfying, minSatisfying, minVersion, validRange, outside, gtr, ltr, intersects, simplifyRange, subset, SemVer, re: internalRe.re, src: internalRe.src, tokens: internalRe.t, SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION, RELEASE_TYPES: constants.RELEASE_TYPES, compareIdentifiers: identifiers.compareIdentifiers, rcompareIdentifiers: identifiers.rcompareIdentifiers }; } }); // ../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js var require_asymmetricKeyDetailsSupported = __commonJS({ "../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js"(exports, module) { var semver = require_semver2(); module.exports = semver.satisfies(process.version, ">=15.7.0"); } }); // ../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js var require_rsaPssKeyDetailsSupported = __commonJS({ "../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js"(exports, module) { var semver = require_semver2(); module.exports = semver.satisfies(process.version, ">=16.9.0"); } }); // ../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js var require_validateAsymmetricKey = __commonJS({ "../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js"(exports, module) { var ASYMMETRIC_KEY_DETAILS_SUPPORTED = require_asymmetricKeyDetailsSupported(); var RSA_PSS_KEY_DETAILS_SUPPORTED = require_rsaPssKeyDetailsSupported(); var allowedAlgorithmsForKeys = { "ec": ["ES256", "ES384", "ES512"], "rsa": ["RS256", "PS256", "RS384", "PS384", "RS512", "PS512"], "rsa-pss": ["PS256", "PS384", "PS512"] }; var allowedCurves = { ES256: "prime256v1", ES384: "secp384r1", ES512: "secp521r1" }; module.exports = function(algorithm, key) { if (!algorithm || !key) return; const keyType = key.asymmetricKeyType; if (!keyType) return; const allowedAlgorithms = allowedAlgorithmsForKeys[keyType]; if (!allowedAlgorithms) { throw new Error(`Unknown key type "${keyType}".`); } if (!allowedAlgorithms.includes(algorithm)) { throw new Error(`"alg" parameter for "${keyType}" key type must be one of: ${allowedAlgorithms.join(", ")}.`); } if (ASYMMETRIC_KEY_DETAILS_SUPPORTED) { switch (keyType) { case "ec": const keyCurve = key.asymmetricKeyDetails.namedCurve; const allowedCurve = allowedCurves[algorithm]; if (keyCurve !== allowedCurve) { throw new Error(`"alg" parameter "${algorithm}" requires curve "${allowedCurve}".`); } break; case "rsa-pss": if (RSA_PSS_KEY_DETAILS_SUPPORTED) { const length = parseInt(algorithm.slice(-3), 10); const { hashAlgorithm, mgf1HashAlgorithm, saltLength } = key.asymmetricKeyDetails; if (hashAlgorithm !== `sha${length}` || mgf1HashAlgorithm !== hashAlgorithm) { throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${algorithm}.`); } if (saltLength !== void 0 && saltLength > length >> 3) { throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${algorithm}.`); } } break; } } }; } }); // ../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/psSupported.js var require_psSupported = __commonJS({ "../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/lib/psSupported.js"(exports, module) { var semver = require_semver2(); module.exports = semver.satisfies(process.version, "^6.12.0 || >=8.0.0"); } }); // ../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/verify.js var require_verify = __commonJS({ "../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/verify.js"(exports, module) { var JsonWebTokenError2 = require_JsonWebTokenError(); var NotBeforeError2 = require_NotBeforeError(); var TokenExpiredError2 = require_TokenExpiredError(); var decode3 = require_decode(); var timespan = require_timespan(); var validateAsymmetricKey = require_validateAsymmetricKey(); var PS_SUPPORTED = require_psSupported(); var jws = require_jws(); var { KeyObject, createSecretKey, createPublicKey } = __require("crypto"); var PUB_KEY_ALGS = ["RS256", "RS384", "RS512"]; var EC_KEY_ALGS = ["ES256", "ES384", "ES512"]; var RSA_KEY_ALGS = ["RS256", "RS384", "RS512"]; var HS_ALGS = ["HS256", "HS384", "HS512"]; if (PS_SUPPORTED) { PUB_KEY_ALGS.splice(PUB_KEY_ALGS.length, 0, "PS256", "PS384", "PS512"); RSA_KEY_ALGS.splice(RSA_KEY_ALGS.length, 0, "PS256", "PS384", "PS512"); } module.exports = function(jwtString, secretOrPublicKey, options, callback) { if (typeof options === "function" && !callback) { callback = options; options = {}; } if (!options) { options = {}; } options = Object.assign({}, options); let done; if (callback) { done = callback; } else { done = /* @__PURE__ */ __name(function(err, data) { if (err) throw err; return data; }, "done"); } if (options.clockTimestamp && typeof options.clockTimestamp !== "number") { return done(new JsonWebTokenError2("clockTimestamp must be a number")); } if (options.nonce !== void 0 && (typeof options.nonce !== "string" || options.nonce.trim() === "")) { return done(new JsonWebTokenError2("nonce must be a non-empty string")); } if (options.allowInvalidAsymmetricKeyTypes !== void 0 && typeof options.allowInvalidAsymmetricKeyTypes !== "boolean") { return done(new JsonWebTokenError2("allowInvalidAsymmetricKeyTypes must be a boolean")); } const clockTimestamp = options.clockTimestamp || Math.floor(Date.now() / 1e3); if (!jwtString) { return done(new JsonWebTokenError2("jwt must be provided")); } if (typeof jwtString !== "string") { return done(new JsonWebTokenError2("jwt must be a string")); } const parts = jwtString.split("."); if (parts.length !== 3) { return done(new JsonWebTokenError2("jwt malformed")); } let decodedToken; try { decodedToken = decode3(jwtString, { complete: true }); } catch (err) { return done(err); } if (!decodedToken) { return done(new JsonWebTokenError2("invalid token")); } const header = decodedToken.header; let getSecret; if (typeof secretOrPublicKey === "function") { if (!callback) { return done(new JsonWebTokenError2("verify must be called asynchronous if secret or public key is provided as a callback")); } getSecret = secretOrPublicKey; } else { getSecret = /* @__PURE__ */ __name(function(header2, secretCallback) { return secretCallback(null, secretOrPublicKey); }, "getSecret"); } return getSecret(header, function(err, secretOrPublicKey2) { if (err) { return done(new JsonWebTokenError2("error in secret or public key callback: " + err.message)); } const hasSignature = parts[2].trim() !== ""; if (!hasSignature && secretOrPublicKey2) { return done(new JsonWebTokenError2("jwt signature is required")); } if (hasSignature && !secretOrPublicKey2) { return done(new JsonWebTokenError2("secret or public key must be provided")); } if (!hasSignature && !options.algorithms) { return done(new JsonWebTokenError2('please specify "none" in "algorithms" to verify unsigned tokens')); } if (secretOrPublicKey2 != null && !(secretOrPublicKey2 instanceof KeyObject)) { try { secretOrPublicKey2 = createPublicKey(secretOrPublicKey2); } catch (_) { try { secretOrPublicKey2 = createSecretKey(typeof secretOrPublicKey2 === "string" ? Buffer.from(secretOrPublicKey2) : secretOrPublicKey2); } catch (_2) { return done(new JsonWebTokenError2("secretOrPublicKey is not valid key material")); } } } if (!options.algorithms) { if (secretOrPublicKey2.type === "secret") { options.algorithms = HS_ALGS; } else if (["rsa", "rsa-pss"].includes(secretOrPublicKey2.asymmetricKeyType)) { options.algorithms = RSA_KEY_ALGS; } else if (secretOrPublicKey2.asymmetricKeyType === "ec") { options.algorithms = EC_KEY_ALGS; } else { options.algorithms = PUB_KEY_ALGS; } } if (options.algorithms.indexOf(decodedToken.header.alg) === -1) { return done(new JsonWebTokenError2("invalid algorithm")); } if (header.alg.startsWith("HS") && secretOrPublicKey2.type !== "secret") { return done(new JsonWebTokenError2(`secretOrPublicKey must be a symmetric key when using ${header.alg}`)); } else if (/^(?:RS|PS|ES)/.test(header.alg) && secretOrPublicKey2.type !== "public") { return done(new JsonWebTokenError2(`secretOrPublicKey must be an asymmetric key when using ${header.alg}`)); } if (!options.allowInvalidAsymmetricKeyTypes) { try { validateAsymmetricKey(header.alg, secretOrPublicKey2); } catch (e5) { return done(e5); } } let valid; try { valid = jws.verify(jwtString, decodedToken.header.alg, secretOrPublicKey2); } catch (e5) { return done(e5); } if (!valid) { return done(new JsonWebTokenError2("invalid signature")); } const payload = decodedToken.payload; if (typeof payload.nbf !== "undefined" && !options.ignoreNotBefore) { if (typeof payload.nbf !== "number") { return done(new JsonWebTokenError2("invalid nbf value")); } if (payload.nbf > clockTimestamp + (options.clockTolerance || 0)) { return done(new NotBeforeError2("jwt not active", new Date(payload.nbf * 1e3))); } } if (typeof payload.exp !== "undefined" && !options.ignoreExpiration) { if (typeof payload.exp !== "number") { return done(new JsonWebTokenError2("invalid exp value")); } if (clockTimestamp >= payload.exp + (options.clockTolerance || 0)) { return done(new TokenExpiredError2("jwt expired", new Date(payload.exp * 1e3))); } } if (options.audience) { const audiences = Array.isArray(options.audience) ? options.audience : [options.audience]; const target = Array.isArray(payload.aud) ? payload.aud : [payload.aud]; const match = target.some(function(targetAudience) { return audiences.some(function(audience) { return audience instanceof RegExp ? audience.test(targetAudience) : audience === targetAudience; }); }); if (!match) { return done(new JsonWebTokenError2("jwt audience invalid. expected: " + audiences.join(" or "))); } } if (options.issuer) { const invalid_issuer = typeof options.issuer === "string" && payload.iss !== options.issuer || Array.isArray(options.issuer) && options.issuer.indexOf(payload.iss) === -1; if (invalid_issuer) { return done(new JsonWebTokenError2("jwt issuer invalid. expected: " + options.issuer)); } } if (options.subject) { if (payload.sub !== options.subject) { return done(new JsonWebTokenError2("jwt subject invalid. expected: " + options.subject)); } } if (options.jwtid) { if (payload.jti !== options.jwtid) { return done(new JsonWebTokenError2("jwt jwtid invalid. expected: " + options.jwtid)); } } if (options.nonce) { if (payload.nonce !== options.nonce) { return done(new JsonWebTokenError2("jwt nonce invalid. expected: " + options.nonce)); } } if (options.maxAge) { if (typeof payload.iat !== "number") { return done(new JsonWebTokenError2("iat required when maxAge is specified")); } const maxAgeTimestamp = timespan(options.maxAge, payload.iat); if (typeof maxAgeTimestamp === "undefined") { return done(new JsonWebTokenError2('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60')); } if (clockTimestamp >= maxAgeTimestamp + (options.clockTolerance || 0)) { return done(new TokenExpiredError2("maxAge exceeded", new Date(maxAgeTimestamp * 1e3))); } } if (options.complete === true) { const signature = decodedToken.signature; return done(null, { header, payload, signature }); } return done(null, payload); }); }; } }); // ../../node_modules/.pnpm/lodash.includes@4.3.0/node_modules/lodash.includes/index.js var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.includes@4.3.0/node_modules/lodash.includes/index.js"(exports, module) { var INFINITY = 1 / 0; var MAX_SAFE_INTEGER = 9007199254740991; var MAX_INTEGER = 17976931348623157e292; var NAN = 0 / 0; var argsTag = "[object Arguments]"; var funcTag = "[object Function]"; var genTag = "[object GeneratorFunction]"; var stringTag = "[object String]"; var symbolTag = "[object Symbol]"; var reTrim = /^\s+|\s+$/g; var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; var reIsBinary = /^0b[01]+$/i; var reIsOctal = /^0o[0-7]+$/i; var reIsUint = /^(?:0|[1-9]\d*)$/; var freeParseInt = parseInt; function arrayMap(array2, iteratee) { var index = -1, length = array2 ? array2.length : 0, result = Array(length); while (++index < length) { result[index] = iteratee(array2[index], index, array2); } return result; } __name(arrayMap, "arrayMap"); function baseFindIndex(array2, predicate, fromIndex, fromRight) { var length = array2.length, index = fromIndex + (fromRight ? 1 : -1); while (fromRight ? index-- : ++index < length) { if (predicate(array2[index], index, array2)) { return index; } } return -1; } __name(baseFindIndex, "baseFindIndex"); function baseIndexOf(array2, value, fromIndex) { if (value !== value) { return baseFindIndex(array2, baseIsNaN, fromIndex); } var index = fromIndex - 1, length = array2.length; while (++index < length) { if (array2[index] === value) { return index; } } return -1; } __name(baseIndexOf, "baseIndexOf"); function baseIsNaN(value) { return value !== value; } __name(baseIsNaN, "baseIsNaN"); function baseTimes(n3, iteratee) { var index = -1, result = Array(n3); while (++index < n3) { result[index] = iteratee(index); } return result; } __name(baseTimes, "baseTimes"); function baseValues(object2, props) { return arrayMap(props, function(key) { return object2[key]; }); } __name(baseValues, "baseValues"); function overArg(func, transform2) { return function(arg) { return func(transform2(arg)); }; } __name(overArg, "overArg"); var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; var objectToString = objectProto.toString; var propertyIsEnumerable = objectProto.propertyIsEnumerable; var nativeKeys = overArg(Object.keys, Object); var nativeMax = Math.max; function arrayLikeKeys(value, inherited) { var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : []; var length = result.length, skipIndexes = !!length; for (var key in value) { if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isIndex(key, length)))) { result.push(key); } } return result; } __name(arrayLikeKeys, "arrayLikeKeys"); function baseKeys(object2) { if (!isPrototype(object2)) { return nativeKeys(object2); } var result = []; for (var key in Object(object2)) { if (hasOwnProperty.call(object2, key) && key != "constructor") { result.push(key); } } return result; } __name(baseKeys, "baseKeys"); function isIndex(value, length) { length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); } __name(isIndex, "isIndex"); function isPrototype(value) { var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; return value === proto; } __name(isPrototype, "isPrototype"); function includes(collection, value, fromIndex, guard) { collection = isArrayLike(collection) ? collection : values(collection); fromIndex = fromIndex && !guard ? toInteger(fromIndex) : 0; var length = collection.length; if (fromIndex < 0) { fromIndex = nativeMax(length + fromIndex, 0); } return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1; } __name(includes, "includes"); function isArguments(value) { return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag); } __name(isArguments, "isArguments"); var isArray = Array.isArray; function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } __name(isArrayLike, "isArrayLike"); function isArrayLikeObject(value) { return isObjectLike(value) && isArrayLike(value); } __name(isArrayLikeObject, "isArrayLikeObject"); function isFunction(value) { var tag = isObject2(value) ? objectToString.call(value) : ""; return tag == funcTag || tag == genTag; } __name(isFunction, "isFunction"); function isLength(value) { return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } __name(isLength, "isLength"); function isObject2(value) { var type = typeof value; return !!value && (type == "object" || type == "function"); } __name(isObject2, "isObject"); function isObjectLike(value) { return !!value && typeof value == "object"; } __name(isObjectLike, "isObjectLike"); function isString(value) { return typeof value == "string" || !isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag; } __name(isString, "isString"); function isSymbol(value) { return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag; } __name(isSymbol, "isSymbol"); function toFinite(value) { if (!value) { return value === 0 ? value : 0; } value = toNumber(value); if (value === INFINITY || value === -INFINITY) { var sign2 = value < 0 ? -1 : 1; return sign2 * MAX_INTEGER; } return value === value ? value : 0; } __name(toFinite, "toFinite"); function toInteger(value) { var result = toFinite(value), remainder = result % 1; return result === result ? remainder ? result - remainder : result : 0; } __name(toInteger, "toInteger"); function toNumber(value) { if (typeof value == "number") { return value; } if (isSymbol(value)) { return NAN; } if (isObject2(value)) { var other = typeof value.valueOf == "function" ? value.valueOf() : value; value = isObject2(other) ? other + "" : other; } if (typeof value != "string") { return value === 0 ? value : +value; } value = value.replace(reTrim, ""); var isBinary = reIsBinary.test(value); return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; } __name(toNumber, "toNumber"); function keys(object2) { return isArrayLike(object2) ? arrayLikeKeys(object2) : baseKeys(object2); } __name(keys, "keys"); function values(object2) { return object2 ? baseValues(object2, keys(object2)) : []; } __name(values, "values"); module.exports = includes; } }); // ../../node_modules/.pnpm/lodash.isboolean@3.0.3/node_modules/lodash.isboolean/index.js var require_lodash2 = __commonJS({ "../../node_modules/.pnpm/lodash.isboolean@3.0.3/node_modules/lodash.isboolean/index.js"(exports, module) { var boolTag = "[object Boolean]"; var objectProto = Object.prototype; var objectToString = objectProto.toString; function isBoolean(value) { return value === true || value === false || isObjectLike(value) && objectToString.call(value) == boolTag; } __name(isBoolean, "isBoolean"); function isObjectLike(value) { return !!value && typeof value == "object"; } __name(isObjectLike, "isObjectLike"); module.exports = isBoolean; } }); // ../../node_modules/.pnpm/lodash.isinteger@4.0.4/node_modules/lodash.isinteger/index.js var require_lodash3 = __commonJS({ "../../node_modules/.pnpm/lodash.isinteger@4.0.4/node_modules/lodash.isinteger/index.js"(exports, module) { var INFINITY = 1 / 0; var MAX_INTEGER = 17976931348623157e292; var NAN = 0 / 0; var symbolTag = "[object Symbol]"; var reTrim = /^\s+|\s+$/g; var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; var reIsBinary = /^0b[01]+$/i; var reIsOctal = /^0o[0-7]+$/i; var freeParseInt = parseInt; var objectProto = Object.prototype; var objectToString = objectProto.toString; function isInteger(value) { return typeof value == "number" && value == toInteger(value); } __name(isInteger, "isInteger"); function isObject2(value) { var type = typeof value; return !!value && (type == "object" || type == "function"); } __name(isObject2, "isObject"); function isObjectLike(value) { return !!value && typeof value == "object"; } __name(isObjectLike, "isObjectLike"); function isSymbol(value) { return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag; } __name(isSymbol, "isSymbol"); function toFinite(value) { if (!value) { return value === 0 ? value : 0; } value = toNumber(value); if (value === INFINITY || value === -INFINITY) { var sign2 = value < 0 ? -1 : 1; return sign2 * MAX_INTEGER; } return value === value ? value : 0; } __name(toFinite, "toFinite"); function toInteger(value) { var result = toFinite(value), remainder = result % 1; return result === result ? remainder ? result - remainder : result : 0; } __name(toInteger, "toInteger"); function toNumber(value) { if (typeof value == "number") { return value; } if (isSymbol(value)) { return NAN; } if (isObject2(value)) { var other = typeof value.valueOf == "function" ? value.valueOf() : value; value = isObject2(other) ? other + "" : other; } if (typeof value != "string") { return value === 0 ? value : +value; } value = value.replace(reTrim, ""); var isBinary = reIsBinary.test(value); return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; } __name(toNumber, "toNumber"); module.exports = isInteger; } }); // ../../node_modules/.pnpm/lodash.isnumber@3.0.3/node_modules/lodash.isnumber/index.js var require_lodash4 = __commonJS({ "../../node_modules/.pnpm/lodash.isnumber@3.0.3/node_modules/lodash.isnumber/index.js"(exports, module) { var numberTag = "[object Number]"; var objectProto = Object.prototype; var objectToString = objectProto.toString; function isObjectLike(value) { return !!value && typeof value == "object"; } __name(isObjectLike, "isObjectLike"); function isNumber(value) { return typeof value == "number" || isObjectLike(value) && objectToString.call(value) == numberTag; } __name(isNumber, "isNumber"); module.exports = isNumber; } }); // ../../node_modules/.pnpm/lodash.isplainobject@4.0.6/node_modules/lodash.isplainobject/index.js var require_lodash5 = __commonJS({ "../../node_modules/.pnpm/lodash.isplainobject@4.0.6/node_modules/lodash.isplainobject/index.js"(exports, module) { var objectTag = "[object Object]"; function isHostObject(value) { var result = false; if (value != null && typeof value.toString != "function") { try { result = !!(value + ""); } catch (e5) { } } return result; } __name(isHostObject, "isHostObject"); function overArg(func, transform2) { return function(arg) { return func(transform2(arg)); }; } __name(overArg, "overArg"); var funcProto = Function.prototype; var objectProto = Object.prototype; var funcToString = funcProto.toString; var hasOwnProperty = objectProto.hasOwnProperty; var objectCtorString = funcToString.call(Object); var objectToString = objectProto.toString; var getPrototype = overArg(Object.getPrototypeOf, Object); function isObjectLike(value) { return !!value && typeof value == "object"; } __name(isObjectLike, "isObjectLike"); function isPlainObject2(value) { if (!isObjectLike(value) || objectToString.call(value) != objectTag || isHostObject(value)) { return false; } var proto = getPrototype(value); if (proto === null) { return true; } var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor; return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; } __name(isPlainObject2, "isPlainObject"); module.exports = isPlainObject2; } }); // ../../node_modules/.pnpm/lodash.isstring@4.0.1/node_modules/lodash.isstring/index.js var require_lodash6 = __commonJS({ "../../node_modules/.pnpm/lodash.isstring@4.0.1/node_modules/lodash.isstring/index.js"(exports, module) { var stringTag = "[object String]"; var objectProto = Object.prototype; var objectToString = objectProto.toString; var isArray = Array.isArray; function isObjectLike(value) { return !!value && typeof value == "object"; } __name(isObjectLike, "isObjectLike"); function isString(value) { return typeof value == "string" || !isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag; } __name(isString, "isString"); module.exports = isString; } }); // ../../node_modules/.pnpm/lodash.once@4.1.1/node_modules/lodash.once/index.js var require_lodash7 = __commonJS({ "../../node_modules/.pnpm/lodash.once@4.1.1/node_modules/lodash.once/index.js"(exports, module) { var FUNC_ERROR_TEXT = "Expected a function"; var INFINITY = 1 / 0; var MAX_INTEGER = 17976931348623157e292; var NAN = 0 / 0; var symbolTag = "[object Symbol]"; var reTrim = /^\s+|\s+$/g; var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; var reIsBinary = /^0b[01]+$/i; var reIsOctal = /^0o[0-7]+$/i; var freeParseInt = parseInt; var objectProto = Object.prototype; var objectToString = objectProto.toString; function before(n3, func) { var result; if (typeof func != "function") { throw new TypeError(FUNC_ERROR_TEXT); } n3 = toInteger(n3); return function() { if (--n3 > 0) { result = func.apply(this, arguments); } if (n3 <= 1) { func = void 0; } return result; }; } __name(before, "before"); function once(func) { return before(2, func); } __name(once, "once"); function isObject2(value) { var type = typeof value; return !!value && (type == "object" || type == "function"); } __name(isObject2, "isObject"); function isObjectLike(value) { return !!value && typeof value == "object"; } __name(isObjectLike, "isObjectLike"); function isSymbol(value) { return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag; } __name(isSymbol, "isSymbol"); function toFinite(value) { if (!value) { return value === 0 ? value : 0; } value = toNumber(value); if (value === INFINITY || value === -INFINITY) { var sign2 = value < 0 ? -1 : 1; return sign2 * MAX_INTEGER; } return value === value ? value : 0; } __name(toFinite, "toFinite"); function toInteger(value) { var result = toFinite(value), remainder = result % 1; return result === result ? remainder ? result - remainder : result : 0; } __name(toInteger, "toInteger"); function toNumber(value) { if (typeof value == "number") { return value; } if (isSymbol(value)) { return NAN; } if (isObject2(value)) { var other = typeof value.valueOf == "function" ? value.valueOf() : value; value = isObject2(other) ? other + "" : other; } if (typeof value != "string") { return value === 0 ? value : +value; } value = value.replace(reTrim, ""); var isBinary = reIsBinary.test(value); return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; } __name(toNumber, "toNumber"); module.exports = once; } }); // ../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/sign.js var require_sign = __commonJS({ "../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/sign.js"(exports, module) { var timespan = require_timespan(); var PS_SUPPORTED = require_psSupported(); var validateAsymmetricKey = require_validateAsymmetricKey(); var jws = require_jws(); var includes = require_lodash(); var isBoolean = require_lodash2(); var isInteger = require_lodash3(); var isNumber = require_lodash4(); var isPlainObject2 = require_lodash5(); var isString = require_lodash6(); var once = require_lodash7(); var { KeyObject, createSecretKey, createPrivateKey } = __require("crypto"); var SUPPORTED_ALGS = ["RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "HS256", "HS384", "HS512", "none"]; if (PS_SUPPORTED) { SUPPORTED_ALGS.splice(3, 0, "PS256", "PS384", "PS512"); } var sign_options_schema = { expiresIn: { isValid: /* @__PURE__ */ __name(function(value) { return isInteger(value) || isString(value) && value; }, "isValid"), message: '"expiresIn" should be a number of seconds or string representing a timespan' }, notBefore: { isValid: /* @__PURE__ */ __name(function(value) { return isInteger(value) || isString(value) && value; }, "isValid"), message: '"notBefore" should be a number of seconds or string representing a timespan' }, audience: { isValid: /* @__PURE__ */ __name(function(value) { return isString(value) || Array.isArray(value); }, "isValid"), message: '"audience" must be a string or array' }, algorithm: { isValid: includes.bind(null, SUPPORTED_ALGS), message: '"algorithm" must be a valid string enum value' }, header: { isValid: isPlainObject2, message: '"header" must be an object' }, encoding: { isValid: isString, message: '"encoding" must be a string' }, issuer: { isValid: isString, message: '"issuer" must be a string' }, subject: { isValid: isString, message: '"subject" must be a string' }, jwtid: { isValid: isString, message: '"jwtid" must be a string' }, noTimestamp: { isValid: isBoolean, message: '"noTimestamp" must be a boolean' }, keyid: { isValid: isString, message: '"keyid" must be a string' }, mutatePayload: { isValid: isBoolean, message: '"mutatePayload" must be a boolean' }, allowInsecureKeySizes: { isValid: isBoolean, message: '"allowInsecureKeySizes" must be a boolean' }, allowInvalidAsymmetricKeyTypes: { isValid: isBoolean, message: '"allowInvalidAsymmetricKeyTypes" must be a boolean' } }; var registered_claims_schema = { iat: { isValid: isNumber, message: '"iat" should be a number of seconds' }, exp: { isValid: isNumber, message: '"exp" should be a number of seconds' }, nbf: { isValid: isNumber, message: '"nbf" should be a number of seconds' } }; function validate3(schema2, allowUnknown, object2, parameterName) { if (!isPlainObject2(object2)) { throw new Error('Expected "' + parameterName + '" to be a plain object.'); } Object.keys(object2).forEach(function(key) { const validator = schema2[key]; if (!validator) { if (!allowUnknown) { throw new Error('"' + key + '" is not allowed in "' + parameterName + '"'); } return; } if (!validator.isValid(object2[key])) { throw new Error(validator.message); } }); } __name(validate3, "validate"); function validateOptions(options) { return validate3(sign_options_schema, false, options, "options"); } __name(validateOptions, "validateOptions"); function validatePayload(payload) { return validate3(registered_claims_schema, true, payload, "payload"); } __name(validatePayload, "validatePayload"); var options_to_payload = { "audience": "aud", "issuer": "iss", "subject": "sub", "jwtid": "jti" }; var options_for_objects = [ "expiresIn", "notBefore", "noTimestamp", "audience", "issuer", "subject", "jwtid" ]; module.exports = function(payload, secretOrPrivateKey, options, callback) { if (typeof options === "function") { callback = options; options = {}; } else { options = options || {}; } const isObjectPayload = typeof payload === "object" && !Buffer.isBuffer(payload); const header = Object.assign({ alg: options.algorithm || "HS256", typ: isObjectPayload ? "JWT" : void 0, kid: options.keyid }, options.header); function failure2(err) { if (callback) { return callback(err); } throw err; } __name(failure2, "failure"); if (!secretOrPrivateKey && options.algorithm !== "none") { return failure2(new Error("secretOrPrivateKey must have a value")); } if (secretOrPrivateKey != null && !(secretOrPrivateKey instanceof KeyObject)) { try { secretOrPrivateKey = createPrivateKey(secretOrPrivateKey); } catch (_) { try { secretOrPrivateKey = createSecretKey(typeof secretOrPrivateKey === "string" ? Buffer.from(secretOrPrivateKey) : secretOrPrivateKey); } catch (_2) { return failure2(new Error("secretOrPrivateKey is not valid key material")); } } } if (header.alg.startsWith("HS") && secretOrPrivateKey.type !== "secret") { return failure2(new Error(`secretOrPrivateKey must be a symmetric key when using ${header.alg}`)); } else if (/^(?:RS|PS|ES)/.test(header.alg)) { if (secretOrPrivateKey.type !== "private") { return failure2(new Error(`secretOrPrivateKey must be an asymmetric key when using ${header.alg}`)); } if (!options.allowInsecureKeySizes && !header.alg.startsWith("ES") && secretOrPrivateKey.asymmetricKeyDetails !== void 0 && //KeyObject.asymmetricKeyDetails is supported in Node 15+ secretOrPrivateKey.asymmetricKeyDetails.modulusLength < 2048) { return failure2(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${header.alg}`)); } } if (typeof payload === "undefined") { return failure2(new Error("payload is required")); } else if (isObjectPayload) { try { validatePayload(payload); } catch (error62) { return failure2(error62); } if (!options.mutatePayload) { payload = Object.assign({}, payload); } } else { const invalid_options = options_for_objects.filter(function(opt) { return typeof options[opt] !== "undefined"; }); if (invalid_options.length > 0) { return failure2(new Error("invalid " + invalid_options.join(",") + " option for " + typeof payload + " payload")); } } if (typeof payload.exp !== "undefined" && typeof options.expiresIn !== "undefined") { return failure2(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.')); } if (typeof payload.nbf !== "undefined" && typeof options.notBefore !== "undefined") { return failure2(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.')); } try { validateOptions(options); } catch (error62) { return failure2(error62); } if (!options.allowInvalidAsymmetricKeyTypes) { try { validateAsymmetricKey(header.alg, secretOrPrivateKey); } catch (error62) { return failure2(error62); } } const timestamp = payload.iat || Math.floor(Date.now() / 1e3); if (options.noTimestamp) { delete payload.iat; } else if (isObjectPayload) { payload.iat = timestamp; } if (typeof options.notBefore !== "undefined") { try { payload.nbf = timespan(options.notBefore, timestamp); } catch (err) { return failure2(err); } if (typeof payload.nbf === "undefined") { return failure2(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60')); } } if (typeof options.expiresIn !== "undefined" && typeof payload === "object") { try { payload.exp = timespan(options.expiresIn, timestamp); } catch (err) { return failure2(err); } if (typeof payload.exp === "undefined") { return failure2(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60')); } } Object.keys(options_to_payload).forEach(function(key) { const claim2 = options_to_payload[key]; if (typeof options[key] !== "undefined") { if (typeof payload[claim2] !== "undefined") { return failure2(new Error('Bad "options.' + key + '" option. The payload already has an "' + claim2 + '" property.')); } payload[claim2] = options[key]; } }); const encoding = options.encoding || "utf8"; if (typeof callback === "function") { callback = callback && once(callback); jws.createSign({ header, privateKey: secretOrPrivateKey, payload, encoding }).once("error", callback).once("done", function(signature) { if (!options.allowInsecureKeySizes && /^(?:RS|PS)/.test(header.alg) && signature.length < 256) { return callback(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${header.alg}`)); } callback(null, signature); }); } else { let signature = jws.sign({ header, payload, secret: secretOrPrivateKey, encoding }); if (!options.allowInsecureKeySizes && /^(?:RS|PS)/.test(header.alg) && signature.length < 256) { throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${header.alg}`); } return signature; } }; } }); // ../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/index.js var require_jsonwebtoken = __commonJS({ "../../node_modules/.pnpm/jsonwebtoken@9.0.3/node_modules/jsonwebtoken/index.js"(exports, module) { module.exports = { decode: require_decode(), verify: require_verify(), sign: require_sign(), JsonWebTokenError: require_JsonWebTokenError(), NotBeforeError: require_NotBeforeError(), TokenExpiredError: require_TokenExpiredError() }; } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/constants.js var RequestChecksumCalculation, DEFAULT_REQUEST_CHECKSUM_CALCULATION, ResponseChecksumValidation, DEFAULT_RESPONSE_CHECKSUM_VALIDATION, ChecksumAlgorithm, ChecksumLocation, DEFAULT_CHECKSUM_ALGORITHM; var init_constants = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/constants.js"() { RequestChecksumCalculation = { WHEN_SUPPORTED: "WHEN_SUPPORTED", WHEN_REQUIRED: "WHEN_REQUIRED" }; DEFAULT_REQUEST_CHECKSUM_CALCULATION = RequestChecksumCalculation.WHEN_SUPPORTED; ResponseChecksumValidation = { WHEN_SUPPORTED: "WHEN_SUPPORTED", WHEN_REQUIRED: "WHEN_REQUIRED" }; DEFAULT_RESPONSE_CHECKSUM_VALIDATION = RequestChecksumCalculation.WHEN_SUPPORTED; (function(ChecksumAlgorithm2) { ChecksumAlgorithm2["MD5"] = "MD5"; ChecksumAlgorithm2["CRC32"] = "CRC32"; ChecksumAlgorithm2["CRC32C"] = "CRC32C"; ChecksumAlgorithm2["CRC64NVME"] = "CRC64NVME"; ChecksumAlgorithm2["SHA1"] = "SHA1"; ChecksumAlgorithm2["SHA256"] = "SHA256"; })(ChecksumAlgorithm || (ChecksumAlgorithm = {})); (function(ChecksumLocation2) { ChecksumLocation2["HEADER"] = "header"; ChecksumLocation2["TRAILER"] = "trailer"; })(ChecksumLocation || (ChecksumLocation = {})); DEFAULT_CHECKSUM_ALGORITHM = ChecksumAlgorithm.CRC32; } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/stringUnionSelector.js var SelectorType2, stringUnionSelector; var init_stringUnionSelector = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/stringUnionSelector.js"() { (function(SelectorType3) { SelectorType3["ENV"] = "env"; SelectorType3["CONFIG"] = "shared config entry"; })(SelectorType2 || (SelectorType2 = {})); stringUnionSelector = /* @__PURE__ */ __name((obj, key, union2, type) => { if (!(key in obj)) return void 0; const value = obj[key].toUpperCase(); if (!Object.values(union2).includes(value)) { throw new TypeError(`Cannot load ${type} '${key}'. Expected one of ${Object.values(union2)}, got '${obj[key]}'.`); } return value; }, "stringUnionSelector"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS.js var ENV_REQUEST_CHECKSUM_CALCULATION, CONFIG_REQUEST_CHECKSUM_CALCULATION, NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS; var init_NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS.js"() { init_constants(); init_stringUnionSelector(); ENV_REQUEST_CHECKSUM_CALCULATION = "AWS_REQUEST_CHECKSUM_CALCULATION"; CONFIG_REQUEST_CHECKSUM_CALCULATION = "request_checksum_calculation"; NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS = { environmentVariableSelector: /* @__PURE__ */ __name((env3) => stringUnionSelector(env3, ENV_REQUEST_CHECKSUM_CALCULATION, RequestChecksumCalculation, SelectorType2.ENV), "environmentVariableSelector"), configFileSelector: /* @__PURE__ */ __name((profile) => stringUnionSelector(profile, CONFIG_REQUEST_CHECKSUM_CALCULATION, RequestChecksumCalculation, SelectorType2.CONFIG), "configFileSelector"), default: DEFAULT_REQUEST_CHECKSUM_CALCULATION }; } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS.js var ENV_RESPONSE_CHECKSUM_VALIDATION, CONFIG_RESPONSE_CHECKSUM_VALIDATION, NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS; var init_NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS.js"() { init_constants(); init_stringUnionSelector(); ENV_RESPONSE_CHECKSUM_VALIDATION = "AWS_RESPONSE_CHECKSUM_VALIDATION"; CONFIG_RESPONSE_CHECKSUM_VALIDATION = "response_checksum_validation"; NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = { environmentVariableSelector: /* @__PURE__ */ __name((env3) => stringUnionSelector(env3, ENV_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, SelectorType2.ENV), "environmentVariableSelector"), configFileSelector: /* @__PURE__ */ __name((profile) => stringUnionSelector(profile, CONFIG_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, SelectorType2.CONFIG), "configFileSelector"), default: DEFAULT_RESPONSE_CHECKSUM_VALIDATION }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js var state, emitWarningIfUnsupportedVersion2; var init_emitWarningIfUnsupportedVersion = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js"() { state = { warningEmitted: false }; emitWarningIfUnsupportedVersion2 = /* @__PURE__ */ __name((version2) => { if (version2 && !state.warningEmitted) { if (process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED === "true") { state.warningEmitted = true; return; } const userMajorVersion = parseInt(version2.substring(1, version2.indexOf("."))); const vv = 22; if (userMajorVersion < vv) { state.warningEmitted = true; process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3) versions published after the first week of January 2027 will require node >=${vv}. You are running node ${version2}. To continue receiving updates to AWS services, bug fixes, and security updates please upgrade to node >=${vv}. More information can be found at: https://a.co/c895JFp`); } } }, "emitWarningIfUnsupportedVersion"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/longPollMiddleware.js var longPollMiddleware, longPollMiddlewareOptions, getLongPollPlugin; var init_longPollMiddleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/longPollMiddleware.js"() { longPollMiddleware = /* @__PURE__ */ __name(() => (next, context) => async (args) => { context.__retryLongPoll = true; return next(args); }, "longPollMiddleware"); longPollMiddlewareOptions = { name: "longPollMiddleware", tags: ["RETRY"], step: "initialize", override: true }; getLongPollPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.add(longPollMiddleware(), longPollMiddlewareOptions); }, "applyToStack") }), "getLongPollPlugin"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/setCredentialFeature.js function setCredentialFeature(credentials, feature, value) { if (!credentials.$source) { credentials.$source = {}; } credentials.$source[feature] = value; return credentials; } var init_setCredentialFeature = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/setCredentialFeature.js"() { __name(setCredentialFeature, "setCredentialFeature"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/isStreamingPayload/isStreamingPayload.js import { Readable } from "node:stream"; var isStreamingPayload; var init_isStreamingPayload = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/isStreamingPayload/isStreamingPayload.js"() { isStreamingPayload = /* @__PURE__ */ __name((request) => request?.body instanceof Readable || typeof ReadableStream !== "undefined" && request?.body instanceof ReadableStream, "isStreamingPayload"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js var collectBody; var init_collect_stream_body = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js"() { init_serde(); collectBody = /* @__PURE__ */ __name(async (streamBody = new Uint8Array(), context) => { if (streamBody instanceof Uint8Array) { return Uint8ArrayBlobAdapter.mutate(streamBody); } if (!streamBody) { return Uint8ArrayBlobAdapter.mutate(new Uint8Array()); } const fromContext = context.streamCollector(streamBody); return Uint8ArrayBlobAdapter.mutate(await fromContext); }, "collectBody"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js function extendedEncodeURIComponent(str) { return encodeURIComponent(str).replace(/[!'()*]/g, function(c5) { return "%" + c5.charCodeAt(0).toString(16).toUpperCase(); }); } var init_extended_encode_uri_component = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js"() { __name(extendedEncodeURIComponent, "extendedEncodeURIComponent"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js var SerdeContext; var init_SerdeContext = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js"() { SerdeContext = class { static { __name(this, "SerdeContext"); } serdeContext; setSerdeContext(serdeContext) { this.serdeContext = serdeContext; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js var HttpProtocol; var init_HttpProtocol = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js"() { init_transport(); init_schema(); init_transport(); init_SerdeContext(); HttpProtocol = class extends SerdeContext { static { __name(this, "HttpProtocol"); } options; compositeErrorRegistry; constructor(options) { super(); this.options = options; this.compositeErrorRegistry = new TypeRegistry(options.defaultNamespace); for (const etr of options.errorTypeRegistries ?? []) { this.compositeErrorRegistry.copyFrom(etr); } } getRequestType() { return HttpRequest; } getResponseType() { return HttpResponse; } setSerdeContext(serdeContext) { this.serdeContext = serdeContext; this.serializer.setSerdeContext(serdeContext); this.deserializer.setSerdeContext(serdeContext); if (this.getPayloadCodec()) { this.getPayloadCodec().setSerdeContext(serdeContext); } } updateServiceEndpoint(request, endpoint) { if ("url" in endpoint) { request.protocol = endpoint.url.protocol; request.hostname = endpoint.url.hostname; request.port = endpoint.url.port ? Number(endpoint.url.port) : void 0; request.path = endpoint.url.pathname; request.fragment = endpoint.url.hash || void 0; request.username = endpoint.url.username || void 0; request.password = endpoint.url.password || void 0; if (!request.query) { request.query = {}; } for (const [k5, v] of endpoint.url.searchParams.entries()) { request.query[k5] = v; } if (endpoint.headers) { for (const name2 in endpoint.headers) { if (!hasOwn(endpoint.headers, name2)) continue; request.headers[name2] = endpoint.headers[name2].join(", "); } } return request; } else { request.protocol = endpoint.protocol; request.hostname = endpoint.hostname; request.port = endpoint.port ? Number(endpoint.port) : void 0; request.path = endpoint.path; request.query = { ...endpoint.query }; if (endpoint.headers) { for (const name2 in endpoint.headers) { if (!hasOwn(endpoint.headers, name2)) continue; request.headers[name2] = endpoint.headers[name2]; } } return request; } } setHostPrefix(request, operationSchema, input2) { if (this.serdeContext?.disableHostPrefix) { return; } const inputNs = NormalizedSchema.of(operationSchema.input); const opTraits = translateTraits(operationSchema.traits ?? {}); if (opTraits.endpoint) { let hostPrefix = opTraits.endpoint?.[0]; if (typeof hostPrefix === "string") { for (const [name2, member] of inputNs.structIterator()) { if (!member.getMergedTraits().hostLabel) { continue; } const replacement = input2[name2]; if (typeof replacement !== "string") { throw new Error(`@smithy/core/schema - ${name2} in input must be a string as hostLabel.`); } hostPrefix = hostPrefix.replace(`{${name2}}`, replacement); } request.hostname = hostPrefix + request.hostname; if (!isValidHostname(request.hostname)) { throw new Error(`[${request.hostname}] is not a valid hostname.`); } } } } deserializeMetadata(output2) { return { httpStatusCode: output2.statusCode, requestId: output2.headers["x-amzn-requestid"] ?? output2.headers["x-amzn-request-id"] ?? output2.headers["x-amz-request-id"], extendedRequestId: output2.headers["x-amz-id-2"], cfId: output2.headers["x-amz-cf-id"] }; } resolveError(name2, namespaces, registries) { const defaultErrorSchema = [-3, "", "Error", 0, [], [], 0]; let schema2; for (const registry2 of registries) { for (const ns of namespaces) { try { if (ns === "*") { schema2 = registry2.getSchema(name2); } else { schema2 = registry2.getSchema(ns + "#" + name2); } const errorCtor = registry2.getErrorCtor(schema2); if (errorCtor) { return [schema2, errorCtor, "modeled"]; } else { const syntheticErrorSchema = registry2.getBaseException(); if (syntheticErrorSchema) { const syntheticErrorCtor = registry2.getErrorCtor(syntheticErrorSchema); if (syntheticErrorCtor) { return [schema2, syntheticErrorCtor, "synthetic"]; } } } } catch (ignored) { } } } for (const registry2 of registries) { const syntheticErrorSchema = registry2.getBaseException(); if (syntheticErrorSchema) { const syntheticErrorCtor = registry2.getErrorCtor(syntheticErrorSchema); if (syntheticErrorCtor) { return [syntheticErrorSchema, syntheticErrorCtor, "synthetic"]; } } } return [defaultErrorSchema, Error, "native"]; } async serializeEventStream({ eventStream, requestSchema, initialRequest }) { const eventStreamSerde = await this.loadEventStreamCapability(); return eventStreamSerde.serializeEventStream({ eventStream, requestSchema, initialRequest }); } async deserializeEventStream({ response, responseSchema, initialResponseContainer }) { const eventStreamSerde = await this.loadEventStreamCapability(); return eventStreamSerde.deserializeEventStream({ response, responseSchema, initialResponseContainer }); } async loadEventStreamCapability() { const { EventStreamSerde, eventStreamSerdeProvider } = await import("./event-streams-IPK6VS6T.js"); const marshaller = this.resolveEventStreamMarshaller(eventStreamSerdeProvider); return new EventStreamSerde({ marshaller, serializer: this.serializer, deserializer: this.deserializer, serdeContext: this.serdeContext, defaultContentType: this.getDefaultContentType(), compositeErrorRegistry: this.compositeErrorRegistry }); } getDefaultContentType() { throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`); } async deserializeHttpMessage(schema2, context, response, arg4, arg5) { void schema2; void context; void response; void arg4; void arg5; return []; } getEventStreamMarshaller() { const context = this.serdeContext; if (!context.eventStreamMarshaller) { throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext."); } return context.eventStreamMarshaller; } resolveEventStreamMarshaller(importedProvider) { const context = this.serdeContext; if (context.eventStreamMarshaller) { return context.eventStreamMarshaller; } return importedProvider(this.serdeContext); } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js var HttpBindingProtocol; var init_HttpBindingProtocol = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js"() { init_transport(); init_schema(); init_serde(); init_transport(); init_HttpProtocol(); init_collect_stream_body(); init_extended_encode_uri_component(); HttpBindingProtocol = class extends HttpProtocol { static { __name(this, "HttpBindingProtocol"); } async serializeRequest(operationSchema, _input, context) { const input2 = _input && typeof _input === "object" ? _input : {}; const serializer = this.serializer; const query = {}; const headers = {}; const endpoint = await context.endpoint(); const ns = NormalizedSchema.of(operationSchema?.input); const payloadMemberNames = []; const payloadMemberSchemas = []; let hasNonHttpBindingMember = false; let payload; const request = new HttpRequest({ protocol: "", hostname: "", port: void 0, path: "", fragment: void 0, query, headers, body: void 0 }); if (endpoint) { this.updateServiceEndpoint(request, endpoint); this.setHostPrefix(request, operationSchema, input2); const opTraits = translateTraits(operationSchema.traits); if (opTraits.http) { request.method = opTraits.http[0]; const [path2, search] = opTraits.http[1].split("?"); if (request.path == "/") { request.path = path2; } else { request.path += path2; } const traitSearchParams = new URLSearchParams(search ?? ""); for (const [key, value] of traitSearchParams) { query[key] = value; } } } for (const [memberName, memberNs] of ns.structIterator()) { const memberTraits = memberNs.getMergedTraits() ?? {}; const inputMemberValue = input2[memberName]; if (inputMemberValue == null && !memberNs.isIdempotencyToken()) { if (memberTraits.httpLabel) { if (request.path.includes(`{${memberName}+}`) || request.path.includes(`{${memberName}}`)) { throw new Error(`No value provided for input HTTP label: ${memberName}.`); } } continue; } if (memberTraits.httpPayload) { const isStreaming2 = memberNs.isStreaming(); if (isStreaming2) { const isEventStream = memberNs.isStructSchema(); if (isEventStream) { if (input2[memberName]) { payload = await this.serializeEventStream({ eventStream: input2[memberName], requestSchema: ns }); } } else { payload = inputMemberValue; } } else { serializer.write(memberNs, inputMemberValue); payload = serializer.flush(); } } else if (memberTraits.httpLabel) { serializer.write(memberNs, inputMemberValue); const replacement = serializer.flush(); if (request.path.includes(`{${memberName}+}`)) { request.path = request.path.replace(`{${memberName}+}`, replacement.split("/").map(extendedEncodeURIComponent).join("/")); } else if (request.path.includes(`{${memberName}}`)) { request.path = request.path.replace(`{${memberName}}`, extendedEncodeURIComponent(replacement)); } } else if (memberTraits.httpHeader) { serializer.write(memberNs, inputMemberValue); headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush()); } else if (typeof memberTraits.httpPrefixHeaders === "string") { for (const key in inputMemberValue) { if (!hasOwn(inputMemberValue, key)) continue; const val = inputMemberValue[key]; const amalgam = memberTraits.httpPrefixHeaders + key; serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val); headers[amalgam.toLowerCase()] = serializer.flush(); } } else if (memberTraits.httpQuery || memberTraits.httpQueryParams) { this.serializeQuery(memberNs, inputMemberValue, query); } else { hasNonHttpBindingMember = true; payloadMemberNames.push(memberName); payloadMemberSchemas.push(memberNs); } } if (hasNonHttpBindingMember && input2) { const [namespace, name2] = (ns.getName(true) ?? "#Unknown").split("#"); const requiredMembers = ns.getSchema()[6]; const payloadSchema = [ 3, namespace, name2, ns.getMergedTraits(), payloadMemberNames, payloadMemberSchemas, void 0 ]; if (requiredMembers) { payloadSchema[6] = requiredMembers; } else { payloadSchema.pop(); } serializer.write(payloadSchema, input2); payload = serializer.flush(); } request.headers = headers; request.query = query; request.body = payload; return request; } serializeQuery(ns, data, query) { const serializer = this.serializer; const traits = ns.getMergedTraits(); if (traits.httpQueryParams) { for (const key in data) { if (!hasOwn(data, key)) continue; if (!(key in query)) { const val = data[key]; const valueSchema = ns.getValueSchema(); Object.assign(valueSchema.getMergedTraits(), { ...traits, httpQuery: key, httpQueryParams: void 0 }); this.serializeQuery(valueSchema, val, query); } } return; } if (ns.isListSchema()) { const sparse = !!ns.getMergedTraits().sparse; const buffer = []; for (const item of data) { serializer.write([ns.getValueSchema(), traits], item); const serializable = serializer.flush(); if (sparse || serializable !== void 0) { buffer.push(serializable); } } query[traits.httpQuery] = buffer; } else { serializer.write([ns, traits], data); query[traits.httpQuery] = serializer.flush(); } } async deserializeResponse(operationSchema, context, response) { const deserializer = this.deserializer; const ns = NormalizedSchema.of(operationSchema.output); const dataObject = {}; if (response.statusCode >= 300) { const bytes = await collectBody(response.body, context); if (bytes.byteLength > 0) { Object.assign(dataObject, await deserializer.read(15, bytes)); } await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response)); throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw."); } for (const header in response.headers) { if (!hasOwn(response.headers, header)) continue; const value = response.headers[header]; delete response.headers[header]; response.headers[header.toLowerCase()] = value; } const nonHttpBindingMembers = await this.deserializeHttpMessage(ns, context, response, dataObject); if (nonHttpBindingMembers.length) { const bytes = await collectBody(response.body, context); if (bytes.byteLength > 0) { const dataFromBody = await deserializer.read(ns, bytes); for (const member of nonHttpBindingMembers) { if (dataFromBody[member] != null) { dataObject[member] = dataFromBody[member]; } } } } else if (nonHttpBindingMembers.discardResponseBody) { await collectBody(response.body, context); } dataObject.$metadata = this.deserializeMetadata(response); return dataObject; } async deserializeHttpMessage(schema2, context, response, arg4, arg5) { let dataObject; if (arg4 instanceof Set) { dataObject = arg5; } else { dataObject = arg4; } let discardResponseBody = true; const deserializer = this.deserializer; const ns = NormalizedSchema.of(schema2); const nonHttpBindingMembers = []; for (const [memberName, memberSchema] of ns.structIterator()) { const memberTraits = memberSchema.getMemberTraits(); if (memberTraits.httpPayload) { discardResponseBody = false; const isStreaming2 = memberSchema.isStreaming(); if (isStreaming2) { const isEventStream = memberSchema.isStructSchema(); if (isEventStream) { dataObject[memberName] = await this.deserializeEventStream({ response, responseSchema: ns }); } else { dataObject[memberName] = sdkStreamMixin(response.body); } } else if (response.body) { const bytes = await collectBody(response.body, context); if (bytes.byteLength > 0) { dataObject[memberName] = await deserializer.read(memberSchema, bytes); } } } else if (memberTraits.httpHeader) { const key = String(memberTraits.httpHeader).toLowerCase(); const value = response.headers[key]; if (null != value) { if (memberSchema.isListSchema()) { const headerListValueSchema = memberSchema.getValueSchema(); headerListValueSchema.getMergedTraits().httpHeader = key; let sections; if (headerListValueSchema.isTimestampSchema() && headerListValueSchema.getSchema() === 4) { sections = splitEvery(value, ",", 2); } else { sections = splitHeader(value); } const list = []; for (const section of sections) { list.push(await deserializer.read(headerListValueSchema, section.trim())); } dataObject[memberName] = list; } else { dataObject[memberName] = await deserializer.read(memberSchema, value); } } } else if (memberTraits.httpPrefixHeaders !== void 0) { dataObject[memberName] = {}; for (const header in response.headers) { if (!hasOwn(response.headers, header)) continue; if (header.startsWith(memberTraits.httpPrefixHeaders)) { const value = response.headers[header]; const valueSchema = memberSchema.getValueSchema(); valueSchema.getMergedTraits().httpHeader = header; dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read(valueSchema, value); } } } else if (memberTraits.httpResponseCode) { dataObject[memberName] = response.statusCode; } else { nonHttpBindingMembers.push(memberName); } } nonHttpBindingMembers.discardResponseBody = discardResponseBody; return nonHttpBindingMembers; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js var RpcProtocol; var init_RpcProtocol = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js"() { init_transport(); init_schema(); init_transport(); init_HttpProtocol(); init_collect_stream_body(); RpcProtocol = class extends HttpProtocol { static { __name(this, "RpcProtocol"); } async serializeRequest(operationSchema, _input, context) { const serializer = this.serializer; const query = {}; const headers = {}; const endpoint = await context.endpoint(); const ns = NormalizedSchema.of(operationSchema?.input); const schema2 = ns.getSchema(); let payload; const input2 = _input && typeof _input === "object" ? _input : {}; const request = new HttpRequest({ protocol: "", hostname: "", port: void 0, path: "/", fragment: void 0, query, headers, body: void 0 }); if (endpoint) { this.updateServiceEndpoint(request, endpoint); this.setHostPrefix(request, operationSchema, input2); } if (input2) { const eventStreamMember = ns.getEventStreamMember(); if (eventStreamMember) { if (input2[eventStreamMember]) { const initialRequest = {}; for (const [memberName] of ns.structIterator()) { if (memberName !== eventStreamMember && input2[memberName] != null) { initialRequest[memberName] = input2[memberName]; } } payload = await this.serializeEventStream({ eventStream: input2[eventStreamMember], requestSchema: ns, initialRequest }); } } else { serializer.write(schema2, input2); payload = serializer.flush(); } } request.headers = Object.assign(request.headers, headers); request.query = query; request.body = payload; request.method = "POST"; return request; } async deserializeResponse(operationSchema, context, response) { const deserializer = this.deserializer; const ns = NormalizedSchema.of(operationSchema.output); const dataObject = {}; if (response.statusCode >= 300) { const bytes = await collectBody(response.body, context); if (bytes.byteLength > 0) { Object.assign(dataObject, await deserializer.read(15, bytes)); } await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response)); throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw."); } for (const header in response.headers) { if (!hasOwn(response.headers, header)) continue; const value = response.headers[header]; delete response.headers[header]; response.headers[header.toLowerCase()] = value; } const eventStreamMember = ns.getEventStreamMember(); if (eventStreamMember) { dataObject[eventStreamMember] = await this.deserializeEventStream({ response, responseSchema: ns, initialResponseContainer: dataObject }); } else { const bytes = await collectBody(response.body, context); if (bytes.byteLength > 0) { Object.assign(dataObject, await deserializer.read(ns, bytes)); } } dataObject.$metadata = this.deserializeMetadata(response); return dataObject; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js var resolvedPath; var init_resolve_path = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js"() { init_extended_encode_uri_component(); resolvedPath = /* @__PURE__ */ __name((resolvedPath2, input2, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { if (input2 != null && input2[memberName] !== void 0) { const labelValue = labelValueProvider(); if (labelValue == null || labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: " + memberName + "."); } resolvedPath2 = resolvedPath2.replace(uriLabel, isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent(segment)).join("/") : extendedEncodeURIComponent(labelValue)); } else { throw new Error("No value provided for input HTTP label: " + memberName + "."); } return resolvedPath2; }, "resolvedPath"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js function requestBuilder(input2, context) { return new RequestBuilder(input2, context); } var RequestBuilder; var init_requestBuilder = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js"() { init_transport(); init_resolve_path(); __name(requestBuilder, "requestBuilder"); RequestBuilder = class { static { __name(this, "RequestBuilder"); } input; context; query = {}; method = ""; headers = {}; path = ""; body = null; hostname = ""; resolvePathStack = []; constructor(input2, context) { this.input = input2; this.context = context; } async build() { const { hostname: hostname3, protocol = "https", port, path: basePath } = await this.context.endpoint(); this.path = basePath; for (const resolvePath of this.resolvePathStack) { resolvePath(this.path); } return new HttpRequest({ protocol, hostname: this.hostname || hostname3, port, method: this.method, path: this.path, query: this.query, body: this.body, headers: this.headers }); } hn(hostname3) { this.hostname = hostname3; return this; } bp(uriLabel) { this.resolvePathStack.push((basePath) => { this.path = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + uriLabel; }); return this; } p(memberName, labelValueProvider, uriLabel, isGreedyLabel) { this.resolvePathStack.push((path2) => { this.path = resolvedPath(path2, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel); }); return this; } h(headers) { this.headers = headers; return this; } q(query) { this.query = query; return this; } b(body) { this.body = body; return this; } m(method) { this.method = method; return this; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js function determineTimestampFormat(ns, settings) { if (settings.timestampFormat.useTrait) { if (ns.isTimestampSchema() && (ns.getSchema() === 5 || ns.getSchema() === 6 || ns.getSchema() === 7)) { return ns.getSchema(); } } const { httpLabel, httpPrefixHeaders, httpHeader, httpQuery } = ns.getMergedTraits(); const bindingFormat = settings.httpBindings ? typeof httpPrefixHeaders === "string" || Boolean(httpHeader) ? 6 : Boolean(httpQuery) || Boolean(httpLabel) ? 5 : void 0 : void 0; return bindingFormat ?? settings.timestampFormat.default; } var init_determineTimestampFormat = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js"() { __name(determineTimestampFormat, "determineTimestampFormat"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js var FromStringShapeDeserializer; var init_FromStringShapeDeserializer = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js"() { init_schema(); init_serde(); init_SerdeContext(); init_determineTimestampFormat(); FromStringShapeDeserializer = class extends SerdeContext { static { __name(this, "FromStringShapeDeserializer"); } settings; constructor(settings) { super(); this.settings = settings; } read(_schema, data) { const ns = NormalizedSchema.of(_schema); if (ns.isListSchema()) { return splitHeader(data).map((item) => this.read(ns.getValueSchema(), item)); } if (ns.isBlobSchema()) { return (this.serdeContext?.base64Decoder ?? fromBase64)(data); } if (ns.isTimestampSchema()) { const format = determineTimestampFormat(ns, this.settings); switch (format) { case 5: return _parseRfc3339DateTimeWithOffset(data); case 6: return _parseRfc7231DateTime(data); case 7: return _parseEpochTimestamp(data); default: console.warn("Missing timestamp format, parsing value with Date constructor:", data); return new Date(data); } } if (ns.isStringSchema()) { const mediaType = ns.getMergedTraits().mediaType; let intermediateValue = data; if (mediaType) { if (ns.getMergedTraits().httpHeader) { intermediateValue = this.base64ToUtf8(intermediateValue); } const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); if (isJson) { intermediateValue = LazyJsonString.from(intermediateValue); } return intermediateValue; } } if (ns.isNumericSchema()) { return Number(data); } if (ns.isBigIntegerSchema()) { return BigInt(data); } if (ns.isBigDecimalSchema()) { return new NumericValue(data, "bigDecimal"); } if (ns.isBooleanSchema()) { return String(data).toLowerCase() === "true"; } return data; } base64ToUtf8(base64String) { return (this.serdeContext?.utf8Encoder ?? toUtf8)((this.serdeContext?.base64Decoder ?? fromBase64)(base64String)); } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js var HttpInterceptingShapeDeserializer; var init_HttpInterceptingShapeDeserializer = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js"() { init_schema(); init_serde(); init_SerdeContext(); init_FromStringShapeDeserializer(); HttpInterceptingShapeDeserializer = class extends SerdeContext { static { __name(this, "HttpInterceptingShapeDeserializer"); } codecDeserializer; stringDeserializer; constructor(codecDeserializer, codecSettings) { super(); this.codecDeserializer = codecDeserializer; this.stringDeserializer = new FromStringShapeDeserializer(codecSettings); } setSerdeContext(serdeContext) { this.stringDeserializer.setSerdeContext(serdeContext); this.codecDeserializer.setSerdeContext(serdeContext); this.serdeContext = serdeContext; } read(schema2, data) { const ns = NormalizedSchema.of(schema2); const traits = ns.getMergedTraits(); const toString = this.serdeContext?.utf8Encoder ?? toUtf8; if (traits.httpHeader || traits.httpResponseCode) { return this.stringDeserializer.read(ns, toString(data)); } if (traits.httpPayload) { if (ns.isBlobSchema()) { const toBytes = this.serdeContext?.utf8Decoder ?? fromUtf8; if (typeof data === "string") { return toBytes(data); } return data; } else if (ns.isStringSchema()) { if ("byteLength" in data) { return toString(data); } return data; } } return this.codecDeserializer.read(ns, data); } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js var ToStringShapeSerializer; var init_ToStringShapeSerializer = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js"() { init_schema(); init_serde(); init_SerdeContext(); init_determineTimestampFormat(); ToStringShapeSerializer = class extends SerdeContext { static { __name(this, "ToStringShapeSerializer"); } settings; stringBuffer = ""; constructor(settings) { super(); this.settings = settings; } write(schema2, value) { const ns = NormalizedSchema.of(schema2); switch (typeof value) { case "object": if (value === null) { this.stringBuffer = "null"; return; } if (ns.isTimestampSchema()) { if (!(value instanceof Date)) { throw new Error(`@smithy/core/protocols - received non-Date value ${value} when schema expected Date in ${ns.getName(true)}`); } const format = determineTimestampFormat(ns, this.settings); switch (format) { case 5: this.stringBuffer = value.toISOString().replace(".000Z", "Z"); break; case 6: this.stringBuffer = dateToUtcString(value); break; case 7: this.stringBuffer = String(value.getTime() / 1e3); break; default: console.warn("Missing timestamp format, using epoch seconds", value); this.stringBuffer = String(value.getTime() / 1e3); } return; } if (ns.isBlobSchema() && "byteLength" in value) { this.stringBuffer = (this.serdeContext?.base64Encoder ?? toBase64)(value); return; } if (ns.isListSchema() && Array.isArray(value)) { let buffer = ""; for (const item of value) { this.write([ns.getValueSchema(), ns.getMergedTraits()], item); const headerItem = this.flush(); const serialized = ns.getValueSchema().isTimestampSchema() ? headerItem : quoteHeader(headerItem); if (buffer !== "") { buffer += ", "; } buffer += serialized; } this.stringBuffer = buffer; return; } this.stringBuffer = JSON.stringify(value, null, 2); break; case "string": const mediaType = ns.getMergedTraits().mediaType; let intermediateValue = value; if (mediaType) { const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); if (isJson) { intermediateValue = LazyJsonString.from(intermediateValue); } if (ns.getMergedTraits().httpHeader) { this.stringBuffer = (this.serdeContext?.base64Encoder ?? toBase64)(intermediateValue.toString()); return; } } this.stringBuffer = value; break; default: if (ns.isIdempotencyToken()) { this.stringBuffer = generateIdempotencyToken(); } else { this.stringBuffer = String(value); } } } flush() { const buffer = this.stringBuffer; this.stringBuffer = ""; return buffer; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js var HttpInterceptingShapeSerializer; var init_HttpInterceptingShapeSerializer = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js"() { init_schema(); init_ToStringShapeSerializer(); HttpInterceptingShapeSerializer = class { static { __name(this, "HttpInterceptingShapeSerializer"); } codecSerializer; stringSerializer; buffer; constructor(codecSerializer, codecSettings, stringSerializer = new ToStringShapeSerializer(codecSettings)) { this.codecSerializer = codecSerializer; this.stringSerializer = stringSerializer; } setSerdeContext(serdeContext) { this.codecSerializer.setSerdeContext(serdeContext); this.stringSerializer.setSerdeContext(serdeContext); } write(schema2, value) { const ns = NormalizedSchema.of(schema2); const traits = ns.getMergedTraits(); if (traits.httpHeader || traits.httpLabel || traits.httpQuery) { this.stringSerializer.write(ns, value); this.buffer = this.stringSerializer.flush(); return; } return this.codecSerializer.write(ns, value); } flush() { if (this.buffer !== void 0) { const buffer = this.buffer; this.buffer = void 0; return buffer; } return this.codecSerializer.flush(); } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/Field.js var import_types, Field; var init_Field = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/Field.js"() { import_types = __toESM(require_dist_cjs()); Field = class { static { __name(this, "Field"); } name; kind; values; constructor({ name: name2, kind = import_types.FieldPosition.HEADER, values = [] }) { this.name = name2; this.kind = kind; this.values = values; } add(value) { this.values.push(value); } set(values) { this.values = values; } remove(value) { this.values = this.values.filter((v) => v !== value); } toString() { return this.values.map((v) => v.includes(",") || v.includes(" ") ? `"${v}"` : v).join(", "); } get() { return this.values; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/Fields.js var Fields; var init_Fields = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/Fields.js"() { Fields = class { static { __name(this, "Fields"); } entries = {}; encoding; constructor({ fields = [], encoding = "utf-8" }) { fields.forEach(this.setField.bind(this)); this.encoding = encoding; } setField(field) { this.entries[field.name.toLowerCase()] = field; } getField(name2) { return this.entries[name2.toLowerCase()]; } removeField(name2) { delete this.entries[name2.toLowerCase()]; } getByType(kind) { return Object.values(this.entries).filter((field) => field.kind === kind); } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js var getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig; var init_httpExtensionConfiguration = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js"() { getHttpHandlerExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { if (runtimeConfig.logger && runtimeConfig.logger.constructor?.name !== "NoOpLogger") { runtimeConfig.requestHandler?.updateHttpClientConfig?.(/* @__PURE__ */ Symbol.for("logger"), runtimeConfig.logger); } return { setHttpHandler(handler) { runtimeConfig.requestHandler = handler; }, httpHandler() { return runtimeConfig.requestHandler; }, updateHttpClientConfig(key, value) { runtimeConfig.requestHandler?.updateHttpClientConfig(key, value); }, httpHandlerConfigs() { return runtimeConfig.requestHandler.httpHandlerConfigs(); } }; }, "getHttpHandlerExtensionConfiguration"); resolveHttpHandlerRuntimeConfig = /* @__PURE__ */ __name((httpHandlerExtensionConfiguration) => { return { requestHandler: httpHandlerExtensionConfiguration.httpHandler() }; }, "resolveHttpHandlerRuntimeConfig"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js function contentLengthMiddleware(bodyLengthChecker) { return (next) => async (args) => { const request = args.request; if (HttpRequest.isInstance(request)) { const { body, headers } = request; if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) { try { const length = bodyLengthChecker(body); if (length != null) { request.headers = { ...request.headers, [CONTENT_LENGTH_HEADER]: String(length) }; } } catch (ignored) { } } } return next({ ...args, request }); }; } var CONTENT_LENGTH_HEADER, contentLengthMiddlewareOptions, getContentLengthPlugin; var init_contentLengthMiddleware = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js"() { init_transport(); CONTENT_LENGTH_HEADER = "content-length"; __name(contentLengthMiddleware, "contentLengthMiddleware"); contentLengthMiddlewareOptions = { step: "build", tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"], name: "contentLengthMiddleware", override: true }; getContentLengthPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions); }, "applyToStack") }), "getContentLengthPlugin"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri.js var escapeUri, hexEncode; var init_escape_uri = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri.js"() { escapeUri = /* @__PURE__ */ __name((uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode), "escapeUri"); hexEncode = /* @__PURE__ */ __name((c5) => `%${c5.charCodeAt(0).toString(16).toUpperCase()}`, "hexEncode"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri-path.js var escapeUriPath; var init_escape_uri_path = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri-path.js"() { init_escape_uri(); escapeUriPath = /* @__PURE__ */ __name((uri) => uri.split("/").map(escapeUri).join("/"), "escapeUriPath"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/querystring-builder/buildQueryString.js function buildQueryString(query) { const parts = []; for (let key of Object.keys(query).sort()) { const value = query[key]; key = escapeUri(key); if (Array.isArray(value)) { for (let i5 = 0, iLen = value.length; i5 < iLen; i5++) { parts.push(`${key}=${escapeUri(value[i5])}`); } } else { let qsEntry = key; if (value || typeof value === "string") { qsEntry += `=${escapeUri(value)}`; } parts.push(qsEntry); } } return parts.join("&"); } var init_buildQueryString = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/querystring-builder/buildQueryString.js"() { init_escape_uri(); __name(buildQueryString, "buildQueryString"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js var SerdeContextConfig; var init_ConfigurableSerdeContext = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js"() { SerdeContextConfig = class { static { __name(this, "SerdeContextConfig"); } serdeContext; setSerdeContext(serdeContext) { this.serdeContext = serdeContext; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js var UnionSerde; var init_UnionSerde = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js"() { UnionSerde = class { static { __name(this, "UnionSerde"); } from; to; keys; constructor(from, to) { this.from = from; this.to = to; const keys = Object.keys(this.from); const set2 = new Set(keys); set2.delete("__type"); this.keys = set2; } mark(key) { this.keys.delete(key); } hasUnknown() { return this.keys.size === 1 && Object.keys(this.to).length === 0; } writeUnknown() { if (this.hasUnknown()) { const k5 = this.keys.values().next().value; const v = this.from[k5]; this.to.$unknown = [k5, v]; } } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/detectBufferParsing.js function detectBufferParsing() { if (canParseBuffer === void 0) { try { if (typeof Buffer !== "function") { canParseBuffer = false; } else { const result = JSON.parse(Buffer.from([123, 125])); canParseBuffer = result !== null && typeof result === "object"; } } catch { canParseBuffer = false; } } return canParseBuffer; } var canParseBuffer; var init_detectBufferParsing = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/detectBufferParsing.js"() { __name(detectBufferParsing, "detectBufferParsing"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/jsonReviver.js function jsonReviver(key, value, context) { if (context?.source) { const numericString = context.source; if (typeof value === "number") { const inSafeRange = value <= Number.MAX_SAFE_INTEGER && value >= Number.MIN_SAFE_INTEGER; if (inSafeRange) { if (isRepresentable(numericString, value)) { return value; } return new NumericValue(numericString, "bigDecimal"); } else { if (isFractionalBigNumeric(numericString)) { return new NumericValue(numericString, "bigDecimal"); } if (/[eE]/.test(numericString)) { return expandExponentToBigInt(numericString); } return BigInt(numericString); } } } return value; } function isFractionalBigNumeric(s2) { const dotIndex = s2.indexOf("."); if (dotIndex === -1) { return false; } const eIndex = s2.search(/[eE]/); if (eIndex === -1) { return true; } const fracDigits = eIndex - dotIndex - 1; const exp = parseInt(s2.slice(eIndex + 1), 10); return exp < fracDigits; } function isRepresentable(numericString, value) { if (numericString === String(value)) { return true; } if (Object.is(value, -0)) { return true; } if (/[eE]/.test(numericString)) { return expandToDecimal(numericString) === expandToDecimal(String(value)); } const normalized = numericString.replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, ""); const canonical = String(value); if (normalized === canonical) { return true; } if (/[eE]/.test(canonical)) { return normalized === expandToDecimal(canonical); } return false; } function expandToDecimal(s2) { const negative = s2.startsWith("-"); const abs = negative ? s2.slice(1) : s2; const eIndex = abs.search(/[eE]/); let result; if (eIndex === -1) { result = abs; } else { const exp = parseInt(abs.slice(eIndex + 1), 10); const mantissa = abs.slice(0, eIndex); const dotIndex = mantissa.indexOf("."); let digits; let intLen; if (dotIndex === -1) { digits = mantissa; intLen = mantissa.length; } else { digits = mantissa.slice(0, dotIndex) + mantissa.slice(dotIndex + 1); intLen = dotIndex; } digits = digits.replace(/0+$/, "") || "0"; const newDotPos = intLen + exp; if (digits === "0") { result = "0"; } else if (newDotPos <= 0) { result = "0." + "0".repeat(-newDotPos) + digits; } else if (newDotPos >= digits.length) { result = digits + "0".repeat(newDotPos - digits.length); } else { result = digits.slice(0, newDotPos) + "." + digits.slice(newDotPos); } } if (result.includes(".")) { result = result.replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, ""); } return (negative ? "-" : "") + result; } function expandExponentToBigInt(s2) { const eIndex = s2.search(/[eE]/); const exp = parseInt(s2.slice(eIndex + 1), 10); const negative = s2.startsWith("-"); const mantissa = s2.slice(negative ? 1 : 0, eIndex); const dotIndex = mantissa.indexOf("."); let digits; let shift; if (dotIndex === -1) { digits = mantissa; shift = exp; } else { digits = mantissa.slice(0, dotIndex) + mantissa.slice(dotIndex + 1); const fracDigits = mantissa.length - dotIndex - 1; shift = exp - fracDigits; } digits = digits.replace(/0+$/, "") || "0"; const result = BigInt(digits) * 10n ** BigInt(shift + (mantissa.replace(".", "").length - digits.length)); return negative ? -result : result; } var init_jsonReviver = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/jsonReviver.js"() { init_serde(); __name(jsonReviver, "jsonReviver"); __name(isFractionalBigNumeric, "isFractionalBigNumeric"); __name(isRepresentable, "isRepresentable"); __name(expandToDecimal, "expandToDecimal"); __name(expandExponentToBigInt, "expandExponentToBigInt"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/needsReviver.js function needsReviver(schema2) { const ns = NormalizedSchema.of(schema2); const raw4 = ns.getSchema(); if (Array.isArray(raw4) && ns.isStructSchema()) { if (REVIVER_SYMBOL in raw4) { return raw4[REVIVER_SYMBOL]; } const result = _check2(ns, /* @__PURE__ */ new Set()); raw4[REVIVER_SYMBOL] = result; return result; } return _check2(ns, /* @__PURE__ */ new Set()); } function _check2(ns, seen) { const raw4 = ns.getSchema(); if (seen.has(raw4)) { return false; } seen.add(raw4); if (ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) { return true; } if (ns.isStructSchema()) { for (const [, memberSchema] of ns.structIterator()) { if (_check2(memberSchema, seen)) { return true; } } } else if (ns.isListSchema() || ns.isMapSchema()) { if (_check2(ns.getValueSchema(), seen)) { return true; } } else if (ns.isDocumentSchema()) { return true; } return false; } var REVIVER_SYMBOL; var init_needsReviver = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/needsReviver.js"() { init_schema(); REVIVER_SYMBOL = /* @__PURE__ */ Symbol.for("@aws-sdk/reviver"); __name(needsReviver, "needsReviver"); __name(_check2, "_check"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/common.js var collectBodyString; var init_common2 = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/common.js"() { init_collect_stream_body(); init_serde(); collectBodyString = /* @__PURE__ */ __name((streamBody, context) => collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? toUtf8)(body)), "collectBodyString"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/parseJsonBody.js async function parseJsonBody(streamBody, context, schema2) { let parsingInput; if (detectBufferParsing() && typeof streamBody?.[Symbol.asyncIterator] === "function") { const buffer = await collectBody(streamBody, context); if (typeof Buffer === "function") { if (Buffer.isBuffer(buffer)) { parsingInput = buffer; } else { parsingInput = Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength); } } } if (!parsingInput) { parsingInput = await collectBodyString(streamBody, context); } if (parsingInput.length === 0) { return {}; } const reviver = schema2 && needsReviver(schema2) ? jsonReviver : void 0; try { return JSON.parse(parsingInput, reviver); } catch (e5) { if (e5?.name === "SyntaxError") { Object.defineProperty(e5, "$responseBodyText", { value: typeof parsingInput === "string" ? parsingInput : parsingInput.toString("utf8") }); } throw e5; } } var parseJsonErrorBody, findKey, sanitizeErrorCode, loadRestJsonErrorCode, loadJsonRpcErrorCode, loadSmithyRpcV2JsonErrorCode, loadErrorCode; var init_parseJsonBody = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/parseJsonBody.js"() { init_collect_stream_body(); init_common2(); init_detectBufferParsing(); init_jsonReviver(); init_needsReviver(); __name(parseJsonBody, "parseJsonBody"); parseJsonErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => { const value = await parseJsonBody(errorBody, context); value.message = value.message ?? value.Message; return value; }, "parseJsonErrorBody"); findKey = /* @__PURE__ */ __name((object2, key) => Object.keys(object2).find((k5) => k5.toLowerCase() === key.toLowerCase()), "findKey"); sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => { let cleanValue = rawValue; if (typeof cleanValue === "number") { cleanValue = cleanValue.toString(); } if (cleanValue.indexOf(",") >= 0) { cleanValue = cleanValue.split(",")[0]; } if (cleanValue.indexOf(":") >= 0) { cleanValue = cleanValue.split(":")[0]; } if (cleanValue.indexOf("#") >= 0) { cleanValue = cleanValue.split("#")[1]; } return cleanValue; }, "sanitizeErrorCode"); loadRestJsonErrorCode = /* @__PURE__ */ __name((output2, data) => { return loadErrorCode(output2, data, ["header", "code", "type"]); }, "loadRestJsonErrorCode"); loadJsonRpcErrorCode = /* @__PURE__ */ __name((output2, data, queryCompat = false) => { return loadErrorCode(output2, data, queryCompat ? ["code", "header", "type"] : ["type", "code", "header"]); }, "loadJsonRpcErrorCode"); loadSmithyRpcV2JsonErrorCode = /* @__PURE__ */ __name((output2, data) => { if (data?.__type !== void 0) { let cleanValue = data.__type; if (typeof cleanValue === "number") { cleanValue = cleanValue.toString(); } if (cleanValue.indexOf(",") >= 0) { cleanValue = cleanValue.split(",")[0]; } if (cleanValue.indexOf(":") >= 0) { cleanValue = cleanValue.split(":")[0]; } return cleanValue; } }, "loadSmithyRpcV2JsonErrorCode"); loadErrorCode = /* @__PURE__ */ __name(({ headers }, data, order) => { while (order.length > 0) { const location = order.shift(); switch (location) { case "header": const headerKey = findKey(headers ?? {}, "x-amzn-errortype"); if (headerKey !== void 0) { return sanitizeErrorCode(headers[headerKey]); } break; case "code": const codeKey = findKey(data ?? {}, "code"); if (codeKey && data[codeKey] !== void 0) { return sanitizeErrorCode(data[codeKey]); } break; case "type": if (data?.__type !== void 0) { return sanitizeErrorCode(data.__type); } break; } } }, "loadErrorCode"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/writeKey.js function writeKey(obj) { Object.defineProperty(obj, "__proto__", { value: void 0, writable: true, enumerable: true, configurable: true }); } var init_writeKey = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/writeKey.js"() { __name(writeKey, "writeKey"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js var JsonShapeDeserializer2; var init_JsonShapeDeserializer2 = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js"() { init_determineTimestampFormat(); init_schema(); init_serde(); init_ConfigurableSerdeContext(); init_UnionSerde(); init_detectBufferParsing(); init_jsonReviver(); init_needsReviver(); init_parseJsonBody(); init_writeKey(); init_transport(); JsonShapeDeserializer2 = class extends SerdeContextConfig { static { __name(this, "JsonShapeDeserializer2"); } settings; constructor(settings) { super(); this.settings = settings; } async read(schema2, data) { const reviver = needsReviver(schema2) ? jsonReviver : void 0; let parsed2; if (typeof data === "string") { if (data.length === 0) { return {}; } parsed2 = JSON.parse(data, reviver); } else if (data instanceof Uint8Array && detectBufferParsing()) { if (data.byteLength === 0) { return {}; } const buf = Buffer.isBuffer(data) ? data : Buffer.from(data.buffer, data.byteOffset, data.byteLength); parsed2 = JSON.parse(buf, reviver); } else { parsed2 = await parseJsonBody(data, this.serdeContext, schema2); } return this._read(schema2, parsed2); } readObject(schema2, data) { return this._read(schema2, data); } _read(schema2, value) { const isObject2 = value !== null && typeof value === "object"; const ns = NormalizedSchema.of(schema2); if (isObject2) { if (ns.isStructSchema()) { return this._readStruct(ns, value); } if (Array.isArray(value) && ns.isListSchema()) { const listMember = ns.getValueSchema(); if (this.needsTransform(listMember)) { for (let i5 = 0; i5 < value.length; ++i5) { value[i5] = this._read(listMember, value[i5]); } } return value; } if (ns.isMapSchema()) { const mapMember = ns.getValueSchema(); const map2 = value; if (this.needsTransform(mapMember)) { for (const k5 in map2) { if (!hasOwn(map2, k5)) continue; if (k5 === "__proto__") { writeKey(map2); } map2[k5] = this._read(mapMember, map2[k5]); } } return map2; } } if (ns.isBlobSchema() && typeof value === "string") { return fromBase64(value); } const mediaType = ns.getMergedTraits().mediaType; if (ns.isStringSchema() && typeof value === "string" && mediaType) { const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); if (isJson) { return LazyJsonString.from(value); } return value; } if (ns.isTimestampSchema() && value != null) { const format = determineTimestampFormat(ns, this.settings); switch (format) { case 5: return parseRfc3339DateTimeWithOffset(value); case 6: return parseRfc7231DateTime(value); case 7: return parseEpochTimestamp(value); default: console.warn("Missing timestamp format, parsing value with Date constructor:", value); return new Date(value); } } if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) { return BigInt(value); } if (ns.isBigDecimalSchema() && value != void 0) { if (value instanceof NumericValue) { return value; } const untyped = value; if (untyped.type === "bigDecimal" && "string" in untyped) { return new NumericValue(untyped.string, untyped.type); } return new NumericValue(String(value), "bigDecimal"); } if (ns.isNumericSchema() && typeof value === "string") { switch (value) { case "Infinity": return Infinity; case "-Infinity": return -Infinity; case "NaN": return NaN; } return value; } if (ns.isDocumentSchema()) { if (isObject2) { if (Array.isArray(value)) { for (let i5 = 0; i5 < value.length; ++i5) { const v = value[i5]; if (!(v instanceof NumericValue)) { value[i5] = this._read(ns, v); } } } else { const doc = value; for (const k5 in doc) { if (!hasOwn(doc, k5)) continue; if (k5 === "__proto__") { writeKey(doc); } const v = doc[k5]; if (!(v instanceof NumericValue)) { doc[k5] = this._read(ns, v); } } } } } return value; } _readStruct(ns, record2) { const union2 = ns.isUnionSchema(); const out = {}; let nameMap; const hasType = typeof record2.__type === "string"; const { jsonName } = this.settings; if (jsonName && hasType) { nameMap = {}; } let unionSerde; if (union2) { unionSerde = new UnionSerde(record2, out); } for (const [memberName, memberSchema] of ns.structIterator()) { let fromKey = memberName; if (jsonName) { fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey; if (hasType) { nameMap[fromKey] = memberName; } } if (union2) { unionSerde.mark(fromKey); } if (record2[fromKey] != null) { out[memberName] = this._read(memberSchema, record2[fromKey]); } } if (union2) { unionSerde.writeUnknown(); } else if (hasType) { for (const k5 in record2) { if (!hasOwn(record2, k5)) continue; const v = record2[k5]; const t = jsonName ? nameMap[k5] ?? k5 : k5; if (!(t in out)) { out[t] = v; } } } return out; } needsTransform(ns) { if (ns.isBlobSchema() || ns.isTimestampSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema() || ns.isNumericSchema()) { return true; } if (ns.isDocumentSchema() || ns.isStructSchema() || ns.isListSchema() || ns.isMapSchema()) { return true; } if (ns.isStringSchema() && ns.getMergedTraits().mediaType) { return true; } return false; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js var JsonBytesStringAdapter, warned; var init_JsonBytesStringAdapter = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js"() { init_serde(); JsonBytesStringAdapter = class _JsonBytesStringAdapter extends Uint8Array { static { __name(this, "JsonBytesStringAdapter"); } string = null; static allocUnsafe(bytes) { if (typeof Buffer === "function") { const buffer = Buffer.allocUnsafe(bytes); return new _JsonBytesStringAdapter(buffer.buffer, buffer.byteOffset, buffer.byteLength); } return new _JsonBytesStringAdapter(bytes); } toString() { return this.s(); } valueOf() { return this.s(); } includes(searchString, position) { if (typeof searchString === "string") { return this.s().includes(searchString, position); } return Uint8Array.prototype.includes.call(this, searchString, position); } indexOf(searchString, position) { if (typeof searchString === "string") { return this.s().indexOf(searchString, position); } return Uint8Array.prototype.indexOf.call(this, searchString, position); } lastIndexOf(searchString, position) { if (typeof searchString === "string") { return this.s().lastIndexOf(searchString, position); } const fn = Uint8Array.prototype.lastIndexOf; if (position !== void 0) { return fn.call(this, searchString, position); } return fn.call(this, searchString); } startsWith(searchString, position) { return this.s().startsWith(searchString, position); } endsWith(searchString, endPosition) { return this.s().endsWith(searchString, endPosition); } match(regexp) { return this.s().match(regexp); } replace(searchValue, replaceValue) { return this.s().replace(searchValue, replaceValue); } search(regexp) { return this.s().search(regexp); } split(separator, limit) { return this.s().split(separator, limit); } substring(start, end) { return this.s().substring(start, end); } trim() { return this.s().trim(); } trimStart() { return this.s().trimStart(); } trimEnd() { return this.s().trimEnd(); } charAt(pos) { return this.s().charAt(pos); } charCodeAt(index) { return this.s().charCodeAt(index); } padStart(maxLength, fillString) { return this.s().padStart(maxLength, fillString); } padEnd(maxLength, fillString) { return this.s().padEnd(maxLength, fillString); } repeat(count) { return this.s().repeat(count); } toUpperCase() { return this.s().toUpperCase(); } toLowerCase() { return this.s().toLowerCase(); } s() { if (this.string == null) { const n3 = Date.now(); if (n3 > warned + 6e4) { console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."); warned = n3; } this.string = toUtf8(this); } return this.string; } }; warned = 0; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js function alloc(size) { return JsonBytesStringAdapter.allocUnsafe(size); } var encoder, OPEN_BRACE, CLOSE_BRACE, OPEN_BRACKET, CLOSE_BRACKET, QUOTE, COLON, COMMA, BACKSLASH, TRUE, FALSE, NULL, ESCAPE_TABLE, INITIAL_BUFFER_SIZE, JsonShapeSerializer2; var init_JsonShapeSerializer2 = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js"() { init_determineTimestampFormat(); init_schema(); init_serde(); init_ConfigurableSerdeContext(); init_transport(); init_JsonBytesStringAdapter(); encoder = new TextEncoder(); OPEN_BRACE = 123; CLOSE_BRACE = 125; OPEN_BRACKET = 91; CLOSE_BRACKET = 93; QUOTE = 34; COLON = 58; COMMA = 44; BACKSLASH = 92; TRUE = new Uint8Array([116, 114, 117, 101]); FALSE = new Uint8Array([102, 97, 108, 115, 101]); NULL = new Uint8Array([110, 117, 108, 108]); ESCAPE_TABLE = new Array(128).fill(null); ESCAPE_TABLE[8] = "b"; ESCAPE_TABLE[9] = "t"; ESCAPE_TABLE[10] = "n"; ESCAPE_TABLE[12] = "f"; ESCAPE_TABLE[13] = "r"; ESCAPE_TABLE[34] = '"'; ESCAPE_TABLE[92] = "\\"; for (let i5 = 0; i5 < 32; i5++) { if (ESCAPE_TABLE[i5] === null) { ESCAPE_TABLE[i5] = "u00" + i5.toString(16).padStart(2, "0"); } } INITIAL_BUFFER_SIZE = 2048; __name(alloc, "alloc"); JsonShapeSerializer2 = class _JsonShapeSerializer2 extends SerdeContextConfig { static { __name(this, "JsonShapeSerializer2"); } settings; json; i = 0; rootSchema; rawValue; passthrough = false; constructor(settings) { super(); this.settings = settings; this.json = alloc(INITIAL_BUFFER_SIZE); } write(schema2, value) { this.i = 0; this.rawValue = value; this.rootSchema = NormalizedSchema.of(schema2); this.passthrough = this.rootSchema.isBlobSchema() || this.rootSchema.isStringSchema(); if (!this.passthrough) { this.writeValue(this.rootSchema, value, void 0); } } writeDiscriminatedDocument(schema2, value) { this.i = 0; this.rootSchema = NormalizedSchema.of(schema2); const ns = this.rootSchema; if (ns.isStructSchema() && value != null && typeof value === "object") { this.writeValue(ns, value, void 0); const prefix = `"__type":"${ns.getName(true) ?? "Unknown"}",`; const z2 = prefix.length; this.ensure(z2); this.json.copyWithin(1 + z2, 1, this.i); encoder.encodeInto(prefix, this.json.subarray(1)); this.i += z2; } else { this.writeValue(ns, value, void 0); } } flush() { this.rootSchema = void 0; const finalPosition = this.i; this.i = 0; const raw4 = this.rawValue; this.rawValue = void 0; if (finalPosition === 0) { return raw4; } const result = this.json.subarray(0, finalPosition); this.json = alloc(INITIAL_BUFFER_SIZE); return result; } ensure(byteCount) { const { i: i5, json: json2 } = this; if (i5 + byteCount > json2.length) { let newSize = json2.length * 2; while (newSize < i5 + byteCount) { newSize *= 2; } const next = alloc(newSize); next.set(this.json); this.json = next; } } writeAscii(s2) { const z2 = s2.length; this.ensure(z2); let { i: i5, json: json2 } = this; for (let j5 = 0; j5 < z2; ++j5) { json2[i5] = s2.charCodeAt(j5); i5 += 1; } this.i = i5; } writeAsciiQuoted(s2) { const z2 = s2.length; this.ensure(z2 + 4); let { json: json2, i: i5 } = this; json2[i5++] = QUOTE; for (let j5 = 0; j5 < z2; ++j5) { json2[i5++] = s2.charCodeAt(j5); } json2[i5++] = QUOTE; this.i = i5; } writeJsonString(s2) { const z2 = s2.length; this.ensure(z2 * 3 + 2); this.json[this.i++] = QUOTE; for (let j5 = 0; j5 < z2; ++j5) { const c5 = s2.charCodeAt(j5); if (c5 > 34 && c5 < 92) { this.json[this.i++] = c5; } else if (c5 < 128) { const esc2 = ESCAPE_TABLE[c5]; if (esc2 !== null) { this.ensure(esc2.length + 1 + (z2 - j5 - 1) * 3 + 1); this.json[this.i++] = BACKSLASH; for (let k5 = 0; k5 < esc2.length; k5++) { this.json[this.i++] = esc2.charCodeAt(k5); } } else { this.json[this.i++] = c5; } } else if (c5 >= 55296 && c5 <= 56319) { const next = j5 + 1 < z2 ? s2.charCodeAt(j5 + 1) : 0; if (next >= 56320 && next <= 57343) { this.ensure(4); const { written } = encoder.encodeInto(s2.substring(j5, j5 + 2), this.json.subarray(this.i)); this.i += written; ++j5; } else { this.ensure(6 + (z2 - j5 - 1) * 3 + 1); this.writeUnicodeEscape(c5); } } else if (c5 >= 56320 && c5 <= 57343) { this.ensure(6 + (z2 - j5 - 1) * 3 + 1); this.writeUnicodeEscape(c5); } else { let { i: i5, json: json2 } = this; if (c5 < 2048) { json2[i5++] = 192 | c5 >> 6; json2[i5++] = 128 | c5 & 63; } else { json2[i5++] = 224 | c5 >> 12; json2[i5++] = 128 | c5 >> 6 & 63; json2[i5++] = 128 | c5 & 63; } this.i = i5; } } this.json[this.i++] = QUOTE; } writeUnicodeEscape(code) { let { json: json2, i: i5 } = this; json2[i5++] = BACKSLASH; json2[i5++] = 117; const hex3 = code.toString(16).padStart(4, "0"); for (let j5 = 0; j5 < 4; ++j5) { json2[i5++] = hex3.charCodeAt(j5); } this.i = i5; } static B64 = (() => { const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; const table = new Uint8Array(64); for (let i5 = 0; i5 < 64; ++i5) { table[i5] = chars.charCodeAt(i5); } return table; })(); writeBase64(data) { const b64Len = Math.ceil(data.length / 3) * 4; this.ensure(b64Len + 2); const json2 = this.json; const B64 = _JsonShapeSerializer2.B64; let i5 = this.i; json2[i5++] = QUOTE; const len = data.length; const remainder = len % 3; const mainLen = len - remainder; for (let j5 = 0; j5 < mainLen; j5 += 3) { const a5 = data[j5]; const b5 = data[j5 + 1]; const c5 = data[j5 + 2]; json2[i5++] = B64[a5 >> 2]; json2[i5++] = B64[(a5 & 3) << 4 | b5 >> 4]; json2[i5++] = B64[(b5 & 15) << 2 | c5 >> 6]; json2[i5++] = B64[c5 & 63]; } if (remainder === 2) { const a5 = data[mainLen]; const b5 = data[mainLen + 1]; json2[i5++] = B64[a5 >> 2]; json2[i5++] = B64[(a5 & 3) << 4 | b5 >> 4]; json2[i5++] = B64[(b5 & 15) << 2]; json2[i5++] = 61; } else if (remainder === 1) { const a5 = data[mainLen]; json2[i5++] = B64[a5 >> 2]; json2[i5++] = B64[(a5 & 3) << 4]; json2[i5++] = 61; json2[i5++] = 61; } json2[i5++] = QUOTE; this.i = i5; } writeValue(schema2, value, container) { if (value == null) { if (container?.isStructSchema()) { if (value === void 0) { const ns2 = NormalizedSchema.of(schema2); if (ns2.isIdempotencyToken()) { this.writeAsciiQuoted(generateIdempotencyToken()); return; } } return; } this.ensure(4); this.json.set(NULL, this.i); this.i += 4; return; } const ns = NormalizedSchema.of(schema2); const isObject2 = typeof value === "object"; if (ns.isStringSchema()) { const mediaType = ns.getMergedTraits().mediaType; if (mediaType) { const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); if (isJson) { this.writeJsonString(LazyJsonString.from(value).toString()); return; } } } if (this.settings.bigNumberAsString && value != null && (ns.isBigIntegerSchema() || ns.isBigDecimalSchema())) { const asString = value instanceof NumericValue ? value.string : String(value); this.writeAsciiQuoted(asString); return; } if (isObject2) { if (ns.isStructSchema()) { this.writeStruct(ns, value); return; } if (Array.isArray(value) && (ns.isListSchema() || ns.isDocumentSchema())) { this.writeList(ns, value, ns.isDocumentSchema()); return; } if (ns.isMapSchema()) { this.writeMap(ns, value, false); return; } if (value instanceof Uint8Array && (ns.isBlobSchema() || ns.isDocumentSchema())) { this.writeBase64(value); return; } if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) { this.writeTimestamp(ns, value); return; } if (value instanceof NumericValue) { this.writeAscii(value.string); return; } if (ns.isDocumentSchema()) { if (Array.isArray(value)) { this.writeList(ns, value, true); } else { this.writeMap(ns, value, true); } return; } const json2 = JSON.stringify(value); this.writeAscii(json2); return; } if (typeof value === "string") { if (ns.isBlobSchema()) { const b64 = (this.serdeContext?.base64Encoder ?? toBase64)(value); this.writeAsciiQuoted(b64); return; } this.writeJsonString(value); return; } if (typeof value === "number") { if (Math.abs(value) === Infinity || Number.isNaN(value)) { this.writeAsciiQuoted(String(value)); return; } const numStr = String(value); this.writeAscii(numStr); return; } if (typeof value === "boolean") { this.ensure(5); let { i: i5, json: json2 } = this; if (value) { json2.set(TRUE, i5); i5 += 4; } else { json2.set(FALSE, i5); i5 += 5; } this.i = i5; return; } if (typeof value === "bigint") { this.writeAscii(value.toString()); return; } this.writeAscii(String(value)); } writeStruct(ns, value) { this.ensure(2); this.json[this.i++] = OPEN_BRACE; let wroteAny = false; const hasType = typeof value.__type === "string"; let writtenKeys; if (hasType) { writtenKeys = /* @__PURE__ */ new Set(); } for (const [memberName, memberSchema] of ns.structIterator()) { const item = value[memberName]; if (item == null && !memberSchema.isIdempotencyToken()) { continue; } if (wroteAny) { this.ensure(1); this.json[this.i++] = COMMA; } wroteAny = true; const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName; if (writtenKeys) { writtenKeys.add(memberName); writtenKeys.add(targetKey); } this.writeAsciiQuoted(targetKey); this.json[this.i++] = COLON; this.writeValue(memberSchema, item, ns); } if (!wroteAny && ns.isUnionSchema()) { const { $unknown } = value; if (Array.isArray($unknown)) { const [k5, v] = $unknown; this.writeAsciiQuoted(k5); this.ensure(1); this.json[this.i++] = COLON; this.writeValue(15, v, ns); } } else if (hasType) { for (const k5 in value) { if (writtenKeys.has(k5)) { continue; } writtenKeys.add(k5); const v = value[k5]; if (wroteAny) { this.ensure(1); this.json[this.i++] = COMMA; } wroteAny = true; this.writeAsciiQuoted(k5); this.ensure(1); this.json[this.i++] = COLON; this.writeValue(15, v, void 0); } } this.ensure(1); this.json[this.i++] = CLOSE_BRACE; } writeList(ns, value, isDocument) { const sparse = !!ns.getMergedTraits().sparse; const valueSchema = ns.getValueSchema(); if (!isDocument) { if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) { let hasSpecials = false; for (let i5 = 0; i5 < value.length; ++i5) { const v = value[i5]; if (Number.isNaN(v) || v === Infinity || v === -Infinity || v == null && !sparse) { hasSpecials = true; break; } } let json2; if (!hasSpecials) { json2 = JSON.stringify(value); } else { const out = []; for (let i5 = 0; i5 < value.length; ++i5) { const v = value[i5]; if (v == null && !sparse) continue; if (Number.isNaN(v) || v === Infinity || v === -Infinity) { out.push(String(v)); } else { out.push(v); } } json2 = JSON.stringify(out); } this.ensure(json2.length * 3); this.i += encoder.encodeInto(json2, this.json.subarray(this.i)).written; return; } } this.ensure(2); this.json[this.i++] = OPEN_BRACKET; let wroteFirstItem = false; for (let i5 = 0; i5 < value.length; ++i5) { const item = value[i5]; if (isDocument ? item === void 0 : item == null && !sparse) { continue; } if (wroteFirstItem) { this.ensure(1); this.json[this.i++] = COMMA; } this.writeValue(valueSchema, item, void 0); wroteFirstItem = true; } this.ensure(1); this.json[this.i++] = CLOSE_BRACKET; } writeMap(ns, value, isDocument) { const sparse = !!ns.getMergedTraits().sparse; const valueSchema = ns.getValueSchema(); if (!isDocument) { if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) { let modifications; for (const k5 in value) { if (!hasOwn(value, k5)) continue; const v = value[k5]; if (Number.isNaN(v) || v === Infinity || v === -Infinity) { (modifications ??= {})[k5] = v; value[k5] = String(v); } else if (v === null && !sparse) { (modifications ??= {})[k5] = null; value[k5] = void 0; } } const json2 = JSON.stringify(value); if (modifications) { Object.assign(value, modifications); } this.ensure(json2.length * 3); this.i += encoder.encodeInto(json2, this.json.subarray(this.i)).written; return; } } this.ensure(2); this.json[this.i++] = OPEN_BRACE; let first = true; for (const k5 in value) { if (!hasOwn(value, k5)) continue; const v = value[k5]; if (isDocument ? v === void 0 : v == null && !sparse) { continue; } if (!first) { this.ensure(1); this.json[this.i++] = COMMA; } first = false; this.writeJsonString(k5); this.ensure(1); this.json[this.i++] = COLON; this.writeValue(valueSchema, v, void 0); } this.ensure(1); this.json[this.i++] = CLOSE_BRACE; } writeTimestamp(ns, value) { const format = determineTimestampFormat(ns, this.settings); switch (format) { case 5: { const iso = value.toISOString().replace(".000Z", "Z"); this.writeAsciiQuoted(iso); return; } case 6: { this.writeAsciiQuoted(dateToUtcString(value)); return; } case 7: { const epochSecs = String(value.getTime() / 1e3); this.writeAscii(epochSecs); return; } default: { const epochSecs = String(value.getTime() / 1e3); this.writeAscii(epochSecs); return; } } } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js var JsonCodec2; var init_JsonCodec2 = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js"() { init_ConfigurableSerdeContext(); init_JsonShapeDeserializer2(); init_JsonShapeSerializer2(); JsonCodec2 = class extends SerdeContextConfig { static { __name(this, "JsonCodec2"); } settings; constructor(settings) { super(); this.settings = settings; } createSerializer() { const serializer = new JsonShapeSerializer2(this.settings); serializer.setSerdeContext(this.serdeContext); return serializer; } createDeserializer() { const deserializer = new JsonShapeDeserializer2(this.settings); deserializer.setSerdeContext(this.serdeContext); return deserializer; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js var SmithyRpcV2JsonProtocol; var init_SmithyRpcV2JsonProtocol = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js"() { init_RpcProtocol(); init_schema(); init_transport(); init_JsonCodec2(); init_parseJsonBody(); SmithyRpcV2JsonProtocol = class extends RpcProtocol { static { __name(this, "SmithyRpcV2JsonProtocol"); } codec = new JsonCodec2({ timestampFormat: { useTrait: false, default: 7 }, jsonName: false, bigNumberAsString: true }); serializer = this.codec.createSerializer(); deserializer = this.codec.createDeserializer(); constructor({ defaultNamespace, errorTypeRegistries: errorTypeRegistries5 }) { super({ defaultNamespace, errorTypeRegistries: errorTypeRegistries5 }); } getShapeId() { return "smithy.protocols#rpcv2Json"; } getPayloadCodec() { return this.codec; } async serializeRequest(operationSchema, input2, context) { const request = await super.serializeRequest(operationSchema, input2, context); Object.assign(request.headers, { "content-type": this.getDefaultContentType(), "smithy-protocol": "rpc-v2-json", accept: this.getDefaultContentType() }); if (deref(operationSchema.input) === "unit") { delete request.body; delete request.headers["content-type"]; } else if (!request.body) { request.body = "{}"; } const { service, operation } = getSmithyContext(context); const path2 = `/service/${service}/operation/${operation}`; if (request.path.endsWith("/")) { request.path += path2.slice(1); } else { request.path += path2; } return request; } async deserializeResponse(operationSchema, context, response) { return super.deserializeResponse(operationSchema, context, response); } async handleError(operationSchema, context, response, dataObject, metadata) { const errorName = loadSmithyRpcV2JsonErrorCode(response, dataObject) ?? "Unknown"; const errorMetadata = { $metadata: metadata, $fault: response.statusCode <= 500 ? "client" : "server" }; let namespace = this.options.defaultNamespace; if (errorName.includes("#")) { [namespace] = errorName.split("#"); } const registry2 = this.compositeErrorRegistry; const nsRegistry = TypeRegistry.for(namespace); registry2.copyFrom(nsRegistry); let errorSchema; try { errorSchema = registry2.getSchema(errorName); } catch (ignored) { if (dataObject.Message) { dataObject.message = dataObject.Message; } const syntheticRegistry = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace); registry2.copyFrom(syntheticRegistry); const baseExceptionSchema = registry2.getBaseException(); if (baseExceptionSchema) { const ErrorCtor2 = registry2.getErrorCtor(baseExceptionSchema); throw Object.assign(new ErrorCtor2({ name: errorName }), errorMetadata, dataObject); } throw Object.assign(new Error(errorName), errorMetadata, dataObject); } const ns = NormalizedSchema.of(errorSchema); const ErrorCtor = registry2.getErrorCtor(errorSchema); const message = dataObject.message ?? dataObject.Message ?? "Unknown"; const exception = new ErrorCtor({}); const output2 = {}; const errorDeserializer = this.codec.createDeserializer(); for (const [name2, member] of ns.structIterator()) { if (dataObject[name2] != null) { output2[name2] = errorDeserializer.readObject(member, dataObject[name2]); } } throw Object.assign(exception, errorMetadata, { $fault: ns.getMergedTraits().error, message }, output2); } getDefaultContentType() { return "application/json"; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js var JsonShapeDeserializer; var init_JsonShapeDeserializer = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js"() { init_determineTimestampFormat(); init_schema(); init_serde(); init_serde(); init_transport(); init_ConfigurableSerdeContext(); init_UnionSerde(); init_jsonReviver(); init_needsReviver(); init_parseJsonBody(); init_writeKey(); JsonShapeDeserializer = class extends SerdeContextConfig { static { __name(this, "JsonShapeDeserializer"); } settings; constructor(settings) { super(); this.settings = settings; } async read(schema2, data) { const reviver = needsReviver(schema2) ? jsonReviver : void 0; return this._read(schema2, typeof data === "string" ? JSON.parse(data, reviver) : await parseJsonBody(data, this.serdeContext, schema2)); } readObject(schema2, data) { return this._read(schema2, data); } _read(schema2, value) { const isObject2 = value !== null && typeof value === "object"; const ns = NormalizedSchema.of(schema2); if (isObject2) { if (ns.isStructSchema()) { const record2 = value; const union2 = ns.isUnionSchema(); const out = {}; let nameMap = void 0; const { jsonName } = this.settings; if (jsonName) { nameMap = {}; } let unionSerde; if (union2) { unionSerde = new UnionSerde(record2, out); } for (const [memberName, memberSchema] of ns.structIterator()) { let fromKey = memberName; if (jsonName) { fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey; nameMap[fromKey] = memberName; } if (union2) { unionSerde.mark(fromKey); } if (record2[fromKey] != null) { out[memberName] = this._read(memberSchema, record2[fromKey]); } } if (union2) { unionSerde.writeUnknown(); } else if (typeof record2.__type === "string") { for (const k5 in record2) { if (!hasOwn(record2, k5)) continue; const v = record2[k5]; const t = jsonName ? nameMap[k5] ?? k5 : k5; if (!(t in out)) { out[t] = v; } } } return out; } if (Array.isArray(value) && ns.isListSchema()) { const listMember = ns.getValueSchema(); const out = []; for (const item of value) { out.push(this._read(listMember, item)); } return out; } if (ns.isMapSchema()) { const mapMember = ns.getValueSchema(); const out = {}; for (const _k in value) { if (!hasOwn(value, _k)) continue; if (_k === "__proto__") { writeKey(out); } out[_k] = this._read(mapMember, value[_k]); } return out; } } if (ns.isBlobSchema() && typeof value === "string") { return fromBase64(value); } const mediaType = ns.getMergedTraits().mediaType; if (ns.isStringSchema() && typeof value === "string" && mediaType) { const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); if (isJson) { return LazyJsonString.from(value); } return value; } if (ns.isTimestampSchema() && value != null) { const format = determineTimestampFormat(ns, this.settings); switch (format) { case 5: return parseRfc3339DateTimeWithOffset(value); case 6: return parseRfc7231DateTime(value); case 7: return parseEpochTimestamp(value); default: console.warn("Missing timestamp format, parsing value with Date constructor:", value); return new Date(value); } } if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) { return BigInt(value); } if (ns.isBigDecimalSchema() && value != void 0) { if (value instanceof NumericValue) { return value; } const untyped = value; if (untyped.type === "bigDecimal" && "string" in untyped) { return new NumericValue(untyped.string, untyped.type); } return new NumericValue(String(value), "bigDecimal"); } if (ns.isNumericSchema() && typeof value === "string") { switch (value) { case "Infinity": return Infinity; case "-Infinity": return -Infinity; case "NaN": return NaN; } return value; } if (ns.isDocumentSchema()) { if (isObject2) { const out = Array.isArray(value) ? [] : {}; for (const k5 in value) { if (!hasOwn(value, k5)) continue; if (k5 === "__proto__") { writeKey(out); } const v = value[k5]; if (v instanceof NumericValue) { out[k5] = v; } else { out[k5] = this._read(ns, v); } } return out; } else { return structuredClone(value); } } return value; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/jsonReplacer.js var NUMERIC_CONTROL_CHAR, JsonReplacer; var init_jsonReplacer = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/jsonReplacer.js"() { init_serde(); NUMERIC_CONTROL_CHAR = String.fromCharCode(925); JsonReplacer = class { static { __name(this, "JsonReplacer"); } values = /* @__PURE__ */ new Map(); counter = 0; stage = 0; createReplacer() { if (this.stage === 1) { throw new Error("@aws-sdk/core/protocols - JsonReplacer already created."); } if (this.stage === 2) { throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted."); } this.stage = 1; return (key, value) => { if (value instanceof NumericValue) { const v = `${NUMERIC_CONTROL_CHAR + "nv" + this.counter++}_` + value.string; this.values.set(`"${v}"`, value.string); return v; } if (typeof value === "bigint") { const s2 = value.toString(); const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s2; this.values.set(`"${v}"`, s2); return v; } return value; }; } replaceInJson(json2) { if (this.stage === 0) { throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet."); } if (this.stage === 2) { throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted."); } this.stage = 2; if (this.counter === 0) { return json2; } for (const [key, value] of this.values) { json2 = json2.replace(key, value); } return json2; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js var JsonShapeSerializer; var init_JsonShapeSerializer = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js"() { init_determineTimestampFormat(); init_schema(); init_serde(); init_ConfigurableSerdeContext(); init_jsonReplacer(); init_writeKey(); init_transport(); JsonShapeSerializer = class extends SerdeContextConfig { static { __name(this, "JsonShapeSerializer"); } settings; buffer; useReplacer = false; rootSchema; constructor(settings) { super(); this.settings = settings; } write(schema2, value) { this.rootSchema = NormalizedSchema.of(schema2); this.buffer = this._write(this.rootSchema, value); } flush() { const { rootSchema, useReplacer } = this; this.rootSchema = void 0; this.useReplacer = false; if (rootSchema?.isStructSchema() || rootSchema?.isDocumentSchema()) { if (!useReplacer) { return JSON.stringify(this.buffer); } const replacer = new JsonReplacer(); return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0)); } return this.buffer; } writeDiscriminatedDocument(schema2, value) { this.write(schema2, value); if (typeof this.buffer === "object") { this.buffer.__type = NormalizedSchema.of(schema2).getName(true); } } _write(schema2, value, container) { const isObject2 = value !== null && typeof value === "object"; const ns = NormalizedSchema.of(schema2); if (isObject2) { if (ns.isStructSchema()) { const record2 = value; const out = {}; const { jsonName } = this.settings; let nameMap = void 0; if (jsonName) { nameMap = {}; } let outCount = 0; for (const [memberName, memberSchema] of ns.structIterator()) { const serializableValue = this._write(memberSchema, record2[memberName], ns); if (serializableValue !== void 0) { let targetKey = memberName; if (jsonName) { targetKey = memberSchema.getMergedTraits().jsonName ?? memberName; nameMap[memberName] = targetKey; } out[targetKey] = serializableValue; outCount++; } } if (ns.isUnionSchema() && outCount === 0) { const { $unknown } = record2; if (Array.isArray($unknown)) { const [k5, v] = $unknown; if (k5 === "__proto__") { writeKey(out); } out[k5] = this._write(15, v); } } else if (typeof record2.__type === "string") { for (const k5 in record2) { if (!hasOwn(record2, k5)) continue; const v = record2[k5]; const targetKey = jsonName ? nameMap[k5] ?? k5 : k5; if (!(targetKey in out)) { out[targetKey] = this._write(15, v); } } } return out; } if (Array.isArray(value) && ns.isListSchema()) { const listMember = ns.getValueSchema(); const out = []; const sparse = !!ns.getMergedTraits().sparse; for (const item of value) { if (sparse || item != null) { out.push(this._write(listMember, item)); } } return out; } if (ns.isMapSchema()) { const mapMember = ns.getValueSchema(); const out = {}; const sparse = !!ns.getMergedTraits().sparse; for (const _k in value) { if (!hasOwn(value, _k)) continue; const _v = value[_k]; if (sparse || _v != null) { if (_k === "__proto__") { writeKey(out); } out[_k] = this._write(mapMember, _v); } } return out; } if (value instanceof Uint8Array && ns.isBlobSchema()) { if (ns === this.rootSchema) { return value; } return (this.serdeContext?.base64Encoder ?? toBase64)(value); } if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) { const format = determineTimestampFormat(ns, this.settings); switch (format) { case 5: return value.toISOString().replace(".000Z", "Z"); case 6: return dateToUtcString(value); case 7: return value.getTime() / 1e3; default: console.warn("Missing timestamp format, using epoch seconds", value); return value.getTime() / 1e3; } } if (value instanceof NumericValue) { this.useReplacer = true; } } if (value === null && container?.isStructSchema()) { return void 0; } if (ns.isStringSchema()) { if (typeof value === "undefined" && ns.isIdempotencyToken()) { return generateIdempotencyToken(); } const mediaType = ns.getMergedTraits().mediaType; if (value != null && mediaType) { const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); if (isJson) { return LazyJsonString.from(value); } } return value; } if (typeof value === "number") { if (Math.abs(value) === Infinity || isNaN(value)) { return String(value); } return value; } if (typeof value === "string" && ns.isBlobSchema()) { if (ns === this.rootSchema) { return value; } return (this.serdeContext?.base64Encoder ?? toBase64)(value); } if (typeof value === "bigint") { this.useReplacer = true; } if (ns.isDocumentSchema()) { if (isObject2) { if (value instanceof Uint8Array) { return (this.serdeContext?.base64Encoder ?? toBase64)(value); } const out = Array.isArray(value) ? [] : {}; for (const k5 in value) { if (!hasOwn(value, k5)) continue; const v = value[k5]; if (k5 === "__proto__") { writeKey(out); } if (v instanceof NumericValue) { this.useReplacer = true; out[k5] = v; } else { out[k5] = this._write(ns, v); } } return out; } else { return structuredClone(value); } } return value; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js var JsonCodec; var init_JsonCodec = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js"() { init_ConfigurableSerdeContext(); init_JsonShapeDeserializer(); init_JsonShapeSerializer(); JsonCodec = class extends SerdeContextConfig { static { __name(this, "JsonCodec"); } settings; constructor(settings) { super(); this.settings = settings; } createSerializer() { const serializer = new JsonShapeSerializer(this.settings); serializer.setSerdeContext(this.serdeContext); return serializer; } createDeserializer() { const deserializer = new JsonShapeDeserializer(this.settings); deserializer.setSerdeContext(this.serdeContext); return deserializer; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/index.js var protocols_exports = {}; __export(protocols_exports, { Field: () => Field, Fields: () => Fields, FromStringShapeDeserializer: () => FromStringShapeDeserializer, HttpBindingProtocol: () => HttpBindingProtocol, HttpInterceptingShapeDeserializer: () => HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer: () => HttpInterceptingShapeSerializer, HttpProtocol: () => HttpProtocol, HttpRequest: () => HttpRequest, HttpResponse: () => HttpResponse, JsonCodec: () => JsonCodec, JsonCodec2: () => JsonCodec2, JsonShapeDeserializer: () => JsonShapeDeserializer, JsonShapeDeserializer2: () => JsonShapeDeserializer2, JsonShapeSerializer: () => JsonShapeSerializer, JsonShapeSerializer2: () => JsonShapeSerializer2, RequestBuilder: () => RequestBuilder, RpcProtocol: () => RpcProtocol, SerdeContext: () => SerdeContext, SmithyRpcV2JsonProtocol: () => SmithyRpcV2JsonProtocol, ToStringShapeSerializer: () => ToStringShapeSerializer, buildQueryString: () => buildQueryString, collectBody: () => collectBody, contentLengthMiddleware: () => contentLengthMiddleware, contentLengthMiddlewareOptions: () => contentLengthMiddlewareOptions, determineTimestampFormat: () => determineTimestampFormat, escapeUri: () => escapeUri, escapeUriPath: () => escapeUriPath, extendedEncodeURIComponent: () => extendedEncodeURIComponent, getContentLengthPlugin: () => getContentLengthPlugin, getHttpHandlerExtensionConfiguration: () => getHttpHandlerExtensionConfiguration, isValidHostname: () => isValidHostname, loadJsonRpcErrorCode: () => loadJsonRpcErrorCode, loadRestJsonErrorCode: () => loadRestJsonErrorCode, loadSmithyRpcV2JsonErrorCode: () => loadSmithyRpcV2JsonErrorCode, parseJsonBody: () => parseJsonBody, parseJsonErrorBody: () => parseJsonErrorBody, parseQueryString: () => parseQueryString, parseUrl: () => parseUrl, requestBuilder: () => requestBuilder, resolveHttpHandlerRuntimeConfig: () => resolveHttpHandlerRuntimeConfig, resolvedPath: () => resolvedPath }); var init_protocols = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/protocols/index.js"() { init_collect_stream_body(); init_extended_encode_uri_component(); init_HttpBindingProtocol(); init_HttpProtocol(); init_RpcProtocol(); init_requestBuilder(); init_resolve_path(); init_FromStringShapeDeserializer(); init_HttpInterceptingShapeDeserializer(); init_HttpInterceptingShapeSerializer(); init_ToStringShapeSerializer(); init_determineTimestampFormat(); init_SerdeContext(); init_Field(); init_Fields(); init_transport(); init_transport(); init_transport(); init_httpExtensionConfiguration(); init_contentLengthMiddleware(); init_escape_uri(); init_escape_uri_path(); init_buildQueryString(); init_transport(); init_transport(); init_SmithyRpcV2JsonProtocol(); init_parseJsonBody(); init_JsonCodec(); init_JsonShapeSerializer(); init_JsonShapeDeserializer(); init_JsonCodec2(); init_JsonShapeSerializer2(); init_JsonShapeDeserializer2(); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js var CLOCK_SKEW_ERROR_CODES, THROTTLING_ERROR_CODES, TRANSIENT_ERROR_CODES, TRANSIENT_ERROR_STATUS_CODES, NODEJS_TIMEOUT_ERROR_CODES, NODEJS_NETWORK_ERROR_CODES; var init_constants2 = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js"() { CLOCK_SKEW_ERROR_CODES = [ "AccessDeniedException", "AuthFailure", "InvalidSignatureException", "RequestExpired", "RequestInTheFuture", "RequestTimeTooSkewed", "SignatureDoesNotMatch" ]; THROTTLING_ERROR_CODES = [ "BandwidthLimitExceeded", "EC2ThrottledException", "LimitExceededException", "PriorRequestNotComplete", "ProvisionedThroughputExceededException", "RequestLimitExceeded", "RequestThrottled", "RequestThrottledException", "SlowDown", "ThrottledException", "Throttling", "ThrottlingException", "TooManyRequestsException", "TransactionInProgressException" ]; TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"]; TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"]; NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND", "EAI_AGAIN"]; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js function isNodeJsHttp2TransientError(error62) { return error62.code === "ERR_HTTP2_STREAM_ERROR" && error62.message.includes("NGHTTP2_REFUSED_STREAM"); } var isRetryableByTrait, isClockSkewError, isClockSkewCorrectedError, isBrowserNetworkError, isThrottlingError, isTransientError, isServerError; var init_service_error_classification = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js"() { init_constants2(); isRetryableByTrait = /* @__PURE__ */ __name((error62) => error62?.$retryable !== void 0, "isRetryableByTrait"); isClockSkewError = /* @__PURE__ */ __name((error62) => CLOCK_SKEW_ERROR_CODES.includes(error62.name), "isClockSkewError"); isClockSkewCorrectedError = /* @__PURE__ */ __name((error62) => error62.$metadata?.clockSkewCorrected, "isClockSkewCorrectedError"); isBrowserNetworkError = /* @__PURE__ */ __name((error62) => { const errorMessages = /* @__PURE__ */ new Set([ "Failed to fetch", "NetworkError when attempting to fetch resource", "The Internet connection appears to be offline", "Load failed", "Network request failed" ]); const isValid = error62 && error62 instanceof TypeError; if (!isValid) { return false; } return errorMessages.has(error62.message); }, "isBrowserNetworkError"); isThrottlingError = /* @__PURE__ */ __name((error62) => error62.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error62.name) || error62.$retryable?.throttling == true, "isThrottlingError"); isTransientError = /* @__PURE__ */ __name((error62, depth = 0) => error62?.name !== "AbortError" && (isRetryableByTrait(error62) || isClockSkewCorrectedError(error62) || error62.name === "InvalidSignatureException" && error62.message?.includes("Signature expired") || TRANSIENT_ERROR_CODES.includes(error62.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error62?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error62?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error62.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error62) || isNodeJsHttp2TransientError(error62) || error62.cause !== void 0 && depth <= 10 && isTransientError(error62.cause, depth + 1)), "isTransientError"); isServerError = /* @__PURE__ */ __name((error62) => { if (error62.$metadata?.httpStatusCode !== void 0) { const statusCode = error62.$metadata.httpStatusCode; if (500 <= statusCode && statusCode <= 599 && !isTransientError(error62)) { return true; } return false; } return false; }, "isServerError"); __name(isNodeJsHttp2TransientError, "isNodeJsHttp2TransientError"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/constants.js var DEFAULT_RETRY_DELAY_BASE, MAXIMUM_RETRY_DELAY, THROTTLING_RETRY_DELAY_BASE, INITIAL_RETRY_TOKENS, RETRY_COST, TIMEOUT_RETRY_COST, NO_RETRY_INCREMENT, INVOCATION_ID_HEADER, REQUEST_HEADER; var init_constants3 = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/constants.js"() { DEFAULT_RETRY_DELAY_BASE = 100; MAXIMUM_RETRY_DELAY = 20 * 1e3; THROTTLING_RETRY_DELAY_BASE = 500; INITIAL_RETRY_TOKENS = 500; RETRY_COST = 5; TIMEOUT_RETRY_COST = 10; NO_RETRY_INCREMENT = 1; INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; REQUEST_HEADER = "amz-sdk-request"; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js function parseRetryAfterHeader(response, logger) { if (!HttpResponse.isInstance(response)) { return; } for (const header in response.headers) { if (!hasOwn(response.headers, header)) continue; const h5 = header.toLowerCase(); if (h5 === "retry-after") { const retryAfter = response.headers[header]; let retryAfterSeconds = NaN; if (retryAfter.endsWith("GMT")) { try { const date5 = parseRfc7231DateTime(retryAfter); retryAfterSeconds = (date5.getTime() - Date.now()) / 1e3; } catch (e5) { logger?.trace?.("Failed to parse retry-after header"); logger?.trace?.(e5); } } else if (retryAfter.match(/ GMT, ((\d+)|(\d+\.\d+))$/)) { retryAfterSeconds = Number(retryAfter.match(/ GMT, ([\d.]+)$/)?.[1]); } else if (retryAfter.match(/^((\d+)|(\d+\.\d+))$/)) { retryAfterSeconds = Number(retryAfter); } else if (Date.parse(retryAfter) >= Date.now()) { retryAfterSeconds = (Date.parse(retryAfter) - Date.now()) / 1e3; } if (isNaN(retryAfterSeconds)) { return; } return new Date(Date.now() + retryAfterSeconds * 1e3); } else if (h5 === "x-amz-retry-after") { const v = response.headers[header]; const backoffMilliseconds = Number(v); if (isNaN(backoffMilliseconds)) { logger?.trace?.(`Failed to parse x-amz-retry-after=${v}`); return; } return new Date(Date.now() + backoffMilliseconds); } } } function getRetryAfterHint(response, logger) { return parseRetryAfterHeader(response, logger); } var init_parseRetryAfterHeader = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js"() { init_transport(); init_protocols(); init_serde(); __name(parseRetryAfterHeader, "parseRetryAfterHeader"); __name(getRetryAfterHint, "getRetryAfterHint"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js var asSdkError; var init_util = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js"() { asSdkError = /* @__PURE__ */ __name((error62) => { if (error62 instanceof Error) return error62; if (error62 instanceof Object) return Object.assign(new Error(), error62); if (typeof error62 === "string") return new Error(error62); return new Error(`AWS SDK error wrapper for ${error62}`); }, "asSdkError"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js function bindRetryMiddleware(isStreamingPayload2) { return (options) => (next, context) => async (args) => { let retryStrategy = await options.retryStrategy(); const maxAttempts = await options.maxAttempts(); if (isRetryStrategyV2(retryStrategy)) { retryStrategy = retryStrategy; let retryToken = await retryStrategy.acquireInitialRetryToken((context["partition_id"] ?? "") + (context.__retryLongPoll ? ":longpoll" : "")); let lastError = new Error(); let attempts = 0; let totalRetryDelay = 0; const { request } = args; const isRequest = HttpRequest.isInstance(request); if (isRequest) { request.headers[INVOCATION_ID_HEADER] = v4(); } while (true) { try { if (isRequest) { request.headers[REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; } const { response, output: output2 } = await next(args); retryStrategy.recordSuccess(retryToken); output2.$metadata.attempts = attempts + 1; output2.$metadata.totalRetryDelay = totalRetryDelay; return { response, output: output2 }; } catch (e5) { const retryErrorInfo = getRetryErrorInfo(e5, options.logger); lastError = asSdkError(e5); if (isRequest && isStreamingPayload2(request)) { (context.logger instanceof NoOpLogger ? console : context.logger)?.warn("An error was encountered in a non-retryable streaming request."); throw lastError; } try { retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo); } catch (ignoredRefreshError) { if (!lastError.$metadata) { lastError.$metadata = {}; } lastError.$metadata.attempts = attempts + 1; lastError.$metadata.totalRetryDelay = totalRetryDelay; throw lastError; } attempts = retryToken.getRetryCount(); const delay = retryToken.getRetryDelay(); totalRetryDelay += (retryToken?.$retryLog?.acquisitionDelay ?? 0) + delay; if (delay > 0) { await cooldown(delay); } } } } else { retryStrategy = retryStrategy; if (retryStrategy?.mode) { context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]]; } return retryStrategy.retry(next, args); } }; } function bindGetRetryPlugin(isStreamingPayload2) { const retryMiddleware2 = bindRetryMiddleware(isStreamingPayload2); return (options) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.add(retryMiddleware2(options), retryMiddlewareOptions); }, "applyToStack") }); } var cooldown, isRetryStrategyV2, getRetryErrorInfo, getRetryErrorType, retryMiddlewareOptions; var init_retryMiddleware = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js"() { init_client(); init_protocols(); init_serde(); init_service_error_classification(); init_constants3(); init_parseRetryAfterHeader(); init_util(); __name(bindRetryMiddleware, "bindRetryMiddleware"); cooldown = /* @__PURE__ */ __name((ms) => new Promise((resolve) => setTimeout(resolve, ms)), "cooldown"); isRetryStrategyV2 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2"); getRetryErrorInfo = /* @__PURE__ */ __name((error62, logger) => { const errorInfo = { error: error62, errorType: getRetryErrorType(error62) }; const retryAfterHint = parseRetryAfterHeader(error62.$response, logger); if (retryAfterHint) { errorInfo.retryAfterHint = retryAfterHint; } return errorInfo; }, "getRetryErrorInfo"); getRetryErrorType = /* @__PURE__ */ __name((error62) => { if (isThrottlingError(error62)) return "THROTTLING"; if (isTransientError(error62)) return "TRANSIENT"; if (isServerError(error62)) return "SERVER_ERROR"; return "CLIENT_ERROR"; }, "getRetryErrorType"); retryMiddlewareOptions = { name: "retryMiddleware", tags: ["RETRY"], step: "finalizeRequest", priority: "high", override: true }; __name(bindGetRetryPlugin, "bindGetRetryPlugin"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRateLimiter.js var DefaultRateLimiter; var init_DefaultRateLimiter = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRateLimiter.js"() { init_service_error_classification(); DefaultRateLimiter = class _DefaultRateLimiter { static { __name(this, "DefaultRateLimiter"); } static setTimeoutFn = /* @__PURE__ */ __name((fn, delay) => setTimeout(fn, delay), "setTimeoutFn"); beta; minCapacity; minFillRate; scaleConstant; smooth; enabled = false; availableTokens = 0; lastMaxRate = 0; measuredTxRate = 0; requestCount = 0; fillRate; lastThrottleTime; lastTimestamp = 0; lastTxRateBucket; maxCapacity; timeWindow = 0; constructor(options) { this.beta = options?.beta ?? 0.7; this.minCapacity = options?.minCapacity ?? 1; this.minFillRate = options?.minFillRate ?? 0.5; this.scaleConstant = options?.scaleConstant ?? 0.4; this.smooth = options?.smooth ?? 0.8; this.lastThrottleTime = this.getCurrentTimeInSeconds(); this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); this.fillRate = this.minFillRate; this.maxCapacity = this.minCapacity; } async getSendToken() { return this.acquireTokenBucket(1); } updateClientSendingRate(response) { let calculatedRate; this.updateMeasuredRate(); const retryErrorInfo = response; const isThrottling = retryErrorInfo?.errorType === "THROTTLING" || isThrottlingError(retryErrorInfo?.error ?? response); if (isThrottling) { const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); this.lastMaxRate = rateToUse; this.calculateTimeWindow(); this.lastThrottleTime = this.getCurrentTimeInSeconds(); calculatedRate = this.cubicThrottle(rateToUse); this.enableTokenBucket(); } else { this.calculateTimeWindow(); calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); } const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); this.updateTokenBucketRate(newRate); } getCurrentTimeInSeconds() { return Date.now() / 1e3; } async acquireTokenBucket(amount) { if (!this.enabled) { return; } this.refillTokenBucket(); while (amount > this.availableTokens) { const delay = (amount - this.availableTokens) / this.fillRate * 1e3; await new Promise((resolve) => _DefaultRateLimiter.setTimeoutFn(resolve, delay)); this.refillTokenBucket(); } this.availableTokens = this.availableTokens - amount; } refillTokenBucket() { const timestamp = this.getCurrentTimeInSeconds(); if (!this.lastTimestamp) { this.lastTimestamp = timestamp; return; } const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; this.availableTokens = Math.min(this.maxCapacity, this.availableTokens + fillAmount); this.lastTimestamp = timestamp; } calculateTimeWindow() { this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3)); } cubicThrottle(rateToUse) { return this.getPrecise(rateToUse * this.beta); } cubicSuccess(timestamp) { return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); } enableTokenBucket() { this.enabled = true; } updateTokenBucketRate(newRate) { this.refillTokenBucket(); this.fillRate = Math.max(newRate, this.minFillRate); this.maxCapacity = Math.max(newRate, this.minCapacity); this.availableTokens = Math.min(this.availableTokens, this.maxCapacity); } updateMeasuredRate() { const t = this.getCurrentTimeInSeconds(); const timeBucket = Math.floor(t * 2) / 2; this.requestCount++; if (timeBucket > this.lastTxRateBucket) { const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); this.requestCount = 0; this.lastTxRateBucket = timeBucket; } } getPrecise(num) { return parseFloat(num.toFixed(8)); } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/retries-2026-config.js var Retry; var init_retries_2026_config = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/retries-2026-config.js"() { Retry = class _Retry { static { __name(this, "Retry"); } static v2026 = typeof process !== "undefined" && process.env?.SMITHY_NEW_RETRIES_2026 === "true"; static delay() { return _Retry.v2026 ? 50 : 100; } static throttlingDelay() { return _Retry.v2026 ? 1e3 : 500; } static cost() { return _Retry.v2026 ? 14 : 5; } static throttlingCost() { return _Retry.v2026 ? 5 : 10; } static modifiedCostType() { return _Retry.v2026 ? "THROTTLING" : "TRANSIENT"; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryBackoffStrategy.js var DefaultRetryBackoffStrategy; var init_DefaultRetryBackoffStrategy = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryBackoffStrategy.js"() { init_constants3(); init_retries_2026_config(); DefaultRetryBackoffStrategy = class { static { __name(this, "DefaultRetryBackoffStrategy"); } x = Retry.delay(); computeNextBackoffDelay(i5) { const b5 = Math.random(); const r5 = 2; const t_i = b5 * Math.min(this.x * r5 ** i5, MAXIMUM_RETRY_DELAY); return Math.floor(t_i); } setDelayBase(delay) { this.x = delay; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryToken.js var DefaultRetryToken; var init_DefaultRetryToken = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryToken.js"() { init_constants3(); DefaultRetryToken = class { static { __name(this, "DefaultRetryToken"); } delay; count; cost; longPoll; $retryLog = { acquisitionDelay: 0 }; constructor(delay, count, cost, longPoll) { this.delay = delay; this.count = count; this.cost = cost; this.longPoll = longPoll; } getRetryCount() { return this.count; } getRetryDelay() { return Math.min(MAXIMUM_RETRY_DELAY, this.delay); } getRetryCost() { return this.cost; } isLongPoll() { return this.longPoll; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/config.js var RETRY_MODES, DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE; var init_config2 = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/config.js"() { (function(RETRY_MODES2) { RETRY_MODES2["STANDARD"] = "standard"; RETRY_MODES2["ADAPTIVE"] = "adaptive"; })(RETRY_MODES || (RETRY_MODES = {})); DEFAULT_MAX_ATTEMPTS = 3; DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js var refusal, StandardRetryStrategy; var init_StandardRetryStrategy = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js"() { init_DefaultRetryBackoffStrategy(); init_DefaultRetryToken(); init_config2(); init_constants3(); init_retries_2026_config(); refusal = { incompatible: 1, attempts: 2, capacity: 3 }; StandardRetryStrategy = class { static { __name(this, "StandardRetryStrategy"); } mode = RETRY_MODES.STANDARD; retryBackoffStrategy; capacity = INITIAL_RETRY_TOKENS; maxAttemptsProvider; baseDelay; constructor(arg1) { if (typeof arg1 === "number") { this.maxAttemptsProvider = async () => arg1; } else if (typeof arg1 === "function") { this.maxAttemptsProvider = arg1; } else if (arg1 && typeof arg1 === "object") { this.maxAttemptsProvider = async () => arg1.maxAttempts; this.baseDelay = arg1.baseDelay; this.retryBackoffStrategy = arg1.backoff; } this.maxAttemptsProvider ??= async () => DEFAULT_MAX_ATTEMPTS; this.baseDelay ??= Retry.delay(); this.retryBackoffStrategy ??= new DefaultRetryBackoffStrategy(); } async acquireInitialRetryToken(retryTokenScope) { return new DefaultRetryToken(Retry.delay(), 0, void 0, Retry.v2026 && retryTokenScope.includes(":longpoll")); } async refreshRetryTokenForRetry(token, errorInfo) { const maxAttempts = await this.getMaxAttempts(); const retryCode = this.retryCode(token, errorInfo, maxAttempts); const shouldRetry = retryCode === 0; const isLongPoll = token.isLongPoll?.(); if (shouldRetry || isLongPoll) { const errorType = errorInfo.errorType; this.retryBackoffStrategy.setDelayBase(errorType === "THROTTLING" ? Retry.throttlingDelay() : this.baseDelay); const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount()); let retryDelay = delayFromErrorType; if (errorInfo.retryAfterHint instanceof Date) { retryDelay = Math.max(delayFromErrorType, Math.min(errorInfo.retryAfterHint.getTime() - Date.now(), delayFromErrorType + 5e3)); } if (!shouldRetry) { const longPollBackoff = Retry.v2026 && retryCode === refusal.capacity && isLongPoll ? retryDelay : 0; if (longPollBackoff > 0) { await new Promise((r5) => setTimeout(r5, longPollBackoff)); } } else { const capacityCost = this.getCapacityCost(errorType); this.capacity -= capacityCost; const nextToken = new DefaultRetryToken(0, token.getRetryCount() + 1, capacityCost, token.isLongPoll?.() ?? false); await new Promise((r5) => setTimeout(r5, retryDelay)); nextToken.$retryLog.acquisitionDelay = retryDelay; return nextToken; } } throw new Error("No retry token available"); } recordSuccess(token) { this.capacity = Math.min(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT)); } getCapacity() { return this.capacity; } async maxAttempts() { return this.maxAttemptsProvider(); } async getMaxAttempts() { try { return await this.maxAttemptsProvider(); } catch (ignored) { console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`); return DEFAULT_MAX_ATTEMPTS; } } retryCode(tokenToRenew, errorInfo, maxAttempts) { const attempts = tokenToRenew.getRetryCount() + 1; const retryableStatus = this.isRetryableError(errorInfo.errorType) ? 0 : refusal.incompatible; const attemptStatus = attempts < maxAttempts ? 0 : refusal.attempts; const capacityStatus = this.capacity >= this.getCapacityCost(errorInfo.errorType) ? 0 : refusal.capacity; return retryableStatus || attemptStatus || capacityStatus; } getCapacityCost(errorType) { return errorType === Retry.modifiedCostType() ? Retry.throttlingCost() : Retry.cost(); } isRetryableError(errorType) { return errorType === "THROTTLING" || errorType === "TRANSIENT"; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/AdaptiveRetryStrategy.js var AdaptiveRetryStrategy; var init_AdaptiveRetryStrategy = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/AdaptiveRetryStrategy.js"() { init_DefaultRateLimiter(); init_StandardRetryStrategy(); init_config2(); AdaptiveRetryStrategy = class { static { __name(this, "AdaptiveRetryStrategy"); } mode = RETRY_MODES.ADAPTIVE; rateLimiter; standardRetryStrategy; constructor(maxAttemptsProvider, options) { const { rateLimiter } = options ?? {}; this.rateLimiter = rateLimiter ?? new DefaultRateLimiter(); this.standardRetryStrategy = options ? new StandardRetryStrategy({ maxAttempts: typeof maxAttemptsProvider === "number" ? maxAttemptsProvider : 3, ...options }) : new StandardRetryStrategy(maxAttemptsProvider); } async acquireInitialRetryToken(retryTokenScope) { const token = await this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope); await this.rateLimiter.getSendToken(); return token; } async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { this.rateLimiter.updateClientSendingRate(errorInfo); const token = await this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo); await this.rateLimiter.getSendToken(); return token; } recordSuccess(token) { this.rateLimiter.updateClientSendingRate({}); this.standardRetryStrategy.recordSuccess(token); } async maxAttemptsProvider() { return this.standardRetryStrategy.maxAttempts(); } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/ConfiguredRetryStrategy.js var ConfiguredRetryStrategy; var init_ConfiguredRetryStrategy = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/ConfiguredRetryStrategy.js"() { init_StandardRetryStrategy(); init_retries_2026_config(); ConfiguredRetryStrategy = class extends StandardRetryStrategy { static { __name(this, "ConfiguredRetryStrategy"); } computeNextBackoffDelay; constructor(maxAttempts, computeNextBackoffDelay = Retry.delay()) { super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts); if (typeof computeNextBackoffDelay === "number") { this.computeNextBackoffDelay = () => computeNextBackoffDelay; } else { this.computeNextBackoffDelay = computeNextBackoffDelay; } this.retryBackoffStrategy.computeNextBackoffDelay = (completedAttempt) => { const nextAttempt = completedAttempt + 1; return this.computeNextBackoffDelay(nextAttempt); }; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/defaultRetryQuota.js var getDefaultRetryQuota; var init_defaultRetryQuota = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/defaultRetryQuota.js"() { init_constants3(); getDefaultRetryQuota = /* @__PURE__ */ __name((initialRetryTokens, options) => { const MAX_CAPACITY = initialRetryTokens; const noRetryIncrement = options?.noRetryIncrement ?? NO_RETRY_INCREMENT; const retryCost = options?.retryCost ?? RETRY_COST; const timeoutRetryCost = options?.timeoutRetryCost ?? TIMEOUT_RETRY_COST; let availableCapacity = initialRetryTokens; const getCapacityAmount = /* @__PURE__ */ __name((error62) => error62.name === "TimeoutError" ? timeoutRetryCost : retryCost, "getCapacityAmount"); const hasRetryTokens = /* @__PURE__ */ __name((error62) => getCapacityAmount(error62) <= availableCapacity, "hasRetryTokens"); const retrieveRetryTokens = /* @__PURE__ */ __name((error62) => { if (!hasRetryTokens(error62)) { throw new Error("No retry token available"); } const capacityAmount = getCapacityAmount(error62); availableCapacity -= capacityAmount; return capacityAmount; }, "retrieveRetryTokens"); const releaseRetryTokens = /* @__PURE__ */ __name((capacityReleaseAmount) => { availableCapacity += capacityReleaseAmount ?? noRetryIncrement; availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); }, "releaseRetryTokens"); return Object.freeze({ hasRetryTokens, retrieveRetryTokens, releaseRetryTokens }); }, "getDefaultRetryQuota"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/delayDecider.js var defaultDelayDecider; var init_delayDecider = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/delayDecider.js"() { init_constants3(); defaultDelayDecider = /* @__PURE__ */ __name((delayBase, attempts) => Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)), "defaultDelayDecider"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/retryDecider.js var defaultRetryDecider; var init_retryDecider = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/retryDecider.js"() { init_service_error_classification(); defaultRetryDecider = /* @__PURE__ */ __name((error62) => { if (!error62) { return false; } return isRetryableByTrait(error62) || isClockSkewError(error62) || isThrottlingError(error62) || isTransientError(error62); }, "defaultRetryDecider"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js var StandardRetryStrategy2, getDelayFromRetryAfterHeader; var init_StandardRetryStrategy2 = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js"() { init_protocols(); init_serde(); init_service_error_classification(); init_config2(); init_constants3(); init_util(); init_defaultRetryQuota(); init_delayDecider(); init_retryDecider(); StandardRetryStrategy2 = class { static { __name(this, "StandardRetryStrategy"); } maxAttemptsProvider; retryDecider; delayDecider; retryQuota; mode = RETRY_MODES.STANDARD; constructor(maxAttemptsProvider, options) { this.maxAttemptsProvider = maxAttemptsProvider; this.retryDecider = options?.retryDecider ?? defaultRetryDecider; this.delayDecider = options?.delayDecider ?? defaultDelayDecider; this.retryQuota = options?.retryQuota ?? getDefaultRetryQuota(INITIAL_RETRY_TOKENS); } shouldRetry(error62, attempts, maxAttempts) { return attempts < maxAttempts && this.retryDecider(error62) && this.retryQuota.hasRetryTokens(error62); } async getMaxAttempts() { let maxAttempts; try { maxAttempts = await this.maxAttemptsProvider(); } catch (ignored) { maxAttempts = DEFAULT_MAX_ATTEMPTS; } return maxAttempts; } async retry(next, args, options) { let retryTokenAmount; let attempts = 0; let totalDelay = 0; const maxAttempts = await this.getMaxAttempts(); const { request } = args; if (HttpRequest.isInstance(request)) { request.headers[INVOCATION_ID_HEADER] = v4(); } while (true) { try { if (HttpRequest.isInstance(request)) { request.headers[REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; } if (options?.beforeRequest) { await options.beforeRequest(); } const { response, output: output2 } = await next(args); if (options?.afterRequest) { options.afterRequest(response); } this.retryQuota.releaseRetryTokens(retryTokenAmount); output2.$metadata.attempts = attempts + 1; output2.$metadata.totalRetryDelay = totalDelay; return { response, output: output2 }; } catch (e5) { const err = asSdkError(e5); attempts++; if (this.shouldRetry(err, attempts, maxAttempts)) { retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); const delayFromDecider = this.delayDecider(isThrottlingError(err) ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE, attempts); const delayFromResponse = getDelayFromRetryAfterHeader(err.$response); const delay = Math.max(delayFromResponse || 0, delayFromDecider); totalDelay += delay; await new Promise((resolve) => setTimeout(resolve, delay)); continue; } if (!err.$metadata) { err.$metadata = {}; } err.$metadata.attempts = attempts; err.$metadata.totalRetryDelay = totalDelay; throw err; } } } }; getDelayFromRetryAfterHeader = /* @__PURE__ */ __name((response) => { if (!HttpResponse.isInstance(response)) return; const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); if (!retryAfterHeaderName) return; const retryAfter = response.headers[retryAfterHeaderName]; const retryAfterSeconds = Number(retryAfter); if (!Number.isNaN(retryAfterSeconds)) return Math.min(retryAfterSeconds * 1e3, 2e4); const retryAfterDate = new Date(retryAfter); return Math.min(retryAfterDate.getTime() - Date.now(), 2e4); }, "getDelayFromRetryAfterHeader"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/AdaptiveRetryStrategy.js var AdaptiveRetryStrategy2; var init_AdaptiveRetryStrategy2 = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/AdaptiveRetryStrategy.js"() { init_DefaultRateLimiter(); init_config2(); init_StandardRetryStrategy2(); AdaptiveRetryStrategy2 = class extends StandardRetryStrategy2 { static { __name(this, "AdaptiveRetryStrategy"); } rateLimiter; constructor(maxAttemptsProvider, options) { const { rateLimiter, ...superOptions } = options ?? {}; super(maxAttemptsProvider, superOptions); this.rateLimiter = rateLimiter ?? new DefaultRateLimiter(); this.mode = RETRY_MODES.ADAPTIVE; } async retry(next, args) { return super.retry(next, args, { beforeRequest: /* @__PURE__ */ __name(async () => { return this.rateLimiter.getSendToken(); }, "beforeRequest"), afterRequest: /* @__PURE__ */ __name((response) => { this.rateLimiter.updateClientSendingRate(response); }, "afterRequest") }); } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js var ENV_MAX_ATTEMPTS, CONFIG_MAX_ATTEMPTS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, ENV_RETRY_MODE, CONFIG_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS; var init_configurations = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js"() { init_client(); init_AdaptiveRetryStrategy(); init_StandardRetryStrategy(); init_config2(); init_retries_2026_config(); ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; CONFIG_MAX_ATTEMPTS = "max_attempts"; NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { environmentVariableSelector: /* @__PURE__ */ __name((env3) => { const value = env3[ENV_MAX_ATTEMPTS]; if (!value) return void 0; const maxAttempt = parseInt(value); if (Number.isNaN(maxAttempt)) { throw new Error(`Environment variable ${ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`); } return maxAttempt; }, "environmentVariableSelector"), configFileSelector: /* @__PURE__ */ __name((profile) => { const value = profile[CONFIG_MAX_ATTEMPTS]; if (!value) return void 0; const maxAttempt = parseInt(value); if (Number.isNaN(maxAttempt)) { throw new Error(`Shared config file entry ${CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`); } return maxAttempt; }, "configFileSelector"), default: DEFAULT_MAX_ATTEMPTS }; resolveRetryConfig = /* @__PURE__ */ __name((input2, defaults) => { const { retryStrategy, retryMode } = input2; const { defaultMaxAttempts = DEFAULT_MAX_ATTEMPTS, defaultBaseDelay = Retry.delay() } = defaults ?? {}; const maxAttemptsProvider = normalizeProvider(input2.maxAttempts ?? defaultMaxAttempts); let controller = retryStrategy ? Promise.resolve(retryStrategy) : void 0; const getDefault = /* @__PURE__ */ __name(async () => { const maxAttempts = await maxAttemptsProvider(); const adaptive = await normalizeProvider(retryMode)() === RETRY_MODES.ADAPTIVE; if (adaptive) { return new AdaptiveRetryStrategy(maxAttemptsProvider, { maxAttempts, baseDelay: defaultBaseDelay }); } return new StandardRetryStrategy({ maxAttempts, baseDelay: defaultBaseDelay }); }, "getDefault"); return Object.assign(input2, { maxAttempts: maxAttemptsProvider, retryStrategy: /* @__PURE__ */ __name(() => controller ??= getDefault(), "retryStrategy") }); }, "resolveRetryConfig"); ENV_RETRY_MODE = "AWS_RETRY_MODE"; CONFIG_RETRY_MODE = "retry_mode"; NODE_RETRY_MODE_CONFIG_OPTIONS = { environmentVariableSelector: /* @__PURE__ */ __name((env3) => env3[ENV_RETRY_MODE], "environmentVariableSelector"), configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_RETRY_MODE], "configFileSelector"), default: DEFAULT_RETRY_MODE }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/omitRetryHeadersMiddleware.js var omitRetryHeadersMiddleware, omitRetryHeadersMiddlewareOptions, getOmitRetryHeadersPlugin; var init_omitRetryHeadersMiddleware = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/omitRetryHeadersMiddleware.js"() { init_protocols(); init_constants3(); omitRetryHeadersMiddleware = /* @__PURE__ */ __name(() => (next) => async (args) => { const { request } = args; if (HttpRequest.isInstance(request)) { delete request.headers[INVOCATION_ID_HEADER]; delete request.headers[REQUEST_HEADER]; } return next(args); }, "omitRetryHeadersMiddleware"); omitRetryHeadersMiddlewareOptions = { name: "omitRetryHeadersMiddleware", tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"], relation: "before", toMiddleware: "awsAuthMiddleware", override: true }; getOmitRetryHeadersPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions); }, "applyToStack") }), "getOmitRetryHeadersPlugin"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/index.js var retry_exports = {}; __export(retry_exports, { AdaptiveRetryStrategy: () => AdaptiveRetryStrategy, CONFIG_MAX_ATTEMPTS: () => CONFIG_MAX_ATTEMPTS, CONFIG_RETRY_MODE: () => CONFIG_RETRY_MODE, ConfiguredRetryStrategy: () => ConfiguredRetryStrategy, DEFAULT_MAX_ATTEMPTS: () => DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_DELAY_BASE: () => DEFAULT_RETRY_DELAY_BASE, DEFAULT_RETRY_MODE: () => DEFAULT_RETRY_MODE, DefaultRateLimiter: () => DefaultRateLimiter, DeprecatedAdaptiveRetryStrategy: () => AdaptiveRetryStrategy2, DeprecatedStandardRetryStrategy: () => StandardRetryStrategy2, ENV_MAX_ATTEMPTS: () => ENV_MAX_ATTEMPTS, ENV_RETRY_MODE: () => ENV_RETRY_MODE, INITIAL_RETRY_TOKENS: () => INITIAL_RETRY_TOKENS, INVOCATION_ID_HEADER: () => INVOCATION_ID_HEADER, MAXIMUM_RETRY_DELAY: () => MAXIMUM_RETRY_DELAY, NODE_MAX_ATTEMPT_CONFIG_OPTIONS: () => NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS: () => NODE_RETRY_MODE_CONFIG_OPTIONS, NO_RETRY_INCREMENT: () => NO_RETRY_INCREMENT, REQUEST_HEADER: () => REQUEST_HEADER, RETRY_COST: () => RETRY_COST, RETRY_MODES: () => RETRY_MODES, Retry: () => Retry, StandardRetryStrategy: () => StandardRetryStrategy, THROTTLING_RETRY_DELAY_BASE: () => THROTTLING_RETRY_DELAY_BASE, TIMEOUT_RETRY_COST: () => TIMEOUT_RETRY_COST, defaultDelayDecider: () => defaultDelayDecider, defaultRetryDecider: () => defaultRetryDecider, getOmitRetryHeadersPlugin: () => getOmitRetryHeadersPlugin, getRetryAfterHint: () => getRetryAfterHint, getRetryPlugin: () => getRetryPlugin, isBrowserNetworkError: () => isBrowserNetworkError, isClockSkewCorrectedError: () => isClockSkewCorrectedError, isClockSkewError: () => isClockSkewError, isNodeJsHttp2TransientError: () => isNodeJsHttp2TransientError, isRetryableByTrait: () => isRetryableByTrait, isServerError: () => isServerError, isThrottlingError: () => isThrottlingError, isTransientError: () => isTransientError, omitRetryHeadersMiddleware: () => omitRetryHeadersMiddleware, omitRetryHeadersMiddlewareOptions: () => omitRetryHeadersMiddlewareOptions, resolveRetryConfig: () => resolveRetryConfig, retryMiddleware: () => retryMiddleware, retryMiddlewareOptions: () => retryMiddlewareOptions }); var retryMiddleware, getRetryPlugin; var init_retry = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/submodules/retry/index.js"() { init_isStreamingPayload(); init_retryMiddleware(); init_service_error_classification(); init_AdaptiveRetryStrategy(); init_ConfiguredRetryStrategy(); init_DefaultRateLimiter(); init_StandardRetryStrategy(); init_config2(); init_constants3(); init_retries_2026_config(); init_AdaptiveRetryStrategy2(); init_StandardRetryStrategy2(); init_delayDecider(); init_retryDecider(); init_configurations(); init_omitRetryHeadersMiddleware(); init_retryMiddleware(); init_parseRetryAfterHeader(); retryMiddleware = bindRetryMiddleware(isStreamingPayload); getRetryPlugin = bindGetRetryPlugin(isStreamingPayload); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js function setFeature(context, feature, value) { if (!context.__aws_sdk_context) { context.__aws_sdk_context = { features: {} }; } else if (!context.__aws_sdk_context.features) { context.__aws_sdk_context.features = {}; } context.__aws_sdk_context.features[feature] = value; } var init_setFeature = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js"() { init_retry(); Retry.v2026 ||= typeof process === "object" && process.env?.AWS_NEW_RETRIES_2026 === "true"; __name(setFeature, "setFeature"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/setTokenFeature.js function setTokenFeature(token, feature, value) { if (!token.$source) { token.$source = {}; } token.$source[feature] = value; return token; } var init_setTokenFeature = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/setTokenFeature.js"() { __name(setTokenFeature, "setTokenFeature"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js function resolveHostHeaderConfig(input2) { return input2; } var hostHeaderMiddleware, hostHeaderMiddlewareOptions, getHostHeaderPlugin; var init_hostHeaderMiddleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js"() { init_protocols(); __name(resolveHostHeaderConfig, "resolveHostHeaderConfig"); hostHeaderMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => { if (!HttpRequest.isInstance(args.request)) return next(args); const { request } = args; const { handlerProtocol = "" } = options.requestHandler.metadata || {}; if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) { delete request.headers["host"]; request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : ""); } else if (!request.headers["host"]) { let host = request.hostname; if (request.port != null) host += `:${request.port}`; request.headers["host"] = host; } return next(args); }, "hostHeaderMiddleware"); hostHeaderMiddlewareOptions = { name: "hostHeaderMiddleware", step: "build", priority: "low", tags: ["HOST"], override: true }; getHostHeaderPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions); }, "applyToStack") }), "getHostHeaderPlugin"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-logger/loggerMiddleware.js var loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin; var init_loggerMiddleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-logger/loggerMiddleware.js"() { loggerMiddleware = /* @__PURE__ */ __name(() => (next, context) => async (args) => { try { const response = await next(args); const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; const { overrideInputFilterSensitiveLog, overrideOutputFilterSensitiveLog } = dynamoDbDocumentClientOptions; const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog ?? context.outputFilterSensitiveLog; const { $metadata, ...outputWithoutMetadata } = response.output; logger?.info?.({ clientName, commandName, input: inputFilterSensitiveLog(args.input), output: outputFilterSensitiveLog(outputWithoutMetadata), metadata: $metadata }); return response; } catch (error62) { const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions; const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; logger?.error?.({ clientName, commandName, input: inputFilterSensitiveLog(args.input), error: error62, metadata: error62.$metadata }); throw error62; } }, "loggerMiddleware"); loggerMiddlewareOptions = { name: "loggerMiddleware", tags: ["LOGGER"], step: "initialize", override: true }; getLoggerPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.add(loggerMiddleware(), loggerMiddlewareOptions); }, "applyToStack") }), "getLoggerPlugin"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/configuration.js var recursionDetectionMiddlewareOptions; var init_configuration = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/configuration.js"() { recursionDetectionMiddlewareOptions = { step: "build", tags: ["RECURSION_DETECTION", "TRACE_CONTEXT_PROPAGATION"], name: "recursionDetectionMiddleware", override: true, priority: "low" }; } }); // ../../node_modules/.pnpm/@aws+lambda-invoke-store@0.3.0/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js var PROTECTED_KEYS, NO_GLOBAL_AWS_LAMBDA, InvokeStoreBase, InvokeStoreSingle, InvokeStoreMulti, InvokeStore; var init_invoke_store = __esm({ "../../node_modules/.pnpm/@aws+lambda-invoke-store@0.3.0/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js"() { PROTECTED_KEYS = { REQUEST_ID: /* @__PURE__ */ Symbol.for("_AWS_LAMBDA_REQUEST_ID"), X_RAY_TRACE_ID: /* @__PURE__ */ Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"), TENANT_ID: /* @__PURE__ */ Symbol.for("_AWS_LAMBDA_TENANT_ID"), TRACEPARENT: /* @__PURE__ */ Symbol.for("_AWS_LAMBDA_TRACEPARENT"), TRACESTATE: /* @__PURE__ */ Symbol.for("_AWS_LAMBDA_TRACESTATE"), BAGGAGE: /* @__PURE__ */ Symbol.for("_AWS_LAMBDA_BAGGAGE") }; NO_GLOBAL_AWS_LAMBDA = ["true", "1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA ?? ""); if (!NO_GLOBAL_AWS_LAMBDA) { globalThis.awslambda = globalThis.awslambda || {}; } InvokeStoreBase = class { static { __name(this, "InvokeStoreBase"); } static PROTECTED_KEYS = PROTECTED_KEYS; isProtectedKey(key) { return Object.values(PROTECTED_KEYS).includes(key); } getRequestId() { return this.get(PROTECTED_KEYS.REQUEST_ID) ?? "-"; } getXRayTraceId() { return this.get(PROTECTED_KEYS.X_RAY_TRACE_ID); } getTenantId() { return this.get(PROTECTED_KEYS.TENANT_ID); } getTraceparent() { return this.get(PROTECTED_KEYS.TRACEPARENT); } getTracestate() { return this.get(PROTECTED_KEYS.TRACESTATE); } getBaggage() { return this.get(PROTECTED_KEYS.BAGGAGE); } }; InvokeStoreSingle = class extends InvokeStoreBase { static { __name(this, "InvokeStoreSingle"); } currentContext; getContext() { return this.currentContext; } hasContext() { return this.currentContext !== void 0; } get(key) { return this.currentContext?.[key]; } set(key, value) { if (this.isProtectedKey(key)) { throw new Error(`Cannot modify protected Lambda context field: ${String(key)}`); } this.currentContext = this.currentContext || {}; this.currentContext[key] = value; } run(context, fn) { this.currentContext = context; return fn(); } }; InvokeStoreMulti = class _InvokeStoreMulti extends InvokeStoreBase { static { __name(this, "InvokeStoreMulti"); } als; static async create() { const instance = new _InvokeStoreMulti(); const asyncHooks = await import("node:async_hooks"); instance.als = new asyncHooks.AsyncLocalStorage(); return instance; } getContext() { return this.als.getStore(); } hasContext() { return this.als.getStore() !== void 0; } get(key) { return this.als.getStore()?.[key]; } set(key, value) { if (this.isProtectedKey(key)) { throw new Error(`Cannot modify protected Lambda context field: ${String(key)}`); } const store = this.als.getStore(); if (!store) { throw new Error("No context available"); } store[key] = value; } run(context, fn) { return this.als.run(context, fn); } }; (function(InvokeStore2) { let instance = null; async function getInstanceAsync(forceInvokeStoreMulti) { if (!instance) { instance = (async () => { const isMulti = forceInvokeStoreMulti === true || "AWS_LAMBDA_MAX_CONCURRENCY" in process.env; const newInstance = isMulti ? await InvokeStoreMulti.create() : new InvokeStoreSingle(); if (!NO_GLOBAL_AWS_LAMBDA && globalThis.awslambda?.InvokeStore) { return globalThis.awslambda.InvokeStore; } else if (!NO_GLOBAL_AWS_LAMBDA && globalThis.awslambda) { globalThis.awslambda.InvokeStore = newInstance; return newInstance; } else { return newInstance; } })(); } return instance; } __name(getInstanceAsync, "getInstanceAsync"); InvokeStore2.getInstanceAsync = getInstanceAsync; InvokeStore2._testing = process.env.AWS_LAMBDA_BENCHMARK_MODE === "1" ? { reset: /* @__PURE__ */ __name(() => { instance = null; if (globalThis.awslambda?.InvokeStore) { delete globalThis.awslambda.InvokeStore; } globalThis.awslambda = { InvokeStore: void 0 }; }, "reset") } : void 0; })(InvokeStore || (InvokeStore = {})); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.js function sanitizeTraceHeaders(headers) { for (const header of Object.keys(headers)) { const lower = header.toLowerCase(); if (header !== lower && (lower === TRACEPARENT || lower === TRACESTATE || lower === BAGGAGE)) { headers[lower] = headers[header]; delete headers[header]; } } } var AWS_LAMBDA_FUNCTION_NAME, _X_AMZN_TRACE_ID, X_AMZN_TRACE_ID, TRACEPARENT, TRACESTATE, BAGGAGE, recursionDetectionMiddleware; var init_recursionDetectionMiddleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.js"() { init_invoke_store(); init_protocols(); AWS_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; _X_AMZN_TRACE_ID = "_X_AMZN_TRACE_ID"; X_AMZN_TRACE_ID = "X-Amzn-Trace-Id"; TRACEPARENT = "traceparent"; TRACESTATE = "tracestate"; BAGGAGE = "baggage"; recursionDetectionMiddleware = /* @__PURE__ */ __name(() => (next) => async (args) => { const { request } = args; if (!HttpRequest.isInstance(request)) { return next(args); } let invokeStore; { const traceIdHeader = Object.keys(request.headers ?? {}).find((h5) => h5.toLowerCase() === X_AMZN_TRACE_ID.toLowerCase()) ?? X_AMZN_TRACE_ID; if (!request.headers.hasOwnProperty(traceIdHeader)) { const functionName = process.env[AWS_LAMBDA_FUNCTION_NAME]; const traceIdFromEnv = process.env[_X_AMZN_TRACE_ID]; invokeStore ??= await InvokeStore.getInstanceAsync(); const traceIdFromInvokeStore = invokeStore?.getXRayTraceId(); const traceId = traceIdFromInvokeStore ?? traceIdFromEnv; const nonEmptyString = /* @__PURE__ */ __name((str) => typeof str === "string" && str.length > 0, "nonEmptyString"); if (nonEmptyString(functionName) && nonEmptyString(traceId)) { request.headers[X_AMZN_TRACE_ID] = traceId; } } } { sanitizeTraceHeaders(request.headers); const existingTraceparent = request.headers[TRACEPARENT]; if (!existingTraceparent) { const traceparent = (invokeStore ??= await InvokeStore.getInstanceAsync())?.getTraceparent?.(); if (traceparent) { request.headers[TRACEPARENT] = traceparent; const tracestate = invokeStore?.getTracestate?.(); if (tracestate) { request.headers[TRACESTATE] = tracestate; } const baggage = invokeStore?.getBaggage?.(); if (baggage) { request.headers[BAGGAGE] = baggage; } } } } return next(args); }, "recursionDetectionMiddleware"); __name(sanitizeTraceHeaders, "sanitizeTraceHeaders"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.js var getRecursionDetectionPlugin; var init_getRecursionDetectionPlugin = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.js"() { init_configuration(); init_recursionDetectionMiddleware(); getRecursionDetectionPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.add(recursionDetectionMiddleware(), recursionDetectionMiddlewareOptions); }, "applyToStack") }), "getRecursionDetectionPlugin"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/resolveAuthOptions.js var resolveAuthOptions; var init_resolveAuthOptions = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/resolveAuthOptions.js"() { resolveAuthOptions = /* @__PURE__ */ __name((candidateAuthOptions, authSchemePreference) => { if (!authSchemePreference || authSchemePreference.length === 0) { return candidateAuthOptions; } const preferredAuthOptions = []; for (const preferredSchemeName of authSchemePreference) { for (const candidateAuthOption of candidateAuthOptions) { const candidateAuthSchemeName = candidateAuthOption.schemeId.split("#")[1]; if (candidateAuthSchemeName === preferredSchemeName) { preferredAuthOptions.push(candidateAuthOption); } } } for (const candidateAuthOption of candidateAuthOptions) { if (!preferredAuthOptions.find(({ schemeId }) => schemeId === candidateAuthOption.schemeId)) { preferredAuthOptions.push(candidateAuthOption); } } return preferredAuthOptions; }, "resolveAuthOptions"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js function convertHttpAuthSchemesToMap(httpAuthSchemes) { const map2 = /* @__PURE__ */ new Map(); for (const scheme of httpAuthSchemes) { map2.set(scheme.schemeId, scheme); } return map2; } var httpAuthSchemeMiddleware; var init_httpAuthSchemeMiddleware = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js"() { init_transport(); init_resolveAuthOptions(); __name(convertHttpAuthSchemesToMap, "convertHttpAuthSchemesToMap"); httpAuthSchemeMiddleware = /* @__PURE__ */ __name((config3, mwOptions) => (next, context) => async (args) => { const options = config3.httpAuthSchemeProvider(await mwOptions.httpAuthSchemeParametersProvider(config3, context, args.input)); const authSchemePreference = config3.authSchemePreference ? await config3.authSchemePreference() : []; const resolvedOptions = resolveAuthOptions(options, authSchemePreference); const authSchemes = convertHttpAuthSchemesToMap(config3.httpAuthSchemes); const smithyContext = getSmithyContext(context); const failureReasons = []; for (const option of resolvedOptions) { const scheme = authSchemes.get(option.schemeId); if (!scheme) { failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` was not enabled for this service.`); continue; } const identityProvider = scheme.identityProvider(await mwOptions.identityProviderConfigProvider(config3)); if (!identityProvider) { failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` did not have an IdentityProvider configured.`); continue; } const { identityProperties = {}, signingProperties = {} } = option.propertiesExtractor?.(config3, context) || {}; option.identityProperties = Object.assign(option.identityProperties || {}, identityProperties); option.signingProperties = Object.assign(option.signingProperties || {}, signingProperties); smithyContext.selectedHttpAuthScheme = { httpAuthOption: option, identity: await identityProvider(option.identityProperties), signer: scheme.signer }; break; } if (!smithyContext.selectedHttpAuthScheme) { throw new Error(failureReasons.join("\n")); } return next(args); }, "httpAuthSchemeMiddleware"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js var httpAuthSchemeEndpointRuleSetMiddlewareOptions, getHttpAuthSchemeEndpointRuleSetPlugin; var init_getHttpAuthSchemeEndpointRuleSetPlugin = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js"() { init_httpAuthSchemeMiddleware(); httpAuthSchemeEndpointRuleSetMiddlewareOptions = { step: "serialize", tags: ["HTTP_AUTH_SCHEME"], name: "httpAuthSchemeMiddleware", override: true, relation: "before", toMiddleware: "endpointV2Middleware" }; getHttpAuthSchemeEndpointRuleSetPlugin = /* @__PURE__ */ __name((config3, { httpAuthSchemeParametersProvider, identityProviderConfigProvider }) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.addRelativeTo(httpAuthSchemeMiddleware(config3, { httpAuthSchemeParametersProvider, identityProviderConfigProvider }), httpAuthSchemeEndpointRuleSetMiddlewareOptions); }, "applyToStack") }), "getHttpAuthSchemeEndpointRuleSetPlugin"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js var httpAuthSchemeMiddlewareOptions, getHttpAuthSchemePlugin; var init_getHttpAuthSchemePlugin = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js"() { init_httpAuthSchemeMiddleware(); httpAuthSchemeMiddlewareOptions = { step: "serialize", tags: ["HTTP_AUTH_SCHEME"], name: "httpAuthSchemeMiddleware", override: true, relation: "before", toMiddleware: "serializerMiddleware" }; getHttpAuthSchemePlugin = /* @__PURE__ */ __name((config3, { httpAuthSchemeParametersProvider, identityProviderConfigProvider }) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.addRelativeTo(httpAuthSchemeMiddleware(config3, { httpAuthSchemeParametersProvider, identityProviderConfigProvider }), httpAuthSchemeMiddlewareOptions); }, "applyToStack") }), "getHttpAuthSchemePlugin"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/index.js var init_middleware_http_auth_scheme = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/index.js"() { init_httpAuthSchemeMiddleware(); init_getHttpAuthSchemeEndpointRuleSetPlugin(); init_getHttpAuthSchemePlugin(); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js var defaultErrorHandler, defaultSuccessHandler, httpSigningMiddleware; var init_httpSigningMiddleware = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js"() { init_protocols(); init_transport(); defaultErrorHandler = /* @__PURE__ */ __name((signingProperties) => (error62) => { throw error62; }, "defaultErrorHandler"); defaultSuccessHandler = /* @__PURE__ */ __name((httpResponse, signingProperties) => { }, "defaultSuccessHandler"); httpSigningMiddleware = /* @__PURE__ */ __name((config3) => (next, context) => async (args) => { if (!HttpRequest.isInstance(args.request)) { return next(args); } const smithyContext = getSmithyContext(context); const scheme = smithyContext.selectedHttpAuthScheme; if (!scheme) { throw new Error(`No HttpAuthScheme was selected: unable to sign request`); } const { httpAuthOption: { signingProperties = {} }, identity, signer } = scheme; const output2 = await next({ ...args, request: await signer.sign(args.request, identity, signingProperties) }).catch((signer.errorHandler || defaultErrorHandler)(signingProperties)); (signer.successHandler || defaultSuccessHandler)(output2.response, signingProperties); return output2; }, "httpSigningMiddleware"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/getHttpSigningMiddleware.js var httpSigningMiddlewareOptions, getHttpSigningPlugin; var init_getHttpSigningMiddleware = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/getHttpSigningMiddleware.js"() { init_httpSigningMiddleware(); httpSigningMiddlewareOptions = { step: "finalizeRequest", tags: ["HTTP_SIGNING"], name: "httpSigningMiddleware", aliases: ["apiKeyMiddleware", "tokenMiddleware", "awsAuthMiddleware"], override: true, relation: "after", toMiddleware: "retryMiddleware" }; getHttpSigningPlugin = /* @__PURE__ */ __name((config3) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.addRelativeTo(httpSigningMiddleware(config3), httpSigningMiddlewareOptions); }, "applyToStack") }), "getHttpSigningPlugin"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/index.js var init_middleware_http_signing = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/index.js"() { init_httpSigningMiddleware(); init_getHttpSigningMiddleware(); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/normalizeProvider.js var normalizeProvider2; var init_normalizeProvider = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/normalizeProvider.js"() { normalizeProvider2 = /* @__PURE__ */ __name((input2) => { if (typeof input2 === "function") return input2; const promisified = Promise.resolve(input2); return () => promisified; }, "normalizeProvider"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/pagination/createPaginator.js function createPaginator(ClientCtor, CommandCtor, inputTokenName, outputTokenName, pageSizeTokenName) { return /* @__PURE__ */ __name(async function* paginateOperation(config3, input2, ...additionalArguments) { const _input = input2; let token = config3.startingToken ?? _input[inputTokenName]; let hasNext = true; let page; while (hasNext) { _input[inputTokenName] = token; if (pageSizeTokenName) { _input[pageSizeTokenName] = _input[pageSizeTokenName] ?? config3.pageSize; } if (config3.client instanceof ClientCtor) { page = await makePagedClientRequest(CommandCtor, config3.client, input2, config3.withCommand, ...additionalArguments); } else { throw new Error(`Invalid client, expected instance of ${ClientCtor.name}`); } yield page; const prevToken = token; token = get(page, outputTokenName); hasNext = !!(token && (!config3.stopOnSameToken || token !== prevToken)); } return void 0; }, "paginateOperation"); } var makePagedClientRequest, get; var init_createPaginator = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/pagination/createPaginator.js"() { makePagedClientRequest = /* @__PURE__ */ __name(async (CommandCtor, client, input2, withCommand = (_) => _, ...args) => { let command5 = new CommandCtor(input2); command5 = withCommand(command5) ?? command5; return await client.send(command5, ...args); }, "makePagedClientRequest"); __name(createPaginator, "createPaginator"); get = /* @__PURE__ */ __name((fromObject, path2) => { let cursor = fromObject; const pathComponents = path2.split("."); for (const step of pathComponents) { if (!cursor || typeof cursor !== "object") { return void 0; } cursor = cursor[step]; } return cursor; }, "get"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/setFeature.js function setFeature2(context, feature, value) { if (!context.__smithy_context) { context.__smithy_context = { features: {} }; } else if (!context.__smithy_context.features) { context.__smithy_context.features = {}; } context.__smithy_context.features[feature] = value; } var init_setFeature2 = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/setFeature.js"() { __name(setFeature2, "setFeature"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js var DefaultIdentityProviderConfig; var init_DefaultIdentityProviderConfig = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js"() { init_transport(); DefaultIdentityProviderConfig = class { static { __name(this, "DefaultIdentityProviderConfig"); } authSchemes = /* @__PURE__ */ new Map(); constructor(config3) { for (const key in config3) { if (!hasOwn(config3, key)) continue; const value = config3[key]; if (value !== void 0) { this.authSchemes.set(key, value); } } } getIdentityProvider(schemeId) { return this.authSchemes.get(schemeId); } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js var import_types2, HttpApiKeyAuthSigner; var init_httpApiKeyAuth = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js"() { init_protocols(); import_types2 = __toESM(require_dist_cjs()); HttpApiKeyAuthSigner = class { static { __name(this, "HttpApiKeyAuthSigner"); } async sign(httpRequest, identity, signingProperties) { if (!signingProperties) { throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing"); } if (!signingProperties.name) { throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing"); } if (!signingProperties.in) { throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing"); } if (!identity.apiKey) { throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined"); } const clonedRequest = HttpRequest.clone(httpRequest); if (signingProperties.in === import_types2.HttpApiKeyAuthLocation.QUERY) { clonedRequest.query[signingProperties.name] = identity.apiKey; } else if (signingProperties.in === import_types2.HttpApiKeyAuthLocation.HEADER) { clonedRequest.headers[signingProperties.name] = signingProperties.scheme ? `${signingProperties.scheme} ${identity.apiKey}` : identity.apiKey; } else { throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `" + signingProperties.in + "`"); } return clonedRequest; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js var HttpBearerAuthSigner; var init_httpBearerAuth = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js"() { init_protocols(); HttpBearerAuthSigner = class { static { __name(this, "HttpBearerAuthSigner"); } async sign(httpRequest, identity, signingProperties) { const clonedRequest = HttpRequest.clone(httpRequest); if (!identity.token) { throw new Error("request could not be signed with `token` since the `token` is not defined"); } clonedRequest.headers["Authorization"] = `Bearer ${identity.token}`; return clonedRequest; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/noAuth.js var NoAuthSigner; var init_noAuth = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/noAuth.js"() { NoAuthSigner = class { static { __name(this, "NoAuthSigner"); } async sign(httpRequest, identity, signingProperties) { return httpRequest; } }; } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/index.js var init_httpAuthSchemes = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/index.js"() { init_httpApiKeyAuth(); init_httpBearerAuth(); init_noAuth(); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/memoizeIdentityProvider.js var createIsIdentityExpiredFunction, EXPIRATION_MS, isIdentityExpired, doesIdentityRequireRefresh, memoizeIdentityProvider; var init_memoizeIdentityProvider = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/memoizeIdentityProvider.js"() { createIsIdentityExpiredFunction = /* @__PURE__ */ __name((expirationMs) => /* @__PURE__ */ __name(function isIdentityExpired2(identity) { return doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs; }, "isIdentityExpired"), "createIsIdentityExpiredFunction"); EXPIRATION_MS = 3e5; isIdentityExpired = createIsIdentityExpiredFunction(EXPIRATION_MS); doesIdentityRequireRefresh = /* @__PURE__ */ __name((identity) => identity.expiration !== void 0, "doesIdentityRequireRefresh"); memoizeIdentityProvider = /* @__PURE__ */ __name((provider, isExpired, requiresRefresh) => { if (provider === void 0) { return void 0; } const normalizedProvider = typeof provider !== "function" ? async () => Promise.resolve(provider) : provider; let resolved; let pending; let hasResult; let isConstant = false; const coalesceProvider = /* @__PURE__ */ __name(async (options) => { if (!pending) { pending = normalizedProvider(options); } try { resolved = await pending; hasResult = true; isConstant = false; } finally { pending = void 0; } return resolved; }, "coalesceProvider"); if (isExpired === void 0) { return async (options) => { if (!hasResult || options?.forceRefresh) { resolved = await coalesceProvider(options); } return resolved; }; } return async (options) => { if (!hasResult || options?.forceRefresh) { resolved = await coalesceProvider(options); } if (isConstant) { return resolved; } if (!requiresRefresh(resolved)) { isConstant = true; return resolved; } if (isExpired(resolved)) { await coalesceProvider(options); return resolved; } return resolved; }; }, "memoizeIdentityProvider"); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/index.js var init_util_identity_and_auth = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/index.js"() { init_DefaultIdentityProviderConfig(); init_httpAuthSchemes(); init_memoizeIdentityProvider(); } }); // ../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/index.js var dist_es_exports = {}; __export(dist_es_exports, { DefaultIdentityProviderConfig: () => DefaultIdentityProviderConfig, EXPIRATION_MS: () => EXPIRATION_MS, HttpApiKeyAuthSigner: () => HttpApiKeyAuthSigner, HttpBearerAuthSigner: () => HttpBearerAuthSigner, NoAuthSigner: () => NoAuthSigner, createIsIdentityExpiredFunction: () => createIsIdentityExpiredFunction, createPaginator: () => createPaginator, doesIdentityRequireRefresh: () => doesIdentityRequireRefresh, getHttpAuthSchemeEndpointRuleSetPlugin: () => getHttpAuthSchemeEndpointRuleSetPlugin, getHttpAuthSchemePlugin: () => getHttpAuthSchemePlugin, getHttpSigningPlugin: () => getHttpSigningPlugin, getSmithyContext: () => getSmithyContext, httpAuthSchemeEndpointRuleSetMiddlewareOptions: () => httpAuthSchemeEndpointRuleSetMiddlewareOptions, httpAuthSchemeMiddleware: () => httpAuthSchemeMiddleware, httpAuthSchemeMiddlewareOptions: () => httpAuthSchemeMiddlewareOptions, httpSigningMiddleware: () => httpSigningMiddleware, httpSigningMiddlewareOptions: () => httpSigningMiddlewareOptions, isIdentityExpired: () => isIdentityExpired, memoizeIdentityProvider: () => memoizeIdentityProvider, normalizeProvider: () => normalizeProvider2, requestBuilder: () => requestBuilder, setFeature: () => setFeature2 }); var init_dist_es = __esm({ "../../node_modules/.pnpm/@smithy+core@3.36.1/node_modules/@smithy/core/dist-es/index.js"() { init_transport(); init_middleware_http_auth_scheme(); init_middleware_http_signing(); init_normalizeProvider(); init_createPaginator(); init_protocols(); init_setFeature2(); init_util_identity_and_auth(); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/configurations.js function isValidUserAgentAppId(appId) { if (appId === void 0) { return true; } return typeof appId === "string" && appId.length <= 50; } function resolveUserAgentConfig(input2) { const normalizedAppIdProvider = normalizeProvider2(input2.userAgentAppId ?? DEFAULT_UA_APP_ID); const { customUserAgent } = input2; return Object.assign(input2, { customUserAgent: typeof customUserAgent === "string" ? [[customUserAgent]] : customUserAgent, userAgentAppId: /* @__PURE__ */ __name(async () => { const appId = await normalizedAppIdProvider(); if (!isValidUserAgentAppId(appId)) { const logger = input2.logger?.constructor?.name === "NoOpLogger" || !input2.logger ? console : input2.logger; if (typeof appId !== "string") { logger?.warn("userAgentAppId must be a string or undefined."); } else if (appId.length > 50) { logger?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters."); } } return appId; }, "userAgentAppId") }); } var DEFAULT_UA_APP_ID; var init_configurations2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/configurations.js"() { init_dist_es(); DEFAULT_UA_APP_ID = void 0; __name(isValidUserAgentAppId, "isValidUserAgentAppId"); __name(resolveUserAgentConfig, "resolveUserAgentConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partitions.js var partitionsInfo; var init_partitions = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partitions.js"() { partitionsInfo = { "partitions": [ { "id": "aws", "outputs": { "dnsSuffix": "amazonaws.com", "dualStackDnsSuffix": "api.aws", "implicitGlobalRegion": "us-east-1", "name": "aws", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$", "regions": { "af-south-1": { "description": "Africa (Cape Town)" }, "ap-east-1": { "description": "Asia Pacific (Hong Kong)" }, "ap-east-2": { "description": "Asia Pacific (Taipei)" }, "ap-northeast-1": { "description": "Asia Pacific (Tokyo)" }, "ap-northeast-2": { "description": "Asia Pacific (Seoul)" }, "ap-northeast-3": { "description": "Asia Pacific (Osaka)" }, "ap-south-1": { "description": "Asia Pacific (Mumbai)" }, "ap-south-2": { "description": "Asia Pacific (Hyderabad)" }, "ap-southeast-1": { "description": "Asia Pacific (Singapore)" }, "ap-southeast-2": { "description": "Asia Pacific (Sydney)" }, "ap-southeast-3": { "description": "Asia Pacific (Jakarta)" }, "ap-southeast-4": { "description": "Asia Pacific (Melbourne)" }, "ap-southeast-5": { "description": "Asia Pacific (Malaysia)" }, "ap-southeast-6": { "description": "Asia Pacific (New Zealand)" }, "ap-southeast-7": { "description": "Asia Pacific (Thailand)" }, "aws-global": { "description": "aws global region" }, "ca-central-1": { "description": "Canada (Central)" }, "ca-west-1": { "description": "Canada West (Calgary)" }, "eu-central-1": { "description": "Europe (Frankfurt)" }, "eu-central-2": { "description": "Europe (Zurich)" }, "eu-north-1": { "description": "Europe (Stockholm)" }, "eu-south-1": { "description": "Europe (Milan)" }, "eu-south-2": { "description": "Europe (Spain)" }, "eu-west-1": { "description": "Europe (Ireland)" }, "eu-west-2": { "description": "Europe (London)" }, "eu-west-3": { "description": "Europe (Paris)" }, "il-central-1": { "description": "Israel (Tel Aviv)" }, "me-central-1": { "description": "Middle East (UAE)" }, "me-south-1": { "description": "Middle East (Bahrain)" }, "mx-central-1": { "description": "Mexico (Central)" }, "sa-east-1": { "description": "South America (Sao Paulo)" }, "us-east-1": { "description": "US East (N. Virginia)" }, "us-east-2": { "description": "US East (Ohio)" }, "us-west-1": { "description": "US West (N. California)" }, "us-west-2": { "description": "US West (Oregon)" } } }, { "id": "aws-cn", "outputs": { "dnsSuffix": "amazonaws.com.cn", "dualStackDnsSuffix": "api.amazonwebservices.com.cn", "implicitGlobalRegion": "cn-northwest-1", "name": "aws-cn", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^cn\\-\\w+\\-\\d+$", "regions": { "aws-cn-global": { "description": "aws-cn global region" }, "cn-north-1": { "description": "China (Beijing)" }, "cn-northwest-1": { "description": "China (Ningxia)" } } }, { "id": "aws-eusc", "outputs": { "dnsSuffix": "amazonaws.eu", "dualStackDnsSuffix": "api.amazonwebservices.eu", "implicitGlobalRegion": "eusc-de-east-1", "name": "aws-eusc", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^eusc\\-(de)\\-\\w+\\-\\d+$", "regions": { "eusc-de-east-1": { "description": "AWS European Sovereign Cloud (Germany)" } } }, { "id": "aws-iso", "outputs": { "dnsSuffix": "c2s.ic.gov", "dualStackDnsSuffix": "api.aws.ic.gov", "implicitGlobalRegion": "us-iso-east-1", "name": "aws-iso", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^us\\-iso\\-\\w+\\-\\d+$", "regions": { "aws-iso-global": { "description": "aws-iso global region" }, "us-iso-east-1": { "description": "US ISO East" }, "us-iso-west-1": { "description": "US ISO WEST" } } }, { "id": "aws-iso-b", "outputs": { "dnsSuffix": "sc2s.sgov.gov", "dualStackDnsSuffix": "api.aws.scloud", "implicitGlobalRegion": "us-isob-east-1", "name": "aws-iso-b", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^us\\-isob\\-\\w+\\-\\d+$", "regions": { "aws-iso-b-global": { "description": "aws-iso-b global region" }, "us-isob-east-1": { "description": "US ISOB East (Ohio)" }, "us-isob-west-1": { "description": "US ISOB West" } } }, { "id": "aws-iso-e", "outputs": { "dnsSuffix": "cloud.adc-e.uk", "dualStackDnsSuffix": "api.cloud-aws.adc-e.uk", "implicitGlobalRegion": "eu-isoe-west-1", "name": "aws-iso-e", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^eu\\-isoe\\-\\w+\\-\\d+$", "regions": { "aws-iso-e-global": { "description": "aws-iso-e global region" }, "eu-isoe-west-1": { "description": "EU ISOE West" } } }, { "id": "aws-iso-f", "outputs": { "dnsSuffix": "csp.hci.ic.gov", "dualStackDnsSuffix": "api.aws.hci.ic.gov", "implicitGlobalRegion": "us-isof-south-1", "name": "aws-iso-f", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^us\\-isof\\-\\w+\\-\\d+$", "regions": { "aws-iso-f-global": { "description": "aws-iso-f global region" }, "us-isof-east-1": { "description": "US ISOF EAST" }, "us-isof-south-1": { "description": "US ISOF SOUTH" } } }, { "id": "aws-us-gov", "outputs": { "dnsSuffix": "amazonaws.com", "dualStackDnsSuffix": "api.aws", "implicitGlobalRegion": "us-gov-west-1", "name": "aws-us-gov", "supportsDualStack": true, "supportsFIPS": true }, "regionRegex": "^us\\-gov\\-\\w+\\-\\d+$", "regions": { "aws-us-gov-global": { "description": "aws-us-gov global region" }, "us-gov-east-1": { "description": "AWS GovCloud (US-East)" }, "us-gov-west-1": { "description": "AWS GovCloud (US-West)" } } } ], "version": "1.1" }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partition.js var selectedPartitionsInfo, selectedUserAgentPrefix, partition, setPartitionInfo, useDefaultPartitionInfo, getUserAgentPrefix; var init_partition = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partition.js"() { init_partitions(); selectedPartitionsInfo = partitionsInfo; selectedUserAgentPrefix = ""; partition = /* @__PURE__ */ __name((value) => { const { partitions } = selectedPartitionsInfo; for (const partition2 of partitions) { const { regions, outputs } = partition2; for (const [region, regionData] of Object.entries(regions)) { if (region === value) { return { ...outputs, ...regionData }; } } } for (const partition2 of partitions) { const { regionRegex, outputs } = partition2; if (new RegExp(regionRegex).test(value)) { return { ...outputs }; } } const DEFAULT_PARTITION = partitions.find((partition2) => partition2.id === "aws"); if (!DEFAULT_PARTITION) { throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist."); } return { ...DEFAULT_PARTITION.outputs }; }, "partition"); setPartitionInfo = /* @__PURE__ */ __name((partitionsInfo2, userAgentPrefix = "") => { selectedPartitionsInfo = partitionsInfo2; selectedUserAgentPrefix = userAgentPrefix; }, "setPartitionInfo"); useDefaultPartitionInfo = /* @__PURE__ */ __name(() => { setPartitionInfo(partitionsInfo, ""); }, "useDefaultPartitionInfo"); getUserAgentPrefix = /* @__PURE__ */ __name(() => selectedUserAgentPrefix, "getUserAgentPrefix"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/check-features.js async function checkFeatures(context, config3, args) { const request = args.request; if (request?.headers?.["smithy-protocol"] === "rpc-v2-cbor") { setFeature(context, "PROTOCOL_RPC_V2_CBOR", "M"); } if (typeof config3.retryStrategy === "function") { const retryStrategy = await config3.retryStrategy(); if (typeof retryStrategy.mode === "string") { switch (retryStrategy.mode) { case RETRY_MODES.ADAPTIVE: setFeature(context, "RETRY_MODE_ADAPTIVE", "F"); break; case RETRY_MODES.STANDARD: setFeature(context, "RETRY_MODE_STANDARD", "E"); break; } } } if (typeof config3.accountIdEndpointMode === "function") { const endpointV2 = context.endpointV2; if (String(endpointV2?.url?.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)) { setFeature(context, "ACCOUNT_ID_ENDPOINT", "O"); } switch (await config3.accountIdEndpointMode?.()) { case "disabled": setFeature(context, "ACCOUNT_ID_MODE_DISABLED", "Q"); break; case "preferred": setFeature(context, "ACCOUNT_ID_MODE_PREFERRED", "P"); break; case "required": setFeature(context, "ACCOUNT_ID_MODE_REQUIRED", "R"); break; } } const identity = context.__smithy_context?.selectedHttpAuthScheme?.identity; if (identity?.$source) { const credentials = identity; if (credentials.accountId) { setFeature(context, "RESOLVED_ACCOUNT_ID", "T"); } for (const [key, value] of Object.entries(credentials.$source ?? {})) { setFeature(context, key, value); } } } var ACCOUNT_ID_ENDPOINT_REGEX; var init_check_features = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/check-features.js"() { init_retry(); init_setFeature(); ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/; __name(checkFeatures, "checkFeatures"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/constants.js var USER_AGENT, X_AMZ_USER_AGENT, SPACE, UA_NAME_SEPARATOR, UA_NAME_ESCAPE_REGEX, UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR; var init_constants4 = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/constants.js"() { USER_AGENT = "user-agent"; X_AMZ_USER_AGENT = "x-amz-user-agent"; SPACE = " "; UA_NAME_SEPARATOR = "/"; UA_NAME_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w]/g; UA_VALUE_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w#]/g; UA_ESCAPE_CHAR = "-"; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/encode-features.js function encodeFeatures(features) { let buffer = ""; for (const key in features) { const val = features[key]; if (buffer.length + val.length + 1 <= BYTE_LIMIT) { if (buffer.length) { buffer += "," + val; } else { buffer += val; } continue; } break; } return buffer; } var BYTE_LIMIT; var init_encode_features = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/encode-features.js"() { BYTE_LIMIT = 1024; __name(encodeFeatures, "encodeFeatures"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/user-agent-middleware.js var userAgentMiddleware, escapeUserAgent, getUserAgentMiddlewareOptions, getUserAgentPlugin; var init_user_agent_middleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/user-agent-middleware.js"() { init_protocols(); init_partition(); init_check_features(); init_constants4(); init_encode_features(); userAgentMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => { const { request } = args; if (!HttpRequest.isInstance(request)) { return next(args); } const { headers } = request; const userAgent = context?.userAgent?.map(escapeUserAgent) || []; const defaultUserAgent2 = (await options.defaultUserAgentProvider()).map(escapeUserAgent); await checkFeatures(context, options, args); const awsContext = context; defaultUserAgent2.push(`m/${encodeFeatures(Object.assign({}, context.__smithy_context?.features, awsContext.__aws_sdk_context?.features))}`); const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || []; const appId = await options.userAgentAppId(); if (appId) { defaultUserAgent2.push(escapeUserAgent([`app`, `${appId}`])); } const prefix = getUserAgentPrefix(); const sdkUserAgentValue = (prefix ? [prefix] : []).concat([...defaultUserAgent2, ...userAgent, ...customUserAgent]).join(SPACE); const normalUAValue = [ ...defaultUserAgent2.filter((section) => section.startsWith("aws-sdk-")), ...customUserAgent ].join(SPACE); if (options.runtime !== "browser") { if (normalUAValue) { headers[X_AMZ_USER_AGENT] = headers[X_AMZ_USER_AGENT] ? `${headers[USER_AGENT]} ${normalUAValue}` : normalUAValue; } headers[USER_AGENT] = sdkUserAgentValue; } else { headers[X_AMZ_USER_AGENT] = sdkUserAgentValue; } return next({ ...args, request }); }, "userAgentMiddleware"); escapeUserAgent = /* @__PURE__ */ __name((userAgentPair) => { const name2 = userAgentPair[0].split(UA_NAME_SEPARATOR).map((part) => part.replace(UA_NAME_ESCAPE_REGEX, UA_ESCAPE_CHAR)).join(UA_NAME_SEPARATOR); const version2 = userAgentPair[1]?.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR); const prefixSeparatorIndex = name2.indexOf(UA_NAME_SEPARATOR); const prefix = name2.substring(0, prefixSeparatorIndex); let uaName = name2.substring(prefixSeparatorIndex + 1); if (prefix === "api") { uaName = uaName.toLowerCase(); } return [prefix, uaName, version2].filter((item) => item && item.length > 0).reduce((acc, item, index) => { switch (index) { case 0: return item; case 1: return `${acc}/${item}`; default: return `${acc}#${item}`; } }, ""); }, "escapeUserAgent"); getUserAgentMiddlewareOptions = { name: "getUserAgentMiddleware", step: "build", priority: "low", tags: ["SET_USER_AGENT", "USER_AGENT"], override: true }; getUserAgentPlugin = /* @__PURE__ */ __name((config3) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.add(userAgentMiddleware(config3), getUserAgentMiddlewareOptions); }, "applyToStack") }), "getUserAgentPlugin"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.js import { versions } from "node:process"; var getRuntimeUserAgentPair; var init_getRuntimeUserAgentPair = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.js"() { getRuntimeUserAgentPair = /* @__PURE__ */ __name(() => { const runtimesToCheck = ["deno", "bun", "llrt"]; for (const runtime3 of runtimesToCheck) { if (versions[runtime3]) { return [`md/${runtime3}`, versions[runtime3]]; } } return ["md/nodejs", versions.node]; }, "getRuntimeUserAgentPair"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/crt-availability.js var crtAvailability; var init_crt_availability = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/crt-availability.js"() { crtAvailability = { isCrtAvailable: false }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/is-crt-available.js var isCrtAvailable; var init_is_crt_available = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/is-crt-available.js"() { init_crt_availability(); isCrtAvailable = /* @__PURE__ */ __name(() => { if (crtAvailability.isCrtAvailable) { return ["md/crt-avail"]; } return null; }, "isCrtAvailable"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/defaultUserAgent.js import { platform, release } from "node:os"; import { env as env2 } from "node:process"; var createDefaultUserAgentProvider, defaultUserAgent; var init_defaultUserAgent = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/defaultUserAgent.js"() { init_getRuntimeUserAgentPair(); init_is_crt_available(); init_crt_availability(); createDefaultUserAgentProvider = /* @__PURE__ */ __name(({ serviceId, clientVersion }) => { const runtimeUserAgentPair = getRuntimeUserAgentPair(); return async (config3) => { const sections = [ ["aws-sdk-js", clientVersion], ["ua", "2.1"], [`os/${platform()}`, release()], ["lang/js"], runtimeUserAgentPair ]; const crtAvailable = isCrtAvailable(); if (crtAvailable) { sections.push(crtAvailable); } if (serviceId) { sections.push([`api/${serviceId}`, clientVersion]); } if (env2.AWS_EXECUTION_ENV) { sections.push([`exec-env/${env2.AWS_EXECUTION_ENV}`]); } const appId = await config3?.userAgentAppId?.(); const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections]; return resolvedUserAgent; }; }, "createDefaultUserAgentProvider"); defaultUserAgent = createDefaultUserAgentProvider; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.js var UA_APP_ID_ENV_NAME, UA_APP_ID_INI_NAME, UA_APP_ID_INI_NAME_DEPRECATED, NODE_APP_ID_CONFIG_OPTIONS; var init_nodeAppIdConfigOptions = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.js"() { init_configurations2(); UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; UA_APP_ID_INI_NAME = "sdk_ua_app_id"; UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id"; NODE_APP_ID_CONFIG_OPTIONS = { environmentVariableSelector: /* @__PURE__ */ __name((env3) => env3[UA_APP_ID_ENV_NAME], "environmentVariableSelector"), configFileSelector: /* @__PURE__ */ __name((profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED], "configFileSelector"), default: DEFAULT_UA_APP_ID }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.js var createUserAgentStringParsingProvider; var init_createUserAgentStringParsingProvider = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.js"() { createUserAgentStringParsingProvider = /* @__PURE__ */ __name(({ serviceId, clientVersion }) => async (config3) => { const module = await import("./es5-NIUGVEY6.js"); const parse4 = module.parse ?? module.default.parse ?? (() => ""); const parsedUA = typeof window !== "undefined" && window?.navigator?.userAgent ? parse4(window.navigator.userAgent) : void 0; const sections = [ ["aws-sdk-js", clientVersion], ["ua", "2.1"], [`os/${parsedUA?.os?.name || "other"}`, parsedUA?.os?.version], ["lang/js"], ["md/browser", `${parsedUA?.browser?.name ?? "unknown"}_${parsedUA?.browser?.version ?? "unknown"}`] ]; if (serviceId) { sections.push([`api/${serviceId}`, clientVersion]); } const appId = await config3?.userAgentAppId?.(); if (appId) { sections.push([`app/${appId}`]); } return sections; }, "createUserAgentStringParsingProvider"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js var fallback; var init_defaultUserAgent2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js"() { fallback = { os(ua) { if (/iPhone|iPad|iPod/.test(ua)) return "iOS"; if (/Macintosh|Mac OS X/.test(ua)) return "macOS"; if (/Windows NT/.test(ua)) return "Windows"; if (/Android/.test(ua)) return "Android"; if (/Linux/.test(ua)) return "Linux"; return void 0; }, browser(ua) { if (/EdgiOS|EdgA|Edg\//.test(ua)) return "Microsoft Edge"; if (/Firefox\//.test(ua)) return "Firefox"; if (/Chrome\//.test(ua)) return "Chrome"; if (/Safari\//.test(ua)) return "Safari"; return void 0; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/isIpAddress.js var init_isIpAddress = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/isIpAddress.js"() { init_endpoints(); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.js var isVirtualHostableS3Bucket; var init_isVirtualHostableS3Bucket = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.js"() { init_endpoints(); init_isIpAddress(); isVirtualHostableS3Bucket = /* @__PURE__ */ __name((value, allowSubDomains = false) => { if (allowSubDomains) { for (const label of value.split(".")) { if (!isVirtualHostableS3Bucket(label)) { return false; } } return true; } if (!isValidHostLabel(value)) { return false; } if (value.length < 3 || value.length > 63) { return false; } if (value !== value.toLowerCase()) { return false; } if (isIpAddress(value)) { return false; } return true; }, "isVirtualHostableS3Bucket"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js var ARN_DELIMITER, RESOURCE_DELIMITER, parseArn; var init_parseArn = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js"() { ARN_DELIMITER = ":"; RESOURCE_DELIMITER = "/"; parseArn = /* @__PURE__ */ __name((value) => { const segments = value.split(ARN_DELIMITER); if (segments.length < 6) return null; const [arn, partition2, service, region, accountId, ...resourcePath] = segments; if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "") return null; const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat(); return { partition: partition2, service, region, accountId, resourceId }; }, "parseArn"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/aws.js var awsEndpointFunctions; var init_aws = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/aws.js"() { init_endpoints(); init_isVirtualHostableS3Bucket(); init_parseArn(); init_partition(); awsEndpointFunctions = { isVirtualHostableS3Bucket, parseArn, partition }; customEndpointFunctions.aws = awsEndpointFunctions; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/resolveEndpoint.js var init_resolveEndpoint = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/resolveEndpoint.js"() { init_endpoints(); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.js var resolveDefaultAwsRegionalEndpointsConfig, toEndpointV1; var init_resolveDefaultAwsRegionalEndpointsConfig = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.js"() { init_protocols(); resolveDefaultAwsRegionalEndpointsConfig = /* @__PURE__ */ __name((input2) => { if (typeof input2.endpointProvider !== "function") { throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client."); } const { endpoint } = input2; if (endpoint === void 0) { input2.endpoint = async () => { return toEndpointV1(input2.endpointProvider({ Region: typeof input2.region === "function" ? await input2.region() : input2.region, UseDualStack: typeof input2.useDualstackEndpoint === "function" ? await input2.useDualstackEndpoint() : input2.useDualstackEndpoint, UseFIPS: typeof input2.useFipsEndpoint === "function" ? await input2.useFipsEndpoint() : input2.useFipsEndpoint, Endpoint: void 0 }, { logger: input2.logger })); }; } return input2; }, "resolveDefaultAwsRegionalEndpointsConfig"); toEndpointV1 = /* @__PURE__ */ __name((endpoint) => parseUrl(endpoint.url), "toEndpointV1"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/types/EndpointError.js var init_EndpointError = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/types/EndpointError.js"() { init_endpoints(); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/awsRegionConfig.js var init_awsRegionConfig = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/awsRegionConfig.js"() { init_config(); init_config(); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/stsRegionDefaultResolver.js function stsRegionDefaultResolver(loaderConfig = {}) { return loadConfig({ ...NODE_REGION_CONFIG_OPTIONS, async default() { if (!warning.silence) { console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly."); } return "us-east-1"; } }, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }); } var warning; var init_stsRegionDefaultResolver = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/stsRegionDefaultResolver.js"() { init_config(); __name(stsRegionDefaultResolver, "stsRegionDefaultResolver"); warning = { silence: false }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/extensions.js var getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration; var init_extensions = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/extensions.js"() { getAwsRegionExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { return { setRegion(region) { runtimeConfig.region = region; }, region() { return runtimeConfig.region; } }; }, "getAwsRegionExtensionConfiguration"); resolveAwsRegionExtensionConfiguration = /* @__PURE__ */ __name((awsRegionExtensionConfiguration) => { return { region: awsRegionExtensionConfiguration.region() }; }, "resolveAwsRegionExtensionConfiguration"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js var client_exports2 = {}; __export(client_exports2, { DEFAULT_UA_APP_ID: () => DEFAULT_UA_APP_ID, EndpointError: () => EndpointError, NODE_APP_ID_CONFIG_OPTIONS: () => NODE_APP_ID_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS, REGION_ENV_NAME: () => REGION_ENV_NAME, REGION_INI_NAME: () => REGION_INI_NAME, UA_APP_ID_ENV_NAME: () => UA_APP_ID_ENV_NAME, UA_APP_ID_INI_NAME: () => UA_APP_ID_INI_NAME, awsEndpointFunctions: () => awsEndpointFunctions, createDefaultUserAgentProvider: () => createDefaultUserAgentProvider, createUserAgentStringParsingProvider: () => createUserAgentStringParsingProvider, crtAvailability: () => crtAvailability, defaultUserAgent: () => defaultUserAgent, emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion2, fallback: () => fallback, getAwsRegionExtensionConfiguration: () => getAwsRegionExtensionConfiguration, getHostHeaderPlugin: () => getHostHeaderPlugin, getLoggerPlugin: () => getLoggerPlugin, getLongPollPlugin: () => getLongPollPlugin, getRecursionDetectionPlugin: () => getRecursionDetectionPlugin, getUserAgentMiddlewareOptions: () => getUserAgentMiddlewareOptions, getUserAgentPlugin: () => getUserAgentPlugin, getUserAgentPrefix: () => getUserAgentPrefix, hostHeaderMiddleware: () => hostHeaderMiddleware, hostHeaderMiddlewareOptions: () => hostHeaderMiddlewareOptions, isIpAddress: () => isIpAddress, isVirtualHostableS3Bucket: () => isVirtualHostableS3Bucket, loggerMiddleware: () => loggerMiddleware, loggerMiddlewareOptions: () => loggerMiddlewareOptions, parseArn: () => parseArn, partition: () => partition, recursionDetectionMiddleware: () => recursionDetectionMiddleware, recursionDetectionMiddlewareOptions: () => recursionDetectionMiddlewareOptions, resolveAwsRegionExtensionConfiguration: () => resolveAwsRegionExtensionConfiguration, resolveDefaultAwsRegionalEndpointsConfig: () => resolveDefaultAwsRegionalEndpointsConfig, resolveEndpoint: () => resolveEndpoint, resolveHostHeaderConfig: () => resolveHostHeaderConfig, resolveRegionConfig: () => resolveRegionConfig, resolveUserAgentConfig: () => resolveUserAgentConfig, setCredentialFeature: () => setCredentialFeature, setFeature: () => setFeature, setPartitionInfo: () => setPartitionInfo, setTokenFeature: () => setTokenFeature, state: () => state, stsRegionDefaultResolver: () => stsRegionDefaultResolver, stsRegionWarning: () => warning, toEndpointV1: () => toEndpointV1, useDefaultPartitionInfo: () => useDefaultPartitionInfo, userAgentMiddleware: () => userAgentMiddleware }); var init_client2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js"() { init_emitWarningIfUnsupportedVersion(); init_longPollMiddleware(); init_setCredentialFeature(); init_setFeature(); init_setTokenFeature(); init_hostHeaderMiddleware(); init_loggerMiddleware(); init_configuration(); init_getRecursionDetectionPlugin(); init_recursionDetectionMiddleware(); init_configurations2(); init_user_agent_middleware(); init_defaultUserAgent(); init_nodeAppIdConfigOptions(); init_defaultUserAgent2(); init_createUserAgentStringParsingProvider(); init_aws(); init_resolveEndpoint(); init_resolveDefaultAwsRegionalEndpointsConfig(); init_isIpAddress(); init_isVirtualHostableS3Bucket(); init_parseArn(); init_partition(); init_EndpointError(); init_awsRegionConfig(); init_stsRegionDefaultResolver(); init_extensions(); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/getChecksumAlgorithmForRequest.js var getChecksumAlgorithmForRequest; var init_getChecksumAlgorithmForRequest = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/getChecksumAlgorithmForRequest.js"() { init_constants(); getChecksumAlgorithmForRequest = /* @__PURE__ */ __name((input2, { requestChecksumRequired, requestAlgorithmMember, requestChecksumCalculation }) => { if (!requestAlgorithmMember) { return requestChecksumCalculation === RequestChecksumCalculation.WHEN_SUPPORTED || requestChecksumRequired ? DEFAULT_CHECKSUM_ALGORITHM : void 0; } if (!input2[requestAlgorithmMember]) { return void 0; } const checksumAlgorithm = input2[requestAlgorithmMember]; return checksumAlgorithm; }, "getChecksumAlgorithmForRequest"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/getChecksumLocationName.js var getChecksumLocationName; var init_getChecksumLocationName = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/getChecksumLocationName.js"() { init_constants(); getChecksumLocationName = /* @__PURE__ */ __name((algorithm) => algorithm === ChecksumAlgorithm.MD5 ? "content-md5" : `x-amz-checksum-${algorithm.toLowerCase()}`, "getChecksumLocationName"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/hasHeader.js var hasHeader; var init_hasHeader = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/hasHeader.js"() { hasHeader = /* @__PURE__ */ __name((header, headers) => { const soughtHeader = header.toLowerCase(); for (const headerName of Object.keys(headers)) { if (soughtHeader === headerName.toLowerCase()) { return true; } } return false; }, "hasHeader"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/hasHeaderWithPrefix.js var hasHeaderWithPrefix; var init_hasHeaderWithPrefix = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/hasHeaderWithPrefix.js"() { hasHeaderWithPrefix = /* @__PURE__ */ __name((headerPrefix, headers) => { const soughtHeaderPrefix = headerPrefix.toLowerCase(); for (const headerName of Object.keys(headers)) { if (headerName.toLowerCase().startsWith(soughtHeaderPrefix)) { return true; } } return false; }, "hasHeaderWithPrefix"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/isStreaming.js var isStreaming; var init_isStreaming = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/isStreaming.js"() { init_serde(); isStreaming = /* @__PURE__ */ __name((body) => body !== void 0 && typeof body !== "string" && !ArrayBuffer.isView(body) && !isArrayBuffer(body), "isStreaming"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/crc/crc32c/Crc32cJs.js var T, Crc32cJs; var init_Crc32cJs = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/crc/crc32c/Crc32cJs.js"() { T = new Uint32Array(256); for (let i5 = 0; i5 < 256; ++i5) { let c5 = i5; for (let j5 = 0; j5 < 8; ++j5) { c5 = c5 & 1 ? 2197175160 ^ c5 >>> 1 : c5 >>> 1; } T[i5] = c5 >>> 0; } Crc32cJs = class { static { __name(this, "Crc32cJs"); } digestLength = 4; crc = 4294967295; update(data) { let crc = this.crc; for (let i5 = 0; i5 < data.length; ++i5) { crc = crc >>> 8 ^ T[(crc ^ data[i5]) & 255]; } this.crc = crc; } async digest() { const value = (this.crc ^ 4294967295) >>> 0; const out = new Uint8Array(4); out[0] = value >>> 24; out[1] = value >>> 16 & 255; out[2] = value >>> 8 & 255; out[3] = value & 255; return out; } reset() { this.crc = 4294967295; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/crc/crc32c/Crc32cNode.js var Crc32cNode; var init_Crc32cNode = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/crc/crc32c/Crc32cNode.js"() { init_Crc32cJs(); Crc32cNode = Crc32cJs; } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/crc/crc64-nvme/crc64-nvme-crt-container.js var crc64NvmeCrtContainer; var init_crc64_nvme_crt_container = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/crc/crc64-nvme/crc64-nvme-crt-container.js"() { crc64NvmeCrtContainer = { CrtCrc64Nvme: null }; } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/crc/crc64-nvme/Crc64NvmeJs.js var generateCRC64NVMETable, CRC64_NVME_REVERSED_TABLE, t0, t1, t2, t3, t4, t5, t6, t7, ensureTablesInitialized, Crc64NvmeJs; var init_Crc64NvmeJs = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/crc/crc64-nvme/Crc64NvmeJs.js"() { generateCRC64NVMETable = /* @__PURE__ */ __name(() => { const sliceLength = 8; const tables = new Array(sliceLength); for (let slice = 0; slice < sliceLength; slice++) { const table = new Array(512); for (let i5 = 0; i5 < 256; i5++) { let crc = BigInt(i5); for (let j5 = 0; j5 < 8 * (slice + 1); j5++) { if (crc & 1n) { crc = crc >> 1n ^ 0x9a6c9329ac4bc9b5n; } else { crc = crc >> 1n; } } table[i5 * 2] = Number(crc >> 32n & 0xffffffffn); table[i5 * 2 + 1] = Number(crc & 0xffffffffn); } tables[slice] = new Uint32Array(table); } return tables; }, "generateCRC64NVMETable"); ensureTablesInitialized = /* @__PURE__ */ __name(() => { if (!CRC64_NVME_REVERSED_TABLE) { CRC64_NVME_REVERSED_TABLE = generateCRC64NVMETable(); [t0, t1, t2, t3, t4, t5, t6, t7] = CRC64_NVME_REVERSED_TABLE; } }, "ensureTablesInitialized"); Crc64NvmeJs = class { static { __name(this, "Crc64NvmeJs"); } c1 = 0; c2 = 0; constructor() { ensureTablesInitialized(); this.reset(); } update(data) { const len = data.length; let i5 = 0; let crc1 = this.c1; let crc2 = this.c2; while (i5 + 8 <= len) { const idx0 = ((crc2 ^ data[i5++]) & 255) << 1; const idx1 = ((crc2 >>> 8 ^ data[i5++]) & 255) << 1; const idx2 = ((crc2 >>> 16 ^ data[i5++]) & 255) << 1; const idx3 = ((crc2 >>> 24 ^ data[i5++]) & 255) << 1; const idx4 = ((crc1 ^ data[i5++]) & 255) << 1; const idx5 = ((crc1 >>> 8 ^ data[i5++]) & 255) << 1; const idx6 = ((crc1 >>> 16 ^ data[i5++]) & 255) << 1; const idx7 = ((crc1 >>> 24 ^ data[i5++]) & 255) << 1; crc1 = t7[idx0] ^ t6[idx1] ^ t5[idx2] ^ t4[idx3] ^ t3[idx4] ^ t2[idx5] ^ t1[idx6] ^ t0[idx7]; crc2 = t7[idx0 + 1] ^ t6[idx1 + 1] ^ t5[idx2 + 1] ^ t4[idx3 + 1] ^ t3[idx4 + 1] ^ t2[idx5 + 1] ^ t1[idx6 + 1] ^ t0[idx7 + 1]; } while (i5 < len) { const idx = ((crc2 ^ data[i5]) & 255) << 1; crc2 = (crc2 >>> 8 | (crc1 & 255) << 24) >>> 0; crc1 = crc1 >>> 8 ^ t0[idx]; crc2 ^= t0[idx + 1]; ++i5; } this.c1 = crc1; this.c2 = crc2; } async digest() { const c1 = this.c1 ^ 4294967295; const c22 = this.c2 ^ 4294967295; return new Uint8Array([ c1 >>> 24, c1 >>> 16 & 255, c1 >>> 8 & 255, c1 & 255, c22 >>> 24, c22 >>> 16 & 255, c22 >>> 8 & 255, c22 & 255 ]); } reset() { this.c1 = 4294967295; this.c2 = 4294967295; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/crc/crc64-nvme/Crc64Nvme.js var Crc64Nvme; var init_Crc64Nvme = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/crc/crc64-nvme/Crc64Nvme.js"() { init_crc64_nvme_crt_container(); init_Crc64NvmeJs(); Crc64Nvme = class { static { __name(this, "Crc64Nvme"); } impl; constructor() { const Crt = crc64NvmeCrtContainer.CrtCrc64Nvme; this.impl = Crt ? new Crt() : new Crc64NvmeJs(); } update(data) { this.impl.update(data); } async digest() { return this.impl.digest(); } reset() { this.impl.reset(); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/crc/index.js var init_crc = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/crc/index.js"() { init_Crc32cNode(); init_Crc64Nvme(); init_checksum(); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/types.js var CLIENT_SUPPORTED_ALGORITHMS, PRIORITY_ORDER_ALGORITHMS; var init_types = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/types.js"() { init_constants(); CLIENT_SUPPORTED_ALGORITHMS = [ ChecksumAlgorithm.CRC32, ChecksumAlgorithm.CRC32C, ChecksumAlgorithm.CRC64NVME, ChecksumAlgorithm.SHA1, ChecksumAlgorithm.SHA256 ]; PRIORITY_ORDER_ALGORITHMS = [ ChecksumAlgorithm.SHA256, ChecksumAlgorithm.SHA1, ChecksumAlgorithm.CRC32, ChecksumAlgorithm.CRC32C, ChecksumAlgorithm.CRC64NVME ]; } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/selectChecksumAlgorithmFunction.js var selectChecksumAlgorithmFunction; var init_selectChecksumAlgorithmFunction = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/selectChecksumAlgorithmFunction.js"() { init_crc(); init_constants(); init_types(); selectChecksumAlgorithmFunction = /* @__PURE__ */ __name((checksumAlgorithm, config3) => { const { checksumAlgorithms = {} } = config3; switch (checksumAlgorithm) { case ChecksumAlgorithm.MD5: return checksumAlgorithms?.MD5 ?? config3.md5; case ChecksumAlgorithm.CRC32: return checksumAlgorithms?.CRC32 ?? Crc32Node; case ChecksumAlgorithm.CRC32C: return checksumAlgorithms?.CRC32C ?? Crc32cNode; case ChecksumAlgorithm.CRC64NVME: return checksumAlgorithms?.CRC64NVME ?? Crc64Nvme; case ChecksumAlgorithm.SHA1: return checksumAlgorithms?.SHA1 ?? config3.sha1; case ChecksumAlgorithm.SHA256: return checksumAlgorithms?.SHA256 ?? config3.sha256; default: if (checksumAlgorithms?.[checksumAlgorithm]) { return checksumAlgorithms[checksumAlgorithm]; } throw new Error(`The checksum algorithm "${checksumAlgorithm}" is not supported by the client. Select one of ${CLIENT_SUPPORTED_ALGORITHMS}, or provide an implementation to the client constructor checksums field.`); } }, "selectChecksumAlgorithmFunction"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/stringHasher.js var stringHasher; var init_stringHasher = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/stringHasher.js"() { init_serde(); stringHasher = /* @__PURE__ */ __name((checksumAlgorithmFn, body) => { const hash3 = new checksumAlgorithmFn(); hash3.update(toUint8Array(body || "")); return hash3.digest(); }, "stringHasher"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/flexibleChecksumsMiddleware.js var flexibleChecksumsMiddlewareOptions, flexibleChecksumsMiddleware; var init_flexibleChecksumsMiddleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/flexibleChecksumsMiddleware.js"() { init_client2(); init_protocols(); init_serde(); init_constants(); init_getChecksumAlgorithmForRequest(); init_getChecksumLocationName(); init_hasHeader(); init_hasHeaderWithPrefix(); init_isStreaming(); init_selectChecksumAlgorithmFunction(); init_stringHasher(); flexibleChecksumsMiddlewareOptions = { name: "flexibleChecksumsMiddleware", step: "build", tags: ["BODY_CHECKSUM"], override: true }; flexibleChecksumsMiddleware = /* @__PURE__ */ __name((config3, middlewareConfig) => (next, context) => async (args) => { if (!HttpRequest.isInstance(args.request)) { return next(args); } if (hasHeaderWithPrefix("x-amz-checksum-", args.request.headers)) { return next(args); } const { request, input: input2 } = args; const { body: requestBody, headers } = request; const { base64Encoder, streamHasher } = config3; const { requestChecksumRequired, requestAlgorithmMember } = middlewareConfig; const requestChecksumCalculation = await config3.requestChecksumCalculation(); const requestAlgorithmMemberName = requestAlgorithmMember?.name; const requestAlgorithmMemberHttpHeader = requestAlgorithmMember?.httpHeader; if (requestAlgorithmMemberName && !input2[requestAlgorithmMemberName]) { if (requestChecksumCalculation === RequestChecksumCalculation.WHEN_SUPPORTED || requestChecksumRequired) { input2[requestAlgorithmMemberName] = DEFAULT_CHECKSUM_ALGORITHM; if (requestAlgorithmMemberHttpHeader) { headers[requestAlgorithmMemberHttpHeader] = DEFAULT_CHECKSUM_ALGORITHM; } } } const checksumAlgorithm = getChecksumAlgorithmForRequest(input2, { requestChecksumRequired, requestAlgorithmMember: requestAlgorithmMember?.name, requestChecksumCalculation }); let updatedBody = requestBody; let updatedHeaders = headers; if (checksumAlgorithm) { switch (checksumAlgorithm) { case ChecksumAlgorithm.CRC32: setFeature(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32", "U"); break; case ChecksumAlgorithm.CRC32C: setFeature(context, "FLEXIBLE_CHECKSUMS_REQ_CRC32C", "V"); break; case ChecksumAlgorithm.CRC64NVME: setFeature(context, "FLEXIBLE_CHECKSUMS_REQ_CRC64", "W"); break; case ChecksumAlgorithm.SHA1: setFeature(context, "FLEXIBLE_CHECKSUMS_REQ_SHA1", "X"); break; case ChecksumAlgorithm.SHA256: setFeature(context, "FLEXIBLE_CHECKSUMS_REQ_SHA256", "Y"); break; } const checksumLocationName = getChecksumLocationName(checksumAlgorithm); const checksumAlgorithmFn = selectChecksumAlgorithmFunction(checksumAlgorithm, config3); if (isStreaming(requestBody)) { const { getAwsChunkedEncodingStream, bodyLengthChecker } = config3; updatedBody = getAwsChunkedEncodingStream(typeof config3.requestStreamBufferSize === "number" && config3.requestStreamBufferSize >= 8 * 1024 ? createBufferedReadable(requestBody, config3.requestStreamBufferSize, context.logger) : requestBody, { base64Encoder, bodyLengthChecker, checksumLocationName, checksumAlgorithmFn, streamHasher }); updatedHeaders = { ...headers, "content-encoding": headers["content-encoding"] ? `${headers["content-encoding"]},aws-chunked` : "aws-chunked", "transfer-encoding": "chunked", "x-amz-decoded-content-length": headers["content-length"], "x-amz-content-sha256": "STREAMING-UNSIGNED-PAYLOAD-TRAILER", "x-amz-trailer": checksumLocationName }; delete updatedHeaders["content-length"]; } else if (!hasHeader(checksumLocationName, headers)) { const rawChecksum = await stringHasher(checksumAlgorithmFn, requestBody); updatedHeaders = { ...headers, [checksumLocationName]: base64Encoder(rawChecksum) }; } } try { const result = await next({ ...args, request: { ...request, headers: updatedHeaders, body: updatedBody } }); return result; } catch (e5) { if (e5 instanceof Error && e5.name === "InvalidChunkSizeError") { try { if (!e5.message.endsWith(".")) { e5.message += "."; } e5.message += " Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."; } catch (ignored) { } } throw e5; } }, "flexibleChecksumsMiddleware"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/flexibleChecksumsInputMiddleware.js var flexibleChecksumsInputMiddlewareOptions, flexibleChecksumsInputMiddleware; var init_flexibleChecksumsInputMiddleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/flexibleChecksumsInputMiddleware.js"() { init_client2(); init_constants(); flexibleChecksumsInputMiddlewareOptions = { name: "flexibleChecksumsInputMiddleware", toMiddleware: "serializerMiddleware", relation: "before", tags: ["BODY_CHECKSUM"], override: true }; flexibleChecksumsInputMiddleware = /* @__PURE__ */ __name((config3, middlewareConfig) => (next, context) => async (args) => { const input2 = args.input; const { requestValidationModeMember } = middlewareConfig; const requestChecksumCalculation = await config3.requestChecksumCalculation(); const responseChecksumValidation = await config3.responseChecksumValidation(); switch (requestChecksumCalculation) { case RequestChecksumCalculation.WHEN_REQUIRED: setFeature(context, "FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED", "a"); break; case RequestChecksumCalculation.WHEN_SUPPORTED: setFeature(context, "FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED", "Z"); break; } switch (responseChecksumValidation) { case ResponseChecksumValidation.WHEN_REQUIRED: setFeature(context, "FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED", "c"); break; case ResponseChecksumValidation.WHEN_SUPPORTED: setFeature(context, "FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED", "b"); break; } if (requestValidationModeMember && !input2[requestValidationModeMember]) { if (responseChecksumValidation === ResponseChecksumValidation.WHEN_SUPPORTED) { input2[requestValidationModeMember] = "ENABLED"; } } return next(args); }, "flexibleChecksumsInputMiddleware"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/getChecksumAlgorithmListForResponse.js var getChecksumAlgorithmListForResponse; var init_getChecksumAlgorithmListForResponse = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/getChecksumAlgorithmListForResponse.js"() { init_types(); getChecksumAlgorithmListForResponse = /* @__PURE__ */ __name((responseAlgorithms = []) => { const validChecksumAlgorithms = []; let i5 = PRIORITY_ORDER_ALGORITHMS.length; for (const algorithm of responseAlgorithms) { const priority = PRIORITY_ORDER_ALGORITHMS.indexOf(algorithm); if (priority !== -1) { validChecksumAlgorithms[priority] = algorithm; } else { validChecksumAlgorithms[i5++] = algorithm; } } return validChecksumAlgorithms.filter(Boolean); }, "getChecksumAlgorithmListForResponse"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/isChecksumWithPartNumber.js var isChecksumWithPartNumber; var init_isChecksumWithPartNumber = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/isChecksumWithPartNumber.js"() { isChecksumWithPartNumber = /* @__PURE__ */ __name((checksum) => { const lastHyphenIndex = checksum.lastIndexOf("-"); if (lastHyphenIndex !== -1) { const numberPart = checksum.slice(lastHyphenIndex + 1); if (!numberPart.startsWith("0")) { const number4 = parseInt(numberPart, 10); if (!isNaN(number4) && number4 >= 1 && number4 <= 1e4) { return true; } } } return false; }, "isChecksumWithPartNumber"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/getChecksum.js var getChecksum; var init_getChecksum = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/getChecksum.js"() { init_stringHasher(); getChecksum = /* @__PURE__ */ __name(async (body, { checksumAlgorithmFn, base64Encoder }) => base64Encoder(await stringHasher(checksumAlgorithmFn, body)), "getChecksum"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/validateChecksumFromResponse.js var validateChecksumFromResponse; var init_validateChecksumFromResponse = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/validateChecksumFromResponse.js"() { init_serde(); init_constants(); init_getChecksum(); init_getChecksumAlgorithmListForResponse(); init_getChecksumLocationName(); init_isStreaming(); init_selectChecksumAlgorithmFunction(); validateChecksumFromResponse = /* @__PURE__ */ __name(async (response, { config: config3, responseAlgorithms, logger }) => { const checksumAlgorithms = getChecksumAlgorithmListForResponse(responseAlgorithms); const { body: responseBody, headers: responseHeaders } = response; for (const algorithm of checksumAlgorithms) { const responseHeader = getChecksumLocationName(algorithm); const checksumFromResponse = responseHeaders[responseHeader]; if (checksumFromResponse) { let checksumAlgorithmFn; try { checksumAlgorithmFn = selectChecksumAlgorithmFunction(algorithm, config3); } catch (error62) { if (algorithm === ChecksumAlgorithm.CRC64NVME) { logger?.warn(`Skipping ${ChecksumAlgorithm.CRC64NVME} checksum validation: ${error62.message}`); continue; } throw error62; } const { base64Encoder } = config3; if (isStreaming(responseBody)) { response.body = createChecksumStream({ expectedChecksum: checksumFromResponse, checksumSourceLocation: responseHeader, checksum: new checksumAlgorithmFn(), source: responseBody, base64Encoder }); return; } const checksum = await getChecksum(responseBody, { checksumAlgorithmFn, base64Encoder }); if (checksum === checksumFromResponse) { break; } throw new Error(`Checksum mismatch: expected "${checksum}" but received "${checksumFromResponse}" in response header "${responseHeader}".`); } } }, "validateChecksumFromResponse"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/flexibleChecksumsResponseMiddleware.js var flexibleChecksumsResponseMiddlewareOptions, flexibleChecksumsResponseMiddleware; var init_flexibleChecksumsResponseMiddleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/flexibleChecksumsResponseMiddleware.js"() { init_protocols(); init_getChecksumAlgorithmListForResponse(); init_getChecksumLocationName(); init_isChecksumWithPartNumber(); init_validateChecksumFromResponse(); flexibleChecksumsResponseMiddlewareOptions = { name: "flexibleChecksumsResponseMiddleware", toMiddleware: "deserializerMiddleware", relation: "after", tags: ["BODY_CHECKSUM"], override: true }; flexibleChecksumsResponseMiddleware = /* @__PURE__ */ __name((config3, middlewareConfig) => (next, context) => async (args) => { if (!HttpRequest.isInstance(args.request)) { return next(args); } const input2 = args.input; const result = await next(args); const response = result.response; const { requestValidationModeMember, responseAlgorithms } = middlewareConfig; if (requestValidationModeMember && input2[requestValidationModeMember] === "ENABLED") { const { clientName, commandName } = context; const customChecksumAlgorithms = Object.keys(config3.checksumAlgorithms ?? {}).filter((algorithm) => { const responseHeader = getChecksumLocationName(algorithm); return response.headers[responseHeader] !== void 0; }); const algoList = getChecksumAlgorithmListForResponse([ ...responseAlgorithms ?? [], ...customChecksumAlgorithms ]); const isS3WholeObjectMultipartGetResponseChecksum = clientName === "S3Client" && commandName === "GetObjectCommand" && algoList.every((algorithm) => { const responseHeader = getChecksumLocationName(algorithm); const checksumFromResponse = response.headers[responseHeader]; return !checksumFromResponse || isChecksumWithPartNumber(checksumFromResponse); }); if (isS3WholeObjectMultipartGetResponseChecksum) { return result; } await validateChecksumFromResponse(response, { config: config3, responseAlgorithms: algoList, logger: context.logger }); } return result; }, "flexibleChecksumsResponseMiddleware"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/getFlexibleChecksumsPlugin.js var getFlexibleChecksumsPlugin; var init_getFlexibleChecksumsPlugin = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/getFlexibleChecksumsPlugin.js"() { init_flexibleChecksumsInputMiddleware(); init_flexibleChecksumsMiddleware(); init_flexibleChecksumsResponseMiddleware(); getFlexibleChecksumsPlugin = /* @__PURE__ */ __name((config3, middlewareConfig) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.add(flexibleChecksumsMiddleware(config3, middlewareConfig), flexibleChecksumsMiddlewareOptions); clientStack.addRelativeTo(flexibleChecksumsInputMiddleware(config3, middlewareConfig), flexibleChecksumsInputMiddlewareOptions); clientStack.addRelativeTo(flexibleChecksumsResponseMiddleware(config3, middlewareConfig), flexibleChecksumsResponseMiddlewareOptions); }, "applyToStack") }), "getFlexibleChecksumsPlugin"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/resolveFlexibleChecksumsConfig.js var resolveFlexibleChecksumsConfig; var init_resolveFlexibleChecksumsConfig = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/resolveFlexibleChecksumsConfig.js"() { init_client(); init_constants(); resolveFlexibleChecksumsConfig = /* @__PURE__ */ __name((input2) => { const { requestChecksumCalculation, responseChecksumValidation, requestStreamBufferSize } = input2; return Object.assign(input2, { requestChecksumCalculation: normalizeProvider(requestChecksumCalculation ?? DEFAULT_REQUEST_CHECKSUM_CALCULATION), responseChecksumValidation: normalizeProvider(responseChecksumValidation ?? DEFAULT_RESPONSE_CHECKSUM_VALIDATION), requestStreamBufferSize: Number(requestStreamBufferSize ?? 0), checksumAlgorithms: input2.checksumAlgorithms ?? {} }); }, "resolveFlexibleChecksumsConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/index.js var flexible_checksums_exports = {}; __export(flexible_checksums_exports, { CONFIG_REQUEST_CHECKSUM_CALCULATION: () => CONFIG_REQUEST_CHECKSUM_CALCULATION, CONFIG_RESPONSE_CHECKSUM_VALIDATION: () => CONFIG_RESPONSE_CHECKSUM_VALIDATION, ChecksumAlgorithm: () => ChecksumAlgorithm, ChecksumLocation: () => ChecksumLocation, DEFAULT_CHECKSUM_ALGORITHM: () => DEFAULT_CHECKSUM_ALGORITHM, DEFAULT_REQUEST_CHECKSUM_CALCULATION: () => DEFAULT_REQUEST_CHECKSUM_CALCULATION, DEFAULT_RESPONSE_CHECKSUM_VALIDATION: () => DEFAULT_RESPONSE_CHECKSUM_VALIDATION, ENV_REQUEST_CHECKSUM_CALCULATION: () => ENV_REQUEST_CHECKSUM_CALCULATION, ENV_RESPONSE_CHECKSUM_VALIDATION: () => ENV_RESPONSE_CHECKSUM_VALIDATION, NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS: () => NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS: () => NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, RequestChecksumCalculation: () => RequestChecksumCalculation, ResponseChecksumValidation: () => ResponseChecksumValidation, flexibleChecksumsMiddleware: () => flexibleChecksumsMiddleware, flexibleChecksumsMiddlewareOptions: () => flexibleChecksumsMiddlewareOptions, getFlexibleChecksumsPlugin: () => getFlexibleChecksumsPlugin, resolveFlexibleChecksumsConfig: () => resolveFlexibleChecksumsConfig }); var init_flexible_checksums = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/index.js"() { init_NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS(); init_NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS(); init_constants(); init_flexibleChecksumsMiddleware(); init_getFlexibleChecksumsPlugin(); init_resolveFlexibleChecksumsConfig(); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-check-content-length-header/check-content-length-header.js function checkContentLengthHeader() { return (next, context) => async (args) => { const { request } = args; if (HttpRequest.isInstance(request)) { if (!(CONTENT_LENGTH_HEADER2 in request.headers) && !(DECODED_CONTENT_LENGTH_HEADER in request.headers)) { const message = `Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.`; if (typeof context?.logger?.warn === "function" && !(context.logger instanceof NoOpLogger)) { context.logger.warn(message); } else { console.warn(message); } } } return next({ ...args }); }; } var CONTENT_LENGTH_HEADER2, DECODED_CONTENT_LENGTH_HEADER, checkContentLengthHeaderMiddlewareOptions, getCheckContentLengthHeaderPlugin; var init_check_content_length_header = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-check-content-length-header/check-content-length-header.js"() { init_client(); init_protocols(); CONTENT_LENGTH_HEADER2 = "content-length"; DECODED_CONTENT_LENGTH_HEADER = "x-amz-decoded-content-length"; __name(checkContentLengthHeader, "checkContentLengthHeader"); checkContentLengthHeaderMiddlewareOptions = { step: "finalizeRequest", tags: ["CHECK_CONTENT_LENGTH_HEADER"], name: "getCheckContentLengthHeaderPlugin", override: true }; getCheckContentLengthHeaderPlugin = /* @__PURE__ */ __name((unused) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.add(checkContentLengthHeader(), checkContentLengthHeaderMiddlewareOptions); }, "applyToStack") }), "getCheckContentLengthHeaderPlugin"); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-region-redirect/region-redirect-endpoint-middleware.js var regionRedirectEndpointMiddleware, regionRedirectEndpointMiddlewareOptions; var init_region_redirect_endpoint_middleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-region-redirect/region-redirect-endpoint-middleware.js"() { regionRedirectEndpointMiddleware = /* @__PURE__ */ __name((config3) => { return (next, context) => async (args) => { const originalRegion = await config3.region(); const regionProviderRef = config3.region; let unlock = /* @__PURE__ */ __name(() => { }, "unlock"); if (context.__s3RegionRedirect) { Object.defineProperty(config3, "region", { writable: false, value: /* @__PURE__ */ __name(async () => { return context.__s3RegionRedirect; }, "value") }); unlock = /* @__PURE__ */ __name(() => Object.defineProperty(config3, "region", { writable: true, value: regionProviderRef }), "unlock"); } try { const result = await next(args); if (context.__s3RegionRedirect) { unlock(); const region = await config3.region(); if (originalRegion !== region) { throw new Error("Region was not restored following S3 region redirect."); } } return result; } catch (e5) { unlock(); throw e5; } }; }, "regionRedirectEndpointMiddleware"); regionRedirectEndpointMiddlewareOptions = { tags: ["REGION_REDIRECT", "S3"], name: "regionRedirectEndpointMiddleware", override: true, relation: "before", toMiddleware: "endpointV2Middleware" }; } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-region-redirect/region-redirect-middleware.js function regionRedirectMiddleware(clientConfig) { return (next, context) => async (args) => { try { return await next(args); } catch (err) { if (clientConfig.followRegionRedirects) { const statusCode = err?.$metadata?.httpStatusCode; const isHeadBucket = context.commandName === "HeadBucketCommand"; const bucketRegionHeader = err?.$response?.headers?.["x-amz-bucket-region"]; if (bucketRegionHeader) { if (statusCode === 301 || statusCode === 400 && (err?.name === "IllegalLocationConstraintException" || isHeadBucket)) { try { const actualRegion = bucketRegionHeader; context.logger?.debug(`Redirecting from ${await clientConfig.region()} to ${actualRegion}`); context.__s3RegionRedirect = actualRegion; setFeature(context, "S3_REGION_REDIRECT", "Ah"); } catch (e5) { throw new Error("Region redirect failed: " + e5); } return next(args); } } } throw err; } }; } var regionRedirectMiddlewareOptions, getRegionRedirectMiddlewarePlugin; var init_region_redirect_middleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-region-redirect/region-redirect-middleware.js"() { init_client2(); init_region_redirect_endpoint_middleware(); __name(regionRedirectMiddleware, "regionRedirectMiddleware"); regionRedirectMiddlewareOptions = { step: "initialize", tags: ["REGION_REDIRECT", "S3"], name: "regionRedirectMiddleware", override: true }; getRegionRedirectMiddlewarePlugin = /* @__PURE__ */ __name((clientConfig) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.add(regionRedirectMiddleware(clientConfig), regionRedirectMiddlewareOptions); clientStack.addRelativeTo(regionRedirectEndpointMiddleware(clientConfig), regionRedirectEndpointMiddlewareOptions); }, "applyToStack") }), "getRegionRedirectMiddlewarePlugin"); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCache.js var S3ExpressIdentityCache; var init_S3ExpressIdentityCache = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCache.js"() { S3ExpressIdentityCache = class _S3ExpressIdentityCache { static { __name(this, "S3ExpressIdentityCache"); } data; lastPurgeTime = Date.now(); static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS = 3e4; constructor(data = {}) { this.data = data; } get(key) { const entry = this.data[key]; if (!entry) { return; } return entry; } set(key, entry) { this.data[key] = entry; return entry; } delete(key) { delete this.data[key]; } async purgeExpired() { const now = Date.now(); if (this.lastPurgeTime + _S3ExpressIdentityCache.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS > now) { return; } for (const key in this.data) { const entry = this.data[key]; if (!entry.isRefreshing) { const credential = await entry.identity; if (credential.expiration) { if (credential.expiration.getTime() < now) { delete this.data[key]; } } } } } }; } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCacheEntry.js var S3ExpressIdentityCacheEntry; var init_S3ExpressIdentityCacheEntry = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCacheEntry.js"() { S3ExpressIdentityCacheEntry = class { static { __name(this, "S3ExpressIdentityCacheEntry"); } _identity; isRefreshing; accessed; constructor(_identity, isRefreshing = false, accessed = Date.now()) { this._identity = _identity; this.isRefreshing = isRefreshing; this.accessed = accessed; } get identity() { this.accessed = Date.now(); return this._identity; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityProviderImpl.js var S3ExpressIdentityProviderImpl; var init_S3ExpressIdentityProviderImpl = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityProviderImpl.js"() { init_S3ExpressIdentityCache(); init_S3ExpressIdentityCacheEntry(); S3ExpressIdentityProviderImpl = class _S3ExpressIdentityProviderImpl { static { __name(this, "S3ExpressIdentityProviderImpl"); } createSessionFn; cache; static REFRESH_WINDOW_MS = 6e4; constructor(createSessionFn, cache5 = new S3ExpressIdentityCache()) { this.createSessionFn = createSessionFn; this.cache = cache5; } async getS3ExpressIdentity(awsIdentity, identityProperties) { const key = identityProperties.Bucket; const { cache: cache5 } = this; const entry = cache5.get(key); if (entry) { return entry.identity.then((identity) => { const isExpired = (identity.expiration?.getTime() ?? 0) < Date.now(); if (isExpired) { return cache5.set(key, new S3ExpressIdentityCacheEntry(this.getIdentity(key))).identity; } const isExpiringSoon = (identity.expiration?.getTime() ?? 0) < Date.now() + _S3ExpressIdentityProviderImpl.REFRESH_WINDOW_MS; if (isExpiringSoon && !entry.isRefreshing) { entry.isRefreshing = true; this.getIdentity(key).then((id) => { cache5.set(key, new S3ExpressIdentityCacheEntry(Promise.resolve(id))); }); } return identity; }); } return cache5.set(key, new S3ExpressIdentityCacheEntry(this.getIdentity(key))).identity; } async getIdentity(key) { await this.cache.purgeExpired().catch((error62) => { console.warn("Error while clearing expired entries in S3ExpressIdentityCache: \n" + error62); }); const session = await this.createSessionFn(key); if (!session.Credentials?.AccessKeyId || !session.Credentials?.SecretAccessKey) { throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey."); } const identity = { accessKeyId: session.Credentials.AccessKeyId, secretAccessKey: session.Credentials.SecretAccessKey, sessionToken: session.Credentials.SessionToken, expiration: session.Credentials.Expiration ? new Date(session.Credentials.Expiration) : void 0 }; return identity; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-configuration/s3Configuration.js var resolveS3Config; var init_s3Configuration = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-configuration/s3Configuration.js"() { init_S3ExpressIdentityProviderImpl(); resolveS3Config = /* @__PURE__ */ __name((input2, { session }) => { const [s3ClientProvider, CreateSessionCommandCtor] = session; const { forcePathStyle, useAccelerateEndpoint, disableMultiregionAccessPoints, followRegionRedirects, s3ExpressIdentityProvider, bucketEndpoint, expectContinueHeader } = input2; return Object.assign(input2, { forcePathStyle: forcePathStyle ?? false, useAccelerateEndpoint: useAccelerateEndpoint ?? false, disableMultiregionAccessPoints: disableMultiregionAccessPoints ?? false, followRegionRedirects: followRegionRedirects ?? false, s3ExpressIdentityProvider: s3ExpressIdentityProvider ?? new S3ExpressIdentityProviderImpl(async (key) => s3ClientProvider().send(new CreateSessionCommandCtor({ Bucket: key }))), bucketEndpoint: bucketEndpoint ?? false, expectContinueHeader: expectContinueHeader ?? 2097152 }); }, "resolveS3Config"); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-expires/s3-expires-middleware.js var s3ExpiresMiddleware, s3ExpiresMiddlewareOptions, getS3ExpiresMiddlewarePlugin; var init_s3_expires_middleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-expires/s3-expires-middleware.js"() { init_protocols(); init_serde(); s3ExpiresMiddleware = /* @__PURE__ */ __name((config3) => { return (next, context) => async (args) => { const result = await next(args); const { response } = result; if (HttpResponse.isInstance(response)) { if (response.headers.expires) { response.headers.expiresstring = response.headers.expires; try { parseRfc7231DateTime(response.headers.expires); } catch (e5) { context.logger?.warn(`AWS SDK Warning for ${context.clientName}::${context.commandName} response parsing (${response.headers.expires}): ${e5}`); delete response.headers.expires; } } } return result; }; }, "s3ExpiresMiddleware"); s3ExpiresMiddlewareOptions = { tags: ["S3"], name: "s3ExpiresMiddleware", override: true, relation: "after", toMiddleware: "deserializerMiddleware" }; getS3ExpiresMiddlewarePlugin = /* @__PURE__ */ __name((clientConfig) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.addRelativeTo(s3ExpiresMiddleware(clientConfig), s3ExpiresMiddlewareOptions); }, "applyToStack") }), "getS3ExpiresMiddlewarePlugin"); } }); // ../../node_modules/.pnpm/@smithy+signature-v4@5.7.4/node_modules/@smithy/signature-v4/dist-cjs/index.js var require_dist_cjs2 = __commonJS({ "../../node_modules/.pnpm/@smithy+signature-v4@5.7.4/node_modules/@smithy/signature-v4/dist-cjs/index.js"(exports) { var { hasOwn: hasOwn2, fromUtf8: fromUtf82, fromHex, toHex, toUint8Array: toUint8Array2, isArrayBuffer: isArrayBuffer2 } = (init_serde(), __toCommonJS(serde_exports)); var { normalizeProvider: normalizeProvider3 } = (init_client(), __toCommonJS(client_exports)); var { escapeUri: escapeUri2, HttpRequest: HttpRequest2 } = (init_protocols(), __toCommonJS(protocols_exports)); var HeaderFormatter = class { static { __name(this, "HeaderFormatter"); } format(headers) { const chunks = []; for (const headerName in headers) { if (!hasOwn2(headers, headerName)) continue; const bytes = fromUtf82(headerName); chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName])); } const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0)); let position = 0; for (const chunk of chunks) { out.set(chunk, position); position += chunk.byteLength; } return out; } formatHeaderValue(header) { switch (header.type) { case "boolean": return Uint8Array.from([header.value ? 0 : 1]); case "byte": return Uint8Array.from([2, header.value]); case "short": const shortView = new DataView(new ArrayBuffer(3)); shortView.setUint8(0, 3); shortView.setInt16(1, header.value, false); return new Uint8Array(shortView.buffer); case "integer": const intView = new DataView(new ArrayBuffer(5)); intView.setUint8(0, 4); intView.setInt32(1, header.value, false); return new Uint8Array(intView.buffer); case "long": const longBytes = new Uint8Array(9); longBytes[0] = 5; longBytes.set(header.value.bytes, 1); return longBytes; case "binary": const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength)); binView.setUint8(0, 6); binView.setUint16(1, header.value.byteLength, false); const binBytes = new Uint8Array(binView.buffer); binBytes.set(header.value, 3); return binBytes; case "string": const utf8Bytes = fromUtf82(header.value); const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength)); strView.setUint8(0, 7); strView.setUint16(1, utf8Bytes.byteLength, false); const strBytes = new Uint8Array(strView.buffer); strBytes.set(utf8Bytes, 3); return strBytes; case "timestamp": const tsBytes = new Uint8Array(9); tsBytes[0] = 8; tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1); return tsBytes; case "uuid": if (!UUID_PATTERN.test(header.value)) { throw new Error(`Invalid UUID received: ${header.value}`); } const uuidBytes = new Uint8Array(17); uuidBytes[0] = 9; uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1); return uuidBytes; } } }; var HEADER_VALUE_TYPE; (function(HEADER_VALUE_TYPE2) { HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["boolTrue"] = 0] = "boolTrue"; HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["boolFalse"] = 1] = "boolFalse"; HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["byte"] = 2] = "byte"; HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["short"] = 3] = "short"; HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["integer"] = 4] = "integer"; HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["long"] = 5] = "long"; HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["byteArray"] = 6] = "byteArray"; HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["string"] = 7] = "string"; HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["timestamp"] = 8] = "timestamp"; HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["uuid"] = 9] = "uuid"; })(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {})); var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/; var Int64 = class _Int64 { static { __name(this, "Int64"); } bytes; constructor(bytes) { this.bytes = bytes; if (bytes.byteLength !== 8) { throw new Error("Int64 buffers must be exactly 8 bytes"); } } static fromNumber(number4) { if (number4 > 9223372036854776e3 || number4 < -9223372036854776e3) { throw new Error(`${number4} is too large (or, if negative, too small) to represent as an Int64`); } const bytes = new Uint8Array(8); for (let i5 = 7, remaining = Math.abs(Math.round(number4)); i5 > -1 && remaining > 0; i5--, remaining /= 256) { bytes[i5] = remaining; } if (number4 < 0) { negate(bytes); } return new _Int64(bytes); } valueOf() { const bytes = this.bytes.slice(0); const negative = bytes[0] & 128; if (negative) { negate(bytes); } return parseInt(toHex(bytes), 16) * (negative ? -1 : 1); } toString() { return String(this.valueOf()); } }; function negate(bytes) { for (let i5 = 0; i5 < 8; i5++) { bytes[i5] ^= 255; } for (let i5 = 7; i5 > -1; i5--) { bytes[i5]++; if (bytes[i5] !== 0) break; } } __name(negate, "negate"); var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; var AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; var SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; var EXPIRES_QUERY_PARAM = "X-Amz-Expires"; var SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; var TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; var REGION_SET_PARAM = "X-Amz-Region-Set"; var AUTH_HEADER = "authorization"; var AMZ_DATE_HEADER = AMZ_DATE_QUERY_PARAM.toLowerCase(); var DATE_HEADER = "date"; var GENERATED_HEADERS = [AUTH_HEADER, AMZ_DATE_HEADER, DATE_HEADER]; var SIGNATURE_HEADER = SIGNATURE_QUERY_PARAM.toLowerCase(); var SHA256_HEADER = "x-amz-content-sha256"; var TOKEN_HEADER = TOKEN_QUERY_PARAM.toLowerCase(); var HOST_HEADER = "host"; var ALWAYS_UNSIGNABLE_HEADERS = { authorization: true, "cache-control": true, connection: true, expect: true, from: true, "keep-alive": true, "max-forwards": true, pragma: true, referer: true, te: true, trailer: true, "transfer-encoding": true, upgrade: true, "user-agent": true, "x-amzn-trace-id": true }; var PROXY_HEADER_PATTERN = /^proxy-/; var SEC_HEADER_PATTERN = /^sec-/; var UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; var ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; var ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; var EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; var UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; var MAX_CACHE_SIZE = 50; var KEY_TYPE_IDENTIFIER = "aws4_request"; var MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; var getCanonicalQuery = /* @__PURE__ */ __name(({ query = {} }) => { const keys = []; const serialized = {}; for (const key in query) { if (!hasOwn2(query, key)) continue; if (key.toLowerCase() === SIGNATURE_HEADER) { continue; } const encodedKey = escapeUri2(key); keys.push(encodedKey); const value = query[key]; if (typeof value === "string") { serialized[encodedKey] = `${encodedKey}=${escapeUri2(value)}`; } else if (Array.isArray(value)) { serialized[encodedKey] = value.slice(0).reduce((encoded, value2) => encoded.concat([`${encodedKey}=${escapeUri2(value2)}`]), []).sort().join("&"); } } return keys.sort().map((key) => serialized[key]).filter((serialized2) => serialized2).join("&"); }, "getCanonicalQuery"); var iso8601 = /* @__PURE__ */ __name((time3) => toDate(time3).toISOString().replace(/\.\d{3}Z$/, "Z"), "iso8601"); var toDate = /* @__PURE__ */ __name((time3) => { if (typeof time3 === "number") { return new Date(time3 * 1e3); } if (typeof time3 === "string") { if (Number(time3)) { return new Date(Number(time3) * 1e3); } return new Date(time3); } return time3; }, "toDate"); var SignatureV4Base = class { static { __name(this, "SignatureV4Base"); } service; regionProvider; credentialProvider; sha256; uriEscapePath; applyChecksum; constructor({ applyChecksum, credentials, region, service, sha256: sha2562, uriEscapePath = true }) { this.service = service; this.sha256 = sha2562; this.uriEscapePath = uriEscapePath; this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; this.regionProvider = normalizeProvider3(region); this.credentialProvider = normalizeProvider3(credentials); } createCanonicalRequest(request, canonicalHeaders, payloadHash) { const sortedHeaders = Object.keys(canonicalHeaders).sort(); return `${request.method} ${this.getCanonicalPath(request)} ${getCanonicalQuery(request)} ${sortedHeaders.map((name2) => `${name2}:${canonicalHeaders[name2]}`).join("\n")} ${sortedHeaders.join(";")} ${payloadHash}`; } async createStringToSign(longDate, credentialScope, canonicalRequest, algorithmIdentifier) { const hash3 = new this.sha256(); hash3.update(toUint8Array2(canonicalRequest)); const hashedRequest = await hash3.digest(); return `${algorithmIdentifier} ${longDate} ${credentialScope} ${toHex(hashedRequest)}`; } getCanonicalPath({ path: path2 }) { if (this.uriEscapePath) { const normalizedPathSegments = []; for (const pathSegment of path2.split("/")) { if (pathSegment?.length === 0) continue; if (pathSegment === ".") continue; if (pathSegment === "..") { normalizedPathSegments.pop(); } else { normalizedPathSegments.push(pathSegment); } } const normalizedPath = `${path2?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path2?.endsWith("/") ? "/" : ""}`; const doubleEncoded = escapeUri2(normalizedPath); return doubleEncoded.replace(/%2F/g, "/"); } return path2; } validateResolvedCredentials(credentials) { if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") { throw new Error("Resolved credential object is not valid"); } } formatDate(now) { const longDate = iso8601(now).replace(/[-:]/g, ""); return { longDate, shortDate: longDate.slice(0, 8) }; } getCanonicalHeaderList(headers) { return Object.keys(headers).sort().join(";"); } }; var signingKeyCache = {}; var cacheQueue = []; var createScope = /* @__PURE__ */ __name((shortDate, region, service) => `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`, "createScope"); var getSigningKey = /* @__PURE__ */ __name(async (sha256Constructor, credentials, shortDate, region, service) => { const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); const cacheKey = `${shortDate}:${region}:${service}:${toHex(credsHash)}:${credentials.sessionToken}`; if (cacheKey in signingKeyCache) { return signingKeyCache[cacheKey]; } cacheQueue.push(cacheKey); while (cacheQueue.length > MAX_CACHE_SIZE) { delete signingKeyCache[cacheQueue.shift()]; } let key = `AWS4${credentials.secretAccessKey}`; for (const signable of [shortDate, region, service, KEY_TYPE_IDENTIFIER]) { key = await hmac(sha256Constructor, key, signable); } return signingKeyCache[cacheKey] = key; }, "getSigningKey"); var clearCredentialCache = /* @__PURE__ */ __name(() => { cacheQueue.length = 0; Object.keys(signingKeyCache).forEach((cacheKey) => { delete signingKeyCache[cacheKey]; }); }, "clearCredentialCache"); var hmac = /* @__PURE__ */ __name((ctor, secret, data) => { const hash3 = new ctor(secret); hash3.update(toUint8Array2(data)); return hash3.digest(); }, "hmac"); var getCanonicalHeaders = /* @__PURE__ */ __name(({ headers }, unsignableHeaders, signableHeaders) => { const canonical = {}; for (const headerName of Object.keys(headers).sort()) { if (headers[headerName] == void 0) { continue; } const canonicalHeaderName = headerName.toLowerCase(); if (canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS || unsignableHeaders?.has(canonicalHeaderName) || PROXY_HEADER_PATTERN.test(canonicalHeaderName) || SEC_HEADER_PATTERN.test(canonicalHeaderName)) { if (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) { continue; } } canonical[canonicalHeaderName] = headers[headerName].replace(/[\r\n]/g, " ").replace(/[ \t]+/g, " ").replace(/^ | $/g, ""); } return canonical; }, "getCanonicalHeaders"); var getPayloadHash = /* @__PURE__ */ __name(async ({ headers, body }, hashConstructor) => { for (const headerName in headers) { if (!hasOwn2(headers, headerName)) continue; if (headerName.toLowerCase() === SHA256_HEADER) { return headers[headerName]; } } if (body == void 0) { return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; } else if (typeof body === "string" || ArrayBuffer.isView(body) || isArrayBuffer2(body)) { const hashCtor = new hashConstructor(); hashCtor.update(toUint8Array2(body)); return toHex(await hashCtor.digest()); } return UNSIGNED_PAYLOAD; }, "getPayloadHash"); var hasHeader2 = /* @__PURE__ */ __name((soughtHeader, headers) => { soughtHeader = soughtHeader.toLowerCase(); for (const headerName in headers) { if (!hasOwn2(headers, headerName)) continue; if (soughtHeader === headerName.toLowerCase()) { return true; } } return false; }, "hasHeader"); var moveHeadersToQuery = /* @__PURE__ */ __name((request, options = {}) => { const { headers, query = {} } = HttpRequest2.clone(request); for (const name2 in headers) { if (!hasOwn2(headers, name2)) continue; const lname = name2.toLowerCase(); if (lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname) || options.hoistableHeaders?.has(lname)) { query[name2] = headers[name2]; delete headers[name2]; } } return { ...request, headers, query }; }, "moveHeadersToQuery"); var prepareRequest = /* @__PURE__ */ __name((request) => { request = HttpRequest2.clone(request); for (const headerName in request.headers) { if (!hasOwn2(request.headers, headerName)) continue; if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { delete request.headers[headerName]; } } return request; }, "prepareRequest"); var SignatureV42 = class extends SignatureV4Base { static { __name(this, "SignatureV4"); } headerFormatter = new HeaderFormatter(); constructor({ applyChecksum, credentials, region, service, sha256: sha2562, uriEscapePath = true }) { super({ applyChecksum, credentials, region, service, sha256: sha2562, uriEscapePath }); } async presign(originalRequest, options = {}) { const { signingDate = /* @__PURE__ */ new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, hoistableHeaders, signingRegion, signingService } = options; const credentials = await this.credentialProvider(); this.validateResolvedCredentials(credentials); const region = signingRegion ?? await this.regionProvider(); const { longDate, shortDate } = this.formatDate(signingDate); if (expiresIn > MAX_PRESIGNED_TTL) { return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future"); } const scope = createScope(shortDate, region, signingService ?? this.service); const request = moveHeadersToQuery(prepareRequest(originalRequest), { unhoistableHeaders, hoistableHeaders }); if (credentials.sessionToken) { request.query[TOKEN_QUERY_PARAM] = credentials.sessionToken; } request.query[ALGORITHM_QUERY_PARAM] = ALGORITHM_IDENTIFIER; request.query[CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`; request.query[AMZ_DATE_QUERY_PARAM] = longDate; request.query[EXPIRES_QUERY_PARAM] = expiresIn.toString(10); const canonicalHeaders = getCanonicalHeaders(request, unsignableHeaders, signableHeaders); request.query[SIGNED_HEADERS_QUERY_PARAM] = this.getCanonicalHeaderList(canonicalHeaders); request.query[SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, await getPayloadHash(originalRequest, this.sha256))); return request; } async sign(toSign, options) { if (typeof toSign === "string") { return this.signString(toSign, options); } else if (toSign.headers && toSign.payload) { return this.signEvent(toSign, options); } else if (toSign.message) { return this.signMessage(toSign, options); } else { return this.signRequest(toSign, options); } } async signEvent({ headers, payload }, { signingDate = /* @__PURE__ */ new Date(), priorSignature, signingRegion, signingService, eventStreamCredentials }) { const region = signingRegion ?? await this.regionProvider(); const { shortDate, longDate } = this.formatDate(signingDate); const scope = createScope(shortDate, region, signingService ?? this.service); const hashedPayload = await getPayloadHash({ headers: {}, body: payload }, this.sha256); const hash3 = new this.sha256(); hash3.update(headers); const hashedHeaders = toHex(await hash3.digest()); const stringToSign = [ EVENT_ALGORITHM_IDENTIFIER, longDate, scope, priorSignature, hashedHeaders, hashedPayload ].join("\n"); return this.signString(stringToSign, { signingDate, signingRegion: region, signingService, eventStreamCredentials }); } async signMessage(signableMessage, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService, eventStreamCredentials }) { const promise2 = this.signEvent({ headers: this.headerFormatter.format(signableMessage.message.headers), payload: signableMessage.message.body }, { signingDate, signingRegion, signingService, priorSignature: signableMessage.priorSignature, eventStreamCredentials }); return promise2.then((signature) => { return { message: signableMessage.message, signature }; }); } async signString(stringToSign, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService, eventStreamCredentials } = {}) { const credentials = eventStreamCredentials ?? await this.credentialProvider(); this.validateResolvedCredentials(credentials); const region = signingRegion ?? await this.regionProvider(); const { shortDate } = this.formatDate(signingDate); const hash3 = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); hash3.update(toUint8Array2(stringToSign)); return toHex(await hash3.digest()); } async signRequest(requestToSign, { signingDate = /* @__PURE__ */ new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService } = {}) { const credentials = await this.credentialProvider(); this.validateResolvedCredentials(credentials); const region = signingRegion ?? await this.regionProvider(); const request = prepareRequest(requestToSign); const { longDate, shortDate } = this.formatDate(signingDate); const scope = createScope(shortDate, region, signingService ?? this.service); request.headers[AMZ_DATE_HEADER] = longDate; if (credentials.sessionToken) { request.headers[TOKEN_HEADER] = credentials.sessionToken; } const payloadHash = await getPayloadHash(request, this.sha256); if (!hasHeader2(SHA256_HEADER, request.headers) && this.applyChecksum) { request.headers[SHA256_HEADER] = payloadHash; } const canonicalHeaders = getCanonicalHeaders(request, unsignableHeaders, signableHeaders); const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash)); request.headers[AUTH_HEADER] = `${ALGORITHM_IDENTIFIER} Credential=${credentials.accessKeyId}/${scope}, SignedHeaders=${this.getCanonicalHeaderList(canonicalHeaders)}, Signature=${signature}`; return request; } async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest, ALGORITHM_IDENTIFIER); const hash3 = new this.sha256(await keyPromise); hash3.update(toUint8Array2(stringToSign)); return toHex(await hash3.digest()); } getSigningKey(credentials, region, shortDate, service) { return getSigningKey(this.sha256, credentials, shortDate, region, service || this.service); } }; var signatureV4aContainer = { SignatureV4a: null }; exports.ALGORITHM_IDENTIFIER = ALGORITHM_IDENTIFIER; exports.ALGORITHM_IDENTIFIER_V4A = ALGORITHM_IDENTIFIER_V4A; exports.ALGORITHM_QUERY_PARAM = ALGORITHM_QUERY_PARAM; exports.ALWAYS_UNSIGNABLE_HEADERS = ALWAYS_UNSIGNABLE_HEADERS; exports.AMZ_DATE_HEADER = AMZ_DATE_HEADER; exports.AMZ_DATE_QUERY_PARAM = AMZ_DATE_QUERY_PARAM; exports.AUTH_HEADER = AUTH_HEADER; exports.CREDENTIAL_QUERY_PARAM = CREDENTIAL_QUERY_PARAM; exports.DATE_HEADER = DATE_HEADER; exports.EVENT_ALGORITHM_IDENTIFIER = EVENT_ALGORITHM_IDENTIFIER; exports.EXPIRES_QUERY_PARAM = EXPIRES_QUERY_PARAM; exports.GENERATED_HEADERS = GENERATED_HEADERS; exports.HOST_HEADER = HOST_HEADER; exports.KEY_TYPE_IDENTIFIER = KEY_TYPE_IDENTIFIER; exports.MAX_CACHE_SIZE = MAX_CACHE_SIZE; exports.MAX_PRESIGNED_TTL = MAX_PRESIGNED_TTL; exports.PROXY_HEADER_PATTERN = PROXY_HEADER_PATTERN; exports.REGION_SET_PARAM = REGION_SET_PARAM; exports.SEC_HEADER_PATTERN = SEC_HEADER_PATTERN; exports.SHA256_HEADER = SHA256_HEADER; exports.SIGNATURE_HEADER = SIGNATURE_HEADER; exports.SIGNATURE_QUERY_PARAM = SIGNATURE_QUERY_PARAM; exports.SIGNED_HEADERS_QUERY_PARAM = SIGNED_HEADERS_QUERY_PARAM; exports.SignatureV4 = SignatureV42; exports.SignatureV4Base = SignatureV4Base; exports.TOKEN_HEADER = TOKEN_HEADER; exports.TOKEN_QUERY_PARAM = TOKEN_QUERY_PARAM; exports.UNSIGNABLE_PATTERNS = UNSIGNABLE_PATTERNS; exports.UNSIGNED_PAYLOAD = UNSIGNED_PAYLOAD; exports.clearCredentialCache = clearCredentialCache; exports.createScope = createScope; exports.getCanonicalHeaders = getCanonicalHeaders; exports.getCanonicalQuery = getCanonicalQuery; exports.getPayloadHash = getPayloadHash; exports.getSigningKey = getSigningKey; exports.hasHeader = hasHeader2; exports.moveHeadersToQuery = moveHeadersToQuery; exports.prepareRequest = prepareRequest; exports.signatureV4aContainer = signatureV4aContainer; } }); // ../../node_modules/.pnpm/@aws-sdk+signature-v4-multi-region@3.996.48/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js var require_dist_cjs3 = __commonJS({ "../../node_modules/.pnpm/@aws-sdk+signature-v4-multi-region@3.996.48/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js"(exports) { var { SignatureV4: SignatureV42, signatureV4aContainer } = require_dist_cjs2(); var signatureV4CrtContainer = { CrtSignerV4: null }; var SESSION_TOKEN_QUERY_PARAM2 = "X-Amz-S3session-Token"; var SESSION_TOKEN_HEADER2 = SESSION_TOKEN_QUERY_PARAM2.toLowerCase(); var SignatureV4SignWithCredentials2 = class extends SignatureV42 { static { __name(this, "SignatureV4SignWithCredentials"); } async signWithCredentials(requestToSign, credentials, options) { const credentialsWithoutSessionToken = getCredentialsWithoutSessionToken(credentials); requestToSign.headers[SESSION_TOKEN_HEADER2] = credentials.sessionToken; const privateAccess = this; setSingleOverride(privateAccess, credentialsWithoutSessionToken); return privateAccess.signRequest(requestToSign, options ?? {}); } async presignWithCredentials(requestToSign, credentials, options) { const credentialsWithoutSessionToken = getCredentialsWithoutSessionToken(credentials); delete requestToSign.headers[SESSION_TOKEN_HEADER2]; requestToSign.headers[SESSION_TOKEN_QUERY_PARAM2] = credentials.sessionToken; requestToSign.query = requestToSign.query ?? {}; requestToSign.query[SESSION_TOKEN_QUERY_PARAM2] = credentials.sessionToken; const privateAccess = this; setSingleOverride(privateAccess, credentialsWithoutSessionToken); return this.presign(requestToSign, options); } }; function getCredentialsWithoutSessionToken(credentials) { return { accessKeyId: credentials.accessKeyId, secretAccessKey: credentials.secretAccessKey, expiration: credentials.expiration }; } __name(getCredentialsWithoutSessionToken, "getCredentialsWithoutSessionToken"); function setSingleOverride(privateAccess, credentialsWithoutSessionToken) { const currentCredentialProvider = privateAccess.credentialProvider; privateAccess.credentialProvider = () => { privateAccess.credentialProvider = currentCredentialProvider; return Promise.resolve(credentialsWithoutSessionToken); }; } __name(setSingleOverride, "setSingleOverride"); var SignatureV4MultiRegion3 = class { static { __name(this, "SignatureV4MultiRegion"); } sigv4aSigner; sigv4Signer; signerOptions; static sigv4aDependency() { if (typeof signatureV4CrtContainer.CrtSignerV4 === "function") { return "crt"; } else if (typeof signatureV4aContainer.SignatureV4a === "function") { return "js"; } return "none"; } constructor(options) { this.sigv4Signer = new SignatureV4SignWithCredentials2(options); this.signerOptions = options; } async sign(requestToSign, options = {}) { if (options.signingRegion === "*") { return this.getSigv4aSigner().sign(requestToSign, options); } return this.sigv4Signer.sign(requestToSign, options); } async signWithCredentials(requestToSign, credentials, options = {}) { if (options.signingRegion === "*") { const signer = this.getSigv4aSigner(); const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4; if (CrtSignerV4 && signer instanceof CrtSignerV4) { return signer.signWithCredentials(requestToSign, credentials, options); } else { throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`); } } return this.sigv4Signer.signWithCredentials(requestToSign, credentials, options); } async presign(originalRequest, options = {}) { if (options.signingRegion === "*") { const signer = this.getSigv4aSigner(); const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4; if (CrtSignerV4 && signer instanceof CrtSignerV4) { return signer.presign(originalRequest, options); } else { throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`); } } return this.sigv4Signer.presign(originalRequest, options); } async presignWithCredentials(originalRequest, credentials, options = {}) { if (options.signingRegion === "*") { throw new Error("Method presignWithCredentials is not supported for [signingRegion=*]."); } return this.sigv4Signer.presignWithCredentials(originalRequest, credentials, options); } getSigv4aSigner() { if (!this.sigv4aSigner) { const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4; const JsSigV4aSigner = signatureV4aContainer.SignatureV4a; if (this.signerOptions.runtime === "node") { if (!CrtSignerV4 && !JsSigV4aSigner) { throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt"); } if (CrtSignerV4 && typeof CrtSignerV4 === "function") { this.sigv4aSigner = new CrtSignerV4({ ...this.signerOptions, signingAlgorithm: 1 }); } else if (JsSigV4aSigner && typeof JsSigV4aSigner === "function") { this.sigv4aSigner = new JsSigV4aSigner({ ...this.signerOptions }); } else { throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt"); } } else { if (!JsSigV4aSigner || typeof JsSigV4aSigner !== "function") { throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a"); } this.sigv4aSigner = new JsSigV4aSigner({ ...this.signerOptions }); } } return this.sigv4aSigner; } }; exports.SignatureV4MultiRegion = SignatureV4MultiRegion3; exports.SignatureV4SignWithCredentials = SignatureV4SignWithCredentials2; exports.signatureV4CrtContainer = signatureV4CrtContainer; } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/SignatureV4S3Express.js var import_signature_v4_multi_region, SignatureV4S3Express; var init_SignatureV4S3Express = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/SignatureV4S3Express.js"() { import_signature_v4_multi_region = __toESM(require_dist_cjs3()); SignatureV4S3Express = class extends import_signature_v4_multi_region.SignatureV4SignWithCredentials { static { __name(this, "SignatureV4S3Express"); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/constants.js var S3_EXPRESS_BUCKET_TYPE, S3_EXPRESS_BACKEND, S3_EXPRESS_AUTH_SCHEME, SESSION_TOKEN_QUERY_PARAM, SESSION_TOKEN_HEADER, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS; var init_constants5 = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/constants.js"() { init_config(); S3_EXPRESS_BUCKET_TYPE = "Directory"; S3_EXPRESS_BACKEND = "S3Express"; S3_EXPRESS_AUTH_SCHEME = "sigv4-s3express"; SESSION_TOKEN_QUERY_PARAM = "X-Amz-S3session-Token"; SESSION_TOKEN_HEADER = SESSION_TOKEN_QUERY_PARAM.toLowerCase(); NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME = "AWS_S3_DISABLE_EXPRESS_SESSION_AUTH"; NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME = "s3_disable_express_session_auth"; NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS = { environmentVariableSelector: /* @__PURE__ */ __name((env3) => booleanSelector(env3, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME, SelectorType.ENV), "environmentVariableSelector"), configFileSelector: /* @__PURE__ */ __name((profile) => booleanSelector(profile, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME, SelectorType.CONFIG), "configFileSelector"), default: false }; } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/functions/s3ExpressMiddleware.js var s3ExpressMiddleware, s3ExpressMiddlewareOptions, getS3ExpressPlugin; var init_s3ExpressMiddleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/functions/s3ExpressMiddleware.js"() { init_client2(); init_protocols(); init_constants5(); s3ExpressMiddleware = /* @__PURE__ */ __name((options) => { return (next, context) => async (args) => { if (context.endpointV2) { const endpoint = context.endpointV2; const isS3ExpressAuth = endpoint.properties?.authSchemes?.[0]?.name === S3_EXPRESS_AUTH_SCHEME; const isS3ExpressBucket = endpoint.properties?.backend === S3_EXPRESS_BACKEND || endpoint.properties?.bucketType === S3_EXPRESS_BUCKET_TYPE; if (isS3ExpressBucket) { setFeature(context, "S3_EXPRESS_BUCKET", "J"); context.isS3ExpressBucket = true; } if (isS3ExpressAuth) { const requestBucket = args.input.Bucket; if (requestBucket) { const s3ExpressIdentity = await options.s3ExpressIdentityProvider.getS3ExpressIdentity(await options.credentials(), { Bucket: requestBucket }); context.s3ExpressIdentity = s3ExpressIdentity; if (HttpRequest.isInstance(args.request) && s3ExpressIdentity.sessionToken) { args.request.headers[SESSION_TOKEN_HEADER] = s3ExpressIdentity.sessionToken; } } } } return next(args); }; }, "s3ExpressMiddleware"); s3ExpressMiddlewareOptions = { name: "s3ExpressMiddleware", step: "build", tags: ["S3", "S3_EXPRESS"], override: true }; getS3ExpressPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.add(s3ExpressMiddleware(options), s3ExpressMiddlewareOptions); }, "applyToStack") }), "getS3ExpressPlugin"); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/functions/signS3Express.js var signS3Express; var init_signS3Express = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/functions/signS3Express.js"() { signS3Express = /* @__PURE__ */ __name(async (s3ExpressIdentity, signingOptions, request, sigV4MultiRegionSigner) => { const signedRequest = await sigV4MultiRegionSigner.signWithCredentials(request, s3ExpressIdentity, {}); if (signedRequest.headers["X-Amz-Security-Token"] || signedRequest.headers["x-amz-security-token"]) { throw new Error("X-Amz-Security-Token must not be set for s3-express requests."); } return signedRequest; }, "signS3Express"); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/functions/s3ExpressHttpSigningMiddleware.js var defaultErrorHandler2, defaultSuccessHandler2, s3ExpressHttpSigningMiddlewareOptions, s3ExpressHttpSigningMiddleware, getS3ExpressHttpSigningPlugin; var init_s3ExpressHttpSigningMiddleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/functions/s3ExpressHttpSigningMiddleware.js"() { init_dist_es(); init_client(); init_protocols(); init_signS3Express(); defaultErrorHandler2 = /* @__PURE__ */ __name((signingProperties) => (error62) => { throw error62; }, "defaultErrorHandler"); defaultSuccessHandler2 = /* @__PURE__ */ __name((httpResponse, signingProperties) => { }, "defaultSuccessHandler"); s3ExpressHttpSigningMiddlewareOptions = httpSigningMiddlewareOptions; s3ExpressHttpSigningMiddleware = /* @__PURE__ */ __name((config3) => (next, context) => async (args) => { if (!HttpRequest.isInstance(args.request)) { return next(args); } const smithyContext = getSmithyContext(context); const scheme = smithyContext.selectedHttpAuthScheme; if (!scheme) { throw new Error(`No HttpAuthScheme was selected: unable to sign request`); } const { httpAuthOption: { signingProperties = {} }, identity, signer } = scheme; let request; if (context.s3ExpressIdentity) { request = await signS3Express(context.s3ExpressIdentity, signingProperties, args.request, await config3.signer()); } else { request = await signer.sign(args.request, identity, signingProperties); } const output2 = await next({ ...args, request }).catch((signer.errorHandler || defaultErrorHandler2)(signingProperties)); (signer.successHandler || defaultSuccessHandler2)(output2.response, signingProperties); return output2; }, "s3ExpressHttpSigningMiddleware"); getS3ExpressHttpSigningPlugin = /* @__PURE__ */ __name((config3) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.addRelativeTo(s3ExpressHttpSigningMiddleware(config3), httpSigningMiddlewareOptions); }, "applyToStack") }), "getS3ExpressHttpSigningPlugin"); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/to-stream/toStream.js import { Readable as Readable2 } from "node:stream"; function toStream(bytes) { return Readable2.from(Buffer.from(bytes)); } var init_toStream = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/to-stream/toStream.js"() { __name(toStream, "toStream"); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-throw-200-exceptions/throw-200-exceptions.js var THROW_IF_EMPTY_BODY, throw200ExceptionsMiddleware, collectBody2, throw200ExceptionsMiddlewareOptions, getThrow200ExceptionsPlugin; var init_throw_200_exceptions = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-throw-200-exceptions/throw-200-exceptions.js"() { init_protocols(); init_toStream(); THROW_IF_EMPTY_BODY = { CopyObjectCommand: true, UploadPartCopyCommand: true, CompleteMultipartUploadCommand: true }; throw200ExceptionsMiddleware = /* @__PURE__ */ __name((config3) => (next, context) => async (args) => { const result = await next(args); const { response } = result; if (!HttpResponse.isInstance(response)) { return result; } const { statusCode, body } = response; if (statusCode < 200 || statusCode >= 300) { return result; } const bodyBytes = await collectBody2(body, config3); response.body = toStream(bodyBytes); if (bodyBytes.length === 0 && THROW_IF_EMPTY_BODY[context.commandName]) { const err = new Error("S3 aborted request"); err.$metadata = { httpStatusCode: 503 }; err.name = "InternalError"; throw err; } const bodyStringTail = config3.utf8Encoder(bodyBytes.subarray(bodyBytes.length - 16)); if (bodyStringTail && bodyStringTail.endsWith("")) { response.statusCode = 503; } return result; }, "throw200ExceptionsMiddleware"); collectBody2 = /* @__PURE__ */ __name((streamBody = new Uint8Array(), context) => { if (streamBody instanceof Uint8Array) { return Promise.resolve(streamBody); } return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); }, "collectBody"); throw200ExceptionsMiddlewareOptions = { relation: "after", toMiddleware: "deserializerMiddleware", tags: ["THROW_200_EXCEPTIONS", "S3"], name: "throw200ExceptionsMiddleware", override: true }; getThrow200ExceptionsPlugin = /* @__PURE__ */ __name((config3) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.addRelativeTo(throw200ExceptionsMiddleware(config3), throw200ExceptionsMiddlewareOptions); }, "applyToStack") }), "getThrow200ExceptionsPlugin"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js var validate2, parse3; var init_arn = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js"() { validate2 = /* @__PURE__ */ __name((str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6, "validate"); parse3 = /* @__PURE__ */ __name((arn) => { const segments = arn.split(":"); if (segments.length < 6 || segments[0] !== "arn") throw new Error("Malformed ARN"); const [, partition2, service, region, accountId, ...resource] = segments; return { partition: partition2, service, region, accountId, resource: resource.join(":") }; }, "parse"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js var init_util2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js"() { init_arn(); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-region-redirect/bucket-endpoint-middleware.js function bucketEndpointMiddleware(options) { return (next, context) => async (args) => { if (options.bucketEndpoint) { const endpoint = context.endpointV2; if (endpoint) { const bucket = args.input.Bucket; if (typeof bucket === "string") { try { const bucketEndpointUrl = new URL(bucket); context.endpointV2 = { ...endpoint, url: bucketEndpointUrl }; } catch (e5) { const warning2 = `@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${bucket} could not be parsed as URL.`; if (context.logger?.constructor?.name === "NoOpLogger") { console.warn(warning2); } else { context.logger?.warn?.(warning2); } throw e5; } } } } return next(args); }; } var bucketEndpointMiddlewareOptions; var init_bucket_endpoint_middleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-region-redirect/bucket-endpoint-middleware.js"() { __name(bucketEndpointMiddleware, "bucketEndpointMiddleware"); bucketEndpointMiddlewareOptions = { name: "bucketEndpointMiddleware", override: true, relation: "after", toMiddleware: "endpointV2Middleware" }; } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-validate-bucket-name/validate-bucket-name.js function validateBucketNameMiddleware({ bucketEndpoint }) { return (next) => async (args) => { const { input: { Bucket } } = args; if (!bucketEndpoint && typeof Bucket === "string" && !validate2(Bucket) && Bucket.indexOf("/") >= 0) { const err = new Error(`Bucket name shouldn't contain '/', received '${Bucket}'`); err.name = "InvalidBucketName"; throw err; } return next({ ...args }); }; } var validateBucketNameMiddlewareOptions, getValidateBucketNamePlugin; var init_validate_bucket_name = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-validate-bucket-name/validate-bucket-name.js"() { init_util2(); init_bucket_endpoint_middleware(); __name(validateBucketNameMiddleware, "validateBucketNameMiddleware"); validateBucketNameMiddlewareOptions = { step: "initialize", tags: ["VALIDATE_BUCKET_NAME"], name: "validateBucketNameMiddleware", override: true }; getValidateBucketNamePlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.add(validateBucketNameMiddleware(options), validateBucketNameMiddlewareOptions); clientStack.addRelativeTo(bucketEndpointMiddleware(options), bucketEndpointMiddlewareOptions); }, "applyToStack") }), "getValidateBucketNamePlugin"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js var ProtocolLib; var init_ProtocolLib = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js"() { init_client(); init_schema(); ProtocolLib = class { static { __name(this, "ProtocolLib"); } queryCompat; errorRegistry; constructor(queryCompat = false) { this.queryCompat = queryCompat; } resolveRestContentType(defaultContentType, inputSchema) { const members2 = inputSchema.getMemberSchemas(); const httpPayloadMember = Object.values(members2).find((m3) => { return !!m3.getMergedTraits().httpPayload; }); if (httpPayloadMember) { const mediaType = httpPayloadMember.getMergedTraits().mediaType; if (mediaType) { return mediaType; } else if (httpPayloadMember.isStringSchema()) { return "text/plain"; } else if (httpPayloadMember.isBlobSchema()) { return "application/octet-stream"; } else { return defaultContentType; } } else if (!inputSchema.isUnitSchema()) { const hasBody = Object.values(members2).find((m3) => { const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m3.getMergedTraits(); const noPrefixHeaders = httpPrefixHeaders === void 0; return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && noPrefixHeaders; }); if (hasBody) { return defaultContentType; } } } async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) { let errorName = errorIdentifier; if (errorIdentifier.includes("#")) { [, errorName] = errorIdentifier.split("#"); } const errorMetadata = { $metadata: metadata, $fault: response.statusCode < 500 ? "client" : "server" }; if (!this.errorRegistry) { throw new Error("@aws-sdk/core/protocols - error handler not initialized."); } try { const errorSchema = getErrorSchema?.(this.errorRegistry, errorName) ?? this.errorRegistry.getSchema(errorIdentifier); return { errorSchema, errorMetadata }; } catch (e5) { dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError"; const synthetic = this.errorRegistry; const baseExceptionSchema = synthetic.getBaseException(); if (baseExceptionSchema) { const ErrorCtor = synthetic.getErrorCtor(baseExceptionSchema) ?? Error; throw this.decorateServiceException(Object.assign(new ErrorCtor({ name: errorName }), errorMetadata), dataObject); } const d5 = dataObject; const message = d5?.message ?? d5?.Message ?? d5?.Error?.Message ?? d5?.Error?.message; throw this.decorateServiceException(Object.assign(new Error(message), { name: errorName }, errorMetadata), dataObject); } } compose(composite, errorIdentifier, defaultNamespace) { let namespace = defaultNamespace; if (errorIdentifier.includes("#")) { [namespace] = errorIdentifier.split("#"); } const staticRegistry = TypeRegistry.for(namespace); const defaultSyntheticRegistry = TypeRegistry.for("smithy.ts.sdk.synthetic." + defaultNamespace); composite.copyFrom(staticRegistry); composite.copyFrom(defaultSyntheticRegistry); this.errorRegistry = composite; } decorateServiceException(exception, additions = {}) { if (this.queryCompat) { const msg = exception.Message ?? additions.Message; const error62 = decorateServiceException(exception, additions); if (msg) { error62.message = msg; } const errorObj = error62.Error ?? {}; errorObj.Type = error62.Error?.Type; errorObj.Code = error62.Error?.Code; errorObj.Message = error62.Error?.message ?? error62.Error?.Message ?? msg; error62.Error = errorObj; const reqId = error62.$metadata.requestId; if (reqId) { error62.RequestId = reqId; } return error62; } return decorateServiceException(exception, additions); } setQueryCompatError(output2, response) { const queryErrorHeader = response.headers?.["x-amzn-query-error"]; if (output2 !== void 0 && queryErrorHeader != null) { const [Code, Type] = queryErrorHeader.split(";"); const keys = Object.keys(output2); const Error2 = { Code, Type }; output2.Code = Code; output2.Type = Type; for (let i5 = 0; i5 < keys.length; i5++) { const k5 = keys[i5]; Error2[k5 === "message" ? "Message" : k5] = output2[k5]; } delete Error2.__type; output2.Error = Error2; } } queryCompatOutput(queryCompatErrorData, errorData) { if (queryCompatErrorData.Error) { errorData.Error = queryCompatErrorData.Error; } if (queryCompatErrorData.Type) { errorData.Type = queryCompatErrorData.Type; } if (queryCompatErrorData.Code) { errorData.Code = queryCompatErrorData.Code; } } findQueryCompatibleError(registry2, errorName) { try { return registry2.getSchema(errorName); } catch (e5) { return registry2.find((schema2) => NormalizedSchema.of(schema2).getMergedTraits().awsQueryError?.[0] === errorName); } } }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js var AwsRestJsonProtocol; var init_AwsRestJsonProtocol = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js"() { init_protocols(); init_schema(); init_ProtocolLib(); AwsRestJsonProtocol = class extends HttpBindingProtocol { static { __name(this, "AwsRestJsonProtocol"); } serializer; deserializer; codec; mixin = new ProtocolLib(); constructor({ defaultNamespace, errorTypeRegistries: errorTypeRegistries5, jsonCodec }) { super({ defaultNamespace, errorTypeRegistries: errorTypeRegistries5 }); const settings = { timestampFormat: { useTrait: true, default: 7 }, httpBindings: true, jsonName: true }; this.codec = jsonCodec ?? new JsonCodec2(settings); this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings); this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings); } getShapeId() { return "aws.protocols#restJson1"; } getPayloadCodec() { return this.codec; } setSerdeContext(serdeContext) { this.codec.setSerdeContext(serdeContext); super.setSerdeContext(serdeContext); } async serializeRequest(operationSchema, input2, context) { const request = await super.serializeRequest(operationSchema, input2, context); const inputSchema = NormalizedSchema.of(operationSchema.input); if (!request.headers["content-type"]) { const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema); if (contentType) { request.headers["content-type"] = contentType; } } if (request.body == null && request.headers["content-type"] === this.getDefaultContentType()) { request.body = "{}"; } return request; } async deserializeResponse(operationSchema, context, response) { const output2 = await super.deserializeResponse(operationSchema, context, response); const outputSchema = NormalizedSchema.of(operationSchema.output); for (const [name2, member] of outputSchema.structIterator()) { if (member.getMemberTraits().httpPayload && !(name2 in output2)) { output2[name2] = null; } } return output2; } async handleError(operationSchema, context, response, dataObject, metadata) { const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown"; this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace); const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata); const ns = NormalizedSchema.of(errorSchema); const message = dataObject.message ?? dataObject.Message ?? "UnknownError"; const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error; const exception = new ErrorCtor({}); await this.deserializeHttpMessage(errorSchema, context, response, dataObject); const output2 = {}; const errorDeserializer = this.codec.createDeserializer(); for (const [name2, member] of ns.structIterator()) { const target = member.getMergedTraits().jsonName ?? name2; output2[name2] = errorDeserializer.readObject(member, dataObject[target]); } throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, { $fault: ns.getMergedTraits().error, message }, output2), dataObject); } getDefaultContentType() { return "application/json"; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.41/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js var require_dist_cjs4 = __commonJS({ "../../node_modules/.pnpm/@aws-sdk+xml-builder@3.972.41/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js"(exports) { var ATTR_ESCAPE_RE = /[&<>"]/g; var ATTR_ESCAPE_MAP = { "&": "&", "<": "<", ">": ">", '"': """ }; function escapeAttribute(value) { return value.replace(ATTR_ESCAPE_RE, (ch) => ATTR_ESCAPE_MAP[ch]); } __name(escapeAttribute, "escapeAttribute"); var ELEMENT_ESCAPE_RE = /[&"'<>\r\n\u0085\u2028]/g; var ELEMENT_ESCAPE_MAP = { "&": "&", '"': """, "'": "'", "<": "<", ">": ">", "\r": " ", "\n": " ", "\x85": "…", "\u2028": "
" }; function escapeElement(value) { return value.replace(ELEMENT_ESCAPE_RE, (ch) => ELEMENT_ESCAPE_MAP[ch]); } __name(escapeElement, "escapeElement"); var XmlText2 = class { static { __name(this, "XmlText"); } value; constructor(value) { this.value = value; } toString() { return escapeElement("" + this.value); } }; var XmlNode2 = class _XmlNode { static { __name(this, "XmlNode"); } name; children; attributes = {}; static of(name2, childText, withName) { const node2 = new _XmlNode(name2); if (childText !== void 0) { node2.addChildNode(new XmlText2(childText)); } if (withName !== void 0) { node2.withName(withName); } return node2; } constructor(name2, children = []) { this.name = name2; this.children = children; } withName(name2) { this.name = name2; return this; } addAttribute(name2, value) { this.attributes[name2] = value; return this; } addChildNode(child) { this.children.push(child); return this; } removeAttribute(name2) { delete this.attributes[name2]; return this; } n(name2) { this.name = name2; return this; } c(child) { this.children.push(child); return this; } a(name2, value) { if (value != null) { this.attributes[name2] = value; } return this; } cc(input2, field, withName = field) { if (input2[field] != null) { const node2 = _XmlNode.of(field, input2[field]).withName(withName); this.c(node2); } } l(input2, listName, memberName, valueProvider) { if (input2[listName] != null) { const nodes5 = valueProvider(); nodes5.map((node2) => { node2.withName(memberName); this.c(node2); }); } } lc(input2, listName, memberName, valueProvider) { if (input2[listName] != null) { const nodes5 = valueProvider(); const containerNode = new _XmlNode(memberName); nodes5.map((node2) => { containerNode.c(node2); }); this.c(containerNode); } } toString() { const hasChildren = Boolean(this.children.length); let xmlText = `<${this.name}`; const attributes = this.attributes; for (const attributeName of Object.keys(attributes)) { const attribute = attributes[attributeName]; if (attribute != null) { xmlText += ` ${attributeName}="${escapeAttribute("" + attribute)}"`; } } return xmlText += !hasChildren ? "/>" : `>${this.children.map((c5) => c5.toString()).join("")}`; } }; function writeKey3(obj) { Object.defineProperty(obj, "__proto__", { value: void 0, writable: true, enumerable: true, configurable: true }); } __name(writeKey3, "writeKey"); function parseXML2(xml) { const state2 = new AwsXmlParser(xml); return state2.parse(); } __name(parseXML2, "parseXML"); var AwsXmlParser = class _AwsXmlParser { static { __name(this, "AwsXmlParser"); } x; i = 0; z; constructor(x) { this.x = x; this.x = x.replace(/\r\n?/g, "\n"); this.z = this.x.length; } parse() { const p3 = this; const { z: z2 } = p3; while (p3.i < z2) { p3.trim(); if (p3.i >= z2) { break; } if (p3.isNext(""); p3.trim(); } else if (p3.isNext(""); p3.trim(); } else if (p3.isNext("/".includes(p3.x[p3.i])) { tag += p3.x[p3.i++]; } let hasAttrs = false; const attrs = {}; while (p3.i < p3.z) { p3.trim(); if (">/".includes(p3.x[p3.i])) { break; } let name2 = ""; while (p3.i < p3.z && !"= \r\n>/?".includes(p3.x[p3.i])) { name2 += p3.x[p3.i++]; } p3.trim(); if (p3.x[p3.i] !== "=") { break; } ++p3.i; p3.trim(); if (name2 === "__proto__") { writeKey3(attrs); } attrs[name2] = p3.readAttrValue(); hasAttrs = true; } if (p3.i >= p3.z) { throw new Error("@aws-sdk XML parse error: unexpected end of input."); } if (p3.x[p3.i] === "/") { ++p3.i; if (p3.i >= p3.z || p3.x[p3.i] !== ">") { throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag."); } ++p3.i; return { tag, value: hasAttrs ? attrs : "" }; } if (p3.x[p3.i] !== ">") { throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag."); } ++p3.i; const textParts = []; const childTags = []; let hasElementChild = false; while (p3.i < p3.z) { if (p3.isNext(""); } else if (p3.isNext("")); } else if (p3.isNext(""); } else { hasElementChild = true; childTags.push(p3.parseTag()); } } else { let text2 = ""; while (p3.i < p3.z && p3.x[p3.i] !== "<") { text2 += p3.x[p3.i++]; } textParts.push(p3.decodeEntities(text2)); } } if (!p3.isNext(".`); } p3.i += 2; const closeTag = p3.readTo(">").trim(); if (closeTag !== tag) { throw new Error(`@aws-sdk XML parse error: mismatched tags <${tag}> and .`); } if (!hasAttrs && textParts.length === 0 && !hasElementChild) { return { tag, value: "" }; } if (!hasAttrs && !hasElementChild) { const text2 = textParts.length === 1 ? textParts[0] : textParts.join(""); if (text2.trim() === "" && text2.includes("\n")) { return { tag, value: "" }; } return { tag, value: text2 }; } const obj = {}; for (const text2 of textParts) { if (text2.trim() === "" && text2.includes("\n")) { continue; } obj["#text"] = "#text" in obj ? obj["#text"] + text2 : text2; } for (const child of childTags) { if (child.tag === "__proto__") { writeKey3(obj); } if (child.tag in obj) { if (Array.isArray(obj[child.tag])) { obj[child.tag].push(child.value); } else { obj[child.tag] = [obj[child.tag], child.value]; } } else { obj[child.tag] = child.value; } } for (const [k5, v] of Object.entries(attrs)) { if (k5 === "__proto__") { writeKey3(obj); } obj[k5] = v; } return { tag, value: obj }; } static ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', apos: "'" }; skipDoctype() { const p3 = this; p3.i += 9; let depth = 0; while (p3.i < p3.z) { const c5 = p3.x[p3.i]; if (c5 === "[") { ++depth; } else if (c5 === "]") { --depth; } else if (c5 === ">" && depth === 0) { ++p3.i; return; } ++p3.i; } throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE."); } decodeEntities(s2) { return s2.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g, (_, hex3, dec, named) => { if (hex3) { return String.fromCharCode(parseInt(hex3, 16)); } if (dec) { return String.fromCharCode(parseInt(dec, 10)); } return _AwsXmlParser.ENTITIES[named] ?? ""; }); } }; exports.XmlNode = XmlNode2; exports.XmlText = XmlText2; exports.parseXML = parseXML2; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js var SerdeContextConfig2; var init_ConfigurableSerdeContext2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js"() { SerdeContextConfig2 = class { static { __name(this, "SerdeContextConfig"); } serdeContext; setSerdeContext(serdeContext) { this.serdeContext = serdeContext; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js var UnionSerde2; var init_UnionSerde2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js"() { UnionSerde2 = class { static { __name(this, "UnionSerde"); } from; to; keys; constructor(from, to) { this.from = from; this.to = to; const keys = Object.keys(this.from); const set2 = new Set(keys); set2.delete("__type"); this.keys = set2; } mark(key) { this.keys.delete(key); } hasUnknown() { return this.keys.size === 1 && Object.keys(this.to).length === 0; } writeUnknown() { if (this.hasUnknown()) { const k5 = this.keys.values().next().value; const v = this.from[k5]; this.to.$unknown = [k5, v]; } } }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/writeKey.js function writeKey2(obj) { Object.defineProperty(obj, "__proto__", { value: void 0, writable: true, enumerable: true, configurable: true }); } var init_writeKey2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/writeKey.js"() { __name(writeKey2, "writeKey"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js var import_xml_builder, XmlShapeDeserializer; var init_XmlShapeDeserializer = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js"() { import_xml_builder = __toESM(require_dist_cjs4()); init_client(); init_protocols(); init_schema(); init_serde(); init_ConfigurableSerdeContext2(); init_UnionSerde2(); init_writeKey2(); XmlShapeDeserializer = class extends SerdeContextConfig2 { static { __name(this, "XmlShapeDeserializer"); } settings; stringDeserializer; constructor(settings) { super(); this.settings = settings; this.stringDeserializer = new FromStringShapeDeserializer(settings); } setSerdeContext(serdeContext) { this.serdeContext = serdeContext; this.stringDeserializer.setSerdeContext(serdeContext); } read(schema2, bytes, key) { const ns = NormalizedSchema.of(schema2); const memberSchemas = ns.getMemberSchemas(); const isEventPayload = ns.isStructSchema() && ns.isMemberSchema() && !!Object.values(memberSchemas).find((memberNs) => { return !!memberNs.getMemberTraits().eventPayload; }); if (isEventPayload) { const output2 = {}; const memberName = Object.keys(memberSchemas)[0]; const eventMemberSchema = memberSchemas[memberName]; if (eventMemberSchema.isBlobSchema()) { output2[memberName] = bytes; } else { output2[memberName] = this.read(memberSchemas[memberName], bytes); } return output2; } const xmlString = (this.serdeContext?.utf8Encoder ?? toUtf8)(bytes); const parsedObject = this.parseXml(xmlString); return this.readSchema(schema2, key ? parsedObject[key] : parsedObject); } readSchema(_schema, value) { const ns = NormalizedSchema.of(_schema); if (ns.isUnitSchema()) { return; } const traits = ns.getMergedTraits(); if (ns.isListSchema() && !Array.isArray(value)) { return this.readSchema(ns, [value]); } if (value == null) { return value; } if (typeof value === "object") { const flat = !!traits.xmlFlattened; if (ns.isListSchema()) { const listValue = ns.getValueSchema(); const buffer2 = []; const sourceKey = listValue.getMergedTraits().xmlName ?? "member"; const source = flat ? value : (value[0] ?? value)[sourceKey]; if (source == null) { return buffer2; } const sourceArray = Array.isArray(source) ? source : [source]; for (const v of sourceArray) { buffer2.push(this.readSchema(listValue, v)); } return buffer2; } const buffer = {}; if (ns.isMapSchema()) { const keyNs = ns.getKeySchema(); const memberNs = ns.getValueSchema(); let entries; if (flat) { entries = Array.isArray(value) ? value : [value]; } else { entries = Array.isArray(value.entry) ? value.entry : [value.entry]; } const keyProperty = keyNs.getMergedTraits().xmlName ?? "key"; const valueProperty = memberNs.getMergedTraits().xmlName ?? "value"; for (const entry of entries) { const key = entry[keyProperty]; const value2 = entry[valueProperty]; if (key === "__proto__") { writeKey2(buffer); } buffer[key] = this.readSchema(memberNs, value2); } return buffer; } if (ns.isStructSchema()) { const union2 = ns.isUnionSchema(); let unionSerde; if (union2) { unionSerde = new UnionSerde2(value, buffer); } for (const [memberName, memberSchema] of ns.structIterator()) { const memberTraits = memberSchema.getMergedTraits(); const xmlObjectKey = !memberTraits.httpPayload ? memberSchema.getMemberTraits().xmlName ?? memberName : memberTraits.xmlName ?? memberSchema.getName(); if (union2) { unionSerde.mark(xmlObjectKey); } if (value[xmlObjectKey] != null) { buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]); } } if (union2) { unionSerde.writeUnknown(); } return buffer; } if (ns.isDocumentSchema()) { return value; } throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`); } if (ns.isListSchema()) { return []; } if (ns.isMapSchema() || ns.isStructSchema()) { return {}; } return this.stringDeserializer.read(ns, value); } parseXml(xml) { if (xml.length) { let parsedObj; try { parsedObj = (0, import_xml_builder.parseXML)(xml); } catch (e5) { if (e5 && typeof e5 === "object") { Object.defineProperty(e5, "$responseBodyText", { value: xml }); } throw e5; } const textNodeName = "#text"; const key = Object.keys(parsedObj)[0]; const parsedObjToReturn = parsedObj[key]; if (parsedObjToReturn[textNodeName]) { parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; delete parsedObjToReturn[textNodeName]; } return getValueFromTextNode(parsedObjToReturn); } return {}; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js var QueryShapeSerializer; var init_QueryShapeSerializer = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js"() { init_protocols(); init_schema(); init_serde(); init_serde(); init_ConfigurableSerdeContext2(); QueryShapeSerializer = class extends SerdeContextConfig2 { static { __name(this, "QueryShapeSerializer"); } settings; buffer; constructor(settings) { super(); this.settings = settings; } write(schema2, value, prefix = "") { if (this.buffer === void 0) { this.buffer = ""; } const ns = NormalizedSchema.of(schema2); if (prefix && !prefix.endsWith(".")) { prefix += "."; } if (ns.isBlobSchema()) { if (typeof value === "string" || value instanceof Uint8Array) { this.writeKey(prefix); this.writeValue((this.serdeContext?.base64Encoder ?? toBase64)(value)); } } else if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isStringSchema()) { if (value != null) { this.writeKey(prefix); this.writeValue(String(value)); } else if (ns.isIdempotencyToken()) { this.writeKey(prefix); this.writeValue(generateIdempotencyToken()); } } else if (ns.isBigIntegerSchema()) { if (value != null) { this.writeKey(prefix); this.writeValue(String(value)); } } else if (ns.isBigDecimalSchema()) { if (value != null) { this.writeKey(prefix); this.writeValue(value instanceof NumericValue ? value.string : String(value)); } } else if (ns.isTimestampSchema()) { if (value instanceof Date) { this.writeKey(prefix); const format = determineTimestampFormat(ns, this.settings); switch (format) { case 5: this.writeValue(value.toISOString().replace(".000Z", "Z")); break; case 6: this.writeValue(dateToUtcString(value)); break; case 7: this.writeValue(String(value.getTime() / 1e3)); break; } } } else if (ns.isDocumentSchema()) { if (Array.isArray(value)) { this.write(64 | 15, value, prefix); } else if (value instanceof Date) { this.write(4, value, prefix); } else if (value instanceof Uint8Array) { this.write(21, value, prefix); } else if (value && typeof value === "object") { this.write(128 | 15, value, prefix); } else { this.writeKey(prefix); this.writeValue(String(value)); } } else if (ns.isListSchema()) { if (Array.isArray(value)) { if (value.length === 0) { if (this.settings.serializeEmptyLists) { this.writeKey(prefix); this.writeValue(""); } } else { const member = ns.getValueSchema(); const flat = this.settings.flattenLists || ns.getMergedTraits().xmlFlattened; let i5 = 1; for (const item of value) { if (item == null) { continue; } const traits = member.getMergedTraits(); const suffix = this.getKey("member", traits.xmlName, traits.ec2QueryName); const key = flat ? `${prefix}${i5}` : `${prefix}${suffix}.${i5}`; this.write(member, item, key); ++i5; } } } } else if (ns.isMapSchema()) { if (value && typeof value === "object") { const keySchema = ns.getKeySchema(); const memberSchema = ns.getValueSchema(); const flat = ns.getMergedTraits().xmlFlattened; let i5 = 1; for (const k5 in value) { const v = value[k5]; if (v == null) { continue; } const keyTraits = keySchema.getMergedTraits(); const keySuffix = this.getKey("key", keyTraits.xmlName, keyTraits.ec2QueryName); const key = flat ? `${prefix}${i5}.${keySuffix}` : `${prefix}entry.${i5}.${keySuffix}`; const valTraits = memberSchema.getMergedTraits(); const valueSuffix = this.getKey("value", valTraits.xmlName, valTraits.ec2QueryName); const valueKey = flat ? `${prefix}${i5}.${valueSuffix}` : `${prefix}entry.${i5}.${valueSuffix}`; this.write(keySchema, k5, key); this.write(memberSchema, v, valueKey); ++i5; } } } else if (ns.isStructSchema()) { if (value && typeof value === "object") { let didWriteMember = false; for (const [memberName, member] of ns.structIterator()) { if (value[memberName] == null && !member.isIdempotencyToken()) { continue; } const traits = member.getMergedTraits(); const suffix = this.getKey(memberName, traits.xmlName, traits.ec2QueryName, "struct"); const key = `${prefix}${suffix}`; this.write(member, value[memberName], key); didWriteMember = true; } if (!didWriteMember && ns.isUnionSchema()) { const { $unknown } = value; if (Array.isArray($unknown)) { const [k5, v] = $unknown; const key = `${prefix}${k5}`; this.write(15, v, key); } } } } else if (ns.isUnitSchema()) { } else { throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(true)}`); } } flush() { if (this.buffer === void 0) { throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer."); } const str = this.buffer; delete this.buffer; return str; } getKey(memberName, xmlName, ec2QueryName, keySource) { const { ec2, capitalizeKeys } = this.settings; if (ec2 && ec2QueryName) { return ec2QueryName; } const key = xmlName ?? memberName; if (capitalizeKeys && keySource === "struct") { return key[0].toUpperCase() + key.slice(1); } return key; } writeKey(key) { if (key.endsWith(".")) { key = key.slice(0, key.length - 1); } this.buffer += `&${extendedEncodeURIComponent(key)}=`; } writeValue(value) { this.buffer += extendedEncodeURIComponent(value); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js var AwsQueryProtocol; var init_AwsQueryProtocol = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js"() { init_protocols(); init_schema(); init_ProtocolLib(); init_XmlShapeDeserializer(); init_QueryShapeSerializer(); AwsQueryProtocol = class extends RpcProtocol { static { __name(this, "AwsQueryProtocol"); } options; serializer; deserializer; mixin = new ProtocolLib(); constructor(options) { super({ defaultNamespace: options.defaultNamespace, errorTypeRegistries: options.errorTypeRegistries }); this.options = options; const settings = { timestampFormat: { useTrait: true, default: 5 }, httpBindings: false, xmlNamespace: options.xmlNamespace, serviceNamespace: options.defaultNamespace, serializeEmptyLists: true }; this.serializer = new QueryShapeSerializer(settings); this.deserializer = new XmlShapeDeserializer(settings); } getShapeId() { return "aws.protocols#awsQuery"; } setSerdeContext(serdeContext) { this.serializer.setSerdeContext(serdeContext); this.deserializer.setSerdeContext(serdeContext); } getPayloadCodec() { throw new Error("AWSQuery protocol has no payload codec."); } async serializeRequest(operationSchema, input2, context) { const request = await super.serializeRequest(operationSchema, input2, context); if (!request.path.endsWith("/")) { request.path += "/"; } request.headers["content-type"] = "application/x-www-form-urlencoded"; if (deref(operationSchema.input) === "unit" || !request.body) { request.body = ""; } const action = operationSchema.name.split("#")[1] ?? operationSchema.name; request.body = `Action=${action}&Version=${this.options.version}` + request.body; if (request.body.endsWith("&")) { request.body = request.body.slice(-1); } return request; } async deserializeResponse(operationSchema, context, response) { const deserializer = this.deserializer; const ns = NormalizedSchema.of(operationSchema.output); const dataObject = {}; if (response.statusCode >= 300) { const bytes2 = await collectBody(response.body, context); if (bytes2.byteLength > 0) { Object.assign(dataObject, await deserializer.read(15, bytes2)); } await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response)); } for (const header in response.headers) { const value = response.headers[header]; delete response.headers[header]; response.headers[header.toLowerCase()] = value; } const shortName = operationSchema.name.split("#")[1] ?? operationSchema.name; const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? shortName + "Result" : void 0; const bytes = await collectBody(response.body, context); if (bytes.byteLength > 0) { Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey)); } dataObject.$metadata = this.deserializeMetadata(response); return dataObject; } useNestedResult() { return true; } async handleError(operationSchema, context, response, dataObject, metadata) { const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown"; this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace); const errorData = this.loadQueryError(dataObject) ?? {}; const message = this.loadQueryErrorMessage(dataObject); errorData.message = message; errorData.Error = { Type: errorData.Type, Code: errorData.Code, Message: message }; const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, this.mixin.findQueryCompatibleError); const ns = NormalizedSchema.of(errorSchema); const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error; const exception = new ErrorCtor({}); const output2 = { Type: errorData.Error.Type, Code: errorData.Error.Code, Error: errorData.Error }; for (const [name2, member] of ns.structIterator()) { const target = member.getMergedTraits().xmlName ?? name2; const value = errorData[target] ?? dataObject[target]; output2[name2] = this.deserializer.readSchema(member, value); } throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, { $fault: ns.getMergedTraits().error, message }, output2), dataObject); } loadQueryErrorCode(output2, data) { const code = (data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error)?.Code; if (code !== void 0) { return code; } if (output2.statusCode == 404) { return "NotFound"; } } loadQueryError(data) { return data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error; } loadQueryErrorMessage(data) { const errorData = this.loadQueryError(data); return errorData?.message ?? errorData?.Message ?? data.message ?? data.Message ?? "Unknown"; } getDefaultContentType() { return "application/x-www-form-urlencoded"; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js var loadRestXmlErrorCode; var init_parseXmlBody = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js"() { loadRestXmlErrorCode = /* @__PURE__ */ __name((output2, data) => { if (data?.Error?.Code !== void 0) { return data.Error.Code; } if (data?.Code !== void 0) { return data.Code; } if (output2.statusCode == 404) { return "NotFound"; } }, "loadRestXmlErrorCode"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js var import_xml_builder2, XmlShapeSerializer; var init_XmlShapeSerializer = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js"() { import_xml_builder2 = __toESM(require_dist_cjs4()); init_protocols(); init_schema(); init_serde(); init_serde(); init_ConfigurableSerdeContext2(); XmlShapeSerializer = class extends SerdeContextConfig2 { static { __name(this, "XmlShapeSerializer"); } settings; stringBuffer; byteBuffer; buffer; constructor(settings) { super(); this.settings = settings; } write(schema2, value) { const ns = NormalizedSchema.of(schema2); if (ns.isStringSchema() && typeof value === "string") { this.stringBuffer = value; } else if (ns.isBlobSchema()) { this.byteBuffer = "byteLength" in value ? value : (this.serdeContext?.base64Decoder ?? fromBase64)(value); } else { this.buffer = this.writeStruct(ns, value, void 0); const traits = ns.getMergedTraits(); if (traits.httpPayload && !traits.xmlName) { this.buffer.withName(ns.getName()); } } } flush() { if (this.byteBuffer !== void 0) { const bytes = this.byteBuffer; delete this.byteBuffer; return bytes; } if (this.stringBuffer !== void 0) { const str = this.stringBuffer; delete this.stringBuffer; return str; } const buffer = this.buffer; if (this.settings.xmlNamespace) { if (!buffer?.attributes?.["xmlns"]) { buffer.addAttribute("xmlns", this.settings.xmlNamespace); } } delete this.buffer; return buffer.toString(); } writeStruct(ns, value, parentXmlns) { const traits = ns.getMergedTraits(); const name2 = ns.isMemberSchema() && !traits.httpPayload ? ns.getMemberTraits().xmlName ?? ns.getMemberName() : traits.xmlName ?? ns.getName(); if (!name2 || !ns.isStructSchema()) { throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${ns.getName(true)}.`); } const structXmlNode = import_xml_builder2.XmlNode.of(name2); const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns); for (const [memberName, memberSchema] of ns.structIterator()) { const val = value[memberName]; if (val != null || memberSchema.isIdempotencyToken()) { if (memberSchema.getMergedTraits().xmlAttribute) { structXmlNode.addAttribute(memberSchema.getMergedTraits().xmlName ?? memberName, this.writeSimple(memberSchema, val)); continue; } if (memberSchema.isListSchema()) { this.writeList(memberSchema, val, structXmlNode, xmlns); } else if (memberSchema.isMapSchema()) { this.writeMap(memberSchema, val, structXmlNode, xmlns); } else if (memberSchema.isStructSchema()) { structXmlNode.addChildNode(this.writeStruct(memberSchema, val, xmlns)); } else { const memberNode = import_xml_builder2.XmlNode.of(memberSchema.getMergedTraits().xmlName ?? memberSchema.getMemberName()); this.writeSimpleInto(memberSchema, val, memberNode, xmlns); structXmlNode.addChildNode(memberNode); } } } const { $unknown } = value; if ($unknown && ns.isUnionSchema() && Array.isArray($unknown) && Object.keys(value).length === 1) { const [k5, v] = $unknown; const node2 = import_xml_builder2.XmlNode.of(k5); if (typeof v !== "string") { if (value instanceof import_xml_builder2.XmlNode || value instanceof import_xml_builder2.XmlText) { structXmlNode.addChildNode(value); } else { throw new Error(`@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`); } } this.writeSimpleInto(0, v, node2, xmlns); structXmlNode.addChildNode(node2); } if (xmlns) { structXmlNode.addAttribute(xmlnsAttr, xmlns); } return structXmlNode; } writeList(listMember, array2, container, parentXmlns) { if (!listMember.isMemberSchema()) { throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${listMember.getName(true)}`); } const listTraits = listMember.getMergedTraits(); const listValueSchema = listMember.getValueSchema(); const listValueTraits = listValueSchema.getMergedTraits(); const sparse = !!listValueTraits.sparse; const flat = !!listTraits.xmlFlattened; const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(listMember, parentXmlns); const writeItem = /* @__PURE__ */ __name((container2, value) => { if (listValueSchema.isListSchema()) { this.writeList(listValueSchema, Array.isArray(value) ? value : [value], container2, xmlns); } else if (listValueSchema.isMapSchema()) { this.writeMap(listValueSchema, value, container2, xmlns); } else if (listValueSchema.isStructSchema()) { const struct = this.writeStruct(listValueSchema, value, xmlns); container2.addChildNode(struct.withName(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member")); } else { const listItemNode = import_xml_builder2.XmlNode.of(flat ? listTraits.xmlName ?? listMember.getMemberName() : listValueTraits.xmlName ?? "member"); this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns); container2.addChildNode(listItemNode); } }, "writeItem"); if (flat) { for (const value of array2) { if (sparse || value != null) { writeItem(container, value); } } } else { const listNode = import_xml_builder2.XmlNode.of(listTraits.xmlName ?? listMember.getMemberName()); if (xmlns) { listNode.addAttribute(xmlnsAttr, xmlns); } for (const value of array2) { if (sparse || value != null) { writeItem(listNode, value); } } container.addChildNode(listNode); } } writeMap(mapMember, map2, container, parentXmlns, containerIsMap = false) { if (!mapMember.isMemberSchema()) { throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${mapMember.getName(true)}`); } const mapTraits = mapMember.getMergedTraits(); const mapKeySchema = mapMember.getKeySchema(); const mapKeyTraits = mapKeySchema.getMergedTraits(); const keyTag = mapKeyTraits.xmlName ?? "key"; const mapValueSchema = mapMember.getValueSchema(); const mapValueTraits = mapValueSchema.getMergedTraits(); const valueTag = mapValueTraits.xmlName ?? "value"; const sparse = !!mapValueTraits.sparse; const flat = !!mapTraits.xmlFlattened; const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(mapMember, parentXmlns); const addKeyValue = /* @__PURE__ */ __name((entry, key, val) => { const keyNode = import_xml_builder2.XmlNode.of(keyTag, key); const [keyXmlnsAttr, keyXmlns] = this.getXmlnsAttribute(mapKeySchema, xmlns); if (keyXmlns) { keyNode.addAttribute(keyXmlnsAttr, keyXmlns); } entry.addChildNode(keyNode); let valueNode = import_xml_builder2.XmlNode.of(valueTag); if (mapValueSchema.isListSchema()) { this.writeList(mapValueSchema, val, valueNode, xmlns); } else if (mapValueSchema.isMapSchema()) { this.writeMap(mapValueSchema, val, valueNode, xmlns, true); } else if (mapValueSchema.isStructSchema()) { valueNode = this.writeStruct(mapValueSchema, val, xmlns); } else { this.writeSimpleInto(mapValueSchema, val, valueNode, xmlns); } entry.addChildNode(valueNode); }, "addKeyValue"); if (flat) { for (const key in map2) { const val = map2[key]; if (sparse || val != null) { const entry = import_xml_builder2.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName()); addKeyValue(entry, key, val); container.addChildNode(entry); } } } else { let mapNode; if (!containerIsMap) { mapNode = import_xml_builder2.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName()); if (xmlns) { mapNode.addAttribute(xmlnsAttr, xmlns); } container.addChildNode(mapNode); } for (const key in map2) { const val = map2[key]; if (sparse || val != null) { const entry = import_xml_builder2.XmlNode.of("entry"); addKeyValue(entry, key, val); (containerIsMap ? container : mapNode).addChildNode(entry); } } } } writeSimple(_schema, value) { if (null === value) { throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value."); } const ns = NormalizedSchema.of(_schema); let nodeContents = null; if (value && typeof value === "object") { if (ns.isBlobSchema()) { nodeContents = (this.serdeContext?.base64Encoder ?? toBase64)(value); } else if (ns.isTimestampSchema() && value instanceof Date) { const format = determineTimestampFormat(ns, this.settings); switch (format) { case 5: nodeContents = value.toISOString().replace(".000Z", "Z"); break; case 6: nodeContents = dateToUtcString(value); break; case 7: nodeContents = String(value.getTime() / 1e3); break; default: console.warn("Missing timestamp format, using http date", value); nodeContents = dateToUtcString(value); break; } } else if (ns.isBigDecimalSchema() && value) { if (value instanceof NumericValue) { return value.string; } return String(value); } else if (ns.isMapSchema() || ns.isListSchema()) { throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."); } else { throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${ns.getName(true)}`); } } if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) { nodeContents = String(value); } if (ns.isStringSchema()) { if (value === void 0 && ns.isIdempotencyToken()) { nodeContents = generateIdempotencyToken(); } else { nodeContents = String(value); } } if (nodeContents === null) { throw new Error(`Unhandled schema-value pair ${ns.getName(true)}=${value}`); } return nodeContents; } writeSimpleInto(_schema, value, into, parentXmlns) { const nodeContents = this.writeSimple(_schema, value); const ns = NormalizedSchema.of(_schema); const content = new import_xml_builder2.XmlText(nodeContents); const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns); if (xmlns) { into.addAttribute(xmlnsAttr, xmlns); } into.addChildNode(content); } getXmlnsAttribute(ns, parentXmlns) { const traits = ns.getMergedTraits(); const [prefix, xmlns] = traits.xmlNamespace ?? []; if (xmlns && xmlns !== parentXmlns) { return [prefix ? `xmlns:${prefix}` : "xmlns", xmlns]; } return [void 0, void 0]; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js var XmlCodec; var init_XmlCodec = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js"() { init_ConfigurableSerdeContext2(); init_XmlShapeDeserializer(); init_XmlShapeSerializer(); XmlCodec = class extends SerdeContextConfig2 { static { __name(this, "XmlCodec"); } settings; constructor(settings) { super(); this.settings = settings; } createSerializer() { const serializer = new XmlShapeSerializer(this.settings); serializer.setSerdeContext(this.serdeContext); return serializer; } createDeserializer() { const deserializer = new XmlShapeDeserializer(this.settings); deserializer.setSerdeContext(this.serdeContext); return deserializer; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js var AwsRestXmlProtocol; var init_AwsRestXmlProtocol = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js"() { init_protocols(); init_schema(); init_ProtocolLib(); init_parseXmlBody(); init_XmlCodec(); AwsRestXmlProtocol = class extends HttpBindingProtocol { static { __name(this, "AwsRestXmlProtocol"); } codec; serializer; deserializer; mixin = new ProtocolLib(); constructor(options) { super(options); const settings = { timestampFormat: { useTrait: true, default: 5 }, httpBindings: true, xmlNamespace: options.xmlNamespace, serviceNamespace: options.defaultNamespace }; this.codec = new XmlCodec(settings); this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings); this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings); } getPayloadCodec() { return this.codec; } getShapeId() { return "aws.protocols#restXml"; } async serializeRequest(operationSchema, input2, context) { const request = await super.serializeRequest(operationSchema, input2, context); const inputSchema = NormalizedSchema.of(operationSchema.input); if (!request.headers["content-type"]) { const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema); if (contentType) { request.headers["content-type"] = contentType; } } if (typeof request.body === "string" && request.headers["content-type"] === this.getDefaultContentType() && !request.body.startsWith("' + request.body; } return request; } async deserializeResponse(operationSchema, context, response) { return super.deserializeResponse(operationSchema, context, response); } async handleError(operationSchema, context, response, dataObject, metadata) { const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown"; this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace); if (dataObject.Error && typeof dataObject.Error === "object") { for (const key of Object.keys(dataObject.Error)) { dataObject[key] = dataObject.Error[key]; if (key.toLowerCase() === "message") { dataObject.message = dataObject.Error[key]; } } } if (dataObject.RequestId && !metadata.requestId) { metadata.requestId = dataObject.RequestId; } const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata); const ns = NormalizedSchema.of(errorSchema); const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "UnknownError"; const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error; const exception = new ErrorCtor({}); await this.deserializeHttpMessage(errorSchema, context, response, dataObject); const output2 = {}; const errorDeserializer = this.codec.createDeserializer(); for (const [name2, member] of ns.structIterator()) { const target = member.getMergedTraits().xmlName ?? name2; const value = dataObject.Error?.[target] ?? dataObject[target]; output2[name2] = errorDeserializer.readSchema(member, value); } throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, { $fault: ns.getMergedTraits().error, message }, output2), dataObject); } getDefaultContentType() { return "application/xml"; } hasUnstructuredPayloadBinding(ns) { for (const [, member] of ns.structIterator()) { if (member.getMergedTraits().httpPayload) { return !(member.isStructSchema() || member.isMapSchema() || member.isListSchema()); } } return false; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js var init_protocols2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js"() { init_AwsRestJsonProtocol(); init_AwsQueryProtocol(); init_AwsRestXmlProtocol(); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/protocol/S3RestXmlProtocol.js var S3RestXmlProtocol; var init_S3RestXmlProtocol = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/protocol/S3RestXmlProtocol.js"() { init_protocols2(); init_schema(); S3RestXmlProtocol = class extends AwsRestXmlProtocol { static { __name(this, "S3RestXmlProtocol"); } async serializeRequest(operationSchema, input2, context) { const request = await super.serializeRequest(operationSchema, input2, context); const ns = NormalizedSchema.of(operationSchema.input); const staticStructureSchema = ns.getSchema(); let bucketMemberIndex = 0; const requiredMemberCount = staticStructureSchema[6] ?? 0; if (input2 && typeof input2 === "object") { for (const [memberName, memberNs] of ns.structIterator()) { if (++bucketMemberIndex > requiredMemberCount) { break; } if (memberName === "Bucket") { if (!input2.Bucket && memberNs.getMergedTraits().httpLabel) { throw new Error(`No value provided for input HTTP label: Bucket.`); } break; } } } return request; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/NodeDisableMultiregionAccessPointConfigOptions.js var NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME, NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME, NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS; var init_NodeDisableMultiregionAccessPointConfigOptions = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/NodeDisableMultiregionAccessPointConfigOptions.js"() { init_config(); NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME = "AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS"; NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME = "s3_disable_multiregion_access_points"; NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS = { environmentVariableSelector: /* @__PURE__ */ __name((env3) => booleanSelector(env3, NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME, SelectorType.ENV), "environmentVariableSelector"), configFileSelector: /* @__PURE__ */ __name((profile) => booleanSelector(profile, NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME, SelectorType.CONFIG), "configFileSelector"), default: false }; } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/NodeUseArnRegionConfigOptions.js var NODE_USE_ARN_REGION_ENV_NAME, NODE_USE_ARN_REGION_INI_NAME, NODE_USE_ARN_REGION_CONFIG_OPTIONS; var init_NodeUseArnRegionConfigOptions = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/NodeUseArnRegionConfigOptions.js"() { init_config(); NODE_USE_ARN_REGION_ENV_NAME = "AWS_S3_USE_ARN_REGION"; NODE_USE_ARN_REGION_INI_NAME = "s3_use_arn_region"; NODE_USE_ARN_REGION_CONFIG_OPTIONS = { environmentVariableSelector: /* @__PURE__ */ __name((env3) => booleanSelector(env3, NODE_USE_ARN_REGION_ENV_NAME, SelectorType.ENV), "environmentVariableSelector"), configFileSelector: /* @__PURE__ */ __name((profile) => booleanSelector(profile, NODE_USE_ARN_REGION_INI_NAME, SelectorType.CONFIG), "configFileSelector"), default: void 0 }; } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint/bucketHostnameUtils.js var DOMAIN_PATTERN, IP_ADDRESS_PATTERN, DOTS_PATTERN, DOT_PATTERN, S3_HOSTNAME_PATTERN, S3_US_EAST_1_ALTNAME_PATTERN, AWS_PARTITION_SUFFIX, isBucketNameOptions, isDnsCompatibleBucketName, getRegionalSuffix, getSuffix, getSuffixForArnEndpoint, validateArnEndpointOptions, validateService, validateS3Service, validateOutpostService, validatePartition, validateRegion, validateRegionalClient, validateAccountId, validateDNSHostLabel, validateCustomEndpoint, getArnResources, validateNoDualstack, validateNoFIPS, validateMrapAlias; var init_bucketHostnameUtils = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint/bucketHostnameUtils.js"() { DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/; IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/; DOTS_PATTERN = /\.\./; DOT_PATTERN = /\./; S3_HOSTNAME_PATTERN = /^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./; S3_US_EAST_1_ALTNAME_PATTERN = /^s3(-external-1)?\.amazonaws\.com$/; AWS_PARTITION_SUFFIX = "amazonaws.com"; isBucketNameOptions = /* @__PURE__ */ __name((options) => typeof options.bucketName === "string", "isBucketNameOptions"); isDnsCompatibleBucketName = /* @__PURE__ */ __name((bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName), "isDnsCompatibleBucketName"); getRegionalSuffix = /* @__PURE__ */ __name((hostname3) => { const parts = hostname3.match(S3_HOSTNAME_PATTERN); return [parts[4], hostname3.replace(new RegExp(`^${parts[0]}`), "")]; }, "getRegionalSuffix"); getSuffix = /* @__PURE__ */ __name((hostname3) => S3_US_EAST_1_ALTNAME_PATTERN.test(hostname3) ? ["us-east-1", AWS_PARTITION_SUFFIX] : getRegionalSuffix(hostname3), "getSuffix"); getSuffixForArnEndpoint = /* @__PURE__ */ __name((hostname3) => S3_US_EAST_1_ALTNAME_PATTERN.test(hostname3) ? [hostname3.replace(`.${AWS_PARTITION_SUFFIX}`, ""), AWS_PARTITION_SUFFIX] : getRegionalSuffix(hostname3), "getSuffixForArnEndpoint"); validateArnEndpointOptions = /* @__PURE__ */ __name((options) => { if (options.pathStyleEndpoint) { throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN"); } if (options.accelerateEndpoint) { throw new Error("Accelerate endpoint is not supported when bucket is an ARN"); } if (!options.tlsCompatible) { throw new Error("HTTPS is required when bucket is an ARN"); } }, "validateArnEndpointOptions"); validateService = /* @__PURE__ */ __name((service) => { if (service !== "s3" && service !== "s3-outposts" && service !== "s3-object-lambda") { throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component"); } }, "validateService"); validateS3Service = /* @__PURE__ */ __name((service) => { if (service !== "s3") { throw new Error("Expect 's3' in Accesspoint ARN service component"); } }, "validateS3Service"); validateOutpostService = /* @__PURE__ */ __name((service) => { if (service !== "s3-outposts") { throw new Error("Expect 's3-posts' in Outpost ARN service component"); } }, "validateOutpostService"); validatePartition = /* @__PURE__ */ __name((partition2, options) => { if (partition2 !== options.clientPartition) { throw new Error(`Partition in ARN is incompatible, got "${partition2}" but expected "${options.clientPartition}"`); } }, "validatePartition"); validateRegion = /* @__PURE__ */ __name((region, options) => { }, "validateRegion"); validateRegionalClient = /* @__PURE__ */ __name((region) => { if (["s3-external-1", "aws-global"].includes(region)) { throw new Error(`Client region ${region} is not regional`); } }, "validateRegionalClient"); validateAccountId = /* @__PURE__ */ __name((accountId) => { if (!/[0-9]{12}/.exec(accountId)) { throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'"); } }, "validateAccountId"); validateDNSHostLabel = /* @__PURE__ */ __name((label, options = { tlsCompatible: true }) => { if (label.length >= 64 || !/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(label) || /(\d+\.){3}\d+/.test(label) || /[.-]{2}/.test(label) || options?.tlsCompatible && DOT_PATTERN.test(label)) { throw new Error(`Invalid DNS label ${label}`); } }, "validateDNSHostLabel"); validateCustomEndpoint = /* @__PURE__ */ __name((options) => { if (options.isCustomEndpoint) { if (options.dualstackEndpoint) throw new Error("Dualstack endpoint is not supported with custom endpoint"); if (options.accelerateEndpoint) throw new Error("Accelerate endpoint is not supported with custom endpoint"); } }, "validateCustomEndpoint"); getArnResources = /* @__PURE__ */ __name((resource) => { const delimiter = resource.includes(":") ? ":" : "/"; const [resourceType, ...rest] = resource.split(delimiter); if (resourceType === "accesspoint") { if (rest.length !== 1 || rest[0] === "") { throw new Error(`Access Point ARN should have one resource accesspoint${delimiter}{accesspointname}`); } return { accesspointName: rest[0] }; } else if (resourceType === "outpost") { if (!rest[0] || rest[1] !== "accesspoint" || !rest[2] || rest.length !== 3) { throw new Error(`Outpost ARN should have resource outpost${delimiter}{outpostId}${delimiter}accesspoint${delimiter}{accesspointName}`); } const [outpostId, _, accesspointName] = rest; return { outpostId, accesspointName }; } else { throw new Error(`ARN resource should begin with 'accesspoint${delimiter}' or 'outpost${delimiter}'`); } }, "getArnResources"); validateNoDualstack = /* @__PURE__ */ __name((dualstackEndpoint) => { }, "validateNoDualstack"); validateNoFIPS = /* @__PURE__ */ __name((useFipsEndpoint) => { if (useFipsEndpoint) throw new Error(`FIPS region is not supported with Outpost.`); }, "validateNoFIPS"); validateMrapAlias = /* @__PURE__ */ __name((name2) => { try { name2.split(".").forEach((label) => { validateDNSHostLabel(label); }); } catch (e5) { throw new Error(`"${name2}" is not a DNS compatible name.`); } }, "validateMrapAlias"); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint/bucketHostname.js var bucketHostname, getEndpointFromBucketName, getEndpointFromArn, getEndpointFromObjectLambdaArn, getEndpointFromMRAPArn, getEndpointFromOutpostArn, getEndpointFromAccessPointArn; var init_bucketHostname = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint/bucketHostname.js"() { init_bucketHostnameUtils(); bucketHostname = /* @__PURE__ */ __name((options) => { validateCustomEndpoint(options); return isBucketNameOptions(options) ? getEndpointFromBucketName(options) : getEndpointFromArn(options); }, "bucketHostname"); getEndpointFromBucketName = /* @__PURE__ */ __name(({ accelerateEndpoint = false, clientRegion: region, baseHostname, bucketName, dualstackEndpoint = false, fipsEndpoint = false, pathStyleEndpoint = false, tlsCompatible = true, isCustomEndpoint = false }) => { const [clientRegion, hostnameSuffix] = isCustomEndpoint ? [region, baseHostname] : getSuffix(baseHostname); if (pathStyleEndpoint || !isDnsCompatibleBucketName(bucketName) || tlsCompatible && DOT_PATTERN.test(bucketName)) { return { bucketEndpoint: false, hostname: dualstackEndpoint ? `s3.dualstack.${clientRegion}.${hostnameSuffix}` : baseHostname }; } if (accelerateEndpoint) { baseHostname = `s3-accelerate${dualstackEndpoint ? ".dualstack" : ""}.${hostnameSuffix}`; } else if (dualstackEndpoint) { baseHostname = `s3.dualstack.${clientRegion}.${hostnameSuffix}`; } return { bucketEndpoint: true, hostname: `${bucketName}.${baseHostname}` }; }, "getEndpointFromBucketName"); getEndpointFromArn = /* @__PURE__ */ __name((options) => { const { isCustomEndpoint, baseHostname, clientRegion } = options; const hostnameSuffix = isCustomEndpoint ? baseHostname : getSuffixForArnEndpoint(baseHostname)[1]; const { pathStyleEndpoint, accelerateEndpoint = false, fipsEndpoint = false, tlsCompatible = true, bucketName, clientPartition = "aws" } = options; validateArnEndpointOptions({ pathStyleEndpoint, accelerateEndpoint, tlsCompatible }); const { service, partition: partition2, accountId, region, resource } = bucketName; validateService(service); validatePartition(partition2, { clientPartition }); validateAccountId(accountId); const { accesspointName, outpostId } = getArnResources(resource); if (service === "s3-object-lambda") { return getEndpointFromObjectLambdaArn({ ...options, tlsCompatible, bucketName, accesspointName, hostnameSuffix }); } if (region === "") { return getEndpointFromMRAPArn({ ...options, clientRegion, mrapAlias: accesspointName, hostnameSuffix }); } if (outpostId) { return getEndpointFromOutpostArn({ ...options, clientRegion, outpostId, accesspointName, hostnameSuffix }); } return getEndpointFromAccessPointArn({ ...options, clientRegion, accesspointName, hostnameSuffix }); }, "getEndpointFromArn"); getEndpointFromObjectLambdaArn = /* @__PURE__ */ __name(({ dualstackEndpoint = false, fipsEndpoint = false, tlsCompatible = true, useArnRegion, clientRegion, clientSigningRegion = clientRegion, accesspointName, bucketName, hostnameSuffix }) => { const { accountId, region, service } = bucketName; validateRegionalClient(clientRegion); const DNSHostLabel = `${accesspointName}-${accountId}`; validateDNSHostLabel(DNSHostLabel, { tlsCompatible }); const endpointRegion = useArnRegion ? region : clientRegion; const signingRegion = useArnRegion ? region : clientSigningRegion; return { bucketEndpoint: true, hostname: `${DNSHostLabel}.${service}${fipsEndpoint ? "-fips" : ""}.${endpointRegion}.${hostnameSuffix}`, signingRegion, signingService: service }; }, "getEndpointFromObjectLambdaArn"); getEndpointFromMRAPArn = /* @__PURE__ */ __name(({ disableMultiregionAccessPoints, dualstackEndpoint = false, isCustomEndpoint, mrapAlias, hostnameSuffix }) => { if (disableMultiregionAccessPoints === true) { throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature."); } validateMrapAlias(mrapAlias); return { bucketEndpoint: true, hostname: `${mrapAlias}${isCustomEndpoint ? "" : `.accesspoint.s3-global`}.${hostnameSuffix}`, signingRegion: "*" }; }, "getEndpointFromMRAPArn"); getEndpointFromOutpostArn = /* @__PURE__ */ __name(({ useArnRegion, clientRegion, clientSigningRegion = clientRegion, bucketName, outpostId, dualstackEndpoint = false, fipsEndpoint = false, tlsCompatible = true, accesspointName, isCustomEndpoint, hostnameSuffix }) => { validateRegionalClient(clientRegion); const DNSHostLabel = `${accesspointName}-${bucketName.accountId}`; validateDNSHostLabel(DNSHostLabel, { tlsCompatible }); const endpointRegion = useArnRegion ? bucketName.region : clientRegion; const signingRegion = useArnRegion ? bucketName.region : clientSigningRegion; validateOutpostService(bucketName.service); validateDNSHostLabel(outpostId, { tlsCompatible }); validateNoFIPS(fipsEndpoint); const hostnamePrefix = `${DNSHostLabel}.${outpostId}`; return { bucketEndpoint: true, hostname: `${hostnamePrefix}${isCustomEndpoint ? "" : `.s3-outposts.${endpointRegion}`}.${hostnameSuffix}`, signingRegion, signingService: "s3-outposts" }; }, "getEndpointFromOutpostArn"); getEndpointFromAccessPointArn = /* @__PURE__ */ __name(({ useArnRegion, clientRegion, clientSigningRegion = clientRegion, bucketName, dualstackEndpoint = false, fipsEndpoint = false, tlsCompatible = true, accesspointName, isCustomEndpoint, hostnameSuffix }) => { validateRegionalClient(clientRegion); const hostnamePrefix = `${accesspointName}-${bucketName.accountId}`; validateDNSHostLabel(hostnamePrefix, { tlsCompatible }); const endpointRegion = useArnRegion ? bucketName.region : clientRegion; const signingRegion = useArnRegion ? bucketName.region : clientSigningRegion; validateS3Service(bucketName.service); return { bucketEndpoint: true, hostname: `${hostnamePrefix}${isCustomEndpoint ? "" : `.s3-accesspoint${fipsEndpoint ? "-fips" : ""}${dualstackEndpoint ? ".dualstack" : ""}.${endpointRegion}`}.${hostnameSuffix}`, signingRegion }; }, "getEndpointFromAccessPointArn"); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint/bucketEndpointMiddleware.js var bucketEndpointMiddleware2, bucketEndpointMiddlewareOptions2, getBucketEndpointPlugin; var init_bucketEndpointMiddleware = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint/bucketEndpointMiddleware.js"() { init_util2(); init_protocols(); init_bucketHostname(); bucketEndpointMiddleware2 = /* @__PURE__ */ __name((options) => (next, context) => async (args) => { const { Bucket: bucketName } = args.input; let replaceBucketInPath = options.bucketEndpoint; const request = args.request; if (HttpRequest.isInstance(request)) { if (options.bucketEndpoint) { request.hostname = bucketName; } else if (validate2(bucketName)) { const bucketArn = parse3(bucketName); const clientRegion = await options.region(); const useDualstackEndpoint = await options.useDualstackEndpoint(); const useFipsEndpoint = await options.useFipsEndpoint(); const { partition: partition2, signingRegion = clientRegion } = await options.regionInfoProvider(clientRegion, { useDualstackEndpoint, useFipsEndpoint }) || {}; const useArnRegion = await options.useArnRegion(); const { hostname: hostname3, bucketEndpoint, signingRegion: modifiedSigningRegion, signingService } = bucketHostname({ bucketName: bucketArn, baseHostname: request.hostname, accelerateEndpoint: options.useAccelerateEndpoint, dualstackEndpoint: useDualstackEndpoint, fipsEndpoint: useFipsEndpoint, pathStyleEndpoint: options.forcePathStyle, tlsCompatible: request.protocol === "https:", useArnRegion, clientPartition: partition2, clientSigningRegion: signingRegion, clientRegion, isCustomEndpoint: options.isCustomEndpoint, disableMultiregionAccessPoints: await options.disableMultiregionAccessPoints() }); if (modifiedSigningRegion && modifiedSigningRegion !== signingRegion) { context["signing_region"] = modifiedSigningRegion; } if (signingService && signingService !== "s3") { context["signing_service"] = signingService; } request.hostname = hostname3; replaceBucketInPath = bucketEndpoint; } else { const clientRegion = await options.region(); const dualstackEndpoint = await options.useDualstackEndpoint(); const fipsEndpoint = await options.useFipsEndpoint(); const { hostname: hostname3, bucketEndpoint } = bucketHostname({ bucketName, clientRegion, baseHostname: request.hostname, accelerateEndpoint: options.useAccelerateEndpoint, dualstackEndpoint, fipsEndpoint, pathStyleEndpoint: options.forcePathStyle, tlsCompatible: request.protocol === "https:", isCustomEndpoint: options.isCustomEndpoint }); request.hostname = hostname3; replaceBucketInPath = bucketEndpoint; } if (replaceBucketInPath) { request.path = request.path.replace(/^(\/)?[^\/]+/, ""); if (request.path === "") { request.path = "/"; } } } return next({ ...args, request }); }, "bucketEndpointMiddleware"); bucketEndpointMiddlewareOptions2 = { tags: ["BUCKET_ENDPOINT"], name: "bucketEndpointMiddleware", relation: "before", toMiddleware: "hostHeaderMiddleware", override: true }; getBucketEndpointPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.addRelativeTo(bucketEndpointMiddleware2(options), bucketEndpointMiddlewareOptions2); }, "applyToStack") }), "getBucketEndpointPlugin"); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint/configurations.js function resolveBucketEndpointConfig(input2) { const { bucketEndpoint = false, forcePathStyle = false, useAccelerateEndpoint = false, useArnRegion, disableMultiregionAccessPoints = false } = input2; return Object.assign(input2, { bucketEndpoint, forcePathStyle, useAccelerateEndpoint, useArnRegion: typeof useArnRegion === "function" ? useArnRegion : () => Promise.resolve(useArnRegion), disableMultiregionAccessPoints: typeof disableMultiregionAccessPoints === "function" ? disableMultiregionAccessPoints : () => Promise.resolve(disableMultiregionAccessPoints) }); } var init_configurations3 = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint/configurations.js"() { __name(resolveBucketEndpointConfig, "resolveBucketEndpointConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-expect-continue/middleware-expect-continue.js function addExpectContinueMiddleware(options) { return (next) => async (args) => { const { request } = args; if (options.expectContinueHeader !== false && HttpRequest.isInstance(request) && request.body && options.runtime === "node" && options.requestHandler?.constructor?.name !== "FetchHttpHandler") { let sendHeader = true; if (typeof options.expectContinueHeader === "number") { try { const bodyLength = Number(request.headers?.["content-length"]) ?? options.bodyLengthChecker?.(request.body) ?? Infinity; sendHeader = bodyLength >= options.expectContinueHeader; } catch (e5) { } } else { sendHeader = !!options.expectContinueHeader; } if (sendHeader) { request.headers.Expect = "100-continue"; } } return next({ ...args, request }); }; } var addExpectContinueMiddlewareOptions, getAddExpectContinuePlugin; var init_middleware_expect_continue = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-expect-continue/middleware-expect-continue.js"() { init_protocols(); __name(addExpectContinueMiddleware, "addExpectContinueMiddleware"); addExpectContinueMiddlewareOptions = { step: "build", tags: ["SET_EXPECT_HEADER", "EXPECT_HEADER"], name: "addExpectContinueMiddleware", override: true }; getAddExpectContinuePlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.add(addExpectContinueMiddleware(options), addExpectContinueMiddlewareOptions); }, "applyToStack") }), "getAddExpectContinuePlugin"); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-location-constraint/middleware-location-constraint.js function locationConstraintMiddleware(options) { return (next) => async (args) => { const { CreateBucketConfiguration } = args.input; const region = await options.region(); if (!CreateBucketConfiguration?.LocationConstraint && !CreateBucketConfiguration?.Location) { if (region !== "us-east-1") { args.input.CreateBucketConfiguration = args.input.CreateBucketConfiguration ?? {}; args.input.CreateBucketConfiguration.LocationConstraint = region; } } return next(args); }; } var locationConstraintMiddlewareOptions, getLocationConstraintPlugin; var init_middleware_location_constraint = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-location-constraint/middleware-location-constraint.js"() { __name(locationConstraintMiddleware, "locationConstraintMiddleware"); locationConstraintMiddlewareOptions = { step: "initialize", tags: ["LOCATION_CONSTRAINT", "CREATE_BUCKET_CONFIGURATION"], name: "locationConstraintMiddleware", override: true }; getLocationConstraintPlugin = /* @__PURE__ */ __name((config3) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.add(locationConstraintMiddleware(config3), locationConstraintMiddlewareOptions); }, "applyToStack") }), "getLocationConstraintPlugin"); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-location-constraint/configuration.js function resolveLocationConstraintConfig(input2) { return input2; } var init_configuration2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-location-constraint/configuration.js"() { __name(resolveLocationConstraintConfig, "resolveLocationConstraintConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-ssec/middleware-ssec.js function ssecMiddleware(options) { return (next) => async (args) => { const input2 = { ...args.input }; const properties = [ { target: "SSECustomerKey", hash: "SSECustomerKeyMD5" }, { target: "CopySourceSSECustomerKey", hash: "CopySourceSSECustomerKeyMD5" } ]; for (const prop of properties) { const value = input2[prop.target]; if (value) { let valueForHash; if (typeof value === "string") { if (isValidBase64EncodedSSECustomerKey(value, options)) { valueForHash = options.base64Decoder(value); } else { valueForHash = options.utf8Decoder(value); input2[prop.target] = options.base64Encoder(valueForHash); } } else { valueForHash = ArrayBuffer.isView(value) ? new Uint8Array(value.buffer, value.byteOffset, value.byteLength) : new Uint8Array(value); input2[prop.target] = options.base64Encoder(valueForHash); } const hash3 = new options.md5(); hash3.update(valueForHash); input2[prop.hash] = options.base64Encoder(await hash3.digest()); } } return next({ ...args, input: input2 }); }; } function isValidBase64EncodedSSECustomerKey(str, options) { const base64Regex = /^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/; if (!base64Regex.test(str)) return false; try { const decodedBytes = options.base64Decoder(str); return decodedBytes.length === 32; } catch { return false; } } var ssecMiddlewareOptions, getSsecPlugin; var init_middleware_ssec = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-ssec/middleware-ssec.js"() { __name(ssecMiddleware, "ssecMiddleware"); ssecMiddlewareOptions = { name: "ssecMiddleware", step: "initialize", tags: ["SSE"], override: true }; getSsecPlugin = /* @__PURE__ */ __name((config3) => ({ applyToStack: /* @__PURE__ */ __name((clientStack) => { clientStack.add(ssecMiddleware(config3), ssecMiddlewareOptions); }, "applyToStack") }), "getSsecPlugin"); __name(isValidBase64EncodedSSECustomerKey, "isValidBase64EncodedSSECustomerKey"); } }); // ../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/index.js var s3_exports = {}; __export(s3_exports, { NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS: () => NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS, NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME: () => NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME, NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME: () => NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS: () => NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, NODE_USE_ARN_REGION_CONFIG_OPTIONS: () => NODE_USE_ARN_REGION_CONFIG_OPTIONS, NODE_USE_ARN_REGION_ENV_NAME: () => NODE_USE_ARN_REGION_ENV_NAME, NODE_USE_ARN_REGION_INI_NAME: () => NODE_USE_ARN_REGION_INI_NAME, S3ExpressIdentityCache: () => S3ExpressIdentityCache, S3ExpressIdentityCacheEntry: () => S3ExpressIdentityCacheEntry, S3ExpressIdentityProviderImpl: () => S3ExpressIdentityProviderImpl, S3RestXmlProtocol: () => S3RestXmlProtocol, SignatureV4S3Express: () => SignatureV4S3Express, addExpectContinueMiddleware: () => addExpectContinueMiddleware, addExpectContinueMiddlewareOptions: () => addExpectContinueMiddlewareOptions, bucketEndpointMiddleware: () => bucketEndpointMiddleware2, bucketEndpointMiddlewareOptions: () => bucketEndpointMiddlewareOptions2, bucketHostname: () => bucketHostname, checkContentLengthHeader: () => checkContentLengthHeader, checkContentLengthHeaderMiddlewareOptions: () => checkContentLengthHeaderMiddlewareOptions, getAddExpectContinuePlugin: () => getAddExpectContinuePlugin, getArnResources: () => getArnResources, getBucketEndpointPlugin: () => getBucketEndpointPlugin, getCheckContentLengthHeaderPlugin: () => getCheckContentLengthHeaderPlugin, getLocationConstraintPlugin: () => getLocationConstraintPlugin, getRegionRedirectMiddlewarePlugin: () => getRegionRedirectMiddlewarePlugin, getS3ExpiresMiddlewarePlugin: () => getS3ExpiresMiddlewarePlugin, getS3ExpressHttpSigningPlugin: () => getS3ExpressHttpSigningPlugin, getS3ExpressPlugin: () => getS3ExpressPlugin, getSsecPlugin: () => getSsecPlugin, getSuffixForArnEndpoint: () => getSuffixForArnEndpoint, getThrow200ExceptionsPlugin: () => getThrow200ExceptionsPlugin, getValidateBucketNamePlugin: () => getValidateBucketNamePlugin, isValidBase64EncodedSSECustomerKey: () => isValidBase64EncodedSSECustomerKey, locationConstraintMiddleware: () => locationConstraintMiddleware, locationConstraintMiddlewareOptions: () => locationConstraintMiddlewareOptions, regionRedirectEndpointMiddleware: () => regionRedirectEndpointMiddleware, regionRedirectEndpointMiddlewareOptions: () => regionRedirectEndpointMiddlewareOptions, regionRedirectMiddleware: () => regionRedirectMiddleware, regionRedirectMiddlewareOptions: () => regionRedirectMiddlewareOptions, resolveBucketEndpointConfig: () => resolveBucketEndpointConfig, resolveLocationConstraintConfig: () => resolveLocationConstraintConfig, resolveS3Config: () => resolveS3Config, s3ExpiresMiddleware: () => s3ExpiresMiddleware, s3ExpiresMiddlewareOptions: () => s3ExpiresMiddlewareOptions, s3ExpressHttpSigningMiddleware: () => s3ExpressHttpSigningMiddleware, s3ExpressHttpSigningMiddlewareOptions: () => s3ExpressHttpSigningMiddlewareOptions, s3ExpressMiddleware: () => s3ExpressMiddleware, s3ExpressMiddlewareOptions: () => s3ExpressMiddlewareOptions, ssecMiddleware: () => ssecMiddleware, ssecMiddlewareOptions: () => ssecMiddlewareOptions, throw200ExceptionsMiddleware: () => throw200ExceptionsMiddleware, throw200ExceptionsMiddlewareOptions: () => throw200ExceptionsMiddlewareOptions, validateAccountId: () => validateAccountId, validateBucketNameMiddleware: () => validateBucketNameMiddleware, validateBucketNameMiddlewareOptions: () => validateBucketNameMiddlewareOptions, validateDNSHostLabel: () => validateDNSHostLabel, validateNoDualstack: () => validateNoDualstack, validateNoFIPS: () => validateNoFIPS, validateOutpostService: () => validateOutpostService, validatePartition: () => validatePartition, validateRegion: () => validateRegion }); var init_s3 = __esm({ "../../node_modules/.pnpm/@aws-sdk+middleware-sdk-s3@3.972.80/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/index.js"() { init_check_content_length_header(); init_region_redirect_endpoint_middleware(); init_region_redirect_middleware(); init_s3Configuration(); init_s3_expires_middleware(); init_S3ExpressIdentityCache(); init_S3ExpressIdentityCacheEntry(); init_S3ExpressIdentityProviderImpl(); init_SignatureV4S3Express(); init_constants5(); init_s3ExpressMiddleware(); init_s3ExpressHttpSigningMiddleware(); init_throw_200_exceptions(); init_validate_bucket_name(); init_S3RestXmlProtocol(); init_NodeDisableMultiregionAccessPointConfigOptions(); init_NodeUseArnRegionConfigOptions(); init_bucketEndpointMiddleware(); init_bucketHostname(); init_configurations3(); init_bucketHostnameUtils(); init_middleware_expect_continue(); init_middleware_location_constraint(); init_configuration2(); init_middleware_ssec(); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js var getDateHeader, getAgeHeader; var init_getDateHeader = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js"() { init_protocols(); getDateHeader = /* @__PURE__ */ __name((response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : void 0, "getDateHeader"); getAgeHeader = /* @__PURE__ */ __name((response) => HttpResponse.isInstance(response) ? response.headers?.age ?? response.headers?.Age : void 0, "getAgeHeader"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js var getSkewCorrectedDate; var init_getSkewCorrectedDate = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js"() { getSkewCorrectedDate = /* @__PURE__ */ __name((systemClockOffset) => new Date(Date.now() + systemClockOffset), "getSkewCorrectedDate"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js var getUpdatedSystemClockOffset; var init_getUpdatedSystemClockOffset = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js"() { getUpdatedSystemClockOffset = /* @__PURE__ */ __name((clockTime, currentSystemClockOffset, timeRequestSent, ageHeader) => { if (ageHeader !== void 0) { return currentSystemClockOffset; } const serverTime = Date.parse(clockTime); const timeResponseReceived = Date.now(); if (timeRequestSent !== void 0 && timeResponseReceived - timeRequestSent > 9e5) { return currentSystemClockOffset; } const candidateSkew = timeRequestSent !== void 0 ? serverTime - (timeRequestSent + timeResponseReceived) / 2 : serverTime - timeResponseReceived; return candidateSkew; }, "getUpdatedSystemClockOffset"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js var init_utils = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js"() { init_getDateHeader(); init_getSkewCorrectedDate(); init_getUpdatedSystemClockOffset(); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js var import_types5, throwSigningPropertyError, hasEventStreamOutput, validateSigningProperties, AwsSdkSigV4Signer, AWSSDKSigV4Signer; var init_AwsSdkSigV4Signer = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js"() { init_protocols(); import_types5 = __toESM(require_dist_cjs()); init_utils(); throwSigningPropertyError = /* @__PURE__ */ __name((name2, property) => { if (!property) { throw new Error(`Property \`${name2}\` is not resolved for AWS SDK SigV4Auth`); } return property; }, "throwSigningPropertyError"); hasEventStreamOutput = /* @__PURE__ */ __name((signingProperties) => { const context = signingProperties.context; const eventStream = context?.[import_types5.SMITHY_CONTEXT_KEY]?.eventStream; return eventStream?.output === true; }, "hasEventStreamOutput"); validateSigningProperties = /* @__PURE__ */ __name(async (signingProperties) => { const context = throwSigningPropertyError("context", signingProperties.context); const config3 = throwSigningPropertyError("config", signingProperties.config); const authScheme = context.endpointV2?.properties?.authSchemes?.[0]; const signerFunction = throwSigningPropertyError("signer", config3.signer); const signer = await signerFunction(authScheme); const signingRegion = signingProperties?.signingRegion; const signingRegionSet = signingProperties?.signingRegionSet; const signingName = signingProperties?.signingName; return { config: config3, signer, signingRegion, signingRegionSet, signingName }; }, "validateSigningProperties"); AwsSdkSigV4Signer = class { static { __name(this, "AwsSdkSigV4Signer"); } async sign(httpRequest, identity, signingProperties) { if (!HttpRequest.isInstance(httpRequest)) { throw new Error("The request is not an instance of `HttpRequest` and cannot be signed"); } const validatedProps = await validateSigningProperties(signingProperties); const { config: config3, signer } = validatedProps; let { signingRegion, signingName } = validatedProps; const handlerExecutionContext = signingProperties.context; if (handlerExecutionContext?.authSchemes?.length ?? 0 > 1) { const [first, second] = handlerExecutionContext.authSchemes; if (first?.name === "sigv4a" && second?.name === "sigv4") { signingRegion = second?.signingRegion ?? signingRegion; signingName = second?.signingName ?? signingName; } } const noSkewCorrection = await config3.disableClockSkewCorrection?.() === true; signingProperties._disableClockSkewCorrection = noSkewCorrection; const skipSkewSampling = noSkewCorrection || hasEventStreamOutput(signingProperties); signingProperties._skipClockSkewSampling = skipSkewSampling; if (!skipSkewSampling) { signingProperties._preRequestSystemClockOffset = config3.systemClockOffset; signingProperties._requestSentAt = Date.now(); } const signedRequest = await signer.sign(httpRequest, { signingDate: noSkewCorrection ? /* @__PURE__ */ new Date() : getSkewCorrectedDate(config3.systemClockOffset), signingRegion, signingService: signingName }); return signedRequest; } errorHandler(signingProperties) { return (error62) => { const errorException = error62; if (!signingProperties._skipClockSkewSampling && !signingProperties._disableClockSkewCorrection) { const serverTime = errorException.ServerTime ?? getDateHeader(errorException.$response); if (serverTime) { const config3 = throwSigningPropertyError("config", signingProperties.config); const preRequestOffset = signingProperties._preRequestSystemClockOffset; const timeRequestSent = signingProperties._requestSentAt; const ageHeader = getAgeHeader(errorException.$response); const newOffset = getUpdatedSystemClockOffset(serverTime, config3.systemClockOffset, timeRequestSent, ageHeader); config3.systemClockOffset = newOffset; const skewExceedsThreshold = Math.abs(newOffset) >= 24e4; const isLocalCorrection = newOffset !== preRequestOffset; const isConcurrentCorrection = preRequestOffset !== void 0 && preRequestOffset !== newOffset; if (skewExceedsThreshold && (isLocalCorrection || isConcurrentCorrection) && errorException.$metadata) { errorException.$metadata.clockSkewCorrected = true; } } } throw error62; }; } successHandler(httpResponse, signingProperties) { if (signingProperties._skipClockSkewSampling || signingProperties._disableClockSkewCorrection) { return; } const dateHeader = getDateHeader(httpResponse); if (dateHeader) { const config3 = throwSigningPropertyError("config", signingProperties.config); const timeRequestSent = signingProperties._requestSentAt; const ageHeader = getAgeHeader(httpResponse); config3.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config3.systemClockOffset, timeRequestSent, ageHeader); } } }; AWSSDKSigV4Signer = AwsSdkSigV4Signer; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js var AwsSdkSigV4ASigner; var init_AwsSdkSigV4ASigner = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js"() { init_protocols(); init_utils(); init_AwsSdkSigV4Signer(); AwsSdkSigV4ASigner = class extends AwsSdkSigV4Signer { static { __name(this, "AwsSdkSigV4ASigner"); } async sign(httpRequest, identity, signingProperties) { if (!HttpRequest.isInstance(httpRequest)) { throw new Error("The request is not an instance of `HttpRequest` and cannot be signed"); } const { config: config3, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(signingProperties); const configResolvedSigningRegionSet = await config3.sigv4aSigningRegionSet?.(); const multiRegionOverride = (configResolvedSigningRegionSet ?? signingRegionSet ?? [signingRegion]).join(","); const noSkewCorrection = await config3.disableClockSkewCorrection?.() === true; signingProperties._disableClockSkewCorrection = noSkewCorrection; if (!noSkewCorrection) { signingProperties._preRequestSystemClockOffset = config3.systemClockOffset; signingProperties._requestSentAt = Date.now(); } const signedRequest = await signer.sign(httpRequest, { signingDate: noSkewCorrection ? /* @__PURE__ */ new Date() : getSkewCorrectedDate(config3.systemClockOffset), signingRegion: multiRegionOverride, signingService: signingName }); return signedRequest; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js var getArrayForCommaSeparatedString; var init_getArrayForCommaSeparatedString = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js"() { getArrayForCommaSeparatedString = /* @__PURE__ */ __name((str) => typeof str === "string" && str.length > 0 ? str.split(",").map((item) => item.trim()) : [], "getArrayForCommaSeparatedString"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js var getBearerTokenEnvKey; var init_getBearerTokenEnvKey = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js"() { getBearerTokenEnvKey = /* @__PURE__ */ __name((signingName) => `AWS_BEARER_TOKEN_${signingName.replace(/[\s-]/g, "_").toUpperCase()}`, "getBearerTokenEnvKey"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js var NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY, NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS; var init_NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js"() { init_getArrayForCommaSeparatedString(); init_getBearerTokenEnvKey(); NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE"; NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference"; NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = { environmentVariableSelector: /* @__PURE__ */ __name((env3, options) => { if (options?.signingName) { const bearerTokenKey = getBearerTokenEnvKey(options.signingName); if (bearerTokenKey in env3) return ["httpBearerAuth"]; } if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env3)) return void 0; return getArrayForCommaSeparatedString(env3[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]); }, "environmentVariableSelector"), configFileSelector: /* @__PURE__ */ __name((profile) => { if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile)) return void 0; return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY]); }, "configFileSelector"), default: [] }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js var resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS; var init_resolveAwsSdkSigV4AConfig = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js"() { init_dist_es(); init_config(); resolveAwsSdkSigV4AConfig = /* @__PURE__ */ __name((config3) => { config3.sigv4aSigningRegionSet = normalizeProvider2(config3.sigv4aSigningRegionSet); return config3; }, "resolveAwsSdkSigV4AConfig"); NODE_SIGV4A_CONFIG_OPTIONS = { environmentVariableSelector(env3) { if (env3.AWS_SIGV4A_SIGNING_REGION_SET) { return env3.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_) => _.trim()); } throw new ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.", { tryNextLink: true }); }, configFileSelector(profile) { if (profile.sigv4a_signing_region_set) { return (profile.sigv4a_signing_region_set ?? "").split(",").map((_) => _.trim()); } throw new ProviderError("sigv4a_signing_region_set not set in profile.", { tryNextLink: true }); }, default: void 0 }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js function normalizeCredentialProvider(config3, { credentials, credentialDefaultProvider }) { let credentialsProvider; if (credentials) { if (!credentials?.memoized) { credentialsProvider = memoizeIdentityProvider(credentials, isIdentityExpired, doesIdentityRequireRefresh); } else { credentialsProvider = credentials; } } else { if (credentialDefaultProvider) { credentialsProvider = normalizeProvider2(credentialDefaultProvider(Object.assign({}, config3, { parentClientConfig: config3 }))); } else { credentialsProvider = /* @__PURE__ */ __name(async () => { throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured."); }, "credentialsProvider"); } } credentialsProvider.memoized = true; return credentialsProvider; } function bindCallerConfig(config3, credentialsProvider) { if (credentialsProvider.configBound) { return credentialsProvider; } const fn = /* @__PURE__ */ __name(async (options) => credentialsProvider({ ...options, callerClientConfig: config3 }), "fn"); fn.memoized = credentialsProvider.memoized; fn.configBound = true; return fn; } var import_signature_v4, bindResolveAwsSdkSigV4Config; var init_resolveAwsSdkSigV4Config = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js"() { init_client2(); init_dist_es(); import_signature_v4 = __toESM(require_dist_cjs2()); bindResolveAwsSdkSigV4Config = /* @__PURE__ */ __name((defaultDisableClockSkewCorrection) => (config3) => { let inputCredentials = config3.credentials; let isUserSupplied = !!config3.credentials; let resolvedCredentials = void 0; Object.defineProperty(config3, "credentials", { set(credentials) { if (credentials && credentials !== inputCredentials && credentials !== resolvedCredentials) { isUserSupplied = true; } inputCredentials = credentials; const memoizedProvider = normalizeCredentialProvider(config3, { credentials: inputCredentials, credentialDefaultProvider: config3.credentialDefaultProvider }); const boundProvider = bindCallerConfig(config3, memoizedProvider); if (isUserSupplied && !boundProvider.attributed) { const isCredentialObject = typeof inputCredentials === "object" && inputCredentials !== null; resolvedCredentials = /* @__PURE__ */ __name(async (options) => { const creds = await boundProvider(options); const attributedCreds = creds; if (isCredentialObject && (!attributedCreds.$source || Object.keys(attributedCreds.$source).length === 0)) { return setCredentialFeature(attributedCreds, "CREDENTIALS_CODE", "e"); } return attributedCreds; }, "resolvedCredentials"); resolvedCredentials.memoized = boundProvider.memoized; resolvedCredentials.configBound = boundProvider.configBound; resolvedCredentials.attributed = true; } else { resolvedCredentials = boundProvider; } }, get() { return resolvedCredentials; }, enumerable: true, configurable: true }); config3.credentials = inputCredentials; const { signingEscapePath = true, systemClockOffset = config3.systemClockOffset || 0, sha256: sha2562 } = config3; let signer; if (config3.signer) { signer = normalizeProvider2(config3.signer); } else if (config3.regionInfoProvider) { signer = /* @__PURE__ */ __name(() => normalizeProvider2(config3.region)().then(async (region) => [ await config3.regionInfoProvider(region, { useFipsEndpoint: await config3.useFipsEndpoint(), useDualstackEndpoint: await config3.useDualstackEndpoint() }) || {}, region ]).then(([regionInfo, region]) => { const { signingRegion, signingService } = regionInfo; config3.signingRegion = config3.signingRegion || signingRegion || region; config3.signingName = config3.signingName || signingService || config3.serviceId; const params = { ...config3, credentials: config3.credentials, region: config3.signingRegion, service: config3.signingName, sha256: sha2562, uriEscapePath: signingEscapePath }; const SignerCtor = config3.signerConstructor || import_signature_v4.SignatureV4; return new SignerCtor(params); }), "signer"); } else { signer = /* @__PURE__ */ __name(async (authScheme) => { authScheme = Object.assign({}, { name: "sigv4", signingName: config3.signingName || config3.defaultSigningName, signingRegion: await normalizeProvider2(config3.region)(), properties: {} }, authScheme); const signingRegion = authScheme.signingRegion; const signingService = authScheme.signingName; config3.signingRegion = config3.signingRegion || signingRegion; config3.signingName = config3.signingName || signingService || config3.serviceId; const params = { ...config3, credentials: config3.credentials, region: config3.signingRegion, service: config3.signingName, sha256: sha2562, uriEscapePath: signingEscapePath }; const SignerCtor = config3.signerConstructor || import_signature_v4.SignatureV4; return new SignerCtor(params); }, "signer"); } const resolvedConfig = Object.assign(config3, { systemClockOffset, signingEscapePath, signer, disableClockSkewCorrection: normalizeProvider2(config3.disableClockSkewCorrection ?? defaultDisableClockSkewCorrection) }); return resolvedConfig; }, "bindResolveAwsSdkSigV4Config"); __name(normalizeCredentialProvider, "normalizeCredentialProvider"); __name(bindCallerConfig, "bindCallerConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js var init_aws_sdk = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js"() { init_AwsSdkSigV4Signer(); init_AwsSdkSigV4ASigner(); init_NODE_AUTH_SCHEME_PREFERENCE_OPTIONS(); init_resolveAwsSdkSigV4AConfig(); init_resolveAwsSdkSigV4Config(); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.js var ENV_DISABLE_CLOCK_SKEW_CORRECTION, CONFIG_DISABLE_CLOCK_SKEW_CORRECTION, NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS; var init_clock_skew_node_config = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.js"() { init_config(); ENV_DISABLE_CLOCK_SKEW_CORRECTION = "AWS_DISABLE_CLOCK_SKEW_CORRECTION"; CONFIG_DISABLE_CLOCK_SKEW_CORRECTION = "disable_clock_skew_correction"; NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS = { environmentVariableSelector: /* @__PURE__ */ __name((env3) => booleanSelector(env3, ENV_DISABLE_CLOCK_SKEW_CORRECTION, SelectorType.ENV), "environmentVariableSelector"), configFileSelector: /* @__PURE__ */ __name((profile) => booleanSelector(profile, CONFIG_DISABLE_CLOCK_SKEW_CORRECTION, SelectorType.CONFIG), "configFileSelector"), default: false }; } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.js var DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION; var init_clock_skew_defaults = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.js"() { init_config(); init_clock_skew_node_config(); DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION = loadConfig(NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS); } }); // ../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js var httpAuthSchemes_exports = {}; __export(httpAuthSchemes_exports, { AWSSDKSigV4Signer: () => AWSSDKSigV4Signer, AwsSdkSigV4ASigner: () => AwsSdkSigV4ASigner, AwsSdkSigV4Signer: () => AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS: () => NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS: () => NODE_SIGV4A_CONFIG_OPTIONS, getBearerTokenEnvKey: () => getBearerTokenEnvKey, resolveAWSSDKSigV4Config: () => resolveAWSSDKSigV4Config, resolveAwsSdkSigV4AConfig: () => resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config: () => resolveAwsSdkSigV4Config, validateSigningProperties: () => validateSigningProperties }); var resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config; var init_httpAuthSchemes2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+core@3.978.4/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js"() { init_aws_sdk(); init_getBearerTokenEnvKey(); init_aws_sdk(); init_clock_skew_defaults(); resolveAwsSdkSigV4Config = bindResolveAwsSdkSigV4Config(DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION); resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config; } }); // ../../node_modules/.pnpm/@aws-sdk+credential-provider-env@3.972.75/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js var require_dist_cjs5 = __commonJS({ "../../node_modules/.pnpm/@aws-sdk+credential-provider-env@3.972.75/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js"(exports) { var { setCredentialFeature: setCredentialFeature2 } = (init_client2(), __toCommonJS(client_exports2)); var { CredentialsProviderError } = (init_config(), __toCommonJS(config_exports)); var ENV_KEY = "AWS_ACCESS_KEY_ID"; var ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; var ENV_SESSION = "AWS_SESSION_TOKEN"; var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION"; var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE"; var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID"; var fromEnv = /* @__PURE__ */ __name((init2) => async () => { init2?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv"); const accessKeyId = process.env[ENV_KEY]; const secretAccessKey = process.env[ENV_SECRET]; const sessionToken = process.env[ENV_SESSION]; const expiry = process.env[ENV_EXPIRATION]; const credentialScope = process.env[ENV_CREDENTIAL_SCOPE]; const accountId = process.env[ENV_ACCOUNT_ID]; if (accessKeyId && secretAccessKey) { const credentials = { accessKeyId, secretAccessKey, ...sessionToken && { sessionToken }, ...expiry && { expiration: new Date(expiry) }, ...credentialScope && { credentialScope }, ...accountId && { accountId } }; setCredentialFeature2(credentials, "CREDENTIALS_ENV_VARS", "g"); return credentials; } throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init2?.logger }); }, "fromEnv"); exports.ENV_ACCOUNT_ID = ENV_ACCOUNT_ID; exports.ENV_CREDENTIAL_SCOPE = ENV_CREDENTIAL_SCOPE; exports.ENV_EXPIRATION = ENV_EXPIRATION; exports.ENV_KEY = ENV_KEY; exports.ENV_SECRET = ENV_SECRET; exports.ENV_SESSION = ENV_SESSION; exports.fromEnv = fromEnv; } }); // ../../node_modules/.pnpm/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js var require_dist_cjs6 = __commonJS({ "../../node_modules/.pnpm/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports) { var { ProviderError: ProviderError2, CredentialsProviderError, loadConfig: loadConfig2 } = (init_config(), __toCommonJS(config_exports)); var node_http = __require("node:http"); var { parseUrl: parseUrl2 } = (init_protocols(), __toCommonJS(protocols_exports)); var isImdsCredentials = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string", "isImdsCredentials"); var fromImdsCredentials = /* @__PURE__ */ __name((creds) => ({ accessKeyId: creds.AccessKeyId, secretAccessKey: creds.SecretAccessKey, sessionToken: creds.Token, expiration: new Date(creds.Expiration), ...creds.AccountId && { accountId: creds.AccountId } }), "fromImdsCredentials"); var DEFAULT_TIMEOUT = 1e3; var DEFAULT_MAX_RETRIES = 0; var providerConfigFromInit = /* @__PURE__ */ __name(({ maxRetries = DEFAULT_MAX_RETRIES, timeout = DEFAULT_TIMEOUT }) => ({ maxRetries, timeout }), "providerConfigFromInit"); function httpRequest(options) { return new Promise((resolve, reject) => { const req2 = node_http.request({ method: "GET", ...options, hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1") }); req2.on("error", (err) => { reject(Object.assign(new ProviderError2("Unable to connect to instance metadata service"), err)); req2.destroy(); }); req2.on("timeout", () => { reject(new ProviderError2("TimeoutError from instance metadata service")); req2.destroy(); }); req2.on("response", (res) => { const { statusCode = 400 } = res; if (statusCode < 200 || 300 <= statusCode) { reject(Object.assign(new ProviderError2("Error response received from instance metadata service"), { statusCode })); req2.destroy(); } const chunks = []; res.on("data", (chunk) => { chunks.push(chunk); }); res.on("end", () => { resolve(Buffer.concat(chunks)); req2.destroy(); }); }); req2.end(); }); } __name(httpRequest, "httpRequest"); var retry = /* @__PURE__ */ __name((toRetry, maxRetries) => { let promise2 = toRetry(); for (let i5 = 0; i5 < maxRetries; i5++) { promise2 = promise2.catch(toRetry); } return promise2; }, "retry"); var ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; var ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; var ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; var fromContainerMetadata = /* @__PURE__ */ __name((init2 = {}) => { const { timeout, maxRetries } = providerConfigFromInit(init2); return () => retry(async () => { const requestOptions = await getCmdsUri({ logger: init2.logger }); const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions)); if (!isImdsCredentials(credsResponse)) { throw new CredentialsProviderError("Invalid response received from instance metadata service.", { logger: init2.logger }); } return fromImdsCredentials(credsResponse); }, maxRetries); }, "fromContainerMetadata"); var requestFromEcsImds = /* @__PURE__ */ __name(async (timeout, options) => { if (process.env[ENV_CMDS_AUTH_TOKEN]) { options.headers = { ...options.headers, Authorization: process.env[ENV_CMDS_AUTH_TOKEN] }; } const buffer = await httpRequest({ ...options, timeout }); return buffer.toString(); }, "requestFromEcsImds"); var CMDS_IP = "169.254.170.2"; var GREENGRASS_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1"]); var GREENGRASS_PROTOCOLS = /* @__PURE__ */ new Set(["http:", "https:"]); var getCmdsUri = /* @__PURE__ */ __name(async ({ logger }) => { if (process.env[ENV_CMDS_RELATIVE_URI]) { return { hostname: CMDS_IP, path: process.env[ENV_CMDS_RELATIVE_URI] }; } if (process.env[ENV_CMDS_FULL_URI]) { let parsed2; try { parsed2 = new URL(process.env[ENV_CMDS_FULL_URI]); } catch { throw new CredentialsProviderError(`${process.env[ENV_CMDS_FULL_URI]} is not a valid container metadata service URL`, { tryNextLink: false, logger }); } if (!parsed2.hostname || !GREENGRASS_HOSTS.has(parsed2.hostname)) { throw new CredentialsProviderError(`${parsed2.hostname} is not a valid container metadata service hostname`, { tryNextLink: false, logger }); } if (!parsed2.protocol || !GREENGRASS_PROTOCOLS.has(parsed2.protocol)) { throw new CredentialsProviderError(`${parsed2.protocol} is not a valid container metadata service protocol`, { tryNextLink: false, logger }); } return { protocol: parsed2.protocol, hostname: parsed2.hostname, path: parsed2.pathname + parsed2.search, port: parsed2.port ? parseInt(parsed2.port, 10) : void 0 }; } throw new CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment variable is set`, { tryNextLink: false, logger }); }, "getCmdsUri"); var InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends CredentialsProviderError { static { __name(this, "InstanceMetadataV1FallbackError"); } tryNextLink; name = "InstanceMetadataV1FallbackError"; constructor(message, tryNextLink = true) { super(message, tryNextLink); this.tryNextLink = tryNextLink; Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError.prototype); } }; var Endpoint; (function(Endpoint2) { Endpoint2["IPv4"] = "http://169.254.169.254"; Endpoint2["IPv6"] = "http://[fd00:ec2::254]"; })(Endpoint || (Endpoint = {})); var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; var CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; var ENDPOINT_CONFIG_OPTIONS = { environmentVariableSelector: /* @__PURE__ */ __name((env3) => env3[ENV_ENDPOINT_NAME], "environmentVariableSelector"), configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_ENDPOINT_NAME], "configFileSelector"), default: void 0 }; var EndpointMode; (function(EndpointMode2) { EndpointMode2["IPv4"] = "IPv4"; EndpointMode2["IPv6"] = "IPv6"; })(EndpointMode || (EndpointMode = {})); var ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; var CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; var ENDPOINT_MODE_CONFIG_OPTIONS = { environmentVariableSelector: /* @__PURE__ */ __name((env3) => env3[ENV_ENDPOINT_MODE_NAME], "environmentVariableSelector"), configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_ENDPOINT_MODE_NAME], "configFileSelector"), default: EndpointMode.IPv4 }; var getInstanceMetadataEndpoint = /* @__PURE__ */ __name(async () => parseUrl2(await getFromEndpointConfig() || await getFromEndpointModeConfig()), "getInstanceMetadataEndpoint"); var getFromEndpointConfig = /* @__PURE__ */ __name(async () => loadConfig2(ENDPOINT_CONFIG_OPTIONS)(), "getFromEndpointConfig"); var getFromEndpointModeConfig = /* @__PURE__ */ __name(async () => { const endpointMode = await loadConfig2(ENDPOINT_MODE_CONFIG_OPTIONS)(); switch (endpointMode) { case EndpointMode.IPv4: return Endpoint.IPv4; case EndpointMode.IPv6: return Endpoint.IPv6; default: throw new Error(`Unsupported endpoint mode: ${endpointMode}. Select from ${Object.values(EndpointMode)}`); } }, "getFromEndpointModeConfig"); var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60; var STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60; var STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html"; var getExtendedInstanceMetadataCredentials = /* @__PURE__ */ __name((credentials, logger) => { const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS); const newExpiration = new Date(Date.now() + refreshInterval * 1e3); logger.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}. For more information, please visit: ` + STATIC_STABILITY_DOC_URL); const originalExpiration = credentials.originalExpiration ?? credentials.expiration; return { ...credentials, ...originalExpiration ? { originalExpiration } : {}, expiration: newExpiration }; }, "getExtendedInstanceMetadataCredentials"); var staticStabilityProvider = /* @__PURE__ */ __name((provider, options = {}) => { const logger = options?.logger || console; let pastCredentials; return async () => { let credentials; try { credentials = await provider(); if (credentials.expiration && credentials.expiration.getTime() < Date.now()) { credentials = getExtendedInstanceMetadataCredentials(credentials, logger); } } catch (e5) { if (pastCredentials) { logger.warn("Credential renew failed: ", e5); credentials = getExtendedInstanceMetadataCredentials(pastCredentials, logger); } else { throw e5; } } pastCredentials = credentials; return credentials; }; }, "staticStabilityProvider"); var IMDS_PATH = "/latest/meta-data/iam/security-credentials/"; var IMDS_TOKEN_PATH = "/latest/api/token"; var AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED"; var PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled"; var X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token"; var fromInstanceMetadata = /* @__PURE__ */ __name((init2 = {}) => staticStabilityProvider(getInstanceMetadataProvider(init2), { logger: init2.logger }), "fromInstanceMetadata"); var getInstanceMetadataProvider = /* @__PURE__ */ __name((init2 = {}) => { let disableFetchToken = false; const { logger, profile } = init2; const { timeout, maxRetries } = providerConfigFromInit(init2); const getCredentials = /* @__PURE__ */ __name(async (maxRetries2, options) => { const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null; if (isImdsV1Fallback) { let fallbackBlockedFromProfile = false; let fallbackBlockedFromProcessEnv = false; const configValue = await loadConfig2({ environmentVariableSelector: /* @__PURE__ */ __name((env3) => { const envValue = env3[AWS_EC2_METADATA_V1_DISABLED]; fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false"; if (envValue === void 0) { throw new CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init2.logger }); } return fallbackBlockedFromProcessEnv; }, "environmentVariableSelector"), configFileSelector: /* @__PURE__ */ __name((profile2) => { const profileValue = profile2[PROFILE_AWS_EC2_METADATA_V1_DISABLED]; fallbackBlockedFromProfile = !!profileValue && profileValue !== "false"; return fallbackBlockedFromProfile; }, "configFileSelector"), default: false }, { profile })(); if (init2.ec2MetadataV1Disabled || configValue) { const causes = []; if (init2.ec2MetadataV1Disabled) causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"); if (fallbackBlockedFromProfile) causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`); if (fallbackBlockedFromProcessEnv) causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`); throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(", ")}].`); } } const imdsProfile = (await retry(async () => { let profile2; try { profile2 = await getProfile(options); } catch (err) { if (err.statusCode === 401) { disableFetchToken = false; } throw err; } return profile2; }, maxRetries2)).trim(); return retry(async () => { let creds; try { creds = await getCredentialsFromProfile(imdsProfile, options, init2); } catch (err) { if (err.statusCode === 401) { disableFetchToken = false; } throw err; } return creds; }, maxRetries2); }, "getCredentials"); return async () => { const endpoint = await getInstanceMetadataEndpoint(); if (disableFetchToken) { logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)"); return getCredentials(maxRetries, { ...endpoint, timeout }); } else { let token; try { token = (await getMetadataToken({ ...endpoint, timeout })).toString(); } catch (error62) { if (error62?.statusCode === 400) { throw Object.assign(error62, { message: "EC2 Metadata token request returned error" }); } else if (error62.message === "TimeoutError" || [403, 404, 405].includes(error62.statusCode)) { disableFetchToken = true; } logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)"); return getCredentials(maxRetries, { ...endpoint, timeout }); } return getCredentials(maxRetries, { ...endpoint, headers: { [X_AWS_EC2_METADATA_TOKEN]: token }, timeout }); } }; }, "getInstanceMetadataProvider"); var getMetadataToken = /* @__PURE__ */ __name(async (options) => httpRequest({ ...options, path: IMDS_TOKEN_PATH, method: "PUT", headers: { "x-aws-ec2-metadata-token-ttl-seconds": "21600" } }), "getMetadataToken"); var getProfile = /* @__PURE__ */ __name(async (options) => (await httpRequest({ ...options, path: IMDS_PATH })).toString(), "getProfile"); var getCredentialsFromProfile = /* @__PURE__ */ __name(async (profile, options, init2) => { const credentialsResponse = JSON.parse((await httpRequest({ ...options, path: IMDS_PATH + profile })).toString()); if (!isImdsCredentials(credentialsResponse)) { throw new CredentialsProviderError("Invalid response received from instance metadata service.", { logger: init2.logger }); } return fromImdsCredentials(credentialsResponse); }, "getCredentialsFromProfile"); exports.DEFAULT_MAX_RETRIES = DEFAULT_MAX_RETRIES; exports.DEFAULT_TIMEOUT = DEFAULT_TIMEOUT; exports.ENV_CMDS_AUTH_TOKEN = ENV_CMDS_AUTH_TOKEN; exports.ENV_CMDS_FULL_URI = ENV_CMDS_FULL_URI; exports.ENV_CMDS_RELATIVE_URI = ENV_CMDS_RELATIVE_URI; exports.Endpoint = Endpoint; exports.fromContainerMetadata = fromContainerMetadata; exports.fromInstanceMetadata = fromInstanceMetadata; exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; exports.httpRequest = httpRequest; exports.providerConfigFromInit = providerConfigFromInit; } }); // ../../node_modules/.pnpm/@smithy+node-http-handler@4.12.1/node_modules/@smithy/node-http-handler/dist-cjs/index.js var require_dist_cjs7 = __commonJS({ "../../node_modules/.pnpm/@smithy+node-http-handler@4.12.1/node_modules/@smithy/node-http-handler/dist-cjs/index.js"(exports) { var { hasOwn: hasOwn2 } = (init_serde(), __toCommonJS(serde_exports)); var { streamCollector: streamCollector5 } = (init_serde(), __toCommonJS(serde_exports)); exports.streamCollector = streamCollector5; var { buildQueryString: buildQueryString2, HttpResponse: HttpResponse2 } = (init_protocols(), __toCommonJS(protocols_exports)); var node_https = __require("node:https"); var { Readable: Readable3 } = __require("node:stream"); var http2 = __require("node:http2"); function buildAbortError(abortSignal) { const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal ? abortSignal.reason : void 0; if (reason) { if (reason instanceof Error) { const abortError3 = new Error("Request aborted"); abortError3.name = "AbortError"; abortError3.cause = reason; return abortError3; } const abortError2 = new Error(String(reason)); abortError2.name = "AbortError"; return abortError2; } const abortError = new Error("Request aborted"); abortError.name = "AbortError"; return abortError; } __name(buildAbortError, "buildAbortError"); var NODEJS_TIMEOUT_ERROR_CODES2 = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; var getTransformedHeaders = /* @__PURE__ */ __name((headers) => { const transformedHeaders = {}; for (const name2 in headers) { if (!hasOwn2(headers, name2)) continue; const headerValues = headers[name2]; transformedHeaders[name2] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues; } return transformedHeaders; }, "getTransformedHeaders"); var timing = { setTimeout: /* @__PURE__ */ __name((cb, ms) => setTimeout(cb, ms), "setTimeout"), clearTimeout: /* @__PURE__ */ __name((timeoutId) => clearTimeout(timeoutId), "clearTimeout") }; var DEFER_EVENT_LISTENER_TIME$2 = 1e3; var setConnectionTimeout = /* @__PURE__ */ __name((request, reject, timeoutInMs = 0) => { if (!timeoutInMs) { return -1; } const registerTimeout = /* @__PURE__ */ __name((offset) => { const timeoutId = timing.setTimeout(() => { request.destroy(); reject(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${timeoutInMs} ms.`), { name: "TimeoutError" })); }, timeoutInMs - offset); const doWithSocket = /* @__PURE__ */ __name((socket) => { if (socket?.connecting) { socket.on("connect", () => { timing.clearTimeout(timeoutId); }); } else { timing.clearTimeout(timeoutId); } }, "doWithSocket"); if (request.socket) { doWithSocket(request.socket); } else { request.on("socket", doWithSocket); } }, "registerTimeout"); if (timeoutInMs < 2e3) { registerTimeout(0); return 0; } return timing.setTimeout(registerTimeout.bind(null, DEFER_EVENT_LISTENER_TIME$2), DEFER_EVENT_LISTENER_TIME$2); }, "setConnectionTimeout"); var setRequestTimeout = /* @__PURE__ */ __name((req2, reject, timeoutInMs = 0, throwOnRequestTimeout, logger) => { if (timeoutInMs) { return timing.setTimeout(() => { let msg = `@smithy/node-http-handler - [${throwOnRequestTimeout ? "ERROR" : "WARN"}] a request has exceeded the configured ${timeoutInMs} ms requestTimeout.`; if (throwOnRequestTimeout) { const error62 = Object.assign(new Error(msg), { name: "TimeoutError", code: "ETIMEDOUT" }); req2.destroy(error62); reject(error62); } else { msg += ` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`; logger?.warn?.(msg); } }, timeoutInMs); } return -1; }, "setRequestTimeout"); var DEFER_EVENT_LISTENER_TIME$1 = 3e3; var setSocketKeepAlive = /* @__PURE__ */ __name((request, { keepAlive, keepAliveMsecs }, deferTimeMs = DEFER_EVENT_LISTENER_TIME$1) => { if (keepAlive !== true) { return -1; } const registerListener = /* @__PURE__ */ __name(() => { if (request.socket) { request.socket.setKeepAlive(keepAlive, keepAliveMsecs || 0); } else { request.on("socket", (socket) => { socket.setKeepAlive(keepAlive, keepAliveMsecs || 0); }); } }, "registerListener"); if (deferTimeMs === 0) { registerListener(); return 0; } return timing.setTimeout(registerListener, deferTimeMs); }, "setSocketKeepAlive"); var DEFER_EVENT_LISTENER_TIME = 3e3; var setSocketTimeout = /* @__PURE__ */ __name((request, reject, timeoutInMs = 0) => { const registerTimeout = /* @__PURE__ */ __name((offset) => { const timeout = timeoutInMs - offset; const onTimeout = /* @__PURE__ */ __name(() => { request.destroy(); reject(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${timeoutInMs} ms of inactivity (configured by client requestHandler).`), { name: "TimeoutError" })); }, "onTimeout"); if (request.socket) { request.socket.setTimeout(timeout, onTimeout); request.on("close", () => request.socket?.removeListener("timeout", onTimeout)); } else { request.setTimeout(timeout, onTimeout); } }, "registerTimeout"); if (0 < timeoutInMs && timeoutInMs < 6e3) { registerTimeout(0); return 0; } return timing.setTimeout(registerTimeout.bind(null, timeoutInMs === 0 ? 0 : DEFER_EVENT_LISTENER_TIME), DEFER_EVENT_LISTENER_TIME); }, "setSocketTimeout"); var MIN_WAIT_TIME = 6e3; async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME, externalAgent = false) { const headers = request.headers; const expect = headers ? headers.Expect || headers.expect : void 0; let timeoutId = -1; let sendBody = true; if (!externalAgent && expect === "100-continue") { sendBody = await Promise.race([ new Promise((resolve) => { timeoutId = Number(timing.setTimeout(() => resolve(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs))); }), new Promise((resolve) => { httpRequest.on("continue", () => { timing.clearTimeout(timeoutId); resolve(true); }); httpRequest.on("response", () => { timing.clearTimeout(timeoutId); resolve(false); }); httpRequest.on("error", () => { timing.clearTimeout(timeoutId); resolve(false); }); }) ]); } if (sendBody) { writeBody(httpRequest, request.body); } } __name(writeRequestBody, "writeRequestBody"); function writeBody(httpRequest, body) { if (body instanceof Readable3) { body.pipe(httpRequest); return; } if (body) { const isBuffer = Buffer.isBuffer(body); const isString = typeof body === "string"; if (isBuffer || isString) { if (isBuffer && body.byteLength === 0) { httpRequest.end(); } else { httpRequest.end(body); } return; } const uint8 = body; if (typeof uint8 === "object" && uint8.buffer && typeof uint8.byteOffset === "number" && typeof uint8.byteLength === "number") { httpRequest.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength)); return; } httpRequest.end(Buffer.from(body)); return; } httpRequest.end(); } __name(writeBody, "writeBody"); var DEFAULT_REQUEST_TIMEOUT = 0; var hAgent = void 0; var hRequest = void 0; var NodeHttpHandler = class _NodeHttpHandler { static { __name(this, "NodeHttpHandler"); } config; configProvider; socketWarningTimestamp = 0; externalAgent = false; metadata = { handlerProtocol: "http/1.1" }; static create(instanceOrOptions) { if (typeof instanceOrOptions?.handle === "function") { return instanceOrOptions; } return new _NodeHttpHandler(instanceOrOptions); } static checkSocketUsage(agent, socketWarningTimestamp, logger = console) { const { sockets, requests, maxSockets } = agent; if (typeof maxSockets !== "number" || maxSockets === Infinity) { return socketWarningTimestamp; } const interval = 15e3; if (Date.now() - interval < socketWarningTimestamp) { return socketWarningTimestamp; } if (sockets && requests) { for (const origin in sockets) { if (!hasOwn2(sockets, origin)) continue; const socketsInUse = sockets[origin]?.length ?? 0; const requestsEnqueued = requests[origin]?.length ?? 0; if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) { logger?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${socketsInUse} and ${requestsEnqueued} additional requests are enqueued. See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`); return Date.now(); } } } return socketWarningTimestamp; } constructor(options) { this.configProvider = new Promise((resolve, reject) => { if (typeof options === "function") { options().then((_options) => { resolve(this.resolveDefaultConfig(_options)); }).catch(reject); } else { resolve(this.resolveDefaultConfig(options)); } }); } destroy() { this.config?.httpAgent?.destroy(); this.config?.httpsAgent?.destroy(); } async handle(request, { abortSignal, requestTimeout } = {}) { if (!this.config) { this.config = await this.configProvider; } const config3 = this.config; const logger = config3.logger; const isSSL = request.protocol === "https:"; if (!isSSL && !this.config.httpAgent) { this.config.httpAgent = await this.config.httpAgentProvider(); } return new Promise((_resolve, _reject) => { let writeRequestBodyPromise = void 0; let socketWarningTimeoutId = -1; let connectionTimeoutId = -1; let requestTimeoutId = -1; let socketTimeoutId = -1; let keepAliveTimeoutId = -1; const clearTimeouts = /* @__PURE__ */ __name(() => { timing.clearTimeout(socketWarningTimeoutId); timing.clearTimeout(connectionTimeoutId); timing.clearTimeout(requestTimeoutId); timing.clearTimeout(socketTimeoutId); timing.clearTimeout(keepAliveTimeoutId); }, "clearTimeouts"); const resolve = /* @__PURE__ */ __name(async (arg) => { await writeRequestBodyPromise; clearTimeouts(); _resolve(arg); }, "resolve"); const reject = /* @__PURE__ */ __name(async (arg) => { await writeRequestBodyPromise; clearTimeouts(); _reject(arg); }, "reject"); if (abortSignal?.aborted) { const abortError = buildAbortError(abortSignal); reject(abortError); return; } const headers = request.headers; const expectContinue = headers ? (headers.Expect ?? headers.expect) === "100-continue" : false; let agent = isSSL ? config3.httpsAgent : config3.httpAgent; if (expectContinue && !this.externalAgent) { agent = new (isSSL ? node_https.Agent : hAgent)({ keepAlive: false, maxSockets: Infinity }); } socketWarningTimeoutId = timing.setTimeout(() => { this.socketWarningTimestamp = _NodeHttpHandler.checkSocketUsage(agent, this.socketWarningTimestamp, logger); }, config3.socketAcquisitionWarningTimeout ?? (config3.requestTimeout ?? 2e3) + (config3.connectionTimeout ?? 1e3)); const queryString = request.query ? buildQueryString2(request.query) : ""; let auth = void 0; if (request.username != null || request.password != null) { const username = request.username ?? ""; const password2 = request.password ?? ""; auth = `${username}:${password2}`; } let path2 = request.path; if (queryString) { path2 += `?${queryString}`; } if (request.fragment) { path2 += `#${request.fragment}`; } let hostname3 = request.hostname ?? ""; if (hostname3[0] === "[" && hostname3.endsWith("]")) { hostname3 = request.hostname.slice(1, -1); } else { hostname3 = request.hostname; } const nodeHttpsOptions = { headers: request.headers, host: hostname3, method: request.method, path: path2, port: request.port, agent, auth }; const requestFunc = isSSL ? node_https.request : hRequest; const req2 = requestFunc(nodeHttpsOptions, (res) => { const httpResponse = new HttpResponse2({ statusCode: res.statusCode || -1, reason: res.statusMessage, headers: getTransformedHeaders(res.headers), body: res }); resolve({ response: httpResponse }); }); req2.on("error", (err) => { if (NODEJS_TIMEOUT_ERROR_CODES2.includes(err.code)) { reject(Object.assign(err, { name: "TimeoutError" })); } else { reject(err); } }); if (abortSignal) { const onAbort = /* @__PURE__ */ __name(() => { req2.destroy(); const abortError = buildAbortError(abortSignal); reject(abortError); }, "onAbort"); if (typeof abortSignal.addEventListener === "function") { const signal = abortSignal; signal.addEventListener("abort", onAbort, { once: true }); req2.once("close", () => signal.removeEventListener("abort", onAbort)); } else { abortSignal.onabort = onAbort; } } const effectiveRequestTimeout = requestTimeout ?? config3.requestTimeout; connectionTimeoutId = setConnectionTimeout(req2, reject, config3.connectionTimeout); requestTimeoutId = setRequestTimeout(req2, reject, effectiveRequestTimeout, config3.throwOnRequestTimeout, logger ?? console); socketTimeoutId = setSocketTimeout(req2, reject, config3.socketTimeout); const httpAgent = nodeHttpsOptions.agent; if (typeof httpAgent === "object" && "keepAlive" in httpAgent) { keepAliveTimeoutId = setSocketKeepAlive(req2, { keepAlive: httpAgent.keepAlive, keepAliveMsecs: httpAgent.keepAliveMsecs }); } writeRequestBodyPromise = writeRequestBody(req2, request, effectiveRequestTimeout, this.externalAgent).catch((e5) => { clearTimeouts(); return _reject(e5); }); }); } updateHttpClientConfig(key, value) { this.config = void 0; this.configProvider = this.configProvider.then((config3) => { if (key === /* @__PURE__ */ Symbol.for("logger")) { return { ...config3, logger: config3.logger ?? value }; } return { ...config3, [key]: value }; }); } httpHandlerConfigs() { return this.config ?? {}; } resolveDefaultConfig(options) { const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, logger } = options || {}; const keepAlive = true; const maxSockets = 50; return { connectionTimeout, requestTimeout, socketTimeout, socketAcquisitionWarningTimeout, throwOnRequestTimeout, httpAgentProvider: /* @__PURE__ */ __name(async () => { const node_http = __require("node:http"); const { Agent, request } = node_http.default ?? node_http; hRequest = request; hAgent = Agent; if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") { this.externalAgent = true; return httpAgent; } return new hAgent({ keepAlive, maxSockets, ...httpAgent }); }, "httpAgentProvider"), httpsAgent: (() => { if (httpsAgent instanceof node_https.Agent || typeof httpsAgent?.destroy === "function") { this.externalAgent = true; return httpsAgent; } return new node_https.Agent({ keepAlive, maxSockets, ...httpsAgent }); })(), logger }; } }; var ids = new Uint16Array(1); var ClientHttp2SessionRef = class { static { __name(this, "ClientHttp2SessionRef"); } id = ids[0]++; total = 0; max = 0; session; refs = 0; constructor(session) { session.unref(); this.session = session; } retain() { if (this.session.destroyed) { throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session."); } this.refs += 1; this.total += 1; this.max = Math.max(this.refs, this.max); this.session.ref(); } free() { if (this.session.destroyed) { return; } this.refs -= 1; if (this.refs === 0) { this.session.unref(); } if (this.refs < 0) { throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement."); } } deref() { return this.session; } close() { if (!this.session.closed) { this.session.close(); } } destroy() { this.refs = 0; if (!this.session.destroyed) { this.session.setTimeout(0); this.session.destroy(); } } useCount() { return this.refs; } }; var NodeHttp2ConnectionPool = class { static { __name(this, "NodeHttp2ConnectionPool"); } sessions = []; maxConcurrency = 0; constructor(sessions) { this.sessions = (sessions ?? []).map((session) => new ClientHttp2SessionRef(session)); } poll() { let cleanup = false; for (const session of this.sessions) { if (session.deref().destroyed) { cleanup = true; continue; } if (!this.maxConcurrency || session.useCount() < this.maxConcurrency) { return session; } } if (cleanup) { for (const session of this.sessions) { if (session.deref().destroyed) { this.remove(session); } } } } offerLast(ref) { this.sessions.push(ref); } remove(ref) { const ix = this.sessions.indexOf(ref); if (ix > -1) { this.sessions.splice(ix, 1); } } [Symbol.iterator]() { return this.sessions[Symbol.iterator](); } setMaxConcurrency(maxConcurrency) { this.maxConcurrency = maxConcurrency; } destroy(ref) { this.remove(ref); ref.destroy(); } }; var NodeHttp2ConnectionManager = class { static { __name(this, "NodeHttp2ConnectionManager"); } config; connectOptions; connectionPools = /* @__PURE__ */ new Map(); constructor(config3) { this.config = config3; if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) { throw new RangeError("maxConcurrency must be greater than zero."); } } lease(requestContext, connectionConfiguration) { const url2 = this.getUrlString(requestContext); const pool = this.getPool(url2); if (!this.config.disableConcurrency && !connectionConfiguration.isEventStream) { const available = pool.poll(); if (available) { available.retain(); return available; } } const ref = new ClientHttp2SessionRef(this.connect(url2)); const session = ref.deref(); if (this.config.maxConcurrency) { session.settings({ maxConcurrentStreams: this.config.maxConcurrency }, (err) => { if (err) { throw new Error("Fail to set maxConcurrentStreams to " + this.config.maxConcurrency + "when creating new session for " + requestContext.destination.toString()); } }); } const graceful = /* @__PURE__ */ __name(() => { this.removeFromPoolAndClose(url2, ref); }, "graceful"); const ensureDestroyed = /* @__PURE__ */ __name(() => { this.removeFromPoolAndCheckedDestroy(url2, ref); }, "ensureDestroyed"); session.on("goaway", graceful); session.on("error", ensureDestroyed); session.on("frameError", ensureDestroyed); session.on("close", ensureDestroyed); if (connectionConfiguration.requestTimeout) { session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed); } pool.offerLast(ref); ref.retain(); return ref; } release(_requestContext, ref) { ref.free(); } createIsolatedSession(requestContext, connectionConfiguration) { const url2 = this.getUrlString(requestContext); const ref = new ClientHttp2SessionRef(this.connect(url2)); const session = ref.deref(); session.settings({ maxConcurrentStreams: 1 }); const ensureDestroyed = /* @__PURE__ */ __name(() => { ref.destroy(); }, "ensureDestroyed"); session.on("error", ensureDestroyed); session.on("frameError", ensureDestroyed); session.on("close", ensureDestroyed); const timeout = connectionConfiguration.requestTimeout ?? 3e5; session.setTimeout(timeout, ensureDestroyed); ref.retain(); return ref; } destroy() { for (const [url2, connectionPool] of this.connectionPools) { for (const session of [...connectionPool]) { session.destroy(); } this.connectionPools.delete(url2); } } setMaxConcurrentStreams(maxConcurrentStreams) { if (maxConcurrentStreams && maxConcurrentStreams <= 0) { throw new RangeError("maxConcurrentStreams must be greater than zero."); } this.config.maxConcurrency = maxConcurrentStreams; for (const pool of this.connectionPools.values()) { pool.setMaxConcurrency(maxConcurrentStreams); } } setDisableConcurrentStreams(disableConcurrentStreams) { this.config.disableConcurrency = disableConcurrentStreams; } setNodeHttp2ConnectOptions(nodeHttp2ConnectOptions) { this.connectOptions = nodeHttp2ConnectOptions; } debug() { const pools = {}; for (const [url2, pool] of this.connectionPools) { const sessions = []; for (const ref of pool) { sessions.push({ id: ref.id, active: ref.useCount(), maxConcurrent: ref.max, totalRequests: ref.total }); } pools[url2] = { sessions }; } return pools; } removeFromPoolAndClose(authority, ref) { this.connectionPools.get(authority)?.remove(ref); ref.close(); } removeFromPoolAndCheckedDestroy(authority, ref) { this.connectionPools.get(authority)?.remove(ref); ref.destroy(); } getPool(url2) { if (!this.connectionPools.has(url2)) { const pool = new NodeHttp2ConnectionPool(); if (this.config.maxConcurrency) { pool.setMaxConcurrency(this.config.maxConcurrency); } this.connectionPools.set(url2, pool); } return this.connectionPools.get(url2); } getUrlString(request) { return request.destination.toString(); } connect(url2) { return this.connectOptions === void 0 ? http2.connect(url2) : http2.connect(url2, this.connectOptions); } }; var { constants } = http2; var NodeHttp2Handler = class _NodeHttp2Handler { static { __name(this, "NodeHttp2Handler"); } config; configProvider; metadata = { handlerProtocol: "h2" }; connectionManager = new NodeHttp2ConnectionManager({}); static create(instanceOrOptions) { if (typeof instanceOrOptions?.handle === "function") { return instanceOrOptions; } return new _NodeHttp2Handler(instanceOrOptions); } constructor(options) { this.configProvider = new Promise((resolve, reject) => { if (typeof options === "function") { options().then((opts) => { resolve(opts || {}); }).catch(reject); } else { resolve(options || {}); } }); } destroy() { this.connectionManager.destroy(); } async handle(request, { abortSignal, requestTimeout, isEventStream } = {}) { if (!this.config) { this.config = await this.configProvider; const { disableConcurrentStreams: disableConcurrentStreams2, maxConcurrentStreams, nodeHttp2ConnectOptions } = this.config; this.connectionManager.setDisableConcurrentStreams(disableConcurrentStreams2 ?? false); if (maxConcurrentStreams) { this.connectionManager.setMaxConcurrentStreams(maxConcurrentStreams); } if (nodeHttp2ConnectOptions) { this.connectionManager.setNodeHttp2ConnectOptions(nodeHttp2ConnectOptions); } } const { requestTimeout: configRequestTimeout, disableConcurrentStreams } = this.config; const useIsolatedSession = disableConcurrentStreams || isEventStream; const effectiveRequestTimeout = requestTimeout ?? configRequestTimeout; return new Promise((_resolve, _reject) => { let fulfilled = false; let writeRequestBodyPromise = void 0; const resolve = /* @__PURE__ */ __name(async (arg) => { await writeRequestBodyPromise; _resolve(arg); }, "resolve"); const reject = /* @__PURE__ */ __name(async (arg) => { await writeRequestBodyPromise; _reject(arg); }, "reject"); if (abortSignal?.aborted) { fulfilled = true; const abortError = buildAbortError(abortSignal); reject(abortError); return; } const { hostname: hostname3, method, port, protocol, query } = request; let auth = ""; if (request.username != null || request.password != null) { const username = request.username ?? ""; const password2 = request.password ?? ""; auth = `${username}:${password2}@`; } const authority = `${protocol}//${auth}${hostname3}${port ? `:${port}` : ""}`; const requestContext = { destination: new URL(authority) }; const connectConfig = { requestTimeout: this.config?.sessionTimeout, isEventStream }; const ref = useIsolatedSession ? this.connectionManager.createIsolatedSession(requestContext, connectConfig) : this.connectionManager.lease(requestContext, connectConfig); const session = ref.deref(); const rejectWithDestroy = /* @__PURE__ */ __name((err) => { if (useIsolatedSession) { ref.destroy(); } fulfilled = true; reject(err); }, "rejectWithDestroy"); const queryString = query ? buildQueryString2(query) : ""; let path2 = request.path; if (queryString) { path2 += `?${queryString}`; } if (request.fragment) { path2 += `#${request.fragment}`; } const clientHttp2Stream = session.request({ ...request.headers, [constants.HTTP2_HEADER_PATH]: path2, [constants.HTTP2_HEADER_METHOD]: method }); if (effectiveRequestTimeout) { clientHttp2Stream.setTimeout(effectiveRequestTimeout, () => { clientHttp2Stream.close(); const timeoutError = new Error(`Stream timed out because of no activity for ${effectiveRequestTimeout} ms`); timeoutError.name = "TimeoutError"; rejectWithDestroy(timeoutError); }); } if (abortSignal) { const onAbort = /* @__PURE__ */ __name(() => { clientHttp2Stream.close(); const abortError = buildAbortError(abortSignal); rejectWithDestroy(abortError); }, "onAbort"); if (typeof abortSignal.addEventListener === "function") { const signal = abortSignal; signal.addEventListener("abort", onAbort, { once: true }); clientHttp2Stream.once("close", () => signal.removeEventListener("abort", onAbort)); } else { abortSignal.onabort = onAbort; } } clientHttp2Stream.on("frameError", (type, code, id) => { rejectWithDestroy(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`)); }); clientHttp2Stream.on("error", rejectWithDestroy); clientHttp2Stream.on("aborted", () => { rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${clientHttp2Stream.rstCode}.`)); }); clientHttp2Stream.on("response", (headers) => { const httpResponse = new HttpResponse2({ statusCode: headers[":status"] ?? -1, headers: getTransformedHeaders(headers), body: clientHttp2Stream }); fulfilled = true; resolve({ response: httpResponse }); if (useIsolatedSession) { session.close(); clientHttp2Stream.on("end", () => { ref.destroy(); }); } }); clientHttp2Stream.on("close", () => { if (useIsolatedSession) { ref.destroy(); } else { this.connectionManager.release(requestContext, ref); } if (!fulfilled) { const error62 = new Error("Unexpected error: http2 request did not get a response"); if (session.destroyed) { error62.name = "TimeoutError"; } rejectWithDestroy(error62); } }); writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout); }); } updateHttpClientConfig(key, value) { this.config = void 0; this.configProvider = this.configProvider.then((config3) => { return { ...config3, [key]: value }; }); } httpHandlerConfigs() { return this.config ?? {}; } }; exports.DEFAULT_REQUEST_TIMEOUT = DEFAULT_REQUEST_TIMEOUT; exports.NodeHttp2Handler = NodeHttp2Handler; exports.NodeHttpHandler = NodeHttpHandler; } }); // ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.77/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js var require_dist_cjs8 = __commonJS({ "../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.77/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js"(exports) { var { setCredentialFeature: setCredentialFeature2 } = (init_client2(), __toCommonJS(client_exports2)); var { CredentialsProviderError } = (init_config(), __toCommonJS(config_exports)); var { NodeHttpHandler } = require_dist_cjs7(); var fs = __require("node:fs/promises"); var { HttpRequest: HttpRequest2 } = (init_protocols(), __toCommonJS(protocols_exports)); var { sdkStreamMixin: sdkStreamMixin2, parseRfc3339DateTime } = (init_serde(), __toCommonJS(serde_exports)); var ECS_CONTAINER_HOST = "169.254.170.2"; var EKS_CONTAINER_HOST_IPv4 = "169.254.170.23"; var EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]"; var checkUrl = /* @__PURE__ */ __name((url2, logger) => { if (url2.protocol === "https:") { return; } if (url2.hostname === ECS_CONTAINER_HOST || url2.hostname === EKS_CONTAINER_HOST_IPv4 || url2.hostname === EKS_CONTAINER_HOST_IPv6) { return; } if (url2.hostname.includes("[")) { if (url2.hostname === "[::1]" || url2.hostname === "[0000:0000:0000:0000:0000:0000:0000:0001]") { return; } } else { if (url2.hostname === "localhost") { return; } const ipComponents = url2.hostname.split("."); const inRange = /* @__PURE__ */ __name((component) => { const num = parseInt(component, 10); return 0 <= num && num <= 255; }, "inRange"); if (ipComponents[0] === "127" && inRange(ipComponents[1]) && inRange(ipComponents[2]) && inRange(ipComponents[3]) && ipComponents.length === 4) { return; } } throw new CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following: - loopback CIDR 127.0.0.0/8 or [::1/128] - ECS container host 169.254.170.2 - EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger }); }, "checkUrl"); function createGetRequest(url2) { return new HttpRequest2({ protocol: url2.protocol, hostname: url2.hostname, port: Number(url2.port), path: url2.pathname, query: Array.from(url2.searchParams.entries()).reduce((acc, [k5, v]) => { acc[k5] = v; return acc; }, {}), fragment: url2.hash }); } __name(createGetRequest, "createGetRequest"); async function getCredentials(response, logger) { const stream = sdkStreamMixin2(response.body); const str = await stream.transformToString(); if (response.statusCode === 200) { const parsed2 = JSON.parse(str); if (typeof parsed2.AccessKeyId !== "string" || typeof parsed2.SecretAccessKey !== "string" || typeof parsed2.Token !== "string" || typeof parsed2.Expiration !== "string") { throw new CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger }); } return { accessKeyId: parsed2.AccessKeyId, secretAccessKey: parsed2.SecretAccessKey, sessionToken: parsed2.Token, expiration: parseRfc3339DateTime(parsed2.Expiration) }; } if (response.statusCode >= 400 && response.statusCode < 500) { let parsedBody = {}; try { parsedBody = JSON.parse(str); } catch (e5) { } throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), { Code: parsedBody.Code, Message: parsedBody.Message }); } throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }); } __name(getCredentials, "getCredentials"); var retryWrapper = /* @__PURE__ */ __name((toRetry, maxRetries, delayMs) => { return async () => { for (let i5 = 0; i5 < maxRetries; ++i5) { try { return await toRetry(); } catch (e5) { await new Promise((resolve) => setTimeout(resolve, delayMs)); } } return await toRetry(); }; }, "retryWrapper"); var AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; var DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2"; var AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; var AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE"; var AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; var fromHttp = /* @__PURE__ */ __name((options = {}) => { options.logger?.debug("@aws-sdk/credential-provider-http - fromHttp"); let host; const relative = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI]; const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI]; const token = options.awsContainerAuthorizationToken ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN]; const tokenFile = options.awsContainerAuthorizationTokenFile ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE]; const warn = options.logger?.constructor?.name === "NoOpLogger" || !options.logger?.warn ? console.warn : options.logger.warn.bind(options.logger); if (relative && full) { warn("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."); warn("awsContainerCredentialsRelativeUri will take precedence."); } if (token && tokenFile) { warn("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."); warn("awsContainerAuthorizationTokenFile will take precedence."); } if (relative) { host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`; } else if (full) { host = full; } else { throw new CredentialsProviderError(`No HTTP credential provider host provided. Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger }); } const url2 = new URL(host); checkUrl(url2, options.logger); const requestHandler = NodeHttpHandler.create({ connectionTimeout: options.timeout ?? 1e3 }); const requestTimeout = options.timeout ?? 1e3; const provider = retryWrapper(async () => { const request = createGetRequest(url2); if (tokenFile) { request.headers.Authorization = validateToken((await fs.readFile(tokenFile)).toString()); } else if (token) { request.headers.Authorization = validateToken(token); } try { const result = await requestHandler.handle(request, { requestTimeout }); return getCredentials(result.response).then((creds) => setCredentialFeature2(creds, "CREDENTIALS_HTTP", "z")); } catch (e5) { throw new CredentialsProviderError(String(e5), { logger: options.logger }); } }, options.maxRetries ?? 3, options.timeout ?? 1e3); return async () => { try { return await provider(); } finally { requestHandler.destroy?.(); } }; }, "fromHttp"); var validateToken = /* @__PURE__ */ __name((token) => { if (token.includes("\r\n")) { throw new CredentialsProviderError("Authorization token contains invalid \\r\\n sequence."); } return token; }, "validateToken"); exports.fromHttp = fromHttp; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js function createAwsAuthSigv4HttpAuthOption(authParameters) { return { schemeId: "aws.auth#sigv4", signingProperties: { name: "sso-oauth", region: authParameters.region }, propertiesExtractor: /* @__PURE__ */ __name((config3, context) => ({ signingProperties: { config: config3, context } }), "propertiesExtractor") }; } function createSmithyApiNoAuthHttpAuthOption(authParameters) { return { schemeId: "smithy.api#noAuth" }; } var defaultSSOOIDCHttpAuthSchemeParametersProvider, defaultSSOOIDCHttpAuthSchemeProvider, resolveHttpAuthSchemeConfig; var init_httpAuthSchemeProvider = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js"() { init_httpAuthSchemes2(); init_client(); defaultSSOOIDCHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config3, context, input2) => { return { operation: getSmithyContext(context).operation, region: await normalizeProvider(config3.region)() || (() => { throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); })() }; }, "defaultSSOOIDCHttpAuthSchemeParametersProvider"); __name(createAwsAuthSigv4HttpAuthOption, "createAwsAuthSigv4HttpAuthOption"); __name(createSmithyApiNoAuthHttpAuthOption, "createSmithyApiNoAuthHttpAuthOption"); defaultSSOOIDCHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => { const options = []; switch (authParameters.operation) { case "CreateToken": { options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); break; } ; default: { options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); } } return options; }, "defaultSSOOIDCHttpAuthSchemeProvider"); resolveHttpAuthSchemeConfig = /* @__PURE__ */ __name((config3) => { const config_0 = resolveAwsSdkSigV4Config(config3); return Object.assign(config_0, { authSchemePreference: normalizeProvider(config3.authSchemePreference ?? []) }); }, "resolveHttpAuthSchemeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js var resolveClientEndpointParameters, commonParams; var init_EndpointParameters = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js"() { resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "sso-oauth" }); }, "resolveClientEndpointParameters"); commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/package.json var package_default; var init_package = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/package.json"() { package_default = { name: "@aws-sdk/nested-clients", version: "3.997.49", description: "Nested clients for AWS SDK packages.", homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients", license: "Apache-2.0", author: { name: "AWS SDK for JavaScript Team", url: "https://aws.amazon.com/sdk-for-javascript/" }, repository: { type: "git", url: "https://github.com/aws/aws-sdk-js-v3.git", directory: "packages/nested-clients" }, files: [ "./cognito-identity.d.ts", "./cognito-identity.js", "./signin.d.ts", "./signin.js", "./sso-oidc.d.ts", "./sso-oidc.js", "./sso.d.ts", "./sso.js", "./sts.d.ts", "./sts.js", "dist-*/**" ], sideEffects: false, main: "./dist-cjs/index.js", module: "./dist-es/index.js", browser: { "./dist-es/submodules/cognito-identity/runtimeConfig": "./dist-es/submodules/cognito-identity/runtimeConfig.browser", "./dist-es/submodules/signin/runtimeConfig": "./dist-es/submodules/signin/runtimeConfig.browser", "./dist-es/submodules/sso-oidc/runtimeConfig": "./dist-es/submodules/sso-oidc/runtimeConfig.browser", "./dist-es/submodules/sso/runtimeConfig": "./dist-es/submodules/sso/runtimeConfig.browser", "./dist-es/submodules/sts/runtimeConfig": "./dist-es/submodules/sts/runtimeConfig.browser" }, types: "./dist-types/index.d.ts", typesVersions: { "<4.5": { "dist-types/*": [ "dist-types/ts3.4/*" ], "*": [ "dist-types/ts3.4/submodules/*/index.d.ts" ] } }, "react-native": {}, exports: { "./package.json": "./package.json", "./sso-oidc": { types: "./dist-types/submodules/sso-oidc/index.d.ts", module: "./dist-es/submodules/sso-oidc/index.js", node: "./dist-cjs/submodules/sso-oidc/index.js", import: "./dist-es/submodules/sso-oidc/index.js", require: "./dist-cjs/submodules/sso-oidc/index.js" }, "./sts": { types: "./dist-types/submodules/sts/index.d.ts", module: "./dist-es/submodules/sts/index.js", node: "./dist-cjs/submodules/sts/index.js", import: "./dist-es/submodules/sts/index.js", require: "./dist-cjs/submodules/sts/index.js" }, "./signin": { types: "./dist-types/submodules/signin/index.d.ts", module: "./dist-es/submodules/signin/index.js", node: "./dist-cjs/submodules/signin/index.js", import: "./dist-es/submodules/signin/index.js", require: "./dist-cjs/submodules/signin/index.js" }, "./cognito-identity": { types: "./dist-types/submodules/cognito-identity/index.d.ts", module: "./dist-es/submodules/cognito-identity/index.js", node: "./dist-cjs/submodules/cognito-identity/index.js", import: "./dist-es/submodules/cognito-identity/index.js", require: "./dist-cjs/submodules/cognito-identity/index.js" }, "./sso": { types: "./dist-types/submodules/sso/index.d.ts", module: "./dist-es/submodules/sso/index.js", node: "./dist-cjs/submodules/sso/index.js", import: "./dist-es/submodules/sso/index.js", require: "./dist-cjs/submodules/sso/index.js" } }, scripts: { build: "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs", "build:cjs": "node ../../scripts/compilation/inline", "build:es": "premove dist-es && tsc -p tsconfig.es.json", "build:include:deps": 'yarn g:turbo run build -F="$npm_package_name"', "build:types": "premove dist-types && tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", clean: "premove dist-cjs dist-es dist-types", lint: "node ../../scripts/validation/submodules-linter.js", prebuild: "yarn lint", test: "yarn g:vitest run", "test:watch": "yarn g:vitest watch" }, dependencies: { "@aws-sdk/core": "^3.978.4", "@aws-sdk/signature-v4-multi-region": "^3.996.48", "@aws-sdk/types": "^3.974.6", "@smithy/core": "^3.36.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.12.1", "@smithy/types": "^4.19.0", tslib: "^2.6.2" }, devDependencies: { concurrently: "7.0.0", "downlevel-dts": "0.10.1", premove: "4.0.0", typescript: "~7.0.2" }, engines: { node: ">=20.0.0" } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js var k, a, b, c, d, e, f, g, h, i, j, _data, root, r, nodes, bdd; var init_bdd = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js"() { init_endpoints(); k = "ref"; a = -1; b = true; c = "isSet"; d = "PartitionResult"; e = "booleanEquals"; f = "getAttr"; g = { [k]: "Endpoint" }; h = { [k]: d }; i = {}; j = [{ [k]: "Region" }]; _data = { conditions: [ [c, [g]], [c, j], ["aws.partition", j, d], [e, [{ [k]: "UseFIPS" }, b]], [e, [{ [k]: "UseDualStack" }, b]], [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]], [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]], ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]] ], results: [ [a], [a, "Invalid Configuration: FIPS and custom endpoint are not supported"], [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"], [g, i], ["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i], [a, "FIPS and DualStack are enabled, but this partition does not support one or both"], ["https://oidc.{Region}.amazonaws.com", i], ["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", i], [a, "FIPS is enabled but this partition does not support FIPS"], ["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", i], [a, "DualStack is enabled but this partition does not support DualStack"], ["https://oidc.{Region}.{PartitionResult#dnsSuffix}", i], [a, "Invalid Configuration: Missing Region"] ] }; root = 2; r = 1e8; nodes = new Int32Array([ -1, 1, -1, 0, 13, 3, 1, 4, r + 12, 2, 5, r + 12, 3, 8, 6, 4, 7, r + 11, 5, r + 9, r + 10, 4, 11, 9, 6, 10, r + 8, 7, r + 6, r + 7, 5, 12, r + 5, 6, r + 4, r + 5, 3, r + 1, 14, 4, r + 2, r + 3 ]); bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js var cache, defaultEndpointResolver; var init_endpointResolver = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js"() { init_client2(); init_endpoints(); init_bdd(); cache = new EndpointCache({ size: 50, params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"] }); defaultEndpointResolver = /* @__PURE__ */ __name((endpointParams, context = {}) => { return cache.get(endpointParams, () => decideEndpoint(bdd, { endpointParams, logger: context.logger })); }, "defaultEndpointResolver"); customEndpointFunctions.aws = awsEndpointFunctions; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js var SSOOIDCServiceException; var init_SSOOIDCServiceException = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js"() { init_client(); SSOOIDCServiceException = class _SSOOIDCServiceException extends ServiceException { static { __name(this, "SSOOIDCServiceException"); } static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException"; constructor(options) { super(options); Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js var AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidGrantException, InvalidRequestException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException; var init_errors = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js"() { init_SSOOIDCServiceException(); AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException { static { __name(this, "AccessDeniedException"); } static shapeId = "com.amazonaws.ssooidc#AccessDeniedException"; name = "AccessDeniedException"; $fault = "client"; error; reason; error_description; constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AccessDeniedException.prototype); this.error = opts.error; this.reason = opts.reason; this.error_description = opts.error_description; } }; AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException { static { __name(this, "AuthorizationPendingException"); } static shapeId = "com.amazonaws.ssooidc#AuthorizationPendingException"; name = "AuthorizationPendingException"; $fault = "client"; error; error_description; constructor(opts) { super({ name: "AuthorizationPendingException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AuthorizationPendingException.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException { static { __name(this, "ExpiredTokenException"); } static shapeId = "com.amazonaws.ssooidc#ExpiredTokenException"; name = "ExpiredTokenException"; $fault = "client"; error; error_description; constructor(opts) { super({ name: "ExpiredTokenException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ExpiredTokenException.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; InternalServerException = class _InternalServerException extends SSOOIDCServiceException { static { __name(this, "InternalServerException"); } static shapeId = "com.amazonaws.ssooidc#InternalServerException"; name = "InternalServerException"; $fault = "server"; error; error_description; constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalServerException.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException { static { __name(this, "InvalidClientException"); } static shapeId = "com.amazonaws.ssooidc#InvalidClientException"; name = "InvalidClientException"; $fault = "client"; error; error_description; constructor(opts) { super({ name: "InvalidClientException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidClientException.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException { static { __name(this, "InvalidGrantException"); } static shapeId = "com.amazonaws.ssooidc#InvalidGrantException"; name = "InvalidGrantException"; $fault = "client"; error; error_description; constructor(opts) { super({ name: "InvalidGrantException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidGrantException.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException { static { __name(this, "InvalidRequestException"); } static shapeId = "com.amazonaws.ssooidc#InvalidRequestException"; name = "InvalidRequestException"; $fault = "client"; error; reason; error_description; constructor(opts) { super({ name: "InvalidRequestException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidRequestException.prototype); this.error = opts.error; this.reason = opts.reason; this.error_description = opts.error_description; } }; InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException { static { __name(this, "InvalidScopeException"); } static shapeId = "com.amazonaws.ssooidc#InvalidScopeException"; name = "InvalidScopeException"; $fault = "client"; error; error_description; constructor(opts) { super({ name: "InvalidScopeException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidScopeException.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; SlowDownException = class _SlowDownException extends SSOOIDCServiceException { static { __name(this, "SlowDownException"); } static shapeId = "com.amazonaws.ssooidc#SlowDownException"; name = "SlowDownException"; $fault = "client"; error; error_description; constructor(opts) { super({ name: "SlowDownException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _SlowDownException.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException { static { __name(this, "UnauthorizedClientException"); } static shapeId = "com.amazonaws.ssooidc#UnauthorizedClientException"; name = "UnauthorizedClientException"; $fault = "client"; error; error_description; constructor(opts) { super({ name: "UnauthorizedClientException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _UnauthorizedClientException.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException { static { __name(this, "UnsupportedGrantTypeException"); } static shapeId = "com.amazonaws.ssooidc#UnsupportedGrantTypeException"; name = "UnsupportedGrantTypeException"; $fault = "client"; error; error_description; constructor(opts) { super({ name: "UnsupportedGrantTypeException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype); this.error = opts.error; this.error_description = opts.error_description; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js var _ADE, _APE, _AT, _CS, _CT, _CTR, _CTRr, _CV, _ETE, _ICE, _IGE, _IRE, _ISE, _ISEn, _IT, _RT, _SDE, _UCE, _UGTE, _aT, _c, _cI, _cS, _cV, _co, _dC, _e, _eI, _ed, _gT, _h, _hE, _iT, _r, _rT, _rU, _s, _sc, _se, _tT, n0, _s_registry, SSOOIDCServiceException$, n0_registry, AccessDeniedException$, AuthorizationPendingException$, ExpiredTokenException$, InternalServerException$, InvalidClientException$, InvalidGrantException$, InvalidRequestException$, InvalidScopeException$, SlowDownException$, UnauthorizedClientException$, UnsupportedGrantTypeException$, errorTypeRegistries, AccessToken, ClientSecret, CodeVerifier, IdToken, RefreshToken, CreateTokenRequest$, CreateTokenResponse$, Scopes, CreateToken$; var init_schemas_0 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js"() { init_schema(); init_errors(); init_SSOOIDCServiceException(); _ADE = "AccessDeniedException"; _APE = "AuthorizationPendingException"; _AT = "AccessToken"; _CS = "ClientSecret"; _CT = "CreateToken"; _CTR = "CreateTokenRequest"; _CTRr = "CreateTokenResponse"; _CV = "CodeVerifier"; _ETE = "ExpiredTokenException"; _ICE = "InvalidClientException"; _IGE = "InvalidGrantException"; _IRE = "InvalidRequestException"; _ISE = "InternalServerException"; _ISEn = "InvalidScopeException"; _IT = "IdToken"; _RT = "RefreshToken"; _SDE = "SlowDownException"; _UCE = "UnauthorizedClientException"; _UGTE = "UnsupportedGrantTypeException"; _aT = "accessToken"; _c = "client"; _cI = "clientId"; _cS = "clientSecret"; _cV = "codeVerifier"; _co = "code"; _dC = "deviceCode"; _e = "error"; _eI = "expiresIn"; _ed = "error_description"; _gT = "grantType"; _h = "http"; _hE = "httpError"; _iT = "idToken"; _r = "reason"; _rT = "refreshToken"; _rU = "redirectUri"; _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc"; _sc = "scope"; _se = "server"; _tT = "tokenType"; n0 = "com.amazonaws.ssooidc"; _s_registry = new TypeRegistry(_s); SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []]; _s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException); n0_registry = new TypeRegistry(n0); AccessDeniedException$ = [ -3, n0, _ADE, { [_e]: _c, [_hE]: 400 }, [_e, _r, _ed], [0, 0, 0] ]; n0_registry.registerError(AccessDeniedException$, AccessDeniedException); AuthorizationPendingException$ = [ -3, n0, _APE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0] ]; n0_registry.registerError(AuthorizationPendingException$, AuthorizationPendingException); ExpiredTokenException$ = [ -3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0] ]; n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException); InternalServerException$ = [ -3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0] ]; n0_registry.registerError(InternalServerException$, InternalServerException); InvalidClientException$ = [ -3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0] ]; n0_registry.registerError(InvalidClientException$, InvalidClientException); InvalidGrantException$ = [ -3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0] ]; n0_registry.registerError(InvalidGrantException$, InvalidGrantException); InvalidRequestException$ = [ -3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_e, _r, _ed], [0, 0, 0] ]; n0_registry.registerError(InvalidRequestException$, InvalidRequestException); InvalidScopeException$ = [ -3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0] ]; n0_registry.registerError(InvalidScopeException$, InvalidScopeException); SlowDownException$ = [ -3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0] ]; n0_registry.registerError(SlowDownException$, SlowDownException); UnauthorizedClientException$ = [ -3, n0, _UCE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0] ]; n0_registry.registerError(UnauthorizedClientException$, UnauthorizedClientException); UnsupportedGrantTypeException$ = [ -3, n0, _UGTE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0] ]; n0_registry.registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException); errorTypeRegistries = [ _s_registry, n0_registry ]; AccessToken = [0, n0, _AT, 8, 0]; ClientSecret = [0, n0, _CS, 8, 0]; CodeVerifier = [0, n0, _CV, 8, 0]; IdToken = [0, n0, _IT, 8, 0]; RefreshToken = [0, n0, _RT, 8, 0]; CreateTokenRequest$ = [ 3, n0, _CTR, 0, [_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV], [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]], 3 ]; CreateTokenResponse$ = [ 3, n0, _CTRr, 0, [_aT, _tT, _eI, _rT, _iT], [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]] ]; Scopes = 64 | 0; CreateToken$ = [ 9, n0, _CT, { [_h]: ["POST", "/token", 200] }, () => CreateTokenRequest$, () => CreateTokenResponse$ ]; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js var getRuntimeConfig; var init_runtimeConfig_shared = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js"() { init_httpAuthSchemes2(); init_protocols2(); init_dist_es(); init_checksum(); init_client(); init_protocols(); init_serde(); init_httpAuthSchemeProvider(); init_endpointResolver(); init_schemas_0(); getRuntimeConfig = /* @__PURE__ */ __name((config3) => { return { apiVersion: "2019-06-10", base64Decoder: config3?.base64Decoder ?? fromBase64, base64Encoder: config3?.base64Encoder ?? toBase64, disableHostPrefix: config3?.disableHostPrefix ?? false, endpointProvider: config3?.endpointProvider ?? defaultEndpointResolver, extensions: config3?.extensions ?? [], httpAuthSchemeProvider: config3?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider, httpAuthSchemes: config3?.httpAuthSchemes ?? [ { schemeId: "aws.auth#sigv4", identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"), signer: new AwsSdkSigV4Signer() }, { schemeId: "smithy.api#noAuth", identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), "identityProvider"), signer: new NoAuthSigner() } ], logger: config3?.logger ?? new NoOpLogger(), protocol: config3?.protocol ?? AwsRestJsonProtocol, protocolSettings: config3?.protocolSettings ?? { defaultNamespace: "com.amazonaws.ssooidc", errorTypeRegistries, version: "2019-06-10", serviceTarget: "AWSSSOOIDCService" }, serviceId: config3?.serviceId ?? "SSO OIDC", sha256: config3?.sha256 ?? Sha256Node, urlParser: config3?.urlParser ?? parseUrl, utf8Decoder: config3?.utf8Decoder ?? fromUtf8, utf8Encoder: config3?.utf8Encoder ?? toUtf8 }; }, "getRuntimeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js var import_node_http_handler, getRuntimeConfig2; var init_runtimeConfig = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js"() { init_package(); init_client2(); init_httpAuthSchemes2(); init_client(); init_config(); init_retry(); init_serde(); import_node_http_handler = __toESM(require_dist_cjs7()); init_runtimeConfig_shared(); getRuntimeConfig2 = /* @__PURE__ */ __name((config3) => { emitWarningIfUnsupportedVersion(process.version); const defaultsMode = resolveDefaultsModeConfig(config3); const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(loadConfigsForDefaultMode), "defaultConfigProvider"); const clientSharedValues = getRuntimeConfig(config3); emitWarningIfUnsupportedVersion2(process.version); const loaderConfig = { profile: config3?.profile, logger: clientSharedValues.logger }; return { ...clientSharedValues, ...config3, runtime: "node", defaultsMode, authSchemePreference: config3?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config3?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config3?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), maxAttempts: config3?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config3), region: config3?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestHandler: import_node_http_handler.NodeHttpHandler.create(config3?.requestHandler ?? defaultConfigProvider), retryMode: config3?.retryMode ?? loadConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, "default") }, config3), streamCollector: config3?.streamCollector ?? import_node_http_handler.streamCollector, useDualstackEndpoint: config3?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), useFipsEndpoint: config3?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), userAgentAppId: config3?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig) }; }, "getRuntimeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js var getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig; var init_httpAuthExtensionConfiguration = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js"() { getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; return { setHttpAuthScheme(httpAuthScheme) { const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); if (index === -1) { _httpAuthSchemes.push(httpAuthScheme); } else { _httpAuthSchemes.splice(index, 1, httpAuthScheme); } }, httpAuthSchemes() { return _httpAuthSchemes; }, setHttpAuthSchemeProvider(httpAuthSchemeProvider) { _httpAuthSchemeProvider = httpAuthSchemeProvider; }, httpAuthSchemeProvider() { return _httpAuthSchemeProvider; }, setCredentials(credentials) { _credentials = credentials; }, credentials() { return _credentials; } }; }, "getHttpAuthExtensionConfiguration"); resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config3) => { return { httpAuthSchemes: config3.httpAuthSchemes(), httpAuthSchemeProvider: config3.httpAuthSchemeProvider(), credentials: config3.credentials() }; }, "resolveHttpAuthRuntimeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js var resolveRuntimeExtensions; var init_runtimeExtensions = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js"() { init_client2(); init_client(); init_protocols(); init_httpAuthExtensionConfiguration(); resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); }, "resolveRuntimeExtensions"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js var SSOOIDCClient; var init_SSOOIDCClient = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js"() { init_client2(); init_dist_es(); init_client(); init_config(); init_endpoints(); init_protocols(); init_retry(); init_schema(); init_httpAuthSchemeProvider(); init_EndpointParameters(); init_runtimeConfig(); init_runtimeExtensions(); SSOOIDCClient = class extends Client { static { __name(this, "SSOOIDCClient"); } config; constructor(...[configuration]) { const _config_0 = getRuntimeConfig2(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = resolveUserAgentConfig(_config_1); const _config_3 = resolveRetryConfig(_config_2); const _config_4 = resolveRegionConfig(_config_3); const _config_5 = resolveHostHeaderConfig(_config_4); const _config_6 = resolveEndpointConfig(_config_5); const _config_7 = resolveHttpAuthSchemeConfig(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use(getSchemaSerdePlugin(this.config)); this.middlewareStack.use(getUserAgentPlugin(this.config)); this.middlewareStack.use(getRetryPlugin(this.config)); this.middlewareStack.use(getContentLengthPlugin(this.config)); this.middlewareStack.use(getHostHeaderPlugin(this.config)); this.middlewareStack.use(getLoggerPlugin(this.config)); this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider, identityProviderConfigProvider: /* @__PURE__ */ __name(async (config3) => new DefaultIdentityProviderConfig({ "aws.auth#sigv4": config3.credentials }), "identityProviderConfigProvider") })); this.middlewareStack.use(getHttpSigningPlugin(this.config)); } destroy() { super.destroy(); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commandBuilder.js var command, _ep0, _mw0; var init_commandBuilder = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commandBuilder.js"() { init_client(); init_endpoints(); init_EndpointParameters(); command = makeBuilder(commonParams, "AWSSSOOIDCService", "SSOOIDCClient", getEndpointPlugin); _ep0 = {}; _mw0 = /* @__PURE__ */ __name((Command2, cs, config3, o3) => [], "_mw0"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js var CreateTokenCommand; var init_CreateTokenCommand = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js"() { init_commandBuilder(); init_schemas_0(); CreateTokenCommand = class extends command(_ep0, _mw0, "CreateToken", CreateToken$) { static { __name(this, "CreateTokenCommand"); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js var commands, SSOOIDC; var init_SSOOIDC = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js"() { init_client(); init_CreateTokenCommand(); init_SSOOIDCClient(); commands = { CreateTokenCommand }; SSOOIDC = class extends SSOOIDCClient { static { __name(this, "SSOOIDC"); } }; createAggregatedClient(commands, SSOOIDC); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/index.js var init_commands = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/index.js"() { init_CreateTokenCommand(); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/enums.js var AccessDeniedExceptionReason, InvalidRequestExceptionReason; var init_enums = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/enums.js"() { AccessDeniedExceptionReason = { KMS_ACCESS_DENIED: "KMS_AccessDeniedException" }; InvalidRequestExceptionReason = { KMS_DISABLED_KEY: "KMS_DisabledException", KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException", KMS_INVALID_STATE: "KMS_InvalidStateException", KMS_KEY_NOT_FOUND: "KMS_NotFoundException" }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js var init_models_0 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js"() { } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js var sso_oidc_exports = {}; __export(sso_oidc_exports, { $Command: () => Command, AccessDeniedException: () => AccessDeniedException, AccessDeniedException$: () => AccessDeniedException$, AccessDeniedExceptionReason: () => AccessDeniedExceptionReason, AuthorizationPendingException: () => AuthorizationPendingException, AuthorizationPendingException$: () => AuthorizationPendingException$, CreateToken$: () => CreateToken$, CreateTokenCommand: () => CreateTokenCommand, CreateTokenRequest$: () => CreateTokenRequest$, CreateTokenResponse$: () => CreateTokenResponse$, ExpiredTokenException: () => ExpiredTokenException, ExpiredTokenException$: () => ExpiredTokenException$, InternalServerException: () => InternalServerException, InternalServerException$: () => InternalServerException$, InvalidClientException: () => InvalidClientException, InvalidClientException$: () => InvalidClientException$, InvalidGrantException: () => InvalidGrantException, InvalidGrantException$: () => InvalidGrantException$, InvalidRequestException: () => InvalidRequestException, InvalidRequestException$: () => InvalidRequestException$, InvalidRequestExceptionReason: () => InvalidRequestExceptionReason, InvalidScopeException: () => InvalidScopeException, InvalidScopeException$: () => InvalidScopeException$, SSOOIDC: () => SSOOIDC, SSOOIDCClient: () => SSOOIDCClient, SSOOIDCServiceException: () => SSOOIDCServiceException, SSOOIDCServiceException$: () => SSOOIDCServiceException$, SlowDownException: () => SlowDownException, SlowDownException$: () => SlowDownException$, UnauthorizedClientException: () => UnauthorizedClientException, UnauthorizedClientException$: () => UnauthorizedClientException$, UnsupportedGrantTypeException: () => UnsupportedGrantTypeException, UnsupportedGrantTypeException$: () => UnsupportedGrantTypeException$, __Client: () => Client, errorTypeRegistries: () => errorTypeRegistries }); var init_sso_oidc = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js"() { init_SSOOIDCClient(); init_SSOOIDC(); init_commands(); init_client(); init_schemas_0(); init_enums(); init_errors(); init_models_0(); init_SSOOIDCServiceException(); } }); // ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1153.0/node_modules/@aws-sdk/token-providers/dist-cjs/index.js var require_dist_cjs9 = __commonJS({ "../../node_modules/.pnpm/@aws-sdk+token-providers@3.1153.0/node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports) { var { setTokenFeature: setTokenFeature2 } = (init_client2(), __toCommonJS(client_exports2)); var { getBearerTokenEnvKey: getBearerTokenEnvKey2 } = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports)); var { TokenProviderError, getSSOTokenFilepath, parseKnownFiles, getProfileName, loadSsoSessionData, getSSOTokenFromFile, memoize, chain } = (init_config(), __toCommonJS(config_exports)); var { promises } = __require("node:fs"); var fromEnvSigningName = /* @__PURE__ */ __name(({ logger, signingName } = {}) => async () => { logger?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"); if (!signingName) { throw new TokenProviderError("Please pass 'signingName' to compute environment variable key", { logger }); } const bearerTokenKey = getBearerTokenEnvKey2(signingName); if (!(bearerTokenKey in process.env)) { throw new TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger }); } const token = { token: process.env[bearerTokenKey] }; setTokenFeature2(token, "BEARER_SERVICE_ENV_VARS", "3"); return token; }, "fromEnvSigningName"); var EXPIRE_WINDOW_MS = 5 * 60 * 1e3; var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`; var getSsoOidcClient = /* @__PURE__ */ __name(async (ssoRegion, init2 = {}, callerClientConfig) => { const { SSOOIDCClient: SSOOIDCClient2 } = (init_sso_oidc(), __toCommonJS(sso_oidc_exports)); const coalesce = /* @__PURE__ */ __name((prop) => init2.clientConfig?.[prop] ?? init2.parentClientConfig?.[prop] ?? callerClientConfig?.[prop], "coalesce"); const ssoOidcClient = new SSOOIDCClient2(Object.assign({}, init2.clientConfig ?? {}, { region: ssoRegion ?? init2.clientConfig?.region, logger: coalesce("logger"), userAgentAppId: coalesce("userAgentAppId") })); return ssoOidcClient; }, "getSsoOidcClient"); var getNewSsoOidcToken = /* @__PURE__ */ __name(async (ssoToken, ssoRegion, init2 = {}, callerClientConfig) => { const { CreateTokenCommand: CreateTokenCommand2 } = (init_sso_oidc(), __toCommonJS(sso_oidc_exports)); const ssoOidcClient = await getSsoOidcClient(ssoRegion, init2, callerClientConfig); return ssoOidcClient.send(new CreateTokenCommand2({ clientId: ssoToken.clientId, clientSecret: ssoToken.clientSecret, refreshToken: ssoToken.refreshToken, grantType: "refresh_token" })); }, "getNewSsoOidcToken"); var validateTokenExpiry = /* @__PURE__ */ __name((token) => { if (token.expiration && token.expiration.getTime() < Date.now()) { throw new TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false); } }, "validateTokenExpiry"); var validateTokenKey = /* @__PURE__ */ __name((key, value, forRefresh = false) => { if (typeof value === "undefined") { throw new TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false); } }, "validateTokenKey"); var { writeFile } = promises; var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => { const tokenFilepath = getSSOTokenFilepath(id); const tokenString = JSON.stringify(ssoToken, null, 2); return writeFile(tokenFilepath, tokenString); }, "writeSSOTokenToFile"); var lastRefreshAttemptTimes = /* @__PURE__ */ new Map(); var inFlightRefreshes = /* @__PURE__ */ new Map(); var fromSso = /* @__PURE__ */ __name((init2 = {}) => async ({ callerClientConfig } = {}) => { init2.logger?.debug("@aws-sdk/token-providers - fromSso"); const profiles = await parseKnownFiles(init2); const profileName = getProfileName({ profile: init2.profile ?? callerClientConfig?.profile }); const profile = profiles[profileName]; if (!profile) { throw new TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false); } else if (!profile["sso_session"]) { throw new TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`); } const ssoSessionName = profile["sso_session"]; const inFlightRefresh = inFlightRefreshes.get(ssoSessionName); if (inFlightRefresh) { return await inFlightRefresh; } const ssoSessions = await loadSsoSessionData(init2); const ssoSession = ssoSessions[ssoSessionName]; if (!ssoSession) { throw new TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false); } for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) { if (!ssoSession[ssoSessionRequiredKey]) { throw new TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false); } } ssoSession["sso_start_url"]; const ssoRegion = ssoSession["sso_region"]; let ssoToken; try { ssoToken = await getSSOTokenFromFile(ssoSessionName); } catch (e5) { throw new TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false); } validateTokenKey("accessToken", ssoToken.accessToken); validateTokenKey("expiresAt", ssoToken.expiresAt); const { accessToken, expiresAt } = ssoToken; const existingToken = { token: accessToken, expiration: new Date(expiresAt) }; if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) { return existingToken; } const inFlightRefreshAfterReadingToken = inFlightRefreshes.get(ssoSessionName); if (inFlightRefreshAfterReadingToken) { return await inFlightRefreshAfterReadingToken; } const lastRefreshAttemptTime = lastRefreshAttemptTimes.get(ssoSessionName) ?? 0; if (Date.now() - lastRefreshAttemptTime < 30 * 1e3) { validateTokenExpiry(existingToken); return existingToken; } validateTokenKey("clientId", ssoToken.clientId, true); validateTokenKey("clientSecret", ssoToken.clientSecret, true); validateTokenKey("refreshToken", ssoToken.refreshToken, true); const refresh = (async () => { try { lastRefreshAttemptTimes.set(ssoSessionName, Date.now()); const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init2, callerClientConfig); validateTokenKey("accessToken", newSsoOidcToken.accessToken); validateTokenKey("expiresIn", newSsoOidcToken.expiresIn); const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1e3); try { await writeSSOTokenToFile(ssoSessionName, { ...ssoToken, accessToken: newSsoOidcToken.accessToken, expiresAt: newTokenExpiration.toISOString(), refreshToken: newSsoOidcToken.refreshToken }); } catch (error62) { } return { token: newSsoOidcToken.accessToken, expiration: newTokenExpiration }; } catch (error62) { validateTokenExpiry(existingToken); return existingToken; } })(); inFlightRefreshes.set(ssoSessionName, refresh); try { return await refresh; } finally { inFlightRefreshes.delete(ssoSessionName); } }, "fromSso"); var fromStatic = /* @__PURE__ */ __name(({ token, logger }) => async () => { logger?.debug("@aws-sdk/token-providers - fromStatic"); if (!token || !token.token) { throw new TokenProviderError(`Please pass a valid token to fromStatic`, false); } return token; }, "fromStatic"); var nodeProvider = /* @__PURE__ */ __name((init2 = {}) => memoize(chain(fromSso(init2), async () => { throw new TokenProviderError("Could not load token from any providers", false); }), (token) => token.expiration !== void 0 && token.expiration.getTime() - Date.now() < 3e5, (token) => token.expiration !== void 0), "nodeProvider"); exports.fromEnvSigningName = fromEnvSigningName; exports.fromSso = fromSso; exports.fromStatic = fromStatic; exports.nodeProvider = nodeProvider; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js function createAwsAuthSigv4HttpAuthOption2(authParameters) { return { schemeId: "aws.auth#sigv4", signingProperties: { name: "awsssoportal", region: authParameters.region }, propertiesExtractor: /* @__PURE__ */ __name((config3, context) => ({ signingProperties: { config: config3, context } }), "propertiesExtractor") }; } function createSmithyApiNoAuthHttpAuthOption2(authParameters) { return { schemeId: "smithy.api#noAuth" }; } var defaultSSOHttpAuthSchemeParametersProvider, defaultSSOHttpAuthSchemeProvider, resolveHttpAuthSchemeConfig2; var init_httpAuthSchemeProvider2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js"() { init_httpAuthSchemes2(); init_client(); defaultSSOHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config3, context, input2) => { return { operation: getSmithyContext(context).operation, region: await normalizeProvider(config3.region)() || (() => { throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); })() }; }, "defaultSSOHttpAuthSchemeParametersProvider"); __name(createAwsAuthSigv4HttpAuthOption2, "createAwsAuthSigv4HttpAuthOption"); __name(createSmithyApiNoAuthHttpAuthOption2, "createSmithyApiNoAuthHttpAuthOption"); defaultSSOHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => { const options = []; switch (authParameters.operation) { case "GetRoleCredentials": { options.push(createSmithyApiNoAuthHttpAuthOption2(authParameters)); break; } ; default: { options.push(createAwsAuthSigv4HttpAuthOption2(authParameters)); } } return options; }, "defaultSSOHttpAuthSchemeProvider"); resolveHttpAuthSchemeConfig2 = /* @__PURE__ */ __name((config3) => { const config_0 = resolveAwsSdkSigV4Config(config3); return Object.assign(config_0, { authSchemePreference: normalizeProvider(config3.authSchemePreference ?? []) }); }, "resolveHttpAuthSchemeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/EndpointParameters.js var resolveClientEndpointParameters2, commonParams2; var init_EndpointParameters2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/EndpointParameters.js"() { resolveClientEndpointParameters2 = /* @__PURE__ */ __name((options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "awsssoportal" }); }, "resolveClientEndpointParameters"); commonParams2 = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js var k2, a2, b2, c2, d2, e2, f2, g2, h2, i2, j2, _data2, root2, r2, nodes2, bdd2; var init_bdd2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js"() { init_endpoints(); k2 = "ref"; a2 = -1; b2 = true; c2 = "isSet"; d2 = "PartitionResult"; e2 = "booleanEquals"; f2 = "getAttr"; g2 = { [k2]: "Endpoint" }; h2 = { [k2]: d2 }; i2 = {}; j2 = [{ [k2]: "Region" }]; _data2 = { conditions: [ [c2, [g2]], [c2, j2], ["aws.partition", j2, d2], [e2, [{ [k2]: "UseFIPS" }, b2]], [e2, [{ [k2]: "UseDualStack" }, b2]], [e2, [{ fn: f2, argv: [h2, "supportsDualStack"] }, b2]], [e2, [{ fn: f2, argv: [h2, "supportsFIPS"] }, b2]], ["stringEquals", [{ fn: f2, argv: [h2, "name"] }, "aws-us-gov"]] ], results: [ [a2], [a2, "Invalid Configuration: FIPS and custom endpoint are not supported"], [a2, "Invalid Configuration: Dualstack and custom endpoint are not supported"], [g2, i2], ["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i2], [a2, "FIPS and DualStack are enabled, but this partition does not support one or both"], ["https://portal.sso.{Region}.amazonaws.com", i2], ["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", i2], [a2, "FIPS is enabled but this partition does not support FIPS"], ["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", i2], [a2, "DualStack is enabled but this partition does not support DualStack"], ["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", i2], [a2, "Invalid Configuration: Missing Region"] ] }; root2 = 2; r2 = 1e8; nodes2 = new Int32Array([ -1, 1, -1, 0, 13, 3, 1, 4, r2 + 12, 2, 5, r2 + 12, 3, 8, 6, 4, 7, r2 + 11, 5, r2 + 9, r2 + 10, 4, 11, 9, 6, 10, r2 + 8, 7, r2 + 6, r2 + 7, 5, 12, r2 + 5, 6, r2 + 4, r2 + 5, 3, r2 + 1, 14, 4, r2 + 2, r2 + 3 ]); bdd2 = BinaryDecisionDiagram.from(nodes2, root2, _data2.conditions, _data2.results); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js var cache2, defaultEndpointResolver2; var init_endpointResolver2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js"() { init_client2(); init_endpoints(); init_bdd2(); cache2 = new EndpointCache({ size: 50, params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"] }); defaultEndpointResolver2 = /* @__PURE__ */ __name((endpointParams, context = {}) => { return cache2.get(endpointParams, () => decideEndpoint(bdd2, { endpointParams, logger: context.logger })); }, "defaultEndpointResolver"); customEndpointFunctions.aws = awsEndpointFunctions; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js var SSOServiceException; var init_SSOServiceException = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js"() { init_client(); SSOServiceException = class _SSOServiceException extends ServiceException { static { __name(this, "SSOServiceException"); } static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException"; constructor(options) { super(options); Object.setPrototypeOf(this, _SSOServiceException.prototype); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js var InvalidRequestException2, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException2; var init_errors2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js"() { init_SSOServiceException(); InvalidRequestException2 = class _InvalidRequestException extends SSOServiceException { static { __name(this, "InvalidRequestException"); } static shapeId = "com.amazonaws.sso#InvalidRequestException"; name = "InvalidRequestException"; $fault = "client"; constructor(opts) { super({ name: "InvalidRequestException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidRequestException.prototype); } }; ResourceNotFoundException = class _ResourceNotFoundException extends SSOServiceException { static { __name(this, "ResourceNotFoundException"); } static shapeId = "com.amazonaws.sso#ResourceNotFoundException"; name = "ResourceNotFoundException"; $fault = "client"; constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); } }; TooManyRequestsException = class _TooManyRequestsException extends SSOServiceException { static { __name(this, "TooManyRequestsException"); } static shapeId = "com.amazonaws.sso#TooManyRequestsException"; name = "TooManyRequestsException"; $fault = "client"; constructor(opts) { super({ name: "TooManyRequestsException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _TooManyRequestsException.prototype); } }; UnauthorizedException2 = class _UnauthorizedException extends SSOServiceException { static { __name(this, "UnauthorizedException"); } static shapeId = "com.amazonaws.sso#UnauthorizedException"; name = "UnauthorizedException"; $fault = "client"; constructor(opts) { super({ name: "UnauthorizedException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _UnauthorizedException.prototype); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js var _ATT, _GRC, _GRCR, _GRCRe, _IRE2, _RC, _RNFE, _SAKT, _STT, _TMRE, _UE, _aI, _aKI, _aT2, _ai, _c2, _e2, _ex, _h2, _hE2, _hH, _hQ, _m, _rC, _rN, _rn, _s2, _sAK, _sT, _xasbt, n02, _s_registry2, SSOServiceException$, n0_registry2, InvalidRequestException$2, ResourceNotFoundException$, TooManyRequestsException$, UnauthorizedException$, errorTypeRegistries2, AccessTokenType, SecretAccessKeyType, SessionTokenType, GetRoleCredentialsRequest$, GetRoleCredentialsResponse$, RoleCredentials$, GetRoleCredentials$; var init_schemas_02 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js"() { init_schema(); init_errors2(); init_SSOServiceException(); _ATT = "AccessTokenType"; _GRC = "GetRoleCredentials"; _GRCR = "GetRoleCredentialsRequest"; _GRCRe = "GetRoleCredentialsResponse"; _IRE2 = "InvalidRequestException"; _RC = "RoleCredentials"; _RNFE = "ResourceNotFoundException"; _SAKT = "SecretAccessKeyType"; _STT = "SessionTokenType"; _TMRE = "TooManyRequestsException"; _UE = "UnauthorizedException"; _aI = "accountId"; _aKI = "accessKeyId"; _aT2 = "accessToken"; _ai = "account_id"; _c2 = "client"; _e2 = "error"; _ex = "expiration"; _h2 = "http"; _hE2 = "httpError"; _hH = "httpHeader"; _hQ = "httpQuery"; _m = "message"; _rC = "roleCredentials"; _rN = "roleName"; _rn = "role_name"; _s2 = "smithy.ts.sdk.synthetic.com.amazonaws.sso"; _sAK = "secretAccessKey"; _sT = "sessionToken"; _xasbt = "x-amz-sso_bearer_token"; n02 = "com.amazonaws.sso"; _s_registry2 = new TypeRegistry(_s2); SSOServiceException$ = [-3, _s2, "SSOServiceException", 0, [], []]; _s_registry2.registerError(SSOServiceException$, SSOServiceException); n0_registry2 = new TypeRegistry(n02); InvalidRequestException$2 = [ -3, n02, _IRE2, { [_e2]: _c2, [_hE2]: 400 }, [_m], [0] ]; n0_registry2.registerError(InvalidRequestException$2, InvalidRequestException2); ResourceNotFoundException$ = [ -3, n02, _RNFE, { [_e2]: _c2, [_hE2]: 404 }, [_m], [0] ]; n0_registry2.registerError(ResourceNotFoundException$, ResourceNotFoundException); TooManyRequestsException$ = [ -3, n02, _TMRE, { [_e2]: _c2, [_hE2]: 429 }, [_m], [0] ]; n0_registry2.registerError(TooManyRequestsException$, TooManyRequestsException); UnauthorizedException$ = [ -3, n02, _UE, { [_e2]: _c2, [_hE2]: 401 }, [_m], [0] ]; n0_registry2.registerError(UnauthorizedException$, UnauthorizedException2); errorTypeRegistries2 = [ _s_registry2, n0_registry2 ]; AccessTokenType = [0, n02, _ATT, 8, 0]; SecretAccessKeyType = [0, n02, _SAKT, 8, 0]; SessionTokenType = [0, n02, _STT, 8, 0]; GetRoleCredentialsRequest$ = [ 3, n02, _GRCR, 0, [_rN, _aI, _aT2], [[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]], 3 ]; GetRoleCredentialsResponse$ = [ 3, n02, _GRCRe, 0, [_rC], [[() => RoleCredentials$, 0]] ]; RoleCredentials$ = [ 3, n02, _RC, 0, [_aKI, _sAK, _sT, _ex], [0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1] ]; GetRoleCredentials$ = [ 9, n02, _GRC, { [_h2]: ["GET", "/federation/credentials", 200] }, () => GetRoleCredentialsRequest$, () => GetRoleCredentialsResponse$ ]; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js var getRuntimeConfig3; var init_runtimeConfig_shared2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js"() { init_httpAuthSchemes2(); init_protocols2(); init_dist_es(); init_checksum(); init_client(); init_protocols(); init_serde(); init_httpAuthSchemeProvider2(); init_endpointResolver2(); init_schemas_02(); getRuntimeConfig3 = /* @__PURE__ */ __name((config3) => { return { apiVersion: "2019-06-10", base64Decoder: config3?.base64Decoder ?? fromBase64, base64Encoder: config3?.base64Encoder ?? toBase64, disableHostPrefix: config3?.disableHostPrefix ?? false, endpointProvider: config3?.endpointProvider ?? defaultEndpointResolver2, extensions: config3?.extensions ?? [], httpAuthSchemeProvider: config3?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider, httpAuthSchemes: config3?.httpAuthSchemes ?? [ { schemeId: "aws.auth#sigv4", identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"), signer: new AwsSdkSigV4Signer() }, { schemeId: "smithy.api#noAuth", identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), "identityProvider"), signer: new NoAuthSigner() } ], logger: config3?.logger ?? new NoOpLogger(), protocol: config3?.protocol ?? AwsRestJsonProtocol, protocolSettings: config3?.protocolSettings ?? { defaultNamespace: "com.amazonaws.sso", errorTypeRegistries: errorTypeRegistries2, version: "2019-06-10", serviceTarget: "SWBPortalService" }, serviceId: config3?.serviceId ?? "SSO", sha256: config3?.sha256 ?? Sha256Node, urlParser: config3?.urlParser ?? parseUrl, utf8Decoder: config3?.utf8Decoder ?? fromUtf8, utf8Encoder: config3?.utf8Encoder ?? toUtf8 }; }, "getRuntimeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js var import_node_http_handler2, getRuntimeConfig4; var init_runtimeConfig2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js"() { init_package(); init_client2(); init_httpAuthSchemes2(); init_client(); init_config(); init_retry(); init_serde(); import_node_http_handler2 = __toESM(require_dist_cjs7()); init_runtimeConfig_shared2(); getRuntimeConfig4 = /* @__PURE__ */ __name((config3) => { emitWarningIfUnsupportedVersion(process.version); const defaultsMode = resolveDefaultsModeConfig(config3); const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(loadConfigsForDefaultMode), "defaultConfigProvider"); const clientSharedValues = getRuntimeConfig3(config3); emitWarningIfUnsupportedVersion2(process.version); const loaderConfig = { profile: config3?.profile, logger: clientSharedValues.logger }; return { ...clientSharedValues, ...config3, runtime: "node", defaultsMode, authSchemePreference: config3?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config3?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config3?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), maxAttempts: config3?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config3), region: config3?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestHandler: import_node_http_handler2.NodeHttpHandler.create(config3?.requestHandler ?? defaultConfigProvider), retryMode: config3?.retryMode ?? loadConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, "default") }, config3), streamCollector: config3?.streamCollector ?? import_node_http_handler2.streamCollector, useDualstackEndpoint: config3?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), useFipsEndpoint: config3?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), userAgentAppId: config3?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig) }; }, "getRuntimeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js var getHttpAuthExtensionConfiguration2, resolveHttpAuthRuntimeConfig2; var init_httpAuthExtensionConfiguration2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js"() { getHttpAuthExtensionConfiguration2 = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; return { setHttpAuthScheme(httpAuthScheme) { const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); if (index === -1) { _httpAuthSchemes.push(httpAuthScheme); } else { _httpAuthSchemes.splice(index, 1, httpAuthScheme); } }, httpAuthSchemes() { return _httpAuthSchemes; }, setHttpAuthSchemeProvider(httpAuthSchemeProvider) { _httpAuthSchemeProvider = httpAuthSchemeProvider; }, httpAuthSchemeProvider() { return _httpAuthSchemeProvider; }, setCredentials(credentials) { _credentials = credentials; }, credentials() { return _credentials; } }; }, "getHttpAuthExtensionConfiguration"); resolveHttpAuthRuntimeConfig2 = /* @__PURE__ */ __name((config3) => { return { httpAuthSchemes: config3.httpAuthSchemes(), httpAuthSchemeProvider: config3.httpAuthSchemeProvider(), credentials: config3.credentials() }; }, "resolveHttpAuthRuntimeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js var resolveRuntimeExtensions2; var init_runtimeExtensions2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js"() { init_client2(); init_client(); init_protocols(); init_httpAuthExtensionConfiguration2(); resolveRuntimeExtensions2 = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration2(runtimeConfig)); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig2(extensionConfiguration)); }, "resolveRuntimeExtensions"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js var SSOClient; var init_SSOClient = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js"() { init_client2(); init_dist_es(); init_client(); init_config(); init_endpoints(); init_protocols(); init_retry(); init_schema(); init_httpAuthSchemeProvider2(); init_EndpointParameters2(); init_runtimeConfig2(); init_runtimeExtensions2(); SSOClient = class extends Client { static { __name(this, "SSOClient"); } config; constructor(...[configuration]) { const _config_0 = getRuntimeConfig4(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters2(_config_0); const _config_2 = resolveUserAgentConfig(_config_1); const _config_3 = resolveRetryConfig(_config_2); const _config_4 = resolveRegionConfig(_config_3); const _config_5 = resolveHostHeaderConfig(_config_4); const _config_6 = resolveEndpointConfig(_config_5); const _config_7 = resolveHttpAuthSchemeConfig2(_config_6); const _config_8 = resolveRuntimeExtensions2(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use(getSchemaSerdePlugin(this.config)); this.middlewareStack.use(getUserAgentPlugin(this.config)); this.middlewareStack.use(getRetryPlugin(this.config)); this.middlewareStack.use(getContentLengthPlugin(this.config)); this.middlewareStack.use(getHostHeaderPlugin(this.config)); this.middlewareStack.use(getLoggerPlugin(this.config)); this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { httpAuthSchemeParametersProvider: defaultSSOHttpAuthSchemeParametersProvider, identityProviderConfigProvider: /* @__PURE__ */ __name(async (config3) => new DefaultIdentityProviderConfig({ "aws.auth#sigv4": config3.credentials }), "identityProviderConfigProvider") })); this.middlewareStack.use(getHttpSigningPlugin(this.config)); } destroy() { super.destroy(); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commandBuilder.js var command2, _ep02, _mw02; var init_commandBuilder2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commandBuilder.js"() { init_client(); init_endpoints(); init_EndpointParameters2(); command2 = makeBuilder(commonParams2, "SWBPortalService", "SSOClient", getEndpointPlugin); _ep02 = {}; _mw02 = /* @__PURE__ */ __name((Command2, cs, config3, o3) => [], "_mw0"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js var GetRoleCredentialsCommand; var init_GetRoleCredentialsCommand = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js"() { init_commandBuilder2(); init_schemas_02(); GetRoleCredentialsCommand = class extends command2(_ep02, _mw02, "GetRoleCredentials", GetRoleCredentials$) { static { __name(this, "GetRoleCredentialsCommand"); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSO.js var commands2, SSO; var init_SSO = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSO.js"() { init_client(); init_GetRoleCredentialsCommand(); init_SSOClient(); commands2 = { GetRoleCredentialsCommand }; SSO = class extends SSOClient { static { __name(this, "SSO"); } }; createAggregatedClient(commands2, SSO); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/index.js var init_commands2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/index.js"() { init_GetRoleCredentialsCommand(); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/models_0.js var init_models_02 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/models_0.js"() { } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/index.js var sso_exports = {}; __export(sso_exports, { $Command: () => Command, GetRoleCredentials$: () => GetRoleCredentials$, GetRoleCredentialsCommand: () => GetRoleCredentialsCommand, GetRoleCredentialsRequest$: () => GetRoleCredentialsRequest$, GetRoleCredentialsResponse$: () => GetRoleCredentialsResponse$, InvalidRequestException: () => InvalidRequestException2, InvalidRequestException$: () => InvalidRequestException$2, ResourceNotFoundException: () => ResourceNotFoundException, ResourceNotFoundException$: () => ResourceNotFoundException$, RoleCredentials$: () => RoleCredentials$, SSO: () => SSO, SSOClient: () => SSOClient, SSOServiceException: () => SSOServiceException, SSOServiceException$: () => SSOServiceException$, TooManyRequestsException: () => TooManyRequestsException, TooManyRequestsException$: () => TooManyRequestsException$, UnauthorizedException: () => UnauthorizedException2, UnauthorizedException$: () => UnauthorizedException$, __Client: () => Client, errorTypeRegistries: () => errorTypeRegistries2 }); var init_sso = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/index.js"() { init_SSOClient(); init_SSO(); init_commands2(); init_client(); init_schemas_02(); init_errors2(); init_models_02(); init_SSOServiceException(); } }); // ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.19/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js var require_loadSso_BGYXHf8s = __commonJS({ "../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.19/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js"(exports) { var { GetRoleCredentialsCommand: GetRoleCredentialsCommand2, SSOClient: SSOClient2 } = (init_sso(), __toCommonJS(sso_exports)); exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand2; exports.SSOClient = SSOClient2; } }); // ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.19/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js var require_dist_cjs10 = __commonJS({ "../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.19/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports) { var { CredentialsProviderError, getSSOTokenFromFile, getProfileName, parseKnownFiles, loadSsoSessionData } = (init_config(), __toCommonJS(config_exports)); var { setCredentialFeature: setCredentialFeature2 } = (init_client2(), __toCommonJS(client_exports2)); var { fromSso } = require_dist_cjs9(); var isSsoProfile = /* @__PURE__ */ __name((arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"), "isSsoProfile"); var SHOULD_FAIL_CREDENTIAL_CHAIN = false; var resolveSSOCredentials = /* @__PURE__ */ __name(async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger }) => { let token; const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`; if (ssoSession) { try { const _token = await fromSso({ profile, filepath, configFilepath, ignoreCache, clientConfig, parentClientConfig, logger })({ callerClientConfig }); token = { accessToken: _token.token, expiresAt: new Date(_token.expiration).toISOString() }; } catch (e5) { throw new CredentialsProviderError(e5.message, { tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, logger }); } } else { try { token = await getSSOTokenFromFile(ssoStartUrl); } catch (e5) { throw new CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, { tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, logger }); } } if (new Date(token.expiresAt).getTime() - Date.now() <= 0) { throw new CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, { tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, logger }); } const { accessToken } = token; const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = require_loadSso_BGYXHf8s(); const sso = ssoClient || new SSOClient2(Object.assign({}, clientConfig ?? {}, { logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger, region: clientConfig?.region ?? ssoRegion, userAgentAppId: clientConfig?.userAgentAppId ?? callerClientConfig?.userAgentAppId ?? parentClientConfig?.userAgentAppId })); let ssoResp; try { ssoResp = await sso.send(new GetRoleCredentialsCommand2({ accountId: ssoAccountId, roleName: ssoRoleName, accessToken })); } catch (e5) { throw new CredentialsProviderError(e5, { tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, logger }); } const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {} } = ssoResp; if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { throw new CredentialsProviderError("SSO returns an invalid temporary credential.", { tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, logger }); } const credentials = { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration), ...credentialScope && { credentialScope }, ...accountId && { accountId } }; if (ssoSession) { setCredentialFeature2(credentials, "CREDENTIALS_SSO", "s"); } else { setCredentialFeature2(credentials, "CREDENTIALS_SSO_LEGACY", "u"); } return credentials; }, "resolveSSOCredentials"); var validateSsoProfile = /* @__PURE__ */ __name((profile, logger) => { const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile; if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) { throw new CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")} Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger }); } return profile; }, "validateSsoProfile"); var fromSSO = /* @__PURE__ */ __name((init2 = {}) => async ({ callerClientConfig } = {}) => { init2.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO"); const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init2; const { ssoClient } = init2; const profileName = getProfileName({ profile: init2.profile ?? callerClientConfig?.profile }); if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) { const profiles = await parseKnownFiles(init2); const profile = profiles[profileName]; if (!profile) { throw new CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init2.logger }); } if (!isSsoProfile(profile)) { throw new CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, { logger: init2.logger }); } if (profile?.sso_session) { const ssoSessions = await loadSsoSessionData(init2); const session = ssoSessions[profile.sso_session]; const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`; if (ssoRegion && ssoRegion !== session.sso_region) { throw new CredentialsProviderError(`Conflicting SSO region` + conflictMsg, { tryNextLink: false, logger: init2.logger }); } if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) { throw new CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, { tryNextLink: false, logger: init2.logger }); } profile.sso_region = session.sso_region; profile.sso_start_url = session.sso_start_url; } const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = validateSsoProfile(profile, init2.logger); return resolveSSOCredentials({ ssoStartUrl: sso_start_url, ssoSession: sso_session, ssoAccountId: sso_account_id, ssoRegion: sso_region, ssoRoleName: sso_role_name, ssoClient, clientConfig: init2.clientConfig, parentClientConfig: init2.parentClientConfig, callerClientConfig: init2.callerClientConfig, profile: profileName, filepath: init2.filepath, configFilepath: init2.configFilepath, ignoreCache: init2.ignoreCache, logger: init2.logger }); } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { throw new CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init2.logger }); } else { return resolveSSOCredentials({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig: init2.clientConfig, parentClientConfig: init2.parentClientConfig, callerClientConfig: init2.callerClientConfig, profile: profileName, filepath: init2.filepath, configFilepath: init2.configFilepath, ignoreCache: init2.ignoreCache, logger: init2.logger }); } }, "fromSSO"); exports.fromSSO = fromSSO; exports.isSsoProfile = isSsoProfile; exports.validateSsoProfile = validateSsoProfile; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js var q, a3, b3, c3, d3, e3, f3, g3, h3, i3, j3, k3, l, m, n, o, p, _data3, root3, r3, nodes3, bdd3; var init_bdd3 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js"() { init_endpoints(); q = "ref"; a3 = -1; b3 = true; c3 = "isSet"; d3 = "PartitionResult"; e3 = "booleanEquals"; f3 = "stringEquals"; g3 = "getAttr"; h3 = "us-east-1"; i3 = "sigv4"; j3 = "sts"; k3 = "https://sts.{Region}.{PartitionResult#dnsSuffix}"; l = { [q]: "Endpoint" }; m = { [q]: "Region" }; n = { [q]: d3 }; o = {}; p = [m]; _data3 = { conditions: [ [c3, [l]], [c3, p], ["aws.partition", p, d3], [e3, [{ [q]: "UseFIPS" }, b3]], [e3, [{ [q]: "UseDualStack" }, b3]], [f3, [m, "aws-global"]], [e3, [{ [q]: "UseGlobalEndpoint" }, b3]], [f3, [m, "eu-central-1"]], [e3, [{ fn: g3, argv: [n, "supportsDualStack"] }, b3]], [e3, [{ fn: g3, argv: [n, "supportsFIPS"] }, b3]], [f3, [m, "ap-south-1"]], [f3, [m, "eu-north-1"]], [f3, [m, "eu-west-1"]], [f3, [m, "eu-west-2"]], [f3, [m, "eu-west-3"]], [f3, [m, "sa-east-1"]], [f3, [m, h3]], [f3, [m, "us-east-2"]], [f3, [m, "us-west-2"]], [f3, [m, "us-west-1"]], [f3, [m, "ca-central-1"]], [f3, [m, "ap-southeast-1"]], [f3, [m, "ap-northeast-1"]], [f3, [m, "ap-southeast-2"]], [f3, [{ fn: g3, argv: [n, "name"] }, "aws-us-gov"]] ], results: [ [a3], ["https://sts.amazonaws.com", { authSchemes: [{ name: i3, signingName: j3, signingRegion: h3 }] }], [k3, { authSchemes: [{ name: i3, signingName: j3, signingRegion: "{Region}" }] }], [a3, "Invalid Configuration: FIPS and custom endpoint are not supported"], [a3, "Invalid Configuration: Dualstack and custom endpoint are not supported"], [l, o], ["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o], [a3, "FIPS and DualStack are enabled, but this partition does not support one or both"], ["https://sts.{Region}.amazonaws.com", o], ["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o], [a3, "FIPS is enabled but this partition does not support FIPS"], ["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o], [a3, "DualStack is enabled but this partition does not support DualStack"], [k3, o], [a3, "Invalid Configuration: Missing Region"] ] }; root3 = 2; r3 = 1e8; nodes3 = new Int32Array([ -1, 1, -1, 0, 30, 3, 1, 4, r3 + 14, 2, 5, r3 + 14, 3, 25, 6, 4, 24, 7, 5, r3 + 1, 8, 6, 9, r3 + 13, 7, r3 + 1, 10, 10, r3 + 1, 11, 11, r3 + 1, 12, 12, r3 + 1, 13, 13, r3 + 1, 14, 14, r3 + 1, 15, 15, r3 + 1, 16, 16, r3 + 1, 17, 17, r3 + 1, 18, 18, r3 + 1, 19, 19, r3 + 1, 20, 20, r3 + 1, 21, 21, r3 + 1, 22, 22, r3 + 1, 23, 23, r3 + 1, r3 + 2, 8, r3 + 11, r3 + 12, 4, 28, 26, 9, 27, r3 + 10, 24, r3 + 8, r3 + 9, 8, 29, r3 + 7, 9, r3 + 6, r3 + 7, 3, r3 + 3, 31, 4, r3 + 4, r3 + 5 ]); bdd3 = BinaryDecisionDiagram.from(nodes3, root3, _data3.conditions, _data3.results); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js var cache3, defaultEndpointResolver3; var init_endpointResolver3 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js"() { init_client2(); init_endpoints(); init_bdd3(); cache3 = new EndpointCache({ size: 50, params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"] }); defaultEndpointResolver3 = /* @__PURE__ */ __name((endpointParams, context = {}) => { return cache3.get(endpointParams, () => decideEndpoint(bdd3, { endpointParams, logger: context.logger })); }, "defaultEndpointResolver"); customEndpointFunctions.aws = awsEndpointFunctions; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js function createAwsAuthSigv4HttpAuthOption3(authParameters) { return { schemeId: "aws.auth#sigv4", signingProperties: { name: "sts", region: authParameters.region }, propertiesExtractor: /* @__PURE__ */ __name((config3, context) => ({ signingProperties: { config: config3, context } }), "propertiesExtractor") }; } function createAwsAuthSigv4aHttpAuthOption(authParameters) { return { schemeId: "aws.auth#sigv4a", signingProperties: { name: "sts", region: authParameters.region }, propertiesExtractor: /* @__PURE__ */ __name((config3, context) => ({ signingProperties: { config: config3, context } }), "propertiesExtractor") }; } function createSmithyApiNoAuthHttpAuthOption3(authParameters) { return { schemeId: "smithy.api#noAuth" }; } var import_signature_v4_multi_region2, createEndpointRuleSetHttpAuthSchemeParametersProvider, _defaultSTSHttpAuthSchemeParametersProvider, defaultSTSHttpAuthSchemeParametersProvider, createEndpointRuleSetHttpAuthSchemeProvider, _defaultSTSHttpAuthSchemeProvider, defaultSTSHttpAuthSchemeProvider, resolveHttpAuthSchemeConfig3; var init_httpAuthSchemeProvider3 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js"() { init_httpAuthSchemes2(); import_signature_v4_multi_region2 = __toESM(require_dist_cjs3()); init_client(); init_endpoints(); init_endpointResolver3(); createEndpointRuleSetHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name((defaultHttpAuthSchemeParametersProvider) => async (config3, context, input2) => { if (!input2) { throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`"); } const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config3, context, input2); const instructionsFn = getSmithyContext(context)?.commandInstance?.constructor?.getEndpointParameterInstructions; if (!instructionsFn) { throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`); } const endpointParameters = await resolveParams(input2, { getEndpointParameterInstructions: instructionsFn }, config3); return Object.assign(defaultParameters, endpointParameters); }, "createEndpointRuleSetHttpAuthSchemeParametersProvider"); _defaultSTSHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config3, context, input2) => { return { operation: getSmithyContext(context).operation, region: await normalizeProvider(config3.region)() || (() => { throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); })() }; }, "_defaultSTSHttpAuthSchemeParametersProvider"); defaultSTSHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider); __name(createAwsAuthSigv4HttpAuthOption3, "createAwsAuthSigv4HttpAuthOption"); __name(createAwsAuthSigv4aHttpAuthOption, "createAwsAuthSigv4aHttpAuthOption"); __name(createSmithyApiNoAuthHttpAuthOption3, "createSmithyApiNoAuthHttpAuthOption"); createEndpointRuleSetHttpAuthSchemeProvider = /* @__PURE__ */ __name((defaultEndpointResolver5, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => { const endpointRuleSetHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => { const endpoint = defaultEndpointResolver5(authParameters); const authSchemes = endpoint.properties?.authSchemes; if (!authSchemes) { return defaultHttpAuthSchemeResolver(authParameters); } const options = []; for (const scheme of authSchemes) { const { name: resolvedName, properties = {}, ...rest } = scheme; const name2 = resolvedName.toLowerCase(); if (resolvedName !== name2) { console.warn(`HttpAuthScheme has been normalized with lowercasing: '${resolvedName}' to '${name2}'`); } let schemeId; if (name2 === "sigv4a") { schemeId = "aws.auth#sigv4a"; const sigv4Present = authSchemes.find((s2) => { const name3 = s2.name.toLowerCase(); return name3 !== "sigv4a" && name3.startsWith("sigv4"); }); if (import_signature_v4_multi_region2.SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) { continue; } } else if (name2.startsWith("sigv4")) { schemeId = "aws.auth#sigv4"; } else { throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name2}'`); } const createOption = createHttpAuthOptionFunctions[schemeId]; if (!createOption) { throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`); } const option = createOption(authParameters); option.schemeId = schemeId; option.signingProperties = { ...option.signingProperties || {}, ...rest, ...properties }; options.push(option); } return options; }, "endpointRuleSetHttpAuthSchemeProvider"); return endpointRuleSetHttpAuthSchemeProvider; }, "createEndpointRuleSetHttpAuthSchemeProvider"); _defaultSTSHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => { const options = []; switch (authParameters.operation) { case "AssumeRoleWithWebIdentity": { options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters)); options.push(createAwsAuthSigv4aHttpAuthOption(authParameters)); break; } default: { options.push(createAwsAuthSigv4HttpAuthOption3(authParameters)); options.push(createAwsAuthSigv4aHttpAuthOption(authParameters)); } } return options; }, "_defaultSTSHttpAuthSchemeProvider"); defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver3, _defaultSTSHttpAuthSchemeProvider, { "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption3, "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption, "smithy.api#noAuth": createSmithyApiNoAuthHttpAuthOption3 }); resolveHttpAuthSchemeConfig3 = /* @__PURE__ */ __name((config3) => { const config_0 = resolveAwsSdkSigV4Config(config3); const config_1 = resolveAwsSdkSigV4AConfig(config_0); return Object.assign(config_1, { authSchemePreference: normalizeProvider(config3.authSchemePreference ?? []) }); }, "resolveHttpAuthSchemeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js var resolveClientEndpointParameters3, commonParams3; var init_EndpointParameters3 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js"() { resolveClientEndpointParameters3 = /* @__PURE__ */ __name((options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, useGlobalEndpoint: options.useGlobalEndpoint ?? false, defaultSigningName: "sts" }); }, "resolveClientEndpointParameters"); commonParams3 = { UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js var STSServiceException; var init_STSServiceException = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js"() { init_client(); STSServiceException = class _STSServiceException extends ServiceException { static { __name(this, "STSServiceException"); } static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException"; constructor(options) { super(options); Object.setPrototypeOf(this, _STSServiceException.prototype); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js var ExpiredTokenException2, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, IDPRejectedClaimException, InvalidIdentityTokenException, IDPCommunicationErrorException; var init_errors3 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js"() { init_STSServiceException(); ExpiredTokenException2 = class _ExpiredTokenException extends STSServiceException { static { __name(this, "ExpiredTokenException"); } static shapeId = "com.amazonaws.sts#ExpiredTokenException"; name = "ExpiredTokenException"; $fault = "client"; constructor(opts) { super({ name: "ExpiredTokenException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ExpiredTokenException.prototype); } }; MalformedPolicyDocumentException = class _MalformedPolicyDocumentException extends STSServiceException { static { __name(this, "MalformedPolicyDocumentException"); } static shapeId = "com.amazonaws.sts#MalformedPolicyDocumentException"; name = "MalformedPolicyDocumentException"; $fault = "client"; constructor(opts) { super({ name: "MalformedPolicyDocumentException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype); } }; PackedPolicyTooLargeException = class _PackedPolicyTooLargeException extends STSServiceException { static { __name(this, "PackedPolicyTooLargeException"); } static shapeId = "com.amazonaws.sts#PackedPolicyTooLargeException"; name = "PackedPolicyTooLargeException"; $fault = "client"; constructor(opts) { super({ name: "PackedPolicyTooLargeException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _PackedPolicyTooLargeException.prototype); } }; RegionDisabledException = class _RegionDisabledException extends STSServiceException { static { __name(this, "RegionDisabledException"); } static shapeId = "com.amazonaws.sts#RegionDisabledException"; name = "RegionDisabledException"; $fault = "client"; constructor(opts) { super({ name: "RegionDisabledException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _RegionDisabledException.prototype); } }; IDPRejectedClaimException = class _IDPRejectedClaimException extends STSServiceException { static { __name(this, "IDPRejectedClaimException"); } static shapeId = "com.amazonaws.sts#IDPRejectedClaimException"; name = "IDPRejectedClaimException"; $fault = "client"; constructor(opts) { super({ name: "IDPRejectedClaimException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _IDPRejectedClaimException.prototype); } }; InvalidIdentityTokenException = class _InvalidIdentityTokenException extends STSServiceException { static { __name(this, "InvalidIdentityTokenException"); } static shapeId = "com.amazonaws.sts#InvalidIdentityTokenException"; name = "InvalidIdentityTokenException"; $fault = "client"; constructor(opts) { super({ name: "InvalidIdentityTokenException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidIdentityTokenException.prototype); } }; IDPCommunicationErrorException = class _IDPCommunicationErrorException extends STSServiceException { static { __name(this, "IDPCommunicationErrorException"); } static shapeId = "com.amazonaws.sts#IDPCommunicationErrorException"; name = "IDPCommunicationErrorException"; $fault = "client"; $retryable = {}; constructor(opts) { super({ name: "IDPCommunicationErrorException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _IDPCommunicationErrorException.prototype); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js var _A, _AKI, _AR, _ARI, _ARR, _ARRs, _ARU, _ARWWI, _ARWWIR, _ARWWIRs, _Au, _C, _CA, _DS, _E2, _EI, _ETE2, _IDPCEE, _IDPRCE, _IITE, _K, _MPDE, _MSTS, _P, _PA, _PAr, _PC, _PCLT, _PCr, _PDT, _PI, _PPS, _PPTLE, _Pr, _RA, _RDE, _RSN, _SAK, _SFWIT, _SI, _SN, _ST, _STS, _STU, _T, _TC, _TTK, _Ta, _V, _WIT, _a3, _aKST, _aQE, _c3, _cTT, _e3, _hE3, _m2, _pDLT, _s3, _tLT, n03, _s_registry3, STSServiceException$, n0_registry3, ExpiredTokenException$2, IDPCommunicationErrorException$, IDPRejectedClaimException$, InvalidIdentityTokenException$, MalformedPolicyDocumentException$, PackedPolicyTooLargeException$, RegionDisabledException$, errorTypeRegistries3, accessKeySecretType, clientTokenType, AssumedRoleUser$, AssumeRoleRequest$, AssumeRoleResponse$, AssumeRoleWithWebIdentityRequest$, AssumeRoleWithWebIdentityResponse$, Credentials$, PolicyDescriptorType$, ProvidedContext$, Tag$, policyDescriptorListType, ProvidedContextsListType, tagKeyListType, tagListType, AssumeRole$, AssumeRoleWithWebIdentity$; var init_schemas_03 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js"() { init_schema(); init_errors3(); init_STSServiceException(); _A = "Arn"; _AKI = "AccessKeyId"; _AR = "AssumeRole"; _ARI = "AssumedRoleId"; _ARR = "AssumeRoleRequest"; _ARRs = "AssumeRoleResponse"; _ARU = "AssumedRoleUser"; _ARWWI = "AssumeRoleWithWebIdentity"; _ARWWIR = "AssumeRoleWithWebIdentityRequest"; _ARWWIRs = "AssumeRoleWithWebIdentityResponse"; _Au = "Audience"; _C = "Credentials"; _CA = "ContextAssertion"; _DS = "DurationSeconds"; _E2 = "Expiration"; _EI = "ExternalId"; _ETE2 = "ExpiredTokenException"; _IDPCEE = "IDPCommunicationErrorException"; _IDPRCE = "IDPRejectedClaimException"; _IITE = "InvalidIdentityTokenException"; _K = "Key"; _MPDE = "MalformedPolicyDocumentException"; _MSTS = "MinimumSessionTokenSize"; _P = "Policy"; _PA = "PolicyArns"; _PAr = "ProviderArn"; _PC = "ProvidedContexts"; _PCLT = "ProvidedContextsListType"; _PCr = "ProvidedContext"; _PDT = "PolicyDescriptorType"; _PI = "ProviderId"; _PPS = "PackedPolicySize"; _PPTLE = "PackedPolicyTooLargeException"; _Pr = "Provider"; _RA = "RoleArn"; _RDE = "RegionDisabledException"; _RSN = "RoleSessionName"; _SAK = "SecretAccessKey"; _SFWIT = "SubjectFromWebIdentityToken"; _SI = "SourceIdentity"; _SN = "SerialNumber"; _ST = "SessionToken"; _STS = "SessionTokenSize"; _STU = "SessionTokenUtilization"; _T = "Tags"; _TC = "TokenCode"; _TTK = "TransitiveTagKeys"; _Ta = "Tag"; _V = "Value"; _WIT = "WebIdentityToken"; _a3 = "arn"; _aKST = "accessKeySecretType"; _aQE = "awsQueryError"; _c3 = "client"; _cTT = "clientTokenType"; _e3 = "error"; _hE3 = "httpError"; _m2 = "message"; _pDLT = "policyDescriptorListType"; _s3 = "smithy.ts.sdk.synthetic.com.amazonaws.sts"; _tLT = "tagListType"; n03 = "com.amazonaws.sts"; _s_registry3 = new TypeRegistry(_s3); STSServiceException$ = [-3, _s3, "STSServiceException", 0, [], []]; _s_registry3.registerError(STSServiceException$, STSServiceException); n0_registry3 = new TypeRegistry(n03); ExpiredTokenException$2 = [ -3, n03, _ETE2, { [_aQE]: [`ExpiredTokenException`, 400], [_e3]: _c3, [_hE3]: 400 }, [_m2], [0] ]; n0_registry3.registerError(ExpiredTokenException$2, ExpiredTokenException2); IDPCommunicationErrorException$ = [ -3, n03, _IDPCEE, { [_aQE]: [`IDPCommunicationError`, 400], [_e3]: _c3, [_hE3]: 400 }, [_m2], [0] ]; n0_registry3.registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException); IDPRejectedClaimException$ = [ -3, n03, _IDPRCE, { [_aQE]: [`IDPRejectedClaim`, 403], [_e3]: _c3, [_hE3]: 403 }, [_m2], [0] ]; n0_registry3.registerError(IDPRejectedClaimException$, IDPRejectedClaimException); InvalidIdentityTokenException$ = [ -3, n03, _IITE, { [_aQE]: [`InvalidIdentityToken`, 400], [_e3]: _c3, [_hE3]: 400 }, [_m2], [0] ]; n0_registry3.registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException); MalformedPolicyDocumentException$ = [ -3, n03, _MPDE, { [_aQE]: [`MalformedPolicyDocument`, 400], [_e3]: _c3, [_hE3]: 400 }, [_m2], [0] ]; n0_registry3.registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException); PackedPolicyTooLargeException$ = [ -3, n03, _PPTLE, { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e3]: _c3, [_hE3]: 400 }, [_m2], [0] ]; n0_registry3.registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException); RegionDisabledException$ = [ -3, n03, _RDE, { [_aQE]: [`RegionDisabledException`, 403], [_e3]: _c3, [_hE3]: 403 }, [_m2], [0] ]; n0_registry3.registerError(RegionDisabledException$, RegionDisabledException); errorTypeRegistries3 = [ _s_registry3, n0_registry3 ]; accessKeySecretType = [0, n03, _aKST, 8, 0]; clientTokenType = [0, n03, _cTT, 8, 0]; AssumedRoleUser$ = [ 3, n03, _ARU, 0, [_ARI, _A], [0, 0], 2 ]; AssumeRoleRequest$ = [ 3, n03, _ARR, 0, [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC, _MSTS], [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType, 1], 2 ]; AssumeRoleResponse$ = [ 3, n03, _ARRs, 0, [_C, _ARU, _PPS, _SI, _STU, _STS], [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 1, 1] ]; AssumeRoleWithWebIdentityRequest$ = [ 3, n03, _ARWWIR, 0, [_RA, _RSN, _WIT, _PI, _PA, _P, _DS, _MSTS], [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1, 1], 3 ]; AssumeRoleWithWebIdentityResponse$ = [ 3, n03, _ARWWIRs, 0, [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS], [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1] ]; Credentials$ = [ 3, n03, _C, 0, [_AKI, _SAK, _ST, _E2], [0, [() => accessKeySecretType, 0], 0, 4], 4 ]; PolicyDescriptorType$ = [ 3, n03, _PDT, 0, [_a3], [0] ]; ProvidedContext$ = [ 3, n03, _PCr, 0, [_PAr, _CA], [0, 0] ]; Tag$ = [ 3, n03, _Ta, 0, [_K, _V], [0, 0], 2 ]; policyDescriptorListType = [ 1, n03, _pDLT, 0, () => PolicyDescriptorType$ ]; ProvidedContextsListType = [ 1, n03, _PCLT, 0, () => ProvidedContext$ ]; tagKeyListType = 64 | 0; tagListType = [ 1, n03, _tLT, 0, () => Tag$ ]; AssumeRole$ = [ 9, n03, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$ ]; AssumeRoleWithWebIdentity$ = [ 9, n03, _ARWWI, 0, () => AssumeRoleWithWebIdentityRequest$, () => AssumeRoleWithWebIdentityResponse$ ]; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js var import_signature_v4_multi_region3, getRuntimeConfig5; var init_runtimeConfig_shared3 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js"() { init_httpAuthSchemes2(); init_protocols2(); import_signature_v4_multi_region3 = __toESM(require_dist_cjs3()); init_dist_es(); init_checksum(); init_client(); init_protocols(); init_serde(); init_httpAuthSchemeProvider3(); init_endpointResolver3(); init_schemas_03(); getRuntimeConfig5 = /* @__PURE__ */ __name((config3) => { return { apiVersion: "2011-06-15", base64Decoder: config3?.base64Decoder ?? fromBase64, base64Encoder: config3?.base64Encoder ?? toBase64, disableHostPrefix: config3?.disableHostPrefix ?? false, endpointProvider: config3?.endpointProvider ?? defaultEndpointResolver3, extensions: config3?.extensions ?? [], httpAuthSchemeProvider: config3?.httpAuthSchemeProvider ?? defaultSTSHttpAuthSchemeProvider, httpAuthSchemes: config3?.httpAuthSchemes ?? [ { schemeId: "aws.auth#sigv4", identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"), signer: new AwsSdkSigV4Signer() }, { schemeId: "aws.auth#sigv4a", identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"), "identityProvider"), signer: new AwsSdkSigV4ASigner() }, { schemeId: "smithy.api#noAuth", identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), "identityProvider"), signer: new NoAuthSigner() } ], logger: config3?.logger ?? new NoOpLogger(), protocol: config3?.protocol ?? AwsQueryProtocol, protocolSettings: config3?.protocolSettings ?? { defaultNamespace: "com.amazonaws.sts", errorTypeRegistries: errorTypeRegistries3, xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/", version: "2011-06-15", serviceTarget: "AWSSecurityTokenServiceV20110615" }, serviceId: config3?.serviceId ?? "STS", sha256: config3?.sha256 ?? Sha256Node, signerConstructor: config3?.signerConstructor ?? import_signature_v4_multi_region3.SignatureV4MultiRegion, urlParser: config3?.urlParser ?? parseUrl, utf8Decoder: config3?.utf8Decoder ?? fromUtf8, utf8Encoder: config3?.utf8Encoder ?? toUtf8 }; }, "getRuntimeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js var import_node_http_handler3, getRuntimeConfig6; var init_runtimeConfig3 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js"() { init_package(); init_client2(); init_httpAuthSchemes2(); init_dist_es(); init_client(); init_config(); init_retry(); init_serde(); import_node_http_handler3 = __toESM(require_dist_cjs7()); init_runtimeConfig_shared3(); getRuntimeConfig6 = /* @__PURE__ */ __name((config3) => { emitWarningIfUnsupportedVersion(process.version); const defaultsMode = resolveDefaultsModeConfig(config3); const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(loadConfigsForDefaultMode), "defaultConfigProvider"); const clientSharedValues = getRuntimeConfig5(config3); emitWarningIfUnsupportedVersion2(process.version); const loaderConfig = { profile: config3?.profile, logger: clientSharedValues.logger }; return { ...clientSharedValues, ...config3, runtime: "node", defaultsMode, authSchemePreference: config3?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config3?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config3?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), httpAuthSchemes: config3?.httpAuthSchemes ?? [ { schemeId: "aws.auth#sigv4", identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await config3.credentialDefaultProvider(idProps?.__config || {})()), "identityProvider"), signer: new AwsSdkSigV4Signer() }, { schemeId: "aws.auth#sigv4a", identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"), "identityProvider"), signer: new AwsSdkSigV4ASigner() }, { schemeId: "smithy.api#noAuth", identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), "identityProvider"), signer: new NoAuthSigner() } ], maxAttempts: config3?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config3), region: config3?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestHandler: import_node_http_handler3.NodeHttpHandler.create(config3?.requestHandler ?? defaultConfigProvider), retryMode: config3?.retryMode ?? loadConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, "default") }, config3), sigv4aSigningRegionSet: config3?.sigv4aSigningRegionSet ?? loadConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig), streamCollector: config3?.streamCollector ?? import_node_http_handler3.streamCollector, useDualstackEndpoint: config3?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), useFipsEndpoint: config3?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), userAgentAppId: config3?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig) }; }, "getRuntimeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js var getHttpAuthExtensionConfiguration3, resolveHttpAuthRuntimeConfig3; var init_httpAuthExtensionConfiguration3 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js"() { getHttpAuthExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; return { setHttpAuthScheme(httpAuthScheme) { const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); if (index === -1) { _httpAuthSchemes.push(httpAuthScheme); } else { _httpAuthSchemes.splice(index, 1, httpAuthScheme); } }, httpAuthSchemes() { return _httpAuthSchemes; }, setHttpAuthSchemeProvider(httpAuthSchemeProvider) { _httpAuthSchemeProvider = httpAuthSchemeProvider; }, httpAuthSchemeProvider() { return _httpAuthSchemeProvider; }, setCredentials(credentials) { _credentials = credentials; }, credentials() { return _credentials; } }; }, "getHttpAuthExtensionConfiguration"); resolveHttpAuthRuntimeConfig3 = /* @__PURE__ */ __name((config3) => { return { httpAuthSchemes: config3.httpAuthSchemes(), httpAuthSchemeProvider: config3.httpAuthSchemeProvider(), credentials: config3.credentials() }; }, "resolveHttpAuthRuntimeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js var resolveRuntimeExtensions3; var init_runtimeExtensions3 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js"() { init_client2(); init_client(); init_protocols(); init_httpAuthExtensionConfiguration3(); resolveRuntimeExtensions3 = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration3(runtimeConfig)); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig3(extensionConfiguration)); }, "resolveRuntimeExtensions"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js var STSClient; var init_STSClient = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js"() { init_client2(); init_dist_es(); init_client(); init_config(); init_endpoints(); init_protocols(); init_retry(); init_schema(); init_httpAuthSchemeProvider3(); init_EndpointParameters3(); init_runtimeConfig3(); init_runtimeExtensions3(); STSClient = class extends Client { static { __name(this, "STSClient"); } config; constructor(...[configuration]) { const _config_0 = getRuntimeConfig6(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters3(_config_0); const _config_2 = resolveUserAgentConfig(_config_1); const _config_3 = resolveRetryConfig(_config_2); const _config_4 = resolveRegionConfig(_config_3); const _config_5 = resolveHostHeaderConfig(_config_4); const _config_6 = resolveEndpointConfig(_config_5); const _config_7 = resolveHttpAuthSchemeConfig3(_config_6); const _config_8 = resolveRuntimeExtensions3(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use(getSchemaSerdePlugin(this.config)); this.middlewareStack.use(getUserAgentPlugin(this.config)); this.middlewareStack.use(getRetryPlugin(this.config)); this.middlewareStack.use(getContentLengthPlugin(this.config)); this.middlewareStack.use(getHostHeaderPlugin(this.config)); this.middlewareStack.use(getLoggerPlugin(this.config)); this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider, identityProviderConfigProvider: /* @__PURE__ */ __name(async (config3) => new DefaultIdentityProviderConfig({ "aws.auth#sigv4": config3.credentials, "aws.auth#sigv4a": config3.credentials }), "identityProviderConfigProvider") })); this.middlewareStack.use(getHttpSigningPlugin(this.config)); } destroy() { super.destroy(); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commandBuilder.js var command3, _ep03, _mw03; var init_commandBuilder3 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commandBuilder.js"() { init_client(); init_endpoints(); init_EndpointParameters3(); command3 = makeBuilder(commonParams3, "AWSSecurityTokenServiceV20110615", "STSClient", getEndpointPlugin); _ep03 = {}; _mw03 = /* @__PURE__ */ __name((Command2, cs, config3, o3) => [], "_mw0"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js var AssumeRoleCommand; var init_AssumeRoleCommand = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js"() { init_commandBuilder3(); init_schemas_03(); AssumeRoleCommand = class extends command3(_ep03, _mw03, "AssumeRole", AssumeRole$) { static { __name(this, "AssumeRoleCommand"); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js var AssumeRoleWithWebIdentityCommand; var init_AssumeRoleWithWebIdentityCommand = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js"() { init_commandBuilder3(); init_schemas_03(); AssumeRoleWithWebIdentityCommand = class extends command3(_ep03, _mw03, "AssumeRoleWithWebIdentity", AssumeRoleWithWebIdentity$) { static { __name(this, "AssumeRoleWithWebIdentityCommand"); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js var commands3, STS; var init_STS = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js"() { init_client(); init_AssumeRoleCommand(); init_AssumeRoleWithWebIdentityCommand(); init_STSClient(); commands3 = { AssumeRoleCommand, AssumeRoleWithWebIdentityCommand }; STS = class extends STSClient { static { __name(this, "STS"); } }; createAggregatedClient(commands3, STS); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/index.js var init_commands3 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/index.js"() { init_AssumeRoleCommand(); init_AssumeRoleWithWebIdentityCommand(); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js var init_models_03 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js"() { } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js var getAccountIdFromAssumedRoleUser, resolveRegion, getDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity, isH2; var init_defaultStsRoleAssumers = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js"() { init_client2(); init_AssumeRoleCommand(); init_AssumeRoleWithWebIdentityCommand(); getAccountIdFromAssumedRoleUser = /* @__PURE__ */ __name((assumedRoleUser) => { if (typeof assumedRoleUser?.Arn === "string") { const arnComponents = assumedRoleUser.Arn.split(":"); if (arnComponents.length > 4 && arnComponents[4] !== "") { return arnComponents[4]; } } return void 0; }, "getAccountIdFromAssumedRoleUser"); resolveRegion = /* @__PURE__ */ __name(async (_region, _parentRegion, credentialProviderLogger, loaderConfig = {}) => { const region = typeof _region === "function" ? await _region() : _region; const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion; let stsDefaultRegion = ""; const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await stsRegionDefaultResolver(loaderConfig)()); credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`); return resolvedRegion; }, "resolveRegion"); getDefaultRoleAssumer = /* @__PURE__ */ __name((stsOptions, STSClient2) => { let stsClient; let closureSourceCreds; return async (sourceCreds, params) => { closureSourceCreds = sourceCreds; if (!stsClient) { const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId } = stsOptions; const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, { logger, profile }); const isCompatibleRequestHandler = !isH2(requestHandler); stsClient = new STSClient2({ ...stsOptions, userAgentAppId, profile, credentialDefaultProvider: /* @__PURE__ */ __name(() => async () => closureSourceCreds, "credentialDefaultProvider"), region: resolvedRegion, requestHandler: isCompatibleRequestHandler ? requestHandler : void 0, logger }); } const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleCommand(params)); if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`); } const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser); const credentials = { accessKeyId: Credentials.AccessKeyId, secretAccessKey: Credentials.SecretAccessKey, sessionToken: Credentials.SessionToken, expiration: Credentials.Expiration, ...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }, ...accountId && { accountId } }; setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i"); return credentials; }; }, "getDefaultRoleAssumer"); getDefaultRoleAssumerWithWebIdentity = /* @__PURE__ */ __name((stsOptions, STSClient2) => { let stsClient; return async (params) => { if (!stsClient) { const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId } = stsOptions; const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, { logger, profile }); const isCompatibleRequestHandler = !isH2(requestHandler); stsClient = new STSClient2({ ...stsOptions, userAgentAppId, profile, region: resolvedRegion, requestHandler: isCompatibleRequestHandler ? requestHandler : void 0, logger }); } const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params)); if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`); } const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser); const credentials = { accessKeyId: Credentials.AccessKeyId, secretAccessKey: Credentials.SecretAccessKey, sessionToken: Credentials.SessionToken, expiration: Credentials.Expiration, ...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }, ...accountId && { accountId } }; if (accountId) { setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T"); } setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k"); return credentials; }; }, "getDefaultRoleAssumerWithWebIdentity"); isH2 = /* @__PURE__ */ __name((requestHandler) => { return requestHandler?.metadata?.handlerProtocol === "h2"; }, "isH2"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js var getCustomizableStsClientCtor, getDefaultRoleAssumer2, getDefaultRoleAssumerWithWebIdentity2, decorateDefaultCredentialProvider; var init_defaultRoleAssumers = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js"() { init_defaultStsRoleAssumers(); init_STSClient(); getCustomizableStsClientCtor = /* @__PURE__ */ __name((baseCtor, customizations) => { if (!customizations) return baseCtor; else return class CustomizableSTSClient extends baseCtor { static { __name(this, "CustomizableSTSClient"); } constructor(config3) { super(config3); for (const customization of customizations) { this.middlewareStack.use(customization); } } }; }, "getCustomizableStsClientCtor"); getDefaultRoleAssumer2 = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => getDefaultRoleAssumer(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins)), "getDefaultRoleAssumer"); getDefaultRoleAssumerWithWebIdentity2 = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins)), "getDefaultRoleAssumerWithWebIdentity"); decorateDefaultCredentialProvider = /* @__PURE__ */ __name((provider) => (input2) => provider({ roleAssumer: getDefaultRoleAssumer2(input2), roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity2(input2), ...input2 }), "decorateDefaultCredentialProvider"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js var sts_exports = {}; __export(sts_exports, { $Command: () => Command, AssumeRole$: () => AssumeRole$, AssumeRoleCommand: () => AssumeRoleCommand, AssumeRoleRequest$: () => AssumeRoleRequest$, AssumeRoleResponse$: () => AssumeRoleResponse$, AssumeRoleWithWebIdentity$: () => AssumeRoleWithWebIdentity$, AssumeRoleWithWebIdentityCommand: () => AssumeRoleWithWebIdentityCommand, AssumeRoleWithWebIdentityRequest$: () => AssumeRoleWithWebIdentityRequest$, AssumeRoleWithWebIdentityResponse$: () => AssumeRoleWithWebIdentityResponse$, AssumedRoleUser$: () => AssumedRoleUser$, Credentials$: () => Credentials$, ExpiredTokenException: () => ExpiredTokenException2, ExpiredTokenException$: () => ExpiredTokenException$2, IDPCommunicationErrorException: () => IDPCommunicationErrorException, IDPCommunicationErrorException$: () => IDPCommunicationErrorException$, IDPRejectedClaimException: () => IDPRejectedClaimException, IDPRejectedClaimException$: () => IDPRejectedClaimException$, InvalidIdentityTokenException: () => InvalidIdentityTokenException, InvalidIdentityTokenException$: () => InvalidIdentityTokenException$, MalformedPolicyDocumentException: () => MalformedPolicyDocumentException, MalformedPolicyDocumentException$: () => MalformedPolicyDocumentException$, PackedPolicyTooLargeException: () => PackedPolicyTooLargeException, PackedPolicyTooLargeException$: () => PackedPolicyTooLargeException$, PolicyDescriptorType$: () => PolicyDescriptorType$, ProvidedContext$: () => ProvidedContext$, RegionDisabledException: () => RegionDisabledException, RegionDisabledException$: () => RegionDisabledException$, STS: () => STS, STSClient: () => STSClient, STSServiceException: () => STSServiceException, STSServiceException$: () => STSServiceException$, Tag$: () => Tag$, __Client: () => Client, decorateDefaultCredentialProvider: () => decorateDefaultCredentialProvider, errorTypeRegistries: () => errorTypeRegistries3, getDefaultRoleAssumer: () => getDefaultRoleAssumer2, getDefaultRoleAssumerWithWebIdentity: () => getDefaultRoleAssumerWithWebIdentity2 }); var init_sts = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js"() { init_STSClient(); init_STS(); init_commands3(); init_client(); init_schemas_03(); init_errors3(); init_models_03(); init_defaultRoleAssumers(); init_STSServiceException(); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js function createAwsAuthSigv4HttpAuthOption4(authParameters) { return { schemeId: "aws.auth#sigv4", signingProperties: { name: "signin", region: authParameters.region }, propertiesExtractor: /* @__PURE__ */ __name((config3, context) => ({ signingProperties: { config: config3, context } }), "propertiesExtractor") }; } function createSmithyApiNoAuthHttpAuthOption4(authParameters) { return { schemeId: "smithy.api#noAuth" }; } var defaultSigninHttpAuthSchemeParametersProvider, defaultSigninHttpAuthSchemeProvider, resolveHttpAuthSchemeConfig4; var init_httpAuthSchemeProvider4 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js"() { init_httpAuthSchemes2(); init_client(); defaultSigninHttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config3, context, input2) => { return { operation: getSmithyContext(context).operation, region: await normalizeProvider(config3.region)() || (() => { throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); })() }; }, "defaultSigninHttpAuthSchemeParametersProvider"); __name(createAwsAuthSigv4HttpAuthOption4, "createAwsAuthSigv4HttpAuthOption"); __name(createSmithyApiNoAuthHttpAuthOption4, "createSmithyApiNoAuthHttpAuthOption"); defaultSigninHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => { const options = []; switch (authParameters.operation) { case "CreateOAuth2Token": { options.push(createSmithyApiNoAuthHttpAuthOption4(authParameters)); break; } ; default: { options.push(createAwsAuthSigv4HttpAuthOption4(authParameters)); } } return options; }, "defaultSigninHttpAuthSchemeProvider"); resolveHttpAuthSchemeConfig4 = /* @__PURE__ */ __name((config3) => { const config_0 = resolveAwsSdkSigV4Config(config3); return Object.assign(config_0, { authSchemePreference: normalizeProvider(config3.authSchemePreference ?? []) }); }, "resolveHttpAuthSchemeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/EndpointParameters.js var resolveClientEndpointParameters4, commonParams4; var init_EndpointParameters4 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/EndpointParameters.js"() { resolveClientEndpointParameters4 = /* @__PURE__ */ __name((options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "signin" }); }, "resolveClientEndpointParameters"); commonParams4 = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js var s, a4, b4, c4, d4, e4, f4, g4, h4, i4, j4, k4, l2, m2, n2, o2, p2, q2, _data4, root4, r4, nodes4, bdd4; var init_bdd4 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js"() { init_endpoints(); s = "ref"; a4 = -1; b4 = false; c4 = true; d4 = "isSet"; e4 = "booleanEquals"; f4 = "coalesce"; g4 = "PartitionResult"; h4 = "stringEquals"; i4 = "getAttr"; j4 = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}"; k4 = { [s]: "Endpoint" }; l2 = { "fn": i4, "argv": [{ [s]: g4 }, "name"] }; m2 = { [s]: "Region" }; n2 = { [s]: g4 }; o2 = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }; p2 = {}; q2 = [m2]; _data4 = { conditions: [ [d4, q2], [e4, [{ fn: f4, argv: [{ [s]: "IsControlPlane" }, b4] }, c4]], [d4, [k4]], ["aws.partition", q2, g4], [e4, [{ [s]: "UseFIPS" }, c4]], [h4, [l2, "aws"]], [e4, [{ fn: f4, argv: [{ [s]: "IsOAuthEndpoint" }, b4] }, c4]], [e4, [{ [s]: "UseDualStack" }, c4]], [h4, [l2, "aws-cn"]], [h4, [m2, "us-gov-west-1"]], [h4, [l2, "aws-us-gov"]], [e4, [{ fn: i4, argv: [n2, "supportsFIPS"] }, c4]], [h4, [l2, "aws-iso"]], [h4, [l2, "aws-iso-b"]], [h4, [l2, "aws-iso-f"]], [h4, [l2, "aws-iso-e"]], [h4, [l2, "aws-eusc"]], [e4, [{ fn: i4, argv: [n2, "supportsDualStack"] }, c4]] ], results: [ [a4], ["https://signin.{Region}.api.aws", o2], ["https://signin.{Region}.api.amazonwebservices.com.cn", o2], [j4, o2], [a4, "FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."], ["https://{Region}.oauth.signin.aws", o2], ["https://{Region}.signin.aws.amazon.com", p2], ["https://{Region}.signin.amazonaws.cn", p2], ["https://{Region}.signin.amazonaws-us-gov.com", p2], ["https://{Region}.signin.c2shome.ic.gov", p2], ["https://{Region}.signin.sc2shome.sgov.gov", p2], ["https://{Region}.signin.csphome.hci.ic.gov", p2], ["https://{Region}.signin.csphome.adc-e.uk", p2], ["https://{Region}.signin.amazonaws-eusc.eu", p2], ["https://signin-fips.amazonaws-us-gov.com", p2], ["https://{Region}.signin-fips.amazonaws-us-gov.com", p2], ["https://{Region}.signin.{PartitionResult#dnsSuffix}", p2], [a4, "Invalid Configuration: FIPS and custom endpoint are not supported"], [a4, "Invalid Configuration: Dualstack and custom endpoint are not supported"], [k4, p2], ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", p2], [a4, "FIPS and DualStack are enabled, but this partition does not support one or both"], ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", p2], [a4, "FIPS is enabled but this partition does not support FIPS"], [j4, p2], [a4, "DualStack is enabled but this partition does not support DualStack"], ["https://signin.{Region}.{PartitionResult#dnsSuffix}", p2], [a4, "Invalid Configuration: Missing Region"] ] }; root4 = 2; r4 = 1e8; nodes4 = new Int32Array([ -1, 1, -1, 0, 6, 3, 2, 36, 4, 4, 5, r4 + 27, 6, r4 + 4, r4 + 27, 1, 29, 7, 2, 36, 8, 3, 9, 31, 4, 22, 10, 5, 19, 11, 7, 21, 12, 8, r4 + 7, 13, 10, r4 + 8, 14, 12, r4 + 9, 15, 13, r4 + 10, 16, 14, r4 + 11, 17, 15, r4 + 12, 18, 16, r4 + 13, r4 + 16, 6, r4 + 5, 20, 7, 21, r4 + 6, 17, r4 + 24, r4 + 25, 6, r4 + 4, 23, 7, 27, 24, 9, r4 + 14, 25, 10, r4 + 15, 26, 11, r4 + 22, r4 + 23, 11, 28, r4 + 21, 17, r4 + 20, r4 + 21, 2, 35, 30, 3, 39, 31, 4, 32, r4 + 27, 6, r4 + 4, 33, 7, r4 + 27, 34, 9, r4 + 14, r4 + 27, 3, 39, 36, 4, 38, 37, 7, r4 + 18, r4 + 19, 6, r4 + 4, r4 + 17, 5, r4 + 1, 40, 8, r4 + 2, r4 + 3 ]); bdd4 = BinaryDecisionDiagram.from(nodes4, root4, _data4.conditions, _data4.results); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js var cache4, defaultEndpointResolver4; var init_endpointResolver4 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js"() { init_client2(); init_endpoints(); init_bdd4(); cache4 = new EndpointCache({ size: 50, params: ["Endpoint", "IsControlPlane", "IsOAuthEndpoint", "Region", "UseDualStack", "UseFIPS"] }); defaultEndpointResolver4 = /* @__PURE__ */ __name((endpointParams, context = {}) => { return cache4.get(endpointParams, () => decideEndpoint(bdd4, { endpointParams, logger: context.logger })); }, "defaultEndpointResolver"); customEndpointFunctions.aws = awsEndpointFunctions; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js var SigninServiceException; var init_SigninServiceException = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js"() { init_client(); SigninServiceException = class _SigninServiceException extends ServiceException { static { __name(this, "SigninServiceException"); } static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException"; constructor(options) { super(options); Object.setPrototypeOf(this, _SigninServiceException.prototype); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js var AccessDeniedException2, InternalServerException2, TooManyRequestsError, ValidationException; var init_errors4 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js"() { init_SigninServiceException(); AccessDeniedException2 = class _AccessDeniedException extends SigninServiceException { static { __name(this, "AccessDeniedException"); } static shapeId = "com.amazonaws.signin#AccessDeniedException"; name = "AccessDeniedException"; $fault = "client"; error; constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AccessDeniedException.prototype); this.error = opts.error; } }; InternalServerException2 = class _InternalServerException extends SigninServiceException { static { __name(this, "InternalServerException"); } static shapeId = "com.amazonaws.signin#InternalServerException"; name = "InternalServerException"; $fault = "server"; error; constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalServerException.prototype); this.error = opts.error; } }; TooManyRequestsError = class _TooManyRequestsError extends SigninServiceException { static { __name(this, "TooManyRequestsError"); } static shapeId = "com.amazonaws.signin#TooManyRequestsError"; name = "TooManyRequestsError"; $fault = "client"; error; constructor(opts) { super({ name: "TooManyRequestsError", $fault: "client", ...opts }); Object.setPrototypeOf(this, _TooManyRequestsError.prototype); this.error = opts.error; } }; ValidationException = class _ValidationException extends SigninServiceException { static { __name(this, "ValidationException"); } static shapeId = "com.amazonaws.signin#ValidationException"; name = "ValidationException"; $fault = "client"; error; constructor(opts) { super({ name: "ValidationException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ValidationException.prototype); this.error = opts.error; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js var _ADE2, _AT2, _COAT, _COATR, _COATRB, _COATRBr, _COATRr, _COATWIAM, _COATWIAMR, _COATWIAMRr, _ISE2, _OAAT, _RT2, _TMRE2, _VE, _aKI2, _aT3, _at, _c4, _cI2, _cV2, _co2, _e4, _eI2, _ei, _gT2, _gt2, _h3, _hE4, _iT2, _jN, _m3, _r2, _rT2, _rU2, _s4, _sAK2, _sT2, _se2, _tI, _tO, _tT2, _tt, n04, _s_registry4, SigninServiceException$, n0_registry4, AccessDeniedException$2, InternalServerException$2, TooManyRequestsError$, ValidationException$, errorTypeRegistries4, OAuthAccessToken, RefreshToken2, AccessToken$, CreateOAuth2TokenRequest$, CreateOAuth2TokenRequestBody$, CreateOAuth2TokenResponse$, CreateOAuth2TokenResponseBody$, CreateOAuth2TokenWithIAMRequest$, CreateOAuth2TokenWithIAMResponse$, CreateOAuth2Token$, CreateOAuth2TokenWithIAM$; var init_schemas_04 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js"() { init_schema(); init_errors4(); init_SigninServiceException(); _ADE2 = "AccessDeniedException"; _AT2 = "AccessToken"; _COAT = "CreateOAuth2Token"; _COATR = "CreateOAuth2TokenRequest"; _COATRB = "CreateOAuth2TokenRequestBody"; _COATRBr = "CreateOAuth2TokenResponseBody"; _COATRr = "CreateOAuth2TokenResponse"; _COATWIAM = "CreateOAuth2TokenWithIAM"; _COATWIAMR = "CreateOAuth2TokenWithIAMRequest"; _COATWIAMRr = "CreateOAuth2TokenWithIAMResponse"; _ISE2 = "InternalServerException"; _OAAT = "OAuthAccessToken"; _RT2 = "RefreshToken"; _TMRE2 = "TooManyRequestsError"; _VE = "ValidationException"; _aKI2 = "accessKeyId"; _aT3 = "accessToken"; _at = "access_token"; _c4 = "client"; _cI2 = "clientId"; _cV2 = "codeVerifier"; _co2 = "code"; _e4 = "error"; _eI2 = "expiresIn"; _ei = "expires_in"; _gT2 = "grantType"; _gt2 = "grant_type"; _h3 = "http"; _hE4 = "httpError"; _iT2 = "idToken"; _jN = "jsonName"; _m3 = "message"; _r2 = "resource"; _rT2 = "refreshToken"; _rU2 = "redirectUri"; _s4 = "smithy.ts.sdk.synthetic.com.amazonaws.signin"; _sAK2 = "secretAccessKey"; _sT2 = "sessionToken"; _se2 = "server"; _tI = "tokenInput"; _tO = "tokenOutput"; _tT2 = "tokenType"; _tt = "token_type"; n04 = "com.amazonaws.signin"; _s_registry4 = new TypeRegistry(_s4); SigninServiceException$ = [-3, _s4, "SigninServiceException", 0, [], []]; _s_registry4.registerError(SigninServiceException$, SigninServiceException); n0_registry4 = new TypeRegistry(n04); AccessDeniedException$2 = [ -3, n04, _ADE2, { [_e4]: _c4 }, [_e4, _m3], [0, 0], 2 ]; n0_registry4.registerError(AccessDeniedException$2, AccessDeniedException2); InternalServerException$2 = [ -3, n04, _ISE2, { [_e4]: _se2, [_hE4]: 500 }, [_e4, _m3], [0, 0], 2 ]; n0_registry4.registerError(InternalServerException$2, InternalServerException2); TooManyRequestsError$ = [ -3, n04, _TMRE2, { [_e4]: _c4, [_hE4]: 429 }, [_e4, _m3], [0, 0], 2 ]; n0_registry4.registerError(TooManyRequestsError$, TooManyRequestsError); ValidationException$ = [ -3, n04, _VE, { [_e4]: _c4, [_hE4]: 400 }, [_e4, _m3], [0, 0], 2 ]; n0_registry4.registerError(ValidationException$, ValidationException); errorTypeRegistries4 = [ _s_registry4, n0_registry4 ]; OAuthAccessToken = [0, n04, _OAAT, 8, 0]; RefreshToken2 = [0, n04, _RT2, 8, 0]; AccessToken$ = [ 3, n04, _AT2, 8, [_aKI2, _sAK2, _sT2], [[0, { [_jN]: _aKI2 }], [0, { [_jN]: _sAK2 }], [0, { [_jN]: _sT2 }]], 3 ]; CreateOAuth2TokenRequest$ = [ 3, n04, _COATR, 0, [_tI], [[() => CreateOAuth2TokenRequestBody$, 16]], 1 ]; CreateOAuth2TokenRequestBody$ = [ 3, n04, _COATRB, 0, [_cI2, _gT2, _co2, _rU2, _cV2, _rT2], [[0, { [_jN]: _cI2 }], [0, { [_jN]: _gT2 }], 0, [0, { [_jN]: _rU2 }], [0, { [_jN]: _cV2 }], [() => RefreshToken2, { [_jN]: _rT2 }]], 2 ]; CreateOAuth2TokenResponse$ = [ 3, n04, _COATRr, 0, [_tO], [[() => CreateOAuth2TokenResponseBody$, 16]], 1 ]; CreateOAuth2TokenResponseBody$ = [ 3, n04, _COATRBr, 0, [_aT3, _tT2, _eI2, _rT2, _iT2], [[() => AccessToken$, { [_jN]: _aT3 }], [0, { [_jN]: _tT2 }], [1, { [_jN]: _eI2 }], [() => RefreshToken2, { [_jN]: _rT2 }], [0, { [_jN]: _iT2 }]], 4 ]; CreateOAuth2TokenWithIAMRequest$ = [ 3, n04, _COATWIAMR, 0, [_gT2, _r2], [[0, { [_jN]: _gt2 }], 0], 2 ]; CreateOAuth2TokenWithIAMResponse$ = [ 3, n04, _COATWIAMRr, 0, [_aT3, _tT2, _eI2], [[() => OAuthAccessToken, { [_jN]: _at }], [0, { [_jN]: _tt }], [1, { [_jN]: _ei }]], 3 ]; CreateOAuth2Token$ = [ 9, n04, _COAT, { [_h3]: ["POST", "/v1/token", 200] }, () => CreateOAuth2TokenRequest$, () => CreateOAuth2TokenResponse$ ]; CreateOAuth2TokenWithIAM$ = [ 9, n04, _COATWIAM, { [_h3]: ["POST", "/v1/token?x-amz-client-auth-method=iam", 200] }, () => CreateOAuth2TokenWithIAMRequest$, () => CreateOAuth2TokenWithIAMResponse$ ]; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js var getRuntimeConfig7; var init_runtimeConfig_shared4 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js"() { init_httpAuthSchemes2(); init_protocols2(); init_dist_es(); init_checksum(); init_client(); init_protocols(); init_serde(); init_httpAuthSchemeProvider4(); init_endpointResolver4(); init_schemas_04(); getRuntimeConfig7 = /* @__PURE__ */ __name((config3) => { return { apiVersion: "2023-01-01", base64Decoder: config3?.base64Decoder ?? fromBase64, base64Encoder: config3?.base64Encoder ?? toBase64, disableHostPrefix: config3?.disableHostPrefix ?? false, endpointProvider: config3?.endpointProvider ?? defaultEndpointResolver4, extensions: config3?.extensions ?? [], httpAuthSchemeProvider: config3?.httpAuthSchemeProvider ?? defaultSigninHttpAuthSchemeProvider, httpAuthSchemes: config3?.httpAuthSchemes ?? [ { schemeId: "aws.auth#sigv4", identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"), signer: new AwsSdkSigV4Signer() }, { schemeId: "smithy.api#noAuth", identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), "identityProvider"), signer: new NoAuthSigner() } ], logger: config3?.logger ?? new NoOpLogger(), protocol: config3?.protocol ?? AwsRestJsonProtocol, protocolSettings: config3?.protocolSettings ?? { defaultNamespace: "com.amazonaws.signin", errorTypeRegistries: errorTypeRegistries4, version: "2023-01-01", serviceTarget: "Signin" }, serviceId: config3?.serviceId ?? "Signin", sha256: config3?.sha256 ?? Sha256Node, urlParser: config3?.urlParser ?? parseUrl, utf8Decoder: config3?.utf8Decoder ?? fromUtf8, utf8Encoder: config3?.utf8Encoder ?? toUtf8 }; }, "getRuntimeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js var import_node_http_handler4, getRuntimeConfig8; var init_runtimeConfig4 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js"() { init_package(); init_client2(); init_httpAuthSchemes2(); init_client(); init_config(); init_retry(); init_serde(); import_node_http_handler4 = __toESM(require_dist_cjs7()); init_runtimeConfig_shared4(); getRuntimeConfig8 = /* @__PURE__ */ __name((config3) => { emitWarningIfUnsupportedVersion(process.version); const defaultsMode = resolveDefaultsModeConfig(config3); const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(loadConfigsForDefaultMode), "defaultConfigProvider"); const clientSharedValues = getRuntimeConfig7(config3); emitWarningIfUnsupportedVersion2(process.version); const loaderConfig = { profile: config3?.profile, logger: clientSharedValues.logger }; return { ...clientSharedValues, ...config3, runtime: "node", defaultsMode, authSchemePreference: config3?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config3?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config3?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), maxAttempts: config3?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config3), region: config3?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestHandler: import_node_http_handler4.NodeHttpHandler.create(config3?.requestHandler ?? defaultConfigProvider), retryMode: config3?.retryMode ?? loadConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, "default") }, config3), streamCollector: config3?.streamCollector ?? import_node_http_handler4.streamCollector, useDualstackEndpoint: config3?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), useFipsEndpoint: config3?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), userAgentAppId: config3?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig) }; }, "getRuntimeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthExtensionConfiguration.js var getHttpAuthExtensionConfiguration4, resolveHttpAuthRuntimeConfig4; var init_httpAuthExtensionConfiguration4 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthExtensionConfiguration.js"() { getHttpAuthExtensionConfiguration4 = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; return { setHttpAuthScheme(httpAuthScheme) { const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); if (index === -1) { _httpAuthSchemes.push(httpAuthScheme); } else { _httpAuthSchemes.splice(index, 1, httpAuthScheme); } }, httpAuthSchemes() { return _httpAuthSchemes; }, setHttpAuthSchemeProvider(httpAuthSchemeProvider) { _httpAuthSchemeProvider = httpAuthSchemeProvider; }, httpAuthSchemeProvider() { return _httpAuthSchemeProvider; }, setCredentials(credentials) { _credentials = credentials; }, credentials() { return _credentials; } }; }, "getHttpAuthExtensionConfiguration"); resolveHttpAuthRuntimeConfig4 = /* @__PURE__ */ __name((config3) => { return { httpAuthSchemes: config3.httpAuthSchemes(), httpAuthSchemeProvider: config3.httpAuthSchemeProvider(), credentials: config3.credentials() }; }, "resolveHttpAuthRuntimeConfig"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeExtensions.js var resolveRuntimeExtensions4; var init_runtimeExtensions4 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeExtensions.js"() { init_client2(); init_client(); init_protocols(); init_httpAuthExtensionConfiguration4(); resolveRuntimeExtensions4 = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration4(runtimeConfig)); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig4(extensionConfiguration)); }, "resolveRuntimeExtensions"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js var SigninClient; var init_SigninClient = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js"() { init_client2(); init_dist_es(); init_client(); init_config(); init_endpoints(); init_protocols(); init_retry(); init_schema(); init_httpAuthSchemeProvider4(); init_EndpointParameters4(); init_runtimeConfig4(); init_runtimeExtensions4(); SigninClient = class extends Client { static { __name(this, "SigninClient"); } config; constructor(...[configuration]) { const _config_0 = getRuntimeConfig8(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters4(_config_0); const _config_2 = resolveUserAgentConfig(_config_1); const _config_3 = resolveRetryConfig(_config_2); const _config_4 = resolveRegionConfig(_config_3); const _config_5 = resolveHostHeaderConfig(_config_4); const _config_6 = resolveEndpointConfig(_config_5); const _config_7 = resolveHttpAuthSchemeConfig4(_config_6); const _config_8 = resolveRuntimeExtensions4(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use(getSchemaSerdePlugin(this.config)); this.middlewareStack.use(getUserAgentPlugin(this.config)); this.middlewareStack.use(getRetryPlugin(this.config)); this.middlewareStack.use(getContentLengthPlugin(this.config)); this.middlewareStack.use(getHostHeaderPlugin(this.config)); this.middlewareStack.use(getLoggerPlugin(this.config)); this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { httpAuthSchemeParametersProvider: defaultSigninHttpAuthSchemeParametersProvider, identityProviderConfigProvider: /* @__PURE__ */ __name(async (config3) => new DefaultIdentityProviderConfig({ "aws.auth#sigv4": config3.credentials }), "identityProviderConfigProvider") })); this.middlewareStack.use(getHttpSigningPlugin(this.config)); } destroy() { super.destroy(); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commandBuilder.js var command4, _ep04, _ep1, _mw04; var init_commandBuilder4 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commandBuilder.js"() { init_client(); init_endpoints(); init_EndpointParameters4(); command4 = makeBuilder(commonParams4, "Signin", "SigninClient", getEndpointPlugin); _ep04 = { IsControlPlane: { type: "staticContextParams", value: false } }; _ep1 = { IsOAuthEndpoint: { type: "staticContextParams", value: true } }; _mw04 = /* @__PURE__ */ __name((Command2, cs, config3, o3) => [], "_mw0"); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js var CreateOAuth2TokenCommand; var init_CreateOAuth2TokenCommand = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js"() { init_commandBuilder4(); init_schemas_04(); CreateOAuth2TokenCommand = class extends command4(_ep04, _mw04, "CreateOAuth2Token", CreateOAuth2Token$) { static { __name(this, "CreateOAuth2TokenCommand"); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.js var CreateOAuth2TokenWithIAMCommand; var init_CreateOAuth2TokenWithIAMCommand = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.js"() { init_commandBuilder4(); init_schemas_04(); CreateOAuth2TokenWithIAMCommand = class extends command4(_ep1, _mw04, "CreateOAuth2TokenWithIAM", CreateOAuth2TokenWithIAM$) { static { __name(this, "CreateOAuth2TokenWithIAMCommand"); } }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js var commands4, Signin; var init_Signin = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js"() { init_client(); init_CreateOAuth2TokenCommand(); init_CreateOAuth2TokenWithIAMCommand(); init_SigninClient(); commands4 = { CreateOAuth2TokenCommand, CreateOAuth2TokenWithIAMCommand }; Signin = class extends SigninClient { static { __name(this, "Signin"); } }; createAggregatedClient(commands4, Signin); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/index.js var init_commands4 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/index.js"() { init_CreateOAuth2TokenCommand(); init_CreateOAuth2TokenWithIAMCommand(); } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js var OAuth2ErrorCode; var init_enums2 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js"() { OAuth2ErrorCode = { AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED", CONFLICT: "CONFLICT", INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS", INVALID_REQUEST: "INVALID_REQUEST", RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND", SERVER_ERROR: "server_error", SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED", TOKEN_EXPIRED: "TOKEN_EXPIRED", USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED" }; } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/models_0.js var init_models_04 = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/models_0.js"() { } }); // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/index.js var signin_exports = {}; __export(signin_exports, { $Command: () => Command, AccessDeniedException: () => AccessDeniedException2, AccessDeniedException$: () => AccessDeniedException$2, AccessToken$: () => AccessToken$, CreateOAuth2Token$: () => CreateOAuth2Token$, CreateOAuth2TokenCommand: () => CreateOAuth2TokenCommand, CreateOAuth2TokenRequest$: () => CreateOAuth2TokenRequest$, CreateOAuth2TokenRequestBody$: () => CreateOAuth2TokenRequestBody$, CreateOAuth2TokenResponse$: () => CreateOAuth2TokenResponse$, CreateOAuth2TokenResponseBody$: () => CreateOAuth2TokenResponseBody$, CreateOAuth2TokenWithIAM$: () => CreateOAuth2TokenWithIAM$, CreateOAuth2TokenWithIAMCommand: () => CreateOAuth2TokenWithIAMCommand, CreateOAuth2TokenWithIAMRequest$: () => CreateOAuth2TokenWithIAMRequest$, CreateOAuth2TokenWithIAMResponse$: () => CreateOAuth2TokenWithIAMResponse$, InternalServerException: () => InternalServerException2, InternalServerException$: () => InternalServerException$2, OAuth2ErrorCode: () => OAuth2ErrorCode, Signin: () => Signin, SigninClient: () => SigninClient, SigninServiceException: () => SigninServiceException, SigninServiceException$: () => SigninServiceException$, TooManyRequestsError: () => TooManyRequestsError, TooManyRequestsError$: () => TooManyRequestsError$, ValidationException: () => ValidationException, ValidationException$: () => ValidationException$, __Client: () => Client, errorTypeRegistries: () => errorTypeRegistries4 }); var init_signin = __esm({ "../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.49/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/index.js"() { init_SigninClient(); init_Signin(); init_commands4(); init_client(); init_schemas_04(); init_enums2(); init_errors4(); init_models_04(); init_SigninServiceException(); } }); // ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.82/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js var require_dist_cjs11 = __commonJS({ "../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.82/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js"(exports) { var { setCredentialFeature: setCredentialFeature2 } = (init_client2(), __toCommonJS(client_exports2)); var { CredentialsProviderError, parseKnownFiles, getProfileName } = (init_config(), __toCommonJS(config_exports)); var { HttpRequest: HttpRequest2 } = (init_protocols(), __toCommonJS(protocols_exports)); var { createHash: createHash3, createPrivateKey, createPublicKey, sign: sign2 } = __require("node:crypto"); var { promises } = __require("node:fs"); var { homedir } = __require("node:os"); var { dirname: dirname2, join: join4 } = __require("node:path"); var LoginCredentialsFetcher = class _LoginCredentialsFetcher { static { __name(this, "LoginCredentialsFetcher"); } profileData; init; callerClientConfig; static REFRESH_THRESHOLD = 5 * 60 * 1e3; constructor(profileData, init2, callerClientConfig) { this.profileData = profileData; this.init = init2; this.callerClientConfig = callerClientConfig; } async loadCredentials() { const token = await this.loadToken(); if (!token) { throw new CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`, { tryNextLink: false, logger: this.logger }); } const accessToken = token.accessToken; const now = Date.now(); const expiryTime = new Date(accessToken.expiresAt).getTime(); const timeUntilExpiry = expiryTime - now; if (timeUntilExpiry <= _LoginCredentialsFetcher.REFRESH_THRESHOLD) { return this.refresh(token); } return this.toCredentials(token.accessToken); } get logger() { return this.init?.logger; } get loginSession() { return this.profileData.login_session; } toCredentials(token) { return { accessKeyId: token.accessKeyId, secretAccessKey: token.secretAccessKey, sessionToken: token.sessionToken, accountId: token.accountId, expiration: new Date(token.expiresAt) }; } async refresh(token) { const diskToken = await this.loadToken().catch(() => token); const now = Date.now(); const diskExpiry = new Date(diskToken.accessToken.expiresAt).getTime(); const tokenExpiry = new Date(token.accessToken.expiresAt).getTime(); const freshToken = diskExpiry <= now && tokenExpiry > now ? token : diskToken; const freshExpiry = new Date(freshToken.accessToken.expiresAt).getTime(); if (freshExpiry - Date.now() > _LoginCredentialsFetcher.REFRESH_THRESHOLD) { return this.toCredentials(freshToken.accessToken); } const { SigninClient: SigninClient2, CreateOAuth2TokenCommand: CreateOAuth2TokenCommand2 } = (init_signin(), __toCommonJS(signin_exports)); const { logger, userAgentAppId } = this.callerClientConfig ?? {}; const isH22 = /* @__PURE__ */ __name((requestHandler2) => { return requestHandler2?.metadata?.handlerProtocol === "h2"; }, "isH2"); const requestHandler = isH22(this.callerClientConfig?.requestHandler) ? void 0 : this.callerClientConfig?.requestHandler; const region = this.profileData.region ?? await this.callerClientConfig?.region?.() ?? process.env.AWS_REGION; const client = new SigninClient2({ credentials: { accessKeyId: "", secretAccessKey: "" }, region, requestHandler, logger, userAgentAppId, ...this.init?.clientConfig }); this.createDPoPInterceptor(client.middlewareStack); const commandInput = { tokenInput: { clientId: freshToken.clientId, refreshToken: freshToken.refreshToken, grantType: "refresh_token" } }; try { const response = await client.send(new CreateOAuth2TokenCommand2(commandInput)); const { accessKeyId, secretAccessKey, sessionToken } = response.tokenOutput?.accessToken ?? {}; const { refreshToken, expiresIn } = response.tokenOutput ?? {}; if (!accessKeyId || !secretAccessKey || !sessionToken || !refreshToken) { throw new CredentialsProviderError("Token refresh response missing required fields", { logger: this.logger, tryNextLink: false }); } const expiresInMs = (expiresIn ?? 900) * 1e3; const expiration = new Date(Date.now() + expiresInMs); const updatedToken = { ...freshToken, accessToken: { ...freshToken.accessToken, accessKeyId, secretAccessKey, sessionToken, expiresAt: expiration.toISOString() }, refreshToken }; await this.saveToken(updatedToken); return this.toCredentials(updatedToken.accessToken); } catch (error62) { if (error62.name === "AccessDeniedException") { const errorType = error62.error; let message; switch (errorType) { case "TOKEN_EXPIRED": message = "Your session has expired. Please reauthenticate."; break; case "USER_CREDENTIALS_CHANGED": message = "Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password."; break; case "INSUFFICIENT_PERMISSIONS": message = "Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action."; break; default: message = `Failed to refresh token: ${String(error62)}. Please re-authenticate using \`aws login\``; } throw new CredentialsProviderError(message, { logger: this.logger, tryNextLink: false }); } const tokenExpiry2 = new Date(freshToken.accessToken.expiresAt).getTime(); if (tokenExpiry2 > Date.now()) { this.logger?.warn?.(`Failed to refresh token: ${String(error62)}. Using existing token until expiry.`); return this.toCredentials(freshToken.accessToken); } throw new CredentialsProviderError(`Failed to refresh token: ${String(error62)}. Please re-authenticate using aws login`, { logger: this.logger }); } } async loadToken() { const tokenFilePath = this.getTokenFilePath(); try { const tokenData = await promises.readFile(tokenFilePath, "utf8"); const token = JSON.parse(tokenData); const missingFields = ["accessToken", "clientId", "refreshToken", "dpopKey"].filter((k5) => !token[k5]); if (!token.accessToken?.accountId) { missingFields.push("accountId"); } if (missingFields.length > 0) { throw new CredentialsProviderError(`Token validation failed, missing fields: ${missingFields.join(", ")}`, { logger: this.logger, tryNextLink: false }); } return token; } catch (error62) { throw new CredentialsProviderError(`Failed to load token from ${tokenFilePath}: ${String(error62)}`, { logger: this.logger, tryNextLink: false }); } } async saveToken(token) { const tokenFilePath = this.getTokenFilePath(); const directory = dirname2(tokenFilePath); try { await promises.mkdir(directory, { recursive: true }); } catch (error62) { } await promises.writeFile(tokenFilePath, JSON.stringify(token, null, 2), "utf8"); } getTokenFilePath() { const directory = process.env.AWS_LOGIN_CACHE_DIRECTORY ?? join4(homedir(), ".aws", "login", "cache"); const loginSessionBytes = Buffer.from(this.loginSession, "utf8"); const loginSessionSha256 = createHash3("sha256").update(loginSessionBytes).digest("hex"); return join4(directory, `${loginSessionSha256}.json`); } derToRawSignature(derSignature) { let offset = 2; if (derSignature[offset] !== 2) { throw new Error("Invalid DER signature"); } offset++; const rLength = derSignature[offset++]; let r5 = derSignature.subarray(offset, offset + rLength); offset += rLength; if (derSignature[offset] !== 2) { throw new Error("Invalid DER signature"); } offset++; const sLength = derSignature[offset++]; let s2 = derSignature.subarray(offset, offset + sLength); r5 = r5[0] === 0 ? r5.subarray(1) : r5; s2 = s2[0] === 0 ? s2.subarray(1) : s2; const rPadded = Buffer.concat([Buffer.alloc(32 - r5.length), r5]); const sPadded = Buffer.concat([Buffer.alloc(32 - s2.length), s2]); return Buffer.concat([rPadded, sPadded]); } createDPoPInterceptor(middlewareStack) { middlewareStack.add((next) => async (args) => { if (HttpRequest2.isInstance(args.request)) { const request = args.request; const actualEndpoint = `${request.protocol}//${request.hostname}${request.port ? `:${request.port}` : ""}${request.path}`; const dpop = await this.generateDpop(request.method, actualEndpoint); request.headers = { ...request.headers, DPoP: dpop }; } return next(args); }, { step: "finalizeRequest", name: "dpopInterceptor", override: true }); } async generateDpop(method = "POST", endpoint) { const token = await this.loadToken(); try { const privateKey = createPrivateKey({ key: token.dpopKey, format: "pem", type: "sec1" }); const publicKey = createPublicKey(privateKey); const publicDer = publicKey.export({ format: "der", type: "spki" }); let pointStart = -1; for (let i5 = 0; i5 < publicDer.length; i5++) { if (publicDer[i5] === 4) { pointStart = i5; break; } } const x = publicDer.slice(pointStart + 1, pointStart + 33); const y = publicDer.slice(pointStart + 33, pointStart + 65); const header = { alg: "ES256", typ: "dpop+jwt", jwk: { kty: "EC", crv: "P-256", x: x.toString("base64url"), y: y.toString("base64url") } }; const payload = { jti: crypto.randomUUID(), htm: method, htu: endpoint, iat: Math.floor(Date.now() / 1e3) }; const headerB64 = Buffer.from(JSON.stringify(header)).toString("base64url"); const payloadB64 = Buffer.from(JSON.stringify(payload)).toString("base64url"); const message = `${headerB64}.${payloadB64}`; const asn1Signature = sign2("sha256", Buffer.from(message), privateKey); const rawSignature = this.derToRawSignature(asn1Signature); const signatureB64 = rawSignature.toString("base64url"); return `${message}.${signatureB64}`; } catch (error62) { throw new CredentialsProviderError(`Failed to generate Dpop proof: ${error62 instanceof Error ? error62.message : String(error62)}`, { logger: this.logger, tryNextLink: false }); } } }; var fromLoginCredentials = /* @__PURE__ */ __name((init2) => async ({ callerClientConfig } = {}) => { init2?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials"); const profiles = await parseKnownFiles(init2 || {}); const profileName = getProfileName({ profile: init2?.profile ?? callerClientConfig?.profile }); const profile = profiles[profileName]; if (!profile?.login_session) { throw new CredentialsProviderError(`Profile ${profileName} does not contain login_session.`, { tryNextLink: true, logger: init2?.logger }); } const fetcher = new LoginCredentialsFetcher(profile, init2, callerClientConfig); const credentials = await fetcher.loadCredentials(); return setCredentialFeature2(credentials, "CREDENTIALS_LOGIN", "AD"); }, "fromLoginCredentials"); exports.fromLoginCredentials = fromLoginCredentials; } }); // ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.75/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js var require_dist_cjs12 = __commonJS({ "../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.75/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports) { var { externalDataInterceptor, CredentialsProviderError, parseKnownFiles, getProfileName } = (init_config(), __toCommonJS(config_exports)); var { exec } = __require("node:child_process"); var { promisify } = __require("node:util"); var { setCredentialFeature: setCredentialFeature2 } = (init_client2(), __toCommonJS(client_exports2)); var getValidatedProcessCredentials = /* @__PURE__ */ __name((profileName, data, profiles) => { if (data.Version !== 1) { throw Error(`Profile ${profileName} credential_process did not return Version 1.`); } if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) { throw Error(`Profile ${profileName} credential_process returned invalid credentials.`); } if (data.Expiration) { const currentTime = /* @__PURE__ */ new Date(); const expireTime = new Date(data.Expiration); if (expireTime < currentTime) { throw Error(`Profile ${profileName} credential_process returned expired credentials.`); } } let accountId = data.AccountId; if (!accountId && profiles?.[profileName]?.aws_account_id) { accountId = profiles[profileName].aws_account_id; } const credentials = { accessKeyId: data.AccessKeyId, secretAccessKey: data.SecretAccessKey, ...data.SessionToken && { sessionToken: data.SessionToken }, ...data.Expiration && { expiration: new Date(data.Expiration) }, ...data.CredentialScope && { credentialScope: data.CredentialScope }, ...accountId && { accountId } }; setCredentialFeature2(credentials, "CREDENTIALS_PROCESS", "w"); return credentials; }, "getValidatedProcessCredentials"); var resolveProcessCredentials = /* @__PURE__ */ __name(async (profileName, profiles, logger) => { const profile = profiles[profileName]; if (profiles[profileName]) { const credentialProcess = profile["credential_process"]; if (credentialProcess !== void 0) { const execPromise = promisify(externalDataInterceptor?.getTokenRecord?.().exec ?? exec); try { const { stdout } = await execPromise(credentialProcess); let data; try { data = JSON.parse(stdout.trim()); } catch { throw Error(`Profile ${profileName} credential_process returned invalid JSON.`); } return getValidatedProcessCredentials(profileName, data, profiles); } catch (error62) { throw new CredentialsProviderError(error62.message, { logger }); } } else { throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger }); } } else { throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, { logger }); } }, "resolveProcessCredentials"); var fromProcess = /* @__PURE__ */ __name((init2 = {}) => async ({ callerClientConfig } = {}) => { init2.logger?.debug("@aws-sdk/credential-provider-process - fromProcess"); const profiles = await parseKnownFiles(init2); return resolveProcessCredentials(getProfileName({ profile: init2.profile ?? callerClientConfig?.profile }), profiles, init2.logger); }, "fromProcess"); exports.fromProcess = fromProcess; } }); // ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.81/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js var require_dist_cjs13 = __commonJS({ "../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.81/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports) { var { setCredentialFeature: setCredentialFeature2 } = (init_client2(), __toCommonJS(client_exports2)); var { CredentialsProviderError, externalDataInterceptor } = (init_config(), __toCommonJS(config_exports)); var { readFileSync } = __require("node:fs"); var fromWebToken = /* @__PURE__ */ __name((init2) => async (awsIdentityProperties) => { init2.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken"); const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init2; let { roleAssumerWithWebIdentity } = init2; if (!roleAssumerWithWebIdentity) { const { getDefaultRoleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity3 } = (init_sts(), __toCommonJS(sts_exports)); roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity3({ ...init2.clientConfig, credentialProviderLogger: init2.logger, parentClientConfig: { ...awsIdentityProperties?.callerClientConfig, ...init2.parentClientConfig } }, init2.clientPlugins); } return roleAssumerWithWebIdentity({ RoleArn: roleArn, RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`, WebIdentityToken: webIdentityToken, ProviderId: providerId, PolicyArns: policyArns, Policy: policy, DurationSeconds: durationSeconds }); }, "fromWebToken"); var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE"; var ENV_ROLE_ARN = "AWS_ROLE_ARN"; var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME"; var fromTokenFile = /* @__PURE__ */ __name((init2 = {}) => async (awsIdentityProperties) => { init2.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile"); const webIdentityTokenFile = init2?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE]; const roleArn = init2?.roleArn ?? process.env[ENV_ROLE_ARN]; const roleSessionName = init2?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME]; if (!webIdentityTokenFile || !roleArn) { throw new CredentialsProviderError("Web identity configuration not specified", { logger: init2.logger }); } const credentials = await fromWebToken({ ...init2, webIdentityToken: externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ?? readFileSync(webIdentityTokenFile, { encoding: "ascii" }), roleArn, roleSessionName })(awsIdentityProperties); if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) { setCredentialFeature2(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h"); } return credentials; }, "fromTokenFile"); exports.fromTokenFile = fromTokenFile; exports.fromWebToken = fromWebToken; } }); // ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.20/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js var require_dist_cjs14 = __commonJS({ "../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.20/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports) { var { CredentialsProviderError, chain, getProfileName, parseKnownFiles } = (init_config(), __toCommonJS(config_exports)); var { setCredentialFeature: setCredentialFeature2 } = (init_client2(), __toCommonJS(client_exports2)); var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileName, logger) => { const sourceProvidersMap = { EcsContainer: /* @__PURE__ */ __name(async (options) => { const { fromHttp } = require_dist_cjs8(); const { fromContainerMetadata } = require_dist_cjs6(); logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"); return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider); }, "EcsContainer"), Ec2InstanceMetadata: /* @__PURE__ */ __name(async (options) => { logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata"); const { fromInstanceMetadata } = require_dist_cjs6(); return async () => fromInstanceMetadata(options)().then(setNamedProvider); }, "Ec2InstanceMetadata"), Environment: /* @__PURE__ */ __name(async (options) => { logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment"); const { fromEnv } = require_dist_cjs5(); return async () => fromEnv(options)().then(setNamedProvider); }, "Environment") }; if (credentialSource in sourceProvidersMap) { return sourceProvidersMap[credentialSource]; } else { throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger }); } }, "resolveCredentialSource"); var setNamedProvider = /* @__PURE__ */ __name((creds) => setCredentialFeature2(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p"), "setNamedProvider"); var isAssumeRoleProfile = /* @__PURE__ */ __name((arg, { profile = "default", logger } = {}) => { return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger })); }, "isAssumeRoleProfile"); var isAssumeRoleWithSourceProfile = /* @__PURE__ */ __name((arg, { profile, logger }) => { const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; if (withSourceProfile) { logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`); } return withSourceProfile; }, "isAssumeRoleWithSourceProfile"); var isCredentialSourceProfile = /* @__PURE__ */ __name((arg, { profile, logger }) => { const withProviderProfile = typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; if (withProviderProfile) { logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`); } return withProviderProfile; }, "isCredentialSourceProfile"); var resolveAssumeRoleCredentials = /* @__PURE__ */ __name(async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, resolveProfileData2) => { options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)"); const profileData = profiles[profileName]; const { source_profile, region } = profileData; if (!options.roleAssumer) { const { getDefaultRoleAssumer: getDefaultRoleAssumer3 } = (init_sts(), __toCommonJS(sts_exports)); options.roleAssumer = getDefaultRoleAssumer3({ ...options.clientConfig, credentialProviderLogger: options.logger, parentClientConfig: { ...callerClientConfig, ...options?.parentClientConfig, region: region ?? options?.parentClientConfig?.region ?? callerClientConfig?.region } }, options.clientPlugins); } if (source_profile && source_profile in visitedProfiles) { throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger }); } options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`); const sourceCredsProvider = source_profile ? resolveProfileData2(source_profile, profiles, options, callerClientConfig, { ...visitedProfiles, [source_profile]: true }, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))(); if (isCredentialSourceWithoutRoleArn(profileData)) { return sourceCredsProvider.then((creds) => setCredentialFeature2(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o")); } else { const params = { RoleArn: profileData.role_arn, RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`, ExternalId: profileData.external_id, DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10) }; const { mfa_serial } = profileData; if (mfa_serial) { if (!options.mfaCodeProvider) { throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false }); } params.SerialNumber = mfa_serial; params.TokenCode = await options.mfaCodeProvider(mfa_serial); } const sourceCreds = await sourceCredsProvider; return options.roleAssumer(sourceCreds, params).then((creds) => setCredentialFeature2(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o")); } }, "resolveAssumeRoleCredentials"); var isCredentialSourceWithoutRoleArn = /* @__PURE__ */ __name((section) => { return !section.role_arn && !!section.credential_source; }, "isCredentialSourceWithoutRoleArn"); var isLoginProfile = /* @__PURE__ */ __name((data) => { return Boolean(data && data.login_session); }, "isLoginProfile"); var resolveLoginCredentials = /* @__PURE__ */ __name(async (profileName, options, callerClientConfig) => { const { fromLoginCredentials } = require_dist_cjs11(); const credentials = await fromLoginCredentials({ ...options, profile: profileName })({ callerClientConfig }); return setCredentialFeature2(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC"); }, "resolveLoginCredentials"); var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile"); var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => { const { fromProcess } = require_dist_cjs12(); const credentials = await fromProcess({ ...options, profile })(); return setCredentialFeature2(credentials, "CREDENTIALS_PROFILE_PROCESS", "v"); }, "resolveProcessCredentials"); var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, profileData, options = {}, callerClientConfig) => { const { fromSSO } = require_dist_cjs10(); return fromSSO({ profile, logger: options.logger, parentClientConfig: options.parentClientConfig, clientConfig: options.clientConfig })({ callerClientConfig }).then((creds) => { if (profileData.sso_session) { return setCredentialFeature2(creds, "CREDENTIALS_PROFILE_SSO", "r"); } else { return setCredentialFeature2(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t"); } }); }, "resolveSsoCredentials"); var isSsoProfile = /* @__PURE__ */ __name((arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"), "isSsoProfile"); var isStaticCredsProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1, "isStaticCredsProfile"); var resolveStaticCredentials = /* @__PURE__ */ __name(async (profile, options) => { options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials"); const credentials = { accessKeyId: profile.aws_access_key_id, secretAccessKey: profile.aws_secret_access_key, sessionToken: profile.aws_session_token, ...profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope }, ...profile.aws_account_id && { accountId: profile.aws_account_id } }; return setCredentialFeature2(credentials, "CREDENTIALS_PROFILE", "n"); }, "resolveStaticCredentials"); var isWebIdentityProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1, "isWebIdentityProfile"); var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options, callerClientConfig) => { const { fromTokenFile } = require_dist_cjs13(); const credentials = await fromTokenFile({ webIdentityTokenFile: profile.web_identity_token_file, roleArn: profile.role_arn, roleSessionName: profile.role_session_name, roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity, logger: options.logger, parentClientConfig: options.parentClientConfig })({ callerClientConfig }); return setCredentialFeature2(credentials, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q"); }, "resolveWebIdentityCredentials"); var resolveProfileData = /* @__PURE__ */ __name(async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => { const data = profiles[profileName]; if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) { return resolveStaticCredentials(data, options); } if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data, { profile: profileName, logger: options.logger })) { return resolveAssumeRoleCredentials(profileName, profiles, options, callerClientConfig, visitedProfiles, resolveProfileData); } if (isStaticCredsProfile(data)) { return resolveStaticCredentials(data, options); } if (isWebIdentityProfile(data)) { return resolveWebIdentityCredentials(data, options, callerClientConfig); } if (isProcessProfile(data)) { return resolveProcessCredentials(options, profileName); } if (isSsoProfile(data)) { return await resolveSsoCredentials(profileName, data, options, callerClientConfig); } if (isLoginProfile(data)) { return resolveLoginCredentials(profileName, options, callerClientConfig); } throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger }); }, "resolveProfileData"); var fromIni = /* @__PURE__ */ __name((init2 = {}) => async ({ callerClientConfig } = {}) => { init2.logger?.debug("@aws-sdk/credential-provider-ini - fromIni"); const profiles = await parseKnownFiles(init2); return resolveProfileData(getProfileName({ profile: init2.profile ?? callerClientConfig?.profile }), profiles, init2, callerClientConfig); }, "fromIni"); exports.fromIni = fromIni; } }); // ../../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.972.87/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js var require_dist_cjs15 = __commonJS({ "../../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.972.87/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports) { var { ENV_KEY, ENV_SECRET, fromEnv } = require_dist_cjs5(); var { chain, CredentialsProviderError, ENV_PROFILE } = (init_config(), __toCommonJS(config_exports)); var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; var remoteProvider = /* @__PURE__ */ __name(async (init2) => { const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = require_dist_cjs6(); if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) { init2.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata"); const { fromHttp } = require_dist_cjs8(); return chain(fromHttp(init2), fromContainerMetadata(init2)); } if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") { return async () => { throw new CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init2.logger }); }; } init2.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"); return fromInstanceMetadata(init2); }, "remoteProvider"); function memoizeChain(providers, treatAsExpired) { const chain2 = internalCreateChain(providers); let activeLock; let passiveLock; let credentials; let forceRefreshLock; const provider = /* @__PURE__ */ __name(async (options) => { if (options?.forceRefresh) { if (!forceRefreshLock) { forceRefreshLock = chain2(options).then((c5) => { credentials = c5; }).finally(() => { forceRefreshLock = void 0; }); } await forceRefreshLock; return credentials; } if (credentials?.expiration) { if (credentials?.expiration?.getTime() < Date.now()) { credentials = void 0; } } if (activeLock) { await activeLock; } else if (!credentials || treatAsExpired?.(credentials)) { if (credentials) { if (!passiveLock) { passiveLock = chain2(options).then((c5) => { credentials = c5; }).catch(() => { }).finally(() => { passiveLock = void 0; }); } } else { activeLock = chain2(options).then((c5) => { credentials = c5; }).finally(() => { activeLock = void 0; }); return provider(options); } } return credentials; }, "provider"); return provider; } __name(memoizeChain, "memoizeChain"); var internalCreateChain = /* @__PURE__ */ __name((providers) => async (awsIdentityProperties) => { let lastProviderError; for (const provider of providers) { try { return await provider(awsIdentityProperties); } catch (err) { lastProviderError = err; if (err?.tryNextLink) { continue; } throw err; } } throw lastProviderError; }, "internalCreateChain"); var multipleCredentialSourceWarningEmitted = false; var defaultProvider = /* @__PURE__ */ __name((init2 = {}) => memoizeChain([ async () => { const profile = init2.profile ?? process.env[ENV_PROFILE]; if (profile) { const envStaticCredentialsAreSet = process.env[ENV_KEY] && process.env[ENV_SECRET]; if (envStaticCredentialsAreSet) { if (!multipleCredentialSourceWarningEmitted) { const warnFn = init2.logger?.warn && init2.logger?.constructor?.name !== "NoOpLogger" ? init2.logger.warn.bind(init2.logger) : console.warn; warnFn(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING: Multiple credential sources detected: Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set. This SDK will proceed with the AWS_PROFILE value. However, a future version may change this behavior to prefer the ENV static credentials. Please ensure that your environment only sets either the AWS_PROFILE or the AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair. `); multipleCredentialSourceWarningEmitted = true; } } throw new CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.", { logger: init2.logger, tryNextLink: true }); } init2.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"); return fromEnv(init2)(); }, async (awsIdentityProperties) => { init2.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO"); const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init2; if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) { throw new CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init2.logger }); } const { fromSSO } = require_dist_cjs10(); return fromSSO(init2)(awsIdentityProperties); }, async (awsIdentityProperties) => { init2.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni"); const { fromIni } = require_dist_cjs14(); return fromIni(init2)(awsIdentityProperties); }, async (awsIdentityProperties) => { init2.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess"); const { fromProcess } = require_dist_cjs12(); return fromProcess(init2)(awsIdentityProperties); }, async (awsIdentityProperties) => { init2.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile"); const { fromTokenFile } = require_dist_cjs13(); return fromTokenFile(init2)(awsIdentityProperties); }, async () => { init2.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"); return (await remoteProvider(init2))(); }, async () => { throw new CredentialsProviderError("Could not load credentials from any providers", { tryNextLink: false, logger: init2.logger }); } ], credentialsTreatedAsExpired), "defaultProvider"); var credentialsWillNeedRefresh = /* @__PURE__ */ __name((credentials) => credentials?.expiration !== void 0, "credentialsWillNeedRefresh"); var credentialsTreatedAsExpired = /* @__PURE__ */ __name((credentials) => credentials?.expiration !== void 0 && credentials.expiration.getTime() - Date.now() < 3e5, "credentialsTreatedAsExpired"); exports.credentialsTreatedAsExpired = credentialsTreatedAsExpired; exports.credentialsWillNeedRefresh = credentialsWillNeedRefresh; exports.defaultProvider = defaultProvider; } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/sha1/Sha1Js.js var BLOCK, DIGEST_LENGTH, INIT, K, Sha1Js; var init_Sha1Js = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/sha1/Sha1Js.js"() { init_serde(); BLOCK = 64; DIGEST_LENGTH = 20; INIT = new Int32Array([1732584193, 4023233417, 2562383102, 271733878, 3285377520]); K = new Int32Array([1518500249, 1859775393, 2400959708, 3395469782]); Sha1Js = class _Sha1Js { static { __name(this, "Sha1Js"); } digestLength = DIGEST_LENGTH; state = Int32Array.from(INIT); w; buffer = new Uint8Array(BLOCK); bufferLength = 0; bytesHashed = 0; finished = false; inner; outer; constructor(secret) { if (secret) { const key = _Sha1Js.normalizeKey(secret); this.inner = new _Sha1Js(); this.outer = new _Sha1Js(); const pad = new Uint8Array(BLOCK * 2); for (let i5 = 0; i5 < BLOCK; ++i5) { pad[i5] = 54 ^ key[i5]; pad[i5 + BLOCK] = 92 ^ key[i5]; } this.inner.update(pad.subarray(0, BLOCK)); this.outer.update(pad.subarray(BLOCK)); } } update(data) { if (this.finished) { throw new Error("Attempted to update an already finished HMAC."); } if (this.inner) { this.inner.update(data); return; } let pos = 0; let { length } = data; this.bytesHashed += length; if (this.bufferLength > 0) { while (length > 0 && this.bufferLength < BLOCK) { this.buffer[this.bufferLength++] = data[pos++]; --length; } if (this.bufferLength === BLOCK) { this.hashBuffer(this.buffer, 0); this.bufferLength = 0; } } while (length >= BLOCK) { this.hashBuffer(data, pos); pos += BLOCK; length -= BLOCK; } while (length > 0) { this.buffer[this.bufferLength++] = data[pos++]; --length; } } async digest() { if (this.inner && this.outer) { if (this.finished) { throw new Error("Attempted to digest an already finished HMAC."); } this.finished = true; const innerDigest = this.inner.digestSync(); this.outer.update(innerDigest); return this.outer.digestSync(); } return this.digestSync(); } reset() { this.state = Int32Array.from(INIT); this.buffer = new Uint8Array(BLOCK); this.bufferLength = 0; this.bytesHashed = 0; } digestSync() { const state2 = this.state.slice(); const buffer = this.buffer.slice(); let bufferLength = this.bufferLength; const bitsHi = this.bytesHashed / 536870912 | 0; const bitsLo = this.bytesHashed << 3; buffer[bufferLength++] = 128; if (bufferLength > BLOCK - 8) { for (let i5 = bufferLength; i5 < BLOCK; ++i5) { buffer[i5] = 0; } this.hashBufferWith(state2, buffer, 0); bufferLength = 0; } for (let i5 = bufferLength; i5 < BLOCK - 8; ++i5) { buffer[i5] = 0; } const v = new DataView(buffer.buffer, buffer.byteOffset, BLOCK); v.setUint32(BLOCK - 8, bitsHi, false); v.setUint32(BLOCK - 4, bitsLo, false); this.hashBufferWith(state2, buffer, 0); const out = new Uint8Array(DIGEST_LENGTH); out[0] = state2[0] >>> 24 & 255; out[1] = state2[0] >>> 16 & 255; out[2] = state2[0] >>> 8 & 255; out[3] = state2[0] & 255; out[4] = state2[1] >>> 24 & 255; out[5] = state2[1] >>> 16 & 255; out[6] = state2[1] >>> 8 & 255; out[7] = state2[1] & 255; out[8] = state2[2] >>> 24 & 255; out[9] = state2[2] >>> 16 & 255; out[10] = state2[2] >>> 8 & 255; out[11] = state2[2] & 255; out[12] = state2[3] >>> 24 & 255; out[13] = state2[3] >>> 16 & 255; out[14] = state2[3] >>> 8 & 255; out[15] = state2[3] & 255; out[16] = state2[4] >>> 24 & 255; out[17] = state2[4] >>> 16 & 255; out[18] = state2[4] >>> 8 & 255; out[19] = state2[4] & 255; return out; } static normalizeKey(secret) { const key = toUint8Array(secret); if (key.byteLength > BLOCK) { const h5 = new _Sha1Js(); h5.update(key); const digest2 = h5.digestSync(); const padded2 = new Uint8Array(BLOCK); padded2.set(digest2); return padded2; } const padded = new Uint8Array(BLOCK); padded.set(key); return padded; } hashBuffer(data, offset) { this.hashBufferWith(this.state, data, offset); } hashBufferWith(state2, data, offset) { const w = this.w ??= new Int32Array(80); let s0 = state2[0], s1 = state2[1], s2 = state2[2], s3 = state2[3], s4 = state2[4]; for (let t = 0; t < 16; ++t) { w[t] = (data[offset + t * 4] & 255) << 24 | (data[offset + t * 4 + 1] & 255) << 16 | (data[offset + t * 4 + 2] & 255) << 8 | data[offset + t * 4 + 3] & 255; } for (let t = 16; t < 80; ++t) { const x = w[t - 3] ^ w[t - 8] ^ w[t - 14] ^ w[t - 16]; w[t] = x << 1 | x >>> 31; } for (let t = 0; t < 80; ++t) { const r5 = t < 20 ? 0 : t < 40 ? 1 : t < 60 ? 2 : 3; const temp = ((s0 << 5 | s0 >>> 27) + (r5 === 0 ? s1 & s2 ^ ~s1 & s3 : r5 === 2 ? s1 & s2 ^ s1 & s3 ^ s2 & s3 : s1 ^ s2 ^ s3) | 0) + (s4 + (K[r5] + w[t] | 0) | 0) | 0; s4 = s3; s3 = s2; s2 = s1 << 30 | s1 >>> 2; s1 = s0; s0 = temp; } state2[0] = state2[0] + s0 | 0; state2[1] = state2[1] + s1 | 0; state2[2] = state2[2] + s2 | 0; state2[3] = state2[3] + s3 | 0; state2[4] = state2[4] + s4 | 0; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/sha1/Sha1Node.js import { createHash as createHash2, createHmac } from "node:crypto"; function buildNativeClass() { return class Sha1Node { static { __name(this, "Sha1Node"); } digestLength = 20; secret; hash; isHmac; finished = false; constructor(secret) { this.secret = secret; this.isHmac = !!secret; this.hash = this.createHash(); } update(data) { if (this.finished) { throw new Error("Attempted to update an already finished hash."); } this.hash.update(data); } async digest() { let buf; if (this.isHmac) { this.finished = true; buf = this.hash.digest(); } else { buf = this.hash.copy().digest(); } return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength); } reset() { this.hash = this.createHash(); this.finished = false; } createHash() { return this.secret ? createHmac("sha1", toBuffer(this.secret)) : createHash2("sha1"); } }; } function toBuffer(data) { if (typeof data === "string") { return data; } if (ArrayBuffer.isView(data)) { return Buffer.from(data.buffer, data.byteOffset, data.byteLength); } return Buffer.from(data); } var hasNativeCrypto, Sha1Node; var init_Sha1Node = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/sha1/Sha1Node.js"() { init_Sha1Js(); hasNativeCrypto = (() => { try { createHash2("sha1"); return true; } catch { return false; } })(); Sha1Node = hasNativeCrypto ? buildNativeClass() : Sha1Js; __name(buildNativeClass, "buildNativeClass"); __name(toBuffer, "toBuffer"); } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/sha1/Sha1WebCrypto.js var digest, sign, importKey, subtle, MAX_PENDING_BYTES, Sha1WebCrypto; var init_Sha1WebCrypto = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/sha1/Sha1WebCrypto.js"() { init_serde(); init_Sha1Js(); ({ digest, sign, importKey } = globalThis?.crypto?.subtle ?? {}); subtle = typeof digest === "function" && typeof sign === "function" && typeof importKey === "function" ? globalThis.crypto.subtle : void 0; MAX_PENDING_BYTES = 8 * 1024 * 1024; Sha1WebCrypto = class { static { __name(this, "Sha1WebCrypto"); } digestLength = 20; secret; pending = []; pendingBytes = 0; fallback; finished = false; constructor(secret) { if (secret) { this.secret = toUint8Array(secret); } } update(data) { if (this.finished) { throw new Error("Attempted to update an already finished HMAC."); } if (this.fallback) { this.fallback.update(data); return; } this.pending.push(data.slice()); this.pendingBytes += data.byteLength; if (this.pendingBytes >= MAX_PENDING_BYTES) { this.switchToFallback(); } } async digest() { if (this.fallback) { return this.fallback.digest(); } if (this.secret && this.finished) { throw new Error("Attempted to digest an already finished HMAC."); } const data = concatBytes(this.pending); if (subtle) { if (this.secret) { this.finished = true; const key = await subtle.importKey("raw", this.secret, { name: "HMAC", hash: "SHA-1" }, false, ["sign"]); const sig = await subtle.sign("HMAC", key, data); return new Uint8Array(sig); } const hash3 = await subtle.digest("SHA-1", data); return new Uint8Array(hash3); } const sha1 = new Sha1Js(this.secret); sha1.update(data); return sha1.digest(); } reset() { this.pending = []; this.pendingBytes = 0; this.fallback = void 0; this.finished = false; } switchToFallback() { const sha1Js = new Sha1Js(this.secret); for (const chunk of this.pending) { sha1Js.update(chunk); } this.fallback = sha1Js; this.pending = []; this.pendingBytes = 0; } }; } }); // ../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/index.js var sha_exports = {}; __export(sha_exports, { Sha1: () => Sha1Node, Sha1Js: () => Sha1Js, Sha1Node: () => Sha1Node, Sha1WebCrypto: () => Sha1WebCrypto, Sha256: () => Sha256Node, Sha256Js: () => Sha256Js, Sha256Node: () => Sha256Node }); var init_sha = __esm({ "../../node_modules/.pnpm/@aws-sdk+checksums@3.1001.4/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/index.js"() { init_Sha1Js(); init_Sha1Node(); init_Sha1WebCrypto(); init_checksum(); } }); // ../../node_modules/.pnpm/@aws-sdk+client-s3@3.1154.0/node_modules/@aws-sdk/client-s3/dist-cjs/index.js var require_dist_cjs16 = __commonJS({ "../../node_modules/.pnpm/@aws-sdk+client-s3@3.1154.0/node_modules/@aws-sdk/client-s3/dist-cjs/index.js"(exports) { var { getFlexibleChecksumsPlugin: getFlexibleChecksumsPlugin2, NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS: NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS2, NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS: NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS2, resolveFlexibleChecksumsConfig: resolveFlexibleChecksumsConfig2 } = (init_flexible_checksums(), __toCommonJS(flexible_checksums_exports)); var { awsEndpointFunctions: awsEndpointFunctions2, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider: createDefaultUserAgentProvider2, NODE_APP_ID_CONFIG_OPTIONS: NODE_APP_ID_CONFIG_OPTIONS2, getAwsRegionExtensionConfiguration: getAwsRegionExtensionConfiguration2, resolveAwsRegionExtensionConfiguration: resolveAwsRegionExtensionConfiguration2, resolveUserAgentConfig: resolveUserAgentConfig2, resolveHostHeaderConfig: resolveHostHeaderConfig2, getUserAgentPlugin: getUserAgentPlugin2, getHostHeaderPlugin: getHostHeaderPlugin2, getLoggerPlugin: getLoggerPlugin2, getRecursionDetectionPlugin: getRecursionDetectionPlugin2 } = (init_client2(), __toCommonJS(client_exports2)); var { getThrow200ExceptionsPlugin: getThrow200ExceptionsPlugin2, getSsecPlugin: getSsecPlugin2, getLocationConstraintPlugin: getLocationConstraintPlugin2, getS3ExpiresMiddlewarePlugin: getS3ExpiresMiddlewarePlugin2, getCheckContentLengthHeaderPlugin: getCheckContentLengthHeaderPlugin2, S3RestXmlProtocol: S3RestXmlProtocol2, NODE_USE_ARN_REGION_CONFIG_OPTIONS: NODE_USE_ARN_REGION_CONFIG_OPTIONS2, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS: NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS2, resolveS3Config: resolveS3Config2, getValidateBucketNamePlugin: getValidateBucketNamePlugin2, getAddExpectContinuePlugin: getAddExpectContinuePlugin2, getRegionRedirectMiddlewarePlugin: getRegionRedirectMiddlewarePlugin2, getS3ExpressPlugin: getS3ExpressPlugin2, getS3ExpressHttpSigningPlugin: getS3ExpressHttpSigningPlugin2 } = (init_s3(), __toCommonJS(s3_exports)); var { getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2, createPaginator: createPaginator2 } = (init_dist_es(), __toCommonJS(dist_es_exports)); var { normalizeProvider: normalizeProvider3, getSmithyContext: getSmithyContext2, makeBuilder: makeBuilder2, ServiceException: ServiceException2, NoOpLogger: NoOpLogger2, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion3, loadConfigsForDefaultMode: loadConfigsForDefaultMode2, getDefaultExtensionConfiguration: getDefaultExtensionConfiguration2, resolveDefaultRuntimeConfig: resolveDefaultRuntimeConfig2, Client: Client2, createWaiter, checkExceptions, WaiterState, createAggregatedClient: createAggregatedClient2 } = (init_client(), __toCommonJS(client_exports)); var { Command: $Command } = (init_client(), __toCommonJS(client_exports)); exports.$Command = $Command; exports.__Client = Client2; var { resolveDefaultsModeConfig: resolveDefaultsModeConfig2, loadConfig: loadConfig2, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS: NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS2, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS: NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS2, NODE_REGION_CONFIG_OPTIONS: NODE_REGION_CONFIG_OPTIONS2, NODE_REGION_CONFIG_FILE_OPTIONS: NODE_REGION_CONFIG_FILE_OPTIONS2, resolveRegionConfig: resolveRegionConfig2 } = (init_config(), __toCommonJS(config_exports)); var { BinaryDecisionDiagram: BinaryDecisionDiagram2, EndpointCache: EndpointCache2, decideEndpoint: decideEndpoint2, customEndpointFunctions: customEndpointFunctions2, resolveParams: resolveParams2, getEndpointPlugin: getEndpointPlugin2, resolveEndpointConfig: resolveEndpointConfig2 } = (init_endpoints(), __toCommonJS(endpoints_exports)); var { eventStreamSerdeProvider, resolveEventStreamSerdeConfig } = (init_event_streams(), __toCommonJS(event_streams_exports)); var { parseUrl: parseUrl2, getHttpHandlerExtensionConfiguration: getHttpHandlerExtensionConfiguration2, resolveHttpHandlerRuntimeConfig: resolveHttpHandlerRuntimeConfig2, getContentLengthPlugin: getContentLengthPlugin2 } = (init_protocols(), __toCommonJS(protocols_exports)); var { DEFAULT_RETRY_MODE: DEFAULT_RETRY_MODE2, NODE_RETRY_MODE_CONFIG_OPTIONS: NODE_RETRY_MODE_CONFIG_OPTIONS2, NODE_MAX_ATTEMPT_CONFIG_OPTIONS: NODE_MAX_ATTEMPT_CONFIG_OPTIONS2, resolveRetryConfig: resolveRetryConfig2, getRetryPlugin: getRetryPlugin2 } = (init_retry(), __toCommonJS(retry_exports)); var { TypeRegistry: TypeRegistry2, getSchemaSerdePlugin: getSchemaSerdePlugin2 } = (init_schema(), __toCommonJS(schema_exports)); var { resolveAwsSdkSigV4Config: resolveAwsSdkSigV4Config2, resolveAwsSdkSigV4AConfig: resolveAwsSdkSigV4AConfig2, AwsSdkSigV4Signer: AwsSdkSigV4Signer2, AwsSdkSigV4ASigner: AwsSdkSigV4ASigner2, NODE_SIGV4A_CONFIG_OPTIONS: NODE_SIGV4A_CONFIG_OPTIONS2, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS: NODE_AUTH_SCHEME_PREFERENCE_OPTIONS2 } = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports)); var { SignatureV4MultiRegion: SignatureV4MultiRegion3 } = require_dist_cjs3(); var { defaultProvider } = require_dist_cjs15(); var { Sha256, Md5, readableStreamHasher } = (init_checksum(), __toCommonJS(checksum_exports)); var { toUtf8: toUtf82, fromUtf8: fromUtf82, sdkStreamMixin: sdkStreamMixin2, getAwsChunkedEncodingStream, toBase64: toBase642, fromBase64: fromBase642, calculateBodyLength: calculateBodyLength2 } = (init_serde(), __toCommonJS(serde_exports)); var { streamCollector: streamCollector5, NodeHttpHandler } = require_dist_cjs7(); var { Sha1 } = (init_sha(), __toCommonJS(sha_exports)); var aw = "ref"; var ax = "argv"; var ay = "backend"; var az = "authSchemes"; var aA = "disableDoubleEncoding"; var aB = "signingName"; var aC = "signingRegion"; var aD = "signingRegionSet"; var a5 = -1; var b5 = true; var c5 = false; var d5 = "isSet"; var e5 = "booleanEquals"; var f5 = "stringEquals"; var g5 = "coalesce"; var h5 = "substring"; var i5 = ""; var j5 = "aws.partition"; var k5 = "partitionResult"; var l3 = "accessPointSuffix"; var m3 = "regionPrefix"; var n3 = /* @__PURE__ */ __name((n4) => "outpostId_ssa_" + n4 + i5, "n"); var o3 = "hardwareType"; var p3 = "ite"; var q3 = "isValidHostLabel"; var s2 = "sigv4"; var t = "aws.isVirtualHostableS3Bucket"; var u = "url"; var v = "getAttr"; var w = "bucketArn"; var x = "--"; var y = "arnType"; var z2 = "accesspoint"; var A = /* @__PURE__ */ __name((n4) => "accessPointName_ssa_" + n4 + i5, "A"); var B = "s3-object-lambda"; var C = "s3-outposts"; var D = "bucketPartition"; var E = "us-east-1"; var F = "outpostType"; var G = "name"; var H = "s3"; var I = "{url#scheme}://{Bucket}.{url#authority}{url#path}"; var J = "{url#scheme}://{url#authority}{url#path}"; var K2 = "{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}"; var L = "https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}"; var M = "https://{Bucket}.s3.{partitionResult#dnsSuffix}"; var N = /* @__PURE__ */ __name((n4) => "{url#scheme}://{accessPointName_ssa_" + n4 + "}-{bucketArn#accountId}.{url#authority}{url#path}", "N"); var O = /* @__PURE__ */ __name((n4) => "Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_" + n4 + "}`", "O"); var P = "sigv4a"; var Q = "{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}"; var R = "https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}"; var S = "https://s3.{partitionResult#dnsSuffix}"; var T2 = { [aw]: "UseFIPS" }; var U = { [aw]: "UseDualStack" }; var V = { [aw]: "Bucket" }; var W = { "fn": v, [ax]: [{ [aw]: k5 }, G] }; var X = { [aw]: u }; var Y = { [aw]: "Region" }; var Z = { [aw]: w }; var aa = { [aw]: y }; var ab = { [aw]: "accessPointName_ssa_1" }; var ac = { "fn": v, [ax]: [Z, "region"] }; var ad = { [aw]: o3 }; var ae = { "fn": v, [ax]: [Z, "service"] }; var af = { "fn": v, [ax]: [Z, "accountId"] }; var ag = { [ay]: "S3Express", [az]: [{ [aA]: true, [G]: "{_s3e_auth}", [aB]: "s3express", [aC]: "{Region}" }] }; var ah = { [ay]: "S3Express", [az]: [{ [aA]: true, [G]: s2, [aB]: "s3express", [aC]: "{Region}" }] }; var ai = { [az]: [{ [aA]: true, [G]: P, [aB]: C, [aD]: ["*"] }, { [aA]: true, [G]: s2, [aB]: C, [aC]: "{Region}" }] }; var aj = { [az]: [{ [aA]: true, [G]: s2, [aB]: H, [aC]: E }] }; var ak = { [az]: [{ [aA]: true, [G]: s2, [aB]: H, [aC]: "{Region}" }] }; var al = { [az]: [{ [aA]: true, [G]: s2, [aB]: B, [aC]: "{bucketArn#region}" }] }; var am = { [az]: [{ [aA]: true, [G]: s2, [aB]: H, [aC]: "{bucketArn#region}" }] }; var an = { [az]: [{ [aA]: true, [G]: P, [aB]: C, [aD]: ["*"] }, { [aA]: true, [G]: s2, [aB]: C, [aC]: "{bucketArn#region}" }] }; var ao = { [az]: [{ [aA]: true, [G]: s2, [aB]: B, [aC]: "{Region}" }] }; var ap = [Y]; var aq = [{ [aw]: "Endpoint" }]; var as = [V]; var at = [V, 0, 7, true]; var au = [Z, "resourceId[1]"]; var av = ["*"]; var _data5 = { conditions: [ [d5, ap], [e5, [{ [aw]: "Accelerate" }, b5]], [e5, [T2, b5]], [e5, [U, b5]], [d5, aq], [d5, as], [f5, [{ fn: g5, [ax]: [{ fn: h5, [ax]: [V, 0, 6, b5] }, i5] }, "--x-s3"]], [f5, [{ fn: g5, [ax]: [{ fn: h5, [ax]: at }, i5] }, "--xa-s3"]], [j5, ap, k5], [h5, at, l3], [f5, [{ [aw]: l3 }, "--op-s3"]], [h5, [V, 8, 12, b5], m3], [h5, [V, 32, 49, b5], n3(2)], [h5, [V, 49, 50, b5], o3], [e5, [{ [aw]: "ForcePathStyle" }, b5]], [f5, [W, "aws-cn"]], [p3, [U, ".dualstack", i5], "_s3e_ds"], [q3, [{ [aw]: n3(2) }, c5]], [p3, [T2, "-fips", i5], "_s3e_fips"], [p3, [{ fn: g5, [ax]: [{ [aw]: "DisableS3ExpressSessionAuth" }, c5] }, s2, "sigv4-s3express"], "_s3e_auth"], [t, [V, c5]], ["parseURL", aq, u], [e5, [{ fn: g5, [ax]: [{ [aw]: "UseS3ExpressControlEndpoint" }, c5] }, b5]], [t, [V, b5]], [f5, [{ fn: v, [ax]: [X, "scheme"] }, "http"]], [q3, [Y, c5]], ["aws.parseArn", as, w], [v, [{ fn: "split", [ax]: [V, x, 0] }, "[-2]"], "s3expressAvailabilityZoneId"], [f5, [{ fn: g5, [ax]: [{ fn: h5, [ax]: [V, 0, 4, c5] }, i5] }, "arn:"]], [f5, [{ fn: g5, [ax]: [{ fn: h5, [ax]: [V, 16, 18, b5] }, i5] }, x]], [e5, [{ fn: v, [ax]: [X, "isIp"] }, b5]], [f5, [{ fn: g5, [ax]: [{ fn: h5, [ax]: [V, 21, 23, b5] }, i5] }, x]], [f5, [{ fn: g5, [ax]: [{ fn: h5, [ax]: [V, 27, 29, b5] }, i5] }, x]], [f5, [{ [aw]: m3 }, "beta"]], ["uriEncode", as, "uri_encoded_bucket"], [q3, [Y, b5]], [e5, [{ fn: g5, [ax]: [{ [aw]: "UseObjectLambdaEndpoint" }, c5] }, b5]], [v, [Z, "resourceId[0]"], y], [f5, [aa, i5]], [f5, [aa, z2]], [v, au, A(1)], [f5, [ab, i5]], [f5, [ac, i5]], [f5, [{ fn: g5, [ax]: [{ fn: h5, [ax]: [V, 14, 16, b5] }, i5] }, x]], [f5, [ad, "e"]], [f5, [ad, "o"]], [f5, [Y, "aws-global"]], [f5, [{ fn: g5, [ax]: [{ fn: h5, [ax]: [V, 19, 21, b5] }, i5] }, x]], [f5, [ae, B]], [e5, [{ fn: g5, [ax]: [{ [aw]: "DisableAccessPoints" }, c5] }, b5]], [f5, [ae, C]], [j5, [ac], D], [q3, [ab, b5]], [f5, [{ fn: g5, [ax]: [{ fn: h5, [ax]: [V, 26, 28, b5] }, i5] }, x]], [f5, [{ fn: g5, [ax]: [{ fn: h5, [ax]: [V, 15, 17, b5] }, i5] }, x]], [v, [Z, "resourceId[4]"]], [f5, [{ fn: g5, [ax]: [{ fn: h5, [ax]: [V, 20, 22, b5] }, i5] }, x]], [e5, [{ [aw]: "UseGlobalEndpoint" }, b5]], [f5, [Y, E]], [v, au, n3(1)], [e5, [{ fn: g5, [ax]: [{ [aw]: "UseArnRegion" }, b5] }, b5]], [q3, [{ [aw]: n3(1) }, c5]], [v, [Z, "resourceId[2]"], F], [f5, [Y, ac]], [f5, [{ fn: v, [ax]: [{ [aw]: D }, G] }, W]], [e5, [{ [aw]: "DisableMultiRegionAccessPoints" }, b5]], [q3, [ac, b5]], [f5, [{ fn: v, [ax]: [Z, "partition"] }, W]], [f5, [af, i5]], [f5, [ae, H]], [q3, [af, c5]], [v, [Z, "resourceId[3]"], A(2)], [q3, [ab, c5]], [f5, [{ [aw]: F }, z2]], [q3, [{ [aw]: A(2) }, c5]] ], results: [ [a5], [a5, "Accelerate cannot be used with FIPS"], [a5, "Cannot set dual-stack in combination with a custom endpoint."], [a5, "A custom endpoint cannot be combined with FIPS"], [a5, "A custom endpoint cannot be combined with S3 Accelerate"], [a5, "Partition does not support FIPS"], [a5, "S3Express does not support S3 Accelerate."], ["{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}", ag], [I, ag], [a5, "S3Express bucket name is not a valid virtual hostable name."], ["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", ah], ["https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}", ag], [a5, "Unrecognized S3Express bucket name format."], [J, ag], ["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}", ah], [a5, "Expected a endpoint to be specified but no endpoint was found"], ["https://{Bucket}.ec2.{url#authority}", ai], ["https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}", ai], ["https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}", ai], ["https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}", ai], [a5, 'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"'], [a5, "Invalid Outposts Bucket alias - it must be a valid bucket name."], [a5, "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."], [a5, "Custom endpoint `{Endpoint}` was not a valid URI"], [a5, "S3 Accelerate cannot be used in this region"], ["https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", aj], ["https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", ak], ["https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}", aj], ["https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}", ak], ["https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}", aj], ["https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}", ak], ["https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", aj], ["https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}", ak], [K2, aj], [I, aj], [K2, ak], [I, ak], [L, aj], [L, ak], [M, aj], [M, ak], ["https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}", ak], [a5, "Invalid region: region was not a valid DNS name."], [a5, "S3 Object Lambda does not support Dual-stack"], [a5, "S3 Object Lambda does not support S3 Accelerate"], [a5, "Access points are not supported for this operation"], [a5, "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"], [a5, "Invalid ARN: Missing account id"], [N(1), al], ["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", al], ["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}", al], [a5, O(1)], [a5, "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"], [a5, "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"], [a5, "Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"], [a5, "Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."], [a5, "Invalid ARN: bucket ARN is missing a region"], [a5, "Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"], [a5, "Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"], [a5, "Access Points do not support S3 Accelerate"], ["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", am], ["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", am], ["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", am], [N(1), am], ["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}", am], [a5, "Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}"], [a5, "S3 MRAP does not support dual-stack"], [a5, "S3 MRAP does not support FIPS"], [a5, "S3 MRAP does not support S3 Accelerate"], [a5, "Invalid configuration: Multi-Region Access Point ARNs are disabled."], ["https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}", { [az]: [{ [aA]: b5, name: P, [aB]: H, [aD]: av }] }], [a5, "Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"], [a5, "Invalid Access Point Name"], [a5, "S3 Outposts does not support Dual-stack"], [a5, "S3 Outposts does not support FIPS"], [a5, "S3 Outposts does not support S3 Accelerate"], [a5, "Invalid Arn: Outpost Access Point ARN contains sub resources"], ["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}", an], ["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}", an], [a5, O(2)], [a5, "Expected an outpost type `accesspoint`, found {outpostType}"], [a5, "Invalid ARN: expected an access point name"], [a5, "Invalid ARN: Expected a 4-component resource"], [a5, "Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"], [a5, "Invalid ARN: The Outpost Id was not set"], [a5, "Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})"], [a5, "Invalid ARN: No ARN type specified"], [a5, "Invalid ARN: `{Bucket}` was not a valid ARN"], [a5, "Path-style addressing cannot be used with ARN buckets"], ["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", aj], ["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", ak], ["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", aj], ["https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", ak], ["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", aj], ["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", ak], [Q, aj], [Q, ak], [R, aj], [R, ak], ["https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", ak], [a5, "Path-style addressing cannot be used with S3 Accelerate"], [J, ao], ["https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}", ao], ["https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}", ao], ["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", aj], ["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", ak], ["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}", aj], ["https://s3-fips.{Region}.{partitionResult#dnsSuffix}", ak], ["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", aj], ["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}", ak], [J, aj], [J, ak], [S, aj], [S, ak], ["https://s3.{Region}.{partitionResult#dnsSuffix}", ak], [a5, "A region must be set when sending requests to S3."] ] }; var root5 = 2; var r5 = 1e8; var nodes5 = new Int32Array([ -1, 1, -1, 0, 3, r5 + 115, 1, 424, 4, 2, 272, 5, 3, 233, 6, 4, 85, 7, 5, 15, 8, 8, 9, r5 + 115, 16, 10, 13, 18, 11, 13, 19, 12, 13, 22, r5 + 14, 13, 35, 14, r5 + 42, 36, r5 + 103, 435, 6, 271, 16, 7, 270, 17, 8, 19, 18, 14, 501, 106, 9, 20, 24, 10, 21, 24, 11, 22, 24, 12, 23, 24, 13, 547, 24, 14, 77, 25, 20, 73, 26, 26, 27, 78, 37, 28, r5 + 86, 38, r5 + 86, 29, 39, 47, 30, 48, r5 + 58, 31, 50, 32, r5 + 85, 51, 33, 136, 55, r5 + 76, 34, 59, 35, r5 + 84, 60, 39, 36, 61, 37, r5 + 83, 62, 38, 146, 63, 41, r5 + 46, 61, 40, r5 + 83, 62, 41, 150, 64, 42, r5 + 54, 66, 43, r5 + 53, 70, 44, r5 + 52, 71, 45, r5 + 81, 73, 46, r5 + 80, 74, r5 + 78, r5 + 79, 40, 48, r5 + 57, 41, r5 + 57, 49, 42, 185, 50, 48, 62, 51, 49, r5 + 45, 52, 51, 53, 526, 60, 56, 54, 62, r5 + 55, 55, 63, 57, r5 + 46, 62, r5 + 55, 57, 64, 58, r5 + 54, 66, 59, r5 + 53, 69, 60, r5 + 65, 70, 61, r5 + 52, 72, r5 + 64, r5 + 51, 49, r5 + 45, 63, 51, 64, 526, 60, 67, 65, 62, r5 + 55, 66, 63, 68, r5 + 46, 62, r5 + 55, 68, 64, 69, r5 + 54, 66, 70, r5 + 53, 68, r5 + 47, 71, 70, 72, r5 + 52, 72, r5 + 50, r5 + 51, 25, 74, r5 + 42, 46, r5 + 39, 75, 57, 76, r5 + 41, 58, r5 + 40, r5 + 41, 26, r5 + 88, 78, 28, r5 + 87, 79, 34, 82, 80, 35, 81, 545, 36, r5 + 103, r5 + 115, 46, r5 + 97, 83, 57, 84, r5 + 99, 58, r5 + 98, r5 + 99, 5, 101, 86, 8, 87, r5 + 115, 16, 88, 89, 18, 91, 89, 19, 90, 92, 21, 97, 95, 19, 93, 92, 21, 98, 95, 21, 97, 94, 22, r5 + 14, 95, 35, 96, r5 + 42, 36, r5 + 103, r5 + 42, 22, r5 + 13, 98, 35, 99, r5 + 42, 36, r5 + 101, 100, 46, r5 + 110, r5 + 111, 6, 214, 102, 7, 208, 103, 8, 119, 104, 14, 118, 105, 21, 106, r5 + 23, 26, 107, 502, 37, 108, r5 + 86, 38, r5 + 86, 109, 39, 112, 110, 48, r5 + 58, 111, 50, 136, r5 + 85, 40, 113, r5 + 57, 41, r5 + 57, 114, 42, 115, 500, 48, r5 + 56, 116, 52, 117, r5 + 72, 65, r5 + 69, r5 + 72, 21, 501, r5 + 23, 9, 120, 124, 10, 121, 124, 11, 122, 124, 12, 123, 124, 13, 202, 124, 14, 195, 125, 20, 190, 126, 21, 127, r5 + 23, 23, 128, 129, 24, 189, 129, 26, 130, 197, 37, 131, r5 + 86, 38, r5 + 86, 132, 39, 159, 133, 48, r5 + 58, 134, 50, 135, r5 + 85, 51, 141, 136, 55, r5 + 76, 137, 59, 138, r5 + 84, 60, r5 + 83, 139, 61, 140, r5 + 83, 63, r5 + 83, r5 + 46, 55, r5 + 76, 142, 59, 143, r5 + 84, 60, 148, 144, 61, 145, r5 + 83, 62, 147, 146, 63, 150, r5 + 46, 63, 153, r5 + 46, 61, 149, r5 + 83, 62, 153, 150, 64, 151, r5 + 54, 66, 152, r5 + 53, 70, r5 + 82, r5 + 52, 64, 154, r5 + 54, 66, 155, r5 + 53, 70, 156, r5 + 52, 71, 157, r5 + 81, 73, 158, r5 + 80, 74, r5 + 77, r5 + 79, 40, 160, r5 + 57, 41, r5 + 57, 161, 42, 185, 162, 48, 174, 163, 49, r5 + 45, 164, 51, 165, 526, 60, 168, 166, 62, r5 + 55, 167, 63, 169, r5 + 46, 62, r5 + 55, 169, 64, 170, r5 + 54, 66, 171, r5 + 53, 69, 172, r5 + 65, 70, 173, r5 + 52, 72, r5 + 63, r5 + 51, 49, r5 + 45, 175, 51, 176, 526, 60, 179, 177, 62, r5 + 55, 178, 63, 180, r5 + 46, 62, r5 + 55, 180, 64, 181, r5 + 54, 66, 182, r5 + 53, 68, r5 + 47, 183, 70, 184, r5 + 52, 72, r5 + 48, r5 + 51, 48, r5 + 56, 186, 52, 187, r5 + 72, 65, r5 + 69, 188, 67, r5 + 70, r5 + 71, 25, r5 + 36, r5 + 42, 21, 191, r5 + 23, 25, 192, r5 + 42, 30, 194, 193, 46, r5 + 34, r5 + 36, 46, r5 + 33, r5 + 35, 21, 196, r5 + 23, 26, r5 + 88, 197, 28, r5 + 87, 198, 34, 201, 199, 35, 200, 545, 36, r5 + 101, r5 + 115, 46, r5 + 95, r5 + 96, 17, 203, r5 + 22, 20, 204, r5 + 21, 21, 205, 550, 33, 206, 550, 44, r5 + 16, 207, 45, r5 + 18, r5 + 20, 8, 209, 215, 16, 210, 220, 18, 211, 220, 19, 212, 224, 20, 213, 227, 21, 231, 401, 8, 218, 215, 19, 216, r5 + 9, 20, 217, 227, 21, 231, r5 + 9, 16, 219, 220, 18, 223, 220, 19, 221, 224, 20, 222, 227, 21, 231, r5 + 12, 19, 226, 224, 20, 225, r5 + 9, 21, r5 + 9, r5 + 12, 20, 230, 227, 21, 228, r5 + 9, 30, 229, r5 + 9, 34, r5 + 7, r5 + 9, 21, 231, 415, 30, 232, r5 + 8, 34, r5 + 7, r5 + 8, 4, r5 + 2, 234, 5, 235, 480, 6, 271, 236, 7, 270, 237, 8, 238, 491, 9, 239, 243, 10, 240, 243, 11, 241, 243, 12, 242, 243, 13, 547, 243, 14, 266, 244, 20, 264, 245, 26, 246, 267, 37, 247, r5 + 86, 38, r5 + 86, 248, 39, 249, 518, 40, 250, r5 + 57, 41, r5 + 57, 251, 42, 538, 252, 48, r5 + 43, 253, 49, r5 + 45, 254, 51, 255, 526, 60, 258, 256, 62, r5 + 55, 257, 63, 259, r5 + 46, 62, r5 + 55, 259, 64, 260, r5 + 54, 66, 261, r5 + 53, 69, 262, r5 + 65, 70, 263, r5 + 52, 72, r5 + 62, r5 + 51, 25, 265, r5 + 42, 46, r5 + 31, r5 + 32, 26, r5 + 88, 267, 28, r5 + 87, 268, 34, 269, 544, 46, r5 + 93, r5 + 94, 8, 397, r5 + 9, 8, 407, r5 + 9, 3, 346, 273, 4, r5 + 3, 274, 5, 284, 275, 8, 276, r5 + 115, 15, r5 + 5, 277, 16, 278, 281, 18, 279, 281, 19, 280, 281, 22, r5 + 14, 281, 35, 282, r5 + 42, 36, r5 + 102, 283, 46, r5 + 106, r5 + 107, 6, 405, 285, 7, 395, 286, 8, 295, 287, 14, 501, 288, 26, 289, 502, 37, 290, r5 + 86, 38, r5 + 86, 291, 39, 292, 307, 40, 293, r5 + 57, 41, r5 + 57, 294, 42, 335, 500, 9, 296, 300, 10, 297, 300, 11, 298, 300, 12, 299, 300, 13, 394, 300, 14, 339, 301, 15, r5 + 5, 302, 20, 337, 303, 26, 304, 341, 37, 305, r5 + 86, 38, r5 + 86, 306, 39, 309, 307, 48, r5 + 58, 308, 50, r5 + 74, r5 + 85, 40, 310, r5 + 57, 41, r5 + 57, 311, 42, 335, 312, 48, 324, 313, 49, r5 + 45, 314, 51, 315, 526, 60, 318, 316, 62, r5 + 55, 317, 63, 319, r5 + 46, 62, r5 + 55, 319, 64, 320, r5 + 54, 66, 321, r5 + 53, 69, 322, r5 + 65, 70, 323, r5 + 52, 72, r5 + 61, r5 + 51, 49, r5 + 45, 325, 51, 326, 526, 60, 329, 327, 62, r5 + 55, 328, 63, 330, r5 + 46, 62, r5 + 55, 330, 64, 331, r5 + 54, 66, 332, r5 + 53, 68, r5 + 47, 333, 70, 334, r5 + 52, 72, r5 + 49, r5 + 51, 48, r5 + 56, 336, 52, r5 + 67, r5 + 72, 25, 338, r5 + 42, 46, r5 + 27, r5 + 28, 15, r5 + 5, 340, 26, r5 + 88, 341, 28, r5 + 87, 342, 34, 345, 343, 35, 344, 545, 36, r5 + 102, r5 + 115, 46, r5 + 91, r5 + 92, 4, r5 + 2, 347, 5, 357, 348, 8, 349, r5 + 115, 15, r5 + 5, 350, 16, 351, 354, 18, 352, 354, 19, 353, 354, 22, r5 + 14, 354, 35, 355, r5 + 42, 36, r5 + 43, 356, 46, r5 + 104, r5 + 105, 6, 405, 358, 7, 395, 359, 8, 360, 491, 9, 361, 365, 10, 362, 365, 11, 363, 365, 12, 364, 365, 13, 394, 365, 14, 389, 366, 15, r5 + 5, 367, 20, 387, 368, 26, 369, 391, 37, 370, r5 + 86, 38, r5 + 86, 371, 39, 372, 518, 40, 373, r5 + 57, 41, r5 + 57, 374, 42, 538, 375, 48, r5 + 43, 376, 49, r5 + 45, 377, 51, 378, 526, 60, 381, 379, 62, r5 + 55, 380, 63, 382, r5 + 46, 62, r5 + 55, 382, 64, 383, r5 + 54, 66, 384, r5 + 53, 69, 385, r5 + 65, 70, 386, r5 + 52, 72, r5 + 60, r5 + 51, 25, 388, r5 + 42, 46, r5 + 25, r5 + 26, 15, r5 + 5, 390, 26, r5 + 88, 391, 28, r5 + 87, 392, 34, 393, 544, 46, r5 + 89, r5 + 90, 15, r5 + 5, 547, 8, 396, r5 + 9, 15, r5 + 5, 397, 16, 398, 410, 18, 399, 410, 19, 400, 410, 20, 401, r5 + 9, 27, 402, r5 + 12, 29, r5 + 11, 403, 31, r5 + 11, 404, 32, r5 + 11, 422, 8, 406, r5 + 9, 15, r5 + 5, 407, 16, 408, 410, 18, 409, 410, 19, 411, 410, 20, r5 + 12, r5 + 9, 20, 414, 412, 22, 413, r5 + 9, 34, r5 + 10, r5 + 9, 22, 416, 415, 27, 419, r5 + 12, 27, 418, 417, 34, r5 + 10, r5 + 12, 34, r5 + 10, 419, 43, r5 + 11, 420, 47, r5 + 11, 421, 53, r5 + 11, 422, 54, r5 + 11, 423, 56, r5 + 11, r5 + 12, 2, r5 + 1, 425, 3, 478, 426, 4, r5 + 4, 427, 5, 438, 428, 8, 429, r5 + 115, 16, 430, 433, 18, 431, 433, 19, 432, 433, 22, r5 + 14, 433, 35, 434, r5 + 42, 36, r5 + 44, 435, 46, r5 + 112, 436, 57, 437, r5 + 114, 58, r5 + 113, r5 + 114, 6, r5 + 6, 439, 7, r5 + 6, 440, 8, 450, 441, 14, 501, 442, 26, 443, 502, 37, 444, r5 + 86, 38, r5 + 86, 445, 39, 446, 465, 40, 447, r5 + 57, 41, r5 + 57, 448, 42, 471, 449, 48, r5 + 44, 500, 9, 451, 455, 10, 452, 455, 11, 453, 455, 12, 454, 455, 13, 547, 455, 14, 473, 456, 15, 460, 457, 20, 458, 461, 25, 459, r5 + 42, 46, r5 + 37, r5 + 38, 20, 540, 461, 26, 462, 474, 37, 463, r5 + 86, 38, r5 + 86, 464, 39, 467, 465, 48, r5 + 58, 466, 50, r5 + 75, r5 + 85, 40, 468, r5 + 57, 41, r5 + 57, 469, 42, 471, 470, 48, r5 + 44, 524, 48, r5 + 44, 472, 52, r5 + 68, r5 + 72, 26, r5 + 88, 474, 28, r5 + 87, 475, 34, r5 + 100, 476, 35, 477, 545, 36, r5 + 44, r5 + 115, 4, r5 + 2, 479, 5, 488, 480, 8, 481, r5 + 115, 16, 482, 485, 18, 483, 485, 19, 484, 485, 22, r5 + 14, 485, 35, 486, r5 + 42, 36, r5 + 43, 487, 46, r5 + 108, r5 + 109, 6, r5 + 6, 489, 7, r5 + 6, 490, 8, 503, 491, 14, 501, 492, 26, 493, 502, 37, 494, r5 + 86, 38, r5 + 86, 495, 39, 496, 518, 40, 497, r5 + 57, 41, r5 + 57, 498, 42, 538, 499, 48, r5 + 43, 500, 49, r5 + 45, 526, 26, r5 + 88, 502, 28, r5 + 87, r5 + 115, 9, 504, 508, 10, 505, 508, 11, 506, 508, 12, 507, 508, 13, 547, 508, 14, 541, 509, 15, 513, 510, 20, 511, 514, 25, 512, r5 + 42, 46, r5 + 29, r5 + 30, 20, 540, 514, 26, 515, 542, 37, 516, r5 + 86, 38, r5 + 86, 517, 39, 520, 518, 48, r5 + 58, 519, 50, r5 + 73, r5 + 85, 40, 521, r5 + 57, 41, r5 + 57, 522, 42, 538, 523, 48, r5 + 43, 524, 49, r5 + 45, 525, 51, 529, 526, 60, r5 + 55, 527, 62, r5 + 55, 528, 63, r5 + 55, r5 + 46, 60, 532, 530, 62, r5 + 55, 531, 63, 533, r5 + 46, 62, r5 + 55, 533, 64, 534, r5 + 54, 66, 535, r5 + 53, 69, 536, r5 + 65, 70, 537, r5 + 52, 72, r5 + 59, r5 + 51, 48, r5 + 43, 539, 52, r5 + 66, r5 + 72, 25, r5 + 24, r5 + 42, 26, r5 + 88, 542, 28, r5 + 87, 543, 34, r5 + 100, 544, 35, 546, 545, 36, r5 + 42, r5 + 115, 36, r5 + 43, r5 + 115, 17, 548, r5 + 22, 20, 549, r5 + 21, 33, 552, 550, 44, r5 + 17, 551, 45, r5 + 19, r5 + 20, 44, r5 + 15, 553, 45, r5 + 15, r5 + 20 ]); var bdd5 = BinaryDecisionDiagram2.from(nodes5, root5, _data5.conditions, _data5.results); var cache5 = new EndpointCache2({ size: 50, params: [ "Accelerate", "Bucket", "DisableAccessPoints", "DisableMultiRegionAccessPoints", "DisableS3ExpressSessionAuth", "Endpoint", "ForcePathStyle", "Region", "UseArnRegion", "UseDualStack", "UseFIPS", "UseGlobalEndpoint", "UseObjectLambdaEndpoint", "UseS3ExpressControlEndpoint" ] }); var defaultEndpointResolver5 = /* @__PURE__ */ __name((endpointParams, context = {}) => { return cache5.get(endpointParams, () => decideEndpoint2(bdd5, { endpointParams, logger: context.logger })); }, "defaultEndpointResolver"); customEndpointFunctions2.aws = awsEndpointFunctions2; var createEndpointRuleSetHttpAuthSchemeParametersProvider2 = /* @__PURE__ */ __name((defaultHttpAuthSchemeParametersProvider) => async (config3, context, input2) => { if (!input2) { throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`"); } const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config3, context, input2); const instructionsFn = getSmithyContext2(context)?.commandInstance?.constructor?.getEndpointParameterInstructions; if (!instructionsFn) { throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`); } const endpointParameters = await resolveParams2(input2, { getEndpointParameterInstructions: instructionsFn }, config3); return Object.assign(defaultParameters, endpointParameters); }, "createEndpointRuleSetHttpAuthSchemeParametersProvider"); var _defaultS3HttpAuthSchemeParametersProvider = /* @__PURE__ */ __name(async (config3, context, input2) => { return { operation: getSmithyContext2(context).operation, region: await normalizeProvider3(config3.region)() || (() => { throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); })() }; }, "_defaultS3HttpAuthSchemeParametersProvider"); var defaultS3HttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider2(_defaultS3HttpAuthSchemeParametersProvider); function createAwsAuthSigv4HttpAuthOption5(authParameters) { return { schemeId: "aws.auth#sigv4", signingProperties: { name: "s3", region: authParameters.region }, propertiesExtractor: /* @__PURE__ */ __name((config3, context) => ({ signingProperties: { config: config3, context } }), "propertiesExtractor") }; } __name(createAwsAuthSigv4HttpAuthOption5, "createAwsAuthSigv4HttpAuthOption"); function createAwsAuthSigv4aHttpAuthOption2(authParameters) { return { schemeId: "aws.auth#sigv4a", signingProperties: { name: "s3", region: authParameters.region }, propertiesExtractor: /* @__PURE__ */ __name((config3, context) => ({ signingProperties: { config: config3, context } }), "propertiesExtractor") }; } __name(createAwsAuthSigv4aHttpAuthOption2, "createAwsAuthSigv4aHttpAuthOption"); var createEndpointRuleSetHttpAuthSchemeProvider2 = /* @__PURE__ */ __name((defaultEndpointResolver6, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => { const endpointRuleSetHttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => { const endpoint = defaultEndpointResolver6(authParameters); const authSchemes = endpoint.properties?.authSchemes; if (!authSchemes) { return defaultHttpAuthSchemeResolver(authParameters); } const options = []; for (const scheme of authSchemes) { const { name: resolvedName, properties = {}, ...rest } = scheme; const name2 = resolvedName.toLowerCase(); if (resolvedName !== name2) { console.warn(`HttpAuthScheme has been normalized with lowercasing: '${resolvedName}' to '${name2}'`); } let schemeId; if (name2 === "sigv4a") { schemeId = "aws.auth#sigv4a"; const sigv4Present = authSchemes.find((s3) => { const name3 = s3.name.toLowerCase(); return name3 !== "sigv4a" && name3.startsWith("sigv4"); }); if (SignatureV4MultiRegion3.sigv4aDependency() === "none" && sigv4Present) { continue; } } else if (name2.startsWith("sigv4")) { schemeId = "aws.auth#sigv4"; } else { throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name2}'`); } const createOption = createHttpAuthOptionFunctions[schemeId]; if (!createOption) { throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`); } const option = createOption(authParameters); option.schemeId = schemeId; option.signingProperties = { ...option.signingProperties || {}, ...rest, ...properties }; options.push(option); } return options; }, "endpointRuleSetHttpAuthSchemeProvider"); return endpointRuleSetHttpAuthSchemeProvider; }, "createEndpointRuleSetHttpAuthSchemeProvider"); var _defaultS3HttpAuthSchemeProvider = /* @__PURE__ */ __name((authParameters) => { const options = []; switch (authParameters.operation) { default: { options.push(createAwsAuthSigv4HttpAuthOption5(authParameters)); options.push(createAwsAuthSigv4aHttpAuthOption2(authParameters)); } } return options; }, "_defaultS3HttpAuthSchemeProvider"); var defaultS3HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider2(defaultEndpointResolver5, _defaultS3HttpAuthSchemeProvider, { "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption5, "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption2 }); var resolveHttpAuthSchemeConfig5 = /* @__PURE__ */ __name((config3) => { const config_0 = resolveAwsSdkSigV4Config2(config3); const config_1 = resolveAwsSdkSigV4AConfig2(config_0); return Object.assign(config_1, { authSchemePreference: normalizeProvider3(config3.authSchemePreference ?? []) }); }, "resolveHttpAuthSchemeConfig"); var resolveClientEndpointParameters5 = /* @__PURE__ */ __name((options) => { return Object.assign(options, { useFipsEndpoint: options.useFipsEndpoint ?? false, useDualstackEndpoint: options.useDualstackEndpoint ?? false, forcePathStyle: options.forcePathStyle ?? false, useAccelerateEndpoint: options.useAccelerateEndpoint ?? false, useGlobalEndpoint: options.useGlobalEndpoint ?? false, disableMultiregionAccessPoints: options.disableMultiregionAccessPoints ?? false, defaultSigningName: "s3", clientContextParams: options.clientContextParams ?? {} }); }, "resolveClientEndpointParameters"); var commonParams5 = { ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" }, UseArnRegion: { type: "clientContextParams", name: "useArnRegion" }, DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" }, Accelerate: { type: "clientContextParams", name: "useAccelerateEndpoint" }, DisableS3ExpressSessionAuth: { type: "clientContextParams", name: "disableS3ExpressSessionAuth" }, UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } }; var command5 = makeBuilder2(commonParams5, "AmazonS3", "S3Client", getEndpointPlugin2); var _ep05 = { Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" } }; var _ep12 = { DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, Key: { type: "contextParams", name: "Key" }, CopySource: { type: "contextParams", name: "CopySource" } }; var _ep2 = { UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, DisableAccessPoints: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } }; var _ep3 = { UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } }; var _ep4 = { DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" } }; var _ep5 = { Bucket: { type: "contextParams", name: "Bucket" } }; var _ep6 = {}; var _ep7 = { UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true } }; var _ep8 = { Bucket: { type: "contextParams", name: "Bucket" }, Prefix: { type: "contextParams", name: "Prefix" } }; var _ep9 = { UseObjectLambdaEndpoint: { type: "staticContextParams", value: true } }; var _mw05 = /* @__PURE__ */ __name((Command2, cs, config3, o4) => [ getThrow200ExceptionsPlugin2(config3) ], "_mw0"); var _mw1 = /* @__PURE__ */ __name((Command2, cs, config3, o4) => [ getThrow200ExceptionsPlugin2(config3), getSsecPlugin2(config3) ], "_mw1"); var _mw2 = /* @__PURE__ */ __name((Command2, cs, config3, o4) => [ getThrow200ExceptionsPlugin2(config3), getLocationConstraintPlugin2(config3) ], "_mw2"); var _mw3 = /* @__PURE__ */ __name((Command2, cs, config3, o4) => [ getFlexibleChecksumsPlugin2(config3, { requestAlgorithmMember: { "httpHeader": "x-amz-sdk-checksum-algorithm", "name": "ChecksumAlgorithm" }, requestChecksumRequired: true }) ], "_mw3"); var _mw4 = /* @__PURE__ */ __name((Command2, cs, config3, o4) => [], "_mw4"); var _mw5 = /* @__PURE__ */ __name((Command2, cs, config3, o4) => [ getFlexibleChecksumsPlugin2(config3, { requestAlgorithmMember: { "httpHeader": "x-amz-sdk-checksum-algorithm", "name": "ChecksumAlgorithm" }, requestChecksumRequired: true }), getThrow200ExceptionsPlugin2(config3) ], "_mw5"); var _mw6 = /* @__PURE__ */ __name((Command2, cs, config3, o4) => [ getFlexibleChecksumsPlugin2(config3, { requestChecksumRequired: false, requestValidationModeMember: "ChecksumMode", responseAlgorithms: ["CRC64NVME", "CRC32", "CRC32C", "SHA256", "SHA1", "SHA512", "MD5", "XXHASH64", "XXHASH3", "XXHASH128"] }) ], "_mw6"); var _mw7 = /* @__PURE__ */ __name((Command2, cs, config3, o4) => [ getFlexibleChecksumsPlugin2(config3, { requestChecksumRequired: false, requestValidationModeMember: "ChecksumMode", responseAlgorithms: ["CRC64NVME", "CRC32", "CRC32C", "SHA256", "SHA1", "SHA512", "MD5", "XXHASH64", "XXHASH3", "XXHASH128"] }), getSsecPlugin2(config3), getS3ExpiresMiddlewarePlugin2(config3) ], "_mw7"); var _mw8 = /* @__PURE__ */ __name((Command2, cs, config3, o4) => [ getThrow200ExceptionsPlugin2(config3), getSsecPlugin2(config3), getS3ExpiresMiddlewarePlugin2(config3) ], "_mw8"); var _mw9 = /* @__PURE__ */ __name((Command2, cs, config3, o4) => [ getFlexibleChecksumsPlugin2(config3, { requestAlgorithmMember: { "httpHeader": "x-amz-sdk-checksum-algorithm", "name": "ChecksumAlgorithm" }, requestChecksumRequired: false }) ], "_mw9"); var _mw10 = /* @__PURE__ */ __name((Command2, cs, config3, o4) => [ getFlexibleChecksumsPlugin2(config3, { requestAlgorithmMember: { "httpHeader": "x-amz-sdk-checksum-algorithm", "name": "ChecksumAlgorithm" }, requestChecksumRequired: false }), getThrow200ExceptionsPlugin2(config3) ], "_mw10"); var _mw11 = /* @__PURE__ */ __name((Command2, cs, config3, o4) => [ getFlexibleChecksumsPlugin2(config3, { requestAlgorithmMember: { "httpHeader": "x-amz-sdk-checksum-algorithm", "name": "ChecksumAlgorithm" }, requestChecksumRequired: false }), getCheckContentLengthHeaderPlugin2(config3), getThrow200ExceptionsPlugin2(config3), getSsecPlugin2(config3) ], "_mw11"); var _mw12 = /* @__PURE__ */ __name((Command2, cs, config3, o4) => [ getSsecPlugin2(config3) ], "_mw12"); var _mw13 = /* @__PURE__ */ __name((Command2, cs, config3, o4) => [ getFlexibleChecksumsPlugin2(config3, { requestAlgorithmMember: { "httpHeader": "x-amz-sdk-checksum-algorithm", "name": "ChecksumAlgorithm" }, requestChecksumRequired: false }), getThrow200ExceptionsPlugin2(config3), getSsecPlugin2(config3) ], "_mw13"); var S3ServiceException = class _S3ServiceException extends ServiceException2 { static { __name(this, "S3ServiceException"); } static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.s3#S3ServiceException"; constructor(options) { super(options); Object.setPrototypeOf(this, _S3ServiceException.prototype); } }; var NoSuchUpload = class _NoSuchUpload extends S3ServiceException { static { __name(this, "NoSuchUpload"); } static shapeId = "com.amazonaws.s3#NoSuchUpload"; name = "NoSuchUpload"; $fault = "client"; constructor(opts) { super({ name: "NoSuchUpload", $fault: "client", ...opts }); Object.setPrototypeOf(this, _NoSuchUpload.prototype); } }; var AccessDenied = class _AccessDenied extends S3ServiceException { static { __name(this, "AccessDenied"); } static shapeId = "com.amazonaws.s3#AccessDenied"; name = "AccessDenied"; $fault = "client"; constructor(opts) { super({ name: "AccessDenied", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AccessDenied.prototype); } }; var ObjectNotInActiveTierError = class _ObjectNotInActiveTierError extends S3ServiceException { static { __name(this, "ObjectNotInActiveTierError"); } static shapeId = "com.amazonaws.s3#ObjectNotInActiveTierError"; name = "ObjectNotInActiveTierError"; $fault = "client"; constructor(opts) { super({ name: "ObjectNotInActiveTierError", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ObjectNotInActiveTierError.prototype); } }; var BucketAlreadyExists = class _BucketAlreadyExists extends S3ServiceException { static { __name(this, "BucketAlreadyExists"); } static shapeId = "com.amazonaws.s3#BucketAlreadyExists"; name = "BucketAlreadyExists"; $fault = "client"; constructor(opts) { super({ name: "BucketAlreadyExists", $fault: "client", ...opts }); Object.setPrototypeOf(this, _BucketAlreadyExists.prototype); } }; var BucketAlreadyOwnedByYou = class _BucketAlreadyOwnedByYou extends S3ServiceException { static { __name(this, "BucketAlreadyOwnedByYou"); } static shapeId = "com.amazonaws.s3#BucketAlreadyOwnedByYou"; name = "BucketAlreadyOwnedByYou"; $fault = "client"; constructor(opts) { super({ name: "BucketAlreadyOwnedByYou", $fault: "client", ...opts }); Object.setPrototypeOf(this, _BucketAlreadyOwnedByYou.prototype); } }; var NoSuchBucket = class _NoSuchBucket extends S3ServiceException { static { __name(this, "NoSuchBucket"); } static shapeId = "com.amazonaws.s3#NoSuchBucket"; name = "NoSuchBucket"; $fault = "client"; constructor(opts) { super({ name: "NoSuchBucket", $fault: "client", ...opts }); Object.setPrototypeOf(this, _NoSuchBucket.prototype); } }; var NoSuchKey = class _NoSuchKey extends S3ServiceException { static { __name(this, "NoSuchKey"); } static shapeId = "com.amazonaws.s3#NoSuchKey"; name = "NoSuchKey"; $fault = "client"; constructor(opts) { super({ name: "NoSuchKey", $fault: "client", ...opts }); Object.setPrototypeOf(this, _NoSuchKey.prototype); } }; var InvalidObjectState = class _InvalidObjectState extends S3ServiceException { static { __name(this, "InvalidObjectState"); } static shapeId = "com.amazonaws.s3#InvalidObjectState"; name = "InvalidObjectState"; $fault = "client"; StorageClass; AccessTier; constructor(opts) { super({ name: "InvalidObjectState", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidObjectState.prototype); this.StorageClass = opts.StorageClass; this.AccessTier = opts.AccessTier; } }; var NoSuchAnnotation = class _NoSuchAnnotation extends S3ServiceException { static { __name(this, "NoSuchAnnotation"); } static shapeId = "com.amazonaws.s3#NoSuchAnnotation"; name = "NoSuchAnnotation"; $fault = "client"; constructor(opts) { super({ name: "NoSuchAnnotation", $fault: "client", ...opts }); Object.setPrototypeOf(this, _NoSuchAnnotation.prototype); } }; var NotFound = class _NotFound extends S3ServiceException { static { __name(this, "NotFound"); } static shapeId = "com.amazonaws.s3#NotFound"; name = "NotFound"; $fault = "client"; constructor(opts) { super({ name: "NotFound", $fault: "client", ...opts }); Object.setPrototypeOf(this, _NotFound.prototype); } }; var InvalidPrefix = class _InvalidPrefix extends S3ServiceException { static { __name(this, "InvalidPrefix"); } static shapeId = "com.amazonaws.s3#InvalidPrefix"; name = "InvalidPrefix"; $fault = "client"; constructor(opts) { super({ name: "InvalidPrefix", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidPrefix.prototype); } }; var EncryptionTypeMismatch = class _EncryptionTypeMismatch extends S3ServiceException { static { __name(this, "EncryptionTypeMismatch"); } static shapeId = "com.amazonaws.s3#EncryptionTypeMismatch"; name = "EncryptionTypeMismatch"; $fault = "client"; constructor(opts) { super({ name: "EncryptionTypeMismatch", $fault: "client", ...opts }); Object.setPrototypeOf(this, _EncryptionTypeMismatch.prototype); } }; var InvalidRequest = class _InvalidRequest extends S3ServiceException { static { __name(this, "InvalidRequest"); } static shapeId = "com.amazonaws.s3#InvalidRequest"; name = "InvalidRequest"; $fault = "client"; constructor(opts) { super({ name: "InvalidRequest", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidRequest.prototype); } }; var InvalidWriteOffset = class _InvalidWriteOffset extends S3ServiceException { static { __name(this, "InvalidWriteOffset"); } static shapeId = "com.amazonaws.s3#InvalidWriteOffset"; name = "InvalidWriteOffset"; $fault = "client"; constructor(opts) { super({ name: "InvalidWriteOffset", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidWriteOffset.prototype); } }; var TooManyParts = class _TooManyParts extends S3ServiceException { static { __name(this, "TooManyParts"); } static shapeId = "com.amazonaws.s3#TooManyParts"; name = "TooManyParts"; $fault = "client"; constructor(opts) { super({ name: "TooManyParts", $fault: "client", ...opts }); Object.setPrototypeOf(this, _TooManyParts.prototype); } }; var AnnotationLimitExceeded = class _AnnotationLimitExceeded extends S3ServiceException { static { __name(this, "AnnotationLimitExceeded"); } static shapeId = "com.amazonaws.s3#AnnotationLimitExceeded"; name = "AnnotationLimitExceeded"; $fault = "client"; constructor(opts) { super({ name: "AnnotationLimitExceeded", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AnnotationLimitExceeded.prototype); } }; var AnnotationNameTooLong = class _AnnotationNameTooLong extends S3ServiceException { static { __name(this, "AnnotationNameTooLong"); } static shapeId = "com.amazonaws.s3#AnnotationNameTooLong"; name = "AnnotationNameTooLong"; $fault = "client"; constructor(opts) { super({ name: "AnnotationNameTooLong", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AnnotationNameTooLong.prototype); } }; var InvalidAnnotationName = class _InvalidAnnotationName extends S3ServiceException { static { __name(this, "InvalidAnnotationName"); } static shapeId = "com.amazonaws.s3#InvalidAnnotationName"; name = "InvalidAnnotationName"; $fault = "client"; constructor(opts) { super({ name: "InvalidAnnotationName", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidAnnotationName.prototype); } }; var UnsupportedMediaType = class _UnsupportedMediaType extends S3ServiceException { static { __name(this, "UnsupportedMediaType"); } static shapeId = "com.amazonaws.s3#UnsupportedMediaType"; name = "UnsupportedMediaType"; $fault = "client"; constructor(opts) { super({ name: "UnsupportedMediaType", $fault: "client", ...opts }); Object.setPrototypeOf(this, _UnsupportedMediaType.prototype); } }; var IdempotencyParameterMismatch = class _IdempotencyParameterMismatch extends S3ServiceException { static { __name(this, "IdempotencyParameterMismatch"); } static shapeId = "com.amazonaws.s3#IdempotencyParameterMismatch"; name = "IdempotencyParameterMismatch"; $fault = "client"; constructor(opts) { super({ name: "IdempotencyParameterMismatch", $fault: "client", ...opts }); Object.setPrototypeOf(this, _IdempotencyParameterMismatch.prototype); } }; var ObjectAlreadyInActiveTierError = class _ObjectAlreadyInActiveTierError extends S3ServiceException { static { __name(this, "ObjectAlreadyInActiveTierError"); } static shapeId = "com.amazonaws.s3#ObjectAlreadyInActiveTierError"; name = "ObjectAlreadyInActiveTierError"; $fault = "client"; constructor(opts) { super({ name: "ObjectAlreadyInActiveTierError", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ObjectAlreadyInActiveTierError.prototype); } }; var _A2 = "Account"; var _AAO = "AnalyticsAndOperator"; var _AC = "AccelerateConfiguration"; var _ACL = "AccessControlList"; var _ACL_ = "ACL"; var _ACLn = "AnalyticsConfigurationList"; var _ACP = "AccessControlPolicy"; var _ACT = "AccessControlTranslation"; var _ACn = "AnalyticsConfiguration"; var _ACnn = "AnnotationCount"; var _AD = "AccessDenied"; var _ADb = "AbortDate"; var _ADn = "AnnotationDirective"; var _AE = "AnnotationEntry"; var _AED = "AnalyticsExportDestination"; var _AF = "AnalyticsFilter"; var _AH = "AllowedHeaders"; var _AHl = "AllowedHeader"; var _AI = "AccountId"; var _AIMU = "AbortIncompleteMultipartUpload"; var _AKI2 = "AccessKeyId"; var _AL = "AnnotationList"; var _ALE = "AnnotationLimitExceeded"; var _AM = "AllowedMethods"; var _AMU = "AbortMultipartUpload"; var _AMUO = "AbortMultipartUploadOutput"; var _AMUR = "AbortMultipartUploadRequest"; var _AMl = "AllowedMethod"; var _AN = "AnnotationName"; var _ANTL = "AnnotationNameTooLong"; var _AO = "AllowedOrigins"; var _AOl = "AllowedOrigin"; var _AP = "AnnotationPayload"; var _APA = "AccessPointAlias"; var _APAc = "AccessPointArn"; var _APn = "AnnotationPrefix"; var _AQRD = "AllowQuotedRecordDelimiter"; var _AR2 = "AcceptRanges"; var _ARI2 = "AbortRuleId"; var _AS = "AbacStatus"; var _ASBD = "AnalyticsS3BucketDestination"; var _ASSEBD = "ApplyServerSideEncryptionByDefault"; var _ASr = "ArchiveStatus"; var _AT3 = "AccessTier"; var _ATC = "AnnotationTableConfiguration"; var _ATCR = "AnnotationTableConfigurationResult"; var _ATCU = "AnnotationTableConfigurationUpdates"; var _An = "And"; var _Ann = "Annotations"; var _B = "Bucket"; var _BA = "BucketArn"; var _BAE = "BucketAlreadyExists"; var _BAI = "BucketAccountId"; var _BAOBY = "BucketAlreadyOwnedByYou"; var _BET = "BlockedEncryptionTypes"; var _BGR = "BypassGovernanceRetention"; var _BI = "BucketInfo"; var _BKE = "BucketKeyEnabled"; var _BLC = "BucketLifecycleConfiguration"; var _BLN = "BucketLocationName"; var _BLS = "BucketLoggingStatus"; var _BLT = "BucketLocationType"; var _BN = "BucketNamespace"; var _BNu = "BucketName"; var _BP = "BytesProcessed"; var _BPA = "BlockPublicAcls"; var _BPP = "BlockPublicPolicy"; var _BR = "BucketRegion"; var _BRy = "BytesReturned"; var _BS = "BytesScanned"; var _Bo = "Body"; var _Bu = "Buckets"; var _C2 = "Checksum"; var _CA2 = "ChecksumAlgorithm"; var _CACL = "CannedACL"; var _CB = "CreateBucket"; var _CBC = "CreateBucketConfiguration"; var _CBMC = "CreateBucketMetadataConfiguration"; var _CBMCR = "CreateBucketMetadataConfigurationRequest"; var _CBMTC = "CreateBucketMetadataTableConfiguration"; var _CBMTCR = "CreateBucketMetadataTableConfigurationRequest"; var _CBO = "CreateBucketOutput"; var _CBR = "CreateBucketRequest"; var _CC = "CacheControl"; var _CCRC = "ChecksumCRC32"; var _CCRCC = "ChecksumCRC32C"; var _CCRCNVME = "ChecksumCRC64NVME"; var _CC_ = "Cache-Control"; var _CD = "CreationDate"; var _CD_ = "Content-Disposition"; var _CDo = "ContentDisposition"; var _CE = "ContinuationEvent"; var _CE_ = "Content-Encoding"; var _CEo = "ContentEncoding"; var _CF = "CloudFunction"; var _CFC = "CloudFunctionConfiguration"; var _CL = "ContentLanguage"; var _CL_ = "Content-Language"; var _CL__ = "Content-Length"; var _CLo = "ContentLength"; var _CM = "Content-MD5"; var _CMD = "ChecksumMD5"; var _CMDo = "ContentMD5"; var _CMU = "CompletedMultipartUpload"; var _CMUO = "CompleteMultipartUploadOutput"; var _CMUOr = "CreateMultipartUploadOutput"; var _CMUR = "CompleteMultipartUploadResult"; var _CMURo = "CompleteMultipartUploadRequest"; var _CMURr = "CreateMultipartUploadRequest"; var _CMUo = "CompleteMultipartUpload"; var _CMUr = "CreateMultipartUpload"; var _CMh = "ChecksumMode"; var _CO = "CopyObject"; var _COO = "CopyObjectOutput"; var _COR = "CopyObjectResult"; var _CORSC = "CORSConfiguration"; var _CORSR = "CORSRules"; var _CORSRu = "CORSRule"; var _CORo = "CopyObjectRequest"; var _CP = "CommonPrefix"; var _CPL = "CommonPrefixList"; var _CPLo = "CompletedPartList"; var _CPR = "CopyPartResult"; var _CPo = "CompletedPart"; var _CPom = "CommonPrefixes"; var _CR = "ContentRange"; var _CRSBA = "ConfirmRemoveSelfBucketAccess"; var _CR_ = "Content-Range"; var _CS2 = "ConfigurationState"; var _CSHA = "ChecksumSHA1"; var _CSHAh = "ChecksumSHA256"; var _CSHAhe = "ChecksumSHA512"; var _CSIM = "CopySourceIfMatch"; var _CSIMS = "CopySourceIfModifiedSince"; var _CSINM = "CopySourceIfNoneMatch"; var _CSIUS = "CopySourceIfUnmodifiedSince"; var _CSO = "CreateSessionOutput"; var _CSR = "CreateSessionResult"; var _CSRo = "CopySourceRange"; var _CSRr = "CreateSessionRequest"; var _CSSSECA = "CopySourceSSECustomerAlgorithm"; var _CSSSECK = "CopySourceSSECustomerKey"; var _CSSSECKMD = "CopySourceSSECustomerKeyMD5"; var _CSV = "CSV"; var _CSVI = "CopySourceVersionId"; var _CSVIn = "CSVInput"; var _CSVO = "CSVOutput"; var _CSo = "CopySource"; var _CSr = "CreateSession"; var _CT2 = "ChecksumType"; var _CT_ = "Content-Type"; var _CTl = "ClientToken"; var _CTo = "ContentType"; var _CTom = "CompressionType"; var _CTon = "ContinuationToken"; var _CXXHASH = "ChecksumXXHASH64"; var _CXXHASHh = "ChecksumXXHASH3"; var _CXXHASHhe = "ChecksumXXHASH128"; var _Co = "Condition"; var _Cod = "Code"; var _Com = "Comments"; var _Con = "Contents"; var _Cont = "Cont"; var _Cr = "Credentials"; var _D = "Days"; var _DAI = "DaysAfterInitiation"; var _DB = "DeleteBucket"; var _DBAC = "DeleteBucketAnalyticsConfiguration"; var _DBACR = "DeleteBucketAnalyticsConfigurationRequest"; var _DBC = "DeleteBucketCors"; var _DBCR = "DeleteBucketCorsRequest"; var _DBE = "DeleteBucketEncryption"; var _DBER = "DeleteBucketEncryptionRequest"; var _DBIC = "DeleteBucketInventoryConfiguration"; var _DBICR = "DeleteBucketInventoryConfigurationRequest"; var _DBITC = "DeleteBucketIntelligentTieringConfiguration"; var _DBITCR = "DeleteBucketIntelligentTieringConfigurationRequest"; var _DBL = "DeleteBucketLifecycle"; var _DBLR = "DeleteBucketLifecycleRequest"; var _DBMC = "DeleteBucketMetadataConfiguration"; var _DBMCR = "DeleteBucketMetadataConfigurationRequest"; var _DBMCRe = "DeleteBucketMetricsConfigurationRequest"; var _DBMCe = "DeleteBucketMetricsConfiguration"; var _DBMTC = "DeleteBucketMetadataTableConfiguration"; var _DBMTCR = "DeleteBucketMetadataTableConfigurationRequest"; var _DBOC = "DeleteBucketOwnershipControls"; var _DBOCR = "DeleteBucketOwnershipControlsRequest"; var _DBP = "DeleteBucketPolicy"; var _DBPR = "DeleteBucketPolicyRequest"; var _DBR = "DeleteBucketRequest"; var _DBRR = "DeleteBucketReplicationRequest"; var _DBRe = "DeleteBucketReplication"; var _DBT = "DeleteBucketTagging"; var _DBTR = "DeleteBucketTaggingRequest"; var _DBW = "DeleteBucketWebsite"; var _DBWR = "DeleteBucketWebsiteRequest"; var _DE = "DataExport"; var _DEH = "DefaultEventHold"; var _DIM = "DestinationIfMatch"; var _DIMS = "DestinationIfModifiedSince"; var _DINM = "DestinationIfNoneMatch"; var _DIUS = "DestinationIfUnmodifiedSince"; var _DM = "DeleteMarker"; var _DME = "DeleteMarkerEntry"; var _DMR = "DeleteMarkerReplication"; var _DMVI = "DeleteMarkerVersionId"; var _DMe = "DeleteMarkers"; var _DN = "DisplayName"; var _DO = "DeletedObject"; var _DOA = "DeleteObjectAnnotation"; var _DOAO = "DeleteObjectAnnotationOutput"; var _DOAR = "DeleteObjectAnnotationRequest"; var _DOO = "DeleteObjectOutput"; var _DOOe = "DeleteObjectsOutput"; var _DOR = "DeleteObjectRequest"; var _DORe = "DeleteObjectsRequest"; var _DOT = "DeleteObjectTagging"; var _DOTO = "DeleteObjectTaggingOutput"; var _DOTR = "DeleteObjectTaggingRequest"; var _DOe = "DeletedObjects"; var _DOel = "DeleteObject"; var _DOele = "DeleteObjects"; var _DPAB = "DeletePublicAccessBlock"; var _DPABR = "DeletePublicAccessBlockRequest"; var _DR = "DataRedundancy"; var _DRe = "DefaultRetention"; var _DRel = "DeleteResult"; var _DRes = "DestinationResult"; var _Da = "Date"; var _De = "Delete"; var _Del = "Deleted"; var _Deli = "Delimiter"; var _Des = "Destination"; var _Desc = "Description"; var _Det = "Details"; var _E3 = "Error"; var _EA = "EmailAddress"; var _EBC = "EventBridgeConfiguration"; var _EBO = "ExpectedBucketOwner"; var _EC = "EncryptionConfiguration"; var _ECr = "ErrorCode"; var _ED = "ErrorDetails"; var _EDr = "ErrorDocument"; var _EE = "EndEvent"; var _EH = "ExposeHeaders"; var _EHD = "EventHoldDuration"; var _EHv = "EventHold"; var _EHx = "ExposeHeader"; var _EM = "ErrorMessage"; var _EODM = "ExpiredObjectDeleteMarker"; var _EOR = "ExistingObjectReplication"; var _ES = "ExpiresString"; var _ESBO = "ExpectedSourceBucketOwner"; var _ET = "ETag"; var _ETL = "EncryptionTypeList"; var _ETM = "EncryptionTypeMismatch"; var _ETn = "EncryptionType"; var _ETnc = "EncodingType"; var _ETv = "EventThreshold"; var _ETx = "ExpressionType"; var _En = "Encryption"; var _Ena = "Enabled"; var _End = "End"; var _Er = "Errors"; var _Ev = "Events"; var _Eve = "Event"; var _Ex = "Expiration"; var _Exp = "Expires"; var _Expr = "Expression"; var _F = "Filter"; var _FD = "FieldDelimiter"; var _FHI = "FileHeaderInfo"; var _FO = "FetchOwner"; var _FR = "FilterRule"; var _FRL = "FilterRuleList"; var _FRi = "FilterRules"; var _Fi = "Field"; var _Fo = "Format"; var _Fr = "Frequency"; var _G = "Grants"; var _GBA = "GetBucketAbac"; var _GBAC = "GetBucketAccelerateConfiguration"; var _GBACO = "GetBucketAccelerateConfigurationOutput"; var _GBACOe = "GetBucketAnalyticsConfigurationOutput"; var _GBACR = "GetBucketAccelerateConfigurationRequest"; var _GBACRe = "GetBucketAnalyticsConfigurationRequest"; var _GBACe = "GetBucketAnalyticsConfiguration"; var _GBAO = "GetBucketAbacOutput"; var _GBAOe = "GetBucketAclOutput"; var _GBAR = "GetBucketAbacRequest"; var _GBARe = "GetBucketAclRequest"; var _GBAe = "GetBucketAcl"; var _GBC = "GetBucketCors"; var _GBCO = "GetBucketCorsOutput"; var _GBCR = "GetBucketCorsRequest"; var _GBE = "GetBucketEncryption"; var _GBEO = "GetBucketEncryptionOutput"; var _GBER = "GetBucketEncryptionRequest"; var _GBIC = "GetBucketInventoryConfiguration"; var _GBICO = "GetBucketInventoryConfigurationOutput"; var _GBICR = "GetBucketInventoryConfigurationRequest"; var _GBITC = "GetBucketIntelligentTieringConfiguration"; var _GBITCO = "GetBucketIntelligentTieringConfigurationOutput"; var _GBITCR = "GetBucketIntelligentTieringConfigurationRequest"; var _GBL = "GetBucketLocation"; var _GBLC = "GetBucketLifecycleConfiguration"; var _GBLCO = "GetBucketLifecycleConfigurationOutput"; var _GBLCR = "GetBucketLifecycleConfigurationRequest"; var _GBLO = "GetBucketLocationOutput"; var _GBLOe = "GetBucketLoggingOutput"; var _GBLR = "GetBucketLocationRequest"; var _GBLRe = "GetBucketLoggingRequest"; var _GBLe = "GetBucketLogging"; var _GBMC = "GetBucketMetadataConfiguration"; var _GBMCO = "GetBucketMetadataConfigurationOutput"; var _GBMCOe = "GetBucketMetricsConfigurationOutput"; var _GBMCR = "GetBucketMetadataConfigurationResult"; var _GBMCRe = "GetBucketMetadataConfigurationRequest"; var _GBMCRet = "GetBucketMetricsConfigurationRequest"; var _GBMCe = "GetBucketMetricsConfiguration"; var _GBMTC = "GetBucketMetadataTableConfiguration"; var _GBMTCO = "GetBucketMetadataTableConfigurationOutput"; var _GBMTCR = "GetBucketMetadataTableConfigurationResult"; var _GBMTCRe = "GetBucketMetadataTableConfigurationRequest"; var _GBNC = "GetBucketNotificationConfiguration"; var _GBNCR = "GetBucketNotificationConfigurationRequest"; var _GBOC = "GetBucketOwnershipControls"; var _GBOCO = "GetBucketOwnershipControlsOutput"; var _GBOCR = "GetBucketOwnershipControlsRequest"; var _GBP = "GetBucketPolicy"; var _GBPO = "GetBucketPolicyOutput"; var _GBPR = "GetBucketPolicyRequest"; var _GBPS = "GetBucketPolicyStatus"; var _GBPSO = "GetBucketPolicyStatusOutput"; var _GBPSR = "GetBucketPolicyStatusRequest"; var _GBR = "GetBucketReplication"; var _GBRO = "GetBucketReplicationOutput"; var _GBRP = "GetBucketRequestPayment"; var _GBRPO = "GetBucketRequestPaymentOutput"; var _GBRPR = "GetBucketRequestPaymentRequest"; var _GBRR = "GetBucketReplicationRequest"; var _GBT = "GetBucketTagging"; var _GBTO = "GetBucketTaggingOutput"; var _GBTR = "GetBucketTaggingRequest"; var _GBV = "GetBucketVersioning"; var _GBVO = "GetBucketVersioningOutput"; var _GBVR = "GetBucketVersioningRequest"; var _GBW = "GetBucketWebsite"; var _GBWO = "GetBucketWebsiteOutput"; var _GBWR = "GetBucketWebsiteRequest"; var _GFC = "GrantFullControl"; var _GJP = "GlacierJobParameters"; var _GO = "GetObject"; var _GOA = "GetObjectAcl"; var _GOAO = "GetObjectAclOutput"; var _GOAOe = "GetObjectAnnotationOutput"; var _GOAOet = "GetObjectAttributesOutput"; var _GOAP = "GetObjectAttributesParts"; var _GOAR = "GetObjectAclRequest"; var _GOARe = "GetObjectAnnotationRequest"; var _GOARet = "GetObjectAttributesResponse"; var _GOARetb = "GetObjectAttributesRequest"; var _GOAe = "GetObjectAnnotation"; var _GOAet = "GetObjectAttributes"; var _GOLC = "GetObjectLockConfiguration"; var _GOLCO = "GetObjectLockConfigurationOutput"; var _GOLCR = "GetObjectLockConfigurationRequest"; var _GOLH = "GetObjectLegalHold"; var _GOLHO = "GetObjectLegalHoldOutput"; var _GOLHR = "GetObjectLegalHoldRequest"; var _GOO = "GetObjectOutput"; var _GOR = "GetObjectRequest"; var _GORO = "GetObjectRetentionOutput"; var _GORR = "GetObjectRetentionRequest"; var _GORe = "GetObjectRetention"; var _GOT = "GetObjectTagging"; var _GOTO = "GetObjectTaggingOutput"; var _GOTOe = "GetObjectTorrentOutput"; var _GOTR = "GetObjectTaggingRequest"; var _GOTRe = "GetObjectTorrentRequest"; var _GOTe = "GetObjectTorrent"; var _GPAB = "GetPublicAccessBlock"; var _GPABO = "GetPublicAccessBlockOutput"; var _GPABR = "GetPublicAccessBlockRequest"; var _GR = "GrantRead"; var _GRACP = "GrantReadACP"; var _GW = "GrantWrite"; var _GWACP = "GrantWriteACP"; var _Gr = "Grant"; var _Gra = "Grantee"; var _HB = "HeadBucket"; var _HBO = "HeadBucketOutput"; var _HBR = "HeadBucketRequest"; var _HECRE = "HttpErrorCodeReturnedEquals"; var _HN = "HostName"; var _HO = "HeadObject"; var _HOO = "HeadObjectOutput"; var _HOR = "HeadObjectRequest"; var _HRC = "HttpRedirectCode"; var _I = "Id"; var _IAN = "InvalidAnnotationName"; var _IC = "InventoryConfiguration"; var _ICL = "InventoryConfigurationList"; var _ID = "ID"; var _IDn = "IndexDocument"; var _IDnv = "InventoryDestination"; var _IE = "IsEnabled"; var _IEn = "InventoryEncryption"; var _IF = "InventoryFilter"; var _IL = "IsLatest"; var _IM = "IfMatch"; var _IMIT = "IfMatchInitiatedTime"; var _IMLMT = "IfMatchLastModifiedTime"; var _IMS = "IfMatchSize"; var _IMS_ = "If-Modified-Since"; var _IMSf = "IfModifiedSince"; var _IMUR = "InitiateMultipartUploadResult"; var _IM_ = "If-Match"; var _INM = "IfNoneMatch"; var _INM_ = "If-None-Match"; var _IOF = "InventoryOptionalFields"; var _IOS = "InvalidObjectState"; var _IOV = "IncludedObjectVersions"; var _IP = "InvalidPrefix"; var _IPA = "IgnorePublicAcls"; var _IPM = "IdempotencyParameterMismatch"; var _IPs = "IsPublic"; var _IR = "InvalidRequest"; var _IRIP = "IsRestoreInProgress"; var _IS = "InputSerialization"; var _ISBD = "InventoryS3BucketDestination"; var _ISn = "InventorySchedule"; var _IT2 = "IsTruncated"; var _ITAO = "IntelligentTieringAndOperator"; var _ITC = "IntelligentTieringConfiguration"; var _ITCL = "IntelligentTieringConfigurationList"; var _ITCR = "InventoryTableConfigurationResult"; var _ITCU = "InventoryTableConfigurationUpdates"; var _ITCn = "InventoryTableConfiguration"; var _ITF = "IntelligentTieringFilter"; var _IUS = "IfUnmodifiedSince"; var _IUS_ = "If-Unmodified-Since"; var _IWO = "InvalidWriteOffset"; var _In = "Initiator"; var _Ini = "Initiated"; var _JSON = "JSON"; var _JSONI = "JSONInput"; var _JSONO = "JSONOutput"; var _JTC = "JournalTableConfiguration"; var _JTCR = "JournalTableConfigurationResult"; var _JTCU = "JournalTableConfigurationUpdates"; var _K2 = "Key"; var _KC = "KeyCount"; var _KI = "KeyId"; var _KKA = "KmsKeyArn"; var _KM = "KeyMarker"; var _KMSC = "KMSContext"; var _KMSKA = "KMSKeyArn"; var _KMSKI = "KMSKeyId"; var _KMSMKID = "KMSMasterKeyID"; var _KPE = "KeyPrefixEquals"; var _L = "Location"; var _LAMBR = "ListAllMyBucketsResult"; var _LAMDBR = "ListAllMyDirectoryBucketsResult"; var _LB = "ListBuckets"; var _LBAC = "ListBucketAnalyticsConfigurations"; var _LBACO = "ListBucketAnalyticsConfigurationsOutput"; var _LBACR = "ListBucketAnalyticsConfigurationResult"; var _LBACRi = "ListBucketAnalyticsConfigurationsRequest"; var _LBIC = "ListBucketInventoryConfigurations"; var _LBICO = "ListBucketInventoryConfigurationsOutput"; var _LBICR = "ListBucketInventoryConfigurationsRequest"; var _LBITC = "ListBucketIntelligentTieringConfigurations"; var _LBITCO = "ListBucketIntelligentTieringConfigurationsOutput"; var _LBITCR = "ListBucketIntelligentTieringConfigurationsRequest"; var _LBMC = "ListBucketMetricsConfigurations"; var _LBMCO = "ListBucketMetricsConfigurationsOutput"; var _LBMCR = "ListBucketMetricsConfigurationsRequest"; var _LBO = "ListBucketsOutput"; var _LBR = "ListBucketsRequest"; var _LBRi = "ListBucketResult"; var _LC = "LocationConstraint"; var _LCi = "LifecycleConfiguration"; var _LDB = "ListDirectoryBuckets"; var _LDBO = "ListDirectoryBucketsOutput"; var _LDBR = "ListDirectoryBucketsRequest"; var _LE = "LoggingEnabled"; var _LEi = "LifecycleExpiration"; var _LFA = "LambdaFunctionArn"; var _LFC = "LambdaFunctionConfiguration"; var _LFCL = "LambdaFunctionConfigurationList"; var _LFCa = "LambdaFunctionConfigurations"; var _LH = "LegalHold"; var _LI = "LocationInfo"; var _LICR = "ListInventoryConfigurationsResult"; var _LM = "LastModified"; var _LMCR = "ListMetricsConfigurationsResult"; var _LMT = "LastModifiedTime"; var _LMU = "ListMultipartUploads"; var _LMUO = "ListMultipartUploadsOutput"; var _LMUR = "ListMultipartUploadsResult"; var _LMURi = "ListMultipartUploadsRequest"; var _LM_ = "Last-Modified"; var _LO = "ListObjects"; var _LOA = "ListObjectAnnotations"; var _LOAO = "ListObjectAnnotationsOutput"; var _LOAR = "ListObjectAnnotationsRequest"; var _LOO = "ListObjectsOutput"; var _LOR = "ListObjectsRequest"; var _LOV = "ListObjectsV2"; var _LOVO = "ListObjectsV2Output"; var _LOVOi = "ListObjectVersionsOutput"; var _LOVR = "ListObjectsV2Request"; var _LOVRi = "ListObjectVersionsRequest"; var _LOVi = "ListObjectVersions"; var _LP = "ListParts"; var _LPO = "ListPartsOutput"; var _LPR = "ListPartsResult"; var _LPRi = "ListPartsRequest"; var _LR = "LifecycleRule"; var _LRAO = "LifecycleRuleAndOperator"; var _LRF = "LifecycleRuleFilter"; var _LRi = "LifecycleRules"; var _LVR = "ListVersionsResult"; var _M = "Metadata"; var _MAO = "MetricsAndOperator"; var _MAR = "MaxAnnotationResults"; var _MAS = "MaxAgeSeconds"; var _MB = "MaxBuckets"; var _MC = "MetadataConfiguration"; var _MCL = "MetricsConfigurationList"; var _MCR = "MetadataConfigurationResult"; var _MCe = "MetricsConfiguration"; var _MD = "MetadataDirective"; var _MDB = "MaxDirectoryBuckets"; var _MDf = "MfaDelete"; var _ME = "MetadataEntry"; var _MF = "MetricsFilter"; var _MFA = "MFA"; var _MFAD = "MFADelete"; var _MK = "MaxKeys"; var _MM = "MissingMeta"; var _MOS = "MpuObjectSize"; var _MP = "MaxParts"; var _MTC = "MetadataTableConfiguration"; var _MTCR = "MetadataTableConfigurationResult"; var _MTEC = "MetadataTableEncryptionConfiguration"; var _MU = "MultipartUpload"; var _MUL = "MultipartUploadList"; var _MUa = "MaxUploads"; var _Ma = "Marker"; var _Me = "Metrics"; var _Mes = "Message"; var _Mi = "Minutes"; var _Mo = "Mode"; var _N = "Name"; var _NC = "NotificationConfiguration"; var _NCF = "NotificationConfigurationFilter"; var _NCT = "NextContinuationToken"; var _ND = "NoncurrentDays"; var _NEKKAS = "NonEmptyKmsKeyArnString"; var _NF = "NotFound"; var _NKM = "NextKeyMarker"; var _NM = "NextMarker"; var _NNV = "NewerNoncurrentVersions"; var _NPNM = "NextPartNumberMarker"; var _NSA = "NoSuchAnnotation"; var _NSB = "NoSuchBucket"; var _NSK = "NoSuchKey"; var _NSU = "NoSuchUpload"; var _NUIM = "NextUploadIdMarker"; var _NVE = "NoncurrentVersionExpiration"; var _NVIM = "NextVersionIdMarker"; var _NVT = "NoncurrentVersionTransitions"; var _NVTL = "NoncurrentVersionTransitionList"; var _NVTo = "NoncurrentVersionTransition"; var _O = "Owner"; var _OA = "ObjectAttributes"; var _OAIATE = "ObjectAlreadyInActiveTierError"; var _OC = "OwnershipControls"; var _OCR = "OwnershipControlsRule"; var _OCRw = "OwnershipControlsRules"; var _OE = "ObjectEncryption"; var _OF = "OptionalFields"; var _OI = "ObjectIdentifier"; var _OIL = "ObjectIdentifierList"; var _OIM = "ObjectIfMatch"; var _OL = "OutputLocation"; var _OLC = "ObjectLockConfiguration"; var _OLE = "ObjectLockEnabled"; var _OLEFB = "ObjectLockEnabledForBucket"; var _OLEH = "ObjectLockEventHold"; var _OLEHDD = "ObjectLockEventHoldDurationDays"; var _OLEHDY = "ObjectLockEventHoldDurationYears"; var _OLLH = "ObjectLockLegalHold"; var _OLLHS = "ObjectLockLegalHoldStatus"; var _OLM = "ObjectLockMode"; var _OLR = "ObjectLockRetention"; var _OLRUD = "ObjectLockRetainUntilDate"; var _OLRb = "ObjectLockRule"; var _OLb = "ObjectList"; var _ONIATE = "ObjectNotInActiveTierError"; var _OO = "ObjectOwnership"; var _OOA = "OptionalObjectAttributes"; var _OP = "ObjectParts"; var _OPb = "ObjectPart"; var _OS = "ObjectSize"; var _OSGT = "ObjectSizeGreaterThan"; var _OSLT = "ObjectSizeLessThan"; var _OSV = "OutputSchemaVersion"; var _OSu = "OutputSerialization"; var _OV = "ObjectVersion"; var _OVI = "ObjectVersionId"; var _OVL = "ObjectVersionList"; var _Ob = "Objects"; var _Obj = "Object"; var _P2 = "Prefix"; var _PABC = "PublicAccessBlockConfiguration"; var _PBA = "PutBucketAbac"; var _PBAC = "PutBucketAccelerateConfiguration"; var _PBACR = "PutBucketAccelerateConfigurationRequest"; var _PBACRu = "PutBucketAnalyticsConfigurationRequest"; var _PBACu = "PutBucketAnalyticsConfiguration"; var _PBAR = "PutBucketAbacRequest"; var _PBARu = "PutBucketAclRequest"; var _PBAu = "PutBucketAcl"; var _PBC = "PutBucketCors"; var _PBCR = "PutBucketCorsRequest"; var _PBE = "PutBucketEncryption"; var _PBER = "PutBucketEncryptionRequest"; var _PBIC = "PutBucketInventoryConfiguration"; var _PBICR = "PutBucketInventoryConfigurationRequest"; var _PBITC = "PutBucketIntelligentTieringConfiguration"; var _PBITCR = "PutBucketIntelligentTieringConfigurationRequest"; var _PBL = "PutBucketLogging"; var _PBLC = "PutBucketLifecycleConfiguration"; var _PBLCO = "PutBucketLifecycleConfigurationOutput"; var _PBLCR = "PutBucketLifecycleConfigurationRequest"; var _PBLR = "PutBucketLoggingRequest"; var _PBMC = "PutBucketMetricsConfiguration"; var _PBMCR = "PutBucketMetricsConfigurationRequest"; var _PBNC = "PutBucketNotificationConfiguration"; var _PBNCR = "PutBucketNotificationConfigurationRequest"; var _PBOC = "PutBucketOwnershipControls"; var _PBOCR = "PutBucketOwnershipControlsRequest"; var _PBP = "PutBucketPolicy"; var _PBPR = "PutBucketPolicyRequest"; var _PBR = "PutBucketReplication"; var _PBRP = "PutBucketRequestPayment"; var _PBRPR = "PutBucketRequestPaymentRequest"; var _PBRR = "PutBucketReplicationRequest"; var _PBT = "PutBucketTagging"; var _PBTR = "PutBucketTaggingRequest"; var _PBV = "PutBucketVersioning"; var _PBVR = "PutBucketVersioningRequest"; var _PBW = "PutBucketWebsite"; var _PBWR = "PutBucketWebsiteRequest"; var _PC2 = "PartsCount"; var _PDS = "PartitionDateSource"; var _PE = "ProgressEvent"; var _PI2 = "ParquetInput"; var _PL = "PartsList"; var _PN = "PartNumber"; var _PNM = "PartNumberMarker"; var _PO = "PutObject"; var _POA = "PutObjectAcl"; var _POAO = "PutObjectAclOutput"; var _POAOu = "PutObjectAnnotationOutput"; var _POAR = "PutObjectAclRequest"; var _POARu = "PutObjectAnnotationRequest"; var _POAu = "PutObjectAnnotation"; var _POLC = "PutObjectLockConfiguration"; var _POLCO = "PutObjectLockConfigurationOutput"; var _POLCR = "PutObjectLockConfigurationRequest"; var _POLH = "PutObjectLegalHold"; var _POLHO = "PutObjectLegalHoldOutput"; var _POLHR = "PutObjectLegalHoldRequest"; var _POO = "PutObjectOutput"; var _POR = "PutObjectRequest"; var _PORO = "PutObjectRetentionOutput"; var _PORR = "PutObjectRetentionRequest"; var _PORu = "PutObjectRetention"; var _POT = "PutObjectTagging"; var _POTO = "PutObjectTaggingOutput"; var _POTR = "PutObjectTaggingRequest"; var _PP = "PartitionedPrefix"; var _PPAB = "PutPublicAccessBlock"; var _PPABR = "PutPublicAccessBlockRequest"; var _PS = "PolicyStatus"; var _Pa = "Parts"; var _Par = "Part"; var _Parq = "Parquet"; var _Pay = "Payer"; var _Payl = "Payload"; var _Pe = "Permission"; var _Po = "Policy"; var _Pr2 = "Progress"; var _Pri = "Priority"; var _Pro = "Protocol"; var _Q = "Quiet"; var _QA = "QueueArn"; var _QC = "QuoteCharacter"; var _QCL = "QueueConfigurationList"; var _QCu = "QueueConfigurations"; var _QCue = "QueueConfiguration"; var _QEC = "QuoteEscapeCharacter"; var _QF = "QuoteFields"; var _Qu = "Queue"; var _R = "Role"; var _RART = "RedirectAllRequestsTo"; var _RC2 = "RequestCharged"; var _RCC = "ResponseCacheControl"; var _RCD = "ResponseContentDisposition"; var _RCE = "ResponseContentEncoding"; var _RCL = "ResponseContentLanguage"; var _RCT = "ResponseContentType"; var _RCe = "ReplicationConfiguration"; var _RD = "RecordDelimiter"; var _RE = "ResponseExpires"; var _RED = "RestoreExpiryDate"; var _REe = "RecordExpiration"; var _REec = "RecordsEvent"; var _RKKID = "ReplicaKmsKeyID"; var _RKPW = "ReplaceKeyPrefixWith"; var _RKW = "ReplaceKeyWith"; var _RM = "ReplicaModifications"; var _RO = "RenameObject"; var _ROO = "RenameObjectOutput"; var _ROOe = "RestoreObjectOutput"; var _ROP = "RestoreOutputPath"; var _ROR = "RenameObjectRequest"; var _RORe = "RestoreObjectRequest"; var _ROe = "RestoreObject"; var _RP = "RequestPayer"; var _RPB = "RestrictPublicBuckets"; var _RPC = "RequestPaymentConfiguration"; var _RPe = "RequestProgress"; var _RR = "RoutingRules"; var _RRAO = "ReplicationRuleAndOperator"; var _RRF = "ReplicationRuleFilter"; var _RRe = "ReplicationRule"; var _RRep = "ReplicationRules"; var _RReq = "RequestRoute"; var _RRes = "RestoreRequest"; var _RRo = "RoutingRule"; var _RS = "ReplicationStatus"; var _RSe = "RestoreStatus"; var _RSen = "RenameSource"; var _RT3 = "ReplicationTime"; var _RTV = "ReplicationTimeValue"; var _RTe = "RequestToken"; var _RUD = "RetainUntilDate"; var _Ra = "Range"; var _Re = "Restore"; var _Rec = "Records"; var _Red = "Redirect"; var _Ret = "Retention"; var _Ru = "Rules"; var _Rul = "Rule"; var _S = "Status"; var _SA = "StartAfter"; var _SAK2 = "SecretAccessKey"; var _SAs = "SseAlgorithm"; var _SB = "StreamingBlob"; var _SBD = "S3BucketDestination"; var _SC = "StorageClass"; var _SCA = "StorageClassAnalysis"; var _SCADE = "StorageClassAnalysisDataExport"; var _SCV = "SessionCredentialValue"; var _SCe = "SessionCredentials"; var _SCt = "StatusCode"; var _SDV = "SkipDestinationValidation"; var _SE = "StatsEvent"; var _SIM = "SourceIfMatch"; var _SIMS = "SourceIfModifiedSince"; var _SINM = "SourceIfNoneMatch"; var _SIUS = "SourceIfUnmodifiedSince"; var _SK = "SSE-KMS"; var _SKEO = "SseKmsEncryptedObjects"; var _SKF = "S3KeyFilter"; var _SKe = "S3Key"; var _SL = "S3Location"; var _SM = "SessionMode"; var _SOC = "SelectObjectContent"; var _SOCES = "SelectObjectContentEventStream"; var _SOCO = "SelectObjectContentOutput"; var _SOCR = "SelectObjectContentRequest"; var _SP = "SelectParameters"; var _SPi = "SimplePrefix"; var _SR = "ScanRange"; var _SS = "SSE-S3"; var _SSC = "SourceSelectionCriteria"; var _SSE = "ServerSideEncryption"; var _SSEA = "SSEAlgorithm"; var _SSEBD = "ServerSideEncryptionByDefault"; var _SSEC = "ServerSideEncryptionConfiguration"; var _SSECA = "SSECustomerAlgorithm"; var _SSECK = "SSECustomerKey"; var _SSECKMD = "SSECustomerKeyMD5"; var _SSEKMS = "SSEKMS"; var _SSEKMSE = "SSEKMSEncryption"; var _SSEKMSEC = "SSEKMSEncryptionContext"; var _SSEKMSKI = "SSEKMSKeyId"; var _SSER = "ServerSideEncryptionRule"; var _SSERe = "ServerSideEncryptionRules"; var _SSES = "SSES3"; var _ST2 = "SessionToken"; var _STD = "S3TablesDestination"; var _STDR = "S3TablesDestinationResult"; var _S_ = "S3"; var _Sc = "Schedule"; var _Si = "Size"; var _St = "Start"; var _Sta = "Stats"; var _Su = "Suffix"; var _T2 = "Tags"; var _TA = "TableArn"; var _TAo = "TopicArn"; var _TB = "TargetBucket"; var _TBA = "TableBucketArn"; var _TBT = "TableBucketType"; var _TC2 = "TagCount"; var _TCL = "TopicConfigurationList"; var _TCo = "TopicConfigurations"; var _TCop = "TopicConfiguration"; var _TD = "TaggingDirective"; var _TDMOS = "TransitionDefaultMinimumObjectSize"; var _TG = "TargetGrants"; var _TGa = "TargetGrant"; var _TL = "TieringList"; var _TLr = "TransitionList"; var _TMP = "TooManyParts"; var _TN = "TableName"; var _TNa = "TableNamespace"; var _TOKF = "TargetObjectKeyFormat"; var _TP = "TargetPrefix"; var _TPC = "TotalPartsCount"; var _TS = "TableStatus"; var _TSa = "TagSet"; var _Ta2 = "Tag"; var _Tag = "Tagging"; var _Ti = "Tier"; var _Tie = "Tierings"; var _Tier = "Tiering"; var _Tim = "Time"; var _To = "Token"; var _Top = "Topic"; var _Tr = "Transitions"; var _Tra = "Transition"; var _Ty = "Type"; var _U = "Uploads"; var _UBMATC = "UpdateBucketMetadataAnnotationTableConfiguration"; var _UBMATCR = "UpdateBucketMetadataAnnotationTableConfigurationRequest"; var _UBMITC = "UpdateBucketMetadataInventoryTableConfiguration"; var _UBMITCR = "UpdateBucketMetadataInventoryTableConfigurationRequest"; var _UBMJTC = "UpdateBucketMetadataJournalTableConfiguration"; var _UBMJTCR = "UpdateBucketMetadataJournalTableConfigurationRequest"; var _UI = "UploadId"; var _UIM = "UploadIdMarker"; var _UM = "UserMetadata"; var _UMT = "UnsupportedMediaType"; var _UOE = "UpdateObjectEncryption"; var _UOER = "UpdateObjectEncryptionRequest"; var _UOERp = "UpdateObjectEncryptionResponse"; var _UP = "UploadPart"; var _UPC = "UploadPartCopy"; var _UPCO = "UploadPartCopyOutput"; var _UPCR = "UploadPartCopyRequest"; var _UPO = "UploadPartOutput"; var _UPR = "UploadPartRequest"; var _URI = "URI"; var _Up = "Upload"; var _V2 = "Value"; var _VC = "VersioningConfiguration"; var _VI = "VersionId"; var _VIM = "VersionIdMarker"; var _Ve = "Versions"; var _Ver = "Version"; var _WC = "WebsiteConfiguration"; var _WGOR = "WriteGetObjectResponse"; var _WGORR = "WriteGetObjectResponseRequest"; var _WOB = "WriteOffsetBytes"; var _WRL = "WebsiteRedirectLocation"; var _Y = "Years"; var _aN = "annotationName"; var _ap = "annotation-prefix"; var _ar = "accept-ranges"; var _br = "bucket-region"; var _c5 = "client"; var _ct = "continuation-token"; var _d = "delimiter"; var _e5 = "error"; var _eP = "eventPayload"; var _en = "endpoint"; var _et = "encoding-type"; var _fo = "fetch-owner"; var _h4 = "http"; var _hC = "httpChecksum"; var _hE5 = "httpError"; var _hH2 = "httpHeader"; var _hL = "hostLabel"; var _hP = "httpPayload"; var _hPH = "httpPrefixHeaders"; var _hQ2 = "httpQuery"; var _hi = "http://www.w3.org/2001/XMLSchema-instance"; var _i = "id"; var _iT3 = "idempotencyToken"; var _km = "key-marker"; var _m4 = "marker"; var _mar = "max-annotation-results"; var _mb = "max-buckets"; var _mdb = "max-directory-buckets"; var _mk = "max-keys"; var _mp = "max-parts"; var _mu = "max-uploads"; var _p = "prefix"; var _pN = "partNumber"; var _pnm = "part-number-marker"; var _rcc = "response-cache-control"; var _rcd = "response-content-disposition"; var _rce = "response-content-encoding"; var _rcl = "response-content-language"; var _rct = "response-content-type"; var _re = "response-expires"; var _s5 = "smithy.ts.sdk.synthetic.com.amazonaws.s3"; var _sa = "start-after"; var _st = "streaming"; var _uI = "uploadId"; var _uim = "upload-id-marker"; var _vI = "versionId"; var _vim = "version-id-marker"; var _x = "xsi"; var _xA = "xmlAttribute"; var _xF = "xmlFlattened"; var _xN = "xmlName"; var _xNm = "xmlNamespace"; var _xaa = "x-amz-acl"; var _xaad = "x-amz-abort-date"; var _xaapa = "x-amz-access-point-alias"; var _xaari = "x-amz-abort-rule-id"; var _xaas = "x-amz-archive-status"; var _xaba = "x-amz-bucket-arn"; var _xabgr = "x-amz-bypass-governance-retention"; var _xabln = "x-amz-bucket-location-name"; var _xablt = "x-amz-bucket-location-type"; var _xabn = "x-amz-bucket-namespace"; var _xabole = "x-amz-bucket-object-lock-enabled"; var _xabolt = "x-amz-bucket-object-lock-token"; var _xabr = "x-amz-bucket-region"; var _xaca = "x-amz-checksum-algorithm"; var _xacc = "x-amz-checksum-crc32"; var _xacc_ = "x-amz-checksum-crc32c"; var _xacc__ = "x-amz-checksum-crc64nvme"; var _xacm = "x-amz-checksum-md5"; var _xacm_ = "x-amz-checksum-mode"; var _xacrsba = "x-amz-confirm-remove-self-bucket-access"; var _xacs = "x-amz-checksum-sha1"; var _xacs_ = "x-amz-checksum-sha256"; var _xacs__ = "x-amz-checksum-sha512"; var _xacs___ = "x-amz-copy-source"; var _xacsim = "x-amz-copy-source-if-match"; var _xacsims = "x-amz-copy-source-if-modified-since"; var _xacsinm = "x-amz-copy-source-if-none-match"; var _xacsius = "x-amz-copy-source-if-unmodified-since"; var _xacsm = "x-amz-create-session-mode"; var _xacsr = "x-amz-copy-source-range"; var _xacssseca = "x-amz-copy-source-server-side-encryption-customer-algorithm"; var _xacssseck = "x-amz-copy-source-server-side-encryption-customer-key"; var _xacssseckM = "x-amz-copy-source-server-side-encryption-customer-key-MD5"; var _xacsvi = "x-amz-copy-source-version-id"; var _xact = "x-amz-checksum-type"; var _xact_ = "x-amz-client-token"; var _xacx = "x-amz-checksum-xxhash64"; var _xacx_ = "x-amz-checksum-xxhash3"; var _xacx__ = "x-amz-checksum-xxhash128"; var _xadm = "x-amz-delete-marker"; var _xae = "x-amz-expiration"; var _xaebo = "x-amz-expected-bucket-owner"; var _xafec = "x-amz-fwd-error-code"; var _xafem = "x-amz-fwd-error-message"; var _xafhCC = "x-amz-fwd-header-Cache-Control"; var _xafhCD = "x-amz-fwd-header-Content-Disposition"; var _xafhCE = "x-amz-fwd-header-Content-Encoding"; var _xafhCL = "x-amz-fwd-header-Content-Language"; var _xafhCR = "x-amz-fwd-header-Content-Range"; var _xafhCT = "x-amz-fwd-header-Content-Type"; var _xafhE = "x-amz-fwd-header-ETag"; var _xafhE_ = "x-amz-fwd-header-Expires"; var _xafhLM = "x-amz-fwd-header-Last-Modified"; var _xafhar = "x-amz-fwd-header-accept-ranges"; var _xafhxacc = "x-amz-fwd-header-x-amz-checksum-crc32"; var _xafhxacc_ = "x-amz-fwd-header-x-amz-checksum-crc32c"; var _xafhxacc__ = "x-amz-fwd-header-x-amz-checksum-crc64nvme"; var _xafhxacm = "x-amz-fwd-header-x-amz-checksum-md5"; var _xafhxacs = "x-amz-fwd-header-x-amz-checksum-sha1"; var _xafhxacs_ = "x-amz-fwd-header-x-amz-checksum-sha256"; var _xafhxacs__ = "x-amz-fwd-header-x-amz-checksum-sha512"; var _xafhxacx = "x-amz-fwd-header-x-amz-checksum-xxhash64"; var _xafhxacx_ = "x-amz-fwd-header-x-amz-checksum-xxhash3"; var _xafhxacx__ = "x-amz-fwd-header-x-amz-checksum-xxhash128"; var _xafhxadm = "x-amz-fwd-header-x-amz-delete-marker"; var _xafhxae = "x-amz-fwd-header-x-amz-expiration"; var _xafhxamm = "x-amz-fwd-header-x-amz-missing-meta"; var _xafhxampc = "x-amz-fwd-header-x-amz-mp-parts-count"; var _xafhxaollh = "x-amz-fwd-header-x-amz-object-lock-legal-hold"; var _xafhxaolm = "x-amz-fwd-header-x-amz-object-lock-mode"; var _xafhxaolrud = "x-amz-fwd-header-x-amz-object-lock-retain-until-date"; var _xafhxar = "x-amz-fwd-header-x-amz-restore"; var _xafhxarc = "x-amz-fwd-header-x-amz-request-charged"; var _xafhxars = "x-amz-fwd-header-x-amz-replication-status"; var _xafhxasc = "x-amz-fwd-header-x-amz-storage-class"; var _xafhxasse = "x-amz-fwd-header-x-amz-server-side-encryption"; var _xafhxasseakki = "x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id"; var _xafhxassebke = "x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled"; var _xafhxasseca = "x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm"; var _xafhxasseckM = "x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5"; var _xafhxatc = "x-amz-fwd-header-x-amz-tagging-count"; var _xafhxavi = "x-amz-fwd-header-x-amz-version-id"; var _xafs = "x-amz-fwd-status"; var _xagfc = "x-amz-grant-full-control"; var _xagr = "x-amz-grant-read"; var _xagra = "x-amz-grant-read-acp"; var _xagw = "x-amz-grant-write"; var _xagwa = "x-amz-grant-write-acp"; var _xaimit = "x-amz-if-match-initiated-time"; var _xaimlmt = "x-amz-if-match-last-modified-time"; var _xaims = "x-amz-if-match-size"; var _xam = "x-amz-meta-"; var _xam_ = "x-amz-mfa"; var _xamd = "x-amz-metadata-directive"; var _xamm = "x-amz-missing-meta"; var _xamos = "x-amz-mp-object-size"; var _xamp = "x-amz-max-parts"; var _xampc = "x-amz-mp-parts-count"; var _xaoa = "x-amz-object-attributes"; var _xaoad = "x-amz-object-annotation-directive"; var _xaoim = "x-amz-object-if-match"; var _xaoleh = "x-amz-object-lock-event-hold"; var _xaolehdd = "x-amz-object-lock-event-hold-duration-days"; var _xaolehdy = "x-amz-object-lock-event-hold-duration-years"; var _xaollh = "x-amz-object-lock-legal-hold"; var _xaolm = "x-amz-object-lock-mode"; var _xaolrud = "x-amz-object-lock-retain-until-date"; var _xaoo = "x-amz-object-ownership"; var _xaooa = "x-amz-optional-object-attributes"; var _xaos = "x-amz-object-size"; var _xaovi = "x-amz-object-version-id"; var _xapnm = "x-amz-part-number-marker"; var _xar = "x-amz-restore"; var _xarc = "x-amz-request-charged"; var _xarop = "x-amz-restore-output-path"; var _xarp = "x-amz-request-payer"; var _xarr = "x-amz-request-route"; var _xars = "x-amz-replication-status"; var _xars_ = "x-amz-rename-source"; var _xarsim = "x-amz-rename-source-if-match"; var _xarsims = "x-amz-rename-source-if-modified-since"; var _xarsinm = "x-amz-rename-source-if-none-match"; var _xarsius = "x-amz-rename-source-if-unmodified-since"; var _xart = "x-amz-request-token"; var _xasc = "x-amz-storage-class"; var _xasca = "x-amz-sdk-checksum-algorithm"; var _xasdv = "x-amz-skip-destination-validation"; var _xasebo = "x-amz-source-expected-bucket-owner"; var _xasse = "x-amz-server-side-encryption"; var _xasseakki = "x-amz-server-side-encryption-aws-kms-key-id"; var _xassebke = "x-amz-server-side-encryption-bucket-key-enabled"; var _xassec = "x-amz-server-side-encryption-context"; var _xasseca = "x-amz-server-side-encryption-customer-algorithm"; var _xasseck = "x-amz-server-side-encryption-customer-key"; var _xasseckM = "x-amz-server-side-encryption-customer-key-MD5"; var _xat = "x-amz-tagging"; var _xatc = "x-amz-tagging-count"; var _xatd = "x-amz-tagging-directive"; var _xatdmos = "x-amz-transition-default-minimum-object-size"; var _xavi = "x-amz-version-id"; var _xawob = "x-amz-write-offset-bytes"; var _xawrl = "x-amz-website-redirect-location"; var _xs = "xsi:type"; var n05 = "com.amazonaws.s3"; var _s_registry5 = new TypeRegistry2(_s5); var S3ServiceException$ = [-3, _s5, "S3ServiceException", 0, [], []]; _s_registry5.registerError(S3ServiceException$, S3ServiceException); var n0_registry5 = new TypeRegistry2(n05); var AccessDenied$ = [ -3, n05, _AD, { [_e5]: _c5, [_hE5]: 403 }, [], [] ]; n0_registry5.registerError(AccessDenied$, AccessDenied); var AnnotationLimitExceeded$ = [ -3, n05, _ALE, { [_e5]: _c5, [_hE5]: 400 }, [], [] ]; n0_registry5.registerError(AnnotationLimitExceeded$, AnnotationLimitExceeded); var AnnotationNameTooLong$ = [ -3, n05, _ANTL, { [_e5]: _c5, [_hE5]: 400 }, [], [] ]; n0_registry5.registerError(AnnotationNameTooLong$, AnnotationNameTooLong); var BucketAlreadyExists$ = [ -3, n05, _BAE, { [_e5]: _c5, [_hE5]: 409 }, [], [] ]; n0_registry5.registerError(BucketAlreadyExists$, BucketAlreadyExists); var BucketAlreadyOwnedByYou$ = [ -3, n05, _BAOBY, { [_e5]: _c5, [_hE5]: 409 }, [], [] ]; n0_registry5.registerError(BucketAlreadyOwnedByYou$, BucketAlreadyOwnedByYou); var EncryptionTypeMismatch$ = [ -3, n05, _ETM, { [_e5]: _c5, [_hE5]: 400 }, [], [] ]; n0_registry5.registerError(EncryptionTypeMismatch$, EncryptionTypeMismatch); var IdempotencyParameterMismatch$ = [ -3, n05, _IPM, { [_e5]: _c5, [_hE5]: 400 }, [], [] ]; n0_registry5.registerError(IdempotencyParameterMismatch$, IdempotencyParameterMismatch); var InvalidAnnotationName$ = [ -3, n05, _IAN, { [_e5]: _c5, [_hE5]: 400 }, [], [] ]; n0_registry5.registerError(InvalidAnnotationName$, InvalidAnnotationName); var InvalidObjectState$ = [ -3, n05, _IOS, { [_e5]: _c5, [_hE5]: 403 }, [_SC, _AT3], [0, 0] ]; n0_registry5.registerError(InvalidObjectState$, InvalidObjectState); var InvalidPrefix$ = [ -3, n05, _IP, { [_e5]: _c5, [_hE5]: 400 }, [], [] ]; n0_registry5.registerError(InvalidPrefix$, InvalidPrefix); var InvalidRequest$ = [ -3, n05, _IR, { [_e5]: _c5, [_hE5]: 400 }, [], [] ]; n0_registry5.registerError(InvalidRequest$, InvalidRequest); var InvalidWriteOffset$ = [ -3, n05, _IWO, { [_e5]: _c5, [_hE5]: 400 }, [], [] ]; n0_registry5.registerError(InvalidWriteOffset$, InvalidWriteOffset); var NoSuchAnnotation$ = [ -3, n05, _NSA, { [_e5]: _c5, [_hE5]: 404 }, [], [] ]; n0_registry5.registerError(NoSuchAnnotation$, NoSuchAnnotation); var NoSuchBucket$ = [ -3, n05, _NSB, { [_e5]: _c5, [_hE5]: 404 }, [], [] ]; n0_registry5.registerError(NoSuchBucket$, NoSuchBucket); var NoSuchKey$ = [ -3, n05, _NSK, { [_e5]: _c5, [_hE5]: 404 }, [], [] ]; n0_registry5.registerError(NoSuchKey$, NoSuchKey); var NoSuchUpload$ = [ -3, n05, _NSU, { [_e5]: _c5, [_hE5]: 404 }, [], [] ]; n0_registry5.registerError(NoSuchUpload$, NoSuchUpload); var NotFound$ = [ -3, n05, _NF, { [_e5]: _c5 }, [], [] ]; n0_registry5.registerError(NotFound$, NotFound); var ObjectAlreadyInActiveTierError$ = [ -3, n05, _OAIATE, { [_e5]: _c5, [_hE5]: 403 }, [], [] ]; n0_registry5.registerError(ObjectAlreadyInActiveTierError$, ObjectAlreadyInActiveTierError); var ObjectNotInActiveTierError$ = [ -3, n05, _ONIATE, { [_e5]: _c5, [_hE5]: 403 }, [], [] ]; n0_registry5.registerError(ObjectNotInActiveTierError$, ObjectNotInActiveTierError); var TooManyParts$ = [ -3, n05, _TMP, { [_e5]: _c5, [_hE5]: 400 }, [], [] ]; n0_registry5.registerError(TooManyParts$, TooManyParts); var UnsupportedMediaType$ = [ -3, n05, _UMT, { [_e5]: _c5, [_hE5]: 415 }, [], [] ]; n0_registry5.registerError(UnsupportedMediaType$, UnsupportedMediaType); var errorTypeRegistries5 = [ _s_registry5, n0_registry5 ]; var CopySourceSSECustomerKey = [0, n05, _CSSSECK, 8, 0]; var NonEmptyKmsKeyArnString = [0, n05, _NEKKAS, 8, 0]; var SessionCredentialValue = [0, n05, _SCV, 8, 0]; var SSECustomerKey = [0, n05, _SSECK, 8, 0]; var SSEKMSEncryptionContext = [0, n05, _SSEKMSEC, 8, 0]; var SSEKMSKeyId = [0, n05, _SSEKMSKI, 8, 0]; var StreamingBlob = [0, n05, _SB, { [_st]: 1 }, 42]; var AbacStatus$ = [ 3, n05, _AS, 0, [_S], [0] ]; var AbortIncompleteMultipartUpload$ = [ 3, n05, _AIMU, 0, [_DAI], [1] ]; var AbortMultipartUploadOutput$ = [ 3, n05, _AMUO, 0, [_RC2], [[0, { [_hH2]: _xarc }]] ]; var AbortMultipartUploadRequest$ = [ 3, n05, _AMUR, 0, [_B, _K2, _UI, _RP, _EBO, _IMIT], [[0, 1], [0, 1], [0, { [_hQ2]: _uI }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }], [6, { [_hH2]: _xaimit }]], 3 ]; var AccelerateConfiguration$ = [ 3, n05, _AC, 0, [_S], [0] ]; var AccessControlPolicy$ = [ 3, n05, _ACP, 0, [_G, _O], [[() => Grants, { [_xN]: _ACL }], () => Owner$] ]; var AccessControlTranslation$ = [ 3, n05, _ACT, 0, [_O], [0], 1 ]; var AnalyticsAndOperator$ = [ 3, n05, _AAO, 0, [_P2, _T2], [0, [() => TagSet, { [_xF]: 1, [_xN]: _Ta2 }]] ]; var AnalyticsConfiguration$ = [ 3, n05, _ACn, 0, [_I, _SCA, _F], [0, () => StorageClassAnalysis$, [() => AnalyticsFilter$, 0]], 2 ]; var AnalyticsExportDestination$ = [ 3, n05, _AED, 0, [_SBD], [() => AnalyticsS3BucketDestination$], 1 ]; var AnalyticsS3BucketDestination$ = [ 3, n05, _ASBD, 0, [_Fo, _B, _BAI, _P2], [0, 0, 0, 0], 2 ]; var AnnotationEntry$ = [ 3, n05, _AE, 0, [_AN, _LM, _Si, _ET, _CA2, _RS], [0, 4, 1, 0, [64 | 0, { [_xF]: 1 }], 0], 3 ]; var AnnotationTableConfiguration$ = [ 3, n05, _ATC, 0, [_CS2, _EC, _R], [0, () => MetadataTableEncryptionConfiguration$, 0], 1 ]; var AnnotationTableConfigurationResult$ = [ 3, n05, _ATCR, 0, [_CS2, _TS, _E3, _TN, _TA, _R], [0, 0, () => ErrorDetails$, 0, 0, 0], 1 ]; var AnnotationTableConfigurationUpdates$ = [ 3, n05, _ATCU, 0, [_CS2, _EC, _R], [0, () => MetadataTableEncryptionConfiguration$, 0], 1 ]; var BlockedEncryptionTypes$ = [ 3, n05, _BET, 0, [_ETn], [[() => EncryptionTypeList, { [_xF]: 1 }]] ]; var Bucket$ = [ 3, n05, _B, 0, [_N, _CD, _BR, _BA], [0, 4, 0, 0] ]; var BucketInfo$ = [ 3, n05, _BI, 0, [_DR, _Ty], [0, 0] ]; var BucketLifecycleConfiguration$ = [ 3, n05, _BLC, 0, [_Ru], [[() => LifecycleRules, { [_xF]: 1, [_xN]: _Rul }]], 1 ]; var BucketLoggingStatus$ = [ 3, n05, _BLS, 0, [_LE], [[() => LoggingEnabled$, 0]] ]; var Checksum$ = [ 3, n05, _C2, 0, [_CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _CT2], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ]; var CommonPrefix$ = [ 3, n05, _CP, 0, [_P2], [0] ]; var CompletedMultipartUpload$ = [ 3, n05, _CMU, 0, [_Pa], [[() => CompletedPartList, { [_xF]: 1, [_xN]: _Par }]] ]; var CompletedPart$ = [ 3, n05, _CPo, 0, [_ET, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _PN], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1] ]; var CompleteMultipartUploadOutput$ = [ 3, n05, _CMUO, { [_xN]: _CMUR }, [_L, _B, _K2, _Ex, _ET, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _CT2, _SSE, _VI, _SSEKMSKI, _BKE, _RC2], [0, 0, 0, [0, { [_hH2]: _xae }], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [0, { [_hH2]: _xasse }], [0, { [_hH2]: _xavi }], [() => SSEKMSKeyId, { [_hH2]: _xasseakki }], [2, { [_hH2]: _xassebke }], [0, { [_hH2]: _xarc }]] ]; var CompleteMultipartUploadRequest$ = [ 3, n05, _CMURo, 0, [_B, _K2, _UI, _MU, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _CT2, _MOS, _RP, _EBO, _IM, _INM, _SSECA, _SSECK, _SSECKMD], [[0, 1], [0, 1], [0, { [_hQ2]: _uI }], [() => CompletedMultipartUpload$, { [_hP]: 1, [_xN]: _CMUo }], [0, { [_hH2]: _xacc }], [0, { [_hH2]: _xacc_ }], [0, { [_hH2]: _xacc__ }], [0, { [_hH2]: _xacs }], [0, { [_hH2]: _xacs_ }], [0, { [_hH2]: _xacs__ }], [0, { [_hH2]: _xacm }], [0, { [_hH2]: _xacx }], [0, { [_hH2]: _xacx_ }], [0, { [_hH2]: _xacx__ }], [0, { [_hH2]: _xact }], [1, { [_hH2]: _xamos }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _IM_ }], [0, { [_hH2]: _INM_ }], [0, { [_hH2]: _xasseca }], [() => SSECustomerKey, { [_hH2]: _xasseck }], [0, { [_hH2]: _xasseckM }]], 3 ]; var Condition$ = [ 3, n05, _Co, 0, [_HECRE, _KPE], [0, 0] ]; var ContinuationEvent$ = [ 3, n05, _CE, 0, [], [] ]; var CopyObjectOutput$ = [ 3, n05, _COO, 0, [_COR, _Ex, _CSVI, _VI, _SSE, _SSECA, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _RC2], [[() => CopyObjectResult$, 16], [0, { [_hH2]: _xae }], [0, { [_hH2]: _xacsvi }], [0, { [_hH2]: _xavi }], [0, { [_hH2]: _xasse }], [0, { [_hH2]: _xasseca }], [0, { [_hH2]: _xasseckM }], [() => SSEKMSKeyId, { [_hH2]: _xasseakki }], [() => SSEKMSEncryptionContext, { [_hH2]: _xassec }], [2, { [_hH2]: _xassebke }], [0, { [_hH2]: _xarc }]] ]; var CopyObjectRequest$ = [ 3, n05, _CORo, 0, [_B, _CSo, _K2, _ACL_, _CC, _CA2, _CDo, _CEo, _CL, _CTo, _CSIM, _CSIMS, _CSINM, _CSIUS, _Exp, _GFC, _GR, _GRACP, _GWACP, _IM, _INM, _M, _MD, _TD, _ADn, _SSE, _SC, _WRL, _SSECA, _SSECK, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _CSSSECA, _CSSSECK, _CSSSECKMD, _RP, _Tag, _OLM, _OLRUD, _OLLHS, _OLEH, _OLEHDD, _OLEHDY, _EBO, _ESBO], [[0, 1], [0, { [_hH2]: _xacs___ }], [0, 1], [0, { [_hH2]: _xaa }], [0, { [_hH2]: _CC_ }], [0, { [_hH2]: _xaca }], [0, { [_hH2]: _CD_ }], [0, { [_hH2]: _CE_ }], [0, { [_hH2]: _CL_ }], [0, { [_hH2]: _CT_ }], [0, { [_hH2]: _xacsim }], [4, { [_hH2]: _xacsims }], [0, { [_hH2]: _xacsinm }], [4, { [_hH2]: _xacsius }], [4, { [_hH2]: _Exp }], [0, { [_hH2]: _xagfc }], [0, { [_hH2]: _xagr }], [0, { [_hH2]: _xagra }], [0, { [_hH2]: _xagwa }], [0, { [_hH2]: _IM_ }], [0, { [_hH2]: _INM_ }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH2]: _xamd }], [0, { [_hH2]: _xatd }], [0, { [_hH2]: _xaoad }], [0, { [_hH2]: _xasse }], [0, { [_hH2]: _xasc }], [0, { [_hH2]: _xawrl }], [0, { [_hH2]: _xasseca }], [() => SSECustomerKey, { [_hH2]: _xasseck }], [0, { [_hH2]: _xasseckM }], [() => SSEKMSKeyId, { [_hH2]: _xasseakki }], [() => SSEKMSEncryptionContext, { [_hH2]: _xassec }], [2, { [_hH2]: _xassebke }], [0, { [_hH2]: _xacssseca }], [() => CopySourceSSECustomerKey, { [_hH2]: _xacssseck }], [0, { [_hH2]: _xacssseckM }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xat }], [0, { [_hH2]: _xaolm }], [5, { [_hH2]: _xaolrud }], [0, { [_hH2]: _xaollh }], [0, { [_hH2]: _xaoleh }], [1, { [_hH2]: _xaolehdd }], [1, { [_hH2]: _xaolehdy }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xasebo }]], 3 ]; var CopyObjectResult$ = [ 3, n05, _COR, 0, [_ET, _LM, _CT2, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe], [0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ]; var CopyPartResult$ = [ 3, n05, _CPR, 0, [_ET, _LM, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe], [0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ]; var CORSConfiguration$ = [ 3, n05, _CORSC, 0, [_CORSR], [[() => CORSRules, { [_xF]: 1, [_xN]: _CORSRu }]], 1 ]; var CORSRule$ = [ 3, n05, _CORSRu, 0, [_AM, _AO, _ID, _AH, _EH, _MAS], [[64 | 0, { [_xF]: 1, [_xN]: _AMl }], [64 | 0, { [_xF]: 1, [_xN]: _AOl }], 0, [64 | 0, { [_xF]: 1, [_xN]: _AHl }], [64 | 0, { [_xF]: 1, [_xN]: _EHx }], 1], 2 ]; var CreateBucketConfiguration$ = [ 3, n05, _CBC, 0, [_LC, _L, _B, _T2], [0, () => LocationInfo$, () => BucketInfo$, [() => TagSet, 0]] ]; var CreateBucketMetadataConfigurationRequest$ = [ 3, n05, _CBMCR, 0, [_B, _MC, _CMDo, _CA2, _EBO], [[0, 1], [() => MetadataConfiguration$, { [_hP]: 1, [_xN]: _MC }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var CreateBucketMetadataTableConfigurationRequest$ = [ 3, n05, _CBMTCR, 0, [_B, _MTC, _CMDo, _CA2, _EBO], [[0, 1], [() => MetadataTableConfiguration$, { [_hP]: 1, [_xN]: _MTC }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var CreateBucketOutput$ = [ 3, n05, _CBO, 0, [_L, _BA], [[0, { [_hH2]: _L }], [0, { [_hH2]: _xaba }]] ]; var CreateBucketRequest$ = [ 3, n05, _CBR, 0, [_B, _ACL_, _CBC, _GFC, _GR, _GRACP, _GW, _GWACP, _OLEFB, _OO, _BN], [[0, 1], [0, { [_hH2]: _xaa }], [() => CreateBucketConfiguration$, { [_hP]: 1, [_xN]: _CBC }], [0, { [_hH2]: _xagfc }], [0, { [_hH2]: _xagr }], [0, { [_hH2]: _xagra }], [0, { [_hH2]: _xagw }], [0, { [_hH2]: _xagwa }], [2, { [_hH2]: _xabole }], [0, { [_hH2]: _xaoo }], [0, { [_hH2]: _xabn }]], 1 ]; var CreateMultipartUploadOutput$ = [ 3, n05, _CMUOr, { [_xN]: _IMUR }, [_ADb, _ARI2, _B, _K2, _UI, _SSE, _SSECA, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _RC2, _CA2, _CT2], [[4, { [_hH2]: _xaad }], [0, { [_hH2]: _xaari }], [0, { [_xN]: _B }], 0, 0, [0, { [_hH2]: _xasse }], [0, { [_hH2]: _xasseca }], [0, { [_hH2]: _xasseckM }], [() => SSEKMSKeyId, { [_hH2]: _xasseakki }], [() => SSEKMSEncryptionContext, { [_hH2]: _xassec }], [2, { [_hH2]: _xassebke }], [0, { [_hH2]: _xarc }], [0, { [_hH2]: _xaca }], [0, { [_hH2]: _xact }]] ]; var CreateMultipartUploadRequest$ = [ 3, n05, _CMURr, 0, [_B, _K2, _ACL_, _CC, _CDo, _CEo, _CL, _CTo, _Exp, _GFC, _GR, _GRACP, _GWACP, _M, _SSE, _SC, _WRL, _SSECA, _SSECK, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _RP, _Tag, _OLM, _OLRUD, _OLLHS, _OLEH, _OLEHDD, _OLEHDY, _EBO, _CA2, _CT2], [[0, 1], [0, 1], [0, { [_hH2]: _xaa }], [0, { [_hH2]: _CC_ }], [0, { [_hH2]: _CD_ }], [0, { [_hH2]: _CE_ }], [0, { [_hH2]: _CL_ }], [0, { [_hH2]: _CT_ }], [4, { [_hH2]: _Exp }], [0, { [_hH2]: _xagfc }], [0, { [_hH2]: _xagr }], [0, { [_hH2]: _xagra }], [0, { [_hH2]: _xagwa }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH2]: _xasse }], [0, { [_hH2]: _xasc }], [0, { [_hH2]: _xawrl }], [0, { [_hH2]: _xasseca }], [() => SSECustomerKey, { [_hH2]: _xasseck }], [0, { [_hH2]: _xasseckM }], [() => SSEKMSKeyId, { [_hH2]: _xasseakki }], [() => SSEKMSEncryptionContext, { [_hH2]: _xassec }], [2, { [_hH2]: _xassebke }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xat }], [0, { [_hH2]: _xaolm }], [5, { [_hH2]: _xaolrud }], [0, { [_hH2]: _xaollh }], [0, { [_hH2]: _xaoleh }], [1, { [_hH2]: _xaolehdd }], [1, { [_hH2]: _xaolehdy }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xaca }], [0, { [_hH2]: _xact }]], 2 ]; var CreateSessionOutput$ = [ 3, n05, _CSO, { [_xN]: _CSR }, [_Cr, _SSE, _SSEKMSKI, _SSEKMSEC, _BKE], [[() => SessionCredentials$, { [_xN]: _Cr }], [0, { [_hH2]: _xasse }], [() => SSEKMSKeyId, { [_hH2]: _xasseakki }], [() => SSEKMSEncryptionContext, { [_hH2]: _xassec }], [2, { [_hH2]: _xassebke }]], 1 ]; var CreateSessionRequest$ = [ 3, n05, _CSRr, 0, [_B, _SM, _SSE, _SSEKMSKI, _SSEKMSEC, _BKE], [[0, 1], [0, { [_hH2]: _xacsm }], [0, { [_hH2]: _xasse }], [() => SSEKMSKeyId, { [_hH2]: _xasseakki }], [() => SSEKMSEncryptionContext, { [_hH2]: _xassec }], [2, { [_hH2]: _xassebke }]], 1 ]; var CSVInput$ = [ 3, n05, _CSVIn, 0, [_FHI, _Com, _QEC, _RD, _FD, _QC, _AQRD], [0, 0, 0, 0, 0, 0, 2] ]; var CSVOutput$ = [ 3, n05, _CSVO, 0, [_QF, _QEC, _RD, _FD, _QC], [0, 0, 0, 0, 0] ]; var DefaultRetention$ = [ 3, n05, _DRe, 0, [_Mo, _D, _Y, _DEH], [0, 1, 1, () => EventHoldDuration$] ]; var Delete$ = [ 3, n05, _De, 0, [_Ob, _Q], [[() => ObjectIdentifierList, { [_xF]: 1, [_xN]: _Obj }], 2], 1 ]; var DeleteBucketAnalyticsConfigurationRequest$ = [ 3, n05, _DBACR, 0, [_B, _I, _EBO], [[0, 1], [0, { [_hQ2]: _i }], [0, { [_hH2]: _xaebo }]], 2 ]; var DeleteBucketCorsRequest$ = [ 3, n05, _DBCR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var DeleteBucketEncryptionRequest$ = [ 3, n05, _DBER, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var DeleteBucketIntelligentTieringConfigurationRequest$ = [ 3, n05, _DBITCR, 0, [_B, _I, _EBO], [[0, 1], [0, { [_hQ2]: _i }], [0, { [_hH2]: _xaebo }]], 2 ]; var DeleteBucketInventoryConfigurationRequest$ = [ 3, n05, _DBICR, 0, [_B, _I, _EBO], [[0, 1], [0, { [_hQ2]: _i }], [0, { [_hH2]: _xaebo }]], 2 ]; var DeleteBucketLifecycleRequest$ = [ 3, n05, _DBLR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var DeleteBucketMetadataConfigurationRequest$ = [ 3, n05, _DBMCR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var DeleteBucketMetadataTableConfigurationRequest$ = [ 3, n05, _DBMTCR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var DeleteBucketMetricsConfigurationRequest$ = [ 3, n05, _DBMCRe, 0, [_B, _I, _EBO], [[0, 1], [0, { [_hQ2]: _i }], [0, { [_hH2]: _xaebo }]], 2 ]; var DeleteBucketOwnershipControlsRequest$ = [ 3, n05, _DBOCR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var DeleteBucketPolicyRequest$ = [ 3, n05, _DBPR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var DeleteBucketReplicationRequest$ = [ 3, n05, _DBRR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var DeleteBucketRequest$ = [ 3, n05, _DBR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var DeleteBucketTaggingRequest$ = [ 3, n05, _DBTR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var DeleteBucketWebsiteRequest$ = [ 3, n05, _DBWR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var DeletedObject$ = [ 3, n05, _DO, 0, [_K2, _VI, _DM, _DMVI], [0, 0, 2, 0] ]; var DeleteMarkerEntry$ = [ 3, n05, _DME, 0, [_O, _K2, _VI, _IL, _LM], [() => Owner$, 0, 0, 2, 4] ]; var DeleteMarkerReplication$ = [ 3, n05, _DMR, 0, [_S], [0] ]; var DeleteObjectAnnotationOutput$ = [ 3, n05, _DOAO, 0, [_OVI, _RC2], [[0, { [_hH2]: _xaovi }], [0, { [_hH2]: _xarc }]] ]; var DeleteObjectAnnotationRequest$ = [ 3, n05, _DOAR, 0, [_B, _K2, _AN, _VI, _RP, _EBO, _OIM], [[0, 1], [0, 1], [0, { [_hQ2]: _aN }], [0, { [_hQ2]: _vI }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xaoim }]], 3 ]; var DeleteObjectOutput$ = [ 3, n05, _DOO, 0, [_DM, _VI, _RC2], [[2, { [_hH2]: _xadm }], [0, { [_hH2]: _xavi }], [0, { [_hH2]: _xarc }]] ]; var DeleteObjectRequest$ = [ 3, n05, _DOR, 0, [_B, _K2, _MFA, _VI, _RP, _BGR, _EBO, _IM, _IMLMT, _IMS], [[0, 1], [0, 1], [0, { [_hH2]: _xam_ }], [0, { [_hQ2]: _vI }], [0, { [_hH2]: _xarp }], [2, { [_hH2]: _xabgr }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _IM_ }], [6, { [_hH2]: _xaimlmt }], [1, { [_hH2]: _xaims }]], 2 ]; var DeleteObjectsOutput$ = [ 3, n05, _DOOe, { [_xN]: _DRel }, [_Del, _RC2, _Er], [[() => DeletedObjects, { [_xF]: 1 }], [0, { [_hH2]: _xarc }], [() => Errors, { [_xF]: 1, [_xN]: _E3 }]] ]; var DeleteObjectsRequest$ = [ 3, n05, _DORe, 0, [_B, _De, _MFA, _RP, _BGR, _EBO, _CA2], [[0, 1], [() => Delete$, { [_hP]: 1, [_xN]: _De }], [0, { [_hH2]: _xam_ }], [0, { [_hH2]: _xarp }], [2, { [_hH2]: _xabgr }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xasca }]], 2 ]; var DeleteObjectTaggingOutput$ = [ 3, n05, _DOTO, 0, [_VI], [[0, { [_hH2]: _xavi }]] ]; var DeleteObjectTaggingRequest$ = [ 3, n05, _DOTR, 0, [_B, _K2, _VI, _EBO], [[0, 1], [0, 1], [0, { [_hQ2]: _vI }], [0, { [_hH2]: _xaebo }]], 2 ]; var DeletePublicAccessBlockRequest$ = [ 3, n05, _DPABR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var Destination$ = [ 3, n05, _Des, 0, [_B, _A2, _SC, _ACT, _EC, _RT3, _Me], [0, 0, 0, () => AccessControlTranslation$, () => EncryptionConfiguration$, () => ReplicationTime$, () => Metrics$], 1 ]; var DestinationResult$ = [ 3, n05, _DRes, 0, [_TBT, _TBA, _TNa], [0, 0, 0] ]; var Encryption$ = [ 3, n05, _En, 0, [_ETn, _KMSKI, _KMSC], [0, [() => SSEKMSKeyId, 0], 0], 1 ]; var EncryptionConfiguration$ = [ 3, n05, _EC, 0, [_RKKID], [0] ]; var EndEvent$ = [ 3, n05, _EE, 0, [], [] ]; var _Error$ = [ 3, n05, _E3, 0, [_K2, _VI, _Cod, _Mes], [0, 0, 0, 0] ]; var ErrorDetails$ = [ 3, n05, _ED, 0, [_ECr, _EM], [0, 0] ]; var ErrorDocument$ = [ 3, n05, _EDr, 0, [_K2], [0], 1 ]; var EventBridgeConfiguration$ = [ 3, n05, _EBC, 0, [], [] ]; var EventHoldDuration$ = [ 3, n05, _EHD, 0, [_D, _Y], [1, 1] ]; var ExistingObjectReplication$ = [ 3, n05, _EOR, 0, [_S], [0], 1 ]; var FilterRule$ = [ 3, n05, _FR, 0, [_N, _V2], [0, 0] ]; var GetBucketAbacOutput$ = [ 3, n05, _GBAO, 0, [_AS], [[() => AbacStatus$, 16]] ]; var GetBucketAbacRequest$ = [ 3, n05, _GBAR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketAccelerateConfigurationOutput$ = [ 3, n05, _GBACO, { [_xN]: _AC }, [_S, _RC2], [0, [0, { [_hH2]: _xarc }]] ]; var GetBucketAccelerateConfigurationRequest$ = [ 3, n05, _GBACR, 0, [_B, _EBO, _RP], [[0, 1], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xarp }]], 1 ]; var GetBucketAclOutput$ = [ 3, n05, _GBAOe, { [_xN]: _ACP }, [_O, _G], [() => Owner$, [() => Grants, { [_xN]: _ACL }]] ]; var GetBucketAclRequest$ = [ 3, n05, _GBARe, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketAnalyticsConfigurationOutput$ = [ 3, n05, _GBACOe, 0, [_ACn], [[() => AnalyticsConfiguration$, 16]] ]; var GetBucketAnalyticsConfigurationRequest$ = [ 3, n05, _GBACRe, 0, [_B, _I, _EBO], [[0, 1], [0, { [_hQ2]: _i }], [0, { [_hH2]: _xaebo }]], 2 ]; var GetBucketCorsOutput$ = [ 3, n05, _GBCO, { [_xN]: _CORSC }, [_CORSR], [[() => CORSRules, { [_xF]: 1, [_xN]: _CORSRu }]] ]; var GetBucketCorsRequest$ = [ 3, n05, _GBCR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketEncryptionOutput$ = [ 3, n05, _GBEO, 0, [_SSEC], [[() => ServerSideEncryptionConfiguration$, 16]] ]; var GetBucketEncryptionRequest$ = [ 3, n05, _GBER, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketIntelligentTieringConfigurationOutput$ = [ 3, n05, _GBITCO, 0, [_ITC], [[() => IntelligentTieringConfiguration$, 16]] ]; var GetBucketIntelligentTieringConfigurationRequest$ = [ 3, n05, _GBITCR, 0, [_B, _I, _EBO], [[0, 1], [0, { [_hQ2]: _i }], [0, { [_hH2]: _xaebo }]], 2 ]; var GetBucketInventoryConfigurationOutput$ = [ 3, n05, _GBICO, 0, [_IC], [[() => InventoryConfiguration$, 16]] ]; var GetBucketInventoryConfigurationRequest$ = [ 3, n05, _GBICR, 0, [_B, _I, _EBO], [[0, 1], [0, { [_hQ2]: _i }], [0, { [_hH2]: _xaebo }]], 2 ]; var GetBucketLifecycleConfigurationOutput$ = [ 3, n05, _GBLCO, { [_xN]: _LCi }, [_Ru, _TDMOS], [[() => LifecycleRules, { [_xF]: 1, [_xN]: _Rul }], [0, { [_hH2]: _xatdmos }]] ]; var GetBucketLifecycleConfigurationRequest$ = [ 3, n05, _GBLCR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketLocationOutput$ = [ 3, n05, _GBLO, { [_xN]: _LC }, [_LC], [0] ]; var GetBucketLocationRequest$ = [ 3, n05, _GBLR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketLoggingOutput$ = [ 3, n05, _GBLOe, { [_xN]: _BLS }, [_LE], [[() => LoggingEnabled$, 0]] ]; var GetBucketLoggingRequest$ = [ 3, n05, _GBLRe, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketMetadataConfigurationOutput$ = [ 3, n05, _GBMCO, 0, [_GBMCR], [[() => GetBucketMetadataConfigurationResult$, 16]] ]; var GetBucketMetadataConfigurationRequest$ = [ 3, n05, _GBMCRe, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketMetadataConfigurationResult$ = [ 3, n05, _GBMCR, 0, [_MCR], [() => MetadataConfigurationResult$], 1 ]; var GetBucketMetadataTableConfigurationOutput$ = [ 3, n05, _GBMTCO, 0, [_GBMTCR], [[() => GetBucketMetadataTableConfigurationResult$, 16]] ]; var GetBucketMetadataTableConfigurationRequest$ = [ 3, n05, _GBMTCRe, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketMetadataTableConfigurationResult$ = [ 3, n05, _GBMTCR, 0, [_MTCR, _S, _E3], [() => MetadataTableConfigurationResult$, 0, () => ErrorDetails$], 2 ]; var GetBucketMetricsConfigurationOutput$ = [ 3, n05, _GBMCOe, 0, [_MCe], [[() => MetricsConfiguration$, 16]] ]; var GetBucketMetricsConfigurationRequest$ = [ 3, n05, _GBMCRet, 0, [_B, _I, _EBO], [[0, 1], [0, { [_hQ2]: _i }], [0, { [_hH2]: _xaebo }]], 2 ]; var GetBucketNotificationConfigurationRequest$ = [ 3, n05, _GBNCR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketOwnershipControlsOutput$ = [ 3, n05, _GBOCO, 0, [_OC], [[() => OwnershipControls$, 16]] ]; var GetBucketOwnershipControlsRequest$ = [ 3, n05, _GBOCR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketPolicyOutput$ = [ 3, n05, _GBPO, 0, [_Po], [[0, 16]] ]; var GetBucketPolicyRequest$ = [ 3, n05, _GBPR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketPolicyStatusOutput$ = [ 3, n05, _GBPSO, 0, [_PS], [[() => PolicyStatus$, 16]] ]; var GetBucketPolicyStatusRequest$ = [ 3, n05, _GBPSR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketReplicationOutput$ = [ 3, n05, _GBRO, 0, [_RCe], [[() => ReplicationConfiguration$, 16]] ]; var GetBucketReplicationRequest$ = [ 3, n05, _GBRR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketRequestPaymentOutput$ = [ 3, n05, _GBRPO, { [_xN]: _RPC }, [_Pay], [0] ]; var GetBucketRequestPaymentRequest$ = [ 3, n05, _GBRPR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketTaggingOutput$ = [ 3, n05, _GBTO, { [_xN]: _Tag }, [_TSa], [[() => TagSet, 0]], 1 ]; var GetBucketTaggingRequest$ = [ 3, n05, _GBTR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketVersioningOutput$ = [ 3, n05, _GBVO, { [_xN]: _VC }, [_S, _MFAD], [0, [0, { [_xN]: _MDf }]] ]; var GetBucketVersioningRequest$ = [ 3, n05, _GBVR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetBucketWebsiteOutput$ = [ 3, n05, _GBWO, { [_xN]: _WC }, [_RART, _IDn, _EDr, _RR], [() => RedirectAllRequestsTo$, () => IndexDocument$, () => ErrorDocument$, [() => RoutingRules, 0]] ]; var GetBucketWebsiteRequest$ = [ 3, n05, _GBWR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetObjectAclOutput$ = [ 3, n05, _GOAO, { [_xN]: _ACP }, [_O, _G, _RC2], [() => Owner$, [() => Grants, { [_xN]: _ACL }], [0, { [_hH2]: _xarc }]] ]; var GetObjectAclRequest$ = [ 3, n05, _GOAR, 0, [_B, _K2, _VI, _RP, _EBO], [[0, 1], [0, 1], [0, { [_hQ2]: _vI }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }]], 2 ]; var GetObjectAnnotationOutput$ = [ 3, n05, _GOAOe, 0, [_AP, _OVI, _LM, _CLo, _ET, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _CT2, _SSE, _RC2, _RS], [[() => StreamingBlob, 16], [0, { [_hH2]: _xaovi }], [4, { [_hH2]: _LM_ }], [1, { [_hH2]: _CL__ }], [0, { [_hH2]: _ET }], [0, { [_hH2]: _xacc }], [0, { [_hH2]: _xacc_ }], [0, { [_hH2]: _xacc__ }], [0, { [_hH2]: _xacs }], [0, { [_hH2]: _xacs_ }], [0, { [_hH2]: _xacs__ }], [0, { [_hH2]: _xacm }], [0, { [_hH2]: _xacx }], [0, { [_hH2]: _xacx_ }], [0, { [_hH2]: _xacx__ }], [0, { [_hH2]: _xact }], [0, { [_hH2]: _xasse }], [0, { [_hH2]: _xarc }], [0, { [_hH2]: _xars }]] ]; var GetObjectAnnotationRequest$ = [ 3, n05, _GOARe, 0, [_B, _K2, _AN, _VI, _RP, _EBO, _CMh], [[0, 1], [0, 1], [0, { [_hQ2]: _aN }], [0, { [_hQ2]: _vI }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xacm_ }]], 3 ]; var GetObjectAttributesOutput$ = [ 3, n05, _GOAOet, { [_xN]: _GOARet }, [_DM, _LM, _VI, _RC2, _ET, _C2, _OP, _SC, _OS], [[2, { [_hH2]: _xadm }], [4, { [_hH2]: _LM_ }], [0, { [_hH2]: _xavi }], [0, { [_hH2]: _xarc }], 0, () => Checksum$, [() => GetObjectAttributesParts$, 0], 0, 1] ]; var GetObjectAttributesParts$ = [ 3, n05, _GOAP, 0, [_TPC, _PNM, _NPNM, _MP, _IT2, _Pa], [[1, { [_xN]: _PC2 }], 0, 0, 1, 2, [() => PartsList, { [_xF]: 1, [_xN]: _Par }]] ]; var GetObjectAttributesRequest$ = [ 3, n05, _GOARetb, 0, [_B, _K2, _OA, _VI, _MP, _PNM, _SSECA, _SSECK, _SSECKMD, _RP, _EBO], [[0, 1], [0, 1], [64 | 0, { [_hH2]: _xaoa }], [0, { [_hQ2]: _vI }], [1, { [_hH2]: _xamp }], [0, { [_hH2]: _xapnm }], [0, { [_hH2]: _xasseca }], [() => SSECustomerKey, { [_hH2]: _xasseck }], [0, { [_hH2]: _xasseckM }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }]], 3 ]; var GetObjectLegalHoldOutput$ = [ 3, n05, _GOLHO, 0, [_LH], [[() => ObjectLockLegalHold$, { [_hP]: 1, [_xN]: _LH }]] ]; var GetObjectLegalHoldRequest$ = [ 3, n05, _GOLHR, 0, [_B, _K2, _VI, _RP, _EBO], [[0, 1], [0, 1], [0, { [_hQ2]: _vI }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }]], 2 ]; var GetObjectLockConfigurationOutput$ = [ 3, n05, _GOLCO, 0, [_OLC], [[() => ObjectLockConfiguration$, 16]] ]; var GetObjectLockConfigurationRequest$ = [ 3, n05, _GOLCR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GetObjectOutput$ = [ 3, n05, _GOO, 0, [_Bo, _DM, _AR2, _Ex, _Re, _LM, _CLo, _ET, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _CT2, _MM, _VI, _CC, _CDo, _CEo, _CL, _CR, _CTo, _Exp, _ES, _WRL, _SSE, _M, _SSECA, _SSECKMD, _SSEKMSKI, _BKE, _SC, _RC2, _RS, _PC2, _TC2, _OLM, _OLRUD, _OLLHS, _OLEH, _OLEHDD, _OLEHDY], [[() => StreamingBlob, 16], [2, { [_hH2]: _xadm }], [0, { [_hH2]: _ar }], [0, { [_hH2]: _xae }], [0, { [_hH2]: _xar }], [4, { [_hH2]: _LM_ }], [1, { [_hH2]: _CL__ }], [0, { [_hH2]: _ET }], [0, { [_hH2]: _xacc }], [0, { [_hH2]: _xacc_ }], [0, { [_hH2]: _xacc__ }], [0, { [_hH2]: _xacs }], [0, { [_hH2]: _xacs_ }], [0, { [_hH2]: _xacs__ }], [0, { [_hH2]: _xacm }], [0, { [_hH2]: _xacx }], [0, { [_hH2]: _xacx_ }], [0, { [_hH2]: _xacx__ }], [0, { [_hH2]: _xact }], [1, { [_hH2]: _xamm }], [0, { [_hH2]: _xavi }], [0, { [_hH2]: _CC_ }], [0, { [_hH2]: _CD_ }], [0, { [_hH2]: _CE_ }], [0, { [_hH2]: _CL_ }], [0, { [_hH2]: _CR_ }], [0, { [_hH2]: _CT_ }], [4, { [_hH2]: _Exp }], [0, { [_hH2]: _ES }], [0, { [_hH2]: _xawrl }], [0, { [_hH2]: _xasse }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH2]: _xasseca }], [0, { [_hH2]: _xasseckM }], [() => SSEKMSKeyId, { [_hH2]: _xasseakki }], [2, { [_hH2]: _xassebke }], [0, { [_hH2]: _xasc }], [0, { [_hH2]: _xarc }], [0, { [_hH2]: _xars }], [1, { [_hH2]: _xampc }], [1, { [_hH2]: _xatc }], [0, { [_hH2]: _xaolm }], [5, { [_hH2]: _xaolrud }], [0, { [_hH2]: _xaollh }], [0, { [_hH2]: _xaoleh }], [1, { [_hH2]: _xaolehdd }], [1, { [_hH2]: _xaolehdy }]] ]; var GetObjectRequest$ = [ 3, n05, _GOR, 0, [_B, _K2, _IM, _IMSf, _INM, _IUS, _Ra, _RCC, _RCD, _RCE, _RCL, _RCT, _RE, _VI, _SSECA, _SSECK, _SSECKMD, _RP, _PN, _EBO, _CMh], [[0, 1], [0, 1], [0, { [_hH2]: _IM_ }], [4, { [_hH2]: _IMS_ }], [0, { [_hH2]: _INM_ }], [4, { [_hH2]: _IUS_ }], [0, { [_hH2]: _Ra }], [0, { [_hQ2]: _rcc }], [0, { [_hQ2]: _rcd }], [0, { [_hQ2]: _rce }], [0, { [_hQ2]: _rcl }], [0, { [_hQ2]: _rct }], [6, { [_hQ2]: _re }], [0, { [_hQ2]: _vI }], [0, { [_hH2]: _xasseca }], [() => SSECustomerKey, { [_hH2]: _xasseck }], [0, { [_hH2]: _xasseckM }], [0, { [_hH2]: _xarp }], [1, { [_hQ2]: _pN }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xacm_ }]], 2 ]; var GetObjectRetentionOutput$ = [ 3, n05, _GORO, 0, [_Ret], [[() => ObjectLockRetention$, { [_hP]: 1, [_xN]: _Ret }]] ]; var GetObjectRetentionRequest$ = [ 3, n05, _GORR, 0, [_B, _K2, _VI, _RP, _EBO], [[0, 1], [0, 1], [0, { [_hQ2]: _vI }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }]], 2 ]; var GetObjectTaggingOutput$ = [ 3, n05, _GOTO, { [_xN]: _Tag }, [_TSa, _VI], [[() => TagSet, 0], [0, { [_hH2]: _xavi }]], 1 ]; var GetObjectTaggingRequest$ = [ 3, n05, _GOTR, 0, [_B, _K2, _VI, _EBO, _RP], [[0, 1], [0, 1], [0, { [_hQ2]: _vI }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xarp }]], 2 ]; var GetObjectTorrentOutput$ = [ 3, n05, _GOTOe, 0, [_Bo, _RC2], [[() => StreamingBlob, 16], [0, { [_hH2]: _xarc }]] ]; var GetObjectTorrentRequest$ = [ 3, n05, _GOTRe, 0, [_B, _K2, _RP, _EBO], [[0, 1], [0, 1], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }]], 2 ]; var GetPublicAccessBlockOutput$ = [ 3, n05, _GPABO, 0, [_PABC], [[() => PublicAccessBlockConfiguration$, 16]] ]; var GetPublicAccessBlockRequest$ = [ 3, n05, _GPABR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var GlacierJobParameters$ = [ 3, n05, _GJP, 0, [_Ti], [0], 1 ]; var Grant$ = [ 3, n05, _Gr, 0, [_Gra, _Pe], [[() => Grantee$, { [_xNm]: [_x, _hi] }], 0] ]; var Grantee$ = [ 3, n05, _Gra, 0, [_Ty, _DN, _EA, _ID, _URI], [[0, { [_xA]: 1, [_xN]: _xs }], 0, 0, 0, 0], 1 ]; var HeadBucketOutput$ = [ 3, n05, _HBO, 0, [_BA, _BLT, _BLN, _BR, _APA], [[0, { [_hH2]: _xaba }], [0, { [_hH2]: _xablt }], [0, { [_hH2]: _xabln }], [0, { [_hH2]: _xabr }], [2, { [_hH2]: _xaapa }]] ]; var HeadBucketRequest$ = [ 3, n05, _HBR, 0, [_B, _EBO], [[0, 1], [0, { [_hH2]: _xaebo }]], 1 ]; var HeadObjectOutput$ = [ 3, n05, _HOO, 0, [_DM, _AR2, _Ex, _Re, _ASr, _LM, _CLo, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _CT2, _ET, _MM, _VI, _CC, _CDo, _CEo, _CL, _CTo, _CR, _Exp, _ES, _WRL, _SSE, _M, _SSECA, _SSECKMD, _SSEKMSKI, _BKE, _SC, _RC2, _RS, _PC2, _TC2, _OLM, _OLRUD, _OLLHS, _OLEH, _OLEHDD, _OLEHDY], [[2, { [_hH2]: _xadm }], [0, { [_hH2]: _ar }], [0, { [_hH2]: _xae }], [0, { [_hH2]: _xar }], [0, { [_hH2]: _xaas }], [4, { [_hH2]: _LM_ }], [1, { [_hH2]: _CL__ }], [0, { [_hH2]: _xacc }], [0, { [_hH2]: _xacc_ }], [0, { [_hH2]: _xacc__ }], [0, { [_hH2]: _xacs }], [0, { [_hH2]: _xacs_ }], [0, { [_hH2]: _xacs__ }], [0, { [_hH2]: _xacm }], [0, { [_hH2]: _xacx }], [0, { [_hH2]: _xacx_ }], [0, { [_hH2]: _xacx__ }], [0, { [_hH2]: _xact }], [0, { [_hH2]: _ET }], [1, { [_hH2]: _xamm }], [0, { [_hH2]: _xavi }], [0, { [_hH2]: _CC_ }], [0, { [_hH2]: _CD_ }], [0, { [_hH2]: _CE_ }], [0, { [_hH2]: _CL_ }], [0, { [_hH2]: _CT_ }], [0, { [_hH2]: _CR_ }], [4, { [_hH2]: _Exp }], [0, { [_hH2]: _ES }], [0, { [_hH2]: _xawrl }], [0, { [_hH2]: _xasse }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH2]: _xasseca }], [0, { [_hH2]: _xasseckM }], [() => SSEKMSKeyId, { [_hH2]: _xasseakki }], [2, { [_hH2]: _xassebke }], [0, { [_hH2]: _xasc }], [0, { [_hH2]: _xarc }], [0, { [_hH2]: _xars }], [1, { [_hH2]: _xampc }], [1, { [_hH2]: _xatc }], [0, { [_hH2]: _xaolm }], [5, { [_hH2]: _xaolrud }], [0, { [_hH2]: _xaollh }], [0, { [_hH2]: _xaoleh }], [1, { [_hH2]: _xaolehdd }], [1, { [_hH2]: _xaolehdy }]] ]; var HeadObjectRequest$ = [ 3, n05, _HOR, 0, [_B, _K2, _IM, _IMSf, _INM, _IUS, _Ra, _RCC, _RCD, _RCE, _RCL, _RCT, _RE, _VI, _SSECA, _SSECK, _SSECKMD, _RP, _PN, _EBO, _CMh], [[0, 1], [0, 1], [0, { [_hH2]: _IM_ }], [4, { [_hH2]: _IMS_ }], [0, { [_hH2]: _INM_ }], [4, { [_hH2]: _IUS_ }], [0, { [_hH2]: _Ra }], [0, { [_hQ2]: _rcc }], [0, { [_hQ2]: _rcd }], [0, { [_hQ2]: _rce }], [0, { [_hQ2]: _rcl }], [0, { [_hQ2]: _rct }], [6, { [_hQ2]: _re }], [0, { [_hQ2]: _vI }], [0, { [_hH2]: _xasseca }], [() => SSECustomerKey, { [_hH2]: _xasseck }], [0, { [_hH2]: _xasseckM }], [0, { [_hH2]: _xarp }], [1, { [_hQ2]: _pN }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xacm_ }]], 2 ]; var IndexDocument$ = [ 3, n05, _IDn, 0, [_Su], [0], 1 ]; var Initiator$ = [ 3, n05, _In, 0, [_ID, _DN], [0, 0] ]; var InputSerialization$ = [ 3, n05, _IS, 0, [_CSV, _CTom, _JSON, _Parq], [() => CSVInput$, 0, () => JSONInput$, () => ParquetInput$] ]; var IntelligentTieringAndOperator$ = [ 3, n05, _ITAO, 0, [_P2, _T2], [0, [() => TagSet, { [_xF]: 1, [_xN]: _Ta2 }]] ]; var IntelligentTieringConfiguration$ = [ 3, n05, _ITC, 0, [_I, _S, _Tie, _F], [0, 0, [() => TieringList, { [_xF]: 1, [_xN]: _Tier }], [() => IntelligentTieringFilter$, 0]], 3 ]; var IntelligentTieringFilter$ = [ 3, n05, _ITF, 0, [_P2, _Ta2, _An], [0, () => Tag$2, [() => IntelligentTieringAndOperator$, 0]] ]; var InventoryConfiguration$ = [ 3, n05, _IC, 0, [_Des, _IE, _I, _IOV, _Sc, _F, _OF], [[() => InventoryDestination$, 0], 2, 0, 0, () => InventorySchedule$, () => InventoryFilter$, [() => InventoryOptionalFields, 0]], 5 ]; var InventoryDestination$ = [ 3, n05, _IDnv, 0, [_SBD], [[() => InventoryS3BucketDestination$, 0]], 1 ]; var InventoryEncryption$ = [ 3, n05, _IEn, 0, [_SSES, _SSEKMS], [[() => SSES3$, { [_xN]: _SS }], [() => SSEKMS$, { [_xN]: _SK }]] ]; var InventoryFilter$ = [ 3, n05, _IF, 0, [_P2], [0], 1 ]; var InventoryS3BucketDestination$ = [ 3, n05, _ISBD, 0, [_B, _Fo, _AI, _P2, _En], [0, 0, 0, 0, [() => InventoryEncryption$, 0]], 2 ]; var InventorySchedule$ = [ 3, n05, _ISn, 0, [_Fr], [0], 1 ]; var InventoryTableConfiguration$ = [ 3, n05, _ITCn, 0, [_CS2, _EC], [0, () => MetadataTableEncryptionConfiguration$], 1 ]; var InventoryTableConfigurationResult$ = [ 3, n05, _ITCR, 0, [_CS2, _TS, _E3, _TN, _TA], [0, 0, () => ErrorDetails$, 0, 0], 1 ]; var InventoryTableConfigurationUpdates$ = [ 3, n05, _ITCU, 0, [_CS2, _EC], [0, () => MetadataTableEncryptionConfiguration$], 1 ]; var JournalTableConfiguration$ = [ 3, n05, _JTC, 0, [_REe, _EC], [() => RecordExpiration$, () => MetadataTableEncryptionConfiguration$], 1 ]; var JournalTableConfigurationResult$ = [ 3, n05, _JTCR, 0, [_TS, _TN, _REe, _E3, _TA], [0, 0, () => RecordExpiration$, () => ErrorDetails$, 0], 3 ]; var JournalTableConfigurationUpdates$ = [ 3, n05, _JTCU, 0, [_REe], [() => RecordExpiration$], 1 ]; var JSONInput$ = [ 3, n05, _JSONI, 0, [_Ty], [0] ]; var JSONOutput$ = [ 3, n05, _JSONO, 0, [_RD], [0] ]; var LambdaFunctionConfiguration$ = [ 3, n05, _LFC, 0, [_LFA, _Ev, _I, _F], [[0, { [_xN]: _CF }], [64 | 0, { [_xF]: 1, [_xN]: _Eve }], 0, [() => NotificationConfigurationFilter$, 0]], 2 ]; var LifecycleExpiration$ = [ 3, n05, _LEi, 0, [_Da, _D, _EODM], [5, 1, 2] ]; var LifecycleRule$ = [ 3, n05, _LR, 0, [_S, _Ex, _ID, _P2, _F, _Tr, _NVT, _NVE, _AIMU], [0, () => LifecycleExpiration$, 0, 0, [() => LifecycleRuleFilter$, 0], [() => TransitionList, { [_xF]: 1, [_xN]: _Tra }], [() => NoncurrentVersionTransitionList, { [_xF]: 1, [_xN]: _NVTo }], () => NoncurrentVersionExpiration$, () => AbortIncompleteMultipartUpload$], 1 ]; var LifecycleRuleAndOperator$ = [ 3, n05, _LRAO, 0, [_P2, _T2, _OSGT, _OSLT], [0, [() => TagSet, { [_xF]: 1, [_xN]: _Ta2 }], 1, 1] ]; var LifecycleRuleFilter$ = [ 3, n05, _LRF, 0, [_P2, _Ta2, _OSGT, _OSLT, _An], [0, () => Tag$2, 1, 1, [() => LifecycleRuleAndOperator$, 0]] ]; var ListBucketAnalyticsConfigurationsOutput$ = [ 3, n05, _LBACO, { [_xN]: _LBACR }, [_IT2, _CTon, _NCT, _ACLn], [2, 0, 0, [() => AnalyticsConfigurationList, { [_xF]: 1, [_xN]: _ACn }]] ]; var ListBucketAnalyticsConfigurationsRequest$ = [ 3, n05, _LBACRi, 0, [_B, _CTon, _EBO], [[0, 1], [0, { [_hQ2]: _ct }], [0, { [_hH2]: _xaebo }]], 1 ]; var ListBucketIntelligentTieringConfigurationsOutput$ = [ 3, n05, _LBITCO, 0, [_IT2, _CTon, _NCT, _ITCL], [2, 0, 0, [() => IntelligentTieringConfigurationList, { [_xF]: 1, [_xN]: _ITC }]] ]; var ListBucketIntelligentTieringConfigurationsRequest$ = [ 3, n05, _LBITCR, 0, [_B, _CTon, _EBO], [[0, 1], [0, { [_hQ2]: _ct }], [0, { [_hH2]: _xaebo }]], 1 ]; var ListBucketInventoryConfigurationsOutput$ = [ 3, n05, _LBICO, { [_xN]: _LICR }, [_CTon, _ICL, _IT2, _NCT], [0, [() => InventoryConfigurationList, { [_xF]: 1, [_xN]: _IC }], 2, 0] ]; var ListBucketInventoryConfigurationsRequest$ = [ 3, n05, _LBICR, 0, [_B, _CTon, _EBO], [[0, 1], [0, { [_hQ2]: _ct }], [0, { [_hH2]: _xaebo }]], 1 ]; var ListBucketMetricsConfigurationsOutput$ = [ 3, n05, _LBMCO, { [_xN]: _LMCR }, [_IT2, _CTon, _NCT, _MCL], [2, 0, 0, [() => MetricsConfigurationList, { [_xF]: 1, [_xN]: _MCe }]] ]; var ListBucketMetricsConfigurationsRequest$ = [ 3, n05, _LBMCR, 0, [_B, _CTon, _EBO], [[0, 1], [0, { [_hQ2]: _ct }], [0, { [_hH2]: _xaebo }]], 1 ]; var ListBucketsOutput$ = [ 3, n05, _LBO, { [_xN]: _LAMBR }, [_Bu, _O, _CTon, _P2], [[() => Buckets, 0], () => Owner$, 0, 0] ]; var ListBucketsRequest$ = [ 3, n05, _LBR, 0, [_MB, _CTon, _P2, _BR], [[1, { [_hQ2]: _mb }], [0, { [_hQ2]: _ct }], [0, { [_hQ2]: _p }], [0, { [_hQ2]: _br }]] ]; var ListDirectoryBucketsOutput$ = [ 3, n05, _LDBO, { [_xN]: _LAMDBR }, [_Bu, _CTon], [[() => Buckets, 0], 0] ]; var ListDirectoryBucketsRequest$ = [ 3, n05, _LDBR, 0, [_CTon, _MDB], [[0, { [_hQ2]: _ct }], [1, { [_hQ2]: _mdb }]] ]; var ListMultipartUploadsOutput$ = [ 3, n05, _LMUO, { [_xN]: _LMUR }, [_B, _KM, _UIM, _NKM, _P2, _Deli, _NUIM, _MUa, _IT2, _U, _CPom, _ETnc, _RC2], [0, 0, 0, 0, 0, 0, 0, 1, 2, [() => MultipartUploadList, { [_xF]: 1, [_xN]: _Up }], [() => CommonPrefixList, { [_xF]: 1 }], 0, [0, { [_hH2]: _xarc }]] ]; var ListMultipartUploadsRequest$ = [ 3, n05, _LMURi, 0, [_B, _Deli, _ETnc, _KM, _MUa, _P2, _UIM, _EBO, _RP], [[0, 1], [0, { [_hQ2]: _d }], [0, { [_hQ2]: _et }], [0, { [_hQ2]: _km }], [1, { [_hQ2]: _mu }], [0, { [_hQ2]: _p }], [0, { [_hQ2]: _uim }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xarp }]], 1 ]; var ListObjectAnnotationsOutput$ = [ 3, n05, _LOAO, 0, [_Ann, _B, _K2, _OVI, _APn, _MAR, _ACnn, _CTon, _NCT, _RC2], [[() => AnnotationList, 0], 0, 0, [0, { [_hH2]: _xaovi }], 0, 1, 1, 0, 0, [0, { [_hH2]: _xarc }]] ]; var ListObjectAnnotationsRequest$ = [ 3, n05, _LOAR, 0, [_B, _K2, _VI, _MAR, _APn, _CTon, _RP, _EBO], [[0, 1], [0, 1], [0, { [_hQ2]: _vI }], [1, { [_hQ2]: _mar }], [0, { [_hQ2]: _ap }], [0, { [_hQ2]: _ct }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }]], 2 ]; var ListObjectsOutput$ = [ 3, n05, _LOO, { [_xN]: _LBRi }, [_IT2, _Ma, _NM, _Con, _N, _P2, _Deli, _MK, _CPom, _ETnc, _RC2], [2, 0, 0, [() => ObjectList, { [_xF]: 1 }], 0, 0, 0, 1, [() => CommonPrefixList, { [_xF]: 1 }], 0, [0, { [_hH2]: _xarc }]] ]; var ListObjectsRequest$ = [ 3, n05, _LOR, 0, [_B, _Deli, _ETnc, _Ma, _MK, _P2, _RP, _EBO, _OOA], [[0, 1], [0, { [_hQ2]: _d }], [0, { [_hQ2]: _et }], [0, { [_hQ2]: _m4 }], [1, { [_hQ2]: _mk }], [0, { [_hQ2]: _p }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }], [64 | 0, { [_hH2]: _xaooa }]], 1 ]; var ListObjectsV2Output$ = [ 3, n05, _LOVO, { [_xN]: _LBRi }, [_IT2, _Con, _N, _P2, _Deli, _MK, _CPom, _ETnc, _KC, _CTon, _NCT, _SA, _RC2], [2, [() => ObjectList, { [_xF]: 1 }], 0, 0, 0, 1, [() => CommonPrefixList, { [_xF]: 1 }], 0, 1, 0, 0, 0, [0, { [_hH2]: _xarc }]] ]; var ListObjectsV2Request$ = [ 3, n05, _LOVR, 0, [_B, _Deli, _ETnc, _MK, _P2, _CTon, _FO, _SA, _RP, _EBO, _OOA], [[0, 1], [0, { [_hQ2]: _d }], [0, { [_hQ2]: _et }], [1, { [_hQ2]: _mk }], [0, { [_hQ2]: _p }], [0, { [_hQ2]: _ct }], [2, { [_hQ2]: _fo }], [0, { [_hQ2]: _sa }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }], [64 | 0, { [_hH2]: _xaooa }]], 1 ]; var ListObjectVersionsOutput$ = [ 3, n05, _LOVOi, { [_xN]: _LVR }, [_IT2, _KM, _VIM, _NKM, _NVIM, _Ve, _DMe, _N, _P2, _Deli, _MK, _CPom, _ETnc, _RC2], [2, 0, 0, 0, 0, [() => ObjectVersionList, { [_xF]: 1, [_xN]: _Ver }], [() => DeleteMarkers, { [_xF]: 1, [_xN]: _DM }], 0, 0, 0, 1, [() => CommonPrefixList, { [_xF]: 1 }], 0, [0, { [_hH2]: _xarc }]] ]; var ListObjectVersionsRequest$ = [ 3, n05, _LOVRi, 0, [_B, _Deli, _ETnc, _KM, _MK, _P2, _VIM, _EBO, _RP, _OOA], [[0, 1], [0, { [_hQ2]: _d }], [0, { [_hQ2]: _et }], [0, { [_hQ2]: _km }], [1, { [_hQ2]: _mk }], [0, { [_hQ2]: _p }], [0, { [_hQ2]: _vim }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xarp }], [64 | 0, { [_hH2]: _xaooa }]], 1 ]; var ListPartsOutput$ = [ 3, n05, _LPO, { [_xN]: _LPR }, [_ADb, _ARI2, _B, _K2, _UI, _PNM, _NPNM, _MP, _IT2, _Pa, _In, _O, _SC, _RC2, _CA2, _CT2], [[4, { [_hH2]: _xaad }], [0, { [_hH2]: _xaari }], 0, 0, 0, 0, 0, 1, 2, [() => Parts, { [_xF]: 1, [_xN]: _Par }], () => Initiator$, () => Owner$, 0, [0, { [_hH2]: _xarc }], 0, 0] ]; var ListPartsRequest$ = [ 3, n05, _LPRi, 0, [_B, _K2, _UI, _MP, _PNM, _RP, _EBO, _SSECA, _SSECK, _SSECKMD], [[0, 1], [0, 1], [0, { [_hQ2]: _uI }], [1, { [_hQ2]: _mp }], [0, { [_hQ2]: _pnm }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xasseca }], [() => SSECustomerKey, { [_hH2]: _xasseck }], [0, { [_hH2]: _xasseckM }]], 3 ]; var LocationInfo$ = [ 3, n05, _LI, 0, [_Ty, _N], [0, 0] ]; var LoggingEnabled$ = [ 3, n05, _LE, 0, [_TB, _TP, _TG, _TOKF], [0, 0, [() => TargetGrants, 0], [() => TargetObjectKeyFormat$, 0]], 2 ]; var MetadataConfiguration$ = [ 3, n05, _MC, 0, [_JTC, _ITCn, _ATC], [() => JournalTableConfiguration$, () => InventoryTableConfiguration$, () => AnnotationTableConfiguration$], 1 ]; var MetadataConfigurationResult$ = [ 3, n05, _MCR, 0, [_DRes, _JTCR, _ITCR, _ATCR], [() => DestinationResult$, () => JournalTableConfigurationResult$, () => InventoryTableConfigurationResult$, () => AnnotationTableConfigurationResult$], 1 ]; var MetadataEntry$ = [ 3, n05, _ME, 0, [_N, _V2], [0, 0] ]; var MetadataTableConfiguration$ = [ 3, n05, _MTC, 0, [_STD], [() => S3TablesDestination$], 1 ]; var MetadataTableConfigurationResult$ = [ 3, n05, _MTCR, 0, [_STDR], [() => S3TablesDestinationResult$], 1 ]; var MetadataTableEncryptionConfiguration$ = [ 3, n05, _MTEC, 0, [_SAs, _KKA], [0, 0], 1 ]; var Metrics$ = [ 3, n05, _Me, 0, [_S, _ETv], [0, () => ReplicationTimeValue$], 1 ]; var MetricsAndOperator$ = [ 3, n05, _MAO, 0, [_P2, _T2, _APAc], [0, [() => TagSet, { [_xF]: 1, [_xN]: _Ta2 }], 0] ]; var MetricsConfiguration$ = [ 3, n05, _MCe, 0, [_I, _F], [0, [() => MetricsFilter$, 0]], 1 ]; var MultipartUpload$ = [ 3, n05, _MU, 0, [_UI, _K2, _Ini, _SC, _O, _In, _CA2, _CT2], [0, 0, 4, 0, () => Owner$, () => Initiator$, 0, 0] ]; var NoncurrentVersionExpiration$ = [ 3, n05, _NVE, 0, [_ND, _NNV], [1, 1] ]; var NoncurrentVersionTransition$ = [ 3, n05, _NVTo, 0, [_ND, _SC, _NNV], [1, 0, 1] ]; var NotificationConfiguration$ = [ 3, n05, _NC, 0, [_TCo, _QCu, _LFCa, _EBC], [[() => TopicConfigurationList, { [_xF]: 1, [_xN]: _TCop }], [() => QueueConfigurationList, { [_xF]: 1, [_xN]: _QCue }], [() => LambdaFunctionConfigurationList, { [_xF]: 1, [_xN]: _CFC }], () => EventBridgeConfiguration$] ]; var NotificationConfigurationFilter$ = [ 3, n05, _NCF, 0, [_K2], [[() => S3KeyFilter$, { [_xN]: _SKe }]] ]; var _Object$ = [ 3, n05, _Obj, 0, [_K2, _LM, _ET, _CA2, _CT2, _Si, _SC, _O, _RSe], [0, 4, 0, [64 | 0, { [_xF]: 1 }], 0, 1, 0, () => Owner$, () => RestoreStatus$] ]; var ObjectIdentifier$ = [ 3, n05, _OI, 0, [_K2, _VI, _ET, _LMT, _Si], [0, 0, 0, 6, 1], 1 ]; var ObjectLockConfiguration$ = [ 3, n05, _OLC, 0, [_OLE, _Rul], [0, () => ObjectLockRule$] ]; var ObjectLockLegalHold$ = [ 3, n05, _OLLH, 0, [_S], [0] ]; var ObjectLockRetention$ = [ 3, n05, _OLR, 0, [_Mo, _RUD, _EHv, _EHD], [0, 5, 0, () => EventHoldDuration$] ]; var ObjectLockRule$ = [ 3, n05, _OLRb, 0, [_DRe], [() => DefaultRetention$] ]; var ObjectPart$ = [ 3, n05, _OPb, 0, [_PN, _Si, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe], [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ]; var ObjectVersion$ = [ 3, n05, _OV, 0, [_ET, _CA2, _CT2, _Si, _SC, _K2, _VI, _IL, _LM, _O, _RSe], [0, [64 | 0, { [_xF]: 1 }], 0, 1, 0, 0, 0, 2, 4, () => Owner$, () => RestoreStatus$] ]; var OutputLocation$ = [ 3, n05, _OL, 0, [_S_], [[() => S3Location$, 0]] ]; var OutputSerialization$ = [ 3, n05, _OSu, 0, [_CSV, _JSON], [() => CSVOutput$, () => JSONOutput$] ]; var Owner$ = [ 3, n05, _O, 0, [_DN, _ID], [0, 0] ]; var OwnershipControls$ = [ 3, n05, _OC, 0, [_Ru], [[() => OwnershipControlsRules, { [_xF]: 1, [_xN]: _Rul }]], 1 ]; var OwnershipControlsRule$ = [ 3, n05, _OCR, 0, [_OO], [0], 1 ]; var ParquetInput$ = [ 3, n05, _PI2, 0, [], [] ]; var Part$ = [ 3, n05, _Par, 0, [_PN, _LM, _ET, _Si, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe], [1, 4, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ]; var PartitionedPrefix$ = [ 3, n05, _PP, { [_xN]: _PP }, [_PDS], [0] ]; var PolicyStatus$ = [ 3, n05, _PS, 0, [_IPs], [[2, { [_xN]: _IPs }]] ]; var Progress$ = [ 3, n05, _Pr2, 0, [_BS, _BP, _BRy], [1, 1, 1] ]; var ProgressEvent$ = [ 3, n05, _PE, 0, [_Det], [[() => Progress$, { [_eP]: 1 }]] ]; var PublicAccessBlockConfiguration$ = [ 3, n05, _PABC, 0, [_BPA, _IPA, _BPP, _RPB], [[2, { [_xN]: _BPA }], [2, { [_xN]: _IPA }], [2, { [_xN]: _BPP }], [2, { [_xN]: _RPB }]] ]; var PutBucketAbacRequest$ = [ 3, n05, _PBAR, 0, [_B, _AS, _CMDo, _CA2, _EBO], [[0, 1], [() => AbacStatus$, { [_hP]: 1, [_xN]: _AS }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var PutBucketAccelerateConfigurationRequest$ = [ 3, n05, _PBACR, 0, [_B, _AC, _EBO, _CA2], [[0, 1], [() => AccelerateConfiguration$, { [_hP]: 1, [_xN]: _AC }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xasca }]], 2 ]; var PutBucketAclRequest$ = [ 3, n05, _PBARu, 0, [_B, _ACL_, _ACP, _CMDo, _CA2, _GFC, _GR, _GRACP, _GW, _GWACP, _EBO], [[0, 1], [0, { [_hH2]: _xaa }], [() => AccessControlPolicy$, { [_hP]: 1, [_xN]: _ACP }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xagfc }], [0, { [_hH2]: _xagr }], [0, { [_hH2]: _xagra }], [0, { [_hH2]: _xagw }], [0, { [_hH2]: _xagwa }], [0, { [_hH2]: _xaebo }]], 1 ]; var PutBucketAnalyticsConfigurationRequest$ = [ 3, n05, _PBACRu, 0, [_B, _I, _ACn, _EBO], [[0, 1], [0, { [_hQ2]: _i }], [() => AnalyticsConfiguration$, { [_hP]: 1, [_xN]: _ACn }], [0, { [_hH2]: _xaebo }]], 3 ]; var PutBucketCorsRequest$ = [ 3, n05, _PBCR, 0, [_B, _CORSC, _CMDo, _CA2, _EBO], [[0, 1], [() => CORSConfiguration$, { [_hP]: 1, [_xN]: _CORSC }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var PutBucketEncryptionRequest$ = [ 3, n05, _PBER, 0, [_B, _SSEC, _CMDo, _CA2, _EBO], [[0, 1], [() => ServerSideEncryptionConfiguration$, { [_hP]: 1, [_xN]: _SSEC }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var PutBucketIntelligentTieringConfigurationRequest$ = [ 3, n05, _PBITCR, 0, [_B, _I, _ITC, _EBO], [[0, 1], [0, { [_hQ2]: _i }], [() => IntelligentTieringConfiguration$, { [_hP]: 1, [_xN]: _ITC }], [0, { [_hH2]: _xaebo }]], 3 ]; var PutBucketInventoryConfigurationRequest$ = [ 3, n05, _PBICR, 0, [_B, _I, _IC, _EBO], [[0, 1], [0, { [_hQ2]: _i }], [() => InventoryConfiguration$, { [_hP]: 1, [_xN]: _IC }], [0, { [_hH2]: _xaebo }]], 3 ]; var PutBucketLifecycleConfigurationOutput$ = [ 3, n05, _PBLCO, 0, [_TDMOS], [[0, { [_hH2]: _xatdmos }]] ]; var PutBucketLifecycleConfigurationRequest$ = [ 3, n05, _PBLCR, 0, [_B, _CA2, _LCi, _EBO, _TDMOS], [[0, 1], [0, { [_hH2]: _xasca }], [() => BucketLifecycleConfiguration$, { [_hP]: 1, [_xN]: _LCi }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xatdmos }]], 1 ]; var PutBucketLoggingRequest$ = [ 3, n05, _PBLR, 0, [_B, _BLS, _CMDo, _CA2, _EBO], [[0, 1], [() => BucketLoggingStatus$, { [_hP]: 1, [_xN]: _BLS }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var PutBucketMetricsConfigurationRequest$ = [ 3, n05, _PBMCR, 0, [_B, _I, _MCe, _EBO], [[0, 1], [0, { [_hQ2]: _i }], [() => MetricsConfiguration$, { [_hP]: 1, [_xN]: _MCe }], [0, { [_hH2]: _xaebo }]], 3 ]; var PutBucketNotificationConfigurationRequest$ = [ 3, n05, _PBNCR, 0, [_B, _NC, _EBO, _SDV], [[0, 1], [() => NotificationConfiguration$, { [_hP]: 1, [_xN]: _NC }], [0, { [_hH2]: _xaebo }], [2, { [_hH2]: _xasdv }]], 2 ]; var PutBucketOwnershipControlsRequest$ = [ 3, n05, _PBOCR, 0, [_B, _OC, _CMDo, _EBO, _CA2], [[0, 1], [() => OwnershipControls$, { [_hP]: 1, [_xN]: _OC }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xasca }]], 2 ]; var PutBucketPolicyRequest$ = [ 3, n05, _PBPR, 0, [_B, _Po, _CMDo, _CA2, _CRSBA, _EBO], [[0, 1], [0, 16], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [2, { [_hH2]: _xacrsba }], [0, { [_hH2]: _xaebo }]], 2 ]; var PutBucketReplicationRequest$ = [ 3, n05, _PBRR, 0, [_B, _RCe, _CMDo, _CA2, _To, _EBO], [[0, 1], [() => ReplicationConfiguration$, { [_hP]: 1, [_xN]: _RCe }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xabolt }], [0, { [_hH2]: _xaebo }]], 2 ]; var PutBucketRequestPaymentRequest$ = [ 3, n05, _PBRPR, 0, [_B, _RPC, _CMDo, _CA2, _EBO], [[0, 1], [() => RequestPaymentConfiguration$, { [_hP]: 1, [_xN]: _RPC }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var PutBucketTaggingRequest$ = [ 3, n05, _PBTR, 0, [_B, _Tag, _CMDo, _CA2, _EBO], [[0, 1], [() => Tagging$, { [_hP]: 1, [_xN]: _Tag }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var PutBucketVersioningRequest$ = [ 3, n05, _PBVR, 0, [_B, _VC, _CMDo, _CA2, _MFA, _EBO], [[0, 1], [() => VersioningConfiguration$, { [_hP]: 1, [_xN]: _VC }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xam_ }], [0, { [_hH2]: _xaebo }]], 2 ]; var PutBucketWebsiteRequest$ = [ 3, n05, _PBWR, 0, [_B, _WC, _CMDo, _CA2, _EBO], [[0, 1], [() => WebsiteConfiguration$, { [_hP]: 1, [_xN]: _WC }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var PutObjectAclOutput$ = [ 3, n05, _POAO, 0, [_RC2], [[0, { [_hH2]: _xarc }]] ]; var PutObjectAclRequest$ = [ 3, n05, _POAR, 0, [_B, _K2, _ACL_, _ACP, _CMDo, _CA2, _GFC, _GR, _GRACP, _GW, _GWACP, _RP, _VI, _EBO], [[0, 1], [0, 1], [0, { [_hH2]: _xaa }], [() => AccessControlPolicy$, { [_hP]: 1, [_xN]: _ACP }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xagfc }], [0, { [_hH2]: _xagr }], [0, { [_hH2]: _xagra }], [0, { [_hH2]: _xagw }], [0, { [_hH2]: _xagwa }], [0, { [_hH2]: _xarp }], [0, { [_hQ2]: _vI }], [0, { [_hH2]: _xaebo }]], 2 ]; var PutObjectAnnotationOutput$ = [ 3, n05, _POAOu, 0, [_K2, _AN, _OVI, _ET, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _CT2, _SSE, _RC2], [0, 0, [0, { [_hH2]: _xaovi }], [0, { [_hH2]: _ET }], [0, { [_hH2]: _xacc }], [0, { [_hH2]: _xacc_ }], [0, { [_hH2]: _xacc__ }], [0, { [_hH2]: _xacs }], [0, { [_hH2]: _xacs_ }], [0, { [_hH2]: _xacs__ }], [0, { [_hH2]: _xacm }], [0, { [_hH2]: _xacx }], [0, { [_hH2]: _xacx_ }], [0, { [_hH2]: _xacx__ }], [0, { [_hH2]: _xact }], [0, { [_hH2]: _xasse }], [0, { [_hH2]: _xarc }]] ]; var PutObjectAnnotationRequest$ = [ 3, n05, _POARu, 0, [_B, _K2, _AN, _AP, _VI, _OIM, _CA2, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _CMDo, _RP, _EBO], [[0, 1], [0, 1], [0, { [_hQ2]: _aN }], [() => StreamingBlob, 16], [0, { [_hQ2]: _vI }], [0, { [_hH2]: _xaoim }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xacc }], [0, { [_hH2]: _xacc_ }], [0, { [_hH2]: _xacc__ }], [0, { [_hH2]: _xacs }], [0, { [_hH2]: _xacs_ }], [0, { [_hH2]: _xacs__ }], [0, { [_hH2]: _xacm }], [0, { [_hH2]: _xacx }], [0, { [_hH2]: _xacx_ }], [0, { [_hH2]: _xacx__ }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }]], 4 ]; var PutObjectLegalHoldOutput$ = [ 3, n05, _POLHO, 0, [_RC2], [[0, { [_hH2]: _xarc }]] ]; var PutObjectLegalHoldRequest$ = [ 3, n05, _POLHR, 0, [_B, _K2, _LH, _RP, _VI, _CMDo, _CA2, _EBO], [[0, 1], [0, 1], [() => ObjectLockLegalHold$, { [_hP]: 1, [_xN]: _LH }], [0, { [_hH2]: _xarp }], [0, { [_hQ2]: _vI }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var PutObjectLockConfigurationOutput$ = [ 3, n05, _POLCO, 0, [_RC2], [[0, { [_hH2]: _xarc }]] ]; var PutObjectLockConfigurationRequest$ = [ 3, n05, _POLCR, 0, [_B, _OLC, _RP, _To, _CMDo, _CA2, _EBO], [[0, 1], [() => ObjectLockConfiguration$, { [_hP]: 1, [_xN]: _OLC }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xabolt }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 1 ]; var PutObjectOutput$ = [ 3, n05, _POO, 0, [_Ex, _ET, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _CT2, _SSE, _VI, _SSECA, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _Si, _RC2], [[0, { [_hH2]: _xae }], [0, { [_hH2]: _ET }], [0, { [_hH2]: _xacc }], [0, { [_hH2]: _xacc_ }], [0, { [_hH2]: _xacc__ }], [0, { [_hH2]: _xacs }], [0, { [_hH2]: _xacs_ }], [0, { [_hH2]: _xacs__ }], [0, { [_hH2]: _xacm }], [0, { [_hH2]: _xacx }], [0, { [_hH2]: _xacx_ }], [0, { [_hH2]: _xacx__ }], [0, { [_hH2]: _xact }], [0, { [_hH2]: _xasse }], [0, { [_hH2]: _xavi }], [0, { [_hH2]: _xasseca }], [0, { [_hH2]: _xasseckM }], [() => SSEKMSKeyId, { [_hH2]: _xasseakki }], [() => SSEKMSEncryptionContext, { [_hH2]: _xassec }], [2, { [_hH2]: _xassebke }], [1, { [_hH2]: _xaos }], [0, { [_hH2]: _xarc }]] ]; var PutObjectRequest$ = [ 3, n05, _POR, 0, [_B, _K2, _ACL_, _Bo, _CC, _CDo, _CEo, _CL, _CLo, _CMDo, _CTo, _CA2, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _Exp, _IM, _INM, _GFC, _GR, _GRACP, _GWACP, _WOB, _M, _SSE, _SC, _WRL, _SSECA, _SSECK, _SSECKMD, _SSEKMSKI, _SSEKMSEC, _BKE, _RP, _Tag, _OLM, _OLRUD, _OLLHS, _OLEH, _OLEHDD, _OLEHDY, _EBO], [[0, 1], [0, 1], [0, { [_hH2]: _xaa }], [() => StreamingBlob, 16], [0, { [_hH2]: _CC_ }], [0, { [_hH2]: _CD_ }], [0, { [_hH2]: _CE_ }], [0, { [_hH2]: _CL_ }], [1, { [_hH2]: _CL__ }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _CT_ }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xacc }], [0, { [_hH2]: _xacc_ }], [0, { [_hH2]: _xacc__ }], [0, { [_hH2]: _xacs }], [0, { [_hH2]: _xacs_ }], [0, { [_hH2]: _xacs__ }], [0, { [_hH2]: _xacm }], [0, { [_hH2]: _xacx }], [0, { [_hH2]: _xacx_ }], [0, { [_hH2]: _xacx__ }], [4, { [_hH2]: _Exp }], [0, { [_hH2]: _IM_ }], [0, { [_hH2]: _INM_ }], [0, { [_hH2]: _xagfc }], [0, { [_hH2]: _xagr }], [0, { [_hH2]: _xagra }], [0, { [_hH2]: _xagwa }], [1, { [_hH2]: _xawob }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH2]: _xasse }], [0, { [_hH2]: _xasc }], [0, { [_hH2]: _xawrl }], [0, { [_hH2]: _xasseca }], [() => SSECustomerKey, { [_hH2]: _xasseck }], [0, { [_hH2]: _xasseckM }], [() => SSEKMSKeyId, { [_hH2]: _xasseakki }], [() => SSEKMSEncryptionContext, { [_hH2]: _xassec }], [2, { [_hH2]: _xassebke }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xat }], [0, { [_hH2]: _xaolm }], [5, { [_hH2]: _xaolrud }], [0, { [_hH2]: _xaollh }], [0, { [_hH2]: _xaoleh }], [1, { [_hH2]: _xaolehdd }], [1, { [_hH2]: _xaolehdy }], [0, { [_hH2]: _xaebo }]], 2 ]; var PutObjectRetentionOutput$ = [ 3, n05, _PORO, 0, [_RC2], [[0, { [_hH2]: _xarc }]] ]; var PutObjectRetentionRequest$ = [ 3, n05, _PORR, 0, [_B, _K2, _Ret, _RP, _VI, _BGR, _CMDo, _CA2, _EBO], [[0, 1], [0, 1], [() => ObjectLockRetention$, { [_hP]: 1, [_xN]: _Ret }], [0, { [_hH2]: _xarp }], [0, { [_hQ2]: _vI }], [2, { [_hH2]: _xabgr }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var PutObjectTaggingOutput$ = [ 3, n05, _POTO, 0, [_VI], [[0, { [_hH2]: _xavi }]] ]; var PutObjectTaggingRequest$ = [ 3, n05, _POTR, 0, [_B, _K2, _Tag, _VI, _CMDo, _CA2, _EBO, _RP], [[0, 1], [0, 1], [() => Tagging$, { [_hP]: 1, [_xN]: _Tag }], [0, { [_hQ2]: _vI }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xarp }]], 3 ]; var PutPublicAccessBlockRequest$ = [ 3, n05, _PPABR, 0, [_B, _PABC, _CMDo, _CA2, _EBO], [[0, 1], [() => PublicAccessBlockConfiguration$, { [_hP]: 1, [_xN]: _PABC }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var QueueConfiguration$ = [ 3, n05, _QCue, 0, [_QA, _Ev, _I, _F], [[0, { [_xN]: _Qu }], [64 | 0, { [_xF]: 1, [_xN]: _Eve }], 0, [() => NotificationConfigurationFilter$, 0]], 2 ]; var RecordExpiration$ = [ 3, n05, _REe, 0, [_Ex, _D], [0, 1], 1 ]; var RecordsEvent$ = [ 3, n05, _REec, 0, [_Payl], [[21, { [_eP]: 1 }]] ]; var Redirect$ = [ 3, n05, _Red, 0, [_HN, _HRC, _Pro, _RKPW, _RKW], [0, 0, 0, 0, 0] ]; var RedirectAllRequestsTo$ = [ 3, n05, _RART, 0, [_HN, _Pro], [0, 0], 1 ]; var RenameObjectOutput$ = [ 3, n05, _ROO, 0, [], [] ]; var RenameObjectRequest$ = [ 3, n05, _ROR, 0, [_B, _K2, _RSen, _DIM, _DINM, _DIMS, _DIUS, _SIM, _SINM, _SIMS, _SIUS, _CTl], [[0, 1], [0, 1], [0, { [_hH2]: _xars_ }], [0, { [_hH2]: _IM_ }], [0, { [_hH2]: _INM_ }], [4, { [_hH2]: _IMS_ }], [4, { [_hH2]: _IUS_ }], [0, { [_hH2]: _xarsim }], [0, { [_hH2]: _xarsinm }], [6, { [_hH2]: _xarsims }], [6, { [_hH2]: _xarsius }], [0, { [_hH2]: _xact_, [_iT3]: 1 }]], 3 ]; var ReplicaModifications$ = [ 3, n05, _RM, 0, [_S], [0], 1 ]; var ReplicationConfiguration$ = [ 3, n05, _RCe, 0, [_R, _Ru], [0, [() => ReplicationRules, { [_xF]: 1, [_xN]: _Rul }]], 2 ]; var ReplicationRule$ = [ 3, n05, _RRe, 0, [_S, _Des, _ID, _Pri, _P2, _F, _SSC, _EOR, _DMR], [0, () => Destination$, 0, 1, 0, [() => ReplicationRuleFilter$, 0], () => SourceSelectionCriteria$, () => ExistingObjectReplication$, () => DeleteMarkerReplication$], 2 ]; var ReplicationRuleAndOperator$ = [ 3, n05, _RRAO, 0, [_P2, _T2], [0, [() => TagSet, { [_xF]: 1, [_xN]: _Ta2 }]] ]; var ReplicationRuleFilter$ = [ 3, n05, _RRF, 0, [_P2, _Ta2, _An], [0, () => Tag$2, [() => ReplicationRuleAndOperator$, 0]] ]; var ReplicationTime$ = [ 3, n05, _RT3, 0, [_S, _Tim], [0, () => ReplicationTimeValue$], 2 ]; var ReplicationTimeValue$ = [ 3, n05, _RTV, 0, [_Mi], [1] ]; var RequestPaymentConfiguration$ = [ 3, n05, _RPC, 0, [_Pay], [0], 1 ]; var RequestProgress$ = [ 3, n05, _RPe, 0, [_Ena], [2] ]; var RestoreObjectOutput$ = [ 3, n05, _ROOe, 0, [_RC2, _ROP], [[0, { [_hH2]: _xarc }], [0, { [_hH2]: _xarop }]] ]; var RestoreObjectRequest$ = [ 3, n05, _RORe, 0, [_B, _K2, _VI, _RRes, _RP, _CA2, _EBO], [[0, 1], [0, 1], [0, { [_hQ2]: _vI }], [() => RestoreRequest$, { [_hP]: 1, [_xN]: _RRes }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var RestoreRequest$ = [ 3, n05, _RRes, 0, [_D, _GJP, _Ty, _Ti, _Desc, _SP, _OL], [1, () => GlacierJobParameters$, 0, 0, 0, () => SelectParameters$, [() => OutputLocation$, 0]] ]; var RestoreStatus$ = [ 3, n05, _RSe, 0, [_IRIP, _RED], [2, 4] ]; var RoutingRule$ = [ 3, n05, _RRo, 0, [_Red, _Co], [() => Redirect$, () => Condition$], 1 ]; var S3KeyFilter$ = [ 3, n05, _SKF, 0, [_FRi], [[() => FilterRuleList, { [_xF]: 1, [_xN]: _FR }]] ]; var S3Location$ = [ 3, n05, _SL, 0, [_BNu, _P2, _En, _CACL, _ACL, _Tag, _UM, _SC], [0, 0, [() => Encryption$, 0], 0, [() => Grants, 0], [() => Tagging$, 0], [() => UserMetadata, 0], 0], 2 ]; var S3TablesDestination$ = [ 3, n05, _STD, 0, [_TBA, _TN], [0, 0], 2 ]; var S3TablesDestinationResult$ = [ 3, n05, _STDR, 0, [_TBA, _TN, _TA, _TNa], [0, 0, 0, 0], 4 ]; var ScanRange$ = [ 3, n05, _SR, 0, [_St, _End], [1, 1] ]; var SelectObjectContentOutput$ = [ 3, n05, _SOCO, 0, [_Payl], [[() => SelectObjectContentEventStream$, 16]] ]; var SelectObjectContentRequest$ = [ 3, n05, _SOCR, 0, [_B, _K2, _Expr, _ETx, _IS, _OSu, _SSECA, _SSECK, _SSECKMD, _RPe, _SR, _EBO], [[0, 1], [0, 1], 0, 0, () => InputSerialization$, () => OutputSerialization$, [0, { [_hH2]: _xasseca }], [() => SSECustomerKey, { [_hH2]: _xasseck }], [0, { [_hH2]: _xasseckM }], () => RequestProgress$, () => ScanRange$, [0, { [_hH2]: _xaebo }]], 6 ]; var SelectParameters$ = [ 3, n05, _SP, 0, [_IS, _ETx, _Expr, _OSu], [() => InputSerialization$, 0, 0, () => OutputSerialization$], 4 ]; var ServerSideEncryptionByDefault$ = [ 3, n05, _SSEBD, 0, [_SSEA, _KMSMKID], [0, [() => SSEKMSKeyId, 0]], 1 ]; var ServerSideEncryptionConfiguration$ = [ 3, n05, _SSEC, 0, [_Ru], [[() => ServerSideEncryptionRules, { [_xF]: 1, [_xN]: _Rul }]], 1 ]; var ServerSideEncryptionRule$ = [ 3, n05, _SSER, 0, [_ASSEBD, _BKE, _BET], [[() => ServerSideEncryptionByDefault$, 0], 2, [() => BlockedEncryptionTypes$, 0]] ]; var SessionCredentials$ = [ 3, n05, _SCe, 0, [_AKI2, _SAK2, _ST2, _Ex], [[0, { [_xN]: _AKI2 }], [() => SessionCredentialValue, { [_xN]: _SAK2 }], [() => SessionCredentialValue, { [_xN]: _ST2 }], [4, { [_xN]: _Ex }]], 4 ]; var SimplePrefix$ = [ 3, n05, _SPi, { [_xN]: _SPi }, [], [] ]; var SourceSelectionCriteria$ = [ 3, n05, _SSC, 0, [_SKEO, _RM], [() => SseKmsEncryptedObjects$, () => ReplicaModifications$] ]; var SSEKMS$ = [ 3, n05, _SSEKMS, { [_xN]: _SK }, [_KI], [[() => SSEKMSKeyId, 0]], 1 ]; var SseKmsEncryptedObjects$ = [ 3, n05, _SKEO, 0, [_S], [0], 1 ]; var SSEKMSEncryption$ = [ 3, n05, _SSEKMSE, { [_xN]: _SK }, [_KMSKA, _BKE], [[() => NonEmptyKmsKeyArnString, 0], 2], 1 ]; var SSES3$ = [ 3, n05, _SSES, { [_xN]: _SS }, [], [] ]; var Stats$ = [ 3, n05, _Sta, 0, [_BS, _BP, _BRy], [1, 1, 1] ]; var StatsEvent$ = [ 3, n05, _SE, 0, [_Det], [[() => Stats$, { [_eP]: 1 }]] ]; var StorageClassAnalysis$ = [ 3, n05, _SCA, 0, [_DE], [() => StorageClassAnalysisDataExport$] ]; var StorageClassAnalysisDataExport$ = [ 3, n05, _SCADE, 0, [_OSV, _Des], [0, () => AnalyticsExportDestination$], 2 ]; var Tag$2 = [ 3, n05, _Ta2, 0, [_K2, _V2], [0, 0], 2 ]; var Tagging$ = [ 3, n05, _Tag, 0, [_TSa], [[() => TagSet, 0]], 1 ]; var TargetGrant$ = [ 3, n05, _TGa, 0, [_Gra, _Pe], [[() => Grantee$, { [_xNm]: [_x, _hi] }], 0] ]; var TargetObjectKeyFormat$ = [ 3, n05, _TOKF, 0, [_SPi, _PP], [[() => SimplePrefix$, { [_xN]: _SPi }], [() => PartitionedPrefix$, { [_xN]: _PP }]] ]; var Tiering$ = [ 3, n05, _Tier, 0, [_D, _AT3], [1, 0], 2 ]; var TopicConfiguration$ = [ 3, n05, _TCop, 0, [_TAo, _Ev, _I, _F], [[0, { [_xN]: _Top }], [64 | 0, { [_xF]: 1, [_xN]: _Eve }], 0, [() => NotificationConfigurationFilter$, 0]], 2 ]; var Transition$ = [ 3, n05, _Tra, 0, [_Da, _D, _SC], [5, 1, 0] ]; var UpdateBucketMetadataAnnotationTableConfigurationRequest$ = [ 3, n05, _UBMATCR, 0, [_B, _ATC, _CMDo, _CA2, _EBO], [[0, 1], [() => AnnotationTableConfigurationUpdates$, { [_hP]: 1, [_xN]: _ATC }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var UpdateBucketMetadataInventoryTableConfigurationRequest$ = [ 3, n05, _UBMITCR, 0, [_B, _ITCn, _CMDo, _CA2, _EBO], [[0, 1], [() => InventoryTableConfigurationUpdates$, { [_hP]: 1, [_xN]: _ITCn }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var UpdateBucketMetadataJournalTableConfigurationRequest$ = [ 3, n05, _UBMJTCR, 0, [_B, _JTC, _CMDo, _CA2, _EBO], [[0, 1], [() => JournalTableConfigurationUpdates$, { [_hP]: 1, [_xN]: _JTC }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xaebo }]], 2 ]; var UpdateObjectEncryptionRequest$ = [ 3, n05, _UOER, 0, [_B, _K2, _OE, _VI, _RP, _EBO, _CMDo, _CA2], [[0, 1], [0, 1], [() => ObjectEncryption$, 16], [0, { [_hQ2]: _vI }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }]], 3 ]; var UpdateObjectEncryptionResponse$ = [ 3, n05, _UOERp, 0, [_RC2], [[0, { [_hH2]: _xarc }]] ]; var UploadPartCopyOutput$ = [ 3, n05, _UPCO, 0, [_CSVI, _CPR, _SSE, _SSECA, _SSECKMD, _SSEKMSKI, _BKE, _RC2], [[0, { [_hH2]: _xacsvi }], [() => CopyPartResult$, 16], [0, { [_hH2]: _xasse }], [0, { [_hH2]: _xasseca }], [0, { [_hH2]: _xasseckM }], [() => SSEKMSKeyId, { [_hH2]: _xasseakki }], [2, { [_hH2]: _xassebke }], [0, { [_hH2]: _xarc }]] ]; var UploadPartCopyRequest$ = [ 3, n05, _UPCR, 0, [_B, _CSo, _K2, _PN, _UI, _CSIM, _CSIMS, _CSINM, _CSIUS, _CSRo, _SSECA, _SSECK, _SSECKMD, _CSSSECA, _CSSSECK, _CSSSECKMD, _RP, _EBO, _ESBO], [[0, 1], [0, { [_hH2]: _xacs___ }], [0, 1], [1, { [_hQ2]: _pN }], [0, { [_hQ2]: _uI }], [0, { [_hH2]: _xacsim }], [4, { [_hH2]: _xacsims }], [0, { [_hH2]: _xacsinm }], [4, { [_hH2]: _xacsius }], [0, { [_hH2]: _xacsr }], [0, { [_hH2]: _xasseca }], [() => SSECustomerKey, { [_hH2]: _xasseck }], [0, { [_hH2]: _xasseckM }], [0, { [_hH2]: _xacssseca }], [() => CopySourceSSECustomerKey, { [_hH2]: _xacssseck }], [0, { [_hH2]: _xacssseckM }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }], [0, { [_hH2]: _xasebo }]], 5 ]; var UploadPartOutput$ = [ 3, n05, _UPO, 0, [_SSE, _ET, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _SSECA, _SSECKMD, _SSEKMSKI, _BKE, _RC2], [[0, { [_hH2]: _xasse }], [0, { [_hH2]: _ET }], [0, { [_hH2]: _xacc }], [0, { [_hH2]: _xacc_ }], [0, { [_hH2]: _xacc__ }], [0, { [_hH2]: _xacs }], [0, { [_hH2]: _xacs_ }], [0, { [_hH2]: _xacs__ }], [0, { [_hH2]: _xacm }], [0, { [_hH2]: _xacx }], [0, { [_hH2]: _xacx_ }], [0, { [_hH2]: _xacx__ }], [0, { [_hH2]: _xasseca }], [0, { [_hH2]: _xasseckM }], [() => SSEKMSKeyId, { [_hH2]: _xasseakki }], [2, { [_hH2]: _xassebke }], [0, { [_hH2]: _xarc }]] ]; var UploadPartRequest$ = [ 3, n05, _UPR, 0, [_B, _K2, _PN, _UI, _Bo, _CLo, _CMDo, _CA2, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _SSECA, _SSECK, _SSECKMD, _RP, _EBO], [[0, 1], [0, 1], [1, { [_hQ2]: _pN }], [0, { [_hQ2]: _uI }], [() => StreamingBlob, 16], [1, { [_hH2]: _CL__ }], [0, { [_hH2]: _CM }], [0, { [_hH2]: _xasca }], [0, { [_hH2]: _xacc }], [0, { [_hH2]: _xacc_ }], [0, { [_hH2]: _xacc__ }], [0, { [_hH2]: _xacs }], [0, { [_hH2]: _xacs_ }], [0, { [_hH2]: _xacs__ }], [0, { [_hH2]: _xacm }], [0, { [_hH2]: _xacx }], [0, { [_hH2]: _xacx_ }], [0, { [_hH2]: _xacx__ }], [0, { [_hH2]: _xasseca }], [() => SSECustomerKey, { [_hH2]: _xasseck }], [0, { [_hH2]: _xasseckM }], [0, { [_hH2]: _xarp }], [0, { [_hH2]: _xaebo }]], 4 ]; var VersioningConfiguration$ = [ 3, n05, _VC, 0, [_MFAD, _S], [[0, { [_xN]: _MDf }], 0] ]; var WebsiteConfiguration$ = [ 3, n05, _WC, 0, [_EDr, _IDn, _RART, _RR], [() => ErrorDocument$, () => IndexDocument$, () => RedirectAllRequestsTo$, [() => RoutingRules, 0]] ]; var WriteGetObjectResponseRequest$ = [ 3, n05, _WGORR, 0, [_RReq, _RTe, _Bo, _SCt, _ECr, _EM, _AR2, _CC, _CDo, _CEo, _CL, _CLo, _CR, _CTo, _CCRC, _CCRCC, _CCRCNVME, _CSHA, _CSHAh, _CSHAhe, _CMD, _CXXHASH, _CXXHASHh, _CXXHASHhe, _DM, _ET, _Exp, _Ex, _LM, _MM, _M, _OLM, _OLLHS, _OLRUD, _PC2, _RS, _RC2, _Re, _SSE, _SSECA, _SSEKMSKI, _SSECKMD, _SC, _TC2, _VI, _BKE], [[0, { [_hL]: 1, [_hH2]: _xarr }], [0, { [_hH2]: _xart }], [() => StreamingBlob, 16], [1, { [_hH2]: _xafs }], [0, { [_hH2]: _xafec }], [0, { [_hH2]: _xafem }], [0, { [_hH2]: _xafhar }], [0, { [_hH2]: _xafhCC }], [0, { [_hH2]: _xafhCD }], [0, { [_hH2]: _xafhCE }], [0, { [_hH2]: _xafhCL }], [1, { [_hH2]: _CL__ }], [0, { [_hH2]: _xafhCR }], [0, { [_hH2]: _xafhCT }], [0, { [_hH2]: _xafhxacc }], [0, { [_hH2]: _xafhxacc_ }], [0, { [_hH2]: _xafhxacc__ }], [0, { [_hH2]: _xafhxacs }], [0, { [_hH2]: _xafhxacs_ }], [0, { [_hH2]: _xafhxacs__ }], [0, { [_hH2]: _xafhxacm }], [0, { [_hH2]: _xafhxacx }], [0, { [_hH2]: _xafhxacx_ }], [0, { [_hH2]: _xafhxacx__ }], [2, { [_hH2]: _xafhxadm }], [0, { [_hH2]: _xafhE }], [4, { [_hH2]: _xafhE_ }], [0, { [_hH2]: _xafhxae }], [4, { [_hH2]: _xafhLM }], [1, { [_hH2]: _xafhxamm }], [128 | 0, { [_hPH]: _xam }], [0, { [_hH2]: _xafhxaolm }], [0, { [_hH2]: _xafhxaollh }], [5, { [_hH2]: _xafhxaolrud }], [1, { [_hH2]: _xafhxampc }], [0, { [_hH2]: _xafhxars }], [0, { [_hH2]: _xafhxarc }], [0, { [_hH2]: _xafhxar }], [0, { [_hH2]: _xafhxasse }], [0, { [_hH2]: _xafhxasseca }], [() => SSEKMSKeyId, { [_hH2]: _xafhxasseakki }], [0, { [_hH2]: _xafhxasseckM }], [0, { [_hH2]: _xafhxasc }], [1, { [_hH2]: _xafhxatc }], [0, { [_hH2]: _xafhxavi }], [2, { [_hH2]: _xafhxassebke }]], 2 ]; var __Unit = "unit"; var AnalyticsConfigurationList = [ 1, n05, _ACLn, 0, [ () => AnalyticsConfiguration$, 0 ] ]; var AnnotationList = [ 1, n05, _AL, 0, [ () => AnnotationEntry$, { [_xN]: _AE } ] ]; var Buckets = [ 1, n05, _Bu, 0, [ () => Bucket$, { [_xN]: _B } ] ]; var CommonPrefixList = [ 1, n05, _CPL, 0, () => CommonPrefix$ ]; var CompletedPartList = [ 1, n05, _CPLo, 0, () => CompletedPart$ ]; var CORSRules = [ 1, n05, _CORSR, 0, [ () => CORSRule$, 0 ] ]; var DeletedObjects = [ 1, n05, _DOe, 0, () => DeletedObject$ ]; var DeleteMarkers = [ 1, n05, _DMe, 0, () => DeleteMarkerEntry$ ]; var EncryptionTypeList = [ 1, n05, _ETL, 0, [ 0, { [_xN]: _ETn } ] ]; var Errors = [ 1, n05, _Er, 0, () => _Error$ ]; var FilterRuleList = [ 1, n05, _FRL, 0, () => FilterRule$ ]; var Grants = [ 1, n05, _G, 0, [ () => Grant$, { [_xN]: _Gr } ] ]; var IntelligentTieringConfigurationList = [ 1, n05, _ITCL, 0, [ () => IntelligentTieringConfiguration$, 0 ] ]; var InventoryConfigurationList = [ 1, n05, _ICL, 0, [ () => InventoryConfiguration$, 0 ] ]; var InventoryOptionalFields = [ 1, n05, _IOF, 0, [ 0, { [_xN]: _Fi } ] ]; var LambdaFunctionConfigurationList = [ 1, n05, _LFCL, 0, [ () => LambdaFunctionConfiguration$, 0 ] ]; var LifecycleRules = [ 1, n05, _LRi, 0, [ () => LifecycleRule$, 0 ] ]; var MetricsConfigurationList = [ 1, n05, _MCL, 0, [ () => MetricsConfiguration$, 0 ] ]; var MultipartUploadList = [ 1, n05, _MUL, 0, () => MultipartUpload$ ]; var NoncurrentVersionTransitionList = [ 1, n05, _NVTL, 0, () => NoncurrentVersionTransition$ ]; var ObjectIdentifierList = [ 1, n05, _OIL, 0, () => ObjectIdentifier$ ]; var ObjectList = [ 1, n05, _OLb, 0, [ () => _Object$, 0 ] ]; var ObjectVersionList = [ 1, n05, _OVL, 0, [ () => ObjectVersion$, 0 ] ]; var OwnershipControlsRules = [ 1, n05, _OCRw, 0, () => OwnershipControlsRule$ ]; var Parts = [ 1, n05, _Pa, 0, () => Part$ ]; var PartsList = [ 1, n05, _PL, 0, () => ObjectPart$ ]; var QueueConfigurationList = [ 1, n05, _QCL, 0, [ () => QueueConfiguration$, 0 ] ]; var ReplicationRules = [ 1, n05, _RRep, 0, [ () => ReplicationRule$, 0 ] ]; var RoutingRules = [ 1, n05, _RR, 0, [ () => RoutingRule$, { [_xN]: _RRo } ] ]; var ServerSideEncryptionRules = [ 1, n05, _SSERe, 0, [ () => ServerSideEncryptionRule$, 0 ] ]; var TagSet = [ 1, n05, _TSa, 0, [ () => Tag$2, { [_xN]: _Ta2 } ] ]; var TargetGrants = [ 1, n05, _TG, 0, [ () => TargetGrant$, { [_xN]: _Gr } ] ]; var TieringList = [ 1, n05, _TL, 0, () => Tiering$ ]; var TopicConfigurationList = [ 1, n05, _TCL, 0, [ () => TopicConfiguration$, 0 ] ]; var TransitionList = [ 1, n05, _TLr, 0, () => Transition$ ]; var UserMetadata = [ 1, n05, _UM, 0, [ () => MetadataEntry$, { [_xN]: _ME } ] ]; var AnalyticsFilter$ = [ 4, n05, _AF, 0, [_P2, _Ta2, _An], [0, () => Tag$2, [() => AnalyticsAndOperator$, 0]] ]; var MetricsFilter$ = [ 4, n05, _MF, 0, [_P2, _Ta2, _APAc, _An], [0, () => Tag$2, 0, [() => MetricsAndOperator$, 0]] ]; var ObjectEncryption$ = [ 4, n05, _OE, 0, [_SSEKMS], [[() => SSEKMSEncryption$, { [_xN]: _SK }]] ]; var SelectObjectContentEventStream$ = [ 4, n05, _SOCES, { [_st]: 1 }, [_Rec, _Sta, _Pr2, _Cont, _End], [[() => RecordsEvent$, 0], [() => StatsEvent$, 0], [() => ProgressEvent$, 0], () => ContinuationEvent$, () => EndEvent$] ]; var AbortMultipartUpload$ = [ 9, n05, _AMU, { [_h4]: ["DELETE", "/{Key+}?x-id=AbortMultipartUpload", 204] }, () => AbortMultipartUploadRequest$, () => AbortMultipartUploadOutput$ ]; var CompleteMultipartUpload$ = [ 9, n05, _CMUo, { [_h4]: ["POST", "/{Key+}", 200] }, () => CompleteMultipartUploadRequest$, () => CompleteMultipartUploadOutput$ ]; var CopyObject$ = [ 9, n05, _CO, { [_h4]: ["PUT", "/{Key+}?x-id=CopyObject", 200] }, () => CopyObjectRequest$, () => CopyObjectOutput$ ]; var CreateBucket$ = [ 9, n05, _CB, { [_h4]: ["PUT", "/", 200] }, () => CreateBucketRequest$, () => CreateBucketOutput$ ]; var CreateBucketMetadataConfiguration$ = [ 9, n05, _CBMC, { [_hC]: "-", [_h4]: ["POST", "/?metadataConfiguration", 200] }, () => CreateBucketMetadataConfigurationRequest$, () => __Unit ]; var CreateBucketMetadataTableConfiguration$ = [ 9, n05, _CBMTC, { [_hC]: "-", [_h4]: ["POST", "/?metadataTable", 200] }, () => CreateBucketMetadataTableConfigurationRequest$, () => __Unit ]; var CreateMultipartUpload$ = [ 9, n05, _CMUr, { [_h4]: ["POST", "/{Key+}?uploads", 200] }, () => CreateMultipartUploadRequest$, () => CreateMultipartUploadOutput$ ]; var CreateSession$ = [ 9, n05, _CSr, { [_h4]: ["GET", "/?session", 200] }, () => CreateSessionRequest$, () => CreateSessionOutput$ ]; var DeleteBucket$ = [ 9, n05, _DB, { [_h4]: ["DELETE", "/", 204] }, () => DeleteBucketRequest$, () => __Unit ]; var DeleteBucketAnalyticsConfiguration$ = [ 9, n05, _DBAC, { [_h4]: ["DELETE", "/?analytics", 204] }, () => DeleteBucketAnalyticsConfigurationRequest$, () => __Unit ]; var DeleteBucketCors$ = [ 9, n05, _DBC, { [_h4]: ["DELETE", "/?cors", 204] }, () => DeleteBucketCorsRequest$, () => __Unit ]; var DeleteBucketEncryption$ = [ 9, n05, _DBE, { [_h4]: ["DELETE", "/?encryption", 204] }, () => DeleteBucketEncryptionRequest$, () => __Unit ]; var DeleteBucketIntelligentTieringConfiguration$ = [ 9, n05, _DBITC, { [_h4]: ["DELETE", "/?intelligent-tiering", 204] }, () => DeleteBucketIntelligentTieringConfigurationRequest$, () => __Unit ]; var DeleteBucketInventoryConfiguration$ = [ 9, n05, _DBIC, { [_h4]: ["DELETE", "/?inventory", 204] }, () => DeleteBucketInventoryConfigurationRequest$, () => __Unit ]; var DeleteBucketLifecycle$ = [ 9, n05, _DBL, { [_h4]: ["DELETE", "/?lifecycle", 204] }, () => DeleteBucketLifecycleRequest$, () => __Unit ]; var DeleteBucketMetadataConfiguration$ = [ 9, n05, _DBMC, { [_h4]: ["DELETE", "/?metadataConfiguration", 204] }, () => DeleteBucketMetadataConfigurationRequest$, () => __Unit ]; var DeleteBucketMetadataTableConfiguration$ = [ 9, n05, _DBMTC, { [_h4]: ["DELETE", "/?metadataTable", 204] }, () => DeleteBucketMetadataTableConfigurationRequest$, () => __Unit ]; var DeleteBucketMetricsConfiguration$ = [ 9, n05, _DBMCe, { [_h4]: ["DELETE", "/?metrics", 204] }, () => DeleteBucketMetricsConfigurationRequest$, () => __Unit ]; var DeleteBucketOwnershipControls$ = [ 9, n05, _DBOC, { [_h4]: ["DELETE", "/?ownershipControls", 204] }, () => DeleteBucketOwnershipControlsRequest$, () => __Unit ]; var DeleteBucketPolicy$ = [ 9, n05, _DBP, { [_h4]: ["DELETE", "/?policy", 204] }, () => DeleteBucketPolicyRequest$, () => __Unit ]; var DeleteBucketReplication$ = [ 9, n05, _DBRe, { [_h4]: ["DELETE", "/?replication", 204] }, () => DeleteBucketReplicationRequest$, () => __Unit ]; var DeleteBucketTagging$ = [ 9, n05, _DBT, { [_h4]: ["DELETE", "/?tagging", 204] }, () => DeleteBucketTaggingRequest$, () => __Unit ]; var DeleteBucketWebsite$ = [ 9, n05, _DBW, { [_h4]: ["DELETE", "/?website", 204] }, () => DeleteBucketWebsiteRequest$, () => __Unit ]; var DeleteObject$ = [ 9, n05, _DOel, { [_h4]: ["DELETE", "/{Key+}?x-id=DeleteObject", 204] }, () => DeleteObjectRequest$, () => DeleteObjectOutput$ ]; var DeleteObjectAnnotation$ = [ 9, n05, _DOA, { [_h4]: ["DELETE", "/{Key+}?annotation", 204] }, () => DeleteObjectAnnotationRequest$, () => DeleteObjectAnnotationOutput$ ]; var DeleteObjects$ = [ 9, n05, _DOele, { [_hC]: "-", [_h4]: ["POST", "/?delete", 200] }, () => DeleteObjectsRequest$, () => DeleteObjectsOutput$ ]; var DeleteObjectTagging$ = [ 9, n05, _DOT, { [_h4]: ["DELETE", "/{Key+}?tagging", 204] }, () => DeleteObjectTaggingRequest$, () => DeleteObjectTaggingOutput$ ]; var DeletePublicAccessBlock$ = [ 9, n05, _DPAB, { [_h4]: ["DELETE", "/?publicAccessBlock", 204] }, () => DeletePublicAccessBlockRequest$, () => __Unit ]; var GetBucketAbac$ = [ 9, n05, _GBA, { [_h4]: ["GET", "/?abac", 200] }, () => GetBucketAbacRequest$, () => GetBucketAbacOutput$ ]; var GetBucketAccelerateConfiguration$ = [ 9, n05, _GBAC, { [_h4]: ["GET", "/?accelerate", 200] }, () => GetBucketAccelerateConfigurationRequest$, () => GetBucketAccelerateConfigurationOutput$ ]; var GetBucketAcl$ = [ 9, n05, _GBAe, { [_h4]: ["GET", "/?acl", 200] }, () => GetBucketAclRequest$, () => GetBucketAclOutput$ ]; var GetBucketAnalyticsConfiguration$ = [ 9, n05, _GBACe, { [_h4]: ["GET", "/?analytics&x-id=GetBucketAnalyticsConfiguration", 200] }, () => GetBucketAnalyticsConfigurationRequest$, () => GetBucketAnalyticsConfigurationOutput$ ]; var GetBucketCors$ = [ 9, n05, _GBC, { [_h4]: ["GET", "/?cors", 200] }, () => GetBucketCorsRequest$, () => GetBucketCorsOutput$ ]; var GetBucketEncryption$ = [ 9, n05, _GBE, { [_h4]: ["GET", "/?encryption", 200] }, () => GetBucketEncryptionRequest$, () => GetBucketEncryptionOutput$ ]; var GetBucketIntelligentTieringConfiguration$ = [ 9, n05, _GBITC, { [_h4]: ["GET", "/?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration", 200] }, () => GetBucketIntelligentTieringConfigurationRequest$, () => GetBucketIntelligentTieringConfigurationOutput$ ]; var GetBucketInventoryConfiguration$ = [ 9, n05, _GBIC, { [_h4]: ["GET", "/?inventory&x-id=GetBucketInventoryConfiguration", 200] }, () => GetBucketInventoryConfigurationRequest$, () => GetBucketInventoryConfigurationOutput$ ]; var GetBucketLifecycleConfiguration$ = [ 9, n05, _GBLC, { [_h4]: ["GET", "/?lifecycle", 200] }, () => GetBucketLifecycleConfigurationRequest$, () => GetBucketLifecycleConfigurationOutput$ ]; var GetBucketLocation$ = [ 9, n05, _GBL, { [_h4]: ["GET", "/?location", 200] }, () => GetBucketLocationRequest$, () => GetBucketLocationOutput$ ]; var GetBucketLogging$ = [ 9, n05, _GBLe, { [_h4]: ["GET", "/?logging", 200] }, () => GetBucketLoggingRequest$, () => GetBucketLoggingOutput$ ]; var GetBucketMetadataConfiguration$ = [ 9, n05, _GBMC, { [_h4]: ["GET", "/?metadataConfiguration", 200] }, () => GetBucketMetadataConfigurationRequest$, () => GetBucketMetadataConfigurationOutput$ ]; var GetBucketMetadataTableConfiguration$ = [ 9, n05, _GBMTC, { [_h4]: ["GET", "/?metadataTable", 200] }, () => GetBucketMetadataTableConfigurationRequest$, () => GetBucketMetadataTableConfigurationOutput$ ]; var GetBucketMetricsConfiguration$ = [ 9, n05, _GBMCe, { [_h4]: ["GET", "/?metrics&x-id=GetBucketMetricsConfiguration", 200] }, () => GetBucketMetricsConfigurationRequest$, () => GetBucketMetricsConfigurationOutput$ ]; var GetBucketNotificationConfiguration$ = [ 9, n05, _GBNC, { [_h4]: ["GET", "/?notification", 200] }, () => GetBucketNotificationConfigurationRequest$, () => NotificationConfiguration$ ]; var GetBucketOwnershipControls$ = [ 9, n05, _GBOC, { [_h4]: ["GET", "/?ownershipControls", 200] }, () => GetBucketOwnershipControlsRequest$, () => GetBucketOwnershipControlsOutput$ ]; var GetBucketPolicy$ = [ 9, n05, _GBP, { [_h4]: ["GET", "/?policy", 200] }, () => GetBucketPolicyRequest$, () => GetBucketPolicyOutput$ ]; var GetBucketPolicyStatus$ = [ 9, n05, _GBPS, { [_h4]: ["GET", "/?policyStatus", 200] }, () => GetBucketPolicyStatusRequest$, () => GetBucketPolicyStatusOutput$ ]; var GetBucketReplication$ = [ 9, n05, _GBR, { [_h4]: ["GET", "/?replication", 200] }, () => GetBucketReplicationRequest$, () => GetBucketReplicationOutput$ ]; var GetBucketRequestPayment$ = [ 9, n05, _GBRP, { [_h4]: ["GET", "/?requestPayment", 200] }, () => GetBucketRequestPaymentRequest$, () => GetBucketRequestPaymentOutput$ ]; var GetBucketTagging$ = [ 9, n05, _GBT, { [_h4]: ["GET", "/?tagging", 200] }, () => GetBucketTaggingRequest$, () => GetBucketTaggingOutput$ ]; var GetBucketVersioning$ = [ 9, n05, _GBV, { [_h4]: ["GET", "/?versioning", 200] }, () => GetBucketVersioningRequest$, () => GetBucketVersioningOutput$ ]; var GetBucketWebsite$ = [ 9, n05, _GBW, { [_h4]: ["GET", "/?website", 200] }, () => GetBucketWebsiteRequest$, () => GetBucketWebsiteOutput$ ]; var GetObject$ = [ 9, n05, _GO, { [_hC]: "-", [_h4]: ["GET", "/{Key+}?x-id=GetObject", 200] }, () => GetObjectRequest$, () => GetObjectOutput$ ]; var GetObjectAcl$ = [ 9, n05, _GOA, { [_h4]: ["GET", "/{Key+}?acl", 200] }, () => GetObjectAclRequest$, () => GetObjectAclOutput$ ]; var GetObjectAnnotation$ = [ 9, n05, _GOAe, { [_hC]: "-", [_h4]: ["GET", "/{Key+}?annotation&x-id=GetObjectAnnotation", 200] }, () => GetObjectAnnotationRequest$, () => GetObjectAnnotationOutput$ ]; var GetObjectAttributes$ = [ 9, n05, _GOAet, { [_h4]: ["GET", "/{Key+}?attributes", 200] }, () => GetObjectAttributesRequest$, () => GetObjectAttributesOutput$ ]; var GetObjectLegalHold$ = [ 9, n05, _GOLH, { [_h4]: ["GET", "/{Key+}?legal-hold", 200] }, () => GetObjectLegalHoldRequest$, () => GetObjectLegalHoldOutput$ ]; var GetObjectLockConfiguration$ = [ 9, n05, _GOLC, { [_h4]: ["GET", "/?object-lock", 200] }, () => GetObjectLockConfigurationRequest$, () => GetObjectLockConfigurationOutput$ ]; var GetObjectRetention$ = [ 9, n05, _GORe, { [_h4]: ["GET", "/{Key+}?retention", 200] }, () => GetObjectRetentionRequest$, () => GetObjectRetentionOutput$ ]; var GetObjectTagging$ = [ 9, n05, _GOT, { [_h4]: ["GET", "/{Key+}?tagging", 200] }, () => GetObjectTaggingRequest$, () => GetObjectTaggingOutput$ ]; var GetObjectTorrent$ = [ 9, n05, _GOTe, { [_h4]: ["GET", "/{Key+}?torrent", 200] }, () => GetObjectTorrentRequest$, () => GetObjectTorrentOutput$ ]; var GetPublicAccessBlock$ = [ 9, n05, _GPAB, { [_h4]: ["GET", "/?publicAccessBlock", 200] }, () => GetPublicAccessBlockRequest$, () => GetPublicAccessBlockOutput$ ]; var HeadBucket$ = [ 9, n05, _HB, { [_h4]: ["HEAD", "/", 200] }, () => HeadBucketRequest$, () => HeadBucketOutput$ ]; var HeadObject$ = [ 9, n05, _HO, { [_h4]: ["HEAD", "/{Key+}", 200] }, () => HeadObjectRequest$, () => HeadObjectOutput$ ]; var ListBucketAnalyticsConfigurations$ = [ 9, n05, _LBAC, { [_h4]: ["GET", "/?analytics&x-id=ListBucketAnalyticsConfigurations", 200] }, () => ListBucketAnalyticsConfigurationsRequest$, () => ListBucketAnalyticsConfigurationsOutput$ ]; var ListBucketIntelligentTieringConfigurations$ = [ 9, n05, _LBITC, { [_h4]: ["GET", "/?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations", 200] }, () => ListBucketIntelligentTieringConfigurationsRequest$, () => ListBucketIntelligentTieringConfigurationsOutput$ ]; var ListBucketInventoryConfigurations$ = [ 9, n05, _LBIC, { [_h4]: ["GET", "/?inventory&x-id=ListBucketInventoryConfigurations", 200] }, () => ListBucketInventoryConfigurationsRequest$, () => ListBucketInventoryConfigurationsOutput$ ]; var ListBucketMetricsConfigurations$ = [ 9, n05, _LBMC, { [_h4]: ["GET", "/?metrics&x-id=ListBucketMetricsConfigurations", 200] }, () => ListBucketMetricsConfigurationsRequest$, () => ListBucketMetricsConfigurationsOutput$ ]; var ListBuckets$ = [ 9, n05, _LB, { [_h4]: ["GET", "/?x-id=ListBuckets", 200] }, () => ListBucketsRequest$, () => ListBucketsOutput$ ]; var ListDirectoryBuckets$ = [ 9, n05, _LDB, { [_h4]: ["GET", "/?x-id=ListDirectoryBuckets", 200] }, () => ListDirectoryBucketsRequest$, () => ListDirectoryBucketsOutput$ ]; var ListMultipartUploads$ = [ 9, n05, _LMU, { [_h4]: ["GET", "/?uploads", 200] }, () => ListMultipartUploadsRequest$, () => ListMultipartUploadsOutput$ ]; var ListObjectAnnotations$ = [ 9, n05, _LOA, { [_h4]: ["GET", "/{Key+}?annotation&x-id=ListObjectAnnotations", 200] }, () => ListObjectAnnotationsRequest$, () => ListObjectAnnotationsOutput$ ]; var ListObjects$ = [ 9, n05, _LO, { [_h4]: ["GET", "/", 200] }, () => ListObjectsRequest$, () => ListObjectsOutput$ ]; var ListObjectsV2$ = [ 9, n05, _LOV, { [_h4]: ["GET", "/?list-type=2", 200] }, () => ListObjectsV2Request$, () => ListObjectsV2Output$ ]; var ListObjectVersions$ = [ 9, n05, _LOVi, { [_h4]: ["GET", "/?versions", 200] }, () => ListObjectVersionsRequest$, () => ListObjectVersionsOutput$ ]; var ListParts$ = [ 9, n05, _LP, { [_h4]: ["GET", "/{Key+}?x-id=ListParts", 200] }, () => ListPartsRequest$, () => ListPartsOutput$ ]; var PutBucketAbac$ = [ 9, n05, _PBA, { [_hC]: "-", [_h4]: ["PUT", "/?abac", 200] }, () => PutBucketAbacRequest$, () => __Unit ]; var PutBucketAccelerateConfiguration$ = [ 9, n05, _PBAC, { [_hC]: "-", [_h4]: ["PUT", "/?accelerate", 200] }, () => PutBucketAccelerateConfigurationRequest$, () => __Unit ]; var PutBucketAcl$ = [ 9, n05, _PBAu, { [_hC]: "-", [_h4]: ["PUT", "/?acl", 200] }, () => PutBucketAclRequest$, () => __Unit ]; var PutBucketAnalyticsConfiguration$ = [ 9, n05, _PBACu, { [_h4]: ["PUT", "/?analytics", 200] }, () => PutBucketAnalyticsConfigurationRequest$, () => __Unit ]; var PutBucketCors$ = [ 9, n05, _PBC, { [_hC]: "-", [_h4]: ["PUT", "/?cors", 200] }, () => PutBucketCorsRequest$, () => __Unit ]; var PutBucketEncryption$ = [ 9, n05, _PBE, { [_hC]: "-", [_h4]: ["PUT", "/?encryption", 200] }, () => PutBucketEncryptionRequest$, () => __Unit ]; var PutBucketIntelligentTieringConfiguration$ = [ 9, n05, _PBITC, { [_h4]: ["PUT", "/?intelligent-tiering", 200] }, () => PutBucketIntelligentTieringConfigurationRequest$, () => __Unit ]; var PutBucketInventoryConfiguration$ = [ 9, n05, _PBIC, { [_h4]: ["PUT", "/?inventory", 200] }, () => PutBucketInventoryConfigurationRequest$, () => __Unit ]; var PutBucketLifecycleConfiguration$ = [ 9, n05, _PBLC, { [_hC]: "-", [_h4]: ["PUT", "/?lifecycle", 200] }, () => PutBucketLifecycleConfigurationRequest$, () => PutBucketLifecycleConfigurationOutput$ ]; var PutBucketLogging$ = [ 9, n05, _PBL, { [_hC]: "-", [_h4]: ["PUT", "/?logging", 200] }, () => PutBucketLoggingRequest$, () => __Unit ]; var PutBucketMetricsConfiguration$ = [ 9, n05, _PBMC, { [_h4]: ["PUT", "/?metrics", 200] }, () => PutBucketMetricsConfigurationRequest$, () => __Unit ]; var PutBucketNotificationConfiguration$ = [ 9, n05, _PBNC, { [_h4]: ["PUT", "/?notification", 200] }, () => PutBucketNotificationConfigurationRequest$, () => __Unit ]; var PutBucketOwnershipControls$ = [ 9, n05, _PBOC, { [_hC]: "-", [_h4]: ["PUT", "/?ownershipControls", 200] }, () => PutBucketOwnershipControlsRequest$, () => __Unit ]; var PutBucketPolicy$ = [ 9, n05, _PBP, { [_hC]: "-", [_h4]: ["PUT", "/?policy", 200] }, () => PutBucketPolicyRequest$, () => __Unit ]; var PutBucketReplication$ = [ 9, n05, _PBR, { [_hC]: "-", [_h4]: ["PUT", "/?replication", 200] }, () => PutBucketReplicationRequest$, () => __Unit ]; var PutBucketRequestPayment$ = [ 9, n05, _PBRP, { [_hC]: "-", [_h4]: ["PUT", "/?requestPayment", 200] }, () => PutBucketRequestPaymentRequest$, () => __Unit ]; var PutBucketTagging$ = [ 9, n05, _PBT, { [_hC]: "-", [_h4]: ["PUT", "/?tagging", 200] }, () => PutBucketTaggingRequest$, () => __Unit ]; var PutBucketVersioning$ = [ 9, n05, _PBV, { [_hC]: "-", [_h4]: ["PUT", "/?versioning", 200] }, () => PutBucketVersioningRequest$, () => __Unit ]; var PutBucketWebsite$ = [ 9, n05, _PBW, { [_hC]: "-", [_h4]: ["PUT", "/?website", 200] }, () => PutBucketWebsiteRequest$, () => __Unit ]; var PutObject$ = [ 9, n05, _PO, { [_hC]: "-", [_h4]: ["PUT", "/{Key+}?x-id=PutObject", 200] }, () => PutObjectRequest$, () => PutObjectOutput$ ]; var PutObjectAcl$ = [ 9, n05, _POA, { [_hC]: "-", [_h4]: ["PUT", "/{Key+}?acl", 200] }, () => PutObjectAclRequest$, () => PutObjectAclOutput$ ]; var PutObjectAnnotation$ = [ 9, n05, _POAu, { [_hC]: "-", [_h4]: ["PUT", "/{Key+}?annotation", 200] }, () => PutObjectAnnotationRequest$, () => PutObjectAnnotationOutput$ ]; var PutObjectLegalHold$ = [ 9, n05, _POLH, { [_hC]: "-", [_h4]: ["PUT", "/{Key+}?legal-hold", 200] }, () => PutObjectLegalHoldRequest$, () => PutObjectLegalHoldOutput$ ]; var PutObjectLockConfiguration$ = [ 9, n05, _POLC, { [_hC]: "-", [_h4]: ["PUT", "/?object-lock", 200] }, () => PutObjectLockConfigurationRequest$, () => PutObjectLockConfigurationOutput$ ]; var PutObjectRetention$ = [ 9, n05, _PORu, { [_hC]: "-", [_h4]: ["PUT", "/{Key+}?retention", 200] }, () => PutObjectRetentionRequest$, () => PutObjectRetentionOutput$ ]; var PutObjectTagging$ = [ 9, n05, _POT, { [_hC]: "-", [_h4]: ["PUT", "/{Key+}?tagging", 200] }, () => PutObjectTaggingRequest$, () => PutObjectTaggingOutput$ ]; var PutPublicAccessBlock$ = [ 9, n05, _PPAB, { [_hC]: "-", [_h4]: ["PUT", "/?publicAccessBlock", 200] }, () => PutPublicAccessBlockRequest$, () => __Unit ]; var RenameObject$ = [ 9, n05, _RO, { [_h4]: ["PUT", "/{Key+}?renameObject", 200] }, () => RenameObjectRequest$, () => RenameObjectOutput$ ]; var RestoreObject$ = [ 9, n05, _ROe, { [_hC]: "-", [_h4]: ["POST", "/{Key+}?restore", 200] }, () => RestoreObjectRequest$, () => RestoreObjectOutput$ ]; var SelectObjectContent$ = [ 9, n05, _SOC, { [_h4]: ["POST", "/{Key+}?select&select-type=2", 200] }, () => SelectObjectContentRequest$, () => SelectObjectContentOutput$ ]; var UpdateBucketMetadataAnnotationTableConfiguration$ = [ 9, n05, _UBMATC, { [_hC]: "-", [_h4]: ["PUT", "/?metadataAnnotationTable", 200] }, () => UpdateBucketMetadataAnnotationTableConfigurationRequest$, () => __Unit ]; var UpdateBucketMetadataInventoryTableConfiguration$ = [ 9, n05, _UBMITC, { [_hC]: "-", [_h4]: ["PUT", "/?metadataInventoryTable", 200] }, () => UpdateBucketMetadataInventoryTableConfigurationRequest$, () => __Unit ]; var UpdateBucketMetadataJournalTableConfiguration$ = [ 9, n05, _UBMJTC, { [_hC]: "-", [_h4]: ["PUT", "/?metadataJournalTable", 200] }, () => UpdateBucketMetadataJournalTableConfigurationRequest$, () => __Unit ]; var UpdateObjectEncryption$ = [ 9, n05, _UOE, { [_hC]: "-", [_h4]: ["PUT", "/{Key+}?encryption", 200] }, () => UpdateObjectEncryptionRequest$, () => UpdateObjectEncryptionResponse$ ]; var UploadPart$ = [ 9, n05, _UP, { [_hC]: "-", [_h4]: ["PUT", "/{Key+}?x-id=UploadPart", 200] }, () => UploadPartRequest$, () => UploadPartOutput$ ]; var UploadPartCopy$ = [ 9, n05, _UPC, { [_h4]: ["PUT", "/{Key+}?x-id=UploadPartCopy", 200] }, () => UploadPartCopyRequest$, () => UploadPartCopyOutput$ ]; var WriteGetObjectResponse$ = [ 9, n05, _WGOR, { [_en]: ["{RequestRoute}."], [_h4]: ["POST", "/WriteGetObjectResponse", 200] }, () => WriteGetObjectResponseRequest$, () => __Unit ]; var CreateSessionCommand = class extends command5(_ep4, _mw05, "CreateSession", CreateSession$) { static { __name(this, "CreateSessionCommand"); } }; var version2 = "3.1153.0"; var packageInfo = { version: version2 }; var getRuntimeConfig$1 = /* @__PURE__ */ __name((config3) => { return { apiVersion: "2006-03-01", base64Decoder: config3?.base64Decoder ?? fromBase642, base64Encoder: config3?.base64Encoder ?? toBase642, disableHostPrefix: config3?.disableHostPrefix ?? false, endpointProvider: config3?.endpointProvider ?? defaultEndpointResolver5, extensions: config3?.extensions ?? [], getAwsChunkedEncodingStream: config3?.getAwsChunkedEncodingStream ?? getAwsChunkedEncodingStream, httpAuthSchemeProvider: config3?.httpAuthSchemeProvider ?? defaultS3HttpAuthSchemeProvider, httpAuthSchemes: config3?.httpAuthSchemes ?? [ { schemeId: "aws.auth#sigv4", identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), "identityProvider"), signer: new AwsSdkSigV4Signer2() }, { schemeId: "aws.auth#sigv4a", identityProvider: /* @__PURE__ */ __name((ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"), "identityProvider"), signer: new AwsSdkSigV4ASigner2() } ], logger: config3?.logger ?? new NoOpLogger2(), md5: config3?.md5 ?? Md5, protocol: config3?.protocol ?? S3RestXmlProtocol2, protocolSettings: config3?.protocolSettings ?? { defaultNamespace: "com.amazonaws.s3", errorTypeRegistries: errorTypeRegistries5, xmlNamespace: "http://s3.amazonaws.com/doc/2006-03-01/", version: "2006-03-01", serviceTarget: "AmazonS3" }, sdkStreamMixin: config3?.sdkStreamMixin ?? sdkStreamMixin2, serviceId: config3?.serviceId ?? "S3", sha1: config3?.sha1 ?? Sha1, sha256: config3?.sha256 ?? Sha256, signerConstructor: config3?.signerConstructor ?? SignatureV4MultiRegion3, signingEscapePath: config3?.signingEscapePath ?? false, urlParser: config3?.urlParser ?? parseUrl2, useArnRegion: config3?.useArnRegion ?? void 0, utf8Decoder: config3?.utf8Decoder ?? fromUtf82, utf8Encoder: config3?.utf8Encoder ?? toUtf82 }; }, "getRuntimeConfig$1"); var getRuntimeConfig9 = /* @__PURE__ */ __name((config3) => { emitWarningIfUnsupportedVersion3(process.version); const defaultsMode = resolveDefaultsModeConfig2(config3); const defaultConfigProvider = /* @__PURE__ */ __name(() => defaultsMode().then(loadConfigsForDefaultMode2), "defaultConfigProvider"); const clientSharedValues = getRuntimeConfig$1(config3); emitWarningIfUnsupportedVersion$1(process.version); const loaderConfig = { profile: config3?.profile, logger: clientSharedValues.logger }; return { ...clientSharedValues, ...config3, runtime: "node", defaultsMode, authSchemePreference: config3?.authSchemePreference ?? loadConfig2(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS2, loaderConfig), bodyLengthChecker: config3?.bodyLengthChecker ?? calculateBodyLength2, credentialDefaultProvider: config3?.credentialDefaultProvider ?? defaultProvider, defaultUserAgentProvider: config3?.defaultUserAgentProvider ?? createDefaultUserAgentProvider2({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), disableS3ExpressSessionAuth: config3?.disableS3ExpressSessionAuth ?? loadConfig2(NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS2, loaderConfig), eventStreamSerdeProvider: config3?.eventStreamSerdeProvider ?? eventStreamSerdeProvider, maxAttempts: config3?.maxAttempts ?? loadConfig2(NODE_MAX_ATTEMPT_CONFIG_OPTIONS2, config3), region: config3?.region ?? loadConfig2(NODE_REGION_CONFIG_OPTIONS2, { ...NODE_REGION_CONFIG_FILE_OPTIONS2, ...loaderConfig }), requestChecksumCalculation: config3?.requestChecksumCalculation ?? loadConfig2(NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS2, loaderConfig), requestHandler: NodeHttpHandler.create(config3?.requestHandler ?? defaultConfigProvider), responseChecksumValidation: config3?.responseChecksumValidation ?? loadConfig2(NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS2, loaderConfig), retryMode: config3?.retryMode ?? loadConfig2({ ...NODE_RETRY_MODE_CONFIG_OPTIONS2, default: /* @__PURE__ */ __name(async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE2, "default") }, config3), sigv4aSigningRegionSet: config3?.sigv4aSigningRegionSet ?? loadConfig2(NODE_SIGV4A_CONFIG_OPTIONS2, loaderConfig), streamCollector: config3?.streamCollector ?? streamCollector5, streamHasher: config3?.streamHasher ?? readableStreamHasher, useArnRegion: config3?.useArnRegion ?? loadConfig2(NODE_USE_ARN_REGION_CONFIG_OPTIONS2, loaderConfig), useDualstackEndpoint: config3?.useDualstackEndpoint ?? loadConfig2(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS2, loaderConfig), useFipsEndpoint: config3?.useFipsEndpoint ?? loadConfig2(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS2, loaderConfig), userAgentAppId: config3?.userAgentAppId ?? loadConfig2(NODE_APP_ID_CONFIG_OPTIONS2, loaderConfig) }; }, "getRuntimeConfig"); var getHttpAuthExtensionConfiguration5 = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; return { setHttpAuthScheme(httpAuthScheme) { const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); if (index === -1) { _httpAuthSchemes.push(httpAuthScheme); } else { _httpAuthSchemes.splice(index, 1, httpAuthScheme); } }, httpAuthSchemes() { return _httpAuthSchemes; }, setHttpAuthSchemeProvider(httpAuthSchemeProvider) { _httpAuthSchemeProvider = httpAuthSchemeProvider; }, httpAuthSchemeProvider() { return _httpAuthSchemeProvider; }, setCredentials(credentials) { _credentials = credentials; }, credentials() { return _credentials; } }; }, "getHttpAuthExtensionConfiguration"); var resolveHttpAuthRuntimeConfig5 = /* @__PURE__ */ __name((config3) => { return { httpAuthSchemes: config3.httpAuthSchemes(), httpAuthSchemeProvider: config3.httpAuthSchemeProvider(), credentials: config3.credentials() }; }, "resolveHttpAuthRuntimeConfig"); var resolveRuntimeExtensions5 = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration2(runtimeConfig), getDefaultExtensionConfiguration2(runtimeConfig), getHttpHandlerExtensionConfiguration2(runtimeConfig), getHttpAuthExtensionConfiguration5(runtimeConfig)); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration2(extensionConfiguration), resolveDefaultRuntimeConfig2(extensionConfiguration), resolveHttpHandlerRuntimeConfig2(extensionConfiguration), resolveHttpAuthRuntimeConfig5(extensionConfiguration)); }, "resolveRuntimeExtensions"); var S3Client2 = class extends Client2 { static { __name(this, "S3Client"); } config; constructor(...[configuration]) { const _config_0 = getRuntimeConfig9(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters5(_config_0); const _config_2 = resolveUserAgentConfig2(_config_1); const _config_3 = resolveFlexibleChecksumsConfig2(_config_2); const _config_4 = resolveRetryConfig2(_config_3); const _config_5 = resolveRegionConfig2(_config_4); const _config_6 = resolveHostHeaderConfig2(_config_5); const _config_7 = resolveEndpointConfig2(_config_6); const _config_8 = resolveEventStreamSerdeConfig(_config_7); const _config_9 = resolveHttpAuthSchemeConfig5(_config_8); const _config_10 = resolveS3Config2(_config_9, { session: [() => this, CreateSessionCommand] }); const _config_11 = resolveRuntimeExtensions5(_config_10, configuration?.extensions || []); this.config = _config_11; this.middlewareStack.use(getSchemaSerdePlugin2(this.config)); this.middlewareStack.use(getUserAgentPlugin2(this.config)); this.middlewareStack.use(getRetryPlugin2(this.config)); this.middlewareStack.use(getContentLengthPlugin2(this.config)); this.middlewareStack.use(getHostHeaderPlugin2(this.config)); this.middlewareStack.use(getLoggerPlugin2(this.config)); this.middlewareStack.use(getRecursionDetectionPlugin2(this.config)); this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin2(this.config, { httpAuthSchemeParametersProvider: defaultS3HttpAuthSchemeParametersProvider, identityProviderConfigProvider: /* @__PURE__ */ __name(async (config3) => new DefaultIdentityProviderConfig2({ "aws.auth#sigv4": config3.credentials, "aws.auth#sigv4a": config3.credentials }), "identityProviderConfigProvider") })); this.middlewareStack.use(getHttpSigningPlugin2(this.config)); this.middlewareStack.use(getValidateBucketNamePlugin2(this.config)); this.middlewareStack.use(getAddExpectContinuePlugin2(this.config)); this.middlewareStack.use(getRegionRedirectMiddlewarePlugin2(this.config)); this.middlewareStack.use(getS3ExpressPlugin2(this.config)); this.middlewareStack.use(getS3ExpressHttpSigningPlugin2(this.config)); } destroy() { super.destroy(); } }; var AbortMultipartUploadCommand = class extends command5(_ep05, _mw05, "AbortMultipartUpload", AbortMultipartUpload$) { static { __name(this, "AbortMultipartUploadCommand"); } }; var CompleteMultipartUploadCommand = class extends command5(_ep05, _mw1, "CompleteMultipartUpload", CompleteMultipartUpload$) { static { __name(this, "CompleteMultipartUploadCommand"); } }; var CopyObjectCommand = class extends command5(_ep12, _mw1, "CopyObject", CopyObject$) { static { __name(this, "CopyObjectCommand"); } }; var CreateBucketCommand2 = class extends command5(_ep2, _mw2, "CreateBucket", CreateBucket$) { static { __name(this, "CreateBucketCommand"); } }; var CreateBucketMetadataConfigurationCommand = class extends command5(_ep3, _mw3, "CreateBucketMetadataConfiguration", CreateBucketMetadataConfiguration$) { static { __name(this, "CreateBucketMetadataConfigurationCommand"); } }; var CreateBucketMetadataTableConfigurationCommand = class extends command5(_ep3, _mw3, "CreateBucketMetadataTableConfiguration", CreateBucketMetadataTableConfiguration$) { static { __name(this, "CreateBucketMetadataTableConfigurationCommand"); } }; var CreateMultipartUploadCommand = class extends command5(_ep05, _mw1, "CreateMultipartUpload", CreateMultipartUpload$) { static { __name(this, "CreateMultipartUploadCommand"); } }; var DeleteBucketAnalyticsConfigurationCommand = class extends command5(_ep3, _mw4, "DeleteBucketAnalyticsConfiguration", DeleteBucketAnalyticsConfiguration$) { static { __name(this, "DeleteBucketAnalyticsConfigurationCommand"); } }; var DeleteBucketCommand = class extends command5(_ep3, _mw4, "DeleteBucket", DeleteBucket$) { static { __name(this, "DeleteBucketCommand"); } }; var DeleteBucketCorsCommand = class extends command5(_ep3, _mw4, "DeleteBucketCors", DeleteBucketCors$) { static { __name(this, "DeleteBucketCorsCommand"); } }; var DeleteBucketEncryptionCommand = class extends command5(_ep3, _mw4, "DeleteBucketEncryption", DeleteBucketEncryption$) { static { __name(this, "DeleteBucketEncryptionCommand"); } }; var DeleteBucketIntelligentTieringConfigurationCommand = class extends command5(_ep3, _mw4, "DeleteBucketIntelligentTieringConfiguration", DeleteBucketIntelligentTieringConfiguration$) { static { __name(this, "DeleteBucketIntelligentTieringConfigurationCommand"); } }; var DeleteBucketInventoryConfigurationCommand = class extends command5(_ep3, _mw4, "DeleteBucketInventoryConfiguration", DeleteBucketInventoryConfiguration$) { static { __name(this, "DeleteBucketInventoryConfigurationCommand"); } }; var DeleteBucketLifecycleCommand = class extends command5(_ep3, _mw4, "DeleteBucketLifecycle", DeleteBucketLifecycle$) { static { __name(this, "DeleteBucketLifecycleCommand"); } }; var DeleteBucketMetadataConfigurationCommand = class extends command5(_ep3, _mw4, "DeleteBucketMetadataConfiguration", DeleteBucketMetadataConfiguration$) { static { __name(this, "DeleteBucketMetadataConfigurationCommand"); } }; var DeleteBucketMetadataTableConfigurationCommand = class extends command5(_ep3, _mw4, "DeleteBucketMetadataTableConfiguration", DeleteBucketMetadataTableConfiguration$) { static { __name(this, "DeleteBucketMetadataTableConfigurationCommand"); } }; var DeleteBucketMetricsConfigurationCommand = class extends command5(_ep3, _mw4, "DeleteBucketMetricsConfiguration", DeleteBucketMetricsConfiguration$) { static { __name(this, "DeleteBucketMetricsConfigurationCommand"); } }; var DeleteBucketOwnershipControlsCommand = class extends command5(_ep3, _mw4, "DeleteBucketOwnershipControls", DeleteBucketOwnershipControls$) { static { __name(this, "DeleteBucketOwnershipControlsCommand"); } }; var DeleteBucketPolicyCommand = class extends command5(_ep3, _mw4, "DeleteBucketPolicy", DeleteBucketPolicy$) { static { __name(this, "DeleteBucketPolicyCommand"); } }; var DeleteBucketReplicationCommand = class extends command5(_ep3, _mw4, "DeleteBucketReplication", DeleteBucketReplication$) { static { __name(this, "DeleteBucketReplicationCommand"); } }; var DeleteBucketTaggingCommand = class extends command5(_ep3, _mw4, "DeleteBucketTagging", DeleteBucketTagging$) { static { __name(this, "DeleteBucketTaggingCommand"); } }; var DeleteBucketWebsiteCommand = class extends command5(_ep3, _mw4, "DeleteBucketWebsite", DeleteBucketWebsite$) { static { __name(this, "DeleteBucketWebsiteCommand"); } }; var DeleteObjectAnnotationCommand = class extends command5(_ep5, _mw05, "DeleteObjectAnnotation", DeleteObjectAnnotation$) { static { __name(this, "DeleteObjectAnnotationCommand"); } }; var DeleteObjectCommand2 = class extends command5(_ep05, _mw05, "DeleteObject", DeleteObject$) { static { __name(this, "DeleteObjectCommand"); } }; var DeleteObjectsCommand = class extends command5(_ep5, _mw5, "DeleteObjects", DeleteObjects$) { static { __name(this, "DeleteObjectsCommand"); } }; var DeleteObjectTaggingCommand = class extends command5(_ep5, _mw05, "DeleteObjectTagging", DeleteObjectTagging$) { static { __name(this, "DeleteObjectTaggingCommand"); } }; var DeletePublicAccessBlockCommand = class extends command5(_ep3, _mw4, "DeletePublicAccessBlock", DeletePublicAccessBlock$) { static { __name(this, "DeletePublicAccessBlockCommand"); } }; var GetBucketAbacCommand = class extends command5(_ep5, _mw05, "GetBucketAbac", GetBucketAbac$) { static { __name(this, "GetBucketAbacCommand"); } }; var GetBucketAccelerateConfigurationCommand = class extends command5(_ep3, _mw05, "GetBucketAccelerateConfiguration", GetBucketAccelerateConfiguration$) { static { __name(this, "GetBucketAccelerateConfigurationCommand"); } }; var GetBucketAclCommand = class extends command5(_ep3, _mw05, "GetBucketAcl", GetBucketAcl$) { static { __name(this, "GetBucketAclCommand"); } }; var GetBucketAnalyticsConfigurationCommand = class extends command5(_ep3, _mw05, "GetBucketAnalyticsConfiguration", GetBucketAnalyticsConfiguration$) { static { __name(this, "GetBucketAnalyticsConfigurationCommand"); } }; var GetBucketCorsCommand = class extends command5(_ep3, _mw05, "GetBucketCors", GetBucketCors$) { static { __name(this, "GetBucketCorsCommand"); } }; var GetBucketEncryptionCommand = class extends command5(_ep3, _mw05, "GetBucketEncryption", GetBucketEncryption$) { static { __name(this, "GetBucketEncryptionCommand"); } }; var GetBucketIntelligentTieringConfigurationCommand = class extends command5(_ep3, _mw05, "GetBucketIntelligentTieringConfiguration", GetBucketIntelligentTieringConfiguration$) { static { __name(this, "GetBucketIntelligentTieringConfigurationCommand"); } }; var GetBucketInventoryConfigurationCommand = class extends command5(_ep3, _mw05, "GetBucketInventoryConfiguration", GetBucketInventoryConfiguration$) { static { __name(this, "GetBucketInventoryConfigurationCommand"); } }; var GetBucketLifecycleConfigurationCommand = class extends command5(_ep3, _mw05, "GetBucketLifecycleConfiguration", GetBucketLifecycleConfiguration$) { static { __name(this, "GetBucketLifecycleConfigurationCommand"); } }; var GetBucketLocationCommand = class extends command5(_ep3, _mw05, "GetBucketLocation", GetBucketLocation$) { static { __name(this, "GetBucketLocationCommand"); } }; var GetBucketLoggingCommand = class extends command5(_ep3, _mw05, "GetBucketLogging", GetBucketLogging$) { static { __name(this, "GetBucketLoggingCommand"); } }; var GetBucketMetadataConfigurationCommand = class extends command5(_ep3, _mw05, "GetBucketMetadataConfiguration", GetBucketMetadataConfiguration$) { static { __name(this, "GetBucketMetadataConfigurationCommand"); } }; var GetBucketMetadataTableConfigurationCommand = class extends command5(_ep3, _mw05, "GetBucketMetadataTableConfiguration", GetBucketMetadataTableConfiguration$) { static { __name(this, "GetBucketMetadataTableConfigurationCommand"); } }; var GetBucketMetricsConfigurationCommand = class extends command5(_ep3, _mw05, "GetBucketMetricsConfiguration", GetBucketMetricsConfiguration$) { static { __name(this, "GetBucketMetricsConfigurationCommand"); } }; var GetBucketNotificationConfigurationCommand = class extends command5(_ep3, _mw05, "GetBucketNotificationConfiguration", GetBucketNotificationConfiguration$) { static { __name(this, "GetBucketNotificationConfigurationCommand"); } }; var GetBucketOwnershipControlsCommand = class extends command5(_ep3, _mw05, "GetBucketOwnershipControls", GetBucketOwnershipControls$) { static { __name(this, "GetBucketOwnershipControlsCommand"); } }; var GetBucketPolicyCommand = class extends command5(_ep3, _mw4, "GetBucketPolicy", GetBucketPolicy$) { static { __name(this, "GetBucketPolicyCommand"); } }; var GetBucketPolicyStatusCommand = class extends command5(_ep3, _mw05, "GetBucketPolicyStatus", GetBucketPolicyStatus$) { static { __name(this, "GetBucketPolicyStatusCommand"); } }; var GetBucketReplicationCommand = class extends command5(_ep3, _mw05, "GetBucketReplication", GetBucketReplication$) { static { __name(this, "GetBucketReplicationCommand"); } }; var GetBucketRequestPaymentCommand = class extends command5(_ep3, _mw05, "GetBucketRequestPayment", GetBucketRequestPayment$) { static { __name(this, "GetBucketRequestPaymentCommand"); } }; var GetBucketTaggingCommand = class extends command5(_ep3, _mw05, "GetBucketTagging", GetBucketTagging$) { static { __name(this, "GetBucketTaggingCommand"); } }; var GetBucketVersioningCommand = class extends command5(_ep3, _mw05, "GetBucketVersioning", GetBucketVersioning$) { static { __name(this, "GetBucketVersioningCommand"); } }; var GetBucketWebsiteCommand = class extends command5(_ep3, _mw05, "GetBucketWebsite", GetBucketWebsite$) { static { __name(this, "GetBucketWebsiteCommand"); } }; var GetObjectAclCommand = class extends command5(_ep05, _mw05, "GetObjectAcl", GetObjectAcl$) { static { __name(this, "GetObjectAclCommand"); } }; var GetObjectAnnotationCommand = class extends command5(_ep05, _mw6, "GetObjectAnnotation", GetObjectAnnotation$) { static { __name(this, "GetObjectAnnotationCommand"); } }; var GetObjectAttributesCommand = class extends command5(_ep5, _mw1, "GetObjectAttributes", GetObjectAttributes$) { static { __name(this, "GetObjectAttributesCommand"); } }; var GetObjectCommand = class extends command5(_ep05, _mw7, "GetObject", GetObject$) { static { __name(this, "GetObjectCommand"); } }; var GetObjectLegalHoldCommand = class extends command5(_ep5, _mw05, "GetObjectLegalHold", GetObjectLegalHold$) { static { __name(this, "GetObjectLegalHoldCommand"); } }; var GetObjectLockConfigurationCommand = class extends command5(_ep5, _mw05, "GetObjectLockConfiguration", GetObjectLockConfiguration$) { static { __name(this, "GetObjectLockConfigurationCommand"); } }; var GetObjectRetentionCommand = class extends command5(_ep5, _mw05, "GetObjectRetention", GetObjectRetention$) { static { __name(this, "GetObjectRetentionCommand"); } }; var GetObjectTaggingCommand = class extends command5(_ep5, _mw05, "GetObjectTagging", GetObjectTagging$) { static { __name(this, "GetObjectTaggingCommand"); } }; var GetObjectTorrentCommand = class extends command5(_ep5, _mw4, "GetObjectTorrent", GetObjectTorrent$) { static { __name(this, "GetObjectTorrentCommand"); } }; var GetPublicAccessBlockCommand = class extends command5(_ep3, _mw05, "GetPublicAccessBlock", GetPublicAccessBlock$) { static { __name(this, "GetPublicAccessBlockCommand"); } }; var HeadBucketCommand2 = class extends command5(_ep5, _mw05, "HeadBucket", HeadBucket$) { static { __name(this, "HeadBucketCommand"); } }; var HeadObjectCommand = class extends command5(_ep05, _mw8, "HeadObject", HeadObject$) { static { __name(this, "HeadObjectCommand"); } }; var ListBucketAnalyticsConfigurationsCommand = class extends command5(_ep3, _mw05, "ListBucketAnalyticsConfigurations", ListBucketAnalyticsConfigurations$) { static { __name(this, "ListBucketAnalyticsConfigurationsCommand"); } }; var ListBucketIntelligentTieringConfigurationsCommand = class extends command5(_ep3, _mw05, "ListBucketIntelligentTieringConfigurations", ListBucketIntelligentTieringConfigurations$) { static { __name(this, "ListBucketIntelligentTieringConfigurationsCommand"); } }; var ListBucketInventoryConfigurationsCommand = class extends command5(_ep3, _mw05, "ListBucketInventoryConfigurations", ListBucketInventoryConfigurations$) { static { __name(this, "ListBucketInventoryConfigurationsCommand"); } }; var ListBucketMetricsConfigurationsCommand = class extends command5(_ep3, _mw05, "ListBucketMetricsConfigurations", ListBucketMetricsConfigurations$) { static { __name(this, "ListBucketMetricsConfigurationsCommand"); } }; var ListBucketsCommand = class extends command5(_ep6, _mw05, "ListBuckets", ListBuckets$) { static { __name(this, "ListBucketsCommand"); } }; var ListDirectoryBucketsCommand = class extends command5(_ep7, _mw05, "ListDirectoryBuckets", ListDirectoryBuckets$) { static { __name(this, "ListDirectoryBucketsCommand"); } }; var ListMultipartUploadsCommand = class extends command5(_ep8, _mw05, "ListMultipartUploads", ListMultipartUploads$) { static { __name(this, "ListMultipartUploadsCommand"); } }; var ListObjectAnnotationsCommand = class extends command5(_ep5, _mw05, "ListObjectAnnotations", ListObjectAnnotations$) { static { __name(this, "ListObjectAnnotationsCommand"); } }; var ListObjectsCommand = class extends command5(_ep8, _mw05, "ListObjects", ListObjects$) { static { __name(this, "ListObjectsCommand"); } }; var ListObjectsV2Command = class extends command5(_ep8, _mw05, "ListObjectsV2", ListObjectsV2$) { static { __name(this, "ListObjectsV2Command"); } }; var ListObjectVersionsCommand = class extends command5(_ep8, _mw05, "ListObjectVersions", ListObjectVersions$) { static { __name(this, "ListObjectVersionsCommand"); } }; var ListPartsCommand = class extends command5(_ep05, _mw1, "ListParts", ListParts$) { static { __name(this, "ListPartsCommand"); } }; var PutBucketAbacCommand = class extends command5(_ep5, _mw9, "PutBucketAbac", PutBucketAbac$) { static { __name(this, "PutBucketAbacCommand"); } }; var PutBucketAccelerateConfigurationCommand = class extends command5(_ep3, _mw9, "PutBucketAccelerateConfiguration", PutBucketAccelerateConfiguration$) { static { __name(this, "PutBucketAccelerateConfigurationCommand"); } }; var PutBucketAclCommand = class extends command5(_ep3, _mw3, "PutBucketAcl", PutBucketAcl$) { static { __name(this, "PutBucketAclCommand"); } }; var PutBucketAnalyticsConfigurationCommand = class extends command5(_ep3, _mw4, "PutBucketAnalyticsConfiguration", PutBucketAnalyticsConfiguration$) { static { __name(this, "PutBucketAnalyticsConfigurationCommand"); } }; var PutBucketCorsCommand = class extends command5(_ep3, _mw3, "PutBucketCors", PutBucketCors$) { static { __name(this, "PutBucketCorsCommand"); } }; var PutBucketEncryptionCommand = class extends command5(_ep3, _mw3, "PutBucketEncryption", PutBucketEncryption$) { static { __name(this, "PutBucketEncryptionCommand"); } }; var PutBucketIntelligentTieringConfigurationCommand = class extends command5(_ep3, _mw4, "PutBucketIntelligentTieringConfiguration", PutBucketIntelligentTieringConfiguration$) { static { __name(this, "PutBucketIntelligentTieringConfigurationCommand"); } }; var PutBucketInventoryConfigurationCommand = class extends command5(_ep3, _mw4, "PutBucketInventoryConfiguration", PutBucketInventoryConfiguration$) { static { __name(this, "PutBucketInventoryConfigurationCommand"); } }; var PutBucketLifecycleConfigurationCommand = class extends command5(_ep3, _mw5, "PutBucketLifecycleConfiguration", PutBucketLifecycleConfiguration$) { static { __name(this, "PutBucketLifecycleConfigurationCommand"); } }; var PutBucketLoggingCommand = class extends command5(_ep3, _mw3, "PutBucketLogging", PutBucketLogging$) { static { __name(this, "PutBucketLoggingCommand"); } }; var PutBucketMetricsConfigurationCommand = class extends command5(_ep3, _mw4, "PutBucketMetricsConfiguration", PutBucketMetricsConfiguration$) { static { __name(this, "PutBucketMetricsConfigurationCommand"); } }; var PutBucketNotificationConfigurationCommand = class extends command5(_ep3, _mw4, "PutBucketNotificationConfiguration", PutBucketNotificationConfiguration$) { static { __name(this, "PutBucketNotificationConfigurationCommand"); } }; var PutBucketOwnershipControlsCommand = class extends command5(_ep3, _mw3, "PutBucketOwnershipControls", PutBucketOwnershipControls$) { static { __name(this, "PutBucketOwnershipControlsCommand"); } }; var PutBucketPolicyCommand2 = class extends command5(_ep3, _mw3, "PutBucketPolicy", PutBucketPolicy$) { static { __name(this, "PutBucketPolicyCommand"); } }; var PutBucketReplicationCommand = class extends command5(_ep3, _mw3, "PutBucketReplication", PutBucketReplication$) { static { __name(this, "PutBucketReplicationCommand"); } }; var PutBucketRequestPaymentCommand = class extends command5(_ep3, _mw3, "PutBucketRequestPayment", PutBucketRequestPayment$) { static { __name(this, "PutBucketRequestPaymentCommand"); } }; var PutBucketTaggingCommand = class extends command5(_ep3, _mw3, "PutBucketTagging", PutBucketTagging$) { static { __name(this, "PutBucketTaggingCommand"); } }; var PutBucketVersioningCommand = class extends command5(_ep3, _mw3, "PutBucketVersioning", PutBucketVersioning$) { static { __name(this, "PutBucketVersioningCommand"); } }; var PutBucketWebsiteCommand = class extends command5(_ep3, _mw3, "PutBucketWebsite", PutBucketWebsite$) { static { __name(this, "PutBucketWebsiteCommand"); } }; var PutObjectAclCommand = class extends command5(_ep05, _mw5, "PutObjectAcl", PutObjectAcl$) { static { __name(this, "PutObjectAclCommand"); } }; var PutObjectAnnotationCommand = class extends command5(_ep05, _mw10, "PutObjectAnnotation", PutObjectAnnotation$) { static { __name(this, "PutObjectAnnotationCommand"); } }; var PutObjectCommand2 = class extends command5(_ep05, _mw11, "PutObject", PutObject$) { static { __name(this, "PutObjectCommand"); } }; var PutObjectLegalHoldCommand = class extends command5(_ep5, _mw5, "PutObjectLegalHold", PutObjectLegalHold$) { static { __name(this, "PutObjectLegalHoldCommand"); } }; var PutObjectLockConfigurationCommand = class extends command5(_ep5, _mw5, "PutObjectLockConfiguration", PutObjectLockConfiguration$) { static { __name(this, "PutObjectLockConfigurationCommand"); } }; var PutObjectRetentionCommand = class extends command5(_ep5, _mw5, "PutObjectRetention", PutObjectRetention$) { static { __name(this, "PutObjectRetentionCommand"); } }; var PutObjectTaggingCommand = class extends command5(_ep5, _mw5, "PutObjectTagging", PutObjectTagging$) { static { __name(this, "PutObjectTaggingCommand"); } }; var PutPublicAccessBlockCommand = class extends command5(_ep3, _mw3, "PutPublicAccessBlock", PutPublicAccessBlock$) { static { __name(this, "PutPublicAccessBlockCommand"); } }; var RenameObjectCommand = class extends command5(_ep05, _mw05, "RenameObject", RenameObject$) { static { __name(this, "RenameObjectCommand"); } }; var RestoreObjectCommand = class extends command5(_ep5, _mw10, "RestoreObject", RestoreObject$) { static { __name(this, "RestoreObjectCommand"); } }; var SelectObjectContentCommand = class extends command5(_ep5, _mw12, "SelectObjectContent", SelectObjectContent$) { static { __name(this, "SelectObjectContentCommand"); } }; var UpdateBucketMetadataAnnotationTableConfigurationCommand = class extends command5(_ep3, _mw3, "UpdateBucketMetadataAnnotationTableConfiguration", UpdateBucketMetadataAnnotationTableConfiguration$) { static { __name(this, "UpdateBucketMetadataAnnotationTableConfigurationCommand"); } }; var UpdateBucketMetadataInventoryTableConfigurationCommand = class extends command5(_ep3, _mw3, "UpdateBucketMetadataInventoryTableConfiguration", UpdateBucketMetadataInventoryTableConfiguration$) { static { __name(this, "UpdateBucketMetadataInventoryTableConfigurationCommand"); } }; var UpdateBucketMetadataJournalTableConfigurationCommand = class extends command5(_ep3, _mw3, "UpdateBucketMetadataJournalTableConfiguration", UpdateBucketMetadataJournalTableConfiguration$) { static { __name(this, "UpdateBucketMetadataJournalTableConfigurationCommand"); } }; var UpdateObjectEncryptionCommand = class extends command5(_ep5, _mw5, "UpdateObjectEncryption", UpdateObjectEncryption$) { static { __name(this, "UpdateObjectEncryptionCommand"); } }; var UploadPartCommand = class extends command5(_ep05, _mw13, "UploadPart", UploadPart$) { static { __name(this, "UploadPartCommand"); } }; var UploadPartCopyCommand = class extends command5(_ep4, _mw1, "UploadPartCopy", UploadPartCopy$) { static { __name(this, "UploadPartCopyCommand"); } }; var WriteGetObjectResponseCommand = class extends command5(_ep9, _mw4, "WriteGetObjectResponse", WriteGetObjectResponse$) { static { __name(this, "WriteGetObjectResponseCommand"); } }; var paginateListBuckets = createPaginator2(S3Client2, ListBucketsCommand, "ContinuationToken", "ContinuationToken", "MaxBuckets"); var paginateListDirectoryBuckets = createPaginator2(S3Client2, ListDirectoryBucketsCommand, "ContinuationToken", "ContinuationToken", "MaxDirectoryBuckets"); var paginateListObjectAnnotations = createPaginator2(S3Client2, ListObjectAnnotationsCommand, "ContinuationToken", "NextContinuationToken", "MaxAnnotationResults"); var paginateListObjectsV2 = createPaginator2(S3Client2, ListObjectsV2Command, "ContinuationToken", "NextContinuationToken", "MaxKeys"); var paginateListParts = createPaginator2(S3Client2, ListPartsCommand, "PartNumberMarker", "NextPartNumberMarker", "MaxParts"); var checkState$3 = /* @__PURE__ */ __name(async (client, input2) => { let reason; try { let result = await client.send(new HeadBucketCommand2(input2)); reason = result; return { state: WaiterState.SUCCESS, reason }; } catch (exception) { reason = exception; if (exception.name === "NotFound") { return { state: WaiterState.RETRY, reason }; } } return { state: WaiterState.RETRY, reason }; }, "checkState$3"); var waitForBucketExists = /* @__PURE__ */ __name(async (params, input2) => { const serviceDefaults = { minDelay: 5, maxDelay: 120 }; return createWaiter({ ...serviceDefaults, ...params }, input2, checkState$3); }, "waitForBucketExists"); var waitUntilBucketExists = /* @__PURE__ */ __name(async (params, input2) => { const serviceDefaults = { minDelay: 5, maxDelay: 120 }; const result = await createWaiter({ ...serviceDefaults, ...params }, input2, checkState$3); return checkExceptions(result); }, "waitUntilBucketExists"); var checkState$2 = /* @__PURE__ */ __name(async (client, input2) => { let reason; try { let result = await client.send(new HeadBucketCommand2(input2)); reason = result; } catch (exception) { reason = exception; if (exception.name === "NotFound") { return { state: WaiterState.SUCCESS, reason }; } } return { state: WaiterState.RETRY, reason }; }, "checkState$2"); var waitForBucketNotExists = /* @__PURE__ */ __name(async (params, input2) => { const serviceDefaults = { minDelay: 5, maxDelay: 120 }; return createWaiter({ ...serviceDefaults, ...params }, input2, checkState$2); }, "waitForBucketNotExists"); var waitUntilBucketNotExists = /* @__PURE__ */ __name(async (params, input2) => { const serviceDefaults = { minDelay: 5, maxDelay: 120 }; const result = await createWaiter({ ...serviceDefaults, ...params }, input2, checkState$2); return checkExceptions(result); }, "waitUntilBucketNotExists"); var checkState$1 = /* @__PURE__ */ __name(async (client, input2) => { let reason; try { let result = await client.send(new HeadObjectCommand(input2)); reason = result; return { state: WaiterState.SUCCESS, reason }; } catch (exception) { reason = exception; if (exception.name === "NotFound") { return { state: WaiterState.RETRY, reason }; } } return { state: WaiterState.RETRY, reason }; }, "checkState$1"); var waitForObjectExists = /* @__PURE__ */ __name(async (params, input2) => { const serviceDefaults = { minDelay: 5, maxDelay: 120 }; return createWaiter({ ...serviceDefaults, ...params }, input2, checkState$1); }, "waitForObjectExists"); var waitUntilObjectExists = /* @__PURE__ */ __name(async (params, input2) => { const serviceDefaults = { minDelay: 5, maxDelay: 120 }; const result = await createWaiter({ ...serviceDefaults, ...params }, input2, checkState$1); return checkExceptions(result); }, "waitUntilObjectExists"); var checkState = /* @__PURE__ */ __name(async (client, input2) => { let reason; try { let result = await client.send(new HeadObjectCommand(input2)); reason = result; } catch (exception) { reason = exception; if (exception.name === "NotFound") { return { state: WaiterState.SUCCESS, reason }; } } return { state: WaiterState.RETRY, reason }; }, "checkState"); var waitForObjectNotExists = /* @__PURE__ */ __name(async (params, input2) => { const serviceDefaults = { minDelay: 5, maxDelay: 120 }; return createWaiter({ ...serviceDefaults, ...params }, input2, checkState); }, "waitForObjectNotExists"); var waitUntilObjectNotExists = /* @__PURE__ */ __name(async (params, input2) => { const serviceDefaults = { minDelay: 5, maxDelay: 120 }; const result = await createWaiter({ ...serviceDefaults, ...params }, input2, checkState); return checkExceptions(result); }, "waitUntilObjectNotExists"); var commands5 = { AbortMultipartUploadCommand, CompleteMultipartUploadCommand, CopyObjectCommand, CreateBucketCommand: CreateBucketCommand2, CreateBucketMetadataConfigurationCommand, CreateBucketMetadataTableConfigurationCommand, CreateMultipartUploadCommand, CreateSessionCommand, DeleteBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetadataConfigurationCommand, DeleteBucketMetadataTableConfigurationCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectCommand: DeleteObjectCommand2, DeleteObjectAnnotationCommand, DeleteObjectsCommand, DeleteObjectTaggingCommand, DeletePublicAccessBlockCommand, GetBucketAbacCommand, GetBucketAccelerateConfigurationCommand, GetBucketAclCommand, GetBucketAnalyticsConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketIntelligentTieringConfigurationCommand, GetBucketInventoryConfigurationCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketMetadataConfigurationCommand, GetBucketMetadataTableConfigurationCommand, GetBucketMetricsConfigurationCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, GetBucketPolicyCommand, GetBucketPolicyStatusCommand, GetBucketReplicationCommand, GetBucketRequestPaymentCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectAclCommand, GetObjectAnnotationCommand, GetObjectAttributesCommand, GetObjectLegalHoldCommand, GetObjectLockConfigurationCommand, GetObjectRetentionCommand, GetObjectTaggingCommand, GetObjectTorrentCommand, GetPublicAccessBlockCommand, HeadBucketCommand: HeadBucketCommand2, HeadObjectCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListBucketsCommand, ListDirectoryBucketsCommand, ListMultipartUploadsCommand, ListObjectAnnotationsCommand, ListObjectsCommand, ListObjectsV2Command, ListObjectVersionsCommand, ListPartsCommand, PutBucketAbacCommand, PutBucketAccelerateConfigurationCommand, PutBucketAclCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand: PutBucketPolicyCommand2, PutBucketReplicationCommand, PutBucketRequestPaymentCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectCommand: PutObjectCommand2, PutObjectAclCommand, PutObjectAnnotationCommand, PutObjectLegalHoldCommand, PutObjectLockConfigurationCommand, PutObjectRetentionCommand, PutObjectTaggingCommand, PutPublicAccessBlockCommand, RenameObjectCommand, RestoreObjectCommand, SelectObjectContentCommand, UpdateBucketMetadataAnnotationTableConfigurationCommand, UpdateBucketMetadataInventoryTableConfigurationCommand, UpdateBucketMetadataJournalTableConfigurationCommand, UpdateObjectEncryptionCommand, UploadPartCommand, UploadPartCopyCommand, WriteGetObjectResponseCommand }; var paginators = { paginateListBuckets, paginateListDirectoryBuckets, paginateListObjectAnnotations, paginateListObjectsV2, paginateListParts }; var waiters = { waitUntilBucketExists, waitUntilBucketNotExists, waitUntilObjectExists, waitUntilObjectNotExists }; var S3 = class extends S3Client2 { static { __name(this, "S3"); } }; createAggregatedClient2(commands5, S3, { paginators, waiters }); var BucketAbacStatus = { Disabled: "Disabled", Enabled: "Enabled" }; var RequestCharged = { requester: "requester" }; var RequestPayer = { requester: "requester" }; var BucketAccelerateStatus = { Enabled: "Enabled", Suspended: "Suspended" }; var Type = { AmazonCustomerByEmail: "AmazonCustomerByEmail", CanonicalUser: "CanonicalUser", Group: "Group" }; var Permission = { FULL_CONTROL: "FULL_CONTROL", READ: "READ", READ_ACP: "READ_ACP", WRITE: "WRITE", WRITE_ACP: "WRITE_ACP" }; var OwnerOverride = { Destination: "Destination" }; var ChecksumType = { COMPOSITE: "COMPOSITE", FULL_OBJECT: "FULL_OBJECT" }; var ServerSideEncryption = { AES256: "AES256", aws_backup: "aws:backup", aws_fsx: "aws:fsx", aws_kms: "aws:kms", aws_kms_dsse: "aws:kms:dsse" }; var ObjectCannedACL = { authenticated_read: "authenticated-read", aws_exec_read: "aws-exec-read", bucket_owner_full_control: "bucket-owner-full-control", bucket_owner_read: "bucket-owner-read", private: "private", public_read: "public-read", public_read_write: "public-read-write" }; var AnnotationDirective = { COPY: "COPY", EXCLUDE: "EXCLUDE" }; var ChecksumAlgorithm2 = { CRC32: "CRC32", CRC32C: "CRC32C", CRC64NVME: "CRC64NVME", MD5: "MD5", SHA1: "SHA1", SHA256: "SHA256", SHA512: "SHA512", XXHASH128: "XXHASH128", XXHASH3: "XXHASH3", XXHASH64: "XXHASH64" }; var MetadataDirective = { COPY: "COPY", REPLACE: "REPLACE" }; var ObjectLockEventHold = { OFF: "OFF", ON: "ON" }; var ObjectLockLegalHoldStatus = { OFF: "OFF", ON: "ON" }; var ObjectLockMode = { COMPLIANCE: "COMPLIANCE", GOVERNANCE: "GOVERNANCE" }; var StorageClass = { AWS_BACKUP_LOW_COST_WARM: "AWS_BACKUP_LOW_COST_WARM", AWS_BACKUP_WARM: "AWS_BACKUP_WARM", DEEP_ARCHIVE: "DEEP_ARCHIVE", EXPRESS_ONEZONE: "EXPRESS_ONEZONE", FSX_ONTAP: "FSX_ONTAP", FSX_OPENZFS: "FSX_OPENZFS", GLACIER: "GLACIER", GLACIER_IR: "GLACIER_IR", INTELLIGENT_TIERING: "INTELLIGENT_TIERING", ONEZONE_IA: "ONEZONE_IA", OUTPOSTS: "OUTPOSTS", REDUCED_REDUNDANCY: "REDUCED_REDUNDANCY", SNOW: "SNOW", STANDARD: "STANDARD", STANDARD_IA: "STANDARD_IA" }; var TaggingDirective = { COPY: "COPY", REPLACE: "REPLACE" }; var BucketCannedACL = { authenticated_read: "authenticated-read", private: "private", public_read: "public-read", public_read_write: "public-read-write" }; var BucketNamespace = { ACCOUNT_REGIONAL: "account-regional", GLOBAL: "global" }; var DataRedundancy = { SingleAvailabilityZone: "SingleAvailabilityZone", SingleLocalZone: "SingleLocalZone" }; var BucketType = { Directory: "Directory" }; var LocationType = { AvailabilityZone: "AvailabilityZone", LocalZone: "LocalZone" }; var BucketLocationConstraint = { EU: "EU", af_south_1: "af-south-1", ap_east_1: "ap-east-1", ap_east_2: "ap-east-2", ap_northeast_1: "ap-northeast-1", ap_northeast_2: "ap-northeast-2", ap_northeast_3: "ap-northeast-3", ap_south_1: "ap-south-1", ap_south_2: "ap-south-2", ap_southeast_1: "ap-southeast-1", ap_southeast_2: "ap-southeast-2", ap_southeast_3: "ap-southeast-3", ap_southeast_4: "ap-southeast-4", ap_southeast_5: "ap-southeast-5", ap_southeast_6: "ap-southeast-6", ap_southeast_7: "ap-southeast-7", ca_central_1: "ca-central-1", ca_west_1: "ca-west-1", cn_north_1: "cn-north-1", cn_northwest_1: "cn-northwest-1", eu_central_1: "eu-central-1", eu_central_2: "eu-central-2", eu_north_1: "eu-north-1", eu_south_1: "eu-south-1", eu_south_2: "eu-south-2", eu_west_1: "eu-west-1", eu_west_2: "eu-west-2", eu_west_3: "eu-west-3", il_central_1: "il-central-1", me_central_1: "me-central-1", me_south_1: "me-south-1", mx_central_1: "mx-central-1", sa_east_1: "sa-east-1", us_east_2: "us-east-2", us_gov_east_1: "us-gov-east-1", us_gov_west_1: "us-gov-west-1", us_west_1: "us-west-1", us_west_2: "us-west-2" }; var ObjectOwnership = { BucketOwnerEnforced: "BucketOwnerEnforced", BucketOwnerPreferred: "BucketOwnerPreferred", ObjectWriter: "ObjectWriter" }; var AnnotationConfigurationState = { DISABLED: "DISABLED", ENABLED: "ENABLED" }; var TableSseAlgorithm = { AES256: "AES256", aws_kms: "aws:kms" }; var InventoryConfigurationState = { DISABLED: "DISABLED", ENABLED: "ENABLED" }; var ExpirationState = { DISABLED: "DISABLED", ENABLED: "ENABLED" }; var SessionMode = { ReadOnly: "ReadOnly", ReadWrite: "ReadWrite" }; var AnalyticsS3ExportFileFormat = { CSV: "CSV" }; var StorageClassAnalysisSchemaVersion = { V_1: "V_1" }; var EncryptionType = { NONE: "NONE", SSE_C: "SSE-C" }; var IntelligentTieringStatus = { Disabled: "Disabled", Enabled: "Enabled" }; var IntelligentTieringAccessTier = { ARCHIVE_ACCESS: "ARCHIVE_ACCESS", DEEP_ARCHIVE_ACCESS: "DEEP_ARCHIVE_ACCESS" }; var InventoryFormat = { CSV: "CSV", ORC: "ORC", Parquet: "Parquet" }; var InventoryIncludedObjectVersions = { All: "All", Current: "Current" }; var InventoryOptionalField = { BucketKeyStatus: "BucketKeyStatus", ChecksumAlgorithm: "ChecksumAlgorithm", ETag: "ETag", EncryptionStatus: "EncryptionStatus", IntelligentTieringAccessTier: "IntelligentTieringAccessTier", IntelligentTieringReferenceDate: "IntelligentTieringReferenceDate", IsMultipartUploaded: "IsMultipartUploaded", LastModifiedDate: "LastModifiedDate", LifecycleExpirationDate: "LifecycleExpirationDate", ObjectAccessControlList: "ObjectAccessControlList", ObjectLockEventHoldDuration: "ObjectLockEventHoldDuration", ObjectLockEventHoldStatus: "ObjectLockEventHoldStatus", ObjectLockLegalHoldStatus: "ObjectLockLegalHoldStatus", ObjectLockMode: "ObjectLockMode", ObjectLockRetainUntilDate: "ObjectLockRetainUntilDate", ObjectOwner: "ObjectOwner", ReplicationStatus: "ReplicationStatus", Size: "Size", StorageClass: "StorageClass" }; var InventoryFrequency = { Daily: "Daily", Weekly: "Weekly" }; var TransitionStorageClass = { DEEP_ARCHIVE: "DEEP_ARCHIVE", GLACIER: "GLACIER", GLACIER_IR: "GLACIER_IR", INTELLIGENT_TIERING: "INTELLIGENT_TIERING", ONEZONE_IA: "ONEZONE_IA", STANDARD_IA: "STANDARD_IA" }; var ExpirationStatus = { Disabled: "Disabled", Enabled: "Enabled" }; var TransitionDefaultMinimumObjectSize = { all_storage_classes_128K: "all_storage_classes_128K", varies_by_storage_class: "varies_by_storage_class" }; var BucketLogsPermission = { FULL_CONTROL: "FULL_CONTROL", READ: "READ", WRITE: "WRITE" }; var PartitionDateSource = { DeliveryTime: "DeliveryTime", EventTime: "EventTime" }; var S3TablesBucketType = { aws: "aws", customer: "customer" }; var Event = { s3_IntelligentTiering: "s3:IntelligentTiering", s3_LifecycleExpiration_: "s3:LifecycleExpiration:*", s3_LifecycleExpiration_Delete: "s3:LifecycleExpiration:Delete", s3_LifecycleExpiration_DeleteMarkerCreated: "s3:LifecycleExpiration:DeleteMarkerCreated", s3_LifecycleTransition: "s3:LifecycleTransition", s3_ObjectAcl_Put: "s3:ObjectAcl:Put", s3_ObjectAnnotation_: "s3:ObjectAnnotation:*", s3_ObjectAnnotation_Delete: "s3:ObjectAnnotation:Delete", s3_ObjectAnnotation_Put: "s3:ObjectAnnotation:Put", s3_ObjectCreated_: "s3:ObjectCreated:*", s3_ObjectCreated_CompleteMultipartUpload: "s3:ObjectCreated:CompleteMultipartUpload", s3_ObjectCreated_Copy: "s3:ObjectCreated:Copy", s3_ObjectCreated_Post: "s3:ObjectCreated:Post", s3_ObjectCreated_Put: "s3:ObjectCreated:Put", s3_ObjectRemoved_: "s3:ObjectRemoved:*", s3_ObjectRemoved_Delete: "s3:ObjectRemoved:Delete", s3_ObjectRemoved_DeleteMarkerCreated: "s3:ObjectRemoved:DeleteMarkerCreated", s3_ObjectRestore_: "s3:ObjectRestore:*", s3_ObjectRestore_Completed: "s3:ObjectRestore:Completed", s3_ObjectRestore_Delete: "s3:ObjectRestore:Delete", s3_ObjectRestore_Post: "s3:ObjectRestore:Post", s3_ObjectRetention_Put: "s3:ObjectRetention:Put", s3_ObjectTagging_: "s3:ObjectTagging:*", s3_ObjectTagging_Delete: "s3:ObjectTagging:Delete", s3_ObjectTagging_Put: "s3:ObjectTagging:Put", s3_ReducedRedundancyLostObject: "s3:ReducedRedundancyLostObject", s3_Replication_: "s3:Replication:*", s3_Replication_OperationFailedReplication: "s3:Replication:OperationFailedReplication", s3_Replication_OperationMissedThreshold: "s3:Replication:OperationMissedThreshold", s3_Replication_OperationNotTracked: "s3:Replication:OperationNotTracked", s3_Replication_OperationReplicatedAfterThreshold: "s3:Replication:OperationReplicatedAfterThreshold" }; var FilterRuleName = { prefix: "prefix", suffix: "suffix" }; var DeleteMarkerReplicationStatus = { Disabled: "Disabled", Enabled: "Enabled" }; var MetricsStatus = { Disabled: "Disabled", Enabled: "Enabled" }; var ReplicationTimeStatus = { Disabled: "Disabled", Enabled: "Enabled" }; var ExistingObjectReplicationStatus = { Disabled: "Disabled", Enabled: "Enabled" }; var ReplicaModificationsStatus = { Disabled: "Disabled", Enabled: "Enabled" }; var SseKmsEncryptedObjectsStatus = { Disabled: "Disabled", Enabled: "Enabled" }; var ReplicationRuleStatus = { Disabled: "Disabled", Enabled: "Enabled" }; var Payer = { BucketOwner: "BucketOwner", Requester: "Requester" }; var MFADeleteStatus = { Disabled: "Disabled", Enabled: "Enabled" }; var BucketVersioningStatus = { Enabled: "Enabled", Suspended: "Suspended" }; var Protocol = { http: "http", https: "https" }; var ReplicationStatus = { COMPLETE: "COMPLETE", COMPLETED: "COMPLETED", FAILED: "FAILED", PENDING: "PENDING", REPLICA: "REPLICA" }; var ChecksumMode = { ENABLED: "ENABLED" }; var ObjectAttributes = { CHECKSUM: "Checksum", ETAG: "ETag", OBJECT_PARTS: "ObjectParts", OBJECT_SIZE: "ObjectSize", STORAGE_CLASS: "StorageClass" }; var ObjectLockEnabled = { Enabled: "Enabled" }; var ObjectLockRetentionMode = { COMPLIANCE: "COMPLIANCE", GOVERNANCE: "GOVERNANCE" }; var ArchiveStatus = { ARCHIVE_ACCESS: "ARCHIVE_ACCESS", DEEP_ARCHIVE_ACCESS: "DEEP_ARCHIVE_ACCESS" }; var EncodingType = { url: "url" }; var ObjectStorageClass = { AWS_BACKUP_LOW_COST_WARM: "AWS_BACKUP_LOW_COST_WARM", AWS_BACKUP_WARM: "AWS_BACKUP_WARM", DEEP_ARCHIVE: "DEEP_ARCHIVE", EXPRESS_ONEZONE: "EXPRESS_ONEZONE", FSX_ONTAP: "FSX_ONTAP", FSX_OPENZFS: "FSX_OPENZFS", GLACIER: "GLACIER", GLACIER_IR: "GLACIER_IR", INTELLIGENT_TIERING: "INTELLIGENT_TIERING", ONEZONE_IA: "ONEZONE_IA", OUTPOSTS: "OUTPOSTS", REDUCED_REDUNDANCY: "REDUCED_REDUNDANCY", SNOW: "SNOW", STANDARD: "STANDARD", STANDARD_IA: "STANDARD_IA" }; var OptionalObjectAttributes = { RESTORE_STATUS: "RestoreStatus" }; var ObjectVersionStorageClass = { STANDARD: "STANDARD" }; var MFADelete = { Disabled: "Disabled", Enabled: "Enabled" }; var Tier = { Bulk: "Bulk", Expedited: "Expedited", Standard: "Standard" }; var ExpressionType = { SQL: "SQL" }; var CompressionType = { BZIP2: "BZIP2", GZIP: "GZIP", NONE: "NONE" }; var FileHeaderInfo = { IGNORE: "IGNORE", NONE: "NONE", USE: "USE" }; var JSONType = { DOCUMENT: "DOCUMENT", LINES: "LINES" }; var QuoteFields = { ALWAYS: "ALWAYS", ASNEEDED: "ASNEEDED" }; var RestoreRequestType = { SELECT: "SELECT" }; exports.AbacStatus$ = AbacStatus$; exports.AbortIncompleteMultipartUpload$ = AbortIncompleteMultipartUpload$; exports.AbortMultipartUpload$ = AbortMultipartUpload$; exports.AbortMultipartUploadCommand = AbortMultipartUploadCommand; exports.AbortMultipartUploadOutput$ = AbortMultipartUploadOutput$; exports.AbortMultipartUploadRequest$ = AbortMultipartUploadRequest$; exports.AccelerateConfiguration$ = AccelerateConfiguration$; exports.AccessControlPolicy$ = AccessControlPolicy$; exports.AccessControlTranslation$ = AccessControlTranslation$; exports.AccessDenied = AccessDenied; exports.AccessDenied$ = AccessDenied$; exports.AnalyticsAndOperator$ = AnalyticsAndOperator$; exports.AnalyticsConfiguration$ = AnalyticsConfiguration$; exports.AnalyticsExportDestination$ = AnalyticsExportDestination$; exports.AnalyticsFilter$ = AnalyticsFilter$; exports.AnalyticsS3BucketDestination$ = AnalyticsS3BucketDestination$; exports.AnalyticsS3ExportFileFormat = AnalyticsS3ExportFileFormat; exports.AnnotationConfigurationState = AnnotationConfigurationState; exports.AnnotationDirective = AnnotationDirective; exports.AnnotationEntry$ = AnnotationEntry$; exports.AnnotationLimitExceeded = AnnotationLimitExceeded; exports.AnnotationLimitExceeded$ = AnnotationLimitExceeded$; exports.AnnotationNameTooLong = AnnotationNameTooLong; exports.AnnotationNameTooLong$ = AnnotationNameTooLong$; exports.AnnotationTableConfiguration$ = AnnotationTableConfiguration$; exports.AnnotationTableConfigurationResult$ = AnnotationTableConfigurationResult$; exports.AnnotationTableConfigurationUpdates$ = AnnotationTableConfigurationUpdates$; exports.ArchiveStatus = ArchiveStatus; exports.BlockedEncryptionTypes$ = BlockedEncryptionTypes$; exports.Bucket$ = Bucket$; exports.BucketAbacStatus = BucketAbacStatus; exports.BucketAccelerateStatus = BucketAccelerateStatus; exports.BucketAlreadyExists = BucketAlreadyExists; exports.BucketAlreadyExists$ = BucketAlreadyExists$; exports.BucketAlreadyOwnedByYou = BucketAlreadyOwnedByYou; exports.BucketAlreadyOwnedByYou$ = BucketAlreadyOwnedByYou$; exports.BucketCannedACL = BucketCannedACL; exports.BucketInfo$ = BucketInfo$; exports.BucketLifecycleConfiguration$ = BucketLifecycleConfiguration$; exports.BucketLocationConstraint = BucketLocationConstraint; exports.BucketLoggingStatus$ = BucketLoggingStatus$; exports.BucketLogsPermission = BucketLogsPermission; exports.BucketNamespace = BucketNamespace; exports.BucketType = BucketType; exports.BucketVersioningStatus = BucketVersioningStatus; exports.CORSConfiguration$ = CORSConfiguration$; exports.CORSRule$ = CORSRule$; exports.CSVInput$ = CSVInput$; exports.CSVOutput$ = CSVOutput$; exports.Checksum$ = Checksum$; exports.ChecksumAlgorithm = ChecksumAlgorithm2; exports.ChecksumMode = ChecksumMode; exports.ChecksumType = ChecksumType; exports.CommonPrefix$ = CommonPrefix$; exports.CompleteMultipartUpload$ = CompleteMultipartUpload$; exports.CompleteMultipartUploadCommand = CompleteMultipartUploadCommand; exports.CompleteMultipartUploadOutput$ = CompleteMultipartUploadOutput$; exports.CompleteMultipartUploadRequest$ = CompleteMultipartUploadRequest$; exports.CompletedMultipartUpload$ = CompletedMultipartUpload$; exports.CompletedPart$ = CompletedPart$; exports.CompressionType = CompressionType; exports.Condition$ = Condition$; exports.ContinuationEvent$ = ContinuationEvent$; exports.CopyObject$ = CopyObject$; exports.CopyObjectCommand = CopyObjectCommand; exports.CopyObjectOutput$ = CopyObjectOutput$; exports.CopyObjectRequest$ = CopyObjectRequest$; exports.CopyObjectResult$ = CopyObjectResult$; exports.CopyPartResult$ = CopyPartResult$; exports.CreateBucket$ = CreateBucket$; exports.CreateBucketCommand = CreateBucketCommand2; exports.CreateBucketConfiguration$ = CreateBucketConfiguration$; exports.CreateBucketMetadataConfiguration$ = CreateBucketMetadataConfiguration$; exports.CreateBucketMetadataConfigurationCommand = CreateBucketMetadataConfigurationCommand; exports.CreateBucketMetadataConfigurationRequest$ = CreateBucketMetadataConfigurationRequest$; exports.CreateBucketMetadataTableConfiguration$ = CreateBucketMetadataTableConfiguration$; exports.CreateBucketMetadataTableConfigurationCommand = CreateBucketMetadataTableConfigurationCommand; exports.CreateBucketMetadataTableConfigurationRequest$ = CreateBucketMetadataTableConfigurationRequest$; exports.CreateBucketOutput$ = CreateBucketOutput$; exports.CreateBucketRequest$ = CreateBucketRequest$; exports.CreateMultipartUpload$ = CreateMultipartUpload$; exports.CreateMultipartUploadCommand = CreateMultipartUploadCommand; exports.CreateMultipartUploadOutput$ = CreateMultipartUploadOutput$; exports.CreateMultipartUploadRequest$ = CreateMultipartUploadRequest$; exports.CreateSession$ = CreateSession$; exports.CreateSessionCommand = CreateSessionCommand; exports.CreateSessionOutput$ = CreateSessionOutput$; exports.CreateSessionRequest$ = CreateSessionRequest$; exports.DataRedundancy = DataRedundancy; exports.DefaultRetention$ = DefaultRetention$; exports.Delete$ = Delete$; exports.DeleteBucket$ = DeleteBucket$; exports.DeleteBucketAnalyticsConfiguration$ = DeleteBucketAnalyticsConfiguration$; exports.DeleteBucketAnalyticsConfigurationCommand = DeleteBucketAnalyticsConfigurationCommand; exports.DeleteBucketAnalyticsConfigurationRequest$ = DeleteBucketAnalyticsConfigurationRequest$; exports.DeleteBucketCommand = DeleteBucketCommand; exports.DeleteBucketCors$ = DeleteBucketCors$; exports.DeleteBucketCorsCommand = DeleteBucketCorsCommand; exports.DeleteBucketCorsRequest$ = DeleteBucketCorsRequest$; exports.DeleteBucketEncryption$ = DeleteBucketEncryption$; exports.DeleteBucketEncryptionCommand = DeleteBucketEncryptionCommand; exports.DeleteBucketEncryptionRequest$ = DeleteBucketEncryptionRequest$; exports.DeleteBucketIntelligentTieringConfiguration$ = DeleteBucketIntelligentTieringConfiguration$; exports.DeleteBucketIntelligentTieringConfigurationCommand = DeleteBucketIntelligentTieringConfigurationCommand; exports.DeleteBucketIntelligentTieringConfigurationRequest$ = DeleteBucketIntelligentTieringConfigurationRequest$; exports.DeleteBucketInventoryConfiguration$ = DeleteBucketInventoryConfiguration$; exports.DeleteBucketInventoryConfigurationCommand = DeleteBucketInventoryConfigurationCommand; exports.DeleteBucketInventoryConfigurationRequest$ = DeleteBucketInventoryConfigurationRequest$; exports.DeleteBucketLifecycle$ = DeleteBucketLifecycle$; exports.DeleteBucketLifecycleCommand = DeleteBucketLifecycleCommand; exports.DeleteBucketLifecycleRequest$ = DeleteBucketLifecycleRequest$; exports.DeleteBucketMetadataConfiguration$ = DeleteBucketMetadataConfiguration$; exports.DeleteBucketMetadataConfigurationCommand = DeleteBucketMetadataConfigurationCommand; exports.DeleteBucketMetadataConfigurationRequest$ = DeleteBucketMetadataConfigurationRequest$; exports.DeleteBucketMetadataTableConfiguration$ = DeleteBucketMetadataTableConfiguration$; exports.DeleteBucketMetadataTableConfigurationCommand = DeleteBucketMetadataTableConfigurationCommand; exports.DeleteBucketMetadataTableConfigurationRequest$ = DeleteBucketMetadataTableConfigurationRequest$; exports.DeleteBucketMetricsConfiguration$ = DeleteBucketMetricsConfiguration$; exports.DeleteBucketMetricsConfigurationCommand = DeleteBucketMetricsConfigurationCommand; exports.DeleteBucketMetricsConfigurationRequest$ = DeleteBucketMetricsConfigurationRequest$; exports.DeleteBucketOwnershipControls$ = DeleteBucketOwnershipControls$; exports.DeleteBucketOwnershipControlsCommand = DeleteBucketOwnershipControlsCommand; exports.DeleteBucketOwnershipControlsRequest$ = DeleteBucketOwnershipControlsRequest$; exports.DeleteBucketPolicy$ = DeleteBucketPolicy$; exports.DeleteBucketPolicyCommand = DeleteBucketPolicyCommand; exports.DeleteBucketPolicyRequest$ = DeleteBucketPolicyRequest$; exports.DeleteBucketReplication$ = DeleteBucketReplication$; exports.DeleteBucketReplicationCommand = DeleteBucketReplicationCommand; exports.DeleteBucketReplicationRequest$ = DeleteBucketReplicationRequest$; exports.DeleteBucketRequest$ = DeleteBucketRequest$; exports.DeleteBucketTagging$ = DeleteBucketTagging$; exports.DeleteBucketTaggingCommand = DeleteBucketTaggingCommand; exports.DeleteBucketTaggingRequest$ = DeleteBucketTaggingRequest$; exports.DeleteBucketWebsite$ = DeleteBucketWebsite$; exports.DeleteBucketWebsiteCommand = DeleteBucketWebsiteCommand; exports.DeleteBucketWebsiteRequest$ = DeleteBucketWebsiteRequest$; exports.DeleteMarkerEntry$ = DeleteMarkerEntry$; exports.DeleteMarkerReplication$ = DeleteMarkerReplication$; exports.DeleteMarkerReplicationStatus = DeleteMarkerReplicationStatus; exports.DeleteObject$ = DeleteObject$; exports.DeleteObjectAnnotation$ = DeleteObjectAnnotation$; exports.DeleteObjectAnnotationCommand = DeleteObjectAnnotationCommand; exports.DeleteObjectAnnotationOutput$ = DeleteObjectAnnotationOutput$; exports.DeleteObjectAnnotationRequest$ = DeleteObjectAnnotationRequest$; exports.DeleteObjectCommand = DeleteObjectCommand2; exports.DeleteObjectOutput$ = DeleteObjectOutput$; exports.DeleteObjectRequest$ = DeleteObjectRequest$; exports.DeleteObjectTagging$ = DeleteObjectTagging$; exports.DeleteObjectTaggingCommand = DeleteObjectTaggingCommand; exports.DeleteObjectTaggingOutput$ = DeleteObjectTaggingOutput$; exports.DeleteObjectTaggingRequest$ = DeleteObjectTaggingRequest$; exports.DeleteObjects$ = DeleteObjects$; exports.DeleteObjectsCommand = DeleteObjectsCommand; exports.DeleteObjectsOutput$ = DeleteObjectsOutput$; exports.DeleteObjectsRequest$ = DeleteObjectsRequest$; exports.DeletePublicAccessBlock$ = DeletePublicAccessBlock$; exports.DeletePublicAccessBlockCommand = DeletePublicAccessBlockCommand; exports.DeletePublicAccessBlockRequest$ = DeletePublicAccessBlockRequest$; exports.DeletedObject$ = DeletedObject$; exports.Destination$ = Destination$; exports.DestinationResult$ = DestinationResult$; exports.EncodingType = EncodingType; exports.Encryption$ = Encryption$; exports.EncryptionConfiguration$ = EncryptionConfiguration$; exports.EncryptionType = EncryptionType; exports.EncryptionTypeMismatch = EncryptionTypeMismatch; exports.EncryptionTypeMismatch$ = EncryptionTypeMismatch$; exports.EndEvent$ = EndEvent$; exports.ErrorDetails$ = ErrorDetails$; exports.ErrorDocument$ = ErrorDocument$; exports.Event = Event; exports.EventBridgeConfiguration$ = EventBridgeConfiguration$; exports.EventHoldDuration$ = EventHoldDuration$; exports.ExistingObjectReplication$ = ExistingObjectReplication$; exports.ExistingObjectReplicationStatus = ExistingObjectReplicationStatus; exports.ExpirationState = ExpirationState; exports.ExpirationStatus = ExpirationStatus; exports.ExpressionType = ExpressionType; exports.FileHeaderInfo = FileHeaderInfo; exports.FilterRule$ = FilterRule$; exports.FilterRuleName = FilterRuleName; exports.GetBucketAbac$ = GetBucketAbac$; exports.GetBucketAbacCommand = GetBucketAbacCommand; exports.GetBucketAbacOutput$ = GetBucketAbacOutput$; exports.GetBucketAbacRequest$ = GetBucketAbacRequest$; exports.GetBucketAccelerateConfiguration$ = GetBucketAccelerateConfiguration$; exports.GetBucketAccelerateConfigurationCommand = GetBucketAccelerateConfigurationCommand; exports.GetBucketAccelerateConfigurationOutput$ = GetBucketAccelerateConfigurationOutput$; exports.GetBucketAccelerateConfigurationRequest$ = GetBucketAccelerateConfigurationRequest$; exports.GetBucketAcl$ = GetBucketAcl$; exports.GetBucketAclCommand = GetBucketAclCommand; exports.GetBucketAclOutput$ = GetBucketAclOutput$; exports.GetBucketAclRequest$ = GetBucketAclRequest$; exports.GetBucketAnalyticsConfiguration$ = GetBucketAnalyticsConfiguration$; exports.GetBucketAnalyticsConfigurationCommand = GetBucketAnalyticsConfigurationCommand; exports.GetBucketAnalyticsConfigurationOutput$ = GetBucketAnalyticsConfigurationOutput$; exports.GetBucketAnalyticsConfigurationRequest$ = GetBucketAnalyticsConfigurationRequest$; exports.GetBucketCors$ = GetBucketCors$; exports.GetBucketCorsCommand = GetBucketCorsCommand; exports.GetBucketCorsOutput$ = GetBucketCorsOutput$; exports.GetBucketCorsRequest$ = GetBucketCorsRequest$; exports.GetBucketEncryption$ = GetBucketEncryption$; exports.GetBucketEncryptionCommand = GetBucketEncryptionCommand; exports.GetBucketEncryptionOutput$ = GetBucketEncryptionOutput$; exports.GetBucketEncryptionRequest$ = GetBucketEncryptionRequest$; exports.GetBucketIntelligentTieringConfiguration$ = GetBucketIntelligentTieringConfiguration$; exports.GetBucketIntelligentTieringConfigurationCommand = GetBucketIntelligentTieringConfigurationCommand; exports.GetBucketIntelligentTieringConfigurationOutput$ = GetBucketIntelligentTieringConfigurationOutput$; exports.GetBucketIntelligentTieringConfigurationRequest$ = GetBucketIntelligentTieringConfigurationRequest$; exports.GetBucketInventoryConfiguration$ = GetBucketInventoryConfiguration$; exports.GetBucketInventoryConfigurationCommand = GetBucketInventoryConfigurationCommand; exports.GetBucketInventoryConfigurationOutput$ = GetBucketInventoryConfigurationOutput$; exports.GetBucketInventoryConfigurationRequest$ = GetBucketInventoryConfigurationRequest$; exports.GetBucketLifecycleConfiguration$ = GetBucketLifecycleConfiguration$; exports.GetBucketLifecycleConfigurationCommand = GetBucketLifecycleConfigurationCommand; exports.GetBucketLifecycleConfigurationOutput$ = GetBucketLifecycleConfigurationOutput$; exports.GetBucketLifecycleConfigurationRequest$ = GetBucketLifecycleConfigurationRequest$; exports.GetBucketLocation$ = GetBucketLocation$; exports.GetBucketLocationCommand = GetBucketLocationCommand; exports.GetBucketLocationOutput$ = GetBucketLocationOutput$; exports.GetBucketLocationRequest$ = GetBucketLocationRequest$; exports.GetBucketLogging$ = GetBucketLogging$; exports.GetBucketLoggingCommand = GetBucketLoggingCommand; exports.GetBucketLoggingOutput$ = GetBucketLoggingOutput$; exports.GetBucketLoggingRequest$ = GetBucketLoggingRequest$; exports.GetBucketMetadataConfiguration$ = GetBucketMetadataConfiguration$; exports.GetBucketMetadataConfigurationCommand = GetBucketMetadataConfigurationCommand; exports.GetBucketMetadataConfigurationOutput$ = GetBucketMetadataConfigurationOutput$; exports.GetBucketMetadataConfigurationRequest$ = GetBucketMetadataConfigurationRequest$; exports.GetBucketMetadataConfigurationResult$ = GetBucketMetadataConfigurationResult$; exports.GetBucketMetadataTableConfiguration$ = GetBucketMetadataTableConfiguration$; exports.GetBucketMetadataTableConfigurationCommand = GetBucketMetadataTableConfigurationCommand; exports.GetBucketMetadataTableConfigurationOutput$ = GetBucketMetadataTableConfigurationOutput$; exports.GetBucketMetadataTableConfigurationRequest$ = GetBucketMetadataTableConfigurationRequest$; exports.GetBucketMetadataTableConfigurationResult$ = GetBucketMetadataTableConfigurationResult$; exports.GetBucketMetricsConfiguration$ = GetBucketMetricsConfiguration$; exports.GetBucketMetricsConfigurationCommand = GetBucketMetricsConfigurationCommand; exports.GetBucketMetricsConfigurationOutput$ = GetBucketMetricsConfigurationOutput$; exports.GetBucketMetricsConfigurationRequest$ = GetBucketMetricsConfigurationRequest$; exports.GetBucketNotificationConfiguration$ = GetBucketNotificationConfiguration$; exports.GetBucketNotificationConfigurationCommand = GetBucketNotificationConfigurationCommand; exports.GetBucketNotificationConfigurationRequest$ = GetBucketNotificationConfigurationRequest$; exports.GetBucketOwnershipControls$ = GetBucketOwnershipControls$; exports.GetBucketOwnershipControlsCommand = GetBucketOwnershipControlsCommand; exports.GetBucketOwnershipControlsOutput$ = GetBucketOwnershipControlsOutput$; exports.GetBucketOwnershipControlsRequest$ = GetBucketOwnershipControlsRequest$; exports.GetBucketPolicy$ = GetBucketPolicy$; exports.GetBucketPolicyCommand = GetBucketPolicyCommand; exports.GetBucketPolicyOutput$ = GetBucketPolicyOutput$; exports.GetBucketPolicyRequest$ = GetBucketPolicyRequest$; exports.GetBucketPolicyStatus$ = GetBucketPolicyStatus$; exports.GetBucketPolicyStatusCommand = GetBucketPolicyStatusCommand; exports.GetBucketPolicyStatusOutput$ = GetBucketPolicyStatusOutput$; exports.GetBucketPolicyStatusRequest$ = GetBucketPolicyStatusRequest$; exports.GetBucketReplication$ = GetBucketReplication$; exports.GetBucketReplicationCommand = GetBucketReplicationCommand; exports.GetBucketReplicationOutput$ = GetBucketReplicationOutput$; exports.GetBucketReplicationRequest$ = GetBucketReplicationRequest$; exports.GetBucketRequestPayment$ = GetBucketRequestPayment$; exports.GetBucketRequestPaymentCommand = GetBucketRequestPaymentCommand; exports.GetBucketRequestPaymentOutput$ = GetBucketRequestPaymentOutput$; exports.GetBucketRequestPaymentRequest$ = GetBucketRequestPaymentRequest$; exports.GetBucketTagging$ = GetBucketTagging$; exports.GetBucketTaggingCommand = GetBucketTaggingCommand; exports.GetBucketTaggingOutput$ = GetBucketTaggingOutput$; exports.GetBucketTaggingRequest$ = GetBucketTaggingRequest$; exports.GetBucketVersioning$ = GetBucketVersioning$; exports.GetBucketVersioningCommand = GetBucketVersioningCommand; exports.GetBucketVersioningOutput$ = GetBucketVersioningOutput$; exports.GetBucketVersioningRequest$ = GetBucketVersioningRequest$; exports.GetBucketWebsite$ = GetBucketWebsite$; exports.GetBucketWebsiteCommand = GetBucketWebsiteCommand; exports.GetBucketWebsiteOutput$ = GetBucketWebsiteOutput$; exports.GetBucketWebsiteRequest$ = GetBucketWebsiteRequest$; exports.GetObject$ = GetObject$; exports.GetObjectAcl$ = GetObjectAcl$; exports.GetObjectAclCommand = GetObjectAclCommand; exports.GetObjectAclOutput$ = GetObjectAclOutput$; exports.GetObjectAclRequest$ = GetObjectAclRequest$; exports.GetObjectAnnotation$ = GetObjectAnnotation$; exports.GetObjectAnnotationCommand = GetObjectAnnotationCommand; exports.GetObjectAnnotationOutput$ = GetObjectAnnotationOutput$; exports.GetObjectAnnotationRequest$ = GetObjectAnnotationRequest$; exports.GetObjectAttributes$ = GetObjectAttributes$; exports.GetObjectAttributesCommand = GetObjectAttributesCommand; exports.GetObjectAttributesOutput$ = GetObjectAttributesOutput$; exports.GetObjectAttributesParts$ = GetObjectAttributesParts$; exports.GetObjectAttributesRequest$ = GetObjectAttributesRequest$; exports.GetObjectCommand = GetObjectCommand; exports.GetObjectLegalHold$ = GetObjectLegalHold$; exports.GetObjectLegalHoldCommand = GetObjectLegalHoldCommand; exports.GetObjectLegalHoldOutput$ = GetObjectLegalHoldOutput$; exports.GetObjectLegalHoldRequest$ = GetObjectLegalHoldRequest$; exports.GetObjectLockConfiguration$ = GetObjectLockConfiguration$; exports.GetObjectLockConfigurationCommand = GetObjectLockConfigurationCommand; exports.GetObjectLockConfigurationOutput$ = GetObjectLockConfigurationOutput$; exports.GetObjectLockConfigurationRequest$ = GetObjectLockConfigurationRequest$; exports.GetObjectOutput$ = GetObjectOutput$; exports.GetObjectRequest$ = GetObjectRequest$; exports.GetObjectRetention$ = GetObjectRetention$; exports.GetObjectRetentionCommand = GetObjectRetentionCommand; exports.GetObjectRetentionOutput$ = GetObjectRetentionOutput$; exports.GetObjectRetentionRequest$ = GetObjectRetentionRequest$; exports.GetObjectTagging$ = GetObjectTagging$; exports.GetObjectTaggingCommand = GetObjectTaggingCommand; exports.GetObjectTaggingOutput$ = GetObjectTaggingOutput$; exports.GetObjectTaggingRequest$ = GetObjectTaggingRequest$; exports.GetObjectTorrent$ = GetObjectTorrent$; exports.GetObjectTorrentCommand = GetObjectTorrentCommand; exports.GetObjectTorrentOutput$ = GetObjectTorrentOutput$; exports.GetObjectTorrentRequest$ = GetObjectTorrentRequest$; exports.GetPublicAccessBlock$ = GetPublicAccessBlock$; exports.GetPublicAccessBlockCommand = GetPublicAccessBlockCommand; exports.GetPublicAccessBlockOutput$ = GetPublicAccessBlockOutput$; exports.GetPublicAccessBlockRequest$ = GetPublicAccessBlockRequest$; exports.GlacierJobParameters$ = GlacierJobParameters$; exports.Grant$ = Grant$; exports.Grantee$ = Grantee$; exports.HeadBucket$ = HeadBucket$; exports.HeadBucketCommand = HeadBucketCommand2; exports.HeadBucketOutput$ = HeadBucketOutput$; exports.HeadBucketRequest$ = HeadBucketRequest$; exports.HeadObject$ = HeadObject$; exports.HeadObjectCommand = HeadObjectCommand; exports.HeadObjectOutput$ = HeadObjectOutput$; exports.HeadObjectRequest$ = HeadObjectRequest$; exports.IdempotencyParameterMismatch = IdempotencyParameterMismatch; exports.IdempotencyParameterMismatch$ = IdempotencyParameterMismatch$; exports.IndexDocument$ = IndexDocument$; exports.Initiator$ = Initiator$; exports.InputSerialization$ = InputSerialization$; exports.IntelligentTieringAccessTier = IntelligentTieringAccessTier; exports.IntelligentTieringAndOperator$ = IntelligentTieringAndOperator$; exports.IntelligentTieringConfiguration$ = IntelligentTieringConfiguration$; exports.IntelligentTieringFilter$ = IntelligentTieringFilter$; exports.IntelligentTieringStatus = IntelligentTieringStatus; exports.InvalidAnnotationName = InvalidAnnotationName; exports.InvalidAnnotationName$ = InvalidAnnotationName$; exports.InvalidObjectState = InvalidObjectState; exports.InvalidObjectState$ = InvalidObjectState$; exports.InvalidPrefix = InvalidPrefix; exports.InvalidPrefix$ = InvalidPrefix$; exports.InvalidRequest = InvalidRequest; exports.InvalidRequest$ = InvalidRequest$; exports.InvalidWriteOffset = InvalidWriteOffset; exports.InvalidWriteOffset$ = InvalidWriteOffset$; exports.InventoryConfiguration$ = InventoryConfiguration$; exports.InventoryConfigurationState = InventoryConfigurationState; exports.InventoryDestination$ = InventoryDestination$; exports.InventoryEncryption$ = InventoryEncryption$; exports.InventoryFilter$ = InventoryFilter$; exports.InventoryFormat = InventoryFormat; exports.InventoryFrequency = InventoryFrequency; exports.InventoryIncludedObjectVersions = InventoryIncludedObjectVersions; exports.InventoryOptionalField = InventoryOptionalField; exports.InventoryS3BucketDestination$ = InventoryS3BucketDestination$; exports.InventorySchedule$ = InventorySchedule$; exports.InventoryTableConfiguration$ = InventoryTableConfiguration$; exports.InventoryTableConfigurationResult$ = InventoryTableConfigurationResult$; exports.InventoryTableConfigurationUpdates$ = InventoryTableConfigurationUpdates$; exports.JSONInput$ = JSONInput$; exports.JSONOutput$ = JSONOutput$; exports.JSONType = JSONType; exports.JournalTableConfiguration$ = JournalTableConfiguration$; exports.JournalTableConfigurationResult$ = JournalTableConfigurationResult$; exports.JournalTableConfigurationUpdates$ = JournalTableConfigurationUpdates$; exports.LambdaFunctionConfiguration$ = LambdaFunctionConfiguration$; exports.LifecycleExpiration$ = LifecycleExpiration$; exports.LifecycleRule$ = LifecycleRule$; exports.LifecycleRuleAndOperator$ = LifecycleRuleAndOperator$; exports.LifecycleRuleFilter$ = LifecycleRuleFilter$; exports.ListBucketAnalyticsConfigurations$ = ListBucketAnalyticsConfigurations$; exports.ListBucketAnalyticsConfigurationsCommand = ListBucketAnalyticsConfigurationsCommand; exports.ListBucketAnalyticsConfigurationsOutput$ = ListBucketAnalyticsConfigurationsOutput$; exports.ListBucketAnalyticsConfigurationsRequest$ = ListBucketAnalyticsConfigurationsRequest$; exports.ListBucketIntelligentTieringConfigurations$ = ListBucketIntelligentTieringConfigurations$; exports.ListBucketIntelligentTieringConfigurationsCommand = ListBucketIntelligentTieringConfigurationsCommand; exports.ListBucketIntelligentTieringConfigurationsOutput$ = ListBucketIntelligentTieringConfigurationsOutput$; exports.ListBucketIntelligentTieringConfigurationsRequest$ = ListBucketIntelligentTieringConfigurationsRequest$; exports.ListBucketInventoryConfigurations$ = ListBucketInventoryConfigurations$; exports.ListBucketInventoryConfigurationsCommand = ListBucketInventoryConfigurationsCommand; exports.ListBucketInventoryConfigurationsOutput$ = ListBucketInventoryConfigurationsOutput$; exports.ListBucketInventoryConfigurationsRequest$ = ListBucketInventoryConfigurationsRequest$; exports.ListBucketMetricsConfigurations$ = ListBucketMetricsConfigurations$; exports.ListBucketMetricsConfigurationsCommand = ListBucketMetricsConfigurationsCommand; exports.ListBucketMetricsConfigurationsOutput$ = ListBucketMetricsConfigurationsOutput$; exports.ListBucketMetricsConfigurationsRequest$ = ListBucketMetricsConfigurationsRequest$; exports.ListBuckets$ = ListBuckets$; exports.ListBucketsCommand = ListBucketsCommand; exports.ListBucketsOutput$ = ListBucketsOutput$; exports.ListBucketsRequest$ = ListBucketsRequest$; exports.ListDirectoryBuckets$ = ListDirectoryBuckets$; exports.ListDirectoryBucketsCommand = ListDirectoryBucketsCommand; exports.ListDirectoryBucketsOutput$ = ListDirectoryBucketsOutput$; exports.ListDirectoryBucketsRequest$ = ListDirectoryBucketsRequest$; exports.ListMultipartUploads$ = ListMultipartUploads$; exports.ListMultipartUploadsCommand = ListMultipartUploadsCommand; exports.ListMultipartUploadsOutput$ = ListMultipartUploadsOutput$; exports.ListMultipartUploadsRequest$ = ListMultipartUploadsRequest$; exports.ListObjectAnnotations$ = ListObjectAnnotations$; exports.ListObjectAnnotationsCommand = ListObjectAnnotationsCommand; exports.ListObjectAnnotationsOutput$ = ListObjectAnnotationsOutput$; exports.ListObjectAnnotationsRequest$ = ListObjectAnnotationsRequest$; exports.ListObjectVersions$ = ListObjectVersions$; exports.ListObjectVersionsCommand = ListObjectVersionsCommand; exports.ListObjectVersionsOutput$ = ListObjectVersionsOutput$; exports.ListObjectVersionsRequest$ = ListObjectVersionsRequest$; exports.ListObjects$ = ListObjects$; exports.ListObjectsCommand = ListObjectsCommand; exports.ListObjectsOutput$ = ListObjectsOutput$; exports.ListObjectsRequest$ = ListObjectsRequest$; exports.ListObjectsV2$ = ListObjectsV2$; exports.ListObjectsV2Command = ListObjectsV2Command; exports.ListObjectsV2Output$ = ListObjectsV2Output$; exports.ListObjectsV2Request$ = ListObjectsV2Request$; exports.ListParts$ = ListParts$; exports.ListPartsCommand = ListPartsCommand; exports.ListPartsOutput$ = ListPartsOutput$; exports.ListPartsRequest$ = ListPartsRequest$; exports.LocationInfo$ = LocationInfo$; exports.LocationType = LocationType; exports.LoggingEnabled$ = LoggingEnabled$; exports.MFADelete = MFADelete; exports.MFADeleteStatus = MFADeleteStatus; exports.MetadataConfiguration$ = MetadataConfiguration$; exports.MetadataConfigurationResult$ = MetadataConfigurationResult$; exports.MetadataDirective = MetadataDirective; exports.MetadataEntry$ = MetadataEntry$; exports.MetadataTableConfiguration$ = MetadataTableConfiguration$; exports.MetadataTableConfigurationResult$ = MetadataTableConfigurationResult$; exports.MetadataTableEncryptionConfiguration$ = MetadataTableEncryptionConfiguration$; exports.Metrics$ = Metrics$; exports.MetricsAndOperator$ = MetricsAndOperator$; exports.MetricsConfiguration$ = MetricsConfiguration$; exports.MetricsFilter$ = MetricsFilter$; exports.MetricsStatus = MetricsStatus; exports.MultipartUpload$ = MultipartUpload$; exports.NoSuchAnnotation = NoSuchAnnotation; exports.NoSuchAnnotation$ = NoSuchAnnotation$; exports.NoSuchBucket = NoSuchBucket; exports.NoSuchBucket$ = NoSuchBucket$; exports.NoSuchKey = NoSuchKey; exports.NoSuchKey$ = NoSuchKey$; exports.NoSuchUpload = NoSuchUpload; exports.NoSuchUpload$ = NoSuchUpload$; exports.NoncurrentVersionExpiration$ = NoncurrentVersionExpiration$; exports.NoncurrentVersionTransition$ = NoncurrentVersionTransition$; exports.NotFound = NotFound; exports.NotFound$ = NotFound$; exports.NotificationConfiguration$ = NotificationConfiguration$; exports.NotificationConfigurationFilter$ = NotificationConfigurationFilter$; exports.ObjectAlreadyInActiveTierError = ObjectAlreadyInActiveTierError; exports.ObjectAlreadyInActiveTierError$ = ObjectAlreadyInActiveTierError$; exports.ObjectAttributes = ObjectAttributes; exports.ObjectCannedACL = ObjectCannedACL; exports.ObjectEncryption$ = ObjectEncryption$; exports.ObjectIdentifier$ = ObjectIdentifier$; exports.ObjectLockConfiguration$ = ObjectLockConfiguration$; exports.ObjectLockEnabled = ObjectLockEnabled; exports.ObjectLockEventHold = ObjectLockEventHold; exports.ObjectLockLegalHold$ = ObjectLockLegalHold$; exports.ObjectLockLegalHoldStatus = ObjectLockLegalHoldStatus; exports.ObjectLockMode = ObjectLockMode; exports.ObjectLockRetention$ = ObjectLockRetention$; exports.ObjectLockRetentionMode = ObjectLockRetentionMode; exports.ObjectLockRule$ = ObjectLockRule$; exports.ObjectNotInActiveTierError = ObjectNotInActiveTierError; exports.ObjectNotInActiveTierError$ = ObjectNotInActiveTierError$; exports.ObjectOwnership = ObjectOwnership; exports.ObjectPart$ = ObjectPart$; exports.ObjectStorageClass = ObjectStorageClass; exports.ObjectVersion$ = ObjectVersion$; exports.ObjectVersionStorageClass = ObjectVersionStorageClass; exports.OptionalObjectAttributes = OptionalObjectAttributes; exports.OutputLocation$ = OutputLocation$; exports.OutputSerialization$ = OutputSerialization$; exports.Owner$ = Owner$; exports.OwnerOverride = OwnerOverride; exports.OwnershipControls$ = OwnershipControls$; exports.OwnershipControlsRule$ = OwnershipControlsRule$; exports.ParquetInput$ = ParquetInput$; exports.Part$ = Part$; exports.PartitionDateSource = PartitionDateSource; exports.PartitionedPrefix$ = PartitionedPrefix$; exports.Payer = Payer; exports.Permission = Permission; exports.PolicyStatus$ = PolicyStatus$; exports.Progress$ = Progress$; exports.ProgressEvent$ = ProgressEvent$; exports.Protocol = Protocol; exports.PublicAccessBlockConfiguration$ = PublicAccessBlockConfiguration$; exports.PutBucketAbac$ = PutBucketAbac$; exports.PutBucketAbacCommand = PutBucketAbacCommand; exports.PutBucketAbacRequest$ = PutBucketAbacRequest$; exports.PutBucketAccelerateConfiguration$ = PutBucketAccelerateConfiguration$; exports.PutBucketAccelerateConfigurationCommand = PutBucketAccelerateConfigurationCommand; exports.PutBucketAccelerateConfigurationRequest$ = PutBucketAccelerateConfigurationRequest$; exports.PutBucketAcl$ = PutBucketAcl$; exports.PutBucketAclCommand = PutBucketAclCommand; exports.PutBucketAclRequest$ = PutBucketAclRequest$; exports.PutBucketAnalyticsConfiguration$ = PutBucketAnalyticsConfiguration$; exports.PutBucketAnalyticsConfigurationCommand = PutBucketAnalyticsConfigurationCommand; exports.PutBucketAnalyticsConfigurationRequest$ = PutBucketAnalyticsConfigurationRequest$; exports.PutBucketCors$ = PutBucketCors$; exports.PutBucketCorsCommand = PutBucketCorsCommand; exports.PutBucketCorsRequest$ = PutBucketCorsRequest$; exports.PutBucketEncryption$ = PutBucketEncryption$; exports.PutBucketEncryptionCommand = PutBucketEncryptionCommand; exports.PutBucketEncryptionRequest$ = PutBucketEncryptionRequest$; exports.PutBucketIntelligentTieringConfiguration$ = PutBucketIntelligentTieringConfiguration$; exports.PutBucketIntelligentTieringConfigurationCommand = PutBucketIntelligentTieringConfigurationCommand; exports.PutBucketIntelligentTieringConfigurationRequest$ = PutBucketIntelligentTieringConfigurationRequest$; exports.PutBucketInventoryConfiguration$ = PutBucketInventoryConfiguration$; exports.PutBucketInventoryConfigurationCommand = PutBucketInventoryConfigurationCommand; exports.PutBucketInventoryConfigurationRequest$ = PutBucketInventoryConfigurationRequest$; exports.PutBucketLifecycleConfiguration$ = PutBucketLifecycleConfiguration$; exports.PutBucketLifecycleConfigurationCommand = PutBucketLifecycleConfigurationCommand; exports.PutBucketLifecycleConfigurationOutput$ = PutBucketLifecycleConfigurationOutput$; exports.PutBucketLifecycleConfigurationRequest$ = PutBucketLifecycleConfigurationRequest$; exports.PutBucketLogging$ = PutBucketLogging$; exports.PutBucketLoggingCommand = PutBucketLoggingCommand; exports.PutBucketLoggingRequest$ = PutBucketLoggingRequest$; exports.PutBucketMetricsConfiguration$ = PutBucketMetricsConfiguration$; exports.PutBucketMetricsConfigurationCommand = PutBucketMetricsConfigurationCommand; exports.PutBucketMetricsConfigurationRequest$ = PutBucketMetricsConfigurationRequest$; exports.PutBucketNotificationConfiguration$ = PutBucketNotificationConfiguration$; exports.PutBucketNotificationConfigurationCommand = PutBucketNotificationConfigurationCommand; exports.PutBucketNotificationConfigurationRequest$ = PutBucketNotificationConfigurationRequest$; exports.PutBucketOwnershipControls$ = PutBucketOwnershipControls$; exports.PutBucketOwnershipControlsCommand = PutBucketOwnershipControlsCommand; exports.PutBucketOwnershipControlsRequest$ = PutBucketOwnershipControlsRequest$; exports.PutBucketPolicy$ = PutBucketPolicy$; exports.PutBucketPolicyCommand = PutBucketPolicyCommand2; exports.PutBucketPolicyRequest$ = PutBucketPolicyRequest$; exports.PutBucketReplication$ = PutBucketReplication$; exports.PutBucketReplicationCommand = PutBucketReplicationCommand; exports.PutBucketReplicationRequest$ = PutBucketReplicationRequest$; exports.PutBucketRequestPayment$ = PutBucketRequestPayment$; exports.PutBucketRequestPaymentCommand = PutBucketRequestPaymentCommand; exports.PutBucketRequestPaymentRequest$ = PutBucketRequestPaymentRequest$; exports.PutBucketTagging$ = PutBucketTagging$; exports.PutBucketTaggingCommand = PutBucketTaggingCommand; exports.PutBucketTaggingRequest$ = PutBucketTaggingRequest$; exports.PutBucketVersioning$ = PutBucketVersioning$; exports.PutBucketVersioningCommand = PutBucketVersioningCommand; exports.PutBucketVersioningRequest$ = PutBucketVersioningRequest$; exports.PutBucketWebsite$ = PutBucketWebsite$; exports.PutBucketWebsiteCommand = PutBucketWebsiteCommand; exports.PutBucketWebsiteRequest$ = PutBucketWebsiteRequest$; exports.PutObject$ = PutObject$; exports.PutObjectAcl$ = PutObjectAcl$; exports.PutObjectAclCommand = PutObjectAclCommand; exports.PutObjectAclOutput$ = PutObjectAclOutput$; exports.PutObjectAclRequest$ = PutObjectAclRequest$; exports.PutObjectAnnotation$ = PutObjectAnnotation$; exports.PutObjectAnnotationCommand = PutObjectAnnotationCommand; exports.PutObjectAnnotationOutput$ = PutObjectAnnotationOutput$; exports.PutObjectAnnotationRequest$ = PutObjectAnnotationRequest$; exports.PutObjectCommand = PutObjectCommand2; exports.PutObjectLegalHold$ = PutObjectLegalHold$; exports.PutObjectLegalHoldCommand = PutObjectLegalHoldCommand; exports.PutObjectLegalHoldOutput$ = PutObjectLegalHoldOutput$; exports.PutObjectLegalHoldRequest$ = PutObjectLegalHoldRequest$; exports.PutObjectLockConfiguration$ = PutObjectLockConfiguration$; exports.PutObjectLockConfigurationCommand = PutObjectLockConfigurationCommand; exports.PutObjectLockConfigurationOutput$ = PutObjectLockConfigurationOutput$; exports.PutObjectLockConfigurationRequest$ = PutObjectLockConfigurationRequest$; exports.PutObjectOutput$ = PutObjectOutput$; exports.PutObjectRequest$ = PutObjectRequest$; exports.PutObjectRetention$ = PutObjectRetention$; exports.PutObjectRetentionCommand = PutObjectRetentionCommand; exports.PutObjectRetentionOutput$ = PutObjectRetentionOutput$; exports.PutObjectRetentionRequest$ = PutObjectRetentionRequest$; exports.PutObjectTagging$ = PutObjectTagging$; exports.PutObjectTaggingCommand = PutObjectTaggingCommand; exports.PutObjectTaggingOutput$ = PutObjectTaggingOutput$; exports.PutObjectTaggingRequest$ = PutObjectTaggingRequest$; exports.PutPublicAccessBlock$ = PutPublicAccessBlock$; exports.PutPublicAccessBlockCommand = PutPublicAccessBlockCommand; exports.PutPublicAccessBlockRequest$ = PutPublicAccessBlockRequest$; exports.QueueConfiguration$ = QueueConfiguration$; exports.QuoteFields = QuoteFields; exports.RecordExpiration$ = RecordExpiration$; exports.RecordsEvent$ = RecordsEvent$; exports.Redirect$ = Redirect$; exports.RedirectAllRequestsTo$ = RedirectAllRequestsTo$; exports.RenameObject$ = RenameObject$; exports.RenameObjectCommand = RenameObjectCommand; exports.RenameObjectOutput$ = RenameObjectOutput$; exports.RenameObjectRequest$ = RenameObjectRequest$; exports.ReplicaModifications$ = ReplicaModifications$; exports.ReplicaModificationsStatus = ReplicaModificationsStatus; exports.ReplicationConfiguration$ = ReplicationConfiguration$; exports.ReplicationRule$ = ReplicationRule$; exports.ReplicationRuleAndOperator$ = ReplicationRuleAndOperator$; exports.ReplicationRuleFilter$ = ReplicationRuleFilter$; exports.ReplicationRuleStatus = ReplicationRuleStatus; exports.ReplicationStatus = ReplicationStatus; exports.ReplicationTime$ = ReplicationTime$; exports.ReplicationTimeStatus = ReplicationTimeStatus; exports.ReplicationTimeValue$ = ReplicationTimeValue$; exports.RequestCharged = RequestCharged; exports.RequestPayer = RequestPayer; exports.RequestPaymentConfiguration$ = RequestPaymentConfiguration$; exports.RequestProgress$ = RequestProgress$; exports.RestoreObject$ = RestoreObject$; exports.RestoreObjectCommand = RestoreObjectCommand; exports.RestoreObjectOutput$ = RestoreObjectOutput$; exports.RestoreObjectRequest$ = RestoreObjectRequest$; exports.RestoreRequest$ = RestoreRequest$; exports.RestoreRequestType = RestoreRequestType; exports.RestoreStatus$ = RestoreStatus$; exports.RoutingRule$ = RoutingRule$; exports.S3 = S3; exports.S3Client = S3Client2; exports.S3KeyFilter$ = S3KeyFilter$; exports.S3Location$ = S3Location$; exports.S3ServiceException = S3ServiceException; exports.S3ServiceException$ = S3ServiceException$; exports.S3TablesBucketType = S3TablesBucketType; exports.S3TablesDestination$ = S3TablesDestination$; exports.S3TablesDestinationResult$ = S3TablesDestinationResult$; exports.SSEKMS$ = SSEKMS$; exports.SSEKMSEncryption$ = SSEKMSEncryption$; exports.SSES3$ = SSES3$; exports.ScanRange$ = ScanRange$; exports.SelectObjectContent$ = SelectObjectContent$; exports.SelectObjectContentCommand = SelectObjectContentCommand; exports.SelectObjectContentEventStream$ = SelectObjectContentEventStream$; exports.SelectObjectContentOutput$ = SelectObjectContentOutput$; exports.SelectObjectContentRequest$ = SelectObjectContentRequest$; exports.SelectParameters$ = SelectParameters$; exports.ServerSideEncryption = ServerSideEncryption; exports.ServerSideEncryptionByDefault$ = ServerSideEncryptionByDefault$; exports.ServerSideEncryptionConfiguration$ = ServerSideEncryptionConfiguration$; exports.ServerSideEncryptionRule$ = ServerSideEncryptionRule$; exports.SessionCredentials$ = SessionCredentials$; exports.SessionMode = SessionMode; exports.SimplePrefix$ = SimplePrefix$; exports.SourceSelectionCriteria$ = SourceSelectionCriteria$; exports.SseKmsEncryptedObjects$ = SseKmsEncryptedObjects$; exports.SseKmsEncryptedObjectsStatus = SseKmsEncryptedObjectsStatus; exports.Stats$ = Stats$; exports.StatsEvent$ = StatsEvent$; exports.StorageClass = StorageClass; exports.StorageClassAnalysis$ = StorageClassAnalysis$; exports.StorageClassAnalysisDataExport$ = StorageClassAnalysisDataExport$; exports.StorageClassAnalysisSchemaVersion = StorageClassAnalysisSchemaVersion; exports.TableSseAlgorithm = TableSseAlgorithm; exports.Tag$ = Tag$2; exports.Tagging$ = Tagging$; exports.TaggingDirective = TaggingDirective; exports.TargetGrant$ = TargetGrant$; exports.TargetObjectKeyFormat$ = TargetObjectKeyFormat$; exports.Tier = Tier; exports.Tiering$ = Tiering$; exports.TooManyParts = TooManyParts; exports.TooManyParts$ = TooManyParts$; exports.TopicConfiguration$ = TopicConfiguration$; exports.Transition$ = Transition$; exports.TransitionDefaultMinimumObjectSize = TransitionDefaultMinimumObjectSize; exports.TransitionStorageClass = TransitionStorageClass; exports.Type = Type; exports.UnsupportedMediaType = UnsupportedMediaType; exports.UnsupportedMediaType$ = UnsupportedMediaType$; exports.UpdateBucketMetadataAnnotationTableConfiguration$ = UpdateBucketMetadataAnnotationTableConfiguration$; exports.UpdateBucketMetadataAnnotationTableConfigurationCommand = UpdateBucketMetadataAnnotationTableConfigurationCommand; exports.UpdateBucketMetadataAnnotationTableConfigurationRequest$ = UpdateBucketMetadataAnnotationTableConfigurationRequest$; exports.UpdateBucketMetadataInventoryTableConfiguration$ = UpdateBucketMetadataInventoryTableConfiguration$; exports.UpdateBucketMetadataInventoryTableConfigurationCommand = UpdateBucketMetadataInventoryTableConfigurationCommand; exports.UpdateBucketMetadataInventoryTableConfigurationRequest$ = UpdateBucketMetadataInventoryTableConfigurationRequest$; exports.UpdateBucketMetadataJournalTableConfiguration$ = UpdateBucketMetadataJournalTableConfiguration$; exports.UpdateBucketMetadataJournalTableConfigurationCommand = UpdateBucketMetadataJournalTableConfigurationCommand; exports.UpdateBucketMetadataJournalTableConfigurationRequest$ = UpdateBucketMetadataJournalTableConfigurationRequest$; exports.UpdateObjectEncryption$ = UpdateObjectEncryption$; exports.UpdateObjectEncryptionCommand = UpdateObjectEncryptionCommand; exports.UpdateObjectEncryptionRequest$ = UpdateObjectEncryptionRequest$; exports.UpdateObjectEncryptionResponse$ = UpdateObjectEncryptionResponse$; exports.UploadPart$ = UploadPart$; exports.UploadPartCommand = UploadPartCommand; exports.UploadPartCopy$ = UploadPartCopy$; exports.UploadPartCopyCommand = UploadPartCopyCommand; exports.UploadPartCopyOutput$ = UploadPartCopyOutput$; exports.UploadPartCopyRequest$ = UploadPartCopyRequest$; exports.UploadPartOutput$ = UploadPartOutput$; exports.UploadPartRequest$ = UploadPartRequest$; exports.VersioningConfiguration$ = VersioningConfiguration$; exports.WebsiteConfiguration$ = WebsiteConfiguration$; exports.WriteGetObjectResponse$ = WriteGetObjectResponse$; exports.WriteGetObjectResponseCommand = WriteGetObjectResponseCommand; exports.WriteGetObjectResponseRequest$ = WriteGetObjectResponseRequest$; exports._Error$ = _Error$; exports._Object$ = _Object$; exports.errorTypeRegistries = errorTypeRegistries5; exports.paginateListBuckets = paginateListBuckets; exports.paginateListDirectoryBuckets = paginateListDirectoryBuckets; exports.paginateListObjectAnnotations = paginateListObjectAnnotations; exports.paginateListObjectsV2 = paginateListObjectsV2; exports.paginateListParts = paginateListParts; exports.waitForBucketExists = waitForBucketExists; exports.waitForBucketNotExists = waitForBucketNotExists; exports.waitForObjectExists = waitForObjectExists; exports.waitForObjectNotExists = waitForObjectNotExists; exports.waitUntilBucketExists = waitUntilBucketExists; exports.waitUntilBucketNotExists = waitUntilBucketNotExists; exports.waitUntilObjectExists = waitUntilObjectExists; exports.waitUntilObjectNotExists = waitUntilObjectNotExists; } }); // dist/config/env.js import { existsSync } from "node:fs"; // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/external.js var external_exports = {}; __export(external_exports, { $brand: () => $brand, $input: () => $input, $output: () => $output, INVALID: () => INVALID, NEVER: () => NEVER, TimePrecision: () => TimePrecision, ZodAny: () => ZodAny, ZodArray: () => ZodArray, ZodBase64: () => ZodBase64, ZodBase64URL: () => ZodBase64URL, ZodBigInt: () => ZodBigInt, ZodBigIntFormat: () => ZodBigIntFormat, ZodBoolean: () => ZodBoolean, ZodCIDRv4: () => ZodCIDRv4, ZodCIDRv6: () => ZodCIDRv6, ZodCUID: () => ZodCUID, ZodCUID2: () => ZodCUID2, ZodCatch: () => ZodCatch, ZodCodec: () => ZodCodec, ZodCompileAsyncError: () => ZodCompileAsyncError, ZodCompileUnsupportedError: () => ZodCompileUnsupportedError, ZodCreditCard: () => ZodCreditCard, ZodCustom: () => ZodCustom, ZodCustomStringFormat: () => ZodCustomStringFormat, ZodDate: () => ZodDate, ZodDefault: () => ZodDefault, ZodDiscriminatedUnion: () => ZodDiscriminatedUnion, ZodE164: () => ZodE164, ZodEmail: () => ZodEmail, ZodEmoji: () => ZodEmoji, ZodEnum: () => ZodEnum, ZodError: () => ZodError, ZodExactOptional: () => ZodExactOptional, ZodFile: () => ZodFile, ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind, ZodFunction: () => ZodFunction, ZodGUID: () => ZodGUID, ZodIBAN: () => ZodIBAN, ZodIPv4: () => ZodIPv4, ZodIPv6: () => ZodIPv6, ZodISODate: () => ZodISODate, ZodISODateTime: () => ZodISODateTime, ZodISODuration: () => ZodISODuration, ZodISOTime: () => ZodISOTime, ZodInstanceOf: () => ZodInstanceOf, ZodIntersection: () => ZodIntersection, ZodIssueCode: () => ZodIssueCode, ZodJWT: () => ZodJWT, ZodKSUID: () => ZodKSUID, ZodLazy: () => ZodLazy, ZodLiteral: () => ZodLiteral, ZodMAC: () => ZodMAC, ZodMap: () => ZodMap, ZodNaN: () => ZodNaN, ZodNanoID: () => ZodNanoID, ZodNever: () => ZodNever, ZodNonOptional: () => ZodNonOptional, ZodNull: () => ZodNull, ZodNullable: () => ZodNullable, ZodNumber: () => ZodNumber, ZodNumberFormat: () => ZodNumberFormat, ZodObject: () => ZodObject, ZodOptional: () => ZodOptional, ZodPipe: () => ZodPipe, ZodPrefault: () => ZodPrefault, ZodPreprocess: () => ZodPreprocess, ZodPromise: () => ZodPromise, ZodReadonly: () => ZodReadonly, ZodRealError: () => ZodRealError, ZodRecord: () => ZodRecord, ZodSet: () => ZodSet, ZodString: () => ZodString, ZodStringFormat: () => ZodStringFormat, ZodSuccess: () => ZodSuccess, ZodSymbol: () => ZodSymbol, ZodTemplateLiteral: () => ZodTemplateLiteral, ZodTransform: () => ZodTransform, ZodTuple: () => ZodTuple, ZodType: () => ZodType, ZodULID: () => ZodULID, ZodURL: () => ZodURL, ZodUUID: () => ZodUUID, ZodUndefined: () => ZodUndefined, ZodUnion: () => ZodUnion, ZodUnknown: () => ZodUnknown, ZodVoid: () => ZodVoid, ZodXID: () => ZodXID, ZodXor: () => ZodXor, _ZodString: () => _ZodString, _default: () => _default2, _function: () => _function, any: () => any, array: () => array, base64: () => base642, base64url: () => base64url2, bigint: () => bigint2, boolean: () => boolean2, catch: () => _catch2, check: () => check, cidrv4: () => cidrv42, cidrv6: () => cidrv62, clone: () => clone, codec: () => codec, coerce: () => coerce_exports, compile: () => compile, config: () => config, core: () => core_exports2, creditCard: () => creditCard2, cuid: () => cuid3, cuid2: () => cuid22, currencyCode: () => currencyCode2, custom: () => custom, date: () => date2, decode: () => decode2, decodeAsync: () => decodeAsync2, deepPartial: () => deepPartial, describe: () => describe2, discriminatedUnion: () => discriminatedUnion, e164: () => e1642, email: () => email2, emoji: () => emoji2, encode: () => encode2, encodeAsync: () => encodeAsync2, endsWith: () => _endsWith, enum: () => _enum2, exactOptional: () => exactOptional, file: () => file, flattenError: () => flattenError, float32: () => float32, float64: () => float64, formatError: () => formatError, fromJSONSchema: () => fromJSONSchema, function: () => _function, getDiscriminatedOption: () => getDiscriminatedOption, getErrorMap: () => getErrorMap, globalRegistry: () => globalRegistry, gt: () => _gt, gte: () => _gte, guid: () => guid2, hash: () => hash, hex: () => hex2, hostname: () => hostname2, httpUrl: () => httpUrl, iban: () => iban2, includes: () => _includes, input: () => input, instanceof: () => _instanceof, int: () => int, int32: () => int32, int64: () => int64, intersection: () => intersection, invertCodec: () => invertCodec, ipv4: () => ipv42, ipv6: () => ipv62, iso: () => iso_exports, json: () => json, jwt: () => jwt, keyof: () => keyof, ksuid: () => ksuid2, lazy: () => lazy, length: () => _length, literal: () => literal, locales: () => locales_exports, looseObject: () => looseObject, looseRecord: () => looseRecord, lowercase: () => _lowercase, lt: () => _lt, lte: () => _lte, mac: () => mac2, map: () => map, maxLength: () => _maxLength, maxSize: () => _maxSize, memoizer: () => memoizer, meta: () => meta2, mime: () => _mime, minLength: () => _minLength, minSize: () => _minSize, multipleOf: () => _multipleOf, nan: () => nan, nanoid: () => nanoid2, nativeEnum: () => nativeEnum, negative: () => _negative, never: () => never, nonnegative: () => _nonnegative, nonoptional: () => nonoptional, nonpositive: () => _nonpositive, normalize: () => _normalize, null: () => _null3, nullable: () => nullable, nullish: () => nullish2, number: () => number2, object: () => object, optional: () => optional, output: () => output, overwrite: () => _overwrite, parse: () => parse2, parseAsync: () => parseAsync2, partialRecord: () => partialRecord, pipe: () => pipe, positive: () => _positive, prefault: () => prefault, preprocess: () => preprocess, prettifyError: () => prettifyError, promise: () => promise, properties: () => _properties, property: () => _property, readonly: () => readonly, record: () => record, refine: () => refine, regex: () => _regex, regexes: () => regexes_exports, registry: () => registry, safeDecode: () => safeDecode2, safeDecodeAsync: () => safeDecodeAsync2, safeEncode: () => safeEncode2, safeEncodeAsync: () => safeEncodeAsync2, safeParse: () => safeParse2, safeParseAsync: () => safeParseAsync2, set: () => set, setErrorMap: () => setErrorMap, size: () => _size, slugify: () => _slugify, startsWith: () => _startsWith, strictObject: () => strictObject, string: () => string2, stringFormat: () => stringFormat, stringbool: () => stringbool, success: () => success, superRefine: () => superRefine, symbol: () => symbol, templateLiteral: () => templateLiteral, toJSONSchema: () => toJSONSchema, toLowerCase: () => _toLowerCase, toUpperCase: () => _toUpperCase, toZod: () => toZod, transform: () => transform, treeifyError: () => treeifyError, trim: () => _trim, tuple: () => tuple, uint32: () => uint32, uint64: () => uint64, ulid: () => ulid2, undefined: () => _undefined3, union: () => union, unknown: () => unknown, uppercase: () => _uppercase, url: () => url, util: () => util_exports, uuid: () => uuid2, uuidv4: () => uuidv4, uuidv6: () => uuidv6, uuidv7: () => uuidv7, validate: () => validate, validateAsync: () => validateAsync, void: () => _void2, withParser: () => withParser, xid: () => xid2, xor: () => xor }); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/index.js var core_exports2 = {}; __export(core_exports2, { $ZodAny: () => $ZodAny, $ZodArray: () => $ZodArray, $ZodAsyncError: () => $ZodAsyncError, $ZodBase64: () => $ZodBase64, $ZodBase64URL: () => $ZodBase64URL, $ZodBigInt: () => $ZodBigInt, $ZodBigIntFormat: () => $ZodBigIntFormat, $ZodBoolean: () => $ZodBoolean, $ZodCIDRv4: () => $ZodCIDRv4, $ZodCIDRv6: () => $ZodCIDRv6, $ZodCUID: () => $ZodCUID, $ZodCUID2: () => $ZodCUID2, $ZodCatch: () => $ZodCatch, $ZodCheck: () => $ZodCheck, $ZodCheckBigIntFormat: () => $ZodCheckBigIntFormat, $ZodCheckEndsWith: () => $ZodCheckEndsWith, $ZodCheckGreaterThan: () => $ZodCheckGreaterThan, $ZodCheckIncludes: () => $ZodCheckIncludes, $ZodCheckLengthEquals: () => $ZodCheckLengthEquals, $ZodCheckLessThan: () => $ZodCheckLessThan, $ZodCheckLowerCase: () => $ZodCheckLowerCase, $ZodCheckMaxLength: () => $ZodCheckMaxLength, $ZodCheckMaxSize: () => $ZodCheckMaxSize, $ZodCheckMimeType: () => $ZodCheckMimeType, $ZodCheckMinLength: () => $ZodCheckMinLength, $ZodCheckMinSize: () => $ZodCheckMinSize, $ZodCheckMultipleOf: () => $ZodCheckMultipleOf, $ZodCheckNumberFormat: () => $ZodCheckNumberFormat, $ZodCheckOverwrite: () => $ZodCheckOverwrite, $ZodCheckProperties: () => $ZodCheckProperties, $ZodCheckProperty: () => $ZodCheckProperty, $ZodCheckRegex: () => $ZodCheckRegex, $ZodCheckSizeEquals: () => $ZodCheckSizeEquals, $ZodCheckStartsWith: () => $ZodCheckStartsWith, $ZodCheckStringFormat: () => $ZodCheckStringFormat, $ZodCheckUpperCase: () => $ZodCheckUpperCase, $ZodCodec: () => $ZodCodec, $ZodCreditCard: () => $ZodCreditCard, $ZodCustom: () => $ZodCustom, $ZodCustomStringFormat: () => $ZodCustomStringFormat, $ZodCyclicError: () => $ZodCyclicError, $ZodDate: () => $ZodDate, $ZodDefault: () => $ZodDefault, $ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion, $ZodE164: () => $ZodE164, $ZodEmail: () => $ZodEmail, $ZodEmoji: () => $ZodEmoji, $ZodEncodeError: () => $ZodEncodeError, $ZodEnum: () => $ZodEnum, $ZodError: () => $ZodError, $ZodExactOptional: () => $ZodExactOptional, $ZodFile: () => $ZodFile, $ZodFunction: () => $ZodFunction, $ZodGUID: () => $ZodGUID, $ZodIBAN: () => $ZodIBAN, $ZodIPv4: () => $ZodIPv4, $ZodIPv6: () => $ZodIPv6, $ZodISODate: () => $ZodISODate, $ZodISODateTime: () => $ZodISODateTime, $ZodISODuration: () => $ZodISODuration, $ZodISOTime: () => $ZodISOTime, $ZodIntersection: () => $ZodIntersection, $ZodJWT: () => $ZodJWT, $ZodKSUID: () => $ZodKSUID, $ZodLazy: () => $ZodLazy, $ZodLiteral: () => $ZodLiteral, $ZodMAC: () => $ZodMAC, $ZodMap: () => $ZodMap, $ZodNaN: () => $ZodNaN, $ZodNanoID: () => $ZodNanoID, $ZodNever: () => $ZodNever, $ZodNonOptional: () => $ZodNonOptional, $ZodNull: () => $ZodNull, $ZodNullable: () => $ZodNullable, $ZodNumber: () => $ZodNumber, $ZodNumberFormat: () => $ZodNumberFormat, $ZodObject: () => $ZodObject, $ZodObjectJIT: () => $ZodObjectJIT, $ZodOptional: () => $ZodOptional, $ZodPipe: () => $ZodPipe, $ZodPrefault: () => $ZodPrefault, $ZodPreprocess: () => $ZodPreprocess, $ZodPromise: () => $ZodPromise, $ZodReadonly: () => $ZodReadonly, $ZodRealError: () => $ZodRealError, $ZodRecord: () => $ZodRecord, $ZodRegistry: () => $ZodRegistry, $ZodSet: () => $ZodSet, $ZodString: () => $ZodString, $ZodStringFormat: () => $ZodStringFormat, $ZodSuccess: () => $ZodSuccess, $ZodSymbol: () => $ZodSymbol, $ZodTemplateLiteral: () => $ZodTemplateLiteral, $ZodTransform: () => $ZodTransform, $ZodTuple: () => $ZodTuple, $ZodType: () => $ZodType, $ZodULID: () => $ZodULID, $ZodURL: () => $ZodURL, $ZodUUID: () => $ZodUUID, $ZodUndefined: () => $ZodUndefined, $ZodUnion: () => $ZodUnion, $ZodUnknown: () => $ZodUnknown, $ZodVoid: () => $ZodVoid, $ZodXID: () => $ZodXID, $ZodXor: () => $ZodXor, $brand: () => $brand, $constructor: () => $constructor, $input: () => $input, $output: () => $output, Doc: () => Doc, INVALID: () => INVALID, JSONSchema: () => json_schema_exports, JSONSchemaGenerator: () => JSONSchemaGenerator, NEVER: () => NEVER, TimePrecision: () => TimePrecision, URL_BAD_FORMAT: () => URL_BAD_FORMAT, URL_UNPARSEABLE: () => URL_UNPARSEABLE, ZodCompileAsyncError: () => ZodCompileAsyncError, ZodCompileUnsupportedError: () => ZodCompileUnsupportedError, _any: () => _any, _array: () => _array, _base64: () => _base64, _base64url: () => _base64url, _bigint: () => _bigint, _boolean: () => _boolean, _catch: () => _catch, _check: () => _check, _cidrv4: () => _cidrv4, _cidrv6: () => _cidrv6, _coercedBigint: () => _coercedBigint, _coercedBoolean: () => _coercedBoolean, _coercedDate: () => _coercedDate, _coercedNumber: () => _coercedNumber, _coercedString: () => _coercedString, _creditCard: () => _creditCard, _cuid: () => _cuid, _cuid2: () => _cuid2, _custom: () => _custom, _date: () => _date, _decode: () => _decode, _decodeAsync: () => _decodeAsync, _default: () => _default, _discriminatedUnion: () => _discriminatedUnion, _e164: () => _e164, _email: () => _email, _emoji: () => _emoji2, _encode: () => _encode, _encodeAsync: () => _encodeAsync, _endsWith: () => _endsWith, _enum: () => _enum, _file: () => _file, _float32: () => _float32, _float64: () => _float64, _gt: () => _gt, _gte: () => _gte, _guid: () => _guid, _iban: () => _iban, _includes: () => _includes, _int: () => _int, _int32: () => _int32, _int64: () => _int64, _intersection: () => _intersection, _ipv4: () => _ipv4, _ipv6: () => _ipv6, _isoDate: () => _isoDate, _isoDateTime: () => _isoDateTime, _isoDuration: () => _isoDuration, _isoTime: () => _isoTime, _jwt: () => _jwt, _ksuid: () => _ksuid, _lazy: () => _lazy, _length: () => _length, _literal: () => _literal, _lowercase: () => _lowercase, _lt: () => _lt, _lte: () => _lte, _mac: () => _mac, _map: () => _map, _max: () => _lte, _maxLength: () => _maxLength, _maxSize: () => _maxSize, _mime: () => _mime, _min: () => _gte, _minLength: () => _minLength, _minSize: () => _minSize, _multipleOf: () => _multipleOf, _nan: () => _nan, _nanoid: () => _nanoid, _nativeEnum: () => _nativeEnum, _negative: () => _negative, _never: () => _never, _nonnegative: () => _nonnegative, _nonoptional: () => _nonoptional, _nonpositive: () => _nonpositive, _normalize: () => _normalize, _null: () => _null2, _nullable: () => _nullable, _number: () => _number, _optional: () => _optional, _overwrite: () => _overwrite, _parse: () => _parse, _parseAsync: () => _parseAsync, _pipe: () => _pipe, _positive: () => _positive, _promise: () => _promise, _properties: () => _properties, _property: () => _property, _readonly: () => _readonly, _record: () => _record, _refine: () => _refine, _regex: () => _regex, _safeDecode: () => _safeDecode, _safeDecodeAsync: () => _safeDecodeAsync, _safeEncode: () => _safeEncode, _safeEncodeAsync: () => _safeEncodeAsync, _safeParse: () => _safeParse, _safeParseAsync: () => _safeParseAsync, _set: () => _set, _size: () => _size, _slugify: () => _slugify, _startsWith: () => _startsWith, _string: () => _string, _stringFormat: () => _stringFormat, _stringbool: () => _stringbool, _success: () => _success, _superRefine: () => _superRefine, _symbol: () => _symbol, _templateLiteral: () => _templateLiteral, _toLowerCase: () => _toLowerCase, _toUpperCase: () => _toUpperCase, _transform: () => _transform, _trim: () => _trim, _tuple: () => _tuple, _uint32: () => _uint32, _uint64: () => _uint64, _ulid: () => _ulid, _undefined: () => _undefined2, _union: () => _union, _unknown: () => _unknown, _uppercase: () => _uppercase, _url: () => _url, _uuid: () => _uuid, _uuidv4: () => _uuidv4, _uuidv6: () => _uuidv6, _uuidv7: () => _uuidv7, _void: () => _void, _xid: () => _xid, _xor: () => _xor, base64Charset: () => base64Charset, base64urlCharset: () => base64urlCharset, canParseURL: () => canParseURL, clone: () => clone, compile: () => compile, compileFn: () => compileFn, config: () => config, createStandardJSONSchemaMethod: () => createStandardJSONSchemaMethod, createToJSONSchemaMethod: () => createToJSONSchemaMethod, decode: () => decode, decodeAsync: () => decodeAsync, describe: () => describe, encode: () => encode, encodeAsync: () => encodeAsync, extractDefs: () => extractDefs, finalize: () => finalize, flattenError: () => flattenError, formatError: () => formatError, getDiscriminatedOption: () => getDiscriminatedOption, globalConfig: () => globalConfig, globalRegistry: () => globalRegistry, handleUnrepresentable: () => handleUnrepresentable, initializeContext: () => initializeContext, isBackEdge: () => isBackEdge, isRecursiveSchema: () => isRecursiveSchema, isValidBase64: () => isValidBase64, isValidBase64URL: () => isValidBase64URL, isValidCIDRv6: () => isValidCIDRv6, isValidCreditCard: () => isValidCreditCard, isValidIBAN: () => isValidIBAN, isValidIPv6: () => isValidIPv6, isValidJWT: () => isValidJWT, locales: () => locales_exports, memoizer: () => memoizer, mergeValues: () => mergeValues, meta: () => meta, parse: () => parse, parseAsync: () => parseAsync, parseURLObject: () => parseURLObject, prettifyError: () => prettifyError, process: () => processSchema, processSchema: () => processSchema, regexes: () => regexes_exports, registry: () => registry, safeDecode: () => safeDecode, safeDecodeAsync: () => safeDecodeAsync, safeEncode: () => safeEncode, safeEncodeAsync: () => safeEncodeAsync, safeParse: () => safeParse, safeParseAsync: () => safeParseAsync, standardProps: () => standardProps, stripTabAndNewline: () => stripTabAndNewline, toDotPath: () => toDotPath, toJSONSchema: () => toJSONSchema, toZod: () => toZod, treeifyError: () => treeifyError, urlHostnameOk: () => urlHostnameOk, urlProtocolOk: () => urlProtocolOk, util: () => util_exports, validate: () => validate, validateAsync: () => validateAsync, validateURL: () => validateURL, version: () => version, withParser: () => withParser }); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/util.js var util_exports = {}; __export(util_exports, { BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES, CONSTANT_CATCH: () => CONSTANT_CATCH, Class: () => Class, NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES, aborted: () => aborted, allowsEval: () => allowsEval, assert: () => assert, assertEqual: () => assertEqual, assertIs: () => assertIs, assertNever: () => assertNever, assertNotEqual: () => assertNotEqual, assignProp: () => assignProp, attachSchema: () => attachSchema, base64ToUint8Array: () => base64ToUint8Array, base64urlToUint8Array: () => base64urlToUint8Array, cached: () => cached, captureStackTrace: () => captureStackTrace, cleanEnum: () => cleanEnum, cleanRegex: () => cleanRegex, clone: () => clone, cloneDef: () => cloneDef, codePointLength: () => codePointLength, constantCatch: () => constantCatch, createTransparentProxy: () => createTransparentProxy, defineLazy: () => defineLazy, defineLazyInternal: () => defineLazyInternal, derived: () => derived, esc: () => esc, escapeRegex: () => escapeRegex, explicitlyAborted: () => explicitlyAborted, extend: () => extend, finalizeIssue: () => finalizeIssue, floatSafeRemainder: () => floatSafeRemainder, getElementAtPath: () => getElementAtPath, getEnumValues: () => getEnumValues, getLengthableOrigin: () => getLengthableOrigin, getParsedType: () => getParsedType, getSizableOrigin: () => getSizableOrigin, hexToUint8Array: () => hexToUint8Array, hide: () => hide, installLazyProp: () => installLazyProp, isObject: () => isObject, isPlainObject: () => isPlainObject, issue: () => issue, joinValues: () => joinValues, jsonStringifyReplacer: () => jsonStringifyReplacer, members: () => members, merge: () => merge, mergeDefs: () => mergeDefs, normalizeParams: () => normalizeParams, nullish: () => nullish, numKeys: () => numKeys, objectClone: () => objectClone, omit: () => omit, optionalKeys: () => optionalKeys, own: () => own, parsedType: () => parsedType, partial: () => partial, pick: () => pick, prefixIssues: () => prefixIssues, primitiveTypes: () => primitiveTypes, promiseAllObject: () => promiseAllObject, propertyKeyTypes: () => propertyKeyTypes, randomString: () => randomString, rawShape: () => rawShape, required: () => required, safeExtend: () => safeExtend, shallowClone: () => shallowClone, sizeCaps: () => sizeCaps, slugify: () => slugify, stringifyPrimitive: () => stringifyPrimitive, toZod: () => toZod, uint8ArrayToBase64: () => uint8ArrayToBase64, uint8ArrayToBase64url: () => uint8ArrayToBase64url, uint8ArrayToHex: () => uint8ArrayToHex, unwrapMessage: () => unwrapMessage }); function assertEqual(val) { return val; } __name(assertEqual, "assertEqual"); function assertNotEqual(val) { return val; } __name(assertNotEqual, "assertNotEqual"); function toZod() { return (schema2) => schema2; } __name(toZod, "toZod"); function assertIs(_arg) { } __name(assertIs, "assertIs"); function assertNever(_x) { throw new Error("Unexpected value in exhaustive check"); } __name(assertNever, "assertNever"); function assert(_) { } __name(assert, "assert"); function getEnumValues(entries) { const numericValues = Object.values(entries).filter((v) => typeof v === "number"); const values = Object.entries(entries).filter(([k5, _]) => numericValues.indexOf(+k5) === -1).map(([_, v]) => v); return values; } __name(getEnumValues, "getEnumValues"); function joinValues(array2, separator = "|") { return array2.map((val) => stringifyPrimitive(val)).join(separator); } __name(joinValues, "joinValues"); function jsonStringifyReplacer(_, value) { if (typeof value === "bigint") return value.toString(); return value; } __name(jsonStringifyReplacer, "jsonStringifyReplacer"); var Cached = class { static { __name(this, "Cached"); } constructor(getter) { this._getter = getter; this._value = void 0; } get value() { const getter = this._getter; if (getter !== void 0) { this._value = getter(); this._getter = void 0; } return this._value; } }; function cached(getter) { return new Cached(getter); } __name(cached, "cached"); function nullish(input2) { return input2 === null || input2 === void 0; } __name(nullish, "nullish"); function cleanRegex(source) { const start = source.startsWith("^") ? 1 : 0; const end = source.endsWith("$") ? source.length - 1 : source.length; return source.slice(start, end); } __name(cleanRegex, "cleanRegex"); function floatSafeRemainder(val, step) { const ratio = val / step; const roundedRatio = Math.round(ratio); const tolerance = 4 * Number.EPSILON * Math.max(Math.abs(ratio), 1); if (Math.abs(ratio - roundedRatio) < tolerance) return 0; return ratio - roundedRatio; } __name(floatSafeRemainder, "floatSafeRemainder"); var EVALUATING = /* @__PURE__ */ Symbol("evaluating"); function defineLazy(object2, key, getter) { let value = void 0; Object.defineProperty(object2, key, { get() { if (value === EVALUATING) { return void 0; } if (value === void 0) { value = EVALUATING; value = getter(); } return value; }, set(v) { Object.defineProperty(object2, key, { value: v // configurable: true, }); }, configurable: true }); } __name(defineLazy, "defineLazy"); function objectClone(obj) { return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj)); } __name(objectClone, "objectClone"); function assignProp(target, prop, value) { Object.defineProperty(target, prop, { value, writable: true, enumerable: true, configurable: true }); } __name(assignProp, "assignProp"); function rawShape(def) { const desc = Object.getOwnPropertyDescriptor(def, "shape"); return desc?.get ? desc.get.raw : desc?.value; } __name(rawShape, "rawShape"); function sourceShape(schema2) { return rawShape(schema2._zod.def) ?? schema2._zod.def.shape; } __name(sourceShape, "sourceShape"); function deferProp(target, key, getter) { Object.defineProperty(target, key, { get() { const value = getter(); assignProp(this, key, value); return value; }, enumerable: true, configurable: true }); } __name(deferProp, "deferProp"); function putProp(target, key, value) { if (key in target) assignProp(target, key, value); else target[key] = value; } __name(putProp, "putProp"); function mirrorShape(target, source, keys, wrap) { const raw4 = sourceShape(source); for (const key of keys) { const desc = Object.getOwnPropertyDescriptor(raw4, key); if (!desc.enumerable) continue; if (desc.get) { deferProp(target, key, () => { const value = source._zod.def.shape[key]; return wrap ? wrap(value, key) : value; }); } else putProp(target, key, wrap ? wrap(desc.value, key) : desc.value); } } __name(mirrorShape, "mirrorShape"); function mirrorProps(target, source) { for (const key of Reflect.ownKeys(source)) { const desc = Object.getOwnPropertyDescriptor(source, key); if (!desc.enumerable) continue; if (desc.get) deferProp(target, key, () => source[key]); else putProp(target, key, desc.value); } } __name(mirrorProps, "mirrorProps"); function mergeDefs(...defs) { const mergedDescriptors = {}; for (const def of defs) { const descriptors = Object.getOwnPropertyDescriptors(def); Object.assign(mergedDescriptors, descriptors); } return Object.defineProperties({}, mergedDescriptors); } __name(mergeDefs, "mergeDefs"); function cloneDef(schema2) { return mergeDefs(schema2._zod.def); } __name(cloneDef, "cloneDef"); function getElementAtPath(obj, path2) { if (!path2) return obj; return path2.reduce((acc, key) => acc?.[key], obj); } __name(getElementAtPath, "getElementAtPath"); function promiseAllObject(promisesObj) { const keys = Object.keys(promisesObj); const promises = keys.map((key) => promisesObj[key]); return Promise.all(promises).then((results) => { const resolvedObj = {}; for (let i5 = 0; i5 < keys.length; i5++) { resolvedObj[keys[i5]] = results[i5]; } return resolvedObj; }); } __name(promiseAllObject, "promiseAllObject"); function randomString(length = 10) { const chars = "abcdefghijklmnopqrstuvwxyz"; let str = ""; for (let i5 = 0; i5 < length; i5++) { str += chars[Math.floor(Math.random() * chars.length)]; } return str; } __name(randomString, "randomString"); function esc(str) { return JSON.stringify(str); } __name(esc, "esc"); function slugify(input2) { return input2.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, ""); } __name(slugify, "slugify"); var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => { }; function isObject(data) { return typeof data === "object" && data !== null && !Array.isArray(data); } __name(isObject, "isObject"); var allowsEval = /* @__PURE__ */ cached(() => { if (globalConfig.jitless) { return false; } if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) { return false; } try { const F = Function; new F(""); return true; } catch (_) { return false; } }); function isPlainObject(o3) { if (isObject(o3) === false) return false; const ctor = o3.constructor; if (ctor === void 0) return true; if (typeof ctor !== "function") return true; const prot = ctor.prototype; if (isObject(prot) === false) return false; if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) { return false; } return true; } __name(isPlainObject, "isPlainObject"); function shallowClone(o3) { if (isPlainObject(o3)) return { ...o3 }; if (Array.isArray(o3)) return [...o3]; if (o3 instanceof Map) return new Map(o3); if (o3 instanceof Set) return new Set(o3); return o3; } __name(shallowClone, "shallowClone"); function numKeys(data) { let keyCount = 0; for (const key in data) { if (Object.prototype.hasOwnProperty.call(data, key)) { keyCount++; } } return keyCount; } __name(numKeys, "numKeys"); var getParsedType = /* @__PURE__ */ __name((data) => { const t = typeof data; switch (t) { case "undefined": return "undefined"; case "string": return "string"; case "number": return Number.isNaN(data) ? "nan" : "number"; case "boolean": return "boolean"; case "function": return "function"; case "bigint": return "bigint"; case "symbol": return "symbol"; case "object": if (Array.isArray(data)) { return "array"; } if (data === null) { return "null"; } if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") { return "promise"; } if (typeof Map !== "undefined" && data instanceof Map) { return "map"; } if (typeof Set !== "undefined" && data instanceof Set) { return "set"; } if (typeof Date !== "undefined" && data instanceof Date) { return "date"; } if (typeof File !== "undefined" && data instanceof File) { return "file"; } return "object"; default: throw new Error(`Unknown data type: ${t}`); } }, "getParsedType"); var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]); var primitiveTypes = /* @__PURE__ */ new Set([ "string", "number", "bigint", "boolean", "symbol", "undefined" ]); function escapeRegex(str) { return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } __name(escapeRegex, "escapeRegex"); function clone(inst, def, params) { const cl = new inst._zod.constr(def ?? inst._zod.def); if (!def || params?.parent) cl._zod.parent = inst; return cl; } __name(clone, "clone"); function normalizeParams(_params) { const params = _params; if (!params) return {}; if (typeof params === "string") return { error: /* @__PURE__ */ __name(() => params, "error") }; if (params?.message !== void 0) { if (params?.error !== void 0) throw new Error("Cannot specify both `message` and `error` params"); params.error = params.message; } delete params.message; if (typeof params.error === "string") return { ...params, error: /* @__PURE__ */ __name(() => params.error, "error") }; return params; } __name(normalizeParams, "normalizeParams"); function createTransparentProxy(getter) { let target; return new Proxy({}, { get(_, prop, receiver) { target ?? (target = getter()); return Reflect.get(target, prop, receiver); }, set(_, prop, value, receiver) { target ?? (target = getter()); return Reflect.set(target, prop, value, receiver); }, has(_, prop) { target ?? (target = getter()); return Reflect.has(target, prop); }, deleteProperty(_, prop) { target ?? (target = getter()); return Reflect.deleteProperty(target, prop); }, ownKeys(_) { target ?? (target = getter()); return Reflect.ownKeys(target); }, getOwnPropertyDescriptor(_, prop) { target ?? (target = getter()); return Reflect.getOwnPropertyDescriptor(target, prop); }, defineProperty(_, prop, descriptor) { target ?? (target = getter()); return Reflect.defineProperty(target, prop, descriptor); } }); } __name(createTransparentProxy, "createTransparentProxy"); function stringifyPrimitive(value) { if (typeof value === "bigint") return value.toString() + "n"; if (typeof value === "string") return `"${value}"`; return `${value}`; } __name(stringifyPrimitive, "stringifyPrimitive"); function optionalKeys(shape) { return Object.keys(shape).filter((k5) => { return shape[k5]._zod.optin !== void 0 && shape[k5]._zod.optout === "optional"; }); } __name(optionalKeys, "optionalKeys"); var NUMBER_FORMAT_RANGES = /* @__PURE__ */ (() => ({ safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER], int32: [-2147483648, 2147483647], uint32: [0, 4294967295], float32: [-34028234663852886e22, 34028234663852886e22], float64: [-Number.MAX_VALUE, Number.MAX_VALUE] }))(); var BIGINT_FORMAT_RANGES = { int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")], uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")] }; function pick(schema2, mask) { const currDef = schema2._zod.def; const checks = currDef.checks; const hasChecks = checks && checks.length > 0; if (hasChecks) { throw new Error(".pick() cannot be used on object schemas containing refinements"); } const newShape = {}; mirrorShape(newShape, schema2, maskedKeys(schema2, mask)); return clone(schema2, mergeDefs(currDef, { shape: newShape, checks: [] })); } __name(pick, "pick"); function maskedKeys(schema2, mask) { const raw4 = sourceShape(schema2); const keys = []; for (const key of Reflect.ownKeys(mask)) { if (!Object.getOwnPropertyDescriptor(raw4, key)?.enumerable) { throw new Error(`Unrecognized key: "${String(key)}"`); } if (mask[key]) keys.push(key); } return keys; } __name(maskedKeys, "maskedKeys"); function omit(schema2, mask) { const currDef = schema2._zod.def; const checks = currDef.checks; const hasChecks = checks && checks.length > 0; if (hasChecks) { throw new Error(".omit() cannot be used on object schemas containing refinements"); } const omitted = new Set(maskedKeys(schema2, mask)); const newShape = {}; mirrorShape(newShape, schema2, Reflect.ownKeys(sourceShape(schema2)).filter((key) => !omitted.has(key))); return clone(schema2, mergeDefs(currDef, { shape: newShape, checks: [] })); } __name(omit, "omit"); function extend(schema2, shape) { if (!isPlainObject(shape)) { throw new Error("Invalid input to extend: expected a plain object"); } const checks = schema2._zod.def.checks; const hasChecks = checks && checks.length > 0; if (hasChecks) { const existingShape = sourceShape(schema2); for (const key of Reflect.ownKeys(shape)) { if (Object.getOwnPropertyDescriptor(existingShape, key) !== void 0) { throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead."); } } } return clone(schema2, mergeDefs(schema2._zod.def, { shape: extended(schema2, shape) })); } __name(extend, "extend"); function extended(schema2, shape) { const newShape = {}; mirrorShape(newShape, schema2, Reflect.ownKeys(sourceShape(schema2))); mirrorProps(newShape, shape); return newShape; } __name(extended, "extended"); function safeExtend(schema2, shape) { if (!isPlainObject(shape)) { throw new Error("Invalid input to safeExtend: expected a plain object"); } return clone(schema2, mergeDefs(schema2._zod.def, { shape: extended(schema2, shape) })); } __name(safeExtend, "safeExtend"); function merge(a5, b5) { if (!b5?._zod?.def) { throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`."); } if (a5._zod.def.checks?.length) { throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead."); } const newShape = {}; mirrorShape(newShape, a5, Reflect.ownKeys(sourceShape(a5))); mirrorShape(newShape, b5, Reflect.ownKeys(sourceShape(b5))); const def = mergeDefs(a5._zod.def, { shape: newShape, get catchall() { return b5._zod.def.catchall; }, checks: b5._zod.def.checks ?? [] }); return clone(a5, def); } __name(merge, "merge"); function partial(Class2, schema2, mask, name2 = "partial") { const currDef = schema2._zod.def; const checks = currDef.checks; const hasChecks = checks && checks.length > 0; if (hasChecks) { throw new Error(`.${name2}() cannot be used on object schemas containing refinements`); } const selected = mask ? new Set(maskedKeys(schema2, mask)) : void 0; const newShape = {}; mirrorShape(newShape, schema2, Reflect.ownKeys(sourceShape(schema2)), Class2 && ((value, key) => selected && !selected.has(key) ? value : new Class2({ type: "optional", innerType: value }))); return clone(schema2, mergeDefs(schema2._zod.def, { shape: newShape, checks: [] })); } __name(partial, "partial"); function required(Class2, schema2, mask) { const selected = mask ? new Set(maskedKeys(schema2, mask)) : void 0; const newShape = {}; mirrorShape(newShape, schema2, Reflect.ownKeys(sourceShape(schema2)), (value, key) => ( // overwrite with non-optional selected && !selected.has(key) ? value : new Class2({ type: "nonoptional", innerType: value }) )); return clone(schema2, mergeDefs(schema2._zod.def, { shape: newShape })); } __name(required, "required"); function aborted(x, startIndex = 0) { if (x.aborted === true) return true; for (let i5 = startIndex; i5 < x.issues.length; i5++) { if (x.issues[i5]?.continue !== true) { return true; } } return false; } __name(aborted, "aborted"); function explicitlyAborted(x, startIndex = 0) { if (x.aborted === true) return true; for (let i5 = startIndex; i5 < x.issues.length; i5++) { if (x.issues[i5]?.continue === false) { return true; } } return false; } __name(explicitlyAborted, "explicitlyAborted"); function prefixIssues(path2, issues) { return issues.map((iss) => { var _a4; (_a4 = iss).path ?? (_a4.path = []); iss.path.unshift(path2); return iss; }); } __name(prefixIssues, "prefixIssues"); function unwrapMessage(message) { return typeof message === "string" ? message : message?.message; } __name(unwrapMessage, "unwrapMessage"); function sizeCaps(defChecks) { const caps = []; for (const ch of defChecks ?? []) { const d5 = ch._zod.def; if (!/_(length|size)$|_equals$/.test(d5.check)) break; const max = d5.maximum ?? d5.length ?? d5.size; if (max >= 0) caps.push([max, ch]); } return caps; } __name(sizeCaps, "sizeCaps"); function attachSchema(issues, start, inst) { var _a4; for (let i5 = start; i5 < issues.length; i5++) { (_a4 = issues[i5]).schema ?? (_a4.schema = inst); } } __name(attachSchema, "attachSchema"); function finalizeIssue(iss, ctx, config3) { var _a4; const traits = iss.inst?._zod?.traits; if (traits?.has("$ZodType")) { if (traits.has("$ZodCheck")) (_a4 = iss).schema ?? (_a4.schema = iss.inst); else iss.schema = iss.inst; } const schemaError = iss.schema !== iss.inst ? iss.schema?._zod.def?.error : void 0; const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(schemaError?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config3.customError?.(iss)) ?? unwrapMessage(config3.localeError?.(iss)) ?? "Invalid input"; const full = {}; for (const k5 of Object.keys(iss)) { if (k5 === "inst" || k5 === "schema" || k5 === "continue" || k5 === "input" || k5 === "__proto__") continue; full[k5] = iss[k5]; } full.path ?? (full.path = []); full.message = message; if (ctx?.reportInput) { full.input = iss.input; } return full; } __name(finalizeIssue, "finalizeIssue"); function getSizableOrigin(input2) { if (input2 instanceof Set) return "set"; if (input2 instanceof Map) return "map"; if (input2 instanceof File) return "file"; return "unknown"; } __name(getSizableOrigin, "getSizableOrigin"); var highSurrogate = /[\uD800-\uDBFF]/; function codePointLength(str) { const units = str.length; if (!highSurrogate.test(str)) return units; let count = units; for (let i5 = 0; i5 < units - 1; i5++) { if ((str.charCodeAt(i5) & 64512) === 55296 && (str.charCodeAt(i5 + 1) & 64512) === 56320) { count--; i5++; } } return count; } __name(codePointLength, "codePointLength"); function getLengthableOrigin(input2) { if (Array.isArray(input2)) return "array"; if (typeof input2 === "string") return "string"; return "unknown"; } __name(getLengthableOrigin, "getLengthableOrigin"); function parsedType(data) { const t = typeof data; switch (t) { case "number": { return Number.isNaN(data) ? "nan" : "number"; } case "object": { if (data === null) { return "null"; } if (Array.isArray(data)) { return "array"; } const obj = data; if (obj && Object.getPrototypeOf(obj) !== Object.prototype && "constructor" in obj && obj.constructor) { return obj.constructor.name; } } } return t; } __name(parsedType, "parsedType"); function issue(...args) { const [iss, input2, inst] = args; if (typeof iss === "string") { return { message: iss, code: "custom", input: input2, inst }; } return { ...iss }; } __name(issue, "issue"); function cleanEnum(obj) { return Object.entries(obj).filter(([k5, _]) => { return Number.isNaN(Number.parseInt(k5, 10)); }).map((el) => el[1]); } __name(cleanEnum, "cleanEnum"); function base64ToUint8Array(base643) { const binaryString = atob(base643); const bytes = new Uint8Array(binaryString.length); for (let i5 = 0; i5 < binaryString.length; i5++) { bytes[i5] = binaryString.charCodeAt(i5); } return bytes; } __name(base64ToUint8Array, "base64ToUint8Array"); function uint8ArrayToBase64(bytes) { let binaryString = ""; for (let i5 = 0; i5 < bytes.length; i5++) { binaryString += String.fromCharCode(bytes[i5]); } return btoa(binaryString); } __name(uint8ArrayToBase64, "uint8ArrayToBase64"); function base64urlToUint8Array(base64url3) { const base643 = base64url3.replace(/-/g, "+").replace(/_/g, "/"); const padding = "=".repeat((4 - base643.length % 4) % 4); return base64ToUint8Array(base643 + padding); } __name(base64urlToUint8Array, "base64urlToUint8Array"); function uint8ArrayToBase64url(bytes) { return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""); } __name(uint8ArrayToBase64url, "uint8ArrayToBase64url"); function hexToUint8Array(hex3) { const cleanHex = hex3.replace(/^0x/, ""); if (cleanHex.length % 2 !== 0) { throw new Error("Invalid hex string length"); } const bytes = new Uint8Array(cleanHex.length / 2); for (let i5 = 0; i5 < cleanHex.length; i5 += 2) { bytes[i5 / 2] = Number.parseInt(cleanHex.slice(i5, i5 + 2), 16); } return bytes; } __name(hexToUint8Array, "hexToUint8Array"); function uint8ArrayToHex(bytes) { return Array.from(bytes).map((b5) => b5.toString(16).padStart(2, "0")).join(""); } __name(uint8ArrayToHex, "uint8ArrayToHex"); var Class = class { static { __name(this, "Class"); } constructor(..._args) { } }; function members(proto, table) { for (const key in table) { const desc = Object.getOwnPropertyDescriptor(table, key); if (desc.get) Object.defineProperty(proto, key, { ...desc, enumerable: false }); else defineBound(proto, key, desc.value); } } __name(members, "members"); function own(inst, key, value, enumerable = true) { Object.defineProperty(inst, key, { configurable: true, writable: true, enumerable, value }); return value; } __name(own, "own"); function hide(inst, key, value) { return own(inst, key, value, false); } __name(hide, "hide"); // @__NO_SIDE_EFFECTS__ function derived(computes, table) { for (const key in computes) { const compute = computes[key]; Object.defineProperty(table, key, { configurable: true, enumerable: true, get() { return own(this, key, compute(this)); }, set(value) { own(this, key, value); } }); } return table; } __name(derived, "derived"); function defineBound(proto, key, fn) { Object.defineProperty(proto, key, { configurable: true, get() { return this == null ? fn : own(this, key, fn.bind(this)); }, set(value) { own(this, key, value); } }); } __name(defineBound, "defineBound"); function claim(inst, sentinel) { const proto = Object.getPrototypeOf(inst); return sentinel in proto ? void 0 : proto; } __name(claim, "claim"); var installing; var broke = false; var breaker = { configurable: true, get() { broke = true; return void 0; } }; function defineLazyInternal(inst, key, compute) { const proto = Object.getPrototypeOf(inst._zod); if (key in proto && installing !== inst._zod) { installing = void 0; return; } installing = inst._zod; Object.defineProperty(proto, key, { configurable: true, get() { Object.defineProperty(this, key, breaker); const outer = broke; broke = false; try { const value = compute(this); if (broke) delete this[key]; else Object.defineProperty(this, key, { configurable: true, writable: true, value }); broke = broke || outer; return value; } catch (err) { delete this[key]; broke = broke || outer; throw err; } }, set(value) { Object.defineProperty(this, key, { configurable: true, writable: true, value }); } }); } __name(defineLazyInternal, "defineLazyInternal"); function installLazyProp(inst, key, make, enumerable) { const proto = claim(inst, key); if (!proto) return; Object.defineProperty(proto, key, { configurable: true, get() { const desc = { configurable: true, writable: true, enumerable, value: void 0 }; Object.defineProperty(this, key, desc); desc.value = make(this); Object.defineProperty(this, key, desc); return desc.value; }, set(value) { Object.defineProperty(this, key, { configurable: true, writable: true, enumerable, value }); } }); } __name(installLazyProp, "installLazyProp"); var CONSTANT_CATCH = "~constantCatch"; function constantCatch(value) { const fn = /* @__PURE__ */ __name(() => value, "fn"); fn[CONSTANT_CATCH] = true; return fn; } __name(constantCatch, "constantCatch"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/core.js var _a; var NEVER = /* @__PURE__ */ Object.freeze({ status: "aborted" }); var _zodDesc = { value: void 0, enumerable: false }; var _E = "captureStackTrace" in Error ? Error : null; function newError(Definition) { const E = _E; if (E) { const saved = E.stackTraceLimit; if (typeof saved === "number") { try { E.stackTraceLimit = 0; } catch { _E = null; return new Definition(); } try { return new Definition(); } finally { E.stackTraceLimit = saved; } } } return new Definition(); } __name(newError, "newError"); // @__NO_SIDE_EFFECTS__ function $constructor(name2, initializer3, proto, params) { const zodProto = {}; function Internals(def) { this.def = def; this.constr = _; this.traits = /* @__PURE__ */ new Set(); } __name(Internals, "Internals"); Internals.prototype = zodProto; const protoMembers = proto; const initialized = protoMembers && /* @__PURE__ */ new WeakSet(); function init2(inst, def) { if (!inst._zod) { _zodDesc.value = new Internals(def); try { Object.defineProperty(inst, "_zod", _zodDesc); } finally { _zodDesc.value = void 0; } } else if (inst._zod.traits.has(name2)) { return; } inst._zod.traits.add(name2); initializer3(inst, def); if (initialized) { const own2 = Object.getPrototypeOf(inst); const ctorProto = inst._zod.constr.prototype; let up = own2; while (up && up !== ctorProto) up = Object.getPrototypeOf(up); const target = up ?? own2; if (!initialized.has(target)) { initialized.add(target); members(target, protoMembers); } } const proto2 = _.prototype; for (const k5 in proto2) { if (!Object.prototype.hasOwnProperty.call(proto2, k5)) continue; if (!(k5 in inst)) { inst[k5] = proto2[k5].bind(inst); } } } __name(init2, "init"); const Parent = params?.Parent ?? Object; class Definition extends Parent { static { __name(this, "Definition"); } } Object.defineProperty(Definition, "name", { value: name2 }); function _(def) { const inst = params?.Parent ? newError(Definition) : this; init2(inst, def); const deferred = inst._zod.deferred; if (deferred) { for (const fn of deferred) { fn(); } inst._zod.deferred = void 0; } const pp = globalThis.__zod_globalConfig?.postProcessor; if (pp) pp(inst); return inst; } __name(_, "_"); Object.defineProperty(_, "init", { value: init2 }); Object.defineProperty(_, Symbol.hasInstance, { value: /* @__PURE__ */ __name((inst) => { if (params?.Parent && inst instanceof params.Parent) return true; return inst?._zod?.traits?.has(name2); }, "value") }); Object.defineProperty(_, "name", { value: name2 }); return _; } __name($constructor, "$constructor"); var $brand = /* @__PURE__ */ Symbol("zod_brand"); var $ZodAsyncError = class extends Error { static { __name(this, "$ZodAsyncError"); } constructor() { super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`); } }; var $ZodEncodeError = class extends Error { static { __name(this, "$ZodEncodeError"); } constructor(name2) { super(`Encountered unidirectional transform during encode: ${name2}`); this.name = "ZodEncodeError"; } }; (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {}); var globalConfig = globalThis.__zod_globalConfig; function config(newConfig) { if (newConfig) Object.assign(globalConfig, newConfig); return globalConfig; } __name(config, "config"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/errors.js function _getMessage() { const internals = this._zod; internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2)); return internals.message; } __name(_getMessage, "_getMessage"); function _setMessage(value) { this._zod.message = value; } __name(_setMessage, "_setMessage"); var _messageDesc = { get: _getMessage, set: _setMessage, enumerable: true, configurable: true }; var _issuesDesc = { value: void 0, enumerable: false }; var _installedToString = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]); var initializer = /* @__PURE__ */ __name((inst, def) => { inst.name = "$ZodError"; _issuesDesc.value = def; Object.defineProperty(inst, "issues", _issuesDesc); _issuesDesc.value = void 0; Object.defineProperty(inst, "message", _messageDesc); const proto = Object.getPrototypeOf(inst); if (!_installedToString.has(proto)) { _installedToString.add(proto); Object.defineProperty(proto, "toString", { configurable: true, enumerable: false, get() { const value = /* @__PURE__ */ __name(() => this.message, "value"); Object.defineProperty(this, "toString", { value, configurable: true, writable: true }); return value; }, set(value) { Object.defineProperty(this, "toString", { value, configurable: true, writable: true }); } }); } }, "initializer"); var $ZodError = $constructor("$ZodError", initializer); var $ZodRealError = $constructor("$ZodError", initializer, void 0, { Parent: Error }); function node(obj, key, make) { if (!Object.prototype.hasOwnProperty.call(obj, key)) { if (key === "__proto__") { Object.defineProperty(obj, key, { value: make(), writable: true, enumerable: true, configurable: true }); } else { obj[key] = make(); } } return obj[key]; } __name(node, "node"); function flattenError(error62, mapper = (issue2) => issue2.message) { const fieldErrors = {}; const formErrors = []; for (const sub of error62.issues) { if (sub.path.length > 0) { node(fieldErrors, sub.path[0], () => []).push(mapper(sub)); } else { formErrors.push(mapper(sub)); } } return { formErrors, fieldErrors }; } __name(flattenError, "flattenError"); function formatError(error62, mapper = (issue2) => issue2.message) { const fieldErrors = { _errors: [] }; const processError = /* @__PURE__ */ __name((error63, path2 = []) => { for (const issue2 of error63.issues) { if (issue2.code === "invalid_union" && issue2.errors.length) { issue2.errors.map((issues) => processError({ issues }, [...path2, ...issue2.path])); } else if (issue2.code === "invalid_key") { processError({ issues: issue2.issues }, [...path2, ...issue2.path]); } else if (issue2.code === "invalid_element") { processError({ issues: issue2.issues }, [...path2, ...issue2.path]); } else { const fullpath = [...path2, ...issue2.path]; if (fullpath.length === 0) { fieldErrors._errors.push(mapper(issue2)); } else { let curr = fieldErrors; let i5 = 0; while (i5 < fullpath.length) { const el = fullpath[i5]; const terminal = i5 === fullpath.length - 1; if (el === "_errors") { if (terminal) curr._errors.push(mapper(issue2)); i5++; continue; } if (!Object.prototype.hasOwnProperty.call(curr, el)) { Object.defineProperty(curr, el, { value: { _errors: [] }, enumerable: true, writable: true, configurable: true }); } const node2 = curr[el]; if (terminal) { node2._errors.push(mapper(issue2)); } curr = node2; i5++; } } } } }, "processError"); processError(error62); return fieldErrors; } __name(formatError, "formatError"); function treeifyError(error62, mapper = (issue2) => issue2.message) { const result = { errors: [] }; const processError = /* @__PURE__ */ __name((error63, path2 = []) => { var _a4; for (const issue2 of error63.issues) { if (issue2.code === "invalid_union" && issue2.errors.length) { issue2.errors.map((issues) => processError({ issues }, [...path2, ...issue2.path])); } else if (issue2.code === "invalid_key") { processError({ issues: issue2.issues }, [...path2, ...issue2.path]); } else if (issue2.code === "invalid_element") { processError({ issues: issue2.issues }, [...path2, ...issue2.path]); } else { const fullpath = [...path2, ...issue2.path]; if (fullpath.length === 0) { result.errors.push(mapper(issue2)); continue; } let curr = result; let i5 = 0; while (i5 < fullpath.length) { const el = fullpath[i5]; const terminal = i5 === fullpath.length - 1; if (typeof el === "string") { curr.properties ?? (curr.properties = {}); if (!Object.prototype.hasOwnProperty.call(curr.properties, el)) { Object.defineProperty(curr.properties, el, { value: { errors: [] }, enumerable: true, writable: true, configurable: true }); } curr = curr.properties[el]; } else { curr.items ?? (curr.items = []); (_a4 = curr.items)[el] ?? (_a4[el] = { errors: [] }); curr = curr.items[el]; } if (terminal) { curr.errors.push(mapper(issue2)); } i5++; } } } }, "processError"); processError(error62); return result; } __name(treeifyError, "treeifyError"); function toDotPath(_path) { const segs = []; const path2 = _path.map((seg) => typeof seg === "object" ? seg.key : seg); for (const seg of path2) { if (typeof seg === "number") segs.push(`[${seg}]`); else if (typeof seg === "symbol") segs.push(`[${JSON.stringify(String(seg))}]`); else if (/[^\w$]/.test(seg)) segs.push(`[${JSON.stringify(seg)}]`); else { if (segs.length) segs.push("."); segs.push(seg); } } return segs.join(""); } __name(toDotPath, "toDotPath"); function prettifyError(error62) { const lines = []; const issues = [...error62.issues].sort((a5, b5) => (a5.path ?? []).length - (b5.path ?? []).length); for (const issue2 of issues) { lines.push(`\u2716 ${issue2.message}`); if (issue2.path?.length) lines.push(` \u2192 at ${toDotPath(issue2.path)}`); } return lines.join("\n"); } __name(prettifyError, "prettifyError"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/parse.js function finalizeParams(callee, params) { return { callee: params?.callee ?? callee, Err: params?.Err }; } __name(finalizeParams, "finalizeParams"); var _parse = /* @__PURE__ */ __name((_Err) => { const fn = /* @__PURE__ */ __name((schema2, value, _ctx, _params) => { const ctx = _ctx ? { ..._ctx, async: false } : { async: false }; const result = schema2._zod.run({ value, issues: [] }, ctx); if (result instanceof Promise) { throw new $ZodAsyncError(); } if (result.issues.length) { const e5 = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config()))); captureStackTrace(e5, _params?.callee ?? fn); throw e5; } return result.value; }, "fn"); return fn; }, "_parse"); var parse = /* @__PURE__ */ _parse($ZodRealError); var _parseAsync = /* @__PURE__ */ __name((_Err) => { const fn = /* @__PURE__ */ __name(async (schema2, value, _ctx, params) => { const ctx = _ctx ? { ..._ctx, async: true } : { async: true }; let result = schema2._zod.run({ value, issues: [] }, ctx); if (result instanceof Promise) result = await result; if (result.issues.length) { const e5 = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config()))); captureStackTrace(e5, params?.callee ?? fn); throw e5; } return result.value; }, "fn"); return fn; }, "_parseAsync"); var parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError); var _safeParse = /* @__PURE__ */ __name((_Err) => (schema2, value, _ctx) => { const ctx = _ctx ? { ..._ctx, async: false } : { async: false }; const result = schema2._zod.run({ value, issues: [] }, ctx); if (result instanceof Promise) { throw new $ZodAsyncError(); } return result.issues.length ? failure(_Err, result.issues, ctx) : { success: true, data: result.value }; }, "_safeParse"); var safeParse = /* @__PURE__ */ _safeParse($ZodRealError); function failure(Err, issues, ctx) { let error62; return { success: false, get error() { if (!error62) { error62 = new Err(issues.map((iss) => finalizeIssue(iss, ctx, config()))); issues = void 0; ctx = void 0; } return error62; }, set error(e5) { error62 = e5; issues = void 0; ctx = void 0; } }; } __name(failure, "failure"); var _safeParseAsync = /* @__PURE__ */ __name((_Err) => async (schema2, value, _ctx) => { const ctx = _ctx ? { ..._ctx, async: true } : { async: true }; let result = schema2._zod.run({ value, issues: [] }, ctx); if (result instanceof Promise) result = await result; return result.issues.length ? failure(_Err, result.issues, ctx) : { success: true, data: result.value }; }, "_safeParseAsync"); var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError); var COMPILE_INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid"); var COMPILE_FALLBACK = /* @__PURE__ */ Symbol.for("zod.compile.fallback"); var validate = /* @__PURE__ */ __name(((schema2, value, _ctx) => { const validator = schema2._zod.bag.validator; if (validator !== void 0) { if (validator(value) !== COMPILE_INVALID) return true; if (validator.definite === true && _ctx === void 0) return false; } return validateFallback(schema2, value, _ctx); }), "validate"); function validateFallback(schema2, value, _ctx) { const ctx = _ctx ? { ..._ctx, async: false, abortEarly: true } : { async: false, abortEarly: true }; const fallbackRun = schema2._zod.bag.fallbackRun; let result; if (fallbackRun) { ctx[COMPILE_FALLBACK] = true; result = fallbackRun({ value, issues: [] }, ctx); } else { result = schema2._zod.run({ value, issues: [] }, ctx); } if (result instanceof Promise) { throw new $ZodAsyncError(); } return result.issues.length === 0; } __name(validateFallback, "validateFallback"); var validateAsync = /* @__PURE__ */ __name(async (schema2, value, _ctx) => { const ctx = _ctx ? { ..._ctx, async: true, abortEarly: true } : { async: true, abortEarly: true }; let result = schema2._zod.run({ value, issues: [] }, ctx); if (result instanceof Promise) result = await result; return result.issues.length === 0; }, "validateAsync"); var _encode = /* @__PURE__ */ __name((_Err) => { const parse4 = _parse(_Err); const fn = /* @__PURE__ */ __name((schema2, value, _ctx, _params) => { const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" }; return parse4(schema2, value, ctx, finalizeParams(fn, _params)); }, "fn"); return fn; }, "_encode"); var encode = /* @__PURE__ */ _encode($ZodRealError); var _decode = /* @__PURE__ */ __name((_Err) => { const parse4 = _parse(_Err); const fn = /* @__PURE__ */ __name((schema2, value, _ctx, _params) => { return parse4(schema2, value, _ctx, finalizeParams(fn, _params)); }, "fn"); return fn; }, "_decode"); var decode = /* @__PURE__ */ _decode($ZodRealError); var _encodeAsync = /* @__PURE__ */ __name((_Err) => { const parseAsync3 = _parseAsync(_Err); const fn = /* @__PURE__ */ __name(async (schema2, value, _ctx, _params) => { const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" }; return await parseAsync3(schema2, value, ctx, finalizeParams(fn, _params)); }, "fn"); return fn; }, "_encodeAsync"); var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError); var _decodeAsync = /* @__PURE__ */ __name((_Err) => { const parseAsync3 = _parseAsync(_Err); const fn = /* @__PURE__ */ __name(async (schema2, value, _ctx, _params) => { return await parseAsync3(schema2, value, _ctx, finalizeParams(fn, _params)); }, "fn"); return fn; }, "_decodeAsync"); var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError); var _safeEncode = /* @__PURE__ */ __name((_Err) => (schema2, value, _ctx) => { const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" }; return _safeParse(_Err)(schema2, value, ctx); }, "_safeEncode"); var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError); var _safeDecode = /* @__PURE__ */ __name((_Err) => (schema2, value, _ctx) => { return _safeParse(_Err)(schema2, value, _ctx); }, "_safeDecode"); var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError); var _safeEncodeAsync = /* @__PURE__ */ __name((_Err) => async (schema2, value, _ctx) => { const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" }; return _safeParseAsync(_Err)(schema2, value, ctx); }, "_safeEncodeAsync"); var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError); var _safeDecodeAsync = /* @__PURE__ */ __name((_Err) => async (schema2, value, _ctx) => { return _safeParseAsync(_Err)(schema2, value, _ctx); }, "_safeDecodeAsync"); var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/regexes.js var regexes_exports = {}; __export(regexes_exports, { anyString: () => anyString, base64: () => base64, base64url: () => base64url, bigint: () => bigint, boolean: () => boolean, browserEmail: () => browserEmail, cidrv4: () => cidrv4, cidrv6: () => cidrv6, creditCard: () => creditCard, cuid: () => cuid, cuid2: () => cuid2, currencyCode: () => currencyCode, date: () => date, datetime: () => datetime, domain: () => domain, duration: () => duration, e164: () => e164, email: () => email, emoji: () => emoji, extendedDuration: () => extendedDuration, guid: () => guid, hex: () => hex, hostname: () => hostname, html5Email: () => html5Email, httpProtocol: () => httpProtocol, iban: () => iban, idnEmail: () => idnEmail, integer: () => integer, ipv4: () => ipv4, ipv6: () => ipv6, ksuid: () => ksuid, lowercase: () => lowercase, mac: () => mac, md5_base64: () => md5_base64, md5_base64url: () => md5_base64url, md5_hex: () => md5_hex, nanoid: () => nanoid, nanoidOfLength: () => nanoidOfLength, null: () => _null, number: () => number, rfc5322Email: () => rfc5322Email, sha1_base64: () => sha1_base64, sha1_base64url: () => sha1_base64url, sha1_hex: () => sha1_hex, sha256_base64: () => sha256_base64, sha256_base64url: () => sha256_base64url, sha256_hex: () => sha256_hex, sha384_base64: () => sha384_base64, sha384_base64url: () => sha384_base64url, sha384_hex: () => sha384_hex, sha512_base64: () => sha512_base64, sha512_base64url: () => sha512_base64url, sha512_hex: () => sha512_hex, string: () => string, time: () => time, ulid: () => ulid, undefined: () => _undefined, unicodeEmail: () => unicodeEmail, uppercase: () => uppercase, uuid: () => uuid, uuid4: () => uuid4, uuid6: () => uuid6, uuid7: () => uuid7, xid: () => xid }); var cuid = /^[cC][0-9a-z]{6,}$/; var cuid2 = /^[0-9a-z]+$/; var ulid = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/; var xid = /^[0-9a-vA-V]{20}$/; var ksuid = /^[A-Za-z0-9]{27}$/; var nanoid = /^[a-zA-Z0-9_-]{21}$/; function nanoidOfLength(length) { return new RegExp(`^[a-zA-Z0-9_-]{${length}}$`); } __name(nanoidOfLength, "nanoidOfLength"); var duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/; var extendedDuration = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/; var guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/; var uuid = /* @__PURE__ */ __name((version2) => { if (!version2) return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/; return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version2}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`); }, "uuid"); var uuid4 = /* @__PURE__ */ uuid(4); var uuid6 = /* @__PURE__ */ uuid(6); var uuid7 = /* @__PURE__ */ uuid(7); var email = /^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/; var html5Email = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/; var rfc5322Email = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; var unicodeEmail = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u; var idnEmail = unicodeEmail; var browserEmail = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/; var _emoji = `^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`; function emoji() { return new RegExp(_emoji, "u"); } __name(emoji, "emoji"); var ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/; var ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/; var mac = /* @__PURE__ */ __name((delimiter) => { const escapedDelim = escapeRegex(delimiter ?? ":"); return new RegExp(`^(?:[0-9A-F]{2}${escapedDelim}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${escapedDelim}){5}[0-9a-f]{2}$`); }, "mac"); var cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/; var cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/; var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/; var base64url = /^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/; var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/; var domain = /^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/; var httpProtocol = /^https?$/; var e164 = /^\+[1-9]\d{6,14}$/; var creditCard = /^\d(?:[ -]?\d){11,18}$/; var currencyCode = /^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/; var iban = /^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/; var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`; function anchor(source) { return new RegExp(`^${source}$`); } __name(anchor, "anchor"); var date = /* @__PURE__ */ anchor(dateSource); function timeSource(args) { const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`; const regex = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : args.seconds ? `${hhmm}:[0-5]\\d(?:\\.\\d+)?` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`; return regex; } __name(timeSource, "timeSource"); function time(args) { return new RegExp(`^${timeSource(args)}$`); } __name(time, "time"); function datetime(args) { const opts = ["Z"]; if (args.offset) opts.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`); const qualified = `${timeSource({ precision: args.precision, seconds: true })}(?:${opts.join("|")})`; const timeRegex = args.local ? `${qualified}|${timeSource({ precision: args.precision })}` : qualified; return new RegExp(`^${dateSource}T(?:${timeRegex})$`); } __name(datetime, "datetime"); var anyString = /^[\s\S]{0,}$/; var string = /* @__PURE__ */ __name((params) => { const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`; return new RegExp(`^${regex}$`); }, "string"); var bigint = /^-?\d+n?$/; var integer = /^-?\d+$/; var number = /^-?\d+(?:\.\d+)?$/; var boolean = /^(?:true|false)$/i; var _null = /^null$/i; var _undefined = /^undefined$/i; var lowercase = /^[^A-Z]*$/; var uppercase = /^[^a-z]*$/; var hex = /^[0-9a-fA-F]*$/; function fixedBase64(bodyLength, padding) { return new RegExp(`^[A-Za-z0-9+/]{${bodyLength}}${padding}$`); } __name(fixedBase64, "fixedBase64"); function fixedBase64url(length) { return new RegExp(`^[A-Za-z0-9_-]{${length}}$`); } __name(fixedBase64url, "fixedBase64url"); var md5_hex = /^[0-9a-fA-F]{32}$/; var md5_base64 = /* @__PURE__ */ fixedBase64(22, "=="); var md5_base64url = /* @__PURE__ */ fixedBase64url(22); var sha1_hex = /^[0-9a-fA-F]{40}$/; var sha1_base64 = /* @__PURE__ */ fixedBase64(27, "="); var sha1_base64url = /* @__PURE__ */ fixedBase64url(27); var sha256_hex = /^[0-9a-fA-F]{64}$/; var sha256_base64 = /* @__PURE__ */ fixedBase64(43, "="); var sha256_base64url = /* @__PURE__ */ fixedBase64url(43); var sha384_hex = /^[0-9a-fA-F]{96}$/; var sha384_base64 = /* @__PURE__ */ fixedBase64(64, ""); var sha384_base64url = /* @__PURE__ */ fixedBase64url(64); var sha512_hex = /^[0-9a-fA-F]{128}$/; var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "=="); var sha512_base64url = /* @__PURE__ */ fixedBase64url(86); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/checks.js var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => { var _a4; inst._zod ?? (inst._zod = {}); inst._zod.def = def; (_a4 = inst._zod).onattach ?? (_a4.onattach = []); }); var _whenHasSize = /* @__PURE__ */ __name((payload) => { const val = payload.value; return !nullish(val) && val.size !== void 0; }, "_whenHasSize"); var _whenHasLength = /* @__PURE__ */ __name((payload) => { const val = payload.value; return !nullish(val) && val.length !== void 0; }, "_whenHasLength"); var numericOriginMap = { number: "number", bigint: "bigint", object: "date" }; var $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst, def) => { $ZodCheck.init(inst, def); const origin = numericOriginMap[typeof def.value]; inst._zod.check = (payload) => { if (def.inclusive ? payload.value <= def.value : payload.value < def.value) { return; } payload.issues.push({ origin: numericOriginMap[typeof payload.value] ?? origin, code: "too_big", maximum: typeof def.value === "object" ? def.value.getTime() : def.value, input: payload.value, inclusive: def.inclusive, inst, continue: !def.abort }); }; }); var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan", (inst, def) => { $ZodCheck.init(inst, def); const origin = numericOriginMap[typeof def.value]; inst._zod.check = (payload) => { if (def.inclusive ? payload.value >= def.value : payload.value > def.value) { return; } payload.issues.push({ origin: numericOriginMap[typeof payload.value] ?? origin, code: "too_small", minimum: typeof def.value === "object" ? def.value.getTime() : def.value, input: payload.value, inclusive: def.inclusive, inst, continue: !def.abort }); }; }); var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => { $ZodCheck.init(inst, def); inst._zod.check = (payload) => { if (typeof payload.value !== typeof def.value) throw new Error("Cannot mix number and bigint in multiple_of check."); const isMultiple = typeof payload.value === "bigint" ? ( // `value % 0n` throws, and nothing is a multiple of zero — the number branch already fails this way via NaN def.value !== BigInt(0) && payload.value % def.value === BigInt(0) ) : floatSafeRemainder(payload.value, def.value) === 0; if (isMultiple) return; payload.issues.push({ origin: typeof payload.value, code: "not_multiple_of", divisor: def.value, input: payload.value, inst, continue: !def.abort }); }; }); var $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat", (inst, def) => { $ZodCheck.init(inst, def); def.format = def.format || "float64"; const isInt = def.format?.includes("int"); const origin = isInt ? "int" : "number"; const [minimum, maximum] = NUMBER_FORMAT_RANGES[def.format]; inst._zod.check = (payload) => { const input2 = payload.value; if (isInt) { if (!Number.isInteger(input2)) { payload.issues.push({ expected: origin, format: def.format, code: "invalid_type", continue: false, input: input2, inst }); return; } if (!Number.isSafeInteger(input2)) { if (input2 > 0) { payload.issues.push({ input: input2, code: "too_big", maximum: Number.MAX_SAFE_INTEGER, note: "Integers must be within the safe integer range.", inst, origin, inclusive: true, continue: !def.abort }); } else { payload.issues.push({ input: input2, code: "too_small", minimum: Number.MIN_SAFE_INTEGER, note: "Integers must be within the safe integer range.", inst, origin, inclusive: true, continue: !def.abort }); } return; } } if (input2 < minimum) { payload.issues.push({ origin: "number", input: input2, code: "too_small", minimum, inclusive: true, inst, continue: !def.abort }); } if (input2 > maximum) { payload.issues.push({ origin: "number", input: input2, code: "too_big", maximum, inclusive: true, inst, continue: !def.abort }); } }; }); var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat", (inst, def) => { $ZodCheck.init(inst, def); const [minimum, maximum] = BIGINT_FORMAT_RANGES[def.format]; inst._zod.check = (payload) => { const input2 = payload.value; if (input2 < minimum) { payload.issues.push({ origin: "bigint", input: input2, code: "too_small", minimum, inclusive: true, inst, continue: !def.abort }); } if (input2 > maximum) { payload.issues.push({ origin: "bigint", input: input2, code: "too_big", maximum, inclusive: true, inst, continue: !def.abort }); } }; }); var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => { var _a4; $ZodCheck.init(inst, def); (_a4 = inst._zod.def).when ?? (_a4.when = _whenHasSize); inst._zod.check = (payload) => { const input2 = payload.value; const size = input2.size; if (size <= def.maximum) return; payload.issues.push({ origin: getSizableOrigin(input2), code: "too_big", maximum: def.maximum, inclusive: true, input: input2, inst, continue: !def.abort }); }; }); var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => { var _a4; $ZodCheck.init(inst, def); (_a4 = inst._zod.def).when ?? (_a4.when = _whenHasSize); inst._zod.check = (payload) => { const input2 = payload.value; const size = input2.size; if (size >= def.minimum) return; payload.issues.push({ origin: getSizableOrigin(input2), code: "too_small", minimum: def.minimum, inclusive: true, input: input2, inst, continue: !def.abort }); }; }); var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => { var _a4; $ZodCheck.init(inst, def); (_a4 = inst._zod.def).when ?? (_a4.when = _whenHasSize); inst._zod.check = (payload) => { const input2 = payload.value; const size = input2.size; if (size === def.size) return; const tooBig = size > def.size; payload.issues.push({ origin: getSizableOrigin(input2), ...tooBig ? { code: "too_big", maximum: def.size } : { code: "too_small", minimum: def.size }, inclusive: true, exact: true, input: payload.value, inst, continue: !def.abort }); }; }); var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => { var _a4; $ZodCheck.init(inst, def); (_a4 = inst._zod.def).when ?? (_a4.when = _whenHasLength); inst._zod.check = (payload) => { const input2 = payload.value; const units = input2.length; const length = typeof input2 === "string" && units > def.maximum ? codePointLength(input2) : units; if (length <= def.maximum) return; const origin = getLengthableOrigin(input2); payload.issues.push({ origin, code: "too_big", maximum: def.maximum, inclusive: true, input: input2, inst, continue: !def.abort }); }; }); var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => { var _a4; $ZodCheck.init(inst, def); (_a4 = inst._zod.def).when ?? (_a4.when = _whenHasLength); inst._zod.check = (payload) => { const input2 = payload.value; const units = input2.length; const length = typeof input2 === "string" && units >= def.minimum && units < def.minimum * 2 ? codePointLength(input2) : units; if (length >= def.minimum) return; const origin = getLengthableOrigin(input2); payload.issues.push({ origin, code: "too_small", minimum: def.minimum, inclusive: true, input: input2, inst, continue: !def.abort }); }; }); var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => { var _a4; $ZodCheck.init(inst, def); (_a4 = inst._zod.def).when ?? (_a4.when = _whenHasLength); inst._zod.check = (payload) => { const input2 = payload.value; const units = input2.length; const length = typeof input2 === "string" && units >= def.length && units <= def.length * 2 ? codePointLength(input2) : units; if (length === def.length) return; const origin = getLengthableOrigin(input2); const tooBig = length > def.length; payload.issues.push({ origin, ...tooBig ? { code: "too_big", maximum: def.length } : { code: "too_small", minimum: def.length }, inclusive: true, exact: true, input: payload.value, inst, continue: !def.abort }); }; }); var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => { var _a4, _b; $ZodCheck.init(inst, def); if (def.pattern) (_a4 = inst._zod).check ?? (_a4.check = (payload) => { def.pattern.lastIndex = 0; if (def.pattern.test(payload.value)) return; payload.issues.push({ origin: "string", code: "invalid_format", format: def.format, input: payload.value, ...def.pattern ? { pattern: def.pattern.toString() } : {}, inst, continue: !def.abort }); }); else (_b = inst._zod).check ?? (_b.check = () => { }); }); var $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => { $ZodCheckStringFormat.init(inst, def); inst._zod.check = (payload) => { def.pattern.lastIndex = 0; if (def.pattern.test(payload.value)) return; payload.issues.push({ origin: "string", code: "invalid_format", format: "regex", input: payload.value, pattern: def.pattern.toString(), inst, continue: !def.abort }); }; }); var $ZodCheckLowerCase = /* @__PURE__ */ $constructor("$ZodCheckLowerCase", (inst, def) => { def.pattern ?? (def.pattern = lowercase); $ZodCheckStringFormat.init(inst, def); }); var $ZodCheckUpperCase = /* @__PURE__ */ $constructor("$ZodCheckUpperCase", (inst, def) => { def.pattern ?? (def.pattern = uppercase); $ZodCheckStringFormat.init(inst, def); }); var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst, def) => { $ZodCheck.init(inst, def); const escapedRegex = escapeRegex(def.includes); const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position},}${escapedRegex}` : escapedRegex); def.pattern = pattern; inst._zod.check = (payload) => { if (payload.value.includes(def.includes, def.position)) return; payload.issues.push({ origin: "string", code: "invalid_format", format: "includes", includes: def.includes, input: payload.value, inst, continue: !def.abort }); }; }); var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (inst, def) => { $ZodCheck.init(inst, def); const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`); def.pattern ?? (def.pattern = pattern); inst._zod.check = (payload) => { if (payload.value.startsWith(def.prefix)) return; payload.issues.push({ origin: "string", code: "invalid_format", format: "starts_with", prefix: def.prefix, input: payload.value, inst, continue: !def.abort }); }; }); var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst, def) => { $ZodCheck.init(inst, def); const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`); def.pattern ?? (def.pattern = pattern); inst._zod.check = (payload) => { if (payload.value.endsWith(def.suffix)) return; payload.issues.push({ origin: "string", code: "invalid_format", format: "ends_with", suffix: def.suffix, input: payload.value, inst, continue: !def.abort }); }; }); function handleCheckPropertyResult(result, payload, property) { if (result.issues.length) { payload.issues.push(...prefixIssues(property, result.issues)); } } __name(handleCheckPropertyResult, "handleCheckPropertyResult"); var $ZodCheckProperty = /* @__PURE__ */ $constructor("$ZodCheckProperty", (inst, def) => { $ZodCheck.init(inst, def); inst._zod.check = (payload) => { const result = def.schema._zod.run({ value: payload.value[def.property], issues: [] }, {}); if (result instanceof Promise) { return result.then((result2) => handleCheckPropertyResult(result2, payload, def.property)); } handleCheckPropertyResult(result, payload, def.property); return; }; }); var $ZodCheckProperties = /* @__PURE__ */ $constructor("$ZodCheckProperties", (inst, def) => { $ZodCheck.init(inst, def); hide(inst, Symbol.iterator, function* () { yield inst; }); let entries; inst._zod.check = (payload) => { if (payload.value == null) { payload.issues.push({ expected: "object", code: "invalid_type", input: payload.value, inst }); return void 0; } entries ?? (entries = Reflect.ownKeys(def.shape).map((key) => [key, def.shape[key]])); const input2 = payload.value; let proms; for (const [key, schema2] of entries) { const result = schema2._zod.run({ value: input2[key], issues: [] }, {}); if (result instanceof Promise) { proms ?? (proms = []); proms.push(result.then((result2) => handleCheckPropertyResult(result2, payload, key))); } else { handleCheckPropertyResult(result, payload, key); } } if (proms) return Promise.all(proms).then(() => void 0); return void 0; }; }); var $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (inst, def) => { $ZodCheck.init(inst, def); const mimeSet = new Set(def.mime); inst._zod.check = (payload) => { if (mimeSet.has(payload.value.type)) return; payload.issues.push({ code: "invalid_value", values: def.mime, input: payload.value.type, inst, continue: !def.abort }); }; }); var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (inst, def) => { $ZodCheck.init(inst, def); inst._zod.check = (payload) => { payload.value = def.tx(payload.value); }; }); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/doc.js var Doc = class { static { __name(this, "Doc"); } constructor(args = [], closed = {}) { this.content = []; this.indent = 0; this.args = args; this.closed = closed; } // the compiler catches a child's throw and keeps writing into this doc, so the indent has to unwind with it indented(fn) { this.indent += 1; try { fn(this); } finally { this.indent -= 1; } } write(arg) { if (typeof arg === "function") { arg(this, { execution: "sync" }); arg(this, { execution: "async" }); return; } const content = arg; const lines = content.split("\n").filter((x) => x); const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length)); const dedented = lines.map((x) => x.slice(minIndent)).map((x) => " ".repeat(this.indent * 2) + x); for (const line of dedented) { this.content.push(line); } } compile() { const F = Function; const content = this?.content ?? [``]; const factory = new F(...Object.keys(this.closed), `return function (${this.args.join(", ")}) { ${content.join("\n")} };`); return factory(...Object.values(this.closed)); } }; // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/versions.js var version = { major: 4, minor: 6, patch: 7 }; // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/schemas.js var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => { var _a4; inst ?? (inst = {}); inst._zod.def = def; inst._zod.bag = inst._zod.bag || {}; inst._zod.version = version; const defChecks = inst._zod.def.checks; const checks = inst._zod.traits.has("$ZodCheck") ? [inst, ...defChecks ?? []] : defChecks?.length ? [...defChecks] : []; for (const ch of checks) { for (const fn of ch._zod.onattach) { fn(inst); } } if (checks.length === 0) { (_a4 = inst._zod).deferred ?? (_a4.deferred = []); inst._zod.deferred?.push(() => { inst._zod.run = inst._zod.parse; }); } else { const runChecks = /* @__PURE__ */ __name((payload, checks2, ctx) => { if (payload.memo) return payload; let isAborted = aborted(payload); let asyncResult; for (const ch of checks2) { if (ch._zod.def.when) { if (explicitlyAborted(payload)) continue; const shouldRun = ch._zod.def.when(payload); if (!shouldRun) continue; } else if (isAborted) { continue; } const currLen = payload.issues.length; const _ = ch._zod.check(payload); if (_ instanceof Promise && ctx?.async === false) { throw new $ZodAsyncError(); } if (asyncResult || _ instanceof Promise) { asyncResult = (asyncResult ?? Promise.resolve()).then(async () => { await _; const nextLen = payload.issues.length; if (nextLen === currLen) return; attachSchema(payload.issues, currLen, inst); if (!isAborted) isAborted = aborted(payload, currLen); }); } else { const nextLen = payload.issues.length; if (nextLen === currLen) continue; attachSchema(payload.issues, currLen, inst); if (!isAborted) isAborted = aborted(payload, currLen); } } if (asyncResult) { return asyncResult.then(() => { return payload; }); } return payload; }, "runChecks"); const handleCanaryResult = /* @__PURE__ */ __name((canary, payload, ctx) => { if (aborted(canary)) { canary.aborted = true; return canary; } const checkResult = runChecks(payload, checks, ctx); if (checkResult instanceof Promise) { if (ctx.async === false) throw new $ZodAsyncError(); return checkResult.then((checkResult2) => inst._zod.parse(checkResult2, ctx)); } return inst._zod.parse(checkResult, ctx); }, "handleCanaryResult"); inst._zod.run = (payload, ctx) => { if (ctx.skipChecks) { return inst._zod.parse(payload, ctx); } if (ctx.direction === "backward") { const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true }); if (canary instanceof Promise) { return canary.then((canary2) => { return handleCanaryResult(canary2, payload, ctx); }); } return handleCanaryResult(canary, payload, ctx); } const result = inst._zod.parse(payload, ctx); if (result instanceof Promise) { if (ctx.async === false) throw new $ZodAsyncError(); return result.then((result2) => runChecks(result2, checks, ctx)); } return runChecks(result, checks, ctx); }; } }, { // Wrappers extend this by installing a richer factory over it; reading it eagerly would defeat the laziness. get "~standard"() { return hide(this, "~standard", standardProps(this)); }, set "~standard"(value) { own(this, "~standard", value); } }); var toStandardResult = /* @__PURE__ */ __name((r5, ctx) => r5.issues.length ? { issues: r5.issues.map((iss) => finalizeIssue(iss, ctx, config())) } : { value: r5.value }, "toStandardResult"); async function validateAsync2(inst, value) { const ctx = { async: true }; return toStandardResult(await inst._zod.run({ value, issues: [] }, ctx), ctx); } __name(validateAsync2, "validateAsync"); function standardProps(inst) { return { validate: /* @__PURE__ */ __name((value) => { const ctx = { async: false }; try { const r5 = inst._zod.run({ value, issues: [] }, ctx); if (!(r5 instanceof Promise)) return toStandardResult(r5, ctx); } catch (_) { } return validateAsync2(inst, value); }, "validate"), vendor: "zod", version: 1 }; } __name(standardProps, "standardProps"); var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => { $ZodType.init(inst, def); inst._zod.pattern = def.pattern ?? anyString; inst._zod.parse = (payload, _) => { if (def.coerce) try { payload.value = String(payload.value); } catch (_2) { } if (typeof payload.value === "string") return payload; payload.issues.push({ expected: "string", code: "invalid_type", input: payload.value, inst }); return payload; }; }); var $ZodStringFormat = /* @__PURE__ */ $constructor("$ZodStringFormat", (inst, def) => { $ZodCheckStringFormat.init(inst, def); $ZodString.init(inst, def); }); var $ZodGUID = /* @__PURE__ */ $constructor("$ZodGUID", (inst, def) => { def.pattern ?? (def.pattern = guid); $ZodStringFormat.init(inst, def); }); var $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => { if (def.version) { const versionMap = { v1: 1, v2: 2, v3: 3, v4: 4, v5: 5, v6: 6, v7: 7, v8: 8 }; const v = versionMap[def.version]; if (v === void 0) throw new Error(`Invalid UUID version: "${def.version}"`); def.pattern ?? (def.pattern = uuid(v)); } else def.pattern ?? (def.pattern = uuid()); $ZodStringFormat.init(inst, def); }); var $ZodEmail = /* @__PURE__ */ $constructor("$ZodEmail", (inst, def) => { def.pattern ?? (def.pattern = email); $ZodStringFormat.init(inst, def); }); var URL_BAD_FORMAT = 1; var URL_UNPARSEABLE = 2; function canParseURL(input2) { try { if (typeof URL !== "undefined" && typeof URL.canParse === "function") return URL.canParse(input2); new URL(input2); return true; } catch { return false; } } __name(canParseURL, "canParseURL"); function validateURL(trimmed, def) { if (!("normalize" in def) && !("hostname" in def) && !("protocol" in def)) { return canParseURL(trimmed) || URL_UNPARSEABLE; } return parseURLObject(trimmed, def); } __name(validateURL, "validateURL"); function parseURLObject(trimmed, def) { if (!def.normalize && def.protocol?.source === httpProtocol.source && !/^https?:\/\//i.test(trimmed)) { return URL_BAD_FORMAT; } try { if (typeof URL !== "undefined") { const URLStatic = URL; if (typeof URLStatic.parse === "function") return URLStatic.parse(trimmed) ?? URL_UNPARSEABLE; } return new URL(trimmed); } catch { return URL_UNPARSEABLE; } } __name(parseURLObject, "parseURLObject"); var asciiTabOrNewline = /[\t\n\r]/g; function stripTabAndNewline(value) { return value.replace(asciiTabOrNewline, ""); } __name(stripTabAndNewline, "stripTabAndNewline"); function urlHostnameOk(url2, hostname3) { hostname3.lastIndex = 0; return hostname3.test(url2.hostname); } __name(urlHostnameOk, "urlHostnameOk"); function urlProtocolOk(url2, protocol) { protocol.lastIndex = 0; return protocol.test(url2.protocol.endsWith(":") ? url2.protocol.slice(0, -1) : url2.protocol); } __name(urlProtocolOk, "urlProtocolOk"); var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => { $ZodStringFormat.init(inst, def); inst._zod.check = (payload) => { try { const trimmed = payload.value.trim(); const url2 = validateURL(trimmed, def); if (url2 === URL_BAD_FORMAT) { payload.issues.push({ code: "invalid_format", format: "url", note: "Invalid URL format", input: payload.value, inst, continue: !def.abort }); return; } if (url2 === URL_UNPARSEABLE) { payload.issues.push({ code: "invalid_format", format: "url", input: payload.value, inst, continue: !def.abort }); return; } if (url2 === true) { payload.value = stripTabAndNewline(trimmed); return; } if (def.hostname && !urlHostnameOk(url2, def.hostname)) { payload.issues.push({ code: "invalid_format", format: "url", note: "Invalid hostname", pattern: def.hostname.source, input: payload.value, inst, continue: !def.abort }); } if (def.protocol && !urlProtocolOk(url2, def.protocol)) { payload.issues.push({ code: "invalid_format", format: "url", note: "Invalid protocol", pattern: def.protocol.source, input: payload.value, inst, continue: !def.abort }); } payload.value = def.normalize ? url2.href : stripTabAndNewline(trimmed); return; } catch (_) { payload.issues.push({ code: "invalid_format", format: "url", input: payload.value, inst, continue: !def.abort }); } }; }); var $ZodEmoji = /* @__PURE__ */ $constructor("$ZodEmoji", (inst, def) => { def.pattern ?? (def.pattern = emoji()); $ZodStringFormat.init(inst, def); }); var $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => { if (def.length !== void 0 && (!Number.isInteger(def.length) || def.length < 1)) throw new Error(`Invalid nanoid length: ${def.length}`); def.pattern ?? (def.pattern = def.length === void 0 ? nanoid : nanoidOfLength(def.length)); $ZodStringFormat.init(inst, def); }); var $ZodCUID = /* @__PURE__ */ $constructor("$ZodCUID", (inst, def) => { def.pattern ?? (def.pattern = cuid); $ZodStringFormat.init(inst, def); }); var $ZodCUID2 = /* @__PURE__ */ $constructor("$ZodCUID2", (inst, def) => { def.pattern ?? (def.pattern = cuid2); $ZodStringFormat.init(inst, def); }); var $ZodULID = /* @__PURE__ */ $constructor("$ZodULID", (inst, def) => { def.pattern ?? (def.pattern = ulid); $ZodStringFormat.init(inst, def); }); var $ZodXID = /* @__PURE__ */ $constructor("$ZodXID", (inst, def) => { def.pattern ?? (def.pattern = xid); $ZodStringFormat.init(inst, def); }); var $ZodKSUID = /* @__PURE__ */ $constructor("$ZodKSUID", (inst, def) => { def.pattern ?? (def.pattern = ksuid); $ZodStringFormat.init(inst, def); }); var $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, def) => { def.pattern ?? (def.pattern = datetime(def)); $ZodStringFormat.init(inst, def); }); var $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => { def.pattern ?? (def.pattern = date); $ZodStringFormat.init(inst, def); }); var $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => { def.pattern ?? (def.pattern = time(def)); $ZodStringFormat.init(inst, def); }); var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def) => { def.pattern ?? (def.pattern = duration); $ZodStringFormat.init(inst, def); }); var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => { def.pattern ?? (def.pattern = ipv4); $ZodStringFormat.init(inst, def); }); var ipv6Alphabet = /^[0-9a-fA-F:.]+$/; function isValidIPv6(value) { if (!ipv6Alphabet.test(value)) return false; return canParseURL(`http://[${value}]`); } __name(isValidIPv6, "isValidIPv6"); var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => { def.pattern ?? (def.pattern = ipv6); $ZodStringFormat.init(inst, def); inst._zod.check = (payload) => { if (!isValidIPv6(payload.value)) { payload.issues.push({ code: "invalid_format", format: "ipv6", input: payload.value, inst, continue: !def.abort }); } }; }); var $ZodMAC = /* @__PURE__ */ $constructor("$ZodMAC", (inst, def) => { def.pattern ?? (def.pattern = mac(def.delimiter)); $ZodStringFormat.init(inst, def); }); var $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => { def.pattern ?? (def.pattern = cidrv4); $ZodStringFormat.init(inst, def); }); function isValidCIDRv6(value) { const parts = value.split("/"); if (parts.length !== 2) return false; const [address, prefix] = parts; if (!prefix) return false; const prefixNum = Number(prefix); if (`${prefixNum}` !== prefix) return false; if (prefixNum < 0 || prefixNum > 128) return false; return isValidIPv6(address); } __name(isValidCIDRv6, "isValidCIDRv6"); var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => { def.pattern ?? (def.pattern = cidrv6); $ZodStringFormat.init(inst, def); inst._zod.check = (payload) => { if (!isValidCIDRv6(payload.value)) { payload.issues.push({ code: "invalid_format", format: "cidrv6", input: payload.value, inst, continue: !def.abort }); } }; }); function isValidBase64(data) { if (data === "") return true; if (/\s/.test(data)) return false; if (data.length % 4 !== 0) return false; try { atob(data); return true; } catch { return false; } } __name(isValidBase64, "isValidBase64"); var base64Charset = /^[0-9a-zA-Z+/]*={0,2}$/; var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => { def.pattern ?? (def.pattern = base64Charset); $ZodStringFormat.init(inst, def); inst._zod.check = (payload) => { if (isValidBase64(payload.value)) return; payload.issues.push({ code: "invalid_format", format: "base64", input: payload.value, inst, continue: !def.abort }); }; }); var base64urlCharset = /^[A-Za-z0-9_-]*$/; function isValidBase64URL(data) { if (!base64urlCharset.test(data)) return false; const base643 = data.replace(/[-_]/g, (c5) => c5 === "-" ? "+" : "/"); const padded = base643.padEnd(Math.ceil(base643.length / 4) * 4, "="); return isValidBase64(padded); } __name(isValidBase64URL, "isValidBase64URL"); var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => { def.pattern ?? (def.pattern = base64urlCharset); $ZodStringFormat.init(inst, def); inst._zod.check = (payload) => { if (isValidBase64URL(payload.value)) return; payload.issues.push({ code: "invalid_format", format: "base64url", input: payload.value, inst, continue: !def.abort }); }; }); var $ZodE164 = /* @__PURE__ */ $constructor("$ZodE164", (inst, def) => { def.pattern ?? (def.pattern = e164); $ZodStringFormat.init(inst, def); }); var CC_SANITIZE = /[- ]/g; function isLuhnAlgo(digits) { let length = digits.length; let bit = 1; let sum = 0; while (length) { const value = digits.charCodeAt(--length) - 48; bit ^= 1; sum += bit ? [0, 2, 4, 6, 8, 1, 3, 5, 7, 9][value] : value; } return sum % 10 === 0; } __name(isLuhnAlgo, "isLuhnAlgo"); function isValidCreditCard(input2) { if (!creditCard.test(input2)) return false; return isLuhnAlgo(input2.replace(CC_SANITIZE, "")); } __name(isValidCreditCard, "isValidCreditCard"); var $ZodCreditCard = /* @__PURE__ */ $constructor("$ZodCreditCard", (inst, def) => { def.pattern ?? (def.pattern = creditCard); $ZodStringFormat.init(inst, def); inst._zod.check = (payload) => { if (isValidCreditCard(payload.value)) return; payload.issues.push({ code: "invalid_format", format: "credit_card", input: payload.value, inst, continue: !def.abort }); }; }); function isIso7064Mod97(iban3) { let remainder = 0; const len = iban3.length; for (let i5 = 4; i5 < len; i5++) { const code = iban3.charCodeAt(i5); remainder = (code >= 65 ? remainder * 100 + (code - 55) : remainder * 10 + (code - 48)) % 97; } for (let i5 = 0; i5 < 4; i5++) { const code = iban3.charCodeAt(i5); remainder = (code >= 65 ? remainder * 100 + (code - 55) : remainder * 10 + (code - 48)) % 97; } return remainder === 1; } __name(isIso7064Mod97, "isIso7064Mod97"); function isValidIBAN(input2) { if (!iban.test(input2)) return false; return isIso7064Mod97(input2); } __name(isValidIBAN, "isValidIBAN"); var $ZodIBAN = /* @__PURE__ */ $constructor("$ZodIBAN", (inst, def) => { def.pattern ?? (def.pattern = iban); $ZodStringFormat.init(inst, def); inst._zod.check = (payload) => { if (isValidIBAN(payload.value)) return; payload.issues.push({ code: "invalid_format", format: "iban", input: payload.value, inst, continue: !def.abort }); }; }); function isValidJWT(token, algorithm = null) { try { const tokensParts = token.split("."); if (tokensParts.length !== 3) return false; const [header] = tokensParts; if (!header) return false; const parsedHeader = JSON.parse(atob(header)); if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT") return false; if (!parsedHeader.alg) return false; if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm)) return false; return true; } catch { return false; } } __name(isValidJWT, "isValidJWT"); var $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => { $ZodStringFormat.init(inst, def); inst._zod.check = (payload) => { if (isValidJWT(payload.value, def.alg)) return; payload.issues.push({ code: "invalid_format", format: "jwt", input: payload.value, inst, continue: !def.abort }); }; }); var $ZodCustomStringFormat = /* @__PURE__ */ $constructor("$ZodCustomStringFormat", (inst, def) => { $ZodStringFormat.init(inst, def); inst._zod.check = (payload) => { if (def.fn(payload.value)) return; payload.issues.push({ code: "invalid_format", format: def.format, input: payload.value, inst, continue: !def.abort }); }; }); var $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => { $ZodType.init(inst, def); inst._zod.pattern = number; inst._zod.parse = (payload, _ctx) => { if (def.coerce) try { payload.value = Number(payload.value); } catch (_) { } const input2 = payload.value; if (typeof input2 === "number" && !Number.isNaN(input2) && Number.isFinite(input2)) { return payload; } const received = typeof input2 === "number" ? Number.isNaN(input2) ? "NaN" : !Number.isFinite(input2) ? String(input2) : void 0 : void 0; payload.issues.push({ expected: "number", code: "invalid_type", input: input2, inst, ...received ? { received } : {} }); return payload; }; }); var $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumberFormat", (inst, def) => { $ZodCheckNumberFormat.init(inst, def); $ZodNumber.init(inst, def); }); var $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => { $ZodType.init(inst, def); inst._zod.pattern = boolean; inst._zod.parse = (payload, _ctx) => { if (def.coerce) try { payload.value = Boolean(payload.value); } catch (_) { } const input2 = payload.value; if (typeof input2 === "boolean") return payload; payload.issues.push({ expected: "boolean", code: "invalid_type", input: input2, inst }); return payload; }; }); var $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => { $ZodType.init(inst, def); inst._zod.pattern = bigint; inst._zod.parse = (payload, _ctx) => { if (def.coerce) try { payload.value = BigInt(payload.value); } catch (_) { } if (typeof payload.value === "bigint") return payload; payload.issues.push({ expected: "bigint", code: "invalid_type", input: payload.value, inst }); return payload; }; }); var $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigIntFormat", (inst, def) => { $ZodCheckBigIntFormat.init(inst, def); $ZodBigInt.init(inst, def); }); var $ZodSymbol = /* @__PURE__ */ $constructor("$ZodSymbol", (inst, def) => { $ZodType.init(inst, def); inst._zod.parse = (payload, _ctx) => { const input2 = payload.value; if (typeof input2 === "symbol") return payload; payload.issues.push({ expected: "symbol", code: "invalid_type", input: input2, inst }); return payload; }; }); var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) => { $ZodType.init(inst, def); inst._zod.pattern = _undefined; inst._zod.values = /* @__PURE__ */ new Set([void 0]); inst._zod.parse = (payload, _ctx) => { const input2 = payload.value; if (typeof input2 === "undefined") return payload; payload.issues.push({ expected: "undefined", code: "invalid_type", input: input2, inst }); return payload; }; }); var $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => { $ZodType.init(inst, def); inst._zod.pattern = _null; inst._zod.values = /* @__PURE__ */ new Set([null]); inst._zod.parse = (payload, _ctx) => { const input2 = payload.value; if (input2 === null) return payload; payload.issues.push({ expected: "null", code: "invalid_type", input: input2, inst }); return payload; }; }); var $ZodAny = /* @__PURE__ */ $constructor("$ZodAny", (inst, def) => { $ZodType.init(inst, def); inst._zod.parse = (payload) => payload; }); var $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => { $ZodType.init(inst, def); inst._zod.parse = (payload) => payload; }); var $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => { $ZodType.init(inst, def); inst._zod.parse = (payload, _ctx) => { payload.issues.push({ expected: "never", code: "invalid_type", input: payload.value, inst }); return payload; }; }); var $ZodVoid = /* @__PURE__ */ $constructor("$ZodVoid", (inst, def) => { $ZodType.init(inst, def); inst._zod.parse = (payload, _ctx) => { const input2 = payload.value; if (typeof input2 === "undefined") return payload; payload.issues.push({ expected: "void", code: "invalid_type", input: input2, inst }); return payload; }; }); var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => { $ZodType.init(inst, def); inst._zod.parse = (payload, _ctx) => { if (def.coerce) { try { payload.value = new Date(payload.value); } catch (_err) { } } const input2 = payload.value; const isDate = input2 instanceof Date; const isValidDate = isDate && !Number.isNaN(input2.getTime()); if (isValidDate) return payload; payload.issues.push({ expected: "date", code: "invalid_type", input: input2, ...isDate ? { received: "Invalid Date" } : {}, inst }); return payload; }; }); function capSize(inst, size) { const caps = sizeCaps(inst._zod.def.checks); if (!caps.length) return; const cap = Math.min(...caps.map((c5) => c5[0])); const parse4 = inst._zod.parse; inst._zod.parse = (payload, ctx) => { const n3 = size(payload.value); if (n3 > cap && !ctx?.skipChecks && ctx?.direction !== "backward") { for (const [max, ch] of sizeCaps(inst._zod.def.checks)) { if (n3 > max && ch._zod.def.when(payload)) { const start = payload.issues.length; ch._zod.check(payload); payload.issues[start].continue = false; attachSchema(payload.issues, start, inst); return payload; } } } return parse4(payload, ctx); }; } __name(capSize, "capSize"); var arraySize = /* @__PURE__ */ __name((input2) => Array.isArray(input2) ? input2.length : -1, "arraySize"); var mapSize = /* @__PURE__ */ __name((input2) => input2 instanceof Map ? input2.size : -1, "mapSize"); var setSize = /* @__PURE__ */ __name((input2) => input2 instanceof Set ? input2.size : -1, "setSize"); function handleArrayResult(result, final, index) { if (result.issues.length) { final.issues.push(...prefixIssues(index, result.issues)); } final.value[index] = result.value; } __name(handleArrayResult, "handleArrayResult"); var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => { $ZodType.init(inst, def); const memo2 = globalConfig.memoizer; memo2?.attach(inst); inst._zod.parse = (payload, ctx) => { const input2 = payload.value; if (!Array.isArray(input2)) { payload.issues.push({ expected: "array", code: "invalid_type", input: input2, inst }); return payload; } payload.value = memo2 ? memo2.alloc(inst, payload, Array(input2.length), ctx) : Array(input2.length); const proms = []; const abortEarly = ctx?.abortEarly; for (let i5 = 0; i5 < input2.length; i5++) { const item = input2[i5]; const result = def.element._zod.run({ value: item, issues: [] }, ctx); if (result instanceof Promise) { proms.push(result.then((result2) => handleArrayResult(result2, payload, i5))); } else { handleArrayResult(result, payload, i5); if (abortEarly && result.issues.length !== 0 && aborted(result)) break; } } if (proms.length) { return Promise.all(proms).then(() => payload); } return payload; }; capSize(inst, arraySize); }); function handlePropertyResult(result, final, key, input2, optin, optout) { const isPresent = key in input2; const isOptionalOut = optout === "optional"; if (!isPresent && isOptionalOut && optin === "optional") { return; } if (result.issues.length) { if (optin !== void 0 && isOptionalOut && !isPresent) { return; } final.issues.push(...prefixIssues(key, result.issues)); } if (!isPresent && optin === void 0) { if (!result.issues.length) { final.issues.push({ code: "invalid_type", expected: "nonoptional", input: void 0, path: [key] }); } return; } if (result.value === void 0) { if (isPresent || optin === "defaulted" && !isOptionalOut) { final.value[key] = void 0; } } else { final.value[key] = result.value; } } __name(handlePropertyResult, "handlePropertyResult"); var NO_SYMBOL_KEYS = []; function normalizeDef(def) { const keys = Object.keys(def.shape); const ownSymbols = Object.getOwnPropertySymbols(def.shape); const symbolKeys = ownSymbols.length ? ownSymbols : NO_SYMBOL_KEYS; const allKeys = symbolKeys.length ? [...keys, ...symbolKeys] : keys; for (const k5 of allKeys) { if (!def.shape?.[k5]?._zod?.traits?.has("$ZodType")) { throw new Error(`Invalid element at key "${String(k5)}": expected a Zod schema`); } } const okeys = optionalKeys(def.shape); return { ...def, allKeys, symbolKeys, // string-only: handleCatchall matches it against `for...in`, which never yields a symbol keySet: new Set(keys), numKeys: keys.length, optionalKeys: new Set(okeys) }; } __name(normalizeDef, "normalizeDef"); function handleCatchall(proms, input2, payload, ctx, def, inst, abortEarly) { const unrecognized = []; const keySet = def.keySet; const _catchall = def.catchall._zod; const t = _catchall.def.type; const optin = _catchall.optin; const optout = _catchall.optout; let seen = 0; for (const key in input2) { if (abortEarly && payload.issues.length !== seen) { if (aborted(payload, seen)) break; seen = payload.issues.length; } if (keySet.has(key)) continue; if (key === "__proto__") { if (t === "never") unrecognized.push(key); continue; } if (t === "never") { unrecognized.push(key); continue; } const r5 = _catchall.run({ value: input2[key], issues: [] }, ctx); if (r5 instanceof Promise) { proms.push(r5.then((r6) => handlePropertyResult(r6, payload, key, input2, optin, optout))); } else { handlePropertyResult(r5, payload, key, input2, optin, optout); } } if (unrecognized.length) { payload.issues.push({ code: "unrecognized_keys", keys: unrecognized, input: input2, inst, // Describes the shape of the input, not the validity of the parsed value, so it never aborts. The parse still fails; the schema's own checks just get to run first, and an enclosing intersection can reconcile the key against a sibling operand. continue: true }); } if (!proms.length) return payload; return Promise.all(proms).then(() => { return payload; }); } __name(handleCatchall, "handleCatchall"); var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => { $ZodType.init(inst, def); const desc = Object.getOwnPropertyDescriptor(def, "shape"); const sh = desc?.get ? desc.get.raw : def.shape ?? {}; if (sh) { const get2 = /* @__PURE__ */ __name(() => { const newSh = { ...sh }; Object.defineProperty(def, "shape", { value: newSh }); get2.raw = newSh; return newSh; }, "get"); get2.raw = sh; Object.defineProperty(def, "shape", { get: get2 }); } const _normalized = cached(() => normalizeDef(def)); defineLazyInternal(inst, "propValues", (zod) => { const shape = zod.def.shape; const propValues = {}; for (const key in shape) { const field = shape[key]._zod; if (field.values) { if (!Object.prototype.hasOwnProperty.call(propValues, key)) { assignProp(propValues, key, /* @__PURE__ */ new Set()); } for (const v of field.values) propValues[key].add(v); if (field.optin !== void 0) propValues[key].add(void 0); } } return propValues; }); const isObject2 = isObject; const catchall = def.catchall; let value; const memo2 = globalConfig.memoizer; memo2?.attach(inst); inst._zod.parse = (payload, ctx) => { value ?? (value = _normalized.value); const input2 = payload.value; if (!isObject2(input2)) { payload.issues.push({ expected: "object", code: "invalid_type", input: input2, inst }); return payload; } payload.value = memo2 ? memo2.alloc(inst, payload, {}, ctx) : {}; const proms = []; const shape = value.shape; const abortEarly = ctx?.abortEarly; let seen = payload.issues.length; for (const key of value.allKeys) { if (abortEarly && payload.issues.length !== seen) { if (aborted(payload, seen)) break; seen = payload.issues.length; } if (key === "__proto__") continue; const el = shape[key]; const optin = el._zod.optin; const optout = el._zod.optout; const r5 = el._zod.run({ value: input2[key], issues: [] }, ctx); if (r5 instanceof Promise) { proms.push(r5.then((r6) => handlePropertyResult(r6, payload, key, input2, optin, optout))); } else { handlePropertyResult(r5, payload, key, input2, optin, optout); } } if (!catchall) { return proms.length ? Promise.all(proms).then(() => payload) : payload; } return handleCatchall(proms, input2, payload, ctx, _normalized.value, inst, abortEarly === true); }; }); var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) => { $ZodObject.init(inst, def); const superParse = inst._zod.parse; const _normalized = cached(() => normalizeDef(def)); const memo2 = globalConfig.memoizer; const generateFastpass = /* @__PURE__ */ __name((shape) => { const normalized = _normalized.value; const syms = normalized.symbolKeys; const doc = new Doc(["payload", "ctx"], { shape, inst, memo: memo2, syms }); const parseStr = /* @__PURE__ */ __name((k5) => `shape[${k5}]._zod.run({ value: input[${k5}], issues: [] }, ctx)`, "parseStr"); const prefixStr = /* @__PURE__ */ __name((id, k5) => ` let ${id}_ab = false; for (let i = 0; i < ${id}.issues.length; i++) { const iss = ${id}.issues[i]; iss.path = iss.path ? [${k5}, ...iss.path] : [${k5}]; payload.issues.push(iss); if (iss.continue !== true) ${id}_ab = true; } if (${id}_ab && ctx && ctx.abortEarly) { payload.value = newResult; return payload; }`, "prefixStr"); doc.write(`const input = payload.value;`); const ids = /* @__PURE__ */ Object.create(null); let counter = 0; for (const key of normalized.allKeys) { ids[key] = `key_${counter++}`; } doc.write(memo2 ? `const newResult = memo.alloc(inst, payload, {}, ctx);` : `const newResult = {};`); for (const key of normalized.allKeys) { if (key === "__proto__") continue; const id = ids[key]; const k5 = typeof key === "symbol" ? `syms[${syms.indexOf(key)}]` : esc(key); const isPresent = `${k5} in input`; const schema2 = shape[key]; const optin = schema2?._zod?.optin; const isOptionalIn = optin !== void 0; const isOptionalOut = schema2?._zod?.optout === "optional"; doc.write(`const ${id} = ${parseStr(k5)};`); if (isOptionalIn && isOptionalOut) { const assign = optin === "optional" ? `${id}_present` : `${id}.value !== undefined || ${id}_present`; doc.write(` const ${id}_present = ${isPresent}; if (!${id}.issues.length || ${id}_present) { if (${id}.issues.length) {${prefixStr(id, k5)} } if (${assign}) { newResult[${k5}] = ${id}.value; } } `); } else if (!isOptionalIn) { doc.write(` const ${id}_present = ${isPresent}; if (${id}.issues.length) {${prefixStr(id, k5)} } if (!${id}_present && !${id}.issues.length) { payload.issues.push({ code: "invalid_type", expected: "nonoptional", input: undefined, path: [${k5}] }); if (ctx && ctx.abortEarly) { payload.value = newResult; return payload; } } if (${id}_present) { newResult[${k5}] = ${id}.value; } `); } else { doc.write(` if (${id}.issues.length) {${prefixStr(id, k5)} } `); if (optin === "defaulted") { doc.write(`newResult[${k5}] = ${id}.value;`); } else { doc.write(` if (${id}.value !== undefined || ${isPresent}) { newResult[${k5}] = ${id}.value; } `); } } } doc.write(`payload.value = newResult;`); doc.write(`return payload;`); return doc.compile(); }, "generateFastpass"); let fastpass; const isObject2 = isObject; const jit = !globalConfig.jitless; const allowsEval2 = allowsEval; const fastEnabled = jit && allowsEval2.value; const catchall = def.catchall; let value; inst._zod.parse = (payload, ctx) => { value ?? (value = _normalized.value); const input2 = payload.value; if (!isObject2(input2)) { payload.issues.push({ expected: "object", code: "invalid_type", input: input2, inst }); return payload; } if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) { if (!fastpass) fastpass = generateFastpass(def.shape); payload = fastpass(payload, ctx); if (!catchall) return payload; return handleCatchall([], input2, payload, ctx, value, inst, ctx?.abortEarly === true); } return superParse(payload, ctx); }; }); function handleUnionResults(results, final, inst, ctx) { for (const result of results) { if (result.issues.length === 0) { final.value = result.value; return final; } } const nonaborted = results.filter((r5) => !aborted(r5)); if (nonaborted.length === 1) { final.value = nonaborted[0].value; return nonaborted[0]; } final.issues.push({ code: "invalid_union", input: final.value, inst, errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config()))) }); return final; } __name(handleUnionResults, "handleUnionResults"); var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => { $ZodType.init(inst, def); defineLazyInternal(inst, "optin", (zod) => zod.def.options.some((o3) => o3._zod.optin === "defaulted") ? "defaulted" : zod.def.options.some((o3) => o3._zod.optin !== void 0) ? "optional" : void 0); defineLazyInternal(inst, "optout", (zod) => zod.def.options.some((o3) => o3._zod.optout === "optional") ? "optional" : void 0); defineLazyInternal(inst, "values", (zod) => { if (zod.def.options.every((o3) => o3._zod.values)) { return new Set(zod.def.options.flatMap((option) => Array.from(option._zod.values))); } return void 0; }); defineLazyInternal(inst, "pattern", (zod) => { if (zod.def.options.every((o3) => o3._zod.pattern)) { const patterns = zod.def.options.map((o3) => o3._zod.pattern); return new RegExp(`^(${patterns.map((p3) => cleanRegex(p3.source)).join("|")})$`); } return void 0; }); const first = def.options.length === 1 ? def.options[0]._zod.run : null; inst._zod.parse = (payload, ctx) => { if (first) { return first(payload, ctx); } let async = false; const results = []; for (const option of def.options) { const result = option._zod.run({ value: payload.value, issues: [] }, ctx); if (result instanceof Promise) { results.push(result); async = true; } else { if (result.issues.length === 0) return result; results.push(result); } } if (!async) return handleUnionResults(results, payload, inst, ctx); return Promise.all(results).then((results2) => { return handleUnionResults(results2, payload, inst, ctx); }); }; }); function handleExclusiveUnionResults(results, final, inst, ctx) { const matches = []; for (let i5 = 0; i5 < results.length; i5++) { if (results[i5].issues.length === 0) matches.push(i5); } if (matches.length === 1) { final.value = results[matches[0]].value; return final; } if (matches.length === 0) { final.issues.push({ code: "invalid_union", input: final.value, inst, errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config()))) }); } else { final.issues.push({ code: "invalid_union", input: final.value, inst, errors: [], inclusive: false, matches }); } return final; } __name(handleExclusiveUnionResults, "handleExclusiveUnionResults"); var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => { $ZodUnion.init(inst, def); def.inclusive = false; const first = def.options.length === 1 ? def.options[0]._zod.run : null; inst._zod.parse = (payload, ctx) => { if (first) { return first(payload, ctx); } let async = false; const results = []; for (const option of def.options) { const result = option._zod.run({ value: payload.value, issues: [] }, ctx); if (result instanceof Promise) { results.push(result); async = true; } else { results.push(result); } } if (!async) return handleExclusiveUnionResults(results, payload, inst, ctx); return Promise.all(results).then((results2) => { return handleExclusiveUnionResults(results2, payload, inst, ctx); }); }; }); function getDiscriminatedOption(union2, value) { const internals = union2._zod; let map2 = internals.bag.optionsMap; if (!map2) { map2 = discriminatorMap(internals.def); internals.bag.optionsMap = map2; } const option = map2.get(value); if (option === null) throw new Error(`Ambiguous discriminator value "${String(value)}"`); return option; } __name(getDiscriminatedOption, "getDiscriminatedOption"); function discriminatorMap(def) { const map2 = /* @__PURE__ */ new Map(); for (const option of def.options) { const values = option._zod.propValues?.[def.discriminator]; if (!values || values.size === 0) throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`); for (const value of values) { if (map2.has(value)) { if (value !== void 0) throw new Error(`Duplicate discriminator value "${String(value)}"`); map2.set(value, null); } else { map2.set(value, option); } } } return map2; } __name(discriminatorMap, "discriminatorMap"); var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnion", (inst, def) => { def.inclusive = false; $ZodUnion.init(inst, def); const _super = inst._zod.parse; defineLazyInternal(inst, "propValues", (zod) => { const propValues = {}; let undefinedCount = 0; for (const option of zod.def.options) { const pv = option._zod.propValues; if (!pv || Object.keys(pv).length === 0) throw new Error(`Invalid discriminated union option at index "${zod.def.options.indexOf(option)}"`); if (pv[zod.def.discriminator]?.has(void 0)) undefinedCount++; for (const [k5, v] of Object.entries(pv)) { if (!Object.prototype.hasOwnProperty.call(propValues, k5)) { assignProp(propValues, k5, /* @__PURE__ */ new Set()); } for (const val of v) { propValues[k5].add(val); } } } if (!zod.def.unionFallback && undefinedCount > 1) propValues[zod.def.discriminator]?.delete(void 0); return propValues; }); def.options.forEach((option, i5) => { const propShape = rawShape(option._zod.def); if (propShape && !Object.prototype.hasOwnProperty.call(propShape, def.discriminator)) { throw new Error(`Invalid discriminated union option at index "${i5}"`); } }); const disc = cached(() => discriminatorMap(def)); inst._zod.parse = (payload, ctx) => { const input2 = payload.value; if (!isObject(input2)) { payload.issues.push({ code: "invalid_type", expected: "object", input: input2, inst }); return payload; } const value = input2?.[def.discriminator]; const opt = disc.value.get(value); if (opt && (value !== void 0 || ctx.direction !== "backward")) { return opt._zod.run(payload, ctx); } if (def.unionFallback || ctx.direction === "backward") { return _super(payload, ctx); } payload.issues.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: def.discriminator, options: Array.from(disc.value.keys()).filter((value2) => disc.value.get(value2) !== null), input: input2, path: [def.discriminator], inst }); return payload; }; }); var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => { $ZodType.init(inst, def); inst._zod.parse = (payload, ctx) => { const input2 = payload.value; const left = def.left._zod.run({ value: input2, issues: [] }, ctx); const right = def.right._zod.run({ value: input2, issues: [] }, ctx); const async = left instanceof Promise || right instanceof Promise; if (async) { return Promise.all([left, right]).then(([left2, right2]) => { return handleIntersectionResults(payload, left2, right2); }); } return handleIntersectionResults(payload, left, right); }; }); function mergeValues(a5, b5) { if (a5 === b5) { return { valid: true, data: a5 }; } if (a5 instanceof Date && b5 instanceof Date && +a5 === +b5) { return { valid: true, data: a5 }; } if (isPlainObject(a5) && isPlainObject(b5)) { const bKeys = Object.keys(b5); const sharedKeys = Object.keys(a5).filter((key) => bKeys.indexOf(key) !== -1); const newObj = { ...a5, ...b5 }; if (Object.prototype.hasOwnProperty.call(newObj, "__proto__")) delete newObj.__proto__; for (const key of sharedKeys) { if (key === "__proto__") continue; const sharedValue = mergeValues(a5[key], b5[key]); if (!sharedValue.valid) { return { valid: false, mergeErrorPath: [key, ...sharedValue.mergeErrorPath] }; } newObj[key] = sharedValue.data; } return { valid: true, data: newObj }; } if (Array.isArray(a5) && Array.isArray(b5)) { if (a5.length !== b5.length) { return { valid: false, mergeErrorPath: [] }; } const newArray = []; for (let index = 0; index < a5.length; index++) { const itemA = a5[index]; const itemB = b5[index]; const sharedValue = mergeValues(itemA, itemB); if (!sharedValue.valid) { return { valid: false, mergeErrorPath: [index, ...sharedValue.mergeErrorPath] }; } newArray.push(sharedValue.data); } return { valid: true, data: newArray }; } return { valid: false, mergeErrorPath: [] }; } __name(mergeValues, "mergeValues"); function handleIntersectionResults(result, left, right) { const unrecKeys = /* @__PURE__ */ new Map(); let unrecIssue; const keyIssues = /* @__PURE__ */ new Map(); const collect = /* @__PURE__ */ __name((iss, side) => { let keys; if (iss.code === "unrecognized_keys" && !iss.path?.length) { unrecIssue ?? (unrecIssue = iss); keys = iss.keys; } else if (iss.code === "invalid_key" && iss.origin === "record" && iss.path?.length === 1) { const k5 = String(iss.path[0]); if (!keyIssues.has(k5)) keyIssues.set(k5, iss); keys = [k5]; } else { return false; } for (const k5 of keys) { if (!unrecKeys.has(k5)) unrecKeys.set(k5, {}); unrecKeys.get(k5)[side] = true; } return true; }, "collect"); for (const iss of left.issues) { if (!collect(iss, "l")) result.issues.push(iss); } for (const iss of right.issues) { if (!collect(iss, "r")) result.issues.push(iss); } const bothKeys = [...unrecKeys].filter(([, f5]) => f5.l && f5.r).map(([k5]) => k5); if (bothKeys.length) { const aggregated = unrecIssue ? bothKeys.filter((k5) => unrecIssue.keys.includes(k5)) : []; if (aggregated.length) result.issues.push({ ...unrecIssue, keys: aggregated }); for (const k5 of bothKeys) { if (!aggregated.includes(k5) && keyIssues.has(k5)) result.issues.push(keyIssues.get(k5)); } } const merged = mergeValues(left.value, right.value); if (!merged.valid) { if (aborted(result)) return result; throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`); } result.value = merged.data; return result; } __name(handleIntersectionResults, "handleIntersectionResults"); var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => { $ZodType.init(inst, def); const items = def.items; const memo2 = globalConfig.memoizer; memo2?.attach(inst); inst._zod.parse = (payload, ctx) => { const input2 = payload.value; if (!Array.isArray(input2)) { payload.issues.push({ input: input2, inst, expected: "tuple", code: "invalid_type" }); return payload; } payload.value = memo2 ? memo2.alloc(inst, payload, [], ctx) : []; const proms = []; const optinStart = getTupleOptStart(items, "optin"); const optoutStart = getTupleOptStart(items, "optout"); if (!def.rest) { if (input2.length < optinStart) { payload.issues.push({ code: "too_small", minimum: optinStart, inclusive: true, input: input2, inst, origin: "array" }); return payload; } if (input2.length > items.length) { payload.issues.push({ code: "too_big", maximum: items.length, inclusive: true, input: input2, inst, origin: "array" }); } } const itemResults = new Array(items.length); const abortEarly = def.rest ? ctx?.abortEarly : void 0; let itemAborted = false; for (let i5 = 0; i5 < items.length; i5++) { const r5 = items[i5]._zod.run({ value: input2[i5], issues: [] }, ctx); if (r5 instanceof Promise) { proms.push(r5.then((rr) => { itemResults[i5] = rr; })); } else { itemResults[i5] = r5; if (abortEarly && !itemAborted && r5.issues.length) itemAborted = aborted(r5); } } if (def.rest && !itemAborted) { let i5 = items.length - 1; const rest = input2.slice(items.length); let seen = payload.issues.length; for (const el of rest) { if (abortEarly && payload.issues.length !== seen) { if (aborted(payload, seen)) break; seen = payload.issues.length; } i5++; const result = def.rest._zod.run({ value: el, issues: [] }, ctx); if (result instanceof Promise) { proms.push(result.then((r5) => handleTupleResult(r5, payload, i5))); } else { handleTupleResult(result, payload, i5); } } } if (proms.length) { return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input2, optoutStart)); } return handleTupleResults(itemResults, payload, items, input2, optoutStart); }; }); function getTupleOptStart(items, key) { for (let i5 = items.length - 1; i5 >= 0; i5--) { const omittable = key === "optin" ? items[i5]._zod.optin !== void 0 : items[i5]._zod.optout === "optional"; if (!omittable) return i5 + 1; } return 0; } __name(getTupleOptStart, "getTupleOptStart"); function handleTupleResult(result, final, index) { if (result.issues.length) { final.issues.push(...prefixIssues(index, result.issues)); } final.value[index] = result.value; } __name(handleTupleResult, "handleTupleResult"); function handleTupleResults(itemResults, final, items, input2, optoutStart) { for (let i5 = 0; i5 < items.length; i5++) { const r5 = itemResults[i5]; const isPresent = i5 < input2.length; if (!isPresent && i5 >= optoutStart && items[i5]._zod.optin === "optional") { final.value.length = i5; break; } if (r5.issues.length) { if (!isPresent && i5 >= optoutStart) { final.value.length = i5; break; } final.issues.push(...prefixIssues(i5, r5.issues)); } final.value[i5] = r5.value; } for (let i5 = final.value.length - 1; i5 >= input2.length; i5--) { if (items[i5]._zod.optout === "optional" && final.value[i5] === void 0) { final.value.length = i5; } else { break; } } return final; } __name(handleTupleResults, "handleTupleResults"); var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => { $ZodType.init(inst, def); const memo2 = globalConfig.memoizer; memo2?.attach(inst); inst._zod.parse = (payload, ctx) => { const input2 = payload.value; if (!isPlainObject(input2)) { payload.issues.push({ expected: "record", code: "invalid_type", input: input2, inst }); return payload; } const proms = []; const values = def.keyType._zod.values; if (values && !def.partial) { payload.value = memo2 ? memo2.alloc(inst, payload, {}, ctx) : {}; const recordKeys = /* @__PURE__ */ new Set(); for (const key of values) { if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") { recordKeys.add(typeof key === "number" ? key.toString() : key); if (key === "__proto__") continue; const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx); if (keyResult instanceof Promise) { throw new Error("Async schemas not supported in object keys currently"); } if (keyResult.issues.length) { payload.issues.push({ code: "invalid_key", origin: "record", issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())), input: key, path: [key], inst }); continue; } const outKey = keyResult.value; if (outKey === "__proto__") continue; const result = def.valueType._zod.run({ value: input2[key], issues: [] }, ctx); if (result instanceof Promise) { proms.push(result.then((result2) => { if (result2.issues.length) { payload.issues.push(...prefixIssues(key, result2.issues)); } payload.value[outKey] = result2.value; })); } else { if (result.issues.length) { payload.issues.push(...prefixIssues(key, result.issues)); } payload.value[outKey] = result.value; } } } let unrecognized; for (const key in input2) { if (!recordKeys.has(key)) { if (def.mode === "loose") { if (key === "__proto__") continue; payload.value[key] = input2[key]; } else { unrecognized = unrecognized ?? []; unrecognized.push(key); } } } if (unrecognized && unrecognized.length > 0) { payload.issues.push({ code: "unrecognized_keys", input: input2, inst, keys: unrecognized, continue: true }); } } else { payload.value = memo2 ? memo2.alloc(inst, payload, {}, ctx) : {}; let unrecognized; for (const key of Reflect.ownKeys(input2)) { if (key === "__proto__") continue; if (!Object.prototype.propertyIsEnumerable.call(input2, key)) continue; let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx); if (keyResult instanceof Promise) { throw new Error("Async schemas not supported in object keys currently"); } const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length; if (checkNumericKey) { const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx); if (retryResult instanceof Promise) { throw new Error("Async schemas not supported in object keys currently"); } if (retryResult.issues.length === 0) { keyResult = retryResult; } } if (keyResult.issues.length) { if (def.mode === "loose") { payload.value[key] = input2[key]; } else if (values) { unrecognized = unrecognized ?? []; unrecognized.push(key); } else { payload.issues.push({ code: "invalid_key", origin: "record", issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())), input: key, path: [key], inst }); } continue; } const outKey = keyResult.value; if (outKey === "__proto__") continue; const result = def.valueType._zod.run({ value: input2[key], issues: [] }, ctx); if (result instanceof Promise) { proms.push(result.then((result2) => { if (result2.issues.length) { payload.issues.push(...prefixIssues(key, result2.issues)); } payload.value[outKey] = result2.value; })); } else { if (result.issues.length) { payload.issues.push(...prefixIssues(key, result.issues)); } payload.value[outKey] = result.value; } } if (unrecognized && unrecognized.length > 0) { payload.issues.push({ code: "unrecognized_keys", input: input2, inst, keys: unrecognized, continue: true }); } } if (proms.length) { return Promise.all(proms).then(() => payload); } return payload; }; }); var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def) => { $ZodType.init(inst, def); const memo2 = globalConfig.memoizer; memo2?.attach(inst); inst._zod.parse = (payload, ctx) => { const input2 = payload.value; if (!(input2 instanceof Map)) { payload.issues.push({ expected: "map", code: "invalid_type", input: input2, inst }); return payload; } const proms = []; payload.value = memo2 ? memo2.alloc(inst, payload, /* @__PURE__ */ new Map(), ctx) : /* @__PURE__ */ new Map(); const abortEarly = ctx?.abortEarly; let seen = payload.issues.length; for (const [key, value] of input2) { if (abortEarly && payload.issues.length !== seen) { if (aborted(payload, seen)) break; seen = payload.issues.length; } const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx); const valueResult = def.valueType._zod.run({ value, issues: [] }, ctx); if (keyResult instanceof Promise || valueResult instanceof Promise) { proms.push(Promise.all([keyResult, valueResult]).then(([keyResult2, valueResult2]) => { handleMapResult(keyResult2, valueResult2, payload, key, input2, inst, ctx); })); } else { handleMapResult(keyResult, valueResult, payload, key, input2, inst, ctx); } } if (proms.length) return Promise.all(proms).then(() => payload); return payload; }; capSize(inst, mapSize); }); function handleMapResult(keyResult, valueResult, final, key, input2, inst, ctx) { if (keyResult.issues.length) { if (propertyKeyTypes.has(typeof key)) { final.issues.push(...prefixIssues(key, keyResult.issues)); } else { final.issues.push({ code: "invalid_key", origin: "map", input: input2, inst, issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())) }); } } if (valueResult.issues.length) { if (propertyKeyTypes.has(typeof key)) { final.issues.push(...prefixIssues(key, valueResult.issues)); } else { final.issues.push({ origin: "map", code: "invalid_element", input: input2, inst, key, issues: valueResult.issues.map((iss) => finalizeIssue(iss, ctx, config())) }); } } final.value.set(keyResult.value, valueResult.value); } __name(handleMapResult, "handleMapResult"); var $ZodSet = /* @__PURE__ */ $constructor("$ZodSet", (inst, def) => { $ZodType.init(inst, def); const memo2 = globalConfig.memoizer; memo2?.attach(inst); inst._zod.parse = (payload, ctx) => { const input2 = payload.value; if (!(input2 instanceof Set)) { payload.issues.push({ input: input2, inst, expected: "set", code: "invalid_type" }); return payload; } const proms = []; payload.value = memo2 ? memo2.alloc(inst, payload, /* @__PURE__ */ new Set(), ctx) : /* @__PURE__ */ new Set(); const abortEarly = ctx?.abortEarly; let seen = payload.issues.length; for (const item of input2) { if (abortEarly && payload.issues.length !== seen) { if (aborted(payload, seen)) break; seen = payload.issues.length; } const result = def.valueType._zod.run({ value: item, issues: [] }, ctx); if (result instanceof Promise) { proms.push(result.then((result2) => handleSetResult(result2, payload))); } else handleSetResult(result, payload); } if (proms.length) return Promise.all(proms).then(() => payload); return payload; }; capSize(inst, setSize); }); function handleSetResult(result, final) { if (result.issues.length) { final.issues.push(...result.issues); } final.value.add(result.value); } __name(handleSetResult, "handleSetResult"); var $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => { $ZodType.init(inst, def); const values = getEnumValues(def.entries); const valuesSet = new Set(values); inst._zod.values = valuesSet; defineLazyInternal(inst, "pattern", (zod) => { const patternValues = getEnumValues(zod.def.entries).filter((k5) => propertyKeyTypes.has(typeof k5)); return new RegExp(patternValues.length ? `^(${patternValues.map((o3) => escapeRegex(o3.toString())).join("|")})$` : "^[^\\s\\S]$"); }); inst._zod.parse = (payload, _ctx) => { const input2 = payload.value; if (valuesSet.has(input2)) { return payload; } payload.issues.push({ code: "invalid_value", values, input: input2, inst }); return payload; }; }); var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => { $ZodType.init(inst, def); const values = new Set(def.values); inst._zod.values = values; defineLazyInternal(inst, "pattern", (zod) => { const vals = zod.def.values; return new RegExp(vals.length ? `^(${vals.map((o3) => typeof o3 === "string" ? escapeRegex(o3) : o3 ? escapeRegex(o3.toString()) : String(o3)).join("|")})$` : "^[^\\s\\S]$"); }); inst._zod.parse = (payload, _ctx) => { const input2 = payload.value; if (values.has(input2)) { return payload; } payload.issues.push({ code: "invalid_value", values: def.values, input: input2, inst }); return payload; }; }); var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => { $ZodType.init(inst, def); inst._zod.parse = (payload, _ctx) => { const input2 = payload.value; if (input2 instanceof File) return payload; payload.issues.push({ expected: "file", code: "invalid_type", input: input2, inst }); return payload; }; }); var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => { $ZodType.init(inst, def); inst._zod.optin = "optional"; globalConfig.memoizer?.guard(inst); inst._zod.parse = (payload, ctx) => { if (ctx.direction === "backward") { throw new $ZodEncodeError(inst.constructor.name); } const _out = def.transform(payload.value, payload); if (ctx.async) { const output2 = _out instanceof Promise ? _out : Promise.resolve(_out); return output2.then((output3) => { payload.value = output3; return payload; }); } if (_out instanceof Promise) { throw new $ZodAsyncError(); } payload.value = _out; return payload; }; }); function handleOptionalResult(payload, result) { payload.value = result.issues.length ? void 0 : result.value; return payload; } __name(handleOptionalResult, "handleOptionalResult"); var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => { $ZodType.init(inst, def); defineLazyInternal(inst, "optin", (zod) => zod.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"); inst._zod.optout = "optional"; defineLazyInternal(inst, "values", (zod) => { const values = zod.def.innerType._zod.values; return values ? /* @__PURE__ */ new Set([...values, void 0]) : void 0; }); defineLazyInternal(inst, "pattern", (zod) => { const pattern = zod.def.innerType._zod.pattern; return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : void 0; }); inst._zod.parse = (payload, ctx) => { if (payload.value === void 0) { if (def.innerType._zod.optin !== "defaulted") return payload; const result = def.innerType._zod.run({ value: payload.value, issues: [] }, ctx); if (result instanceof Promise) return result.then((result2) => handleOptionalResult(payload, result2)); return handleOptionalResult(payload, result); } return def.innerType._zod.run(payload, ctx); }; }); var $ZodExactOptional = /* @__PURE__ */ $constructor("$ZodExactOptional", (inst, def) => { $ZodOptional.init(inst, def); defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values); defineLazyInternal(inst, "pattern", (zod) => zod.def.innerType._zod.pattern); inst._zod.parse = (payload, ctx) => { return def.innerType._zod.run(payload, ctx); }; }); var $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) => { $ZodType.init(inst, def); defineLazyInternal(inst, "optin", (zod) => zod.def.innerType._zod.optin); defineLazyInternal(inst, "optout", (zod) => zod.def.innerType._zod.optout); defineLazyInternal(inst, "pattern", (zod) => { const pattern = zod.def.innerType._zod.pattern; return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0; }); defineLazyInternal(inst, "values", (zod) => { return zod.def.innerType._zod.values ? /* @__PURE__ */ new Set([...zod.def.innerType._zod.values, null]) : void 0; }); inst._zod.parse = (payload, ctx) => { if (payload.value === null) return payload; return def.innerType._zod.run(payload, ctx); }; }); var $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => { $ZodType.init(inst, def); inst._zod.optin = "defaulted"; defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values); inst._zod.parse = (payload, ctx) => { if (ctx.direction === "backward") { return def.innerType._zod.run(payload, ctx); } if (payload.value === void 0) { payload.value = def.defaultValue; return payload; } const result = def.innerType._zod.run(payload, ctx); if (result instanceof Promise) { return result.then((result2) => handleDefaultResult(result2, def)); } return handleDefaultResult(result, def); }; }); function handleDefaultResult(payload, def) { if (payload.value === void 0) { payload.value = def.defaultValue; } return payload; } __name(handleDefaultResult, "handleDefaultResult"); var $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) => { $ZodType.init(inst, def); inst._zod.optin = "defaulted"; defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values); inst._zod.parse = (payload, ctx) => { if (ctx.direction === "backward") { return def.innerType._zod.run(payload, ctx); } if (payload.value === void 0) { payload.value = def.defaultValue; } return def.innerType._zod.run(payload, ctx); }; }); var $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def) => { $ZodType.init(inst, def); defineLazyInternal(inst, "values", (zod) => { const v = zod.def.innerType._zod.values; return v ? new Set([...v].filter((x) => x !== void 0)) : void 0; }); inst._zod.parse = (payload, ctx) => { const result = def.innerType._zod.run(payload, ctx); if (result instanceof Promise) { return result.then((result2) => handleNonOptionalResult(result2, inst)); } return handleNonOptionalResult(result, inst); }; }); function handleNonOptionalResult(payload, inst) { if (!payload.issues.length && payload.value === void 0) { payload.issues.push({ code: "invalid_type", expected: "nonoptional", input: payload.value, inst }); } return payload; } __name(handleNonOptionalResult, "handleNonOptionalResult"); var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => { $ZodType.init(inst, def); inst._zod.parse = (payload, ctx) => { if (ctx.direction === "backward") { throw new $ZodEncodeError("ZodSuccess"); } const result = def.innerType._zod.run(payload, ctx); if (result instanceof Promise) { return result.then((result2) => { payload.value = result2.issues.length === 0; return payload; }); } payload.value = result.issues.length === 0; return payload; }; }); function handleCatchResult(payload, result, def, ctx) { if (!result.issues.length) { payload.value = result.value; if (result.memo) payload.memo = true; return payload; } payload.value = def.catchValue({ ...result, value: payload.value, error: { issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config())) }, input: payload.value }); return payload; } __name(handleCatchResult, "handleCatchResult"); var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => { $ZodType.init(inst, def); defineLazyInternal(inst, "optin", (zod) => zod.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"); defineLazyInternal(inst, "optout", (zod) => zod.def.innerType._zod.optout); defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values); inst._zod.parse = (payload, ctx) => { if (ctx.direction === "backward") { return def.innerType._zod.run(payload, ctx); } const result = def.innerType._zod.run({ value: payload.value, issues: [] }, ctx); if (result instanceof Promise) { return result.then((result2) => handleCatchResult(payload, result2, def, ctx)); } return handleCatchResult(payload, result, def, ctx); }; }); var $ZodNaN = /* @__PURE__ */ $constructor("$ZodNaN", (inst, def) => { $ZodType.init(inst, def); inst._zod.parse = (payload, _ctx) => { if (typeof payload.value !== "number" || !Number.isNaN(payload.value)) { payload.issues.push({ input: payload.value, inst, expected: "nan", code: "invalid_type" }); return payload; } return payload; }; }); var $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => { $ZodType.init(inst, def); defineLazyInternal(inst, "values", (zod) => zod.def.in._zod.values); defineLazyInternal(inst, "optin", (zod) => zod.def.in._zod.optin); defineLazyInternal(inst, "optout", (zod) => zod.def.out._zod.optout); defineLazyInternal(inst, "propValues", (zod) => zod.def.in._zod.propValues); inst._zod.parse = (payload, ctx) => { if (ctx.direction === "backward") { const right = def.out._zod.run(payload, ctx); if (right instanceof Promise) { return right.then((right2) => handlePipeResult(right2, def.in, ctx)); } return handlePipeResult(right, def.in, ctx); } const left = def.in._zod.run(payload, ctx); if (left instanceof Promise) { return left.then((left2) => handlePipeResult(left2, def.out, ctx)); } return handlePipeResult(left, def.out, ctx); }; }); function handlePipeResult(left, next, ctx) { if (left.issues.some((iss) => iss.code !== "unrecognized_keys")) { left.aborted = true; return left; } return next._zod.run({ value: left.value, issues: left.issues }, ctx); } __name(handlePipeResult, "handlePipeResult"); var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => { $ZodType.init(inst, def); defineLazyInternal(inst, "values", (zod) => zod.def.in._zod.values); defineLazyInternal(inst, "optin", (zod) => zod.def.in._zod.optin); defineLazyInternal(inst, "optout", (zod) => zod.def.out._zod.optout); defineLazyInternal(inst, "propValues", (zod) => zod.def.in._zod.propValues); inst._zod.parse = (payload, ctx) => { const direction = ctx.direction || "forward"; if (direction === "forward") { const left = def.in._zod.run(payload, ctx); if (left instanceof Promise) { return left.then((left2) => handleCodecAResult(left2, def, ctx)); } return handleCodecAResult(left, def, ctx); } else { const right = def.out._zod.run(payload, ctx); if (right instanceof Promise) { return right.then((right2) => handleCodecAResult(right2, def, ctx)); } return handleCodecAResult(right, def, ctx); } }; }); function handleCodecAResult(result, def, ctx) { if (result.issues.length) { result.aborted = true; return result; } const direction = ctx.direction || "forward"; if (direction === "forward") { const transformed = def.transform(result.value, result); if (transformed instanceof Promise) { return transformed.then((value) => handleCodecTxResult(result, value, def.out, ctx)); } return handleCodecTxResult(result, transformed, def.out, ctx); } else { const transformed = def.reverseTransform(result.value, result); if (transformed instanceof Promise) { return transformed.then((value) => handleCodecTxResult(result, value, def.in, ctx)); } return handleCodecTxResult(result, transformed, def.in, ctx); } } __name(handleCodecAResult, "handleCodecAResult"); function handleCodecTxResult(left, value, nextSchema, ctx) { if (left.issues.length) { left.aborted = true; return left; } return nextSchema._zod.run({ value, issues: left.issues }, ctx); } __name(handleCodecTxResult, "handleCodecTxResult"); var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => { $ZodPipe.init(inst, def); }); var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => { $ZodType.init(inst, def); defineLazyInternal(inst, "propValues", (zod) => zod.def.innerType._zod.propValues); defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values); defineLazyInternal(inst, "optin", (zod) => zod.def.innerType?._zod?.optin); defineLazyInternal(inst, "optout", (zod) => zod.def.innerType?._zod?.optout); inst._zod.parse = (payload, ctx) => { if (ctx.direction === "backward") { return def.innerType._zod.run(payload, ctx); } const result = def.innerType._zod.run(payload, ctx); if (result instanceof Promise) { return result.then(handleReadonlyResult); } return handleReadonlyResult(result); }; }); function handleReadonlyResult(payload) { if (!payload.memo) payload.value = Object.freeze(payload.value); return payload; } __name(handleReadonlyResult, "handleReadonlyResult"); function leafPattern(schema2) { const def = schema2._zod.def; let pattern = def.pattern; let isInt = !!def.format?.includes("int"); let minimum; let maximum; for (const ch of def.checks ?? []) { const d5 = ch._zod.def; if (d5.pattern) pattern = d5.pattern; isInt || (isInt = !!d5.format?.includes("int")); const lo = d5.minimum ?? d5.length; const hi = d5.maximum ?? d5.length; if (lo !== void 0 && (minimum === void 0 || lo > minimum)) minimum = lo; if (hi !== void 0 && (maximum === void 0 || hi < maximum)) maximum = hi; } if (pattern) return pattern.source; if (minimum !== void 0 && maximum !== void 0 && minimum > maximum) return "(?!)"; if (minimum !== void 0 || maximum !== void 0) return string({ minimum, maximum }).source; const own2 = schema2._zod.pattern; return (isInt && own2 === number ? integer : own2)?.source; } __name(leafPattern, "leafPattern"); function partPattern(schema2) { const def = schema2._zod.def; const own2 = schema2._zod.pattern?.source; const inner = def.innerType ?? schema2._zod.innerType; if (inner) { const before = inner._zod.pattern?.source; const after = partPattern(inner); if (own2 && before && after && after !== before) { return own2.replace(cleanRegex(before), () => cleanRegex(after)); } return own2; } if (def.options) { const sources = def.options.map(partPattern); if (sources.every(Boolean)) return `^(${sources.map((s2) => cleanRegex(s2)).join("|")})$`; } return leafPattern(schema2); } __name(partPattern, "partPattern"); var $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral", (inst, def) => { $ZodType.init(inst, def); const regexParts = []; for (const part of def.parts) { if (typeof part === "object" && part !== null) { const source = partPattern(part); if (!source) { throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`); } regexParts.push(cleanRegex(source)); } else if (part === null || primitiveTypes.has(typeof part)) { regexParts.push(escapeRegex(`${part}`)); } else { throw new Error(`Invalid template literal part: ${part}`); } } inst._zod.pattern = new RegExp(`^${regexParts.join("")}$`); inst._zod.parse = (payload, _ctx) => { if (typeof payload.value !== "string") { payload.issues.push({ input: payload.value, inst, expected: "string", code: "invalid_type" }); return payload; } inst._zod.pattern.lastIndex = 0; if (!inst._zod.pattern.test(payload.value)) { payload.issues.push({ input: payload.value, inst, code: "invalid_format", format: def.format ?? "template_literal", pattern: inst._zod.pattern.source }); return payload; } return payload; }; }); var $ZodFunction = /* @__PURE__ */ $constructor("$ZodFunction", (inst, def) => { $ZodType.init(inst, def); Object.defineProperty(inst, "_def", { value: def }); inst._zod.def = def; inst.implement = (func) => { if (typeof func !== "function") { throw new Error("implement() must be called with a function"); } return Object.defineProperty(function(...args) { const parsedArgs = inst._def.input ? parse(inst._def.input, args) : args; const result = Reflect.apply(func, this, parsedArgs); if (inst._def.output) { return parse(inst._def.output, result); } return result; }, "_zod", { value: inst._zod, enumerable: false }); }; inst.implementAsync = (func) => { if (typeof func !== "function") { throw new Error("implementAsync() must be called with a function"); } return Object.defineProperty(async function(...args) { const parsedArgs = inst._def.input ? await parseAsync(inst._def.input, args) : args; const result = await Reflect.apply(func, this, parsedArgs); if (inst._def.output) { return await parseAsync(inst._def.output, result); } return result; }, "_zod", { value: inst._zod, enumerable: false }); }; inst._zod.parse = (payload, _ctx) => { if (typeof payload.value !== "function") { payload.issues.push({ code: "invalid_type", expected: "function", input: payload.value, inst }); return payload; } const hasPromiseOutput = inst._def.output && inst._def.output._zod.def.type === "promise"; if (hasPromiseOutput) { payload.value = inst.implementAsync(payload.value); } else { payload.value = inst.implement(payload.value); } return payload; }; inst.input = (...args) => { const F = inst.constructor; if (Array.isArray(args[0])) { return new F({ type: "function", input: new $ZodTuple({ type: "tuple", items: args[0], rest: args[1] }), output: inst._def.output }); } return new F({ type: "function", input: args[0], output: inst._def.output }); }; inst.output = (output2) => { const F = inst.constructor; return new F({ type: "function", input: inst._def.input, output: output2 }); }; return inst; }); var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => { $ZodType.init(inst, def); inst._zod.parse = (payload, ctx) => { return Promise.resolve(payload.value).then((inner) => def.innerType._zod.run({ value: inner, issues: [] }, ctx)); }; }); var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => { $ZodType.init(inst, def); defineLazy(inst._zod, "innerType", () => { const d5 = def; if (!d5._cachedInner) d5._cachedInner = def.getter(); return d5._cachedInner; }); defineLazyInternal(inst, "pattern", (zod) => zod.innerType?._zod?.pattern); defineLazyInternal(inst, "propValues", (zod) => zod.innerType?._zod?.propValues); defineLazyInternal(inst, "optin", (zod) => zod.innerType?._zod?.optin ?? void 0); defineLazyInternal(inst, "optout", (zod) => zod.innerType?._zod?.optout ?? void 0); inst._zod.parse = (payload, ctx) => { const inner = inst._zod.innerType; return inner._zod.run(payload, ctx); }; }); var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => { $ZodCheck.init(inst, def); $ZodType.init(inst, def); inst._zod.parse = (payload, _) => { return payload; }; inst._zod.check = (payload) => { const input2 = payload.value; const r5 = def.fn(input2); if (r5 instanceof Promise) { return r5.then((r6) => handleRefineResult(r6, payload, input2, inst)); } handleRefineResult(r5, payload, input2, inst); return; }; }); function handleRefineResult(result, payload, input2, inst) { if (!result) { const _iss = { code: "custom", input: input2, inst, // incorporates params.error into issue reporting path: [...inst._zod.def.path ?? []], // incorporates params.error into issue reporting continue: !inst._zod.def.abort // params: inst._zod.def.params, }; if (inst._zod.def.params) _iss.params = inst._zod.def.params; payload.issues.push(issue(_iss)); } } __name(handleRefineResult, "handleRefineResult"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/memoizer.js var $ZodCyclicError = class extends Error { static { __name(this, "$ZodCyclicError"); } constructor() { super(`Cannot parse a reference cycle that closes through a transform`); this.name = "ZodCyclicError"; } }; var STATE = "~memo"; var NO_ISSUES = []; function isRef(value) { return value !== null && typeof value === "object"; } __name(isRef, "isRef"); function cloneIssues(issues) { return issues.map((iss) => iss.path ? { ...iss, path: iss.path.slice() } : { ...iss }); } __name(cloneIssues, "cloneIssues"); var recursive = /* @__PURE__ */ new WeakMap(); var NONE = 0; var ASSUMED = 1; var PROVEN = 2; function isRecursive(inst, stack, resolve) { const cached2 = recursive.get(inst); if (cached2 !== void 0) return cached2 ? PROVEN : NONE; if (stack.has(inst)) return PROVEN; stack.add(inst); let result = NONE; const check2 = /* @__PURE__ */ __name((child) => { if (result !== PROVEN && child?._zod) { const answer = isRecursive(child, stack, resolve); if (answer > result) result = answer; } }, "check"); const shape = /* @__PURE__ */ __name((sh, spread) => { let answer = NONE; for (const key of Reflect.ownKeys(sh)) { const desc = Object.getOwnPropertyDescriptor(sh, key); if (spread && !desc.enumerable) continue; const child = desc.get ? ASSUMED : desc.value?._zod ? isRecursive(desc.value, stack, resolve) : NONE; if (child > answer) answer = child; } return answer; }, "shape"); const merge2 = /* @__PURE__ */ __name((answer) => { if (answer > result) result = answer; }, "merge"); const def = inst._zod.def; const kind = def.type; switch (kind) { case "object": { const raw4 = rawShape(def); merge2(raw4 ? shape(raw4, true) : ASSUMED); check2(def.catchall); break; } case "array": check2(def.element); break; case "tuple": for (const el of def.items) check2(el); check2(def.rest); break; case "record": case "map": check2(def.keyType); check2(def.valueType); break; case "set": check2(def.valueType); break; case "union": for (const el of def.options) check2(el); break; case "intersection": check2(def.left); check2(def.right); break; case "optional": case "nullable": case "default": case "prefault": case "catch": case "readonly": case "nonoptional": case "promise": case "success": check2(def.innerType); break; case "pipe": check2(def.in); check2(def.out); break; case "function": check2(def.input); check2(def.output); break; // `$ZodLazy` caches its inner on the def, so a resolved edge is followed exactly case "lazy": { const inner = def._cachedInner ?? (resolve ? inst._zod.innerType : void 0); merge2(inner ? isRecursive(inner, stack, false) : ASSUMED); break; } // a leaf by choice: `parts` are regex fragments, not data positions case "template_literal": // leaves case "string": case "number": case "int": case "boolean": case "bigint": case "symbol": case "undefined": case "null": case "void": case "never": case "any": case "unknown": case "date": case "nan": case "enum": case "literal": case "file": case "transform": case "custom": break; default: { kind; for (const key in def) { const desc = Object.getOwnPropertyDescriptor(def, key); if (!desc || desc.get) continue; const value = desc.value; if (!value || typeof value !== "object") continue; if (value._zod) check2(value); else if (Array.isArray(value)) for (const el of value) check2(el); } } } stack.delete(inst); return settle(inst, result); } __name(isRecursive, "isRecursive"); function settle(inst, answer) { if (answer !== ASSUMED) recursive.set(inst, answer === PROVEN); return answer; } __name(settle, "settle"); function isRecursiveSchema(inst) { return isRecursive(inst, /* @__PURE__ */ new Set(), true) !== NONE; } __name(isRecursiveSchema, "isRecursiveSchema"); function bucketFor(state2, inst) { let bucket = state2.buckets.get(inst); if (!bucket) { bucket = /* @__PURE__ */ new WeakMap(); state2.buckets.set(inst, bucket); } return bucket; } __name(bucketFor, "bucketFor"); var handoff; var open = []; var memo = { alloc(_inst, payload, empty4) { const bucket = handoff; if (!bucket) return empty4; handoff = void 0; const entry = { value: empty4, issues: null }; bucket.set(payload.value, entry); open.push(entry); return empty4; }, guard(inst) { var _a4; (_a4 = inst._zod).deferred ?? (_a4.deferred = []); inst._zod.deferred.push(() => { const base = inst._zod.parse; const wrapped = /* @__PURE__ */ __name((payload, ctx) => { if (ctx.direction !== "backward" && isBackEdge(ctx, payload.value)) throw new $ZodCyclicError(); return base(payload, ctx); }, "wrapped"); inst._zod.parse = wrapped; if (inst._zod.run === base) inst._zod.run = wrapped; }); }, attach(inst) { var _a4; let isRecursiveInst; let rechecked = false; let lastCtx; let lastBucket; (_a4 = inst._zod).deferred ?? (_a4.deferred = []); inst._zod.deferred.push(() => { const base = inst._zod.parse; const wrapped = /* @__PURE__ */ __name((payload, ctx) => { if (isRecursiveInst === void 0) { const walked = isRecursive(inst, /* @__PURE__ */ new Set(), false); if (walked === NONE) { inst._zod.parse = base; if (inst._zod.run === wrapped) inst._zod.run = base; return base(payload, ctx); } if (walked === PROVEN || rechecked) isRecursiveInst = true; else rechecked = true; } const input2 = payload.value; if (!isRef(input2)) return base(payload, ctx); let state2 = ctx[STATE]; if (!state2) { state2 = { buckets: /* @__PURE__ */ new WeakMap(), backEdges: void 0 }; ctx[STATE] = state2; } let bucket; if (lastCtx === ctx) { bucket = lastBucket; } else { bucket = bucketFor(state2, inst); lastCtx = ctx; lastBucket = bucket; } const hit = bucket.get(input2); if (hit) { payload.value = hit.value; if (hit.issues) { if (hit.issues.length) payload.issues.push(...cloneIssues(hit.issues)); } else { payload.memo = true; state2.backEdges ?? (state2.backEdges = /* @__PURE__ */ new WeakSet()); state2.backEdges.add(hit.value); } return payload; } handoff = bucket; const depth = open.length; const result = base(payload, ctx); handoff = void 0; const entry = open.length > depth ? open.pop() : void 0; if (result instanceof Promise) { return result.then((r5) => { if (entry) entry.issues = r5.issues.length ? cloneIssues(r5.issues) : NO_ISSUES; return r5; }); } if (entry) entry.issues = result.issues.length ? cloneIssues(result.issues) : NO_ISSUES; return result; }, "wrapped"); inst._zod.parse = wrapped; if (inst._zod.run === base) inst._zod.run = wrapped; }); } }; function memoizer() { return memo; } __name(memoizer, "memoizer"); function isBackEdge(ctx, value) { const backEdges = ctx[STATE]?.backEdges; return backEdges !== void 0 && isRef(value) && backEdges.has(value); } __name(isBackEdge, "isBackEdge"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/index.js var locales_exports = {}; __export(locales_exports, { ar: () => ar_default, az: () => az_default, be: () => be_default, bg: () => bg_default, bn: () => bn_default, ca: () => ca_default, ckb: () => ckb_default, cs: () => cs_default, da: () => da_default, de: () => de_default, el: () => el_default, en: () => en_default, eo: () => eo_default, es: () => es_default, fa: () => fa_default, fi: () => fi_default, fr: () => fr_default, frCA: () => fr_CA_default, gu: () => gu_default, he: () => he_default, hi: () => hi_default, hr: () => hr_default, hu: () => hu_default, hy: () => hy_default, id: () => id_default, is: () => is_default, it: () => it_default, ja: () => ja_default, ka: () => ka_default, kh: () => kh_default, km: () => km_default, kn: () => kn_default, ko: () => ko_default, lt: () => lt_default, mk: () => mk_default, ms: () => ms_default, ne: () => ne_default, nl: () => nl_default, nn: () => nn_default, no: () => no_default, ota: () => ota_default, pl: () => pl_default, ps: () => ps_default, pt: () => pt_default, ptBR: () => pt_BR_default, ro: () => ro_default, ru: () => ru_default, sk: () => sk_default, sl: () => sl_default, sv: () => sv_default, ta: () => ta_default, tg: () => tg_default, th: () => th_default, tk: () => tk_default, tr: () => tr_default, ua: () => ua_default, uk: () => uk_default, ur: () => ur_default, uz: () => uz_default, vi: () => vi_default, yo: () => yo_default, zhCN: () => zh_CN_default, zhTW: () => zh_TW_default }); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ar.js var error = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" }, file: { unit: "\u0628\u0627\u064A\u062A", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" }, array: { unit: "\u0639\u0646\u0635\u0631", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" }, set: { unit: "\u0639\u0646\u0635\u0631", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" }, map: { unit: "\u0639\u0646\u0635\u0631", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0645\u062F\u062E\u0644", email: "\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A", url: "\u0631\u0627\u0628\u0637", emoji: "\u0625\u064A\u0645\u0648\u062C\u064A", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO", date: "\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO", time: "\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO", duration: "\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO", ipv4: "\u0639\u0646\u0648\u0627\u0646 IPv4", ipv6: "\u0639\u0646\u0648\u0627\u0646 IPv6", mac: "\u0639\u0646\u0648\u0627\u0646 MAC", cidrv4: "\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4", cidrv6: "\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6", base64: "\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded", base64url: "\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded", json_string: "\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON", e164: "\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164", credit_card: "\u0631\u0642\u0645 \u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0627\u0626\u062A\u0645\u0627\u0646", currency_code: "\u0631\u0645\u0632 \u0627\u0644\u0639\u0645\u0644\u0629", iban: "IBAN", jwt: "JWT", template_literal: "\u0645\u062F\u062E\u0644" }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${issue2.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${received}`; } return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${stringifyPrimitive(issue2.values[0])}`; return `\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return ` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${issue2.origin ?? "\u0627\u0644\u0642\u064A\u0645\u0629"} ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "\u0639\u0646\u0635\u0631"}`; return `\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${issue2.origin ?? "\u0627\u0644\u0642\u064A\u0645\u0629"} ${adj} ${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${issue2.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${adj} ${issue2.minimum.toString()} ${sizing.unit}`; } return `\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${issue2.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${adj} ${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${issue2.prefix}"`; if (_issue.format === "ends_with") return `\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${_issue.suffix}"`; if (_issue.format === "includes") return `\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${_issue.includes}"`; if (_issue.format === "regex") return `\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${_issue.pattern}`; return `${FormatDictionary[_issue.format] ?? issue2.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`; } case "not_multiple_of": return `\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${issue2.divisor}`; case "unrecognized_keys": return `\u0645\u0639\u0631\u0641${issue2.keys.length > 1 ? "\u0627\u062A" : ""} \u063A\u0631\u064A\u0628${issue2.keys.length > 1 ? "\u0629" : ""}: ${joinValues(issue2.keys, "\u060C ")}`; case "invalid_key": return `\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${issue2.origin}`; case "invalid_union": return "\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"; case "invalid_element": return `\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${issue2.origin}`; default: return "\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"; } }; }, "error"); function ar_default() { return { localeError: error() }; } __name(ar_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/az.js var error2 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "simvol", verb: "olmal\u0131d\u0131r" }, file: { unit: "bayt", verb: "olmal\u0131d\u0131r" }, array: { unit: "element", verb: "olmal\u0131d\u0131r" }, set: { unit: "element", verb: "olmal\u0131d\u0131r" }, map: { unit: "element", verb: "olmal\u0131d\u0131r" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "input", email: "email address", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO datetime", date: "ISO date", time: "ISO time", duration: "ISO duration", ipv4: "IPv4 address", ipv6: "IPv6 address", mac: "MAC address", cidrv4: "IPv4 range", cidrv6: "IPv6 range", base64: "base64-encoded string", base64url: "base64url-encoded string", json_string: "JSON string", e164: "E.164 number", credit_card: "kredit kart\u0131 n\xF6mr\u0259si", currency_code: "valyuta kodu", iban: "IBAN", jwt: "JWT", template_literal: "input" }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${issue2.expected}, daxil olan ${received}`; } return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${expected}, daxil olan ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${stringifyPrimitive(issue2.values[0])}`; return `Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${issue2.origin ?? "d\u0259y\u0259r"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "element"}`; return `\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${issue2.origin ?? "d\u0259y\u0259r"} ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) return `\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`; return `\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${issue2.origin} ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Yanl\u0131\u015F m\u0259tn: "${_issue.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`; if (_issue.format === "ends_with") return `Yanl\u0131\u015F m\u0259tn: "${_issue.suffix}" il\u0259 bitm\u0259lidir`; if (_issue.format === "includes") return `Yanl\u0131\u015F m\u0259tn: "${_issue.includes}" daxil olmal\u0131d\u0131r`; if (_issue.format === "regex") return `Yanl\u0131\u015F m\u0259tn: ${_issue.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`; return `Yanl\u0131\u015F ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Yanl\u0131\u015F \u0259d\u0259d: ${issue2.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`; case "unrecognized_keys": return `Tan\u0131nmayan a\xE7ar${issue2.keys.length > 1 ? "lar" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `${issue2.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`; case "invalid_union": return "Yanl\u0131\u015F d\u0259y\u0259r"; case "invalid_element": return `${issue2.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`; default: return `Yanl\u0131\u015F d\u0259y\u0259r`; } }; }, "error"); function az_default() { return { localeError: error2() }; } __name(az_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/be.js function getBelarusianPlural(count, one, few, many) { const absCount = Math.abs(count); const lastDigit = absCount % 10; const lastTwoDigits = absCount % 100; if (lastTwoDigits >= 11 && lastTwoDigits <= 19) { return many; } if (lastDigit === 1) { return one; } if (lastDigit >= 2 && lastDigit <= 4) { return few; } return many; } __name(getBelarusianPlural, "getBelarusianPlural"); var error3 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: { one: "\u0441\u0456\u043C\u0432\u0430\u043B", few: "\u0441\u0456\u043C\u0432\u0430\u043B\u044B", many: "\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E" }, verb: "\u043C\u0435\u0446\u044C" }, array: { unit: { one: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442", few: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B", many: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E" }, verb: "\u043C\u0435\u0446\u044C" }, set: { unit: { one: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442", few: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B", many: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E" }, verb: "\u043C\u0435\u0446\u044C" }, map: { unit: { one: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442", few: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B", many: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E" }, verb: "\u043C\u0435\u0446\u044C" }, file: { unit: { one: "\u0431\u0430\u0439\u0442", few: "\u0431\u0430\u0439\u0442\u044B", many: "\u0431\u0430\u0439\u0442\u0430\u045E" }, verb: "\u043C\u0435\u0446\u044C" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0443\u0432\u043E\u0434", email: "email \u0430\u0434\u0440\u0430\u0441", url: "URL", emoji: "\u044D\u043C\u043E\u0434\u0437\u0456", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441", date: "ISO \u0434\u0430\u0442\u0430", time: "ISO \u0447\u0430\u0441", duration: "ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C", ipv4: "IPv4 \u0430\u0434\u0440\u0430\u0441", ipv6: "IPv6 \u0430\u0434\u0440\u0430\u0441", mac: "MAC \u0430\u0434\u0440\u0430\u0441", cidrv4: "IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D", cidrv6: "IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D", base64: "\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64", base64url: "\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url", json_string: "JSON \u0440\u0430\u0434\u043E\u043A", e164: "\u043D\u0443\u043C\u0430\u0440 E.164", credit_card: "\u043D\u0443\u043C\u0430\u0440 \u043A\u0440\u044D\u0434\u044B\u0442\u043D\u0430\u0439 \u043A\u0430\u0440\u0442\u044B", currency_code: "\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B", iban: "IBAN", jwt: "JWT", template_literal: "\u0443\u0432\u043E\u0434" }; const TypeDictionary = { nan: "NaN", number: "\u043B\u0456\u043A", array: "\u043C\u0430\u0441\u0456\u045E" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${issue2.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${received}`; } return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${stringifyPrimitive(issue2.values[0])}`; return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) { const maxValue = Number(issue2.maximum); const unit = getBelarusianPlural(maxValue, sizing.unit.one, sizing.unit.few, sizing.unit.many); return `\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${issue2.origin ?? "\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${sizing.verb} ${adj}${issue2.maximum.toString()} ${unit}`; } return `\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${issue2.origin ?? "\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { const minValue = Number(issue2.minimum); const unit = getBelarusianPlural(minValue, sizing.unit.one, sizing.unit.few, sizing.unit.many); return `\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${issue2.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${sizing.verb} ${adj}${issue2.minimum.toString()} ${unit}`; } return `\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${issue2.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${_issue.prefix}"`; if (_issue.format === "ends_with") return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${_issue.suffix}"`; if (_issue.format === "includes") return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${_issue.includes}"`; if (_issue.format === "regex") return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${_issue.pattern}`; return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${issue2.divisor}`; case "unrecognized_keys": return `\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${issue2.keys.length > 1 ? "\u043A\u043B\u044E\u0447\u044B" : "\u043A\u043B\u044E\u0447"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${issue2.origin}`; case "invalid_union": return "\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"; case "invalid_element": return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${issue2.origin}`; default: return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434`; } }; }, "error"); function be_default() { return { localeError: error3() }; } __name(be_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/bg.js var error4 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" }, file: { unit: "\u0431\u0430\u0439\u0442\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" }, array: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" }, set: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" }, map: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0432\u0445\u043E\u0434", email: "\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441", url: "URL", emoji: "\u0435\u043C\u043E\u0434\u0436\u0438", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO \u0432\u0440\u0435\u043C\u0435", date: "ISO \u0434\u0430\u0442\u0430", time: "ISO \u0432\u0440\u0435\u043C\u0435", duration: "ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442", ipv4: "IPv4 \u0430\u0434\u0440\u0435\u0441", ipv6: "IPv6 \u0430\u0434\u0440\u0435\u0441", mac: "MAC \u0430\u0434\u0440\u0435\u0441", cidrv4: "IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D", cidrv6: "IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D", base64: "base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437", base64url: "base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437", json_string: "JSON \u043D\u0438\u0437", e164: "E.164 \u043D\u043E\u043C\u0435\u0440", credit_card: "\u043D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0430", currency_code: "\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430", iban: "IBAN", jwt: "JWT", template_literal: "\u0432\u0445\u043E\u0434" }; const TypeDictionary = { nan: "NaN", number: "\u0447\u0438\u0441\u043B\u043E", array: "\u043C\u0430\u0441\u0438\u0432" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${received}`; } return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${stringifyPrimitive(issue2.values[0])}`; return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${issue2.origin ?? "\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`; return `\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${issue2.origin ?? "\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${issue2.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${issue2.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${_issue.suffix}"`; if (_issue.format === "includes") return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${_issue.includes}"`; if (_issue.format === "regex") return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${_issue.pattern}`; let invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D"; if (_issue.format === "emoji") invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"; if (_issue.format === "datetime") invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"; if (_issue.format === "date") invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"; if (_issue.format === "time") invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"; if (_issue.format === "duration") invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"; return `${invalid_adj} ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${issue2.divisor}`; case "unrecognized_keys": return `\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${issue2.keys.length > 1 ? "\u0438" : ""} \u043A\u043B\u044E\u0447${issue2.keys.length > 1 ? "\u043E\u0432\u0435" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${issue2.origin}`; case "invalid_union": return "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"; case "invalid_element": return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${issue2.origin}`; default: return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434`; } }; }, "error"); function bg_default() { return { localeError: error4() }; } __name(bg_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/bn.js var error5 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u0985\u0995\u09CD\u09B7\u09B0", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" }, file: { unit: "\u09AC\u09BE\u0987\u099F", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" }, array: { unit: "\u0986\u0987\u099F\u09C7\u09AE", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" }, set: { unit: "\u0986\u0987\u099F\u09C7\u09AE", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" }, map: { unit: "\u098F\u09A8\u09CD\u099F\u09CD\u09B0\u09BF", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0987\u09A8\u09AA\u09C1\u099F", email: "\u0987\u09AE\u09C7\u0987\u09B2 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE", url: "URL", emoji: "\u0987\u09AE\u09CB\u099C\u09BF", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO \u09A4\u09BE\u09B0\u09BF\u0996 \u0993 \u09B8\u09AE\u09AF\u09BC", date: "ISO \u09A4\u09BE\u09B0\u09BF\u0996", time: "ISO \u09B8\u09AE\u09AF\u09BC", duration: "ISO \u09B8\u09AE\u09AF\u09BC\u0995\u09BE\u09B2", ipv4: "IPv4 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE", ipv6: "IPv6 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE", mac: "MAC \u09A0\u09BF\u0995\u09BE\u09A8\u09BE", cidrv4: "IPv4 \u09B0\u09C7\u099E\u09CD\u099C", cidrv6: "IPv6 \u09B0\u09C7\u099E\u09CD\u099C", base64: "base64-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982", base64url: "base64url-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982", json_string: "JSON \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982", e164: "E.164 \u09A8\u09AE\u09CD\u09AC\u09B0", credit_card: "\u0995\u09CD\u09B0\u09C7\u09A1\u09BF\u099F \u0995\u09BE\u09B0\u09CD\u09A1 \u09A8\u09AE\u09CD\u09AC\u09B0", currency_code: "\u09AE\u09C1\u09A6\u09CD\u09B0\u09BE \u0995\u09CB\u09A1", iban: "IBAN", jwt: "JWT", template_literal: "\u0987\u09A8\u09AA\u09C1\u099F" }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; return `\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${expected}, \u09AA\u09CD\u09B0\u09BE\u09AA\u09CD\u09A4 ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${stringifyPrimitive(issue2.values[0])}`; return `\u0985\u09AC\u09C8\u09A7 \u0985\u09AA\u09B6\u09A8: ${joinValues(issue2.values, " | ")} \u098F\u09B0 \u09AE\u09A7\u09CD\u09AF\u09C7 \u098F\u0995\u099F\u09BF \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${issue2.origin ?? "\u09AE\u09BE\u09A8"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u098F\u09B2\u09BF\u09AE\u09C7\u09A8\u09CD\u099F"} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`; return `\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${issue2.origin ?? "\u09AE\u09BE\u09A8"} ${adj}${issue2.maximum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`; } return `\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${issue2.origin} ${adj}${issue2.minimum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${_issue.prefix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C1\u09B0\u09C1 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`; } if (_issue.format === "ends_with") return `\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${_issue.suffix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C7\u09B7 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`; if (_issue.format === "includes") return `\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${_issue.includes}" \u0985\u09A8\u09CD\u09A4\u09B0\u09CD\u09AD\u09C1\u0995\u09CD\u09A4 \u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7`; if (_issue.format === "regex") return `\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: ${_issue.pattern} \u09AA\u09CD\u09AF\u09BE\u099F\u09BE\u09B0\u09CD\u09A8 \u09AE\u09BF\u09B2\u09A4\u09C7 \u09B9\u09AC\u09C7`; return `\u0985\u09AC\u09C8\u09A7 ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u0985\u09AC\u09C8\u09A7 \u09A8\u09AE\u09CD\u09AC\u09B0: ${issue2.divisor} \u098F\u09B0 \u0997\u09C1\u09A3\u09BF\u09A4\u0995 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`; case "unrecognized_keys": return `\u0985\u099A\u09C7\u09A8\u09BE \u0995\u09C0${issue2.keys.length > 1 ? "\u0997\u09C1\u09B2\u09CB" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `${issue2.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u0995\u09C0`; case "invalid_union": if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) { const opts = issue2.options.map((o3) => `'${o3}'`).join(" | "); return `\u0985\u09AC\u09C8\u09A7 \u09A1\u09BF\u09B8\u0995\u09CD\u09B0\u09BF\u09AE\u09BF\u09A8\u09C7\u099F\u09B0 \u09AE\u09BE\u09A8\u0964 \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${opts}`; } return "\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F"; case "invalid_element": return `${issue2.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u09AE\u09BE\u09A8`; default: return "\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F"; } }; }, "error"); function bn_default() { return { localeError: error5() }; } __name(bn_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ca.js var error6 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "car\xE0cters", verb: "contenir" }, file: { unit: "bytes", verb: "contenir" }, array: { unit: "elements", verb: "contenir" }, set: { unit: "elements", verb: "contenir" }, map: { unit: "elements", verb: "contenir" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "entrada", email: "adre\xE7a electr\xF2nica", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "data i hora ISO", date: "data ISO", time: "hora ISO", duration: "durada ISO", ipv4: "adre\xE7a IPv4", ipv6: "adre\xE7a IPv6", mac: "adre\xE7a MAC", cidrv4: "rang IPv4", cidrv6: "rang IPv6", base64: "cadena codificada en base64", base64url: "cadena codificada en base64url", json_string: "cadena JSON", e164: "n\xFAmero E.164", credit_card: "n\xFAmero de targeta de cr\xE8dit", currency_code: "codi de moneda", iban: "IBAN", jwt: "JWT", template_literal: "entrada" }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Tipus inv\xE0lid: s'esperava instanceof ${issue2.expected}, s'ha rebut ${received}`; } return `Tipus inv\xE0lid: s'esperava ${expected}, s'ha rebut ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Valor inv\xE0lid: s'esperava ${stringifyPrimitive(issue2.values[0])}`; return `Opci\xF3 inv\xE0lida: s'esperava una de ${joinValues(issue2.values, " o ")}`; case "too_big": { const adj = issue2.inclusive ? "com a m\xE0xim" : "menys de"; const sizing = getSizing(issue2.origin); if (sizing) return `Massa gran: s'esperava que ${issue2.origin ?? "el valor"} contingu\xE9s ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "elements"}`; return `Massa gran: s'esperava que ${issue2.origin ?? "el valor"} fos ${adj} ${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? "com a m\xEDnim" : "m\xE9s de"; const sizing = getSizing(issue2.origin); if (sizing) { return `Massa petit: s'esperava que ${issue2.origin} contingu\xE9s ${adj} ${issue2.minimum.toString()} ${sizing.unit}`; } return `Massa petit: s'esperava que ${issue2.origin} fos ${adj} ${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `Format inv\xE0lid: ha de comen\xE7ar amb "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `Format inv\xE0lid: ha d'acabar amb "${_issue.suffix}"`; if (_issue.format === "includes") return `Format inv\xE0lid: ha d'incloure "${_issue.includes}"`; if (_issue.format === "regex") return `Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${_issue.pattern}`; return `Format inv\xE0lid per a ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${issue2.divisor}`; case "unrecognized_keys": return `Clau${issue2.keys.length > 1 ? "s" : ""} no reconeguda${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Clau inv\xE0lida a ${issue2.origin}`; case "invalid_union": return "Entrada inv\xE0lida"; // Could also be "Tipus d'unió invàlid" but "Entrada invàlida" is more general case "invalid_element": return `Element inv\xE0lid a ${issue2.origin}`; default: return `Entrada inv\xE0lida`; } }; }, "error"); function ca_default() { return { localeError: error6() }; } __name(ca_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ckb.js var error7 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u067E\u06CC\u062A", verb: "\u0628\u06CE\u062A" }, file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u0628\u06CE\u062A" }, array: { unit: "\u062F\u0627\u0646\u06D5", verb: "\u0628\u06CE\u062A" }, set: { unit: "\u062F\u0627\u0646\u06D5", verb: "\u0628\u06CE\u062A" }, map: { unit: "\u062F\u0627\u0646\u06D5", verb: "\u0628\u06CE\u062A" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "regex", email: "\u0626\u06CC\u0645\u06D5\u06CC\u06B5", url: "\u0628\u06D5\u0633\u062A\u06D5\u0631 (URL)", emoji: "\u0626\u06CC\u0645\u06C6\u062C\u06CC", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "\u0695\u06CE\u06A9\u06D5\u0648\u062A \u0648 \u06A9\u0627\u062A", date: "\u0695\u06CE\u06A9\u06D5\u0648\u062A", time: "\u06A9\u0627\u062A", duration: "\u0645\u0627\u0648\u06D5", ipv4: "\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv4", ipv6: "\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv6", mac: "\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC MAC", cidrv4: "\u0645\u06D5\u0648\u062F\u0627\u06CC IPv4", cidrv6: "\u0645\u06D5\u0648\u062F\u0627\u06CC IPv6", base64: "\u062F\u06D5\u0642\u06CC base64", base64url: "\u062F\u06D5\u0642\u06CC base64url", json_string: "\u062F\u06D5\u0642\u06CC JSON", e164: "\u0698\u0645\u0627\u0631\u06D5\u06CC E.164", credit_card: "\u0698\u0645\u0627\u0631\u06D5\u06CC \u06A9\u0627\u0631\u062A\u06CC \u06A9\u0631\u06CE\u062F\u06CC\u062A", currency_code: "\u06A9\u06C6\u062F\u06CC \u062F\u0631\u0627\u0648", iban: "IBAN", jwt: "JWT", template_literal: "\u062A\u06CE\u06A9\u0631\u062F\u06D5" }; const TypeDictionary = { nan: "NaN", string: "\u0646\u0648\u0648\u0633\u06CC\u0646", number: "\u0698\u0645\u0627\u0631\u06D5", boolean: "boolean", array: "array", object: "object", date: "\u0695\u06CE\u06A9\u06D5\u0648\u062A", integer: "\u0698\u0645\u0627\u0631\u06D5", float: "\u0698\u0645\u0627\u0631\u06D5", null: "null", undefined: "undefined", function: "function", symbol: "symbol", unknown: "unknown", promise: "promise", void: "void", never: "never", map: "map", set: "set" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; const postfix = ["\u0627", "\u0648", "\u06C6", "\u0648\u0648", "\u06D5", "\u06CC", "\u06CE"].some((p3) => received.endsWith(p3)) ? "\u06CC\u06D5" : "\u06D5"; const isEnglish = /^[a-zA-Z]+$/.test(received); if (receivedType === "null" || receivedType === "undefined") return `\u062F\u0627\u0648\u0627\u06A9\u0631\u0627\u0648\u06D5`; return `\u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${expected} \u0628\u06CE\u062A\u060C \u0628\u06D5\u06B5\u0627\u0645 ${received}${isEnglish ? "" : postfix}`; } case "invalid_value": if (issue2.values.length === 1) return `\u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0648\u0633\u062A\u06D5: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${stringifyPrimitive(issue2.values[0])} \u0628\u06CE\u062A`; return `\u0647\u06D5\u06B5\u0628\u0698\u0627\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 \u06CC\u06D5\u06A9\u06CE\u06A9 \u0628\u06CE\u062A \u0644\u06D5 ${joinValues(issue2.values, "|")}`; case "too_big": { const sizing = getSizing(issue2.origin); if (sizing) return `\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${issue2.maximum.toString()} ${sizing.unit} ${sizing.verb}`; return `\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${issue2.maximum.toString()} \u0628\u06CE\u062A`; } case "too_small": { const sizing = getSizing(issue2.origin); if (sizing) return `\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${issue2.minimum.toString()} ${sizing.unit} ${sizing.verb}`; return `\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${issue2.minimum.toString()} \u0628\u06CE\u062A`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u062F\u06D5\u0633\u062A\u067E\u06CE\u0628\u06A9\u0627\u062A \u0628\u06D5 "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u06A9\u06C6\u062A\u0627\u06CC\u06CC\u0628\u06CE\u062A \u0628\u06D5 "${_issue.suffix}"`; if (_issue.format === "includes") return `\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 "${_issue.includes}" \u0644\u06D5\u062E\u06C6\u0628\u06AF\u0631\u06CE\u062A`; if (_issue.format === "regex") return `\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0644\u06D5\u06AF\u06D5\u06B5 \u067E\u0627\u062A\u06CE\u0631\u0646\u06CC ${_issue.pattern} \u0628\u06AF\u0648\u0646\u062C\u06CE\u062A`; return `\u0628\u06D5\u0647\u0627\u06CC ${FormatDictionary[_issue.format] ?? issue2.format} \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`; } case "not_multiple_of": return `\u0698\u0645\u0627\u0631\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u062F\u06D5\u0628\u06CE\u062A \u0686\u06D5\u0646\u062F \u0647\u06CE\u0646\u062F\u06D5 \u0628\u06CE\u062A \u0628\u06C6 ${issue2.divisor}`; case "unrecognized_keys": return `\u06A9\u0644\u06CC\u0644\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u06A9\u0644\u06CC\u0644\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A \u0644\u06D5 ${issue2.origin}`; case "invalid_union": if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) { const opts = issue2.options.map((o3) => `'${o3}'`).join(" | "); return `\u0628\u06D5\u0647\u0627\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648 \u0647\u06D5\u06CC\u06D5. \u0628\u06D5\u0647\u0627\u06CC \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648: ${opts}`; } return "\u06CC\u06D5\u06A9\u06AF\u0631\u062A\u0646\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A"; case "invalid_element": return `${issue2.origin} \u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`; default: return `\u062A\u06CE\u06A9\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A`; } }; }, "error"); function ckb_default() { return { localeError: error7() }; } __name(ckb_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/cs.js var error8 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "znak\u016F", verb: "m\xEDt" }, file: { unit: "bajt\u016F", verb: "m\xEDt" }, array: { unit: "prvk\u016F", verb: "m\xEDt" }, set: { unit: "prvk\u016F", verb: "m\xEDt" }, map: { unit: "prvk\u016F", verb: "m\xEDt" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "regul\xE1rn\xED v\xFDraz", email: "e-mailov\xE1 adresa", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "datum a \u010Das ve form\xE1tu ISO", date: "datum ve form\xE1tu ISO", time: "\u010Das ve form\xE1tu ISO", duration: "doba trv\xE1n\xED ISO", ipv4: "IPv4 adresa", ipv6: "IPv6 adresa", mac: "MAC adresa", cidrv4: "rozsah IPv4", cidrv6: "rozsah IPv6", base64: "\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64", base64url: "\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url", json_string: "\u0159et\u011Bzec ve form\xE1tu JSON", e164: "\u010D\xEDslo E.164", credit_card: "\u010D\xEDslo kreditn\xED karty", currency_code: "k\xF3d m\u011Bny", iban: "IBAN", jwt: "JWT", template_literal: "vstup" }; const TypeDictionary = { nan: "NaN", number: "\u010D\xEDslo", string: "\u0159et\u011Bzec", function: "funkce", array: "pole" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${issue2.expected}, obdr\u017Eeno ${received}`; } return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${expected}, obdr\u017Eeno ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${stringifyPrimitive(issue2.values[0])}`; return `Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) { return `Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${issue2.origin ?? "hodnota"} mus\xED m\xEDt ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "prvk\u016F"}`; } return `Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${issue2.origin ?? "hodnota"} mus\xED b\xFDt ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${issue2.origin ?? "hodnota"} mus\xED m\xEDt ${adj}${issue2.minimum.toString()} ${sizing.unit ?? "prvk\u016F"}`; } return `Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${issue2.origin ?? "hodnota"} mus\xED b\xFDt ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${_issue.prefix}"`; if (_issue.format === "ends_with") return `Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${_issue.suffix}"`; if (_issue.format === "includes") return `Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${_issue.includes}"`; if (_issue.format === "regex") return `Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${_issue.pattern}`; return `Neplatn\xFD form\xE1t ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${issue2.divisor}`; case "unrecognized_keys": return `Nezn\xE1m\xE9 kl\xED\u010De: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Neplatn\xFD kl\xED\u010D v ${issue2.origin}`; case "invalid_union": return "Neplatn\xFD vstup"; case "invalid_element": return `Neplatn\xE1 hodnota v ${issue2.origin}`; default: return `Neplatn\xFD vstup`; } }; }, "error"); function cs_default() { return { localeError: error8() }; } __name(cs_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/da.js var error9 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "tegn", verb: "havde" }, file: { unit: "bytes", verb: "havde" }, array: { unit: "elementer", verb: "indeholdt" }, set: { unit: "elementer", verb: "indeholdt" }, map: { unit: "elementer", verb: "indeholdt" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "input", email: "e-mailadresse", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO dato- og klokkesl\xE6t", date: "ISO-dato", time: "ISO-klokkesl\xE6t", duration: "ISO-varighed", ipv4: "IPv4-adresse", ipv6: "IPv6-adresse", mac: "MAC-adresse", cidrv4: "IPv4-spektrum", cidrv6: "IPv6-spektrum", base64: "base64-kodet streng", base64url: "base64url-kodet streng", json_string: "JSON-streng", e164: "E.164-nummer", credit_card: "kreditkortnummer", currency_code: "valutakode", iban: "IBAN", jwt: "JWT", template_literal: "input" }; const TypeDictionary = { nan: "NaN", string: "streng", number: "tal", boolean: "boolean", array: "liste", object: "objekt", set: "s\xE6t", file: "fil" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Ugyldigt input: forventede instanceof ${issue2.expected}, fik ${received}`; } return `Ugyldigt input: forventede ${expected}, fik ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Ugyldig v\xE6rdi: forventede ${stringifyPrimitive(issue2.values[0])}`; return `Ugyldigt valg: forventede en af f\xF8lgende ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); const origin = TypeDictionary[issue2.origin] ?? issue2.origin; if (sizing) return `For stor: forventede ${origin ?? "value"} ${sizing.verb} ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "elementer"}`; return `For stor: forventede ${origin ?? "value"} havde ${adj} ${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); const origin = TypeDictionary[issue2.origin] ?? issue2.origin; if (sizing) { return `For lille: forventede ${origin} ${sizing.verb} ${adj} ${issue2.minimum.toString()} ${sizing.unit}`; } return `For lille: forventede ${origin} havde ${adj} ${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Ugyldig streng: skal starte med "${_issue.prefix}"`; if (_issue.format === "ends_with") return `Ugyldig streng: skal ende med "${_issue.suffix}"`; if (_issue.format === "includes") return `Ugyldig streng: skal indeholde "${_issue.includes}"`; if (_issue.format === "regex") return `Ugyldig streng: skal matche m\xF8nsteret ${_issue.pattern}`; return `Ugyldig ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Ugyldigt tal: skal v\xE6re deleligt med ${issue2.divisor}`; case "unrecognized_keys": return `${issue2.keys.length > 1 ? "Ukendte n\xF8gler" : "Ukendt n\xF8gle"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Ugyldig n\xF8gle i ${issue2.origin}`; case "invalid_union": return "Ugyldigt input: matcher ingen af de tilladte typer"; case "invalid_element": return `Ugyldig v\xE6rdi i ${issue2.origin}`; default: return `Ugyldigt input`; } }; }, "error"); function da_default() { return { localeError: error9() }; } __name(da_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/de.js var error10 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "Zeichen", verb: "zu haben" }, file: { unit: "Bytes", verb: "zu haben" }, array: { unit: "Elemente", verb: "zu haben" }, set: { unit: "Elemente", verb: "zu haben" }, map: { unit: "Elemente", verb: "zu haben" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "Eingabe", email: "E-Mail-Adresse", url: "URL", emoji: "Emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO-Datum und -Uhrzeit", date: "ISO-Datum", time: "ISO-Uhrzeit", duration: "ISO-Dauer", ipv4: "IPv4-Adresse", ipv6: "IPv6-Adresse", mac: "MAC-Adresse", cidrv4: "IPv4-Bereich", cidrv6: "IPv6-Bereich", base64: "Base64-codierter String", base64url: "Base64-URL-codierter String", json_string: "JSON-String", e164: "E.164-Nummer", credit_card: "Kreditkartennummer", currency_code: "W\xE4hrungscode", iban: "IBAN", jwt: "JWT", template_literal: "Eingabe" }; const TypeDictionary = { nan: "NaN", number: "Zahl", array: "Array" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Ung\xFCltige Eingabe: erwartet instanceof ${issue2.expected}, erhalten ${received}`; } return `Ung\xFCltige Eingabe: erwartet ${expected}, erhalten ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Ung\xFCltige Eingabe: erwartet ${stringifyPrimitive(issue2.values[0])}`; return `Ung\xFCltige Option: erwartet eine von ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Zu gro\xDF: erwartet, dass ${issue2.origin ?? "Wert"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "Elemente"} hat`; return `Zu gro\xDF: erwartet, dass ${issue2.origin ?? "Wert"} ${adj}${issue2.maximum.toString()} ist`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Zu klein: erwartet, dass ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} hat`; } return `Zu klein: erwartet, dass ${issue2.origin} ${adj}${issue2.minimum.toString()} ist`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Ung\xFCltiger String: muss mit "${_issue.prefix}" beginnen`; if (_issue.format === "ends_with") return `Ung\xFCltiger String: muss mit "${_issue.suffix}" enden`; if (_issue.format === "includes") return `Ung\xFCltiger String: muss "${_issue.includes}" enthalten`; if (_issue.format === "regex") return `Ung\xFCltiger String: muss dem Muster ${_issue.pattern} entsprechen`; return `Ung\xFCltig: ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Ung\xFCltige Zahl: muss ein Vielfaches von ${issue2.divisor} sein`; case "unrecognized_keys": return `${issue2.keys.length > 1 ? "Unbekannte Schl\xFCssel" : "Unbekannter Schl\xFCssel"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Ung\xFCltiger Schl\xFCssel in ${issue2.origin}`; case "invalid_union": return "Ung\xFCltige Eingabe"; case "invalid_element": return `Ung\xFCltiger Wert in ${issue2.origin}`; default: return `Ung\xFCltige Eingabe`; } }; }, "error"); function de_default() { return { localeError: error10() }; } __name(de_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/el.js var error11 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }, file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }, array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }, set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }, map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2", email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1", date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1", time: "ISO \u03CE\u03C1\u03B1", duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1", ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4", ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6", mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC", cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4", cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6", base64: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64", base64url: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url", json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON", e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164", credit_card: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C0\u03B9\u03C3\u03C4\u03C9\u03C4\u03B9\u03BA\u03AE\u03C2 \u03BA\u03AC\u03C1\u03C4\u03B1\u03C2", currency_code: "\u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2", iban: "IBAN", jwt: "JWT", template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2" }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) { return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`; } return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${stringifyPrimitive(issue2.values[0])}`; return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`; return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${_issue.suffix}"`; if (_issue.format === "includes") return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${_issue.includes}"`; if (_issue.format === "regex") return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${_issue.pattern}`; return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${issue2.divisor}`; case "unrecognized_keys": return `\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${issue2.keys.length > 1 ? "\u03B1" : "\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${issue2.keys.length > 1 ? "\u03B9\u03AC" : "\u03AF"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`; case "invalid_union": return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"; case "invalid_element": return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`; default: return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`; } }; }, "error"); function el_default() { return { localeError: error11() }; } __name(el_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/en.js var error12 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "characters", verb: "to have" }, file: { unit: "bytes", verb: "to have" }, array: { unit: "items", verb: "to have" }, set: { unit: "items", verb: "to have" }, map: { unit: "entries", verb: "to have" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "input", email: "email address", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO datetime", date: "ISO date", time: "ISO time", duration: "ISO duration", ipv4: "IPv4 address", ipv6: "IPv6 address", mac: "MAC address", cidrv4: "IPv4 range", cidrv6: "IPv6 range", base64: "base64-encoded string", base64url: "base64url-encoded string", json_string: "JSON string", e164: "E.164 number", currency_code: "currency code", credit_card: "credit card number", iban: "IBAN", jwt: "JWT", template_literal: "input" }; const TypeDictionary = { // Compatibility: "nan" -> "NaN" for display nan: "NaN" // All other type names omitted - they fall back to raw values via ?? operator }; function getTypeName(type, input2) { if (type === "number" && typeof input2 === "number" && !Number.isFinite(input2)) { return String(input2); } return TypeDictionary[type] ?? type; } __name(getTypeName, "getTypeName"); return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = getTypeName(issue2.expected); const receivedType = parsedType(issue2.input); const received = getTypeName(receivedType, issue2.input); return `Invalid input: expected ${expected}, received ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`; return `Invalid option: expected one of ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.exact ? "exactly " : issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Too big: expected ${issue2.origin ?? "value"} to have ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elements"}`; return `Too big: expected ${issue2.origin ?? "value"} to be ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.exact ? "exactly " : issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Too small: expected ${issue2.origin} to have ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `Too small: expected ${issue2.origin} to be ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `Invalid string: must start with "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `Invalid string: must end with "${_issue.suffix}"`; if (_issue.format === "includes") return `Invalid string: must include "${_issue.includes}"`; if (_issue.format === "regex") return `Invalid string: must match pattern ${_issue.pattern}`; return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Invalid number: must be a multiple of ${issue2.divisor}`; case "unrecognized_keys": return `Unrecognized key${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Invalid key in ${issue2.origin}`; case "invalid_union": if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) { const opts = issue2.options.map((o3) => `'${o3}'`).join(" | "); return `Invalid discriminator value. Expected ${opts}`; } if (issue2.inclusive === false) { return "Invalid input: more than one option matched"; } return "Invalid input"; case "invalid_element": return `Invalid value in ${issue2.origin}`; default: return `Invalid input`; } }; }, "error"); function en_default() { return { localeError: error12() }; } __name(en_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/eo.js var error13 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "karaktrojn", verb: "havi" }, file: { unit: "bajtojn", verb: "havi" }, array: { unit: "elementojn", verb: "havi" }, set: { unit: "elementojn", verb: "havi" }, map: { unit: "elementojn", verb: "havi" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "enigo", email: "retadreso", url: "URL", emoji: "emo\u011Dio", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO-datotempo", date: "ISO-dato", time: "ISO-tempo", duration: "ISO-da\u016Dro", ipv4: "IPv4-adreso", ipv6: "IPv6-adreso", mac: "MAC-adreso", cidrv4: "IPv4-rango", cidrv6: "IPv6-rango", base64: "64-ume kodita karaktraro", base64url: "URL-64-ume kodita karaktraro", json_string: "JSON-karaktraro", e164: "E.164-nombro", credit_card: "kreditkarta numero", currency_code: "valuta kodo", iban: "IBAN", jwt: "JWT", template_literal: "enigo" }; const TypeDictionary = { nan: "NaN", number: "nombro", array: "tabelo", null: "senvalora" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Nevalida enigo: atendi\u011Dis instanceof ${issue2.expected}, ricevi\u011Dis ${received}`; } return `Nevalida enigo: atendi\u011Dis ${expected}, ricevi\u011Dis ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Nevalida enigo: atendi\u011Dis ${stringifyPrimitive(issue2.values[0])}`; return `Nevalida opcio: atendi\u011Dis unu el ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Tro granda: atendi\u011Dis ke ${issue2.origin ?? "valoro"} havu ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementojn"}`; return `Tro granda: atendi\u011Dis ke ${issue2.origin ?? "valoro"} havu ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Tro malgranda: atendi\u011Dis ke ${issue2.origin} havu ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `Tro malgranda: atendi\u011Dis ke ${issue2.origin} estu ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Nevalida karaktraro: devas komenci\u011Di per "${_issue.prefix}"`; if (_issue.format === "ends_with") return `Nevalida karaktraro: devas fini\u011Di per "${_issue.suffix}"`; if (_issue.format === "includes") return `Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`; if (_issue.format === "regex") return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`; return `Nevalida ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${issue2.divisor}`; case "unrecognized_keys": return `Nekonata${issue2.keys.length > 1 ? "j" : ""} \u015Dlosilo${issue2.keys.length > 1 ? "j" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Nevalida \u015Dlosilo en ${issue2.origin}`; case "invalid_union": return "Nevalida enigo"; case "invalid_element": return `Nevalida valoro en ${issue2.origin}`; default: return `Nevalida enigo`; } }; }, "error"); function eo_default() { return { localeError: error13() }; } __name(eo_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/es.js var error14 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "caracteres", verb: "tener" }, file: { unit: "bytes", verb: "tener" }, array: { unit: "elementos", verb: "tener" }, set: { unit: "elementos", verb: "tener" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "entrada", email: "direcci\xF3n de correo electr\xF3nico", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "fecha y hora ISO", date: "fecha ISO", time: "hora ISO", duration: "duraci\xF3n ISO", ipv4: "direcci\xF3n IPv4", ipv6: "direcci\xF3n IPv6", mac: "direcci\xF3n MAC", cidrv4: "rango IPv4", cidrv6: "rango IPv6", base64: "cadena codificada en base64", base64url: "URL codificada en base64", json_string: "cadena JSON", e164: "n\xFAmero E.164", credit_card: "n\xFAmero de tarjeta de cr\xE9dito", currency_code: "c\xF3digo de moneda", iban: "IBAN", jwt: "JWT", template_literal: "entrada" }; const TypeDictionary = { nan: "NaN", string: "texto", number: "n\xFAmero", boolean: "booleano", array: "arreglo", object: "objeto", set: "conjunto", file: "archivo", date: "fecha", bigint: "n\xFAmero grande", symbol: "s\xEDmbolo", undefined: "indefinido", null: "nulo", function: "funci\xF3n", map: "mapa", record: "registro", tuple: "tupla", enum: "enumeraci\xF3n", union: "uni\xF3n", literal: "literal", promise: "promesa", void: "vac\xEDo", never: "nunca", unknown: "desconocido", any: "cualquiera" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Entrada inv\xE1lida: se esperaba instanceof ${issue2.expected}, recibido ${received}`; } return `Entrada inv\xE1lida: se esperaba ${expected}, recibido ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Entrada inv\xE1lida: se esperaba ${stringifyPrimitive(issue2.values[0])}`; return `Opci\xF3n inv\xE1lida: se esperaba una de ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); const origin = TypeDictionary[issue2.origin] ?? issue2.origin; if (sizing) return `Demasiado grande: se esperaba que ${origin ?? "valor"} tuviera ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`; return `Demasiado grande: se esperaba que ${origin ?? "valor"} fuera ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); const origin = TypeDictionary[issue2.origin] ?? issue2.origin; if (sizing) { return `Demasiado peque\xF1o: se esperaba que ${origin} tuviera ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `Demasiado peque\xF1o: se esperaba que ${origin} fuera ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Cadena inv\xE1lida: debe comenzar con "${_issue.prefix}"`; if (_issue.format === "ends_with") return `Cadena inv\xE1lida: debe terminar en "${_issue.suffix}"`; if (_issue.format === "includes") return `Cadena inv\xE1lida: debe incluir "${_issue.includes}"`; if (_issue.format === "regex") return `Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${_issue.pattern}`; return `Inv\xE1lido ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${issue2.divisor}`; case "unrecognized_keys": return `Llave${issue2.keys.length > 1 ? "s" : ""} desconocida${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Llave inv\xE1lida en ${TypeDictionary[issue2.origin] ?? issue2.origin}`; case "invalid_union": return "Entrada inv\xE1lida"; case "invalid_element": return `Valor inv\xE1lido en ${TypeDictionary[issue2.origin] ?? issue2.origin}`; default: return `Entrada inv\xE1lida`; } }; }, "error"); function es_default() { return { localeError: error14() }; } __name(es_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/fa.js var error15 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" }, file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" }, array: { unit: "\u0622\u06CC\u062A\u0645", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" }, set: { unit: "\u0622\u06CC\u062A\u0645", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" }, map: { unit: "\u0622\u06CC\u062A\u0645", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0648\u0631\u0648\u062F\u06CC", email: "\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644", url: "URL", emoji: "\u0627\u06CC\u0645\u0648\u062C\u06CC", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648", date: "\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648", time: "\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648", duration: "\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648", ipv4: "IPv4 \u0622\u062F\u0631\u0633", ipv6: "IPv6 \u0622\u062F\u0631\u0633", mac: "MAC \u0622\u062F\u0631\u0633", cidrv4: "IPv4 \u062F\u0627\u0645\u0646\u0647", cidrv6: "IPv6 \u062F\u0627\u0645\u0646\u0647", base64: "base64-encoded \u0631\u0634\u062A\u0647", base64url: "base64url-encoded \u0631\u0634\u062A\u0647", json_string: "JSON \u0631\u0634\u062A\u0647", e164: "E.164 \u0639\u062F\u062F", credit_card: "\u0634\u0645\u0627\u0631\u0647 \u06A9\u0627\u0631\u062A \u0627\u0639\u062A\u0628\u0627\u0631\u06CC", currency_code: "\u06A9\u062F \u0627\u0631\u0632", iban: "IBAN", jwt: "JWT", template_literal: "\u0648\u0631\u0648\u062F\u06CC" }; const TypeDictionary = { nan: "NaN", number: "\u0639\u062F\u062F", array: "\u0622\u0631\u0627\u06CC\u0647" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${issue2.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${received} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`; } return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${received} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`; } case "invalid_value": if (issue2.values.length === 1) { return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${stringifyPrimitive(issue2.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`; } return `\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${joinValues(issue2.values, "|")} \u0645\u06CC\u200C\u0628\u0648\u062F`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${issue2.origin ?? "\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`; } return `\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${issue2.origin ?? "\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${adj}${issue2.maximum.toString()} \u0628\u0627\u0634\u062F`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${issue2.origin} \u0628\u0627\u06CC\u062F ${adj}${issue2.minimum.toString()} ${sizing.unit} \u0628\u0627\u0634\u062F`; } return `\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${issue2.origin} \u0628\u0627\u06CC\u062F ${adj}${issue2.minimum.toString()} \u0628\u0627\u0634\u062F`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${_issue.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`; } if (_issue.format === "ends_with") { return `\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${_issue.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`; } if (_issue.format === "includes") { return `\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${_issue.includes}" \u0628\u0627\u0634\u062F`; } if (_issue.format === "regex") { return `\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${_issue.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`; } return `${FormatDictionary[_issue.format] ?? issue2.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`; } case "not_multiple_of": return `\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${issue2.divisor} \u0628\u0627\u0634\u062F`; case "unrecognized_keys": return `\u06A9\u0644\u06CC\u062F${issue2.keys.length > 1 ? "\u0647\u0627\u06CC" : ""} \u0646\u0627\u0634\u0646\u0627\u0633: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${issue2.origin}`; case "invalid_union": return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631`; case "invalid_element": return `\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${issue2.origin}`; default: return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631`; } }; }, "error"); function fa_default() { return { localeError: error15() }; } __name(fa_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/fi.js var error16 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "merkki\xE4", subject: "merkkijonon" }, file: { unit: "tavua", subject: "tiedoston" }, array: { unit: "alkiota", subject: "listan" }, set: { unit: "alkiota", subject: "joukon" }, map: { unit: "alkiota", subject: "kuvauksen" }, number: { unit: "", subject: "luvun" }, bigint: { unit: "", subject: "suuren kokonaisluvun" }, int: { unit: "", subject: "kokonaisluvun" }, date: { unit: "", subject: "p\xE4iv\xE4m\xE4\xE4r\xE4n" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "s\xE4\xE4nn\xF6llinen lauseke", email: "s\xE4hk\xF6postiosoite", url: "URL-osoite", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO-aikaleima", date: "ISO-p\xE4iv\xE4m\xE4\xE4r\xE4", time: "ISO-aika", duration: "ISO-kesto", ipv4: "IPv4-osoite", ipv6: "IPv6-osoite", mac: "MAC-osoite", cidrv4: "IPv4-alue", cidrv6: "IPv6-alue", base64: "base64-koodattu merkkijono", base64url: "base64url-koodattu merkkijono", json_string: "JSON-merkkijono", e164: "E.164-luku", credit_card: "luottokortin numero", currency_code: "valuuttakoodi", iban: "IBAN", jwt: "JWT", template_literal: "templaattimerkkijono" }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Virheellinen tyyppi: odotettiin instanceof ${issue2.expected}, oli ${received}`; } return `Virheellinen tyyppi: odotettiin ${expected}, oli ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Virheellinen sy\xF6te: t\xE4ytyy olla ${stringifyPrimitive(issue2.values[0])}`; return `Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) { return `Liian suuri: ${sizing.subject} t\xE4ytyy olla ${adj}${issue2.maximum.toString()} ${sizing.unit}`.trim(); } return `Liian suuri: arvon t\xE4ytyy olla ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Liian pieni: ${sizing.subject} t\xE4ytyy olla ${adj}${issue2.minimum.toString()} ${sizing.unit}`.trim(); } return `Liian pieni: arvon t\xE4ytyy olla ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Virheellinen sy\xF6te: t\xE4ytyy alkaa "${_issue.prefix}"`; if (_issue.format === "ends_with") return `Virheellinen sy\xF6te: t\xE4ytyy loppua "${_issue.suffix}"`; if (_issue.format === "includes") return `Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${_issue.includes}"`; if (_issue.format === "regex") { return `Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${_issue.pattern}`; } return `Virheellinen ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Virheellinen luku: t\xE4ytyy olla luvun ${issue2.divisor} monikerta`; case "unrecognized_keys": return `${issue2.keys.length > 1 ? "Tuntemattomat avaimet" : "Tuntematon avain"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return "Virheellinen avain tietueessa"; case "invalid_union": return "Virheellinen unioni"; case "invalid_element": return "Virheellinen arvo joukossa"; default: return `Virheellinen sy\xF6te`; } }; }, "error"); function fi_default() { return { localeError: error16() }; } __name(fi_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/fr.js var error17 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "caract\xE8res", verb: "avoir" }, file: { unit: "octets", verb: "avoir" }, array: { unit: "\xE9l\xE9ments", verb: "avoir" }, set: { unit: "\xE9l\xE9ments", verb: "avoir" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "expression r\xE9guli\xE8re", email: "adresse e-mail", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "date et heure ISO", date: "date ISO", time: "heure ISO", duration: "dur\xE9e ISO", ipv4: "adresse IPv4", ipv6: "adresse IPv6", mac: "adresse MAC", cidrv4: "plage IPv4", cidrv6: "plage IPv6", base64: "cha\xEEne de caract\xE8res encod\xE9e en base64", base64url: "cha\xEEne de caract\xE8res encod\xE9e en base64url", json_string: "cha\xEEne de caract\xE8res JSON", e164: "num\xE9ro au format E.164", credit_card: "num\xE9ro de carte de cr\xE9dit", currency_code: "code de devise", iban: "IBAN", jwt: "JWT", template_literal: "entr\xE9e" }; const TypeDictionary = { string: "cha\xEEne de caract\xE8res", number: "nombre", int: "entier", boolean: "bool\xE9en", bigint: "grand entier", symbol: "symbole", undefined: "ind\xE9fini", null: "null", never: "jamais", void: "vide", date: "date", array: "tableau", object: "objet", tuple: "tuple", record: "record", map: "map", set: "ensemble", file: "fichier", nonoptional: "non optionnel", nan: "NaN", function: "fonction" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Entr\xE9e invalide : instance de ${issue2.expected} attendu, ${received} re\xE7u`; } return `Entr\xE9e invalide : ${expected} attendu, ${received} re\xE7u`; } case "invalid_value": if (issue2.values.length === 1) return `Entr\xE9e invalide : ${stringifyPrimitive(issue2.values[0])} attendu`; return `Option invalide : une valeur parmi ${joinValues(issue2.values, "|")} attendue`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`; return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`; return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Cha\xEEne de caract\xE8res invalide : doit commencer par "${_issue.prefix}"`; if (_issue.format === "ends_with") return `Cha\xEEne de caract\xE8res invalide : doit se terminer par "${_issue.suffix}"`; if (_issue.format === "includes") return `Cha\xEEne de caract\xE8res invalide : doit inclure "${_issue.includes}"`; if (_issue.format === "regex") return `Cha\xEEne de caract\xE8res invalide : doit correspondre au motif ${_issue.pattern}`; return `${FormatDictionary[_issue.format] ?? issue2.format} invalide`; } case "not_multiple_of": return `Nombre invalide : doit \xEAtre un multiple de ${issue2.divisor}`; case "unrecognized_keys": return `Cl\xE9${issue2.keys.length > 1 ? "s" : ""} non reconnue${issue2.keys.length > 1 ? "s" : ""} : ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Cl\xE9 invalide dans ${issue2.origin}`; case "invalid_union": return "Entr\xE9e invalide"; case "invalid_element": return `Valeur invalide dans ${issue2.origin}`; default: return `Entr\xE9e invalide`; } }; }, "error"); function fr_default() { return { localeError: error17() }; } __name(fr_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/fr-CA.js var error18 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "caract\xE8res", verb: "avoir" }, file: { unit: "octets", verb: "avoir" }, array: { unit: "\xE9l\xE9ments", verb: "avoir" }, set: { unit: "\xE9l\xE9ments", verb: "avoir" }, map: { unit: "\xE9l\xE9ments", verb: "avoir" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "entr\xE9e", email: "adresse courriel", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "date-heure ISO", date: "date ISO", time: "heure ISO", duration: "dur\xE9e ISO", ipv4: "adresse IPv4", ipv6: "adresse IPv6", mac: "adresse MAC", cidrv4: "plage IPv4", cidrv6: "plage IPv6", base64: "cha\xEEne encod\xE9e en base64", base64url: "cha\xEEne encod\xE9e en base64url", json_string: "cha\xEEne JSON", e164: "num\xE9ro E.164", credit_card: "num\xE9ro de carte de cr\xE9dit", currency_code: "code de devise", iban: "IBAN", jwt: "JWT", template_literal: "entr\xE9e" }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Entr\xE9e invalide : attendu instanceof ${issue2.expected}, re\xE7u ${received}`; } return `Entr\xE9e invalide : attendu ${expected}, re\xE7u ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Entr\xE9e invalide : attendu ${stringifyPrimitive(issue2.values[0])}`; return `Option invalide : attendu l'une des valeurs suivantes ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "\u2264" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Trop grand : attendu que ${issue2.origin ?? "la valeur"} ait ${adj}${issue2.maximum.toString()} ${sizing.unit}`; return `Trop grand : attendu que ${issue2.origin ?? "la valeur"} soit ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? "\u2265" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Trop petit : attendu que ${issue2.origin} ait ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `Trop petit : attendu que ${issue2.origin} soit ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `Cha\xEEne invalide : doit commencer par "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `Cha\xEEne invalide : doit se terminer par "${_issue.suffix}"`; if (_issue.format === "includes") return `Cha\xEEne invalide : doit inclure "${_issue.includes}"`; if (_issue.format === "regex") return `Cha\xEEne invalide : doit correspondre au motif ${_issue.pattern}`; return `${FormatDictionary[_issue.format] ?? issue2.format} invalide`; } case "not_multiple_of": return `Nombre invalide : doit \xEAtre un multiple de ${issue2.divisor}`; case "unrecognized_keys": return `Cl\xE9${issue2.keys.length > 1 ? "s" : ""} non reconnue${issue2.keys.length > 1 ? "s" : ""} : ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Cl\xE9 invalide dans ${issue2.origin}`; case "invalid_union": return "Entr\xE9e invalide"; case "invalid_element": return `Valeur invalide dans ${issue2.origin}`; default: return `Entr\xE9e invalide`; } }; }, "error"); function fr_CA_default() { return { localeError: error18() }; } __name(fr_CA_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/gu.js var error19 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u0A85\u0A95\u0ACD\u0AB7\u0AB0", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" }, file: { unit: "\u0AAC\u0ABE\u0AAF\u0A9F", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" }, array: { unit: "\u0A86\u0A87\u0A9F\u0AAE", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" }, set: { unit: "\u0A86\u0A87\u0A9F\u0AAE", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" }, map: { unit: "\u0A8F\u0AA8\u0ACD\u0A9F\u0ACD\u0AB0\u0AC0", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0A87\u0AA8\u0AAA\u0AC1\u0A9F", email: "\u0A88\u0AAE\u0AC7\u0A87\u0AB2 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8", url: "URL", emoji: "\u0A87\u0AAE\u0ACB\u0A9C\u0AC0", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96 \u0A85\u0AA8\u0AC7 \u0AB8\u0AAE\u0AAF", date: "ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96", time: "ISO \u0AB8\u0AAE\u0AAF", duration: "ISO \u0A85\u0AB5\u0AA7\u0ABF", ipv4: "IPv4 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8", ipv6: "IPv6 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8", mac: "MAC \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8", cidrv4: "IPv4 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0", cidrv6: "IPv6 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0", base64: "base64-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97", base64url: "base64url-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97", json_string: "JSON \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97", e164: "E.164 \u0AA8\u0A82\u0AAC\u0AB0", credit_card: "\u0A95\u0ACD\u0AB0\u0AC7\u0AA1\u0ABF\u0A9F \u0A95\u0ABE\u0AB0\u0ACD\u0AA1 \u0AA8\u0A82\u0AAC\u0AB0", currency_code: "\u0A9A\u0AB2\u0AA3 \u0A95\u0ACB\u0AA1", iban: "IBAN", jwt: "JWT", template_literal: "\u0A87\u0AA8\u0AAA\u0AC1\u0A9F" }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; return `\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${expected}, \u0AAA\u0ACD\u0AB0\u0ABE\u0AAA\u0ACD\u0AA4 ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${stringifyPrimitive(issue2.values[0])}`; return `\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB5\u0ABF\u0A95\u0AB2\u0ACD\u0AAA: ${joinValues(issue2.values, " | ")} \u0AAE\u0ABE\u0AA7\u0ACD\u0AAF\u0AAE\u0AA5\u0AC0 \u0A8F\u0A95 \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${issue2.origin ?? "\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0A8F\u0AB2\u0ABF\u0AAE\u0AC7\u0AA8\u0ACD\u0A9F"} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`; return `\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${issue2.origin ?? "\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${adj}${issue2.maximum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`; } return `\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${issue2.origin} ${adj}${issue2.minimum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${_issue.prefix}" \u0AA5\u0AC0 \u0AB6\u0AB0\u0AC2 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`; } if (_issue.format === "ends_with") return `\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${_issue.suffix}" \u0AAA\u0AB0 \u0AB8\u0AAE\u0ABE\u0AAA\u0ACD\u0AA4 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`; if (_issue.format === "includes") return `\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${_issue.includes}" \u0AB6\u0ABE\u0AAE\u0AC7\u0AB2 \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`; if (_issue.format === "regex") return `\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: \u0AAA\u0AC7\u0A9F\u0AB0\u0ACD\u0AA8 ${_issue.pattern} \u0AB8\u0ABE\u0AA5\u0AC7 \u0AAE\u0AC7\u0AB3 \u0A96\u0ABE\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`; return `\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA8\u0A82\u0AAC\u0AB0: ${issue2.divisor} \u0AA8\u0ACB \u0A97\u0AC1\u0AA3\u0ABE\u0A82\u0A95 \u0AB9\u0ACB\u0AB5\u0ACB \u0A9C\u0ACB\u0A88\u0A8F`; case "unrecognized_keys": return `\u0A93\u0AB3\u0A96\u0AC0 \u0AB6\u0A95\u0ABE\u0AA4\u0ABE \u0AA8\u0AB9\u0AC0\u0A82 \u0AA4\u0AC7 \u0A95\u0AC0${issue2.keys.length > 1 ? "\u0A93" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `${issue2.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A95\u0AC0`; case "invalid_union": if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) { const opts = issue2.options.map((o3) => `'${o3}'`).join(" | "); return `\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA1\u0ABF\u0AB8\u0ACD\u0A95\u0ACD\u0AB0\u0ABF\u0AAE\u0ABF\u0AA8\u0AC7\u0A9F\u0AB0 \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF. \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${opts}`; } return "\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F"; case "invalid_element": return `${issue2.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF`; default: return "\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F"; } }; }, "error"); function gu_default() { return { localeError: error19() }; } __name(gu_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/he.js var error20 = /* @__PURE__ */ __name(() => { const TypeNames = { string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" }, number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" }, boolean: { label: "\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9", gender: "m" }, bigint: { label: "BigInt", gender: "m" }, date: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA", gender: "m" }, array: { label: "\u05DE\u05E2\u05E8\u05DA", gender: "m" }, object: { label: "\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8", gender: "m" }, null: { label: "\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)", gender: "m" }, undefined: { label: "\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)", gender: "m" }, symbol: { label: "\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)", gender: "m" }, function: { label: "\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4", gender: "f" }, map: { label: "\u05DE\u05E4\u05D4 (Map)", gender: "f" }, set: { label: "\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)", gender: "f" }, file: { label: "\u05E7\u05D5\u05D1\u05E5", gender: "m" }, promise: { label: "Promise", gender: "m" }, NaN: { label: "NaN", gender: "m" }, unknown: { label: "\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2", gender: "m" }, value: { label: "\u05E2\u05E8\u05DA", gender: "m" } }; const Sizable = { string: { unit: "\u05EA\u05D5\u05D5\u05D9\u05DD", shortLabel: "\u05E7\u05E6\u05E8", longLabel: "\u05D0\u05E8\u05D5\u05DA" }, file: { unit: "\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" }, array: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" }, set: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" }, number: { unit: "", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" } // no unit }; const typeEntry = /* @__PURE__ */ __name((t) => t ? TypeNames[t] : void 0, "typeEntry"); const typeLabel = /* @__PURE__ */ __name((t) => { const e5 = typeEntry(t); if (e5) return e5.label; return t ?? TypeNames.unknown.label; }, "typeLabel"); const withDefinite = /* @__PURE__ */ __name((t) => `\u05D4${typeLabel(t)}`, "withDefinite"); const verbFor = /* @__PURE__ */ __name((t) => { const e5 = typeEntry(t); const gender = e5?.gender ?? "m"; return gender === "f" ? "\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA" : "\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA"; }, "verbFor"); const getSizing = /* @__PURE__ */ __name((origin) => { if (!origin) return null; return Sizable[origin] ?? null; }, "getSizing"); const FormatDictionary = { regex: { label: "\u05E7\u05DC\u05D8", gender: "m" }, email: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC", gender: "f" }, url: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA", gender: "f" }, emoji: { label: "\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9", gender: "m" }, uuid: { label: "UUID", gender: "m" }, uuidv4: { label: "UUIDv4", gender: "m" }, uuidv6: { label: "UUIDv6", gender: "m" }, nanoid: { label: "nanoid", gender: "m" }, guid: { label: "GUID", gender: "m" }, cuid: { label: "cuid", gender: "m" }, cuid2: { label: "cuid2", gender: "m" }, ulid: { label: "ULID", gender: "m" }, xid: { label: "XID", gender: "m" }, ksuid: { label: "KSUID", gender: "m" }, datetime: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO", gender: "m" }, date: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA ISO", gender: "m" }, time: { label: "\u05D6\u05DE\u05DF ISO", gender: "m" }, duration: { label: "\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO", gender: "m" }, ipv4: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv4", gender: "f" }, ipv6: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv6", gender: "f" }, mac: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA MAC", gender: "f" }, cidrv4: { label: "\u05D8\u05D5\u05D5\u05D7 IPv4", gender: "m" }, cidrv6: { label: "\u05D8\u05D5\u05D5\u05D7 IPv6", gender: "m" }, base64: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64", gender: "f" }, base64url: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA", gender: "f" }, json_string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON", gender: "f" }, e164: { label: "\u05DE\u05E1\u05E4\u05E8 E.164", gender: "m" }, credit_card: { label: "\u05DE\u05E1\u05E4\u05E8 \u05DB\u05E8\u05D8\u05D9\u05E1 \u05D0\u05E9\u05E8\u05D0\u05D9", gender: "m" }, currency_code: { label: "\u05E7\u05D5\u05D3 \u05DE\u05D8\u05D1\u05E2", gender: "m" }, iban: { label: "IBAN", gender: "m" }, jwt: { label: "JWT", gender: "m" }, template_literal: { label: "\u05E7\u05DC\u05D8", gender: "m" }, ends_with: { label: "\u05E7\u05DC\u05D8", gender: "m" }, includes: { label: "\u05E7\u05DC\u05D8", gender: "m" }, lowercase: { label: "\u05E7\u05DC\u05D8", gender: "m" }, starts_with: { label: "\u05E7\u05DC\u05D8", gender: "m" }, uppercase: { label: "\u05E7\u05DC\u05D8", gender: "m" } }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expectedKey = issue2.expected; const expected = TypeDictionary[expectedKey ?? ""] ?? typeLabel(expectedKey); const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? TypeNames[receivedType]?.label ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${issue2.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${received}`; } return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${received}`; } case "invalid_value": { if (issue2.values.length === 1) { return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${stringifyPrimitive(issue2.values[0])}`; } const stringified = issue2.values.map((v) => stringifyPrimitive(v)); if (issue2.values.length === 2) { return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${stringified[0]} \u05D0\u05D5 ${stringified[1]}`; } const lastValue = stringified[stringified.length - 1]; const restValues = stringified.slice(0, -1).join(", "); return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${restValues} \u05D0\u05D5 ${lastValue}`; } case "too_big": { const sizing = getSizing(issue2.origin); const subject = withDefinite(issue2.origin ?? "value"); if (issue2.origin === "string") { return `${sizing?.longLabel ?? "\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${issue2.maximum.toString()} ${sizing?.unit ?? ""} ${issue2.inclusive ? "\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA" : "\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim(); } if (issue2.origin === "number") { const comparison = issue2.inclusive ? `\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${issue2.maximum}` : `\u05E7\u05D8\u05DF \u05DE-${issue2.maximum}`; return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${comparison}`; } if (issue2.origin === "array" || issue2.origin === "set") { const verb = issue2.origin === "set" ? "\u05E6\u05E8\u05D9\u05DB\u05D4" : "\u05E6\u05E8\u05D9\u05DA"; const comparison = issue2.inclusive ? `${issue2.maximum} ${sizing?.unit ?? ""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA` : `\u05E4\u05D7\u05D5\u05EA \u05DE-${issue2.maximum} ${sizing?.unit ?? ""}`; return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${comparison}`.trim(); } const adj = issue2.inclusive ? "<=" : "<"; const be = verbFor(issue2.origin ?? "value"); if (sizing?.unit) { return `${sizing.longLabel} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.maximum.toString()} ${sizing.unit}`; } return `${sizing?.longLabel ?? "\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.maximum.toString()}`; } case "too_small": { const sizing = getSizing(issue2.origin); const subject = withDefinite(issue2.origin ?? "value"); if (issue2.origin === "string") { return `${sizing?.shortLabel ?? "\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${issue2.minimum.toString()} ${sizing?.unit ?? ""} ${issue2.inclusive ? "\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8" : "\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim(); } if (issue2.origin === "number") { const comparison = issue2.inclusive ? `\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${issue2.minimum}` : `\u05D2\u05D3\u05D5\u05DC \u05DE-${issue2.minimum}`; return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${comparison}`; } if (issue2.origin === "array" || issue2.origin === "set") { const verb = issue2.origin === "set" ? "\u05E6\u05E8\u05D9\u05DB\u05D4" : "\u05E6\u05E8\u05D9\u05DA"; if (issue2.minimum === 1 && issue2.inclusive) { const singularPhrase = issue2.origin === "set" ? "\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3" : "\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3"; return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${singularPhrase}`; } const comparison = issue2.inclusive ? `${issue2.minimum} ${sizing?.unit ?? ""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8` : `\u05D9\u05D5\u05EA\u05E8 \u05DE-${issue2.minimum} ${sizing?.unit ?? ""}`; return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${comparison}`.trim(); } const adj = issue2.inclusive ? ">=" : ">"; const be = verbFor(issue2.origin ?? "value"); if (sizing?.unit) { return `${sizing.shortLabel} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `${sizing?.shortLabel ?? "\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${_issue.prefix}"`; if (_issue.format === "ends_with") return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${_issue.suffix}"`; if (_issue.format === "includes") return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${_issue.includes}"`; if (_issue.format === "regex") return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${_issue.pattern}`; const nounEntry = FormatDictionary[_issue.format]; const noun = nounEntry?.label ?? _issue.format; const gender = nounEntry?.gender ?? "m"; const adjective = gender === "f" ? "\u05EA\u05E7\u05D9\u05E0\u05D4" : "\u05EA\u05E7\u05D9\u05DF"; return `${noun} \u05DC\u05D0 ${adjective}`; } case "not_multiple_of": return `\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${issue2.divisor}`; case "unrecognized_keys": return `\u05DE\u05E4\u05EA\u05D7${issue2.keys.length > 1 ? "\u05D5\u05EA" : ""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${issue2.keys.length > 1 ? "\u05D9\u05DD" : "\u05D4"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": { return `\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8`; } case "invalid_union": return "\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"; case "invalid_element": { const place = withDefinite(issue2.origin ?? "array"); return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${place}`; } default: return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`; } }; }, "error"); function he_default() { return { localeError: error20() }; } __name(he_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/hi.js var error21 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" }, file: { unit: "\u092C\u093E\u0907\u091F\u094D\u0938", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" }, array: { unit: "\u0924\u0924\u094D\u0935", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" }, set: { unit: "\u0924\u0924\u094D\u0935", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" }, map: { unit: "\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F\u092F\u093E\u0901", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0907\u0928\u092A\u0941\u091F", email: "\u0908\u092E\u0947\u0932 \u092A\u0924\u093E", url: "URL", emoji: "\u0907\u092E\u094B\u091C\u0940", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO \u0924\u093F\u0925\u093F \u0914\u0930 \u0938\u092E\u092F", date: "ISO \u0924\u093F\u0925\u093F", time: "ISO \u0938\u092E\u092F", duration: "ISO \u0905\u0935\u0927\u093F", ipv4: "IPv4 \u092A\u0924\u093E", ipv6: "IPv6 \u092A\u0924\u093E", mac: "MAC \u092A\u0924\u093E", cidrv4: "IPv4 \u0936\u094D\u0930\u0947\u0923\u0940", cidrv6: "IPv6 \u0936\u094D\u0930\u0947\u0923\u0940", base64: "Base64-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917", base64url: "Base64URL-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917", json_string: "JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917", e164: "E.164 \u0938\u0902\u0916\u094D\u092F\u093E", credit_card: "\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0938\u0902\u0916\u094D\u092F\u093E", currency_code: "\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921", iban: "IBAN", jwt: "JWT", template_literal: "\u0907\u0928\u092A\u0941\u091F" }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; return `\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${expected}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${stringifyPrimitive(issue2.values[0])}`; return `\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915 ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${issue2.origin ?? "\u092E\u093E\u0928"} \u092E\u0947\u0902 ${adj}${issue2.maximum} ${sizing.unit} \u0939\u094B\u0902`; return `\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${issue2.origin ?? "\u092E\u093E\u0928"} ${adj}${issue2.maximum} \u0939\u094B`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) return `\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${issue2.origin} \u092E\u0947\u0902 ${adj}${issue2.minimum} ${sizing.unit} \u0939\u094B\u0902`; return `\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${issue2.origin} ${adj}${issue2.minimum} \u0939\u094B`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${_issue.prefix}" \u0938\u0947 \u0936\u0941\u0930\u0942 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`; if (_issue.format === "ends_with") return `\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${_issue.suffix}" \u092A\u0930 \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`; if (_issue.format === "includes") return `\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u0907\u0938\u092E\u0947\u0902 "${_issue.includes}" \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`; if (_issue.format === "regex") return `\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u092A\u0948\u091F\u0930\u094D\u0928 ${_issue.pattern} \u0938\u0947 \u092E\u0947\u0932 \u0916\u093E\u0928\u093E \u091A\u093E\u0939\u093F\u090F`; return `\u0905\u092E\u093E\u0928\u094D\u092F ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: \u092F\u0939 ${issue2.divisor} \u0915\u093E \u0917\u0941\u0923\u091C \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`; case "unrecognized_keys": return `\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u0902\u091C\u0940${issue2.keys.length > 1 ? "\u092F\u093E\u0901" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u0902\u091C\u0940: ${issue2.origin} \u092E\u0947\u0902`; case "invalid_union": if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) { const opts = issue2.options.map((o3) => `'${o3}'`).join(" | "); return `\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${opts}`; } return "\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"; case "invalid_element": return `\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${issue2.origin} \u092E\u0947\u0902`; default: return `\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F`; } }; }, "error"); function hi_default() { return { localeError: error21() }; } __name(hi_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/hr.js var error22 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "znakova", verb: "imati" }, file: { unit: "bajtova", verb: "imati" }, array: { unit: "stavki", verb: "imati" }, set: { unit: "stavki", verb: "imati" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "unos", email: "email adresa", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO datum i vrijeme", date: "ISO datum", time: "ISO vrijeme", duration: "ISO trajanje", ipv4: "IPv4 adresa", ipv6: "IPv6 adresa", mac: "MAC adresa", cidrv4: "IPv4 raspon", cidrv6: "IPv6 raspon", base64: "base64 kodirani tekst", base64url: "base64url kodirani tekst", json_string: "JSON tekst", e164: "E.164 broj", credit_card: "broj kreditne kartice", currency_code: "kod valute", iban: "IBAN", jwt: "JWT", template_literal: "unos" }; const TypeDictionary = { nan: "NaN", string: "tekst", number: "broj", boolean: "boolean", array: "niz", object: "objekt", set: "skup", file: "datoteka", date: "datum", bigint: "bigint", symbol: "simbol", undefined: "undefined", null: "null", function: "funkcija", map: "mapa" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`; } return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`; return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); const origin = TypeDictionary[issue2.origin] ?? issue2.origin; if (sizing) return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`; return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); const origin = TypeDictionary[issue2.origin] ?? issue2.origin; if (sizing) { return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`; if (_issue.format === "ends_with") return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`; if (_issue.format === "includes") return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`; if (_issue.format === "regex") return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`; return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`; case "unrecognized_keys": return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`; case "invalid_union": return "Neispravan unos"; case "invalid_element": return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`; default: return `Neispravan unos`; } }; }, "error"); function hr_default() { return { localeError: error22() }; } __name(hr_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/hu.js var error23 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "karakter", verb: "legyen" }, file: { unit: "byte", verb: "legyen" }, array: { unit: "elem", verb: "legyen" }, set: { unit: "elem", verb: "legyen" }, map: { unit: "elem", verb: "legyen" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "bemenet", email: "email c\xEDm", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO id\u0151b\xE9lyeg", date: "ISO d\xE1tum", time: "ISO id\u0151", duration: "ISO id\u0151intervallum", ipv4: "IPv4 c\xEDm", ipv6: "IPv6 c\xEDm", mac: "MAC c\xEDm", cidrv4: "IPv4 tartom\xE1ny", cidrv6: "IPv6 tartom\xE1ny", base64: "base64-k\xF3dolt string", base64url: "base64url-k\xF3dolt string", json_string: "JSON string", e164: "E.164 sz\xE1m", credit_card: "hitelk\xE1rtyasz\xE1m", currency_code: "p\xE9nznemk\xF3d", iban: "IBAN", jwt: "JWT", template_literal: "bemenet" }; const TypeDictionary = { nan: "NaN", number: "sz\xE1m", array: "t\xF6mb" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`; } return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`; return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`; return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} m\xE9rete t\xFAl kicsi ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} t\xFAl kicsi ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `\xC9rv\xE9nytelen string: "${_issue.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`; if (_issue.format === "ends_with") return `\xC9rv\xE9nytelen string: "${_issue.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`; if (_issue.format === "includes") return `\xC9rv\xE9nytelen string: "${_issue.includes}" \xE9rt\xE9ket kell tartalmaznia`; if (_issue.format === "regex") return `\xC9rv\xE9nytelen string: ${_issue.pattern} mint\xE1nak kell megfelelnie`; return `\xC9rv\xE9nytelen ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\xC9rv\xE9nytelen sz\xE1m: ${issue2.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`; case "unrecognized_keys": return `Ismeretlen kulcs${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\xC9rv\xE9nytelen kulcs ${issue2.origin}`; case "invalid_union": return "\xC9rv\xE9nytelen bemenet"; case "invalid_element": return `\xC9rv\xE9nytelen \xE9rt\xE9k: ${issue2.origin}`; default: return `\xC9rv\xE9nytelen bemenet`; } }; }, "error"); function hu_default() { return { localeError: error23() }; } __name(hu_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/hy.js function getArmenianPlural(count, one, many) { return Math.abs(count) === 1 ? one : many; } __name(getArmenianPlural, "getArmenianPlural"); function withDefiniteArticle(word) { if (!word) return ""; const vowels = ["\u0561", "\u0565", "\u0568", "\u056B", "\u0578", "\u0578\u0582", "\u0585"]; const lastChar = word[word.length - 1]; return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568"); } __name(withDefiniteArticle, "withDefiniteArticle"); var error24 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: { one: "\u0576\u0577\u0561\u0576", many: "\u0576\u0577\u0561\u0576\u0576\u0565\u0580" }, verb: "\u0578\u0582\u0576\u0565\u0576\u0561\u056C" }, file: { unit: { one: "\u0562\u0561\u0575\u0569", many: "\u0562\u0561\u0575\u0569\u0565\u0580" }, verb: "\u0578\u0582\u0576\u0565\u0576\u0561\u056C" }, array: { unit: { one: "\u057F\u0561\u0580\u0580", many: "\u057F\u0561\u0580\u0580\u0565\u0580" }, verb: "\u0578\u0582\u0576\u0565\u0576\u0561\u056C" }, set: { unit: { one: "\u057F\u0561\u0580\u0580", many: "\u057F\u0561\u0580\u0580\u0565\u0580" }, verb: "\u0578\u0582\u0576\u0565\u0576\u0561\u056C" }, map: { unit: { one: "\u057F\u0561\u0580\u0580", many: "\u057F\u0561\u0580\u0580\u0565\u0580" }, verb: "\u0578\u0582\u0576\u0565\u0576\u0561\u056C" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0574\u0578\u0582\u057F\u0584", email: "\u0567\u056C. \u0570\u0561\u057D\u0581\u0565", url: "URL", emoji: "\u0567\u0574\u0578\u057B\u056B", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574", date: "ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E", time: "ISO \u056A\u0561\u0574", duration: "ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576", ipv4: "IPv4 \u0570\u0561\u057D\u0581\u0565", ipv6: "IPv6 \u0570\u0561\u057D\u0581\u0565", mac: "MAC \u0570\u0561\u057D\u0581\u0565", cidrv4: "IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584", cidrv6: "IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584", base64: "base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572", base64url: "base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572", json_string: "JSON \u057F\u0578\u0572", e164: "E.164 \u0570\u0561\u0574\u0561\u0580", credit_card: "\u056F\u0580\u0565\u0564\u056B\u057F \u0584\u0561\u0580\u057F\u056B \u0570\u0561\u0574\u0561\u0580", currency_code: "\u0561\u0580\u056A\u0578\u0582\u0575\u0569\u056B \u056F\u0578\u0564", iban: "IBAN", jwt: "JWT", template_literal: "\u0574\u0578\u0582\u057F\u0584" }; const TypeDictionary = { nan: "NaN", number: "\u0569\u056B\u057E", array: "\u0566\u0561\u0576\u0563\u057E\u0561\u056E" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${issue2.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${received}`; } return `\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${stringifyPrimitive(issue2.values[1])}`; return `\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) { const maxValue = Number(issue2.maximum); const unit = getArmenianPlural(maxValue, sizing.unit.one, sizing.unit.many); return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${withDefiniteArticle(issue2.origin ?? "\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${adj}${issue2.maximum.toString()} ${unit}`; } return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${withDefiniteArticle(issue2.origin ?? "\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { const minValue = Number(issue2.minimum); const unit = getArmenianPlural(minValue, sizing.unit.one, sizing.unit.many); return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${withDefiniteArticle(issue2.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${adj}${issue2.minimum.toString()} ${unit}`; } return `\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${withDefiniteArticle(issue2.origin)} \u056C\u056B\u0576\u056B ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${_issue.prefix}"-\u0578\u057E`; if (_issue.format === "ends_with") return `\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${_issue.suffix}"-\u0578\u057E`; if (_issue.format === "includes") return `\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${_issue.includes}"`; if (_issue.format === "regex") return `\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${_issue.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`; return `\u054D\u056D\u0561\u056C ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${issue2.divisor}-\u056B`; case "unrecognized_keys": return `\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${issue2.keys.length > 1 ? "\u0576\u0565\u0580" : ""}. ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${withDefiniteArticle(issue2.origin)}-\u0578\u0582\u0574`; case "invalid_union": return "\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"; case "invalid_element": return `\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${withDefiniteArticle(issue2.origin)}-\u0578\u0582\u0574`; default: return `\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574`; } }; }, "error"); function hy_default() { return { localeError: error24() }; } __name(hy_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/id.js var error25 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "karakter", verb: "memiliki" }, file: { unit: "byte", verb: "memiliki" }, array: { unit: "item", verb: "memiliki" }, set: { unit: "item", verb: "memiliki" }, map: { unit: "item", verb: "memiliki" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "input", email: "alamat email", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "tanggal dan waktu format ISO", date: "tanggal format ISO", time: "jam format ISO", duration: "durasi format ISO", ipv4: "alamat IPv4", ipv6: "alamat IPv6", mac: "alamat MAC", cidrv4: "rentang alamat IPv4", cidrv6: "rentang alamat IPv6", base64: "string dengan enkode base64", base64url: "string dengan enkode base64url", json_string: "string JSON", e164: "angka E.164", credit_card: "nomor kartu kredit", currency_code: "kode mata uang", iban: "IBAN", jwt: "JWT", template_literal: "input" }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Input tidak valid: diharapkan instanceof ${issue2.expected}, diterima ${received}`; } return `Input tidak valid: diharapkan ${expected}, diterima ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Input tidak valid: diharapkan ${stringifyPrimitive(issue2.values[0])}`; return `Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Terlalu besar: diharapkan ${issue2.origin ?? "value"} memiliki ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemen"}`; return `Terlalu besar: diharapkan ${issue2.origin ?? "value"} menjadi ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Terlalu kecil: diharapkan ${issue2.origin} memiliki ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `Terlalu kecil: diharapkan ${issue2.origin} menjadi ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `String tidak valid: harus dimulai dengan "${_issue.prefix}"`; if (_issue.format === "ends_with") return `String tidak valid: harus berakhir dengan "${_issue.suffix}"`; if (_issue.format === "includes") return `String tidak valid: harus menyertakan "${_issue.includes}"`; if (_issue.format === "regex") return `String tidak valid: harus sesuai pola ${_issue.pattern}`; return `${FormatDictionary[_issue.format] ?? issue2.format} tidak valid`; } case "not_multiple_of": return `Angka tidak valid: harus kelipatan dari ${issue2.divisor}`; case "unrecognized_keys": return `Kunci tidak dikenali ${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Kunci tidak valid di ${issue2.origin}`; case "invalid_union": return "Input tidak valid"; case "invalid_element": return `Nilai tidak valid di ${issue2.origin}`; default: return `Input tidak valid`; } }; }, "error"); function id_default() { return { localeError: error25() }; } __name(id_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/is.js var error26 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "stafi", verb: "a\xF0 hafa" }, file: { unit: "b\xE6ti", verb: "a\xF0 hafa" }, array: { unit: "hluti", verb: "a\xF0 hafa" }, set: { unit: "hluti", verb: "a\xF0 hafa" }, map: { unit: "hluti", verb: "a\xF0 hafa" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "gildi", email: "netfang", url: "vefsl\xF3\xF0", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO dagsetning og t\xEDmi", date: "ISO dagsetning", time: "ISO t\xEDmi", duration: "ISO t\xEDmalengd", ipv4: "IPv4 address", ipv6: "IPv6 address", mac: "MAC address", cidrv4: "IPv4 range", cidrv6: "IPv6 range", base64: "base64-encoded strengur", base64url: "base64url-encoded strengur", json_string: "JSON strengur", e164: "E.164 t\xF6lugildi", credit_card: "kreditkortan\xFAmer", currency_code: "gjaldmi\xF0ilsk\xF3\xF0i", iban: "IBAN", jwt: "JWT", template_literal: "gildi" }; const TypeDictionary = { nan: "NaN", number: "n\xFAmer", array: "fylki" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Rangt gildi: \xDE\xFA sl\xF3st inn ${received} \xFEar sem \xE1 a\xF0 vera instanceof ${issue2.expected}`; } return `Rangt gildi: \xDE\xFA sl\xF3st inn ${received} \xFEar sem \xE1 a\xF0 vera ${expected}`; } case "invalid_value": if (issue2.values.length === 1) return `Rangt gildi: gert r\xE1\xF0 fyrir ${stringifyPrimitive(issue2.values[0])}`; return `\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${issue2.origin ?? "gildi"} hafi ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "hluti"}`; return `Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${issue2.origin ?? "gildi"} s\xE9 ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${issue2.origin} hafi ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${issue2.origin} s\xE9 ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${_issue.suffix}"`; if (_issue.format === "includes") return `\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${_issue.includes}"`; if (_issue.format === "regex") return `\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${_issue.pattern}`; return `Rangt ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${issue2.divisor}`; case "unrecognized_keys": return `\xD3\xFEekkt ${issue2.keys.length > 1 ? "ir lyklar" : "ur lykill"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Rangur lykill \xED ${issue2.origin}`; case "invalid_union": return "Rangt gildi"; case "invalid_element": return `Rangt gildi \xED ${issue2.origin}`; default: return `Rangt gildi`; } }; }, "error"); function is_default() { return { localeError: error26() }; } __name(is_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/it.js var error27 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "caratteri", verb: "avere" }, file: { unit: "byte", verb: "avere" }, array: { unit: "elementi", verb: "avere" }, set: { unit: "elementi", verb: "avere" }, map: { unit: "elementi", verb: "avere" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "input", email: "indirizzo email", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "data e ora ISO", date: "data ISO", time: "ora ISO", duration: "durata ISO", ipv4: "indirizzo IPv4", ipv6: "indirizzo IPv6", mac: "indirizzo MAC", cidrv4: "intervallo IPv4", cidrv6: "intervallo IPv6", base64: "stringa codificata in base64", base64url: "URL codificata in base64", json_string: "stringa JSON", e164: "numero E.164", credit_card: "numero di carta di credito", currency_code: "codice valuta", iban: "IBAN", jwt: "JWT", template_literal: "input" }; const TypeDictionary = { nan: "NaN", number: "numero", array: "vettore" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Input non valido: atteso instanceof ${issue2.expected}, ricevuto ${received}`; } return `Input non valido: atteso ${expected}, ricevuto ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Input non valido: atteso ${stringifyPrimitive(issue2.values[0])}`; return `Opzione non valida: atteso uno tra ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Troppo grande: ${issue2.origin ?? "valore"} deve avere ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementi"}`; return `Troppo grande: ${issue2.origin ?? "valore"} deve essere ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Troppo piccolo: ${issue2.origin} deve avere ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `Troppo piccolo: ${issue2.origin} deve essere ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Stringa non valida: deve iniziare con "${_issue.prefix}"`; if (_issue.format === "ends_with") return `Stringa non valida: deve terminare con "${_issue.suffix}"`; if (_issue.format === "includes") return `Stringa non valida: deve includere "${_issue.includes}"`; if (_issue.format === "regex") return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`; return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`; case "unrecognized_keys": return `Chiav${issue2.keys.length > 1 ? "i" : "e"} non riconosciut${issue2.keys.length > 1 ? "e" : "a"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Chiave non valida in ${issue2.origin}`; case "invalid_union": return "Input non valido"; case "invalid_element": return `Valore non valido in ${issue2.origin}`; default: return `Input non valido`; } }; }, "error"); function it_default() { return { localeError: error27() }; } __name(it_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ja.js var error28 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" }, file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" }, array: { unit: "\u8981\u7D20", verb: "\u3067\u3042\u308B" }, set: { unit: "\u8981\u7D20", verb: "\u3067\u3042\u308B" }, map: { unit: "\u8981\u7D20", verb: "\u3067\u3042\u308B" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u5165\u529B\u5024", email: "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9", url: "URL", emoji: "\u7D75\u6587\u5B57", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO\u65E5\u6642", date: "ISO\u65E5\u4ED8", time: "ISO\u6642\u523B", duration: "ISO\u671F\u9593", ipv4: "IPv4\u30A2\u30C9\u30EC\u30B9", ipv6: "IPv6\u30A2\u30C9\u30EC\u30B9", mac: "MAC\u30A2\u30C9\u30EC\u30B9", cidrv4: "IPv4\u7BC4\u56F2", cidrv6: "IPv6\u7BC4\u56F2", base64: "base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217", base64url: "base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217", json_string: "JSON\u6587\u5B57\u5217", e164: "E.164\u756A\u53F7", credit_card: "\u30AF\u30EC\u30B8\u30C3\u30C8\u30AB\u30FC\u30C9\u756A\u53F7", currency_code: "\u901A\u8CA8\u30B3\u30FC\u30C9", iban: "IBAN", jwt: "JWT", template_literal: "\u5165\u529B\u5024" }; const TypeDictionary = { nan: "NaN", number: "\u6570\u5024", array: "\u914D\u5217" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u7121\u52B9\u306A\u5165\u529B: instanceof ${issue2.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${received}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`; } return `\u7121\u52B9\u306A\u5165\u529B: ${expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${received}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`; } case "invalid_value": if (issue2.values.length === 1) return `\u7121\u52B9\u306A\u5165\u529B: ${stringifyPrimitive(issue2.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`; return `\u7121\u52B9\u306A\u9078\u629E: ${joinValues(issue2.values, "\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`; case "too_big": { const adj = issue2.inclusive ? "\u4EE5\u4E0B\u3067\u3042\u308B" : "\u3088\u308A\u5C0F\u3055\u3044"; const sizing = getSizing(issue2.origin); if (sizing) return `\u5927\u304D\u3059\u304E\u308B\u5024: ${issue2.origin ?? "\u5024"}\u306F${issue2.maximum.toString()}${sizing.unit ?? "\u8981\u7D20"}${adj}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`; return `\u5927\u304D\u3059\u304E\u308B\u5024: ${issue2.origin ?? "\u5024"}\u306F${issue2.maximum.toString()}${adj}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`; } case "too_small": { const adj = issue2.inclusive ? "\u4EE5\u4E0A\u3067\u3042\u308B" : "\u3088\u308A\u5927\u304D\u3044"; const sizing = getSizing(issue2.origin); if (sizing) return `\u5C0F\u3055\u3059\u304E\u308B\u5024: ${issue2.origin}\u306F${issue2.minimum.toString()}${sizing.unit}${adj}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`; return `\u5C0F\u3055\u3059\u304E\u308B\u5024: ${issue2.origin}\u306F${issue2.minimum.toString()}${adj}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `\u7121\u52B9\u306A\u6587\u5B57\u5217: "${_issue.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`; if (_issue.format === "ends_with") return `\u7121\u52B9\u306A\u6587\u5B57\u5217: "${_issue.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`; if (_issue.format === "includes") return `\u7121\u52B9\u306A\u6587\u5B57\u5217: "${_issue.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`; if (_issue.format === "regex") return `\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${_issue.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`; return `\u7121\u52B9\u306A${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u7121\u52B9\u306A\u6570\u5024: ${issue2.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`; case "unrecognized_keys": return `\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${issue2.keys.length > 1 ? "\u7FA4" : ""}: ${joinValues(issue2.keys, "\u3001")}`; case "invalid_key": return `${issue2.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`; case "invalid_union": return "\u7121\u52B9\u306A\u5165\u529B"; case "invalid_element": return `${issue2.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`; default: return `\u7121\u52B9\u306A\u5165\u529B`; } }; }, "error"); function ja_default() { return { localeError: error28() }; } __name(ja_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ka.js var error29 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" }, file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" }, array: { unit: "\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" }, set: { unit: "\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" }, map: { unit: "\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0", email: "\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8", url: "URL", emoji: "\u10D4\u10DB\u10DD\u10EF\u10D8", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD", date: "\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8", time: "\u10D3\u10E0\u10DD", duration: "\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0", ipv4: "IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8", ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8", mac: "MAC \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8", cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8", cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8", base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8", base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8", json_string: "JSON \u10D5\u10D4\u10DA\u10D8", e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8", credit_card: "\u10E1\u10D0\u10D9\u10E0\u10D4\u10D3\u10D8\u10E2\u10DD \u10D1\u10D0\u10E0\u10D0\u10D7\u10D8\u10E1 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8", currency_code: "\u10D5\u10D0\u10DA\u10E3\u10E2\u10D8\u10E1 \u10D9\u10DD\u10D3\u10D8", iban: "IBAN", jwt: "JWT", template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0" }; const TypeDictionary = { nan: "NaN", number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8", string: "\u10D5\u10D4\u10DA\u10D8", boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8", function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0", array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${issue2.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${received}`; } return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${stringifyPrimitive(issue2.values[0])}`; return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${joinValues(issue2.values, "|")}-\u10D3\u10D0\u10DC`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${issue2.origin ?? "\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit}`; return `\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${issue2.origin ?? "\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${issue2.origin} \u10D8\u10E7\u10DD\u10E1 ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`; } if (_issue.format === "ends_with") return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`; if (_issue.format === "includes") return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`; if (_issue.format === "regex") return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`; return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${issue2.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`; case "unrecognized_keys": return `\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${issue2.keys.length > 1 ? "\u10D4\u10D1\u10D8" : "\u10D8"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${issue2.origin}-\u10E8\u10D8`; case "invalid_union": return "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"; case "invalid_element": return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${issue2.origin}-\u10E8\u10D8`; default: return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0`; } }; }, "error"); function ka_default() { return { localeError: error29() }; } __name(ka_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/km.js var error30 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" }, file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" }, array: { unit: "\u1792\u17B6\u178F\u17BB", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" }, set: { unit: "\u1792\u17B6\u178F\u17BB", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" }, map: { unit: "\u1792\u17B6\u178F\u17BB", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B", email: "\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B", url: "URL", emoji: "\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO", date: "\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO", time: "\u1798\u17C9\u17C4\u1784 ISO", duration: "\u179A\u1799\u17C8\u1796\u17C1\u179B ISO", ipv4: "\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4", ipv6: "\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6", mac: "\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 MAC", cidrv4: "\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4", cidrv6: "\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6", base64: "\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64", base64url: "\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url", json_string: "\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON", e164: "\u179B\u17C1\u1781 E.164", credit_card: "\u179B\u17C1\u1781\u1794\u17D0\u178E\u17D2\u178E\u17A5\u178E\u1791\u17B6\u1793", currency_code: "\u1780\u17BC\u178A\u179A\u17BC\u1794\u17B7\u1799\u1794\u17D0\u178E\u17D2\u178E", iban: "IBAN", jwt: "JWT", template_literal: "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B" }; const TypeDictionary = { nan: "NaN", number: "\u179B\u17C1\u1781", array: "\u17A2\u17B6\u179A\u17C1 (Array)", null: "\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${issue2.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${received}`; } return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${stringifyPrimitive(issue2.values[0])}`; return `\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.origin ?? "\u178F\u1798\u17D2\u179B\u17C3"} ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "\u1792\u17B6\u178F\u17BB"}`; return `\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.origin ?? "\u178F\u1798\u17D2\u179B\u17C3"} ${adj} ${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.origin} ${adj} ${issue2.minimum.toString()} ${sizing.unit}`; } return `\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.origin} ${adj} ${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${_issue.suffix}"`; if (_issue.format === "includes") return `\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${_issue.includes}"`; if (_issue.format === "regex") return `\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${_issue.pattern}`; return `\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${issue2.divisor}`; case "unrecognized_keys": return `\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${issue2.origin}`; case "invalid_union": return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C`; case "invalid_element": return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${issue2.origin}`; default: return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C`; } }; }, "error"); function km_default() { return { localeError: error30() }; } __name(km_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/kh.js function kh_default() { return km_default(); } __name(kh_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/kn.js var error31 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" }, file: { unit: "\u0CAC\u0CC8\u0C9F\u0CCD\u200C\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" }, array: { unit: "\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" }, set: { unit: "\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" }, map: { unit: "entries", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD", email: "email \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95\u0CA6 \u0CB8\u0CAE\u0CAF", date: "ISO \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95", time: "ISO \u0CB8\u0CAE\u0CAF", duration: "ISO \u0C85\u0CB5\u0CA7\u0CBF", ipv4: "IPv4 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8", ipv6: "IPv6 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8", mac: "MAC \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8", cidrv4: "IPv4 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF", cidrv6: "IPv6 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF", base64: "base64-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD", base64url: "base64url-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD", json_string: "JSON\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD", e164: "E.164 \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6", credit_card: "\u0C95\u0CCD\u0CB0\u0CC6\u0CA1\u0CBF\u0C9F\u0CCD \u0C95\u0CBE\u0CB0\u0CCD\u0CA1\u0CCD \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6", currency_code: "\u0C95\u0CB0\u0CC6\u0CA8\u0CCD\u0CB8\u0CBF \u0C95\u0CCB\u0CA1\u0CCD", iban: "IBAN", jwt: "JWT", template_literal: "\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD" }; const TypeDictionary = { // Compatibility: "nan" -> "NaN" for display nan: "NaN" // All other type names omitted - they fall back to raw values via ?? operator }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; return `\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${expected}, \u0CB8\u0CCD\u0CB5\u0CC0\u0C95\u0CB0\u0CBF\u0CB8\u0CBF\u0CA6\u0CA8\u0CC1 ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${stringifyPrimitive(issue2.values[0])}`; return `\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C86\u0CAF\u0CCD\u0C95\u0CC6: \u0C87\u0CB5\u0CC1\u0C97\u0CB3\u0CB2\u0CCD\u0CB2\u0CBF \u0C92\u0C82\u0CA6\u0CA8\u0CCD\u0CA8\u0CC1 \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${issue2.origin ?? "value"} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0C85\u0C82\u0CB6\u0C97\u0CB3\u0CC1"}`; return `\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${issue2.origin ?? "value"} \u0C8E\u0C82\u0CA6\u0CC1 ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${issue2.origin} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${issue2.origin} \u0C8E\u0C82\u0CA6\u0CC1 ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0CAA\u0CCD\u0CB0\u0CBE\u0CB0\u0C82\u0CAD\u0CBF\u0CB8\u0CAC\u0CC7\u0C95\u0CC1 "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0C95\u0CCA\u0CA8\u0CC6\u0C97\u0CCA\u0CB3\u0CCD\u0CB3\u0CAC\u0CC7\u0C95\u0CC1 "${_issue.suffix}"`; if (_issue.format === "includes") return `\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C92\u0CB3\u0C97\u0CCA\u0C82\u0CA1\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 "${_issue.includes}"`; if (_issue.format === "regex") return `\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0CAE\u0CBE\u0CA6\u0CB0\u0CBF\u0C97\u0CC6 \u0CB9\u0CCA\u0C82\u0CA6\u0CBF\u0C95\u0CC6\u0CAF\u0CBE\u0C97\u0CAC\u0CC7\u0C95\u0CC1 ${_issue.pattern}`; return `\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6: \u0CAC\u0CB9\u0CC1\u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6\u0CAF\u0CBE\u0C97\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 ${issue2.divisor}`; case "unrecognized_keys": return `\u0C97\u0CC1\u0CB0\u0CC1\u0CA4\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CA6 \u0C95\u0CC0 ${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0C95\u0CC0 \u0C87\u0CA8\u0CCD ${issue2.origin}`; case "invalid_union": if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) { const opts = issue2.options.map((o3) => `'${o3}'`).join(" | "); return `\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CA4\u0CBE\u0CB0\u0CA4\u0CAE\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF. \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${opts}`; } return "\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD"; case "invalid_element": return `\u0CB0\u0CB2\u0CCD\u0CB2\u0CBF \u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF ${issue2.origin}`; default: return `\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD`; } }; }, "error"); function kn_default() { return { localeError: error31() }; } __name(kn_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ko.js var error32 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\uBB38\uC790", verb: "to have" }, file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" }, array: { unit: "\uAC1C", verb: "to have" }, set: { unit: "\uAC1C", verb: "to have" }, map: { unit: "\uAC1C", verb: "to have" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\uC785\uB825", email: "\uC774\uBA54\uC77C \uC8FC\uC18C", url: "URL", emoji: "\uC774\uBAA8\uC9C0", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO \uB0A0\uC9DC\uC2DC\uAC04", date: "ISO \uB0A0\uC9DC", time: "ISO \uC2DC\uAC04", duration: "ISO \uAE30\uAC04", ipv4: "IPv4 \uC8FC\uC18C", ipv6: "IPv6 \uC8FC\uC18C", mac: "MAC \uC8FC\uC18C", cidrv4: "IPv4 \uBC94\uC704", cidrv6: "IPv6 \uBC94\uC704", base64: "base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4", base64url: "base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4", json_string: "JSON \uBB38\uC790\uC5F4", e164: "E.164 \uBC88\uD638", credit_card: "\uC2E0\uC6A9\uCE74\uB4DC \uBC88\uD638", currency_code: "\uD1B5\uD654 \uCF54\uB4DC", iban: "IBAN", jwt: "JWT", template_literal: "\uC785\uB825" }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${issue2.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${received}\uC785\uB2C8\uB2E4`; } return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${received}\uC785\uB2C8\uB2E4`; } case "invalid_value": if (issue2.values.length === 1) return `\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${stringifyPrimitive(issue2.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`; return `\uC798\uBABB\uB41C \uC635\uC158: ${joinValues(issue2.values, "\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`; case "too_big": { const adj = issue2.inclusive ? "\uC774\uD558" : "\uBBF8\uB9CC"; const suffix = adj === "\uBBF8\uB9CC" ? "\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4" : "\uC5EC\uC57C \uD569\uB2C8\uB2E4"; const sizing = getSizing(issue2.origin); const unit = sizing?.unit ?? "\uC694\uC18C"; if (sizing) return `${issue2.origin ?? "\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${issue2.maximum.toString()}${unit} ${adj}${suffix}`; return `${issue2.origin ?? "\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${issue2.maximum.toString()} ${adj}${suffix}`; } case "too_small": { const adj = issue2.inclusive ? "\uC774\uC0C1" : "\uCD08\uACFC"; const suffix = adj === "\uC774\uC0C1" ? "\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4" : "\uC5EC\uC57C \uD569\uB2C8\uB2E4"; const sizing = getSizing(issue2.origin); const unit = sizing?.unit ?? "\uC694\uC18C"; if (sizing) { return `${issue2.origin ?? "\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${issue2.minimum.toString()}${unit} ${adj}${suffix}`; } return `${issue2.origin ?? "\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${issue2.minimum.toString()} ${adj}${suffix}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${_issue.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`; } if (_issue.format === "ends_with") return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${_issue.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`; if (_issue.format === "includes") return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${_issue.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`; if (_issue.format === "regex") return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${_issue.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`; return `\uC798\uBABB\uB41C ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\uC798\uBABB\uB41C \uC22B\uC790: ${issue2.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`; case "unrecognized_keys": return `\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\uC798\uBABB\uB41C \uD0A4: ${issue2.origin}`; case "invalid_union": return `\uC798\uBABB\uB41C \uC785\uB825`; case "invalid_element": return `\uC798\uBABB\uB41C \uAC12: ${issue2.origin}`; default: return `\uC798\uBABB\uB41C \uC785\uB825`; } }; }, "error"); function ko_default() { return { localeError: error32() }; } __name(ko_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/lt.js var capitalizeFirstCharacter = /* @__PURE__ */ __name((text2) => { return text2.charAt(0).toUpperCase() + text2.slice(1); }, "capitalizeFirstCharacter"); function getUnitTypeFromNumber(number4) { const abs = Math.abs(number4); const last = abs % 10; const last2 = abs % 100; if (last2 >= 11 && last2 <= 19 || last === 0) return "many"; if (last === 1) return "one"; return "few"; } __name(getUnitTypeFromNumber, "getUnitTypeFromNumber"); var error33 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: { one: "simbolis", few: "simboliai", many: "simboli\u0173" }, verb: { smaller: { inclusive: "turi b\u016Bti ne ilgesn\u0117 kaip", notInclusive: "turi b\u016Bti trumpesn\u0117 kaip" }, bigger: { inclusive: "turi b\u016Bti ne trumpesn\u0117 kaip", notInclusive: "turi b\u016Bti ilgesn\u0117 kaip" } } }, file: { unit: { one: "baitas", few: "baitai", many: "bait\u0173" }, verb: { smaller: { inclusive: "turi b\u016Bti ne didesnis kaip", notInclusive: "turi b\u016Bti ma\u017Eesnis kaip" }, bigger: { inclusive: "turi b\u016Bti ne ma\u017Eesnis kaip", notInclusive: "turi b\u016Bti didesnis kaip" } } }, array: { unit: { one: "element\u0105", few: "elementus", many: "element\u0173" }, verb: { smaller: { inclusive: "turi tur\u0117ti ne daugiau kaip", notInclusive: "turi tur\u0117ti ma\u017Eiau kaip" }, bigger: { inclusive: "turi tur\u0117ti ne ma\u017Eiau kaip", notInclusive: "turi tur\u0117ti daugiau kaip" } } }, set: { unit: { one: "element\u0105", few: "elementus", many: "element\u0173" }, verb: { smaller: { inclusive: "turi tur\u0117ti ne daugiau kaip", notInclusive: "turi tur\u0117ti ma\u017Eiau kaip" }, bigger: { inclusive: "turi tur\u0117ti ne ma\u017Eiau kaip", notInclusive: "turi tur\u0117ti daugiau kaip" } } } }; function getSizing(origin, unitType, inclusive, targetShouldBe) { const result = Sizable[origin] ?? null; if (result === null) return result; return { unit: result.unit[unitType], verb: result.verb[targetShouldBe][inclusive ? "inclusive" : "notInclusive"] }; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u012Fvestis", email: "el. pa\u0161to adresas", url: "URL", emoji: "jaustukas", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO data ir laikas", date: "ISO data", time: "ISO laikas", duration: "ISO trukm\u0117", ipv4: "IPv4 adresas", ipv6: "IPv6 adresas", mac: "MAC adresas", cidrv4: "IPv4 tinklo prefiksas (CIDR)", cidrv6: "IPv6 tinklo prefiksas (CIDR)", base64: "base64 u\u017Ekoduota eilut\u0117", base64url: "base64url u\u017Ekoduota eilut\u0117", json_string: "JSON eilut\u0117", e164: "E.164 numeris", credit_card: "kredito kortel\u0117s numeris", currency_code: "valiutos kodas", iban: "IBAN", jwt: "JWT", template_literal: "\u012Fvestis" }; const TypeDictionary = { nan: "NaN", number: "skai\u010Dius", bigint: "sveikasis skai\u010Dius", string: "eilut\u0117", boolean: "login\u0117 reik\u0161m\u0117", undefined: "neapibr\u0117\u017Eta reik\u0161m\u0117", function: "funkcija", symbol: "simbolis", array: "masyvas", object: "objektas", null: "nulin\u0117 reik\u0161m\u0117" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Gautas tipas ${received}, o tik\u0117tasi - instanceof ${issue2.expected}`; } return `Gautas tipas ${received}, o tik\u0117tasi - ${expected}`; } case "invalid_value": if (issue2.values.length === 1) return `Privalo b\u016Bti ${stringifyPrimitive(issue2.values[0])}`; return `Privalo b\u016Bti vienas i\u0161 ${joinValues(issue2.values, "|")} pasirinkim\u0173`; case "too_big": { const origin = TypeDictionary[issue2.origin] ?? issue2.origin; const sizing = getSizing(issue2.origin, getUnitTypeFromNumber(Number(issue2.maximum)), issue2.inclusive ?? false, "smaller"); if (sizing?.verb) return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} ${sizing.verb} ${issue2.maximum.toString()} ${sizing.unit ?? "element\u0173"}`; const adj = issue2.inclusive ? "ne didesnis kaip" : "ma\u017Eesnis kaip"; return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} turi b\u016Bti ${adj} ${issue2.maximum.toString()} ${sizing?.unit}`; } case "too_small": { const origin = TypeDictionary[issue2.origin] ?? issue2.origin; const sizing = getSizing(issue2.origin, getUnitTypeFromNumber(Number(issue2.minimum)), issue2.inclusive ?? false, "bigger"); if (sizing?.verb) return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} ${sizing.verb} ${issue2.minimum.toString()} ${sizing.unit ?? "element\u0173"}`; const adj = issue2.inclusive ? "ne ma\u017Eesnis kaip" : "didesnis kaip"; return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} turi b\u016Bti ${adj} ${issue2.minimum.toString()} ${sizing?.unit}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `Eilut\u0117 privalo prasid\u0117ti "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `Eilut\u0117 privalo pasibaigti "${_issue.suffix}"`; if (_issue.format === "includes") return `Eilut\u0117 privalo \u012Ftraukti "${_issue.includes}"`; if (_issue.format === "regex") return `Eilut\u0117 privalo atitikti ${_issue.pattern}`; return `Neteisingas ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Skai\u010Dius privalo b\u016Bti ${issue2.divisor} kartotinis.`; case "unrecognized_keys": return `Neatpa\u017Eint${issue2.keys.length > 1 ? "i" : "as"} rakt${issue2.keys.length > 1 ? "ai" : "as"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return "Rastas klaidingas raktas"; case "invalid_union": return "Klaidinga \u012Fvestis"; case "invalid_element": { const origin = TypeDictionary[issue2.origin] ?? issue2.origin; return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`; } default: return "Klaidinga \u012Fvestis"; } }; }, "error"); function lt_default() { return { localeError: error33() }; } __name(lt_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/mk.js var error34 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" }, file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" }, array: { unit: "\u0441\u0442\u0430\u0432\u043A\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" }, set: { unit: "\u0441\u0442\u0430\u0432\u043A\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" }, map: { unit: "\u0441\u0442\u0430\u0432\u043A\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0432\u043D\u0435\u0441", email: "\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430", url: "URL", emoji: "\u0435\u043C\u043E\u045F\u0438", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435", date: "ISO \u0434\u0430\u0442\u0443\u043C", time: "ISO \u0432\u0440\u0435\u043C\u0435", duration: "ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435", ipv4: "IPv4 \u0430\u0434\u0440\u0435\u0441\u0430", ipv6: "IPv6 \u0430\u0434\u0440\u0435\u0441\u0430", mac: "MAC \u0430\u0434\u0440\u0435\u0441\u0430", cidrv4: "IPv4 \u043E\u043F\u0441\u0435\u0433", cidrv6: "IPv6 \u043E\u043F\u0441\u0435\u0433", base64: "base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430", base64url: "base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430", json_string: "JSON \u043D\u0438\u0437\u0430", e164: "E.164 \u0431\u0440\u043E\u0458", credit_card: "\u0431\u0440\u043E\u0458 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0438\u0447\u043A\u0430", currency_code: "\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430", iban: "IBAN", jwt: "JWT", template_literal: "\u0432\u043D\u0435\u0441" }; const TypeDictionary = { nan: "NaN", number: "\u0431\u0440\u043E\u0458", array: "\u043D\u0438\u0437\u0430" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${issue2.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${received}`; } return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`; return `\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.origin ?? "\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`; return `\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.origin ?? "\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.origin} \u0434\u0430 \u0438\u043C\u0430 ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${_issue.suffix}"`; if (_issue.format === "includes") return `\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${_issue.includes}"`; if (_issue.format === "regex") return `\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${_issue.pattern}`; return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${issue2.divisor}`; case "unrecognized_keys": return `${issue2.keys.length > 1 ? "\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438" : "\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${issue2.origin}`; case "invalid_union": return "\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"; case "invalid_element": return `\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${issue2.origin}`; default: return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441`; } }; }, "error"); function mk_default() { return { localeError: error34() }; } __name(mk_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ms.js var error35 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "aksara", verb: "mempunyai" }, file: { unit: "bait", verb: "mempunyai" }, array: { unit: "elemen", verb: "mempunyai" }, set: { unit: "elemen", verb: "mempunyai" }, map: { unit: "elemen", verb: "mempunyai" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "input", email: "alamat e-mel", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "tarikh masa ISO", date: "tarikh ISO", time: "masa ISO", duration: "tempoh ISO", ipv4: "alamat IPv4", ipv6: "alamat IPv6", mac: "alamat MAC", cidrv4: "julat IPv4", cidrv6: "julat IPv6", base64: "string dikodkan base64", base64url: "string dikodkan base64url", json_string: "string JSON", e164: "nombor E.164", credit_card: "nombor kad kredit", currency_code: "kod mata wang", iban: "IBAN", jwt: "JWT", template_literal: "input" }; const TypeDictionary = { nan: "NaN", number: "nombor" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Input tidak sah: dijangka instanceof ${issue2.expected}, diterima ${received}`; } return `Input tidak sah: dijangka ${expected}, diterima ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Input tidak sah: dijangka ${stringifyPrimitive(issue2.values[0])}`; return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Terlalu besar: dijangka ${issue2.origin ?? "nilai"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemen"}`; return `Terlalu besar: dijangka ${issue2.origin ?? "nilai"} adalah ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Terlalu kecil: dijangka ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `Terlalu kecil: dijangka ${issue2.origin} adalah ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `String tidak sah: mesti bermula dengan "${_issue.prefix}"`; if (_issue.format === "ends_with") return `String tidak sah: mesti berakhir dengan "${_issue.suffix}"`; if (_issue.format === "includes") return `String tidak sah: mesti mengandungi "${_issue.includes}"`; if (_issue.format === "regex") return `String tidak sah: mesti sepadan dengan corak ${_issue.pattern}`; return `${FormatDictionary[_issue.format] ?? issue2.format} tidak sah`; } case "not_multiple_of": return `Nombor tidak sah: perlu gandaan ${issue2.divisor}`; case "unrecognized_keys": return `Kunci tidak dikenali: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Kunci tidak sah dalam ${issue2.origin}`; case "invalid_union": return "Input tidak sah"; case "invalid_element": return `Nilai tidak sah dalam ${issue2.origin}`; default: return `Input tidak sah`; } }; }, "error"); function ms_default() { return { localeError: error35() }; } __name(ms_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ne.js var error36 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" }, file: { unit: "\u092C\u093E\u0907\u091F", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" }, array: { unit: "\u0924\u0924\u094D\u0935", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" }, set: { unit: "\u0924\u0924\u094D\u0935", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" }, map: { unit: "\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0907\u0928\u092A\u0941\u091F", email: "\u0907\u092E\u0947\u0932 \u0920\u0947\u0917\u093E\u0928\u093E", url: "URL", emoji: "\u0907\u092E\u094B\u091C\u0940", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO \u092E\u093F\u0924\u093F \u0930 \u0938\u092E\u092F", date: "ISO \u092E\u093F\u0924\u093F", time: "ISO \u0938\u092E\u092F", duration: "ISO \u0905\u0935\u0927\u093F", ipv4: "IPv4 \u0920\u0947\u0917\u093E\u0928\u093E", ipv6: "IPv6 \u0920\u0947\u0917\u093E\u0928\u093E", mac: "MAC \u0920\u0947\u0917\u093E\u0928\u093E", cidrv4: "IPv4 \u0926\u093E\u092F\u0930\u093E", cidrv6: "IPv6 \u0926\u093E\u092F\u0930\u093E", base64: "base64-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919", base64url: "base64url-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919", json_string: "JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0919", e164: "E.164 \u0928\u092E\u094D\u092C\u0930", credit_card: "\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0928\u092E\u094D\u092C\u0930", currency_code: "\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921", iban: "IBAN", jwt: "JWT", template_literal: "\u0907\u0928\u092A\u0941\u091F" }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; return `\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${expected}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${stringifyPrimitive(issue2.values[0])}`; return `\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u0939\u0930\u0942 \u092E\u0927\u094D\u092F\u0947 \u090F\u0915 ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${issue2.origin ?? "\u092E\u093E\u0928"} \u092E\u093E ${adj}${issue2.maximum.toString()} ${sizing.unit} ${sizing.verb}`; return `\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${issue2.origin ?? "\u092E\u093E\u0928"} ${adj}${issue2.maximum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) return `\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${issue2.origin} \u092E\u093E ${adj}${issue2.minimum.toString()} ${sizing.unit} ${sizing.verb}`; return `\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${issue2.origin} ${adj}${issue2.minimum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${_issue.prefix}" \u092C\u093E\u091F \u0938\u0941\u0930\u0941 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`; if (_issue.format === "ends_with") return `\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${_issue.suffix}" \u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`; if (_issue.format === "includes") return `\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${_issue.includes}" \u0938\u092E\u093E\u0935\u0947\u0936 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`; if (_issue.format === "regex") return `\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: \u0922\u093E\u0901\u091A\u093E ${_issue.pattern} \u0938\u0901\u0917 \u092E\u0947\u0932 \u0916\u093E\u0928\u0941\u092A\u0930\u094D\u091B`; return `\u0905\u092E\u093E\u0928\u094D\u092F ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: ${issue2.divisor} \u0915\u094B \u0917\u0941\u0923\u091C \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`; case "unrecognized_keys": return `\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u091E\u094D\u091C\u0940${issue2.keys.length > 1 ? "\u0939\u0930\u0942" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u091E\u094D\u091C\u0940: ${issue2.origin} \u092E\u093E`; case "invalid_union": if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) { const opts = issue2.options.map((o3) => `'${o3}'`).join(" | "); return `\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${opts}`; } return "\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"; case "invalid_element": return `\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${issue2.origin} \u092E\u093E`; default: return `\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F`; } }; }, "error"); function ne_default() { return { localeError: error36() }; } __name(ne_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/nl.js var error37 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "tekens", verb: "heeft" }, file: { unit: "bytes", verb: "heeft" }, array: { unit: "elementen", verb: "heeft" }, set: { unit: "elementen", verb: "heeft" }, map: { unit: "elementen", verb: "heeft" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "invoer", email: "emailadres", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO datum en tijd", date: "ISO datum", time: "ISO tijd", duration: "ISO duur", ipv4: "IPv4-adres", ipv6: "IPv6-adres", mac: "MAC-adres", cidrv4: "IPv4-bereik", cidrv6: "IPv6-bereik", base64: "base64-gecodeerde tekst", base64url: "base64 URL-gecodeerde tekst", json_string: "JSON string", e164: "E.164-nummer", credit_card: "creditcardnummer", currency_code: "valutacode", iban: "IBAN", jwt: "JWT", template_literal: "invoer" }; const TypeDictionary = { nan: "NaN", number: "getal" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Ongeldige invoer: verwacht instanceof ${issue2.expected}, ontving ${received}`; } return `Ongeldige invoer: verwacht ${expected}, ontving ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue2.values[0])}`; return `Ongeldige optie: verwacht \xE9\xE9n van ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); const longName = issue2.origin === "date" ? "laat" : issue2.origin === "string" ? "lang" : "groot"; if (sizing) return `Te ${longName}: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementen"} ${sizing.verb}`; return `Te ${longName}: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} is`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); const shortName = issue2.origin === "date" ? "vroeg" : issue2.origin === "string" ? "kort" : "klein"; if (sizing) { return `Te ${shortName}: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} ${sizing.verb}`; } return `Te ${shortName}: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} is`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `Ongeldige tekst: moet met "${_issue.prefix}" beginnen`; } if (_issue.format === "ends_with") return `Ongeldige tekst: moet op "${_issue.suffix}" eindigen`; if (_issue.format === "includes") return `Ongeldige tekst: moet "${_issue.includes}" bevatten`; if (_issue.format === "regex") return `Ongeldige tekst: moet overeenkomen met patroon ${_issue.pattern}`; return `Ongeldig: ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Ongeldig getal: moet een veelvoud van ${issue2.divisor} zijn`; case "unrecognized_keys": return `Onbekende key${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Ongeldige key in ${issue2.origin}`; case "invalid_union": return "Ongeldige invoer"; case "invalid_element": return `Ongeldige waarde in ${issue2.origin}`; default: return `Ongeldige invoer`; } }; }, "error"); function nl_default() { return { localeError: error37() }; } __name(nl_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/nn.js var error38 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "teikn", verb: "\xE5 ha" }, file: { unit: "bytes", verb: "\xE5 ha" }, array: { unit: "element", verb: "\xE5 innehalde" }, set: { unit: "element", verb: "\xE5 innehalde" }, map: { unit: "element", verb: "\xE5 innehalde" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "input", email: "e-postadresse", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO dato- og klokkeslett", date: "ISO-dato", time: "ISO-klokkeslett", duration: "ISO-varigheit", ipv4: "IPv4-adresse", ipv6: "IPv6-adresse", mac: "MAC-adresse", cidrv4: "IPv4-spekter", cidrv6: "IPv6-spekter", base64: "base64-enkoda streng", base64url: "base64url-enkoda streng", json_string: "JSON-streng", e164: "E.164-nummer", credit_card: "kredittkortnummer", currency_code: "valutakode", iban: "IBAN", jwt: "JWT", template_literal: "input" }; const TypeDictionary = { nan: "NaN", number: "tal", array: "liste" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Ugyldig input: forventa instanceof ${issue2.expected}, fekk ${received}`; } return `Ugyldig input: forventa ${expected}, fekk ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Ugyldig verdi: forventa ${stringifyPrimitive(issue2.values[0])}`; return `Ugyldig val: forventa eitt av ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `For stor(t): forventa ${issue2.origin ?? "value"} til \xE5 ha ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "element"}`; return `For stor(t): forventa ${issue2.origin ?? "value"} til \xE5 ha ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `For lite(n): forventa ${issue2.origin} til \xE5 ha ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `For lite(n): forventa ${issue2.origin} til \xE5 ha ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Ugyldig streng: m\xE5 starte med "${_issue.prefix}"`; if (_issue.format === "ends_with") return `Ugyldig streng: m\xE5 slutte med "${_issue.suffix}"`; if (_issue.format === "includes") return `Ugyldig streng: m\xE5 innehalde "${_issue.includes}"`; if (_issue.format === "regex") return `Ugyldig streng: m\xE5 matche m\xF8nsteret ${_issue.pattern}`; return `Ugyldig ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Ugyldig tal: m\xE5 vere eit multiplum av ${issue2.divisor}`; case "unrecognized_keys": return `${issue2.keys.length > 1 ? "Ukjende n\xF8klar" : "Ukjend n\xF8kkel"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Ugyldig n\xF8kkel i ${issue2.origin}`; case "invalid_union": return "Ugyldig input"; case "invalid_element": return `Ugyldig verdi i ${issue2.origin}`; default: return `Ugyldig input`; } }; }, "error"); function nn_default() { return { localeError: error38() }; } __name(nn_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/no.js var error39 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "tegn", verb: "\xE5 ha" }, file: { unit: "bytes", verb: "\xE5 ha" }, array: { unit: "elementer", verb: "\xE5 inneholde" }, set: { unit: "elementer", verb: "\xE5 inneholde" }, map: { unit: "elementer", verb: "\xE5 inneholde" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "input", email: "e-postadresse", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO dato- og klokkeslett", date: "ISO-dato", time: "ISO-klokkeslett", duration: "ISO-varighet", ipv4: "IPv4-adresse", ipv6: "IPv6-adresse", mac: "MAC-adresse", cidrv4: "IPv4-spekter", cidrv6: "IPv6-spekter", base64: "base64-enkodet streng", base64url: "base64url-enkodet streng", json_string: "JSON-streng", e164: "E.164-nummer", credit_card: "kredittkortnummer", currency_code: "valutakode", iban: "IBAN", jwt: "JWT", template_literal: "input" }; const TypeDictionary = { nan: "NaN", number: "tall", array: "liste" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Ugyldig input: forventet instanceof ${issue2.expected}, fikk ${received}`; } return `Ugyldig input: forventet ${expected}, fikk ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Ugyldig verdi: forventet ${stringifyPrimitive(issue2.values[0])}`; return `Ugyldig valg: forventet en av ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `For stor(t): forventet ${issue2.origin ?? "value"} til \xE5 ha ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementer"}`; return `For stor(t): forventet ${issue2.origin ?? "value"} til \xE5 ha ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `For lite(n): forventet ${issue2.origin} til \xE5 ha ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `For lite(n): forventet ${issue2.origin} til \xE5 ha ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Ugyldig streng: m\xE5 starte med "${_issue.prefix}"`; if (_issue.format === "ends_with") return `Ugyldig streng: m\xE5 ende med "${_issue.suffix}"`; if (_issue.format === "includes") return `Ugyldig streng: m\xE5 inneholde "${_issue.includes}"`; if (_issue.format === "regex") return `Ugyldig streng: m\xE5 matche m\xF8nsteret ${_issue.pattern}`; return `Ugyldig ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Ugyldig tall: m\xE5 v\xE6re et multiplum av ${issue2.divisor}`; case "unrecognized_keys": return `${issue2.keys.length > 1 ? "Ukjente n\xF8kler" : "Ukjent n\xF8kkel"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Ugyldig n\xF8kkel i ${issue2.origin}`; case "invalid_union": return "Ugyldig input"; case "invalid_element": return `Ugyldig verdi i ${issue2.origin}`; default: return `Ugyldig input`; } }; }, "error"); function no_default() { return { localeError: error39() }; } __name(no_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ota.js var error40 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "harf", verb: "olmal\u0131d\u0131r" }, file: { unit: "bayt", verb: "olmal\u0131d\u0131r" }, array: { unit: "unsur", verb: "olmal\u0131d\u0131r" }, set: { unit: "unsur", verb: "olmal\u0131d\u0131r" }, map: { unit: "unsur", verb: "olmal\u0131d\u0131r" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "giren", email: "epostag\xE2h", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO heng\xE2m\u0131", date: "ISO tarihi", time: "ISO zaman\u0131", duration: "ISO m\xFCddeti", ipv4: "IPv4 ni\u015F\xE2n\u0131", ipv6: "IPv6 ni\u015F\xE2n\u0131", mac: "MAC ni\u015F\xE2n\u0131", cidrv4: "IPv4 menzili", cidrv6: "IPv6 menzili", base64: "base64-\u015Fifreli metin", base64url: "base64url-\u015Fifreli metin", json_string: "JSON metin", e164: "E.164 say\u0131s\u0131", credit_card: "i'tib\xE2r kart\u0131 numaras\u0131", currency_code: "para birimi kodu", iban: "IBAN", jwt: "JWT", template_literal: "giren" }; const TypeDictionary = { nan: "NaN", number: "numara", array: "saf", null: "gayb" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `F\xE2sit giren: umulan instanceof ${issue2.expected}, al\u0131nan ${received}`; } return `F\xE2sit giren: umulan ${expected}, al\u0131nan ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `F\xE2sit giren: umulan ${stringifyPrimitive(issue2.values[0])}`; return `F\xE2sit tercih: m\xFBteberler ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Fazla b\xFCy\xFCk: ${issue2.origin ?? "value"}, ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elements"} sahip olmal\u0131yd\u0131.`; return `Fazla b\xFCy\xFCk: ${issue2.origin ?? "value"}, ${adj}${issue2.maximum.toString()} olmal\u0131yd\u0131.`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Fazla k\xFC\xE7\xFCk: ${issue2.origin}, ${adj}${issue2.minimum.toString()} ${sizing.unit} sahip olmal\u0131yd\u0131.`; } return `Fazla k\xFC\xE7\xFCk: ${issue2.origin}, ${adj}${issue2.minimum.toString()} olmal\u0131yd\u0131.`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `F\xE2sit metin: "${_issue.prefix}" ile ba\u015Flamal\u0131.`; if (_issue.format === "ends_with") return `F\xE2sit metin: "${_issue.suffix}" ile bitmeli.`; if (_issue.format === "includes") return `F\xE2sit metin: "${_issue.includes}" ihtiv\xE2 etmeli.`; if (_issue.format === "regex") return `F\xE2sit metin: ${_issue.pattern} nak\u015F\u0131na uymal\u0131.`; return `F\xE2sit ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `F\xE2sit say\u0131: ${issue2.divisor} kat\u0131 olmal\u0131yd\u0131.`; case "unrecognized_keys": return `Tan\u0131nmayan anahtar ${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `${issue2.origin} i\xE7in tan\u0131nmayan anahtar var.`; case "invalid_union": return "Giren tan\u0131namad\u0131."; case "invalid_element": return `${issue2.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`; default: return `K\u0131ymet tan\u0131namad\u0131.`; } }; }, "error"); function ota_default() { return { localeError: error40() }; } __name(ota_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ps.js var error41 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" }, file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" }, array: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" }, set: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" }, map: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0648\u0631\u0648\u062F\u064A", email: "\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9", url: "\u06CC\u0648 \u0622\u0631 \u0627\u0644", emoji: "\u0627\u06CC\u0645\u0648\u062C\u064A", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A", date: "\u0646\u06D0\u067C\u0647", time: "\u0648\u062E\u062A", duration: "\u0645\u0648\u062F\u0647", ipv4: "\u062F IPv4 \u067E\u062A\u0647", ipv6: "\u062F IPv6 \u067E\u062A\u0647", mac: "\u062F MAC \u067E\u062A\u0647", cidrv4: "\u062F IPv4 \u0633\u0627\u062D\u0647", cidrv6: "\u062F IPv6 \u0633\u0627\u062D\u0647", base64: "base64-encoded \u0645\u062A\u0646", base64url: "base64url-encoded \u0645\u062A\u0646", json_string: "JSON \u0645\u062A\u0646", e164: "\u062F E.164 \u0634\u0645\u06D0\u0631\u0647", credit_card: "\u062F \u06A9\u0631\u06CC\u0689\u06CC\u067C \u06A9\u0627\u0631\u062A \u0634\u0645\u06CC\u0631\u0647", currency_code: "\u062F \u0627\u0633\u0639\u0627\u0631\u0648 \u06A9\u0648\u0689", iban: "IBAN", jwt: "JWT", template_literal: "\u0648\u0631\u0648\u062F\u064A" }; const TypeDictionary = { nan: "NaN", number: "\u0639\u062F\u062F", array: "\u0627\u0631\u06D0" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${issue2.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${received} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`; } return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${received} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`; } case "invalid_value": if (issue2.values.length === 1) { return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${stringifyPrimitive(issue2.values[0])} \u0648\u0627\u06CC`; } return `\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${joinValues(issue2.values, "|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${issue2.origin ?? "\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`; } return `\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${issue2.origin ?? "\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${adj}${issue2.maximum.toString()} \u0648\u064A`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${issue2.origin} \u0628\u0627\u06CC\u062F ${adj}${issue2.minimum.toString()} ${sizing.unit} \u0648\u0644\u0631\u064A`; } return `\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${issue2.origin} \u0628\u0627\u06CC\u062F ${adj}${issue2.minimum.toString()} \u0648\u064A`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${_issue.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`; } if (_issue.format === "ends_with") { return `\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${_issue.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`; } if (_issue.format === "includes") { return `\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${_issue.includes}" \u0648\u0644\u0631\u064A`; } if (_issue.format === "regex") { return `\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${_issue.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`; } return `${FormatDictionary[_issue.format] ?? issue2.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`; } case "not_multiple_of": return `\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${issue2.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`; case "unrecognized_keys": return `\u0646\u0627\u0633\u0645 ${issue2.keys.length > 1 ? "\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647" : "\u06A9\u0644\u06CC\u0689"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${issue2.origin} \u06A9\u06D0`; case "invalid_union": return `\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A`; case "invalid_element": return `\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${issue2.origin} \u06A9\u06D0`; default: return `\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A`; } }; }, "error"); function ps_default() { return { localeError: error41() }; } __name(ps_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/pl.js var error42 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "znak\xF3w", verb: "mie\u0107" }, file: { unit: "bajt\xF3w", verb: "mie\u0107" }, array: { unit: "element\xF3w", verb: "mie\u0107" }, set: { unit: "element\xF3w", verb: "mie\u0107" }, map: { unit: "element\xF3w", verb: "mie\u0107" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "wyra\u017Cenie", email: "adres email", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "data i godzina w formacie ISO", date: "data w formacie ISO", time: "godzina w formacie ISO", duration: "czas trwania ISO", ipv4: "adres IPv4", ipv6: "adres IPv6", mac: "adres MAC", cidrv4: "zakres IPv4", cidrv6: "zakres IPv6", base64: "ci\u0105g znak\xF3w zakodowany w formacie base64", base64url: "ci\u0105g znak\xF3w zakodowany w formacie base64url", json_string: "ci\u0105g znak\xF3w w formacie JSON", e164: "liczba E.164", credit_card: "numer karty kredytowej", currency_code: "kod waluty", iban: "IBAN", jwt: "JWT", template_literal: "wej\u015Bcie" }; const TypeDictionary = { nan: "NaN", number: "liczba", array: "tablica" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${issue2.expected}, otrzymano ${received}`; } return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${expected}, otrzymano ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${stringifyPrimitive(issue2.values[0])}`; return `Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) { return `Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${issue2.origin ?? "warto\u015B\u0107"} b\u0119dzie mie\u0107 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "element\xF3w"}`; } return `Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${issue2.origin ?? "warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${issue2.origin ?? "warto\u015B\u0107"} b\u0119dzie mie\u0107 ${adj}${issue2.minimum.toString()} ${sizing.unit ?? "element\xF3w"}`; } return `Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${issue2.origin ?? "warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${_issue.prefix}"`; if (_issue.format === "ends_with") return `Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${_issue.suffix}"`; if (_issue.format === "includes") return `Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${_issue.includes}"`; if (_issue.format === "regex") return `Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${_issue.pattern}`; return `Nieprawid\u0142ow(y/a/e) ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${issue2.divisor}`; case "unrecognized_keys": return `Nierozpoznane klucze${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Nieprawid\u0142owy klucz w ${issue2.origin}`; case "invalid_union": return "Nieprawid\u0142owe dane wej\u015Bciowe"; case "invalid_element": return `Nieprawid\u0142owa warto\u015B\u0107 w ${issue2.origin}`; default: return `Nieprawid\u0142owe dane wej\u015Bciowe`; } }; }, "error"); function pl_default() { return { localeError: error42() }; } __name(pl_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/pt.js var error43 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "caracteres" }, file: { unit: "bytes" }, array: { unit: "elementos" }, set: { unit: "elementos" }, map: { unit: "entradas" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "a entrada", email: "o endere\xE7o de e-mail", url: "o URL", emoji: "o emoji", uuid: "o UUID", uuidv4: "o UUIDv4", uuidv6: "o UUIDv6", nanoid: "o nanoid", guid: "o GUID", cuid: "o cuid", cuid2: "o cuid2", ulid: "o ULID", xid: "o XID", ksuid: "o KSUID", datetime: "a data e hora ISO", date: "a data ISO", time: "a hora ISO", duration: "a dura\xE7\xE3o ISO", ipv4: "o endere\xE7o IPv4", ipv6: "o endere\xE7o IPv6", mac: "o endere\xE7o MAC", cidrv4: "o intervalo de endere\xE7os IPv4", cidrv6: "o intervalo de endere\xE7os IPv6", base64: "o texto codificado em base64", base64url: "o texto codificado em base64url", json_string: "o texto JSON", e164: "o n\xFAmero E.164", credit_card: "o n\xFAmero de cart\xE3o de cr\xE9dito", currency_code: "o c\xF3digo de moeda", iban: "o IBAN", jwt: "o JWT", template_literal: "a entrada" }; const Gender = { masculine: { definite: "o", indefinite: "um" }, feminine: { definite: "a", indefinite: "uma" } }; const TypeDictionary = { string: { name: "texto", articles: Gender.masculine }, number: { name: "n\xFAmero", articles: Gender.masculine }, int: { name: "n\xFAmero inteiro", articles: Gender.masculine }, boolean: { name: "valor booleano", articles: Gender.masculine }, bigint: { name: "n\xFAmero bigint", articles: Gender.masculine }, symbol: { name: "s\xEDmbolo", articles: Gender.masculine }, undefined: { name: 'valor "undefined"', articles: Gender.masculine }, null: { name: 'valor "nulo"', articles: Gender.masculine }, never: { name: 'valor "never"', articles: Gender.masculine }, void: { name: 'valor "void"', articles: Gender.masculine }, date: { name: "data", articles: Gender.feminine }, array: { name: "vetor", articles: Gender.masculine }, object: { name: "objeto", articles: Gender.masculine }, tuple: { name: "tuplo", articles: Gender.masculine }, record: { name: "registo", articles: Gender.masculine }, map: { name: "mapa", articles: Gender.masculine }, set: { name: "conjunto", articles: Gender.masculine }, file: { name: "ficheiro", articles: Gender.masculine }, nonoptional: { name: "valor n\xE3o opcional", articles: Gender.masculine }, nan: { name: 'valor "NaN"', articles: Gender.masculine }, // Compatibility: "nan" -> "NaN" for display function: { name: "fun\xE7\xE3o", articles: Gender.feminine } }; function translateOriginWithArticle(type, articleType) { const translatedValue = TypeDictionary[type] ?? { name: `valor "${type}"`, articles: Gender.masculine }; return `${translatedValue.articles[articleType]} ${translatedValue.name}`; } __name(translateOriginWithArticle, "translateOriginWithArticle"); return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = translateOriginWithArticle(issue2.expected, "indefinite"); const receivedType = parsedType(issue2.input); const received = translateOriginWithArticle(receivedType, "indefinite"); return `Entrada inv\xE1lida: esperava ${expected}, recebeu ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Entrada inv\xE1lida: esperava ${stringifyPrimitive(issue2.values[0])}`; return `Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Demasiado grande: esperava que ${translateOriginWithArticle(issue2.origin, "definite")} tivesse ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`; return `Demasiado grande: esperava que ${translateOriginWithArticle(issue2.origin, "definite")} fosse ${adj} ${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Demasiado pequeno: esperava que ${translateOriginWithArticle(issue2.origin, "definite")} tivesse ${adj} ${issue2.minimum.toString()} ${sizing.unit ?? "elementos"}`; } return `Demasiado pequeno: esperava que ${translateOriginWithArticle(issue2.origin, "definite")} fosse ${adj} ${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Texto inv\xE1lido: deve come\xE7ar por "${_issue.prefix}"`; if (_issue.format === "ends_with") return `Texto inv\xE1lido: deve terminar em "${_issue.suffix}"`; if (_issue.format === "includes") return `Texto inv\xE1lido: deve incluir "${_issue.includes}"`; if (_issue.format === "regex") return `Texto inv\xE1lido: deve corresponder ao padr\xE3o ${_issue.pattern}`; return `Formato d${FormatDictionary[_issue.format] ?? issue2.format} inv\xE1lido`; } case "not_multiple_of": return `N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${issue2.divisor}`; case "unrecognized_keys": { const plural2 = issue2.keys.length > 1 ? "s" : ""; return `Chave${plural2} inv\xE1lida${plural2}: ${joinValues(issue2.keys, ", ")}`; } case "invalid_key": return `Entrada inv\xE1lida n${translateOriginWithArticle(issue2.origin, "definite")}`; case "invalid_union": if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) { const opts = issue2.options.map((o3) => `'${o3}'`).join(" | "); return `Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${opts}`; } return "Entrada inv\xE1lida"; case "invalid_element": return `Entrada inv\xE1lida n${translateOriginWithArticle(issue2.origin, "definite")}`; default: return `Entrada inv\xE1lida`; } }; }, "error"); function pt_default() { return { localeError: error43() }; } __name(pt_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/pt-BR.js var error44 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "caracteres" }, file: { unit: "bytes" }, array: { unit: "elementos" }, set: { unit: "elementos" }, map: { unit: "entradas" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "a entrada", email: "o endere\xE7o de e-mail", url: "o URL", emoji: "o emoji", uuid: "o UUID", uuidv4: "o UUIDv4", uuidv6: "o UUIDv6", nanoid: "o nanoid", guid: "o GUID", cuid: "o cuid", cuid2: "o cuid2", ulid: "o ULID", xid: "o XID", ksuid: "o KSUID", datetime: "a data e hora ISO", date: "a data ISO", time: "a hora ISO", duration: "a dura\xE7\xE3o ISO", ipv4: "o endere\xE7o IPv4", ipv6: "o endere\xE7o IPv6", mac: "o endere\xE7o MAC", cidrv4: "a faixa de endere\xE7os IPv4", cidrv6: "a faixa de endere\xE7os IPv6", base64: "o texto codificado em base64", base64url: "o texto codificado em base64url", json_string: "o texto JSON", e164: "o n\xFAmero E.164", credit_card: "o n\xFAmero de cart\xE3o de cr\xE9dito", currency_code: "o c\xF3digo de moeda", iban: "o IBAN", jwt: "o JWT", template_literal: "a entrada" }; const Gender = { masculine: { definite: "o", indefinite: "um" }, feminine: { definite: "a", indefinite: "uma" } }; const TypeDictionary = { string: { name: "texto", articles: Gender.masculine }, number: { name: "n\xFAmero", articles: Gender.masculine }, int: { name: "n\xFAmero inteiro", articles: Gender.masculine }, boolean: { name: "valor booleano", articles: Gender.masculine }, bigint: { name: "n\xFAmero bigint", articles: Gender.masculine }, symbol: { name: "s\xEDmbolo", articles: Gender.masculine }, undefined: { name: 'valor "undefined"', articles: Gender.masculine }, null: { name: 'valor "nulo"', articles: Gender.masculine }, never: { name: 'valor "never"', articles: Gender.masculine }, void: { name: 'valor "void"', articles: Gender.masculine }, date: { name: "data", articles: Gender.feminine }, array: { name: "vetor", articles: Gender.masculine }, object: { name: "objeto", articles: Gender.masculine }, tuple: { name: "tupla", articles: Gender.feminine }, record: { name: "registro", articles: Gender.masculine }, map: { name: "mapa", articles: Gender.masculine }, set: { name: "conjunto", articles: Gender.masculine }, file: { name: "arquivo", articles: Gender.masculine }, nonoptional: { name: "valor n\xE3o opcional", articles: Gender.masculine }, nan: { name: 'valor "NaN"', articles: Gender.masculine }, // Compatibility: "nan" -> "NaN" for display function: { name: "fun\xE7\xE3o", articles: Gender.feminine } }; function translateOriginWithArticle(type, articleType) { const translatedValue = TypeDictionary[type] ?? { name: `valor "${type}"`, articles: Gender.masculine }; return `${translatedValue.articles[articleType]} ${translatedValue.name}`; } __name(translateOriginWithArticle, "translateOriginWithArticle"); return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = translateOriginWithArticle(issue2.expected, "indefinite"); const receivedType = parsedType(issue2.input); const received = translateOriginWithArticle(receivedType, "indefinite"); return `Entrada inv\xE1lida: esperava ${expected}, recebeu ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Entrada inv\xE1lida: esperava ${stringifyPrimitive(issue2.values[0])}`; return `Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Grande demais: esperava que ${translateOriginWithArticle(issue2.origin, "definite")} tivesse ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`; return `Grande demais: esperava que ${translateOriginWithArticle(issue2.origin, "definite")} fosse ${adj} ${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Pequeno demais: esperava que ${translateOriginWithArticle(issue2.origin, "definite")} tivesse ${adj} ${issue2.minimum.toString()} ${sizing.unit ?? "elementos"}`; } return `Pequeno demais: esperava que ${translateOriginWithArticle(issue2.origin, "definite")} fosse ${adj} ${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `Texto inv\xE1lido: deve come\xE7ar com "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `Texto inv\xE1lido: deve terminar com "${_issue.suffix}"`; if (_issue.format === "includes") return `Texto inv\xE1lido: deve incluir "${_issue.includes}"`; if (_issue.format === "regex") return `Texto inv\xE1lido: deve corresponder ao padr\xE3o ${_issue.pattern}`; return `Formato d${FormatDictionary[_issue.format] ?? issue2.format} inv\xE1lido`; } case "not_multiple_of": return `N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${issue2.divisor}`; case "unrecognized_keys": { const plural2 = issue2.keys.length > 1 ? "s" : ""; return `Chave${plural2} inv\xE1lida${plural2}: ${joinValues(issue2.keys, ", ")}`; } case "invalid_key": return `Entrada inv\xE1lida n${translateOriginWithArticle(issue2.origin, "definite")}`; case "invalid_union": if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) { const opts = issue2.options.map((o3) => `'${o3}'`).join(" | "); return `Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${opts}`; } return "Entrada inv\xE1lida"; case "invalid_element": return `Entrada inv\xE1lida n${translateOriginWithArticle(issue2.origin, "definite")}`; default: return `Entrada inv\xE1lida`; } }; }, "error"); function pt_BR_default() { return { localeError: error44() }; } __name(pt_BR_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ro.js var error45 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "caractere", verb: "s\u0103 aib\u0103" }, file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" }, array: { unit: "elemente", verb: "s\u0103 aib\u0103" }, set: { unit: "elemente", verb: "s\u0103 aib\u0103" }, map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "intrare", email: "adres\u0103 de email", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "dat\u0103 \u0219i or\u0103 ISO", date: "dat\u0103 ISO", time: "or\u0103 ISO", duration: "durat\u0103 ISO", ipv4: "adres\u0103 IPv4", ipv6: "adres\u0103 IPv6", mac: "adres\u0103 MAC", cidrv4: "interval IPv4", cidrv6: "interval IPv6", base64: "\u0219ir codat base64", base64url: "\u0219ir codat base64url", json_string: "\u0219ir JSON", e164: "num\u0103r E.164", credit_card: "num\u0103r de card de credit", currency_code: "cod valutar", iban: "IBAN", jwt: "JWT", template_literal: "intrare" }; const TypeDictionary = { nan: "NaN", string: "\u0219ir", number: "num\u0103r", boolean: "boolean", function: "func\u021Bie", array: "matrice", object: "obiect", undefined: "nedefinit", symbol: "simbol", bigint: "num\u0103r mare", void: "void", never: "never", map: "hart\u0103", set: "set" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`; return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`; return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`; if (_issue.format === "includes") return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`; if (_issue.format === "regex") return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`; return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`; case "unrecognized_keys": return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Cheie invalid\u0103 \xEEn ${issue2.origin}`; case "invalid_union": return "Intrare invalid\u0103"; case "invalid_element": return `Valoare invalid\u0103 \xEEn ${issue2.origin}`; default: return `Intrare invalid\u0103`; } }; }, "error"); function ro_default() { return { localeError: error45() }; } __name(ro_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ru.js function getRussianPlural(count, one, few, many) { const absCount = Math.abs(count); const lastDigit = absCount % 10; const lastTwoDigits = absCount % 100; if (lastTwoDigits >= 11 && lastTwoDigits <= 19) { return many; } if (lastDigit === 1) { return one; } if (lastDigit >= 2 && lastDigit <= 4) { return few; } return many; } __name(getRussianPlural, "getRussianPlural"); var error46 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: { one: "\u0441\u0438\u043C\u0432\u043E\u043B", few: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", many: "\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432" }, verb: "\u0438\u043C\u0435\u0442\u044C" }, file: { unit: { one: "\u0431\u0430\u0439\u0442", few: "\u0431\u0430\u0439\u0442\u0430", many: "\u0431\u0430\u0439\u0442" }, verb: "\u0438\u043C\u0435\u0442\u044C" }, array: { unit: { one: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442", few: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430", many: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432" }, verb: "\u0438\u043C\u0435\u0442\u044C" }, set: { unit: { one: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442", few: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430", many: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432" }, verb: "\u0438\u043C\u0435\u0442\u044C" }, map: { unit: { one: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442", few: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430", many: "\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432" }, verb: "\u0438\u043C\u0435\u0442\u044C" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0432\u0432\u043E\u0434", email: "email \u0430\u0434\u0440\u0435\u0441", url: "URL", emoji: "\u044D\u043C\u043E\u0434\u0437\u0438", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F", date: "ISO \u0434\u0430\u0442\u0430", time: "ISO \u0432\u0440\u0435\u043C\u044F", duration: "ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C", ipv4: "IPv4 \u0430\u0434\u0440\u0435\u0441", ipv6: "IPv6 \u0430\u0434\u0440\u0435\u0441", mac: "MAC \u0430\u0434\u0440\u0435\u0441", cidrv4: "IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D", cidrv6: "IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D", base64: "\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64", base64url: "\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url", json_string: "JSON \u0441\u0442\u0440\u043E\u043A\u0430", e164: "\u043D\u043E\u043C\u0435\u0440 E.164", credit_card: "\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0439 \u043A\u0430\u0440\u0442\u044B", currency_code: "\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B", iban: "IBAN", jwt: "JWT", template_literal: "\u0432\u0432\u043E\u0434" }; const TypeDictionary = { nan: "NaN", number: "\u0447\u0438\u0441\u043B\u043E", array: "\u043C\u0430\u0441\u0441\u0438\u0432" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${received}`; } return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${stringifyPrimitive(issue2.values[0])}`; return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) { const maxValue = Number(issue2.maximum); const unit = getRussianPlural(maxValue, sizing.unit.one, sizing.unit.few, sizing.unit.many); return `\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${issue2.origin ?? "\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${adj}${issue2.maximum.toString()} ${unit}`; } return `\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${issue2.origin ?? "\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { const minValue = Number(issue2.minimum); const unit = getRussianPlural(minValue, sizing.unit.one, sizing.unit.few, sizing.unit.many); return `\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${issue2.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${adj}${issue2.minimum.toString()} ${unit}`; } return `\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${issue2.origin} \u0431\u0443\u0434\u0435\u0442 ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${_issue.prefix}"`; if (_issue.format === "ends_with") return `\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${_issue.suffix}"`; if (_issue.format === "includes") return `\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${_issue.includes}"`; if (_issue.format === "regex") return `\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${_issue.pattern}`; return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${issue2.divisor}`; case "unrecognized_keys": return `\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${issue2.keys.length > 1 ? "\u044B\u0435" : "\u044B\u0439"} \u043A\u043B\u044E\u0447${issue2.keys.length > 1 ? "\u0438" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${issue2.origin}`; case "invalid_union": return "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"; case "invalid_element": return `\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${issue2.origin}`; default: return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435`; } }; }, "error"); function ru_default() { return { localeError: error46() }; } __name(ru_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/sk.js var error47 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "znakov", verb: "ma\u0165" }, file: { unit: "bajtov", verb: "ma\u0165" }, array: { unit: "prvkov", verb: "ma\u0165" }, set: { unit: "prvkov", verb: "ma\u0165" }, map: { unit: "polo\u017Eiek", verb: "ma\u0165" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "regul\xE1rny v\xFDraz", email: "e-mailov\xE1 adresa", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "d\xE1tum a \u010Das vo form\xE1te ISO", date: "d\xE1tum vo form\xE1te ISO", time: "\u010Das vo form\xE1te ISO", duration: "doba trvania ISO", ipv4: "IPv4 adresa", ipv6: "IPv6 adresa", mac: "MAC adresa", cidrv4: "rozsah IPv4", cidrv6: "rozsah IPv6", base64: "re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64", base64url: "re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64url", json_string: "re\u0165azec vo form\xE1te JSON", e164: "\u010D\xEDslo E.164", credit_card: "\u010D\xEDslo kreditnej karty", currency_code: "k\xF3d meny", iban: "IBAN", jwt: "JWT", template_literal: "vstup" }; const TypeDictionary = { nan: "NaN", number: "\u010D\xEDslo", string: "re\u0165azec", function: "funkcia", array: "pole" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 instanceof ${issue2.expected}, obdr\u017Ean\xE9 ${received}`; } return `Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${expected}, obdr\u017Ean\xE9 ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${stringifyPrimitive(issue2.values[0])}`; return `Neplatn\xFD vstup: o\u010Dak\xE1van\xE1 jedna z hodn\xF4t ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) { return `Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${issue2.origin ?? "hodnota"} mus\xED ma\u0165 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "prvkov"}`; } return `Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${issue2.origin ?? "hodnota"} mus\xED by\u0165 ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Hodnota je pr\xEDli\u0161 mal\xE1: ${issue2.origin ?? "hodnota"} mus\xED ma\u0165 ${adj}${issue2.minimum.toString()} ${sizing.unit ?? "prvkov"}`; } return `Hodnota je pr\xEDli\u0161 mal\xE1: ${issue2.origin ?? "hodnota"} mus\xED by\u0165 ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Neplatn\xFD re\u0165azec: mus\xED za\u010D\xEDna\u0165 na "${_issue.prefix}"`; if (_issue.format === "ends_with") return `Neplatn\xFD re\u0165azec: mus\xED kon\u010Di\u0165 na "${_issue.suffix}"`; if (_issue.format === "includes") return `Neplatn\xFD re\u0165azec: mus\xED obsahova\u0165 "${_issue.includes}"`; if (_issue.format === "regex") return `Neplatn\xFD re\u0165azec: mus\xED zodpoveda\u0165 vzoru ${_issue.pattern}`; return `Neplatn\xFD form\xE1t ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Neplatn\xE9 \u010D\xEDslo: mus\xED by\u0165 n\xE1sobkom ${issue2.divisor}`; case "unrecognized_keys": return `Nezn\xE1me kl\xFA\u010De: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Neplatn\xFD kl\xFA\u010D v ${issue2.origin}`; case "invalid_union": return "Neplatn\xFD vstup"; case "invalid_element": return `Neplatn\xE1 hodnota v ${issue2.origin}`; default: return `Neplatn\xFD vstup`; } }; }, "error"); function sk_default() { return { localeError: error47() }; } __name(sk_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/sl.js var error48 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "znakov", verb: "imeti" }, file: { unit: "bajtov", verb: "imeti" }, array: { unit: "elementov", verb: "imeti" }, set: { unit: "elementov", verb: "imeti" }, map: { unit: "elementov", verb: "imeti" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "vnos", email: "e-po\u0161tni naslov", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO datum in \u010Das", date: "ISO datum", time: "ISO \u010Das", duration: "ISO trajanje", ipv4: "IPv4 naslov", ipv6: "IPv6 naslov", mac: "MAC naslov", cidrv4: "obseg IPv4", cidrv6: "obseg IPv6", base64: "base64 kodiran niz", base64url: "base64url kodiran niz", json_string: "JSON niz", e164: "E.164 \u0161tevilka", credit_card: "\u0161tevilka kreditne kartice", currency_code: "koda valute", iban: "IBAN", jwt: "JWT", template_literal: "vnos" }; const TypeDictionary = { nan: "NaN", number: "\u0161tevilo", array: "tabela" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Neveljaven vnos: pri\u010Dakovano instanceof ${issue2.expected}, prejeto ${received}`; } return `Neveljaven vnos: pri\u010Dakovano ${expected}, prejeto ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Neveljaven vnos: pri\u010Dakovano ${stringifyPrimitive(issue2.values[0])}`; return `Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Preveliko: pri\u010Dakovano, da bo ${issue2.origin ?? "vrednost"} imelo ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementov"}`; return `Preveliko: pri\u010Dakovano, da bo ${issue2.origin ?? "vrednost"} ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Premajhno: pri\u010Dakovano, da bo ${issue2.origin} imelo ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `Premajhno: pri\u010Dakovano, da bo ${issue2.origin} ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `Neveljaven niz: mora se za\u010Deti z "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `Neveljaven niz: mora se kon\u010Dati z "${_issue.suffix}"`; if (_issue.format === "includes") return `Neveljaven niz: mora vsebovati "${_issue.includes}"`; if (_issue.format === "regex") return `Neveljaven niz: mora ustrezati vzorcu ${_issue.pattern}`; return `Neveljaven ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${issue2.divisor}`; case "unrecognized_keys": return `Neprepoznan${issue2.keys.length > 1 ? "i klju\u010Di" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Neveljaven klju\u010D v ${issue2.origin}`; case "invalid_union": return "Neveljaven vnos"; case "invalid_element": return `Neveljavna vrednost v ${issue2.origin}`; default: return "Neveljaven vnos"; } }; }, "error"); function sl_default() { return { localeError: error48() }; } __name(sl_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/sv.js var error49 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "tecken", verb: "att ha" }, file: { unit: "bytes", verb: "att ha" }, array: { unit: "objekt", verb: "att inneh\xE5lla" }, set: { unit: "objekt", verb: "att inneh\xE5lla" }, map: { unit: "objekt", verb: "att inneh\xE5lla" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "regulj\xE4rt uttryck", email: "e-postadress", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO-datum och tid", date: "ISO-datum", time: "ISO-tid", duration: "ISO-varaktighet", ipv4: "IPv4-adress", ipv6: "IPv6-adress", mac: "MAC-adress", cidrv4: "IPv4-spektrum", cidrv6: "IPv6-spektrum", base64: "base64-kodad str\xE4ng", base64url: "base64url-kodad str\xE4ng", json_string: "JSON-str\xE4ng", e164: "E.164-nummer", credit_card: "kreditkortsnummer", currency_code: "valutakod", iban: "IBAN", jwt: "JWT", template_literal: "mall-literal" }; const TypeDictionary = { nan: "NaN", number: "antal", array: "lista" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${issue2.expected}, fick ${received}`; } return `Ogiltig inmatning: f\xF6rv\xE4ntat ${expected}, fick ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Ogiltig inmatning: f\xF6rv\xE4ntat ${stringifyPrimitive(issue2.values[0])}`; return `Ogiltigt val: f\xF6rv\xE4ntade en av ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) { return `F\xF6r stor(t): f\xF6rv\xE4ntade ${issue2.origin ?? "v\xE4rdet"} att ha ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "element"}`; } return `F\xF6r stor(t): f\xF6rv\xE4ntat ${issue2.origin ?? "v\xE4rdet"} att ha ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `F\xF6r lite(t): f\xF6rv\xE4ntade ${issue2.origin ?? "v\xE4rdet"} att ha ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `F\xF6r lite(t): f\xF6rv\xE4ntade ${issue2.origin ?? "v\xE4rdet"} att ha ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `Ogiltig str\xE4ng: m\xE5ste sluta med "${_issue.suffix}"`; if (_issue.format === "includes") return `Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${_issue.includes}"`; if (_issue.format === "regex") return `Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${_issue.pattern}"`; return `Ogiltig(t) ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Ogiltigt tal: m\xE5ste vara en multipel av ${issue2.divisor}`; case "unrecognized_keys": return `${issue2.keys.length > 1 ? "Ok\xE4nda nycklar" : "Ok\xE4nd nyckel"}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Ogiltig nyckel i ${issue2.origin ?? "v\xE4rdet"}`; case "invalid_union": return "Ogiltig input"; case "invalid_element": return `Ogiltigt v\xE4rde i ${issue2.origin ?? "v\xE4rdet"}`; default: return `Ogiltig input`; } }; }, "error"); function sv_default() { return { localeError: error49() }; } __name(sv_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ta.js var error50 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" }, file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" }, array: { unit: "\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" }, set: { unit: "\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" }, map: { unit: "\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1", email: "\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD", date: "ISO \u0BA4\u0BC7\u0BA4\u0BBF", time: "ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD", duration: "ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1", ipv4: "IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF", ipv6: "IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF", mac: "MAC \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF", cidrv4: "IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1", cidrv6: "IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1", base64: "base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD", base64url: "base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD", json_string: "JSON \u0B9A\u0BB0\u0BAE\u0BCD", e164: "E.164 \u0B8E\u0BA3\u0BCD", credit_card: "\u0B95\u0B9F\u0BA9\u0BCD \u0B85\u0B9F\u0BCD\u0B9F\u0BC8 \u0B8E\u0BA3\u0BCD", currency_code: "\u0BA8\u0BBE\u0BA3\u0BAF\u0B95\u0BCD \u0B95\u0BC1\u0BB1\u0BBF\u0BAF\u0BC0\u0B9F\u0BC1", iban: "IBAN", jwt: "JWT", template_literal: "input" }; const TypeDictionary = { nan: "NaN", number: "\u0B8E\u0BA3\u0BCD", array: "\u0B85\u0BA3\u0BBF", null: "\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${issue2.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${received}`; } return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${stringifyPrimitive(issue2.values[0])}`; return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${joinValues(issue2.values, "|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.origin ?? "\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`; } return `\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.origin ?? "\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${adj}${issue2.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`; } return `\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.origin} ${adj}${issue2.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${_issue.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`; if (_issue.format === "ends_with") return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${_issue.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`; if (_issue.format === "includes") return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${_issue.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`; if (_issue.format === "regex") return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${_issue.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`; return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${issue2.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`; case "unrecognized_keys": return `\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${issue2.keys.length > 1 ? "\u0B95\u0BB3\u0BCD" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `${issue2.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`; case "invalid_union": return "\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"; case "invalid_element": return `${issue2.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`; default: return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1`; } }; }, "error"); function ta_default() { return { localeError: error50() }; } __name(ta_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/tg.js var error51 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u0430\u043B\u043E\u043C\u0430\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" }, file: { unit: "\u0431\u0430\u0439\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" }, array: { unit: "\u0443\u043D\u0441\u0443\u0440", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" }, set: { unit: "\u0443\u043D\u0441\u0443\u0440", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" }, map: { unit: "\u0441\u0430\u0431\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0432\u0443\u0440\u0443\u0434", email: "\u0441\u0443\u0440\u043E\u0493\u0430\u0438 email", url: "URL", emoji: "\u044D\u043C\u043E\u04B7\u0438", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "\u0441\u0430\u043D\u0430\u0432\u0443 \u0432\u0430\u049B\u0442\u0438 ISO", date: "\u0441\u0430\u043D\u0430\u0438 ISO", time: "\u0432\u0430\u049B\u0442\u0438 ISO", duration: "\u0434\u0430\u0432\u043E\u043C\u043D\u043E\u043A\u0438\u0438 ISO", ipv4: "\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv4", ipv6: "\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv6", mac: "\u0441\u0443\u0440\u043E\u0493\u0430\u0438 MAC", cidrv4: "\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv4", cidrv6: "\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv6", base64: "\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64", base64url: "\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64url", json_string: "\u0441\u0430\u0442\u0440\u0438 JSON", e164: "\u0440\u0430\u049B\u0430\u043C\u0438 E.164", credit_card: "\u0440\u0430\u049B\u0430\u043C\u0438 \u043A\u043E\u0440\u0442\u0438 \u043A\u0440\u0435\u0434\u0438\u0442\u04E3", currency_code: "\u0440\u0430\u043C\u0437\u0438 \u0430\u0441\u044A\u043E\u0440", iban: "IBAN", jwt: "JWT", template_literal: "\u0432\u0443\u0440\u0443\u0434" }; const TypeDictionary = { nan: "NaN", number: "\u0440\u0430\u049B\u0430\u043C", string: "\u0441\u0430\u0442\u0440", array: "\u043C\u0430\u0441\u0441\u0438\u0432", object: "\u043E\u0431\u044A\u0435\u043A\u0442", date: "\u0441\u0430\u043D\u0430" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; return `\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${expected} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442, ${received} \u0433\u0438\u0440\u0438\u0444\u0442\u0430 \u0448\u0443\u0434`; } case "invalid_value": if (issue2.values.length === 1) return `\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${stringifyPrimitive(issue2.values[0])} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`; return `\u0418\u043D\u0442\u0438\u0445\u043E\u0431\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u044F\u043A\u0435 \u0430\u0437 ${joinValues(issue2.values, "|")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${issue2.origin ?? "\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${adj}${issue2.maximum.toString()} ${sizing.unit} ${sizing.verb}`; return `\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${issue2.origin ?? "\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${adj}${issue2.maximum.toString()} \u0431\u043E\u0448\u0430\u0434`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) return `\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${issue2.origin} \u0431\u043E\u044F\u0434 ${adj}${issue2.minimum.toString()} ${sizing.unit} ${sizing.verb}`; return `\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${issue2.origin} \u0431\u043E\u044F\u0434 ${adj}${issue2.minimum.toString()} \u0431\u043E\u0448\u0430\u0434`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${_issue.prefix}" \u043E\u0493\u043E\u0437 \u0448\u0430\u0432\u0430\u0434`; if (_issue.format === "ends_with") return `\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${_issue.suffix}" \u0430\u043D\u04B7\u043E\u043C \u0451\u0431\u0430\u0434`; if (_issue.format === "includes") return `\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 "${_issue.includes}"-\u0440\u043E \u0434\u0430\u0440 \u0431\u0430\u0440 \u0433\u0438\u0440\u0430\u0434`; if (_issue.format === "regex") return `\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 \u043D\u0430\u043C\u0443\u043D\u0430\u0438 ${_issue.pattern} \u043C\u0443\u0432\u043E\u0444\u0438\u049B\u0430\u0442 \u043A\u0443\u043D\u0430\u0434`; return `${FormatDictionary[_issue.format] ?? issue2.format}-\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442`; } case "not_multiple_of": return `\u0420\u0430\u049B\u0430\u043C\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 ${issue2.divisor} \u0431\u0435 \u0431\u0430\u049B\u0438\u044F \u0442\u0430\u049B\u0441\u0438\u043C \u0448\u0430\u0432\u0430\u0434`; case "unrecognized_keys": return `\u041A\u0430\u043B\u0438\u0434${issue2.keys.length > 1 ? "\u04B3\u043E\u0438" : "\u0438"} \u043D\u043E\u043C\u0430\u044A\u043B\u0443\u043C: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u041A\u0430\u043B\u0438\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${issue2.origin}`; case "invalid_union": if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) { const opts = issue2.options.map((o3) => `'${o3}'`).join(" | "); return `\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442\u0438 \u0434\u0438\u0441\u043A\u0440\u0438\u043C\u0438\u043D\u0430\u0442\u043E\u0440: ${opts} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`; } return "\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442"; case "invalid_element": return `\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${issue2.origin}`; default: return `\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442`; } }; }, "error"); function tg_default() { return { localeError: error51() }; } __name(tg_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/th.js var error52 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" }, file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" }, array: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" }, set: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" }, map: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19", email: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25", url: "URL", emoji: "\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO", date: "\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO", time: "\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO", duration: "\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO", ipv4: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4", ipv6: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6", mac: "\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 MAC", cidrv4: "\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4", cidrv6: "\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6", base64: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64", base64url: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL", json_string: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON", e164: "\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)", credit_card: "\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02\u0E1A\u0E31\u0E15\u0E23\u0E40\u0E04\u0E23\u0E14\u0E34\u0E15", currency_code: "\u0E23\u0E2B\u0E31\u0E2A\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19", iban: "IBAN", jwt: "\u0E42\u0E17\u0E40\u0E04\u0E19 JWT", template_literal: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19" }; const TypeDictionary = { nan: "NaN", number: "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02", array: "\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)", null: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${issue2.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${received}`; } return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${stringifyPrimitive(issue2.values[0])}`; return `\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19" : "\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32"; const sizing = getSizing(issue2.origin); if (sizing) return `\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${issue2.origin ?? "\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`; return `\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${issue2.origin ?? "\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${adj} ${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? "\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22" : "\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${issue2.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${adj} ${issue2.minimum.toString()} ${sizing.unit}`; } return `\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${issue2.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${adj} ${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${_issue.prefix}"`; } if (_issue.format === "ends_with") return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${_issue.suffix}"`; if (_issue.format === "includes") return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${_issue.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`; if (_issue.format === "regex") return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${_issue.pattern}`; return `\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${issue2.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`; case "unrecognized_keys": return `\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${issue2.origin}`; case "invalid_union": return "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49"; case "invalid_element": return `\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${issue2.origin}`; default: return `\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07`; } }; }, "error"); function th_default() { return { localeError: error52() }; } __name(th_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/tk.js var error53 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "simwol", verb: "bolmaly" }, file: { unit: "ba\xFDt", verb: "bolmaly" }, array: { unit: "elementler", verb: "bolmaly" }, set: { unit: "elementler", verb: "bolmaly" }, map: { unit: "elementler", verb: "bolmaly" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "giri\u015F", email: "e-po\xE7ta salgysy", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO sene we wagt", date: "ISO sene", time: "ISO wagt", duration: "ISO wagt aralygy", ipv4: "IPv4 salgysy", ipv6: "IPv6 salgysy", mac: "MAC salgysy", cidrv4: "IPv4 aralygy", cidrv6: "IPv6 aralygy", base64: "base64 bilen \u015Fifrlenen setir", base64url: "base64url bilen \u015Fifrlenen setir", json_string: "JSON setiri", e164: "E.164 nomeri", credit_card: "kredit kartyny\u0148 nomeri", currency_code: "wal\xFDuta kody", iban: "IBAN", jwt: "JWT", template_literal: "\u015Fablon" }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; return `N\xE4dogry baha: gara\u015Fylan ${expected} \xFDerine ${received} alyndy`; } case "invalid_value": if (issue2.values.length === 1) return `N\xE4dogry baha: ${stringifyPrimitive(issue2.values[0])} bolmaly`; return `N\xE4dogry sa\xFDlaw: a\u015Fakdakylardan biri bolmaly: ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Has uly: gara\u015Fyl\xFDan ${issue2.origin ?? "baha"} ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "element"}`; return `Has uly: gara\u015Fyl\xFDan ${issue2.origin ?? "baha"} ${adj} ${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) return `Has ki\xE7i: gara\u015Fyl\xFDan ${issue2.origin} ${adj} ${issue2.minimum.toString()} ${sizing.unit}`; return `Has ki\xE7i: gara\u015Fyl\xFDan ${issue2.origin} ${adj} ${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `N\xE4dogry setir: "${_issue.prefix}" bilen ba\u015Flamaly`; if (_issue.format === "ends_with") return `N\xE4dogry setir: "${_issue.suffix}" bilen gutarmaly`; if (_issue.format === "includes") return `N\xE4dogry setir: "${_issue.includes}" saklamaly`; if (_issue.format === "regex") return `N\xE4dogry setir: ${_issue.pattern} nusga la\xFDyk bolmaly`; return `N\xE4dogry ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `N\xE4dogry san: ${issue2.divisor} bilen galyndysyz b\xF6l\xFCnmeli`; case "unrecognized_keys": return `Tanalma\xFDan a\xE7ar${issue2.keys.length > 1 ? "lar" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `${issue2.origin} i\xE7inde n\xE4dogry a\xE7ar`; case "invalid_union": return "N\xE4dogry baha"; case "invalid_element": return `${issue2.origin} i\xE7inde n\xE4dogry baha`; default: return `N\xE4dogry baha`; } }; }, "error"); function tk_default() { return { localeError: error53() }; } __name(tk_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/tr.js var error54 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "karakter", verb: "olmal\u0131" }, file: { unit: "bayt", verb: "olmal\u0131" }, array: { unit: "\xF6\u011Fe", verb: "olmal\u0131" }, set: { unit: "\xF6\u011Fe", verb: "olmal\u0131" }, map: { unit: "\xF6\u011Fe", verb: "olmal\u0131" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "girdi", email: "e-posta adresi", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO tarih ve saat", date: "ISO tarih", time: "ISO saat", duration: "ISO s\xFCre", ipv4: "IPv4 adresi", ipv6: "IPv6 adresi", mac: "MAC adresi", cidrv4: "IPv4 aral\u0131\u011F\u0131", cidrv6: "IPv6 aral\u0131\u011F\u0131", base64: "base64 ile \u015Fifrelenmi\u015F metin", base64url: "base64url ile \u015Fifrelenmi\u015F metin", json_string: "JSON dizesi", e164: "E.164 say\u0131s\u0131", credit_card: "kredi kart\u0131 numaras\u0131", currency_code: "para birimi kodu", iban: "IBAN", jwt: "JWT", template_literal: "\u015Eablon dizesi" }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Ge\xE7ersiz de\u011Fer: beklenen instanceof ${issue2.expected}, al\u0131nan ${received}`; } return `Ge\xE7ersiz de\u011Fer: beklenen ${expected}, al\u0131nan ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Ge\xE7ersiz de\u011Fer: beklenen ${stringifyPrimitive(issue2.values[0])}`; return `Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\xC7ok b\xFCy\xFCk: beklenen ${issue2.origin ?? "de\u011Fer"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xF6\u011Fe"}`; return `\xC7ok b\xFCy\xFCk: beklenen ${issue2.origin ?? "de\u011Fer"} ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) return `\xC7ok k\xFC\xE7\xFCk: beklenen ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`; return `\xC7ok k\xFC\xE7\xFCk: beklenen ${issue2.origin} ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Ge\xE7ersiz metin: "${_issue.prefix}" ile ba\u015Flamal\u0131`; if (_issue.format === "ends_with") return `Ge\xE7ersiz metin: "${_issue.suffix}" ile bitmeli`; if (_issue.format === "includes") return `Ge\xE7ersiz metin: "${_issue.includes}" i\xE7ermeli`; if (_issue.format === "regex") return `Ge\xE7ersiz metin: ${_issue.pattern} desenine uymal\u0131`; return `Ge\xE7ersiz ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Ge\xE7ersiz say\u0131: ${issue2.divisor} ile tam b\xF6l\xFCnebilmeli`; case "unrecognized_keys": return `Tan\u0131nmayan anahtar${issue2.keys.length > 1 ? "lar" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `${issue2.origin} i\xE7inde ge\xE7ersiz anahtar`; case "invalid_union": return "Ge\xE7ersiz de\u011Fer"; case "invalid_element": return `${issue2.origin} i\xE7inde ge\xE7ersiz de\u011Fer`; default: return `Ge\xE7ersiz de\u011Fer`; } }; }, "error"); function tr_default() { return { localeError: error54() }; } __name(tr_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/uk.js var error55 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" }, file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" }, array: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" }, set: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" }, map: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456", email: "\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438", url: "URL", emoji: "\u0435\u043C\u043E\u0434\u0437\u0456", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO", date: "\u0434\u0430\u0442\u0430 ISO", time: "\u0447\u0430\u0441 ISO", duration: "\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO", ipv4: "\u0430\u0434\u0440\u0435\u0441\u0430 IPv4", ipv6: "\u0430\u0434\u0440\u0435\u0441\u0430 IPv6", mac: "\u0430\u0434\u0440\u0435\u0441\u0430 MAC", cidrv4: "\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4", cidrv6: "\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6", base64: "\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64", base64url: "\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url", json_string: "\u0440\u044F\u0434\u043E\u043A JSON", e164: "\u043D\u043E\u043C\u0435\u0440 E.164", credit_card: "\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0457 \u043A\u0430\u0440\u0442\u043A\u0438", currency_code: "\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u0438", iban: "IBAN", jwt: "JWT", template_literal: "\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456" }; const TypeDictionary = { nan: "NaN", number: "\u0447\u0438\u0441\u043B\u043E", array: "\u043C\u0430\u0441\u0438\u0432" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${issue2.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${received}`; } return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${stringifyPrimitive(issue2.values[0])}`; return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${issue2.origin ?? "\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`; return `\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${issue2.origin ?? "\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${issue2.origin} \u0431\u0443\u0434\u0435 ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${_issue.prefix}"`; if (_issue.format === "ends_with") return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${_issue.suffix}"`; if (_issue.format === "includes") return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${_issue.includes}"`; if (_issue.format === "regex") return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${_issue.pattern}`; return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${issue2.divisor}`; case "unrecognized_keys": return `\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${issue2.keys.length > 1 ? "\u0456" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${issue2.origin}`; case "invalid_union": return "\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"; case "invalid_element": return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${issue2.origin}`; default: return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456`; } }; }, "error"); function uk_default() { return { localeError: error55() }; } __name(uk_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ua.js function ua_default() { return uk_default(); } __name(ua_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ur.js var error56 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" }, file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" }, array: { unit: "\u0622\u0626\u0679\u0645\u0632", verb: "\u06C1\u0648\u0646\u0627" }, set: { unit: "\u0622\u0626\u0679\u0645\u0632", verb: "\u06C1\u0648\u0646\u0627" }, map: { unit: "\u0622\u0626\u0679\u0645\u0632", verb: "\u06C1\u0648\u0646\u0627" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0627\u0646 \u067E\u0679", email: "\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633", url: "\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644", emoji: "\u0627\u06CC\u0645\u0648\u062C\u06CC", uuid: "\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC", uuidv4: "\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4", uuidv6: "\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6", nanoid: "\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC", guid: "\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC", cuid: "\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC", cuid2: "\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2", ulid: "\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC", xid: "\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC", ksuid: "\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC", datetime: "\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645", date: "\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E", time: "\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A", duration: "\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A", ipv4: "\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633", ipv6: "\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633", mac: "\u0627\u06CC\u0645 \u0627\u06D2 \u0633\u06CC \u0627\u06CC\u0688\u0631\u06CC\u0633", cidrv4: "\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C", cidrv6: "\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C", base64: "\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF", base64url: "\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF", json_string: "\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF", e164: "\u0627\u06CC 164 \u0646\u0645\u0628\u0631", credit_card: "\u06A9\u0631\u06CC\u0688\u0679 \u06A9\u0627\u0631\u0688 \u0646\u0645\u0628\u0631", currency_code: "\u06A9\u0631\u0646\u0633\u06CC \u06A9\u0648\u0688", iban: "IBAN", jwt: "\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC", template_literal: "\u0627\u0646 \u067E\u0679" }; const TypeDictionary = { nan: "NaN", number: "\u0646\u0645\u0628\u0631", array: "\u0622\u0631\u06D2", null: "\u0646\u0644" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${issue2.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${received} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`; } return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${received} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`; } case "invalid_value": if (issue2.values.length === 1) return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${stringifyPrimitive(issue2.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`; return `\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${joinValues(issue2.values, "|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\u0628\u06C1\u062A \u0628\u0691\u0627: ${issue2.origin ?? "\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`; return `\u0628\u06C1\u062A \u0628\u0691\u0627: ${issue2.origin ?? "\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${adj}${issue2.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${issue2.origin} \u06A9\u06D2 ${adj}${issue2.minimum.toString()} ${sizing.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`; } return `\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${issue2.origin} \u06A9\u0627 ${adj}${issue2.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${_issue.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`; } if (_issue.format === "ends_with") return `\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${_issue.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`; if (_issue.format === "includes") return `\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${_issue.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`; if (_issue.format === "regex") return `\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${_issue.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`; return `\u063A\u0644\u0637 ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${issue2.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`; case "unrecognized_keys": return `\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${issue2.keys.length > 1 ? "\u0632" : ""}: ${joinValues(issue2.keys, "\u060C ")}`; case "invalid_key": return `${issue2.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`; case "invalid_union": return "\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"; case "invalid_element": return `${issue2.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`; default: return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679`; } }; }, "error"); function ur_default() { return { localeError: error56() }; } __name(ur_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/uz.js var error57 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "belgi", verb: "bo\u2018lishi kerak" }, file: { unit: "bayt", verb: "bo\u2018lishi kerak" }, array: { unit: "element", verb: "bo\u2018lishi kerak" }, set: { unit: "element", verb: "bo\u2018lishi kerak" }, map: { unit: "yozuv", verb: "bo\u2018lishi kerak" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "kirish", email: "elektron pochta manzili", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO sana va vaqti", date: "ISO sana", time: "ISO vaqt", duration: "ISO davomiylik", ipv4: "IPv4 manzil", ipv6: "IPv6 manzil", mac: "MAC manzil", cidrv4: "IPv4 diapazon", cidrv6: "IPv6 diapazon", base64: "base64 kodlangan satr", base64url: "base64url kodlangan satr", json_string: "JSON satr", e164: "E.164 raqam", credit_card: "kredit karta raqami", currency_code: "valyuta kodi", iban: "IBAN", jwt: "JWT", template_literal: "kirish" }; const TypeDictionary = { nan: "NaN", number: "raqam", array: "massiv" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `Noto\u2018g\u2018ri kirish: kutilgan instanceof ${issue2.expected}, qabul qilingan ${received}`; } return `Noto\u2018g\u2018ri kirish: kutilgan ${expected}, qabul qilingan ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `Noto\u2018g\u2018ri kirish: kutilgan ${stringifyPrimitive(issue2.values[0])}`; return `Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Juda katta: kutilgan ${issue2.origin ?? "qiymat"} ${adj}${issue2.maximum.toString()} ${sizing.unit} ${sizing.verb}`; return `Juda katta: kutilgan ${issue2.origin ?? "qiymat"} ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Juda kichik: kutilgan ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} ${sizing.verb}`; } return `Juda kichik: kutilgan ${issue2.origin} ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Noto\u2018g\u2018ri satr: "${_issue.prefix}" bilan boshlanishi kerak`; if (_issue.format === "ends_with") return `Noto\u2018g\u2018ri satr: "${_issue.suffix}" bilan tugashi kerak`; if (_issue.format === "includes") return `Noto\u2018g\u2018ri satr: "${_issue.includes}" ni o\u2018z ichiga olishi kerak`; if (_issue.format === "regex") return `Noto\u2018g\u2018ri satr: ${_issue.pattern} shabloniga mos kelishi kerak`; return `Noto\u2018g\u2018ri ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `Noto\u2018g\u2018ri raqam: ${issue2.divisor} ning karralisi bo\u2018lishi kerak`; case "unrecognized_keys": return `Noma\u2019lum kalit${issue2.keys.length > 1 ? "lar" : ""}: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `${issue2.origin} dagi kalit noto\u2018g\u2018ri`; case "invalid_union": return "Noto\u2018g\u2018ri kirish"; case "invalid_element": return `${issue2.origin} da noto\u2018g\u2018ri qiymat`; default: return `Noto\u2018g\u2018ri kirish`; } }; }, "error"); function uz_default() { return { localeError: error57() }; } __name(uz_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/vi.js var error58 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" }, file: { unit: "byte", verb: "c\xF3" }, array: { unit: "ph\u1EA7n t\u1EED", verb: "c\xF3" }, set: { unit: "ph\u1EA7n t\u1EED", verb: "c\xF3" }, map: { unit: "ph\u1EA7n t\u1EED", verb: "c\xF3" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u0111\u1EA7u v\xE0o", email: "\u0111\u1ECBa ch\u1EC9 email", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ng\xE0y gi\u1EDD ISO", date: "ng\xE0y ISO", time: "gi\u1EDD ISO", duration: "kho\u1EA3ng th\u1EDDi gian ISO", ipv4: "\u0111\u1ECBa ch\u1EC9 IPv4", ipv6: "\u0111\u1ECBa ch\u1EC9 IPv6", mac: "\u0111\u1ECBa ch\u1EC9 MAC", cidrv4: "d\u1EA3i IPv4", cidrv6: "d\u1EA3i IPv6", base64: "chu\u1ED7i m\xE3 h\xF3a base64", base64url: "chu\u1ED7i m\xE3 h\xF3a base64url", json_string: "chu\u1ED7i JSON", e164: "s\u1ED1 E.164", credit_card: "s\u1ED1 th\u1EBB t\xEDn d\u1EE5ng", currency_code: "m\xE3 ti\u1EC1n t\u1EC7", iban: "IBAN", jwt: "JWT", template_literal: "\u0111\u1EA7u v\xE0o" }; const TypeDictionary = { nan: "NaN", number: "s\u1ED1", array: "m\u1EA3ng" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${issue2.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${received}`; } return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${stringifyPrimitive(issue2.values[0])}`; return `T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${issue2.origin ?? "gi\xE1 tr\u1ECB"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "ph\u1EA7n t\u1EED"}`; return `Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${issue2.origin ?? "gi\xE1 tr\u1ECB"} ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${issue2.origin} ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${_issue.prefix}"`; if (_issue.format === "ends_with") return `Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${_issue.suffix}"`; if (_issue.format === "includes") return `Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${_issue.includes}"`; if (_issue.format === "regex") return `Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${_issue.pattern}`; return `${FormatDictionary[_issue.format] ?? issue2.format} kh\xF4ng h\u1EE3p l\u1EC7`; } case "not_multiple_of": return `S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${issue2.divisor}`; case "unrecognized_keys": return `Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${issue2.origin}`; case "invalid_union": return "\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"; case "invalid_element": return `Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${issue2.origin}`; default: return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7`; } }; }, "error"); function vi_default() { return { localeError: error58() }; } __name(vi_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/zh-CN.js var error59 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" }, file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" }, array: { unit: "\u9879", verb: "\u5305\u542B" }, set: { unit: "\u9879", verb: "\u5305\u542B" }, map: { unit: "\u9879", verb: "\u5305\u542B" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u8F93\u5165", email: "\u7535\u5B50\u90AE\u4EF6", url: "URL", emoji: "\u8868\u60C5\u7B26\u53F7", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO\u65E5\u671F\u65F6\u95F4", date: "ISO\u65E5\u671F", time: "ISO\u65F6\u95F4", duration: "ISO\u65F6\u957F", ipv4: "IPv4\u5730\u5740", ipv6: "IPv6\u5730\u5740", mac: "MAC\u5730\u5740", cidrv4: "IPv4\u7F51\u6BB5", cidrv6: "IPv6\u7F51\u6BB5", base64: "base64\u7F16\u7801\u5B57\u7B26\u4E32", base64url: "base64url\u7F16\u7801\u5B57\u7B26\u4E32", json_string: "JSON\u5B57\u7B26\u4E32", e164: "E.164\u53F7\u7801", credit_card: "\u4FE1\u7528\u5361\u53F7", currency_code: "\u8D27\u5E01\u4EE3\u7801", iban: "IBAN", jwt: "JWT", template_literal: "\u8F93\u5165" }; const TypeDictionary = { nan: "NaN", number: "\u6570\u5B57", array: "\u6570\u7EC4", null: "\u7A7A\u503C(null)" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${issue2.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${received}`; } return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${stringifyPrimitive(issue2.values[0])}`; return `\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${issue2.origin ?? "\u503C"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u4E2A\u5143\u7D20"}`; return `\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${issue2.origin ?? "\u503C"} ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${issue2.origin} ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${_issue.prefix}" \u5F00\u5934`; if (_issue.format === "ends_with") return `\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${_issue.suffix}" \u7ED3\u5C3E`; if (_issue.format === "includes") return `\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${_issue.includes}"`; if (_issue.format === "regex") return `\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${_issue.pattern}`; return `\u65E0\u6548${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${issue2.divisor} \u7684\u500D\u6570`; case "unrecognized_keys": return `\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `${issue2.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`; case "invalid_union": return "\u65E0\u6548\u8F93\u5165"; case "invalid_element": return `${issue2.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`; default: return `\u65E0\u6548\u8F93\u5165`; } }; }, "error"); function zh_CN_default() { return { localeError: error59() }; } __name(zh_CN_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/zh-TW.js var error60 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" }, file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" }, array: { unit: "\u9805\u76EE", verb: "\u64C1\u6709" }, set: { unit: "\u9805\u76EE", verb: "\u64C1\u6709" }, map: { unit: "\u9805\u76EE", verb: "\u64C1\u6709" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u8F38\u5165", email: "\u90F5\u4EF6\u5730\u5740", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "ISO \u65E5\u671F\u6642\u9593", date: "ISO \u65E5\u671F", time: "ISO \u6642\u9593", duration: "ISO \u671F\u9593", ipv4: "IPv4 \u4F4D\u5740", ipv6: "IPv6 \u4F4D\u5740", mac: "MAC \u4F4D\u5740", cidrv4: "IPv4 \u7BC4\u570D", cidrv6: "IPv6 \u7BC4\u570D", base64: "base64 \u7DE8\u78BC\u5B57\u4E32", base64url: "base64url \u7DE8\u78BC\u5B57\u4E32", json_string: "JSON \u5B57\u4E32", e164: "E.164 \u6578\u503C", credit_card: "\u4FE1\u7528\u5361\u865F", currency_code: "\u8CA8\u5E63\u4EE3\u78BC", iban: "IBAN", jwt: "JWT", template_literal: "\u8F38\u5165" }; const TypeDictionary = { nan: "NaN" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${issue2.expected}\uFF0C\u4F46\u6536\u5230 ${received}`; } return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${expected}\uFF0C\u4F46\u6536\u5230 ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${stringifyPrimitive(issue2.values[0])}`; return `\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${issue2.origin ?? "\u503C"} \u61C9\u70BA ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u500B\u5143\u7D20"}`; return `\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${issue2.origin ?? "\u503C"} \u61C9\u70BA ${adj}${issue2.maximum.toString()}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) { return `\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${issue2.origin} \u61C9\u70BA ${adj}${issue2.minimum.toString()} ${sizing.unit}`; } return `\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${issue2.origin} \u61C9\u70BA ${adj}${issue2.minimum.toString()}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") { return `\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${_issue.prefix}" \u958B\u982D`; } if (_issue.format === "ends_with") return `\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${_issue.suffix}" \u7D50\u5C3E`; if (_issue.format === "includes") return `\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${_issue.includes}"`; if (_issue.format === "regex") return `\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${_issue.pattern}`; return `\u7121\u6548\u7684 ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${issue2.divisor} \u7684\u500D\u6578`; case "unrecognized_keys": return `\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${issue2.keys.length > 1 ? "\u5011" : ""}\uFF1A${joinValues(issue2.keys, "\u3001")}`; case "invalid_key": return `${issue2.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`; case "invalid_union": return "\u7121\u6548\u7684\u8F38\u5165\u503C"; case "invalid_element": return `${issue2.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`; default: return `\u7121\u6548\u7684\u8F38\u5165\u503C`; } }; }, "error"); function zh_TW_default() { return { localeError: error60() }; } __name(zh_TW_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/yo.js var error61 = /* @__PURE__ */ __name(() => { const Sizable = { string: { unit: "\xE0mi", verb: "n\xED" }, file: { unit: "bytes", verb: "n\xED" }, array: { unit: "nkan", verb: "n\xED" }, set: { unit: "nkan", verb: "n\xED" }, map: { unit: "nkan", verb: "n\xED" } }; function getSizing(origin) { return Sizable[origin] ?? null; } __name(getSizing, "getSizing"); const FormatDictionary = { regex: "\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9", email: "\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC", url: "URL", emoji: "emoji", uuid: "UUID", uuidv4: "UUIDv4", uuidv6: "UUIDv6", nanoid: "nanoid", guid: "GUID", cuid: "cuid", cuid2: "cuid2", ulid: "ULID", xid: "XID", ksuid: "KSUID", datetime: "\xE0k\xF3k\xF2 ISO", date: "\u1ECDj\u1ECD\u0301 ISO", time: "\xE0k\xF3k\xF2 ISO", duration: "\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO", ipv4: "\xE0d\xEDr\u1EB9\u0301s\xEC IPv4", ipv6: "\xE0d\xEDr\u1EB9\u0301s\xEC IPv6", mac: "\xE0d\xEDr\u1EB9\u0301s\xEC MAC", cidrv4: "\xE0gb\xE8gb\xE8 IPv4", cidrv6: "\xE0gb\xE8gb\xE8 IPv6", base64: "\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64", base64url: "\u1ECD\u0300r\u1ECD\u0300 base64url", json_string: "\u1ECD\u0300r\u1ECD\u0300 JSON", e164: "n\u1ECD\u0301mb\xE0 E.164", credit_card: "n\u1ECDmba kaadi gbese", currency_code: "koodu ow\xF3", iban: "IBAN", jwt: "JWT", template_literal: "\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9" }; const TypeDictionary = { nan: "NaN", number: "n\u1ECD\u0301mb\xE0", array: "akop\u1ECD" }; return (issue2) => { switch (issue2.code) { case "invalid_type": { const expected = TypeDictionary[issue2.expected] ?? issue2.expected; const receivedType = parsedType(issue2.input); const received = TypeDictionary[receivedType] ?? receivedType; if (/^[A-Z]/.test(issue2.expected)) { return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${issue2.expected}, \xE0m\u1ECD\u0300 a r\xED ${received}`; } return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${expected}, \xE0m\u1ECD\u0300 a r\xED ${received}`; } case "invalid_value": if (issue2.values.length === 1) return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${stringifyPrimitive(issue2.values[0])}`; return `\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${joinValues(issue2.values, "|")}`; case "too_big": { const adj = issue2.inclusive ? "<=" : "<"; const sizing = getSizing(issue2.origin); if (sizing) return `T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${issue2.origin ?? "iye"} ${sizing.verb} ${adj}${issue2.maximum} ${sizing.unit}`; return `T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${adj}${issue2.maximum}`; } case "too_small": { const adj = issue2.inclusive ? ">=" : ">"; const sizing = getSizing(issue2.origin); if (sizing) return `K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum} ${sizing.unit}`; return `K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${adj}${issue2.minimum}`; } case "invalid_format": { const _issue = issue2; if (_issue.format === "starts_with") return `\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${_issue.prefix}"`; if (_issue.format === "ends_with") return `\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${_issue.suffix}"`; if (_issue.format === "includes") return `\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${_issue.includes}"`; if (_issue.format === "regex") return `\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${_issue.pattern}`; return `A\u1E63\xEC\u1E63e: ${FormatDictionary[_issue.format] ?? issue2.format}`; } case "not_multiple_of": return `N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${issue2.divisor}`; case "unrecognized_keys": return `B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${joinValues(issue2.keys, ", ")}`; case "invalid_key": return `B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${issue2.origin}`; case "invalid_union": return "\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"; case "invalid_element": return `Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${issue2.origin}`; default: return "\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"; } }; }, "error"); function yo_default() { return { localeError: error61() }; } __name(yo_default, "default"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/registries.js var _a2; var $output = /* @__PURE__ */ Symbol("ZodOutput"); var $input = /* @__PURE__ */ Symbol("ZodInput"); var $ZodRegistry = class { static { __name(this, "$ZodRegistry"); } constructor() { this._map = /* @__PURE__ */ new WeakMap(); this._idmap = /* @__PURE__ */ new Map(); } add(schema2, ..._meta) { const meta3 = _meta[0]; this._map.set(schema2, meta3); if (meta3 && typeof meta3 === "object" && "id" in meta3) { this._idmap.set(meta3.id, schema2); } return this; } clear() { this._map = /* @__PURE__ */ new WeakMap(); this._idmap = /* @__PURE__ */ new Map(); return this; } remove(schema2) { const meta3 = this._map.get(schema2); if (meta3 && typeof meta3 === "object" && "id" in meta3) { this._idmap.delete(meta3.id); } this._map.delete(schema2); return this; } get(schema2) { const p3 = schema2._zod.parent; if (p3) { const pm = { ...this.get(p3) ?? {} }; delete pm.id; const f5 = { ...pm, ...this._map.get(schema2) }; return Object.keys(f5).length ? f5 : void 0; } return this._map.get(schema2); } has(schema2) { return this._map.has(schema2); } }; function registry() { return new $ZodRegistry(); } __name(registry, "registry"); (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry()); var globalRegistry = globalThis.__zod_globalRegistry; // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/compile.js var INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid"); var FALLBACK_FLAG = /* @__PURE__ */ Symbol.for("zod.compile.fallback"); var ZodCompileAsyncError = class extends Error { static { __name(this, "ZodCompileAsyncError"); } constructor(message = "z.compile does not support async refinements, transforms, or checks") { super(message); this.name = "ZodCompileAsyncError"; } }; var ZodCompileUnsupportedError = class extends Error { static { __name(this, "ZodCompileUnsupportedError"); } constructor(feature, islandable = true) { super(`z.compile does not support ${feature}; this schema must use the runtime parser`); this.name = "ZodCompileUnsupportedError"; this.islandable = islandable; } }; function compileValidator(schema2, parser) { try { return compileFn(schema2, { assertOnly: true }); } catch { return parser; } } __name(compileValidator, "compileValidator"); function compile(schema2, options) { try { const parser = compileFn(schema2); const clone2 = withParser(schema2, parser); clone2._zod.bag.validator = compileValidator(schema2, parser); return clone2; } catch (err) { if (options?.strict) throw err; return schema2; } } __name(compile, "compile"); function withParser(schema2, parser) { if (isRecursiveSchema(schema2)) { throw new ZodCompileUnsupportedError("a schema whose subtree contains a reference cycle"); } const clone2 = clone(schema2); const liveRun = schema2._zod.run; const originalRun = liveRun.__originalRun ?? liveRun; const wrapped = /* @__PURE__ */ __name((payload, ctx) => { if (ctx?.async || ctx?.direction === "backward" || ctx?.skipChecks || ctx?.[FALLBACK_FLAG]) { return originalRun(payload, ctx); } if (ctx && isBackEdge(ctx, payload.value)) { return originalRun(payload, ctx); } const out = parser(payload.value); if (out !== INVALID) { payload.value = out; return payload; } if (ctx) ctx[FALLBACK_FLAG] = true; return originalRun(payload, ctx); }, "wrapped"); wrapped.__originalRun = originalRun; clone2._zod.bag.fallbackRun = originalRun; clone2._zod.bag.validator = parser; clone2._zod.run = wrapped; if (!liveRun.__originalRun) installCompiledUserMethods(clone2, schema2, parser); return clone2; } __name(withParser, "withParser"); function installCompiledUserMethods(target, source, parser) { const targetAny = target; const sourceAny = source; if (typeof sourceAny.safeParse === "function") { const originalSafeParse = sourceAny.safeParse; targetAny.safeParse = (data, params) => { const out = parser(data); if (out !== INVALID) { return { success: true, data: out }; } return originalSafeParse(data, params); }; } if (typeof sourceAny.parse === "function") { const originalParse = sourceAny.parse; targetAny.parse = (data, params) => { const out = parser(data); if (out !== INVALID) { return out; } return originalParse(data, params); }; } } __name(installCompiledUserMethods, "installCompiledUserMethods"); function compileFn(schema2, options) { let recursive2 = true; try { recursive2 = isRecursiveSchema(schema2); } catch { } if (recursive2) { throw new ZodCompileUnsupportedError("a schema whose subtree contains a reference cycle"); } const ctx = { constants: /* @__PURE__ */ new Map(), constantCounter: 0, varCounter: 0, definite: true }; const doc = new Doc(["input"]); const outputAccessor = generateCheck(doc, ctx, schema2, "input", !options?.assertOnly); doc.write(outputAccessor === null ? `return true;` : `return ${outputAccessor};`); const constantNames = ["INVALID", ...ctx.constants.keys()]; const constantValues = [INVALID, ...ctx.constants.values()]; const code = doc.content.join("\n"); const fullCode = options?.debug ? constantNames.length > 0 ? `// Constants: ${constantNames.join(", ")} ${code}` : code : ""; const F = Function; const factoryCode = `return (input) => { ${code} }`; let fn; try { const factory = new F(...constantNames, factoryCode); fn = factory(...constantValues); } catch (err) { throw new ZodCompileUnsupportedError(`this schema (generated code failed to evaluate: ${err.message})`); } if (options?.debug) { fn.code = fullCode; } fn.definite = ctx.definite; return fn; } __name(compileFn, "compileFn"); function addConstant(ctx, value) { for (const [name3, v] of ctx.constants) { if (v === value) return name3; } const name2 = `c${ctx.constantCounter++}`; ctx.constants.set(name2, value); return name2; } __name(addConstant, "addConstant"); function addUserConstant(ctx, fn) { ctx.definite = false; return addConstant(ctx, fn); } __name(addUserConstant, "addUserConstant"); function newVar(ctx) { return `v${ctx.varCounter++}`; } __name(newVar, "newVar"); function runtimeRun(schema2, value) { const result = schema2._zod.run({ value, issues: [] }, {}); if (result && typeof result.then === "function") return INVALID; const r5 = result; return r5.issues.length === 0 ? r5.value : INVALID; } __name(runtimeRun, "runtimeRun"); function compileChild(doc, ctx, schema2, accessor, needsValue = true) { const contentLen = doc.content.length; const constantCount = ctx.constants.size; const constantCounter = ctx.constantCounter; const varCounter = ctx.varCounter; try { return generateCheck(doc, ctx, schema2, accessor, needsValue); } catch (err) { if (!(err instanceof ZodCompileUnsupportedError) || !err.islandable) throw err; doc.content.length = contentLen; if (ctx.constants.size > constantCount) { const trailing = Array.from(ctx.constants.keys()).slice(constantCount); for (const k5 of trailing) ctx.constants.delete(k5); } ctx.constantCounter = constantCounter; ctx.varCounter = varCounter; return emitRuntimeIsland(doc, ctx, schema2, accessor); } } __name(compileChild, "compileChild"); function emitRuntimeIsland(doc, ctx, schema2, accessor) { ctx.definite = false; const schemaConst = addConstant(ctx, schema2); const runConst = addConstant(ctx, runtimeRun); const outVar = newVar(ctx); doc.write(`const ${outVar} = ${runConst}(${schemaConst}, ${accessor});`); doc.write(`if (${outVar} === INVALID) return INVALID;`); return outVar; } __name(emitRuntimeIsland, "emitRuntimeIsland"); var WHEN_DEFAULTED_CHECKS = /* @__PURE__ */ new Set([ "max_size", "min_size", "size_equals", "max_length", "min_length", "length_equals" ]); function generateChecks(doc, ctx, schema2, accessor) { const schemaChecks = schema2._zod.def.checks; if (!schemaChecks || schemaChecks.length === 0) return accessor; let currentAccessor = accessor; for (const check2 of schemaChecks) { const def = check2._zod.def; if (def.when && !WHEN_DEFAULTED_CHECKS.has(def.check)) { throw new ZodCompileUnsupportedError(`check with a custom "when" condition`); } switch (def.check) { case "greater_than": generateGreaterThanCheck(doc, ctx, def, currentAccessor); break; case "less_than": generateLessThanCheck(doc, ctx, def, currentAccessor); break; case "multiple_of": generateMultipleOfCheck(doc, ctx, def, currentAccessor); break; case "number_format": generateNumberFormatCheck(doc, def, currentAccessor); break; case "min_length": { const min = numericOperand(def.minimum, "min_length"); const len = codePointLengthVar(doc, ctx, currentAccessor, `${currentAccessor}.length >= ${min} && ${currentAccessor}.length < ${def.minimum * 2}`); doc.write(`if (${len} < ${min}) return INVALID;`); break; } case "max_length": { const max = numericOperand(def.maximum, "max_length"); const len = codePointLengthVar(doc, ctx, currentAccessor, `${currentAccessor}.length > ${max}`); doc.write(`if (${len} > ${max}) return INVALID;`); break; } case "length_equals": { const exact = numericOperand(def.length, "length_equals"); const len = codePointLengthVar(doc, ctx, currentAccessor, `${currentAccessor}.length >= ${exact} && ${currentAccessor}.length <= ${def.length * 2}`); doc.write(`if (${len} !== ${exact}) return INVALID;`); break; } case "min_size": doc.write(`if (${currentAccessor}.size < ${numericOperand(def.minimum, "min_size")}) return INVALID;`); break; case "max_size": doc.write(`if (${currentAccessor}.size > ${numericOperand(def.maximum, "max_size")}) return INVALID;`); break; case "size_equals": doc.write(`if (${currentAccessor}.size !== ${numericOperand(def.size, "size_equals")}) return INVALID;`); break; case "string_format": currentAccessor = generateStringFormatCheck(doc, ctx, def, currentAccessor); break; case "custom": currentAccessor = generateCustomRefineCheck(doc, ctx, check2, currentAccessor); break; case "bigint_format": generateBigIntFormatCheck(doc, def, currentAccessor); break; case "mime_type": generateMimeTypeCheck(doc, ctx, def, currentAccessor); break; case "property": generatePropertyCheck(doc, ctx, def, currentAccessor); break; case "properties": generatePropertiesChecks(doc, ctx, def, currentAccessor); break; case "overwrite": { const newAccessor = newVar(ctx); generateOverwriteCheck(doc, ctx, check2, currentAccessor, newAccessor); currentAccessor = newAccessor; break; } default: { void def; throw new ZodCompileUnsupportedError(`check type ${def.check}`); } } } return currentAccessor; } __name(generateChecks, "generateChecks"); function codePointLengthVar(doc, ctx, accessor, inDoubt) { const cpLen = addConstant(ctx, codePointLength); const v = newVar(ctx); doc.write(`const ${v} = typeof ${accessor} === "string" && ${inDoubt} ? ${cpLen}(${accessor}) : ${accessor}.length;`); return v; } __name(codePointLengthVar, "codePointLengthVar"); function numericOperand(value, label) { if (typeof value !== "number" || !Number.isFinite(value)) { throw new ZodCompileUnsupportedError(`${label} bound of type ${typeof value}`); } return `${value}`; } __name(numericOperand, "numericOperand"); function comparisonOperand(ctx, value) { if (typeof value === "bigint") return `${value}n`; if (typeof value === "number") { if (Number.isNaN(value)) throw new ZodCompileUnsupportedError("comparison check with NaN bound"); return `${value}`; } if (value instanceof Date) { if (Number.isNaN(value.getTime())) { throw new ZodCompileUnsupportedError("comparison check with Invalid Date bound"); } return addConstant(ctx, value); } throw new ZodCompileUnsupportedError(`comparison check bound of type ${typeof value}`); } __name(comparisonOperand, "comparisonOperand"); function generateGreaterThanCheck(doc, ctx, def, accessor) { const op = def.inclusive ? "<" : "<="; doc.write(`if (${accessor} ${op} ${comparisonOperand(ctx, def.value)}) return INVALID;`); } __name(generateGreaterThanCheck, "generateGreaterThanCheck"); function generateLessThanCheck(doc, ctx, def, accessor) { const op = def.inclusive ? ">" : ">="; doc.write(`if (${accessor} ${op} ${comparisonOperand(ctx, def.value)}) return INVALID;`); } __name(generateLessThanCheck, "generateLessThanCheck"); function generateMultipleOfCheck(doc, ctx, def, accessor) { if (typeof def.value === "bigint") { if (def.value === BigInt(0)) throw new ZodCompileUnsupportedError("multiple_of check with a zero divisor"); doc.write(`if (${accessor} % ${def.value}n !== 0n) return INVALID;`); } else { const remainder = addConstant(ctx, floatSafeRemainder); doc.write(`if (${remainder}(${accessor}, ${numericOperand(def.value, "multiple_of")}) !== 0) return INVALID;`); } } __name(generateMultipleOfCheck, "generateMultipleOfCheck"); function generateNumberFormatCheck(doc, def, accessor) { const format = def.format; switch (format) { case "safeint": doc.write(`if (!Number.isSafeInteger(${accessor})) return INVALID;`); break; case "int32": doc.write(`if (!Number.isInteger(${accessor}) || ${accessor} < -2147483648 || ${accessor} > 2147483647) return INVALID;`); break; case "uint32": doc.write(`if (!Number.isInteger(${accessor}) || ${accessor} < 0 || ${accessor} > 4294967295) return INVALID;`); break; case "float32": doc.write(`if (!Number.isFinite(${accessor}) || ${accessor} < -3.4028234663852886e38 || ${accessor} > 3.4028234663852886e38) return INVALID;`); break; case "float64": doc.write(`if (!Number.isFinite(${accessor})) return INVALID;`); break; default: { void format; throw new ZodCompileUnsupportedError(`number format ${format}`); } } } __name(generateNumberFormatCheck, "generateNumberFormatCheck"); function generateBigIntFormatCheck(doc, def, accessor) { const format = def.format; if (!format) return; switch (format) { case "int64": doc.write(`if (${accessor} < -9223372036854775808n || ${accessor} > 9223372036854775807n) return INVALID;`); break; case "uint64": doc.write(`if (${accessor} < 0n || ${accessor} > 18446744073709551615n) return INVALID;`); break; default: { void format; throw new ZodCompileUnsupportedError(`bigint format ${format}`); } } } __name(generateBigIntFormatCheck, "generateBigIntFormatCheck"); function generateMimeTypeCheck(doc, ctx, def, accessor) { const mimeTypes = def.mime; if (mimeTypes && mimeTypes.length > 0) { const mimeSet = addConstant(ctx, new Set(mimeTypes)); doc.write(`if (!${mimeSet}.has(${accessor}.type)) return INVALID;`); } } __name(generateMimeTypeCheck, "generateMimeTypeCheck"); function generatePropertiesChecks(doc, ctx, def, accessor) { if (def.when) { throw new ZodCompileUnsupportedError(`check with a custom "when" condition`); } doc.write(`if (${accessor} == null) return INVALID;`); const shape = def.shape; for (const key of Reflect.ownKeys(shape)) { const keyExpr = typeof key === "symbol" ? addConstant(ctx, key) : esc(key); const inputVar = newVar(ctx); doc.write(`const ${inputVar} = ${accessor}[${keyExpr}];`); compileChild(doc, ctx, shape[key], inputVar, false); } } __name(generatePropertiesChecks, "generatePropertiesChecks"); function generatePropertyCheck(doc, ctx, def, accessor) { const propAccessor = `${accessor}[${JSON.stringify(def.property)}]`; generateCheck(doc, ctx, def.schema, propAccessor); } __name(generatePropertyCheck, "generatePropertyCheck"); function generateOverwriteCheck(doc, ctx, check2, currentAccessor, newAccessor) { const tx = check2._zod.def.tx; if (!tx) { throw new ZodCompileUnsupportedError("overwrite check without a transform function"); } if (isAsyncFunction(tx)) { throw new ZodCompileAsyncError("z.compile: async overwrite transforms are not supported"); } const txConst = addConstant(ctx, tx); doc.write(`const ${newAccessor} = ${txConst}(${currentAccessor});`); } __name(generateOverwriteCheck, "generateOverwriteCheck"); function throwAsync() { throw new $ZodAsyncError(); } __name(throwAsync, "throwAsync"); function pushIssue(issue2) { this.issues.push(issue2); } __name(pushIssue, "pushIssue"); function generateCustomRefineCheck(doc, ctx, check2, accessor) { const def = check2._zod.def; if (def.fn) { if (isAsyncFunction(def.fn)) { throw new ZodCompileAsyncError("z.compile: async .refine() predicates are not supported"); } const fnConst = addUserConstant(ctx, def.fn); const throwAsyncConst = addConstant(ctx, throwAsync); const resVar = newVar(ctx); doc.write(`const ${resVar} = ${fnConst}(${accessor});`); doc.write(`if (${resVar} instanceof Promise) ${throwAsyncConst}();`); doc.write(`if (!${resVar}) return INVALID;`); return accessor; } if (check2._zod.check) { if (isAsyncFunction(check2._zod.check)) { throw new ZodCompileAsyncError("z.compile: async .superRefine() / check functions are not supported"); } const checkFn = check2._zod.check; const helperFn = /* @__PURE__ */ __name((value) => { const fakePayload = { value, issues: [], addIssue: pushIssue }; const result = checkFn(fakePayload); if (result instanceof Promise) throwAsync(); return fakePayload.issues.length === 0 ? fakePayload.value : INVALID; }, "helperFn"); const helperConst = addUserConstant(ctx, helperFn); const outVar = newVar(ctx); doc.write(`const ${outVar} = ${helperConst}(${accessor});`); doc.write(`if (${outVar} === INVALID) return INVALID;`); return outVar; } throw new ZodCompileUnsupportedError("custom check without a predicate or check function"); } __name(generateCustomRefineCheck, "generateCustomRefineCheck"); var PATTERN_IS_COMPLETE = /* @__PURE__ */ new Set([ "cidrv4", "cuid", "cuid2", "date", "datetime", "duration", "e164", "email", "emoji", "ends_with", "guid", "includes", "ipv4", "ksuid", "lowercase", "mac", "nanoid", "regex", "starts_with", "time", "ulid", "uppercase", "uuid", "xid" ]); function generateStringFormatCheck(doc, ctx, def, accessor, needsValue = true) { const fmt = def.format; if (fmt === "base64") { const validator = addConstant(ctx, isValidBase64); doc.write(`if (!${validator}(${accessor})) return INVALID;`); return accessor; } if (fmt === "base64url") { const validator = addConstant(ctx, isValidBase64URL); doc.write(`if (!${validator}(${accessor})) return INVALID;`); return accessor; } if (fmt === "jwt") { const validator = addConstant(ctx, isValidJWT); const alg = addConstant(ctx, def.alg ?? null); doc.write(`if (!${validator}(${accessor}, ${alg})) return INVALID;`); return accessor; } if (fmt === "ipv6") { const validator = addConstant(ctx, isValidIPv6); doc.write(`if (!${validator}(${accessor})) return INVALID;`); return accessor; } if (fmt === "cidrv6") { const validator = addConstant(ctx, isValidCIDRv6); doc.write(`if (!${validator}(${accessor})) return INVALID;`); return accessor; } if (fmt === "credit_card") { const validator = addConstant(ctx, isValidCreditCard); doc.write(`if (!${validator}(${accessor})) return INVALID;`); return accessor; } if (fmt === "iban") { const validator = addConstant(ctx, isValidIBAN); doc.write(`if (!${validator}(${accessor})) return INVALID;`); return accessor; } const formatDef = def; if (fmt === "url" || fmt === "httpurl" || formatDef.normalize || formatDef.hostname !== void 0 || formatDef.protocol !== void 0) { const parseConst = addConstant(ctx, validateURL); const defConst = addConstant(ctx, def); const trimVar = newVar(ctx); const urlVar = newVar(ctx); doc.write(`const ${trimVar} = ${accessor}.trim();`); doc.write(`const ${urlVar} = ${parseConst}(${trimVar}, ${defConst});`); doc.write(`if (typeof ${urlVar} === "number") return INVALID;`); if (formatDef.hostname !== void 0) { const hostnameConst = addConstant(ctx, urlHostnameOk); doc.write(`if (!${hostnameConst}(${urlVar}, ${defConst}.hostname)) return INVALID;`); } if (formatDef.protocol !== void 0) { const protocolConst = addConstant(ctx, urlProtocolOk); doc.write(`if (!${protocolConst}(${urlVar}, ${defConst}.protocol)) return INVALID;`); } if (!needsValue) return null; const outputVar = newVar(ctx); const outputExpr = formatDef.normalize ? `${urlVar}.href` : `${addConstant(ctx, stripTabAndNewline)}(${trimVar})`; doc.write(`const ${outputVar} = ${outputExpr};`); return outputVar; } const customFn = def.fn; if (customFn) { if (isAsyncFunction(customFn)) throw new ZodCompileUnsupportedError(`async string format ${fmt}`); const fnConst = addConstant(ctx, customFn); doc.write(`if (!${fnConst}(${accessor})) return INVALID;`); return accessor; } if (PATTERN_IS_COMPLETE.has(fmt) && def.pattern) { const patternConst = addConstant(ctx, def.pattern); doc.write(`${patternConst}.lastIndex = 0;`); doc.write(`if (!${patternConst}.test(${accessor})) return INVALID;`); return accessor; } const format = def.format; switch (format) { case "regex": throw new ZodCompileUnsupportedError("regex format without a pattern"); case "lowercase": doc.write(`if (${accessor} !== ${accessor}.toLowerCase()) return INVALID;`); break; case "uppercase": doc.write(`if (${accessor} !== ${accessor}.toUpperCase()) return INVALID;`); break; case "includes": doc.write(`if (!${accessor}.includes(${esc(def.includes)})) return INVALID;`); break; case "starts_with": { const prefix = def.prefix; doc.write(`if (${accessor}.slice(0, ${prefix.length}) !== ${esc(prefix)}) return INVALID;`); break; } case "ends_with": { const suffix = def.suffix; doc.write(`if (${accessor}.slice(-${suffix.length}) !== ${esc(suffix)}) return INVALID;`); break; } default: { void format; throw new ZodCompileUnsupportedError(`string format ${format}`); } } return accessor; } __name(generateStringFormatCheck, "generateStringFormatCheck"); function generateCheck(doc, ctx, schema2, accessor, needsValue = true) { const def = schema2._zod.def; const type = def.type; if (def.coerce) { throw new ZodCompileUnsupportedError(`coercion (z.coerce.${type}())`); } const buildsValue = needsValue || !!def.checks?.length; let typeAccessor; switch (type) { case "string": typeAccessor = generateStringCheck(doc, ctx, schema2, accessor, buildsValue); break; case "number": typeAccessor = generateNumberCheck(doc, schema2, accessor); break; case "boolean": typeAccessor = generateBooleanCheck(doc, accessor); break; case "bigint": typeAccessor = generateBigIntCheck(doc, schema2, accessor); break; case "symbol": typeAccessor = generateSymbolCheck(doc, accessor); break; case "undefined": typeAccessor = generateUndefinedCheck(doc, accessor); break; case "null": typeAccessor = generateNullCheck(doc, accessor); break; case "any": case "unknown": typeAccessor = accessor; break; case "never": doc.write("return INVALID;"); typeAccessor = accessor; break; case "void": typeAccessor = generateVoidCheck(doc, accessor); break; case "nan": typeAccessor = generateNaNCheck(doc, accessor); break; case "date": typeAccessor = generateDateCheck(doc, accessor); break; case "object": typeAccessor = generateObjectCheck(doc, ctx, schema2, accessor, buildsValue); break; case "optional": typeAccessor = generateOptionalCheck(doc, ctx, schema2, accessor, buildsValue); break; case "nullable": typeAccessor = generateNullableCheck(doc, ctx, schema2, accessor, buildsValue); break; case "array": typeAccessor = generateArrayCheck(doc, ctx, schema2, accessor, buildsValue); break; case "literal": typeAccessor = generateLiteralCheck(doc, ctx, schema2, accessor); break; case "enum": typeAccessor = generateEnumCheck(doc, ctx, schema2, accessor); break; case "readonly": { const innerOut = generateWrapperCheck(doc, ctx, schema2, accessor); const frozenVar = newVar(ctx); doc.write(`const ${frozenVar} = Object.freeze(${innerOut});`); typeAccessor = frozenVar; break; } case "success": generateWrapperCheck(doc, ctx, schema2, accessor); typeAccessor = "true"; break; case "default": case "prefault": typeAccessor = generateDefaultCheck(doc, ctx, schema2, accessor); break; case "nonoptional": typeAccessor = generateNonOptionalCheck(doc, ctx, schema2, accessor); break; case "tuple": typeAccessor = generateTupleCheck(doc, ctx, schema2, accessor); break; case "union": typeAccessor = generateUnionCheck(doc, ctx, schema2, accessor); break; case "intersection": typeAccessor = generateIntersectionCheck(doc, ctx, schema2, accessor); break; case "record": typeAccessor = generateRecordCheck(doc, ctx, schema2, accessor); break; case "map": typeAccessor = generateMapCheck(doc, ctx, schema2, accessor); break; case "set": typeAccessor = generateSetCheck(doc, ctx, schema2, accessor); break; case "file": typeAccessor = generateFileCheck(doc, accessor); break; case "template_literal": typeAccessor = generateTemplateLiteralCheck(doc, ctx, schema2, accessor); break; case "lazy": typeAccessor = generateLazyCheck(doc, ctx, schema2, accessor); break; case "pipe": typeAccessor = generatePipeCheck(doc, ctx, schema2, accessor); break; case "custom": typeAccessor = generateCustomCheck(doc, ctx, schema2, accessor); break; case "transform": typeAccessor = generateTransformCheck(doc, ctx, schema2, accessor); break; case "catch": typeAccessor = generateCatchCheck(doc, ctx, schema2, accessor); break; default: { void type; throw new ZodCompileUnsupportedError(`schema type ${type}`); } } if (typeAccessor === null) return null; return generateChecks(doc, ctx, schema2, typeAccessor); } __name(generateCheck, "generateCheck"); function generateStringCheck(doc, ctx, schema2, accessor, needsValue = true) { doc.write(`if (typeof ${accessor} !== "string") return INVALID;`); const def = schema2._zod.def; if (def.format === void 0) return accessor; return generateStringFormatCheck(doc, ctx, def, accessor, needsValue); } __name(generateStringCheck, "generateStringCheck"); function generateNumberCheck(doc, schema2, accessor) { doc.write(`if (typeof ${accessor} !== "number" || !Number.isFinite(${accessor})) return INVALID;`); const def = schema2._zod.def; if (def.check === "number_format" && def.format) { generateNumberFormatCheck(doc, { format: def.format }, accessor); } return accessor; } __name(generateNumberCheck, "generateNumberCheck"); function generateBooleanCheck(doc, accessor) { doc.write(`if (typeof ${accessor} !== "boolean") return INVALID;`); return accessor; } __name(generateBooleanCheck, "generateBooleanCheck"); function generateBigIntCheck(doc, schema2, accessor) { doc.write(`if (typeof ${accessor} !== "bigint") return INVALID;`); const def = schema2._zod.def; if (def.format) { switch (def.format) { case "int64": doc.write(`if (${accessor} < -9223372036854775808n || ${accessor} > 9223372036854775807n) return INVALID;`); break; case "uint64": doc.write(`if (${accessor} < 0n || ${accessor} > 18446744073709551615n) return INVALID;`); break; } } return accessor; } __name(generateBigIntCheck, "generateBigIntCheck"); function generateSymbolCheck(doc, accessor) { doc.write(`if (typeof ${accessor} !== "symbol") return INVALID;`); return accessor; } __name(generateSymbolCheck, "generateSymbolCheck"); function generateUndefinedCheck(doc, accessor) { doc.write(`if (${accessor} !== undefined) return INVALID;`); return accessor; } __name(generateUndefinedCheck, "generateUndefinedCheck"); function generateNullCheck(doc, accessor) { doc.write(`if (${accessor} !== null) return INVALID;`); return accessor; } __name(generateNullCheck, "generateNullCheck"); function generateVoidCheck(doc, accessor) { doc.write(`if (${accessor} !== undefined) return INVALID;`); return accessor; } __name(generateVoidCheck, "generateVoidCheck"); function generateNaNCheck(doc, accessor) { doc.write(`if (typeof ${accessor} !== "number" || !Number.isNaN(${accessor})) return INVALID;`); return accessor; } __name(generateNaNCheck, "generateNaNCheck"); function generateDateCheck(doc, accessor) { doc.write(`if (!(${accessor} instanceof Date) || Number.isNaN(${accessor}.getTime())) return INVALID;`); return accessor; } __name(generateDateCheck, "generateDateCheck"); function generateObjectCheck(doc, ctx, schema2, accessor, buildsValue = true) { const def = schema2._zod.def; doc.write(`if (typeof ${accessor} !== "object" || ${accessor} === null || Array.isArray(${accessor})) return INVALID;`); const shape = def.shape; const keys = Object.keys(shape); const symbolKeys = Object.getOwnPropertySymbols(shape); const allKeys = symbolKeys.length ? [...keys, ...symbolKeys] : keys; const keyExpr = /* @__PURE__ */ __name((k5) => typeof k5 === "symbol" ? addConstant(ctx, k5) : esc(k5), "keyExpr"); const propKey = /* @__PURE__ */ __name((k5) => typeof k5 === "symbol" ? `[${keyExpr(k5)}]` : esc(k5), "propKey"); const propShape = shape; if (keys.includes("__proto__")) { throw new ZodCompileUnsupportedError('object shape key "__proto__"'); } const propOutputs = /* @__PURE__ */ new Map(); for (const key of allKeys) { const propSchema = propShape[key]; const kx = keyExpr(key); const inputVar = newVar(ctx); doc.write(`const ${inputVar} = ${accessor}[${kx}];`); if (propSchema._zod.optin !== void 0) { const outputVar2 = newVar(ctx); doc.write(`let ${outputVar2} = (() => {`); doc.indented((d5) => { const outputAccessor = compileChild(d5, ctx, propSchema, inputVar); d5.write(`return ${outputAccessor};`); }); doc.write(`})();`); if (propSchema._zod.optout === "optional") { doc.write(`if (${outputVar2} === INVALID) {`); doc.indented((d5) => { d5.write(`if (${kx} in ${accessor}) return INVALID;`); d5.write(`${outputVar2} = undefined;`); }); doc.write(`}`); } else { doc.write(`if (${outputVar2} === INVALID) return INVALID;`); } propOutputs.set(key, outputVar2); } else { if (requiresPresenceCheck(propSchema)) { doc.write(`if (!(${kx} in ${accessor})) return INVALID;`); } const outputAccessor = compileChild(doc, ctx, propSchema, inputVar, buildsValue); if (outputAccessor !== null) propOutputs.set(key, outputAccessor); } } const catchall = def.catchall; let unknownKeysMode = "none"; if (catchall) { const catchallType = catchall._zod.def.type; if (catchallType === "never") { const condition = keys.map((k5) => `k !== ${esc(k5)}`).join(" && ") || "true"; doc.write(`for (const k in ${accessor}) {`); doc.indented((d5) => { d5.write(`if (${condition}) return INVALID;`); }); doc.write(`}`); } else if ((catchallType === "unknown" || catchallType === "any") && !catchall._zod.def.checks?.length) { unknownKeysMode = "passthrough"; } else { unknownKeysMode = "schema"; } } const outputVar = newVar(ctx); const hasConditionalKeys = allKeys.some((k5) => mayOmitUndefined(propShape[k5]) || dropsWhenAbsent(propShape[k5])); if (!buildsValue) { if (unknownKeysMode === "schema") { const knownSet = keys.length > 0 ? addConstant(ctx, new Set(keys)) : null; doc.write(`for (const k in ${accessor}) {`); doc.indented((d5) => { d5.write(`if (k === "__proto__") continue;`); if (knownSet) d5.write(`if (${knownSet}.has(k)) continue;`); const valVar = newVar(ctx); d5.write(`const ${valVar} = ${accessor}[k];`); compileChild(d5, ctx, catchall, valVar, false); }); doc.write(`}`); } return null; } if (!hasConditionalKeys) { const propLiterals = allKeys.map((k5) => `${propKey(k5)}: ${propOutputs.get(k5)}`).join(", "); doc.write(`const ${outputVar} = { ${propLiterals} };`); } else { doc.write(`const ${outputVar} = {};`); for (const k5 of allKeys) { const kx = keyExpr(k5); const out = propOutputs.get(k5); if (dropsWhenAbsent(propShape[k5])) { doc.write(`if (${kx} in ${accessor}) ${outputVar}[${kx}] = ${out};`); } else if (mayOmitUndefined(propShape[k5])) { doc.write(`if (${out} !== undefined || ${kx} in ${accessor}) ${outputVar}[${kx}] = ${out};`); } else { doc.write(`${outputVar}[${kx}] = ${out};`); } } } if (unknownKeysMode !== "none") { const knownSet = keys.length > 0 ? addConstant(ctx, new Set(keys)) : null; doc.write(`for (const k in ${accessor}) {`); doc.indented((d5) => { d5.write(`if (k === "__proto__") continue;`); if (knownSet) d5.write(`if (${knownSet}.has(k)) continue;`); if (unknownKeysMode === "passthrough") { d5.write(`${outputVar}[k] = ${accessor}[k];`); } else { const valVar = newVar(ctx); d5.write(`const ${valVar} = ${accessor}[k];`); const catchallOut = compileChild(d5, ctx, catchall, valVar); d5.write(`${outputVar}[k] = ${catchallOut};`); } }); doc.write(`}`); } return outputVar; } __name(generateObjectCheck, "generateObjectCheck"); function generateOptionalCheck(doc, ctx, schema2, accessor, buildsValue = true) { const def = schema2._zod.def; if (isExactOptional(schema2)) { return generateCheck(doc, ctx, def.innerType, accessor, buildsValue); } if (def.innerType._zod.optin === "defaulted") { const outputVar2 = newVar(ctx); const branchVar = newVar(ctx); doc.write(`let ${outputVar2};`); doc.write(`if (${accessor} === undefined) {`); doc.indented((d5) => { d5.write(`const ${branchVar} = (() => {`); d5.indented((d22) => { const innerOutput = generateCheck(d22, ctx, def.innerType, accessor); d22.write(`return ${innerOutput};`); }); d5.write(`})();`); d5.write(`if (${branchVar} !== INVALID) ${outputVar2} = ${branchVar};`); }); doc.write(`} else {`); doc.indented((d5) => { const innerOutput = generateCheck(d5, ctx, def.innerType, accessor); d5.write(`${outputVar2} = ${innerOutput};`); }); doc.write(`}`); return outputVar2; } const outputVar = buildsValue ? newVar(ctx) : null; if (outputVar) doc.write(`let ${outputVar};`); doc.write(`if (${accessor} !== undefined) {`); doc.indented((d5) => { const innerOutput = generateCheck(d5, ctx, def.innerType, accessor, buildsValue); if (outputVar && innerOutput !== null) d5.write(`${outputVar} = ${innerOutput};`); }); doc.write(`}`); return outputVar; } __name(generateOptionalCheck, "generateOptionalCheck"); function isExactOptional(schema2) { return schema2._zod.traits?.has("$ZodExactOptional") === true; } __name(isExactOptional, "isExactOptional"); function requiresPresenceCheck(schema2) { return schema2._zod.optin === void 0 && fastPathAcceptsAbsence(schema2); } __name(requiresPresenceCheck, "requiresPresenceCheck"); function fastPathAcceptsAbsence(schema2) { if (schema2._zod.def.coerce) return true; const def = schema2._zod.def; switch (def.type) { case "any": case "unknown": case "undefined": case "void": case "default": case "prefault": case "transform": case "custom": case "lazy": return true; case "string": case "number": case "boolean": case "bigint": case "symbol": case "null": case "never": case "nan": case "date": case "object": case "array": case "tuple": case "record": case "map": case "set": case "file": case "template_literal": return false; case "nonoptional": return def.innerType ? fastPathAcceptsAbsence(def.innerType) : false; case "literal": return !!def.values?.includes(void 0); case "enum": return !!schema2._zod.values?.has(void 0); case "optional": case "nullable": case "readonly": case "success": return def.innerType ? fastPathAcceptsAbsence(def.innerType) : true; case "catch": return true; case "union": return def.options ? def.options.some(fastPathAcceptsAbsence) : true; case "intersection": if (!def.left || !def.right) return true; return fastPathAcceptsAbsence(def.left) && fastPathAcceptsAbsence(def.right); case "pipe": return def.in ? fastPathAcceptsAbsence(def.in) : true; default: return true; } } __name(fastPathAcceptsAbsence, "fastPathAcceptsAbsence"); function dropsWhenAbsent(schema2) { return schema2._zod.optin === "optional" && schema2._zod.optout === "optional"; } __name(dropsWhenAbsent, "dropsWhenAbsent"); function mayOmitUndefined(schema2) { return (schema2._zod.optin !== "defaulted" || schema2._zod.optout === "optional") && mayOutputUndefined(schema2); } __name(mayOmitUndefined, "mayOmitUndefined"); function mayOutputUndefined(schema2) { const def = schema2._zod.def; switch (def.type) { case "string": case "number": case "boolean": case "bigint": case "symbol": case "null": case "nan": case "date": case "object": case "array": case "tuple": case "record": case "map": case "set": case "file": case "template_literal": case "never": case "success": return false; case "literal": return !!def.values?.includes(void 0); case "enum": return !!schema2._zod.values?.has(void 0); case "optional": return true; case "nullable": case "readonly": case "nonoptional": return def.innerType ? mayOutputUndefined(def.innerType) : true; case "union": return def.options ? def.options.some(mayOutputUndefined) : true; case "intersection": return !def.left || !def.right || mayOutputUndefined(def.left) || mayOutputUndefined(def.right); case "pipe": return def.out ? mayOutputUndefined(def.out) : true; default: return true; } } __name(mayOutputUndefined, "mayOutputUndefined"); function generateNullableCheck(doc, ctx, schema2, accessor, buildsValue = true) { const def = schema2._zod.def; const outputVar = buildsValue ? newVar(ctx) : null; if (outputVar) doc.write(`let ${outputVar} = null;`); doc.write(`if (${accessor} !== null) {`); doc.indented((d5) => { const innerOutput = generateCheck(d5, ctx, def.innerType, accessor, buildsValue); if (outputVar && innerOutput !== null) d5.write(`${outputVar} = ${innerOutput};`); }); doc.write(`}`); return outputVar; } __name(generateNullableCheck, "generateNullableCheck"); function generateSizeGate(doc, schema2, size) { for (const [max, check2] of sizeCaps(schema2._zod.def.checks)) { doc.write(`if (${size} > ${numericOperand(max, check2._zod.def.check)}) return INVALID;`); } } __name(generateSizeGate, "generateSizeGate"); function generateArrayCheck(doc, ctx, schema2, accessor, buildsValue = true) { const def = schema2._zod.def; doc.write(`if (!Array.isArray(${accessor})) return INVALID;`); generateSizeGate(doc, schema2, `${accessor}.length`); const outputVar = buildsValue ? newVar(ctx) : null; const iVar = newVar(ctx); const elemVar = newVar(ctx); if (outputVar) doc.write(`const ${outputVar} = new Array(${accessor}.length);`); doc.write(`for (let ${iVar} = 0; ${iVar} < ${accessor}.length; ${iVar}++) {`); doc.indented((d5) => { d5.write(`const ${elemVar} = ${accessor}[${iVar}];`); const elemOutput = compileChild(d5, ctx, def.element, elemVar, buildsValue); if (outputVar && elemOutput !== null) d5.write(`${outputVar}[${iVar}] = ${elemOutput};`); }); doc.write(`}`); return outputVar; } __name(generateArrayCheck, "generateArrayCheck"); function generateLiteralCheck(doc, ctx, schema2, accessor) { const def = schema2._zod.def; const values = def.values; if (values.length !== 1) { const literalSet = addConstant(ctx, new Set(values)); doc.write(`if (!${literalSet}.has(${accessor})) return INVALID;`); return accessor; } const value = values[0]; if (typeof value === "number" && Number.isNaN(value)) { const literalSet = addConstant(ctx, new Set(values)); doc.write(`if (!${literalSet}.has(${accessor})) return INVALID;`); return accessor; } if (typeof value === "string") { doc.write(`if (${accessor} !== ${esc(value)}) return INVALID;`); } else if (typeof value === "number" || typeof value === "boolean") { doc.write(`if (${accessor} !== ${value}) return INVALID;`); } else if (value === null) { doc.write(`if (${accessor} !== null) return INVALID;`); } else if (value === void 0) { doc.write(`if (${accessor} !== undefined) return INVALID;`); } else if (typeof value === "bigint") { doc.write(`if (${accessor} !== ${value}n) return INVALID;`); } else { throw new ZodCompileUnsupportedError(`literal type ${typeof value}`); } return accessor; } __name(generateLiteralCheck, "generateLiteralCheck"); function generateEnumCheck(doc, ctx, schema2, accessor) { const values = schema2._zod.values; if (!values) { throw new ZodCompileUnsupportedError("enum schema without enumerated values"); } const enumSet = addConstant(ctx, values); doc.write(`if (!${enumSet}.has(${accessor})) return INVALID;`); return accessor; } __name(generateEnumCheck, "generateEnumCheck"); function generateWrapperCheck(doc, ctx, schema2, accessor) { const def = schema2._zod.def; return generateCheck(doc, ctx, def.innerType, accessor); } __name(generateWrapperCheck, "generateWrapperCheck"); function generateDefaultCheck(doc, ctx, schema2, accessor) { const def = schema2._zod.def; const descriptor = Object.getOwnPropertyDescriptor(schema2._zod.def, "defaultValue"); const defaultGetter = descriptor ? () => schema2._zod.def.defaultValue : void 0; if (schema2._zod.def.type === "prefault") { if (!defaultGetter) { return generateCheck(doc, ctx, def.innerType, accessor); } const defaultFn = addConstant(ctx, defaultGetter); const inputVar = newVar(ctx); doc.write(`let ${inputVar} = ${accessor};`); doc.write(`if (${accessor} === undefined) ${inputVar} = ${defaultFn}();`); return generateCheck(doc, ctx, def.innerType, inputVar); } const outputVar = newVar(ctx); if (defaultGetter) { const defaultFn = addConstant(ctx, defaultGetter); const cloneFn = addConstant(ctx, shallowClone); doc.write(`let ${outputVar};`); doc.write(`if (${accessor} === undefined) {`); doc.indented((d5) => { d5.write(`${outputVar} = ${cloneFn}(${defaultFn}());`); }); doc.write(`} else {`); doc.indented((d5) => { const innerOutput = generateCheck(d5, ctx, def.innerType, accessor); d5.write(`${outputVar} = ${innerOutput} === undefined ? ${cloneFn}(${defaultFn}()) : ${innerOutput};`); }); doc.write(`}`); } else { doc.write(`let ${outputVar};`); doc.write(`if (${accessor} !== undefined) {`); doc.indented((d5) => { const innerOutput = generateCheck(d5, ctx, def.innerType, accessor); d5.write(`${outputVar} = ${innerOutput};`); }); doc.write(`}`); } return outputVar; } __name(generateDefaultCheck, "generateDefaultCheck"); function generateNonOptionalCheck(doc, ctx, schema2, accessor) { const def = schema2._zod.def; const innerOutput = generateCheck(doc, ctx, def.innerType, accessor); const outputVar = newVar(ctx); doc.write(`const ${outputVar} = ${innerOutput};`); doc.write(`if (${outputVar} === undefined) return INVALID;`); return outputVar; } __name(generateNonOptionalCheck, "generateNonOptionalCheck"); function generateTupleCheck(doc, ctx, schema2, accessor) { const def = schema2._zod.def; const items = def.items; const rest = def.rest; doc.write(`if (!Array.isArray(${accessor})) return INVALID;`); const optinStart = getTupleOptStart2(items, "optin"); const optoutStart = getTupleOptStart2(items, "optout"); if (rest) { doc.write(`if (${accessor}.length < ${optinStart}) return INVALID;`); } else { doc.write(`if (${accessor}.length < ${optinStart} || ${accessor}.length > ${items.length}) return INVALID;`); } const outputVar = newVar(ctx); doc.write(`const ${outputVar} = [];`); for (let i5 = 0; i5 < items.length; i5++) { const itemSchema = items[i5]; if (i5 >= optoutStart) { doc.write(`if (${outputVar}.length === ${i5}) {`); doc.indented((d5) => { d5.write(`if (${i5} < ${accessor}.length) {`); d5.indented((d22) => { const elemVar = newVar(ctx); d22.write(`const ${elemVar} = ${accessor}[${i5}];`); const elemOutput = compileChild(d22, ctx, itemSchema, elemVar); d22.write(`${outputVar}[${i5}] = ${elemOutput};`); }); d5.write(`} else {`); d5.indented((d22) => { if (dropsWhenAbsent(itemSchema)) { d22.write(`${outputVar}.length = ${i5};`); return; } const elemVar = newVar(ctx); const branchVar = newVar(ctx); d22.write(`const ${elemVar} = undefined;`); d22.write(`const ${branchVar} = (() => {`); d22.indented((d32) => { const elemOutput = compileChild(d32, ctx, itemSchema, elemVar); d32.write(`return ${elemOutput};`); }); d22.write(`})();`); d22.write(`if (${branchVar} === INVALID || ${branchVar} === undefined) ${outputVar}.length = ${i5};`); d22.write(`else ${outputVar}[${i5}] = ${branchVar};`); }); d5.write(`}`); }); doc.write(`}`); } else { const elemVar = newVar(ctx); doc.write(`const ${elemVar} = ${accessor}[${i5}];`); const elemOutput = compileChild(doc, ctx, itemSchema, elemVar); doc.write(`${outputVar}[${i5}] = ${elemOutput};`); } } if (rest) { const iVar = newVar(ctx); const elemVar = newVar(ctx); doc.write(`for (let ${iVar} = ${items.length}; ${iVar} < ${accessor}.length; ${iVar}++) {`); doc.indented((d5) => { d5.write(`const ${elemVar} = ${accessor}[${iVar}];`); const elemOutput = compileChild(d5, ctx, rest, elemVar); d5.write(`${outputVar}[${iVar}] = ${elemOutput};`); }); doc.write(`}`); } return outputVar; } __name(generateTupleCheck, "generateTupleCheck"); function getTupleOptStart2(items, key) { for (let i5 = items.length - 1; i5 >= 0; i5--) { const omittable = key === "optin" ? items[i5]._zod.optin !== void 0 : items[i5]._zod.optout === "optional"; if (!omittable) return i5 + 1; } return 0; } __name(getTupleOptStart2, "getTupleOptStart"); function generateUnionCheck(doc, ctx, schema2, accessor) { const def = schema2._zod.def; const options = def.options; if (def.discriminator) { return generateDiscriminatedUnionCheck(doc, ctx, def, accessor); } if (def.inclusive === false) { throw new ZodCompileUnsupportedError("exclusive unions (z.xor)"); } if (options.length === 0) { doc.write("return INVALID;"); return accessor; } if (options.length === 1) { return generateCheck(doc, ctx, options[0], accessor); } const allLiterals = options.every((opt) => opt._zod.def.type === "literal" && !opt._zod.def.checks?.length); if (allLiterals) { const values = new Set(options.flatMap((opt) => opt._zod.def.values)); const valuesConst = addConstant(ctx, values); doc.write(`if (!${valuesConst}.has(${accessor})) return INVALID;`); return accessor; } const outputVar = newVar(ctx); doc.write(`let ${outputVar};`); for (let i5 = 0; i5 < options.length; i5++) { const opt = options[i5]; if (i5 === 0) { doc.write(`${outputVar} = (() => {`); } else { doc.write(`if (${outputVar} === INVALID) ${outputVar} = (() => {`); } doc.indented((d5) => { const branchOutput = generateCheck(d5, ctx, opt, accessor); d5.write(`return ${branchOutput};`); }); doc.write(`})();`); } doc.write(`if (${outputVar} === INVALID) return INVALID;`); return outputVar; } __name(generateUnionCheck, "generateUnionCheck"); function generateDiscriminatedUnionCheck(doc, ctx, def, accessor) { if (def.unionFallback) { throw new ZodCompileUnsupportedError("discriminated union with unionFallback"); } if (def.options.length === 0) { doc.write("return INVALID;"); return accessor; } const discVar = newVar(ctx); const outputVar = newVar(ctx); doc.write(`const ${discVar} = ${accessor}?.[${esc(def.discriminator)}];`); doc.write(`let ${outputVar};`); let firstBranch = true; const claimed = /* @__PURE__ */ new Set(); for (const option of def.options) { const values = option._zod.propValues?.[def.discriminator]; if (!values || values.size === 0) { throw new ZodCompileUnsupportedError("discriminated union option without static discriminator values"); } for (const value of values) { if (claimed.has(value)) { throw new ZodCompileUnsupportedError(`duplicate discriminator value ${String(value)}`); } claimed.add(value); } const conditions = Array.from(values, (value) => literalEquality(ctx, discVar, value)); const prefix = firstBranch ? "if" : "else if"; doc.write(`${prefix} (${conditions.join(" || ")}) {`); doc.indented((d5) => { const branchOutput = generateCheck(d5, ctx, option, accessor); d5.write(`${outputVar} = ${branchOutput};`); }); doc.write(`}`); firstBranch = false; } doc.write(`else { return INVALID; }`); return outputVar; } __name(generateDiscriminatedUnionCheck, "generateDiscriminatedUnionCheck"); function literalEquality(ctx, accessor, value) { if (typeof value === "string") return `${accessor} === ${esc(value)}`; if (typeof value === "number") { if (Number.isNaN(value)) return `Number.isNaN(${accessor})`; return `${accessor} === ${value}`; } if (typeof value === "boolean") return `${accessor} === ${value}`; if (value === null) return `${accessor} === null`; if (value === void 0) return `${accessor} === undefined`; if (typeof value === "bigint") return `${accessor} === ${value}n`; if (typeof value === "symbol") { const symbolConst = addConstant(ctx, value); return `${accessor} === ${symbolConst}`; } throw new ZodCompileUnsupportedError(`literal discriminator value ${String(value)}`); } __name(literalEquality, "literalEquality"); function generateIntersectionCheck(doc, ctx, schema2, accessor) { const def = schema2._zod.def; ctx.definite = false; const leftOutput = compileChild(doc, ctx, def.left, accessor); const rightOutput = compileChild(doc, ctx, def.right, accessor); const mergeConst = addConstant(ctx, mergeValues); const mergedVar = newVar(ctx); doc.write(`const ${mergedVar} = ${mergeConst}(${leftOutput}, ${rightOutput});`); doc.write(`if (!${mergedVar}.valid) return INVALID;`); return `${mergedVar}.data`; } __name(generateIntersectionCheck, "generateIntersectionCheck"); function generateRecordCheck(doc, ctx, schema2, accessor) { const def = schema2._zod.def; const isPlainObjectConst = addConstant(ctx, isPlainObject); doc.write(`if (!${isPlainObjectConst}(${accessor})) return INVALID;`); const outputVar = newVar(ctx); const kVar = newVar(ctx); const valVar = newVar(ctx); doc.write(`const ${outputVar} = {};`); const recordDef = def; const keyValues = recordDef.partial ? void 0 : def.keyType._zod.values; if (keyValues) { const inputKeys = []; for (const key of keyValues) { if (!(typeof key === "string" || typeof key === "number" || typeof key === "symbol")) { throw new ZodCompileUnsupportedError(`record key value ${String(key)}`); } const inputKey = typeof key === "number" ? key.toString() : key; if (inputKey === "__proto__") { throw new ZodCompileUnsupportedError('record key "__proto__"'); } inputKeys.push(inputKey); const keyConst = addConstant(ctx, key); const outKey = generateCheck(doc, ctx, def.keyType, keyConst); const valueVar = newVar(ctx); doc.write(`const ${valueVar} = ${accessor}[${literalPropertyKey(ctx, inputKey)}];`); const valOutput = compileChild(doc, ctx, def.valueType, valueVar); doc.write(`${outputVar}[${outKey}] = ${valOutput};`); } const knownKeysConst = addConstant(ctx, new Set(inputKeys)); doc.write(`for (const ${kVar} in ${accessor}) {`); doc.indented((d5) => { d5.write(`if (${knownKeysConst}.has(${kVar})) continue;`); if (recordDef.mode === "loose") { d5.write(`if (${kVar} !== "__proto__") ${outputVar}[${kVar}] = ${accessor}[${kVar}];`); } else { d5.write(`return INVALID;`); } }); doc.write(`}`); return outputVar; } const keyDef = def.keyType._zod.def; const keyIsBareString = keyDef.type === "string" && keyDef.format === void 0 && !keyDef.coerce && (keyDef.checks?.length ?? 0) === 0; if (!keyIsBareString) { const isLoose = def.mode === "loose"; const keyFn = compileFn(def.keyType); if (keyFn.definite === false) ctx.definite = false; const keyFast = addConstant(ctx, keyFn); const numericConst = addConstant(ctx, number); const outKeyVar = newVar(ctx); emitOwnKeys(doc, ctx, accessor, kVar, (d5) => { d5.write(`let ${outKeyVar} = ${keyFast}(${kVar});`); d5.write(`if (${outKeyVar} === INVALID && typeof ${kVar} === "string" && ${numericConst}.test(${kVar})) ${outKeyVar} = ${keyFast}(Number(${kVar}));`); if (isLoose) { d5.write(`if (${outKeyVar} === INVALID) { ${outputVar}[${kVar}] = ${accessor}[${kVar}]; continue; }`); } else { d5.write(`if (${outKeyVar} === INVALID) return INVALID;`); } d5.write(`if (${outKeyVar} === "__proto__") continue;`); const valueVar = newVar(ctx); d5.write(`const ${valueVar} = ${accessor}[${kVar}];`); const valOutput = compileChild(d5, ctx, def.valueType, valueVar); d5.write(`${outputVar}[${outKeyVar}] = ${valOutput};`); }); return outputVar; } emitOwnKeys(doc, ctx, accessor, kVar, (d5) => { d5.write(`const ${valVar} = ${accessor}[${kVar}];`); const valOutput = compileChild(d5, ctx, def.valueType, valVar); d5.write(`${outputVar}[${kVar}] = ${valOutput};`); }, `return INVALID;`); return outputVar; } __name(generateRecordCheck, "generateRecordCheck"); function emitOwnKeys(doc, ctx, accessor, kVar, body, onSymbol) { const propIsEnumerableConst = addConstant(ctx, Object.prototype.propertyIsEnumerable); const symsVar = newVar(ctx); const keysVar = newVar(ctx); const iVar = newVar(ctx); doc.write(`const ${symsVar} = Object.getOwnPropertySymbols(${accessor});`); doc.write(`const ${keysVar} = Object.getOwnPropertyNames(${accessor});`); doc.write(`for (let ${iVar} = 0; ${iVar} < ${keysVar}.length; ${iVar}++) {`); doc.indented((d5) => { d5.write(`const ${kVar} = ${keysVar}[${iVar}];`); d5.write(`if (${kVar} === "__proto__" || !${propIsEnumerableConst}.call(${accessor}, ${kVar})) continue;`); body(d5); }); doc.write(`}`); doc.write(`for (let ${iVar} = 0; ${iVar} < ${symsVar}.length; ${iVar}++) {`); doc.indented((d5) => { d5.write(`const ${kVar} = ${symsVar}[${iVar}];`); d5.write(`if (!${propIsEnumerableConst}.call(${accessor}, ${kVar})) continue;`); if (onSymbol) d5.write(onSymbol); else body(d5); }); doc.write(`}`); } __name(emitOwnKeys, "emitOwnKeys"); function literalPropertyKey(ctx, key) { if (typeof key === "string") return esc(key); return addConstant(ctx, key); } __name(literalPropertyKey, "literalPropertyKey"); function generateMapCheck(doc, ctx, schema2, accessor) { const def = schema2._zod.def; doc.write(`if (!(${accessor} instanceof Map)) return INVALID;`); generateSizeGate(doc, schema2, `${accessor}.size`); const outputVar = newVar(ctx); const kVar = newVar(ctx); const valVar = newVar(ctx); doc.write(`const ${outputVar} = new Map();`); doc.write(`for (const [${kVar}, ${valVar}] of ${accessor}) {`); doc.indented((d5) => { const keyOutput = generateCheck(d5, ctx, def.keyType, kVar); const valOutput = generateCheck(d5, ctx, def.valueType, valVar); d5.write(`${outputVar}.set(${keyOutput}, ${valOutput});`); }); doc.write(`}`); return outputVar; } __name(generateMapCheck, "generateMapCheck"); function generateSetCheck(doc, ctx, schema2, accessor) { const def = schema2._zod.def; doc.write(`if (!(${accessor} instanceof Set)) return INVALID;`); generateSizeGate(doc, schema2, `${accessor}.size`); const outputVar = newVar(ctx); const valVar = newVar(ctx); doc.write(`const ${outputVar} = new Set();`); doc.write(`for (const ${valVar} of ${accessor}) {`); doc.indented((d5) => { const valOutput = generateCheck(d5, ctx, def.valueType, valVar); d5.write(`${outputVar}.add(${valOutput});`); }); doc.write(`}`); return outputVar; } __name(generateSetCheck, "generateSetCheck"); function generateFileCheck(doc, accessor) { doc.write(`if (!(${accessor} instanceof File)) return INVALID;`); return accessor; } __name(generateFileCheck, "generateFileCheck"); function generateTemplateLiteralCheck(doc, ctx, schema2, accessor) { doc.write(`if (typeof ${accessor} !== "string") return INVALID;`); const pattern = schema2._zod.pattern; if (pattern) { const patternConst = addConstant(ctx, pattern); doc.write(`${patternConst}.lastIndex = 0;`); doc.write(`if (!${patternConst}.test(${accessor})) return INVALID;`); } return accessor; } __name(generateTemplateLiteralCheck, "generateTemplateLiteralCheck"); function generateLazyCheck(doc, ctx, schema2, accessor) { const def = schema2._zod.def; const getterConst = addUserConstant(ctx, def.getter); const cacheConst = addConstant(ctx, { parser: null }); doc.write(`if (!${cacheConst}.parser) {`); doc.indented((d5) => { d5.write(`const inner = ${getterConst}();`); d5.write(`${cacheConst}.parser = function(input) {`); d5.indented((d22) => { d22.write(`const result = inner._zod.run({ value: input, issues: [] }, {});`); d22.write(`return result.issues.length === 0 ? result.value : INVALID;`); }); d5.write(`};`); }); doc.write(`}`); const outputVar = newVar(ctx); doc.write(`const ${outputVar} = ${cacheConst}.parser(${accessor});`); doc.write(`if (${outputVar} === INVALID) return INVALID;`); return outputVar; } __name(generateLazyCheck, "generateLazyCheck"); function generatePipeCheck(doc, ctx, schema2, accessor) { const def = schema2._zod.def; const inputOutput = generateCheck(doc, ctx, def.in, accessor); if (def.transform) { if (isAsyncFunction(def.transform)) { throw new ZodCompileAsyncError("z.compile: async transforms in pipes are not supported"); } const transformFn = def.transform; const helperFn = /* @__PURE__ */ __name((value) => { const fakePayload = { value, issues: [], addIssue: pushIssue }; const result = transformFn(value, fakePayload); if (result instanceof Promise) return INVALID; return fakePayload.issues.length === 0 ? result : INVALID; }, "helperFn"); const helperConst = addUserConstant(ctx, helperFn); const transformedVar = newVar(ctx); doc.write(`const ${transformedVar} = ${helperConst}(${inputOutput});`); doc.write(`if (${transformedVar} === INVALID) return INVALID;`); return generateCheck(doc, ctx, def.out, transformedVar); } else { return generateCheck(doc, ctx, def.out, inputOutput); } } __name(generatePipeCheck, "generatePipeCheck"); function isAsyncFunction(fn) { return typeof fn === "function" && (fn.constructor.name === "AsyncFunction" || fn[Symbol.toStringTag] === "AsyncFunction"); } __name(isAsyncFunction, "isAsyncFunction"); function generateCustomCheck(doc, ctx, schema2, accessor) { const def = schema2._zod.def; if (def.fn) { if (isAsyncFunction(def.fn)) { throw new ZodCompileAsyncError("z.compile: async custom predicates are not supported"); } const fnConst = addUserConstant(ctx, def.fn); const throwAsyncConst = addConstant(ctx, throwAsync); const resVar = newVar(ctx); doc.write(`const ${resVar} = ${fnConst}(${accessor});`); doc.write(`if (${resVar} instanceof Promise) ${throwAsyncConst}();`); doc.write(`if (!${resVar}) return INVALID;`); } else { throw new ZodCompileUnsupportedError("custom schema without a predicate function"); } return accessor; } __name(generateCustomCheck, "generateCustomCheck"); function runtimeCatch(innerSchema, catchValue, value) { const result = innerSchema._zod.run({ value, issues: [] }, {}); if (result && typeof result.then === "function") return INVALID; const r5 = result; if (r5.issues.length === 0) return r5.value; return catchValue(); } __name(runtimeCatch, "runtimeCatch"); function generateCatchCheck(doc, ctx, schema2, accessor) { const def = schema2._zod.def; if (!def.catchValue[CONSTANT_CATCH]) { throw new ZodCompileUnsupportedError("catch with a callback (only a constant catch value compiles)", false); } const outputVar = newVar(ctx); doc.write(`let ${outputVar} = (() => {`); doc.indented((d5) => { const innerOut = compileChild(d5, ctx, def.innerType, accessor); d5.write(`return ${innerOut};`); }); doc.write(`})();`); const innerConst = addConstant(ctx, def.innerType); const catchConst = addUserConstant(ctx, def.catchValue); const catchHelperConst = addConstant(ctx, runtimeCatch); doc.write(`if (${outputVar} === INVALID) {`); doc.indented((d5) => { d5.write(`${outputVar} = ${catchHelperConst}(${innerConst}, ${catchConst}, ${accessor});`); d5.write(`if (${outputVar} === INVALID) return INVALID;`); }); doc.write(`}`); return outputVar; } __name(generateCatchCheck, "generateCatchCheck"); function generateTransformCheck(doc, ctx, schema2, accessor) { const def = schema2._zod.def; if (def.transform) { if (isAsyncFunction(def.transform)) { throw new ZodCompileAsyncError("z.compile: async transforms are not supported"); } const transformFn = def.transform; const helperFn = /* @__PURE__ */ __name((value) => { const fakePayload = { value, issues: [], addIssue: pushIssue }; const result = transformFn(value, fakePayload); if (result instanceof Promise) return INVALID; return fakePayload.issues.length === 0 ? result : INVALID; }, "helperFn"); const helperConst = addUserConstant(ctx, helperFn); const outputVar = newVar(ctx); doc.write(`const ${outputVar} = ${helperConst}(${accessor});`); doc.write(`if (${outputVar} === INVALID) return INVALID;`); return outputVar; } return accessor; } __name(generateTransformCheck, "generateTransformCheck"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/api.js function snapshotChecks(def) { if (def.checks) def.checks = [...def.checks]; return def; } __name(snapshotChecks, "snapshotChecks"); // @__NO_SIDE_EFFECTS__ function _string(Class2, params) { return new Class2(snapshotChecks({ type: "string", ...normalizeParams(params) })); } __name(_string, "_string"); // @__NO_SIDE_EFFECTS__ function _coercedString(Class2, params) { return new Class2(snapshotChecks({ type: "string", coerce: true, ...normalizeParams(params) })); } __name(_coercedString, "_coercedString"); // @__NO_SIDE_EFFECTS__ function _email(Class2, params) { return new Class2({ type: "string", format: "email", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_email, "_email"); // @__NO_SIDE_EFFECTS__ function _guid(Class2, params) { return new Class2({ type: "string", format: "guid", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_guid, "_guid"); // @__NO_SIDE_EFFECTS__ function _uuid(Class2, params) { return new Class2({ type: "string", format: "uuid", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_uuid, "_uuid"); // @__NO_SIDE_EFFECTS__ function _uuidv4(Class2, params) { return new Class2({ type: "string", format: "uuid", check: "string_format", abort: false, version: "v4", ...normalizeParams(params) }); } __name(_uuidv4, "_uuidv4"); // @__NO_SIDE_EFFECTS__ function _uuidv6(Class2, params) { return new Class2({ type: "string", format: "uuid", check: "string_format", abort: false, version: "v6", ...normalizeParams(params) }); } __name(_uuidv6, "_uuidv6"); // @__NO_SIDE_EFFECTS__ function _uuidv7(Class2, params) { return new Class2({ type: "string", format: "uuid", check: "string_format", abort: false, version: "v7", ...normalizeParams(params) }); } __name(_uuidv7, "_uuidv7"); // @__NO_SIDE_EFFECTS__ function _url(Class2, params) { return new Class2({ type: "string", format: "url", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_url, "_url"); // @__NO_SIDE_EFFECTS__ function _emoji2(Class2, params) { return new Class2({ type: "string", format: "emoji", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_emoji2, "_emoji"); // @__NO_SIDE_EFFECTS__ function _nanoid(Class2, params) { return new Class2({ type: "string", format: "nanoid", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_nanoid, "_nanoid"); // @__NO_SIDE_EFFECTS__ function _cuid(Class2, params) { return new Class2({ type: "string", format: "cuid", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_cuid, "_cuid"); // @__NO_SIDE_EFFECTS__ function _cuid2(Class2, params) { return new Class2({ type: "string", format: "cuid2", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_cuid2, "_cuid2"); // @__NO_SIDE_EFFECTS__ function _ulid(Class2, params) { return new Class2({ type: "string", format: "ulid", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_ulid, "_ulid"); // @__NO_SIDE_EFFECTS__ function _xid(Class2, params) { return new Class2({ type: "string", format: "xid", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_xid, "_xid"); // @__NO_SIDE_EFFECTS__ function _ksuid(Class2, params) { return new Class2({ type: "string", format: "ksuid", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_ksuid, "_ksuid"); // @__NO_SIDE_EFFECTS__ function _ipv4(Class2, params) { return new Class2({ type: "string", format: "ipv4", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_ipv4, "_ipv4"); // @__NO_SIDE_EFFECTS__ function _ipv6(Class2, params) { return new Class2({ type: "string", format: "ipv6", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_ipv6, "_ipv6"); // @__NO_SIDE_EFFECTS__ function _mac(Class2, params) { return new Class2({ type: "string", format: "mac", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_mac, "_mac"); // @__NO_SIDE_EFFECTS__ function _cidrv4(Class2, params) { return new Class2({ type: "string", format: "cidrv4", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_cidrv4, "_cidrv4"); // @__NO_SIDE_EFFECTS__ function _cidrv6(Class2, params) { return new Class2({ type: "string", format: "cidrv6", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_cidrv6, "_cidrv6"); // @__NO_SIDE_EFFECTS__ function _base64(Class2, params) { return new Class2({ type: "string", format: "base64", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_base64, "_base64"); // @__NO_SIDE_EFFECTS__ function _base64url(Class2, params) { return new Class2({ type: "string", format: "base64url", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_base64url, "_base64url"); // @__NO_SIDE_EFFECTS__ function _e164(Class2, params) { return new Class2({ type: "string", format: "e164", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_e164, "_e164"); // @__NO_SIDE_EFFECTS__ function _creditCard(Class2, params) { return new Class2({ type: "string", format: "credit_card", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_creditCard, "_creditCard"); // @__NO_SIDE_EFFECTS__ function _iban(Class2, params) { return new Class2({ type: "string", format: "iban", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_iban, "_iban"); // @__NO_SIDE_EFFECTS__ function _jwt(Class2, params) { return new Class2({ type: "string", format: "jwt", check: "string_format", abort: false, ...normalizeParams(params) }); } __name(_jwt, "_jwt"); var TimePrecision = { Any: null, Minute: -1, Second: 0, Millisecond: 3, Microsecond: 6 }; // @__NO_SIDE_EFFECTS__ function _isoDateTime(Class2, params) { return new Class2({ type: "string", format: "datetime", check: "string_format", offset: false, local: false, precision: null, ...normalizeParams(params) }); } __name(_isoDateTime, "_isoDateTime"); // @__NO_SIDE_EFFECTS__ function _isoDate(Class2, params) { return new Class2({ type: "string", format: "date", check: "string_format", ...normalizeParams(params) }); } __name(_isoDate, "_isoDate"); // @__NO_SIDE_EFFECTS__ function _isoTime(Class2, params) { return new Class2({ type: "string", format: "time", check: "string_format", precision: null, ...normalizeParams(params) }); } __name(_isoTime, "_isoTime"); // @__NO_SIDE_EFFECTS__ function _isoDuration(Class2, params) { return new Class2({ type: "string", format: "duration", check: "string_format", ...normalizeParams(params) }); } __name(_isoDuration, "_isoDuration"); // @__NO_SIDE_EFFECTS__ function _number(Class2, params) { return new Class2(snapshotChecks({ type: "number", checks: [], ...normalizeParams(params) })); } __name(_number, "_number"); // @__NO_SIDE_EFFECTS__ function _coercedNumber(Class2, params) { return new Class2(snapshotChecks({ type: "number", coerce: true, checks: [], ...normalizeParams(params) })); } __name(_coercedNumber, "_coercedNumber"); // @__NO_SIDE_EFFECTS__ function _int(Class2, params) { return new Class2({ type: "number", check: "number_format", abort: false, format: "safeint", ...normalizeParams(params) }); } __name(_int, "_int"); // @__NO_SIDE_EFFECTS__ function _float32(Class2, params) { return new Class2({ type: "number", check: "number_format", abort: false, format: "float32", ...normalizeParams(params) }); } __name(_float32, "_float32"); // @__NO_SIDE_EFFECTS__ function _float64(Class2, params) { return new Class2({ type: "number", check: "number_format", abort: false, format: "float64", ...normalizeParams(params) }); } __name(_float64, "_float64"); // @__NO_SIDE_EFFECTS__ function _int32(Class2, params) { return new Class2({ type: "number", check: "number_format", abort: false, format: "int32", ...normalizeParams(params) }); } __name(_int32, "_int32"); // @__NO_SIDE_EFFECTS__ function _uint32(Class2, params) { return new Class2({ type: "number", check: "number_format", abort: false, format: "uint32", ...normalizeParams(params) }); } __name(_uint32, "_uint32"); // @__NO_SIDE_EFFECTS__ function _boolean(Class2, params) { return new Class2({ type: "boolean", ...normalizeParams(params) }); } __name(_boolean, "_boolean"); // @__NO_SIDE_EFFECTS__ function _coercedBoolean(Class2, params) { return new Class2({ type: "boolean", coerce: true, ...normalizeParams(params) }); } __name(_coercedBoolean, "_coercedBoolean"); // @__NO_SIDE_EFFECTS__ function _bigint(Class2, params) { return new Class2({ type: "bigint", ...normalizeParams(params) }); } __name(_bigint, "_bigint"); // @__NO_SIDE_EFFECTS__ function _coercedBigint(Class2, params) { return new Class2({ type: "bigint", coerce: true, ...normalizeParams(params) }); } __name(_coercedBigint, "_coercedBigint"); // @__NO_SIDE_EFFECTS__ function _int64(Class2, params) { return new Class2({ type: "bigint", check: "bigint_format", abort: false, format: "int64", ...normalizeParams(params) }); } __name(_int64, "_int64"); // @__NO_SIDE_EFFECTS__ function _uint64(Class2, params) { return new Class2({ type: "bigint", check: "bigint_format", abort: false, format: "uint64", ...normalizeParams(params) }); } __name(_uint64, "_uint64"); // @__NO_SIDE_EFFECTS__ function _symbol(Class2, params) { return new Class2({ type: "symbol", ...normalizeParams(params) }); } __name(_symbol, "_symbol"); // @__NO_SIDE_EFFECTS__ function _undefined2(Class2, params) { return new Class2({ type: "undefined", ...normalizeParams(params) }); } __name(_undefined2, "_undefined"); // @__NO_SIDE_EFFECTS__ function _null2(Class2, params) { return new Class2({ type: "null", ...normalizeParams(params) }); } __name(_null2, "_null"); // @__NO_SIDE_EFFECTS__ function _any(Class2) { return new Class2({ type: "any" }); } __name(_any, "_any"); // @__NO_SIDE_EFFECTS__ function _unknown(Class2) { return new Class2({ type: "unknown" }); } __name(_unknown, "_unknown"); // @__NO_SIDE_EFFECTS__ function _never(Class2, params) { return new Class2({ type: "never", ...normalizeParams(params) }); } __name(_never, "_never"); // @__NO_SIDE_EFFECTS__ function _void(Class2, params) { return new Class2({ type: "void", ...normalizeParams(params) }); } __name(_void, "_void"); // @__NO_SIDE_EFFECTS__ function _date(Class2, params) { return new Class2({ type: "date", ...normalizeParams(params) }); } __name(_date, "_date"); // @__NO_SIDE_EFFECTS__ function _coercedDate(Class2, params) { return new Class2({ type: "date", coerce: true, ...normalizeParams(params) }); } __name(_coercedDate, "_coercedDate"); // @__NO_SIDE_EFFECTS__ function _nan(Class2, params) { return new Class2({ type: "nan", ...normalizeParams(params) }); } __name(_nan, "_nan"); // @__NO_SIDE_EFFECTS__ function _lt(value, params) { return new $ZodCheckLessThan({ check: "less_than", ...normalizeParams(params), value, inclusive: false }); } __name(_lt, "_lt"); // @__NO_SIDE_EFFECTS__ function _lte(value, params) { return new $ZodCheckLessThan({ check: "less_than", ...normalizeParams(params), value, inclusive: true }); } __name(_lte, "_lte"); // @__NO_SIDE_EFFECTS__ function _gt(value, params) { return new $ZodCheckGreaterThan({ check: "greater_than", ...normalizeParams(params), value, inclusive: false }); } __name(_gt, "_gt"); // @__NO_SIDE_EFFECTS__ function _gte(value, params) { return new $ZodCheckGreaterThan({ check: "greater_than", ...normalizeParams(params), value, inclusive: true }); } __name(_gte, "_gte"); // @__NO_SIDE_EFFECTS__ function _positive(params) { return /* @__PURE__ */ _gt(0, params); } __name(_positive, "_positive"); // @__NO_SIDE_EFFECTS__ function _negative(params) { return /* @__PURE__ */ _lt(0, params); } __name(_negative, "_negative"); // @__NO_SIDE_EFFECTS__ function _nonpositive(params) { return /* @__PURE__ */ _lte(0, params); } __name(_nonpositive, "_nonpositive"); // @__NO_SIDE_EFFECTS__ function _nonnegative(params) { return /* @__PURE__ */ _gte(0, params); } __name(_nonnegative, "_nonnegative"); // @__NO_SIDE_EFFECTS__ function _multipleOf(value, params) { return new $ZodCheckMultipleOf({ check: "multiple_of", ...normalizeParams(params), value }); } __name(_multipleOf, "_multipleOf"); // @__NO_SIDE_EFFECTS__ function _maxSize(maximum, params) { return new $ZodCheckMaxSize({ check: "max_size", ...normalizeParams(params), maximum }); } __name(_maxSize, "_maxSize"); // @__NO_SIDE_EFFECTS__ function _minSize(minimum, params) { return new $ZodCheckMinSize({ check: "min_size", ...normalizeParams(params), minimum }); } __name(_minSize, "_minSize"); // @__NO_SIDE_EFFECTS__ function _size(size, params) { return new $ZodCheckSizeEquals({ check: "size_equals", ...normalizeParams(params), size }); } __name(_size, "_size"); // @__NO_SIDE_EFFECTS__ function _maxLength(maximum, params) { const ch = new $ZodCheckMaxLength({ check: "max_length", ...normalizeParams(params), maximum }); return ch; } __name(_maxLength, "_maxLength"); // @__NO_SIDE_EFFECTS__ function _minLength(minimum, params) { return new $ZodCheckMinLength({ check: "min_length", ...normalizeParams(params), minimum }); } __name(_minLength, "_minLength"); // @__NO_SIDE_EFFECTS__ function _length(length, params) { return new $ZodCheckLengthEquals({ check: "length_equals", ...normalizeParams(params), length }); } __name(_length, "_length"); // @__NO_SIDE_EFFECTS__ function _regex(pattern, params) { return new $ZodCheckRegex({ check: "string_format", format: "regex", ...normalizeParams(params), pattern }); } __name(_regex, "_regex"); // @__NO_SIDE_EFFECTS__ function _lowercase(params) { return new $ZodCheckLowerCase({ check: "string_format", format: "lowercase", ...normalizeParams(params) }); } __name(_lowercase, "_lowercase"); // @__NO_SIDE_EFFECTS__ function _uppercase(params) { return new $ZodCheckUpperCase({ check: "string_format", format: "uppercase", ...normalizeParams(params) }); } __name(_uppercase, "_uppercase"); // @__NO_SIDE_EFFECTS__ function _includes(includes, params) { return new $ZodCheckIncludes({ check: "string_format", format: "includes", ...normalizeParams(params), includes }); } __name(_includes, "_includes"); // @__NO_SIDE_EFFECTS__ function _startsWith(prefix, params) { return new $ZodCheckStartsWith({ check: "string_format", format: "starts_with", ...normalizeParams(params), prefix }); } __name(_startsWith, "_startsWith"); // @__NO_SIDE_EFFECTS__ function _endsWith(suffix, params) { return new $ZodCheckEndsWith({ check: "string_format", format: "ends_with", ...normalizeParams(params), suffix }); } __name(_endsWith, "_endsWith"); // @__NO_SIDE_EFFECTS__ function _property(property, schema2, params) { return new $ZodCheckProperty({ check: "property", property, schema: schema2, ...normalizeParams(params) }); } __name(_property, "_property"); // @__NO_SIDE_EFFECTS__ function _properties(shape, params) { return new $ZodCheckProperties({ check: "properties", shape, ...normalizeParams(params) }); } __name(_properties, "_properties"); // @__NO_SIDE_EFFECTS__ function _mime(types3, params) { return new $ZodCheckMimeType({ check: "mime_type", mime: types3, ...normalizeParams(params) }); } __name(_mime, "_mime"); // @__NO_SIDE_EFFECTS__ function _overwrite(tx) { return new $ZodCheckOverwrite({ check: "overwrite", tx }); } __name(_overwrite, "_overwrite"); // @__NO_SIDE_EFFECTS__ function _normalize(form) { return /* @__PURE__ */ _overwrite((input2) => input2.normalize(form)); } __name(_normalize, "_normalize"); // @__NO_SIDE_EFFECTS__ function _trim() { return /* @__PURE__ */ _overwrite((input2) => input2.trim()); } __name(_trim, "_trim"); // @__NO_SIDE_EFFECTS__ function _toLowerCase() { return /* @__PURE__ */ _overwrite((input2) => input2.toLowerCase()); } __name(_toLowerCase, "_toLowerCase"); // @__NO_SIDE_EFFECTS__ function _toUpperCase() { return /* @__PURE__ */ _overwrite((input2) => input2.toUpperCase()); } __name(_toUpperCase, "_toUpperCase"); // @__NO_SIDE_EFFECTS__ function _slugify() { return /* @__PURE__ */ _overwrite((input2) => slugify(input2)); } __name(_slugify, "_slugify"); // @__NO_SIDE_EFFECTS__ function _array(Class2, element, params) { return new Class2({ type: "array", element, // get element() { // return element; // }, ...normalizeParams(params) }); } __name(_array, "_array"); // @__NO_SIDE_EFFECTS__ function _union(Class2, options, params) { return new Class2({ type: "union", options, ...normalizeParams(params) }); } __name(_union, "_union"); function _xor(Class2, options, params) { return new Class2({ type: "union", options, inclusive: false, ...normalizeParams(params) }); } __name(_xor, "_xor"); // @__NO_SIDE_EFFECTS__ function _discriminatedUnion(Class2, discriminator, options, params) { return new Class2({ type: "union", options, discriminator, ...normalizeParams(params) }); } __name(_discriminatedUnion, "_discriminatedUnion"); // @__NO_SIDE_EFFECTS__ function _intersection(Class2, left, right) { return new Class2({ type: "intersection", left, right }); } __name(_intersection, "_intersection"); // @__NO_SIDE_EFFECTS__ function _tuple(Class2, items, _paramsOrRest, _params) { const hasRest = _paramsOrRest instanceof $ZodType; const params = hasRest ? _params : _paramsOrRest; const rest = hasRest ? _paramsOrRest : null; return new Class2({ type: "tuple", items, rest, ...normalizeParams(params) }); } __name(_tuple, "_tuple"); // @__NO_SIDE_EFFECTS__ function _record(Class2, keyType, valueType, params) { return new Class2({ type: "record", keyType, valueType, ...normalizeParams(params) }); } __name(_record, "_record"); // @__NO_SIDE_EFFECTS__ function _map(Class2, keyType, valueType, params) { return new Class2({ type: "map", keyType, valueType, ...normalizeParams(params) }); } __name(_map, "_map"); // @__NO_SIDE_EFFECTS__ function _set(Class2, valueType, params) { return new Class2({ type: "set", valueType, ...normalizeParams(params) }); } __name(_set, "_set"); // @__NO_SIDE_EFFECTS__ function _enum(Class2, values, params) { const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values; return new Class2({ type: "enum", entries, ...normalizeParams(params) }); } __name(_enum, "_enum"); // @__NO_SIDE_EFFECTS__ function _nativeEnum(Class2, entries, params) { return new Class2({ type: "enum", entries, ...normalizeParams(params) }); } __name(_nativeEnum, "_nativeEnum"); // @__NO_SIDE_EFFECTS__ function _literal(Class2, value, params) { return new Class2({ type: "literal", values: Array.isArray(value) ? value : [value], ...normalizeParams(params) }); } __name(_literal, "_literal"); // @__NO_SIDE_EFFECTS__ function _file(Class2, params) { return new Class2({ type: "file", ...normalizeParams(params) }); } __name(_file, "_file"); // @__NO_SIDE_EFFECTS__ function _transform(Class2, fn) { return new Class2({ type: "transform", transform: fn }); } __name(_transform, "_transform"); // @__NO_SIDE_EFFECTS__ function _optional(Class2, innerType) { return new Class2({ type: "optional", innerType }); } __name(_optional, "_optional"); // @__NO_SIDE_EFFECTS__ function _nullable(Class2, innerType) { return new Class2({ type: "nullable", innerType }); } __name(_nullable, "_nullable"); // @__NO_SIDE_EFFECTS__ function _default(Class2, innerType, defaultValue) { return new Class2({ type: "default", innerType, get defaultValue() { return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue); } }); } __name(_default, "_default"); // @__NO_SIDE_EFFECTS__ function _nonoptional(Class2, innerType, params) { return new Class2({ type: "nonoptional", innerType, ...normalizeParams(params) }); } __name(_nonoptional, "_nonoptional"); // @__NO_SIDE_EFFECTS__ function _success(Class2, innerType) { return new Class2({ type: "success", innerType }); } __name(_success, "_success"); // @__NO_SIDE_EFFECTS__ function _catch(Class2, innerType, catchValue) { return new Class2({ type: "catch", innerType, catchValue: typeof catchValue === "function" ? catchValue : constantCatch(catchValue) }); } __name(_catch, "_catch"); // @__NO_SIDE_EFFECTS__ function _pipe(Class2, in_, out) { return new Class2({ type: "pipe", in: in_, out }); } __name(_pipe, "_pipe"); // @__NO_SIDE_EFFECTS__ function _readonly(Class2, innerType) { return new Class2({ type: "readonly", innerType }); } __name(_readonly, "_readonly"); // @__NO_SIDE_EFFECTS__ function _templateLiteral(Class2, parts, params) { return new Class2({ type: "template_literal", parts, ...normalizeParams(params) }); } __name(_templateLiteral, "_templateLiteral"); // @__NO_SIDE_EFFECTS__ function _lazy(Class2, getter) { return new Class2({ type: "lazy", getter }); } __name(_lazy, "_lazy"); // @__NO_SIDE_EFFECTS__ function _promise(Class2, innerType) { return new Class2({ type: "promise", innerType }); } __name(_promise, "_promise"); // @__NO_SIDE_EFFECTS__ function _custom(Class2, fn, _params) { const norm = normalizeParams(_params); norm.abort ?? (norm.abort = true); const schema2 = new Class2({ type: "custom", check: "custom", fn, ...norm }); return schema2; } __name(_custom, "_custom"); // @__NO_SIDE_EFFECTS__ function _refine(Class2, fn, _params) { const schema2 = new Class2({ type: "custom", check: "custom", fn, ...normalizeParams(_params) }); return schema2; } __name(_refine, "_refine"); // @__NO_SIDE_EFFECTS__ function _superRefine(fn, params) { const ch = /* @__PURE__ */ _check((payload) => { payload.addIssue = (issue2) => { if (typeof issue2 === "string") { payload.issues.push(issue(issue2, payload.value, ch._zod.def)); } else { const _issue = issue2; if (_issue.fatal) _issue.continue = false; _issue.code ?? (_issue.code = "custom"); if (!("input" in _issue)) _issue.input = payload.value; _issue.inst ?? (_issue.inst = ch); _issue.continue ?? (_issue.continue = !ch._zod.def.abort); payload.issues.push(issue(_issue)); } }; return fn(payload.value, payload); }, params); return ch; } __name(_superRefine, "_superRefine"); // @__NO_SIDE_EFFECTS__ function _check(fn, params) { const ch = new $ZodCheck({ check: "custom", ...normalizeParams(params) }); ch._zod.check = fn; return ch; } __name(_check, "_check"); // @__NO_SIDE_EFFECTS__ function describe(description) { const ch = new $ZodCheck({ check: "describe" }); ch._zod.onattach = [ (inst) => { const existing = globalRegistry.get(inst) ?? {}; globalRegistry.add(inst, { ...existing, description }); } ]; ch._zod.check = () => { }; return ch; } __name(describe, "describe"); // @__NO_SIDE_EFFECTS__ function meta(metadata) { const ch = new $ZodCheck({ check: "meta" }); ch._zod.onattach = [ (inst) => { const existing = globalRegistry.get(inst) ?? {}; globalRegistry.add(inst, { ...existing, ...metadata }); } ]; ch._zod.check = () => { }; return ch; } __name(meta, "meta"); // @__NO_SIDE_EFFECTS__ function _stringbool(Classes, _params) { const params = normalizeParams(_params); let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"]; let falsyArray = params.falsy ?? ["false", "0", "no", "off", "n", "disabled"]; if (params.case !== "sensitive") { truthyArray = truthyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v); falsyArray = falsyArray.map((v) => typeof v === "string" ? v.toLowerCase() : v); } const truthySet = new Set(truthyArray); const falsySet = new Set(falsyArray); const _Codec = Classes.Codec ?? $ZodCodec; const _Boolean = Classes.Boolean ?? $ZodBoolean; const _String = Classes.String ?? $ZodString; const stringSchema = new _String({ type: "string", error: params.error }); const booleanSchema = new _Boolean({ type: "boolean", error: params.error }); const codec2 = new _Codec({ type: "pipe", in: stringSchema, out: booleanSchema, transform: /* @__PURE__ */ __name(((input2, payload) => { let data = input2; if (params.case !== "sensitive") data = data.toLowerCase(); if (truthySet.has(data)) { return true; } else if (falsySet.has(data)) { return false; } else { payload.issues.push({ code: "invalid_value", expected: "stringbool", values: [...truthySet, ...falsySet], input: payload.value, inst: codec2, continue: false }); return {}; } }), "transform"), reverseTransform: /* @__PURE__ */ __name(((input2, _payload) => { if (input2 === true) { return truthyArray[0] || "true"; } else { return falsyArray[0] || "false"; } }), "reverseTransform"), error: params.error }); codec2._zod.bag.truthy = truthyArray; codec2._zod.bag.falsy = falsyArray; codec2._zod.bag.case = params.case ?? "insensitive"; return codec2; } __name(_stringbool, "_stringbool"); // @__NO_SIDE_EFFECTS__ function _stringFormat(Class2, format, fnOrRegex, _params = {}) { const params = normalizeParams(_params); const def = { check: "string_format", type: "string", format, fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val), ...params }; if (fnOrRegex instanceof RegExp) { def.pattern = fnOrRegex; } const inst = new Class2(def); return inst; } __name(_stringFormat, "_stringFormat"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.js function assignProps(target, ...sources) { for (const source of sources) { for (const key of Reflect.ownKeys(source)) { if (Object.prototype.propertyIsEnumerable.call(source, key)) { assignProp(target, key, source[key]); } } } return target; } __name(assignProps, "assignProps"); function initializeContext(params) { let target = params?.target ?? "draft-2020-12"; if (target === "draft-4") target = "draft-04"; if (target === "draft-7") target = "draft-07"; return { processors: params.processors ?? {}, metadataRegistry: params?.metadata ?? globalRegistry, target, unrepresentable: params?.unrepresentable ?? "throw", override: params?.override ?? (() => { }), io: params?.io ?? "output", counter: 0, seen: /* @__PURE__ */ new Map(), sharedDefsExtractedFor: void 0, sharedEmitDoneFor: void 0, cycles: params?.cycles ?? "ref", reused: params?.reused ?? "inline", intersections: [], deferred: [], external: params?.external ?? void 0 }; } __name(initializeContext, "initializeContext"); function handleUnrepresentable(schema2, ctx, json2, params, message) { const result = typeof ctx.unrepresentable === "function" ? ctx.unrepresentable({ zodSchema: schema2, path: params.path, message }) : ctx.unrepresentable; if (result === "any") return false; if (result === void 0 || result === "throw") throw new Error(message); Object.assign(json2, result); return true; } __name(handleUnrepresentable, "handleUnrepresentable"); function processSchema(schema2, ctx, _params = { path: [], schemaPath: [] }) { var _a4; const def = schema2._zod.def; const seen = ctx.seen.get(schema2); if (seen) { seen.count++; const isCycle = _params.schemaPath.includes(schema2); if (isCycle) { seen.cycle = _params.path; } return seen.schema; } const result = { schema: {}, count: 1, cycle: void 0, path: _params.path }; ctx.seen.set(schema2, result); ctx.sharedDefsExtractedFor = void 0; ctx.sharedEmitDoneFor = void 0; const overrideSchema = schema2._zod.toJSONSchema?.(); if (overrideSchema) { result.schema = overrideSchema; } else { const params = { ..._params, schemaPath: [..._params.schemaPath, schema2], path: _params.path }; if (schema2._zod.processJSONSchema) { schema2._zod.processJSONSchema(ctx, result.schema, params); } else { const _json = result.schema; const processor = ctx.processors[def.type]; if (!processor) { throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`); } processor(schema2, ctx, _json, params); } const parent = schema2._zod.parent; if (parent) { if (!result.ref) result.ref = parent; processSchema(parent, ctx, params); ctx.seen.get(parent).isParent = true; } } const meta3 = ctx.metadataRegistry.get(schema2); if (meta3) assignProps(result.schema, meta3); if (ctx.io === "input" && isTransforming(schema2)) { delete result.schema.examples; delete result.schema.default; } if (ctx.io === "input" && "_prefault" in result.schema) (_a4 = result.schema).default ?? (_a4.default = result.schema._prefault); delete result.schema._prefault; const _result = ctx.seen.get(schema2); return _result.schema; } __name(processSchema, "processSchema"); function encodeJSONPointerSegment(segment) { return segment.replace(/~/g, "~0").replace(/\//g, "~1"); } __name(encodeJSONPointerSegment, "encodeJSONPointerSegment"); function extractDefs(ctx, schema2) { const root5 = ctx.seen.get(schema2); if (!root5) throw new Error("Unprocessed schema. This is a bug in Zod."); if (ctx.external && ctx.sharedDefsExtractedFor === ctx.external) return; const idToSchema = /* @__PURE__ */ new Map(); for (const entry of ctx.seen.entries()) { const id = ctx.metadataRegistry.get(entry[0])?.id; if (id) { const existing = idToSchema.get(id); if (existing && existing !== entry[0]) { throw new Error(`Duplicate schema id "${id}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`); } idToSchema.set(id, entry[0]); } } const makeURI = /* @__PURE__ */ __name((entry) => { const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions"; if (ctx.external) { const externalId = ctx.external.registry.get(entry[0])?.id; const uriGenerator = ctx.external.uri ?? ((id2) => id2); if (externalId) { return { ref: uriGenerator(externalId) }; } const id = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`; entry[1].defId = id; return { defId: id, ref: `${uriGenerator("__shared")}#/${defsSegment}/${encodeJSONPointerSegment(id)}` }; } const uriPrefix = `#`; const defUriPrefix = `${uriPrefix}/${defsSegment}/`; if (entry[1] === root5 && !entry[1].schema.id) { return { ref: uriPrefix }; } const defId = entry[1].schema.id ?? `__schema${ctx.counter++}`; return { defId, ref: defUriPrefix + encodeJSONPointerSegment(defId) }; }, "makeURI"); const extractToDef = /* @__PURE__ */ __name((entry) => { if (entry[1].schema.$ref) { return; } const seen = entry[1]; const { ref, defId } = makeURI(entry); seen.def = { ...seen.schema }; if (defId) seen.defId = defId; const schema3 = seen.schema; for (const key in schema3) { delete schema3[key]; } schema3.$ref = ref; }, "extractToDef"); if (ctx.cycles === "throw") { for (const entry of ctx.seen.entries()) { const seen = entry[1]; if (seen.cycle) { throw new Error(`Cycle detected: #/${seen.cycle?.join("/")}/ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`); } } } for (const entry of ctx.seen.entries()) { const seen = entry[1]; if (schema2 === entry[0]) { extractToDef(entry); continue; } if (ctx.external) { const ext = ctx.external.registry.get(entry[0])?.id; if (schema2 !== entry[0] && ext) { extractToDef(entry); continue; } } const id = ctx.metadataRegistry.get(entry[0])?.id; if (id) { extractToDef(entry); continue; } if (seen.cycle) { extractToDef(entry); continue; } if (seen.count > 1) { if (ctx.reused === "ref") { extractToDef(entry); } } } if (ctx.external) ctx.sharedDefsExtractedFor = ctx.external; } __name(extractDefs, "extractDefs"); function compactTypeUnion(schema2) { const options = schema2.anyOf; if (!Array.isArray(options) || options.length === 0 || schema2.type !== void 0) return; const types3 = []; for (const option of options) { if (!option || typeof option !== "object") return; compactTypeUnion(option); const keys = Object.keys(option); if (keys.length !== 1 || keys[0] !== "type") return; const type = option.type; for (const member of Array.isArray(type) ? type : [type]) { if (typeof member !== "string") return; if (!types3.includes(member)) types3.push(member); } } delete schema2.anyOf; schema2.type = types3.length === 1 ? types3[0] : types3; } __name(compactTypeUnion, "compactTypeUnion"); var FOLDABLE_KEYS = /* @__PURE__ */ new Set(["type", "properties", "required", "additionalProperties"]); var UNION_KEYS = ["oneOf", "anyOf"]; function undeclaredConstraint(member) { const extra = member.additionalProperties; if (extra === void 0 || extra === false || typeof extra !== "object" || extra === null) return null; return Object.keys(extra).length ? extra : null; } __name(undeclaredConstraint, "undeclaredConstraint"); function foldObjects(members2) { const objects = []; for (const member of members2) { if (typeof member !== "object" || member.type !== "object") return null; for (const key in member) { if (!FOLDABLE_KEYS.has(key)) return null; } objects.push(member); } const properties = {}; const required2 = /* @__PURE__ */ new Set(); for (const object2 of objects) { for (const key in object2.properties) { if (Object.prototype.hasOwnProperty.call(properties, key)) continue; const parts = []; for (const other of objects) { const part = other.properties?.[key] ?? undeclaredConstraint(other); if (part === null || part === void 0) continue; if (!parts.some((seen) => JSON.stringify(seen) === JSON.stringify(part))) parts.push(part); } const merged = parts.length === 1 ? parts[0] : foldObjects(parts) ?? { allOf: parts }; assignProp(properties, key, merged); } for (const key of object2.required ?? []) required2.add(key); } const folded = { type: "object", properties }; if (required2.size) folded.required = [...required2]; if (objects.every((object2) => object2.additionalProperties === false)) { folded.additionalProperties = false; } else { const constraints = []; for (const object2 of objects) { const constraint = undeclaredConstraint(object2); if (constraint && !constraints.some((seen) => JSON.stringify(seen) === JSON.stringify(constraint))) constraints.push(constraint); } if (constraints.length === 1) folded.additionalProperties = constraints[0]; else if (constraints.length > 1) folded.additionalProperties = { allOf: constraints }; } return folded; } __name(foldObjects, "foldObjects"); function foldIntersection(json2) { const allOf = json2.allOf; if (!Array.isArray(allOf) || allOf.length < 2) return; for (const key of FOLDABLE_KEYS) if (key in json2) return; const unions = allOf.filter((m3) => UNION_KEYS.some((k5) => Array.isArray(m3[k5]))); let folded = null; if (!unions.length) { folded = foldObjects(allOf); } else { const union2 = unions[0]; const keyword = UNION_KEYS.find((k5) => Array.isArray(union2[k5])); if (Object.keys(union2).length !== 1) return; const rest = allOf.filter((m3) => m3 !== union2); const branches = union2[keyword].map((branch) => foldObjects([...rest, branch])); if (branches.some((b5) => !b5)) return; folded = { [keyword]: branches }; } if (!folded) return; delete json2.allOf; assignProps(json2, folded); } __name(foldIntersection, "foldIntersection"); function finalize(ctx, schema2) { const root5 = ctx.seen.get(schema2); if (!root5) throw new Error("Unprocessed schema. This is a bug in Zod."); const flattenRef = /* @__PURE__ */ __name((zodSchema) => { const seen = ctx.seen.get(zodSchema); if (seen.ref === null) return; const schema3 = seen.def ?? seen.schema; const _cached = { ...schema3 }; const ref = seen.ref; seen.ref = null; if (ref) { flattenRef(ref); const refSeen = ctx.seen.get(ref); const refSchema = refSeen.schema; if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) { schema3.allOf = schema3.allOf ?? []; schema3.allOf.push(refSchema); } else { assignProps(schema3, refSchema); } assignProps(schema3, _cached); const isParentRef = zodSchema._zod.parent === ref; if (isParentRef) { for (const key in schema3) { if (key === "$ref" || key === "allOf") continue; if (!(key in _cached)) { delete schema3[key]; } } } if (refSchema.$ref && refSeen.def) { for (const key in schema3) { if (key === "$ref" || key === "allOf") continue; if (key in refSeen.def && JSON.stringify(schema3[key]) === JSON.stringify(refSeen.def[key])) { delete schema3[key]; } } } } const parent = zodSchema._zod.parent; if (parent && parent !== ref) { flattenRef(parent); const parentSeen = ctx.seen.get(parent); if (parentSeen?.schema.$ref) { schema3.$ref = parentSeen.schema.$ref; if (parentSeen.def) { for (const key in schema3) { if (key === "$ref" || key === "allOf") continue; if (key in parentSeen.def && JSON.stringify(schema3[key]) === JSON.stringify(parentSeen.def[key])) { delete schema3[key]; } } } } } ctx.override({ zodSchema, jsonSchema: schema3, path: seen.path ?? [] }); }, "flattenRef"); if (!ctx.external || ctx.sharedEmitDoneFor !== ctx.external) { for (const entry of [...ctx.seen.entries()].reverse()) { flattenRef(entry[0]); } if (ctx.target !== "openapi-3.0") { for (const entry of ctx.seen.entries()) { compactTypeUnion(entry[1].def ?? entry[1].schema); } } for (const rewrite of ctx.deferred) rewrite(); if (ctx.intersections.length) { const carriers = /* @__PURE__ */ new Map(); for (const seen of ctx.seen.values()) { for (const json2 of [seen.schema, seen.def]) { const allOf = json2?.allOf; if (!Array.isArray(allOf)) continue; const existing = carriers.get(allOf); if (existing) existing.push(json2); else carriers.set(allOf, [json2]); } } for (const allOf of ctx.intersections) { for (const json2 of carriers.get(allOf) ?? []) foldIntersection(json2); } } } const result = {}; if (ctx.target === "draft-2020-12") { result.$schema = "https://json-schema.org/draft/2020-12/schema"; } else if (ctx.target === "draft-07") { result.$schema = "http://json-schema.org/draft-07/schema#"; } else if (ctx.target === "draft-04") { result.$schema = "http://json-schema.org/draft-04/schema#"; } else if (ctx.target === "openapi-3.0") { } else { } if (ctx.external?.uri) { const id = ctx.external.registry.get(schema2)?.id; if (!id) throw new Error("Schema is missing an `id` property"); result.$id = ctx.external.uri(id); } assignProps(result, root5.defId ? root5.schema : root5.def ?? root5.schema); const rootMetaId = ctx.metadataRegistry.get(schema2)?.id; if (rootMetaId !== void 0 && result.id === rootMetaId) delete result.id; const defs = ctx.external?.defs ?? {}; if (!ctx.external || ctx.sharedEmitDoneFor !== ctx.external) { for (const entry of ctx.seen.entries()) { const seen = entry[1]; if (seen.def && seen.defId) { if (seen.def.id === seen.defId) delete seen.def.id; assignProp(defs, seen.defId, seen.def); } } } if (ctx.external) ctx.sharedEmitDoneFor = ctx.external; if (ctx.external) { } else { if (Object.keys(defs).length > 0) { if (ctx.target === "draft-2020-12") { result.$defs = defs; } else { result.definitions = defs; } } } try { const finalized = JSON.parse(JSON.stringify(result)); Object.defineProperty(finalized, "~standard", { value: { ...schema2["~standard"], jsonSchema: { input: createStandardJSONSchemaMethod(schema2, "input", ctx.processors), output: createStandardJSONSchemaMethod(schema2, "output", ctx.processors) } }, enumerable: false, writable: false }); return finalized; } catch (_err) { throw new Error("Error converting schema to JSON."); } } __name(finalize, "finalize"); function isTransforming(_schema, _ctx) { const ctx = _ctx ?? { seen: /* @__PURE__ */ new Set() }; if (ctx.seen.has(_schema)) return false; ctx.seen.add(_schema); const def = _schema._zod.def; if (def.type === "transform") return true; if (def.type === "array") return isTransforming(def.element, ctx); if (def.type === "set") return isTransforming(def.valueType, ctx); if (def.type === "lazy") return isTransforming(def.getter(), ctx); if (def.type === "promise" || def.type === "optional" || def.type === "nonoptional" || def.type === "nullable" || def.type === "readonly" || def.type === "default" || def.type === "prefault" || def.type === "catch") { return isTransforming(def.innerType, ctx); } if (def.type === "intersection") { return isTransforming(def.left, ctx) || isTransforming(def.right, ctx); } if (def.type === "record" || def.type === "map") { return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx); } if (def.type === "pipe") { if (_schema._zod.traits.has("$ZodCodec")) return true; return isTransforming(def.in, ctx) || isTransforming(def.out, ctx); } if (def.type === "object") { for (const key in def.shape) { if (isTransforming(def.shape[key], ctx)) return true; } return false; } if (def.type === "union") { for (const option of def.options) { if (isTransforming(option, ctx)) return true; } return false; } if (def.type === "tuple") { for (const item of def.items) { if (isTransforming(item, ctx)) return true; } if (def.rest && isTransforming(def.rest, ctx)) return true; return false; } return false; } __name(isTransforming, "isTransforming"); var createToJSONSchemaMethod = /* @__PURE__ */ __name((schema2, processors = {}) => (params) => { const ctx = initializeContext({ ...params, processors }); processSchema(schema2, ctx); extractDefs(ctx, schema2); return finalize(ctx, schema2); }, "createToJSONSchemaMethod"); var createStandardJSONSchemaMethod = /* @__PURE__ */ __name((schema2, io, processors = {}) => (params) => { const { libraryOptions, target } = params ?? {}; const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors }); processSchema(schema2, ctx); extractDefs(ctx, schema2); return finalize(ctx, schema2); }, "createStandardJSONSchemaMethod"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/json-schema-processors.js var narrowMin = /* @__PURE__ */ __name((agg, key, value) => { if (agg[key] === void 0 || value > agg[key]) agg[key] = value; }, "narrowMin"); var narrowMax = /* @__PURE__ */ __name((agg, key, value) => { if (agg[key] === void 0 || value < agg[key]) agg[key] = value; }, "narrowMax"); var narrowBoth = /* @__PURE__ */ __name((agg, value) => { narrowMin(agg, "minimum", value); narrowMax(agg, "maximum", value); }, "narrowBoth"); var addDivisor = /* @__PURE__ */ __name((agg, value) => { agg.multipleOf ?? (agg.multipleOf = []); if (!agg.multipleOf.includes(value)) agg.multipleOf.push(value); }, "addDivisor"); var addPattern = /* @__PURE__ */ __name((agg, pattern) => { agg.patterns ?? (agg.patterns = /* @__PURE__ */ new Set()); agg.patterns.add(pattern); }, "addPattern"); var intersectMime = /* @__PURE__ */ __name((agg, mime) => { agg.mime = agg.mime ? agg.mime.filter((m3) => mime.includes(m3)) : [...mime]; }, "intersectMime"); var setFormat = /* @__PURE__ */ __name((agg, format) => { agg.format = format; if (format.includes("int")) agg.isInt = true; }, "setFormat"); var minContributor = /* @__PURE__ */ __name((agg, def) => narrowMin(agg, "minimum", def.minimum), "minContributor"); var maxContributor = /* @__PURE__ */ __name((agg, def) => narrowMax(agg, "maximum", def.maximum), "maxContributor"); var formatContributor = /* @__PURE__ */ __name((ranges) => (agg, def) => { setFormat(agg, def.format); const [minimum, maximum] = ranges[def.format]; narrowMin(agg, "minimum", minimum); narrowMax(agg, "maximum", maximum); }, "formatContributor"); var contributors = { greater_than: /* @__PURE__ */ __name((agg, def) => narrowMin(agg, def.inclusive ? "minimum" : "exclusiveMinimum", def.value), "greater_than"), less_than: /* @__PURE__ */ __name((agg, def) => narrowMax(agg, def.inclusive ? "maximum" : "exclusiveMaximum", def.value), "less_than"), multiple_of: /* @__PURE__ */ __name((agg, def) => addDivisor(agg, def.value), "multiple_of"), number_format: formatContributor(NUMBER_FORMAT_RANGES), bigint_format: formatContributor(BIGINT_FORMAT_RANGES), min_length: minContributor, max_length: maxContributor, length_equals: /* @__PURE__ */ __name((agg, def) => narrowBoth(agg, def.length), "length_equals"), min_size: minContributor, max_size: maxContributor, size_equals: /* @__PURE__ */ __name((agg, def) => narrowBoth(agg, def.size), "size_equals"), string_format: /* @__PURE__ */ __name((agg, def) => { setFormat(agg, def.format); if (def.pattern) addPattern(agg, def.pattern); if (def.format === "base64" || def.format === "base64url") agg.contentEncoding = def.format; if (def.local || def.precision === -1) agg.laxFormat = true; }, "string_format"), mime_type: /* @__PURE__ */ __name((agg, def) => intersectMime(agg, def.mime), "mime_type") }; function aggregateChecks(schema2) { const agg = {}; const def = schema2._zod.def; const list = schema2._zod.traits.has("$ZodCheck") ? [schema2, ...def.checks ?? []] : def.checks ?? []; for (const ch of list) contributors[ch._zod.def.check]?.(agg, ch._zod.def); const bag = schema2._zod.bag; if (bag.minimum !== void 0) narrowMin(agg, "minimum", bag.minimum); if (bag.exclusiveMinimum !== void 0) narrowMin(agg, "exclusiveMinimum", bag.exclusiveMinimum); if (bag.maximum !== void 0) narrowMax(agg, "maximum", bag.maximum); if (bag.exclusiveMaximum !== void 0) narrowMax(agg, "exclusiveMaximum", bag.exclusiveMaximum); if (bag.multipleOf !== void 0) addDivisor(agg, bag.multipleOf); if (bag.format !== void 0) { agg.format ?? (agg.format = bag.format); if (bag.format.includes("int")) agg.isInt = true; } if (bag.mime) intersectMime(agg, bag.mime); for (const pattern of bag.patterns ?? []) addPattern(agg, pattern); return agg; } __name(aggregateChecks, "aggregateChecks"); var formatMap = { guid: "uuid", url: "uri", datetime: "date-time", json_string: "json-string", regex: "" // do not set }; var exactPatterns = /* @__PURE__ */ new Map([ [base64Charset, base64], [base64urlCharset, base64url] ]); var exactPattern = /* @__PURE__ */ __name((p3) => exactPatterns.get(p3) ?? p3, "exactPattern"); var stringProcessor = /* @__PURE__ */ __name((schema2, ctx, _json, _params) => { const json2 = _json; json2.type = "string"; const { minimum, maximum, format, patterns, contentEncoding, laxFormat } = aggregateChecks(schema2); if (typeof minimum === "number") json2.minLength = minimum; if (typeof maximum === "number") json2.maxLength = maximum; if (format) { json2.format = formatMap[format] ?? format; if (json2.format === "") delete json2.format; if (format === "time" || laxFormat) { delete json2.format; } } if (contentEncoding) json2.contentEncoding = contentEncoding; if (patterns && patterns.size > 0) { const patternList = [...patterns].map(exactPattern); if (patternList.length === 1) json2.pattern = patternList[0].source; else if (patternList.length > 1) { json2.allOf = [ ...patternList.map((regex) => ({ ...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {}, pattern: regex.source })) ]; } } }, "stringProcessor"); var numberProcessor = /* @__PURE__ */ __name((schema2, ctx, _json, params) => { const json2 = _json; const { minimum, maximum, multipleOf, exclusiveMaximum, exclusiveMinimum, isInt } = aggregateChecks(schema2); json2.type = isInt ? "integer" : "number"; const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY); const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY); const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0"; if (exMin) { if (legacy) { json2.minimum = exclusiveMinimum; json2.exclusiveMinimum = true; } else { json2.exclusiveMinimum = exclusiveMinimum; } } else if (typeof minimum === "number") { json2.minimum = minimum; } if (exMax) { if (legacy) { json2.maximum = exclusiveMaximum; json2.exclusiveMaximum = true; } else { json2.exclusiveMaximum = exclusiveMaximum; } } else if (typeof maximum === "number") { json2.maximum = maximum; } if (multipleOf) { const divisors = /* @__PURE__ */ new Set(); for (const divisor of multipleOf) { if (Number.isFinite(divisor) && divisor !== 0) divisors.add(Math.abs(divisor)); else handleUnrepresentable(schema2, ctx, json2, params, `A multipleOf divisor of ${divisor} cannot be represented in JSON Schema`); } const [first, ...rest] = divisors; if (first !== void 0) json2.multipleOf = first; if (rest.length) json2.allOf = [...json2.allOf ?? [], ...rest.map((m3) => ({ multipleOf: m3 }))]; } }, "numberProcessor"); var booleanProcessor = /* @__PURE__ */ __name((_schema, _ctx, json2, _params) => { json2.type = "boolean"; }, "booleanProcessor"); var bigintProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { handleUnrepresentable(schema2, ctx, json2, params, "BigInt cannot be represented in JSON Schema"); }, "bigintProcessor"); var symbolProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { handleUnrepresentable(schema2, ctx, json2, params, "Symbols cannot be represented in JSON Schema"); }, "symbolProcessor"); var nullProcessor = /* @__PURE__ */ __name((_schema, ctx, json2, _params) => { if (ctx.target === "openapi-3.0") { json2.type = "string"; json2.nullable = true; json2.enum = [null]; } else { json2.type = "null"; } }, "nullProcessor"); var undefinedProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { handleUnrepresentable(schema2, ctx, json2, params, "Undefined cannot be represented in JSON Schema"); }, "undefinedProcessor"); var voidProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { handleUnrepresentable(schema2, ctx, json2, params, "Void cannot be represented in JSON Schema"); }, "voidProcessor"); var neverProcessor = /* @__PURE__ */ __name((_schema, _ctx, json2, _params) => { json2.not = {}; }, "neverProcessor"); var anyProcessor = /* @__PURE__ */ __name((_schema, _ctx, _json, _params) => { }, "anyProcessor"); var unknownProcessor = /* @__PURE__ */ __name((_schema, _ctx, _json, _params) => { }, "unknownProcessor"); var dateProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { handleUnrepresentable(schema2, ctx, json2, params, "Date cannot be represented in JSON Schema"); }, "dateProcessor"); var enumProcessor = /* @__PURE__ */ __name((schema2, _ctx, json2, _params) => { const def = schema2._zod.def; const values = getEnumValues(def.entries); if (values.length === 0) { json2.not = {}; return; } if (values.every((v) => typeof v === "number")) json2.type = "number"; if (values.every((v) => typeof v === "string")) json2.type = "string"; json2.enum = values; }, "enumProcessor"); var literalProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { const def = schema2._zod.def; if (def.values.length === 0) { json2.not = {}; return; } const vals = []; for (const val of def.values) { if (val === void 0) { if (handleUnrepresentable(schema2, ctx, json2, params, "Literal `undefined` cannot be represented in JSON Schema")) return; } else if (typeof val === "bigint") { if (handleUnrepresentable(schema2, ctx, json2, params, "BigInt literals cannot be represented in JSON Schema")) return; vals.push(Number(val)); } else { vals.push(val); } } if (vals.length === 0) { } else if (vals.length === 1) { const val = vals[0]; json2.type = val === null ? "null" : typeof val; if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") { json2.enum = [val]; } else { json2.const = val; } } else { if (vals.every((v) => typeof v === "number")) json2.type = "number"; if (vals.every((v) => typeof v === "string")) json2.type = "string"; if (vals.every((v) => typeof v === "boolean")) json2.type = "boolean"; if (vals.every((v) => v === null)) json2.type = "null"; json2.enum = vals; } }, "literalProcessor"); var nanProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { handleUnrepresentable(schema2, ctx, json2, params, "NaN cannot be represented in JSON Schema"); }, "nanProcessor"); var templateLiteralProcessor = /* @__PURE__ */ __name((schema2, _ctx, json2, _params) => { const _json = json2; const pattern = schema2._zod.pattern; if (!pattern) throw new Error("Pattern not found in template literal"); _json.type = "string"; _json.pattern = pattern.source; }, "templateLiteralProcessor"); var fileProcessor = /* @__PURE__ */ __name((schema2, _ctx, json2, _params) => { const _json = json2; _json.type = "string"; _json.format = "binary"; _json.contentEncoding = "binary"; const { minimum, maximum, mime } = aggregateChecks(schema2); if (minimum !== void 0) _json.minLength = minimum; if (maximum !== void 0) _json.maxLength = maximum; if (!mime) return; if (mime.length === 0) _json.not = {}; else if (mime.length === 1) _json.contentMediaType = mime[0]; else _json.anyOf = mime.map((m3) => ({ contentMediaType: m3 })); }, "fileProcessor"); var successProcessor = /* @__PURE__ */ __name((_schema, _ctx, json2, _params) => { json2.type = "boolean"; }, "successProcessor"); var customProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { handleUnrepresentable(schema2, ctx, json2, params, "Custom types cannot be represented in JSON Schema"); }, "customProcessor"); var functionProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { handleUnrepresentable(schema2, ctx, json2, params, "Function types cannot be represented in JSON Schema"); }, "functionProcessor"); var transformProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { handleUnrepresentable(schema2, ctx, json2, params, "Transforms cannot be represented in JSON Schema"); }, "transformProcessor"); var mapProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { handleUnrepresentable(schema2, ctx, json2, params, "Map cannot be represented in JSON Schema"); }, "mapProcessor"); var setProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { handleUnrepresentable(schema2, ctx, json2, params, "Set cannot be represented in JSON Schema"); }, "setProcessor"); var arrayProcessor = /* @__PURE__ */ __name((schema2, ctx, _json, params) => { const json2 = _json; const def = schema2._zod.def; const { minimum, maximum } = aggregateChecks(schema2); if (typeof minimum === "number") json2.minItems = minimum; if (typeof maximum === "number") json2.maxItems = maximum; json2.type = "array"; json2.items = processSchema(def.element, ctx, { ...params, path: [...params.path, "items"] }); }, "arrayProcessor"); function inputOptin(schema2) { const def = schema2._zod.def; if (def.type === "pipe" && def.in._zod.traits.has("$ZodTransform")) { return inputOptin(def.out); } if (def.type === "catch") { return inputOptin(def.innerType); } return schema2._zod.optin; } __name(inputOptin, "inputOptin"); var objectProcessor = /* @__PURE__ */ __name((schema2, ctx, _json, params) => { const json2 = _json; const def = schema2._zod.def; const shape = def.shape; const symbolKeys = Object.getOwnPropertySymbols(shape); if (symbolKeys.length && handleUnrepresentable(schema2, ctx, json2, params, "Symbol keys cannot be represented in JSON Schema")) { return; } json2.type = "object"; json2.properties = {}; for (const key in shape) { assignProp(json2.properties, key, processSchema(shape[key], ctx, { ...params, path: [...params.path, "properties", key] })); } const requiredKeys = []; for (const key of Object.keys(shape)) { const field = def.shape[key]; if (ctx.io === "input" ? inputOptin(field) === void 0 : field._zod.optout === void 0) { requiredKeys.push(key); } } if (requiredKeys.length > 0) { json2.required = requiredKeys; } if (def.catchall?._zod.def.type === "never") { json2.additionalProperties = false; } else if (!def.catchall) { if (ctx.io === "output") json2.additionalProperties = false; } else if (def.catchall) { json2.additionalProperties = processSchema(def.catchall, ctx, { ...params, path: [...params.path, "additionalProperties"] }); } }, "objectProcessor"); var unionProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { const def = schema2._zod.def; const isExclusive = def.inclusive === false; const options = def.options.map((x, i5) => processSchema(x, ctx, { ...params, path: [...params.path, isExclusive ? "oneOf" : "anyOf", i5] })); if (isExclusive) { json2.oneOf = options; } else { json2.anyOf = options; } }, "unionProcessor"); var intersectionProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { const def = schema2._zod.def; const a5 = processSchema(def.left, ctx, { ...params, path: [...params.path, "allOf", 0] }); const b5 = processSchema(def.right, ctx, { ...params, path: [...params.path, "allOf", 1] }); const isSimpleIntersection = /* @__PURE__ */ __name((val) => "allOf" in val && Object.keys(val).length === 1, "isSimpleIntersection"); const allOf = [ ...isSimpleIntersection(a5) ? a5.allOf : [a5], ...isSimpleIntersection(b5) ? b5.allOf : [b5] ]; json2.allOf = allOf; ctx.intersections.push(allOf); }, "intersectionProcessor"); var tupleProcessor = /* @__PURE__ */ __name((schema2, ctx, _json, params) => { const json2 = _json; const def = schema2._zod.def; json2.type = "array"; const prefixPath = ctx.target === "draft-2020-12" ? "prefixItems" : "items"; const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems"; const prefixItems = def.items.map((x, i5) => processSchema(x, ctx, { ...params, path: [...params.path, prefixPath, i5] })); const rest = def.rest ? processSchema(def.rest, ctx, { ...params, path: [...params.path, restPath, ...ctx.target === "openapi-3.0" ? [def.items.length] : []] }) : null; let minItems = def.items.length; while (minItems > 0) { const item = def.items[minItems - 1]; const optional2 = ctx.io === "input" ? inputOptin(item) !== void 0 : item._zod.optout === "optional"; if (!optional2) break; minItems--; } const maxItems = def.items.length; const isClosed = !def.rest; if (ctx.target === "draft-2020-12") { json2.prefixItems = prefixItems; if (isClosed) { json2.items = false; } else if (rest) { json2.items = rest; } if (minItems > 0) json2.minItems = minItems; if (isClosed) json2.maxItems = maxItems; } else if (ctx.target === "openapi-3.0") { json2.items = { anyOf: prefixItems }; if (rest) { json2.items.anyOf.push(rest); } if (minItems > 0) json2.minItems = minItems; if (isClosed) json2.maxItems = maxItems; } else { json2.items = prefixItems; if (isClosed) { json2.additionalItems = false; } else if (rest) { json2.additionalItems = rest; } if (minItems > 0) json2.minItems = minItems; if (isClosed) json2.maxItems = maxItems; } const { minimum, maximum } = aggregateChecks(schema2); if (typeof minimum === "number") json2.minItems = minimum; if (typeof maximum === "number") json2.maxItems = maximum; }, "tupleProcessor"); function stringifyKeyNames(bySchema, json2, visited) { if (json2.$ref) { if (visited.has(json2)) return json2; visited.add(json2); const def = bySchema.get(json2)?.def; if (!def) return json2; const inlined = stringifyKeyNames(bySchema, def, visited); return inlined === def ? json2 : inlined; } for (const keyword of ["anyOf", "oneOf"]) { const branches = json2[keyword]; if (!Array.isArray(branches)) continue; const mapped = branches.map((branch) => stringifyKeyNames(bySchema, branch, visited)); if (mapped.some((branch, i5) => branch !== branches[i5])) json2 = { ...json2, [keyword]: mapped }; } const types3 = Array.isArray(json2.type) ? json2.type : [json2.type]; const numericType = !types3.includes("string") && types3.some((t) => t === "number" || t === "integer"); const values = json2.enum ?? (json2.const !== void 0 ? [json2.const] : void 0); if (!numericType && !values?.some((v) => typeof v === "number")) return json2; const { minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf, format, id, ...rest } = json2; if (rest.enum) rest.enum = rest.enum.map((v) => typeof v === "number" ? String(v) : v); else if (typeof rest.const === "number") rest.const = String(rest.const); if (!numericType) return rest; rest.type = "string"; if (!values) rest.pattern = (types3.includes("number") ? number : integer).source; return rest; } __name(stringifyKeyNames, "stringifyKeyNames"); var pendingRecords = /* @__PURE__ */ new WeakMap(); function rewriteKeyNames(ctx) { const bySchema = /* @__PURE__ */ new Map(); for (const entry of ctx.seen.values()) { if (entry.def && !bySchema.has(entry.schema)) bySchema.set(entry.schema, entry); } const rewrites = /* @__PURE__ */ new Map(); for (const record2 of pendingRecords.get(ctx) ?? []) { const seen = ctx.seen.get(record2); const names = (seen?.def ?? seen?.schema)?.propertyNames; if (!names || names === true || rewrites.has(names)) continue; const rewritten = stringifyKeyNames(bySchema, names, /* @__PURE__ */ new Set()); if (rewritten !== names) rewrites.set(names, rewritten); } if (!rewrites.size) return; for (const entry of ctx.seen.values()) { for (const carrier of [entry.schema, entry.def]) { const rewritten = carrier && rewrites.get(carrier.propertyNames); if (rewritten) carrier.propertyNames = rewritten; } } } __name(rewriteKeyNames, "rewriteKeyNames"); var recordProcessor = /* @__PURE__ */ __name((schema2, ctx, _json, params) => { const json2 = _json; const def = schema2._zod.def; json2.type = "object"; const keyType = def.keyType; const patterns = aggregateChecks(keyType).patterns; if (def.mode === "loose" && patterns && patterns.size > 0) { const valueSchema = processSchema(def.valueType, ctx, { ...params, path: [...params.path, "patternProperties", "*"] }); json2.patternProperties = {}; for (const pattern of patterns) { assignProp(json2.patternProperties, exactPattern(pattern).source, valueSchema); } } else { if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") { json2.propertyNames = processSchema(def.keyType, ctx, { ...params, path: [...params.path, "propertyNames"] }); let pending = pendingRecords.get(ctx); if (!pending) { pending = []; pendingRecords.set(ctx, pending); ctx.deferred.push(() => rewriteKeyNames(ctx)); } pending.push(schema2); } json2.additionalProperties = processSchema(def.valueType, ctx, { ...params, path: [...params.path, "additionalProperties"] }); } const keyValues = keyType._zod.values; const omittableOnInput = ctx.io === "input" && inputOptin(def.valueType) !== void 0; if (keyValues && !def.partial && !omittableOnInput) { const validKeyValues = [...keyValues].filter((v) => typeof v === "string" || typeof v === "number"); if (validKeyValues.length > 0) { json2.required = validKeyValues.map(String); } } }, "recordProcessor"); var nullableProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { const def = schema2._zod.def; const inner = processSchema(def.innerType, ctx, params); const seen = ctx.seen.get(schema2); if (ctx.target === "openapi-3.0") { seen.ref = def.innerType; json2.nullable = true; } else { json2.anyOf = [inner, { type: "null" }]; } }, "nullableProcessor"); var nonoptionalProcessor = /* @__PURE__ */ __name((schema2, ctx, _json, params) => { const def = schema2._zod.def; processSchema(def.innerType, ctx, params); const seen = ctx.seen.get(schema2); seen.ref = def.innerType; }, "nonoptionalProcessor"); var UNREPRESENTABLE_DEFAULT = /* @__PURE__ */ Symbol(); function serializeDefaultValue(value, schema2, ctx, json2, params) { let unrepresentable = false; const serialized = JSON.stringify(value, (_, val) => { if (typeof val !== "bigint") return val; unrepresentable = true; return null; }); if (!unrepresentable) return JSON.parse(serialized); handleUnrepresentable(schema2, ctx, json2, params, "BigInt defaults cannot be represented in JSON Schema"); return UNREPRESENTABLE_DEFAULT; } __name(serializeDefaultValue, "serializeDefaultValue"); var defaultProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { const def = schema2._zod.def; processSchema(def.innerType, ctx, params); const seen = ctx.seen.get(schema2); seen.ref = def.innerType; const value = serializeDefaultValue(def.defaultValue, schema2, ctx, json2, params); if (value !== UNREPRESENTABLE_DEFAULT) json2.default = value; }, "defaultProcessor"); var prefaultProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { const def = schema2._zod.def; processSchema(def.innerType, ctx, params); const seen = ctx.seen.get(schema2); seen.ref = def.innerType; if (ctx.io !== "input") return; const value = serializeDefaultValue(def.defaultValue, schema2, ctx, json2, params); if (value !== UNREPRESENTABLE_DEFAULT) json2._prefault = value; }, "prefaultProcessor"); var catchProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { const def = schema2._zod.def; processSchema(def.innerType, ctx, params); const seen = ctx.seen.get(schema2); seen.ref = def.innerType; let catchValue; try { catchValue = def.catchValue(void 0); } catch { handleUnrepresentable(schema2, ctx, json2, params, "Dynamic catch values are not supported in JSON Schema"); return; } json2.default = catchValue; }, "catchProcessor"); var pipeProcessor = /* @__PURE__ */ __name((schema2, ctx, _json, params) => { const def = schema2._zod.def; const inIsTransform = def.in._zod.traits.has("$ZodTransform"); const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out; processSchema(innerType, ctx, params); const seen = ctx.seen.get(schema2); seen.ref = innerType; }, "pipeProcessor"); var readonlyProcessor = /* @__PURE__ */ __name((schema2, ctx, json2, params) => { const def = schema2._zod.def; processSchema(def.innerType, ctx, params); const seen = ctx.seen.get(schema2); seen.ref = def.innerType; json2.readOnly = true; }, "readonlyProcessor"); var promiseProcessor = /* @__PURE__ */ __name((schema2, ctx, _json, params) => { const def = schema2._zod.def; processSchema(def.innerType, ctx, params); const seen = ctx.seen.get(schema2); seen.ref = def.innerType; }, "promiseProcessor"); var optionalProcessor = /* @__PURE__ */ __name((schema2, ctx, _json, params) => { const def = schema2._zod.def; processSchema(def.innerType, ctx, params); const seen = ctx.seen.get(schema2); seen.ref = def.innerType; }, "optionalProcessor"); var lazyProcessor = /* @__PURE__ */ __name((schema2, ctx, _json, params) => { const innerType = schema2._zod.innerType; processSchema(innerType, ctx, params); const seen = ctx.seen.get(schema2); seen.ref = innerType; }, "lazyProcessor"); var allProcessors = { string: stringProcessor, number: numberProcessor, boolean: booleanProcessor, bigint: bigintProcessor, symbol: symbolProcessor, null: nullProcessor, undefined: undefinedProcessor, void: voidProcessor, never: neverProcessor, any: anyProcessor, unknown: unknownProcessor, date: dateProcessor, enum: enumProcessor, literal: literalProcessor, nan: nanProcessor, template_literal: templateLiteralProcessor, file: fileProcessor, success: successProcessor, custom: customProcessor, function: functionProcessor, transform: transformProcessor, map: mapProcessor, set: setProcessor, array: arrayProcessor, object: objectProcessor, union: unionProcessor, intersection: intersectionProcessor, tuple: tupleProcessor, record: recordProcessor, nullable: nullableProcessor, nonoptional: nonoptionalProcessor, default: defaultProcessor, prefault: prefaultProcessor, catch: catchProcessor, pipe: pipeProcessor, readonly: readonlyProcessor, promise: promiseProcessor, optional: optionalProcessor, lazy: lazyProcessor }; function toJSONSchema(input2, params) { if ("_idmap" in input2) { const registry2 = input2; const ctx2 = initializeContext({ ...params, processors: allProcessors }); const defs = {}; for (const entry of registry2._idmap.entries()) { const [_, schema2] = entry; processSchema(schema2, ctx2); } const schemas = {}; const external = { registry: registry2, uri: params?.uri, defs }; ctx2.external = external; for (const entry of registry2._idmap.entries()) { const [key, schema2] = entry; extractDefs(ctx2, schema2); assignProp(schemas, key, finalize(ctx2, schema2)); } if (Object.keys(defs).length > 0) { const defsSegment = ctx2.target === "draft-2020-12" ? "$defs" : "definitions"; schemas.__shared = { [defsSegment]: defs }; } return { schemas }; } const ctx = initializeContext({ ...params, processors: allProcessors }); processSchema(input2, ctx); extractDefs(ctx, input2); return finalize(ctx, input2); } __name(toJSONSchema, "toJSONSchema"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/json-schema-generator.js var JSONSchemaGenerator = class { static { __name(this, "JSONSchemaGenerator"); } /** @deprecated Access via ctx instead */ get metadataRegistry() { return this.ctx.metadataRegistry; } /** @deprecated Access via ctx instead */ get target() { return this.ctx.target; } // annotated so the .d.cts emits an indexed access rather than an inline `import()` of an ESM path /** @deprecated Access via ctx instead */ get unrepresentable() { return this.ctx.unrepresentable; } /** @deprecated Access via ctx instead */ get override() { return this.ctx.override; } /** @deprecated Access via ctx instead */ get io() { return this.ctx.io; } /** @deprecated Access via ctx instead */ get counter() { return this.ctx.counter; } set counter(value) { this.ctx.counter = value; } /** @deprecated Access via ctx instead */ get seen() { return this.ctx.seen; } constructor(params) { let normalizedTarget = params?.target ?? "draft-2020-12"; if (normalizedTarget === "draft-4") normalizedTarget = "draft-04"; if (normalizedTarget === "draft-7") normalizedTarget = "draft-07"; this.ctx = initializeContext({ processors: allProcessors, target: normalizedTarget, ...params?.metadata && { metadata: params.metadata }, ...params?.unrepresentable && { unrepresentable: params.unrepresentable }, ...params?.override && { override: params.override }, ...params?.io && { io: params.io } }); } /** * Process a schema to prepare it for JSON Schema generation. * This must be called before emit(). */ process(schema2, _params = { path: [], schemaPath: [] }) { return processSchema(schema2, this.ctx, _params); } /** * Emit the final JSON Schema after processing. * Must call process() first. */ emit(schema2, _params) { if (_params) { if (_params.cycles) this.ctx.cycles = _params.cycles; if (_params.reused) this.ctx.reused = _params.reused; if (_params.external) this.ctx.external = _params.external; } this.ctx.sharedDefsExtractedFor = void 0; this.ctx.sharedEmitDoneFor = void 0; extractDefs(this.ctx, schema2); const result = finalize(this.ctx, schema2); const { "~standard": _, ...plainResult } = result; return plainResult; } }; // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/json-schema.js var json_schema_exports = {}; // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/schemas.js var schemas_exports2 = {}; __export(schemas_exports2, { ZodAny: () => ZodAny, ZodArray: () => ZodArray, ZodBase64: () => ZodBase64, ZodBase64URL: () => ZodBase64URL, ZodBigInt: () => ZodBigInt, ZodBigIntFormat: () => ZodBigIntFormat, ZodBoolean: () => ZodBoolean, ZodCIDRv4: () => ZodCIDRv4, ZodCIDRv6: () => ZodCIDRv6, ZodCUID: () => ZodCUID, ZodCUID2: () => ZodCUID2, ZodCatch: () => ZodCatch, ZodCodec: () => ZodCodec, ZodCreditCard: () => ZodCreditCard, ZodCustom: () => ZodCustom, ZodCustomStringFormat: () => ZodCustomStringFormat, ZodDate: () => ZodDate, ZodDefault: () => ZodDefault, ZodDiscriminatedUnion: () => ZodDiscriminatedUnion, ZodE164: () => ZodE164, ZodEmail: () => ZodEmail, ZodEmoji: () => ZodEmoji, ZodEnum: () => ZodEnum, ZodExactOptional: () => ZodExactOptional, ZodFile: () => ZodFile, ZodFunction: () => ZodFunction, ZodGUID: () => ZodGUID, ZodIBAN: () => ZodIBAN, ZodIPv4: () => ZodIPv4, ZodIPv6: () => ZodIPv6, ZodISODate: () => ZodISODate, ZodISODateTime: () => ZodISODateTime, ZodISODuration: () => ZodISODuration, ZodISOTime: () => ZodISOTime, ZodInstanceOf: () => ZodInstanceOf, ZodIntersection: () => ZodIntersection, ZodJWT: () => ZodJWT, ZodKSUID: () => ZodKSUID, ZodLazy: () => ZodLazy, ZodLiteral: () => ZodLiteral, ZodMAC: () => ZodMAC, ZodMap: () => ZodMap, ZodNaN: () => ZodNaN, ZodNanoID: () => ZodNanoID, ZodNever: () => ZodNever, ZodNonOptional: () => ZodNonOptional, ZodNull: () => ZodNull, ZodNullable: () => ZodNullable, ZodNumber: () => ZodNumber, ZodNumberFormat: () => ZodNumberFormat, ZodObject: () => ZodObject, ZodOptional: () => ZodOptional, ZodPipe: () => ZodPipe, ZodPrefault: () => ZodPrefault, ZodPreprocess: () => ZodPreprocess, ZodPromise: () => ZodPromise, ZodReadonly: () => ZodReadonly, ZodRecord: () => ZodRecord, ZodSet: () => ZodSet, ZodString: () => ZodString, ZodStringFormat: () => ZodStringFormat, ZodSuccess: () => ZodSuccess, ZodSymbol: () => ZodSymbol, ZodTemplateLiteral: () => ZodTemplateLiteral, ZodTransform: () => ZodTransform, ZodTuple: () => ZodTuple, ZodType: () => ZodType, ZodULID: () => ZodULID, ZodURL: () => ZodURL, ZodUUID: () => ZodUUID, ZodUndefined: () => ZodUndefined, ZodUnion: () => ZodUnion, ZodUnknown: () => ZodUnknown, ZodVoid: () => ZodVoid, ZodXID: () => ZodXID, ZodXor: () => ZodXor, _ZodString: () => _ZodString, _default: () => _default2, _function: () => _function, any: () => any, array: () => array, base64: () => base642, base64url: () => base64url2, bigint: () => bigint2, boolean: () => boolean2, catch: () => _catch2, check: () => check, cidrv4: () => cidrv42, cidrv6: () => cidrv62, codec: () => codec, creditCard: () => creditCard2, cuid: () => cuid3, cuid2: () => cuid22, currencyCode: () => currencyCode2, custom: () => custom, date: () => date2, describe: () => describe2, discriminatedUnion: () => discriminatedUnion, e164: () => e1642, email: () => email2, emoji: () => emoji2, enum: () => _enum2, exactOptional: () => exactOptional, file: () => file, float32: () => float32, float64: () => float64, function: () => _function, guid: () => guid2, hash: () => hash, hex: () => hex2, hostname: () => hostname2, httpUrl: () => httpUrl, iban: () => iban2, instanceof: () => _instanceof, int: () => int, int32: () => int32, int64: () => int64, intersection: () => intersection, invertCodec: () => invertCodec, ipv4: () => ipv42, ipv6: () => ipv62, json: () => json, jwt: () => jwt, keyof: () => keyof, ksuid: () => ksuid2, lazy: () => lazy, literal: () => literal, looseObject: () => looseObject, looseRecord: () => looseRecord, mac: () => mac2, map: () => map, meta: () => meta2, nan: () => nan, nanoid: () => nanoid2, nativeEnum: () => nativeEnum, never: () => never, nonoptional: () => nonoptional, null: () => _null3, nullable: () => nullable, nullish: () => nullish2, number: () => number2, object: () => object, optional: () => optional, partialRecord: () => partialRecord, pipe: () => pipe, prefault: () => prefault, preprocess: () => preprocess, promise: () => promise, readonly: () => readonly, record: () => record, refine: () => refine, set: () => set, strictObject: () => strictObject, string: () => string2, stringFormat: () => stringFormat, stringbool: () => stringbool, success: () => success, superRefine: () => superRefine, symbol: () => symbol, templateLiteral: () => templateLiteral, transform: () => transform, tuple: () => tuple, uint32: () => uint32, uint64: () => uint64, ulid: () => ulid2, undefined: () => _undefined3, union: () => union, unknown: () => unknown, url: () => url, uuid: () => uuid2, uuidv4: () => uuidv4, uuidv6: () => uuidv6, uuidv7: () => uuidv7, void: () => _void2, xid: () => xid2, xor: () => xor }); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/checks.js var checks_exports2 = {}; __export(checks_exports2, { endsWith: () => _endsWith, gt: () => _gt, gte: () => _gte, includes: () => _includes, length: () => _length, lowercase: () => _lowercase, lt: () => _lt, lte: () => _lte, maxLength: () => _maxLength, maxSize: () => _maxSize, mime: () => _mime, minLength: () => _minLength, minSize: () => _minSize, multipleOf: () => _multipleOf, negative: () => _negative, nonnegative: () => _nonnegative, nonpositive: () => _nonpositive, normalize: () => _normalize, overwrite: () => _overwrite, positive: () => _positive, properties: () => _properties, property: () => _property, regex: () => _regex, size: () => _size, slugify: () => _slugify, startsWith: () => _startsWith, toLowerCase: () => _toLowerCase, toUpperCase: () => _toUpperCase, trim: () => _trim, uppercase: () => _uppercase }); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/errors.js var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]); function _lazyMethod(proto, key, make) { Object.defineProperty(proto, key, { configurable: true, enumerable: false, get() { const value = make(this); Object.defineProperty(this, key, { value, configurable: true, writable: true }); return value; }, set(value) { Object.defineProperty(this, key, { value, configurable: true, writable: true }); } }); } __name(_lazyMethod, "_lazyMethod"); var initializer2 = /* @__PURE__ */ __name((inst, issues) => { $ZodError.init(inst, issues); inst.name = "ZodError"; const proto = Object.getPrototypeOf(inst); if (_installedErrorProtos.has(proto)) return; _installedErrorProtos.add(proto); _lazyMethod(proto, "format", (self2) => (mapper) => formatError(self2, mapper)); _lazyMethod(proto, "flatten", (self2) => (mapper) => flattenError(self2, mapper)); _lazyMethod(proto, "addIssue", (self2) => (issue2) => { self2.issues.push(issue2); self2.message = JSON.stringify(self2.issues, jsonStringifyReplacer, 2); }); _lazyMethod(proto, "addIssues", (self2) => (issues2) => { self2.issues.push(...issues2); self2.message = JSON.stringify(self2.issues, jsonStringifyReplacer, 2); }); Object.defineProperty(proto, "isEmpty", { configurable: true, enumerable: false, get() { return this.issues.length === 0; } }); }, "initializer"); var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2); var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, void 0, { Parent: Error }); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/parse.js var parse2 = /* @__PURE__ */ _parse(ZodRealError); var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError); var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError); var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError); var encode2 = /* @__PURE__ */ _encode(ZodRealError); var decode2 = /* @__PURE__ */ _decode(ZodRealError); var encodeAsync2 = /* @__PURE__ */ _encodeAsync(ZodRealError); var decodeAsync2 = /* @__PURE__ */ _decodeAsync(ZodRealError); var safeEncode2 = /* @__PURE__ */ _safeEncode(ZodRealError); var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError); var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError); var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/schemas.js function _ensureDefaultLocale() { if (!globalConfig.localeError) config(en_default()); } __name(_ensureDefaultLocale, "_ensureDefaultLocale"); function _ensureDefaultMemoizer() { if (!globalConfig.memoizer) config({ memoizer: memoizer() }); } __name(_ensureDefaultMemoizer, "_ensureDefaultMemoizer"); var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => { _ensureDefaultLocale(); $ZodType.init(inst, def); inst.def = def; inst.type = def.type; return inst; }, { check(...chks) { const def = this.def; return this.clone(util_exports.mergeDefs(def, { checks: [ ...def.checks ?? [], ...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch) ] }), { parent: true }); }, with(...chks) { return this.check(...chks); }, clone(def, params) { return clone(this, def, params); }, brand() { return this; }, register(reg, meta3) { reg.add(this, meta3); return this; }, refine(check2, params) { return this.check(refine(check2, params)); }, superRefine(refinement, params) { return this.check(superRefine(refinement, params)); }, overwrite(fn) { return this.check(_overwrite(fn)); }, optional() { return optional(this); }, exactOptional() { return exactOptional(this); }, nullable() { return nullable(this); }, nullish() { return optional(nullable(this)); }, nonoptional(params) { return nonoptional(this, params); }, array() { return array(this); }, or(arg) { return union([this, arg]); }, and(arg) { return intersection(this, arg); }, transform(tx) { return pipe(this, transform(tx)); }, default(d5) { return _default2(this, d5); }, prefault(d5) { return prefault(this, d5); }, catch(params) { return _catch2(this, params); }, pipe(target) { return pipe(this, target); }, readonly() { return readonly(this); }, describe(description) { const cl = this.clone(); globalRegistry.add(cl, { description }); return cl; }, meta(...args) { if (args.length === 0) return globalRegistry.get(this); const cl = this.clone(); globalRegistry.add(cl, args[0]); return cl; }, isOptional() { return this.safeParse(void 0).success; }, isNullable() { return this.safeParse(null).success; }, apply(fn, ...args) { return args.length === 0 ? fn(this) : fn(this, ...args); }, // Overrides core's `~standard` to add `jsonSchema`. Must stay a prototype entry: redefining it per instance demotes instances to dictionary mode. get "~standard"() { return util_exports.hide(this, "~standard", { ...standardProps(this), jsonSchema: { input: createStandardJSONSchemaMethod(this, "input"), output: createStandardJSONSchemaMethod(this, "output") } }); }, set "~standard"(value) { util_exports.own(this, "~standard", value); }, parse: /* @__PURE__ */ __name(function _parse2(data, params) { return parse2(this, data, params, { callee: _parse2 }); }, "_parse"), parseAsync: /* @__PURE__ */ __name(async function _parseAsync2(data, params) { return await parseAsync2(this, data, params, { callee: _parseAsync2 }); }, "_parseAsync"), safeParse(data, params) { return safeParse2(this, data, params); }, async safeParseAsync(data, params) { return safeParseAsync2(this, data, params); }, // `spa` is an alias: same function object as `safeParseAsync`, as before. get spa() { return this?.safeParseAsync; }, set spa(value) { util_exports.own(this, "spa", value); }, validate(data, params) { return validate(this, data, params); }, validateAsync(data, params) { return validateAsync(this, data, params); }, encode: /* @__PURE__ */ __name(function _encode2(data, params) { return encode2(this, data, params, { callee: _encode2 }); }, "_encode"), decode: /* @__PURE__ */ __name(function _decode2(data, params) { return decode2(this, data, params, { callee: _decode2 }); }, "_decode"), encodeAsync: /* @__PURE__ */ __name(async function _encodeAsync2(data, params) { return await encodeAsync2(this, data, params, { callee: _encodeAsync2 }); }, "_encodeAsync"), decodeAsync: /* @__PURE__ */ __name(async function _decodeAsync2(data, params) { return await decodeAsync2(this, data, params, { callee: _decodeAsync2 }); }, "_decodeAsync"), safeEncode(data, params) { return safeEncode2(this, data, params); }, safeDecode(data, params) { return safeDecode2(this, data, params); }, async safeEncodeAsync(data, params) { return safeEncodeAsync2(this, data, params); }, async safeDecodeAsync(data, params) { return safeDecodeAsync2(this, data, params); }, toJSONSchema(params) { return createToJSONSchemaMethod(this, {})(params); }, // Reads through to the registry on every access, so it must not cache. get description() { return globalRegistry.get(this)?.description; }, // No setter: `schema._def = x` throws, as it did when `_def` was a non-writable own property. get _def() { return this._zod.def; } }); var _ZodString = /* @__PURE__ */ $constructor( "_ZodString", (inst, def) => { $ZodString.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => stringProcessor(inst, ctx, json2, params); }, /* @__PURE__ */ util_exports.derived({ format: /* @__PURE__ */ __name((inst) => aggregateChecks(inst).format ?? null, "format"), minLength: /* @__PURE__ */ __name((inst) => aggregateChecks(inst).minimum ?? null, "minLength"), maxLength: /* @__PURE__ */ __name((inst) => aggregateChecks(inst).maximum ?? null, "maxLength") }, { regex(...args) { return this.check(_regex(...args)); }, includes(...args) { return this.check(_includes(...args)); }, startsWith(...args) { return this.check(_startsWith(...args)); }, endsWith(...args) { return this.check(_endsWith(...args)); }, min(...args) { return this.check(_minLength(...args)); }, max(...args) { return this.check(_maxLength(...args)); }, length(...args) { return this.check(_length(...args)); }, nonempty(...args) { return this.check(_minLength(1, ...args)); }, lowercase(params) { return this.check(_lowercase(params)); }, uppercase(params) { return this.check(_uppercase(params)); }, trim() { return this.check(_trim()); }, normalize(...args) { return this.check(_normalize(...args)); }, toLowerCase() { return this.check(_toLowerCase()); }, toUpperCase() { return this.check(_toUpperCase()); }, slugify() { return this.check(_slugify()); } }) ); var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => { $ZodString.init(inst, def); _ZodString.init(inst, def); }, { email(params) { return this.check(_email(ZodEmail, params)); }, url(params) { return this.check(_url(ZodURL, params)); }, jwt(params) { return this.check(_jwt(ZodJWT, params)); }, emoji(params) { return this.check(_emoji2(ZodEmoji, params)); }, guid(params) { return this.check(_guid(ZodGUID, params)); }, uuid(params) { return this.check(_uuid(ZodUUID, params)); }, uuidv4(params) { return this.check(_uuidv4(ZodUUID, params)); }, uuidv6(params) { return this.check(_uuidv6(ZodUUID, params)); }, uuidv7(params) { return this.check(_uuidv7(ZodUUID, params)); }, nanoid(params) { return this.check(_nanoid(ZodNanoID, params)); }, cuid(params) { return this.check(_cuid(ZodCUID, params)); }, cuid2(params) { return this.check(_cuid2(ZodCUID2, params)); }, ulid(params) { return this.check(_ulid(ZodULID, params)); }, base64(params) { return this.check(_base64(ZodBase64, params)); }, base64url(params) { return this.check(_base64url(ZodBase64URL, params)); }, xid(params) { return this.check(_xid(ZodXID, params)); }, ksuid(params) { return this.check(_ksuid(ZodKSUID, params)); }, ipv4(params) { return this.check(_ipv4(ZodIPv4, params)); }, ipv6(params) { return this.check(_ipv6(ZodIPv6, params)); }, cidrv4(params) { return this.check(_cidrv4(ZodCIDRv4, params)); }, cidrv6(params) { return this.check(_cidrv6(ZodCIDRv6, params)); }, e164(params) { return this.check(_e164(ZodE164, params)); }, datetime(params) { return this.check(_isoDateTime(ZodISODateTime, params)); }, date(params) { return this.check(_isoDate(ZodISODate, params)); }, time(params) { return this.check(_isoTime(ZodISOTime, params)); }, duration(params) { return this.check(_isoDuration(ZodISODuration, params)); } }); function string2(params) { return _string(ZodString, params); } __name(string2, "string"); var ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => { $ZodStringFormat.init(inst, def); _ZodString.init(inst, def); }); var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => { $ZodISODateTime.init(inst, def); ZodStringFormat.init(inst, def); }); var ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => { $ZodISODate.init(inst, def); ZodStringFormat.init(inst, def); }); var ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => { $ZodISOTime.init(inst, def); ZodStringFormat.init(inst, def); }); var ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => { $ZodISODuration.init(inst, def); ZodStringFormat.init(inst, def); }); var ZodEmail = /* @__PURE__ */ $constructor("ZodEmail", (inst, def) => { $ZodEmail.init(inst, def); ZodStringFormat.init(inst, def); }); function email2(params) { return _email(ZodEmail, params); } __name(email2, "email"); var ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => { $ZodGUID.init(inst, def); ZodStringFormat.init(inst, def); }); function guid2(params) { return _guid(ZodGUID, params); } __name(guid2, "guid"); var ZodUUID = /* @__PURE__ */ $constructor("ZodUUID", (inst, def) => { $ZodUUID.init(inst, def); ZodStringFormat.init(inst, def); }); function uuid2(params) { return _uuid(ZodUUID, params); } __name(uuid2, "uuid"); function uuidv4(params) { return _uuidv4(ZodUUID, params); } __name(uuidv4, "uuidv4"); function uuidv6(params) { return _uuidv6(ZodUUID, params); } __name(uuidv6, "uuidv6"); function uuidv7(params) { return _uuidv7(ZodUUID, params); } __name(uuidv7, "uuidv7"); var ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => { $ZodURL.init(inst, def); ZodStringFormat.init(inst, def); }); function url(params) { return _url(ZodURL, params); } __name(url, "url"); function httpUrl(params) { return _url(ZodURL, { protocol: httpProtocol, hostname: domain, ...util_exports.normalizeParams(params) }); } __name(httpUrl, "httpUrl"); var ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => { $ZodEmoji.init(inst, def); ZodStringFormat.init(inst, def); }); function emoji2(params) { return _emoji2(ZodEmoji, params); } __name(emoji2, "emoji"); var ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => { $ZodNanoID.init(inst, def); ZodStringFormat.init(inst, def); }); function nanoid2(params) { return _nanoid(ZodNanoID, params); } __name(nanoid2, "nanoid"); var ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => { $ZodCUID.init(inst, def); ZodStringFormat.init(inst, def); }); function cuid3(params) { return _cuid(ZodCUID, params); } __name(cuid3, "cuid"); var ZodCUID2 = /* @__PURE__ */ $constructor("ZodCUID2", (inst, def) => { $ZodCUID2.init(inst, def); ZodStringFormat.init(inst, def); }); function cuid22(params) { return _cuid2(ZodCUID2, params); } __name(cuid22, "cuid2"); var ZodULID = /* @__PURE__ */ $constructor("ZodULID", (inst, def) => { $ZodULID.init(inst, def); ZodStringFormat.init(inst, def); }); function ulid2(params) { return _ulid(ZodULID, params); } __name(ulid2, "ulid"); var ZodXID = /* @__PURE__ */ $constructor("ZodXID", (inst, def) => { $ZodXID.init(inst, def); ZodStringFormat.init(inst, def); }); function xid2(params) { return _xid(ZodXID, params); } __name(xid2, "xid"); var ZodKSUID = /* @__PURE__ */ $constructor("ZodKSUID", (inst, def) => { $ZodKSUID.init(inst, def); ZodStringFormat.init(inst, def); }); function ksuid2(params) { return _ksuid(ZodKSUID, params); } __name(ksuid2, "ksuid"); var ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => { $ZodIPv4.init(inst, def); ZodStringFormat.init(inst, def); }); function ipv42(params) { return _ipv4(ZodIPv4, params); } __name(ipv42, "ipv4"); var ZodMAC = /* @__PURE__ */ $constructor("ZodMAC", (inst, def) => { $ZodMAC.init(inst, def); ZodStringFormat.init(inst, def); }); function mac2(params) { return _mac(ZodMAC, params); } __name(mac2, "mac"); var ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => { $ZodIPv6.init(inst, def); ZodStringFormat.init(inst, def); }); function ipv62(params) { return _ipv6(ZodIPv6, params); } __name(ipv62, "ipv6"); var ZodCIDRv4 = /* @__PURE__ */ $constructor("ZodCIDRv4", (inst, def) => { $ZodCIDRv4.init(inst, def); ZodStringFormat.init(inst, def); }); function cidrv42(params) { return _cidrv4(ZodCIDRv4, params); } __name(cidrv42, "cidrv4"); var ZodCIDRv6 = /* @__PURE__ */ $constructor("ZodCIDRv6", (inst, def) => { $ZodCIDRv6.init(inst, def); ZodStringFormat.init(inst, def); }); function cidrv62(params) { return _cidrv6(ZodCIDRv6, params); } __name(cidrv62, "cidrv6"); var ZodBase64 = /* @__PURE__ */ $constructor("ZodBase64", (inst, def) => { $ZodBase64.init(inst, def); ZodStringFormat.init(inst, def); }); function base642(params) { return _base64(ZodBase64, params); } __name(base642, "base64"); var ZodBase64URL = /* @__PURE__ */ $constructor("ZodBase64URL", (inst, def) => { $ZodBase64URL.init(inst, def); ZodStringFormat.init(inst, def); }); function base64url2(params) { return _base64url(ZodBase64URL, params); } __name(base64url2, "base64url"); var ZodE164 = /* @__PURE__ */ $constructor("ZodE164", (inst, def) => { $ZodE164.init(inst, def); ZodStringFormat.init(inst, def); }); function e1642(params) { return _e164(ZodE164, params); } __name(e1642, "e164"); var ZodCreditCard = /* @__PURE__ */ $constructor("ZodCreditCard", (inst, def) => { $ZodCreditCard.init(inst, def); ZodStringFormat.init(inst, def); }); function creditCard2(params) { return _creditCard(ZodCreditCard, params); } __name(creditCard2, "creditCard"); var ZodIBAN = /* @__PURE__ */ $constructor("ZodIBAN", (inst, def) => { $ZodIBAN.init(inst, def); ZodStringFormat.init(inst, def); }); function iban2(params) { return _iban(ZodIBAN, params); } __name(iban2, "iban"); var ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => { $ZodJWT.init(inst, def); ZodStringFormat.init(inst, def); }); function jwt(params) { return _jwt(ZodJWT, params); } __name(jwt, "jwt"); var ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat", (inst, def) => { $ZodCustomStringFormat.init(inst, def); ZodStringFormat.init(inst, def); }); function stringFormat(format, fnOrRegex, _params = {}) { return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params); } __name(stringFormat, "stringFormat"); function hostname2(_params) { return _stringFormat(ZodCustomStringFormat, "hostname", hostname, _params); } __name(hostname2, "hostname"); function hex2(_params) { return _stringFormat(ZodCustomStringFormat, "hex", hex, _params); } __name(hex2, "hex"); function currencyCode2(_params) { return _stringFormat(ZodCustomStringFormat, "currency_code", currencyCode, _params); } __name(currencyCode2, "currencyCode"); function hash(alg, params) { const enc = params?.enc ?? "hex"; const format = `${alg}_${enc}`; const regex = regexes_exports[format]; if (!regex) throw new Error(`Unrecognized hash format: ${format}`); return _stringFormat(ZodCustomStringFormat, format, regex, params); } __name(hash, "hash"); var ZodNumber = /* @__PURE__ */ $constructor( "ZodNumber", (inst, def) => { $ZodNumber.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params); inst.isFinite = true; }, /* @__PURE__ */ util_exports.derived({ minValue: /* @__PURE__ */ __name((inst) => { const { minimum, exclusiveMinimum } = aggregateChecks(inst); return Math.max(minimum ?? Number.NEGATIVE_INFINITY, exclusiveMinimum ?? Number.NEGATIVE_INFINITY); }, "minValue"), maxValue: /* @__PURE__ */ __name((inst) => { const { maximum, exclusiveMaximum } = aggregateChecks(inst); return Math.min(maximum ?? Number.POSITIVE_INFINITY, exclusiveMaximum ?? Number.POSITIVE_INFINITY); }, "maxValue"), isInt: /* @__PURE__ */ __name((inst) => { const { isInt, multipleOf } = aggregateChecks(inst); return !!isInt || !!multipleOf?.some(Number.isSafeInteger); }, "isInt"), format: /* @__PURE__ */ __name((inst) => aggregateChecks(inst).format ?? null, "format") }, { gt(value, params) { return this.check(_gt(value, params)); }, gte(value, params) { return this.check(_gte(value, params)); }, min(value, params) { return this.check(_gte(value, params)); }, lt(value, params) { return this.check(_lt(value, params)); }, lte(value, params) { return this.check(_lte(value, params)); }, max(value, params) { return this.check(_lte(value, params)); }, int(params) { return this.check(int(params)); }, safe(params) { return this.check(int(params)); }, positive(params) { return this.check(_gt(0, params)); }, nonnegative(params) { return this.check(_gte(0, params)); }, negative(params) { return this.check(_lt(0, params)); }, nonpositive(params) { return this.check(_lte(0, params)); }, multipleOf(value, params) { return this.check(_multipleOf(value, params)); }, step(value, params) { return this.check(_multipleOf(value, params)); }, finite() { return this; } }) ); function number2(params) { return _number(ZodNumber, params); } __name(number2, "number"); var ZodNumberFormat = /* @__PURE__ */ $constructor("ZodNumberFormat", (inst, def) => { $ZodNumberFormat.init(inst, def); ZodNumber.init(inst, def); }); function int(params) { return _int(ZodNumberFormat, params); } __name(int, "int"); function float32(params) { return _float32(ZodNumberFormat, params); } __name(float32, "float32"); function float64(params) { return _float64(ZodNumberFormat, params); } __name(float64, "float64"); function int32(params) { return _int32(ZodNumberFormat, params); } __name(int32, "int32"); function uint32(params) { return _uint32(ZodNumberFormat, params); } __name(uint32, "uint32"); var ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => { $ZodBoolean.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => booleanProcessor(inst, ctx, json2, params); }); function boolean2(params) { return _boolean(ZodBoolean, params); } __name(boolean2, "boolean"); var ZodBigInt = /* @__PURE__ */ $constructor( "ZodBigInt", (inst, def) => { $ZodBigInt.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => bigintProcessor(inst, ctx, json2, params); }, /* @__PURE__ */ util_exports.derived({ minValue: /* @__PURE__ */ __name((inst) => aggregateChecks(inst).minimum ?? null, "minValue"), maxValue: /* @__PURE__ */ __name((inst) => aggregateChecks(inst).maximum ?? null, "maxValue"), format: /* @__PURE__ */ __name((inst) => aggregateChecks(inst).format ?? null, "format") }, { gte(value, params) { return this.check(_gte(value, params)); }, min(value, params) { return this.check(_gte(value, params)); }, gt(value, params) { return this.check(_gt(value, params)); }, lt(value, params) { return this.check(_lt(value, params)); }, lte(value, params) { return this.check(_lte(value, params)); }, max(value, params) { return this.check(_lte(value, params)); }, positive(params) { return this.check(_gt(BigInt(0), params)); }, negative(params) { return this.check(_lt(BigInt(0), params)); }, nonpositive(params) { return this.check(_lte(BigInt(0), params)); }, nonnegative(params) { return this.check(_gte(BigInt(0), params)); }, multipleOf(value, params) { return this.check(_multipleOf(value, params)); } }) ); function bigint2(params) { return _bigint(ZodBigInt, params); } __name(bigint2, "bigint"); var ZodBigIntFormat = /* @__PURE__ */ $constructor("ZodBigIntFormat", (inst, def) => { $ZodBigIntFormat.init(inst, def); ZodBigInt.init(inst, def); }); function int64(params) { return _int64(ZodBigIntFormat, params); } __name(int64, "int64"); function uint64(params) { return _uint64(ZodBigIntFormat, params); } __name(uint64, "uint64"); var ZodSymbol = /* @__PURE__ */ $constructor("ZodSymbol", (inst, def) => { $ZodSymbol.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => symbolProcessor(inst, ctx, json2, params); }); function symbol(params) { return _symbol(ZodSymbol, params); } __name(symbol, "symbol"); var ZodUndefined = /* @__PURE__ */ $constructor("ZodUndefined", (inst, def) => { $ZodUndefined.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => undefinedProcessor(inst, ctx, json2, params); }); function _undefined3(params) { return _undefined2(ZodUndefined, params); } __name(_undefined3, "_undefined"); var ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => { $ZodNull.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => nullProcessor(inst, ctx, json2, params); }); function _null3(params) { return _null2(ZodNull, params); } __name(_null3, "_null"); var ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => { $ZodAny.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => anyProcessor(inst, ctx, json2, params); }); function any() { return _any(ZodAny); } __name(any, "any"); var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => { $ZodUnknown.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => unknownProcessor(inst, ctx, json2, params); }); function unknown() { return _unknown(ZodUnknown); } __name(unknown, "unknown"); var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => { $ZodNever.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => neverProcessor(inst, ctx, json2, params); }); function never(params) { return _never(ZodNever, params); } __name(never, "never"); var ZodVoid = /* @__PURE__ */ $constructor("ZodVoid", (inst, def) => { $ZodVoid.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => voidProcessor(inst, ctx, json2, params); }); function _void2(params) { return _void(ZodVoid, params); } __name(_void2, "_void"); var ZodDate = /* @__PURE__ */ $constructor( "ZodDate", (inst, def) => { $ZodDate.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx, json2, params); inst.min = (value, params) => inst.check(_gte(value, params)); inst.max = (value, params) => inst.check(_lte(value, params)); }, /* @__PURE__ */ util_exports.derived({ minDate: /* @__PURE__ */ __name((inst) => { const { minimum } = aggregateChecks(inst); return minimum ? new Date(minimum) : null; }, "minDate"), maxDate: /* @__PURE__ */ __name((inst) => { const { maximum } = aggregateChecks(inst); return maximum ? new Date(maximum) : null; }, "maxDate") }, {}) ); function date2(params) { return _date(ZodDate, params); } __name(date2, "date"); var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => { _ensureDefaultMemoizer(); $ZodArray.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params); inst.element = def.element; }, { min(n3, params) { return this.check(_minLength(n3, params)); }, nonempty(params) { return this.check(_minLength(1, params)); }, max(n3, params) { return this.check(_maxLength(n3, params)); }, length(n3, params) { return this.check(_length(n3, params)); }, unwrap() { return this.element; } }); function array(element, params) { return _array(ZodArray, element, params); } __name(array, "array"); function keyof(schema2) { const shape = schema2._zod.def.shape; return _enum2(Object.keys(shape)); } __name(keyof, "keyof"); var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => { _ensureDefaultMemoizer(); $ZodObjectJIT.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => objectProcessor(inst, ctx, json2, params); util_exports.installLazyProp(inst, "shape", (self2) => self2._zod.def.shape, false); }, { keyof() { return _enum2(Object.keys(this._zod.def.shape)); }, catchall(catchall) { return this.clone(util_exports.mergeDefs(this._zod.def, { catchall })); }, passthrough() { return this.clone(util_exports.mergeDefs(this._zod.def, { catchall: unknown() })); }, loose() { return this.clone(util_exports.mergeDefs(this._zod.def, { catchall: unknown() })); }, strict() { return this.clone(util_exports.mergeDefs(this._zod.def, { catchall: never() })); }, strip() { return this.clone(util_exports.mergeDefs(this._zod.def, { catchall: void 0 })); }, extend(incoming) { return util_exports.extend(this, incoming); }, safeExtend(incoming) { return util_exports.safeExtend(this, incoming); }, merge(other) { return util_exports.merge(this, other); }, pick(mask) { return util_exports.pick(this, mask); }, omit(mask) { return util_exports.omit(this, mask); }, partial(...args) { return util_exports.partial(ZodOptional, this, args[0]); }, exactPartial(...args) { return util_exports.partial(ZodExactOptional, this, args[0], "exactPartial"); }, required(...args) { return util_exports.required(ZodNonOptional, this, args[0]); } }); function object(shape, params) { const def = { type: "object", shape: shape ?? {}, ...util_exports.normalizeParams(params) }; return new ZodObject(def); } __name(object, "object"); function strictObject(shape, params) { return new ZodObject({ type: "object", shape, catchall: never(), ...util_exports.normalizeParams(params) }); } __name(strictObject, "strictObject"); function looseObject(shape, params) { return new ZodObject({ type: "object", shape, catchall: unknown(), ...util_exports.normalizeParams(params) }); } __name(looseObject, "looseObject"); var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => { $ZodUnion.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => unionProcessor(inst, ctx, json2, params); inst.options = def.options; }); function union(options, params) { return new ZodUnion({ type: "union", options, ...util_exports.normalizeParams(params) }); } __name(union, "union"); var ZodXor = /* @__PURE__ */ $constructor("ZodXor", (inst, def) => { ZodUnion.init(inst, def); $ZodXor.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => unionProcessor(inst, ctx, json2, params); inst.options = def.options; }); function xor(options, params) { return new ZodXor({ type: "union", options, inclusive: false, ...util_exports.normalizeParams(params) }); } __name(xor, "xor"); var ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("ZodDiscriminatedUnion", (inst, def) => { ZodUnion.init(inst, def); $ZodDiscriminatedUnion.init(inst, def); }); function discriminatedUnion(discriminator, options, params) { return new ZodDiscriminatedUnion({ type: "union", options, discriminator, ...util_exports.normalizeParams(params) }); } __name(discriminatedUnion, "discriminatedUnion"); var ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => { $ZodIntersection.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => intersectionProcessor(inst, ctx, json2, params); }); function intersection(left, right) { return new ZodIntersection({ type: "intersection", left, right }); } __name(intersection, "intersection"); var ZodTuple = /* @__PURE__ */ $constructor("ZodTuple", (inst, def) => { _ensureDefaultMemoizer(); $ZodTuple.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => tupleProcessor(inst, ctx, json2, params); }, { rest(rest) { return this.clone({ ...this._zod.def, rest }); }, partial() { const def = this._zod.def; if (def.checks?.length) throw new Error(".partial() cannot be used on tuple schemas containing refinements"); return this.clone({ ...def, items: def.items.map((item) => new ZodOptional({ type: "optional", innerType: item })) }); } }); function tuple(items, _paramsOrRest, _params) { const hasRest = _paramsOrRest instanceof $ZodType; const params = hasRest ? _params : _paramsOrRest; const rest = hasRest ? _paramsOrRest : null; return new ZodTuple({ type: "tuple", items, rest, ...util_exports.normalizeParams(params) }); } __name(tuple, "tuple"); var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => { _ensureDefaultMemoizer(); $ZodRecord.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => recordProcessor(inst, ctx, json2, params); inst.keyType = def.keyType; inst.valueType = def.valueType; }); function record(keyType, valueType, params) { if (!valueType || !valueType._zod) { return new ZodRecord({ type: "record", keyType: string2(), valueType: keyType, ...util_exports.normalizeParams(valueType) }); } return new ZodRecord({ type: "record", keyType, valueType, ...util_exports.normalizeParams(params) }); } __name(record, "record"); function partialRecord(keyType, valueType, params) { return new ZodRecord({ type: "record", keyType, valueType, ...util_exports.normalizeParams(params), partial: true }); } __name(partialRecord, "partialRecord"); function looseRecord(keyType, valueType, params) { return new ZodRecord({ type: "record", keyType, valueType, mode: "loose", ...util_exports.normalizeParams(params) }); } __name(looseRecord, "looseRecord"); var ZodMap = /* @__PURE__ */ $constructor("ZodMap", (inst, def) => { _ensureDefaultMemoizer(); $ZodMap.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => mapProcessor(inst, ctx, json2, params); inst.keyType = def.keyType; inst.valueType = def.valueType; inst.min = (...args) => inst.check(_minSize(...args)); inst.nonempty = (params) => inst.check(_minSize(1, params)); inst.max = (...args) => inst.check(_maxSize(...args)); inst.size = (...args) => inst.check(_size(...args)); }); function map(keyType, valueType, params) { return new ZodMap({ type: "map", keyType, valueType, ...util_exports.normalizeParams(params) }); } __name(map, "map"); var ZodSet = /* @__PURE__ */ $constructor("ZodSet", (inst, def) => { _ensureDefaultMemoizer(); $ZodSet.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => setProcessor(inst, ctx, json2, params); inst.min = (...args) => inst.check(_minSize(...args)); inst.nonempty = (params) => inst.check(_minSize(1, params)); inst.max = (...args) => inst.check(_maxSize(...args)); inst.size = (...args) => inst.check(_size(...args)); }); function set(valueType, params) { return new ZodSet({ type: "set", valueType, ...util_exports.normalizeParams(params) }); } __name(set, "set"); var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => { $ZodEnum.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => enumProcessor(inst, ctx, json2, params); inst.enum = def.entries; inst.options = [...inst._zod.values]; const keys = new Set(Object.keys(def.entries)); inst.extract = (values, params) => { const newEntries = {}; for (const value of values) { if (keys.has(value)) { newEntries[value] = def.entries[value]; } else throw new Error(`Key ${value} not found in enum`); } return new ZodEnum({ ...def, checks: [], ...util_exports.normalizeParams(params), entries: newEntries }); }; inst.exclude = (values, params) => { const newEntries = { ...def.entries }; for (const value of values) { if (keys.has(value)) { delete newEntries[value]; } else throw new Error(`Key ${value} not found in enum`); } return new ZodEnum({ ...def, checks: [], ...util_exports.normalizeParams(params), entries: newEntries }); }; }); function _enum2(values, params) { const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values; return new ZodEnum({ type: "enum", entries, ...util_exports.normalizeParams(params) }); } __name(_enum2, "_enum"); function nativeEnum(entries, params) { return new ZodEnum({ type: "enum", entries, ...util_exports.normalizeParams(params) }); } __name(nativeEnum, "nativeEnum"); var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => { $ZodLiteral.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => literalProcessor(inst, ctx, json2, params); inst.values = new Set(def.values); Object.defineProperty(inst, "value", { get() { if (def.values.length > 1) { throw new Error("This schema contains multiple valid literal values. Use `.values` instead."); } return def.values[0]; } }); }); function literal(value, params) { return new ZodLiteral({ type: "literal", values: Array.isArray(value) ? value : [value], ...util_exports.normalizeParams(params) }); } __name(literal, "literal"); var ZodFile = /* @__PURE__ */ $constructor("ZodFile", (inst, def) => { $ZodFile.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => fileProcessor(inst, ctx, json2, params); inst.min = (size, params) => inst.check(_minSize(size, params)); inst.max = (size, params) => inst.check(_maxSize(size, params)); inst.mime = (types3, params) => inst.check(_mime(Array.isArray(types3) ? types3 : [types3], params)); }); function file(params) { return _file(ZodFile, params); } __name(file, "file"); var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => { _ensureDefaultMemoizer(); $ZodTransform.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => transformProcessor(inst, ctx, json2, params); inst._zod.parse = (payload, _ctx) => { if (_ctx.direction === "backward") { throw new $ZodEncodeError(inst.constructor.name); } payload.addIssue = (issue2) => { if (typeof issue2 === "string") { payload.issues.push(util_exports.issue(issue2, payload.value, def)); } else { const _issue = issue2; if (_issue.fatal) _issue.continue = false; _issue.code ?? (_issue.code = "custom"); if (!("input" in _issue)) _issue.input = payload.value; _issue.inst ?? (_issue.inst = inst); payload.issues.push(util_exports.issue(_issue)); } }; const output2 = def.transform(payload.value, payload); if (output2 instanceof Promise) { return output2.then((output3) => { payload.value = output3; return payload; }); } payload.value = output2; return payload; }; }); function transform(fn) { return new ZodTransform({ type: "transform", transform: fn }); } __name(transform, "transform"); var ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def) => { $ZodOptional.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => optionalProcessor(inst, ctx, json2, params); inst.unwrap = () => inst._zod.def.innerType; }); function optional(innerType) { return new ZodOptional({ type: "optional", innerType }); } __name(optional, "optional"); var ZodExactOptional = /* @__PURE__ */ $constructor("ZodExactOptional", (inst, def) => { $ZodExactOptional.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => optionalProcessor(inst, ctx, json2, params); inst.unwrap = () => inst._zod.def.innerType; }); function exactOptional(innerType) { return new ZodExactOptional({ type: "optional", innerType }); } __name(exactOptional, "exactOptional"); var ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => { $ZodNullable.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => nullableProcessor(inst, ctx, json2, params); inst.unwrap = () => inst._zod.def.innerType; }); function nullable(innerType) { return new ZodNullable({ type: "nullable", innerType }); } __name(nullable, "nullable"); function nullish2(innerType) { return optional(nullable(innerType)); } __name(nullish2, "nullish"); var ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def) => { $ZodDefault.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => defaultProcessor(inst, ctx, json2, params); inst.unwrap = () => inst._zod.def.innerType; inst.removeDefault = inst.unwrap; }); function _default2(innerType, defaultValue) { return new ZodDefault({ type: "default", innerType, get defaultValue() { return typeof defaultValue === "function" ? defaultValue() : util_exports.shallowClone(defaultValue); } }); } __name(_default2, "_default"); var ZodPrefault = /* @__PURE__ */ $constructor("ZodPrefault", (inst, def) => { $ZodPrefault.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => prefaultProcessor(inst, ctx, json2, params); inst.unwrap = () => inst._zod.def.innerType; }); function prefault(innerType, defaultValue) { return new ZodPrefault({ type: "prefault", innerType, get defaultValue() { return typeof defaultValue === "function" ? defaultValue() : util_exports.shallowClone(defaultValue); } }); } __name(prefault, "prefault"); var ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def) => { $ZodNonOptional.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => nonoptionalProcessor(inst, ctx, json2, params); inst.unwrap = () => inst._zod.def.innerType; }); function nonoptional(innerType, params) { return new ZodNonOptional({ type: "nonoptional", innerType, ...util_exports.normalizeParams(params) }); } __name(nonoptional, "nonoptional"); var ZodSuccess = /* @__PURE__ */ $constructor("ZodSuccess", (inst, def) => { $ZodSuccess.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => successProcessor(inst, ctx, json2, params); inst.unwrap = () => inst._zod.def.innerType; }); function success(innerType) { return new ZodSuccess({ type: "success", innerType }); } __name(success, "success"); var ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => { $ZodCatch.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => catchProcessor(inst, ctx, json2, params); inst.unwrap = () => inst._zod.def.innerType; inst.removeCatch = inst.unwrap; }); function _catch2(innerType, catchValue) { return new ZodCatch({ type: "catch", innerType, catchValue: typeof catchValue === "function" ? catchValue : util_exports.constantCatch(catchValue) }); } __name(_catch2, "_catch"); var ZodNaN = /* @__PURE__ */ $constructor("ZodNaN", (inst, def) => { $ZodNaN.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => nanProcessor(inst, ctx, json2, params); }); function nan(params) { return _nan(ZodNaN, params); } __name(nan, "nan"); var ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => { $ZodPipe.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => pipeProcessor(inst, ctx, json2, params); inst.in = def.in; inst.out = def.out; }); function pipe(in_, out) { return new ZodPipe({ type: "pipe", in: in_, out // ...util.normalizeParams(params), }); } __name(pipe, "pipe"); var ZodCodec = /* @__PURE__ */ $constructor("ZodCodec", (inst, def) => { ZodPipe.init(inst, def); $ZodCodec.init(inst, def); }); function codec(in_, out, params) { return new ZodCodec({ type: "pipe", in: in_, out, transform: params.decode, reverseTransform: params.encode }); } __name(codec, "codec"); function invertCodec(codec2) { const def = codec2._zod.def; return new ZodCodec({ type: "pipe", in: def.out, out: def.in, transform: def.reverseTransform, reverseTransform: def.transform }); } __name(invertCodec, "invertCodec"); var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => { ZodPipe.init(inst, def); $ZodPreprocess.init(inst, def); }); var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => { $ZodReadonly.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => readonlyProcessor(inst, ctx, json2, params); inst.unwrap = () => inst._zod.def.innerType; }); function readonly(innerType) { return new ZodReadonly({ type: "readonly", innerType }); } __name(readonly, "readonly"); var ZodTemplateLiteral = /* @__PURE__ */ $constructor("ZodTemplateLiteral", (inst, def) => { $ZodTemplateLiteral.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => templateLiteralProcessor(inst, ctx, json2, params); }); function templateLiteral(parts, params) { return new ZodTemplateLiteral({ type: "template_literal", parts, ...util_exports.normalizeParams(params) }); } __name(templateLiteral, "templateLiteral"); var ZodLazy = /* @__PURE__ */ $constructor("ZodLazy", (inst, def) => { $ZodLazy.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => lazyProcessor(inst, ctx, json2, params); inst.unwrap = () => inst._zod.def.getter(); }); function lazy(getter) { return new ZodLazy({ type: "lazy", getter }); } __name(lazy, "lazy"); var ZodPromise = /* @__PURE__ */ $constructor("ZodPromise", (inst, def) => { $ZodPromise.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => promiseProcessor(inst, ctx, json2, params); inst.unwrap = () => inst._zod.def.innerType; }); function promise(innerType) { return new ZodPromise({ type: "promise", innerType }); } __name(promise, "promise"); var ZodFunction = /* @__PURE__ */ $constructor("ZodFunction", (inst, def) => { $ZodFunction.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => functionProcessor(inst, ctx, json2, params); }); function _function(params) { return new ZodFunction({ type: "function", input: Array.isArray(params?.input) ? tuple(params?.input) : params?.input ?? array(unknown()), output: params?.output ?? unknown() }); } __name(_function, "_function"); var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => { $ZodCustom.init(inst, def); ZodType.init(inst, def); inst._zod.processJSONSchema = (ctx, json2, params) => customProcessor(inst, ctx, json2, params); }); function check(fn) { const ch = new $ZodCheck({ check: "custom" // ...util.normalizeParams(params), }); ch._zod.check = fn; return ch; } __name(check, "check"); function custom(fn, _params) { return _custom(ZodCustom, fn ?? (() => true), _params); } __name(custom, "custom"); function refine(fn, _params = {}) { return _refine(ZodCustom, fn, _params); } __name(refine, "refine"); function superRefine(fn, params) { return _superRefine(fn, params); } __name(superRefine, "superRefine"); var describe2 = describe; var meta2 = meta; var ZodInstanceOf = /* @__PURE__ */ $constructor("ZodInstanceOf", (inst, def) => { ZodCustom.init(inst, def); }, { properties(shape, params) { return this.check(_properties(shape, params)); } }); function _instanceof(cls, params = {}) { const inst = new ZodInstanceOf({ type: "custom", check: "custom", fn: /* @__PURE__ */ __name((data) => data instanceof cls, "fn"), abort: true, ...util_exports.normalizeParams(params) }); inst._zod.bag.Class = cls; inst._zod.check = (payload) => { if (!(payload.value instanceof cls)) { payload.issues.push({ code: "invalid_type", expected: cls.name, input: payload.value, inst, path: [...inst._zod.def.path ?? []] }); } }; return inst; } __name(_instanceof, "_instanceof"); var stringbool = /* @__PURE__ */ __name((...args) => _stringbool({ Codec: ZodCodec, Boolean: ZodBoolean, String: ZodString }, ...args), "stringbool"); function json(params) { const jsonSchema = lazy(() => { return union([string2(params), number2(), boolean2(), _null3(), array(jsonSchema), record(string2(), jsonSchema)]); }); return jsonSchema; } __name(json, "json"); function preprocess(fn, schema2) { return new ZodPreprocess({ type: "pipe", in: transform(fn), out: schema2 }); } __name(preprocess, "preprocess"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/compat.js var ZodIssueCode = { invalid_type: "invalid_type", too_big: "too_big", too_small: "too_small", invalid_format: "invalid_format", not_multiple_of: "not_multiple_of", unrecognized_keys: "unrecognized_keys", invalid_union: "invalid_union", invalid_key: "invalid_key", invalid_element: "invalid_element", invalid_value: "invalid_value", custom: "custom" }; function setErrorMap(map2) { config({ customError: map2 }); } __name(setErrorMap, "setErrorMap"); function getErrorMap() { return config().customError; } __name(getErrorMap, "getErrorMap"); var ZodFirstPartyTypeKind; /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) { })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {})); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/iso.js var iso_exports = {}; __export(iso_exports, { ZodISODate: () => ZodISODate, ZodISODateTime: () => ZodISODateTime, ZodISODuration: () => ZodISODuration, ZodISOTime: () => ZodISOTime, date: () => date3, datetime: () => datetime2, duration: () => duration2, time: () => time2 }); function datetime2(params) { return _isoDateTime(ZodISODateTime, params); } __name(datetime2, "datetime"); function date3(params) { return _isoDate(ZodISODate, params); } __name(date3, "date"); function time2(params) { return _isoTime(ZodISOTime, params); } __name(time2, "time"); function duration2(params) { return _isoDuration(ZodISODuration, params); } __name(duration2, "duration"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/from-json-schema.js var z = { ...schemas_exports2, ...checks_exports2, iso: iso_exports }; var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([ // Schema identification "$schema", "$ref", "$defs", "definitions", // Core schema keywords "$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor", // Type "type", "enum", "const", // Composition "anyOf", "oneOf", "allOf", "not", // Object "properties", "required", "additionalProperties", "patternProperties", "propertyNames", "minProperties", "maxProperties", // Array "items", "prefixItems", "additionalItems", "minItems", "maxItems", "uniqueItems", "contains", "minContains", "maxContains", // String "minLength", "maxLength", "pattern", "format", // Number "minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum", "multipleOf", // Already handled metadata "description", "default", // Content "contentEncoding", "contentMediaType", "contentSchema", // Unsupported (error-throwing) "unevaluatedItems", "unevaluatedProperties", "if", "then", "else", "dependentSchemas", "dependentRequired", // OpenAPI "nullable", "readOnly" ]); function detectVersion(schema2, defaultTarget) { const $schema = schema2.$schema; if ($schema === "https://json-schema.org/draft/2020-12/schema") { return "draft-2020-12"; } if ($schema === "http://json-schema.org/draft-07/schema#") { return "draft-7"; } if ($schema === "http://json-schema.org/draft-04/schema#") { return "draft-4"; } return defaultTarget ?? "draft-2020-12"; } __name(detectVersion, "detectVersion"); function applyMinItems(items, minItems) { return items.map((item, index) => index < minItems ? item : item.optional()); } __name(applyMinItems, "applyMinItems"); function decodeJSONPointerSegment(segment) { return segment.replace(/~1/g, "/").replace(/~0/g, "~"); } __name(decodeJSONPointerSegment, "decodeJSONPointerSegment"); function resolveRef(ref, ctx) { if (!ref.startsWith("#")) { throw new Error("External $ref is not supported, only local refs (#/...) are allowed"); } const path2 = ref.slice(1).split("/").filter(Boolean); if (path2.length === 0) { return ctx.rootSchema; } const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions"; if (path2[0] === defsKey) { const key = path2[1] === void 0 ? void 0 : decodeJSONPointerSegment(path2[1]); if (!key || !ctx.defs[key]) { throw new Error(`Reference not found: ${ref}`); } return ctx.defs[key]; } throw new Error(`Reference not found: ${ref}`); } __name(resolveRef, "resolveRef"); function checkObjectGuards(objectSchema, guards) { const guard = z.transform((value) => value).check((payload) => { const value = payload.value; if (typeof value !== "object" || value === null || Array.isArray(value)) return; const keys = Object.getOwnPropertyNames(value); if (guards.minProperties !== void 0 && keys.length < guards.minProperties) { payload.issues.push({ origin: "object", code: "too_small", minimum: guards.minProperties, inclusive: true, message: `Too small: expected object to have >=${guards.minProperties} properties`, input: value, inst: objectSchema, continue: true }); } if (guards.maxProperties !== void 0 && keys.length > guards.maxProperties) { payload.issues.push({ origin: "object", code: "too_big", maximum: guards.maxProperties, inclusive: true, message: `Too big: expected object to have <=${guards.maxProperties} properties`, input: value, inst: objectSchema, continue: true }); } if (guards.keySchema) { for (const key of keys) { const result = guards.keySchema.safeParse(key); if (result.success) continue; payload.issues.push({ code: "invalid_key", origin: "record", issues: result.error.issues, input: key, path: [key], continue: true }); } } }); return guard.pipe(objectSchema); } __name(checkObjectGuards, "checkObjectGuards"); function canonicalKey(value, seen) { if (value === null) return "z"; const type = typeof value; if (type !== "object") { if (type === "number" && Number.isNaN(value)) return null; const raw4 = String(value); return `${type[0]}${raw4.length}:${raw4}`; } if (seen.has(value)) return null; seen.add(value); try { if (Array.isArray(value)) { const parts2 = []; for (const item of value) { const key = canonicalKey(item, seen); if (key === null) return null; parts2.push(key); } return `a${parts2.length}:[${parts2.join(",")}]`; } const keys = Object.keys(value).sort(); const parts = []; for (const k5 of keys) { const key = canonicalKey(value[k5], seen); if (key === null) return null; parts.push(`${k5.length}:${k5}=${key}`); } return `o${parts.length}:{${parts.join(",")}}`; } finally { seen.delete(value); } } __name(canonicalKey, "canonicalKey"); var SCHEMA_KEYWORDS = /* @__PURE__ */ new Set([ "items", "prefixItems", "additionalItems", "additionalProperties", "contains", "propertyNames", "not", "if", "then", "else", "allOf", "anyOf", "oneOf", "unevaluatedItems", "unevaluatedProperties", "contentSchema" ]); var SCHEMA_MAP_KEYWORDS = /* @__PURE__ */ new Set([ "properties", "patternProperties", "dependentSchemas", "dependencies", "$defs", "definitions" ]); function containsRef(value) { if (typeof value !== "object" || value === null) return false; if (Array.isArray(value)) return value.some(containsRef); if (typeof value.$ref === "string") return true; return Object.entries(value).some(([key, sub]) => { if (SCHEMA_KEYWORDS.has(key)) return containsRef(sub); if (!SCHEMA_MAP_KEYWORDS.has(key) || typeof sub !== "object" || sub === null) return false; return Object.values(sub).some(containsRef); }); } __name(containsRef, "containsRef"); function plural(n3) { return n3 === 1 ? "element" : "elements"; } __name(plural, "plural"); function checkArrayGuards(arraySchema, guards) { const guard = z.transform((value) => value).check((payload) => { const items = payload.value; if (!Array.isArray(items)) return; if (guards.uniqueItems === true) { const firstSeen = /* @__PURE__ */ new Map(); for (let i5 = 0; i5 < items.length; i5++) { const key = canonicalKey(items[i5], /* @__PURE__ */ new Set()); if (key === null) continue; const first = firstSeen.get(key); if (first === void 0) { firstSeen.set(key, i5); continue; } payload.issues.push({ code: "custom", message: `Array items must be unique: element at index ${i5} duplicates the one at index ${first}`, input: items, path: [i5], continue: true }); } } if (guards.containsSchema) { const minContains = guards.minContains ?? 1; const ceiling = guards.maxContains !== void 0 ? guards.maxContains + 1 : Number.POSITIVE_INFINITY; let matches = 0; for (const item of items) { if (guards.containsSchema.safeParse(item).success && ++matches >= ceiling) break; } if (matches < minContains) { payload.issues.push({ code: "custom", message: `Array must contain at least ${minContains} matching ${plural(minContains)}; found ${matches}`, input: items, continue: true }); } if (guards.maxContains !== void 0 && matches > guards.maxContains) { payload.issues.push({ code: "custom", message: `Array must contain at most ${guards.maxContains} matching ${plural(guards.maxContains)}`, input: items, continue: true }); } } }); return guard.pipe(arraySchema); } __name(checkArrayGuards, "checkArrayGuards"); function getTupleRest(restSchema, ctx) { if (restSchema === false) { return void 0; } if (restSchema === void 0 || restSchema === true) { return z.any(); } return convertSchema(restSchema, ctx); } __name(getTupleRest, "getTupleRest"); var fullTime = /^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/; function convertBaseSchema(schema2, ctx) { if (schema2.not !== void 0) { if (typeof schema2.not === "object" && Object.keys(schema2.not).length === 0) { return z.never(); } throw new Error("not is not supported in Zod (except { not: {} } for never)"); } if (schema2.unevaluatedItems !== void 0) { throw new Error("unevaluatedItems is not supported"); } if (schema2.unevaluatedProperties !== void 0) { throw new Error("unevaluatedProperties is not supported"); } if (schema2.if !== void 0 || schema2.then !== void 0 || schema2.else !== void 0) { throw new Error("Conditional schemas (if/then/else) are not supported"); } if (schema2.dependentSchemas !== void 0 || schema2.dependentRequired !== void 0) { throw new Error("dependentSchemas and dependentRequired are not supported"); } if (schema2.$ref) { const refPath = schema2.$ref; if (ctx.refs.has(refPath)) { return ctx.refs.get(refPath); } if (ctx.processing.has(refPath)) { return z.lazy(() => { if (!ctx.refs.has(refPath)) { throw new Error(`Circular reference not resolved: ${refPath}`); } return ctx.refs.get(refPath); }); } ctx.processing.add(refPath); const resolved = resolveRef(refPath, ctx); const zodSchema2 = convertSchema(resolved, ctx); ctx.refs.set(refPath, zodSchema2); ctx.processing.delete(refPath); return zodSchema2; } if (schema2.enum !== void 0) { const enumValues = schema2.enum; if (ctx.version === "openapi-3.0" && schema2.nullable === true && enumValues.length === 1 && enumValues[0] === null) { return z.null(); } if (enumValues.length === 0) { return z.never(); } if (enumValues.length === 1) { return z.literal(enumValues[0]); } if (enumValues.every((v) => typeof v === "string")) { return z.enum(enumValues); } const literalSchemas = enumValues.map((v) => z.literal(v)); if (literalSchemas.length < 2) { return literalSchemas[0]; } return z.union([literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2)]); } if (schema2.const !== void 0) { return z.literal(schema2.const); } const type = schema2.type; if (Array.isArray(type)) { const typeSchemas = type.map((t) => { const typeSchema = { ...schema2, type: t }; return convertBaseSchema(typeSchema, ctx); }); if (typeSchemas.length === 0) { return z.never(); } if (typeSchemas.length === 1) { return typeSchemas[0]; } return z.union(typeSchemas); } if (!type) { return z.any(); } let zodSchema; switch (type) { case "string": { let stringSchema = z.string(); if (schema2.format) { const format = schema2.format; if (format === "email") { stringSchema = stringSchema.check(z.email()); } else if (format === "uri" || format === "uri-reference") { stringSchema = stringSchema.check(z.url()); } else if (format === "uuid" || format === "guid") { stringSchema = stringSchema.check(z.uuid()); } else if (format === "date-time") { stringSchema = stringSchema.check(z.iso.datetime({ offset: true })); } else if (format === "date") { stringSchema = stringSchema.check(z.iso.date()); } else if (format === "time") { stringSchema = stringSchema.check(z.regex(fullTime)); } else if (format === "duration") { stringSchema = stringSchema.check(z.iso.duration()); } else if (format === "hostname") { stringSchema = stringSchema.check(z.hostname()); } else if (format === "ipv4") { stringSchema = stringSchema.check(z.ipv4()); } else if (format === "ipv6") { stringSchema = stringSchema.check(z.ipv6()); } else if (format === "mac") { stringSchema = stringSchema.check(z.mac()); } else if (format === "cidr") { stringSchema = stringSchema.check(z.cidrv4()); } else if (format === "cidr-v6") { stringSchema = stringSchema.check(z.cidrv6()); } else if (format === "base64") { stringSchema = stringSchema.check(z.base64()); } else if (format === "base64url") { stringSchema = stringSchema.check(z.base64url()); } else if (format === "e164") { stringSchema = stringSchema.check(z.e164()); } else if (format === "credit_card") { stringSchema = stringSchema.check(z.creditCard()); } else if (format === "iban") { stringSchema = stringSchema.check(z.iban()); } else if (format === "jwt") { stringSchema = stringSchema.check(z.jwt()); } else if (format === "emoji") { stringSchema = stringSchema.check(z.emoji()); } else if (format === "nanoid") { stringSchema = stringSchema.check(z.nanoid()); } else if (format === "cuid") { stringSchema = stringSchema.check(z.cuid()); } else if (format === "cuid2") { stringSchema = stringSchema.check(z.cuid2()); } else if (format === "ulid") { stringSchema = stringSchema.check(z.ulid()); } else if (format === "xid") { stringSchema = stringSchema.check(z.xid()); } else if (format === "ksuid") { stringSchema = stringSchema.check(z.ksuid()); } } if (typeof schema2.minLength === "number") { stringSchema = stringSchema.min(schema2.minLength); } if (typeof schema2.maxLength === "number") { stringSchema = stringSchema.max(schema2.maxLength); } if (schema2.pattern) { stringSchema = stringSchema.regex(new RegExp(schema2.pattern)); } zodSchema = stringSchema; break; } case "number": case "integer": { let numberSchema = type === "integer" ? z.number().int() : z.number(); if (typeof schema2.minimum === "number" && schema2.exclusiveMinimum !== true) { numberSchema = numberSchema.min(schema2.minimum); } if (typeof schema2.maximum === "number" && schema2.exclusiveMaximum !== true) { numberSchema = numberSchema.max(schema2.maximum); } if (typeof schema2.exclusiveMinimum === "number") { numberSchema = numberSchema.gt(schema2.exclusiveMinimum); } else if (schema2.exclusiveMinimum === true && typeof schema2.minimum === "number") { numberSchema = numberSchema.gt(schema2.minimum); } if (typeof schema2.exclusiveMaximum === "number") { numberSchema = numberSchema.lt(schema2.exclusiveMaximum); } else if (schema2.exclusiveMaximum === true && typeof schema2.maximum === "number") { numberSchema = numberSchema.lt(schema2.maximum); } if (typeof schema2.multipleOf === "number") { numberSchema = numberSchema.multipleOf(schema2.multipleOf); } zodSchema = numberSchema; break; } case "boolean": { zodSchema = z.boolean(); break; } case "null": { zodSchema = z.null(); break; } case "object": { const shape = {}; const properties = schema2.properties || {}; const requiredSet = new Set(schema2.required || []); const additionalSchema = typeof schema2.additionalProperties === "object" ? convertSchema(schema2.additionalProperties, ctx) : void 0; for (const [key, propSchema] of Object.entries(properties)) { const propZodSchema = convertSchema(propSchema, ctx); assignProp(shape, key, requiredSet.has(key) ? propZodSchema : propZodSchema.optional()); } if (schema2.patternProperties) { const patternProps = schema2.patternProperties; const patternKeys = Object.keys(patternProps); const looseRecords = []; for (const pattern of patternKeys) { const patternValue = convertSchema(patternProps[pattern], ctx); const keySchema = z.string().regex(new RegExp(pattern)); looseRecords.push(z.looseRecord(keySchema, patternValue)); } const schemasToIntersect = []; if (Object.keys(shape).length > 0) { schemasToIntersect.push(z.object(shape).passthrough()); } schemasToIntersect.push(...looseRecords); if (schemasToIntersect.length === 0) { zodSchema = z.object({}).passthrough(); } else if (schemasToIntersect.length === 1) { zodSchema = schemasToIntersect[0]; } else { let result = z.intersection(schemasToIntersect[0], schemasToIntersect[1]); for (let i5 = 2; i5 < schemasToIntersect.length; i5++) { result = z.intersection(result, schemasToIntersect[i5]); } zodSchema = result; } if (schema2.additionalProperties === false) { const propertyKeys = Object.keys(shape); const patterns = patternKeys.map((p3) => new RegExp(p3)); const basePatternSchema = zodSchema; zodSchema = zodSchema.check((payload) => { if (!isPlainObject(payload.value)) return; const unrecognized = []; for (const key of Object.keys(payload.value)) { if (propertyKeys.includes(key)) continue; if (patterns.some((regex) => regex.test(key))) continue; unrecognized.push(key); } if (unrecognized.length) { payload.issues.push({ code: "unrecognized_keys", keys: unrecognized, input: payload.value, inst: basePatternSchema }); } }); } } else { const objectSchema = z.object(shape); if (schema2.additionalProperties === false) { zodSchema = objectSchema.strict(); } else if (additionalSchema) { zodSchema = objectSchema.catchall(additionalSchema); } else { zodSchema = objectSchema.passthrough(); } } const hasKeyGuard = schema2.propertyNames !== void 0 && schema2.propertyNames !== true; const minProperties = typeof schema2.minProperties === "number" ? schema2.minProperties : void 0; const maxProperties = typeof schema2.maxProperties === "number" ? schema2.maxProperties : void 0; if (hasKeyGuard || minProperties !== void 0 || maxProperties !== void 0) { let keySchema; if (hasKeyGuard) { const keyJSONSchema = typeof schema2.propertyNames === "object" && schema2.propertyNames.type === void 0 ? { type: "string", ...schema2.propertyNames } : schema2.propertyNames; keySchema = convertSchema(keyJSONSchema, ctx); } zodSchema = checkObjectGuards(zodSchema, { keySchema, minProperties, maxProperties }); } break; } case "array": { const prefixItems = schema2.prefixItems; const items = schema2.items; if (prefixItems && Array.isArray(prefixItems)) { const minItems = typeof schema2.minItems === "number" ? schema2.minItems : 0; const tupleItems = prefixItems.map((item) => convertSchema(item, ctx)); const positionalItems = applyMinItems(tupleItems, minItems); const rest = !Array.isArray(items) ? getTupleRest(items, ctx) : void 0; const tupleSchema = z.tuple(positionalItems); zodSchema = rest ? tupleSchema.rest(rest) : tupleSchema; if (typeof schema2.minItems === "number") { zodSchema = zodSchema.check(z.minLength(schema2.minItems)); } if (typeof schema2.maxItems === "number") { zodSchema = zodSchema.check(z.maxLength(schema2.maxItems)); } } else if (Array.isArray(items)) { const minItems = typeof schema2.minItems === "number" ? schema2.minItems : 0; const tupleItems = items.map((item) => convertSchema(item, ctx)); const positionalItems = applyMinItems(tupleItems, minItems); const rest = getTupleRest(schema2.additionalItems, ctx); const tupleSchema = z.tuple(positionalItems); zodSchema = rest ? tupleSchema.rest(rest) : tupleSchema; if (typeof schema2.minItems === "number") { zodSchema = zodSchema.check(z.minLength(schema2.minItems)); } if (typeof schema2.maxItems === "number") { zodSchema = zodSchema.check(z.maxLength(schema2.maxItems)); } } else if (items !== void 0) { const element = convertSchema(items, ctx); let arraySchema = z.array(element); if (typeof schema2.minItems === "number") { arraySchema = arraySchema.min(schema2.minItems); } if (typeof schema2.maxItems === "number") { arraySchema = arraySchema.max(schema2.maxItems); } zodSchema = arraySchema; } else { zodSchema = z.array(z.any()); } if (schema2.uniqueItems === true || schema2.contains !== void 0) { zodSchema = checkArrayGuards(zodSchema, { uniqueItems: schema2.uniqueItems === true, containsSchema: schema2.contains !== void 0 ? convertSchema(schema2.contains, ctx) : void 0, minContains: typeof schema2.minContains === "number" ? schema2.minContains : void 0, maxContains: typeof schema2.maxContains === "number" ? schema2.maxContains : void 0 }); } break; } default: throw new Error(`Unsupported type: ${type}`); } return zodSchema; } __name(convertBaseSchema, "convertBaseSchema"); function convertSchema(schema2, ctx) { if (typeof schema2 === "boolean") { return schema2 ? z.any() : z.never(); } let baseSchema = convertBaseSchema(schema2, ctx); const hasExplicitType = schema2.type || schema2.enum !== void 0 || schema2.const !== void 0; if (schema2.anyOf && Array.isArray(schema2.anyOf)) { const options = schema2.anyOf.map((s2) => convertSchema(s2, ctx)); const anyOfUnion = z.union(options); baseSchema = hasExplicitType ? z.intersection(baseSchema, anyOfUnion) : anyOfUnion; } if (schema2.oneOf && Array.isArray(schema2.oneOf)) { const options = schema2.oneOf.map((s2) => convertSchema(s2, ctx)); const oneOfUnion = z.xor(options); baseSchema = hasExplicitType ? z.intersection(baseSchema, oneOfUnion) : oneOfUnion; } if (schema2.allOf && Array.isArray(schema2.allOf)) { if (schema2.allOf.length === 0) { baseSchema = hasExplicitType ? baseSchema : z.any(); } else { let result = hasExplicitType ? baseSchema : convertSchema(schema2.allOf[0], ctx); const startIdx = hasExplicitType ? 0 : 1; for (let i5 = startIdx; i5 < schema2.allOf.length; i5++) { result = z.intersection(result, convertSchema(schema2.allOf[i5], ctx)); } baseSchema = result; } } if (schema2.nullable === true && ctx.version === "openapi-3.0") { baseSchema = z.nullable(baseSchema); } if (schema2.readOnly === true) { baseSchema = z.readonly(baseSchema); } if (schema2.default !== void 0) { baseSchema = baseSchema.default(schema2.default); } const extraMeta = {}; const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"]; for (const key of coreMetadataKeys) { if (key in schema2) { extraMeta[key] = schema2[key]; } } const contentMetadataKeys = ["contentEncoding", "contentMediaType", "contentSchema"]; for (const key of contentMetadataKeys) { if (key in schema2) { extraMeta[key] = schema2[key]; } } if (schema2.type === "object" && schema2.$ref === void 0) { if (schema2.propertyNames !== void 0 && !containsRef(schema2.propertyNames)) { extraMeta.propertyNames = schema2.propertyNames; } for (const key of ["minProperties", "maxProperties"]) { if (schema2[key] !== void 0) extraMeta[key] = schema2[key]; } } if (schema2.type === "array" && schema2.$ref === void 0) { if (schema2.contains !== void 0 && !containsRef(schema2.contains)) { extraMeta.contains = schema2.contains; } for (const key of ["uniqueItems", "minContains", "maxContains"]) { if (schema2[key] !== void 0) extraMeta[key] = schema2[key]; } } for (const key of Object.keys(schema2)) { if (!RECOGNIZED_KEYS.has(key)) { assignProp(extraMeta, key, schema2[key]); } } if (Object.keys(extraMeta).length > 0) { ctx.registry.add(baseSchema, extraMeta); } if (schema2.description) { baseSchema = baseSchema.describe(schema2.description); } return baseSchema; } __name(convertSchema, "convertSchema"); function fromJSONSchema(schema2, params) { if (typeof schema2 === "boolean") { return schema2 ? z.any() : z.never(); } let normalized; try { normalized = JSON.parse(JSON.stringify(schema2)); } catch { throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas"); } const version2 = detectVersion(normalized, params?.defaultTarget); const defs = normalized.$defs || normalized.definitions || {}; const ctx = { version: version2, defs, refs: /* @__PURE__ */ new Map(), processing: /* @__PURE__ */ new Set(), rootSchema: normalized, registry: params?.registry ?? globalRegistry }; return convertSchema(normalized, ctx); } __name(fromJSONSchema, "fromJSONSchema"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/visit.js var RESOLVING = /* @__PURE__ */ Symbol("z.visit/resolving"); function visit(schema2, fnOrHandlers) { const fn = typeof fnOrHandlers === "function" ? fnOrHandlers : (node2, rewritten) => { const h5 = fnOrHandlers[node2._zod.def.type]; return h5 ? h5(node2, rewritten) : node2; }; const cache5 = /* @__PURE__ */ new Map(); function run(s2) { const cached2 = cache5.get(s2); if (cached2 === RESOLVING) { return new $ZodLazy({ type: "lazy", getter: /* @__PURE__ */ __name(() => cache5.get(s2), "getter") }); } if (cached2 !== void 0) return cached2; cache5.set(s2, RESOLVING); const inner = mapInner(s2); const mapped = fn(inner, inner !== s2); cache5.set(s2, mapped); return mapped; } __name(run, "run"); function mapInner(s2) { const def = s2._zod.def; const kind = def.type; switch (kind) { case "object": { const oldShape = def.shape; const keys = Object.keys(oldShape); let changed = false; const newShape = {}; for (const k5 of keys) { const mapped = run(oldShape[k5]); if (mapped !== oldShape[k5]) changed = true; newShape[k5] = mapped; } let newCatchall = def.catchall; if (def.catchall) { newCatchall = run(def.catchall); if (newCatchall !== def.catchall) changed = true; } return changed ? clone(s2, { ...def, shape: newShape, catchall: newCatchall }) : s2; } case "array": { const mapped = run(def.element); return mapped === def.element ? s2 : clone(s2, { ...def, element: mapped }); } case "tuple": { const oldItems = def.items; let changed = false; const newItems = []; for (const item of oldItems) { const mapped = run(item); if (mapped !== item) changed = true; newItems.push(mapped); } let newRest = def.rest; if (def.rest) { newRest = run(def.rest); if (newRest !== def.rest) changed = true; } return changed ? clone(s2, { ...def, items: newItems, rest: newRest }) : s2; } case "record": case "map": { const newKey = run(def.keyType); const newVal = run(def.valueType); return newKey === def.keyType && newVal === def.valueType ? s2 : clone(s2, { ...def, keyType: newKey, valueType: newVal }); } case "set": { const newVal = run(def.valueType); return newVal === def.valueType ? s2 : clone(s2, { ...def, valueType: newVal }); } case "union": { const oldOptions = def.options; let changed = false; const newOptions = []; for (const opt of oldOptions) { const mapped = run(opt); if (mapped !== opt) changed = true; newOptions.push(mapped); } return changed ? clone(s2, { ...def, options: newOptions }) : s2; } case "intersection": { const newLeft = run(def.left); const newRight = run(def.right); return newLeft === def.left && newRight === def.right ? s2 : clone(s2, { ...def, left: newLeft, right: newRight }); } case "optional": case "nullable": case "default": case "prefault": case "catch": case "readonly": case "nonoptional": case "promise": case "success": { const newInner = run(def.innerType); return newInner === def.innerType ? s2 : clone(s2, { ...def, innerType: newInner }); } case "pipe": { const newIn = run(def.in); const newOut = run(def.out); return newIn === def.in && newOut === def.out ? s2 : clone(s2, { ...def, in: newIn, out: newOut }); } case "function": { const newInput = run(def.input); const newOutput = run(def.output); return newInput === def.input && newOutput === def.output ? s2 : clone(s2, { ...def, input: newInput, output: newOutput }); } case "lazy": { const original = def.getter; const { _cachedInner, ...rest } = def; return clone(s2, { ...rest, getter: /* @__PURE__ */ __name(() => run(original()), "getter") }); } // A leaf by choice: `parts` are regex fragments, not data positions. case "template_literal": // Leaves. case "string": case "number": case "int": case "boolean": case "bigint": case "symbol": case "undefined": case "null": case "void": case "never": case "any": case "unknown": case "date": case "nan": case "enum": case "literal": case "file": case "transform": case "custom": return s2; default: { kind; return s2; } } } __name(mapInner, "mapInner"); return run(schema2); } __name(visit, "visit"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/deep-partial.js function deepPartial(schema2) { return visit(schema2, { object: /* @__PURE__ */ __name((s2) => s2.partial(), "object"), // Every partialed option now admits `undefined`, which the constructor rejects as a duplicate. union: /* @__PURE__ */ __name((s2) => { const def = s2._zod.def; return def.discriminator === void 0 ? s2 : union(def.options); }, "union") }); } __name(deepPartial, "deepPartial"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/in-out.js function withChecks(side, checks) { if (!checks?.length) return side; const def = side._zod.def; return clone(side, mergeDefs(def, { checks: [...def.checks ?? [], ...checks] }), { parent: true }); } __name(withChecks, "withChecks"); function outSide(def) { return withChecks(def.out, def.checks); } __name(outSide, "outSide"); function inSide(def) { return def.in._zod.traits.has("$ZodTransform") ? outSide(def) : def.in; } __name(inSide, "inSide"); function input(schema2) { return visit(schema2, { pipe: /* @__PURE__ */ __name((s2) => inSide(s2._zod.def), "pipe"), // A default value belongs to the output side, so a rewritten inner type leaves it stranded. `.default()` widens the declared input type with `undefined`, and `optional` is what carries that across. default: /* @__PURE__ */ __name((s2, rewritten) => rewritten ? optional(s2._zod.def.innerType) : s2, "default"), // A catch value is output-side too, but `.catch()` leaves the declared input type alone, so the inner schema stands on its own. catch: /* @__PURE__ */ __name((s2, rewritten) => rewritten ? s2._zod.def.innerType : s2, "catch") }); } __name(input, "input"); function output(schema2) { return visit(schema2, { pipe: /* @__PURE__ */ __name((s2) => outSide(s2._zod.def), "pipe"), // A prefault value is fed through the schema, which makes it input-side, so a rewritten inner type leaves it stranded. prefault: /* @__PURE__ */ __name((s2, rewritten) => rewritten ? s2._zod.def.innerType : s2, "prefault") }); } __name(output, "output"); // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/coerce.js var coerce_exports = {}; __export(coerce_exports, { bigint: () => bigint3, boolean: () => boolean3, date: () => date4, number: () => number3, string: () => string3 }); function string3(params) { return _coercedString(ZodString, params); } __name(string3, "string"); function number3(params) { return _coercedNumber(ZodNumber, params); } __name(number3, "number"); function boolean3(params) { return _coercedBoolean(ZodBoolean, params); } __name(boolean3, "boolean"); function bigint3(params) { return _coercedBigint(ZodBigInt, params); } __name(bigint3, "bigint"); function date4(params) { return _coercedDate(ZodDate, params); } __name(date4, "date"); // dist/config/env.js if (existsSync(".env")) process.loadEnvFile(".env"); var bool = /* @__PURE__ */ __name((fallback2) => external_exports.enum(["true", "false", "1", "0"]).optional().transform((v) => v === void 0 ? fallback2 : v === "true" || v === "1"), "bool"); var schema = external_exports.object({ NODE_ENV: external_exports.enum(["development", "production", "test"]).default("development"), PORT: external_exports.coerce.number().int().default(4e3), CORS_ORIGINS: external_exports.string().default(""), TRUST_PROXY: external_exports.coerce.number().int().min(0).default(1), DATABASE_URL: external_exports.string().min(1), JWT_SECRET: external_exports.string().min(32, "JWT_SECRET must be at least 32 characters"), JWT_ACCESS_TTL: external_exports.string().default("15m"), REFRESH_TTL_DAYS: external_exports.coerce.number().int().positive().default(30), COOKIE_SECURE: bool(true), S3_ENDPOINT: external_exports.string().optional(), S3_REGION: external_exports.string().default("us-east-1"), S3_BUCKET: external_exports.string().default("imen-media"), S3_ACCESS_KEY: external_exports.string().default(""), S3_SECRET_KEY: external_exports.string().default(""), S3_FORCE_PATH_STYLE: bool(true), S3_ENSURE_BUCKET: bool(false), MEDIA_PUBLIC_URL: external_exports.string().default("/media").transform((v) => v.replace(/\/+$/, "")), WEB_REVALIDATE_URL: external_exports.string().optional(), REVALIDATE_SECRET: external_exports.string().optional(), ADMIN_PHONE: external_exports.string().optional(), ADMIN_PASSWORD: external_exports.string().optional(), ADMIN_NAME: external_exports.string().default("\u0645\u062F\u06CC\u0631 \u0633\u0627\u06CC\u062A") }); var parsed = schema.safeParse(process.env); if (!parsed.success) { console.error("Invalid environment variables:\n" + external_exports.prettifyError(parsed.error)); process.exit(1); } var env = parsed.data; var isProd = env.NODE_ENV === "production"; // ../../packages/shared/dist/common.js var req = /* @__PURE__ */ __name((max = 300) => external_exports.string().trim().min(1, "\u0627\u06CC\u0646 \u0641\u06CC\u0644\u062F \u0627\u0644\u0632\u0627\u0645\u06CC \u0627\u0633\u062A").max(max), "req"); var text = /* @__PURE__ */ __name((max = 300) => external_exports.string().trim().max(max).default(""), "text"); var idSchema = external_exports.coerce.number().int().positive(); var slugSchema = external_exports.string().trim().min(1, "\u0627\u06CC\u0646 \u0641\u06CC\u0644\u062F \u0627\u0644\u0632\u0627\u0645\u06CC \u0627\u0633\u062A").max(80).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, "\u0641\u0642\u0637 \u062D\u0631\u0648\u0641 \u06A9\u0648\u0686\u06A9 \u0627\u0646\u06AF\u0644\u06CC\u0633\u06CC\u060C \u0639\u062F\u062F \u0648 \u062E\u0637 \u062A\u06CC\u0631\u0647 (\u0645\u062B\u0644\u0627\u064B safety-shoes)"); var iconNameSchema = external_exports.string().trim().min(1).max(80); var imageRefSchema = external_exports.object({ url: req(500), alt: text(200) }); var linkSchema = external_exports.object({ label: req(60), href: req(300) }); var toIssues = /* @__PURE__ */ __name((error62) => error62.issues.map((i5) => ({ path: i5.path.map(String).join("."), message: i5.message })), "toIssues"); // ../../packages/shared/dist/sections.js var WEEK_DAYS = [ "Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" ]; var SOCIAL_TYPES = [ "website", "telegram", "instagram", "linkedin", "whatsapp", "bale", "eitaa", "aparat", "youtube", "email", "phone" ]; var iconLabel = external_exports.object({ icon: iconNameSchema, label: req(80) }); var iconCard = external_exports.object({ icon: iconNameSchema, title: req(80), desc: text(300) }); var sectionHeadSchema = external_exports.object({ tag: req(80), title: req(200), /** optional accented last line of the title */ highlight: text(120), desc: text(500) }); var settingsSectionSchema = external_exports.object({ name: req(80), nameEn: req(120), /** default and og:title */ title: req(120), /** default meta description */ description: req(400), /** machine-readable phone for tel: links and schema.org, e.g. +98-21-91008800 */ phone: req(30), phoneDisplay: req(40), email: external_exports.email("\u0627\u06CC\u0645\u06CC\u0644 \u0645\u0639\u062A\u0628\u0631 \u0646\u06CC\u0633\u062A"), address: external_exports.object({ street: req(200), locality: req(80), country: external_exports.string().trim().length(2).default("IR") }), /** human-readable working hours, e.g. «شنبه تا پنجشنبه — ۸:۰۰ تا ۱۷:۰۰» */ workingHours: req(120), openingHours: external_exports.object({ days: external_exports.array(external_exports.enum(WEEK_DAYS)).max(7), opens: external_exports.string().regex(/^\d{2}:\d{2}$/, "\u0642\u0627\u0644\u0628 \u0633\u0627\u0639\u062A \u0628\u0627\u06CC\u062F HH:MM \u0628\u0627\u0634\u062F"), closes: external_exports.string().regex(/^\d{2}:\d{2}$/, "\u0642\u0627\u0644\u0628 \u0633\u0627\u0639\u062A \u0628\u0627\u06CC\u062F HH:MM \u0628\u0627\u0634\u062F") }), foundingDate: external_exports.string().regex(/^\d{4}$/, "\u0633\u0627\u0644 \u0645\u06CC\u0644\u0627\u062F\u06CC \u0686\u0647\u0627\u0631\u0631\u0642\u0645\u06CC"), socials: external_exports.array(external_exports.object({ type: external_exports.enum(SOCIAL_TYPES), url: req(300) })).max(12), ogImage: imageRefSchema.extend({ width: external_exports.number().int().positive().nullable().default(null), height: external_exports.number().int().positive().nullable().default(null) }) }); var heroSectionSchema = external_exports.object({ enabled: external_exports.boolean().default(true), badge: req(120), title: req(80), titleHighlight: req(80), intro: req(600), primaryCta: linkSchema, secondaryCta: linkSchema, chips: external_exports.array(iconLabel).max(6), miniStats: external_exports.array(external_exports.object({ value: req(20), label: req(80) })).max(4), image: imageRefSchema, /** «آخرین بازرسی» date shown on the status card */ lastInspection: text(20) }); var tapeSectionSchema = external_exports.object({ enabled: external_exports.boolean().default(true), items: external_exports.array(req(80)).min(1).max(20) }); var statsSectionSchema = external_exports.object({ enabled: external_exports.boolean().default(true), items: external_exports.array(external_exports.object({ end: external_exports.number().int().min(0).max(1e9), suffix: text(5), label: req(80), note: text(40) })).max(8) }); var productsIntroSectionSchema = external_exports.object({ enabled: external_exports.boolean().default(true), head: sectionHeadSchema, ctaLabel: req(60), trust: external_exports.array(iconCard).max(6) }); var aboutSectionSchema = external_exports.object({ enabled: external_exports.boolean().default(true), head: sectionHeadSchema, body: req(2e3), image: imageRefSchema, badge: external_exports.object({ value: req(20), label: req(80) }), timeline: external_exports.array(external_exports.object({ year: req(10), text: req(200) })).max(12), features: external_exports.array(iconLabel).max(6) }); var servicesSectionSchema = external_exports.object({ enabled: external_exports.boolean().default(true), head: sectionHeadSchema, items: external_exports.array(external_exports.object({ icon: iconNameSchema, title: req(80), desc: req(600), items: external_exports.array(req(120)).max(8) })).max(10) }); var standardsSectionSchema = external_exports.object({ enabled: external_exports.boolean().default(true), head: sectionHeadSchema, note: text(500), ctaLabel: req(80), items: external_exports.array(external_exports.object({ code: req(30), label: req(80) })).max(12) }); var industriesSectionSchema = external_exports.object({ enabled: external_exports.boolean().default(true), head: sectionHeadSchema, items: external_exports.array(external_exports.object({ name: req(60), nameEn: text(60), count: text(20), image: imageRefSchema })).max(12) }); var testimonialsSectionSchema = external_exports.object({ enabled: external_exports.boolean().default(true), head: sectionHeadSchema, items: external_exports.array(external_exports.object({ text: req(600), name: req(80), role: text(160) })).max(12) }); var contactSectionSchema = external_exports.object({ enabled: external_exports.boolean().default(true), head: sectionHeadSchema, emergencyTitle: req(80), emergencyText: req(400), formTag: text(80), formTitle: req(160), successTitle: req(80), successText: req(300) }); var footerSectionSchema = external_exports.object({ enabled: external_exports.boolean().default(true), about: req(500), copyright: req(160), certLine: text(160), emergencyNote: text(80) }); var sectionSchemas = { settings: settingsSectionSchema, hero: heroSectionSchema, tape: tapeSectionSchema, stats: statsSectionSchema, productsIntro: productsIntroSectionSchema, about: aboutSectionSchema, services: servicesSectionSchema, standards: standardsSectionSchema, industries: industriesSectionSchema, testimonials: testimonialsSectionSchema, contact: contactSectionSchema, footer: footerSectionSchema }; var SECTION_KEYS = Object.keys(sectionSchemas); var isSectionKey = /* @__PURE__ */ __name((key) => key in sectionSchemas, "isSectionKey"); // ../../packages/shared/dist/admin.js var ROLES = ["ADMIN", "EDITOR"]; var password = external_exports.string().min(8, "\u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0628\u0627\u06CC\u062F \u062D\u062F\u0627\u0642\u0644 \u06F8 \u06A9\u0627\u0631\u0627\u06A9\u062A\u0631 \u0628\u0627\u0634\u062F").max(128); var FA_DIGITS = "\u06F0\u06F1\u06F2\u06F3\u06F4\u06F5\u06F6\u06F7\u06F8\u06F9"; var AR_DIGITS = "\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669"; function normalizeIrMobile(raw4) { let s2 = raw4.trim().replace(/[\s\-()]/g, ""); s2 = s2.replace(/[۰-۹٠-٩]/g, (d5) => { const fa = FA_DIGITS.indexOf(d5); if (fa >= 0) return String(fa); const ar = AR_DIGITS.indexOf(d5); return ar >= 0 ? String(ar) : d5; }); if (s2.startsWith("+98")) s2 = `0${s2.slice(3)}`; else if (s2.startsWith("0098")) s2 = `0${s2.slice(4)}`; else if (s2.startsWith("98") && s2.length === 12) s2 = `0${s2.slice(2)}`; return s2; } __name(normalizeIrMobile, "normalizeIrMobile"); var irMobileSchema = external_exports.string().trim().min(1, "\u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06CC\u0644 \u0631\u0627 \u0648\u0627\u0631\u062F \u06A9\u0646\u06CC\u062F").transform(normalizeIrMobile).pipe(external_exports.string().regex(/^09\d{9}$/, "\u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06CC\u0644 \u0645\u0639\u062A\u0628\u0631 \u0646\u06CC\u0633\u062A (\u0645\u062B\u0644\u0627\u064B \u06F0\u06F9\u06F1\u06F2\u06F1\u06F2\u06F3\u06F4\u06F5\u06F6\u06F7)")); var loginSchema = external_exports.object({ phone: irMobileSchema, password: external_exports.string().min(1, "\u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0631\u0627 \u0648\u0627\u0631\u062F \u06A9\u0646\u06CC\u062F").max(128) }); var changePasswordSchema = external_exports.object({ currentPassword: external_exports.string().min(1, "\u0631\u0645\u0632 \u0641\u0639\u0644\u06CC \u0631\u0627 \u0648\u0627\u0631\u062F \u06A9\u0646\u06CC\u062F").max(128), newPassword: password }); var userCreateSchema = external_exports.object({ phone: irMobileSchema, name: req(80), role: external_exports.enum(ROLES), password }); var userUpdateSchema = external_exports.object({ name: req(80), role: external_exports.enum(ROLES), isActive: external_exports.boolean(), /** set only when resetting the password */ password: password.optional() }); var MESSAGE_STATUSES = ["NEW", "READ", "ARCHIVED"]; var contactInputSchema = external_exports.object({ name: req(80), org: req(120), phone: external_exports.string().trim().min(1, "\u0627\u06CC\u0646 \u0641\u06CC\u0644\u062F \u0627\u0644\u0632\u0627\u0645\u06CC \u0627\u0633\u062A").max(30).regex(/^[0-9۰-۹+\-\s()]{5,30}$/, "\u0634\u0645\u0627\u0631\u0647 \u062A\u0645\u0627\u0633 \u0645\u0639\u062A\u0628\u0631 \u0646\u06CC\u0633\u062A"), message: text(2e3), /** honeypot — real visitors never fill it */ website: external_exports.string().max(200).optional() }); var messageUpdateSchema = external_exports.object({ status: external_exports.enum(MESSAGE_STATUSES) }); var mediaUpdateSchema = external_exports.object({ alt: text(200) }); // ../../packages/shared/dist/icons.js var ICON_ALIASES = { // Navigation & Actions ArrowLeft: "arrow-left", ArrowRight: "arrow-right", ArrowUp: "arrow-up", ArrowDown: "arrow-down", ChevronDown: "arrow-down-1", ChevronUp: "arrow-up-1", ChevronLeft: "arrow-left-1", ChevronRight: "arrow-right-1", Menu: "menu", X: "close-circle", Plus: "add", Trash: "trash", Edit: "edit-2", Copy: "copy", Check: "tick-circle", Search: "search-normal", Filter: "filter", Eye: "eye", EyeOff: "eye-slash", ImageOff: "gallery-slash", Quote: "quote-up", // Contact & Social Phone: "call", Mail: "sms", MapPin: "location", Clock: "clock", Globe: "global", Send: "send-2", Instagram: "instagram", Linkedin: "link", MessageCircle: "messages-2", Youtube: "video-play", AtSign: "sms", // Equipment & Safety Categories HardHat: "security-safe", Glasses: "glass", Shirt: "tag", Footprints: "routing-2", Hand: "shield-tick", Ear: "volume-high", Wind: "wind-2", TriangleAlert: "danger", Siren: "lamp-on", TrafficCone: "danger", Construction: "setting-2", Factory: "building-4", Building2: "buildings-2", Fuel: "gas-station", Pickaxe: "hierarchy", Flame: "flash", Zap: "flash-circle", Leaf: "tree", HeartPulse: "heart-tick", Star: "star", ThumbsUp: "like-1", Target: "radar-2", Lock: "lock", // Trust, Certifications & Standards ShieldCheck: "shield-tick", ShieldPlus: "shield-security", ShieldAlert: "shield-cross", BadgeCheck: "verify", Award: "award", Medal: "medal-star", PackageCheck: "box-tick", Package: "box", Truck: "truck-time", Warehouse: "buildings", Users: "people", Handshake: "user-tag", Headset: "24-support", ClipboardCheck: "clipboard-tick", FileCheck: "document-text", FileSearch: "document-filter", GraduationCap: "teacher", Gauge: "status", Microscope: "search-status", Wrench: "setting-4" }; var RECOMMENDED_ICONS = [ "shield-tick", "shield-security", "shield-cross", "security-safe", "security-user", "verify", "award", "medal-star", "box-tick", "box", "truck-time", "buildings", "building-4", "buildings-2", "global", "people", "user-tag", "24-support", "call", "sms", "location", "clock", "clipboard-tick", "document-text", "document-filter", "teacher", "status", "search-status", "setting-2", "setting-4", "glass", "tag", "routing-2", "volume-high", "wind-2", "danger", "lamp-on", "gas-station", "hierarchy", "flash", "flash-circle", "tree", "heart-tick", "star", "like-1", "radar-2", "lock", "eye", "gallery", "video-play" ]; var ICON_NAMES = [ ...RECOMMENDED_ICONS, ...Object.keys(ICON_ALIASES) ]; // ../../packages/shared/dist/catalog.js var shortList = external_exports.array(external_exports.string().trim().min(1).max(120)).max(20).default([]); var productAttributeSchema = external_exports.object({ name: req(80), value: req(300) }); var productGroupInputSchema = external_exports.object({ /** present when editing an existing group */ id: idSchema.optional(), slug: slugSchema, name: req(120), desc: text(1e3) }); var categoryInputSchema = external_exports.object({ slug: slugSchema, code: req(20), name: req(120), nameEn: text(120), shortDesc: text(500), fullDesc: text(3e3), icon: text(40), coverImageId: idSchema.nullable().default(null), isPublished: external_exports.boolean().default(true), seoTitle: text(120), seoDescription: text(300), groups: external_exports.array(productGroupInputSchema).max(30).default([]) }); var productInputSchema = external_exports.object({ categoryId: idSchema, groupId: idSchema.nullable().default(null), code: req(30), slug: slugSchema, name: req(160), nameEn: text(160), desc: text(2e3), specs: shortList, variants: shortList, details: text(8e3), brand: text(80), origin: text(80), sizes: shortList, standards: shortList, features: external_exports.array(external_exports.string().trim().min(1).max(300)).max(30).default([]), applications: shortList, attributes: external_exports.array(productAttributeSchema).max(40).default([]), packaging: text(200), minOrder: text(120), seoTitle: text(120), seoDescription: text(300), imageId: idSchema.nullable().default(null), galleryIds: external_exports.array(idSchema).max(12).default([]), isPublished: external_exports.boolean().default(true) }); var reorderSchema = external_exports.object({ ids: external_exports.array(idSchema).min(1).max(1e3) }); var productListQuerySchema = external_exports.object({ categoryId: idSchema.optional(), groupId: idSchema.optional(), q: external_exports.string().trim().max(100).optional(), status: external_exports.enum(["published", "draft"]).optional(), page: external_exports.coerce.number().int().min(1).default(1), pageSize: external_exports.coerce.number().int().min(1).max(200).default(50) }); // dist/prisma/prisma.service.js init_common(); // ../../node_modules/.pnpm/@prisma+debug@7.10.1/node_modules/@prisma/debug/dist/index.mjs var __defProp = Object.defineProperty; var __export2 = /* @__PURE__ */ __name((target, all) => { for (var name2 in all) __defProp(target, name2, { get: all[name2], enumerable: true }); }, "__export"); var colors_exports = {}; __export2(colors_exports, { $: /* @__PURE__ */ __name(() => $, "$"), bgBlack: /* @__PURE__ */ __name(() => bgBlack, "bgBlack"), bgBlue: /* @__PURE__ */ __name(() => bgBlue, "bgBlue"), bgCyan: /* @__PURE__ */ __name(() => bgCyan, "bgCyan"), bgGreen: /* @__PURE__ */ __name(() => bgGreen, "bgGreen"), bgMagenta: /* @__PURE__ */ __name(() => bgMagenta, "bgMagenta"), bgRed: /* @__PURE__ */ __name(() => bgRed, "bgRed"), bgWhite: /* @__PURE__ */ __name(() => bgWhite, "bgWhite"), bgYellow: /* @__PURE__ */ __name(() => bgYellow, "bgYellow"), black: /* @__PURE__ */ __name(() => black, "black"), blue: /* @__PURE__ */ __name(() => blue, "blue"), bold: /* @__PURE__ */ __name(() => bold, "bold"), cyan: /* @__PURE__ */ __name(() => cyan, "cyan"), dim: /* @__PURE__ */ __name(() => dim, "dim"), gray: /* @__PURE__ */ __name(() => gray, "gray"), green: /* @__PURE__ */ __name(() => green, "green"), grey: /* @__PURE__ */ __name(() => grey, "grey"), hidden: /* @__PURE__ */ __name(() => hidden, "hidden"), inverse: /* @__PURE__ */ __name(() => inverse, "inverse"), italic: /* @__PURE__ */ __name(() => italic, "italic"), magenta: /* @__PURE__ */ __name(() => magenta, "magenta"), red: /* @__PURE__ */ __name(() => red, "red"), reset: /* @__PURE__ */ __name(() => reset, "reset"), strikethrough: /* @__PURE__ */ __name(() => strikethrough, "strikethrough"), underline: /* @__PURE__ */ __name(() => underline, "underline"), white: /* @__PURE__ */ __name(() => white, "white"), yellow: /* @__PURE__ */ __name(() => yellow, "yellow") }); var FORCE_COLOR; var NODE_DISABLE_COLORS; var NO_COLOR; var TERM; var isTTY = true; if (typeof process !== "undefined") { ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {}); isTTY = process.stdout && process.stdout.isTTY; } var $ = { enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY) }; function init(x, y) { let rgx = new RegExp(`\\x1b\\[${y}m`, "g"); let open2 = `\x1B[${x}m`, close = `\x1B[${y}m`; return function(txt) { if (!$.enabled || txt == null) return txt; return open2 + (!!~("" + txt).indexOf(close) ? txt.replace(rgx, close + open2) : txt) + close; }; } __name(init, "init"); var reset = init(0, 0); var bold = init(1, 22); var dim = init(2, 22); var italic = init(3, 23); var underline = init(4, 24); var inverse = init(7, 27); var hidden = init(8, 28); var strikethrough = init(9, 29); var black = init(30, 39); var red = init(31, 39); var green = init(32, 39); var yellow = init(33, 39); var blue = init(34, 39); var magenta = init(35, 39); var cyan = init(36, 39); var white = init(37, 39); var gray = init(90, 39); var grey = init(90, 39); var bgBlack = init(40, 49); var bgRed = init(41, 49); var bgGreen = init(42, 49); var bgYellow = init(43, 49); var bgBlue = init(44, 49); var bgMagenta = init(45, 49); var bgCyan = init(46, 49); var bgWhite = init(47, 49); var MAX_ARGS_HISTORY = 100; var COLORS = ["green", "yellow", "blue", "magenta", "cyan", "red"]; var argsHistory = []; var lastTimestamp = Date.now(); var lastColor = 0; var processEnv = typeof process !== "undefined" ? process.env : {}; globalThis.DEBUG ??= processEnv.DEBUG ?? ""; globalThis.DEBUG_COLORS ??= processEnv.DEBUG_COLORS ? processEnv.DEBUG_COLORS === "true" : true; var topProps = { enable(namespace) { if (typeof namespace === "string") { globalThis.DEBUG = namespace; } }, disable() { const prev = globalThis.DEBUG; globalThis.DEBUG = ""; return prev; }, // this is the core logic to check if logging should happen or not enabled(namespace) { const listenedNamespaces = globalThis.DEBUG.split(",").map((s2) => { return s2.replace(/[.+?^${}()|[\]\\]/g, "\\$&"); }); const isListened = listenedNamespaces.some((listenedNamespace) => { if (listenedNamespace === "" || listenedNamespace[0] === "-") return false; return namespace.match(RegExp(listenedNamespace.split("*").join(".*") + "$")); }); const isExcluded = listenedNamespaces.some((listenedNamespace) => { if (listenedNamespace === "" || listenedNamespace[0] !== "-") return false; return namespace.match(RegExp(listenedNamespace.slice(1).split("*").join(".*") + "$")); }); return isListened && !isExcluded; }, log: /* @__PURE__ */ __name((...args) => { const [namespace, format, ...rest] = args; const logWithFormatting = console.warn ?? console.log; logWithFormatting(`${namespace} ${format}`, ...rest); }, "log"), formatters: {} // not implemented }; function debugCreate(namespace) { const instanceProps = { color: COLORS[lastColor++ % COLORS.length], enabled: topProps.enabled(namespace), namespace, log: topProps.log, extend: /* @__PURE__ */ __name(() => { }, "extend") // not implemented }; const debugCall = /* @__PURE__ */ __name((...args) => { const { enabled, namespace: namespace2, color, log } = instanceProps; if (args.length !== 0) { argsHistory.push([namespace2, ...args]); } if (argsHistory.length > MAX_ARGS_HISTORY) { argsHistory.shift(); } if (topProps.enabled(namespace2) || enabled) { const stringArgs = args.map((arg) => { if (typeof arg === "string") { return arg; } return safeStringify(arg); }); const ms = `+${Date.now() - lastTimestamp}ms`; lastTimestamp = Date.now(); if (globalThis.DEBUG_COLORS) { log(colors_exports[color](bold(namespace2)), ...stringArgs, colors_exports[color](ms)); } else { log(namespace2, ...stringArgs, ms); } } }, "debugCall"); return new Proxy(debugCall, { get: /* @__PURE__ */ __name((_, prop) => instanceProps[prop], "get"), set: /* @__PURE__ */ __name((_, prop, value) => instanceProps[prop] = value, "set") }); } __name(debugCreate, "debugCreate"); var Debug2 = new Proxy(debugCreate, { get: /* @__PURE__ */ __name((_, prop) => topProps[prop], "get"), set: /* @__PURE__ */ __name((_, prop, value) => topProps[prop] = value, "set") }); function safeStringify(value, indent = 2) { const cache5 = /* @__PURE__ */ new Set(); return JSON.stringify( value, (key, value2) => { if (typeof value2 === "object" && value2 !== null) { if (cache5.has(value2)) { return `[Circular *]`; } cache5.add(value2); } else if (typeof value2 === "bigint") { return value2.toString(); } return value2; }, indent ); } __name(safeStringify, "safeStringify"); // ../../node_modules/.pnpm/@prisma+driver-adapter-utils@7.10.1/node_modules/@prisma/driver-adapter-utils/dist/index.mjs var DriverAdapterError = class extends Error { static { __name(this, "DriverAdapterError"); } name = "DriverAdapterError"; cause; constructor(payload) { super(typeof payload["message"] === "string" ? payload["message"] : payload.kind); this.cause = payload; } }; var debug = Debug2("driver-adapter-utils"); var ColumnTypeEnum = { // Scalars Int32: 0, Int64: 1, Float: 2, Double: 3, Numeric: 4, Boolean: 5, Character: 6, Text: 7, Date: 8, Time: 9, DateTime: 10, Json: 11, Enum: 12, Bytes: 13, Set: 14, Uuid: 15, // Arrays Int32Array: 64, Int64Array: 65, FloatArray: 66, DoubleArray: 67, NumericArray: 68, BooleanArray: 69, CharacterArray: 70, TextArray: 71, DateArray: 72, TimeArray: 73, DateTimeArray: 74, JsonArray: 75, EnumArray: 76, BytesArray: 77, UuidArray: 78, // Custom UnknownNumber: 128 }; var mockAdapterErrors = { queryRaw: new Error("Not implemented: queryRaw"), executeRaw: new Error("Not implemented: executeRaw"), startTransaction: new Error("Not implemented: startTransaction"), executeScript: new Error("Not implemented: executeScript"), dispose: new Error("Not implemented: dispose") }; // ../../node_modules/.pnpm/@prisma+adapter-pg@7.10.1/node_modules/@prisma/adapter-pg/dist/index.mjs var import_postgres_array = __toESM(require_postgres_array(), 1); var name = "@prisma/adapter-pg"; var FIRST_NORMAL_OBJECT_ID = 16384; var { types } = esm_default; var { builtins: ScalarColumnType, getTypeParser } = types; var AdditionalScalarColumnType = { NAME: 19 }; var ArrayColumnType = { BIT_ARRAY: 1561, BOOL_ARRAY: 1e3, BYTEA_ARRAY: 1001, BPCHAR_ARRAY: 1014, CHAR_ARRAY: 1002, CIDR_ARRAY: 651, DATE_ARRAY: 1182, FLOAT4_ARRAY: 1021, FLOAT8_ARRAY: 1022, INET_ARRAY: 1041, INT2_ARRAY: 1005, INT4_ARRAY: 1007, INT8_ARRAY: 1016, JSONB_ARRAY: 3807, JSON_ARRAY: 199, MONEY_ARRAY: 791, NUMERIC_ARRAY: 1231, OID_ARRAY: 1028, TEXT_ARRAY: 1009, TIMESTAMP_ARRAY: 1115, TIMESTAMPTZ_ARRAY: 1185, TIME_ARRAY: 1183, UUID_ARRAY: 2951, VARBIT_ARRAY: 1563, VARCHAR_ARRAY: 1015, XML_ARRAY: 143 }; var UnsupportedNativeDataType = class _UnsupportedNativeDataType extends Error { static { __name(this, "_UnsupportedNativeDataType"); } // map of type codes to type names static typeNames = { 16: "bool", 17: "bytea", 18: "char", 19: "name", 20: "int8", 21: "int2", 22: "int2vector", 23: "int4", 24: "regproc", 25: "text", 26: "oid", 27: "tid", 28: "xid", 29: "cid", 30: "oidvector", 32: "pg_ddl_command", 71: "pg_type", 75: "pg_attribute", 81: "pg_proc", 83: "pg_class", 114: "json", 142: "xml", 194: "pg_node_tree", 269: "table_am_handler", 325: "index_am_handler", 600: "point", 601: "lseg", 602: "path", 603: "box", 604: "polygon", 628: "line", 650: "cidr", 700: "float4", 701: "float8", 705: "unknown", 718: "circle", 774: "macaddr8", 790: "money", 829: "macaddr", 869: "inet", 1033: "aclitem", 1042: "bpchar", 1043: "varchar", 1082: "date", 1083: "time", 1114: "timestamp", 1184: "timestamptz", 1186: "interval", 1266: "timetz", 1560: "bit", 1562: "varbit", 1700: "numeric", 1790: "refcursor", 2202: "regprocedure", 2203: "regoper", 2204: "regoperator", 2205: "regclass", 2206: "regtype", 2249: "record", 2275: "cstring", 2276: "any", 2277: "anyarray", 2278: "void", 2279: "trigger", 2280: "language_handler", 2281: "internal", 2283: "anyelement", 2287: "_record", 2776: "anynonarray", 2950: "uuid", 2970: "txid_snapshot", 3115: "fdw_handler", 3220: "pg_lsn", 3310: "tsm_handler", 3361: "pg_ndistinct", 3402: "pg_dependencies", 3500: "anyenum", 3614: "tsvector", 3615: "tsquery", 3642: "gtsvector", 3734: "regconfig", 3769: "regdictionary", 3802: "jsonb", 3831: "anyrange", 3838: "event_trigger", 3904: "int4range", 3906: "numrange", 3908: "tsrange", 3910: "tstzrange", 3912: "daterange", 3926: "int8range", 4072: "jsonpath", 4089: "regnamespace", 4096: "regrole", 4191: "regcollation", 4451: "int4multirange", 4532: "nummultirange", 4533: "tsmultirange", 4534: "tstzmultirange", 4535: "datemultirange", 4536: "int8multirange", 4537: "anymultirange", 4538: "anycompatiblemultirange", 4600: "pg_brin_bloom_summary", 4601: "pg_brin_minmax_multi_summary", 5017: "pg_mcv_list", 5038: "pg_snapshot", 5069: "xid8", 5077: "anycompatible", 5078: "anycompatiblearray", 5079: "anycompatiblenonarray", 5080: "anycompatiblerange" }; type; constructor(code) { super(); this.type = _UnsupportedNativeDataType.typeNames[code] || "Unknown"; this.message = `Unsupported column type ${this.type}`; } }; function fieldToColumnType(fieldTypeId) { switch (fieldTypeId) { case ScalarColumnType.INT2: case ScalarColumnType.INT4: return ColumnTypeEnum.Int32; case ScalarColumnType.INT8: return ColumnTypeEnum.Int64; case ScalarColumnType.FLOAT4: return ColumnTypeEnum.Float; case ScalarColumnType.FLOAT8: return ColumnTypeEnum.Double; case ScalarColumnType.BOOL: return ColumnTypeEnum.Boolean; case ScalarColumnType.DATE: return ColumnTypeEnum.Date; case ScalarColumnType.TIME: case ScalarColumnType.TIMETZ: return ColumnTypeEnum.Time; case ScalarColumnType.TIMESTAMP: case ScalarColumnType.TIMESTAMPTZ: return ColumnTypeEnum.DateTime; case ScalarColumnType.NUMERIC: case ScalarColumnType.MONEY: return ColumnTypeEnum.Numeric; case ScalarColumnType.JSON: case ScalarColumnType.JSONB: return ColumnTypeEnum.Json; case ScalarColumnType.UUID: return ColumnTypeEnum.Uuid; case ScalarColumnType.OID: return ColumnTypeEnum.Int64; case ScalarColumnType.BPCHAR: case ScalarColumnType.TEXT: case ScalarColumnType.VARCHAR: case ScalarColumnType.BIT: case ScalarColumnType.VARBIT: case ScalarColumnType.INET: case ScalarColumnType.CIDR: case ScalarColumnType.XML: case AdditionalScalarColumnType.NAME: return ColumnTypeEnum.Text; case ScalarColumnType.BYTEA: return ColumnTypeEnum.Bytes; case ArrayColumnType.INT2_ARRAY: case ArrayColumnType.INT4_ARRAY: return ColumnTypeEnum.Int32Array; case ArrayColumnType.FLOAT4_ARRAY: return ColumnTypeEnum.FloatArray; case ArrayColumnType.FLOAT8_ARRAY: return ColumnTypeEnum.DoubleArray; case ArrayColumnType.NUMERIC_ARRAY: case ArrayColumnType.MONEY_ARRAY: return ColumnTypeEnum.NumericArray; case ArrayColumnType.BOOL_ARRAY: return ColumnTypeEnum.BooleanArray; case ArrayColumnType.CHAR_ARRAY: return ColumnTypeEnum.CharacterArray; case ArrayColumnType.BPCHAR_ARRAY: case ArrayColumnType.TEXT_ARRAY: case ArrayColumnType.VARCHAR_ARRAY: case ArrayColumnType.VARBIT_ARRAY: case ArrayColumnType.BIT_ARRAY: case ArrayColumnType.INET_ARRAY: case ArrayColumnType.CIDR_ARRAY: case ArrayColumnType.XML_ARRAY: return ColumnTypeEnum.TextArray; case ArrayColumnType.DATE_ARRAY: return ColumnTypeEnum.DateArray; case ArrayColumnType.TIME_ARRAY: return ColumnTypeEnum.TimeArray; case ArrayColumnType.TIMESTAMP_ARRAY: return ColumnTypeEnum.DateTimeArray; case ArrayColumnType.TIMESTAMPTZ_ARRAY: return ColumnTypeEnum.DateTimeArray; case ArrayColumnType.JSON_ARRAY: case ArrayColumnType.JSONB_ARRAY: return ColumnTypeEnum.JsonArray; case ArrayColumnType.BYTEA_ARRAY: return ColumnTypeEnum.BytesArray; case ArrayColumnType.UUID_ARRAY: return ColumnTypeEnum.UuidArray; case ArrayColumnType.INT8_ARRAY: case ArrayColumnType.OID_ARRAY: return ColumnTypeEnum.Int64Array; default: if (fieldTypeId >= FIRST_NORMAL_OBJECT_ID) { return ColumnTypeEnum.Text; } throw new UnsupportedNativeDataType(fieldTypeId); } } __name(fieldToColumnType, "fieldToColumnType"); function normalize_array(element_normalizer) { return (str) => (0, import_postgres_array.parse)(str, element_normalizer); } __name(normalize_array, "normalize_array"); function normalize_numeric(numeric) { return numeric; } __name(normalize_numeric, "normalize_numeric"); function normalize_date(date5) { return date5; } __name(normalize_date, "normalize_date"); function normalize_timestamp(time3) { return `${time3.replace(" ", "T")}+00:00`; } __name(normalize_timestamp, "normalize_timestamp"); function normalize_timestamptz(time3) { return time3.replace(" ", "T").replace(/[+-]\d{2}(:\d{2})?$/, "+00:00"); } __name(normalize_timestamptz, "normalize_timestamptz"); function normalize_time(time3) { return time3; } __name(normalize_time, "normalize_time"); function normalize_timez(time3) { return time3.replace(/[+-]\d{2}(:\d{2})?$/, ""); } __name(normalize_timez, "normalize_timez"); function normalize_money(money) { return money.slice(1); } __name(normalize_money, "normalize_money"); function normalize_xml(xml) { return xml; } __name(normalize_xml, "normalize_xml"); function toJson(json2) { return json2; } __name(toJson, "toJson"); var parsePgBytes = getTypeParser(ScalarColumnType.BYTEA); var normalizeByteaArray = getTypeParser(ArrayColumnType.BYTEA_ARRAY); function convertBytes(serializedBytes) { return parsePgBytes(serializedBytes); } __name(convertBytes, "convertBytes"); function normalizeBit(bit) { return bit; } __name(normalizeBit, "normalizeBit"); var customParsers = { [ScalarColumnType.NUMERIC]: normalize_numeric, [ArrayColumnType.NUMERIC_ARRAY]: normalize_array(normalize_numeric), [ScalarColumnType.TIME]: normalize_time, [ArrayColumnType.TIME_ARRAY]: normalize_array(normalize_time), [ScalarColumnType.TIMETZ]: normalize_timez, [ScalarColumnType.DATE]: normalize_date, [ArrayColumnType.DATE_ARRAY]: normalize_array(normalize_date), [ScalarColumnType.TIMESTAMP]: normalize_timestamp, [ArrayColumnType.TIMESTAMP_ARRAY]: normalize_array(normalize_timestamp), [ScalarColumnType.TIMESTAMPTZ]: normalize_timestamptz, [ArrayColumnType.TIMESTAMPTZ_ARRAY]: normalize_array(normalize_timestamptz), [ScalarColumnType.MONEY]: normalize_money, [ArrayColumnType.MONEY_ARRAY]: normalize_array(normalize_money), [ScalarColumnType.JSON]: toJson, [ArrayColumnType.JSON_ARRAY]: normalize_array(toJson), [ScalarColumnType.JSONB]: toJson, [ArrayColumnType.JSONB_ARRAY]: normalize_array(toJson), [ScalarColumnType.BYTEA]: convertBytes, [ArrayColumnType.BYTEA_ARRAY]: normalizeByteaArray, [ArrayColumnType.BIT_ARRAY]: normalize_array(normalizeBit), [ArrayColumnType.VARBIT_ARRAY]: normalize_array(normalizeBit), [ArrayColumnType.XML_ARRAY]: normalize_array(normalize_xml) }; function mapArg(arg, argType) { if (arg === null) { return null; } if (Array.isArray(arg) && argType.arity === "list") { return arg.map((value) => mapArg(value, argType)); } if (typeof arg === "string" && argType.scalarType === "datetime") { arg = new Date(arg); } if (arg instanceof Date) { switch (argType.dbType) { case "TIME": case "TIMETZ": return formatTime(arg); case "DATE": return formatDate(arg); default: return formatDateTime(arg); } } if (typeof arg === "string" && argType.scalarType === "bytes") { return Buffer.from(arg, "base64"); } if (ArrayBuffer.isView(arg)) { return new Uint8Array(arg.buffer, arg.byteOffset, arg.byteLength); } return arg; } __name(mapArg, "mapArg"); function formatDateTime(date5) { const pad = /* @__PURE__ */ __name((n3, z2 = 2) => String(n3).padStart(z2, "0"), "pad"); const ms = date5.getUTCMilliseconds(); return pad(date5.getUTCFullYear(), 4) + "-" + pad(date5.getUTCMonth() + 1) + "-" + pad(date5.getUTCDate()) + " " + pad(date5.getUTCHours()) + ":" + pad(date5.getUTCMinutes()) + ":" + pad(date5.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : ""); } __name(formatDateTime, "formatDateTime"); function formatDate(date5) { const pad = /* @__PURE__ */ __name((n3, z2 = 2) => String(n3).padStart(z2, "0"), "pad"); return pad(date5.getUTCFullYear(), 4) + "-" + pad(date5.getUTCMonth() + 1) + "-" + pad(date5.getUTCDate()); } __name(formatDate, "formatDate"); function formatTime(date5) { const pad = /* @__PURE__ */ __name((n3, z2 = 2) => String(n3).padStart(z2, "0"), "pad"); const ms = date5.getUTCMilliseconds(); return pad(date5.getUTCHours()) + ":" + pad(date5.getUTCMinutes()) + ":" + pad(date5.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : ""); } __name(formatTime, "formatTime"); var TLS_ERRORS = /* @__PURE__ */ new Set([ "UNABLE_TO_GET_ISSUER_CERT", "UNABLE_TO_GET_CRL", "UNABLE_TO_DECRYPT_CERT_SIGNATURE", "UNABLE_TO_DECRYPT_CRL_SIGNATURE", "UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY", "CERT_SIGNATURE_FAILURE", "CRL_SIGNATURE_FAILURE", "CERT_NOT_YET_VALID", "CERT_HAS_EXPIRED", "CRL_NOT_YET_VALID", "CRL_HAS_EXPIRED", "ERROR_IN_CERT_NOT_BEFORE_FIELD", "ERROR_IN_CERT_NOT_AFTER_FIELD", "ERROR_IN_CRL_LAST_UPDATE_FIELD", "ERROR_IN_CRL_NEXT_UPDATE_FIELD", "DEPTH_ZERO_SELF_SIGNED_CERT", "SELF_SIGNED_CERT_IN_CHAIN", "UNABLE_TO_GET_ISSUER_CERT_LOCALLY", "UNABLE_TO_VERIFY_LEAF_SIGNATURE", "CERT_CHAIN_TOO_LONG", "CERT_REVOKED", "INVALID_CA", "INVALID_PURPOSE", "CERT_UNTRUSTED", "CERT_REJECTED", "HOSTNAME_MISMATCH", "ERR_TLS_CERT_ALTNAME_FORMAT", "ERR_TLS_CERT_ALTNAME_INVALID" ]); var SOCKET_ERRORS = /* @__PURE__ */ new Set(["ENOTFOUND", "ECONNREFUSED", "ECONNRESET", "ETIMEDOUT"]); function convertDriverError(error62) { if (isSocketError(error62)) { return mapSocketError(error62); } if (isTlsError(error62)) { return { kind: "TlsConnectionError", reason: error62.message }; } if (isDriverError(error62)) { return { originalCode: error62.code, originalMessage: error62.message, ...mapDriverError(error62) }; } throw error62; } __name(convertDriverError, "convertDriverError"); function mapDriverError(error62) { switch (error62.code) { case "22001": return { kind: "LengthMismatch", column: error62.column }; case "22003": return { kind: "ValueOutOfRange", cause: error62.message }; case "22P02": return { kind: "InvalidInputValue", message: error62.message }; case "23505": { const fields = error62.detail?.match(/Key \(([^)]+)\)/)?.at(1)?.split(", "); let constraint; if (error62.constraint) { constraint = { index: error62.constraint }; } else if (fields !== void 0) { constraint = { fields }; } let table = error62.table; if (table === void 0 && fields !== void 0 && fields.length > 0) { const suffix = `_${fields.join("_")}_key`; if (error62.constraint?.endsWith(suffix)) { table = error62.constraint.slice(0, -suffix.length); } } return { kind: "UniqueConstraintViolation", constraint, table }; } case "23502": { const fields = error62.detail?.match(/Key \(([^)]+)\)/)?.at(1)?.split(", "); return { kind: "NullConstraintViolation", constraint: fields !== void 0 ? { fields } : void 0 }; } case "23503": { let constraint; if (error62.column) { constraint = { fields: [error62.column] }; } else if (error62.constraint) { constraint = { index: error62.constraint }; } return { kind: "ForeignKeyConstraintViolation", constraint }; } case "23001": { let constraint; if (error62.column) { constraint = { fields: [error62.column] }; } else if (error62.constraint) { constraint = { index: error62.constraint }; } return { kind: "RestrictViolation", constraint }; } case "3D000": return { kind: "DatabaseDoesNotExist", db: error62.message.split(" ").at(1)?.split('"').at(1) }; case "28000": return { kind: "DatabaseAccessDenied", db: error62.message.split(",").find((s2) => s2.startsWith(" database"))?.split('"').at(1) }; case "28P01": return { kind: "AuthenticationFailed", user: error62.message.split(" ").pop()?.split('"').at(1) }; case "40001": case "40P01": return { kind: "TransactionWriteConflict" }; case "42P01": return { kind: "TableDoesNotExist", table: error62.message.split(" ").at(1)?.split('"').at(1) }; case "42703": { const rawColumn = error62.message.match(/^column (.+) does not exist$/)?.at(1); return { kind: "ColumnNotFound", column: rawColumn?.replace(/"((?:""|[^"])*)"/g, (_, id) => id.replaceAll('""', '"')) }; } case "42P04": return { kind: "DatabaseAlreadyExists", db: error62.message.split(" ").at(1)?.split('"').at(1) }; case "53300": return { kind: "TooManyConnections", cause: error62.message }; default: return { kind: "postgres", code: error62.code ?? "N/A", severity: error62.severity ?? "N/A", message: error62.message, detail: error62.detail, column: error62.column, hint: error62.hint }; } } __name(mapDriverError, "mapDriverError"); function isDriverError(error62) { return typeof error62.code === "string" && typeof error62.message === "string" && typeof error62.severity === "string" && (typeof error62.detail === "string" || error62.detail === void 0) && (typeof error62.column === "string" || error62.column === void 0) && (typeof error62.hint === "string" || error62.hint === void 0); } __name(isDriverError, "isDriverError"); function mapSocketError(error62) { switch (error62.code) { case "ENOTFOUND": case "ECONNREFUSED": return { kind: "DatabaseNotReachable", host: error62.address ?? error62.hostname, port: error62.port }; case "ECONNRESET": return { kind: "ConnectionClosed" }; case "ETIMEDOUT": return { kind: "SocketTimeout" }; } } __name(mapSocketError, "mapSocketError"); function isSocketError(error62) { return typeof error62.code === "string" && typeof error62.syscall === "string" && typeof error62.errno === "number" && SOCKET_ERRORS.has(error62.code); } __name(isSocketError, "isSocketError"); function isTlsError(error62) { if (typeof error62.code === "string") { return TLS_ERRORS.has(error62.code); } switch (error62.message) { case "The server does not support SSL connections": case "There was an error establishing an SSL connection": return true; } return false; } __name(isTlsError, "isTlsError"); var types2 = esm_default.types; var debug2 = Debug2("prisma:driver-adapter:pg"); var PgQueryable = class { static { __name(this, "PgQueryable"); } constructor(client, pgOptions) { this.client = client; this.pgOptions = pgOptions; } provider = "postgres"; adapterName = name; /** * Execute a query given as SQL, interpolating the given parameters. */ async queryRaw(query) { const tag = "[js::query_raw]"; debug2(`${tag} %O`, query); const { fields, rows } = await this.performIO(query); const columnNames = fields.map((field) => field.name); let columnTypes = []; try { columnTypes = fields.map((field) => fieldToColumnType(field.dataTypeID)); } catch (e5) { if (e5 instanceof UnsupportedNativeDataType) { throw new DriverAdapterError({ kind: "UnsupportedNativeDataType", type: e5.type }); } throw e5; } const udtParser = this.pgOptions?.userDefinedTypeParser; if (udtParser) { for (let i5 = 0; i5 < fields.length; i5++) { const field = fields[i5]; if (field.dataTypeID >= FIRST_NORMAL_OBJECT_ID && !Object.hasOwn(customParsers, field.dataTypeID)) { for (let j5 = 0; j5 < rows.length; j5++) { rows[j5][i5] = await udtParser(field.dataTypeID, rows[j5][i5], this); } } } } return { columnNames, columnTypes, rows }; } /** * Execute a query given as SQL, interpolating the given parameters and * returning the number of affected rows. * Note: Queryable expects a u64, but napi.rs only supports u32. */ async executeRaw(query) { const tag = "[js::execute_raw]"; debug2(`${tag} %O`, query); return (await this.performIO(query)).rowCount ?? 0; } /** * Run a query against the database, returning the result set. * Should the query fail due to a connection error, the connection is * marked as unhealthy. */ async performIO(query) { const { sql: sql2, args } = query; const values = args.map((arg, i5) => mapArg(arg, query.argTypes[i5])); try { const result = await this.client.query({ name: this.pgOptions?.statementNameGenerator?.(query), text: sql2, values, rowMode: "array", types: { getTypeParser: /* @__PURE__ */ __name((oid, format) => { if (format === "text" && customParsers[oid]) { return customParsers[oid]; } return types2.getTypeParser(oid, format); }, "getTypeParser") } }); return result; } catch (e5) { this.onError(e5); } } onError(error62) { debug2("Error in performIO: %O", error62); throw new DriverAdapterError(convertDriverError(error62)); } }; var PgTransaction = class extends PgQueryable { static { __name(this, "PgTransaction"); } constructor(client, options, pgOptions, cleanup) { super(client, pgOptions); this.options = options; this.pgOptions = pgOptions; this.cleanup = cleanup; } async commit() { debug2(`[js::commit]`); this.cleanup?.(); this.client.release(); } async rollback() { debug2(`[js::rollback]`); this.cleanup?.(); this.client.release(); } async createSavepoint(name2) { await this.executeRaw({ sql: `SAVEPOINT ${name2}`, args: [], argTypes: [] }); } async rollbackToSavepoint(name2) { await this.executeRaw({ sql: `ROLLBACK TO SAVEPOINT ${name2}`, args: [], argTypes: [] }); } async releaseSavepoint(name2) { await this.executeRaw({ sql: `RELEASE SAVEPOINT ${name2}`, args: [], argTypes: [] }); } }; var PrismaPgAdapter = class extends PgQueryable { static { __name(this, "PrismaPgAdapter"); } constructor(client, pgOptions, release2) { super(client); this.pgOptions = pgOptions; this.release = release2; } async startTransaction(isolationLevel) { const options = { usePhantomQuery: false }; const tag = "[js::startTransaction]"; debug2("%s options: %O", tag, options); const conn = await this.client.connect().catch((error62) => this.onError(error62)); const onError = /* @__PURE__ */ __name((err) => { debug2(`Error from pool connection: ${err.message} %O`, err); this.pgOptions?.onConnectionError?.(err); }, "onError"); conn.on("error", onError); const cleanup = /* @__PURE__ */ __name(() => { conn.removeListener("error", onError); }, "cleanup"); try { const tx = new PgTransaction(conn, options, this.pgOptions, cleanup); await tx.executeRaw({ sql: "BEGIN", args: [], argTypes: [] }); if (isolationLevel) { await tx.executeRaw({ sql: `SET TRANSACTION ISOLATION LEVEL ${isolationLevel}`, args: [], argTypes: [] }); } return tx; } catch (error62) { cleanup(); conn.release(error62); this.onError(error62); } } async executeScript(script) { const statements = script.split(";").map((stmt) => stmt.trim()).filter((stmt) => stmt.length > 0); for (const stmt of statements) { try { await this.client.query(stmt); } catch (error62) { this.onError(error62); } } } getConnectionInfo() { return { schemaName: this.pgOptions?.schema, supportsRelationJoins: true }; } async dispose() { return this.release?.(); } underlyingDriver() { return this.client; } }; var PrismaPgAdapterFactory = class { static { __name(this, "PrismaPgAdapterFactory"); } constructor(poolOrConfig, options) { this.options = options; if (poolOrConfig instanceof esm_default.Pool) { this.externalPool = poolOrConfig; this.config = poolOrConfig.options; } else if (typeof poolOrConfig === "string") { this.externalPool = null; this.config = { connectionString: poolOrConfig }; } else { this.externalPool = null; this.config = poolOrConfig; } } provider = "postgres"; adapterName = name; config; externalPool; async connect() { const client = this.externalPool ?? new esm_default.Pool(this.config); const onIdleClientError = /* @__PURE__ */ __name((err) => { debug2(`Error from idle pool client: ${err.message} %O`, err); this.options?.onPoolError?.(err); }, "onIdleClientError"); client.on("error", onIdleClientError); return new PrismaPgAdapter(client, this.options, async () => { if (this.externalPool) { if (this.options?.disposeExternalPool) { await this.externalPool.end(); this.externalPool = null; } else { this.externalPool.removeListener("error", onIdleClientError); } } else { await client.end(); } }); } async connectToShadowDb() { const conn = await this.connect(); const database = `prisma_migrate_shadow_db_${globalThis.crypto.randomUUID()}`; await conn.executeScript(`CREATE DATABASE "${database}"`); const client = new esm_default.Pool({ ...this.config, database }); return new PrismaPgAdapter(client, void 0, async () => { await conn.executeScript(`DROP DATABASE "${database}"`); await client.end(); }); } }; // dist/generated/prisma/client.js import * as path from "node:path"; import { fileURLToPath } from "node:url"; // dist/generated/prisma/internal/class.js var runtime = __toESM(require_client(), 1); var config2 = { "previewFeatures": [], "clientVersion": "7.10.1", "engineVersion": "d1b3f377ca835d73fd50954a5e22128b9ebdd6b8", "activeProvider": "postgresql", "inlineSchema": 'generator client {\n provider = "prisma-client"\n output = "../src/generated/prisma"\n moduleFormat = "esm"\n importFileExtension = "js"\n}\n\ndatasource db {\n provider = "postgresql"\n}\n\nenum Role {\n ADMIN\n EDITOR\n}\n\nenum MessageStatus {\n NEW\n READ\n ARCHIVED\n}\n\nmodel AdminUser {\n id Int @id @default(autoincrement())\n phone String @unique\n name String\n passwordHash String\n role Role @default(EDITOR)\n isActive Boolean @default(true)\n lastLoginAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n refreshTokens RefreshToken[]\n auditLogs AuditLog[]\n}\n\nmodel RefreshToken {\n id Int @id @default(autoincrement())\n userId Int\n user AdminUser @relation(fields: [userId], references: [id], onDelete: Cascade)\n /// sha256 of the opaque token stored in the httpOnly cookie\n tokenHash String @unique\n expiresAt DateTime\n revokedAt DateTime?\n userAgent String @default("")\n createdAt DateTime @default(now())\n\n @@index([userId])\n}\n\nmodel Media {\n id Int @id @default(autoincrement())\n /// object key in the S3 bucket; the public URL is MEDIA_PUBLIC_URL + "/" + key\n key String @unique\n mime String\n size Int\n width Int?\n height Int?\n alt String @default("")\n originalName String @default("")\n createdAt DateTime @default(now())\n categoryCovers Category[] @relation("CategoryCover")\n productImages Product[] @relation("ProductImage")\n productGallery ProductImage[]\n}\n\nmodel Category {\n id Int @id @default(autoincrement())\n slug String @unique\n code String\n name String\n nameEn String @default("")\n shortDesc String @default("")\n fullDesc String @default("")\n /// Lucide icon name\n icon String @default("")\n coverImageId Int?\n coverImage Media? @relation("CategoryCover", fields: [coverImageId], references: [id], onDelete: SetNull)\n sortOrder Int @default(0)\n isPublished Boolean @default(true)\n seoTitle String @default("")\n seoDescription String @default("")\n groups ProductGroup[]\n products Product[]\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([sortOrder])\n}\n\nmodel ProductGroup {\n id Int @id @default(autoincrement())\n categoryId Int\n category Category @relation(fields: [categoryId], references: [id], onDelete: Cascade)\n slug String\n name String\n desc String @default("")\n sortOrder Int @default(0)\n products Product[]\n\n @@unique([categoryId, slug])\n}\n\nmodel Product {\n id Int @id @default(autoincrement())\n categoryId Int\n category Category @relation(fields: [categoryId], references: [id], onDelete: Restrict)\n groupId Int?\n group ProductGroup? @relation(fields: [groupId], references: [id], onDelete: SetNull)\n code String @unique\n slug String @unique\n name String\n nameEn String @default("")\n desc String @default("")\n specs String[]\n variants String[]\n /// long description for the product page; a blank line starts a new paragraph\n details String @default("")\n brand String @default("")\n /// country of manufacture\n origin String @default("")\n sizes String[] @default([])\n standards String[] @default([])\n features String[] @default([])\n applications String[] @default([])\n /// technical specification table: [{ "name": "...", "value": "..." }]\n attributes Json @default("[]")\n packaging String @default("")\n minOrder String @default("")\n seoTitle String @default("")\n seoDescription String @default("")\n imageId Int?\n image Media? @relation("ProductImage", fields: [imageId], references: [id], onDelete: SetNull)\n gallery ProductImage[]\n sortOrder Int @default(0)\n isPublished Boolean @default(true)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([categoryId, sortOrder])\n}\n\nmodel ProductImage {\n productId Int\n mediaId Int\n sortOrder Int @default(0)\n product Product @relation(fields: [productId], references: [id], onDelete: Cascade)\n media Media @relation(fields: [mediaId], references: [id], onDelete: Cascade)\n\n @@id([productId, mediaId])\n}\n\n/// One row per editable website section; `data` is validated by the zod schema for `key` (@imen/shared)\nmodel SiteSection {\n key String @id\n data Json\n updatedById Int?\n updatedAt DateTime @updatedAt\n}\n\nmodel ContactMessage {\n id Int @id @default(autoincrement())\n name String\n org String\n phone String\n message String @default("")\n status MessageStatus @default(NEW)\n ip String @default("")\n userAgent String @default("")\n createdAt DateTime @default(now())\n\n @@index([status, createdAt])\n}\n\nmodel AuditLog {\n id Int @id @default(autoincrement())\n userId Int?\n user AdminUser? @relation(fields: [userId], references: [id], onDelete: SetNull)\n /// create | update | delete | login ...\n action String\n /// product | category | section | media | user | message\n entity String\n entityId String @default("")\n summary String @default("")\n createdAt DateTime @default(now())\n\n @@index([createdAt])\n}\n', "runtimeDataModel": { "models": {}, "enums": {}, "types": {} }, "parameterizationSchema": { "strings": [], "graph": "" } }; config2.runtimeDataModel = JSON.parse('{"models":{"AdminUser":{"fields":[{"name":"id","kind":"scalar","type":"Int"},{"name":"phone","kind":"scalar","type":"String"},{"name":"name","kind":"scalar","type":"String"},{"name":"passwordHash","kind":"scalar","type":"String"},{"name":"role","kind":"enum","type":"Role"},{"name":"isActive","kind":"scalar","type":"Boolean"},{"name":"lastLoginAt","kind":"scalar","type":"DateTime"},{"name":"createdAt","kind":"scalar","type":"DateTime"},{"name":"updatedAt","kind":"scalar","type":"DateTime"},{"name":"refreshTokens","kind":"object","type":"RefreshToken","relationName":"AdminUserToRefreshToken"},{"name":"auditLogs","kind":"object","type":"AuditLog","relationName":"AdminUserToAuditLog"}],"dbName":null,"schema":null},"RefreshToken":{"fields":[{"name":"id","kind":"scalar","type":"Int"},{"name":"userId","kind":"scalar","type":"Int"},{"name":"user","kind":"object","type":"AdminUser","relationName":"AdminUserToRefreshToken"},{"name":"tokenHash","kind":"scalar","type":"String"},{"name":"expiresAt","kind":"scalar","type":"DateTime"},{"name":"revokedAt","kind":"scalar","type":"DateTime"},{"name":"userAgent","kind":"scalar","type":"String"},{"name":"createdAt","kind":"scalar","type":"DateTime"}],"dbName":null,"schema":null},"Media":{"fields":[{"name":"id","kind":"scalar","type":"Int"},{"name":"key","kind":"scalar","type":"String"},{"name":"mime","kind":"scalar","type":"String"},{"name":"size","kind":"scalar","type":"Int"},{"name":"width","kind":"scalar","type":"Int"},{"name":"height","kind":"scalar","type":"Int"},{"name":"alt","kind":"scalar","type":"String"},{"name":"originalName","kind":"scalar","type":"String"},{"name":"createdAt","kind":"scalar","type":"DateTime"},{"name":"categoryCovers","kind":"object","type":"Category","relationName":"CategoryCover"},{"name":"productImages","kind":"object","type":"Product","relationName":"ProductImage"},{"name":"productGallery","kind":"object","type":"ProductImage","relationName":"MediaToProductImage"}],"dbName":null,"schema":null},"Category":{"fields":[{"name":"id","kind":"scalar","type":"Int"},{"name":"slug","kind":"scalar","type":"String"},{"name":"code","kind":"scalar","type":"String"},{"name":"name","kind":"scalar","type":"String"},{"name":"nameEn","kind":"scalar","type":"String"},{"name":"shortDesc","kind":"scalar","type":"String"},{"name":"fullDesc","kind":"scalar","type":"String"},{"name":"icon","kind":"scalar","type":"String"},{"name":"coverImageId","kind":"scalar","type":"Int"},{"name":"coverImage","kind":"object","type":"Media","relationName":"CategoryCover"},{"name":"sortOrder","kind":"scalar","type":"Int"},{"name":"isPublished","kind":"scalar","type":"Boolean"},{"name":"seoTitle","kind":"scalar","type":"String"},{"name":"seoDescription","kind":"scalar","type":"String"},{"name":"groups","kind":"object","type":"ProductGroup","relationName":"CategoryToProductGroup"},{"name":"products","kind":"object","type":"Product","relationName":"CategoryToProduct"},{"name":"createdAt","kind":"scalar","type":"DateTime"},{"name":"updatedAt","kind":"scalar","type":"DateTime"}],"dbName":null,"schema":null},"ProductGroup":{"fields":[{"name":"id","kind":"scalar","type":"Int"},{"name":"categoryId","kind":"scalar","type":"Int"},{"name":"category","kind":"object","type":"Category","relationName":"CategoryToProductGroup"},{"name":"slug","kind":"scalar","type":"String"},{"name":"name","kind":"scalar","type":"String"},{"name":"desc","kind":"scalar","type":"String"},{"name":"sortOrder","kind":"scalar","type":"Int"},{"name":"products","kind":"object","type":"Product","relationName":"ProductToProductGroup"}],"dbName":null,"schema":null},"Product":{"fields":[{"name":"id","kind":"scalar","type":"Int"},{"name":"categoryId","kind":"scalar","type":"Int"},{"name":"category","kind":"object","type":"Category","relationName":"CategoryToProduct"},{"name":"groupId","kind":"scalar","type":"Int"},{"name":"group","kind":"object","type":"ProductGroup","relationName":"ProductToProductGroup"},{"name":"code","kind":"scalar","type":"String"},{"name":"slug","kind":"scalar","type":"String"},{"name":"name","kind":"scalar","type":"String"},{"name":"nameEn","kind":"scalar","type":"String"},{"name":"desc","kind":"scalar","type":"String"},{"name":"specs","kind":"scalar","type":"String"},{"name":"variants","kind":"scalar","type":"String"},{"name":"details","kind":"scalar","type":"String"},{"name":"brand","kind":"scalar","type":"String"},{"name":"origin","kind":"scalar","type":"String"},{"name":"sizes","kind":"scalar","type":"String"},{"name":"standards","kind":"scalar","type":"String"},{"name":"features","kind":"scalar","type":"String"},{"name":"applications","kind":"scalar","type":"String"},{"name":"attributes","kind":"scalar","type":"Json"},{"name":"packaging","kind":"scalar","type":"String"},{"name":"minOrder","kind":"scalar","type":"String"},{"name":"seoTitle","kind":"scalar","type":"String"},{"name":"seoDescription","kind":"scalar","type":"String"},{"name":"imageId","kind":"scalar","type":"Int"},{"name":"image","kind":"object","type":"Media","relationName":"ProductImage"},{"name":"gallery","kind":"object","type":"ProductImage","relationName":"ProductToProductImage"},{"name":"sortOrder","kind":"scalar","type":"Int"},{"name":"isPublished","kind":"scalar","type":"Boolean"},{"name":"createdAt","kind":"scalar","type":"DateTime"},{"name":"updatedAt","kind":"scalar","type":"DateTime"}],"dbName":null,"schema":null},"ProductImage":{"fields":[{"name":"productId","kind":"scalar","type":"Int"},{"name":"mediaId","kind":"scalar","type":"Int"},{"name":"sortOrder","kind":"scalar","type":"Int"},{"name":"product","kind":"object","type":"Product","relationName":"ProductToProductImage"},{"name":"media","kind":"object","type":"Media","relationName":"MediaToProductImage"}],"dbName":null,"schema":null},"SiteSection":{"fields":[{"name":"key","kind":"scalar","type":"String"},{"name":"data","kind":"scalar","type":"Json"},{"name":"updatedById","kind":"scalar","type":"Int"},{"name":"updatedAt","kind":"scalar","type":"DateTime"}],"dbName":null,"schema":null},"ContactMessage":{"fields":[{"name":"id","kind":"scalar","type":"Int"},{"name":"name","kind":"scalar","type":"String"},{"name":"org","kind":"scalar","type":"String"},{"name":"phone","kind":"scalar","type":"String"},{"name":"message","kind":"scalar","type":"String"},{"name":"status","kind":"enum","type":"MessageStatus"},{"name":"ip","kind":"scalar","type":"String"},{"name":"userAgent","kind":"scalar","type":"String"},{"name":"createdAt","kind":"scalar","type":"DateTime"}],"dbName":null,"schema":null},"AuditLog":{"fields":[{"name":"id","kind":"scalar","type":"Int"},{"name":"userId","kind":"scalar","type":"Int"},{"name":"user","kind":"object","type":"AdminUser","relationName":"AdminUserToAuditLog"},{"name":"action","kind":"scalar","type":"String"},{"name":"entity","kind":"scalar","type":"String"},{"name":"entityId","kind":"scalar","type":"String"},{"name":"summary","kind":"scalar","type":"String"},{"name":"createdAt","kind":"scalar","type":"DateTime"}],"dbName":null,"schema":null}},"enums":{},"types":{}}'); config2.parameterizationSchema = { strings: JSON.parse('["where","orderBy","cursor","user","refreshTokens","auditLogs","_count","AdminUser.findUnique","AdminUser.findUniqueOrThrow","AdminUser.findFirst","AdminUser.findFirstOrThrow","AdminUser.findMany","data","AdminUser.createOne","AdminUser.createMany","AdminUser.createManyAndReturn","AdminUser.updateOne","AdminUser.updateMany","AdminUser.updateManyAndReturn","create","update","AdminUser.upsertOne","AdminUser.deleteOne","AdminUser.deleteMany","having","_avg","_sum","_min","_max","AdminUser.groupBy","AdminUser.aggregate","RefreshToken.findUnique","RefreshToken.findUniqueOrThrow","RefreshToken.findFirst","RefreshToken.findFirstOrThrow","RefreshToken.findMany","RefreshToken.createOne","RefreshToken.createMany","RefreshToken.createManyAndReturn","RefreshToken.updateOne","RefreshToken.updateMany","RefreshToken.updateManyAndReturn","RefreshToken.upsertOne","RefreshToken.deleteOne","RefreshToken.deleteMany","RefreshToken.groupBy","RefreshToken.aggregate","coverImage","category","group","image","product","media","gallery","products","groups","categoryCovers","productImages","productGallery","Media.findUnique","Media.findUniqueOrThrow","Media.findFirst","Media.findFirstOrThrow","Media.findMany","Media.createOne","Media.createMany","Media.createManyAndReturn","Media.updateOne","Media.updateMany","Media.updateManyAndReturn","Media.upsertOne","Media.deleteOne","Media.deleteMany","Media.groupBy","Media.aggregate","Category.findUnique","Category.findUniqueOrThrow","Category.findFirst","Category.findFirstOrThrow","Category.findMany","Category.createOne","Category.createMany","Category.createManyAndReturn","Category.updateOne","Category.updateMany","Category.updateManyAndReturn","Category.upsertOne","Category.deleteOne","Category.deleteMany","Category.groupBy","Category.aggregate","ProductGroup.findUnique","ProductGroup.findUniqueOrThrow","ProductGroup.findFirst","ProductGroup.findFirstOrThrow","ProductGroup.findMany","ProductGroup.createOne","ProductGroup.createMany","ProductGroup.createManyAndReturn","ProductGroup.updateOne","ProductGroup.updateMany","ProductGroup.updateManyAndReturn","ProductGroup.upsertOne","ProductGroup.deleteOne","ProductGroup.deleteMany","ProductGroup.groupBy","ProductGroup.aggregate","Product.findUnique","Product.findUniqueOrThrow","Product.findFirst","Product.findFirstOrThrow","Product.findMany","Product.createOne","Product.createMany","Product.createManyAndReturn","Product.updateOne","Product.updateMany","Product.updateManyAndReturn","Product.upsertOne","Product.deleteOne","Product.deleteMany","Product.groupBy","Product.aggregate","ProductImage.findUnique","ProductImage.findUniqueOrThrow","ProductImage.findFirst","ProductImage.findFirstOrThrow","ProductImage.findMany","ProductImage.createOne","ProductImage.createMany","ProductImage.createManyAndReturn","ProductImage.updateOne","ProductImage.updateMany","ProductImage.updateManyAndReturn","ProductImage.upsertOne","ProductImage.deleteOne","ProductImage.deleteMany","ProductImage.groupBy","ProductImage.aggregate","SiteSection.findUnique","SiteSection.findUniqueOrThrow","SiteSection.findFirst","SiteSection.findFirstOrThrow","SiteSection.findMany","SiteSection.createOne","SiteSection.createMany","SiteSection.createManyAndReturn","SiteSection.updateOne","SiteSection.updateMany","SiteSection.updateManyAndReturn","SiteSection.upsertOne","SiteSection.deleteOne","SiteSection.deleteMany","SiteSection.groupBy","SiteSection.aggregate","ContactMessage.findUnique","ContactMessage.findUniqueOrThrow","ContactMessage.findFirst","ContactMessage.findFirstOrThrow","ContactMessage.findMany","ContactMessage.createOne","ContactMessage.createMany","ContactMessage.createManyAndReturn","ContactMessage.updateOne","ContactMessage.updateMany","ContactMessage.updateManyAndReturn","ContactMessage.upsertOne","ContactMessage.deleteOne","ContactMessage.deleteMany","ContactMessage.groupBy","ContactMessage.aggregate","AuditLog.findUnique","AuditLog.findUniqueOrThrow","AuditLog.findFirst","AuditLog.findFirstOrThrow","AuditLog.findMany","AuditLog.createOne","AuditLog.createMany","AuditLog.createManyAndReturn","AuditLog.updateOne","AuditLog.updateMany","AuditLog.updateManyAndReturn","AuditLog.upsertOne","AuditLog.deleteOne","AuditLog.deleteMany","AuditLog.groupBy","AuditLog.aggregate","AND","OR","NOT","id","userId","action","entity","entityId","summary","createdAt","equals","in","notIn","lt","lte","gt","gte","not","contains","startsWith","endsWith","name","org","phone","message","MessageStatus","status","ip","userAgent","key","updatedById","updatedAt","string_contains","string_starts_with","string_ends_with","array_starts_with","array_ends_with","array_contains","productId","mediaId","sortOrder","categoryId","groupId","code","slug","nameEn","desc","specs","variants","details","brand","origin","sizes","standards","features","applications","attributes","packaging","minOrder","seoTitle","seoDescription","imageId","isPublished","has","hasEvery","hasSome","shortDesc","fullDesc","icon","coverImageId","mime","size","width","height","alt","originalName","productId_mediaId","every","some","none","categoryId_slug","tokenHash","expiresAt","revokedAt","passwordHash","Role","role","isActive","lastLoginAt","is","isNot","connectOrCreate","upsert","createMany","set","disconnect","delete","connect","updateMany","deleteMany","push","increment","decrement","multiply","divide"]'), graph: "8ARqoAEOBAAA3AIAIAUAAN0CACC7AQAA2QIAMLwBAAALABC9AQAA2QIAML4BAgAAAAHEAUAAsAIAIdABAQCuAgAh0gEBAAAAAdoBQACwAgAhjwIBAK4CACGRAgAA2gKRAiKSAiAAxQIAIZMCQADbAgAhAQAAAAEAIAsDAADhAgAguwEAAOACADC8AQAAAwAQvQEAAOACADC-AQIArQIAIb8BAgCtAgAhxAFAALACACHXAQEArgIAIYwCAQCuAgAhjQJAALACACGOAkAA2wIAIQIDAAC6BAAgjgIAAOICACALAwAA4QIAILsBAADgAgAwvAEAAAMAEL0BAADgAgAwvgECAAAAAb8BAgCtAgAhxAFAALACACHXAQEArgIAIYwCAQAAAAGNAkAAsAIAIY4CQADbAgAhAwAAAAMAIAEAAAQAMAIAAAUAIAsDAADfAgAguwEAAN4CADC8AQAABwAQvQEAAN4CADC-AQIArQIAIb8BAgC2AgAhwAEBAK4CACHBAQEArgIAIcIBAQCuAgAhwwEBAK4CACHEAUAAsAIAIQIDAAC6BAAgvwEAAOICACALAwAA3wIAILsBAADeAgAwvAEAAAcAEL0BAADeAgAwvgECAAAAAb8BAgC2AgAhwAEBAK4CACHBAQEArgIAIcIBAQCuAgAhwwEBAK4CACHEAUAAsAIAIQMAAAAHACABAAAIADACAAAJACAOBAAA3AIAIAUAAN0CACC7AQAA2QIAMLwBAAALABC9AQAA2QIAML4BAgCtAgAhxAFAALACACHQAQEArgIAIdIBAQCuAgAh2gFAALACACGPAgEArgIAIZECAADaApECIpICIADFAgAhkwJAANsCACEBAAAACwAgAQAAAAMAIAEAAAAHACABAAAAAQAgAwQAALgEACAFAAC5BAAgkwIAAOICACADAAAACwAgAQAAEAAwAgAAAQAgAwAAAAsAIAEAABAAMAIAAAEAIAMAAAALACABAAAQADACAAABACALBAAAtgQAIAUAALcEACC-AQIAAAABxAFAAAAAAdABAQAAAAHSAQEAAAAB2gFAAAAAAY8CAQAAAAGRAgAAAJECApICIAAAAAGTAkAAAAABAQwAABQAIAm-AQIAAAABxAFAAAAAAdABAQAAAAHSAQEAAAAB2gFAAAAAAY8CAQAAAAGRAgAAAJECApICIAAAAAGTAkAAAAABAQwAABYAMAEMAAAWADALBAAAnAQAIAUAAJ0EACC-AQIA6gIAIcQBQADpAgAh0AEBAOgCACHSAQEA6AIAIdoBQADpAgAhjwIBAOgCACGRAgAAmwSRAiKSAiAAjQMAIZMCQACTBAAhAgAAAAEAIAwAABkAIAm-AQIA6gIAIcQBQADpAgAh0AEBAOgCACHSAQEA6AIAIdoBQADpAgAhjwIBAOgCACGRAgAAmwSRAiKSAiAAjQMAIZMCQACTBAAhAgAAAAsAIAwAABsAIAIAAAALACAMAAAbACADAAAAAQAgEwAAFAAgFAAAGQAgAQAAAAEAIAEAAAALACAGBgAAlgQAIBkAAJcEACAaAACaBAAgGwAAmQQAIBwAAJgEACCTAgAA4gIAIAy7AQAA1QIAMLwBAAAiABC9AQAA1QIAML4BAgCaAgAhxAFAAJ0CACHQAQEAnAIAIdIBAQCcAgAh2gFAAJ0CACGPAgEAnAIAIZECAADWApECIpICIAC6AgAhkwJAANICACEDAAAACwAgAQAAIQAwGAAAIgAgAwAAAAsAIAEAABAAMAIAAAEAIAEAAAAFACABAAAABQAgAwAAAAMAIAEAAAQAMAIAAAUAIAMAAAADACABAAAEADACAAAFACADAAAAAwAgAQAABAAwAgAABQAgCAMAAJUEACC-AQIAAAABvwECAAAAAcQBQAAAAAHXAQEAAAABjAIBAAAAAY0CQAAAAAGOAkAAAAABAQwAACoAIAe-AQIAAAABvwECAAAAAcQBQAAAAAHXAQEAAAABjAIBAAAAAY0CQAAAAAGOAkAAAAABAQwAACwAMAEMAAAsADAIAwAAlAQAIL4BAgDqAgAhvwECAOoCACHEAUAA6QIAIdcBAQDoAgAhjAIBAOgCACGNAkAA6QIAIY4CQACTBAAhAgAAAAUAIAwAAC8AIAe-AQIA6gIAIb8BAgDqAgAhxAFAAOkCACHXAQEA6AIAIYwCAQDoAgAhjQJAAOkCACGOAkAAkwQAIQIAAAADACAMAAAxACACAAAAAwAgDAAAMQAgAwAAAAUAIBMAACoAIBQAAC8AIAEAAAAFACABAAAAAwAgBgYAAI4EACAZAACPBAAgGgAAkgQAIBsAAJEEACAcAACQBAAgjgIAAOICACAKuwEAANECADC8AQAAOAAQvQEAANECADC-AQIAmgIAIb8BAgCaAgAhxAFAAJ0CACHXAQEAnAIAIYwCAQCcAgAhjQJAAJ0CACGOAkAA0gIAIQMAAAADACABAAA3ADAYAAA4ACADAAAAAwAgAQAABAAwAgAABQAgDzgAAM4CACA5AADMAgAgOgAAyQIAILsBAADNAgAwvAEAAEEAEL0BAADNAgAwvgECAAAAAcQBQACwAgAh2AEBAAAAAYECAQCuAgAhggICAK0CACGDAgIAtgIAIYQCAgC2AgAhhQIBAK4CACGGAgEArgIAIQEAAAA7ACAVLwAAyAIAIDYAAMwCACA3AADQAgAguwEAAM8CADC8AQAAPQAQvQEAAM8CADC-AQIArQIAIcQBQACwAgAh0AEBAK4CACHaAUAAsAIAIeMBAgCtAgAh5gEBAK4CACHnAQEArgIAIegBAQCuAgAh9gEBAK4CACH3AQEArgIAIfkBIADFAgAh_QEBAK4CACH-AQEArgIAIf8BAQCuAgAhgAICALYCACEELwAAigQAIDYAAIcEACA3AACNBAAggAIAAOICACAVLwAAyAIAIDYAAMwCACA3AADQAgAguwEAAM8CADC8AQAAPQAQvQEAAM8CADC-AQIAAAABxAFAALACACHQAQEArgIAIdoBQACwAgAh4wECAK0CACHmAQEArgIAIecBAQAAAAHoAQEArgIAIfYBAQCuAgAh9wEBAK4CACH5ASAAxQIAIf0BAQCuAgAh_gEBAK4CACH_AQEArgIAIYACAgC2AgAhAwAAAD0AIAEAAD4AMAIAAD8AIA84AADOAgAgOQAAzAIAIDoAAMkCACC7AQAAzQIAMLwBAABBABC9AQAAzQIAML4BAgCtAgAhxAFAALACACHYAQEArgIAIYECAQCuAgAhggICAK0CACGDAgIAtgIAIYQCAgC2AgAhhQIBAK4CACGGAgEArgIAIQEAAABBACALMAAAxgIAIDYAAMwCACC7AQAAywIAMLwBAABDABC9AQAAywIAML4BAgCtAgAh0AEBAK4CACHjAQIArQIAIeQBAgCtAgAh5wEBAK4CACHpAQEArgIAIQIwAACLBAAgNgAAhwQAIAwwAADGAgAgNgAAzAIAILsBAADLAgAwvAEAAEMAEL0BAADLAgAwvgECAAAAAdABAQCuAgAh4wECAK0CACHkAQIArQIAIecBAQCuAgAh6QEBAK4CACGLAgAAygIAIAMAAABDACABAABEADACAABFACAiMAAAxgIAIDEAAMcCACAyAADIAgAgNQAAyQIAILsBAADEAgAwvAEAAEcAEL0BAADEAgAwvgECAK0CACHEAUAAsAIAIdABAQCuAgAh2gFAALACACHjAQIArQIAIeQBAgCtAgAh5QECALYCACHmAQEArgIAIecBAQCuAgAh6AEBAK4CACHpAQEArgIAIeoBAAC5AgAg6wEAALkCACDsAQEArgIAIe0BAQCuAgAh7gEBAK4CACHvAQAAuQIAIPABAAC5AgAg8QEAALkCACDyAQAAuQIAIPMBAAC1AgAg9AEBAK4CACH1AQEArgIAIfYBAQCuAgAh9wEBAK4CACH4AQIAtgIAIfkBIADFAgAhBjAAAIsEACAxAACMBAAgMgAAigQAIDUAAIgEACDlAQAA4gIAIPgBAADiAgAgIjAAAMYCACAxAADHAgAgMgAAyAIAIDUAAMkCACC7AQAAxAIAMLwBAABHABC9AQAAxAIAML4BAgAAAAHEAUAAsAIAIdABAQCuAgAh2gFAALACACHjAQIArQIAIeQBAgCtAgAh5QECALYCACHmAQEAAAAB5wEBAAAAAegBAQCuAgAh6QEBAK4CACHqAQAAuQIAIOsBAAC5AgAg7AEBAK4CACHtAQEArgIAIe4BAQCuAgAh7wEAALkCACDwAQAAuQIAIPEBAAC5AgAg8gEAALkCACDzAQAAtQIAIPQBAQCuAgAh9QEBAK4CACH2AQEArgIAIfcBAQCuAgAh-AECALYCACH5ASAAxQIAIQMAAABHACABAABIADACAABJACABAAAAQwAgAQAAAEEAIAgzAADCAgAgNAAAwwIAILsBAADBAgAwvAEAAE0AEL0BAADBAgAw4QECAK0CACHiAQIArQIAIeMBAgCtAgAhAjMAAIkEACA0AACKBAAgCTMAAMICACA0AADDAgAguwEAAMECADC8AQAATQAQvQEAAMECADDhAQIArQIAIeIBAgCtAgAh4wECAK0CACGHAgAAwAIAIAMAAABNACABAABOADACAABPACABAAAATQAgAQAAAEcAIAMAAABHACABAABIADACAABJACABAAAAQwAgAQAAAEcAIAMAAABHACABAABIADACAABJACADAAAATQAgAQAATgAwAgAATwAgAQAAAD0AIAEAAABHACABAAAATQAgAQAAADsAIAU4AACGBAAgOQAAhwQAIDoAAIgEACCDAgAA4gIAIIQCAADiAgAgAwAAAEEAIAEAAFwAMAIAADsAIAMAAABBACABAABcADACAAA7ACADAAAAQQAgAQAAXAAwAgAAOwAgDDgAAIMEACA5AACEBAAgOgAAhQQAIL4BAgAAAAHEAUAAAAAB2AEBAAAAAYECAQAAAAGCAgIAAAABgwICAAAAAYQCAgAAAAGFAgEAAAABhgIBAAAAAQEMAABgACAJvgECAAAAAcQBQAAAAAHYAQEAAAABgQIBAAAAAYICAgAAAAGDAgIAAAABhAICAAAAAYUCAQAAAAGGAgEAAAABAQwAAGIAMAEMAABiADAMOAAA4gMAIDkAAOMDACA6AADkAwAgvgECAOoCACHEAUAA6QIAIdgBAQDoAgAhgQIBAOgCACGCAgIA6gIAIYMCAgDrAgAhhAICAOsCACGFAgEA6AIAIYYCAQDoAgAhAgAAADsAIAwAAGUAIAm-AQIA6gIAIcQBQADpAgAh2AEBAOgCACGBAgEA6AIAIYICAgDqAgAhgwICAOsCACGEAgIA6wIAIYUCAQDoAgAhhgIBAOgCACECAAAAQQAgDAAAZwAgAgAAAEEAIAwAAGcAIAMAAAA7ACATAABgACAUAABlACABAAAAOwAgAQAAAEEAIAcGAADdAwAgGQAA3gMAIBoAAOEDACAbAADgAwAgHAAA3wMAIIMCAADiAgAghAIAAOICACAMuwEAAL8CADC8AQAAbgAQvQEAAL8CADC-AQIAmgIAIcQBQACdAgAh2AEBAJwCACGBAgEAnAIAIYICAgCaAgAhgwICAJsCACGEAgIAmwIAIYUCAQCcAgAhhgIBAJwCACEDAAAAQQAgAQAAbQAwGAAAbgAgAwAAAEEAIAEAAFwAMAIAADsAIAEAAAA_ACABAAAAPwAgAwAAAD0AIAEAAD4AMAIAAD8AIAMAAAA9ACABAAA-ADACAAA_ACADAAAAPQAgAQAAPgAwAgAAPwAgEi8AANoDACA2AADcAwAgNwAA2wMAIL4BAgAAAAHEAUAAAAAB0AEBAAAAAdoBQAAAAAHjAQIAAAAB5gEBAAAAAecBAQAAAAHoAQEAAAAB9gEBAAAAAfcBAQAAAAH5ASAAAAAB_QEBAAAAAf4BAQAAAAH_AQEAAAABgAICAAAAAQEMAAB2ACAPvgECAAAAAcQBQAAAAAHQAQEAAAAB2gFAAAAAAeMBAgAAAAHmAQEAAAAB5wEBAAAAAegBAQAAAAH2AQEAAAAB9wEBAAAAAfkBIAAAAAH9AQEAAAAB_gEBAAAAAf8BAQAAAAGAAgIAAAABAQwAAHgAMAEMAAB4ADABAAAAQQAgEi8AAMIDACA2AADEAwAgNwAAwwMAIL4BAgDqAgAhxAFAAOkCACHQAQEA6AIAIdoBQADpAgAh4wECAOoCACHmAQEA6AIAIecBAQDoAgAh6AEBAOgCACH2AQEA6AIAIfcBAQDoAgAh-QEgAI0DACH9AQEA6AIAIf4BAQDoAgAh_wEBAOgCACGAAgIA6wIAIQIAAAA_ACAMAAB8ACAPvgECAOoCACHEAUAA6QIAIdABAQDoAgAh2gFAAOkCACHjAQIA6gIAIeYBAQDoAgAh5wEBAOgCACHoAQEA6AIAIfYBAQDoAgAh9wEBAOgCACH5ASAAjQMAIf0BAQDoAgAh_gEBAOgCACH_AQEA6AIAIYACAgDrAgAhAgAAAD0AIAwAAH4AIAIAAAA9ACAMAAB-ACABAAAAQQAgAwAAAD8AIBMAAHYAIBQAAHwAIAEAAAA_ACABAAAAPQAgBgYAAL0DACAZAAC-AwAgGgAAwQMAIBsAAMADACAcAAC_AwAggAIAAOICACASuwEAAL4CADC8AQAAhgEAEL0BAAC-AgAwvgECAJoCACHEAUAAnQIAIdABAQCcAgAh2gFAAJ0CACHjAQIAmgIAIeYBAQCcAgAh5wEBAJwCACHoAQEAnAIAIfYBAQCcAgAh9wEBAJwCACH5ASAAugIAIf0BAQCcAgAh_gEBAJwCACH_AQEAnAIAIYACAgCbAgAhAwAAAD0AIAEAAIUBADAYAACGAQAgAwAAAD0AIAEAAD4AMAIAAD8AIAEAAABFACABAAAARQAgAwAAAEMAIAEAAEQAMAIAAEUAIAMAAABDACABAABEADACAABFACADAAAAQwAgAQAARAAwAgAARQAgCDAAALsDACA2AAC8AwAgvgECAAAAAdABAQAAAAHjAQIAAAAB5AECAAAAAecBAQAAAAHpAQEAAAABAQwAAI4BACAGvgECAAAAAdABAQAAAAHjAQIAAAAB5AECAAAAAecBAQAAAAHpAQEAAAABAQwAAJABADABDAAAkAEAMAgwAACtAwAgNgAArgMAIL4BAgDqAgAh0AEBAOgCACHjAQIA6gIAIeQBAgDqAgAh5wEBAOgCACHpAQEA6AIAIQIAAABFACAMAACTAQAgBr4BAgDqAgAh0AEBAOgCACHjAQIA6gIAIeQBAgDqAgAh5wEBAOgCACHpAQEA6AIAIQIAAABDACAMAACVAQAgAgAAAEMAIAwAAJUBACADAAAARQAgEwAAjgEAIBQAAJMBACABAAAARQAgAQAAAEMAIAUGAACoAwAgGQAAqQMAIBoAAKwDACAbAACrAwAgHAAAqgMAIAm7AQAAvQIAMLwBAACcAQAQvQEAAL0CADC-AQIAmgIAIdABAQCcAgAh4wECAJoCACHkAQIAmgIAIecBAQCcAgAh6QEBAJwCACEDAAAAQwAgAQAAmwEAMBgAAJwBACADAAAAQwAgAQAARAAwAgAARQAgAQAAAEkAIAEAAABJACADAAAARwAgAQAASAAwAgAASQAgAwAAAEcAIAEAAEgAMAIAAEkAIAMAAABHACABAABIADACAABJACAfMAAApAMAIDEAAKUDACAyAACmAwAgNQAApwMAIL4BAgAAAAHEAUAAAAAB0AEBAAAAAdoBQAAAAAHjAQIAAAAB5AECAAAAAeUBAgAAAAHmAQEAAAAB5wEBAAAAAegBAQAAAAHpAQEAAAAB6gEAAJ4DACDrAQAAnwMAIOwBAQAAAAHtAQEAAAAB7gEBAAAAAe8BAACgAwAg8AEAAKEDACDxAQAAogMAIPIBAACjAwAg8wGAAAAAAfQBAQAAAAH1AQEAAAAB9gEBAAAAAfcBAQAAAAH4AQIAAAAB-QEgAAAAAQEMAACkAQAgG74BAgAAAAHEAUAAAAAB0AEBAAAAAdoBQAAAAAHjAQIAAAAB5AECAAAAAeUBAgAAAAHmAQEAAAAB5wEBAAAAAegBAQAAAAHpAQEAAAAB6gEAAJ4DACDrAQAAnwMAIOwBAQAAAAHtAQEAAAAB7gEBAAAAAe8BAACgAwAg8AEAAKEDACDxAQAAogMAIPIBAACjAwAg8wGAAAAAAfQBAQAAAAH1AQEAAAAB9gEBAAAAAfcBAQAAAAH4AQIAAAAB-QEgAAAAAQEMAACmAQAwAQwAAKYBADABAAAAQwAgAQAAAEEAIB8wAACOAwAgMQAAjwMAIDIAAJADACA1AACRAwAgvgECAOoCACHEAUAA6QIAIdABAQDoAgAh2gFAAOkCACHjAQIA6gIAIeQBAgDqAgAh5QECAOsCACHmAQEA6AIAIecBAQDoAgAh6AEBAOgCACHpAQEA6AIAIeoBAACHAwAg6wEAAIgDACDsAQEA6AIAIe0BAQDoAgAh7gEBAOgCACHvAQAAiQMAIPABAACKAwAg8QEAAIsDACDyAQAAjAMAIPMBgAAAAAH0AQEA6AIAIfUBAQDoAgAh9gEBAOgCACH3AQEA6AIAIfgBAgDrAgAh-QEgAI0DACECAAAASQAgDAAAqwEAIBu-AQIA6gIAIcQBQADpAgAh0AEBAOgCACHaAUAA6QIAIeMBAgDqAgAh5AECAOoCACHlAQIA6wIAIeYBAQDoAgAh5wEBAOgCACHoAQEA6AIAIekBAQDoAgAh6gEAAIcDACDrAQAAiAMAIOwBAQDoAgAh7QEBAOgCACHuAQEA6AIAIe8BAACJAwAg8AEAAIoDACDxAQAAiwMAIPIBAACMAwAg8wGAAAAAAfQBAQDoAgAh9QEBAOgCACH2AQEA6AIAIfcBAQDoAgAh-AECAOsCACH5ASAAjQMAIQIAAABHACAMAACtAQAgAgAAAEcAIAwAAK0BACABAAAAQwAgAQAAAEEAIAMAAABJACATAACkAQAgFAAAqwEAIAEAAABJACABAAAARwAgBwYAAIIDACAZAACDAwAgGgAAhgMAIBsAAIUDACAcAACEAwAg5QEAAOICACD4AQAA4gIAIB67AQAAuAIAMLwBAAC2AQAQvQEAALgCADC-AQIAmgIAIcQBQACdAgAh0AEBAJwCACHaAUAAnQIAIeMBAgCaAgAh5AECAJoCACHlAQIAmwIAIeYBAQCcAgAh5wEBAJwCACHoAQEAnAIAIekBAQCcAgAh6gEAALkCACDrAQAAuQIAIOwBAQCcAgAh7QEBAJwCACHuAQEAnAIAIe8BAAC5AgAg8AEAALkCACDxAQAAuQIAIPIBAAC5AgAg8wEAALICACD0AQEAnAIAIfUBAQCcAgAh9gEBAJwCACH3AQEAnAIAIfgBAgCbAgAh-QEgALoCACEDAAAARwAgAQAAtQEAMBgAALYBACADAAAARwAgAQAASAAwAgAASQAgAQAAAE8AIAEAAABPACADAAAATQAgAQAATgAwAgAATwAgAwAAAE0AIAEAAE4AMAIAAE8AIAMAAABNACABAABOADACAABPACAFMwAAgAMAIDQAAIEDACDhAQIAAAAB4gECAAAAAeMBAgAAAAEBDAAAvgEAIAPhAQIAAAAB4gECAAAAAeMBAgAAAAEBDAAAwAEAMAEMAADAAQAwBTMAAP4CACA0AAD_AgAg4QECAOoCACHiAQIA6gIAIeMBAgDqAgAhAgAAAE8AIAwAAMMBACAD4QECAOoCACHiAQIA6gIAIeMBAgDqAgAhAgAAAE0AIAwAAMUBACACAAAATQAgDAAAxQEAIAMAAABPACATAAC-AQAgFAAAwwEAIAEAAABPACABAAAATQAgBQYAAPkCACAZAAD6AgAgGgAA_QIAIBsAAPwCACAcAAD7AgAgBrsBAAC3AgAwvAEAAMwBABC9AQAAtwIAMOEBAgCaAgAh4gECAJoCACHjAQIAmgIAIQMAAABNACABAADLAQAwGAAAzAEAIAMAAABNACABAABOADACAABPACAHDAAAtQIAILsBAAC0AgAwvAEAANIBABC9AQAAtAIAMNgBAQAAAAHZAQIAtgIAIdoBQACwAgAhAQAAAM8BACABAAAAzwEAIAcMAAC1AgAguwEAALQCADC8AQAA0gEAEL0BAAC0AgAw2AEBAK4CACHZAQIAtgIAIdoBQACwAgAhAdkBAADiAgAgAwAAANIBACABAADTAQAwAgAAzwEAIAMAAADSAQAgAQAA0wEAMAIAAM8BACADAAAA0gEAIAEAANMBADACAADPAQAgBAyAAAAAAdgBAQAAAAHZAQIAAAAB2gFAAAAAAQEMAADXAQAgBAyAAAAAAdgBAQAAAAHZAQIAAAAB2gFAAAAAAQEMAADZAQAwAQwAANkBADAEDIAAAAAB2AEBAOgCACHZAQIA6wIAIdoBQADpAgAhAgAAAM8BACAMAADcAQAgBAyAAAAAAdgBAQDoAgAh2QECAOsCACHaAUAA6QIAIQIAAADSAQAgDAAA3gEAIAIAAADSAQAgDAAA3gEAIAMAAADPAQAgEwAA1wEAIBQAANwBACABAAAAzwEAIAEAAADSAQAgBgYAAPQCACAZAAD1AgAgGgAA-AIAIBsAAPcCACAcAAD2AgAg2QEAAOICACAHDAAAsgIAILsBAACxAgAwvAEAAOUBABC9AQAAsQIAMNgBAQCcAgAh2QECAJsCACHaAUAAnQIAIQMAAADSAQAgAQAA5AEAMBgAAOUBACADAAAA0gEAIAEAANMBADACAADPAQAgDLsBAACsAgAwvAEAAOsBABC9AQAArAIAML4BAgAAAAHEAUAAsAIAIdABAQCuAgAh0QEBAK4CACHSAQEArgIAIdMBAQCuAgAh1QEAAK8C1QEi1gEBAK4CACHXAQEArgIAIQEAAADoAQAgAQAAAOgBACAMuwEAAKwCADC8AQAA6wEAEL0BAACsAgAwvgECAK0CACHEAUAAsAIAIdABAQCuAgAh0QEBAK4CACHSAQEArgIAIdMBAQCuAgAh1QEAAK8C1QEi1gEBAK4CACHXAQEArgIAIQADAAAA6wEAIAEAAOwBADACAADoAQAgAwAAAOsBACABAADsAQAwAgAA6AEAIAMAAADrAQAgAQAA7AEAMAIAAOgBACAJvgECAAAAAcQBQAAAAAHQAQEAAAAB0QEBAAAAAdIBAQAAAAHTAQEAAAAB1QEAAADVAQLWAQEAAAAB1wEBAAAAAQEMAADwAQAgCb4BAgAAAAHEAUAAAAAB0AEBAAAAAdEBAQAAAAHSAQEAAAAB0wEBAAAAAdUBAAAA1QEC1gEBAAAAAdcBAQAAAAEBDAAA8gEAMAEMAADyAQAwCb4BAgDqAgAhxAFAAOkCACHQAQEA6AIAIdEBAQDoAgAh0gEBAOgCACHTAQEA6AIAIdUBAADzAtUBItYBAQDoAgAh1wEBAOgCACECAAAA6AEAIAwAAPUBACAJvgECAOoCACHEAUAA6QIAIdABAQDoAgAh0QEBAOgCACHSAQEA6AIAIdMBAQDoAgAh1QEAAPMC1QEi1gEBAOgCACHXAQEA6AIAIQIAAADrAQAgDAAA9wEAIAIAAADrAQAgDAAA9wEAIAMAAADoAQAgEwAA8AEAIBQAAPUBACABAAAA6AEAIAEAAADrAQAgBQYAAO4CACAZAADvAgAgGgAA8gIAIBsAAPECACAcAADwAgAgDLsBAACoAgAwvAEAAP4BABC9AQAAqAIAML4BAgCaAgAhxAFAAJ0CACHQAQEAnAIAIdEBAQCcAgAh0gEBAJwCACHTAQEAnAIAIdUBAACpAtUBItYBAQCcAgAh1wEBAJwCACEDAAAA6wEAIAEAAP0BADAYAAD-AQAgAwAAAOsBACABAADsAQAwAgAA6AEAIAEAAAAJACABAAAACQAgAwAAAAcAIAEAAAgAMAIAAAkAIAMAAAAHACABAAAIADACAAAJACADAAAABwAgAQAACAAwAgAACQAgCAMAAO0CACC-AQIAAAABvwECAAAAAcABAQAAAAHBAQEAAAABwgEBAAAAAcMBAQAAAAHEAUAAAAABAQwAAIYCACAHvgECAAAAAb8BAgAAAAHAAQEAAAABwQEBAAAAAcIBAQAAAAHDAQEAAAABxAFAAAAAAQEMAACIAgAwAQwAAIgCADABAAAACwAgCAMAAOwCACC-AQIA6gIAIb8BAgDrAgAhwAEBAOgCACHBAQEA6AIAIcIBAQDoAgAhwwEBAOgCACHEAUAA6QIAIQIAAAAJACAMAACMAgAgB74BAgDqAgAhvwECAOsCACHAAQEA6AIAIcEBAQDoAgAhwgEBAOgCACHDAQEA6AIAIcQBQADpAgAhAgAAAAcAIAwAAI4CACACAAAABwAgDAAAjgIAIAEAAAALACADAAAACQAgEwAAhgIAIBQAAIwCACABAAAACQAgAQAAAAcAIAYGAADjAgAgGQAA5AIAIBoAAOcCACAbAADmAgAgHAAA5QIAIL8BAADiAgAgCrsBAACZAgAwvAEAAJYCABC9AQAAmQIAML4BAgCaAgAhvwECAJsCACHAAQEAnAIAIcEBAQCcAgAhwgEBAJwCACHDAQEAnAIAIcQBQACdAgAhAwAAAAcAIAEAAJUCADAYAACWAgAgAwAAAAcAIAEAAAgAMAIAAAkAIAq7AQAAmQIAMLwBAACWAgAQvQEAAJkCADC-AQIAmgIAIb8BAgCbAgAhwAEBAJwCACHBAQEAnAIAIcIBAQCcAgAhwwEBAJwCACHEAUAAnQIAIQ0GAACfAgAgGQAApwIAIBoAAJ8CACAbAACfAgAgHAAAnwIAIMUBAgAAAAHGAQIAAAAExwECAAAABMgBAgAAAAHJAQIAAAABygECAAAAAcsBAgAAAAHMAQIApgIAIQ0GAACkAgAgGQAApQIAIBoAAKQCACAbAACkAgAgHAAApAIAIMUBAgAAAAHGAQIAAAAFxwECAAAABcgBAgAAAAHJAQIAAAABygECAAAAAcsBAgAAAAHMAQIAowIAIQ4GAACfAgAgGwAAogIAIBwAAKICACDFAQEAAAABxgEBAAAABMcBAQAAAATIAQEAAAAByQEBAAAAAcoBAQAAAAHLAQEAAAABzAEBAKECACHNAQEAAAABzgEBAAAAAc8BAQAAAAELBgAAnwIAIBsAAKACACAcAACgAgAgxQFAAAAAAcYBQAAAAATHAUAAAAAEyAFAAAAAAckBQAAAAAHKAUAAAAABywFAAAAAAcwBQACeAgAhCwYAAJ8CACAbAACgAgAgHAAAoAIAIMUBQAAAAAHGAUAAAAAExwFAAAAABMgBQAAAAAHJAUAAAAABygFAAAAAAcsBQAAAAAHMAUAAngIAIQjFAQIAAAABxgECAAAABMcBAgAAAATIAQIAAAAByQECAAAAAcoBAgAAAAHLAQIAAAABzAECAJ8CACEIxQFAAAAAAcYBQAAAAATHAUAAAAAEyAFAAAAAAckBQAAAAAHKAUAAAAABywFAAAAAAcwBQACgAgAhDgYAAJ8CACAbAACiAgAgHAAAogIAIMUBAQAAAAHGAQEAAAAExwEBAAAABMgBAQAAAAHJAQEAAAABygEBAAAAAcsBAQAAAAHMAQEAoQIAIc0BAQAAAAHOAQEAAAABzwEBAAAAAQvFAQEAAAABxgEBAAAABMcBAQAAAATIAQEAAAAByQEBAAAAAcoBAQAAAAHLAQEAAAABzAEBAKICACHNAQEAAAABzgEBAAAAAc8BAQAAAAENBgAApAIAIBkAAKUCACAaAACkAgAgGwAApAIAIBwAAKQCACDFAQIAAAABxgECAAAABccBAgAAAAXIAQIAAAAByQECAAAAAcoBAgAAAAHLAQIAAAABzAECAKMCACEIxQECAAAAAcYBAgAAAAXHAQIAAAAFyAECAAAAAckBAgAAAAHKAQIAAAABywECAAAAAcwBAgCkAgAhCMUBCAAAAAHGAQgAAAAFxwEIAAAABcgBCAAAAAHJAQgAAAABygEIAAAAAcsBCAAAAAHMAQgApQIAIQ0GAACfAgAgGQAApwIAIBoAAJ8CACAbAACfAgAgHAAAnwIAIMUBAgAAAAHGAQIAAAAExwECAAAABMgBAgAAAAHJAQIAAAABygECAAAAAcsBAgAAAAHMAQIApgIAIQjFAQgAAAABxgEIAAAABMcBCAAAAATIAQgAAAAByQEIAAAAAcoBCAAAAAHLAQgAAAABzAEIAKcCACEMuwEAAKgCADC8AQAA_gEAEL0BAACoAgAwvgECAJoCACHEAUAAnQIAIdABAQCcAgAh0QEBAJwCACHSAQEAnAIAIdMBAQCcAgAh1QEAAKkC1QEi1gEBAJwCACHXAQEAnAIAIQcGAACfAgAgGwAAqwIAIBwAAKsCACDFAQAAANUBAsYBAAAA1QEIxwEAAADVAQjMAQAAqgLVASIHBgAAnwIAIBsAAKsCACAcAACrAgAgxQEAAADVAQLGAQAAANUBCMcBAAAA1QEIzAEAAKoC1QEiBMUBAAAA1QECxgEAAADVAQjHAQAAANUBCMwBAACrAtUBIgy7AQAArAIAMLwBAADrAQAQvQEAAKwCADC-AQIArQIAIcQBQACwAgAh0AEBAK4CACHRAQEArgIAIdIBAQCuAgAh0wEBAK4CACHVAQAArwLVASLWAQEArgIAIdcBAQCuAgAhCMUBAgAAAAHGAQIAAAAExwECAAAABMgBAgAAAAHJAQIAAAABygECAAAAAcsBAgAAAAHMAQIAnwIAIQvFAQEAAAABxgEBAAAABMcBAQAAAATIAQEAAAAByQEBAAAAAcoBAQAAAAHLAQEAAAABzAEBAKICACHNAQEAAAABzgEBAAAAAc8BAQAAAAEExQEAAADVAQLGAQAAANUBCMcBAAAA1QEIzAEAAKsC1QEiCMUBQAAAAAHGAUAAAAAExwFAAAAABMgBQAAAAAHJAUAAAAABygFAAAAAAcsBQAAAAAHMAUAAoAIAIQcMAACyAgAguwEAALECADC8AQAA5QEAEL0BAACxAgAw2AEBAJwCACHZAQIAmwIAIdoBQACdAgAhDwYAAJ8CACAbAACzAgAgHAAAswIAIMUBgAAAAAHIAYAAAAAByQGAAAAAAcoBgAAAAAHLAYAAAAABzAGAAAAAAdsBAQAAAAHcAQEAAAAB3QEBAAAAAd4BgAAAAAHfAYAAAAAB4AGAAAAAAQzFAYAAAAAByAGAAAAAAckBgAAAAAHKAYAAAAABywGAAAAAAcwBgAAAAAHbAQEAAAAB3AEBAAAAAd0BAQAAAAHeAYAAAAAB3wGAAAAAAeABgAAAAAEHDAAAtQIAILsBAAC0AgAwvAEAANIBABC9AQAAtAIAMNgBAQCuAgAh2QECALYCACHaAUAAsAIAIQzFAYAAAAAByAGAAAAAAckBgAAAAAHKAYAAAAABywGAAAAAAcwBgAAAAAHbAQEAAAAB3AEBAAAAAd0BAQAAAAHeAYAAAAAB3wGAAAAAAeABgAAAAAEIxQECAAAAAcYBAgAAAAXHAQIAAAAFyAECAAAAAckBAgAAAAHKAQIAAAABywECAAAAAcwBAgCkAgAhBrsBAAC3AgAwvAEAAMwBABC9AQAAtwIAMOEBAgCaAgAh4gECAJoCACHjAQIAmgIAIR67AQAAuAIAMLwBAAC2AQAQvQEAALgCADC-AQIAmgIAIcQBQACdAgAh0AEBAJwCACHaAUAAnQIAIeMBAgCaAgAh5AECAJoCACHlAQIAmwIAIeYBAQCcAgAh5wEBAJwCACHoAQEAnAIAIekBAQCcAgAh6gEAALkCACDrAQAAuQIAIOwBAQCcAgAh7QEBAJwCACHuAQEAnAIAIe8BAAC5AgAg8AEAALkCACDxAQAAuQIAIPIBAAC5AgAg8wEAALICACD0AQEAnAIAIfUBAQCcAgAh9gEBAJwCACH3AQEAnAIAIfgBAgCbAgAh-QEgALoCACEExQEBAAAABfoBAQAAAAH7AQEAAAAE_AEBAAAABAUGAACfAgAgGwAAvAIAIBwAALwCACDFASAAAAABzAEgALsCACEFBgAAnwIAIBsAALwCACAcAAC8AgAgxQEgAAAAAcwBIAC7AgAhAsUBIAAAAAHMASAAvAIAIQm7AQAAvQIAMLwBAACcAQAQvQEAAL0CADC-AQIAmgIAIdABAQCcAgAh4wECAJoCACHkAQIAmgIAIecBAQCcAgAh6QEBAJwCACESuwEAAL4CADC8AQAAhgEAEL0BAAC-AgAwvgECAJoCACHEAUAAnQIAIdABAQCcAgAh2gFAAJ0CACHjAQIAmgIAIeYBAQCcAgAh5wEBAJwCACHoAQEAnAIAIfYBAQCcAgAh9wEBAJwCACH5ASAAugIAIf0BAQCcAgAh_gEBAJwCACH_AQEAnAIAIYACAgCbAgAhDLsBAAC_AgAwvAEAAG4AEL0BAAC_AgAwvgECAJoCACHEAUAAnQIAIdgBAQCcAgAhgQIBAJwCACGCAgIAmgIAIYMCAgCbAgAhhAICAJsCACGFAgEAnAIAIYYCAQCcAgAhAuEBAgAAAAHiAQIAAAABCDMAAMICACA0AADDAgAguwEAAMECADC8AQAATQAQvQEAAMECADDhAQIArQIAIeIBAgCtAgAh4wECAK0CACEkMAAAxgIAIDEAAMcCACAyAADIAgAgNQAAyQIAILsBAADEAgAwvAEAAEcAEL0BAADEAgAwvgECAK0CACHEAUAAsAIAIdABAQCuAgAh2gFAALACACHjAQIArQIAIeQBAgCtAgAh5QECALYCACHmAQEArgIAIecBAQCuAgAh6AEBAK4CACHpAQEArgIAIeoBAAC5AgAg6wEAALkCACDsAQEArgIAIe0BAQCuAgAh7gEBAK4CACHvAQAAuQIAIPABAAC5AgAg8QEAALkCACDyAQAAuQIAIPMBAAC1AgAg9AEBAK4CACH1AQEArgIAIfYBAQCuAgAh9wEBAK4CACH4AQIAtgIAIfkBIADFAgAhlAIAAEcAIJUCAABHACAROAAAzgIAIDkAAMwCACA6AADJAgAguwEAAM0CADC8AQAAQQAQvQEAAM0CADC-AQIArQIAIcQBQACwAgAh2AEBAK4CACGBAgEArgIAIYICAgCtAgAhgwICALYCACGEAgIAtgIAIYUCAQCuAgAhhgIBAK4CACGUAgAAQQAglQIAAEEAICIwAADGAgAgMQAAxwIAIDIAAMgCACA1AADJAgAguwEAAMQCADC8AQAARwAQvQEAAMQCADC-AQIArQIAIcQBQACwAgAh0AEBAK4CACHaAUAAsAIAIeMBAgCtAgAh5AECAK0CACHlAQIAtgIAIeYBAQCuAgAh5wEBAK4CACHoAQEArgIAIekBAQCuAgAh6gEAALkCACDrAQAAuQIAIOwBAQCuAgAh7QEBAK4CACHuAQEArgIAIe8BAAC5AgAg8AEAALkCACDxAQAAuQIAIPIBAAC5AgAg8wEAALUCACD0AQEArgIAIfUBAQCuAgAh9gEBAK4CACH3AQEArgIAIfgBAgC2AgAh-QEgAMUCACECxQEgAAAAAcwBIAC8AgAhFy8AAMgCACA2AADMAgAgNwAA0AIAILsBAADPAgAwvAEAAD0AEL0BAADPAgAwvgECAK0CACHEAUAAsAIAIdABAQCuAgAh2gFAALACACHjAQIArQIAIeYBAQCuAgAh5wEBAK4CACHoAQEArgIAIfYBAQCuAgAh9wEBAK4CACH5ASAAxQIAIf0BAQCuAgAh_gEBAK4CACH_AQEArgIAIYACAgC2AgAhlAIAAD0AIJUCAAA9ACANMAAAxgIAIDYAAMwCACC7AQAAywIAMLwBAABDABC9AQAAywIAML4BAgCtAgAh0AEBAK4CACHjAQIArQIAIeQBAgCtAgAh5wEBAK4CACHpAQEArgIAIZQCAABDACCVAgAAQwAgETgAAM4CACA5AADMAgAgOgAAyQIAILsBAADNAgAwvAEAAEEAEL0BAADNAgAwvgECAK0CACHEAUAAsAIAIdgBAQCuAgAhgQIBAK4CACGCAgIArQIAIYMCAgC2AgAhhAICALYCACGFAgEArgIAIYYCAQCuAgAhlAIAAEEAIJUCAABBACADiAIAAE0AIIkCAABNACCKAgAATQAgAuQBAgAAAAHnAQEAAAABCzAAAMYCACA2AADMAgAguwEAAMsCADC8AQAAQwAQvQEAAMsCADC-AQIArQIAIdABAQCuAgAh4wECAK0CACHkAQIArQIAIecBAQCuAgAh6QEBAK4CACEDiAIAAEcAIIkCAABHACCKAgAARwAgDzgAAM4CACA5AADMAgAgOgAAyQIAILsBAADNAgAwvAEAAEEAEL0BAADNAgAwvgECAK0CACHEAUAAsAIAIdgBAQCuAgAhgQIBAK4CACGCAgIArQIAIYMCAgC2AgAhhAICALYCACGFAgEArgIAIYYCAQCuAgAhA4gCAAA9ACCJAgAAPQAgigIAAD0AIBUvAADIAgAgNgAAzAIAIDcAANACACC7AQAAzwIAMLwBAAA9ABC9AQAAzwIAML4BAgCtAgAhxAFAALACACHQAQEArgIAIdoBQACwAgAh4wECAK0CACHmAQEArgIAIecBAQCuAgAh6AEBAK4CACH2AQEArgIAIfcBAQCuAgAh-QEgAMUCACH9AQEArgIAIf4BAQCuAgAh_wEBAK4CACGAAgIAtgIAIQOIAgAAQwAgiQIAAEMAIIoCAABDACAKuwEAANECADC8AQAAOAAQvQEAANECADC-AQIAmgIAIb8BAgCaAgAhxAFAAJ0CACHXAQEAnAIAIYwCAQCcAgAhjQJAAJ0CACGOAkAA0gIAIQsGAACkAgAgGwAA1AIAIBwAANQCACDFAUAAAAABxgFAAAAABccBQAAAAAXIAUAAAAAByQFAAAAAAcoBQAAAAAHLAUAAAAABzAFAANMCACELBgAApAIAIBsAANQCACAcAADUAgAgxQFAAAAAAcYBQAAAAAXHAUAAAAAFyAFAAAAAAckBQAAAAAHKAUAAAAABywFAAAAAAcwBQADTAgAhCMUBQAAAAAHGAUAAAAAFxwFAAAAABcgBQAAAAAHJAUAAAAABygFAAAAAAcsBQAAAAAHMAUAA1AIAIQy7AQAA1QIAMLwBAAAiABC9AQAA1QIAML4BAgCaAgAhxAFAAJ0CACHQAQEAnAIAIdIBAQCcAgAh2gFAAJ0CACGPAgEAnAIAIZECAADWApECIpICIAC6AgAhkwJAANICACEHBgAAnwIAIBsAANgCACAcAADYAgAgxQEAAACRAgLGAQAAAJECCMcBAAAAkQIIzAEAANcCkQIiBwYAAJ8CACAbAADYAgAgHAAA2AIAIMUBAAAAkQICxgEAAACRAgjHAQAAAJECCMwBAADXApECIgTFAQAAAJECAsYBAAAAkQIIxwEAAACRAgjMAQAA2AKRAiIOBAAA3AIAIAUAAN0CACC7AQAA2QIAMLwBAAALABC9AQAA2QIAML4BAgCtAgAhxAFAALACACHQAQEArgIAIdIBAQCuAgAh2gFAALACACGPAgEArgIAIZECAADaApECIpICIADFAgAhkwJAANsCACEExQEAAACRAgLGAQAAAJECCMcBAAAAkQIIzAEAANgCkQIiCMUBQAAAAAHGAUAAAAAFxwFAAAAABcgBQAAAAAHJAUAAAAABygFAAAAAAcsBQAAAAAHMAUAA1AIAIQOIAgAAAwAgiQIAAAMAIIoCAAADACADiAIAAAcAIIkCAAAHACCKAgAABwAgCwMAAN8CACC7AQAA3gIAMLwBAAAHABC9AQAA3gIAML4BAgCtAgAhvwECALYCACHAAQEArgIAIcEBAQCuAgAhwgEBAK4CACHDAQEArgIAIcQBQACwAgAhEAQAANwCACAFAADdAgAguwEAANkCADC8AQAACwAQvQEAANkCADC-AQIArQIAIcQBQACwAgAh0AEBAK4CACHSAQEArgIAIdoBQACwAgAhjwIBAK4CACGRAgAA2gKRAiKSAiAAxQIAIZMCQADbAgAhlAIAAAsAIJUCAAALACALAwAA4QIAILsBAADgAgAwvAEAAAMAEL0BAADgAgAwvgECAK0CACG_AQIArQIAIcQBQACwAgAh1wEBAK4CACGMAgEArgIAIY0CQACwAgAhjgJAANsCACEQBAAA3AIAIAUAAN0CACC7AQAA2QIAMLwBAAALABC9AQAA2QIAML4BAgCtAgAhxAFAALACACHQAQEArgIAIdIBAQCuAgAh2gFAALACACGPAgEArgIAIZECAADaApECIpICIADFAgAhkwJAANsCACGUAgAACwAglQIAAAsAIAAAAAAAAAGZAgEAAAABAZkCQAAAAAEFmQICAAAAAaACAgAAAAGhAgIAAAABogICAAAAAaMCAgAAAAEFmQICAAAAAaACAgAAAAGhAgIAAAABogICAAAAAaMCAgAAAAEHEwAA7AQAIBQAAO8EACCWAgAA7QQAIJcCAADuBAAgmgIAAAsAIJsCAAALACCcAgAAAQAgAxMAAOwEACCWAgAA7QQAIJwCAAABACAAAAAAAAGZAgAAANUBAgAAAAAAAAAAAAAFEwAA5AQAIBQAAOoEACCWAgAA5QQAIJcCAADpBAAgnAIAAEkAIAUTAADiBAAgFAAA5wQAIJYCAADjBAAglwIAAOYEACCcAgAAOwAgAxMAAOQEACCWAgAA5QQAIJwCAABJACADEwAA4gQAIJYCAADjBAAgnAIAADsAIAAAAAAAApkCAQAAAASfAgEAAAAFApkCAQAAAASfAgEAAAAFApkCAQAAAASfAgEAAAAFApkCAQAAAASfAgEAAAAFApkCAQAAAASfAgEAAAAFApkCAQAAAASfAgEAAAAFAZkCIAAAAAEFEwAA1gQAIBQAAOAEACCWAgAA1wQAIJcCAADfBAAgnAIAAD8AIAcTAADUBAAgFAAA3QQAIJYCAADVBAAglwIAANwEACCaAgAAQwAgmwIAAEMAIJwCAABFACAHEwAA0gQAIBQAANoEACCWAgAA0wQAIJcCAADZBAAgmgIAAEEAIJsCAABBACCcAgAAOwAgCxMAAJIDADAUAACXAwAwlgIAAJMDADCXAgAAlAMAMJgCAACVAwAgmQIAAJYDADCaAgAAlgMAMJsCAACWAwAwnAIAAJYDADCdAgAAmAMAMJ4CAACZAwAwAzQAAIEDACDiAQIAAAAB4wECAAAAAQIAAABPACATAACdAwAgAwAAAE8AIBMAAJ0DACAUAACcAwAgAQwAANgEADAJMwAAwgIAIDQAAMMCACC7AQAAwQIAMLwBAABNABC9AQAAwQIAMOEBAgCtAgAh4gECAK0CACHjAQIArQIAIYcCAADAAgAgAgAAAE8AIAwAAJwDACACAAAAmgMAIAwAAJsDACAGuwEAAJkDADC8AQAAmgMAEL0BAACZAwAw4QECAK0CACHiAQIArQIAIeMBAgCtAgAhBrsBAACZAwAwvAEAAJoDABC9AQAAmQMAMOEBAgCtAgAh4gECAK0CACHjAQIArQIAIQLiAQIA6gIAIeMBAgDqAgAhAzQAAP8CACDiAQIA6gIAIeMBAgDqAgAhAzQAAIEDACDiAQIAAAAB4wECAAAAAQGZAgEAAAAEAZkCAQAAAAQBmQIBAAAABAGZAgEAAAAEAZkCAQAAAAQBmQIBAAAABAMTAADWBAAglgIAANcEACCcAgAAPwAgAxMAANQEACCWAgAA1QQAIJwCAABFACADEwAA0gQAIJYCAADTBAAgnAIAADsAIAQTAACSAwAwlgIAAJMDADCYAgAAlQMAIJwCAACWAwAwAAAAAAAFEwAAzAQAIBQAANAEACCWAgAAzQQAIJcCAADPBAAgnAIAAD8AIAsTAACvAwAwFAAAtAMAMJYCAACwAwAwlwIAALEDADCYAgAAsgMAIJkCAACzAwAwmgIAALMDADCbAgAAswMAMJwCAACzAwAwnQIAALUDADCeAgAAtgMAMB0wAACkAwAgMgAApgMAIDUAAKcDACC-AQIAAAABxAFAAAAAAdABAQAAAAHaAUAAAAAB4wECAAAAAeQBAgAAAAHmAQEAAAAB5wEBAAAAAegBAQAAAAHpAQEAAAAB6gEAAJ4DACDrAQAAnwMAIOwBAQAAAAHtAQEAAAAB7gEBAAAAAe8BAACgAwAg8AEAAKEDACDxAQAAogMAIPIBAACjAwAg8wGAAAAAAfQBAQAAAAH1AQEAAAAB9gEBAAAAAfcBAQAAAAH4AQIAAAAB-QEgAAAAAQIAAABJACATAAC6AwAgAwAAAEkAIBMAALoDACAUAAC5AwAgAQwAAM4EADAiMAAAxgIAIDEAAMcCACAyAADIAgAgNQAAyQIAILsBAADEAgAwvAEAAEcAEL0BAADEAgAwvgECAAAAAcQBQACwAgAh0AEBAK4CACHaAUAAsAIAIeMBAgCtAgAh5AECAK0CACHlAQIAtgIAIeYBAQAAAAHnAQEAAAAB6AEBAK4CACHpAQEArgIAIeoBAAC5AgAg6wEAALkCACDsAQEArgIAIe0BAQCuAgAh7gEBAK4CACHvAQAAuQIAIPABAAC5AgAg8QEAALkCACDyAQAAuQIAIPMBAAC1AgAg9AEBAK4CACH1AQEArgIAIfYBAQCuAgAh9wEBAK4CACH4AQIAtgIAIfkBIADFAgAhAgAAAEkAIAwAALkDACACAAAAtwMAIAwAALgDACAeuwEAALYDADC8AQAAtwMAEL0BAAC2AwAwvgECAK0CACHEAUAAsAIAIdABAQCuAgAh2gFAALACACHjAQIArQIAIeQBAgCtAgAh5QECALYCACHmAQEArgIAIecBAQCuAgAh6AEBAK4CACHpAQEArgIAIeoBAAC5AgAg6wEAALkCACDsAQEArgIAIe0BAQCuAgAh7gEBAK4CACHvAQAAuQIAIPABAAC5AgAg8QEAALkCACDyAQAAuQIAIPMBAAC1AgAg9AEBAK4CACH1AQEArgIAIfYBAQCuAgAh9wEBAK4CACH4AQIAtgIAIfkBIADFAgAhHrsBAAC2AwAwvAEAALcDABC9AQAAtgMAML4BAgCtAgAhxAFAALACACHQAQEArgIAIdoBQACwAgAh4wECAK0CACHkAQIArQIAIeUBAgC2AgAh5gEBAK4CACHnAQEArgIAIegBAQCuAgAh6QEBAK4CACHqAQAAuQIAIOsBAAC5AgAg7AEBAK4CACHtAQEArgIAIe4BAQCuAgAh7wEAALkCACDwAQAAuQIAIPEBAAC5AgAg8gEAALkCACDzAQAAtQIAIPQBAQCuAgAh9QEBAK4CACH2AQEArgIAIfcBAQCuAgAh-AECALYCACH5ASAAxQIAIRq-AQIA6gIAIcQBQADpAgAh0AEBAOgCACHaAUAA6QIAIeMBAgDqAgAh5AECAOoCACHmAQEA6AIAIecBAQDoAgAh6AEBAOgCACHpAQEA6AIAIeoBAACHAwAg6wEAAIgDACDsAQEA6AIAIe0BAQDoAgAh7gEBAOgCACHvAQAAiQMAIPABAACKAwAg8QEAAIsDACDyAQAAjAMAIPMBgAAAAAH0AQEA6AIAIfUBAQDoAgAh9gEBAOgCACH3AQEA6AIAIfgBAgDrAgAh-QEgAI0DACEdMAAAjgMAIDIAAJADACA1AACRAwAgvgECAOoCACHEAUAA6QIAIdABAQDoAgAh2gFAAOkCACHjAQIA6gIAIeQBAgDqAgAh5gEBAOgCACHnAQEA6AIAIegBAQDoAgAh6QEBAOgCACHqAQAAhwMAIOsBAACIAwAg7AEBAOgCACHtAQEA6AIAIe4BAQDoAgAh7wEAAIkDACDwAQAAigMAIPEBAACLAwAg8gEAAIwDACDzAYAAAAAB9AEBAOgCACH1AQEA6AIAIfYBAQDoAgAh9wEBAOgCACH4AQIA6wIAIfkBIACNAwAhHTAAAKQDACAyAACmAwAgNQAApwMAIL4BAgAAAAHEAUAAAAAB0AEBAAAAAdoBQAAAAAHjAQIAAAAB5AECAAAAAeYBAQAAAAHnAQEAAAAB6AEBAAAAAekBAQAAAAHqAQAAngMAIOsBAACfAwAg7AEBAAAAAe0BAQAAAAHuAQEAAAAB7wEAAKADACDwAQAAoQMAIPEBAACiAwAg8gEAAKMDACDzAYAAAAAB9AEBAAAAAfUBAQAAAAH2AQEAAAAB9wEBAAAAAfgBAgAAAAH5ASAAAAABAxMAAMwEACCWAgAAzQQAIJwCAAA_ACAEEwAArwMAMJYCAACwAwAwmAIAALIDACCcAgAAswMAMAAAAAAABxMAAMUEACAUAADKBAAglgIAAMYEACCXAgAAyQQAIJoCAABBACCbAgAAQQAgnAIAADsAIAsTAADOAwAwFAAA0wMAMJYCAADPAwAwlwIAANADADCYAgAA0QMAIJkCAADSAwAwmgIAANIDADCbAgAA0gMAMJwCAADSAwAwnQIAANQDADCeAgAA1QMAMAsTAADFAwAwFAAAyQMAMJYCAADGAwAwlwIAAMcDADCYAgAAyAMAIJkCAACzAwAwmgIAALMDADCbAgAAswMAMJwCAACzAwAwnQIAAMoDADCeAgAAtgMAMB0xAAClAwAgMgAApgMAIDUAAKcDACC-AQIAAAABxAFAAAAAAdABAQAAAAHaAUAAAAAB4wECAAAAAeUBAgAAAAHmAQEAAAAB5wEBAAAAAegBAQAAAAHpAQEAAAAB6gEAAJ4DACDrAQAAnwMAIOwBAQAAAAHtAQEAAAAB7gEBAAAAAe8BAACgAwAg8AEAAKEDACDxAQAAogMAIPIBAACjAwAg8wGAAAAAAfQBAQAAAAH1AQEAAAAB9gEBAAAAAfcBAQAAAAH4AQIAAAAB-QEgAAAAAQIAAABJACATAADNAwAgAwAAAEkAIBMAAM0DACAUAADMAwAgAQwAAMgEADACAAAASQAgDAAAzAMAIAIAAAC3AwAgDAAAywMAIBq-AQIA6gIAIcQBQADpAgAh0AEBAOgCACHaAUAA6QIAIeMBAgDqAgAh5QECAOsCACHmAQEA6AIAIecBAQDoAgAh6AEBAOgCACHpAQEA6AIAIeoBAACHAwAg6wEAAIgDACDsAQEA6AIAIe0BAQDoAgAh7gEBAOgCACHvAQAAiQMAIPABAACKAwAg8QEAAIsDACDyAQAAjAMAIPMBgAAAAAH0AQEA6AIAIfUBAQDoAgAh9gEBAOgCACH3AQEA6AIAIfgBAgDrAgAh-QEgAI0DACEdMQAAjwMAIDIAAJADACA1AACRAwAgvgECAOoCACHEAUAA6QIAIdABAQDoAgAh2gFAAOkCACHjAQIA6gIAIeUBAgDrAgAh5gEBAOgCACHnAQEA6AIAIegBAQDoAgAh6QEBAOgCACHqAQAAhwMAIOsBAACIAwAg7AEBAOgCACHtAQEA6AIAIe4BAQDoAgAh7wEAAIkDACDwAQAAigMAIPEBAACLAwAg8gEAAIwDACDzAYAAAAAB9AEBAOgCACH1AQEA6AIAIfYBAQDoAgAh9wEBAOgCACH4AQIA6wIAIfkBIACNAwAhHTEAAKUDACAyAACmAwAgNQAApwMAIL4BAgAAAAHEAUAAAAAB0AEBAAAAAdoBQAAAAAHjAQIAAAAB5QECAAAAAeYBAQAAAAHnAQEAAAAB6AEBAAAAAekBAQAAAAHqAQAAngMAIOsBAACfAwAg7AEBAAAAAe0BAQAAAAHuAQEAAAAB7wEAAKADACDwAQAAoQMAIPEBAACiAwAg8gEAAKMDACDzAYAAAAAB9AEBAAAAAfUBAQAAAAH2AQEAAAAB9wEBAAAAAfgBAgAAAAH5ASAAAAABBjYAALwDACC-AQIAAAAB0AEBAAAAAeMBAgAAAAHnAQEAAAAB6QEBAAAAAQIAAABFACATAADZAwAgAwAAAEUAIBMAANkDACAUAADYAwAgAQwAAMcEADAMMAAAxgIAIDYAAMwCACC7AQAAywIAMLwBAABDABC9AQAAywIAML4BAgAAAAHQAQEArgIAIeMBAgCtAgAh5AECAK0CACHnAQEArgIAIekBAQCuAgAhiwIAAMoCACACAAAARQAgDAAA2AMAIAIAAADWAwAgDAAA1wMAIAm7AQAA1QMAMLwBAADWAwAQvQEAANUDADC-AQIArQIAIdABAQCuAgAh4wECAK0CACHkAQIArQIAIecBAQCuAgAh6QEBAK4CACEJuwEAANUDADC8AQAA1gMAEL0BAADVAwAwvgECAK0CACHQAQEArgIAIeMBAgCtAgAh5AECAK0CACHnAQEArgIAIekBAQCuAgAhBb4BAgDqAgAh0AEBAOgCACHjAQIA6gIAIecBAQDoAgAh6QEBAOgCACEGNgAArgMAIL4BAgDqAgAh0AEBAOgCACHjAQIA6gIAIecBAQDoAgAh6QEBAOgCACEGNgAAvAMAIL4BAgAAAAHQAQEAAAAB4wECAAAAAecBAQAAAAHpAQEAAAABAxMAAMUEACCWAgAAxgQAIJwCAAA7ACAEEwAAzgMAMJYCAADPAwAwmAIAANEDACCcAgAA0gMAMAQTAADFAwAwlgIAAMYDADCYAgAAyAMAIJwCAACzAwAwAAAAAAALEwAA9wMAMBQAAPwDADCWAgAA-AMAMJcCAAD5AwAwmAIAAPoDACCZAgAA-wMAMJoCAAD7AwAwmwIAAPsDADCcAgAA-wMAMJ0CAAD9AwAwngIAAP4DADALEwAA7gMAMBQAAPIDADCWAgAA7wMAMJcCAADwAwAwmAIAAPEDACCZAgAAswMAMJoCAACzAwAwmwIAALMDADCcAgAAswMAMJ0CAADzAwAwngIAALYDADALEwAA5QMAMBQAAOkDADCWAgAA5gMAMJcCAADnAwAwmAIAAOgDACCZAgAAlgMAMJoCAACWAwAwmwIAAJYDADCcAgAAlgMAMJ0CAADqAwAwngIAAJkDADADMwAAgAMAIOEBAgAAAAHjAQIAAAABAgAAAE8AIBMAAO0DACADAAAATwAgEwAA7QMAIBQAAOwDACABDAAAxAQAMAIAAABPACAMAADsAwAgAgAAAJoDACAMAADrAwAgAuEBAgDqAgAh4wECAOoCACEDMwAA_gIAIOEBAgDqAgAh4wECAOoCACEDMwAAgAMAIOEBAgAAAAHjAQIAAAABHTAAAKQDACAxAAClAwAgNQAApwMAIL4BAgAAAAHEAUAAAAAB0AEBAAAAAdoBQAAAAAHjAQIAAAAB5AECAAAAAeUBAgAAAAHmAQEAAAAB5wEBAAAAAegBAQAAAAHpAQEAAAAB6gEAAJ4DACDrAQAAnwMAIOwBAQAAAAHtAQEAAAAB7gEBAAAAAe8BAACgAwAg8AEAAKEDACDxAQAAogMAIPIBAACjAwAg8wGAAAAAAfQBAQAAAAH1AQEAAAAB9gEBAAAAAfcBAQAAAAH5ASAAAAABAgAAAEkAIBMAAPYDACADAAAASQAgEwAA9gMAIBQAAPUDACABDAAAwwQAMAIAAABJACAMAAD1AwAgAgAAALcDACAMAAD0AwAgGr4BAgDqAgAhxAFAAOkCACHQAQEA6AIAIdoBQADpAgAh4wECAOoCACHkAQIA6gIAIeUBAgDrAgAh5gEBAOgCACHnAQEA6AIAIegBAQDoAgAh6QEBAOgCACHqAQAAhwMAIOsBAACIAwAg7AEBAOgCACHtAQEA6AIAIe4BAQDoAgAh7wEAAIkDACDwAQAAigMAIPEBAACLAwAg8gEAAIwDACDzAYAAAAAB9AEBAOgCACH1AQEA6AIAIfYBAQDoAgAh9wEBAOgCACH5ASAAjQMAIR0wAACOAwAgMQAAjwMAIDUAAJEDACC-AQIA6gIAIcQBQADpAgAh0AEBAOgCACHaAUAA6QIAIeMBAgDqAgAh5AECAOoCACHlAQIA6wIAIeYBAQDoAgAh5wEBAOgCACHoAQEA6AIAIekBAQDoAgAh6gEAAIcDACDrAQAAiAMAIOwBAQDoAgAh7QEBAOgCACHuAQEA6AIAIe8BAACJAwAg8AEAAIoDACDxAQAAiwMAIPIBAACMAwAg8wGAAAAAAfQBAQDoAgAh9QEBAOgCACH2AQEA6AIAIfcBAQDoAgAh-QEgAI0DACEdMAAApAMAIDEAAKUDACA1AACnAwAgvgECAAAAAcQBQAAAAAHQAQEAAAAB2gFAAAAAAeMBAgAAAAHkAQIAAAAB5QECAAAAAeYBAQAAAAHnAQEAAAAB6AEBAAAAAekBAQAAAAHqAQAAngMAIOsBAACfAwAg7AEBAAAAAe0BAQAAAAHuAQEAAAAB7wEAAKADACDwAQAAoQMAIPEBAACiAwAg8gEAAKMDACDzAYAAAAAB9AEBAAAAAfUBAQAAAAH2AQEAAAAB9wEBAAAAAfkBIAAAAAEQNgAA3AMAIDcAANsDACC-AQIAAAABxAFAAAAAAdABAQAAAAHaAUAAAAAB4wECAAAAAeYBAQAAAAHnAQEAAAAB6AEBAAAAAfYBAQAAAAH3AQEAAAAB-QEgAAAAAf0BAQAAAAH-AQEAAAAB_wEBAAAAAQIAAAA_ACATAACCBAAgAwAAAD8AIBMAAIIEACAUAACBBAAgAQwAAMIEADAVLwAAyAIAIDYAAMwCACA3AADQAgAguwEAAM8CADC8AQAAPQAQvQEAAM8CADC-AQIAAAABxAFAALACACHQAQEArgIAIdoBQACwAgAh4wECAK0CACHmAQEArgIAIecBAQAAAAHoAQEArgIAIfYBAQCuAgAh9wEBAK4CACH5ASAAxQIAIf0BAQCuAgAh_gEBAK4CACH_AQEArgIAIYACAgC2AgAhAgAAAD8AIAwAAIEEACACAAAA_wMAIAwAAIAEACASuwEAAP4DADC8AQAA_wMAEL0BAAD-AwAwvgECAK0CACHEAUAAsAIAIdABAQCuAgAh2gFAALACACHjAQIArQIAIeYBAQCuAgAh5wEBAK4CACHoAQEArgIAIfYBAQCuAgAh9wEBAK4CACH5ASAAxQIAIf0BAQCuAgAh_gEBAK4CACH_AQEArgIAIYACAgC2AgAhErsBAAD-AwAwvAEAAP8DABC9AQAA_gMAML4BAgCtAgAhxAFAALACACHQAQEArgIAIdoBQACwAgAh4wECAK0CACHmAQEArgIAIecBAQCuAgAh6AEBAK4CACH2AQEArgIAIfcBAQCuAgAh-QEgAMUCACH9AQEArgIAIf4BAQCuAgAh_wEBAK4CACGAAgIAtgIAIQ6-AQIA6gIAIcQBQADpAgAh0AEBAOgCACHaAUAA6QIAIeMBAgDqAgAh5gEBAOgCACHnAQEA6AIAIegBAQDoAgAh9gEBAOgCACH3AQEA6AIAIfkBIACNAwAh_QEBAOgCACH-AQEA6AIAIf8BAQDoAgAhEDYAAMQDACA3AADDAwAgvgECAOoCACHEAUAA6QIAIdABAQDoAgAh2gFAAOkCACHjAQIA6gIAIeYBAQDoAgAh5wEBAOgCACHoAQEA6AIAIfYBAQDoAgAh9wEBAOgCACH5ASAAjQMAIf0BAQDoAgAh_gEBAOgCACH_AQEA6AIAIRA2AADcAwAgNwAA2wMAIL4BAgAAAAHEAUAAAAAB0AEBAAAAAdoBQAAAAAHjAQIAAAAB5gEBAAAAAecBAQAAAAHoAQEAAAAB9gEBAAAAAfcBAQAAAAH5ASAAAAAB_QEBAAAAAf4BAQAAAAH_AQEAAAABBBMAAPcDADCWAgAA-AMAMJgCAAD6AwAgnAIAAPsDADAEEwAA7gMAMJYCAADvAwAwmAIAAPEDACCcAgAAswMAMAQTAADlAwAwlgIAAOYDADCYAgAA6AMAIJwCAACWAwAwAAAABjAAAIsEACAxAACMBAAgMgAAigQAIDUAAIgEACDlAQAA4gIAIPgBAADiAgAgBTgAAIYEACA5AACHBAAgOgAAiAQAIIMCAADiAgAghAIAAOICACAELwAAigQAIDYAAIcEACA3AACNBAAggAIAAOICACACMAAAiwQAIDYAAIcEACAAAAAAAAABmQJAAAAAAQUTAAC9BAAgFAAAwAQAIJYCAAC-BAAglwIAAL8EACCcAgAAAQAgAxMAAL0EACCWAgAAvgQAIJwCAAABACAAAAAAAAGZAgAAAJECAgsTAACqBAAwFAAArwQAMJYCAACrBAAwlwIAAKwEADCYAgAArQQAIJkCAACuBAAwmgIAAK4EADCbAgAArgQAMJwCAACuBAAwnQIAALAEADCeAgAAsQQAMAsTAACeBAAwFAAAowQAMJYCAACfBAAwlwIAAKAEADCYAgAAoQQAIJkCAACiBAAwmgIAAKIEADCbAgAAogQAMJwCAACiBAAwnQIAAKQEADCeAgAApQQAMAa-AQIAAAABwAEBAAAAAcEBAQAAAAHCAQEAAAABwwEBAAAAAcQBQAAAAAECAAAACQAgEwAAqQQAIAMAAAAJACATAACpBAAgFAAAqAQAIAEMAAC8BAAwCwMAAN8CACC7AQAA3gIAMLwBAAAHABC9AQAA3gIAML4BAgAAAAG_AQIAtgIAIcABAQCuAgAhwQEBAK4CACHCAQEArgIAIcMBAQCuAgAhxAFAALACACECAAAACQAgDAAAqAQAIAIAAACmBAAgDAAApwQAIAq7AQAApQQAMLwBAACmBAAQvQEAAKUEADC-AQIArQIAIb8BAgC2AgAhwAEBAK4CACHBAQEArgIAIcIBAQCuAgAhwwEBAK4CACHEAUAAsAIAIQq7AQAApQQAMLwBAACmBAAQvQEAAKUEADC-AQIArQIAIb8BAgC2AgAhwAEBAK4CACHBAQEArgIAIcIBAQCuAgAhwwEBAK4CACHEAUAAsAIAIQa-AQIA6gIAIcABAQDoAgAhwQEBAOgCACHCAQEA6AIAIcMBAQDoAgAhxAFAAOkCACEGvgECAOoCACHAAQEA6AIAIcEBAQDoAgAhwgEBAOgCACHDAQEA6AIAIcQBQADpAgAhBr4BAgAAAAHAAQEAAAABwQEBAAAAAcIBAQAAAAHDAQEAAAABxAFAAAAAAQa-AQIAAAABxAFAAAAAAdcBAQAAAAGMAgEAAAABjQJAAAAAAY4CQAAAAAECAAAABQAgEwAAtQQAIAMAAAAFACATAAC1BAAgFAAAtAQAIAEMAAC7BAAwCwMAAOECACC7AQAA4AIAMLwBAAADABC9AQAA4AIAML4BAgAAAAG_AQIArQIAIcQBQACwAgAh1wEBAK4CACGMAgEAAAABjQJAALACACGOAkAA2wIAIQIAAAAFACAMAAC0BAAgAgAAALIEACAMAACzBAAgCrsBAACxBAAwvAEAALIEABC9AQAAsQQAML4BAgCtAgAhvwECAK0CACHEAUAAsAIAIdcBAQCuAgAhjAIBAK4CACGNAkAAsAIAIY4CQADbAgAhCrsBAACxBAAwvAEAALIEABC9AQAAsQQAML4BAgCtAgAhvwECAK0CACHEAUAAsAIAIdcBAQCuAgAhjAIBAK4CACGNAkAAsAIAIY4CQADbAgAhBr4BAgDqAgAhxAFAAOkCACHXAQEA6AIAIYwCAQDoAgAhjQJAAOkCACGOAkAAkwQAIQa-AQIA6gIAIcQBQADpAgAh1wEBAOgCACGMAgEA6AIAIY0CQADpAgAhjgJAAJMEACEGvgECAAAAAcQBQAAAAAHXAQEAAAABjAIBAAAAAY0CQAAAAAGOAkAAAAABBBMAAKoEADCWAgAAqwQAMJgCAACtBAAgnAIAAK4EADAEEwAAngQAMJYCAACfBAAwmAIAAKEEACCcAgAAogQAMAAAAwQAALgEACAFAAC5BAAgkwIAAOICACAGvgECAAAAAcQBQAAAAAHXAQEAAAABjAIBAAAAAY0CQAAAAAGOAkAAAAABBr4BAgAAAAHAAQEAAAABwQEBAAAAAcIBAQAAAAHDAQEAAAABxAFAAAAAAQoFAAC3BAAgvgECAAAAAcQBQAAAAAHQAQEAAAAB0gEBAAAAAdoBQAAAAAGPAgEAAAABkQIAAACRAgKSAiAAAAABkwJAAAAAAQIAAAABACATAAC9BAAgAwAAAAsAIBMAAL0EACAUAADBBAAgDAAAAAsAIAUAAJ0EACAMAADBBAAgvgECAOoCACHEAUAA6QIAIdABAQDoAgAh0gEBAOgCACHaAUAA6QIAIY8CAQDoAgAhkQIAAJsEkQIikgIgAI0DACGTAkAAkwQAIQoFAACdBAAgvgECAOoCACHEAUAA6QIAIdABAQDoAgAh0gEBAOgCACHaAUAA6QIAIY8CAQDoAgAhkQIAAJsEkQIikgIgAI0DACGTAkAAkwQAIQ6-AQIAAAABxAFAAAAAAdABAQAAAAHaAUAAAAAB4wECAAAAAeYBAQAAAAHnAQEAAAAB6AEBAAAAAfYBAQAAAAH3AQEAAAAB-QEgAAAAAf0BAQAAAAH-AQEAAAAB_wEBAAAAARq-AQIAAAABxAFAAAAAAdABAQAAAAHaAUAAAAAB4wECAAAAAeQBAgAAAAHlAQIAAAAB5gEBAAAAAecBAQAAAAHoAQEAAAAB6QEBAAAAAeoBAACeAwAg6wEAAJ8DACDsAQEAAAAB7QEBAAAAAe4BAQAAAAHvAQAAoAMAIPABAAChAwAg8QEAAKIDACDyAQAAowMAIPMBgAAAAAH0AQEAAAAB9QEBAAAAAfYBAQAAAAH3AQEAAAAB-QEgAAAAAQLhAQIAAAAB4wECAAAAAQs5AACEBAAgOgAAhQQAIL4BAgAAAAHEAUAAAAAB2AEBAAAAAYECAQAAAAGCAgIAAAABgwICAAAAAYQCAgAAAAGFAgEAAAABhgIBAAAAAQIAAAA7ACATAADFBAAgBb4BAgAAAAHQAQEAAAAB4wECAAAAAecBAQAAAAHpAQEAAAABGr4BAgAAAAHEAUAAAAAB0AEBAAAAAdoBQAAAAAHjAQIAAAAB5QECAAAAAeYBAQAAAAHnAQEAAAAB6AEBAAAAAekBAQAAAAHqAQAAngMAIOsBAACfAwAg7AEBAAAAAe0BAQAAAAHuAQEAAAAB7wEAAKADACDwAQAAoQMAIPEBAACiAwAg8gEAAKMDACDzAYAAAAAB9AEBAAAAAfUBAQAAAAH2AQEAAAAB9wEBAAAAAfgBAgAAAAH5ASAAAAABAwAAAEEAIBMAAMUEACAUAADLBAAgDQAAAEEAIAwAAMsEACA5AADjAwAgOgAA5AMAIL4BAgDqAgAhxAFAAOkCACHYAQEA6AIAIYECAQDoAgAhggICAOoCACGDAgIA6wIAIYQCAgDrAgAhhQIBAOgCACGGAgEA6AIAIQs5AADjAwAgOgAA5AMAIL4BAgDqAgAhxAFAAOkCACHYAQEA6AIAIYECAQDoAgAhggICAOoCACGDAgIA6wIAIYQCAgDrAgAhhQIBAOgCACGGAgEA6AIAIREvAADaAwAgNgAA3AMAIL4BAgAAAAHEAUAAAAAB0AEBAAAAAdoBQAAAAAHjAQIAAAAB5gEBAAAAAecBAQAAAAHoAQEAAAAB9gEBAAAAAfcBAQAAAAH5ASAAAAAB_QEBAAAAAf4BAQAAAAH_AQEAAAABgAICAAAAAQIAAAA_ACATAADMBAAgGr4BAgAAAAHEAUAAAAAB0AEBAAAAAdoBQAAAAAHjAQIAAAAB5AECAAAAAeYBAQAAAAHnAQEAAAAB6AEBAAAAAekBAQAAAAHqAQAAngMAIOsBAACfAwAg7AEBAAAAAe0BAQAAAAHuAQEAAAAB7wEAAKADACDwAQAAoQMAIPEBAACiAwAg8gEAAKMDACDzAYAAAAAB9AEBAAAAAfUBAQAAAAH2AQEAAAAB9wEBAAAAAfgBAgAAAAH5ASAAAAABAwAAAD0AIBMAAMwEACAUAADRBAAgEwAAAD0AIAwAANEEACAvAADCAwAgNgAAxAMAIL4BAgDqAgAhxAFAAOkCACHQAQEA6AIAIdoBQADpAgAh4wECAOoCACHmAQEA6AIAIecBAQDoAgAh6AEBAOgCACH2AQEA6AIAIfcBAQDoAgAh-QEgAI0DACH9AQEA6AIAIf4BAQDoAgAh_wEBAOgCACGAAgIA6wIAIREvAADCAwAgNgAAxAMAIL4BAgDqAgAhxAFAAOkCACHQAQEA6AIAIdoBQADpAgAh4wECAOoCACHmAQEA6AIAIecBAQDoAgAh6AEBAOgCACH2AQEA6AIAIfcBAQDoAgAh-QEgAI0DACH9AQEA6AIAIf4BAQDoAgAh_wEBAOgCACGAAgIA6wIAIQs4AACDBAAgOgAAhQQAIL4BAgAAAAHEAUAAAAAB2AEBAAAAAYECAQAAAAGCAgIAAAABgwICAAAAAYQCAgAAAAGFAgEAAAABhgIBAAAAAQIAAAA7ACATAADSBAAgBzAAALsDACC-AQIAAAAB0AEBAAAAAeMBAgAAAAHkAQIAAAAB5wEBAAAAAekBAQAAAAECAAAARQAgEwAA1AQAIBEvAADaAwAgNwAA2wMAIL4BAgAAAAHEAUAAAAAB0AEBAAAAAdoBQAAAAAHjAQIAAAAB5gEBAAAAAecBAQAAAAHoAQEAAAAB9gEBAAAAAfcBAQAAAAH5ASAAAAAB_QEBAAAAAf4BAQAAAAH_AQEAAAABgAICAAAAAQIAAAA_ACATAADWBAAgAuIBAgAAAAHjAQIAAAABAwAAAEEAIBMAANIEACAUAADbBAAgDQAAAEEAIAwAANsEACA4AADiAwAgOgAA5AMAIL4BAgDqAgAhxAFAAOkCACHYAQEA6AIAIYECAQDoAgAhggICAOoCACGDAgIA6wIAIYQCAgDrAgAhhQIBAOgCACGGAgEA6AIAIQs4AADiAwAgOgAA5AMAIL4BAgDqAgAhxAFAAOkCACHYAQEA6AIAIYECAQDoAgAhggICAOoCACGDAgIA6wIAIYQCAgDrAgAhhQIBAOgCACGGAgEA6AIAIQMAAABDACATAADUBAAgFAAA3gQAIAkAAABDACAMAADeBAAgMAAArQMAIL4BAgDqAgAh0AEBAOgCACHjAQIA6gIAIeQBAgDqAgAh5wEBAOgCACHpAQEA6AIAIQcwAACtAwAgvgECAOoCACHQAQEA6AIAIeMBAgDqAgAh5AECAOoCACHnAQEA6AIAIekBAQDoAgAhAwAAAD0AIBMAANYEACAUAADhBAAgEwAAAD0AIAwAAOEEACAvAADCAwAgNwAAwwMAIL4BAgDqAgAhxAFAAOkCACHQAQEA6AIAIdoBQADpAgAh4wECAOoCACHmAQEA6AIAIecBAQDoAgAh6AEBAOgCACH2AQEA6AIAIfcBAQDoAgAh-QEgAI0DACH9AQEA6AIAIf4BAQDoAgAh_wEBAOgCACGAAgIA6wIAIREvAADCAwAgNwAAwwMAIL4BAgDqAgAhxAFAAOkCACHQAQEA6AIAIdoBQADpAgAh4wECAOoCACHmAQEA6AIAIecBAQDoAgAh6AEBAOgCACH2AQEA6AIAIfcBAQDoAgAh-QEgAI0DACH9AQEA6AIAIf4BAQDoAgAh_wEBAOgCACGAAgIA6wIAIQs4AACDBAAgOQAAhAQAIL4BAgAAAAHEAUAAAAAB2AEBAAAAAYECAQAAAAGCAgIAAAABgwICAAAAAYQCAgAAAAGFAgEAAAABhgIBAAAAAQIAAAA7ACATAADiBAAgHjAAAKQDACAxAAClAwAgMgAApgMAIL4BAgAAAAHEAUAAAAAB0AEBAAAAAdoBQAAAAAHjAQIAAAAB5AECAAAAAeUBAgAAAAHmAQEAAAAB5wEBAAAAAegBAQAAAAHpAQEAAAAB6gEAAJ4DACDrAQAAnwMAIOwBAQAAAAHtAQEAAAAB7gEBAAAAAe8BAACgAwAg8AEAAKEDACDxAQAAogMAIPIBAACjAwAg8wGAAAAAAfQBAQAAAAH1AQEAAAAB9gEBAAAAAfcBAQAAAAH4AQIAAAAB-QEgAAAAAQIAAABJACATAADkBAAgAwAAAEEAIBMAAOIEACAUAADoBAAgDQAAAEEAIAwAAOgEACA4AADiAwAgOQAA4wMAIL4BAgDqAgAhxAFAAOkCACHYAQEA6AIAIYECAQDoAgAhggICAOoCACGDAgIA6wIAIYQCAgDrAgAhhQIBAOgCACGGAgEA6AIAIQs4AADiAwAgOQAA4wMAIL4BAgDqAgAhxAFAAOkCACHYAQEA6AIAIYECAQDoAgAhggICAOoCACGDAgIA6wIAIYQCAgDrAgAhhQIBAOgCACGGAgEA6AIAIQMAAABHACATAADkBAAgFAAA6wQAICAAAABHACAMAADrBAAgMAAAjgMAIDEAAI8DACAyAACQAwAgvgECAOoCACHEAUAA6QIAIdABAQDoAgAh2gFAAOkCACHjAQIA6gIAIeQBAgDqAgAh5QECAOsCACHmAQEA6AIAIecBAQDoAgAh6AEBAOgCACHpAQEA6AIAIeoBAACHAwAg6wEAAIgDACDsAQEA6AIAIe0BAQDoAgAh7gEBAOgCACHvAQAAiQMAIPABAACKAwAg8QEAAIsDACDyAQAAjAMAIPMBgAAAAAH0AQEA6AIAIfUBAQDoAgAh9gEBAOgCACH3AQEA6AIAIfgBAgDrAgAh-QEgAI0DACEeMAAAjgMAIDEAAI8DACAyAACQAwAgvgECAOoCACHEAUAA6QIAIdABAQDoAgAh2gFAAOkCACHjAQIA6gIAIeQBAgDqAgAh5QECAOsCACHmAQEA6AIAIecBAQDoAgAh6AEBAOgCACHpAQEA6AIAIeoBAACHAwAg6wEAAIgDACDsAQEA6AIAIe0BAQDoAgAh7gEBAOgCACHvAQAAiQMAIPABAACKAwAg8QEAAIsDACDyAQAAjAMAIPMBgAAAAAH0AQEA6AIAIfUBAQDoAgAh9gEBAOgCACH3AQEA6AIAIfgBAgDrAgAh-QEgAI0DACEKBAAAtgQAIL4BAgAAAAHEAUAAAAAB0AEBAAAAAdIBAQAAAAHaAUAAAAABjwIBAAAAAZECAAAAkQICkgIgAAAAAZMCQAAAAAECAAAAAQAgEwAA7AQAIAMAAAALACATAADsBAAgFAAA8AQAIAwAAAALACAEAACcBAAgDAAA8AQAIL4BAgDqAgAhxAFAAOkCACHQAQEA6AIAIdIBAQDoAgAh2gFAAOkCACGPAgEA6AIAIZECAACbBJECIpICIACNAwAhkwJAAJMEACEKBAAAnAQAIL4BAgDqAgAhxAFAAOkCACHQAQEA6AIAIdIBAQDoAgAh2gFAAOkCACGPAgEA6AIAIZECAACbBJECIpICIACNAwAhkwJAAJMEACEDBAYCBQoDBgAEAQMAAQEDDAECBA0ABQ4AAAAABQYACRkAChoACxsADBwADQAAAAAABQYACRkAChoACxsADBwADQEDAAEBAwABBQYAEhkAExoAFBsAFRwAFgAAAAAABQYAEhkAExoAFBsAFRwAFgQGACA4QBk5Vhs6VxwEBgAfL0IYNlMbN0YaAwYAHjAAGTZKGwUGAB0wABkxSxoyTBg1UBwCMwAbNAAYATVRAAE2UgACNlUAN1QAAzhYADlZADpaAAAABQYAJBkAJRoAJhsAJxwAKAAAAAAABQYAJBkAJRoAJhsAJxwAKAEvexgBL4EBGAUGAC0ZAC4aAC8bADAcADEAAAAAAAUGAC0ZAC4aAC8bADAcADEBMAAZATAAGQUGADYZADcaADgbADkcADoAAAAAAAUGADYZADcaADgbADkcADoDMAAZMakBGjKqARgDMAAZMbABGjKxARgFBgA_GQBAGgBBGwBCHABDAAAAAAAFBgA_GQBAGgBBGwBCHABDAjMAGzQAGAIzABs0ABgFBgBIGQBJGgBKGwBLHABMAAAAAAAFBgBIGQBJGgBKGwBLHABMAAAABQYAUhkAUxoAVBsAVRwAVgAAAAAABQYAUhkAUxoAVBsAVRwAVgAAAAUGAFwZAF0aAF4bAF8cAGAAAAAAAAUGAFwZAF0aAF4bAF8cAGABA4sCAQEDkQIBBQYAZRkAZhoAZxsAaBwAaQAAAAAABQYAZRkAZhoAZxsAaBwAaQcCAQgPAQkRAQoSAQsTAQ0VAQ4XBQ8YBhAaAREcBRIdBxUeARYfARcgBR0jCB4kDh8lAiAmAiEnAiIoAiMpAiQrAiUtBSYuDycwAigyBSkzECo0Ais1Aiw2BS05ES46Fzs8GDxbGD1dGD5eGD9fGEBhGEFjBUJkIUNmGERoBUVpIkZqGEdrGEhsBUlvI0pwKUtxGUxyGU1zGU50GU91GVB3GVF5BVJ6KlN9GVR_BVWAAStWggEZV4MBGViEAQVZhwEsWogBMluJARpcigEaXYsBGl6MARpfjQEaYI8BGmGRAQVikgEzY5QBGmSWAQVllwE0ZpgBGmeZARpomgEFaZ0BNWqeATtrnwEbbKABG22hARtuogEbb6MBG3ClARtxpwEFcqgBPHOsARt0rgEFda8BPXayARt3swEbeLQBBXm3AT56uAFEe7kBHHy6ARx9uwEcfrwBHH-9ARyAAb8BHIEBwQEFggHCAUWDAcQBHIQBxgEFhQHHAUaGAcgBHIcByQEciAHKAQWJAc0BR4oBzgFNiwHQAU6MAdEBTo0B1AFOjgHVAU6PAdYBTpAB2AFOkQHaAQWSAdsBT5MB3QFOlAHfAQWVAeABUJYB4QFOlwHiAU6YAeMBBZkB5gFRmgHnAVebAekBWJwB6gFYnQHtAVieAe4BWJ8B7wFYoAHxAVihAfMBBaIB9AFZowH2AVikAfgBBaUB-QFapgH6AVinAfsBWKgB_AEFqQH_AVuqAYACYasBgQIDrAGCAgOtAYMCA64BhAIDrwGFAgOwAYcCA7EBiQIFsgGKAmKzAY0CA7QBjwIFtQGQAmO2AZICA7cBkwIDuAGUAgW5AZcCZLoBmAJq" }; async function decodeBase64AsWasm(wasmBase64) { const { Buffer: Buffer2 } = await import("node:buffer"); const wasmArray = Buffer2.from(wasmBase64, "base64"); return new WebAssembly.Module(wasmArray); } __name(decodeBase64AsWasm, "decodeBase64AsWasm"); config2.compilerWasm = { getRuntime: /* @__PURE__ */ __name(async () => await import("./query_compiler_fast_bg.postgresql-RWS5SSGB.js"), "getRuntime"), getQueryCompilerWasmModule: /* @__PURE__ */ __name(async () => { const { wasm } = await import("./query_compiler_fast_bg.postgresql.wasm-base64-5YP3ZLAU.js"); return await decodeBase64AsWasm(wasm); }, "getQueryCompilerWasmModule"), importName: "./query_compiler_fast_bg.js" }; function getPrismaClientClass() { return runtime.getPrismaClient(config2); } __name(getPrismaClientClass, "getPrismaClientClass"); // dist/generated/prisma/internal/prismaNamespace.js var prismaNamespace_exports = {}; __export(prismaNamespace_exports, { AdminUserScalarFieldEnum: () => AdminUserScalarFieldEnum, AnyNull: () => AnyNull3, AuditLogScalarFieldEnum: () => AuditLogScalarFieldEnum, CategoryScalarFieldEnum: () => CategoryScalarFieldEnum, ContactMessageScalarFieldEnum: () => ContactMessageScalarFieldEnum, DbNull: () => DbNull3, Decimal: () => Decimal3, JsonNull: () => JsonNull3, JsonNullValueFilter: () => JsonNullValueFilter, JsonNullValueInput: () => JsonNullValueInput, MediaScalarFieldEnum: () => MediaScalarFieldEnum, ModelName: () => ModelName, NullTypes: () => NullTypes3, NullsOrder: () => NullsOrder, PrismaClientInitializationError: () => PrismaClientInitializationError3, PrismaClientKnownRequestError: () => PrismaClientKnownRequestError3, PrismaClientRustPanicError: () => PrismaClientRustPanicError3, PrismaClientUnknownRequestError: () => PrismaClientUnknownRequestError3, PrismaClientValidationError: () => PrismaClientValidationError3, ProductGroupScalarFieldEnum: () => ProductGroupScalarFieldEnum, ProductImageScalarFieldEnum: () => ProductImageScalarFieldEnum, ProductScalarFieldEnum: () => ProductScalarFieldEnum, QueryMode: () => QueryMode, RefreshTokenScalarFieldEnum: () => RefreshTokenScalarFieldEnum, SiteSectionScalarFieldEnum: () => SiteSectionScalarFieldEnum, SortOrder: () => SortOrder, Sql: () => Sql3, TransactionIsolationLevel: () => TransactionIsolationLevel, defineExtension: () => defineExtension, empty: () => empty3, getExtensionContext: () => getExtensionContext, join: () => join3, prismaVersion: () => prismaVersion, raw: () => raw3, sql: () => sql }); var runtime2 = __toESM(require_client(), 1); var PrismaClientKnownRequestError3 = runtime2.PrismaClientKnownRequestError; var PrismaClientUnknownRequestError3 = runtime2.PrismaClientUnknownRequestError; var PrismaClientRustPanicError3 = runtime2.PrismaClientRustPanicError; var PrismaClientInitializationError3 = runtime2.PrismaClientInitializationError; var PrismaClientValidationError3 = runtime2.PrismaClientValidationError; var sql = runtime2.sqltag; var empty3 = runtime2.empty; var join3 = runtime2.join; var raw3 = runtime2.raw; var Sql3 = runtime2.Sql; var Decimal3 = runtime2.Decimal; var getExtensionContext = runtime2.Extensions.getExtensionContext; var prismaVersion = { client: "7.10.1", engine: "d1b3f377ca835d73fd50954a5e22128b9ebdd6b8" }; var NullTypes3 = { DbNull: runtime2.NullTypes.DbNull, JsonNull: runtime2.NullTypes.JsonNull, AnyNull: runtime2.NullTypes.AnyNull }; var DbNull3 = runtime2.DbNull; var JsonNull3 = runtime2.JsonNull; var AnyNull3 = runtime2.AnyNull; var ModelName = { AdminUser: "AdminUser", RefreshToken: "RefreshToken", Media: "Media", Category: "Category", ProductGroup: "ProductGroup", Product: "Product", ProductImage: "ProductImage", SiteSection: "SiteSection", ContactMessage: "ContactMessage", AuditLog: "AuditLog" }; var TransactionIsolationLevel = runtime2.makeStrictEnum({ ReadUncommitted: "ReadUncommitted", ReadCommitted: "ReadCommitted", RepeatableRead: "RepeatableRead", Serializable: "Serializable" }); var AdminUserScalarFieldEnum = { id: "id", phone: "phone", name: "name", passwordHash: "passwordHash", role: "role", isActive: "isActive", lastLoginAt: "lastLoginAt", createdAt: "createdAt", updatedAt: "updatedAt" }; var RefreshTokenScalarFieldEnum = { id: "id", userId: "userId", tokenHash: "tokenHash", expiresAt: "expiresAt", revokedAt: "revokedAt", userAgent: "userAgent", createdAt: "createdAt" }; var MediaScalarFieldEnum = { id: "id", key: "key", mime: "mime", size: "size", width: "width", height: "height", alt: "alt", originalName: "originalName", createdAt: "createdAt" }; var CategoryScalarFieldEnum = { id: "id", slug: "slug", code: "code", name: "name", nameEn: "nameEn", shortDesc: "shortDesc", fullDesc: "fullDesc", icon: "icon", coverImageId: "coverImageId", sortOrder: "sortOrder", isPublished: "isPublished", seoTitle: "seoTitle", seoDescription: "seoDescription", createdAt: "createdAt", updatedAt: "updatedAt" }; var ProductGroupScalarFieldEnum = { id: "id", categoryId: "categoryId", slug: "slug", name: "name", desc: "desc", sortOrder: "sortOrder" }; var ProductScalarFieldEnum = { id: "id", categoryId: "categoryId", groupId: "groupId", code: "code", slug: "slug", name: "name", nameEn: "nameEn", desc: "desc", specs: "specs", variants: "variants", details: "details", brand: "brand", origin: "origin", sizes: "sizes", standards: "standards", features: "features", applications: "applications", attributes: "attributes", packaging: "packaging", minOrder: "minOrder", seoTitle: "seoTitle", seoDescription: "seoDescription", imageId: "imageId", sortOrder: "sortOrder", isPublished: "isPublished", createdAt: "createdAt", updatedAt: "updatedAt" }; var ProductImageScalarFieldEnum = { productId: "productId", mediaId: "mediaId", sortOrder: "sortOrder" }; var SiteSectionScalarFieldEnum = { key: "key", data: "data", updatedById: "updatedById", updatedAt: "updatedAt" }; var ContactMessageScalarFieldEnum = { id: "id", name: "name", org: "org", phone: "phone", message: "message", status: "status", ip: "ip", userAgent: "userAgent", createdAt: "createdAt" }; var AuditLogScalarFieldEnum = { id: "id", userId: "userId", action: "action", entity: "entity", entityId: "entityId", summary: "summary", createdAt: "createdAt" }; var SortOrder = { asc: "asc", desc: "desc" }; var JsonNullValueInput = { JsonNull: JsonNull3 }; var QueryMode = { default: "default", insensitive: "insensitive" }; var NullsOrder = { first: "first", last: "last" }; var JsonNullValueFilter = { DbNull: DbNull3, JsonNull: JsonNull3, AnyNull: AnyNull3 }; var defineExtension = runtime2.Extensions.defineExtension; // dist/generated/prisma/client.js globalThis["__dirname"] = path.dirname(fileURLToPath(import.meta.url)); var PrismaClient = getPrismaClientClass(); // dist/prisma/prisma.service.js var __decorate = function(decorators, target, key, desc) { var c5 = arguments.length, r5 = c5 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d5; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r5 = Reflect.decorate(decorators, target, key, desc); else for (var i5 = decorators.length - 1; i5 >= 0; i5--) if (d5 = decorators[i5]) r5 = (c5 < 3 ? d5(r5) : c5 > 3 ? d5(target, key, r5) : d5(target, key)) || r5; return c5 > 3 && r5 && Object.defineProperty(target, key, r5), r5; }; var __metadata = function(k5, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k5, v); }; var createPrismaClient = /* @__PURE__ */ __name(() => new PrismaClient({ adapter: new PrismaPgAdapterFactory({ connectionString: env.DATABASE_URL }) }), "createPrismaClient"); var PrismaService = class PrismaService2 extends PrismaClient { static { __name(this, "PrismaService"); } constructor() { super({ adapter: new PrismaPgAdapterFactory({ connectionString: env.DATABASE_URL }) }); } async onModuleDestroy() { await this.$disconnect(); } }; PrismaService = __decorate([ Injectable(), __metadata("design:paramtypes", []) ], PrismaService); var PrismaModule = class PrismaModule2 { static { __name(this, "PrismaModule"); } }; PrismaModule = __decorate([ Global(), Module({ providers: [PrismaService], exports: [PrismaService] }) ], PrismaModule); // dist/auth/auth.service.js init_common(); import { createHash, randomBytes } from "node:crypto"; // ../../node_modules/.pnpm/@nestjs+jwt@12.0.3_@nestjs+_facab28c43df169ee1a851fa7198ecfe/node_modules/@nestjs/jwt/dist/index.js var import_jsonwebtoken2 = __toESM(require_jsonwebtoken(), 1); // ../../node_modules/.pnpm/@nestjs+jwt@12.0.3_@nestjs+_facab28c43df169ee1a851fa7198ecfe/node_modules/@nestjs/jwt/dist/interfaces/jwt-module-options.interface.js var JwtSecretRequestType; (function(JwtSecretRequestType2) { JwtSecretRequestType2[JwtSecretRequestType2["SIGN"] = 0] = "SIGN"; JwtSecretRequestType2[JwtSecretRequestType2["VERIFY"] = 1] = "VERIFY"; })(JwtSecretRequestType || (JwtSecretRequestType = {})); // ../../node_modules/.pnpm/@nestjs+jwt@12.0.3_@nestjs+_facab28c43df169ee1a851fa7198ecfe/node_modules/@nestjs/jwt/dist/jwt.errors.js var WrongSecretProviderError = class extends Error { static { __name(this, "WrongSecretProviderError"); } }; // ../../node_modules/.pnpm/@nestjs+jwt@12.0.3_@nestjs+_facab28c43df169ee1a851fa7198ecfe/node_modules/@nestjs/jwt/dist/jwt.module.js init_common(); // ../../node_modules/.pnpm/@nestjs+jwt@12.0.3_@nestjs+_facab28c43df169ee1a851fa7198ecfe/node_modules/@nestjs/jwt/dist/jwt.constants.js var JWT_MODULE_OPTIONS = "JWT_MODULE_OPTIONS"; // ../../node_modules/.pnpm/@nestjs+jwt@12.0.3_@nestjs+_facab28c43df169ee1a851fa7198ecfe/node_modules/@nestjs/jwt/dist/jwt.providers.js function createJwtProvider(options) { return [{ provide: JWT_MODULE_OPTIONS, useValue: options || {} }]; } __name(createJwtProvider, "createJwtProvider"); // ../../node_modules/.pnpm/@nestjs+jwt@12.0.3_@nestjs+_facab28c43df169ee1a851fa7198ecfe/node_modules/@nestjs/jwt/dist/jwt.service.js init_common(); var import_jsonwebtoken = __toESM(require_jsonwebtoken(), 1); var __decorate2 = function(decorators, target, key, desc) { var c5 = arguments.length, r5 = c5 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d5; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r5 = Reflect.decorate(decorators, target, key, desc); else for (var i5 = decorators.length - 1; i5 >= 0; i5--) if (d5 = decorators[i5]) r5 = (c5 < 3 ? d5(r5) : c5 > 3 ? d5(target, key, r5) : d5(target, key)) || r5; return c5 > 3 && r5 && Object.defineProperty(target, key, r5), r5; }; var __metadata2 = function(k5, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k5, v); }; var __param = function(paramIndex, decorator) { return function(target, key) { decorator(target, key, paramIndex); }; }; var JwtService = class JwtService2 { static { __name(this, "JwtService"); } constructor(options = {}) { this.options = options; this.logger = new Logger("JwtService"); } sign(payload, options) { const signOptions = this.mergeJwtOptions({ ...options }, "signOptions"); const secret = this.getSecretKey(payload, options, "privateKey", JwtSecretRequestType.SIGN); if (secret instanceof Promise) { secret.catch(() => { }); this.logger.warn('For async version of "secretOrKeyProvider", please use "signAsync".'); throw new WrongSecretProviderError(); } const allowedSignOptKeys = ["secret", "privateKey"]; const signOptKeys = Object.keys(signOptions); if (typeof payload === "string" && signOptKeys.some((k5) => !allowedSignOptKeys.includes(k5))) { throw new Error("Payload as string is not allowed with the following sign options: " + signOptKeys.join(", ")); } return import_jsonwebtoken.default.sign(payload, secret, signOptions); } signAsync(payload, options) { const signOptions = this.mergeJwtOptions({ ...options }, "signOptions"); const secret = this.getSecretKey(payload, options, "privateKey", JwtSecretRequestType.SIGN); const allowedSignOptKeys = ["secret", "privateKey"]; const signOptKeys = Object.keys(signOptions); if (typeof payload === "string" && signOptKeys.some((k5) => !allowedSignOptKeys.includes(k5))) { if (secret instanceof Promise) { secret.catch(() => { }); } throw new Error("Payload as string is not allowed with the following sign options: " + signOptKeys.join(", ")); } return new Promise((resolve, reject) => Promise.resolve().then(() => secret).then((scrt) => { import_jsonwebtoken.default.sign(payload, scrt, signOptions, (err, encoded) => err ? reject(err) : resolve(encoded)); }).catch(reject)); } verify(token, options) { const verifyOptions = this.mergeJwtOptions({ ...options }, "verifyOptions"); const secret = this.getSecretKey(token, options, "publicKey", JwtSecretRequestType.VERIFY); if (secret instanceof Promise) { secret.catch(() => { }); this.logger.warn('For async version of "secretOrKeyProvider", please use "verifyAsync".'); throw new WrongSecretProviderError(); } return import_jsonwebtoken.default.verify(token, secret, verifyOptions); } verifyAsync(token, options) { const verifyOptions = this.mergeJwtOptions({ ...options }, "verifyOptions"); const secret = this.getSecretKey(token, options, "publicKey", JwtSecretRequestType.VERIFY); return new Promise((resolve, reject) => Promise.resolve().then(() => secret).then((scrt) => { import_jsonwebtoken.default.verify(token, scrt, verifyOptions, (err, decoded) => err ? reject(err) : resolve(decoded)); }).catch(reject)); } decode(token, options) { return import_jsonwebtoken.default.decode(token, options); } mergeJwtOptions(options, key) { delete options.secret; if (key === "signOptions") { delete options.privateKey; } else { delete options.publicKey; } return options ? { ...this.options[key] || {}, ...options } : this.options[key]; } overrideSecretFromOptions(secret) { if (this.options.secretOrPrivateKey) { this.logger.warn(`"secretOrPrivateKey" has been deprecated, please use the new explicit "secret" or use "secretOrKeyProvider" or "privateKey"/"publicKey" exclusively.`); secret = this.options.secretOrPrivateKey; } return secret; } getSecretKey(token, options, key, secretRequestType) { const secret = this.options.secretOrKeyProvider ? this.options.secretOrKeyProvider(secretRequestType, token, options) : options?.secret || this.options.secret || (key === "privateKey" ? options?.privateKey || this.options.privateKey : options?.publicKey || this.options.publicKey) || this.options[key]; return secret instanceof Promise ? secret.then((sec) => this.overrideSecretFromOptions(sec)) : this.overrideSecretFromOptions(secret); } }; JwtService = __decorate2([ Injectable(), __param(0, Optional()), __param(0, Inject(JWT_MODULE_OPTIONS)), __metadata2("design:paramtypes", [Object]) ], JwtService); // ../../node_modules/.pnpm/@nestjs+jwt@12.0.3_@nestjs+_facab28c43df169ee1a851fa7198ecfe/node_modules/@nestjs/jwt/dist/jwt.module.js var __decorate3 = function(decorators, target, key, desc) { var c5 = arguments.length, r5 = c5 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d5; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r5 = Reflect.decorate(decorators, target, key, desc); else for (var i5 = decorators.length - 1; i5 >= 0; i5--) if (d5 = decorators[i5]) r5 = (c5 < 3 ? d5(r5) : c5 > 3 ? d5(target, key, r5) : d5(target, key)) || r5; return c5 > 3 && r5 && Object.defineProperty(target, key, r5), r5; }; var JwtModule_1; var JwtModule = JwtModule_1 = class JwtModule2 { static { __name(this, "JwtModule"); } static register(options) { return { module: JwtModule_1, global: options.global, providers: createJwtProvider(options) }; } static registerAsync(options) { return { module: JwtModule_1, global: options.global, imports: options.imports || [], providers: [ ...this.createAsyncProviders(options), ...options.extraProviders ?? [] ] }; } static createAsyncProviders(options) { if (options.useExisting || options.useFactory) { return [this.createAsyncOptionsProvider(options)]; } return [ this.createAsyncOptionsProvider(options), { provide: options.useClass, useClass: options.useClass } ]; } static createAsyncOptionsProvider(options) { if (options.useFactory) { return { provide: JWT_MODULE_OPTIONS, useFactory: options.useFactory, inject: options.inject || [] }; } return { provide: JWT_MODULE_OPTIONS, useFactory: /* @__PURE__ */ __name(async (optionsFactory) => await optionsFactory.createJwtOptions(), "useFactory"), inject: [options.useExisting || options.useClass] }; } }; JwtModule = JwtModule_1 = __decorate3([ Module({ providers: [JwtService], exports: [JwtService] }) ], JwtModule); // ../../node_modules/.pnpm/@nestjs+jwt@12.0.3_@nestjs+_facab28c43df169ee1a851fa7198ecfe/node_modules/@nestjs/jwt/dist/index.js var TokenExpiredError = import_jsonwebtoken2.default.TokenExpiredError; var NotBeforeError = import_jsonwebtoken2.default.NotBeforeError; var JsonWebTokenError = import_jsonwebtoken2.default.JsonWebTokenError; // dist/auth/auth.service.js import { hash as hash2, verify } from "@node-rs/argon2"; // dist/common/common.module.js init_common(); var __decorate4 = function(decorators, target, key, desc) { var c5 = arguments.length, r5 = c5 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d5; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r5 = Reflect.decorate(decorators, target, key, desc); else for (var i5 = decorators.length - 1; i5 >= 0; i5--) if (d5 = decorators[i5]) r5 = (c5 < 3 ? d5(r5) : c5 > 3 ? d5(target, key, r5) : d5(target, key)) || r5; return c5 > 3 && r5 && Object.defineProperty(target, key, r5), r5; }; var __metadata3 = function(k5, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k5, v); }; var AuditService_1; var RevalidateService_1; var AuditService = AuditService_1 = class AuditService2 { static { __name(this, "AuditService"); } prisma; logger = new Logger(AuditService_1.name); constructor(prisma) { this.prisma = prisma; } log(userId, action, entity, entityId = "", summary = "") { this.prisma.auditLog.create({ data: { userId, action, entity, entityId: String(entityId), summary } }).catch((e5) => this.logger.warn(`audit log failed: ${String(e5)}`)); } }; AuditService = AuditService_1 = __decorate4([ Injectable(), __metadata3("design:paramtypes", [PrismaService]) ], AuditService); var RevalidateService = RevalidateService_1 = class RevalidateService2 { static { __name(this, "RevalidateService"); } logger = new Logger(RevalidateService_1.name); timer; trigger() { if (!env.WEB_REVALIDATE_URL) return; clearTimeout(this.timer); this.timer = setTimeout(() => void this.run(), 1500); this.timer.unref(); } async run() { try { const res = await fetch(env.WEB_REVALIDATE_URL, { method: "POST", headers: { "x-revalidate-secret": env.REVALIDATE_SECRET ?? "" }, signal: AbortSignal.timeout(5e3) }); if (!res.ok) this.logger.warn(`site revalidation returned ${res.status}`); } catch (e5) { this.logger.warn(`site revalidation failed: ${String(e5)}`); } } }; RevalidateService = RevalidateService_1 = __decorate4([ Injectable() ], RevalidateService); var CommonModule = class CommonModule2 { static { __name(this, "CommonModule"); } }; CommonModule = __decorate4([ Global(), Module({ providers: [AuditService, RevalidateService], exports: [AuditService, RevalidateService] }) ], CommonModule); // dist/auth/auth.service.js var __decorate5 = function(decorators, target, key, desc) { var c5 = arguments.length, r5 = c5 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d5; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r5 = Reflect.decorate(decorators, target, key, desc); else for (var i5 = decorators.length - 1; i5 >= 0; i5--) if (d5 = decorators[i5]) r5 = (c5 < 3 ? d5(r5) : c5 > 3 ? d5(target, key, r5) : d5(target, key)) || r5; return c5 > 3 && r5 && Object.defineProperty(target, key, r5), r5; }; var __metadata4 = function(k5, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k5, v); }; var hashPassword = /* @__PURE__ */ __name((password2) => hash2(password2), "hashPassword"); var sha256 = /* @__PURE__ */ __name((v) => createHash("sha256").update(v).digest("hex"), "sha256"); var toUserDto = /* @__PURE__ */ __name((u) => ({ id: u.id, phone: u.phone, name: u.name, role: u.role, isActive: u.isActive, lastLoginAt: u.lastLoginAt?.toISOString() ?? null, createdAt: u.createdAt.toISOString() }), "toUserDto"); var INVALID_LOGIN = "\u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06CC\u0644 \u06CC\u0627 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0627\u0634\u062A\u0628\u0627\u0647 \u0627\u0633\u062A"; var DUMMY_HASH = hashPassword(randomBytes(16).toString("hex")); var AuthService = class AuthService2 { static { __name(this, "AuthService"); } prisma; jwt; audit; constructor(prisma, jwt2, audit) { this.prisma = prisma; this.jwt = jwt2; this.audit = audit; } async login(input2, userAgent) { const user = await this.prisma.adminUser.findUnique({ where: { phone: input2.phone } }); const ok = await verify(user?.passwordHash ?? await DUMMY_HASH, input2.password).catch(() => false); if (!user || !ok || !user.isActive) throw new UnauthorizedException(INVALID_LOGIN); const updated = await this.prisma.adminUser.update({ where: { id: user.id }, data: { lastLoginAt: /* @__PURE__ */ new Date() } }); this.audit.log(user.id, "login", "user", user.id, user.phone); return this.issue(updated, userAgent); } async refresh(token, userAgent) { if (!token) throw new UnauthorizedException("\u0646\u0634\u0633\u062A \u0634\u0645\u0627 \u0645\u0646\u0642\u0636\u06CC \u0634\u062F\u0647 \u0627\u0633\u062A"); const stored = await this.prisma.refreshToken.findUnique({ where: { tokenHash: sha256(token) }, include: { user: true } }); if (!stored) throw new UnauthorizedException("\u0646\u0634\u0633\u062A \u0634\u0645\u0627 \u0645\u0646\u0642\u0636\u06CC \u0634\u062F\u0647 \u0627\u0633\u062A"); if (stored.revokedAt) { await this.revokeAll(stored.userId); throw new UnauthorizedException("\u0646\u0634\u0633\u062A \u0634\u0645\u0627 \u0645\u0646\u0642\u0636\u06CC \u0634\u062F\u0647 \u0627\u0633\u062A"); } if (stored.expiresAt < /* @__PURE__ */ new Date() || !stored.user.isActive) { throw new UnauthorizedException("\u0646\u0634\u0633\u062A \u0634\u0645\u0627 \u0645\u0646\u0642\u0636\u06CC \u0634\u062F\u0647 \u0627\u0633\u062A"); } await this.prisma.refreshToken.update({ where: { id: stored.id }, data: { revokedAt: /* @__PURE__ */ new Date() } }); return this.issue(stored.user, userAgent); } async logout(token) { if (!token) return; await this.prisma.refreshToken.updateMany({ where: { tokenHash: sha256(token), revokedAt: null }, data: { revokedAt: /* @__PURE__ */ new Date() } }); } async changePassword(userId, input2) { const user = await this.prisma.adminUser.findUniqueOrThrow({ where: { id: userId } }); if (!await verify(user.passwordHash, input2.currentPassword).catch(() => false)) { throw new BadRequestException("\u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0641\u0639\u0644\u06CC \u0627\u0634\u062A\u0628\u0627\u0647 \u0627\u0633\u062A"); } await this.prisma.adminUser.update({ where: { id: userId }, data: { passwordHash: await hashPassword(input2.newPassword) } }); this.audit.log(userId, "change-password", "user", userId, user.phone); } async me(userId) { return toUserDto(await this.prisma.adminUser.findUniqueOrThrow({ where: { id: userId } })); } revokeAll(userId) { return this.prisma.refreshToken.updateMany({ where: { userId, revokedAt: null }, data: { revokedAt: /* @__PURE__ */ new Date() } }); } async issue(user, userAgent) { const payload = { sub: user.id, role: user.role }; const accessToken = await this.jwt.signAsync(payload); const refreshToken = randomBytes(48).toString("base64url"); const refreshExpiresAt = new Date(Date.now() + env.REFRESH_TTL_DAYS * 864e5); await this.prisma.refreshToken.create({ data: { userId: user.id, tokenHash: sha256(refreshToken), expiresAt: refreshExpiresAt, userAgent: userAgent.slice(0, 300) } }); void this.prisma.refreshToken.deleteMany({ where: { expiresAt: { lt: new Date(Date.now() - 864e5) } } }).catch(() => void 0); return { accessToken, refreshToken, refreshExpiresAt, user: toUserDto(user) }; } }; AuthService = __decorate5([ Injectable(), __metadata4("design:paramtypes", [ PrismaService, JwtService, AuditService ]) ], AuthService); // dist/media/s3-storage.js var import_client_s3 = __toESM(require_dist_cjs16(), 1); import sharp from "sharp"; var S3Storage = class { static { __name(this, "S3Storage"); } client = new import_client_s3.S3Client({ endpoint: env.S3_ENDPOINT, region: env.S3_REGION, forcePathStyle: env.S3_FORCE_PATH_STYLE, credentials: { accessKeyId: env.S3_ACCESS_KEY, secretAccessKey: env.S3_SECRET_KEY } }); bucket = env.S3_BUCKET; publicUrl(key) { return `${env.MEDIA_PUBLIC_URL}/${key}`; } async put(key, body, contentType) { await this.client.send(new import_client_s3.PutObjectCommand({ Bucket: this.bucket, Key: key, Body: body, ContentType: contentType, CacheControl: "public, max-age=31536000, immutable" })); } async remove(key) { await this.client.send(new import_client_s3.DeleteObjectCommand({ Bucket: this.bucket, Key: key })); } async ensureBucket() { try { await this.client.send(new import_client_s3.HeadBucketCommand({ Bucket: this.bucket })); } catch { await this.client.send(new import_client_s3.CreateBucketCommand({ Bucket: this.bucket })); } try { await this.client.send(new import_client_s3.PutBucketPolicyCommand({ Bucket: this.bucket, Policy: JSON.stringify({ Version: "2012-10-17", Statement: [ { Effect: "Allow", Principal: { AWS: ["*"] }, Action: ["s3:GetObject"], Resource: [`arn:aws:s3:::${this.bucket}/*`] } ] }) })); } catch { } } }; var ACCEPTED_IMAGE_TYPES = [ "image/jpeg", "image/png", "image/webp", "image/avif", "image/gif" ]; async function toWebp(input2) { const { data, info } = await sharp(input2).rotate().resize({ width: 2e3, height: 2e3, fit: "inside", withoutEnlargement: true }).webp({ quality: 82 }).toBuffer({ resolveWithObject: true }); return { data, width: info.width, height: info.height, size: info.size }; } __name(toWebp, "toWebp"); export { external_exports, env, isProd, JwtService, JwtModule, toIssues, categoryInputSchema, productInputSchema, reorderSchema, productListQuerySchema, sectionSchemas, SECTION_KEYS, isSectionKey, normalizeIrMobile, loginSchema, changePasswordSchema, userCreateSchema, userUpdateSchema, MESSAGE_STATUSES, contactInputSchema, messageUpdateSchema, mediaUpdateSchema, prismaNamespace_exports, createPrismaClient, PrismaService, PrismaModule, AuditService, RevalidateService, CommonModule, hashPassword, toUserDto, AuthService, S3Storage, ACCEPTED_IMAGE_TYPES, toWebp };