sixseconds-modules 1.6.146 → 1.6.147

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -549,10 +549,10 @@ function isFunction$2(value) {
549
549
  return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
550
550
  }
551
551
  var coreJsData = root["__core-js_shared__"];
552
- var maskSrcKey = function() {
552
+ var maskSrcKey = (function() {
553
553
  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
554
554
  return uid ? "Symbol(src)_1." + uid : "";
555
- }();
555
+ })();
556
556
  function isMasked(func) {
557
557
  return !!maskSrcKey && maskSrcKey in func;
558
558
  }
@@ -721,14 +721,14 @@ function arrayEach(array2, iteratee) {
721
721
  }
722
722
  return array2;
723
723
  }
724
- var defineProperty = function() {
724
+ var defineProperty = (function() {
725
725
  try {
726
726
  var func = getNative(Object, "defineProperty");
727
727
  func({}, "", {});
728
728
  return func;
729
729
  } catch (e) {
730
730
  }
731
- }();
731
+ })();
732
732
  function baseAssignValue(object2, key, value) {
733
733
  if (key == "__proto__" && defineProperty) {
734
734
  defineProperty(object2, key, {
@@ -781,9 +781,9 @@ function baseIsArguments(value) {
781
781
  var objectProto$6 = Object.prototype;
782
782
  var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
783
783
  var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
784
- var isArguments = baseIsArguments(/* @__PURE__ */ function() {
784
+ var isArguments = baseIsArguments(/* @__PURE__ */ (function() {
785
785
  return arguments;
786
- }()) ? baseIsArguments : function(value) {
786
+ })()) ? baseIsArguments : function(value) {
787
787
  return isObjectLike(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
788
788
  };
789
789
  var isArray$1 = Array.isArray;
@@ -824,7 +824,7 @@ var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType &
824
824
  var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
825
825
  var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
826
826
  var freeProcess = moduleExports$1 && freeGlobal.process;
827
- var nodeUtil = function() {
827
+ var nodeUtil = (function() {
828
828
  try {
829
829
  var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
830
830
  if (types) {
@@ -833,7 +833,7 @@ var nodeUtil = function() {
833
833
  return freeProcess && freeProcess.binding && freeProcess.binding("util");
834
834
  } catch (e) {
835
835
  }
836
- }();
836
+ })();
837
837
  var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
838
838
  var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
839
839
  var objectProto$5 = Object.prototype;
@@ -1084,7 +1084,7 @@ function initCloneByTag(object2, tag, isDeep) {
1084
1084
  }
1085
1085
  }
1086
1086
  var objectCreate = Object.create;
1087
- var baseCreate = /* @__PURE__ */ function() {
1087
+ var baseCreate = /* @__PURE__ */ (function() {
1088
1088
  function object2() {
1089
1089
  }
1090
1090
  return function(proto2) {
@@ -1099,7 +1099,7 @@ var baseCreate = /* @__PURE__ */ function() {
1099
1099
  object2.prototype = void 0;
1100
1100
  return result;
1101
1101
  };
1102
- }();
1102
+ })();
1103
1103
  function initCloneObject(object2) {
1104
1104
  return typeof object2.constructor == "function" && !isPrototype(object2) ? baseCreate(getPrototype(object2)) : {};
1105
1105
  }
@@ -1361,7 +1361,7 @@ function requireReactIs_production_min() {
1361
1361
  if (hasRequiredReactIs_production_min) return reactIs_production_min;
1362
1362
  hasRequiredReactIs_production_min = 1;
1363
1363
  var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
1364
- function z2(a) {
1364
+ function z(a) {
1365
1365
  if ("object" === typeof a && null !== a) {
1366
1366
  var u = a.$$typeof;
1367
1367
  switch (u) {
@@ -1392,7 +1392,7 @@ function requireReactIs_production_min() {
1392
1392
  }
1393
1393
  }
1394
1394
  function A(a) {
1395
- return z2(a) === m;
1395
+ return z(a) === m;
1396
1396
  }
1397
1397
  reactIs_production_min.AsyncMode = l;
1398
1398
  reactIs_production_min.ConcurrentMode = m;
@@ -1408,46 +1408,46 @@ function requireReactIs_production_min() {
1408
1408
  reactIs_production_min.StrictMode = f;
1409
1409
  reactIs_production_min.Suspense = p;
1410
1410
  reactIs_production_min.isAsyncMode = function(a) {
1411
- return A(a) || z2(a) === l;
1411
+ return A(a) || z(a) === l;
1412
1412
  };
1413
1413
  reactIs_production_min.isConcurrentMode = A;
1414
1414
  reactIs_production_min.isContextConsumer = function(a) {
1415
- return z2(a) === k;
1415
+ return z(a) === k;
1416
1416
  };
1417
1417
  reactIs_production_min.isContextProvider = function(a) {
1418
- return z2(a) === h;
1418
+ return z(a) === h;
1419
1419
  };
1420
1420
  reactIs_production_min.isElement = function(a) {
1421
1421
  return "object" === typeof a && null !== a && a.$$typeof === c;
1422
1422
  };
1423
1423
  reactIs_production_min.isForwardRef = function(a) {
1424
- return z2(a) === n;
1424
+ return z(a) === n;
1425
1425
  };
1426
1426
  reactIs_production_min.isFragment = function(a) {
1427
- return z2(a) === e;
1427
+ return z(a) === e;
1428
1428
  };
1429
1429
  reactIs_production_min.isLazy = function(a) {
1430
- return z2(a) === t;
1430
+ return z(a) === t;
1431
1431
  };
1432
1432
  reactIs_production_min.isMemo = function(a) {
1433
- return z2(a) === r;
1433
+ return z(a) === r;
1434
1434
  };
1435
1435
  reactIs_production_min.isPortal = function(a) {
1436
- return z2(a) === d;
1436
+ return z(a) === d;
1437
1437
  };
1438
1438
  reactIs_production_min.isProfiler = function(a) {
1439
- return z2(a) === g;
1439
+ return z(a) === g;
1440
1440
  };
1441
1441
  reactIs_production_min.isStrictMode = function(a) {
1442
- return z2(a) === f;
1442
+ return z(a) === f;
1443
1443
  };
1444
1444
  reactIs_production_min.isSuspense = function(a) {
1445
- return z2(a) === p;
1445
+ return z(a) === p;
1446
1446
  };
1447
1447
  reactIs_production_min.isValidElementType = function(a) {
1448
1448
  return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
1449
1449
  };
1450
- reactIs_production_min.typeOf = z2;
1450
+ reactIs_production_min.typeOf = z;
1451
1451
  return reactIs_production_min;
1452
1452
  }
1453
1453
  var reactIs_development = {};
@@ -2213,15 +2213,16 @@ function useFormik(_ref) {
2213
2213
  });
2214
2214
  }, []);
2215
2215
  var setFieldValue = useEventCallback(function(field, value, shouldValidate) {
2216
+ var resolvedValue = isFunction$1(value) ? value(getIn$1(state.values, field)) : value;
2216
2217
  dispatch({
2217
2218
  type: "SET_FIELD_VALUE",
2218
2219
  payload: {
2219
2220
  field,
2220
- value
2221
+ value: resolvedValue
2221
2222
  }
2222
2223
  });
2223
2224
  var willValidate = shouldValidate === void 0 ? validateOnChange : shouldValidate;
2224
- return willValidate ? validateFormWithHighPriority(setIn(state.values, field, value)) : Promise.resolve();
2225
+ return willValidate ? validateFormWithHighPriority(setIn(state.values, field, resolvedValue)) : Promise.resolve();
2225
2226
  });
2226
2227
  var executeChange = React.useCallback(function(eventOrTextValue, maybePath) {
2227
2228
  var field = maybePath;
@@ -2676,7 +2677,8 @@ function createEnv(opts) {
2676
2677
  }
2677
2678
  var util;
2678
2679
  (function(util2) {
2679
- util2.assertEqual = (val) => val;
2680
+ util2.assertEqual = (_) => {
2681
+ };
2680
2682
  function assertIs(_arg) {
2681
2683
  }
2682
2684
  util2.assertIs = assertIs;
@@ -2720,7 +2722,7 @@ var util;
2720
2722
  }
2721
2723
  return void 0;
2722
2724
  };
2723
- util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
2725
+ util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
2724
2726
  function joinValues(array2, separator = " | ") {
2725
2727
  return array2.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
2726
2728
  }
@@ -2772,7 +2774,7 @@ const getParsedType = (data) => {
2772
2774
  case "string":
2773
2775
  return ZodParsedType.string;
2774
2776
  case "number":
2775
- return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
2777
+ return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
2776
2778
  case "boolean":
2777
2779
  return ZodParsedType.boolean;
2778
2780
  case "function":
@@ -2823,10 +2825,6 @@ const ZodIssueCode = util.arrayToEnum([
2823
2825
  "not_multiple_of",
2824
2826
  "not_finite"
2825
2827
  ]);
2826
- const quotelessJson = (obj) => {
2827
- const json = JSON.stringify(obj, null, 2);
2828
- return json.replace(/"([^"]+)":/g, "$1:");
2829
- };
2830
2828
  class ZodError extends Error {
2831
2829
  get errors() {
2832
2830
  return this.issues;
@@ -2904,8 +2902,9 @@ class ZodError extends Error {
2904
2902
  const formErrors = [];
2905
2903
  for (const sub of this.issues) {
2906
2904
  if (sub.path.length > 0) {
2907
- fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
2908
- fieldErrors[sub.path[0]].push(mapper(sub));
2905
+ const firstEl = sub.path[0];
2906
+ fieldErrors[firstEl] = fieldErrors[firstEl] || [];
2907
+ fieldErrors[firstEl].push(mapper(sub));
2909
2908
  } else {
2910
2909
  formErrors.push(mapper(sub));
2911
2910
  }
@@ -2981,6 +2980,8 @@ const errorMap = (issue, _ctx) => {
2981
2980
  message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
2982
2981
  else if (issue.type === "number")
2983
2982
  message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
2983
+ else if (issue.type === "bigint")
2984
+ message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
2984
2985
  else if (issue.type === "date")
2985
2986
  message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
2986
2987
  else
@@ -3019,9 +3020,6 @@ const errorMap = (issue, _ctx) => {
3019
3020
  return { message };
3020
3021
  };
3021
3022
  let overrideErrorMap = errorMap;
3022
- function setErrorMap(map2) {
3023
- overrideErrorMap = map2;
3024
- }
3025
3023
  function getErrorMap() {
3026
3024
  return overrideErrorMap;
3027
3025
  }
@@ -3050,7 +3048,6 @@ const makeIssue = (params) => {
3050
3048
  message: errorMessage
3051
3049
  };
3052
3050
  };
3053
- const EMPTY_PATH = [];
3054
3051
  function addIssueToContext(ctx, issueData) {
3055
3052
  const overrideMap = getErrorMap();
3056
3053
  const issue = makeIssue({
@@ -3133,24 +3130,11 @@ const isAborted = (x) => x.status === "aborted";
3133
3130
  const isDirty = (x) => x.status === "dirty";
3134
3131
  const isValid$3 = (x) => x.status === "valid";
3135
3132
  const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
3136
- function __classPrivateFieldGet(receiver, state, kind, f) {
3137
- if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
3138
- return state.get(receiver);
3139
- }
3140
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
3141
- if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
3142
- return state.set(receiver, value), value;
3143
- }
3144
- typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
3145
- var e = new Error(message);
3146
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
3147
- };
3148
3133
  var errorUtil;
3149
3134
  (function(errorUtil2) {
3150
3135
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
3151
- errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
3136
+ errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
3152
3137
  })(errorUtil || (errorUtil = {}));
3153
- var _ZodEnum_cache, _ZodNativeEnum_cache;
3154
3138
  class ParseInputLazyPath {
3155
3139
  constructor(parent, value, path, key) {
3156
3140
  this._cachedPath = [];
@@ -3161,7 +3145,7 @@ class ParseInputLazyPath {
3161
3145
  }
3162
3146
  get path() {
3163
3147
  if (!this._cachedPath.length) {
3164
- if (this._key instanceof Array) {
3148
+ if (Array.isArray(this._key)) {
3165
3149
  this._cachedPath.push(...this._path, ...this._key);
3166
3150
  } else {
3167
3151
  this._cachedPath.push(...this._path, this._key);
@@ -3199,17 +3183,16 @@ function processCreateParams(params) {
3199
3183
  if (errorMap2)
3200
3184
  return { errorMap: errorMap2, description };
3201
3185
  const customMap = (iss, ctx) => {
3202
- var _a, _b;
3203
3186
  const { message } = params;
3204
3187
  if (iss.code === "invalid_enum_value") {
3205
- return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
3188
+ return { message: message ?? ctx.defaultError };
3206
3189
  }
3207
3190
  if (typeof ctx.data === "undefined") {
3208
- return { message: (_a = message !== null && message !== void 0 ? message : required_error) !== null && _a !== void 0 ? _a : ctx.defaultError };
3191
+ return { message: message ?? required_error ?? ctx.defaultError };
3209
3192
  }
3210
3193
  if (iss.code !== "invalid_type")
3211
3194
  return { message: ctx.defaultError };
3212
- return { message: (_b = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b !== void 0 ? _b : ctx.defaultError };
3195
+ return { message: message ?? invalid_type_error ?? ctx.defaultError };
3213
3196
  };
3214
3197
  return { errorMap: customMap, description };
3215
3198
  }
@@ -3261,14 +3244,13 @@ class ZodType {
3261
3244
  throw result.error;
3262
3245
  }
3263
3246
  safeParse(data, params) {
3264
- var _a;
3265
3247
  const ctx = {
3266
3248
  common: {
3267
3249
  issues: [],
3268
- async: (_a = params === null || params === void 0 ? void 0 : params.async) !== null && _a !== void 0 ? _a : false,
3269
- contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap
3250
+ async: params?.async ?? false,
3251
+ contextualErrorMap: params?.errorMap
3270
3252
  },
3271
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
3253
+ path: params?.path || [],
3272
3254
  schemaErrorMap: this._def.errorMap,
3273
3255
  parent: null,
3274
3256
  data,
@@ -3278,7 +3260,6 @@ class ZodType {
3278
3260
  return handleResult(ctx, result);
3279
3261
  }
3280
3262
  "~validate"(data) {
3281
- var _a, _b;
3282
3263
  const ctx = {
3283
3264
  common: {
3284
3265
  issues: [],
@@ -3299,7 +3280,7 @@ class ZodType {
3299
3280
  issues: ctx.common.issues
3300
3281
  };
3301
3282
  } catch (err) {
3302
- if ((_b = (_a = err === null || err === void 0 ? void 0 : err.message) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.includes("encountered")) {
3283
+ if (err?.message?.toLowerCase()?.includes("encountered")) {
3303
3284
  this["~standard"].async = true;
3304
3285
  }
3305
3286
  ctx.common = {
@@ -3324,10 +3305,10 @@ class ZodType {
3324
3305
  const ctx = {
3325
3306
  common: {
3326
3307
  issues: [],
3327
- contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,
3308
+ contextualErrorMap: params?.errorMap,
3328
3309
  async: true
3329
3310
  },
3330
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
3311
+ path: params?.path || [],
3331
3312
  schemaErrorMap: this._def.errorMap,
3332
3313
  parent: null,
3333
3314
  data,
@@ -3552,16 +3533,20 @@ function isValidJWT(jwt, alg) {
3552
3533
  return false;
3553
3534
  try {
3554
3535
  const [header] = jwt.split(".");
3536
+ if (!header)
3537
+ return false;
3555
3538
  const base64 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
3556
3539
  const decoded = JSON.parse(atob(base64));
3557
3540
  if (typeof decoded !== "object" || decoded === null)
3558
3541
  return false;
3559
- if (!decoded.typ || !decoded.alg)
3542
+ if ("typ" in decoded && decoded?.typ !== "JWT")
3543
+ return false;
3544
+ if (!decoded.alg)
3560
3545
  return false;
3561
3546
  if (alg && decoded.alg !== alg)
3562
3547
  return false;
3563
3548
  return true;
3564
- } catch (_a) {
3549
+ } catch {
3565
3550
  return false;
3566
3551
  }
3567
3552
  }
@@ -3720,7 +3705,7 @@ class ZodString extends ZodType {
3720
3705
  } else if (check.kind === "url") {
3721
3706
  try {
3722
3707
  new URL(input.data);
3723
- } catch (_a) {
3708
+ } catch {
3724
3709
  ctx = this._getOrReturnCtx(input, ctx);
3725
3710
  addIssueToContext(ctx, {
3726
3711
  validation: "url",
@@ -3932,7 +3917,6 @@ class ZodString extends ZodType {
3932
3917
  return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
3933
3918
  }
3934
3919
  datetime(options) {
3935
- var _a, _b;
3936
3920
  if (typeof options === "string") {
3937
3921
  return this._addCheck({
3938
3922
  kind: "datetime",
@@ -3944,10 +3928,10 @@ class ZodString extends ZodType {
3944
3928
  }
3945
3929
  return this._addCheck({
3946
3930
  kind: "datetime",
3947
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
3948
- offset: (_a = options === null || options === void 0 ? void 0 : options.offset) !== null && _a !== void 0 ? _a : false,
3949
- local: (_b = options === null || options === void 0 ? void 0 : options.local) !== null && _b !== void 0 ? _b : false,
3950
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
3931
+ precision: typeof options?.precision === "undefined" ? null : options?.precision,
3932
+ offset: options?.offset ?? false,
3933
+ local: options?.local ?? false,
3934
+ ...errorUtil.errToObj(options?.message)
3951
3935
  });
3952
3936
  }
3953
3937
  date(message) {
@@ -3963,8 +3947,8 @@ class ZodString extends ZodType {
3963
3947
  }
3964
3948
  return this._addCheck({
3965
3949
  kind: "time",
3966
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
3967
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
3950
+ precision: typeof options?.precision === "undefined" ? null : options?.precision,
3951
+ ...errorUtil.errToObj(options?.message)
3968
3952
  });
3969
3953
  }
3970
3954
  duration(message) {
@@ -3981,8 +3965,8 @@ class ZodString extends ZodType {
3981
3965
  return this._addCheck({
3982
3966
  kind: "includes",
3983
3967
  value,
3984
- position: options === null || options === void 0 ? void 0 : options.position,
3985
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
3968
+ position: options?.position,
3969
+ ...errorUtil.errToObj(options?.message)
3986
3970
  });
3987
3971
  }
3988
3972
  startsWith(value, message) {
@@ -4114,11 +4098,10 @@ class ZodString extends ZodType {
4114
4098
  }
4115
4099
  }
4116
4100
  ZodString.create = (params) => {
4117
- var _a;
4118
4101
  return new ZodString({
4119
4102
  checks: [],
4120
4103
  typeName: ZodFirstPartyTypeKind.ZodString,
4121
- coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,
4104
+ coerce: params?.coerce ?? false,
4122
4105
  ...processCreateParams(params)
4123
4106
  });
4124
4107
  };
@@ -4126,9 +4109,9 @@ function floatSafeRemainder(val, step) {
4126
4109
  const valDecCount = (val.toString().split(".")[1] || "").length;
4127
4110
  const stepDecCount = (step.toString().split(".")[1] || "").length;
4128
4111
  const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
4129
- const valInt = parseInt(val.toFixed(decCount).replace(".", ""));
4130
- const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));
4131
- return valInt % stepInt / Math.pow(10, decCount);
4112
+ const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
4113
+ const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
4114
+ return valInt % stepInt / 10 ** decCount;
4132
4115
  }
4133
4116
  class ZodNumber extends ZodType {
4134
4117
  constructor() {
@@ -4338,7 +4321,8 @@ class ZodNumber extends ZodType {
4338
4321
  return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value));
4339
4322
  }
4340
4323
  get isFinite() {
4341
- let max2 = null, min2 = null;
4324
+ let max2 = null;
4325
+ let min2 = null;
4342
4326
  for (const ch of this._def.checks) {
4343
4327
  if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
4344
4328
  return true;
@@ -4357,7 +4341,7 @@ ZodNumber.create = (params) => {
4357
4341
  return new ZodNumber({
4358
4342
  checks: [],
4359
4343
  typeName: ZodFirstPartyTypeKind.ZodNumber,
4360
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
4344
+ coerce: params?.coerce || false,
4361
4345
  ...processCreateParams(params)
4362
4346
  });
4363
4347
  };
@@ -4371,7 +4355,7 @@ class ZodBigInt extends ZodType {
4371
4355
  if (this._def.coerce) {
4372
4356
  try {
4373
4357
  input.data = BigInt(input.data);
4374
- } catch (_a) {
4358
+ } catch {
4375
4359
  return this._getInvalidInput(input);
4376
4360
  }
4377
4361
  }
@@ -4526,11 +4510,10 @@ class ZodBigInt extends ZodType {
4526
4510
  }
4527
4511
  }
4528
4512
  ZodBigInt.create = (params) => {
4529
- var _a;
4530
4513
  return new ZodBigInt({
4531
4514
  checks: [],
4532
4515
  typeName: ZodFirstPartyTypeKind.ZodBigInt,
4533
- coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,
4516
+ coerce: params?.coerce ?? false,
4534
4517
  ...processCreateParams(params)
4535
4518
  });
4536
4519
  };
@@ -4555,7 +4538,7 @@ class ZodBoolean extends ZodType {
4555
4538
  ZodBoolean.create = (params) => {
4556
4539
  return new ZodBoolean({
4557
4540
  typeName: ZodFirstPartyTypeKind.ZodBoolean,
4558
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
4541
+ coerce: params?.coerce || false,
4559
4542
  ...processCreateParams(params)
4560
4543
  });
4561
4544
  };
@@ -4574,7 +4557,7 @@ class ZodDate extends ZodType {
4574
4557
  });
4575
4558
  return INVALID;
4576
4559
  }
4577
- if (isNaN(input.data.getTime())) {
4560
+ if (Number.isNaN(input.data.getTime())) {
4578
4561
  const ctx2 = this._getOrReturnCtx(input);
4579
4562
  addIssueToContext(ctx2, {
4580
4563
  code: ZodIssueCode.invalid_date
@@ -4663,7 +4646,7 @@ class ZodDate extends ZodType {
4663
4646
  ZodDate.create = (params) => {
4664
4647
  return new ZodDate({
4665
4648
  checks: [],
4666
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
4649
+ coerce: params?.coerce || false,
4667
4650
  typeName: ZodFirstPartyTypeKind.ZodDate,
4668
4651
  ...processCreateParams(params)
4669
4652
  });
@@ -4938,7 +4921,8 @@ class ZodObject extends ZodType {
4938
4921
  return this._cached;
4939
4922
  const shape = this._def.shape();
4940
4923
  const keys2 = util.objectKeys(shape);
4941
- return this._cached = { shape, keys: keys2 };
4924
+ this._cached = { shape, keys: keys2 };
4925
+ return this._cached;
4942
4926
  }
4943
4927
  _parse(input) {
4944
4928
  const parsedType = this._getType(input);
@@ -5036,11 +5020,10 @@ class ZodObject extends ZodType {
5036
5020
  unknownKeys: "strict",
5037
5021
  ...message !== void 0 ? {
5038
5022
  errorMap: (issue, ctx) => {
5039
- var _a, _b, _c, _d;
5040
- const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a, issue, ctx).message) !== null && _c !== void 0 ? _c : ctx.defaultError;
5023
+ const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;
5041
5024
  if (issue.code === "unrecognized_keys")
5042
5025
  return {
5043
- message: (_d = errorUtil.errToObj(message).message) !== null && _d !== void 0 ? _d : defaultError
5026
+ message: errorUtil.errToObj(message).message ?? defaultError
5044
5027
  };
5045
5028
  return {
5046
5029
  message: defaultError
@@ -5171,11 +5154,11 @@ class ZodObject extends ZodType {
5171
5154
  }
5172
5155
  pick(mask) {
5173
5156
  const shape = {};
5174
- util.objectKeys(mask).forEach((key) => {
5157
+ for (const key of util.objectKeys(mask)) {
5175
5158
  if (mask[key] && this.shape[key]) {
5176
5159
  shape[key] = this.shape[key];
5177
5160
  }
5178
- });
5161
+ }
5179
5162
  return new ZodObject({
5180
5163
  ...this._def,
5181
5164
  shape: () => shape
@@ -5183,11 +5166,11 @@ class ZodObject extends ZodType {
5183
5166
  }
5184
5167
  omit(mask) {
5185
5168
  const shape = {};
5186
- util.objectKeys(this.shape).forEach((key) => {
5169
+ for (const key of util.objectKeys(this.shape)) {
5187
5170
  if (!mask[key]) {
5188
5171
  shape[key] = this.shape[key];
5189
5172
  }
5190
- });
5173
+ }
5191
5174
  return new ZodObject({
5192
5175
  ...this._def,
5193
5176
  shape: () => shape
@@ -5201,14 +5184,14 @@ class ZodObject extends ZodType {
5201
5184
  }
5202
5185
  partial(mask) {
5203
5186
  const newShape = {};
5204
- util.objectKeys(this.shape).forEach((key) => {
5187
+ for (const key of util.objectKeys(this.shape)) {
5205
5188
  const fieldSchema = this.shape[key];
5206
5189
  if (mask && !mask[key]) {
5207
5190
  newShape[key] = fieldSchema;
5208
5191
  } else {
5209
5192
  newShape[key] = fieldSchema.optional();
5210
5193
  }
5211
- });
5194
+ }
5212
5195
  return new ZodObject({
5213
5196
  ...this._def,
5214
5197
  shape: () => newShape
@@ -5216,7 +5199,7 @@ class ZodObject extends ZodType {
5216
5199
  }
5217
5200
  required(mask) {
5218
5201
  const newShape = {};
5219
- util.objectKeys(this.shape).forEach((key) => {
5202
+ for (const key of util.objectKeys(this.shape)) {
5220
5203
  if (mask && !mask[key]) {
5221
5204
  newShape[key] = this.shape[key];
5222
5205
  } else {
@@ -5227,7 +5210,7 @@ class ZodObject extends ZodType {
5227
5210
  }
5228
5211
  newShape[key] = newField;
5229
5212
  }
5230
- });
5213
+ }
5231
5214
  return new ZodObject({
5232
5215
  ...this._def,
5233
5216
  shape: () => newShape
@@ -5355,113 +5338,6 @@ ZodUnion.create = (types, params) => {
5355
5338
  ...processCreateParams(params)
5356
5339
  });
5357
5340
  };
5358
- const getDiscriminator = (type) => {
5359
- if (type instanceof ZodLazy) {
5360
- return getDiscriminator(type.schema);
5361
- } else if (type instanceof ZodEffects) {
5362
- return getDiscriminator(type.innerType());
5363
- } else if (type instanceof ZodLiteral) {
5364
- return [type.value];
5365
- } else if (type instanceof ZodEnum) {
5366
- return type.options;
5367
- } else if (type instanceof ZodNativeEnum) {
5368
- return util.objectValues(type.enum);
5369
- } else if (type instanceof ZodDefault) {
5370
- return getDiscriminator(type._def.innerType);
5371
- } else if (type instanceof ZodUndefined) {
5372
- return [void 0];
5373
- } else if (type instanceof ZodNull) {
5374
- return [null];
5375
- } else if (type instanceof ZodOptional) {
5376
- return [void 0, ...getDiscriminator(type.unwrap())];
5377
- } else if (type instanceof ZodNullable) {
5378
- return [null, ...getDiscriminator(type.unwrap())];
5379
- } else if (type instanceof ZodBranded) {
5380
- return getDiscriminator(type.unwrap());
5381
- } else if (type instanceof ZodReadonly) {
5382
- return getDiscriminator(type.unwrap());
5383
- } else if (type instanceof ZodCatch) {
5384
- return getDiscriminator(type._def.innerType);
5385
- } else {
5386
- return [];
5387
- }
5388
- };
5389
- class ZodDiscriminatedUnion extends ZodType {
5390
- _parse(input) {
5391
- const { ctx } = this._processInputParams(input);
5392
- if (ctx.parsedType !== ZodParsedType.object) {
5393
- addIssueToContext(ctx, {
5394
- code: ZodIssueCode.invalid_type,
5395
- expected: ZodParsedType.object,
5396
- received: ctx.parsedType
5397
- });
5398
- return INVALID;
5399
- }
5400
- const discriminator = this.discriminator;
5401
- const discriminatorValue = ctx.data[discriminator];
5402
- const option = this.optionsMap.get(discriminatorValue);
5403
- if (!option) {
5404
- addIssueToContext(ctx, {
5405
- code: ZodIssueCode.invalid_union_discriminator,
5406
- options: Array.from(this.optionsMap.keys()),
5407
- path: [discriminator]
5408
- });
5409
- return INVALID;
5410
- }
5411
- if (ctx.common.async) {
5412
- return option._parseAsync({
5413
- data: ctx.data,
5414
- path: ctx.path,
5415
- parent: ctx
5416
- });
5417
- } else {
5418
- return option._parseSync({
5419
- data: ctx.data,
5420
- path: ctx.path,
5421
- parent: ctx
5422
- });
5423
- }
5424
- }
5425
- get discriminator() {
5426
- return this._def.discriminator;
5427
- }
5428
- get options() {
5429
- return this._def.options;
5430
- }
5431
- get optionsMap() {
5432
- return this._def.optionsMap;
5433
- }
5434
- /**
5435
- * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
5436
- * However, it only allows a union of objects, all of which need to share a discriminator property. This property must
5437
- * have a different value for each object in the union.
5438
- * @param discriminator the name of the discriminator property
5439
- * @param types an array of object schemas
5440
- * @param params
5441
- */
5442
- static create(discriminator, options, params) {
5443
- const optionsMap = /* @__PURE__ */ new Map();
5444
- for (const type of options) {
5445
- const discriminatorValues = getDiscriminator(type.shape[discriminator]);
5446
- if (!discriminatorValues.length) {
5447
- throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
5448
- }
5449
- for (const value of discriminatorValues) {
5450
- if (optionsMap.has(value)) {
5451
- throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
5452
- }
5453
- optionsMap.set(value, type);
5454
- }
5455
- }
5456
- return new ZodDiscriminatedUnion({
5457
- typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,
5458
- discriminator,
5459
- options,
5460
- optionsMap,
5461
- ...processCreateParams(params)
5462
- });
5463
- }
5464
- }
5465
5341
  function mergeValues(a, b) {
5466
5342
  const aType = getParsedType(a);
5467
5343
  const bType = getParsedType(b);
@@ -5620,59 +5496,6 @@ ZodTuple.create = (schemas, params) => {
5620
5496
  ...processCreateParams(params)
5621
5497
  });
5622
5498
  };
5623
- class ZodRecord extends ZodType {
5624
- get keySchema() {
5625
- return this._def.keyType;
5626
- }
5627
- get valueSchema() {
5628
- return this._def.valueType;
5629
- }
5630
- _parse(input) {
5631
- const { status, ctx } = this._processInputParams(input);
5632
- if (ctx.parsedType !== ZodParsedType.object) {
5633
- addIssueToContext(ctx, {
5634
- code: ZodIssueCode.invalid_type,
5635
- expected: ZodParsedType.object,
5636
- received: ctx.parsedType
5637
- });
5638
- return INVALID;
5639
- }
5640
- const pairs = [];
5641
- const keyType = this._def.keyType;
5642
- const valueType = this._def.valueType;
5643
- for (const key in ctx.data) {
5644
- pairs.push({
5645
- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),
5646
- value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),
5647
- alwaysSet: key in ctx.data
5648
- });
5649
- }
5650
- if (ctx.common.async) {
5651
- return ParseStatus.mergeObjectAsync(status, pairs);
5652
- } else {
5653
- return ParseStatus.mergeObjectSync(status, pairs);
5654
- }
5655
- }
5656
- get element() {
5657
- return this._def.valueType;
5658
- }
5659
- static create(first, second, third) {
5660
- if (second instanceof ZodType) {
5661
- return new ZodRecord({
5662
- keyType: first,
5663
- valueType: second,
5664
- typeName: ZodFirstPartyTypeKind.ZodRecord,
5665
- ...processCreateParams(third)
5666
- });
5667
- }
5668
- return new ZodRecord({
5669
- keyType: ZodString.create(),
5670
- valueType: first,
5671
- typeName: ZodFirstPartyTypeKind.ZodRecord,
5672
- ...processCreateParams(second)
5673
- });
5674
- }
5675
- }
5676
5499
  class ZodMap extends ZodType {
5677
5500
  get keySchema() {
5678
5501
  return this._def.keyType;
@@ -5824,121 +5647,6 @@ ZodSet.create = (valueType, params) => {
5824
5647
  ...processCreateParams(params)
5825
5648
  });
5826
5649
  };
5827
- class ZodFunction extends ZodType {
5828
- constructor() {
5829
- super(...arguments);
5830
- this.validate = this.implement;
5831
- }
5832
- _parse(input) {
5833
- const { ctx } = this._processInputParams(input);
5834
- if (ctx.parsedType !== ZodParsedType.function) {
5835
- addIssueToContext(ctx, {
5836
- code: ZodIssueCode.invalid_type,
5837
- expected: ZodParsedType.function,
5838
- received: ctx.parsedType
5839
- });
5840
- return INVALID;
5841
- }
5842
- function makeArgsIssue(args, error) {
5843
- return makeIssue({
5844
- data: args,
5845
- path: ctx.path,
5846
- errorMaps: [
5847
- ctx.common.contextualErrorMap,
5848
- ctx.schemaErrorMap,
5849
- getErrorMap(),
5850
- errorMap
5851
- ].filter((x) => !!x),
5852
- issueData: {
5853
- code: ZodIssueCode.invalid_arguments,
5854
- argumentsError: error
5855
- }
5856
- });
5857
- }
5858
- function makeReturnsIssue(returns, error) {
5859
- return makeIssue({
5860
- data: returns,
5861
- path: ctx.path,
5862
- errorMaps: [
5863
- ctx.common.contextualErrorMap,
5864
- ctx.schemaErrorMap,
5865
- getErrorMap(),
5866
- errorMap
5867
- ].filter((x) => !!x),
5868
- issueData: {
5869
- code: ZodIssueCode.invalid_return_type,
5870
- returnTypeError: error
5871
- }
5872
- });
5873
- }
5874
- const params = { errorMap: ctx.common.contextualErrorMap };
5875
- const fn = ctx.data;
5876
- if (this._def.returns instanceof ZodPromise) {
5877
- const me = this;
5878
- return OK(async function(...args) {
5879
- const error = new ZodError([]);
5880
- const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {
5881
- error.addIssue(makeArgsIssue(args, e));
5882
- throw error;
5883
- });
5884
- const result = await Reflect.apply(fn, this, parsedArgs);
5885
- const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e) => {
5886
- error.addIssue(makeReturnsIssue(result, e));
5887
- throw error;
5888
- });
5889
- return parsedReturns;
5890
- });
5891
- } else {
5892
- const me = this;
5893
- return OK(function(...args) {
5894
- const parsedArgs = me._def.args.safeParse(args, params);
5895
- if (!parsedArgs.success) {
5896
- throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
5897
- }
5898
- const result = Reflect.apply(fn, this, parsedArgs.data);
5899
- const parsedReturns = me._def.returns.safeParse(result, params);
5900
- if (!parsedReturns.success) {
5901
- throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
5902
- }
5903
- return parsedReturns.data;
5904
- });
5905
- }
5906
- }
5907
- parameters() {
5908
- return this._def.args;
5909
- }
5910
- returnType() {
5911
- return this._def.returns;
5912
- }
5913
- args(...items) {
5914
- return new ZodFunction({
5915
- ...this._def,
5916
- args: ZodTuple.create(items).rest(ZodUnknown.create())
5917
- });
5918
- }
5919
- returns(returnType) {
5920
- return new ZodFunction({
5921
- ...this._def,
5922
- returns: returnType
5923
- });
5924
- }
5925
- implement(func) {
5926
- const validatedFunc = this.parse(func);
5927
- return validatedFunc;
5928
- }
5929
- strictImplement(func) {
5930
- const validatedFunc = this.parse(func);
5931
- return validatedFunc;
5932
- }
5933
- static create(args, returns, params) {
5934
- return new ZodFunction({
5935
- args: args ? args : ZodTuple.create([]).rest(ZodUnknown.create()),
5936
- returns: returns || ZodUnknown.create(),
5937
- typeName: ZodFirstPartyTypeKind.ZodFunction,
5938
- ...processCreateParams(params)
5939
- });
5940
- }
5941
- }
5942
5650
  class ZodLazy extends ZodType {
5943
5651
  get schema() {
5944
5652
  return this._def.getter();
@@ -5988,10 +5696,6 @@ function createZodEnum(values, params) {
5988
5696
  });
5989
5697
  }
5990
5698
  class ZodEnum extends ZodType {
5991
- constructor() {
5992
- super(...arguments);
5993
- _ZodEnum_cache.set(this, void 0);
5994
- }
5995
5699
  _parse(input) {
5996
5700
  if (typeof input.data !== "string") {
5997
5701
  const ctx = this._getOrReturnCtx(input);
@@ -6003,10 +5707,10 @@ class ZodEnum extends ZodType {
6003
5707
  });
6004
5708
  return INVALID;
6005
5709
  }
6006
- if (!__classPrivateFieldGet(this, _ZodEnum_cache)) {
6007
- __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values));
5710
+ if (!this._cache) {
5711
+ this._cache = new Set(this._def.values);
6008
5712
  }
6009
- if (!__classPrivateFieldGet(this, _ZodEnum_cache).has(input.data)) {
5713
+ if (!this._cache.has(input.data)) {
6010
5714
  const ctx = this._getOrReturnCtx(input);
6011
5715
  const expectedValues = this._def.values;
6012
5716
  addIssueToContext(ctx, {
@@ -6055,13 +5759,8 @@ class ZodEnum extends ZodType {
6055
5759
  });
6056
5760
  }
6057
5761
  }
6058
- _ZodEnum_cache = /* @__PURE__ */ new WeakMap();
6059
5762
  ZodEnum.create = createZodEnum;
6060
5763
  class ZodNativeEnum extends ZodType {
6061
- constructor() {
6062
- super(...arguments);
6063
- _ZodNativeEnum_cache.set(this, void 0);
6064
- }
6065
5764
  _parse(input) {
6066
5765
  const nativeEnumValues = util.getValidEnumValues(this._def.values);
6067
5766
  const ctx = this._getOrReturnCtx(input);
@@ -6074,10 +5773,10 @@ class ZodNativeEnum extends ZodType {
6074
5773
  });
6075
5774
  return INVALID;
6076
5775
  }
6077
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache)) {
6078
- __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)));
5776
+ if (!this._cache) {
5777
+ this._cache = new Set(util.getValidEnumValues(this._def.values));
6079
5778
  }
6080
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache).has(input.data)) {
5779
+ if (!this._cache.has(input.data)) {
6081
5780
  const expectedValues = util.objectValues(nativeEnumValues);
6082
5781
  addIssueToContext(ctx, {
6083
5782
  received: ctx.data,
@@ -6092,7 +5791,6 @@ class ZodNativeEnum extends ZodType {
6092
5791
  return this._def.values;
6093
5792
  }
6094
5793
  }
6095
- _ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap();
6096
5794
  ZodNativeEnum.create = (values, params) => {
6097
5795
  return new ZodNativeEnum({
6098
5796
  values,
@@ -6233,7 +5931,7 @@ class ZodEffects extends ZodType {
6233
5931
  parent: ctx
6234
5932
  });
6235
5933
  if (!isValid$3(base))
6236
- return base;
5934
+ return INVALID;
6237
5935
  const result = effect.transform(base.value, checkCtx);
6238
5936
  if (result instanceof Promise) {
6239
5937
  throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
@@ -6242,8 +5940,11 @@ class ZodEffects extends ZodType {
6242
5940
  } else {
6243
5941
  return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
6244
5942
  if (!isValid$3(base))
6245
- return base;
6246
- return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));
5943
+ return INVALID;
5944
+ return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
5945
+ status: status.value,
5946
+ value: result
5947
+ }));
6247
5948
  });
6248
5949
  }
6249
5950
  }
@@ -6403,7 +6104,6 @@ ZodNaN.create = (params) => {
6403
6104
  ...processCreateParams(params)
6404
6105
  });
6405
6106
  };
6406
- const BRAND = Symbol("zod_brand");
6407
6107
  class ZodBranded extends ZodType {
6408
6108
  _parse(input) {
6409
6109
  const { ctx } = this._processInputParams(input);
@@ -6495,38 +6195,6 @@ ZodReadonly.create = (type, params) => {
6495
6195
  ...processCreateParams(params)
6496
6196
  });
6497
6197
  };
6498
- function cleanParams(params, data) {
6499
- const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
6500
- const p2 = typeof p === "string" ? { message: p } : p;
6501
- return p2;
6502
- }
6503
- function custom(check, _params = {}, fatal) {
6504
- if (check)
6505
- return ZodAny.create().superRefine((data, ctx) => {
6506
- var _a, _b;
6507
- const r = check(data);
6508
- if (r instanceof Promise) {
6509
- return r.then((r2) => {
6510
- var _a2, _b2;
6511
- if (!r2) {
6512
- const params = cleanParams(_params, data);
6513
- const _fatal = (_b2 = (_a2 = params.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b2 !== void 0 ? _b2 : true;
6514
- ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
6515
- }
6516
- });
6517
- }
6518
- if (!r) {
6519
- const params = cleanParams(_params, data);
6520
- const _fatal = (_b = (_a = params.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
6521
- ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
6522
- }
6523
- return;
6524
- });
6525
- return ZodAny.create();
6526
- }
6527
- const late = {
6528
- object: ZodObject.lazycreate
6529
- };
6530
6198
  var ZodFirstPartyTypeKind;
6531
6199
  (function(ZodFirstPartyTypeKind2) {
6532
6200
  ZodFirstPartyTypeKind2["ZodString"] = "ZodString";
@@ -6566,177 +6234,20 @@ var ZodFirstPartyTypeKind;
6566
6234
  ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline";
6567
6235
  ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly";
6568
6236
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
6569
- const instanceOfType = (cls, params = {
6570
- message: `Input not instance of ${cls.name}`
6571
- }) => custom((data) => data instanceof cls, params);
6572
6237
  const stringType = ZodString.create;
6573
- const numberType = ZodNumber.create;
6574
- const nanType = ZodNaN.create;
6575
- const bigIntType = ZodBigInt.create;
6576
- const booleanType = ZodBoolean.create;
6577
- const dateType = ZodDate.create;
6578
- const symbolType = ZodSymbol.create;
6579
- const undefinedType = ZodUndefined.create;
6580
- const nullType = ZodNull.create;
6581
- const anyType = ZodAny.create;
6582
- const unknownType = ZodUnknown.create;
6583
- const neverType = ZodNever.create;
6584
- const voidType = ZodVoid.create;
6585
- const arrayType = ZodArray.create;
6586
- const objectType = ZodObject.create;
6587
- const strictObjectType = ZodObject.strictCreate;
6588
- const unionType = ZodUnion.create;
6589
- const discriminatedUnionType = ZodDiscriminatedUnion.create;
6590
- const intersectionType = ZodIntersection.create;
6591
- const tupleType = ZodTuple.create;
6592
- const recordType = ZodRecord.create;
6593
- const mapType = ZodMap.create;
6594
- const setType = ZodSet.create;
6595
- const functionType = ZodFunction.create;
6596
- const lazyType = ZodLazy.create;
6597
- const literalType = ZodLiteral.create;
6598
- const enumType = ZodEnum.create;
6599
- const nativeEnumType = ZodNativeEnum.create;
6600
- const promiseType = ZodPromise.create;
6601
- const effectsType = ZodEffects.create;
6602
- const optionalType = ZodOptional.create;
6603
- const nullableType = ZodNullable.create;
6604
- const preprocessType = ZodEffects.createWithPreprocess;
6605
- const pipelineType = ZodPipeline.create;
6606
- const ostring = () => stringType().optional();
6607
- const onumber = () => numberType().optional();
6608
- const oboolean = () => booleanType().optional();
6609
- const coerce = {
6610
- string: (arg) => ZodString.create({ ...arg, coerce: true }),
6611
- number: (arg) => ZodNumber.create({ ...arg, coerce: true }),
6612
- boolean: (arg) => ZodBoolean.create({
6613
- ...arg,
6614
- coerce: true
6615
- }),
6616
- bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),
6617
- date: (arg) => ZodDate.create({ ...arg, coerce: true })
6618
- };
6619
- const NEVER = INVALID;
6620
- var z = /* @__PURE__ */ Object.freeze({
6621
- __proto__: null,
6622
- defaultErrorMap: errorMap,
6623
- setErrorMap,
6624
- getErrorMap,
6625
- makeIssue,
6626
- EMPTY_PATH,
6627
- addIssueToContext,
6628
- ParseStatus,
6629
- INVALID,
6630
- DIRTY,
6631
- OK,
6632
- isAborted,
6633
- isDirty,
6634
- isValid: isValid$3,
6635
- isAsync,
6636
- get util() {
6637
- return util;
6638
- },
6639
- get objectUtil() {
6640
- return objectUtil;
6641
- },
6642
- ZodParsedType,
6643
- getParsedType,
6644
- ZodType,
6645
- datetimeRegex,
6646
- ZodString,
6647
- ZodNumber,
6648
- ZodBigInt,
6649
- ZodBoolean,
6650
- ZodDate,
6651
- ZodSymbol,
6652
- ZodUndefined,
6653
- ZodNull,
6654
- ZodAny,
6655
- ZodUnknown,
6656
- ZodNever,
6657
- ZodVoid,
6658
- ZodArray,
6659
- ZodObject,
6660
- ZodUnion,
6661
- ZodDiscriminatedUnion,
6662
- ZodIntersection,
6663
- ZodTuple,
6664
- ZodRecord,
6665
- ZodMap,
6666
- ZodSet,
6667
- ZodFunction,
6668
- ZodLazy,
6669
- ZodLiteral,
6670
- ZodEnum,
6671
- ZodNativeEnum,
6672
- ZodPromise,
6673
- ZodEffects,
6674
- ZodTransformer: ZodEffects,
6675
- ZodOptional,
6676
- ZodNullable,
6677
- ZodDefault,
6678
- ZodCatch,
6679
- ZodNaN,
6680
- BRAND,
6681
- ZodBranded,
6682
- ZodPipeline,
6683
- ZodReadonly,
6684
- custom,
6685
- Schema: ZodType,
6686
- ZodSchema: ZodType,
6687
- late,
6688
- get ZodFirstPartyTypeKind() {
6689
- return ZodFirstPartyTypeKind;
6690
- },
6691
- coerce,
6692
- any: anyType,
6693
- array: arrayType,
6694
- bigint: bigIntType,
6695
- boolean: booleanType,
6696
- date: dateType,
6697
- discriminatedUnion: discriminatedUnionType,
6698
- effect: effectsType,
6699
- "enum": enumType,
6700
- "function": functionType,
6701
- "instanceof": instanceOfType,
6702
- intersection: intersectionType,
6703
- lazy: lazyType,
6704
- literal: literalType,
6705
- map: mapType,
6706
- nan: nanType,
6707
- nativeEnum: nativeEnumType,
6708
- never: neverType,
6709
- "null": nullType,
6710
- nullable: nullableType,
6711
- number: numberType,
6712
- object: objectType,
6713
- oboolean,
6714
- onumber,
6715
- optional: optionalType,
6716
- ostring,
6717
- pipeline: pipelineType,
6718
- preprocess: preprocessType,
6719
- promise: promiseType,
6720
- record: recordType,
6721
- set: setType,
6722
- strictObject: strictObjectType,
6723
- string: stringType,
6724
- symbol: symbolType,
6725
- transformer: effectsType,
6726
- tuple: tupleType,
6727
- "undefined": undefinedType,
6728
- union: unionType,
6729
- unknown: unknownType,
6730
- "void": voidType,
6731
- NEVER,
6732
- ZodIssueCode,
6733
- quotelessJson,
6734
- ZodError
6735
- });
6238
+ ZodNever.create;
6239
+ ZodArray.create;
6240
+ ZodUnion.create;
6241
+ ZodIntersection.create;
6242
+ ZodTuple.create;
6243
+ ZodEnum.create;
6244
+ ZodPromise.create;
6245
+ ZodOptional.create;
6246
+ ZodNullable.create;
6736
6247
  const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "development", "PROD": true, "SSR": false, "VITE_MODULES_CARDS_ADMIN_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org", "VITE_MODULES_CARDS_HOME_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org", "VITE_MODULES_CERT_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org", "VITE_MODULES_ENV": "dev", "VITE_MODULES_EVENTS_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org", "VITE_MODULES_SSO_BACKEND_BASE_URL": "https://dev-ssoapi.6seconds.org", "VITE_MODULES_SSO_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org", "VITE_MODULES_TOOLS_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org" };
6737
6248
  const env = createEnv({
6738
6249
  client: {
6739
- VITE_MODULES_ENV: z.string()
6250
+ VITE_MODULES_ENV: stringType()
6740
6251
  },
6741
6252
  runtimeEnv: __vite_import_meta_env__
6742
6253
  });
@@ -11449,19 +10960,20 @@ function createValidation(config) {
11449
10960
  abortEarly = schema.spec.abortEarly,
11450
10961
  disableStackTrace = schema.spec.disableStackTrace
11451
10962
  } = options;
11452
- function resolve(item) {
11453
- return Reference.isRef(item) ? item.getValue(value, parent, context) : item;
11454
- }
10963
+ const resolveOptions = {
10964
+ value,
10965
+ parent,
10966
+ context
10967
+ };
11455
10968
  function createError(overrides = {}) {
11456
- const nextParams = Object.assign({
10969
+ const nextParams = resolveParams(Object.assign({
11457
10970
  value,
11458
10971
  originalValue,
11459
10972
  label: schema.spec.label,
11460
10973
  path: overrides.path || path,
11461
10974
  spec: schema.spec,
11462
10975
  disableStackTrace: overrides.disableStackTrace || disableStackTrace
11463
- }, params, overrides.params);
11464
- for (const key of Object.keys(nextParams)) nextParams[key] = resolve(nextParams[key]);
10976
+ }, params, overrides.params), resolveOptions);
11465
10977
  const error = new ValidationError(ValidationError.formatError(overrides.message || message, nextParams), value, nextParams.path, overrides.type || name, nextParams.disableStackTrace);
11466
10978
  error.params = nextParams;
11467
10979
  return error;
@@ -11473,7 +10985,9 @@ function createValidation(config) {
11473
10985
  type: name,
11474
10986
  from: options.from,
11475
10987
  createError,
11476
- resolve,
10988
+ resolve(item) {
10989
+ return resolveMaybeRef(item, resolveOptions);
10990
+ },
11477
10991
  options,
11478
10992
  originalValue,
11479
10993
  schema
@@ -11510,6 +11024,16 @@ function createValidation(config) {
11510
11024
  validate.OPTIONS = config;
11511
11025
  return validate;
11512
11026
  }
11027
+ function resolveParams(params, options) {
11028
+ if (!params) return params;
11029
+ for (const key of Object.keys(params)) {
11030
+ params[key] = resolveMaybeRef(params[key], options);
11031
+ }
11032
+ return params;
11033
+ }
11034
+ function resolveMaybeRef(item, options) {
11035
+ return Reference.isRef(item) ? item.getValue(options.value, options.parent, options.context) : item;
11036
+ }
11513
11037
  function getIn(schema, path, value, context = value) {
11514
11038
  let parent, lastPart, lastPartDebug;
11515
11039
  if (!path) return {
@@ -11606,6 +11130,69 @@ function clone(src, seen = /* @__PURE__ */ new Map()) {
11606
11130
  }
11607
11131
  return copy2;
11608
11132
  }
11133
+ function createStandardPath(path) {
11134
+ if (!(path != null && path.length)) {
11135
+ return void 0;
11136
+ }
11137
+ const segments = [];
11138
+ let currentSegment = "";
11139
+ let inBrackets = false;
11140
+ let inQuotes = false;
11141
+ for (let i = 0; i < path.length; i++) {
11142
+ const char2 = path[i];
11143
+ if (char2 === "[" && !inQuotes) {
11144
+ if (currentSegment) {
11145
+ segments.push(...currentSegment.split(".").filter(Boolean));
11146
+ currentSegment = "";
11147
+ }
11148
+ inBrackets = true;
11149
+ continue;
11150
+ }
11151
+ if (char2 === "]" && !inQuotes) {
11152
+ if (currentSegment) {
11153
+ if (/^\d+$/.test(currentSegment)) {
11154
+ segments.push(currentSegment);
11155
+ } else {
11156
+ segments.push(currentSegment.replace(/^"|"$/g, ""));
11157
+ }
11158
+ currentSegment = "";
11159
+ }
11160
+ inBrackets = false;
11161
+ continue;
11162
+ }
11163
+ if (char2 === '"') {
11164
+ inQuotes = !inQuotes;
11165
+ continue;
11166
+ }
11167
+ if (char2 === "." && !inBrackets && !inQuotes) {
11168
+ if (currentSegment) {
11169
+ segments.push(currentSegment);
11170
+ currentSegment = "";
11171
+ }
11172
+ continue;
11173
+ }
11174
+ currentSegment += char2;
11175
+ }
11176
+ if (currentSegment) {
11177
+ segments.push(...currentSegment.split(".").filter(Boolean));
11178
+ }
11179
+ return segments;
11180
+ }
11181
+ function createStandardIssues(error, parentPath) {
11182
+ const path = parentPath ? `${parentPath}.${error.path}` : error.path;
11183
+ return error.errors.map((err) => ({
11184
+ message: err,
11185
+ path: createStandardPath(path)
11186
+ }));
11187
+ }
11188
+ function issuesFromValidationError(error, parentPath) {
11189
+ var _error$inner;
11190
+ if (!((_error$inner = error.inner) != null && _error$inner.length) && error.errors.length) {
11191
+ return createStandardIssues(error, parentPath);
11192
+ }
11193
+ const path = parentPath ? `${parentPath}.${error.path}` : error.path;
11194
+ return error.inner.flatMap((err) => issuesFromValidationError(err, path));
11195
+ }
11609
11196
  class Schema {
11610
11197
  constructor(options) {
11611
11198
  this.type = void 0;
@@ -11735,9 +11322,11 @@ class Schema {
11735
11322
  * Run the configured transform pipeline over an input value.
11736
11323
  */
11737
11324
  cast(value, options = {}) {
11738
- let resolvedSchema = this.resolve(Object.assign({
11325
+ let resolvedSchema = this.resolve(Object.assign({}, options, {
11739
11326
  value
11740
- }, options));
11327
+ // parent: options.parent,
11328
+ // context: options.context,
11329
+ }));
11741
11330
  let allowOptionality = options.assert === "ignore-optionality";
11742
11331
  let result = resolvedSchema._cast(value, options);
11743
11332
  if (options.assert !== false && !resolvedSchema.isType(result)) {
@@ -11754,7 +11343,7 @@ attempted value: ${formattedValue}
11754
11343
  return result;
11755
11344
  }
11756
11345
  _cast(rawValue, options) {
11757
- let value = rawValue === void 0 ? rawValue : this.transforms.reduce((prevValue, fn) => fn.call(this, prevValue, rawValue, this), rawValue);
11346
+ let value = rawValue === void 0 ? rawValue : this.transforms.reduce((prevValue, fn) => fn.call(this, prevValue, rawValue, this, options), rawValue);
11758
11347
  if (value === void 0) {
11759
11348
  value = this.getDefault(options);
11760
11349
  }
@@ -12149,13 +11738,41 @@ attempted value: ${formattedValue}
12149
11738
  type: next2.type,
12150
11739
  oneOf: next2._whitelist.describe(),
12151
11740
  notOneOf: next2._blacklist.describe(),
12152
- tests: next2.tests.map((fn) => ({
12153
- name: fn.OPTIONS.name,
12154
- params: fn.OPTIONS.params
12155
- })).filter((n, idx, list) => list.findIndex((c) => c.name === n.name) === idx)
11741
+ tests: next2.tests.filter((n, idx, list) => list.findIndex((c) => c.OPTIONS.name === n.OPTIONS.name) === idx).map((fn) => {
11742
+ const params = fn.OPTIONS.params && options ? resolveParams(Object.assign({}, fn.OPTIONS.params), options) : fn.OPTIONS.params;
11743
+ return {
11744
+ name: fn.OPTIONS.name,
11745
+ params
11746
+ };
11747
+ })
12156
11748
  };
12157
11749
  return description;
12158
11750
  }
11751
+ get ["~standard"]() {
11752
+ const schema = this;
11753
+ const standard = {
11754
+ version: 1,
11755
+ vendor: "yup",
11756
+ async validate(value) {
11757
+ try {
11758
+ const result = await schema.validate(value, {
11759
+ abortEarly: false
11760
+ });
11761
+ return {
11762
+ value: result
11763
+ };
11764
+ } catch (err) {
11765
+ if (err instanceof ValidationError) {
11766
+ return {
11767
+ issues: issuesFromValidationError(err)
11768
+ };
11769
+ }
11770
+ throw err;
11771
+ }
11772
+ }
11773
+ };
11774
+ return standard;
11775
+ }
12159
11776
  }
12160
11777
  Schema.prototype.__isYupSchema__ = true;
12161
11778
  for (const method of ["validate", "validateSync"]) Schema.prototype[`${method}At`] = function(path, value, options = {}) {
@@ -12254,8 +11871,8 @@ class StringSchema extends Schema {
12254
11871
  }
12255
11872
  });
12256
11873
  this.withMutation(() => {
12257
- this.transform((value, _raw, ctx) => {
12258
- if (!ctx.spec.coerce || ctx.isType(value)) return value;
11874
+ this.transform((value, _raw) => {
11875
+ if (!this.spec.coerce || this.isType(value)) return value;
12259
11876
  if (Array.isArray(value)) return value;
12260
11877
  const strValue = value != null && value.toString ? value.toString() : value;
12261
11878
  if (strValue === objStringTag) return value;
@@ -12457,15 +12074,15 @@ class NumberSchema extends Schema {
12457
12074
  }
12458
12075
  });
12459
12076
  this.withMutation(() => {
12460
- this.transform((value, _raw, ctx) => {
12461
- if (!ctx.spec.coerce) return value;
12077
+ this.transform((value, _raw) => {
12078
+ if (!this.spec.coerce) return value;
12462
12079
  let parsed = value;
12463
12080
  if (typeof parsed === "string") {
12464
12081
  parsed = parsed.replace(/\s/g, "");
12465
12082
  if (parsed === "") return NaN;
12466
12083
  parsed = +parsed;
12467
12084
  }
12468
- if (ctx.isType(parsed) || parsed === null) return parsed;
12085
+ if (this.isType(parsed) || parsed === null) return parsed;
12469
12086
  return parseFloat(parsed);
12470
12087
  });
12471
12088
  });
@@ -12564,8 +12181,8 @@ class DateSchema extends Schema {
12564
12181
  }
12565
12182
  });
12566
12183
  this.withMutation(() => {
12567
- this.transform((value, _raw, ctx) => {
12568
- if (!ctx.spec.coerce || ctx.isType(value) || value === null) return value;
12184
+ this.transform((value, _raw) => {
12185
+ if (!this.spec.coerce || this.isType(value) || value === null) return value;
12569
12186
  value = parseIsoDate(value);
12570
12187
  return !isNaN(value) ? new Date(value) : DateSchema.INVALID_DATE;
12571
12188
  });
@@ -12647,7 +12264,7 @@ function sortByKeyOrder(keys2) {
12647
12264
  return findIndex(keys2, a) - findIndex(keys2, b);
12648
12265
  };
12649
12266
  }
12650
- const parseJson = (value, _, ctx) => {
12267
+ const parseJson = (value, _, schema) => {
12651
12268
  if (typeof value !== "string") {
12652
12269
  return value;
12653
12270
  }
@@ -12656,7 +12273,7 @@ const parseJson = (value, _, ctx) => {
12656
12273
  parsed = JSON.parse(value);
12657
12274
  } catch (err) {
12658
12275
  }
12659
- return ctx.isType(parsed) ? parsed : value;
12276
+ return schema.isType(parsed) ? parsed : value;
12660
12277
  };
12661
12278
  function deepPartial(schema) {
12662
12279
  if ("fields" in schema) {
@@ -12732,9 +12349,9 @@ class ObjectSchema extends Schema {
12732
12349
  for (const prop of props) {
12733
12350
  let field = fields[prop];
12734
12351
  let exists = prop in value;
12352
+ let inputValue = value[prop];
12735
12353
  if (field) {
12736
12354
  let fieldValue;
12737
- let inputValue = value[prop];
12738
12355
  innerOptions.path = (options.path ? `${options.path}.` : "") + prop;
12739
12356
  field = field.resolve({
12740
12357
  value: inputValue,
@@ -12747,17 +12364,14 @@ class ObjectSchema extends Schema {
12747
12364
  isChanged = isChanged || prop in value;
12748
12365
  continue;
12749
12366
  }
12750
- fieldValue = !options.__validating || !strict ? (
12751
- // TODO: use _cast, this is double resolving
12752
- field.cast(value[prop], innerOptions)
12753
- ) : value[prop];
12367
+ fieldValue = !options.__validating || !strict ? field.cast(inputValue, innerOptions) : inputValue;
12754
12368
  if (fieldValue !== void 0) {
12755
12369
  intermediateValue[prop] = fieldValue;
12756
12370
  }
12757
12371
  } else if (exists && !strip) {
12758
- intermediateValue[prop] = value[prop];
12372
+ intermediateValue[prop] = inputValue;
12759
12373
  }
12760
- if (exists !== prop in intermediateValue || intermediateValue[prop] !== value[prop]) {
12374
+ if (exists !== prop in intermediateValue || intermediateValue[prop] !== inputValue) {
12761
12375
  isChanged = true;
12762
12376
  }
12763
12377
  }
@@ -13091,8 +12705,8 @@ function requireDist() {
13091
12705
  dist.default = urlcat2;
13092
12706
  function urlcatImpl(pathTemplate, params, baseUrl) {
13093
12707
  var _a = path(pathTemplate, params), renderedPath = _a.renderedPath, remainingParams = _a.remainingParams;
13094
- var cleanParams2 = removeNullOrUndef(remainingParams);
13095
- var renderedQuery = query(cleanParams2);
12708
+ var cleanParams = removeNullOrUndef(remainingParams);
12709
+ var renderedQuery = query(cleanParams);
13096
12710
  var pathAndQuery = join(renderedPath, "?", renderedQuery);
13097
12711
  return baseUrl ? join(baseUrl, "/", pathAndQuery) : pathAndQuery;
13098
12712
  }
@@ -13731,13 +13345,13 @@ function ViewProfileDialog({ userData, setInitialState, isOpen }) {
13731
13345
  material.Dialog,
13732
13346
  {
13733
13347
  fullWidth: false,
13734
- sx: { "& .MuiPaper-root": { maxWidth: "800px", borderRadius: "12px" } },
13348
+ sx: { "& .MuiPaper-root": { maxWidth: "800px", borderRadius: "12px", p: 2 } },
13735
13349
  onClose: () => handleCloseUtil(setInitialState),
13736
13350
  open: isOpen,
13737
13351
  "aria-labelledby": "draggable-dialog-title",
13738
13352
  children: [
13739
13353
  /* @__PURE__ */ jsxRuntime.jsxs(ProfileStyled, { children: [
13740
- /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { textAlign: "right", padding: "10px 10px 0px 0px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
13354
+ /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { textAlign: "right", padding: "10px 10px" }, children: /* @__PURE__ */ jsxRuntime.jsx(
13741
13355
  material.IconButton,
13742
13356
  {
13743
13357
  onClick: () => setInitialState((p) => ({ ...p, toggles: { ...p.toggles, viewProfile: false } })),
@@ -13746,7 +13360,7 @@ function ViewProfileDialog({ userData, setInitialState, isOpen }) {
13746
13360
  children: /* @__PURE__ */ jsxRuntime.jsx(CloseIcon, {})
13747
13361
  }
13748
13362
  ) }),
13749
- /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { p: 2 }, children: /* @__PURE__ */ jsxRuntime.jsxs(material.Grid, { container: true, spacing: 2, children: [
13363
+ /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { p: 2, paddingLeft: "35px" }, children: /* @__PURE__ */ jsxRuntime.jsxs(material.Grid, { container: true, spacing: 2, children: [
13750
13364
  /* @__PURE__ */ jsxRuntime.jsxs(material.Grid, { item: true, xs: 12, lg: 5, children: [
13751
13365
  /* @__PURE__ */ jsxRuntime.jsx(material.Box, { children: /* @__PURE__ */ jsxRuntime.jsx(
13752
13366
  material.Avatar,
@@ -13917,7 +13531,7 @@ function ChangePasswordDialog({ isOpen, email, t: t2, setInitialState }) {
13917
13531
  onClose: () => handleCloseUtil(setInitialState),
13918
13532
  open: isOpen,
13919
13533
  "aria-labelledby": "draggable-dialog-title",
13920
- children: /* @__PURE__ */ jsxRuntime.jsx("form", { onSubmit: formik.handleSubmit, children: /* @__PURE__ */ jsxRuntime.jsx(ChangePasswordStyled, { children: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { pr: { xs: 0, lg: 8 }, p: 2 }, children: [
13534
+ children: /* @__PURE__ */ jsxRuntime.jsx("form", { onSubmit: formik.handleSubmit, children: /* @__PURE__ */ jsxRuntime.jsx(ChangePasswordStyled, { children: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { p: { xs: 2, lg: 4 } }, children: [
13921
13535
  /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: "h6", sx: { display: "flex", alignItems: "center" }, className: "Heading", children: "Change Password" }),
13922
13536
  /* @__PURE__ */ jsxRuntime.jsx(
13923
13537
  material.Box,
@@ -13929,7 +13543,7 @@ function ChangePasswordDialog({ isOpen, email, t: t2, setInitialState }) {
13929
13543
  mt: 2
13930
13544
  },
13931
13545
  children: /* @__PURE__ */ jsxRuntime.jsxs(material.Grid, { container: true, spacing: 2, children: [
13932
- /* @__PURE__ */ jsxRuntime.jsxs(material.Grid, { item: true, xs: 12, lg: 6, children: [
13546
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Grid, { item: true, xs: 12, md: 6, sx: { paddingLeft: "16px" }, children: [
13933
13547
  /* @__PURE__ */ jsxRuntime.jsx(
13934
13548
  LabeledInput,
13935
13549
  {
@@ -13937,12 +13551,13 @@ function ChangePasswordDialog({ isOpen, email, t: t2, setInitialState }) {
13937
13551
  label: t2("New password"),
13938
13552
  fullWidth: true,
13939
13553
  size: "small",
13940
- ...formik.getFieldProps("newPassword")
13554
+ ...formik.getFieldProps("newPassword"),
13555
+ sx: { width: { md: "93%", lg: "93%", xs: "99%" } }
13941
13556
  }
13942
13557
  ),
13943
13558
  /* @__PURE__ */ jsxRuntime.jsx(ErrorMessage, { formik, fieldName: "newPassword" })
13944
13559
  ] }),
13945
- /* @__PURE__ */ jsxRuntime.jsxs(material.Grid, { item: true, xs: 12, lg: 6, children: [
13560
+ /* @__PURE__ */ jsxRuntime.jsxs(material.Grid, { item: true, xs: 12, md: 6, sx: { paddingLeft: { md: "0", lg: "0", xs: "16px" } }, children: [
13946
13561
  /* @__PURE__ */ jsxRuntime.jsx(
13947
13562
  LabeledInput,
13948
13563
  {
@@ -13950,7 +13565,8 @@ function ChangePasswordDialog({ isOpen, email, t: t2, setInitialState }) {
13950
13565
  label: t2("Confirm new password"),
13951
13566
  fullWidth: true,
13952
13567
  size: "small",
13953
- ...formik.getFieldProps("passwordConfirmation")
13568
+ ...formik.getFieldProps("passwordConfirmation"),
13569
+ sx: { width: { md: "99%", lg: "99%", xs: "99%" } }
13954
13570
  }
13955
13571
  ),
13956
13572
  /* @__PURE__ */ jsxRuntime.jsx(ErrorMessage, { formik, fieldName: "passwordConfirmation" })
@@ -13960,7 +13576,7 @@ function ChangePasswordDialog({ isOpen, email, t: t2, setInitialState }) {
13960
13576
  {
13961
13577
  isLoading: formik.isSubmitting,
13962
13578
  className: "invite",
13963
- sx: { width: "auto !important" },
13579
+ sx: { width: "auto !important", marginTop: "20px", marginLeft: "16px" },
13964
13580
  type: "submit",
13965
13581
  disabled: formik.isSubmitting,
13966
13582
  btnTitle: t2("Change Password")
@@ -14272,7 +13888,7 @@ function parseThreshold(scrollThreshold) {
14272
13888
  }
14273
13889
  var InfiniteScroll = (
14274
13890
  /** @class */
14275
- function(_super) {
13891
+ (function(_super) {
14276
13892
  __extends(InfiniteScroll2, _super);
14277
13893
  function InfiniteScroll2(props) {
14278
13894
  var _this = _super.call(this, props) || this;
@@ -14487,7 +14103,7 @@ var InfiniteScroll = (
14487
14103
  );
14488
14104
  };
14489
14105
  return InfiniteScroll2;
14490
- }(React.Component)
14106
+ })(React.Component)
14491
14107
  );
14492
14108
  const Notification = ({ setInitialState, notificationAccessApps, initialState, t: t2 }) => {
14493
14109
  const [notifications, setNotifications] = React.useState([]);
@@ -15526,7 +15142,7 @@ function createStyleElement(options) {
15526
15142
  tag.setAttribute("data-s", "");
15527
15143
  return tag;
15528
15144
  }
15529
- var StyleSheet = /* @__PURE__ */ function() {
15145
+ var StyleSheet = /* @__PURE__ */ (function() {
15530
15146
  function StyleSheet2(options) {
15531
15147
  var _this = this;
15532
15148
  this._insertTag = function(tag) {
@@ -15584,7 +15200,7 @@ var StyleSheet = /* @__PURE__ */ function() {
15584
15200
  this.ctr = 0;
15585
15201
  };
15586
15202
  return StyleSheet2;
15587
- }();
15203
+ })();
15588
15204
  var MS = "-ms-";
15589
15205
  var MOZ = "-moz-";
15590
15206
  var WEBKIT = "-webkit-";
@@ -15900,9 +15516,9 @@ function ruleset(value, root2, parent, index, offset2, rules, points, type, prop
15900
15516
  var rule = offset2 === 0 ? rules : [""];
15901
15517
  var size = sizeof(rule);
15902
15518
  for (var i = 0, j = 0, k = 0; i < index; ++i)
15903
- for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z2 = value; x < size; ++x)
15904
- if (z2 = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
15905
- props[k++] = z2;
15519
+ for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
15520
+ if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
15521
+ props[k++] = z;
15906
15522
  return node(value, root2, parent, offset2 === 0 ? RULESET : type, props, children, length2);
15907
15523
  }
15908
15524
  function comment(value, root2, parent) {