@me-framework/me-ui-antdv-next 0.0.34 → 0.0.36

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.
@@ -1,9 +1,9 @@
1
1
  import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, h as p, inject as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as x, onUnmounted as S, openBlock as C, provide as w, reactive as T, ref as E, render as D, renderList as O, renderSlot as k, resolveComponent as A, resolveDynamicComponent as j, shallowRef as M, toDisplayString as N, unref as P, useAttrs as F, useSlots as I, vShow as L, watch as R, withCtx as z, withDirectives as B, withModifiers as V } from "vue";
2
2
  import { message as H, theme as ee } from "antdv-next";
3
3
  import * as U from "@lucide/vue";
4
- import { Check as W, ChevronDown as te, ChevronLeft as G, ChevronRight as K, Copy as q, Download as J, FileCode as Y, Maximize as ne, Maximize2 as re, Minimize as X, Minimize2 as Z, Upload as Q, X as $ } from "@lucide/vue";
5
- import { useDraggable as ie } from "vue-draggable-plus";
6
- import ae from "dayjs";
4
+ import { Check as W, ChevronDown as G, ChevronLeft as K, ChevronRight as q, Copy as J, Download as Y, FileCode as te, Maximize as ne, Maximize2 as re, Minimize as X, Minimize2 as Z, Upload as Q, X as ie } from "@lucide/vue";
5
+ import { useDraggable as ae } from "vue-draggable-plus";
6
+ import $ from "dayjs";
7
7
  //#region \0rolldown/runtime.js
8
8
  var oe = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, le = Object.getOwnPropertyNames, ue = Object.getPrototypeOf, de = Object.prototype.hasOwnProperty, fe = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), pe = (e, t, n, r) => {
9
9
  if (t && typeof t == "object" || typeof t == "function") for (var i = le(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !de.call(e, s) && s !== n && se(e, s, {
@@ -93,7 +93,7 @@ var oe = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDe
93
93
  algorithm: F.value ? c : o,
94
94
  token: { borderRadius: 6 },
95
95
  components: { Modal: { titleFontSize: 18 } }
96
- })), V = r(() => v.value === "process" ? d.data.process?.title ?? d.data.normal?.title : d.data.normal?.title), H = r(() => v.value === "process" ? d.data.process?.message ?? d.data.normal?.message : d.data.normal?.message), U = r(() => v.value === "process" ? d.data.process?.loading ?? !1 : d.data.normal?.loading ?? !1), W = r(() => v.value === "process" ? d.data.process?.type ?? d.data.normal?.type ?? "default" : d.data.normal?.type ?? "default"), te = r(() => !!d.handler?.cancel), G = r(() => W.value === "default" ? "default" : "primary"), K = r(() => W.value === "danger");
96
+ })), V = r(() => v.value === "process" ? d.data.process?.title ?? d.data.normal?.title : d.data.normal?.title), H = r(() => v.value === "process" ? d.data.process?.message ?? d.data.normal?.message : d.data.normal?.message), U = r(() => v.value === "process" ? d.data.process?.loading ?? !1 : d.data.normal?.loading ?? !1), W = r(() => v.value === "process" ? d.data.process?.type ?? d.data.normal?.type ?? "default" : d.data.normal?.type ?? "default"), G = r(() => !!d.handler?.cancel), K = r(() => W.value === "default" ? "default" : "primary"), q = r(() => W.value === "danger");
97
97
  R(h, async (e) => {
98
98
  if (e ? (D && d.closeOnRouteChange && (O.value = D.currentRoute.value.fullPath), j || (w = !1)) : !w && !j && (O.value = null), e && !d.centered && d.top !== void 0) {
99
99
  await g();
@@ -101,14 +101,14 @@ var oe = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDe
101
101
  n && (n.style.marginTop = e);
102
102
  }
103
103
  });
104
- let q = (e, ...t) => new Promise((n) => {
104
+ let J = (e, ...t) => new Promise((n) => {
105
105
  if (!e) {
106
106
  n(!0);
107
107
  return;
108
108
  }
109
109
  let r = e(...t);
110
110
  r instanceof Promise ? r.then((e) => n(e !== !1)).catch(() => n(!1)) : n(r !== !1);
111
- }), J = () => {
111
+ }), Y = () => {
112
112
  T = null;
113
113
  let e = d.data.request;
114
114
  return !e || new Promise((t) => {
@@ -122,17 +122,17 @@ var oe = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDe
122
122
  t(!0);
123
123
  }) : t(!0);
124
124
  });
125
- }, Y = async () => {
125
+ }, te = async () => {
126
126
  if (w) {
127
127
  w = !1, y = !1;
128
128
  return;
129
129
  }
130
- y || (y = !0, await q(d.handler?.cancel) ? h.value = !1 : (v.value = "normal", y = !1));
130
+ y || (y = !0, await J(d.handler?.cancel) ? h.value = !1 : (v.value = "normal", y = !1));
131
131
  }, ne = async () => {
132
132
  if (y) return;
133
133
  y = !0, v.value = "process";
134
134
  let e = !0;
135
- d.data.request && (e = await J()), e && d.handler?.confirm ? await q(d.handler.confirm, T) ? h.value = !1 : (v.value = "normal", y = !1) : h.value = !1;
135
+ d.data.request && (e = await Y()), e && d.handler?.confirm ? await J(d.handler.confirm, T) ? h.value = !1 : (v.value = "normal", y = !1) : h.value = !1;
136
136
  };
137
137
  return (t, n) => {
138
138
  let r = A("a-button"), o = A("a-modal"), c = A("a-config-provider");
@@ -147,20 +147,20 @@ var oe = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDe
147
147
  "mask-closable": !1,
148
148
  keyboard: !1,
149
149
  "wrap-class-name": "me-message-modal",
150
- onCancel: Y
150
+ onCancel: te
151
151
  }, {
152
- footer: z(() => [s("div", he, [k(t.$slots, "me-message-footer", {}, () => [n[3] ||= s("div", null, null, -1), s("div", ge, [te.value ? (C(), i(r, {
152
+ footer: z(() => [s("div", he, [k(t.$slots, "me-message-footer", {}, () => [n[3] ||= s("div", null, null, -1), s("div", ge, [G.value ? (C(), i(r, {
153
153
  key: 0,
154
154
  type: "link",
155
155
  class: "me-message__cancel",
156
156
  autoInsertSpace: !1,
157
- onClick: Y
157
+ onClick: te
158
158
  }, {
159
159
  default: z(() => [...n[1] ||= [l("取消 ", -1)]]),
160
160
  _: 1
161
161
  })) : a("", !0), u(r, {
162
- type: G.value,
163
- danger: K.value,
162
+ type: K.value,
163
+ danger: q.value,
164
164
  loading: U.value,
165
165
  autoInsertSpace: !1,
166
166
  class: _(["me-message__confirm", `me-message__confirm--${W.value}`]),
@@ -714,7 +714,7 @@ var Ue = ["onClick"], We = /* @__PURE__ */ d({
714
714
  onMenuClick: ({ key: n }) => b(e, t, n),
715
715
  onClick: r[1] ||= V(() => {}, ["stop"])
716
716
  }, {
717
- default: z(() => [s("span", { class: _(["me-breadcrumb__menu-trigger", { "is-bold": e.bold }]) }, [l(N(e.label) + " ", 1), u(P(te), {
717
+ default: z(() => [s("span", { class: _(["me-breadcrumb__menu-trigger", { "is-bold": e.bold }]) }, [l(N(e.label) + " ", 1), u(P(G), {
718
718
  size: 14,
719
719
  "stroke-width": 2
720
720
  })], 2)]),
@@ -936,7 +936,7 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
936
936
  "dot",
937
937
  "color"
938
938
  ])) : a("", !0),
939
- u(P(te), {
939
+ u(P(G), {
940
940
  class: "me-menu__tree-arrow",
941
941
  size: 12
942
942
  })
@@ -1071,32 +1071,32 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
1071
1071
  backgroundImage: D.value ? `linear-gradient(rgb(0 0 0 / 70%), rgb(0 0 0 / 80%)), url(${e})` : `url(${e})`,
1072
1072
  backgroundSize: "cover"
1073
1073
  } : { background: e };
1074
- }), V = r(() => b.value), H = r(() => ae.value.length > 0), ee = r(() => typeof d.leftWidth == "number" ? `${d.leftWidth}px` : d.leftWidth), U = r(() => typeof d.rightWidth == "number" ? `${d.rightWidth}px` : d.rightWidth), W = r(() => {
1074
+ }), V = r(() => b.value), H = r(() => $.value.length > 0), ee = r(() => typeof d.leftWidth == "number" ? `${d.leftWidth}px` : d.leftWidth), U = r(() => typeof d.rightWidth == "number" ? `${d.rightWidth}px` : d.rightWidth), W = r(() => {
1075
1075
  let e = {};
1076
1076
  if (d.collapseDuration !== void 0) {
1077
1077
  let t = d.collapseDuration;
1078
1078
  e["--me-menu-transition-duration"] = typeof t == "number" || /^\d+(\.\d+)?$/.test(t) ? `${t}ms` : t;
1079
1079
  }
1080
1080
  return d.collapseAnimation !== void 0 && (e["--me-menu-transition-timing"] = d.collapseAnimation), e;
1081
- }), q = E(0), J = r(() => {
1081
+ }), J = E(0), Y = r(() => {
1082
1082
  let e = Number.parseFloat(String(d.leftWidth)) || 0, t = Number.parseFloat(String(d.rightWidth)) || 0;
1083
1083
  return {
1084
1084
  left: `${(H.value && !b.value ? e + t : e) - 8}px`,
1085
- top: `${q.value}px`
1085
+ top: `${J.value}px`
1086
1086
  };
1087
- }), Y = E(!1), ne = (e) => {
1087
+ }), te = E(!1), ne = (e) => {
1088
1088
  if (!d.showRightToggle || !H.value) return;
1089
1089
  let t = e.currentTarget, n = t.querySelector(".me-menu__right"), r = n && n.offsetParent !== null ? n : t.querySelector(".me-menu__left");
1090
1090
  if (!r) return;
1091
1091
  let i = r.getBoundingClientRect(), a = Math.abs(e.clientX - i.right) <= 16;
1092
- if (a && !Y.value) {
1092
+ if (a && !te.value) {
1093
1093
  let n = t.getBoundingClientRect();
1094
- q.value = Math.max(36, Math.min(e.clientY - n.top, n.height - 8 - 28));
1094
+ J.value = Math.max(36, Math.min(e.clientY - n.top, n.height - 8 - 28));
1095
1095
  }
1096
- Y.value = a;
1096
+ te.value = a;
1097
1097
  }, re = () => {
1098
- Y.value = !1;
1099
- }, X = (e) => e[d.keyField] ?? e.id, Z = (e) => !(!d.showHidden && e.hideFlag || e.meta?.hideMenu || d.hideDisabled && !e.enableFlag), Q = r(() => d.data.filter((e) => e.parentId === "0" && Z(e)).sort((e, t) => e.sort - t.sort)), $ = r(() => h.value ? h.value : d.activeId ? d.activeId : d.defaultActiveId ? d.defaultActiveId : Q.value[0] ? X(Q.value[0]) : ""), ie = r(() => $.value && Q.value.find((e) => X(e) === $.value) || null), ae = r(() => ie.value?.children ? ie.value.children.filter((e) => Z(e)).sort((e, t) => e.sort - t.sort) : []), oe = r(() => g.value ? g.value : d.selectedId ? d.selectedId : d.defaultSelectedId ? d.defaultSelectedId : ""), se = r(() => oe.value ? le(d.data, oe.value) : null);
1098
+ te.value = !1;
1099
+ }, X = (e) => e[d.keyField] ?? e.id, Z = (e) => !(!d.showHidden && e.hideFlag || e.meta?.hideMenu || d.hideDisabled && !e.enableFlag), Q = r(() => d.data.filter((e) => e.parentId === "0" && Z(e)).sort((e, t) => e.sort - t.sort)), ie = r(() => h.value ? h.value : d.activeId ? d.activeId : d.defaultActiveId ? d.defaultActiveId : Q.value[0] ? X(Q.value[0]) : ""), ae = r(() => ie.value && Q.value.find((e) => X(e) === ie.value) || null), $ = r(() => ae.value?.children ? ae.value.children.filter((e) => Z(e)).sort((e, t) => e.sort - t.sort) : []), oe = r(() => g.value ? g.value : d.selectedId ? d.selectedId : d.defaultSelectedId ? d.defaultSelectedId : ""), se = r(() => oe.value ? le(d.data, oe.value) : null);
1100
1100
  R(() => oe.value, (e) => {
1101
1101
  if (!e) return;
1102
1102
  me(e);
@@ -1128,7 +1128,7 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
1128
1128
  return null;
1129
1129
  }, ue = (e) => !e.children || e.meta?.hideChildrenMenu ? [] : e.children.filter((e) => Z(e)).sort((e, t) => e.sort - t.sort), de = (e) => {
1130
1130
  v.value.has(e) ? v.value.delete(e) : v.value.add(e);
1131
- }, fe = (e) => v.value.has(e), pe = (e, t = ae.value) => {
1131
+ }, fe = (e) => v.value.has(e), pe = (e, t = $.value) => {
1132
1132
  for (let n of t) {
1133
1133
  let t = ue(n);
1134
1134
  if (t.some((t) => X(t) === e)) return [X(n)];
@@ -1143,8 +1143,8 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
1143
1143
  v.value.add(e);
1144
1144
  });
1145
1145
  }, he = (e) => {
1146
- if (!e || !ae.value) return null;
1147
- for (let t of ae.value) {
1146
+ if (!e || !$.value) return null;
1147
+ for (let t of $.value) {
1148
1148
  if (X(t) === e) return t;
1149
1149
  let n = ue(t);
1150
1150
  if (n.length > 0) {
@@ -1166,9 +1166,9 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
1166
1166
  let t = ue(e);
1167
1167
  return t.length === 0 ? null : ge(t);
1168
1168
  };
1169
- R(() => $.value, () => {
1169
+ R(() => ie.value, () => {
1170
1170
  let e = d.selectedId || g.value || d.defaultSelectedId, t = he(e);
1171
- if (t && ae.value.length > 0) {
1171
+ if (t && $.value.length > 0) {
1172
1172
  if (me(e), ve(t)) {
1173
1173
  g.value !== e && (g.value = e);
1174
1174
  return;
@@ -1180,7 +1180,7 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
1180
1180
  return;
1181
1181
  }
1182
1182
  }
1183
- let n = ge(ae.value);
1183
+ let n = ge($.value);
1184
1184
  if (n) {
1185
1185
  let e = X(n);
1186
1186
  g.value = e, f("update:selectedId", e), f("select", n), _e(n);
@@ -1234,7 +1234,7 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
1234
1234
  s("div", lt, [k(r.$slots, "logo", {}, () => [c[0] ||= s("span", { class: "me-menu__logo-text" }, "MeMenu", -1)])]),
1235
1235
  s("div", ut, [(C(!0), o(e, null, O(Q.value, (t) => (C(), o(e, { key: X(t) }, [t.meta?.divider ? (C(), o("div", dt)) : a("", !0), s("div", {
1236
1236
  class: _(["me-menu__left-item", {
1237
- "is-active": $.value === X(t),
1237
+ "is-active": ie.value === X(t),
1238
1238
  "is-disabled": !t.enableFlag
1239
1239
  }]),
1240
1240
  onClick: (e) => xe(t)
@@ -1264,10 +1264,10 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
1264
1264
  B(s("div", {
1265
1265
  class: _(["me-menu__right", { "is-collapsed": b.value }]),
1266
1266
  style: y({ "--me-menu-right-width": U.value })
1267
- }, [s("div", ht, [(C(!0), o(e, null, O(ae.value, (t) => (C(), o(e, { key: X(t) }, [t.meta?.type === "group" ? (C(), o(e, { key: 0 }, [s("div", gt, [s("div", {
1267
+ }, [s("div", ht, [(C(!0), o(e, null, O($.value, (t) => (C(), o(e, { key: X(t) }, [t.meta?.type === "group" ? (C(), o(e, { key: 0 }, [s("div", gt, [s("div", {
1268
1268
  class: "me-menu__section-header",
1269
1269
  onClick: (e) => de(X(t))
1270
- }, [u(P(te), {
1270
+ }, [u(P(G), {
1271
1271
  class: _(["me-menu__section-arrow", { "is-expanded": fe(X(t)) }]),
1272
1272
  size: 12
1273
1273
  }, null, 8, ["class"]), s("span", vt, N(t.title), 1)], 8, _t), u(n, { name: "me-menu-section" }, {
@@ -1282,7 +1282,7 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
1282
1282
  }, 1024)]), c[2] ||= s("div", { class: "me-menu__section-divider" }, null, -1)], 64)) : ue(t).length > 0 ? (C(), o(e, { key: 1 }, [s("div", bt, [s("div", {
1283
1283
  class: "me-menu__section-header",
1284
1284
  onClick: (e) => de(X(t))
1285
- }, [u(P(te), {
1285
+ }, [u(P(G), {
1286
1286
  class: _(["me-menu__section-arrow", { "is-expanded": fe(X(t)) }]),
1287
1287
  size: 12
1288
1288
  }, null, 8, ["class"]), s("span", St, N(t.title), 1)], 8, xt), u(n, { name: "me-menu-section" }, {
@@ -1323,13 +1323,13 @@ var it = rt, at = { class: "me-menu__tree-text" }, ot = { class: "me-menu__tree-
1323
1323
  ], 10, wt))], 64))), 128))])], 6), [[L, H.value]]),
1324
1324
  t.showRightToggle ? (C(), o("div", {
1325
1325
  key: 0,
1326
- class: _(["me-menu__right-toggle", { "is-visible": Y.value }]),
1327
- style: y(J.value),
1326
+ class: _(["me-menu__right-toggle", { "is-visible": te.value }]),
1327
+ style: y(Y.value),
1328
1328
  onClick: be
1329
- }, [k(r.$slots, "right-toggle", { collapsed: V.value }, () => [V.value ? (C(), i(P(K), {
1329
+ }, [k(r.$slots, "right-toggle", { collapsed: V.value }, () => [V.value ? (C(), i(P(q), {
1330
1330
  key: 0,
1331
1331
  size: 14
1332
- })) : (C(), i(P(G), {
1332
+ })) : (C(), i(P(K), {
1333
1333
  key: 1,
1334
1334
  size: 14
1335
1335
  }))])], 6)) : a("", !0)
@@ -1535,7 +1535,7 @@ var At = {
1535
1535
  "close-all"
1536
1536
  ],
1537
1537
  setup(t, { expose: n, emit: c }) {
1538
- let l = t, d = c, f = r(() => l.tabProps.key ?? "path"), m = r(() => l.tabProps.label ?? "title"), h = r(() => l.tabProps.isHome ?? "isHome"), v = r(() => l.tabProps.lock ?? "lock"), S = r(() => l.tabProps.icon ?? "icon"), w = r(() => l.width ? typeof l.width == "number" ? `${l.width}px` : l.width : ""), T = r(() => l.titleMaxWidth === void 0 ? {} : { maxWidth: typeof l.titleMaxWidth == "number" ? `${l.titleMaxWidth}px` : l.titleMaxWidth }), D = r(() => l.titleMaxWidth !== void 0), M = (e) => e ? (typeof e == "object" || typeof e == "function") && typeof e != "string" : !1, F = E(null), I = E(null), L = E(null), B = E(l.modelValue), { translateX: H, showLeftArrow: ee, showRightArrow: W, isSmooth: te, isScrollable: G, withSmooth: K, updateArrowVisibility: q, clampTranslateX: J, scrollLeft: Y, scrollRight: ne, canScroll: re } = Ot(I, L), X = null;
1538
+ let l = t, d = c, f = r(() => l.tabProps.key ?? "path"), m = r(() => l.tabProps.label ?? "title"), h = r(() => l.tabProps.isHome ?? "isHome"), v = r(() => l.tabProps.lock ?? "lock"), S = r(() => l.tabProps.icon ?? "icon"), w = r(() => l.width ? typeof l.width == "number" ? `${l.width}px` : l.width : ""), T = r(() => l.titleMaxWidth === void 0 ? {} : { maxWidth: typeof l.titleMaxWidth == "number" ? `${l.titleMaxWidth}px` : l.titleMaxWidth }), D = r(() => l.titleMaxWidth !== void 0), M = (e) => e ? (typeof e == "object" || typeof e == "function") && typeof e != "string" : !1, F = E(null), I = E(null), L = E(null), B = E(l.modelValue), { translateX: H, showLeftArrow: ee, showRightArrow: W, isSmooth: G, isScrollable: K, withSmooth: q, updateArrowVisibility: J, clampTranslateX: Y, scrollLeft: te, scrollRight: ne, canScroll: re } = Ot(I, L), X = null;
1539
1539
  R(H, (e) => {
1540
1540
  X === null && (X = requestAnimationFrame(() => {
1541
1541
  X = null, d("scroll", e);
@@ -1543,16 +1543,16 @@ var At = {
1543
1543
  }), b(() => {
1544
1544
  X !== null && cancelAnimationFrame(X);
1545
1545
  });
1546
- let { isDragging: Z, handleDragStart: Q, handleTouchStart: $, setDragRefs: ie, getHasDragged: ae, resetHasDragged: oe } = kt({
1546
+ let { isDragging: Z, handleDragStart: Q, handleTouchStart: ie, setDragRefs: ae, getHasDragged: $, resetHasDragged: oe } = kt({
1547
1547
  canScroll: re,
1548
1548
  translateX: H,
1549
- clampTranslateX: J,
1550
- updateArrowVisibility: q
1549
+ clampTranslateX: Y,
1550
+ updateArrowVisibility: J
1551
1551
  }), se = 0, ce = null, le = (e) => {
1552
1552
  if (!re()) return;
1553
1553
  let t = Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY;
1554
1554
  t !== 0 && (e.preventDefault(), se += t, ce === null && (ce = requestAnimationFrame(() => {
1555
- ce = null, H.value -= se, se = 0, J(), q();
1555
+ ce = null, H.value -= se, se = 0, Y(), J();
1556
1556
  })));
1557
1557
  };
1558
1558
  b(() => {
@@ -1572,10 +1572,10 @@ var At = {
1572
1572
  let n = I.value.getBoundingClientRect(), r = t.getBoundingClientRect();
1573
1573
  if (r.left >= n.left && r.right <= n.right) return;
1574
1574
  let i = l.scrollTargetOffset, a = i <= 1 ? n.width * i : i, o;
1575
- o = r.left < n.left ? r.left - n.left - a : r.right - n.right + a, !(Math.abs(o) < 1) && (te.value = !0, requestAnimationFrame(() => {
1575
+ o = r.left < n.left ? r.left - n.left - a : r.right - n.right + a, !(Math.abs(o) < 1) && (G.value = !0, requestAnimationFrame(() => {
1576
1576
  requestAnimationFrame(() => {
1577
- H.value -= o, J(), q(), setTimeout(() => {
1578
- te.value = !1;
1577
+ H.value -= o, Y(), J(), setTimeout(() => {
1578
+ G.value = !1;
1579
1579
  }, 300);
1580
1580
  });
1581
1581
  }));
@@ -1584,12 +1584,12 @@ var At = {
1584
1584
  let t = e ?? B.value;
1585
1585
  t && fe(t);
1586
1586
  }, me = () => {
1587
- K(() => {
1588
- H.value = 0, J(), q();
1587
+ q(() => {
1588
+ H.value = 0, Y(), J();
1589
1589
  });
1590
1590
  }, he = () => {
1591
- K(() => {
1592
- !I.value || !L.value || (H.value = I.value.clientWidth - L.value.scrollWidth, J(), q());
1591
+ q(() => {
1592
+ !I.value || !L.value || (H.value = I.value.clientWidth - L.value.scrollWidth, Y(), J());
1593
1593
  });
1594
1594
  }, ge = (e) => l.closable ? !e[h.value] && !e[v.value] : !1, _e = {
1595
1595
  refresh: "RefreshCw",
@@ -1685,7 +1685,7 @@ var At = {
1685
1685
  event: {}
1686
1686
  });
1687
1687
  }, Ce = (e, t) => {
1688
- if (ae()) {
1688
+ if ($()) {
1689
1689
  oe();
1690
1690
  return;
1691
1691
  }
@@ -1750,22 +1750,22 @@ var At = {
1750
1750
  B.value = e, pe(e);
1751
1751
  }), R(() => l.tabList, () => {
1752
1752
  g(() => {
1753
- pe(B.value), q();
1753
+ pe(B.value), J();
1754
1754
  });
1755
1755
  }, {
1756
1756
  flush: "post",
1757
1757
  deep: !0
1758
1758
  }), R(() => l.width, () => {
1759
1759
  g(() => {
1760
- J(), q(), pe(B.value);
1760
+ Y(), J(), pe(B.value);
1761
1761
  });
1762
1762
  });
1763
1763
  let Ee = null, De = () => {
1764
- J(), q(), pe(B.value);
1764
+ Y(), J(), pe(B.value);
1765
1765
  };
1766
1766
  return x(() => {
1767
- ie(I.value, L.value), g(() => {
1768
- q(), B.value && pe(B.value);
1767
+ ae(I.value, L.value), g(() => {
1768
+ J(), B.value && pe(B.value);
1769
1769
  }), typeof ResizeObserver < "u" && I.value && (Ee = new ResizeObserver(() => {
1770
1770
  De();
1771
1771
  }), Ee.observe(I.value));
@@ -1792,7 +1792,7 @@ var At = {
1792
1792
  class: _(["me-nav__arrow me-nav__arrow--left", { "is-hidden": !P(ee) }]),
1793
1793
  role: "button",
1794
1794
  "aria-label": "向左滚动",
1795
- onClick: r[0] ||= (...e) => P(Y) && P(Y)(...e)
1795
+ onClick: r[0] ||= (...e) => P(te) && P(te)(...e)
1796
1796
  }, [u(Me, {
1797
1797
  name: "ChevronLeft",
1798
1798
  size: 14
@@ -1800,18 +1800,18 @@ var At = {
1800
1800
  s("div", {
1801
1801
  class: _(["me-nav__scroll", {
1802
1802
  "is-dragging": P(Z),
1803
- "is-scrollable": P(G)
1803
+ "is-scrollable": P(K)
1804
1804
  }]),
1805
1805
  ref_key: "scrollRef",
1806
1806
  ref: I,
1807
1807
  onWheel: le,
1808
1808
  onMousedown: r[1] ||= (...e) => P(Q) && P(Q)(...e),
1809
- onTouchstartPassive: r[2] ||= (...e) => P($) && P($)(...e),
1809
+ onTouchstartPassive: r[2] ||= (...e) => P(ie) && P(ie)(...e),
1810
1810
  onContextmenu: r[3] ||= V(() => {}, ["prevent"])
1811
1811
  }, [
1812
1812
  t.edgeFade && P(ee) ? (C(), o("div", jt)) : a("", !0),
1813
1813
  s("div", {
1814
- class: _(["me-nav__list", { "is-smooth": P(te) }]),
1814
+ class: _(["me-nav__list", { "is-smooth": P(G) }]),
1815
1815
  ref_key: "listRef",
1816
1816
  ref: L,
1817
1817
  style: y({ transform: `translateX(${P(H)}px)` })
@@ -2165,7 +2165,7 @@ var Bt = zt, Vt = { class: "me-skeleton__card-body" }, Ht = { class: "me-skeleto
2165
2165
  type: "button",
2166
2166
  title: "关闭",
2167
2167
  onClick: V(w, ["stop"])
2168
- }, [u(P($), { size: 16 })])) : a("", !0)])]),
2168
+ }, [u(P(ie), { size: 16 })])) : a("", !0)])]),
2169
2169
  s("div", {
2170
2170
  class: "me-modal__body",
2171
2171
  style: y(e.bodyStyle)
@@ -3045,7 +3045,7 @@ var Cn = Sn, wn = { class: "me-tree-menu-edit__scroll" }, Tn = { class: "me-tree
3045
3045
  };
3046
3046
  return r(c.list);
3047
3047
  }), L = E(""), B = () => {
3048
- L.value = "create", J(), d("create");
3048
+ L.value = "create", Y(), d("create");
3049
3049
  }, H = async () => {
3050
3050
  await m.value?.validate() && d("update", c.form);
3051
3051
  }, ee = (e) => [
@@ -3053,21 +3053,21 @@ var Cn = Sn, wn = { class: "me-tree-menu-edit__scroll" }, Tn = { class: "me-tree
3053
3053
  label: `添加子${c.label}`,
3054
3054
  icon: "PlusCircle",
3055
3055
  onClick: () => {
3056
- L.value = "create-child", J(), d("context-menu-add", e);
3056
+ L.value = "create-child", Y(), d("context-menu-add", e);
3057
3057
  }
3058
3058
  },
3059
3059
  {
3060
3060
  label: `编辑${c.label}`,
3061
3061
  icon: "Pencil",
3062
3062
  onClick: () => {
3063
- L.value = "edit", J(), d("context-menu-edit", e);
3063
+ L.value = "edit", Y(), d("context-menu-edit", e);
3064
3064
  }
3065
3065
  },
3066
3066
  {
3067
3067
  label: `复制${c.label}`,
3068
3068
  icon: "Copy",
3069
3069
  onClick: () => {
3070
- L.value = "copy", J(), d("context-menu-copy", e);
3070
+ L.value = "copy", Y(), d("context-menu-copy", e);
3071
3071
  }
3072
3072
  },
3073
3073
  {
@@ -3091,18 +3091,18 @@ var Cn = Sn, wn = { class: "me-tree-menu-edit__scroll" }, Tn = { class: "me-tree
3091
3091
  }
3092
3092
  })),
3093
3093
  onClick: () => {}
3094
- }), te = (e) => {
3094
+ }), G = (e) => {
3095
3095
  e.event.preventDefault();
3096
3096
  let t = e.node?.dataRef || e.node || {}, n = D.value.key || "id";
3097
3097
  v.value = [t[n]];
3098
- }, G = (e, t) => {
3098
+ }, K = (e, t) => {
3099
3099
  if (v.value = e, e.length > 0 && t?.node) {
3100
3100
  let e = t.node.dataRef || t.node || {};
3101
- L.value = "edit", J(), d("node-click", e);
3101
+ L.value = "edit", Y(), d("node-click", e);
3102
3102
  }
3103
- }, K = (e) => {
3103
+ }, q = (e) => {
3104
3104
  if (!c.fetchDataHandle) return;
3105
- let t = e.dragNode, n = e.node, r = e.dropPosition, i = D.value.key || "id", a = D.value.children || "children", o = String(t[i]), s = r === 0 ? String(n[i]) : n.parentId || n.parentNode?.[i] || "0", l = q(n, r, o, i, a), u = c.moveConfirm.title || "提示", d = c.moveConfirm.message || "确定保存移动吗?", f = c.moveConfirm.type || "danger";
3105
+ let t = e.dragNode, n = e.node, r = e.dropPosition, i = D.value.key || "id", a = D.value.children || "children", o = String(t[i]), s = r === 0 ? String(n[i]) : n.parentId || n.parentNode?.[i] || "0", l = J(n, r, o, i, a), u = c.moveConfirm.title || "提示", d = c.moveConfirm.message || "确定保存移动吗?", f = c.moveConfirm.type || "danger";
3106
3106
  if (!c.showMoveConfirm) {
3107
3107
  c.apiMoveHandle?.({
3108
3108
  id: o,
@@ -3138,18 +3138,18 @@ var Cn = Sn, wn = { class: "me-tree-menu-edit__scroll" }, Tn = { class: "me-tree
3138
3138
  cancel: () => (c.fetchDataHandle?.({ expandKeys: [s] }), !0)
3139
3139
  }
3140
3140
  });
3141
- }, q = (e, t, n, r, i) => {
3141
+ }, J = (e, t, n, r, i) => {
3142
3142
  let a = e.parentNode?.[i] || e.parent?.children || c.list, o = [];
3143
3143
  for (let i of a) {
3144
3144
  let a = String(i[r]);
3145
3145
  a !== n && t !== 0 && (t === -1 && a === String(e[r]) ? (o.push(n), o.push(a)) : t === 1 && a === String(e[r]) ? (o.push(a), o.push(n)) : o.push(a));
3146
3146
  }
3147
3147
  return t === 0 ? [...e[i]?.map((e) => String(e[r])) || [], n] : o;
3148
- }, J = () => {
3148
+ }, Y = () => {
3149
3149
  c.openHandle ? c.openHandle() : m.value?.open();
3150
3150
  };
3151
3151
  return t({
3152
- open: J,
3152
+ open: Y,
3153
3153
  close: () => {
3154
3154
  m.value?.close();
3155
3155
  },
@@ -3210,9 +3210,9 @@ var Cn = Sn, wn = { class: "me-tree-menu-edit__scroll" }, Tn = { class: "me-tree
3210
3210
  "expanded-keys": _.value,
3211
3211
  "selected-keys": v.value,
3212
3212
  "onUpdate:expandedKeys": S,
3213
- onSelect: G,
3214
- onRightClick: te,
3215
- onDrop: K
3213
+ onSelect: K,
3214
+ onRightClick: G,
3215
+ onDrop: q
3216
3216
  }, {
3217
3217
  titleRender: z((e) => [s("div", Nn, [s("div", Pn, [k(t.$slots, "label", { data: e }, () => [u(rn, {
3218
3218
  actions: h.value,
@@ -3751,10 +3751,25 @@ var Ln = In, Rn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
3751
3751
  Un.install = (e) => {
3752
3752
  e.component("MeInputGps", Un);
3753
3753
  };
3754
- var Wn = Un, Gn = { class: "me-input-radio__content" }, Kn = /* @__PURE__ */ d({
3754
+ var Wn = Un, Gn = { class: "me-input-radio__content" }, Kn = { class: "me-input-radio__title" }, qn = {
3755
+ key: 0,
3756
+ class: "me-input-radio__desc"
3757
+ }, Jn = { class: "me-input-radio__content" }, Yn = { class: "me-input-radio__title" }, Xn = { class: "me-input-radio__desc" }, Zn = /* @__PURE__ */ d({
3755
3758
  name: "MeInputRadio",
3756
3759
  __name: "index",
3757
3760
  props: {
3761
+ modelValue: {
3762
+ type: [
3763
+ String,
3764
+ Number,
3765
+ Boolean
3766
+ ],
3767
+ default: ""
3768
+ },
3769
+ options: {
3770
+ type: Array,
3771
+ default: () => []
3772
+ },
3758
3773
  title: {
3759
3774
  type: String,
3760
3775
  default: ""
@@ -3796,56 +3811,78 @@ var Wn = Un, Gn = { class: "me-input-radio__content" }, Kn = /* @__PURE__ */ d({
3796
3811
  default: ""
3797
3812
  }
3798
3813
  },
3799
- setup(e) {
3800
- let t = e, n = r(() => t.disabled ? {
3801
- backgroundColor: "var(--ant-color-bg-container-disabled)",
3802
- color: "var(--ant-color-text-disabled)",
3803
- borderColor: "var(--ant-color-border)",
3804
- boxShadow: "none",
3805
- cursor: "not-allowed"
3806
- } : {}), a = r(() => ({ ...n.value })), o = r(() => ({ ...n.value }));
3807
- return (t, n) => {
3808
- let r = A("a-radio");
3809
- return C(), i(r, h({
3810
- value: e.label,
3811
- disabled: e.disabled
3812
- }, t.$attrs, {
3814
+ emits: ["update:modelValue", "change"],
3815
+ setup(t, { emit: n }) {
3816
+ let c = t, l = n, u = r(() => c.options && c.options.length > 0), d = r(() => c.options.some((e) => e.desc && e.desc.trim())), f = (e) => {
3817
+ let t = e.target.value;
3818
+ l("update:modelValue", t), l("change", t);
3819
+ };
3820
+ return (n, r) => {
3821
+ let c = A("a-radio"), l = A("a-radio-group");
3822
+ return u.value ? (C(), i(l, h({
3823
+ key: 0,
3824
+ value: t.modelValue,
3825
+ onChange: f
3826
+ }, n.$attrs, { class: "me-input-radio-group" }), {
3827
+ default: z(() => [(C(!0), o(e, null, O(t.options, (e) => (C(), i(c, {
3828
+ key: e.value,
3829
+ value: e.value,
3830
+ disabled: e.disabled,
3831
+ class: _(["me-input-radio", {
3832
+ "me-input-radio--uniform": d.value,
3833
+ "me-input-radio--top": t.top,
3834
+ "me-input-radio--small": t.size === "small",
3835
+ "me-input-radio--radio": t.radio
3836
+ }]),
3837
+ style: y({
3838
+ width: t.width,
3839
+ marginRight: t.gap
3840
+ })
3841
+ }, {
3842
+ default: z(() => [s("div", Gn, [s("div", Kn, N(e.label), 1), d.value ? (C(), o("div", qn, N(e.desc), 1)) : a("", !0)])]),
3843
+ _: 2
3844
+ }, 1032, [
3845
+ "value",
3846
+ "disabled",
3847
+ "class",
3848
+ "style"
3849
+ ]))), 128))]),
3850
+ _: 1
3851
+ }, 16, ["value"])) : (C(), i(c, h({
3852
+ key: 1,
3853
+ value: t.label,
3854
+ disabled: t.disabled
3855
+ }, n.$attrs, {
3813
3856
  class: ["me-input-radio", {
3814
- "me-input-radio--top": e.top,
3815
- "me-input-radio--small": e.size === "small",
3816
- "me-input-radio--radio": e.radio
3857
+ "me-input-radio--top": t.top,
3858
+ "me-input-radio--small": t.size === "small",
3859
+ "me-input-radio--radio": t.radio
3817
3860
  }],
3818
3861
  style: {
3819
- width: e.width,
3820
- marginRight: e.gap
3862
+ width: t.width,
3863
+ marginRight: t.gap
3821
3864
  }
3822
3865
  }), {
3823
- default: z(() => [s("div", Gn, [s("div", {
3824
- class: "me-input-radio__title",
3825
- style: y(a.value)
3826
- }, N(e.title), 5), s("div", {
3827
- class: "me-input-radio__desc",
3828
- style: y(o.value)
3829
- }, N(e.desc), 5)])]),
3866
+ default: z(() => [s("div", Jn, [s("div", Yn, N(t.title), 1), s("div", Xn, N(t.desc), 1)])]),
3830
3867
  _: 1
3831
3868
  }, 16, [
3832
3869
  "value",
3833
3870
  "disabled",
3834
3871
  "class",
3835
3872
  "style"
3836
- ]);
3873
+ ]));
3837
3874
  };
3838
3875
  }
3839
3876
  });
3840
3877
  //#endregion
3841
3878
  //#region src/components/input-radio/index.ts
3842
- Kn.install = (e) => {
3843
- e.component("MeInputRadio", Kn);
3879
+ Zn.install = (e) => {
3880
+ e.component("MeInputRadio", Zn);
3844
3881
  };
3845
- var qn = Kn;
3882
+ var Qn = Zn;
3846
3883
  //#endregion
3847
3884
  //#region src/utils/index.ts
3848
- function Jn(e = {}) {
3885
+ function $n(e = {}) {
3849
3886
  let { accept: t = "*", multiple: n = !1 } = e;
3850
3887
  return new Promise((e) => {
3851
3888
  let r = document.createElement("input");
@@ -3873,7 +3910,7 @@ function Jn(e = {}) {
3873
3910
  }
3874
3911
  //#endregion
3875
3912
  //#region node_modules/jsoneditor/dist/jsoneditor.min.css
3876
- var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
3913
+ var er = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
3877
3914
  ((n, r) => {
3878
3915
  typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.JSONEditor = r() : n.JSONEditor = r();
3879
3916
  })(self, function() {
@@ -9550,7 +9587,7 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
9550
9587
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
9551
9588
  })(e);
9552
9589
  }
9553
- function te(e, t) {
9590
+ function G(e, t) {
9554
9591
  for (var n = 0; n < t.length; n++) {
9555
9592
  var r = t[n];
9556
9593
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ((e) => (e = ((e, t) => {
@@ -9562,7 +9599,7 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
9562
9599
  })(e, "string"), W(e) == "symbol" ? e : e + ""))(r.key), r);
9563
9600
  }
9564
9601
  }
9565
- var G = (() => {
9602
+ var K = (() => {
9566
9603
  function e(t, n) {
9567
9604
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function");
9568
9605
  var r = this, t = (this.editor = t, this.timeout = void 0, this.delay = 200, this.lastText = void 0, this.results = null, this.dom = {}, this.dom.container = n, document.createElement("div")), n = ((this.dom.wrapper = t).className = "jsoneditor-search", n.appendChild(t), document.createElement("div")), n = ((this.dom.results = n).className = "jsoneditor-results", t.appendChild(n), document.createElement("div")), t = ((this.dom.input = n).className = "jsoneditor-frame", n.title = (0, _.Tl)("searchTitle"), t.appendChild(n), document.createElement("button")), i = (t.type = "button", t.className = "jsoneditor-refresh", n.appendChild(t), document.createElement("input")), t = (i.type = "text", (this.dom.search = i).oninput = function(e) {
@@ -9678,29 +9715,29 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
9678
9715
  this.editor = null, this.dom.container.removeChild(this.dom.wrapper), this.dom = null, this.results = null, this.activeResult = null, this._clearDelay();
9679
9716
  }
9680
9717
  }
9681
- ]) && te(t.prototype, n), r && te(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
9718
+ ]) && G(t.prototype, n), r && G(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
9682
9719
  var t, n, r;
9683
9720
  })();
9684
- function K(e) {
9685
- return (K = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
9721
+ function q(e) {
9722
+ return (q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
9686
9723
  return typeof e;
9687
9724
  } : function(e) {
9688
9725
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
9689
9726
  })(e);
9690
9727
  }
9691
- function q(e, t) {
9728
+ function J(e, t) {
9692
9729
  for (var n = 0; n < t.length; n++) {
9693
9730
  var r = t[n];
9694
9731
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ((e) => (e = ((e, t) => {
9695
- if (K(e) != "object" || !e) return e;
9732
+ if (q(e) != "object" || !e) return e;
9696
9733
  var n = e[Symbol.toPrimitive];
9697
9734
  if (n === void 0) return (t === "string" ? String : Number)(e);
9698
- if (K(n = n.call(e, t || "default")) != "object") return n;
9735
+ if (q(n = n.call(e, t || "default")) != "object") return n;
9699
9736
  throw TypeError("@@toPrimitive must return a primitive value.");
9700
- })(e, "string"), K(e) == "symbol" ? e : e + ""))(r.key), r);
9737
+ })(e, "string"), q(e) == "symbol" ? e : e + ""))(r.key), r);
9701
9738
  }
9702
9739
  }
9703
- var J = (() => {
9740
+ var Y = (() => {
9704
9741
  function e(t, n) {
9705
9742
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function");
9706
9743
  t && (this.root = n, this.path = document.createElement("div"), this.path.className = "jsoneditor-treepath", this.path.setAttribute("tabindex", 0), this.contentMenuClicked = !1, t.appendChild(this.path), this.reset());
@@ -9752,9 +9789,9 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
9752
9789
  typeof e == "function" && (this.contextMenuCallback = e);
9753
9790
  }
9754
9791
  }
9755
- ]) && q(t.prototype, n), r && q(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
9792
+ ]) && J(t.prototype, n), r && J(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
9756
9793
  var t, n, r;
9757
- })(), t = n(1746), Y = n.n(t), n = {
9794
+ })(), t = n(1746), te = n.n(t), n = {
9758
9795
  create: function(e, t) {
9759
9796
  if (!e) throw Error("No container element provided.");
9760
9797
  this.container = e, this.dom = {}, this.highlighter = new g(), this.selection = void 0, this.multiselection = { nodes: [] }, this.validateSchema = null, this.validationSequence = 0, this.errorNodes = [], this.lastSchemaErrors = void 0, this.node = null, this.focusTarget = null, this._setOptions(t), t.autocomplete && (this.autocomplete = d(t.autocomplete)), this.options.history && this.options.mode !== "view" && (this.history = new U(this)), this._createFrame(), this._createTable();
@@ -9779,7 +9816,7 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
9779
9816
  colorPicker: !0,
9780
9817
  onColorPicker: function(e, t, n) {
9781
9818
  var r;
9782
- Y() ? (r = e.getBoundingClientRect().top, r = (0, S.getWindow)(e).innerHeight - r < 300 && 300 < r, new (Y())({
9819
+ te() ? (r = e.getBoundingClientRect().top, r = (0, S.getWindow)(e).innerHeight - r < 300 && 300 < r, new (te())({
9783
9820
  parent: e,
9784
9821
  color: t,
9785
9822
  popup: r ? "top" : "bottom",
@@ -10054,7 +10091,7 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
10054
10091
  } catch (e) {
10055
10092
  a._onError(e);
10056
10093
  }
10057
- })), this.options.search) && (this.searchBox = new G(this, this.menu)), this.options.navigationBar && (this.navBar = document.createElement("div"), this.navBar.className = "jsoneditor-navigation-bar nav-bar-empty", this.frame.appendChild(this.navBar), this.treePath = new J(this.navBar, this.getPopupAnchor()), this.treePath.onSectionSelected(this._onTreePathSectionSelected.bind(this)), this.treePath.onContextMenuItemSelected(this._onTreePathMenuItemSelected.bind(this)));
10094
+ })), this.options.search) && (this.searchBox = new K(this, this.menu)), this.options.navigationBar && (this.navBar = document.createElement("div"), this.navBar.className = "jsoneditor-navigation-bar nav-bar-empty", this.frame.appendChild(this.navBar), this.treePath = new Y(this.navBar, this.getPopupAnchor()), this.treePath.onSectionSelected(this._onTreePathSectionSelected.bind(this)), this.treePath.onContextMenuItemSelected(this._onTreePathMenuItemSelected.bind(this)));
10058
10095
  },
10059
10096
  _onUndo: function() {
10060
10097
  this.history && (this.history.undo(), this._onChange());
@@ -10294,7 +10331,7 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
10294
10331
  return ge;
10295
10332
  },
10296
10333
  debounce: function() {
10297
- return Y;
10334
+ return te;
10298
10335
  },
10299
10336
  escapeUnicodeChars: function() {
10300
10337
  return h;
@@ -10321,7 +10358,7 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
10321
10358
  return ce;
10322
10359
  },
10323
10360
  getColorCSS: function() {
10324
- return $;
10361
+ return ie;
10325
10362
  },
10326
10363
  getIndexForPosition: function() {
10327
10364
  return X;
@@ -10354,10 +10391,10 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
10354
10391
  return R;
10355
10392
  },
10356
10393
  improveSchemaError: function() {
10357
- return G;
10394
+ return K;
10358
10395
  },
10359
10396
  insideRect: function() {
10360
- return J;
10397
+ return Y;
10361
10398
  },
10362
10399
  isArray: function() {
10363
10400
  return S;
@@ -10372,7 +10409,7 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
10372
10409
  return he;
10373
10410
  },
10374
10411
  isPromise: function() {
10375
- return K;
10412
+ return q;
10376
10413
  },
10377
10414
  isTimestamp: function() {
10378
10415
  return fe;
@@ -10381,10 +10418,10 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
10381
10418
  return x;
10382
10419
  },
10383
10420
  isValidColor: function() {
10384
- return ie;
10421
+ return ae;
10385
10422
  },
10386
10423
  isValidValidationError: function() {
10387
- return q;
10424
+ return J;
10388
10425
  },
10389
10426
  isValidationErrorChanged: function() {
10390
10427
  return _e;
@@ -10393,7 +10430,7 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
10393
10430
  return me;
10394
10431
  },
10395
10432
  makeFieldTooltip: function() {
10396
- return ae;
10433
+ return $;
10397
10434
  },
10398
10435
  parse: function() {
10399
10436
  return p;
@@ -10435,7 +10472,7 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
10435
10472
  return ue;
10436
10473
  },
10437
10474
  stringifyPath: function() {
10438
- return te;
10475
+ return G;
10439
10476
  },
10440
10477
  stripFormatting: function() {
10441
10478
  return k;
@@ -10663,27 +10700,27 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
10663
10700
  }
10664
10701
  return t;
10665
10702
  }
10666
- function te(e) {
10703
+ function G(e) {
10667
10704
  return e.map(function(e) {
10668
10705
  return typeof e == "number" ? "[" + e + "]" : typeof e == "string" && e.match(/^[A-Za-z0-9_$]+$/) ? "." + e : "[\"" + e + "\"]";
10669
10706
  }).join("");
10670
10707
  }
10671
- function G(e) {
10708
+ function K(e) {
10672
10709
  var t, n;
10673
10710
  return e.keyword === "enum" && Array.isArray(e.schema) && (n = e.schema) && (5 < (n = n.map(function(e) {
10674
10711
  return JSON.stringify(e);
10675
10712
  })).length && (t = ["(" + (n.length - 5) + " more...)"], (n = n.slice(0, 5)).push(t)), e.message = "should be equal to one of: " + n.join(", ")), e.keyword === "additionalProperties" && (e.message = "should NOT have additional property: " + e.params.additionalProperty), e;
10676
10713
  }
10677
- function K(e) {
10714
+ function q(e) {
10678
10715
  return e && typeof e.then == "function" && typeof e.catch == "function";
10679
10716
  }
10680
- function q(e) {
10717
+ function J(e) {
10681
10718
  return u(e) === "object" && Array.isArray(e.path) && typeof e.message == "string";
10682
10719
  }
10683
- function J(e, t, n) {
10720
+ function Y(e, t, n) {
10684
10721
  return n = n === void 0 ? 0 : n, t.left - n >= e.left && t.right + n <= e.right && t.top - n >= e.top && t.bottom + n <= e.bottom;
10685
10722
  }
10686
- function Y(e, t, n) {
10723
+ function te(e, t, n) {
10687
10724
  var r;
10688
10725
  return function() {
10689
10726
  var i = this, a = arguments, o = n && !r;
@@ -10743,14 +10780,14 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
10743
10780
  return "/" + String(e).replace(/~/g, "~0").replace(/\//g, "~1");
10744
10781
  }).join("");
10745
10782
  }
10746
- function $(e) {
10783
+ function ie(e) {
10747
10784
  var t = document.createElement("div");
10748
10785
  return t.style.color = e, t.style.color.split(/\s+/).join("").toLowerCase() || null;
10749
10786
  }
10750
- function ie(e) {
10751
- return !!$(e);
10787
+ function ae(e) {
10788
+ return !!ie(e);
10752
10789
  }
10753
- function ae(e, t) {
10790
+ function $(e, t) {
10754
10791
  var n;
10755
10792
  return e ? (n = "", e.title && (n += e.title), e.description && (0 < n.length && (n += "\n"), n += e.description), e.default && (0 < n.length && (n += "\n\n"), n = (n += (0, s.Tl)("default", void 0, t) + "\n") + JSON.stringify(e.default, null, 2)), Array.isArray(e.examples) && 0 < e.examples.length && (0 < n.length && (n += "\n\n"), n += (0, s.Tl)("examples", void 0, t) + "\n", e.examples.forEach(function(t, r) {
10756
10793
  n += JSON.stringify(t, null, 2), r !== e.examples.length - 1 && (n += "\n");
@@ -24877,21 +24914,21 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
24877
24914
  }
24878
24915
  i += " ); if (isAdditional" + a + ") { ";
24879
24916
  }
24880
- E == "all" ? i += " delete " + d + "[" + h + "]; " : (W = e.errorPath, A = "' + " + h + " + '", e.opts._errorDataPathProperty && (e.errorPath = e.util.getPathExpr(e.errorPath, h, e.opts.jsonPointers)), w ? E ? i += " delete " + d + "[" + h + "]; " : (te = l, l = e.errSchemaPath + "/additionalProperties", (K ||= []).push(i += " " + m + " = false; "), i = "", !1 === e.createErrors ? i += " {} " : (i += " { keyword: 'additionalProperties' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(l) + " , params: { additionalProperty: '" + A + "' } ", !1 !== e.opts.messages && (i += " , message: '", e.opts._errorDataPathProperty ? i += "is an invalid additional property" : i += "should NOT have additional properties", i += "' "), e.opts.verbose && (i += " , schema: false , parentSchema: validate.schema" + e.schemaPath + " , data: " + d + " "), i += " } "), q = i, i = K.pop(), !e.compositeRule && u ? e.async ? i += " throw new ValidationError([" + q + "]); " : i += " validate.errors = [" + q + "]; return false; " : i += " var err = " + q + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", l = te, u && (i += " break; ")) : T && (E == "failing" ? (i += " var " + t + " = errors; ", D = e.compositeRule, e.compositeRule = f.compositeRule = !0, f.schema = S, f.schemaPath = e.schemaPath + ".additionalProperties", f.errSchemaPath = e.errSchemaPath + "/additionalProperties", f.errorPath = e.opts._errorDataPathProperty ? e.errorPath : e.util.getPathExpr(e.errorPath, h, e.opts.jsonPointers), Z = d + "[" + h + "]", f.dataPathArr[_] = h, Q = e.validate(f), f.baseId = k, e.util.varOccurences(Q, v) < 2 ? i += " " + e.util.varReplace(Q, v, Z) + " " : i += " var " + v + " = " + Z + "; " + Q + " ", i += " if (!" + m + ") { errors = " + t + "; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete " + d + "[" + h + "]; } ", e.compositeRule = f.compositeRule = D) : (f.schema = S, f.schemaPath = e.schemaPath + ".additionalProperties", f.errSchemaPath = e.errSchemaPath + "/additionalProperties", f.errorPath = e.opts._errorDataPathProperty ? e.errorPath : e.util.getPathExpr(e.errorPath, h, e.opts.jsonPointers), Z = d + "[" + h + "]", f.dataPathArr[_] = h, Q = e.validate(f), f.baseId = k, e.util.varOccurences(Q, v) < 2 ? i += " " + e.util.varReplace(Q, v, Z) + " " : i += " var " + v + " = " + Z + "; " + Q + " ", u && (i += " if (!" + m + ") break; "))), e.errorPath = W), C && (i += " } "), i += " } ", u && (i += " if (" + m + ") { ", p += "}");
24917
+ E == "all" ? i += " delete " + d + "[" + h + "]; " : (W = e.errorPath, A = "' + " + h + " + '", e.opts._errorDataPathProperty && (e.errorPath = e.util.getPathExpr(e.errorPath, h, e.opts.jsonPointers)), w ? E ? i += " delete " + d + "[" + h + "]; " : (G = l, l = e.errSchemaPath + "/additionalProperties", (q ||= []).push(i += " " + m + " = false; "), i = "", !1 === e.createErrors ? i += " {} " : (i += " { keyword: 'additionalProperties' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(l) + " , params: { additionalProperty: '" + A + "' } ", !1 !== e.opts.messages && (i += " , message: '", e.opts._errorDataPathProperty ? i += "is an invalid additional property" : i += "should NOT have additional properties", i += "' "), e.opts.verbose && (i += " , schema: false , parentSchema: validate.schema" + e.schemaPath + " , data: " + d + " "), i += " } "), J = i, i = q.pop(), !e.compositeRule && u ? e.async ? i += " throw new ValidationError([" + J + "]); " : i += " validate.errors = [" + J + "]; return false; " : i += " var err = " + J + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", l = G, u && (i += " break; ")) : T && (E == "failing" ? (i += " var " + t + " = errors; ", D = e.compositeRule, e.compositeRule = f.compositeRule = !0, f.schema = S, f.schemaPath = e.schemaPath + ".additionalProperties", f.errSchemaPath = e.errSchemaPath + "/additionalProperties", f.errorPath = e.opts._errorDataPathProperty ? e.errorPath : e.util.getPathExpr(e.errorPath, h, e.opts.jsonPointers), Z = d + "[" + h + "]", f.dataPathArr[_] = h, Q = e.validate(f), f.baseId = k, e.util.varOccurences(Q, v) < 2 ? i += " " + e.util.varReplace(Q, v, Z) + " " : i += " var " + v + " = " + Z + "; " + Q + " ", i += " if (!" + m + ") { errors = " + t + "; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete " + d + "[" + h + "]; } ", e.compositeRule = f.compositeRule = D) : (f.schema = S, f.schemaPath = e.schemaPath + ".additionalProperties", f.errSchemaPath = e.errSchemaPath + "/additionalProperties", f.errorPath = e.opts._errorDataPathProperty ? e.errorPath : e.util.getPathExpr(e.errorPath, h, e.opts.jsonPointers), Z = d + "[" + h + "]", f.dataPathArr[_] = h, Q = e.validate(f), f.baseId = k, e.util.varOccurences(Q, v) < 2 ? i += " " + e.util.varReplace(Q, v, Z) + " " : i += " var " + v + " = " + Z + "; " + Q + " ", u && (i += " if (!" + m + ") break; "))), e.errorPath = W), C && (i += " } "), i += " } ", u && (i += " if (" + m + ") { ", p += "}");
24881
24918
  }
24882
24919
  var R = e.opts.useDefaults && !e.compositeRule;
24883
24920
  if (o.length) {
24884
24921
  var z = o;
24885
24922
  if (z) for (var B, V = -1, H = z.length - 1; V < H;) {
24886
- var ee, U, W, te, G, K, q, J = s[B = z[V += 1]];
24887
- (e.opts.strictKeywords ? typeof J == "object" && 0 < Object.keys(J).length || !1 === J : e.util.schemaHasRules(J, e.RULES.all)) && (Z = d + (G = e.util.getProperty(B)), ee = R && J.default !== void 0, f.schema = J, f.schemaPath = c + G, f.errSchemaPath = l + "/" + e.util.escapeFragment(B), f.errorPath = e.util.getPath(e.errorPath, B, e.opts.jsonPointers), f.dataPathArr[_] = e.util.toQuotedString(B), Q = e.validate(f), f.baseId = k, e.util.varOccurences(Q, v) < 2 ? (Q = e.util.varReplace(Q, v, Z), U = Z) : i += " var " + (U = v) + " = " + Z + "; ", ee ? i += " " + Q + " " : (r && r[B] ? (i += " if ( " + U + " === undefined ", O && (i += " || ! Object.prototype.hasOwnProperty.call(" + d + ", '" + e.util.escapeQuotes(B) + "') "), i += ") { " + m + " = false; ", W = e.errorPath, te = l, G = e.util.escapeQuotes(B), e.opts._errorDataPathProperty && (e.errorPath = e.util.getPath(W, B, e.opts.jsonPointers)), l = e.errSchemaPath + "/required", (K ||= []).push(i), i = "", !1 === e.createErrors ? i += " {} " : (i += " { keyword: 'required' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(l) + " , params: { missingProperty: '" + G + "' } ", !1 !== e.opts.messages && (i += " , message: '", e.opts._errorDataPathProperty ? i += "is a required property" : i += "should have required property \\'" + G + "\\'", i += "' "), e.opts.verbose && (i += " , schema: validate.schema" + c + " , parentSchema: validate.schema" + e.schemaPath + " , data: " + d + " "), i += " } "), q = i, i = K.pop(), !e.compositeRule && u ? e.async ? i += " throw new ValidationError([" + q + "]); " : i += " validate.errors = [" + q + "]; return false; " : i += " var err = " + q + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", l = te, e.errorPath = W, i += " } else { ") : u ? (i += " if ( " + U + " === undefined ", O && (i += " || ! Object.prototype.hasOwnProperty.call(" + d + ", '" + e.util.escapeQuotes(B) + "') "), i += ") { " + m + " = true; } else { ") : (i += " if (" + U + " !== undefined ", O && (i += " && Object.prototype.hasOwnProperty.call(" + d + ", '" + e.util.escapeQuotes(B) + "') "), i += " ) { "), i += " " + Q + " } ")), u && (i += " if (" + m + ") { ", p += "}");
24923
+ var ee, U, W, G, K, q, J, Y = s[B = z[V += 1]];
24924
+ (e.opts.strictKeywords ? typeof Y == "object" && 0 < Object.keys(Y).length || !1 === Y : e.util.schemaHasRules(Y, e.RULES.all)) && (Z = d + (K = e.util.getProperty(B)), ee = R && Y.default !== void 0, f.schema = Y, f.schemaPath = c + K, f.errSchemaPath = l + "/" + e.util.escapeFragment(B), f.errorPath = e.util.getPath(e.errorPath, B, e.opts.jsonPointers), f.dataPathArr[_] = e.util.toQuotedString(B), Q = e.validate(f), f.baseId = k, e.util.varOccurences(Q, v) < 2 ? (Q = e.util.varReplace(Q, v, Z), U = Z) : i += " var " + (U = v) + " = " + Z + "; ", ee ? i += " " + Q + " " : (r && r[B] ? (i += " if ( " + U + " === undefined ", O && (i += " || ! Object.prototype.hasOwnProperty.call(" + d + ", '" + e.util.escapeQuotes(B) + "') "), i += ") { " + m + " = false; ", W = e.errorPath, G = l, K = e.util.escapeQuotes(B), e.opts._errorDataPathProperty && (e.errorPath = e.util.getPath(W, B, e.opts.jsonPointers)), l = e.errSchemaPath + "/required", (q ||= []).push(i), i = "", !1 === e.createErrors ? i += " {} " : (i += " { keyword: 'required' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(l) + " , params: { missingProperty: '" + K + "' } ", !1 !== e.opts.messages && (i += " , message: '", e.opts._errorDataPathProperty ? i += "is a required property" : i += "should have required property \\'" + K + "\\'", i += "' "), e.opts.verbose && (i += " , schema: validate.schema" + c + " , parentSchema: validate.schema" + e.schemaPath + " , data: " + d + " "), i += " } "), J = i, i = q.pop(), !e.compositeRule && u ? e.async ? i += " throw new ValidationError([" + J + "]); " : i += " validate.errors = [" + J + "]; return false; " : i += " var err = " + J + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", l = G, e.errorPath = W, i += " } else { ") : u ? (i += " if ( " + U + " === undefined ", O && (i += " || ! Object.prototype.hasOwnProperty.call(" + d + ", '" + e.util.escapeQuotes(B) + "') "), i += ") { " + m + " = true; } else { ") : (i += " if (" + U + " !== undefined ", O && (i += " && Object.prototype.hasOwnProperty.call(" + d + ", '" + e.util.escapeQuotes(B) + "') "), i += " ) { "), i += " " + Q + " } ")), u && (i += " if (" + m + ") { ", p += "}");
24888
24925
  }
24889
24926
  }
24890
24927
  if (x.length) {
24891
- var Y = x;
24892
- if (Y) for (var ne, re = -1, X = Y.length - 1; re < X;) {
24893
- var Z, Q, J = b[ne = Y[re += 1]];
24894
- (e.opts.strictKeywords ? typeof J == "object" && 0 < Object.keys(J).length || !1 === J : e.util.schemaHasRules(J, e.RULES.all)) && (f.schema = J, f.schemaPath = e.schemaPath + ".patternProperties" + e.util.getProperty(ne), f.errSchemaPath = e.errSchemaPath + "/patternProperties/" + e.util.escapeFragment(ne), i = (i += O ? " " + y + " = " + y + " || Object.keys(" + d + "); for (var " + g + "=0; " + g + "<" + y + ".length; " + g + "++) { var " + h + " = " + y + "[" + g + "]; " : " for (var " + h + " in " + d + ") { ") + " if (" + e.usePattern(ne) + ".test(" + h + ")) { ", f.errorPath = e.util.getPathExpr(e.errorPath, h, e.opts.jsonPointers), Z = d + "[" + h + "]", f.dataPathArr[_] = h, Q = e.validate(f), f.baseId = k, e.util.varOccurences(Q, v) < 2 ? i += " " + e.util.varReplace(Q, v, Z) + " " : i += " var " + v + " = " + Z + "; " + Q + " ", u && (i += " if (!" + m + ") break; "), i += " } ", u && (i += " else " + m + " = true; "), i += " } ", u) && (i += " if (" + m + ") { ", p += "}");
24928
+ var te = x;
24929
+ if (te) for (var ne, re = -1, X = te.length - 1; re < X;) {
24930
+ var Z, Q, Y = b[ne = te[re += 1]];
24931
+ (e.opts.strictKeywords ? typeof Y == "object" && 0 < Object.keys(Y).length || !1 === Y : e.util.schemaHasRules(Y, e.RULES.all)) && (f.schema = Y, f.schemaPath = e.schemaPath + ".patternProperties" + e.util.getProperty(ne), f.errSchemaPath = e.errSchemaPath + "/patternProperties/" + e.util.escapeFragment(ne), i = (i += O ? " " + y + " = " + y + " || Object.keys(" + d + "); for (var " + g + "=0; " + g + "<" + y + ".length; " + g + "++) { var " + h + " = " + y + "[" + g + "]; " : " for (var " + h + " in " + d + ") { ") + " if (" + e.usePattern(ne) + ".test(" + h + ")) { ", f.errorPath = e.util.getPathExpr(e.errorPath, h, e.opts.jsonPointers), Z = d + "[" + h + "]", f.dataPathArr[_] = h, Q = e.validate(f), f.baseId = k, e.util.varOccurences(Q, v) < 2 ? i += " " + e.util.varReplace(Q, v, Z) + " " : i += " var " + v + " = " + Z + "; " + Q + " ", u && (i += " if (!" + m + ") break; "), i += " } ", u && (i += " else " + m + " = true; "), i += " } ", u) && (i += " if (" + m + ") { ", p += "}");
24895
24932
  }
24896
24933
  }
24897
24934
  return u && (i += " " + p + " if (" + t + " == errors) {"), i;
@@ -25013,7 +25050,7 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
25013
25050
  if (e.schema.$comment && e.opts.$comment && (r += " " + e.RULES.all.$comment.code(e, "$comment")), _) {
25014
25051
  e.opts.coerceTypes && (y = e.util.coerceToTypes(e.opts.coerceTypes, _));
25015
25052
  var y, b = e.RULES.types[_];
25016
- if (y || v || !0 === b || b && !G(b)) {
25053
+ if (y || v || !0 === b || b && !K(b)) {
25017
25054
  var x = e.schemaPath + ".type", S = e.errSchemaPath + "/type", x = e.schemaPath + ".type", S = e.errSchemaPath + "/type";
25018
25055
  if (r += " if (" + e.util[v ? "checkDataTypes" : "checkDataType"](_, d, e.opts.strictNumbers, !0) + ") { ", y) {
25019
25056
  var C = "dataType" + l, w = "coerced" + l, T = (r += " var " + C + " = typeof " + d + "; var " + w + " = undefined; ", e.opts.coerceTypes == "array" && (r += " if (" + C + " == 'object' && Array.isArray(" + d + ") && " + d + ".length == 1) { " + d + " = " + d + "[0]; " + C + " = typeof " + d + "; if (" + e.util.checkDataType(e.schema.type, d, e.opts.strictNumbers) + ") " + w + " = " + d + "; } "), r += " if (" + w + " !== undefined) ; ", y);
@@ -25029,7 +25066,7 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
25029
25066
  else {
25030
25067
  var A = e.RULES;
25031
25068
  if (A) {
25032
- for (var j = -1, M = A.length - 1; j < M;) if (G(b = A[j += 1])) {
25069
+ for (var j = -1, M = A.length - 1; j < M;) if (K(b = A[j += 1])) {
25033
25070
  if (b.type && (r += " if (" + e.util.checkDataType(b.type, d, e.opts.strictNumbers) + ") { "), e.opts.useDefaults) {
25034
25071
  if (b.type == "object" && e.schema.properties) {
25035
25072
  var N = e.schema.properties, P = Object.keys(N);
@@ -25059,7 +25096,7 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
25059
25096
  }
25060
25097
  }
25061
25098
  var H, ee = b.rules;
25062
- if (ee) for (var U, W = -1, te = ee.length - 1; W < te;) K(U = ee[W += 1]) && (U = U.code(e, U.keyword, b.type)) && (r += " " + U + " ", m) && (h += "}");
25099
+ if (ee) for (var U, W = -1, G = ee.length - 1; W < G;) q(U = ee[W += 1]) && (U = U.code(e, U.keyword, b.type)) && (r += " " + U + " ", m) && (h += "}");
25063
25100
  m && (r += " " + h + " ", h = ""), b.type && (r += " } ", _) && _ === b.type && !y && (r += " else { ", x = e.schemaPath + ".type", S = e.errSchemaPath + "/type", (H ||= []).push(r), r = "", !1 === e.createErrors ? r += " {} " : (r = (r += " { keyword: 'type' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(S) + " , params: { type: '") + (v ? "" + _.join(",") : "" + _) + "' } ", !1 !== e.opts.messages && (r = (r += " , message: 'should be ") + (v ? "" + _.join(",") : "" + _) + "' "), e.opts.verbose && (r += " , schema: validate.schema" + x + " , parentSchema: validate.schema" + e.schemaPath + " , data: " + d + " "), r += " } "), k = r, r = H.pop(), !e.compositeRule && m ? e.async ? r += " throw new ValidationError([" + k + "]); " : r += " validate.errors = [" + k + "]; return false; " : r += " var err = " + k + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += " } "), m && (r = (r += " if (errors === ") + (c ? "0" : "errs_" + l) + ") { ", g += "}");
25064
25101
  }
25065
25102
  }
@@ -25067,10 +25104,10 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
25067
25104
  m && (r += " " + g + " "), c ? r = r + (i ? " if (errors === 0) return data; else throw new ValidationError(vErrors); " : " validate.errors = vErrors; return errors === 0; ") + " }; return validate;" : r += " var " + p + " = errors === errs_" + l + ";";
25068
25105
  }
25069
25106
  return r;
25070
- function G(e) {
25071
- for (var t = e.rules, n = 0; n < t.length; n++) if (K(t[n])) return 1;
25107
+ function K(e) {
25108
+ for (var t = e.rules, n = 0; n < t.length; n++) if (q(t[n])) return 1;
25072
25109
  }
25073
- function K(t) {
25110
+ function q(t) {
25074
25111
  return e.schema[t.keyword] !== void 0 || t.implements && ((t) => {
25075
25112
  for (var n = t.implements, r = 0; r < n.length; r++) if (e.schema[n[r]] !== void 0) return 1;
25076
25113
  })(t);
@@ -26927,14 +26964,14 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
26927
26964
  var a, c = a.length ? a.join("") : void 0;
26928
26965
  return c !== void 0 && (t.reference !== "suffix" && r.push("//"), r.push(c), e.path) && e.path.charAt(0) !== "/" && r.push("/"), e.path !== void 0 && (n = e.path, t.absolutePath || i && i.absolutePath || (n = U(n)), c === void 0 && (n = n.replace(/^\/\//, "/%2F")), r.push(n)), e.query !== void 0 && (r.push("?"), r.push(e.query)), e.fragment !== void 0 && (r.push("#"), r.push(e.fragment)), r.join("");
26929
26966
  }
26930
- function te(e, t) {
26967
+ function G(e, t) {
26931
26968
  var n = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {}, r = {};
26932
26969
  return arguments[3] || (e = z(W(e, n), n), t = z(W(t, n), n)), !(n || {}).tolerant && t.scheme ? (r.scheme = t.scheme, r.userinfo = t.userinfo, r.host = t.host, r.port = t.port, r.path = U(t.path || ""), r.query = t.query) : (t.userinfo !== void 0 || t.host !== void 0 || t.port !== void 0 ? (r.userinfo = t.userinfo, r.host = t.host, r.port = t.port, r.path = U(t.path || ""), r.query = t.query) : (t.path ? (t.path.charAt(0) === "/" ? r.path = U(t.path) : (r.path = e.userinfo === void 0 && e.host === void 0 && e.port === void 0 || e.path ? e.path ? e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : t.path : "/" + t.path, r.path = U(r.path)), r.query = t.query) : (r.path = e.path, r.query = t.query === void 0 ? e.query : t.query), r.userinfo = e.userinfo, r.host = e.host, r.port = e.port), r.scheme = e.scheme), r.fragment = t.fragment, r;
26933
26970
  }
26934
- function G(e, t) {
26971
+ function K(e, t) {
26935
26972
  return e && e.toString().replace((t && t.iri ? s : o).PCT_ENCODED, M);
26936
26973
  }
26937
- var K = {
26974
+ var q = {
26938
26975
  scheme: "http",
26939
26976
  domainHost: !0,
26940
26977
  parse: function(e, t) {
@@ -26944,31 +26981,31 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
26944
26981
  var n = String(e.scheme).toLowerCase() === "https";
26945
26982
  return e.port !== (n ? 443 : 80) && e.port !== "" || (e.port = void 0), e.path ||= "/", e;
26946
26983
  }
26947
- }, q = {
26984
+ }, J = {
26948
26985
  scheme: "https",
26949
- domainHost: K.domainHost,
26950
- parse: K.parse,
26951
- serialize: K.serialize
26986
+ domainHost: q.domainHost,
26987
+ parse: q.parse,
26988
+ serialize: q.serialize
26952
26989
  };
26953
- function J(e) {
26990
+ function Y(e) {
26954
26991
  return typeof e.secure == "boolean" ? e.secure : String(e.scheme).toLowerCase() === "wss";
26955
26992
  }
26956
- var Y = {
26993
+ var te = {
26957
26994
  scheme: "ws",
26958
26995
  domainHost: !0,
26959
26996
  parse: function(e, t) {
26960
- return e.secure = J(e), e.resourceName = (e.path || "/") + (e.query ? "?" + e.query : ""), e.path = void 0, e.query = void 0, e;
26997
+ return e.secure = Y(e), e.resourceName = (e.path || "/") + (e.query ? "?" + e.query : ""), e.path = void 0, e.query = void 0, e;
26961
26998
  },
26962
26999
  serialize: function(e, t) {
26963
27000
  var n, r;
26964
- return e.port !== (J(e) ? 443 : 80) && e.port !== "" || (e.port = void 0), typeof e.secure == "boolean" && (e.scheme = e.secure ? "wss" : "ws", e.secure = void 0), e.resourceName &&= (r = e.resourceName.split("?"), n = (r = c(r, 2))[0], r = r[1], e.path = n && n !== "/" ? n : void 0, e.query = r, void 0), e.fragment = void 0, e;
27001
+ return e.port !== (Y(e) ? 443 : 80) && e.port !== "" || (e.port = void 0), typeof e.secure == "boolean" && (e.scheme = e.secure ? "wss" : "ws", e.secure = void 0), e.resourceName &&= (r = e.resourceName.split("?"), n = (r = c(r, 2))[0], r = r[1], e.path = n && n !== "/" ? n : void 0, e.query = r, void 0), e.fragment = void 0, e;
26965
27002
  }
26966
27003
  }, ne = {
26967
27004
  scheme: "wss",
26968
- domainHost: Y.domainHost,
26969
- parse: Y.parse,
26970
- serialize: Y.serialize
26971
- }, re = {}, X = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", Z = t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", "[\\\"\\\\]"), Q = new RegExp(X, "g"), $ = /* @__PURE__ */ RegExp("(?:(?:%[EFef][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[89A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[0-9A-Fa-f][0-9A-Fa-f]))", "g"), ie = new RegExp(t("[^]", "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", "[\\.]", "[\\\"]", Z), "g"), ae = new RegExp(t("[^]", X, "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"), "g"), oe = ae;
27005
+ domainHost: te.domainHost,
27006
+ parse: te.parse,
27007
+ serialize: te.serialize
27008
+ }, re = {}, X = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", Z = t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", "[\\\"\\\\]"), Q = new RegExp(X, "g"), ie = /* @__PURE__ */ RegExp("(?:(?:%[EFef][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[89A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[0-9A-Fa-f][0-9A-Fa-f]))", "g"), ae = new RegExp(t("[^]", "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", "[\\.]", "[\\\"]", Z), "g"), $ = new RegExp(t("[^]", X, "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"), "g"), oe = $;
26972
27009
  function se(e) {
26973
27010
  var t = M(e);
26974
27011
  return t.match(Q) ? t : e;
@@ -26985,12 +27022,12 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
26985
27022
  for (var u = l[1].split(","), d = 0, f = u.length; d < f; ++d) r.push(u[d]);
26986
27023
  break;
26987
27024
  case "subject":
26988
- n.subject = G(l[1], t);
27025
+ n.subject = K(l[1], t);
26989
27026
  break;
26990
27027
  case "body":
26991
- n.body = G(l[1], t);
27028
+ n.body = K(l[1], t);
26992
27029
  break;
26993
- default: i = !0, a[G(l[0], t)] = G(l[1], t);
27030
+ default: i = !0, a[K(l[0], t)] = K(l[1], t);
26994
27031
  }
26995
27032
  }
26996
27033
  i && (n.headers = a);
@@ -26998,9 +27035,9 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
26998
27035
  n.query = void 0;
26999
27036
  for (var p = 0, m = r.length; p < m; ++p) {
27000
27037
  var h = r[p].split("@");
27001
- if (h[0] = G(h[0]), t.unicodeSupport) h[1] = G(h[1], t).toLowerCase();
27038
+ if (h[0] = K(h[0]), t.unicodeSupport) h[1] = K(h[1], t).toLowerCase();
27002
27039
  else try {
27003
- h[1] = O(G(h[1], t).toLowerCase());
27040
+ h[1] = O(K(h[1], t).toLowerCase());
27004
27041
  } catch (e) {
27005
27042
  n.error = n.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
27006
27043
  }
@@ -27012,9 +27049,9 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
27012
27049
  var n, r = e, a = (n = e.to) == null ? [] : n instanceof Array ? n : typeof n.length != "number" || n.split || n.setInterval || n.call ? [n] : Array.prototype.slice.call(n);
27013
27050
  if (a) {
27014
27051
  for (var o = 0, s = a.length; o < s; ++o) {
27015
- var c = String(a[o]), l = c.lastIndexOf("@"), u = c.slice(0, l).replace($, se).replace($, i).replace(ie, j), c = c.slice(l + 1);
27052
+ var c = String(a[o]), l = c.lastIndexOf("@"), u = c.slice(0, l).replace(ie, se).replace(ie, i).replace(ae, j), c = c.slice(l + 1);
27016
27053
  try {
27017
- c = t.iri ? k(c) : O(G(c, t).toLowerCase());
27054
+ c = t.iri ? k(c) : O(K(c, t).toLowerCase());
27018
27055
  } catch (e) {
27019
27056
  r.error = r.error || "Email address's domain name can not be converted to " + (t.iri ? "Unicode" : "ASCII") + " via punycode: " + e;
27020
27057
  }
@@ -27023,7 +27060,7 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
27023
27060
  r.path = a.join(",");
27024
27061
  }
27025
27062
  var d, f = e.headers = e.headers || {}, p = (e.subject && (f.subject = e.subject), e.body && (f.body = e.body), []);
27026
- for (d in f) f[d] !== re[d] && p.push(d.replace($, se).replace($, i).replace(ae, j) + "=" + f[d].replace($, se).replace($, i).replace(oe, j));
27063
+ for (d in f) f[d] !== re[d] && p.push(d.replace(ie, se).replace(ie, i).replace($, j) + "=" + f[d].replace(ie, se).replace(ie, i).replace(oe, j));
27027
27064
  return p.length && (r.query = p.join("&")), r;
27028
27065
  }
27029
27066
  }, ce = /^([^\:]+)\:(.*)/, X = {
@@ -27046,19 +27083,19 @@ var Yn = /* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
27046
27083
  return n.nss = (e.uuid || "").toLowerCase(), n;
27047
27084
  }
27048
27085
  };
27049
- A[K.scheme] = K, A[q.scheme] = q, A[Y.scheme] = Y, A[ne.scheme] = ne, A[Z.scheme] = Z, A[X.scheme] = X, A[ue.scheme] = ue, e.SCHEMES = A, e.pctEncChar = j, e.pctDecChars = M, e.parse = z, e.removeDotSegments = U, e.serialize = W, e.resolveComponents = te, e.resolve = function(e, t, n) {
27086
+ A[q.scheme] = q, A[J.scheme] = J, A[te.scheme] = te, A[ne.scheme] = ne, A[Z.scheme] = Z, A[X.scheme] = X, A[ue.scheme] = ue, e.SCHEMES = A, e.pctEncChar = j, e.pctDecChars = M, e.parse = z, e.removeDotSegments = U, e.serialize = W, e.resolveComponents = G, e.resolve = function(e, t, n) {
27050
27087
  return n = ((e, t) => {
27051
27088
  var n = e;
27052
27089
  if (t) for (var r in t) n[r] = t[r];
27053
27090
  return n;
27054
- })({ scheme: "null" }, n), W(te(z(e, n), z(t, n), n, !0), n);
27091
+ })({ scheme: "null" }, n), W(G(z(e, n), z(t, n), n, !0), n);
27055
27092
  }, e.normalize = function(e, t) {
27056
27093
  return typeof e == "string" ? e = W(z(e, t), t) : r(e) === "object" && (e = z(W(e, t), t)), e;
27057
27094
  }, e.equal = function(e, t, n) {
27058
27095
  return typeof e == "string" ? e = W(z(e, n), n) : r(e) === "object" && (e = W(e, n)), typeof t == "string" ? t = W(z(t, n), n) : r(t) === "object" && (t = W(t, n)), e === t;
27059
27096
  }, e.escapeComponent = function(e, t) {
27060
27097
  return e && e.toString().replace((t && t.iri ? s : o).ESCAPE, j);
27061
- }, e.unescapeComponent = G, Object.defineProperty(e, "__esModule", { value: !0 });
27098
+ }, e.unescapeComponent = K, Object.defineProperty(e, "__esModule", { value: !0 });
27062
27099
  })(t);
27063
27100
  },
27064
27101
  7598: function(e) {
@@ -28068,7 +28105,7 @@ ${n = t ? n : b(n, ",")}
28068
28105
  }
28069
28106
  var t, n;
28070
28107
  });
28071
- })))(), 1), Xn = { class: "me-load-json" }, Zn = { class: "me-load-json__editor" }, Qn = { class: "me-load-json__footer" }, $n = { class: "me-load-json__footer-left" }, er = { class: "me-load-json__footer-right" }, tr = /* @__PURE__ */ d({
28108
+ })))(), 1), tr = { class: "me-load-json" }, nr = { class: "me-load-json__editor" }, rr = { class: "me-load-json__footer" }, ir = { class: "me-load-json__footer-left" }, ar = { class: "me-load-json__footer-right" }, or = /* @__PURE__ */ d({
28072
28109
  name: "MeLoadJson",
28073
28110
  __name: "index",
28074
28111
  props: {
@@ -28080,7 +28117,7 @@ ${n = t ? n : b(n, ",")}
28080
28117
  setup(e, { expose: t, emit: n }) {
28081
28118
  let r = e, i = n, a = E(!1), c = E(!1), d = E(), f = E(null), p = null;
28082
28119
  R(f, (e) => {
28083
- e ? p = new Yn.default(e, {
28120
+ e ? p = new er.default(e, {
28084
28121
  mode: "code",
28085
28122
  modes: [
28086
28123
  "tree",
@@ -28119,7 +28156,7 @@ ${n = t ? n : b(n, ",")}
28119
28156
  H.error("JSON 格式错误,无法导出");
28120
28157
  }
28121
28158
  }, _ = async () => {
28122
- let e = await Jn({
28159
+ let e = await $n({
28123
28160
  accept: ".json",
28124
28161
  multiple: !1
28125
28162
  });
@@ -28146,11 +28183,11 @@ ${n = t ? n : b(n, ",")}
28146
28183
  open: m
28147
28184
  }), (t, n) => {
28148
28185
  let r = A("a-button");
28149
- return C(), o("div", Xn, [s("div", { onClick: m }, [k(t.$slots, "default", {}, () => [u(r, {
28186
+ return C(), o("div", tr, [s("div", { onClick: m }, [k(t.$slots, "default", {}, () => [u(r, {
28150
28187
  type: "primary",
28151
28188
  size: "small"
28152
28189
  }, {
28153
- icon: z(() => [u(P(J), { size: 14 })]),
28190
+ icon: z(() => [u(P(Y), { size: 14 })]),
28154
28191
  default: z(() => [n[1] ||= l(" 导入 JSON ", -1)]),
28155
28192
  _: 1
28156
28193
  })])]), u(Zt, {
@@ -28161,14 +28198,14 @@ ${n = t ? n : b(n, ",")}
28161
28198
  height: "80vh",
28162
28199
  onCancel: h
28163
28200
  }, {
28164
- footer: z(() => [s("div", Qn, [s("div", $n, [k(t.$slots, "footer-left", {}, () => [u(r, {
28201
+ footer: z(() => [s("div", rr, [s("div", ir, [k(t.$slots, "footer-left", {}, () => [u(r, {
28165
28202
  size: "small",
28166
28203
  onClick: g
28167
28204
  }, {
28168
- icon: z(() => [u(P(J), { size: 14 })]),
28205
+ icon: z(() => [u(P(Y), { size: 14 })]),
28169
28206
  default: z(() => [n[2] ||= l(" 导出 ", -1)]),
28170
28207
  _: 1
28171
- })])]), s("div", er, [
28208
+ })])]), s("div", ar, [
28172
28209
  u(r, {
28173
28210
  size: "small",
28174
28211
  onClick: _
@@ -28188,7 +28225,7 @@ ${n = t ? n : b(n, ",")}
28188
28225
  }, 8, ["disabled"]),
28189
28226
  k(t.$slots, "footer-right")
28190
28227
  ])])]),
28191
- default: z(() => [s("div", Zn, [s("div", {
28228
+ default: z(() => [s("div", nr, [s("div", {
28192
28229
  ref_key: "editorContainerRef",
28193
28230
  ref: f,
28194
28231
  class: "editor"
@@ -28204,22 +28241,22 @@ ${n = t ? n : b(n, ",")}
28204
28241
  });
28205
28242
  //#endregion
28206
28243
  //#region src/components/load-json/index.ts
28207
- tr.install = (e) => {
28208
- e.component("MeLoadJson", tr);
28244
+ or.install = (e) => {
28245
+ e.component("MeLoadJson", or);
28209
28246
  };
28210
- var nr = tr, rr = {
28247
+ var sr = or, cr = {
28211
28248
  key: 0,
28212
28249
  class: "me-login-page__background"
28213
- }, ir = { class: "me-login-page__bg-content" }, ar = { class: "me-login-page__bg-title" }, or = {
28250
+ }, lr = { class: "me-login-page__bg-content" }, ur = { class: "me-login-page__bg-title" }, dr = {
28214
28251
  key: 0,
28215
28252
  class: "me-login-page__bg-subtitle"
28216
- }, sr = { class: "me-login-page__main" }, cr = { class: "me-login-page__logo" }, lr = ["src"], ur = { class: "me-login-page__header" }, dr = { class: "me-login-page__title" }, fr = {
28253
+ }, fr = { class: "me-login-page__main" }, pr = { class: "me-login-page__logo" }, mr = ["src"], hr = { class: "me-login-page__header" }, gr = { class: "me-login-page__title" }, _r = {
28217
28254
  key: 0,
28218
28255
  class: "me-login-page__subtitle"
28219
- }, pr = { class: "me-login-page__options" }, mr = {
28256
+ }, vr = { class: "me-login-page__options" }, yr = {
28220
28257
  key: 0,
28221
28258
  class: "me-login-page__register"
28222
- }, hr = /* @__PURE__ */ d({
28259
+ }, br = /* @__PURE__ */ d({
28223
28260
  name: "MeLoginPage",
28224
28261
  __name: "index",
28225
28262
  props: {
@@ -28365,21 +28402,21 @@ var nr = tr, rr = {
28365
28402
  default: z(() => [s("div", {
28366
28403
  class: "me-login-page",
28367
28404
  style: y(w.value)
28368
- }, [b.value ? (C(), o("div", rr, [k(t.$slots, "background", {}, () => [e.backgroundImage ? (C(), o("div", {
28405
+ }, [b.value ? (C(), o("div", cr, [k(t.$slots, "background", {}, () => [e.backgroundImage ? (C(), o("div", {
28369
28406
  key: 0,
28370
28407
  class: "me-login-page__bg-image",
28371
28408
  style: y({ backgroundImage: `url(${e.backgroundImage})` })
28372
- }, null, 4)) : a("", !0), s("div", ir, [s("h1", ar, N(e.title), 1), e.subtitle ? (C(), o("p", or, N(e.subtitle), 1)) : a("", !0)])])])) : a("", !0), s("div", sr, [s("div", {
28409
+ }, null, 4)) : a("", !0), s("div", lr, [s("h1", ur, N(e.title), 1), e.subtitle ? (C(), o("p", dr, N(e.subtitle), 1)) : a("", !0)])])])) : a("", !0), s("div", fr, [s("div", {
28373
28410
  class: "me-login-page__card",
28374
28411
  style: y(D.value)
28375
28412
  }, [
28376
- s("div", cr, [k(t.$slots, "logo", {}, () => [e.logo ? (C(), o("img", {
28413
+ s("div", pr, [k(t.$slots, "logo", {}, () => [e.logo ? (C(), o("img", {
28377
28414
  key: 0,
28378
28415
  src: e.logo,
28379
28416
  alt: "logo",
28380
28417
  class: "me-login-page__logo-img"
28381
- }, null, 8, lr)) : a("", !0)])]),
28382
- s("div", ur, [k(t.$slots, "title", {}, () => [s("h2", dr, N(e.title), 1), e.subtitle ? (C(), o("p", fr, N(e.subtitle), 1)) : a("", !0)])]),
28418
+ }, null, 8, mr)) : a("", !0)])]),
28419
+ s("div", hr, [k(t.$slots, "title", {}, () => [s("h2", gr, N(e.title), 1), e.subtitle ? (C(), o("p", _r, N(e.subtitle), 1)) : a("", !0)])]),
28383
28420
  u(x, {
28384
28421
  ref_key: "formRef",
28385
28422
  ref: g,
@@ -28426,7 +28463,7 @@ var nr = tr, rr = {
28426
28463
  } : void 0]), 1032, ["value", "placeholder"])]),
28427
28464
  _: 3
28428
28465
  }, 8, ["label"]),
28429
- s("div", pr, [e.showRemember ? (C(), i(p, {
28466
+ s("div", vr, [e.showRemember ? (C(), i(p, {
28430
28467
  key: 0,
28431
28468
  checked: h.remember,
28432
28469
  "onUpdate:checked": n[2] ||= (e) => h.remember = e,
@@ -28455,7 +28492,7 @@ var nr = tr, rr = {
28455
28492
  }),
28456
28493
  k(t.$slots, "form-bottom"),
28457
28494
  k(t.$slots, "default"),
28458
- e.showRegister ? (C(), o("div", mr, [l(N(e.registerText) + " ", 1), s("a", {
28495
+ e.showRegister ? (C(), o("div", yr, [l(N(e.registerText) + " ", 1), s("a", {
28459
28496
  class: "me-login-page__register-link",
28460
28497
  onClick: P
28461
28498
  }, N(e.registerLinkText), 1)])) : a("", !0)
@@ -28470,13 +28507,13 @@ var nr = tr, rr = {
28470
28507
  });
28471
28508
  //#endregion
28472
28509
  //#region src/components/login-page/index.ts
28473
- hr.install = (e) => {
28474
- e.component("MeLoginPage", hr);
28510
+ br.install = (e) => {
28511
+ e.component("MeLoginPage", br);
28475
28512
  };
28476
- var gr = hr, _r = { class: "me-card__title-wrapper" }, vr = { class: "me-card__title" }, yr = { class: "me-card__actions" }, br = { class: "me-card__content" }, xr = { class: "me-card__body" }, Sr = {
28513
+ var xr = br, Sr = { class: "me-card__title-wrapper" }, Cr = { class: "me-card__title" }, wr = { class: "me-card__actions" }, Tr = { class: "me-card__content" }, Er = { class: "me-card__body" }, Dr = {
28477
28514
  key: 0,
28478
28515
  class: "me-card__footer"
28479
- }, Cr = /* @__PURE__ */ d({
28516
+ }, Or = /* @__PURE__ */ d({
28480
28517
  name: "MeCard",
28481
28518
  __name: "index",
28482
28519
  props: {
@@ -28575,7 +28612,7 @@ var gr = hr, _r = { class: "me-card__title-wrapper" }, vr = { class: "me-card__t
28575
28612
  "me-card--loading": m.value
28576
28613
  }]
28577
28614
  }), {
28578
- title: z(() => [s("div", _r, [k(e.$slots, "title", {}, () => [s("span", vr, N(n.title), 1)]), s("div", yr, [
28615
+ title: z(() => [s("div", Sr, [k(e.$slots, "title", {}, () => [s("span", Cr, N(n.title), 1)]), s("div", wr, [
28579
28616
  k(e.$slots, "actions"),
28580
28617
  k(e.$slots, "extra"),
28581
28618
  n.fullscreenable ? (C(), i(r, {
@@ -28595,14 +28632,14 @@ var gr = hr, _r = { class: "me-card__title-wrapper" }, vr = { class: "me-card__t
28595
28632
  class: _(["me-card__action-btn", { "me-card__collapse-btn--collapsed": y.value }]),
28596
28633
  onClick: S
28597
28634
  }, {
28598
- default: z(() => [u(P(te), {
28635
+ default: z(() => [u(P(G), {
28599
28636
  size: 16,
28600
28637
  class: "me-card__collapse-icon"
28601
28638
  })]),
28602
28639
  _: 1
28603
28640
  }, 8, ["class"])) : a("", !0)
28604
28641
  ])])]),
28605
- default: z(() => [B(s("div", br, [s("div", xr, [m.value ? (C(), i(c, {
28642
+ default: z(() => [B(s("div", Tr, [s("div", Er, [m.value ? (C(), i(c, {
28606
28643
  key: 0,
28607
28644
  active: "",
28608
28645
  rows: g.value,
@@ -28610,7 +28647,7 @@ var gr = hr, _r = { class: "me-card__title-wrapper" }, vr = { class: "me-card__t
28610
28647
  }, {
28611
28648
  default: z(() => [k(e.$slots, "default")]),
28612
28649
  _: 3
28613
- }, 8, ["rows"])) : k(e.$slots, "default", {}, void 0, void 0, 1)]), d.value ? (C(), o("div", Sr, [k(e.$slots, "footer")])) : a("", !0)], 512), [[L, !y.value || D.value]])]),
28650
+ }, 8, ["rows"])) : k(e.$slots, "default", {}, void 0, void 0, 1)]), d.value ? (C(), o("div", Dr, [k(e.$slots, "footer")])) : a("", !0)], 512), [[L, !y.value || D.value]])]),
28614
28651
  _: 3
28615
28652
  }, 16, ["style", "class"]);
28616
28653
  };
@@ -28618,16 +28655,16 @@ var gr = hr, _r = { class: "me-card__title-wrapper" }, vr = { class: "me-card__t
28618
28655
  });
28619
28656
  //#endregion
28620
28657
  //#region src/components/card/index.ts
28621
- Cr.install = (e) => {
28622
- e.component("MeCard", Cr);
28658
+ Or.install = (e) => {
28659
+ e.component("MeCard", Or);
28623
28660
  };
28624
- var wr = Cr;
28661
+ var kr = Or;
28625
28662
  //#endregion
28626
28663
  //#region src/components/skeleton/index.ts
28627
28664
  Wt.install = (e) => {
28628
28665
  e.component("MeSkeleton", Wt);
28629
28666
  };
28630
- var Tr = Wt, Er = [
28667
+ var Ar = Wt, jr = [
28631
28668
  {
28632
28669
  label: "字符串",
28633
28670
  value: "string"
@@ -28652,7 +28689,7 @@ var Tr = Wt, Er = [
28652
28689
  label: "时间",
28653
28690
  value: "time"
28654
28691
  }
28655
- ], Dr = 2, Or = "YYYY-MM-DD", kr = "HH:mm:ss", Ar = [{
28692
+ ], Mr = 2, Nr = "YYYY-MM-DD", Pr = "HH:mm:ss", Fr = [{
28656
28693
  label: "是",
28657
28694
  value: !0
28658
28695
  }, {
@@ -28661,70 +28698,70 @@ var Tr = Wt, Er = [
28661
28698
  }];
28662
28699
  //#endregion
28663
28700
  //#region src/components/input-property/validate.ts
28664
- function jr() {
28701
+ function Ir() {
28665
28702
  return `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
28666
28703
  }
28667
- var Mr = /^\d{4}-\d{2}-\d{2}$/, Nr = /^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?$/;
28668
- function Pr(e) {
28704
+ var Lr = /^\d{4}-\d{2}-\d{2}$/, Rr = /^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?$/;
28705
+ function zr(e) {
28669
28706
  return Math.round((e + 2 ** -52) * 100) / 100;
28670
28707
  }
28671
- function Fr(e) {
28708
+ function Br(e) {
28672
28709
  if (typeof e == "number") return Number.isInteger(e) ? "int" : "float";
28673
28710
  if (typeof e == "boolean") return "boolean";
28674
28711
  if (typeof e == "string") {
28675
- if (Mr.test(e)) return "date";
28676
- if (Nr.test(e)) return "time";
28712
+ if (Lr.test(e)) return "date";
28713
+ if (Rr.test(e)) return "time";
28677
28714
  }
28678
28715
  return "string";
28679
28716
  }
28680
- function Ir(e, t) {
28681
- return t === "string" ? e == null ? "" : String(e) : t === "boolean" ? Br(e) : t === "int" || t === "float" ? Lr(e, t === "float") : Vr(e, t === "date" ? Or : kr);
28717
+ function Vr(e, t) {
28718
+ return t === "string" ? e == null ? "" : String(e) : t === "boolean" ? Gr(e) : t === "int" || t === "float" ? Hr(e, t === "float") : Kr(e, t === "date" ? Nr : Pr);
28682
28719
  }
28683
- function Lr(e, t) {
28720
+ function Hr(e, t) {
28684
28721
  if (e == null) return "";
28685
- let n = (e) => t ? Pr(e) : e;
28722
+ let n = (e) => t ? zr(e) : e;
28686
28723
  if (typeof e == "number") return n(e);
28687
28724
  let r = String(e).trim();
28688
28725
  if (r === "") return "";
28689
28726
  let i = Number(r);
28690
28727
  return Number.isNaN(i) ? e : n(i);
28691
28728
  }
28692
- function Rr(e, t) {
28729
+ function Ur(e, t) {
28693
28730
  if (t === "string") return e;
28694
- if (t === "boolean") return Br(e);
28695
- if (t === "int" || t === "float") return zr(e, t === "float");
28696
- let n = t === "date" ? Or : kr;
28697
- return e == null || e === "" ? "" : ae.isDayjs(e) ? e.format(n) : typeof e == "string" ? e : "";
28731
+ if (t === "boolean") return Gr(e);
28732
+ if (t === "int" || t === "float") return Wr(e, t === "float");
28733
+ let n = t === "date" ? Nr : Pr;
28734
+ return e == null || e === "" ? "" : $.isDayjs(e) ? e.format(n) : typeof e == "string" ? e : "";
28698
28735
  }
28699
- function zr(e, t) {
28736
+ function Wr(e, t) {
28700
28737
  if (e == null) return e;
28701
- let n = (e) => t ? Pr(e) : e;
28738
+ let n = (e) => t ? zr(e) : e;
28702
28739
  if (typeof e == "number") return n(e);
28703
28740
  let r = String(e).trim();
28704
28741
  if (r === "") return "";
28705
28742
  let i = Number(r);
28706
28743
  return Number.isNaN(i) ? e : n(i);
28707
28744
  }
28708
- function Br(e) {
28745
+ function Gr(e) {
28709
28746
  if (typeof e == "boolean") return e;
28710
28747
  if (e == null || e === "") return !1;
28711
28748
  if (typeof e == "number") return e !== 0;
28712
28749
  let t = String(e).trim().toLowerCase();
28713
28750
  return t === "true" || t === "1" || t === "yes" || t === "on";
28714
28751
  }
28715
- function Vr(e, t) {
28752
+ function Kr(e, t) {
28716
28753
  if (e == null || e === "") return "";
28717
- if (ae.isDayjs(e)) return e.format(t);
28718
- let n = ae(e);
28754
+ if ($.isDayjs(e)) return e.format(t);
28755
+ let n = $(e);
28719
28756
  return n.isValid() ? n.format(t) : e;
28720
28757
  }
28721
- function Hr(e) {
28758
+ function qr(e) {
28722
28759
  return e.trim().toLowerCase();
28723
28760
  }
28724
- function Ur(e) {
28761
+ function Jr(e) {
28725
28762
  let t = /* @__PURE__ */ new Map(), n = [];
28726
28763
  for (let r of e) {
28727
- let e = Hr(r.key);
28764
+ let e = qr(r.key);
28728
28765
  if (e) {
28729
28766
  if (t.has(e)) {
28730
28767
  let i = t.get(e);
@@ -28736,12 +28773,12 @@ function Ur(e) {
28736
28773
  }
28737
28774
  return n;
28738
28775
  }
28739
- function Wr(e, t) {
28776
+ function Yr(e, t) {
28740
28777
  if (!e) return !1;
28741
- let n = Hr(e);
28742
- return t.some((e) => Hr(e) === n);
28778
+ let n = qr(e);
28779
+ return t.some((e) => qr(e) === n);
28743
28780
  }
28744
- var Gr = {
28781
+ var Xr = {
28745
28782
  minLength: ["string"],
28746
28783
  maxLength: ["string"],
28747
28784
  pattern: ["string"],
@@ -28757,93 +28794,93 @@ var Gr = {
28757
28794
  "date",
28758
28795
  "time"
28759
28796
  ]
28760
- }, Kr = ["required", "message"];
28761
- function qr(e, t) {
28762
- if (Kr.includes(e)) return !0;
28763
- let n = Gr[e];
28797
+ }, Zr = ["required", "message"];
28798
+ function Qr(e, t) {
28799
+ if (Zr.includes(e)) return !0;
28800
+ let n = Xr[e];
28764
28801
  return n ? n.includes(t) : !1;
28765
28802
  }
28766
- function Jr(e) {
28803
+ function $r(e) {
28767
28804
  return typeof e == "number" && Number.isFinite(e);
28768
28805
  }
28769
- function Yr(e) {
28806
+ function ei(e) {
28770
28807
  if (!e) return;
28771
28808
  let t = {};
28772
- return e.required === !0 && (t.required = !0), Jr(e.minLength) && (t.minLength = e.minLength), Jr(e.maxLength) && (t.maxLength = e.maxLength), typeof e.pattern == "string" && e.pattern.trim() !== "" && (t.pattern = e.pattern), (Jr(e.min) || typeof e.min == "string" && e.min.trim() !== "") && (t.min = e.min), (Jr(e.max) || typeof e.max == "string" && e.max.trim() !== "") && (t.max = e.max), typeof e.message == "string" && e.message.trim() !== "" && (t.message = e.message), Object.keys(t).length > 0 ? t : void 0;
28809
+ return e.required === !0 && (t.required = !0), $r(e.minLength) && (t.minLength = e.minLength), $r(e.maxLength) && (t.maxLength = e.maxLength), typeof e.pattern == "string" && e.pattern.trim() !== "" && (t.pattern = e.pattern), ($r(e.min) || typeof e.min == "string" && e.min.trim() !== "") && (t.min = e.min), ($r(e.max) || typeof e.max == "string" && e.max.trim() !== "") && (t.max = e.max), typeof e.message == "string" && e.message.trim() !== "" && (t.message = e.message), Object.keys(t).length > 0 ? t : void 0;
28773
28810
  }
28774
- function Xr(e, t) {
28811
+ function ti(e, t) {
28775
28812
  if (!e) return;
28776
28813
  let n = {};
28777
- return e.required === !0 && (n.required = !0), typeof e.message == "string" && e.message.trim() !== "" && (n.message = e.message), t === "string" ? (Jr(e.minLength) && (n.minLength = e.minLength), Jr(e.maxLength) && (n.maxLength = e.maxLength), typeof e.pattern == "string" && e.pattern.trim() !== "" && (n.pattern = e.pattern)) : (t === "int" || t === "float" || t === "date" || t === "time") && ((Jr(e.min) || typeof e.min == "string" && e.min.trim() !== "") && (n.min = e.min), (Jr(e.max) || typeof e.max == "string" && e.max.trim() !== "") && (n.max = e.max)), Yr(n);
28814
+ return e.required === !0 && (n.required = !0), typeof e.message == "string" && e.message.trim() !== "" && (n.message = e.message), t === "string" ? ($r(e.minLength) && (n.minLength = e.minLength), $r(e.maxLength) && (n.maxLength = e.maxLength), typeof e.pattern == "string" && e.pattern.trim() !== "" && (n.pattern = e.pattern)) : (t === "int" || t === "float" || t === "date" || t === "time") && (($r(e.min) || typeof e.min == "string" && e.min.trim() !== "") && (n.min = e.min), ($r(e.max) || typeof e.max == "string" && e.max.trim() !== "") && (n.max = e.max)), ei(n);
28778
28815
  }
28779
- function Zr(e, t) {
28816
+ function ni(e, t) {
28780
28817
  return typeof e.message == "string" && e.message.trim() !== "" ? e.message : t;
28781
28818
  }
28782
- function Qr(e, t, n) {
28783
- let r = Yr(n);
28819
+ function ri(e, t, n) {
28820
+ let r = ei(n);
28784
28821
  if (!r) return null;
28785
28822
  let i = e === "" || e == null;
28786
- if (r.required && i) return Zr(r, "不能为空");
28823
+ if (r.required && i) return ni(r, "不能为空");
28787
28824
  if (t === "string") {
28788
28825
  if (typeof e != "string" || i) return null;
28789
- if (r.minLength != null && e.length < r.minLength) return Zr(r, `最短长度不能小于 ${r.minLength}`);
28790
- if (r.maxLength != null && e.length > r.maxLength) return Zr(r, `最大长度不能大于 ${r.maxLength}`);
28826
+ if (r.minLength != null && e.length < r.minLength) return ni(r, `最短长度不能小于 ${r.minLength}`);
28827
+ if (r.maxLength != null && e.length > r.maxLength) return ni(r, `最大长度不能大于 ${r.maxLength}`);
28791
28828
  if (r.pattern) {
28792
28829
  let t = null;
28793
28830
  try {
28794
28831
  t = new RegExp(r.pattern);
28795
28832
  } catch {}
28796
- if (t && !t.test(e)) return Zr(r, "格式不正确");
28833
+ if (t && !t.test(e)) return ni(r, "格式不正确");
28797
28834
  }
28798
28835
  }
28799
28836
  if (t === "int" || t === "float") {
28800
28837
  if (i) return null;
28801
28838
  let t = Number(e);
28802
28839
  if (Number.isNaN(t)) return null;
28803
- if (r.min != null && t < Number(r.min)) return Zr(r, `不能小于 ${r.min}`);
28804
- if (r.max != null && t > Number(r.max)) return Zr(r, `不能大于 ${r.max}`);
28840
+ if (r.min != null && t < Number(r.min)) return ni(r, `不能小于 ${r.min}`);
28841
+ if (r.max != null && t > Number(r.max)) return ni(r, `不能大于 ${r.max}`);
28805
28842
  }
28806
28843
  if (t === "date" || t === "time") {
28807
28844
  if (i) return null;
28808
28845
  let t = String(e);
28809
- if (r.min != null && t < String(r.min)) return Zr(r, `不能早于 ${r.min}`);
28810
- if (r.max != null && t > String(r.max)) return Zr(r, `不能晚于 ${r.max}`);
28846
+ if (r.min != null && t < String(r.min)) return ni(r, `不能早于 ${r.min}`);
28847
+ if (r.max != null && t > String(r.max)) return ni(r, `不能晚于 ${r.max}`);
28811
28848
  }
28812
28849
  return null;
28813
28850
  }
28814
- function $r(e) {
28851
+ function ii(e) {
28815
28852
  let t = {};
28816
28853
  for (let n of e) {
28817
28854
  let e = n.key.trim();
28818
28855
  if (!e) continue;
28819
- let r = Yr(n.rules);
28856
+ let r = ei(n.rules);
28820
28857
  r && (t[e] = r);
28821
28858
  }
28822
28859
  return t;
28823
28860
  }
28824
- function ei(e, t, n) {
28825
- return Qr(e, t, n);
28861
+ function ai(e, t, n) {
28862
+ return ri(e, t, n);
28826
28863
  }
28827
- function ti(e) {
28864
+ function oi(e) {
28828
28865
  let t = {};
28829
28866
  for (let n of e) {
28830
28867
  let e = n.key.trim();
28831
28868
  if (!e) continue;
28832
- let r = ei(n.value, n.type, n.rules);
28869
+ let r = ai(n.value, n.type, n.rules);
28833
28870
  r && (t[e] = r);
28834
28871
  }
28835
28872
  return t;
28836
28873
  }
28837
28874
  //#endregion
28838
28875
  //#region src/components/input-property/index.vue?vue&type=script&setup=true&lang.ts
28839
- var ni = { class: "me-input-property__toolbar" }, ri = {
28876
+ var si = {
28840
28877
  key: 0,
28841
28878
  class: "me-input-property__actions"
28842
- }, ii = {
28879
+ }, ci = {
28843
28880
  key: 0,
28844
28881
  class: "me-input-property__drag",
28845
28882
  title: "拖拽排序"
28846
- }, ai = /* @__PURE__ */ d({
28883
+ }, li = /* @__PURE__ */ d({
28847
28884
  name: "MeInputProperty",
28848
28885
  __name: "index",
28849
28886
  props: {
@@ -28873,7 +28910,7 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
28873
28910
  },
28874
28911
  keyPlaceholder: { default: "请输入 key" },
28875
28912
  valuePlaceholder: { default: "请输入 value" },
28876
- emptyText: { default: "暂无属性,点击「新增」添加" },
28913
+ emptyText: { default: "暂无属性,点击 + 添加" },
28877
28914
  keyColumnTitle: { default: "属性" },
28878
28915
  valueColumnTitle: { default: "值" },
28879
28916
  rules: {},
@@ -28898,7 +28935,21 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
28898
28935
  "cancel"
28899
28936
  ],
28900
28937
  setup(t, { emit: n }) {
28901
- let c = t, d = n, p = E([]), m = E([]), h = E("object"), y = !1, b = r(() => {
28938
+ let c = t, d = n, p = E([]), m = E([]), h = E("object"), y = null;
28939
+ function b(e, t) {
28940
+ if (e === t) return !0;
28941
+ if (typeof e != "object" || typeof t != "object" || e == null || t == null || Array.isArray(e) !== Array.isArray(t)) return !1;
28942
+ if (Array.isArray(e)) {
28943
+ if (e.length !== t.length) return !1;
28944
+ for (let n = 0; n < e.length; n++) if (!b(e[n], t[n])) return !1;
28945
+ return !0;
28946
+ }
28947
+ let n = Object.keys(e), r = Object.keys(t);
28948
+ if (n.length !== r.length) return !1;
28949
+ for (let r of n) if (!Object.prototype.hasOwnProperty.call(t, r) || !b(e[r], t[r])) return !1;
28950
+ return !0;
28951
+ }
28952
+ let S = r(() => {
28902
28953
  let e = [{
28903
28954
  title: c.keyColumnTitle,
28904
28955
  key: "key",
@@ -28922,59 +28973,64 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
28922
28973
  width: 72,
28923
28974
  align: "center"
28924
28975
  }), e;
28925
- }), S = r(() => c.draggable && !c.disabled);
28926
- function w(e) {
28976
+ }), w = r(() => c.draggable && !c.disabled);
28977
+ function D(e) {
28927
28978
  h.value = Array.isArray(e) ? "array" : "object";
28928
- let t = /* @__PURE__ */ new Map();
28979
+ let t = /* @__PURE__ */ new Map(), n = [];
28929
28980
  for (let e of p.value) {
28930
- let n = e.key.trim();
28931
- n && t.set(n, e);
28981
+ let r = e.key.trim();
28982
+ r ? t.set(r, e) : n.push(e);
28932
28983
  }
28933
- let n = (e) => t.get(e.trim())?.rules ?? c.rules?.[e.trim()];
28934
- h.value === "array" ? p.value = e.map((e) => {
28935
- let t = String(e[c.keyField] ?? ""), r = e[c.valueField];
28984
+ let r = /* @__PURE__ */ new Set(), i = (e) => {
28985
+ let n = t.get(e.trim());
28986
+ if (n && !r.has(n.id)) return r.add(n.id), n.id;
28987
+ let i = Ir();
28988
+ return r.add(i), i;
28989
+ }, a = (e) => t.get(e.trim())?.rules ?? c.rules?.[e.trim()], o = h.value === "array" ? e.map((e) => {
28990
+ let t = String(e[c.keyField] ?? ""), n = e[c.valueField];
28936
28991
  return {
28937
- id: jr(),
28992
+ id: i(t),
28938
28993
  key: t,
28939
- type: Fr(r),
28940
- value: r,
28994
+ type: Br(n),
28995
+ value: n,
28941
28996
  raw: { ...e },
28942
- rules: n(t)
28997
+ rules: a(t)
28943
28998
  };
28944
- }) : p.value = Object.entries(e).map(([e, t]) => ({
28945
- id: jr(),
28999
+ }) : Object.entries(e).map(([e, t]) => ({
29000
+ id: i(e),
28946
29001
  key: e,
28947
- type: Fr(t),
29002
+ type: Br(t),
28948
29003
  value: t,
28949
- rules: n(e)
28950
- })), K();
29004
+ rules: a(e)
29005
+ }));
29006
+ p.value = [...o, ...n], J();
28951
29007
  }
28952
- function D() {
29008
+ function O() {
28953
29009
  let e = {};
28954
29010
  for (let t of p.value) {
28955
29011
  let n = t.key.trim();
28956
- n && (e[n] = Rr(t.value, t.type));
29012
+ n && (e[n] = Ur(t.value, t.type));
28957
29013
  }
28958
29014
  return e;
28959
29015
  }
28960
- function O() {
29016
+ function k() {
28961
29017
  let e = [];
28962
29018
  for (let t of p.value) {
28963
29019
  let n = t.key.trim();
28964
29020
  if (!n) continue;
28965
29021
  let r = { ...t.raw };
28966
- r[c.keyField] = n, r[c.valueField] = Rr(t.value, t.type), e.push(r);
29022
+ r[c.keyField] = n, r[c.valueField] = Ur(t.value, t.type), e.push(r);
28967
29023
  }
28968
29024
  return e;
28969
29025
  }
28970
- function k() {
28971
- let e = h.value === "array" ? O() : D();
28972
- y = !0, d("update:modelValue", e);
29026
+ function M() {
29027
+ let e = h.value === "array" ? k() : O();
29028
+ y = e, d("update:modelValue", e);
28973
29029
  let t = c.validate ? {
28974
29030
  duplicatedKeys: m.value,
28975
29031
  hasEmptyKey: p.value.some((e) => !e.key.trim()),
28976
- rowRules: $r(p.value),
28977
- valueErrors: ti(p.value)
29032
+ rowRules: ii(p.value),
29033
+ valueErrors: oi(p.value)
28978
29034
  } : {
28979
29035
  duplicatedKeys: [],
28980
29036
  hasEmptyKey: !1,
@@ -28984,41 +29040,35 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
28984
29040
  d("change", e, t);
28985
29041
  }
28986
29042
  R(() => c.modelValue, (e) => {
28987
- if (e) {
28988
- if (y) {
28989
- y = !1;
28990
- return;
28991
- }
28992
- w(e);
28993
- }
29043
+ e && (y != null && b(e, y) || (y = null, D(e)));
28994
29044
  }, { immediate: !0 });
28995
- let M = E(!!c.open);
29045
+ let N = E(!!c.open);
28996
29046
  R(() => c.open, (e) => {
28997
- M.value = !!e;
29047
+ N.value = !!e;
28998
29048
  });
28999
- let N = r(() => c.modalMode ? {
29000
- open: M.value,
29049
+ let F = r(() => c.modalMode ? {
29050
+ open: N.value,
29001
29051
  title: c.title,
29002
29052
  width: c.modalWidth,
29003
29053
  position: "center",
29004
29054
  okText: c.okText,
29005
29055
  cancelText: c.cancelText,
29006
- "onUpdate:open": F,
29007
- onOk: B,
29008
- onCancel: I
29056
+ "onUpdate:open": I,
29057
+ onOk: V,
29058
+ onCancel: L
29009
29059
  } : {});
29010
- function F(e) {
29011
- M.value = e, d("update:open", e);
29060
+ function I(e) {
29061
+ N.value = e, d("update:open", e);
29012
29062
  }
29013
- function I() {
29063
+ function L() {
29014
29064
  d("cancel");
29015
29065
  }
29016
- function L() {
29066
+ function B() {
29017
29067
  return c.validate ? {
29018
- duplicatedKeys: Ur(p.value),
29068
+ duplicatedKeys: Jr(p.value),
29019
29069
  hasEmptyKey: p.value.some((e) => !e.key.trim()),
29020
- rowRules: $r(p.value),
29021
- valueErrors: ti(p.value)
29070
+ rowRules: ii(p.value),
29071
+ valueErrors: oi(p.value)
29022
29072
  } : {
29023
29073
  duplicatedKeys: [],
29024
29074
  hasEmptyKey: !1,
@@ -29026,81 +29076,81 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29026
29076
  valueErrors: {}
29027
29077
  };
29028
29078
  }
29029
- function B() {
29030
- let e = L(), t = [];
29079
+ function V() {
29080
+ let e = B(), t = [];
29031
29081
  e.hasEmptyKey && t.push("存在为空的 key,请补充或删除该属性"), e.duplicatedKeys.length && t.push(`key 重复(忽略大小写):${e.duplicatedKeys.join("、")}`);
29032
29082
  for (let [n, r] of Object.entries(e.valueErrors)) t.push(`${n}:${r}`);
29033
29083
  if (t.length) {
29034
29084
  H.error(`校验未通过:${t.join(";")}`);
29035
29085
  return;
29036
29086
  }
29037
- M.value = !1, d("update:open", !1), d("ok", h.value === "array" ? O() : D());
29038
- }
29039
- function V(e) {
29040
- K(), k();
29087
+ N.value = !1, d("update:open", !1), d("ok", h.value === "array" ? k() : O());
29041
29088
  }
29042
29089
  function ee(e) {
29043
- K(), k();
29090
+ J(), M();
29044
29091
  }
29045
- function U(e, t) {
29046
- e.type !== t && (e.type = t, e.value = Ir(e.value, t), e.rules = Xr(e.rules, t), K(), k());
29092
+ function U(e) {
29093
+ J(), M();
29047
29094
  }
29048
29095
  function W(e, t) {
29049
- e.value = t, K(), k();
29096
+ e.type !== t && (e.type = t, e.value = Vr(e.value, t), e.rules = ti(e.rules, t), J(), M());
29050
29097
  }
29051
- function te() {
29098
+ function G(e, t) {
29099
+ e.value = t, J(), M();
29100
+ }
29101
+ function K() {
29052
29102
  p.value = [...p.value, {
29053
- id: jr(),
29103
+ id: Ir(),
29054
29104
  key: "",
29055
29105
  type: "string",
29056
29106
  value: "",
29057
29107
  raw: {}
29058
- }], K(), k();
29059
- }
29060
- function G(e) {
29061
- let t = p.value.indexOf(e);
29062
- t !== -1 && (p.value.splice(t, 1), K(), k());
29063
- }
29064
- function K() {
29065
- m.value = Ur(p.value);
29108
+ }], J(), M();
29066
29109
  }
29067
29110
  function q(e) {
29068
- return Wr(e, m.value);
29111
+ let t = p.value.indexOf(e);
29112
+ t !== -1 && (p.value.splice(t, 1), J(), M());
29069
29113
  }
29070
- function J(e) {
29071
- return c.validate ? e.trim() ? q(e) ? "Key 不能重复(忽略大小写)" : "" : "Key 不能为空" : "";
29114
+ function J() {
29115
+ m.value = Jr(p.value);
29072
29116
  }
29073
29117
  function Y(e) {
29074
- return c.validate ? !e.key.trim() || q(e.key) : !1;
29118
+ return Yr(e, m.value);
29119
+ }
29120
+ function te(e) {
29121
+ return c.validate ? e.trim() ? Y(e) ? "Key 不能重复(忽略大小写)" : "" : "Key 不能为空" : "";
29075
29122
  }
29076
29123
  function ne(e) {
29077
- return c.disabled || !c.validate ? "" : ei(e.value, e.type, e.rules) ?? "";
29124
+ return c.validate ? !e.key.trim() || Y(e.key) : !1;
29078
29125
  }
29079
29126
  function re(e) {
29080
- return !!Yr(e.rules);
29127
+ return c.disabled || !c.validate ? "" : ai(e.value, e.type, e.rules) ?? "";
29128
+ }
29129
+ function X(e) {
29130
+ return !!ei(e.rules);
29081
29131
  }
29082
- let X = E(!1), Z = E(null), Q = E(), $ = T({}), ae = r(() => Z.value?.type ?? "string"), oe = Object.fromEntries(Er.map((e) => [e.value, e.label])), se = r(() => {
29083
- let e = Z.value;
29084
- return e ? `校验规则${e.key.trim() ? ` · ${e.key.trim()}` : ""}(${oe[e.type] ?? e.type})` : "校验规则";
29132
+ let Z = E(!1), Q = E(null), ie = E(), $ = T({}), oe = r(() => Q.value?.type ?? "string"), se = Object.fromEntries(jr.map((e) => [e.value, e.label])), ce = r(() => {
29133
+ let e = Q.value;
29134
+ return e ? `校验规则${e.key.trim() ? ` · ${e.key.trim()}` : ""}(${se[e.type] ?? e.type})` : "校验规则";
29085
29135
  });
29086
- function ce(e) {
29136
+ function le(e) {
29087
29137
  return e === "int" || e === "float";
29088
29138
  }
29089
- function le(e) {
29090
- Z.value = e, Object.keys($).forEach((e) => delete $[e]), Object.assign($, Yr(e.rules) ?? {}), X.value = !0;
29139
+ function ue(e) {
29140
+ Q.value = e, Object.keys($).forEach((e) => delete $[e]), Object.assign($, ei(e.rules) ?? {}), Z.value = !0;
29091
29141
  }
29092
- function ue() {
29093
- Z.value && Q.value?.validate().then(() => {
29094
- Z.value && (Z.value.rules = Yr($), X.value = !1, Z.value = null, K(), k());
29142
+ function de() {
29143
+ Q.value && ie.value?.validate().then(() => {
29144
+ Q.value && (Q.value.rules = ei($), Z.value = !1, Q.value = null, J(), M());
29095
29145
  }).catch(() => {});
29096
29146
  }
29097
- function de() {
29098
- X.value = !1, Z.value = null;
29147
+ function fe() {
29148
+ Z.value = !1, Q.value = null;
29099
29149
  }
29100
- function fe(e, t) {
29150
+ function pe(e, t) {
29101
29151
  return typeof e == "string" && typeof t == "string" ? e < t ? -1 : +(e > t) : Number(e) - Number(t);
29102
29152
  }
29103
- let pe = r(() => {
29153
+ let me = r(() => {
29104
29154
  let e = $.minLength ?? null, t = $.maxLength ?? null, n = $.min ?? null, r = $.max ?? null;
29105
29155
  return {
29106
29156
  minLength: [{ validator: (e, n) => n != null && t != null && n > t ? Promise.reject(/* @__PURE__ */ Error("最短长度不能大于最大长度")) : Promise.resolve() }],
@@ -29113,36 +29163,36 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29113
29163
  }
29114
29164
  return Promise.resolve();
29115
29165
  } }],
29116
- min: [{ validator: (e, t) => t != null && r != null && fe(t, r) > 0 ? Promise.reject(/* @__PURE__ */ Error("最小值不能大于最大值")) : Promise.resolve() }],
29117
- max: [{ validator: (e, t) => t != null && n != null && fe(t, n) < 0 ? Promise.reject(/* @__PURE__ */ Error("最大值不能小于最小值")) : Promise.resolve() }]
29166
+ min: [{ validator: (e, t) => t != null && r != null && pe(t, r) > 0 ? Promise.reject(/* @__PURE__ */ Error("最小值不能大于最大值")) : Promise.resolve() }],
29167
+ max: [{ validator: (e, t) => t != null && n != null && pe(t, n) < 0 ? Promise.reject(/* @__PURE__ */ Error("最大值不能小于最小值")) : Promise.resolve() }]
29118
29168
  };
29119
- }), me = E(null), he = E(null);
29120
- function ge() {
29121
- me.value && (he.value = me.value.querySelector("tbody"));
29122
- }
29169
+ }), he = E(null), ge = E(null);
29123
29170
  function _e() {
29124
- he.value && (ve && we.destroy(), we.start(he.value), ve = !0);
29171
+ he.value && (ge.value = he.value.querySelector("tbody"));
29172
+ }
29173
+ function ve() {
29174
+ ge.value && (ye && Te.destroy(), Te.start(ge.value), ye = !0);
29125
29175
  }
29126
- let ve = !1;
29176
+ let ye = !1;
29127
29177
  x(async () => {
29128
- await g(), ge(), _e();
29129
- }), R(M, async (e) => {
29130
- !e || !c.modalMode || (await g(), ge(), _e());
29178
+ await g(), _e(), ve();
29179
+ }), R(N, async (e) => {
29180
+ !e || !c.modalMode || (await g(), _e(), ve());
29131
29181
  });
29132
- let ye = E(null);
29133
- function be() {
29134
- ye.value && (ye.value.style.display = "none");
29182
+ let be = E(null);
29183
+ function xe() {
29184
+ be.value && (be.value.style.display = "none");
29135
29185
  }
29136
- function xe(e) {
29137
- let t = he.value, n = me.value, r = ye.value, i = e?.related, a = i instanceof Element ? i.closest("tr") : null;
29186
+ function Se(e) {
29187
+ let t = ge.value, n = he.value, r = be.value, i = e?.related, a = i instanceof Element ? i.closest("tr") : null;
29138
29188
  if (!t || !n || !r || !a || !t.contains(a)) {
29139
- be();
29189
+ xe();
29140
29190
  return;
29141
29191
  }
29142
29192
  let o = a.getBoundingClientRect(), s = n.getBoundingClientRect(), c = e.willInsertAfter ? o.bottom : o.top;
29143
29193
  r.style.top = `${c - s.top - 1}px`, r.style.left = "0px", r.style.width = `${n.clientWidth}px`, r.style.display = "block";
29144
29194
  }
29145
- function Se(e) {
29195
+ function Ce(e) {
29146
29196
  if (!e) return;
29147
29197
  let t = document.querySelector(".me-input-property__drag-fallback");
29148
29198
  if (!t) return;
@@ -29153,50 +29203,37 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29153
29203
  r[t].style.width = `${e.getBoundingClientRect().width}px`;
29154
29204
  });
29155
29205
  }
29156
- let Ce = T({
29206
+ let we = T({
29157
29207
  handle: ".me-input-property__drag",
29158
29208
  animation: 150,
29159
29209
  forceFallback: !0,
29160
29210
  fallbackOnBody: !0,
29161
29211
  fallbackClass: "me-input-property__drag-fallback",
29162
29212
  ghostClass: "me-input-property__row--ghost",
29163
- disabled: r(() => !S.value),
29213
+ disabled: r(() => !w.value),
29164
29214
  onStart: (e) => {
29165
- be(), Se(e.item);
29215
+ xe(), Ce(e.item);
29166
29216
  },
29167
- onMove: ((e) => (xe(e), !0)),
29217
+ onMove: ((e) => (Se(e), !0)),
29168
29218
  onEnd: () => {
29169
- be(), K(), k();
29219
+ xe(), J(), M();
29170
29220
  }
29171
- }), we = ie(he, p, {
29172
- ...Ce,
29221
+ }), Te = ae(ge, p, {
29222
+ ...we,
29173
29223
  immediate: !1
29174
29224
  });
29175
- return R(S, (e) => {
29176
- we.option("disabled", !e);
29225
+ return R(w, (e) => {
29226
+ Te.option("disabled", !e);
29177
29227
  }), (n, r) => {
29178
- let c = A("a-button"), d = A("a-input"), m = A("a-tooltip"), h = A("a-select"), g = A("a-input-number"), y = A("a-date-picker"), x = A("a-time-picker"), w = A("a-space-compact"), T = A("a-table"), E = A("a-checkbox"), D = A("a-form-item"), O = A("a-form");
29179
- return C(), i(j(t.modalMode ? P(Qt) : "div"), v(f(N.value)), {
29228
+ let c = A("a-button"), d = A("a-tooltip"), m = A("a-input"), h = A("a-select"), g = A("a-input-number"), y = A("a-date-picker"), b = A("a-time-picker"), x = A("a-space-compact"), T = A("a-table"), E = A("a-checkbox"), D = A("a-form-item"), O = A("a-form");
29229
+ return C(), i(j(t.modalMode ? P(Qt) : "div"), v(f(F.value)), {
29180
29230
  default: z(() => [s("div", {
29181
29231
  ref_key: "rootEl",
29182
- ref: me,
29232
+ ref: he,
29183
29233
  class: "me-input-property"
29184
29234
  }, [
29185
- s("div", ni, [u(c, {
29186
- size: "small",
29187
- class: "me-input-property__add-btn",
29188
- disabled: t.disabled,
29189
- onClick: te
29190
- }, {
29191
- icon: z(() => [u(P(Fe), {
29192
- name: "Plus",
29193
- size: 14
29194
- })]),
29195
- default: z(() => [r[12] ||= l(" 新增 ", -1)]),
29196
- _: 1
29197
- }, 8, ["disabled"])]),
29198
29235
  u(T, {
29199
- columns: b.value,
29236
+ columns: S.value,
29200
29237
  "data-source": p.value,
29201
29238
  "row-key": (e) => e.id,
29202
29239
  pagination: !1,
@@ -29204,7 +29241,27 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29204
29241
  locale: { emptyText: t.emptyText },
29205
29242
  class: "me-input-property__table"
29206
29243
  }, {
29207
- bodyCell: z(({ column: e, record: n }) => [e.key === "action" ? (C(), o("div", ri, [S.value ? (C(), o("span", ii, [u(P(Fe), {
29244
+ headerCell: z(({ column: e }) => [e.key === "action" ? (C(), i(d, {
29245
+ key: 0,
29246
+ title: "新增"
29247
+ }, {
29248
+ default: z(() => [u(c, {
29249
+ type: "primary",
29250
+ size: "small",
29251
+ shape: "circle",
29252
+ class: "me-input-property__add-btn",
29253
+ disabled: t.disabled,
29254
+ onClick: K
29255
+ }, {
29256
+ default: z(() => [u(P(Fe), {
29257
+ name: "Plus",
29258
+ size: 14
29259
+ })]),
29260
+ _: 1
29261
+ }, 8, ["disabled"])]),
29262
+ _: 1
29263
+ })) : a("", !0)]),
29264
+ bodyCell: z(({ column: e, record: n }) => [e.key === "action" ? (C(), o("div", si, [w.value ? (C(), o("span", ci, [u(P(Fe), {
29208
29265
  name: "GripVertical",
29209
29266
  size: 14
29210
29267
  })])) : a("", !0), u(c, {
@@ -29213,22 +29270,22 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29213
29270
  class: "me-input-property__del",
29214
29271
  disabled: t.disabled,
29215
29272
  title: "删除该属性",
29216
- onClick: (e) => G(n)
29273
+ onClick: (e) => q(n)
29217
29274
  }, {
29218
29275
  default: z(() => [u(P(Fe), {
29219
29276
  name: "Trash2",
29220
29277
  size: 14
29221
29278
  })]),
29222
29279
  _: 1
29223
- }, 8, ["disabled", "onClick"])])) : e.key === "key" ? (C(), i(m, {
29280
+ }, 8, ["disabled", "onClick"])])) : e.key === "key" ? (C(), i(d, {
29224
29281
  key: 1,
29225
- title: t.disabled ? "" : J(n.key),
29226
- visible: !t.disabled && Y(n)
29282
+ title: t.disabled ? "" : te(n.key),
29283
+ visible: !t.disabled && ne(n)
29227
29284
  }, {
29228
- default: z(() => [u(d, {
29285
+ default: z(() => [u(m, {
29229
29286
  value: n.key,
29230
- "onUpdate:value": [(e) => n.key = e, (e) => V(n)],
29231
- class: _(["me-input-property__key-input", { "me-input-property__field--error": !t.disabled && Y(n) }]),
29287
+ "onUpdate:value": [(e) => n.key = e, (e) => ee(n)],
29288
+ class: _(["me-input-property__key-input", { "me-input-property__field--error": !t.disabled && ne(n) }]),
29232
29289
  disabled: t.disabled,
29233
29290
  placeholder: t.keyPlaceholder
29234
29291
  }, null, 8, [
@@ -29239,31 +29296,31 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29239
29296
  "placeholder"
29240
29297
  ])]),
29241
29298
  _: 2
29242
- }, 1032, ["title", "visible"])) : e.key === "value" ? (C(), i(m, {
29299
+ }, 1032, ["title", "visible"])) : e.key === "value" ? (C(), i(d, {
29243
29300
  key: 2,
29244
- title: ne(n),
29245
- visible: !!ne(n)
29301
+ title: re(n),
29302
+ visible: !!re(n)
29246
29303
  }, {
29247
- default: z(() => [u(w, {
29304
+ default: z(() => [u(x, {
29248
29305
  block: !0,
29249
- class: _(["me-input-property__value", { "me-input-property__field--error": !!ne(n) }])
29306
+ class: _(["me-input-property__value", { "me-input-property__field--error": !!re(n) }])
29250
29307
  }, {
29251
29308
  default: z(() => [t.showType ? (C(), i(h, {
29252
29309
  key: 0,
29253
29310
  value: n.type,
29254
29311
  disabled: t.disabled,
29255
- options: P(Er),
29312
+ options: P(jr),
29256
29313
  class: "me-input-property__value-type",
29257
- onChange: (e) => U(n, e)
29314
+ onChange: (e) => W(n, e)
29258
29315
  }, null, 8, [
29259
29316
  "value",
29260
29317
  "disabled",
29261
29318
  "options",
29262
29319
  "onChange"
29263
- ])) : a("", !0), n.type === "string" ? (C(), i(d, {
29320
+ ])) : a("", !0), n.type === "string" ? (C(), i(m, {
29264
29321
  key: 1,
29265
29322
  value: n.value,
29266
- "onUpdate:value": [(e) => n.value = e, (e) => ee(n)],
29323
+ "onUpdate:value": [(e) => n.value = e, (e) => U(n)],
29267
29324
  class: "me-input-property__value-editor",
29268
29325
  disabled: t.disabled,
29269
29326
  placeholder: t.valuePlaceholder
@@ -29275,7 +29332,7 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29275
29332
  ])) : n.type === "int" ? (C(), i(g, {
29276
29333
  key: 2,
29277
29334
  value: n.value,
29278
- "onUpdate:value": [(e) => n.value = e, (e) => ee(n)],
29335
+ "onUpdate:value": [(e) => n.value = e, (e) => U(n)],
29279
29336
  class: "me-input-property__value-editor",
29280
29337
  disabled: t.disabled,
29281
29338
  placeholder: t.valuePlaceholder
@@ -29287,7 +29344,7 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29287
29344
  ])) : n.type === "float" ? (C(), i(g, {
29288
29345
  key: 3,
29289
29346
  value: n.value,
29290
- "onUpdate:value": [(e) => n.value = e, (e) => ee(n)],
29347
+ "onUpdate:value": [(e) => n.value = e, (e) => U(n)],
29291
29348
  class: "me-input-property__value-editor",
29292
29349
  disabled: t.disabled,
29293
29350
  placeholder: t.valuePlaceholder,
@@ -29301,21 +29358,21 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29301
29358
  ])) : n.type === "date" ? (C(), i(y, {
29302
29359
  key: 4,
29303
29360
  value: n.value,
29304
- "onUpdate:value": [(e) => n.value = e, (e) => ee(n)],
29361
+ "onUpdate:value": [(e) => n.value = e, (e) => U(n)],
29305
29362
  class: "me-input-property__value-editor",
29306
- "value-format": P(Or),
29363
+ "value-format": P(Nr),
29307
29364
  disabled: t.disabled
29308
29365
  }, null, 8, [
29309
29366
  "value",
29310
29367
  "onUpdate:value",
29311
29368
  "value-format",
29312
29369
  "disabled"
29313
- ])) : n.type === "time" ? (C(), i(x, {
29370
+ ])) : n.type === "time" ? (C(), i(b, {
29314
29371
  key: 5,
29315
29372
  value: n.value,
29316
- "onUpdate:value": [(e) => n.value = e, (e) => ee(n)],
29373
+ "onUpdate:value": [(e) => n.value = e, (e) => U(n)],
29317
29374
  class: "me-input-property__value-editor",
29318
- "value-format": P(kr),
29375
+ "value-format": P(Pr),
29319
29376
  disabled: t.disabled
29320
29377
  }, null, 8, [
29321
29378
  "value",
@@ -29327,8 +29384,8 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29327
29384
  value: n.value,
29328
29385
  class: "me-input-property__value-editor",
29329
29386
  disabled: t.disabled,
29330
- options: P(Ar),
29331
- onChange: (e) => W(n, e)
29387
+ options: P(Fr),
29388
+ onChange: (e) => G(n, e)
29332
29389
  }, null, 8, [
29333
29390
  "value",
29334
29391
  "disabled",
@@ -29338,16 +29395,16 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29338
29395
  _: 2
29339
29396
  }, 1032, ["class"])]),
29340
29397
  _: 2
29341
- }, 1032, ["title", "visible"])) : e.key === "rules" ? (C(), i(m, {
29398
+ }, 1032, ["title", "visible"])) : e.key === "rules" ? (C(), i(d, {
29342
29399
  key: 3,
29343
29400
  title: "配置校验规则"
29344
29401
  }, {
29345
29402
  default: z(() => [u(c, {
29346
29403
  type: "text",
29347
29404
  size: "small",
29348
- class: _(["me-input-property__rules-btn", { "is-active": re(n) }]),
29405
+ class: _(["me-input-property__rules-btn", { "is-active": X(n) }]),
29349
29406
  disabled: t.disabled,
29350
- onClick: (e) => le(n)
29407
+ onClick: (e) => ue(n)
29351
29408
  }, {
29352
29409
  default: z(() => [u(P(Fe), {
29353
29410
  name: "WandSparkles",
@@ -29370,21 +29427,21 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29370
29427
  "locale"
29371
29428
  ]),
29372
29429
  u(P(Qt), {
29373
- open: X.value,
29374
- "onUpdate:open": r[11] ||= (e) => X.value = e,
29430
+ open: Z.value,
29431
+ "onUpdate:open": r[11] ||= (e) => Z.value = e,
29375
29432
  width: 480,
29376
29433
  fullscreen: !1,
29377
- title: se.value,
29434
+ title: ce.value,
29378
29435
  "ok-text": "保存",
29379
29436
  "cancel-text": "取消",
29380
- onOk: ue,
29381
- onCancel: de
29437
+ onOk: de,
29438
+ onCancel: fe
29382
29439
  }, {
29383
29440
  default: z(() => [u(O, {
29384
29441
  ref_key: "ruleFormRef",
29385
- ref: Q,
29442
+ ref: ie,
29386
29443
  model: $,
29387
- rules: pe.value,
29444
+ rules: me.value,
29388
29445
  layout: "vertical",
29389
29446
  class: "me-input-property__rule-form"
29390
29447
  }, {
@@ -29394,12 +29451,12 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29394
29451
  checked: $.required,
29395
29452
  "onUpdate:checked": r[0] ||= (e) => $.required = e
29396
29453
  }, {
29397
- default: z(() => [...r[13] ||= [l("必填(值不能为空)", -1)]]),
29454
+ default: z(() => [...r[12] ||= [l("必填(值不能为空)", -1)]]),
29398
29455
  _: 1
29399
29456
  }, 8, ["checked"])]),
29400
29457
  _: 1
29401
29458
  }),
29402
- ae.value === "string" ? (C(), o(e, { key: 0 }, [
29459
+ oe.value === "string" ? (C(), o(e, { key: 0 }, [
29403
29460
  u(D, {
29404
29461
  name: "minLength",
29405
29462
  label: "最短长度"
@@ -29433,7 +29490,7 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29433
29490
  label: "正则模式",
29434
29491
  extra: "校验值格式,如 ^[a-zA-Z0-9]+$"
29435
29492
  }, {
29436
- default: z(() => [u(d, {
29493
+ default: z(() => [u(m, {
29437
29494
  value: $.pattern,
29438
29495
  "onUpdate:value": r[3] ||= (e) => $.pattern = e,
29439
29496
  placeholder: "如 ^[a-zA-Z0-9]+$",
@@ -29442,14 +29499,14 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29442
29499
  _: 1
29443
29500
  })
29444
29501
  ], 64)) : a("", !0),
29445
- ce(ae.value) ? (C(), o(e, { key: 1 }, [u(D, {
29502
+ le(oe.value) ? (C(), o(e, { key: 1 }, [u(D, {
29446
29503
  name: "min",
29447
29504
  label: "最小值"
29448
29505
  }, {
29449
29506
  default: z(() => [u(g, {
29450
29507
  value: $.min,
29451
29508
  "onUpdate:value": r[4] ||= (e) => $.min = e,
29452
- precision: ae.value === "float" ? P(2) : 0,
29509
+ precision: oe.value === "float" ? P(2) : 0,
29453
29510
  placeholder: "不限",
29454
29511
  class: "me-input-property__rule-input"
29455
29512
  }, null, 8, ["value", "precision"])]),
@@ -29461,27 +29518,27 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29461
29518
  default: z(() => [u(g, {
29462
29519
  value: $.max,
29463
29520
  "onUpdate:value": r[5] ||= (e) => $.max = e,
29464
- precision: ae.value === "float" ? P(2) : 0,
29521
+ precision: oe.value === "float" ? P(2) : 0,
29465
29522
  placeholder: "不限",
29466
29523
  class: "me-input-property__rule-input"
29467
29524
  }, null, 8, ["value", "precision"])]),
29468
29525
  _: 1
29469
29526
  })], 64)) : a("", !0),
29470
- ae.value === "date" || ae.value === "time" ? (C(), o(e, { key: 2 }, [u(D, {
29527
+ oe.value === "date" || oe.value === "time" ? (C(), o(e, { key: 2 }, [u(D, {
29471
29528
  name: "min",
29472
29529
  label: "最早边界"
29473
29530
  }, {
29474
- default: z(() => [ae.value === "date" ? (C(), i(y, {
29531
+ default: z(() => [oe.value === "date" ? (C(), i(y, {
29475
29532
  key: 0,
29476
29533
  value: $.min,
29477
29534
  "onUpdate:value": r[6] ||= (e) => $.min = e,
29478
- "value-format": P(Or),
29535
+ "value-format": P(Nr),
29479
29536
  style: { width: "100%" }
29480
- }, null, 8, ["value", "value-format"])) : (C(), i(x, {
29537
+ }, null, 8, ["value", "value-format"])) : (C(), i(b, {
29481
29538
  key: 1,
29482
29539
  value: $.min,
29483
29540
  "onUpdate:value": r[7] ||= (e) => $.min = e,
29484
- "value-format": P(kr),
29541
+ "value-format": P(Pr),
29485
29542
  style: { width: "100%" }
29486
29543
  }, null, 8, ["value", "value-format"]))]),
29487
29544
  _: 1
@@ -29489,17 +29546,17 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29489
29546
  name: "max",
29490
29547
  label: "最晚边界"
29491
29548
  }, {
29492
- default: z(() => [ae.value === "date" ? (C(), i(y, {
29549
+ default: z(() => [oe.value === "date" ? (C(), i(y, {
29493
29550
  key: 0,
29494
29551
  value: $.max,
29495
29552
  "onUpdate:value": r[8] ||= (e) => $.max = e,
29496
- "value-format": P(Or),
29553
+ "value-format": P(Nr),
29497
29554
  style: { width: "100%" }
29498
- }, null, 8, ["value", "value-format"])) : (C(), i(x, {
29555
+ }, null, 8, ["value", "value-format"])) : (C(), i(b, {
29499
29556
  key: 1,
29500
29557
  value: $.max,
29501
29558
  "onUpdate:value": r[9] ||= (e) => $.max = e,
29502
- "value-format": P(kr),
29559
+ "value-format": P(Pr),
29503
29560
  style: { width: "100%" }
29504
29561
  }, null, 8, ["value", "value-format"]))]),
29505
29562
  _: 1
@@ -29509,7 +29566,7 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29509
29566
  label: "自定义错误提示",
29510
29567
  extra: "可选,覆盖所有校验规则的默认提示文案"
29511
29568
  }, {
29512
- default: z(() => [u(d, {
29569
+ default: z(() => [u(m, {
29513
29570
  value: $.message,
29514
29571
  "onUpdate:value": r[10] ||= (e) => $.message = e,
29515
29572
  placeholder: "如:该属性不合法",
@@ -29524,7 +29581,7 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29524
29581
  }, 8, ["open", "title"]),
29525
29582
  s("div", {
29526
29583
  ref_key: "dropLineEl",
29527
- ref: ye,
29584
+ ref: be,
29528
29585
  class: "me-input-property__drop-line"
29529
29586
  }, null, 512)
29530
29587
  ], 512)]),
@@ -29535,10 +29592,174 @@ var ni = { class: "me-input-property__toolbar" }, ri = {
29535
29592
  });
29536
29593
  //#endregion
29537
29594
  //#region src/components/input-property/index.ts
29538
- ai.install = (e) => {
29539
- e.component("MeInputProperty", ai);
29595
+ li.install = (e) => {
29596
+ e.component("MeInputProperty", li);
29597
+ };
29598
+ var ui = li, di = /* @__PURE__ */ d({
29599
+ name: "MeInputNumber",
29600
+ __name: "index",
29601
+ props: {
29602
+ modelValue: {},
29603
+ precision: { default: void 0 },
29604
+ finance: {
29605
+ type: Boolean,
29606
+ default: !1
29607
+ },
29608
+ thousands: {
29609
+ type: Boolean,
29610
+ default: void 0
29611
+ },
29612
+ thousandsSeparator: { default: "," },
29613
+ decimalSeparator: { default: "." },
29614
+ prefix: { default: "" },
29615
+ suffix: { default: "" },
29616
+ min: { default: void 0 },
29617
+ max: { default: void 0 },
29618
+ step: { default: void 0 },
29619
+ disabled: {
29620
+ type: Boolean,
29621
+ default: !1
29622
+ },
29623
+ readonly: {
29624
+ type: Boolean,
29625
+ default: !1
29626
+ },
29627
+ size: { default: "middle" },
29628
+ variant: { default: "outlined" },
29629
+ status: { default: "" },
29630
+ controls: {
29631
+ type: [Boolean, Object],
29632
+ default: !0
29633
+ },
29634
+ placeholder: { default: "" },
29635
+ allowNull: {
29636
+ type: Boolean,
29637
+ default: !0
29638
+ },
29639
+ autoFixOnBlur: {
29640
+ type: Boolean,
29641
+ default: !0
29642
+ }
29643
+ },
29644
+ emits: [
29645
+ "update:modelValue",
29646
+ "change",
29647
+ "focus",
29648
+ "blur",
29649
+ "pressEnter",
29650
+ "input"
29651
+ ],
29652
+ setup(e, { expose: t, emit: n }) {
29653
+ let a = e, o = n, s = r(() => a.finance || a.thousands === !0), c = r(() => a.precision === void 0 ? a.finance ? 2 : 0 : a.precision), l = r(() => a.thousands === void 0 ? a.finance : a.thousands), u = r(() => c.value > 15 || typeof a.min == "string" || typeof a.max == "string"), d = E(a.modelValue);
29654
+ R(() => a.modelValue, (e) => {
29655
+ d.value = e;
29656
+ });
29657
+ let f = r(() => a.step === void 0 ? c.value <= 0 ? 1 : Number(`1e-${c.value}`) : a.step), p = (e) => {
29658
+ if (e == null || e === "") return "";
29659
+ let t = String(e), n = a.decimalSeparator, r = a.thousandsSeparator, [i, o] = t.split("."), s = "", c = i;
29660
+ i.startsWith("-") && (s = "-", c = i.slice(1));
29661
+ let u = c;
29662
+ l.value && r && (u = c.replace(/\B(?=(\d{3})+(?!\d))/g, r));
29663
+ let d = s + u;
29664
+ return o !== void 0 && (d += n + o), a.prefix && (d = a.prefix + d), a.suffix && (d += a.suffix), d;
29665
+ }, m = (e) => {
29666
+ if (!e) return 0;
29667
+ let t = e;
29668
+ if (a.prefix && t.startsWith(a.prefix) && (t = t.slice(a.prefix.length)), a.suffix && t.endsWith(a.suffix) && (t = t.slice(0, -a.suffix.length)), l.value && a.thousandsSeparator) {
29669
+ let e = new RegExp(a.thousandsSeparator.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g");
29670
+ t = t.replace(e, "");
29671
+ }
29672
+ if (a.decimalSeparator && a.decimalSeparator !== ".") {
29673
+ let e = new RegExp(a.decimalSeparator.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g");
29674
+ t = t.replace(e, ".");
29675
+ }
29676
+ t = t.replace(/[^\d.\-]/g, "");
29677
+ let n = t.indexOf("-");
29678
+ n > 0 && (t = t.slice(0, n));
29679
+ let r = t.indexOf(".");
29680
+ return r >= 0 && (t = t.slice(0, r + 1) + t.slice(r + 1).replace(/\./g, "")), t === "" || t === "-" ? 0 : u.value ? t : Number(t);
29681
+ }, g = (e) => {
29682
+ if (e == null || e === "") return a.allowNull ? null : 0;
29683
+ let t = String(e);
29684
+ if (t === "-" || t === ".") return a.allowNull ? null : 0;
29685
+ let n = Number(t);
29686
+ if (isNaN(n)) return a.allowNull ? null : 0;
29687
+ if (c.value <= 0) {
29688
+ let e = Math.round(n);
29689
+ return u.value ? String(e) : e;
29690
+ }
29691
+ let r = 10 ** c.value, i = Math.round(n * r) / r;
29692
+ if (u.value || s.value) {
29693
+ let e = i.toFixed(c.value);
29694
+ return u.value ? e : Number(e);
29695
+ }
29696
+ return i;
29697
+ }, _ = (e) => {
29698
+ o("update:modelValue", e), o("change", e);
29699
+ }, v = (e) => {
29700
+ o("focus", e);
29701
+ }, y = (e) => {
29702
+ if (a.autoFixOnBlur) {
29703
+ let e = g(d.value);
29704
+ e !== d.value && (d.value = e, o("update:modelValue", e), o("change", e));
29705
+ }
29706
+ o("blur", e);
29707
+ }, b = (e) => {
29708
+ o("pressEnter", e);
29709
+ }, x = (e) => {
29710
+ o("input", e);
29711
+ };
29712
+ return t({ fixPrecision: () => g(d.value) }), (e, t) => {
29713
+ let n = A("a-input-number");
29714
+ return C(), i(n, h({
29715
+ value: d.value,
29716
+ "onUpdate:value": t[0] ||= (e) => d.value = e,
29717
+ class: ["me-input-number", {
29718
+ "me-input-number--disabled": a.disabled,
29719
+ "me-input-number--finance": s.value
29720
+ }],
29721
+ min: a.min,
29722
+ max: a.max,
29723
+ step: f.value,
29724
+ disabled: a.disabled,
29725
+ readonly: a.readonly,
29726
+ size: a.size,
29727
+ variant: a.variant,
29728
+ status: a.status,
29729
+ controls: a.controls,
29730
+ placeholder: a.placeholder,
29731
+ formatter: p,
29732
+ parser: m,
29733
+ "string-mode": u.value,
29734
+ onChange: _,
29735
+ onFocus: v,
29736
+ onBlur: y,
29737
+ onPressEnter: b,
29738
+ onInput: x
29739
+ }, e.$attrs), null, 16, [
29740
+ "value",
29741
+ "class",
29742
+ "min",
29743
+ "max",
29744
+ "step",
29745
+ "disabled",
29746
+ "readonly",
29747
+ "size",
29748
+ "variant",
29749
+ "status",
29750
+ "controls",
29751
+ "placeholder",
29752
+ "string-mode"
29753
+ ]);
29754
+ };
29755
+ }
29756
+ });
29757
+ //#endregion
29758
+ //#region src/components/input-number/index.ts
29759
+ di.install = (e) => {
29760
+ e.component("MeInputNumber", di);
29540
29761
  };
29541
- var oi = ai, si = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
29762
+ var fi = di, pi = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
29542
29763
  function n(e) {
29543
29764
  return e instanceof Map ? e.clear = e.delete = e.set = function() {
29544
29765
  throw Error("map is read-only");
@@ -29834,10 +30055,10 @@ var oi = ai, si = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
29834
30055
  e.begin = e.match, delete e.match;
29835
30056
  }
29836
30057
  }
29837
- function te(e, t) {
30058
+ function G(e, t) {
29838
30059
  e.relevance === void 0 && (e.relevance = 1);
29839
30060
  }
29840
- var G = (e, t) => {
30061
+ var K = (e, t) => {
29841
30062
  if (!e.beforeMatch) return;
29842
30063
  if (e.starts) throw Error("beforeMatch cannot be used with starts");
29843
30064
  let n = Object.assign({}, e);
@@ -29847,7 +30068,7 @@ var oi = ai, si = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
29847
30068
  relevance: 0,
29848
30069
  contains: [Object.assign(n, { endsParent: !0 })]
29849
30070
  }, e.relevance = 0, delete n.beforeMatch;
29850
- }, K = [
30071
+ }, q = [
29851
30072
  "of",
29852
30073
  "and",
29853
30074
  "for",
@@ -29859,24 +30080,24 @@ var oi = ai, si = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
29859
30080
  "parent",
29860
30081
  "list",
29861
30082
  "value"
29862
- ], q = "keyword";
29863
- function J(e, t, n = q) {
30083
+ ], J = "keyword";
30084
+ function Y(e, t, n = J) {
29864
30085
  let r = Object.create(null);
29865
30086
  return typeof e == "string" ? i(n, e.split(" ")) : Array.isArray(e) ? i(n, e) : Object.keys(e).forEach(function(n) {
29866
- Object.assign(r, J(e[n], t, n));
30087
+ Object.assign(r, Y(e[n], t, n));
29867
30088
  }), r;
29868
30089
  function i(e, n) {
29869
30090
  t && (n = n.map((e) => e.toLowerCase())), n.forEach(function(t) {
29870
30091
  let n = t.split("|");
29871
- r[n[0]] = [e, Y(n[0], n[1])];
30092
+ r[n[0]] = [e, te(n[0], n[1])];
29872
30093
  });
29873
30094
  }
29874
30095
  }
29875
- function Y(e, t) {
30096
+ function te(e, t) {
29876
30097
  return t ? Number(t) : +!ne(e);
29877
30098
  }
29878
30099
  function ne(e) {
29879
- return K.includes(e.toLowerCase());
30100
+ return q.includes(e.toLowerCase());
29880
30101
  }
29881
30102
  var re = {}, X = (e) => {
29882
30103
  console.error(e);
@@ -29884,31 +30105,31 @@ var oi = ai, si = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
29884
30105
  console.log(`WARN: ${e}`, ...t);
29885
30106
  }, Q = (e, t) => {
29886
30107
  re[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), re[`${e}/${t}`] = !0);
29887
- }, $ = /* @__PURE__ */ Error();
29888
- function ie(e, t, { key: n }) {
30108
+ }, ie = /* @__PURE__ */ Error();
30109
+ function ae(e, t, { key: n }) {
29889
30110
  let r = 0, i = e[n], a = {}, o = {};
29890
30111
  for (let e = 1; e <= t.length; e++) o[e + r] = i[e], a[e + r] = !0, r += b(t[e - 1]);
29891
30112
  e[n] = o, e[n]._emit = a, e[n]._multi = !0;
29892
30113
  }
29893
- function ae(e) {
30114
+ function $(e) {
29894
30115
  if (Array.isArray(e.begin)) {
29895
- if (e.skip || e.excludeBegin || e.returnBegin) throw X("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), $;
29896
- if (typeof e.beginScope != "object" || e.beginScope === null) throw X("beginScope must be object"), $;
29897
- ie(e, e.begin, { key: "beginScope" }), e.begin = C(e.begin, { joinWith: "" });
30116
+ if (e.skip || e.excludeBegin || e.returnBegin) throw X("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), ie;
30117
+ if (typeof e.beginScope != "object" || e.beginScope === null) throw X("beginScope must be object"), ie;
30118
+ ae(e, e.begin, { key: "beginScope" }), e.begin = C(e.begin, { joinWith: "" });
29898
30119
  }
29899
30120
  }
29900
30121
  function oe(e) {
29901
30122
  if (Array.isArray(e.end)) {
29902
- if (e.skip || e.excludeEnd || e.returnEnd) throw X("skip, excludeEnd, returnEnd not compatible with endScope: {}"), $;
29903
- if (typeof e.endScope != "object" || e.endScope === null) throw X("endScope must be object"), $;
29904
- ie(e, e.end, { key: "endScope" }), e.end = C(e.end, { joinWith: "" });
30123
+ if (e.skip || e.excludeEnd || e.returnEnd) throw X("skip, excludeEnd, returnEnd not compatible with endScope: {}"), ie;
30124
+ if (typeof e.endScope != "object" || e.endScope === null) throw X("endScope must be object"), ie;
30125
+ ae(e, e.end, { key: "endScope" }), e.end = C(e.end, { joinWith: "" });
29905
30126
  }
29906
30127
  }
29907
30128
  function se(e) {
29908
30129
  e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
29909
30130
  }
29910
30131
  function ce(e) {
29911
- se(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), ae(e), oe(e);
30132
+ se(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), $(e), oe(e);
29912
30133
  }
29913
30134
  function le(e) {
29914
30135
  function t(t, n) {
@@ -29977,14 +30198,14 @@ var oi = ai, si = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
29977
30198
  H,
29978
30199
  W,
29979
30200
  ce,
29980
- G
30201
+ K
29981
30202
  ].forEach((e) => e(n, r)), e.compilerExtensions.forEach((e) => e(n, r)), n.__beforeBegin = null, [
29982
30203
  ee,
29983
30204
  U,
29984
- te
30205
+ G
29985
30206
  ].forEach((e) => e(n, r)), n.isCompiled = !0;
29986
30207
  let s = null;
29987
- return typeof n.keywords == "object" && n.keywords.$pattern && (n.keywords = Object.assign({}, n.keywords), s = n.keywords.$pattern, delete n.keywords.$pattern), s ||= /\w+/, n.keywords &&= J(n.keywords, e.case_insensitive), a.keywordPatternRe = t(s, !0), r && (n.begin ||= /\B|\b/, a.beginRe = t(a.begin), !n.end && !n.endsWithParent && (n.end = /\B|\b/), n.end && (a.endRe = t(a.end)), a.terminatorEnd = p(a.end) || "", n.endsWithParent && r.terminatorEnd && (a.terminatorEnd += (n.end ? "|" : "") + r.terminatorEnd)), n.illegal && (a.illegalRe = t(n.illegal)), n.contains ||= [], n.contains = [].concat(...n.contains.map(function(e) {
30208
+ return typeof n.keywords == "object" && n.keywords.$pattern && (n.keywords = Object.assign({}, n.keywords), s = n.keywords.$pattern, delete n.keywords.$pattern), s ||= /\w+/, n.keywords &&= Y(n.keywords, e.case_insensitive), a.keywordPatternRe = t(s, !0), r && (n.begin ||= /\B|\b/, a.beginRe = t(a.begin), !n.end && !n.endsWithParent && (n.end = /\B|\b/), n.end && (a.endRe = t(a.end)), a.terminatorEnd = p(a.end) || "", n.endsWithParent && r.terminatorEnd && (a.terminatorEnd += (n.end ? "|" : "") + r.terminatorEnd)), n.illegal && (a.illegalRe = t(n.illegal)), n.contains ||= [], n.contains = [].concat(...n.contains.map(function(e) {
29988
30209
  return de(e === "self" ? n : e);
29989
30210
  })), n.contains.forEach(function(e) {
29990
30211
  o(e, a);
@@ -30380,14 +30601,14 @@ var oi = ai, si = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
30380
30601
  return Object.assign(e, B), e;
30381
30602
  }, ye = ve({});
30382
30603
  ye.newInstance = () => ve({}), t.exports = ye, ye.HighlightJS = ye, ye.default = ye;
30383
- })))())).default, ci = "[A-Za-z$_][0-9A-Za-z$_]*", li = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), ui = [
30604
+ })))())).default, mi = "[A-Za-z$_][0-9A-Za-z$_]*", hi = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), gi = [
30384
30605
  "true",
30385
30606
  "false",
30386
30607
  "null",
30387
30608
  "undefined",
30388
30609
  "NaN",
30389
30610
  "Infinity"
30390
- ], di = /* @__PURE__ */ "Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly".split("."), fi = [
30611
+ ], _i = /* @__PURE__ */ "Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly".split("."), vi = [
30391
30612
  "Error",
30392
30613
  "EvalError",
30393
30614
  "InternalError",
@@ -30396,7 +30617,7 @@ var oi = ai, si = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
30396
30617
  "SyntaxError",
30397
30618
  "TypeError",
30398
30619
  "URIError"
30399
- ], pi = [
30620
+ ], yi = [
30400
30621
  "setInterval",
30401
30622
  "setTimeout",
30402
30623
  "clearInterval",
@@ -30414,7 +30635,7 @@ var oi = ai, si = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
30414
30635
  "encodeURIComponent",
30415
30636
  "escape",
30416
30637
  "unescape"
30417
- ], mi = [
30638
+ ], bi = [
30418
30639
  "arguments",
30419
30640
  "this",
30420
30641
  "super",
@@ -30426,12 +30647,12 @@ var oi = ai, si = (/* @__PURE__ */ me((/* @__PURE__ */ fe(((e, t) => {
30426
30647
  "module",
30427
30648
  "self",
30428
30649
  "global"
30429
- ], hi = [].concat(pi, di, fi);
30430
- function gi(e) {
30650
+ ], xi = [].concat(yi, _i, vi);
30651
+ function Si(e) {
30431
30652
  let t = e.regex, n = (e, { after: t }) => {
30432
30653
  let n = "</" + e[0].slice(1);
30433
30654
  return e.input.indexOf(n, t) !== -1;
30434
- }, r = ci, i = {
30655
+ }, r = mi, i = {
30435
30656
  begin: "<>",
30436
30657
  end: "</>"
30437
30658
  }, a = /<[A-Za-z0-9\\._:-]+\s*\/>/, o = {
@@ -30455,11 +30676,11 @@ function gi(e) {
30455
30676
  }
30456
30677
  }
30457
30678
  }, s = {
30458
- $pattern: ci,
30459
- keyword: li,
30460
- literal: ui,
30461
- built_in: hi,
30462
- "variable.language": mi
30679
+ $pattern: mi,
30680
+ keyword: hi,
30681
+ literal: gi,
30682
+ built_in: xi,
30683
+ "variable.language": bi
30463
30684
  }, c = "[0-9](_?[0-9])*", l = `\\.(${c})`, u = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = {
30464
30685
  className: "number",
30465
30686
  variants: [
@@ -30606,7 +30827,7 @@ function gi(e) {
30606
30827
  relevance: 0,
30607
30828
  match: t.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
30608
30829
  className: "title.class",
30609
- keywords: { _: [...di, ...fi] }
30830
+ keywords: { _: [..._i, ...vi] }
30610
30831
  }, w = {
30611
30832
  label: "use_strict",
30612
30833
  className: "meta",
@@ -30636,7 +30857,7 @@ function gi(e) {
30636
30857
  }
30637
30858
  let O = {
30638
30859
  match: t.concat(/\b/, D([
30639
- ...pi,
30860
+ ...yi,
30640
30861
  "super",
30641
30862
  "import",
30642
30863
  "await"
@@ -30815,8 +31036,8 @@ function gi(e) {
30815
31036
  ]
30816
31037
  };
30817
31038
  }
30818
- function _i(e) {
30819
- let t = e.regex, n = gi(e), r = ci, i = [
31039
+ function Ci(e) {
31040
+ let t = e.regex, n = Si(e), r = mi, i = [
30820
31041
  "any",
30821
31042
  "void",
30822
31043
  "number",
@@ -30851,8 +31072,8 @@ function _i(e) {
30851
31072
  relevance: 10,
30852
31073
  begin: /^\s*['"]use strict['"]/
30853
31074
  }, c = {
30854
- $pattern: ci,
30855
- keyword: li.concat([
31075
+ $pattern: mi,
31076
+ keyword: hi.concat([
30856
31077
  "type",
30857
31078
  "interface",
30858
31079
  "public",
@@ -30866,9 +31087,9 @@ function _i(e) {
30866
31087
  "override",
30867
31088
  "satisfies"
30868
31089
  ]),
30869
- literal: ui,
30870
- built_in: hi.concat(i),
30871
- "variable.language": mi
31090
+ literal: gi,
31091
+ built_in: xi.concat(i),
31092
+ "variable.language": bi
30872
31093
  }, l = {
30873
31094
  className: "meta",
30874
31095
  begin: "@" + r
@@ -30902,14 +31123,14 @@ function _i(e) {
30902
31123
  }
30903
31124
  //#endregion
30904
31125
  //#region node_modules/highlight.js/es/languages/javascript.js
30905
- var vi = "[A-Za-z$_][0-9A-Za-z$_]*", yi = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), bi = [
31126
+ var wi = "[A-Za-z$_][0-9A-Za-z$_]*", Ti = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), Ei = [
30906
31127
  "true",
30907
31128
  "false",
30908
31129
  "null",
30909
31130
  "undefined",
30910
31131
  "NaN",
30911
31132
  "Infinity"
30912
- ], xi = /* @__PURE__ */ "Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly".split("."), Si = [
31133
+ ], Di = /* @__PURE__ */ "Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly".split("."), Oi = [
30913
31134
  "Error",
30914
31135
  "EvalError",
30915
31136
  "InternalError",
@@ -30918,7 +31139,7 @@ var vi = "[A-Za-z$_][0-9A-Za-z$_]*", yi = /* @__PURE__ */ "as.in.of.if.for.while
30918
31139
  "SyntaxError",
30919
31140
  "TypeError",
30920
31141
  "URIError"
30921
- ], Ci = [
31142
+ ], ki = [
30922
31143
  "setInterval",
30923
31144
  "setTimeout",
30924
31145
  "clearInterval",
@@ -30936,7 +31157,7 @@ var vi = "[A-Za-z$_][0-9A-Za-z$_]*", yi = /* @__PURE__ */ "as.in.of.if.for.while
30936
31157
  "encodeURIComponent",
30937
31158
  "escape",
30938
31159
  "unescape"
30939
- ], wi = [
31160
+ ], Ai = [
30940
31161
  "arguments",
30941
31162
  "this",
30942
31163
  "super",
@@ -30948,12 +31169,12 @@ var vi = "[A-Za-z$_][0-9A-Za-z$_]*", yi = /* @__PURE__ */ "as.in.of.if.for.while
30948
31169
  "module",
30949
31170
  "self",
30950
31171
  "global"
30951
- ], Ti = [].concat(Ci, xi, Si);
30952
- function Ei(e) {
31172
+ ], ji = [].concat(ki, Di, Oi);
31173
+ function Mi(e) {
30953
31174
  let t = e.regex, n = (e, { after: t }) => {
30954
31175
  let n = "</" + e[0].slice(1);
30955
31176
  return e.input.indexOf(n, t) !== -1;
30956
- }, r = vi, i = {
31177
+ }, r = wi, i = {
30957
31178
  begin: "<>",
30958
31179
  end: "</>"
30959
31180
  }, a = /<[A-Za-z0-9\\._:-]+\s*\/>/, o = {
@@ -30977,11 +31198,11 @@ function Ei(e) {
30977
31198
  }
30978
31199
  }
30979
31200
  }, s = {
30980
- $pattern: vi,
30981
- keyword: yi,
30982
- literal: bi,
30983
- built_in: Ti,
30984
- "variable.language": wi
31201
+ $pattern: wi,
31202
+ keyword: Ti,
31203
+ literal: Ei,
31204
+ built_in: ji,
31205
+ "variable.language": Ai
30985
31206
  }, c = "[0-9](_?[0-9])*", l = `\\.(${c})`, u = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = {
30986
31207
  className: "number",
30987
31208
  variants: [
@@ -31128,7 +31349,7 @@ function Ei(e) {
31128
31349
  relevance: 0,
31129
31350
  match: t.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
31130
31351
  className: "title.class",
31131
- keywords: { _: [...xi, ...Si] }
31352
+ keywords: { _: [...Di, ...Oi] }
31132
31353
  }, w = {
31133
31354
  label: "use_strict",
31134
31355
  className: "meta",
@@ -31158,7 +31379,7 @@ function Ei(e) {
31158
31379
  }
31159
31380
  let O = {
31160
31381
  match: t.concat(/\b/, D([
31161
- ...Ci,
31382
+ ...ki,
31162
31383
  "super",
31163
31384
  "import",
31164
31385
  "await"
@@ -31339,7 +31560,7 @@ function Ei(e) {
31339
31560
  }
31340
31561
  //#endregion
31341
31562
  //#region node_modules/highlight.js/es/languages/xml.js
31342
- function Di(e) {
31563
+ function Ni(e) {
31343
31564
  let t = e.regex, n = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), r = /[\p{L}0-9._:-]+/u, i = {
31344
31565
  className: "symbol",
31345
31566
  begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
@@ -31500,7 +31721,7 @@ function Di(e) {
31500
31721
  }
31501
31722
  //#endregion
31502
31723
  //#region node_modules/highlight.js/es/languages/css.js
31503
- var Oi = (e) => ({
31724
+ var Pi = (e) => ({
31504
31725
  IMPORTANT: {
31505
31726
  scope: "meta",
31506
31727
  begin: "!important"
@@ -31534,7 +31755,7 @@ var Oi = (e) => ({
31534
31755
  className: "attr",
31535
31756
  begin: /--[A-Za-z_][A-Za-z0-9_-]*/
31536
31757
  }
31537
- }), ki = /* @__PURE__ */ "a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video".split("."), Ai = /* @__PURE__ */ "defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath".split("."), ji = [...ki, ...Ai], Mi = (/* @__PURE__ */ "any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height".split(".")).sort().reverse(), Ni = (/* @__PURE__ */ "active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where".split(".")).sort().reverse(), Pi = [
31758
+ }), Fi = /* @__PURE__ */ "a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video".split("."), Ii = /* @__PURE__ */ "defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath".split("."), Li = [...Fi, ...Ii], Ri = (/* @__PURE__ */ "any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height".split(".")).sort().reverse(), zi = (/* @__PURE__ */ "active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where".split(".")).sort().reverse(), Bi = [
31538
31759
  "after",
31539
31760
  "backdrop",
31540
31761
  "before",
@@ -31549,9 +31770,9 @@ var Oi = (e) => ({
31549
31770
  "selection",
31550
31771
  "slotted",
31551
31772
  "spelling-error"
31552
- ].sort().reverse(), Fi = (/* @__PURE__ */ "accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.corner-bottom-left-shape.corner-bottom-right-shape.corner-shape.corner-top-left-shape.corner-top-right-shape.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.unicode-range.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom".split(".")).sort().reverse();
31553
- function Ii(e) {
31554
- let t = e.regex, n = Oi(e), r = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, i = /@-?\w[\w]*(-\w+)*/, a = [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE];
31773
+ ].sort().reverse(), Vi = (/* @__PURE__ */ "accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.corner-bottom-left-shape.corner-bottom-right-shape.corner-shape.corner-top-left-shape.corner-top-right-shape.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.unicode-range.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom".split(".")).sort().reverse();
31774
+ function Hi(e) {
31775
+ let t = e.regex, n = Pi(e), r = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, i = /@-?\w[\w]*(-\w+)*/, a = [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE];
31555
31776
  return {
31556
31777
  name: "CSS",
31557
31778
  case_insensitive: !0,
@@ -31575,12 +31796,12 @@ function Ii(e) {
31575
31796
  n.ATTRIBUTE_SELECTOR_MODE,
31576
31797
  {
31577
31798
  className: "selector-pseudo",
31578
- variants: [{ begin: ":(" + Ni.join("|") + ")" }, { begin: ":(:)?(" + Pi.join("|") + ")" }]
31799
+ variants: [{ begin: ":(" + zi.join("|") + ")" }, { begin: ":(:)?(" + Bi.join("|") + ")" }]
31579
31800
  },
31580
31801
  n.CSS_VARIABLE,
31581
31802
  {
31582
31803
  className: "attribute",
31583
- begin: "\\b(" + Fi.join("|") + ")\\b"
31804
+ begin: "\\b(" + Vi.join("|") + ")\\b"
31584
31805
  },
31585
31806
  {
31586
31807
  begin: /:/,
@@ -31623,7 +31844,7 @@ function Ii(e) {
31623
31844
  keywords: {
31624
31845
  $pattern: /[a-z-]+/,
31625
31846
  keyword: "and or not only",
31626
- attribute: Mi.join(" ")
31847
+ attribute: Ri.join(" ")
31627
31848
  },
31628
31849
  contains: [
31629
31850
  {
@@ -31637,14 +31858,14 @@ function Ii(e) {
31637
31858
  },
31638
31859
  {
31639
31860
  className: "selector-tag",
31640
- begin: "\\b(" + ji.join("|") + ")\\b"
31861
+ begin: "\\b(" + Li.join("|") + ")\\b"
31641
31862
  }
31642
31863
  ]
31643
31864
  };
31644
31865
  }
31645
31866
  //#endregion
31646
31867
  //#region node_modules/highlight.js/es/languages/scss.js
31647
- var Li = (e) => ({
31868
+ var Ui = (e) => ({
31648
31869
  IMPORTANT: {
31649
31870
  scope: "meta",
31650
31871
  begin: "!important"
@@ -31678,7 +31899,7 @@ var Li = (e) => ({
31678
31899
  className: "attr",
31679
31900
  begin: /--[A-Za-z_][A-Za-z0-9_-]*/
31680
31901
  }
31681
- }), Ri = /* @__PURE__ */ "a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video".split("."), zi = /* @__PURE__ */ "defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath".split("."), Bi = [...Ri, ...zi], Vi = (/* @__PURE__ */ "any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height".split(".")).sort().reverse(), Hi = (/* @__PURE__ */ "active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where".split(".")).sort().reverse(), Ui = [
31902
+ }), Wi = /* @__PURE__ */ "a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video".split("."), Gi = /* @__PURE__ */ "defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath".split("."), Ki = [...Wi, ...Gi], qi = (/* @__PURE__ */ "any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height".split(".")).sort().reverse(), Ji = (/* @__PURE__ */ "active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where".split(".")).sort().reverse(), Yi = [
31682
31903
  "after",
31683
31904
  "backdrop",
31684
31905
  "before",
@@ -31693,9 +31914,9 @@ var Li = (e) => ({
31693
31914
  "selection",
31694
31915
  "slotted",
31695
31916
  "spelling-error"
31696
- ].sort().reverse(), Wi = (/* @__PURE__ */ "accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.corner-bottom-left-shape.corner-bottom-right-shape.corner-shape.corner-top-left-shape.corner-top-right-shape.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.unicode-range.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom".split(".")).sort().reverse();
31697
- function Gi(e) {
31698
- let t = Li(e), n = Ui, r = Hi, i = "@[a-z-]+", a = {
31917
+ ].sort().reverse(), Xi = (/* @__PURE__ */ "accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.corner-bottom-left-shape.corner-bottom-right-shape.corner-shape.corner-top-left-shape.corner-top-right-shape.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.unicode-range.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom".split(".")).sort().reverse();
31918
+ function Zi(e) {
31919
+ let t = Ui(e), n = Yi, r = Ji, i = "@[a-z-]+", a = {
31699
31920
  className: "variable",
31700
31921
  begin: "(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",
31701
31922
  relevance: 0
@@ -31721,7 +31942,7 @@ function Gi(e) {
31721
31942
  t.ATTRIBUTE_SELECTOR_MODE,
31722
31943
  {
31723
31944
  className: "selector-tag",
31724
- begin: "\\b(" + Bi.join("|") + ")\\b",
31945
+ begin: "\\b(" + Ki.join("|") + ")\\b",
31725
31946
  relevance: 0
31726
31947
  },
31727
31948
  {
@@ -31741,7 +31962,7 @@ function Gi(e) {
31741
31962
  t.CSS_VARIABLE,
31742
31963
  {
31743
31964
  className: "attribute",
31744
- begin: "\\b(" + Wi.join("|") + ")\\b"
31965
+ begin: "\\b(" + Xi.join("|") + ")\\b"
31745
31966
  },
31746
31967
  { begin: "\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b" },
31747
31968
  {
@@ -31774,7 +31995,7 @@ function Gi(e) {
31774
31995
  keywords: {
31775
31996
  $pattern: /[a-z-]+/,
31776
31997
  keyword: "and or not only",
31777
- attribute: Vi.join(" ")
31998
+ attribute: qi.join(" ")
31778
31999
  },
31779
32000
  contains: [
31780
32001
  {
@@ -31798,12 +32019,12 @@ function Gi(e) {
31798
32019
  }
31799
32020
  //#endregion
31800
32021
  //#region node_modules/highlight.js/es/languages/json.js
31801
- var Ki = {
32022
+ var Qi = {
31802
32023
  scope: "number",
31803
32024
  match: "([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",
31804
32025
  relevance: 0
31805
32026
  };
31806
- function qi(e) {
32027
+ function $i(e) {
31807
32028
  let t = {
31808
32029
  className: "attr",
31809
32030
  begin: /(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,
@@ -31830,7 +32051,7 @@ function qi(e) {
31830
32051
  e.APOS_STRING_MODE,
31831
32052
  e.QUOTE_STRING_MODE,
31832
32053
  i,
31833
- Ki,
32054
+ Qi,
31834
32055
  e.C_LINE_COMMENT_MODE,
31835
32056
  e.C_BLOCK_COMMENT_MODE
31836
32057
  ],
@@ -31839,7 +32060,7 @@ function qi(e) {
31839
32060
  }
31840
32061
  //#endregion
31841
32062
  //#region node_modules/highlight.js/es/languages/bash.js
31842
- function Ji(e) {
32063
+ function ea(e) {
31843
32064
  let t = e.regex, n = {}, r = {
31844
32065
  begin: /\$\{/,
31845
32066
  end: /\}/,
@@ -32005,46 +32226,46 @@ function Ji(e) {
32005
32226
  ]
32006
32227
  };
32007
32228
  }
32008
- si.registerLanguage("ts", _i), si.registerLanguage("typescript", _i), si.registerLanguage("js", Ei), si.registerLanguage("javascript", Ei), si.registerLanguage("html", Di), si.registerLanguage("xml", Di), si.registerLanguage("vue", Di), si.registerLanguage("css", Ii), si.registerLanguage("scss", Gi), si.registerLanguage("json", qi), si.registerLanguage("bash", Ji), si.registerLanguage("shell", Ji);
32009
- var Yi = /\r\n|\r|\n/g, Xi = (e) => e.length === 0 ? [] : e.split(Yi), Zi = (e) => (e.trim().match(Yi) || []).length, Qi = (e) => {
32229
+ pi.registerLanguage("ts", Ci), pi.registerLanguage("typescript", Ci), pi.registerLanguage("js", Mi), pi.registerLanguage("javascript", Mi), pi.registerLanguage("html", Ni), pi.registerLanguage("xml", Ni), pi.registerLanguage("vue", Ni), pi.registerLanguage("css", Hi), pi.registerLanguage("scss", Zi), pi.registerLanguage("json", $i), pi.registerLanguage("bash", ea), pi.registerLanguage("shell", ea);
32230
+ var ta = /\r\n|\r|\n/g, na = (e) => e.length === 0 ? [] : e.split(ta), ra = (e) => (e.trim().match(ta) || []).length, ia = (e) => {
32010
32231
  let t = e.className || "";
32011
32232
  if (!/hljs-/.test(t)) return;
32012
- let n = Xi(e.innerHTML), r = "";
32233
+ let n = na(e.innerHTML), r = "";
32013
32234
  for (let e = 0; e < n.length; e++) {
32014
32235
  let i = n[e].length > 0 ? n[e] : " ";
32015
32236
  r += `<span class="${t}">${i}</span>\n`;
32016
32237
  }
32017
32238
  e.innerHTML = r.trim();
32018
- }, $i = (e) => {
32239
+ }, aa = (e) => {
32019
32240
  let t = Array.from(e.childNodes);
32020
32241
  for (let e of t) {
32021
32242
  if (e.nodeType !== Node.ELEMENT_NODE) continue;
32022
32243
  let t = e;
32023
- Zi(t.textContent || "") > 0 && (t.childNodes.length > 0 ? $i(t) : Qi(t));
32244
+ ra(t.textContent || "") > 0 && (t.childNodes.length > 0 ? aa(t) : ia(t));
32024
32245
  }
32025
- }, ea = (e, t = !0) => {
32246
+ }, oa = (e, t = !0) => {
32026
32247
  if (!e || typeof document > "u") return e;
32027
32248
  let n = document.createElement("code");
32028
- n.innerHTML = e, $i(n);
32029
- let r = Xi(n.innerHTML);
32249
+ n.innerHTML = e, aa(n);
32250
+ let r = na(n.innerHTML);
32030
32251
  return r.length > 0 && r[r.length - 1].trim() === "" && r.pop(), r.length <= 1 && !t ? e : `<table class="hljs-ln">${r.map((e, t) => {
32031
32252
  let n = t + 1;
32032
32253
  return `<tr><td class="hljs-ln-line hljs-ln-numbers" data-line-number="${n}"><div class="hljs-ln-n" data-line-number="${n}"></div></td><td class="hljs-ln-line hljs-ln-code" data-line-number="${n}">` + (e.length > 0 ? e : " ") + "</td></tr>";
32033
32254
  }).join("")}</table>`;
32034
- }, ta = (e, t) => t && si.getLanguage(t) ? si.highlight(e, { language: t }).value : si.highlightAuto(e).value, na = {
32255
+ }, sa = (e, t) => t && pi.getLanguage(t) ? pi.highlight(e, { language: t }).value : pi.highlightAuto(e).value, ca = {
32035
32256
  key: 0,
32036
32257
  class: "me-code-box__header"
32037
- }, ra = {
32258
+ }, la = {
32038
32259
  key: 0,
32039
32260
  class: "me-code-box__tabs",
32040
32261
  role: "tablist"
32041
- }, ia = ["aria-selected", "onClick"], aa = {
32262
+ }, ua = ["aria-selected", "onClick"], da = {
32042
32263
  key: 1,
32043
32264
  class: "me-code-box__title"
32044
- }, oa = ["aria-label"], sa = {
32265
+ }, fa = ["aria-label"], pa = {
32045
32266
  key: 1,
32046
32267
  class: "me-code-box__desc"
32047
- }, ca = ["innerHTML"], la = /* @__PURE__ */ d({
32268
+ }, ma = ["innerHTML"], ha = /* @__PURE__ */ d({
32048
32269
  name: "MeCodeBox",
32049
32270
  __name: "index",
32050
32271
  props: {
@@ -32105,8 +32326,8 @@ var Yi = /\r\n|\r|\n/g, Xi = (e) => e.length === 0 ? [] : e.split(Yi), Zi = (e)
32105
32326
  let b = r(() => p.value[v.value]), x = r(() => b.value?.label || c.filename || c.title || ""), w = r(() => b.value?.description ?? c.description ?? ""), T = r(() => m.value || !!x.value || c.showCopy), D = r(() => b.value?.language || c.language), k = r(() => {
32106
32327
  let e = b.value?.code ?? c.code ?? "";
32107
32328
  if (!e) return "";
32108
- let t = ta(e, D.value || "vue");
32109
- return c.showLineNumbers ? ea(t) : t;
32329
+ let t = sa(e, D.value || "vue");
32330
+ return c.showLineNumbers ? oa(t) : t;
32110
32331
  }), A = r(() => c.maxHeight ? { maxHeight: c.maxHeight } : void 0), j = (e) => {
32111
32332
  e !== v.value && (v.value = e);
32112
32333
  }, M = E(!1), F, L = async () => {
@@ -32120,15 +32341,15 @@ var Yi = /\r\n|\r|\n/g, Xi = (e) => e.length === 0 ? [] : e.split(Yi), Zi = (e)
32120
32341
  }
32121
32342
  };
32122
32343
  return (t, n) => (C(), o("div", h({ class: "me-code-box" }, t.$attrs), [
32123
- T.value ? (C(), o("div", na, [
32124
- m.value ? (C(), o("div", ra, [(C(!0), o(e, null, O(p.value, (e, t) => (C(), o("button", {
32344
+ T.value ? (C(), o("div", ca, [
32345
+ m.value ? (C(), o("div", la, [(C(!0), o(e, null, O(p.value, (e, t) => (C(), o("button", {
32125
32346
  key: t,
32126
32347
  type: "button",
32127
32348
  role: "tab",
32128
32349
  class: _(["me-code-box__tab", { "me-code-box__tab--active": t === v.value }]),
32129
32350
  "aria-selected": t === v.value,
32130
32351
  onClick: (e) => j(t)
32131
- }, N(e.label), 11, ia))), 128))])) : x.value ? (C(), o("div", aa, [u(P(Y), { size: 14 }), s("span", null, N(x.value), 1)])) : a("", !0),
32352
+ }, N(e.label), 11, ua))), 128))])) : x.value ? (C(), o("div", da, [u(P(te), { size: 14 }), s("span", null, N(x.value), 1)])) : a("", !0),
32132
32353
  n[0] ||= s("div", { class: "me-code-box__spacer" }, null, -1),
32133
32354
  c.showCopy ? (C(), o("button", {
32134
32355
  key: 2,
@@ -32139,19 +32360,19 @@ var Yi = /\r\n|\r|\n/g, Xi = (e) => e.length === 0 ? [] : e.split(Yi), Zi = (e)
32139
32360
  }, [M.value ? (C(), i(P(W), {
32140
32361
  key: 0,
32141
32362
  size: 14
32142
- })) : (C(), i(P(q), {
32363
+ })) : (C(), i(P(J), {
32143
32364
  key: 1,
32144
32365
  size: 14
32145
- })), s("span", null, N(M.value ? c.copiedText : c.copyText), 1)], 8, oa)) : a("", !0)
32366
+ })), s("span", null, N(M.value ? c.copiedText : c.copyText), 1)], 8, fa)) : a("", !0)
32146
32367
  ])) : a("", !0),
32147
- w.value ? (C(), o("div", sa, N(w.value), 1)) : a("", !0),
32368
+ w.value ? (C(), o("div", pa, N(w.value), 1)) : a("", !0),
32148
32369
  s("pre", {
32149
32370
  class: _(["me-code-box__pre hljs", { "me-code-box__pre--pad": !c.showLineNumbers }]),
32150
32371
  style: y(A.value)
32151
- }, [s("code", { innerHTML: k.value }, null, 8, ca)], 6)
32372
+ }, [s("code", { innerHTML: k.value }, null, 8, ma)], 6)
32152
32373
  ], 16));
32153
32374
  }
32154
- }), ua = /* @__PURE__ */ d({
32375
+ }), ga = /* @__PURE__ */ d({
32155
32376
  name: "MeCodeItem",
32156
32377
  __name: "code-item",
32157
32378
  props: {
@@ -32164,12 +32385,301 @@ var Yi = /\r\n|\r|\n/g, Xi = (e) => e.length === 0 ? [] : e.split(Yi), Zi = (e)
32164
32385
  return (e, t) => k(e.$slots, "default");
32165
32386
  }
32166
32387
  });
32167
- la.install = (e) => {
32168
- e.component("MeCodeBox", la), e.component("MeCodeItem", ua);
32169
- }, ua.install = (e) => {
32170
- e.component("MeCodeItem", ua);
32388
+ ha.install = (e) => {
32389
+ e.component("MeCodeBox", ha), e.component("MeCodeItem", ga);
32390
+ }, ga.install = (e) => {
32391
+ e.component("MeCodeItem", ga);
32392
+ };
32393
+ var _a = ha, va = /* @__PURE__ */ d({
32394
+ name: "MeText",
32395
+ __name: "index",
32396
+ props: {
32397
+ text: {},
32398
+ type: { default: "secondary" },
32399
+ size: { default: "middle" },
32400
+ tag: { default: "span" },
32401
+ align: {},
32402
+ strong: { type: Boolean },
32403
+ delete: { type: Boolean },
32404
+ underline: { type: Boolean },
32405
+ italic: { type: Boolean },
32406
+ disabled: { type: Boolean },
32407
+ ellipsis: { type: Boolean },
32408
+ clamp: { type: Boolean },
32409
+ clampLines: { default: 2 },
32410
+ nowrap: { type: Boolean },
32411
+ block: { type: Boolean },
32412
+ copyable: { type: Boolean },
32413
+ copyText: {},
32414
+ link: { type: Boolean },
32415
+ href: {},
32416
+ target: {}
32417
+ },
32418
+ emits: ["copy", "click"],
32419
+ setup(t, { emit: n }) {
32420
+ let s = t, c = n, u = E(!1), d = null, f = r(() => [
32421
+ `me-text--${s.type}`,
32422
+ `me-text--${s.size}`,
32423
+ {
32424
+ "me-text--strong": s.strong,
32425
+ "me-text--delete": s.delete,
32426
+ "me-text--underline": s.underline,
32427
+ "me-text--italic": s.italic,
32428
+ "me-text--disabled": s.disabled,
32429
+ "me-text--ellipsis": s.ellipsis,
32430
+ "me-text--clamp": s.clamp,
32431
+ "me-text--nowrap": s.nowrap,
32432
+ "me-text--block": s.block,
32433
+ "me-text--link": s.link,
32434
+ [`me-text--align-${s.align}`]: !!s.align
32435
+ }
32436
+ ]), p = (e) => {
32437
+ s.disabled || c("click", e);
32438
+ }, m = r(() => s.copyText || s.text || ""), g = async () => {
32439
+ let e = m.value;
32440
+ if (e) {
32441
+ try {
32442
+ await navigator.clipboard.writeText(e);
32443
+ } catch {
32444
+ try {
32445
+ let t = document.createElement("textarea");
32446
+ t.value = e, t.style.position = "fixed", t.style.opacity = "0", document.body.appendChild(t), t.select(), document.execCommand("copy"), document.body.removeChild(t);
32447
+ } catch {}
32448
+ }
32449
+ u.value = !0, c("copy", e), d && clearTimeout(d), d = setTimeout(() => {
32450
+ u.value = !1, d = null;
32451
+ }, 2e3);
32452
+ }
32453
+ };
32454
+ return (t, n) => (C(), i(j(s.tag), h({
32455
+ class: ["me-text", f.value],
32456
+ href: s.link ? s.href : void 0,
32457
+ target: s.link ? s.target : void 0,
32458
+ onClick: p
32459
+ }, t.$attrs), {
32460
+ default: z(() => [t.$slots.default ? k(t.$slots, "default", {}, void 0, void 0, 0) : (C(), o(e, { key: 1 }, [l(N(s.text), 1)], 64)), s.copyable ? (C(), o("span", {
32461
+ key: 2,
32462
+ class: "me-text__copy",
32463
+ onClick: V(g, ["stop"])
32464
+ }, [u.value ? (C(), i(P(W), {
32465
+ key: 0,
32466
+ size: 14
32467
+ })) : (C(), i(P(J), {
32468
+ key: 1,
32469
+ size: 14
32470
+ }))])) : a("", !0)]),
32471
+ _: 3
32472
+ }, 16, [
32473
+ "class",
32474
+ "href",
32475
+ "target"
32476
+ ]));
32477
+ }
32478
+ });
32479
+ //#endregion
32480
+ //#region src/components/text/index.ts
32481
+ va.install = (e) => {
32482
+ e.component("MeText", va);
32483
+ };
32484
+ var ya = va, ba = /* @__PURE__ */ d({
32485
+ name: "MeInputJson",
32486
+ __name: "index",
32487
+ props: {
32488
+ modelValue: { default: () => ({}) },
32489
+ mode: { default: "code" },
32490
+ modes: { default: () => [
32491
+ "tree",
32492
+ "code",
32493
+ "form",
32494
+ "text",
32495
+ "view"
32496
+ ] },
32497
+ height: { default: 300 },
32498
+ disabled: {
32499
+ type: Boolean,
32500
+ default: !1
32501
+ },
32502
+ mainMenuBar: {
32503
+ type: Boolean,
32504
+ default: !0
32505
+ },
32506
+ navigationBar: {
32507
+ type: Boolean,
32508
+ default: !0
32509
+ },
32510
+ statusBar: {
32511
+ type: Boolean,
32512
+ default: !0
32513
+ },
32514
+ search: {
32515
+ type: Boolean,
32516
+ default: !0
32517
+ },
32518
+ history: {
32519
+ type: Boolean,
32520
+ default: !0
32521
+ },
32522
+ indentation: { default: 2 },
32523
+ modalMode: {
32524
+ type: Boolean,
32525
+ default: !1
32526
+ },
32527
+ open: {
32528
+ type: Boolean,
32529
+ default: !1
32530
+ },
32531
+ title: { default: "JSON 编辑" },
32532
+ modalWidth: { default: 720 },
32533
+ okText: { default: "确定" },
32534
+ cancelText: { default: "取消" },
32535
+ fullscreen: {
32536
+ type: Boolean,
32537
+ default: !0
32538
+ },
32539
+ defaultFullscreen: {
32540
+ type: Boolean,
32541
+ default: !1
32542
+ }
32543
+ },
32544
+ emits: [
32545
+ "update:modelValue",
32546
+ "update:mode",
32547
+ "update:open",
32548
+ "change",
32549
+ "ok",
32550
+ "cancel",
32551
+ "error",
32552
+ "fullscreen-change"
32553
+ ],
32554
+ setup(e, { expose: t, emit: n }) {
32555
+ let a = e, o = n, c = E(null), l = null, u = E(!1), d = E(!!a.open), p = E(a.open ? L(a.modelValue || {}) : {}), m = E(!!a.defaultFullscreen), h = r(() => a.modalMode && m.value ? "100%" : typeof a.height == "number" ? `${a.height}px` : a.height), x = r(() => a.disabled ? "view" : a.mode), S = r(() => a.disabled ? ["view"] : a.modes), w = r(() => a.modalMode ? {
32556
+ open: d.value,
32557
+ title: a.title,
32558
+ width: a.modalWidth,
32559
+ position: "center",
32560
+ okText: a.okText,
32561
+ cancelText: a.cancelText,
32562
+ fullscreen: a.fullscreen,
32563
+ defaultFullscreen: a.defaultFullscreen,
32564
+ "onUpdate:open": T,
32565
+ onOk: k,
32566
+ onCancel: D,
32567
+ onFullscreenChange: O
32568
+ } : { class: "me-input-json-wrapper" });
32569
+ function T(e) {
32570
+ d.value = e, o("update:open", e);
32571
+ }
32572
+ function D() {
32573
+ o("cancel");
32574
+ }
32575
+ function O(e) {
32576
+ m.value = e, o("fullscreen-change", e), g(() => {
32577
+ l?.refresh();
32578
+ });
32579
+ }
32580
+ function k() {
32581
+ if (l) try {
32582
+ let e = l.get();
32583
+ d.value = !1, o("update:open", !1), o("ok", e), o("change", e);
32584
+ } catch (e) {
32585
+ H.error(`JSON 格式错误:${e.message}`), o("error", e);
32586
+ }
32587
+ }
32588
+ R(() => a.open, (e) => {
32589
+ d.value = !!e, e && (p.value = L(a.modelValue || {}));
32590
+ }), R(c, (e) => {
32591
+ e ? A(e) : M();
32592
+ }, { flush: "post" });
32593
+ function A(e, t) {
32594
+ let n = t === void 0 ? a.modalMode ? p.value : a.modelValue || {} : t;
32595
+ l = new er.default(e, {
32596
+ mode: x.value,
32597
+ modes: S.value,
32598
+ language: "zh-CN",
32599
+ indentation: a.indentation,
32600
+ mainMenuBar: a.mainMenuBar && !a.disabled,
32601
+ navigationBar: a.navigationBar,
32602
+ statusBar: a.statusBar,
32603
+ search: a.search,
32604
+ history: a.history,
32605
+ onChange: N,
32606
+ onValidationError: P,
32607
+ onModeChange: F,
32608
+ onEditable: a.disabled ? () => !1 : void 0
32609
+ }, n);
32610
+ }
32611
+ function M() {
32612
+ l &&= (l.destroy(), null);
32613
+ }
32614
+ b(() => {
32615
+ M();
32616
+ });
32617
+ function N() {
32618
+ if (l) try {
32619
+ let e = l.get();
32620
+ u.value = !1, a.modalMode || (o("update:modelValue", e), o("change", e));
32621
+ } catch (e) {
32622
+ u.value = !0, o("error", e);
32623
+ }
32624
+ }
32625
+ function P(e) {
32626
+ u.value = e.length > 0;
32627
+ }
32628
+ function F(e, t) {
32629
+ a.disabled || o("update:mode", e);
32630
+ }
32631
+ R(() => a.modelValue, (e) => {
32632
+ if (!a.modalMode && l) try {
32633
+ let t = l.get();
32634
+ JSON.stringify(t) !== JSON.stringify(e) && l.update(e || {});
32635
+ } catch {
32636
+ l.set(e || {});
32637
+ }
32638
+ }, { deep: !0 }), R(() => a.disabled, () => {
32639
+ if (l && c.value) {
32640
+ let e = I();
32641
+ M(), g(() => {
32642
+ c.value && A(c.value, e);
32643
+ });
32644
+ }
32645
+ });
32646
+ function I() {
32647
+ try {
32648
+ return l?.get() || {};
32649
+ } catch {
32650
+ return {};
32651
+ }
32652
+ }
32653
+ function L(e) {
32654
+ if (typeof e != "object" || !e) return e;
32655
+ if (Array.isArray(e)) return e.map((e) => L(e));
32656
+ let t = {};
32657
+ for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = L(e[n]));
32658
+ return t;
32659
+ }
32660
+ return t({
32661
+ getEditor: () => l,
32662
+ getValue: () => I(),
32663
+ setValue: (e) => {
32664
+ l?.set(e);
32665
+ }
32666
+ }), (t, n) => (C(), i(j(e.modalMode ? Zt : "div"), v(f(w.value)), {
32667
+ default: z(() => [s("div", {
32668
+ ref_key: "editorContainerRef",
32669
+ ref: c,
32670
+ class: _(["me-input-json", { "is-disabled": e.disabled }]),
32671
+ style: y({ height: h.value })
32672
+ }, null, 6)]),
32673
+ _: 1
32674
+ }, 16));
32675
+ }
32676
+ });
32677
+ //#endregion
32678
+ //#region src/components/input-json/index.ts
32679
+ ba.install = (e) => {
32680
+ e.component("MeInputJson", ba);
32171
32681
  };
32172
- var da = la, fa = [
32682
+ var xa = ba, Sa = [
32173
32683
  ye,
32174
32684
  Fe,
32175
32685
  Be,
@@ -32181,15 +32691,18 @@ var da = la, fa = [
32181
32691
  Ln,
32182
32692
  Wn,
32183
32693
  Cn,
32184
- qn,
32185
- nr,
32186
- gr,
32187
- wr,
32188
- Tr,
32189
- oi,
32190
- da
32191
- ], pa = (e) => {
32192
- fa.forEach((t) => {
32694
+ Qn,
32695
+ sr,
32696
+ xr,
32697
+ kr,
32698
+ Ar,
32699
+ ui,
32700
+ fi,
32701
+ _a,
32702
+ ya,
32703
+ xa
32704
+ ], Ca = (e) => {
32705
+ Sa.forEach((t) => {
32193
32706
  if (typeof t.install == "function") {
32194
32707
  t.install(e);
32195
32708
  return;
@@ -32198,10 +32711,10 @@ var da = la, fa = [
32198
32711
  n && e.component(n, t);
32199
32712
  });
32200
32713
  };
32201
- typeof window < "u" && window.Vue && pa(window.Vue);
32202
- var ma = {
32203
- install: pa,
32204
- version: "0.0.33"
32714
+ typeof window < "u" && window.Vue && Ca(window.Vue);
32715
+ var wa = {
32716
+ install: Ca,
32717
+ version: "0.0.35"
32205
32718
  };
32206
32719
  //#endregion
32207
- export { Oe as $message, Oe as MeMessage, Ar as BOOLEAN_OPTIONS, Or as DATE_FORMAT, Dr as FLOAT_PRECISION, it as MeBody, Be as MeBox, Ge as MeBreadcrumb, wr as MeCard, da as MeCodeBox, ua as MeCodeItem, Fe as MeIcon, Wn as MeInputGps, Cn as MeInputIconSelector, oi as MeInputProperty, qn as MeInputRadio, nr as MeLoadJson, gr as MeLoginPage, Dt as MeMenu, ye as MeMessageComponent, Qt as MeModal, Bt as MeNav, Tr as MeSkeleton, Ln as MeTreeMenu, kr as TIME_FORMAT, Er as VALUE_TYPE_OPTIONS, Ur as checkDuplicateKeys, ma as default, Rr as exportValue, jr as genId, Fr as inferValueType, pa as install, Wr as isDuplicateKey, qr as isRuleApplicable, Pe as loadIconfont, Hr as normalizeKey, Yr as normalizeRuleSet, Ir as normalizeValue, Xr as sanitizeRulesForType, $r as toRuleMap, ti as toValueErrorMap, Qr as validateValue, ei as valueError };
32720
+ export { Oe as $message, Oe as MeMessage, Fr as BOOLEAN_OPTIONS, Nr as DATE_FORMAT, Mr as FLOAT_PRECISION, it as MeBody, Be as MeBox, Ge as MeBreadcrumb, kr as MeCard, _a as MeCodeBox, ga as MeCodeItem, Fe as MeIcon, Wn as MeInputGps, Cn as MeInputIconSelector, xa as MeInputJson, fi as MeInputNumber, ui as MeInputProperty, Qn as MeInputRadio, sr as MeLoadJson, xr as MeLoginPage, Dt as MeMenu, ye as MeMessageComponent, Qt as MeModal, Bt as MeNav, Ar as MeSkeleton, ya as MeText, Ln as MeTreeMenu, Pr as TIME_FORMAT, jr as VALUE_TYPE_OPTIONS, Jr as checkDuplicateKeys, wa as default, Ur as exportValue, Ir as genId, Br as inferValueType, Ca as install, Yr as isDuplicateKey, Qr as isRuleApplicable, Pe as loadIconfont, qr as normalizeKey, ei as normalizeRuleSet, Vr as normalizeValue, ti as sanitizeRulesForType, ii as toRuleMap, oi as toValueErrorMap, ri as validateValue, ai as valueError };