@eox/itemfilter 0.10.2 → 0.11.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 +948 -925
- package/dist/eox-itemfilter.umd.cjs +88 -73
- package/package.json +1 -1
package/dist/eox-itemfilter.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const wr = globalThis,
|
|
7
|
-
let
|
|
6
|
+
const wr = globalThis, Li = wr.ShadowRoot && (wr.ShadyCSS === void 0 || wr.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, rs = Symbol(), _n = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let tl = class {
|
|
8
8
|
constructor(e, r, i) {
|
|
9
9
|
if (this._$cssResult$ = !0, i !== rs)
|
|
10
10
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -13,7 +13,7 @@ let ta = class {
|
|
|
13
13
|
get styleSheet() {
|
|
14
14
|
let e = this.o;
|
|
15
15
|
const r = this.t;
|
|
16
|
-
if (
|
|
16
|
+
if (Li && e === void 0) {
|
|
17
17
|
const i = r !== void 0 && r.length === 1;
|
|
18
18
|
i && (e = _n.get(r)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && _n.set(r, e));
|
|
19
19
|
}
|
|
@@ -23,29 +23,29 @@ let ta = class {
|
|
|
23
23
|
return this.cssText;
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
26
|
+
const rl = (t) => new tl(typeof t == "string" ? t : t + "", void 0, rs), il = (t, e) => {
|
|
27
|
+
if (Li)
|
|
28
28
|
t.adoptedStyleSheets = e.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
|
|
29
29
|
else
|
|
30
30
|
for (const r of e) {
|
|
31
31
|
const i = document.createElement("style"), n = wr.litNonce;
|
|
32
32
|
n !== void 0 && i.setAttribute("nonce", n), i.textContent = r.cssText, t.appendChild(i);
|
|
33
33
|
}
|
|
34
|
-
}, En =
|
|
34
|
+
}, En = Li ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
|
|
35
35
|
let r = "";
|
|
36
36
|
for (const i of e.cssRules)
|
|
37
37
|
r += i.cssText;
|
|
38
|
-
return
|
|
38
|
+
return rl(r);
|
|
39
39
|
})(t) : t;
|
|
40
40
|
/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2017 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
44
|
*/
|
|
45
|
-
const { is:
|
|
45
|
+
const { is: nl, defineProperty: sl, getOwnPropertyDescriptor: ol, getOwnPropertyNames: ll, getOwnPropertySymbols: al, getPrototypeOf: cl } = Object, ot = globalThis, Sn = ot.trustedTypes, hl = Sn ? Sn.emptyScript : "", ci = ot.reactiveElementPolyfillSupport, Xt = (t, e) => t, _r = { toAttribute(t, e) {
|
|
46
46
|
switch (e) {
|
|
47
47
|
case Boolean:
|
|
48
|
-
t = t ?
|
|
48
|
+
t = t ? hl : null;
|
|
49
49
|
break;
|
|
50
50
|
case Object:
|
|
51
51
|
case Array:
|
|
@@ -70,7 +70,7 @@ const { is: na, defineProperty: sa, getOwnPropertyDescriptor: oa, getOwnProperty
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
return r;
|
|
73
|
-
} },
|
|
73
|
+
} }, Ci = (t, e) => !nl(t, e), An = { attribute: !0, type: String, converter: _r, reflect: !1, hasChanged: Ci };
|
|
74
74
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), ot.litPropertyMetadata ?? (ot.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
75
75
|
class Pt extends HTMLElement {
|
|
76
76
|
static addInitializer(e) {
|
|
@@ -82,11 +82,11 @@ class Pt extends HTMLElement {
|
|
|
82
82
|
static createProperty(e, r = An) {
|
|
83
83
|
if (r.state && (r.attribute = !1), this._$Ei(), this.elementProperties.set(e, r), !r.noAccessor) {
|
|
84
84
|
const i = Symbol(), n = this.getPropertyDescriptor(e, i, r);
|
|
85
|
-
n !== void 0 &&
|
|
85
|
+
n !== void 0 && sl(this.prototype, e, n);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
static getPropertyDescriptor(e, r, i) {
|
|
89
|
-
const { get: n, set: s } =
|
|
89
|
+
const { get: n, set: s } = ol(this.prototype, e) ?? { get() {
|
|
90
90
|
return this[r];
|
|
91
91
|
}, set(o) {
|
|
92
92
|
this[r] = o;
|
|
@@ -94,8 +94,8 @@ class Pt extends HTMLElement {
|
|
|
94
94
|
return { get() {
|
|
95
95
|
return n == null ? void 0 : n.call(this);
|
|
96
96
|
}, set(o) {
|
|
97
|
-
const
|
|
98
|
-
s.call(this, o), this.requestUpdate(e,
|
|
97
|
+
const a = n == null ? void 0 : n.call(this);
|
|
98
|
+
s.call(this, o), this.requestUpdate(e, a, i);
|
|
99
99
|
}, configurable: !0, enumerable: !0 };
|
|
100
100
|
}
|
|
101
101
|
static getPropertyOptions(e) {
|
|
@@ -104,14 +104,14 @@ class Pt extends HTMLElement {
|
|
|
104
104
|
static _$Ei() {
|
|
105
105
|
if (this.hasOwnProperty(Xt("elementProperties")))
|
|
106
106
|
return;
|
|
107
|
-
const e =
|
|
107
|
+
const e = cl(this);
|
|
108
108
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
111
|
if (this.hasOwnProperty(Xt("finalized")))
|
|
112
112
|
return;
|
|
113
113
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Xt("properties"))) {
|
|
114
|
-
const r = this.properties, i = [...
|
|
114
|
+
const r = this.properties, i = [...ll(r), ...al(r)];
|
|
115
115
|
for (const n of i)
|
|
116
116
|
this.createProperty(n, r[n]);
|
|
117
117
|
}
|
|
@@ -166,7 +166,7 @@ class Pt extends HTMLElement {
|
|
|
166
166
|
}
|
|
167
167
|
createRenderRoot() {
|
|
168
168
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
169
|
-
return
|
|
169
|
+
return il(e, this.constructor.elementStyles), e;
|
|
170
170
|
}
|
|
171
171
|
connectedCallback() {
|
|
172
172
|
var e;
|
|
@@ -199,13 +199,13 @@ class Pt extends HTMLElement {
|
|
|
199
199
|
var s;
|
|
200
200
|
const i = this.constructor, n = i._$Eh.get(e);
|
|
201
201
|
if (n !== void 0 && this._$Em !== n) {
|
|
202
|
-
const o = i.getPropertyOptions(n),
|
|
203
|
-
this._$Em = n, this[n] =
|
|
202
|
+
const o = i.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? o.converter : _r;
|
|
203
|
+
this._$Em = n, this[n] = a.fromAttribute(r, o.type), this._$Em = null;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
requestUpdate(e, r, i, n = !1, s) {
|
|
207
207
|
if (e !== void 0) {
|
|
208
|
-
if (i ?? (i = this.constructor.getPropertyOptions(e)), !(i.hasChanged ??
|
|
208
|
+
if (i ?? (i = this.constructor.getPropertyOptions(e)), !(i.hasChanged ?? Ci)(n ? s : this[e], r))
|
|
209
209
|
return;
|
|
210
210
|
this.C(e, r, i);
|
|
211
211
|
}
|
|
@@ -289,24 +289,24 @@ Pt.elementStyles = [], Pt.shadowRootOptions = { mode: "open" }, Pt[Xt("elementPr
|
|
|
289
289
|
* Copyright 2017 Google LLC
|
|
290
290
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
291
291
|
*/
|
|
292
|
-
const Vt = globalThis, Er = Vt.trustedTypes, Mn = Er ? Er.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ki = "$lit$", Ze = `lit$${(Math.random() + "").slice(9)}$`, Ri = "?" + Ze,
|
|
292
|
+
const Vt = globalThis, Er = Vt.trustedTypes, Mn = Er ? Er.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ki = "$lit$", Ze = `lit$${(Math.random() + "").slice(9)}$`, Ri = "?" + Ze, ul = `<${Ri}>`, xt = document, Gt = () => xt.createComment(""), Jt = (t) => t === null || typeof t != "object" && typeof t != "function", is = Array.isArray, ns = (t) => is(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", hi = `[
|
|
293
293
|
\f\r]`, Yt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, On = /-->/g, Pn = />/g, mt = RegExp(`>|${hi}(?:([^\\s"'>=/]+)(${hi}*=${hi}*(?:[^
|
|
294
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
294
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ln = /'/g, Cn = /"/g, ss = /^(?:script|style|textarea|title)$/i, dl = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), X = dl(1), lt = Symbol.for("lit-noChange"), oe = Symbol.for("lit-nothing"), kn = /* @__PURE__ */ new WeakMap(), bt = xt.createTreeWalker(xt, 129);
|
|
295
295
|
function os(t, e) {
|
|
296
296
|
if (!Array.isArray(t) || !t.hasOwnProperty("raw"))
|
|
297
297
|
throw Error("invalid template strings array");
|
|
298
298
|
return Mn !== void 0 ? Mn.createHTML(e) : e;
|
|
299
299
|
}
|
|
300
|
-
const
|
|
300
|
+
const ls = (t, e) => {
|
|
301
301
|
const r = t.length - 1, i = [];
|
|
302
302
|
let n, s = e === 2 ? "<svg>" : "", o = Yt;
|
|
303
|
-
for (let
|
|
304
|
-
const
|
|
303
|
+
for (let a = 0; a < r; a++) {
|
|
304
|
+
const l = t[a];
|
|
305
305
|
let h, f, p = -1, b = 0;
|
|
306
|
-
for (; b <
|
|
307
|
-
b = o.lastIndex, o === Yt ? f[1] === "!--" ? o = On : f[1] !== void 0 ? o = Pn : f[2] !== void 0 ? (ss.test(f[2]) && (n = RegExp("</" + f[2], "g")), o = mt) : f[3] !== void 0 && (o = mt) : o === mt ? f[0] === ">" ? (o = n ?? Yt, p = -1) : f[1] === void 0 ? p = -2 : (p = o.lastIndex - f[2].length, h = f[1], o = f[3] === void 0 ? mt : f[3] === '"' ?
|
|
308
|
-
const y = o === mt && t[
|
|
309
|
-
s += o === Yt ?
|
|
306
|
+
for (; b < l.length && (o.lastIndex = b, f = o.exec(l), f !== null); )
|
|
307
|
+
b = o.lastIndex, o === Yt ? f[1] === "!--" ? o = On : f[1] !== void 0 ? o = Pn : f[2] !== void 0 ? (ss.test(f[2]) && (n = RegExp("</" + f[2], "g")), o = mt) : f[3] !== void 0 && (o = mt) : o === mt ? f[0] === ">" ? (o = n ?? Yt, p = -1) : f[1] === void 0 ? p = -2 : (p = o.lastIndex - f[2].length, h = f[1], o = f[3] === void 0 ? mt : f[3] === '"' ? Cn : Ln) : o === Cn || o === Ln ? o = mt : o === On || o === Pn ? o = Yt : (o = mt, n = void 0);
|
|
308
|
+
const y = o === mt && t[a + 1].startsWith("/>") ? " " : "";
|
|
309
|
+
s += o === Yt ? l + ul : p >= 0 ? (i.push(h), l.slice(0, p) + ki + l.slice(p) + Ze + y) : l + Ze + (p === -2 ? a : y);
|
|
310
310
|
}
|
|
311
311
|
return [os(t, s + (t[r] || "<?>") + (e === 2 ? "</svg>" : "")), i];
|
|
312
312
|
};
|
|
@@ -315,36 +315,36 @@ class Zt {
|
|
|
315
315
|
let n;
|
|
316
316
|
this.parts = [];
|
|
317
317
|
let s = 0, o = 0;
|
|
318
|
-
const
|
|
318
|
+
const a = e.length - 1, l = this.parts, [h, f] = ls(e, r);
|
|
319
319
|
if (this.el = Zt.createElement(h, i), bt.currentNode = this.el.content, r === 2) {
|
|
320
320
|
const p = this.el.content.firstChild;
|
|
321
321
|
p.replaceWith(...p.childNodes);
|
|
322
322
|
}
|
|
323
|
-
for (; (n = bt.nextNode()) !== null &&
|
|
323
|
+
for (; (n = bt.nextNode()) !== null && l.length < a; ) {
|
|
324
324
|
if (n.nodeType === 1) {
|
|
325
325
|
if (n.hasAttributes())
|
|
326
326
|
for (const p of n.getAttributeNames())
|
|
327
327
|
if (p.endsWith(ki)) {
|
|
328
328
|
const b = f[o++], y = n.getAttribute(p).split(Ze), $ = /([.?@])?(.*)/.exec(b);
|
|
329
|
-
|
|
329
|
+
l.push({ type: 1, index: s, name: $[2], strings: y, ctor: $[1] === "." ? cs : $[1] === "?" ? hs : $[1] === "@" ? us : nr }), n.removeAttribute(p);
|
|
330
330
|
} else
|
|
331
|
-
p.startsWith(Ze) && (
|
|
331
|
+
p.startsWith(Ze) && (l.push({ type: 6, index: s }), n.removeAttribute(p));
|
|
332
332
|
if (ss.test(n.tagName)) {
|
|
333
333
|
const p = n.textContent.split(Ze), b = p.length - 1;
|
|
334
334
|
if (b > 0) {
|
|
335
335
|
n.textContent = Er ? Er.emptyScript : "";
|
|
336
336
|
for (let y = 0; y < b; y++)
|
|
337
|
-
n.append(p[y], Gt()), bt.nextNode(),
|
|
337
|
+
n.append(p[y], Gt()), bt.nextNode(), l.push({ type: 2, index: ++s });
|
|
338
338
|
n.append(p[b], Gt());
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
} else if (n.nodeType === 8)
|
|
342
342
|
if (n.data === Ri)
|
|
343
|
-
|
|
343
|
+
l.push({ type: 2, index: s });
|
|
344
344
|
else {
|
|
345
345
|
let p = -1;
|
|
346
346
|
for (; (p = n.data.indexOf(Ze, p + 1)) !== -1; )
|
|
347
|
-
|
|
347
|
+
l.push({ type: 7, index: s }), p += Ze.length - 1;
|
|
348
348
|
}
|
|
349
349
|
s++;
|
|
350
350
|
}
|
|
@@ -355,14 +355,14 @@ class Zt {
|
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
function wt(t, e, r = t, i) {
|
|
358
|
-
var o,
|
|
359
|
-
if (e ===
|
|
358
|
+
var o, a;
|
|
359
|
+
if (e === lt)
|
|
360
360
|
return e;
|
|
361
361
|
let n = i !== void 0 ? (o = r._$Co) == null ? void 0 : o[i] : r._$Cl;
|
|
362
362
|
const s = Jt(e) ? void 0 : e._$litDirective$;
|
|
363
|
-
return (n == null ? void 0 : n.constructor) !== s && ((
|
|
363
|
+
return (n == null ? void 0 : n.constructor) !== s && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), s === void 0 ? n = void 0 : (n = new s(t), n._$AT(t, r, i)), i !== void 0 ? (r._$Co ?? (r._$Co = []))[i] = n : r._$Cl = n), n !== void 0 && (e = wt(t, n._$AS(t, e.values), n, i)), e;
|
|
364
364
|
}
|
|
365
|
-
class
|
|
365
|
+
class as {
|
|
366
366
|
constructor(e, r) {
|
|
367
367
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = r;
|
|
368
368
|
}
|
|
@@ -375,13 +375,13 @@ class ls {
|
|
|
375
375
|
u(e) {
|
|
376
376
|
const { el: { content: r }, parts: i } = this._$AD, n = ((e == null ? void 0 : e.creationScope) ?? xt).importNode(r, !0);
|
|
377
377
|
bt.currentNode = n;
|
|
378
|
-
let s = bt.nextNode(), o = 0,
|
|
379
|
-
for (;
|
|
380
|
-
if (o ===
|
|
378
|
+
let s = bt.nextNode(), o = 0, a = 0, l = i[0];
|
|
379
|
+
for (; l !== void 0; ) {
|
|
380
|
+
if (o === l.index) {
|
|
381
381
|
let h;
|
|
382
|
-
|
|
382
|
+
l.type === 2 ? h = new jt(s, s.nextSibling, this, e) : l.type === 1 ? h = new l.ctor(s, l.name, l.strings, this, e) : l.type === 6 && (h = new ds(s, this, e)), this._$AV.push(h), l = i[++a];
|
|
383
383
|
}
|
|
384
|
-
o !== (
|
|
384
|
+
o !== (l == null ? void 0 : l.index) && (s = bt.nextNode(), o++);
|
|
385
385
|
}
|
|
386
386
|
return bt.currentNode = xt, n;
|
|
387
387
|
}
|
|
@@ -397,7 +397,7 @@ class jt {
|
|
|
397
397
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
|
398
398
|
}
|
|
399
399
|
constructor(e, r, i, n) {
|
|
400
|
-
this.type = 2, this._$AH =
|
|
400
|
+
this.type = 2, this._$AH = oe, this._$AN = void 0, this._$AA = e, this._$AB = r, this._$AM = i, this.options = n, this._$Cv = (n == null ? void 0 : n.isConnected) ?? !0;
|
|
401
401
|
}
|
|
402
402
|
get parentNode() {
|
|
403
403
|
let e = this._$AA.parentNode;
|
|
@@ -411,7 +411,7 @@ class jt {
|
|
|
411
411
|
return this._$AB;
|
|
412
412
|
}
|
|
413
413
|
_$AI(e, r = this) {
|
|
414
|
-
e = wt(this, e, r), Jt(e) ? e ===
|
|
414
|
+
e = wt(this, e, r), Jt(e) ? e === oe || e == null || e === "" ? (this._$AH !== oe && this._$AR(), this._$AH = oe) : e !== this._$AH && e !== lt && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) : ns(e) ? this.T(e) : this._(e);
|
|
415
415
|
}
|
|
416
416
|
k(e) {
|
|
417
417
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -420,7 +420,7 @@ class jt {
|
|
|
420
420
|
this._$AH !== e && (this._$AR(), this._$AH = this.k(e));
|
|
421
421
|
}
|
|
422
422
|
_(e) {
|
|
423
|
-
this._$AH !==
|
|
423
|
+
this._$AH !== oe && Jt(this._$AH) ? this._$AA.nextSibling.data = e : this.$(xt.createTextNode(e)), this._$AH = e;
|
|
424
424
|
}
|
|
425
425
|
g(e) {
|
|
426
426
|
var s;
|
|
@@ -428,8 +428,8 @@ class jt {
|
|
|
428
428
|
if (((s = this._$AH) == null ? void 0 : s._$AD) === n)
|
|
429
429
|
this._$AH.p(r);
|
|
430
430
|
else {
|
|
431
|
-
const o = new
|
|
432
|
-
o.p(r), this.$(
|
|
431
|
+
const o = new as(n, this), a = o.u(this.options);
|
|
432
|
+
o.p(r), this.$(a), this._$AH = o;
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
_$AC(e) {
|
|
@@ -464,23 +464,23 @@ class nr {
|
|
|
464
464
|
return this._$AM._$AU;
|
|
465
465
|
}
|
|
466
466
|
constructor(e, r, i, n, s) {
|
|
467
|
-
this.type = 1, this._$AH =
|
|
467
|
+
this.type = 1, this._$AH = oe, this._$AN = void 0, this.element = e, this.name = r, this._$AM = n, this.options = s, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = oe;
|
|
468
468
|
}
|
|
469
469
|
_$AI(e, r = this, i, n) {
|
|
470
470
|
const s = this.strings;
|
|
471
471
|
let o = !1;
|
|
472
472
|
if (s === void 0)
|
|
473
|
-
e = wt(this, e, r, 0), o = !Jt(e) || e !== this._$AH && e !==
|
|
473
|
+
e = wt(this, e, r, 0), o = !Jt(e) || e !== this._$AH && e !== lt, o && (this._$AH = e);
|
|
474
474
|
else {
|
|
475
|
-
const
|
|
476
|
-
let
|
|
477
|
-
for (e = s[0],
|
|
478
|
-
h = wt(this,
|
|
475
|
+
const a = e;
|
|
476
|
+
let l, h;
|
|
477
|
+
for (e = s[0], l = 0; l < s.length - 1; l++)
|
|
478
|
+
h = wt(this, a[i + l], r, l), h === lt && (h = this._$AH[l]), o || (o = !Jt(h) || h !== this._$AH[l]), h === oe ? e = oe : e !== oe && (e += (h ?? "") + s[l + 1]), this._$AH[l] = h;
|
|
479
479
|
}
|
|
480
480
|
o && !n && this.O(e);
|
|
481
481
|
}
|
|
482
482
|
O(e) {
|
|
483
|
-
e ===
|
|
483
|
+
e === oe ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
class cs extends nr {
|
|
@@ -488,7 +488,7 @@ class cs extends nr {
|
|
|
488
488
|
super(...arguments), this.type = 3;
|
|
489
489
|
}
|
|
490
490
|
O(e) {
|
|
491
|
-
this.element[this.name] = e ===
|
|
491
|
+
this.element[this.name] = e === oe ? void 0 : e;
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
class hs extends nr {
|
|
@@ -496,7 +496,7 @@ class hs extends nr {
|
|
|
496
496
|
super(...arguments), this.type = 4;
|
|
497
497
|
}
|
|
498
498
|
O(e) {
|
|
499
|
-
this.element.toggleAttribute(this.name, !!e && e !==
|
|
499
|
+
this.element.toggleAttribute(this.name, !!e && e !== oe);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
class us extends nr {
|
|
@@ -504,9 +504,9 @@ class us extends nr {
|
|
|
504
504
|
super(e, r, i, n, s), this.type = 5;
|
|
505
505
|
}
|
|
506
506
|
_$AI(e, r = this) {
|
|
507
|
-
if ((e = wt(this, e, r, 0) ??
|
|
507
|
+
if ((e = wt(this, e, r, 0) ?? oe) === lt)
|
|
508
508
|
return;
|
|
509
|
-
const i = this._$AH, n = e ===
|
|
509
|
+
const i = this._$AH, n = e === oe && i !== oe || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, s = e !== oe && (i === oe || n);
|
|
510
510
|
n && this.element.removeEventListener(this.name, this, i), s && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
511
511
|
}
|
|
512
512
|
handleEvent(e) {
|
|
@@ -525,9 +525,9 @@ class ds {
|
|
|
525
525
|
wt(this, e);
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
const
|
|
528
|
+
const fl = { j: ki, P: Ze, A: Ri, C: 1, M: ls, L: as, R: ns, V: wt, D: jt, I: nr, H: hs, N: us, U: cs, B: ds }, ui = Vt.litHtmlPolyfillSupport;
|
|
529
529
|
ui == null || ui(Zt, jt), (Vt.litHtmlVersions ?? (Vt.litHtmlVersions = [])).push("3.1.0");
|
|
530
|
-
const
|
|
530
|
+
const pl = (t, e, r) => {
|
|
531
531
|
const i = (r == null ? void 0 : r.renderBefore) ?? e;
|
|
532
532
|
let n = i._$litPart$;
|
|
533
533
|
if (n === void 0) {
|
|
@@ -552,7 +552,7 @@ let _e = class extends Pt {
|
|
|
552
552
|
}
|
|
553
553
|
update(e) {
|
|
554
554
|
const r = this.render();
|
|
555
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
555
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = pl(r, this.renderRoot, this.renderOptions);
|
|
556
556
|
}
|
|
557
557
|
connectedCallback() {
|
|
558
558
|
var e;
|
|
@@ -563,7 +563,7 @@ let _e = class extends Pt {
|
|
|
563
563
|
super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
|
|
564
564
|
}
|
|
565
565
|
render() {
|
|
566
|
-
return
|
|
566
|
+
return lt;
|
|
567
567
|
}
|
|
568
568
|
};
|
|
569
569
|
var ts;
|
|
@@ -586,29 +586,29 @@ const Re = (t) => (e, r) => {
|
|
|
586
586
|
* Copyright 2017 Google LLC
|
|
587
587
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
588
588
|
*/
|
|
589
|
-
const
|
|
589
|
+
const gl = { attribute: !0, type: String, converter: _r, reflect: !1, hasChanged: Ci }, ml = (t = gl, e, r) => {
|
|
590
590
|
const { kind: i, metadata: n } = r;
|
|
591
591
|
let s = globalThis.litPropertyMetadata.get(n);
|
|
592
592
|
if (s === void 0 && globalThis.litPropertyMetadata.set(n, s = /* @__PURE__ */ new Map()), s.set(r.name, t), i === "accessor") {
|
|
593
593
|
const { name: o } = r;
|
|
594
|
-
return { set(
|
|
595
|
-
const
|
|
596
|
-
e.set.call(this,
|
|
597
|
-
}, init(
|
|
598
|
-
return
|
|
594
|
+
return { set(a) {
|
|
595
|
+
const l = e.get.call(this);
|
|
596
|
+
e.set.call(this, a), this.requestUpdate(o, l, t);
|
|
597
|
+
}, init(a) {
|
|
598
|
+
return a !== void 0 && this.C(o, void 0, t), a;
|
|
599
599
|
} };
|
|
600
600
|
}
|
|
601
601
|
if (i === "setter") {
|
|
602
602
|
const { name: o } = r;
|
|
603
|
-
return function(
|
|
604
|
-
const
|
|
605
|
-
e.call(this,
|
|
603
|
+
return function(a) {
|
|
604
|
+
const l = this[o];
|
|
605
|
+
e.call(this, a), this.requestUpdate(o, l, t);
|
|
606
606
|
};
|
|
607
607
|
}
|
|
608
608
|
throw Error("Unsupported decorator location: " + i);
|
|
609
609
|
};
|
|
610
610
|
function J(t) {
|
|
611
|
-
return (e, r) => typeof r == "object" ?
|
|
611
|
+
return (e, r) => typeof r == "object" ? ml(t, e, r) : ((i, n, s) => {
|
|
612
612
|
const o = n.hasOwnProperty(s);
|
|
613
613
|
return n.constructor.createProperty(s, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(n, s) : void 0;
|
|
614
614
|
})(t, e, r);
|
|
@@ -626,7 +626,7 @@ function Ke(t) {
|
|
|
626
626
|
* Copyright 2021 Google LLC
|
|
627
627
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
628
628
|
*/
|
|
629
|
-
function
|
|
629
|
+
function de(t, e, r) {
|
|
630
630
|
return t ? e(t) : r == null ? void 0 : r(t);
|
|
631
631
|
}
|
|
632
632
|
/**
|
|
@@ -668,19 +668,19 @@ let gs = class {
|
|
|
668
668
|
* Copyright 2020 Google LLC
|
|
669
669
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
670
670
|
*/
|
|
671
|
-
const { D:
|
|
671
|
+
const { D: yl } = fl, Rn = () => document.createComment(""), Wt = (t, e, r) => {
|
|
672
672
|
var s;
|
|
673
673
|
const i = t._$AA.parentNode, n = e === void 0 ? t._$AB : e._$AA;
|
|
674
674
|
if (r === void 0) {
|
|
675
|
-
const o = i.insertBefore(Rn(), n),
|
|
676
|
-
r = new
|
|
675
|
+
const o = i.insertBefore(Rn(), n), a = i.insertBefore(Rn(), n);
|
|
676
|
+
r = new yl(o, a, t, t.options);
|
|
677
677
|
} else {
|
|
678
|
-
const o = r._$AB.nextSibling,
|
|
679
|
-
if (
|
|
678
|
+
const o = r._$AB.nextSibling, a = r._$AM, l = a !== t;
|
|
679
|
+
if (l) {
|
|
680
680
|
let h;
|
|
681
|
-
(s = r._$AQ) == null || s.call(r, t), r._$AM = t, r._$AP !== void 0 && (h = t._$AU) !==
|
|
681
|
+
(s = r._$AQ) == null || s.call(r, t), r._$AM = t, r._$AP !== void 0 && (h = t._$AU) !== a._$AU && r._$AP(h);
|
|
682
682
|
}
|
|
683
|
-
if (o !== n ||
|
|
683
|
+
if (o !== n || l) {
|
|
684
684
|
let h = r._$AA;
|
|
685
685
|
for (; h !== o; ) {
|
|
686
686
|
const f = h.nextSibling;
|
|
@@ -689,7 +689,7 @@ const { D: ya } = fa, Rn = () => document.createComment(""), Wt = (t, e, r) => {
|
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
return r;
|
|
692
|
-
}, yt = (t, e, r = t) => (t._$AI(e, r), t),
|
|
692
|
+
}, yt = (t, e, r = t) => (t._$AI(e, r), t), vl = {}, bl = (t, e = vl) => t._$AH = e, xl = (t) => t._$AH, fi = (t) => {
|
|
693
693
|
var i;
|
|
694
694
|
(i = t._$AP) == null || i.call(t, !1, !0);
|
|
695
695
|
let e = t._$AA;
|
|
@@ -719,54 +719,54 @@ const Tn = (t, e, r) => {
|
|
|
719
719
|
r === void 0 ? r = e : e !== void 0 && (i = e);
|
|
720
720
|
const n = [], s = [];
|
|
721
721
|
let o = 0;
|
|
722
|
-
for (const
|
|
723
|
-
n[o] = i ? i(
|
|
722
|
+
for (const a of t)
|
|
723
|
+
n[o] = i ? i(a, o) : o, s[o] = r(a, o), o++;
|
|
724
724
|
return { values: s, keys: n };
|
|
725
725
|
}
|
|
726
726
|
render(t, e, r) {
|
|
727
727
|
return this.ht(t, e, r).values;
|
|
728
728
|
}
|
|
729
729
|
update(t, [e, r, i]) {
|
|
730
|
-
const n =
|
|
730
|
+
const n = xl(t), { values: s, keys: o } = this.ht(e, r, i);
|
|
731
731
|
if (!Array.isArray(n))
|
|
732
732
|
return this.dt = o, s;
|
|
733
|
-
const
|
|
733
|
+
const a = this.dt ?? (this.dt = []), l = [];
|
|
734
734
|
let h, f, p = 0, b = n.length - 1, y = 0, $ = s.length - 1;
|
|
735
735
|
for (; p <= b && y <= $; )
|
|
736
736
|
if (n[p] === null)
|
|
737
737
|
p++;
|
|
738
738
|
else if (n[b] === null)
|
|
739
739
|
b--;
|
|
740
|
-
else if (
|
|
741
|
-
|
|
742
|
-
else if (
|
|
743
|
-
|
|
744
|
-
else if (
|
|
745
|
-
|
|
746
|
-
else if (
|
|
747
|
-
|
|
748
|
-
else if (h === void 0 && (h = Tn(o, y, $), f = Tn(
|
|
749
|
-
if (h.has(
|
|
750
|
-
const
|
|
740
|
+
else if (a[p] === o[y])
|
|
741
|
+
l[y] = yt(n[p], s[y]), p++, y++;
|
|
742
|
+
else if (a[b] === o[$])
|
|
743
|
+
l[$] = yt(n[b], s[$]), b--, $--;
|
|
744
|
+
else if (a[p] === o[$])
|
|
745
|
+
l[$] = yt(n[p], s[$]), Wt(t, l[$ + 1], n[p]), p++, $--;
|
|
746
|
+
else if (a[b] === o[y])
|
|
747
|
+
l[y] = yt(n[b], s[y]), Wt(t, n[p], n[b]), b--, y++;
|
|
748
|
+
else if (h === void 0 && (h = Tn(o, y, $), f = Tn(a, p, b)), h.has(a[p]))
|
|
749
|
+
if (h.has(a[b])) {
|
|
750
|
+
const L = f.get(o[y]), G = L !== void 0 ? n[L] : null;
|
|
751
751
|
if (G === null) {
|
|
752
752
|
const B = Wt(t, n[p]);
|
|
753
|
-
yt(B, s[y]),
|
|
753
|
+
yt(B, s[y]), l[y] = B;
|
|
754
754
|
} else
|
|
755
|
-
|
|
755
|
+
l[y] = yt(G, s[y]), Wt(t, n[p], G), n[L] = null;
|
|
756
756
|
y++;
|
|
757
757
|
} else
|
|
758
758
|
fi(n[b]), b--;
|
|
759
759
|
else
|
|
760
760
|
fi(n[p]), p++;
|
|
761
761
|
for (; y <= $; ) {
|
|
762
|
-
const
|
|
763
|
-
yt(
|
|
762
|
+
const L = Wt(t, l[$ + 1]);
|
|
763
|
+
yt(L, s[y]), l[y++] = L;
|
|
764
764
|
}
|
|
765
765
|
for (; p <= b; ) {
|
|
766
|
-
const
|
|
767
|
-
|
|
766
|
+
const L = n[p++];
|
|
767
|
+
L !== null && fi(L);
|
|
768
768
|
}
|
|
769
|
-
return this.dt = o,
|
|
769
|
+
return this.dt = o, bl(t, l), lt;
|
|
770
770
|
}
|
|
771
771
|
});
|
|
772
772
|
/**
|
|
@@ -776,13 +776,13 @@ const Tn = (t, e, r) => {
|
|
|
776
776
|
*/
|
|
777
777
|
let mi = class extends gs {
|
|
778
778
|
constructor(e) {
|
|
779
|
-
if (super(e), this.et =
|
|
779
|
+
if (super(e), this.et = oe, e.type !== fs.CHILD)
|
|
780
780
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
781
781
|
}
|
|
782
782
|
render(e) {
|
|
783
|
-
if (e ===
|
|
783
|
+
if (e === oe || e == null)
|
|
784
784
|
return this.vt = void 0, this.et = e;
|
|
785
|
-
if (e ===
|
|
785
|
+
if (e === lt)
|
|
786
786
|
return e;
|
|
787
787
|
if (typeof e != "string")
|
|
788
788
|
throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
@@ -800,27 +800,27 @@ const In = ps(mi);
|
|
|
800
800
|
* Copyright 2020 Google LLC
|
|
801
801
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
802
802
|
*/
|
|
803
|
-
const ys = Symbol.for(""),
|
|
803
|
+
const ys = Symbol.for(""), wl = (t) => {
|
|
804
804
|
if ((t == null ? void 0 : t.r) === ys)
|
|
805
805
|
return t == null ? void 0 : t._$litStatic$;
|
|
806
|
-
},
|
|
806
|
+
}, Lt = (t) => ({ _$litStatic$: t, r: ys }), Dn = /* @__PURE__ */ new Map(), $l = (t) => (e, ...r) => {
|
|
807
807
|
const i = r.length;
|
|
808
808
|
let n, s;
|
|
809
|
-
const o = [],
|
|
810
|
-
let
|
|
809
|
+
const o = [], a = [];
|
|
810
|
+
let l, h = 0, f = !1;
|
|
811
811
|
for (; h < i; ) {
|
|
812
|
-
for (
|
|
813
|
-
|
|
814
|
-
h !== i &&
|
|
812
|
+
for (l = e[h]; h < i && (s = r[h], (n = wl(s)) !== void 0); )
|
|
813
|
+
l += n + e[++h], f = !0;
|
|
814
|
+
h !== i && a.push(s), o.push(l), h++;
|
|
815
815
|
}
|
|
816
816
|
if (h === i && o.push(e[i]), f) {
|
|
817
817
|
const p = o.join("$$lit$$");
|
|
818
|
-
(e = Dn.get(p)) === void 0 && (o.raw = o, Dn.set(p, e = o)), r =
|
|
818
|
+
(e = Dn.get(p)) === void 0 && (o.raw = o, Dn.set(p, e = o)), r = a;
|
|
819
819
|
}
|
|
820
820
|
return t(e, ...r);
|
|
821
|
-
}, $r = $
|
|
821
|
+
}, $r = $l(X);
|
|
822
822
|
(() => {
|
|
823
|
-
var t = Object.defineProperty, e = Math.pow, r = (c, d, x) => d in c ? t(c, d, { enumerable: !0, configurable: !0, writable: !0, value: x }) : c[d] = x, i = (c, d, x) => (r(c, typeof d != "symbol" ? d + "" : d, x), x), n = (c, d) => ` ${d && d.length > 0 ? d.map((x) => `<link rel="stylesheet" href="${x}" />`).join("") : ""} <style> ${c} </style> <div class="range-slider-box"> <div class="row"> <div id="range-slider" class="range-slider"> <div class="container"> <div class="panel"></div> <div class="panel-fill"></div> <div class="container"> <div class="pointer" tabindex="0" role="slider"> <div class="pointer-shape"></div> </div> </div> </div> </div> </div> </div>`, s = ":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}", o = "pointers-overlap",
|
|
823
|
+
var t = Object.defineProperty, e = Math.pow, r = (c, d, x) => d in c ? t(c, d, { enumerable: !0, configurable: !0, writable: !0, value: x }) : c[d] = x, i = (c, d, x) => (r(c, typeof d != "symbol" ? d + "" : d, x), x), n = (c, d) => ` ${d && d.length > 0 ? d.map((x) => `<link rel="stylesheet" href="${x}" />`).join("") : ""} <style> ${c} </style> <div class="range-slider-box"> <div class="row"> <div id="range-slider" class="range-slider"> <div class="container"> <div class="panel"></div> <div class="panel-fill"></div> <div class="container"> <div class="pointer" tabindex="0" role="slider"> <div class="pointer-shape"></div> </div> </div> </div> </div> </div> </div>`, s = ":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}", o = "pointers-overlap", a = "pointers-min-distance", l = "pointers-max-distance", h = "range-dragging", f = "data", p = "min", b = "max", y = "step", $ = "round", L = "type", G = "theme", B = "rtl", g = "btt", m = "disabled", w = "keyboard-disabled", S = "mousewheel-disabled", E = "slider-width", A = "slider-height", k = "slider-radius", F = "slider-bg", H = "slider-bg-hover", I = "slider-bg-fill", te = "pointer-width", le = "pointer-height", O = "pointer-radius", P = "pointer-bg", M = "pointer-bg-hover", N = "pointer-bg-focus", C = "pointer-shadow", V = "pointer-shadow-hover", U = "pointer-shadow-focus", se = "pointer-border", re = "pointer-border-hover", ye = "pointer-border-focus", ve = "animate-onclick", Ae = "css-links", xe = "vertical", Me = "horizontal", Je = (c, d, x, v, R) => {
|
|
824
824
|
let z = d - c;
|
|
825
825
|
return z === 0 ? x : (v - x) * (R - c) / z + x;
|
|
826
826
|
}, $e = (c) => !isNaN(parseFloat(c)) && isFinite(c), ie = (c, d) => $e(c) ? Number(c) : d, je = (c, d) => d === 0 ? 0 : Math.round(c / d) * d, ft = (c, d = 1 / 0) => {
|
|
@@ -828,7 +828,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
828
828
|
return c;
|
|
829
829
|
let x = e(10, d);
|
|
830
830
|
return Math.round(c * x) / x;
|
|
831
|
-
},
|
|
831
|
+
}, fe = (c) => c == null ? !1 : typeof c == "boolean" ? c : c.trim().toLowerCase() === "true", io = (c, d) => {
|
|
832
832
|
c.dispatchEvent(new CustomEvent("onPointerClicked", { detail: { $pointer: d } }));
|
|
833
833
|
}, no = (c, d) => {
|
|
834
834
|
c.dispatchEvent(new CustomEvent("onMouseDown", { detail: { nativeEvent: d } }));
|
|
@@ -836,7 +836,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
836
836
|
c.dispatchEvent(new CustomEvent("onMouseUp", { detail: { nativeEvent: d } }));
|
|
837
837
|
}, oo = (c, d) => {
|
|
838
838
|
c.dispatchEvent(new CustomEvent("onKeyDown", { detail: { nativeEvent: d } }));
|
|
839
|
-
},
|
|
839
|
+
}, lo = (c, d) => {
|
|
840
840
|
if (!d || d.length <= 0)
|
|
841
841
|
return;
|
|
842
842
|
let x = d.map((R) => $e(R) ? ie(R, R) : R), v = { values: x || [] };
|
|
@@ -890,7 +890,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
890
890
|
}, updatePosition: Q, isClicked: ne, setCallbacks: q, setAttr: Te, getAttr: Ee, destroy: () => {
|
|
891
891
|
d.removeEventListener("keydown", Y), d.removeEventListener("click", ee), d.remove();
|
|
892
892
|
} };
|
|
893
|
-
},
|
|
893
|
+
}, ao = (c) => {
|
|
894
894
|
if (c == null)
|
|
895
895
|
return;
|
|
896
896
|
if (Array.isArray(c))
|
|
@@ -908,7 +908,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
908
908
|
return;
|
|
909
909
|
let z = x.length === 1, Z = x[0], T = x[x.length - 1];
|
|
910
910
|
d === xe ? (c.style.removeProperty("width"), c.style.removeProperty("right"), c.style.removeProperty("left"), z ? c.style.height = `${Z}%` : c.style.height = `${Math.abs(Z - T)}%`, R ? (c.style.bottom = "0%", z ? c.style.top = "auto" : c.style.top = `${Math.min(100 - T, 100 - Z)}%`) : (c.style.bottom = "auto", z ? c.style.top = "0%" : c.style.top = `${Math.min(Z, T)}%`)) : (c.style.removeProperty("height"), c.style.removeProperty("top"), c.style.removeProperty("bottom"), z ? c.style.width = `${Z}%` : c.style.width = `${Math.abs(Z - T)}%`, v ? (c.style.right = "0%", z ? c.style.left = "auto" : c.style.left = `${Math.min(100 - T, 100 - Z)}%`) : (c.style.right = "auto", z ? c.style.left = "0%" : c.style.left = `${Math.min(Z, T)}%`));
|
|
911
|
-
} }), Zi = "--animate-onclick", uo = "--width", fo = "--height", po = "--panel-bg-border-radius", go = "--panel-bg", mo = "--panel-bg-hover", yo = "--panel-bg-fill", vo = "--pointer-width", bo = "--pointer-height", xo = "--pointer-border-radius", wo = "--pointer-bg", $o = "--pointer-bg-hover", _o = "--pointer-bg-focus", Eo = "--pointer-shadow", So = "--pointer-shadow-hover", Ao = "--pointer-shadow-focus", Mo = "--pointer-border", Oo = "--pointer-border-hover", Po = "--pointer-border-focus",
|
|
911
|
+
} }), Zi = "--animate-onclick", uo = "--width", fo = "--height", po = "--panel-bg-border-radius", go = "--panel-bg", mo = "--panel-bg-hover", yo = "--panel-bg-fill", vo = "--pointer-width", bo = "--pointer-height", xo = "--pointer-border-radius", wo = "--pointer-bg", $o = "--pointer-bg-hover", _o = "--pointer-bg-focus", Eo = "--pointer-shadow", So = "--pointer-shadow-hover", Ao = "--pointer-shadow-focus", Mo = "--pointer-border", Oo = "--pointer-border-hover", Po = "--pointer-border-focus", lr = (c, d, x) => {
|
|
912
912
|
let v = /* @__PURE__ */ new Map();
|
|
913
913
|
for (let R of c.attributes) {
|
|
914
914
|
let z = R.nodeName.trim().toLowerCase();
|
|
@@ -918,7 +918,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
918
918
|
v.set(T, D);
|
|
919
919
|
}
|
|
920
920
|
return v;
|
|
921
|
-
},
|
|
921
|
+
}, Lo = (c) => {
|
|
922
922
|
if (!c)
|
|
923
923
|
return null;
|
|
924
924
|
let d = c.getAttribute(Ae);
|
|
@@ -928,7 +928,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
928
928
|
for (let R of x)
|
|
929
929
|
R.trim() !== "" && v.push(R.trim());
|
|
930
930
|
return v;
|
|
931
|
-
}, Qi = [[uo, E, "sliderWidth", null], [fo, A, "sliderHeight", null], [po, k, "sliderRadius", null], [go, F, "sliderBg", null], [mo, H, "sliderBgHover", null], [yo, I, "sliderBgFill", null], [vo, te, "pointer#Width", /^pointer([0-9]*)-width$/], [bo,
|
|
931
|
+
}, Qi = [[uo, E, "sliderWidth", null], [fo, A, "sliderHeight", null], [po, k, "sliderRadius", null], [go, F, "sliderBg", null], [mo, H, "sliderBgHover", null], [yo, I, "sliderBgFill", null], [vo, te, "pointer#Width", /^pointer([0-9]*)-width$/], [bo, le, "pointer#Height", /^pointer([0-9]*)-height$/], [xo, O, "pointer#Radius", /^pointer([0-9]*)-radius$/], [wo, P, "pointer#Bg", /^pointer([0-9]*)-bg$/], [$o, M, "pointer#BgHover", /^pointer([0-9]*)-bg-hover$/], [_o, N, "pointer#BgFocus", /^pointer([0-9]*)-bg-focus$/], [Eo, C, "pointer#Shadow", /^pointer([0-9]*)-shadow$/], [So, V, "pointer#ShadowHover", /^pointer([0-9]*)-shadow-hover$/], [Ao, U, "pointer#ShadowFocus", /^pointer([0-9]*)-shadow-focus$/], [Mo, se, "pointer#Border", /^pointer([0-9]*)-border$/], [Oo, re, "pointer#BorderHover", /^pointer([0-9]*)-border-hover$/], [Po, ye, "pointer#BorderFocus", /^pointer([0-9]*)-border-focus$/]], Co = (c, d, x) => {
|
|
932
932
|
let v = null, R = [], z = /* @__PURE__ */ new Map(), Z = (Y, ee = d) => {
|
|
933
933
|
let W = [...ee.classList];
|
|
934
934
|
for (let ue of W)
|
|
@@ -955,7 +955,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
955
955
|
R[Y] = ee, Q();
|
|
956
956
|
}, q = () => {
|
|
957
957
|
T();
|
|
958
|
-
let Y =
|
|
958
|
+
let Y = lr(c, /^pointer([0-9]*)-shape$/);
|
|
959
959
|
if (!(Y.size <= 0)) {
|
|
960
960
|
for (let ee of Y) {
|
|
961
961
|
let W = ee[0];
|
|
@@ -978,7 +978,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
978
978
|
for (let Y of Qi) {
|
|
979
979
|
let [ee, W, ue, we] = Y;
|
|
980
980
|
if (we) {
|
|
981
|
-
let pe =
|
|
981
|
+
let pe = lr(c, we);
|
|
982
982
|
for (let ge of pe) {
|
|
983
983
|
let Oe = ge[0], Pe = ge[1];
|
|
984
984
|
Te(ee, Pe, Oe);
|
|
@@ -1119,10 +1119,10 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1119
1119
|
d.$pointer.style.zIndex = (tn * 2).toString();
|
|
1120
1120
|
}
|
|
1121
1121
|
}, Br = 0, qt = 100, At = 2, sn = "0.3s", No = (c, d, x) => {
|
|
1122
|
-
let v = x.map((u) => u[0]), R = null, z = null, Z = null, T = null, D = Br, Q = qt, ne, q, ce = Me, Te = At, Ee = !1, Y = !1, ee = !1, W = 0, ue = 1 / 0, we = !1, be, pe, ge = !1, Oe = !1, Pe = !1, st = sn, on = [],
|
|
1123
|
-
ge || (u.preventDefault && u.preventDefault(), pt(u), window.addEventListener("mousemove", pt), window.addEventListener("mouseup",
|
|
1124
|
-
},
|
|
1125
|
-
ge || (be = void 0, pe = void 0, window.removeEventListener("mousemove", pt), window.removeEventListener("mouseup",
|
|
1122
|
+
let v = x.map((u) => u[0]), R = null, z = null, Z = null, T = null, D = Br, Q = qt, ne, q, ce = Me, Te = At, Ee = !1, Y = !1, ee = !1, W = 0, ue = 1 / 0, we = !1, be, pe, ge = !1, Oe = !1, Pe = !1, st = sn, on = [], ln = (u) => {
|
|
1123
|
+
ge || (u.preventDefault && u.preventDefault(), pt(u), window.addEventListener("mousemove", pt), window.addEventListener("mouseup", ar), no(c, u));
|
|
1124
|
+
}, ar = (u) => {
|
|
1125
|
+
ge || (be = void 0, pe = void 0, window.removeEventListener("mousemove", pt), window.removeEventListener("mouseup", ar), st && d.classList.add(St), so(c, u));
|
|
1126
1126
|
}, Fo = (u, _) => {
|
|
1127
1127
|
if (v.length <= 0)
|
|
1128
1128
|
return;
|
|
@@ -1130,68 +1130,68 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1130
1130
|
return v[0].isClicked(u) && st && d.classList.remove(St), v[0];
|
|
1131
1131
|
let j = qo(u);
|
|
1132
1132
|
if (we) {
|
|
1133
|
-
let
|
|
1134
|
-
Be !== void 0 && (
|
|
1133
|
+
let ae = _, Be = hr(ae);
|
|
1134
|
+
Be !== void 0 && (ae = je(ae, Be)), j ? (be = ae, pe = 0, st && d.classList.remove(St)) : be !== void 0 && (pe = ae - be, be = ae);
|
|
1135
1135
|
}
|
|
1136
1136
|
if (!Ho(u) && !j) {
|
|
1137
|
-
for (let
|
|
1138
|
-
if (!(!
|
|
1139
|
-
return st && d.classList.remove(St),
|
|
1140
|
-
for (let
|
|
1141
|
-
if (R ===
|
|
1142
|
-
return
|
|
1137
|
+
for (let ae of v)
|
|
1138
|
+
if (!(!ae.isClicked(u) || ae.disabled))
|
|
1139
|
+
return st && d.classList.remove(St), ae;
|
|
1140
|
+
for (let ae of v)
|
|
1141
|
+
if (R === ae)
|
|
1142
|
+
return ae;
|
|
1143
1143
|
}
|
|
1144
1144
|
let he = 1 / 0, me = null;
|
|
1145
|
-
for (let
|
|
1146
|
-
if (
|
|
1145
|
+
for (let ae of v) {
|
|
1146
|
+
if (ae.disabled)
|
|
1147
1147
|
continue;
|
|
1148
|
-
let Be = Math.abs(_ -
|
|
1149
|
-
Be < he && (he = Be, me =
|
|
1148
|
+
let Be = Math.abs(_ - ae.percent);
|
|
1149
|
+
Be < he && (he = Be, me = ae);
|
|
1150
1150
|
}
|
|
1151
1151
|
return me;
|
|
1152
|
-
},
|
|
1152
|
+
}, an = () => v.findIndex((u) => R === u && !u.disabled), pt = (u) => {
|
|
1153
1153
|
let _;
|
|
1154
1154
|
if (ce === xe) {
|
|
1155
|
-
let { height: he, top: me } = d.getBoundingClientRect(),
|
|
1156
|
-
_ = Math.min(Math.max(0,
|
|
1155
|
+
let { height: he, top: me } = d.getBoundingClientRect(), ae = u.type.indexOf("mouse") !== -1 ? u.clientY : u.touches[0].clientY;
|
|
1156
|
+
_ = Math.min(Math.max(0, ae - me), he) * 100 / he;
|
|
1157
1157
|
} else {
|
|
1158
|
-
let { width: he, left: me } = d.getBoundingClientRect(),
|
|
1159
|
-
_ = Math.min(Math.max(0,
|
|
1158
|
+
let { width: he, left: me } = d.getBoundingClientRect(), ae = u.type.indexOf("mouse") !== -1 ? u.clientX : u.touches[0].clientX;
|
|
1159
|
+
_ = Math.min(Math.max(0, ae - me), he) * 100 / he;
|
|
1160
1160
|
}
|
|
1161
1161
|
if ((Ee || Y) && (_ = 100 - _), R = Fo(u.target, _), R && Do(v, R), we && v.length > 1 && pe !== void 0) {
|
|
1162
|
-
let he = v[0], me = v[v.length - 1],
|
|
1163
|
-
if (
|
|
1162
|
+
let he = v[0], me = v[v.length - 1], ae = he.percent + pe < 0, Be = me.percent + pe > 100;
|
|
1163
|
+
if (ae || Be)
|
|
1164
1164
|
return;
|
|
1165
1165
|
for (let vr = 0; vr < v.length; vr++)
|
|
1166
|
-
|
|
1166
|
+
Le(vr, v[vr].percent + pe);
|
|
1167
1167
|
return;
|
|
1168
1168
|
}
|
|
1169
|
-
let j =
|
|
1170
|
-
j !== -1 && (
|
|
1169
|
+
let j = an();
|
|
1170
|
+
j !== -1 && (Le(j, _), R == null || R.$pointer.focus());
|
|
1171
1171
|
}, cr = (u) => {
|
|
1172
1172
|
if (ge || document.activeElement !== c || R != null && R.disabled)
|
|
1173
1173
|
return;
|
|
1174
1174
|
u.stopPropagation(), u.preventDefault();
|
|
1175
|
-
let _ = u.deltaY < 0, j = Ee || Y, he = _ ? !j : j, me =
|
|
1175
|
+
let _ = u.deltaY < 0, j = Ee || Y, he = _ ? !j : j, me = an();
|
|
1176
1176
|
me !== -1 && (he ? Ut(me, v[me].percent) : zt(me, v[me].percent));
|
|
1177
1177
|
}, cn = (u) => {
|
|
1178
|
-
ge || Oe || (ce === xe ? Y ?
|
|
1178
|
+
ge || Oe || (ce === xe ? Y ? Le(u, 100) : Le(u, 0) : Ee ? zt(u, v[u].percent) : Ut(u, v[u].percent));
|
|
1179
1179
|
}, hn = (u) => {
|
|
1180
|
-
ge || Oe || (ce === xe ? Y ?
|
|
1180
|
+
ge || Oe || (ce === xe ? Y ? Le(u, 0) : Le(u, 100) : Ee ? Ut(u, v[u].percent) : zt(u, v[u].percent));
|
|
1181
1181
|
}, un = (u) => {
|
|
1182
|
-
ge || Oe || (ce === xe ? Y ? zt(u, v[u].percent) : Ut(u, v[u].percent) : Ee ?
|
|
1182
|
+
ge || Oe || (ce === xe ? Y ? zt(u, v[u].percent) : Ut(u, v[u].percent) : Ee ? Le(u, 100) : Le(u, 0));
|
|
1183
1183
|
}, dn = (u) => {
|
|
1184
|
-
ge || Oe || (ce === xe ? Y ? Ut(u, v[u].percent) : zt(u, v[u].percent) : Ee ?
|
|
1184
|
+
ge || Oe || (ce === xe ? Y ? Ut(u, v[u].percent) : zt(u, v[u].percent) : Ee ? Le(u, 0) : Le(u, 100));
|
|
1185
1185
|
}, Ho = (u) => u.classList.contains("panel"), qo = (u) => u.classList.contains("panel-fill"), Ut = (u, _) => {
|
|
1186
1186
|
if (_ === void 0)
|
|
1187
1187
|
return;
|
|
1188
1188
|
let j = hr(_);
|
|
1189
|
-
j == null && (j = 1), _ -= j, _ < 0 && (_ = 0),
|
|
1189
|
+
j == null && (j = 1), _ -= j, _ < 0 && (_ = 0), Le(u, _);
|
|
1190
1190
|
}, zt = (u, _) => {
|
|
1191
1191
|
if (_ === void 0)
|
|
1192
1192
|
return;
|
|
1193
1193
|
let j = hr(_);
|
|
1194
|
-
j == null && (j = 1), _ += j, _ > 100 && (_ = 100),
|
|
1194
|
+
j == null && (j = 1), _ += j, _ > 100 && (_ = 100), Le(u, _);
|
|
1195
1195
|
}, gt = () => {
|
|
1196
1196
|
!T || T.update({ percents: fn(), values: pn(), $pointers: gn(), min: mn(), max: yn(), data: qr(), step: Hr(), round: zr(), type: Ur(), textMin: ur(), textMax: dr(), rightToLeft: Xr(), bottomToTop: Vr(), pointersOverlap: Zr(), pointersMinDistance: Yr(), pointersMaxDistance: Wr(), rangeDragging: Qr(), disabled: Kr(), keyboardDisabled: Gr(), mousewheelDisabled: Jr() });
|
|
1197
1197
|
}, Uo = () => {
|
|
@@ -1236,7 +1236,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1236
1236
|
}, Xo = (u) => {
|
|
1237
1237
|
var _;
|
|
1238
1238
|
return v.length <= 1 || u >= v.length - 1 || ee ? dr() : (_ = Mt(v[u + 1].percent)) != null ? _ : "";
|
|
1239
|
-
}, fn = () => v.map((u) => u.percent), pn = () => v.map((u) => Mt(u.percent)), gn = () => v.map((u) => u.$pointer), mn = () => D, yn = () => Q, qr = () => q, Ur = () => ce, zr = () => Te, Yr = () => W, Wr = () => ue, Vo = (u) => on[u], Xr = () => Ee, Vr = () => Y, Kr = () => ge, Gr = () => Oe, Jr = () => Pe, Zr = () => ee, Qr = () => we,
|
|
1239
|
+
}, fn = () => v.map((u) => u.percent), pn = () => v.map((u) => Mt(u.percent)), gn = () => v.map((u) => u.$pointer), mn = () => D, yn = () => Q, qr = () => q, Ur = () => ce, zr = () => Te, Yr = () => W, Wr = () => ue, Vo = (u) => on[u], Xr = () => Ee, Vr = () => Y, Kr = () => ge, Gr = () => Oe, Jr = () => Pe, Zr = () => ee, Qr = () => we, Le = (u, _) => {
|
|
1240
1240
|
if (_ === void 0)
|
|
1241
1241
|
return;
|
|
1242
1242
|
let j = hr(_);
|
|
@@ -1245,15 +1245,15 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1245
1245
|
if (!he)
|
|
1246
1246
|
return;
|
|
1247
1247
|
let me = he.updatePosition(_, zo(u), Yo(u), ce, Ee, Y);
|
|
1248
|
-
z == null || z.updatePosition(ce, v.map((
|
|
1249
|
-
for (let
|
|
1250
|
-
let Be = Mt(
|
|
1251
|
-
Be !== void 0 && (
|
|
1248
|
+
z == null || z.updatePosition(ce, v.map((ae) => ae.percent), Ee, Y), gt();
|
|
1249
|
+
for (let ae of v) {
|
|
1250
|
+
let Be = Mt(ae.percent);
|
|
1251
|
+
Be !== void 0 && (ae.setAttr("aria-valuenow", Be.toString()), ae.setAttr("aria-valuetext", Be.toString()));
|
|
1252
1252
|
}
|
|
1253
|
-
Go(), me &&
|
|
1253
|
+
Go(), me && lo(c, v.map((ae) => Mt(ae.percent)));
|
|
1254
1254
|
}, qe = () => {
|
|
1255
1255
|
for (let u = 0; u < v.length; u++)
|
|
1256
|
-
|
|
1256
|
+
Le(u, v[u].percent);
|
|
1257
1257
|
}, Ko = (u, _) => {
|
|
1258
1258
|
D = q !== void 0 ? 0 : ie(u, Br), Q = q !== void 0 ? q.length - 1 : ie(_, qt), fr(D), pr(Q);
|
|
1259
1259
|
}, Go = () => {
|
|
@@ -1277,7 +1277,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1277
1277
|
let j;
|
|
1278
1278
|
q !== void 0 ? (j = u == null ? 0 : co(u, q), j === -1 && (j = 0)) : (j = ie(u, D), j < D && (j = D), j > Q && (j = Q));
|
|
1279
1279
|
let he = Je(D, Q, 0, 100, j);
|
|
1280
|
-
|
|
1280
|
+
Le(_, he);
|
|
1281
1281
|
}, mr = (u) => {
|
|
1282
1282
|
if (u == null) {
|
|
1283
1283
|
ne = void 0;
|
|
@@ -1311,7 +1311,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1311
1311
|
q = void 0;
|
|
1312
1312
|
return;
|
|
1313
1313
|
}
|
|
1314
|
-
if (q =
|
|
1314
|
+
if (q = ao(u), q === void 0 || q.length <= 0) {
|
|
1315
1315
|
q = void 0;
|
|
1316
1316
|
return;
|
|
1317
1317
|
}
|
|
@@ -1328,9 +1328,9 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1328
1328
|
me.setAttr("aria-orientation", he);
|
|
1329
1329
|
}, oi = (u) => {
|
|
1330
1330
|
Ee = u, v.length > 1 && nn(v, Ee, c), qe(), gt();
|
|
1331
|
-
}, ai = (u) => {
|
|
1332
|
-
Y = u, v.length > 1 && nn(v, Y, c), qe(), gt();
|
|
1333
1331
|
}, li = (u) => {
|
|
1332
|
+
Y = u, v.length > 1 && nn(v, Y, c), qe(), gt();
|
|
1333
|
+
}, ai = (u) => {
|
|
1334
1334
|
Te = ie(u, At), Te < 0 && (Te = At), gt();
|
|
1335
1335
|
}, wn = (u) => {
|
|
1336
1336
|
u == null || u.toString().trim().toLowerCase() === "false" ? (st = void 0, d.style.removeProperty(Zi), d.classList.remove(St)) : (st = u.toString(), d.style.setProperty(Zi, st), d.classList.add(St));
|
|
@@ -1344,14 +1344,14 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
we = u, d.classList.toggle(en, we);
|
|
1346
1346
|
}, Jo = () => {
|
|
1347
|
-
ii(
|
|
1348
|
-
let u =
|
|
1347
|
+
ii(fe(c.getAttribute(m))), Oe = fe(c.getAttribute(w)), Pe = fe(c.getAttribute(S));
|
|
1348
|
+
let u = lr(c, /^pointer([0-9]*)-disabled$/, (_) => fe(_));
|
|
1349
1349
|
for (let _ of u) {
|
|
1350
1350
|
let j = _[0];
|
|
1351
1351
|
!v[j] || (v[j].disabled = _[1]);
|
|
1352
1352
|
}
|
|
1353
1353
|
}, Zo = () => {
|
|
1354
|
-
let u =
|
|
1354
|
+
let u = lr(c, /^aria-label([0-9]*)$/);
|
|
1355
1355
|
for (let _ of u) {
|
|
1356
1356
|
let j = _[0];
|
|
1357
1357
|
$n(j, _[1]);
|
|
@@ -1361,7 +1361,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1361
1361
|
j.after(he);
|
|
1362
1362
|
let me = jr(c, he, _);
|
|
1363
1363
|
return me.setCallbacks(cn, hn, un, dn), v.push(me), gr(u, _), qe(), gt(), _;
|
|
1364
|
-
},
|
|
1364
|
+
}, el = () => {
|
|
1365
1365
|
let u = v.length, _ = v[u - 1];
|
|
1366
1366
|
return _ ? (_.destroy(), v.pop(), v.length <= 1 && yr(!1), qe(), gt(), u - 1) : -1;
|
|
1367
1367
|
};
|
|
@@ -1370,7 +1370,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1370
1370
|
for (let he of v)
|
|
1371
1371
|
he.setCallbacks(cn, hn, un, dn);
|
|
1372
1372
|
let j = (u = c.shadowRoot) == null ? void 0 : u.querySelector(".panel-fill");
|
|
1373
|
-
j && (z = ho(j)), si(c.getAttribute(
|
|
1373
|
+
j && (z = ho(j)), si(c.getAttribute(L)), oi(fe(c.getAttribute(B))), li(fe(c.getAttribute(g))), Ko(c.getAttribute(p), c.getAttribute(b)), mr(c.getAttribute(y)), ni(c.getAttribute(f)), vn(x.map((he) => he[1])), ei(fe(c.getAttribute(o))), ti(ie(c.getAttribute(a), 0)), ri(ie(c.getAttribute(l), 1 / 0)), yr(fe(c.getAttribute(h))), ai(ie(c.getAttribute($), At)), Jo(), Zo(), Z = Co(c, d, v), wn((_ = c.getAttribute(ve)) != null ? _ : sn), d.addEventListener("mousedown", ln), d.addEventListener("mouseup", ar), d.addEventListener("touchmove", pt), d.addEventListener("touchstart", pt), Pe || document.addEventListener("wheel", cr, { passive: !1 }), T = ko(c, Uo, { setValues: vn, setMin: fr, setMax: pr, setStep: mr, setPointersOverlap: ei, setPointersMinDistance: ti, setPointersMaxDistance: ri, setDisabled: ii, setType: si, setRightToLeft: oi, setBottomToTop: li, setRound: ai, setKeyboardDisabled: bn, setMousewheelDisabled: xn, setRangeDragging: yr, setData: ni }, { getPercents: fn, getValues: pn, getPointerElements: gn, getMin: mn, getMax: yn, getStep: Hr, getData: qr, getType: Ur, getRound: zr, getTextMin: ur, getTextMax: dr, isRightToLeft: Xr, isBottomToTop: Vr, isDisabled: Kr, isKeyboardDisabled: Gr, isMousewheelDisabled: Jr, isPointersOverlap: Zr, isRangeDraggingEnabled: Qr, getPointersMinDistance: Yr, getPointersMaxDistance: Wr }), T.init();
|
|
1374
1374
|
})(), { get pointers() {
|
|
1375
1375
|
return v;
|
|
1376
1376
|
}, get styles() {
|
|
@@ -1412,11 +1412,11 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1412
1412
|
}, get bottomToTop() {
|
|
1413
1413
|
return Vr();
|
|
1414
1414
|
}, set bottomToTop(u) {
|
|
1415
|
-
|
|
1415
|
+
li(u);
|
|
1416
1416
|
}, get round() {
|
|
1417
1417
|
return zr();
|
|
1418
1418
|
}, set round(u) {
|
|
1419
|
-
|
|
1419
|
+
ai(u);
|
|
1420
1420
|
}, get animateOnClick() {
|
|
1421
1421
|
return st;
|
|
1422
1422
|
}, set animateOnClick(u) {
|
|
@@ -1433,8 +1433,8 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1433
1433
|
return Qr();
|
|
1434
1434
|
}, set rangeDragging(u) {
|
|
1435
1435
|
yr(u);
|
|
1436
|
-
}, setMin: fr, setMax: pr, setValue: gr, setStep: mr, setData: ni, getTextValue: Mt, setAriaLabel: $n, getAriaLabel: Vo, addPointer: Qo, removePointer:
|
|
1437
|
-
d.removeEventListener("mousedown",
|
|
1436
|
+
}, setMin: fr, setMax: pr, setValue: gr, setStep: mr, setData: ni, getTextValue: Mt, setAriaLabel: $n, getAriaLabel: Vo, addPointer: Qo, removePointer: el, destroy: () => {
|
|
1437
|
+
d.removeEventListener("mousedown", ln), d.removeEventListener("mouseup", ar), d.removeEventListener("touchmove", pt), d.removeEventListener("touchstart", pt), document.removeEventListener("wheel", cr);
|
|
1438
1438
|
for (let u of v)
|
|
1439
1439
|
u.destroy();
|
|
1440
1440
|
T == null || T.destroy();
|
|
@@ -1460,47 +1460,47 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1460
1460
|
break;
|
|
1461
1461
|
}
|
|
1462
1462
|
case o: {
|
|
1463
|
-
c.pointersOverlap =
|
|
1463
|
+
c.pointersOverlap = fe(x);
|
|
1464
1464
|
break;
|
|
1465
1465
|
}
|
|
1466
|
-
case
|
|
1466
|
+
case a: {
|
|
1467
1467
|
c.pointersMinDistance = ie(x, 0);
|
|
1468
1468
|
break;
|
|
1469
1469
|
}
|
|
1470
1470
|
case h: {
|
|
1471
|
-
c.rangeDragging =
|
|
1471
|
+
c.rangeDragging = fe(x);
|
|
1472
1472
|
break;
|
|
1473
1473
|
}
|
|
1474
|
-
case
|
|
1474
|
+
case l: {
|
|
1475
1475
|
c.pointersMaxDistance = ie(x, 1 / 0);
|
|
1476
1476
|
break;
|
|
1477
1477
|
}
|
|
1478
1478
|
case m: {
|
|
1479
|
-
c.disabled =
|
|
1479
|
+
c.disabled = fe(x);
|
|
1480
1480
|
break;
|
|
1481
1481
|
}
|
|
1482
1482
|
case w: {
|
|
1483
|
-
c.keyboardDisabled =
|
|
1483
|
+
c.keyboardDisabled = fe(x);
|
|
1484
1484
|
break;
|
|
1485
1485
|
}
|
|
1486
1486
|
case S: {
|
|
1487
|
-
c.mousewheelDisabled =
|
|
1487
|
+
c.mousewheelDisabled = fe(x);
|
|
1488
1488
|
break;
|
|
1489
1489
|
}
|
|
1490
1490
|
case f: {
|
|
1491
1491
|
c.setData(x);
|
|
1492
1492
|
break;
|
|
1493
1493
|
}
|
|
1494
|
-
case
|
|
1494
|
+
case L: {
|
|
1495
1495
|
c.type = x;
|
|
1496
1496
|
break;
|
|
1497
1497
|
}
|
|
1498
1498
|
case B: {
|
|
1499
|
-
c.rightToLeft =
|
|
1499
|
+
c.rightToLeft = fe(x);
|
|
1500
1500
|
break;
|
|
1501
1501
|
}
|
|
1502
1502
|
case g: {
|
|
1503
|
-
c.bottomToTop =
|
|
1503
|
+
c.bottomToTop = fe(x);
|
|
1504
1504
|
break;
|
|
1505
1505
|
}
|
|
1506
1506
|
case $: {
|
|
@@ -1529,7 +1529,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1529
1529
|
let T = c == null ? void 0 : c.pointers[Z];
|
|
1530
1530
|
if (!T)
|
|
1531
1531
|
return;
|
|
1532
|
-
T.disabled =
|
|
1532
|
+
T.disabled = fe(x);
|
|
1533
1533
|
break;
|
|
1534
1534
|
}
|
|
1535
1535
|
case "aria-label": {
|
|
@@ -1665,7 +1665,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1665
1665
|
return (d = (c = this.slider) == null ? void 0 : c.rangeDragging) != null ? d : !1;
|
|
1666
1666
|
}
|
|
1667
1667
|
set rangeDragging(c) {
|
|
1668
|
-
this.slider && (this.slider.rangeDragging =
|
|
1668
|
+
this.slider && (this.slider.rangeDragging = fe(c));
|
|
1669
1669
|
}
|
|
1670
1670
|
get externalCSSList() {
|
|
1671
1671
|
return this._externalCSSList;
|
|
@@ -1691,7 +1691,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1691
1691
|
var c, d;
|
|
1692
1692
|
if (!this.shadowRoot)
|
|
1693
1693
|
return;
|
|
1694
|
-
this._externalCSSList =
|
|
1694
|
+
this._externalCSSList = Lo(this), this.shadowRoot.innerHTML = n(s, this._externalCSSList);
|
|
1695
1695
|
let x = (c = this.shadowRoot) == null ? void 0 : c.querySelector(".pointer");
|
|
1696
1696
|
if (!x)
|
|
1697
1697
|
return;
|
|
@@ -1716,7 +1716,7 @@ const ys = Symbol.for(""), wa = (t) => {
|
|
|
1716
1716
|
window.tcRangeSlider = Fr, customElements.get("toolcool-range-slider") || customElements.define("toolcool-range-slider", Fr), customElements.get("tc-range-slider") || customElements.define("tc-range-slider", class extends Fr {
|
|
1717
1717
|
});
|
|
1718
1718
|
})();
|
|
1719
|
-
var
|
|
1719
|
+
var Ct = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1720
1720
|
function Ti(t) {
|
|
1721
1721
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1722
1722
|
}
|
|
@@ -1745,25 +1745,25 @@ var vs = { exports: {} };
|
|
|
1745
1745
|
(function(t, e) {
|
|
1746
1746
|
(function(r, i) {
|
|
1747
1747
|
t.exports = i();
|
|
1748
|
-
})(
|
|
1749
|
-
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", o = "second",
|
|
1748
|
+
})(Ct, function() {
|
|
1749
|
+
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", o = "second", a = "minute", l = "hour", h = "day", f = "week", p = "month", b = "quarter", y = "year", $ = "date", L = "Invalid Date", G = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|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, g = { 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(O) {
|
|
1750
1750
|
var P = ["th", "st", "nd", "rd"], M = O % 100;
|
|
1751
1751
|
return "[" + O + (P[(M - 20) % 10] || P[M] || P[0]) + "]";
|
|
1752
1752
|
} }, m = function(O, P, M) {
|
|
1753
1753
|
var N = String(O);
|
|
1754
1754
|
return !N || N.length >= P ? O : "" + Array(P + 1 - N.length).join(M) + O;
|
|
1755
1755
|
}, w = { s: m, z: function(O) {
|
|
1756
|
-
var P = -O.utcOffset(), M = Math.abs(P), N = Math.floor(M / 60),
|
|
1757
|
-
return (P <= 0 ? "+" : "-") + m(N, 2, "0") + ":" + m(
|
|
1756
|
+
var P = -O.utcOffset(), M = Math.abs(P), N = Math.floor(M / 60), C = M % 60;
|
|
1757
|
+
return (P <= 0 ? "+" : "-") + m(N, 2, "0") + ":" + m(C, 2, "0");
|
|
1758
1758
|
}, m: function O(P, M) {
|
|
1759
1759
|
if (P.date() < M.date())
|
|
1760
1760
|
return -O(M, P);
|
|
1761
|
-
var N = 12 * (M.year() - P.year()) + (M.month() - P.month()),
|
|
1762
|
-
return +(-(N + (M -
|
|
1761
|
+
var N = 12 * (M.year() - P.year()) + (M.month() - P.month()), C = P.clone().add(N, p), V = M - C < 0, U = P.clone().add(N + (V ? -1 : 1), p);
|
|
1762
|
+
return +(-(N + (M - C) / (V ? C - U : U - C)) || 0);
|
|
1763
1763
|
}, a: function(O) {
|
|
1764
1764
|
return O < 0 ? Math.ceil(O) || 0 : Math.floor(O);
|
|
1765
1765
|
}, p: function(O) {
|
|
1766
|
-
return { M: p, y, w: f, d: h, D: $, h:
|
|
1766
|
+
return { M: p, y, w: f, d: h, D: $, h: l, m: a, s: o, ms: s, Q: b }[O] || String(O || "").toLowerCase().replace(/s$/, "");
|
|
1767
1767
|
}, u: function(O) {
|
|
1768
1768
|
return O === void 0;
|
|
1769
1769
|
} }, S = "en", E = {};
|
|
@@ -1771,20 +1771,20 @@ var vs = { exports: {} };
|
|
|
1771
1771
|
var A = "$isDayjsObject", k = function(O) {
|
|
1772
1772
|
return O instanceof te || !(!O || !O[A]);
|
|
1773
1773
|
}, F = function O(P, M, N) {
|
|
1774
|
-
var
|
|
1774
|
+
var C;
|
|
1775
1775
|
if (!P)
|
|
1776
1776
|
return S;
|
|
1777
1777
|
if (typeof P == "string") {
|
|
1778
|
-
var
|
|
1779
|
-
E[
|
|
1778
|
+
var V = P.toLowerCase();
|
|
1779
|
+
E[V] && (C = V), M && (E[V] = M, C = V);
|
|
1780
1780
|
var U = P.split("-");
|
|
1781
|
-
if (!
|
|
1781
|
+
if (!C && U.length > 1)
|
|
1782
1782
|
return O(U[0]);
|
|
1783
1783
|
} else {
|
|
1784
1784
|
var se = P.name;
|
|
1785
|
-
E[se] = P,
|
|
1785
|
+
E[se] = P, C = se;
|
|
1786
1786
|
}
|
|
1787
|
-
return !N &&
|
|
1787
|
+
return !N && C && (S = C), C || !N && S;
|
|
1788
1788
|
}, H = function(O, P) {
|
|
1789
1789
|
if (k(O))
|
|
1790
1790
|
return O.clone();
|
|
@@ -1801,21 +1801,21 @@ var vs = { exports: {} };
|
|
|
1801
1801
|
var P = O.prototype;
|
|
1802
1802
|
return P.parse = function(M) {
|
|
1803
1803
|
this.$d = function(N) {
|
|
1804
|
-
var
|
|
1805
|
-
if (
|
|
1804
|
+
var C = N.date, V = N.utc;
|
|
1805
|
+
if (C === null)
|
|
1806
1806
|
return /* @__PURE__ */ new Date(NaN);
|
|
1807
|
-
if (I.u(
|
|
1807
|
+
if (I.u(C))
|
|
1808
1808
|
return /* @__PURE__ */ new Date();
|
|
1809
|
-
if (
|
|
1810
|
-
return new Date(
|
|
1811
|
-
if (typeof
|
|
1812
|
-
var U =
|
|
1809
|
+
if (C instanceof Date)
|
|
1810
|
+
return new Date(C);
|
|
1811
|
+
if (typeof C == "string" && !/Z$/i.test(C)) {
|
|
1812
|
+
var U = C.match(G);
|
|
1813
1813
|
if (U) {
|
|
1814
1814
|
var se = U[2] - 1 || 0, re = (U[7] || "0").substring(0, 3);
|
|
1815
|
-
return
|
|
1815
|
+
return V ? new Date(Date.UTC(U[1], se, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, re)) : new Date(U[1], se, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, re);
|
|
1816
1816
|
}
|
|
1817
1817
|
}
|
|
1818
|
-
return new Date(
|
|
1818
|
+
return new Date(C);
|
|
1819
1819
|
}(M), this.init();
|
|
1820
1820
|
}, P.init = function() {
|
|
1821
1821
|
var M = this.$d;
|
|
@@ -1823,41 +1823,41 @@ var vs = { exports: {} };
|
|
|
1823
1823
|
}, P.$utils = function() {
|
|
1824
1824
|
return I;
|
|
1825
1825
|
}, P.isValid = function() {
|
|
1826
|
-
return this.$d.toString() !==
|
|
1826
|
+
return this.$d.toString() !== L;
|
|
1827
1827
|
}, P.isSame = function(M, N) {
|
|
1828
|
-
var
|
|
1829
|
-
return this.startOf(N) <=
|
|
1828
|
+
var C = H(M);
|
|
1829
|
+
return this.startOf(N) <= C && C <= this.endOf(N);
|
|
1830
1830
|
}, P.isAfter = function(M, N) {
|
|
1831
1831
|
return H(M) < this.startOf(N);
|
|
1832
1832
|
}, P.isBefore = function(M, N) {
|
|
1833
1833
|
return this.endOf(N) < H(M);
|
|
1834
|
-
}, P.$g = function(M, N,
|
|
1835
|
-
return I.u(M) ? this[N] : this.set(
|
|
1834
|
+
}, P.$g = function(M, N, C) {
|
|
1835
|
+
return I.u(M) ? this[N] : this.set(C, M);
|
|
1836
1836
|
}, P.unix = function() {
|
|
1837
1837
|
return Math.floor(this.valueOf() / 1e3);
|
|
1838
1838
|
}, P.valueOf = function() {
|
|
1839
1839
|
return this.$d.getTime();
|
|
1840
1840
|
}, P.startOf = function(M, N) {
|
|
1841
|
-
var
|
|
1842
|
-
var je = I.w(
|
|
1843
|
-
return
|
|
1841
|
+
var C = this, V = !!I.u(N) || N, U = I.p(M), se = function($e, ie) {
|
|
1842
|
+
var je = I.w(C.$u ? Date.UTC(C.$y, ie, $e) : new Date(C.$y, ie, $e), C);
|
|
1843
|
+
return V ? je : je.endOf(h);
|
|
1844
1844
|
}, re = function($e, ie) {
|
|
1845
|
-
return I.w(
|
|
1845
|
+
return I.w(C.toDate()[$e].apply(C.toDate("s"), (V ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), C);
|
|
1846
1846
|
}, ye = this.$W, ve = this.$M, Ae = this.$D, xe = "set" + (this.$u ? "UTC" : "");
|
|
1847
1847
|
switch (U) {
|
|
1848
1848
|
case y:
|
|
1849
|
-
return
|
|
1849
|
+
return V ? se(1, 0) : se(31, 11);
|
|
1850
1850
|
case p:
|
|
1851
|
-
return
|
|
1851
|
+
return V ? se(1, ve) : se(0, ve + 1);
|
|
1852
1852
|
case f:
|
|
1853
1853
|
var Me = this.$locale().weekStart || 0, Je = (ye < Me ? ye + 7 : ye) - Me;
|
|
1854
|
-
return se(
|
|
1854
|
+
return se(V ? Ae - Je : Ae + (6 - Je), ve);
|
|
1855
1855
|
case h:
|
|
1856
1856
|
case $:
|
|
1857
1857
|
return re(xe + "Hours", 0);
|
|
1858
|
-
case a:
|
|
1859
|
-
return re(xe + "Minutes", 1);
|
|
1860
1858
|
case l:
|
|
1859
|
+
return re(xe + "Minutes", 1);
|
|
1860
|
+
case a:
|
|
1861
1861
|
return re(xe + "Seconds", 2);
|
|
1862
1862
|
case o:
|
|
1863
1863
|
return re(xe + "Milliseconds", 3);
|
|
@@ -1867,8 +1867,8 @@ var vs = { exports: {} };
|
|
|
1867
1867
|
}, P.endOf = function(M) {
|
|
1868
1868
|
return this.startOf(M, !1);
|
|
1869
1869
|
}, P.$set = function(M, N) {
|
|
1870
|
-
var
|
|
1871
|
-
if (
|
|
1870
|
+
var C, V = I.p(M), U = "set" + (this.$u ? "UTC" : ""), se = (C = {}, C[h] = U + "Date", C[$] = U + "Date", C[p] = U + "Month", C[y] = U + "FullYear", C[l] = U + "Hours", C[a] = U + "Minutes", C[o] = U + "Seconds", C[s] = U + "Milliseconds", C)[V], re = V === h ? this.$D + (N - this.$W) : N;
|
|
1871
|
+
if (V === p || V === y) {
|
|
1872
1872
|
var ye = this.clone().set($, 1);
|
|
1873
1873
|
ye.$d[se](re), ye.init(), this.$d = ye.set($, Math.min(this.$D, ye.daysInMonth())).$d;
|
|
1874
1874
|
} else
|
|
@@ -1879,11 +1879,11 @@ var vs = { exports: {} };
|
|
|
1879
1879
|
}, P.get = function(M) {
|
|
1880
1880
|
return this[I.p(M)]();
|
|
1881
1881
|
}, P.add = function(M, N) {
|
|
1882
|
-
var
|
|
1882
|
+
var C, V = this;
|
|
1883
1883
|
M = Number(M);
|
|
1884
1884
|
var U = I.p(N), se = function(ve) {
|
|
1885
|
-
var Ae = H(
|
|
1886
|
-
return I.w(Ae.date(Ae.date() + Math.round(ve * M)),
|
|
1885
|
+
var Ae = H(V);
|
|
1886
|
+
return I.w(Ae.date(Ae.date() + Math.round(ve * M)), V);
|
|
1887
1887
|
};
|
|
1888
1888
|
if (U === p)
|
|
1889
1889
|
return this.set(p, this.$M + M);
|
|
@@ -1893,23 +1893,23 @@ var vs = { exports: {} };
|
|
|
1893
1893
|
return se(1);
|
|
1894
1894
|
if (U === f)
|
|
1895
1895
|
return se(7);
|
|
1896
|
-
var re = (
|
|
1896
|
+
var re = (C = {}, C[a] = i, C[l] = n, C[o] = r, C)[U] || 1, ye = this.$d.getTime() + M * re;
|
|
1897
1897
|
return I.w(ye, this);
|
|
1898
1898
|
}, P.subtract = function(M, N) {
|
|
1899
1899
|
return this.add(-1 * M, N);
|
|
1900
1900
|
}, P.format = function(M) {
|
|
1901
|
-
var N = this,
|
|
1901
|
+
var N = this, C = this.$locale();
|
|
1902
1902
|
if (!this.isValid())
|
|
1903
|
-
return
|
|
1904
|
-
var
|
|
1905
|
-
return ie && (ie[je] || ie(N,
|
|
1903
|
+
return C.invalidDate || L;
|
|
1904
|
+
var V = M || "YYYY-MM-DDTHH:mm:ssZ", U = I.z(this), se = this.$H, re = this.$m, ye = this.$M, ve = C.weekdays, Ae = C.months, xe = C.meridiem, Me = function(ie, je, ft, fe) {
|
|
1905
|
+
return ie && (ie[je] || ie(N, V)) || ft[je].slice(0, fe);
|
|
1906
1906
|
}, Je = function(ie) {
|
|
1907
1907
|
return I.s(se % 12 || 12, ie, "0");
|
|
1908
1908
|
}, $e = xe || function(ie, je, ft) {
|
|
1909
|
-
var
|
|
1910
|
-
return ft ?
|
|
1909
|
+
var fe = ie < 12 ? "AM" : "PM";
|
|
1910
|
+
return ft ? fe.toLowerCase() : fe;
|
|
1911
1911
|
};
|
|
1912
|
-
return
|
|
1912
|
+
return V.replace(B, function(ie, je) {
|
|
1913
1913
|
return je || function(ft) {
|
|
1914
1914
|
switch (ft) {
|
|
1915
1915
|
case "YY":
|
|
@@ -1921,7 +1921,7 @@ var vs = { exports: {} };
|
|
|
1921
1921
|
case "MM":
|
|
1922
1922
|
return I.s(ye + 1, 2, "0");
|
|
1923
1923
|
case "MMM":
|
|
1924
|
-
return Me(
|
|
1924
|
+
return Me(C.monthsShort, ye, Ae, 3);
|
|
1925
1925
|
case "MMMM":
|
|
1926
1926
|
return Me(Ae, ye);
|
|
1927
1927
|
case "D":
|
|
@@ -1931,9 +1931,9 @@ var vs = { exports: {} };
|
|
|
1931
1931
|
case "d":
|
|
1932
1932
|
return String(N.$W);
|
|
1933
1933
|
case "dd":
|
|
1934
|
-
return Me(
|
|
1934
|
+
return Me(C.weekdaysMin, N.$W, ve, 2);
|
|
1935
1935
|
case "ddd":
|
|
1936
|
-
return Me(
|
|
1936
|
+
return Me(C.weekdaysShort, N.$W, ve, 3);
|
|
1937
1937
|
case "dddd":
|
|
1938
1938
|
return ve[N.$W];
|
|
1939
1939
|
case "H":
|
|
@@ -1966,39 +1966,39 @@ var vs = { exports: {} };
|
|
|
1966
1966
|
});
|
|
1967
1967
|
}, P.utcOffset = function() {
|
|
1968
1968
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1969
|
-
}, P.diff = function(M, N,
|
|
1970
|
-
var
|
|
1969
|
+
}, P.diff = function(M, N, C) {
|
|
1970
|
+
var V, U = this, se = I.p(N), re = H(M), ye = (re.utcOffset() - this.utcOffset()) * i, ve = this - re, Ae = function() {
|
|
1971
1971
|
return I.m(U, re);
|
|
1972
1972
|
};
|
|
1973
1973
|
switch (se) {
|
|
1974
1974
|
case y:
|
|
1975
|
-
|
|
1975
|
+
V = Ae() / 12;
|
|
1976
1976
|
break;
|
|
1977
1977
|
case p:
|
|
1978
|
-
|
|
1978
|
+
V = Ae();
|
|
1979
1979
|
break;
|
|
1980
1980
|
case b:
|
|
1981
|
-
|
|
1981
|
+
V = Ae() / 3;
|
|
1982
1982
|
break;
|
|
1983
1983
|
case f:
|
|
1984
|
-
|
|
1984
|
+
V = (ve - ye) / 6048e5;
|
|
1985
1985
|
break;
|
|
1986
1986
|
case h:
|
|
1987
|
-
|
|
1988
|
-
break;
|
|
1989
|
-
case a:
|
|
1990
|
-
X = ve / n;
|
|
1987
|
+
V = (ve - ye) / 864e5;
|
|
1991
1988
|
break;
|
|
1992
1989
|
case l:
|
|
1993
|
-
|
|
1990
|
+
V = ve / n;
|
|
1991
|
+
break;
|
|
1992
|
+
case a:
|
|
1993
|
+
V = ve / i;
|
|
1994
1994
|
break;
|
|
1995
1995
|
case o:
|
|
1996
|
-
|
|
1996
|
+
V = ve / r;
|
|
1997
1997
|
break;
|
|
1998
1998
|
default:
|
|
1999
|
-
|
|
1999
|
+
V = ve;
|
|
2000
2000
|
}
|
|
2001
|
-
return
|
|
2001
|
+
return C ? V : I.a(V);
|
|
2002
2002
|
}, P.daysInMonth = function() {
|
|
2003
2003
|
return this.endOf(p).$D;
|
|
2004
2004
|
}, P.$locale = function() {
|
|
@@ -2006,8 +2006,8 @@ var vs = { exports: {} };
|
|
|
2006
2006
|
}, P.locale = function(M, N) {
|
|
2007
2007
|
if (!M)
|
|
2008
2008
|
return this.$L;
|
|
2009
|
-
var
|
|
2010
|
-
return
|
|
2009
|
+
var C = this.clone(), V = F(M, N, !0);
|
|
2010
|
+
return V && (C.$L = V), C;
|
|
2011
2011
|
}, P.clone = function() {
|
|
2012
2012
|
return I.w(this.$d, this);
|
|
2013
2013
|
}, P.toDate = function() {
|
|
@@ -2019,9 +2019,9 @@ var vs = { exports: {} };
|
|
|
2019
2019
|
}, P.toString = function() {
|
|
2020
2020
|
return this.$d.toUTCString();
|
|
2021
2021
|
}, O;
|
|
2022
|
-
}(),
|
|
2023
|
-
return H.prototype =
|
|
2024
|
-
|
|
2022
|
+
}(), le = te.prototype;
|
|
2023
|
+
return H.prototype = le, [["$ms", s], ["$s", o], ["$m", a], ["$H", l], ["$W", h], ["$M", p], ["$y", y], ["$D", $]].forEach(function(O) {
|
|
2024
|
+
le[O[1]] = function(P) {
|
|
2025
2025
|
return this.$g(P, O[0], O[1]);
|
|
2026
2026
|
};
|
|
2027
2027
|
}), H.extend = function(O, P) {
|
|
@@ -2031,9 +2031,9 @@ var vs = { exports: {} };
|
|
|
2031
2031
|
}, H.en = E[S], H.Ls = E, H.p = {}, H;
|
|
2032
2032
|
});
|
|
2033
2033
|
})(vs);
|
|
2034
|
-
var
|
|
2035
|
-
const kt = /* @__PURE__ */ Ti(
|
|
2036
|
-
class
|
|
2034
|
+
var _l = vs.exports;
|
|
2035
|
+
const kt = /* @__PURE__ */ Ti(_l);
|
|
2036
|
+
class El extends _e {
|
|
2037
2037
|
constructor() {
|
|
2038
2038
|
super(...arguments), this.templates = {}, this._renderedTemplates = {};
|
|
2039
2039
|
}
|
|
@@ -2071,13 +2071,13 @@ class Ea extends _e {
|
|
|
2071
2071
|
if (!this.hasTemplate(e))
|
|
2072
2072
|
return null;
|
|
2073
2073
|
i = i || e;
|
|
2074
|
-
const n =
|
|
2074
|
+
const n = X` <slot name=${i}></slot> `, s = { [e]: { ...r } };
|
|
2075
2075
|
if (this._renderedTemplates.hasOwnProperty(i)) {
|
|
2076
|
-
const { slot:
|
|
2076
|
+
const { slot: a } = (
|
|
2077
2077
|
// @ts-ignore
|
|
2078
2078
|
this._renderedTemplates[i]
|
|
2079
2079
|
);
|
|
2080
|
-
this.contains(
|
|
2080
|
+
this.contains(a) && this.removeChild(a);
|
|
2081
2081
|
}
|
|
2082
2082
|
const o = document.createElement("div");
|
|
2083
2083
|
return o.slot = i, o.dataset.generated = "template", this._renderTemplate(o, this.templates[e], s), this.appendChild(o), this._renderedTemplates[i] = { context: s, slot: o }, n;
|
|
@@ -2261,7 +2261,7 @@ button.small {
|
|
|
2261
2261
|
padding: 12.4px;
|
|
2262
2262
|
font-size: .75rem;
|
|
2263
2263
|
}
|
|
2264
|
-
`,
|
|
2264
|
+
`, Sl = `
|
|
2265
2265
|
input[type=checkbox] {
|
|
2266
2266
|
appearance: none;
|
|
2267
2267
|
-webkit-appearance: none;
|
|
@@ -2284,7 +2284,7 @@ input[type=checkbox]:checked:after {
|
|
|
2284
2284
|
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");
|
|
2285
2285
|
|
|
2286
2286
|
}
|
|
2287
|
-
`,
|
|
2287
|
+
`, Al = `
|
|
2288
2288
|
input[type=radio] {
|
|
2289
2289
|
appearance: none;
|
|
2290
2290
|
-webkit-appearance: none;
|
|
@@ -2312,7 +2312,7 @@ input[type=radio]:checked:after {
|
|
|
2312
2312
|
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");
|
|
2313
2313
|
|
|
2314
2314
|
}
|
|
2315
|
-
`,
|
|
2315
|
+
`, Ml = `
|
|
2316
2316
|
input[type="range"] {
|
|
2317
2317
|
-webkit-appearance: none;
|
|
2318
2318
|
width: 90%;
|
|
@@ -2395,9 +2395,9 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
2395
2395
|
}
|
|
2396
2396
|
|
|
2397
2397
|
${Ni}
|
|
2398
|
-
${
|
|
2399
|
-
${
|
|
2400
|
-
${
|
|
2398
|
+
${Sl}
|
|
2399
|
+
${Al}
|
|
2400
|
+
${Ml}
|
|
2401
2401
|
|
|
2402
2402
|
ul {
|
|
2403
2403
|
padding-left: 0;
|
|
@@ -2508,13 +2508,6 @@ button#filter-reset {
|
|
|
2508
2508
|
position: absolute;
|
|
2509
2509
|
top: 4px;
|
|
2510
2510
|
right: 0;
|
|
2511
|
-
text-indent: -9999px;
|
|
2512
|
-
line-height: 0;
|
|
2513
|
-
}
|
|
2514
|
-
button#filter-reset:after {
|
|
2515
|
-
content: "Reset";
|
|
2516
|
-
text-indent: 0px;
|
|
2517
|
-
line-height: initial;
|
|
2518
2511
|
}
|
|
2519
2512
|
.scroll {
|
|
2520
2513
|
max-height: calc(100% - 30px);
|
|
@@ -2548,11 +2541,23 @@ eox-itemfilter-range {
|
|
|
2548
2541
|
.range-after {
|
|
2549
2542
|
margin-left: .5rem;
|
|
2550
2543
|
}
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2544
|
+
|
|
2545
|
+
button.reset-icon:before {
|
|
2546
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eclose%3C/title%3E%3Cpath d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z' /%3E%3C/svg%3E");
|
|
2547
|
+
}
|
|
2548
|
+
eox-itemfilter-expandcontainer button.reset-icon {
|
|
2549
|
+
margin-left: 4px;
|
|
2550
|
+
margin-top: 1px;
|
|
2551
|
+
}
|
|
2552
|
+
eox-itemfilter-expandcontainer button.reset-icon:before {
|
|
2553
|
+
height: 16px;
|
|
2554
|
+
width: 16px;
|
|
2555
|
+
}
|
|
2556
|
+
`;
|
|
2557
|
+
var Ol = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, Bi = (t, e, r, i) => {
|
|
2558
|
+
for (var n = i > 1 ? void 0 : i ? Pl(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
2554
2559
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
2555
|
-
return i && n &&
|
|
2560
|
+
return i && n && Ol(e, r, n), n;
|
|
2556
2561
|
};
|
|
2557
2562
|
let Sr = class extends _e {
|
|
2558
2563
|
handleDetailsToggle(t) {
|
|
@@ -2564,8 +2569,11 @@ let Sr = class extends _e {
|
|
|
2564
2569
|
})
|
|
2565
2570
|
);
|
|
2566
2571
|
}
|
|
2572
|
+
_resetFilter() {
|
|
2573
|
+
this.querySelector("[slot='filter']").reset();
|
|
2574
|
+
}
|
|
2567
2575
|
render() {
|
|
2568
|
-
return
|
|
2576
|
+
return X`
|
|
2569
2577
|
<style>
|
|
2570
2578
|
${Di}
|
|
2571
2579
|
${!this.unstyled && ji}
|
|
@@ -2574,7 +2582,7 @@ let Sr = class extends _e {
|
|
|
2574
2582
|
@toggle="${this.handleDetailsToggle}"
|
|
2575
2583
|
class="details-filter"
|
|
2576
2584
|
part="details-filter"
|
|
2577
|
-
?open=${this.filterObject.expanded ||
|
|
2585
|
+
?open=${this.filterObject.expanded || oe}
|
|
2578
2586
|
>
|
|
2579
2587
|
<summary>
|
|
2580
2588
|
<span
|
|
@@ -2582,6 +2590,7 @@ let Sr = class extends _e {
|
|
|
2582
2590
|
style="${!this.filterObject.title && "text-transform: capitalize"}"
|
|
2583
2591
|
>
|
|
2584
2592
|
${this.filterObject.title || this.filterObject.key || "Filter"}
|
|
2593
|
+
<slot name="reset-button"></slot>
|
|
2585
2594
|
</span>
|
|
2586
2595
|
</summary>
|
|
2587
2596
|
<div class="scroll">
|
|
@@ -2625,27 +2634,27 @@ const Bt = (t) => {
|
|
|
2625
2634
|
break;
|
|
2626
2635
|
}
|
|
2627
2636
|
return delete t.stringifiedState, delete t.dirty, t;
|
|
2628
|
-
}, yi = Math.min, Rt = Math.max, Ar = Math.round, br = Math.floor,
|
|
2637
|
+
}, yi = Math.min, Rt = Math.max, Ar = Math.round, br = Math.floor, at = (t) => ({
|
|
2629
2638
|
x: t,
|
|
2630
2639
|
y: t
|
|
2631
2640
|
});
|
|
2632
2641
|
function bs(t) {
|
|
2633
2642
|
return t.split("-")[0];
|
|
2634
2643
|
}
|
|
2635
|
-
function
|
|
2644
|
+
function Ll(t) {
|
|
2636
2645
|
return t.split("-")[1];
|
|
2637
2646
|
}
|
|
2638
|
-
function
|
|
2647
|
+
function Cl(t) {
|
|
2639
2648
|
return t === "x" ? "y" : "x";
|
|
2640
2649
|
}
|
|
2641
|
-
function
|
|
2650
|
+
function kl(t) {
|
|
2642
2651
|
return t === "y" ? "height" : "width";
|
|
2643
2652
|
}
|
|
2644
2653
|
function xs(t) {
|
|
2645
2654
|
return ["top", "bottom"].includes(bs(t)) ? "y" : "x";
|
|
2646
2655
|
}
|
|
2647
|
-
function
|
|
2648
|
-
return
|
|
2656
|
+
function Rl(t) {
|
|
2657
|
+
return Cl(xs(t));
|
|
2649
2658
|
}
|
|
2650
2659
|
function ws(t) {
|
|
2651
2660
|
return {
|
|
@@ -2661,9 +2670,9 @@ function Nn(t, e, r) {
|
|
|
2661
2670
|
reference: i,
|
|
2662
2671
|
floating: n
|
|
2663
2672
|
} = t;
|
|
2664
|
-
const s = xs(e), o =
|
|
2673
|
+
const s = xs(e), o = Rl(e), a = kl(o), l = bs(e), h = s === "y", f = i.x + i.width / 2 - n.width / 2, p = i.y + i.height / 2 - n.height / 2, b = i[a] / 2 - n[a] / 2;
|
|
2665
2674
|
let y;
|
|
2666
|
-
switch (
|
|
2675
|
+
switch (l) {
|
|
2667
2676
|
case "top":
|
|
2668
2677
|
y = {
|
|
2669
2678
|
x: f,
|
|
@@ -2694,7 +2703,7 @@ function Nn(t, e, r) {
|
|
|
2694
2703
|
y: i.y
|
|
2695
2704
|
};
|
|
2696
2705
|
}
|
|
2697
|
-
switch (
|
|
2706
|
+
switch (Ll(e)) {
|
|
2698
2707
|
case "start":
|
|
2699
2708
|
y[o] -= b * (r && h ? -1 : 1);
|
|
2700
2709
|
break;
|
|
@@ -2704,13 +2713,13 @@ function Nn(t, e, r) {
|
|
|
2704
2713
|
}
|
|
2705
2714
|
return y;
|
|
2706
2715
|
}
|
|
2707
|
-
const
|
|
2716
|
+
const Tl = async (t, e, r) => {
|
|
2708
2717
|
const {
|
|
2709
2718
|
placement: i = "bottom",
|
|
2710
2719
|
strategy: n = "absolute",
|
|
2711
2720
|
middleware: s = [],
|
|
2712
2721
|
platform: o
|
|
2713
|
-
} = r,
|
|
2722
|
+
} = r, a = s.filter(Boolean), l = await (o.isRTL == null ? void 0 : o.isRTL(e));
|
|
2714
2723
|
let h = await o.getElementRects({
|
|
2715
2724
|
reference: t,
|
|
2716
2725
|
floating: e,
|
|
@@ -2718,12 +2727,12 @@ const Ta = async (t, e, r) => {
|
|
|
2718
2727
|
}), {
|
|
2719
2728
|
x: f,
|
|
2720
2729
|
y: p
|
|
2721
|
-
} = Nn(h, i,
|
|
2722
|
-
for (let
|
|
2730
|
+
} = Nn(h, i, l), b = i, y = {}, $ = 0;
|
|
2731
|
+
for (let L = 0; L < a.length; L++) {
|
|
2723
2732
|
const {
|
|
2724
2733
|
name: G,
|
|
2725
2734
|
fn: B
|
|
2726
|
-
} =
|
|
2735
|
+
} = a[L], {
|
|
2727
2736
|
x: g,
|
|
2728
2737
|
y: m,
|
|
2729
2738
|
data: w,
|
|
@@ -2756,7 +2765,7 @@ const Ta = async (t, e, r) => {
|
|
|
2756
2765
|
}) : S.rects), {
|
|
2757
2766
|
x: f,
|
|
2758
2767
|
y: p
|
|
2759
|
-
} = Nn(h, b,
|
|
2768
|
+
} = Nn(h, b, l)), L = -1;
|
|
2760
2769
|
continue;
|
|
2761
2770
|
}
|
|
2762
2771
|
}
|
|
@@ -2800,14 +2809,14 @@ function sr(t) {
|
|
|
2800
2809
|
} = De(t);
|
|
2801
2810
|
return /auto|scroll|overlay|hidden|clip/.test(e + i + r) && !["inline", "contents"].includes(n);
|
|
2802
2811
|
}
|
|
2803
|
-
function
|
|
2812
|
+
function Il(t) {
|
|
2804
2813
|
return ["table", "td", "th"].includes(ct(t));
|
|
2805
2814
|
}
|
|
2806
2815
|
function Fi(t) {
|
|
2807
2816
|
const e = Hi(), r = De(t);
|
|
2808
2817
|
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((i) => (r.willChange || "").includes(i)) || ["paint", "layout", "strict", "content"].some((i) => (r.contain || "").includes(i));
|
|
2809
2818
|
}
|
|
2810
|
-
function
|
|
2819
|
+
function Dl(t) {
|
|
2811
2820
|
let e = It(t);
|
|
2812
2821
|
for (; We(e) && !kr(e); ) {
|
|
2813
2822
|
if (Fi(e))
|
|
@@ -2859,11 +2868,11 @@ function Qt(t, e, r) {
|
|
|
2859
2868
|
function Es(t) {
|
|
2860
2869
|
const e = De(t);
|
|
2861
2870
|
let r = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
|
|
2862
|
-
const n = We(t), s = n ? t.offsetWidth : r, o = n ? t.offsetHeight : i,
|
|
2863
|
-
return
|
|
2871
|
+
const n = We(t), s = n ? t.offsetWidth : r, o = n ? t.offsetHeight : i, a = Ar(r) !== s || Ar(i) !== o;
|
|
2872
|
+
return a && (r = s, i = o), {
|
|
2864
2873
|
width: r,
|
|
2865
2874
|
height: i,
|
|
2866
|
-
$:
|
|
2875
|
+
$: a
|
|
2867
2876
|
};
|
|
2868
2877
|
}
|
|
2869
2878
|
function qi(t) {
|
|
@@ -2872,52 +2881,52 @@ function qi(t) {
|
|
|
2872
2881
|
function Tt(t) {
|
|
2873
2882
|
const e = qi(t);
|
|
2874
2883
|
if (!We(e))
|
|
2875
|
-
return
|
|
2884
|
+
return at(1);
|
|
2876
2885
|
const r = e.getBoundingClientRect(), {
|
|
2877
2886
|
width: i,
|
|
2878
2887
|
height: n,
|
|
2879
2888
|
$: s
|
|
2880
2889
|
} = Es(e);
|
|
2881
|
-
let o = (s ? Ar(r.width) : r.width) / i,
|
|
2882
|
-
return (!o || !Number.isFinite(o)) && (o = 1), (!
|
|
2890
|
+
let o = (s ? Ar(r.width) : r.width) / i, a = (s ? Ar(r.height) : r.height) / n;
|
|
2891
|
+
return (!o || !Number.isFinite(o)) && (o = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
2883
2892
|
x: o,
|
|
2884
|
-
y:
|
|
2893
|
+
y: a
|
|
2885
2894
|
};
|
|
2886
2895
|
}
|
|
2887
|
-
const
|
|
2896
|
+
const Nl = /* @__PURE__ */ at(0);
|
|
2888
2897
|
function Ss(t) {
|
|
2889
2898
|
const e = ke(t);
|
|
2890
|
-
return !Hi() || !e.visualViewport ?
|
|
2899
|
+
return !Hi() || !e.visualViewport ? Nl : {
|
|
2891
2900
|
x: e.visualViewport.offsetLeft,
|
|
2892
2901
|
y: e.visualViewport.offsetTop
|
|
2893
2902
|
};
|
|
2894
2903
|
}
|
|
2895
|
-
function
|
|
2904
|
+
function jl(t, e, r) {
|
|
2896
2905
|
return e === void 0 && (e = !1), !r || e && r !== ke(t) ? !1 : e;
|
|
2897
2906
|
}
|
|
2898
2907
|
function $t(t, e, r, i) {
|
|
2899
2908
|
e === void 0 && (e = !1), r === void 0 && (r = !1);
|
|
2900
2909
|
const n = t.getBoundingClientRect(), s = qi(t);
|
|
2901
|
-
let o =
|
|
2910
|
+
let o = at(1);
|
|
2902
2911
|
e && (i ? Qe(i) && (o = Tt(i)) : o = Tt(t));
|
|
2903
|
-
const
|
|
2904
|
-
let
|
|
2912
|
+
const a = jl(s, r, i) ? Ss(s) : at(0);
|
|
2913
|
+
let l = (n.left + a.x) / o.x, h = (n.top + a.y) / o.y, f = n.width / o.x, p = n.height / o.y;
|
|
2905
2914
|
if (s) {
|
|
2906
2915
|
const b = ke(s), y = i && Qe(i) ? ke(i) : i;
|
|
2907
2916
|
let $ = b.frameElement;
|
|
2908
2917
|
for (; $ && i && y !== b; ) {
|
|
2909
|
-
const
|
|
2910
|
-
|
|
2918
|
+
const L = Tt($), G = $.getBoundingClientRect(), B = De($), g = G.left + ($.clientLeft + parseFloat(B.paddingLeft)) * L.x, m = G.top + ($.clientTop + parseFloat(B.paddingTop)) * L.y;
|
|
2919
|
+
l *= L.x, h *= L.y, f *= L.x, p *= L.y, l += g, h += m, $ = ke($).frameElement;
|
|
2911
2920
|
}
|
|
2912
2921
|
}
|
|
2913
2922
|
return ws({
|
|
2914
2923
|
width: f,
|
|
2915
2924
|
height: p,
|
|
2916
|
-
x:
|
|
2925
|
+
x: l,
|
|
2917
2926
|
y: h
|
|
2918
2927
|
});
|
|
2919
2928
|
}
|
|
2920
|
-
function
|
|
2929
|
+
function Bl(t) {
|
|
2921
2930
|
let {
|
|
2922
2931
|
rect: e,
|
|
2923
2932
|
offsetParent: r,
|
|
@@ -2929,68 +2938,68 @@ function Ba(t) {
|
|
|
2929
2938
|
let o = {
|
|
2930
2939
|
scrollLeft: 0,
|
|
2931
2940
|
scrollTop: 0
|
|
2932
|
-
},
|
|
2933
|
-
const
|
|
2941
|
+
}, a = at(1);
|
|
2942
|
+
const l = at(0);
|
|
2934
2943
|
if ((n || !n && i !== "fixed") && ((ct(r) !== "body" || sr(s)) && (o = Rr(r)), We(r))) {
|
|
2935
2944
|
const h = $t(r);
|
|
2936
|
-
|
|
2945
|
+
a = Tt(r), l.x = h.x + r.clientLeft, l.y = h.y + r.clientTop;
|
|
2937
2946
|
}
|
|
2938
2947
|
return {
|
|
2939
|
-
width: e.width *
|
|
2940
|
-
height: e.height *
|
|
2941
|
-
x: e.x *
|
|
2942
|
-
y: e.y *
|
|
2948
|
+
width: e.width * a.x,
|
|
2949
|
+
height: e.height * a.y,
|
|
2950
|
+
x: e.x * a.x - o.scrollLeft * a.x + l.x,
|
|
2951
|
+
y: e.y * a.y - o.scrollTop * a.y + l.y
|
|
2943
2952
|
};
|
|
2944
2953
|
}
|
|
2945
|
-
function
|
|
2954
|
+
function Fl(t) {
|
|
2946
2955
|
return Array.from(t.getClientRects());
|
|
2947
2956
|
}
|
|
2948
2957
|
function As(t) {
|
|
2949
2958
|
return $t(rt(t)).left + Rr(t).scrollLeft;
|
|
2950
2959
|
}
|
|
2951
|
-
function
|
|
2960
|
+
function Hl(t) {
|
|
2952
2961
|
const e = rt(t), r = Rr(t), i = t.ownerDocument.body, n = Rt(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), s = Rt(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
|
|
2953
2962
|
let o = -r.scrollLeft + As(t);
|
|
2954
|
-
const
|
|
2963
|
+
const a = -r.scrollTop;
|
|
2955
2964
|
return De(i).direction === "rtl" && (o += Rt(e.clientWidth, i.clientWidth) - n), {
|
|
2956
2965
|
width: n,
|
|
2957
2966
|
height: s,
|
|
2958
2967
|
x: o,
|
|
2959
|
-
y:
|
|
2968
|
+
y: a
|
|
2960
2969
|
};
|
|
2961
2970
|
}
|
|
2962
|
-
function
|
|
2971
|
+
function ql(t, e) {
|
|
2963
2972
|
const r = ke(t), i = rt(t), n = r.visualViewport;
|
|
2964
|
-
let s = i.clientWidth, o = i.clientHeight,
|
|
2973
|
+
let s = i.clientWidth, o = i.clientHeight, a = 0, l = 0;
|
|
2965
2974
|
if (n) {
|
|
2966
2975
|
s = n.width, o = n.height;
|
|
2967
2976
|
const h = Hi();
|
|
2968
|
-
(!h || h && e === "fixed") && (
|
|
2977
|
+
(!h || h && e === "fixed") && (a = n.offsetLeft, l = n.offsetTop);
|
|
2969
2978
|
}
|
|
2970
2979
|
return {
|
|
2971
2980
|
width: s,
|
|
2972
2981
|
height: o,
|
|
2973
|
-
x:
|
|
2974
|
-
y:
|
|
2982
|
+
x: a,
|
|
2983
|
+
y: l
|
|
2975
2984
|
};
|
|
2976
2985
|
}
|
|
2977
|
-
function
|
|
2978
|
-
const r = $t(t, !0, e === "fixed"), i = r.top + t.clientTop, n = r.left + t.clientLeft, s = We(t) ? Tt(t) :
|
|
2986
|
+
function Ul(t, e) {
|
|
2987
|
+
const r = $t(t, !0, e === "fixed"), i = r.top + t.clientTop, n = r.left + t.clientLeft, s = We(t) ? Tt(t) : at(1), o = t.clientWidth * s.x, a = t.clientHeight * s.y, l = n * s.x, h = i * s.y;
|
|
2979
2988
|
return {
|
|
2980
2989
|
width: o,
|
|
2981
|
-
height:
|
|
2982
|
-
x:
|
|
2990
|
+
height: a,
|
|
2991
|
+
x: l,
|
|
2983
2992
|
y: h
|
|
2984
2993
|
};
|
|
2985
2994
|
}
|
|
2986
2995
|
function Bn(t, e, r) {
|
|
2987
2996
|
let i;
|
|
2988
2997
|
if (e === "viewport")
|
|
2989
|
-
i =
|
|
2998
|
+
i = ql(t, r);
|
|
2990
2999
|
else if (e === "document")
|
|
2991
|
-
i =
|
|
3000
|
+
i = Hl(rt(t));
|
|
2992
3001
|
else if (Qe(e))
|
|
2993
|
-
i =
|
|
3002
|
+
i = Ul(e, r);
|
|
2994
3003
|
else {
|
|
2995
3004
|
const n = Ss(t);
|
|
2996
3005
|
i = {
|
|
@@ -3005,56 +3014,56 @@ function Ms(t, e) {
|
|
|
3005
3014
|
const r = It(t);
|
|
3006
3015
|
return r === e || !Qe(r) || kr(r) ? !1 : De(r).position === "fixed" || Ms(r, e);
|
|
3007
3016
|
}
|
|
3008
|
-
function
|
|
3017
|
+
function zl(t, e) {
|
|
3009
3018
|
const r = e.get(t);
|
|
3010
3019
|
if (r)
|
|
3011
3020
|
return r;
|
|
3012
|
-
let i = Qt(t, [], !1).filter((
|
|
3021
|
+
let i = Qt(t, [], !1).filter((a) => Qe(a) && ct(a) !== "body"), n = null;
|
|
3013
3022
|
const s = De(t).position === "fixed";
|
|
3014
3023
|
let o = s ? It(t) : t;
|
|
3015
3024
|
for (; Qe(o) && !kr(o); ) {
|
|
3016
|
-
const
|
|
3017
|
-
!
|
|
3025
|
+
const a = De(o), l = Fi(o);
|
|
3026
|
+
!l && a.position === "fixed" && (n = null), (s ? !l && !n : !l && a.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || sr(o) && !l && Ms(t, o)) ? i = i.filter((f) => f !== o) : n = a, o = It(o);
|
|
3018
3027
|
}
|
|
3019
3028
|
return e.set(t, i), i;
|
|
3020
3029
|
}
|
|
3021
|
-
function
|
|
3030
|
+
function Yl(t) {
|
|
3022
3031
|
let {
|
|
3023
3032
|
element: e,
|
|
3024
3033
|
boundary: r,
|
|
3025
3034
|
rootBoundary: i,
|
|
3026
3035
|
strategy: n
|
|
3027
3036
|
} = t;
|
|
3028
|
-
const o = [...r === "clippingAncestors" ?
|
|
3037
|
+
const o = [...r === "clippingAncestors" ? zl(e, this._c) : [].concat(r), i], a = o[0], l = o.reduce((h, f) => {
|
|
3029
3038
|
const p = Bn(e, f, n);
|
|
3030
3039
|
return h.top = Rt(p.top, h.top), h.right = yi(p.right, h.right), h.bottom = yi(p.bottom, h.bottom), h.left = Rt(p.left, h.left), h;
|
|
3031
|
-
}, Bn(e,
|
|
3040
|
+
}, Bn(e, a, n));
|
|
3032
3041
|
return {
|
|
3033
|
-
width:
|
|
3034
|
-
height:
|
|
3035
|
-
x:
|
|
3036
|
-
y:
|
|
3042
|
+
width: l.right - l.left,
|
|
3043
|
+
height: l.bottom - l.top,
|
|
3044
|
+
x: l.left,
|
|
3045
|
+
y: l.top
|
|
3037
3046
|
};
|
|
3038
3047
|
}
|
|
3039
|
-
function
|
|
3048
|
+
function Wl(t) {
|
|
3040
3049
|
return Es(t);
|
|
3041
3050
|
}
|
|
3042
|
-
function
|
|
3051
|
+
function Xl(t, e, r) {
|
|
3043
3052
|
const i = We(e), n = rt(e), s = r === "fixed", o = $t(t, !0, s, e);
|
|
3044
|
-
let
|
|
3053
|
+
let a = {
|
|
3045
3054
|
scrollLeft: 0,
|
|
3046
3055
|
scrollTop: 0
|
|
3047
3056
|
};
|
|
3048
|
-
const
|
|
3057
|
+
const l = at(0);
|
|
3049
3058
|
if (i || !i && !s)
|
|
3050
|
-
if ((ct(e) !== "body" || sr(n)) && (
|
|
3059
|
+
if ((ct(e) !== "body" || sr(n)) && (a = Rr(e)), i) {
|
|
3051
3060
|
const h = $t(e, !0, s, e);
|
|
3052
|
-
|
|
3061
|
+
l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
|
|
3053
3062
|
} else
|
|
3054
|
-
n && (
|
|
3063
|
+
n && (l.x = As(n));
|
|
3055
3064
|
return {
|
|
3056
|
-
x: o.left +
|
|
3057
|
-
y: o.top +
|
|
3065
|
+
x: o.left + a.scrollLeft - l.x,
|
|
3066
|
+
y: o.top + a.scrollTop - l.y,
|
|
3058
3067
|
width: o.width,
|
|
3059
3068
|
height: o.height
|
|
3060
3069
|
};
|
|
@@ -3067,11 +3076,11 @@ function Os(t, e) {
|
|
|
3067
3076
|
if (!We(t))
|
|
3068
3077
|
return r;
|
|
3069
3078
|
let i = Fn(t, e);
|
|
3070
|
-
for (; i &&
|
|
3079
|
+
for (; i && Il(i) && De(i).position === "static"; )
|
|
3071
3080
|
i = Fn(i, e);
|
|
3072
|
-
return i && (ct(i) === "html" || ct(i) === "body" && De(i).position === "static" && !Fi(i)) ? r : i ||
|
|
3081
|
+
return i && (ct(i) === "html" || ct(i) === "body" && De(i).position === "static" && !Fi(i)) ? r : i || Dl(t) || r;
|
|
3073
3082
|
}
|
|
3074
|
-
const
|
|
3083
|
+
const Vl = async function(t) {
|
|
3075
3084
|
let {
|
|
3076
3085
|
reference: e,
|
|
3077
3086
|
floating: r,
|
|
@@ -3079,7 +3088,7 @@ const Va = async function(t) {
|
|
|
3079
3088
|
} = t;
|
|
3080
3089
|
const n = this.getOffsetParent || Os, s = this.getDimensions;
|
|
3081
3090
|
return {
|
|
3082
|
-
reference:
|
|
3091
|
+
reference: Xl(e, await n(r), i),
|
|
3083
3092
|
floating: {
|
|
3084
3093
|
x: 0,
|
|
3085
3094
|
y: 0,
|
|
@@ -3087,45 +3096,45 @@ const Va = async function(t) {
|
|
|
3087
3096
|
}
|
|
3088
3097
|
};
|
|
3089
3098
|
};
|
|
3090
|
-
function
|
|
3099
|
+
function Kl(t) {
|
|
3091
3100
|
return De(t).direction === "rtl";
|
|
3092
3101
|
}
|
|
3093
|
-
const
|
|
3094
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
3102
|
+
const Gl = {
|
|
3103
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Bl,
|
|
3095
3104
|
getDocumentElement: rt,
|
|
3096
|
-
getClippingRect:
|
|
3105
|
+
getClippingRect: Yl,
|
|
3097
3106
|
getOffsetParent: Os,
|
|
3098
|
-
getElementRects:
|
|
3099
|
-
getClientRects:
|
|
3100
|
-
getDimensions:
|
|
3107
|
+
getElementRects: Vl,
|
|
3108
|
+
getClientRects: Fl,
|
|
3109
|
+
getDimensions: Wl,
|
|
3101
3110
|
getScale: Tt,
|
|
3102
3111
|
isElement: Qe,
|
|
3103
|
-
isRTL:
|
|
3112
|
+
isRTL: Kl
|
|
3104
3113
|
};
|
|
3105
|
-
function
|
|
3114
|
+
function Jl(t, e) {
|
|
3106
3115
|
let r = null, i;
|
|
3107
3116
|
const n = rt(t);
|
|
3108
3117
|
function s() {
|
|
3109
3118
|
clearTimeout(i), r && r.disconnect(), r = null;
|
|
3110
3119
|
}
|
|
3111
|
-
function o(
|
|
3112
|
-
|
|
3120
|
+
function o(a, l) {
|
|
3121
|
+
a === void 0 && (a = !1), l === void 0 && (l = 1), s();
|
|
3113
3122
|
const {
|
|
3114
3123
|
left: h,
|
|
3115
3124
|
top: f,
|
|
3116
3125
|
width: p,
|
|
3117
3126
|
height: b
|
|
3118
3127
|
} = t.getBoundingClientRect();
|
|
3119
|
-
if (
|
|
3128
|
+
if (a || e(), !p || !b)
|
|
3120
3129
|
return;
|
|
3121
|
-
const y = br(f), $ = br(n.clientWidth - (h + p)),
|
|
3122
|
-
rootMargin: -y + "px " + -$ + "px " + -
|
|
3123
|
-
threshold: Rt(0, yi(1,
|
|
3130
|
+
const y = br(f), $ = br(n.clientWidth - (h + p)), L = br(n.clientHeight - (f + b)), G = br(h), g = {
|
|
3131
|
+
rootMargin: -y + "px " + -$ + "px " + -L + "px " + -G + "px",
|
|
3132
|
+
threshold: Rt(0, yi(1, l)) || 1
|
|
3124
3133
|
};
|
|
3125
3134
|
let m = !0;
|
|
3126
3135
|
function w(S) {
|
|
3127
3136
|
const E = S[0].intersectionRatio;
|
|
3128
|
-
if (E !==
|
|
3137
|
+
if (E !== l) {
|
|
3129
3138
|
if (!m)
|
|
3130
3139
|
return o();
|
|
3131
3140
|
E ? o(!1, E) : i = setTimeout(() => {
|
|
@@ -3147,57 +3156,57 @@ function Ja(t, e) {
|
|
|
3147
3156
|
}
|
|
3148
3157
|
return o(!0), s;
|
|
3149
3158
|
}
|
|
3150
|
-
function
|
|
3159
|
+
function Zl(t, e, r, i) {
|
|
3151
3160
|
i === void 0 && (i = {});
|
|
3152
3161
|
const {
|
|
3153
3162
|
ancestorScroll: n = !0,
|
|
3154
3163
|
ancestorResize: s = !0,
|
|
3155
3164
|
elementResize: o = typeof ResizeObserver == "function",
|
|
3156
|
-
layoutShift:
|
|
3157
|
-
animationFrame:
|
|
3165
|
+
layoutShift: a = typeof IntersectionObserver == "function",
|
|
3166
|
+
animationFrame: l = !1
|
|
3158
3167
|
} = i, h = qi(t), f = n || s ? [...h ? Qt(h) : [], ...Qt(e)] : [];
|
|
3159
3168
|
f.forEach((B) => {
|
|
3160
3169
|
n && B.addEventListener("scroll", r, {
|
|
3161
3170
|
passive: !0
|
|
3162
3171
|
}), s && B.addEventListener("resize", r);
|
|
3163
3172
|
});
|
|
3164
|
-
const p = h &&
|
|
3173
|
+
const p = h && a ? Jl(h, r) : null;
|
|
3165
3174
|
let b = -1, y = null;
|
|
3166
3175
|
o && (y = new ResizeObserver((B) => {
|
|
3167
3176
|
let [g] = B;
|
|
3168
3177
|
g && g.target === h && y && (y.unobserve(e), cancelAnimationFrame(b), b = requestAnimationFrame(() => {
|
|
3169
3178
|
y && y.observe(e);
|
|
3170
3179
|
})), r();
|
|
3171
|
-
}), h && !
|
|
3172
|
-
let $,
|
|
3173
|
-
|
|
3180
|
+
}), h && !l && y.observe(h), y.observe(e));
|
|
3181
|
+
let $, L = l ? $t(t) : null;
|
|
3182
|
+
l && G();
|
|
3174
3183
|
function G() {
|
|
3175
3184
|
const B = $t(t);
|
|
3176
|
-
|
|
3185
|
+
L && (B.x !== L.x || B.y !== L.y || B.width !== L.width || B.height !== L.height) && r(), L = B, $ = requestAnimationFrame(G);
|
|
3177
3186
|
}
|
|
3178
3187
|
return r(), () => {
|
|
3179
3188
|
f.forEach((B) => {
|
|
3180
3189
|
n && B.removeEventListener("scroll", r), s && B.removeEventListener("resize", r);
|
|
3181
|
-
}), p && p(), y && y.disconnect(), y = null,
|
|
3190
|
+
}), p && p(), y && y.disconnect(), y = null, l && cancelAnimationFrame($);
|
|
3182
3191
|
};
|
|
3183
3192
|
}
|
|
3184
|
-
const
|
|
3193
|
+
const Ql = (t, e, r) => {
|
|
3185
3194
|
const i = /* @__PURE__ */ new Map(), n = {
|
|
3186
|
-
platform:
|
|
3195
|
+
platform: Gl,
|
|
3187
3196
|
...r
|
|
3188
3197
|
}, s = {
|
|
3189
3198
|
...n.platform,
|
|
3190
3199
|
_c: i
|
|
3191
3200
|
};
|
|
3192
|
-
return
|
|
3201
|
+
return Tl(t, e, {
|
|
3193
3202
|
...n,
|
|
3194
3203
|
platform: s
|
|
3195
3204
|
});
|
|
3196
3205
|
};
|
|
3197
|
-
var
|
|
3198
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
3206
|
+
var ea = Object.defineProperty, ta = Object.getOwnPropertyDescriptor, Tr = (t, e, r, i) => {
|
|
3207
|
+
for (var n = i > 1 ? void 0 : i ? ta(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
3199
3208
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
3200
|
-
return i && n &&
|
|
3209
|
+
return i && n && ea(e, r, n), n;
|
|
3201
3210
|
};
|
|
3202
3211
|
let er = class extends _e {
|
|
3203
3212
|
constructor() {
|
|
@@ -3220,7 +3229,7 @@ let er = class extends _e {
|
|
|
3220
3229
|
connectedCallback() {
|
|
3221
3230
|
super.connectedCallback(), this.unstyled || setTimeout(() => {
|
|
3222
3231
|
const t = this.parent || this.renderRoot.querySelector("[name=trigger]").assignedNodes()[0], e = this.renderRoot.querySelector("#dropdown"), r = () => {
|
|
3223
|
-
e.classList.contains("open") &&
|
|
3232
|
+
e.classList.contains("open") && Ql(t, e, { strategy: "fixed" }).then(
|
|
3224
3233
|
({ x: i, y: n }) => {
|
|
3225
3234
|
Object.assign(e.style, {
|
|
3226
3235
|
left: `${i}px`,
|
|
@@ -3230,7 +3239,7 @@ let er = class extends _e {
|
|
|
3230
3239
|
}
|
|
3231
3240
|
);
|
|
3232
3241
|
};
|
|
3233
|
-
this._overlayCleanup =
|
|
3242
|
+
this._overlayCleanup = Zl(t, e, r);
|
|
3234
3243
|
});
|
|
3235
3244
|
}
|
|
3236
3245
|
disconnectedCallback() {
|
|
@@ -3240,7 +3249,7 @@ let er = class extends _e {
|
|
|
3240
3249
|
), window.removeEventListener("click", this._clickEventListener);
|
|
3241
3250
|
}
|
|
3242
3251
|
render() {
|
|
3243
|
-
return
|
|
3252
|
+
return X`
|
|
3244
3253
|
<style>
|
|
3245
3254
|
#dropdown {
|
|
3246
3255
|
display: none;
|
|
@@ -3248,7 +3257,7 @@ let er = class extends _e {
|
|
|
3248
3257
|
#dropdown.open {
|
|
3249
3258
|
display: block;
|
|
3250
3259
|
}
|
|
3251
|
-
${this.unstyled ?
|
|
3260
|
+
${this.unstyled ? oe : X`
|
|
3252
3261
|
eox-dropdown { height: 100%;} #dropdown { position: fixed; top:
|
|
3253
3262
|
0px; left: 0; width: 100%; margin: 0; padding: 0; background:
|
|
3254
3263
|
white; border-bottom-left-radius: 4px; border-bottom-right-radius:
|
|
@@ -3286,10 +3295,10 @@ Tr([
|
|
|
3286
3295
|
er = Tr([
|
|
3287
3296
|
Re("eox-dropdown")
|
|
3288
3297
|
], er);
|
|
3289
|
-
var
|
|
3290
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
3298
|
+
var ra = Object.defineProperty, ia = Object.getOwnPropertyDescriptor, Ir = (t, e, r, i) => {
|
|
3299
|
+
for (var n = i > 1 ? void 0 : i ? ia(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
3291
3300
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
3292
|
-
return i && n &&
|
|
3301
|
+
return i && n && ra(e, r, n), n;
|
|
3293
3302
|
};
|
|
3294
3303
|
let tr = class extends _e {
|
|
3295
3304
|
constructor() {
|
|
@@ -3340,7 +3349,7 @@ let tr = class extends _e {
|
|
|
3340
3349
|
);
|
|
3341
3350
|
}
|
|
3342
3351
|
render() {
|
|
3343
|
-
return
|
|
3352
|
+
return X`
|
|
3344
3353
|
<style>
|
|
3345
3354
|
.chip.highlighted {
|
|
3346
3355
|
background: lightgrey;
|
|
@@ -3348,7 +3357,7 @@ let tr = class extends _e {
|
|
|
3348
3357
|
.chip-title {
|
|
3349
3358
|
pointer-events: none;
|
|
3350
3359
|
}
|
|
3351
|
-
${this.unstyled ?
|
|
3360
|
+
${this.unstyled ? oe : X`
|
|
3352
3361
|
.chip-container { display: flex; flex: 0; } .chip { display: flex;
|
|
3353
3362
|
align-items: center; background: #00417022; border-radius: 4px;
|
|
3354
3363
|
margin-right: 4px; padding: 5px 10px; font-size: small; cursor:
|
|
@@ -3360,7 +3369,7 @@ let tr = class extends _e {
|
|
|
3360
3369
|
<span class="chip-container">
|
|
3361
3370
|
${Kt(
|
|
3362
3371
|
this.items,
|
|
3363
|
-
(t) =>
|
|
3372
|
+
(t) => X`
|
|
3364
3373
|
<span
|
|
3365
3374
|
class="chip"
|
|
3366
3375
|
@click=${(e) => {
|
|
@@ -3372,13 +3381,13 @@ let tr = class extends _e {
|
|
|
3372
3381
|
<span class="chip-title"
|
|
3373
3382
|
>${t[this.titleProperty]}</span
|
|
3374
3383
|
>
|
|
3375
|
-
${
|
|
3384
|
+
${de(
|
|
3376
3385
|
t._inProgress,
|
|
3377
|
-
() => t.stringifiedState ? "" :
|
|
3386
|
+
() => t.stringifiedState ? "" : X` ... `
|
|
3378
3387
|
)}
|
|
3379
|
-
${
|
|
3388
|
+
${de(
|
|
3380
3389
|
t.stringifiedState,
|
|
3381
|
-
() =>
|
|
3390
|
+
() => X`: ${t.stringifiedState}`
|
|
3382
3391
|
)}
|
|
3383
3392
|
<span
|
|
3384
3393
|
class="chip-close"
|
|
@@ -3406,10 +3415,10 @@ Ir([
|
|
|
3406
3415
|
tr = Ir([
|
|
3407
3416
|
Re("eox-itemfilter-chips")
|
|
3408
3417
|
], tr);
|
|
3409
|
-
var
|
|
3410
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
3418
|
+
var na = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, Ge = (t, e, r, i) => {
|
|
3419
|
+
for (var n = i > 1 ? void 0 : i ? sa(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
3411
3420
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
3412
|
-
return i && n &&
|
|
3421
|
+
return i && n && na(e, r, n), n;
|
|
3413
3422
|
};
|
|
3414
3423
|
let He = class extends _e {
|
|
3415
3424
|
constructor() {
|
|
@@ -3470,7 +3479,7 @@ let He = class extends _e {
|
|
|
3470
3479
|
t.has("selectedItems") && this._handleSelect(this.selectedItems);
|
|
3471
3480
|
}
|
|
3472
3481
|
render() {
|
|
3473
|
-
return
|
|
3482
|
+
return X`
|
|
3474
3483
|
<style>
|
|
3475
3484
|
:host,
|
|
3476
3485
|
.container {
|
|
@@ -3479,7 +3488,7 @@ let He = class extends _e {
|
|
|
3479
3488
|
#dropdown {
|
|
3480
3489
|
display: none;
|
|
3481
3490
|
}
|
|
3482
|
-
${this.unstyled ?
|
|
3491
|
+
${this.unstyled ? oe : X`
|
|
3483
3492
|
${Ni} :host { position: relative; } .container { width: 100%;
|
|
3484
3493
|
position: relative; border: 1px solid #00417066; border-radius:
|
|
3485
3494
|
4px; height: 24px; padding: 5px; flex: 1; justify-content:
|
|
@@ -3504,9 +3513,9 @@ let He = class extends _e {
|
|
|
3504
3513
|
t.stopPropagation(), this.renderRoot.querySelector("input[type=text]").focus();
|
|
3505
3514
|
}}
|
|
3506
3515
|
>
|
|
3507
|
-
${
|
|
3516
|
+
${de(
|
|
3508
3517
|
this.multiple,
|
|
3509
|
-
() =>
|
|
3518
|
+
() => X`
|
|
3510
3519
|
<eox-itemfilter-chips
|
|
3511
3520
|
.items=${this.selectedItems}
|
|
3512
3521
|
.titleProperty=${this.titleProperty}
|
|
@@ -3529,9 +3538,9 @@ let He = class extends _e {
|
|
|
3529
3538
|
this.inputText = t.target.value.toLowerCase();
|
|
3530
3539
|
}}
|
|
3531
3540
|
/>
|
|
3532
|
-
${
|
|
3541
|
+
${de(
|
|
3533
3542
|
this.items.length > 0,
|
|
3534
|
-
() =>
|
|
3543
|
+
() => X`
|
|
3535
3544
|
<eox-selectionlist
|
|
3536
3545
|
slot="content"
|
|
3537
3546
|
.filter=${this.inputText}
|
|
@@ -3559,9 +3568,9 @@ let He = class extends _e {
|
|
|
3559
3568
|
</eox-dropdown>
|
|
3560
3569
|
</div>
|
|
3561
3570
|
</div>
|
|
3562
|
-
${
|
|
3571
|
+
${de(
|
|
3563
3572
|
this.selectedItems.length > 0,
|
|
3564
|
-
() =>
|
|
3573
|
+
() => X`
|
|
3565
3574
|
<div class="button-container">
|
|
3566
3575
|
<button
|
|
3567
3576
|
class="icon"
|
|
@@ -3607,10 +3616,10 @@ Ge([
|
|
|
3607
3616
|
He = Ge([
|
|
3608
3617
|
Re("eox-autocomplete")
|
|
3609
3618
|
], He);
|
|
3610
|
-
var
|
|
3611
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
3619
|
+
var oa = Object.defineProperty, la = Object.getOwnPropertyDescriptor, it = (t, e, r, i) => {
|
|
3620
|
+
for (var n = i > 1 ? void 0 : i ? la(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
3612
3621
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
3613
|
-
return i && n &&
|
|
3622
|
+
return i && n && oa(e, r, n), n;
|
|
3614
3623
|
};
|
|
3615
3624
|
let Xe = class extends _e {
|
|
3616
3625
|
constructor() {
|
|
@@ -3683,7 +3692,7 @@ let Xe = class extends _e {
|
|
|
3683
3692
|
}) : this._currentHighlight = null);
|
|
3684
3693
|
}
|
|
3685
3694
|
render() {
|
|
3686
|
-
return
|
|
3695
|
+
return X`
|
|
3687
3696
|
<style>
|
|
3688
3697
|
${Di}
|
|
3689
3698
|
:host {
|
|
@@ -3703,9 +3712,9 @@ let Xe = class extends _e {
|
|
|
3703
3712
|
(t) => this.filter ? t[this.titleProperty].toLowerCase().includes(this.filter.toLowerCase()) : !0
|
|
3704
3713
|
),
|
|
3705
3714
|
(t) => t[this.idProperty],
|
|
3706
|
-
(t) =>
|
|
3715
|
+
(t) => X`
|
|
3707
3716
|
<li
|
|
3708
|
-
class=${this._currentHighlight === t ? "highlighted" :
|
|
3717
|
+
class=${this._currentHighlight === t ? "highlighted" : oe}
|
|
3709
3718
|
data-identifier=${t[this.idProperty]}
|
|
3710
3719
|
data-title=${t[this.titleProperty]}
|
|
3711
3720
|
@mouseenter=${() => {
|
|
@@ -3720,7 +3729,7 @@ let Xe = class extends _e {
|
|
|
3720
3729
|
type="${this.multiple ? "checkbox" : "radio"}"
|
|
3721
3730
|
.checked=${!!this.selectedItems.find(
|
|
3722
3731
|
(e) => e[this.idProperty] === t[this.idProperty]
|
|
3723
|
-
) ||
|
|
3732
|
+
) || oe}
|
|
3724
3733
|
@change=${() => this._handleSelect(t)}
|
|
3725
3734
|
/>
|
|
3726
3735
|
<span class="title"
|
|
@@ -3761,10 +3770,10 @@ it([
|
|
|
3761
3770
|
Xe = it([
|
|
3762
3771
|
Re("eox-selectionlist")
|
|
3763
3772
|
], Xe);
|
|
3764
|
-
var
|
|
3765
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
3773
|
+
var aa = Object.defineProperty, ca = Object.getOwnPropertyDescriptor, Dr = (t, e, r, i) => {
|
|
3774
|
+
for (var n = i > 1 ? void 0 : i ? ca(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
3766
3775
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
3767
|
-
return i && n &&
|
|
3776
|
+
return i && n && aa(e, r, n), n;
|
|
3768
3777
|
};
|
|
3769
3778
|
let rr = class extends _e {
|
|
3770
3779
|
constructor() {
|
|
@@ -3797,12 +3806,12 @@ let rr = class extends _e {
|
|
|
3797
3806
|
}), this.filterObject.stringifiedState = Object.keys(this.filterObject.state).filter((e) => this.filterObject.state[e]).join(", "), this.filterObject.dirty = !0, this.dispatchEvent(new CustomEvent("filter"));
|
|
3798
3807
|
}
|
|
3799
3808
|
render() {
|
|
3800
|
-
return
|
|
3809
|
+
return de(
|
|
3801
3810
|
this.filterObject,
|
|
3802
|
-
() =>
|
|
3803
|
-
${
|
|
3811
|
+
() => X`
|
|
3812
|
+
${de(
|
|
3804
3813
|
this.inline || Object.keys(this.filterObject.state).length > 10,
|
|
3805
|
-
() =>
|
|
3814
|
+
() => X`
|
|
3806
3815
|
<eox-autocomplete
|
|
3807
3816
|
multiple
|
|
3808
3817
|
.items=${this._getItems()}
|
|
@@ -3812,7 +3821,7 @@ let rr = class extends _e {
|
|
|
3812
3821
|
>
|
|
3813
3822
|
</eox-autocomplete>
|
|
3814
3823
|
`,
|
|
3815
|
-
() =>
|
|
3824
|
+
() => X`
|
|
3816
3825
|
<eox-selectionlist
|
|
3817
3826
|
multiple
|
|
3818
3827
|
.items=${this._getItems()}
|
|
@@ -3838,53 +3847,53 @@ Dr([
|
|
|
3838
3847
|
rr = Dr([
|
|
3839
3848
|
Re("eox-itemfilter-multiselect")
|
|
3840
3849
|
], rr);
|
|
3841
|
-
var
|
|
3842
|
-
return
|
|
3850
|
+
var ha = "Expected a function", Hn = NaN, ua = "[object Symbol]", da = /^\s+|\s+$/g, fa = /^[-+]0x[0-9a-f]+$/i, pa = /^0b[01]+$/i, ga = /^0o[0-7]+$/i, ma = parseInt, ya = typeof Ct == "object" && Ct && Ct.Object === Object && Ct, va = typeof self == "object" && self && self.Object === Object && self, ba = ya || va || Function("return this")(), xa = Object.prototype, wa = xa.toString, $a = Math.max, _a = Math.min, pi = function() {
|
|
3851
|
+
return ba.Date.now();
|
|
3843
3852
|
};
|
|
3844
|
-
function
|
|
3845
|
-
var i, n, s, o,
|
|
3853
|
+
function Ea(t, e, r) {
|
|
3854
|
+
var i, n, s, o, a, l, h = 0, f = !1, p = !1, b = !0;
|
|
3846
3855
|
if (typeof t != "function")
|
|
3847
|
-
throw new TypeError(
|
|
3848
|
-
e = qn(e) || 0, vi(r) && (f = !!r.leading, p = "maxWait" in r, s = p ? $
|
|
3856
|
+
throw new TypeError(ha);
|
|
3857
|
+
e = qn(e) || 0, vi(r) && (f = !!r.leading, p = "maxWait" in r, s = p ? $a(qn(r.maxWait) || 0, e) : s, b = "trailing" in r ? !!r.trailing : b);
|
|
3849
3858
|
function y(E) {
|
|
3850
3859
|
var A = i, k = n;
|
|
3851
3860
|
return i = n = void 0, h = E, o = t.apply(k, A), o;
|
|
3852
3861
|
}
|
|
3853
3862
|
function $(E) {
|
|
3854
|
-
return h = E,
|
|
3863
|
+
return h = E, a = setTimeout(B, e), f ? y(E) : o;
|
|
3855
3864
|
}
|
|
3856
|
-
function
|
|
3857
|
-
var A = E -
|
|
3858
|
-
return p ?
|
|
3865
|
+
function L(E) {
|
|
3866
|
+
var A = E - l, k = E - h, F = e - A;
|
|
3867
|
+
return p ? _a(F, s - k) : F;
|
|
3859
3868
|
}
|
|
3860
3869
|
function G(E) {
|
|
3861
|
-
var A = E -
|
|
3862
|
-
return
|
|
3870
|
+
var A = E - l, k = E - h;
|
|
3871
|
+
return l === void 0 || A >= e || A < 0 || p && k >= s;
|
|
3863
3872
|
}
|
|
3864
3873
|
function B() {
|
|
3865
3874
|
var E = pi();
|
|
3866
3875
|
if (G(E))
|
|
3867
3876
|
return g(E);
|
|
3868
|
-
|
|
3877
|
+
a = setTimeout(B, L(E));
|
|
3869
3878
|
}
|
|
3870
3879
|
function g(E) {
|
|
3871
|
-
return
|
|
3880
|
+
return a = void 0, b && i ? y(E) : (i = n = void 0, o);
|
|
3872
3881
|
}
|
|
3873
3882
|
function m() {
|
|
3874
|
-
|
|
3883
|
+
a !== void 0 && clearTimeout(a), h = 0, i = l = n = a = void 0;
|
|
3875
3884
|
}
|
|
3876
3885
|
function w() {
|
|
3877
|
-
return
|
|
3886
|
+
return a === void 0 ? o : g(pi());
|
|
3878
3887
|
}
|
|
3879
3888
|
function S() {
|
|
3880
3889
|
var E = pi(), A = G(E);
|
|
3881
|
-
if (i = arguments, n = this,
|
|
3882
|
-
if (
|
|
3883
|
-
return $(
|
|
3890
|
+
if (i = arguments, n = this, l = E, A) {
|
|
3891
|
+
if (a === void 0)
|
|
3892
|
+
return $(l);
|
|
3884
3893
|
if (p)
|
|
3885
|
-
return
|
|
3894
|
+
return a = setTimeout(B, e), y(l);
|
|
3886
3895
|
}
|
|
3887
|
-
return
|
|
3896
|
+
return a === void 0 && (a = setTimeout(B, e)), o;
|
|
3888
3897
|
}
|
|
3889
3898
|
return S.cancel = m, S.flush = w, S;
|
|
3890
3899
|
}
|
|
@@ -3892,16 +3901,16 @@ function vi(t) {
|
|
|
3892
3901
|
var e = typeof t;
|
|
3893
3902
|
return !!t && (e == "object" || e == "function");
|
|
3894
3903
|
}
|
|
3895
|
-
function
|
|
3904
|
+
function Sa(t) {
|
|
3896
3905
|
return !!t && typeof t == "object";
|
|
3897
3906
|
}
|
|
3898
|
-
function
|
|
3899
|
-
return typeof t == "symbol" ||
|
|
3907
|
+
function Aa(t) {
|
|
3908
|
+
return typeof t == "symbol" || Sa(t) && wa.call(t) == ua;
|
|
3900
3909
|
}
|
|
3901
3910
|
function qn(t) {
|
|
3902
3911
|
if (typeof t == "number")
|
|
3903
3912
|
return t;
|
|
3904
|
-
if (
|
|
3913
|
+
if (Aa(t))
|
|
3905
3914
|
return Hn;
|
|
3906
3915
|
if (vi(t)) {
|
|
3907
3916
|
var e = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
@@ -3909,16 +3918,16 @@ function qn(t) {
|
|
|
3909
3918
|
}
|
|
3910
3919
|
if (typeof t != "string")
|
|
3911
3920
|
return t === 0 ? t : +t;
|
|
3912
|
-
t = t.replace(
|
|
3913
|
-
var r =
|
|
3914
|
-
return r ||
|
|
3921
|
+
t = t.replace(da, "");
|
|
3922
|
+
var r = pa.test(t);
|
|
3923
|
+
return r || ga.test(t) ? ma(t.slice(2), r ? 2 : 8) : fa.test(t) ? Hn : +t;
|
|
3915
3924
|
}
|
|
3916
|
-
var
|
|
3917
|
-
const Ps = /* @__PURE__ */ Ti(
|
|
3918
|
-
var
|
|
3919
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
3925
|
+
var Ma = Ea;
|
|
3926
|
+
const Ps = /* @__PURE__ */ Ti(Ma);
|
|
3927
|
+
var Oa = Object.defineProperty, Pa = Object.getOwnPropertyDescriptor, Ls = (t, e, r, i) => {
|
|
3928
|
+
for (var n = i > 1 ? void 0 : i ? Pa(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
3920
3929
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
3921
|
-
return i && n &&
|
|
3930
|
+
return i && n && Oa(e, r, n), n;
|
|
3922
3931
|
};
|
|
3923
3932
|
let bi = class extends _e {
|
|
3924
3933
|
constructor() {
|
|
@@ -3937,9 +3946,9 @@ let bi = class extends _e {
|
|
|
3937
3946
|
return this;
|
|
3938
3947
|
}
|
|
3939
3948
|
render() {
|
|
3940
|
-
return
|
|
3949
|
+
return de(
|
|
3941
3950
|
this.filterObject,
|
|
3942
|
-
() =>
|
|
3951
|
+
() => X`
|
|
3943
3952
|
<div class="range-before">
|
|
3944
3953
|
${this.filterObject.format === "date" ? kt.unix(this.filterObject.state.min) : this.filterObject.state.min}
|
|
3945
3954
|
</div>
|
|
@@ -3949,9 +3958,7 @@ let bi = class extends _e {
|
|
|
3949
3958
|
value1="${this.filterObject.state.min}"
|
|
3950
3959
|
value2="${this.filterObject.state.max}"
|
|
3951
3960
|
step="1"
|
|
3952
|
-
@change
|
|
3953
|
-
this.debouncedInputHandler;
|
|
3954
|
-
}}"
|
|
3961
|
+
@change=${this.debouncedInputHandler}
|
|
3955
3962
|
></tc-range-slider>
|
|
3956
3963
|
<div class="range-after">
|
|
3957
3964
|
${this.filterObject.format === "date" ? kt.unix(this.filterObject.state.max) : this.filterObject.state.max}
|
|
@@ -3960,16 +3967,16 @@ let bi = class extends _e {
|
|
|
3960
3967
|
);
|
|
3961
3968
|
}
|
|
3962
3969
|
};
|
|
3963
|
-
|
|
3970
|
+
Ls([
|
|
3964
3971
|
J()
|
|
3965
3972
|
], bi.prototype, "filterObject", 2);
|
|
3966
|
-
bi =
|
|
3973
|
+
bi = Ls([
|
|
3967
3974
|
Re("eox-itemfilter-range")
|
|
3968
3975
|
], bi);
|
|
3969
|
-
var
|
|
3970
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
3976
|
+
var La = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, Nr = (t, e, r, i) => {
|
|
3977
|
+
for (var n = i > 1 ? void 0 : i ? Ca(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
3971
3978
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
3972
|
-
return i && n &&
|
|
3979
|
+
return i && n && La(e, r, n), n;
|
|
3973
3980
|
};
|
|
3974
3981
|
let ir = class extends _e {
|
|
3975
3982
|
constructor() {
|
|
@@ -4004,12 +4011,12 @@ let ir = class extends _e {
|
|
|
4004
4011
|
).filter((e) => this.filterObject.state[e])[0], this.filterObject.dirty = !0, this.dispatchEvent(new CustomEvent("filter"));
|
|
4005
4012
|
}
|
|
4006
4013
|
render() {
|
|
4007
|
-
return
|
|
4014
|
+
return de(
|
|
4008
4015
|
this.filterObject,
|
|
4009
|
-
() =>
|
|
4010
|
-
${
|
|
4016
|
+
() => X`
|
|
4017
|
+
${de(
|
|
4011
4018
|
this.inline || Object.keys(this.filterObject.state).length > 1,
|
|
4012
|
-
() =>
|
|
4019
|
+
() => X`
|
|
4013
4020
|
<eox-autocomplete
|
|
4014
4021
|
.items=${this._getItems()}
|
|
4015
4022
|
.selectedItems=${this._getSelectedItems()}
|
|
@@ -4018,7 +4025,7 @@ let ir = class extends _e {
|
|
|
4018
4025
|
>
|
|
4019
4026
|
</eox-autocomplete>
|
|
4020
4027
|
`,
|
|
4021
|
-
() =>
|
|
4028
|
+
() => X`
|
|
4022
4029
|
<eox-selectionlist
|
|
4023
4030
|
.items=${this._getItems()}
|
|
4024
4031
|
.selectedItems=${this._getSelectedItems()}
|
|
@@ -4059,7 +4066,7 @@ var Se = 63710088e-1, Ui = {
|
|
|
4059
4066
|
nauticalmiles: Se / 1852,
|
|
4060
4067
|
radians: 1,
|
|
4061
4068
|
yards: Se * 1.0936
|
|
4062
|
-
},
|
|
4069
|
+
}, ka = {
|
|
4063
4070
|
centimeters: 100,
|
|
4064
4071
|
centimetres: 100,
|
|
4065
4072
|
degrees: 1 / 111325,
|
|
@@ -4096,7 +4103,7 @@ function Ne(t, e, r) {
|
|
|
4096
4103
|
var i = { type: "Feature" };
|
|
4097
4104
|
return (r.id === 0 || r.id) && (i.id = r.id), r.bbox && (i.bbox = r.bbox), i.properties = e || {}, i.geometry = t, i;
|
|
4098
4105
|
}
|
|
4099
|
-
function
|
|
4106
|
+
function Ra(t, e, r) {
|
|
4100
4107
|
switch (t) {
|
|
4101
4108
|
case "Point":
|
|
4102
4109
|
return ze(e).geometry;
|
|
@@ -4105,7 +4112,7 @@ function Rl(t, e, r) {
|
|
|
4105
4112
|
case "Polygon":
|
|
4106
4113
|
return zi(e).geometry;
|
|
4107
4114
|
case "MultiPoint":
|
|
4108
|
-
return
|
|
4115
|
+
return Cs(e).geometry;
|
|
4109
4116
|
case "MultiLineString":
|
|
4110
4117
|
return Yi(e).geometry;
|
|
4111
4118
|
case "MultiPolygon":
|
|
@@ -4129,7 +4136,7 @@ function ze(t, e, r) {
|
|
|
4129
4136
|
};
|
|
4130
4137
|
return Ne(i, e, r);
|
|
4131
4138
|
}
|
|
4132
|
-
function
|
|
4139
|
+
function Ta(t, e, r) {
|
|
4133
4140
|
return r === void 0 && (r = {}), ht(t.map(function(i) {
|
|
4134
4141
|
return ze(i, e);
|
|
4135
4142
|
}), r);
|
|
@@ -4144,13 +4151,13 @@ function zi(t, e, r) {
|
|
|
4144
4151
|
if (s[s.length - 1][o] !== s[0][o])
|
|
4145
4152
|
throw new Error("First and last Position are not equivalent.");
|
|
4146
4153
|
}
|
|
4147
|
-
var
|
|
4154
|
+
var a = {
|
|
4148
4155
|
type: "Polygon",
|
|
4149
4156
|
coordinates: t
|
|
4150
4157
|
};
|
|
4151
|
-
return Ne(
|
|
4158
|
+
return Ne(a, e, r);
|
|
4152
4159
|
}
|
|
4153
|
-
function
|
|
4160
|
+
function Ia(t, e, r) {
|
|
4154
4161
|
return r === void 0 && (r = {}), ht(t.map(function(i) {
|
|
4155
4162
|
return zi(i, e);
|
|
4156
4163
|
}), r);
|
|
@@ -4164,7 +4171,7 @@ function Fe(t, e, r) {
|
|
|
4164
4171
|
};
|
|
4165
4172
|
return Ne(i, e, r);
|
|
4166
4173
|
}
|
|
4167
|
-
function
|
|
4174
|
+
function Da(t, e, r) {
|
|
4168
4175
|
return r === void 0 && (r = {}), ht(t.map(function(i) {
|
|
4169
4176
|
return Fe(i, e);
|
|
4170
4177
|
}), r);
|
|
@@ -4182,7 +4189,7 @@ function Yi(t, e, r) {
|
|
|
4182
4189
|
};
|
|
4183
4190
|
return Ne(i, e, r);
|
|
4184
4191
|
}
|
|
4185
|
-
function
|
|
4192
|
+
function Cs(t, e, r) {
|
|
4186
4193
|
r === void 0 && (r = {});
|
|
4187
4194
|
var i = {
|
|
4188
4195
|
type: "MultiPoint",
|
|
@@ -4198,7 +4205,7 @@ function ks(t, e, r) {
|
|
|
4198
4205
|
};
|
|
4199
4206
|
return Ne(i, e, r);
|
|
4200
4207
|
}
|
|
4201
|
-
function
|
|
4208
|
+
function Na(t, e, r) {
|
|
4202
4209
|
r === void 0 && (r = {});
|
|
4203
4210
|
var i = {
|
|
4204
4211
|
type: "GeometryCollection",
|
|
@@ -4206,7 +4213,7 @@ function Nl(t, e, r) {
|
|
|
4206
4213
|
};
|
|
4207
4214
|
return Ne(i, e, r);
|
|
4208
4215
|
}
|
|
4209
|
-
function
|
|
4216
|
+
function ja(t, e) {
|
|
4210
4217
|
if (e === void 0 && (e = 0), e && !(e >= 0))
|
|
4211
4218
|
throw new Error("precision must be a positive number");
|
|
4212
4219
|
var r = Math.pow(10, e || 0);
|
|
@@ -4226,10 +4233,10 @@ function Wi(t, e) {
|
|
|
4226
4233
|
throw new Error(e + " units is invalid");
|
|
4227
4234
|
return t / r;
|
|
4228
4235
|
}
|
|
4229
|
-
function
|
|
4236
|
+
function Ba(t, e) {
|
|
4230
4237
|
return Ts(Wi(t, e));
|
|
4231
4238
|
}
|
|
4232
|
-
function
|
|
4239
|
+
function Fa(t) {
|
|
4233
4240
|
var e = t % 360;
|
|
4234
4241
|
return e < 0 && (e += 360), e;
|
|
4235
4242
|
}
|
|
@@ -4237,16 +4244,16 @@ function Ts(t) {
|
|
|
4237
4244
|
var e = t % (2 * Math.PI);
|
|
4238
4245
|
return e * 180 / Math.PI;
|
|
4239
4246
|
}
|
|
4240
|
-
function
|
|
4247
|
+
function Ha(t) {
|
|
4241
4248
|
var e = t % 360;
|
|
4242
4249
|
return e * Math.PI / 180;
|
|
4243
4250
|
}
|
|
4244
|
-
function
|
|
4251
|
+
function qa(t, e, r) {
|
|
4245
4252
|
if (e === void 0 && (e = "kilometers"), r === void 0 && (r = "kilometers"), !(t >= 0))
|
|
4246
4253
|
throw new Error("length must be a positive number");
|
|
4247
4254
|
return Rs(Wi(t, e), r);
|
|
4248
4255
|
}
|
|
4249
|
-
function
|
|
4256
|
+
function Ua(t, e, r) {
|
|
4250
4257
|
if (e === void 0 && (e = "meters"), r === void 0 && (r = "kilometers"), !(t >= 0))
|
|
4251
4258
|
throw new Error("area must be a positive number");
|
|
4252
4259
|
var i = xi[e];
|
|
@@ -4263,7 +4270,7 @@ function Mr(t) {
|
|
|
4263
4270
|
function Xi(t) {
|
|
4264
4271
|
return !!t && t.constructor === Object;
|
|
4265
4272
|
}
|
|
4266
|
-
function
|
|
4273
|
+
function za(t) {
|
|
4267
4274
|
if (!t)
|
|
4268
4275
|
throw new Error("bbox is required");
|
|
4269
4276
|
if (!Array.isArray(t))
|
|
@@ -4275,44 +4282,44 @@ function zl(t) {
|
|
|
4275
4282
|
throw new Error("bbox must only contain numbers");
|
|
4276
4283
|
});
|
|
4277
4284
|
}
|
|
4278
|
-
function
|
|
4285
|
+
function Ya(t) {
|
|
4279
4286
|
if (!t)
|
|
4280
4287
|
throw new Error("id is required");
|
|
4281
4288
|
if (["string", "number"].indexOf(typeof t) === -1)
|
|
4282
4289
|
throw new Error("id must be a number or a string");
|
|
4283
4290
|
}
|
|
4284
|
-
const
|
|
4291
|
+
const Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4285
4292
|
__proto__: null,
|
|
4286
4293
|
areaFactors: xi,
|
|
4287
|
-
bearingToAzimuth:
|
|
4288
|
-
convertArea:
|
|
4289
|
-
convertLength:
|
|
4290
|
-
degreesToRadians:
|
|
4294
|
+
bearingToAzimuth: Fa,
|
|
4295
|
+
convertArea: Ua,
|
|
4296
|
+
convertLength: qa,
|
|
4297
|
+
degreesToRadians: Ha,
|
|
4291
4298
|
earthRadius: Se,
|
|
4292
4299
|
factors: Ui,
|
|
4293
4300
|
feature: Ne,
|
|
4294
4301
|
featureCollection: ht,
|
|
4295
|
-
geometry:
|
|
4296
|
-
geometryCollection:
|
|
4302
|
+
geometry: Ra,
|
|
4303
|
+
geometryCollection: Na,
|
|
4297
4304
|
isNumber: Mr,
|
|
4298
4305
|
isObject: Xi,
|
|
4299
|
-
lengthToDegrees:
|
|
4306
|
+
lengthToDegrees: Ba,
|
|
4300
4307
|
lengthToRadians: Wi,
|
|
4301
4308
|
lineString: Fe,
|
|
4302
|
-
lineStrings:
|
|
4309
|
+
lineStrings: Da,
|
|
4303
4310
|
multiLineString: Yi,
|
|
4304
|
-
multiPoint:
|
|
4311
|
+
multiPoint: Cs,
|
|
4305
4312
|
multiPolygon: ks,
|
|
4306
4313
|
point: ze,
|
|
4307
|
-
points:
|
|
4314
|
+
points: Ta,
|
|
4308
4315
|
polygon: zi,
|
|
4309
|
-
polygons:
|
|
4316
|
+
polygons: Ia,
|
|
4310
4317
|
radiansToDegrees: Ts,
|
|
4311
4318
|
radiansToLength: Rs,
|
|
4312
|
-
round:
|
|
4313
|
-
unitsFactors:
|
|
4314
|
-
validateBBox:
|
|
4315
|
-
validateId:
|
|
4319
|
+
round: ja,
|
|
4320
|
+
unitsFactors: ka,
|
|
4321
|
+
validateBBox: za,
|
|
4322
|
+
validateId: Ya
|
|
4316
4323
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4317
4324
|
function Is(t) {
|
|
4318
4325
|
if (!t)
|
|
@@ -4345,48 +4352,48 @@ function Ie(t, e, r) {
|
|
|
4345
4352
|
throw new Error("point is required");
|
|
4346
4353
|
if (!e)
|
|
4347
4354
|
throw new Error("polygon is required");
|
|
4348
|
-
var i = Is(t), n = Nt(e), s = n.type, o = e.bbox,
|
|
4349
|
-
if (o &&
|
|
4355
|
+
var i = Is(t), n = Nt(e), s = n.type, o = e.bbox, a = n.coordinates;
|
|
4356
|
+
if (o && Xa(i, o) === !1)
|
|
4350
4357
|
return !1;
|
|
4351
|
-
s === "Polygon" && (
|
|
4352
|
-
for (var
|
|
4353
|
-
if (Un(i,
|
|
4354
|
-
for (var f = !1, p = 1; p <
|
|
4355
|
-
Un(i,
|
|
4356
|
-
f || (
|
|
4358
|
+
s === "Polygon" && (a = [a]);
|
|
4359
|
+
for (var l = !1, h = 0; h < a.length && !l; h++)
|
|
4360
|
+
if (Un(i, a[h][0], r.ignoreBoundary)) {
|
|
4361
|
+
for (var f = !1, p = 1; p < a[h].length && !f; )
|
|
4362
|
+
Un(i, a[h][p], !r.ignoreBoundary) && (f = !0), p++;
|
|
4363
|
+
f || (l = !0);
|
|
4357
4364
|
}
|
|
4358
|
-
return
|
|
4365
|
+
return l;
|
|
4359
4366
|
}
|
|
4360
4367
|
function Un(t, e, r) {
|
|
4361
4368
|
var i = !1;
|
|
4362
4369
|
e[0][0] === e[e.length - 1][0] && e[0][1] === e[e.length - 1][1] && (e = e.slice(0, e.length - 1));
|
|
4363
4370
|
for (var n = 0, s = e.length - 1; n < e.length; s = n++) {
|
|
4364
|
-
var o = e[n][0],
|
|
4371
|
+
var o = e[n][0], a = e[n][1], l = e[s][0], h = e[s][1], f = t[1] * (o - l) + a * (l - t[0]) + h * (t[0] - o) === 0 && (o - t[0]) * (l - t[0]) <= 0 && (a - t[1]) * (h - t[1]) <= 0;
|
|
4365
4372
|
if (f)
|
|
4366
4373
|
return !r;
|
|
4367
|
-
var p =
|
|
4374
|
+
var p = a > t[1] != h > t[1] && t[0] < (l - o) * (t[1] - a) / (h - a) + o;
|
|
4368
4375
|
p && (i = !i);
|
|
4369
4376
|
}
|
|
4370
4377
|
return i;
|
|
4371
4378
|
}
|
|
4372
|
-
function
|
|
4379
|
+
function Xa(t, e) {
|
|
4373
4380
|
return e[0] <= t[0] && e[1] <= t[1] && e[2] >= t[0] && e[3] >= t[1];
|
|
4374
4381
|
}
|
|
4375
4382
|
function Ft(t, e, r) {
|
|
4376
4383
|
if (t !== null)
|
|
4377
|
-
for (var i, n, s, o,
|
|
4378
|
-
h = $ ? t.features[B].geometry :
|
|
4379
|
-
for (var g = 0; g <
|
|
4384
|
+
for (var i, n, s, o, a, l, h, f = 0, p = 0, b, y = t.type, $ = y === "FeatureCollection", L = y === "Feature", G = $ ? t.features.length : 1, B = 0; B < G; B++) {
|
|
4385
|
+
h = $ ? t.features[B].geometry : L ? t.geometry : t, b = h ? h.type === "GeometryCollection" : !1, a = b ? h.geometries.length : 1;
|
|
4386
|
+
for (var g = 0; g < a; g++) {
|
|
4380
4387
|
var m = 0, w = 0;
|
|
4381
4388
|
if (o = b ? h.geometries[g] : h, o !== null) {
|
|
4382
|
-
|
|
4389
|
+
l = o.coordinates;
|
|
4383
4390
|
var S = o.type;
|
|
4384
4391
|
switch (f = r && (S === "Polygon" || S === "MultiPolygon") ? 1 : 0, S) {
|
|
4385
4392
|
case null:
|
|
4386
4393
|
break;
|
|
4387
4394
|
case "Point":
|
|
4388
4395
|
if (e(
|
|
4389
|
-
|
|
4396
|
+
l,
|
|
4390
4397
|
p,
|
|
4391
4398
|
B,
|
|
4392
4399
|
m,
|
|
@@ -4397,9 +4404,9 @@ function Ft(t, e, r) {
|
|
|
4397
4404
|
break;
|
|
4398
4405
|
case "LineString":
|
|
4399
4406
|
case "MultiPoint":
|
|
4400
|
-
for (i = 0; i <
|
|
4407
|
+
for (i = 0; i < l.length; i++) {
|
|
4401
4408
|
if (e(
|
|
4402
|
-
|
|
4409
|
+
l[i],
|
|
4403
4410
|
p,
|
|
4404
4411
|
B,
|
|
4405
4412
|
m,
|
|
@@ -4412,10 +4419,10 @@ function Ft(t, e, r) {
|
|
|
4412
4419
|
break;
|
|
4413
4420
|
case "Polygon":
|
|
4414
4421
|
case "MultiLineString":
|
|
4415
|
-
for (i = 0; i <
|
|
4416
|
-
for (n = 0; n <
|
|
4422
|
+
for (i = 0; i < l.length; i++) {
|
|
4423
|
+
for (n = 0; n < l[i].length - f; n++) {
|
|
4417
4424
|
if (e(
|
|
4418
|
-
|
|
4425
|
+
l[i][n],
|
|
4419
4426
|
p,
|
|
4420
4427
|
B,
|
|
4421
4428
|
m,
|
|
@@ -4429,11 +4436,11 @@ function Ft(t, e, r) {
|
|
|
4429
4436
|
S === "Polygon" && m++;
|
|
4430
4437
|
break;
|
|
4431
4438
|
case "MultiPolygon":
|
|
4432
|
-
for (i = 0; i <
|
|
4433
|
-
for (w = 0, n = 0; n <
|
|
4434
|
-
for (s = 0; s <
|
|
4439
|
+
for (i = 0; i < l.length; i++) {
|
|
4440
|
+
for (w = 0, n = 0; n < l[i].length; n++) {
|
|
4441
|
+
for (s = 0; s < l[i][n].length - f; s++) {
|
|
4435
4442
|
if (e(
|
|
4436
|
-
|
|
4443
|
+
l[i][n][s],
|
|
4437
4444
|
p,
|
|
4438
4445
|
B,
|
|
4439
4446
|
m,
|
|
@@ -4459,17 +4466,17 @@ function Ft(t, e, r) {
|
|
|
4459
4466
|
}
|
|
4460
4467
|
}
|
|
4461
4468
|
}
|
|
4462
|
-
function
|
|
4469
|
+
function Va(t, e, r, i) {
|
|
4463
4470
|
var n = r;
|
|
4464
4471
|
return Ft(
|
|
4465
4472
|
t,
|
|
4466
|
-
function(s, o,
|
|
4473
|
+
function(s, o, a, l, h) {
|
|
4467
4474
|
o === 0 && r === void 0 ? n = s : n = e(
|
|
4468
4475
|
n,
|
|
4469
4476
|
s,
|
|
4470
4477
|
o,
|
|
4471
|
-
l,
|
|
4472
4478
|
a,
|
|
4479
|
+
l,
|
|
4473
4480
|
h
|
|
4474
4481
|
);
|
|
4475
4482
|
},
|
|
@@ -4488,7 +4495,7 @@ function Ds(t, e) {
|
|
|
4488
4495
|
break;
|
|
4489
4496
|
}
|
|
4490
4497
|
}
|
|
4491
|
-
function
|
|
4498
|
+
function Ka(t, e, r) {
|
|
4492
4499
|
var i = r;
|
|
4493
4500
|
return Ds(t, function(n, s) {
|
|
4494
4501
|
s === 0 && r === void 0 ? i = n : i = e(i, n, s);
|
|
@@ -4501,23 +4508,23 @@ function Or(t, e) {
|
|
|
4501
4508
|
for (var r = 0; r < t.features.length && e(t.features[r], r) !== !1; r++)
|
|
4502
4509
|
;
|
|
4503
4510
|
}
|
|
4504
|
-
function
|
|
4511
|
+
function Ga(t, e, r) {
|
|
4505
4512
|
var i = r;
|
|
4506
4513
|
return Or(t, function(n, s) {
|
|
4507
4514
|
s === 0 && r === void 0 ? i = n : i = e(i, n, s);
|
|
4508
4515
|
}), i;
|
|
4509
4516
|
}
|
|
4510
|
-
function
|
|
4517
|
+
function Ja(t) {
|
|
4511
4518
|
var e = [];
|
|
4512
4519
|
return Ft(t, function(r) {
|
|
4513
4520
|
e.push(r);
|
|
4514
4521
|
}), e;
|
|
4515
4522
|
}
|
|
4516
4523
|
function Vi(t, e) {
|
|
4517
|
-
var r, i, n, s, o,
|
|
4518
|
-
for (r = 0; r <
|
|
4519
|
-
for (
|
|
4520
|
-
if (s =
|
|
4524
|
+
var r, i, n, s, o, a, l, h, f, p, b = 0, y = t.type === "FeatureCollection", $ = t.type === "Feature", L = y ? t.features.length : 1;
|
|
4525
|
+
for (r = 0; r < L; r++) {
|
|
4526
|
+
for (a = y ? t.features[r].geometry : $ ? t.geometry : t, h = y ? t.features[r].properties : $ ? t.properties : {}, f = y ? t.features[r].bbox : $ ? t.bbox : void 0, p = y ? t.features[r].id : $ ? t.id : void 0, l = a ? a.type === "GeometryCollection" : !1, o = l ? a.geometries.length : 1, n = 0; n < o; n++) {
|
|
4527
|
+
if (s = l ? a.geometries[n] : a, s === null) {
|
|
4521
4528
|
if (e(
|
|
4522
4529
|
null,
|
|
4523
4530
|
b,
|
|
@@ -4564,26 +4571,26 @@ function Vi(t, e) {
|
|
|
4564
4571
|
b++;
|
|
4565
4572
|
}
|
|
4566
4573
|
}
|
|
4567
|
-
function
|
|
4574
|
+
function Za(t, e, r) {
|
|
4568
4575
|
var i = r;
|
|
4569
4576
|
return Vi(
|
|
4570
4577
|
t,
|
|
4571
|
-
function(n, s, o,
|
|
4578
|
+
function(n, s, o, a, l) {
|
|
4572
4579
|
s === 0 && r === void 0 ? i = n : i = e(
|
|
4573
4580
|
i,
|
|
4574
4581
|
n,
|
|
4575
4582
|
s,
|
|
4576
4583
|
o,
|
|
4577
|
-
|
|
4578
|
-
|
|
4584
|
+
a,
|
|
4585
|
+
l
|
|
4579
4586
|
);
|
|
4580
4587
|
}
|
|
4581
4588
|
), i;
|
|
4582
4589
|
}
|
|
4583
4590
|
function et(t, e) {
|
|
4584
4591
|
Vi(t, function(r, i, n, s, o) {
|
|
4585
|
-
var
|
|
4586
|
-
switch (
|
|
4592
|
+
var a = r === null ? null : r.type;
|
|
4593
|
+
switch (a) {
|
|
4587
4594
|
case null:
|
|
4588
4595
|
case "Point":
|
|
4589
4596
|
case "LineString":
|
|
@@ -4594,21 +4601,21 @@ function et(t, e) {
|
|
|
4594
4601
|
0
|
|
4595
4602
|
) === !1 ? !1 : void 0;
|
|
4596
4603
|
}
|
|
4597
|
-
var
|
|
4598
|
-
switch (
|
|
4604
|
+
var l;
|
|
4605
|
+
switch (a) {
|
|
4599
4606
|
case "MultiPoint":
|
|
4600
|
-
|
|
4607
|
+
l = "Point";
|
|
4601
4608
|
break;
|
|
4602
4609
|
case "MultiLineString":
|
|
4603
|
-
|
|
4610
|
+
l = "LineString";
|
|
4604
4611
|
break;
|
|
4605
4612
|
case "MultiPolygon":
|
|
4606
|
-
|
|
4613
|
+
l = "Polygon";
|
|
4607
4614
|
break;
|
|
4608
4615
|
}
|
|
4609
4616
|
for (var h = 0; h < r.coordinates.length; h++) {
|
|
4610
4617
|
var f = r.coordinates[h], p = {
|
|
4611
|
-
type:
|
|
4618
|
+
type: l,
|
|
4612
4619
|
coordinates: f
|
|
4613
4620
|
};
|
|
4614
4621
|
if (e(Ne(p, n), i, h) === !1)
|
|
@@ -4616,7 +4623,7 @@ function et(t, e) {
|
|
|
4616
4623
|
}
|
|
4617
4624
|
});
|
|
4618
4625
|
}
|
|
4619
|
-
function
|
|
4626
|
+
function Qa(t, e, r) {
|
|
4620
4627
|
var i = r;
|
|
4621
4628
|
return et(
|
|
4622
4629
|
t,
|
|
@@ -4636,27 +4643,27 @@ function Ns(t, e) {
|
|
|
4636
4643
|
if (r.geometry) {
|
|
4637
4644
|
var o = r.geometry.type;
|
|
4638
4645
|
if (!(o === "Point" || o === "MultiPoint")) {
|
|
4639
|
-
var
|
|
4646
|
+
var a, l = 0, h = 0, f = 0;
|
|
4640
4647
|
if (Ft(
|
|
4641
4648
|
r,
|
|
4642
|
-
function(p, b, y, $,
|
|
4643
|
-
if (
|
|
4644
|
-
|
|
4649
|
+
function(p, b, y, $, L) {
|
|
4650
|
+
if (a === void 0 || i > l || $ > h || L > f) {
|
|
4651
|
+
a = p, l = i, h = $, f = L, s = 0;
|
|
4645
4652
|
return;
|
|
4646
4653
|
}
|
|
4647
4654
|
var G = Fe(
|
|
4648
|
-
[
|
|
4655
|
+
[a, p],
|
|
4649
4656
|
r.properties
|
|
4650
4657
|
);
|
|
4651
4658
|
if (e(
|
|
4652
4659
|
G,
|
|
4653
4660
|
i,
|
|
4654
4661
|
n,
|
|
4655
|
-
|
|
4662
|
+
L,
|
|
4656
4663
|
s
|
|
4657
4664
|
) === !1)
|
|
4658
4665
|
return !1;
|
|
4659
|
-
s++,
|
|
4666
|
+
s++, a = p;
|
|
4660
4667
|
}
|
|
4661
4668
|
) === !1)
|
|
4662
4669
|
return !1;
|
|
@@ -4668,13 +4675,13 @@ function ec(t, e, r) {
|
|
|
4668
4675
|
var i = r, n = !1;
|
|
4669
4676
|
return Ns(
|
|
4670
4677
|
t,
|
|
4671
|
-
function(s, o,
|
|
4678
|
+
function(s, o, a, l, h) {
|
|
4672
4679
|
n === !1 && r === void 0 ? i = s : i = e(
|
|
4673
4680
|
i,
|
|
4674
4681
|
s,
|
|
4675
4682
|
o,
|
|
4676
|
-
l,
|
|
4677
4683
|
a,
|
|
4684
|
+
l,
|
|
4678
4685
|
h
|
|
4679
4686
|
), n = !0;
|
|
4680
4687
|
}
|
|
@@ -4692,12 +4699,12 @@ function js(t, e) {
|
|
|
4692
4699
|
return !1;
|
|
4693
4700
|
break;
|
|
4694
4701
|
case "Polygon":
|
|
4695
|
-
for (var
|
|
4702
|
+
for (var a = 0; a < o.length; a++)
|
|
4696
4703
|
if (e(
|
|
4697
|
-
Fe(o[
|
|
4704
|
+
Fe(o[a], r.properties),
|
|
4698
4705
|
i,
|
|
4699
4706
|
n,
|
|
4700
|
-
|
|
4707
|
+
a
|
|
4701
4708
|
) === !1)
|
|
4702
4709
|
return !1;
|
|
4703
4710
|
break;
|
|
@@ -4709,13 +4716,13 @@ function tc(t, e, r) {
|
|
|
4709
4716
|
var i = r;
|
|
4710
4717
|
return js(
|
|
4711
4718
|
t,
|
|
4712
|
-
function(n, s, o,
|
|
4719
|
+
function(n, s, o, a) {
|
|
4713
4720
|
s === 0 && r === void 0 ? i = n : i = e(
|
|
4714
4721
|
i,
|
|
4715
4722
|
n,
|
|
4716
4723
|
s,
|
|
4717
4724
|
o,
|
|
4718
|
-
|
|
4725
|
+
a
|
|
4719
4726
|
);
|
|
4720
4727
|
}
|
|
4721
4728
|
), i;
|
|
@@ -4723,13 +4730,13 @@ function tc(t, e, r) {
|
|
|
4723
4730
|
function rc(t, e) {
|
|
4724
4731
|
if (e = e || {}, !Xi(e))
|
|
4725
4732
|
throw new Error("options is invalid");
|
|
4726
|
-
var r = e.featureIndex || 0, i = e.multiFeatureIndex || 0, n = e.geometryIndex || 0, s = e.segmentIndex || 0, o = e.properties,
|
|
4733
|
+
var r = e.featureIndex || 0, i = e.multiFeatureIndex || 0, n = e.geometryIndex || 0, s = e.segmentIndex || 0, o = e.properties, a;
|
|
4727
4734
|
switch (t.type) {
|
|
4728
4735
|
case "FeatureCollection":
|
|
4729
|
-
r < 0 && (r = t.features.length + r), o = o || t.features[r].properties,
|
|
4736
|
+
r < 0 && (r = t.features.length + r), o = o || t.features[r].properties, a = t.features[r].geometry;
|
|
4730
4737
|
break;
|
|
4731
4738
|
case "Feature":
|
|
4732
|
-
o = o || t.properties,
|
|
4739
|
+
o = o || t.properties, a = t.geometry;
|
|
4733
4740
|
break;
|
|
4734
4741
|
case "Point":
|
|
4735
4742
|
case "MultiPoint":
|
|
@@ -4738,47 +4745,47 @@ function rc(t, e) {
|
|
|
4738
4745
|
case "Polygon":
|
|
4739
4746
|
case "MultiLineString":
|
|
4740
4747
|
case "MultiPolygon":
|
|
4741
|
-
|
|
4748
|
+
a = t;
|
|
4742
4749
|
break;
|
|
4743
4750
|
default:
|
|
4744
4751
|
throw new Error("geojson is invalid");
|
|
4745
4752
|
}
|
|
4746
|
-
if (
|
|
4753
|
+
if (a === null)
|
|
4747
4754
|
return null;
|
|
4748
|
-
var
|
|
4749
|
-
switch (
|
|
4755
|
+
var l = a.coordinates;
|
|
4756
|
+
switch (a.type) {
|
|
4750
4757
|
case "Point":
|
|
4751
4758
|
case "MultiPoint":
|
|
4752
4759
|
return null;
|
|
4753
4760
|
case "LineString":
|
|
4754
|
-
return s < 0 && (s =
|
|
4755
|
-
[
|
|
4761
|
+
return s < 0 && (s = l.length + s - 1), Fe(
|
|
4762
|
+
[l[s], l[s + 1]],
|
|
4756
4763
|
o,
|
|
4757
4764
|
e
|
|
4758
4765
|
);
|
|
4759
4766
|
case "Polygon":
|
|
4760
|
-
return n < 0 && (n =
|
|
4767
|
+
return n < 0 && (n = l.length + n), s < 0 && (s = l[n].length + s - 1), Fe(
|
|
4761
4768
|
[
|
|
4762
|
-
|
|
4763
|
-
|
|
4769
|
+
l[n][s],
|
|
4770
|
+
l[n][s + 1]
|
|
4764
4771
|
],
|
|
4765
4772
|
o,
|
|
4766
4773
|
e
|
|
4767
4774
|
);
|
|
4768
4775
|
case "MultiLineString":
|
|
4769
|
-
return i < 0 && (i =
|
|
4776
|
+
return i < 0 && (i = l.length + i), s < 0 && (s = l[i].length + s - 1), Fe(
|
|
4770
4777
|
[
|
|
4771
|
-
|
|
4772
|
-
|
|
4778
|
+
l[i][s],
|
|
4779
|
+
l[i][s + 1]
|
|
4773
4780
|
],
|
|
4774
4781
|
o,
|
|
4775
4782
|
e
|
|
4776
4783
|
);
|
|
4777
4784
|
case "MultiPolygon":
|
|
4778
|
-
return i < 0 && (i =
|
|
4785
|
+
return i < 0 && (i = l.length + i), n < 0 && (n = l[i].length + n), s < 0 && (s = l[i][n].length - s - 1), Fe(
|
|
4779
4786
|
[
|
|
4780
|
-
|
|
4781
|
-
|
|
4787
|
+
l[i][n][s],
|
|
4788
|
+
l[i][n][s + 1]
|
|
4782
4789
|
],
|
|
4783
4790
|
o,
|
|
4784
4791
|
e
|
|
@@ -4789,13 +4796,13 @@ function rc(t, e) {
|
|
|
4789
4796
|
function ic(t, e) {
|
|
4790
4797
|
if (e = e || {}, !Xi(e))
|
|
4791
4798
|
throw new Error("options is invalid");
|
|
4792
|
-
var r = e.featureIndex || 0, i = e.multiFeatureIndex || 0, n = e.geometryIndex || 0, s = e.coordIndex || 0, o = e.properties,
|
|
4799
|
+
var r = e.featureIndex || 0, i = e.multiFeatureIndex || 0, n = e.geometryIndex || 0, s = e.coordIndex || 0, o = e.properties, a;
|
|
4793
4800
|
switch (t.type) {
|
|
4794
4801
|
case "FeatureCollection":
|
|
4795
|
-
r < 0 && (r = t.features.length + r), o = o || t.features[r].properties,
|
|
4802
|
+
r < 0 && (r = t.features.length + r), o = o || t.features[r].properties, a = t.features[r].geometry;
|
|
4796
4803
|
break;
|
|
4797
4804
|
case "Feature":
|
|
4798
|
-
o = o || t.properties,
|
|
4805
|
+
o = o || t.properties, a = t.geometry;
|
|
4799
4806
|
break;
|
|
4800
4807
|
case "Point":
|
|
4801
4808
|
case "MultiPoint":
|
|
@@ -4804,28 +4811,28 @@ function ic(t, e) {
|
|
|
4804
4811
|
case "Polygon":
|
|
4805
4812
|
case "MultiLineString":
|
|
4806
4813
|
case "MultiPolygon":
|
|
4807
|
-
|
|
4814
|
+
a = t;
|
|
4808
4815
|
break;
|
|
4809
4816
|
default:
|
|
4810
4817
|
throw new Error("geojson is invalid");
|
|
4811
4818
|
}
|
|
4812
|
-
if (
|
|
4819
|
+
if (a === null)
|
|
4813
4820
|
return null;
|
|
4814
|
-
var
|
|
4815
|
-
switch (
|
|
4821
|
+
var l = a.coordinates;
|
|
4822
|
+
switch (a.type) {
|
|
4816
4823
|
case "Point":
|
|
4817
|
-
return ze(
|
|
4824
|
+
return ze(l, o, e);
|
|
4818
4825
|
case "MultiPoint":
|
|
4819
|
-
return i < 0 && (i =
|
|
4826
|
+
return i < 0 && (i = l.length + i), ze(l[i], o, e);
|
|
4820
4827
|
case "LineString":
|
|
4821
|
-
return s < 0 && (s =
|
|
4828
|
+
return s < 0 && (s = l.length + s), ze(l[s], o, e);
|
|
4822
4829
|
case "Polygon":
|
|
4823
|
-
return n < 0 && (n =
|
|
4830
|
+
return n < 0 && (n = l.length + n), s < 0 && (s = l[n].length + s), ze(l[n][s], o, e);
|
|
4824
4831
|
case "MultiLineString":
|
|
4825
|
-
return i < 0 && (i =
|
|
4832
|
+
return i < 0 && (i = l.length + i), s < 0 && (s = l[i].length + s), ze(l[i][s], o, e);
|
|
4826
4833
|
case "MultiPolygon":
|
|
4827
|
-
return i < 0 && (i =
|
|
4828
|
-
|
|
4834
|
+
return i < 0 && (i = l.length + i), n < 0 && (n = l[i].length + n), s < 0 && (s = l[i][n].length - s), ze(
|
|
4835
|
+
l[i][n][s],
|
|
4829
4836
|
o,
|
|
4830
4837
|
e
|
|
4831
4838
|
);
|
|
@@ -4834,21 +4841,21 @@ function ic(t, e) {
|
|
|
4834
4841
|
}
|
|
4835
4842
|
const nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4836
4843
|
__proto__: null,
|
|
4837
|
-
coordAll:
|
|
4844
|
+
coordAll: Ja,
|
|
4838
4845
|
coordEach: Ft,
|
|
4839
|
-
coordReduce:
|
|
4846
|
+
coordReduce: Va,
|
|
4840
4847
|
featureEach: Or,
|
|
4841
|
-
featureReduce:
|
|
4848
|
+
featureReduce: Ga,
|
|
4842
4849
|
findPoint: ic,
|
|
4843
4850
|
findSegment: rc,
|
|
4844
4851
|
flattenEach: et,
|
|
4845
|
-
flattenReduce:
|
|
4852
|
+
flattenReduce: Qa,
|
|
4846
4853
|
geomEach: Vi,
|
|
4847
|
-
geomReduce:
|
|
4854
|
+
geomReduce: Za,
|
|
4848
4855
|
lineEach: js,
|
|
4849
4856
|
lineReduce: tc,
|
|
4850
4857
|
propEach: Ds,
|
|
4851
|
-
propReduce:
|
|
4858
|
+
propReduce: Ka,
|
|
4852
4859
|
segmentEach: Ns,
|
|
4853
4860
|
segmentReduce: ec
|
|
4854
4861
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -4882,24 +4889,24 @@ function oc(t, e) {
|
|
|
4882
4889
|
var r = [];
|
|
4883
4890
|
return t.reduce(function(i, n) {
|
|
4884
4891
|
var s = Fe([i, n], e);
|
|
4885
|
-
return s.bbox =
|
|
4892
|
+
return s.bbox = lc(i, n), r.push(s), n;
|
|
4886
4893
|
}), r;
|
|
4887
4894
|
}
|
|
4888
|
-
function
|
|
4889
|
-
var r = t[0], i = t[1], n = e[0], s = e[1], o = r < n ? r : n,
|
|
4890
|
-
return [o,
|
|
4895
|
+
function lc(t, e) {
|
|
4896
|
+
var r = t[0], i = t[1], n = e[0], s = e[1], o = r < n ? r : n, a = i < s ? i : s, l = r > n ? r : n, h = i > s ? i : s;
|
|
4897
|
+
return [o, a, l, h];
|
|
4891
4898
|
}
|
|
4892
4899
|
var Ki = { exports: {} }, Bs = { exports: {} };
|
|
4893
4900
|
(function(t, e) {
|
|
4894
4901
|
(function(r, i) {
|
|
4895
4902
|
t.exports = i();
|
|
4896
|
-
})(
|
|
4903
|
+
})(Ct, function() {
|
|
4897
4904
|
function r(g, m, w, S, E) {
|
|
4898
4905
|
(function A(k, F, H, I, te) {
|
|
4899
4906
|
for (; I > H; ) {
|
|
4900
4907
|
if (I - H > 600) {
|
|
4901
|
-
var
|
|
4902
|
-
A(k, F,
|
|
4908
|
+
var le = I - H + 1, O = F - H + 1, P = Math.log(le), M = 0.5 * Math.exp(2 * P / 3), N = 0.5 * Math.sqrt(P * M * (le - M) / le) * (O - le / 2 < 0 ? -1 : 1), C = Math.max(H, Math.floor(F - O * M / le + N)), V = Math.min(I, Math.floor(F + (le - O) * M / le + N));
|
|
4909
|
+
A(k, F, C, V, te);
|
|
4903
4910
|
}
|
|
4904
4911
|
var U = k[F], se = H, re = I;
|
|
4905
4912
|
for (i(k, H, F), te(k[I], U) > 0 && i(k, H, I); se < re; ) {
|
|
@@ -4930,10 +4937,10 @@ var Ki = { exports: {} }, Bs = { exports: {} };
|
|
|
4930
4937
|
return S;
|
|
4931
4938
|
return -1;
|
|
4932
4939
|
}
|
|
4933
|
-
function
|
|
4934
|
-
|
|
4940
|
+
function a(g, m) {
|
|
4941
|
+
l(g, 0, g.children.length, m, g);
|
|
4935
4942
|
}
|
|
4936
|
-
function
|
|
4943
|
+
function l(g, m, w, S, E) {
|
|
4937
4944
|
E || (E = G(null)), E.minX = 1 / 0, E.minY = 1 / 0, E.maxX = -1 / 0, E.maxY = -1 / 0;
|
|
4938
4945
|
for (var A = m; A < w; A++) {
|
|
4939
4946
|
var k = g.children[A];
|
|
@@ -4959,7 +4966,7 @@ var Ki = { exports: {} }, Bs = { exports: {} };
|
|
|
4959
4966
|
function $(g, m) {
|
|
4960
4967
|
return g.minX <= m.minX && g.minY <= m.minY && m.maxX <= g.maxX && m.maxY <= g.maxY;
|
|
4961
4968
|
}
|
|
4962
|
-
function
|
|
4969
|
+
function L(g, m) {
|
|
4963
4970
|
return m.minX <= g.maxX && m.minY <= g.maxY && m.maxX >= g.minX && m.maxY >= g.minY;
|
|
4964
4971
|
}
|
|
4965
4972
|
function G(g) {
|
|
@@ -4976,24 +4983,24 @@ var Ki = { exports: {} }, Bs = { exports: {} };
|
|
|
4976
4983
|
return this._all(this.data, []);
|
|
4977
4984
|
}, s.prototype.search = function(g) {
|
|
4978
4985
|
var m = this.data, w = [];
|
|
4979
|
-
if (!
|
|
4986
|
+
if (!L(g, m))
|
|
4980
4987
|
return w;
|
|
4981
4988
|
for (var S = this.toBBox, E = []; m; ) {
|
|
4982
4989
|
for (var A = 0; A < m.children.length; A++) {
|
|
4983
4990
|
var k = m.children[A], F = m.leaf ? S(k) : k;
|
|
4984
|
-
|
|
4991
|
+
L(g, F) && (m.leaf ? w.push(k) : $(g, F) ? this._all(k, w) : E.push(k));
|
|
4985
4992
|
}
|
|
4986
4993
|
m = E.pop();
|
|
4987
4994
|
}
|
|
4988
4995
|
return w;
|
|
4989
4996
|
}, s.prototype.collides = function(g) {
|
|
4990
4997
|
var m = this.data;
|
|
4991
|
-
if (!
|
|
4998
|
+
if (!L(g, m))
|
|
4992
4999
|
return !1;
|
|
4993
5000
|
for (var w = []; m; ) {
|
|
4994
5001
|
for (var S = 0; S < m.children.length; S++) {
|
|
4995
5002
|
var E = m.children[S], A = m.leaf ? this.toBBox(E) : E;
|
|
4996
|
-
if (
|
|
5003
|
+
if (L(g, A)) {
|
|
4997
5004
|
if (m.leaf || $(g, A))
|
|
4998
5005
|
return !0;
|
|
4999
5006
|
w.push(E);
|
|
@@ -5057,28 +5064,28 @@ var Ki = { exports: {} }, Bs = { exports: {} };
|
|
|
5057
5064
|
}, s.prototype._build = function(g, m, w, S) {
|
|
5058
5065
|
var E, A = w - m + 1, k = this._maxEntries;
|
|
5059
5066
|
if (A <= k)
|
|
5060
|
-
return
|
|
5067
|
+
return a(E = G(g.slice(m, w + 1)), this.toBBox), E;
|
|
5061
5068
|
S || (S = Math.ceil(Math.log(A) / Math.log(k)), k = Math.ceil(A / Math.pow(k, S - 1))), (E = G([])).leaf = !1, E.height = S;
|
|
5062
5069
|
var F = Math.ceil(A / k), H = F * Math.ceil(Math.sqrt(k));
|
|
5063
5070
|
B(g, m, w, H, this.compareMinX);
|
|
5064
5071
|
for (var I = m; I <= w; I += H) {
|
|
5065
5072
|
var te = Math.min(I + H - 1, w);
|
|
5066
5073
|
B(g, I, te, F, this.compareMinY);
|
|
5067
|
-
for (var
|
|
5068
|
-
var O = Math.min(
|
|
5069
|
-
E.children.push(this._build(g,
|
|
5074
|
+
for (var le = I; le <= te; le += F) {
|
|
5075
|
+
var O = Math.min(le + F - 1, te);
|
|
5076
|
+
E.children.push(this._build(g, le, O, S - 1));
|
|
5070
5077
|
}
|
|
5071
5078
|
}
|
|
5072
|
-
return
|
|
5079
|
+
return a(E, this.toBBox), E;
|
|
5073
5080
|
}, s.prototype._chooseSubtree = function(g, m, w, S) {
|
|
5074
5081
|
for (; S.push(m), !m.leaf && S.length - 1 !== w; ) {
|
|
5075
5082
|
for (var E = 1 / 0, A = 1 / 0, k = void 0, F = 0; F < m.children.length; F++) {
|
|
5076
|
-
var H = m.children[F], I = b(H), te = (
|
|
5083
|
+
var H = m.children[F], I = b(H), te = (le = g, O = H, (Math.max(O.maxX, le.maxX) - Math.min(O.minX, le.minX)) * (Math.max(O.maxY, le.maxY) - Math.min(O.minY, le.minY)) - I);
|
|
5077
5084
|
te < A ? (A = te, E = I < E ? I : E, k = H) : te === A && I < E && (E = I, k = H);
|
|
5078
5085
|
}
|
|
5079
5086
|
m = k || m.children[0];
|
|
5080
5087
|
}
|
|
5081
|
-
var
|
|
5088
|
+
var le, O;
|
|
5082
5089
|
return m;
|
|
5083
5090
|
}, s.prototype._insert = function(g, m, w) {
|
|
5084
5091
|
var S = w ? g : this.toBBox(g), E = [], A = this._chooseSubtree(S, this.data, m, E);
|
|
@@ -5089,13 +5096,13 @@ var Ki = { exports: {} }, Bs = { exports: {} };
|
|
|
5089
5096
|
var w = g[m], S = w.children.length, E = this._minEntries;
|
|
5090
5097
|
this._chooseSplitAxis(w, E, S);
|
|
5091
5098
|
var A = this._chooseSplitIndex(w, E, S), k = G(w.children.splice(A, w.children.length - A));
|
|
5092
|
-
k.height = w.height, k.leaf = w.leaf,
|
|
5099
|
+
k.height = w.height, k.leaf = w.leaf, a(w, this.toBBox), a(k, this.toBBox), m ? g[m - 1].children.push(k) : this._splitRoot(w, k);
|
|
5093
5100
|
}, s.prototype._splitRoot = function(g, m) {
|
|
5094
|
-
this.data = G([g, m]), this.data.height = g.height + 1, this.data.leaf = !1,
|
|
5101
|
+
this.data = G([g, m]), this.data.height = g.height + 1, this.data.leaf = !1, a(this.data, this.toBBox);
|
|
5095
5102
|
}, s.prototype._chooseSplitIndex = function(g, m, w) {
|
|
5096
|
-
for (var S, E, A, k, F, H, I, te = 1 / 0,
|
|
5097
|
-
var P =
|
|
5098
|
-
N < te ? (te = N, S = O,
|
|
5103
|
+
for (var S, E, A, k, F, H, I, te = 1 / 0, le = 1 / 0, O = m; O <= w - m; O++) {
|
|
5104
|
+
var P = l(g, 0, O, this.toBBox), M = l(g, O, w, this.toBBox), N = (E = P, A = M, k = void 0, F = void 0, H = void 0, I = void 0, k = Math.max(E.minX, A.minX), F = Math.max(E.minY, A.minY), H = Math.min(E.maxX, A.maxX), I = Math.min(E.maxY, A.maxY), Math.max(0, H - k) * Math.max(0, I - F)), C = b(P) + b(M);
|
|
5105
|
+
N < te ? (te = N, S = O, le = C < le ? C : le) : N === te && C < le && (le = C, S = O);
|
|
5099
5106
|
}
|
|
5100
5107
|
return S || w - m;
|
|
5101
5108
|
}, s.prototype._chooseSplitAxis = function(g, m, w) {
|
|
@@ -5103,13 +5110,13 @@ var Ki = { exports: {} }, Bs = { exports: {} };
|
|
|
5103
5110
|
this._allDistMargin(g, m, w, S) < this._allDistMargin(g, m, w, E) && g.children.sort(S);
|
|
5104
5111
|
}, s.prototype._allDistMargin = function(g, m, w, S) {
|
|
5105
5112
|
g.children.sort(S);
|
|
5106
|
-
for (var E = this.toBBox, A =
|
|
5113
|
+
for (var E = this.toBBox, A = l(g, 0, m, E), k = l(g, w - m, w, E), F = y(A) + y(k), H = m; H < w - m; H++) {
|
|
5107
5114
|
var I = g.children[H];
|
|
5108
5115
|
h(A, g.leaf ? E(I) : I), F += y(A);
|
|
5109
5116
|
}
|
|
5110
5117
|
for (var te = w - m - 1; te >= m; te--) {
|
|
5111
|
-
var
|
|
5112
|
-
h(k, g.leaf ? E(
|
|
5118
|
+
var le = g.children[te];
|
|
5119
|
+
h(k, g.leaf ? E(le) : le), F += y(k);
|
|
5113
5120
|
}
|
|
5114
5121
|
return F;
|
|
5115
5122
|
}, s.prototype._adjustParentBBoxes = function(g, m, w) {
|
|
@@ -5117,12 +5124,12 @@ var Ki = { exports: {} }, Bs = { exports: {} };
|
|
|
5117
5124
|
h(m[S], g);
|
|
5118
5125
|
}, s.prototype._condense = function(g) {
|
|
5119
5126
|
for (var m = g.length - 1, w = void 0; m >= 0; m--)
|
|
5120
|
-
g[m].children.length === 0 ? m > 0 ? (w = g[m - 1].children).splice(w.indexOf(g[m]), 1) : this.clear() :
|
|
5127
|
+
g[m].children.length === 0 ? m > 0 ? (w = g[m - 1].children).splice(w.indexOf(g[m]), 1) : this.clear() : a(g[m], this.toBBox);
|
|
5121
5128
|
}, s;
|
|
5122
5129
|
});
|
|
5123
5130
|
})(Bs);
|
|
5124
|
-
var
|
|
5125
|
-
const cc = /* @__PURE__ */ Ii(
|
|
5131
|
+
var ac = Bs.exports;
|
|
5132
|
+
const cc = /* @__PURE__ */ Ii(Wa), hc = /* @__PURE__ */ Ii(nc);
|
|
5126
5133
|
function _t(t) {
|
|
5127
5134
|
var e = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
5128
5135
|
return Ft(t, function(r) {
|
|
@@ -5134,7 +5141,7 @@ const uc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5134
5141
|
__proto__: null,
|
|
5135
5142
|
default: _t
|
|
5136
5143
|
}, Symbol.toStringTag, { value: "Module" })), dc = /* @__PURE__ */ Ii(uc);
|
|
5137
|
-
var Ue =
|
|
5144
|
+
var Ue = ac, Fs = cc, Hs = hc, Ot = dc.default, fc = Hs.featureEach;
|
|
5138
5145
|
Hs.coordEach;
|
|
5139
5146
|
Fs.polygon;
|
|
5140
5147
|
var Yn = Fs.featureCollection;
|
|
@@ -5207,11 +5214,11 @@ function Gi(t, e) {
|
|
|
5207
5214
|
}
|
|
5208
5215
|
var s = gc();
|
|
5209
5216
|
return s.load(zn(e)), Or(zn(t), function(o) {
|
|
5210
|
-
Or(s.search(o), function(
|
|
5211
|
-
var
|
|
5212
|
-
if (
|
|
5213
|
-
var h = Dt(
|
|
5214
|
-
r[h] || (r[h] = !0, i.push(
|
|
5217
|
+
Or(s.search(o), function(a) {
|
|
5218
|
+
var l = Wn(o, a);
|
|
5219
|
+
if (l) {
|
|
5220
|
+
var h = Dt(l).join(",");
|
|
5221
|
+
r[h] || (r[h] = !0, i.push(l));
|
|
5215
5222
|
}
|
|
5216
5223
|
});
|
|
5217
5224
|
}), ht(i);
|
|
@@ -5222,12 +5229,12 @@ function Wn(t, e) {
|
|
|
5222
5229
|
throw new Error("<intersects> line1 must only contain 2 coordinates");
|
|
5223
5230
|
if (i.length !== 2)
|
|
5224
5231
|
throw new Error("<intersects> line2 must only contain 2 coordinates");
|
|
5225
|
-
var n = r[0][0], s = r[0][1], o = r[1][0],
|
|
5232
|
+
var n = r[0][0], s = r[0][1], o = r[1][0], a = r[1][1], l = i[0][0], h = i[0][1], f = i[1][0], p = i[1][1], b = (p - h) * (o - n) - (f - l) * (a - s), y = (f - l) * (s - h) - (p - h) * (n - l), $ = (o - n) * (s - h) - (a - s) * (n - l);
|
|
5226
5233
|
if (b === 0)
|
|
5227
5234
|
return null;
|
|
5228
|
-
var
|
|
5229
|
-
if (
|
|
5230
|
-
var B = n +
|
|
5235
|
+
var L = y / b, G = $ / b;
|
|
5236
|
+
if (L >= 0 && L <= 1 && G >= 0 && G <= 1) {
|
|
5237
|
+
var B = n + L * (o - n), g = s + L * (a - s);
|
|
5231
5238
|
return ze([B, g]);
|
|
5232
5239
|
}
|
|
5233
5240
|
return null;
|
|
@@ -5329,16 +5336,16 @@ function wc(t, e) {
|
|
|
5329
5336
|
return !0;
|
|
5330
5337
|
}
|
|
5331
5338
|
for (var s = 0, o = e.coordinates[0]; s < o.length; s++) {
|
|
5332
|
-
var
|
|
5333
|
-
if (Ie(
|
|
5339
|
+
var a = o[s];
|
|
5340
|
+
if (Ie(a, t))
|
|
5334
5341
|
return !0;
|
|
5335
5342
|
}
|
|
5336
|
-
var
|
|
5337
|
-
return
|
|
5343
|
+
var l = Gi(wi(t), wi(e));
|
|
5344
|
+
return l.features.length > 0;
|
|
5338
5345
|
}
|
|
5339
5346
|
function $c(t, e, r) {
|
|
5340
|
-
var i = r[0] - t[0], n = r[1] - t[1], s = e[0] - t[0], o = e[1] - t[1],
|
|
5341
|
-
return
|
|
5347
|
+
var i = r[0] - t[0], n = r[1] - t[1], s = e[0] - t[0], o = e[1] - t[1], a = i * o - n * s;
|
|
5348
|
+
return a !== 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];
|
|
5342
5349
|
}
|
|
5343
5350
|
function _c(t, e) {
|
|
5344
5351
|
return t[0] === e[0] && t[1] === e[1];
|
|
@@ -5363,21 +5370,21 @@ function Pr(t, e, r) {
|
|
|
5363
5370
|
return !1;
|
|
5364
5371
|
}
|
|
5365
5372
|
function Sc(t, e, r, i, n) {
|
|
5366
|
-
var s = r[0], o = r[1],
|
|
5373
|
+
var s = r[0], o = r[1], a = t[0], l = t[1], h = e[0], f = e[1], p = r[0] - a, b = r[1] - l, y = h - a, $ = f - l, L = p * $ - b * y;
|
|
5367
5374
|
if (n !== null) {
|
|
5368
|
-
if (Math.abs(
|
|
5375
|
+
if (Math.abs(L) > n)
|
|
5369
5376
|
return !1;
|
|
5370
|
-
} else if (
|
|
5377
|
+
} else if (L !== 0)
|
|
5371
5378
|
return !1;
|
|
5372
5379
|
if (i) {
|
|
5373
5380
|
if (i === "start")
|
|
5374
|
-
return Math.abs(y) >= Math.abs($) ? y > 0 ?
|
|
5381
|
+
return Math.abs(y) >= Math.abs($) ? y > 0 ? a < s && s <= h : h <= s && s < a : $ > 0 ? l < o && o <= f : f <= o && o < l;
|
|
5375
5382
|
if (i === "end")
|
|
5376
|
-
return Math.abs(y) >= Math.abs($) ? y > 0 ?
|
|
5383
|
+
return Math.abs(y) >= Math.abs($) ? y > 0 ? a <= s && s < h : h < s && s <= a : $ > 0 ? l <= o && o < f : f < o && o <= l;
|
|
5377
5384
|
if (i === "both")
|
|
5378
|
-
return Math.abs(y) >= Math.abs($) ? y > 0 ?
|
|
5385
|
+
return Math.abs(y) >= Math.abs($) ? y > 0 ? a < s && s < h : h < s && s < a : $ > 0 ? l < o && o < f : f < o && o < l;
|
|
5379
5386
|
} else
|
|
5380
|
-
return Math.abs(y) >= Math.abs($) ? y > 0 ?
|
|
5387
|
+
return Math.abs(y) >= Math.abs($) ? y > 0 ? a <= s && s <= h : h <= s && s <= a : $ > 0 ? l <= o && o <= f : f <= o && o <= l;
|
|
5381
5388
|
return !1;
|
|
5382
5389
|
}
|
|
5383
5390
|
function Ac(t, e) {
|
|
@@ -5403,14 +5410,14 @@ function Ac(t, e) {
|
|
|
5403
5410
|
return Pc(r, i);
|
|
5404
5411
|
case "Polygon":
|
|
5405
5412
|
case "MultiPolygon":
|
|
5406
|
-
return
|
|
5413
|
+
return Lc(r, i);
|
|
5407
5414
|
default:
|
|
5408
5415
|
throw new Error("feature2 " + s + " geometry not supported");
|
|
5409
5416
|
}
|
|
5410
5417
|
case "LineString":
|
|
5411
5418
|
switch (s) {
|
|
5412
5419
|
case "LineString":
|
|
5413
|
-
return
|
|
5420
|
+
return Cc(r, i);
|
|
5414
5421
|
case "Polygon":
|
|
5415
5422
|
case "MultiPolygon":
|
|
5416
5423
|
return kc(r, i);
|
|
@@ -5455,7 +5462,7 @@ function Pc(t, e) {
|
|
|
5455
5462
|
}
|
|
5456
5463
|
return r;
|
|
5457
5464
|
}
|
|
5458
|
-
function
|
|
5465
|
+
function Lc(t, e) {
|
|
5459
5466
|
for (var r = !0, i = !1, n = 0; n < t.coordinates.length; n++) {
|
|
5460
5467
|
if (i = Ie(t.coordinates[1], e), !i) {
|
|
5461
5468
|
r = !1;
|
|
@@ -5467,7 +5474,7 @@ function Cc(t, e) {
|
|
|
5467
5474
|
}
|
|
5468
5475
|
return r && i;
|
|
5469
5476
|
}
|
|
5470
|
-
function
|
|
5477
|
+
function Cc(t, e) {
|
|
5471
5478
|
for (var r = 0; r < t.coordinates.length; r++)
|
|
5472
5479
|
if (!Pr(t.coordinates[r], e))
|
|
5473
5480
|
return !1;
|
|
@@ -5524,20 +5531,20 @@ let $i = class extends _e {
|
|
|
5524
5531
|
return this;
|
|
5525
5532
|
}
|
|
5526
5533
|
render() {
|
|
5527
|
-
return
|
|
5534
|
+
return de(
|
|
5528
5535
|
this.filterObject,
|
|
5529
5536
|
() => {
|
|
5530
5537
|
var t;
|
|
5531
|
-
return
|
|
5538
|
+
return X`
|
|
5532
5539
|
<form style="display: inline">
|
|
5533
5540
|
${Kt(
|
|
5534
5541
|
["intersects", "within"],
|
|
5535
|
-
(e) =>
|
|
5542
|
+
(e) => X`
|
|
5536
5543
|
<label>
|
|
5537
5544
|
<input
|
|
5538
5545
|
type="radio"
|
|
5539
5546
|
name="mode"
|
|
5540
|
-
.checked="${this.filterObject.state.mode === e ||
|
|
5547
|
+
.checked="${this.filterObject.state.mode === e || oe}
|
|
5541
5548
|
"
|
|
5542
5549
|
value="${e}"
|
|
5543
5550
|
@click="${() => {
|
|
@@ -5573,9 +5580,9 @@ or([
|
|
|
5573
5580
|
$i = or([
|
|
5574
5581
|
Re("eox-itemfilter-spatial")
|
|
5575
5582
|
], $i);
|
|
5576
|
-
let
|
|
5583
|
+
let Lr = class extends _e {
|
|
5577
5584
|
render() {
|
|
5578
|
-
return
|
|
5585
|
+
return X`<eox-map part="map" style="height: 400px"></eox-map>`;
|
|
5579
5586
|
}
|
|
5580
5587
|
firstUpdated() {
|
|
5581
5588
|
this.setup();
|
|
@@ -5664,13 +5671,13 @@ let Cr = class extends _e {
|
|
|
5664
5671
|
};
|
|
5665
5672
|
or([
|
|
5666
5673
|
J()
|
|
5667
|
-
],
|
|
5674
|
+
], Lr.prototype, "geometry", 2);
|
|
5668
5675
|
or([
|
|
5669
5676
|
Ke()
|
|
5670
|
-
],
|
|
5671
|
-
|
|
5677
|
+
], Lr.prototype, "eoxMap", 2);
|
|
5678
|
+
Lr = or([
|
|
5672
5679
|
Re("eox-itemfilter-spatial-filter")
|
|
5673
|
-
],
|
|
5680
|
+
], Lr);
|
|
5674
5681
|
var Bc = Object.defineProperty, Fc = Object.getOwnPropertyDescriptor, Ws = (t, e, r, i) => {
|
|
5675
5682
|
for (var n = i > 1 ? void 0 : i ? Fc(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5676
5683
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
@@ -5696,9 +5703,9 @@ let _i = class extends _e {
|
|
|
5696
5703
|
return this;
|
|
5697
5704
|
}
|
|
5698
5705
|
render() {
|
|
5699
|
-
return
|
|
5706
|
+
return de(
|
|
5700
5707
|
this.filterObject,
|
|
5701
|
-
() =>
|
|
5708
|
+
() => X`
|
|
5702
5709
|
<style>
|
|
5703
5710
|
input {
|
|
5704
5711
|
max-height: 100%;
|
|
@@ -5741,12 +5748,12 @@ let ut = class extends _e {
|
|
|
5741
5748
|
};
|
|
5742
5749
|
}
|
|
5743
5750
|
_handleKeyboard(t) {
|
|
5744
|
-
var s, o,
|
|
5751
|
+
var s, o, a, l, h, f;
|
|
5745
5752
|
if (this.clientHeight === 0)
|
|
5746
5753
|
return;
|
|
5747
5754
|
const e = this.items.find((p) => p._inProgress), r = (e == null ? void 0 : e.type) === "text" && (e == null ? void 0 : e.dirty), i = this.renderRoot.querySelector(
|
|
5748
5755
|
"#inline-input"
|
|
5749
|
-
), n = (f = (h = (
|
|
5756
|
+
), n = (f = (h = (l = (a = (o = (s = this.renderRoot) == null ? void 0 : s.querySelector("[data-filter]")) == null ? void 0 : o.querySelector("eox-autocomplete")) == null ? void 0 : a.renderRoot) == null ? void 0 : l.querySelector("eox-selectionlist")) == null ? void 0 : h.renderRoot) == null ? void 0 : f.querySelector("li.highlighted");
|
|
5750
5757
|
if (t == "Enter" && n && i.selectionStart && (n.querySelector("input[type=checkbox]").dispatchEvent(new Event("change")), i.selectionStart = 0, i.value = "", i.focus()), ["Escape", "Space"].includes(t) || t == "Enter" && r) {
|
|
5751
5758
|
e && (delete e._inProgress, this.requestUpdate(), this.inputText = "", this.renderRoot.querySelector("input").value = "", this.renderRoot.querySelector("input").focus()), this.renderRoot.querySelector("[slot=content]").classList.remove("hidden");
|
|
5752
5759
|
return;
|
|
@@ -5767,13 +5774,13 @@ let ut = class extends _e {
|
|
|
5767
5774
|
), window.removeEventListener("click", this._clickOutsideListener);
|
|
5768
5775
|
}
|
|
5769
5776
|
render() {
|
|
5770
|
-
return
|
|
5777
|
+
return X`
|
|
5771
5778
|
<style>
|
|
5772
5779
|
:host,
|
|
5773
5780
|
.container {
|
|
5774
5781
|
display: flex;
|
|
5775
5782
|
}
|
|
5776
|
-
${this.unstyled ?
|
|
5783
|
+
${this.unstyled ? oe : X`
|
|
5777
5784
|
${Ni} :host { position: relative; } .container { width: 100%;
|
|
5778
5785
|
position: relative; border: 1px solid #00417066; border-radius:
|
|
5779
5786
|
4px; height: 24px; padding: 5px; flex: 1; justify-content:
|
|
@@ -5832,9 +5839,9 @@ let ut = class extends _e {
|
|
|
5832
5839
|
}}
|
|
5833
5840
|
/>
|
|
5834
5841
|
<div slot="content">
|
|
5835
|
-
${
|
|
5842
|
+
${de(
|
|
5836
5843
|
!this.items.find((t) => t._inProgress),
|
|
5837
|
-
() =>
|
|
5844
|
+
() => X`
|
|
5838
5845
|
<eox-selectionlist
|
|
5839
5846
|
.filter=${this.inputText}
|
|
5840
5847
|
.idProperty=${this.idProperty}
|
|
@@ -5869,10 +5876,10 @@ let ut = class extends _e {
|
|
|
5869
5876
|
</eox-selectionlist>
|
|
5870
5877
|
`
|
|
5871
5878
|
)}
|
|
5872
|
-
${
|
|
5879
|
+
${de(
|
|
5873
5880
|
this.items.find((t) => t._inProgress),
|
|
5874
5881
|
() => $r`
|
|
5875
|
-
<eox-itemfilter-${
|
|
5882
|
+
<eox-itemfilter-${Lt(
|
|
5876
5883
|
this.items.find((t) => t._inProgress).type
|
|
5877
5884
|
)}
|
|
5878
5885
|
data-filter=${this.items.find((t) => t._inProgress).id}
|
|
@@ -5886,7 +5893,7 @@ let ut = class extends _e {
|
|
|
5886
5893
|
@click=${(t) => {
|
|
5887
5894
|
t.stopPropagation();
|
|
5888
5895
|
}}
|
|
5889
|
-
></eox-itemfilter-${
|
|
5896
|
+
></eox-itemfilter-${Lt(
|
|
5890
5897
|
this.items.find((t) => t._inProgress).type
|
|
5891
5898
|
)}>
|
|
5892
5899
|
`
|
|
@@ -5895,9 +5902,9 @@ let ut = class extends _e {
|
|
|
5895
5902
|
</eox-dropdown>
|
|
5896
5903
|
</div>
|
|
5897
5904
|
</div>
|
|
5898
|
-
${
|
|
5905
|
+
${de(
|
|
5899
5906
|
this.items.filter((t) => t.stringifiedState || t._inProgress).length > 0,
|
|
5900
|
-
() =>
|
|
5907
|
+
() => X`
|
|
5901
5908
|
<div class="button-container">
|
|
5902
5909
|
<button
|
|
5903
5910
|
class="icon"
|
|
@@ -5964,7 +5971,7 @@ function Vs(t) {
|
|
|
5964
5971
|
function Xc(t) {
|
|
5965
5972
|
return Vs(t) && t !== null;
|
|
5966
5973
|
}
|
|
5967
|
-
function
|
|
5974
|
+
function Ce(t) {
|
|
5968
5975
|
return t != null;
|
|
5969
5976
|
}
|
|
5970
5977
|
function gi(t) {
|
|
@@ -6017,23 +6024,23 @@ function Ei(t) {
|
|
|
6017
6024
|
}
|
|
6018
6025
|
function eh(t, e) {
|
|
6019
6026
|
let r = [], i = !1;
|
|
6020
|
-
const n = (s, o,
|
|
6021
|
-
if (
|
|
6022
|
-
if (!o[
|
|
6027
|
+
const n = (s, o, a) => {
|
|
6028
|
+
if (Ce(s))
|
|
6029
|
+
if (!o[a])
|
|
6023
6030
|
r.push(s);
|
|
6024
6031
|
else {
|
|
6025
|
-
let
|
|
6026
|
-
const h = s[
|
|
6027
|
-
if (!
|
|
6032
|
+
let l = o[a];
|
|
6033
|
+
const h = s[l];
|
|
6034
|
+
if (!Ce(h))
|
|
6028
6035
|
return;
|
|
6029
|
-
if (
|
|
6036
|
+
if (a === o.length - 1 && (Ye(h) || Xs(h) || Wc(h)))
|
|
6030
6037
|
r.push(Yc(h));
|
|
6031
6038
|
else if (tt(h)) {
|
|
6032
6039
|
i = !0;
|
|
6033
6040
|
for (let f = 0, p = h.length; f < p; f += 1)
|
|
6034
|
-
n(h[f], o,
|
|
6041
|
+
n(h[f], o, a + 1);
|
|
6035
6042
|
} else
|
|
6036
|
-
o.length && n(h, o,
|
|
6043
|
+
o.length && n(h, o, a + 1);
|
|
6037
6044
|
}
|
|
6038
6045
|
};
|
|
6039
6046
|
return n(t, Ye(e) ? e.split(".") : e, 0), i ? r : r[0];
|
|
@@ -6103,8 +6110,8 @@ function oh(t = 1, e = 3) {
|
|
|
6103
6110
|
const s = n.match(sh).length;
|
|
6104
6111
|
if (r.has(s))
|
|
6105
6112
|
return r.get(s);
|
|
6106
|
-
const o = 1 / Math.pow(s, 0.5 * t),
|
|
6107
|
-
return r.set(s,
|
|
6113
|
+
const o = 1 / Math.pow(s, 0.5 * t), a = parseFloat(Math.round(o * i) / i);
|
|
6114
|
+
return r.set(s, a), a;
|
|
6108
6115
|
},
|
|
6109
6116
|
clear() {
|
|
6110
6117
|
r.clear();
|
|
@@ -6154,7 +6161,7 @@ class Ji {
|
|
|
6154
6161
|
return this.records.length;
|
|
6155
6162
|
}
|
|
6156
6163
|
_addString(e, r) {
|
|
6157
|
-
if (!
|
|
6164
|
+
if (!Ce(e) || gi(e))
|
|
6158
6165
|
return;
|
|
6159
6166
|
let i = {
|
|
6160
6167
|
v: e,
|
|
@@ -6167,35 +6174,35 @@ class Ji {
|
|
|
6167
6174
|
let i = { i: r, $: {} };
|
|
6168
6175
|
this.keys.forEach((n, s) => {
|
|
6169
6176
|
let o = n.getFn ? n.getFn(e) : this.getFn(e, n.path);
|
|
6170
|
-
if (
|
|
6177
|
+
if (Ce(o)) {
|
|
6171
6178
|
if (tt(o)) {
|
|
6172
|
-
let
|
|
6173
|
-
const
|
|
6174
|
-
for (;
|
|
6175
|
-
const { nestedArrIndex: h, value: f } =
|
|
6176
|
-
if (
|
|
6179
|
+
let a = [];
|
|
6180
|
+
const l = [{ nestedArrIndex: -1, value: o }];
|
|
6181
|
+
for (; l.length; ) {
|
|
6182
|
+
const { nestedArrIndex: h, value: f } = l.pop();
|
|
6183
|
+
if (Ce(f))
|
|
6177
6184
|
if (Ye(f) && !gi(f)) {
|
|
6178
6185
|
let p = {
|
|
6179
6186
|
v: f,
|
|
6180
6187
|
i: h,
|
|
6181
6188
|
n: this.norm.get(f)
|
|
6182
6189
|
};
|
|
6183
|
-
|
|
6190
|
+
a.push(p);
|
|
6184
6191
|
} else
|
|
6185
6192
|
tt(f) && f.forEach((p, b) => {
|
|
6186
|
-
|
|
6193
|
+
l.push({
|
|
6187
6194
|
nestedArrIndex: b,
|
|
6188
6195
|
value: p
|
|
6189
6196
|
});
|
|
6190
6197
|
});
|
|
6191
6198
|
}
|
|
6192
|
-
i.$[s] =
|
|
6199
|
+
i.$[s] = a;
|
|
6193
6200
|
} else if (Ye(o) && !gi(o)) {
|
|
6194
|
-
let
|
|
6201
|
+
let a = {
|
|
6195
6202
|
v: o,
|
|
6196
6203
|
n: this.norm.get(o)
|
|
6197
6204
|
};
|
|
6198
|
-
i.$[s] =
|
|
6205
|
+
i.$[s] = a;
|
|
6199
6206
|
}
|
|
6200
6207
|
}
|
|
6201
6208
|
}), this.records.push(i);
|
|
@@ -6211,7 +6218,7 @@ function Js(t, e, { getFn: r = K.getFn, fieldNormWeight: i = K.fieldNormWeight }
|
|
|
6211
6218
|
const n = new Ji({ getFn: r, fieldNormWeight: i });
|
|
6212
6219
|
return n.setKeys(t.map(Gs)), n.setSources(e), n.create(), n;
|
|
6213
6220
|
}
|
|
6214
|
-
function
|
|
6221
|
+
function lh(t, { getFn: e = K.getFn, fieldNormWeight: r = K.fieldNormWeight } = {}) {
|
|
6215
6222
|
const { keys: i, records: n } = t, s = new Ji({ getFn: e, fieldNormWeight: r });
|
|
6216
6223
|
return s.setKeys(i), s.setIndexRecords(n), s;
|
|
6217
6224
|
}
|
|
@@ -6225,14 +6232,14 @@ function xr(t, {
|
|
|
6225
6232
|
const o = e / t.length;
|
|
6226
6233
|
if (s)
|
|
6227
6234
|
return o;
|
|
6228
|
-
const
|
|
6229
|
-
return n ? o +
|
|
6235
|
+
const a = Math.abs(i - r);
|
|
6236
|
+
return n ? o + a / n : a ? 1 : o;
|
|
6230
6237
|
}
|
|
6231
|
-
function
|
|
6238
|
+
function ah(t = [], e = K.minMatchCharLength) {
|
|
6232
6239
|
let r = [], i = -1, n = -1, s = 0;
|
|
6233
6240
|
for (let o = t.length; s < o; s += 1) {
|
|
6234
|
-
let
|
|
6235
|
-
|
|
6241
|
+
let a = t[s];
|
|
6242
|
+
a && i === -1 ? i = s : !a && i !== -1 && (n = s - 1, n - i + 1 >= e && r.push([i, n]), i = -1);
|
|
6236
6243
|
}
|
|
6237
6244
|
return t[s - 1] && s - i >= e && r.push([i, s - 1]), r;
|
|
6238
6245
|
}
|
|
@@ -6242,15 +6249,15 @@ function ch(t, e, r, {
|
|
|
6242
6249
|
distance: n = K.distance,
|
|
6243
6250
|
threshold: s = K.threshold,
|
|
6244
6251
|
findAllMatches: o = K.findAllMatches,
|
|
6245
|
-
minMatchCharLength:
|
|
6246
|
-
includeMatches:
|
|
6252
|
+
minMatchCharLength: a = K.minMatchCharLength,
|
|
6253
|
+
includeMatches: l = K.includeMatches,
|
|
6247
6254
|
ignoreLocation: h = K.ignoreLocation
|
|
6248
6255
|
} = {}) {
|
|
6249
6256
|
if (e.length > vt)
|
|
6250
6257
|
throw new Error(Gc(vt));
|
|
6251
6258
|
const f = e.length, p = t.length, b = Math.max(0, Math.min(i, p));
|
|
6252
6259
|
let y = s, $ = b;
|
|
6253
|
-
const
|
|
6260
|
+
const L = a > 1 || l, G = L ? Array(p) : [];
|
|
6254
6261
|
let B;
|
|
6255
6262
|
for (; (B = t.indexOf(e, $)) > -1; ) {
|
|
6256
6263
|
let A = xr(e, {
|
|
@@ -6259,7 +6266,7 @@ function ch(t, e, r, {
|
|
|
6259
6266
|
distance: n,
|
|
6260
6267
|
ignoreLocation: h
|
|
6261
6268
|
});
|
|
6262
|
-
if (y = Math.min(A, y), $ = B + f,
|
|
6269
|
+
if (y = Math.min(A, y), $ = B + f, L) {
|
|
6263
6270
|
let k = 0;
|
|
6264
6271
|
for (; k < f; )
|
|
6265
6272
|
G[B + k] = 1, k += 1;
|
|
@@ -6283,7 +6290,7 @@ function ch(t, e, r, {
|
|
|
6283
6290
|
te[I + 1] = (1 << A) - 1;
|
|
6284
6291
|
for (let O = I; O >= H; O -= 1) {
|
|
6285
6292
|
let P = O - 1, M = r[t.charAt(P)];
|
|
6286
|
-
if (
|
|
6293
|
+
if (L && (G[P] = +!!M), te[O] = (te[O + 1] << 1 | 1) & M, A && (te[O] |= (g[O + 1] | g[O]) << 1 | 1 | g[O + 1]), te[O] & S && (m = xr(e, {
|
|
6287
6294
|
errors: A,
|
|
6288
6295
|
currentLocation: P,
|
|
6289
6296
|
expectedLocation: b,
|
|
@@ -6310,9 +6317,9 @@ function ch(t, e, r, {
|
|
|
6310
6317
|
// Count exact matches (those with a score of 0) to be "almost" exact
|
|
6311
6318
|
score: Math.max(1e-3, m)
|
|
6312
6319
|
};
|
|
6313
|
-
if (
|
|
6314
|
-
const A =
|
|
6315
|
-
A.length ?
|
|
6320
|
+
if (L) {
|
|
6321
|
+
const A = ah(G, a);
|
|
6322
|
+
A.length ? l && (E.indices = A) : E.isMatch = !1;
|
|
6316
6323
|
}
|
|
6317
6324
|
return E;
|
|
6318
6325
|
}
|
|
@@ -6331,8 +6338,8 @@ class Zs {
|
|
|
6331
6338
|
distance: n = K.distance,
|
|
6332
6339
|
includeMatches: s = K.includeMatches,
|
|
6333
6340
|
findAllMatches: o = K.findAllMatches,
|
|
6334
|
-
minMatchCharLength:
|
|
6335
|
-
isCaseSensitive:
|
|
6341
|
+
minMatchCharLength: a = K.minMatchCharLength,
|
|
6342
|
+
isCaseSensitive: l = K.isCaseSensitive,
|
|
6336
6343
|
ignoreLocation: h = K.ignoreLocation
|
|
6337
6344
|
} = {}) {
|
|
6338
6345
|
if (this.options = {
|
|
@@ -6341,10 +6348,10 @@ class Zs {
|
|
|
6341
6348
|
distance: n,
|
|
6342
6349
|
includeMatches: s,
|
|
6343
6350
|
findAllMatches: o,
|
|
6344
|
-
minMatchCharLength:
|
|
6345
|
-
isCaseSensitive:
|
|
6351
|
+
minMatchCharLength: a,
|
|
6352
|
+
isCaseSensitive: l,
|
|
6346
6353
|
ignoreLocation: h
|
|
6347
|
-
}, this.pattern =
|
|
6354
|
+
}, this.pattern = l ? e : e.toLowerCase(), this.chunks = [], !this.pattern.length)
|
|
6348
6355
|
return;
|
|
6349
6356
|
const f = (b, y) => {
|
|
6350
6357
|
this.chunks.push({
|
|
@@ -6359,8 +6366,8 @@ class Zs {
|
|
|
6359
6366
|
for (; b < $; )
|
|
6360
6367
|
f(this.pattern.substr(b, vt), b), b += vt;
|
|
6361
6368
|
if (y) {
|
|
6362
|
-
const
|
|
6363
|
-
f(this.pattern.substr(
|
|
6369
|
+
const L = p - vt;
|
|
6370
|
+
f(this.pattern.substr(L), L);
|
|
6364
6371
|
}
|
|
6365
6372
|
} else
|
|
6366
6373
|
f(this.pattern, 0);
|
|
@@ -6378,18 +6385,18 @@ class Zs {
|
|
|
6378
6385
|
location: n,
|
|
6379
6386
|
distance: s,
|
|
6380
6387
|
threshold: o,
|
|
6381
|
-
findAllMatches:
|
|
6382
|
-
minMatchCharLength:
|
|
6388
|
+
findAllMatches: a,
|
|
6389
|
+
minMatchCharLength: l,
|
|
6383
6390
|
ignoreLocation: h
|
|
6384
6391
|
} = this.options;
|
|
6385
6392
|
let f = [], p = 0, b = !1;
|
|
6386
|
-
this.chunks.forEach(({ pattern: $, alphabet:
|
|
6387
|
-
const { isMatch: B, score: g, indices: m } = ch(e, $,
|
|
6393
|
+
this.chunks.forEach(({ pattern: $, alphabet: L, startIndex: G }) => {
|
|
6394
|
+
const { isMatch: B, score: g, indices: m } = ch(e, $, L, {
|
|
6388
6395
|
location: n + G,
|
|
6389
6396
|
distance: s,
|
|
6390
6397
|
threshold: o,
|
|
6391
|
-
findAllMatches:
|
|
6392
|
-
minMatchCharLength:
|
|
6398
|
+
findAllMatches: a,
|
|
6399
|
+
minMatchCharLength: l,
|
|
6393
6400
|
includeMatches: i,
|
|
6394
6401
|
ignoreLocation: h
|
|
6395
6402
|
});
|
|
@@ -6558,8 +6565,8 @@ class Qs extends dt {
|
|
|
6558
6565
|
distance: n = K.distance,
|
|
6559
6566
|
includeMatches: s = K.includeMatches,
|
|
6560
6567
|
findAllMatches: o = K.findAllMatches,
|
|
6561
|
-
minMatchCharLength:
|
|
6562
|
-
isCaseSensitive:
|
|
6568
|
+
minMatchCharLength: a = K.minMatchCharLength,
|
|
6569
|
+
isCaseSensitive: l = K.isCaseSensitive,
|
|
6563
6570
|
ignoreLocation: h = K.ignoreLocation
|
|
6564
6571
|
} = {}) {
|
|
6565
6572
|
super(e), this._bitapSearch = new Zs(e, {
|
|
@@ -6568,8 +6575,8 @@ class Qs extends dt {
|
|
|
6568
6575
|
distance: n,
|
|
6569
6576
|
includeMatches: s,
|
|
6570
6577
|
findAllMatches: o,
|
|
6571
|
-
minMatchCharLength:
|
|
6572
|
-
isCaseSensitive:
|
|
6578
|
+
minMatchCharLength: a,
|
|
6579
|
+
isCaseSensitive: l,
|
|
6573
6580
|
ignoreLocation: h
|
|
6574
6581
|
});
|
|
6575
6582
|
}
|
|
@@ -6626,17 +6633,17 @@ function bh(t, e = {}) {
|
|
|
6626
6633
|
return t.split(vh).map((r) => {
|
|
6627
6634
|
let i = r.trim().split(yh).filter((s) => s && !!s.trim()), n = [];
|
|
6628
6635
|
for (let s = 0, o = i.length; s < o; s += 1) {
|
|
6629
|
-
const
|
|
6630
|
-
let
|
|
6631
|
-
for (; !
|
|
6636
|
+
const a = i[s];
|
|
6637
|
+
let l = !1, h = -1;
|
|
6638
|
+
for (; !l && ++h < Zn; ) {
|
|
6632
6639
|
const f = Si[h];
|
|
6633
|
-
let p = f.isMultiMatch(
|
|
6634
|
-
p && (n.push(new f(p, e)),
|
|
6640
|
+
let p = f.isMultiMatch(a);
|
|
6641
|
+
p && (n.push(new f(p, e)), l = !0);
|
|
6635
6642
|
}
|
|
6636
|
-
if (!
|
|
6643
|
+
if (!l)
|
|
6637
6644
|
for (h = -1; ++h < Zn; ) {
|
|
6638
6645
|
const f = Si[h];
|
|
6639
|
-
let p = f.isSingleMatch(
|
|
6646
|
+
let p = f.isSingleMatch(a);
|
|
6640
6647
|
if (p) {
|
|
6641
6648
|
n.push(new f(p, e));
|
|
6642
6649
|
break;
|
|
@@ -6654,8 +6661,8 @@ class wh {
|
|
|
6654
6661
|
minMatchCharLength: n = K.minMatchCharLength,
|
|
6655
6662
|
ignoreLocation: s = K.ignoreLocation,
|
|
6656
6663
|
findAllMatches: o = K.findAllMatches,
|
|
6657
|
-
location:
|
|
6658
|
-
threshold:
|
|
6664
|
+
location: a = K.location,
|
|
6665
|
+
threshold: l = K.threshold,
|
|
6659
6666
|
distance: h = K.distance
|
|
6660
6667
|
} = {}) {
|
|
6661
6668
|
this.query = null, this.options = {
|
|
@@ -6664,8 +6671,8 @@ class wh {
|
|
|
6664
6671
|
minMatchCharLength: n,
|
|
6665
6672
|
findAllMatches: o,
|
|
6666
6673
|
ignoreLocation: s,
|
|
6667
|
-
location:
|
|
6668
|
-
threshold:
|
|
6674
|
+
location: a,
|
|
6675
|
+
threshold: l,
|
|
6669
6676
|
distance: h
|
|
6670
6677
|
}, this.pattern = r ? e : e.toLowerCase(), this.query = bh(this.pattern, this.options);
|
|
6671
6678
|
}
|
|
@@ -6681,26 +6688,26 @@ class wh {
|
|
|
6681
6688
|
};
|
|
6682
6689
|
const { includeMatches: i, isCaseSensitive: n } = this.options;
|
|
6683
6690
|
e = n ? e : e.toLowerCase();
|
|
6684
|
-
let s = 0, o = [],
|
|
6685
|
-
for (let
|
|
6686
|
-
const f = r[
|
|
6691
|
+
let s = 0, o = [], a = 0;
|
|
6692
|
+
for (let l = 0, h = r.length; l < h; l += 1) {
|
|
6693
|
+
const f = r[l];
|
|
6687
6694
|
o.length = 0, s = 0;
|
|
6688
6695
|
for (let p = 0, b = f.length; p < b; p += 1) {
|
|
6689
|
-
const y = f[p], { isMatch: $, indices:
|
|
6696
|
+
const y = f[p], { isMatch: $, indices: L, score: G } = y.search(e);
|
|
6690
6697
|
if ($) {
|
|
6691
|
-
if (s += 1,
|
|
6698
|
+
if (s += 1, a += G, i) {
|
|
6692
6699
|
const B = y.constructor.type;
|
|
6693
|
-
xh.has(B) ? o = [...o, ...
|
|
6700
|
+
xh.has(B) ? o = [...o, ...L] : o.push(L);
|
|
6694
6701
|
}
|
|
6695
6702
|
} else {
|
|
6696
|
-
|
|
6703
|
+
a = 0, s = 0, o.length = 0;
|
|
6697
6704
|
break;
|
|
6698
6705
|
}
|
|
6699
6706
|
}
|
|
6700
6707
|
if (s) {
|
|
6701
6708
|
let p = {
|
|
6702
6709
|
isMatch: !0,
|
|
6703
|
-
score:
|
|
6710
|
+
score: a / s
|
|
6704
6711
|
};
|
|
6705
6712
|
return i && (p.indices = o), p;
|
|
6706
6713
|
}
|
|
@@ -6723,14 +6730,14 @@ function Mi(t, e) {
|
|
|
6723
6730
|
}
|
|
6724
6731
|
return new Zs(t, e);
|
|
6725
6732
|
}
|
|
6726
|
-
const
|
|
6733
|
+
const Cr = {
|
|
6727
6734
|
AND: "$and",
|
|
6728
6735
|
OR: "$or"
|
|
6729
6736
|
}, Oi = {
|
|
6730
6737
|
PATH: "$path",
|
|
6731
6738
|
PATTERN: "$val"
|
|
6732
|
-
}, Pi = (t) => !!(t[
|
|
6733
|
-
[
|
|
6739
|
+
}, Pi = (t) => !!(t[Cr.AND] || t[Cr.OR]), _h = (t) => !!t[Oi.PATH], Eh = (t) => !tt(t) && Vs(t) && !Pi(t), Qn = (t) => ({
|
|
6740
|
+
[Cr.AND]: Object.keys(t).map((e) => ({
|
|
6734
6741
|
[e]: t[e]
|
|
6735
6742
|
}))
|
|
6736
6743
|
});
|
|
@@ -6741,25 +6748,25 @@ function to(t, e, { auto: r = !0 } = {}) {
|
|
|
6741
6748
|
if (!o && s.length > 1 && !Pi(n))
|
|
6742
6749
|
return i(Qn(n));
|
|
6743
6750
|
if (Eh(n)) {
|
|
6744
|
-
const
|
|
6751
|
+
const l = o ? n[Oi.PATH] : s[0], h = o ? n[Oi.PATTERN] : n[l];
|
|
6745
6752
|
if (!Ye(h))
|
|
6746
|
-
throw new Error(Kc(
|
|
6753
|
+
throw new Error(Kc(l));
|
|
6747
6754
|
const f = {
|
|
6748
|
-
keyId: Ei(
|
|
6755
|
+
keyId: Ei(l),
|
|
6749
6756
|
pattern: h
|
|
6750
6757
|
};
|
|
6751
6758
|
return r && (f.searcher = Mi(h, e)), f;
|
|
6752
6759
|
}
|
|
6753
|
-
let
|
|
6760
|
+
let a = {
|
|
6754
6761
|
children: [],
|
|
6755
6762
|
operator: s[0]
|
|
6756
6763
|
};
|
|
6757
|
-
return s.forEach((
|
|
6758
|
-
const h = n[
|
|
6764
|
+
return s.forEach((l) => {
|
|
6765
|
+
const h = n[l];
|
|
6759
6766
|
tt(h) && h.forEach((f) => {
|
|
6760
|
-
|
|
6767
|
+
a.children.push(i(f));
|
|
6761
6768
|
});
|
|
6762
|
-
}),
|
|
6769
|
+
}), a;
|
|
6763
6770
|
};
|
|
6764
6771
|
return Pi(t) || (t = Qn(t)), i(t);
|
|
6765
6772
|
}
|
|
@@ -6767,18 +6774,18 @@ function Sh(t, { ignoreFieldNorm: e = K.ignoreFieldNorm }) {
|
|
|
6767
6774
|
t.forEach((r) => {
|
|
6768
6775
|
let i = 1;
|
|
6769
6776
|
r.matches.forEach(({ key: n, norm: s, score: o }) => {
|
|
6770
|
-
const
|
|
6777
|
+
const a = n ? n.weight : null;
|
|
6771
6778
|
i *= Math.pow(
|
|
6772
|
-
o === 0 &&
|
|
6773
|
-
(
|
|
6779
|
+
o === 0 && a ? Number.EPSILON : o,
|
|
6780
|
+
(a || 1) * (e ? 1 : s)
|
|
6774
6781
|
);
|
|
6775
6782
|
}), r.score = i;
|
|
6776
6783
|
});
|
|
6777
6784
|
}
|
|
6778
6785
|
function Ah(t, e) {
|
|
6779
6786
|
const r = t.matches;
|
|
6780
|
-
e.matches = [],
|
|
6781
|
-
if (!
|
|
6787
|
+
e.matches = [], Ce(r) && r.forEach((i) => {
|
|
6788
|
+
if (!Ce(i.indices) || !i.indices.length)
|
|
6782
6789
|
return;
|
|
6783
6790
|
const { indices: n, value: s } = i;
|
|
6784
6791
|
let o = {
|
|
@@ -6797,13 +6804,13 @@ function Oh(t, e, {
|
|
|
6797
6804
|
} = {}) {
|
|
6798
6805
|
const n = [];
|
|
6799
6806
|
return r && n.push(Ah), i && n.push(Mh), t.map((s) => {
|
|
6800
|
-
const { idx: o } = s,
|
|
6807
|
+
const { idx: o } = s, a = {
|
|
6801
6808
|
item: e[o],
|
|
6802
6809
|
refIndex: o
|
|
6803
6810
|
};
|
|
6804
|
-
return n.length && n.forEach((
|
|
6805
|
-
|
|
6806
|
-
}),
|
|
6811
|
+
return n.length && n.forEach((l) => {
|
|
6812
|
+
l(s, a);
|
|
6813
|
+
}), a;
|
|
6807
6814
|
});
|
|
6808
6815
|
}
|
|
6809
6816
|
class Ht {
|
|
@@ -6819,7 +6826,7 @@ class Ht {
|
|
|
6819
6826
|
});
|
|
6820
6827
|
}
|
|
6821
6828
|
add(e) {
|
|
6822
|
-
|
|
6829
|
+
Ce(e) && (this._docs.push(e), this._myIndex.add(e));
|
|
6823
6830
|
}
|
|
6824
6831
|
remove(e = () => !1) {
|
|
6825
6832
|
const r = [];
|
|
@@ -6841,151 +6848,151 @@ class Ht {
|
|
|
6841
6848
|
includeScore: n,
|
|
6842
6849
|
shouldSort: s,
|
|
6843
6850
|
sortFn: o,
|
|
6844
|
-
ignoreFieldNorm:
|
|
6851
|
+
ignoreFieldNorm: a
|
|
6845
6852
|
} = this.options;
|
|
6846
|
-
let
|
|
6847
|
-
return Sh(
|
|
6853
|
+
let l = Ye(e) ? Ye(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
|
|
6854
|
+
return Sh(l, { ignoreFieldNorm: a }), s && l.sort(o), Xs(r) && r > -1 && (l = l.slice(0, r)), Oh(l, this._docs, {
|
|
6848
6855
|
includeMatches: i,
|
|
6849
6856
|
includeScore: n
|
|
6850
6857
|
});
|
|
6851
6858
|
}
|
|
6852
6859
|
_searchStringList(e) {
|
|
6853
6860
|
const r = Mi(e, this.options), { records: i } = this._myIndex, n = [];
|
|
6854
|
-
return i.forEach(({ v: s, i: o, n:
|
|
6855
|
-
if (!
|
|
6861
|
+
return i.forEach(({ v: s, i: o, n: a }) => {
|
|
6862
|
+
if (!Ce(s))
|
|
6856
6863
|
return;
|
|
6857
|
-
const { isMatch:
|
|
6858
|
-
|
|
6864
|
+
const { isMatch: l, score: h, indices: f } = r.searchIn(s);
|
|
6865
|
+
l && n.push({
|
|
6859
6866
|
item: s,
|
|
6860
6867
|
idx: o,
|
|
6861
|
-
matches: [{ score: h, value: s, norm:
|
|
6868
|
+
matches: [{ score: h, value: s, norm: a, indices: f }]
|
|
6862
6869
|
});
|
|
6863
6870
|
}), n;
|
|
6864
6871
|
}
|
|
6865
6872
|
_searchLogical(e) {
|
|
6866
|
-
const r = to(e, this.options), i = (
|
|
6867
|
-
if (!
|
|
6868
|
-
const { keyId: p, searcher: b } =
|
|
6873
|
+
const r = to(e, this.options), i = (a, l, h) => {
|
|
6874
|
+
if (!a.children) {
|
|
6875
|
+
const { keyId: p, searcher: b } = a, y = this._findMatches({
|
|
6869
6876
|
key: this._keyStore.get(p),
|
|
6870
|
-
value: this._myIndex.getValueForItemAtKeyId(
|
|
6877
|
+
value: this._myIndex.getValueForItemAtKeyId(l, p),
|
|
6871
6878
|
searcher: b
|
|
6872
6879
|
});
|
|
6873
6880
|
return y && y.length ? [
|
|
6874
6881
|
{
|
|
6875
6882
|
idx: h,
|
|
6876
|
-
item:
|
|
6883
|
+
item: l,
|
|
6877
6884
|
matches: y
|
|
6878
6885
|
}
|
|
6879
6886
|
] : [];
|
|
6880
6887
|
}
|
|
6881
6888
|
const f = [];
|
|
6882
|
-
for (let p = 0, b =
|
|
6883
|
-
const y =
|
|
6889
|
+
for (let p = 0, b = a.children.length; p < b; p += 1) {
|
|
6890
|
+
const y = a.children[p], $ = i(y, l, h);
|
|
6884
6891
|
if ($.length)
|
|
6885
6892
|
f.push(...$);
|
|
6886
|
-
else if (
|
|
6893
|
+
else if (a.operator === Cr.AND)
|
|
6887
6894
|
return [];
|
|
6888
6895
|
}
|
|
6889
6896
|
return f;
|
|
6890
6897
|
}, n = this._myIndex.records, s = {}, o = [];
|
|
6891
|
-
return n.forEach(({ $:
|
|
6892
|
-
if (
|
|
6893
|
-
let h = i(r,
|
|
6894
|
-
h.length && (s[
|
|
6895
|
-
s[
|
|
6898
|
+
return n.forEach(({ $: a, i: l }) => {
|
|
6899
|
+
if (Ce(a)) {
|
|
6900
|
+
let h = i(r, a, l);
|
|
6901
|
+
h.length && (s[l] || (s[l] = { idx: l, item: a, matches: [] }, o.push(s[l])), h.forEach(({ matches: f }) => {
|
|
6902
|
+
s[l].matches.push(...f);
|
|
6896
6903
|
}));
|
|
6897
6904
|
}
|
|
6898
6905
|
}), o;
|
|
6899
6906
|
}
|
|
6900
6907
|
_searchObjectList(e) {
|
|
6901
6908
|
const r = Mi(e, this.options), { keys: i, records: n } = this._myIndex, s = [];
|
|
6902
|
-
return n.forEach(({ $: o, i:
|
|
6903
|
-
if (!
|
|
6909
|
+
return n.forEach(({ $: o, i: a }) => {
|
|
6910
|
+
if (!Ce(o))
|
|
6904
6911
|
return;
|
|
6905
|
-
let
|
|
6912
|
+
let l = [];
|
|
6906
6913
|
i.forEach((h, f) => {
|
|
6907
|
-
|
|
6914
|
+
l.push(
|
|
6908
6915
|
...this._findMatches({
|
|
6909
6916
|
key: h,
|
|
6910
6917
|
value: o[f],
|
|
6911
6918
|
searcher: r
|
|
6912
6919
|
})
|
|
6913
6920
|
);
|
|
6914
|
-
}),
|
|
6915
|
-
idx:
|
|
6921
|
+
}), l.length && s.push({
|
|
6922
|
+
idx: a,
|
|
6916
6923
|
item: o,
|
|
6917
|
-
matches:
|
|
6924
|
+
matches: l
|
|
6918
6925
|
});
|
|
6919
6926
|
}), s;
|
|
6920
6927
|
}
|
|
6921
6928
|
_findMatches({ key: e, value: r, searcher: i }) {
|
|
6922
|
-
if (!
|
|
6929
|
+
if (!Ce(r))
|
|
6923
6930
|
return [];
|
|
6924
6931
|
let n = [];
|
|
6925
6932
|
if (tt(r))
|
|
6926
|
-
r.forEach(({ v: s, i: o, n:
|
|
6927
|
-
if (!
|
|
6933
|
+
r.forEach(({ v: s, i: o, n: a }) => {
|
|
6934
|
+
if (!Ce(s))
|
|
6928
6935
|
return;
|
|
6929
|
-
const { isMatch:
|
|
6930
|
-
|
|
6936
|
+
const { isMatch: l, score: h, indices: f } = i.searchIn(s);
|
|
6937
|
+
l && n.push({
|
|
6931
6938
|
score: h,
|
|
6932
6939
|
key: e,
|
|
6933
6940
|
value: s,
|
|
6934
6941
|
idx: o,
|
|
6935
|
-
norm:
|
|
6942
|
+
norm: a,
|
|
6936
6943
|
indices: f
|
|
6937
6944
|
});
|
|
6938
6945
|
});
|
|
6939
6946
|
else {
|
|
6940
|
-
const { v: s, n: o } = r, { isMatch:
|
|
6941
|
-
|
|
6947
|
+
const { v: s, n: o } = r, { isMatch: a, score: l, indices: h } = i.searchIn(s);
|
|
6948
|
+
a && n.push({ score: l, key: e, value: s, norm: o, indices: h });
|
|
6942
6949
|
}
|
|
6943
6950
|
return n;
|
|
6944
6951
|
}
|
|
6945
6952
|
}
|
|
6946
6953
|
Ht.version = "7.0.0";
|
|
6947
6954
|
Ht.createIndex = Js;
|
|
6948
|
-
Ht.parseIndex =
|
|
6955
|
+
Ht.parseIndex = lh;
|
|
6949
6956
|
Ht.config = K;
|
|
6950
6957
|
Ht.parseQuery = to;
|
|
6951
6958
|
$h(wh);
|
|
6952
6959
|
const Ph = (t, e = "highlight", r = "title") => {
|
|
6953
|
-
const i = (s, o,
|
|
6954
|
-
const
|
|
6960
|
+
const i = (s, o, a) => {
|
|
6961
|
+
const l = o.split(".");
|
|
6955
6962
|
let h;
|
|
6956
|
-
for (h = 0; h <
|
|
6957
|
-
s = s[
|
|
6958
|
-
s[
|
|
6963
|
+
for (h = 0; h < l.length - 1; h++)
|
|
6964
|
+
s = s[l[h]];
|
|
6965
|
+
s[l[h]] = a;
|
|
6959
6966
|
}, n = (s, o = []) => {
|
|
6960
|
-
let
|
|
6967
|
+
let a = "", l = 0;
|
|
6961
6968
|
return o.forEach((h) => {
|
|
6962
6969
|
const f = h[1] + 1;
|
|
6963
|
-
|
|
6964
|
-
s.substring(
|
|
6970
|
+
a += [
|
|
6971
|
+
s.substring(l, h[0]),
|
|
6965
6972
|
`<mark class="${e}">`,
|
|
6966
6973
|
s.substring(h[0], f),
|
|
6967
6974
|
"</mark>"
|
|
6968
|
-
].join(""),
|
|
6969
|
-
}),
|
|
6975
|
+
].join(""), l = f;
|
|
6976
|
+
}), a += s.substring(l), a;
|
|
6970
6977
|
};
|
|
6971
6978
|
return t.filter(({ matches: s }) => s && s.length).map(({ item: s, matches: o }) => {
|
|
6972
|
-
const
|
|
6973
|
-
for (const [
|
|
6974
|
-
l
|
|
6975
|
-
return o.forEach((
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
+
const a = {};
|
|
6980
|
+
for (const [l, h] of Object.entries(s))
|
|
6981
|
+
a[l] = h;
|
|
6982
|
+
return o.forEach((l) => {
|
|
6983
|
+
l.key === r && i(
|
|
6984
|
+
a,
|
|
6985
|
+
l.key,
|
|
6979
6986
|
n(
|
|
6980
|
-
|
|
6981
|
-
|
|
6987
|
+
l.value,
|
|
6988
|
+
l.indices
|
|
6982
6989
|
)
|
|
6983
6990
|
);
|
|
6984
|
-
}),
|
|
6991
|
+
}), a;
|
|
6985
6992
|
});
|
|
6986
6993
|
};
|
|
6987
6994
|
let ro;
|
|
6988
|
-
const
|
|
6995
|
+
const Lh = (t, e) => {
|
|
6989
6996
|
ro = new Ht(t, {
|
|
6990
6997
|
// minMatchCharLength: 3,
|
|
6991
6998
|
// location: 0,
|
|
@@ -6995,68 +7002,68 @@ const Ch = (t, e) => {
|
|
|
6995
7002
|
useExtendedSearch: !0,
|
|
6996
7003
|
...e
|
|
6997
7004
|
});
|
|
6998
|
-
},
|
|
7005
|
+
}, Ch = async (t, e, r) => {
|
|
6999
7006
|
const i = Object.entries(e).filter(
|
|
7000
|
-
([,
|
|
7001
|
-
).reduce((
|
|
7007
|
+
([, a]) => a.type === "text" || a.type === "select" || a.type === "multiselect"
|
|
7008
|
+
).reduce((a, [l, h]) => {
|
|
7002
7009
|
const f = "$or", p = [], b = (y, $) => {
|
|
7003
|
-
const
|
|
7004
|
-
h.type === "text" ?
|
|
7010
|
+
const L = {};
|
|
7011
|
+
h.type === "text" ? L[y] = `${$}` : L[l] = `="${y}"`, p.push(L);
|
|
7005
7012
|
};
|
|
7006
|
-
return Object.entries(h.state).filter(([, y]) => y).forEach(([y, $]) => b(y, $)), p.length > 0 &&
|
|
7013
|
+
return Object.entries(h.state).filter(([, y]) => y).forEach(([y, $]) => b(y, $)), p.length > 0 && a.push({
|
|
7007
7014
|
[f]: p
|
|
7008
|
-
}),
|
|
7015
|
+
}), a;
|
|
7009
7016
|
}, []);
|
|
7010
7017
|
let n;
|
|
7011
7018
|
if (!(i.length > 0) && r.matchAllWhenEmpty !== !1)
|
|
7012
7019
|
n = t;
|
|
7013
7020
|
else {
|
|
7014
|
-
const
|
|
7021
|
+
const a = {
|
|
7015
7022
|
$and: [...i]
|
|
7016
|
-
},
|
|
7017
|
-
n = r.enableHighlighting ? Ph(
|
|
7023
|
+
}, l = ro.search(a);
|
|
7024
|
+
n = r.enableHighlighting ? Ph(l, "highlight", r.titleProperty) : l.map((h) => h.item);
|
|
7018
7025
|
}
|
|
7019
|
-
const s = Object.entries(e).filter(([,
|
|
7026
|
+
const s = Object.entries(e).filter(([, a]) => a.type === "range").reduce((a, [l, h]) => (a[l] = {
|
|
7020
7027
|
min: h.state.min,
|
|
7021
7028
|
max: h.state.max,
|
|
7022
7029
|
format: h.format
|
|
7023
|
-
},
|
|
7030
|
+
}, a), {});
|
|
7024
7031
|
if (Object.keys(s).length > 0) {
|
|
7025
|
-
const
|
|
7026
|
-
for (let
|
|
7032
|
+
const a = [];
|
|
7033
|
+
for (let l = 0; l < n.length; l++) {
|
|
7027
7034
|
const h = {};
|
|
7028
7035
|
for (const [f, p] of Object.entries(s)) {
|
|
7029
7036
|
const b = (y) => p.format === "date" ? kt(y).unix() : y;
|
|
7030
|
-
Object.prototype.hasOwnProperty.call(n[
|
|
7031
|
-
s[f].min <= b(n[
|
|
7032
|
-
b(n[
|
|
7033
|
-
b(n[
|
|
7037
|
+
Object.prototype.hasOwnProperty.call(n[l], f) ? Array.isArray(n[l][f]) ? h[f] = // @ts-ignore
|
|
7038
|
+
s[f].min <= b(n[l][f][1]) && // @ts-ignore
|
|
7039
|
+
b(n[l][f][0]) <= s[f].max : /* @ts-ignore */ b(n[l][f]) >= s[f].min && // @ts-ignore
|
|
7040
|
+
b(n[l][f]) <= s[f].max ? h[f] = !0 : h[f] = !1 : h[f] = !0;
|
|
7034
7041
|
}
|
|
7035
|
-
Object.values(h).every((f) => !!f) &&
|
|
7042
|
+
Object.values(h).every((f) => !!f) && a.push(n[l]);
|
|
7036
7043
|
}
|
|
7037
|
-
n = [...
|
|
7044
|
+
n = [...a];
|
|
7038
7045
|
}
|
|
7039
|
-
const o = Object.entries(e).filter(([,
|
|
7046
|
+
const o = Object.entries(e).filter(([, a]) => a.type === "spatial").reduce((a, [l, h]) => (a[l] = {
|
|
7040
7047
|
geometry: h.state.geometry,
|
|
7041
7048
|
mode: h.state.mode
|
|
7042
|
-
},
|
|
7043
|
-
if (Object.values(o).map((
|
|
7044
|
-
const
|
|
7045
|
-
for (let
|
|
7049
|
+
}, a), {});
|
|
7050
|
+
if (Object.values(o).map((a) => a.geometry).filter((a) => !!a).length > 0) {
|
|
7051
|
+
const a = [];
|
|
7052
|
+
for (let l = 0; l < n.length; l++) {
|
|
7046
7053
|
const h = {};
|
|
7047
7054
|
for (const f of Object.keys(o)) {
|
|
7048
7055
|
const p = o[f].mode || "within";
|
|
7049
|
-
Object.prototype.hasOwnProperty.call(n[
|
|
7056
|
+
Object.prototype.hasOwnProperty.call(n[l], f) && (p === "within" ? (
|
|
7050
7057
|
// @ts-ignore
|
|
7051
|
-
jc(n[
|
|
7058
|
+
jc(n[l][f], o[f].geometry)
|
|
7052
7059
|
) : (
|
|
7053
7060
|
// @ts-ignore
|
|
7054
|
-
Nc(n[
|
|
7061
|
+
Nc(n[l][f], o[f].geometry)
|
|
7055
7062
|
)) ? h[f] = !0 : h[f] = !1;
|
|
7056
7063
|
}
|
|
7057
|
-
Object.values(h).every((f) => !!f) &&
|
|
7064
|
+
Object.values(h).every((f) => !!f) && a.push(n[l]);
|
|
7058
7065
|
}
|
|
7059
|
-
n = [...
|
|
7066
|
+
n = [...a];
|
|
7060
7067
|
}
|
|
7061
7068
|
return n;
|
|
7062
7069
|
}, kh = async (t, e, r) => (await (await fetch(`${r.externalFilter(t, e)}`)).json()).features;
|
|
@@ -7072,7 +7079,7 @@ class es {
|
|
|
7072
7079
|
}, this.showResults = !0, this.titleProperty = "title", this.expandMultipleFilters = !0, this.expandResults = !0, this.expandMultipleResults = !0;
|
|
7073
7080
|
}
|
|
7074
7081
|
}
|
|
7075
|
-
let Ve = class extends
|
|
7082
|
+
let Ve = class extends El {
|
|
7076
7083
|
constructor() {
|
|
7077
7084
|
super(...arguments), this._resultAggregation = [], this.filters = {}, this.items = [], this._config = new es(), this.apply = (t) => {
|
|
7078
7085
|
this.items = t.map((r, i) => ({
|
|
@@ -7141,7 +7148,7 @@ let Ve = class extends Ea {
|
|
|
7141
7148
|
r.type === "text" ? r.keys.forEach((i) => {
|
|
7142
7149
|
e.includes(i) || e.push(i);
|
|
7143
7150
|
}) : (r.type === "select" || r.type === "multiselect") && (e.includes(r.key) || e.push(r.key));
|
|
7144
|
-
}),
|
|
7151
|
+
}), Lh(this.items, {
|
|
7145
7152
|
keys: e,
|
|
7146
7153
|
...this._config.fuseConfig
|
|
7147
7154
|
}), this.search();
|
|
@@ -7159,7 +7166,7 @@ let Ve = class extends Ea {
|
|
|
7159
7166
|
}
|
|
7160
7167
|
async search() {
|
|
7161
7168
|
let t;
|
|
7162
|
-
this.config.externalFilter ? t = await kh(this.items, this.filters, this._config) : t = await
|
|
7169
|
+
this.config.externalFilter ? t = await kh(this.items, this.filters, this._config) : t = await Ch(this.items, this.filters, this._config), this.results = this.sortResults(t), this._config.onFilter(this.results, this.filters);
|
|
7163
7170
|
}
|
|
7164
7171
|
aggregateResults(t, e) {
|
|
7165
7172
|
return t.filter((r) => {
|
|
@@ -7200,7 +7207,7 @@ let Ve = class extends Ea {
|
|
|
7200
7207
|
}
|
|
7201
7208
|
}
|
|
7202
7209
|
render() {
|
|
7203
|
-
return
|
|
7210
|
+
return X`
|
|
7204
7211
|
<style>
|
|
7205
7212
|
${Di}
|
|
7206
7213
|
${!this.unstyled && ji}
|
|
@@ -7210,9 +7217,9 @@ let Ve = class extends Ea {
|
|
|
7210
7217
|
id="itemfilter"
|
|
7211
7218
|
@submit="${(t) => t.preventDefault()}"
|
|
7212
7219
|
>
|
|
7213
|
-
${
|
|
7220
|
+
${de(
|
|
7214
7221
|
this._config.inlineMode,
|
|
7215
|
-
() =>
|
|
7222
|
+
() => X`
|
|
7216
7223
|
<eox-itemfilter-inline
|
|
7217
7224
|
.items=${Object.values(this.filters)}
|
|
7218
7225
|
.unstyled=${this.unstyled}
|
|
@@ -7220,16 +7227,16 @@ let Ve = class extends Ea {
|
|
|
7220
7227
|
>
|
|
7221
7228
|
</eox-itemfilter-inline>
|
|
7222
7229
|
`,
|
|
7223
|
-
() =>
|
|
7224
|
-
${
|
|
7230
|
+
() => X`
|
|
7231
|
+
${de(
|
|
7225
7232
|
this._config.filterProperties.length,
|
|
7226
|
-
() =>
|
|
7233
|
+
() => X`
|
|
7227
7234
|
<section
|
|
7228
|
-
class="${this.config.inlineMode ? "inline" :
|
|
7235
|
+
class="${this.config.inlineMode ? "inline" : oe}"
|
|
7229
7236
|
>
|
|
7230
|
-
${
|
|
7237
|
+
${de(
|
|
7231
7238
|
!this.config.inlineMode,
|
|
7232
|
-
() =>
|
|
7239
|
+
() => X`
|
|
7233
7240
|
<slot name="filterstitle"
|
|
7234
7241
|
><h4 style="margin-top: 8px">Filters</h4></slot
|
|
7235
7242
|
>
|
|
@@ -7241,13 +7248,13 @@ let Ve = class extends Ea {
|
|
|
7241
7248
|
(t) => $r`
|
|
7242
7249
|
<li>
|
|
7243
7250
|
${t.featured ? $r`
|
|
7244
|
-
<eox-itemfilter-${
|
|
7251
|
+
<eox-itemfilter-${Lt(t.type)}
|
|
7245
7252
|
slot="filter"
|
|
7246
7253
|
data-type="filter"
|
|
7247
7254
|
.filterObject=${t}
|
|
7248
7255
|
.unstyled=${this.unstyled}
|
|
7249
7256
|
@filter="${() => this.search()}"
|
|
7250
|
-
></eox-itemfilter-${
|
|
7257
|
+
></eox-itemfilter-${Lt(
|
|
7251
7258
|
t.type
|
|
7252
7259
|
)}>
|
|
7253
7260
|
` : $r`
|
|
@@ -7256,14 +7263,30 @@ let Ve = class extends Ea {
|
|
|
7256
7263
|
.unstyled=${this.unstyled}
|
|
7257
7264
|
@details-toggled=${this.toggleAccordion}
|
|
7258
7265
|
>
|
|
7259
|
-
|
|
7266
|
+
${de(
|
|
7267
|
+
t.dirty,
|
|
7268
|
+
() => X`
|
|
7269
|
+
<button
|
|
7270
|
+
slot="reset-button"
|
|
7271
|
+
class="reset-icon icon"
|
|
7272
|
+
@click=${(e) => {
|
|
7273
|
+
e.target.parentElement.querySelector(
|
|
7274
|
+
"[slot=filter]"
|
|
7275
|
+
).reset(), this.search(), this.requestUpdate();
|
|
7276
|
+
}}
|
|
7277
|
+
>
|
|
7278
|
+
${this.unstyled ? "Reset" : oe}
|
|
7279
|
+
</button>
|
|
7280
|
+
`
|
|
7281
|
+
)}
|
|
7282
|
+
<eox-itemfilter-${Lt(t.type)}
|
|
7260
7283
|
slot="filter"
|
|
7261
7284
|
data-type="filter"
|
|
7262
7285
|
data-filter="${t.key}"
|
|
7263
7286
|
.filterObject=${t}
|
|
7264
7287
|
.unstyled=${this.unstyled}
|
|
7265
7288
|
@filter="${() => this.search()}"
|
|
7266
|
-
></eox-itemfilter-${
|
|
7289
|
+
></eox-itemfilter-${Lt(
|
|
7267
7290
|
t.type
|
|
7268
7291
|
)}>
|
|
7269
7292
|
</eox-itemfilter-expandcontainer>
|
|
@@ -7272,25 +7295,25 @@ let Ve = class extends Ea {
|
|
|
7272
7295
|
`
|
|
7273
7296
|
)}
|
|
7274
7297
|
</ul>
|
|
7275
|
-
${
|
|
7298
|
+
${de(
|
|
7276
7299
|
this._config.filterProperties && Object.values(this.filters).map((t) => t.dirty).filter((t) => t).length > 0,
|
|
7277
|
-
() =>
|
|
7300
|
+
() => X`
|
|
7278
7301
|
<button
|
|
7279
7302
|
id="filter-reset"
|
|
7280
|
-
class="outline small"
|
|
7303
|
+
class="outline small icon-text reset-icon"
|
|
7281
7304
|
data-cy="filter-reset"
|
|
7282
7305
|
@click=${() => this.resetFilters()}
|
|
7283
7306
|
>
|
|
7284
|
-
Reset
|
|
7307
|
+
Reset all
|
|
7285
7308
|
</a>
|
|
7286
7309
|
`
|
|
7287
7310
|
)}
|
|
7288
7311
|
</section>
|
|
7289
7312
|
`
|
|
7290
7313
|
)}
|
|
7291
|
-
${
|
|
7314
|
+
${de(
|
|
7292
7315
|
this.config.showResults && this.results,
|
|
7293
|
-
() =>
|
|
7316
|
+
() => X`
|
|
7294
7317
|
<section id="section-results">
|
|
7295
7318
|
<div>
|
|
7296
7319
|
<slot name="resultstitle"
|
|
@@ -7298,9 +7321,9 @@ let Ve = class extends Ea {
|
|
|
7298
7321
|
>
|
|
7299
7322
|
</div>
|
|
7300
7323
|
<div id="container-results" class="scroll">
|
|
7301
|
-
${this.results.length < 1 ?
|
|
7324
|
+
${this.results.length < 1 ? X`
|
|
7302
7325
|
<small class="no-results">No matching items</small>
|
|
7303
|
-
` :
|
|
7326
|
+
` : oe}
|
|
7304
7327
|
<ul id="results" part="results">
|
|
7305
7328
|
${this._config.aggregateResults ? Kt(
|
|
7306
7329
|
this._resultAggregation.filter(
|
|
@@ -7309,10 +7332,10 @@ let Ve = class extends Ea {
|
|
|
7309
7332
|
t
|
|
7310
7333
|
).length
|
|
7311
7334
|
),
|
|
7312
|
-
(t) =>
|
|
7335
|
+
(t) => X`<details
|
|
7313
7336
|
class="details-results"
|
|
7314
7337
|
@toggle=${this.toggleAccordion}
|
|
7315
|
-
?open=${this._config.expandResults ||
|
|
7338
|
+
?open=${this._config.expandResults || oe}
|
|
7316
7339
|
>
|
|
7317
7340
|
<summary>
|
|
7318
7341
|
<span class="title">
|
|
@@ -7334,9 +7357,9 @@ let Ve = class extends Ea {
|
|
|
7334
7357
|
(e) => e.id,
|
|
7335
7358
|
(e) => {
|
|
7336
7359
|
var r, i;
|
|
7337
|
-
return
|
|
7360
|
+
return X`
|
|
7338
7361
|
<li
|
|
7339
|
-
class=${((r = this.selectedResult) == null ? void 0 : r[this._config.titleProperty]) === e[this._config.titleProperty] ? "highlighted" :
|
|
7362
|
+
class=${((r = this.selectedResult) == null ? void 0 : r[this._config.titleProperty]) === e[this._config.titleProperty] ? "highlighted" : oe}
|
|
7340
7363
|
>
|
|
7341
7364
|
<label>
|
|
7342
7365
|
<input
|
|
@@ -7345,19 +7368,19 @@ let Ve = class extends Ea {
|
|
|
7345
7368
|
class="result-radio"
|
|
7346
7369
|
name="result"
|
|
7347
7370
|
id="${e.id}"
|
|
7348
|
-
?checked=${((i = this.selectedResult) == null ? void 0 : i[this._config.titleProperty]) === e[this._config.titleProperty] ||
|
|
7371
|
+
?checked=${((i = this.selectedResult) == null ? void 0 : i[this._config.titleProperty]) === e[this._config.titleProperty] || oe}
|
|
7349
7372
|
@click=${() => {
|
|
7350
7373
|
this.selectedResult = e, this._config.onSelect(e);
|
|
7351
7374
|
}}
|
|
7352
7375
|
/>
|
|
7353
|
-
${
|
|
7376
|
+
${de(
|
|
7354
7377
|
this.hasTemplate("result"),
|
|
7355
7378
|
() => this.renderTemplate(
|
|
7356
7379
|
"result",
|
|
7357
7380
|
e,
|
|
7358
7381
|
`result-${e.id}`
|
|
7359
7382
|
),
|
|
7360
|
-
() =>
|
|
7383
|
+
() => X`
|
|
7361
7384
|
<span class="title"
|
|
7362
7385
|
>${In(
|
|
7363
7386
|
e[this._config.titleProperty]
|
|
@@ -7374,7 +7397,7 @@ let Ve = class extends Ea {
|
|
|
7374
7397
|
</details>`
|
|
7375
7398
|
) : Kt(
|
|
7376
7399
|
this.results,
|
|
7377
|
-
(t) =>
|
|
7400
|
+
(t) => X`<li part="result">
|
|
7378
7401
|
<label>
|
|
7379
7402
|
<input
|
|
7380
7403
|
type="radio"
|
|
@@ -7384,14 +7407,14 @@ let Ve = class extends Ea {
|
|
|
7384
7407
|
this.selectedResult = t, this._config.onSelect(t);
|
|
7385
7408
|
}}
|
|
7386
7409
|
/>
|
|
7387
|
-
${
|
|
7410
|
+
${de(
|
|
7388
7411
|
this.hasTemplate("result"),
|
|
7389
7412
|
() => this.renderTemplate(
|
|
7390
7413
|
"result",
|
|
7391
7414
|
t,
|
|
7392
7415
|
`result-${t.id}`
|
|
7393
7416
|
),
|
|
7394
|
-
() =>
|
|
7417
|
+
() => X`
|
|
7395
7418
|
<span class="title"
|
|
7396
7419
|
>${In(
|
|
7397
7420
|
t[this._config.titleProperty]
|