143 lines
4.3 KiB
JavaScript
143 lines
4.3 KiB
JavaScript
// Metro module 12080 (f12081).
|
|
import * as __wrapNativeSuper from "./_wrapNativeSuper";
|
|
import * as _createClass from "./_createClass";
|
|
import * as _classCallCheck from "./_classCallCheck";
|
|
import * as _possibleConstructorReturn from "./_possibleConstructorReturn";
|
|
import * as _getPrototypeOf from "./_getPrototypeOf";
|
|
import * as _inherits from "./_inherits";
|
|
let _ZodAsyncError;
|
|
let _ZodEncodeError;
|
|
let env8309 = {};
|
|
env8309[6] = function _isNativeReflectConstruct() {
|
|
let c19391_0;
|
|
try {
|
|
c19391_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
} catch ($e) {}
|
|
const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() {
|
|
return !!c19391_0;
|
|
};
|
|
env8309[6] = _isNativeReflectConstruct2;
|
|
return _isNativeReflectConstruct2();
|
|
};
|
|
exports.$constructor = function(a0, c19392_1, a2) {
|
|
let c19392_4, constr;
|
|
let c19392_0 = a0;
|
|
const init2 = function init(a0, a1) {
|
|
if (!a0._zod) {
|
|
Object.defineProperty(a0, "_zod", {
|
|
value: {
|
|
def: a1,
|
|
constr,
|
|
traits: new Set()
|
|
},
|
|
enumerable: false
|
|
});
|
|
}
|
|
const traits = a0._zod.traits;
|
|
if (!traits.has(c19392_0)) {
|
|
a0._zod.traits.add(c19392_0);
|
|
c19392_1(a0, a1);
|
|
const prototype = constr.prototype;
|
|
const r40 = Object.keys(prototype);
|
|
const length = r40.length;
|
|
let r0 = 0;
|
|
if (0 < length) {
|
|
do {
|
|
const r43 = r40[r0];
|
|
const r44 = r43 in a0;
|
|
const r1 = r0;
|
|
if (!r44) {
|
|
a0[r43] = prototype[r43].bind(a0);
|
|
}
|
|
r0 = r1 + 1;
|
|
} while (r0 < r40.length);
|
|
}
|
|
}
|
|
};
|
|
constr = function _(a0) {
|
|
const r18 = a2?.Parent ? new c19392_4() : this;
|
|
init2(r18, a0);
|
|
const _zod = r18._zod;
|
|
if (_zod.deferred == null) {
|
|
_zod.deferred = [];
|
|
}
|
|
for (const item of r18._zod.deferred) {
|
|
item();
|
|
}
|
|
return r18;
|
|
};
|
|
let r9 = a2?.Parent;
|
|
if (r9 == null) {
|
|
r9 = Object;
|
|
}
|
|
const Definition2 = function Definition() {
|
|
_classCallCheck(this, Definition2);
|
|
const r8 = _getPrototypeOf(Definition2);
|
|
return _possibleConstructorReturn(this, (0, env8309[6])() ? Reflect.construct(r8, arguments, _getPrototypeOf(this).constructor) : r8.apply(this, arguments));
|
|
};
|
|
_inherits(Definition2, r9);
|
|
const r12 = _createClass(Definition2);
|
|
c19392_4 = r12;
|
|
Object.defineProperty(r12, "name", {
|
|
value: a0
|
|
});
|
|
Object.defineProperty(constr, "init", {
|
|
value: init2
|
|
});
|
|
Object.defineProperty(constr, Symbol.hasInstance, {
|
|
value: (a0) => {
|
|
let r10 = !!(a2?.Parent && a0 instanceof a2.Parent);
|
|
if (!r10) {
|
|
const r11 = a0 == null;
|
|
let r12 = void 0;
|
|
if (!r11) {
|
|
const _zod = a0._zod;
|
|
const r14 = _zod == null;
|
|
r12 = void 0;
|
|
if (!r14) {
|
|
const traits = _zod.traits;
|
|
r12 = traits == null ? void 0 : traits.has(c19392_0);
|
|
}
|
|
}
|
|
r10 = r12;
|
|
}
|
|
return r10;
|
|
}
|
|
});
|
|
Object.defineProperty(constr, "name", {
|
|
value: a0
|
|
});
|
|
return constr;
|
|
};
|
|
export function config(a0) {
|
|
if (a0) {
|
|
Object.assign(exports.globalConfig, a0);
|
|
}
|
|
return exports.globalConfig;
|
|
}
|
|
export const NEVER = Object.freeze({
|
|
status: "aborted"
|
|
});
|
|
exports.$brand = Symbol("zod_brand");
|
|
const r34 = __wrapNativeSuper(Error);
|
|
_ZodAsyncError = function() {
|
|
_classCallCheck(this, _ZodAsyncError);
|
|
const r8 = ["Encountered Promise during synchronous parse. Use .parseAsync() instead."];
|
|
const r7 = _getPrototypeOf(_ZodAsyncError);
|
|
return _possibleConstructorReturn(this, (0, env8309[6])() ? Reflect.construct(r7, r8, _getPrototypeOf(this).constructor) : r7.apply(this, r8));
|
|
};
|
|
_inherits(_ZodAsyncError, r34);
|
|
exports.$ZodAsyncError = _createClass(_ZodAsyncError);
|
|
const r40 = __wrapNativeSuper(Error);
|
|
_ZodEncodeError = function(a0) {
|
|
_classCallCheck(this, _ZodEncodeError);
|
|
const r8 = [`Encountered unidirectional transform during encode: ${a0}`];
|
|
const r15 = _getPrototypeOf(_ZodEncodeError);
|
|
const r25 = _possibleConstructorReturn(this, (0, env8309[6])() ? Reflect.construct(r15, r8, _getPrototypeOf(this).constructor) : r15.apply(this, r8));
|
|
r25.name = "ZodEncodeError";
|
|
return r25;
|
|
};
|
|
_inherits(_ZodEncodeError, r40);
|
|
exports.$ZodEncodeError = _createClass(_ZodEncodeError);
|
|
export const globalConfig = {};
|