PageSourceSearch

https://cdn.duemint.com/shoelace/chunks/chunk.QWGZ4US6.js

js duemint.com collected 2026-10-05 21:35:35 UTC 33,324 bytes, 814 lines download raw bytes

1import {
2  popup_styles_default
3} from "./chunk.Z7MHAEL3.js";
4import {
5  o
6} from "./chunk.ORW72H2K.js";
7import {
8  ShoelaceElement,
9  e,
10  e2,
11  i
12} from "./chunk.ROLL4627.js";
13import {
14  y
15} from "./chunk.DUT32TWM.js";
16import {
17  __decorateClass,
18  __objRest,
19  __spreadProps,
20  __spreadValues
21} from "./chunk.LKA3TPUC.js";
22
vendor: 11,505 bytes, lines 23-221
23// node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs
24function t(t3) {
25  return t3.split("-")[1];
26}
27function e3(t3) {
28  return "y" === t3 ? "height" : "width";
29}
30function n(t3) {
31  return t3.split("-")[0];
32}
33function o2(t3) {
34  return ["top", "bottom"].includes(n(t3)) ? "x" : "y";
35}
36function r(r4, i4, a3) {
37  let { reference: l3, floating: s3 } = r4;
38  const c3 = l3.x + l3.width / 2 - s3.width / 2, f3 = l3.y + l3.height / 2 - s3.height / 2, u3 = o2(i4), m3 = e3(u3), g3 = l3[m3] / 2 - s3[m3] / 2, d3 = "x" === u3;
39  let p3;
40  switch (n(i4)) {
41    case "top":
42      p3 = { x: c3, y: l3.y - s3.height };
43      break;
44    case "bottom":
45      p3 = { x: c3, y: l3.y + l3.height };
46      break;
47    case "right":
48      p3 = { x: l3.x + l3.width, y: f3 };
49      break;
50    case "left":
51      p3 = { x: l3.x - s3.width, y: f3 };
52      break;
53    default:
54      p3 = { x: l3.x, y: l3.y };
55  }
56  switch (t(i4)) {
57    case "start":
58      p3[u3] -= g3 * (a3 && d3 ? -1 : 1);
59      break;
60    case "end":
61      p3[u3] += g3 * (a3 && d3 ? -1 : 1);
62  }
63  return p3;
64}
65var i2 = async (t3, e4, n3) => {
66  const { placement: o5 = "bottom", strategy: i4 = "absolute", middleware: a3 = [], platform: l3 } = n3, s3 = a3.filter(Boolean), c3 = await (null == l3.isRTL ? void 0 : l3.isRTL(e4));
67  let f3 = await l3.getElementRects({ reference: t3, floating: e4, strategy: i4 }), { x: u3, y: m3 } = r(f3, o5, c3), g3 = o5, d3 = {}, p3 = 0;
68  for (let n4 = 0; n4 < s3.length; n4++) {
69    const { name: a4, fn: h3 } = s3[n4], { x: y4, y: x3, data: w3, reset: v3 } = await h3({ x: u3, y: m3, initialPlacement: o5, placement: g3, strategy: i4, middlewareData: d3, rects: f3, platform: l3, elements: { reference: t3, floating: e4 } });
70    u3 = null != y4 ? y4 : u3, m3 = null != x3 ? x3 : m3, d3 = __spreadProps(__spreadValues({}, d3), { [a4]: __spreadValues(__spreadValues({}, d3[a4]), w3) }), v3 && p3 <= 50 && (p3++, "object" == typeof v3 && (v3.placement && (g3 = v3.placement), v3.rects && (f3 = true === v3.rects ? await l3.getElementRects({ reference: t3, floating: e4, strategy: i4 }) : v3.rects), { x: u3, y: m3 } = r(f3, g3, c3)), n4 = -1);
71  }
72  return { x: u3, y: m3, placement: g3, strategy: i4, middlewareData: d3 };
73};
74function a(t3) {
75  return "number" != typeof t3 ? function(t4) {
76    return __spreadValues({ top: 0, right: 0, bottom: 0, left: 0 }, t4);
77  }(t3) : { top: t3, right: t3, bottom: t3, left: t3 };
78}
79function l(t3) {
80  return __spreadProps(__spreadValues({}, t3), { top: t3.y, left: t3.x, right: t3.x + t3.width, bottom: t3.y + t3.height });
81}
82async function s(t3, e4) {
83  var n3;
84  void 0 === e4 && (e4 = {});
85  const { x: o5, y: r4, platform: i4, rects: s3, elements: c3, strategy: f3 } = t3, { boundary: u3 = "clippingAncestors", rootBoundary: m3 = "viewport", elementContext: g3 = "floating", altBoundary: d3 = false, padding: p3 = 0 } = e4, h3 = a(p3), y4 = c3[d3 ? "floating" === g3 ? "reference" : "floating" : g3], x3 = l(await i4.getClippingRect({ element: null == (n3 = await (null == i4.isElement ? void 0 : i4.isElement(y4))) || n3 ? y4 : y4.contextElement || await (null == i4.getDocumentElement ? void 0 : i4.getDocumentElement(c3.floating)), boundary: u3, rootBoundary: m3, strategy: f3 })), w3 = "floating" === g3 ? __spreadProps(__spreadValues({}, s3.floating), { x: o5, y: r4 }) : s3.reference, v3 = await (null == i4.getOffsetParent ? void 0 : i4.getOffsetParent(c3.floating)), b3 = await (null == i4.isElement ? void 0 : i4.isElement(v3)) && await (null == i4.getScale ? void 0 : i4.getScale(v3)) || { x: 1, y: 1 }, R2 = l(i4.convertOffsetParentRelativeRectToViewportRelativeRect ? await i4.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: w3, offsetParent: v3, strategy: f3 }) : w3);
86  return { top: (x3.top - R2.top + h3.top) / b3.y, bottom: (R2.bottom - x3.bottom + h3.bottom) / b3.y, left: (x3.left - R2.left + h3.left) / b3.x, right: (R2.right - x3.right + h3.right) / b3.x };
87}
88var c = Math.min;
89var f = Math.max;
90function u(t3, e4, n3) {
91  return f(t3, c(e4, n3));
92}
93var m = (n3) => ({ name: "arrow", options: n3, async fn(r4) {
94  const { element: i4, padding: l3 = 0 } = n3 || {}, { x: s3, y: c3, placement: f3, rects: m3, platform: g3 } = r4;
95  if (null == i4)
96    return {};
97  const d3 = a(l3), p3 = { x: s3, y: c3 }, h3 = o2(f3), y4 = e3(h3), x3 = await g3.getDimensions(i4), w3 = "y" === h3 ? "top" : "left", v3 = "y" === h3 ? "bottom" : "right", b3 = m3.reference[y4] + m3.reference[h3] - p3[h3] - m3.floating[y4], R2 = p3[h3] - m3.reference[h3], A2 = await (null == g3.getOffsetParent ? void 0 : g3.getOffsetParent(i4));
98  let P3 = A2 ? "y" === h3 ? A2.clientHeight || 0 : A2.clientWidth || 0 : 0;
99  0 === P3 && (P3 = m3.floating[y4]);
100  const T3 = b3 / 2 - R2 / 2, O3 = d3[w3], D3 = P3 - x3[y4] - d3[v3], E3 = P3 / 2 - x3[y4] / 2 + T3, L3 = u(O3, E3, D3), k2 = null != t(f3) && E3 != L3 && m3.reference[y4] / 2 - (E3 < O3 ? d3[w3] : d3[v3]) - x3[y4] / 2 < 0;
101  return { [h3]: p3[h3] - (k2 ? E3 < O3 ? O3 - E3 : D3 - E3 : 0), data: { [h3]: L3, centerOffset: E3 - L3 } };
102} });
103var g = ["top", "right", "bottom", "left"];
104var d = g.reduce((t3, e4) => t3.concat(e4, e4 + "-start", e4 + "-end"), []);
105var p = { left: "right", right: "left", bottom: "top", top: "bottom" };
106function h(t3) {
107  return t3.replace(/left|right|bottom|top/g, (t4) => p[t4]);
108}
109function y2(n3, r4, i4) {
110  void 0 === i4 && (i4 = false);
111  const a3 = t(n3), l3 = o2(n3), s3 = e3(l3);
112  let c3 = "x" === l3 ? a3 === (i4 ? "end" : "start") ? "right" : "left" : "start" === a3 ? "bottom" : "top";
113  return r4.reference[s3] > r4.floating[s3] && (c3 = h(c3)), { main: c3, cross: h(c3) };
114}
115var x = { start: "end", end: "start" };
116function w(t3) {
117  return t3.replace(/start|end/g, (t4) => x[t4]);
118}
119var b = function(e4) {
120  return void 0 === e4 && (e4 = {}), { name: "flip", options: e4, async fn(o5) {
121    var r4;
122    const { placement: i4, middlewareData: a3, rects: l3, initialPlacement: c3, platform: f3, elements: u3 } = o5, _a = e4, { mainAxis: m3 = true, crossAxis: g3 = true, fallbackPlacements: d3, fallbackStrategy: p3 = "bestFit", fallbackAxisSideDirection: x3 = "none", flipAlignment: v3 = true } = _a, b3 = __objRest(_a, ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"]), R2 = n(i4), A2 = n(c3) === c3, P3 = await (null == f3.isRTL ? void 0 : f3.isRTL(u3.floating)), T3 = d3 || (A2 || !v3 ? [h(c3)] : function(t3) {
123      const e5 = h(t3);
124      return [w(t3), e5, w(e5)];
125    }(c3));
126    d3 || "none" === x3 || T3.push(...function(e5, o6, r5, i5) {
127      const a4 = t(e5);
128      let l4 = function(t3, e6, n3) {
129        const o7 = ["left", "right"], r6 = ["right", "left"], i6 = ["top", "bottom"], a5 = ["bottom", "top"];
130        switch (t3) {
131          case "top":
132          case "bottom":
133            return n3 ? e6 ? r6 : o7 : e6 ? o7 : r6;
134          case "left":
135          case "right":
136            return e6 ? i6 : a5;
137          default:
138            return [];
139        }
140      }(n(e5), "start" === r5, i5);
141      return a4 && (l4 = l4.map((t3) => t3 + "-" + a4), o6 && (l4 = l4.concat(l4.map(w)))), l4;
142    }(c3, v3, x3, P3));
143    const O3 = [c3, ...T3], D3 = await s(o5, b3), E3 = [];
144    let L3 = (null == (r4 = a3.flip) ? void 0 : r4.overflows) || [];
145    if (m3 && E3.push(D3[R2]), g3) {
146      const { main: t3, cross: e5 } = y2(i4, l3, P3);
147      E3.push(D3[t3], D3[e5]);
148    }
149    if (L3 = [...L3, { placement: i4, overflows: E3 }], !E3.every((t3) => t3 <= 0)) {
150      var k2, B;
151      const t3 = ((null == (k2 = a3.flip) ? void 0 : k2.index) || 0) + 1, e5 = O3[t3];
152      if (e5)
153        return { data: { index: t3, overflows: L3 }, reset: { placement: e5 } };
154      let n3 = null == (B = L3.filter((t4) => t4.overflows[0] <= 0).sort((t4, e6) => t4.overflows[1] - e6.overflows[1])[0]) ? void 0 : B.placement;
155      if (!n3)
156        switch (p3) {
157          case "bestFit": {
158            var C2;
159            const t4 = null == (C2 = L3.map((t5) => [t5.placement, t5.overflows.filter((t6) => t6 > 0).reduce((t6, e6) => t6 + e6, 0)]).sort((t5, e6) => t5[1] - e6[1])[0]) ? void 0 : C2[0];
160            t4 && (n3 = t4);
161            break;
162          }
163          case "initialPlacement":
164            n3 = c3;
165        }
166      if (i4 !== n3)
167        return { reset: { placement: n3 } };
168    }
169    return {};
170  } };
171};
172var O = function(e4) {
173  return void 0 === e4 && (e4 = 0), { name: "offset", options: e4, async fn(r4) {
174    const { x: i4, y: a3 } = r4, l3 = await async function(e5, r5) {
175      const { placement: i5, platform: a4, elements: l4 } = e5, s3 = await (null == a4.isRTL ? void 0 : a4.isRTL(l4.floating)), c3 = n(i5), f3 = t(i5), u3 = "x" === o2(i5), m3 = ["left", "top"].includes(c3) ? -1 : 1, g3 = s3 && u3 ? -1 : 1, d3 = "function" == typeof r5 ? r5(e5) : r5;
176      let { mainAxis: p3, crossAxis: h3, alignmentAxis: y4 } = "number" == typeof d3 ? { mainAxis: d3, crossAxis: 0, alignmentAxis: null } : __spreadValues({ mainAxis: 0, crossAxis: 0, alignmentAxis: null }, d3);
177      return f3 && "number" == typeof y4 && (h3 = "end" === f3 ? -1 * y4 : y4), u3 ? { x: h3 * g3, y: p3 * m3 } : { x: p3 * m3, y: h3 * g3 };
178    }(r4, e4);
179    return { x: i4 + l3.x, y: a3 + l3.y, data: l3 };
180  } };
181};
182function D(t3) {
183  return "x" === t3 ? "y" : "x";
184}
185var E = function(t3) {
186  return void 0 === t3 && (t3 = {}), { name: "shift", options: t3, async fn(e4) {
187    const { x: r4, y: i4, placement: a3 } = e4, _a = t3, { mainAxis: l3 = true, crossAxis: c3 = false, limiter: f3 = { fn: (t4) => {
188      let { x: e5, y: n3 } = t4;
189      return { x: e5, y: n3 };
190    } } } = _a, m3 = __objRest(_a, ["mainAxis", "crossAxis", "limiter"]), g3 = { x: r4, y: i4 }, d3 = await s(e4, m3), p3 = o2(n(a3)), h3 = D(p3);
191    let y4 = g3[p3], x3 = g3[h3];
192    if (l3) {
193      const t4 = "y" === p3 ? "bottom" : "right";
194      y4 = u(y4 + d3["y" === p3 ? "top" : "left"], y4, y4 - d3[t4]);
195    }
196    if (c3) {
197      const t4 = "y" === h3 ? "bottom" : "right";
198      x3 = u(x3 + d3["y" === h3 ? "top" : "left"], x3, x3 - d3[t4]);
199    }
200    const w3 = f3.fn(__spreadProps(__spreadValues({}, e4), { [p3]: y4, [h3]: x3 }));
201    return __spreadProps(__spreadValues({}, w3), { data: { x: w3.x - r4, y: w3.y - i4 } });
202  } };
203};
204var k = function(e4) {
205  return void 0 === e4 && (e4 = {}), { name: "size", options: e4, async fn(r4) {
206    const { placement: i4, rects: a3, platform: l3, elements: u3 } = r4, _a = e4, { apply: m3 = () => {
207    } } = _a, g3 = __objRest(_a, ["apply"]), d3 = await s(r4, g3), p3 = n(i4), h3 = t(i4), y4 = "x" === o2(i4), { width: x3, height: w3 } = a3.floating;
208    let v3, b3;
209    "top" === p3 || "bottom" === p3 ? (v3 = p3, b3 = h3 === (await (null == l3.isRTL ? void 0 : l3.isRTL(u3.floating)) ? "start" : "end") ? "left" : "right") : (b3 = p3, v3 = "end" === h3 ? "top" : "bottom");
210    const R2 = w3 - d3[v3], A2 = x3 - d3[b3];
211    let P3 = R2, T3 = A2;
212    if (y4 ? T3 = c(x3 - d3.right - d3.left, A2) : P3 = c(w3 - d3.bottom - d3.top, R2), !r4.middlewareData.shift && !h3) {
213      const t3 = f(d3.left, 0), e5 = f(d3.right, 0), n3 = f(d3.top, 0), o5 = f(d3.bottom, 0);
214      y4 ? T3 = x3 - 2 * (0 !== t3 || 0 !== e5 ? t3 + e5 : f(d3.left, d3.right)) : P3 = w3 - 2 * (0 !== n3 || 0 !== o5 ? n3 + o5 : f(d3.top, d3.bottom));
215    }
216    await m3(__spreadProps(__spreadValues({}, r4), { availableWidth: T3, availableHeight: P3 }));
217    const O3 = await l3.getDimensions(u3.floating);
218    return x3 !== O3.width || w3 !== O3.height ? { reset: { rects: true } } : {};
219  } };
220};
221
vendor: 10,787 bytes, lines 222-471
222// node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs
223function n2(t3) {
224  var e4;
225  return (null == (e4 = t3.ownerDocument) ? void 0 : e4.defaultView) || window;
226}
227function o3(t3) {
228  return n2(t3).getComputedStyle(t3);
229}
230var i3 = Math.min;
231var r2 = Math.max;
232var l2 = Math.round;
233function c2(t3) {
234  const e4 = o3(t3);
235  let n3 = parseFloat(e4.width), i4 = parseFloat(e4.height);
236  const r4 = t3.offsetWidth, c3 = t3.offsetHeight, s3 = l2(n3) !== r4 || l2(i4) !== c3;
237  return s3 && (n3 = r4, i4 = c3), { width: n3, height: i4, fallback: s3 };
238}
239function s2(t3) {
240  return h2(t3) ? (t3.nodeName || "").toLowerCase() : "";
241}
242var f2;
243function u2() {
244  if (f2)
245    return f2;
246  const t3 = navigator.userAgentData;
247  return t3 && Array.isArray(t3.brands) ? (f2 = t3.brands.map((t4) => t4.brand + "/" + t4.version).join(" "), f2) : navigator.userAgent;
248}
249function a2(t3) {
250  return t3 instanceof n2(t3).HTMLElement;
251}
252function d2(t3) {
253  return t3 instanceof n2(t3).Element;
254}
255function h2(t3) {
256  return t3 instanceof n2(t3).Node;
257}
258function p2(t3) {
259  if ("undefined" == typeof ShadowRoot)
260    return false;
261  return t3 instanceof n2(t3).ShadowRoot || t3 instanceof ShadowRoot;
262}
263function g2(t3) {
264  const { overflow: e4, overflowX: n3, overflowY: i4, display: r4 } = o3(t3);
265  return /auto|scroll|overlay|hidden|clip/.test(e4 + i4 + n3) && !["inline", "contents"].includes(r4);
266}
267function m2(t3) {
268  return ["table", "td", "th"].includes(s2(t3));
269}
270function y3(t3) {
271  const e4 = /firefox/i.test(u2()), n3 = o3(t3), i4 = n3.backdropFilter || n3.WebkitBackdropFilter;
272  return "none" !== n3.transform || "none" !== n3.perspective || !!i4 && "none" !== i4 || e4 && "filter" === n3.willChange || e4 && !!n3.filter && "none" !== n3.filter || ["transform", "perspective"].some((t4) => n3.willChange.includes(t4)) || ["paint", "layout", "strict", "content"].some((t4) => {
273    const e5 = n3.contain;
274    return null != e5 && e5.includes(t4);
275  });
276}
277function x2() {
278  return /^((?!chrome|android).)*safari/i.test(u2());
279}
280function w2(t3) {
281  return ["html", "body", "#document"].includes(s2(t3));
282}
283function v2(t3) {
284  return d2(t3) ? t3 : t3.contextElement;
285}
286var b2 = { x: 1, y: 1 };
287function L2(t3) {
288  const e4 = v2(t3);
289  if (!a2(e4))
290    return b2;
291  const n3 = e4.getBoundingClientRect(), { width: o5, height: i4, fallback: r4 } = c2(e4);
292  let s3 = (r4 ? l2(n3.width) : n3.width) / o5, f3 = (r4 ? l2(n3.height) : n3.height) / i4;
293  return s3 && Number.isFinite(s3) || (s3 = 1), f3 && Number.isFinite(f3) || (f3 = 1), { x: s3, y: f3 };
294}
295function E2(t3, e4, o5, i4) {
296  var r4, l3;
297  void 0 === e4 && (e4 = false), void 0 === o5 && (o5 = false);
298  const c3 = t3.getBoundingClientRect(), s3 = v2(t3);
299  let f3 = b2;
300  e4 && (i4 ? d2(i4) && (f3 = L2(i4)) : f3 = L2(t3));
301  const u3 = s3 ? n2(s3) : window, a3 = x2() && o5;
302  let h3 = (c3.left + (a3 && (null == (r4 = u3.visualViewport) ? void 0 : r4.offsetLeft) || 0)) / f3.x, p3 = (c3.top + (a3 && (null == (l3 = u3.visualViewport) ? void 0 : l3.offsetTop) || 0)) / f3.y, g3 = c3.width / f3.x, m3 = c3.height / f3.y;
303  if (s3) {
304    const t4 = n2(s3), e5 = i4 && d2(i4) ? n2(i4) : i4;
305    let o6 = t4.frameElement;
306    for (; o6 && i4 && e5 !== t4; ) {
307      const t5 = L2(o6), e6 = o6.getBoundingClientRect(), i5 = getComputedStyle(o6);
308      e6.x += (o6.clientLeft + parseFloat(i5.paddingLeft)) * t5.x, e6.y += (o6.clientTop + parseFloat(i5.paddingTop)) * t5.y, h3 *= t5.x, p3 *= t5.y, g3 *= t5.x, m3 *= t5.y, h3 += e6.x, p3 += e6.y, o6 = n2(o6).frameElement;
309    }
310  }
311  return { width: g3, height: m3, top: p3, right: h3 + g3, bottom: p3 + m3, left: h3, x: h3, y: p3 };
312}
313function R(t3) {
314  return ((h2(t3) ? t3.ownerDocument : t3.document) || window.document).documentElement;
315}
316function T2(t3) {
317  return d2(t3) ? { scrollLeft: t3.scrollLeft, scrollTop: t3.scrollTop } : { scrollLeft: t3.pageXOffset, scrollTop: t3.pageYOffset };
318}
319function C(t3) {
320  return E2(R(t3)).left + T2(t3).scrollLeft;
321}
322function F(t3) {
323  if ("html" === s2(t3))
324    return t3;
325  const e4 = t3.assignedSlot || t3.parentNode || p2(t3) && t3.host || R(t3);
326  return p2(e4) ? e4.host : e4;
327}
328function W(t3) {
329  const e4 = F(t3);
330  return w2(e4) ? e4.ownerDocument.body : a2(e4) && g2(e4) ? e4 : W(e4);
331}
332function D2(t3, e4) {
333  var o5;
334  void 0 === e4 && (e4 = []);
335  const i4 = W(t3), r4 = i4 === (null == (o5 = t3.ownerDocument) ? void 0 : o5.body), l3 = n2(i4);
336  return r4 ? e4.concat(l3, l3.visualViewport || [], g2(i4) ? i4 : []) : e4.concat(i4, D2(i4));
337}
338function S(e4, i4, l3) {
339  let c3;
340  if ("viewport" === i4)
341    c3 = function(t3, e5) {
342      const o5 = n2(t3), i5 = R(t3), r4 = o5.visualViewport;
343      let l4 = i5.clientWidth, c4 = i5.clientHeight, s4 = 0, f4 = 0;
344      if (r4) {
345        l4 = r4.width, c4 = r4.height;
346        const t4 = x2();
347        (!t4 || t4 && "fixed" === e5) && (s4 = r4.offsetLeft, f4 = r4.offsetTop);
348      }
349      return { width: l4, height: c4, x: s4, y: f4 };
350    }(e4, l3);
351  else if ("document" === i4)
352    c3 = function(t3) {
353      const e5 = R(t3), n3 = T2(t3), i5 = t3.ownerDocument.body, l4 = r2(e5.scrollWidth, e5.clientWidth, i5.scrollWidth, i5.clientWidth), c4 = r2(e5.scrollHeight, e5.clientHeight, i5.scrollHeight, i5.clientHeight);
354      let s4 = -n3.scrollLeft + C(t3);
355      const f4 = -n3.scrollTop;
356      return "rtl" === o3(i5).direction && (s4 += r2(e5.clientWidth, i5.clientWidth) - l4), { width: l4, height: c4, x: s4, y: f4 };
357    }(R(e4));
358  else if (d2(i4))
359    c3 = function(t3, e5) {
360      const n3 = E2(t3, true, "fixed" === e5), o5 = n3.top + t3.clientTop, i5 = n3.left + t3.clientLeft, r4 = a2(t3) ? L2(t3) : { x: 1, y: 1 };
361      return { width: t3.clientWidth * r4.x, height: t3.clientHeight * r4.y, x: i5 * r4.x, y: o5 * r4.y };
362    }(i4, l3);
363  else {
364    const t3 = __spreadValues({}, i4);
365    if (x2()) {
366      var s3, f3;
367      const o5 = n2(e4);
368      t3.x -= (null == (s3 = o5.visualViewport) ? void 0 : s3.offsetLeft) || 0, t3.y -= (null == (f3 = o5.visualViewport) ? void 0 : f3.offsetTop) || 0;
369    }
370    c3 = t3;
371  }
372  return l(c3);
373}
374function A(t3, e4) {
375  return a2(t3) && "fixed" !== o3(t3).position ? e4 ? e4(t3) : t3.offsetParent : null;
376}
377function H(t3, e4) {
378  const i4 = n2(t3);
379  let r4 = A(t3, e4);
380  for (; r4 && m2(r4) && "static" === o3(r4).position; )
381    r4 = A(r4, e4);
382  return r4 && ("html" === s2(r4) || "body" === s2(r4) && "static" === o3(r4).position && !y3(r4)) ? i4 : r4 || function(t4) {
383    let e5 = F(t4);
384    for (; a2(e5) && !w2(e5); ) {
385      if (y3(e5))
386        return e5;
387      e5 = F(e5);
388    }
389    return null;
390  }(t3) || i4;
391}
392function V(t3, e4, n3) {
393  const o5 = a2(e4), i4 = R(e4), r4 = E2(t3, true, "fixed" === n3, e4);
394  let l3 = { scrollLeft: 0, scrollTop: 0 };
395  const c3 = { x: 0, y: 0 };
396  if (o5 || !o5 && "fixed" !== n3)
397    if (("body" !== s2(e4) || g2(i4)) && (l3 = T2(e4)), a2(e4)) {
398      const t4 = E2(e4, true);
399      c3.x = t4.x + e4.clientLeft, c3.y = t4.y + e4.clientTop;
400    } else
401      i4 && (c3.x = C(i4));
402  return { x: r4.left + l3.scrollLeft - c3.x, y: r4.top + l3.scrollTop - c3.y, width: r4.width, height: r4.height };
403}
404var O2 = { getClippingRect: function(t3) {
405  let { element: e4, boundary: n3, rootBoundary: l3, strategy: c3 } = t3;
406  const f3 = "clippingAncestors" === n3 ? function(t4, e5) {
407    const n4 = e5.get(t4);
408    if (n4)
409      return n4;
410    let i4 = D2(t4).filter((t5) => d2(t5) && "body" !== s2(t5)), r4 = null;
411    const l4 = "fixed" === o3(t4).position;
412    let c4 = l4 ? F(t4) : t4;
413    for (; d2(c4) && !w2(c4); ) {
414      const t5 = o3(c4), e6 = y3(c4);
415      "fixed" === t5.position ? r4 = null : (l4 ? e6 || r4 : e6 || "static" !== t5.position || !r4 || !["absolute", "fixed"].includes(r4.position)) ? r4 = t5 : i4 = i4.filter((t6) => t6 !== c4), c4 = F(c4);
416    }
417    return e5.set(t4, i4), i4;
418  }(e4, this._c) : [].concat(n3), u3 = [...f3, l3], a3 = u3[0], h3 = u3.reduce((t4, n4) => {
419    const o5 = S(e4, n4, c3);
420    return t4.top = r2(o5.top, t4.top), t4.right = i3(o5.right, t4.right), t4.bottom = i3(o5.bottom, t4.bottom), t4.left = r2(o5.left, t4.left), t4;
421  }, S(e4, a3, c3));
422  return { width: h3.right - h3.left, height: h3.bottom - h3.top, x: h3.left, y: h3.top };
423}, convertOffsetParentRelativeRectToViewportRelativeRect: function(t3) {
424  let { rect: e4, offsetParent: n3, strategy: o5 } = t3;
425  const i4 = a2(n3), r4 = R(n3);
426  if (n3 === r4)
427    return e4;
428  let l3 = { scrollLeft: 0, scrollTop: 0 }, c3 = { x: 1, y: 1 };
429  const f3 = { x: 0, y: 0 };
430  if ((i4 || !i4 && "fixed" !== o5) && (("body" !== s2(n3) || g2(r4)) && (l3 = T2(n3)), a2(n3))) {
431    const t4 = E2(n3);
432    c3 = L2(n3), f3.x = t4.x + n3.clientLeft, f3.y = t4.y + n3.clientTop;
433  }
434  return { width: e4.width * c3.x, height: e4.height * c3.y, x: e4.x * c3.x - l3.scrollLeft * c3.x + f3.x, y: e4.y * c3.y - l3.scrollTop * c3.y + f3.y };
435}, isElement: d2, getDimensions: function(t3) {
436  return a2(t3) ? c2(t3) : t3.getBoundingClientRect();
437}, getOffsetParent: H, getDocumentElement: R, getScale: L2, async getElementRects(t3) {
438  let { reference: e4, floating: n3, strategy: o5 } = t3;
439  const i4 = this.getOffsetParent || H, r4 = this.getDimensions;
440  return { reference: V(e4, await i4(n3), o5), floating: __spreadValues({ x: 0, y: 0 }, await r4(n3)) };
441}, getClientRects: (t3) => Array.from(t3.getClientRects()), isRTL: (t3) => "rtl" === o3(t3).direction };
442function P2(t3, e4, n3, o5) {
443  void 0 === o5 && (o5 = {});
444  const { ancestorScroll: i4 = true, ancestorResize: r4 = true, elementResize: l3 = true, animationFrame: c3 = false } = o5, s3 = i4 && !c3, f3 = s3 || r4 ? [...d2(t3) ? D2(t3) : t3.contextElement ? D2(t3.contextElement) : [], ...D2(e4)] : [];
445  f3.forEach((t4) => {
446    s3 && t4.addEventListener("scroll", n3, { passive: true }), r4 && t4.addEventListener("resize", n3);
447  });
448  let u3, a3 = null;
449  if (l3) {
450    let o6 = true;
451    a3 = new ResizeObserver(() => {
452      o6 || n3(), o6 = false;
453    }), d2(t3) && !c3 && a3.observe(t3), d2(t3) || !t3.contextElement || c3 || a3.observe(t3.contextElement), a3.observe(e4);
454  }
455  let h3 = c3 ? E2(t3) : null;
456  return c3 && function e5() {
457    const o6 = E2(t3);
458    !h3 || o6.x === h3.x && o6.y === h3.y && o6.width === h3.width && o6.height === h3.height || n3();
459    h3 = o6, u3 = requestAnimationFrame(e5);
460  }(), n3(), () => {
461    var t4;
462    f3.forEach((t5) => {
463      s3 && t5.removeEventListener("scroll", n3), r4 && t5.removeEventListener("resize", n3);
464    }), null == (t4 = a3) || t4.disconnect(), a3 = null, c3 && cancelAnimationFrame(u3);
465  };
466}
467var z = (t3, n3, o5) => {
468  const i4 = /* @__PURE__ */ new Map(), r4 = __spreadValues({ platform: O2 }, o5), l3 = __spreadProps(__spreadValues({}, r4.platform), { _c: i4 });
469  return i2(t3, n3, __spreadProps(__spreadValues({}, r4), { platform: l3 }));
470};
471
vendor: 737 bytes, lines 472-496
472// node_modules/composed-offset-position/dist/composed-offset-position.browser.min.mjs
473function t2(t3) {
474  return r3(t3);
475}
476function o4(t3) {
477  return t3.assignedSlot ? t3.assignedSlot : t3.parentNode instanceof ShadowRoot ? t3.parentNode.host : t3.parentNode;
478}
479function r3(t3) {
480  for (let e4 = t3; e4; e4 = o4(e4))
481    if (e4 instanceof Element && "none" === getComputedStyle(e4).display)
482      return null;
483  for (let e4 = o4(t3); e4; e4 = o4(e4)) {
484    if (!(e4 instanceof Element))
485      continue;
486    const t4 = getComputedStyle(e4);
487    if ("contents" !== t4.display) {
488      if ("static" !== t4.position || "none" !== t4.filter)
489        return e4;
490      if ("BODY" === e4.tagName)
491        return e4;
492    }
493  }
494  return null;
495}
496
vendor: 7,099 bytes, lines 497-706
497// src/components/popup/popup.ts
498var SlPopup = class extends ShoelaceElement {
499  constructor() {
500    super(...arguments);
501    this.active = false;
502    this.placement = "top";
503    this.strategy = "absolute";
504    this.distance = 0;
505    this.skidding = 0;
506    this.arrow = false;
507    this.arrowPlacement = "anchor";
508    this.arrowPadding = 10;
509    this.flip = false;
510    this.flipFallbackPlacements = "";
511    this.flipFallbackStrategy = "best-fit";
512    this.flipPadding = 0;
513    this.shift = false;
514    this.shiftPadding = 0;
515    this.autoSizePadding = 0;
516  }
517  async connectedCallback() {
518    super.connectedCallback();
519    await this.updateComplete;
520    this.start();
521  }
522  disconnectedCallback() {
523    this.stop();
524  }
525  async updated(changedProps) {
526    super.updated(changedProps);
527    if (changedProps.has("active")) {
528      if (this.active) {
529        this.start();
530      } else {
531        this.stop();
532      }
533    }
534    if (changedProps.has("anchor")) {
535      this.handleAnchorChange();
536    }
537    if (this.active) {
538      await this.updateComplete;
539      this.reposition();
540    }
541  }
542  async handleAnchorChange() {
543    await this.stop();
544    if (this.anchor && typeof this.anchor === "string") {
545      const root = this.getRootNode();
546      this.anchorEl = root.getElementById(this.anchor);
547    } else if (this.anchor instanceof Element) {
548      this.anchorEl = this.anchor;
549    } else {
550      this.anchorEl = this.querySelector('[slot="anchor"]');
551    }
552    if (this.anchorEl instanceof HTMLSlotElement) {
553      this.anchorEl = this.anchorEl.assignedElements({ flatten: true })[0];
554    }
555    if (!this.anchorEl) {
556      throw new Error(
557        "Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute."
558      );
559    }
560    this.start();
561  }
562  start() {
563    if (!this.anchorEl) {
564      return;
565    }
566    this.cleanup = P2(this.anchorEl, this.popup, () => {
567      this.reposition();
568    });
569  }
570  async stop() {
571    return new Promise((resolve) => {
572      if (this.cleanup) {
573        this.cleanup();
574        this.cleanup = void 0;
575        this.removeAttribute("data-current-placement");
576        this.style.removeProperty("--auto-size-available-width");
577        this.style.removeProperty("--auto-size-available-height");
578        requestAnimationFrame(() => resolve());
579      } else {
580        resolve();
581      }
582    });
583  }
584  /** Forces the popup to recalculate and reposition itself. */
585  reposition() {
586    if (!this.active || !this.anchorEl) {
587      return;
588    }
589    const middleware = [
590      // The offset middleware goes first
591      O({ mainAxis: this.distance, crossAxis: this.skidding })
592    ];
593    if (this.sync) {
594      middleware.push(
595        k({
596          apply: ({ rects }) => {
597            const syncWidth = this.sync === "width" || this.sync === "both";
598            const syncHeight = this.sync === "height" || this.sync === "both";
599            this.popup.style.width = syncWidth ? `${rects.reference.width}px` : "";
600            this.popup.style.height = syncHeight ? `${rects.reference.height}px` : "";
601          }
602        })
603      );
604    } else {
605      this.popup.style.width = "";
606      this.popup.style.height = "";
607    }
608    if (this.flip) {
609      middleware.push(
610        b({
611          boundary: this.flipBoundary,
612          // @ts-expect-error - We're converting a string attribute to an array here
613          fallbackPlacements: this.flipFallbackPlacements,
614          fallbackStrategy: this.flipFallbackStrategy === "best-fit" ? "bestFit" : "initialPlacement",
615          padding: this.flipPadding
616        })
617      );
618    }
619    if (this.shift) {
620      middleware.push(
621        E({
622          boundary: this.shiftBoundary,
623          padding: this.shiftPadding
624        })
625      );
626    }
627    if (this.autoSize) {
628      middleware.push(
629        k({
630          boundary: this.autoSizeBoundary,
631          padding: this.autoSizePadding,
632          apply: ({ availableWidth, availableHeight }) => {
633            if (this.autoSize === "vertical" || this.autoSize === "both") {
634              this.style.setProperty("--auto-size-available-height", `${availableHeight}px`);
635            } else {
636              this.style.removeProperty("--auto-size-available-height");
637            }
638            if (this.autoSize === "horizontal" || this.autoSize === "both") {
639              this.style.setProperty("--auto-size-available-width", `${availableWidth}px`);
640            } else {
641              this.style.removeProperty("--auto-size-available-width");
642            }
643          }
644        })
645      );
646    } else {
647      this.style.removeProperty("--auto-size-available-width");
648      this.style.removeProperty("--auto-size-available-height");
649    }
650    if (this.arrow) {
651      middleware.push(
652        m({
653          element: this.arrowEl,
654          padding: this.arrowPadding
655        })
656      );
657    }
658    const getOffsetParent = this.strategy === "absolute" ? (element) => O2.getOffsetParent(element, t2) : O2.getOffsetParent;
659    z(this.anchorEl, this.popup, {
660      placement: this.placement,
661      middleware,
662      strategy: this.strategy,
663      platform: __spreadProps(__spreadValues({}, O2), {
664        getOffsetParent
665      })
666    }).then(({ x: x3, y: y4, middlewareData, placement }) => {
667      const isRtl = getComputedStyle(this).direction === "rtl";
668      const staticSide = { top: "bottom", right: "left", bottom: "top", left: "right" }[placement.split("-")[0]];
669      this.setAttribute("data-current-placement", placement);
670      Object.assign(this.popup.style, {
671        left: `${x3}px`,
672        top: `${y4}px`
673      });
674      if (this.arrow) {
675        const arrowX = middlewareData.arrow.x;
676        const arrowY = middlewareData.arrow.y;
677        let top = "";
678        let right = "";
679        let bottom = "";
680        let left = "";
681        if (this.arrowPlacement === "start") {
682          const value = typeof arrowX === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
683          top = typeof arrowY === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
684          right = isRtl ? value : "";
685          left = isRtl ? "" : value;
686        } else if (this.arrowPlacement === "end") {
687          const value = typeof arrowX === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
688          right = isRtl ? "" : value;
689          left = isRtl ? value : "";
690          bottom = typeof arrowY === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
691        } else if (this.arrowPlacement === "center") {
692          left = typeof arrowX === "number" ? `calc(50% - var(--arrow-size-diagonal))` : "";
693          top = typeof arrowY === "number" ? `calc(50% - var(--arrow-size-diagonal))` : "";
694        } else {
695          left = typeof arrowX === "number" ? `${arrowX}px` : "";
696          top = typeof arrowY === "number" ? `${arrowY}px` : "";
697        }
698        Object.assign(this.arrowEl.style, {
699          top,
700          right,
701          bottom,
702          left,
703          [staticSide]: "calc(var(--arrow-size-diagonal) * -1)"
704        });
705      }
706    });
vendor: 2,869 bytes, lines 707-814
707    this.emit("sl-reposition");
708  }
709  render() {
710    return y`
711      <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
712
713      <div
714        part="popup"
715        class=${o({
716      popup: true,
717      "popup--active": this.active,
718      "popup--fixed": this.strategy === "fixed",
719      "popup--has-arrow": this.arrow
720    })}
721      >
722        <slot></slot>
723        ${this.arrow ? y`<div part="arrow" class="popup__arrow" role="presentation"></div>` : ""}
724      </div>
725    `;
726  }
727};
728SlPopup.styles = popup_styles_default;
729__decorateClass([
730  i(".popup")
731], SlPopup.prototype, "popup", 2);
732__decorateClass([
733  i(".popup__arrow")
734], SlPopup.prototype, "arrowEl", 2);
735__decorateClass([
736  e2()
737], SlPopup.prototype, "anchor", 2);
738__decorateClass([
739  e2({ type: Boolean, reflect: true })
740], SlPopup.prototype, "active", 2);
741__decorateClass([
742  e2({ reflect: true })
743], SlPopup.prototype, "placement", 2);
744__decorateClass([
745  e2({ reflect: true })
746], SlPopup.prototype, "strategy", 2);
747__decorateClass([
748  e2({ type: Number })
749], SlPopup.prototype, "distance", 2);
750__decorateClass([
751  e2({ type: Number })
752], SlPopup.prototype, "skidding", 2);
753__decorateClass([
754  e2({ type: Boolean })
755], SlPopup.prototype, "arrow", 2);
756__decorateClass([
757  e2({ attribute: "arrow-placement" })
758], SlPopup.prototype, "arrowPlacement", 2);
759__decorateClass([
760  e2({ attribute: "arrow-padding", type: Number })
761], SlPopup.prototype, "arrowPadding", 2);
762__decorateClass([
763  e2({ type: Boolean })
764], SlPopup.prototype, "flip", 2);
765__decorateClass([
766  e2({
767    attribute: "flip-fallback-placements",
768    converter: {
769      fromAttribute: (value) => {
770        return value.split(" ").map((p3) => p3.trim()).filter((p3) => p3 !== "");
771      },
772      toAttribute: (value) => {
773        return value.join(" ");
774      }
775    }
776  })
777], SlPopup.prototype, "flipFallbackPlacements", 2);
778__decorateClass([
779  e2({ attribute: "flip-fallback-strategy" })
780], SlPopup.prototype, "flipFallbackStrategy", 2);
781__decorateClass([
782  e2({ type: Object })
783], SlPopup.prototype, "flipBoundary", 2);
784__decorateClass([
785  e2({ attribute: "flip-padding", type: Number })
786], SlPopup.prototype, "flipPadding", 2);
787__decorateClass([
788  e2({ type: Boolean })
789], SlPopup.prototype, "shift", 2);
790__decorateClass([
791  e2({ type: Object })
792], SlPopup.prototype, "shiftBoundary", 2);
793__decorateClass([
794  e2({ attribute: "shift-padding", type: Number })
795], SlPopup.prototype, "shiftPadding", 2);
796__decorateClass([
797  e2({ attribute: "auto-size" })
798], SlPopup.prototype, "autoSize", 2);
799__decorateClass([
800  e2()
801], SlPopup.prototype, "sync", 2);
802__decorateClass([
803  e2({ type: Object })
804], SlPopup.prototype, "autoSizeBoundary", 2);
805__decorateClass([
806  e2({ attribute: "auto-size-padding", type: Number })
807], SlPopup.prototype, "autoSizePadding", 2);
808SlPopup = __decorateClass([
809  e("sl-popup")
810], SlPopup);
811
812export {
813  SlPopup
814};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.