@harbour-enterprises/superdoc 0.12.4 → 0.12.6

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,6 +1,6 @@
1
- import { computed as _, createElementBlock as ie, openBlock as q, createElementVNode as Ot, createCommentVNode as he, normalizeClass as en, normalizeStyle as Tt, ref as R, unref as W, createBlock as Ge, toDisplayString as Xn, withDirectives as ft, withKeys as Hr, withModifiers as jr, vModelText as Wr, getCurrentInstance as Lt, createVNode as ct, readonly as tn, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Us, onBeforeMount as fr, inject as te, onActivated as Gs, onDeactivated as oi, createTextVNode as ht, Fragment as _e, Comment as hr, defineComponent as ee, provide as Se, h as A, Teleport as Xs, toRef as se, nextTick as ii, renderSlot as qs, isVNode as Ys, shallowRef as Zs, watchEffect as pt, mergeProps as gt, Transition as nn, vShow as Js, cloneVNode as Qs, Text as el, renderList as tl, withCtx as xt } from "vue";
2
- import { x as rn } from "./converter-D2eDK1gC.js";
3
- import { _ as mt, g as kt } from "./editor-DWsjMOgq.js";
1
+ import { computed as I, createElementBlock as ie, openBlock as q, createElementVNode as Ot, createCommentVNode as he, normalizeClass as en, normalizeStyle as Tt, ref as P, unref as W, createBlock as Ge, toDisplayString as Xn, withDirectives as ft, withKeys as Hr, withModifiers as jr, vModelText as Wr, getCurrentInstance as Lt, createVNode as ct, readonly as tn, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Us, onBeforeMount as fr, inject as te, onActivated as Gs, onDeactivated as oi, createTextVNode as ht, Fragment as _e, Comment as hr, defineComponent as ee, provide as Se, h as E, Teleport as Xs, toRef as se, nextTick as ii, renderSlot as qs, isVNode as Ys, shallowRef as Zs, watchEffect as pt, mergeProps as gt, Transition as nn, vShow as Js, cloneVNode as Qs, Text as el, renderList as tl, withCtx as xt } from "vue";
2
+ import { x as rn } from "./converter-BvrQjifE.js";
3
+ import { _ as mt, g as kt } from "./editor-yOwh2oO-.js";
4
4
  const O0 = (e, t) => {
5
5
  let n = e.replace(/[^0-9.]/g, "");
6
6
  return n = parseFloat(n), isNaN(n) && (n = t), n = parseFloat(n), n;
@@ -10,10 +10,10 @@ const O0 = (e, t) => {
10
10
  const a = function() {
11
11
  l = n.leading === !1 ? 0 : Date.now(), r = null, s = e.apply(o, i), r || (o = i = null);
12
12
  }, c = function() {
13
- const d = Date.now();
14
- !l && n.leading === !1 && (l = d);
15
- const h = t - (d - l);
16
- return o = this, i = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = d, s = e.apply(o, i), r || (o = i = null)) : !r && n.trailing !== !1 && (r = setTimeout(a, h)), s;
13
+ const u = Date.now();
14
+ !l && n.leading === !1 && (l = u);
15
+ const h = t - (u - l);
16
+ return o = this, i = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = u, s = e.apply(o, i), r || (o = i = null)) : !r && n.trailing !== !1 && (r = setTimeout(a, h)), s;
17
17
  };
18
18
  return c.cancel = function() {
19
19
  clearTimeout(r), l = 0, r = o = i = null;
@@ -94,10 +94,10 @@ const O0 = (e, t) => {
94
94
  }
95
95
  },
96
96
  setup(e) {
97
- const t = e, n = _(() => {
97
+ const t = e, n = I(() => {
98
98
  if (t.name === "color") return { backgroundColor: t.color || "#111111" };
99
99
  if (t.name === "highlight") return { backgroundColor: t.color || "#D6D6D6" };
100
- }), r = _(() => ["color", "highlight"].includes(t.name));
100
+ }), r = I(() => ["color", "highlight"].includes(t.name));
101
101
  return (o, i) => (q(), ie("div", Vl, [
102
102
  Ot("div", {
103
103
  class: en(["toolbar-icon__icon", [`toolbar-icon__icon--${t.name}`]]),
@@ -150,30 +150,30 @@ const O0 = (e, t) => {
150
150
  label: l,
151
151
  hideLabel: a,
152
152
  iconColor: c,
153
- hasCaret: d,
153
+ hasCaret: u,
154
154
  disabled: h,
155
155
  inlineTextInputVisible: p,
156
- hasInlineTextInput: m,
157
- minWidth: f,
158
- style: b,
156
+ hasInlineTextInput: b,
157
+ minWidth: d,
158
+ style: m,
159
159
  attributes: v
160
- } = r.toolbarItem, u = R(r.defaultLabel), C = R(null), F = () => {
161
- m && (C.value?.focus(), C.value?.select()), n("buttonClick");
162
- }, y = () => {
163
- n("textSubmit", u.value), u.value = "";
164
- }, E = _(() => b.value ? b.value : {
160
+ } = r.toolbarItem, f = P(r.defaultLabel), F = P(null), A = () => {
161
+ b && (F.value?.focus(), F.value?.select()), n("buttonClick");
162
+ }, x = () => {
163
+ n("textSubmit", f.value), f.value = "";
164
+ }, w = I(() => m.value ? m.value : {
165
165
  minWidth: r.minWidth
166
- }), L = (w) => {
167
- let { value: z } = w.target;
168
- u.value = z.replace(/[^0-9]/g, "");
169
- }, g = _(() => i.value ? Gr.dropdownCaretUp : Gr.dropdownCaretDown);
170
- return (w, z) => (q(), ie("div", {
166
+ }), _ = (y) => {
167
+ let { value: z } = y.target;
168
+ f.value = z.replace(/[^0-9]/g, "");
169
+ }, g = I(() => i.value ? Gr.dropdownCaretUp : Gr.dropdownCaretDown);
170
+ return (y, z) => (q(), ie("div", {
171
171
  class: en(["toolbar-item", W(v).className]),
172
- style: Tt(E.value)
172
+ style: Tt(w.value)
173
173
  }, [
174
174
  Ot("div", {
175
- onClick: F,
176
- class: en(["toolbar-button", { active: W(i), disabled: W(h), narrow: e.isNarrow, wide: e.isWide, "has-inline-text-input": W(m) }]),
175
+ onClick: A,
176
+ class: en(["toolbar-button", { active: W(i), disabled: W(h), narrow: e.isNarrow, wide: e.isWide, "has-inline-text-input": W(b) }]),
177
177
  "data-item": `btn-${W(o) || ""}`
178
178
  }, [
179
179
  W(s) ? (q(), Ge(Xl, {
@@ -187,34 +187,34 @@ const O0 = (e, t) => {
187
187
  W(p) ? (q(), ie("span", Zl, [
188
188
  W(o) === "fontSize" ? ft((q(), ie("input", {
189
189
  key: 0,
190
- "onUpdate:modelValue": z[0] || (z[0] = (S) => u.value = S),
191
- onInput: L,
190
+ "onUpdate:modelValue": z[0] || (z[0] = (C) => f.value = C),
191
+ onInput: _,
192
192
  placeholder: W(l),
193
- onKeydown: Hr(jr(y, ["prevent"]), ["enter"]),
193
+ onKeydown: Hr(jr(x, ["prevent"]), ["enter"]),
194
194
  type: "text",
195
195
  class: "button-text-input",
196
196
  id: "inlineTextInput-" + W(o),
197
197
  autoccomplete: "off",
198
198
  ref_key: "inlineInput",
199
- ref: C
199
+ ref: F
200
200
  }, null, 40, Jl)), [
201
- [Wr, u.value]
201
+ [Wr, f.value]
202
202
  ]) : ft((q(), ie("input", {
203
203
  key: 1,
204
- "onUpdate:modelValue": z[1] || (z[1] = (S) => u.value = S),
204
+ "onUpdate:modelValue": z[1] || (z[1] = (C) => f.value = C),
205
205
  placeholder: W(l),
206
- onKeydown: Hr(jr(y, ["prevent"]), ["enter"]),
206
+ onKeydown: Hr(jr(x, ["prevent"]), ["enter"]),
207
207
  type: "text",
208
208
  class: "button-text-input",
209
209
  id: "inlineTextInput-" + W(o),
210
210
  autoccomplete: "off",
211
211
  ref_key: "inlineInput",
212
- ref: C
212
+ ref: F
213
213
  }, null, 40, Ql)), [
214
- [Wr, u.value]
214
+ [Wr, f.value]
215
215
  ])
216
216
  ])) : he("", !0),
217
- W(d) ? (q(), ie("div", {
217
+ W(u) ? (q(), ie("div", {
218
218
  key: 3,
219
219
  class: "dropdown-caret",
220
220
  innerHTML: g.value,
@@ -253,7 +253,7 @@ const O0 = (e, t) => {
253
253
  }
254
254
  },
255
255
  setup(e) {
256
- const { proxy: t } = Lt(), n = e, r = R(!1), o = _(() => ({
256
+ const { proxy: t } = Lt(), n = e, r = P(!1), o = I(() => ({
257
257
  ...n.toolbarItem,
258
258
  active: r
259
259
  })), i = () => {
@@ -281,78 +281,78 @@ const O0 = (e, t) => {
281
281
  function ua(e) {
282
282
  let t = ".", n = "__", r = "--", o;
283
283
  if (e) {
284
- let f = e.blockPrefix;
285
- f && (t = f), f = e.elementPrefix, f && (n = f), f = e.modifierPrefix, f && (r = f);
284
+ let d = e.blockPrefix;
285
+ d && (t = d), d = e.elementPrefix, d && (n = d), d = e.modifierPrefix, d && (r = d);
286
286
  }
287
287
  const i = {
288
- install(f) {
289
- o = f.c;
290
- const b = f.context;
291
- b.bem = {}, b.bem.b = null, b.bem.els = null;
288
+ install(d) {
289
+ o = d.c;
290
+ const m = d.context;
291
+ m.bem = {}, m.bem.b = null, m.bem.els = null;
292
292
  }
293
293
  };
294
- function s(f) {
295
- let b, v;
294
+ function s(d) {
295
+ let m, v;
296
296
  return {
297
- before(u) {
298
- b = u.bem.b, v = u.bem.els, u.bem.els = null;
297
+ before(f) {
298
+ m = f.bem.b, v = f.bem.els, f.bem.els = null;
299
299
  },
300
- after(u) {
301
- u.bem.b = b, u.bem.els = v;
300
+ after(f) {
301
+ f.bem.b = m, f.bem.els = v;
302
302
  },
303
- $({ context: u, props: C }) {
304
- return f = typeof f == "string" ? f : f({ context: u, props: C }), u.bem.b = f, `${C?.bPrefix || t}${u.bem.b}`;
303
+ $({ context: f, props: F }) {
304
+ return d = typeof d == "string" ? d : d({ context: f, props: F }), f.bem.b = d, `${F?.bPrefix || t}${f.bem.b}`;
305
305
  }
306
306
  };
307
307
  }
308
- function l(f) {
309
- let b;
308
+ function l(d) {
309
+ let m;
310
310
  return {
311
311
  before(v) {
312
- b = v.bem.els;
312
+ m = v.bem.els;
313
313
  },
314
314
  after(v) {
315
- v.bem.els = b;
315
+ v.bem.els = m;
316
316
  },
317
- $({ context: v, props: u }) {
318
- return f = typeof f == "string" ? f : f({ context: v, props: u }), v.bem.els = f.split(",").map((C) => C.trim()), v.bem.els.map((C) => `${u?.bPrefix || t}${v.bem.b}${n}${C}`).join(", ");
317
+ $({ context: v, props: f }) {
318
+ return d = typeof d == "string" ? d : d({ context: v, props: f }), v.bem.els = d.split(",").map((F) => F.trim()), v.bem.els.map((F) => `${f?.bPrefix || t}${v.bem.b}${n}${F}`).join(", ");
319
319
  }
320
320
  };
321
321
  }
322
- function a(f) {
322
+ function a(d) {
323
323
  return {
324
- $({ context: b, props: v }) {
325
- f = typeof f == "string" ? f : f({ context: b, props: v });
326
- const u = f.split(",").map((y) => y.trim());
327
- function C(y) {
328
- return u.map((E) => `&${v?.bPrefix || t}${b.bem.b}${y !== void 0 ? `${n}${y}` : ""}${r}${E}`).join(", ");
324
+ $({ context: m, props: v }) {
325
+ d = typeof d == "string" ? d : d({ context: m, props: v });
326
+ const f = d.split(",").map((x) => x.trim());
327
+ function F(x) {
328
+ return f.map((w) => `&${v?.bPrefix || t}${m.bem.b}${x !== void 0 ? `${n}${x}` : ""}${r}${w}`).join(", ");
329
329
  }
330
- const F = b.bem.els;
331
- if (F !== null) {
332
- if (rn.env.NODE_ENV !== "production" && F.length >= 2)
333
- throw Error(`[css-render/plugin-bem]: m(${f}) is invalid, using modifier inside multiple elements is not allowed`);
334
- return C(F[0]);
330
+ const A = m.bem.els;
331
+ if (A !== null) {
332
+ if (rn.env.NODE_ENV !== "production" && A.length >= 2)
333
+ throw Error(`[css-render/plugin-bem]: m(${d}) is invalid, using modifier inside multiple elements is not allowed`);
334
+ return F(A[0]);
335
335
  } else
336
- return C();
336
+ return F();
337
337
  }
338
338
  };
339
339
  }
340
- function c(f) {
340
+ function c(d) {
341
341
  return {
342
- $({ context: b, props: v }) {
343
- f = typeof f == "string" ? f : f({ context: b, props: v });
344
- const u = b.bem.els;
345
- if (rn.env.NODE_ENV !== "production" && u !== null && u.length >= 2)
346
- throw Error(`[css-render/plugin-bem]: notM(${f}) is invalid, using modifier inside multiple elements is not allowed`);
347
- return `&:not(${v?.bPrefix || t}${b.bem.b}${u !== null && u.length > 0 ? `${n}${u[0]}` : ""}${r}${f})`;
342
+ $({ context: m, props: v }) {
343
+ d = typeof d == "string" ? d : d({ context: m, props: v });
344
+ const f = m.bem.els;
345
+ if (rn.env.NODE_ENV !== "production" && f !== null && f.length >= 2)
346
+ throw Error(`[css-render/plugin-bem]: notM(${d}) is invalid, using modifier inside multiple elements is not allowed`);
347
+ return `&:not(${v?.bPrefix || t}${m.bem.b}${f !== null && f.length > 0 ? `${n}${f[0]}` : ""}${r}${d})`;
348
348
  }
349
349
  };
350
350
  }
351
351
  return Object.assign(i, {
352
- cB: (...f) => o(s(f[0]), f[1], f[2]),
353
- cE: (...f) => o(l(f[0]), f[1], f[2]),
354
- cM: (...f) => o(a(f[0]), f[1], f[2]),
355
- cNotM: (...f) => o(c(f[0]), f[1], f[2])
352
+ cB: (...d) => o(s(d[0]), d[1], d[2]),
353
+ cE: (...d) => o(l(d[0]), d[1], d[2]),
354
+ cM: (...d) => o(a(d[0]), d[1], d[2]),
355
+ cNotM: (...d) => o(c(d[0]), d[1], d[2])
356
356
  }), i;
357
357
  }
358
358
  function da(e) {
@@ -508,8 +508,8 @@ function ai(e, t, n, r, o) {
508
508
  props: o
509
509
  }, (c) => {
510
510
  if (typeof c == "string") {
511
- const d = qr(l, { raw: c }, r, o);
512
- n.push(d);
511
+ const u = qr(l, { raw: c }, r, o);
512
+ n.push(u);
513
513
  } else
514
514
  ai(c, t, n, r, o);
515
515
  }), t.pop(), s && n.push("}"), i && i.after && i.after(r.context);
@@ -559,12 +559,12 @@ function Sa(e, t, n, r, o, i, s, l, a) {
559
559
  return;
560
560
  }
561
561
  l === void 0 && (l = document.head);
562
- const d = gn(n, l);
563
- if (d !== null && !i)
564
- return d;
565
- const h = d ?? ga(n);
566
- if (c === void 0 && (c = t.render(r)), h.textContent = c, d !== null)
567
- return d;
562
+ const u = gn(n, l);
563
+ if (u !== null && !i)
564
+ return u;
565
+ const h = u ?? ga(n);
566
+ if (c === void 0 && (c = t.render(r)), h.textContent = c, u !== null)
567
+ return u;
568
568
  if (s) {
569
569
  const p = l.querySelector(`meta[name="${s}"]`);
570
570
  if (p)
@@ -1057,149 +1057,149 @@ function ec() {
1057
1057
  function r() {
1058
1058
  e.set(this, !0), t.set(this, !0);
1059
1059
  }
1060
- function o(g, w, z) {
1061
- const S = g[w];
1062
- return g[w] = function() {
1063
- return z.apply(g, arguments), S.apply(g, arguments);
1060
+ function o(g, y, z) {
1061
+ const C = g[y];
1062
+ return g[y] = function() {
1063
+ return z.apply(g, arguments), C.apply(g, arguments);
1064
1064
  }, g;
1065
1065
  }
1066
- function i(g, w) {
1067
- g[w] = Event.prototype[w];
1066
+ function i(g, y) {
1067
+ g[y] = Event.prototype[y];
1068
1068
  }
1069
1069
  const s = /* @__PURE__ */ new WeakMap(), l = Object.getOwnPropertyDescriptor(Event.prototype, "currentTarget");
1070
1070
  function a() {
1071
1071
  var g;
1072
1072
  return (g = s.get(this)) !== null && g !== void 0 ? g : null;
1073
1073
  }
1074
- function c(g, w) {
1074
+ function c(g, y) {
1075
1075
  l !== void 0 && Object.defineProperty(g, "currentTarget", {
1076
1076
  configurable: !0,
1077
1077
  enumerable: !0,
1078
- get: w ?? l.get
1078
+ get: y ?? l.get
1079
1079
  });
1080
1080
  }
1081
- const d = {
1081
+ const u = {
1082
1082
  bubble: {},
1083
1083
  capture: {}
1084
1084
  }, h = {};
1085
1085
  function p() {
1086
- const g = function(w) {
1087
- const { type: z, eventPhase: S, bubbles: N } = w, M = Yt(w);
1088
- if (S === 2)
1086
+ const g = function(y) {
1087
+ const { type: z, eventPhase: C, bubbles: N } = y, M = Yt(y);
1088
+ if (C === 2)
1089
1089
  return;
1090
- const k = S === 1 ? "capture" : "bubble";
1091
- let O = M;
1092
- const x = [];
1093
- for (; O === null && (O = window), x.push(O), O !== window; )
1094
- O = O.parentNode || null;
1095
- const P = d.capture[z], T = d.bubble[z];
1096
- if (o(w, "stopPropagation", n), o(w, "stopImmediatePropagation", r), c(w, a), k === "capture") {
1097
- if (P === void 0)
1090
+ const k = C === 1 ? "capture" : "bubble";
1091
+ let L = M;
1092
+ const S = [];
1093
+ for (; L === null && (L = window), S.push(L), L !== window; )
1094
+ L = L.parentNode || null;
1095
+ const R = u.capture[z], T = u.bubble[z];
1096
+ if (o(y, "stopPropagation", n), o(y, "stopImmediatePropagation", r), c(y, a), k === "capture") {
1097
+ if (R === void 0)
1098
1098
  return;
1099
- for (let j = x.length - 1; j >= 0 && !e.has(w); --j) {
1100
- const V = x[j], U = P.get(V);
1099
+ for (let j = S.length - 1; j >= 0 && !e.has(y); --j) {
1100
+ const V = S[j], U = R.get(V);
1101
1101
  if (U !== void 0) {
1102
- s.set(w, V);
1102
+ s.set(y, V);
1103
1103
  for (const ue of U) {
1104
- if (t.has(w))
1104
+ if (t.has(y))
1105
1105
  break;
1106
- ue(w);
1106
+ ue(y);
1107
1107
  }
1108
1108
  }
1109
1109
  if (j === 0 && !N && T !== void 0) {
1110
1110
  const ue = T.get(V);
1111
1111
  if (ue !== void 0)
1112
1112
  for (const ge of ue) {
1113
- if (t.has(w))
1113
+ if (t.has(y))
1114
1114
  break;
1115
- ge(w);
1115
+ ge(y);
1116
1116
  }
1117
1117
  }
1118
1118
  }
1119
1119
  } else if (k === "bubble") {
1120
1120
  if (T === void 0)
1121
1121
  return;
1122
- for (let j = 0; j < x.length && !e.has(w); ++j) {
1123
- const V = x[j], U = T.get(V);
1122
+ for (let j = 0; j < S.length && !e.has(y); ++j) {
1123
+ const V = S[j], U = T.get(V);
1124
1124
  if (U !== void 0) {
1125
- s.set(w, V);
1125
+ s.set(y, V);
1126
1126
  for (const ue of U) {
1127
- if (t.has(w))
1127
+ if (t.has(y))
1128
1128
  break;
1129
- ue(w);
1129
+ ue(y);
1130
1130
  }
1131
1131
  }
1132
1132
  }
1133
1133
  }
1134
- i(w, "stopPropagation"), i(w, "stopImmediatePropagation"), c(w);
1134
+ i(y, "stopPropagation"), i(y, "stopImmediatePropagation"), c(y);
1135
1135
  };
1136
1136
  return g.displayName = "evtdUnifiedHandler", g;
1137
1137
  }
1138
- function m() {
1139
- const g = function(w) {
1140
- const { type: z, eventPhase: S } = w;
1141
- if (S !== 2)
1138
+ function b() {
1139
+ const g = function(y) {
1140
+ const { type: z, eventPhase: C } = y;
1141
+ if (C !== 2)
1142
1142
  return;
1143
1143
  const N = h[z];
1144
- N !== void 0 && N.forEach((M) => M(w));
1144
+ N !== void 0 && N.forEach((M) => M(y));
1145
1145
  };
1146
1146
  return g.displayName = "evtdUnifiedWindowEventHandler", g;
1147
1147
  }
1148
- const f = p(), b = m();
1149
- function v(g, w) {
1150
- const z = d[g];
1151
- return z[w] === void 0 && (z[w] = /* @__PURE__ */ new Map(), window.addEventListener(w, f, g === "capture")), z[w];
1148
+ const d = p(), m = b();
1149
+ function v(g, y) {
1150
+ const z = u[g];
1151
+ return z[y] === void 0 && (z[y] = /* @__PURE__ */ new Map(), window.addEventListener(y, d, g === "capture")), z[y];
1152
1152
  }
1153
- function u(g) {
1154
- return h[g] === void 0 && (h[g] = /* @__PURE__ */ new Set(), window.addEventListener(g, b)), h[g];
1153
+ function f(g) {
1154
+ return h[g] === void 0 && (h[g] = /* @__PURE__ */ new Set(), window.addEventListener(g, m)), h[g];
1155
1155
  }
1156
- function C(g, w) {
1157
- let z = g.get(w);
1158
- return z === void 0 && g.set(w, z = /* @__PURE__ */ new Set()), z;
1156
+ function F(g, y) {
1157
+ let z = g.get(y);
1158
+ return z === void 0 && g.set(y, z = /* @__PURE__ */ new Set()), z;
1159
1159
  }
1160
- function F(g, w, z, S) {
1161
- const N = d[w][z];
1160
+ function A(g, y, z, C) {
1161
+ const N = u[y][z];
1162
1162
  if (N !== void 0) {
1163
1163
  const M = N.get(g);
1164
- if (M !== void 0 && M.has(S))
1164
+ if (M !== void 0 && M.has(C))
1165
1165
  return !0;
1166
1166
  }
1167
1167
  return !1;
1168
1168
  }
1169
- function y(g, w) {
1169
+ function x(g, y) {
1170
1170
  const z = h[g];
1171
- return !!(z !== void 0 && z.has(w));
1171
+ return !!(z !== void 0 && z.has(y));
1172
1172
  }
1173
- function E(g, w, z, S) {
1173
+ function w(g, y, z, C) {
1174
1174
  let N;
1175
- if (typeof S == "object" && S.once === !0 ? N = (P) => {
1176
- L(g, w, N, S), z(P);
1177
- } : N = z, Ja(g, w, N, S))
1175
+ if (typeof C == "object" && C.once === !0 ? N = (R) => {
1176
+ _(g, y, N, C), z(R);
1177
+ } : N = z, Ja(g, y, N, C))
1178
1178
  return;
1179
- const k = S === !0 || typeof S == "object" && S.capture === !0 ? "capture" : "bubble", O = v(k, g), x = C(O, w);
1180
- if (x.has(N) || x.add(N), w === window) {
1181
- const P = u(g);
1182
- P.has(N) || P.add(N);
1179
+ const k = C === !0 || typeof C == "object" && C.capture === !0 ? "capture" : "bubble", L = v(k, g), S = F(L, y);
1180
+ if (S.has(N) || S.add(N), y === window) {
1181
+ const R = f(g);
1182
+ R.has(N) || R.add(N);
1183
1183
  }
1184
1184
  }
1185
- function L(g, w, z, S) {
1186
- if (Qa(g, w, z, S))
1185
+ function _(g, y, z, C) {
1186
+ if (Qa(g, y, z, C))
1187
1187
  return;
1188
- const M = S === !0 || typeof S == "object" && S.capture === !0, k = M ? "capture" : "bubble", O = v(k, g), x = C(O, w);
1189
- if (w === window && !F(w, M ? "bubble" : "capture", g, z) && y(g, z)) {
1188
+ const M = C === !0 || typeof C == "object" && C.capture === !0, k = M ? "capture" : "bubble", L = v(k, g), S = F(L, y);
1189
+ if (y === window && !A(y, M ? "bubble" : "capture", g, z) && x(g, z)) {
1190
1190
  const T = h[g];
1191
- T.delete(z), T.size === 0 && (window.removeEventListener(g, b), h[g] = void 0);
1191
+ T.delete(z), T.size === 0 && (window.removeEventListener(g, m), h[g] = void 0);
1192
1192
  }
1193
- x.has(z) && x.delete(z), x.size === 0 && O.delete(w), O.size === 0 && (window.removeEventListener(g, f, k === "capture"), d[k][g] = void 0);
1193
+ S.has(z) && S.delete(z), S.size === 0 && L.delete(y), L.size === 0 && (window.removeEventListener(g, d, k === "capture"), u[k][g] = void 0);
1194
1194
  }
1195
1195
  return {
1196
- on: E,
1197
- off: L
1196
+ on: w,
1197
+ off: _
1198
1198
  };
1199
1199
  }
1200
1200
  const { on: oe, off: J } = ec();
1201
1201
  function tc(e) {
1202
- const t = R(!!e.value);
1202
+ const t = P(!!e.value);
1203
1203
  if (t.value)
1204
1204
  return tn(t);
1205
1205
  const n = we(e, (r) => {
@@ -1208,7 +1208,7 @@ function tc(e) {
1208
1208
  return tn(t);
1209
1209
  }
1210
1210
  function Te(e) {
1211
- const t = _(e), n = R(t.value);
1211
+ const t = I(e), n = P(t.value);
1212
1212
  return we(t, (r) => {
1213
1213
  n.value = r;
1214
1214
  }), typeof e == "function" ? n : {
@@ -1248,16 +1248,16 @@ function ic(e) {
1248
1248
  function wi(e, t) {
1249
1249
  return we(e, (n) => {
1250
1250
  n !== void 0 && (t.value = n);
1251
- }), _(() => e.value === void 0 ? t.value : e.value);
1251
+ }), I(() => e.value === void 0 ? t.value : e.value);
1252
1252
  }
1253
1253
  function yi() {
1254
- const e = R(!1);
1254
+ const e = P(!1);
1255
1255
  return Ke(() => {
1256
1256
  e.value = !0;
1257
1257
  }), tn(e);
1258
1258
  }
1259
1259
  function sc(e, t) {
1260
- return _(() => {
1260
+ return I(() => {
1261
1261
  for (const n of t)
1262
1262
  if (e[n] !== void 0)
1263
1263
  return e[n];
@@ -1294,12 +1294,12 @@ function cc(e = {}, t) {
1294
1294
  r !== void 0 && Object.keys(r).forEach((c) => {
1295
1295
  if (c !== a.key)
1296
1296
  return;
1297
- const d = r[c];
1298
- if (typeof d == "function")
1299
- d(a);
1297
+ const u = r[c];
1298
+ if (typeof u == "function")
1299
+ u(a);
1300
1300
  else {
1301
- const { stop: h = !1, prevent: p = !1 } = d;
1302
- h && a.stopPropagation(), p && a.preventDefault(), d.handler(a);
1301
+ const { stop: h = !1, prevent: p = !1 } = u;
1302
+ h && a.stopPropagation(), p && a.preventDefault(), u.handler(a);
1303
1303
  }
1304
1304
  });
1305
1305
  }, s = (a) => {
@@ -1320,12 +1320,12 @@ function cc(e = {}, t) {
1320
1320
  o !== void 0 && Object.keys(o).forEach((c) => {
1321
1321
  if (c !== a.key)
1322
1322
  return;
1323
- const d = o[c];
1324
- if (typeof d == "function")
1325
- d(a);
1323
+ const u = o[c];
1324
+ if (typeof u == "function")
1325
+ u(a);
1326
1326
  else {
1327
- const { stop: h = !1, prevent: p = !1 } = d;
1328
- h && a.stopPropagation(), p && a.preventDefault(), d.handler(a);
1327
+ const { stop: h = !1, prevent: p = !1 } = u;
1328
+ h && a.stopPropagation(), p && a.preventDefault(), u.handler(a);
1329
1329
  }
1330
1330
  });
1331
1331
  }, l = () => {
@@ -1339,7 +1339,7 @@ function cc(e = {}, t) {
1339
1339
  }
1340
1340
  const uc = "n-internal-select-menu-body", pr = "n-drawer-body", vr = "n-modal-body", mn = "n-popover-body", xi = "__disabled__";
1341
1341
  function vt(e) {
1342
- const t = te(vr, null), n = te(pr, null), r = te(mn, null), o = te(uc, null), i = R();
1342
+ const t = te(vr, null), n = te(pr, null), r = te(mn, null), o = te(uc, null), i = P();
1343
1343
  if (typeof document < "u") {
1344
1344
  i.value = document.fullscreenElement;
1345
1345
  const s = () => {
@@ -1365,7 +1365,7 @@ vt.propTo = {
1365
1365
  default: void 0
1366
1366
  };
1367
1367
  function dc(e, t, n) {
1368
- const r = R(e.value);
1368
+ const r = P(e.value);
1369
1369
  let o = null;
1370
1370
  return we(e, (i) => {
1371
1371
  o !== null && window.clearTimeout(o), i === !0 ? n && !n.value ? r.value = !0 : o = window.setTimeout(() => {
@@ -1502,34 +1502,34 @@ const $i = ee({
1502
1502
  setup(e) {
1503
1503
  var t;
1504
1504
  Se("VBinder", (t = Lt()) === null || t === void 0 ? void 0 : t.proxy);
1505
- const n = te("VBinder", null), r = R(null), o = (u) => {
1506
- r.value = u, n && e.syncTargetWithParent && n.setTargetRef(u);
1505
+ const n = te("VBinder", null), r = P(null), o = (f) => {
1506
+ r.value = f, n && e.syncTargetWithParent && n.setTargetRef(f);
1507
1507
  };
1508
1508
  let i = [];
1509
1509
  const s = () => {
1510
- let u = r.value;
1511
- for (; u = Ci(u), u !== null; )
1512
- i.push(u);
1513
- for (const C of i)
1514
- oe("scroll", C, h, !0);
1510
+ let f = r.value;
1511
+ for (; f = Ci(f), f !== null; )
1512
+ i.push(f);
1513
+ for (const F of i)
1514
+ oe("scroll", F, h, !0);
1515
1515
  }, l = () => {
1516
- for (const u of i)
1517
- J("scroll", u, h, !0);
1516
+ for (const f of i)
1517
+ J("scroll", f, h, !0);
1518
1518
  i = [];
1519
- }, a = /* @__PURE__ */ new Set(), c = (u) => {
1520
- a.size === 0 && s(), a.has(u) || a.add(u);
1521
- }, d = (u) => {
1522
- a.has(u) && a.delete(u), a.size === 0 && l();
1519
+ }, a = /* @__PURE__ */ new Set(), c = (f) => {
1520
+ a.size === 0 && s(), a.has(f) || a.add(f);
1521
+ }, u = (f) => {
1522
+ a.has(f) && a.delete(f), a.size === 0 && l();
1523
1523
  }, h = () => {
1524
1524
  Oa(p);
1525
1525
  }, p = () => {
1526
- a.forEach((u) => u());
1527
- }, m = /* @__PURE__ */ new Set(), f = (u) => {
1528
- m.size === 0 && oe("resize", window, v), m.has(u) || m.add(u);
1529
- }, b = (u) => {
1530
- m.has(u) && m.delete(u), m.size === 0 && J("resize", window, v);
1526
+ a.forEach((f) => f());
1527
+ }, b = /* @__PURE__ */ new Set(), d = (f) => {
1528
+ b.size === 0 && oe("resize", window, v), b.has(f) || b.add(f);
1529
+ }, m = (f) => {
1530
+ b.has(f) && b.delete(f), b.size === 0 && J("resize", window, v);
1531
1531
  }, v = () => {
1532
- m.forEach((u) => u());
1532
+ b.forEach((f) => f());
1533
1533
  };
1534
1534
  return Be(() => {
1535
1535
  J("resize", window, v), l();
@@ -1537,9 +1537,9 @@ const $i = ee({
1537
1537
  targetRef: r,
1538
1538
  setTargetRef: o,
1539
1539
  addScrollListener: c,
1540
- removeScrollListener: d,
1541
- addResizeListener: f,
1542
- removeResizeListener: b
1540
+ removeScrollListener: u,
1541
+ addResizeListener: d,
1542
+ removeResizeListener: m
1543
1543
  };
1544
1544
  },
1545
1545
  render() {
@@ -1701,14 +1701,14 @@ const zc = ee({
1701
1701
  setup(e) {
1702
1702
  return {
1703
1703
  showTeleport: tc(se(e, "show")),
1704
- mergedTo: _(() => {
1704
+ mergedTo: I(() => {
1705
1705
  const { to: t } = e;
1706
1706
  return t ?? "body";
1707
1707
  })
1708
1708
  };
1709
1709
  },
1710
1710
  render() {
1711
- return this.showTeleport ? this.disabled ? Qn("lazy-teleport", this.$slots) : A(Xs, {
1711
+ return this.showTeleport ? this.disabled ? Qn("lazy-teleport", this.$slots) : E(Xs, {
1712
1712
  disabled: this.disabled,
1713
1713
  to: this.mergedTo
1714
1714
  }, Qn("lazy-teleport", this.$slots)) : null;
@@ -1782,36 +1782,36 @@ function Mc(e, t, n, r, o, i) {
1782
1782
  top: 0,
1783
1783
  left: 0
1784
1784
  };
1785
- const d = (m, f, b) => {
1786
- let v = 0, u = 0;
1787
- const C = n[m] - t[f] - t[m];
1788
- return C > 0 && r && (b ? u = lo[f] ? C : -C : v = lo[f] ? C : -C), {
1785
+ const u = (b, d, m) => {
1786
+ let v = 0, f = 0;
1787
+ const F = n[b] - t[d] - t[b];
1788
+ return F > 0 && r && (m ? f = lo[d] ? F : -F : v = lo[d] ? F : -F), {
1789
1789
  left: v,
1790
- top: u
1790
+ top: f
1791
1791
  };
1792
1792
  }, h = s === "left" || s === "right";
1793
1793
  if (a !== "center") {
1794
- const m = Ac[e], f = Kt[m], b = Pn[m];
1795
- if (n[b] > t[b]) {
1794
+ const b = Ac[e], d = Kt[b], m = Pn[b];
1795
+ if (n[m] > t[m]) {
1796
1796
  if (
1797
1797
  // current space is not enough
1798
1798
  // ----------[ target ]---------|
1799
1799
  // -------[ follower ]
1800
- t[m] + t[b] < n[b]
1800
+ t[b] + t[m] < n[m]
1801
1801
  ) {
1802
- const v = (n[b] - t[b]) / 2;
1803
- t[m] < v || t[f] < v ? t[m] < t[f] ? (a = so[l], c = d(b, f, h)) : c = d(b, m, h) : a = "center";
1802
+ const v = (n[m] - t[m]) / 2;
1803
+ t[b] < v || t[d] < v ? t[b] < t[d] ? (a = so[l], c = u(m, d, h)) : c = u(m, b, h) : a = "center";
1804
1804
  }
1805
- } else n[b] < t[b] && t[f] < 0 && // opposite align has larger space
1805
+ } else n[m] < t[m] && t[d] < 0 && // opposite align has larger space
1806
1806
  // ------------[ target ]
1807
1807
  // ----------------[follower]
1808
- t[m] > t[f] && (a = so[l]);
1808
+ t[b] > t[d] && (a = so[l]);
1809
1809
  } else {
1810
- const m = s === "bottom" || s === "top" ? "left" : "top", f = Kt[m], b = Pn[m], v = (n[b] - t[b]) / 2;
1810
+ const b = s === "bottom" || s === "top" ? "left" : "top", d = Kt[b], m = Pn[b], v = (n[m] - t[m]) / 2;
1811
1811
  // center is not enough
1812
1812
  // ----------- [ target ]--|
1813
1813
  // -------[ follower ]
1814
- (t[m] < v || t[f] < v) && (t[m] > t[f] ? (a = ao[m], c = d(b, m, h)) : (a = ao[f], c = d(b, f, h)));
1814
+ (t[b] < v || t[d] < v) && (t[b] > t[d] ? (a = ao[b], c = u(m, b, h)) : (a = ao[d], c = u(m, d, h)));
1815
1815
  }
1816
1816
  let p = s;
1817
1817
  return (
@@ -2035,7 +2035,7 @@ const _c = Wt([
2035
2035
  overlap: Boolean
2036
2036
  },
2037
2037
  setup(e) {
2038
- const t = te("VBinder"), n = Te(() => e.enabled !== void 0 ? e.enabled : e.show), r = R(null), o = R(null), i = () => {
2038
+ const t = te("VBinder"), n = Te(() => e.enabled !== void 0 ? e.enabled : e.show), r = P(null), o = P(null), i = () => {
2039
2039
  const { syncTrigger: p } = e;
2040
2040
  p.includes("scroll") && t.addScrollListener(a), p.includes("resize") && t.addResizeListener(a);
2041
2041
  }, s = () => {
@@ -2061,14 +2061,14 @@ const _c = Wt([
2061
2061
  const p = r.value;
2062
2062
  if (p === null)
2063
2063
  return;
2064
- const m = t.targetRef, { x: f, y: b, overlap: v } = e, u = f !== void 0 && b !== void 0 ? vc(f, b) : On(m);
2065
- p.style.setProperty("--v-target-width", `${Math.round(u.width)}px`), p.style.setProperty("--v-target-height", `${Math.round(u.height)}px`);
2066
- const { width: C, minWidth: F, placement: y, internalShift: E, flip: L } = e;
2067
- p.setAttribute("v-placement", y), v ? p.setAttribute("v-overlap", "") : p.removeAttribute("v-overlap");
2064
+ const b = t.targetRef, { x: d, y: m, overlap: v } = e, f = d !== void 0 && m !== void 0 ? vc(d, m) : On(b);
2065
+ p.style.setProperty("--v-target-width", `${Math.round(f.width)}px`), p.style.setProperty("--v-target-height", `${Math.round(f.height)}px`);
2066
+ const { width: F, minWidth: A, placement: x, internalShift: w, flip: _ } = e;
2067
+ p.setAttribute("v-placement", x), v ? p.setAttribute("v-overlap", "") : p.removeAttribute("v-overlap");
2068
2068
  const { style: g } = p;
2069
- C === "target" ? g.width = `${u.width}px` : C !== void 0 ? g.width = C : g.width = "", F === "target" ? g.minWidth = `${u.width}px` : F !== void 0 ? g.minWidth = F : g.minWidth = "";
2070
- const w = On(p), z = On(o.value), { left: S, top: N, placement: M } = Mc(y, u, w, E, L, v), k = Tc(M, v), { left: O, top: x, transform: P } = Bc(M, z, u, N, S, v);
2071
- p.setAttribute("v-placement", M), p.style.setProperty("--v-offset-left", `${Math.round(S)}px`), p.style.setProperty("--v-offset-top", `${Math.round(N)}px`), p.style.transform = `translateX(${O}) translateY(${x}) ${P}`, p.style.setProperty("--v-transform-origin", k), p.style.transformOrigin = k;
2069
+ F === "target" ? g.width = `${f.width}px` : F !== void 0 ? g.width = F : g.width = "", A === "target" ? g.minWidth = `${f.width}px` : A !== void 0 ? g.minWidth = A : g.minWidth = "";
2070
+ const y = On(p), z = On(o.value), { left: C, top: N, placement: M } = Mc(x, f, y, w, _, v), k = Tc(M, v), { left: L, top: S, transform: R } = Bc(M, z, f, N, C, v);
2071
+ p.setAttribute("v-placement", M), p.style.setProperty("--v-offset-left", `${Math.round(C)}px`), p.style.setProperty("--v-offset-top", `${Math.round(N)}px`), p.style.transform = `translateX(${L}) translateY(${S}) ${R}`, p.style.setProperty("--v-transform-origin", k), p.style.transformOrigin = k;
2072
2072
  };
2073
2073
  we(n, (p) => {
2074
2074
  p ? (i(), c()) : s();
@@ -2092,11 +2092,11 @@ const _c = Wt([
2092
2092
  }), we(se(e, "syncTrigger"), (p) => {
2093
2093
  p.includes("resize") ? t.addResizeListener(a) : t.removeResizeListener(a), p.includes("scroll") ? t.addScrollListener(a) : t.removeScrollListener(a);
2094
2094
  });
2095
- const d = yi(), h = Te(() => {
2095
+ const u = yi(), h = Te(() => {
2096
2096
  const { to: p } = e;
2097
2097
  if (p !== void 0)
2098
2098
  return p;
2099
- d.value;
2099
+ u.value;
2100
2100
  });
2101
2101
  return {
2102
2102
  VBinder: t,
@@ -2108,18 +2108,18 @@ const _c = Wt([
2108
2108
  };
2109
2109
  },
2110
2110
  render() {
2111
- return A(zc, {
2111
+ return E(zc, {
2112
2112
  show: this.show,
2113
2113
  to: this.mergedTo,
2114
2114
  disabled: this.teleportDisabled
2115
2115
  }, {
2116
2116
  default: () => {
2117
2117
  var e, t;
2118
- const n = A("div", {
2118
+ const n = E("div", {
2119
2119
  class: ["v-binder-follower-container", this.containerClass],
2120
2120
  ref: "offsetContainerRef"
2121
2121
  }, [
2122
- A("div", {
2122
+ E("div", {
2123
2123
  class: "v-binder-follower-content",
2124
2124
  ref: "followerRef"
2125
2125
  }, (t = (e = this.$slots).default) === null || t === void 0 ? void 0 : t.call(e))
@@ -2215,11 +2215,11 @@ var Je = function(e) {
2215
2215
  return Vt.get(e);
2216
2216
  if (Mi(e))
2217
2217
  return Vt.set(e, ho), ho;
2218
- var n = getComputedStyle(e), r = gr(e) && e.ownerSVGElement && e.getBBox(), o = !Dc && n.boxSizing === "border-box", i = kc.test(n.writingMode || ""), s = !r && fo.test(n.overflowY || ""), l = !r && fo.test(n.overflowX || ""), a = r ? 0 : Ce(n.paddingTop), c = r ? 0 : Ce(n.paddingRight), d = r ? 0 : Ce(n.paddingBottom), h = r ? 0 : Ce(n.paddingLeft), p = r ? 0 : Ce(n.borderTopWidth), m = r ? 0 : Ce(n.borderRightWidth), f = r ? 0 : Ce(n.borderBottomWidth), b = r ? 0 : Ce(n.borderLeftWidth), v = h + c, u = a + d, C = b + m, F = p + f, y = l ? e.offsetHeight - F - e.clientHeight : 0, E = s ? e.offsetWidth - C - e.clientWidth : 0, L = o ? v + C : 0, g = o ? u + F : 0, w = r ? r.width : Ce(n.width) - L - E, z = r ? r.height : Ce(n.height) - g - y, S = w + v + E + C, N = z + u + y + F, M = Je({
2219
- devicePixelContentBoxSize: dt(Math.round(w * devicePixelRatio), Math.round(z * devicePixelRatio), i),
2220
- borderBoxSize: dt(S, N, i),
2221
- contentBoxSize: dt(w, z, i),
2222
- contentRect: new Ai(h, a, w, z)
2218
+ var n = getComputedStyle(e), r = gr(e) && e.ownerSVGElement && e.getBBox(), o = !Dc && n.boxSizing === "border-box", i = kc.test(n.writingMode || ""), s = !r && fo.test(n.overflowY || ""), l = !r && fo.test(n.overflowX || ""), a = r ? 0 : Ce(n.paddingTop), c = r ? 0 : Ce(n.paddingRight), u = r ? 0 : Ce(n.paddingBottom), h = r ? 0 : Ce(n.paddingLeft), p = r ? 0 : Ce(n.borderTopWidth), b = r ? 0 : Ce(n.borderRightWidth), d = r ? 0 : Ce(n.borderBottomWidth), m = r ? 0 : Ce(n.borderLeftWidth), v = h + c, f = a + u, F = m + b, A = p + d, x = l ? e.offsetHeight - A - e.clientHeight : 0, w = s ? e.offsetWidth - F - e.clientWidth : 0, _ = o ? v + F : 0, g = o ? f + A : 0, y = r ? r.width : Ce(n.width) - _ - w, z = r ? r.height : Ce(n.height) - g - x, C = y + v + w + F, N = z + f + x + A, M = Je({
2219
+ devicePixelContentBoxSize: dt(Math.round(y * devicePixelRatio), Math.round(z * devicePixelRatio), i),
2220
+ borderBoxSize: dt(C, N, i),
2221
+ contentBoxSize: dt(y, z, i),
2222
+ contentRect: new Ai(h, a, y, z)
2223
2223
  });
2224
2224
  return Vt.set(e, M), M;
2225
2225
  }, Bi = function(e, t, n) {
@@ -2250,8 +2250,8 @@ var Je = function(e) {
2250
2250
  if (s.activeTargets.length !== 0) {
2251
2251
  var l = [];
2252
2252
  s.activeTargets.forEach(function(c) {
2253
- var d = new Nc(c.target), h = _i(c.target);
2254
- l.push(d), c.lastReportedSize = Bi(c.target, c.observedBox), h < e && (e = h);
2253
+ var u = new Nc(c.target), h = _i(c.target);
2254
+ l.push(u), c.lastReportedSize = Bi(c.target, c.observedBox), h < e && (e = h);
2255
2255
  }), t.push(function() {
2256
2256
  s.callback.call(s.observer, l, s.observer);
2257
2257
  }), s.activeTargets.splice(0, s.activeTargets.length);
@@ -2533,15 +2533,15 @@ const nu = ee({
2533
2533
  }
2534
2534
  },
2535
2535
  setup(e) {
2536
- const t = Xa(), n = R(null), r = R(null);
2536
+ const t = Xa(), n = P(null), r = P(null);
2537
2537
  let o = !1, i = !1;
2538
2538
  const s = typeof document > "u" ? null : document.activeElement;
2539
2539
  function l() {
2540
2540
  return St[St.length - 1] === t;
2541
2541
  }
2542
2542
  function a(v) {
2543
- var u;
2544
- v.code === "Escape" && l() && ((u = e.onEsc) === null || u === void 0 || u.call(e, v));
2543
+ var f;
2544
+ v.code === "Escape" && l() && ((f = e.onEsc) === null || f === void 0 || f.call(e, v));
2545
2545
  }
2546
2546
  Ke(() => {
2547
2547
  we(() => e.active, (v) => {
@@ -2554,68 +2554,68 @@ const nu = ee({
2554
2554
  });
2555
2555
  function c(v) {
2556
2556
  if (!i && l()) {
2557
- const u = d();
2558
- if (u === null || u.contains(sn(v)))
2557
+ const f = u();
2558
+ if (f === null || f.contains(sn(v)))
2559
2559
  return;
2560
- m("first");
2560
+ b("first");
2561
2561
  }
2562
2562
  }
2563
- function d() {
2563
+ function u() {
2564
2564
  const v = n.value;
2565
2565
  if (v === null)
2566
2566
  return null;
2567
- let u = v;
2568
- for (; u = u.nextSibling, !(u === null || u instanceof Element && u.tagName === "DIV"); )
2567
+ let f = v;
2568
+ for (; f = f.nextSibling, !(f === null || f instanceof Element && f.tagName === "DIV"); )
2569
2569
  ;
2570
- return u;
2570
+ return f;
2571
2571
  }
2572
2572
  function h() {
2573
2573
  var v;
2574
2574
  if (!e.disabled) {
2575
2575
  if (St.push(t), e.autoFocus) {
2576
- const { initialFocusTo: u } = e;
2577
- u === void 0 ? m("first") : (v = io(u)) === null || v === void 0 || v.focus({ preventScroll: !0 });
2576
+ const { initialFocusTo: f } = e;
2577
+ f === void 0 ? b("first") : (v = io(f)) === null || v === void 0 || v.focus({ preventScroll: !0 });
2578
2578
  }
2579
2579
  o = !0, document.addEventListener("focus", c, !0);
2580
2580
  }
2581
2581
  }
2582
2582
  function p() {
2583
2583
  var v;
2584
- if (e.disabled || (document.removeEventListener("focus", c, !0), St = St.filter((C) => C !== t), l()))
2584
+ if (e.disabled || (document.removeEventListener("focus", c, !0), St = St.filter((F) => F !== t), l()))
2585
2585
  return;
2586
- const { finalFocusTo: u } = e;
2587
- u !== void 0 ? (v = io(u)) === null || v === void 0 || v.focus({ preventScroll: !0 }) : e.returnFocusOnDeactivated && s instanceof HTMLElement && (i = !0, s.focus({ preventScroll: !0 }), i = !1);
2586
+ const { finalFocusTo: f } = e;
2587
+ f !== void 0 ? (v = io(f)) === null || v === void 0 || v.focus({ preventScroll: !0 }) : e.returnFocusOnDeactivated && s instanceof HTMLElement && (i = !0, s.focus({ preventScroll: !0 }), i = !1);
2588
2588
  }
2589
- function m(v) {
2589
+ function b(v) {
2590
2590
  if (l() && e.active) {
2591
- const u = n.value, C = r.value;
2592
- if (u !== null && C !== null) {
2593
- const F = d();
2594
- if (F == null || F === C) {
2595
- i = !0, u.focus({ preventScroll: !0 }), i = !1;
2591
+ const f = n.value, F = r.value;
2592
+ if (f !== null && F !== null) {
2593
+ const A = u();
2594
+ if (A == null || A === F) {
2595
+ i = !0, f.focus({ preventScroll: !0 }), i = !1;
2596
2596
  return;
2597
2597
  }
2598
2598
  i = !0;
2599
- const y = v === "first" ? Li(F) : Pi(F);
2600
- i = !1, y || (i = !0, u.focus({ preventScroll: !0 }), i = !1);
2599
+ const x = v === "first" ? Li(A) : Pi(A);
2600
+ i = !1, x || (i = !0, f.focus({ preventScroll: !0 }), i = !1);
2601
2601
  }
2602
2602
  }
2603
2603
  }
2604
- function f(v) {
2604
+ function d(v) {
2605
2605
  if (i)
2606
2606
  return;
2607
- const u = d();
2608
- u !== null && (v.relatedTarget !== null && u.contains(v.relatedTarget) ? m("last") : m("first"));
2607
+ const f = u();
2608
+ f !== null && (v.relatedTarget !== null && f.contains(v.relatedTarget) ? b("last") : b("first"));
2609
2609
  }
2610
- function b(v) {
2611
- i || (v.relatedTarget !== null && v.relatedTarget === n.value ? m("last") : m("first"));
2610
+ function m(v) {
2611
+ i || (v.relatedTarget !== null && v.relatedTarget === n.value ? b("last") : b("first"));
2612
2612
  }
2613
2613
  return {
2614
2614
  focusableStartRef: n,
2615
2615
  focusableEndRef: r,
2616
2616
  focusableStyle: "position: absolute; height: 0; width: 0;",
2617
- handleStartFocus: f,
2618
- handleEndFocus: b
2617
+ handleStartFocus: d,
2618
+ handleEndFocus: m
2619
2619
  };
2620
2620
  },
2621
2621
  render() {
@@ -2625,8 +2625,8 @@ const nu = ee({
2625
2625
  if (this.disabled)
2626
2626
  return e();
2627
2627
  const { active: t, focusableStyle: n } = this;
2628
- return A(_e, null, [
2629
- A("div", {
2628
+ return E(_e, null, [
2629
+ E("div", {
2630
2630
  "aria-hidden": "true",
2631
2631
  tabindex: t ? "0" : "-1",
2632
2632
  ref: "focusableStartRef",
@@ -2634,7 +2634,7 @@ const nu = ee({
2634
2634
  onFocus: this.handleStartFocus
2635
2635
  }),
2636
2636
  e(),
2637
- A("div", {
2637
+ E("div", {
2638
2638
  "aria-hidden": "true",
2639
2639
  style: n,
2640
2640
  ref: "focusableEndRef",
@@ -2760,7 +2760,7 @@ function bt(e = {}, t = {
2760
2760
  mergedRtlRef: n?.mergedRtlRef,
2761
2761
  mergedComponentPropsRef: n?.mergedComponentPropsRef,
2762
2762
  mergedBreakpointsRef: n?.mergedBreakpointsRef,
2763
- mergedBorderedRef: _(() => {
2763
+ mergedBorderedRef: I(() => {
2764
2764
  var r, o;
2765
2765
  const {
2766
2766
  bordered: i
@@ -2768,27 +2768,27 @@ function bt(e = {}, t = {
2768
2768
  return i !== void 0 ? i : (o = (r = n?.mergedBorderedRef.value) !== null && r !== void 0 ? r : t.defaultBordered) !== null && o !== void 0 ? o : !0;
2769
2769
  }),
2770
2770
  mergedClsPrefixRef: n ? n.mergedClsPrefixRef : Zs(au),
2771
- namespaceRef: _(() => n?.mergedNamespaceRef.value)
2771
+ namespaceRef: I(() => n?.mergedNamespaceRef.value)
2772
2772
  };
2773
2773
  }
2774
2774
  function yn(e, t, n, r) {
2775
2775
  n || iu("useThemeClass", "cssVarsRef is not passed");
2776
- const o = te(wn, null), i = o?.mergedThemeHashRef, s = o?.styleMountTarget, l = R(""), a = bn();
2776
+ const o = te(wn, null), i = o?.mergedThemeHashRef, s = o?.styleMountTarget, l = P(""), a = bn();
2777
2777
  let c;
2778
- const d = `__${e}`, h = () => {
2779
- let p = d;
2780
- const m = t ? t.value : void 0, f = i?.value;
2781
- f && (p += `-${f}`), m && (p += `-${m}`);
2778
+ const u = `__${e}`, h = () => {
2779
+ let p = u;
2780
+ const b = t ? t.value : void 0, d = i?.value;
2781
+ d && (p += `-${d}`), b && (p += `-${b}`);
2782
2782
  const {
2783
- themeOverrides: b,
2783
+ themeOverrides: m,
2784
2784
  builtinThemeOverrides: v
2785
2785
  } = r;
2786
- b && (p += `-${Zn(JSON.stringify(b))}`), v && (p += `-${Zn(JSON.stringify(v))}`), l.value = p, c = () => {
2787
- const u = n.value;
2788
- let C = "";
2789
- for (const F in u)
2790
- C += `${F}: ${u[F]};`;
2791
- H(`.${p}`, C).mount({
2786
+ m && (p += `-${Zn(JSON.stringify(m))}`), v && (p += `-${Zn(JSON.stringify(v))}`), l.value = p, c = () => {
2787
+ const f = n.value;
2788
+ let F = "";
2789
+ for (const A in f)
2790
+ F += `${A}: ${f[A]};`;
2791
+ H(`.${p}`, F).mount({
2792
2792
  id: p,
2793
2793
  ssr: a,
2794
2794
  parent: s
@@ -3423,29 +3423,29 @@ function es(e, t, n, r, o, i) {
3423
3423
  var s = n & c2, l = e.length, a = t.length;
3424
3424
  if (l != a && !(s && a > l))
3425
3425
  return !1;
3426
- var c = i.get(e), d = i.get(t);
3427
- if (c && d)
3428
- return c == t && d == e;
3429
- var h = -1, p = !0, m = n & u2 ? new pn() : void 0;
3426
+ var c = i.get(e), u = i.get(t);
3427
+ if (c && u)
3428
+ return c == t && u == e;
3429
+ var h = -1, p = !0, b = n & u2 ? new pn() : void 0;
3430
3430
  for (i.set(e, t), i.set(t, e); ++h < l; ) {
3431
- var f = e[h], b = t[h];
3431
+ var d = e[h], m = t[h];
3432
3432
  if (r)
3433
- var v = s ? r(b, f, h, t, e, i) : r(f, b, h, e, t, i);
3433
+ var v = s ? r(m, d, h, t, e, i) : r(d, m, h, e, t, i);
3434
3434
  if (v !== void 0) {
3435
3435
  if (v)
3436
3436
  continue;
3437
3437
  p = !1;
3438
3438
  break;
3439
3439
  }
3440
- if (m) {
3441
- if (!l2(t, function(u, C) {
3442
- if (!a2(m, C) && (f === u || o(f, u, n, r, i)))
3443
- return m.push(C);
3440
+ if (b) {
3441
+ if (!l2(t, function(f, F) {
3442
+ if (!a2(b, F) && (d === f || o(d, f, n, r, i)))
3443
+ return b.push(F);
3444
3444
  })) {
3445
3445
  p = !1;
3446
3446
  break;
3447
3447
  }
3448
- } else if (!(f === b || o(f, b, n, r, i))) {
3448
+ } else if (!(d === m || o(d, m, n, r, i))) {
3449
3449
  p = !1;
3450
3450
  break;
3451
3451
  }
@@ -3492,8 +3492,8 @@ function F2(e, t, n, r, o, i, s) {
3492
3492
  if (c)
3493
3493
  return c == t;
3494
3494
  r |= p2, s.set(e, t);
3495
- var d = es(l(e), l(t), r, o, i, s);
3496
- return s.delete(e), d;
3495
+ var u = es(l(e), l(t), r, o, i, s);
3496
+ return s.delete(e), u;
3497
3497
  case C2:
3498
3498
  if (Wn)
3499
3499
  return Wn.call(e) == Wn.call(t);
@@ -3502,53 +3502,53 @@ function F2(e, t, n, r, o, i, s) {
3502
3502
  }
3503
3503
  var E2 = 1, A2 = Object.prototype, M2 = A2.hasOwnProperty;
3504
3504
  function T2(e, t, n, r, o, i) {
3505
- var s = n & E2, l = No(e), a = l.length, c = No(t), d = c.length;
3506
- if (a != d && !s)
3505
+ var s = n & E2, l = No(e), a = l.length, c = No(t), u = c.length;
3506
+ if (a != u && !s)
3507
3507
  return !1;
3508
3508
  for (var h = a; h--; ) {
3509
3509
  var p = l[h];
3510
3510
  if (!(s ? p in t : M2.call(t, p)))
3511
3511
  return !1;
3512
3512
  }
3513
- var m = i.get(e), f = i.get(t);
3514
- if (m && f)
3515
- return m == t && f == e;
3516
- var b = !0;
3513
+ var b = i.get(e), d = i.get(t);
3514
+ if (b && d)
3515
+ return b == t && d == e;
3516
+ var m = !0;
3517
3517
  i.set(e, t), i.set(t, e);
3518
3518
  for (var v = s; ++h < a; ) {
3519
3519
  p = l[h];
3520
- var u = e[p], C = t[p];
3520
+ var f = e[p], F = t[p];
3521
3521
  if (r)
3522
- var F = s ? r(C, u, p, t, e, i) : r(u, C, p, e, t, i);
3523
- if (!(F === void 0 ? u === C || o(u, C, n, r, i) : F)) {
3524
- b = !1;
3522
+ var A = s ? r(F, f, p, t, e, i) : r(f, F, p, e, t, i);
3523
+ if (!(A === void 0 ? f === F || o(f, F, n, r, i) : A)) {
3524
+ m = !1;
3525
3525
  break;
3526
3526
  }
3527
3527
  v || (v = p == "constructor");
3528
3528
  }
3529
- if (b && !v) {
3530
- var y = e.constructor, E = t.constructor;
3531
- y != E && "constructor" in e && "constructor" in t && !(typeof y == "function" && y instanceof y && typeof E == "function" && E instanceof E) && (b = !1);
3529
+ if (m && !v) {
3530
+ var x = e.constructor, w = t.constructor;
3531
+ x != w && "constructor" in e && "constructor" in t && !(typeof x == "function" && x instanceof x && typeof w == "function" && w instanceof w) && (m = !1);
3532
3532
  }
3533
- return i.delete(e), i.delete(t), b;
3533
+ return i.delete(e), i.delete(t), m;
3534
3534
  }
3535
3535
  var B2 = 1, Go = "[object Arguments]", Xo = "[object Array]", Xt = "[object Object]", _2 = Object.prototype, qo = _2.hasOwnProperty;
3536
3536
  function I2(e, t, n, r, o, i) {
3537
3537
  var s = ye(e), l = ye(t), a = s ? Xo : ke(e), c = l ? Xo : ke(t);
3538
3538
  a = a == Go ? Xt : a, c = c == Go ? Xt : c;
3539
- var d = a == Xt, h = c == Xt, p = a == c;
3539
+ var u = a == Xt, h = c == Xt, p = a == c;
3540
3540
  if (p && fn(e)) {
3541
3541
  if (!fn(t))
3542
3542
  return !1;
3543
- s = !0, d = !1;
3543
+ s = !0, u = !1;
3544
3544
  }
3545
- if (p && !d)
3545
+ if (p && !u)
3546
3546
  return i || (i = new $e()), s || zr(e) ? es(e, t, n, r, o, i) : F2(e, t, a, n, r, o, i);
3547
3547
  if (!(n & B2)) {
3548
- var m = d && qo.call(e, "__wrapped__"), f = h && qo.call(t, "__wrapped__");
3549
- if (m || f) {
3550
- var b = m ? e.value() : e, v = f ? t.value() : t;
3551
- return i || (i = new $e()), o(b, v, n, r, i);
3548
+ var b = u && qo.call(e, "__wrapped__"), d = h && qo.call(t, "__wrapped__");
3549
+ if (b || d) {
3550
+ var m = b ? e.value() : e, v = d ? t.value() : t;
3551
+ return i || (i = new $e()), o(m, v, n, r, i);
3552
3552
  }
3553
3553
  }
3554
3554
  return p ? (i || (i = new $e()), T2(e, t, n, r, o, i)) : !1;
@@ -3573,8 +3573,8 @@ function P2(e, t, n, r) {
3573
3573
  if (a === void 0 && !(l in e))
3574
3574
  return !1;
3575
3575
  } else {
3576
- var d = new $e(), h;
3577
- if (!(h === void 0 ? Mr(c, a, O2 | L2, r, d) : h))
3576
+ var u = new $e(), h;
3577
+ if (!(h === void 0 ? Mr(c, a, O2 | L2, r, u) : h))
3578
3578
  return !1;
3579
3579
  }
3580
3580
  }
@@ -3685,12 +3685,12 @@ function th(e, t, n, r, o, i, s) {
3685
3685
  lr(e, n, c);
3686
3686
  return;
3687
3687
  }
3688
- var d = i ? i(l, a, n + "", e, t, s) : void 0, h = d === void 0;
3688
+ var u = i ? i(l, a, n + "", e, t, s) : void 0, h = u === void 0;
3689
3689
  if (h) {
3690
- var p = ye(a), m = !p && fn(a), f = !p && !m && zr(a);
3691
- d = a, p || m || f ? ye(l) ? d = l : Q2(l) ? d = Ru(l) : m ? (h = !1, d = jf(a)) : f ? (h = !1, d = n2(a)) : d = [] : Of(a) || dn(a) ? (d = l, dn(l) ? d = eh(l) : (!Ve(l) || yr(l)) && (d = r2(a))) : h = !1;
3690
+ var p = ye(a), b = !p && fn(a), d = !p && !b && zr(a);
3691
+ u = a, p || b || d ? ye(l) ? u = l : Q2(l) ? u = Ru(l) : b ? (h = !1, u = jf(a)) : d ? (h = !1, u = n2(a)) : u = [] : Of(a) || dn(a) ? (u = l, dn(l) ? u = eh(l) : (!Ve(l) || yr(l)) && (u = r2(a))) : h = !1;
3692
3692
  }
3693
- h && (s.set(a, d), o(d, a, r, i, s), s.delete(a)), lr(e, n, d);
3693
+ h && (s.set(a, u), o(u, a, r, i, s), s.delete(a)), lr(e, n, u);
3694
3694
  }
3695
3695
  function os(e, t, n, r, o) {
3696
3696
  e !== t && rs(t, function(i, s) {
@@ -3718,7 +3718,7 @@ var qt = td(function(e, t, n) {
3718
3718
  const cr = "naive-ui-style";
3719
3719
  function oh(e, t, n) {
3720
3720
  if (!t) return;
3721
- const r = bn(), o = _(() => {
3721
+ const r = bn(), o = I(() => {
3722
3722
  const {
3723
3723
  value: l
3724
3724
  } = t;
@@ -3794,12 +3794,12 @@ function pe(e, t, n, r, o, i) {
3794
3794
  const s = bn(), l = te(wn, null);
3795
3795
  if (n) {
3796
3796
  const c = () => {
3797
- const d = i?.value;
3797
+ const u = i?.value;
3798
3798
  n.mount({
3799
- id: d === void 0 ? t : d + t,
3799
+ id: u === void 0 ? t : u + t,
3800
3800
  head: !0,
3801
3801
  props: {
3802
- bPrefix: d ? `.${d}-` : void 0
3802
+ bPrefix: u ? `.${u}-` : void 0
3803
3803
  },
3804
3804
  anchorMetaName: cr,
3805
3805
  ssr: s,
@@ -3814,44 +3814,44 @@ function pe(e, t, n, r, o, i) {
3814
3814
  };
3815
3815
  s ? c() : fr(c);
3816
3816
  }
3817
- return _(() => {
3817
+ return I(() => {
3818
3818
  var c;
3819
3819
  const {
3820
3820
  theme: {
3821
- common: d,
3821
+ common: u,
3822
3822
  self: h,
3823
3823
  peers: p = {}
3824
3824
  } = {},
3825
- themeOverrides: m = {},
3826
- builtinThemeOverrides: f = {}
3825
+ themeOverrides: b = {},
3826
+ builtinThemeOverrides: d = {}
3827
3827
  } = o, {
3828
- common: b,
3828
+ common: m,
3829
3829
  peers: v
3830
- } = m, {
3831
- common: u = void 0,
3830
+ } = b, {
3831
+ common: f = void 0,
3832
3832
  [e]: {
3833
- common: C = void 0,
3834
- self: F = void 0,
3835
- peers: y = {}
3833
+ common: F = void 0,
3834
+ self: A = void 0,
3835
+ peers: x = {}
3836
3836
  } = {}
3837
3837
  } = l?.mergedThemeRef.value || {}, {
3838
- common: E = void 0,
3839
- [e]: L = {}
3838
+ common: w = void 0,
3839
+ [e]: _ = {}
3840
3840
  } = l?.mergedThemeOverridesRef.value || {}, {
3841
3841
  common: g,
3842
- peers: w = {}
3843
- } = L, z = qt({}, d || C || u || r.common, E, g, b), S = qt(
3842
+ peers: y = {}
3843
+ } = _, z = qt({}, u || F || f || r.common, w, g, m), C = qt(
3844
3844
  // {}, executed every time, no need for empty obj
3845
- (c = h || F || r.self) === null || c === void 0 ? void 0 : c(z),
3846
- f,
3847
- L,
3848
- m
3845
+ (c = h || A || r.self) === null || c === void 0 ? void 0 : c(z),
3846
+ d,
3847
+ _,
3848
+ b
3849
3849
  );
3850
3850
  return {
3851
3851
  common: z,
3852
- self: S,
3853
- peers: qt({}, r.peers, y, p),
3854
- peerOverrides: qt({}, f.peers, w, v)
3852
+ self: C,
3853
+ peers: qt({}, r.peers, x, p),
3854
+ peerOverrides: qt({}, d.peers, y, v)
3855
3855
  };
3856
3856
  });
3857
3857
  }
@@ -3863,11 +3863,11 @@ pe.props = {
3863
3863
  const ch = ee({
3864
3864
  name: "ChevronRight",
3865
3865
  render() {
3866
- return A("svg", {
3866
+ return E("svg", {
3867
3867
  viewBox: "0 0 16 16",
3868
3868
  fill: "none",
3869
3869
  xmlns: "http://www.w3.org/2000/svg"
3870
- }, A("path", {
3870
+ }, E("path", {
3871
3871
  d: "M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",
3872
3872
  fill: "currentColor"
3873
3873
  }));
@@ -3892,7 +3892,7 @@ function uh({
3892
3892
  opacity: 1
3893
3893
  })];
3894
3894
  }
3895
- const I = {
3895
+ const O = {
3896
3896
  neutralBase: "#FFF",
3897
3897
  neutralInvertBase: "#000",
3898
3898
  neutralTextBase: "#000",
@@ -3939,7 +3939,7 @@ const I = {
3939
3939
  successDefault: "#18a058",
3940
3940
  successActive: "#0c7a43",
3941
3941
  successSuppl: "#36ad6a"
3942
- }, dh = Qe(I.neutralBase), is = Qe(I.neutralInvertBase), fh = `rgba(${is.slice(0, 3).join(", ")}, `;
3942
+ }, dh = Qe(O.neutralBase), is = Qe(O.neutralInvertBase), fh = `rgba(${is.slice(0, 3).join(", ")}, `;
3943
3943
  function Zo(e) {
3944
3944
  return `${fh + String(e)})`;
3945
3945
  }
@@ -3950,87 +3950,87 @@ function le(e) {
3950
3950
  const yt = Object.assign(Object.assign({
3951
3951
  name: "common"
3952
3952
  }, $n), {
3953
- baseColor: I.neutralBase,
3953
+ baseColor: O.neutralBase,
3954
3954
  // primary color
3955
- primaryColor: I.primaryDefault,
3956
- primaryColorHover: I.primaryHover,
3957
- primaryColorPressed: I.primaryActive,
3958
- primaryColorSuppl: I.primarySuppl,
3955
+ primaryColor: O.primaryDefault,
3956
+ primaryColorHover: O.primaryHover,
3957
+ primaryColorPressed: O.primaryActive,
3958
+ primaryColorSuppl: O.primarySuppl,
3959
3959
  // info color
3960
- infoColor: I.infoDefault,
3961
- infoColorHover: I.infoHover,
3962
- infoColorPressed: I.infoActive,
3963
- infoColorSuppl: I.infoSuppl,
3960
+ infoColor: O.infoDefault,
3961
+ infoColorHover: O.infoHover,
3962
+ infoColorPressed: O.infoActive,
3963
+ infoColorSuppl: O.infoSuppl,
3964
3964
  // success color
3965
- successColor: I.successDefault,
3966
- successColorHover: I.successHover,
3967
- successColorPressed: I.successActive,
3968
- successColorSuppl: I.successSuppl,
3965
+ successColor: O.successDefault,
3966
+ successColorHover: O.successHover,
3967
+ successColorPressed: O.successActive,
3968
+ successColorSuppl: O.successSuppl,
3969
3969
  // warning color
3970
- warningColor: I.warningDefault,
3971
- warningColorHover: I.warningHover,
3972
- warningColorPressed: I.warningActive,
3973
- warningColorSuppl: I.warningSuppl,
3970
+ warningColor: O.warningDefault,
3971
+ warningColorHover: O.warningHover,
3972
+ warningColorPressed: O.warningActive,
3973
+ warningColorSuppl: O.warningSuppl,
3974
3974
  // error color
3975
- errorColor: I.errorDefault,
3976
- errorColorHover: I.errorHover,
3977
- errorColorPressed: I.errorActive,
3978
- errorColorSuppl: I.errorSuppl,
3975
+ errorColor: O.errorDefault,
3976
+ errorColorHover: O.errorHover,
3977
+ errorColorPressed: O.errorActive,
3978
+ errorColorSuppl: O.errorSuppl,
3979
3979
  // text color
3980
- textColorBase: I.neutralTextBase,
3980
+ textColorBase: O.neutralTextBase,
3981
3981
  textColor1: "rgb(31, 34, 37)",
3982
3982
  textColor2: "rgb(51, 54, 57)",
3983
3983
  textColor3: "rgb(118, 124, 130)",
3984
3984
  // textColor4: neutral(base.alpha4), // disabled, placeholder, icon
3985
3985
  // textColor5: neutral(base.alpha5),
3986
- textColorDisabled: le(I.alpha4),
3987
- placeholderColor: le(I.alpha4),
3988
- placeholderColorDisabled: le(I.alpha5),
3989
- iconColor: le(I.alpha4),
3990
- iconColorHover: jt(le(I.alpha4), {
3986
+ textColorDisabled: le(O.alpha4),
3987
+ placeholderColor: le(O.alpha4),
3988
+ placeholderColorDisabled: le(O.alpha5),
3989
+ iconColor: le(O.alpha4),
3990
+ iconColorHover: jt(le(O.alpha4), {
3991
3991
  lightness: 0.75
3992
3992
  }),
3993
- iconColorPressed: jt(le(I.alpha4), {
3993
+ iconColorPressed: jt(le(O.alpha4), {
3994
3994
  lightness: 0.9
3995
3995
  }),
3996
- iconColorDisabled: le(I.alpha5),
3997
- opacity1: I.alpha1,
3998
- opacity2: I.alpha2,
3999
- opacity3: I.alpha3,
4000
- opacity4: I.alpha4,
4001
- opacity5: I.alpha5,
3996
+ iconColorDisabled: le(O.alpha5),
3997
+ opacity1: O.alpha1,
3998
+ opacity2: O.alpha2,
3999
+ opacity3: O.alpha3,
4000
+ opacity4: O.alpha4,
4001
+ opacity5: O.alpha5,
4002
4002
  dividerColor: "rgb(239, 239, 245)",
4003
4003
  borderColor: "rgb(224, 224, 230)",
4004
4004
  // close
4005
- closeIconColor: le(Number(I.alphaClose)),
4006
- closeIconColorHover: le(Number(I.alphaClose)),
4007
- closeIconColorPressed: le(Number(I.alphaClose)),
4005
+ closeIconColor: le(Number(O.alphaClose)),
4006
+ closeIconColorHover: le(Number(O.alphaClose)),
4007
+ closeIconColorPressed: le(Number(O.alphaClose)),
4008
4008
  closeColorHover: "rgba(0, 0, 0, .09)",
4009
4009
  closeColorPressed: "rgba(0, 0, 0, .13)",
4010
4010
  // clear
4011
- clearColor: le(I.alpha4),
4012
- clearColorHover: jt(le(I.alpha4), {
4011
+ clearColor: le(O.alpha4),
4012
+ clearColorHover: jt(le(O.alpha4), {
4013
4013
  lightness: 0.75
4014
4014
  }),
4015
- clearColorPressed: jt(le(I.alpha4), {
4015
+ clearColorPressed: jt(le(O.alpha4), {
4016
4016
  lightness: 0.9
4017
4017
  }),
4018
- scrollbarColor: Zo(I.alphaScrollbar),
4019
- scrollbarColorHover: Zo(I.alphaScrollbarHover),
4018
+ scrollbarColor: Zo(O.alphaScrollbar),
4019
+ scrollbarColorHover: Zo(O.alphaScrollbarHover),
4020
4020
  scrollbarWidth: "5px",
4021
4021
  scrollbarHeight: "5px",
4022
4022
  scrollbarBorderRadius: "5px",
4023
- progressRailColor: le(I.alphaProgressRail),
4023
+ progressRailColor: le(O.alphaProgressRail),
4024
4024
  railColor: "rgb(219, 219, 223)",
4025
- popoverColor: I.neutralPopover,
4026
- tableColor: I.neutralCard,
4027
- cardColor: I.neutralCard,
4028
- modalColor: I.neutralModal,
4029
- bodyColor: I.neutralBody,
4025
+ popoverColor: O.neutralPopover,
4026
+ tableColor: O.neutralCard,
4027
+ cardColor: O.neutralCard,
4028
+ modalColor: O.neutralModal,
4029
+ bodyColor: O.neutralBody,
4030
4030
  tagColor: "#eee",
4031
- avatarColor: le(I.alphaAvatar),
4031
+ avatarColor: le(O.alphaAvatar),
4032
4032
  invertedColor: "rgb(0, 20, 40)",
4033
- inputColor: le(I.alphaInput),
4033
+ inputColor: le(O.alphaInput),
4034
4034
  codeColor: "rgb(244, 244, 248)",
4035
4035
  tabColor: "rgb(247, 247, 250)",
4036
4036
  actionColor: "rgb(250, 250, 252)",
@@ -4040,7 +4040,7 @@ const yt = Object.assign(Object.assign({
4040
4040
  tableColorHover: "rgba(0, 0, 100, 0.03)",
4041
4041
  tableColorStriped: "rgba(0, 0, 100, 0.02)",
4042
4042
  pressedColor: "rgb(237, 237, 239)",
4043
- opacityDisabled: I.alphaDisabled,
4043
+ opacityDisabled: O.alphaDisabled,
4044
4044
  inputColorDisabled: "rgb(250, 250, 252)",
4045
4045
  // secondary button color
4046
4046
  // can also be used in tertiary button & quaternary button
@@ -4191,88 +4191,88 @@ const vh = {
4191
4191
  mergedClsPrefixRef: t,
4192
4192
  inlineThemeDisabled: n,
4193
4193
  mergedRtlRef: r
4194
- } = bt(e), o = oh("Scrollbar", r, t), i = R(null), s = R(null), l = R(null), a = R(null), c = R(null), d = R(null), h = R(null), p = R(null), m = R(null), f = R(null), b = R(null), v = R(0), u = R(0), C = R(!1), F = R(!1);
4195
- let y = !1, E = !1, L, g, w = 0, z = 0, S = 0, N = 0;
4196
- const M = ac(), k = pe("Scrollbar", "-scrollbar", gh, vh, e, t), O = _(() => {
4194
+ } = bt(e), o = oh("Scrollbar", r, t), i = P(null), s = P(null), l = P(null), a = P(null), c = P(null), u = P(null), h = P(null), p = P(null), b = P(null), d = P(null), m = P(null), v = P(0), f = P(0), F = P(!1), A = P(!1);
4195
+ let x = !1, w = !1, _, g, y = 0, z = 0, C = 0, N = 0;
4196
+ const M = ac(), k = pe("Scrollbar", "-scrollbar", gh, vh, e, t), L = I(() => {
4197
4197
  const {
4198
4198
  value: $
4199
4199
  } = p, {
4200
4200
  value: B
4201
- } = d, {
4201
+ } = u, {
4202
4202
  value: D
4203
- } = f;
4203
+ } = d;
4204
4204
  return $ === null || B === null || D === null ? 0 : Math.min($, D * $ / B + Jr(k.value.self.width) * 1.5);
4205
- }), x = _(() => `${O.value}px`), P = _(() => {
4205
+ }), S = I(() => `${L.value}px`), R = I(() => {
4206
4206
  const {
4207
4207
  value: $
4208
- } = m, {
4208
+ } = b, {
4209
4209
  value: B
4210
4210
  } = h, {
4211
4211
  value: D
4212
- } = b;
4212
+ } = m;
4213
4213
  return $ === null || B === null || D === null ? 0 : D * $ / B + Jr(k.value.self.height) * 1.5;
4214
- }), T = _(() => `${P.value}px`), j = _(() => {
4214
+ }), T = I(() => `${R.value}px`), j = I(() => {
4215
4215
  const {
4216
4216
  value: $
4217
4217
  } = p, {
4218
4218
  value: B
4219
4219
  } = v, {
4220
4220
  value: D
4221
- } = d, {
4221
+ } = u, {
4222
4222
  value: G
4223
- } = f;
4223
+ } = d;
4224
4224
  if ($ === null || D === null || G === null)
4225
4225
  return 0;
4226
4226
  {
4227
4227
  const ne = D - $;
4228
- return ne ? B / ne * (G - O.value) : 0;
4228
+ return ne ? B / ne * (G - L.value) : 0;
4229
4229
  }
4230
- }), V = _(() => `${j.value}px`), U = _(() => {
4230
+ }), V = I(() => `${j.value}px`), U = I(() => {
4231
4231
  const {
4232
4232
  value: $
4233
- } = m, {
4233
+ } = b, {
4234
4234
  value: B
4235
- } = u, {
4235
+ } = f, {
4236
4236
  value: D
4237
4237
  } = h, {
4238
4238
  value: G
4239
- } = b;
4239
+ } = m;
4240
4240
  if ($ === null || D === null || G === null)
4241
4241
  return 0;
4242
4242
  {
4243
4243
  const ne = D - $;
4244
- return ne ? B / ne * (G - P.value) : 0;
4244
+ return ne ? B / ne * (G - R.value) : 0;
4245
4245
  }
4246
- }), ue = _(() => `${U.value}px`), ge = _(() => {
4246
+ }), ue = I(() => `${U.value}px`), ge = I(() => {
4247
4247
  const {
4248
4248
  value: $
4249
4249
  } = p, {
4250
4250
  value: B
4251
- } = d;
4251
+ } = u;
4252
4252
  return $ !== null && B !== null && B > $;
4253
- }), Rt = _(() => {
4253
+ }), Rt = I(() => {
4254
4254
  const {
4255
4255
  value: $
4256
- } = m, {
4256
+ } = b, {
4257
4257
  value: B
4258
4258
  } = h;
4259
4259
  return $ !== null && B !== null && B > $;
4260
- }), En = _(() => {
4260
+ }), En = I(() => {
4261
4261
  const {
4262
4262
  trigger: $
4263
4263
  } = e;
4264
- return $ === "none" || C.value;
4265
- }), An = _(() => {
4264
+ return $ === "none" || F.value;
4265
+ }), An = I(() => {
4266
4266
  const {
4267
4267
  trigger: $
4268
4268
  } = e;
4269
- return $ === "none" || F.value;
4270
- }), Ae = _(() => {
4269
+ return $ === "none" || A.value;
4270
+ }), Ae = I(() => {
4271
4271
  const {
4272
4272
  container: $
4273
4273
  } = e;
4274
4274
  return $ ? $() : s.value;
4275
- }), Y = _(() => {
4275
+ }), Y = I(() => {
4276
4276
  const {
4277
4277
  content: $
4278
4278
  } = e;
@@ -4297,7 +4297,7 @@ const vh = {
4297
4297
  }, Or = pc(() => {
4298
4298
  e.container || Ir({
4299
4299
  top: v.value,
4300
- left: u.value
4300
+ left: f.value
4301
4301
  });
4302
4302
  }), gs = () => {
4303
4303
  Or.isDeactivated || Ue();
@@ -4351,19 +4351,19 @@ const vh = {
4351
4351
  }
4352
4352
  function xs() {
4353
4353
  g !== void 0 && window.clearTimeout(g), g = window.setTimeout(() => {
4354
- F.value = !1;
4354
+ A.value = !1;
4355
4355
  }, e.duration);
4356
4356
  }
4357
4357
  function Ss() {
4358
- L !== void 0 && window.clearTimeout(L), L = window.setTimeout(() => {
4359
- C.value = !1;
4358
+ _ !== void 0 && window.clearTimeout(_), _ = window.setTimeout(() => {
4359
+ F.value = !1;
4360
4360
  }, e.duration);
4361
4361
  }
4362
4362
  function Cs() {
4363
- L !== void 0 && window.clearTimeout(L), C.value = !0;
4363
+ _ !== void 0 && window.clearTimeout(_), F.value = !0;
4364
4364
  }
4365
4365
  function $s() {
4366
- g !== void 0 && window.clearTimeout(g), F.value = !0;
4366
+ g !== void 0 && window.clearTimeout(g), A.value = !0;
4367
4367
  }
4368
4368
  function zs($) {
4369
4369
  const {
@@ -4375,35 +4375,35 @@ const vh = {
4375
4375
  const {
4376
4376
  value: $
4377
4377
  } = Ae;
4378
- $ && (v.value = $.scrollTop, u.value = $.scrollLeft * (o?.value ? -1 : 1));
4378
+ $ && (v.value = $.scrollTop, f.value = $.scrollLeft * (o?.value ? -1 : 1));
4379
4379
  }
4380
4380
  function Fs() {
4381
4381
  const {
4382
4382
  value: $
4383
4383
  } = Y;
4384
- $ && (d.value = $.offsetHeight, h.value = $.offsetWidth);
4384
+ $ && (u.value = $.offsetHeight, h.value = $.offsetWidth);
4385
4385
  const {
4386
4386
  value: B
4387
4387
  } = Ae;
4388
- B && (p.value = B.offsetHeight, m.value = B.offsetWidth);
4388
+ B && (p.value = B.offsetHeight, b.value = B.offsetWidth);
4389
4389
  const {
4390
4390
  value: D
4391
4391
  } = c, {
4392
4392
  value: G
4393
4393
  } = a;
4394
- D && (b.value = D.offsetWidth), G && (f.value = G.offsetHeight);
4394
+ D && (m.value = D.offsetWidth), G && (d.value = G.offsetHeight);
4395
4395
  }
4396
4396
  function Pr() {
4397
4397
  const {
4398
4398
  value: $
4399
4399
  } = Ae;
4400
- $ && (v.value = $.scrollTop, u.value = $.scrollLeft * (o?.value ? -1 : 1), p.value = $.offsetHeight, m.value = $.offsetWidth, d.value = $.scrollHeight, h.value = $.scrollWidth);
4400
+ $ && (v.value = $.scrollTop, f.value = $.scrollLeft * (o?.value ? -1 : 1), p.value = $.offsetHeight, b.value = $.offsetWidth, u.value = $.scrollHeight, h.value = $.scrollWidth);
4401
4401
  const {
4402
4402
  value: B
4403
4403
  } = c, {
4404
4404
  value: D
4405
4405
  } = a;
4406
- B && (b.value = B.offsetWidth), D && (f.value = D.offsetHeight);
4406
+ B && (m.value = B.offsetWidth), D && (d.value = D.offsetHeight);
4407
4407
  }
4408
4408
  function Ue() {
4409
4409
  e.scrollable && (e.useUnifiedContainer ? Pr() : (Fs(), Lr()));
@@ -4413,20 +4413,20 @@ const vh = {
4413
4413
  return !(!((B = i.value) === null || B === void 0) && B.contains(sn($)));
4414
4414
  }
4415
4415
  function Es($) {
4416
- $.preventDefault(), $.stopPropagation(), E = !0, oe("mousemove", window, kr, !0), oe("mouseup", window, Dr, !0), z = u.value, S = o?.value ? window.innerWidth - $.clientX : $.clientX;
4416
+ $.preventDefault(), $.stopPropagation(), w = !0, oe("mousemove", window, kr, !0), oe("mouseup", window, Dr, !0), z = f.value, C = o?.value ? window.innerWidth - $.clientX : $.clientX;
4417
4417
  }
4418
4418
  function kr($) {
4419
- if (!E) return;
4420
- L !== void 0 && window.clearTimeout(L), g !== void 0 && window.clearTimeout(g);
4419
+ if (!w) return;
4420
+ _ !== void 0 && window.clearTimeout(_), g !== void 0 && window.clearTimeout(g);
4421
4421
  const {
4422
4422
  value: B
4423
- } = m, {
4423
+ } = b, {
4424
4424
  value: D
4425
4425
  } = h, {
4426
4426
  value: G
4427
- } = P;
4427
+ } = R;
4428
4428
  if (B === null || D === null) return;
4429
- const de = (o?.value ? window.innerWidth - $.clientX - S : $.clientX - S) * (D - B) / (B - G), xe = D - B;
4429
+ const de = (o?.value ? window.innerWidth - $.clientX - C : $.clientX - C) * (D - B) / (B - G), xe = D - B;
4430
4430
  let Z = z + de;
4431
4431
  Z = Math.min(xe, Z), Z = Math.max(Z, 0);
4432
4432
  const {
@@ -4441,24 +4441,24 @@ const vh = {
4441
4441
  }
4442
4442
  }
4443
4443
  function Dr($) {
4444
- $.preventDefault(), $.stopPropagation(), J("mousemove", window, kr, !0), J("mouseup", window, Dr, !0), E = !1, Ue(), Rr($) && Mn();
4444
+ $.preventDefault(), $.stopPropagation(), J("mousemove", window, kr, !0), J("mouseup", window, Dr, !0), w = !1, Ue(), Rr($) && Mn();
4445
4445
  }
4446
4446
  function As($) {
4447
- $.preventDefault(), $.stopPropagation(), y = !0, oe("mousemove", window, Tn, !0), oe("mouseup", window, Bn, !0), w = v.value, N = $.clientY;
4447
+ $.preventDefault(), $.stopPropagation(), x = !0, oe("mousemove", window, Tn, !0), oe("mouseup", window, Bn, !0), y = v.value, N = $.clientY;
4448
4448
  }
4449
4449
  function Tn($) {
4450
- if (!y) return;
4451
- L !== void 0 && window.clearTimeout(L), g !== void 0 && window.clearTimeout(g);
4450
+ if (!x) return;
4451
+ _ !== void 0 && window.clearTimeout(_), g !== void 0 && window.clearTimeout(g);
4452
4452
  const {
4453
4453
  value: B
4454
4454
  } = p, {
4455
4455
  value: D
4456
- } = d, {
4456
+ } = u, {
4457
4457
  value: G
4458
- } = O;
4458
+ } = L;
4459
4459
  if (B === null || D === null) return;
4460
4460
  const de = ($.clientY - N) * (D - B) / (B - G), xe = D - B;
4461
- let Z = w + de;
4461
+ let Z = y + de;
4462
4462
  Z = Math.min(xe, Z), Z = Math.max(Z, 0);
4463
4463
  const {
4464
4464
  value: me
@@ -4466,7 +4466,7 @@ const vh = {
4466
4466
  me && (me.scrollTop = Z);
4467
4467
  }
4468
4468
  function Bn($) {
4469
- $.preventDefault(), $.stopPropagation(), J("mousemove", window, Tn, !0), J("mouseup", window, Bn, !0), y = !1, Ue(), Rr($) && Mn();
4469
+ $.preventDefault(), $.stopPropagation(), J("mousemove", window, Tn, !0), J("mouseup", window, Bn, !0), x = !1, Ue(), Rr($) && Mn();
4470
4470
  }
4471
4471
  pt(() => {
4472
4472
  const {
@@ -4484,9 +4484,9 @@ const vh = {
4484
4484
  }), Ke(() => {
4485
4485
  e.container || Ue();
4486
4486
  }), Be(() => {
4487
- L !== void 0 && window.clearTimeout(L), g !== void 0 && window.clearTimeout(g), J("mousemove", window, Tn, !0), J("mouseup", window, Bn, !0);
4487
+ _ !== void 0 && window.clearTimeout(_), g !== void 0 && window.clearTimeout(g), J("mousemove", window, Tn, !0), J("mouseup", window, Bn, !0);
4488
4488
  });
4489
- const Nr = _(() => {
4489
+ const Nr = I(() => {
4490
4490
  const {
4491
4491
  common: {
4492
4492
  cubicBezierEaseInOut: $
@@ -4568,7 +4568,7 @@ const vh = {
4568
4568
  xRailRef: c,
4569
4569
  needYBar: ge,
4570
4570
  needXBar: Rt,
4571
- yBarSizePx: x,
4571
+ yBarSizePx: S,
4572
4572
  xBarSizePx: T,
4573
4573
  yBarTopPx: V,
4574
4574
  xBarLeftPx: ue,
@@ -4598,16 +4598,16 @@ const vh = {
4598
4598
  xScrollable: a
4599
4599
  } = this;
4600
4600
  if (!this.scrollable) return (e = t.default) === null || e === void 0 ? void 0 : e.call(t);
4601
- const c = this.trigger === "none", d = (m, f) => A("div", {
4601
+ const c = this.trigger === "none", u = (b, d) => E("div", {
4602
4602
  ref: "yRailRef",
4603
- class: [`${n}-scrollbar-rail`, `${n}-scrollbar-rail--vertical`, `${n}-scrollbar-rail--vertical--${s}`, m],
4603
+ class: [`${n}-scrollbar-rail`, `${n}-scrollbar-rail--vertical`, `${n}-scrollbar-rail--vertical--${s}`, b],
4604
4604
  "data-scrollbar-rail": !0,
4605
- style: [f || "", this.verticalRailStyle],
4605
+ style: [d || "", this.verticalRailStyle],
4606
4606
  "aria-hidden": !0
4607
- }, A(c ? zo : nn, c ? null : {
4607
+ }, E(c ? zo : nn, c ? null : {
4608
4608
  name: "fade-in-transition"
4609
4609
  }, {
4610
- default: () => this.needYBar && this.isShowYBar && !this.isIos ? A("div", {
4610
+ default: () => this.needYBar && this.isShowYBar && !this.isIos ? E("div", {
4611
4611
  class: `${n}-scrollbar-rail__scrollbar`,
4612
4612
  style: {
4613
4613
  height: this.yBarSizePx,
@@ -4616,25 +4616,25 @@ const vh = {
4616
4616
  onMousedown: this.handleYScrollMouseDown
4617
4617
  }) : null
4618
4618
  })), h = () => {
4619
- var m, f;
4620
- return (m = this.onRender) === null || m === void 0 || m.call(this), A("div", gt(this.$attrs, {
4619
+ var b, d;
4620
+ return (b = this.onRender) === null || b === void 0 || b.call(this), E("div", gt(this.$attrs, {
4621
4621
  role: "none",
4622
4622
  ref: "wrapperRef",
4623
4623
  class: [`${n}-scrollbar`, this.themeClass, o && `${n}-scrollbar--rtl`],
4624
4624
  style: this.cssVars,
4625
4625
  onMouseenter: r ? void 0 : this.handleMouseEnterWrapper,
4626
4626
  onMouseleave: r ? void 0 : this.handleMouseLeaveWrapper
4627
- }), [this.container ? (f = t.default) === null || f === void 0 ? void 0 : f.call(t) : A("div", {
4627
+ }), [this.container ? (d = t.default) === null || d === void 0 ? void 0 : d.call(t) : E("div", {
4628
4628
  role: "none",
4629
4629
  ref: "containerRef",
4630
4630
  class: [`${n}-scrollbar-container`, this.containerClass],
4631
4631
  style: this.containerStyle,
4632
4632
  onScroll: this.handleScroll,
4633
4633
  onWheel: this.onWheel
4634
- }, A(yo, {
4634
+ }, E(yo, {
4635
4635
  onResize: this.handleContentResize
4636
4636
  }, {
4637
- default: () => A("div", {
4637
+ default: () => E("div", {
4638
4638
  ref: "contentRef",
4639
4639
  role: "none",
4640
4640
  style: [{
@@ -4642,16 +4642,16 @@ const vh = {
4642
4642
  }, this.contentStyle],
4643
4643
  class: [`${n}-scrollbar-content`, this.contentClass]
4644
4644
  }, t)
4645
- })), i ? null : d(void 0, void 0), a && A("div", {
4645
+ })), i ? null : u(void 0, void 0), a && E("div", {
4646
4646
  ref: "xRailRef",
4647
4647
  class: [`${n}-scrollbar-rail`, `${n}-scrollbar-rail--horizontal`, `${n}-scrollbar-rail--horizontal--${l}`],
4648
4648
  style: this.horizontalRailStyle,
4649
4649
  "data-scrollbar-rail": !0,
4650
4650
  "aria-hidden": !0
4651
- }, A(c ? zo : nn, c ? null : {
4651
+ }, E(c ? zo : nn, c ? null : {
4652
4652
  name: "fade-in-transition"
4653
4653
  }, {
4654
- default: () => this.needXBar && this.isShowXBar && !this.isIos ? A("div", {
4654
+ default: () => this.needXBar && this.isShowXBar && !this.isIos ? E("div", {
4655
4655
  class: `${n}-scrollbar-rail__scrollbar`,
4656
4656
  style: {
4657
4657
  width: this.xBarSizePx,
@@ -4661,12 +4661,12 @@ const vh = {
4661
4661
  onMousedown: this.handleXScrollMouseDown
4662
4662
  }) : null
4663
4663
  }))]);
4664
- }, p = this.container ? h() : A(yo, {
4664
+ }, p = this.container ? h() : E(yo, {
4665
4665
  onResize: this.handleContainerResize
4666
4666
  }, {
4667
4667
  default: h
4668
4668
  });
4669
- return i ? A(_e, null, p, d(this.themeClass, this.cssVars)) : p;
4669
+ return i ? E(_e, null, p, u(this.themeClass, this.cssVars)) : p;
4670
4670
  }
4671
4671
  }), ss = bh;
4672
4672
  function Jo(e) {
@@ -4782,52 +4782,52 @@ function Un(e, t) {
4782
4782
  checkedKeys: Array.from(n),
4783
4783
  indeterminateKeys: Array.from(i)
4784
4784
  };
4785
- const { levelTreeNodeMap: d } = t;
4785
+ const { levelTreeNodeMap: u } = t;
4786
4786
  let h;
4787
4787
  o !== void 0 ? h = Oh(o, n, t, c) : r !== void 0 ? h = _h(r, n, t, c) : h = vn(n, t, c, !1);
4788
- const p = a === "parent", m = a === "child" || l, f = h, b = /* @__PURE__ */ new Set(), v = Math.max.apply(null, Array.from(d.keys()));
4789
- for (let u = v; u >= 0; u -= 1) {
4790
- const C = u === 0, F = d.get(u);
4791
- for (const y of F) {
4792
- if (y.isLeaf)
4788
+ const p = a === "parent", b = a === "child" || l, d = h, m = /* @__PURE__ */ new Set(), v = Math.max.apply(null, Array.from(u.keys()));
4789
+ for (let f = v; f >= 0; f -= 1) {
4790
+ const F = f === 0, A = u.get(f);
4791
+ for (const x of A) {
4792
+ if (x.isLeaf)
4793
4793
  continue;
4794
- const { key: E, shallowLoaded: L } = y;
4795
- if (m && L && y.children.forEach((S) => {
4796
- !S.disabled && !S.isLeaf && S.shallowLoaded && f.has(S.key) && f.delete(S.key);
4797
- }), y.disabled || !L)
4794
+ const { key: w, shallowLoaded: _ } = x;
4795
+ if (b && _ && x.children.forEach((C) => {
4796
+ !C.disabled && !C.isLeaf && C.shallowLoaded && d.has(C.key) && d.delete(C.key);
4797
+ }), x.disabled || !_)
4798
4798
  continue;
4799
- let g = !0, w = !1, z = !0;
4800
- for (const S of y.children) {
4801
- const N = S.key;
4802
- if (!S.disabled) {
4803
- if (z && (z = !1), f.has(N))
4804
- w = !0;
4805
- else if (b.has(N)) {
4806
- w = !0, g = !1;
4799
+ let g = !0, y = !1, z = !0;
4800
+ for (const C of x.children) {
4801
+ const N = C.key;
4802
+ if (!C.disabled) {
4803
+ if (z && (z = !1), d.has(N))
4804
+ y = !0;
4805
+ else if (m.has(N)) {
4806
+ y = !0, g = !1;
4807
4807
  break;
4808
- } else if (g = !1, w)
4808
+ } else if (g = !1, y)
4809
4809
  break;
4810
4810
  }
4811
4811
  }
4812
- g && !z ? (p && y.children.forEach((S) => {
4813
- !S.disabled && f.has(S.key) && f.delete(S.key);
4814
- }), f.add(E)) : w && b.add(E), C && m && f.has(E) && f.delete(E);
4812
+ g && !z ? (p && x.children.forEach((C) => {
4813
+ !C.disabled && d.has(C.key) && d.delete(C.key);
4814
+ }), d.add(w)) : y && m.add(w), F && b && d.has(w) && d.delete(w);
4815
4815
  }
4816
4816
  }
4817
4817
  return {
4818
- checkedKeys: Array.from(f),
4819
- indeterminateKeys: Array.from(b)
4818
+ checkedKeys: Array.from(d),
4819
+ indeterminateKeys: Array.from(m)
4820
4820
  };
4821
4821
  }
4822
4822
  function vn(e, t, n, r) {
4823
4823
  const { treeNodeMap: o, getChildren: i } = t, s = /* @__PURE__ */ new Set(), l = new Set(e);
4824
4824
  return e.forEach((a) => {
4825
4825
  const c = o.get(a);
4826
- c !== void 0 && ls(c, (d) => {
4827
- if (d.disabled)
4826
+ c !== void 0 && ls(c, (u) => {
4827
+ if (u.disabled)
4828
4828
  return ur.STOP;
4829
- const { key: h } = d;
4830
- if (!s.has(h) && (s.add(h), l.add(h), Fh(d.rawNode, i))) {
4829
+ const { key: h } = u;
4830
+ if (!s.has(h) && (s.add(h), l.add(h), Fh(u.rawNode, i))) {
4831
4831
  if (r)
4832
4832
  return ur.STOP;
4833
4833
  if (!n)
@@ -4880,12 +4880,12 @@ function Qo(e, t, { loop: n = !1, includeDisabled: r = !1 } = {}) {
4880
4880
  return;
4881
4881
  }
4882
4882
  if (c.isGroup) {
4883
- const d = Tr(c, i);
4884
- d !== null ? l = d : a(o(c, n));
4883
+ const u = Tr(c, i);
4884
+ u !== null ? l = u : a(o(c, n));
4885
4885
  } else {
4886
- const d = o(c, !1);
4887
- if (d !== null)
4888
- a(d);
4886
+ const u = o(c, !1);
4887
+ if (u !== null)
4888
+ a(u);
4889
4889
  else {
4890
4890
  const h = Dh(c);
4891
4891
  h?.isGroup ? a(o(h, n)) : n && a(o(c, !0));
@@ -4910,9 +4910,9 @@ function Tr(e, t = {}) {
4910
4910
  const c = r[a];
4911
4911
  if (!c.disabled && !c.ignored)
4912
4912
  if (c.isGroup) {
4913
- const d = Tr(c, t);
4914
- if (d !== null)
4915
- return d;
4913
+ const u = Tr(c, t);
4914
+ if (u !== null)
4915
+ return u;
4916
4916
  } else
4917
4917
  return c;
4918
4918
  }
@@ -4956,21 +4956,21 @@ function jh(e, t) {
4956
4956
  function as(e, t, n, r, o, i = null, s = 0) {
4957
4957
  const l = [];
4958
4958
  return e.forEach((a, c) => {
4959
- var d;
4959
+ var u;
4960
4960
  rn.env.NODE_ENV !== "production" && Eh(a, o) && console.error("[treemate]: node", a, "is invalid");
4961
4961
  const h = Object.create(r);
4962
4962
  if (h.rawNode = a, h.siblings = l, h.level = s, h.index = c, h.isFirstChild = c === 0, h.isLastChild = c + 1 === e.length, h.parent = i, !h.ignored) {
4963
4963
  const p = o(a);
4964
4964
  Array.isArray(p) && (h.children = as(p, t, n, r, o, h, s + 1));
4965
4965
  }
4966
- l.push(h), t.set(h.key, h), n.has(s) || n.set(s, []), (d = n.get(s)) === null || d === void 0 || d.push(h);
4966
+ l.push(h), t.set(h.key, h), n.has(s) || n.set(s, []), (u = n.get(s)) === null || u === void 0 || u.push(h);
4967
4967
  }), l;
4968
4968
  }
4969
4969
  function Wh(e, t = {}) {
4970
4970
  var n;
4971
- const r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), { getDisabled: i = zh, getIgnored: s = Ch, getIsGroup: l = Th, getKey: a = Sh } = t, c = (n = t.getChildren) !== null && n !== void 0 ? n : xh, d = t.ignoreEmptyChildren ? (y) => {
4972
- const E = c(y);
4973
- return Array.isArray(E) ? E.length ? E : null : E;
4971
+ const r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), { getDisabled: i = zh, getIgnored: s = Ch, getIsGroup: l = Th, getKey: a = Sh } = t, c = (n = t.getChildren) !== null && n !== void 0 ? n : xh, u = t.ignoreEmptyChildren ? (x) => {
4972
+ const w = c(x);
4973
+ return Array.isArray(w) ? w.length ? w : null : w;
4974
4974
  } : c, h = Object.assign({
4975
4975
  get key() {
4976
4976
  return a(this.rawNode);
@@ -4982,106 +4982,106 @@ function Wh(e, t = {}) {
4982
4982
  return l(this.rawNode);
4983
4983
  },
4984
4984
  get isLeaf() {
4985
- return yh(this.rawNode, d);
4985
+ return yh(this.rawNode, u);
4986
4986
  },
4987
4987
  get shallowLoaded() {
4988
- return $h(this.rawNode, d);
4988
+ return $h(this.rawNode, u);
4989
4989
  },
4990
4990
  get ignored() {
4991
4991
  return s(this.rawNode);
4992
4992
  },
4993
- contains(y) {
4994
- return jh(this, y);
4993
+ contains(x) {
4994
+ return jh(this, x);
4995
4995
  }
4996
- }, Nh), p = as(e, r, o, h, d);
4997
- function m(y) {
4998
- if (y == null)
4996
+ }, Nh), p = as(e, r, o, h, u);
4997
+ function b(x) {
4998
+ if (x == null)
4999
4999
  return null;
5000
- const E = r.get(y);
5001
- return E && !E.isGroup && !E.ignored ? E : null;
5000
+ const w = r.get(x);
5001
+ return w && !w.isGroup && !w.ignored ? w : null;
5002
5002
  }
5003
- function f(y) {
5004
- if (y == null)
5003
+ function d(x) {
5004
+ if (x == null)
5005
5005
  return null;
5006
- const E = r.get(y);
5007
- return E && !E.ignored ? E : null;
5006
+ const w = r.get(x);
5007
+ return w && !w.ignored ? w : null;
5008
5008
  }
5009
- function b(y, E) {
5010
- const L = f(y);
5011
- return L ? L.getPrev(E) : null;
5009
+ function m(x, w) {
5010
+ const _ = d(x);
5011
+ return _ ? _.getPrev(w) : null;
5012
5012
  }
5013
- function v(y, E) {
5014
- const L = f(y);
5015
- return L ? L.getNext(E) : null;
5013
+ function v(x, w) {
5014
+ const _ = d(x);
5015
+ return _ ? _.getNext(w) : null;
5016
5016
  }
5017
- function u(y) {
5018
- const E = f(y);
5019
- return E ? E.getParent() : null;
5017
+ function f(x) {
5018
+ const w = d(x);
5019
+ return w ? w.getParent() : null;
5020
5020
  }
5021
- function C(y) {
5022
- const E = f(y);
5023
- return E ? E.getChild() : null;
5021
+ function F(x) {
5022
+ const w = d(x);
5023
+ return w ? w.getChild() : null;
5024
5024
  }
5025
- const F = {
5025
+ const A = {
5026
5026
  treeNodes: p,
5027
5027
  treeNodeMap: r,
5028
5028
  levelTreeNodeMap: o,
5029
5029
  maxLevel: Math.max(...o.keys()),
5030
- getChildren: d,
5031
- getFlattenedNodes(y) {
5032
- return Hh(p, y);
5030
+ getChildren: u,
5031
+ getFlattenedNodes(x) {
5032
+ return Hh(p, x);
5033
5033
  },
5034
- getNode: m,
5035
- getPrev: b,
5034
+ getNode: b,
5035
+ getPrev: m,
5036
5036
  getNext: v,
5037
- getParent: u,
5038
- getChild: C,
5037
+ getParent: f,
5038
+ getChild: F,
5039
5039
  getFirstAvailableNode() {
5040
5040
  return Ph(p);
5041
5041
  },
5042
- getPath(y, E = {}) {
5043
- return Lh(y, E, F);
5042
+ getPath(x, w = {}) {
5043
+ return Lh(x, w, A);
5044
5044
  },
5045
- getCheckedKeys(y, E = {}) {
5046
- const { cascade: L = !0, leafOnly: g = !1, checkStrategy: w = "all", allowNotLoaded: z = !1 } = E;
5045
+ getCheckedKeys(x, w = {}) {
5046
+ const { cascade: _ = !0, leafOnly: g = !1, checkStrategy: y = "all", allowNotLoaded: z = !1 } = w;
5047
5047
  return Un({
5048
- checkedKeys: Kn(y),
5049
- indeterminateKeys: Vn(y),
5050
- cascade: L,
5048
+ checkedKeys: Kn(x),
5049
+ indeterminateKeys: Vn(x),
5050
+ cascade: _,
5051
5051
  leafOnly: g,
5052
- checkStrategy: w,
5052
+ checkStrategy: y,
5053
5053
  allowNotLoaded: z
5054
- }, F);
5054
+ }, A);
5055
5055
  },
5056
- check(y, E, L = {}) {
5057
- const { cascade: g = !0, leafOnly: w = !1, checkStrategy: z = "all", allowNotLoaded: S = !1 } = L;
5056
+ check(x, w, _ = {}) {
5057
+ const { cascade: g = !0, leafOnly: y = !1, checkStrategy: z = "all", allowNotLoaded: C = !1 } = _;
5058
5058
  return Un({
5059
- checkedKeys: Kn(E),
5060
- indeterminateKeys: Vn(E),
5061
- keysToCheck: y == null ? [] : Jo(y),
5059
+ checkedKeys: Kn(w),
5060
+ indeterminateKeys: Vn(w),
5061
+ keysToCheck: x == null ? [] : Jo(x),
5062
5062
  cascade: g,
5063
- leafOnly: w,
5063
+ leafOnly: y,
5064
5064
  checkStrategy: z,
5065
- allowNotLoaded: S
5066
- }, F);
5065
+ allowNotLoaded: C
5066
+ }, A);
5067
5067
  },
5068
- uncheck(y, E, L = {}) {
5069
- const { cascade: g = !0, leafOnly: w = !1, checkStrategy: z = "all", allowNotLoaded: S = !1 } = L;
5068
+ uncheck(x, w, _ = {}) {
5069
+ const { cascade: g = !0, leafOnly: y = !1, checkStrategy: z = "all", allowNotLoaded: C = !1 } = _;
5070
5070
  return Un({
5071
- checkedKeys: Kn(E),
5072
- indeterminateKeys: Vn(E),
5073
- keysToUncheck: y == null ? [] : Jo(y),
5071
+ checkedKeys: Kn(w),
5072
+ indeterminateKeys: Vn(w),
5073
+ keysToUncheck: x == null ? [] : Jo(x),
5074
5074
  cascade: g,
5075
- leafOnly: w,
5075
+ leafOnly: y,
5076
5076
  checkStrategy: z,
5077
- allowNotLoaded: S
5078
- }, F);
5077
+ allowNotLoaded: C
5078
+ }, A);
5079
5079
  },
5080
- getNonLeafKeys(y = {}) {
5081
- return wh(p, y);
5080
+ getNonLeafKeys(x = {}) {
5081
+ return wh(p, x);
5082
5082
  }
5083
5083
  };
5084
- return F;
5084
+ return A;
5085
5085
  }
5086
5086
  const {
5087
5087
  cubicBezierEaseIn: ei,
@@ -5330,11 +5330,11 @@ function us({
5330
5330
  arrowWrapperStyle: r,
5331
5331
  clsPrefix: o
5332
5332
  }) {
5333
- return A("div", {
5333
+ return E("div", {
5334
5334
  key: "__popover-arrow__",
5335
5335
  style: r,
5336
5336
  class: [`${o}-popover-arrow-wrapper`, n]
5337
- }, A("div", {
5337
+ }, E("div", {
5338
5338
  class: [`${o}-popover-arrow`, e],
5339
5339
  style: t
5340
5340
  }));
@@ -5351,42 +5351,42 @@ const Xh = ee({
5351
5351
  namespaceRef: r,
5352
5352
  mergedClsPrefixRef: o,
5353
5353
  inlineThemeDisabled: i
5354
- } = bt(e), s = pe("Popover", "-popover", Gh, Br, e, o), l = R(null), a = te("NPopover"), c = R(null), d = R(e.show), h = R(!1);
5354
+ } = bt(e), s = pe("Popover", "-popover", Gh, Br, e, o), l = P(null), a = te("NPopover"), c = P(null), u = P(e.show), h = P(!1);
5355
5355
  pt(() => {
5356
5356
  const {
5357
5357
  show: g
5358
5358
  } = e;
5359
5359
  g && !ou() && !e.internalDeactivateImmediately && (h.value = !0);
5360
5360
  });
5361
- const p = _(() => {
5361
+ const p = I(() => {
5362
5362
  const {
5363
5363
  trigger: g,
5364
- onClickoutside: w
5364
+ onClickoutside: y
5365
5365
  } = e, z = [], {
5366
5366
  positionManuallyRef: {
5367
- value: S
5367
+ value: C
5368
5368
  }
5369
5369
  } = a;
5370
- return S || (g === "click" && !w && z.push([ro, y, void 0, {
5370
+ return C || (g === "click" && !y && z.push([ro, x, void 0, {
5371
5371
  capture: !0
5372
- }]), g === "hover" && z.push([mc, F])), w && z.push([ro, y, void 0, {
5372
+ }]), g === "hover" && z.push([mc, A])), y && z.push([ro, x, void 0, {
5373
5373
  capture: !0
5374
5374
  }]), (e.displayDirective === "show" || e.animated && h.value) && z.push([Js, e.show]), z;
5375
- }), m = _(() => {
5375
+ }), b = I(() => {
5376
5376
  const {
5377
5377
  common: {
5378
5378
  cubicBezierEaseInOut: g,
5379
- cubicBezierEaseIn: w,
5379
+ cubicBezierEaseIn: y,
5380
5380
  cubicBezierEaseOut: z
5381
5381
  },
5382
5382
  self: {
5383
- space: S,
5383
+ space: C,
5384
5384
  spaceArrow: N,
5385
5385
  padding: M,
5386
5386
  fontSize: k,
5387
- textColor: O,
5388
- dividerColor: x,
5389
- color: P,
5387
+ textColor: L,
5388
+ dividerColor: S,
5389
+ color: R,
5390
5390
  boxShadow: T,
5391
5391
  borderRadius: j,
5392
5392
  arrowHeight: V,
@@ -5397,101 +5397,101 @@ const Xh = ee({
5397
5397
  return {
5398
5398
  "--n-box-shadow": T,
5399
5399
  "--n-bezier": g,
5400
- "--n-bezier-ease-in": w,
5400
+ "--n-bezier-ease-in": y,
5401
5401
  "--n-bezier-ease-out": z,
5402
5402
  "--n-font-size": k,
5403
- "--n-text-color": O,
5404
- "--n-color": P,
5405
- "--n-divider-color": x,
5403
+ "--n-text-color": L,
5404
+ "--n-color": R,
5405
+ "--n-divider-color": S,
5406
5406
  "--n-border-radius": j,
5407
5407
  "--n-arrow-height": V,
5408
5408
  "--n-arrow-offset": U,
5409
5409
  "--n-arrow-offset-vertical": ue,
5410
5410
  "--n-padding": M,
5411
- "--n-space": S,
5411
+ "--n-space": C,
5412
5412
  "--n-space-arrow": N
5413
5413
  };
5414
- }), f = _(() => {
5415
- const g = e.width === "trigger" ? void 0 : Jt(e.width), w = [];
5416
- g && w.push({
5414
+ }), d = I(() => {
5415
+ const g = e.width === "trigger" ? void 0 : Jt(e.width), y = [];
5416
+ g && y.push({
5417
5417
  width: g
5418
5418
  });
5419
5419
  const {
5420
5420
  maxWidth: z,
5421
- minWidth: S
5421
+ minWidth: C
5422
5422
  } = e;
5423
- return z && w.push({
5423
+ return z && y.push({
5424
5424
  maxWidth: Jt(z)
5425
- }), S && w.push({
5426
- maxWidth: Jt(S)
5427
- }), i || w.push(m.value), w;
5428
- }), b = i ? yn("popover", void 0, m, e) : void 0;
5425
+ }), C && y.push({
5426
+ maxWidth: Jt(C)
5427
+ }), i || y.push(b.value), y;
5428
+ }), m = i ? yn("popover", void 0, b, e) : void 0;
5429
5429
  a.setBodyInstance({
5430
5430
  syncPosition: v
5431
5431
  }), Be(() => {
5432
5432
  a.setBodyInstance(null);
5433
5433
  }), we(se(e, "show"), (g) => {
5434
- e.animated || (g ? d.value = !0 : d.value = !1);
5434
+ e.animated || (g ? u.value = !0 : u.value = !1);
5435
5435
  });
5436
5436
  function v() {
5437
5437
  var g;
5438
5438
  (g = l.value) === null || g === void 0 || g.syncPosition();
5439
5439
  }
5440
- function u(g) {
5440
+ function f(g) {
5441
5441
  e.trigger === "hover" && e.keepAliveOnHover && e.show && a.handleMouseEnter(g);
5442
5442
  }
5443
- function C(g) {
5443
+ function F(g) {
5444
5444
  e.trigger === "hover" && e.keepAliveOnHover && a.handleMouseLeave(g);
5445
5445
  }
5446
- function F(g) {
5447
- e.trigger === "hover" && !E().contains(sn(g)) && a.handleMouseMoveOutside(g);
5446
+ function A(g) {
5447
+ e.trigger === "hover" && !w().contains(sn(g)) && a.handleMouseMoveOutside(g);
5448
5448
  }
5449
- function y(g) {
5450
- (e.trigger === "click" && !E().contains(sn(g)) || e.onClickoutside) && a.handleClickOutside(g);
5449
+ function x(g) {
5450
+ (e.trigger === "click" && !w().contains(sn(g)) || e.onClickoutside) && a.handleClickOutside(g);
5451
5451
  }
5452
- function E() {
5452
+ function w() {
5453
5453
  return a.getTriggerElement();
5454
5454
  }
5455
5455
  Se(mn, c), Se(pr, null), Se(vr, null);
5456
- function L() {
5457
- if (b?.onRender(), !(e.displayDirective === "show" || e.show || e.animated && h.value))
5456
+ function _() {
5457
+ if (m?.onRender(), !(e.displayDirective === "show" || e.show || e.animated && h.value))
5458
5458
  return null;
5459
- let w;
5459
+ let y;
5460
5460
  const z = a.internalRenderBodyRef.value, {
5461
- value: S
5461
+ value: C
5462
5462
  } = o;
5463
5463
  if (z)
5464
- w = z(
5464
+ y = z(
5465
5465
  // The popover class and overlap class must exists, they will be used
5466
5466
  // to place the body & transition animation.
5467
5467
  // Shadow class exists for reuse box-shadow.
5468
- [`${S}-popover-shared`, b?.themeClass.value, e.overlap && `${S}-popover-shared--overlap`, e.showArrow && `${S}-popover-shared--show-arrow`, e.arrowPointToCenter && `${S}-popover-shared--center-arrow`],
5468
+ [`${C}-popover-shared`, m?.themeClass.value, e.overlap && `${C}-popover-shared--overlap`, e.showArrow && `${C}-popover-shared--show-arrow`, e.arrowPointToCenter && `${C}-popover-shared--center-arrow`],
5469
5469
  c,
5470
- f.value,
5471
- u,
5472
- C
5470
+ d.value,
5471
+ f,
5472
+ F
5473
5473
  );
5474
5474
  else {
5475
5475
  const {
5476
5476
  value: N
5477
5477
  } = a.extraClassRef, {
5478
5478
  internalTrapFocus: M
5479
- } = e, k = !$o(t.header) || !$o(t.footer), O = () => {
5480
- var x, P;
5481
- const T = k ? A(_e, null, Nn(t.header, (U) => U ? A("div", {
5482
- class: [`${S}-popover__header`, e.headerClass],
5479
+ } = e, k = !$o(t.header) || !$o(t.footer), L = () => {
5480
+ var S, R;
5481
+ const T = k ? E(_e, null, Nn(t.header, (U) => U ? E("div", {
5482
+ class: [`${C}-popover__header`, e.headerClass],
5483
5483
  style: e.headerStyle
5484
- }, U) : null), Nn(t.default, (U) => U ? A("div", {
5485
- class: [`${S}-popover__content`, e.contentClass],
5484
+ }, U) : null), Nn(t.default, (U) => U ? E("div", {
5485
+ class: [`${C}-popover__content`, e.contentClass],
5486
5486
  style: e.contentStyle
5487
- }, t) : null), Nn(t.footer, (U) => U ? A("div", {
5488
- class: [`${S}-popover__footer`, e.footerClass],
5487
+ }, t) : null), Nn(t.footer, (U) => U ? E("div", {
5488
+ class: [`${C}-popover__footer`, e.footerClass],
5489
5489
  style: e.footerStyle
5490
- }, U) : null)) : e.scrollable ? (x = t.default) === null || x === void 0 ? void 0 : x.call(t) : A("div", {
5491
- class: [`${S}-popover__content`, e.contentClass],
5490
+ }, U) : null)) : e.scrollable ? (S = t.default) === null || S === void 0 ? void 0 : S.call(t) : E("div", {
5491
+ class: [`${C}-popover__content`, e.contentClass],
5492
5492
  style: e.contentStyle
5493
- }, t), j = e.scrollable ? A(ss, {
5494
- contentClass: k ? void 0 : `${S}-popover__content ${(P = e.contentClass) !== null && P !== void 0 ? P : ""}`,
5493
+ }, t), j = e.scrollable ? E(ss, {
5494
+ contentClass: k ? void 0 : `${C}-popover__content ${(R = e.contentClass) !== null && R !== void 0 ? R : ""}`,
5495
5495
  contentStyle: k ? void 0 : e.contentStyle
5496
5496
  }, {
5497
5497
  default: () => T
@@ -5500,32 +5500,32 @@ const Xh = ee({
5500
5500
  arrowStyle: e.arrowStyle,
5501
5501
  arrowWrapperClass: e.arrowWrapperClass,
5502
5502
  arrowWrapperStyle: e.arrowWrapperStyle,
5503
- clsPrefix: S
5503
+ clsPrefix: C
5504
5504
  }) : null;
5505
5505
  return [j, V];
5506
5506
  };
5507
- w = A("div", gt({
5508
- class: [`${S}-popover`, `${S}-popover-shared`, b?.themeClass.value, N.map((x) => `${S}-${x}`), {
5509
- [`${S}-popover--scrollable`]: e.scrollable,
5510
- [`${S}-popover--show-header-or-footer`]: k,
5511
- [`${S}-popover--raw`]: e.raw,
5512
- [`${S}-popover-shared--overlap`]: e.overlap,
5513
- [`${S}-popover-shared--show-arrow`]: e.showArrow,
5514
- [`${S}-popover-shared--center-arrow`]: e.arrowPointToCenter
5507
+ y = E("div", gt({
5508
+ class: [`${C}-popover`, `${C}-popover-shared`, m?.themeClass.value, N.map((S) => `${C}-${S}`), {
5509
+ [`${C}-popover--scrollable`]: e.scrollable,
5510
+ [`${C}-popover--show-header-or-footer`]: k,
5511
+ [`${C}-popover--raw`]: e.raw,
5512
+ [`${C}-popover-shared--overlap`]: e.overlap,
5513
+ [`${C}-popover-shared--show-arrow`]: e.showArrow,
5514
+ [`${C}-popover-shared--center-arrow`]: e.arrowPointToCenter
5515
5515
  }],
5516
5516
  ref: c,
5517
- style: f.value,
5517
+ style: d.value,
5518
5518
  onKeydown: a.handleKeydown,
5519
- onMouseenter: u,
5520
- onMouseleave: C
5521
- }, n), M ? A(nu, {
5519
+ onMouseenter: f,
5520
+ onMouseleave: F
5521
+ }, n), M ? E(nu, {
5522
5522
  active: e.show,
5523
5523
  autoFocus: !0
5524
5524
  }, {
5525
- default: O
5526
- }) : O());
5525
+ default: L
5526
+ }) : L());
5527
5527
  }
5528
- return ft(w, p.value);
5528
+ return ft(y, p.value);
5529
5529
  }
5530
5530
  return {
5531
5531
  displayed: h,
@@ -5534,12 +5534,12 @@ const Xh = ee({
5534
5534
  zIndex: a.zIndexRef,
5535
5535
  followerRef: l,
5536
5536
  adjustedTo: vt(e),
5537
- followerEnabled: d,
5538
- renderContentNode: L
5537
+ followerEnabled: u,
5538
+ renderContentNode: _
5539
5539
  };
5540
5540
  },
5541
5541
  render() {
5542
- return A(Ei, {
5542
+ return E(Ei, {
5543
5543
  ref: "followerRef",
5544
5544
  zIndex: this.zIndex,
5545
5545
  show: this.show,
@@ -5554,7 +5554,7 @@ const Xh = ee({
5554
5554
  width: this.width === "trigger" ? "target" : void 0,
5555
5555
  teleportDisabled: this.adjustedTo === vt.tdkey
5556
5556
  }, {
5557
- default: () => this.animated ? A(nn, {
5557
+ default: () => this.animated ? E(nn, {
5558
5558
  name: "popover-transition",
5559
5559
  appear: this.isMounted,
5560
5560
  // Don't use watch to enable follower, since the transition may
@@ -5691,133 +5691,133 @@ const zn = {
5691
5691
  rn.env.NODE_ENV !== "production" && pt(() => {
5692
5692
  e.maxWidth !== void 0 && Ct("popover", "`max-width` is deprecated, please use `style` instead."), e.minWidth !== void 0 && Ct("popover", "`min-width` is deprecated, please use `style` instead."), e.arrow !== void 0 && Ct("popover", "`arrow` is deprecated, please use `showArrow` instead."), e.onHide !== void 0 && Ct("popover", "`on-hide` is deprecated, please use `on-update:show` instead."), e.onShow !== void 0 && Ct("popover", "`on-show` is deprecated, please use `on-update:show` instead.");
5693
5693
  });
5694
- const t = yi(), n = R(null), r = _(() => e.show), o = R(e.defaultShow), i = wi(r, o), s = Te(() => e.disabled ? !1 : i.value), l = () => {
5694
+ const t = yi(), n = P(null), r = I(() => e.show), o = P(e.defaultShow), i = wi(r, o), s = Te(() => e.disabled ? !1 : i.value), l = () => {
5695
5695
  if (e.disabled) return !0;
5696
5696
  const {
5697
- getDisabled: x
5697
+ getDisabled: S
5698
5698
  } = e;
5699
- return !!x?.();
5700
- }, a = () => l() ? !1 : i.value, c = sc(e, ["arrow", "showArrow"]), d = _(() => e.overlap ? !1 : c.value);
5699
+ return !!S?.();
5700
+ }, a = () => l() ? !1 : i.value, c = sc(e, ["arrow", "showArrow"]), u = I(() => e.overlap ? !1 : c.value);
5701
5701
  let h = null;
5702
- const p = R(null), m = R(null), f = Te(() => e.x !== void 0 && e.y !== void 0);
5703
- function b(x) {
5702
+ const p = P(null), b = P(null), d = Te(() => e.x !== void 0 && e.y !== void 0);
5703
+ function m(S) {
5704
5704
  const {
5705
- "onUpdate:show": P,
5705
+ "onUpdate:show": R,
5706
5706
  onUpdateShow: T,
5707
5707
  onShow: j,
5708
5708
  onHide: V
5709
5709
  } = e;
5710
- o.value = x, P && Ne(P, x), T && Ne(T, x), x && j && Ne(j, !0), x && V && Ne(V, !1);
5710
+ o.value = S, R && Ne(R, S), T && Ne(T, S), S && j && Ne(j, !0), S && V && Ne(V, !1);
5711
5711
  }
5712
5712
  function v() {
5713
5713
  h && h.syncPosition();
5714
5714
  }
5715
- function u() {
5715
+ function f() {
5716
5716
  const {
5717
- value: x
5717
+ value: S
5718
5718
  } = p;
5719
- x && (window.clearTimeout(x), p.value = null);
5719
+ S && (window.clearTimeout(S), p.value = null);
5720
5720
  }
5721
- function C() {
5721
+ function F() {
5722
5722
  const {
5723
- value: x
5724
- } = m;
5725
- x && (window.clearTimeout(x), m.value = null);
5723
+ value: S
5724
+ } = b;
5725
+ S && (window.clearTimeout(S), b.value = null);
5726
5726
  }
5727
- function F() {
5728
- const x = l();
5729
- if (e.trigger === "focus" && !x) {
5727
+ function A() {
5728
+ const S = l();
5729
+ if (e.trigger === "focus" && !S) {
5730
5730
  if (a()) return;
5731
- b(!0);
5731
+ m(!0);
5732
5732
  }
5733
5733
  }
5734
- function y() {
5735
- const x = l();
5736
- if (e.trigger === "focus" && !x) {
5734
+ function x() {
5735
+ const S = l();
5736
+ if (e.trigger === "focus" && !S) {
5737
5737
  if (!a()) return;
5738
- b(!1);
5738
+ m(!1);
5739
5739
  }
5740
5740
  }
5741
- function E() {
5742
- const x = l();
5743
- if (e.trigger === "hover" && !x) {
5744
- if (C(), p.value !== null || a()) return;
5745
- const P = () => {
5746
- b(!0), p.value = null;
5741
+ function w() {
5742
+ const S = l();
5743
+ if (e.trigger === "hover" && !S) {
5744
+ if (F(), p.value !== null || a()) return;
5745
+ const R = () => {
5746
+ m(!0), p.value = null;
5747
5747
  }, {
5748
5748
  delay: T
5749
5749
  } = e;
5750
- T === 0 ? P() : p.value = window.setTimeout(P, T);
5750
+ T === 0 ? R() : p.value = window.setTimeout(R, T);
5751
5751
  }
5752
5752
  }
5753
- function L() {
5754
- const x = l();
5755
- if (e.trigger === "hover" && !x) {
5756
- if (u(), m.value !== null || !a()) return;
5757
- const P = () => {
5758
- b(!1), m.value = null;
5753
+ function _() {
5754
+ const S = l();
5755
+ if (e.trigger === "hover" && !S) {
5756
+ if (f(), b.value !== null || !a()) return;
5757
+ const R = () => {
5758
+ m(!1), b.value = null;
5759
5759
  }, {
5760
5760
  duration: T
5761
5761
  } = e;
5762
- T === 0 ? P() : m.value = window.setTimeout(P, T);
5762
+ T === 0 ? R() : b.value = window.setTimeout(R, T);
5763
5763
  }
5764
5764
  }
5765
5765
  function g() {
5766
- L();
5766
+ _();
5767
5767
  }
5768
- function w(x) {
5769
- var P;
5770
- a() && (e.trigger === "click" && (u(), C(), b(!1)), (P = e.onClickoutside) === null || P === void 0 || P.call(e, x));
5768
+ function y(S) {
5769
+ var R;
5770
+ a() && (e.trigger === "click" && (f(), F(), m(!1)), (R = e.onClickoutside) === null || R === void 0 || R.call(e, S));
5771
5771
  }
5772
5772
  function z() {
5773
5773
  if (e.trigger === "click" && !l()) {
5774
- u(), C();
5775
- const x = !a();
5776
- b(x);
5774
+ f(), F();
5775
+ const S = !a();
5776
+ m(S);
5777
5777
  }
5778
5778
  }
5779
- function S(x) {
5780
- e.internalTrapFocus && x.key === "Escape" && (u(), C(), b(!1));
5779
+ function C(S) {
5780
+ e.internalTrapFocus && S.key === "Escape" && (f(), F(), m(!1));
5781
5781
  }
5782
- function N(x) {
5783
- o.value = x;
5782
+ function N(S) {
5783
+ o.value = S;
5784
5784
  }
5785
5785
  function M() {
5786
- var x;
5787
- return (x = n.value) === null || x === void 0 ? void 0 : x.targetRef;
5786
+ var S;
5787
+ return (S = n.value) === null || S === void 0 ? void 0 : S.targetRef;
5788
5788
  }
5789
- function k(x) {
5790
- h = x;
5789
+ function k(S) {
5790
+ h = S;
5791
5791
  }
5792
5792
  return Se("NPopover", {
5793
5793
  getTriggerElement: M,
5794
- handleKeydown: S,
5795
- handleMouseEnter: E,
5796
- handleMouseLeave: L,
5797
- handleClickOutside: w,
5794
+ handleKeydown: C,
5795
+ handleMouseEnter: w,
5796
+ handleMouseLeave: _,
5797
+ handleClickOutside: y,
5798
5798
  handleMouseMoveOutside: g,
5799
5799
  setBodyInstance: k,
5800
- positionManuallyRef: f,
5800
+ positionManuallyRef: d,
5801
5801
  isMountedRef: t,
5802
5802
  zIndexRef: se(e, "zIndex"),
5803
5803
  extraClassRef: se(e, "internalExtraClass"),
5804
5804
  internalRenderBodyRef: se(e, "internalRenderBody")
5805
5805
  }), pt(() => {
5806
- i.value && l() && b(!1);
5806
+ i.value && l() && m(!1);
5807
5807
  }), {
5808
5808
  binderInstRef: n,
5809
- positionManually: f,
5809
+ positionManually: d,
5810
5810
  mergedShowConsideringDisabledProp: s,
5811
5811
  // if to show popover body
5812
5812
  uncontrolledShow: o,
5813
- mergedShowArrow: d,
5813
+ mergedShowArrow: u,
5814
5814
  getMergedShow: a,
5815
5815
  setShow: N,
5816
5816
  handleClick: z,
5817
- handleMouseEnter: E,
5818
- handleMouseLeave: L,
5819
- handleFocus: F,
5820
- handleBlur: y,
5817
+ handleMouseEnter: w,
5818
+ handleMouseLeave: _,
5819
+ handleFocus: A,
5820
+ handleBlur: x,
5821
5821
  syncPosition: v
5822
5822
  };
5823
5823
  },
@@ -5829,7 +5829,7 @@ const zn = {
5829
5829
  } = this;
5830
5830
  let r, o = !1;
5831
5831
  if (!t && (r = lu(n, "trigger"), r)) {
5832
- r = Qs(r), r = r.type === el ? A("span", [r]) : r;
5832
+ r = Qs(r), r = r.type === el ? E("span", [r]) : r;
5833
5833
  const i = {
5834
5834
  onClick: this.handleClick,
5835
5835
  onMouseenter: this.handleMouseEnter,
@@ -5847,35 +5847,35 @@ const zn = {
5847
5847
  internalInheritedEventHandlers: s
5848
5848
  } = this, l = [i, ...s], a = {
5849
5849
  onBlur: (c) => {
5850
- l.forEach((d) => {
5851
- d.onBlur(c);
5850
+ l.forEach((u) => {
5851
+ u.onBlur(c);
5852
5852
  });
5853
5853
  },
5854
5854
  onFocus: (c) => {
5855
- l.forEach((d) => {
5856
- d.onFocus(c);
5855
+ l.forEach((u) => {
5856
+ u.onFocus(c);
5857
5857
  });
5858
5858
  },
5859
5859
  onClick: (c) => {
5860
- l.forEach((d) => {
5861
- d.onClick(c);
5860
+ l.forEach((u) => {
5861
+ u.onClick(c);
5862
5862
  });
5863
5863
  },
5864
5864
  onMouseenter: (c) => {
5865
- l.forEach((d) => {
5866
- d.onMouseenter(c);
5865
+ l.forEach((u) => {
5866
+ u.onMouseenter(c);
5867
5867
  });
5868
5868
  },
5869
5869
  onMouseleave: (c) => {
5870
- l.forEach((d) => {
5871
- d.onMouseleave(c);
5870
+ l.forEach((u) => {
5871
+ u.onMouseleave(c);
5872
5872
  });
5873
5873
  }
5874
5874
  };
5875
5875
  Zh(r, s ? "nested" : t ? "manual" : this.trigger, a);
5876
5876
  }
5877
5877
  }
5878
- return A($i, {
5878
+ return E($i, {
5879
5879
  ref: "binderInstRef",
5880
5880
  syncTarget: !o,
5881
5881
  syncTargetWithParent: this.internalSyncTargetWithParent
@@ -5883,7 +5883,7 @@ const zn = {
5883
5883
  default: () => {
5884
5884
  this.mergedShowConsideringDisabledProp;
5885
5885
  const i = this.getMergedShow();
5886
- return [this.internalTrapFocus && i ? ft(A("div", {
5886
+ return [this.internalTrapFocus && i ? ft(E("div", {
5887
5887
  style: {
5888
5888
  position: "fixed",
5889
5889
  top: 0,
@@ -5894,9 +5894,9 @@ const zn = {
5894
5894
  }), [[Fi, {
5895
5895
  enabled: i,
5896
5896
  zIndex: this.zIndex
5897
- }]]) : null, t ? null : A(zi, null, {
5897
+ }]]) : null, t ? null : E(zi, null, {
5898
5898
  default: () => r
5899
- }), A(Xh, ki(this.$props, qh, Object.assign(Object.assign({}, this.$attrs), {
5899
+ }), E(Xh, ki(this.$props, qh, Object.assign(Object.assign({}, this.$attrs), {
5900
5900
  showArrow: this.mergedShowArrow,
5901
5901
  show: i
5902
5902
  })), {
@@ -5950,24 +5950,24 @@ function e0(e) {
5950
5950
  borderRadius: l,
5951
5951
  fontSizeSmall: a,
5952
5952
  fontSizeMedium: c,
5953
- fontSizeLarge: d,
5953
+ fontSizeLarge: u,
5954
5954
  fontSizeHuge: h,
5955
5955
  heightSmall: p,
5956
- heightMedium: m,
5957
- heightLarge: f,
5958
- heightHuge: b,
5956
+ heightMedium: b,
5957
+ heightLarge: d,
5958
+ heightHuge: m,
5959
5959
  textColor3: v,
5960
- opacityDisabled: u
5960
+ opacityDisabled: f
5961
5961
  } = e;
5962
5962
  return Object.assign(Object.assign({}, Qh), {
5963
5963
  optionHeightSmall: p,
5964
- optionHeightMedium: m,
5965
- optionHeightLarge: f,
5966
- optionHeightHuge: b,
5964
+ optionHeightMedium: b,
5965
+ optionHeightLarge: d,
5966
+ optionHeightHuge: m,
5967
5967
  borderRadius: l,
5968
5968
  fontSizeSmall: a,
5969
5969
  fontSizeMedium: c,
5970
- fontSizeLarge: d,
5970
+ fontSizeLarge: u,
5971
5971
  fontSizeHuge: h,
5972
5972
  // non-inverted
5973
5973
  optionTextColor: n,
@@ -5995,7 +5995,7 @@ function e0(e) {
5995
5995
  optionColorHoverInverted: t,
5996
5996
  optionColorActiveInverted: t,
5997
5997
  groupHeaderTextColorInverted: "#AAA",
5998
- optionOpacityDisabled: u
5998
+ optionOpacityDisabled: f
5999
5999
  });
6000
6000
  }
6001
6001
  const t0 = {
@@ -6036,7 +6036,7 @@ const o0 = {
6036
6036
  setup(e) {
6037
6037
  const {
6038
6038
  mergedClsPrefixRef: t
6039
- } = bt(e), n = pe("Tooltip", "-tooltip", void 0, o0, e, t), r = R(null);
6039
+ } = bt(e), n = pe("Tooltip", "-tooltip", void 0, o0, e, t), r = P(null);
6040
6040
  return Object.assign(Object.assign({}, {
6041
6041
  syncPosition() {
6042
6042
  r.value.syncPosition();
@@ -6047,7 +6047,7 @@ const o0 = {
6047
6047
  }), {
6048
6048
  popoverRef: r,
6049
6049
  mergedTheme: n,
6050
- popoverThemeOverrides: _(() => n.value.self)
6050
+ popoverThemeOverrides: I(() => n.value.self)
6051
6051
  });
6052
6052
  },
6053
6053
  render() {
@@ -6055,7 +6055,7 @@ const o0 = {
6055
6055
  mergedTheme: e,
6056
6056
  internalExtraClass: t
6057
6057
  } = this;
6058
- return A(ds, Object.assign(Object.assign({}, this.$props), {
6058
+ return E(ds, Object.assign(Object.assign({}, this.$props), {
6059
6059
  theme: e.peers.Popover,
6060
6060
  themeOverrides: e.peerOverrides.Popover,
6061
6061
  builtinThemeOverrides: this.popoverThemeOverrides,
@@ -6072,7 +6072,7 @@ const o0 = {
6072
6072
  }
6073
6073
  },
6074
6074
  render() {
6075
- return A("div", {
6075
+ return E("div", {
6076
6076
  class: `${this.clsPrefix}-dropdown-divider`
6077
6077
  });
6078
6078
  }
@@ -6118,17 +6118,17 @@ const o0 = {
6118
6118
  renderOption: s
6119
6119
  } = this, {
6120
6120
  rawNode: l
6121
- } = this.tmNode, a = A("div", Object.assign({
6121
+ } = this.tmNode, a = E("div", Object.assign({
6122
6122
  class: `${t}-dropdown-option`
6123
- }, o?.(l)), A("div", {
6123
+ }, o?.(l)), E("div", {
6124
6124
  class: `${t}-dropdown-option-body ${t}-dropdown-option-body--group`
6125
- }, A("div", {
6125
+ }, E("div", {
6126
6126
  "data-dropdown-option": !0,
6127
6127
  class: [`${t}-dropdown-option-body__prefix`, r && `${t}-dropdown-option-body__prefix--show-icon`]
6128
- }, cn(l.icon)), A("div", {
6128
+ }, cn(l.icon)), E("div", {
6129
6129
  class: `${t}-dropdown-option-body__label`,
6130
6130
  "data-dropdown-option": !0
6131
- }, i ? i(l) : cn((e = l.title) !== null && e !== void 0 ? e : l[this.labelField])), A("div", {
6131
+ }, i ? i(l) : cn((e = l.title) !== null && e !== void 0 ? e : l[this.labelField])), E("div", {
6132
6132
  class: [`${t}-dropdown-option-body__suffix`, n && `${t}-dropdown-option-body__suffix--has-submenu`],
6133
6133
  "data-dropdown-option": !0
6134
6134
  })));
@@ -6192,7 +6192,7 @@ const a0 = {
6192
6192
  const {
6193
6193
  mergedClsPrefixRef: t,
6194
6194
  inlineThemeDisabled: n
6195
- } = bt(e), r = pe("Icon", "-icon", c0, a0, e, t), o = _(() => {
6195
+ } = bt(e), r = pe("Icon", "-icon", c0, a0, e, t), o = I(() => {
6196
6196
  const {
6197
6197
  depth: s
6198
6198
  } = e, {
@@ -6204,12 +6204,12 @@ const a0 = {
6204
6204
  if (s !== void 0) {
6205
6205
  const {
6206
6206
  color: c,
6207
- [`opacity${s}Depth`]: d
6207
+ [`opacity${s}Depth`]: u
6208
6208
  } = a;
6209
6209
  return {
6210
6210
  "--n-bezier": l,
6211
6211
  "--n-color": c,
6212
- "--n-opacity": d
6212
+ "--n-opacity": u
6213
6213
  };
6214
6214
  }
6215
6215
  return {
@@ -6217,10 +6217,10 @@ const a0 = {
6217
6217
  "--n-color": "",
6218
6218
  "--n-opacity": ""
6219
6219
  };
6220
- }), i = n ? yn("icon", _(() => `${e.depth || "d"}`), o, e) : void 0;
6220
+ }), i = n ? yn("icon", I(() => `${e.depth || "d"}`), o, e) : void 0;
6221
6221
  return {
6222
6222
  mergedClsPrefix: t,
6223
- mergedStyle: _(() => {
6223
+ mergedStyle: I(() => {
6224
6224
  const {
6225
6225
  size: s,
6226
6226
  color: l
@@ -6245,14 +6245,14 @@ const a0 = {
6245
6245
  onRender: i,
6246
6246
  themeClass: s
6247
6247
  } = this;
6248
- return !((e = t?.$options) === null || e === void 0) && e._n_icon__ && an("icon", "don't wrap `n-icon` inside `n-icon`"), i?.(), A("i", gt(this.$attrs, {
6248
+ return !((e = t?.$options) === null || e === void 0) && e._n_icon__ && an("icon", "don't wrap `n-icon` inside `n-icon`"), i?.(), E("i", gt(this.$attrs, {
6249
6249
  role: "img",
6250
6250
  class: [`${r}-icon`, s, {
6251
6251
  [`${r}-icon--depth`]: n,
6252
6252
  [`${r}-icon--color-transition`]: n !== void 0
6253
6253
  }],
6254
6254
  style: [this.cssVars, this.mergedStyle]
6255
- }), o ? A(o) : this.$slots);
6255
+ }), o ? E(o) : this.$slots);
6256
6256
  }
6257
6257
  });
6258
6258
  function dr(e, t) {
@@ -6299,24 +6299,24 @@ const ps = ee({
6299
6299
  animatedRef: l,
6300
6300
  mergedShowRef: a,
6301
6301
  renderLabelRef: c,
6302
- renderIconRef: d,
6302
+ renderIconRef: u,
6303
6303
  labelFieldRef: h,
6304
6304
  childrenFieldRef: p,
6305
- renderOptionRef: m,
6306
- nodePropsRef: f,
6307
- menuPropsRef: b
6308
- } = t, v = te(ri, null), u = te(_r), C = te(mn), F = _(() => e.tmNode.rawNode), y = _(() => {
6305
+ renderOptionRef: b,
6306
+ nodePropsRef: d,
6307
+ menuPropsRef: m
6308
+ } = t, v = te(ri, null), f = te(_r), F = te(mn), A = I(() => e.tmNode.rawNode), x = I(() => {
6309
6309
  const {
6310
6310
  value: T
6311
6311
  } = p;
6312
6312
  return dr(e.tmNode.rawNode, T);
6313
- }), E = _(() => {
6313
+ }), w = I(() => {
6314
6314
  const {
6315
6315
  disabled: T
6316
6316
  } = e.tmNode;
6317
6317
  return T;
6318
- }), L = _(() => {
6319
- if (!y.value) return !1;
6318
+ }), _ = I(() => {
6319
+ if (!x.value) return !1;
6320
6320
  const {
6321
6321
  key: T,
6322
6322
  disabled: j
@@ -6332,15 +6332,15 @@ const ps = ee({
6332
6332
  value: ge
6333
6333
  } = i;
6334
6334
  return V !== null ? ge.includes(T) : U !== null ? ge.includes(T) && ge[ge.length - 1] !== T : ue !== null ? ge.includes(T) : !1;
6335
- }), g = _(() => r.value === null && !l.value), w = dc(L, 300, g), z = _(() => !!v?.enteringSubmenuRef.value), S = R(!1);
6335
+ }), g = I(() => r.value === null && !l.value), y = dc(_, 300, g), z = I(() => !!v?.enteringSubmenuRef.value), C = P(!1);
6336
6336
  Se(ri, {
6337
- enteringSubmenuRef: S
6337
+ enteringSubmenuRef: C
6338
6338
  });
6339
6339
  function N() {
6340
- S.value = !0;
6340
+ C.value = !0;
6341
6341
  }
6342
6342
  function M() {
6343
- S.value = !1;
6343
+ C.value = !1;
6344
6344
  }
6345
6345
  function k() {
6346
6346
  const {
@@ -6349,13 +6349,13 @@ const ps = ee({
6349
6349
  } = e;
6350
6350
  j.disabled || a.value && (o.value = T, r.value = null, n.value = j.key);
6351
6351
  }
6352
- function O() {
6352
+ function L() {
6353
6353
  const {
6354
6354
  tmNode: T
6355
6355
  } = e;
6356
6356
  T.disabled || a.value && n.value !== T.key && k();
6357
6357
  }
6358
- function x(T) {
6358
+ function S(T) {
6359
6359
  if (e.tmNode.disabled || !a.value) return;
6360
6360
  const {
6361
6361
  relatedTarget: j
@@ -6366,10 +6366,10 @@ const ps = ee({
6366
6366
  target: j
6367
6367
  }, "scrollbarRail") && (n.value = null);
6368
6368
  }
6369
- function P() {
6369
+ function R() {
6370
6370
  const {
6371
6371
  value: T
6372
- } = y, {
6372
+ } = x, {
6373
6373
  tmNode: j
6374
6374
  } = e;
6375
6375
  a.value && !T && !j.disabled && (t.doSelect(j.key, j.rawNode), t.doUpdateShow(!1));
@@ -6377,15 +6377,15 @@ const ps = ee({
6377
6377
  return {
6378
6378
  labelField: h,
6379
6379
  renderLabel: c,
6380
- renderIcon: d,
6381
- siblingHasIcon: u.showIconRef,
6382
- siblingHasSubmenu: u.hasSubmenuRef,
6383
- menuProps: b,
6384
- popoverBody: C,
6380
+ renderIcon: u,
6381
+ siblingHasIcon: f.showIconRef,
6382
+ siblingHasSubmenu: f.hasSubmenuRef,
6383
+ menuProps: m,
6384
+ popoverBody: F,
6385
6385
  animated: l,
6386
- mergedShowSubmenu: _(() => w.value && !z.value),
6387
- rawNode: F,
6388
- hasSubmenu: y,
6386
+ mergedShowSubmenu: I(() => y.value && !z.value),
6387
+ rawNode: A,
6388
+ hasSubmenu: x,
6389
6389
  pending: Te(() => {
6390
6390
  const {
6391
6391
  value: T
@@ -6410,13 +6410,13 @@ const ps = ee({
6410
6410
  } = e.tmNode, V = T.findIndex((U) => j === U);
6411
6411
  return V === -1 ? !1 : V === T.length - 1;
6412
6412
  }),
6413
- mergedDisabled: E,
6414
- renderOption: m,
6415
- nodeProps: f,
6416
- handleClick: P,
6417
- handleMouseMove: O,
6413
+ mergedDisabled: w,
6414
+ renderOption: b,
6415
+ nodeProps: d,
6416
+ handleClick: R,
6417
+ handleMouseMove: L,
6418
6418
  handleMouseEnter: k,
6419
- handleMouseLeave: x,
6419
+ handleMouseLeave: S,
6420
6420
  handleSubmenuBeforeEnter: N,
6421
6421
  handleSubmenuAfterEnter: M
6422
6422
  };
@@ -6432,67 +6432,67 @@ const ps = ee({
6432
6432
  siblingHasSubmenu: l,
6433
6433
  renderLabel: a,
6434
6434
  renderIcon: c,
6435
- renderOption: d,
6435
+ renderOption: u,
6436
6436
  nodeProps: h,
6437
6437
  props: p,
6438
- scrollable: m
6438
+ scrollable: b
6439
6439
  } = this;
6440
- let f = null;
6440
+ let d = null;
6441
6441
  if (o) {
6442
- const C = (e = this.menuProps) === null || e === void 0 ? void 0 : e.call(this, r, r.children);
6443
- f = A(vs, Object.assign({}, C, {
6442
+ const F = (e = this.menuProps) === null || e === void 0 ? void 0 : e.call(this, r, r.children);
6443
+ d = E(vs, Object.assign({}, F, {
6444
6444
  clsPrefix: i,
6445
6445
  scrollable: this.scrollable,
6446
6446
  tmNodes: this.tmNode.children,
6447
6447
  parentKey: this.tmNode.key
6448
6448
  }));
6449
6449
  }
6450
- const b = {
6450
+ const m = {
6451
6451
  class: [`${i}-dropdown-option-body`, this.pending && `${i}-dropdown-option-body--pending`, this.active && `${i}-dropdown-option-body--active`, this.childActive && `${i}-dropdown-option-body--child-active`, this.mergedDisabled && `${i}-dropdown-option-body--disabled`],
6452
6452
  onMousemove: this.handleMouseMove,
6453
6453
  onMouseenter: this.handleMouseEnter,
6454
6454
  onMouseleave: this.handleMouseLeave,
6455
6455
  onClick: this.handleClick
6456
- }, v = h?.(r), u = A("div", Object.assign({
6456
+ }, v = h?.(r), f = E("div", Object.assign({
6457
6457
  class: [`${i}-dropdown-option`, v?.class],
6458
6458
  "data-dropdown-option": !0
6459
- }, v), A("div", gt(b, p), [A("div", {
6459
+ }, v), E("div", gt(m, p), [E("div", {
6460
6460
  class: [`${i}-dropdown-option-body__prefix`, s && `${i}-dropdown-option-body__prefix--show-icon`]
6461
- }, [c ? c(r) : cn(r.icon)]), A("div", {
6461
+ }, [c ? c(r) : cn(r.icon)]), E("div", {
6462
6462
  "data-dropdown-option": !0,
6463
6463
  class: `${i}-dropdown-option-body__label`
6464
- }, a ? a(r) : cn((t = r[this.labelField]) !== null && t !== void 0 ? t : r.title)), A("div", {
6464
+ }, a ? a(r) : cn((t = r[this.labelField]) !== null && t !== void 0 ? t : r.title)), E("div", {
6465
6465
  "data-dropdown-option": !0,
6466
6466
  class: [`${i}-dropdown-option-body__suffix`, l && `${i}-dropdown-option-body__suffix--has-submenu`]
6467
- }, this.hasSubmenu ? A(d0, null, {
6468
- default: () => A(ch, null)
6469
- }) : null)]), this.hasSubmenu ? A($i, null, {
6470
- default: () => [A(zi, null, {
6471
- default: () => A("div", {
6467
+ }, this.hasSubmenu ? E(d0, null, {
6468
+ default: () => E(ch, null)
6469
+ }) : null)]), this.hasSubmenu ? E($i, null, {
6470
+ default: () => [E(zi, null, {
6471
+ default: () => E("div", {
6472
6472
  class: `${i}-dropdown-offset-container`
6473
- }, A(Ei, {
6473
+ }, E(Ei, {
6474
6474
  show: this.mergedShowSubmenu,
6475
6475
  placement: this.placement,
6476
- to: m && this.popoverBody || void 0,
6477
- teleportDisabled: !m
6476
+ to: b && this.popoverBody || void 0,
6477
+ teleportDisabled: !b
6478
6478
  }, {
6479
- default: () => A("div", {
6479
+ default: () => E("div", {
6480
6480
  class: `${i}-dropdown-menu-wrapper`
6481
- }, n ? A(nn, {
6481
+ }, n ? E(nn, {
6482
6482
  onBeforeEnter: this.handleSubmenuBeforeEnter,
6483
6483
  onAfterEnter: this.handleSubmenuAfterEnter,
6484
6484
  name: "fade-in-scale-up-transition",
6485
6485
  appear: !0
6486
6486
  }, {
6487
- default: () => f
6488
- }) : f)
6487
+ default: () => d
6488
+ }) : d)
6489
6489
  }))
6490
6490
  })]
6491
6491
  }) : null);
6492
- return d ? d({
6493
- node: u,
6492
+ return u ? u({
6493
+ node: f,
6494
6494
  option: r
6495
- }) : u;
6495
+ }) : f;
6496
6496
  }
6497
6497
  }), p0 = ee({
6498
6498
  name: "NDropdownGroup",
@@ -6518,7 +6518,7 @@ const ps = ee({
6518
6518
  } = this, {
6519
6519
  children: r
6520
6520
  } = e;
6521
- return A(_e, null, A(s0, {
6521
+ return E(_e, null, E(s0, {
6522
6522
  clsPrefix: n,
6523
6523
  tmNode: e,
6524
6524
  key: e.key
@@ -6526,10 +6526,10 @@ const ps = ee({
6526
6526
  const {
6527
6527
  rawNode: i
6528
6528
  } = o;
6529
- return i.show === !1 ? null : hs(i) ? A(fs, {
6529
+ return i.show === !1 ? null : hs(i) ? E(fs, {
6530
6530
  clsPrefix: n,
6531
6531
  key: o.key
6532
- }) : o.isGroup ? (an("dropdown", "`group` node is not allowed to be put in `group` node."), null) : A(ps, {
6532
+ }) : o.isGroup ? (an("dropdown", "`group` node is not allowed to be put in `group` node."), null) : E(ps, {
6533
6533
  clsPrefix: n,
6534
6534
  tmNode: o,
6535
6535
  parentKey: t,
@@ -6552,7 +6552,7 @@ const ps = ee({
6552
6552
  props: t
6553
6553
  }
6554
6554
  } = this.tmNode;
6555
- return A("div", t, [e?.()]);
6555
+ return E("div", t, [e?.()]);
6556
6556
  }
6557
6557
  }), vs = ee({
6558
6558
  name: "DropdownMenu",
@@ -6579,7 +6579,7 @@ const ps = ee({
6579
6579
  childrenFieldRef: n
6580
6580
  } = te(Fn);
6581
6581
  Se(_r, {
6582
- showIconRef: _(() => {
6582
+ showIconRef: I(() => {
6583
6583
  const o = t.value;
6584
6584
  return e.tmNodes.some((i) => {
6585
6585
  var s;
@@ -6593,7 +6593,7 @@ const ps = ee({
6593
6593
  return o ? o(l) : l.icon;
6594
6594
  });
6595
6595
  }),
6596
- hasSubmenuRef: _(() => {
6596
+ hasSubmenuRef: I(() => {
6597
6597
  const {
6598
6598
  value: o
6599
6599
  } = n;
@@ -6610,7 +6610,7 @@ const ps = ee({
6610
6610
  });
6611
6611
  })
6612
6612
  });
6613
- const r = R(null);
6613
+ const r = P(null);
6614
6614
  return Se(vr, null), Se(pr, null), Se(mn, r), {
6615
6615
  bodyRef: r
6616
6616
  };
@@ -6624,18 +6624,18 @@ const ps = ee({
6624
6624
  const {
6625
6625
  rawNode: i
6626
6626
  } = o;
6627
- return i.show === !1 ? null : h0(i) ? A(v0, {
6627
+ return i.show === !1 ? null : h0(i) ? E(v0, {
6628
6628
  tmNode: o,
6629
6629
  key: o.key
6630
- }) : hs(i) ? A(fs, {
6630
+ }) : hs(i) ? E(fs, {
6631
6631
  clsPrefix: t,
6632
6632
  key: o.key
6633
- }) : f0(i) ? A(p0, {
6633
+ }) : f0(i) ? E(p0, {
6634
6634
  clsPrefix: t,
6635
6635
  tmNode: o,
6636
6636
  parentKey: e,
6637
6637
  key: o.key
6638
- }) : A(ps, {
6638
+ }) : E(ps, {
6639
6639
  clsPrefix: t,
6640
6640
  tmNode: o,
6641
6641
  parentKey: e,
@@ -6644,10 +6644,10 @@ const ps = ee({
6644
6644
  scrollable: n
6645
6645
  });
6646
6646
  });
6647
- return A("div", {
6647
+ return E("div", {
6648
6648
  class: [`${t}-dropdown-menu`, n && `${t}-dropdown-menu--scrollable`],
6649
6649
  ref: "bodyRef"
6650
- }, n ? A(ss, {
6650
+ }, n ? E(ss, {
6651
6651
  contentClass: `${t}-dropdown-menu__content`
6652
6652
  }, {
6653
6653
  default: () => r
@@ -6823,58 +6823,58 @@ const ps = ee({
6823
6823
  inheritAttrs: !1,
6824
6824
  props: w0,
6825
6825
  setup(e) {
6826
- const t = R(!1), n = wi(se(e, "show"), t), r = _(() => {
6826
+ const t = P(!1), n = wi(se(e, "show"), t), r = I(() => {
6827
6827
  const {
6828
6828
  keyField: M,
6829
6829
  childrenField: k
6830
6830
  } = e;
6831
6831
  return Wh(e.options, {
6832
- getKey(O) {
6833
- return O[M];
6832
+ getKey(L) {
6833
+ return L[M];
6834
6834
  },
6835
- getDisabled(O) {
6836
- return O.disabled === !0;
6835
+ getDisabled(L) {
6836
+ return L.disabled === !0;
6837
6837
  },
6838
- getIgnored(O) {
6839
- return O.type === "divider" || O.type === "render";
6838
+ getIgnored(L) {
6839
+ return L.type === "divider" || L.type === "render";
6840
6840
  },
6841
- getChildren(O) {
6842
- return O[k];
6841
+ getChildren(L) {
6842
+ return L[k];
6843
6843
  }
6844
6844
  });
6845
- }), o = _(() => r.value.treeNodes), i = R(null), s = R(null), l = R(null), a = _(() => {
6846
- var M, k, O;
6847
- return (O = (k = (M = i.value) !== null && M !== void 0 ? M : s.value) !== null && k !== void 0 ? k : l.value) !== null && O !== void 0 ? O : null;
6848
- }), c = _(() => r.value.getPath(a.value).keyPath), d = _(() => r.value.getPath(e.value).keyPath), h = Te(() => e.keyboard && n.value);
6845
+ }), o = I(() => r.value.treeNodes), i = P(null), s = P(null), l = P(null), a = I(() => {
6846
+ var M, k, L;
6847
+ return (L = (k = (M = i.value) !== null && M !== void 0 ? M : s.value) !== null && k !== void 0 ? k : l.value) !== null && L !== void 0 ? L : null;
6848
+ }), c = I(() => r.value.getPath(a.value).keyPath), u = I(() => r.value.getPath(e.value).keyPath), h = Te(() => e.keyboard && n.value);
6849
6849
  cc({
6850
6850
  keydown: {
6851
6851
  ArrowUp: {
6852
6852
  prevent: !0,
6853
- handler: E
6853
+ handler: w
6854
6854
  },
6855
6855
  ArrowRight: {
6856
6856
  prevent: !0,
6857
- handler: y
6857
+ handler: x
6858
6858
  },
6859
6859
  ArrowDown: {
6860
6860
  prevent: !0,
6861
- handler: L
6861
+ handler: _
6862
6862
  },
6863
6863
  ArrowLeft: {
6864
6864
  prevent: !0,
6865
- handler: F
6865
+ handler: A
6866
6866
  },
6867
6867
  Enter: {
6868
6868
  prevent: !0,
6869
6869
  handler: g
6870
6870
  },
6871
- Escape: C
6871
+ Escape: F
6872
6872
  }
6873
6873
  }, h);
6874
6874
  const {
6875
6875
  mergedClsPrefixRef: p,
6876
- inlineThemeDisabled: m
6877
- } = bt(e), f = pe("Dropdown", "-dropdown", g0, t0, e, p);
6876
+ inlineThemeDisabled: b
6877
+ } = bt(e), d = pe("Dropdown", "-dropdown", g0, t0, e, p);
6878
6878
  Se(Fn, {
6879
6879
  labelFieldRef: se(e, "labelField"),
6880
6880
  childrenFieldRef: se(e, "childrenField"),
@@ -6884,107 +6884,107 @@ const ps = ee({
6884
6884
  keyboardKeyRef: s,
6885
6885
  lastToggledSubmenuKeyRef: l,
6886
6886
  pendingKeyPathRef: c,
6887
- activeKeyPathRef: d,
6887
+ activeKeyPathRef: u,
6888
6888
  animatedRef: se(e, "animated"),
6889
6889
  mergedShowRef: n,
6890
6890
  nodePropsRef: se(e, "nodeProps"),
6891
6891
  renderOptionRef: se(e, "renderOption"),
6892
6892
  menuPropsRef: se(e, "menuProps"),
6893
- doSelect: b,
6893
+ doSelect: m,
6894
6894
  doUpdateShow: v
6895
6895
  }), we(n, (M) => {
6896
- !e.animated && !M && u();
6896
+ !e.animated && !M && f();
6897
6897
  });
6898
- function b(M, k) {
6898
+ function m(M, k) {
6899
6899
  const {
6900
- onSelect: O
6900
+ onSelect: L
6901
6901
  } = e;
6902
- O && Ne(O, M, k);
6902
+ L && Ne(L, M, k);
6903
6903
  }
6904
6904
  function v(M) {
6905
6905
  const {
6906
6906
  "onUpdate:show": k,
6907
- onUpdateShow: O
6907
+ onUpdateShow: L
6908
6908
  } = e;
6909
- k && Ne(k, M), O && Ne(O, M), t.value = M;
6909
+ k && Ne(k, M), L && Ne(L, M), t.value = M;
6910
6910
  }
6911
- function u() {
6911
+ function f() {
6912
6912
  i.value = null, s.value = null, l.value = null;
6913
6913
  }
6914
- function C() {
6914
+ function F() {
6915
6915
  v(!1);
6916
6916
  }
6917
- function F() {
6917
+ function A() {
6918
6918
  z("left");
6919
6919
  }
6920
- function y() {
6920
+ function x() {
6921
6921
  z("right");
6922
6922
  }
6923
- function E() {
6923
+ function w() {
6924
6924
  z("up");
6925
6925
  }
6926
- function L() {
6926
+ function _() {
6927
6927
  z("down");
6928
6928
  }
6929
6929
  function g() {
6930
- const M = w();
6931
- M?.isLeaf && n.value && (b(M.key, M.rawNode), v(!1));
6930
+ const M = y();
6931
+ M?.isLeaf && n.value && (m(M.key, M.rawNode), v(!1));
6932
6932
  }
6933
- function w() {
6933
+ function y() {
6934
6934
  var M;
6935
6935
  const {
6936
6936
  value: k
6937
6937
  } = r, {
6938
- value: O
6938
+ value: L
6939
6939
  } = a;
6940
- return !k || O === null ? null : (M = k.getNode(O)) !== null && M !== void 0 ? M : null;
6940
+ return !k || L === null ? null : (M = k.getNode(L)) !== null && M !== void 0 ? M : null;
6941
6941
  }
6942
6942
  function z(M) {
6943
6943
  const {
6944
6944
  value: k
6945
6945
  } = a, {
6946
6946
  value: {
6947
- getFirstAvailableNode: O
6947
+ getFirstAvailableNode: L
6948
6948
  }
6949
6949
  } = r;
6950
- let x = null;
6950
+ let S = null;
6951
6951
  if (k === null) {
6952
- const P = O();
6953
- P !== null && (x = P.key);
6952
+ const R = L();
6953
+ R !== null && (S = R.key);
6954
6954
  } else {
6955
- const P = w();
6956
- if (P) {
6955
+ const R = y();
6956
+ if (R) {
6957
6957
  let T;
6958
6958
  switch (M) {
6959
6959
  case "down":
6960
- T = P.getNext();
6960
+ T = R.getNext();
6961
6961
  break;
6962
6962
  case "up":
6963
- T = P.getPrev();
6963
+ T = R.getPrev();
6964
6964
  break;
6965
6965
  case "right":
6966
- T = P.getChild();
6966
+ T = R.getChild();
6967
6967
  break;
6968
6968
  case "left":
6969
- T = P.getParent();
6969
+ T = R.getParent();
6970
6970
  break;
6971
6971
  }
6972
- T && (x = T.key);
6972
+ T && (S = T.key);
6973
6973
  }
6974
6974
  }
6975
- x !== null && (i.value = null, s.value = x);
6975
+ S !== null && (i.value = null, s.value = S);
6976
6976
  }
6977
- const S = _(() => {
6977
+ const C = I(() => {
6978
6978
  const {
6979
6979
  size: M,
6980
6980
  inverted: k
6981
6981
  } = e, {
6982
6982
  common: {
6983
- cubicBezierEaseInOut: O
6983
+ cubicBezierEaseInOut: L
6984
6984
  },
6985
- self: x
6986
- } = f.value, {
6987
- padding: P,
6985
+ self: S
6986
+ } = d.value, {
6987
+ padding: R,
6988
6988
  dividerColor: T,
6989
6989
  borderRadius: j,
6990
6990
  optionOpacityDisabled: V,
@@ -6995,10 +6995,10 @@ const ps = ee({
6995
6995
  [Re("fontSize", M)]: En,
6996
6996
  [Re("optionHeight", M)]: An,
6997
6997
  [Re("optionIconSize", M)]: Ae
6998
- } = x, Y = {
6999
- "--n-bezier": O,
6998
+ } = S, Y = {
6999
+ "--n-bezier": L,
7000
7000
  "--n-font-size": En,
7001
- "--n-padding": P,
7001
+ "--n-padding": R,
7002
7002
  "--n-border-radius": j,
7003
7003
  "--n-option-height": An,
7004
7004
  "--n-option-prefix-width": Rt,
@@ -7009,21 +7009,21 @@ const ps = ee({
7009
7009
  "--n-divider-color": T,
7010
7010
  "--n-option-opacity-disabled": V
7011
7011
  };
7012
- return k ? (Y["--n-color"] = x.colorInverted, Y["--n-option-color-hover"] = x.optionColorHoverInverted, Y["--n-option-color-active"] = x.optionColorActiveInverted, Y["--n-option-text-color"] = x.optionTextColorInverted, Y["--n-option-text-color-hover"] = x.optionTextColorHoverInverted, Y["--n-option-text-color-active"] = x.optionTextColorActiveInverted, Y["--n-option-text-color-child-active"] = x.optionTextColorChildActiveInverted, Y["--n-prefix-color"] = x.prefixColorInverted, Y["--n-suffix-color"] = x.suffixColorInverted, Y["--n-group-header-text-color"] = x.groupHeaderTextColorInverted) : (Y["--n-color"] = x.color, Y["--n-option-color-hover"] = x.optionColorHover, Y["--n-option-color-active"] = x.optionColorActive, Y["--n-option-text-color"] = x.optionTextColor, Y["--n-option-text-color-hover"] = x.optionTextColorHover, Y["--n-option-text-color-active"] = x.optionTextColorActive, Y["--n-option-text-color-child-active"] = x.optionTextColorChildActive, Y["--n-prefix-color"] = x.prefixColor, Y["--n-suffix-color"] = x.suffixColor, Y["--n-group-header-text-color"] = x.groupHeaderTextColor), Y;
7013
- }), N = m ? yn("dropdown", _(() => `${e.size[0]}${e.inverted ? "i" : ""}`), S, e) : void 0;
7012
+ return k ? (Y["--n-color"] = S.colorInverted, Y["--n-option-color-hover"] = S.optionColorHoverInverted, Y["--n-option-color-active"] = S.optionColorActiveInverted, Y["--n-option-text-color"] = S.optionTextColorInverted, Y["--n-option-text-color-hover"] = S.optionTextColorHoverInverted, Y["--n-option-text-color-active"] = S.optionTextColorActiveInverted, Y["--n-option-text-color-child-active"] = S.optionTextColorChildActiveInverted, Y["--n-prefix-color"] = S.prefixColorInverted, Y["--n-suffix-color"] = S.suffixColorInverted, Y["--n-group-header-text-color"] = S.groupHeaderTextColorInverted) : (Y["--n-color"] = S.color, Y["--n-option-color-hover"] = S.optionColorHover, Y["--n-option-color-active"] = S.optionColorActive, Y["--n-option-text-color"] = S.optionTextColor, Y["--n-option-text-color-hover"] = S.optionTextColorHover, Y["--n-option-text-color-active"] = S.optionTextColorActive, Y["--n-option-text-color-child-active"] = S.optionTextColorChildActive, Y["--n-prefix-color"] = S.prefixColor, Y["--n-suffix-color"] = S.suffixColor, Y["--n-group-header-text-color"] = S.groupHeaderTextColor), Y;
7013
+ }), N = b ? yn("dropdown", I(() => `${e.size[0]}${e.inverted ? "i" : ""}`), C, e) : void 0;
7014
7014
  return {
7015
7015
  mergedClsPrefix: p,
7016
- mergedTheme: f,
7016
+ mergedTheme: d,
7017
7017
  // data
7018
7018
  tmNodes: o,
7019
7019
  // show
7020
7020
  mergedShow: n,
7021
7021
  // methods
7022
7022
  handleAfterLeave: () => {
7023
- e.animated && u();
7023
+ e.animated && f();
7024
7024
  },
7025
7025
  doUpdateShow: v,
7026
- cssVars: m ? void 0 : S,
7026
+ cssVars: b ? void 0 : C,
7027
7027
  themeClass: N?.themeClass,
7028
7028
  onRender: N?.onRender
7029
7029
  };
@@ -7033,10 +7033,10 @@ const ps = ee({
7033
7033
  var a;
7034
7034
  const {
7035
7035
  mergedClsPrefix: c,
7036
- menuProps: d
7036
+ menuProps: u
7037
7037
  } = this;
7038
7038
  (a = this.onRender) === null || a === void 0 || a.call(this);
7039
- const h = d?.(void 0, this.tmNodes.map((m) => m.rawNode)) || {}, p = {
7039
+ const h = u?.(void 0, this.tmNodes.map((b) => b.rawNode)) || {}, p = {
7040
7040
  ref: su(o),
7041
7041
  class: [r, `${c}-dropdown`, this.themeClass],
7042
7042
  clsPrefix: c,
@@ -7048,7 +7048,7 @@ const ps = ee({
7048
7048
  onMouseenter: s,
7049
7049
  onMouseleave: l
7050
7050
  };
7051
- return A(vs, gt(this.$attrs, p, h));
7051
+ return E(vs, gt(this.$attrs, p, h));
7052
7052
  }, {
7053
7053
  mergedTheme: t
7054
7054
  } = this, n = {
@@ -7060,7 +7060,7 @@ const ps = ee({
7060
7060
  onUpdateShow: this.doUpdateShow,
7061
7061
  "onUpdate:show": void 0
7062
7062
  };
7063
- return A(ds, Object.assign({}, ki(this.$props, b0), n), {
7063
+ return E(ds, Object.assign({}, ki(this.$props, b0), n), {
7064
7064
  trigger: () => {
7065
7065
  var r, o;
7066
7066
  return (o = (r = this.$slots).default) === null || o === void 0 ? void 0 : o.call(r);
@@ -7139,7 +7139,7 @@ const S0 = {
7139
7139
  } = bt(e), n = pe("Skeleton", "-skeleton", C0, S0, e, t);
7140
7140
  return {
7141
7141
  mergedClsPrefix: t,
7142
- style: _(() => {
7142
+ style: I(() => {
7143
7143
  var r, o;
7144
7144
  const i = n.value, {
7145
7145
  common: {
@@ -7148,28 +7148,28 @@ const S0 = {
7148
7148
  } = i, l = i.self, {
7149
7149
  color: a,
7150
7150
  colorEnd: c,
7151
- borderRadius: d
7151
+ borderRadius: u
7152
7152
  } = l;
7153
7153
  let h;
7154
7154
  const {
7155
7155
  circle: p,
7156
- sharp: m,
7157
- round: f,
7158
- width: b,
7156
+ sharp: b,
7157
+ round: d,
7158
+ width: m,
7159
7159
  height: v,
7160
- size: u,
7161
- text: C,
7162
- animated: F
7160
+ size: f,
7161
+ text: F,
7162
+ animated: A
7163
7163
  } = e;
7164
- u !== void 0 && (h = l[Re("height", u)]);
7165
- const y = p ? (r = b ?? v) !== null && r !== void 0 ? r : h : b, E = (o = p ? b ?? v : v) !== null && o !== void 0 ? o : h;
7164
+ f !== void 0 && (h = l[Re("height", f)]);
7165
+ const x = p ? (r = m ?? v) !== null && r !== void 0 ? r : h : m, w = (o = p ? m ?? v : v) !== null && o !== void 0 ? o : h;
7166
7166
  return {
7167
- display: C ? "inline-block" : "",
7168
- verticalAlign: C ? "-0.125em" : "",
7169
- borderRadius: p ? "50%" : f ? "4096px" : m ? "" : d,
7170
- width: typeof y == "number" ? Qr(y) : y,
7171
- height: typeof E == "number" ? Qr(E) : E,
7172
- animation: F ? "" : "none",
7167
+ display: F ? "inline-block" : "",
7168
+ verticalAlign: F ? "-0.125em" : "",
7169
+ borderRadius: p ? "50%" : d ? "4096px" : b ? "" : u,
7170
+ width: typeof x == "number" ? Qr(x) : x,
7171
+ height: typeof w == "number" ? Qr(w) : w,
7172
+ animation: A ? "" : "none",
7173
7173
  "--n-bezier": s,
7174
7174
  "--n-color-start": a,
7175
7175
  "--n-color-end": c
@@ -7183,11 +7183,11 @@ const S0 = {
7183
7183
  style: t,
7184
7184
  mergedClsPrefix: n,
7185
7185
  $attrs: r
7186
- } = this, o = A("div", gt({
7186
+ } = this, o = E("div", gt({
7187
7187
  class: `${n}-skeleton`,
7188
7188
  style: t
7189
7189
  }, r));
7190
- return e > 1 ? A(_e, null, qa(e, null).map((i) => [o, `
7190
+ return e > 1 ? E(_e, null, qa(e, null).map((i) => [o, `
7191
7191
  `])) : o;
7192
7192
  }
7193
7193
  }), z0 = { key: 0 }, F0 = { key: 0 }, E0 = { key: 0 }, A0 = {
@@ -7208,7 +7208,7 @@ const S0 = {
7208
7208
  },
7209
7209
  emits: ["command"],
7210
7210
  setup(e, { emit: t }) {
7211
- const n = t, r = e, o = R(null), i = window.matchMedia("(max-width: 768px)").matches, s = {
7211
+ const n = t, r = e, o = P(null), i = window.matchMedia("(max-width: 768px)").matches, s = {
7212
7212
  left: {
7213
7213
  minWidth: "140px",
7214
7214
  justifyContent: "flex-start"
@@ -7222,120 +7222,126 @@ const S0 = {
7222
7222
  flexGrow: i ? 0 : 1,
7223
7223
  justifyContent: "center"
7224
7224
  }
7225
- }, l = _(() => s[r.position] || s.default), a = (u) => u.type === "button", c = (u) => u.type === "dropdown", d = (u) => u.type === "separator", h = (u) => u.type === "overflow", p = (u, C = null) => {
7226
- o.value = u, o.value.expand = !0, !u.disabled.value && n("command", { item: u, argument: C });
7227
- }, m = (u, C) => {
7228
- u.disabled.value || (o.value = null, n("command", { item: u, argument: C }));
7229
- }, f = () => {
7225
+ }, l = I(() => s[r.position] || s.default), a = (A) => A.type === "button", c = (A) => A.type === "dropdown", u = (A) => A.type === "separator", h = (A) => A.type === "overflow", p = (A, x = null) => {
7226
+ o.value = A, o.value.expand = !0, !A.disabled.value && n("command", { item: A, argument: x });
7227
+ }, b = (A, x) => {
7228
+ A.disabled.value || (o.value = null, n("command", { item: A, argument: x }));
7229
+ }, d = () => {
7230
7230
  o.value && (o.value.expand = !1, o.value = null);
7231
- }, b = (u, C) => {
7232
- f();
7233
- const F = u.dropdownValueKey.value ? C[u.dropdownValueKey.value] : C.label;
7234
- n("command", { item: u, argument: F, option: C });
7235
- }, v = (u) => {
7236
- f();
7231
+ }, m = P(null), v = (A, x) => {
7232
+ d();
7233
+ const w = A.dropdownValueKey.value ? x[A.dropdownValueKey.value] : x.label;
7234
+ n("command", { item: A, argument: w, option: x }), m.value = x.key;
7235
+ }, f = (A) => A.nestedOptions?.value?.length ? A.nestedOptions.value.map((x) => ({
7236
+ ...x,
7237
+ props: {
7238
+ ...x.props,
7239
+ class: m.value === x.key ? "selected" : ""
7240
+ }
7241
+ })) : [], F = (A) => {
7242
+ d();
7237
7243
  };
7238
- return (u, C) => (q(), ie("div", {
7244
+ return (A, x) => (q(), ie("div", {
7239
7245
  style: Tt(l.value),
7240
7246
  class: "button-group"
7241
7247
  }, [
7242
- (q(!0), ie(_e, null, tl(e.toolbarItems, (F) => (q(), ie("div", {
7243
- key: F.id.value,
7248
+ (q(!0), ie(_e, null, tl(e.toolbarItems, (w) => (q(), ie("div", {
7249
+ key: w.id.value,
7244
7250
  class: en([{
7245
- narrow: F.isNarrow.value,
7246
- wide: F.isWide.value
7251
+ narrow: w.isNarrow.value,
7252
+ wide: w.isWide.value
7247
7253
  }, "toolbar-item-ctn"])
7248
7254
  }, [
7249
- d(F) ? (q(), Ge(oa, {
7255
+ u(w) ? (q(), Ge(oa, {
7250
7256
  key: 0,
7251
7257
  style: { width: "20px" }
7252
7258
  })) : he("", !0),
7253
- c(F) && F.nestedOptions?.value?.length ? (q(), Ge(W(y0), {
7259
+ c(w) && w.nestedOptions?.value?.length ? (q(), Ge(W(y0), {
7254
7260
  key: 1,
7255
- options: F.nestedOptions.value,
7256
- trigger: F.disabled.value ? null : "click",
7257
- show: F.expand.value,
7261
+ options: f(w),
7262
+ trigger: w.disabled.value ? null : "click",
7263
+ show: w.expand.value,
7258
7264
  size: "medium",
7259
7265
  placement: "bottom-start",
7260
7266
  class: "toolbar-button toolbar-dropdown sd-editor-toolbar-dropdown",
7261
- onSelect: (y, E) => b(F, E),
7262
- onClickoutside: v,
7263
- style: Tt(F.dropdownStyles.value)
7267
+ onSelect: (_, g) => v(w, g),
7268
+ onClickoutside: F,
7269
+ style: Tt(w.dropdownStyles.value)
7264
7270
  }, {
7265
7271
  default: xt(() => [
7266
7272
  ct(W(ni), {
7267
7273
  trigger: "hover",
7268
- disabled: !F.tooltip?.value
7274
+ disabled: !w.tooltip?.value
7269
7275
  }, {
7270
7276
  trigger: xt(() => [
7271
7277
  ct(qn, {
7272
- "toolbar-item": F,
7273
- onTextSubmit: (y) => m(F, y),
7274
- onButtonClick: (y) => p(F)
7278
+ "toolbar-item": w,
7279
+ onTextSubmit: (_) => b(w, _),
7280
+ onButtonClick: (_) => p(w)
7275
7281
  }, null, 8, ["toolbar-item", "onTextSubmit", "onButtonClick"])
7276
7282
  ]),
7277
7283
  default: xt(() => [
7278
7284
  Ot("div", null, [
7279
- ht(Xn(F.tooltip) + " ", 1),
7280
- F.disabled.value ? (q(), ie("span", z0, "(disabled)")) : he("", !0)
7285
+ ht(Xn(w.tooltip) + " ", 1),
7286
+ w.disabled.value ? (q(), ie("span", z0, "(disabled)")) : he("", !0)
7281
7287
  ])
7282
7288
  ]),
7283
7289
  _: 2
7284
7290
  }, 1032, ["disabled"])
7285
7291
  ]),
7286
7292
  _: 2
7287
- }, 1032, ["options", "trigger", "show", "onSelect", "style"])) : a(F) ? (q(), Ge(W(ni), {
7293
+ }, 1032, ["options", "trigger", "show", "onSelect", "style"])) : a(w) ? (q(), Ge(W(ni), {
7288
7294
  key: 2,
7289
7295
  trigger: "hover",
7290
7296
  class: "sd-editor-toolbar-tooltip"
7291
7297
  }, {
7292
7298
  trigger: xt(() => [
7293
7299
  ct(qn, {
7294
- "toolbar-item": F,
7295
- onTextSubmit: (y) => m(F, y),
7296
- onButtonClick: (y) => p(F)
7300
+ "toolbar-item": w,
7301
+ onTextSubmit: (_) => b(w, _),
7302
+ onButtonClick: (_) => p(w)
7297
7303
  }, null, 8, ["toolbar-item", "onTextSubmit", "onButtonClick"])
7298
7304
  ]),
7299
7305
  default: xt(() => [
7300
- F.tooltip ? (q(), ie("div", F0, [
7301
- ht(Xn(F.tooltip) + " ", 1),
7302
- F.disabled.value ? (q(), ie("span", E0, "(disabled)")) : he("", !0)
7306
+ w.tooltip ? (q(), ie("div", F0, [
7307
+ ht(Xn(w.tooltip) + " ", 1),
7308
+ w.disabled.value ? (q(), ie("span", E0, "(disabled)")) : he("", !0)
7303
7309
  ])) : he("", !0)
7304
7310
  ]),
7305
7311
  _: 2
7306
7312
  }, 1024)) : he("", !0),
7307
- h(F) && e.overflowItems.length ? (q(), Ge(ca, {
7313
+ h(w) && e.overflowItems.length ? (q(), Ge(ca, {
7308
7314
  key: 3,
7309
- "toolbar-item": F,
7315
+ "toolbar-item": w,
7310
7316
  "overflow-items": e.overflowItems
7311
7317
  }, null, 8, ["toolbar-item", "overflow-items"])) : he("", !0)
7312
7318
  ], 2))), 128))
7313
7319
  ], 4));
7314
7320
  }
7315
- }, Qt = /* @__PURE__ */ mt(A0, [["__scopeId", "data-v-01872c2d"]]), M0 = {
7321
+ }, Qt = /* @__PURE__ */ mt(A0, [["__scopeId", "data-v-7751c4e5"]]), M0 = {
7316
7322
  __name: "Toolbar",
7317
7323
  emits: ["command", "toggle", "select"],
7318
7324
  setup(e, { emit: t }) {
7319
7325
  const { proxy: n } = Lt();
7320
- let r = R(1);
7321
- const o = n.$toolbar.config?.toolbarGroups?.includes("left"), i = n.$toolbar.config?.toolbarGroups?.includes("right"), s = n.$toolbar.config?.toolbarButtonsExclude || [], l = (p) => n.$toolbar.getToolbarItemByGroup(p).filter((m) => !s.includes(m.name.value));
7326
+ let r = P(1);
7327
+ const o = n.$toolbar.config?.toolbarGroups?.includes("left"), i = n.$toolbar.config?.toolbarGroups?.includes("right"), s = n.$toolbar.config?.toolbarButtonsExclude || [], l = (p) => n.$toolbar.getToolbarItemByGroup(p).filter((b) => !s.includes(b.name.value));
7322
7328
  Ke(() => {
7323
- window.addEventListener("resize", d), window.addEventListener("keydown", a);
7329
+ window.addEventListener("resize", u), window.addEventListener("keydown", a);
7324
7330
  }), oi(() => {
7325
- window.removeEventListener("resize", d), window.removeEventListener("keydown", a);
7331
+ window.removeEventListener("resize", u), window.removeEventListener("keydown", a);
7326
7332
  });
7327
7333
  const a = async (p) => {
7328
7334
  if (p.metaKey && p.key === "f") {
7329
7335
  p.preventDefault();
7330
- const m = n.$toolbar.getToolbarItemByName("search");
7331
- m && (m.expand.value = !0, await ii(), m.inputRef.value && m.inputRef.value.focus());
7336
+ const b = n.$toolbar.getToolbarItemByName("search");
7337
+ b && (b.expand.value = !0, await ii(), b.inputRef.value && b.inputRef.value.focus());
7332
7338
  }
7333
- }, d = nl(async () => {
7339
+ }, u = nl(async () => {
7334
7340
  await n.$toolbar.onToolbarResize(), r.value += 1;
7335
- }, 300), h = ({ item: p, argument: m, option: f }) => {
7336
- n.$toolbar.emitCommand({ item: p, argument: m, option: f });
7341
+ }, 300), h = ({ item: p, argument: b, option: d }) => {
7342
+ n.$toolbar.emitCommand({ item: p, argument: b, option: d });
7337
7343
  };
7338
- return (p, m) => (q(), ie("div", {
7344
+ return (p, b) => (q(), ie("div", {
7339
7345
  class: "superdoc-toolbar",
7340
7346
  key: W(r)
7341
7347
  }, [