extended-dynamic-forms
Version:
Extended React JSON Schema Form (RJSF) v6 with custom components, widgets, templates, layouts, and form events
1,532 lines • 2.03 MB
JavaScript
var gne = Object.defineProperty;
var kne = (e, t, r) => t in e ? gne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
var fe = (e, t, r) => kne(e, typeof t != "symbol" ? t + "" : t, r);
import { jsx as _, jsxs as le, Fragment as qr } from "react/jsx-runtime";
import { Form as Pa, Input as Ut, Row as Yr, Col as qt, Select as kA, Card as QE, Space as kn, Button as ur, Progress as vne, Badge as Mne, ColorPicker as wne, Slider as OV, Rate as bne, InputNumber as EV, Switch as xne, Image as Sne, Alert as vd, DatePicker as ed, TimePicker as Cne, Tag as Oz, Upload as Lne, message as h1, Typography as TV, Divider as _ne, Spin as eT, Radio as v1, Checkbox as b1, ConfigProvider as tT, List as Ez, Steps as Ine } from "antd";
import * as $t from "react";
import Oe, { createContext as qV, useContext as Md, useRef as ar, useEffect as gt, createElement as td, forwardRef as rT, useState as wt, useMemo as qe, useCallback as ye, Component as z1, PureComponent as Ane, createRef as $ne } from "react";
import vn from "dayjs";
var Lr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function er(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
function Pne(e) {
if (e.__esModule) return e;
var t = e.default;
if (typeof t == "function") {
var r = function n() {
return this instanceof n ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
};
r.prototype = t.prototype;
} else r = {};
return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) {
var a = Object.getOwnPropertyDescriptor(e, n);
Object.defineProperty(r, n, a.get ? a : {
enumerable: !0,
get: function() {
return e[n];
}
});
}), r;
}
var DV = { exports: {} };
(function(e, t) {
(function(r, n) {
e.exports = n();
})(Lr, function() {
return function(r, n) {
n.prototype.weekday = function(a) {
var i = this.$locale().weekStart || 0, o = this.$W, s = (o < i ? o + 7 : o) - i;
return this.$utils().u(a) ? s : this.subtract(s, "day").add(a, "day");
};
};
});
})(DV);
var One = DV.exports;
const Ene = /* @__PURE__ */ er(One);
var RV = { exports: {} };
(function(e, t) {
(function(r, n) {
e.exports = n();
})(Lr, function() {
var r = "week", n = "year";
return function(a, i, o) {
var s = i.prototype;
s.week = function(l) {
if (l === void 0 && (l = null), l !== null) return this.add(7 * (l - this.week()), "day");
var d = this.$locale().yearStart || 1;
if (this.month() === 11 && this.date() > 25) {
var p = o(this).startOf(n).add(1, n).date(d), y = o(this).endOf(r);
if (p.isBefore(y)) return 1;
}
var f = o(this).startOf(n).date(d).startOf(r).subtract(1, "millisecond"), m = this.diff(f, r, !0);
return m < 0 ? o(this).startOf("week").week() : Math.ceil(m);
}, s.weeks = function(l) {
return l === void 0 && (l = null), this.week(l);
};
};
});
})(RV);
var Tne = RV.exports;
const qne = /* @__PURE__ */ er(Tne);
var FV = { exports: {} };
(function(e, t) {
(function(r, n) {
e.exports = n();
})(Lr, function() {
return function(r, n, a) {
var i = n.prototype, o = function(y) {
return y && (y.indexOf ? y : y.s);
}, s = function(y, f, m, g, w) {
var M = y.name ? y : y.$locale(), v = o(M[f]), b = o(M[m]), x = v || b.map(function(L) {
return L.slice(0, g);
});
if (!w) return x;
var S = M.weekStart;
return x.map(function(L, $) {
return x[($ + (S || 0)) % 7];
});
}, l = function() {
return a.Ls[a.locale()];
}, d = function(y, f) {
return y.formats[f] || function(m) {
return m.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(g, w, M) {
return w || M.slice(1);
});
}(y.formats[f.toUpperCase()]);
}, p = function() {
var y = this;
return { months: function(f) {
return f ? f.format("MMMM") : s(y, "months");
}, monthsShort: function(f) {
return f ? f.format("MMM") : s(y, "monthsShort", "months", 3);
}, firstDayOfWeek: function() {
return y.$locale().weekStart || 0;
}, weekdays: function(f) {
return f ? f.format("dddd") : s(y, "weekdays");
}, weekdaysMin: function(f) {
return f ? f.format("dd") : s(y, "weekdaysMin", "weekdays", 2);
}, weekdaysShort: function(f) {
return f ? f.format("ddd") : s(y, "weekdaysShort", "weekdays", 3);
}, longDateFormat: function(f) {
return d(y.$locale(), f);
}, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
};
i.localeData = function() {
return p.bind(this)();
}, a.localeData = function() {
var y = l();
return { firstDayOfWeek: function() {
return y.weekStart || 0;
}, weekdays: function() {
return a.weekdays();
}, weekdaysShort: function() {
return a.weekdaysShort();
}, weekdaysMin: function() {
return a.weekdaysMin();
}, months: function() {
return a.months();
}, monthsShort: function() {
return a.monthsShort();
}, longDateFormat: function(f) {
return d(y, f);
}, meridiem: y.meridiem, ordinal: y.ordinal };
}, a.months = function() {
return s(l(), "months");
}, a.monthsShort = function() {
return s(l(), "monthsShort", "months", 3);
}, a.weekdays = function(y) {
return s(l(), "weekdays", null, null, y);
}, a.weekdaysShort = function(y) {
return s(l(), "weekdaysShort", "weekdays", 3, y);
}, a.weekdaysMin = function(y) {
return s(l(), "weekdaysMin", "weekdays", 2, y);
};
};
});
})(FV);
var Dne = FV.exports;
const Rne = /* @__PURE__ */ er(Dne);
var zV = { exports: {} };
(function(e, t) {
(function(r, n) {
e.exports = n();
})(Lr, function() {
var r = "month", n = "quarter";
return function(a, i) {
var o = i.prototype;
o.quarter = function(d) {
return this.$utils().u(d) ? Math.ceil((this.month() + 1) / 3) : this.month(this.month() % 3 + 3 * (d - 1));
};
var s = o.add;
o.add = function(d, p) {
return d = Number(d), this.$utils().p(p) === n ? this.add(3 * d, r) : s.bind(this)(d, p);
};
var l = o.startOf;
o.startOf = function(d, p) {
var y = this.$utils(), f = !!y.u(p) || p;
if (y.p(d) === n) {
var m = this.quarter() - 1;
return f ? this.month(3 * m).startOf(r).startOf("day") : this.month(3 * m + 2).endOf(r).endOf("day");
}
return l.bind(this)(d, p);
};
};
});
})(zV);
var Fne = zV.exports;
const zne = /* @__PURE__ */ er(Fne);
class OEe {
constructor(t) {
fe(this, "handlers");
this.handlers = t;
}
async handleBeforeSubmit(t) {
return this.handlers.beforeSubmit ? await this.handlers.beforeSubmit(t) : t;
}
async handleAfterSubmit(t) {
this.handlers.afterSubmit && await this.handlers.afterSubmit(t);
}
async handleBeforeValidation(t) {
return this.handlers.beforeValidation ? await this.handlers.beforeValidation(t) : t;
}
async handleAfterValidation(t, r) {
this.handlers.afterValidation && await this.handlers.afterValidation(t, r);
}
}
const HV = qV(null), Hne = ({
eventHub: e,
formData: t,
bindingData: r,
formContext: n,
children: a
}) => /* @__PURE__ */ _(
HV.Provider,
{
value: { eventHub: e, formData: t, bindingData: r, formContext: n },
children: a
}
), jV = () => {
const e = Md(HV);
if (!e)
throw new Error("useFormEventHub must be used within a FormEventProvider");
return e;
}, ot = (e, t, r) => {
const { eventHub: n, formData: a } = jV(), i = ar(a);
return gt(() => {
i.current = a;
}, [a]), Oe.useMemo(
() => ({
onFocus: (o) => n.handleFieldEvent(
"focus",
e,
o,
t,
i.current,
r
),
onBlur: (o) => n.handleFieldEvent(
"blur",
e,
o,
t,
i.current,
r
),
onChange: (o) => n.handleFieldEvent(
"change",
e,
o,
t,
i.current,
r
)
}),
// Only depend on stable values - eventHub, fieldId, and fieldPath
// Do NOT include formData or schema to prevent recreation on every update
[n, e, r]
);
}, DP = (e) => typeof e == "object" && e !== null, jne = ({
formData: e,
onChange: t,
required: r,
disabled: n,
readonly: a,
schema: i,
idSchema: o,
rawErrors: s = []
}) => {
const l = ot(o.$id, i), d = (x) => async (S) => {
const L = typeof S == "string" ? S : S.target.value, $ = {
...e,
[x]: L
};
t($), await l.onChange($);
}, p = async () => {
await l.onFocus(e);
}, y = async () => {
await l.onBlur(e);
}, f = (x, S) => {
var $;
const L = ($ = i.properties) == null ? void 0 : $[x];
return L && DP(L) && L.title || S;
}, m = (x) => {
var L;
const S = (L = i.properties) == null ? void 0 : L[x];
return S && DP(S) && S.enum ? S.enum.map(($) => ({
value: String($),
label: String($)
})) : [];
}, g = (x) => {
var S;
return ((S = i.required) == null ? void 0 : S.includes(x)) || !1;
}, w = (x) => {
const S = s == null ? void 0 : s.find(
(L) => {
var $, A;
return L.property === `.${x}` || (($ = L.message) == null ? void 0 : $.includes(x)) || ((A = L.schemaPath) == null ? void 0 : A.includes(x));
}
);
return S == null ? void 0 : S.message;
}, M = (x, S) => {
var $, A;
const L = ($ = i.properties) == null ? void 0 : $[x];
return !L || !DP(L) ? null : (A = i.required) != null && A.includes(x) && (!S || S.trim() === "") ? `${f(x, x)} is required` : L.minLength && S && S.length < L.minLength ? `${f(x, x)} must be at least ${L.minLength} characters` : L.pattern && S && !new RegExp(L.pattern).test(S) ? x === "postcode" ? "Postcode must be 4 digits" : `${f(x, x)} format is invalid` : L.enum && S && !L.enum.includes(S) ? `${f(x, x)} must be one of: ${L.enum.join(", ")}` : null;
}, v = (x) => {
const S = (e == null ? void 0 : e[x]) || "", L = w(x), $ = M(x, S);
return L || $ ? "error" : "";
}, b = (x) => {
const S = (e == null ? void 0 : e[x]) || "", L = w(x), $ = M(x, S);
return L || $;
};
return /* @__PURE__ */ le("div", { children: [
i.title && /* @__PURE__ */ le("div", { style: { marginBottom: "16px" }, children: [
/* @__PURE__ */ le(
"label",
{
style: {
display: "block",
fontSize: "16px",
fontWeight: 600,
color: "#262626",
marginBottom: "4px"
},
children: [
i.title,
r && /* @__PURE__ */ _("span", { style: { color: "#ff4d4f", marginLeft: "4px" }, children: "*" })
]
}
),
i.description && /* @__PURE__ */ _(
"div",
{
style: {
fontSize: "14px",
color: "#8c8c8c",
marginBottom: "8px"
},
children: i.description
}
)
] }),
/* @__PURE__ */ _(
Pa.Item,
{
label: f("streetAddress", "Street Address"),
required: g("streetAddress"),
validateStatus: v("streetAddress"),
help: b("streetAddress"),
style: { marginBottom: "16px" },
labelCol: { span: 24 },
wrapperCol: { span: 24 },
children: /* @__PURE__ */ _(
Ut,
{
id: `${o.$id}_streetAddress`,
value: (e == null ? void 0 : e.streetAddress) || "",
onChange: d("streetAddress"),
onFocus: p,
onBlur: y,
disabled: n || a,
placeholder: "123 Main St",
status: v("streetAddress")
}
)
}
),
/* @__PURE__ */ _(
Pa.Item,
{
label: f("suburb", "Suburb/City"),
required: g("suburb"),
validateStatus: v("suburb"),
help: b("suburb"),
style: { marginBottom: "16px" },
labelCol: { span: 24 },
wrapperCol: { span: 24 },
children: /* @__PURE__ */ _(
Ut,
{
id: `${o.$id}_suburb`,
value: (e == null ? void 0 : e.suburb) || "",
onChange: d("suburb"),
onFocus: p,
onBlur: y,
disabled: n || a,
placeholder: "Sydney",
status: v("suburb")
}
)
}
),
/* @__PURE__ */ le(Yr, { gutter: 16, children: [
/* @__PURE__ */ _(qt, { span: 12, children: /* @__PURE__ */ _(
Pa.Item,
{
label: f("state", "State/Territory"),
required: g("state"),
validateStatus: v("state"),
help: b("state"),
style: { marginBottom: "16px" },
labelCol: { span: 24 },
wrapperCol: { span: 24 },
children: /* @__PURE__ */ _(
kA,
{
id: `${o.$id}_state`,
value: (e == null ? void 0 : e.state) || void 0,
onChange: d("state"),
onFocus: p,
onBlur: y,
disabled: n || a,
placeholder: "Select state",
status: v("state"),
style: { width: "100%" },
options: m("state")
}
)
}
) }),
/* @__PURE__ */ _(qt, { span: 12, children: /* @__PURE__ */ _(
Pa.Item,
{
label: f("postcode", "Postcode"),
required: g("postcode"),
validateStatus: v("postcode"),
help: b("postcode"),
style: { marginBottom: "16px" },
labelCol: { span: 24 },
wrapperCol: { span: 24 },
children: /* @__PURE__ */ _(
Ut,
{
id: `${o.$id}_postcode`,
value: (e == null ? void 0 : e.postcode) || "",
onChange: d("postcode"),
onFocus: p,
onBlur: y,
disabled: n || a,
placeholder: "2000",
status: v("postcode")
}
)
}
) })
] }),
/* @__PURE__ */ _(
Pa.Item,
{
label: f("country", "Country"),
required: g("country"),
validateStatus: v("country"),
help: b("country"),
style: { marginBottom: "0" },
labelCol: { span: 24 },
wrapperCol: { span: 24 },
children: /* @__PURE__ */ _(
Ut,
{
id: `${o.$id}_country`,
value: (e == null ? void 0 : e.country) || "",
onChange: d("country"),
onFocus: p,
onBlur: y,
disabled: n || a,
placeholder: "Australia",
status: v("country")
}
)
}
)
] });
}, Bne = ({
formData: e,
onChange: t,
required: r,
disabled: n,
readonly: a,
schema: i,
idSchema: o,
rawErrors: s = [],
onBlur: l,
onFocus: d
}) => {
const p = ot(o.$id, i), y = typeof e == "string" ? e.replace(/\D/g, "") : "", f = (M) => {
const v = M.replace(/\D/g, ""), b = v.length;
return b < 4 ? v : b < 7 ? `(${v.slice(0, 3)}) ${v.slice(3)}` : `(${v.slice(0, 3)}) ${v.slice(3, 6)}-${v.slice(6, 10)}`;
}, m = async (M) => {
const v = M.target.value.replace(/\D/g, "");
t(v), await p.onChange(v);
}, g = async () => {
d == null || d(o.$id, y), await p.onFocus(y);
}, w = async () => {
l == null || l(o.$id, y), await p.onBlur(y);
};
return /* @__PURE__ */ le("div", { style: { marginBottom: "16px" }, children: [
/* @__PURE__ */ le(
"label",
{
htmlFor: o.$id,
style: { display: "block", marginBottom: "4px", fontWeight: 500 },
children: [
i.title || "Phone Number",
r && /* @__PURE__ */ _("span", { style: { color: "#ff4d4f", marginLeft: "4px" }, children: "*" })
]
}
),
/* @__PURE__ */ _(
Ut,
{
id: o.$id,
type: "tel",
value: f(y),
onChange: m,
onFocus: g,
onBlur: w,
disabled: n || a,
placeholder: "(555) 123-4567",
maxLength: 14,
status: s.length ? "error" : void 0
}
),
s.length > 0 && /* @__PURE__ */ _("div", { style: { marginTop: 4, color: "#ff4d4f", fontSize: 12 }, children: s[0] })
] });
}, Vne = ({
formData: e,
onChange: t,
required: r,
disabled: n,
readonly: a,
schema: i,
uiSchema: o,
idSchema: s
}) => {
var g, w;
const l = ((g = o == null ? void 0 : o["ui:options"]) == null ? void 0 : g.currency) || "USD", d = ((w = o == null ? void 0 : o["ui:options"]) == null ? void 0 : w.symbol) || "$", p = ot(s.$id, i), y = (M) => {
const v = parseFloat(M.replace(/[^0-9.-]+/g, ""));
return isNaN(v) ? "" : v.toFixed(2);
}, f = async (M) => {
const v = M.target.value.replace(/[^0-9.-]+/g, ""), b = v ? parseFloat(v) : void 0;
t(b), await p.onChange(b);
}, m = async (M) => {
const v = y(M.target.value), b = v ? parseFloat(v) : void 0;
t(b), await p.onBlur(b);
};
return /* @__PURE__ */ le("div", { style: { marginBottom: "16px" }, children: [
/* @__PURE__ */ le(
"label",
{
htmlFor: s.$id,
style: { display: "block", marginBottom: "4px", fontWeight: 500 },
children: [
i.title || "Amount",
r && /* @__PURE__ */ _("span", { style: { color: "#ff4d4f", marginLeft: "4px" }, children: "*" })
]
}
),
/* @__PURE__ */ _(
Ut,
{
id: s.$id,
inputMode: "decimal",
value: e || "",
onChange: f,
onBlur: m,
disabled: n || a,
placeholder: "0.00",
prefix: String(d),
suffix: String(l)
}
)
] });
};
function Nne(e) {
const t = e == null ? void 0 : e["ui:layoutGrid"], r = Array.isArray(t == null ? void 0 : t["ui:row"]) ? t["ui:row"] : [], n = [];
return r.forEach((a) => {
const i = (a == null ? void 0 : a["ui:row"]) || {}, o = i == null ? void 0 : i.gutter, s = ((i == null ? void 0 : i.children) || []).map((l) => {
const d = (l == null ? void 0 : l["ui:col"]) || {};
return {
span: Number(d.span ?? 24),
children: Array.isArray(d.children) ? d.children : []
};
});
n.push({ gutter: o, cols: s });
}), n;
}
function Une(e) {
const t = e == null ? void 0 : e["ui:layout"], r = Array.isArray(t == null ? void 0 : t["ui:row"]) ? t["ui:row"] : [], n = [];
return r.forEach((a) => {
const i = (a || []).map((o) => {
const s = (o == null ? void 0 : o["ui:col"]) || {}, l = Number(s.md ?? 12);
return {
span: Math.min(24, Math.max(1, l * 2)),
children: Array.isArray(s.children) ? s.children : []
};
});
n.push({ gutter: [16, 16], cols: i });
}), n;
}
const Wne = (e) => {
const {
uiSchema: t,
schema: r,
formData: n,
errorSchema: a,
idSchema: i,
idPrefix: o,
idSeparator: s,
registry: l,
onChange: d,
onBlur: p,
onFocus: y,
disabled: f,
readonly: m,
hideError: g
} = e, w = (() => {
const Z = Nne(t);
return Z.length ? Z : Une(t);
})(), M = Object.keys((r == null ? void 0 : r.properties) || {}), v = (t == null ? void 0 : t["ui:options"]) || {}, b = v.pathAware !== !1, x = v.arraySafe !== !1, S = (Z) => {
if (!(!Z || typeof Z != "object")) {
if (Array.isArray(Z.type))
return Z.type.includes("array") ? "array" : Z.type.find((ee) => ee !== "null") ?? Z.type[0];
if (typeof Z.type == "string") return Z.type;
if (Z.items) return "array";
}
}, L = (Z) => Array.isArray(Z) ? "array" : Z === null ? "null" : typeof Z, $ = (Z, de) => {
const ee = Z.filter((V) => V !== "items");
return !ee.length || de.length && ee[0] !== de[0] ? de : ee;
}, A = s ?? "_", q = (Z) => {
if (typeof Z != "string") return "";
let de = Z;
if (typeof o == "string" && o.length) {
const V = `${o}${A}`;
de.startsWith(V) && (de = de.slice(V.length));
}
if (de === "root") return "";
const ee = `root${A}`;
return de.startsWith(ee) && (de = de.slice(ee.length)), de;
}, D = (Z) => {
const de = q(Z);
return de ? de.split(A).filter(Boolean) : [];
}, H = D(i == null ? void 0 : i.$id), X = /* @__PURE__ */ new Map(), Y = (Z, de) => Z.every((ee, V) => de[V] === ee), ne = (Z, de = []) => {
const ee = D(Z);
return ee.length ? H.length ? ee.length >= H.length && Y(H, ee) ? ee.slice(H.length) : de.length ? de : ee : ee : de;
}, G = (Z) => [(i == null ? void 0 : i.$id) || "root", Z].filter(Boolean).join(A), Q = (Z) => {
var R;
const de = X.get(Z);
if (de) return de;
const ee = (R = i == null ? void 0 : i[Z]) == null ? void 0 : R.$id, V = D(ee);
let F = [];
H.length ? V.length >= H.length && Y(H, V) && (F = V.slice(H.length)) : F = V, F.length || (F = [Z]);
const W = { id: ee, path: F };
return X.set(Z, W), W;
}, ie = (Z) => {
var Be;
const { SchemaField: de } = l.fields, ee = ((Be = r == null ? void 0 : r.properties) == null ? void 0 : Be[Z]) || {}, V = (t == null ? void 0 : t[Z]) || {}, F = a == null ? void 0 : a[Z], W = Array.isArray(F == null ? void 0 : F.__errors) ? F.__errors : void 0, R = (i == null ? void 0 : i[Z]) || {}, P = Array.isArray(r == null ? void 0 : r.required) ? r.required.includes(Z) : !1, E = n && typeof n == "object" ? n : void 0, j = Q(Z), K = j.path.length ? j.path : [Z], te = S(ee), ue = j.id ?? G(Z), ae = (st) => {
const nt = E && typeof E == "object" ? { ...E } : {};
return st === void 0 ? delete nt[Z] : nt[Z] = st, nt;
}, ve = E && typeof E == "object" ? E[Z] : void 0, Se = (V == null ? void 0 : V["ui:options"]) || {}, Ee = Se.formItem || Se.formItemProps || {}, J = W != null && W.length && Ee.validateStatus === void 0 ? { validateStatus: "error" } : {}, me = {
...Ee,
...J
}, we = {
...Se,
formItem: me,
formItemProps: me
}, xe = {
...V,
"ui:options": we
};
return /* @__PURE__ */ _(
de,
{
name: Z,
required: P,
schema: ee,
uiSchema: xe,
errorSchema: F,
rawErrors: W,
idSchema: R,
idPrefix: o,
idSeparator: s,
formData: ve,
formContext: l.formContext,
onChange: (st, nt, ke, Ne) => {
const et = typeof Ne == "string" ? Ne : j.id, xt = typeof et == "string" ? et : void 0, Je = () => !Array.isArray(nt) || !nt.length ? [] : [Z, ...nt], Ot = (() => {
if (!b) return [];
const Dt = Je();
if (Dt.length) return [...Dt];
const sn = ne(xt, K), Yc = $(sn, K);
return Yc.length ? Yc : K;
})();
if (b && Ot.length) {
if (te && st !== void 0) {
const Dt = L(st);
(te === "array" && Dt !== "array" || te === "object" && Dt !== "object" && Dt !== "null" || !["array", "object"].includes(te) && Dt !== te) && console.warn(
`[LayoutGridField] Value for "${Ot.join(".") || Z}" does not match schema type "${te}". Received "${Dt}".`
);
}
ke !== void 0 ? d(st, Ot, ke, xt) : xt ? d(st, Ot, void 0, xt) : d(st, Ot);
return;
}
const Mr = ae(st);
d(Mr);
},
onBlur: (st, nt) => {
typeof p == "function" && p(typeof st == "string" ? st : ue, nt);
},
onFocus: (st, nt) => {
typeof y == "function" && y(typeof st == "string" ? st : ue, nt);
},
registry: l,
disabled: f,
readonly: m,
hideError: g
},
Z
);
};
return w.length ? /* @__PURE__ */ _("div", { "data-testid": "layout-grid-field", children: w.map((Z, de) => /* @__PURE__ */ _(Yr, { gutter: Z.gutter, style: { marginBottom: 8 }, children: Z.cols.map((ee, V) => {
const F = (ee.children || []).some((R) => {
var E;
const P = ((E = r == null ? void 0 : r.properties) == null ? void 0 : E[R]) || {};
return S(P) === "array";
}), W = x && F ? 24 : ee.span;
return /* @__PURE__ */ _(qt, { span: W, children: ee.children.map((R, P) => /* @__PURE__ */ _("div", { children: ie(R) }, `field-${de}-${V}-${P}`)) }, `col-${de}-${V}`);
}) }, `row-${de}`)) }) : /* @__PURE__ */ _("div", { "data-testid": "layout-grid-field", children: M.map((Z) => /* @__PURE__ */ _("div", { style: { marginBottom: 8 }, children: ie(Z) }, Z)) });
};
function Ge(e) {
return typeof e != "object" || e === null || typeof e.lastModified == "number" && typeof File < "u" && e instanceof File || typeof e.getMonth == "function" && typeof Date < "u" && e instanceof Date ? !1 : !Array.isArray(e);
}
function Gne(e) {
return e.additionalItems === !0 && console.warn("additionalItems=true is currently not supported"), Ge(e.additionalItems);
}
function Tz(e) {
if (e === "")
return;
if (e === null)
return null;
if (/\.$/.test(e) || /\.0$/.test(e) || /\.\d*0$/.test(e))
return e;
const t = Number(e);
return typeof t == "number" && !Number.isNaN(t) ? t : e;
}
const Ea = "__additional_property", mI = "additionalProperties", Ra = "allOf", Ft = "anyOf", Jr = "const", vA = "default", MA = "dependencies", Kne = "enum", vr = "__errors", zt = "$id", Zne = "if", Rn = "items", Xne = "_$junk_option_schema_id$_", i2 = "$name", ft = "oneOf", IO = "patternProperties", tt = "properties", RP = "readonly", BV = "required", gI = "submitButtonOptions", Pt = "$ref", El = "$schema", Yne = ["discriminator", "propertyName"], qz = "formContext", Jne = "layoutGridLookupMap", nT = "__rjsf_additionalProperties", VV = "__rjsf_rootSchema", Qne = "ui:field", aT = "ui:widget", Fn = "ui:options", AO = "ui:globalOptions", eae = "https://json-schema.org/draft/2019-09/schema", o2 = "https://json-schema.org/draft/2020-12/schema";
function _e(e = {}, t = {}) {
return e ? Object.keys(e).filter((r) => r.indexOf("ui:") === 0).reduce((r, n) => {
const a = e[n];
return n === aT && Ge(a) ? (console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"), r) : n === Fn && Ge(a) ? { ...r, ...a } : { ...r, [n.substring(3)]: a };
}, { ...t }) : { ...t };
}
function NV(e, t = {}, r) {
if (!(e.additionalProperties || e.patternProperties))
return !1;
const { expandable: n = !0 } = _e(t);
return n === !1 ? n : e.maxProperties !== void 0 && r ? Object.keys(r).length < e.maxProperties : !0;
}
var UV = typeof global == "object" && global && global.Object === Object && global, tae = typeof self == "object" && self && self.Object === Object && self, jn = UV || tae || Function("return this")(), Qr = jn.Symbol, WV = Object.prototype, rae = WV.hasOwnProperty, nae = WV.toString, bl = Qr ? Qr.toStringTag : void 0;
function aae(e) {
var t = rae.call(e, bl), r = e[bl];
try {
e[bl] = void 0;
var n = !0;
} catch {
}
var a = nae.call(e);
return n && (t ? e[bl] = r : delete e[bl]), a;
}
var iae = Object.prototype, oae = iae.toString;
function sae(e) {
return oae.call(e);
}
var cae = "[object Null]", lae = "[object Undefined]", Dz = Qr ? Qr.toStringTag : void 0;
function ha(e) {
return e == null ? e === void 0 ? lae : cae : Dz && Dz in Object(e) ? aae(e) : sae(e);
}
function GV(e, t) {
return function(r) {
return e(t(r));
};
}
var wA = GV(Object.getPrototypeOf, Object);
function en(e) {
return e != null && typeof e == "object";
}
var dae = "[object Object]", uae = Function.prototype, hae = Object.prototype, KV = uae.toString, pae = hae.hasOwnProperty, fae = KV.call(Object);
function Da(e) {
if (!en(e) || ha(e) != dae)
return !1;
var t = wA(e);
if (t === null)
return !0;
var r = pae.call(t, "constructor") && t.constructor;
return typeof r == "function" && r instanceof r && KV.call(r) == fae;
}
function kI(e) {
const t = {
// We store the list of errors for this node in a property named __errors
// to avoid name collision with a possible sub schema field named
// 'errors' (see `utils.toErrorSchema`).
[vr]: [],
addError(r) {
this[vr].push(r);
}
};
if (Array.isArray(e))
return e.reduce((r, n, a) => ({ ...r, [a]: kI(n) }), t);
if (Da(e)) {
const r = e;
return Object.keys(r).reduce((n, a) => ({ ...n, [a]: kI(r[a]) }), t);
}
return t;
}
function yae() {
this.__data__ = [], this.size = 0;
}
function wd(e, t) {
return e === t || e !== e && t !== t;
}
function bA(e, t) {
for (var r = e.length; r--; )
if (wd(e[r][0], t))
return r;
return -1;
}
var mae = Array.prototype, gae = mae.splice;
function kae(e) {
var t = this.__data__, r = bA(t, e);
if (r < 0)
return !1;
var n = t.length - 1;
return r == n ? t.pop() : gae.call(t, r, 1), --this.size, !0;
}
function vae(e) {
var t = this.__data__, r = bA(t, e);
return r < 0 ? void 0 : t[r][1];
}
function Mae(e) {
return bA(this.__data__, e) > -1;
}
function wae(e, t) {
var r = this.__data__, n = bA(r, e);
return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this;
}
function pa(e) {
var t = -1, r = e == null ? 0 : e.length;
for (this.clear(); ++t < r; ) {
var n = e[t];
this.set(n[0], n[1]);
}
}
pa.prototype.clear = yae;
pa.prototype.delete = kae;
pa.prototype.get = vae;
pa.prototype.has = Mae;
pa.prototype.set = wae;
function bae() {
this.__data__ = new pa(), this.size = 0;
}
function xae(e) {
var t = this.__data__, r = t.delete(e);
return this.size = t.size, r;
}
function Sae(e) {
return this.__data__.get(e);
}
function Cae(e) {
return this.__data__.has(e);
}
function rt(e) {
var t = typeof e;
return e != null && (t == "object" || t == "function");
}
var Lae = "[object AsyncFunction]", _ae = "[object Function]", Iae = "[object GeneratorFunction]", Aae = "[object Proxy]";
function bd(e) {
if (!rt(e))
return !1;
var t = ha(e);
return t == _ae || t == Iae || t == Lae || t == Aae;
}
var FP = jn["__core-js_shared__"], Rz = function() {
var e = /[^.]+$/.exec(FP && FP.keys && FP.keys.IE_PROTO || "");
return e ? "Symbol(src)_1." + e : "";
}();
function $ae(e) {
return !!Rz && Rz in e;
}
var Pae = Function.prototype, Oae = Pae.toString;
function zc(e) {
if (e != null) {
try {
return Oae.call(e);
} catch {
}
try {
return e + "";
} catch {
}
}
return "";
}
var Eae = /[\\^$.*+?()[\]{}|]/g, Tae = /^\[object .+?Constructor\]$/, qae = Function.prototype, Dae = Object.prototype, Rae = qae.toString, Fae = Dae.hasOwnProperty, zae = RegExp(
"^" + Rae.call(Fae).replace(Eae, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function Hae(e) {
if (!rt(e) || $ae(e))
return !1;
var t = bd(e) ? zae : Tae;
return t.test(zc(e));
}
function jae(e, t) {
return e == null ? void 0 : e[t];
}
function Hc(e, t) {
var r = jae(e, t);
return Hae(r) ? r : void 0;
}
var rd = Hc(jn, "Map"), nd = Hc(Object, "create");
function Bae() {
this.__data__ = nd ? nd(null) : {}, this.size = 0;
}
function Vae(e) {
var t = this.has(e) && delete this.__data__[e];
return this.size -= t ? 1 : 0, t;
}
var Nae = "__lodash_hash_undefined__", Uae = Object.prototype, Wae = Uae.hasOwnProperty;
function Gae(e) {
var t = this.__data__;
if (nd) {
var r = t[e];
return r === Nae ? void 0 : r;
}
return Wae.call(t, e) ? t[e] : void 0;
}
var Kae = Object.prototype, Zae = Kae.hasOwnProperty;
function Xae(e) {
var t = this.__data__;
return nd ? t[e] !== void 0 : Zae.call(t, e);
}
var Yae = "__lodash_hash_undefined__";
function Jae(e, t) {
var r = this.__data__;
return this.size += this.has(e) ? 0 : 1, r[e] = nd && t === void 0 ? Yae : t, this;
}
function Ec(e) {
var t = -1, r = e == null ? 0 : e.length;
for (this.clear(); ++t < r; ) {
var n = e[t];
this.set(n[0], n[1]);
}
}
Ec.prototype.clear = Bae;
Ec.prototype.delete = Vae;
Ec.prototype.get = Gae;
Ec.prototype.has = Xae;
Ec.prototype.set = Jae;
function Qae() {
this.size = 0, this.__data__ = {
hash: new Ec(),
map: new (rd || pa)(),
string: new Ec()
};
}
function eie(e) {
var t = typeof e;
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
}
function xA(e, t) {
var r = e.__data__;
return eie(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
}
function tie(e) {
var t = xA(this, e).delete(e);
return this.size -= t ? 1 : 0, t;
}
function rie(e) {
return xA(this, e).get(e);
}
function nie(e) {
return xA(this, e).has(e);
}
function aie(e, t) {
var r = xA(this, e), n = r.size;
return r.set(e, t), this.size += r.size == n ? 0 : 1, this;
}
function fa(e) {
var t = -1, r = e == null ? 0 : e.length;
for (this.clear(); ++t < r; ) {
var n = e[t];
this.set(n[0], n[1]);
}
}
fa.prototype.clear = Qae;
fa.prototype.delete = tie;
fa.prototype.get = rie;
fa.prototype.has = nie;
fa.prototype.set = aie;
var iie = 200;
function oie(e, t) {
var r = this.__data__;
if (r instanceof pa) {
var n = r.__data__;
if (!rd || n.length < iie - 1)
return n.push([e, t]), this.size = ++r.size, this;
r = this.__data__ = new fa(n);
}
return r.set(e, t), this.size = r.size, this;
}
function mn(e) {
var t = this.__data__ = new pa(e);
this.size = t.size;
}
mn.prototype.clear = bae;
mn.prototype.delete = xae;
mn.prototype.get = Sae;
mn.prototype.has = Cae;
mn.prototype.set = oie;
var sie = "__lodash_hash_undefined__";
function cie(e) {
return this.__data__.set(e, sie), this;
}
function lie(e) {
return this.__data__.has(e);
}
function Tc(e) {
var t = -1, r = e == null ? 0 : e.length;
for (this.__data__ = new fa(); ++t < r; )
this.add(e[t]);
}
Tc.prototype.add = Tc.prototype.push = cie;
Tc.prototype.has = lie;
function die(e, t) {
for (var r = -1, n = e == null ? 0 : e.length; ++r < n; )
if (t(e[r], r, e))
return !0;
return !1;
}
function ad(e, t) {
return e.has(t);
}
var uie = 1, hie = 2;
function ZV(e, t, r, n, a, i) {
var o = r & uie, s = e.length, l = t.length;
if (s != l && !(o && l > s))
return !1;
var d = i.get(e), p = i.get(t);
if (d && p)
return d == t && p == e;
var y = -1, f = !0, m = r & hie ? new Tc() : void 0;
for (i.set(e, t), i.set(t, e); ++y < s; ) {
var g = e[y], w = t[y];
if (n)
var M = o ? n(w, g, y, t, e, i) : n(g, w, y, e, t, i);
if (M !== void 0) {
if (M)
continue;
f = !1;
break;
}
if (m) {
if (!die(t, function(v, b) {
if (!ad(m, b) && (g === v || a(g, v, r, n, i)))
return m.push(b);
})) {
f = !1;
break;
}
} else if (!(g === w || a(g, w, r, n, i))) {
f = !1;
break;
}
}
return i.delete(e), i.delete(t), f;
}
var vI = jn.Uint8Array;
function pie(e) {
var t = -1, r = Array(e.size);
return e.forEach(function(n, a) {
r[++t] = [a, n];
}), r;
}
function iT(e) {
var t = -1, r = Array(e.size);
return e.forEach(function(n) {
r[++t] = n;
}), r;
}
var fie = 1, yie = 2, mie = "[object Boolean]", gie = "[object Date]", kie = "[object Error]", vie = "[object Map]", Mie = "[object Number]", wie = "[object RegExp]", bie = "[object Set]", xie = "[object String]", Sie = "[object Symbol]", Cie = "[object ArrayBuffer]", Lie = "[object DataView]", Fz = Qr ? Qr.prototype : void 0, zP = Fz ? Fz.valueOf : void 0;
function _ie(e, t, r, n, a, i, o) {
switch (r) {
case Lie:
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
return !1;
e = e.buffer, t = t.buffer;
case Cie:
return !(e.byteLength != t.byteLength || !i(new vI(e), new vI(t)));
case mie:
case gie:
case Mie:
return wd(+e, +t);
case kie:
return e.name == t.name && e.message == t.message;
case wie:
case xie:
return e == t + "";
case vie:
var s = pie;
case bie:
var l = n & fie;
if (s || (s = iT), e.size != t.size && !l)
return !1;
var d = o.get(e);
if (d)
return d == t;
n |= yie, o.set(e, t);
var p = ZV(s(e), s(t), n, a, i, o);
return o.delete(e), p;
case Sie:
if (zP)
return zP.call(e) == zP.call(t);
}
return !1;
}
function oT(e, t) {
for (var r = -1, n = t.length, a = e.length; ++r < n; )
e[a + r] = t[r];
return e;
}
var Xt = Array.isArray;
function XV(e, t, r) {
var n = t(e);
return Xt(e) ? n : oT(n, r(e));
}
function Iie(e, t) {
for (var r = -1, n = e == null ? 0 : e.length, a = 0, i = []; ++r < n; ) {
var o = e[r];
t(o, r, e) && (i[a++] = o);
}
return i;
}
function YV() {
return [];
}
var Aie = Object.prototype, $ie = Aie.propertyIsEnumerable, zz = Object.getOwnPropertySymbols, sT = zz ? function(e) {
return e == null ? [] : (e = Object(e), Iie(zz(e), function(t) {
return $ie.call(e, t);
}));
} : YV;
function JV(e, t) {
for (var r = -1, n = Array(e); ++r < e; )
n[r] = t(r);
return n;
}
var Pie = "[object Arguments]";
function Hz(e) {
return en(e) && ha(e) == Pie;
}
var QV = Object.prototype, Oie = QV.hasOwnProperty, Eie = QV.propertyIsEnumerable, $1 = Hz(/* @__PURE__ */ function() {
return arguments;
}()) ? Hz : function(e) {
return en(e) && Oie.call(e, "callee") && !Eie.call(e, "callee");
};
function Tie() {
return !1;
}
var eN = typeof exports == "object" && exports && !exports.nodeType && exports, jz = eN && typeof module == "object" && module && !module.nodeType && module, qie = jz && jz.exports === eN, Bz = qie ? jn.Buffer : void 0, Die = Bz ? Bz.isBuffer : void 0, qc = Die || Tie, Rie = 9007199254740991, Fie = /^(?:0|[1-9]\d*)$/;
function SA(e, t) {
var r = typeof e;
return t = t ?? Rie, !!t && (r == "number" || r != "symbol" && Fie.test(e)) && e > -1 && e % 1 == 0 && e < t;
}
var zie = 9007199254740991;
function cT(e) {
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= zie;
}
var Hie = "[object Arguments]", jie = "[object Array]", Bie = "[object Boolean]", Vie = "[object Date]", Nie = "[object Error]", Uie = "[object Function]", Wie = "[object Map]", Gie = "[object Number]", Kie = "[object Object]", Zie = "[object RegExp]", Xie = "[object Set]", Yie = "[object String]", Jie = "[object WeakMap]", Qie = "[object ArrayBuffer]", eoe = "[object DataView]", toe = "[object Float32Array]", roe = "[object Float64Array]", noe = "[object Int8Array]", aoe = "[object Int16Array]", ioe = "[object Int32Array]", ooe = "[object Uint8Array]", soe = "[object Uint8ClampedArray]", coe = "[object Uint16Array]", loe = "[object Uint32Array]", Lt = {};
Lt[toe] = Lt[roe] = Lt[noe] = Lt[aoe] = Lt[ioe] = Lt[ooe] = Lt[soe] = Lt[coe] = Lt[loe] = !0;
Lt[Hie] = Lt[jie] = Lt[Qie] = Lt[Bie] = Lt[eoe] = Lt[Vie] = Lt[Nie] = Lt[Uie] = Lt[Wie] = Lt[Gie] = Lt[Kie] = Lt[Zie] = Lt[Xie] = Lt[Yie] = Lt[Jie] = !1;
function doe(e) {
return en(e) && cT(e.length) && !!Lt[ha(e)];
}
function lT(e) {
return function(t) {
return e(t);
};
}
var tN = typeof exports == "object" && exports && !exports.nodeType && exports, Hl = tN && typeof module == "object" && module && !module.nodeType && module, uoe = Hl && Hl.exports === tN, HP = uoe && UV.process, P1 = function() {
try {
var e = Hl && Hl.require && Hl.require("util").types;
return e || HP && HP.binding && HP.binding("util");
} catch {
}
}(), Vz = P1 && P1.isTypedArray, xd = Vz ? lT(Vz) : doe, hoe = Object.prototype, poe = hoe.hasOwnProperty;
function rN(e, t) {
var r = Xt(e), n = !r && $1(e), a = !r && !n && qc(e), i = !r && !n && !a && xd(e), o = r || n || a || i, s = o ? JV(e.length, String) : [], l = s.length;
for (var d in e)
(t || poe.call(e, d)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
(d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
a && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
i && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
SA(d, l))) && s.push(d);
return s;
}
var foe = Object.prototype;
function CA(e) {
var t = e && e.constructor, r = typeof t == "function" && t.prototype || foe;
return e === r;
}
var yoe = GV(Object.keys, Object), moe = Object.prototype, goe = moe.hasOwnProperty;
function nN(e) {
if (!CA(e))
return yoe(e);
var t = [];
for (var r in Object(e))
goe.call(e, r) && r != "constructor" && t.push(r);
return t;
}
function jc(e) {
return e != null && cT(e.length) && !bd(e);
}
function fn(e) {
return jc(e) ? rN(e) : nN(e);
}
function $O(e) {
return XV(e, fn, sT);
}
var koe = 1, voe = Object.prototype, Moe = voe.hasOwnProperty;
function woe(e, t, r, n, a, i) {
var o = r & koe, s = $O(e), l = s.length, d = $O(t), p = d.length;
if (l != p && !o)
return !1;
for (var y = l; y--; ) {
var f = s[y];
if (!(o ? f in t : Moe.call(t, f)))
return !1;
}
var m = i.get(e), g = i.get(t);
if (m && g)
return m == t && g == e;
var w = !0;
i.set(e, t), i.set(t, e);
for (var M = o; ++y < l; ) {
f = s[y];
var v = e[f], b = t[f];
if (n)
var x = o ? n(b, v, f, t, e, i) : n(v, b, f, e, t, i);
if (!(x === void 0 ? v === b || a(v, b, r, n, i) : x)) {
w = !1;
break;
}
M || (M = f == "constructor");
}
if (w && !M) {
var S = e.constructor, L = t.constructor;
S != L && "constructor" in e && "constructor" in t && !(typeof S == "function" && S instanceof S && typeof L == "function" && L instanceof L) && (w = !1);
}
return i.delete(e), i.delete(t), w;
}
var PO = Hc(jn, "DataView"), OO = Hc(jn, "Promise"), x1 = Hc(jn, "Set"), EO = Hc(jn, "WeakMap"), Nz = "[object Map]", boe = "[object Object]", Uz = "[object Promise]", Wz = "[object Set]", Gz = "[object WeakMap]", Kz = "[object DataView]", xoe = zc(PO), Soe = zc(rd), Coe = zc(OO), Loe = zc(x1), _oe = zc(EO), Kr = ha;
(PO && Kr(new PO(new ArrayBuffer(1))) != Kz || rd && Kr(new rd()) != Nz || OO && Kr(OO.resolve()) != Uz || x1 && Kr(new x1()) != Wz || EO && Kr(new EO()) != Gz) && (Kr = function(e) {
var t = ha(e), r = t == boe ? e.constructor : void 0, n = r ? zc(r) : "";
if (n)
switch (n) {
case xoe:
return Kz;
case Soe:
return Nz;
case Coe:
return Uz;
case Loe:
return Wz;
case _oe:
return Gz;
}
return t;
});
var Ioe = 1, Zz = "[object Arguments]", Xz = "[object Array]", Ru = "[object Object]", Aoe = Object.prototype, Yz = Aoe.hasOwnProperty;
function $oe(e, t, r, n, a, i) {
var o = Xt(e), s = Xt(t), l = o ? Xz : Kr(e), d = s ? Xz : Kr(t);
l = l == Zz ? Ru : l, d = d == Zz ? Ru : d;
var p = l == Ru, y = d == Ru, f = l == d;
if (f && qc(e)) {
if (!qc(t))
return !1;
o = !0, p = !1;
}
if (f && !p)
return i || (i = new mn()), o || xd(e) ? ZV(e, t, r, n, a, i) : _ie(e, t, l, r, n, a, i);
if (!(r & Ioe)) {
var m = p && Yz.call(e, "__wrapped__"), g = y && Yz.call(t, "__wrapped__");
if (m || g) {
var w = m ? e.value() : e, M = g ? t.value() : t;
return i || (i = new mn()), a(w, M, r, n, i);
}
}
return f ? (i || (i = new mn()), woe(e, t, r, n, a, i)) : !1;
}
function Sd(e, t, r, n, a) {
return e === t ? !0 : e == null || t == null || !en(e) && !en(t) ? e !== e && t !== t : $oe(e, t, r, n, Sd, a);
}
function Poe(e, t, r) {
r = typeof r == "function" ? r : void 0;
var n = r ? r(e, t) : void 0;
return n === void 0 ? Sd(e, t, void 0, r) : !!n;
}
function It(e, t) {
return Poe(e, t, (r, n) => {
if (typeof r == "function" && typeof n == "function")
return !0;
});
}
var Ooe = "[object Symbol]";
function Cd(e) {
return typeof e == "symbol" || en(e) && ha(e) == Ooe;
}
var Eoe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Toe = /^\w*$/;
function dT(e, t) {
if (Xt(e))
return !1;
var r = typeof e;
return r == "number" || r == "symbol" || r == "boolean" || e == null || Cd(e) ? !0 : Toe.test(e) || !Eoe.test(e) || t != null && e in Object(t);
}
var qoe = "Expected a function";
function uT(e, t) {
if (typeof e != "function" || t != null && typeof t != "function")
throw new TypeError(qoe);
var r = function() {
var n = arguments, a = t ? t.apply(this, n) : n[0], i = r.cache;
if (i.has(a))
return i.get(a);
var o = e.apply(this, n);
return r.cache = i.set(a, o) || i, o;
};
return r.cache = new (uT.Cache || fa)(), r;
}
uT.Cache = fa;
var Doe = 500;
function Roe(e) {
var t = uT(e, function(n) {
return r.size === Doe && r.clear(), n;
}), r = t.cache;
return t;
}
var Foe = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, zoe = /\\(\\)?/g, aN = Roe(function(e) {
var t = [];
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Foe, function(r, n, a, i) {
t.push(a ? i.replace(zoe, "$1") : n || r);
}), t;
});
function H1(e, t) {
for (var r = -1, n = e == null ? 0 : e.length, a = Array(n); ++r < n; )
a[r] = t(e[r], r, e);
return a;
}
var Jz = Qr ? Qr.prototype : void 0, Qz = Jz ? Jz.toString : void 0;
function iN(e) {
if (typeof e == "string")
return e;
if (Xt(e))
return H1(e, iN) + "";
if (Cd(e))
return Qz ? Qz.call(e) : "";
var t = e + "";
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
}
function hT(e) {
return e == null ? "" : iN(e);
}
function j1(e, t) {
return Xt(e) ? e : dT(e, t) ? [e] : aN(hT(e));
}
function Bc(e) {
if (typeof e == "string" || Cd(e))
return e;
var t = e + "";
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
}
function LA(e, t) {
t = j1(t, e);
for (var r = 0, n = t.length; e != null && r < n; )
e = e[Bc(t[r++])];
return r && r == n ? e : void 0;
}
function pe(e, t, r) {
var n = e == null ? void 0 : LA(e, t);
return n === void 0 ? r : n;
}
var Hoe = Object.prototype, joe = Hoe.hasOwnProperty;
function Boe(e, t) {
return e != null && joe.call(e, t);
}
function oN(e, t, r) {
t = j1(t, e);
for (var n = -1, a = t.length, i = !1; ++n < a; ) {
var o = Bc(t[n]);
if (!(i = e != null && r(e, o)))
break;
e = e[o];
}
return i || ++n != a ? i : (a = e == null ? 0 : e.length, !!a && cT(a) && SA(o, a) && (Xt(e) || $1(e)));
}
function Ze(e, t) {
return e != null && oN(e, t, Boe);
}
function sN(e, t) {
return Sd(e, t);
}
var MI = function() {
try {
var e = Hc(Object, "defineProperty");
return e({}, "", {}), e;
} catch {
}
}();
function pT(e, t, r) {
t == "__proto__" && MI ? MI(e, t, {
configurable: !0,
enumerable: !0,
value: r,
writable: !0
}) : e[t] = r;
}
var Voe = Object.prototype, Noe = Voe.hasOwnProperty;
function fT(e, t, r) {
var n = e[t];
(!(Noe.call(e, t) && wd(n, r)) || r === void 0 && !(t in e)) && pT(e, t, r);
}
function yT(e, t, r, n) {
if (!rt(e))
return e;
t = j1(t, e);
for (var a = -1, i = t.length, o = i - 1, s = e; s != null && ++a < i; ) {
var l = Bc(t[a]), d = r;
if (l === "__proto__" || l === "constructor" || l === "prototype")
return e;
if (a != o) {
var p = s[l];
d = n ? n(p, l, s) : void 0, d === void 0 && (d = rt(p) ? p : SA(t[a + 1]) ? [] : {});
}
fT(s, l, d), s = s[l];
}
return e;
}
function ht(e, t, r) {
return e == null ? e : yT(e, t, r);
}
function _A(e) {
return e;
}
function cN(e) {
return typeof e == "function" ? e : _A;
}
var Uoe = /\s/;
function Woe(e) {
for (var t = e.length; t-- && Uoe.test(e.charAt(t)); )
;
return t;
}
var Goe = /^\s+/;
function Koe(e) {
return e && e.slice(0, Woe(e) + 1).replace(Goe, "");
}
var eH = NaN, Zoe = /^[-+]0x[0-9a-f]+$/i, Xoe = /^0b[01]+$/i, Yoe = /^0o[0-7]+$/i, Joe = parseInt;
function Qoe(e) {
if (typeof e == "number")
return e;
if (Cd(e))
return eH;
if (rt(e)) {
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
e = rt(t) ? t + "" : t;
}
if (typeof e != "string")
return e === 0 ? e : +e;
e = Koe(e);
var r = Xoe.test(e);
return r || Yoe.test(e) ? Joe(e.slice(2), r ? 2 : 8) : Zoe.test(e) ? eH : +e;
}
var ese = 1 / 0, tse = 17976931348623157e292;
function rse(e) {
if (!e)
return e === 0 ? e : 0;
if (e = Qoe(e), e === ese || e === -1 / 0) {
var t = e < 0 ? -1 : 1;
return t * tse;
}
return e === e ? e : 0;
}
function lN(e) {
var t = rse(e), r = t % 1;
return t === t ? r ? t - r : t : 0;
}
var nse = 9007199254740991, jP = 4294967295, ase = Math.min;
function dN(e, t) {
if (e = lN(e), e < 1 || e > nse)
return [];
var r = jP, n = ase(e, jP);
t = cN(t), e -= jP;
for (var a = JV(n, t); ++r < e; )
t(r);
return a;
}
function mT(e, t) {
for (var r = -1, n = e == null ? 0 : e.length; ++r < n && t(e[r], r, e) !== !1; )
;
return e;
}
var tH = Object.create, uN = /* @__PURE__ */ function() {
function e() {
}
return function(t) {
if (!rt(t))
return {};
if (tH)
return tH(t);
e.prototype = t;
var r = new e();
return e.prototype = void 0, r;
};
}();
function ise(e) {
return function(t, r, n) {
for (var a = -1, i = Object(t), o = n(t), s = o.length; s--; ) {
var l = o[++a];
if (r(i[l], l, i) === !1)
break;
}
return t;
};
}
var hN = ise();
function pN(e, t) {
return e && hN(e, t, fn);
}
var ose = 1, sse = 2;
function cse(e, t, r, n) {
var a = r.length, i = a;
if (e == null)
return !i;
for (e = Object(e); a--; ) {
var o = r[a];
if (o[2] ? o[1] !== e[o[0]] : !(o[0] in e))
return !1;
}
for (