@jctrans-materials/comps-vue2 1.0.4 → 1.0.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.
package/dist/index.esm.js CHANGED
@@ -1,19 +1,19 @@
1
- import oe, { ref as C, computed as Z, onMounted as se, onBeforeUnmount as Ut, defineComponent as ie, toRef as xt, watch as bt, reactive as Ct } from "vue";
2
- import { locationSearchV2 as qt, emitter as W, MODAL_ACTION as G, initSharedConfig as re } from "@jctrans-materials/shared";
3
- import { MODAL_ACTION as Mn, emitter as Pn } from "@jctrans-materials/shared";
4
- import { Col as St, Row as Rt, Checkbox as Dt, Button as Et, Input as Ot, FormItem as _t, Form as kt, Dialog as Tt } from "jctrans-ui";
5
- oe.util.warn;
6
- function le(e) {
7
- const t = C([]), n = "_search_history_cache", o = typeof window < "u" && typeof localStorage < "u", s = Z(
1
+ import le, { ref as S, computed as $, onMounted as ce, onBeforeUnmount as Kt, defineComponent as ue, toRef as Et, watch as ht, reactive as Ot } from "vue";
2
+ import { locationSearchV2 as Yt, emitter as K, MODAL_ACTION as Y, initSharedConfig as fe } from "@jctrans-materials/shared";
3
+ import { MODAL_ACTION as Vn, emitter as Hn } from "@jctrans-materials/shared";
4
+ import { Col as _t, Row as kt, Checkbox as Tt, Button as It, Input as Lt, FormItem as Ft, Form as Bt, Dialog as Mt } from "jctrans-ui";
5
+ le.util.warn;
6
+ function de(e) {
7
+ const t = S([]), n = "_search_history_cache", o = typeof window < "u" && typeof localStorage < "u", s = $(
8
8
  () => (e.value || "") + n
9
- ), i = Z(
9
+ ), i = $(
10
10
  () => !!e.value && e.value !== ""
11
- ), r = (a) => {
12
- if (!a || !o) return;
11
+ ), r = (l) => {
12
+ if (!l || !o) return;
13
13
  const u = t.value.filter(
14
- (f) => f.id && f.id !== a.id || f.display !== a.display
14
+ (f) => f.id && f.id !== l.id || f.display !== l.display
15
15
  );
16
- u.unshift(a);
16
+ u.unshift(l);
17
17
  const c = u.slice(0, 4);
18
18
  if (i.value) {
19
19
  t.value = c;
@@ -23,15 +23,15 @@ function le(e) {
23
23
  console.warn("LocalStorage save failed:", f);
24
24
  }
25
25
  }
26
- }, l = () => {
26
+ }, a = () => {
27
27
  t.value = [], o && localStorage.removeItem(s.value);
28
28
  };
29
- return se(() => {
29
+ return ce(() => {
30
30
  if (o && i.value) {
31
- const a = localStorage.getItem(s.value);
32
- if (a)
31
+ const l = localStorage.getItem(s.value);
32
+ if (l)
33
33
  try {
34
- t.value = JSON.parse(a);
34
+ t.value = JSON.parse(l);
35
35
  } catch {
36
36
  t.value = [];
37
37
  }
@@ -39,26 +39,26 @@ function le(e) {
39
39
  }), {
40
40
  searchHistory: t,
41
41
  saveToHistory: r,
42
- clearHistory: l,
42
+ clearHistory: a,
43
43
  HasHistory: i
44
44
  };
45
45
  }
46
- async function ae(e, t = [
46
+ async function me(e, t = [
47
47
  "Continent",
48
48
  "Country",
49
49
  "City",
50
50
  "Seaport",
51
51
  "Airport"
52
52
  ], n = {}) {
53
- return qt.searchByName({
53
+ return Yt.searchByName({
54
54
  keyword: e,
55
55
  displayInfo: t,
56
56
  ...n
57
57
  });
58
58
  }
59
- const ce = (e, t) => qt.searchByIdWithType(e, t);
60
- function ue(e, t) {
61
- const n = C([]), o = C(!1), s = C(!1), i = C(1), r = C(0), l = C(10), a = Z(() => r.value === 0 ? !1 : n.value.length >= r.value), u = Z(() => {
59
+ const gt = (e, t) => Yt.searchByIdWithType(e, t);
60
+ function pe(e, t) {
61
+ const n = S([]), o = S(!1), s = S(!1), i = S(1), r = S(0), a = S(10), l = $(() => r.value === 0 ? !1 : n.value.length >= r.value), u = $(() => {
62
62
  const m = [...t.value];
63
63
  return m.includes("Country") && !m.includes("Region") && m.push("Region"), m;
64
64
  }), c = (m) => !m || !Array.isArray(m) ? [] : m.filter(
@@ -68,7 +68,7 @@ function ue(e, t) {
68
68
  searchResults: n,
69
69
  loading: o,
70
70
  isFetchingMore: s,
71
- isFinished: a,
71
+ isFinished: l,
72
72
  currentPage: i,
73
73
  total: r,
74
74
  fetchData: async (m = 1, d = !1) => {
@@ -76,16 +76,16 @@ function ue(e, t) {
76
76
  n.value = [], r.value = 0;
77
77
  return;
78
78
  }
79
- if (!(d && (s.value || a.value)) && !(!d && o.value)) {
79
+ if (!(d && (s.value || l.value)) && !(!d && o.value)) {
80
80
  d ? s.value = !0 : (o.value = !0, i.value = 1);
81
81
  try {
82
- const p = await ae(
82
+ const p = await me(
83
83
  e.value,
84
84
  t.value,
85
85
  {
86
86
  current: m,
87
87
  // 使用传入的 page 参数
88
- size: l.value
88
+ size: a.value
89
89
  }
90
90
  ), h = p.records || [], y = c(h);
91
91
  d ? n.value = [...n.value, ...y] : n.value = y, r.value = p.total || 0, i.value = m;
@@ -99,78 +99,78 @@ function ue(e, t) {
99
99
  filterByTypes: c
100
100
  };
101
101
  }
102
- const Y = Math.min, S = Math.max, it = Math.round, st = Math.floor, I = (e) => ({
102
+ const Z = Math.min, O = Math.max, lt = Math.round, at = Math.floor, P = (e) => ({
103
103
  x: e,
104
104
  y: e
105
- }), fe = {
105
+ }), he = {
106
106
  left: "right",
107
107
  right: "left",
108
108
  bottom: "top",
109
109
  top: "bottom"
110
- }, de = {
110
+ }, ge = {
111
111
  start: "end",
112
112
  end: "start"
113
113
  };
114
- function It(e, t, n) {
115
- return S(e, Y(t, n));
114
+ function Pt(e, t, n) {
115
+ return O(e, Z(t, n));
116
116
  }
117
- function et(e, t) {
117
+ function ot(e, t) {
118
118
  return typeof e == "function" ? e(t) : e;
119
119
  }
120
- function Q(e) {
120
+ function W(e) {
121
121
  return e.split("-")[0];
122
122
  }
123
- function nt(e) {
123
+ function st(e) {
124
124
  return e.split("-")[1];
125
125
  }
126
- function Wt(e) {
126
+ function jt(e) {
127
127
  return e === "x" ? "y" : "x";
128
128
  }
129
- function Gt(e) {
129
+ function zt(e) {
130
130
  return e === "y" ? "height" : "width";
131
131
  }
132
- const me = /* @__PURE__ */ new Set(["top", "bottom"]);
133
- function N(e) {
134
- return me.has(Q(e)) ? "y" : "x";
132
+ const ye = /* @__PURE__ */ new Set(["top", "bottom"]);
133
+ function U(e) {
134
+ return ye.has(W(e)) ? "y" : "x";
135
135
  }
136
- function Jt(e) {
137
- return Wt(N(e));
136
+ function Xt(e) {
137
+ return jt(U(e));
138
138
  }
139
- function pe(e, t, n) {
139
+ function ve(e, t, n) {
140
140
  n === void 0 && (n = !1);
141
- const o = nt(e), s = Jt(e), i = Gt(s);
141
+ const o = st(e), s = Xt(e), i = zt(s);
142
142
  let r = s === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
143
- return t.reference[i] > t.floating[i] && (r = rt(r)), [r, rt(r)];
143
+ return t.reference[i] > t.floating[i] && (r = ct(r)), [r, ct(r)];
144
144
  }
145
- function he(e) {
146
- const t = rt(e);
147
- return [pt(e), t, pt(t)];
145
+ function Ae(e) {
146
+ const t = ct(e);
147
+ return [vt(e), t, vt(t)];
148
148
  }
149
- function pt(e) {
150
- return e.replace(/start|end/g, (t) => de[t]);
149
+ function vt(e) {
150
+ return e.replace(/start|end/g, (t) => ge[t]);
151
151
  }
152
- const Lt = ["left", "right"], Ft = ["right", "left"], ge = ["top", "bottom"], ye = ["bottom", "top"];
153
- function ve(e, t, n) {
152
+ const Nt = ["left", "right"], Qt = ["right", "left"], we = ["top", "bottom"], xe = ["bottom", "top"];
153
+ function be(e, t, n) {
154
154
  switch (e) {
155
155
  case "top":
156
156
  case "bottom":
157
- return n ? t ? Ft : Lt : t ? Lt : Ft;
157
+ return n ? t ? Qt : Nt : t ? Nt : Qt;
158
158
  case "left":
159
159
  case "right":
160
- return t ? ge : ye;
160
+ return t ? we : xe;
161
161
  default:
162
162
  return [];
163
163
  }
164
164
  }
165
- function Ae(e, t, n, o) {
166
- const s = nt(e);
167
- let i = ve(Q(e), n === "start", o);
168
- return s && (i = i.map((r) => r + "-" + s), t && (i = i.concat(i.map(pt)))), i;
165
+ function Ce(e, t, n, o) {
166
+ const s = st(e);
167
+ let i = be(W(e), n === "start", o);
168
+ return s && (i = i.map((r) => r + "-" + s), t && (i = i.concat(i.map(vt)))), i;
169
169
  }
170
- function rt(e) {
171
- return e.replace(/left|right|bottom|top/g, (t) => fe[t]);
170
+ function ct(e) {
171
+ return e.replace(/left|right|bottom|top/g, (t) => he[t]);
172
172
  }
173
- function we(e) {
173
+ function Se(e) {
174
174
  return {
175
175
  top: 0,
176
176
  right: 0,
@@ -179,15 +179,15 @@ function we(e) {
179
179
  ...e
180
180
  };
181
181
  }
182
- function xe(e) {
183
- return typeof e != "number" ? we(e) : {
182
+ function Re(e) {
183
+ return typeof e != "number" ? Se(e) : {
184
184
  top: e,
185
185
  right: e,
186
186
  bottom: e,
187
187
  left: e
188
188
  };
189
189
  }
190
- function lt(e) {
190
+ function ut(e) {
191
191
  const {
192
192
  x: t,
193
193
  y: n,
@@ -205,14 +205,14 @@ function lt(e) {
205
205
  y: n
206
206
  };
207
207
  }
208
- function Bt(e, t, n) {
208
+ function Vt(e, t, n) {
209
209
  let {
210
210
  reference: o,
211
211
  floating: s
212
212
  } = e;
213
- const i = N(t), r = Jt(t), l = Gt(r), a = Q(t), u = i === "y", c = o.x + o.width / 2 - s.width / 2, f = o.y + o.height / 2 - s.height / 2, m = o[l] / 2 - s[l] / 2;
213
+ const i = U(t), r = Xt(t), a = zt(r), l = W(t), u = i === "y", c = o.x + o.width / 2 - s.width / 2, f = o.y + o.height / 2 - s.height / 2, m = o[a] / 2 - s[a] / 2;
214
214
  let d;
215
- switch (a) {
215
+ switch (l) {
216
216
  case "top":
217
217
  d = {
218
218
  x: c,
@@ -243,7 +243,7 @@ function Bt(e, t, n) {
243
243
  y: o.y
244
244
  };
245
245
  }
246
- switch (nt(t)) {
246
+ switch (st(t)) {
247
247
  case "start":
248
248
  d[r] -= m * (n && u ? -1 : 1);
249
249
  break;
@@ -253,13 +253,13 @@ function Bt(e, t, n) {
253
253
  }
254
254
  return d;
255
255
  }
256
- const be = async (e, t, n) => {
256
+ const De = async (e, t, n) => {
257
257
  const {
258
258
  placement: o = "bottom",
259
259
  strategy: s = "absolute",
260
260
  middleware: i = [],
261
261
  platform: r
262
- } = n, l = i.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(t));
262
+ } = n, a = i.filter(Boolean), l = await (r.isRTL == null ? void 0 : r.isRTL(t));
263
263
  let u = await r.getElementRects({
264
264
  reference: e,
265
265
  floating: t,
@@ -267,16 +267,16 @@ const be = async (e, t, n) => {
267
267
  }), {
268
268
  x: c,
269
269
  y: f
270
- } = Bt(u, o, a), m = o, d = {}, p = 0;
271
- for (let h = 0; h < l.length; h++) {
270
+ } = Vt(u, o, l), m = o, d = {}, p = 0;
271
+ for (let h = 0; h < a.length; h++) {
272
272
  const {
273
273
  name: y,
274
274
  fn: g
275
- } = l[h], {
276
- x: v,
277
- y: A,
278
- data: b,
279
- reset: w
275
+ } = a[h], {
276
+ x: A,
277
+ y: w,
278
+ data: C,
279
+ reset: x
280
280
  } = await g({
281
281
  x: c,
282
282
  y: f,
@@ -291,20 +291,20 @@ const be = async (e, t, n) => {
291
291
  floating: t
292
292
  }
293
293
  });
294
- c = v ?? c, f = A ?? f, d = {
294
+ c = A ?? c, f = w ?? f, d = {
295
295
  ...d,
296
296
  [y]: {
297
297
  ...d[y],
298
- ...b
298
+ ...C
299
299
  }
300
- }, w && p <= 50 && (p++, typeof w == "object" && (w.placement && (m = w.placement), w.rects && (u = w.rects === !0 ? await r.getElementRects({
300
+ }, x && p <= 50 && (p++, typeof x == "object" && (x.placement && (m = x.placement), x.rects && (u = x.rects === !0 ? await r.getElementRects({
301
301
  reference: e,
302
302
  floating: t,
303
303
  strategy: s
304
- }) : w.rects), {
304
+ }) : x.rects), {
305
305
  x: c,
306
306
  y: f
307
- } = Bt(u, m, a)), h = -1);
307
+ } = Vt(u, m, l)), h = -1);
308
308
  }
309
309
  return {
310
310
  x: c,
@@ -314,7 +314,7 @@ const be = async (e, t, n) => {
314
314
  middlewareData: d
315
315
  };
316
316
  };
317
- async function gt(e, t) {
317
+ async function wt(e, t) {
318
318
  var n;
319
319
  t === void 0 && (t = {});
320
320
  const {
@@ -322,44 +322,44 @@ async function gt(e, t) {
322
322
  y: s,
323
323
  platform: i,
324
324
  rects: r,
325
- elements: l,
326
- strategy: a
325
+ elements: a,
326
+ strategy: l
327
327
  } = e, {
328
328
  boundary: u = "clippingAncestors",
329
329
  rootBoundary: c = "viewport",
330
330
  elementContext: f = "floating",
331
331
  altBoundary: m = !1,
332
332
  padding: d = 0
333
- } = et(t, e), p = xe(d), y = l[m ? f === "floating" ? "reference" : "floating" : f], g = lt(await i.getClippingRect({
334
- element: (n = await (i.isElement == null ? void 0 : i.isElement(y))) == null || n ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
333
+ } = ot(t, e), p = Re(d), y = a[m ? f === "floating" ? "reference" : "floating" : f], g = ut(await i.getClippingRect({
334
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(y))) == null || n ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
335
335
  boundary: u,
336
336
  rootBoundary: c,
337
- strategy: a
338
- })), v = f === "floating" ? {
337
+ strategy: l
338
+ })), A = f === "floating" ? {
339
339
  x: o,
340
340
  y: s,
341
341
  width: r.floating.width,
342
342
  height: r.floating.height
343
- } : r.reference, A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), b = await (i.isElement == null ? void 0 : i.isElement(A)) ? await (i.getScale == null ? void 0 : i.getScale(A)) || {
343
+ } : r.reference, w = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), C = await (i.isElement == null ? void 0 : i.isElement(w)) ? await (i.getScale == null ? void 0 : i.getScale(w)) || {
344
344
  x: 1,
345
345
  y: 1
346
346
  } : {
347
347
  x: 1,
348
348
  y: 1
349
- }, w = lt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
350
- elements: l,
351
- rect: v,
352
- offsetParent: A,
353
- strategy: a
354
- }) : v);
349
+ }, x = ut(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
350
+ elements: a,
351
+ rect: A,
352
+ offsetParent: w,
353
+ strategy: l
354
+ }) : A);
355
355
  return {
356
- top: (g.top - w.top + p.top) / b.y,
357
- bottom: (w.bottom - g.bottom + p.bottom) / b.y,
358
- left: (g.left - w.left + p.left) / b.x,
359
- right: (w.right - g.right + p.right) / b.x
356
+ top: (g.top - x.top + p.top) / C.y,
357
+ bottom: (x.bottom - g.bottom + p.bottom) / C.y,
358
+ left: (g.left - x.left + p.left) / C.x,
359
+ right: (x.right - g.right + p.right) / C.x
360
360
  };
361
361
  }
362
- const Ce = function(e) {
362
+ const Ee = function(e) {
363
363
  return e === void 0 && (e = {}), {
364
364
  name: "flip",
365
365
  options: e,
@@ -369,8 +369,8 @@ const Ce = function(e) {
369
369
  placement: s,
370
370
  middlewareData: i,
371
371
  rects: r,
372
- initialPlacement: l,
373
- platform: a,
372
+ initialPlacement: a,
373
+ platform: l,
374
374
  elements: u
375
375
  } = t, {
376
376
  mainAxis: c = !0,
@@ -380,73 +380,73 @@ const Ce = function(e) {
380
380
  fallbackAxisSideDirection: p = "none",
381
381
  flipAlignment: h = !0,
382
382
  ...y
383
- } = et(e, t);
383
+ } = ot(e, t);
384
384
  if ((n = i.arrow) != null && n.alignmentOffset)
385
385
  return {};
386
- const g = Q(s), v = N(l), A = Q(l) === l, b = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), w = m || (A || !h ? [rt(l)] : he(l)), E = p !== "none";
387
- !m && E && w.push(...Ae(l, h, p, b));
388
- const D = [l, ...w], B = await gt(t, y), M = [];
389
- let O = ((o = i.flip) == null ? void 0 : o.overflows) || [];
390
- if (c && M.push(B[g]), f) {
391
- const U = pe(s, r, b);
392
- M.push(B[U[0]], B[U[1]]);
386
+ const g = W(s), A = U(a), w = W(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), x = m || (w || !h ? [ct(a)] : Ae(a)), I = p !== "none";
387
+ !m && I && x.push(...Ce(a, h, p, C));
388
+ const k = [a, ...x], V = await wt(t, y), H = [];
389
+ let L = ((o = i.flip) == null ? void 0 : o.overflows) || [];
390
+ if (c && H.push(V[g]), f) {
391
+ const E = ve(s, r, C);
392
+ H.push(V[E[0]], V[E[1]]);
393
393
  }
394
- if (O = [...O, {
394
+ if (L = [...L, {
395
395
  placement: s,
396
- overflows: M
397
- }], !M.every((U) => U <= 0)) {
398
- var x, P;
399
- const U = (((x = i.flip) == null ? void 0 : x.index) || 0) + 1, dt = D[U];
400
- if (dt && (!(f === "alignment" ? v !== N(dt) : !1) || // We leave the current main axis only if every placement on that axis
396
+ overflows: H
397
+ }], !H.every((E) => E <= 0)) {
398
+ var G, q;
399
+ const E = (((G = i.flip) == null ? void 0 : G.index) || 0) + 1, R = k[E];
400
+ if (R && (!(f === "alignment" ? A !== U(R) : !1) || // We leave the current main axis only if every placement on that axis
401
401
  // overflows the main axis.
402
- O.every((_) => N(_.placement) === v ? _.overflows[0] > 0 : !0)))
402
+ L.every((b) => U(b.placement) === A ? b.overflows[0] > 0 : !0)))
403
403
  return {
404
404
  data: {
405
- index: U,
406
- overflows: O
405
+ index: E,
406
+ overflows: L
407
407
  },
408
408
  reset: {
409
- placement: dt
409
+ placement: R
410
410
  }
411
411
  };
412
- let $ = (P = O.filter((q) => q.overflows[0] <= 0).sort((q, _) => q.overflows[1] - _.overflows[1])[0]) == null ? void 0 : P.placement;
413
- if (!$)
412
+ let F = (q = L.filter((D) => D.overflows[0] <= 0).sort((D, b) => D.overflows[1] - b.overflows[1])[0]) == null ? void 0 : q.placement;
413
+ if (!F)
414
414
  switch (d) {
415
415
  case "bestFit": {
416
- var j;
417
- const q = (j = O.filter((_) => {
418
- if (E) {
419
- const V = N(_.placement);
420
- return V === v || // Create a bias to the `y` side axis due to horizontal
416
+ var v;
417
+ const D = (v = L.filter((b) => {
418
+ if (I) {
419
+ const T = U(b.placement);
420
+ return T === A || // Create a bias to the `y` side axis due to horizontal
421
421
  // reading directions favoring greater width.
422
- V === "y";
422
+ T === "y";
423
423
  }
424
424
  return !0;
425
- }).map((_) => [_.placement, _.overflows.filter((V) => V > 0).reduce((V, ne) => V + ne, 0)]).sort((_, V) => _[1] - V[1])[0]) == null ? void 0 : j[0];
426
- q && ($ = q);
425
+ }).map((b) => [b.placement, b.overflows.filter((T) => T > 0).reduce((T, z) => T + z, 0)]).sort((b, T) => b[1] - T[1])[0]) == null ? void 0 : v[0];
426
+ D && (F = D);
427
427
  break;
428
428
  }
429
429
  case "initialPlacement":
430
- $ = l;
430
+ F = a;
431
431
  break;
432
432
  }
433
- if (s !== $)
433
+ if (s !== F)
434
434
  return {
435
435
  reset: {
436
- placement: $
436
+ placement: F
437
437
  }
438
438
  };
439
439
  }
440
440
  return {};
441
441
  }
442
442
  };
443
- }, Se = /* @__PURE__ */ new Set(["left", "top"]);
444
- async function Re(e, t) {
443
+ }, Oe = /* @__PURE__ */ new Set(["left", "top"]);
444
+ async function _e(e, t) {
445
445
  const {
446
446
  placement: n,
447
447
  platform: o,
448
448
  elements: s
449
- } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), r = Q(n), l = nt(n), a = N(n) === "y", u = Se.has(r) ? -1 : 1, c = i && a ? -1 : 1, f = et(t, e);
449
+ } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), r = W(n), a = st(n), l = U(n) === "y", u = Oe.has(r) ? -1 : 1, c = i && l ? -1 : 1, f = ot(t, e);
450
450
  let {
451
451
  mainAxis: m,
452
452
  crossAxis: d,
@@ -460,7 +460,7 @@ async function Re(e, t) {
460
460
  crossAxis: f.crossAxis || 0,
461
461
  alignmentAxis: f.alignmentAxis
462
462
  };
463
- return l && typeof p == "number" && (d = l === "end" ? p * -1 : p), a ? {
463
+ return a && typeof p == "number" && (d = a === "end" ? p * -1 : p), l ? {
464
464
  x: d * c,
465
465
  y: m * u
466
466
  } : {
@@ -468,7 +468,7 @@ async function Re(e, t) {
468
468
  y: d * c
469
469
  };
470
470
  }
471
- const De = function(e) {
471
+ const ke = function(e) {
472
472
  return e === void 0 && (e = 0), {
473
473
  name: "offset",
474
474
  options: e,
@@ -478,19 +478,19 @@ const De = function(e) {
478
478
  x: s,
479
479
  y: i,
480
480
  placement: r,
481
- middlewareData: l
482
- } = t, a = await Re(t, e);
483
- return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
484
- x: s + a.x,
485
- y: i + a.y,
481
+ middlewareData: a
482
+ } = t, l = await _e(t, e);
483
+ return r === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
484
+ x: s + l.x,
485
+ y: i + l.y,
486
486
  data: {
487
- ...a,
487
+ ...l,
488
488
  placement: r
489
489
  }
490
490
  };
491
491
  }
492
492
  };
493
- }, Ee = function(e) {
493
+ }, Te = function(e) {
494
494
  return e === void 0 && (e = {}), {
495
495
  name: "shift",
496
496
  options: e,
@@ -502,33 +502,33 @@ const De = function(e) {
502
502
  } = t, {
503
503
  mainAxis: i = !0,
504
504
  crossAxis: r = !1,
505
- limiter: l = {
505
+ limiter: a = {
506
506
  fn: (y) => {
507
507
  let {
508
508
  x: g,
509
- y: v
509
+ y: A
510
510
  } = y;
511
511
  return {
512
512
  x: g,
513
- y: v
513
+ y: A
514
514
  };
515
515
  }
516
516
  },
517
- ...a
518
- } = et(e, t), u = {
517
+ ...l
518
+ } = ot(e, t), u = {
519
519
  x: n,
520
520
  y: o
521
- }, c = await gt(t, a), f = N(Q(s)), m = Wt(f);
521
+ }, c = await wt(t, l), f = U(W(s)), m = jt(f);
522
522
  let d = u[m], p = u[f];
523
523
  if (i) {
524
- const y = m === "y" ? "top" : "left", g = m === "y" ? "bottom" : "right", v = d + c[y], A = d - c[g];
525
- d = It(v, d, A);
524
+ const y = m === "y" ? "top" : "left", g = m === "y" ? "bottom" : "right", A = d + c[y], w = d - c[g];
525
+ d = Pt(A, d, w);
526
526
  }
527
527
  if (r) {
528
- const y = f === "y" ? "top" : "left", g = f === "y" ? "bottom" : "right", v = p + c[y], A = p - c[g];
529
- p = It(v, p, A);
528
+ const y = f === "y" ? "top" : "left", g = f === "y" ? "bottom" : "right", A = p + c[y], w = p - c[g];
529
+ p = Pt(A, p, w);
530
530
  }
531
- const h = l.fn({
531
+ const h = a.fn({
532
532
  ...t,
533
533
  [m]: d,
534
534
  [f]: p
@@ -546,7 +546,7 @@ const De = function(e) {
546
546
  };
547
547
  }
548
548
  };
549
- }, Oe = function(e) {
549
+ }, Ie = function(e) {
550
550
  return e === void 0 && (e = {}), {
551
551
  name: "size",
552
552
  options: e,
@@ -556,30 +556,30 @@ const De = function(e) {
556
556
  placement: s,
557
557
  rects: i,
558
558
  platform: r,
559
- elements: l
559
+ elements: a
560
560
  } = t, {
561
- apply: a = () => {
561
+ apply: l = () => {
562
562
  },
563
563
  ...u
564
- } = et(e, t), c = await gt(t, u), f = Q(s), m = nt(s), d = N(s) === "y", {
564
+ } = ot(e, t), c = await wt(t, u), f = W(s), m = st(s), d = U(s) === "y", {
565
565
  width: p,
566
566
  height: h
567
567
  } = i.floating;
568
568
  let y, g;
569
- f === "top" || f === "bottom" ? (y = f, g = m === (await (r.isRTL == null ? void 0 : r.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (g = f, y = m === "end" ? "top" : "bottom");
570
- const v = h - c.top - c.bottom, A = p - c.left - c.right, b = Y(h - c[y], v), w = Y(p - c[g], A), E = !t.middlewareData.shift;
571
- let D = b, B = w;
572
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (B = A), (o = t.middlewareData.shift) != null && o.enabled.y && (D = v), E && !m) {
573
- const O = S(c.left, 0), x = S(c.right, 0), P = S(c.top, 0), j = S(c.bottom, 0);
574
- d ? B = p - 2 * (O !== 0 || x !== 0 ? O + x : S(c.left, c.right)) : D = h - 2 * (P !== 0 || j !== 0 ? P + j : S(c.top, c.bottom));
569
+ f === "top" || f === "bottom" ? (y = f, g = m === (await (r.isRTL == null ? void 0 : r.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (g = f, y = m === "end" ? "top" : "bottom");
570
+ const A = h - c.top - c.bottom, w = p - c.left - c.right, C = Z(h - c[y], A), x = Z(p - c[g], w), I = !t.middlewareData.shift;
571
+ let k = C, V = x;
572
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (V = w), (o = t.middlewareData.shift) != null && o.enabled.y && (k = A), I && !m) {
573
+ const L = O(c.left, 0), G = O(c.right, 0), q = O(c.top, 0), v = O(c.bottom, 0);
574
+ d ? V = p - 2 * (L !== 0 || G !== 0 ? L + G : O(c.left, c.right)) : k = h - 2 * (q !== 0 || v !== 0 ? q + v : O(c.top, c.bottom));
575
575
  }
576
- await a({
576
+ await l({
577
577
  ...t,
578
- availableWidth: B,
579
- availableHeight: D
578
+ availableWidth: V,
579
+ availableHeight: k
580
580
  });
581
- const M = await r.getDimensions(l.floating);
582
- return p !== M.width || h !== M.height ? {
581
+ const H = await r.getDimensions(a.floating);
582
+ return p !== H.width || h !== H.height ? {
583
583
  reset: {
584
584
  rects: !0
585
585
  }
@@ -587,49 +587,49 @@ const De = function(e) {
587
587
  }
588
588
  };
589
589
  };
590
- function at() {
590
+ function ft() {
591
591
  return typeof window < "u";
592
592
  }
593
- function X(e) {
594
- return Kt(e) ? (e.nodeName || "").toLowerCase() : "#document";
593
+ function et(e) {
594
+ return $t(e) ? (e.nodeName || "").toLowerCase() : "#document";
595
595
  }
596
- function R(e) {
596
+ function _(e) {
597
597
  var t;
598
598
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
599
599
  }
600
- function F(e) {
600
+ function Q(e) {
601
601
  var t;
602
- return (t = (Kt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
602
+ return (t = ($t(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
603
603
  }
604
- function Kt(e) {
605
- return at() ? e instanceof Node || e instanceof R(e).Node : !1;
604
+ function $t(e) {
605
+ return ft() ? e instanceof Node || e instanceof _(e).Node : !1;
606
606
  }
607
- function k(e) {
608
- return at() ? e instanceof Element || e instanceof R(e).Element : !1;
607
+ function B(e) {
608
+ return ft() ? e instanceof Element || e instanceof _(e).Element : !1;
609
609
  }
610
- function L(e) {
611
- return at() ? e instanceof HTMLElement || e instanceof R(e).HTMLElement : !1;
610
+ function N(e) {
611
+ return ft() ? e instanceof HTMLElement || e instanceof _(e).HTMLElement : !1;
612
612
  }
613
- function Mt(e) {
614
- return !at() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof R(e).ShadowRoot;
613
+ function Ht(e) {
614
+ return !ft() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof _(e).ShadowRoot;
615
615
  }
616
- const _e = /* @__PURE__ */ new Set(["inline", "contents"]);
617
- function ot(e) {
616
+ const Le = /* @__PURE__ */ new Set(["inline", "contents"]);
617
+ function it(e) {
618
618
  const {
619
619
  overflow: t,
620
620
  overflowX: n,
621
621
  overflowY: o,
622
622
  display: s
623
- } = T(e);
624
- return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !_e.has(s);
623
+ } = M(e);
624
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !Le.has(s);
625
625
  }
626
- const ke = /* @__PURE__ */ new Set(["table", "td", "th"]);
627
- function Te(e) {
628
- return ke.has(X(e));
626
+ const Fe = /* @__PURE__ */ new Set(["table", "td", "th"]);
627
+ function Be(e) {
628
+ return Fe.has(et(e));
629
629
  }
630
- const Ie = [":popover-open", ":modal"];
631
- function ct(e) {
632
- return Ie.some((t) => {
630
+ const Me = [":popover-open", ":modal"];
631
+ function dt(e) {
632
+ return Me.some((t) => {
633
633
  try {
634
634
  return e.matches(t);
635
635
  } catch {
@@ -637,34 +637,34 @@ function ct(e) {
637
637
  }
638
638
  });
639
639
  }
640
- const Le = ["transform", "translate", "scale", "rotate", "perspective"], Fe = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Be = ["paint", "layout", "strict", "content"];
641
- function yt(e) {
642
- const t = vt(), n = k(e) ? T(e) : e;
643
- return Le.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Fe.some((o) => (n.willChange || "").includes(o)) || Be.some((o) => (n.contain || "").includes(o));
640
+ const Pe = ["transform", "translate", "scale", "rotate", "perspective"], Ne = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Qe = ["paint", "layout", "strict", "content"];
641
+ function xt(e) {
642
+ const t = bt(), n = B(e) ? M(e) : e;
643
+ return Pe.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Ne.some((o) => (n.willChange || "").includes(o)) || Qe.some((o) => (n.contain || "").includes(o));
644
644
  }
645
- function Me(e) {
646
- let t = H(e);
647
- for (; L(t) && !z(t); ) {
648
- if (yt(t))
645
+ function Ve(e) {
646
+ let t = J(e);
647
+ for (; N(t) && !tt(t); ) {
648
+ if (xt(t))
649
649
  return t;
650
- if (ct(t))
650
+ if (dt(t))
651
651
  return null;
652
- t = H(t);
652
+ t = J(t);
653
653
  }
654
654
  return null;
655
655
  }
656
- function vt() {
656
+ function bt() {
657
657
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
658
658
  }
659
- const Pe = /* @__PURE__ */ new Set(["html", "body", "#document"]);
660
- function z(e) {
661
- return Pe.has(X(e));
659
+ const He = /* @__PURE__ */ new Set(["html", "body", "#document"]);
660
+ function tt(e) {
661
+ return He.has(et(e));
662
662
  }
663
- function T(e) {
664
- return R(e).getComputedStyle(e);
663
+ function M(e) {
664
+ return _(e).getComputedStyle(e);
665
665
  }
666
- function ut(e) {
667
- return k(e) ? {
666
+ function mt(e) {
667
+ return B(e) ? {
668
668
  scrollLeft: e.scrollLeft,
669
669
  scrollTop: e.scrollTop
670
670
  } : {
@@ -672,189 +672,189 @@ function ut(e) {
672
672
  scrollTop: e.scrollY
673
673
  };
674
674
  }
675
- function H(e) {
676
- if (X(e) === "html")
675
+ function J(e) {
676
+ if (et(e) === "html")
677
677
  return e;
678
678
  const t = (
679
679
  // Step into the shadow DOM of the parent of a slotted node.
680
680
  e.assignedSlot || // DOM Element detected.
681
681
  e.parentNode || // ShadowRoot detected.
682
- Mt(e) && e.host || // Fallback.
683
- F(e)
682
+ Ht(e) && e.host || // Fallback.
683
+ Q(e)
684
684
  );
685
- return Mt(t) ? t.host : t;
685
+ return Ht(t) ? t.host : t;
686
686
  }
687
- function Yt(e) {
688
- const t = H(e);
689
- return z(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : L(t) && ot(t) ? t : Yt(t);
687
+ function Zt(e) {
688
+ const t = J(e);
689
+ return tt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : N(t) && it(t) ? t : Zt(t);
690
690
  }
691
- function tt(e, t, n) {
691
+ function nt(e, t, n) {
692
692
  var o;
693
693
  t === void 0 && (t = []), n === void 0 && (n = !0);
694
- const s = Yt(e), i = s === ((o = e.ownerDocument) == null ? void 0 : o.body), r = R(s);
694
+ const s = Zt(e), i = s === ((o = e.ownerDocument) == null ? void 0 : o.body), r = _(s);
695
695
  if (i) {
696
- const l = ht(r);
697
- return t.concat(r, r.visualViewport || [], ot(s) ? s : [], l && n ? tt(l) : []);
696
+ const a = At(r);
697
+ return t.concat(r, r.visualViewport || [], it(s) ? s : [], a && n ? nt(a) : []);
698
698
  }
699
- return t.concat(s, tt(s, [], n));
699
+ return t.concat(s, nt(s, [], n));
700
700
  }
701
- function ht(e) {
701
+ function At(e) {
702
702
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
703
703
  }
704
- function zt(e) {
705
- const t = T(e);
704
+ function te(e) {
705
+ const t = M(e);
706
706
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
707
- const s = L(e), i = s ? e.offsetWidth : n, r = s ? e.offsetHeight : o, l = it(n) !== i || it(o) !== r;
708
- return l && (n = i, o = r), {
707
+ const s = N(e), i = s ? e.offsetWidth : n, r = s ? e.offsetHeight : o, a = lt(n) !== i || lt(o) !== r;
708
+ return a && (n = i, o = r), {
709
709
  width: n,
710
710
  height: o,
711
- $: l
711
+ $: a
712
712
  };
713
713
  }
714
- function At(e) {
715
- return k(e) ? e : e.contextElement;
714
+ function Ct(e) {
715
+ return B(e) ? e : e.contextElement;
716
716
  }
717
- function K(e) {
718
- const t = At(e);
719
- if (!L(t))
720
- return I(1);
717
+ function X(e) {
718
+ const t = Ct(e);
719
+ if (!N(t))
720
+ return P(1);
721
721
  const n = t.getBoundingClientRect(), {
722
722
  width: o,
723
723
  height: s,
724
724
  $: i
725
- } = zt(t);
726
- let r = (i ? it(n.width) : n.width) / o, l = (i ? it(n.height) : n.height) / s;
727
- return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
725
+ } = te(t);
726
+ let r = (i ? lt(n.width) : n.width) / o, a = (i ? lt(n.height) : n.height) / s;
727
+ return (!r || !Number.isFinite(r)) && (r = 1), (!a || !Number.isFinite(a)) && (a = 1), {
728
728
  x: r,
729
- y: l
729
+ y: a
730
730
  };
731
731
  }
732
- const Ne = /* @__PURE__ */ I(0);
733
- function Xt(e) {
734
- const t = R(e);
735
- return !vt() || !t.visualViewport ? Ne : {
732
+ const Ue = /* @__PURE__ */ P(0);
733
+ function ee(e) {
734
+ const t = _(e);
735
+ return !bt() || !t.visualViewport ? Ue : {
736
736
  x: t.visualViewport.offsetLeft,
737
737
  y: t.visualViewport.offsetTop
738
738
  };
739
739
  }
740
- function Ve(e, t, n) {
741
- return t === void 0 && (t = !1), !n || t && n !== R(e) ? !1 : t;
740
+ function qe(e, t, n) {
741
+ return t === void 0 && (t = !1), !n || t && n !== _(e) ? !1 : t;
742
742
  }
743
- function J(e, t, n, o) {
743
+ function j(e, t, n, o) {
744
744
  t === void 0 && (t = !1), n === void 0 && (n = !1);
745
- const s = e.getBoundingClientRect(), i = At(e);
746
- let r = I(1);
747
- t && (o ? k(o) && (r = K(o)) : r = K(e));
748
- const l = Ve(i, n, o) ? Xt(i) : I(0);
749
- let a = (s.left + l.x) / r.x, u = (s.top + l.y) / r.y, c = s.width / r.x, f = s.height / r.y;
745
+ const s = e.getBoundingClientRect(), i = Ct(e);
746
+ let r = P(1);
747
+ t && (o ? B(o) && (r = X(o)) : r = X(e));
748
+ const a = qe(i, n, o) ? ee(i) : P(0);
749
+ let l = (s.left + a.x) / r.x, u = (s.top + a.y) / r.y, c = s.width / r.x, f = s.height / r.y;
750
750
  if (i) {
751
- const m = R(i), d = o && k(o) ? R(o) : o;
752
- let p = m, h = ht(p);
751
+ const m = _(i), d = o && B(o) ? _(o) : o;
752
+ let p = m, h = At(p);
753
753
  for (; h && o && d !== p; ) {
754
- const y = K(h), g = h.getBoundingClientRect(), v = T(h), A = g.left + (h.clientLeft + parseFloat(v.paddingLeft)) * y.x, b = g.top + (h.clientTop + parseFloat(v.paddingTop)) * y.y;
755
- a *= y.x, u *= y.y, c *= y.x, f *= y.y, a += A, u += b, p = R(h), h = ht(p);
754
+ const y = X(h), g = h.getBoundingClientRect(), A = M(h), w = g.left + (h.clientLeft + parseFloat(A.paddingLeft)) * y.x, C = g.top + (h.clientTop + parseFloat(A.paddingTop)) * y.y;
755
+ l *= y.x, u *= y.y, c *= y.x, f *= y.y, l += w, u += C, p = _(h), h = At(p);
756
756
  }
757
757
  }
758
- return lt({
758
+ return ut({
759
759
  width: c,
760
760
  height: f,
761
- x: a,
761
+ x: l,
762
762
  y: u
763
763
  });
764
764
  }
765
- function ft(e, t) {
766
- const n = ut(e).scrollLeft;
767
- return t ? t.left + n : J(F(e)).left + n;
765
+ function pt(e, t) {
766
+ const n = mt(e).scrollLeft;
767
+ return t ? t.left + n : j(Q(e)).left + n;
768
768
  }
769
- function jt(e, t) {
770
- const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - ft(e, n), s = n.top + t.scrollTop;
769
+ function ne(e, t) {
770
+ const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - pt(e, n), s = n.top + t.scrollTop;
771
771
  return {
772
772
  x: o,
773
773
  y: s
774
774
  };
775
775
  }
776
- function Qe(e) {
776
+ function We(e) {
777
777
  let {
778
778
  elements: t,
779
779
  rect: n,
780
780
  offsetParent: o,
781
781
  strategy: s
782
782
  } = e;
783
- const i = s === "fixed", r = F(o), l = t ? ct(t.floating) : !1;
784
- if (o === r || l && i)
783
+ const i = s === "fixed", r = Q(o), a = t ? dt(t.floating) : !1;
784
+ if (o === r || a && i)
785
785
  return n;
786
- let a = {
786
+ let l = {
787
787
  scrollLeft: 0,
788
788
  scrollTop: 0
789
- }, u = I(1);
790
- const c = I(0), f = L(o);
791
- if ((f || !f && !i) && ((X(o) !== "body" || ot(r)) && (a = ut(o)), L(o))) {
792
- const d = J(o);
793
- u = K(o), c.x = d.x + o.clientLeft, c.y = d.y + o.clientTop;
789
+ }, u = P(1);
790
+ const c = P(0), f = N(o);
791
+ if ((f || !f && !i) && ((et(o) !== "body" || it(r)) && (l = mt(o)), N(o))) {
792
+ const d = j(o);
793
+ u = X(o), c.x = d.x + o.clientLeft, c.y = d.y + o.clientTop;
794
794
  }
795
- const m = r && !f && !i ? jt(r, a) : I(0);
795
+ const m = r && !f && !i ? ne(r, l) : P(0);
796
796
  return {
797
797
  width: n.width * u.x,
798
798
  height: n.height * u.y,
799
- x: n.x * u.x - a.scrollLeft * u.x + c.x + m.x,
800
- y: n.y * u.y - a.scrollTop * u.y + c.y + m.y
799
+ x: n.x * u.x - l.scrollLeft * u.x + c.x + m.x,
800
+ y: n.y * u.y - l.scrollTop * u.y + c.y + m.y
801
801
  };
802
802
  }
803
- function He(e) {
803
+ function Je(e) {
804
804
  return Array.from(e.getClientRects());
805
805
  }
806
- function Ue(e) {
807
- const t = F(e), n = ut(e), o = e.ownerDocument.body, s = S(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = S(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
808
- let r = -n.scrollLeft + ft(e);
809
- const l = -n.scrollTop;
810
- return T(o).direction === "rtl" && (r += S(t.clientWidth, o.clientWidth) - s), {
806
+ function Ge(e) {
807
+ const t = Q(e), n = mt(e), o = e.ownerDocument.body, s = O(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = O(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
808
+ let r = -n.scrollLeft + pt(e);
809
+ const a = -n.scrollTop;
810
+ return M(o).direction === "rtl" && (r += O(t.clientWidth, o.clientWidth) - s), {
811
811
  width: s,
812
812
  height: i,
813
813
  x: r,
814
- y: l
814
+ y: a
815
815
  };
816
816
  }
817
- const Pt = 25;
818
- function qe(e, t) {
819
- const n = R(e), o = F(e), s = n.visualViewport;
820
- let i = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
817
+ const Ut = 25;
818
+ function Ke(e, t) {
819
+ const n = _(e), o = Q(e), s = n.visualViewport;
820
+ let i = o.clientWidth, r = o.clientHeight, a = 0, l = 0;
821
821
  if (s) {
822
822
  i = s.width, r = s.height;
823
- const c = vt();
824
- (!c || c && t === "fixed") && (l = s.offsetLeft, a = s.offsetTop);
823
+ const c = bt();
824
+ (!c || c && t === "fixed") && (a = s.offsetLeft, l = s.offsetTop);
825
825
  }
826
- const u = ft(o);
826
+ const u = pt(o);
827
827
  if (u <= 0) {
828
828
  const c = o.ownerDocument, f = c.body, m = getComputedStyle(f), d = c.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, p = Math.abs(o.clientWidth - f.clientWidth - d);
829
- p <= Pt && (i -= p);
830
- } else u <= Pt && (i += u);
829
+ p <= Ut && (i -= p);
830
+ } else u <= Ut && (i += u);
831
831
  return {
832
832
  width: i,
833
833
  height: r,
834
- x: l,
835
- y: a
834
+ x: a,
835
+ y: l
836
836
  };
837
837
  }
838
- const We = /* @__PURE__ */ new Set(["absolute", "fixed"]);
839
- function Ge(e, t) {
840
- const n = J(e, !0, t === "fixed"), o = n.top + e.clientTop, s = n.left + e.clientLeft, i = L(e) ? K(e) : I(1), r = e.clientWidth * i.x, l = e.clientHeight * i.y, a = s * i.x, u = o * i.y;
838
+ const Ye = /* @__PURE__ */ new Set(["absolute", "fixed"]);
839
+ function je(e, t) {
840
+ const n = j(e, !0, t === "fixed"), o = n.top + e.clientTop, s = n.left + e.clientLeft, i = N(e) ? X(e) : P(1), r = e.clientWidth * i.x, a = e.clientHeight * i.y, l = s * i.x, u = o * i.y;
841
841
  return {
842
842
  width: r,
843
- height: l,
844
- x: a,
843
+ height: a,
844
+ x: l,
845
845
  y: u
846
846
  };
847
847
  }
848
- function Nt(e, t, n) {
848
+ function qt(e, t, n) {
849
849
  let o;
850
850
  if (t === "viewport")
851
- o = qe(e, n);
851
+ o = Ke(e, n);
852
852
  else if (t === "document")
853
- o = Ue(F(e));
854
- else if (k(t))
855
- o = Ge(t, n);
853
+ o = Ge(Q(e));
854
+ else if (B(t))
855
+ o = je(t, n);
856
856
  else {
857
- const s = Xt(e);
857
+ const s = ee(e);
858
858
  o = {
859
859
  x: t.x - s.x,
860
860
  y: t.y - s.y,
@@ -862,70 +862,70 @@ function Nt(e, t, n) {
862
862
  height: t.height
863
863
  };
864
864
  }
865
- return lt(o);
865
+ return ut(o);
866
866
  }
867
- function $t(e, t) {
868
- const n = H(e);
869
- return n === t || !k(n) || z(n) ? !1 : T(n).position === "fixed" || $t(n, t);
867
+ function oe(e, t) {
868
+ const n = J(e);
869
+ return n === t || !B(n) || tt(n) ? !1 : M(n).position === "fixed" || oe(n, t);
870
870
  }
871
- function Je(e, t) {
871
+ function ze(e, t) {
872
872
  const n = t.get(e);
873
873
  if (n)
874
874
  return n;
875
- let o = tt(e, [], !1).filter((l) => k(l) && X(l) !== "body"), s = null;
876
- const i = T(e).position === "fixed";
877
- let r = i ? H(e) : e;
878
- for (; k(r) && !z(r); ) {
879
- const l = T(r), a = yt(r);
880
- !a && l.position === "fixed" && (s = null), (i ? !a && !s : !a && l.position === "static" && !!s && We.has(s.position) || ot(r) && !a && $t(e, r)) ? o = o.filter((c) => c !== r) : s = l, r = H(r);
875
+ let o = nt(e, [], !1).filter((a) => B(a) && et(a) !== "body"), s = null;
876
+ const i = M(e).position === "fixed";
877
+ let r = i ? J(e) : e;
878
+ for (; B(r) && !tt(r); ) {
879
+ const a = M(r), l = xt(r);
880
+ !l && a.position === "fixed" && (s = null), (i ? !l && !s : !l && a.position === "static" && !!s && Ye.has(s.position) || it(r) && !l && oe(e, r)) ? o = o.filter((c) => c !== r) : s = a, r = J(r);
881
881
  }
882
882
  return t.set(e, o), o;
883
883
  }
884
- function Ke(e) {
884
+ function Xe(e) {
885
885
  let {
886
886
  element: t,
887
887
  boundary: n,
888
888
  rootBoundary: o,
889
889
  strategy: s
890
890
  } = e;
891
- const r = [...n === "clippingAncestors" ? ct(t) ? [] : Je(t, this._c) : [].concat(n), o], l = r[0], a = r.reduce((u, c) => {
892
- const f = Nt(t, c, s);
893
- return u.top = S(f.top, u.top), u.right = Y(f.right, u.right), u.bottom = Y(f.bottom, u.bottom), u.left = S(f.left, u.left), u;
894
- }, Nt(t, l, s));
891
+ const r = [...n === "clippingAncestors" ? dt(t) ? [] : ze(t, this._c) : [].concat(n), o], a = r[0], l = r.reduce((u, c) => {
892
+ const f = qt(t, c, s);
893
+ return u.top = O(f.top, u.top), u.right = Z(f.right, u.right), u.bottom = Z(f.bottom, u.bottom), u.left = O(f.left, u.left), u;
894
+ }, qt(t, a, s));
895
895
  return {
896
- width: a.right - a.left,
897
- height: a.bottom - a.top,
898
- x: a.left,
899
- y: a.top
896
+ width: l.right - l.left,
897
+ height: l.bottom - l.top,
898
+ x: l.left,
899
+ y: l.top
900
900
  };
901
901
  }
902
- function Ye(e) {
902
+ function $e(e) {
903
903
  const {
904
904
  width: t,
905
905
  height: n
906
- } = zt(e);
906
+ } = te(e);
907
907
  return {
908
908
  width: t,
909
909
  height: n
910
910
  };
911
911
  }
912
- function ze(e, t, n) {
913
- const o = L(t), s = F(t), i = n === "fixed", r = J(e, !0, i, t);
914
- let l = {
912
+ function Ze(e, t, n) {
913
+ const o = N(t), s = Q(t), i = n === "fixed", r = j(e, !0, i, t);
914
+ let a = {
915
915
  scrollLeft: 0,
916
916
  scrollTop: 0
917
917
  };
918
- const a = I(0);
918
+ const l = P(0);
919
919
  function u() {
920
- a.x = ft(s);
920
+ l.x = pt(s);
921
921
  }
922
922
  if (o || !o && !i)
923
- if ((X(t) !== "body" || ot(s)) && (l = ut(t)), o) {
924
- const d = J(t, !0, i, t);
925
- a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
923
+ if ((et(t) !== "body" || it(s)) && (a = mt(t)), o) {
924
+ const d = j(t, !0, i, t);
925
+ l.x = d.x + t.clientLeft, l.y = d.y + t.clientTop;
926
926
  } else s && u();
927
927
  i && !o && s && u();
928
- const c = s && !o && !i ? jt(s, l) : I(0), f = r.left + l.scrollLeft - a.x - c.x, m = r.top + l.scrollTop - a.y - c.y;
928
+ const c = s && !o && !i ? ne(s, a) : P(0), f = r.left + a.scrollLeft - l.x - c.x, m = r.top + a.scrollTop - l.y - c.y;
929
929
  return {
930
930
  x: f,
931
931
  y: m,
@@ -933,39 +933,39 @@ function ze(e, t, n) {
933
933
  height: r.height
934
934
  };
935
935
  }
936
- function mt(e) {
937
- return T(e).position === "static";
936
+ function yt(e) {
937
+ return M(e).position === "static";
938
938
  }
939
- function Vt(e, t) {
940
- if (!L(e) || T(e).position === "fixed")
939
+ function Wt(e, t) {
940
+ if (!N(e) || M(e).position === "fixed")
941
941
  return null;
942
942
  if (t)
943
943
  return t(e);
944
944
  let n = e.offsetParent;
945
- return F(e) === n && (n = n.ownerDocument.body), n;
945
+ return Q(e) === n && (n = n.ownerDocument.body), n;
946
946
  }
947
- function Zt(e, t) {
948
- const n = R(e);
949
- if (ct(e))
947
+ function se(e, t) {
948
+ const n = _(e);
949
+ if (dt(e))
950
950
  return n;
951
- if (!L(e)) {
952
- let s = H(e);
953
- for (; s && !z(s); ) {
954
- if (k(s) && !mt(s))
951
+ if (!N(e)) {
952
+ let s = J(e);
953
+ for (; s && !tt(s); ) {
954
+ if (B(s) && !yt(s))
955
955
  return s;
956
- s = H(s);
956
+ s = J(s);
957
957
  }
958
958
  return n;
959
959
  }
960
- let o = Vt(e, t);
961
- for (; o && Te(o) && mt(o); )
962
- o = Vt(o, t);
963
- return o && z(o) && mt(o) && !yt(o) ? n : o || Me(e) || n;
960
+ let o = Wt(e, t);
961
+ for (; o && Be(o) && yt(o); )
962
+ o = Wt(o, t);
963
+ return o && tt(o) && yt(o) && !xt(o) ? n : o || Ve(e) || n;
964
964
  }
965
- const Xe = async function(e) {
966
- const t = this.getOffsetParent || Zt, n = this.getDimensions, o = await n(e.floating);
965
+ const tn = async function(e) {
966
+ const t = this.getOffsetParent || se, n = this.getDimensions, o = await n(e.floating);
967
967
  return {
968
- reference: ze(e.reference, await t(e.floating), e.strategy),
968
+ reference: Ze(e.reference, await t(e.floating), e.strategy),
969
969
  floating: {
970
970
  x: 0,
971
971
  y: 0,
@@ -974,121 +974,121 @@ const Xe = async function(e) {
974
974
  }
975
975
  };
976
976
  };
977
- function je(e) {
978
- return T(e).direction === "rtl";
979
- }
980
- const $e = {
981
- convertOffsetParentRelativeRectToViewportRelativeRect: Qe,
982
- getDocumentElement: F,
983
- getClippingRect: Ke,
984
- getOffsetParent: Zt,
985
- getElementRects: Xe,
986
- getClientRects: He,
987
- getDimensions: Ye,
988
- getScale: K,
989
- isElement: k,
990
- isRTL: je
977
+ function en(e) {
978
+ return M(e).direction === "rtl";
979
+ }
980
+ const nn = {
981
+ convertOffsetParentRelativeRectToViewportRelativeRect: We,
982
+ getDocumentElement: Q,
983
+ getClippingRect: Xe,
984
+ getOffsetParent: se,
985
+ getElementRects: tn,
986
+ getClientRects: Je,
987
+ getDimensions: $e,
988
+ getScale: X,
989
+ isElement: B,
990
+ isRTL: en
991
991
  };
992
- function te(e, t) {
992
+ function ie(e, t) {
993
993
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
994
994
  }
995
- function Ze(e, t) {
995
+ function on(e, t) {
996
996
  let n = null, o;
997
- const s = F(e);
997
+ const s = Q(e);
998
998
  function i() {
999
- var l;
1000
- clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
999
+ var a;
1000
+ clearTimeout(o), (a = n) == null || a.disconnect(), n = null;
1001
1001
  }
1002
- function r(l, a) {
1003
- l === void 0 && (l = !1), a === void 0 && (a = 1), i();
1002
+ function r(a, l) {
1003
+ a === void 0 && (a = !1), l === void 0 && (l = 1), i();
1004
1004
  const u = e.getBoundingClientRect(), {
1005
1005
  left: c,
1006
1006
  top: f,
1007
1007
  width: m,
1008
1008
  height: d
1009
1009
  } = u;
1010
- if (l || t(), !m || !d)
1010
+ if (a || t(), !m || !d)
1011
1011
  return;
1012
- const p = st(f), h = st(s.clientWidth - (c + m)), y = st(s.clientHeight - (f + d)), g = st(c), A = {
1012
+ const p = at(f), h = at(s.clientWidth - (c + m)), y = at(s.clientHeight - (f + d)), g = at(c), w = {
1013
1013
  rootMargin: -p + "px " + -h + "px " + -y + "px " + -g + "px",
1014
- threshold: S(0, Y(1, a)) || 1
1014
+ threshold: O(0, Z(1, l)) || 1
1015
1015
  };
1016
- let b = !0;
1017
- function w(E) {
1018
- const D = E[0].intersectionRatio;
1019
- if (D !== a) {
1020
- if (!b)
1016
+ let C = !0;
1017
+ function x(I) {
1018
+ const k = I[0].intersectionRatio;
1019
+ if (k !== l) {
1020
+ if (!C)
1021
1021
  return r();
1022
- D ? r(!1, D) : o = setTimeout(() => {
1022
+ k ? r(!1, k) : o = setTimeout(() => {
1023
1023
  r(!1, 1e-7);
1024
1024
  }, 1e3);
1025
1025
  }
1026
- D === 1 && !te(u, e.getBoundingClientRect()) && r(), b = !1;
1026
+ k === 1 && !ie(u, e.getBoundingClientRect()) && r(), C = !1;
1027
1027
  }
1028
1028
  try {
1029
- n = new IntersectionObserver(w, {
1030
- ...A,
1029
+ n = new IntersectionObserver(x, {
1030
+ ...w,
1031
1031
  // Handle <iframe>s
1032
1032
  root: s.ownerDocument
1033
1033
  });
1034
1034
  } catch {
1035
- n = new IntersectionObserver(w, A);
1035
+ n = new IntersectionObserver(x, w);
1036
1036
  }
1037
1037
  n.observe(e);
1038
1038
  }
1039
1039
  return r(!0), i;
1040
1040
  }
1041
- function tn(e, t, n, o) {
1041
+ function sn(e, t, n, o) {
1042
1042
  o === void 0 && (o = {});
1043
1043
  const {
1044
1044
  ancestorScroll: s = !0,
1045
1045
  ancestorResize: i = !0,
1046
1046
  elementResize: r = typeof ResizeObserver == "function",
1047
- layoutShift: l = typeof IntersectionObserver == "function",
1048
- animationFrame: a = !1
1049
- } = o, u = At(e), c = s || i ? [...u ? tt(u) : [], ...tt(t)] : [];
1047
+ layoutShift: a = typeof IntersectionObserver == "function",
1048
+ animationFrame: l = !1
1049
+ } = o, u = Ct(e), c = s || i ? [...u ? nt(u) : [], ...nt(t)] : [];
1050
1050
  c.forEach((g) => {
1051
1051
  s && g.addEventListener("scroll", n, {
1052
1052
  passive: !0
1053
1053
  }), i && g.addEventListener("resize", n);
1054
1054
  });
1055
- const f = u && l ? Ze(u, n) : null;
1055
+ const f = u && a ? on(u, n) : null;
1056
1056
  let m = -1, d = null;
1057
1057
  r && (d = new ResizeObserver((g) => {
1058
- let [v] = g;
1059
- v && v.target === u && d && (d.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1060
- var A;
1061
- (A = d) == null || A.observe(t);
1058
+ let [A] = g;
1059
+ A && A.target === u && d && (d.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1060
+ var w;
1061
+ (w = d) == null || w.observe(t);
1062
1062
  })), n();
1063
- }), u && !a && d.observe(u), d.observe(t));
1064
- let p, h = a ? J(e) : null;
1065
- a && y();
1063
+ }), u && !l && d.observe(u), d.observe(t));
1064
+ let p, h = l ? j(e) : null;
1065
+ l && y();
1066
1066
  function y() {
1067
- const g = J(e);
1068
- h && !te(h, g) && n(), h = g, p = requestAnimationFrame(y);
1067
+ const g = j(e);
1068
+ h && !ie(h, g) && n(), h = g, p = requestAnimationFrame(y);
1069
1069
  }
1070
1070
  return n(), () => {
1071
1071
  var g;
1072
- c.forEach((v) => {
1073
- s && v.removeEventListener("scroll", n), i && v.removeEventListener("resize", n);
1074
- }), f?.(), (g = d) == null || g.disconnect(), d = null, a && cancelAnimationFrame(p);
1072
+ c.forEach((A) => {
1073
+ s && A.removeEventListener("scroll", n), i && A.removeEventListener("resize", n);
1074
+ }), f?.(), (g = d) == null || g.disconnect(), d = null, l && cancelAnimationFrame(p);
1075
1075
  };
1076
1076
  }
1077
- const en = De, nn = Ee, on = Ce, sn = Oe, rn = (e, t, n) => {
1077
+ const rn = ke, an = Te, ln = Ee, cn = Ie, un = (e, t, n) => {
1078
1078
  const o = /* @__PURE__ */ new Map(), s = {
1079
- platform: $e,
1079
+ platform: nn,
1080
1080
  ...n
1081
1081
  }, i = {
1082
1082
  ...s.platform,
1083
1083
  _c: o
1084
1084
  };
1085
- return be(e, t, {
1085
+ return De(e, t, {
1086
1086
  ...s,
1087
1087
  platform: i
1088
1088
  });
1089
1089
  };
1090
- function ln(e, t) {
1091
- const n = C({
1090
+ function fn(e, t) {
1091
+ const n = S({
1092
1092
  position: "fixed",
1093
1093
  left: "0",
1094
1094
  top: "0",
@@ -1097,20 +1097,20 @@ function ln(e, t) {
1097
1097
  });
1098
1098
  let o = null;
1099
1099
  const s = () => {
1100
- !e.value || !t.value || rn(e.value, t.value, {
1100
+ !e.value || !t.value || un(e.value, t.value, {
1101
1101
  placement: "bottom-start",
1102
1102
  strategy: "fixed",
1103
1103
  middleware: [
1104
- en(6),
1104
+ rn(6),
1105
1105
  // 输入框与下拉列表的间距
1106
- on(),
1106
+ ln(),
1107
1107
  // 空间不足自动翻转到上方
1108
- nn({ padding: 10 }),
1108
+ an({ padding: 10 }),
1109
1109
  // 靠近屏幕边缘时自动位移
1110
- sn({
1111
- apply({ rects: l, elements: a }) {
1112
- const u = `${l.reference.width}px`;
1113
- Object.assign(a.floating.style, {
1110
+ cn({
1111
+ apply({ rects: a, elements: l }) {
1112
+ const u = `${a.reference.width}px`;
1113
+ Object.assign(l.floating.style, {
1114
1114
  width: u,
1115
1115
  // 必须锁定,否则在 body 下它可能由于内容过多撑开到 100vw
1116
1116
  minWidth: u,
@@ -1119,20 +1119,20 @@ function ln(e, t) {
1119
1119
  }
1120
1120
  })
1121
1121
  ]
1122
- }).then(({ x: l, y: a }) => {
1122
+ }).then(({ x: a, y: l }) => {
1123
1123
  Object.assign(n.value, {
1124
- left: `${l}px`,
1125
- top: `${a}px`
1124
+ left: `${a}px`,
1125
+ top: `${l}px`
1126
1126
  });
1127
1127
  });
1128
1128
  }, i = () => {
1129
- e.value && t.value && (o = tn(e.value, t.value, s));
1129
+ e.value && t.value && (o = sn(e.value, t.value, s));
1130
1130
  }, r = () => {
1131
1131
  o && (o(), o = null);
1132
1132
  };
1133
- return Ut(r), { floatingStyles: n, startTrack: i, stopTrack: r };
1133
+ return Kt(r), { floatingStyles: n, startTrack: i, stopTrack: r };
1134
1134
  }
1135
- const an = "data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2534'%20width='200'%20height='200'%3e%3cpath%20d='M448%2085.333333a362.666667%20362.666667%200%201%200%20224.512%20647.509334l155.818667%20155.818666a42.666667%2042.666667%200%200%200%2060.330666-60.330666l-155.818666-155.818667A362.666667%20362.666667%200%200%200%20448%2085.333333zM170.666667%20448a277.333333%20277.333333%200%201%201%20554.666666%200%20277.333333%20277.333333%200%200%201-554.666666%200z'%20p-id='2535'%3e%3c/path%3e%3c/svg%3e", cn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkWmqMkhG2FmxXOvR+EGD5KAhoDqsQvtiMXJQGNQJ4N8mF6PMd/wL8SxuOXPSG21pj9p+L1EOjGyAHoQQ0zWGDqx9pbPWIpwqOEkw+gGyMHoAc1ozOkVhOcZyepYndNpDpPvwAAAP//BVQJHAAAAAZJREFUAwDZWL4hub5xHQAAAABJRU5ErkJggg==", un = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACC0lEQVR4AXxRv2tTURT+zk1iIjgoOMShkIJVNwf/gQYULOjQwaGvGl8TBMEMDg4ODgF17likvL4HIYm4OLg61K2CooWKDoKCDoJDHASb9N17POf5Enwk6eN+9/z+3nfvNZjxbYS9ymbYXlQ8CbvnZrRhKoEOFMl9zFHuuaJA/E4Jp5FMJTCwZWner/veCYX6ecQVsRNrKsFE1yGJDMFW1Hm4FXX7hnIvADquvkJ9zYn/U3vw35chYOA2Ebcc26uWbVWwnKKqOak9ktmmYLwyBATkY+d2b63d2FYgps9umNtTX6G18WTqmNRmTNB+djaIOqEpmC+FIn8Lom4vaD89n2lKgwkCebYNsvEnAlXI4CIMXSagTNa9l9p6Ojc2CUEYhiW5oE3IxQH4AYNFeb5qvea9SuB7Vc1J7ReDjomidZ2RWNKysyneFHNFovGgxIiizoWR9BGRqiKw76i0q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QVQDAJPeLlNn5TR8AAAAAElFTkSuQmCC", mn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACgUlEQVR4AXRST0hUYRD/zbfbrqahQpAHlQ3dSurYoaBAwWNQkIT7J/ve09DQsOigkNCha4ckl4Lct0/S3QI7REFEBB08FBHRIYLwIJEodOlUurnfNN+6mq9weMPM+818v2/mm1HYQXK5XH02mz9h1fo7pOE/gkwmU+v5+fuGot8phJdWmSLLnl+4I0RV/xIFCGxCdU3DUwaOkULX18Uve1ydrC4xdwLcwRR9bnO2kwQIoCIDEowpXjsZ4vBCSyx+w/Nnb1KElkkwG4OqGhG79QUImEkT0T2JrpZ4fV5sF0Ad6je9BrBKxLeZuVv8rS9IAG4qGf5oTPSolNxIXOyUNjqlpb0W4xI+Cd62dVqcAAGBVqSCVmPMIoPCttzm2MEBAoeLir4hRK2AWPyVIAHRHMH0Ly0tCBF3M5t+Aq6A0HPJSSyCeZAIz7BNAgQwqxNyc1NL7MCoeyH1xNWpuKsTcet7fv46QI0/zdoEtkmAwHGcHyFQj/Q57vuPzm7m+X5efB6HYj3kOCubuLVlApltfdbPX5uaetCmdeKVAqUN1mdy04XR3PTsqAHPWMztTb24myvEBBuRM+WlUnbzDEXeya2D4XC0zrJqnXwsO3pG3mCMGWMK6lQZk2A0hH2GMSxL9VlI6lVkd90RgGKkVFrrc+9REXubjLH9FxfbbVUVGG5v4i2p8LD8x9ax65C66KTfKGCSDc97fv6DJzuf9QtDtm+iqsM1ot70w9O+YDbmSQ6bkkyCJitnAUcnryqmuExgSsZYKypvgFvS+5xVsJk0MGlps97mFCVXpnNZqoBcbo2QyJz7dCLj6JTj6tRxVyf3izZUtNndwM73SU55JzaO4Q8AAAD//54At5MAAAAGSURBVAMAh2IbMAJQAZQAAAAASUVORK5CYII=", pn = ie({
1135
+ const dn = "data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2534'%20width='200'%20height='200'%3e%3cpath%20d='M448%2085.333333a362.666667%20362.666667%200%201%200%20224.512%20647.509334l155.818667%20155.818666a42.666667%2042.666667%200%200%200%2060.330666-60.330666l-155.818666-155.818667A362.666667%20362.666667%200%200%200%20448%2085.333333zM170.666667%20448a277.333333%20277.333333%200%201%201%20554.666666%200%20277.333333%20277.333333%200%200%201-554.666666%200z'%20p-id='2535'%3e%3c/path%3e%3c/svg%3e", mn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkWmqMkhG2FmxXOvR+EGD5KAhoDqsQvtiMXJQGNQJ4N8mF6PMd/wL8SxuOXPSG21pj9p+L1EOjGyAHoQQ0zWGDqx9pbPWIpwqOEkw+gGyMHoAc1ozOkVhOcZyepYndNpDpPvwAAAP//BVQJHAAAAAZJREFUAwDZWL4hub5xHQAAAABJRU5ErkJggg==", pn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACC0lEQVR4AXxRv2tTURT+zk1iIjgoOMShkIJVNwf/gQYULOjQwaGvGl8TBMEMDg4ODgF17likvL4HIYm4OLg61K2CooWKDoKCDoJDHASb9N17POf5Enwk6eN+9/z+3nfvNZjxbYS9ymbYXlQ8CbvnZrRhKoEOFMl9zFHuuaJA/E4Jp5FMJTCwZWner/veCYX6ecQVsRNrKsFE1yGJDMFW1Hm4FXX7hnIvADquvkJ9zYn/U3vw35chYOA2Eb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FvS+5xVsJk0MGlps97mFCVXpnNZqoBcbo2QyJz7dCLj6JTj6tRxVyf3izZUtNndwM73SU55JzaO4Q8AAAD//54At5MAAAAGSURBVAMAh2IbMAJQAZQAAAAASUVORK5CYII=", vn = ue({
1136
1136
  name: "GlobalSearch",
1137
1137
  model: { prop: "value", event: "input" },
1138
1138
  props: {
@@ -1150,58 +1150,111 @@ const an = "data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20clas
1150
1150
  showItemTag: { type: Boolean, default: !0 }
1151
1151
  },
1152
1152
  setup(e, { emit: t }) {
1153
- const n = C(""), o = C(!1), s = C(!1), i = C(""), r = C(null), l = C(null), a = C(null), u = C(null), { searchHistory: c, saveToHistory: f, clearHistory: m } = le(
1154
- xt(e, "historyKey")
1153
+ const n = S(""), o = S(!1), s = S(!1), i = S(""), r = S(null), a = S(null), l = S(null), u = S(null), { searchHistory: c, saveToHistory: f, clearHistory: m } = de(
1154
+ Et(e, "historyKey")
1155
1155
  ), {
1156
1156
  searchResults: d,
1157
1157
  loading: p,
1158
1158
  isFetchingMore: h,
1159
1159
  isFinished: y,
1160
1160
  currentPage: g,
1161
- fetchData: v,
1162
- filterByTypes: A
1163
- } = ue(n, xt(e, "searchTypeList")), { floatingStyles: b, startTrack: w, stopTrack: E } = ln(
1164
- a,
1161
+ fetchData: A,
1162
+ filterByTypes: w
1163
+ } = pe(n, Et(e, "searchTypeList")), { floatingStyles: C, startTrack: x, stopTrack: I } = fn(
1164
+ l,
1165
1165
  u
1166
- ), D = async () => {
1166
+ ), k = async () => {
1167
1167
  if (s.value = !0, !e.multiple && o.value && d.value.length === 0) {
1168
- const x = e.value;
1169
- if (x?.id) {
1168
+ const v = e.value;
1169
+ if (v?.id) {
1170
1170
  p.value = !0;
1171
1171
  try {
1172
- const P = await ce(x.id, x.type);
1173
- d.value = A(P.records);
1172
+ const E = await gt(v.id, v.type);
1173
+ d.value = w(E.records);
1174
1174
  } finally {
1175
1175
  p.value = !1;
1176
1176
  }
1177
1177
  }
1178
1178
  }
1179
- }, B = () => {
1179
+ }, V = () => {
1180
1180
  setTimeout(() => {
1181
1181
  s.value = !1;
1182
1182
  }, 200);
1183
- }, M = (x) => {
1184
- x.target.value === "" && !e.multiple && (o.value = !1, t("input", null), t("update:value", null));
1185
- }, O = () => {
1183
+ }, H = (v) => {
1184
+ v.target.value === "" && !e.multiple && (o.value = !1, t("input", null), t("update:value", null));
1185
+ }, L = () => {
1186
1186
  if (e.multiple && !n.value && e.value?.length > 0) {
1187
- const x = [...e.value], P = x.pop();
1188
- t("input", x), t("update:value", x), t("remove", P);
1187
+ const v = [...e.value], E = v.pop();
1188
+ t("input", v), t("update:value", v), t("remove", E);
1189
1189
  }
1190
1190
  };
1191
- return bt(s, (x) => x ? w() : E()), bt(n, (x) => {
1192
- if (!x.trim()) {
1191
+ ht(s, (v) => v ? x() : I()), ht(n, (v) => {
1192
+ if (!v.trim()) {
1193
1193
  d.value = [];
1194
1194
  return;
1195
1195
  }
1196
- r.value && clearTimeout(r.value), r.value = setTimeout(() => v(1, !1), 300);
1197
- }), Ut(E), {
1196
+ r.value && clearTimeout(r.value), r.value = setTimeout(() => A(1, !1), 300);
1197
+ });
1198
+ const G = $(() => e.lang ? e.lang === "en" || e.lang === "en-US" : typeof document < "u" ? /(^|;\s*)jc-language=en(-US)?(;|$)/.test(document.cookie || "") : !1), q = (v) => G.value ? v.displayEn || v.display || v.nameEn || "" : v.displayCn || v.display || v.nameCn || v.name || "";
1199
+ return ht(
1200
+ () => e.value,
1201
+ async (v, E) => {
1202
+ if (console.log("🍉 ~ index.vue:304 ~ newVal:", v), JSON.stringify(v) === JSON.stringify(E)) return;
1203
+ if (e.multiple && Array.isArray(v)) {
1204
+ const F = [...v], D = F.filter(
1205
+ (b) => b && b.id && b.type
1206
+ );
1207
+ if (D.length > 0)
1208
+ try {
1209
+ const b = D.map((z) => z.id), T = await gt(
1210
+ b,
1211
+ D[0].type
1212
+ );
1213
+ if (T && T.records) {
1214
+ let z = !1;
1215
+ const Rt = F.map((rt) => {
1216
+ const Dt = T.records.find((ae) => ae.id === rt.id);
1217
+ return Dt && !rt.display ? (z = !0, { ...rt, ...Dt }) : rt;
1218
+ });
1219
+ z && (t("input", Rt), t("update:value", Rt));
1220
+ }
1221
+ } catch (b) {
1222
+ console.error("Batch fetch detail failed:", b);
1223
+ }
1224
+ return;
1225
+ }
1226
+ const R = v;
1227
+ if (!R) {
1228
+ o.value = !1, i.value = "";
1229
+ return;
1230
+ }
1231
+ if (typeof R == "object")
1232
+ if (R.id && R.type && !R.display)
1233
+ try {
1234
+ const D = (await gt(
1235
+ R.id,
1236
+ R.type
1237
+ )).records.find(
1238
+ (b) => b.id === R.id
1239
+ );
1240
+ D && (i.value = q(D), o.value = !0);
1241
+ } catch (F) {
1242
+ console.error("Single fetch detail failed:", F);
1243
+ }
1244
+ else
1245
+ i.value = q(R), o.value = !!i.value;
1246
+ else
1247
+ i.value = String(R), o.value = !!R;
1248
+ },
1249
+ { immediate: !0, deep: !0 }
1250
+ ), Kt(I), {
1198
1251
  // 状态
1199
1252
  query: n,
1200
1253
  isSelected: o,
1201
1254
  isDropdownVisible: s,
1202
1255
  selectedLabel: i,
1203
- inputRef: l,
1204
- referenceRef: a,
1256
+ inputRef: a,
1257
+ referenceRef: l,
1205
1258
  floatingRef: u,
1206
1259
  // Hook 状态
1207
1260
  searchHistory: c,
@@ -1210,21 +1263,21 @@ const an = "data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20clas
1210
1263
  isFetchingMore: h,
1211
1264
  isFinished: y,
1212
1265
  currentPage: g,
1213
- floatingStyles: b,
1266
+ floatingStyles: C,
1214
1267
  // Hook 方法
1215
1268
  saveToHistory: f,
1216
1269
  clearHistory: m,
1217
- fetchData: v,
1218
- filterByTypes: A,
1219
- startTrack: w,
1220
- stopTrack: E,
1270
+ fetchData: A,
1271
+ filterByTypes: w,
1272
+ startTrack: x,
1273
+ stopTrack: I,
1221
1274
  // 组件方法
1222
- onFocus: D,
1223
- handleBlur: B,
1224
- onInput: M,
1225
- handleDelete: O,
1275
+ onFocus: k,
1276
+ handleBlur: V,
1277
+ onInput: H,
1278
+ handleDelete: L,
1226
1279
  // 资源
1227
- SearchIcon: an
1280
+ SearchIcon: dn
1228
1281
  };
1229
1282
  },
1230
1283
  computed: {
@@ -1319,11 +1372,11 @@ const an = "data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20clas
1319
1372
  },
1320
1373
  getIconUrl(e) {
1321
1374
  return {
1322
- City: cn,
1323
- Seaport: un,
1324
- Airport: fn,
1325
- Country: dn
1326
- }[e] || mn;
1375
+ City: mn,
1376
+ Seaport: pn,
1377
+ Airport: hn,
1378
+ Country: gn
1379
+ }[e] || yn;
1327
1380
  },
1328
1381
  handleScroll(e) {
1329
1382
  const { scrollTop: t, scrollHeight: n, clientHeight: o } = e.target;
@@ -1331,14 +1384,14 @@ const an = "data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20clas
1331
1384
  }
1332
1385
  }
1333
1386
  });
1334
- function wt(e, t, n, o, s, i, r, l) {
1335
- var a = typeof e == "function" ? e.options : e;
1336
- return t && (a.render = t, a.staticRenderFns = n, a._compiled = !0), i && (a._scopeId = "data-v-" + i), {
1387
+ function St(e, t, n, o, s, i, r, a) {
1388
+ var l = typeof e == "function" ? e.options : e;
1389
+ return t && (l.render = t, l.staticRenderFns = n, l._compiled = !0), i && (l._scopeId = "data-v-" + i), {
1337
1390
  exports: e,
1338
- options: a
1391
+ options: l
1339
1392
  };
1340
1393
  }
1341
- var hn = function() {
1394
+ var An = function() {
1342
1395
  var t = this, n = t._self._c;
1343
1396
  return t._self._setupProxy, n("div", { staticClass: "search-container" }, [n("div", { ref: "referenceRef", staticClass: "search-input-wrapper", class: { "is-multiple": t.multiple }, on: { click: t.focusInput } }, [n("div", { staticClass: "selection-wrapper" }, [t.multiple && t.selectedItems.length > 0 ? [t._l(t.displayedTags, function(o, s) {
1344
1397
  return n("div", { key: o.id || s, staticClass: "search-tag" }, [n("span", { staticClass: "tag-text" }, [t._v(t._s(t.getItemLabel(o)))]), n("span", { staticClass: "tag-close", on: { click: function(i) {
@@ -1379,15 +1432,15 @@ var hn = function() {
1379
1432
  }, { searchResults: t.searchResults }), t.isFetchingMore ? n("div", { staticClass: "load-more-msg" }, [t._v(" " + t._s(t.isEn ? "Loading more..." : "正在加载更多...") + " ")]) : t.isFinished && t.query ? n("div", { staticClass: "load-more-msg no-more" }, [t._v(" " + t._s(t.isEn ? "All results have been loaded" : "已加载全部结果") + " ")]) : t._e()] : t.query && !t.loading ? n("div", { staticClass: "status-msg" }, [t._t("noData", function() {
1380
1433
  return [t._v(" " + t._s(t.isEn ? `No results found related to "${t.query}".` : `未找到与 "${t.query}" 相关的结果`) + " ")];
1381
1434
  })], 2) : t._e()], 2)]);
1382
- }, gn = [], yn = /* @__PURE__ */ wt(
1383
- pn,
1384
- hn,
1385
- gn,
1435
+ }, wn = [], xn = /* @__PURE__ */ St(
1436
+ vn,
1437
+ An,
1438
+ wn,
1386
1439
  !1,
1387
1440
  null,
1388
- "7ac0ea89"
1441
+ "4a9cd69d"
1389
1442
  );
1390
- const ee = yn.exports, vn = {
1443
+ const re = xn.exports, bn = {
1391
1444
  __name: "ApplyDataDialog",
1392
1445
  props: {
1393
1446
  // v-model 绑定,默认 false
@@ -1413,13 +1466,13 @@ const ee = yn.exports, vn = {
1413
1466
  { typeCn: "城市", typeEn: "City", type: "City" },
1414
1467
  { typeCn: "海运港口", typeEn: "Port", type: "Seaport" },
1415
1468
  { typeCn: "机场", typeEn: "Airport", type: "Airport" }
1416
- ], s = C(null), i = Ct({
1469
+ ], s = S(null), i = Ot({
1417
1470
  name: "",
1418
1471
  country: ""
1419
- }), r = Ct({
1472
+ }), r = Ot({
1420
1473
  name: "",
1421
1474
  type: "City"
1422
- }), l = Z(() => {
1475
+ }), a = $(() => {
1423
1476
  if (n.lang && n.lang !== "")
1424
1477
  return n.lang === "en" || n.lang === "en-US";
1425
1478
  try {
@@ -1443,7 +1496,7 @@ const ee = yn.exports, vn = {
1443
1496
  }
1444
1497
  return !1;
1445
1498
  });
1446
- return { __sfc: !0, props: n, emit: t, typeOptions: o, displayQuery: s, errors: i, formData: r, isEn: l, handleClose: () => {
1499
+ return { __sfc: !0, props: n, emit: t, typeOptions: o, displayQuery: s, errors: i, formData: r, isEn: a, handleClose: () => {
1447
1500
  i.name = "", i.country = "", t("update:value", !1);
1448
1501
  }, handleConfirm: () => {
1449
1502
  i.name = "", i.country = "";
@@ -1452,10 +1505,10 @@ const ee = yn.exports, vn = {
1452
1505
  ...r,
1453
1506
  country: s.value
1454
1507
  }), t("confirm", { ...r, country: s.value }));
1455
- }, Search: ee };
1508
+ }, Search: re };
1456
1509
  }
1457
1510
  };
1458
- var An = function() {
1511
+ var Cn = function() {
1459
1512
  var t = this, n = t._self._c, o = t._self._setupProxy;
1460
1513
  return t.value ? n("div", { staticClass: "modal-mask", on: { click: function(s) {
1461
1514
  return s.target !== s.currentTarget ? null : o.handleClose.apply(null, arguments);
@@ -1472,25 +1525,25 @@ var An = function() {
1472
1525
  } }, model: { value: o.displayQuery, callback: function(s) {
1473
1526
  o.displayQuery = s;
1474
1527
  }, expression: "displayQuery" } })], 1), o.errors.country ? n("div", { staticClass: "error-message" }, [t._v(" " + t._s(o.errors.country) + " ")]) : t._e()])]), n("div", { staticClass: "modal-footer" }, [n("button", { staticClass: "confirm-btn", on: { click: o.handleConfirm } }, [t._v(" " + t._s(o.isEn ? "Submit" : "申请补充") + " ")])])])]) : t._e();
1475
- }, wn = [], xn = /* @__PURE__ */ wt(
1476
- vn,
1477
- An,
1478
- wn,
1528
+ }, Sn = [], Rn = /* @__PURE__ */ St(
1529
+ bn,
1530
+ Cn,
1531
+ Sn,
1479
1532
  !1,
1480
1533
  null,
1481
1534
  "77035ea3"
1482
1535
  );
1483
- const bn = xn.exports, Cn = {
1536
+ const Dn = Rn.exports, En = {
1484
1537
  // 2. 局部注册组件
1485
1538
  components: {
1539
+ [Mt.name]: Mt,
1540
+ [Bt.name]: Bt,
1541
+ [Ft.name]: Ft,
1542
+ [Lt.name]: Lt,
1543
+ [It.name]: It,
1486
1544
  [Tt.name]: Tt,
1487
1545
  [kt.name]: kt,
1488
- [_t.name]: _t,
1489
- [Ot.name]: Ot,
1490
- [Et.name]: Et,
1491
- [Dt.name]: Dt,
1492
- [Rt.name]: Rt,
1493
- [St.name]: St
1546
+ [_t.name]: _t
1494
1547
  },
1495
1548
  data() {
1496
1549
  return {
@@ -1526,10 +1579,10 @@ const bn = xn.exports, Cn = {
1526
1579
  };
1527
1580
  },
1528
1581
  mounted() {
1529
- W.on(G.Open, this.handleOpen);
1582
+ K.on(Y.Open, this.handleOpen);
1530
1583
  },
1531
1584
  beforeDestroy() {
1532
- W.off(G.Open, this.handleOpen);
1585
+ K.off(Y.Open, this.handleOpen);
1533
1586
  },
1534
1587
  methods: {
1535
1588
  handleOpen() {
@@ -1539,16 +1592,16 @@ const bn = xn.exports, Cn = {
1539
1592
  ), this.isVisible = !0;
1540
1593
  },
1541
1594
  closeModal() {
1542
- this.isVisible = !1, W.emit(G.Close), this.$refs.formRef.resetFields();
1595
+ this.isVisible = !1, K.emit(Y.Close), this.$refs.formRef.resetFields();
1543
1596
  },
1544
1597
  handleSubmit() {
1545
1598
  this.$refs.formRef.validate((e) => {
1546
- e && (W.emit(G.Submit, { ...this.formData }), this.closeModal());
1599
+ e && (K.emit(Y.Submit, { ...this.formData }), this.closeModal());
1547
1600
  });
1548
1601
  }
1549
1602
  }
1550
1603
  };
1551
- var Sn = function() {
1604
+ var On = function() {
1552
1605
  var t = this, n = t._self._c;
1553
1606
  return n("el-dialog", { attrs: { visible: t.isVisible, "before-close": t.closeModal, "show-close": !1, "close-on-click-modal": !0, width: "500px", "custom-class": "global-modal-custom" }, on: { "update:visible": function(o) {
1554
1607
  t.isVisible = o;
@@ -1567,62 +1620,62 @@ var Sn = function() {
1567
1620
  }, expression: "formData.name" } })], 1)], 1)], 1), n("el-form-item", { staticClass: "agreement-item", attrs: { prop: "agreement" } }, [n("el-checkbox", { model: { value: t.formData.agreement, callback: function(o) {
1568
1621
  t.$set(t.formData, "agreement", o);
1569
1622
  }, expression: "formData.agreement" } }, [t._v("我同意")]), n("a", { staticClass: "privacy-link", attrs: { href: "#" } }, [t._v("隐私政策")])], 1)], 1)], 1), n("div", { staticClass: "global-modal-footer-custom", attrs: { slot: "footer" }, slot: "footer" }, [n("el-button", { staticClass: "submit-button-custom", attrs: { type: "primary" }, on: { click: t.handleSubmit } }, [t._v(" 加入会员 ")])], 1)]);
1570
- }, Rn = [], Dn = /* @__PURE__ */ wt(
1571
- Cn,
1572
- Sn,
1573
- Rn,
1623
+ }, _n = [], kn = /* @__PURE__ */ St(
1624
+ En,
1625
+ On,
1626
+ _n,
1574
1627
  !1,
1575
1628
  null,
1576
1629
  null
1577
1630
  );
1578
- const En = Dn.exports;
1579
- let On = {
1631
+ const Tn = kn.exports;
1632
+ let In = {
1580
1633
  open() {
1581
- W.emit(G.Open);
1634
+ K.emit(Y.Open);
1582
1635
  },
1583
1636
  close() {
1584
- W.emit(G.Close);
1637
+ K.emit(Y.Close);
1585
1638
  },
1586
1639
  onSubmit(e) {
1587
- W.on(G.Submit, e);
1640
+ K.on(Y.Submit, e);
1588
1641
  }
1589
1642
  };
1590
- function In() {
1643
+ function Mn() {
1591
1644
  let e = !1;
1592
1645
  return {
1593
1646
  install(t) {
1594
1647
  if (typeof window < "u" && !e) {
1595
1648
  const n = document.createElement("div");
1596
1649
  n.setAttribute("id", "global-modal-root"), document.body.appendChild(n);
1597
- const o = t.extend(En);
1650
+ const o = t.extend(Tn);
1598
1651
  new o().$mount(n), e = !0;
1599
1652
  }
1600
- t.prototype.$globalModal = On;
1653
+ t.prototype.$globalModal = In;
1601
1654
  }
1602
1655
  };
1603
1656
  }
1604
- const Qt = {
1605
- ApplyDataDialog: bn,
1606
- JcSearch: ee
1657
+ const Jt = {
1658
+ ApplyDataDialog: Dn,
1659
+ JcSearch: re
1607
1660
  };
1608
- let Ht = !1;
1609
- const Ln = {
1661
+ let Gt = !1;
1662
+ const Pn = {
1610
1663
  /**
1611
1664
  * Vue 2 插件安装方法
1612
1665
  * @param Vue Vue 的构造函数
1613
1666
  */
1614
1667
  install(e, t) {
1615
- Ht || (Ht = !0, t?.sharedConfig && re(t.sharedConfig), Object.keys(Qt).forEach((n) => {
1616
- e.component(n, Qt[n]);
1668
+ Gt || (Gt = !0, t?.sharedConfig && fe(t.sharedConfig), Object.keys(Jt).forEach((n) => {
1669
+ e.component(n, Jt[n]);
1617
1670
  }));
1618
1671
  }
1619
1672
  };
1620
1673
  export {
1621
- bn as ApplyDataDialog,
1622
- En as GlobalModal,
1623
- ee as JcSearch,
1624
- Mn as MODAL_ACTION,
1625
- In as createGlobalModalPlugin,
1626
- Ln as default,
1627
- Pn as emitter
1674
+ Dn as ApplyDataDialog,
1675
+ Tn as GlobalModal,
1676
+ re as JcSearch,
1677
+ Vn as MODAL_ACTION,
1678
+ Mn as createGlobalModalPlugin,
1679
+ Pn as default,
1680
+ Hn as emitter
1628
1681
  };