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.es.js CHANGED
@@ -531,10 +531,10 @@ function isFunction$2(value) {
531
531
  return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
532
532
  }
533
533
  var coreJsData = root["__core-js_shared__"];
534
- var maskSrcKey = function() {
534
+ var maskSrcKey = (function() {
535
535
  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
536
536
  return uid ? "Symbol(src)_1." + uid : "";
537
- }();
537
+ })();
538
538
  function isMasked(func) {
539
539
  return !!maskSrcKey && maskSrcKey in func;
540
540
  }
@@ -703,14 +703,14 @@ function arrayEach(array2, iteratee) {
703
703
  }
704
704
  return array2;
705
705
  }
706
- var defineProperty = function() {
706
+ var defineProperty = (function() {
707
707
  try {
708
708
  var func = getNative(Object, "defineProperty");
709
709
  func({}, "", {});
710
710
  return func;
711
711
  } catch (e) {
712
712
  }
713
- }();
713
+ })();
714
714
  function baseAssignValue(object2, key, value) {
715
715
  if (key == "__proto__" && defineProperty) {
716
716
  defineProperty(object2, key, {
@@ -763,9 +763,9 @@ function baseIsArguments(value) {
763
763
  var objectProto$6 = Object.prototype;
764
764
  var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
765
765
  var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
766
- var isArguments = baseIsArguments(/* @__PURE__ */ function() {
766
+ var isArguments = baseIsArguments(/* @__PURE__ */ (function() {
767
767
  return arguments;
768
- }()) ? baseIsArguments : function(value) {
768
+ })()) ? baseIsArguments : function(value) {
769
769
  return isObjectLike(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
770
770
  };
771
771
  var isArray$1 = Array.isArray;
@@ -806,7 +806,7 @@ var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType &
806
806
  var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
807
807
  var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
808
808
  var freeProcess = moduleExports$1 && freeGlobal.process;
809
- var nodeUtil = function() {
809
+ var nodeUtil = (function() {
810
810
  try {
811
811
  var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
812
812
  if (types) {
@@ -815,7 +815,7 @@ var nodeUtil = function() {
815
815
  return freeProcess && freeProcess.binding && freeProcess.binding("util");
816
816
  } catch (e) {
817
817
  }
818
- }();
818
+ })();
819
819
  var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
820
820
  var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
821
821
  var objectProto$5 = Object.prototype;
@@ -1066,7 +1066,7 @@ function initCloneByTag(object2, tag, isDeep) {
1066
1066
  }
1067
1067
  }
1068
1068
  var objectCreate = Object.create;
1069
- var baseCreate = /* @__PURE__ */ function() {
1069
+ var baseCreate = /* @__PURE__ */ (function() {
1070
1070
  function object2() {
1071
1071
  }
1072
1072
  return function(proto2) {
@@ -1081,7 +1081,7 @@ var baseCreate = /* @__PURE__ */ function() {
1081
1081
  object2.prototype = void 0;
1082
1082
  return result;
1083
1083
  };
1084
- }();
1084
+ })();
1085
1085
  function initCloneObject(object2) {
1086
1086
  return typeof object2.constructor == "function" && !isPrototype(object2) ? baseCreate(getPrototype(object2)) : {};
1087
1087
  }
@@ -1343,7 +1343,7 @@ function requireReactIs_production_min() {
1343
1343
  if (hasRequiredReactIs_production_min) return reactIs_production_min;
1344
1344
  hasRequiredReactIs_production_min = 1;
1345
1345
  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;
1346
- function z2(a) {
1346
+ function z(a) {
1347
1347
  if ("object" === typeof a && null !== a) {
1348
1348
  var u = a.$$typeof;
1349
1349
  switch (u) {
@@ -1374,7 +1374,7 @@ function requireReactIs_production_min() {
1374
1374
  }
1375
1375
  }
1376
1376
  function A(a) {
1377
- return z2(a) === m;
1377
+ return z(a) === m;
1378
1378
  }
1379
1379
  reactIs_production_min.AsyncMode = l;
1380
1380
  reactIs_production_min.ConcurrentMode = m;
@@ -1390,46 +1390,46 @@ function requireReactIs_production_min() {
1390
1390
  reactIs_production_min.StrictMode = f;
1391
1391
  reactIs_production_min.Suspense = p;
1392
1392
  reactIs_production_min.isAsyncMode = function(a) {
1393
- return A(a) || z2(a) === l;
1393
+ return A(a) || z(a) === l;
1394
1394
  };
1395
1395
  reactIs_production_min.isConcurrentMode = A;
1396
1396
  reactIs_production_min.isContextConsumer = function(a) {
1397
- return z2(a) === k;
1397
+ return z(a) === k;
1398
1398
  };
1399
1399
  reactIs_production_min.isContextProvider = function(a) {
1400
- return z2(a) === h;
1400
+ return z(a) === h;
1401
1401
  };
1402
1402
  reactIs_production_min.isElement = function(a) {
1403
1403
  return "object" === typeof a && null !== a && a.$$typeof === c;
1404
1404
  };
1405
1405
  reactIs_production_min.isForwardRef = function(a) {
1406
- return z2(a) === n;
1406
+ return z(a) === n;
1407
1407
  };
1408
1408
  reactIs_production_min.isFragment = function(a) {
1409
- return z2(a) === e;
1409
+ return z(a) === e;
1410
1410
  };
1411
1411
  reactIs_production_min.isLazy = function(a) {
1412
- return z2(a) === t;
1412
+ return z(a) === t;
1413
1413
  };
1414
1414
  reactIs_production_min.isMemo = function(a) {
1415
- return z2(a) === r;
1415
+ return z(a) === r;
1416
1416
  };
1417
1417
  reactIs_production_min.isPortal = function(a) {
1418
- return z2(a) === d;
1418
+ return z(a) === d;
1419
1419
  };
1420
1420
  reactIs_production_min.isProfiler = function(a) {
1421
- return z2(a) === g;
1421
+ return z(a) === g;
1422
1422
  };
1423
1423
  reactIs_production_min.isStrictMode = function(a) {
1424
- return z2(a) === f;
1424
+ return z(a) === f;
1425
1425
  };
1426
1426
  reactIs_production_min.isSuspense = function(a) {
1427
- return z2(a) === p;
1427
+ return z(a) === p;
1428
1428
  };
1429
1429
  reactIs_production_min.isValidElementType = function(a) {
1430
1430
  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);
1431
1431
  };
1432
- reactIs_production_min.typeOf = z2;
1432
+ reactIs_production_min.typeOf = z;
1433
1433
  return reactIs_production_min;
1434
1434
  }
1435
1435
  var reactIs_development = {};
@@ -2195,15 +2195,16 @@ function useFormik(_ref) {
2195
2195
  });
2196
2196
  }, []);
2197
2197
  var setFieldValue = useEventCallback(function(field, value, shouldValidate) {
2198
+ var resolvedValue = isFunction$1(value) ? value(getIn$1(state.values, field)) : value;
2198
2199
  dispatch({
2199
2200
  type: "SET_FIELD_VALUE",
2200
2201
  payload: {
2201
2202
  field,
2202
- value
2203
+ value: resolvedValue
2203
2204
  }
2204
2205
  });
2205
2206
  var willValidate = shouldValidate === void 0 ? validateOnChange : shouldValidate;
2206
- return willValidate ? validateFormWithHighPriority(setIn(state.values, field, value)) : Promise.resolve();
2207
+ return willValidate ? validateFormWithHighPriority(setIn(state.values, field, resolvedValue)) : Promise.resolve();
2207
2208
  });
2208
2209
  var executeChange = useCallback(function(eventOrTextValue, maybePath) {
2209
2210
  var field = maybePath;
@@ -2658,7 +2659,8 @@ function createEnv(opts) {
2658
2659
  }
2659
2660
  var util;
2660
2661
  (function(util2) {
2661
- util2.assertEqual = (val) => val;
2662
+ util2.assertEqual = (_) => {
2663
+ };
2662
2664
  function assertIs(_arg) {
2663
2665
  }
2664
2666
  util2.assertIs = assertIs;
@@ -2702,7 +2704,7 @@ var util;
2702
2704
  }
2703
2705
  return void 0;
2704
2706
  };
2705
- util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
2707
+ util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
2706
2708
  function joinValues(array2, separator = " | ") {
2707
2709
  return array2.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
2708
2710
  }
@@ -2754,7 +2756,7 @@ const getParsedType = (data) => {
2754
2756
  case "string":
2755
2757
  return ZodParsedType.string;
2756
2758
  case "number":
2757
- return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
2759
+ return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
2758
2760
  case "boolean":
2759
2761
  return ZodParsedType.boolean;
2760
2762
  case "function":
@@ -2805,10 +2807,6 @@ const ZodIssueCode = util.arrayToEnum([
2805
2807
  "not_multiple_of",
2806
2808
  "not_finite"
2807
2809
  ]);
2808
- const quotelessJson = (obj) => {
2809
- const json = JSON.stringify(obj, null, 2);
2810
- return json.replace(/"([^"]+)":/g, "$1:");
2811
- };
2812
2810
  class ZodError extends Error {
2813
2811
  get errors() {
2814
2812
  return this.issues;
@@ -2886,8 +2884,9 @@ class ZodError extends Error {
2886
2884
  const formErrors = [];
2887
2885
  for (const sub of this.issues) {
2888
2886
  if (sub.path.length > 0) {
2889
- fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
2890
- fieldErrors[sub.path[0]].push(mapper(sub));
2887
+ const firstEl = sub.path[0];
2888
+ fieldErrors[firstEl] = fieldErrors[firstEl] || [];
2889
+ fieldErrors[firstEl].push(mapper(sub));
2891
2890
  } else {
2892
2891
  formErrors.push(mapper(sub));
2893
2892
  }
@@ -2963,6 +2962,8 @@ const errorMap = (issue, _ctx) => {
2963
2962
  message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
2964
2963
  else if (issue.type === "number")
2965
2964
  message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
2965
+ else if (issue.type === "bigint")
2966
+ message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
2966
2967
  else if (issue.type === "date")
2967
2968
  message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
2968
2969
  else
@@ -3001,9 +3002,6 @@ const errorMap = (issue, _ctx) => {
3001
3002
  return { message };
3002
3003
  };
3003
3004
  let overrideErrorMap = errorMap;
3004
- function setErrorMap(map2) {
3005
- overrideErrorMap = map2;
3006
- }
3007
3005
  function getErrorMap() {
3008
3006
  return overrideErrorMap;
3009
3007
  }
@@ -3032,7 +3030,6 @@ const makeIssue = (params) => {
3032
3030
  message: errorMessage
3033
3031
  };
3034
3032
  };
3035
- const EMPTY_PATH = [];
3036
3033
  function addIssueToContext(ctx, issueData) {
3037
3034
  const overrideMap = getErrorMap();
3038
3035
  const issue = makeIssue({
@@ -3115,24 +3112,11 @@ const isAborted = (x) => x.status === "aborted";
3115
3112
  const isDirty = (x) => x.status === "dirty";
3116
3113
  const isValid$3 = (x) => x.status === "valid";
3117
3114
  const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
3118
- function __classPrivateFieldGet(receiver, state, kind, f) {
3119
- 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");
3120
- return state.get(receiver);
3121
- }
3122
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
3123
- 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");
3124
- return state.set(receiver, value), value;
3125
- }
3126
- typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
3127
- var e = new Error(message);
3128
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
3129
- };
3130
3115
  var errorUtil;
3131
3116
  (function(errorUtil2) {
3132
3117
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
3133
- errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
3118
+ errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
3134
3119
  })(errorUtil || (errorUtil = {}));
3135
- var _ZodEnum_cache, _ZodNativeEnum_cache;
3136
3120
  class ParseInputLazyPath {
3137
3121
  constructor(parent, value, path, key) {
3138
3122
  this._cachedPath = [];
@@ -3143,7 +3127,7 @@ class ParseInputLazyPath {
3143
3127
  }
3144
3128
  get path() {
3145
3129
  if (!this._cachedPath.length) {
3146
- if (this._key instanceof Array) {
3130
+ if (Array.isArray(this._key)) {
3147
3131
  this._cachedPath.push(...this._path, ...this._key);
3148
3132
  } else {
3149
3133
  this._cachedPath.push(...this._path, this._key);
@@ -3181,17 +3165,16 @@ function processCreateParams(params) {
3181
3165
  if (errorMap2)
3182
3166
  return { errorMap: errorMap2, description };
3183
3167
  const customMap = (iss, ctx) => {
3184
- var _a, _b;
3185
3168
  const { message } = params;
3186
3169
  if (iss.code === "invalid_enum_value") {
3187
- return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
3170
+ return { message: message ?? ctx.defaultError };
3188
3171
  }
3189
3172
  if (typeof ctx.data === "undefined") {
3190
- return { message: (_a = message !== null && message !== void 0 ? message : required_error) !== null && _a !== void 0 ? _a : ctx.defaultError };
3173
+ return { message: message ?? required_error ?? ctx.defaultError };
3191
3174
  }
3192
3175
  if (iss.code !== "invalid_type")
3193
3176
  return { message: ctx.defaultError };
3194
- return { message: (_b = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b !== void 0 ? _b : ctx.defaultError };
3177
+ return { message: message ?? invalid_type_error ?? ctx.defaultError };
3195
3178
  };
3196
3179
  return { errorMap: customMap, description };
3197
3180
  }
@@ -3243,14 +3226,13 @@ class ZodType {
3243
3226
  throw result.error;
3244
3227
  }
3245
3228
  safeParse(data, params) {
3246
- var _a;
3247
3229
  const ctx = {
3248
3230
  common: {
3249
3231
  issues: [],
3250
- async: (_a = params === null || params === void 0 ? void 0 : params.async) !== null && _a !== void 0 ? _a : false,
3251
- contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap
3232
+ async: params?.async ?? false,
3233
+ contextualErrorMap: params?.errorMap
3252
3234
  },
3253
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
3235
+ path: params?.path || [],
3254
3236
  schemaErrorMap: this._def.errorMap,
3255
3237
  parent: null,
3256
3238
  data,
@@ -3260,7 +3242,6 @@ class ZodType {
3260
3242
  return handleResult(ctx, result);
3261
3243
  }
3262
3244
  "~validate"(data) {
3263
- var _a, _b;
3264
3245
  const ctx = {
3265
3246
  common: {
3266
3247
  issues: [],
@@ -3281,7 +3262,7 @@ class ZodType {
3281
3262
  issues: ctx.common.issues
3282
3263
  };
3283
3264
  } catch (err) {
3284
- 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")) {
3265
+ if (err?.message?.toLowerCase()?.includes("encountered")) {
3285
3266
  this["~standard"].async = true;
3286
3267
  }
3287
3268
  ctx.common = {
@@ -3306,10 +3287,10 @@ class ZodType {
3306
3287
  const ctx = {
3307
3288
  common: {
3308
3289
  issues: [],
3309
- contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,
3290
+ contextualErrorMap: params?.errorMap,
3310
3291
  async: true
3311
3292
  },
3312
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
3293
+ path: params?.path || [],
3313
3294
  schemaErrorMap: this._def.errorMap,
3314
3295
  parent: null,
3315
3296
  data,
@@ -3534,16 +3515,20 @@ function isValidJWT(jwt, alg) {
3534
3515
  return false;
3535
3516
  try {
3536
3517
  const [header] = jwt.split(".");
3518
+ if (!header)
3519
+ return false;
3537
3520
  const base64 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
3538
3521
  const decoded = JSON.parse(atob(base64));
3539
3522
  if (typeof decoded !== "object" || decoded === null)
3540
3523
  return false;
3541
- if (!decoded.typ || !decoded.alg)
3524
+ if ("typ" in decoded && decoded?.typ !== "JWT")
3525
+ return false;
3526
+ if (!decoded.alg)
3542
3527
  return false;
3543
3528
  if (alg && decoded.alg !== alg)
3544
3529
  return false;
3545
3530
  return true;
3546
- } catch (_a) {
3531
+ } catch {
3547
3532
  return false;
3548
3533
  }
3549
3534
  }
@@ -3702,7 +3687,7 @@ class ZodString extends ZodType {
3702
3687
  } else if (check.kind === "url") {
3703
3688
  try {
3704
3689
  new URL(input.data);
3705
- } catch (_a) {
3690
+ } catch {
3706
3691
  ctx = this._getOrReturnCtx(input, ctx);
3707
3692
  addIssueToContext(ctx, {
3708
3693
  validation: "url",
@@ -3914,7 +3899,6 @@ class ZodString extends ZodType {
3914
3899
  return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
3915
3900
  }
3916
3901
  datetime(options) {
3917
- var _a, _b;
3918
3902
  if (typeof options === "string") {
3919
3903
  return this._addCheck({
3920
3904
  kind: "datetime",
@@ -3926,10 +3910,10 @@ class ZodString extends ZodType {
3926
3910
  }
3927
3911
  return this._addCheck({
3928
3912
  kind: "datetime",
3929
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
3930
- offset: (_a = options === null || options === void 0 ? void 0 : options.offset) !== null && _a !== void 0 ? _a : false,
3931
- local: (_b = options === null || options === void 0 ? void 0 : options.local) !== null && _b !== void 0 ? _b : false,
3932
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
3913
+ precision: typeof options?.precision === "undefined" ? null : options?.precision,
3914
+ offset: options?.offset ?? false,
3915
+ local: options?.local ?? false,
3916
+ ...errorUtil.errToObj(options?.message)
3933
3917
  });
3934
3918
  }
3935
3919
  date(message) {
@@ -3945,8 +3929,8 @@ class ZodString extends ZodType {
3945
3929
  }
3946
3930
  return this._addCheck({
3947
3931
  kind: "time",
3948
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
3949
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
3932
+ precision: typeof options?.precision === "undefined" ? null : options?.precision,
3933
+ ...errorUtil.errToObj(options?.message)
3950
3934
  });
3951
3935
  }
3952
3936
  duration(message) {
@@ -3963,8 +3947,8 @@ class ZodString extends ZodType {
3963
3947
  return this._addCheck({
3964
3948
  kind: "includes",
3965
3949
  value,
3966
- position: options === null || options === void 0 ? void 0 : options.position,
3967
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
3950
+ position: options?.position,
3951
+ ...errorUtil.errToObj(options?.message)
3968
3952
  });
3969
3953
  }
3970
3954
  startsWith(value, message) {
@@ -4096,11 +4080,10 @@ class ZodString extends ZodType {
4096
4080
  }
4097
4081
  }
4098
4082
  ZodString.create = (params) => {
4099
- var _a;
4100
4083
  return new ZodString({
4101
4084
  checks: [],
4102
4085
  typeName: ZodFirstPartyTypeKind.ZodString,
4103
- coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,
4086
+ coerce: params?.coerce ?? false,
4104
4087
  ...processCreateParams(params)
4105
4088
  });
4106
4089
  };
@@ -4108,9 +4091,9 @@ function floatSafeRemainder(val, step) {
4108
4091
  const valDecCount = (val.toString().split(".")[1] || "").length;
4109
4092
  const stepDecCount = (step.toString().split(".")[1] || "").length;
4110
4093
  const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
4111
- const valInt = parseInt(val.toFixed(decCount).replace(".", ""));
4112
- const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));
4113
- return valInt % stepInt / Math.pow(10, decCount);
4094
+ const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
4095
+ const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
4096
+ return valInt % stepInt / 10 ** decCount;
4114
4097
  }
4115
4098
  class ZodNumber extends ZodType {
4116
4099
  constructor() {
@@ -4320,7 +4303,8 @@ class ZodNumber extends ZodType {
4320
4303
  return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value));
4321
4304
  }
4322
4305
  get isFinite() {
4323
- let max2 = null, min2 = null;
4306
+ let max2 = null;
4307
+ let min2 = null;
4324
4308
  for (const ch of this._def.checks) {
4325
4309
  if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
4326
4310
  return true;
@@ -4339,7 +4323,7 @@ ZodNumber.create = (params) => {
4339
4323
  return new ZodNumber({
4340
4324
  checks: [],
4341
4325
  typeName: ZodFirstPartyTypeKind.ZodNumber,
4342
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
4326
+ coerce: params?.coerce || false,
4343
4327
  ...processCreateParams(params)
4344
4328
  });
4345
4329
  };
@@ -4353,7 +4337,7 @@ class ZodBigInt extends ZodType {
4353
4337
  if (this._def.coerce) {
4354
4338
  try {
4355
4339
  input.data = BigInt(input.data);
4356
- } catch (_a) {
4340
+ } catch {
4357
4341
  return this._getInvalidInput(input);
4358
4342
  }
4359
4343
  }
@@ -4508,11 +4492,10 @@ class ZodBigInt extends ZodType {
4508
4492
  }
4509
4493
  }
4510
4494
  ZodBigInt.create = (params) => {
4511
- var _a;
4512
4495
  return new ZodBigInt({
4513
4496
  checks: [],
4514
4497
  typeName: ZodFirstPartyTypeKind.ZodBigInt,
4515
- coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,
4498
+ coerce: params?.coerce ?? false,
4516
4499
  ...processCreateParams(params)
4517
4500
  });
4518
4501
  };
@@ -4537,7 +4520,7 @@ class ZodBoolean extends ZodType {
4537
4520
  ZodBoolean.create = (params) => {
4538
4521
  return new ZodBoolean({
4539
4522
  typeName: ZodFirstPartyTypeKind.ZodBoolean,
4540
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
4523
+ coerce: params?.coerce || false,
4541
4524
  ...processCreateParams(params)
4542
4525
  });
4543
4526
  };
@@ -4556,7 +4539,7 @@ class ZodDate extends ZodType {
4556
4539
  });
4557
4540
  return INVALID;
4558
4541
  }
4559
- if (isNaN(input.data.getTime())) {
4542
+ if (Number.isNaN(input.data.getTime())) {
4560
4543
  const ctx2 = this._getOrReturnCtx(input);
4561
4544
  addIssueToContext(ctx2, {
4562
4545
  code: ZodIssueCode.invalid_date
@@ -4645,7 +4628,7 @@ class ZodDate extends ZodType {
4645
4628
  ZodDate.create = (params) => {
4646
4629
  return new ZodDate({
4647
4630
  checks: [],
4648
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
4631
+ coerce: params?.coerce || false,
4649
4632
  typeName: ZodFirstPartyTypeKind.ZodDate,
4650
4633
  ...processCreateParams(params)
4651
4634
  });
@@ -4920,7 +4903,8 @@ class ZodObject extends ZodType {
4920
4903
  return this._cached;
4921
4904
  const shape = this._def.shape();
4922
4905
  const keys2 = util.objectKeys(shape);
4923
- return this._cached = { shape, keys: keys2 };
4906
+ this._cached = { shape, keys: keys2 };
4907
+ return this._cached;
4924
4908
  }
4925
4909
  _parse(input) {
4926
4910
  const parsedType = this._getType(input);
@@ -5018,11 +5002,10 @@ class ZodObject extends ZodType {
5018
5002
  unknownKeys: "strict",
5019
5003
  ...message !== void 0 ? {
5020
5004
  errorMap: (issue, ctx) => {
5021
- var _a, _b, _c, _d;
5022
- 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;
5005
+ const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;
5023
5006
  if (issue.code === "unrecognized_keys")
5024
5007
  return {
5025
- message: (_d = errorUtil.errToObj(message).message) !== null && _d !== void 0 ? _d : defaultError
5008
+ message: errorUtil.errToObj(message).message ?? defaultError
5026
5009
  };
5027
5010
  return {
5028
5011
  message: defaultError
@@ -5153,11 +5136,11 @@ class ZodObject extends ZodType {
5153
5136
  }
5154
5137
  pick(mask) {
5155
5138
  const shape = {};
5156
- util.objectKeys(mask).forEach((key) => {
5139
+ for (const key of util.objectKeys(mask)) {
5157
5140
  if (mask[key] && this.shape[key]) {
5158
5141
  shape[key] = this.shape[key];
5159
5142
  }
5160
- });
5143
+ }
5161
5144
  return new ZodObject({
5162
5145
  ...this._def,
5163
5146
  shape: () => shape
@@ -5165,11 +5148,11 @@ class ZodObject extends ZodType {
5165
5148
  }
5166
5149
  omit(mask) {
5167
5150
  const shape = {};
5168
- util.objectKeys(this.shape).forEach((key) => {
5151
+ for (const key of util.objectKeys(this.shape)) {
5169
5152
  if (!mask[key]) {
5170
5153
  shape[key] = this.shape[key];
5171
5154
  }
5172
- });
5155
+ }
5173
5156
  return new ZodObject({
5174
5157
  ...this._def,
5175
5158
  shape: () => shape
@@ -5183,14 +5166,14 @@ class ZodObject extends ZodType {
5183
5166
  }
5184
5167
  partial(mask) {
5185
5168
  const newShape = {};
5186
- util.objectKeys(this.shape).forEach((key) => {
5169
+ for (const key of util.objectKeys(this.shape)) {
5187
5170
  const fieldSchema = this.shape[key];
5188
5171
  if (mask && !mask[key]) {
5189
5172
  newShape[key] = fieldSchema;
5190
5173
  } else {
5191
5174
  newShape[key] = fieldSchema.optional();
5192
5175
  }
5193
- });
5176
+ }
5194
5177
  return new ZodObject({
5195
5178
  ...this._def,
5196
5179
  shape: () => newShape
@@ -5198,7 +5181,7 @@ class ZodObject extends ZodType {
5198
5181
  }
5199
5182
  required(mask) {
5200
5183
  const newShape = {};
5201
- util.objectKeys(this.shape).forEach((key) => {
5184
+ for (const key of util.objectKeys(this.shape)) {
5202
5185
  if (mask && !mask[key]) {
5203
5186
  newShape[key] = this.shape[key];
5204
5187
  } else {
@@ -5209,7 +5192,7 @@ class ZodObject extends ZodType {
5209
5192
  }
5210
5193
  newShape[key] = newField;
5211
5194
  }
5212
- });
5195
+ }
5213
5196
  return new ZodObject({
5214
5197
  ...this._def,
5215
5198
  shape: () => newShape
@@ -5337,113 +5320,6 @@ ZodUnion.create = (types, params) => {
5337
5320
  ...processCreateParams(params)
5338
5321
  });
5339
5322
  };
5340
- const getDiscriminator = (type) => {
5341
- if (type instanceof ZodLazy) {
5342
- return getDiscriminator(type.schema);
5343
- } else if (type instanceof ZodEffects) {
5344
- return getDiscriminator(type.innerType());
5345
- } else if (type instanceof ZodLiteral) {
5346
- return [type.value];
5347
- } else if (type instanceof ZodEnum) {
5348
- return type.options;
5349
- } else if (type instanceof ZodNativeEnum) {
5350
- return util.objectValues(type.enum);
5351
- } else if (type instanceof ZodDefault) {
5352
- return getDiscriminator(type._def.innerType);
5353
- } else if (type instanceof ZodUndefined) {
5354
- return [void 0];
5355
- } else if (type instanceof ZodNull) {
5356
- return [null];
5357
- } else if (type instanceof ZodOptional) {
5358
- return [void 0, ...getDiscriminator(type.unwrap())];
5359
- } else if (type instanceof ZodNullable) {
5360
- return [null, ...getDiscriminator(type.unwrap())];
5361
- } else if (type instanceof ZodBranded) {
5362
- return getDiscriminator(type.unwrap());
5363
- } else if (type instanceof ZodReadonly) {
5364
- return getDiscriminator(type.unwrap());
5365
- } else if (type instanceof ZodCatch) {
5366
- return getDiscriminator(type._def.innerType);
5367
- } else {
5368
- return [];
5369
- }
5370
- };
5371
- class ZodDiscriminatedUnion extends ZodType {
5372
- _parse(input) {
5373
- const { ctx } = this._processInputParams(input);
5374
- if (ctx.parsedType !== ZodParsedType.object) {
5375
- addIssueToContext(ctx, {
5376
- code: ZodIssueCode.invalid_type,
5377
- expected: ZodParsedType.object,
5378
- received: ctx.parsedType
5379
- });
5380
- return INVALID;
5381
- }
5382
- const discriminator = this.discriminator;
5383
- const discriminatorValue = ctx.data[discriminator];
5384
- const option = this.optionsMap.get(discriminatorValue);
5385
- if (!option) {
5386
- addIssueToContext(ctx, {
5387
- code: ZodIssueCode.invalid_union_discriminator,
5388
- options: Array.from(this.optionsMap.keys()),
5389
- path: [discriminator]
5390
- });
5391
- return INVALID;
5392
- }
5393
- if (ctx.common.async) {
5394
- return option._parseAsync({
5395
- data: ctx.data,
5396
- path: ctx.path,
5397
- parent: ctx
5398
- });
5399
- } else {
5400
- return option._parseSync({
5401
- data: ctx.data,
5402
- path: ctx.path,
5403
- parent: ctx
5404
- });
5405
- }
5406
- }
5407
- get discriminator() {
5408
- return this._def.discriminator;
5409
- }
5410
- get options() {
5411
- return this._def.options;
5412
- }
5413
- get optionsMap() {
5414
- return this._def.optionsMap;
5415
- }
5416
- /**
5417
- * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
5418
- * However, it only allows a union of objects, all of which need to share a discriminator property. This property must
5419
- * have a different value for each object in the union.
5420
- * @param discriminator the name of the discriminator property
5421
- * @param types an array of object schemas
5422
- * @param params
5423
- */
5424
- static create(discriminator, options, params) {
5425
- const optionsMap = /* @__PURE__ */ new Map();
5426
- for (const type of options) {
5427
- const discriminatorValues = getDiscriminator(type.shape[discriminator]);
5428
- if (!discriminatorValues.length) {
5429
- throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
5430
- }
5431
- for (const value of discriminatorValues) {
5432
- if (optionsMap.has(value)) {
5433
- throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
5434
- }
5435
- optionsMap.set(value, type);
5436
- }
5437
- }
5438
- return new ZodDiscriminatedUnion({
5439
- typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,
5440
- discriminator,
5441
- options,
5442
- optionsMap,
5443
- ...processCreateParams(params)
5444
- });
5445
- }
5446
- }
5447
5323
  function mergeValues(a, b) {
5448
5324
  const aType = getParsedType(a);
5449
5325
  const bType = getParsedType(b);
@@ -5602,59 +5478,6 @@ ZodTuple.create = (schemas, params) => {
5602
5478
  ...processCreateParams(params)
5603
5479
  });
5604
5480
  };
5605
- class ZodRecord extends ZodType {
5606
- get keySchema() {
5607
- return this._def.keyType;
5608
- }
5609
- get valueSchema() {
5610
- return this._def.valueType;
5611
- }
5612
- _parse(input) {
5613
- const { status, ctx } = this._processInputParams(input);
5614
- if (ctx.parsedType !== ZodParsedType.object) {
5615
- addIssueToContext(ctx, {
5616
- code: ZodIssueCode.invalid_type,
5617
- expected: ZodParsedType.object,
5618
- received: ctx.parsedType
5619
- });
5620
- return INVALID;
5621
- }
5622
- const pairs = [];
5623
- const keyType = this._def.keyType;
5624
- const valueType = this._def.valueType;
5625
- for (const key in ctx.data) {
5626
- pairs.push({
5627
- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),
5628
- value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),
5629
- alwaysSet: key in ctx.data
5630
- });
5631
- }
5632
- if (ctx.common.async) {
5633
- return ParseStatus.mergeObjectAsync(status, pairs);
5634
- } else {
5635
- return ParseStatus.mergeObjectSync(status, pairs);
5636
- }
5637
- }
5638
- get element() {
5639
- return this._def.valueType;
5640
- }
5641
- static create(first, second, third) {
5642
- if (second instanceof ZodType) {
5643
- return new ZodRecord({
5644
- keyType: first,
5645
- valueType: second,
5646
- typeName: ZodFirstPartyTypeKind.ZodRecord,
5647
- ...processCreateParams(third)
5648
- });
5649
- }
5650
- return new ZodRecord({
5651
- keyType: ZodString.create(),
5652
- valueType: first,
5653
- typeName: ZodFirstPartyTypeKind.ZodRecord,
5654
- ...processCreateParams(second)
5655
- });
5656
- }
5657
- }
5658
5481
  class ZodMap extends ZodType {
5659
5482
  get keySchema() {
5660
5483
  return this._def.keyType;
@@ -5806,121 +5629,6 @@ ZodSet.create = (valueType, params) => {
5806
5629
  ...processCreateParams(params)
5807
5630
  });
5808
5631
  };
5809
- class ZodFunction extends ZodType {
5810
- constructor() {
5811
- super(...arguments);
5812
- this.validate = this.implement;
5813
- }
5814
- _parse(input) {
5815
- const { ctx } = this._processInputParams(input);
5816
- if (ctx.parsedType !== ZodParsedType.function) {
5817
- addIssueToContext(ctx, {
5818
- code: ZodIssueCode.invalid_type,
5819
- expected: ZodParsedType.function,
5820
- received: ctx.parsedType
5821
- });
5822
- return INVALID;
5823
- }
5824
- function makeArgsIssue(args, error) {
5825
- return makeIssue({
5826
- data: args,
5827
- path: ctx.path,
5828
- errorMaps: [
5829
- ctx.common.contextualErrorMap,
5830
- ctx.schemaErrorMap,
5831
- getErrorMap(),
5832
- errorMap
5833
- ].filter((x) => !!x),
5834
- issueData: {
5835
- code: ZodIssueCode.invalid_arguments,
5836
- argumentsError: error
5837
- }
5838
- });
5839
- }
5840
- function makeReturnsIssue(returns, error) {
5841
- return makeIssue({
5842
- data: returns,
5843
- path: ctx.path,
5844
- errorMaps: [
5845
- ctx.common.contextualErrorMap,
5846
- ctx.schemaErrorMap,
5847
- getErrorMap(),
5848
- errorMap
5849
- ].filter((x) => !!x),
5850
- issueData: {
5851
- code: ZodIssueCode.invalid_return_type,
5852
- returnTypeError: error
5853
- }
5854
- });
5855
- }
5856
- const params = { errorMap: ctx.common.contextualErrorMap };
5857
- const fn = ctx.data;
5858
- if (this._def.returns instanceof ZodPromise) {
5859
- const me = this;
5860
- return OK(async function(...args) {
5861
- const error = new ZodError([]);
5862
- const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {
5863
- error.addIssue(makeArgsIssue(args, e));
5864
- throw error;
5865
- });
5866
- const result = await Reflect.apply(fn, this, parsedArgs);
5867
- const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e) => {
5868
- error.addIssue(makeReturnsIssue(result, e));
5869
- throw error;
5870
- });
5871
- return parsedReturns;
5872
- });
5873
- } else {
5874
- const me = this;
5875
- return OK(function(...args) {
5876
- const parsedArgs = me._def.args.safeParse(args, params);
5877
- if (!parsedArgs.success) {
5878
- throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
5879
- }
5880
- const result = Reflect.apply(fn, this, parsedArgs.data);
5881
- const parsedReturns = me._def.returns.safeParse(result, params);
5882
- if (!parsedReturns.success) {
5883
- throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
5884
- }
5885
- return parsedReturns.data;
5886
- });
5887
- }
5888
- }
5889
- parameters() {
5890
- return this._def.args;
5891
- }
5892
- returnType() {
5893
- return this._def.returns;
5894
- }
5895
- args(...items) {
5896
- return new ZodFunction({
5897
- ...this._def,
5898
- args: ZodTuple.create(items).rest(ZodUnknown.create())
5899
- });
5900
- }
5901
- returns(returnType) {
5902
- return new ZodFunction({
5903
- ...this._def,
5904
- returns: returnType
5905
- });
5906
- }
5907
- implement(func) {
5908
- const validatedFunc = this.parse(func);
5909
- return validatedFunc;
5910
- }
5911
- strictImplement(func) {
5912
- const validatedFunc = this.parse(func);
5913
- return validatedFunc;
5914
- }
5915
- static create(args, returns, params) {
5916
- return new ZodFunction({
5917
- args: args ? args : ZodTuple.create([]).rest(ZodUnknown.create()),
5918
- returns: returns || ZodUnknown.create(),
5919
- typeName: ZodFirstPartyTypeKind.ZodFunction,
5920
- ...processCreateParams(params)
5921
- });
5922
- }
5923
- }
5924
5632
  class ZodLazy extends ZodType {
5925
5633
  get schema() {
5926
5634
  return this._def.getter();
@@ -5970,10 +5678,6 @@ function createZodEnum(values, params) {
5970
5678
  });
5971
5679
  }
5972
5680
  class ZodEnum extends ZodType {
5973
- constructor() {
5974
- super(...arguments);
5975
- _ZodEnum_cache.set(this, void 0);
5976
- }
5977
5681
  _parse(input) {
5978
5682
  if (typeof input.data !== "string") {
5979
5683
  const ctx = this._getOrReturnCtx(input);
@@ -5985,10 +5689,10 @@ class ZodEnum extends ZodType {
5985
5689
  });
5986
5690
  return INVALID;
5987
5691
  }
5988
- if (!__classPrivateFieldGet(this, _ZodEnum_cache)) {
5989
- __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values));
5692
+ if (!this._cache) {
5693
+ this._cache = new Set(this._def.values);
5990
5694
  }
5991
- if (!__classPrivateFieldGet(this, _ZodEnum_cache).has(input.data)) {
5695
+ if (!this._cache.has(input.data)) {
5992
5696
  const ctx = this._getOrReturnCtx(input);
5993
5697
  const expectedValues = this._def.values;
5994
5698
  addIssueToContext(ctx, {
@@ -6037,13 +5741,8 @@ class ZodEnum extends ZodType {
6037
5741
  });
6038
5742
  }
6039
5743
  }
6040
- _ZodEnum_cache = /* @__PURE__ */ new WeakMap();
6041
5744
  ZodEnum.create = createZodEnum;
6042
5745
  class ZodNativeEnum extends ZodType {
6043
- constructor() {
6044
- super(...arguments);
6045
- _ZodNativeEnum_cache.set(this, void 0);
6046
- }
6047
5746
  _parse(input) {
6048
5747
  const nativeEnumValues = util.getValidEnumValues(this._def.values);
6049
5748
  const ctx = this._getOrReturnCtx(input);
@@ -6056,10 +5755,10 @@ class ZodNativeEnum extends ZodType {
6056
5755
  });
6057
5756
  return INVALID;
6058
5757
  }
6059
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache)) {
6060
- __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)));
5758
+ if (!this._cache) {
5759
+ this._cache = new Set(util.getValidEnumValues(this._def.values));
6061
5760
  }
6062
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache).has(input.data)) {
5761
+ if (!this._cache.has(input.data)) {
6063
5762
  const expectedValues = util.objectValues(nativeEnumValues);
6064
5763
  addIssueToContext(ctx, {
6065
5764
  received: ctx.data,
@@ -6074,7 +5773,6 @@ class ZodNativeEnum extends ZodType {
6074
5773
  return this._def.values;
6075
5774
  }
6076
5775
  }
6077
- _ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap();
6078
5776
  ZodNativeEnum.create = (values, params) => {
6079
5777
  return new ZodNativeEnum({
6080
5778
  values,
@@ -6215,7 +5913,7 @@ class ZodEffects extends ZodType {
6215
5913
  parent: ctx
6216
5914
  });
6217
5915
  if (!isValid$3(base))
6218
- return base;
5916
+ return INVALID;
6219
5917
  const result = effect.transform(base.value, checkCtx);
6220
5918
  if (result instanceof Promise) {
6221
5919
  throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
@@ -6224,8 +5922,11 @@ class ZodEffects extends ZodType {
6224
5922
  } else {
6225
5923
  return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
6226
5924
  if (!isValid$3(base))
6227
- return base;
6228
- return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));
5925
+ return INVALID;
5926
+ return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
5927
+ status: status.value,
5928
+ value: result
5929
+ }));
6229
5930
  });
6230
5931
  }
6231
5932
  }
@@ -6385,7 +6086,6 @@ ZodNaN.create = (params) => {
6385
6086
  ...processCreateParams(params)
6386
6087
  });
6387
6088
  };
6388
- const BRAND = Symbol("zod_brand");
6389
6089
  class ZodBranded extends ZodType {
6390
6090
  _parse(input) {
6391
6091
  const { ctx } = this._processInputParams(input);
@@ -6477,38 +6177,6 @@ ZodReadonly.create = (type, params) => {
6477
6177
  ...processCreateParams(params)
6478
6178
  });
6479
6179
  };
6480
- function cleanParams(params, data) {
6481
- const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
6482
- const p2 = typeof p === "string" ? { message: p } : p;
6483
- return p2;
6484
- }
6485
- function custom(check, _params = {}, fatal) {
6486
- if (check)
6487
- return ZodAny.create().superRefine((data, ctx) => {
6488
- var _a, _b;
6489
- const r = check(data);
6490
- if (r instanceof Promise) {
6491
- return r.then((r2) => {
6492
- var _a2, _b2;
6493
- if (!r2) {
6494
- const params = cleanParams(_params, data);
6495
- const _fatal = (_b2 = (_a2 = params.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b2 !== void 0 ? _b2 : true;
6496
- ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
6497
- }
6498
- });
6499
- }
6500
- if (!r) {
6501
- const params = cleanParams(_params, data);
6502
- const _fatal = (_b = (_a = params.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
6503
- ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
6504
- }
6505
- return;
6506
- });
6507
- return ZodAny.create();
6508
- }
6509
- const late = {
6510
- object: ZodObject.lazycreate
6511
- };
6512
6180
  var ZodFirstPartyTypeKind;
6513
6181
  (function(ZodFirstPartyTypeKind2) {
6514
6182
  ZodFirstPartyTypeKind2["ZodString"] = "ZodString";
@@ -6548,177 +6216,20 @@ var ZodFirstPartyTypeKind;
6548
6216
  ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline";
6549
6217
  ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly";
6550
6218
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
6551
- const instanceOfType = (cls, params = {
6552
- message: `Input not instance of ${cls.name}`
6553
- }) => custom((data) => data instanceof cls, params);
6554
6219
  const stringType = ZodString.create;
6555
- const numberType = ZodNumber.create;
6556
- const nanType = ZodNaN.create;
6557
- const bigIntType = ZodBigInt.create;
6558
- const booleanType = ZodBoolean.create;
6559
- const dateType = ZodDate.create;
6560
- const symbolType = ZodSymbol.create;
6561
- const undefinedType = ZodUndefined.create;
6562
- const nullType = ZodNull.create;
6563
- const anyType = ZodAny.create;
6564
- const unknownType = ZodUnknown.create;
6565
- const neverType = ZodNever.create;
6566
- const voidType = ZodVoid.create;
6567
- const arrayType = ZodArray.create;
6568
- const objectType = ZodObject.create;
6569
- const strictObjectType = ZodObject.strictCreate;
6570
- const unionType = ZodUnion.create;
6571
- const discriminatedUnionType = ZodDiscriminatedUnion.create;
6572
- const intersectionType = ZodIntersection.create;
6573
- const tupleType = ZodTuple.create;
6574
- const recordType = ZodRecord.create;
6575
- const mapType = ZodMap.create;
6576
- const setType = ZodSet.create;
6577
- const functionType = ZodFunction.create;
6578
- const lazyType = ZodLazy.create;
6579
- const literalType = ZodLiteral.create;
6580
- const enumType = ZodEnum.create;
6581
- const nativeEnumType = ZodNativeEnum.create;
6582
- const promiseType = ZodPromise.create;
6583
- const effectsType = ZodEffects.create;
6584
- const optionalType = ZodOptional.create;
6585
- const nullableType = ZodNullable.create;
6586
- const preprocessType = ZodEffects.createWithPreprocess;
6587
- const pipelineType = ZodPipeline.create;
6588
- const ostring = () => stringType().optional();
6589
- const onumber = () => numberType().optional();
6590
- const oboolean = () => booleanType().optional();
6591
- const coerce = {
6592
- string: (arg) => ZodString.create({ ...arg, coerce: true }),
6593
- number: (arg) => ZodNumber.create({ ...arg, coerce: true }),
6594
- boolean: (arg) => ZodBoolean.create({
6595
- ...arg,
6596
- coerce: true
6597
- }),
6598
- bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),
6599
- date: (arg) => ZodDate.create({ ...arg, coerce: true })
6600
- };
6601
- const NEVER = INVALID;
6602
- var z = /* @__PURE__ */ Object.freeze({
6603
- __proto__: null,
6604
- defaultErrorMap: errorMap,
6605
- setErrorMap,
6606
- getErrorMap,
6607
- makeIssue,
6608
- EMPTY_PATH,
6609
- addIssueToContext,
6610
- ParseStatus,
6611
- INVALID,
6612
- DIRTY,
6613
- OK,
6614
- isAborted,
6615
- isDirty,
6616
- isValid: isValid$3,
6617
- isAsync,
6618
- get util() {
6619
- return util;
6620
- },
6621
- get objectUtil() {
6622
- return objectUtil;
6623
- },
6624
- ZodParsedType,
6625
- getParsedType,
6626
- ZodType,
6627
- datetimeRegex,
6628
- ZodString,
6629
- ZodNumber,
6630
- ZodBigInt,
6631
- ZodBoolean,
6632
- ZodDate,
6633
- ZodSymbol,
6634
- ZodUndefined,
6635
- ZodNull,
6636
- ZodAny,
6637
- ZodUnknown,
6638
- ZodNever,
6639
- ZodVoid,
6640
- ZodArray,
6641
- ZodObject,
6642
- ZodUnion,
6643
- ZodDiscriminatedUnion,
6644
- ZodIntersection,
6645
- ZodTuple,
6646
- ZodRecord,
6647
- ZodMap,
6648
- ZodSet,
6649
- ZodFunction,
6650
- ZodLazy,
6651
- ZodLiteral,
6652
- ZodEnum,
6653
- ZodNativeEnum,
6654
- ZodPromise,
6655
- ZodEffects,
6656
- ZodTransformer: ZodEffects,
6657
- ZodOptional,
6658
- ZodNullable,
6659
- ZodDefault,
6660
- ZodCatch,
6661
- ZodNaN,
6662
- BRAND,
6663
- ZodBranded,
6664
- ZodPipeline,
6665
- ZodReadonly,
6666
- custom,
6667
- Schema: ZodType,
6668
- ZodSchema: ZodType,
6669
- late,
6670
- get ZodFirstPartyTypeKind() {
6671
- return ZodFirstPartyTypeKind;
6672
- },
6673
- coerce,
6674
- any: anyType,
6675
- array: arrayType,
6676
- bigint: bigIntType,
6677
- boolean: booleanType,
6678
- date: dateType,
6679
- discriminatedUnion: discriminatedUnionType,
6680
- effect: effectsType,
6681
- "enum": enumType,
6682
- "function": functionType,
6683
- "instanceof": instanceOfType,
6684
- intersection: intersectionType,
6685
- lazy: lazyType,
6686
- literal: literalType,
6687
- map: mapType,
6688
- nan: nanType,
6689
- nativeEnum: nativeEnumType,
6690
- never: neverType,
6691
- "null": nullType,
6692
- nullable: nullableType,
6693
- number: numberType,
6694
- object: objectType,
6695
- oboolean,
6696
- onumber,
6697
- optional: optionalType,
6698
- ostring,
6699
- pipeline: pipelineType,
6700
- preprocess: preprocessType,
6701
- promise: promiseType,
6702
- record: recordType,
6703
- set: setType,
6704
- strictObject: strictObjectType,
6705
- string: stringType,
6706
- symbol: symbolType,
6707
- transformer: effectsType,
6708
- tuple: tupleType,
6709
- "undefined": undefinedType,
6710
- union: unionType,
6711
- unknown: unknownType,
6712
- "void": voidType,
6713
- NEVER,
6714
- ZodIssueCode,
6715
- quotelessJson,
6716
- ZodError
6717
- });
6220
+ ZodNever.create;
6221
+ ZodArray.create;
6222
+ ZodUnion.create;
6223
+ ZodIntersection.create;
6224
+ ZodTuple.create;
6225
+ ZodEnum.create;
6226
+ ZodPromise.create;
6227
+ ZodOptional.create;
6228
+ ZodNullable.create;
6718
6229
  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" };
6719
6230
  const env = createEnv({
6720
6231
  client: {
6721
- VITE_MODULES_ENV: z.string()
6232
+ VITE_MODULES_ENV: stringType()
6722
6233
  },
6723
6234
  runtimeEnv: __vite_import_meta_env__
6724
6235
  });
@@ -11431,19 +10942,20 @@ function createValidation(config) {
11431
10942
  abortEarly = schema.spec.abortEarly,
11432
10943
  disableStackTrace = schema.spec.disableStackTrace
11433
10944
  } = options;
11434
- function resolve(item) {
11435
- return Reference.isRef(item) ? item.getValue(value, parent, context) : item;
11436
- }
10945
+ const resolveOptions = {
10946
+ value,
10947
+ parent,
10948
+ context
10949
+ };
11437
10950
  function createError(overrides = {}) {
11438
- const nextParams = Object.assign({
10951
+ const nextParams = resolveParams(Object.assign({
11439
10952
  value,
11440
10953
  originalValue,
11441
10954
  label: schema.spec.label,
11442
10955
  path: overrides.path || path,
11443
10956
  spec: schema.spec,
11444
10957
  disableStackTrace: overrides.disableStackTrace || disableStackTrace
11445
- }, params, overrides.params);
11446
- for (const key of Object.keys(nextParams)) nextParams[key] = resolve(nextParams[key]);
10958
+ }, params, overrides.params), resolveOptions);
11447
10959
  const error = new ValidationError(ValidationError.formatError(overrides.message || message, nextParams), value, nextParams.path, overrides.type || name, nextParams.disableStackTrace);
11448
10960
  error.params = nextParams;
11449
10961
  return error;
@@ -11455,7 +10967,9 @@ function createValidation(config) {
11455
10967
  type: name,
11456
10968
  from: options.from,
11457
10969
  createError,
11458
- resolve,
10970
+ resolve(item) {
10971
+ return resolveMaybeRef(item, resolveOptions);
10972
+ },
11459
10973
  options,
11460
10974
  originalValue,
11461
10975
  schema
@@ -11492,6 +11006,16 @@ function createValidation(config) {
11492
11006
  validate.OPTIONS = config;
11493
11007
  return validate;
11494
11008
  }
11009
+ function resolveParams(params, options) {
11010
+ if (!params) return params;
11011
+ for (const key of Object.keys(params)) {
11012
+ params[key] = resolveMaybeRef(params[key], options);
11013
+ }
11014
+ return params;
11015
+ }
11016
+ function resolveMaybeRef(item, options) {
11017
+ return Reference.isRef(item) ? item.getValue(options.value, options.parent, options.context) : item;
11018
+ }
11495
11019
  function getIn(schema, path, value, context = value) {
11496
11020
  let parent, lastPart, lastPartDebug;
11497
11021
  if (!path) return {
@@ -11588,6 +11112,69 @@ function clone(src, seen = /* @__PURE__ */ new Map()) {
11588
11112
  }
11589
11113
  return copy2;
11590
11114
  }
11115
+ function createStandardPath(path) {
11116
+ if (!(path != null && path.length)) {
11117
+ return void 0;
11118
+ }
11119
+ const segments = [];
11120
+ let currentSegment = "";
11121
+ let inBrackets = false;
11122
+ let inQuotes = false;
11123
+ for (let i = 0; i < path.length; i++) {
11124
+ const char2 = path[i];
11125
+ if (char2 === "[" && !inQuotes) {
11126
+ if (currentSegment) {
11127
+ segments.push(...currentSegment.split(".").filter(Boolean));
11128
+ currentSegment = "";
11129
+ }
11130
+ inBrackets = true;
11131
+ continue;
11132
+ }
11133
+ if (char2 === "]" && !inQuotes) {
11134
+ if (currentSegment) {
11135
+ if (/^\d+$/.test(currentSegment)) {
11136
+ segments.push(currentSegment);
11137
+ } else {
11138
+ segments.push(currentSegment.replace(/^"|"$/g, ""));
11139
+ }
11140
+ currentSegment = "";
11141
+ }
11142
+ inBrackets = false;
11143
+ continue;
11144
+ }
11145
+ if (char2 === '"') {
11146
+ inQuotes = !inQuotes;
11147
+ continue;
11148
+ }
11149
+ if (char2 === "." && !inBrackets && !inQuotes) {
11150
+ if (currentSegment) {
11151
+ segments.push(currentSegment);
11152
+ currentSegment = "";
11153
+ }
11154
+ continue;
11155
+ }
11156
+ currentSegment += char2;
11157
+ }
11158
+ if (currentSegment) {
11159
+ segments.push(...currentSegment.split(".").filter(Boolean));
11160
+ }
11161
+ return segments;
11162
+ }
11163
+ function createStandardIssues(error, parentPath) {
11164
+ const path = parentPath ? `${parentPath}.${error.path}` : error.path;
11165
+ return error.errors.map((err) => ({
11166
+ message: err,
11167
+ path: createStandardPath(path)
11168
+ }));
11169
+ }
11170
+ function issuesFromValidationError(error, parentPath) {
11171
+ var _error$inner;
11172
+ if (!((_error$inner = error.inner) != null && _error$inner.length) && error.errors.length) {
11173
+ return createStandardIssues(error, parentPath);
11174
+ }
11175
+ const path = parentPath ? `${parentPath}.${error.path}` : error.path;
11176
+ return error.inner.flatMap((err) => issuesFromValidationError(err, path));
11177
+ }
11591
11178
  class Schema {
11592
11179
  constructor(options) {
11593
11180
  this.type = void 0;
@@ -11717,9 +11304,11 @@ class Schema {
11717
11304
  * Run the configured transform pipeline over an input value.
11718
11305
  */
11719
11306
  cast(value, options = {}) {
11720
- let resolvedSchema = this.resolve(Object.assign({
11307
+ let resolvedSchema = this.resolve(Object.assign({}, options, {
11721
11308
  value
11722
- }, options));
11309
+ // parent: options.parent,
11310
+ // context: options.context,
11311
+ }));
11723
11312
  let allowOptionality = options.assert === "ignore-optionality";
11724
11313
  let result = resolvedSchema._cast(value, options);
11725
11314
  if (options.assert !== false && !resolvedSchema.isType(result)) {
@@ -11736,7 +11325,7 @@ attempted value: ${formattedValue}
11736
11325
  return result;
11737
11326
  }
11738
11327
  _cast(rawValue, options) {
11739
- let value = rawValue === void 0 ? rawValue : this.transforms.reduce((prevValue, fn) => fn.call(this, prevValue, rawValue, this), rawValue);
11328
+ let value = rawValue === void 0 ? rawValue : this.transforms.reduce((prevValue, fn) => fn.call(this, prevValue, rawValue, this, options), rawValue);
11740
11329
  if (value === void 0) {
11741
11330
  value = this.getDefault(options);
11742
11331
  }
@@ -12131,13 +11720,41 @@ attempted value: ${formattedValue}
12131
11720
  type: next2.type,
12132
11721
  oneOf: next2._whitelist.describe(),
12133
11722
  notOneOf: next2._blacklist.describe(),
12134
- tests: next2.tests.map((fn) => ({
12135
- name: fn.OPTIONS.name,
12136
- params: fn.OPTIONS.params
12137
- })).filter((n, idx, list) => list.findIndex((c) => c.name === n.name) === idx)
11723
+ tests: next2.tests.filter((n, idx, list) => list.findIndex((c) => c.OPTIONS.name === n.OPTIONS.name) === idx).map((fn) => {
11724
+ const params = fn.OPTIONS.params && options ? resolveParams(Object.assign({}, fn.OPTIONS.params), options) : fn.OPTIONS.params;
11725
+ return {
11726
+ name: fn.OPTIONS.name,
11727
+ params
11728
+ };
11729
+ })
12138
11730
  };
12139
11731
  return description;
12140
11732
  }
11733
+ get ["~standard"]() {
11734
+ const schema = this;
11735
+ const standard = {
11736
+ version: 1,
11737
+ vendor: "yup",
11738
+ async validate(value) {
11739
+ try {
11740
+ const result = await schema.validate(value, {
11741
+ abortEarly: false
11742
+ });
11743
+ return {
11744
+ value: result
11745
+ };
11746
+ } catch (err) {
11747
+ if (err instanceof ValidationError) {
11748
+ return {
11749
+ issues: issuesFromValidationError(err)
11750
+ };
11751
+ }
11752
+ throw err;
11753
+ }
11754
+ }
11755
+ };
11756
+ return standard;
11757
+ }
12141
11758
  }
12142
11759
  Schema.prototype.__isYupSchema__ = true;
12143
11760
  for (const method of ["validate", "validateSync"]) Schema.prototype[`${method}At`] = function(path, value, options = {}) {
@@ -12236,8 +11853,8 @@ class StringSchema extends Schema {
12236
11853
  }
12237
11854
  });
12238
11855
  this.withMutation(() => {
12239
- this.transform((value, _raw, ctx) => {
12240
- if (!ctx.spec.coerce || ctx.isType(value)) return value;
11856
+ this.transform((value, _raw) => {
11857
+ if (!this.spec.coerce || this.isType(value)) return value;
12241
11858
  if (Array.isArray(value)) return value;
12242
11859
  const strValue = value != null && value.toString ? value.toString() : value;
12243
11860
  if (strValue === objStringTag) return value;
@@ -12439,15 +12056,15 @@ class NumberSchema extends Schema {
12439
12056
  }
12440
12057
  });
12441
12058
  this.withMutation(() => {
12442
- this.transform((value, _raw, ctx) => {
12443
- if (!ctx.spec.coerce) return value;
12059
+ this.transform((value, _raw) => {
12060
+ if (!this.spec.coerce) return value;
12444
12061
  let parsed = value;
12445
12062
  if (typeof parsed === "string") {
12446
12063
  parsed = parsed.replace(/\s/g, "");
12447
12064
  if (parsed === "") return NaN;
12448
12065
  parsed = +parsed;
12449
12066
  }
12450
- if (ctx.isType(parsed) || parsed === null) return parsed;
12067
+ if (this.isType(parsed) || parsed === null) return parsed;
12451
12068
  return parseFloat(parsed);
12452
12069
  });
12453
12070
  });
@@ -12546,8 +12163,8 @@ class DateSchema extends Schema {
12546
12163
  }
12547
12164
  });
12548
12165
  this.withMutation(() => {
12549
- this.transform((value, _raw, ctx) => {
12550
- if (!ctx.spec.coerce || ctx.isType(value) || value === null) return value;
12166
+ this.transform((value, _raw) => {
12167
+ if (!this.spec.coerce || this.isType(value) || value === null) return value;
12551
12168
  value = parseIsoDate(value);
12552
12169
  return !isNaN(value) ? new Date(value) : DateSchema.INVALID_DATE;
12553
12170
  });
@@ -12629,7 +12246,7 @@ function sortByKeyOrder(keys2) {
12629
12246
  return findIndex(keys2, a) - findIndex(keys2, b);
12630
12247
  };
12631
12248
  }
12632
- const parseJson = (value, _, ctx) => {
12249
+ const parseJson = (value, _, schema) => {
12633
12250
  if (typeof value !== "string") {
12634
12251
  return value;
12635
12252
  }
@@ -12638,7 +12255,7 @@ const parseJson = (value, _, ctx) => {
12638
12255
  parsed = JSON.parse(value);
12639
12256
  } catch (err) {
12640
12257
  }
12641
- return ctx.isType(parsed) ? parsed : value;
12258
+ return schema.isType(parsed) ? parsed : value;
12642
12259
  };
12643
12260
  function deepPartial(schema) {
12644
12261
  if ("fields" in schema) {
@@ -12714,9 +12331,9 @@ class ObjectSchema extends Schema {
12714
12331
  for (const prop of props) {
12715
12332
  let field = fields[prop];
12716
12333
  let exists = prop in value;
12334
+ let inputValue = value[prop];
12717
12335
  if (field) {
12718
12336
  let fieldValue;
12719
- let inputValue = value[prop];
12720
12337
  innerOptions.path = (options.path ? `${options.path}.` : "") + prop;
12721
12338
  field = field.resolve({
12722
12339
  value: inputValue,
@@ -12729,17 +12346,14 @@ class ObjectSchema extends Schema {
12729
12346
  isChanged = isChanged || prop in value;
12730
12347
  continue;
12731
12348
  }
12732
- fieldValue = !options.__validating || !strict ? (
12733
- // TODO: use _cast, this is double resolving
12734
- field.cast(value[prop], innerOptions)
12735
- ) : value[prop];
12349
+ fieldValue = !options.__validating || !strict ? field.cast(inputValue, innerOptions) : inputValue;
12736
12350
  if (fieldValue !== void 0) {
12737
12351
  intermediateValue[prop] = fieldValue;
12738
12352
  }
12739
12353
  } else if (exists && !strip) {
12740
- intermediateValue[prop] = value[prop];
12354
+ intermediateValue[prop] = inputValue;
12741
12355
  }
12742
- if (exists !== prop in intermediateValue || intermediateValue[prop] !== value[prop]) {
12356
+ if (exists !== prop in intermediateValue || intermediateValue[prop] !== inputValue) {
12743
12357
  isChanged = true;
12744
12358
  }
12745
12359
  }
@@ -13073,8 +12687,8 @@ function requireDist() {
13073
12687
  dist.default = urlcat2;
13074
12688
  function urlcatImpl(pathTemplate, params, baseUrl) {
13075
12689
  var _a = path(pathTemplate, params), renderedPath = _a.renderedPath, remainingParams = _a.remainingParams;
13076
- var cleanParams2 = removeNullOrUndef(remainingParams);
13077
- var renderedQuery = query(cleanParams2);
12690
+ var cleanParams = removeNullOrUndef(remainingParams);
12691
+ var renderedQuery = query(cleanParams);
13078
12692
  var pathAndQuery = join(renderedPath, "?", renderedQuery);
13079
12693
  return baseUrl ? join(baseUrl, "/", pathAndQuery) : pathAndQuery;
13080
12694
  }
@@ -13713,13 +13327,13 @@ function ViewProfileDialog({ userData, setInitialState, isOpen }) {
13713
13327
  Dialog,
13714
13328
  {
13715
13329
  fullWidth: false,
13716
- sx: { "& .MuiPaper-root": { maxWidth: "800px", borderRadius: "12px" } },
13330
+ sx: { "& .MuiPaper-root": { maxWidth: "800px", borderRadius: "12px", p: 2 } },
13717
13331
  onClose: () => handleCloseUtil(setInitialState),
13718
13332
  open: isOpen,
13719
13333
  "aria-labelledby": "draggable-dialog-title",
13720
13334
  children: [
13721
13335
  /* @__PURE__ */ jsxs(ProfileStyled, { children: [
13722
- /* @__PURE__ */ jsx(Box, { sx: { textAlign: "right", padding: "10px 10px 0px 0px" }, children: /* @__PURE__ */ jsx(
13336
+ /* @__PURE__ */ jsx(Box, { sx: { textAlign: "right", padding: "10px 10px" }, children: /* @__PURE__ */ jsx(
13723
13337
  IconButton,
13724
13338
  {
13725
13339
  onClick: () => setInitialState((p) => ({ ...p, toggles: { ...p.toggles, viewProfile: false } })),
@@ -13728,7 +13342,7 @@ function ViewProfileDialog({ userData, setInitialState, isOpen }) {
13728
13342
  children: /* @__PURE__ */ jsx(CloseIcon, {})
13729
13343
  }
13730
13344
  ) }),
13731
- /* @__PURE__ */ jsx(Box, { sx: { p: 2 }, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
13345
+ /* @__PURE__ */ jsx(Box, { sx: { p: 2, paddingLeft: "35px" }, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
13732
13346
  /* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, lg: 5, children: [
13733
13347
  /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
13734
13348
  Avatar,
@@ -13899,7 +13513,7 @@ function ChangePasswordDialog({ isOpen, email, t: t2, setInitialState }) {
13899
13513
  onClose: () => handleCloseUtil(setInitialState),
13900
13514
  open: isOpen,
13901
13515
  "aria-labelledby": "draggable-dialog-title",
13902
- children: /* @__PURE__ */ jsx("form", { onSubmit: formik.handleSubmit, children: /* @__PURE__ */ jsx(ChangePasswordStyled, { children: /* @__PURE__ */ jsxs(Box, { sx: { pr: { xs: 0, lg: 8 }, p: 2 }, children: [
13516
+ children: /* @__PURE__ */ jsx("form", { onSubmit: formik.handleSubmit, children: /* @__PURE__ */ jsx(ChangePasswordStyled, { children: /* @__PURE__ */ jsxs(Box, { sx: { p: { xs: 2, lg: 4 } }, children: [
13903
13517
  /* @__PURE__ */ jsx(Typography, { variant: "h6", sx: { display: "flex", alignItems: "center" }, className: "Heading", children: "Change Password" }),
13904
13518
  /* @__PURE__ */ jsx(
13905
13519
  Box,
@@ -13911,7 +13525,7 @@ function ChangePasswordDialog({ isOpen, email, t: t2, setInitialState }) {
13911
13525
  mt: 2
13912
13526
  },
13913
13527
  children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
13914
- /* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, lg: 6, children: [
13528
+ /* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, md: 6, sx: { paddingLeft: "16px" }, children: [
13915
13529
  /* @__PURE__ */ jsx(
13916
13530
  LabeledInput,
13917
13531
  {
@@ -13919,12 +13533,13 @@ function ChangePasswordDialog({ isOpen, email, t: t2, setInitialState }) {
13919
13533
  label: t2("New password"),
13920
13534
  fullWidth: true,
13921
13535
  size: "small",
13922
- ...formik.getFieldProps("newPassword")
13536
+ ...formik.getFieldProps("newPassword"),
13537
+ sx: { width: { md: "93%", lg: "93%", xs: "99%" } }
13923
13538
  }
13924
13539
  ),
13925
13540
  /* @__PURE__ */ jsx(ErrorMessage, { formik, fieldName: "newPassword" })
13926
13541
  ] }),
13927
- /* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, lg: 6, children: [
13542
+ /* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, md: 6, sx: { paddingLeft: { md: "0", lg: "0", xs: "16px" } }, children: [
13928
13543
  /* @__PURE__ */ jsx(
13929
13544
  LabeledInput,
13930
13545
  {
@@ -13932,7 +13547,8 @@ function ChangePasswordDialog({ isOpen, email, t: t2, setInitialState }) {
13932
13547
  label: t2("Confirm new password"),
13933
13548
  fullWidth: true,
13934
13549
  size: "small",
13935
- ...formik.getFieldProps("passwordConfirmation")
13550
+ ...formik.getFieldProps("passwordConfirmation"),
13551
+ sx: { width: { md: "99%", lg: "99%", xs: "99%" } }
13936
13552
  }
13937
13553
  ),
13938
13554
  /* @__PURE__ */ jsx(ErrorMessage, { formik, fieldName: "passwordConfirmation" })
@@ -13942,7 +13558,7 @@ function ChangePasswordDialog({ isOpen, email, t: t2, setInitialState }) {
13942
13558
  {
13943
13559
  isLoading: formik.isSubmitting,
13944
13560
  className: "invite",
13945
- sx: { width: "auto !important" },
13561
+ sx: { width: "auto !important", marginTop: "20px", marginLeft: "16px" },
13946
13562
  type: "submit",
13947
13563
  disabled: formik.isSubmitting,
13948
13564
  btnTitle: t2("Change Password")
@@ -14254,7 +13870,7 @@ function parseThreshold(scrollThreshold) {
14254
13870
  }
14255
13871
  var InfiniteScroll = (
14256
13872
  /** @class */
14257
- function(_super) {
13873
+ (function(_super) {
14258
13874
  __extends(InfiniteScroll2, _super);
14259
13875
  function InfiniteScroll2(props) {
14260
13876
  var _this = _super.call(this, props) || this;
@@ -14469,7 +14085,7 @@ var InfiniteScroll = (
14469
14085
  );
14470
14086
  };
14471
14087
  return InfiniteScroll2;
14472
- }(Component)
14088
+ })(Component)
14473
14089
  );
14474
14090
  const Notification = ({ setInitialState, notificationAccessApps, initialState, t: t2 }) => {
14475
14091
  const [notifications, setNotifications] = useState([]);
@@ -15508,7 +15124,7 @@ function createStyleElement(options) {
15508
15124
  tag.setAttribute("data-s", "");
15509
15125
  return tag;
15510
15126
  }
15511
- var StyleSheet = /* @__PURE__ */ function() {
15127
+ var StyleSheet = /* @__PURE__ */ (function() {
15512
15128
  function StyleSheet2(options) {
15513
15129
  var _this = this;
15514
15130
  this._insertTag = function(tag) {
@@ -15566,7 +15182,7 @@ var StyleSheet = /* @__PURE__ */ function() {
15566
15182
  this.ctr = 0;
15567
15183
  };
15568
15184
  return StyleSheet2;
15569
- }();
15185
+ })();
15570
15186
  var MS = "-ms-";
15571
15187
  var MOZ = "-moz-";
15572
15188
  var WEBKIT = "-webkit-";
@@ -15882,9 +15498,9 @@ function ruleset(value, root2, parent, index, offset2, rules, points, type, prop
15882
15498
  var rule = offset2 === 0 ? rules : [""];
15883
15499
  var size = sizeof(rule);
15884
15500
  for (var i = 0, j = 0, k = 0; i < index; ++i)
15885
- for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z2 = value; x < size; ++x)
15886
- if (z2 = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
15887
- props[k++] = z2;
15501
+ for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
15502
+ if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
15503
+ props[k++] = z;
15888
15504
  return node(value, root2, parent, offset2 === 0 ? RULESET : type, props, children, length2);
15889
15505
  }
15890
15506
  function comment(value, root2, parent) {