@eox/itemfilter 1.4.0 → 1.5.0
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 +964 -957
- package/dist/eox-itemfilter.umd.cjs +43 -43
- package/package.json +16 -3
- package/src/helpers/chip-items.js +1 -1
- package/types/components/chips.d.ts +43 -0
- package/types/components/chips.d.ts.map +1 -0
- package/types/components/expand-container.d.ts +35 -0
- package/types/components/expand-container.d.ts.map +1 -0
- package/types/components/filters/range.d.ts +51 -0
- package/types/components/filters/range.d.ts.map +1 -0
- package/types/components/filters/selector.d.ts +135 -0
- package/types/components/filters/selector.d.ts.map +1 -0
- package/types/components/filters/spatial.d.ts +82 -0
- package/types/components/filters/spatial.d.ts.map +1 -0
- package/types/components/filters/text.d.ts +54 -0
- package/types/components/filters/text.d.ts.map +1 -0
- package/types/components/itemfilter-container.d.ts +77 -0
- package/types/components/itemfilter-container.d.ts.map +1 -0
- package/types/components/results.d.ts +80 -0
- package/types/components/results.d.ts.map +1 -0
- package/types/enums/config.d.ts +73 -0
- package/types/enums/config.d.ts.map +1 -0
- package/types/enums/index.d.ts +2 -0
- package/types/enums/index.d.ts.map +1 -0
- package/types/helpers/chip-items.d.ts +9 -0
- package/types/helpers/chip-items.d.ts.map +1 -0
- package/types/helpers/filter-client.d.ts +3 -0
- package/types/helpers/filter-client.d.ts.map +1 -0
- package/types/helpers/filter-external.d.ts +11 -0
- package/types/helpers/filter-external.d.ts.map +1 -0
- package/types/helpers/get-value.d.ts +9 -0
- package/types/helpers/get-value.d.ts.map +1 -0
- package/types/helpers/highlighting.d.ts +11 -0
- package/types/helpers/highlighting.d.ts.map +1 -0
- package/types/helpers/index.d.ts +12 -0
- package/types/helpers/index.d.ts.map +1 -0
- package/types/helpers/is-filters-dirty.d.ts +8 -0
- package/types/helpers/is-filters-dirty.d.ts.map +1 -0
- package/types/helpers/map-layers.d.ts +9 -0
- package/types/helpers/map-layers.d.ts.map +1 -0
- package/types/helpers/reset-filter.d.ts +8 -0
- package/types/helpers/reset-filter.d.ts.map +1 -0
- package/types/helpers/spatial.d.ts +3 -0
- package/types/helpers/spatial.d.ts.map +1 -0
- package/types/helpers/tab-index.d.ts +9 -0
- package/types/helpers/tab-index.d.ts.map +1 -0
- package/types/helpers/toggle-accordion.d.ts +10 -0
- package/types/helpers/toggle-accordion.d.ts.map +1 -0
- package/types/main.d.ts +270 -0
- package/types/main.d.ts.map +1 -0
- package/types/methods/chips/handler.d.ts +23 -0
- package/types/methods/chips/handler.d.ts.map +1 -0
- package/types/methods/chips/index.d.ts +2 -0
- package/types/methods/chips/index.d.ts.map +1 -0
- package/types/methods/container/handler.d.ts +35 -0
- package/types/methods/container/handler.d.ts.map +1 -0
- package/types/methods/container/index.d.ts +5 -0
- package/types/methods/container/index.d.ts.map +1 -0
- package/types/methods/container/init-popver.d.ts +9 -0
- package/types/methods/container/init-popver.d.ts.map +1 -0
- package/types/methods/container/reset-filter.d.ts +9 -0
- package/types/methods/container/reset-filter.d.ts.map +1 -0
- package/types/methods/container/reset-search.d.ts +8 -0
- package/types/methods/container/reset-search.d.ts.map +1 -0
- package/types/methods/container/search-filter.d.ts +9 -0
- package/types/methods/container/search-filter.d.ts.map +1 -0
- package/types/methods/filters/index.d.ts +5 -0
- package/types/methods/filters/index.d.ts.map +1 -0
- package/types/methods/filters/range.d.ts +23 -0
- package/types/methods/filters/range.d.ts.map +1 -0
- package/types/methods/filters/selector.d.ts +42 -0
- package/types/methods/filters/selector.d.ts.map +1 -0
- package/types/methods/filters/spatial.d.ts +26 -0
- package/types/methods/filters/spatial.d.ts.map +1 -0
- package/types/methods/filters/text.d.ts +13 -0
- package/types/methods/filters/text.d.ts.map +1 -0
- package/types/methods/itemfilter/create-filter.d.ts +11 -0
- package/types/methods/itemfilter/create-filter.d.ts.map +1 -0
- package/types/methods/itemfilter/create-reset.d.ts +11 -0
- package/types/methods/itemfilter/create-reset.d.ts.map +1 -0
- package/types/methods/itemfilter/filter-apply.d.ts +11 -0
- package/types/methods/itemfilter/filter-apply.d.ts.map +1 -0
- package/types/methods/itemfilter/index.d.ts +7 -0
- package/types/methods/itemfilter/index.d.ts.map +1 -0
- package/types/methods/itemfilter/reset-filter.d.ts +7 -0
- package/types/methods/itemfilter/reset-filter.d.ts.map +1 -0
- package/types/methods/itemfilter/search.d.ts +11 -0
- package/types/methods/itemfilter/search.d.ts.map +1 -0
- package/types/methods/itemfilter/sort-results.d.ts +10 -0
- package/types/methods/itemfilter/sort-results.d.ts.map +1 -0
- package/types/methods/results/aggregate-results.d.ts +11 -0
- package/types/methods/results/aggregate-results.d.ts.map +1 -0
- package/types/methods/results/create.d.ts +17 -0
- package/types/methods/results/create.d.ts.map +1 -0
- package/types/methods/results/index.d.ts +3 -0
- package/types/methods/results/index.d.ts.map +1 -0
- package/types/style.d.ts +2 -0
- package/types/style.d.ts.map +1 -0
- package/types/style.eox.d.ts +2 -0
- package/types/style.eox.d.ts.map +1 -0
package/dist/eox-itemfilter.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ma = Object.defineProperty;
|
|
2
2
|
var Ss = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var Gr = (t, e, r) =>
|
|
7
|
-
var
|
|
5
|
+
var Sa = (t, e, r) => e in t ? Ma(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
|
+
var Gr = (t, e, r) => Sa(t, typeof e != "symbol" ? e + "" : e, r), Li = (t, e, r) => e.has(t) || Ss("Cannot " + r);
|
|
7
|
+
var Ze = (t, e, r) => (Li(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Ge = (t, e, r) => e.has(t) ? Ss("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), Pn = (t, e, r, n) => (Li(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), le = (t, e, r) => (Li(t, e, "access private method"), r);
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2019 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const Nn = globalThis,
|
|
14
|
-
let
|
|
13
|
+
const Nn = globalThis, hs = Nn.ShadowRoot && (Nn.ShadyCSS === void 0 || Nn.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, so = Symbol(), Es = /* @__PURE__ */ new WeakMap();
|
|
14
|
+
let Ea = class {
|
|
15
15
|
constructor(e, r, n) {
|
|
16
16
|
if (this._$cssResult$ = !0, n !== so) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
17
17
|
this.cssText = e, this.t = r;
|
|
@@ -19,7 +19,7 @@ let Sa = class {
|
|
|
19
19
|
get styleSheet() {
|
|
20
20
|
let e = this.o;
|
|
21
21
|
const r = this.t;
|
|
22
|
-
if (
|
|
22
|
+
if (hs && e === void 0) {
|
|
23
23
|
const n = r !== void 0 && r.length === 1;
|
|
24
24
|
n && (e = Es.get(r)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && Es.set(r, e));
|
|
25
25
|
}
|
|
@@ -29,26 +29,26 @@ let Sa = class {
|
|
|
29
29
|
return this.cssText;
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
const
|
|
33
|
-
if (
|
|
32
|
+
const Ca = (t) => new Ea(typeof t == "string" ? t : t + "", void 0, so), ka = (t, e) => {
|
|
33
|
+
if (hs) t.adoptedStyleSheets = e.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
|
|
34
34
|
else for (const r of e) {
|
|
35
35
|
const n = document.createElement("style"), i = Nn.litNonce;
|
|
36
36
|
i !== void 0 && n.setAttribute("nonce", i), n.textContent = r.cssText, t.appendChild(n);
|
|
37
37
|
}
|
|
38
|
-
}, Cs =
|
|
38
|
+
}, Cs = hs ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
|
|
39
39
|
let r = "";
|
|
40
40
|
for (const n of e.cssRules) r += n.cssText;
|
|
41
|
-
return
|
|
41
|
+
return Ca(r);
|
|
42
42
|
})(t) : t;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: La, defineProperty: Pa, getOwnPropertyDescriptor: Ta, getOwnPropertyNames: Ra, getOwnPropertySymbols: Oa, getPrototypeOf: Da } = Object, Ct = globalThis, ks = Ct.trustedTypes, ja = ks ? ks.emptyScript : "", Pi = Ct.reactiveElementPolyfillSupport, Zr = (t, e) => t, zi = { toAttribute(t, e) {
|
|
49
49
|
switch (e) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
t = t ?
|
|
51
|
+
t = t ? ja : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -73,8 +73,8 @@ const { is: ka, defineProperty: La, getOwnPropertyDescriptor: Pa, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return r;
|
|
76
|
-
} }, oo = (t, e) => !
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
76
|
+
} }, oo = (t, e) => !La(t, e), Ls = { attribute: !0, type: String, converter: zi, reflect: !1, hasChanged: oo };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Ct.litPropertyMetadata ?? (Ct.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
class vr extends HTMLElement {
|
|
79
79
|
static addInitializer(e) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(e);
|
|
@@ -85,11 +85,11 @@ class vr extends HTMLElement {
|
|
|
85
85
|
static createProperty(e, r = Ls) {
|
|
86
86
|
if (r.state && (r.attribute = !1), this._$Ei(), this.elementProperties.set(e, r), !r.noAccessor) {
|
|
87
87
|
const n = Symbol(), i = this.getPropertyDescriptor(e, n, r);
|
|
88
|
-
i !== void 0 &&
|
|
88
|
+
i !== void 0 && Pa(this.prototype, e, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(e, r, n) {
|
|
92
|
-
const { get: i, set: s } =
|
|
92
|
+
const { get: i, set: s } = Ta(this.prototype, e) ?? { get() {
|
|
93
93
|
return this[r];
|
|
94
94
|
}, set(o) {
|
|
95
95
|
this[r] = o;
|
|
@@ -105,14 +105,14 @@ class vr extends HTMLElement {
|
|
|
105
105
|
return this.elementProperties.get(e) ?? Ls;
|
|
106
106
|
}
|
|
107
107
|
static _$Ei() {
|
|
108
|
-
if (this.hasOwnProperty(
|
|
109
|
-
const e =
|
|
108
|
+
if (this.hasOwnProperty(Zr("elementProperties"))) return;
|
|
109
|
+
const e = Da(this);
|
|
110
110
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
111
111
|
}
|
|
112
112
|
static finalize() {
|
|
113
|
-
if (this.hasOwnProperty(
|
|
114
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
115
|
-
const r = this.properties, n = [...
|
|
113
|
+
if (this.hasOwnProperty(Zr("finalized"))) return;
|
|
114
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Zr("properties"))) {
|
|
115
|
+
const r = this.properties, n = [...Ra(r), ...Oa(r)];
|
|
116
116
|
for (const i of n) this.createProperty(i, r[i]);
|
|
117
117
|
}
|
|
118
118
|
const e = this[Symbol.metadata];
|
|
@@ -161,7 +161,7 @@ class vr extends HTMLElement {
|
|
|
161
161
|
}
|
|
162
162
|
createRenderRoot() {
|
|
163
163
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
164
|
-
return
|
|
164
|
+
return ka(e, this.constructor.elementStyles), e;
|
|
165
165
|
}
|
|
166
166
|
connectedCallback() {
|
|
167
167
|
var e;
|
|
@@ -273,17 +273,17 @@ class vr extends HTMLElement {
|
|
|
273
273
|
firstUpdated(e) {
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
vr.elementStyles = [], vr.shadowRootOptions = { mode: "open" }, vr[
|
|
276
|
+
vr.elementStyles = [], vr.shadowRootOptions = { mode: "open" }, vr[Zr("elementProperties")] = /* @__PURE__ */ new Map(), vr[Zr("finalized")] = /* @__PURE__ */ new Map(), Pi == null || Pi({ ReactiveElement: vr }), (Ct.reactiveElementVersions ?? (Ct.reactiveElementVersions = [])).push("2.0.4");
|
|
277
277
|
/**
|
|
278
278
|
* @license
|
|
279
279
|
* Copyright 2017 Google LLC
|
|
280
280
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
281
281
|
*/
|
|
282
|
-
const
|
|
282
|
+
const Xr = globalThis, Hn = Xr.trustedTypes, Ps = Hn ? Hn.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ds = "$lit$", xt = `lit$${Math.random().toFixed(9).slice(2)}$`, fs = "?" + xt, Na = `<${fs}>`, Ft = document, Jr = () => Ft.createComment(""), Qr = (t) => t === null || typeof t != "object" && typeof t != "function", ps = Array.isArray, ao = (t) => ps(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", Ti = `[
|
|
283
283
|
\f\r]`, Yr = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ts = /-->/g, Rs = />/g, Vt = RegExp(`>|${Ti}(?:([^\\s"'>=/]+)(${Ti}*=${Ti}*(?:[^
|
|
284
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Os = /'/g, Ds = /"/g, lo = /^(?:script|style|textarea|title)$/i,
|
|
284
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Os = /'/g, Ds = /"/g, lo = /^(?:script|style|textarea|title)$/i, Ha = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), F = Ha(1), kt = Symbol.for("lit-noChange"), ge = Symbol.for("lit-nothing"), js = /* @__PURE__ */ new WeakMap(), Yt = Ft.createTreeWalker(Ft, 129);
|
|
285
285
|
function co(t, e) {
|
|
286
|
-
if (!
|
|
286
|
+
if (!ps(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
287
287
|
return Ps !== void 0 ? Ps.createHTML(e) : e;
|
|
288
288
|
}
|
|
289
289
|
const uo = (t, e) => {
|
|
@@ -291,10 +291,10 @@ const uo = (t, e) => {
|
|
|
291
291
|
let i, s = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = Yr;
|
|
292
292
|
for (let l = 0; l < r; l++) {
|
|
293
293
|
const c = t[l];
|
|
294
|
-
let h, p, y = -1,
|
|
295
|
-
for (;
|
|
294
|
+
let h, p, y = -1, v = 0;
|
|
295
|
+
for (; v < c.length && (o.lastIndex = v, p = o.exec(c), p !== null); ) v = o.lastIndex, o === Yr ? p[1] === "!--" ? o = Ts : p[1] !== void 0 ? o = Rs : p[2] !== void 0 ? (lo.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = Vt) : p[3] !== void 0 && (o = Vt) : o === Vt ? p[0] === ">" ? (o = i ?? Yr, y = -1) : p[1] === void 0 ? y = -2 : (y = o.lastIndex - p[2].length, h = p[1], o = p[3] === void 0 ? Vt : p[3] === '"' ? Ds : Os) : o === Ds || o === Os ? o = Vt : o === Ts || o === Rs ? o = Yr : (o = Vt, i = void 0);
|
|
296
296
|
const m = o === Vt && t[l + 1].startsWith("/>") ? " " : "";
|
|
297
|
-
s += o === Yr ? c +
|
|
297
|
+
s += o === Yr ? c + Na : y >= 0 ? (n.push(h), c.slice(0, y) + ds + c.slice(y) + xt + m) : c + xt + (y === -2 ? l : m);
|
|
298
298
|
}
|
|
299
299
|
return [co(t, s + (t[r] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), n];
|
|
300
300
|
};
|
|
@@ -310,22 +310,22 @@ class en {
|
|
|
310
310
|
}
|
|
311
311
|
for (; (i = Yt.nextNode()) !== null && c.length < l; ) {
|
|
312
312
|
if (i.nodeType === 1) {
|
|
313
|
-
if (i.hasAttributes()) for (const y of i.getAttributeNames()) if (y.endsWith(
|
|
314
|
-
const
|
|
313
|
+
if (i.hasAttributes()) for (const y of i.getAttributeNames()) if (y.endsWith(ds)) {
|
|
314
|
+
const v = p[o++], m = i.getAttribute(y).split(xt), _ = /([.?@])?(.*)/.exec(v);
|
|
315
315
|
c.push({ type: 1, index: s, name: _[2], strings: m, ctor: _[1] === "." ? fo : _[1] === "?" ? po : _[1] === "@" ? go : on }), i.removeAttribute(y);
|
|
316
|
-
} else y.startsWith(
|
|
316
|
+
} else y.startsWith(xt) && (c.push({ type: 6, index: s }), i.removeAttribute(y));
|
|
317
317
|
if (lo.test(i.tagName)) {
|
|
318
|
-
const y = i.textContent.split(
|
|
319
|
-
if (
|
|
318
|
+
const y = i.textContent.split(xt), v = y.length - 1;
|
|
319
|
+
if (v > 0) {
|
|
320
320
|
i.textContent = Hn ? Hn.emptyScript : "";
|
|
321
|
-
for (let m = 0; m <
|
|
322
|
-
i.append(y[
|
|
321
|
+
for (let m = 0; m < v; m++) i.append(y[m], Jr()), Yt.nextNode(), c.push({ type: 2, index: ++s });
|
|
322
|
+
i.append(y[v], Jr());
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
325
|
+
} else if (i.nodeType === 8) if (i.data === fs) c.push({ type: 2, index: s });
|
|
326
326
|
else {
|
|
327
327
|
let y = -1;
|
|
328
|
-
for (; (y = i.data.indexOf(
|
|
328
|
+
for (; (y = i.data.indexOf(xt, y + 1)) !== -1; ) c.push({ type: 7, index: s }), y += xt.length - 1;
|
|
329
329
|
}
|
|
330
330
|
s++;
|
|
331
331
|
}
|
|
@@ -335,12 +335,12 @@ class en {
|
|
|
335
335
|
return n.innerHTML = e, n;
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function Zt(t, e, r = t, n) {
|
|
339
339
|
var o, l;
|
|
340
|
-
if (e ===
|
|
340
|
+
if (e === kt) return e;
|
|
341
341
|
let i = n !== void 0 ? (o = r._$Co) == null ? void 0 : o[n] : r._$Cl;
|
|
342
342
|
const s = Qr(e) ? void 0 : e._$litDirective$;
|
|
343
|
-
return (i == null ? void 0 : i.constructor) !== s && ((l = i == null ? void 0 : i._$AO) == null || l.call(i, !1), s === void 0 ? i = void 0 : (i = new s(t), i._$AT(t, r, n)), n !== void 0 ? (r._$Co ?? (r._$Co = []))[n] = i : r._$Cl = i), i !== void 0 && (e =
|
|
343
|
+
return (i == null ? void 0 : i.constructor) !== s && ((l = i == null ? void 0 : i._$AO) == null || l.call(i, !1), s === void 0 ? i = void 0 : (i = new s(t), i._$AT(t, r, n)), n !== void 0 ? (r._$Co ?? (r._$Co = []))[n] = i : r._$Cl = i), i !== void 0 && (e = Zt(t, i._$AS(t, e.values), i, n)), e;
|
|
344
344
|
}
|
|
345
345
|
let ho = class {
|
|
346
346
|
constructor(e, r) {
|
|
@@ -390,7 +390,7 @@ class Sr {
|
|
|
390
390
|
return this._$AB;
|
|
391
391
|
}
|
|
392
392
|
_$AI(e, r = this) {
|
|
393
|
-
e =
|
|
393
|
+
e = Zt(this, e, r), Qr(e) ? e === ge || e == null || e === "" ? (this._$AH !== ge && this._$AR(), this._$AH = ge) : e !== this._$AH && e !== kt && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : ao(e) ? this.k(e) : this._(e);
|
|
394
394
|
}
|
|
395
395
|
O(e) {
|
|
396
396
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -415,7 +415,7 @@ class Sr {
|
|
|
415
415
|
return r === void 0 && js.set(e.strings, r = new en(e)), r;
|
|
416
416
|
}
|
|
417
417
|
k(e) {
|
|
418
|
-
|
|
418
|
+
ps(this._$AH) || (this._$AH = [], this._$AR());
|
|
419
419
|
const r = this._$AH;
|
|
420
420
|
let n, i = 0;
|
|
421
421
|
for (const s of e) i === r.length ? r.push(n = new Sr(this.O(Jr()), this.O(Jr()), this, this.options)) : n = r[i], n._$AI(s), i++;
|
|
@@ -446,11 +446,11 @@ class on {
|
|
|
446
446
|
_$AI(e, r = this, n, i) {
|
|
447
447
|
const s = this.strings;
|
|
448
448
|
let o = !1;
|
|
449
|
-
if (s === void 0) e =
|
|
449
|
+
if (s === void 0) e = Zt(this, e, r, 0), o = !Qr(e) || e !== this._$AH && e !== kt, o && (this._$AH = e);
|
|
450
450
|
else {
|
|
451
451
|
const l = e;
|
|
452
452
|
let c, h;
|
|
453
|
-
for (e = s[0], c = 0; c < s.length - 1; c++) h =
|
|
453
|
+
for (e = s[0], c = 0; c < s.length - 1; c++) h = Zt(this, l[n + c], r, c), h === kt && (h = this._$AH[c]), o || (o = !Qr(h) || h !== this._$AH[c]), h === ge ? e = ge : e !== ge && (e += (h ?? "") + s[c + 1]), this._$AH[c] = h;
|
|
454
454
|
}
|
|
455
455
|
o && !i && this.j(e);
|
|
456
456
|
}
|
|
@@ -479,7 +479,7 @@ class go extends on {
|
|
|
479
479
|
super(e, r, n, i, s), this.type = 5;
|
|
480
480
|
}
|
|
481
481
|
_$AI(e, r = this) {
|
|
482
|
-
if ((e =
|
|
482
|
+
if ((e = Zt(this, e, r, 0) ?? ge) === kt) return;
|
|
483
483
|
const n = this._$AH, i = e === ge && n !== ge || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, s = e !== ge && (n === ge || i);
|
|
484
484
|
i && this.element.removeEventListener(this.name, this, n), s && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
485
485
|
}
|
|
@@ -496,12 +496,12 @@ class yo {
|
|
|
496
496
|
return this._$AM._$AU;
|
|
497
497
|
}
|
|
498
498
|
_$AI(e) {
|
|
499
|
-
|
|
499
|
+
Zt(this, e);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
const
|
|
503
|
-
Ri == null || Ri(en, Sr), (
|
|
504
|
-
const
|
|
502
|
+
const Ia = { M: ds, P: xt, A: fs, C: 1, L: uo, R: ho, D: ao, V: Zt, I: Sr, H: on, N: po, U: go, B: fo, F: yo }, Ri = Xr.litHtmlPolyfillSupport;
|
|
503
|
+
Ri == null || Ri(en, Sr), (Xr.litHtmlVersions ?? (Xr.litHtmlVersions = [])).push("3.2.1");
|
|
504
|
+
const Ba = (t, e, r) => {
|
|
505
505
|
const n = (r == null ? void 0 : r.renderBefore) ?? e;
|
|
506
506
|
let i = n._$litPart$;
|
|
507
507
|
if (i === void 0) {
|
|
@@ -526,7 +526,7 @@ let Ye = class extends vr {
|
|
|
526
526
|
}
|
|
527
527
|
update(e) {
|
|
528
528
|
const r = this.render();
|
|
529
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
529
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Ba(r, this.renderRoot, this.renderOptions);
|
|
530
530
|
}
|
|
531
531
|
connectedCallback() {
|
|
532
532
|
var e;
|
|
@@ -537,7 +537,7 @@ let Ye = class extends vr {
|
|
|
537
537
|
super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
|
|
538
538
|
}
|
|
539
539
|
render() {
|
|
540
|
-
return
|
|
540
|
+
return kt;
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
543
|
var io;
|
|
@@ -550,7 +550,7 @@ Oi == null || Oi({ LitElement: Ye });
|
|
|
550
550
|
* Copyright 2021 Google LLC
|
|
551
551
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
552
552
|
*/
|
|
553
|
-
function*
|
|
553
|
+
function* Zn(t, e) {
|
|
554
554
|
if (t !== void 0) {
|
|
555
555
|
let r = 0;
|
|
556
556
|
for (const n of t) yield e(n, r++);
|
|
@@ -564,7 +564,7 @@ function* Xn(t, e) {
|
|
|
564
564
|
function We(t, e, r) {
|
|
565
565
|
return t ? e(t) : r == null ? void 0 : r(t);
|
|
566
566
|
}
|
|
567
|
-
const
|
|
567
|
+
const Ua = `
|
|
568
568
|
:host {
|
|
569
569
|
display: flex;
|
|
570
570
|
box-sizing: border-box;
|
|
@@ -1045,9 +1045,9 @@ eox-itemfilter-results li.highlighted {
|
|
|
1045
1045
|
font-size: x-small;
|
|
1046
1046
|
top: -8px;
|
|
1047
1047
|
}
|
|
1048
|
-
`,
|
|
1048
|
+
`, za = `:root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, white); --color: var(--eox-color, #2c3d49); --h-color: var(--eox-h-color, var(--color)); --hover-transparency: var(--eox-hover-transparency, 20%); --bg-hover-transparency: var(--eox-bg-hover-transparency, 40%); --btn-hover-transparency: var(--eox-btn-hover-transparency, 80%); --primary-color: var(--eox-primary-color, #004170); --primary-color-hover: color-mix( in srgb, var(--primary-color) var(--hover-transparency), transparent ); --primary-bg-color-hover: color-mix( in srgb, var(--primary-color) var(--bg-hover-transparency), transparent ); --primary-btn-color-hover: color-mix( in srgb, var(--primary-color) var(--btn-hover-transparency), transparent ); --secondary-color: var(--eox-secondary-color, #c6d4df); --secondary-color-hover: color-mix( in srgb, var(--secondary-color) var(--hover-transparency), transparent ); --secondary-bg-color-hover: color-mix( in srgb, var(--secondary-color) var(--bg-hover-transparency), transparent ); --secondary-btn-color-hover: color-mix( in srgb, var(--secondary-color) var(--btn-hover-transparency), transparent ); --success: var(--eox-success, #26cc0f); --warning: var(--eox-warning, #f18e32); --error: var(--eox-error, #ff5252); --header-font-family: var(--eox-header-font-family, "Roboto", sans-serif); --body-font-family: var(--eox-body-font-family, "Roboto", sans-serif);}* { font-size: normal; font-family: var(--body-font-family); color: var(--eox-color);}h1,h2,h3,h4,h5,h6 { font-family: var(--header-font-family);}span,p,div,main,label { font-family: var(--body-font-family);}@media (min-width: 576px) { .container { max-width: 510px; padding-right: 0; padding-left: 0; --block-spacing-vertical: calc(var(--spacing) * 2.5); }}@media (min-width: 768px) { .container { max-width: 700px; --block-spacing-vertical: calc(var(--spacing) * 3); }}@media (min-width: 992px) { .container { max-width: 920px; --block-spacing-vertical: calc(var(--spacing) * 3.5); }}@media (min-width: 1200px) { .container { max-width: 1130px; --block-spacing-vertical: calc(var(--spacing) * 4); }}.container { width: 100%; margin-right: auto; margin-left: auto; display: block; padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);}h1,h2,h3 { line-height: 120%; margin-top: 0.8rem; margin-bottom: 0.8rem;}p { --font-size: 1rem; font-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem; font-size: var(--font-size);}body { padding: 0; margin: 0;}.sb-show-main.sb-main-padded { padding: 0;}h1,h2,h3,h4,h5,h6 { --font-weight: 700;}h1 { --font-size: 3rem; --typography-spacing-vertical: 0.5rem;}h2 { --font-size: 2rem; --typography-spacing-vertical: 0.5rem;}h3 { --font-size: 1.75rem; --typography-spacing-vertical: 0.5rem;}h4 { --font-size: 1.5rem; --typography-spacing-vertical: 0.5rem;}h5 { --font-size: 1.25rem; --typography-spacing-vertical: 0.5rem;}h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: var(--typography-spacing-vertical); color: var(--h-color); font-weight: var(--font-weight); font-size: var(--font-size); font-family: var(--header-font-family);}button,.button { display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon):not(.json-editor-btntype-*),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-btn-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon,button[class*="json-editor-btntype-"] { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before,button[class*="json-editor-btntype-"]::before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0;}input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}input[type="text"],input[type="url"],input[type="email"],input[type="password"],input[type="text"],input[type="number"],input[type="search"],input[type="tel"],select { box-sizing: border-box; width: 100%; margin-top: 0.5rem; margin-bottom: 0.5rem; padding: 5px 7px; border-radius: 4px; border: 1px solid #0004;}ul.list-wrap { padding: 0;}ul.list-wrap li:hover,ul.list-wrap li.selected { background: var(--secondary-bg-color-hover);}ul.list-wrap li { list-style: none; padding: 4px;}ul.list-wrap li { border-bottom: 1.2px solid var(--secondary-color);}ul.list-wrap li:first-child { border-top: 1.2px solid var(--secondary-color);}ul.list-wrap li .list { width: 100%; align-items: center; justify-content: space-between; display: flex; align-items: center; cursor: pointer; font-size: small; gap: 10px;}ul.list-wrap li .list span { display: flex; align-items: center; cursor: pointer; font-size: small; flex-grow: 1;}input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}input[type="range"] { -webkit-appearance: none; width: 90%; margin-left: 5%; height: 6px; border-radius: 5px; background: #d7dcdf; outline: none; padding: 0;}input[type="range"]::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}.range-slider { margin: 60px 0 0 0;}.range-slider { width: 100%;}input[type="range"]::-webkit-slider-thumb:hover { background: #00416f;}input[type="range"]:active::-webkit-slider-thumb { background: #00416f;}input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}input[type="range"]::-moz-range-thumb:hover { background: #00416f;}input[type="range"]:active::-moz-range-thumb { background: #00416f;}input[type="range"]:focus::-webkit-slider-thumb { box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416f00;}.range-slider__value { display: inline-block; position: relative; width: 60px; color: #fff; line-height: 20px; text-align: center; border-radius: 3px; background: #2c3e50; padding: 5px 10px; margin-left: 8px;}.range-slider__value:after { position: absolute; top: 8px; left: -7px; width: 0; height: 0; border-top: 7px solid transparent; border-right: 7px solid #2c3e50; border-bottom: 7px solid transparent; content: "";}input::-moz-focus-inner,input::-moz-focus-outer { border: 0;}`;
|
|
1049
1049
|
var Kn, bo;
|
|
1050
|
-
class
|
|
1050
|
+
class qa extends Ye {
|
|
1051
1051
|
constructor() {
|
|
1052
1052
|
super();
|
|
1053
1053
|
Ge(this, Kn);
|
|
@@ -1112,20 +1112,20 @@ bo = function(r) {
|
|
|
1112
1112
|
};
|
|
1113
1113
|
customElements.define(
|
|
1114
1114
|
"eox-itemfilter-expandcontainer",
|
|
1115
|
-
|
|
1115
|
+
qa
|
|
1116
1116
|
);
|
|
1117
|
-
function
|
|
1117
|
+
function $t(t) {
|
|
1118
1118
|
return Array.isArray ? Array.isArray(t) : wo(t) === "[object Array]";
|
|
1119
1119
|
}
|
|
1120
|
-
const
|
|
1121
|
-
function
|
|
1120
|
+
const Wa = 1 / 0;
|
|
1121
|
+
function Va(t) {
|
|
1122
1122
|
if (typeof t == "string")
|
|
1123
1123
|
return t;
|
|
1124
1124
|
let e = t + "";
|
|
1125
|
-
return e == "0" && 1 / t == -
|
|
1125
|
+
return e == "0" && 1 / t == -Wa ? "-0" : e;
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1128
|
-
return t == null ? "" :
|
|
1127
|
+
function Ka(t) {
|
|
1128
|
+
return t == null ? "" : Va(t);
|
|
1129
1129
|
}
|
|
1130
1130
|
function ht(t) {
|
|
1131
1131
|
return typeof t == "string";
|
|
@@ -1133,16 +1133,16 @@ function ht(t) {
|
|
|
1133
1133
|
function mo(t) {
|
|
1134
1134
|
return typeof t == "number";
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1137
|
-
return t === !0 || t === !1 ||
|
|
1136
|
+
function Ga(t) {
|
|
1137
|
+
return t === !0 || t === !1 || Ya(t) && wo(t) == "[object Boolean]";
|
|
1138
1138
|
}
|
|
1139
1139
|
function vo(t) {
|
|
1140
1140
|
return typeof t == "object";
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function Ya(t) {
|
|
1143
1143
|
return vo(t) && t !== null;
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function Xe(t) {
|
|
1146
1146
|
return t != null;
|
|
1147
1147
|
}
|
|
1148
1148
|
function Di(t) {
|
|
@@ -1151,8 +1151,8 @@ function Di(t) {
|
|
|
1151
1151
|
function wo(t) {
|
|
1152
1152
|
return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(t);
|
|
1153
1153
|
}
|
|
1154
|
-
const
|
|
1155
|
-
class
|
|
1154
|
+
const Fa = "Incorrect 'index' type", Za = (t) => `Invalid value for key ${t}`, Xa = (t) => `Pattern length exceeds max of ${t}.`, Ja = (t) => `Missing ${t} property in key`, Qa = (t) => `Property 'weight' in key '${t}' must be a positive integer`, Ns = Object.prototype.hasOwnProperty;
|
|
1155
|
+
class el {
|
|
1156
1156
|
constructor(e) {
|
|
1157
1157
|
this._keys = [], this._keyMap = {};
|
|
1158
1158
|
let r = 0;
|
|
@@ -1175,38 +1175,38 @@ class Qa {
|
|
|
1175
1175
|
}
|
|
1176
1176
|
function xo(t) {
|
|
1177
1177
|
let e = null, r = null, n = null, i = 1, s = null;
|
|
1178
|
-
if (ht(t) ||
|
|
1178
|
+
if (ht(t) || $t(t))
|
|
1179
1179
|
n = t, e = Hs(t), r = qi(t);
|
|
1180
1180
|
else {
|
|
1181
1181
|
if (!Ns.call(t, "name"))
|
|
1182
|
-
throw new Error(
|
|
1182
|
+
throw new Error(Ja("name"));
|
|
1183
1183
|
const o = t.name;
|
|
1184
1184
|
if (n = o, Ns.call(t, "weight") && (i = t.weight, i <= 0))
|
|
1185
|
-
throw new Error(
|
|
1185
|
+
throw new Error(Qa(o));
|
|
1186
1186
|
e = Hs(o), r = qi(o), s = t.getFn;
|
|
1187
1187
|
}
|
|
1188
1188
|
return { path: e, id: r, weight: i, src: n, getFn: s };
|
|
1189
1189
|
}
|
|
1190
1190
|
function Hs(t) {
|
|
1191
|
-
return
|
|
1191
|
+
return $t(t) ? t : t.split(".");
|
|
1192
1192
|
}
|
|
1193
1193
|
function qi(t) {
|
|
1194
|
-
return
|
|
1194
|
+
return $t(t) ? t.join(".") : t;
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function tl(t, e) {
|
|
1197
1197
|
let r = [], n = !1;
|
|
1198
1198
|
const i = (s, o, l) => {
|
|
1199
|
-
if (
|
|
1199
|
+
if (Xe(s))
|
|
1200
1200
|
if (!o[l])
|
|
1201
1201
|
r.push(s);
|
|
1202
1202
|
else {
|
|
1203
1203
|
let c = o[l];
|
|
1204
1204
|
const h = s[c];
|
|
1205
|
-
if (!
|
|
1205
|
+
if (!Xe(h))
|
|
1206
1206
|
return;
|
|
1207
|
-
if (l === o.length - 1 && (ht(h) || mo(h) ||
|
|
1208
|
-
r.push(
|
|
1209
|
-
else if (
|
|
1207
|
+
if (l === o.length - 1 && (ht(h) || mo(h) || Ga(h)))
|
|
1208
|
+
r.push(Ka(h));
|
|
1209
|
+
else if ($t(h)) {
|
|
1210
1210
|
n = !0;
|
|
1211
1211
|
for (let p = 0, y = h.length; p < y; p += 1)
|
|
1212
1212
|
i(h[p], o, l + 1);
|
|
@@ -1215,7 +1215,7 @@ function el(t, e) {
|
|
|
1215
1215
|
};
|
|
1216
1216
|
return i(t, ht(e) ? e.split(".") : e, 0), n ? r : r[0];
|
|
1217
1217
|
}
|
|
1218
|
-
const
|
|
1218
|
+
const rl = {
|
|
1219
1219
|
// Whether the matches should be included in the result set. When `true`, each record in the result
|
|
1220
1220
|
// set will include the indices of the matched characters.
|
|
1221
1221
|
// These can consequently be used for highlighting purposes.
|
|
@@ -1225,7 +1225,7 @@ const tl = {
|
|
|
1225
1225
|
findAllMatches: !1,
|
|
1226
1226
|
// Minimum number of characters that must be matched before a result is considered a match
|
|
1227
1227
|
minMatchCharLength: 1
|
|
1228
|
-
},
|
|
1228
|
+
}, nl = {
|
|
1229
1229
|
// When `true`, the algorithm continues searching to the end of the input even if a perfect
|
|
1230
1230
|
// match is found before the end of the same input.
|
|
1231
1231
|
isCaseSensitive: !1,
|
|
@@ -1237,7 +1237,7 @@ const tl = {
|
|
|
1237
1237
|
shouldSort: !0,
|
|
1238
1238
|
// Default sort function: sort by ascending score, ascending index
|
|
1239
1239
|
sortFn: (t, e) => t.score === e.score ? t.idx < e.idx ? -1 : 1 : t.score < e.score ? -1 : 1
|
|
1240
|
-
},
|
|
1240
|
+
}, il = {
|
|
1241
1241
|
// Approximately where in the text is the pattern expected to be found?
|
|
1242
1242
|
location: 0,
|
|
1243
1243
|
// At what point does the match algorithm give up. A threshold of '0.0' requires a perfect match
|
|
@@ -1249,12 +1249,12 @@ const tl = {
|
|
|
1249
1249
|
// the exact location specified, a threshold of '1000' would require a perfect match
|
|
1250
1250
|
// to be within 800 characters of the fuzzy location to be found using a 0.8 threshold.
|
|
1251
1251
|
distance: 100
|
|
1252
|
-
},
|
|
1252
|
+
}, sl = {
|
|
1253
1253
|
// When `true`, it enables the use of unix-like search commands
|
|
1254
1254
|
useExtendedSearch: !1,
|
|
1255
1255
|
// The get function to use when fetching an object's properties.
|
|
1256
1256
|
// The default will search nested paths *ie foo.bar.baz*
|
|
1257
|
-
getFn:
|
|
1257
|
+
getFn: tl,
|
|
1258
1258
|
// When `true`, search will ignore `location` and `distance`, so it won't matter
|
|
1259
1259
|
// where in the string the pattern appears.
|
|
1260
1260
|
// More info: https://fusejs.io/concepts/scoring-theory.html#fuzziness-score
|
|
@@ -1267,17 +1267,17 @@ const tl = {
|
|
|
1267
1267
|
fieldNormWeight: 1
|
|
1268
1268
|
};
|
|
1269
1269
|
var G = {
|
|
1270
|
-
...rl,
|
|
1271
|
-
...tl,
|
|
1272
1270
|
...nl,
|
|
1273
|
-
...
|
|
1271
|
+
...rl,
|
|
1272
|
+
...il,
|
|
1273
|
+
...sl
|
|
1274
1274
|
};
|
|
1275
|
-
const
|
|
1276
|
-
function
|
|
1275
|
+
const ol = /[^ ]+/g;
|
|
1276
|
+
function al(t = 1, e = 3) {
|
|
1277
1277
|
const r = /* @__PURE__ */ new Map(), n = Math.pow(10, e);
|
|
1278
1278
|
return {
|
|
1279
1279
|
get(i) {
|
|
1280
|
-
const s = i.match(
|
|
1280
|
+
const s = i.match(ol).length;
|
|
1281
1281
|
if (r.has(s))
|
|
1282
1282
|
return r.get(s);
|
|
1283
1283
|
const o = 1 / Math.pow(s, 0.5 * t), l = parseFloat(Math.round(o * n) / n);
|
|
@@ -1288,12 +1288,12 @@ function ol(t = 1, e = 3) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
};
|
|
1290
1290
|
}
|
|
1291
|
-
class
|
|
1291
|
+
class gs {
|
|
1292
1292
|
constructor({
|
|
1293
1293
|
getFn: e = G.getFn,
|
|
1294
1294
|
fieldNormWeight: r = G.fieldNormWeight
|
|
1295
1295
|
} = {}) {
|
|
1296
|
-
this.norm =
|
|
1296
|
+
this.norm = al(r, 3), this.getFn = e, this.isCreated = !1, this.setIndexRecords();
|
|
1297
1297
|
}
|
|
1298
1298
|
setSources(e = []) {
|
|
1299
1299
|
this.docs = e;
|
|
@@ -1331,7 +1331,7 @@ class ys {
|
|
|
1331
1331
|
return this.records.length;
|
|
1332
1332
|
}
|
|
1333
1333
|
_addString(e, r) {
|
|
1334
|
-
if (!
|
|
1334
|
+
if (!Xe(e) || Di(e))
|
|
1335
1335
|
return;
|
|
1336
1336
|
let n = {
|
|
1337
1337
|
v: e,
|
|
@@ -1344,13 +1344,13 @@ class ys {
|
|
|
1344
1344
|
let n = { i: r, $: {} };
|
|
1345
1345
|
this.keys.forEach((i, s) => {
|
|
1346
1346
|
let o = i.getFn ? i.getFn(e) : this.getFn(e, i.path);
|
|
1347
|
-
if (
|
|
1348
|
-
if (
|
|
1347
|
+
if (Xe(o)) {
|
|
1348
|
+
if ($t(o)) {
|
|
1349
1349
|
let l = [];
|
|
1350
1350
|
const c = [{ nestedArrIndex: -1, value: o }];
|
|
1351
1351
|
for (; c.length; ) {
|
|
1352
1352
|
const { nestedArrIndex: h, value: p } = c.pop();
|
|
1353
|
-
if (
|
|
1353
|
+
if (Xe(p))
|
|
1354
1354
|
if (ht(p) && !Di(p)) {
|
|
1355
1355
|
let y = {
|
|
1356
1356
|
v: p,
|
|
@@ -1358,9 +1358,9 @@ class ys {
|
|
|
1358
1358
|
n: this.norm.get(p)
|
|
1359
1359
|
};
|
|
1360
1360
|
l.push(y);
|
|
1361
|
-
} else
|
|
1361
|
+
} else $t(p) && p.forEach((y, v) => {
|
|
1362
1362
|
c.push({
|
|
1363
|
-
nestedArrIndex:
|
|
1363
|
+
nestedArrIndex: v,
|
|
1364
1364
|
value: y
|
|
1365
1365
|
});
|
|
1366
1366
|
});
|
|
@@ -1384,11 +1384,11 @@ class ys {
|
|
|
1384
1384
|
}
|
|
1385
1385
|
}
|
|
1386
1386
|
function $o(t, e, { getFn: r = G.getFn, fieldNormWeight: n = G.fieldNormWeight } = {}) {
|
|
1387
|
-
const i = new
|
|
1387
|
+
const i = new gs({ getFn: r, fieldNormWeight: n });
|
|
1388
1388
|
return i.setKeys(t.map(xo)), i.setSources(e), i.create(), i;
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1391
|
-
const { keys: n, records: i } = t, s = new
|
|
1390
|
+
function ll(t, { getFn: e = G.getFn, fieldNormWeight: r = G.fieldNormWeight } = {}) {
|
|
1391
|
+
const { keys: n, records: i } = t, s = new gs({ getFn: e, fieldNormWeight: r });
|
|
1392
1392
|
return s.setKeys(n), s.setIndexRecords(i), s;
|
|
1393
1393
|
}
|
|
1394
1394
|
function Tn(t, {
|
|
@@ -1404,7 +1404,7 @@ function Tn(t, {
|
|
|
1404
1404
|
const l = Math.abs(n - r);
|
|
1405
1405
|
return i ? o + l / i : l ? 1 : o;
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function cl(t = [], e = G.minMatchCharLength) {
|
|
1408
1408
|
let r = [], n = -1, i = -1, s = 0;
|
|
1409
1409
|
for (let o = t.length; s < o; s += 1) {
|
|
1410
1410
|
let l = t[s];
|
|
@@ -1413,7 +1413,7 @@ function ll(t = [], e = G.minMatchCharLength) {
|
|
|
1413
1413
|
return t[s - 1] && s - n >= e && r.push([n, s - 1]), r;
|
|
1414
1414
|
}
|
|
1415
1415
|
const Gt = 32;
|
|
1416
|
-
function
|
|
1416
|
+
function ul(t, e, r, {
|
|
1417
1417
|
location: n = G.location,
|
|
1418
1418
|
distance: i = G.distance,
|
|
1419
1419
|
threshold: s = G.threshold,
|
|
@@ -1424,14 +1424,14 @@ function cl(t, e, r, {
|
|
|
1424
1424
|
} = {}) {
|
|
1425
1425
|
if (e.length > Gt)
|
|
1426
1426
|
throw new Error(Xa(Gt));
|
|
1427
|
-
const p = e.length, y = t.length,
|
|
1428
|
-
let m = s, _ =
|
|
1427
|
+
const p = e.length, y = t.length, v = Math.max(0, Math.min(n, y));
|
|
1428
|
+
let m = s, _ = v;
|
|
1429
1429
|
const E = l > 1 || c, z = E ? Array(y) : [];
|
|
1430
1430
|
let H;
|
|
1431
1431
|
for (; (H = t.indexOf(e, _)) > -1; ) {
|
|
1432
1432
|
let he = Tn(e, {
|
|
1433
1433
|
currentLocation: H,
|
|
1434
|
-
expectedLocation:
|
|
1434
|
+
expectedLocation: v,
|
|
1435
1435
|
distance: i,
|
|
1436
1436
|
ignoreLocation: h
|
|
1437
1437
|
});
|
|
@@ -1442,57 +1442,57 @@ function cl(t, e, r, {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
}
|
|
1444
1444
|
_ = -1;
|
|
1445
|
-
let
|
|
1445
|
+
let Z = [], Y = 1, ue = p + y;
|
|
1446
1446
|
const te = 1 << p - 1;
|
|
1447
1447
|
for (let he = 0; he < p; he += 1) {
|
|
1448
1448
|
let $e = 0, Me = ue;
|
|
1449
1449
|
for (; $e < Me; )
|
|
1450
1450
|
Tn(e, {
|
|
1451
1451
|
errors: he,
|
|
1452
|
-
currentLocation:
|
|
1453
|
-
expectedLocation:
|
|
1452
|
+
currentLocation: v + Me,
|
|
1453
|
+
expectedLocation: v,
|
|
1454
1454
|
distance: i,
|
|
1455
1455
|
ignoreLocation: h
|
|
1456
1456
|
}) <= m ? $e = Me : ue = Me, Me = Math.floor((ue - $e) / 2 + $e);
|
|
1457
1457
|
ue = Me;
|
|
1458
|
-
let fe = Math.max(1,
|
|
1458
|
+
let fe = Math.max(1, v - Me + 1), ie = o ? y : Math.min(v + Me, y) + p, qe = Array(ie + 2);
|
|
1459
1459
|
qe[ie + 1] = (1 << he) - 1;
|
|
1460
1460
|
for (let D = ie; D >= fe; D -= 1) {
|
|
1461
1461
|
let S = D - 1, M = r[t.charAt(S)];
|
|
1462
|
-
if (E && (z[S] = +!!M), qe[D] = (qe[D + 1] << 1 | 1) & M, he && (qe[D] |= (
|
|
1462
|
+
if (E && (z[S] = +!!M), qe[D] = (qe[D + 1] << 1 | 1) & M, he && (qe[D] |= (Z[D + 1] | Z[D]) << 1 | 1 | Z[D + 1]), qe[D] & te && (Y = Tn(e, {
|
|
1463
1463
|
errors: he,
|
|
1464
1464
|
currentLocation: S,
|
|
1465
|
-
expectedLocation:
|
|
1465
|
+
expectedLocation: v,
|
|
1466
1466
|
distance: i,
|
|
1467
1467
|
ignoreLocation: h
|
|
1468
1468
|
}), Y <= m)) {
|
|
1469
|
-
if (m = Y, _ = S, _ <=
|
|
1469
|
+
if (m = Y, _ = S, _ <= v)
|
|
1470
1470
|
break;
|
|
1471
|
-
fe = Math.max(1, 2 *
|
|
1471
|
+
fe = Math.max(1, 2 * v - _);
|
|
1472
1472
|
}
|
|
1473
1473
|
}
|
|
1474
1474
|
if (Tn(e, {
|
|
1475
1475
|
errors: he + 1,
|
|
1476
|
-
currentLocation:
|
|
1477
|
-
expectedLocation:
|
|
1476
|
+
currentLocation: v,
|
|
1477
|
+
expectedLocation: v,
|
|
1478
1478
|
distance: i,
|
|
1479
1479
|
ignoreLocation: h
|
|
1480
1480
|
}) > m)
|
|
1481
1481
|
break;
|
|
1482
|
-
|
|
1482
|
+
Z = qe;
|
|
1483
1483
|
}
|
|
1484
|
-
const
|
|
1484
|
+
const X = {
|
|
1485
1485
|
isMatch: _ >= 0,
|
|
1486
1486
|
// Count exact matches (those with a score of 0) to be "almost" exact
|
|
1487
1487
|
score: Math.max(1e-3, Y)
|
|
1488
1488
|
};
|
|
1489
1489
|
if (E) {
|
|
1490
|
-
const he =
|
|
1491
|
-
he.length ? c && (
|
|
1490
|
+
const he = cl(z, l);
|
|
1491
|
+
he.length ? c && (X.indices = he) : X.isMatch = !1;
|
|
1492
1492
|
}
|
|
1493
|
-
return
|
|
1493
|
+
return X;
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function hl(t) {
|
|
1496
1496
|
let e = {};
|
|
1497
1497
|
for (let r = 0, n = t.length; r < n; r += 1) {
|
|
1498
1498
|
const i = t.charAt(r);
|
|
@@ -1522,18 +1522,18 @@ class _o {
|
|
|
1522
1522
|
ignoreLocation: h
|
|
1523
1523
|
}, this.pattern = c ? e : e.toLowerCase(), this.chunks = [], !this.pattern.length)
|
|
1524
1524
|
return;
|
|
1525
|
-
const p = (
|
|
1525
|
+
const p = (v, m) => {
|
|
1526
1526
|
this.chunks.push({
|
|
1527
|
-
pattern:
|
|
1528
|
-
alphabet:
|
|
1527
|
+
pattern: v,
|
|
1528
|
+
alphabet: hl(v),
|
|
1529
1529
|
startIndex: m
|
|
1530
1530
|
});
|
|
1531
1531
|
}, y = this.pattern.length;
|
|
1532
1532
|
if (y > Gt) {
|
|
1533
|
-
let
|
|
1533
|
+
let v = 0;
|
|
1534
1534
|
const m = y % Gt, _ = y - m;
|
|
1535
|
-
for (;
|
|
1536
|
-
p(this.pattern.substr(
|
|
1535
|
+
for (; v < _; )
|
|
1536
|
+
p(this.pattern.substr(v, Gt), v), v += Gt;
|
|
1537
1537
|
if (m) {
|
|
1538
1538
|
const E = y - Gt;
|
|
1539
1539
|
p(this.pattern.substr(E), E);
|
|
@@ -1558,9 +1558,9 @@ class _o {
|
|
|
1558
1558
|
minMatchCharLength: c,
|
|
1559
1559
|
ignoreLocation: h
|
|
1560
1560
|
} = this.options;
|
|
1561
|
-
let p = [], y = 0,
|
|
1561
|
+
let p = [], y = 0, v = !1;
|
|
1562
1562
|
this.chunks.forEach(({ pattern: _, alphabet: E, startIndex: z }) => {
|
|
1563
|
-
const { isMatch: H, score:
|
|
1563
|
+
const { isMatch: H, score: Z, indices: Y } = ul(e, _, E, {
|
|
1564
1564
|
location: i + z,
|
|
1565
1565
|
distance: s,
|
|
1566
1566
|
threshold: o,
|
|
@@ -1569,13 +1569,13 @@ class _o {
|
|
|
1569
1569
|
includeMatches: n,
|
|
1570
1570
|
ignoreLocation: h
|
|
1571
1571
|
});
|
|
1572
|
-
H && (
|
|
1572
|
+
H && (v = !0), y += Z, H && Y && (p = [...p, ...Y]);
|
|
1573
1573
|
});
|
|
1574
1574
|
let m = {
|
|
1575
|
-
isMatch:
|
|
1576
|
-
score:
|
|
1575
|
+
isMatch: v,
|
|
1576
|
+
score: v ? y / this.chunks.length : 1
|
|
1577
1577
|
};
|
|
1578
|
-
return
|
|
1578
|
+
return v && n && (m.indices = p), m;
|
|
1579
1579
|
}
|
|
1580
1580
|
}
|
|
1581
1581
|
class Tt {
|
|
@@ -1595,7 +1595,7 @@ function Is(t, e) {
|
|
|
1595
1595
|
const r = t.match(e);
|
|
1596
1596
|
return r ? r[1] : null;
|
|
1597
1597
|
}
|
|
1598
|
-
class
|
|
1598
|
+
class dl extends Tt {
|
|
1599
1599
|
constructor(e) {
|
|
1600
1600
|
super(e);
|
|
1601
1601
|
}
|
|
@@ -1617,7 +1617,7 @@ class hl extends Tt {
|
|
|
1617
1617
|
};
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
|
-
class
|
|
1620
|
+
class fl extends Tt {
|
|
1621
1621
|
constructor(e) {
|
|
1622
1622
|
super(e);
|
|
1623
1623
|
}
|
|
@@ -1639,7 +1639,7 @@ class dl extends Tt {
|
|
|
1639
1639
|
};
|
|
1640
1640
|
}
|
|
1641
1641
|
}
|
|
1642
|
-
class
|
|
1642
|
+
class pl extends Tt {
|
|
1643
1643
|
constructor(e) {
|
|
1644
1644
|
super(e);
|
|
1645
1645
|
}
|
|
@@ -1661,7 +1661,7 @@ class fl extends Tt {
|
|
|
1661
1661
|
};
|
|
1662
1662
|
}
|
|
1663
1663
|
}
|
|
1664
|
-
class
|
|
1664
|
+
class gl extends Tt {
|
|
1665
1665
|
constructor(e) {
|
|
1666
1666
|
super(e);
|
|
1667
1667
|
}
|
|
@@ -1683,7 +1683,7 @@ class pl extends Tt {
|
|
|
1683
1683
|
};
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
1686
|
-
class
|
|
1686
|
+
class yl extends Tt {
|
|
1687
1687
|
constructor(e) {
|
|
1688
1688
|
super(e);
|
|
1689
1689
|
}
|
|
@@ -1705,7 +1705,7 @@ class gl extends Tt {
|
|
|
1705
1705
|
};
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
1708
|
-
class
|
|
1708
|
+
class bl extends Tt {
|
|
1709
1709
|
constructor(e) {
|
|
1710
1710
|
super(e);
|
|
1711
1711
|
}
|
|
@@ -1789,18 +1789,18 @@ class Mo extends Tt {
|
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
1791
|
const Wi = [
|
|
1792
|
-
|
|
1792
|
+
dl,
|
|
1793
1793
|
Mo,
|
|
1794
|
-
fl,
|
|
1795
1794
|
pl,
|
|
1796
|
-
yl,
|
|
1797
1795
|
gl,
|
|
1798
|
-
|
|
1796
|
+
bl,
|
|
1797
|
+
yl,
|
|
1798
|
+
fl,
|
|
1799
1799
|
Ao
|
|
1800
|
-
], Bs = Wi.length,
|
|
1801
|
-
function
|
|
1802
|
-
return t.split(
|
|
1803
|
-
let n = r.trim().split(
|
|
1800
|
+
], Bs = Wi.length, ml = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, vl = "|";
|
|
1801
|
+
function wl(t, e = {}) {
|
|
1802
|
+
return t.split(vl).map((r) => {
|
|
1803
|
+
let n = r.trim().split(ml).filter((s) => s && !!s.trim()), i = [];
|
|
1804
1804
|
for (let s = 0, o = n.length; s < o; s += 1) {
|
|
1805
1805
|
const l = n[s];
|
|
1806
1806
|
let c = !1, h = -1;
|
|
@@ -1822,8 +1822,8 @@ function vl(t, e = {}) {
|
|
|
1822
1822
|
return i;
|
|
1823
1823
|
});
|
|
1824
1824
|
}
|
|
1825
|
-
const
|
|
1826
|
-
class
|
|
1825
|
+
const xl = /* @__PURE__ */ new Set([Ao.type, Mo.type]);
|
|
1826
|
+
class $l {
|
|
1827
1827
|
constructor(e, {
|
|
1828
1828
|
isCaseSensitive: r = G.isCaseSensitive,
|
|
1829
1829
|
includeMatches: n = G.includeMatches,
|
|
@@ -1843,7 +1843,7 @@ class xl {
|
|
|
1843
1843
|
location: l,
|
|
1844
1844
|
threshold: c,
|
|
1845
1845
|
distance: h
|
|
1846
|
-
}, this.pattern = r ? e : e.toLowerCase(), this.query =
|
|
1846
|
+
}, this.pattern = r ? e : e.toLowerCase(), this.query = wl(this.pattern, this.options);
|
|
1847
1847
|
}
|
|
1848
1848
|
static condition(e, r) {
|
|
1849
1849
|
return r.useExtendedSearch;
|
|
@@ -1861,12 +1861,12 @@ class xl {
|
|
|
1861
1861
|
for (let c = 0, h = r.length; c < h; c += 1) {
|
|
1862
1862
|
const p = r[c];
|
|
1863
1863
|
o.length = 0, s = 0;
|
|
1864
|
-
for (let y = 0,
|
|
1864
|
+
for (let y = 0, v = p.length; y < v; y += 1) {
|
|
1865
1865
|
const m = p[y], { isMatch: _, indices: E, score: z } = m.search(e);
|
|
1866
1866
|
if (_) {
|
|
1867
1867
|
if (s += 1, l += z, n) {
|
|
1868
1868
|
const H = m.constructor.type;
|
|
1869
|
-
|
|
1869
|
+
xl.has(H) ? o = [...o, ...E] : o.push(E);
|
|
1870
1870
|
}
|
|
1871
1871
|
} else {
|
|
1872
1872
|
l = 0, s = 0, o.length = 0;
|
|
@@ -1888,7 +1888,7 @@ class xl {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
}
|
|
1890
1890
|
const Vi = [];
|
|
1891
|
-
function
|
|
1891
|
+
function _l(...t) {
|
|
1892
1892
|
Vi.push(...t);
|
|
1893
1893
|
}
|
|
1894
1894
|
function Ki(t, e) {
|
|
@@ -1905,7 +1905,7 @@ const In = {
|
|
|
1905
1905
|
}, Gi = {
|
|
1906
1906
|
PATH: "$path",
|
|
1907
1907
|
PATTERN: "$val"
|
|
1908
|
-
}, Yi = (t) => !!(t[In.AND] || t[In.OR]),
|
|
1908
|
+
}, Yi = (t) => !!(t[In.AND] || t[In.OR]), Al = (t) => !!t[Gi.PATH], Ml = (t) => !$t(t) && vo(t) && !Yi(t), Us = (t) => ({
|
|
1909
1909
|
[In.AND]: Object.keys(t).map((e) => ({
|
|
1910
1910
|
[e]: t[e]
|
|
1911
1911
|
}))
|
|
@@ -1913,13 +1913,13 @@ const In = {
|
|
|
1913
1913
|
function So(t, e, { auto: r = !0 } = {}) {
|
|
1914
1914
|
const n = (i) => {
|
|
1915
1915
|
let s = Object.keys(i);
|
|
1916
|
-
const o =
|
|
1916
|
+
const o = Al(i);
|
|
1917
1917
|
if (!o && s.length > 1 && !Yi(i))
|
|
1918
1918
|
return n(Us(i));
|
|
1919
|
-
if (
|
|
1919
|
+
if (Ml(i)) {
|
|
1920
1920
|
const c = o ? i[Gi.PATH] : s[0], h = o ? i[Gi.PATTERN] : i[c];
|
|
1921
1921
|
if (!ht(h))
|
|
1922
|
-
throw new Error(
|
|
1922
|
+
throw new Error(Za(c));
|
|
1923
1923
|
const p = {
|
|
1924
1924
|
keyId: qi(c),
|
|
1925
1925
|
pattern: h
|
|
@@ -1932,14 +1932,14 @@ function So(t, e, { auto: r = !0 } = {}) {
|
|
|
1932
1932
|
};
|
|
1933
1933
|
return s.forEach((c) => {
|
|
1934
1934
|
const h = i[c];
|
|
1935
|
-
|
|
1935
|
+
$t(h) && h.forEach((p) => {
|
|
1936
1936
|
l.children.push(n(p));
|
|
1937
1937
|
});
|
|
1938
1938
|
}), l;
|
|
1939
1939
|
};
|
|
1940
1940
|
return Yi(t) || (t = Us(t)), n(t);
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function Sl(t, { ignoreFieldNorm: e = G.ignoreFieldNorm }) {
|
|
1943
1943
|
t.forEach((r) => {
|
|
1944
1944
|
let n = 1;
|
|
1945
1945
|
r.matches.forEach(({ key: i, norm: s, score: o }) => {
|
|
@@ -1951,10 +1951,10 @@ function Ml(t, { ignoreFieldNorm: e = G.ignoreFieldNorm }) {
|
|
|
1951
1951
|
}), r.score = n;
|
|
1952
1952
|
});
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function El(t, e) {
|
|
1955
1955
|
const r = t.matches;
|
|
1956
|
-
e.matches = [],
|
|
1957
|
-
if (!
|
|
1956
|
+
e.matches = [], Xe(r) && r.forEach((n) => {
|
|
1957
|
+
if (!Xe(n.indices) || !n.indices.length)
|
|
1958
1958
|
return;
|
|
1959
1959
|
const { indices: i, value: s } = n;
|
|
1960
1960
|
let o = {
|
|
@@ -1964,15 +1964,15 @@ function Sl(t, e) {
|
|
|
1964
1964
|
n.key && (o.key = n.key.src), n.idx > -1 && (o.refIndex = n.idx), e.matches.push(o);
|
|
1965
1965
|
});
|
|
1966
1966
|
}
|
|
1967
|
-
function
|
|
1967
|
+
function Cl(t, e) {
|
|
1968
1968
|
e.score = t.score;
|
|
1969
1969
|
}
|
|
1970
|
-
function
|
|
1970
|
+
function kl(t, e, {
|
|
1971
1971
|
includeMatches: r = G.includeMatches,
|
|
1972
1972
|
includeScore: n = G.includeScore
|
|
1973
1973
|
} = {}) {
|
|
1974
1974
|
const i = [];
|
|
1975
|
-
return r && i.push(
|
|
1975
|
+
return r && i.push(El), n && i.push(Cl), t.map((s) => {
|
|
1976
1976
|
const { idx: o } = s, l = {
|
|
1977
1977
|
item: e[o],
|
|
1978
1978
|
refIndex: o
|
|
@@ -1984,18 +1984,18 @@ function Cl(t, e, {
|
|
|
1984
1984
|
}
|
|
1985
1985
|
class Rt {
|
|
1986
1986
|
constructor(e, r = {}, n) {
|
|
1987
|
-
this.options = { ...G, ...r }, this.options.useExtendedSearch, this._keyStore = new
|
|
1987
|
+
this.options = { ...G, ...r }, this.options.useExtendedSearch, this._keyStore = new el(this.options.keys), this.setCollection(e, n);
|
|
1988
1988
|
}
|
|
1989
1989
|
setCollection(e, r) {
|
|
1990
|
-
if (this._docs = e, r && !(r instanceof
|
|
1991
|
-
throw new Error(
|
|
1990
|
+
if (this._docs = e, r && !(r instanceof gs))
|
|
1991
|
+
throw new Error(Fa);
|
|
1992
1992
|
this._myIndex = r || $o(this.options.keys, this._docs, {
|
|
1993
1993
|
getFn: this.options.getFn,
|
|
1994
1994
|
fieldNormWeight: this.options.fieldNormWeight
|
|
1995
1995
|
});
|
|
1996
1996
|
}
|
|
1997
1997
|
add(e) {
|
|
1998
|
-
|
|
1998
|
+
Xe(e) && (this._docs.push(e), this._myIndex.add(e));
|
|
1999
1999
|
}
|
|
2000
2000
|
remove(e = () => !1) {
|
|
2001
2001
|
const r = [];
|
|
@@ -2020,7 +2020,7 @@ class Rt {
|
|
|
2020
2020
|
ignoreFieldNorm: l
|
|
2021
2021
|
} = this.options;
|
|
2022
2022
|
let c = ht(e) ? ht(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
|
|
2023
|
-
return
|
|
2023
|
+
return Sl(c, { ignoreFieldNorm: l }), s && c.sort(o), mo(r) && r > -1 && (c = c.slice(0, r)), kl(c, this._docs, {
|
|
2024
2024
|
includeMatches: n,
|
|
2025
2025
|
includeScore: i
|
|
2026
2026
|
});
|
|
@@ -2028,7 +2028,7 @@ class Rt {
|
|
|
2028
2028
|
_searchStringList(e) {
|
|
2029
2029
|
const r = Ki(e, this.options), { records: n } = this._myIndex, i = [];
|
|
2030
2030
|
return n.forEach(({ v: s, i: o, n: l }) => {
|
|
2031
|
-
if (!
|
|
2031
|
+
if (!Xe(s))
|
|
2032
2032
|
return;
|
|
2033
2033
|
const { isMatch: c, score: h, indices: p } = r.searchIn(s);
|
|
2034
2034
|
c && i.push({
|
|
@@ -2041,10 +2041,10 @@ class Rt {
|
|
|
2041
2041
|
_searchLogical(e) {
|
|
2042
2042
|
const r = So(e, this.options), n = (l, c, h) => {
|
|
2043
2043
|
if (!l.children) {
|
|
2044
|
-
const { keyId: y, searcher:
|
|
2044
|
+
const { keyId: y, searcher: v } = l, m = this._findMatches({
|
|
2045
2045
|
key: this._keyStore.get(y),
|
|
2046
2046
|
value: this._myIndex.getValueForItemAtKeyId(c, y),
|
|
2047
|
-
searcher:
|
|
2047
|
+
searcher: v
|
|
2048
2048
|
});
|
|
2049
2049
|
return m && m.length ? [
|
|
2050
2050
|
{
|
|
@@ -2055,7 +2055,7 @@ class Rt {
|
|
|
2055
2055
|
] : [];
|
|
2056
2056
|
}
|
|
2057
2057
|
const p = [];
|
|
2058
|
-
for (let y = 0,
|
|
2058
|
+
for (let y = 0, v = l.children.length; y < v; y += 1) {
|
|
2059
2059
|
const m = l.children[y], _ = n(m, c, h);
|
|
2060
2060
|
if (_.length)
|
|
2061
2061
|
p.push(..._);
|
|
@@ -2065,7 +2065,7 @@ class Rt {
|
|
|
2065
2065
|
return p;
|
|
2066
2066
|
}, i = this._myIndex.records, s = {}, o = [];
|
|
2067
2067
|
return i.forEach(({ $: l, i: c }) => {
|
|
2068
|
-
if (
|
|
2068
|
+
if (Xe(l)) {
|
|
2069
2069
|
let h = n(r, l, c);
|
|
2070
2070
|
h.length && (s[c] || (s[c] = { idx: c, item: l, matches: [] }, o.push(s[c])), h.forEach(({ matches: p }) => {
|
|
2071
2071
|
s[c].matches.push(...p);
|
|
@@ -2076,7 +2076,7 @@ class Rt {
|
|
|
2076
2076
|
_searchObjectList(e) {
|
|
2077
2077
|
const r = Ki(e, this.options), { keys: n, records: i } = this._myIndex, s = [];
|
|
2078
2078
|
return i.forEach(({ $: o, i: l }) => {
|
|
2079
|
-
if (!
|
|
2079
|
+
if (!Xe(o))
|
|
2080
2080
|
return;
|
|
2081
2081
|
let c = [];
|
|
2082
2082
|
n.forEach((h, p) => {
|
|
@@ -2095,12 +2095,12 @@ class Rt {
|
|
|
2095
2095
|
}), s;
|
|
2096
2096
|
}
|
|
2097
2097
|
_findMatches({ key: e, value: r, searcher: n }) {
|
|
2098
|
-
if (!
|
|
2098
|
+
if (!Xe(r))
|
|
2099
2099
|
return [];
|
|
2100
2100
|
let i = [];
|
|
2101
|
-
if (
|
|
2101
|
+
if ($t(r))
|
|
2102
2102
|
r.forEach(({ v: s, i: o, n: l }) => {
|
|
2103
|
-
if (!
|
|
2103
|
+
if (!Xe(s))
|
|
2104
2104
|
return;
|
|
2105
2105
|
const { isMatch: c, score: h, indices: p } = n.searchIn(s);
|
|
2106
2106
|
c && i.push({
|
|
@@ -2121,10 +2121,10 @@ class Rt {
|
|
|
2121
2121
|
}
|
|
2122
2122
|
Rt.version = "7.0.0";
|
|
2123
2123
|
Rt.createIndex = $o;
|
|
2124
|
-
Rt.parseIndex =
|
|
2124
|
+
Rt.parseIndex = ll;
|
|
2125
2125
|
Rt.config = G;
|
|
2126
2126
|
Rt.parseQuery = So;
|
|
2127
|
-
$l
|
|
2127
|
+
_l($l);
|
|
2128
2128
|
function Eo(t, e) {
|
|
2129
2129
|
const r = new Rt(e.filterProperties, {
|
|
2130
2130
|
keys: ["title"]
|
|
@@ -2135,31 +2135,31 @@ function Eo(t, e) {
|
|
|
2135
2135
|
).parentElement.style.display = s.includes(o) || !n ? "" : "none";
|
|
2136
2136
|
});
|
|
2137
2137
|
}
|
|
2138
|
-
function
|
|
2138
|
+
function Ll(t, e) {
|
|
2139
2139
|
const r = t.target.getAttribute("data-close").replace("|", "-");
|
|
2140
2140
|
e.querySelector(`#filter-${r}`).reset(), e.dispatchEvent(new CustomEvent("filter")), e.requestUpdate();
|
|
2141
2141
|
}
|
|
2142
|
-
const Fi = Math.min, wr = Math.max, Bn = Math.round, Rn = Math.floor,
|
|
2142
|
+
const Fi = Math.min, wr = Math.max, Bn = Math.round, Rn = Math.floor, dt = (t) => ({
|
|
2143
2143
|
x: t,
|
|
2144
2144
|
y: t
|
|
2145
2145
|
});
|
|
2146
2146
|
function Co(t) {
|
|
2147
2147
|
return t.split("-")[0];
|
|
2148
2148
|
}
|
|
2149
|
-
function
|
|
2149
|
+
function Pl(t) {
|
|
2150
2150
|
return t.split("-")[1];
|
|
2151
2151
|
}
|
|
2152
|
-
function
|
|
2152
|
+
function Tl(t) {
|
|
2153
2153
|
return t === "x" ? "y" : "x";
|
|
2154
2154
|
}
|
|
2155
|
-
function
|
|
2155
|
+
function Rl(t) {
|
|
2156
2156
|
return t === "y" ? "height" : "width";
|
|
2157
2157
|
}
|
|
2158
2158
|
function ko(t) {
|
|
2159
2159
|
return ["top", "bottom"].includes(Co(t)) ? "y" : "x";
|
|
2160
2160
|
}
|
|
2161
|
-
function
|
|
2162
|
-
return
|
|
2161
|
+
function Ol(t) {
|
|
2162
|
+
return Tl(ko(t));
|
|
2163
2163
|
}
|
|
2164
2164
|
function Lo(t) {
|
|
2165
2165
|
const {
|
|
@@ -2184,7 +2184,7 @@ function zs(t, e, r) {
|
|
|
2184
2184
|
reference: n,
|
|
2185
2185
|
floating: i
|
|
2186
2186
|
} = t;
|
|
2187
|
-
const s = ko(e), o =
|
|
2187
|
+
const s = ko(e), o = Ol(e), l = Rl(o), c = Co(e), h = s === "y", p = n.x + n.width / 2 - i.width / 2, y = n.y + n.height / 2 - i.height / 2, v = n[l] / 2 - i[l] / 2;
|
|
2188
2188
|
let m;
|
|
2189
2189
|
switch (c) {
|
|
2190
2190
|
case "top":
|
|
@@ -2217,17 +2217,17 @@ function zs(t, e, r) {
|
|
|
2217
2217
|
y: n.y
|
|
2218
2218
|
};
|
|
2219
2219
|
}
|
|
2220
|
-
switch (
|
|
2220
|
+
switch (Pl(e)) {
|
|
2221
2221
|
case "start":
|
|
2222
|
-
m[o] -=
|
|
2222
|
+
m[o] -= v * (r && h ? -1 : 1);
|
|
2223
2223
|
break;
|
|
2224
2224
|
case "end":
|
|
2225
|
-
m[o] +=
|
|
2225
|
+
m[o] += v * (r && h ? -1 : 1);
|
|
2226
2226
|
break;
|
|
2227
2227
|
}
|
|
2228
2228
|
return m;
|
|
2229
2229
|
}
|
|
2230
|
-
const
|
|
2230
|
+
const Dl = async (t, e, r) => {
|
|
2231
2231
|
const {
|
|
2232
2232
|
placement: n = "bottom",
|
|
2233
2233
|
strategy: i = "absolute",
|
|
@@ -2241,13 +2241,13 @@ const Ol = async (t, e, r) => {
|
|
|
2241
2241
|
}), {
|
|
2242
2242
|
x: p,
|
|
2243
2243
|
y
|
|
2244
|
-
} = zs(h, n, c),
|
|
2244
|
+
} = zs(h, n, c), v = n, m = {}, _ = 0;
|
|
2245
2245
|
for (let E = 0; E < l.length; E++) {
|
|
2246
2246
|
const {
|
|
2247
2247
|
name: z,
|
|
2248
2248
|
fn: H
|
|
2249
2249
|
} = l[E], {
|
|
2250
|
-
x:
|
|
2250
|
+
x: Z,
|
|
2251
2251
|
y: Y,
|
|
2252
2252
|
data: ue,
|
|
2253
2253
|
reset: te
|
|
@@ -2255,7 +2255,7 @@ const Ol = async (t, e, r) => {
|
|
|
2255
2255
|
x: p,
|
|
2256
2256
|
y,
|
|
2257
2257
|
initialPlacement: n,
|
|
2258
|
-
placement:
|
|
2258
|
+
placement: v,
|
|
2259
2259
|
strategy: i,
|
|
2260
2260
|
middlewareData: m,
|
|
2261
2261
|
rects: h,
|
|
@@ -2265,30 +2265,30 @@ const Ol = async (t, e, r) => {
|
|
|
2265
2265
|
floating: e
|
|
2266
2266
|
}
|
|
2267
2267
|
});
|
|
2268
|
-
p =
|
|
2268
|
+
p = Z ?? p, y = Y ?? y, m = {
|
|
2269
2269
|
...m,
|
|
2270
2270
|
[z]: {
|
|
2271
2271
|
...m[z],
|
|
2272
2272
|
...ue
|
|
2273
2273
|
}
|
|
2274
|
-
}, te && _ <= 50 && (_++, typeof te == "object" && (te.placement && (
|
|
2274
|
+
}, te && _ <= 50 && (_++, typeof te == "object" && (te.placement && (v = te.placement), te.rects && (h = te.rects === !0 ? await o.getElementRects({
|
|
2275
2275
|
reference: t,
|
|
2276
2276
|
floating: e,
|
|
2277
2277
|
strategy: i
|
|
2278
2278
|
}) : te.rects), {
|
|
2279
2279
|
x: p,
|
|
2280
2280
|
y
|
|
2281
|
-
} = zs(h,
|
|
2281
|
+
} = zs(h, v, c)), E = -1);
|
|
2282
2282
|
}
|
|
2283
2283
|
return {
|
|
2284
2284
|
x: p,
|
|
2285
2285
|
y,
|
|
2286
|
-
placement:
|
|
2286
|
+
placement: v,
|
|
2287
2287
|
strategy: i,
|
|
2288
2288
|
middlewareData: m
|
|
2289
2289
|
};
|
|
2290
2290
|
};
|
|
2291
|
-
function
|
|
2291
|
+
function Xn() {
|
|
2292
2292
|
return typeof window < "u";
|
|
2293
2293
|
}
|
|
2294
2294
|
function Er(t) {
|
|
@@ -2298,21 +2298,21 @@ function Qe(t) {
|
|
|
2298
2298
|
var e;
|
|
2299
2299
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
2300
2300
|
}
|
|
2301
|
-
function
|
|
2301
|
+
function pt(t) {
|
|
2302
2302
|
var e;
|
|
2303
2303
|
return (e = (Po(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
2304
2304
|
}
|
|
2305
2305
|
function Po(t) {
|
|
2306
|
-
return
|
|
2306
|
+
return Xn() ? t instanceof Node || t instanceof Qe(t).Node : !1;
|
|
2307
2307
|
}
|
|
2308
2308
|
function st(t) {
|
|
2309
|
-
return
|
|
2309
|
+
return Xn() ? t instanceof Element || t instanceof Qe(t).Element : !1;
|
|
2310
2310
|
}
|
|
2311
|
-
function
|
|
2312
|
-
return
|
|
2311
|
+
function ft(t) {
|
|
2312
|
+
return Xn() ? t instanceof HTMLElement || t instanceof Qe(t).HTMLElement : !1;
|
|
2313
2313
|
}
|
|
2314
2314
|
function qs(t) {
|
|
2315
|
-
return !
|
|
2315
|
+
return !Xn() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof Qe(t).ShadowRoot;
|
|
2316
2316
|
}
|
|
2317
2317
|
function ln(t) {
|
|
2318
2318
|
const {
|
|
@@ -2323,7 +2323,7 @@ function ln(t) {
|
|
|
2323
2323
|
} = ot(t);
|
|
2324
2324
|
return /auto|scroll|overlay|hidden|clip/.test(e + n + r) && !["inline", "contents"].includes(i);
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2326
|
+
function jl(t) {
|
|
2327
2327
|
return ["table", "td", "th"].includes(Er(t));
|
|
2328
2328
|
}
|
|
2329
2329
|
function Jn(t) {
|
|
@@ -2335,14 +2335,14 @@ function Jn(t) {
|
|
|
2335
2335
|
}
|
|
2336
2336
|
});
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2339
|
-
const e =
|
|
2338
|
+
function ys(t) {
|
|
2339
|
+
const e = bs(), r = st(t) ? ot(t) : t;
|
|
2340
2340
|
return r.transform !== "none" || r.perspective !== "none" || (r.containerType ? r.containerType !== "normal" : !1) || !e && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !e && (r.filter ? r.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((n) => (r.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (r.contain || "").includes(n));
|
|
2341
2341
|
}
|
|
2342
|
-
function
|
|
2342
|
+
function Nl(t) {
|
|
2343
2343
|
let e = Lt(t);
|
|
2344
|
-
for (;
|
|
2345
|
-
if (
|
|
2344
|
+
for (; ft(e) && !_r(e); ) {
|
|
2345
|
+
if (ys(e))
|
|
2346
2346
|
return e;
|
|
2347
2347
|
if (Jn(e))
|
|
2348
2348
|
return null;
|
|
@@ -2350,7 +2350,7 @@ function jl(t) {
|
|
|
2350
2350
|
}
|
|
2351
2351
|
return null;
|
|
2352
2352
|
}
|
|
2353
|
-
function
|
|
2353
|
+
function bs() {
|
|
2354
2354
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
2355
2355
|
}
|
|
2356
2356
|
function _r(t) {
|
|
@@ -2376,44 +2376,44 @@ function Lt(t) {
|
|
|
2376
2376
|
t.assignedSlot || // DOM Element detected.
|
|
2377
2377
|
t.parentNode || // ShadowRoot detected.
|
|
2378
2378
|
qs(t) && t.host || // Fallback.
|
|
2379
|
-
|
|
2379
|
+
pt(t)
|
|
2380
2380
|
);
|
|
2381
2381
|
return qs(e) ? e.host : e;
|
|
2382
2382
|
}
|
|
2383
2383
|
function To(t) {
|
|
2384
2384
|
const e = Lt(t);
|
|
2385
|
-
return _r(e) ? t.ownerDocument ? t.ownerDocument.body : t.body :
|
|
2385
|
+
return _r(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : ft(e) && ln(e) ? e : To(e);
|
|
2386
2386
|
}
|
|
2387
2387
|
function tn(t, e, r) {
|
|
2388
2388
|
var n;
|
|
2389
2389
|
e === void 0 && (e = []), r === void 0 && (r = !0);
|
|
2390
2390
|
const i = To(t), s = i === ((n = t.ownerDocument) == null ? void 0 : n.body), o = Qe(i);
|
|
2391
2391
|
if (s) {
|
|
2392
|
-
const l =
|
|
2392
|
+
const l = Zi(o);
|
|
2393
2393
|
return e.concat(o, o.visualViewport || [], ln(i) ? i : [], l && r ? tn(l) : []);
|
|
2394
2394
|
}
|
|
2395
2395
|
return e.concat(i, tn(i, [], r));
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2397
|
+
function Zi(t) {
|
|
2398
2398
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
2399
2399
|
}
|
|
2400
2400
|
function Ro(t) {
|
|
2401
2401
|
const e = ot(t);
|
|
2402
2402
|
let r = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
2403
|
-
const i =
|
|
2403
|
+
const i = ft(t), s = i ? t.offsetWidth : r, o = i ? t.offsetHeight : n, l = Bn(r) !== s || Bn(n) !== o;
|
|
2404
2404
|
return l && (r = s, n = o), {
|
|
2405
2405
|
width: r,
|
|
2406
2406
|
height: n,
|
|
2407
2407
|
$: l
|
|
2408
2408
|
};
|
|
2409
2409
|
}
|
|
2410
|
-
function
|
|
2410
|
+
function ms(t) {
|
|
2411
2411
|
return st(t) ? t : t.contextElement;
|
|
2412
2412
|
}
|
|
2413
2413
|
function xr(t) {
|
|
2414
|
-
const e =
|
|
2415
|
-
if (!
|
|
2416
|
-
return
|
|
2414
|
+
const e = ms(t);
|
|
2415
|
+
if (!ft(e))
|
|
2416
|
+
return dt(1);
|
|
2417
2417
|
const r = e.getBoundingClientRect(), {
|
|
2418
2418
|
width: n,
|
|
2419
2419
|
height: i,
|
|
@@ -2425,30 +2425,30 @@ function xr(t) {
|
|
|
2425
2425
|
y: l
|
|
2426
2426
|
};
|
|
2427
2427
|
}
|
|
2428
|
-
const
|
|
2428
|
+
const Hl = /* @__PURE__ */ dt(0);
|
|
2429
2429
|
function Oo(t) {
|
|
2430
2430
|
const e = Qe(t);
|
|
2431
|
-
return !
|
|
2431
|
+
return !bs() || !e.visualViewport ? Hl : {
|
|
2432
2432
|
x: e.visualViewport.offsetLeft,
|
|
2433
2433
|
y: e.visualViewport.offsetTop
|
|
2434
2434
|
};
|
|
2435
2435
|
}
|
|
2436
|
-
function
|
|
2436
|
+
function Il(t, e, r) {
|
|
2437
2437
|
return e === void 0 && (e = !1), !r || e && r !== Qe(t) ? !1 : e;
|
|
2438
2438
|
}
|
|
2439
|
-
function
|
|
2439
|
+
function Xt(t, e, r, n) {
|
|
2440
2440
|
e === void 0 && (e = !1), r === void 0 && (r = !1);
|
|
2441
|
-
const i = t.getBoundingClientRect(), s =
|
|
2442
|
-
let o =
|
|
2441
|
+
const i = t.getBoundingClientRect(), s = ms(t);
|
|
2442
|
+
let o = dt(1);
|
|
2443
2443
|
e && (n ? st(n) && (o = xr(n)) : o = xr(t));
|
|
2444
|
-
const l =
|
|
2444
|
+
const l = Il(s, r, n) ? Oo(s) : dt(0);
|
|
2445
2445
|
let c = (i.left + l.x) / o.x, h = (i.top + l.y) / o.y, p = i.width / o.x, y = i.height / o.y;
|
|
2446
2446
|
if (s) {
|
|
2447
|
-
const
|
|
2448
|
-
let _ =
|
|
2447
|
+
const v = Qe(s), m = n && st(n) ? Qe(n) : n;
|
|
2448
|
+
let _ = v, E = Zi(_);
|
|
2449
2449
|
for (; E && n && m !== _; ) {
|
|
2450
|
-
const z = xr(E), H = E.getBoundingClientRect(),
|
|
2451
|
-
c *= z.x, h *= z.y, p *= z.x, y *= z.y, c += Y, h += ue, _ = Qe(E), E =
|
|
2450
|
+
const z = xr(E), H = E.getBoundingClientRect(), Z = ot(E), Y = H.left + (E.clientLeft + parseFloat(Z.paddingLeft)) * z.x, ue = H.top + (E.clientTop + parseFloat(Z.paddingTop)) * z.y;
|
|
2451
|
+
c *= z.x, h *= z.y, p *= z.x, y *= z.y, c += Y, h += ue, _ = Qe(E), E = Zi(_);
|
|
2452
2452
|
}
|
|
2453
2453
|
}
|
|
2454
2454
|
return Lo({
|
|
@@ -2458,42 +2458,54 @@ function Zt(t, e, r, n) {
|
|
|
2458
2458
|
y: h
|
|
2459
2459
|
});
|
|
2460
2460
|
}
|
|
2461
|
-
function
|
|
2461
|
+
function vs(t, e) {
|
|
2462
|
+
const r = Qn(t).scrollLeft;
|
|
2463
|
+
return e ? e.left + r : Xt(pt(t)).left + r;
|
|
2464
|
+
}
|
|
2465
|
+
function Do(t, e, r) {
|
|
2466
|
+
r === void 0 && (r = !1);
|
|
2467
|
+
const n = t.getBoundingClientRect(), i = n.left + e.scrollLeft - (r ? 0 : (
|
|
2468
|
+
// RTL <body> scrollbar.
|
|
2469
|
+
vs(t, n)
|
|
2470
|
+
)), s = n.top + e.scrollTop;
|
|
2471
|
+
return {
|
|
2472
|
+
x: i,
|
|
2473
|
+
y: s
|
|
2474
|
+
};
|
|
2475
|
+
}
|
|
2476
|
+
function Bl(t) {
|
|
2462
2477
|
let {
|
|
2463
2478
|
elements: e,
|
|
2464
2479
|
rect: r,
|
|
2465
2480
|
offsetParent: n,
|
|
2466
2481
|
strategy: i
|
|
2467
2482
|
} = t;
|
|
2468
|
-
const s = i === "fixed", o =
|
|
2483
|
+
const s = i === "fixed", o = pt(n), l = e ? Jn(e.floating) : !1;
|
|
2469
2484
|
if (n === o || l && s)
|
|
2470
2485
|
return r;
|
|
2471
2486
|
let c = {
|
|
2472
2487
|
scrollLeft: 0,
|
|
2473
2488
|
scrollTop: 0
|
|
2474
|
-
}, h =
|
|
2475
|
-
const p =
|
|
2476
|
-
if ((y || !y && !s) && ((Er(n) !== "body" || ln(o)) && (c = Qn(n)),
|
|
2477
|
-
const
|
|
2478
|
-
h = xr(n), p.x =
|
|
2489
|
+
}, h = dt(1);
|
|
2490
|
+
const p = dt(0), y = ft(n);
|
|
2491
|
+
if ((y || !y && !s) && ((Er(n) !== "body" || ln(o)) && (c = Qn(n)), ft(n))) {
|
|
2492
|
+
const m = Xt(n);
|
|
2493
|
+
h = xr(n), p.x = m.x + n.clientLeft, p.y = m.y + n.clientTop;
|
|
2479
2494
|
}
|
|
2495
|
+
const v = o && !y && !s ? Do(o, c, !0) : dt(0);
|
|
2480
2496
|
return {
|
|
2481
2497
|
width: r.width * h.x,
|
|
2482
2498
|
height: r.height * h.y,
|
|
2483
|
-
x: r.x * h.x - c.scrollLeft * h.x + p.x,
|
|
2484
|
-
y: r.y * h.y - c.scrollTop * h.y + p.y
|
|
2499
|
+
x: r.x * h.x - c.scrollLeft * h.x + p.x + v.x,
|
|
2500
|
+
y: r.y * h.y - c.scrollTop * h.y + p.y + v.y
|
|
2485
2501
|
};
|
|
2486
2502
|
}
|
|
2487
|
-
function
|
|
2503
|
+
function Ul(t) {
|
|
2488
2504
|
return Array.from(t.getClientRects());
|
|
2489
2505
|
}
|
|
2490
|
-
function
|
|
2491
|
-
const r = Qn(t).
|
|
2492
|
-
|
|
2493
|
-
}
|
|
2494
|
-
function Ul(t) {
|
|
2495
|
-
const e = ft(t), r = Qn(t), n = t.ownerDocument.body, i = wr(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), s = wr(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
2496
|
-
let o = -r.scrollLeft + Zi(t);
|
|
2506
|
+
function zl(t) {
|
|
2507
|
+
const e = pt(t), r = Qn(t), n = t.ownerDocument.body, i = wr(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), s = wr(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
2508
|
+
let o = -r.scrollLeft + vs(t);
|
|
2497
2509
|
const l = -r.scrollTop;
|
|
2498
2510
|
return ot(n).direction === "rtl" && (o += wr(e.clientWidth, n.clientWidth) - i), {
|
|
2499
2511
|
width: i,
|
|
@@ -2502,12 +2514,12 @@ function Ul(t) {
|
|
|
2502
2514
|
y: l
|
|
2503
2515
|
};
|
|
2504
2516
|
}
|
|
2505
|
-
function
|
|
2506
|
-
const r = Qe(t), n =
|
|
2517
|
+
function ql(t, e) {
|
|
2518
|
+
const r = Qe(t), n = pt(t), i = r.visualViewport;
|
|
2507
2519
|
let s = n.clientWidth, o = n.clientHeight, l = 0, c = 0;
|
|
2508
2520
|
if (i) {
|
|
2509
2521
|
s = i.width, o = i.height;
|
|
2510
|
-
const h =
|
|
2522
|
+
const h = bs();
|
|
2511
2523
|
(!h || h && e === "fixed") && (l = i.offsetLeft, c = i.offsetTop);
|
|
2512
2524
|
}
|
|
2513
2525
|
return {
|
|
@@ -2517,8 +2529,8 @@ function zl(t, e) {
|
|
|
2517
2529
|
y: c
|
|
2518
2530
|
};
|
|
2519
2531
|
}
|
|
2520
|
-
function
|
|
2521
|
-
const r =
|
|
2532
|
+
function Wl(t, e) {
|
|
2533
|
+
const r = Xt(t, !0, e === "fixed"), n = r.top + t.clientTop, i = r.left + t.clientLeft, s = ft(t) ? xr(t) : dt(1), o = t.clientWidth * s.x, l = t.clientHeight * s.y, c = i * s.x, h = n * s.y;
|
|
2522
2534
|
return {
|
|
2523
2535
|
width: o,
|
|
2524
2536
|
height: l,
|
|
@@ -2529,26 +2541,27 @@ function ql(t, e) {
|
|
|
2529
2541
|
function Ws(t, e, r) {
|
|
2530
2542
|
let n;
|
|
2531
2543
|
if (e === "viewport")
|
|
2532
|
-
n =
|
|
2544
|
+
n = ql(t, r);
|
|
2533
2545
|
else if (e === "document")
|
|
2534
|
-
n =
|
|
2546
|
+
n = zl(pt(t));
|
|
2535
2547
|
else if (st(e))
|
|
2536
|
-
n =
|
|
2548
|
+
n = Wl(e, r);
|
|
2537
2549
|
else {
|
|
2538
2550
|
const i = Oo(t);
|
|
2539
2551
|
n = {
|
|
2540
|
-
...e,
|
|
2541
2552
|
x: e.x - i.x,
|
|
2542
|
-
y: e.y - i.y
|
|
2553
|
+
y: e.y - i.y,
|
|
2554
|
+
width: e.width,
|
|
2555
|
+
height: e.height
|
|
2543
2556
|
};
|
|
2544
2557
|
}
|
|
2545
2558
|
return Lo(n);
|
|
2546
2559
|
}
|
|
2547
|
-
function
|
|
2560
|
+
function jo(t, e) {
|
|
2548
2561
|
const r = Lt(t);
|
|
2549
|
-
return r === e || !st(r) || _r(r) ? !1 : ot(r).position === "fixed" ||
|
|
2562
|
+
return r === e || !st(r) || _r(r) ? !1 : ot(r).position === "fixed" || jo(r, e);
|
|
2550
2563
|
}
|
|
2551
|
-
function
|
|
2564
|
+
function Vl(t, e) {
|
|
2552
2565
|
const r = e.get(t);
|
|
2553
2566
|
if (r)
|
|
2554
2567
|
return r;
|
|
@@ -2556,19 +2569,19 @@ function Wl(t, e) {
|
|
|
2556
2569
|
const s = ot(t).position === "fixed";
|
|
2557
2570
|
let o = s ? Lt(t) : t;
|
|
2558
2571
|
for (; st(o) && !_r(o); ) {
|
|
2559
|
-
const l = ot(o), c =
|
|
2560
|
-
!c && l.position === "fixed" && (i = null), (s ? !c && !i : !c && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || ln(o) && !c &&
|
|
2572
|
+
const l = ot(o), c = ys(o);
|
|
2573
|
+
!c && l.position === "fixed" && (i = null), (s ? !c && !i : !c && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || ln(o) && !c && jo(t, o)) ? n = n.filter((p) => p !== o) : i = l, o = Lt(o);
|
|
2561
2574
|
}
|
|
2562
2575
|
return e.set(t, n), n;
|
|
2563
2576
|
}
|
|
2564
|
-
function
|
|
2577
|
+
function Kl(t) {
|
|
2565
2578
|
let {
|
|
2566
2579
|
element: e,
|
|
2567
2580
|
boundary: r,
|
|
2568
2581
|
rootBoundary: n,
|
|
2569
2582
|
strategy: i
|
|
2570
2583
|
} = t;
|
|
2571
|
-
const o = [...r === "clippingAncestors" ? Jn(e) ? [] :
|
|
2584
|
+
const o = [...r === "clippingAncestors" ? Jn(e) ? [] : Vl(e, this._c) : [].concat(r), n], l = o[0], c = o.reduce((h, p) => {
|
|
2572
2585
|
const y = Ws(e, p, i);
|
|
2573
2586
|
return h.top = wr(y.top, h.top), h.right = Fi(y.right, h.right), h.bottom = Fi(y.bottom, h.bottom), h.left = wr(y.left, h.left), h;
|
|
2574
2587
|
}, Ws(e, l, i));
|
|
@@ -2579,7 +2592,7 @@ function Vl(t) {
|
|
|
2579
2592
|
y: c.top
|
|
2580
2593
|
};
|
|
2581
2594
|
}
|
|
2582
|
-
function
|
|
2595
|
+
function Gl(t) {
|
|
2583
2596
|
const {
|
|
2584
2597
|
width: e,
|
|
2585
2598
|
height: r
|
|
@@ -2589,28 +2602,22 @@ function Kl(t) {
|
|
|
2589
2602
|
height: r
|
|
2590
2603
|
};
|
|
2591
2604
|
}
|
|
2592
|
-
function
|
|
2593
|
-
const n =
|
|
2605
|
+
function Yl(t, e, r) {
|
|
2606
|
+
const n = ft(e), i = pt(e), s = r === "fixed", o = Xt(t, !0, s, e);
|
|
2594
2607
|
let l = {
|
|
2595
2608
|
scrollLeft: 0,
|
|
2596
2609
|
scrollTop: 0
|
|
2597
2610
|
};
|
|
2598
|
-
const c =
|
|
2611
|
+
const c = dt(0);
|
|
2599
2612
|
if (n || !n && !s)
|
|
2600
2613
|
if ((Er(e) !== "body" || ln(i)) && (l = Qn(e)), n) {
|
|
2601
|
-
const
|
|
2602
|
-
c.x =
|
|
2603
|
-
} else i && (c.x =
|
|
2604
|
-
|
|
2605
|
-
if (i && !n && !s) {
|
|
2606
|
-
const m = i.getBoundingClientRect();
|
|
2607
|
-
p = m.top + l.scrollTop, h = m.left + l.scrollLeft - // RTL <body> scrollbar.
|
|
2608
|
-
Zi(i, m);
|
|
2609
|
-
}
|
|
2610
|
-
const y = o.left + l.scrollLeft - c.x - h, w = o.top + l.scrollTop - c.y - p;
|
|
2614
|
+
const v = Xt(e, !0, s, e);
|
|
2615
|
+
c.x = v.x + e.clientLeft, c.y = v.y + e.clientTop;
|
|
2616
|
+
} else i && (c.x = vs(i));
|
|
2617
|
+
const h = i && !n && !s ? Do(i, l) : dt(0), p = o.left + l.scrollLeft - c.x - h.x, y = o.top + l.scrollTop - c.y - h.y;
|
|
2611
2618
|
return {
|
|
2612
|
-
x:
|
|
2613
|
-
y
|
|
2619
|
+
x: p,
|
|
2620
|
+
y,
|
|
2614
2621
|
width: o.width,
|
|
2615
2622
|
height: o.height
|
|
2616
2623
|
};
|
|
@@ -2619,18 +2626,18 @@ function ji(t) {
|
|
|
2619
2626
|
return ot(t).position === "static";
|
|
2620
2627
|
}
|
|
2621
2628
|
function Vs(t, e) {
|
|
2622
|
-
if (!
|
|
2629
|
+
if (!ft(t) || ot(t).position === "fixed")
|
|
2623
2630
|
return null;
|
|
2624
2631
|
if (e)
|
|
2625
2632
|
return e(t);
|
|
2626
2633
|
let r = t.offsetParent;
|
|
2627
|
-
return
|
|
2634
|
+
return pt(t) === r && (r = r.ownerDocument.body), r;
|
|
2628
2635
|
}
|
|
2629
|
-
function
|
|
2636
|
+
function No(t, e) {
|
|
2630
2637
|
const r = Qe(t);
|
|
2631
2638
|
if (Jn(t))
|
|
2632
2639
|
return r;
|
|
2633
|
-
if (!
|
|
2640
|
+
if (!ft(t)) {
|
|
2634
2641
|
let i = Lt(t);
|
|
2635
2642
|
for (; i && !_r(i); ) {
|
|
2636
2643
|
if (st(i) && !ji(i))
|
|
@@ -2640,14 +2647,14 @@ function jo(t, e) {
|
|
|
2640
2647
|
return r;
|
|
2641
2648
|
}
|
|
2642
2649
|
let n = Vs(t, e);
|
|
2643
|
-
for (; n &&
|
|
2650
|
+
for (; n && jl(n) && ji(n); )
|
|
2644
2651
|
n = Vs(n, e);
|
|
2645
|
-
return n && _r(n) && ji(n) && !
|
|
2652
|
+
return n && _r(n) && ji(n) && !ys(n) ? r : n || Nl(t) || r;
|
|
2646
2653
|
}
|
|
2647
|
-
const
|
|
2648
|
-
const e = this.getOffsetParent ||
|
|
2654
|
+
const Fl = async function(t) {
|
|
2655
|
+
const e = this.getOffsetParent || No, r = this.getDimensions, n = await r(t.floating);
|
|
2649
2656
|
return {
|
|
2650
|
-
reference:
|
|
2657
|
+
reference: Yl(t.reference, await e(t.floating), t.strategy),
|
|
2651
2658
|
floating: {
|
|
2652
2659
|
x: 0,
|
|
2653
2660
|
y: 0,
|
|
@@ -2656,24 +2663,24 @@ const Yl = async function(t) {
|
|
|
2656
2663
|
}
|
|
2657
2664
|
};
|
|
2658
2665
|
};
|
|
2659
|
-
function
|
|
2666
|
+
function Zl(t) {
|
|
2660
2667
|
return ot(t).direction === "rtl";
|
|
2661
2668
|
}
|
|
2662
2669
|
const Xl = {
|
|
2663
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
2664
|
-
getDocumentElement:
|
|
2665
|
-
getClippingRect:
|
|
2666
|
-
getOffsetParent:
|
|
2667
|
-
getElementRects:
|
|
2668
|
-
getClientRects:
|
|
2669
|
-
getDimensions:
|
|
2670
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Bl,
|
|
2671
|
+
getDocumentElement: pt,
|
|
2672
|
+
getClippingRect: Kl,
|
|
2673
|
+
getOffsetParent: No,
|
|
2674
|
+
getElementRects: Fl,
|
|
2675
|
+
getClientRects: Ul,
|
|
2676
|
+
getDimensions: Gl,
|
|
2670
2677
|
getScale: xr,
|
|
2671
2678
|
isElement: st,
|
|
2672
|
-
isRTL:
|
|
2679
|
+
isRTL: Zl
|
|
2673
2680
|
};
|
|
2674
|
-
function
|
|
2681
|
+
function Jl(t, e) {
|
|
2675
2682
|
let r = null, n;
|
|
2676
|
-
const i =
|
|
2683
|
+
const i = pt(t);
|
|
2677
2684
|
function s() {
|
|
2678
2685
|
var l;
|
|
2679
2686
|
clearTimeout(n), (l = r) == null || l.disconnect(), r = null;
|
|
@@ -2684,21 +2691,21 @@ function Zl(t, e) {
|
|
|
2684
2691
|
left: h,
|
|
2685
2692
|
top: p,
|
|
2686
2693
|
width: y,
|
|
2687
|
-
height:
|
|
2694
|
+
height: v
|
|
2688
2695
|
} = t.getBoundingClientRect();
|
|
2689
|
-
if (l || e(), !y || !
|
|
2696
|
+
if (l || e(), !y || !v)
|
|
2690
2697
|
return;
|
|
2691
|
-
const m = Rn(p), _ = Rn(i.clientWidth - (h + y)), E = Rn(i.clientHeight - (p +
|
|
2698
|
+
const m = Rn(p), _ = Rn(i.clientWidth - (h + y)), E = Rn(i.clientHeight - (p + v)), z = Rn(h), Z = {
|
|
2692
2699
|
rootMargin: -m + "px " + -_ + "px " + -E + "px " + -z + "px",
|
|
2693
2700
|
threshold: wr(0, Fi(1, c)) || 1
|
|
2694
2701
|
};
|
|
2695
2702
|
let Y = !0;
|
|
2696
2703
|
function ue(te) {
|
|
2697
|
-
const
|
|
2698
|
-
if (
|
|
2704
|
+
const X = te[0].intersectionRatio;
|
|
2705
|
+
if (X !== c) {
|
|
2699
2706
|
if (!Y)
|
|
2700
2707
|
return o();
|
|
2701
|
-
|
|
2708
|
+
X ? o(!1, X) : n = setTimeout(() => {
|
|
2702
2709
|
o(!1, 1e-7);
|
|
2703
2710
|
}, 1e3);
|
|
2704
2711
|
}
|
|
@@ -2706,18 +2713,18 @@ function Zl(t, e) {
|
|
|
2706
2713
|
}
|
|
2707
2714
|
try {
|
|
2708
2715
|
r = new IntersectionObserver(ue, {
|
|
2709
|
-
...
|
|
2716
|
+
...Z,
|
|
2710
2717
|
// Handle <iframe>s
|
|
2711
2718
|
root: i.ownerDocument
|
|
2712
2719
|
});
|
|
2713
2720
|
} catch {
|
|
2714
|
-
r = new IntersectionObserver(ue,
|
|
2721
|
+
r = new IntersectionObserver(ue, Z);
|
|
2715
2722
|
}
|
|
2716
2723
|
r.observe(t);
|
|
2717
2724
|
}
|
|
2718
2725
|
return o(!0), s;
|
|
2719
2726
|
}
|
|
2720
|
-
function
|
|
2727
|
+
function Ql(t, e, r, n) {
|
|
2721
2728
|
n === void 0 && (n = {});
|
|
2722
2729
|
const {
|
|
2723
2730
|
ancestorScroll: i = !0,
|
|
@@ -2725,35 +2732,35 @@ function Jl(t, e, r, n) {
|
|
|
2725
2732
|
elementResize: o = typeof ResizeObserver == "function",
|
|
2726
2733
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
2727
2734
|
animationFrame: c = !1
|
|
2728
|
-
} = n, h =
|
|
2735
|
+
} = n, h = ms(t), p = i || s ? [...h ? tn(h) : [], ...tn(e)] : [];
|
|
2729
2736
|
p.forEach((H) => {
|
|
2730
2737
|
i && H.addEventListener("scroll", r, {
|
|
2731
2738
|
passive: !0
|
|
2732
2739
|
}), s && H.addEventListener("resize", r);
|
|
2733
2740
|
});
|
|
2734
|
-
const y = h && l ?
|
|
2735
|
-
let
|
|
2741
|
+
const y = h && l ? Jl(h, r) : null;
|
|
2742
|
+
let v = -1, m = null;
|
|
2736
2743
|
o && (m = new ResizeObserver((H) => {
|
|
2737
|
-
let [
|
|
2738
|
-
|
|
2744
|
+
let [Z] = H;
|
|
2745
|
+
Z && Z.target === h && m && (m.unobserve(e), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
|
|
2739
2746
|
var Y;
|
|
2740
2747
|
(Y = m) == null || Y.observe(e);
|
|
2741
2748
|
})), r();
|
|
2742
2749
|
}), h && !c && m.observe(h), m.observe(e));
|
|
2743
|
-
let _, E = c ?
|
|
2750
|
+
let _, E = c ? Xt(t) : null;
|
|
2744
2751
|
c && z();
|
|
2745
2752
|
function z() {
|
|
2746
|
-
const H =
|
|
2753
|
+
const H = Xt(t);
|
|
2747
2754
|
E && (H.x !== E.x || H.y !== E.y || H.width !== E.width || H.height !== E.height) && r(), E = H, _ = requestAnimationFrame(z);
|
|
2748
2755
|
}
|
|
2749
2756
|
return r(), () => {
|
|
2750
2757
|
var H;
|
|
2751
|
-
p.forEach((
|
|
2752
|
-
i &&
|
|
2758
|
+
p.forEach((Z) => {
|
|
2759
|
+
i && Z.removeEventListener("scroll", r), s && Z.removeEventListener("resize", r);
|
|
2753
2760
|
}), y == null || y(), (H = m) == null || H.disconnect(), m = null, c && cancelAnimationFrame(_);
|
|
2754
2761
|
};
|
|
2755
2762
|
}
|
|
2756
|
-
const
|
|
2763
|
+
const ec = (t, e, r) => {
|
|
2757
2764
|
const n = /* @__PURE__ */ new Map(), i = {
|
|
2758
2765
|
platform: Xl,
|
|
2759
2766
|
...r
|
|
@@ -2761,17 +2768,17 @@ const Ql = (t, e, r) => {
|
|
|
2761
2768
|
...i.platform,
|
|
2762
2769
|
_c: n
|
|
2763
2770
|
};
|
|
2764
|
-
return
|
|
2771
|
+
return Dl(t, e, {
|
|
2765
2772
|
...i,
|
|
2766
2773
|
platform: s
|
|
2767
2774
|
});
|
|
2768
2775
|
};
|
|
2769
|
-
function
|
|
2776
|
+
function tc(t) {
|
|
2770
2777
|
const e = t.renderRoot.querySelector(
|
|
2771
2778
|
".inline-container-wrapper"
|
|
2772
2779
|
), r = t.renderRoot.querySelector("[popover]");
|
|
2773
|
-
return
|
|
2774
|
-
r.matches(":popover-open") &&
|
|
2780
|
+
return Ql(e, r, () => {
|
|
2781
|
+
r.matches(":popover-open") && ec(e, r, { strategy: "fixed" }).then(
|
|
2775
2782
|
({ x: i, y: s }) => {
|
|
2776
2783
|
Object.assign(r.style, {
|
|
2777
2784
|
left: `${i}px`,
|
|
@@ -2784,36 +2791,36 @@ function ec(t) {
|
|
|
2784
2791
|
animationFrame: !0
|
|
2785
2792
|
});
|
|
2786
2793
|
}
|
|
2787
|
-
function
|
|
2794
|
+
function Ho(t) {
|
|
2788
2795
|
t.renderRoot.querySelector(
|
|
2789
2796
|
"#eox-itemfilter-input-search"
|
|
2790
2797
|
).value = "", Eo({ target: { value: "" } }, t);
|
|
2791
2798
|
}
|
|
2792
|
-
function
|
|
2799
|
+
function rc(t, e) {
|
|
2793
2800
|
e.inlineMode && t.stopPropagation();
|
|
2794
2801
|
}
|
|
2795
|
-
function
|
|
2802
|
+
function nc(t) {
|
|
2796
2803
|
t.inlineMode && (t.showDropdown = !0);
|
|
2797
2804
|
}
|
|
2798
|
-
function nc(t, e) {
|
|
2799
|
-
e.inlineMode && (t.stopPropagation(), e.showDropdown = !0);
|
|
2800
|
-
}
|
|
2801
2805
|
function ic(t, e) {
|
|
2802
|
-
e.inlineMode && t.
|
|
2806
|
+
e.inlineMode && (t.stopPropagation(), e.showDropdown = !0);
|
|
2803
2807
|
}
|
|
2804
2808
|
function sc(t, e) {
|
|
2805
|
-
e.inlineMode && t.
|
|
2809
|
+
e.inlineMode && t.key === "Escape" && e.showDropdown && (Ho(e), e.showDropdown = !1);
|
|
2806
2810
|
}
|
|
2807
2811
|
function oc(t, e) {
|
|
2808
|
-
|
|
2812
|
+
e.inlineMode && t.target.tagName !== "DROPDOWN-FORM" && t.target.tagName !== "EOX-ITEMFILTER" && e.showDropdown && (Ho(e), e.showDropdown = !1);
|
|
2813
|
+
}
|
|
2814
|
+
function ac(t, e) {
|
|
2815
|
+
var r = 0, n = 0, i = 0, s = 0, o = 0, l = 0, c = 0, h = 0, p = null, y = null, v = t[0], m = t[1], _ = e.length;
|
|
2809
2816
|
for (r; r < _; r++) {
|
|
2810
2817
|
n = 0;
|
|
2811
2818
|
var E = e[r].length - 1, z = e[r];
|
|
2812
2819
|
if (p = z[0], p[0] !== z[E][0] && p[1] !== z[E][1])
|
|
2813
2820
|
throw new Error("First and last coordinates in a ring must be the same");
|
|
2814
|
-
for (o = p[0] -
|
|
2821
|
+
for (o = p[0] - v, l = p[1] - m, n; n < E; n++) {
|
|
2815
2822
|
if (y = z[n + 1], h = y[1] - m, l < 0 && h < 0 || l > 0 && h > 0) {
|
|
2816
|
-
p = y, l = h, o = p[0] -
|
|
2823
|
+
p = y, l = h, o = p[0] - v;
|
|
2817
2824
|
continue;
|
|
2818
2825
|
}
|
|
2819
2826
|
if (c = y[0] - t[0], h > 0 && l <= 0) {
|
|
@@ -2847,7 +2854,7 @@ function Jt(t, e, r = {}) {
|
|
|
2847
2854
|
const n = { type: "Feature" };
|
|
2848
2855
|
return (r.id === 0 || r.id) && (n.id = r.id), r.bbox && (n.bbox = r.bbox), n.properties = e || {}, n.geometry = t, n;
|
|
2849
2856
|
}
|
|
2850
|
-
function
|
|
2857
|
+
function lc(t, e, r = {}) {
|
|
2851
2858
|
if (!t)
|
|
2852
2859
|
throw new Error("coordinates is required");
|
|
2853
2860
|
if (!Array.isArray(t))
|
|
@@ -2861,7 +2868,7 @@ function ac(t, e, r = {}) {
|
|
|
2861
2868
|
coordinates: t
|
|
2862
2869
|
}, e, r);
|
|
2863
2870
|
}
|
|
2864
|
-
function
|
|
2871
|
+
function cc(t, e, r = {}) {
|
|
2865
2872
|
if (t.length < 2)
|
|
2866
2873
|
throw new Error("coordinates must be an array of two or more positions");
|
|
2867
2874
|
return Jt({
|
|
@@ -2869,11 +2876,11 @@ function lc(t, e, r = {}) {
|
|
|
2869
2876
|
coordinates: t
|
|
2870
2877
|
}, e, r);
|
|
2871
2878
|
}
|
|
2872
|
-
function
|
|
2879
|
+
function Xi(t, e = {}) {
|
|
2873
2880
|
const r = { type: "FeatureCollection" };
|
|
2874
2881
|
return e.id && (r.id = e.id), e.bbox && (r.bbox = e.bbox), r.features = t, r;
|
|
2875
2882
|
}
|
|
2876
|
-
function
|
|
2883
|
+
function uc(t, e, r = {}) {
|
|
2877
2884
|
return Jt({
|
|
2878
2885
|
type: "MultiLineString",
|
|
2879
2886
|
coordinates: t
|
|
@@ -2882,7 +2889,7 @@ function cc(t, e, r = {}) {
|
|
|
2882
2889
|
function Ks(t) {
|
|
2883
2890
|
return !isNaN(t) && t !== null && !Array.isArray(t);
|
|
2884
2891
|
}
|
|
2885
|
-
function
|
|
2892
|
+
function Io(t) {
|
|
2886
2893
|
if (!t)
|
|
2887
2894
|
throw new Error("coord is required");
|
|
2888
2895
|
if (!Array.isArray(t)) {
|
|
@@ -2895,7 +2902,7 @@ function Ho(t) {
|
|
|
2895
2902
|
return [...t];
|
|
2896
2903
|
throw new Error("coord must be GeoJSON Point or an Array of numbers");
|
|
2897
2904
|
}
|
|
2898
|
-
function
|
|
2905
|
+
function hc(t) {
|
|
2899
2906
|
if (Array.isArray(t))
|
|
2900
2907
|
return t;
|
|
2901
2908
|
if (t.type === "Feature") {
|
|
@@ -2915,25 +2922,25 @@ function rt(t, e, r = {}) {
|
|
|
2915
2922
|
throw new Error("point is required");
|
|
2916
2923
|
if (!e)
|
|
2917
2924
|
throw new Error("polygon is required");
|
|
2918
|
-
const n =
|
|
2925
|
+
const n = Io(t), i = Ar(e), s = i.type, o = e.bbox;
|
|
2919
2926
|
let l = i.coordinates;
|
|
2920
|
-
if (o &&
|
|
2927
|
+
if (o && dc(n, o) === !1)
|
|
2921
2928
|
return !1;
|
|
2922
2929
|
s === "Polygon" && (l = [l]);
|
|
2923
2930
|
let c = !1;
|
|
2924
2931
|
for (var h = 0; h < l.length; ++h) {
|
|
2925
|
-
const p =
|
|
2932
|
+
const p = ac(n, l[h]);
|
|
2926
2933
|
if (p === 0)
|
|
2927
2934
|
return !r.ignoreBoundary;
|
|
2928
2935
|
p && (c = !0);
|
|
2929
2936
|
}
|
|
2930
2937
|
return c;
|
|
2931
2938
|
}
|
|
2932
|
-
function
|
|
2939
|
+
function dc(t, e) {
|
|
2933
2940
|
return e[0] <= t[0] && e[1] <= t[1] && e[2] >= t[0] && e[3] >= t[1];
|
|
2934
2941
|
}
|
|
2935
|
-
class
|
|
2936
|
-
constructor(e = [], r =
|
|
2942
|
+
class Bo {
|
|
2943
|
+
constructor(e = [], r = fc) {
|
|
2937
2944
|
if (this.data = e, this.length = this.data.length, this.compare = r, this.length > 0)
|
|
2938
2945
|
for (let n = (this.length >> 1) - 1; n >= 0; n--) this._down(n);
|
|
2939
2946
|
}
|
|
@@ -2968,13 +2975,13 @@ class Io {
|
|
|
2968
2975
|
r[e] = s;
|
|
2969
2976
|
}
|
|
2970
2977
|
}
|
|
2971
|
-
function
|
|
2978
|
+
function fc(t, e) {
|
|
2972
2979
|
return t < e ? -1 : t > e ? 1 : 0;
|
|
2973
2980
|
}
|
|
2974
|
-
function
|
|
2981
|
+
function Uo(t, e) {
|
|
2975
2982
|
return t.p.x > e.p.x ? 1 : t.p.x < e.p.x ? -1 : t.p.y !== e.p.y ? t.p.y > e.p.y ? 1 : -1 : 1;
|
|
2976
2983
|
}
|
|
2977
|
-
function
|
|
2984
|
+
function pc(t, e) {
|
|
2978
2985
|
return t.rightSweepEvent.p.x > e.rightSweepEvent.p.x ? 1 : t.rightSweepEvent.p.x < e.rightSweepEvent.p.x ? -1 : t.rightSweepEvent.p.y !== e.rightSweepEvent.p.y ? t.rightSweepEvent.p.y < e.rightSweepEvent.p.y ? 1 : -1 : 1;
|
|
2979
2986
|
}
|
|
2980
2987
|
class Gs {
|
|
@@ -2988,7 +2995,7 @@ class Gs {
|
|
|
2988
2995
|
return this.p.x === e.p.x && this.p.y === e.p.y;
|
|
2989
2996
|
}
|
|
2990
2997
|
}
|
|
2991
|
-
function
|
|
2998
|
+
function gc(t, e) {
|
|
2992
2999
|
if (t.type === "FeatureCollection") {
|
|
2993
3000
|
const r = t.features;
|
|
2994
3001
|
for (let n = 0; n < r.length; n++)
|
|
@@ -3008,40 +3015,40 @@ function Ys(t, e) {
|
|
|
3008
3015
|
for (let c = 0; c < n[i][s].length - 1; c++) {
|
|
3009
3016
|
l = n[i][s][c + 1];
|
|
3010
3017
|
const h = new Gs(o, On, Dn, jn), p = new Gs(l, On, Dn, jn + 1);
|
|
3011
|
-
h.otherEvent = p, p.otherEvent = h,
|
|
3018
|
+
h.otherEvent = p, p.otherEvent = h, Uo(h, p) > 0 ? (p.isLeftEndpoint = !0, h.isLeftEndpoint = !1) : (h.isLeftEndpoint = !0, p.isLeftEndpoint = !1), e.push(h), e.push(p), o = l, jn = jn + 1;
|
|
3012
3019
|
}
|
|
3013
3020
|
}
|
|
3014
3021
|
On = On + 1;
|
|
3015
3022
|
}
|
|
3016
|
-
class
|
|
3023
|
+
class yc {
|
|
3017
3024
|
constructor(e) {
|
|
3018
3025
|
this.leftSweepEvent = e, this.rightSweepEvent = e.otherEvent;
|
|
3019
3026
|
}
|
|
3020
3027
|
}
|
|
3021
|
-
function
|
|
3028
|
+
function bc(t, e) {
|
|
3022
3029
|
if (t === null || e === null || t.leftSweepEvent.ringId === e.leftSweepEvent.ringId && (t.rightSweepEvent.isSamePoint(e.leftSweepEvent) || t.rightSweepEvent.isSamePoint(e.leftSweepEvent) || t.rightSweepEvent.isSamePoint(e.rightSweepEvent) || t.leftSweepEvent.isSamePoint(e.leftSweepEvent) || t.leftSweepEvent.isSamePoint(e.rightSweepEvent))) return !1;
|
|
3023
|
-
const r = t.leftSweepEvent.p.x, n = t.leftSweepEvent.p.y, i = t.rightSweepEvent.p.x, s = t.rightSweepEvent.p.y, o = e.leftSweepEvent.p.x, l = e.leftSweepEvent.p.y, c = e.rightSweepEvent.p.x, h = e.rightSweepEvent.p.y, p = (h - l) * (i - r) - (c - o) * (s - n), y = (c - o) * (n - l) - (h - l) * (r - o),
|
|
3030
|
+
const r = t.leftSweepEvent.p.x, n = t.leftSweepEvent.p.y, i = t.rightSweepEvent.p.x, s = t.rightSweepEvent.p.y, o = e.leftSweepEvent.p.x, l = e.leftSweepEvent.p.y, c = e.rightSweepEvent.p.x, h = e.rightSweepEvent.p.y, p = (h - l) * (i - r) - (c - o) * (s - n), y = (c - o) * (n - l) - (h - l) * (r - o), v = (i - r) * (n - l) - (s - n) * (r - o);
|
|
3024
3031
|
if (p === 0)
|
|
3025
3032
|
return !1;
|
|
3026
|
-
const m = y / p, _ =
|
|
3033
|
+
const m = y / p, _ = v / p;
|
|
3027
3034
|
if (m >= 0 && m <= 1 && _ >= 0 && _ <= 1) {
|
|
3028
3035
|
const E = r + m * (i - r), z = n + m * (s - n);
|
|
3029
3036
|
return [E, z];
|
|
3030
3037
|
}
|
|
3031
3038
|
return !1;
|
|
3032
3039
|
}
|
|
3033
|
-
function
|
|
3040
|
+
function mc(t, e) {
|
|
3034
3041
|
e = e || !1;
|
|
3035
|
-
const r = [], n = new
|
|
3042
|
+
const r = [], n = new Bo([], pc);
|
|
3036
3043
|
for (; t.length; ) {
|
|
3037
3044
|
const i = t.pop();
|
|
3038
3045
|
if (i.isLeftEndpoint) {
|
|
3039
|
-
const s = new
|
|
3046
|
+
const s = new yc(i);
|
|
3040
3047
|
for (let o = 0; o < n.data.length; o++) {
|
|
3041
3048
|
const l = n.data[o];
|
|
3042
3049
|
if (e && l.leftSweepEvent.featureId === i.featureId)
|
|
3043
3050
|
continue;
|
|
3044
|
-
const c =
|
|
3051
|
+
const c = bc(s, l);
|
|
3045
3052
|
c !== !1 && r.push(c);
|
|
3046
3053
|
}
|
|
3047
3054
|
n.push(s);
|
|
@@ -3049,17 +3056,17 @@ function bc(t, e) {
|
|
|
3049
3056
|
}
|
|
3050
3057
|
return r;
|
|
3051
3058
|
}
|
|
3052
|
-
function
|
|
3053
|
-
const r = new
|
|
3054
|
-
return
|
|
3059
|
+
function vc(t, e) {
|
|
3060
|
+
const r = new Bo([], Uo);
|
|
3061
|
+
return gc(t, r), mc(r, e);
|
|
3055
3062
|
}
|
|
3056
|
-
var
|
|
3063
|
+
var wc = vc;
|
|
3057
3064
|
function ws(t, e, r = {}) {
|
|
3058
3065
|
const { removeDuplicates: n = !0, ignoreSelfIntersections: i = !1 } = r;
|
|
3059
3066
|
let s = [];
|
|
3060
3067
|
t.type === "FeatureCollection" ? s = s.concat(t.features) : t.type === "Feature" ? s.push(t) : (t.type === "LineString" || t.type === "Polygon" || t.type === "MultiLineString" || t.type === "MultiPolygon") && s.push(Jt(t)), e.type === "FeatureCollection" ? s = s.concat(e.features) : e.type === "Feature" ? s.push(e) : (e.type === "LineString" || e.type === "Polygon" || e.type === "MultiLineString" || e.type === "MultiPolygon") && s.push(Jt(e));
|
|
3061
|
-
const o =
|
|
3062
|
-
|
|
3068
|
+
const o = wc(
|
|
3069
|
+
Xi(s),
|
|
3063
3070
|
i
|
|
3064
3071
|
);
|
|
3065
3072
|
let l = [];
|
|
@@ -3071,15 +3078,15 @@ function ws(t, e, r = {}) {
|
|
|
3071
3078
|
});
|
|
3072
3079
|
} else
|
|
3073
3080
|
l = o;
|
|
3074
|
-
return
|
|
3081
|
+
return Xi(l.map((c) => lc(c)));
|
|
3075
3082
|
}
|
|
3076
|
-
function
|
|
3083
|
+
function zo(t, e, r) {
|
|
3077
3084
|
if (t !== null)
|
|
3078
|
-
for (var n, i, s, o, l, c, h, p = 0, y = 0,
|
|
3079
|
-
h = _ ? t.features[H].geometry : E ? t.geometry : t,
|
|
3080
|
-
for (var
|
|
3085
|
+
for (var n, i, s, o, l, c, h, p = 0, y = 0, v, m = t.type, _ = m === "FeatureCollection", E = m === "Feature", z = _ ? t.features.length : 1, H = 0; H < z; H++) {
|
|
3086
|
+
h = _ ? t.features[H].geometry : E ? t.geometry : t, v = h ? h.type === "GeometryCollection" : !1, l = v ? h.geometries.length : 1;
|
|
3087
|
+
for (var Z = 0; Z < l; Z++) {
|
|
3081
3088
|
var Y = 0, ue = 0;
|
|
3082
|
-
if (o =
|
|
3089
|
+
if (o = v ? h.geometries[Z] : h, o !== null) {
|
|
3083
3090
|
c = o.coordinates;
|
|
3084
3091
|
var te = o.type;
|
|
3085
3092
|
switch (p = 0, te) {
|
|
@@ -3150,7 +3157,7 @@ function Uo(t, e, r) {
|
|
|
3150
3157
|
break;
|
|
3151
3158
|
case "GeometryCollection":
|
|
3152
3159
|
for (n = 0; n < o.geometries.length; n++)
|
|
3153
|
-
if (
|
|
3160
|
+
if (zo(o.geometries[n], e) === !1)
|
|
3154
3161
|
return !1;
|
|
3155
3162
|
break;
|
|
3156
3163
|
default:
|
|
@@ -3160,14 +3167,14 @@ function Uo(t, e, r) {
|
|
|
3160
3167
|
}
|
|
3161
3168
|
}
|
|
3162
3169
|
}
|
|
3163
|
-
function
|
|
3164
|
-
var r, n, i, s, o, l, c, h, p, y,
|
|
3170
|
+
function xc(t, e) {
|
|
3171
|
+
var r, n, i, s, o, l, c, h, p, y, v = 0, m = t.type === "FeatureCollection", _ = t.type === "Feature", E = m ? t.features.length : 1;
|
|
3165
3172
|
for (r = 0; r < E; r++) {
|
|
3166
3173
|
for (l = m ? t.features[r].geometry : _ ? t.geometry : t, h = m ? t.features[r].properties : _ ? t.properties : {}, p = m ? t.features[r].bbox : _ ? t.bbox : void 0, y = m ? t.features[r].id : _ ? t.id : void 0, c = l ? l.type === "GeometryCollection" : !1, o = c ? l.geometries.length : 1, i = 0; i < o; i++) {
|
|
3167
3174
|
if (s = c ? l.geometries[i] : l, s === null) {
|
|
3168
3175
|
if (e(
|
|
3169
3176
|
null,
|
|
3170
|
-
|
|
3177
|
+
v,
|
|
3171
3178
|
h,
|
|
3172
3179
|
p,
|
|
3173
3180
|
y
|
|
@@ -3184,7 +3191,7 @@ function wc(t, e) {
|
|
|
3184
3191
|
case "MultiPolygon": {
|
|
3185
3192
|
if (e(
|
|
3186
3193
|
s,
|
|
3187
|
-
|
|
3194
|
+
v,
|
|
3188
3195
|
h,
|
|
3189
3196
|
p,
|
|
3190
3197
|
y
|
|
@@ -3196,7 +3203,7 @@ function wc(t, e) {
|
|
|
3196
3203
|
for (n = 0; n < s.geometries.length; n++)
|
|
3197
3204
|
if (e(
|
|
3198
3205
|
s.geometries[n],
|
|
3199
|
-
|
|
3206
|
+
v,
|
|
3200
3207
|
h,
|
|
3201
3208
|
p,
|
|
3202
3209
|
y
|
|
@@ -3208,11 +3215,11 @@ function wc(t, e) {
|
|
|
3208
3215
|
throw new Error("Unknown Geometry Type");
|
|
3209
3216
|
}
|
|
3210
3217
|
}
|
|
3211
|
-
|
|
3218
|
+
v++;
|
|
3212
3219
|
}
|
|
3213
3220
|
}
|
|
3214
3221
|
function Un(t, e) {
|
|
3215
|
-
|
|
3222
|
+
xc(t, function(r, n, i, s, o) {
|
|
3216
3223
|
var l = r === null ? null : r.type;
|
|
3217
3224
|
switch (l) {
|
|
3218
3225
|
case null:
|
|
@@ -3247,31 +3254,31 @@ function Un(t, e) {
|
|
|
3247
3254
|
}
|
|
3248
3255
|
});
|
|
3249
3256
|
}
|
|
3250
|
-
function
|
|
3257
|
+
function Ji(t, e = {}) {
|
|
3251
3258
|
const r = Ar(t);
|
|
3252
3259
|
switch (!e.properties && t.type === "Feature" && (e.properties = t.properties), r.type) {
|
|
3253
3260
|
case "Polygon":
|
|
3254
|
-
return xc(r, e);
|
|
3255
|
-
case "MultiPolygon":
|
|
3256
3261
|
return $c(r, e);
|
|
3262
|
+
case "MultiPolygon":
|
|
3263
|
+
return _c(r, e);
|
|
3257
3264
|
default:
|
|
3258
3265
|
throw new Error("invalid poly");
|
|
3259
3266
|
}
|
|
3260
3267
|
}
|
|
3261
|
-
function
|
|
3268
|
+
function $c(t, e = {}) {
|
|
3262
3269
|
const n = Ar(t).coordinates, i = e.properties ? e.properties : t.type === "Feature" ? t.properties : {};
|
|
3263
|
-
return
|
|
3270
|
+
return qo(n, i);
|
|
3264
3271
|
}
|
|
3265
|
-
function
|
|
3272
|
+
function _c(t, e = {}) {
|
|
3266
3273
|
const n = Ar(t).coordinates, i = e.properties ? e.properties : t.type === "Feature" ? t.properties : {}, s = [];
|
|
3267
3274
|
return n.forEach((o) => {
|
|
3268
|
-
s.push(
|
|
3269
|
-
}),
|
|
3275
|
+
s.push(qo(o, i));
|
|
3276
|
+
}), Xi(s);
|
|
3270
3277
|
}
|
|
3271
|
-
function
|
|
3272
|
-
return t.length > 1 ?
|
|
3278
|
+
function qo(t, e) {
|
|
3279
|
+
return t.length > 1 ? uc(t, e) : cc(t[0], e);
|
|
3273
3280
|
}
|
|
3274
|
-
function
|
|
3281
|
+
function Ac(t, e, r = {}) {
|
|
3275
3282
|
var n;
|
|
3276
3283
|
const i = (n = r.ignoreSelfIntersections) != null ? n : !1;
|
|
3277
3284
|
let s = !0;
|
|
@@ -3279,7 +3286,7 @@ function _c(t, e, r = {}) {
|
|
|
3279
3286
|
Un(e, (l) => {
|
|
3280
3287
|
if (s === !1)
|
|
3281
3288
|
return !1;
|
|
3282
|
-
s =
|
|
3289
|
+
s = Mc(
|
|
3283
3290
|
o.geometry,
|
|
3284
3291
|
l.geometry,
|
|
3285
3292
|
i
|
|
@@ -3287,12 +3294,12 @@ function _c(t, e, r = {}) {
|
|
|
3287
3294
|
});
|
|
3288
3295
|
}), s;
|
|
3289
3296
|
}
|
|
3290
|
-
function
|
|
3297
|
+
function Mc(t, e, r) {
|
|
3291
3298
|
switch (t.type) {
|
|
3292
3299
|
case "Point":
|
|
3293
3300
|
switch (e.type) {
|
|
3294
3301
|
case "Point":
|
|
3295
|
-
return !
|
|
3302
|
+
return !kc(t.coordinates, e.coordinates);
|
|
3296
3303
|
case "LineString":
|
|
3297
3304
|
return !Fs(e, t);
|
|
3298
3305
|
case "Polygon":
|
|
@@ -3304,9 +3311,9 @@ function Ac(t, e, r) {
|
|
|
3304
3311
|
case "Point":
|
|
3305
3312
|
return !Fs(t, e);
|
|
3306
3313
|
case "LineString":
|
|
3307
|
-
return !
|
|
3314
|
+
return !Sc(t, e, r);
|
|
3308
3315
|
case "Polygon":
|
|
3309
|
-
return !
|
|
3316
|
+
return !Zs(e, t, r);
|
|
3310
3317
|
}
|
|
3311
3318
|
break;
|
|
3312
3319
|
case "Polygon":
|
|
@@ -3314,16 +3321,16 @@ function Ac(t, e, r) {
|
|
|
3314
3321
|
case "Point":
|
|
3315
3322
|
return !rt(e, t);
|
|
3316
3323
|
case "LineString":
|
|
3317
|
-
return !
|
|
3324
|
+
return !Zs(t, e, r);
|
|
3318
3325
|
case "Polygon":
|
|
3319
|
-
return !
|
|
3326
|
+
return !Ec(e, t, r);
|
|
3320
3327
|
}
|
|
3321
3328
|
}
|
|
3322
3329
|
return !1;
|
|
3323
3330
|
}
|
|
3324
3331
|
function Fs(t, e) {
|
|
3325
3332
|
for (let r = 0; r < t.coordinates.length - 1; r++)
|
|
3326
|
-
if (
|
|
3333
|
+
if (Cc(
|
|
3327
3334
|
t.coordinates[r],
|
|
3328
3335
|
t.coordinates[r + 1],
|
|
3329
3336
|
e.coordinates
|
|
@@ -3331,20 +3338,20 @@ function Fs(t, e) {
|
|
|
3331
3338
|
return !0;
|
|
3332
3339
|
return !1;
|
|
3333
3340
|
}
|
|
3334
|
-
function
|
|
3341
|
+
function Sc(t, e, r) {
|
|
3335
3342
|
return ws(t, e, {
|
|
3336
3343
|
ignoreSelfIntersections: r
|
|
3337
3344
|
}).features.length > 0;
|
|
3338
3345
|
}
|
|
3339
|
-
function
|
|
3346
|
+
function Zs(t, e, r) {
|
|
3340
3347
|
for (const i of e.coordinates)
|
|
3341
3348
|
if (rt(i, t))
|
|
3342
3349
|
return !0;
|
|
3343
|
-
return ws(e,
|
|
3350
|
+
return ws(e, Ji(t), {
|
|
3344
3351
|
ignoreSelfIntersections: r
|
|
3345
3352
|
}).features.length > 0;
|
|
3346
3353
|
}
|
|
3347
|
-
function
|
|
3354
|
+
function Ec(t, e, r) {
|
|
3348
3355
|
for (const i of t.coordinates[0])
|
|
3349
3356
|
if (rt(i, e))
|
|
3350
3357
|
return !0;
|
|
@@ -3352,19 +3359,19 @@ function Sc(t, e, r) {
|
|
|
3352
3359
|
if (rt(i, t))
|
|
3353
3360
|
return !0;
|
|
3354
3361
|
return ws(
|
|
3355
|
-
|
|
3356
|
-
|
|
3362
|
+
Ji(t),
|
|
3363
|
+
Ji(e),
|
|
3357
3364
|
{ ignoreSelfIntersections: r }
|
|
3358
3365
|
).features.length > 0;
|
|
3359
3366
|
}
|
|
3360
|
-
function
|
|
3367
|
+
function Cc(t, e, r) {
|
|
3361
3368
|
const n = r[0] - t[0], i = r[1] - t[1], s = e[0] - t[0], o = e[1] - t[1];
|
|
3362
3369
|
return n * o - i * s !== 0 ? !1 : Math.abs(s) >= Math.abs(o) ? s > 0 ? t[0] <= r[0] && r[0] <= e[0] : e[0] <= r[0] && r[0] <= t[0] : o > 0 ? t[1] <= r[1] && r[1] <= e[1] : e[1] <= r[1] && r[1] <= t[1];
|
|
3363
3370
|
}
|
|
3364
|
-
function
|
|
3371
|
+
function kc(t, e) {
|
|
3365
3372
|
return t[0] === e[0] && t[1] === e[1];
|
|
3366
3373
|
}
|
|
3367
|
-
function
|
|
3374
|
+
function Lc(t, e, r = {}) {
|
|
3368
3375
|
var n;
|
|
3369
3376
|
const i = (n = r.ignoreSelfIntersections) != null ? n : !1;
|
|
3370
3377
|
let s = !1;
|
|
@@ -3372,26 +3379,26 @@ function kc(t, e, r = {}) {
|
|
|
3372
3379
|
Un(e, (l) => {
|
|
3373
3380
|
if (s === !0)
|
|
3374
3381
|
return !0;
|
|
3375
|
-
s = !
|
|
3382
|
+
s = !Ac(o.geometry, l.geometry, {
|
|
3376
3383
|
ignoreSelfIntersections: i
|
|
3377
3384
|
});
|
|
3378
3385
|
});
|
|
3379
3386
|
}), s;
|
|
3380
3387
|
}
|
|
3381
|
-
var
|
|
3388
|
+
var Pc = Lc;
|
|
3382
3389
|
function zn(t, e = {}) {
|
|
3383
3390
|
if (t.bbox != null && e.recompute !== !0)
|
|
3384
3391
|
return t.bbox;
|
|
3385
3392
|
const r = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
3386
|
-
return
|
|
3393
|
+
return zo(t, (n) => {
|
|
3387
3394
|
r[0] > n[0] && (r[0] = n[0]), r[1] > n[1] && (r[1] = n[1]), r[2] < n[0] && (r[2] = n[0]), r[3] < n[1] && (r[3] = n[1]);
|
|
3388
3395
|
}), r;
|
|
3389
3396
|
}
|
|
3390
3397
|
function qn(t, e, r = {}) {
|
|
3391
|
-
const n =
|
|
3398
|
+
const n = Io(t), i = hc(e);
|
|
3392
3399
|
for (let s = 0; s < i.length - 1; s++) {
|
|
3393
3400
|
let o = !1;
|
|
3394
|
-
if (r.ignoreEndVertices && (s === 0 && (o = "start"), s === i.length - 2 && (o = "end"), s === 0 && s + 1 === i.length - 1 && (o = "both")),
|
|
3401
|
+
if (r.ignoreEndVertices && (s === 0 && (o = "start"), s === i.length - 2 && (o = "end"), s === 0 && s + 1 === i.length - 1 && (o = "both")), Tc(
|
|
3395
3402
|
i[s],
|
|
3396
3403
|
i[s + 1],
|
|
3397
3404
|
n,
|
|
@@ -3402,8 +3409,8 @@ function qn(t, e, r = {}) {
|
|
|
3402
3409
|
}
|
|
3403
3410
|
return !1;
|
|
3404
3411
|
}
|
|
3405
|
-
function
|
|
3406
|
-
const s = r[0], o = r[1], l = t[0], c = t[1], h = e[0], p = e[1], y = r[0] - l,
|
|
3412
|
+
function Tc(t, e, r, n, i) {
|
|
3413
|
+
const s = r[0], o = r[1], l = t[0], c = t[1], h = e[0], p = e[1], y = r[0] - l, v = r[1] - c, m = h - l, _ = p - c, E = y * _ - v * m;
|
|
3407
3414
|
if (i !== null) {
|
|
3408
3415
|
if (Math.abs(E) > i)
|
|
3409
3416
|
return !1;
|
|
@@ -3419,13 +3426,13 @@ function Pc(t, e, r, n, i) {
|
|
|
3419
3426
|
} else return Math.abs(m) >= Math.abs(_) ? m > 0 ? l <= s && s <= h : h <= s && s <= l : _ > 0 ? c <= o && o <= p : p <= o && o <= c;
|
|
3420
3427
|
return !1;
|
|
3421
3428
|
}
|
|
3422
|
-
function
|
|
3429
|
+
function Rc(t, e) {
|
|
3423
3430
|
var r = Ar(t), n = Ar(e), i = r.type, s = n.type;
|
|
3424
3431
|
switch (i) {
|
|
3425
3432
|
case "Point":
|
|
3426
3433
|
switch (s) {
|
|
3427
3434
|
case "MultiPoint":
|
|
3428
|
-
return
|
|
3435
|
+
return Oc(r, n);
|
|
3429
3436
|
case "LineString":
|
|
3430
3437
|
return qn(r, n, { ignoreEndVertices: !0 });
|
|
3431
3438
|
case "Polygon":
|
|
@@ -3437,22 +3444,22 @@ function Tc(t, e) {
|
|
|
3437
3444
|
case "MultiPoint":
|
|
3438
3445
|
switch (s) {
|
|
3439
3446
|
case "MultiPoint":
|
|
3440
|
-
return Oc(r, n);
|
|
3441
|
-
case "LineString":
|
|
3442
3447
|
return Dc(r, n);
|
|
3448
|
+
case "LineString":
|
|
3449
|
+
return jc(r, n);
|
|
3443
3450
|
case "Polygon":
|
|
3444
3451
|
case "MultiPolygon":
|
|
3445
|
-
return
|
|
3452
|
+
return Nc(r, n);
|
|
3446
3453
|
default:
|
|
3447
3454
|
throw new Error("feature2 " + s + " geometry not supported");
|
|
3448
3455
|
}
|
|
3449
3456
|
case "LineString":
|
|
3450
3457
|
switch (s) {
|
|
3451
3458
|
case "LineString":
|
|
3452
|
-
return
|
|
3459
|
+
return Hc(r, n);
|
|
3453
3460
|
case "Polygon":
|
|
3454
3461
|
case "MultiPolygon":
|
|
3455
|
-
return
|
|
3462
|
+
return Ic(r, n);
|
|
3456
3463
|
default:
|
|
3457
3464
|
throw new Error("feature2 " + s + " geometry not supported");
|
|
3458
3465
|
}
|
|
@@ -3460,7 +3467,7 @@ function Tc(t, e) {
|
|
|
3460
3467
|
switch (s) {
|
|
3461
3468
|
case "Polygon":
|
|
3462
3469
|
case "MultiPolygon":
|
|
3463
|
-
return
|
|
3470
|
+
return Bc(r, n);
|
|
3464
3471
|
default:
|
|
3465
3472
|
throw new Error("feature2 " + s + " geometry not supported");
|
|
3466
3473
|
}
|
|
@@ -3468,25 +3475,25 @@ function Tc(t, e) {
|
|
|
3468
3475
|
throw new Error("feature1 " + i + " geometry not supported");
|
|
3469
3476
|
}
|
|
3470
3477
|
}
|
|
3471
|
-
function
|
|
3478
|
+
function Oc(t, e) {
|
|
3472
3479
|
var r, n = !1;
|
|
3473
3480
|
for (r = 0; r < e.coordinates.length; r++)
|
|
3474
|
-
if (
|
|
3481
|
+
if (Vo(e.coordinates[r], t.coordinates)) {
|
|
3475
3482
|
n = !0;
|
|
3476
3483
|
break;
|
|
3477
3484
|
}
|
|
3478
3485
|
return n;
|
|
3479
3486
|
}
|
|
3480
|
-
function
|
|
3487
|
+
function Dc(t, e) {
|
|
3481
3488
|
for (var r = 0; r < t.coordinates.length; r++) {
|
|
3482
3489
|
for (var n = !1, i = 0; i < e.coordinates.length; i++)
|
|
3483
|
-
|
|
3490
|
+
Vo(t.coordinates[r], e.coordinates[i]) && (n = !0);
|
|
3484
3491
|
if (!n)
|
|
3485
3492
|
return !1;
|
|
3486
3493
|
}
|
|
3487
3494
|
return !0;
|
|
3488
3495
|
}
|
|
3489
|
-
function
|
|
3496
|
+
function jc(t, e) {
|
|
3490
3497
|
for (var r = !1, n = 0; n < t.coordinates.length; n++) {
|
|
3491
3498
|
if (!qn(t.coordinates[n], e))
|
|
3492
3499
|
return !1;
|
|
@@ -3498,7 +3505,7 @@ function Dc(t, e) {
|
|
|
3498
3505
|
}
|
|
3499
3506
|
return r;
|
|
3500
3507
|
}
|
|
3501
|
-
function
|
|
3508
|
+
function Nc(t, e) {
|
|
3502
3509
|
for (var r = !0, n = !1, i = 0; i < t.coordinates.length; i++) {
|
|
3503
3510
|
if (n = rt(t.coordinates[i], e), !n) {
|
|
3504
3511
|
r = !1;
|
|
@@ -3510,15 +3517,15 @@ function jc(t, e) {
|
|
|
3510
3517
|
}
|
|
3511
3518
|
return r && n;
|
|
3512
3519
|
}
|
|
3513
|
-
function
|
|
3520
|
+
function Hc(t, e) {
|
|
3514
3521
|
for (var r = 0; r < t.coordinates.length; r++)
|
|
3515
3522
|
if (!qn(t.coordinates[r], e))
|
|
3516
3523
|
return !1;
|
|
3517
3524
|
return !0;
|
|
3518
3525
|
}
|
|
3519
|
-
function
|
|
3526
|
+
function Ic(t, e) {
|
|
3520
3527
|
var r = zn(e), n = zn(t);
|
|
3521
|
-
if (!
|
|
3528
|
+
if (!Wo(r, n))
|
|
3522
3529
|
return !1;
|
|
3523
3530
|
for (var i = !1, s = 0; s < t.coordinates.length; s++) {
|
|
3524
3531
|
if (!rt(t.coordinates[s], e))
|
|
@@ -3528,7 +3535,7 @@ function Hc(t, e) {
|
|
|
3528
3535
|
e,
|
|
3529
3536
|
{ ignoreBoundary: !0 }
|
|
3530
3537
|
)), !i && s < t.coordinates.length - 1) {
|
|
3531
|
-
var o =
|
|
3538
|
+
var o = Uc(
|
|
3532
3539
|
t.coordinates[s],
|
|
3533
3540
|
t.coordinates[s + 1]
|
|
3534
3541
|
);
|
|
@@ -3539,27 +3546,27 @@ function Hc(t, e) {
|
|
|
3539
3546
|
}
|
|
3540
3547
|
return i;
|
|
3541
3548
|
}
|
|
3542
|
-
function
|
|
3549
|
+
function Bc(t, e) {
|
|
3543
3550
|
var r = zn(t), n = zn(e);
|
|
3544
|
-
if (!
|
|
3551
|
+
if (!Wo(n, r))
|
|
3545
3552
|
return !1;
|
|
3546
3553
|
for (var i = 0; i < t.coordinates[0].length; i++)
|
|
3547
3554
|
if (!rt(t.coordinates[0][i], e))
|
|
3548
3555
|
return !1;
|
|
3549
3556
|
return !0;
|
|
3550
3557
|
}
|
|
3551
|
-
function
|
|
3558
|
+
function Wo(t, e) {
|
|
3552
3559
|
return !(t[0] > e[0] || t[2] < e[2] || t[1] > e[1] || t[3] < e[3]);
|
|
3553
3560
|
}
|
|
3554
|
-
function
|
|
3561
|
+
function Vo(t, e) {
|
|
3555
3562
|
return t[0] === e[0] && t[1] === e[1];
|
|
3556
3563
|
}
|
|
3557
|
-
function
|
|
3564
|
+
function Uc(t, e) {
|
|
3558
3565
|
return [(t[0] + e[0]) / 2, (t[1] + e[1]) / 2];
|
|
3559
3566
|
}
|
|
3560
|
-
var
|
|
3561
|
-
const
|
|
3562
|
-
function
|
|
3567
|
+
var zc = Rc;
|
|
3568
|
+
const qc = (t, e) => e ? Pc(t, e) : !0, Wc = (t, e) => e ? zc(t, e) : !0;
|
|
3569
|
+
function Vc(t, e = "highlight", r = "title") {
|
|
3563
3570
|
const n = (s, o, l) => {
|
|
3564
3571
|
const c = o.split(".");
|
|
3565
3572
|
let h;
|
|
@@ -3594,12 +3601,12 @@ var Je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
3594
3601
|
function ei(t) {
|
|
3595
3602
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
3596
3603
|
}
|
|
3597
|
-
var
|
|
3604
|
+
var Ko = { exports: {} };
|
|
3598
3605
|
(function(t, e) {
|
|
3599
3606
|
(function(r, n) {
|
|
3600
3607
|
t.exports = n();
|
|
3601
3608
|
})(Je, function() {
|
|
3602
|
-
var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", o = "second", l = "minute", c = "hour", h = "day", p = "week", y = "month",
|
|
3609
|
+
var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", o = "second", l = "minute", c = "hour", h = "day", p = "week", y = "month", v = "quarter", m = "year", _ = "date", E = "Invalid Date", z = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, H = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Z = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(D) {
|
|
3603
3610
|
var S = ["th", "st", "nd", "rd"], M = D % 100;
|
|
3604
3611
|
return "[" + D + (S[(M - 20) % 10] || S[M] || S[0]) + "]";
|
|
3605
3612
|
} }, Y = function(D, S, M) {
|
|
@@ -3615,11 +3622,11 @@ var Vo = { exports: {} };
|
|
|
3615
3622
|
}, a: function(D) {
|
|
3616
3623
|
return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
|
|
3617
3624
|
}, p: function(D) {
|
|
3618
|
-
return { M: y, y: m, w: p, d: h, D: _, h: c, m: l, s: o, ms: s, Q:
|
|
3625
|
+
return { M: y, y: m, w: p, d: h, D: _, h: c, m: l, s: o, ms: s, Q: v }[D] || String(D || "").toLowerCase().replace(/s$/, "");
|
|
3619
3626
|
}, u: function(D) {
|
|
3620
3627
|
return D === void 0;
|
|
3621
|
-
} }, te = "en",
|
|
3622
|
-
|
|
3628
|
+
} }, te = "en", X = {};
|
|
3629
|
+
X[te] = Z;
|
|
3623
3630
|
var he = "$isDayjsObject", $e = function(D) {
|
|
3624
3631
|
return D instanceof qe || !(!D || !D[he]);
|
|
3625
3632
|
}, Me = function D(S, M, j) {
|
|
@@ -3627,12 +3634,12 @@ var Vo = { exports: {} };
|
|
|
3627
3634
|
if (!S) return te;
|
|
3628
3635
|
if (typeof S == "string") {
|
|
3629
3636
|
var V = S.toLowerCase();
|
|
3630
|
-
|
|
3637
|
+
X[V] && (k = V), M && (X[V] = M, k = V);
|
|
3631
3638
|
var K = S.split("-");
|
|
3632
3639
|
if (!k && K.length > 1) return D(K[0]);
|
|
3633
3640
|
} else {
|
|
3634
3641
|
var ce = S.name;
|
|
3635
|
-
|
|
3642
|
+
X[ce] = S, k = ce;
|
|
3636
3643
|
}
|
|
3637
3644
|
return !j && k && (te = k), k || !j && te;
|
|
3638
3645
|
}, fe = function(D, S) {
|
|
@@ -3817,7 +3824,7 @@ var Vo = { exports: {} };
|
|
|
3817
3824
|
case y:
|
|
3818
3825
|
V = je();
|
|
3819
3826
|
break;
|
|
3820
|
-
case
|
|
3827
|
+
case v:
|
|
3821
3828
|
V = je() / 3;
|
|
3822
3829
|
break;
|
|
3823
3830
|
case p:
|
|
@@ -3842,7 +3849,7 @@ var Vo = { exports: {} };
|
|
|
3842
3849
|
}, S.daysInMonth = function() {
|
|
3843
3850
|
return this.endOf(y).$D;
|
|
3844
3851
|
}, S.$locale = function() {
|
|
3845
|
-
return
|
|
3852
|
+
return X[this.$L];
|
|
3846
3853
|
}, S.locale = function(M, j) {
|
|
3847
3854
|
if (!M) return this.$L;
|
|
3848
3855
|
var k = this.clone(), V = Me(M, j, !0);
|
|
@@ -3867,29 +3874,29 @@ var Vo = { exports: {} };
|
|
|
3867
3874
|
return D.$i || (D(S, qe, fe), D.$i = !0), fe;
|
|
3868
3875
|
}, fe.locale = Me, fe.isDayjs = $e, fe.unix = function(D) {
|
|
3869
3876
|
return fe(1e3 * D);
|
|
3870
|
-
}, fe.en =
|
|
3877
|
+
}, fe.en = X[te], fe.Ls = X, fe.p = {}, fe;
|
|
3871
3878
|
});
|
|
3872
|
-
})(
|
|
3873
|
-
var
|
|
3874
|
-
const rn = /* @__PURE__ */ ei(
|
|
3875
|
-
let
|
|
3876
|
-
const
|
|
3877
|
-
|
|
3879
|
+
})(Ko);
|
|
3880
|
+
var Kc = Ko.exports;
|
|
3881
|
+
const rn = /* @__PURE__ */ ei(Kc);
|
|
3882
|
+
let Go;
|
|
3883
|
+
const Gc = (t, e) => {
|
|
3884
|
+
Go = new Rt(t, {
|
|
3878
3885
|
threshold: 0.4,
|
|
3879
3886
|
distance: 50,
|
|
3880
3887
|
includeMatches: !0,
|
|
3881
3888
|
useExtendedSearch: !0,
|
|
3882
3889
|
...e
|
|
3883
3890
|
});
|
|
3884
|
-
},
|
|
3891
|
+
}, Yc = async (t, e, r) => {
|
|
3885
3892
|
const n = Object.entries(e).filter(
|
|
3886
3893
|
([, l]) => l.type === "text" || l.type === "select" || l.type === "multiselect"
|
|
3887
3894
|
).reduce((l, [c, h]) => {
|
|
3888
|
-
const p = "$or", y = [],
|
|
3895
|
+
const p = "$or", y = [], v = (m, _) => {
|
|
3889
3896
|
const E = {};
|
|
3890
3897
|
h.type === "text" ? E[m] = `${_}` : E[c] = `="${m}"`, y.push(E);
|
|
3891
3898
|
};
|
|
3892
|
-
return Object.entries(h.state).filter(([, m]) => m).forEach(([m, _]) =>
|
|
3899
|
+
return Object.entries(h.state).filter(([, m]) => m).forEach(([m, _]) => v(m, _)), y.length > 0 && l.push({
|
|
3893
3900
|
[p]: y
|
|
3894
3901
|
}), l;
|
|
3895
3902
|
}, []);
|
|
@@ -3900,8 +3907,8 @@ const Kc = (t, e) => {
|
|
|
3900
3907
|
const l = {
|
|
3901
3908
|
$and: [...n]
|
|
3902
3909
|
// Combine filters using logical AND
|
|
3903
|
-
}, c =
|
|
3904
|
-
i = r.enableHighlighting ?
|
|
3910
|
+
}, c = Go.search(l);
|
|
3911
|
+
i = r.enableHighlighting ? Vc(c, "highlight", r.titleProperty) : c.map((h) => h.item);
|
|
3905
3912
|
}
|
|
3906
3913
|
const s = Object.entries(e).filter(([, l]) => l.type === "range").reduce((l, [c, h]) => (l[c] = {
|
|
3907
3914
|
min: h.state.min,
|
|
@@ -3913,8 +3920,8 @@ const Kc = (t, e) => {
|
|
|
3913
3920
|
for (let c = 0; c < i.length; c++) {
|
|
3914
3921
|
const h = {};
|
|
3915
3922
|
for (const [p, y] of Object.entries(s)) {
|
|
3916
|
-
const
|
|
3917
|
-
m ? Array.isArray(m) ? h[p] = s[p].min <=
|
|
3923
|
+
const v = (_) => y.format === "date" ? rn(_).unix() : _, m = es(p, i[c]);
|
|
3924
|
+
m ? Array.isArray(m) ? h[p] = s[p].min <= v(m[1]) && v(m[0]) <= s[p].max : v(m) >= s[p].min && v(m) <= s[p].max ? h[p] = !0 : h[p] = !1 : h[p] = !0;
|
|
3918
3925
|
}
|
|
3919
3926
|
Object.values(h).every((p) => !!p) && l.push(i[c]);
|
|
3920
3927
|
}
|
|
@@ -3929,8 +3936,8 @@ const Kc = (t, e) => {
|
|
|
3929
3936
|
for (let c = 0; c < i.length; c++) {
|
|
3930
3937
|
const h = {};
|
|
3931
3938
|
for (const p of Object.keys(o)) {
|
|
3932
|
-
const y =
|
|
3933
|
-
y && (
|
|
3939
|
+
const y = es(p, i[c]), v = o[p].mode || "within";
|
|
3940
|
+
y && (v === "within" ? Wc(y, o[p].geometry) : qc(y, o[p].geometry)) ? h[p] = !0 : h[p] = !1;
|
|
3934
3941
|
}
|
|
3935
3942
|
Object.values(h).every((p) => !!p) && l.push(i[c]);
|
|
3936
3943
|
}
|
|
@@ -3938,7 +3945,7 @@ const Kc = (t, e) => {
|
|
|
3938
3945
|
}
|
|
3939
3946
|
return i;
|
|
3940
3947
|
};
|
|
3941
|
-
function
|
|
3948
|
+
function Fc(t, e) {
|
|
3942
3949
|
return [
|
|
3943
3950
|
{
|
|
3944
3951
|
type: "Vector",
|
|
@@ -3998,23 +4005,23 @@ function ti(t) {
|
|
|
3998
4005
|
}
|
|
3999
4006
|
return delete t.stringifiedState, delete t.dirty, t;
|
|
4000
4007
|
}
|
|
4001
|
-
function
|
|
4008
|
+
function Xs(t, e) {
|
|
4002
4009
|
return t * 2 + e;
|
|
4003
4010
|
}
|
|
4004
|
-
function
|
|
4011
|
+
function Zc(t) {
|
|
4005
4012
|
return Object.keys(t).map((e) => ({
|
|
4006
|
-
title: F`${t[e].title}:
|
|
4013
|
+
title: F`${t[e].title || t[e].key}:
|
|
4007
4014
|
<strong>${t[e].stringifiedState}</strong>`,
|
|
4008
4015
|
key: e
|
|
4009
4016
|
})).filter((e) => t[e.key].dirty);
|
|
4010
4017
|
}
|
|
4011
|
-
function
|
|
4018
|
+
function Qi(t) {
|
|
4012
4019
|
return Object.values(t).map((e) => e.dirty).filter((e) => e).length > 0;
|
|
4013
4020
|
}
|
|
4014
4021
|
async function Xc(t, e, r) {
|
|
4015
4022
|
return await (await fetch(`${r.externalFilter(t, e)}`)).json();
|
|
4016
4023
|
}
|
|
4017
|
-
function
|
|
4024
|
+
function Yo(t, e, r) {
|
|
4018
4025
|
let n;
|
|
4019
4026
|
if (t.detail ? n = t.detail.target : n = t.target, n != null && n.classList.contains("details-filter")) {
|
|
4020
4027
|
if (!n.open || e != null && e.expandMultipleFilters) return;
|
|
@@ -4029,15 +4036,15 @@ function Go(t, e, r) {
|
|
|
4029
4036
|
});
|
|
4030
4037
|
}
|
|
4031
4038
|
}
|
|
4032
|
-
function
|
|
4039
|
+
function es(t, e) {
|
|
4033
4040
|
return t != null && t.includes(".") ? t.split(".").reduce((r, n) => r && r[n], e) : e[t];
|
|
4034
4041
|
}
|
|
4035
|
-
var be,
|
|
4036
|
-
class
|
|
4042
|
+
var be, Fo, ts, rs, Zo, ns, is, Xo, ss, Jo, Qo;
|
|
4043
|
+
class Jc extends Ye {
|
|
4037
4044
|
constructor() {
|
|
4038
4045
|
super();
|
|
4039
4046
|
Ge(this, be);
|
|
4040
|
-
this.filterProperties = {}, this.unstyled = !1, this.inlineMode = !1, this.filters = {}, this._handleClickOutside = le(this, be,
|
|
4047
|
+
this.filterProperties = {}, this.unstyled = !1, this.inlineMode = !1, this.filters = {}, this._handleClickOutside = le(this, be, Zo).bind(this), this._handleKeyDown = le(this, be, ns).bind(this);
|
|
4041
4048
|
}
|
|
4042
4049
|
// Define properties with defaults and types
|
|
4043
4050
|
static get properties() {
|
|
@@ -4063,14 +4070,14 @@ class Zc extends Ye {
|
|
|
4063
4070
|
* Adds event listeners if inline mode is enabled.
|
|
4064
4071
|
*/
|
|
4065
4072
|
connectedCallback() {
|
|
4066
|
-
super.connectedCallback(), this.inlineMode && le(this, be,
|
|
4073
|
+
super.connectedCallback(), this.inlineMode && le(this, be, ts).call(this);
|
|
4067
4074
|
}
|
|
4068
4075
|
/**
|
|
4069
4076
|
* Lifecycle method called when the element is disconnected from the DOM.
|
|
4070
4077
|
* Removes event listeners if inline mode is enabled.
|
|
4071
4078
|
*/
|
|
4072
4079
|
disconnectedCallback() {
|
|
4073
|
-
this.inlineMode && le(this, be,
|
|
4080
|
+
this.inlineMode && le(this, be, rs).call(this), super.disconnectedCallback();
|
|
4074
4081
|
}
|
|
4075
4082
|
/**
|
|
4076
4083
|
* Stores the autoUpdate cleanup function to be called
|
|
@@ -4087,7 +4094,7 @@ class Zc extends Ye {
|
|
|
4087
4094
|
this.inlineMode && this.requestUpdate();
|
|
4088
4095
|
}
|
|
4089
4096
|
updated(r) {
|
|
4090
|
-
r.has("inlineMode") && (this.inlineMode ? le(this, be,
|
|
4097
|
+
r.has("inlineMode") && (this.inlineMode ? le(this, be, ts).call(this) : le(this, be, rs).call(this));
|
|
4091
4098
|
}
|
|
4092
4099
|
/**
|
|
4093
4100
|
* Renders the HTML template for the component.
|
|
@@ -4100,22 +4107,22 @@ class Zc extends Ye {
|
|
|
4100
4107
|
${this.inlineMode ? F`
|
|
4101
4108
|
<div
|
|
4102
4109
|
class="inline-container-wrapper"
|
|
4103
|
-
@click="${le(this, be,
|
|
4110
|
+
@click="${le(this, be, is)}"
|
|
4104
4111
|
>
|
|
4105
4112
|
<div class="inline-container" part="container">
|
|
4106
4113
|
<div class="chip-container">
|
|
4107
4114
|
<div class="chip-wrapper">
|
|
4108
4115
|
<eox-itemfilter-chips
|
|
4109
|
-
.items=${
|
|
4116
|
+
.items=${Zc(this.filters)}
|
|
4110
4117
|
.controller=${{
|
|
4111
|
-
remove: (r) => le(this, be,
|
|
4118
|
+
remove: (r) => le(this, be, Jo).call(this, r)
|
|
4112
4119
|
}}
|
|
4113
4120
|
>
|
|
4114
4121
|
</eox-itemfilter-chips>
|
|
4115
4122
|
</div>
|
|
4116
4123
|
|
|
4117
4124
|
${We(
|
|
4118
|
-
|
|
4125
|
+
Qi(this.filters),
|
|
4119
4126
|
() => F`
|
|
4120
4127
|
<span
|
|
4121
4128
|
class="chip-close"
|
|
@@ -4125,15 +4132,15 @@ class Zc extends Ye {
|
|
|
4125
4132
|
)}
|
|
4126
4133
|
</div>
|
|
4127
4134
|
<div
|
|
4128
|
-
class="input-container ${
|
|
4135
|
+
class="input-container ${Qi(this.filters) ? "dirty-filter-input" : ""}"
|
|
4129
4136
|
>
|
|
4130
4137
|
<input
|
|
4131
4138
|
autocomplete="off"
|
|
4132
4139
|
id="eox-itemfilter-input-search"
|
|
4133
4140
|
type="text"
|
|
4134
|
-
@click="${le(this, be,
|
|
4141
|
+
@click="${le(this, be, is)}"
|
|
4135
4142
|
@focus="${le(this, be, Xo)}"
|
|
4136
|
-
@input="${le(this, be,
|
|
4143
|
+
@input="${le(this, be, Qo)}"
|
|
4137
4144
|
placeholder="Search and add filter"
|
|
4138
4145
|
aria-haspopup="true"
|
|
4139
4146
|
aria-expanded="${this.showDropdown}"
|
|
@@ -4144,9 +4151,9 @@ class Zc extends Ye {
|
|
|
4144
4151
|
<div
|
|
4145
4152
|
class="inline-content"
|
|
4146
4153
|
slot="content"
|
|
4147
|
-
@keydown="${le(this, be,
|
|
4148
|
-
@click="${le(this, be,
|
|
4149
|
-
@focus="${le(this, be,
|
|
4154
|
+
@keydown="${le(this, be, ns)}"
|
|
4155
|
+
@click="${le(this, be, ss)}"
|
|
4156
|
+
@focus="${le(this, be, ss)}"
|
|
4150
4157
|
>
|
|
4151
4158
|
<slot name="section"></slot>
|
|
4152
4159
|
</div>
|
|
@@ -4156,17 +4163,17 @@ class Zc extends Ye {
|
|
|
4156
4163
|
`;
|
|
4157
4164
|
}
|
|
4158
4165
|
}
|
|
4159
|
-
be = new WeakSet(),
|
|
4160
|
-
setTimeout(() => this._overlayCleanup =
|
|
4166
|
+
be = new WeakSet(), Fo = function() {
|
|
4167
|
+
setTimeout(() => this._overlayCleanup = tc(this));
|
|
4161
4168
|
}, /**
|
|
4162
4169
|
* Function to add all the inline mode event listener
|
|
4163
4170
|
*/
|
|
4164
|
-
|
|
4165
|
-
document.addEventListener("click", this._handleClickOutside), document.addEventListener("focusout", this._handleClickOutside), document.addEventListener("keydown", this._handleKeyDown), le(this, be,
|
|
4171
|
+
ts = function() {
|
|
4172
|
+
document.addEventListener("click", this._handleClickOutside), document.addEventListener("focusout", this._handleClickOutside), document.addEventListener("keydown", this._handleKeyDown), le(this, be, Fo).call(this);
|
|
4166
4173
|
}, /**
|
|
4167
4174
|
* Function to remove all the inline mode event listener
|
|
4168
4175
|
*/
|
|
4169
|
-
|
|
4176
|
+
rs = function() {
|
|
4170
4177
|
document.removeEventListener("click", this._handleClickOutside), document.removeEventListener("focusout", this._handleClickOutside), document.removeEventListener("keydown", this._handleKeyDown), this._overlayCleanup();
|
|
4171
4178
|
}, /**
|
|
4172
4179
|
* Handles click events outside the component to close the dropdown.
|
|
@@ -4174,98 +4181,98 @@ ns = function() {
|
|
|
4174
4181
|
* @param {Event} event - The click event.
|
|
4175
4182
|
* @private
|
|
4176
4183
|
*/
|
|
4177
|
-
|
|
4178
|
-
|
|
4184
|
+
Zo = function(r) {
|
|
4185
|
+
oc(r, this);
|
|
4179
4186
|
}, /**
|
|
4180
4187
|
* Handles keydown events for the component.
|
|
4181
4188
|
*
|
|
4182
4189
|
* @param {Event} event - The keydown event.
|
|
4183
4190
|
* @private
|
|
4184
4191
|
*/
|
|
4185
|
-
|
|
4186
|
-
|
|
4192
|
+
ns = function(r) {
|
|
4193
|
+
sc(r, this);
|
|
4187
4194
|
}, /**
|
|
4188
4195
|
* Toggles the dropdown visibility.
|
|
4189
4196
|
*
|
|
4190
4197
|
* @param {Event} event - The toggle event.
|
|
4191
4198
|
* @private
|
|
4192
4199
|
*/
|
|
4193
|
-
|
|
4194
|
-
|
|
4200
|
+
is = function(r) {
|
|
4201
|
+
ic(r, this);
|
|
4195
4202
|
}, /**
|
|
4196
4203
|
* Shows the dropdown on input focus.
|
|
4197
4204
|
*
|
|
4198
4205
|
* @private
|
|
4199
4206
|
*/
|
|
4200
4207
|
Xo = function() {
|
|
4201
|
-
|
|
4208
|
+
nc(this);
|
|
4202
4209
|
}, /**
|
|
4203
4210
|
* Handles click events on the form to prevent closing the dropdown.
|
|
4204
4211
|
*
|
|
4205
4212
|
* @param {Event} event - The click event.
|
|
4206
4213
|
* @private
|
|
4207
4214
|
*/
|
|
4208
|
-
|
|
4209
|
-
|
|
4215
|
+
ss = function(r) {
|
|
4216
|
+
rc(r, this);
|
|
4210
4217
|
}, /**
|
|
4211
4218
|
* Resets the filter using the resetFilterMethod.
|
|
4212
4219
|
*
|
|
4213
4220
|
* @param {Event} event - The reset event.
|
|
4214
4221
|
* @private
|
|
4215
4222
|
*/
|
|
4216
|
-
|
|
4217
|
-
|
|
4223
|
+
Jo = function(r) {
|
|
4224
|
+
Ll(r, this);
|
|
4218
4225
|
}, /**
|
|
4219
4226
|
* Searches the filter using the searchFilterMethod.
|
|
4220
4227
|
*
|
|
4221
4228
|
* @param {Event} event - The search event.
|
|
4222
4229
|
* @private
|
|
4223
4230
|
*/
|
|
4224
|
-
|
|
4231
|
+
Qo = function(r) {
|
|
4225
4232
|
Eo(r, this);
|
|
4226
4233
|
};
|
|
4227
|
-
customElements.define("eox-itemfilter-container",
|
|
4228
|
-
var
|
|
4229
|
-
return
|
|
4234
|
+
customElements.define("eox-itemfilter-container", Jc);
|
|
4235
|
+
var Qc = "Expected a function", Js = NaN, eu = "[object Symbol]", tu = /^\s+|\s+$/g, ru = /^[-+]0x[0-9a-f]+$/i, nu = /^0b[01]+$/i, iu = /^0o[0-7]+$/i, su = parseInt, ou = typeof Je == "object" && Je && Je.Object === Object && Je, au = typeof self == "object" && self && self.Object === Object && self, lu = ou || au || Function("return this")(), cu = Object.prototype, uu = cu.toString, hu = Math.max, du = Math.min, Ni = function() {
|
|
4236
|
+
return lu.Date.now();
|
|
4230
4237
|
};
|
|
4231
|
-
function
|
|
4232
|
-
var n, i, s, o, l, c, h = 0, p = !1, y = !1,
|
|
4238
|
+
function fu(t, e, r) {
|
|
4239
|
+
var n, i, s, o, l, c, h = 0, p = !1, y = !1, v = !0;
|
|
4233
4240
|
if (typeof t != "function")
|
|
4234
|
-
throw new TypeError(
|
|
4235
|
-
e = Qs(e) || 0,
|
|
4236
|
-
function m(
|
|
4241
|
+
throw new TypeError(Qc);
|
|
4242
|
+
e = Qs(e) || 0, os(r) && (p = !!r.leading, y = "maxWait" in r, s = y ? hu(Qs(r.maxWait) || 0, e) : s, v = "trailing" in r ? !!r.trailing : v);
|
|
4243
|
+
function m(X) {
|
|
4237
4244
|
var he = n, $e = i;
|
|
4238
|
-
return n = i = void 0, h =
|
|
4245
|
+
return n = i = void 0, h = X, o = t.apply($e, he), o;
|
|
4239
4246
|
}
|
|
4240
|
-
function _(
|
|
4241
|
-
return h =
|
|
4247
|
+
function _(X) {
|
|
4248
|
+
return h = X, l = setTimeout(H, e), p ? m(X) : o;
|
|
4242
4249
|
}
|
|
4243
|
-
function E(
|
|
4244
|
-
var he =
|
|
4245
|
-
return y ?
|
|
4250
|
+
function E(X) {
|
|
4251
|
+
var he = X - c, $e = X - h, Me = e - he;
|
|
4252
|
+
return y ? du(Me, s - $e) : Me;
|
|
4246
4253
|
}
|
|
4247
|
-
function z(
|
|
4248
|
-
var he =
|
|
4254
|
+
function z(X) {
|
|
4255
|
+
var he = X - c, $e = X - h;
|
|
4249
4256
|
return c === void 0 || he >= e || he < 0 || y && $e >= s;
|
|
4250
4257
|
}
|
|
4251
4258
|
function H() {
|
|
4252
|
-
var
|
|
4253
|
-
if (z(
|
|
4254
|
-
return X
|
|
4255
|
-
l = setTimeout(H, E(
|
|
4259
|
+
var X = Ni();
|
|
4260
|
+
if (z(X))
|
|
4261
|
+
return Z(X);
|
|
4262
|
+
l = setTimeout(H, E(X));
|
|
4256
4263
|
}
|
|
4257
|
-
function X
|
|
4258
|
-
return l = void 0,
|
|
4264
|
+
function Z(X) {
|
|
4265
|
+
return l = void 0, v && n ? m(X) : (n = i = void 0, o);
|
|
4259
4266
|
}
|
|
4260
4267
|
function Y() {
|
|
4261
4268
|
l !== void 0 && clearTimeout(l), h = 0, n = c = i = l = void 0;
|
|
4262
4269
|
}
|
|
4263
4270
|
function ue() {
|
|
4264
|
-
return l === void 0 ? o :
|
|
4271
|
+
return l === void 0 ? o : Z(Ni());
|
|
4265
4272
|
}
|
|
4266
4273
|
function te() {
|
|
4267
|
-
var
|
|
4268
|
-
if (n = arguments, i = this, c =
|
|
4274
|
+
var X = Ni(), he = z(X);
|
|
4275
|
+
if (n = arguments, i = this, c = X, he) {
|
|
4269
4276
|
if (l === void 0)
|
|
4270
4277
|
return _(c);
|
|
4271
4278
|
if (y)
|
|
@@ -4275,44 +4282,44 @@ function du(t, e, r) {
|
|
|
4275
4282
|
}
|
|
4276
4283
|
return te.cancel = Y, te.flush = ue, te;
|
|
4277
4284
|
}
|
|
4278
|
-
function
|
|
4285
|
+
function os(t) {
|
|
4279
4286
|
var e = typeof t;
|
|
4280
4287
|
return !!t && (e == "object" || e == "function");
|
|
4281
4288
|
}
|
|
4282
|
-
function
|
|
4289
|
+
function pu(t) {
|
|
4283
4290
|
return !!t && typeof t == "object";
|
|
4284
4291
|
}
|
|
4285
|
-
function
|
|
4286
|
-
return typeof t == "symbol" ||
|
|
4292
|
+
function gu(t) {
|
|
4293
|
+
return typeof t == "symbol" || pu(t) && uu.call(t) == eu;
|
|
4287
4294
|
}
|
|
4288
4295
|
function Qs(t) {
|
|
4289
4296
|
if (typeof t == "number")
|
|
4290
4297
|
return t;
|
|
4291
|
-
if (
|
|
4298
|
+
if (gu(t))
|
|
4292
4299
|
return Js;
|
|
4293
|
-
if (
|
|
4300
|
+
if (os(t)) {
|
|
4294
4301
|
var e = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
4295
|
-
t =
|
|
4302
|
+
t = os(e) ? e + "" : e;
|
|
4296
4303
|
}
|
|
4297
4304
|
if (typeof t != "string")
|
|
4298
4305
|
return t === 0 ? t : +t;
|
|
4299
|
-
t = t.replace(
|
|
4300
|
-
var r =
|
|
4301
|
-
return r ||
|
|
4306
|
+
t = t.replace(tu, "");
|
|
4307
|
+
var r = nu.test(t);
|
|
4308
|
+
return r || iu.test(t) ? su(t.slice(2), r ? 2 : 8) : ru.test(t) ? Js : +t;
|
|
4302
4309
|
}
|
|
4303
|
-
var
|
|
4304
|
-
const ri = /* @__PURE__ */ ei(
|
|
4305
|
-
function
|
|
4310
|
+
var yu = fu;
|
|
4311
|
+
const ri = /* @__PURE__ */ ei(yu);
|
|
4312
|
+
function bu(t) {
|
|
4306
4313
|
const e = t.renderRoot.querySelector("input[type='text']");
|
|
4307
4314
|
e.value = "", ti(t.filterObject), t.requestUpdate();
|
|
4308
4315
|
}
|
|
4309
|
-
function
|
|
4316
|
+
function mu(t) {
|
|
4310
4317
|
const e = t.renderRoot.querySelector("input[type='text']");
|
|
4311
4318
|
t.isValid = e.checkValidity(), t.filterObject.keys.forEach((r) => {
|
|
4312
4319
|
t.filterObject.state[r] = e.value;
|
|
4313
4320
|
}), t.filterObject.dirty = !0, t.filterObject.stringifiedState = e.value, t.dispatchEvent(new CustomEvent("filter")), e.value === "" && t.reset();
|
|
4314
4321
|
}
|
|
4315
|
-
function
|
|
4322
|
+
function vu(t) {
|
|
4316
4323
|
if (t.filterObject = ti(
|
|
4317
4324
|
t.filterObject
|
|
4318
4325
|
), t.filterObject) {
|
|
@@ -4321,34 +4328,34 @@ function mu(t) {
|
|
|
4321
4328
|
}
|
|
4322
4329
|
t.requestUpdate();
|
|
4323
4330
|
}
|
|
4324
|
-
function
|
|
4331
|
+
function wu(t, e) {
|
|
4325
4332
|
const [r, n] = t.detail.values;
|
|
4326
4333
|
(r !== e.filterObject.state.min || n !== e.filterObject.state.max) && ([
|
|
4327
4334
|
e.filterObject.state.min,
|
|
4328
4335
|
e.filterObject.state.max
|
|
4329
4336
|
] = [r, n], e.filterObject.dirty = !0), e.filterObject.dirty && (e.filterObject.stringifiedState = e.filterObject.format === "date" ? `${rn(r)} - ${rn(n)}` : `${r} - ${n}`), e.dispatchEvent(new CustomEvent("filter")), r === e.filterObject.min && n === e.filterObject.max ? e.reset() : e.requestUpdate();
|
|
4330
4337
|
}
|
|
4331
|
-
function
|
|
4338
|
+
function xu(t, e, r) {
|
|
4332
4339
|
const n = r.filterObject.format === "date", i = r.filterObject.state[t], s = n ? rn.unix(i) : i;
|
|
4333
4340
|
return F`<div class="range-${e}">${s}</div>`;
|
|
4334
4341
|
}
|
|
4335
|
-
function
|
|
4336
|
-
|
|
4342
|
+
function $u(t) {
|
|
4343
|
+
_u(-1, t), ti(t.filterObject), t.requestUpdate();
|
|
4337
4344
|
}
|
|
4338
|
-
function
|
|
4339
|
-
e.selectedItems = [], xs(e),
|
|
4345
|
+
function _u(t, e) {
|
|
4346
|
+
e.selectedItems = [], xs(e), ta(e);
|
|
4340
4347
|
}
|
|
4341
|
-
function
|
|
4348
|
+
function ea(t, e) {
|
|
4342
4349
|
const r = e.selectedItems.indexOf(t);
|
|
4343
4350
|
r >= 0 ? e.selectedItems = e.selectedItems.filter((n, i) => i !== r) : e.type === "multiselect" ? e.selectedItems = [
|
|
4344
4351
|
...e.selectedItems,
|
|
4345
4352
|
t
|
|
4346
|
-
] : (e.selectedItems = [t], e.showSuggestions = !1), xs(e),
|
|
4353
|
+
] : (e.selectedItems = [t], e.showSuggestions = !1), xs(e), ta(e);
|
|
4347
4354
|
}
|
|
4348
|
-
function
|
|
4355
|
+
function Au(t, e) {
|
|
4349
4356
|
e.query = t.target.value, e.showSuggestions = !0;
|
|
4350
4357
|
}
|
|
4351
|
-
function
|
|
4358
|
+
function Mu(t, e) {
|
|
4352
4359
|
switch (t.key) {
|
|
4353
4360
|
case "ArrowDown":
|
|
4354
4361
|
e.highlightedIndex = Math.min(
|
|
@@ -4363,7 +4370,7 @@ function Au(t, e) {
|
|
|
4363
4370
|
);
|
|
4364
4371
|
break;
|
|
4365
4372
|
case "Enter":
|
|
4366
|
-
e.highlightedIndex >= 0 &&
|
|
4373
|
+
e.highlightedIndex >= 0 && ea(
|
|
4367
4374
|
e.filteredSuggestions[e.highlightedIndex],
|
|
4368
4375
|
e
|
|
4369
4376
|
);
|
|
@@ -4373,10 +4380,10 @@ function Au(t, e) {
|
|
|
4373
4380
|
break;
|
|
4374
4381
|
}
|
|
4375
4382
|
}
|
|
4376
|
-
function
|
|
4383
|
+
function Su(t, e) {
|
|
4377
4384
|
(t.has("suggestions") || t.has("query")) && xs(e);
|
|
4378
4385
|
}
|
|
4379
|
-
function
|
|
4386
|
+
function Eu(t, e) {
|
|
4380
4387
|
var n;
|
|
4381
4388
|
const r = ((n = t.filterObject) == null ? void 0 : n.sort) || ((i, s) => i.localeCompare(s));
|
|
4382
4389
|
return e.sort(r).map((i) => i);
|
|
@@ -4386,25 +4393,25 @@ function xs(t) {
|
|
|
4386
4393
|
let e;
|
|
4387
4394
|
t.query && (e = new Rt(t.suggestions, {
|
|
4388
4395
|
threshold: 0.4
|
|
4389
|
-
}).search(t.query).map((o) => o.item)), t.filteredSuggestions =
|
|
4396
|
+
}).search(t.query).map((o) => o.item)), t.filteredSuggestions = Eu(
|
|
4390
4397
|
t,
|
|
4391
4398
|
e || t.suggestions
|
|
4392
4399
|
), (r = t.filterObject) != null && r.filterKeys && (t.filteredSuggestions = (n = t.filterObject) == null ? void 0 : n.filterKeys.map((s) => `${s}`), t.filterObject.state = (i = t.filterObject) == null ? void 0 : i.filterKeys.map((s) => `${s}`).reduce((s, o) => (o in s || (s[o] = void 0), s), t.filterObject.state)), t.highlightedIndex = -1;
|
|
4393
4400
|
}
|
|
4394
|
-
function
|
|
4401
|
+
function ta(t) {
|
|
4395
4402
|
Object.keys(t.filterObject.state).forEach((e) => {
|
|
4396
4403
|
t.filterObject.state[e] = t.selectedItems.includes(e);
|
|
4397
4404
|
}), t.filterObject.stringifiedState = Object.keys(t.filterObject.state).filter((e) => t.filterObject.state[e]).join(", ") || "", t.filterObject.dirty = t.filterObject.stringifiedState.length > 0, t.dispatchEvent(new CustomEvent("filter")), t.requestUpdate();
|
|
4398
4405
|
}
|
|
4399
|
-
function
|
|
4406
|
+
function Cu(t) {
|
|
4400
4407
|
ti(t.filterObject), t.renderRoot.querySelector(
|
|
4401
4408
|
"eox-itemfilter-spatial-filter"
|
|
4402
4409
|
).reset(), t.requestUpdate();
|
|
4403
4410
|
}
|
|
4404
|
-
function
|
|
4405
|
-
t.renderRoot.querySelector("#eox-map").innerHTML = "",
|
|
4411
|
+
function ku(t) {
|
|
4412
|
+
t.renderRoot.querySelector("#eox-map").innerHTML = "", ra(t);
|
|
4406
4413
|
}
|
|
4407
|
-
function
|
|
4414
|
+
function Lu(t, e) {
|
|
4408
4415
|
e.filterObject.state.mode = t;
|
|
4409
4416
|
const r = new CustomEvent("filter", {
|
|
4410
4417
|
detail: {
|
|
@@ -4413,10 +4420,10 @@ function ku(t, e) {
|
|
|
4413
4420
|
});
|
|
4414
4421
|
e.dispatchEvent(r);
|
|
4415
4422
|
}
|
|
4416
|
-
function
|
|
4423
|
+
function ra(t) {
|
|
4417
4424
|
const e = t.renderRoot.querySelector("#eox-map");
|
|
4418
4425
|
e.innerHTML === "" && (e.innerHTML = '<eox-map part="map" style="height: 400px"></eox-map>');
|
|
4419
|
-
const r = t.geometry &&
|
|
4426
|
+
const r = t.geometry && Pu(t.geometry), n = Fc(t.geometry, r);
|
|
4420
4427
|
t.eoxMap = t.renderRoot.querySelector("eox-map"), setTimeout(() => {
|
|
4421
4428
|
t.eoxMap.layers = n;
|
|
4422
4429
|
const i = (s) => {
|
|
@@ -4437,7 +4444,7 @@ function ta(t) {
|
|
|
4437
4444
|
});
|
|
4438
4445
|
}, 1e3);
|
|
4439
4446
|
}
|
|
4440
|
-
function
|
|
4447
|
+
function Pu(t) {
|
|
4441
4448
|
return `data:text/json,${encodeURIComponent(
|
|
4442
4449
|
JSON.stringify({
|
|
4443
4450
|
type: "FeatureCollection",
|
|
@@ -4452,7 +4459,7 @@ function Lu(t) {
|
|
|
4452
4459
|
)}`;
|
|
4453
4460
|
}
|
|
4454
4461
|
var Gn;
|
|
4455
|
-
class
|
|
4462
|
+
class Tu extends Ye {
|
|
4456
4463
|
constructor() {
|
|
4457
4464
|
super();
|
|
4458
4465
|
/**
|
|
@@ -4461,12 +4468,12 @@ class Pu extends Ye {
|
|
|
4461
4468
|
* @private
|
|
4462
4469
|
*/
|
|
4463
4470
|
Ge(this, Gn, () => {
|
|
4464
|
-
|
|
4471
|
+
mu(this);
|
|
4465
4472
|
});
|
|
4466
4473
|
/**
|
|
4467
4474
|
* Debounced version of the input handler to improve performance by limiting the rate at which the input handler is called.
|
|
4468
4475
|
*/
|
|
4469
|
-
Gr(this, "debouncedInputHandler", ri(
|
|
4476
|
+
Gr(this, "debouncedInputHandler", ri(Ze(this, Gn), 500, {
|
|
4470
4477
|
leading: !0
|
|
4471
4478
|
}));
|
|
4472
4479
|
this.filterObject = {}, this.unstyled = !1, this.tabIndex = 0, this.unstyled = !1;
|
|
@@ -4484,7 +4491,7 @@ class Pu extends Ye {
|
|
|
4484
4491
|
* Resets the text input by calling the resetTextMethod with the current context.
|
|
4485
4492
|
*/
|
|
4486
4493
|
reset() {
|
|
4487
|
-
|
|
4494
|
+
bu(this);
|
|
4488
4495
|
}
|
|
4489
4496
|
/**
|
|
4490
4497
|
* Overrides the default createRenderRoot method to render in the light DOM.
|
|
@@ -4527,8 +4534,8 @@ class Pu extends Ye {
|
|
|
4527
4534
|
}
|
|
4528
4535
|
}
|
|
4529
4536
|
Gn = new WeakMap();
|
|
4530
|
-
customElements.define("eox-itemfilter-text",
|
|
4531
|
-
function
|
|
4537
|
+
customElements.define("eox-itemfilter-text", Tu);
|
|
4538
|
+
function Ru(t, e, r) {
|
|
4532
4539
|
return t.filter((n) => {
|
|
4533
4540
|
const i = n[r.config.aggregateResults];
|
|
4534
4541
|
let s;
|
|
@@ -4544,8 +4551,8 @@ function Tu(t, e, r) {
|
|
|
4544
4551
|
* Copyright 2017 Google LLC
|
|
4545
4552
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4546
4553
|
*/
|
|
4547
|
-
const
|
|
4548
|
-
class
|
|
4554
|
+
const na = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, ia = (t) => (...e) => ({ _$litDirective$: t, values: e });
|
|
4555
|
+
class sa {
|
|
4549
4556
|
constructor(e) {
|
|
4550
4557
|
}
|
|
4551
4558
|
get _$AU() {
|
|
@@ -4566,12 +4573,12 @@ class ia {
|
|
|
4566
4573
|
* Copyright 2020 Google LLC
|
|
4567
4574
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4568
4575
|
*/
|
|
4569
|
-
const { I:
|
|
4576
|
+
const { I: Ou } = Ia, eo = () => document.createComment(""), Fr = (t, e, r) => {
|
|
4570
4577
|
var s;
|
|
4571
4578
|
const n = t._$AA.parentNode, i = e === void 0 ? t._$AB : e._$AA;
|
|
4572
4579
|
if (r === void 0) {
|
|
4573
4580
|
const o = n.insertBefore(eo(), i), l = n.insertBefore(eo(), i);
|
|
4574
|
-
r = new
|
|
4581
|
+
r = new Ou(o, l, t, t.options);
|
|
4575
4582
|
} else {
|
|
4576
4583
|
const o = r._$AB.nextSibling, l = r._$AM, c = l !== t;
|
|
4577
4584
|
if (c) {
|
|
@@ -4587,7 +4594,7 @@ const { I: Ru } = Ha, eo = () => document.createComment(""), Fr = (t, e, r) => {
|
|
|
4587
4594
|
}
|
|
4588
4595
|
}
|
|
4589
4596
|
return r;
|
|
4590
|
-
}, Kt = (t, e, r = t) => (t._$AI(e, r), t),
|
|
4597
|
+
}, Kt = (t, e, r = t) => (t._$AI(e, r), t), Du = {}, ju = (t, e = Du) => t._$AH = e, Nu = (t) => t._$AH, Hi = (t) => {
|
|
4591
4598
|
var n;
|
|
4592
4599
|
(n = t._$AP) == null || n.call(t, !1, !0);
|
|
4593
4600
|
let e = t._$AA;
|
|
@@ -4606,9 +4613,9 @@ const to = (t, e, r) => {
|
|
|
4606
4613
|
const n = /* @__PURE__ */ new Map();
|
|
4607
4614
|
for (let i = e; i <= r; i++) n.set(t[i], i);
|
|
4608
4615
|
return n;
|
|
4609
|
-
},
|
|
4616
|
+
}, Hu = ia(class extends sa {
|
|
4610
4617
|
constructor(t) {
|
|
4611
|
-
if (super(t), t.type !==
|
|
4618
|
+
if (super(t), t.type !== na.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
4612
4619
|
}
|
|
4613
4620
|
dt(t, e, r) {
|
|
4614
4621
|
let n;
|
|
@@ -4622,34 +4629,34 @@ const to = (t, e, r) => {
|
|
|
4622
4629
|
return this.dt(t, e, r).values;
|
|
4623
4630
|
}
|
|
4624
4631
|
update(t, [e, r, n]) {
|
|
4625
|
-
const i =
|
|
4632
|
+
const i = Nu(t), { values: s, keys: o } = this.dt(e, r, n);
|
|
4626
4633
|
if (!Array.isArray(i)) return this.ut = o, s;
|
|
4627
4634
|
const l = this.ut ?? (this.ut = []), c = [];
|
|
4628
|
-
let h, p, y = 0,
|
|
4629
|
-
for (; y <=
|
|
4630
|
-
else if (i[
|
|
4635
|
+
let h, p, y = 0, v = i.length - 1, m = 0, _ = s.length - 1;
|
|
4636
|
+
for (; y <= v && m <= _; ) if (i[y] === null) y++;
|
|
4637
|
+
else if (i[v] === null) v--;
|
|
4631
4638
|
else if (l[y] === o[m]) c[m] = Kt(i[y], s[m]), y++, m++;
|
|
4632
|
-
else if (l[
|
|
4639
|
+
else if (l[v] === o[_]) c[_] = Kt(i[v], s[_]), v--, _--;
|
|
4633
4640
|
else if (l[y] === o[_]) c[_] = Kt(i[y], s[_]), Fr(t, c[_ + 1], i[y]), y++, _--;
|
|
4634
|
-
else if (l[
|
|
4635
|
-
else if (h === void 0 && (h = to(o, m, _), p = to(l, y,
|
|
4641
|
+
else if (l[v] === o[m]) c[m] = Kt(i[v], s[m]), Fr(t, i[y], i[v]), v--, m++;
|
|
4642
|
+
else if (h === void 0 && (h = to(o, m, _), p = to(l, y, v)), h.has(l[y])) if (h.has(l[v])) {
|
|
4636
4643
|
const E = p.get(o[m]), z = E !== void 0 ? i[E] : null;
|
|
4637
4644
|
if (z === null) {
|
|
4638
4645
|
const H = Fr(t, i[y]);
|
|
4639
4646
|
Kt(H, s[m]), c[m] = H;
|
|
4640
4647
|
} else c[m] = Kt(z, s[m]), Fr(t, i[y], z), i[E] = null;
|
|
4641
4648
|
m++;
|
|
4642
|
-
} else Hi(i[
|
|
4649
|
+
} else Hi(i[v]), v--;
|
|
4643
4650
|
else Hi(i[y]), y++;
|
|
4644
4651
|
for (; m <= _; ) {
|
|
4645
4652
|
const E = Fr(t, c[_ + 1]);
|
|
4646
4653
|
Kt(E, s[m]), c[m++] = E;
|
|
4647
4654
|
}
|
|
4648
|
-
for (; y <=
|
|
4655
|
+
for (; y <= v; ) {
|
|
4649
4656
|
const E = i[y++];
|
|
4650
4657
|
E !== null && Hi(E);
|
|
4651
4658
|
}
|
|
4652
|
-
return this.ut = o,
|
|
4659
|
+
return this.ut = o, ju(t, c), kt;
|
|
4653
4660
|
}
|
|
4654
4661
|
});
|
|
4655
4662
|
/**
|
|
@@ -4657,13 +4664,13 @@ const to = (t, e, r) => {
|
|
|
4657
4664
|
* Copyright 2017 Google LLC
|
|
4658
4665
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4659
4666
|
*/
|
|
4660
|
-
class
|
|
4667
|
+
class as extends sa {
|
|
4661
4668
|
constructor(e) {
|
|
4662
|
-
if (super(e), this.it = ge, e.type !==
|
|
4669
|
+
if (super(e), this.it = ge, e.type !== na.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
4663
4670
|
}
|
|
4664
4671
|
render(e) {
|
|
4665
4672
|
if (e === ge || e == null) return this._t = void 0, this.it = e;
|
|
4666
|
-
if (e ===
|
|
4673
|
+
if (e === kt) return e;
|
|
4667
4674
|
if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
4668
4675
|
if (e === this.it) return this._t;
|
|
4669
4676
|
this.it = e;
|
|
@@ -4671,9 +4678,9 @@ class ls extends ia {
|
|
|
4671
4678
|
return r.raw = r, this._t = { _$litType$: this.constructor.resultType, strings: r, values: [] };
|
|
4672
4679
|
}
|
|
4673
4680
|
}
|
|
4674
|
-
|
|
4675
|
-
const Ii =
|
|
4676
|
-
function
|
|
4681
|
+
as.directiveName = "unsafeHTML", as.resultType = 1;
|
|
4682
|
+
const Ii = ia(as);
|
|
4683
|
+
function Iu(t, e) {
|
|
4677
4684
|
return F`
|
|
4678
4685
|
<details
|
|
4679
4686
|
class="details-results"
|
|
@@ -4692,19 +4699,19 @@ function Hu(t, e) {
|
|
|
4692
4699
|
</span>
|
|
4693
4700
|
</summary>
|
|
4694
4701
|
<div>
|
|
4695
|
-
${
|
|
4702
|
+
${oa(t, e)}
|
|
4696
4703
|
</div>
|
|
4697
4704
|
</details>
|
|
4698
4705
|
`;
|
|
4699
4706
|
}
|
|
4700
|
-
function
|
|
4707
|
+
function oa(t, e) {
|
|
4701
4708
|
const r = e.results, n = t ? e.aggregateResults(r, t) : r, i = e.config, s = (o) => {
|
|
4702
4709
|
var l;
|
|
4703
4710
|
return ((l = e.selectedResult) == null ? void 0 : l[i.idProperty]) === o[i.idProperty] ? "highlighted" : ge;
|
|
4704
4711
|
};
|
|
4705
4712
|
return F`
|
|
4706
4713
|
<ul>
|
|
4707
|
-
${
|
|
4714
|
+
${Hu(
|
|
4708
4715
|
n,
|
|
4709
4716
|
(o) => o.id,
|
|
4710
4717
|
(o) => F`
|
|
@@ -4744,8 +4751,8 @@ function sa(t, e) {
|
|
|
4744
4751
|
</ul>
|
|
4745
4752
|
`;
|
|
4746
4753
|
}
|
|
4747
|
-
var er,
|
|
4748
|
-
class
|
|
4754
|
+
var er, ls, aa;
|
|
4755
|
+
class Bu extends Ye {
|
|
4749
4756
|
constructor() {
|
|
4750
4757
|
super();
|
|
4751
4758
|
Ge(this, er);
|
|
@@ -4769,7 +4776,7 @@ class Iu extends Ye {
|
|
|
4769
4776
|
* @returns {Array} - The aggregated results.
|
|
4770
4777
|
*/
|
|
4771
4778
|
aggregateResults(r, n) {
|
|
4772
|
-
return
|
|
4779
|
+
return Ru(r, n, this);
|
|
4773
4780
|
}
|
|
4774
4781
|
/**
|
|
4775
4782
|
* Overrides the default createRenderRoot method to render in the light DOM.
|
|
@@ -4785,7 +4792,7 @@ class Iu extends Ye {
|
|
|
4785
4792
|
* @param {Event} event - The toggle event.
|
|
4786
4793
|
*/
|
|
4787
4794
|
handleAccordion(r) {
|
|
4788
|
-
|
|
4795
|
+
Yo(r, this.config, this);
|
|
4789
4796
|
}
|
|
4790
4797
|
/**
|
|
4791
4798
|
* Renders the HTML template for the component.
|
|
@@ -4805,19 +4812,19 @@ class Iu extends Ye {
|
|
|
4805
4812
|
<ul id="results" part="results">
|
|
4806
4813
|
${We(
|
|
4807
4814
|
this.config.aggregateResults,
|
|
4808
|
-
() =>
|
|
4815
|
+
() => Zn(
|
|
4809
4816
|
this.resultAggregation.filter(
|
|
4810
4817
|
(r) => this.aggregateResults(this.results, r).length
|
|
4811
4818
|
),
|
|
4812
4819
|
(r) => F`${We(
|
|
4813
4820
|
this.aggregateResults(this.results, r).length === 1 && this.config.autoSpreadSingle,
|
|
4814
4821
|
() => F`<div style="margin-left: -8px">
|
|
4815
|
-
${le(this, er,
|
|
4822
|
+
${le(this, er, ls).call(this, r)}
|
|
4816
4823
|
</div>`,
|
|
4817
|
-
() => le(this, er,
|
|
4824
|
+
() => le(this, er, aa).call(this, r)
|
|
4818
4825
|
)}`
|
|
4819
4826
|
),
|
|
4820
|
-
() => le(this, er,
|
|
4827
|
+
() => le(this, er, ls).call(this)
|
|
4821
4828
|
)}
|
|
4822
4829
|
</ul>
|
|
4823
4830
|
</div>
|
|
@@ -4832,8 +4839,8 @@ er = new WeakSet(), /**
|
|
|
4832
4839
|
* @returns {import("lit")} - The template result for the item list.
|
|
4833
4840
|
* @private
|
|
4834
4841
|
*/
|
|
4835
|
-
|
|
4836
|
-
return
|
|
4842
|
+
ls = function(r) {
|
|
4843
|
+
return oa(r, this);
|
|
4837
4844
|
}, /**
|
|
4838
4845
|
* Creates item details based on the aggregation property.
|
|
4839
4846
|
*
|
|
@@ -4841,13 +4848,13 @@ cs = function(r) {
|
|
|
4841
4848
|
* @returns {import("lit")} - The template result for the item details.
|
|
4842
4849
|
* @private
|
|
4843
4850
|
*/
|
|
4844
|
-
|
|
4845
|
-
return
|
|
4851
|
+
aa = function(r) {
|
|
4852
|
+
return Iu(r, this);
|
|
4846
4853
|
};
|
|
4847
|
-
customElements.define("eox-itemfilter-results",
|
|
4848
|
-
const
|
|
4849
|
-
var Pt,
|
|
4850
|
-
class
|
|
4854
|
+
customElements.define("eox-itemfilter-results", Bu);
|
|
4855
|
+
const Uu = `input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}`, zu = `input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}`;
|
|
4856
|
+
var Pt, ca, ua, ha;
|
|
4857
|
+
class la extends Ye {
|
|
4851
4858
|
constructor() {
|
|
4852
4859
|
super();
|
|
4853
4860
|
Ge(this, Pt);
|
|
@@ -4857,7 +4864,7 @@ class aa extends Ye {
|
|
|
4857
4864
|
* @function debouncedInputHandler
|
|
4858
4865
|
* @private
|
|
4859
4866
|
*/
|
|
4860
|
-
Gr(this, "debouncedInputHandler", ri(le(this, Pt,
|
|
4867
|
+
Gr(this, "debouncedInputHandler", ri(le(this, Pt, ha), 500, {
|
|
4861
4868
|
leading: !0
|
|
4862
4869
|
}));
|
|
4863
4870
|
this.filterObject = {}, this.suggestions = [], this.selectedItems = [], this.query = "", this.showSuggestions = !1, this.highlightedIndex = -1, this.filteredSuggestions = [], this.type = "select", this.unstyled = !1, this.tabIndex = 0, this.inlineMode = !1;
|
|
@@ -4868,13 +4875,13 @@ class aa extends Ye {
|
|
|
4868
4875
|
* @param {Map} changedProperties - The properties that have changed.
|
|
4869
4876
|
*/
|
|
4870
4877
|
updated(r) {
|
|
4871
|
-
|
|
4878
|
+
Su(r, this);
|
|
4872
4879
|
}
|
|
4873
4880
|
/**
|
|
4874
4881
|
* Resets the selector using the resetSelectorMethod.
|
|
4875
4882
|
*/
|
|
4876
4883
|
reset() {
|
|
4877
|
-
|
|
4884
|
+
$u(this);
|
|
4878
4885
|
}
|
|
4879
4886
|
/**
|
|
4880
4887
|
* Initialise pre-defined selected items using `state`
|
|
@@ -4891,8 +4898,8 @@ class aa extends Ye {
|
|
|
4891
4898
|
return F`
|
|
4892
4899
|
<style>
|
|
4893
4900
|
${!this.unstyled && an}
|
|
4894
|
-
${!this.unstyled && Bu}
|
|
4895
4901
|
${!this.unstyled && Uu}
|
|
4902
|
+
${!this.unstyled && zu}
|
|
4896
4903
|
</style>
|
|
4897
4904
|
${We(
|
|
4898
4905
|
this.suggestions.length > 10,
|
|
@@ -4905,8 +4912,8 @@ class aa extends Ye {
|
|
|
4905
4912
|
type="text"
|
|
4906
4913
|
.value=${this.query}
|
|
4907
4914
|
placeholder="${this.filterObject.placeholder || ""}"
|
|
4908
|
-
@input=${le(this, Pt,
|
|
4909
|
-
@keydown=${le(this, Pt,
|
|
4915
|
+
@input=${le(this, Pt, ca)}
|
|
4916
|
+
@keydown=${le(this, Pt, ua)}
|
|
4910
4917
|
@blur=${() => this.showSuggestions = !1}
|
|
4911
4918
|
@focus=${() => this.showSuggestions = !0}
|
|
4912
4919
|
/>
|
|
@@ -4948,26 +4955,26 @@ Pt = new WeakSet(), /**
|
|
|
4948
4955
|
* @param {Event} event - The input event.
|
|
4949
4956
|
* @private
|
|
4950
4957
|
*/
|
|
4951
|
-
|
|
4952
|
-
|
|
4958
|
+
ca = function(r) {
|
|
4959
|
+
Au(r, this);
|
|
4953
4960
|
}, /**
|
|
4954
4961
|
* Handles keydown events on the autocomplete input element.
|
|
4955
4962
|
*
|
|
4956
4963
|
* @param {Event} event - The keydown event.
|
|
4957
4964
|
* @private
|
|
4958
4965
|
*/
|
|
4959
|
-
|
|
4960
|
-
|
|
4966
|
+
ua = function(r) {
|
|
4967
|
+
Mu(r, this);
|
|
4961
4968
|
}, /**
|
|
4962
4969
|
* Toggles the selection of an item.
|
|
4963
4970
|
*
|
|
4964
4971
|
* @param {Object} item - The item to toggle.
|
|
4965
4972
|
* @private
|
|
4966
4973
|
*/
|
|
4967
|
-
|
|
4968
|
-
|
|
4974
|
+
ha = function(r) {
|
|
4975
|
+
ea(r, this);
|
|
4969
4976
|
}, // Define properties with defaults and types
|
|
4970
|
-
Gr(
|
|
4977
|
+
Gr(la, "properties", {
|
|
4971
4978
|
filterObject: { attribute: !1, type: Object },
|
|
4972
4979
|
suggestions: { attribute: !1, type: Array },
|
|
4973
4980
|
selectedItems: { state: !0, type: Array },
|
|
@@ -4980,11 +4987,11 @@ Gr(aa, "properties", {
|
|
|
4980
4987
|
tabIndex: { attribute: !1, type: Number },
|
|
4981
4988
|
inlineMode: { attribute: "inline-mode", type: Boolean }
|
|
4982
4989
|
});
|
|
4983
|
-
customElements.define("eox-itemfilter-select",
|
|
4990
|
+
customElements.define("eox-itemfilter-select", la);
|
|
4984
4991
|
(() => {
|
|
4985
|
-
var t = Object.defineProperty, e = Math.pow, r = (u, g, $) => g in u ? t(u, g, { enumerable: !0, configurable: !0, writable: !0, value: $ }) : u[g] = $, n = (u, g, $) => (r(u, typeof g != "symbol" ? g + "" : g, $), $), i = (u, g) => ` ${g && g.length > 0 ? g.map(($) => `<link rel="stylesheet" href="${$}" />`).join("") : ""} <style> ${u} </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", l = "pointers-min-distance", c = "pointers-max-distance", h = "range-dragging", p = "data", y = "min",
|
|
4992
|
+
var t = Object.defineProperty, e = Math.pow, r = (u, g, $) => g in u ? t(u, g, { enumerable: !0, configurable: !0, writable: !0, value: $ }) : u[g] = $, n = (u, g, $) => (r(u, typeof g != "symbol" ? g + "" : g, $), $), i = (u, g) => ` ${g && g.length > 0 ? g.map(($) => `<link rel="stylesheet" href="${$}" />`).join("") : ""} <style> ${u} </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", l = "pointers-min-distance", c = "pointers-max-distance", h = "range-dragging", p = "data", y = "min", v = "max", m = "step", _ = "round", E = "type", z = "theme", H = "rtl", Z = "btt", Y = "disabled", ue = "keyboard-disabled", te = "mousewheel-disabled", X = "slider-width", he = "slider-height", $e = "slider-radius", Me = "slider-bg", fe = "slider-bg-hover", ie = "slider-bg-fill", qe = "pointer-width", Ot = "pointer-height", D = "pointer-radius", S = "pointer-bg", M = "pointer-bg-hover", j = "pointer-bg-focus", k = "pointer-shadow", V = "pointer-shadow-hover", K = "pointer-shadow-focus", ce = "pointer-border", we = "pointer-border-hover", Ae = "pointer-border-focus", Se = "animate-onclick", je = "css-links", Ce = "vertical", Ne = "horizontal", se = (u, g, $, w, C) => {
|
|
4986
4993
|
let B = g - u;
|
|
4987
|
-
return B === 0 ? $ : (
|
|
4994
|
+
return B === 0 ? $ : (w - $) * (C - u) / B + $;
|
|
4988
4995
|
}, ke = (u) => !isNaN(parseFloat(u)) && isFinite(u), re = (u, g) => ke(u) ? Number(u) : g, Le = (u, g) => g === 0 ? 0 : Math.round(u / g) * g, at = (u, g = 1 / 0) => {
|
|
4989
4996
|
if (g === 1 / 0) return u;
|
|
4990
4997
|
let $ = e(10, g);
|
|
@@ -4999,16 +5006,16 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
4999
5006
|
u.dispatchEvent(new CustomEvent("onKeyDown", { detail: { nativeEvent: g } }));
|
|
5000
5007
|
}, oi = (u, g) => {
|
|
5001
5008
|
if (!g || g.length <= 0) return;
|
|
5002
|
-
let $ = g.map((C) => ke(C) ? re(C, C) : C),
|
|
5003
|
-
|
|
5004
|
-
for (let C = 1; C < $.length; C++)
|
|
5005
|
-
u.dispatchEvent(new CustomEvent("change", { detail:
|
|
5009
|
+
let $ = g.map((C) => ke(C) ? re(C, C) : C), w = { values: $ || [] };
|
|
5010
|
+
w.value = $[0], w.value0 = $[0], w.value1 = $[0];
|
|
5011
|
+
for (let C = 1; C < $.length; C++) w[`value${C + 1}`] = $[C];
|
|
5012
|
+
u.dispatchEvent(new CustomEvent("change", { detail: w }));
|
|
5006
5013
|
}, Lr = (u, g, $) => {
|
|
5007
|
-
let
|
|
5008
|
-
let He =
|
|
5009
|
-
Pe !== void 0 && q > Pe && (q = Pe), pe !== void 0 && q < pe && (q = pe),
|
|
5010
|
-
let Ie =
|
|
5011
|
-
return (Ee === Ce && me || Ee === Ne && _e) && (Ie = 100 - Ie), Ee === Ce ? g.style.top = `${Ie}%` : g.style.left = `${Ie}%`, He !==
|
|
5014
|
+
let w = 0, C, B, U, L, T = !1, J = (q, pe, Pe, Ee, _e, me) => {
|
|
5015
|
+
let He = w;
|
|
5016
|
+
Pe !== void 0 && q > Pe && (q = Pe), pe !== void 0 && q < pe && (q = pe), w = q;
|
|
5017
|
+
let Ie = w;
|
|
5018
|
+
return (Ee === Ce && me || Ee === Ne && _e) && (Ie = 100 - Ie), Ee === Ce ? g.style.top = `${Ie}%` : g.style.left = `${Ie}%`, He !== w;
|
|
5012
5019
|
}, ne = (q) => q === g || g.contains(q), I = (q, pe, Pe, Ee) => {
|
|
5013
5020
|
C = q, B = pe, U = Pe, L = Ee;
|
|
5014
5021
|
}, oe = (q) => {
|
|
@@ -5041,7 +5048,7 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5041
5048
|
T || si(u, g);
|
|
5042
5049
|
};
|
|
5043
5050
|
return g.className = `pointer pointer-${$}`, g.addEventListener("keydown", N), g.addEventListener("click", ee), { $pointer: g, get percent() {
|
|
5044
|
-
return
|
|
5051
|
+
return w;
|
|
5045
5052
|
}, get disabled() {
|
|
5046
5053
|
return T;
|
|
5047
5054
|
}, set disabled(q) {
|
|
@@ -5053,34 +5060,34 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5053
5060
|
if (u == null) return;
|
|
5054
5061
|
if (Array.isArray(u)) return u;
|
|
5055
5062
|
if (u.trim() === "") return;
|
|
5056
|
-
let g = u.split(","), $ = [],
|
|
5063
|
+
let g = u.split(","), $ = [], w = !0;
|
|
5057
5064
|
for (let C = 0; C < g.length; C++) {
|
|
5058
5065
|
let B = g[C].trim();
|
|
5059
|
-
B !== "" && ($.push(B), ke(B) || (
|
|
5066
|
+
B !== "" && ($.push(B), ke(B) || (w = !1));
|
|
5060
5067
|
}
|
|
5061
|
-
return
|
|
5062
|
-
}, li = (u, g) => g ? g.findIndex(($) => $ === u || $.toString().trim() === u.toString().trim()) : -1, ci = (u) => ({ updatePosition: (g, $,
|
|
5068
|
+
return w ? $.map((C) => Number(C)) : $;
|
|
5069
|
+
}, li = (u, g) => g ? g.findIndex(($) => $ === u || $.toString().trim() === u.toString().trim()) : -1, ci = (u) => ({ updatePosition: (g, $, w, C) => {
|
|
5063
5070
|
if ($.length <= 0) return;
|
|
5064
5071
|
let B = $.length === 1, U = $[0], L = $[$.length - 1];
|
|
5065
|
-
g === Ce ? (u.style.removeProperty("width"), u.style.removeProperty("right"), u.style.removeProperty("left"), B ? u.style.height = `${U}%` : u.style.height = `${Math.abs(U - L)}%`, C ? (u.style.bottom = "0%", B ? u.style.top = "auto" : u.style.top = `${Math.min(100 - L, 100 - U)}%`) : (u.style.bottom = "auto", B ? u.style.top = "0%" : u.style.top = `${Math.min(U, L)}%`)) : (u.style.removeProperty("height"), u.style.removeProperty("top"), u.style.removeProperty("bottom"), B ? u.style.width = `${U}%` : u.style.width = `${Math.abs(U - L)}%`,
|
|
5066
|
-
} }), dn = "--animate-onclick", ui = "--width", Pr = "--height", hi = "--panel-bg-border-radius", di = "--panel-bg", fi = "--panel-bg-hover", pi = "--panel-bg-fill", gi = "--pointer-width", nr = "--pointer-height", Tr = "--pointer-border-radius", fn = "--pointer-bg", pn = "--pointer-bg-hover", nt = "--pointer-bg-focus",
|
|
5067
|
-
let
|
|
5072
|
+
g === Ce ? (u.style.removeProperty("width"), u.style.removeProperty("right"), u.style.removeProperty("left"), B ? u.style.height = `${U}%` : u.style.height = `${Math.abs(U - L)}%`, C ? (u.style.bottom = "0%", B ? u.style.top = "auto" : u.style.top = `${Math.min(100 - L, 100 - U)}%`) : (u.style.bottom = "auto", B ? u.style.top = "0%" : u.style.top = `${Math.min(U, L)}%`)) : (u.style.removeProperty("height"), u.style.removeProperty("top"), u.style.removeProperty("bottom"), B ? u.style.width = `${U}%` : u.style.width = `${Math.abs(U - L)}%`, w ? (u.style.right = "0%", B ? u.style.left = "auto" : u.style.left = `${Math.min(100 - L, 100 - U)}%`) : (u.style.right = "auto", B ? u.style.left = "0%" : u.style.left = `${Math.min(U, L)}%`));
|
|
5073
|
+
} }), dn = "--animate-onclick", ui = "--width", Pr = "--height", hi = "--panel-bg-border-radius", di = "--panel-bg", fi = "--panel-bg-hover", pi = "--panel-bg-fill", gi = "--pointer-width", nr = "--pointer-height", Tr = "--pointer-border-radius", fn = "--pointer-bg", pn = "--pointer-bg-hover", nt = "--pointer-bg-focus", _t = "--pointer-shadow", yi = "--pointer-shadow-hover", ir = "--pointer-shadow-focus", gn = "--pointer-border", bi = "--pointer-border-hover", mi = "--pointer-border-focus", Dt = (u, g, $) => {
|
|
5074
|
+
let w = /* @__PURE__ */ new Map();
|
|
5068
5075
|
for (let C of u.attributes) {
|
|
5069
5076
|
let B = C.nodeName.trim().toLowerCase();
|
|
5070
5077
|
if (!g.test(B)) continue;
|
|
5071
5078
|
let U = B.replace(/\D/g, "").trim(), L = U === "" || U === "0" || U === "1" ? 0 : re(U, 0) - 1, T = $ && typeof $ == "function" ? $(C.value) : C.value;
|
|
5072
|
-
|
|
5079
|
+
w.set(L, T);
|
|
5073
5080
|
}
|
|
5074
|
-
return
|
|
5081
|
+
return w;
|
|
5075
5082
|
}, vi = (u) => {
|
|
5076
5083
|
if (!u) return null;
|
|
5077
5084
|
let g = u.getAttribute(je);
|
|
5078
5085
|
if (!g) return null;
|
|
5079
|
-
let $ = g.split(";"),
|
|
5080
|
-
for (let C of $) C.trim() !== "" &&
|
|
5081
|
-
return
|
|
5082
|
-
}, sr = [[ui,
|
|
5083
|
-
let
|
|
5086
|
+
let $ = g.split(";"), w = [];
|
|
5087
|
+
for (let C of $) C.trim() !== "" && w.push(C.trim());
|
|
5088
|
+
return w;
|
|
5089
|
+
}, sr = [[ui, X, "sliderWidth", null], [Pr, he, "sliderHeight", null], [hi, $e, "sliderRadius", null], [di, Me, "sliderBg", null], [fi, fe, "sliderBgHover", null], [pi, ie, "sliderBgFill", null], [gi, qe, "pointer#Width", /^pointer([0-9]*)-width$/], [nr, Ot, "pointer#Height", /^pointer([0-9]*)-height$/], [Tr, D, "pointer#Radius", /^pointer([0-9]*)-radius$/], [fn, S, "pointer#Bg", /^pointer([0-9]*)-bg$/], [pn, M, "pointer#BgHover", /^pointer([0-9]*)-bg-hover$/], [nt, j, "pointer#BgFocus", /^pointer([0-9]*)-bg-focus$/], [_t, k, "pointer#Shadow", /^pointer([0-9]*)-shadow$/], [yi, V, "pointer#ShadowHover", /^pointer([0-9]*)-shadow-hover$/], [ir, K, "pointer#ShadowFocus", /^pointer([0-9]*)-shadow-focus$/], [gn, ce, "pointer#Border", /^pointer([0-9]*)-border$/], [bi, we, "pointer#BorderHover", /^pointer([0-9]*)-border-hover$/], [mi, Ae, "pointer#BorderFocus", /^pointer([0-9]*)-border-focus$/]], jt = (u, g, $) => {
|
|
5090
|
+
let w = null, C = [], B = /* @__PURE__ */ new Map(), U = (N, ee = g) => {
|
|
5084
5091
|
let q = [...ee.classList];
|
|
5085
5092
|
for (let pe of q) pe.startsWith(N) && g.classList.remove(pe);
|
|
5086
5093
|
}, L = () => {
|
|
@@ -5088,7 +5095,7 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5088
5095
|
let N = g.querySelectorAll(".pointer");
|
|
5089
5096
|
for (let ee of N) U("shape", ee);
|
|
5090
5097
|
}, T = (N) => {
|
|
5091
|
-
|
|
5098
|
+
w = N, U("theme-"), typeof N == "string" && g.classList.add(`theme-${N}`);
|
|
5092
5099
|
}, J = () => {
|
|
5093
5100
|
if (L(), !(C.length <= 0)) {
|
|
5094
5101
|
g.classList.add("shape", `shape-${C[0]}`);
|
|
@@ -5153,13 +5160,13 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5153
5160
|
}
|
|
5154
5161
|
T(u.getAttribute(z)), I();
|
|
5155
5162
|
})(), { setStyle: Ke, getStyle: Re, get theme() {
|
|
5156
|
-
return
|
|
5163
|
+
return w;
|
|
5157
5164
|
}, set theme(N) {
|
|
5158
5165
|
T(N);
|
|
5159
5166
|
}, get pointerShapes() {
|
|
5160
5167
|
return C;
|
|
5161
5168
|
}, setPointerShape: ne };
|
|
5162
|
-
}, lt = "animate-on-click", or = "range-dragging", Rr = (u, g, $,
|
|
5169
|
+
}, lt = "animate-on-click", or = "range-dragging", Rr = (u, g, $, w) => {
|
|
5163
5170
|
let C = [], B = (ne) => {
|
|
5164
5171
|
for (let I of C) I.update && typeof I.update == "function" && I.update(ne);
|
|
5165
5172
|
}, U = () => {
|
|
@@ -5183,14 +5190,14 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5183
5190
|
return { init: () => {
|
|
5184
5191
|
if (window.tcRangeSliderPlugins) for (let ne of window.tcRangeSliderPlugins) {
|
|
5185
5192
|
let I = ne();
|
|
5186
|
-
C.push(I), I.init && typeof I.init == "function" && (I.init(u, g, $,
|
|
5193
|
+
C.push(I), I.init && typeof I.init == "function" && (I.init(u, g, $, w), T(I), J(I));
|
|
5187
5194
|
}
|
|
5188
5195
|
}, update: B, onAttrChange: L, destroy: U };
|
|
5189
5196
|
}, Nt = 10, yn = 20, wi = (u, g) => {
|
|
5190
|
-
let $ = /* @__PURE__ */ new Map(),
|
|
5197
|
+
let $ = /* @__PURE__ */ new Map(), w = /^value([0-9]*)$/;
|
|
5191
5198
|
for (let L of u.attributes) {
|
|
5192
5199
|
let T = L.nodeName.trim().toLowerCase();
|
|
5193
|
-
if (!
|
|
5200
|
+
if (!w.test(T)) continue;
|
|
5194
5201
|
let J = T.replace("value", "").trim(), ne = J === "" || J === "0" || J === "1" ? 0 : re(J, 0) - 1, I = ke(L.value) ? re(L.value, 0) : L.value;
|
|
5195
5202
|
$.set(ne, I);
|
|
5196
5203
|
}
|
|
@@ -5202,9 +5209,9 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5202
5209
|
U.after(T), U = T, B.push([Lr(u, T, L), $.get(L)]);
|
|
5203
5210
|
}
|
|
5204
5211
|
return B;
|
|
5205
|
-
}, bn = (u, g, $,
|
|
5212
|
+
}, bn = (u, g, $, w, C, B, U) => {
|
|
5206
5213
|
try {
|
|
5207
|
-
Object.defineProperty(u,
|
|
5214
|
+
Object.defineProperty(u, w, { configurable: !0, get() {
|
|
5208
5215
|
if (!g) return;
|
|
5209
5216
|
let L = g.pointers[$];
|
|
5210
5217
|
if (!L) return;
|
|
@@ -5235,42 +5242,42 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5235
5242
|
}
|
|
5236
5243
|
}, xi = (u, g) => {
|
|
5237
5244
|
let $ = [["value", "ariaLabel", "pointerShape", "pointerDisabled", 0], ["value0", "ariaLabel0", "pointerShape0", "pointer0Disabled", 0], ["value1", "ariaLabel1", "pointerShape1", "pointer1Disabled", 0]];
|
|
5238
|
-
for (let
|
|
5239
|
-
for (let
|
|
5245
|
+
for (let w = 2; w < Nt; w++) $.push([`value${w}`, `ariaLabel${w}`, `pointer${w}Shape`, `pointer${w}Disabled`, w - 1]);
|
|
5246
|
+
for (let w of $) bn(u, g, w[4], w[0], w[1], w[2], w[3]);
|
|
5240
5247
|
}, mn = (u, g, $) => {
|
|
5241
|
-
var
|
|
5242
|
-
let C = (
|
|
5248
|
+
var w;
|
|
5249
|
+
let C = (w = $.shadowRoot) == null ? void 0 : w.querySelector(".container");
|
|
5243
5250
|
if (C) for (let B of u) g ? C.prepend(B.$pointer) : C.append(B.$pointer);
|
|
5244
5251
|
}, ar = (u, g) => {
|
|
5245
5252
|
if (!(!g || u.length <= 1)) {
|
|
5246
5253
|
for (let $ of u) $.$pointer.style.zIndex = yn.toString();
|
|
5247
5254
|
g.$pointer.style.zIndex = (yn * 2).toString();
|
|
5248
5255
|
}
|
|
5249
|
-
}, Ht = 0,
|
|
5250
|
-
let
|
|
5251
|
-
me || (f.preventDefault && f.preventDefault(),
|
|
5256
|
+
}, Ht = 0, At = 100, Ve = 2, vn = "0.3s", $i = (u, g, $) => {
|
|
5257
|
+
let w = $.map((f) => f[0]), C = null, B = null, U = null, L = null, T = Ht, J = At, ne, I, oe = Ne, Ke = Ve, Re = !1, N = !1, ee = !1, q = 0, pe = 1 / 0, Pe = !1, Ee, _e, me = !1, He = !1, Ie = !1, ct = vn, wn = [], Dr = (f) => {
|
|
5258
|
+
me || (f.preventDefault && f.preventDefault(), gt(f), window.addEventListener("mousemove", gt), window.addEventListener("mouseup", lr), cn(u, f));
|
|
5252
5259
|
}, lr = (f) => {
|
|
5253
|
-
me || (Ee = void 0, _e = void 0, window.removeEventListener("mousemove",
|
|
5260
|
+
me || (Ee = void 0, _e = void 0, window.removeEventListener("mousemove", gt), window.removeEventListener("mouseup", lr), ct && g.classList.add(lt), un(u, f));
|
|
5254
5261
|
}, Mi = (f, x) => {
|
|
5255
|
-
if (
|
|
5256
|
-
if (
|
|
5262
|
+
if (w.length <= 0) return;
|
|
5263
|
+
if (w.length === 1) return w[0].isClicked(f) && ct && g.classList.remove(lt), w[0];
|
|
5257
5264
|
let R = Ei(f);
|
|
5258
5265
|
if (Pe) {
|
|
5259
5266
|
let ae = x, ze = Ut(ae);
|
|
5260
5267
|
ze !== void 0 && (ae = Le(ae, ze)), R ? (Ee = ae, _e = 0, ct && g.classList.remove(lt)) : Ee !== void 0 && (_e = ae - Ee, Ee = ae);
|
|
5261
5268
|
}
|
|
5262
5269
|
if (!Si(f) && !R) {
|
|
5263
|
-
for (let ae of
|
|
5264
|
-
for (let ae of
|
|
5270
|
+
for (let ae of w) if (!(!ae.isClicked(f) || ae.disabled)) return ct && g.classList.remove(lt), ae;
|
|
5271
|
+
for (let ae of w) if (C === ae) return ae;
|
|
5265
5272
|
}
|
|
5266
5273
|
let Q = 1 / 0, de = null;
|
|
5267
|
-
for (let ae of
|
|
5274
|
+
for (let ae of w) {
|
|
5268
5275
|
if (ae.disabled) continue;
|
|
5269
5276
|
let ze = Math.abs(x - ae.percent);
|
|
5270
5277
|
ze < Q && (Q = ze, de = ae);
|
|
5271
5278
|
}
|
|
5272
5279
|
return de;
|
|
5273
|
-
}, cr = () =>
|
|
5280
|
+
}, cr = () => w.findIndex((f) => C === f && !f.disabled), gt = (f) => {
|
|
5274
5281
|
let x;
|
|
5275
5282
|
if (oe === Ce) {
|
|
5276
5283
|
let { height: Q, top: de } = g.getBoundingClientRect(), ae = f.type.indexOf("mouse") !== -1 ? f.clientY : f.touches[0].clientY;
|
|
@@ -5279,10 +5286,10 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5279
5286
|
let { width: Q, left: de } = g.getBoundingClientRect(), ae = f.type.indexOf("mouse") !== -1 ? f.clientX : f.touches[0].clientX;
|
|
5280
5287
|
x = Math.min(Math.max(0, ae - de), Q) * 100 / Q;
|
|
5281
5288
|
}
|
|
5282
|
-
if ((Re || N) && (x = 100 - x), C = Mi(f.target, x), C && ar(
|
|
5283
|
-
let Q =
|
|
5289
|
+
if ((Re || N) && (x = 100 - x), C = Mi(f.target, x), C && ar(w, C), Pe && w.length > 1 && _e !== void 0) {
|
|
5290
|
+
let Q = w[0], de = w[w.length - 1], ae = Q.percent + _e < 0, ze = de.percent + _e > 100;
|
|
5284
5291
|
if (ae || ze) return;
|
|
5285
|
-
for (let
|
|
5292
|
+
for (let wt = 0; wt < w.length; wt++) Te(wt, w[wt].percent + _e);
|
|
5286
5293
|
return;
|
|
5287
5294
|
}
|
|
5288
5295
|
let R = cr();
|
|
@@ -5291,15 +5298,15 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5291
5298
|
if (me || document.activeElement !== u || C != null && C.disabled) return;
|
|
5292
5299
|
f.stopPropagation(), f.preventDefault();
|
|
5293
5300
|
let x = f.deltaY < 0, R = Re || N, Q = x ? !R : R, de = cr();
|
|
5294
|
-
de !== -1 && (Q ? It(de,
|
|
5301
|
+
de !== -1 && (Q ? It(de, w[de].percent) : Bt(de, w[de].percent));
|
|
5295
5302
|
}, xn = (f) => {
|
|
5296
|
-
me || He || (oe === Ce ? N ? Te(f, 100) : Te(f, 0) : Re ? Bt(f,
|
|
5303
|
+
me || He || (oe === Ce ? N ? Te(f, 100) : Te(f, 0) : Re ? Bt(f, w[f].percent) : It(f, w[f].percent));
|
|
5297
5304
|
}, $n = (f) => {
|
|
5298
|
-
me || He || (oe === Ce ? N ? Te(f, 0) : Te(f, 100) : Re ? It(f,
|
|
5305
|
+
me || He || (oe === Ce ? N ? Te(f, 0) : Te(f, 100) : Re ? It(f, w[f].percent) : Bt(f, w[f].percent));
|
|
5299
5306
|
}, _n = (f) => {
|
|
5300
|
-
me || He || (oe === Ce ? N ? Bt(f,
|
|
5307
|
+
me || He || (oe === Ce ? N ? Bt(f, w[f].percent) : It(f, w[f].percent) : Re ? Te(f, 100) : Te(f, 0));
|
|
5301
5308
|
}, An = (f) => {
|
|
5302
|
-
me || He || (oe === Ce ? N ? It(f,
|
|
5309
|
+
me || He || (oe === Ce ? N ? It(f, w[f].percent) : Bt(f, w[f].percent) : Re ? Te(f, 0) : Te(f, 100));
|
|
5303
5310
|
}, Si = (f) => f.classList.contains("panel"), Ei = (f) => f.classList.contains("panel-fill"), It = (f, x) => {
|
|
5304
5311
|
if (x === void 0) return;
|
|
5305
5312
|
let R = Ut(x);
|
|
@@ -5308,25 +5315,25 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5308
5315
|
if (x === void 0) return;
|
|
5309
5316
|
let R = Ut(x);
|
|
5310
5317
|
R == null && (R = 1), x += R, x > 100 && (x = 100), Te(f, x);
|
|
5311
|
-
},
|
|
5312
|
-
!L || L.update({ percents: Sn(), values: En(), $pointers: Nr(), min: zt(), max: Cn(), data: Hr(), step: jr(), round: dr(), type: Ir(), textMin: hr(), textMax:
|
|
5318
|
+
}, yt = () => {
|
|
5319
|
+
!L || L.update({ percents: Sn(), values: En(), $pointers: Nr(), min: zt(), max: Cn(), data: Hr(), step: jr(), round: dr(), type: Ir(), textMin: hr(), textMax: bt(), rightToLeft: it(), bottomToTop: Ur(), pointersOverlap: Wt(), pointersMinDistance: fr(), pointersMaxDistance: Br(), rangeDragging: Fe(), disabled: zr(), keyboardDisabled: qt(), mousewheelDisabled: gr() });
|
|
5313
5320
|
}, Mn = () => {
|
|
5314
|
-
|
|
5321
|
+
yt();
|
|
5315
5322
|
}, Ci = (f) => {
|
|
5316
|
-
if (!(ee ||
|
|
5323
|
+
if (!(ee || w.length <= 1 || J === T)) if (f === 0) {
|
|
5317
5324
|
let x = pe * 100 / (J - T);
|
|
5318
|
-
return Math.max(0,
|
|
5325
|
+
return Math.max(0, w[f + 1].percent - x);
|
|
5319
5326
|
} else {
|
|
5320
5327
|
let x = q * 100 / (J - T);
|
|
5321
|
-
return Math.min(
|
|
5328
|
+
return Math.min(w[f - 1].percent + x, 100);
|
|
5322
5329
|
}
|
|
5323
5330
|
}, ki = (f) => {
|
|
5324
|
-
if (!(ee ||
|
|
5331
|
+
if (!(ee || w.length <= 1 || J === T)) if (f === w.length - 1) {
|
|
5325
5332
|
let x = pe * 100 / (J - T);
|
|
5326
|
-
return Math.min(
|
|
5333
|
+
return Math.min(w[f - 1].percent + x, 100);
|
|
5327
5334
|
} else {
|
|
5328
5335
|
let x = q * 100 / (J - T);
|
|
5329
|
-
return Math.max(0,
|
|
5336
|
+
return Math.max(0, w[f + 1].percent - x);
|
|
5330
5337
|
}
|
|
5331
5338
|
}, Ut = (f) => {
|
|
5332
5339
|
let x;
|
|
@@ -5338,43 +5345,43 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5338
5345
|
let R = J - T;
|
|
5339
5346
|
return x = R === 0 ? 0 : x * 100 / R, x;
|
|
5340
5347
|
}
|
|
5341
|
-
},
|
|
5348
|
+
}, Mt = (f) => {
|
|
5342
5349
|
if (f === void 0) return;
|
|
5343
5350
|
let x = se(0, 100, T, J, f);
|
|
5344
5351
|
return I !== void 0 ? I[Math.round(x)] : at(x, Ke);
|
|
5345
|
-
}, hr = () => I !== void 0 ? I[T] : T,
|
|
5352
|
+
}, hr = () => I !== void 0 ? I[T] : T, bt = () => I !== void 0 ? I[J] : J, jr = () => ne, St = (f) => {
|
|
5346
5353
|
var x;
|
|
5347
|
-
return f <= 0 || ee ? hr() : (x =
|
|
5354
|
+
return f <= 0 || ee ? hr() : (x = Mt(w[f - 1].percent)) != null ? x : "";
|
|
5348
5355
|
}, ut = (f) => {
|
|
5349
5356
|
var x;
|
|
5350
|
-
return
|
|
5351
|
-
}, Sn = () =>
|
|
5357
|
+
return w.length <= 1 || f >= w.length - 1 || ee ? bt() : (x = Mt(w[f + 1].percent)) != null ? x : "";
|
|
5358
|
+
}, Sn = () => w.map((f) => f.percent), En = () => w.map((f) => Mt(f.percent)), Nr = () => w.map((f) => f.$pointer), zt = () => T, Cn = () => J, Hr = () => I, Ir = () => oe, dr = () => Ke, fr = () => q, Br = () => pe, pr = (f) => wn[f], it = () => Re, Ur = () => N, zr = () => me, qt = () => He, gr = () => Ie, Wt = () => ee, Fe = () => Pe, Te = (f, x) => {
|
|
5352
5359
|
if (x === void 0) return;
|
|
5353
5360
|
let R = Ut(x);
|
|
5354
5361
|
R !== void 0 && (x = Le(x, R));
|
|
5355
|
-
let Q =
|
|
5362
|
+
let Q = w[f];
|
|
5356
5363
|
if (!Q) return;
|
|
5357
5364
|
let de = Q.updatePosition(x, Ci(f), ki(f), oe, Re, N);
|
|
5358
|
-
B == null || B.updatePosition(oe,
|
|
5359
|
-
for (let ae of
|
|
5360
|
-
let ze =
|
|
5365
|
+
B == null || B.updatePosition(oe, w.map((ae) => ae.percent), Re, N), yt();
|
|
5366
|
+
for (let ae of w) {
|
|
5367
|
+
let ze = Mt(ae.percent);
|
|
5361
5368
|
ze !== void 0 && (ae.setAttr("aria-valuenow", ze.toString()), ae.setAttr("aria-valuetext", ze.toString()));
|
|
5362
5369
|
}
|
|
5363
|
-
qr(), de && oi(u,
|
|
5370
|
+
qr(), de && oi(u, w.map((ae) => Mt(ae.percent)));
|
|
5364
5371
|
}, et = () => {
|
|
5365
|
-
for (let f = 0; f <
|
|
5372
|
+
for (let f = 0; f < w.length; f++) Te(f, w[f].percent);
|
|
5366
5373
|
}, kn = (f, x) => {
|
|
5367
|
-
T = I !== void 0 ? 0 : re(f, Ht), J = I !== void 0 ? I.length - 1 : re(x,
|
|
5374
|
+
T = I !== void 0 ? 0 : re(f, Ht), J = I !== void 0 ? I.length - 1 : re(x, At), mt(T), vt(J);
|
|
5368
5375
|
}, qr = () => {
|
|
5369
5376
|
var f, x;
|
|
5370
|
-
for (let R = 0; R <
|
|
5371
|
-
let Q =
|
|
5372
|
-
Q.setAttr("aria-valuemin", ((f =
|
|
5377
|
+
for (let R = 0; R < w.length; R++) {
|
|
5378
|
+
let Q = w[R];
|
|
5379
|
+
Q.setAttr("aria-valuemin", ((f = St(R)) != null ? f : "").toString()), Q.setAttr("aria-valuemax", ((x = ut(R)) != null ? x : "").toString());
|
|
5373
5380
|
}
|
|
5374
|
-
}, bt = (f) => {
|
|
5375
|
-
T = re(f, Ht), T > J && (J = T + _t), et();
|
|
5376
5381
|
}, mt = (f) => {
|
|
5377
|
-
|
|
5382
|
+
T = re(f, Ht), T > J && (J = T + At), et();
|
|
5383
|
+
}, vt = (f) => {
|
|
5384
|
+
J = re(f, At), J < T && (J = T + At), et();
|
|
5378
5385
|
}, yr = (f) => {
|
|
5379
5386
|
ee = !0;
|
|
5380
5387
|
for (let x = 0; x < f.length; x++) br(f[x], x);
|
|
@@ -5405,7 +5412,7 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5405
5412
|
ee = f, et();
|
|
5406
5413
|
}, Vr = (f) => {
|
|
5407
5414
|
(!ke(f) || f < 0) && (f = 0), q = f;
|
|
5408
|
-
},
|
|
5415
|
+
}, Et = (f) => {
|
|
5409
5416
|
(!ke(f) || f < 0) && (f = 1 / 0), pe = f;
|
|
5410
5417
|
}, Kr = (f) => {
|
|
5411
5418
|
me = f, g.classList.toggle("disabled", me), me ? g.setAttribute("aria-disabled", "true") : g.hasAttribute("aria-disabled") && g.removeAttribute("aria-disabled");
|
|
@@ -5422,7 +5429,7 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5422
5429
|
I = void 0;
|
|
5423
5430
|
return;
|
|
5424
5431
|
}
|
|
5425
|
-
|
|
5432
|
+
mt(0), vt(I.length - 1), ne === void 0 && mr(1);
|
|
5426
5433
|
}, b = (f) => {
|
|
5427
5434
|
var x;
|
|
5428
5435
|
typeof f == "string" ? oe = f.trim().toLowerCase() === Ce ? Ce : Ne : oe = Ne;
|
|
@@ -5430,20 +5437,20 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5430
5437
|
if (!R) return;
|
|
5431
5438
|
R.className = `range-slider-box type-${oe}`, et();
|
|
5432
5439
|
let Q = oe === Ce ? "vertical" : "horizontal";
|
|
5433
|
-
for (let de of
|
|
5440
|
+
for (let de of w) de.setAttr("aria-orientation", Q);
|
|
5434
5441
|
}, A = (f) => {
|
|
5435
|
-
Re = f,
|
|
5442
|
+
Re = f, w.length > 1 && mn(w, Re, u), et(), yt();
|
|
5436
5443
|
}, O = (f) => {
|
|
5437
|
-
N = f,
|
|
5444
|
+
N = f, w.length > 1 && mn(w, N, u), et(), yt();
|
|
5438
5445
|
}, P = (f) => {
|
|
5439
|
-
Ke = re(f, Ve), Ke < 0 && (Ke = Ve),
|
|
5446
|
+
Ke = re(f, Ve), Ke < 0 && (Ke = Ve), yt();
|
|
5440
5447
|
}, W = (f) => {
|
|
5441
5448
|
f == null || f.toString().trim().toLowerCase() === "false" ? (ct = void 0, g.style.removeProperty(dn), g.classList.remove(lt)) : (ct = f.toString(), g.style.setProperty(dn, ct), g.classList.add(lt));
|
|
5442
5449
|
}, ve = (f, x) => {
|
|
5443
|
-
let R =
|
|
5450
|
+
let R = w[f];
|
|
5444
5451
|
!R || (R.setAttr("aria-label", x), wn[f] = x);
|
|
5445
5452
|
}, ye = (f) => {
|
|
5446
|
-
if (Ee = void 0,
|
|
5453
|
+
if (Ee = void 0, w.length <= 1) {
|
|
5447
5454
|
Pe = !1, g.classList.remove(or);
|
|
5448
5455
|
return;
|
|
5449
5456
|
}
|
|
@@ -5453,7 +5460,7 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5453
5460
|
let f = Dt(u, /^pointer([0-9]*)-disabled$/, (x) => xe(x));
|
|
5454
5461
|
for (let x of f) {
|
|
5455
5462
|
let R = x[0];
|
|
5456
|
-
!
|
|
5463
|
+
!w[R] || (w[R].disabled = x[1]);
|
|
5457
5464
|
}
|
|
5458
5465
|
}, Be = () => {
|
|
5459
5466
|
let f = Dt(u, /^aria-label([0-9]*)$/);
|
|
@@ -5462,21 +5469,21 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5462
5469
|
ve(R, x[1]);
|
|
5463
5470
|
}
|
|
5464
5471
|
}, Ue = (f) => {
|
|
5465
|
-
let x =
|
|
5472
|
+
let x = w.length, R = w[x - 1].$pointer, Q = R.cloneNode(!0);
|
|
5466
5473
|
R.after(Q);
|
|
5467
5474
|
let de = Lr(u, Q, x);
|
|
5468
|
-
return de.setCallbacks(xn, $n, _n, An),
|
|
5475
|
+
return de.setCallbacks(xn, $n, _n, An), w.push(de), br(f, x), et(), yt(), x;
|
|
5469
5476
|
}, De = () => {
|
|
5470
|
-
let f =
|
|
5471
|
-
return x ? (x.destroy(),
|
|
5477
|
+
let f = w.length, x = w[f - 1];
|
|
5478
|
+
return x ? (x.destroy(), w.pop(), w.length <= 1 && ye(!1), et(), yt(), f - 1) : -1;
|
|
5472
5479
|
};
|
|
5473
5480
|
return (() => {
|
|
5474
5481
|
var f, x;
|
|
5475
|
-
for (let Q of
|
|
5482
|
+
for (let Q of w) Q.setCallbacks(xn, $n, _n, An);
|
|
5476
5483
|
let R = (f = u.shadowRoot) == null ? void 0 : f.querySelector(".panel-fill");
|
|
5477
|
-
R && (B = ci(R)), b(u.getAttribute(E)), A(xe(u.getAttribute(H))), O(xe(u.getAttribute(
|
|
5484
|
+
R && (B = ci(R)), b(u.getAttribute(E)), A(xe(u.getAttribute(H))), O(xe(u.getAttribute(Z))), kn(u.getAttribute(y), u.getAttribute(v)), mr(u.getAttribute(m)), d(u.getAttribute(p)), yr($.map((Q) => Q[1])), Wr(xe(u.getAttribute(o))), Vr(re(u.getAttribute(l), 0)), Et(re(u.getAttribute(c), 1 / 0)), ye(xe(u.getAttribute(h))), P(re(u.getAttribute(_), Ve)), Oe(), Be(), U = jt(u, g, w), W((x = u.getAttribute(Se)) != null ? x : vn), g.addEventListener("mousedown", Dr), g.addEventListener("mouseup", lr), g.addEventListener("touchmove", gt), g.addEventListener("touchstart", gt), Ie || document.addEventListener("wheel", ur, { passive: !1 }), L = Rr(u, Mn, { setValues: yr, setMin: mt, setMax: vt, setStep: mr, setPointersOverlap: Wr, setPointersMinDistance: Vr, setPointersMaxDistance: Et, setDisabled: Kr, setType: b, setRightToLeft: A, setBottomToTop: O, setRound: P, setKeyboardDisabled: Ln, setMousewheelDisabled: a, setRangeDragging: ye, setData: d }, { getPercents: Sn, getValues: En, getPointerElements: Nr, getMin: zt, getMax: Cn, getStep: jr, getData: Hr, getType: Ir, getRound: dr, getTextMin: hr, getTextMax: bt, isRightToLeft: it, isBottomToTop: Ur, isDisabled: zr, isKeyboardDisabled: qt, isMousewheelDisabled: gr, isPointersOverlap: Wt, isRangeDraggingEnabled: Fe, getPointersMinDistance: fr, getPointersMaxDistance: Br }), L.init();
|
|
5478
5485
|
})(), { get pointers() {
|
|
5479
|
-
return
|
|
5486
|
+
return w;
|
|
5480
5487
|
}, get styles() {
|
|
5481
5488
|
return U;
|
|
5482
5489
|
}, get pluginsManager() {
|
|
@@ -5484,7 +5491,7 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5484
5491
|
}, get min() {
|
|
5485
5492
|
return hr();
|
|
5486
5493
|
}, get max() {
|
|
5487
|
-
return
|
|
5494
|
+
return bt();
|
|
5488
5495
|
}, get step() {
|
|
5489
5496
|
return jr();
|
|
5490
5497
|
}, get pointersOverlap() {
|
|
@@ -5498,7 +5505,7 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5498
5505
|
}, get pointersMaxDistance() {
|
|
5499
5506
|
return Br();
|
|
5500
5507
|
}, set pointersMaxDistance(f) {
|
|
5501
|
-
|
|
5508
|
+
Et(f);
|
|
5502
5509
|
}, get disabled() {
|
|
5503
5510
|
return zr();
|
|
5504
5511
|
}, set disabled(f) {
|
|
@@ -5537,15 +5544,15 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5537
5544
|
return Fe();
|
|
5538
5545
|
}, set rangeDragging(f) {
|
|
5539
5546
|
ye(f);
|
|
5540
|
-
}, setMin:
|
|
5541
|
-
g.removeEventListener("mousedown", Dr), g.removeEventListener("mouseup", lr), g.removeEventListener("touchmove",
|
|
5542
|
-
for (let f of
|
|
5547
|
+
}, setMin: mt, setMax: vt, setValue: br, setStep: mr, setData: d, getTextValue: Mt, setAriaLabel: ve, getAriaLabel: pr, addPointer: Ue, removePointer: De, destroy: () => {
|
|
5548
|
+
g.removeEventListener("mousedown", Dr), g.removeEventListener("mouseup", lr), g.removeEventListener("touchmove", gt), g.removeEventListener("touchstart", gt), document.removeEventListener("wheel", ur);
|
|
5549
|
+
for (let f of w) f.destroy();
|
|
5543
5550
|
L == null || L.destroy();
|
|
5544
5551
|
} };
|
|
5545
5552
|
}, _i = (u, g, $) => {
|
|
5546
|
-
let
|
|
5547
|
-
if (
|
|
5548
|
-
let [L, T, J, ne] =
|
|
5553
|
+
let w = sr.find(([L, T, J, ne]) => T.replace("#", "") === g.replace(/\d+/g, ""));
|
|
5554
|
+
if (w && u.styles) {
|
|
5555
|
+
let [L, T, J, ne] = w, I = g.replace(/\D/g, "").trim(), oe = I === "" || I === "0" || I === "1" ? 0 : re(I, 0) - 1;
|
|
5549
5556
|
u.styles.setStyle(L, $, oe);
|
|
5550
5557
|
return;
|
|
5551
5558
|
}
|
|
@@ -5554,7 +5561,7 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5554
5561
|
u.setMin($);
|
|
5555
5562
|
break;
|
|
5556
5563
|
}
|
|
5557
|
-
case
|
|
5564
|
+
case v: {
|
|
5558
5565
|
u.setMax($);
|
|
5559
5566
|
break;
|
|
5560
5567
|
}
|
|
@@ -5602,7 +5609,7 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5602
5609
|
u.rightToLeft = xe($);
|
|
5603
5610
|
break;
|
|
5604
5611
|
}
|
|
5605
|
-
case
|
|
5612
|
+
case Z: {
|
|
5606
5613
|
u.bottomToTop = xe($);
|
|
5607
5614
|
break;
|
|
5608
5615
|
}
|
|
@@ -5774,8 +5781,8 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5774
5781
|
addPointer(u) {
|
|
5775
5782
|
var g, $;
|
|
5776
5783
|
if (!this.slider) return;
|
|
5777
|
-
let
|
|
5778
|
-
bn(this, this.slider,
|
|
5784
|
+
let w = ($ = (g = this.slider) == null ? void 0 : g.addPointer(u)) != null ? $ : 0;
|
|
5785
|
+
bn(this, this.slider, w, `value${w + 1}`, `ariaLabel${w + 1}`, `pointerShape${w + 1}`, `pointer${w + 1}Disabled`);
|
|
5779
5786
|
}
|
|
5780
5787
|
removePointer() {
|
|
5781
5788
|
var u;
|
|
@@ -5792,10 +5799,10 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5792
5799
|
this._externalCSSList = vi(this), this.shadowRoot.innerHTML = i(s, this._externalCSSList);
|
|
5793
5800
|
let $ = (u = this.shadowRoot) == null ? void 0 : u.querySelector(".pointer");
|
|
5794
5801
|
if (!$) return;
|
|
5795
|
-
let
|
|
5796
|
-
if (!
|
|
5802
|
+
let w = (g = this.shadowRoot) == null ? void 0 : g.getElementById("range-slider");
|
|
5803
|
+
if (!w) return;
|
|
5797
5804
|
let C = wi(this, $);
|
|
5798
|
-
this.slider = $i(this,
|
|
5805
|
+
this.slider = $i(this, w, C), xi(this, this.slider), this._observer = new MutationObserver((B) => {
|
|
5799
5806
|
B.forEach((U) => {
|
|
5800
5807
|
var L;
|
|
5801
5808
|
if (!this.slider || U.type !== "attributes") return;
|
|
@@ -5811,12 +5818,12 @@ customElements.define("eox-itemfilter-select", aa);
|
|
|
5811
5818
|
window.tcRangeSlider = Or, customElements.get("toolcool-range-slider") || customElements.define("toolcool-range-slider", Or), customElements.get("tc-range-slider") || customElements.define("tc-range-slider", class extends Or {
|
|
5812
5819
|
});
|
|
5813
5820
|
})();
|
|
5814
|
-
var tr,
|
|
5815
|
-
class
|
|
5821
|
+
var tr, fa, cs;
|
|
5822
|
+
class da extends Ye {
|
|
5816
5823
|
constructor() {
|
|
5817
5824
|
super();
|
|
5818
5825
|
Ge(this, tr);
|
|
5819
|
-
this.filterObject = {}, this.tabIndex = 0, this.inputHandler = le(this, tr,
|
|
5826
|
+
this.filterObject = {}, this.tabIndex = 0, this.inputHandler = le(this, tr, fa).bind(this), this.debouncedInputHandler = ri(this.inputHandler, 0, {
|
|
5820
5827
|
leading: !0
|
|
5821
5828
|
});
|
|
5822
5829
|
}
|
|
@@ -5824,7 +5831,7 @@ class ha extends Ye {
|
|
|
5824
5831
|
* Resets the range filter using the resetRangeMethod.
|
|
5825
5832
|
*/
|
|
5826
5833
|
reset() {
|
|
5827
|
-
|
|
5834
|
+
vu(this);
|
|
5828
5835
|
}
|
|
5829
5836
|
/**
|
|
5830
5837
|
* Overrides the default createRenderRoot method to render in the light DOM.
|
|
@@ -5841,7 +5848,7 @@ class ha extends Ye {
|
|
|
5841
5848
|
return We(
|
|
5842
5849
|
this.filterObject,
|
|
5843
5850
|
() => F`
|
|
5844
|
-
${le(this, tr,
|
|
5851
|
+
${le(this, tr, cs).call(this, "min", "before")}
|
|
5845
5852
|
<tc-range-slider
|
|
5846
5853
|
min="${this.filterObject.min}"
|
|
5847
5854
|
max="${this.filterObject.max}"
|
|
@@ -5850,7 +5857,7 @@ class ha extends Ye {
|
|
|
5850
5857
|
step="${this.filterObject.step || 1}"
|
|
5851
5858
|
@change=${this.debouncedInputHandler}
|
|
5852
5859
|
></tc-range-slider>
|
|
5853
|
-
${le(this, tr,
|
|
5860
|
+
${le(this, tr, cs).call(this, "max", "after")}
|
|
5854
5861
|
`
|
|
5855
5862
|
);
|
|
5856
5863
|
}
|
|
@@ -5861,8 +5868,8 @@ tr = new WeakSet(), /**
|
|
|
5861
5868
|
* @param {Event} evt - The input event.
|
|
5862
5869
|
* @private
|
|
5863
5870
|
*/
|
|
5864
|
-
|
|
5865
|
-
|
|
5871
|
+
fa = function(r) {
|
|
5872
|
+
wu(r, this);
|
|
5866
5873
|
}, /**
|
|
5867
5874
|
* Generates labels for the range slider.
|
|
5868
5875
|
*
|
|
@@ -5871,16 +5878,16 @@ da = function(r) {
|
|
|
5871
5878
|
* @returns {string} - The generated label.
|
|
5872
5879
|
* @private
|
|
5873
5880
|
*/
|
|
5874
|
-
|
|
5875
|
-
return
|
|
5881
|
+
cs = function(r, n) {
|
|
5882
|
+
return xu(r, n, this);
|
|
5876
5883
|
}, // Define properties with defaults and types
|
|
5877
|
-
Gr(
|
|
5884
|
+
Gr(da, "properties", {
|
|
5878
5885
|
filterObject: { attribute: !1, type: Object },
|
|
5879
5886
|
tabIndex: { attribute: !1, type: Number }
|
|
5880
5887
|
});
|
|
5881
|
-
customElements.define("eox-itemfilter-range",
|
|
5882
|
-
var Yn,
|
|
5883
|
-
class
|
|
5888
|
+
customElements.define("eox-itemfilter-range", da);
|
|
5889
|
+
var Yn, pa;
|
|
5890
|
+
class qu extends Ye {
|
|
5884
5891
|
constructor() {
|
|
5885
5892
|
super();
|
|
5886
5893
|
Ge(this, Yn);
|
|
@@ -5897,7 +5904,7 @@ class zu extends Ye {
|
|
|
5897
5904
|
* Resets the spatial filter using the resetSpatialMethod.
|
|
5898
5905
|
*/
|
|
5899
5906
|
reset() {
|
|
5900
|
-
|
|
5907
|
+
Cu(this);
|
|
5901
5908
|
}
|
|
5902
5909
|
/**
|
|
5903
5910
|
* Overrides the default createRenderRoot method to render in the light DOM.
|
|
@@ -5917,7 +5924,7 @@ class zu extends Ye {
|
|
|
5917
5924
|
var r;
|
|
5918
5925
|
return F`
|
|
5919
5926
|
<form style="display: inline">
|
|
5920
|
-
${
|
|
5927
|
+
${Zn(
|
|
5921
5928
|
["intersects", "within"],
|
|
5922
5929
|
(n) => F`
|
|
5923
5930
|
<label>
|
|
@@ -5927,7 +5934,7 @@ class zu extends Ye {
|
|
|
5927
5934
|
name="mode"
|
|
5928
5935
|
.checked="${(this.filterObject.state.mode || "") === n || ge}"
|
|
5929
5936
|
value="${n}"
|
|
5930
|
-
@click=${() => le(this, Yn,
|
|
5937
|
+
@click=${() => le(this, Yn, pa).call(this, n)}
|
|
5931
5938
|
/>
|
|
5932
5939
|
<small>${n} filter geometry</small>
|
|
5933
5940
|
</label>
|
|
@@ -5952,12 +5959,12 @@ Yn = new WeakSet(), /**
|
|
|
5952
5959
|
* @private
|
|
5953
5960
|
* @param {string} mode - The mode of the spatial filter (e.g., "intersects", "within").
|
|
5954
5961
|
*/
|
|
5955
|
-
|
|
5956
|
-
|
|
5962
|
+
pa = function(r) {
|
|
5963
|
+
Lu(r, this);
|
|
5957
5964
|
};
|
|
5958
|
-
customElements.define("eox-itemfilter-spatial",
|
|
5959
|
-
var Fn,
|
|
5960
|
-
class
|
|
5965
|
+
customElements.define("eox-itemfilter-spatial", qu);
|
|
5966
|
+
var Fn, ga;
|
|
5967
|
+
class Wu extends Ye {
|
|
5961
5968
|
constructor() {
|
|
5962
5969
|
super();
|
|
5963
5970
|
Ge(this, Fn);
|
|
@@ -5974,13 +5981,13 @@ class qu extends Ye {
|
|
|
5974
5981
|
* Lifecycle method called after the first update. Initializes the spatial filter.
|
|
5975
5982
|
*/
|
|
5976
5983
|
firstUpdated() {
|
|
5977
|
-
le(this, Fn,
|
|
5984
|
+
le(this, Fn, ga).call(this);
|
|
5978
5985
|
}
|
|
5979
5986
|
/**
|
|
5980
5987
|
* Resets the spatial filter using the resetSpatialFilterMethod.
|
|
5981
5988
|
*/
|
|
5982
5989
|
reset() {
|
|
5983
|
-
|
|
5990
|
+
ku(this);
|
|
5984
5991
|
}
|
|
5985
5992
|
/**
|
|
5986
5993
|
* Renders the HTML template for the component.
|
|
@@ -5994,20 +6001,20 @@ Fn = new WeakSet(), /**
|
|
|
5994
6001
|
*
|
|
5995
6002
|
* @private
|
|
5996
6003
|
*/
|
|
5997
|
-
|
|
5998
|
-
|
|
6004
|
+
ga = function() {
|
|
6005
|
+
ra(this);
|
|
5999
6006
|
};
|
|
6000
|
-
customElements.define("eox-itemfilter-spatial-filter",
|
|
6001
|
-
function
|
|
6007
|
+
customElements.define("eox-itemfilter-spatial-filter", Wu);
|
|
6008
|
+
function Vu(t, e) {
|
|
6002
6009
|
e.renderRoot.querySelectorAll(".chip").forEach((r) => {
|
|
6003
6010
|
r.classList.remove("highlighted");
|
|
6004
6011
|
}), t.target.classList.add("highlighted"), e.requestUpdate();
|
|
6005
6012
|
}
|
|
6006
|
-
function
|
|
6013
|
+
function Ku(t, e) {
|
|
6007
6014
|
const { code: r, target: n } = t;
|
|
6008
|
-
n.id === "eox-itemfilter-input-search" && (e.parentElement.classList.contains("hidden") && ["ArrowLeft", "ArrowRight", "Backspace"].includes(r) || (r === "Space" && t.preventDefault(), ["Escape", "Space", "Enter"].includes(r) || t.stopPropagation(), ["ArrowLeft", "ArrowRight", "Escape", "Backspace"].includes(r) &&
|
|
6015
|
+
n.id === "eox-itemfilter-input-search" && (e.parentElement.classList.contains("hidden") && ["ArrowLeft", "ArrowRight", "Backspace"].includes(r) || (r === "Space" && t.preventDefault(), ["Escape", "Space", "Enter"].includes(r) || t.stopPropagation(), ["ArrowLeft", "ArrowRight", "Escape", "Backspace"].includes(r) && Gu(r, t.target.value ?? "", e)));
|
|
6009
6016
|
}
|
|
6010
|
-
function
|
|
6017
|
+
function Gu(t, e, r) {
|
|
6011
6018
|
const n = r.renderRoot.querySelector(".chip.highlighted");
|
|
6012
6019
|
if ((t === "Escape" || e) && n && n.classList.remove("highlighted"), t === "Backspace" && !e) {
|
|
6013
6020
|
if (r.items.length) {
|
|
@@ -6032,8 +6039,8 @@ function Ku(t, e, r) {
|
|
|
6032
6039
|
).indexOf(s), s.classList.remove("highlighted")), i = i + (t === "ArrowLeft" ? -1 : 1), t === "ArrowLeft" && i < 0 && (i = r.renderRoot.querySelectorAll(".chip").length - 1), t === "ArrowRight" && i > r.renderRoot.querySelectorAll(".chip").length - 1 && (i = 0), Array.from(r.renderRoot.querySelectorAll(".chip"))[i].classList.add("highlighted");
|
|
6033
6040
|
}
|
|
6034
6041
|
}
|
|
6035
|
-
var rr,
|
|
6036
|
-
class
|
|
6042
|
+
var rr, us, ya;
|
|
6043
|
+
class Yu extends Ye {
|
|
6037
6044
|
constructor() {
|
|
6038
6045
|
super();
|
|
6039
6046
|
Ge(this, rr);
|
|
@@ -6053,7 +6060,7 @@ class Gu extends Ye {
|
|
|
6053
6060
|
connectedCallback() {
|
|
6054
6061
|
super.connectedCallback(), this.getRootNode().addEventListener(
|
|
6055
6062
|
"keydown",
|
|
6056
|
-
le(this, rr,
|
|
6063
|
+
le(this, rr, us).bind(this)
|
|
6057
6064
|
);
|
|
6058
6065
|
}
|
|
6059
6066
|
/**
|
|
@@ -6063,7 +6070,7 @@ class Gu extends Ye {
|
|
|
6063
6070
|
disconnectedCallback() {
|
|
6064
6071
|
super.disconnectedCallback(), this.getRootNode().removeEventListener(
|
|
6065
6072
|
"keydown",
|
|
6066
|
-
le(this, rr,
|
|
6073
|
+
le(this, rr, us).bind(this)
|
|
6067
6074
|
);
|
|
6068
6075
|
}
|
|
6069
6076
|
/**
|
|
@@ -6087,10 +6094,10 @@ class Gu extends Ye {
|
|
|
6087
6094
|
${an}
|
|
6088
6095
|
</style>
|
|
6089
6096
|
<span class="chip-container">
|
|
6090
|
-
${
|
|
6097
|
+
${Zn(
|
|
6091
6098
|
this.items,
|
|
6092
6099
|
(r) => F`
|
|
6093
|
-
<span class="chip" @click=${le(this, rr,
|
|
6100
|
+
<span class="chip" @click=${le(this, rr, ya).bind(this)}>
|
|
6094
6101
|
<span class="chip-title">${r.title}</span>
|
|
6095
6102
|
<span
|
|
6096
6103
|
class="chip-item-close hidden"
|
|
@@ -6113,19 +6120,19 @@ rr = new WeakSet(), /**
|
|
|
6113
6120
|
* @param {Event} event - The keyboard event.
|
|
6114
6121
|
* @private
|
|
6115
6122
|
*/
|
|
6116
|
-
|
|
6117
|
-
|
|
6123
|
+
us = function(r) {
|
|
6124
|
+
Ku(r, this);
|
|
6118
6125
|
}, /**
|
|
6119
6126
|
* Handles click events for the chips.
|
|
6120
6127
|
*
|
|
6121
6128
|
* @param {Event} evt - The click event.
|
|
6122
6129
|
* @private
|
|
6123
6130
|
*/
|
|
6124
|
-
|
|
6125
|
-
|
|
6131
|
+
ya = function(r) {
|
|
6132
|
+
Vu(r, this);
|
|
6126
6133
|
};
|
|
6127
|
-
customElements.define("eox-itemfilter-chips",
|
|
6128
|
-
const
|
|
6134
|
+
customElements.define("eox-itemfilter-chips", Yu);
|
|
6135
|
+
const Fu = Object.freeze({
|
|
6129
6136
|
/**
|
|
6130
6137
|
* Aggregate results by a property key
|
|
6131
6138
|
*/
|
|
@@ -6214,35 +6221,35 @@ const Yu = Object.freeze({
|
|
|
6214
6221
|
"expandMultipleResults",
|
|
6215
6222
|
"items"
|
|
6216
6223
|
];
|
|
6217
|
-
var
|
|
6218
|
-
function
|
|
6224
|
+
var Zu = 200, $s = "__lodash_hash_undefined__", Xu = 1 / 0, Ju = "[object Function]", Qu = "[object GeneratorFunction]", eh = /[\\^$.*+?()[\]{}|]/g, th = /^\[object .+?Constructor\]$/, rh = typeof Je == "object" && Je && Je.Object === Object && Je, nh = typeof self == "object" && self && self.Object === Object && self, _s = rh || nh || Function("return this")();
|
|
6225
|
+
function ih(t, e) {
|
|
6219
6226
|
var r = t ? t.length : 0;
|
|
6220
|
-
return !!r &&
|
|
6227
|
+
return !!r && oh(t, e, 0) > -1;
|
|
6221
6228
|
}
|
|
6222
|
-
function
|
|
6229
|
+
function sh(t, e, r, n) {
|
|
6223
6230
|
for (var i = t.length, s = r + -1; ++s < i; )
|
|
6224
6231
|
if (e(t[s], s, t))
|
|
6225
6232
|
return s;
|
|
6226
6233
|
return -1;
|
|
6227
6234
|
}
|
|
6228
|
-
function
|
|
6235
|
+
function oh(t, e, r) {
|
|
6229
6236
|
if (e !== e)
|
|
6230
|
-
return
|
|
6237
|
+
return sh(t, ah, r);
|
|
6231
6238
|
for (var n = r - 1, i = t.length; ++n < i; )
|
|
6232
6239
|
if (t[n] === e)
|
|
6233
6240
|
return n;
|
|
6234
6241
|
return -1;
|
|
6235
6242
|
}
|
|
6236
|
-
function
|
|
6243
|
+
function ah(t) {
|
|
6237
6244
|
return t !== t;
|
|
6238
6245
|
}
|
|
6239
|
-
function
|
|
6246
|
+
function lh(t, e) {
|
|
6240
6247
|
return t.has(e);
|
|
6241
6248
|
}
|
|
6242
|
-
function
|
|
6249
|
+
function ch(t, e) {
|
|
6243
6250
|
return t == null ? void 0 : t[e];
|
|
6244
6251
|
}
|
|
6245
|
-
function
|
|
6252
|
+
function uh(t) {
|
|
6246
6253
|
var e = !1;
|
|
6247
6254
|
if (t != null && typeof t.toString != "function")
|
|
6248
6255
|
try {
|
|
@@ -6251,18 +6258,18 @@ function ch(t) {
|
|
|
6251
6258
|
}
|
|
6252
6259
|
return e;
|
|
6253
6260
|
}
|
|
6254
|
-
function
|
|
6261
|
+
function ba(t) {
|
|
6255
6262
|
var e = -1, r = Array(t.size);
|
|
6256
6263
|
return t.forEach(function(n) {
|
|
6257
6264
|
r[++e] = n;
|
|
6258
6265
|
}), r;
|
|
6259
6266
|
}
|
|
6260
|
-
var
|
|
6267
|
+
var hh = Array.prototype, dh = Function.prototype, ma = Object.prototype, Bi = _s["__core-js_shared__"], no = function() {
|
|
6261
6268
|
var t = /[^.]+$/.exec(Bi && Bi.keys && Bi.keys.IE_PROTO || "");
|
|
6262
6269
|
return t ? "Symbol(src)_1." + t : "";
|
|
6263
|
-
}(),
|
|
6264
|
-
"^" +
|
|
6265
|
-
),
|
|
6270
|
+
}(), va = dh.toString, As = ma.hasOwnProperty, fh = ma.toString, ph = RegExp(
|
|
6271
|
+
"^" + va.call(As).replace(eh, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
6272
|
+
), gh = hh.splice, yh = Ms(_s, "Map"), Ui = Ms(_s, "Set"), nn = Ms(Object, "create");
|
|
6266
6273
|
function Qt(t) {
|
|
6267
6274
|
var e = -1, r = t ? t.length : 0;
|
|
6268
6275
|
for (this.clear(); ++e < r; ) {
|
|
@@ -6270,13 +6277,13 @@ function Qt(t) {
|
|
|
6270
6277
|
this.set(n[0], n[1]);
|
|
6271
6278
|
}
|
|
6272
6279
|
}
|
|
6273
|
-
function
|
|
6280
|
+
function bh() {
|
|
6274
6281
|
this.__data__ = nn ? nn(null) : {};
|
|
6275
6282
|
}
|
|
6276
|
-
function
|
|
6283
|
+
function mh(t) {
|
|
6277
6284
|
return this.has(t) && delete this.__data__[t];
|
|
6278
6285
|
}
|
|
6279
|
-
function
|
|
6286
|
+
function vh(t) {
|
|
6280
6287
|
var e = this.__data__;
|
|
6281
6288
|
if (nn) {
|
|
6282
6289
|
var r = e[t];
|
|
@@ -6284,19 +6291,19 @@ function mh(t) {
|
|
|
6284
6291
|
}
|
|
6285
6292
|
return As.call(e, t) ? e[t] : void 0;
|
|
6286
6293
|
}
|
|
6287
|
-
function
|
|
6294
|
+
function wh(t) {
|
|
6288
6295
|
var e = this.__data__;
|
|
6289
6296
|
return nn ? e[t] !== void 0 : As.call(e, t);
|
|
6290
6297
|
}
|
|
6291
|
-
function
|
|
6298
|
+
function xh(t, e) {
|
|
6292
6299
|
var r = this.__data__;
|
|
6293
6300
|
return r[t] = nn && e === void 0 ? $s : e, this;
|
|
6294
6301
|
}
|
|
6295
|
-
Qt.prototype.clear =
|
|
6296
|
-
Qt.prototype.delete =
|
|
6297
|
-
Qt.prototype.get =
|
|
6298
|
-
Qt.prototype.has =
|
|
6299
|
-
Qt.prototype.set =
|
|
6302
|
+
Qt.prototype.clear = bh;
|
|
6303
|
+
Qt.prototype.delete = mh;
|
|
6304
|
+
Qt.prototype.get = vh;
|
|
6305
|
+
Qt.prototype.has = wh;
|
|
6306
|
+
Qt.prototype.set = xh;
|
|
6300
6307
|
function Cr(t) {
|
|
6301
6308
|
var e = -1, r = t ? t.length : 0;
|
|
6302
6309
|
for (this.clear(); ++e < r; ) {
|
|
@@ -6304,32 +6311,32 @@ function Cr(t) {
|
|
|
6304
6311
|
this.set(n[0], n[1]);
|
|
6305
6312
|
}
|
|
6306
6313
|
}
|
|
6307
|
-
function
|
|
6314
|
+
function $h() {
|
|
6308
6315
|
this.__data__ = [];
|
|
6309
6316
|
}
|
|
6310
|
-
function
|
|
6317
|
+
function _h(t) {
|
|
6311
6318
|
var e = this.__data__, r = ni(e, t);
|
|
6312
6319
|
if (r < 0)
|
|
6313
6320
|
return !1;
|
|
6314
6321
|
var n = e.length - 1;
|
|
6315
|
-
return r == n ? e.pop() :
|
|
6322
|
+
return r == n ? e.pop() : gh.call(e, r, 1), !0;
|
|
6316
6323
|
}
|
|
6317
|
-
function
|
|
6324
|
+
function Ah(t) {
|
|
6318
6325
|
var e = this.__data__, r = ni(e, t);
|
|
6319
6326
|
return r < 0 ? void 0 : e[r][1];
|
|
6320
6327
|
}
|
|
6321
|
-
function
|
|
6328
|
+
function Mh(t) {
|
|
6322
6329
|
return ni(this.__data__, t) > -1;
|
|
6323
6330
|
}
|
|
6324
|
-
function
|
|
6331
|
+
function Sh(t, e) {
|
|
6325
6332
|
var r = this.__data__, n = ni(r, t);
|
|
6326
6333
|
return n < 0 ? r.push([t, e]) : r[n][1] = e, this;
|
|
6327
6334
|
}
|
|
6328
|
-
Cr.prototype.clear =
|
|
6329
|
-
Cr.prototype.delete =
|
|
6330
|
-
Cr.prototype.get =
|
|
6331
|
-
Cr.prototype.has =
|
|
6332
|
-
Cr.prototype.set =
|
|
6335
|
+
Cr.prototype.clear = $h;
|
|
6336
|
+
Cr.prototype.delete = _h;
|
|
6337
|
+
Cr.prototype.get = Ah;
|
|
6338
|
+
Cr.prototype.has = Mh;
|
|
6339
|
+
Cr.prototype.set = Sh;
|
|
6333
6340
|
function kr(t) {
|
|
6334
6341
|
var e = -1, r = t ? t.length : 0;
|
|
6335
6342
|
for (this.clear(); ++e < r; ) {
|
|
@@ -6337,98 +6344,98 @@ function kr(t) {
|
|
|
6337
6344
|
this.set(n[0], n[1]);
|
|
6338
6345
|
}
|
|
6339
6346
|
}
|
|
6340
|
-
function
|
|
6347
|
+
function Eh() {
|
|
6341
6348
|
this.__data__ = {
|
|
6342
6349
|
hash: new Qt(),
|
|
6343
|
-
map: new (
|
|
6350
|
+
map: new (yh || Cr)(),
|
|
6344
6351
|
string: new Qt()
|
|
6345
6352
|
};
|
|
6346
6353
|
}
|
|
6347
|
-
function
|
|
6354
|
+
function Ch(t) {
|
|
6348
6355
|
return ii(this, t).delete(t);
|
|
6349
6356
|
}
|
|
6350
|
-
function
|
|
6357
|
+
function kh(t) {
|
|
6351
6358
|
return ii(this, t).get(t);
|
|
6352
6359
|
}
|
|
6353
|
-
function
|
|
6360
|
+
function Lh(t) {
|
|
6354
6361
|
return ii(this, t).has(t);
|
|
6355
6362
|
}
|
|
6356
|
-
function
|
|
6363
|
+
function Ph(t, e) {
|
|
6357
6364
|
return ii(this, t).set(t, e), this;
|
|
6358
6365
|
}
|
|
6359
|
-
kr.prototype.clear =
|
|
6360
|
-
kr.prototype.delete =
|
|
6361
|
-
kr.prototype.get =
|
|
6362
|
-
kr.prototype.has =
|
|
6363
|
-
kr.prototype.set =
|
|
6366
|
+
kr.prototype.clear = Eh;
|
|
6367
|
+
kr.prototype.delete = Ch;
|
|
6368
|
+
kr.prototype.get = kh;
|
|
6369
|
+
kr.prototype.has = Lh;
|
|
6370
|
+
kr.prototype.set = Ph;
|
|
6364
6371
|
function Wn(t) {
|
|
6365
6372
|
var e = -1, r = t ? t.length : 0;
|
|
6366
6373
|
for (this.__data__ = new kr(); ++e < r; )
|
|
6367
6374
|
this.add(t[e]);
|
|
6368
6375
|
}
|
|
6369
|
-
function
|
|
6376
|
+
function Th(t) {
|
|
6370
6377
|
return this.__data__.set(t, $s), this;
|
|
6371
6378
|
}
|
|
6372
|
-
function
|
|
6379
|
+
function Rh(t) {
|
|
6373
6380
|
return this.__data__.has(t);
|
|
6374
6381
|
}
|
|
6375
|
-
Wn.prototype.add = Wn.prototype.push =
|
|
6376
|
-
Wn.prototype.has =
|
|
6382
|
+
Wn.prototype.add = Wn.prototype.push = Th;
|
|
6383
|
+
Wn.prototype.has = Rh;
|
|
6377
6384
|
function ni(t, e) {
|
|
6378
6385
|
for (var r = t.length; r--; )
|
|
6379
|
-
if (
|
|
6386
|
+
if (Uh(t[r][0], e))
|
|
6380
6387
|
return r;
|
|
6381
6388
|
return -1;
|
|
6382
6389
|
}
|
|
6383
|
-
function
|
|
6384
|
-
if (!
|
|
6390
|
+
function Oh(t) {
|
|
6391
|
+
if (!wa(t) || Hh(t))
|
|
6385
6392
|
return !1;
|
|
6386
|
-
var e =
|
|
6387
|
-
return e.test(
|
|
6393
|
+
var e = zh(t) || uh(t) ? ph : th;
|
|
6394
|
+
return e.test(Ih(t));
|
|
6388
6395
|
}
|
|
6389
|
-
function
|
|
6390
|
-
var n = -1, i =
|
|
6391
|
-
if (s >=
|
|
6392
|
-
var h =
|
|
6396
|
+
function Dh(t, e, r) {
|
|
6397
|
+
var n = -1, i = ih, s = t.length, o = !0, l = [], c = l;
|
|
6398
|
+
if (s >= Zu) {
|
|
6399
|
+
var h = jh(t);
|
|
6393
6400
|
if (h)
|
|
6394
|
-
return
|
|
6395
|
-
o = !1, i =
|
|
6401
|
+
return ba(h);
|
|
6402
|
+
o = !1, i = lh, c = new Wn();
|
|
6396
6403
|
} else
|
|
6397
6404
|
c = l;
|
|
6398
6405
|
e:
|
|
6399
6406
|
for (; ++n < s; ) {
|
|
6400
6407
|
var p = t[n], y = p;
|
|
6401
6408
|
if (p = p !== 0 ? p : 0, o && y === y) {
|
|
6402
|
-
for (var
|
|
6403
|
-
if (c[
|
|
6409
|
+
for (var v = c.length; v--; )
|
|
6410
|
+
if (c[v] === y)
|
|
6404
6411
|
continue e;
|
|
6405
6412
|
l.push(p);
|
|
6406
6413
|
} else i(c, y, r) || (c !== l && c.push(y), l.push(p));
|
|
6407
6414
|
}
|
|
6408
6415
|
return l;
|
|
6409
6416
|
}
|
|
6410
|
-
var
|
|
6417
|
+
var jh = Ui && 1 / ba(new Ui([, -0]))[1] == Xu ? function(t) {
|
|
6411
6418
|
return new Ui(t);
|
|
6412
|
-
} :
|
|
6419
|
+
} : qh;
|
|
6413
6420
|
function ii(t, e) {
|
|
6414
6421
|
var r = t.__data__;
|
|
6415
|
-
return
|
|
6422
|
+
return Nh(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
|
|
6416
6423
|
}
|
|
6417
6424
|
function Ms(t, e) {
|
|
6418
|
-
var r =
|
|
6419
|
-
return
|
|
6425
|
+
var r = ch(t, e);
|
|
6426
|
+
return Oh(r) ? r : void 0;
|
|
6420
6427
|
}
|
|
6421
|
-
function
|
|
6428
|
+
function Nh(t) {
|
|
6422
6429
|
var e = typeof t;
|
|
6423
6430
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
|
|
6424
6431
|
}
|
|
6425
|
-
function
|
|
6432
|
+
function Hh(t) {
|
|
6426
6433
|
return !!no && no in t;
|
|
6427
6434
|
}
|
|
6428
|
-
function
|
|
6435
|
+
function Ih(t) {
|
|
6429
6436
|
if (t != null) {
|
|
6430
6437
|
try {
|
|
6431
|
-
return
|
|
6438
|
+
return va.call(t);
|
|
6432
6439
|
} catch {
|
|
6433
6440
|
}
|
|
6434
6441
|
try {
|
|
@@ -6438,29 +6445,29 @@ function Hh(t) {
|
|
|
6438
6445
|
}
|
|
6439
6446
|
return "";
|
|
6440
6447
|
}
|
|
6441
|
-
function
|
|
6442
|
-
return t && t.length ?
|
|
6448
|
+
function Bh(t) {
|
|
6449
|
+
return t && t.length ? Dh(t) : [];
|
|
6443
6450
|
}
|
|
6444
|
-
function
|
|
6451
|
+
function Uh(t, e) {
|
|
6445
6452
|
return t === e || t !== t && e !== e;
|
|
6446
6453
|
}
|
|
6447
|
-
function
|
|
6448
|
-
var e =
|
|
6449
|
-
return e ==
|
|
6454
|
+
function zh(t) {
|
|
6455
|
+
var e = wa(t) ? fh.call(t) : "";
|
|
6456
|
+
return e == Ju || e == Qu;
|
|
6450
6457
|
}
|
|
6451
|
-
function
|
|
6458
|
+
function wa(t) {
|
|
6452
6459
|
var e = typeof t;
|
|
6453
6460
|
return !!t && (e == "object" || e == "function");
|
|
6454
6461
|
}
|
|
6455
|
-
function
|
|
6462
|
+
function qh() {
|
|
6456
6463
|
}
|
|
6457
|
-
var
|
|
6458
|
-
const
|
|
6464
|
+
var Wh = Bh;
|
|
6465
|
+
const xa = /* @__PURE__ */ ei(Wh);
|
|
6459
6466
|
var Vn = { exports: {} };
|
|
6460
6467
|
Vn.exports;
|
|
6461
6468
|
(function(t, e) {
|
|
6462
|
-
var r = 200, n = "Expected a function", i = "__lodash_hash_undefined__", s = 1, o = 2, l = 1 / 0, c = 9007199254740991, h = "[object Arguments]", p = "[object Array]", y = "[object Boolean]",
|
|
6463
|
-
se[ie] = se[qe] = se[Ot] = se[D] = se[S] = se[M] = se[j] = se[k] = se[V] = !0, se[h] = se[p] = se[Me] = se[y] = se[fe] = se[
|
|
6469
|
+
var r = 200, n = "Expected a function", i = "__lodash_hash_undefined__", s = 1, o = 2, l = 1 / 0, c = 9007199254740991, h = "[object Arguments]", p = "[object Array]", y = "[object Boolean]", v = "[object Date]", m = "[object Error]", _ = "[object Function]", E = "[object GeneratorFunction]", z = "[object Map]", H = "[object Number]", Z = "[object Object]", Y = "[object Promise]", ue = "[object RegExp]", te = "[object Set]", X = "[object String]", he = "[object Symbol]", $e = "[object WeakMap]", Me = "[object ArrayBuffer]", fe = "[object DataView]", ie = "[object Float32Array]", qe = "[object Float64Array]", Ot = "[object Int8Array]", D = "[object Int16Array]", S = "[object Int32Array]", M = "[object Uint8Array]", j = "[object Uint8ClampedArray]", k = "[object Uint16Array]", V = "[object Uint32Array]", K = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ce = /^\w*$/, we = /^\./, Ae = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Se = /[\\^$.*+?()[\]{}|]/g, je = /\\(\\)?/g, Ce = /^\[object .+?Constructor\]$/, Ne = /^(?:0|[1-9]\d*)$/, se = {};
|
|
6470
|
+
se[ie] = se[qe] = se[Ot] = se[D] = se[S] = se[M] = se[j] = se[k] = se[V] = !0, se[h] = se[p] = se[Me] = se[y] = se[fe] = se[v] = se[m] = se[_] = se[z] = se[H] = se[Z] = se[ue] = se[te] = se[X] = se[$e] = !1;
|
|
6464
6471
|
var ke = typeof Je == "object" && Je && Je.Object === Object && Je, re = typeof self == "object" && self && self.Object === Object && self, Le = ke || re || Function("return this")(), at = e && !e.nodeType && e, xe = at && !0 && t && !t.nodeType && t, si = xe && xe.exports === at, cn = si && ke.process, un = function() {
|
|
6465
6472
|
try {
|
|
6466
6473
|
return cn && cn.binding("util");
|
|
@@ -6530,9 +6537,9 @@ Vn.exports;
|
|
|
6530
6537
|
var pi = Array.prototype, gi = Function.prototype, nr = Object.prototype, Tr = Le["__core-js_shared__"], fn = function() {
|
|
6531
6538
|
var a = /[^.]+$/.exec(Tr && Tr.keys && Tr.keys.IE_PROTO || "");
|
|
6532
6539
|
return a ? "Symbol(src)_1." + a : "";
|
|
6533
|
-
}(), pn = gi.toString, nt = nr.hasOwnProperty,
|
|
6540
|
+
}(), pn = gi.toString, nt = nr.hasOwnProperty, _t = nr.toString, yi = RegExp(
|
|
6534
6541
|
"^" + pn.call(nt).replace(Se, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
6535
|
-
), ir = Le.Symbol, gn = Le.Uint8Array, bi = nr.propertyIsEnumerable, mi = pi.splice, Dt = ir ? ir.isConcatSpreadable : void 0, vi = di(Object.keys, Object), sr =
|
|
6542
|
+
), ir = Le.Symbol, gn = Le.Uint8Array, bi = nr.propertyIsEnumerable, mi = pi.splice, Dt = ir ? ir.isConcatSpreadable : void 0, vi = di(Object.keys, Object), sr = St(Le, "DataView"), jt = St(Le, "Map"), lt = St(Le, "Promise"), or = St(Le, "Set"), Rr = St(Le, "WeakMap"), Nt = St(Object, "create"), yn = it(sr), wi = it(jt), bn = it(lt), xi = it(or), mn = it(Rr), ar = ir ? ir.prototype : void 0, Ht = ar ? ar.valueOf : void 0, At = ar ? ar.toString : void 0;
|
|
6536
6543
|
function Ve(a) {
|
|
6537
6544
|
var d = -1, b = a ? a.length : 0;
|
|
6538
6545
|
for (this.clear(); ++d < b; ) {
|
|
@@ -6580,7 +6587,7 @@ Vn.exports;
|
|
|
6580
6587
|
var A = d.length - 1;
|
|
6581
6588
|
return b == A ? d.pop() : mi.call(d, b, 1), !0;
|
|
6582
6589
|
}
|
|
6583
|
-
function
|
|
6590
|
+
function w(a) {
|
|
6584
6591
|
var d = this.__data__, b = me(d, a);
|
|
6585
6592
|
return b < 0 ? void 0 : d[b][1];
|
|
6586
6593
|
}
|
|
@@ -6591,7 +6598,7 @@ Vn.exports;
|
|
|
6591
6598
|
var b = this.__data__, A = me(b, a);
|
|
6592
6599
|
return A < 0 ? b.push([a, d]) : b[A][1] = d, this;
|
|
6593
6600
|
}
|
|
6594
|
-
u.prototype.clear = g, u.prototype.delete = $, u.prototype.get =
|
|
6601
|
+
u.prototype.clear = g, u.prototype.delete = $, u.prototype.get = w, u.prototype.has = C, u.prototype.set = B;
|
|
6595
6602
|
function U(a) {
|
|
6596
6603
|
var d = -1, b = a ? a.length : 0;
|
|
6597
6604
|
for (this.clear(); ++d < b; ) {
|
|
@@ -6607,16 +6614,16 @@ Vn.exports;
|
|
|
6607
6614
|
};
|
|
6608
6615
|
}
|
|
6609
6616
|
function T(a) {
|
|
6610
|
-
return
|
|
6617
|
+
return bt(this, a).delete(a);
|
|
6611
6618
|
}
|
|
6612
6619
|
function J(a) {
|
|
6613
|
-
return
|
|
6620
|
+
return bt(this, a).get(a);
|
|
6614
6621
|
}
|
|
6615
6622
|
function ne(a) {
|
|
6616
|
-
return
|
|
6623
|
+
return bt(this, a).has(a);
|
|
6617
6624
|
}
|
|
6618
6625
|
function I(a, d) {
|
|
6619
|
-
return
|
|
6626
|
+
return bt(this, a).set(a, d), this;
|
|
6620
6627
|
}
|
|
6621
6628
|
U.prototype.clear = L, U.prototype.delete = T, U.prototype.get = J, U.prototype.has = ne, U.prototype.set = I;
|
|
6622
6629
|
function oe(a) {
|
|
@@ -6680,7 +6687,7 @@ Vn.exports;
|
|
|
6680
6687
|
}
|
|
6681
6688
|
var ct = ki();
|
|
6682
6689
|
function wn(a, d) {
|
|
6683
|
-
return a && ct(a, d,
|
|
6690
|
+
return a && ct(a, d, Et);
|
|
6684
6691
|
}
|
|
6685
6692
|
function Dr(a, d) {
|
|
6686
6693
|
d = zt(d, a) ? [d] : Mn(d);
|
|
@@ -6689,20 +6696,20 @@ Vn.exports;
|
|
|
6689
6696
|
return b && b == A ? a : void 0;
|
|
6690
6697
|
}
|
|
6691
6698
|
function lr(a) {
|
|
6692
|
-
return
|
|
6699
|
+
return _t.call(a);
|
|
6693
6700
|
}
|
|
6694
6701
|
function Mi(a, d) {
|
|
6695
6702
|
return a != null && d in Object(a);
|
|
6696
6703
|
}
|
|
6697
6704
|
function cr(a, d, b, A, O) {
|
|
6698
|
-
return a === d ? !0 : a == null || d == null || !
|
|
6705
|
+
return a === d ? !0 : a == null || d == null || !mt(a) && !vt(d) ? a !== a && d !== d : gt(a, d, cr, b, A, O);
|
|
6699
6706
|
}
|
|
6700
|
-
function
|
|
6707
|
+
function gt(a, d, b, A, O, P) {
|
|
6701
6708
|
var W = Fe(a), ve = Fe(d), ye = p, Oe = p;
|
|
6702
|
-
W || (ye = ut(a), ye = ye == h ?
|
|
6703
|
-
var Be = ye ==
|
|
6709
|
+
W || (ye = ut(a), ye = ye == h ? Z : ye), ve || (Oe = ut(d), Oe = Oe == h ? Z : Oe);
|
|
6710
|
+
var Be = ye == Z && !Pr(a), Ue = Oe == Z && !Pr(d), De = ye == Oe;
|
|
6704
6711
|
if (De && !Be)
|
|
6705
|
-
return P || (P = new N()), W || br(a) ? Ut(a, d, b, A, O, P) :
|
|
6712
|
+
return P || (P = new N()), W || br(a) ? Ut(a, d, b, A, O, P) : Mt(a, d, ye, b, A, O, P);
|
|
6706
6713
|
if (!(O & o)) {
|
|
6707
6714
|
var f = Be && nt.call(a, "__wrapped__"), x = Ue && nt.call(d, "__wrapped__");
|
|
6708
6715
|
if (f || x) {
|
|
@@ -6736,13 +6743,13 @@ Vn.exports;
|
|
|
6736
6743
|
return !0;
|
|
6737
6744
|
}
|
|
6738
6745
|
function xn(a) {
|
|
6739
|
-
if (!
|
|
6746
|
+
if (!mt(a) || Hr(a))
|
|
6740
6747
|
return !1;
|
|
6741
6748
|
var d = kn(a) || Pr(a) ? yi : Ce;
|
|
6742
6749
|
return d.test(it(a));
|
|
6743
6750
|
}
|
|
6744
6751
|
function $n(a) {
|
|
6745
|
-
return
|
|
6752
|
+
return vt(a) && qr(a.length) && !!se[_t.call(a)];
|
|
6746
6753
|
}
|
|
6747
6754
|
function _n(a) {
|
|
6748
6755
|
return typeof a == "function" ? a : a == null ? Kr : typeof a == "object" ? Fe(a) ? It(a[0], a[1]) : Ei(a) : Ln(a);
|
|
@@ -6778,11 +6785,11 @@ Vn.exports;
|
|
|
6778
6785
|
return Dr(d, a);
|
|
6779
6786
|
};
|
|
6780
6787
|
}
|
|
6781
|
-
function
|
|
6788
|
+
function yt(a) {
|
|
6782
6789
|
if (typeof a == "string")
|
|
6783
6790
|
return a;
|
|
6784
6791
|
if (yr(a))
|
|
6785
|
-
return
|
|
6792
|
+
return At ? At.call(a) : "";
|
|
6786
6793
|
var d = a + "";
|
|
6787
6794
|
return d == "0" && 1 / a == -l ? "-0" : d;
|
|
6788
6795
|
}
|
|
@@ -6843,7 +6850,7 @@ Vn.exports;
|
|
|
6843
6850
|
}
|
|
6844
6851
|
return P.delete(a), P.delete(d), Ue;
|
|
6845
6852
|
}
|
|
6846
|
-
function
|
|
6853
|
+
function Mt(a, d, b, A, O, P, W) {
|
|
6847
6854
|
switch (b) {
|
|
6848
6855
|
case fe:
|
|
6849
6856
|
if (a.byteLength != d.byteLength || a.byteOffset != d.byteOffset)
|
|
@@ -6852,13 +6859,13 @@ Vn.exports;
|
|
|
6852
6859
|
case Me:
|
|
6853
6860
|
return !(a.byteLength != d.byteLength || !A(new gn(a), new gn(d)));
|
|
6854
6861
|
case y:
|
|
6855
|
-
case
|
|
6862
|
+
case v:
|
|
6856
6863
|
case H:
|
|
6857
6864
|
return gr(+a, +d);
|
|
6858
6865
|
case m:
|
|
6859
6866
|
return a.name == d.name && a.message == d.message;
|
|
6860
6867
|
case ue:
|
|
6861
|
-
case
|
|
6868
|
+
case X:
|
|
6862
6869
|
return a == d + "";
|
|
6863
6870
|
case z:
|
|
6864
6871
|
var ve = hi;
|
|
@@ -6879,7 +6886,7 @@ Vn.exports;
|
|
|
6879
6886
|
return !1;
|
|
6880
6887
|
}
|
|
6881
6888
|
function hr(a, d, b, A, O, P) {
|
|
6882
|
-
var W = O & o, ve =
|
|
6889
|
+
var W = O & o, ve = Et(a), ye = ve.length, Oe = Et(d), Be = Oe.length;
|
|
6883
6890
|
if (ye != Be && !W)
|
|
6884
6891
|
return !1;
|
|
6885
6892
|
for (var Ue = ye; Ue--; ) {
|
|
@@ -6904,29 +6911,29 @@ Vn.exports;
|
|
|
6904
6911
|
R || (R = De == "constructor");
|
|
6905
6912
|
}
|
|
6906
6913
|
if (x && !R) {
|
|
6907
|
-
var ze = a.constructor,
|
|
6908
|
-
ze !=
|
|
6914
|
+
var ze = a.constructor, wt = d.constructor;
|
|
6915
|
+
ze != wt && "constructor" in a && "constructor" in d && !(typeof ze == "function" && ze instanceof ze && typeof wt == "function" && wt instanceof wt) && (x = !1);
|
|
6909
6916
|
}
|
|
6910
6917
|
return P.delete(a), P.delete(d), x;
|
|
6911
6918
|
}
|
|
6912
|
-
function
|
|
6919
|
+
function bt(a, d) {
|
|
6913
6920
|
var b = a.__data__;
|
|
6914
6921
|
return Cn(d) ? b[typeof d == "string" ? "string" : "hash"] : b.map;
|
|
6915
6922
|
}
|
|
6916
6923
|
function jr(a) {
|
|
6917
|
-
for (var d =
|
|
6924
|
+
for (var d = Et(a), b = d.length; b--; ) {
|
|
6918
6925
|
var A = d[b], O = a[A];
|
|
6919
6926
|
d[b] = [A, O, dr(O)];
|
|
6920
6927
|
}
|
|
6921
6928
|
return d;
|
|
6922
6929
|
}
|
|
6923
|
-
function
|
|
6930
|
+
function St(a, d) {
|
|
6924
6931
|
var b = ui(a, d);
|
|
6925
6932
|
return xn(b) ? b : void 0;
|
|
6926
6933
|
}
|
|
6927
6934
|
var ut = lr;
|
|
6928
6935
|
(sr && ut(new sr(new ArrayBuffer(1))) != fe || jt && ut(new jt()) != z || lt && ut(lt.resolve()) != Y || or && ut(new or()) != te || Rr && ut(new Rr()) != $e) && (ut = function(a) {
|
|
6929
|
-
var d =
|
|
6936
|
+
var d = _t.call(a), b = d == Z ? a.constructor : void 0, A = b ? it(b) : void 0;
|
|
6930
6937
|
if (A)
|
|
6931
6938
|
switch (A) {
|
|
6932
6939
|
case yn:
|
|
@@ -6979,7 +6986,7 @@ Vn.exports;
|
|
|
6979
6986
|
return a === b;
|
|
6980
6987
|
}
|
|
6981
6988
|
function dr(a) {
|
|
6982
|
-
return a === a && !
|
|
6989
|
+
return a === a && !mt(a);
|
|
6983
6990
|
}
|
|
6984
6991
|
function fr(a, d) {
|
|
6985
6992
|
return function(b) {
|
|
@@ -7036,35 +7043,35 @@ Vn.exports;
|
|
|
7036
7043
|
return a === d || a !== a && d !== d;
|
|
7037
7044
|
}
|
|
7038
7045
|
function Wt(a) {
|
|
7039
|
-
return et(a) && nt.call(a, "callee") && (!bi.call(a, "callee") ||
|
|
7046
|
+
return et(a) && nt.call(a, "callee") && (!bi.call(a, "callee") || _t.call(a) == h);
|
|
7040
7047
|
}
|
|
7041
7048
|
var Fe = Array.isArray;
|
|
7042
7049
|
function Te(a) {
|
|
7043
7050
|
return a != null && qr(a.length) && !kn(a);
|
|
7044
7051
|
}
|
|
7045
7052
|
function et(a) {
|
|
7046
|
-
return
|
|
7053
|
+
return vt(a) && Te(a);
|
|
7047
7054
|
}
|
|
7048
7055
|
function kn(a) {
|
|
7049
|
-
var d =
|
|
7056
|
+
var d = mt(a) ? _t.call(a) : "";
|
|
7050
7057
|
return d == _ || d == E;
|
|
7051
7058
|
}
|
|
7052
7059
|
function qr(a) {
|
|
7053
7060
|
return typeof a == "number" && a > -1 && a % 1 == 0 && a <= c;
|
|
7054
7061
|
}
|
|
7055
|
-
function
|
|
7062
|
+
function mt(a) {
|
|
7056
7063
|
var d = typeof a;
|
|
7057
7064
|
return !!a && (d == "object" || d == "function");
|
|
7058
7065
|
}
|
|
7059
|
-
function
|
|
7066
|
+
function vt(a) {
|
|
7060
7067
|
return !!a && typeof a == "object";
|
|
7061
7068
|
}
|
|
7062
7069
|
function yr(a) {
|
|
7063
|
-
return typeof a == "symbol" ||
|
|
7070
|
+
return typeof a == "symbol" || vt(a) && _t.call(a) == he;
|
|
7064
7071
|
}
|
|
7065
7072
|
var br = hn ? dn(hn) : $n;
|
|
7066
7073
|
function mr(a) {
|
|
7067
|
-
return a == null ? "" :
|
|
7074
|
+
return a == null ? "" : yt(a);
|
|
7068
7075
|
}
|
|
7069
7076
|
function Wr(a, d, b) {
|
|
7070
7077
|
var A = a == null ? void 0 : Dr(a, d);
|
|
@@ -7073,7 +7080,7 @@ Vn.exports;
|
|
|
7073
7080
|
function Vr(a, d) {
|
|
7074
7081
|
return a != null && Sn(a, d, Mi);
|
|
7075
7082
|
}
|
|
7076
|
-
function
|
|
7083
|
+
function Et(a) {
|
|
7077
7084
|
return Te(a) ? _e(a) : An(a);
|
|
7078
7085
|
}
|
|
7079
7086
|
function Kr(a) {
|
|
@@ -7084,28 +7091,28 @@ Vn.exports;
|
|
|
7084
7091
|
}
|
|
7085
7092
|
t.exports = Ur;
|
|
7086
7093
|
})(Vn, Vn.exports);
|
|
7087
|
-
var
|
|
7088
|
-
const
|
|
7089
|
-
function
|
|
7094
|
+
var Vh = Vn.exports;
|
|
7095
|
+
const $a = /* @__PURE__ */ ei(Vh);
|
|
7096
|
+
function Kh(t, e, r) {
|
|
7090
7097
|
let n = [];
|
|
7091
7098
|
t.filterProperties.length && t.filterProperties.forEach((s) => {
|
|
7092
7099
|
const o = {}, l = (h) => s.format === "date" ? rn(h).unix() : parseFloat(h);
|
|
7093
7100
|
e.forEach((h) => {
|
|
7094
7101
|
var p;
|
|
7095
7102
|
if (s.type === "range") {
|
|
7096
|
-
const y =
|
|
7103
|
+
const y = es(s.key, h);
|
|
7097
7104
|
if (Array.isArray(y)) {
|
|
7098
|
-
const
|
|
7099
|
-
o.min = o.min !== void 0 ? Math.min(o.min,
|
|
7105
|
+
const v = [l(y[0]), l(y[1])];
|
|
7106
|
+
o.min = o.min !== void 0 ? Math.min(o.min, v[0]) : v[0], o.max = o.max !== void 0 ? Math.max(o.max, v[1]) : v[1];
|
|
7100
7107
|
} else {
|
|
7101
|
-
const
|
|
7102
|
-
o.min = o.min !== void 0 ? Math.min(o.min,
|
|
7108
|
+
const v = l(y);
|
|
7109
|
+
o.min = o.min !== void 0 ? Math.min(o.min, v) : v, o.max = o.max !== void 0 ? Math.max(o.max, v) : v;
|
|
7103
7110
|
}
|
|
7104
7111
|
return;
|
|
7105
7112
|
}
|
|
7106
7113
|
Array.isArray(h[s.key]) ? h[s.key].forEach((y) => {
|
|
7107
7114
|
o[y] = void 0;
|
|
7108
|
-
}) : s.type === "spatial" ? (o.geometry = void 0, o.mode = s.mode || "intersects") : (p = s.key) != null && p.includes(".") ?
|
|
7115
|
+
}) : s.type === "spatial" ? (o.geometry = void 0, o.mode = s.mode || "intersects") : (p = s.key) != null && p.includes(".") ? xa($a(r.items, s.key)).filter((y) => y).forEach((y) => {
|
|
7109
7116
|
o[y] = void 0;
|
|
7110
7117
|
}) : o[h[s.key]] = void 0;
|
|
7111
7118
|
});
|
|
@@ -7140,13 +7147,13 @@ function Vh(t, e, r) {
|
|
|
7140
7147
|
s.type === "text" ? s.keys.forEach((o) => {
|
|
7141
7148
|
i.includes(o) || i.push(o);
|
|
7142
7149
|
}) : (s.type === "select" || s.type === "multiselect") && (i.includes(s.key) || i.push(s.key));
|
|
7143
|
-
}),
|
|
7150
|
+
}), Gc(e, Object.assign({ keys: i }, t.fuseConfig)), n;
|
|
7144
7151
|
}
|
|
7145
|
-
async function
|
|
7152
|
+
async function Gh(t, e, r) {
|
|
7146
7153
|
let n;
|
|
7147
|
-
r.externalFilter ? n = await Xc(e, r.filters, t) : n = await
|
|
7154
|
+
r.externalFilter ? n = await Xc(e, r.filters, t) : n = await Yc(e, r.filters, t), r.results = r.sortResults(n);
|
|
7148
7155
|
}
|
|
7149
|
-
function
|
|
7156
|
+
function Yh(t, e, r) {
|
|
7150
7157
|
const n = `filter-${t.key}`.replace("|", "-");
|
|
7151
7158
|
switch (t.type) {
|
|
7152
7159
|
case "text":
|
|
@@ -7170,8 +7177,8 @@ function Gh(t, e, r) {
|
|
|
7170
7177
|
.tabIndex=${e}
|
|
7171
7178
|
.filterObject=${t}
|
|
7172
7179
|
slot="filter"
|
|
7173
|
-
.suggestions="${
|
|
7174
|
-
|
|
7180
|
+
.suggestions="${xa(
|
|
7181
|
+
$a(r.items, t.key)
|
|
7175
7182
|
).filter((i) => i)}"
|
|
7176
7183
|
type="${t.type}"
|
|
7177
7184
|
.unstyled=${r.unstyled}
|
|
@@ -7205,12 +7212,12 @@ function Gh(t, e, r) {
|
|
|
7205
7212
|
return F``;
|
|
7206
7213
|
}
|
|
7207
7214
|
}
|
|
7208
|
-
function
|
|
7215
|
+
function Fh(t, e) {
|
|
7209
7216
|
return [...t].sort(
|
|
7210
7217
|
(r, n) => r[e.titleProperty].localeCompare(n[e.titleProperty])
|
|
7211
7218
|
);
|
|
7212
7219
|
}
|
|
7213
|
-
function
|
|
7220
|
+
function Zh(t, e, r) {
|
|
7214
7221
|
return F`
|
|
7215
7222
|
${We(
|
|
7216
7223
|
t.dirty,
|
|
@@ -7236,8 +7243,8 @@ function Xh(t) {
|
|
|
7236
7243
|
typeof e.reset == "function" && e.reset();
|
|
7237
7244
|
}), t.search();
|
|
7238
7245
|
}
|
|
7239
|
-
var sn, $r, tt, Mr,
|
|
7240
|
-
class
|
|
7246
|
+
var sn, $r, tt, Mr, _a, Aa;
|
|
7247
|
+
class Jh extends Ye {
|
|
7241
7248
|
constructor() {
|
|
7242
7249
|
super();
|
|
7243
7250
|
Ge(this, Mr);
|
|
@@ -7252,7 +7259,7 @@ class Zh extends Ye {
|
|
|
7252
7259
|
/**
|
|
7253
7260
|
* @type Object
|
|
7254
7261
|
*/
|
|
7255
|
-
Ge(this, tt,
|
|
7262
|
+
Ge(this, tt, Fu);
|
|
7256
7263
|
this.items = null, this.filters = {}, this.results = [], this.selectedResult = null, this.search = ri(this.searchHandler, 100, {
|
|
7257
7264
|
leading: !0
|
|
7258
7265
|
}), this.aggregateResults = void 0, this.autoSpreadSingle = !1, this.enableHighlighting = !1, this.externalFilter = null, this.filterProperties = [], this.fuseConfig = {}, this.inlineMode = !1, this.matchAllWhenEmpty = !0, this.showResults = !0, this.titleProperty = "title", this.subTitleProperty = void 0, this.idProperty = "id", this.expandMultipleFilters = !0, this.expandResults = !0, this.expandMultipleResults = !0, this.unstyled = !1;
|
|
@@ -7292,9 +7299,9 @@ class Zh extends Ye {
|
|
|
7292
7299
|
* Applies the filters to the items and updates the result aggregation.
|
|
7293
7300
|
*/
|
|
7294
7301
|
apply() {
|
|
7295
|
-
Pn(this, sn,
|
|
7296
|
-
|
|
7297
|
-
|
|
7302
|
+
Pn(this, sn, Kh(
|
|
7303
|
+
Ze(this, tt),
|
|
7304
|
+
Ze(this, $r),
|
|
7298
7305
|
this
|
|
7299
7306
|
)), this.search();
|
|
7300
7307
|
}
|
|
@@ -7303,7 +7310,7 @@ class Zh extends Ye {
|
|
|
7303
7310
|
* Requests an update after the search completes.
|
|
7304
7311
|
*/
|
|
7305
7312
|
async searchHandler() {
|
|
7306
|
-
await
|
|
7313
|
+
await Gh(Ze(this, tt), Ze(this, $r), this), this.dispatchEvent(
|
|
7307
7314
|
new CustomEvent("filter", {
|
|
7308
7315
|
detail: {
|
|
7309
7316
|
results: this.results,
|
|
@@ -7321,7 +7328,7 @@ class Zh extends Ye {
|
|
|
7321
7328
|
* @returns {Array<object>} - The sorted items.
|
|
7322
7329
|
*/
|
|
7323
7330
|
sortResults(r) {
|
|
7324
|
-
return
|
|
7331
|
+
return Fh(r, Ze(this, tt));
|
|
7325
7332
|
}
|
|
7326
7333
|
/**
|
|
7327
7334
|
* Resets all applied filters.
|
|
@@ -7380,9 +7387,9 @@ class Zh extends Ye {
|
|
|
7380
7387
|
var r;
|
|
7381
7388
|
return F`
|
|
7382
7389
|
<style>
|
|
7383
|
-
${
|
|
7390
|
+
${Ua}
|
|
7384
7391
|
${!this.unstyled && an}
|
|
7385
|
-
${!this.unstyled &&
|
|
7392
|
+
${!this.unstyled && za}
|
|
7386
7393
|
${this.styleOverride}
|
|
7387
7394
|
</style>
|
|
7388
7395
|
<form
|
|
@@ -7410,22 +7417,22 @@ class Zh extends Ye {
|
|
|
7410
7417
|
`
|
|
7411
7418
|
)}
|
|
7412
7419
|
<ul id="filters">
|
|
7413
|
-
${
|
|
7420
|
+
${Zn(
|
|
7414
7421
|
Object.values(this.filters),
|
|
7415
7422
|
(n, i) => F` <li>
|
|
7416
7423
|
<eox-itemfilter-expandcontainer
|
|
7417
7424
|
.filterObject=${n}
|
|
7418
|
-
@details-toggled=${(s) =>
|
|
7425
|
+
@details-toggled=${(s) => Yo(s, Ze(this, tt), this)}
|
|
7419
7426
|
data-details="${n.key}"
|
|
7420
7427
|
>
|
|
7421
|
-
${le(this, Mr,
|
|
7422
|
-
${le(this, Mr,
|
|
7428
|
+
${le(this, Mr, Aa).call(this, n, Xs(i, 1))}
|
|
7429
|
+
${le(this, Mr, _a).call(this, n, Xs(i, 2))}
|
|
7423
7430
|
</eox-itemfilter-expandcontainer>
|
|
7424
7431
|
</li>`
|
|
7425
7432
|
)}
|
|
7426
7433
|
</ul>
|
|
7427
7434
|
${We(
|
|
7428
|
-
!this.inlineMode &&
|
|
7435
|
+
!this.inlineMode && Ze(this, tt).filterProperties && !this.inlineMode && Ze(this, tt).filterProperties && Qi(this.filters),
|
|
7429
7436
|
() => F`
|
|
7430
7437
|
<button
|
|
7431
7438
|
type="button"
|
|
@@ -7443,13 +7450,13 @@ class Zh extends Ye {
|
|
|
7443
7450
|
`
|
|
7444
7451
|
)}
|
|
7445
7452
|
${We(
|
|
7446
|
-
((r =
|
|
7453
|
+
((r = Ze(this, tt)) == null ? void 0 : r.showResults) && this.results,
|
|
7447
7454
|
() => F`
|
|
7448
7455
|
<eox-itemfilter-results
|
|
7449
|
-
.config=${
|
|
7456
|
+
.config=${Ze(this, tt)}
|
|
7450
7457
|
.results=${this.results}
|
|
7451
7458
|
.filters=${this.filters}
|
|
7452
|
-
.resultAggregation=${
|
|
7459
|
+
.resultAggregation=${Ze(this, sn)}
|
|
7453
7460
|
.selectedResult=${this.selectedResult}
|
|
7454
7461
|
@result=${this.updateResult}
|
|
7455
7462
|
></eox-itemfilter-results>
|
|
@@ -7467,8 +7474,8 @@ sn = new WeakMap(), $r = new WeakMap(), tt = new WeakMap(), Mr = new WeakSet(),
|
|
|
7467
7474
|
* @returns {import("lit")} - The template result for the filter element.
|
|
7468
7475
|
* @private
|
|
7469
7476
|
*/
|
|
7470
|
-
|
|
7471
|
-
return
|
|
7477
|
+
_a = function(r, n) {
|
|
7478
|
+
return Yh(r, n, this);
|
|
7472
7479
|
}, /**
|
|
7473
7480
|
* Creates a reset element for the given filter object and tab index.
|
|
7474
7481
|
*
|
|
@@ -7477,10 +7484,10 @@ $a = function(r, n) {
|
|
|
7477
7484
|
* @returns {import("lit")} - The template result for the filter element.
|
|
7478
7485
|
* @private
|
|
7479
7486
|
*/
|
|
7480
|
-
|
|
7481
|
-
return
|
|
7487
|
+
Aa = function(r, n) {
|
|
7488
|
+
return Zh(r, n, this);
|
|
7482
7489
|
};
|
|
7483
|
-
customElements.define("eox-itemfilter",
|
|
7490
|
+
customElements.define("eox-itemfilter", Jh);
|
|
7484
7491
|
export {
|
|
7485
|
-
|
|
7492
|
+
Jh as EOxItemFilter
|
|
7486
7493
|
};
|