@eox/itemfilter 0.12.0 → 0.12.1
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/eox-itemfilter.js +137 -129
- package/dist/eox-itemfilter.umd.cjs +14 -12
- package/package.json +1 -1
- package/test/general.cy.ts +8 -10
- package/test/state.cy.ts +10 -14
package/dist/eox-itemfilter.js
CHANGED
|
@@ -289,7 +289,7 @@ Pt.elementStyles = [], Pt.shadowRootOptions = { mode: "open" }, Pt[Xt("elementPr
|
|
|
289
289
|
* Copyright 2017 Google LLC
|
|
290
290
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
291
291
|
*/
|
|
292
|
-
const Vt = globalThis, Er = Vt.trustedTypes, Mn = Er ? Er.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ki = "$lit$",
|
|
292
|
+
const Vt = globalThis, Er = Vt.trustedTypes, Mn = Er ? Er.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ki = "$lit$", Qe = `lit$${(Math.random() + "").slice(9)}$`, Ri = "?" + Qe, ul = `<${Ri}>`, xt = document, Gt = () => xt.createComment(""), Jt = (t) => t === null || typeof t != "object" && typeof t != "function", is = Array.isArray, ns = (t) => is(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", hi = `[
|
|
293
293
|
\f\r]`, Yt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, On = /-->/g, Pn = />/g, mt = RegExp(`>|${hi}(?:([^\\s"'>=/]+)(${hi}*=${hi}*(?:[^
|
|
294
294
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ln = /'/g, Cn = /"/g, ss = /^(?:script|style|textarea|title)$/i, dl = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), X = dl(1), lt = Symbol.for("lit-noChange"), oe = Symbol.for("lit-nothing"), kn = /* @__PURE__ */ new WeakMap(), bt = xt.createTreeWalker(xt, 129);
|
|
295
295
|
function os(t, e) {
|
|
@@ -306,7 +306,7 @@ const ls = (t, e) => {
|
|
|
306
306
|
for (; b < l.length && (o.lastIndex = b, f = o.exec(l), f !== null); )
|
|
307
307
|
b = o.lastIndex, o === Yt ? f[1] === "!--" ? o = On : f[1] !== void 0 ? o = Pn : f[2] !== void 0 ? (ss.test(f[2]) && (n = RegExp("</" + f[2], "g")), o = mt) : f[3] !== void 0 && (o = mt) : o === mt ? f[0] === ">" ? (o = n ?? Yt, p = -1) : f[1] === void 0 ? p = -2 : (p = o.lastIndex - f[2].length, h = f[1], o = f[3] === void 0 ? mt : f[3] === '"' ? Cn : Ln) : o === Cn || o === Ln ? o = mt : o === On || o === Pn ? o = Yt : (o = mt, n = void 0);
|
|
308
308
|
const y = o === mt && t[a + 1].startsWith("/>") ? " " : "";
|
|
309
|
-
s += o === Yt ? l + ul : p >= 0 ? (i.push(h), l.slice(0, p) + ki + l.slice(p) +
|
|
309
|
+
s += o === Yt ? l + ul : p >= 0 ? (i.push(h), l.slice(0, p) + ki + l.slice(p) + Qe + y) : l + Qe + (p === -2 ? a : y);
|
|
310
310
|
}
|
|
311
311
|
return [os(t, s + (t[r] || "<?>") + (e === 2 ? "</svg>" : "")), i];
|
|
312
312
|
};
|
|
@@ -325,12 +325,12 @@ class Zt {
|
|
|
325
325
|
if (n.hasAttributes())
|
|
326
326
|
for (const p of n.getAttributeNames())
|
|
327
327
|
if (p.endsWith(ki)) {
|
|
328
|
-
const b = f[o++], y = n.getAttribute(p).split(
|
|
328
|
+
const b = f[o++], y = n.getAttribute(p).split(Qe), $ = /([.?@])?(.*)/.exec(b);
|
|
329
329
|
l.push({ type: 1, index: s, name: $[2], strings: y, ctor: $[1] === "." ? cs : $[1] === "?" ? hs : $[1] === "@" ? us : nr }), n.removeAttribute(p);
|
|
330
330
|
} else
|
|
331
|
-
p.startsWith(
|
|
331
|
+
p.startsWith(Qe) && (l.push({ type: 6, index: s }), n.removeAttribute(p));
|
|
332
332
|
if (ss.test(n.tagName)) {
|
|
333
|
-
const p = n.textContent.split(
|
|
333
|
+
const p = n.textContent.split(Qe), b = p.length - 1;
|
|
334
334
|
if (b > 0) {
|
|
335
335
|
n.textContent = Er ? Er.emptyScript : "";
|
|
336
336
|
for (let y = 0; y < b; y++)
|
|
@@ -343,8 +343,8 @@ class Zt {
|
|
|
343
343
|
l.push({ type: 2, index: s });
|
|
344
344
|
else {
|
|
345
345
|
let p = -1;
|
|
346
|
-
for (; (p = n.data.indexOf(
|
|
347
|
-
l.push({ type: 7, index: s }), p +=
|
|
346
|
+
for (; (p = n.data.indexOf(Qe, p + 1)) !== -1; )
|
|
347
|
+
l.push({ type: 7, index: s }), p += Qe.length - 1;
|
|
348
348
|
}
|
|
349
349
|
s++;
|
|
350
350
|
}
|
|
@@ -525,7 +525,7 @@ class ds {
|
|
|
525
525
|
wt(this, e);
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
const fl = { j: ki, P:
|
|
528
|
+
const fl = { j: ki, P: Qe, A: Ri, C: 1, M: ls, L: as, R: ns, V: wt, D: Nt, I: nr, H: hs, N: us, U: cs, B: ds }, ui = Vt.litHtmlPolyfillSupport;
|
|
529
529
|
ui == null || ui(Zt, Nt), (Vt.litHtmlVersions ?? (Vt.litHtmlVersions = [])).push("3.1.0");
|
|
530
530
|
const pl = (t, e, r) => {
|
|
531
531
|
const i = (r == null ? void 0 : r.renderBefore) ?? e;
|
|
@@ -820,7 +820,7 @@ const ys = Symbol.for(""), wl = (t) => {
|
|
|
820
820
|
return t(e, ...r);
|
|
821
821
|
}, $r = $l(X);
|
|
822
822
|
(() => {
|
|
823
|
-
var t = Object.defineProperty, e = Math.pow, r = (c, d, x) => d in c ? t(c, d, { enumerable: !0, configurable: !0, writable: !0, value: x }) : c[d] = x, i = (c, d, x) => (r(c, typeof d != "symbol" ? d + "" : d, x), x), n = (c, d) => ` ${d && d.length > 0 ? d.map((x) => `<link rel="stylesheet" href="${x}" />`).join("") : ""} <style> ${c} </style> <div class="range-slider-box"> <div class="row"> <div id="range-slider" class="range-slider"> <div class="container"> <div class="panel"></div> <div class="panel-fill"></div> <div class="container"> <div class="pointer" tabindex="0" role="slider"> <div class="pointer-shape"></div> </div> </div> </div> </div> </div> </div>`, s = ":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}", o = "pointers-overlap", a = "pointers-min-distance", l = "pointers-max-distance", h = "range-dragging", f = "data", p = "min", b = "max", y = "step", $ = "round", L = "type", G = "theme", B = "rtl", g = "btt", m = "disabled", w = "keyboard-disabled", S = "mousewheel-disabled", E = "slider-width", A = "slider-height", k = "slider-radius", F = "slider-bg", H = "slider-bg-hover", I = "slider-bg-fill", te = "pointer-width", le = "pointer-height", O = "pointer-radius", P = "pointer-bg", M = "pointer-bg-hover", j = "pointer-bg-focus", C = "pointer-shadow", V = "pointer-shadow-hover", U = "pointer-shadow-focus", se = "pointer-border", re = "pointer-border-hover", ye = "pointer-border-focus", ve = "animate-onclick", Ae = "css-links", xe = "vertical", Me = "horizontal",
|
|
823
|
+
var t = Object.defineProperty, e = Math.pow, r = (c, d, x) => d in c ? t(c, d, { enumerable: !0, configurable: !0, writable: !0, value: x }) : c[d] = x, i = (c, d, x) => (r(c, typeof d != "symbol" ? d + "" : d, x), x), n = (c, d) => ` ${d && d.length > 0 ? d.map((x) => `<link rel="stylesheet" href="${x}" />`).join("") : ""} <style> ${c} </style> <div class="range-slider-box"> <div class="row"> <div id="range-slider" class="range-slider"> <div class="container"> <div class="panel"></div> <div class="panel-fill"></div> <div class="container"> <div class="pointer" tabindex="0" role="slider"> <div class="pointer-shape"></div> </div> </div> </div> </div> </div> </div>`, s = ":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}", o = "pointers-overlap", a = "pointers-min-distance", l = "pointers-max-distance", h = "range-dragging", f = "data", p = "min", b = "max", y = "step", $ = "round", L = "type", G = "theme", B = "rtl", g = "btt", m = "disabled", w = "keyboard-disabled", S = "mousewheel-disabled", E = "slider-width", A = "slider-height", k = "slider-radius", F = "slider-bg", H = "slider-bg-hover", I = "slider-bg-fill", te = "pointer-width", le = "pointer-height", O = "pointer-radius", P = "pointer-bg", M = "pointer-bg-hover", j = "pointer-bg-focus", C = "pointer-shadow", V = "pointer-shadow-hover", U = "pointer-shadow-focus", se = "pointer-border", re = "pointer-border-hover", ye = "pointer-border-focus", ve = "animate-onclick", Ae = "css-links", xe = "vertical", Me = "horizontal", Ze = (c, d, x, v, R) => {
|
|
824
824
|
let z = d - c;
|
|
825
825
|
return z === 0 ? x : (v - x) * (R - c) / z + x;
|
|
826
826
|
}, $e = (c) => !isNaN(parseFloat(c)) && isFinite(c), ie = (c, d) => $e(c) ? Number(c) : d, Ne = (c, d) => d === 0 ? 0 : Math.round(c / d) * d, ft = (c, d = 1 / 0) => {
|
|
@@ -1217,7 +1217,7 @@ const ys = Symbol.for(""), wl = (t) => {
|
|
|
1217
1217
|
}, hr = (u) => {
|
|
1218
1218
|
let _;
|
|
1219
1219
|
if (typeof ne == "function") {
|
|
1220
|
-
let N =
|
|
1220
|
+
let N = Ze(0, 100, D, Q, u);
|
|
1221
1221
|
_ = ne(N, u);
|
|
1222
1222
|
} else
|
|
1223
1223
|
_ = ne;
|
|
@@ -1228,7 +1228,7 @@ const ys = Symbol.for(""), wl = (t) => {
|
|
|
1228
1228
|
}, Mt = (u) => {
|
|
1229
1229
|
if (u === void 0)
|
|
1230
1230
|
return;
|
|
1231
|
-
let _ =
|
|
1231
|
+
let _ = Ze(0, 100, D, Q, u);
|
|
1232
1232
|
return q !== void 0 ? q[Math.round(_)] : ft(_, Te);
|
|
1233
1233
|
}, ur = () => q !== void 0 ? q[D] : D, dr = () => q !== void 0 ? q[Q] : Q, Hr = () => ne, Wo = (u) => {
|
|
1234
1234
|
var _;
|
|
@@ -1251,7 +1251,7 @@ const ys = Symbol.for(""), wl = (t) => {
|
|
|
1251
1251
|
Be !== void 0 && (ae.setAttr("aria-valuenow", Be.toString()), ae.setAttr("aria-valuetext", Be.toString()));
|
|
1252
1252
|
}
|
|
1253
1253
|
Go(), me && lo(c, v.map((ae) => Mt(ae.percent)));
|
|
1254
|
-
},
|
|
1254
|
+
}, Ue = () => {
|
|
1255
1255
|
for (let u = 0; u < v.length; u++)
|
|
1256
1256
|
Le(u, v[u].percent);
|
|
1257
1257
|
}, Ko = (u, _) => {
|
|
@@ -1263,9 +1263,9 @@ const ys = Symbol.for(""), wl = (t) => {
|
|
|
1263
1263
|
he.setAttr("aria-valuemin", ((u = Wo(N)) != null ? u : "").toString()), he.setAttr("aria-valuemax", ((_ = Xo(N)) != null ? _ : "").toString());
|
|
1264
1264
|
}
|
|
1265
1265
|
}, fr = (u) => {
|
|
1266
|
-
D = ie(u, Br), D > Q && (Q = D + qt),
|
|
1266
|
+
D = ie(u, Br), D > Q && (Q = D + qt), Ue();
|
|
1267
1267
|
}, pr = (u) => {
|
|
1268
|
-
Q = ie(u, qt), Q < D && (Q = D + qt),
|
|
1268
|
+
Q = ie(u, qt), Q < D && (Q = D + qt), Ue();
|
|
1269
1269
|
}, vn = (u) => {
|
|
1270
1270
|
ee = !0;
|
|
1271
1271
|
for (let _ = 0; _ < u.length; _++)
|
|
@@ -1276,7 +1276,7 @@ const ys = Symbol.for(""), wl = (t) => {
|
|
|
1276
1276
|
}, gr = (u, _) => {
|
|
1277
1277
|
let N;
|
|
1278
1278
|
q !== void 0 ? (N = u == null ? 0 : co(u, q), N === -1 && (N = 0)) : (N = ie(u, D), N < D && (N = D), N > Q && (N = Q));
|
|
1279
|
-
let he =
|
|
1279
|
+
let he = Ze(D, Q, 0, 100, N);
|
|
1280
1280
|
Le(_, he);
|
|
1281
1281
|
}, mr = (u) => {
|
|
1282
1282
|
if (u == null) {
|
|
@@ -1284,18 +1284,18 @@ const ys = Symbol.for(""), wl = (t) => {
|
|
|
1284
1284
|
return;
|
|
1285
1285
|
}
|
|
1286
1286
|
if (typeof u == "function") {
|
|
1287
|
-
ne = u,
|
|
1287
|
+
ne = u, Ue();
|
|
1288
1288
|
return;
|
|
1289
1289
|
}
|
|
1290
1290
|
if ($e(u)) {
|
|
1291
1291
|
ne = ie(u, 1);
|
|
1292
1292
|
let _ = Math.abs(Q - D);
|
|
1293
|
-
ne > _ && (ne = void 0),
|
|
1293
|
+
ne > _ && (ne = void 0), Ue();
|
|
1294
1294
|
return;
|
|
1295
1295
|
}
|
|
1296
1296
|
ne = void 0;
|
|
1297
1297
|
}, ei = (u) => {
|
|
1298
|
-
ee = u,
|
|
1298
|
+
ee = u, Ue();
|
|
1299
1299
|
}, ti = (u) => {
|
|
1300
1300
|
(!$e(u) || u < 0) && (u = 0), W = u;
|
|
1301
1301
|
}, ri = (u) => {
|
|
@@ -1322,14 +1322,14 @@ const ys = Symbol.for(""), wl = (t) => {
|
|
|
1322
1322
|
let N = (_ = c.shadowRoot) == null ? void 0 : _.querySelector(".range-slider-box");
|
|
1323
1323
|
if (!N)
|
|
1324
1324
|
return;
|
|
1325
|
-
N.className = `range-slider-box type-${ce}`,
|
|
1325
|
+
N.className = `range-slider-box type-${ce}`, Ue();
|
|
1326
1326
|
let he = ce === xe ? "vertical" : "horizontal";
|
|
1327
1327
|
for (let me of v)
|
|
1328
1328
|
me.setAttr("aria-orientation", he);
|
|
1329
1329
|
}, oi = (u) => {
|
|
1330
|
-
Ee = u, v.length > 1 && nn(v, Ee, c),
|
|
1330
|
+
Ee = u, v.length > 1 && nn(v, Ee, c), Ue(), gt();
|
|
1331
1331
|
}, li = (u) => {
|
|
1332
|
-
Y = u, v.length > 1 && nn(v, Y, c),
|
|
1332
|
+
Y = u, v.length > 1 && nn(v, Y, c), Ue(), gt();
|
|
1333
1333
|
}, ai = (u) => {
|
|
1334
1334
|
Te = ie(u, At), Te < 0 && (Te = At), gt();
|
|
1335
1335
|
}, wn = (u) => {
|
|
@@ -1360,10 +1360,10 @@ const ys = Symbol.for(""), wl = (t) => {
|
|
|
1360
1360
|
let _ = v.length, N = v[_ - 1].$pointer, he = N.cloneNode(!0);
|
|
1361
1361
|
N.after(he);
|
|
1362
1362
|
let me = Nr(c, he, _);
|
|
1363
|
-
return me.setCallbacks(cn, hn, un, dn), v.push(me), gr(u, _),
|
|
1363
|
+
return me.setCallbacks(cn, hn, un, dn), v.push(me), gr(u, _), Ue(), gt(), _;
|
|
1364
1364
|
}, el = () => {
|
|
1365
1365
|
let u = v.length, _ = v[u - 1];
|
|
1366
|
-
return _ ? (_.destroy(), v.pop(), v.length <= 1 && yr(!1),
|
|
1366
|
+
return _ ? (_.destroy(), v.pop(), v.length <= 1 && yr(!1), Ue(), gt(), u - 1) : -1;
|
|
1367
1367
|
};
|
|
1368
1368
|
return (() => {
|
|
1369
1369
|
var u, _;
|
|
@@ -1850,8 +1850,8 @@ var vs = { exports: {} };
|
|
|
1850
1850
|
case p:
|
|
1851
1851
|
return V ? se(1, ve) : se(0, ve + 1);
|
|
1852
1852
|
case f:
|
|
1853
|
-
var Me = this.$locale().weekStart || 0,
|
|
1854
|
-
return se(V ? Ae -
|
|
1853
|
+
var Me = this.$locale().weekStart || 0, Ze = (ye < Me ? ye + 7 : ye) - Me;
|
|
1854
|
+
return se(V ? Ae - Ze : Ae + (6 - Ze), ve);
|
|
1855
1855
|
case h:
|
|
1856
1856
|
case $:
|
|
1857
1857
|
return re(xe + "Hours", 0);
|
|
@@ -1903,7 +1903,7 @@ var vs = { exports: {} };
|
|
|
1903
1903
|
return C.invalidDate || L;
|
|
1904
1904
|
var V = M || "YYYY-MM-DDTHH:mm:ssZ", U = I.z(this), se = this.$H, re = this.$m, ye = this.$M, ve = C.weekdays, Ae = C.months, xe = C.meridiem, Me = function(ie, Ne, ft, fe) {
|
|
1905
1905
|
return ie && (ie[Ne] || ie(j, V)) || ft[Ne].slice(0, fe);
|
|
1906
|
-
},
|
|
1906
|
+
}, Ze = function(ie) {
|
|
1907
1907
|
return I.s(se % 12 || 12, ie, "0");
|
|
1908
1908
|
}, $e = xe || function(ie, Ne, ft) {
|
|
1909
1909
|
var fe = ie < 12 ? "AM" : "PM";
|
|
@@ -1941,9 +1941,9 @@ var vs = { exports: {} };
|
|
|
1941
1941
|
case "HH":
|
|
1942
1942
|
return I.s(se, 2, "0");
|
|
1943
1943
|
case "h":
|
|
1944
|
-
return
|
|
1944
|
+
return Ze(1);
|
|
1945
1945
|
case "hh":
|
|
1946
|
-
return
|
|
1946
|
+
return Ze(2);
|
|
1947
1947
|
case "a":
|
|
1948
1948
|
return $e(se, re, !0);
|
|
1949
1949
|
case "A":
|
|
@@ -2784,17 +2784,17 @@ function ke(t) {
|
|
|
2784
2784
|
var e;
|
|
2785
2785
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
2786
2786
|
}
|
|
2787
|
-
function
|
|
2787
|
+
function it(t) {
|
|
2788
2788
|
var e;
|
|
2789
2789
|
return (e = ($s(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
2790
2790
|
}
|
|
2791
2791
|
function $s(t) {
|
|
2792
2792
|
return t instanceof Node || t instanceof ke(t).Node;
|
|
2793
2793
|
}
|
|
2794
|
-
function
|
|
2794
|
+
function et(t) {
|
|
2795
2795
|
return t instanceof Element || t instanceof ke(t).Element;
|
|
2796
2796
|
}
|
|
2797
|
-
function
|
|
2797
|
+
function Xe(t) {
|
|
2798
2798
|
return t instanceof HTMLElement || t instanceof ke(t).HTMLElement;
|
|
2799
2799
|
}
|
|
2800
2800
|
function Nn(t) {
|
|
@@ -2818,7 +2818,7 @@ function Fi(t) {
|
|
|
2818
2818
|
}
|
|
2819
2819
|
function Dl(t) {
|
|
2820
2820
|
let e = It(t);
|
|
2821
|
-
for (;
|
|
2821
|
+
for (; Xe(e) && !kr(e); ) {
|
|
2822
2822
|
if (Fi(e))
|
|
2823
2823
|
return e;
|
|
2824
2824
|
e = It(e);
|
|
@@ -2835,7 +2835,7 @@ function De(t) {
|
|
|
2835
2835
|
return ke(t).getComputedStyle(t);
|
|
2836
2836
|
}
|
|
2837
2837
|
function Rr(t) {
|
|
2838
|
-
return
|
|
2838
|
+
return et(t) ? {
|
|
2839
2839
|
scrollLeft: t.scrollLeft,
|
|
2840
2840
|
scrollTop: t.scrollTop
|
|
2841
2841
|
} : {
|
|
@@ -2851,13 +2851,13 @@ function It(t) {
|
|
|
2851
2851
|
t.assignedSlot || // DOM Element detected.
|
|
2852
2852
|
t.parentNode || // ShadowRoot detected.
|
|
2853
2853
|
Nn(t) && t.host || // Fallback.
|
|
2854
|
-
|
|
2854
|
+
it(t)
|
|
2855
2855
|
);
|
|
2856
2856
|
return Nn(e) ? e.host : e;
|
|
2857
2857
|
}
|
|
2858
2858
|
function _s(t) {
|
|
2859
2859
|
const e = It(t);
|
|
2860
|
-
return kr(e) ? t.ownerDocument ? t.ownerDocument.body : t.body :
|
|
2860
|
+
return kr(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Xe(e) && sr(e) ? e : _s(e);
|
|
2861
2861
|
}
|
|
2862
2862
|
function Qt(t, e, r) {
|
|
2863
2863
|
var i;
|
|
@@ -2868,7 +2868,7 @@ function Qt(t, e, r) {
|
|
|
2868
2868
|
function Es(t) {
|
|
2869
2869
|
const e = De(t);
|
|
2870
2870
|
let r = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
|
|
2871
|
-
const n =
|
|
2871
|
+
const n = Xe(t), s = n ? t.offsetWidth : r, o = n ? t.offsetHeight : i, a = Ar(r) !== s || Ar(i) !== o;
|
|
2872
2872
|
return a && (r = s, i = o), {
|
|
2873
2873
|
width: r,
|
|
2874
2874
|
height: i,
|
|
@@ -2876,11 +2876,11 @@ function Es(t) {
|
|
|
2876
2876
|
};
|
|
2877
2877
|
}
|
|
2878
2878
|
function qi(t) {
|
|
2879
|
-
return
|
|
2879
|
+
return et(t) ? t : t.contextElement;
|
|
2880
2880
|
}
|
|
2881
2881
|
function Tt(t) {
|
|
2882
2882
|
const e = qi(t);
|
|
2883
|
-
if (!
|
|
2883
|
+
if (!Xe(e))
|
|
2884
2884
|
return at(1);
|
|
2885
2885
|
const r = e.getBoundingClientRect(), {
|
|
2886
2886
|
width: i,
|
|
@@ -2908,11 +2908,11 @@ function $t(t, e, r, i) {
|
|
|
2908
2908
|
e === void 0 && (e = !1), r === void 0 && (r = !1);
|
|
2909
2909
|
const n = t.getBoundingClientRect(), s = qi(t);
|
|
2910
2910
|
let o = at(1);
|
|
2911
|
-
e && (i ?
|
|
2911
|
+
e && (i ? et(i) && (o = Tt(i)) : o = Tt(t));
|
|
2912
2912
|
const a = Nl(s, r, i) ? Ss(s) : at(0);
|
|
2913
2913
|
let l = (n.left + a.x) / o.x, h = (n.top + a.y) / o.y, f = n.width / o.x, p = n.height / o.y;
|
|
2914
2914
|
if (s) {
|
|
2915
|
-
const b = ke(s), y = i &&
|
|
2915
|
+
const b = ke(s), y = i && et(i) ? ke(i) : i;
|
|
2916
2916
|
let $ = b.frameElement;
|
|
2917
2917
|
for (; $ && i && y !== b; ) {
|
|
2918
2918
|
const L = Tt($), G = $.getBoundingClientRect(), B = De($), g = G.left + ($.clientLeft + parseFloat(B.paddingLeft)) * L.x, m = G.top + ($.clientTop + parseFloat(B.paddingTop)) * L.y;
|
|
@@ -2932,7 +2932,7 @@ function Bl(t) {
|
|
|
2932
2932
|
offsetParent: r,
|
|
2933
2933
|
strategy: i
|
|
2934
2934
|
} = t;
|
|
2935
|
-
const n =
|
|
2935
|
+
const n = Xe(r), s = it(r);
|
|
2936
2936
|
if (r === s)
|
|
2937
2937
|
return e;
|
|
2938
2938
|
let o = {
|
|
@@ -2940,7 +2940,7 @@ function Bl(t) {
|
|
|
2940
2940
|
scrollTop: 0
|
|
2941
2941
|
}, a = at(1);
|
|
2942
2942
|
const l = at(0);
|
|
2943
|
-
if ((n || !n && i !== "fixed") && ((ct(r) !== "body" || sr(s)) && (o = Rr(r)),
|
|
2943
|
+
if ((n || !n && i !== "fixed") && ((ct(r) !== "body" || sr(s)) && (o = Rr(r)), Xe(r))) {
|
|
2944
2944
|
const h = $t(r);
|
|
2945
2945
|
a = Tt(r), l.x = h.x + r.clientLeft, l.y = h.y + r.clientTop;
|
|
2946
2946
|
}
|
|
@@ -2955,10 +2955,10 @@ function Fl(t) {
|
|
|
2955
2955
|
return Array.from(t.getClientRects());
|
|
2956
2956
|
}
|
|
2957
2957
|
function As(t) {
|
|
2958
|
-
return $t(
|
|
2958
|
+
return $t(it(t)).left + Rr(t).scrollLeft;
|
|
2959
2959
|
}
|
|
2960
2960
|
function Hl(t) {
|
|
2961
|
-
const e =
|
|
2961
|
+
const e = it(t), r = Rr(t), i = t.ownerDocument.body, n = Rt(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), s = Rt(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
|
|
2962
2962
|
let o = -r.scrollLeft + As(t);
|
|
2963
2963
|
const a = -r.scrollTop;
|
|
2964
2964
|
return De(i).direction === "rtl" && (o += Rt(e.clientWidth, i.clientWidth) - n), {
|
|
@@ -2969,7 +2969,7 @@ function Hl(t) {
|
|
|
2969
2969
|
};
|
|
2970
2970
|
}
|
|
2971
2971
|
function ql(t, e) {
|
|
2972
|
-
const r = ke(t), i =
|
|
2972
|
+
const r = ke(t), i = it(t), n = r.visualViewport;
|
|
2973
2973
|
let s = i.clientWidth, o = i.clientHeight, a = 0, l = 0;
|
|
2974
2974
|
if (n) {
|
|
2975
2975
|
s = n.width, o = n.height;
|
|
@@ -2984,7 +2984,7 @@ function ql(t, e) {
|
|
|
2984
2984
|
};
|
|
2985
2985
|
}
|
|
2986
2986
|
function Ul(t, e) {
|
|
2987
|
-
const r = $t(t, !0, e === "fixed"), i = r.top + t.clientTop, n = r.left + t.clientLeft, s =
|
|
2987
|
+
const r = $t(t, !0, e === "fixed"), i = r.top + t.clientTop, n = r.left + t.clientLeft, s = Xe(t) ? Tt(t) : at(1), o = t.clientWidth * s.x, a = t.clientHeight * s.y, l = n * s.x, h = i * s.y;
|
|
2988
2988
|
return {
|
|
2989
2989
|
width: o,
|
|
2990
2990
|
height: a,
|
|
@@ -2997,8 +2997,8 @@ function Bn(t, e, r) {
|
|
|
2997
2997
|
if (e === "viewport")
|
|
2998
2998
|
i = ql(t, r);
|
|
2999
2999
|
else if (e === "document")
|
|
3000
|
-
i = Hl(
|
|
3001
|
-
else if (
|
|
3000
|
+
i = Hl(it(t));
|
|
3001
|
+
else if (et(e))
|
|
3002
3002
|
i = Ul(e, r);
|
|
3003
3003
|
else {
|
|
3004
3004
|
const n = Ss(t);
|
|
@@ -3012,16 +3012,16 @@ function Bn(t, e, r) {
|
|
|
3012
3012
|
}
|
|
3013
3013
|
function Ms(t, e) {
|
|
3014
3014
|
const r = It(t);
|
|
3015
|
-
return r === e || !
|
|
3015
|
+
return r === e || !et(r) || kr(r) ? !1 : De(r).position === "fixed" || Ms(r, e);
|
|
3016
3016
|
}
|
|
3017
3017
|
function zl(t, e) {
|
|
3018
3018
|
const r = e.get(t);
|
|
3019
3019
|
if (r)
|
|
3020
3020
|
return r;
|
|
3021
|
-
let i = Qt(t, [], !1).filter((a) =>
|
|
3021
|
+
let i = Qt(t, [], !1).filter((a) => et(a) && ct(a) !== "body"), n = null;
|
|
3022
3022
|
const s = De(t).position === "fixed";
|
|
3023
3023
|
let o = s ? It(t) : t;
|
|
3024
|
-
for (;
|
|
3024
|
+
for (; et(o) && !kr(o); ) {
|
|
3025
3025
|
const a = De(o), l = Fi(o);
|
|
3026
3026
|
!l && a.position === "fixed" && (n = null), (s ? !l && !n : !l && a.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || sr(o) && !l && Ms(t, o)) ? i = i.filter((f) => f !== o) : n = a, o = It(o);
|
|
3027
3027
|
}
|
|
@@ -3049,7 +3049,7 @@ function Wl(t) {
|
|
|
3049
3049
|
return Es(t);
|
|
3050
3050
|
}
|
|
3051
3051
|
function Xl(t, e, r) {
|
|
3052
|
-
const i =
|
|
3052
|
+
const i = Xe(e), n = it(e), s = r === "fixed", o = $t(t, !0, s, e);
|
|
3053
3053
|
let a = {
|
|
3054
3054
|
scrollLeft: 0,
|
|
3055
3055
|
scrollTop: 0
|
|
@@ -3069,11 +3069,11 @@ function Xl(t, e, r) {
|
|
|
3069
3069
|
};
|
|
3070
3070
|
}
|
|
3071
3071
|
function Fn(t, e) {
|
|
3072
|
-
return !
|
|
3072
|
+
return !Xe(t) || De(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
|
|
3073
3073
|
}
|
|
3074
3074
|
function Os(t, e) {
|
|
3075
3075
|
const r = ke(t);
|
|
3076
|
-
if (!
|
|
3076
|
+
if (!Xe(t))
|
|
3077
3077
|
return r;
|
|
3078
3078
|
let i = Fn(t, e);
|
|
3079
3079
|
for (; i && Il(i) && De(i).position === "static"; )
|
|
@@ -3101,19 +3101,19 @@ function Kl(t) {
|
|
|
3101
3101
|
}
|
|
3102
3102
|
const Gl = {
|
|
3103
3103
|
convertOffsetParentRelativeRectToViewportRelativeRect: Bl,
|
|
3104
|
-
getDocumentElement:
|
|
3104
|
+
getDocumentElement: it,
|
|
3105
3105
|
getClippingRect: Yl,
|
|
3106
3106
|
getOffsetParent: Os,
|
|
3107
3107
|
getElementRects: Vl,
|
|
3108
3108
|
getClientRects: Fl,
|
|
3109
3109
|
getDimensions: Wl,
|
|
3110
3110
|
getScale: Tt,
|
|
3111
|
-
isElement:
|
|
3111
|
+
isElement: et,
|
|
3112
3112
|
isRTL: Kl
|
|
3113
3113
|
};
|
|
3114
3114
|
function Jl(t, e) {
|
|
3115
3115
|
let r = null, i;
|
|
3116
|
-
const n =
|
|
3116
|
+
const n = it(t);
|
|
3117
3117
|
function s() {
|
|
3118
3118
|
clearTimeout(i), r && r.disconnect(), r = null;
|
|
3119
3119
|
}
|
|
@@ -3616,14 +3616,14 @@ Ge([
|
|
|
3616
3616
|
He = Ge([
|
|
3617
3617
|
Re("eox-autocomplete")
|
|
3618
3618
|
], He);
|
|
3619
|
-
var oa = Object.defineProperty, la = Object.getOwnPropertyDescriptor,
|
|
3619
|
+
var oa = Object.defineProperty, la = Object.getOwnPropertyDescriptor, Je = (t, e, r, i) => {
|
|
3620
3620
|
for (var n = i > 1 ? void 0 : i ? la(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
3621
3621
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
3622
3622
|
return i && n && oa(e, r, n), n;
|
|
3623
3623
|
};
|
|
3624
|
-
let
|
|
3624
|
+
let qe = class extends _e {
|
|
3625
3625
|
constructor() {
|
|
3626
|
-
super(...arguments), this.filter = "", this.idProperty = "id", this.items = [], this.titleProperty = "title", this.multiple = !1, this.selectedItems = [], this.unstyled = !1, this._currentHighlight = null, this._keyboardEventListener = (t) => {
|
|
3626
|
+
super(...arguments), this.filter = "", this.idProperty = "id", this.items = [], this.titleProperty = "title", this.multiple = !1, this.selectedItems = [], this.unstyled = !1, this.noShadow = !1, this._currentHighlight = null, this._keyboardEventListener = (t) => {
|
|
3627
3627
|
["ArrowDown", "ArrowUp", "Enter", "Escape"].includes(t.code) && this._handleKeyboard(t.code);
|
|
3628
3628
|
};
|
|
3629
3629
|
}
|
|
@@ -3691,6 +3691,9 @@ let Xe = class extends _e {
|
|
|
3691
3691
|
));
|
|
3692
3692
|
}) : this._currentHighlight = null);
|
|
3693
3693
|
}
|
|
3694
|
+
createRenderRoot() {
|
|
3695
|
+
return this.noShadow ? this : super.createRenderRoot();
|
|
3696
|
+
}
|
|
3694
3697
|
render() {
|
|
3695
3698
|
return X`
|
|
3696
3699
|
<style>
|
|
@@ -3743,33 +3746,36 @@ let Xe = class extends _e {
|
|
|
3743
3746
|
`;
|
|
3744
3747
|
}
|
|
3745
3748
|
};
|
|
3746
|
-
|
|
3749
|
+
Je([
|
|
3747
3750
|
J()
|
|
3748
|
-
],
|
|
3749
|
-
|
|
3751
|
+
], qe.prototype, "filter", 2);
|
|
3752
|
+
Je([
|
|
3750
3753
|
J()
|
|
3751
|
-
],
|
|
3752
|
-
|
|
3754
|
+
], qe.prototype, "idProperty", 2);
|
|
3755
|
+
Je([
|
|
3753
3756
|
J()
|
|
3754
|
-
],
|
|
3755
|
-
|
|
3757
|
+
], qe.prototype, "items", 2);
|
|
3758
|
+
Je([
|
|
3756
3759
|
J()
|
|
3757
|
-
],
|
|
3758
|
-
|
|
3760
|
+
], qe.prototype, "titleProperty", 2);
|
|
3761
|
+
Je([
|
|
3759
3762
|
J({ type: Boolean })
|
|
3760
|
-
],
|
|
3761
|
-
|
|
3763
|
+
], qe.prototype, "multiple", 2);
|
|
3764
|
+
Je([
|
|
3762
3765
|
J()
|
|
3763
|
-
],
|
|
3764
|
-
|
|
3766
|
+
], qe.prototype, "selectedItems", 2);
|
|
3767
|
+
Je([
|
|
3765
3768
|
J({ type: Boolean })
|
|
3766
|
-
],
|
|
3767
|
-
|
|
3769
|
+
], qe.prototype, "unstyled", 2);
|
|
3770
|
+
Je([
|
|
3771
|
+
J({ type: Boolean })
|
|
3772
|
+
], qe.prototype, "noShadow", 2);
|
|
3773
|
+
Je([
|
|
3768
3774
|
Ke()
|
|
3769
|
-
],
|
|
3770
|
-
|
|
3775
|
+
], qe.prototype, "_currentHighlight", 2);
|
|
3776
|
+
qe = Je([
|
|
3771
3777
|
Re("eox-selectionlist")
|
|
3772
|
-
],
|
|
3778
|
+
], qe);
|
|
3773
3779
|
var aa = Object.defineProperty, ca = Object.getOwnPropertyDescriptor, Dr = (t, e, r, i) => {
|
|
3774
3780
|
for (var n = i > 1 ? void 0 : i ? ca(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
3775
3781
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
@@ -3825,6 +3831,7 @@ let rr = class extends _e {
|
|
|
3825
3831
|
`,
|
|
3826
3832
|
() => X`
|
|
3827
3833
|
<eox-selectionlist
|
|
3834
|
+
.noShadow=${!this.inline}
|
|
3828
3835
|
multiple
|
|
3829
3836
|
.items=${this._getItems()}
|
|
3830
3837
|
.selectedItems=${this._getSelectedItems()}
|
|
@@ -4031,6 +4038,7 @@ let ir = class extends _e {
|
|
|
4031
4038
|
`,
|
|
4032
4039
|
() => X`
|
|
4033
4040
|
<eox-selectionlist
|
|
4041
|
+
.noShadow=${!this.inline}
|
|
4034
4042
|
.items=${this._getItems()}
|
|
4035
4043
|
.selectedItems=${this._getSelectedItems()}
|
|
4036
4044
|
.unstyled=${this.unstyled}
|
|
@@ -4110,7 +4118,7 @@ function je(t, e, r) {
|
|
|
4110
4118
|
function Ra(t, e, r) {
|
|
4111
4119
|
switch (t) {
|
|
4112
4120
|
case "Point":
|
|
4113
|
-
return
|
|
4121
|
+
return Ye(e).geometry;
|
|
4114
4122
|
case "LineString":
|
|
4115
4123
|
return Fe(e).geometry;
|
|
4116
4124
|
case "Polygon":
|
|
@@ -4125,7 +4133,7 @@ function Ra(t, e, r) {
|
|
|
4125
4133
|
throw new Error(t + " is invalid");
|
|
4126
4134
|
}
|
|
4127
4135
|
}
|
|
4128
|
-
function
|
|
4136
|
+
function Ye(t, e, r) {
|
|
4129
4137
|
if (r === void 0 && (r = {}), !t)
|
|
4130
4138
|
throw new Error("coordinates is required");
|
|
4131
4139
|
if (!Array.isArray(t))
|
|
@@ -4142,7 +4150,7 @@ function ze(t, e, r) {
|
|
|
4142
4150
|
}
|
|
4143
4151
|
function Ta(t, e, r) {
|
|
4144
4152
|
return r === void 0 && (r = {}), ht(t.map(function(i) {
|
|
4145
|
-
return
|
|
4153
|
+
return Ye(i, e);
|
|
4146
4154
|
}), r);
|
|
4147
4155
|
}
|
|
4148
4156
|
function zi(t, e, r) {
|
|
@@ -4314,7 +4322,7 @@ const Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4314
4322
|
multiLineString: Yi,
|
|
4315
4323
|
multiPoint: Cs,
|
|
4316
4324
|
multiPolygon: ks,
|
|
4317
|
-
point:
|
|
4325
|
+
point: Ye,
|
|
4318
4326
|
points: Ta,
|
|
4319
4327
|
polygon: zi,
|
|
4320
4328
|
polygons: Ia,
|
|
@@ -4591,7 +4599,7 @@ function Za(t, e, r) {
|
|
|
4591
4599
|
}
|
|
4592
4600
|
), i;
|
|
4593
4601
|
}
|
|
4594
|
-
function
|
|
4602
|
+
function tt(t, e) {
|
|
4595
4603
|
Vi(t, function(r, i, n, s, o) {
|
|
4596
4604
|
var a = r === null ? null : r.type;
|
|
4597
4605
|
switch (a) {
|
|
@@ -4629,7 +4637,7 @@ function et(t, e) {
|
|
|
4629
4637
|
}
|
|
4630
4638
|
function Qa(t, e, r) {
|
|
4631
4639
|
var i = r;
|
|
4632
|
-
return
|
|
4640
|
+
return tt(
|
|
4633
4641
|
t,
|
|
4634
4642
|
function(n, s, o) {
|
|
4635
4643
|
s === 0 && o === 0 && r === void 0 ? i = n : i = e(
|
|
@@ -4642,7 +4650,7 @@ function Qa(t, e, r) {
|
|
|
4642
4650
|
), i;
|
|
4643
4651
|
}
|
|
4644
4652
|
function js(t, e) {
|
|
4645
|
-
|
|
4653
|
+
tt(t, function(r, i, n) {
|
|
4646
4654
|
var s = 0;
|
|
4647
4655
|
if (r.geometry) {
|
|
4648
4656
|
var o = r.geometry.type;
|
|
@@ -4694,7 +4702,7 @@ function ec(t, e, r) {
|
|
|
4694
4702
|
function Ns(t, e) {
|
|
4695
4703
|
if (!t)
|
|
4696
4704
|
throw new Error("geojson is required");
|
|
4697
|
-
|
|
4705
|
+
tt(t, function(r, i, n) {
|
|
4698
4706
|
if (r.geometry !== null) {
|
|
4699
4707
|
var s = r.geometry.type, o = r.geometry.coordinates;
|
|
4700
4708
|
switch (s) {
|
|
@@ -4825,17 +4833,17 @@ function ic(t, e) {
|
|
|
4825
4833
|
var l = a.coordinates;
|
|
4826
4834
|
switch (a.type) {
|
|
4827
4835
|
case "Point":
|
|
4828
|
-
return
|
|
4836
|
+
return Ye(l, o, e);
|
|
4829
4837
|
case "MultiPoint":
|
|
4830
|
-
return i < 0 && (i = l.length + i),
|
|
4838
|
+
return i < 0 && (i = l.length + i), Ye(l[i], o, e);
|
|
4831
4839
|
case "LineString":
|
|
4832
|
-
return s < 0 && (s = l.length + s),
|
|
4840
|
+
return s < 0 && (s = l.length + s), Ye(l[s], o, e);
|
|
4833
4841
|
case "Polygon":
|
|
4834
|
-
return n < 0 && (n = l.length + n), s < 0 && (s = l[n].length + s),
|
|
4842
|
+
return n < 0 && (n = l.length + n), s < 0 && (s = l[n].length + s), Ye(l[n][s], o, e);
|
|
4835
4843
|
case "MultiLineString":
|
|
4836
|
-
return i < 0 && (i = l.length + i), s < 0 && (s = l[i].length + s),
|
|
4844
|
+
return i < 0 && (i = l.length + i), s < 0 && (s = l[i].length + s), Ye(l[i][s], o, e);
|
|
4837
4845
|
case "MultiPolygon":
|
|
4838
|
-
return i < 0 && (i = l.length + i), n < 0 && (n = l[i].length + n), s < 0 && (s = l[i][n].length - s),
|
|
4846
|
+
return i < 0 && (i = l.length + i), n < 0 && (n = l[i].length + n), s < 0 && (s = l[i][n].length - s), Ye(
|
|
4839
4847
|
l[i][n][s],
|
|
4840
4848
|
o,
|
|
4841
4849
|
e
|
|
@@ -4852,7 +4860,7 @@ const nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4852
4860
|
featureReduce: Ga,
|
|
4853
4861
|
findPoint: ic,
|
|
4854
4862
|
findSegment: rc,
|
|
4855
|
-
flattenEach:
|
|
4863
|
+
flattenEach: tt,
|
|
4856
4864
|
flattenReduce: Qa,
|
|
4857
4865
|
geomEach: Vi,
|
|
4858
4866
|
geomReduce: Za,
|
|
@@ -4867,7 +4875,7 @@ function zn(t) {
|
|
|
4867
4875
|
if (!t)
|
|
4868
4876
|
throw new Error("geojson is required");
|
|
4869
4877
|
var e = [];
|
|
4870
|
-
return
|
|
4878
|
+
return tt(t, function(r) {
|
|
4871
4879
|
sc(r, e);
|
|
4872
4880
|
}), ht(e);
|
|
4873
4881
|
}
|
|
@@ -5145,16 +5153,16 @@ const uc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5145
5153
|
__proto__: null,
|
|
5146
5154
|
default: _t
|
|
5147
5155
|
}, Symbol.toStringTag, { value: "Module" })), dc = /* @__PURE__ */ Ii(uc);
|
|
5148
|
-
var
|
|
5156
|
+
var ze = ac, Fs = cc, Hs = hc, Ot = dc.default, fc = Hs.featureEach;
|
|
5149
5157
|
Hs.coordEach;
|
|
5150
5158
|
Fs.polygon;
|
|
5151
5159
|
var Yn = Fs.featureCollection;
|
|
5152
5160
|
function qs(t) {
|
|
5153
|
-
var e = new
|
|
5161
|
+
var e = new ze(t);
|
|
5154
5162
|
return e.insert = function(r) {
|
|
5155
5163
|
if (r.type !== "Feature")
|
|
5156
5164
|
throw new Error("invalid feature");
|
|
5157
|
-
return r.bbox = r.bbox ? r.bbox : Ot(r),
|
|
5165
|
+
return r.bbox = r.bbox ? r.bbox : Ot(r), ze.prototype.insert.call(this, r);
|
|
5158
5166
|
}, e.load = function(r) {
|
|
5159
5167
|
var i = [];
|
|
5160
5168
|
return Array.isArray(r) ? r.forEach(function(n) {
|
|
@@ -5165,25 +5173,25 @@ function qs(t) {
|
|
|
5165
5173
|
if (n.type !== "Feature")
|
|
5166
5174
|
throw new Error("invalid features");
|
|
5167
5175
|
n.bbox = n.bbox ? n.bbox : Ot(n), i.push(n);
|
|
5168
|
-
}),
|
|
5176
|
+
}), ze.prototype.load.call(this, i);
|
|
5169
5177
|
}, e.remove = function(r, i) {
|
|
5170
5178
|
if (r.type !== "Feature")
|
|
5171
5179
|
throw new Error("invalid feature");
|
|
5172
|
-
return r.bbox = r.bbox ? r.bbox : Ot(r),
|
|
5180
|
+
return r.bbox = r.bbox ? r.bbox : Ot(r), ze.prototype.remove.call(this, r, i);
|
|
5173
5181
|
}, e.clear = function() {
|
|
5174
|
-
return
|
|
5182
|
+
return ze.prototype.clear.call(this);
|
|
5175
5183
|
}, e.search = function(r) {
|
|
5176
|
-
var i =
|
|
5184
|
+
var i = ze.prototype.search.call(this, this.toBBox(r));
|
|
5177
5185
|
return Yn(i);
|
|
5178
5186
|
}, e.collides = function(r) {
|
|
5179
|
-
return
|
|
5187
|
+
return ze.prototype.collides.call(this, this.toBBox(r));
|
|
5180
5188
|
}, e.all = function() {
|
|
5181
|
-
var r =
|
|
5189
|
+
var r = ze.prototype.all.call(this);
|
|
5182
5190
|
return Yn(r);
|
|
5183
5191
|
}, e.toJSON = function() {
|
|
5184
|
-
return
|
|
5192
|
+
return ze.prototype.toJSON.call(this);
|
|
5185
5193
|
}, e.fromJSON = function(r) {
|
|
5186
|
-
return
|
|
5194
|
+
return ze.prototype.fromJSON.call(this, r);
|
|
5187
5195
|
}, e.toBBox = function(r) {
|
|
5188
5196
|
var i;
|
|
5189
5197
|
if (r.bbox)
|
|
@@ -5239,7 +5247,7 @@ function Wn(t, e) {
|
|
|
5239
5247
|
var L = y / b, G = $ / b;
|
|
5240
5248
|
if (L >= 0 && L <= 1 && G >= 0 && G <= 1) {
|
|
5241
5249
|
var B = n + L * (o - n), g = s + L * (a - s);
|
|
5242
|
-
return
|
|
5250
|
+
return Ye([B, g]);
|
|
5243
5251
|
}
|
|
5244
5252
|
return null;
|
|
5245
5253
|
}
|
|
@@ -5272,8 +5280,8 @@ function Us(t, e) {
|
|
|
5272
5280
|
}
|
|
5273
5281
|
function vc(t, e) {
|
|
5274
5282
|
var r = !0;
|
|
5275
|
-
return
|
|
5276
|
-
|
|
5283
|
+
return tt(t, function(i) {
|
|
5284
|
+
tt(e, function(n) {
|
|
5277
5285
|
if (r === !1)
|
|
5278
5286
|
return !1;
|
|
5279
5287
|
r = bc(i.geometry, n.geometry);
|
|
@@ -5356,8 +5364,8 @@ function _c(t, e) {
|
|
|
5356
5364
|
}
|
|
5357
5365
|
function Ec(t, e) {
|
|
5358
5366
|
var r = !1;
|
|
5359
|
-
return
|
|
5360
|
-
|
|
5367
|
+
return tt(t, function(i) {
|
|
5368
|
+
tt(e, function(n) {
|
|
5361
5369
|
if (r === !0)
|
|
5362
5370
|
return !0;
|
|
5363
5371
|
r = !vc(i.geometry, n.geometry);
|
|
@@ -5947,7 +5955,7 @@ Et([
|
|
|
5947
5955
|
ut = Et([
|
|
5948
5956
|
Re("eox-itemfilter-inline")
|
|
5949
5957
|
], ut);
|
|
5950
|
-
function
|
|
5958
|
+
function rt(t) {
|
|
5951
5959
|
return Array.isArray ? Array.isArray(t) : Ks(t) === "[object Array]";
|
|
5952
5960
|
}
|
|
5953
5961
|
const Uc = 1 / 0;
|
|
@@ -5960,7 +5968,7 @@ function zc(t) {
|
|
|
5960
5968
|
function Yc(t) {
|
|
5961
5969
|
return t == null ? "" : zc(t);
|
|
5962
5970
|
}
|
|
5963
|
-
function
|
|
5971
|
+
function We(t) {
|
|
5964
5972
|
return typeof t == "string";
|
|
5965
5973
|
}
|
|
5966
5974
|
function Xs(t) {
|
|
@@ -6008,7 +6016,7 @@ class Qc {
|
|
|
6008
6016
|
}
|
|
6009
6017
|
function Gs(t) {
|
|
6010
6018
|
let e = null, r = null, i = null, n = 1, s = null;
|
|
6011
|
-
if (
|
|
6019
|
+
if (We(t) || rt(t))
|
|
6012
6020
|
i = t, e = Gn(t), r = Ei(t);
|
|
6013
6021
|
else {
|
|
6014
6022
|
if (!Kn.call(t, "name"))
|
|
@@ -6021,10 +6029,10 @@ function Gs(t) {
|
|
|
6021
6029
|
return { path: e, id: r, weight: n, src: i, getFn: s };
|
|
6022
6030
|
}
|
|
6023
6031
|
function Gn(t) {
|
|
6024
|
-
return
|
|
6032
|
+
return rt(t) ? t : t.split(".");
|
|
6025
6033
|
}
|
|
6026
6034
|
function Ei(t) {
|
|
6027
|
-
return
|
|
6035
|
+
return rt(t) ? t.join(".") : t;
|
|
6028
6036
|
}
|
|
6029
6037
|
function eh(t, e) {
|
|
6030
6038
|
let r = [], i = !1;
|
|
@@ -6037,9 +6045,9 @@ function eh(t, e) {
|
|
|
6037
6045
|
const h = s[l];
|
|
6038
6046
|
if (!Ce(h))
|
|
6039
6047
|
return;
|
|
6040
|
-
if (a === o.length - 1 && (
|
|
6048
|
+
if (a === o.length - 1 && (We(h) || Xs(h) || Wc(h)))
|
|
6041
6049
|
r.push(Yc(h));
|
|
6042
|
-
else if (
|
|
6050
|
+
else if (rt(h)) {
|
|
6043
6051
|
i = !0;
|
|
6044
6052
|
for (let f = 0, p = h.length; f < p; f += 1)
|
|
6045
6053
|
n(h[f], o, a + 1);
|
|
@@ -6047,7 +6055,7 @@ function eh(t, e) {
|
|
|
6047
6055
|
o.length && n(h, o, a + 1);
|
|
6048
6056
|
}
|
|
6049
6057
|
};
|
|
6050
|
-
return n(t,
|
|
6058
|
+
return n(t, We(e) ? e.split(".") : e, 0), i ? r : r[0];
|
|
6051
6059
|
}
|
|
6052
6060
|
const th = {
|
|
6053
6061
|
// Whether the matches should be included in the result set. When `true`, each record in the result
|
|
@@ -6141,7 +6149,7 @@ class Ji {
|
|
|
6141
6149
|
});
|
|
6142
6150
|
}
|
|
6143
6151
|
create() {
|
|
6144
|
-
this.isCreated || !this.docs.length || (this.isCreated = !0,
|
|
6152
|
+
this.isCreated || !this.docs.length || (this.isCreated = !0, We(this.docs[0]) ? this.docs.forEach((e, r) => {
|
|
6145
6153
|
this._addString(e, r);
|
|
6146
6154
|
}) : this.docs.forEach((e, r) => {
|
|
6147
6155
|
this._addObject(e, r);
|
|
@@ -6150,7 +6158,7 @@ class Ji {
|
|
|
6150
6158
|
// Adds a doc to the end of the index
|
|
6151
6159
|
add(e) {
|
|
6152
6160
|
const r = this.size();
|
|
6153
|
-
|
|
6161
|
+
We(e) ? this._addString(e, r) : this._addObject(e, r);
|
|
6154
6162
|
}
|
|
6155
6163
|
// Removes the doc at the specified index of the index
|
|
6156
6164
|
removeAt(e) {
|
|
@@ -6179,13 +6187,13 @@ class Ji {
|
|
|
6179
6187
|
this.keys.forEach((n, s) => {
|
|
6180
6188
|
let o = n.getFn ? n.getFn(e) : this.getFn(e, n.path);
|
|
6181
6189
|
if (Ce(o)) {
|
|
6182
|
-
if (
|
|
6190
|
+
if (rt(o)) {
|
|
6183
6191
|
let a = [];
|
|
6184
6192
|
const l = [{ nestedArrIndex: -1, value: o }];
|
|
6185
6193
|
for (; l.length; ) {
|
|
6186
6194
|
const { nestedArrIndex: h, value: f } = l.pop();
|
|
6187
6195
|
if (Ce(f))
|
|
6188
|
-
if (
|
|
6196
|
+
if (We(f) && !gi(f)) {
|
|
6189
6197
|
let p = {
|
|
6190
6198
|
v: f,
|
|
6191
6199
|
i: h,
|
|
@@ -6193,7 +6201,7 @@ class Ji {
|
|
|
6193
6201
|
};
|
|
6194
6202
|
a.push(p);
|
|
6195
6203
|
} else
|
|
6196
|
-
|
|
6204
|
+
rt(f) && f.forEach((p, b) => {
|
|
6197
6205
|
l.push({
|
|
6198
6206
|
nestedArrIndex: b,
|
|
6199
6207
|
value: p
|
|
@@ -6201,7 +6209,7 @@ class Ji {
|
|
|
6201
6209
|
});
|
|
6202
6210
|
}
|
|
6203
6211
|
i.$[s] = a;
|
|
6204
|
-
} else if (
|
|
6212
|
+
} else if (We(o) && !gi(o)) {
|
|
6205
6213
|
let a = {
|
|
6206
6214
|
v: o,
|
|
6207
6215
|
n: this.norm.get(o)
|
|
@@ -6740,7 +6748,7 @@ const Cr = {
|
|
|
6740
6748
|
}, Oi = {
|
|
6741
6749
|
PATH: "$path",
|
|
6742
6750
|
PATTERN: "$val"
|
|
6743
|
-
}, Pi = (t) => !!(t[Cr.AND] || t[Cr.OR]), _h = (t) => !!t[Oi.PATH], Eh = (t) => !
|
|
6751
|
+
}, Pi = (t) => !!(t[Cr.AND] || t[Cr.OR]), _h = (t) => !!t[Oi.PATH], Eh = (t) => !rt(t) && Vs(t) && !Pi(t), Qn = (t) => ({
|
|
6744
6752
|
[Cr.AND]: Object.keys(t).map((e) => ({
|
|
6745
6753
|
[e]: t[e]
|
|
6746
6754
|
}))
|
|
@@ -6753,7 +6761,7 @@ function to(t, e, { auto: r = !0 } = {}) {
|
|
|
6753
6761
|
return i(Qn(n));
|
|
6754
6762
|
if (Eh(n)) {
|
|
6755
6763
|
const l = o ? n[Oi.PATH] : s[0], h = o ? n[Oi.PATTERN] : n[l];
|
|
6756
|
-
if (!
|
|
6764
|
+
if (!We(h))
|
|
6757
6765
|
throw new Error(Kc(l));
|
|
6758
6766
|
const f = {
|
|
6759
6767
|
keyId: Ei(l),
|
|
@@ -6767,7 +6775,7 @@ function to(t, e, { auto: r = !0 } = {}) {
|
|
|
6767
6775
|
};
|
|
6768
6776
|
return s.forEach((l) => {
|
|
6769
6777
|
const h = n[l];
|
|
6770
|
-
|
|
6778
|
+
rt(h) && h.forEach((f) => {
|
|
6771
6779
|
a.children.push(i(f));
|
|
6772
6780
|
});
|
|
6773
6781
|
}), a;
|
|
@@ -6854,7 +6862,7 @@ class Ht {
|
|
|
6854
6862
|
sortFn: o,
|
|
6855
6863
|
ignoreFieldNorm: a
|
|
6856
6864
|
} = this.options;
|
|
6857
|
-
let l =
|
|
6865
|
+
let l = We(e) ? We(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
|
|
6858
6866
|
return Sh(l, { ignoreFieldNorm: a }), s && l.sort(o), Xs(r) && r > -1 && (l = l.slice(0, r)), Oh(l, this._docs, {
|
|
6859
6867
|
includeMatches: i,
|
|
6860
6868
|
includeScore: n
|
|
@@ -6933,7 +6941,7 @@ class Ht {
|
|
|
6933
6941
|
if (!Ce(r))
|
|
6934
6942
|
return [];
|
|
6935
6943
|
let n = [];
|
|
6936
|
-
if (
|
|
6944
|
+
if (rt(r))
|
|
6937
6945
|
r.forEach(({ v: s, i: o, n: a }) => {
|
|
6938
6946
|
if (!Ce(s))
|
|
6939
6947
|
return;
|