@eodash/eodash 5.0.0-alpha.2.7 → 5.0.0-alpha.2.9
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/core/client/components/DashboardLayout.vue +1 -2
- package/core/client/components/MobileLayout.vue +1 -2
- package/core/client/composables/index.js +1 -0
- package/core/client/store/Actions.js +8 -2
- package/core/client/types.d.ts +1 -1
- package/dist/client/{DashboardLayout-Cbci3g7o.js → DashboardLayout-D0ZF6V2S.js} +4 -4
- package/dist/client/{DynamicWebComponent-DzmQ3Fr3.js → DynamicWebComponent-CPsMSBHi.js} +4 -4
- package/dist/client/{EodashDatePicker-SP5bYISd.js → EodashDatePicker-CBQP7u2X.js} +4 -4
- package/dist/client/{eox-itemfilter-TaBxgqq_.js → EodashItemFilter-DL2ScI-5.js} +1146 -1040
- package/dist/client/EodashMap-CkKoQlmR.js +86917 -0
- package/dist/client/{EodashMapBtns-BOKugQ88.js → EodashMapBtns-yuO2QmiR.js} +7 -8
- package/dist/client/{ExportState-D7m9s4T8.js → ExportState-CCzOhppU.js} +143 -143
- package/dist/client/{Footer-C2uV1-zu.js → Footer-BPAND0yG.js} +1 -1
- package/dist/client/{Header-C2ROtxo_.js → Header-DLhebNvG.js} +4 -4
- package/dist/client/{IframeWrapper-Wwou4pwf.js → IframeWrapper-1GEMHlsW.js} +1 -1
- package/dist/client/{MobileLayout-DR27Ctiz.js → MobileLayout-mGkOYRhu.js} +11 -11
- package/dist/client/{PopUp-bPGAY43o.js → PopUp-1d2bBFjw.js} +25 -25
- package/dist/client/{VImg-swqiqth2.js → VImg-DxHcztfM.js} +2 -2
- package/dist/client/{VMain-Bu1bPjvK.js → VMain-BLX5vRRn.js} +2 -2
- package/dist/client/{VOverlay-D_MKJ4vQ.js → VOverlay-CvrYEmLu.js} +3 -3
- package/dist/client/{WidgetsContainer-CpxYT8YI.js → WidgetsContainer-CmYjvGm7.js} +1 -1
- package/dist/client/{asWebComponent-DeaU3QoK.js → asWebComponent-B91uK0U7.js} +65 -65
- package/dist/client/{decoder-CP4lv0Kb-nokx54iM.js → decoder-CP4lv0Kb-B6yqkcfC.js} +1 -1
- package/dist/client/eo-dash.js +1 -1
- package/dist/client/{eodashSTAC-CFQuZ_cI.js → eodashSTAC-DBjqe_Ho.js} +1 -1
- package/dist/client/{forwardRefs-D0a135Tc.js → forwardRefs-BJJiadQP.js} +1 -1
- package/dist/client/{index-CoqcWt6E.js → index-Q-bHLjxx.js} +5 -5
- package/dist/client/{lerc-DzVumYtB-B3rx9xzz.js → lerc-DzVumYtB-P-KXC0TO.js} +1 -1
- package/dist/client/{ssrBoot-C-inWOiD.js → ssrBoot-yo11mybw.js} +1 -1
- package/dist/client/style.css +1 -1
- package/dist/client/{transition-C8le0YwQ.js → transition-CSJhuYGK.js} +5 -5
- package/dist/node/cli.js +2 -2
- package/package.json +1 -1
- package/widgets/EodashItemFilter.vue +57 -41
- package/widgets/EodashMap.vue +33 -29
- package/widgets/EodashMapBtns.vue +0 -1
- package/widgets/ExportState.vue +8 -8
- package/dist/client/EodashItemFilter-B9Tf2TBw.js +0 -63
- package/dist/client/EodashMap-D_znzmX7.js +0 -50707
- package/dist/client/eox-map-L7abwKTR.js +0 -36260
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { r as sl, aA as ol, Z as ll, $ as al, a6 as cl, a9 as $n, aa as _n } from "./asWebComponent-B91uK0U7.js";
|
|
1
2
|
/**
|
|
2
3
|
* @license
|
|
3
4
|
* Copyright 2019 Google LLC
|
|
4
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
6
|
*/
|
|
6
|
-
const wr = globalThis, ki = wr.ShadowRoot && (wr.ShadyCSS === void 0 || wr.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
7
|
-
let
|
|
7
|
+
const wr = globalThis, ki = wr.ShadowRoot && (wr.ShadyCSS === void 0 || wr.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, os = Symbol(), En = /* @__PURE__ */ new WeakMap();
|
|
8
|
+
let hl = class {
|
|
8
9
|
constructor(t, e, r) {
|
|
9
|
-
if (this._$cssResult$ = !0, r !==
|
|
10
|
+
if (this._$cssResult$ = !0, r !== os)
|
|
10
11
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
11
12
|
this.cssText = t, this.t = e;
|
|
12
13
|
}
|
|
@@ -15,7 +16,7 @@ let ia = class {
|
|
|
15
16
|
const e = this.t;
|
|
16
17
|
if (ki && t === void 0) {
|
|
17
18
|
const r = e !== void 0 && e.length === 1;
|
|
18
|
-
r && (t =
|
|
19
|
+
r && (t = En.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && En.set(e, t));
|
|
19
20
|
}
|
|
20
21
|
return t;
|
|
21
22
|
}
|
|
@@ -23,7 +24,7 @@ let ia = class {
|
|
|
23
24
|
return this.cssText;
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
|
-
const
|
|
27
|
+
const ul = (t) => new hl(typeof t == "string" ? t : t + "", void 0, os), dl = (t, e) => {
|
|
27
28
|
if (ki)
|
|
28
29
|
t.adoptedStyleSheets = e.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
|
|
29
30
|
else
|
|
@@ -31,21 +32,21 @@ const na = (t) => new ia(typeof t == "string" ? t : t + "", void 0, ns), sa = (t
|
|
|
31
32
|
const i = document.createElement("style"), n = wr.litNonce;
|
|
32
33
|
n !== void 0 && i.setAttribute("nonce", n), i.textContent = r.cssText, t.appendChild(i);
|
|
33
34
|
}
|
|
34
|
-
},
|
|
35
|
+
}, Sn = ki ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
|
|
35
36
|
let r = "";
|
|
36
37
|
for (const i of e.cssRules)
|
|
37
38
|
r += i.cssText;
|
|
38
|
-
return
|
|
39
|
+
return ul(r);
|
|
39
40
|
})(t) : t;
|
|
40
41
|
/**
|
|
41
42
|
* @license
|
|
42
43
|
* Copyright 2017 Google LLC
|
|
43
44
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
45
|
*/
|
|
45
|
-
const { is:
|
|
46
|
+
const { is: pl, defineProperty: fl, getOwnPropertyDescriptor: gl, getOwnPropertyNames: yl, getOwnPropertySymbols: ml, getPrototypeOf: vl } = Object, jt = globalThis, Mn = jt.trustedTypes, bl = Mn ? Mn.emptyScript : "", An = jt.reactiveElementPolyfillSupport, Vt = (t, e) => t, _r = { toAttribute(t, e) {
|
|
46
47
|
switch (e) {
|
|
47
48
|
case Boolean:
|
|
48
|
-
t = t ?
|
|
49
|
+
t = t ? bl : null;
|
|
49
50
|
break;
|
|
50
51
|
case Object:
|
|
51
52
|
case Array:
|
|
@@ -70,7 +71,7 @@ const { is: oa, defineProperty: aa, getOwnPropertyDescriptor: la, getOwnProperty
|
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
return r;
|
|
73
|
-
} }, Oi = (t, e) => !
|
|
74
|
+
} }, Oi = (t, e) => !pl(t, e), kn = { attribute: !0, type: String, converter: _r, reflect: !1, hasChanged: Oi };
|
|
74
75
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), jt.litPropertyMetadata ?? (jt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
75
76
|
class kt extends HTMLElement {
|
|
76
77
|
static addInitializer(e) {
|
|
@@ -79,14 +80,14 @@ class kt extends HTMLElement {
|
|
|
79
80
|
static get observedAttributes() {
|
|
80
81
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
81
82
|
}
|
|
82
|
-
static createProperty(e, r =
|
|
83
|
+
static createProperty(e, r = kn) {
|
|
83
84
|
if (r.state && (r.attribute = !1), this._$Ei(), this.elementProperties.set(e, r), !r.noAccessor) {
|
|
84
85
|
const i = Symbol(), n = this.getPropertyDescriptor(e, i, r);
|
|
85
|
-
n !== void 0 &&
|
|
86
|
+
n !== void 0 && fl(this.prototype, e, n);
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
static getPropertyDescriptor(e, r, i) {
|
|
89
|
-
const { get: n, set: s } =
|
|
90
|
+
const { get: n, set: s } = gl(this.prototype, e) ?? { get() {
|
|
90
91
|
return this[r];
|
|
91
92
|
}, set(o) {
|
|
92
93
|
this[r] = o;
|
|
@@ -94,24 +95,24 @@ class kt extends HTMLElement {
|
|
|
94
95
|
return { get() {
|
|
95
96
|
return n?.call(this);
|
|
96
97
|
}, set(o) {
|
|
97
|
-
const
|
|
98
|
-
s.call(this, o), this.requestUpdate(e,
|
|
98
|
+
const a = n?.call(this);
|
|
99
|
+
s.call(this, o), this.requestUpdate(e, a, i);
|
|
99
100
|
}, configurable: !0, enumerable: !0 };
|
|
100
101
|
}
|
|
101
102
|
static getPropertyOptions(e) {
|
|
102
|
-
return this.elementProperties.get(e) ??
|
|
103
|
+
return this.elementProperties.get(e) ?? kn;
|
|
103
104
|
}
|
|
104
105
|
static _$Ei() {
|
|
105
106
|
if (this.hasOwnProperty(Vt("elementProperties")))
|
|
106
107
|
return;
|
|
107
|
-
const e =
|
|
108
|
+
const e = vl(this);
|
|
108
109
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
109
110
|
}
|
|
110
111
|
static finalize() {
|
|
111
112
|
if (this.hasOwnProperty(Vt("finalized")))
|
|
112
113
|
return;
|
|
113
114
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Vt("properties"))) {
|
|
114
|
-
const r = this.properties, i = [...
|
|
115
|
+
const r = this.properties, i = [...yl(r), ...ml(r)];
|
|
115
116
|
for (const n of i)
|
|
116
117
|
this.createProperty(n, r[n]);
|
|
117
118
|
}
|
|
@@ -134,9 +135,9 @@ class kt extends HTMLElement {
|
|
|
134
135
|
if (Array.isArray(e)) {
|
|
135
136
|
const i = new Set(e.flat(1 / 0).reverse());
|
|
136
137
|
for (const n of i)
|
|
137
|
-
r.unshift(
|
|
138
|
+
r.unshift(Sn(n));
|
|
138
139
|
} else
|
|
139
|
-
e !== void 0 && r.push(
|
|
140
|
+
e !== void 0 && r.push(Sn(e));
|
|
140
141
|
return r;
|
|
141
142
|
}
|
|
142
143
|
static _$Eu(e, r) {
|
|
@@ -166,7 +167,7 @@ class kt extends HTMLElement {
|
|
|
166
167
|
}
|
|
167
168
|
createRenderRoot() {
|
|
168
169
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
169
|
-
return
|
|
170
|
+
return dl(e, this.constructor.elementStyles), e;
|
|
170
171
|
}
|
|
171
172
|
connectedCallback() {
|
|
172
173
|
var e;
|
|
@@ -199,8 +200,8 @@ class kt extends HTMLElement {
|
|
|
199
200
|
var i;
|
|
200
201
|
const n = this.constructor, s = n._$Eh.get(e);
|
|
201
202
|
if (s !== void 0 && this._$Em !== s) {
|
|
202
|
-
const o = n.getPropertyOptions(s),
|
|
203
|
-
this._$Em = s, this[s] =
|
|
203
|
+
const o = n.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? o.converter : _r;
|
|
204
|
+
this._$Em = s, this[s] = a.fromAttribute(r, o.type), this._$Em = null;
|
|
204
205
|
}
|
|
205
206
|
}
|
|
206
207
|
requestUpdate(e, r, i) {
|
|
@@ -283,68 +284,68 @@ class kt extends HTMLElement {
|
|
|
283
284
|
firstUpdated(e) {
|
|
284
285
|
}
|
|
285
286
|
}
|
|
286
|
-
kt.elementStyles = [], kt.shadowRootOptions = { mode: "open" }, kt[Vt("elementProperties")] = /* @__PURE__ */ new Map(), kt[Vt("finalized")] = /* @__PURE__ */ new Map(),
|
|
287
|
+
kt.elementStyles = [], kt.shadowRootOptions = { mode: "open" }, kt[Vt("elementProperties")] = /* @__PURE__ */ new Map(), kt[Vt("finalized")] = /* @__PURE__ */ new Map(), An?.({ ReactiveElement: kt }), (jt.reactiveElementVersions ?? (jt.reactiveElementVersions = [])).push("2.0.4");
|
|
287
288
|
/**
|
|
288
289
|
* @license
|
|
289
290
|
* Copyright 2017 Google LLC
|
|
290
291
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
291
292
|
*/
|
|
292
|
-
const Er = globalThis, Sr = Er.trustedTypes,
|
|
293
|
-
\f\r]`, Yt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
294
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
295
|
-
function
|
|
293
|
+
const Er = globalThis, Sr = Er.trustedTypes, On = Sr ? Sr.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Pi = "$lit$", Qe = `lit$${(Math.random() + "").slice(9)}$`, Li = "?" + Qe, xl = `<${Li}>`, bt = document, Jt = () => bt.createComment(""), Zt = (t) => t === null || typeof t != "object" && typeof t != "function", ls = Array.isArray, as = (t) => ls(t) || typeof t?.[Symbol.iterator] == "function", ci = `[
|
|
294
|
+
\f\r]`, Yt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Pn = /-->/g, Ln = />/g, gt = RegExp(`>|${ci}(?:([^\\s"'>=/]+)(${ci}*=${ci}*(?:[^
|
|
295
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Cn = /'/g, Rn = /"/g, cs = /^(?:script|style|textarea|title)$/i, wl = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), F = wl(1), ot = Symbol.for("lit-noChange"), le = Symbol.for("lit-nothing"), jn = /* @__PURE__ */ new WeakMap(), vt = bt.createTreeWalker(bt, 129);
|
|
296
|
+
function hs(t, e) {
|
|
296
297
|
if (!Array.isArray(t) || !t.hasOwnProperty("raw"))
|
|
297
298
|
throw Error("invalid template strings array");
|
|
298
|
-
return
|
|
299
|
+
return On !== void 0 ? On.createHTML(e) : e;
|
|
299
300
|
}
|
|
300
|
-
const
|
|
301
|
+
const us = (t, e) => {
|
|
301
302
|
const r = t.length - 1, i = [];
|
|
302
303
|
let n, s = e === 2 ? "<svg>" : "", o = Yt;
|
|
303
|
-
for (let
|
|
304
|
-
const
|
|
304
|
+
for (let a = 0; a < r; a++) {
|
|
305
|
+
const l = t[a];
|
|
305
306
|
let h, p, g = -1, b = 0;
|
|
306
|
-
for (; b <
|
|
307
|
-
b = o.lastIndex, o === Yt ? p[1] === "!--" ? o =
|
|
308
|
-
const m = o === gt && t[
|
|
309
|
-
s += o === Yt ?
|
|
307
|
+
for (; b < l.length && (o.lastIndex = b, p = o.exec(l), p !== null); )
|
|
308
|
+
b = o.lastIndex, o === Yt ? p[1] === "!--" ? o = Pn : p[1] !== void 0 ? o = Ln : p[2] !== void 0 ? (cs.test(p[2]) && (n = RegExp("</" + p[2], "g")), o = gt) : p[3] !== void 0 && (o = gt) : o === gt ? p[0] === ">" ? (o = n ?? Yt, g = -1) : p[1] === void 0 ? g = -2 : (g = o.lastIndex - p[2].length, h = p[1], o = p[3] === void 0 ? gt : p[3] === '"' ? Rn : Cn) : o === Rn || o === Cn ? o = gt : o === Pn || o === Ln ? o = Yt : (o = gt, n = void 0);
|
|
309
|
+
const m = o === gt && t[a + 1].startsWith("/>") ? " " : "";
|
|
310
|
+
s += o === Yt ? l + xl : g >= 0 ? (i.push(h), l.slice(0, g) + Pi + l.slice(g) + Qe + m) : l + Qe + (g === -2 ? a : m);
|
|
310
311
|
}
|
|
311
|
-
return [
|
|
312
|
+
return [hs(t, s + (t[r] || "<?>") + (e === 2 ? "</svg>" : "")), i];
|
|
312
313
|
};
|
|
313
314
|
class Gt {
|
|
314
315
|
constructor({ strings: e, _$litType$: r }, i) {
|
|
315
316
|
let n;
|
|
316
317
|
this.parts = [];
|
|
317
318
|
let s = 0, o = 0;
|
|
318
|
-
const
|
|
319
|
+
const a = e.length - 1, l = this.parts, [h, p] = us(e, r);
|
|
319
320
|
if (this.el = Gt.createElement(h, i), vt.currentNode = this.el.content, r === 2) {
|
|
320
321
|
const g = this.el.content.firstChild;
|
|
321
322
|
g.replaceWith(...g.childNodes);
|
|
322
323
|
}
|
|
323
|
-
for (; (n = vt.nextNode()) !== null &&
|
|
324
|
+
for (; (n = vt.nextNode()) !== null && l.length < a; ) {
|
|
324
325
|
if (n.nodeType === 1) {
|
|
325
326
|
if (n.hasAttributes())
|
|
326
327
|
for (const g of n.getAttributeNames())
|
|
327
328
|
if (g.endsWith(Pi)) {
|
|
328
329
|
const b = p[o++], m = n.getAttribute(g).split(Qe), _ = /([.?@])?(.*)/.exec(b);
|
|
329
|
-
|
|
330
|
+
l.push({ type: 1, index: s, name: _[2], strings: m, ctor: _[1] === "." ? ps : _[1] === "?" ? fs : _[1] === "@" ? gs : nr }), n.removeAttribute(g);
|
|
330
331
|
} else
|
|
331
|
-
g.startsWith(Qe) && (
|
|
332
|
-
if (
|
|
332
|
+
g.startsWith(Qe) && (l.push({ type: 6, index: s }), n.removeAttribute(g));
|
|
333
|
+
if (cs.test(n.tagName)) {
|
|
333
334
|
const g = n.textContent.split(Qe), b = g.length - 1;
|
|
334
335
|
if (b > 0) {
|
|
335
336
|
n.textContent = Sr ? Sr.emptyScript : "";
|
|
336
337
|
for (let m = 0; m < b; m++)
|
|
337
|
-
n.append(g[m], Jt()), vt.nextNode(),
|
|
338
|
+
n.append(g[m], Jt()), vt.nextNode(), l.push({ type: 2, index: ++s });
|
|
338
339
|
n.append(g[b], Jt());
|
|
339
340
|
}
|
|
340
341
|
}
|
|
341
342
|
} else if (n.nodeType === 8)
|
|
342
343
|
if (n.data === Li)
|
|
343
|
-
|
|
344
|
+
l.push({ type: 2, index: s });
|
|
344
345
|
else {
|
|
345
346
|
let g = -1;
|
|
346
347
|
for (; (g = n.data.indexOf(Qe, g + 1)) !== -1; )
|
|
347
|
-
|
|
348
|
+
l.push({ type: 7, index: s }), g += Qe.length - 1;
|
|
348
349
|
}
|
|
349
350
|
s++;
|
|
350
351
|
}
|
|
@@ -359,10 +360,10 @@ function xt(t, e, r = t, i) {
|
|
|
359
360
|
if (e === ot)
|
|
360
361
|
return e;
|
|
361
362
|
let o = i !== void 0 ? (n = r._$Co) == null ? void 0 : n[i] : r._$Cl;
|
|
362
|
-
const
|
|
363
|
-
return o?.constructor !==
|
|
363
|
+
const a = Zt(e) ? void 0 : e._$litDirective$;
|
|
364
|
+
return o?.constructor !== a && ((s = o?._$AO) == null || s.call(o, !1), a === void 0 ? o = void 0 : (o = new a(t), o._$AT(t, r, i)), i !== void 0 ? (r._$Co ?? (r._$Co = []))[i] = o : r._$Cl = o), o !== void 0 && (e = xt(t, o._$AS(t, e.values), o, i)), e;
|
|
364
365
|
}
|
|
365
|
-
class
|
|
366
|
+
class ds {
|
|
366
367
|
constructor(e, r) {
|
|
367
368
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = r;
|
|
368
369
|
}
|
|
@@ -375,13 +376,13 @@ class hs {
|
|
|
375
376
|
u(e) {
|
|
376
377
|
const { el: { content: r }, parts: i } = this._$AD, n = (e?.creationScope ?? bt).importNode(r, !0);
|
|
377
378
|
vt.currentNode = n;
|
|
378
|
-
let s = vt.nextNode(), o = 0,
|
|
379
|
-
for (;
|
|
380
|
-
if (o ===
|
|
379
|
+
let s = vt.nextNode(), o = 0, a = 0, l = i[0];
|
|
380
|
+
for (; l !== void 0; ) {
|
|
381
|
+
if (o === l.index) {
|
|
381
382
|
let h;
|
|
382
|
-
|
|
383
|
+
l.type === 2 ? h = new It(s, s.nextSibling, this, e) : l.type === 1 ? h = new l.ctor(s, l.name, l.strings, this, e) : l.type === 6 && (h = new ys(s, this, e)), this._$AV.push(h), l = i[++a];
|
|
383
384
|
}
|
|
384
|
-
o !==
|
|
385
|
+
o !== l?.index && (s = vt.nextNode(), o++);
|
|
385
386
|
}
|
|
386
387
|
return vt.currentNode = bt, n;
|
|
387
388
|
}
|
|
@@ -397,7 +398,7 @@ class It {
|
|
|
397
398
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
|
398
399
|
}
|
|
399
400
|
constructor(e, r, i, n) {
|
|
400
|
-
this.type = 2, this._$AH =
|
|
401
|
+
this.type = 2, this._$AH = le, this._$AN = void 0, this._$AA = e, this._$AB = r, this._$AM = i, this.options = n, this._$Cv = n?.isConnected ?? !0;
|
|
401
402
|
}
|
|
402
403
|
get parentNode() {
|
|
403
404
|
let e = this._$AA.parentNode;
|
|
@@ -411,7 +412,7 @@ class It {
|
|
|
411
412
|
return this._$AB;
|
|
412
413
|
}
|
|
413
414
|
_$AI(e, r = this) {
|
|
414
|
-
e = xt(this, e, r), Zt(e) ? e ===
|
|
415
|
+
e = xt(this, e, r), Zt(e) ? e === le || e == null || e === "" ? (this._$AH !== le && this._$AR(), this._$AH = le) : e !== this._$AH && e !== ot && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : as(e) ? this.k(e) : this._(e);
|
|
415
416
|
}
|
|
416
417
|
S(e) {
|
|
417
418
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -420,24 +421,24 @@ class It {
|
|
|
420
421
|
this._$AH !== e && (this._$AR(), this._$AH = this.S(e));
|
|
421
422
|
}
|
|
422
423
|
_(e) {
|
|
423
|
-
this._$AH !==
|
|
424
|
+
this._$AH !== le && Zt(this._$AH) ? this._$AA.nextSibling.data = e : this.T(bt.createTextNode(e)), this._$AH = e;
|
|
424
425
|
}
|
|
425
426
|
$(e) {
|
|
426
427
|
var r;
|
|
427
|
-
const { values: i, _$litType$: n } = e, s = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = Gt.createElement(
|
|
428
|
+
const { values: i, _$litType$: n } = e, s = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = Gt.createElement(hs(n.h, n.h[0]), this.options)), n);
|
|
428
429
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === s)
|
|
429
430
|
this._$AH.p(i);
|
|
430
431
|
else {
|
|
431
|
-
const o = new
|
|
432
|
-
o.p(i), this.T(
|
|
432
|
+
const o = new ds(s, this), a = o.u(this.options);
|
|
433
|
+
o.p(i), this.T(a), this._$AH = o;
|
|
433
434
|
}
|
|
434
435
|
}
|
|
435
436
|
_$AC(e) {
|
|
436
|
-
let r =
|
|
437
|
-
return r === void 0 &&
|
|
437
|
+
let r = jn.get(e.strings);
|
|
438
|
+
return r === void 0 && jn.set(e.strings, r = new Gt(e)), r;
|
|
438
439
|
}
|
|
439
440
|
k(e) {
|
|
440
|
-
|
|
441
|
+
ls(this._$AH) || (this._$AH = [], this._$AR());
|
|
441
442
|
const r = this._$AH;
|
|
442
443
|
let i, n = 0;
|
|
443
444
|
for (const s of e)
|
|
@@ -464,7 +465,7 @@ class nr {
|
|
|
464
465
|
return this._$AM._$AU;
|
|
465
466
|
}
|
|
466
467
|
constructor(e, r, i, n, s) {
|
|
467
|
-
this.type = 1, this._$AH =
|
|
468
|
+
this.type = 1, this._$AH = le, 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 = le;
|
|
468
469
|
}
|
|
469
470
|
_$AI(e, r = this, i, n) {
|
|
470
471
|
const s = this.strings;
|
|
@@ -472,41 +473,41 @@ class nr {
|
|
|
472
473
|
if (s === void 0)
|
|
473
474
|
e = xt(this, e, r, 0), o = !Zt(e) || e !== this._$AH && e !== ot, o && (this._$AH = e);
|
|
474
475
|
else {
|
|
475
|
-
const
|
|
476
|
-
let
|
|
477
|
-
for (e = s[0],
|
|
478
|
-
h = xt(this,
|
|
476
|
+
const a = e;
|
|
477
|
+
let l, h;
|
|
478
|
+
for (e = s[0], l = 0; l < s.length - 1; l++)
|
|
479
|
+
h = xt(this, a[i + l], r, l), h === ot && (h = this._$AH[l]), o || (o = !Zt(h) || h !== this._$AH[l]), h === le ? e = le : e !== le && (e += (h ?? "") + s[l + 1]), this._$AH[l] = h;
|
|
479
480
|
}
|
|
480
481
|
o && !n && this.j(e);
|
|
481
482
|
}
|
|
482
483
|
j(e) {
|
|
483
|
-
e ===
|
|
484
|
+
e === le ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
484
485
|
}
|
|
485
486
|
}
|
|
486
|
-
class
|
|
487
|
+
class ps extends nr {
|
|
487
488
|
constructor() {
|
|
488
489
|
super(...arguments), this.type = 3;
|
|
489
490
|
}
|
|
490
491
|
j(e) {
|
|
491
|
-
this.element[this.name] = e ===
|
|
492
|
+
this.element[this.name] = e === le ? void 0 : e;
|
|
492
493
|
}
|
|
493
494
|
}
|
|
494
|
-
class
|
|
495
|
+
class fs extends nr {
|
|
495
496
|
constructor() {
|
|
496
497
|
super(...arguments), this.type = 4;
|
|
497
498
|
}
|
|
498
499
|
j(e) {
|
|
499
|
-
this.element.toggleAttribute(this.name, !!e && e !==
|
|
500
|
+
this.element.toggleAttribute(this.name, !!e && e !== le);
|
|
500
501
|
}
|
|
501
502
|
}
|
|
502
|
-
class
|
|
503
|
+
class gs extends nr {
|
|
503
504
|
constructor(e, r, i, n, s) {
|
|
504
505
|
super(e, r, i, n, s), this.type = 5;
|
|
505
506
|
}
|
|
506
507
|
_$AI(e, r = this) {
|
|
507
|
-
if ((e = xt(this, e, r, 0) ??
|
|
508
|
+
if ((e = xt(this, e, r, 0) ?? le) === ot)
|
|
508
509
|
return;
|
|
509
|
-
const i = this._$AH, n = e ===
|
|
510
|
+
const i = this._$AH, n = e === le && i !== le || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, s = e !== le && (i === le || n);
|
|
510
511
|
n && this.element.removeEventListener(this.name, this, i), s && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
511
512
|
}
|
|
512
513
|
handleEvent(e) {
|
|
@@ -514,7 +515,7 @@ class ps extends nr {
|
|
|
514
515
|
typeof this._$AH == "function" ? this._$AH.call(((r = this.options) == null ? void 0 : r.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
|
515
516
|
}
|
|
516
517
|
}
|
|
517
|
-
class
|
|
518
|
+
class ys {
|
|
518
519
|
constructor(e, r, i) {
|
|
519
520
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = i;
|
|
520
521
|
}
|
|
@@ -525,9 +526,9 @@ class fs {
|
|
|
525
526
|
xt(this, e);
|
|
526
527
|
}
|
|
527
528
|
}
|
|
528
|
-
const
|
|
529
|
-
|
|
530
|
-
const
|
|
529
|
+
const $l = { P: Pi, A: Qe, C: Li, M: 1, L: us, R: ds, D: as, V: xt, I: It, H: nr, N: fs, U: gs, B: ps, F: ys }, Tn = Er.litHtmlPolyfillSupport;
|
|
530
|
+
Tn?.(Gt, It), (Er.litHtmlVersions ?? (Er.litHtmlVersions = [])).push("3.1.2");
|
|
531
|
+
const _l = (t, e, r) => {
|
|
531
532
|
const i = r?.renderBefore ?? e;
|
|
532
533
|
let n = i._$litPart$;
|
|
533
534
|
if (n === void 0) {
|
|
@@ -552,7 +553,7 @@ let _e = class extends kt {
|
|
|
552
553
|
}
|
|
553
554
|
update(t) {
|
|
554
555
|
const e = this.render();
|
|
555
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
556
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = _l(e, this.renderRoot, this.renderOptions);
|
|
556
557
|
}
|
|
557
558
|
connectedCallback() {
|
|
558
559
|
var t;
|
|
@@ -566,10 +567,10 @@ let _e = class extends kt {
|
|
|
566
567
|
return ot;
|
|
567
568
|
}
|
|
568
569
|
};
|
|
569
|
-
var
|
|
570
|
-
_e._$litElement$ = !0, _e.finalized = !0, (
|
|
571
|
-
const
|
|
572
|
-
|
|
570
|
+
var Dn;
|
|
571
|
+
_e._$litElement$ = !0, _e.finalized = !0, (Dn = globalThis.litElementHydrateSupport) == null || Dn.call(globalThis, { LitElement: _e });
|
|
572
|
+
const Nn = globalThis.litElementPolyfillSupport;
|
|
573
|
+
Nn?.({ LitElement: _e });
|
|
573
574
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
|
574
575
|
/**
|
|
575
576
|
* @license
|
|
@@ -586,29 +587,29 @@ const Re = (t) => (e, r) => {
|
|
|
586
587
|
* Copyright 2017 Google LLC
|
|
587
588
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
588
589
|
*/
|
|
589
|
-
const
|
|
590
|
+
const El = { attribute: !0, type: String, converter: _r, reflect: !1, hasChanged: Oi }, Sl = (t = El, e, r) => {
|
|
590
591
|
const { kind: i, metadata: n } = r;
|
|
591
592
|
let s = globalThis.litPropertyMetadata.get(n);
|
|
592
593
|
if (s === void 0 && globalThis.litPropertyMetadata.set(n, s = /* @__PURE__ */ new Map()), s.set(r.name, t), i === "accessor") {
|
|
593
594
|
const { name: o } = r;
|
|
594
|
-
return { set(
|
|
595
|
-
const
|
|
596
|
-
e.set.call(this,
|
|
597
|
-
}, init(
|
|
598
|
-
return
|
|
595
|
+
return { set(a) {
|
|
596
|
+
const l = e.get.call(this);
|
|
597
|
+
e.set.call(this, a), this.requestUpdate(o, l, t);
|
|
598
|
+
}, init(a) {
|
|
599
|
+
return a !== void 0 && this.P(o, void 0, t), a;
|
|
599
600
|
} };
|
|
600
601
|
}
|
|
601
602
|
if (i === "setter") {
|
|
602
603
|
const { name: o } = r;
|
|
603
|
-
return function(
|
|
604
|
-
const
|
|
605
|
-
e.call(this,
|
|
604
|
+
return function(a) {
|
|
605
|
+
const l = this[o];
|
|
606
|
+
e.call(this, a), this.requestUpdate(o, l, t);
|
|
606
607
|
};
|
|
607
608
|
}
|
|
608
609
|
throw Error("Unsupported decorator location: " + i);
|
|
609
610
|
};
|
|
610
611
|
function G(t) {
|
|
611
|
-
return (e, r) => typeof r == "object" ?
|
|
612
|
+
return (e, r) => typeof r == "object" ? Sl(t, e, r) : ((i, n, s) => {
|
|
612
613
|
const o = n.hasOwnProperty(s);
|
|
613
614
|
return n.constructor.createProperty(s, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(n, s) : void 0;
|
|
614
615
|
})(t, e, r);
|
|
@@ -646,8 +647,8 @@ function* Kt(t, e) {
|
|
|
646
647
|
* Copyright 2017 Google LLC
|
|
647
648
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
648
649
|
*/
|
|
649
|
-
const
|
|
650
|
-
let
|
|
650
|
+
const ms = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, vs = (t) => (...e) => ({ _$litDirective$: t, values: e });
|
|
651
|
+
let bs = class {
|
|
651
652
|
constructor(t) {
|
|
652
653
|
}
|
|
653
654
|
get _$AU() {
|
|
@@ -668,19 +669,19 @@ let ms = class {
|
|
|
668
669
|
* Copyright 2020 Google LLC
|
|
669
670
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
670
671
|
*/
|
|
671
|
-
const { I:
|
|
672
|
+
const { I: Ml } = $l, In = () => document.createComment(""), Xt = (t, e, r) => {
|
|
672
673
|
var i;
|
|
673
674
|
const n = t._$AA.parentNode, s = e === void 0 ? t._$AB : e._$AA;
|
|
674
675
|
if (r === void 0) {
|
|
675
|
-
const o = n.insertBefore(
|
|
676
|
-
r = new
|
|
676
|
+
const o = n.insertBefore(In(), s), a = n.insertBefore(In(), s);
|
|
677
|
+
r = new Ml(o, a, t, t.options);
|
|
677
678
|
} else {
|
|
678
|
-
const o = r._$AB.nextSibling,
|
|
679
|
-
if (
|
|
679
|
+
const o = r._$AB.nextSibling, a = r._$AM, l = a !== t;
|
|
680
|
+
if (l) {
|
|
680
681
|
let h;
|
|
681
|
-
(i = r._$AQ) == null || i.call(r, t), r._$AM = t, r._$AP !== void 0 && (h = t._$AU) !==
|
|
682
|
+
(i = r._$AQ) == null || i.call(r, t), r._$AM = t, r._$AP !== void 0 && (h = t._$AU) !== a._$AU && r._$AP(h);
|
|
682
683
|
}
|
|
683
|
-
if (o !== s ||
|
|
684
|
+
if (o !== s || l) {
|
|
684
685
|
let h = r._$AA;
|
|
685
686
|
for (; h !== o; ) {
|
|
686
687
|
const p = h.nextSibling;
|
|
@@ -689,7 +690,7 @@ const { I: ba } = ga, Dn = () => document.createComment(""), Xt = (t, e, r) => {
|
|
|
689
690
|
}
|
|
690
691
|
}
|
|
691
692
|
return r;
|
|
692
|
-
}, yt = (t, e, r = t) => (t._$AI(e, r), t),
|
|
693
|
+
}, yt = (t, e, r = t) => (t._$AI(e, r), t), Al = {}, kl = (t, e = Al) => t._$AH = e, Ol = (t) => t._$AH, hi = (t) => {
|
|
693
694
|
var e;
|
|
694
695
|
(e = t._$AP) == null || e.call(t, !1, !0);
|
|
695
696
|
let r = t._$AA;
|
|
@@ -704,14 +705,14 @@ const { I: ba } = ga, Dn = () => document.createComment(""), Xt = (t, e, r) => {
|
|
|
704
705
|
* Copyright 2017 Google LLC
|
|
705
706
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
706
707
|
*/
|
|
707
|
-
const
|
|
708
|
+
const qn = (t, e, r) => {
|
|
708
709
|
const i = /* @__PURE__ */ new Map();
|
|
709
710
|
for (let n = e; n <= r; n++)
|
|
710
711
|
i.set(t[n], n);
|
|
711
712
|
return i;
|
|
712
|
-
},
|
|
713
|
+
}, xs = vs(class extends bs {
|
|
713
714
|
constructor(t) {
|
|
714
|
-
if (super(t), t.type !==
|
|
715
|
+
if (super(t), t.type !== ms.CHILD)
|
|
715
716
|
throw Error("repeat() can only be used in text expressions");
|
|
716
717
|
}
|
|
717
718
|
dt(t, e, r) {
|
|
@@ -719,54 +720,54 @@ const Nn = (t, e, r) => {
|
|
|
719
720
|
r === void 0 ? r = e : e !== void 0 && (i = e);
|
|
720
721
|
const n = [], s = [];
|
|
721
722
|
let o = 0;
|
|
722
|
-
for (const
|
|
723
|
-
n[o] = i ? i(
|
|
723
|
+
for (const a of t)
|
|
724
|
+
n[o] = i ? i(a, o) : o, s[o] = r(a, o), o++;
|
|
724
725
|
return { values: s, keys: n };
|
|
725
726
|
}
|
|
726
727
|
render(t, e, r) {
|
|
727
728
|
return this.dt(t, e, r).values;
|
|
728
729
|
}
|
|
729
730
|
update(t, [e, r, i]) {
|
|
730
|
-
const n =
|
|
731
|
+
const n = Ol(t), { values: s, keys: o } = this.dt(e, r, i);
|
|
731
732
|
if (!Array.isArray(n))
|
|
732
733
|
return this.ut = o, s;
|
|
733
|
-
const
|
|
734
|
+
const a = this.ut ?? (this.ut = []), l = [];
|
|
734
735
|
let h, p, g = 0, b = n.length - 1, m = 0, _ = s.length - 1;
|
|
735
736
|
for (; g <= b && m <= _; )
|
|
736
737
|
if (n[g] === null)
|
|
737
738
|
g++;
|
|
738
739
|
else if (n[b] === null)
|
|
739
740
|
b--;
|
|
740
|
-
else if (
|
|
741
|
-
|
|
742
|
-
else if (
|
|
743
|
-
|
|
744
|
-
else if (
|
|
745
|
-
|
|
746
|
-
else if (
|
|
747
|
-
|
|
748
|
-
else if (h === void 0 && (h =
|
|
749
|
-
if (h.has(
|
|
741
|
+
else if (a[g] === o[m])
|
|
742
|
+
l[m] = yt(n[g], s[m]), g++, m++;
|
|
743
|
+
else if (a[b] === o[_])
|
|
744
|
+
l[_] = yt(n[b], s[_]), b--, _--;
|
|
745
|
+
else if (a[g] === o[_])
|
|
746
|
+
l[_] = yt(n[g], s[_]), Xt(t, l[_ + 1], n[g]), g++, _--;
|
|
747
|
+
else if (a[b] === o[m])
|
|
748
|
+
l[m] = yt(n[b], s[m]), Xt(t, n[g], n[b]), b--, m++;
|
|
749
|
+
else if (h === void 0 && (h = qn(o, m, _), p = qn(a, g, b)), h.has(a[g]))
|
|
750
|
+
if (h.has(a[b])) {
|
|
750
751
|
const k = p.get(o[m]), z = k !== void 0 ? n[k] : null;
|
|
751
752
|
if (z === null) {
|
|
752
753
|
const I = Xt(t, n[g]);
|
|
753
|
-
yt(I, s[m]),
|
|
754
|
+
yt(I, s[m]), l[m] = I;
|
|
754
755
|
} else
|
|
755
|
-
|
|
756
|
+
l[m] = yt(z, s[m]), Xt(t, n[g], z), n[k] = null;
|
|
756
757
|
m++;
|
|
757
758
|
} else
|
|
758
759
|
hi(n[b]), b--;
|
|
759
760
|
else
|
|
760
761
|
hi(n[g]), g++;
|
|
761
762
|
for (; m <= _; ) {
|
|
762
|
-
const k = Xt(t,
|
|
763
|
-
yt(k, s[m]),
|
|
763
|
+
const k = Xt(t, l[_ + 1]);
|
|
764
|
+
yt(k, s[m]), l[m++] = k;
|
|
764
765
|
}
|
|
765
766
|
for (; g <= b; ) {
|
|
766
767
|
const k = n[g++];
|
|
767
768
|
k !== null && hi(k);
|
|
768
769
|
}
|
|
769
|
-
return this.ut = o,
|
|
770
|
+
return this.ut = o, kl(t, l), ot;
|
|
770
771
|
}
|
|
771
772
|
});
|
|
772
773
|
/**
|
|
@@ -774,13 +775,13 @@ const Nn = (t, e, r) => {
|
|
|
774
775
|
* Copyright 2017 Google LLC
|
|
775
776
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
776
777
|
*/
|
|
777
|
-
let fi = class extends
|
|
778
|
+
let fi = class extends bs {
|
|
778
779
|
constructor(t) {
|
|
779
|
-
if (super(t), this.it =
|
|
780
|
+
if (super(t), this.it = le, t.type !== ms.CHILD)
|
|
780
781
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
781
782
|
}
|
|
782
783
|
render(t) {
|
|
783
|
-
if (t ===
|
|
784
|
+
if (t === le || t == null)
|
|
784
785
|
return this._t = void 0, this.it = t;
|
|
785
786
|
if (t === ot)
|
|
786
787
|
return t;
|
|
@@ -794,33 +795,33 @@ let fi = class extends ms {
|
|
|
794
795
|
}
|
|
795
796
|
};
|
|
796
797
|
fi.directiveName = "unsafeHTML", fi.resultType = 1;
|
|
797
|
-
const
|
|
798
|
+
const Bn = vs(fi);
|
|
798
799
|
/**
|
|
799
800
|
* @license
|
|
800
801
|
* Copyright 2020 Google LLC
|
|
801
802
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
802
803
|
*/
|
|
803
|
-
const
|
|
804
|
-
if (t?.r ===
|
|
804
|
+
const ws = Symbol.for(""), Pl = (t) => {
|
|
805
|
+
if (t?.r === ws)
|
|
805
806
|
return t?._$litStatic$;
|
|
806
|
-
}, Ot = (t) => ({ _$litStatic$: t, r:
|
|
807
|
+
}, Ot = (t) => ({ _$litStatic$: t, r: ws }), Un = /* @__PURE__ */ new Map(), Ll = (t) => (e, ...r) => {
|
|
807
808
|
const i = r.length;
|
|
808
809
|
let n, s;
|
|
809
|
-
const o = [],
|
|
810
|
-
let
|
|
810
|
+
const o = [], a = [];
|
|
811
|
+
let l, h = 0, p = !1;
|
|
811
812
|
for (; h < i; ) {
|
|
812
|
-
for (
|
|
813
|
-
|
|
814
|
-
h !== i &&
|
|
813
|
+
for (l = e[h]; h < i && (s = r[h], (n = Pl(s)) !== void 0); )
|
|
814
|
+
l += n + e[++h], p = !0;
|
|
815
|
+
h !== i && a.push(s), o.push(l), h++;
|
|
815
816
|
}
|
|
816
817
|
if (h === i && o.push(e[i]), p) {
|
|
817
818
|
const g = o.join("$$lit$$");
|
|
818
|
-
(e =
|
|
819
|
+
(e = Un.get(g)) === void 0 && (o.raw = o, Un.set(g, e = o)), r = a;
|
|
819
820
|
}
|
|
820
821
|
return t(e, ...r);
|
|
821
|
-
}, $r =
|
|
822
|
+
}, $r = Ll(F);
|
|
822
823
|
(() => {
|
|
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",
|
|
824
|
+
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", p = "data", g = "min", b = "max", m = "step", _ = "round", k = "type", z = "theme", I = "rtl", f = "btt", y = "disabled", w = "keyboard-disabled", E = "mousewheel-disabled", S = "slider-width", M = "slider-height", L = "slider-radius", B = "slider-bg", U = "slider-bg-hover", T = "slider-bg-fill", re = "pointer-width", Z = "pointer-height", C = "pointer-radius", O = "pointer-bg", A = "pointer-bg-hover", N = "pointer-bg-focus", P = "pointer-shadow", K = "pointer-shadow-hover", W = "pointer-shadow-focus", oe = "pointer-border", ie = "pointer-border-hover", me = "pointer-border-focus", ve = "animate-onclick", Me = "css-links", xe = "vertical", Ae = "horizontal", Ge = (c, d, x, v, R) => {
|
|
824
825
|
let Y = d - c;
|
|
825
826
|
return Y === 0 ? x : (v - x) * (R - c) / Y + x;
|
|
826
827
|
}, $e = (c) => !isNaN(parseFloat(c)) && isFinite(c), ne = (c, d) => $e(c) ? Number(c) : d, Ne = (c, d) => d === 0 ? 0 : Math.round(c / d) * d, dt = (c, d = 1 / 0) => {
|
|
@@ -828,15 +829,15 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
828
829
|
return c;
|
|
829
830
|
let x = e(10, d);
|
|
830
831
|
return Math.round(c * x) / x;
|
|
831
|
-
}, pe = (c) => c == null ? !1 : typeof c == "boolean" ? c : c.trim().toLowerCase() === "true",
|
|
832
|
+
}, pe = (c) => c == null ? !1 : typeof c == "boolean" ? c : c.trim().toLowerCase() === "true", lo = (c, d) => {
|
|
832
833
|
c.dispatchEvent(new CustomEvent("onPointerClicked", { detail: { $pointer: d } }));
|
|
833
|
-
}, oo = (c, d) => {
|
|
834
|
-
c.dispatchEvent(new CustomEvent("onMouseDown", { detail: { nativeEvent: d } }));
|
|
835
834
|
}, ao = (c, d) => {
|
|
835
|
+
c.dispatchEvent(new CustomEvent("onMouseDown", { detail: { nativeEvent: d } }));
|
|
836
|
+
}, co = (c, d) => {
|
|
836
837
|
c.dispatchEvent(new CustomEvent("onMouseUp", { detail: { nativeEvent: d } }));
|
|
837
|
-
},
|
|
838
|
+
}, ho = (c, d) => {
|
|
838
839
|
c.dispatchEvent(new CustomEvent("onKeyDown", { detail: { nativeEvent: d } }));
|
|
839
|
-
},
|
|
840
|
+
}, uo = (c, d) => {
|
|
840
841
|
if (!d || d.length <= 0)
|
|
841
842
|
return;
|
|
842
843
|
let x = d.map((R) => $e(R) ? ne(R, R) : R), v = { values: x || [] };
|
|
@@ -876,10 +877,10 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
876
877
|
break;
|
|
877
878
|
}
|
|
878
879
|
}
|
|
879
|
-
|
|
880
|
+
ho(c, V);
|
|
880
881
|
}
|
|
881
882
|
}, te = () => {
|
|
882
|
-
D ||
|
|
883
|
+
D || lo(c, d);
|
|
883
884
|
};
|
|
884
885
|
return d.className = `pointer pointer-${x}`, d.addEventListener("keydown", X), d.addEventListener("click", te), { $pointer: d, get percent() {
|
|
885
886
|
return v;
|
|
@@ -890,7 +891,7 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
890
891
|
}, updatePosition: ee, isClicked: se, setCallbacks: H, setAttr: je, getAttr: Ee, destroy: () => {
|
|
891
892
|
d.removeEventListener("keydown", X), d.removeEventListener("click", te), d.remove();
|
|
892
893
|
} };
|
|
893
|
-
},
|
|
894
|
+
}, po = (c) => {
|
|
894
895
|
if (c == null)
|
|
895
896
|
return;
|
|
896
897
|
if (Array.isArray(c))
|
|
@@ -903,12 +904,12 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
903
904
|
Y !== "" && (x.push(Y), $e(Y) || (v = !1));
|
|
904
905
|
}
|
|
905
906
|
return v ? x.map((R) => Number(R)) : x;
|
|
906
|
-
},
|
|
907
|
+
}, fo = (c, d) => d ? d.findIndex((x) => x === c || x.toString().trim() === c.toString().trim()) : -1, go = (c) => ({ updatePosition: (d, x, v, R) => {
|
|
907
908
|
if (x.length <= 0)
|
|
908
909
|
return;
|
|
909
910
|
let Y = x.length === 1, Q = x[0], j = x[x.length - 1];
|
|
910
911
|
d === xe ? (c.style.removeProperty("width"), c.style.removeProperty("right"), c.style.removeProperty("left"), Y ? c.style.height = `${Q}%` : c.style.height = `${Math.abs(Q - j)}%`, R ? (c.style.bottom = "0%", Y ? c.style.top = "auto" : c.style.top = `${Math.min(100 - j, 100 - Q)}%`) : (c.style.bottom = "auto", Y ? c.style.top = "0%" : c.style.top = `${Math.min(Q, j)}%`)) : (c.style.removeProperty("height"), c.style.removeProperty("top"), c.style.removeProperty("bottom"), Y ? c.style.width = `${Q}%` : c.style.width = `${Math.abs(Q - j)}%`, v ? (c.style.right = "0%", Y ? c.style.left = "auto" : c.style.left = `${Math.min(100 - j, 100 - Q)}%`) : (c.style.right = "auto", Y ? c.style.left = "0%" : c.style.left = `${Math.min(Q, j)}%`));
|
|
911
|
-
} }), Zi = "--animate-onclick",
|
|
912
|
+
} }), Zi = "--animate-onclick", yo = "--width", mo = "--height", vo = "--panel-bg-border-radius", bo = "--panel-bg", xo = "--panel-bg-hover", wo = "--panel-bg-fill", $o = "--pointer-width", _o = "--pointer-height", Eo = "--pointer-border-radius", So = "--pointer-bg", Mo = "--pointer-bg-hover", Ao = "--pointer-bg-focus", ko = "--pointer-shadow", Oo = "--pointer-shadow-hover", Po = "--pointer-shadow-focus", Lo = "--pointer-border", Co = "--pointer-border-hover", Ro = "--pointer-border-focus", lr = (c, d, x) => {
|
|
912
913
|
let v = /* @__PURE__ */ new Map();
|
|
913
914
|
for (let R of c.attributes) {
|
|
914
915
|
let Y = R.nodeName.trim().toLowerCase();
|
|
@@ -918,7 +919,7 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
918
919
|
v.set(j, D);
|
|
919
920
|
}
|
|
920
921
|
return v;
|
|
921
|
-
},
|
|
922
|
+
}, jo = (c) => {
|
|
922
923
|
if (!c)
|
|
923
924
|
return null;
|
|
924
925
|
let d = c.getAttribute(Me);
|
|
@@ -928,7 +929,7 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
928
929
|
for (let R of x)
|
|
929
930
|
R.trim() !== "" && v.push(R.trim());
|
|
930
931
|
return v;
|
|
931
|
-
}, Gi = [[
|
|
932
|
+
}, Gi = [[yo, S, "sliderWidth", null], [mo, M, "sliderHeight", null], [vo, L, "sliderRadius", null], [bo, B, "sliderBg", null], [xo, U, "sliderBgHover", null], [wo, T, "sliderBgFill", null], [$o, re, "pointer#Width", /^pointer([0-9]*)-width$/], [_o, Z, "pointer#Height", /^pointer([0-9]*)-height$/], [Eo, C, "pointer#Radius", /^pointer([0-9]*)-radius$/], [So, O, "pointer#Bg", /^pointer([0-9]*)-bg$/], [Mo, A, "pointer#BgHover", /^pointer([0-9]*)-bg-hover$/], [Ao, N, "pointer#BgFocus", /^pointer([0-9]*)-bg-focus$/], [ko, P, "pointer#Shadow", /^pointer([0-9]*)-shadow$/], [Oo, K, "pointer#ShadowHover", /^pointer([0-9]*)-shadow-hover$/], [Po, W, "pointer#ShadowFocus", /^pointer([0-9]*)-shadow-focus$/], [Lo, oe, "pointer#Border", /^pointer([0-9]*)-border$/], [Co, ie, "pointer#BorderHover", /^pointer([0-9]*)-border-hover$/], [Ro, me, "pointer#BorderFocus", /^pointer([0-9]*)-border-focus$/]], To = (c, d, x) => {
|
|
932
933
|
let v = null, R = [], Y = /* @__PURE__ */ new Map(), Q = (X, te = d) => {
|
|
933
934
|
let V = [...te.classList];
|
|
934
935
|
for (let ue of V)
|
|
@@ -955,7 +956,7 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
955
956
|
R[X] = te, ee();
|
|
956
957
|
}, H = () => {
|
|
957
958
|
j();
|
|
958
|
-
let X =
|
|
959
|
+
let X = lr(c, /^pointer([0-9]*)-shape$/);
|
|
959
960
|
if (!(X.size <= 0)) {
|
|
960
961
|
for (let te of X) {
|
|
961
962
|
let V = te[0];
|
|
@@ -978,7 +979,7 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
978
979
|
for (let X of Gi) {
|
|
979
980
|
let [te, V, ue, we] = X;
|
|
980
981
|
if (we) {
|
|
981
|
-
let fe =
|
|
982
|
+
let fe = lr(c, we);
|
|
982
983
|
for (let ge of fe) {
|
|
983
984
|
let ke = ge[0], Oe = ge[1];
|
|
984
985
|
je(te, Oe, ke);
|
|
@@ -1015,7 +1016,7 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1015
1016
|
}, get pointerShapes() {
|
|
1016
1017
|
return R;
|
|
1017
1018
|
}, setPointerShape: se };
|
|
1018
|
-
}, Et = "animate-on-click", Qi = "range-dragging",
|
|
1019
|
+
}, Et = "animate-on-click", Qi = "range-dragging", Do = (c, d, x, v) => {
|
|
1019
1020
|
let R = [], Y = (se) => {
|
|
1020
1021
|
for (let H of R)
|
|
1021
1022
|
H.update && typeof H.update == "function" && H.update(se);
|
|
@@ -1049,7 +1050,7 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1049
1050
|
R.push(H), H.init && typeof H.init == "function" && (H.init(c, d, x, v), D(H), ee(H));
|
|
1050
1051
|
}
|
|
1051
1052
|
}, update: Y, onAttrChange: j, destroy: Q };
|
|
1052
|
-
},
|
|
1053
|
+
}, No = 10, en = 20, Io = (c, d) => {
|
|
1053
1054
|
let x = /* @__PURE__ */ new Map(), v = /^value([0-9]*)$/;
|
|
1054
1055
|
for (let j of c.attributes) {
|
|
1055
1056
|
let D = j.nodeName.trim().toLowerCase();
|
|
@@ -1100,9 +1101,9 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1100
1101
|
} catch (j) {
|
|
1101
1102
|
console.error(j);
|
|
1102
1103
|
}
|
|
1103
|
-
},
|
|
1104
|
+
}, qo = (c, d) => {
|
|
1104
1105
|
let x = [["value", "ariaLabel", "pointerShape", "pointerDisabled", 0], ["value0", "ariaLabel0", "pointerShape0", "pointer0Disabled", 0], ["value1", "ariaLabel1", "pointerShape1", "pointer1Disabled", 0]];
|
|
1105
|
-
for (let v = 2; v <
|
|
1106
|
+
for (let v = 2; v < No; v++)
|
|
1106
1107
|
x.push([`value${v}`, `ariaLabel${v}`, `pointer${v}Shape`, `pointer${v}Disabled`, v - 1]);
|
|
1107
1108
|
for (let v of x)
|
|
1108
1109
|
tn(c, d, v[4], v[0], v[1], v[2], v[3]);
|
|
@@ -1112,69 +1113,69 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1112
1113
|
if (R)
|
|
1113
1114
|
for (let Y of c)
|
|
1114
1115
|
d ? R.prepend(Y.$pointer) : R.append(Y.$pointer);
|
|
1115
|
-
},
|
|
1116
|
+
}, Bo = (c, d) => {
|
|
1116
1117
|
if (!(!d || c.length <= 1)) {
|
|
1117
1118
|
for (let x of c)
|
|
1118
1119
|
x.$pointer.style.zIndex = en.toString();
|
|
1119
1120
|
d.$pointer.style.zIndex = (en * 2).toString();
|
|
1120
1121
|
}
|
|
1121
|
-
}, qr = 0, Ft = 100, St = 2, nn = "0.3s",
|
|
1122
|
+
}, qr = 0, Ft = 100, St = 2, nn = "0.3s", Uo = (c, d, x) => {
|
|
1122
1123
|
let v = x.map((u) => u[0]), R = null, Y = null, Q = null, j = null, D = qr, ee = Ft, se, H, ce = Ae, je = St, Ee = !1, X = !1, te = !1, V = 0, ue = 1 / 0, we = !1, be, fe, ge = !1, ke = !1, Oe = !1, st = nn, sn = [], on = (u) => {
|
|
1123
|
-
ge || (u.preventDefault && u.preventDefault(), pt(u), window.addEventListener("mousemove", pt), window.addEventListener("mouseup",
|
|
1124
|
-
},
|
|
1125
|
-
ge || (be = void 0, fe = void 0, window.removeEventListener("mousemove", pt), window.removeEventListener("mouseup",
|
|
1126
|
-
},
|
|
1124
|
+
ge || (u.preventDefault && u.preventDefault(), pt(u), window.addEventListener("mousemove", pt), window.addEventListener("mouseup", ar), ao(c, u));
|
|
1125
|
+
}, ar = (u) => {
|
|
1126
|
+
ge || (be = void 0, fe = void 0, window.removeEventListener("mousemove", pt), window.removeEventListener("mouseup", ar), st && d.classList.add(Et), co(c, u));
|
|
1127
|
+
}, zo = (u, $) => {
|
|
1127
1128
|
if (v.length <= 0)
|
|
1128
1129
|
return;
|
|
1129
1130
|
if (v.length === 1)
|
|
1130
1131
|
return v[0].isClicked(u) && st && d.classList.remove(Et), v[0];
|
|
1131
|
-
let q =
|
|
1132
|
+
let q = Yo(u);
|
|
1132
1133
|
if (we) {
|
|
1133
|
-
let
|
|
1134
|
-
Ie !== void 0 && (
|
|
1134
|
+
let ae = $, Ie = hr(ae);
|
|
1135
|
+
Ie !== void 0 && (ae = Ne(ae, Ie)), q ? (be = ae, fe = 0, st && d.classList.remove(Et)) : be !== void 0 && (fe = ae - be, be = ae);
|
|
1135
1136
|
}
|
|
1136
|
-
if (!
|
|
1137
|
-
for (let
|
|
1138
|
-
if (!(!
|
|
1139
|
-
return st && d.classList.remove(Et),
|
|
1140
|
-
for (let
|
|
1141
|
-
if (R ===
|
|
1142
|
-
return
|
|
1137
|
+
if (!Wo(u) && !q) {
|
|
1138
|
+
for (let ae of v)
|
|
1139
|
+
if (!(!ae.isClicked(u) || ae.disabled))
|
|
1140
|
+
return st && d.classList.remove(Et), ae;
|
|
1141
|
+
for (let ae of v)
|
|
1142
|
+
if (R === ae)
|
|
1143
|
+
return ae;
|
|
1143
1144
|
}
|
|
1144
1145
|
let he = 1 / 0, ye = null;
|
|
1145
|
-
for (let
|
|
1146
|
-
if (
|
|
1146
|
+
for (let ae of v) {
|
|
1147
|
+
if (ae.disabled)
|
|
1147
1148
|
continue;
|
|
1148
|
-
let Ie = Math.abs($ -
|
|
1149
|
-
Ie < he && (he = Ie, ye =
|
|
1149
|
+
let Ie = Math.abs($ - ae.percent);
|
|
1150
|
+
Ie < he && (he = Ie, ye = ae);
|
|
1150
1151
|
}
|
|
1151
1152
|
return ye;
|
|
1152
|
-
},
|
|
1153
|
+
}, ln = () => v.findIndex((u) => R === u && !u.disabled), pt = (u) => {
|
|
1153
1154
|
let $;
|
|
1154
1155
|
if (ce === xe) {
|
|
1155
|
-
let { height: he, top: ye } = d.getBoundingClientRect(),
|
|
1156
|
-
$ = Math.min(Math.max(0,
|
|
1156
|
+
let { height: he, top: ye } = d.getBoundingClientRect(), ae = u.type.indexOf("mouse") !== -1 ? u.clientY : u.touches[0].clientY;
|
|
1157
|
+
$ = Math.min(Math.max(0, ae - ye), he) * 100 / he;
|
|
1157
1158
|
} else {
|
|
1158
|
-
let { width: he, left: ye } = d.getBoundingClientRect(),
|
|
1159
|
-
$ = Math.min(Math.max(0,
|
|
1159
|
+
let { width: he, left: ye } = d.getBoundingClientRect(), ae = u.type.indexOf("mouse") !== -1 ? u.clientX : u.touches[0].clientX;
|
|
1160
|
+
$ = Math.min(Math.max(0, ae - ye), he) * 100 / he;
|
|
1160
1161
|
}
|
|
1161
|
-
if ((Ee || X) && ($ = 100 - $), R =
|
|
1162
|
-
let he = v[0], ye = v[v.length - 1],
|
|
1163
|
-
if (
|
|
1162
|
+
if ((Ee || X) && ($ = 100 - $), R = zo(u.target, $), R && Bo(v, R), we && v.length > 1 && fe !== void 0) {
|
|
1163
|
+
let he = v[0], ye = v[v.length - 1], ae = he.percent + fe < 0, Ie = ye.percent + fe > 100;
|
|
1164
|
+
if (ae || Ie)
|
|
1164
1165
|
return;
|
|
1165
1166
|
for (let vr = 0; vr < v.length; vr++)
|
|
1166
1167
|
Pe(vr, v[vr].percent + fe);
|
|
1167
1168
|
return;
|
|
1168
1169
|
}
|
|
1169
|
-
let q =
|
|
1170
|
+
let q = ln();
|
|
1170
1171
|
q !== -1 && (Pe(q, $), R?.$pointer.focus());
|
|
1171
1172
|
}, cr = (u) => {
|
|
1172
1173
|
if (ge || document.activeElement !== c || R != null && R.disabled)
|
|
1173
1174
|
return;
|
|
1174
1175
|
u.stopPropagation(), u.preventDefault();
|
|
1175
|
-
let $ = u.deltaY < 0, q = Ee || X, he = $ ? !q : q, ye =
|
|
1176
|
+
let $ = u.deltaY < 0, q = Ee || X, he = $ ? !q : q, ye = ln();
|
|
1176
1177
|
ye !== -1 && (he ? zt(ye, v[ye].percent) : Wt(ye, v[ye].percent));
|
|
1177
|
-
},
|
|
1178
|
+
}, an = (u) => {
|
|
1178
1179
|
ge || ke || (ce === xe ? X ? Pe(u, 100) : Pe(u, 0) : Ee ? Wt(u, v[u].percent) : zt(u, v[u].percent));
|
|
1179
1180
|
}, cn = (u) => {
|
|
1180
1181
|
ge || ke || (ce === xe ? X ? Pe(u, 0) : Pe(u, 100) : Ee ? zt(u, v[u].percent) : Wt(u, v[u].percent));
|
|
@@ -1182,7 +1183,7 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1182
1183
|
ge || ke || (ce === xe ? X ? Wt(u, v[u].percent) : zt(u, v[u].percent) : Ee ? Pe(u, 100) : Pe(u, 0));
|
|
1183
1184
|
}, un = (u) => {
|
|
1184
1185
|
ge || ke || (ce === xe ? X ? zt(u, v[u].percent) : Wt(u, v[u].percent) : Ee ? Pe(u, 0) : Pe(u, 100));
|
|
1185
|
-
},
|
|
1186
|
+
}, Wo = (u) => u.classList.contains("panel"), Yo = (u) => u.classList.contains("panel-fill"), zt = (u, $) => {
|
|
1186
1187
|
if ($ === void 0)
|
|
1187
1188
|
return;
|
|
1188
1189
|
let q = hr($);
|
|
@@ -1194,9 +1195,9 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1194
1195
|
q == null && (q = 1), $ += q, $ > 100 && ($ = 100), Pe(u, $);
|
|
1195
1196
|
}, ft = () => {
|
|
1196
1197
|
!j || j.update({ percents: dn(), values: pn(), $pointers: fn(), min: gn(), max: yn(), data: Hr(), step: Ur(), round: zr(), type: Fr(), textMin: ur(), textMax: dr(), rightToLeft: Xr(), bottomToTop: Vr(), pointersOverlap: Gr(), pointersMinDistance: Wr(), pointersMaxDistance: Yr(), rangeDragging: Qr(), disabled: Kr(), keyboardDisabled: Jr(), mousewheelDisabled: Zr() });
|
|
1197
|
-
},
|
|
1198
|
+
}, Xo = () => {
|
|
1198
1199
|
ft();
|
|
1199
|
-
},
|
|
1200
|
+
}, Vo = (u) => {
|
|
1200
1201
|
if (!(te || v.length <= 1 || ee === D))
|
|
1201
1202
|
if (u === 0) {
|
|
1202
1203
|
let $ = ue * 100 / (ee - D);
|
|
@@ -1205,7 +1206,7 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1205
1206
|
let $ = V * 100 / (ee - D);
|
|
1206
1207
|
return Math.min(v[u - 1].percent + $, 100);
|
|
1207
1208
|
}
|
|
1208
|
-
},
|
|
1209
|
+
}, Ko = (u) => {
|
|
1209
1210
|
if (!(te || v.length <= 1 || ee === D))
|
|
1210
1211
|
if (u === v.length - 1) {
|
|
1211
1212
|
let $ = ue * 100 / (ee - D);
|
|
@@ -1230,13 +1231,13 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1230
1231
|
return;
|
|
1231
1232
|
let $ = Ge(0, 100, D, ee, u);
|
|
1232
1233
|
return H !== void 0 ? H[Math.round($)] : dt($, je);
|
|
1233
|
-
}, ur = () => H !== void 0 ? H[D] : D, dr = () => H !== void 0 ? H[ee] : ee, Ur = () => se,
|
|
1234
|
+
}, ur = () => H !== void 0 ? H[D] : D, dr = () => H !== void 0 ? H[ee] : ee, Ur = () => se, Jo = (u) => {
|
|
1234
1235
|
var $;
|
|
1235
1236
|
return u <= 0 || te ? ur() : ($ = Mt(v[u - 1].percent)) != null ? $ : "";
|
|
1236
|
-
},
|
|
1237
|
+
}, Zo = (u) => {
|
|
1237
1238
|
var $;
|
|
1238
1239
|
return v.length <= 1 || u >= v.length - 1 || te ? dr() : ($ = Mt(v[u + 1].percent)) != null ? $ : "";
|
|
1239
|
-
}, dn = () => v.map((u) => u.percent), pn = () => v.map((u) => Mt(u.percent)), fn = () => v.map((u) => u.$pointer), gn = () => D, yn = () => ee, Hr = () => H, Fr = () => ce, zr = () => je, Wr = () => V, Yr = () => ue,
|
|
1240
|
+
}, dn = () => v.map((u) => u.percent), pn = () => v.map((u) => Mt(u.percent)), fn = () => v.map((u) => u.$pointer), gn = () => D, yn = () => ee, Hr = () => H, Fr = () => ce, zr = () => je, Wr = () => V, Yr = () => ue, Go = (u) => sn[u], Xr = () => Ee, Vr = () => X, Kr = () => ge, Jr = () => ke, Zr = () => Oe, Gr = () => te, Qr = () => we, Pe = (u, $) => {
|
|
1240
1241
|
if ($ === void 0)
|
|
1241
1242
|
return;
|
|
1242
1243
|
let q = hr($);
|
|
@@ -1244,23 +1245,23 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1244
1245
|
let he = v[u];
|
|
1245
1246
|
if (!he)
|
|
1246
1247
|
return;
|
|
1247
|
-
let ye = he.updatePosition($,
|
|
1248
|
-
Y?.updatePosition(ce, v.map((
|
|
1249
|
-
for (let
|
|
1250
|
-
let Ie = Mt(
|
|
1251
|
-
Ie !== void 0 && (
|
|
1248
|
+
let ye = he.updatePosition($, Vo(u), Ko(u), ce, Ee, X);
|
|
1249
|
+
Y?.updatePosition(ce, v.map((ae) => ae.percent), Ee, X), ft();
|
|
1250
|
+
for (let ae of v) {
|
|
1251
|
+
let Ie = Mt(ae.percent);
|
|
1252
|
+
Ie !== void 0 && (ae.setAttr("aria-valuenow", Ie.toString()), ae.setAttr("aria-valuetext", Ie.toString()));
|
|
1252
1253
|
}
|
|
1253
|
-
|
|
1254
|
+
el(), ye && uo(c, v.map((ae) => Mt(ae.percent)));
|
|
1254
1255
|
}, Fe = () => {
|
|
1255
1256
|
for (let u = 0; u < v.length; u++)
|
|
1256
1257
|
Pe(u, v[u].percent);
|
|
1257
|
-
},
|
|
1258
|
+
}, Qo = (u, $) => {
|
|
1258
1259
|
D = H !== void 0 ? 0 : ne(u, qr), ee = H !== void 0 ? H.length - 1 : ne($, Ft), pr(D), fr(ee);
|
|
1259
|
-
},
|
|
1260
|
+
}, el = () => {
|
|
1260
1261
|
var u, $;
|
|
1261
1262
|
for (let q = 0; q < v.length; q++) {
|
|
1262
1263
|
let he = v[q];
|
|
1263
|
-
he.setAttr("aria-valuemin", ((u =
|
|
1264
|
+
he.setAttr("aria-valuemin", ((u = Jo(q)) != null ? u : "").toString()), he.setAttr("aria-valuemax", (($ = Zo(q)) != null ? $ : "").toString());
|
|
1264
1265
|
}
|
|
1265
1266
|
}, pr = (u) => {
|
|
1266
1267
|
D = ne(u, qr), D > ee && (ee = D + Ft), Fe();
|
|
@@ -1275,7 +1276,7 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1275
1276
|
gr(u[$], $);
|
|
1276
1277
|
}, gr = (u, $) => {
|
|
1277
1278
|
let q;
|
|
1278
|
-
H !== void 0 ? (q = u == null ? 0 :
|
|
1279
|
+
H !== void 0 ? (q = u == null ? 0 : fo(u, H), q === -1 && (q = 0)) : (q = ne(u, D), q < D && (q = D), q > ee && (q = ee));
|
|
1279
1280
|
let he = Ge(D, ee, 0, 100, q);
|
|
1280
1281
|
Pe($, he);
|
|
1281
1282
|
}, yr = (u) => {
|
|
@@ -1311,7 +1312,7 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1311
1312
|
H = void 0;
|
|
1312
1313
|
return;
|
|
1313
1314
|
}
|
|
1314
|
-
if (H =
|
|
1315
|
+
if (H = po(u), H === void 0 || H.length <= 0) {
|
|
1315
1316
|
H = void 0;
|
|
1316
1317
|
return;
|
|
1317
1318
|
}
|
|
@@ -1328,9 +1329,9 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1328
1329
|
ye.setAttr("aria-orientation", he);
|
|
1329
1330
|
}, oi = (u) => {
|
|
1330
1331
|
Ee = u, v.length > 1 && rn(v, Ee, c), Fe(), ft();
|
|
1331
|
-
}, ai = (u) => {
|
|
1332
|
-
X = u, v.length > 1 && rn(v, X, c), Fe(), ft();
|
|
1333
1332
|
}, li = (u) => {
|
|
1333
|
+
X = u, v.length > 1 && rn(v, X, c), Fe(), ft();
|
|
1334
|
+
}, ai = (u) => {
|
|
1334
1335
|
je = ne(u, St), je < 0 && (je = St), ft();
|
|
1335
1336
|
}, xn = (u) => {
|
|
1336
1337
|
u == null || u.toString().trim().toLowerCase() === "false" ? (st = void 0, d.style.removeProperty(Zi), d.classList.remove(Et)) : (st = u.toString(), d.style.setProperty(Zi, st), d.classList.add(Et));
|
|
@@ -1343,34 +1344,34 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1343
1344
|
return;
|
|
1344
1345
|
}
|
|
1345
1346
|
we = u, d.classList.toggle(Qi, we);
|
|
1346
|
-
},
|
|
1347
|
+
}, tl = () => {
|
|
1347
1348
|
ii(pe(c.getAttribute(y))), ke = pe(c.getAttribute(w)), Oe = pe(c.getAttribute(E));
|
|
1348
|
-
let u =
|
|
1349
|
+
let u = lr(c, /^pointer([0-9]*)-disabled$/, ($) => pe($));
|
|
1349
1350
|
for (let $ of u) {
|
|
1350
1351
|
let q = $[0];
|
|
1351
1352
|
!v[q] || (v[q].disabled = $[1]);
|
|
1352
1353
|
}
|
|
1353
|
-
},
|
|
1354
|
-
let u =
|
|
1354
|
+
}, rl = () => {
|
|
1355
|
+
let u = lr(c, /^aria-label([0-9]*)$/);
|
|
1355
1356
|
for (let $ of u) {
|
|
1356
1357
|
let q = $[0];
|
|
1357
1358
|
wn(q, $[1]);
|
|
1358
1359
|
}
|
|
1359
|
-
},
|
|
1360
|
+
}, il = (u) => {
|
|
1360
1361
|
let $ = v.length, q = v[$ - 1].$pointer, he = q.cloneNode(!0);
|
|
1361
1362
|
q.after(he);
|
|
1362
1363
|
let ye = Ir(c, he, $);
|
|
1363
|
-
return ye.setCallbacks(
|
|
1364
|
-
},
|
|
1364
|
+
return ye.setCallbacks(an, cn, hn, un), v.push(ye), gr(u, $), Fe(), ft(), $;
|
|
1365
|
+
}, nl = () => {
|
|
1365
1366
|
let u = v.length, $ = v[u - 1];
|
|
1366
1367
|
return $ ? ($.destroy(), v.pop(), v.length <= 1 && mr(!1), Fe(), ft(), u - 1) : -1;
|
|
1367
1368
|
};
|
|
1368
1369
|
return (() => {
|
|
1369
1370
|
var u, $;
|
|
1370
1371
|
for (let he of v)
|
|
1371
|
-
he.setCallbacks(
|
|
1372
|
+
he.setCallbacks(an, cn, hn, un);
|
|
1372
1373
|
let q = (u = c.shadowRoot) == null ? void 0 : u.querySelector(".panel-fill");
|
|
1373
|
-
q && (Y =
|
|
1374
|
+
q && (Y = go(q)), si(c.getAttribute(k)), oi(pe(c.getAttribute(I))), li(pe(c.getAttribute(f))), Qo(c.getAttribute(g), c.getAttribute(b)), yr(c.getAttribute(m)), ni(c.getAttribute(p)), mn(x.map((he) => he[1])), ei(pe(c.getAttribute(o))), ti(ne(c.getAttribute(a), 0)), ri(ne(c.getAttribute(l), 1 / 0)), mr(pe(c.getAttribute(h))), ai(ne(c.getAttribute(_), St)), tl(), rl(), Q = To(c, d, v), xn(($ = c.getAttribute(ve)) != null ? $ : nn), d.addEventListener("mousedown", on), d.addEventListener("mouseup", ar), d.addEventListener("touchmove", pt), d.addEventListener("touchstart", pt), Oe || document.addEventListener("wheel", cr, { passive: !1 }), j = Do(c, Xo, { setValues: mn, setMin: pr, setMax: fr, setStep: yr, setPointersOverlap: ei, setPointersMinDistance: ti, setPointersMaxDistance: ri, setDisabled: ii, setType: si, setRightToLeft: oi, setBottomToTop: li, setRound: ai, setKeyboardDisabled: vn, setMousewheelDisabled: bn, setRangeDragging: mr, setData: ni }, { getPercents: dn, getValues: pn, getPointerElements: fn, getMin: gn, getMax: yn, getStep: Ur, getData: Hr, getType: Fr, getRound: zr, getTextMin: ur, getTextMax: dr, isRightToLeft: Xr, isBottomToTop: Vr, isDisabled: Kr, isKeyboardDisabled: Jr, isMousewheelDisabled: Zr, isPointersOverlap: Gr, isRangeDraggingEnabled: Qr, getPointersMinDistance: Wr, getPointersMaxDistance: Yr }), j.init();
|
|
1374
1375
|
})(), { get pointers() {
|
|
1375
1376
|
return v;
|
|
1376
1377
|
}, get styles() {
|
|
@@ -1412,11 +1413,11 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1412
1413
|
}, get bottomToTop() {
|
|
1413
1414
|
return Vr();
|
|
1414
1415
|
}, set bottomToTop(u) {
|
|
1415
|
-
|
|
1416
|
+
li(u);
|
|
1416
1417
|
}, get round() {
|
|
1417
1418
|
return zr();
|
|
1418
1419
|
}, set round(u) {
|
|
1419
|
-
|
|
1420
|
+
ai(u);
|
|
1420
1421
|
}, get animateOnClick() {
|
|
1421
1422
|
return st;
|
|
1422
1423
|
}, set animateOnClick(u) {
|
|
@@ -1433,13 +1434,13 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1433
1434
|
return Qr();
|
|
1434
1435
|
}, set rangeDragging(u) {
|
|
1435
1436
|
mr(u);
|
|
1436
|
-
}, setMin: pr, setMax: fr, setValue: gr, setStep: yr, setData: ni, getTextValue: Mt, setAriaLabel: wn, getAriaLabel:
|
|
1437
|
-
d.removeEventListener("mousedown", on), d.removeEventListener("mouseup",
|
|
1437
|
+
}, setMin: pr, setMax: fr, setValue: gr, setStep: yr, setData: ni, getTextValue: Mt, setAriaLabel: wn, getAriaLabel: Go, addPointer: il, removePointer: nl, destroy: () => {
|
|
1438
|
+
d.removeEventListener("mousedown", on), d.removeEventListener("mouseup", ar), d.removeEventListener("touchmove", pt), d.removeEventListener("touchstart", pt), document.removeEventListener("wheel", cr);
|
|
1438
1439
|
for (let u of v)
|
|
1439
1440
|
u.destroy();
|
|
1440
1441
|
j?.destroy();
|
|
1441
1442
|
} };
|
|
1442
|
-
},
|
|
1443
|
+
}, Ho = (c, d, x) => {
|
|
1443
1444
|
let v = Gi.find(([j, D, ee, se]) => D.replace("#", "") === d.replace(/\d+/g, ""));
|
|
1444
1445
|
if (v && c.styles) {
|
|
1445
1446
|
let [j, D, ee, se] = v, H = d.replace(/\D/g, "").trim(), ce = H === "" || H === "0" || H === "1" ? 0 : ne(H, 0) - 1;
|
|
@@ -1463,7 +1464,7 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1463
1464
|
c.pointersOverlap = pe(x);
|
|
1464
1465
|
break;
|
|
1465
1466
|
}
|
|
1466
|
-
case
|
|
1467
|
+
case a: {
|
|
1467
1468
|
c.pointersMinDistance = ne(x, 0);
|
|
1468
1469
|
break;
|
|
1469
1470
|
}
|
|
@@ -1471,7 +1472,7 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1471
1472
|
c.rangeDragging = pe(x);
|
|
1472
1473
|
break;
|
|
1473
1474
|
}
|
|
1474
|
-
case
|
|
1475
|
+
case l: {
|
|
1475
1476
|
c.pointersMaxDistance = ne(x, 1 / 0);
|
|
1476
1477
|
break;
|
|
1477
1478
|
}
|
|
@@ -1541,7 +1542,7 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1541
1542
|
break;
|
|
1542
1543
|
}
|
|
1543
1544
|
}
|
|
1544
|
-
},
|
|
1545
|
+
}, Fo = class extends HTMLElement {
|
|
1545
1546
|
constructor() {
|
|
1546
1547
|
super(), i(this, "slider"), i(this, "_externalCSSList", []), i(this, "_observer", null), this.attachShadow({ mode: "open" });
|
|
1547
1548
|
}
|
|
@@ -1691,28 +1692,28 @@ const bs = Symbol.for(""), _a = (t) => {
|
|
|
1691
1692
|
var c, d;
|
|
1692
1693
|
if (!this.shadowRoot)
|
|
1693
1694
|
return;
|
|
1694
|
-
this._externalCSSList =
|
|
1695
|
+
this._externalCSSList = jo(this), this.shadowRoot.innerHTML = n(s, this._externalCSSList);
|
|
1695
1696
|
let x = (c = this.shadowRoot) == null ? void 0 : c.querySelector(".pointer");
|
|
1696
1697
|
if (!x)
|
|
1697
1698
|
return;
|
|
1698
1699
|
let v = (d = this.shadowRoot) == null ? void 0 : d.getElementById("range-slider");
|
|
1699
1700
|
if (!v)
|
|
1700
1701
|
return;
|
|
1701
|
-
let R =
|
|
1702
|
-
this.slider =
|
|
1702
|
+
let R = Io(this, x);
|
|
1703
|
+
this.slider = Uo(this, v, R), qo(this, this.slider), this._observer = new MutationObserver((Y) => {
|
|
1703
1704
|
Y.forEach((Q) => {
|
|
1704
1705
|
var j;
|
|
1705
1706
|
if (!this.slider || Q.type !== "attributes")
|
|
1706
1707
|
return;
|
|
1707
1708
|
let D = Q.attributeName;
|
|
1708
|
-
!D ||
|
|
1709
|
+
!D || Ho(this.slider, D, (j = this.getAttribute(D)) != null ? j : "");
|
|
1709
1710
|
});
|
|
1710
1711
|
}), this._observer.observe(this, { attributes: !0 });
|
|
1711
1712
|
}
|
|
1712
1713
|
disconnectedCallback() {
|
|
1713
1714
|
this._observer && this._observer.disconnect(), this.slider && this.slider.destroy();
|
|
1714
1715
|
}
|
|
1715
|
-
}, Br =
|
|
1716
|
+
}, Br = Fo;
|
|
1716
1717
|
window.tcRangeSlider = Br, customElements.get("toolcool-range-slider") || customElements.define("toolcool-range-slider", Br), customElements.get("tc-range-slider") || customElements.define("tc-range-slider", class extends Br {
|
|
1717
1718
|
});
|
|
1718
1719
|
})();
|
|
@@ -1741,12 +1742,12 @@ function Ri(t) {
|
|
|
1741
1742
|
});
|
|
1742
1743
|
}), r;
|
|
1743
1744
|
}
|
|
1744
|
-
var
|
|
1745
|
+
var $s = { exports: {} };
|
|
1745
1746
|
(function(t, e) {
|
|
1746
1747
|
(function(r, i) {
|
|
1747
1748
|
t.exports = i();
|
|
1748
1749
|
})(Pt, function() {
|
|
1749
|
-
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", o = "second",
|
|
1750
|
+
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", o = "second", a = "minute", l = "hour", h = "day", p = "week", g = "month", b = "quarter", m = "year", _ = "date", k = "Invalid Date", z = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|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, f = { 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(C) {
|
|
1750
1751
|
var O = ["th", "st", "nd", "rd"], A = C % 100;
|
|
1751
1752
|
return "[" + C + (O[(A - 20) % 10] || O[A] || O[0]) + "]";
|
|
1752
1753
|
} }, y = function(C, O, A) {
|
|
@@ -1763,7 +1764,7 @@ var xs = { exports: {} };
|
|
|
1763
1764
|
}, a: function(C) {
|
|
1764
1765
|
return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
|
|
1765
1766
|
}, p: function(C) {
|
|
1766
|
-
return { M: g, y: m, w: p, d: h, D: _, h:
|
|
1767
|
+
return { M: g, y: m, w: p, d: h, D: _, h: l, m: a, s: o, ms: s, Q: b }[C] || String(C || "").toLowerCase().replace(/s$/, "");
|
|
1767
1768
|
}, u: function(C) {
|
|
1768
1769
|
return C === void 0;
|
|
1769
1770
|
} }, E = "en", S = {};
|
|
@@ -1855,9 +1856,9 @@ var xs = { exports: {} };
|
|
|
1855
1856
|
case h:
|
|
1856
1857
|
case _:
|
|
1857
1858
|
return ie(xe + "Hours", 0);
|
|
1858
|
-
case a:
|
|
1859
|
-
return ie(xe + "Minutes", 1);
|
|
1860
1859
|
case l:
|
|
1860
|
+
return ie(xe + "Minutes", 1);
|
|
1861
|
+
case a:
|
|
1861
1862
|
return ie(xe + "Seconds", 2);
|
|
1862
1863
|
case o:
|
|
1863
1864
|
return ie(xe + "Milliseconds", 3);
|
|
@@ -1867,7 +1868,7 @@ var xs = { exports: {} };
|
|
|
1867
1868
|
}, O.endOf = function(A) {
|
|
1868
1869
|
return this.startOf(A, !1);
|
|
1869
1870
|
}, O.$set = function(A, N) {
|
|
1870
|
-
var P, K = T.p(A), W = "set" + (this.$u ? "UTC" : ""), oe = (P = {}, P[h] = W + "Date", P[_] = W + "Date", P[g] = W + "Month", P[m] = W + "FullYear", P[
|
|
1871
|
+
var P, K = T.p(A), W = "set" + (this.$u ? "UTC" : ""), oe = (P = {}, P[h] = W + "Date", P[_] = W + "Date", P[g] = W + "Month", P[m] = W + "FullYear", P[l] = W + "Hours", P[a] = W + "Minutes", P[o] = W + "Seconds", P[s] = W + "Milliseconds", P)[K], ie = K === h ? this.$D + (N - this.$W) : N;
|
|
1871
1872
|
if (K === g || K === m) {
|
|
1872
1873
|
var me = this.clone().set(_, 1);
|
|
1873
1874
|
me.$d[oe](ie), me.init(), this.$d = me.set(_, Math.min(this.$D, me.daysInMonth())).$d;
|
|
@@ -1893,7 +1894,7 @@ var xs = { exports: {} };
|
|
|
1893
1894
|
return oe(1);
|
|
1894
1895
|
if (W === p)
|
|
1895
1896
|
return oe(7);
|
|
1896
|
-
var ie = (P = {}, P[
|
|
1897
|
+
var ie = (P = {}, P[a] = i, P[l] = n, P[o] = r, P)[W] || 1, me = this.$d.getTime() + A * ie;
|
|
1897
1898
|
return T.w(me, this);
|
|
1898
1899
|
}, O.subtract = function(A, N) {
|
|
1899
1900
|
return this.add(-1 * A, N);
|
|
@@ -1986,10 +1987,10 @@ var xs = { exports: {} };
|
|
|
1986
1987
|
case h:
|
|
1987
1988
|
K = (ve - me) / 864e5;
|
|
1988
1989
|
break;
|
|
1989
|
-
case
|
|
1990
|
+
case l:
|
|
1990
1991
|
K = ve / n;
|
|
1991
1992
|
break;
|
|
1992
|
-
case
|
|
1993
|
+
case a:
|
|
1993
1994
|
K = ve / i;
|
|
1994
1995
|
break;
|
|
1995
1996
|
case o:
|
|
@@ -2020,7 +2021,7 @@ var xs = { exports: {} };
|
|
|
2020
2021
|
return this.$d.toUTCString();
|
|
2021
2022
|
}, C;
|
|
2022
2023
|
}(), Z = re.prototype;
|
|
2023
|
-
return U.prototype = Z, [["$ms", s], ["$s", o], ["$m",
|
|
2024
|
+
return U.prototype = Z, [["$ms", s], ["$s", o], ["$m", a], ["$H", l], ["$W", h], ["$M", g], ["$y", m], ["$D", _]].forEach(function(C) {
|
|
2024
2025
|
Z[C[1]] = function(O) {
|
|
2025
2026
|
return this.$g(O, C[0], C[1]);
|
|
2026
2027
|
};
|
|
@@ -2030,10 +2031,10 @@ var xs = { exports: {} };
|
|
|
2030
2031
|
return U(1e3 * C);
|
|
2031
2032
|
}, U.en = S[E], U.Ls = S, U.p = {}, U;
|
|
2032
2033
|
});
|
|
2033
|
-
})(
|
|
2034
|
-
var
|
|
2035
|
-
const Lt = /* @__PURE__ */ Ci(
|
|
2036
|
-
class
|
|
2034
|
+
})($s);
|
|
2035
|
+
var Cl = $s.exports;
|
|
2036
|
+
const Lt = /* @__PURE__ */ Ci(Cl);
|
|
2037
|
+
class Rl extends _e {
|
|
2037
2038
|
constructor() {
|
|
2038
2039
|
super(...arguments), this.templates = {}, this._renderedTemplates = {};
|
|
2039
2040
|
}
|
|
@@ -2073,11 +2074,11 @@ class Ma extends _e {
|
|
|
2073
2074
|
i = i || e;
|
|
2074
2075
|
const n = F` <slot name=${i}></slot> `, s = { [e]: { ...r } };
|
|
2075
2076
|
if (this._renderedTemplates.hasOwnProperty(i)) {
|
|
2076
|
-
const { slot:
|
|
2077
|
+
const { slot: a } = (
|
|
2077
2078
|
// @ts-ignore
|
|
2078
2079
|
this._renderedTemplates[i]
|
|
2079
2080
|
);
|
|
2080
|
-
this.contains(
|
|
2081
|
+
this.contains(a) && this.removeChild(a);
|
|
2081
2082
|
}
|
|
2082
2083
|
const o = document.createElement("div");
|
|
2083
2084
|
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;
|
|
@@ -2296,7 +2297,7 @@ button.smallest.icon::before {
|
|
|
2296
2297
|
width: 16px;
|
|
2297
2298
|
padding: 0px;
|
|
2298
2299
|
}
|
|
2299
|
-
`,
|
|
2300
|
+
`, jl = `
|
|
2300
2301
|
input[type=checkbox] {
|
|
2301
2302
|
appearance: none;
|
|
2302
2303
|
-webkit-appearance: none;
|
|
@@ -2319,7 +2320,7 @@ input[type=checkbox]:checked:after {
|
|
|
2319
2320
|
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");
|
|
2320
2321
|
|
|
2321
2322
|
}
|
|
2322
|
-
`,
|
|
2323
|
+
`, Tl = `
|
|
2323
2324
|
input[type=radio] {
|
|
2324
2325
|
appearance: none;
|
|
2325
2326
|
-webkit-appearance: none;
|
|
@@ -2347,7 +2348,7 @@ input[type=radio]:checked:after {
|
|
|
2347
2348
|
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");
|
|
2348
2349
|
|
|
2349
2350
|
}
|
|
2350
|
-
`,
|
|
2351
|
+
`, Dl = `
|
|
2351
2352
|
input[type="range"] {
|
|
2352
2353
|
-webkit-appearance: none;
|
|
2353
2354
|
width: 90%;
|
|
@@ -2430,9 +2431,9 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
2430
2431
|
}
|
|
2431
2432
|
|
|
2432
2433
|
${Ti}
|
|
2433
|
-
${
|
|
2434
|
-
${
|
|
2435
|
-
${
|
|
2434
|
+
${jl}
|
|
2435
|
+
${Tl}
|
|
2436
|
+
${Dl}
|
|
2436
2437
|
|
|
2437
2438
|
ul {
|
|
2438
2439
|
padding-left: 0;
|
|
@@ -2589,10 +2590,10 @@ eox-itemfilter-expandcontainer button.reset-icon:before {
|
|
|
2589
2590
|
width: 16px;
|
|
2590
2591
|
}
|
|
2591
2592
|
`;
|
|
2592
|
-
var
|
|
2593
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
2593
|
+
var Nl = Object.defineProperty, Il = Object.getOwnPropertyDescriptor, Ni = (t, e, r, i) => {
|
|
2594
|
+
for (var n = i > 1 ? void 0 : i ? Il(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
2594
2595
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
2595
|
-
return i && n &&
|
|
2596
|
+
return i && n && Nl(e, r, n), n;
|
|
2596
2597
|
};
|
|
2597
2598
|
let Mr = class extends _e {
|
|
2598
2599
|
handleDetailsToggle(t) {
|
|
@@ -2617,7 +2618,7 @@ let Mr = class extends _e {
|
|
|
2617
2618
|
@toggle="${this.handleDetailsToggle}"
|
|
2618
2619
|
class="details-filter"
|
|
2619
2620
|
part="details-filter"
|
|
2620
|
-
?open=${this.filterObject.expanded ||
|
|
2621
|
+
?open=${this.filterObject.expanded || le}
|
|
2621
2622
|
>
|
|
2622
2623
|
<summary>
|
|
2623
2624
|
<span
|
|
@@ -2669,29 +2670,29 @@ const qt = (t) => {
|
|
|
2669
2670
|
break;
|
|
2670
2671
|
}
|
|
2671
2672
|
return delete t.stringifiedState, delete t.dirty, t;
|
|
2672
|
-
}, gi = Math.min, Ct = Math.max, Ar = Math.round, br = Math.floor,
|
|
2673
|
+
}, gi = Math.min, Ct = Math.max, Ar = Math.round, br = Math.floor, lt = (t) => ({
|
|
2673
2674
|
x: t,
|
|
2674
2675
|
y: t
|
|
2675
2676
|
});
|
|
2676
|
-
function
|
|
2677
|
+
function _s(t) {
|
|
2677
2678
|
return t.split("-")[0];
|
|
2678
2679
|
}
|
|
2679
|
-
function
|
|
2680
|
+
function ql(t) {
|
|
2680
2681
|
return t.split("-")[1];
|
|
2681
2682
|
}
|
|
2682
|
-
function
|
|
2683
|
+
function Bl(t) {
|
|
2683
2684
|
return t === "x" ? "y" : "x";
|
|
2684
2685
|
}
|
|
2685
|
-
function
|
|
2686
|
+
function Ul(t) {
|
|
2686
2687
|
return t === "y" ? "height" : "width";
|
|
2687
2688
|
}
|
|
2688
|
-
function
|
|
2689
|
-
return ["top", "bottom"].includes(
|
|
2689
|
+
function Es(t) {
|
|
2690
|
+
return ["top", "bottom"].includes(_s(t)) ? "y" : "x";
|
|
2690
2691
|
}
|
|
2691
|
-
function
|
|
2692
|
-
return
|
|
2692
|
+
function Hl(t) {
|
|
2693
|
+
return Bl(Es(t));
|
|
2693
2694
|
}
|
|
2694
|
-
function
|
|
2695
|
+
function Ss(t) {
|
|
2695
2696
|
return {
|
|
2696
2697
|
...t,
|
|
2697
2698
|
top: t.y,
|
|
@@ -2700,14 +2701,14 @@ function _s(t) {
|
|
|
2700
2701
|
bottom: t.y + t.height
|
|
2701
2702
|
};
|
|
2702
2703
|
}
|
|
2703
|
-
function
|
|
2704
|
+
function Hn(t, e, r) {
|
|
2704
2705
|
let {
|
|
2705
2706
|
reference: i,
|
|
2706
2707
|
floating: n
|
|
2707
2708
|
} = t;
|
|
2708
|
-
const s =
|
|
2709
|
+
const s = Es(e), o = Hl(e), a = Ul(o), l = _s(e), h = s === "y", p = i.x + i.width / 2 - n.width / 2, g = i.y + i.height / 2 - n.height / 2, b = i[a] / 2 - n[a] / 2;
|
|
2709
2710
|
let m;
|
|
2710
|
-
switch (
|
|
2711
|
+
switch (l) {
|
|
2711
2712
|
case "top":
|
|
2712
2713
|
m = {
|
|
2713
2714
|
x: p,
|
|
@@ -2738,7 +2739,7 @@ function Bn(t, e, r) {
|
|
|
2738
2739
|
y: i.y
|
|
2739
2740
|
};
|
|
2740
2741
|
}
|
|
2741
|
-
switch (
|
|
2742
|
+
switch (ql(e)) {
|
|
2742
2743
|
case "start":
|
|
2743
2744
|
m[o] -= b * (r && h ? -1 : 1);
|
|
2744
2745
|
break;
|
|
@@ -2748,13 +2749,13 @@ function Bn(t, e, r) {
|
|
|
2748
2749
|
}
|
|
2749
2750
|
return m;
|
|
2750
2751
|
}
|
|
2751
|
-
const
|
|
2752
|
+
const Fl = async (t, e, r) => {
|
|
2752
2753
|
const {
|
|
2753
2754
|
placement: i = "bottom",
|
|
2754
2755
|
strategy: n = "absolute",
|
|
2755
2756
|
middleware: s = [],
|
|
2756
2757
|
platform: o
|
|
2757
|
-
} = r,
|
|
2758
|
+
} = r, a = s.filter(Boolean), l = await (o.isRTL == null ? void 0 : o.isRTL(e));
|
|
2758
2759
|
let h = await o.getElementRects({
|
|
2759
2760
|
reference: t,
|
|
2760
2761
|
floating: e,
|
|
@@ -2762,12 +2763,12 @@ const Da = async (t, e, r) => {
|
|
|
2762
2763
|
}), {
|
|
2763
2764
|
x: p,
|
|
2764
2765
|
y: g
|
|
2765
|
-
} =
|
|
2766
|
-
for (let k = 0; k <
|
|
2766
|
+
} = Hn(h, i, l), b = i, m = {}, _ = 0;
|
|
2767
|
+
for (let k = 0; k < a.length; k++) {
|
|
2767
2768
|
const {
|
|
2768
2769
|
name: z,
|
|
2769
2770
|
fn: I
|
|
2770
|
-
} =
|
|
2771
|
+
} = a[k], {
|
|
2771
2772
|
x: f,
|
|
2772
2773
|
y,
|
|
2773
2774
|
data: w,
|
|
@@ -2799,7 +2800,7 @@ const Da = async (t, e, r) => {
|
|
|
2799
2800
|
}) : E.rects), {
|
|
2800
2801
|
x: p,
|
|
2801
2802
|
y: g
|
|
2802
|
-
} =
|
|
2803
|
+
} = Hn(h, b, l)), k = -1);
|
|
2803
2804
|
}
|
|
2804
2805
|
return {
|
|
2805
2806
|
x: p,
|
|
@@ -2810,7 +2811,7 @@ const Da = async (t, e, r) => {
|
|
|
2810
2811
|
};
|
|
2811
2812
|
};
|
|
2812
2813
|
function Bt(t) {
|
|
2813
|
-
return
|
|
2814
|
+
return Ms(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
2814
2815
|
}
|
|
2815
2816
|
function Ce(t) {
|
|
2816
2817
|
var e;
|
|
@@ -2818,9 +2819,9 @@ function Ce(t) {
|
|
|
2818
2819
|
}
|
|
2819
2820
|
function it(t) {
|
|
2820
2821
|
var e;
|
|
2821
|
-
return (e = (
|
|
2822
|
+
return (e = (Ms(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
2822
2823
|
}
|
|
2823
|
-
function
|
|
2824
|
+
function Ms(t) {
|
|
2824
2825
|
return t instanceof Node || t instanceof Ce(t).Node;
|
|
2825
2826
|
}
|
|
2826
2827
|
function Xe(t) {
|
|
@@ -2829,7 +2830,7 @@ function Xe(t) {
|
|
|
2829
2830
|
function Ve(t) {
|
|
2830
2831
|
return t instanceof HTMLElement || t instanceof Ce(t).HTMLElement;
|
|
2831
2832
|
}
|
|
2832
|
-
function
|
|
2833
|
+
function Fn(t) {
|
|
2833
2834
|
return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof Ce(t).ShadowRoot;
|
|
2834
2835
|
}
|
|
2835
2836
|
function sr(t) {
|
|
@@ -2841,19 +2842,19 @@ function sr(t) {
|
|
|
2841
2842
|
} = Be(t);
|
|
2842
2843
|
return /auto|scroll|overlay|hidden|clip/.test(e + i + r) && !["inline", "contents"].includes(n);
|
|
2843
2844
|
}
|
|
2844
|
-
function
|
|
2845
|
+
function zl(t) {
|
|
2845
2846
|
return ["table", "td", "th"].includes(Bt(t));
|
|
2846
2847
|
}
|
|
2847
2848
|
function Ii(t) {
|
|
2848
2849
|
const e = qi(), r = Be(t);
|
|
2849
2850
|
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));
|
|
2850
2851
|
}
|
|
2851
|
-
function
|
|
2852
|
-
let e =
|
|
2852
|
+
function Wl(t) {
|
|
2853
|
+
let e = at(t);
|
|
2853
2854
|
for (; Ve(e) && !Tt(e); ) {
|
|
2854
2855
|
if (Ii(e))
|
|
2855
2856
|
return e;
|
|
2856
|
-
e =
|
|
2857
|
+
e = at(e);
|
|
2857
2858
|
}
|
|
2858
2859
|
return null;
|
|
2859
2860
|
}
|
|
@@ -2875,36 +2876,36 @@ function Rr(t) {
|
|
|
2875
2876
|
scrollTop: t.pageYOffset
|
|
2876
2877
|
};
|
|
2877
2878
|
}
|
|
2878
|
-
function
|
|
2879
|
+
function at(t) {
|
|
2879
2880
|
if (Bt(t) === "html")
|
|
2880
2881
|
return t;
|
|
2881
2882
|
const e = (
|
|
2882
2883
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
2883
2884
|
t.assignedSlot || // DOM Element detected.
|
|
2884
2885
|
t.parentNode || // ShadowRoot detected.
|
|
2885
|
-
|
|
2886
|
+
Fn(t) && t.host || // Fallback.
|
|
2886
2887
|
it(t)
|
|
2887
2888
|
);
|
|
2888
|
-
return
|
|
2889
|
+
return Fn(e) ? e.host : e;
|
|
2889
2890
|
}
|
|
2890
|
-
function
|
|
2891
|
-
const e =
|
|
2892
|
-
return Tt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Ve(e) && sr(e) ? e :
|
|
2891
|
+
function As(t) {
|
|
2892
|
+
const e = at(t);
|
|
2893
|
+
return Tt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Ve(e) && sr(e) ? e : As(e);
|
|
2893
2894
|
}
|
|
2894
2895
|
function Qt(t, e, r) {
|
|
2895
2896
|
var i;
|
|
2896
2897
|
e === void 0 && (e = []), r === void 0 && (r = !0);
|
|
2897
|
-
const n =
|
|
2898
|
+
const n = As(t), s = n === ((i = t.ownerDocument) == null ? void 0 : i.body), o = Ce(n);
|
|
2898
2899
|
return s ? e.concat(o, o.visualViewport || [], sr(n) ? n : [], o.frameElement && r ? Qt(o.frameElement) : []) : e.concat(n, Qt(n, [], r));
|
|
2899
2900
|
}
|
|
2900
|
-
function
|
|
2901
|
+
function ks(t) {
|
|
2901
2902
|
const e = Be(t);
|
|
2902
2903
|
let r = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
|
|
2903
|
-
const n = Ve(t), s = n ? t.offsetWidth : r, o = n ? t.offsetHeight : i,
|
|
2904
|
-
return
|
|
2904
|
+
const n = Ve(t), s = n ? t.offsetWidth : r, o = n ? t.offsetHeight : i, a = Ar(r) !== s || Ar(i) !== o;
|
|
2905
|
+
return a && (r = s, i = o), {
|
|
2905
2906
|
width: r,
|
|
2906
2907
|
height: i,
|
|
2907
|
-
$:
|
|
2908
|
+
$: a
|
|
2908
2909
|
};
|
|
2909
2910
|
}
|
|
2910
2911
|
function Bi(t) {
|
|
@@ -2913,54 +2914,54 @@ function Bi(t) {
|
|
|
2913
2914
|
function Rt(t) {
|
|
2914
2915
|
const e = Bi(t);
|
|
2915
2916
|
if (!Ve(e))
|
|
2916
|
-
return
|
|
2917
|
+
return lt(1);
|
|
2917
2918
|
const r = e.getBoundingClientRect(), {
|
|
2918
2919
|
width: i,
|
|
2919
2920
|
height: n,
|
|
2920
2921
|
$: s
|
|
2921
|
-
} =
|
|
2922
|
-
let o = (s ? Ar(r.width) : r.width) / i,
|
|
2923
|
-
return (!o || !Number.isFinite(o)) && (o = 1), (!
|
|
2922
|
+
} = ks(e);
|
|
2923
|
+
let o = (s ? Ar(r.width) : r.width) / i, a = (s ? Ar(r.height) : r.height) / n;
|
|
2924
|
+
return (!o || !Number.isFinite(o)) && (o = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
2924
2925
|
x: o,
|
|
2925
|
-
y:
|
|
2926
|
+
y: a
|
|
2926
2927
|
};
|
|
2927
2928
|
}
|
|
2928
|
-
const
|
|
2929
|
-
function
|
|
2929
|
+
const Yl = /* @__PURE__ */ lt(0);
|
|
2930
|
+
function Os(t) {
|
|
2930
2931
|
const e = Ce(t);
|
|
2931
|
-
return !qi() || !e.visualViewport ?
|
|
2932
|
+
return !qi() || !e.visualViewport ? Yl : {
|
|
2932
2933
|
x: e.visualViewport.offsetLeft,
|
|
2933
2934
|
y: e.visualViewport.offsetTop
|
|
2934
2935
|
};
|
|
2935
2936
|
}
|
|
2936
|
-
function
|
|
2937
|
+
function Xl(t, e, r) {
|
|
2937
2938
|
return e === void 0 && (e = !1), !r || e && r !== Ce(t) ? !1 : e;
|
|
2938
2939
|
}
|
|
2939
2940
|
function wt(t, e, r, i) {
|
|
2940
2941
|
e === void 0 && (e = !1), r === void 0 && (r = !1);
|
|
2941
2942
|
const n = t.getBoundingClientRect(), s = Bi(t);
|
|
2942
|
-
let o =
|
|
2943
|
+
let o = lt(1);
|
|
2943
2944
|
e && (i ? Xe(i) && (o = Rt(i)) : o = Rt(t));
|
|
2944
|
-
const
|
|
2945
|
-
let
|
|
2945
|
+
const a = Xl(s, r, i) ? Os(s) : lt(0);
|
|
2946
|
+
let l = (n.left + a.x) / o.x, h = (n.top + a.y) / o.y, p = n.width / o.x, g = n.height / o.y;
|
|
2946
2947
|
if (s) {
|
|
2947
2948
|
const b = Ce(s), m = i && Xe(i) ? Ce(i) : i;
|
|
2948
2949
|
let _ = b, k = _.frameElement;
|
|
2949
2950
|
for (; k && i && m !== _; ) {
|
|
2950
2951
|
const z = Rt(k), I = k.getBoundingClientRect(), f = Be(k), y = I.left + (k.clientLeft + parseFloat(f.paddingLeft)) * z.x, w = I.top + (k.clientTop + parseFloat(f.paddingTop)) * z.y;
|
|
2951
|
-
|
|
2952
|
+
l *= z.x, h *= z.y, p *= z.x, g *= z.y, l += y, h += w, _ = Ce(k), k = _.frameElement;
|
|
2952
2953
|
}
|
|
2953
2954
|
}
|
|
2954
|
-
return
|
|
2955
|
+
return Ss({
|
|
2955
2956
|
width: p,
|
|
2956
2957
|
height: g,
|
|
2957
|
-
x:
|
|
2958
|
+
x: l,
|
|
2958
2959
|
y: h
|
|
2959
2960
|
});
|
|
2960
2961
|
}
|
|
2961
|
-
const
|
|
2962
|
+
const Vl = [":popover-open", ":modal"];
|
|
2962
2963
|
function Ui(t) {
|
|
2963
|
-
return
|
|
2964
|
+
return Vl.some((e) => {
|
|
2964
2965
|
try {
|
|
2965
2966
|
return t.matches(e);
|
|
2966
2967
|
} catch {
|
|
@@ -2968,150 +2969,150 @@ function Ui(t) {
|
|
|
2968
2969
|
}
|
|
2969
2970
|
});
|
|
2970
2971
|
}
|
|
2971
|
-
function
|
|
2972
|
+
function Kl(t) {
|
|
2972
2973
|
let {
|
|
2973
2974
|
elements: e,
|
|
2974
2975
|
rect: r,
|
|
2975
2976
|
offsetParent: i,
|
|
2976
2977
|
strategy: n
|
|
2977
2978
|
} = t;
|
|
2978
|
-
const s = n === "fixed", o = it(i),
|
|
2979
|
-
if (i === o ||
|
|
2979
|
+
const s = n === "fixed", o = it(i), a = e ? Ui(e.floating) : !1;
|
|
2980
|
+
if (i === o || a && s)
|
|
2980
2981
|
return r;
|
|
2981
|
-
let
|
|
2982
|
+
let l = {
|
|
2982
2983
|
scrollLeft: 0,
|
|
2983
2984
|
scrollTop: 0
|
|
2984
|
-
}, h =
|
|
2985
|
-
const p =
|
|
2986
|
-
if ((g || !g && !s) && ((Bt(i) !== "body" || sr(o)) && (
|
|
2985
|
+
}, h = lt(1);
|
|
2986
|
+
const p = lt(0), g = Ve(i);
|
|
2987
|
+
if ((g || !g && !s) && ((Bt(i) !== "body" || sr(o)) && (l = Rr(i)), Ve(i))) {
|
|
2987
2988
|
const b = wt(i);
|
|
2988
2989
|
h = Rt(i), p.x = b.x + i.clientLeft, p.y = b.y + i.clientTop;
|
|
2989
2990
|
}
|
|
2990
2991
|
return {
|
|
2991
2992
|
width: r.width * h.x,
|
|
2992
2993
|
height: r.height * h.y,
|
|
2993
|
-
x: r.x * h.x -
|
|
2994
|
-
y: r.y * h.y -
|
|
2994
|
+
x: r.x * h.x - l.scrollLeft * h.x + p.x,
|
|
2995
|
+
y: r.y * h.y - l.scrollTop * h.y + p.y
|
|
2995
2996
|
};
|
|
2996
2997
|
}
|
|
2997
|
-
function
|
|
2998
|
+
function Jl(t) {
|
|
2998
2999
|
return Array.from(t.getClientRects());
|
|
2999
3000
|
}
|
|
3000
|
-
function
|
|
3001
|
+
function Ps(t) {
|
|
3001
3002
|
return wt(it(t)).left + Rr(t).scrollLeft;
|
|
3002
3003
|
}
|
|
3003
|
-
function
|
|
3004
|
+
function Zl(t) {
|
|
3004
3005
|
const e = it(t), r = Rr(t), i = t.ownerDocument.body, n = Ct(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), s = Ct(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
|
|
3005
|
-
let o = -r.scrollLeft +
|
|
3006
|
-
const
|
|
3006
|
+
let o = -r.scrollLeft + Ps(t);
|
|
3007
|
+
const a = -r.scrollTop;
|
|
3007
3008
|
return Be(i).direction === "rtl" && (o += Ct(e.clientWidth, i.clientWidth) - n), {
|
|
3008
3009
|
width: n,
|
|
3009
3010
|
height: s,
|
|
3010
3011
|
x: o,
|
|
3011
|
-
y:
|
|
3012
|
+
y: a
|
|
3012
3013
|
};
|
|
3013
3014
|
}
|
|
3014
|
-
function
|
|
3015
|
+
function Gl(t, e) {
|
|
3015
3016
|
const r = Ce(t), i = it(t), n = r.visualViewport;
|
|
3016
|
-
let s = i.clientWidth, o = i.clientHeight,
|
|
3017
|
+
let s = i.clientWidth, o = i.clientHeight, a = 0, l = 0;
|
|
3017
3018
|
if (n) {
|
|
3018
3019
|
s = n.width, o = n.height;
|
|
3019
3020
|
const h = qi();
|
|
3020
|
-
(!h || h && e === "fixed") && (
|
|
3021
|
+
(!h || h && e === "fixed") && (a = n.offsetLeft, l = n.offsetTop);
|
|
3021
3022
|
}
|
|
3022
3023
|
return {
|
|
3023
3024
|
width: s,
|
|
3024
3025
|
height: o,
|
|
3025
|
-
x:
|
|
3026
|
-
y:
|
|
3026
|
+
x: a,
|
|
3027
|
+
y: l
|
|
3027
3028
|
};
|
|
3028
3029
|
}
|
|
3029
|
-
function
|
|
3030
|
-
const r = wt(t, !0, e === "fixed"), i = r.top + t.clientTop, n = r.left + t.clientLeft, s = Ve(t) ? Rt(t) :
|
|
3030
|
+
function Ql(t, e) {
|
|
3031
|
+
const r = wt(t, !0, e === "fixed"), i = r.top + t.clientTop, n = r.left + t.clientLeft, s = Ve(t) ? Rt(t) : lt(1), o = t.clientWidth * s.x, a = t.clientHeight * s.y, l = n * s.x, h = i * s.y;
|
|
3031
3032
|
return {
|
|
3032
3033
|
width: o,
|
|
3033
|
-
height:
|
|
3034
|
-
x:
|
|
3034
|
+
height: a,
|
|
3035
|
+
x: l,
|
|
3035
3036
|
y: h
|
|
3036
3037
|
};
|
|
3037
3038
|
}
|
|
3038
|
-
function
|
|
3039
|
+
function zn(t, e, r) {
|
|
3039
3040
|
let i;
|
|
3040
3041
|
if (e === "viewport")
|
|
3041
|
-
i =
|
|
3042
|
+
i = Gl(t, r);
|
|
3042
3043
|
else if (e === "document")
|
|
3043
|
-
i =
|
|
3044
|
+
i = Zl(it(t));
|
|
3044
3045
|
else if (Xe(e))
|
|
3045
|
-
i =
|
|
3046
|
+
i = Ql(e, r);
|
|
3046
3047
|
else {
|
|
3047
|
-
const n =
|
|
3048
|
+
const n = Os(t);
|
|
3048
3049
|
i = {
|
|
3049
3050
|
...e,
|
|
3050
3051
|
x: e.x - n.x,
|
|
3051
3052
|
y: e.y - n.y
|
|
3052
3053
|
};
|
|
3053
3054
|
}
|
|
3054
|
-
return
|
|
3055
|
+
return Ss(i);
|
|
3055
3056
|
}
|
|
3056
|
-
function
|
|
3057
|
-
const r =
|
|
3058
|
-
return r === e || !Xe(r) || Tt(r) ? !1 : Be(r).position === "fixed" ||
|
|
3057
|
+
function Ls(t, e) {
|
|
3058
|
+
const r = at(t);
|
|
3059
|
+
return r === e || !Xe(r) || Tt(r) ? !1 : Be(r).position === "fixed" || Ls(r, e);
|
|
3059
3060
|
}
|
|
3060
|
-
function
|
|
3061
|
+
function ea(t, e) {
|
|
3061
3062
|
const r = e.get(t);
|
|
3062
3063
|
if (r)
|
|
3063
3064
|
return r;
|
|
3064
|
-
let i = Qt(t, [], !1).filter((
|
|
3065
|
+
let i = Qt(t, [], !1).filter((a) => Xe(a) && Bt(a) !== "body"), n = null;
|
|
3065
3066
|
const s = Be(t).position === "fixed";
|
|
3066
|
-
let o = s ?
|
|
3067
|
+
let o = s ? at(t) : t;
|
|
3067
3068
|
for (; Xe(o) && !Tt(o); ) {
|
|
3068
|
-
const
|
|
3069
|
-
!
|
|
3069
|
+
const a = Be(o), l = Ii(o);
|
|
3070
|
+
!l && a.position === "fixed" && (n = null), (s ? !l && !n : !l && a.position === "static" && n && ["absolute", "fixed"].includes(n.position) || sr(o) && !l && Ls(t, o)) ? i = i.filter((h) => h !== o) : n = a, o = at(o);
|
|
3070
3071
|
}
|
|
3071
3072
|
return e.set(t, i), i;
|
|
3072
3073
|
}
|
|
3073
|
-
function
|
|
3074
|
+
function ta(t) {
|
|
3074
3075
|
let {
|
|
3075
3076
|
element: e,
|
|
3076
3077
|
boundary: r,
|
|
3077
3078
|
rootBoundary: i,
|
|
3078
3079
|
strategy: n
|
|
3079
3080
|
} = t;
|
|
3080
|
-
const s = [...r === "clippingAncestors" ? Ui(e) ? [] :
|
|
3081
|
-
const p =
|
|
3082
|
-
return
|
|
3083
|
-
},
|
|
3081
|
+
const s = [...r === "clippingAncestors" ? Ui(e) ? [] : ea(e, this._c) : [].concat(r), i], o = s[0], a = s.reduce((l, h) => {
|
|
3082
|
+
const p = zn(e, h, n);
|
|
3083
|
+
return l.top = Ct(p.top, l.top), l.right = gi(p.right, l.right), l.bottom = gi(p.bottom, l.bottom), l.left = Ct(p.left, l.left), l;
|
|
3084
|
+
}, zn(e, o, n));
|
|
3084
3085
|
return {
|
|
3085
|
-
width:
|
|
3086
|
-
height:
|
|
3087
|
-
x:
|
|
3088
|
-
y:
|
|
3086
|
+
width: a.right - a.left,
|
|
3087
|
+
height: a.bottom - a.top,
|
|
3088
|
+
x: a.left,
|
|
3089
|
+
y: a.top
|
|
3089
3090
|
};
|
|
3090
3091
|
}
|
|
3091
|
-
function
|
|
3092
|
+
function ra(t) {
|
|
3092
3093
|
const {
|
|
3093
3094
|
width: e,
|
|
3094
3095
|
height: r
|
|
3095
|
-
} =
|
|
3096
|
+
} = ks(t);
|
|
3096
3097
|
return {
|
|
3097
3098
|
width: e,
|
|
3098
3099
|
height: r
|
|
3099
3100
|
};
|
|
3100
3101
|
}
|
|
3101
|
-
function
|
|
3102
|
+
function ia(t, e, r) {
|
|
3102
3103
|
const i = Ve(e), n = it(e), s = r === "fixed", o = wt(t, !0, s, e);
|
|
3103
|
-
let
|
|
3104
|
+
let a = {
|
|
3104
3105
|
scrollLeft: 0,
|
|
3105
3106
|
scrollTop: 0
|
|
3106
3107
|
};
|
|
3107
|
-
const
|
|
3108
|
+
const l = lt(0);
|
|
3108
3109
|
if (i || !i && !s)
|
|
3109
|
-
if ((Bt(e) !== "body" || sr(n)) && (
|
|
3110
|
+
if ((Bt(e) !== "body" || sr(n)) && (a = Rr(e)), i) {
|
|
3110
3111
|
const g = wt(e, !0, s, e);
|
|
3111
|
-
|
|
3112
|
+
l.x = g.x + e.clientLeft, l.y = g.y + e.clientTop;
|
|
3112
3113
|
} else
|
|
3113
|
-
n && (
|
|
3114
|
-
const h = o.left +
|
|
3114
|
+
n && (l.x = Ps(n));
|
|
3115
|
+
const h = o.left + a.scrollLeft - l.x, p = o.top + a.scrollTop - l.y;
|
|
3115
3116
|
return {
|
|
3116
3117
|
x: h,
|
|
3117
3118
|
y: p,
|
|
@@ -3122,31 +3123,31 @@ function Ja(t, e, r) {
|
|
|
3122
3123
|
function ui(t) {
|
|
3123
3124
|
return Be(t).position === "static";
|
|
3124
3125
|
}
|
|
3125
|
-
function
|
|
3126
|
+
function Wn(t, e) {
|
|
3126
3127
|
return !Ve(t) || Be(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
|
|
3127
3128
|
}
|
|
3128
|
-
function
|
|
3129
|
+
function Cs(t, e) {
|
|
3129
3130
|
const r = Ce(t);
|
|
3130
3131
|
if (Ui(t))
|
|
3131
3132
|
return r;
|
|
3132
3133
|
if (!Ve(t)) {
|
|
3133
|
-
let n =
|
|
3134
|
+
let n = at(t);
|
|
3134
3135
|
for (; n && !Tt(n); ) {
|
|
3135
3136
|
if (Xe(n) && !ui(n))
|
|
3136
3137
|
return n;
|
|
3137
|
-
n =
|
|
3138
|
+
n = at(n);
|
|
3138
3139
|
}
|
|
3139
3140
|
return r;
|
|
3140
3141
|
}
|
|
3141
|
-
let i =
|
|
3142
|
-
for (; i &&
|
|
3143
|
-
i =
|
|
3144
|
-
return i && Tt(i) && ui(i) && !Ii(i) ? r : i ||
|
|
3142
|
+
let i = Wn(t, e);
|
|
3143
|
+
for (; i && zl(i) && ui(i); )
|
|
3144
|
+
i = Wn(i, e);
|
|
3145
|
+
return i && Tt(i) && ui(i) && !Ii(i) ? r : i || Wl(t) || r;
|
|
3145
3146
|
}
|
|
3146
|
-
const
|
|
3147
|
-
const e = this.getOffsetParent ||
|
|
3147
|
+
const na = async function(t) {
|
|
3148
|
+
const e = this.getOffsetParent || Cs, r = this.getDimensions, i = await r(t.floating);
|
|
3148
3149
|
return {
|
|
3149
|
-
reference:
|
|
3150
|
+
reference: ia(t.reference, await e(t.floating), t.strategy),
|
|
3150
3151
|
floating: {
|
|
3151
3152
|
x: 0,
|
|
3152
3153
|
y: 0,
|
|
@@ -3155,46 +3156,46 @@ const Za = async function(t) {
|
|
|
3155
3156
|
}
|
|
3156
3157
|
};
|
|
3157
3158
|
};
|
|
3158
|
-
function
|
|
3159
|
+
function sa(t) {
|
|
3159
3160
|
return Be(t).direction === "rtl";
|
|
3160
3161
|
}
|
|
3161
|
-
const
|
|
3162
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
3162
|
+
const oa = {
|
|
3163
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Kl,
|
|
3163
3164
|
getDocumentElement: it,
|
|
3164
|
-
getClippingRect:
|
|
3165
|
-
getOffsetParent:
|
|
3166
|
-
getElementRects:
|
|
3167
|
-
getClientRects:
|
|
3168
|
-
getDimensions:
|
|
3165
|
+
getClippingRect: ta,
|
|
3166
|
+
getOffsetParent: Cs,
|
|
3167
|
+
getElementRects: na,
|
|
3168
|
+
getClientRects: Jl,
|
|
3169
|
+
getDimensions: ra,
|
|
3169
3170
|
getScale: Rt,
|
|
3170
3171
|
isElement: Xe,
|
|
3171
|
-
isRTL:
|
|
3172
|
+
isRTL: sa
|
|
3172
3173
|
};
|
|
3173
|
-
function
|
|
3174
|
+
function la(t, e) {
|
|
3174
3175
|
let r = null, i;
|
|
3175
3176
|
const n = it(t);
|
|
3176
3177
|
function s() {
|
|
3177
|
-
var
|
|
3178
|
-
clearTimeout(i), (
|
|
3178
|
+
var a;
|
|
3179
|
+
clearTimeout(i), (a = r) == null || a.disconnect(), r = null;
|
|
3179
3180
|
}
|
|
3180
|
-
function o(
|
|
3181
|
-
|
|
3181
|
+
function o(a, l) {
|
|
3182
|
+
a === void 0 && (a = !1), l === void 0 && (l = 1), s();
|
|
3182
3183
|
const {
|
|
3183
3184
|
left: h,
|
|
3184
3185
|
top: p,
|
|
3185
3186
|
width: g,
|
|
3186
3187
|
height: b
|
|
3187
3188
|
} = t.getBoundingClientRect();
|
|
3188
|
-
if (
|
|
3189
|
+
if (a || e(), !g || !b)
|
|
3189
3190
|
return;
|
|
3190
3191
|
const m = br(p), _ = br(n.clientWidth - (h + g)), k = br(n.clientHeight - (p + b)), z = br(h), I = {
|
|
3191
3192
|
rootMargin: -m + "px " + -_ + "px " + -k + "px " + -z + "px",
|
|
3192
|
-
threshold: Ct(0, gi(1,
|
|
3193
|
+
threshold: Ct(0, gi(1, l)) || 1
|
|
3193
3194
|
};
|
|
3194
3195
|
let f = !0;
|
|
3195
3196
|
function y(w) {
|
|
3196
3197
|
const E = w[0].intersectionRatio;
|
|
3197
|
-
if (E !==
|
|
3198
|
+
if (E !== l) {
|
|
3198
3199
|
if (!f)
|
|
3199
3200
|
return o();
|
|
3200
3201
|
E ? o(!1, E) : i = setTimeout(() => {
|
|
@@ -3216,21 +3217,21 @@ function el(t, e) {
|
|
|
3216
3217
|
}
|
|
3217
3218
|
return o(!0), s;
|
|
3218
3219
|
}
|
|
3219
|
-
function
|
|
3220
|
+
function aa(t, e, r, i) {
|
|
3220
3221
|
i === void 0 && (i = {});
|
|
3221
3222
|
const {
|
|
3222
3223
|
ancestorScroll: n = !0,
|
|
3223
3224
|
ancestorResize: s = !0,
|
|
3224
3225
|
elementResize: o = typeof ResizeObserver == "function",
|
|
3225
|
-
layoutShift:
|
|
3226
|
-
animationFrame:
|
|
3226
|
+
layoutShift: a = typeof IntersectionObserver == "function",
|
|
3227
|
+
animationFrame: l = !1
|
|
3227
3228
|
} = i, h = Bi(t), p = n || s ? [...h ? Qt(h) : [], ...Qt(e)] : [];
|
|
3228
3229
|
p.forEach((I) => {
|
|
3229
3230
|
n && I.addEventListener("scroll", r, {
|
|
3230
3231
|
passive: !0
|
|
3231
3232
|
}), s && I.addEventListener("resize", r);
|
|
3232
3233
|
});
|
|
3233
|
-
const g = h &&
|
|
3234
|
+
const g = h && a ? la(h, r) : null;
|
|
3234
3235
|
let b = -1, m = null;
|
|
3235
3236
|
o && (m = new ResizeObserver((I) => {
|
|
3236
3237
|
let [f] = I;
|
|
@@ -3238,9 +3239,9 @@ function tl(t, e, r, i) {
|
|
|
3238
3239
|
var y;
|
|
3239
3240
|
(y = m) == null || y.observe(e);
|
|
3240
3241
|
})), r();
|
|
3241
|
-
}), h && !
|
|
3242
|
-
let _, k =
|
|
3243
|
-
|
|
3242
|
+
}), h && !l && m.observe(h), m.observe(e));
|
|
3243
|
+
let _, k = l ? wt(t) : null;
|
|
3244
|
+
l && z();
|
|
3244
3245
|
function z() {
|
|
3245
3246
|
const I = wt(t);
|
|
3246
3247
|
k && (I.x !== k.x || I.y !== k.y || I.width !== k.width || I.height !== k.height) && r(), k = I, _ = requestAnimationFrame(z);
|
|
@@ -3249,26 +3250,26 @@ function tl(t, e, r, i) {
|
|
|
3249
3250
|
var I;
|
|
3250
3251
|
p.forEach((f) => {
|
|
3251
3252
|
n && f.removeEventListener("scroll", r), s && f.removeEventListener("resize", r);
|
|
3252
|
-
}), g?.(), (I = m) == null || I.disconnect(), m = null,
|
|
3253
|
+
}), g?.(), (I = m) == null || I.disconnect(), m = null, l && cancelAnimationFrame(_);
|
|
3253
3254
|
};
|
|
3254
3255
|
}
|
|
3255
|
-
const
|
|
3256
|
+
const ca = (t, e, r) => {
|
|
3256
3257
|
const i = /* @__PURE__ */ new Map(), n = {
|
|
3257
|
-
platform:
|
|
3258
|
+
platform: oa,
|
|
3258
3259
|
...r
|
|
3259
3260
|
}, s = {
|
|
3260
3261
|
...n.platform,
|
|
3261
3262
|
_c: i
|
|
3262
3263
|
};
|
|
3263
|
-
return
|
|
3264
|
+
return Fl(t, e, {
|
|
3264
3265
|
...n,
|
|
3265
3266
|
platform: s
|
|
3266
3267
|
});
|
|
3267
3268
|
};
|
|
3268
|
-
var
|
|
3269
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
3269
|
+
var ha = Object.defineProperty, ua = Object.getOwnPropertyDescriptor, jr = (t, e, r, i) => {
|
|
3270
|
+
for (var n = i > 1 ? void 0 : i ? ua(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
3270
3271
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
3271
|
-
return i && n &&
|
|
3272
|
+
return i && n && ha(e, r, n), n;
|
|
3272
3273
|
};
|
|
3273
3274
|
let er = class extends _e {
|
|
3274
3275
|
constructor() {
|
|
@@ -3291,7 +3292,7 @@ let er = class extends _e {
|
|
|
3291
3292
|
connectedCallback() {
|
|
3292
3293
|
super.connectedCallback(), this.unstyled || setTimeout(() => {
|
|
3293
3294
|
const t = this.parent || this.renderRoot.querySelector("[name=trigger]").assignedNodes()[0], e = this.renderRoot.querySelector("#dropdown"), r = () => {
|
|
3294
|
-
e.classList.contains("open") &&
|
|
3295
|
+
e.classList.contains("open") && ca(t, e, { strategy: "fixed" }).then(
|
|
3295
3296
|
({ x: i, y: n }) => {
|
|
3296
3297
|
Object.assign(e.style, {
|
|
3297
3298
|
left: `${i}px`,
|
|
@@ -3301,7 +3302,7 @@ let er = class extends _e {
|
|
|
3301
3302
|
}
|
|
3302
3303
|
);
|
|
3303
3304
|
};
|
|
3304
|
-
this._overlayCleanup =
|
|
3305
|
+
this._overlayCleanup = aa(t, e, r);
|
|
3305
3306
|
});
|
|
3306
3307
|
}
|
|
3307
3308
|
disconnectedCallback() {
|
|
@@ -3319,7 +3320,7 @@ let er = class extends _e {
|
|
|
3319
3320
|
#dropdown.open {
|
|
3320
3321
|
display: block;
|
|
3321
3322
|
}
|
|
3322
|
-
${this.unstyled ?
|
|
3323
|
+
${this.unstyled ? le : F`
|
|
3323
3324
|
eox-dropdown { height: 100%;} #dropdown { position: fixed; top:
|
|
3324
3325
|
0px; left: 0; width: 100%; margin: 0; padding: 0; background:
|
|
3325
3326
|
white; border-bottom-left-radius: 4px; border-bottom-right-radius:
|
|
@@ -3357,10 +3358,10 @@ jr([
|
|
|
3357
3358
|
er = jr([
|
|
3358
3359
|
Re("eox-dropdown")
|
|
3359
3360
|
], er);
|
|
3360
|
-
var
|
|
3361
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
3361
|
+
var da = Object.defineProperty, pa = Object.getOwnPropertyDescriptor, Tr = (t, e, r, i) => {
|
|
3362
|
+
for (var n = i > 1 ? void 0 : i ? pa(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
3362
3363
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
3363
|
-
return i && n &&
|
|
3364
|
+
return i && n && da(e, r, n), n;
|
|
3364
3365
|
};
|
|
3365
3366
|
let tr = class extends _e {
|
|
3366
3367
|
constructor() {
|
|
@@ -3419,7 +3420,7 @@ let tr = class extends _e {
|
|
|
3419
3420
|
.chip-title {
|
|
3420
3421
|
pointer-events: none;
|
|
3421
3422
|
}
|
|
3422
|
-
${this.unstyled ?
|
|
3423
|
+
${this.unstyled ? le : F`
|
|
3423
3424
|
.chip-container { display: flex; flex: 0; } .chip { display: flex;
|
|
3424
3425
|
align-items: center; background: #00417022; border-radius: 4px;
|
|
3425
3426
|
margin-right: 4px; padding: 5px 10px; font-size: small; cursor:
|
|
@@ -3477,10 +3478,10 @@ Tr([
|
|
|
3477
3478
|
tr = Tr([
|
|
3478
3479
|
Re("eox-itemfilter-chips")
|
|
3479
3480
|
], tr);
|
|
3480
|
-
var
|
|
3481
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
3481
|
+
var fa = Object.defineProperty, ga = Object.getOwnPropertyDescriptor, Je = (t, e, r, i) => {
|
|
3482
|
+
for (var n = i > 1 ? void 0 : i ? ga(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
3482
3483
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
3483
|
-
return i && n &&
|
|
3484
|
+
return i && n && fa(e, r, n), n;
|
|
3484
3485
|
};
|
|
3485
3486
|
let Ue = class extends _e {
|
|
3486
3487
|
constructor() {
|
|
@@ -3550,7 +3551,7 @@ let Ue = class extends _e {
|
|
|
3550
3551
|
#dropdown {
|
|
3551
3552
|
display: none;
|
|
3552
3553
|
}
|
|
3553
|
-
${this.unstyled ?
|
|
3554
|
+
${this.unstyled ? le : F`
|
|
3554
3555
|
${Ti} :host { position: relative; } .container { width: 100%;
|
|
3555
3556
|
position: relative; border: 1px solid #00417066; border-radius:
|
|
3556
3557
|
4px; height: 24px; padding: 5px; flex: 1; justify-content:
|
|
@@ -3678,10 +3679,10 @@ Je([
|
|
|
3678
3679
|
Ue = Je([
|
|
3679
3680
|
Re("eox-autocomplete")
|
|
3680
3681
|
], Ue);
|
|
3681
|
-
var
|
|
3682
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
3682
|
+
var ya = Object.defineProperty, ma = Object.getOwnPropertyDescriptor, Ze = (t, e, r, i) => {
|
|
3683
|
+
for (var n = i > 1 ? void 0 : i ? ma(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
3683
3684
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
3684
|
-
return i && n &&
|
|
3685
|
+
return i && n && ya(e, r, n), n;
|
|
3685
3686
|
};
|
|
3686
3687
|
let He = class extends _e {
|
|
3687
3688
|
constructor() {
|
|
@@ -3772,14 +3773,14 @@ let He = class extends _e {
|
|
|
3772
3773
|
${!this.unstyled && Di}
|
|
3773
3774
|
</style>
|
|
3774
3775
|
<ul>
|
|
3775
|
-
${
|
|
3776
|
+
${xs(
|
|
3776
3777
|
this.items.filter(
|
|
3777
3778
|
(t) => this.filter ? t[this.titleProperty].toLowerCase().includes(this.filter.toLowerCase()) : !0
|
|
3778
3779
|
),
|
|
3779
3780
|
(t) => t[this.idProperty],
|
|
3780
3781
|
(t) => F`
|
|
3781
3782
|
<li
|
|
3782
|
-
class=${this._currentHighlight === t ? "highlighted" :
|
|
3783
|
+
class=${this._currentHighlight === t ? "highlighted" : le}
|
|
3783
3784
|
data-identifier=${t[this.idProperty]}
|
|
3784
3785
|
data-title=${t[this.titleProperty]}
|
|
3785
3786
|
@mouseenter=${() => {
|
|
@@ -3794,7 +3795,7 @@ let He = class extends _e {
|
|
|
3794
3795
|
type="${this.multiple ? "checkbox" : "radio"}"
|
|
3795
3796
|
.checked=${!!this.selectedItems.find(
|
|
3796
3797
|
(e) => e[this.idProperty] === t[this.idProperty]
|
|
3797
|
-
) ||
|
|
3798
|
+
) || le}
|
|
3798
3799
|
@change=${() => this._handleSelect(t)}
|
|
3799
3800
|
/>
|
|
3800
3801
|
<span class="title"
|
|
@@ -3838,10 +3839,10 @@ Ze([
|
|
|
3838
3839
|
He = Ze([
|
|
3839
3840
|
Re("eox-selectionlist")
|
|
3840
3841
|
], He);
|
|
3841
|
-
var
|
|
3842
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
3842
|
+
var va = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, Dr = (t, e, r, i) => {
|
|
3843
|
+
for (var n = i > 1 ? void 0 : i ? ba(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
3843
3844
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
3844
|
-
return i && n &&
|
|
3845
|
+
return i && n && va(e, r, n), n;
|
|
3845
3846
|
};
|
|
3846
3847
|
let rr = class extends _e {
|
|
3847
3848
|
constructor() {
|
|
@@ -3918,53 +3919,53 @@ Dr([
|
|
|
3918
3919
|
rr = Dr([
|
|
3919
3920
|
Re("eox-itemfilter-multiselect")
|
|
3920
3921
|
], rr);
|
|
3921
|
-
var
|
|
3922
|
-
return
|
|
3922
|
+
var xa = "Expected a function", Yn = NaN, wa = "[object Symbol]", $a = /^\s+|\s+$/g, _a = /^[-+]0x[0-9a-f]+$/i, Ea = /^0b[01]+$/i, Sa = /^0o[0-7]+$/i, Ma = parseInt, Aa = typeof Pt == "object" && Pt && Pt.Object === Object && Pt, ka = typeof self == "object" && self && self.Object === Object && self, Oa = Aa || ka || Function("return this")(), Pa = Object.prototype, La = Pa.toString, Ca = Math.max, Ra = Math.min, di = function() {
|
|
3923
|
+
return Oa.Date.now();
|
|
3923
3924
|
};
|
|
3924
|
-
function
|
|
3925
|
-
var i, n, s, o,
|
|
3925
|
+
function ja(t, e, r) {
|
|
3926
|
+
var i, n, s, o, a, l, h = 0, p = !1, g = !1, b = !0;
|
|
3926
3927
|
if (typeof t != "function")
|
|
3927
|
-
throw new TypeError(
|
|
3928
|
-
e =
|
|
3928
|
+
throw new TypeError(xa);
|
|
3929
|
+
e = Xn(e) || 0, yi(r) && (p = !!r.leading, g = "maxWait" in r, s = g ? Ca(Xn(r.maxWait) || 0, e) : s, b = "trailing" in r ? !!r.trailing : b);
|
|
3929
3930
|
function m(S) {
|
|
3930
3931
|
var M = i, L = n;
|
|
3931
3932
|
return i = n = void 0, h = S, o = t.apply(L, M), o;
|
|
3932
3933
|
}
|
|
3933
3934
|
function _(S) {
|
|
3934
|
-
return h = S,
|
|
3935
|
+
return h = S, a = setTimeout(I, e), p ? m(S) : o;
|
|
3935
3936
|
}
|
|
3936
3937
|
function k(S) {
|
|
3937
|
-
var M = S -
|
|
3938
|
-
return g ?
|
|
3938
|
+
var M = S - l, L = S - h, B = e - M;
|
|
3939
|
+
return g ? Ra(B, s - L) : B;
|
|
3939
3940
|
}
|
|
3940
3941
|
function z(S) {
|
|
3941
|
-
var M = S -
|
|
3942
|
-
return
|
|
3942
|
+
var M = S - l, L = S - h;
|
|
3943
|
+
return l === void 0 || M >= e || M < 0 || g && L >= s;
|
|
3943
3944
|
}
|
|
3944
3945
|
function I() {
|
|
3945
3946
|
var S = di();
|
|
3946
3947
|
if (z(S))
|
|
3947
3948
|
return f(S);
|
|
3948
|
-
|
|
3949
|
+
a = setTimeout(I, k(S));
|
|
3949
3950
|
}
|
|
3950
3951
|
function f(S) {
|
|
3951
|
-
return
|
|
3952
|
+
return a = void 0, b && i ? m(S) : (i = n = void 0, o);
|
|
3952
3953
|
}
|
|
3953
3954
|
function y() {
|
|
3954
|
-
|
|
3955
|
+
a !== void 0 && clearTimeout(a), h = 0, i = l = n = a = void 0;
|
|
3955
3956
|
}
|
|
3956
3957
|
function w() {
|
|
3957
|
-
return
|
|
3958
|
+
return a === void 0 ? o : f(di());
|
|
3958
3959
|
}
|
|
3959
3960
|
function E() {
|
|
3960
3961
|
var S = di(), M = z(S);
|
|
3961
|
-
if (i = arguments, n = this,
|
|
3962
|
-
if (
|
|
3963
|
-
return _(
|
|
3962
|
+
if (i = arguments, n = this, l = S, M) {
|
|
3963
|
+
if (a === void 0)
|
|
3964
|
+
return _(l);
|
|
3964
3965
|
if (g)
|
|
3965
|
-
return
|
|
3966
|
+
return a = setTimeout(I, e), m(l);
|
|
3966
3967
|
}
|
|
3967
|
-
return
|
|
3968
|
+
return a === void 0 && (a = setTimeout(I, e)), o;
|
|
3968
3969
|
}
|
|
3969
3970
|
return E.cancel = y, E.flush = w, E;
|
|
3970
3971
|
}
|
|
@@ -3972,40 +3973,40 @@ function yi(t) {
|
|
|
3972
3973
|
var e = typeof t;
|
|
3973
3974
|
return !!t && (e == "object" || e == "function");
|
|
3974
3975
|
}
|
|
3975
|
-
function
|
|
3976
|
+
function Ta(t) {
|
|
3976
3977
|
return !!t && typeof t == "object";
|
|
3977
3978
|
}
|
|
3978
|
-
function
|
|
3979
|
-
return typeof t == "symbol" ||
|
|
3979
|
+
function Da(t) {
|
|
3980
|
+
return typeof t == "symbol" || Ta(t) && La.call(t) == wa;
|
|
3980
3981
|
}
|
|
3981
|
-
function
|
|
3982
|
+
function Xn(t) {
|
|
3982
3983
|
if (typeof t == "number")
|
|
3983
3984
|
return t;
|
|
3984
|
-
if (
|
|
3985
|
-
return
|
|
3985
|
+
if (Da(t))
|
|
3986
|
+
return Yn;
|
|
3986
3987
|
if (yi(t)) {
|
|
3987
3988
|
var e = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
3988
3989
|
t = yi(e) ? e + "" : e;
|
|
3989
3990
|
}
|
|
3990
3991
|
if (typeof t != "string")
|
|
3991
3992
|
return t === 0 ? t : +t;
|
|
3992
|
-
t = t.replace(
|
|
3993
|
-
var r =
|
|
3994
|
-
return r ||
|
|
3995
|
-
}
|
|
3996
|
-
var
|
|
3997
|
-
const
|
|
3998
|
-
var
|
|
3999
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
3993
|
+
t = t.replace($a, "");
|
|
3994
|
+
var r = Ea.test(t);
|
|
3995
|
+
return r || Sa.test(t) ? Ma(t.slice(2), r ? 2 : 8) : _a.test(t) ? Yn : +t;
|
|
3996
|
+
}
|
|
3997
|
+
var Na = ja;
|
|
3998
|
+
const Rs = /* @__PURE__ */ Ci(Na);
|
|
3999
|
+
var Ia = Object.defineProperty, qa = Object.getOwnPropertyDescriptor, js = (t, e, r, i) => {
|
|
4000
|
+
for (var n = i > 1 ? void 0 : i ? qa(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
4000
4001
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
4001
|
-
return i && n &&
|
|
4002
|
+
return i && n && Ia(e, r, n), n;
|
|
4002
4003
|
};
|
|
4003
4004
|
let mi = class extends _e {
|
|
4004
4005
|
constructor() {
|
|
4005
4006
|
super(...arguments), this.inputHandler = (t) => {
|
|
4006
4007
|
const [e, r] = t.detail.values;
|
|
4007
4008
|
(e !== this.filterObject.state.min || r != this.filterObject.state.max) && ([this.filterObject.state.min, this.filterObject.state.max] = [e, r], this.filterObject.dirty = !0), this.filterObject.dirty && (this.filterObject.stringifiedState = `${Lt(e)} - ${Lt(r)}`), this.dispatchEvent(new CustomEvent("filter")), this.requestUpdate();
|
|
4008
|
-
}, this.debouncedInputHandler =
|
|
4009
|
+
}, this.debouncedInputHandler = Rs(this.inputHandler, 0, {
|
|
4009
4010
|
leading: !0
|
|
4010
4011
|
});
|
|
4011
4012
|
}
|
|
@@ -4038,16 +4039,16 @@ let mi = class extends _e {
|
|
|
4038
4039
|
);
|
|
4039
4040
|
}
|
|
4040
4041
|
};
|
|
4041
|
-
|
|
4042
|
+
js([
|
|
4042
4043
|
G()
|
|
4043
4044
|
], mi.prototype, "filterObject", 2);
|
|
4044
|
-
mi =
|
|
4045
|
+
mi = js([
|
|
4045
4046
|
Re("eox-itemfilter-range")
|
|
4046
4047
|
], mi);
|
|
4047
|
-
var
|
|
4048
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
4048
|
+
var Ba = Object.defineProperty, Ua = Object.getOwnPropertyDescriptor, Nr = (t, e, r, i) => {
|
|
4049
|
+
for (var n = i > 1 ? void 0 : i ? Ua(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
4049
4050
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
4050
|
-
return i && n &&
|
|
4051
|
+
return i && n && Ba(e, r, n), n;
|
|
4051
4052
|
};
|
|
4052
4053
|
let ir = class extends _e {
|
|
4053
4054
|
constructor() {
|
|
@@ -4140,7 +4141,7 @@ var Se = 63710088e-1, Hi = {
|
|
|
4140
4141
|
nauticalmiles: Se / 1852,
|
|
4141
4142
|
radians: 1,
|
|
4142
4143
|
yards: Se * 1.0936
|
|
4143
|
-
},
|
|
4144
|
+
}, Ha = {
|
|
4144
4145
|
centimeters: 100,
|
|
4145
4146
|
centimetres: 100,
|
|
4146
4147
|
degrees: 1 / 111325,
|
|
@@ -4177,7 +4178,7 @@ function De(t, e, r) {
|
|
|
4177
4178
|
var i = { type: "Feature" };
|
|
4178
4179
|
return (r.id === 0 || r.id) && (i.id = r.id), r.bbox && (i.bbox = r.bbox), i.properties = e || {}, i.geometry = t, i;
|
|
4179
4180
|
}
|
|
4180
|
-
function
|
|
4181
|
+
function Fa(t, e, r) {
|
|
4181
4182
|
switch (t) {
|
|
4182
4183
|
case "Point":
|
|
4183
4184
|
return We(e).geometry;
|
|
@@ -4186,11 +4187,11 @@ function Dl(t, e, r) {
|
|
|
4186
4187
|
case "Polygon":
|
|
4187
4188
|
return Fi(e).geometry;
|
|
4188
4189
|
case "MultiPoint":
|
|
4189
|
-
return
|
|
4190
|
+
return Ts(e).geometry;
|
|
4190
4191
|
case "MultiLineString":
|
|
4191
4192
|
return zi(e).geometry;
|
|
4192
4193
|
case "MultiPolygon":
|
|
4193
|
-
return
|
|
4194
|
+
return Ds(e).geometry;
|
|
4194
4195
|
default:
|
|
4195
4196
|
throw new Error(t + " is invalid");
|
|
4196
4197
|
}
|
|
@@ -4210,7 +4211,7 @@ function We(t, e, r) {
|
|
|
4210
4211
|
};
|
|
4211
4212
|
return De(i, e, r);
|
|
4212
4213
|
}
|
|
4213
|
-
function
|
|
4214
|
+
function za(t, e, r) {
|
|
4214
4215
|
return r === void 0 && (r = {}), ct(t.map(function(i) {
|
|
4215
4216
|
return We(i, e);
|
|
4216
4217
|
}), r);
|
|
@@ -4225,13 +4226,13 @@ function Fi(t, e, r) {
|
|
|
4225
4226
|
if (s[s.length - 1][o] !== s[0][o])
|
|
4226
4227
|
throw new Error("First and last Position are not equivalent.");
|
|
4227
4228
|
}
|
|
4228
|
-
var
|
|
4229
|
+
var a = {
|
|
4229
4230
|
type: "Polygon",
|
|
4230
4231
|
coordinates: t
|
|
4231
4232
|
};
|
|
4232
|
-
return De(
|
|
4233
|
+
return De(a, e, r);
|
|
4233
4234
|
}
|
|
4234
|
-
function
|
|
4235
|
+
function Wa(t, e, r) {
|
|
4235
4236
|
return r === void 0 && (r = {}), ct(t.map(function(i) {
|
|
4236
4237
|
return Fi(i, e);
|
|
4237
4238
|
}), r);
|
|
@@ -4245,7 +4246,7 @@ function qe(t, e, r) {
|
|
|
4245
4246
|
};
|
|
4246
4247
|
return De(i, e, r);
|
|
4247
4248
|
}
|
|
4248
|
-
function
|
|
4249
|
+
function Ya(t, e, r) {
|
|
4249
4250
|
return r === void 0 && (r = {}), ct(t.map(function(i) {
|
|
4250
4251
|
return qe(i, e);
|
|
4251
4252
|
}), r);
|
|
@@ -4263,7 +4264,7 @@ function zi(t, e, r) {
|
|
|
4263
4264
|
};
|
|
4264
4265
|
return De(i, e, r);
|
|
4265
4266
|
}
|
|
4266
|
-
function
|
|
4267
|
+
function Ts(t, e, r) {
|
|
4267
4268
|
r === void 0 && (r = {});
|
|
4268
4269
|
var i = {
|
|
4269
4270
|
type: "MultiPoint",
|
|
@@ -4271,7 +4272,7 @@ function Rs(t, e, r) {
|
|
|
4271
4272
|
};
|
|
4272
4273
|
return De(i, e, r);
|
|
4273
4274
|
}
|
|
4274
|
-
function
|
|
4275
|
+
function Ds(t, e, r) {
|
|
4275
4276
|
r === void 0 && (r = {});
|
|
4276
4277
|
var i = {
|
|
4277
4278
|
type: "MultiPolygon",
|
|
@@ -4279,7 +4280,7 @@ function js(t, e, r) {
|
|
|
4279
4280
|
};
|
|
4280
4281
|
return De(i, e, r);
|
|
4281
4282
|
}
|
|
4282
|
-
function
|
|
4283
|
+
function Xa(t, e, r) {
|
|
4283
4284
|
r === void 0 && (r = {});
|
|
4284
4285
|
var i = {
|
|
4285
4286
|
type: "GeometryCollection",
|
|
@@ -4287,13 +4288,13 @@ function Bl(t, e, r) {
|
|
|
4287
4288
|
};
|
|
4288
4289
|
return De(i, e, r);
|
|
4289
4290
|
}
|
|
4290
|
-
function
|
|
4291
|
+
function Va(t, e) {
|
|
4291
4292
|
if (e === void 0 && (e = 0), e && !(e >= 0))
|
|
4292
4293
|
throw new Error("precision must be a positive number");
|
|
4293
4294
|
var r = Math.pow(10, e || 0);
|
|
4294
4295
|
return Math.round(t * r) / r;
|
|
4295
4296
|
}
|
|
4296
|
-
function
|
|
4297
|
+
function Ns(t, e) {
|
|
4297
4298
|
e === void 0 && (e = "kilometers");
|
|
4298
4299
|
var r = Hi[e];
|
|
4299
4300
|
if (!r)
|
|
@@ -4307,27 +4308,27 @@ function Wi(t, e) {
|
|
|
4307
4308
|
throw new Error(e + " units is invalid");
|
|
4308
4309
|
return t / r;
|
|
4309
4310
|
}
|
|
4310
|
-
function
|
|
4311
|
-
return
|
|
4311
|
+
function Ka(t, e) {
|
|
4312
|
+
return Is(Wi(t, e));
|
|
4312
4313
|
}
|
|
4313
|
-
function
|
|
4314
|
+
function Ja(t) {
|
|
4314
4315
|
var e = t % 360;
|
|
4315
4316
|
return e < 0 && (e += 360), e;
|
|
4316
4317
|
}
|
|
4317
|
-
function
|
|
4318
|
+
function Is(t) {
|
|
4318
4319
|
var e = t % (2 * Math.PI);
|
|
4319
4320
|
return e * 180 / Math.PI;
|
|
4320
4321
|
}
|
|
4321
|
-
function
|
|
4322
|
+
function Za(t) {
|
|
4322
4323
|
var e = t % 360;
|
|
4323
4324
|
return e * Math.PI / 180;
|
|
4324
4325
|
}
|
|
4325
|
-
function
|
|
4326
|
+
function Ga(t, e, r) {
|
|
4326
4327
|
if (e === void 0 && (e = "kilometers"), r === void 0 && (r = "kilometers"), !(t >= 0))
|
|
4327
4328
|
throw new Error("length must be a positive number");
|
|
4328
|
-
return
|
|
4329
|
+
return Ns(Wi(t, e), r);
|
|
4329
4330
|
}
|
|
4330
|
-
function
|
|
4331
|
+
function Qa(t, e, r) {
|
|
4331
4332
|
if (e === void 0 && (e = "meters"), r === void 0 && (r = "kilometers"), !(t >= 0))
|
|
4332
4333
|
throw new Error("area must be a positive number");
|
|
4333
4334
|
var i = vi[e];
|
|
@@ -4344,7 +4345,7 @@ function kr(t) {
|
|
|
4344
4345
|
function Yi(t) {
|
|
4345
4346
|
return !!t && t.constructor === Object;
|
|
4346
4347
|
}
|
|
4347
|
-
function
|
|
4348
|
+
function ec(t) {
|
|
4348
4349
|
if (!t)
|
|
4349
4350
|
throw new Error("bbox is required");
|
|
4350
4351
|
if (!Array.isArray(t))
|
|
@@ -4356,46 +4357,46 @@ function Xl(t) {
|
|
|
4356
4357
|
throw new Error("bbox must only contain numbers");
|
|
4357
4358
|
});
|
|
4358
4359
|
}
|
|
4359
|
-
function
|
|
4360
|
+
function tc(t) {
|
|
4360
4361
|
if (!t)
|
|
4361
4362
|
throw new Error("id is required");
|
|
4362
4363
|
if (["string", "number"].indexOf(typeof t) === -1)
|
|
4363
4364
|
throw new Error("id must be a number or a string");
|
|
4364
4365
|
}
|
|
4365
|
-
const
|
|
4366
|
+
const rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4366
4367
|
__proto__: null,
|
|
4367
4368
|
areaFactors: vi,
|
|
4368
|
-
bearingToAzimuth:
|
|
4369
|
-
convertArea:
|
|
4370
|
-
convertLength:
|
|
4371
|
-
degreesToRadians:
|
|
4369
|
+
bearingToAzimuth: Ja,
|
|
4370
|
+
convertArea: Qa,
|
|
4371
|
+
convertLength: Ga,
|
|
4372
|
+
degreesToRadians: Za,
|
|
4372
4373
|
earthRadius: Se,
|
|
4373
4374
|
factors: Hi,
|
|
4374
4375
|
feature: De,
|
|
4375
4376
|
featureCollection: ct,
|
|
4376
|
-
geometry:
|
|
4377
|
-
geometryCollection:
|
|
4377
|
+
geometry: Fa,
|
|
4378
|
+
geometryCollection: Xa,
|
|
4378
4379
|
isNumber: kr,
|
|
4379
4380
|
isObject: Yi,
|
|
4380
|
-
lengthToDegrees:
|
|
4381
|
+
lengthToDegrees: Ka,
|
|
4381
4382
|
lengthToRadians: Wi,
|
|
4382
4383
|
lineString: qe,
|
|
4383
|
-
lineStrings:
|
|
4384
|
+
lineStrings: Ya,
|
|
4384
4385
|
multiLineString: zi,
|
|
4385
|
-
multiPoint:
|
|
4386
|
-
multiPolygon:
|
|
4386
|
+
multiPoint: Ts,
|
|
4387
|
+
multiPolygon: Ds,
|
|
4387
4388
|
point: We,
|
|
4388
|
-
points:
|
|
4389
|
+
points: za,
|
|
4389
4390
|
polygon: Fi,
|
|
4390
|
-
polygons:
|
|
4391
|
-
radiansToDegrees:
|
|
4392
|
-
radiansToLength:
|
|
4393
|
-
round:
|
|
4394
|
-
unitsFactors:
|
|
4395
|
-
validateBBox:
|
|
4396
|
-
validateId:
|
|
4391
|
+
polygons: Wa,
|
|
4392
|
+
radiansToDegrees: Is,
|
|
4393
|
+
radiansToLength: Ns,
|
|
4394
|
+
round: Va,
|
|
4395
|
+
unitsFactors: Ha,
|
|
4396
|
+
validateBBox: ec,
|
|
4397
|
+
validateId: tc
|
|
4397
4398
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4398
|
-
function
|
|
4399
|
+
function qs(t) {
|
|
4399
4400
|
if (!t)
|
|
4400
4401
|
throw new Error("coord is required");
|
|
4401
4402
|
if (!Array.isArray(t)) {
|
|
@@ -4426,48 +4427,48 @@ function Te(t, e, r) {
|
|
|
4426
4427
|
throw new Error("point is required");
|
|
4427
4428
|
if (!e)
|
|
4428
4429
|
throw new Error("polygon is required");
|
|
4429
|
-
var i =
|
|
4430
|
-
if (o &&
|
|
4430
|
+
var i = qs(t), n = Nt(e), s = n.type, o = e.bbox, a = n.coordinates;
|
|
4431
|
+
if (o && ic(i, o) === !1)
|
|
4431
4432
|
return !1;
|
|
4432
|
-
s === "Polygon" && (
|
|
4433
|
-
for (var
|
|
4434
|
-
if (
|
|
4435
|
-
for (var p = !1, g = 1; g <
|
|
4436
|
-
|
|
4437
|
-
p || (
|
|
4433
|
+
s === "Polygon" && (a = [a]);
|
|
4434
|
+
for (var l = !1, h = 0; h < a.length && !l; h++)
|
|
4435
|
+
if (Vn(i, a[h][0], r.ignoreBoundary)) {
|
|
4436
|
+
for (var p = !1, g = 1; g < a[h].length && !p; )
|
|
4437
|
+
Vn(i, a[h][g], !r.ignoreBoundary) && (p = !0), g++;
|
|
4438
|
+
p || (l = !0);
|
|
4438
4439
|
}
|
|
4439
|
-
return
|
|
4440
|
+
return l;
|
|
4440
4441
|
}
|
|
4441
|
-
function
|
|
4442
|
+
function Vn(t, e, r) {
|
|
4442
4443
|
var i = !1;
|
|
4443
4444
|
e[0][0] === e[e.length - 1][0] && e[0][1] === e[e.length - 1][1] && (e = e.slice(0, e.length - 1));
|
|
4444
4445
|
for (var n = 0, s = e.length - 1; n < e.length; s = n++) {
|
|
4445
|
-
var o = e[n][0],
|
|
4446
|
+
var o = e[n][0], a = e[n][1], l = e[s][0], h = e[s][1], p = 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;
|
|
4446
4447
|
if (p)
|
|
4447
4448
|
return !r;
|
|
4448
|
-
var g =
|
|
4449
|
+
var g = a > t[1] != h > t[1] && t[0] < (l - o) * (t[1] - a) / (h - a) + o;
|
|
4449
4450
|
g && (i = !i);
|
|
4450
4451
|
}
|
|
4451
4452
|
return i;
|
|
4452
4453
|
}
|
|
4453
|
-
function
|
|
4454
|
+
function ic(t, e) {
|
|
4454
4455
|
return e[0] <= t[0] && e[1] <= t[1] && e[2] >= t[0] && e[3] >= t[1];
|
|
4455
4456
|
}
|
|
4456
4457
|
function Ut(t, e, r) {
|
|
4457
4458
|
if (t !== null)
|
|
4458
|
-
for (var i, n, s, o,
|
|
4459
|
-
h = _ ? t.features[I].geometry : k ? t.geometry : t, b = h ? h.type === "GeometryCollection" : !1,
|
|
4460
|
-
for (var f = 0; f <
|
|
4459
|
+
for (var i, n, s, o, a, l, h, p = 0, g = 0, b, m = t.type, _ = m === "FeatureCollection", k = m === "Feature", z = _ ? t.features.length : 1, I = 0; I < z; I++) {
|
|
4460
|
+
h = _ ? t.features[I].geometry : k ? t.geometry : t, b = h ? h.type === "GeometryCollection" : !1, a = b ? h.geometries.length : 1;
|
|
4461
|
+
for (var f = 0; f < a; f++) {
|
|
4461
4462
|
var y = 0, w = 0;
|
|
4462
4463
|
if (o = b ? h.geometries[f] : h, o !== null) {
|
|
4463
|
-
|
|
4464
|
+
l = o.coordinates;
|
|
4464
4465
|
var E = o.type;
|
|
4465
4466
|
switch (p = r && (E === "Polygon" || E === "MultiPolygon") ? 1 : 0, E) {
|
|
4466
4467
|
case null:
|
|
4467
4468
|
break;
|
|
4468
4469
|
case "Point":
|
|
4469
4470
|
if (e(
|
|
4470
|
-
|
|
4471
|
+
l,
|
|
4471
4472
|
g,
|
|
4472
4473
|
I,
|
|
4473
4474
|
y,
|
|
@@ -4478,9 +4479,9 @@ function Ut(t, e, r) {
|
|
|
4478
4479
|
break;
|
|
4479
4480
|
case "LineString":
|
|
4480
4481
|
case "MultiPoint":
|
|
4481
|
-
for (i = 0; i <
|
|
4482
|
+
for (i = 0; i < l.length; i++) {
|
|
4482
4483
|
if (e(
|
|
4483
|
-
|
|
4484
|
+
l[i],
|
|
4484
4485
|
g,
|
|
4485
4486
|
I,
|
|
4486
4487
|
y,
|
|
@@ -4493,10 +4494,10 @@ function Ut(t, e, r) {
|
|
|
4493
4494
|
break;
|
|
4494
4495
|
case "Polygon":
|
|
4495
4496
|
case "MultiLineString":
|
|
4496
|
-
for (i = 0; i <
|
|
4497
|
-
for (n = 0; n <
|
|
4497
|
+
for (i = 0; i < l.length; i++) {
|
|
4498
|
+
for (n = 0; n < l[i].length - p; n++) {
|
|
4498
4499
|
if (e(
|
|
4499
|
-
|
|
4500
|
+
l[i][n],
|
|
4500
4501
|
g,
|
|
4501
4502
|
I,
|
|
4502
4503
|
y,
|
|
@@ -4510,11 +4511,11 @@ function Ut(t, e, r) {
|
|
|
4510
4511
|
E === "Polygon" && y++;
|
|
4511
4512
|
break;
|
|
4512
4513
|
case "MultiPolygon":
|
|
4513
|
-
for (i = 0; i <
|
|
4514
|
-
for (w = 0, n = 0; n <
|
|
4515
|
-
for (s = 0; s <
|
|
4514
|
+
for (i = 0; i < l.length; i++) {
|
|
4515
|
+
for (w = 0, n = 0; n < l[i].length; n++) {
|
|
4516
|
+
for (s = 0; s < l[i][n].length - p; s++) {
|
|
4516
4517
|
if (e(
|
|
4517
|
-
|
|
4518
|
+
l[i][n][s],
|
|
4518
4519
|
g,
|
|
4519
4520
|
I,
|
|
4520
4521
|
y,
|
|
@@ -4540,24 +4541,24 @@ function Ut(t, e, r) {
|
|
|
4540
4541
|
}
|
|
4541
4542
|
}
|
|
4542
4543
|
}
|
|
4543
|
-
function
|
|
4544
|
+
function nc(t, e, r, i) {
|
|
4544
4545
|
var n = r;
|
|
4545
4546
|
return Ut(
|
|
4546
4547
|
t,
|
|
4547
|
-
function(s, o,
|
|
4548
|
+
function(s, o, a, l, h) {
|
|
4548
4549
|
o === 0 && r === void 0 ? n = s : n = e(
|
|
4549
4550
|
n,
|
|
4550
4551
|
s,
|
|
4551
4552
|
o,
|
|
4552
|
-
l,
|
|
4553
4553
|
a,
|
|
4554
|
+
l,
|
|
4554
4555
|
h
|
|
4555
4556
|
);
|
|
4556
4557
|
},
|
|
4557
4558
|
i
|
|
4558
4559
|
), n;
|
|
4559
4560
|
}
|
|
4560
|
-
function
|
|
4561
|
+
function Bs(t, e) {
|
|
4561
4562
|
var r;
|
|
4562
4563
|
switch (t.type) {
|
|
4563
4564
|
case "FeatureCollection":
|
|
@@ -4569,9 +4570,9 @@ function Is(t, e) {
|
|
|
4569
4570
|
break;
|
|
4570
4571
|
}
|
|
4571
4572
|
}
|
|
4572
|
-
function
|
|
4573
|
+
function sc(t, e, r) {
|
|
4573
4574
|
var i = r;
|
|
4574
|
-
return
|
|
4575
|
+
return Bs(t, function(n, s) {
|
|
4575
4576
|
s === 0 && r === void 0 ? i = n : i = e(i, n, s);
|
|
4576
4577
|
}), i;
|
|
4577
4578
|
}
|
|
@@ -4582,23 +4583,23 @@ function Or(t, e) {
|
|
|
4582
4583
|
for (var r = 0; r < t.features.length && e(t.features[r], r) !== !1; r++)
|
|
4583
4584
|
;
|
|
4584
4585
|
}
|
|
4585
|
-
function
|
|
4586
|
+
function oc(t, e, r) {
|
|
4586
4587
|
var i = r;
|
|
4587
4588
|
return Or(t, function(n, s) {
|
|
4588
4589
|
s === 0 && r === void 0 ? i = n : i = e(i, n, s);
|
|
4589
4590
|
}), i;
|
|
4590
4591
|
}
|
|
4591
|
-
function
|
|
4592
|
+
function lc(t) {
|
|
4592
4593
|
var e = [];
|
|
4593
4594
|
return Ut(t, function(r) {
|
|
4594
4595
|
e.push(r);
|
|
4595
4596
|
}), e;
|
|
4596
4597
|
}
|
|
4597
4598
|
function Xi(t, e) {
|
|
4598
|
-
var r, i, n, s, o,
|
|
4599
|
+
var r, i, n, s, o, a, l, h, p, g, b = 0, m = t.type === "FeatureCollection", _ = t.type === "Feature", k = m ? t.features.length : 1;
|
|
4599
4600
|
for (r = 0; r < k; r++) {
|
|
4600
|
-
for (
|
|
4601
|
-
if (s =
|
|
4601
|
+
for (a = m ? t.features[r].geometry : _ ? t.geometry : t, h = m ? t.features[r].properties : _ ? t.properties : {}, p = m ? t.features[r].bbox : _ ? t.bbox : void 0, g = m ? 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++) {
|
|
4602
|
+
if (s = l ? a.geometries[n] : a, s === null) {
|
|
4602
4603
|
if (e(
|
|
4603
4604
|
null,
|
|
4604
4605
|
b,
|
|
@@ -4645,26 +4646,26 @@ function Xi(t, e) {
|
|
|
4645
4646
|
b++;
|
|
4646
4647
|
}
|
|
4647
4648
|
}
|
|
4648
|
-
function
|
|
4649
|
+
function ac(t, e, r) {
|
|
4649
4650
|
var i = r;
|
|
4650
4651
|
return Xi(
|
|
4651
4652
|
t,
|
|
4652
|
-
function(n, s, o,
|
|
4653
|
+
function(n, s, o, a, l) {
|
|
4653
4654
|
s === 0 && r === void 0 ? i = n : i = e(
|
|
4654
4655
|
i,
|
|
4655
4656
|
n,
|
|
4656
4657
|
s,
|
|
4657
4658
|
o,
|
|
4658
|
-
|
|
4659
|
-
|
|
4659
|
+
a,
|
|
4660
|
+
l
|
|
4660
4661
|
);
|
|
4661
4662
|
}
|
|
4662
4663
|
), i;
|
|
4663
4664
|
}
|
|
4664
4665
|
function et(t, e) {
|
|
4665
4666
|
Xi(t, function(r, i, n, s, o) {
|
|
4666
|
-
var
|
|
4667
|
-
switch (
|
|
4667
|
+
var a = r === null ? null : r.type;
|
|
4668
|
+
switch (a) {
|
|
4668
4669
|
case null:
|
|
4669
4670
|
case "Point":
|
|
4670
4671
|
case "LineString":
|
|
@@ -4675,21 +4676,21 @@ function et(t, e) {
|
|
|
4675
4676
|
0
|
|
4676
4677
|
) === !1 ? !1 : void 0;
|
|
4677
4678
|
}
|
|
4678
|
-
var
|
|
4679
|
-
switch (
|
|
4679
|
+
var l;
|
|
4680
|
+
switch (a) {
|
|
4680
4681
|
case "MultiPoint":
|
|
4681
|
-
|
|
4682
|
+
l = "Point";
|
|
4682
4683
|
break;
|
|
4683
4684
|
case "MultiLineString":
|
|
4684
|
-
|
|
4685
|
+
l = "LineString";
|
|
4685
4686
|
break;
|
|
4686
4687
|
case "MultiPolygon":
|
|
4687
|
-
|
|
4688
|
+
l = "Polygon";
|
|
4688
4689
|
break;
|
|
4689
4690
|
}
|
|
4690
4691
|
for (var h = 0; h < r.coordinates.length; h++) {
|
|
4691
4692
|
var p = r.coordinates[h], g = {
|
|
4692
|
-
type:
|
|
4693
|
+
type: l,
|
|
4693
4694
|
coordinates: p
|
|
4694
4695
|
};
|
|
4695
4696
|
if (e(De(g, n), i, h) === !1)
|
|
@@ -4697,7 +4698,7 @@ function et(t, e) {
|
|
|
4697
4698
|
}
|
|
4698
4699
|
});
|
|
4699
4700
|
}
|
|
4700
|
-
function
|
|
4701
|
+
function cc(t, e, r) {
|
|
4701
4702
|
var i = r;
|
|
4702
4703
|
return et(
|
|
4703
4704
|
t,
|
|
@@ -4711,22 +4712,22 @@ function rc(t, e, r) {
|
|
|
4711
4712
|
}
|
|
4712
4713
|
), i;
|
|
4713
4714
|
}
|
|
4714
|
-
function
|
|
4715
|
+
function Us(t, e) {
|
|
4715
4716
|
et(t, function(r, i, n) {
|
|
4716
4717
|
var s = 0;
|
|
4717
4718
|
if (r.geometry) {
|
|
4718
4719
|
var o = r.geometry.type;
|
|
4719
4720
|
if (!(o === "Point" || o === "MultiPoint")) {
|
|
4720
|
-
var
|
|
4721
|
+
var a, l = 0, h = 0, p = 0;
|
|
4721
4722
|
if (Ut(
|
|
4722
4723
|
r,
|
|
4723
4724
|
function(g, b, m, _, k) {
|
|
4724
|
-
if (
|
|
4725
|
-
|
|
4725
|
+
if (a === void 0 || i > l || _ > h || k > p) {
|
|
4726
|
+
a = g, l = i, h = _, p = k, s = 0;
|
|
4726
4727
|
return;
|
|
4727
4728
|
}
|
|
4728
4729
|
var z = qe(
|
|
4729
|
-
[
|
|
4730
|
+
[a, g],
|
|
4730
4731
|
r.properties
|
|
4731
4732
|
);
|
|
4732
4733
|
if (e(
|
|
@@ -4737,7 +4738,7 @@ function qs(t, e) {
|
|
|
4737
4738
|
s
|
|
4738
4739
|
) === !1)
|
|
4739
4740
|
return !1;
|
|
4740
|
-
s++,
|
|
4741
|
+
s++, a = g;
|
|
4741
4742
|
}
|
|
4742
4743
|
) === !1)
|
|
4743
4744
|
return !1;
|
|
@@ -4745,23 +4746,23 @@ function qs(t, e) {
|
|
|
4745
4746
|
}
|
|
4746
4747
|
});
|
|
4747
4748
|
}
|
|
4748
|
-
function
|
|
4749
|
+
function hc(t, e, r) {
|
|
4749
4750
|
var i = r, n = !1;
|
|
4750
|
-
return
|
|
4751
|
+
return Us(
|
|
4751
4752
|
t,
|
|
4752
|
-
function(s, o,
|
|
4753
|
+
function(s, o, a, l, h) {
|
|
4753
4754
|
n === !1 && r === void 0 ? i = s : i = e(
|
|
4754
4755
|
i,
|
|
4755
4756
|
s,
|
|
4756
4757
|
o,
|
|
4757
|
-
l,
|
|
4758
4758
|
a,
|
|
4759
|
+
l,
|
|
4759
4760
|
h
|
|
4760
4761
|
), n = !0;
|
|
4761
4762
|
}
|
|
4762
4763
|
), i;
|
|
4763
4764
|
}
|
|
4764
|
-
function
|
|
4765
|
+
function Hs(t, e) {
|
|
4765
4766
|
if (!t)
|
|
4766
4767
|
throw new Error("geojson is required");
|
|
4767
4768
|
et(t, function(r, i, n) {
|
|
@@ -4773,12 +4774,12 @@ function Bs(t, e) {
|
|
|
4773
4774
|
return !1;
|
|
4774
4775
|
break;
|
|
4775
4776
|
case "Polygon":
|
|
4776
|
-
for (var
|
|
4777
|
+
for (var a = 0; a < o.length; a++)
|
|
4777
4778
|
if (e(
|
|
4778
|
-
qe(o[
|
|
4779
|
+
qe(o[a], r.properties),
|
|
4779
4780
|
i,
|
|
4780
4781
|
n,
|
|
4781
|
-
|
|
4782
|
+
a
|
|
4782
4783
|
) === !1)
|
|
4783
4784
|
return !1;
|
|
4784
4785
|
break;
|
|
@@ -4786,31 +4787,31 @@ function Bs(t, e) {
|
|
|
4786
4787
|
}
|
|
4787
4788
|
});
|
|
4788
4789
|
}
|
|
4789
|
-
function
|
|
4790
|
+
function uc(t, e, r) {
|
|
4790
4791
|
var i = r;
|
|
4791
|
-
return
|
|
4792
|
+
return Hs(
|
|
4792
4793
|
t,
|
|
4793
|
-
function(n, s, o,
|
|
4794
|
+
function(n, s, o, a) {
|
|
4794
4795
|
s === 0 && r === void 0 ? i = n : i = e(
|
|
4795
4796
|
i,
|
|
4796
4797
|
n,
|
|
4797
4798
|
s,
|
|
4798
4799
|
o,
|
|
4799
|
-
|
|
4800
|
+
a
|
|
4800
4801
|
);
|
|
4801
4802
|
}
|
|
4802
4803
|
), i;
|
|
4803
4804
|
}
|
|
4804
|
-
function
|
|
4805
|
+
function dc(t, e) {
|
|
4805
4806
|
if (e = e || {}, !Yi(e))
|
|
4806
4807
|
throw new Error("options is invalid");
|
|
4807
|
-
var r = e.featureIndex || 0, i = e.multiFeatureIndex || 0, n = e.geometryIndex || 0, s = e.segmentIndex || 0, o = e.properties,
|
|
4808
|
+
var r = e.featureIndex || 0, i = e.multiFeatureIndex || 0, n = e.geometryIndex || 0, s = e.segmentIndex || 0, o = e.properties, a;
|
|
4808
4809
|
switch (t.type) {
|
|
4809
4810
|
case "FeatureCollection":
|
|
4810
|
-
r < 0 && (r = t.features.length + r), o = o || t.features[r].properties,
|
|
4811
|
+
r < 0 && (r = t.features.length + r), o = o || t.features[r].properties, a = t.features[r].geometry;
|
|
4811
4812
|
break;
|
|
4812
4813
|
case "Feature":
|
|
4813
|
-
o = o || t.properties,
|
|
4814
|
+
o = o || t.properties, a = t.geometry;
|
|
4814
4815
|
break;
|
|
4815
4816
|
case "Point":
|
|
4816
4817
|
case "MultiPoint":
|
|
@@ -4819,47 +4820,47 @@ function sc(t, e) {
|
|
|
4819
4820
|
case "Polygon":
|
|
4820
4821
|
case "MultiLineString":
|
|
4821
4822
|
case "MultiPolygon":
|
|
4822
|
-
|
|
4823
|
+
a = t;
|
|
4823
4824
|
break;
|
|
4824
4825
|
default:
|
|
4825
4826
|
throw new Error("geojson is invalid");
|
|
4826
4827
|
}
|
|
4827
|
-
if (
|
|
4828
|
+
if (a === null)
|
|
4828
4829
|
return null;
|
|
4829
|
-
var
|
|
4830
|
-
switch (
|
|
4830
|
+
var l = a.coordinates;
|
|
4831
|
+
switch (a.type) {
|
|
4831
4832
|
case "Point":
|
|
4832
4833
|
case "MultiPoint":
|
|
4833
4834
|
return null;
|
|
4834
4835
|
case "LineString":
|
|
4835
|
-
return s < 0 && (s =
|
|
4836
|
-
[
|
|
4836
|
+
return s < 0 && (s = l.length + s - 1), qe(
|
|
4837
|
+
[l[s], l[s + 1]],
|
|
4837
4838
|
o,
|
|
4838
4839
|
e
|
|
4839
4840
|
);
|
|
4840
4841
|
case "Polygon":
|
|
4841
|
-
return n < 0 && (n =
|
|
4842
|
+
return n < 0 && (n = l.length + n), s < 0 && (s = l[n].length + s - 1), qe(
|
|
4842
4843
|
[
|
|
4843
|
-
|
|
4844
|
-
|
|
4844
|
+
l[n][s],
|
|
4845
|
+
l[n][s + 1]
|
|
4845
4846
|
],
|
|
4846
4847
|
o,
|
|
4847
4848
|
e
|
|
4848
4849
|
);
|
|
4849
4850
|
case "MultiLineString":
|
|
4850
|
-
return i < 0 && (i =
|
|
4851
|
+
return i < 0 && (i = l.length + i), s < 0 && (s = l[i].length + s - 1), qe(
|
|
4851
4852
|
[
|
|
4852
|
-
|
|
4853
|
-
|
|
4853
|
+
l[i][s],
|
|
4854
|
+
l[i][s + 1]
|
|
4854
4855
|
],
|
|
4855
4856
|
o,
|
|
4856
4857
|
e
|
|
4857
4858
|
);
|
|
4858
4859
|
case "MultiPolygon":
|
|
4859
|
-
return i < 0 && (i =
|
|
4860
|
+
return i < 0 && (i = l.length + i), n < 0 && (n = l[i].length + n), s < 0 && (s = l[i][n].length - s - 1), qe(
|
|
4860
4861
|
[
|
|
4861
|
-
|
|
4862
|
-
|
|
4862
|
+
l[i][n][s],
|
|
4863
|
+
l[i][n][s + 1]
|
|
4863
4864
|
],
|
|
4864
4865
|
o,
|
|
4865
4866
|
e
|
|
@@ -4867,16 +4868,16 @@ function sc(t, e) {
|
|
|
4867
4868
|
}
|
|
4868
4869
|
throw new Error("geojson is invalid");
|
|
4869
4870
|
}
|
|
4870
|
-
function
|
|
4871
|
+
function pc(t, e) {
|
|
4871
4872
|
if (e = e || {}, !Yi(e))
|
|
4872
4873
|
throw new Error("options is invalid");
|
|
4873
|
-
var r = e.featureIndex || 0, i = e.multiFeatureIndex || 0, n = e.geometryIndex || 0, s = e.coordIndex || 0, o = e.properties,
|
|
4874
|
+
var r = e.featureIndex || 0, i = e.multiFeatureIndex || 0, n = e.geometryIndex || 0, s = e.coordIndex || 0, o = e.properties, a;
|
|
4874
4875
|
switch (t.type) {
|
|
4875
4876
|
case "FeatureCollection":
|
|
4876
|
-
r < 0 && (r = t.features.length + r), o = o || t.features[r].properties,
|
|
4877
|
+
r < 0 && (r = t.features.length + r), o = o || t.features[r].properties, a = t.features[r].geometry;
|
|
4877
4878
|
break;
|
|
4878
4879
|
case "Feature":
|
|
4879
|
-
o = o || t.properties,
|
|
4880
|
+
o = o || t.properties, a = t.geometry;
|
|
4880
4881
|
break;
|
|
4881
4882
|
case "Point":
|
|
4882
4883
|
case "MultiPoint":
|
|
@@ -4885,63 +4886,63 @@ function oc(t, e) {
|
|
|
4885
4886
|
case "Polygon":
|
|
4886
4887
|
case "MultiLineString":
|
|
4887
4888
|
case "MultiPolygon":
|
|
4888
|
-
|
|
4889
|
+
a = t;
|
|
4889
4890
|
break;
|
|
4890
4891
|
default:
|
|
4891
4892
|
throw new Error("geojson is invalid");
|
|
4892
4893
|
}
|
|
4893
|
-
if (
|
|
4894
|
+
if (a === null)
|
|
4894
4895
|
return null;
|
|
4895
|
-
var
|
|
4896
|
-
switch (
|
|
4896
|
+
var l = a.coordinates;
|
|
4897
|
+
switch (a.type) {
|
|
4897
4898
|
case "Point":
|
|
4898
|
-
return We(
|
|
4899
|
+
return We(l, o, e);
|
|
4899
4900
|
case "MultiPoint":
|
|
4900
|
-
return i < 0 && (i =
|
|
4901
|
+
return i < 0 && (i = l.length + i), We(l[i], o, e);
|
|
4901
4902
|
case "LineString":
|
|
4902
|
-
return s < 0 && (s =
|
|
4903
|
+
return s < 0 && (s = l.length + s), We(l[s], o, e);
|
|
4903
4904
|
case "Polygon":
|
|
4904
|
-
return n < 0 && (n =
|
|
4905
|
+
return n < 0 && (n = l.length + n), s < 0 && (s = l[n].length + s), We(l[n][s], o, e);
|
|
4905
4906
|
case "MultiLineString":
|
|
4906
|
-
return i < 0 && (i =
|
|
4907
|
+
return i < 0 && (i = l.length + i), s < 0 && (s = l[i].length + s), We(l[i][s], o, e);
|
|
4907
4908
|
case "MultiPolygon":
|
|
4908
|
-
return i < 0 && (i =
|
|
4909
|
-
|
|
4909
|
+
return i < 0 && (i = l.length + i), n < 0 && (n = l[i].length + n), s < 0 && (s = l[i][n].length - s), We(
|
|
4910
|
+
l[i][n][s],
|
|
4910
4911
|
o,
|
|
4911
4912
|
e
|
|
4912
4913
|
);
|
|
4913
4914
|
}
|
|
4914
4915
|
throw new Error("geojson is invalid");
|
|
4915
4916
|
}
|
|
4916
|
-
const
|
|
4917
|
+
const fc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4917
4918
|
__proto__: null,
|
|
4918
|
-
coordAll:
|
|
4919
|
+
coordAll: lc,
|
|
4919
4920
|
coordEach: Ut,
|
|
4920
|
-
coordReduce:
|
|
4921
|
+
coordReduce: nc,
|
|
4921
4922
|
featureEach: Or,
|
|
4922
|
-
featureReduce:
|
|
4923
|
-
findPoint:
|
|
4924
|
-
findSegment:
|
|
4923
|
+
featureReduce: oc,
|
|
4924
|
+
findPoint: pc,
|
|
4925
|
+
findSegment: dc,
|
|
4925
4926
|
flattenEach: et,
|
|
4926
|
-
flattenReduce:
|
|
4927
|
+
flattenReduce: cc,
|
|
4927
4928
|
geomEach: Xi,
|
|
4928
|
-
geomReduce:
|
|
4929
|
-
lineEach:
|
|
4930
|
-
lineReduce:
|
|
4931
|
-
propEach:
|
|
4932
|
-
propReduce:
|
|
4933
|
-
segmentEach:
|
|
4934
|
-
segmentReduce:
|
|
4929
|
+
geomReduce: ac,
|
|
4930
|
+
lineEach: Hs,
|
|
4931
|
+
lineReduce: uc,
|
|
4932
|
+
propEach: Bs,
|
|
4933
|
+
propReduce: sc,
|
|
4934
|
+
segmentEach: Us,
|
|
4935
|
+
segmentReduce: hc
|
|
4935
4936
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4936
|
-
function
|
|
4937
|
+
function Kn(t) {
|
|
4937
4938
|
if (!t)
|
|
4938
4939
|
throw new Error("geojson is required");
|
|
4939
4940
|
var e = [];
|
|
4940
4941
|
return et(t, function(r) {
|
|
4941
|
-
|
|
4942
|
+
gc(r, e);
|
|
4942
4943
|
}), ct(e);
|
|
4943
4944
|
}
|
|
4944
|
-
function
|
|
4945
|
+
function gc(t, e) {
|
|
4945
4946
|
var r = [], i = t.geometry;
|
|
4946
4947
|
if (i !== null) {
|
|
4947
4948
|
switch (i.type) {
|
|
@@ -4952,25 +4953,25 @@ function lc(t, e) {
|
|
|
4952
4953
|
r = [Dt(i)];
|
|
4953
4954
|
}
|
|
4954
4955
|
r.forEach(function(n) {
|
|
4955
|
-
var s =
|
|
4956
|
+
var s = yc(n, t.properties);
|
|
4956
4957
|
s.forEach(function(o) {
|
|
4957
4958
|
o.id = e.length, e.push(o);
|
|
4958
4959
|
});
|
|
4959
4960
|
});
|
|
4960
4961
|
}
|
|
4961
4962
|
}
|
|
4962
|
-
function
|
|
4963
|
+
function yc(t, e) {
|
|
4963
4964
|
var r = [];
|
|
4964
4965
|
return t.reduce(function(i, n) {
|
|
4965
4966
|
var s = qe([i, n], e);
|
|
4966
|
-
return s.bbox =
|
|
4967
|
+
return s.bbox = mc(i, n), r.push(s), n;
|
|
4967
4968
|
}), r;
|
|
4968
4969
|
}
|
|
4969
|
-
function
|
|
4970
|
-
var r = t[0], i = t[1], n = e[0], s = e[1], o = r < n ? r : n,
|
|
4971
|
-
return [o,
|
|
4970
|
+
function mc(t, e) {
|
|
4971
|
+
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;
|
|
4972
|
+
return [o, a, l, h];
|
|
4972
4973
|
}
|
|
4973
|
-
var Vi = { exports: {} },
|
|
4974
|
+
var Vi = { exports: {} }, Fs = { exports: {} };
|
|
4974
4975
|
(function(t, e) {
|
|
4975
4976
|
(function(r, i) {
|
|
4976
4977
|
t.exports = i();
|
|
@@ -5011,10 +5012,10 @@ var Vi = { exports: {} }, Us = { exports: {} };
|
|
|
5011
5012
|
return E;
|
|
5012
5013
|
return -1;
|
|
5013
5014
|
}
|
|
5014
|
-
function
|
|
5015
|
-
|
|
5015
|
+
function a(f, y) {
|
|
5016
|
+
l(f, 0, f.children.length, y, f);
|
|
5016
5017
|
}
|
|
5017
|
-
function
|
|
5018
|
+
function l(f, y, w, E, S) {
|
|
5018
5019
|
S || (S = z(null)), S.minX = 1 / 0, S.minY = 1 / 0, S.maxX = -1 / 0, S.maxY = -1 / 0;
|
|
5019
5020
|
for (var M = y; M < w; M++) {
|
|
5020
5021
|
var L = f.children[M];
|
|
@@ -5138,7 +5139,7 @@ var Vi = { exports: {} }, Us = { exports: {} };
|
|
|
5138
5139
|
}, s.prototype._build = function(f, y, w, E) {
|
|
5139
5140
|
var S, M = w - y + 1, L = this._maxEntries;
|
|
5140
5141
|
if (M <= L)
|
|
5141
|
-
return
|
|
5142
|
+
return a(S = z(f.slice(y, w + 1)), this.toBBox), S;
|
|
5142
5143
|
E || (E = Math.ceil(Math.log(M) / Math.log(L)), L = Math.ceil(M / Math.pow(L, E - 1))), (S = z([])).leaf = !1, S.height = E;
|
|
5143
5144
|
var B = Math.ceil(M / L), U = B * Math.ceil(Math.sqrt(L));
|
|
5144
5145
|
I(f, y, w, U, this.compareMinX);
|
|
@@ -5150,7 +5151,7 @@ var Vi = { exports: {} }, Us = { exports: {} };
|
|
|
5150
5151
|
S.children.push(this._build(f, Z, C, E - 1));
|
|
5151
5152
|
}
|
|
5152
5153
|
}
|
|
5153
|
-
return
|
|
5154
|
+
return a(S, this.toBBox), S;
|
|
5154
5155
|
}, s.prototype._chooseSubtree = function(f, y, w, E) {
|
|
5155
5156
|
for (; E.push(y), !y.leaf && E.length - 1 !== w; ) {
|
|
5156
5157
|
for (var S = 1 / 0, M = 1 / 0, L = void 0, B = 0; B < y.children.length; B++) {
|
|
@@ -5170,12 +5171,12 @@ var Vi = { exports: {} }, Us = { exports: {} };
|
|
|
5170
5171
|
var w = f[y], E = w.children.length, S = this._minEntries;
|
|
5171
5172
|
this._chooseSplitAxis(w, S, E);
|
|
5172
5173
|
var M = this._chooseSplitIndex(w, S, E), L = z(w.children.splice(M, w.children.length - M));
|
|
5173
|
-
L.height = w.height, L.leaf = w.leaf,
|
|
5174
|
+
L.height = w.height, L.leaf = w.leaf, a(w, this.toBBox), a(L, this.toBBox), y ? f[y - 1].children.push(L) : this._splitRoot(w, L);
|
|
5174
5175
|
}, s.prototype._splitRoot = function(f, y) {
|
|
5175
|
-
this.data = z([f, y]), this.data.height = f.height + 1, this.data.leaf = !1,
|
|
5176
|
+
this.data = z([f, y]), this.data.height = f.height + 1, this.data.leaf = !1, a(this.data, this.toBBox);
|
|
5176
5177
|
}, s.prototype._chooseSplitIndex = function(f, y, w) {
|
|
5177
5178
|
for (var E, S, M, L, B, U, T, re = 1 / 0, Z = 1 / 0, C = y; C <= w - y; C++) {
|
|
5178
|
-
var O =
|
|
5179
|
+
var O = l(f, 0, C, this.toBBox), A = l(f, C, w, this.toBBox), N = (S = O, M = A, L = void 0, B = void 0, U = void 0, T = void 0, L = Math.max(S.minX, M.minX), B = Math.max(S.minY, M.minY), U = Math.min(S.maxX, M.maxX), T = Math.min(S.maxY, M.maxY), Math.max(0, U - L) * Math.max(0, T - B)), P = b(O) + b(A);
|
|
5179
5180
|
N < re ? (re = N, E = C, Z = P < Z ? P : Z) : N === re && P < Z && (Z = P, E = C);
|
|
5180
5181
|
}
|
|
5181
5182
|
return E || w - y;
|
|
@@ -5184,7 +5185,7 @@ var Vi = { exports: {} }, Us = { exports: {} };
|
|
|
5184
5185
|
this._allDistMargin(f, y, w, E) < this._allDistMargin(f, y, w, S) && f.children.sort(E);
|
|
5185
5186
|
}, s.prototype._allDistMargin = function(f, y, w, E) {
|
|
5186
5187
|
f.children.sort(E);
|
|
5187
|
-
for (var S = this.toBBox, M =
|
|
5188
|
+
for (var S = this.toBBox, M = l(f, 0, y, S), L = l(f, w - y, w, S), B = m(M) + m(L), U = y; U < w - y; U++) {
|
|
5188
5189
|
var T = f.children[U];
|
|
5189
5190
|
h(M, f.leaf ? S(T) : T), B += m(M);
|
|
5190
5191
|
}
|
|
@@ -5198,12 +5199,12 @@ var Vi = { exports: {} }, Us = { exports: {} };
|
|
|
5198
5199
|
h(y[E], f);
|
|
5199
5200
|
}, s.prototype._condense = function(f) {
|
|
5200
5201
|
for (var y = f.length - 1, w = void 0; y >= 0; y--)
|
|
5201
|
-
f[y].children.length === 0 ? y > 0 ? (w = f[y - 1].children).splice(w.indexOf(f[y]), 1) : this.clear() :
|
|
5202
|
+
f[y].children.length === 0 ? y > 0 ? (w = f[y - 1].children).splice(w.indexOf(f[y]), 1) : this.clear() : a(f[y], this.toBBox);
|
|
5202
5203
|
}, s;
|
|
5203
5204
|
});
|
|
5204
|
-
})(
|
|
5205
|
-
var
|
|
5206
|
-
const
|
|
5205
|
+
})(Fs);
|
|
5206
|
+
var vc = Fs.exports;
|
|
5207
|
+
const bc = /* @__PURE__ */ Ri(rc), xc = /* @__PURE__ */ Ri(fc);
|
|
5207
5208
|
function $t(t) {
|
|
5208
5209
|
var e = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
5209
5210
|
return Ut(t, function(r) {
|
|
@@ -5211,15 +5212,15 @@ function $t(t) {
|
|
|
5211
5212
|
}), e;
|
|
5212
5213
|
}
|
|
5213
5214
|
$t.default = $t;
|
|
5214
|
-
const
|
|
5215
|
+
const wc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5215
5216
|
__proto__: null,
|
|
5216
5217
|
default: $t
|
|
5217
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5218
|
-
var ze =
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
var
|
|
5222
|
-
function
|
|
5218
|
+
}, Symbol.toStringTag, { value: "Module" })), $c = /* @__PURE__ */ Ri(wc);
|
|
5219
|
+
var ze = vc, zs = bc, Ws = xc, At = $c.default, _c = Ws.featureEach;
|
|
5220
|
+
Ws.coordEach;
|
|
5221
|
+
zs.polygon;
|
|
5222
|
+
var Jn = zs.featureCollection;
|
|
5223
|
+
function Ys(t) {
|
|
5223
5224
|
var e = new ze(t);
|
|
5224
5225
|
return e.insert = function(r) {
|
|
5225
5226
|
if (r.type !== "Feature")
|
|
@@ -5231,7 +5232,7 @@ function zs(t) {
|
|
|
5231
5232
|
if (n.type !== "Feature")
|
|
5232
5233
|
throw new Error("invalid features");
|
|
5233
5234
|
n.bbox = n.bbox ? n.bbox : At(n), i.push(n);
|
|
5234
|
-
}) :
|
|
5235
|
+
}) : _c(r, function(n) {
|
|
5235
5236
|
if (n.type !== "Feature")
|
|
5236
5237
|
throw new Error("invalid features");
|
|
5237
5238
|
n.bbox = n.bbox ? n.bbox : At(n), i.push(n);
|
|
@@ -5244,12 +5245,12 @@ function zs(t) {
|
|
|
5244
5245
|
return ze.prototype.clear.call(this);
|
|
5245
5246
|
}, e.search = function(r) {
|
|
5246
5247
|
var i = ze.prototype.search.call(this, this.toBBox(r));
|
|
5247
|
-
return
|
|
5248
|
+
return Jn(i);
|
|
5248
5249
|
}, e.collides = function(r) {
|
|
5249
5250
|
return ze.prototype.collides.call(this, this.toBBox(r));
|
|
5250
5251
|
}, e.all = function() {
|
|
5251
5252
|
var r = ze.prototype.all.call(this);
|
|
5252
|
-
return
|
|
5253
|
+
return Jn(r);
|
|
5253
5254
|
}, e.toJSON = function() {
|
|
5254
5255
|
return ze.prototype.toJSON.call(this);
|
|
5255
5256
|
}, e.fromJSON = function(r) {
|
|
@@ -5276,39 +5277,39 @@ function zs(t) {
|
|
|
5276
5277
|
};
|
|
5277
5278
|
}, e;
|
|
5278
5279
|
}
|
|
5279
|
-
Vi.exports =
|
|
5280
|
-
Vi.exports.default =
|
|
5281
|
-
var
|
|
5282
|
-
const
|
|
5280
|
+
Vi.exports = Ys;
|
|
5281
|
+
Vi.exports.default = Ys;
|
|
5282
|
+
var Ec = Vi.exports;
|
|
5283
|
+
const Sc = /* @__PURE__ */ Ci(Ec);
|
|
5283
5284
|
function Ki(t, e) {
|
|
5284
5285
|
var r = {}, i = [];
|
|
5285
5286
|
if (t.type === "LineString" && (t = De(t)), e.type === "LineString" && (e = De(e)), t.type === "Feature" && e.type === "Feature" && t.geometry !== null && e.geometry !== null && t.geometry.type === "LineString" && e.geometry.type === "LineString" && t.geometry.coordinates.length === 2 && e.geometry.coordinates.length === 2) {
|
|
5286
|
-
var n =
|
|
5287
|
+
var n = Zn(t, e);
|
|
5287
5288
|
return n && i.push(n), ct(i);
|
|
5288
5289
|
}
|
|
5289
|
-
var s =
|
|
5290
|
-
return s.load(
|
|
5291
|
-
Or(s.search(o), function(
|
|
5292
|
-
var
|
|
5293
|
-
if (
|
|
5294
|
-
var h = Dt(
|
|
5295
|
-
r[h] || (r[h] = !0, i.push(
|
|
5290
|
+
var s = Sc();
|
|
5291
|
+
return s.load(Kn(e)), Or(Kn(t), function(o) {
|
|
5292
|
+
Or(s.search(o), function(a) {
|
|
5293
|
+
var l = Zn(o, a);
|
|
5294
|
+
if (l) {
|
|
5295
|
+
var h = Dt(l).join(",");
|
|
5296
|
+
r[h] || (r[h] = !0, i.push(l));
|
|
5296
5297
|
}
|
|
5297
5298
|
});
|
|
5298
5299
|
}), ct(i);
|
|
5299
5300
|
}
|
|
5300
|
-
function
|
|
5301
|
+
function Zn(t, e) {
|
|
5301
5302
|
var r = Dt(t), i = Dt(e);
|
|
5302
5303
|
if (r.length !== 2)
|
|
5303
5304
|
throw new Error("<intersects> line1 must only contain 2 coordinates");
|
|
5304
5305
|
if (i.length !== 2)
|
|
5305
5306
|
throw new Error("<intersects> line2 must only contain 2 coordinates");
|
|
5306
|
-
var n = r[0][0], s = r[0][1], o = r[1][0],
|
|
5307
|
+
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], p = i[1][0], g = i[1][1], b = (g - h) * (o - n) - (p - l) * (a - s), m = (p - l) * (s - h) - (g - h) * (n - l), _ = (o - n) * (s - h) - (a - s) * (n - l);
|
|
5307
5308
|
if (b === 0)
|
|
5308
5309
|
return null;
|
|
5309
5310
|
var k = m / b, z = _ / b;
|
|
5310
5311
|
if (k >= 0 && k <= 1 && z >= 0 && z <= 1) {
|
|
5311
|
-
var I = n + k * (o - n), f = s + k * (
|
|
5312
|
+
var I = n + k * (o - n), f = s + k * (a - s);
|
|
5312
5313
|
return We([I, f]);
|
|
5313
5314
|
}
|
|
5314
5315
|
return null;
|
|
@@ -5318,46 +5319,46 @@ function bi(t, e) {
|
|
|
5318
5319
|
var r = Nt(t);
|
|
5319
5320
|
switch (!e.properties && t.type === "Feature" && (e.properties = t.properties), r.type) {
|
|
5320
5321
|
case "Polygon":
|
|
5321
|
-
return
|
|
5322
|
+
return Mc(r, e);
|
|
5322
5323
|
case "MultiPolygon":
|
|
5323
|
-
return
|
|
5324
|
+
return Ac(r, e);
|
|
5324
5325
|
default:
|
|
5325
5326
|
throw new Error("invalid poly");
|
|
5326
5327
|
}
|
|
5327
5328
|
}
|
|
5328
|
-
function
|
|
5329
|
+
function Mc(t, e) {
|
|
5329
5330
|
e === void 0 && (e = {});
|
|
5330
5331
|
var r = Nt(t), i = r.coordinates, n = e.properties ? e.properties : t.type === "Feature" ? t.properties : {};
|
|
5331
|
-
return
|
|
5332
|
+
return Xs(i, n);
|
|
5332
5333
|
}
|
|
5333
|
-
function
|
|
5334
|
+
function Ac(t, e) {
|
|
5334
5335
|
e === void 0 && (e = {});
|
|
5335
5336
|
var r = Nt(t), i = r.coordinates, n = e.properties ? e.properties : t.type === "Feature" ? t.properties : {}, s = [];
|
|
5336
5337
|
return i.forEach(function(o) {
|
|
5337
|
-
s.push(
|
|
5338
|
+
s.push(Xs(o, n));
|
|
5338
5339
|
}), ct(s);
|
|
5339
5340
|
}
|
|
5340
|
-
function
|
|
5341
|
+
function Xs(t, e) {
|
|
5341
5342
|
return t.length > 1 ? zi(t, e) : qe(t[0], e);
|
|
5342
5343
|
}
|
|
5343
|
-
function
|
|
5344
|
+
function kc(t, e) {
|
|
5344
5345
|
var r = !0;
|
|
5345
5346
|
return et(t, function(i) {
|
|
5346
5347
|
et(e, function(n) {
|
|
5347
5348
|
if (r === !1)
|
|
5348
5349
|
return !1;
|
|
5349
|
-
r =
|
|
5350
|
+
r = Oc(i.geometry, n.geometry);
|
|
5350
5351
|
});
|
|
5351
5352
|
}), r;
|
|
5352
5353
|
}
|
|
5353
|
-
function
|
|
5354
|
+
function Oc(t, e) {
|
|
5354
5355
|
switch (t.type) {
|
|
5355
5356
|
case "Point":
|
|
5356
5357
|
switch (e.type) {
|
|
5357
5358
|
case "Point":
|
|
5358
|
-
return !
|
|
5359
|
+
return !Rc(t.coordinates, e.coordinates);
|
|
5359
5360
|
case "LineString":
|
|
5360
|
-
return !
|
|
5361
|
+
return !Gn(e, t);
|
|
5361
5362
|
case "Polygon":
|
|
5362
5363
|
return !Te(t, e);
|
|
5363
5364
|
}
|
|
@@ -5365,11 +5366,11 @@ function $c(t, e) {
|
|
|
5365
5366
|
case "LineString":
|
|
5366
5367
|
switch (e.type) {
|
|
5367
5368
|
case "Point":
|
|
5368
|
-
return !
|
|
5369
|
+
return !Gn(t, e);
|
|
5369
5370
|
case "LineString":
|
|
5370
|
-
return !
|
|
5371
|
+
return !Pc(t, e);
|
|
5371
5372
|
case "Polygon":
|
|
5372
|
-
return !
|
|
5373
|
+
return !Qn(e, t);
|
|
5373
5374
|
}
|
|
5374
5375
|
break;
|
|
5375
5376
|
case "Polygon":
|
|
@@ -5377,24 +5378,24 @@ function $c(t, e) {
|
|
|
5377
5378
|
case "Point":
|
|
5378
5379
|
return !Te(e, t);
|
|
5379
5380
|
case "LineString":
|
|
5380
|
-
return !
|
|
5381
|
+
return !Qn(t, e);
|
|
5381
5382
|
case "Polygon":
|
|
5382
|
-
return !
|
|
5383
|
+
return !Lc(e, t);
|
|
5383
5384
|
}
|
|
5384
5385
|
}
|
|
5385
5386
|
return !1;
|
|
5386
5387
|
}
|
|
5387
|
-
function
|
|
5388
|
+
function Gn(t, e) {
|
|
5388
5389
|
for (var r = 0; r < t.coordinates.length - 1; r++)
|
|
5389
|
-
if (
|
|
5390
|
+
if (Cc(t.coordinates[r], t.coordinates[r + 1], e.coordinates))
|
|
5390
5391
|
return !0;
|
|
5391
5392
|
return !1;
|
|
5392
5393
|
}
|
|
5393
|
-
function
|
|
5394
|
+
function Pc(t, e) {
|
|
5394
5395
|
var r = Ki(t, e);
|
|
5395
5396
|
return r.features.length > 0;
|
|
5396
5397
|
}
|
|
5397
|
-
function
|
|
5398
|
+
function Qn(t, e) {
|
|
5398
5399
|
for (var r = 0, i = e.coordinates; r < i.length; r++) {
|
|
5399
5400
|
var n = i[r];
|
|
5400
5401
|
if (Te(n, t))
|
|
@@ -5403,48 +5404,48 @@ function Zn(t, e) {
|
|
|
5403
5404
|
var s = Ki(e, bi(t));
|
|
5404
5405
|
return s.features.length > 0;
|
|
5405
5406
|
}
|
|
5406
|
-
function
|
|
5407
|
+
function Lc(t, e) {
|
|
5407
5408
|
for (var r = 0, i = t.coordinates[0]; r < i.length; r++) {
|
|
5408
5409
|
var n = i[r];
|
|
5409
5410
|
if (Te(n, e))
|
|
5410
5411
|
return !0;
|
|
5411
5412
|
}
|
|
5412
5413
|
for (var s = 0, o = e.coordinates[0]; s < o.length; s++) {
|
|
5413
|
-
var
|
|
5414
|
-
if (Te(
|
|
5414
|
+
var a = o[s];
|
|
5415
|
+
if (Te(a, t))
|
|
5415
5416
|
return !0;
|
|
5416
5417
|
}
|
|
5417
|
-
var
|
|
5418
|
-
return
|
|
5418
|
+
var l = Ki(bi(t), bi(e));
|
|
5419
|
+
return l.features.length > 0;
|
|
5419
5420
|
}
|
|
5420
|
-
function
|
|
5421
|
-
var i = r[0] - t[0], n = r[1] - t[1], s = e[0] - t[0], o = e[1] - t[1],
|
|
5422
|
-
return
|
|
5421
|
+
function Cc(t, e, r) {
|
|
5422
|
+
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;
|
|
5423
|
+
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];
|
|
5423
5424
|
}
|
|
5424
|
-
function
|
|
5425
|
+
function Rc(t, e) {
|
|
5425
5426
|
return t[0] === e[0] && t[1] === e[1];
|
|
5426
5427
|
}
|
|
5427
|
-
function
|
|
5428
|
+
function jc(t, e) {
|
|
5428
5429
|
var r = !1;
|
|
5429
5430
|
return et(t, function(i) {
|
|
5430
5431
|
et(e, function(n) {
|
|
5431
5432
|
if (r === !0)
|
|
5432
5433
|
return !0;
|
|
5433
|
-
r = !
|
|
5434
|
+
r = !kc(i.geometry, n.geometry);
|
|
5434
5435
|
});
|
|
5435
5436
|
}), r;
|
|
5436
5437
|
}
|
|
5437
5438
|
function Pr(t, e, r) {
|
|
5438
5439
|
r === void 0 && (r = {});
|
|
5439
|
-
for (var i =
|
|
5440
|
+
for (var i = qs(t), n = Dt(e), s = 0; s < n.length - 1; s++) {
|
|
5440
5441
|
var o = !1;
|
|
5441
|
-
if (r.ignoreEndVertices && (s === 0 && (o = "start"), s === n.length - 2 && (o = "end"), s === 0 && s + 1 === n.length - 1 && (o = "both")),
|
|
5442
|
+
if (r.ignoreEndVertices && (s === 0 && (o = "start"), s === n.length - 2 && (o = "end"), s === 0 && s + 1 === n.length - 1 && (o = "both")), Tc(n[s], n[s + 1], i, o, typeof r.epsilon > "u" ? null : r.epsilon))
|
|
5442
5443
|
return !0;
|
|
5443
5444
|
}
|
|
5444
5445
|
return !1;
|
|
5445
5446
|
}
|
|
5446
|
-
function
|
|
5447
|
-
var s = r[0], o = r[1],
|
|
5447
|
+
function Tc(t, e, r, i, n) {
|
|
5448
|
+
var s = r[0], o = r[1], a = t[0], l = t[1], h = e[0], p = e[1], g = r[0] - a, b = r[1] - l, m = h - a, _ = p - l, k = g * _ - b * m;
|
|
5448
5449
|
if (n !== null) {
|
|
5449
5450
|
if (Math.abs(k) > n)
|
|
5450
5451
|
return !1;
|
|
@@ -5452,22 +5453,22 @@ function kc(t, e, r, i, n) {
|
|
|
5452
5453
|
return !1;
|
|
5453
5454
|
if (i) {
|
|
5454
5455
|
if (i === "start")
|
|
5455
|
-
return Math.abs(m) >= Math.abs(_) ? m > 0 ?
|
|
5456
|
+
return Math.abs(m) >= Math.abs(_) ? m > 0 ? a < s && s <= h : h <= s && s < a : _ > 0 ? l < o && o <= p : p <= o && o < l;
|
|
5456
5457
|
if (i === "end")
|
|
5457
|
-
return Math.abs(m) >= Math.abs(_) ? m > 0 ?
|
|
5458
|
+
return Math.abs(m) >= Math.abs(_) ? m > 0 ? a <= s && s < h : h < s && s <= a : _ > 0 ? l <= o && o < p : p < o && o <= l;
|
|
5458
5459
|
if (i === "both")
|
|
5459
|
-
return Math.abs(m) >= Math.abs(_) ? m > 0 ?
|
|
5460
|
+
return Math.abs(m) >= Math.abs(_) ? m > 0 ? a < s && s < h : h < s && s < a : _ > 0 ? l < o && o < p : p < o && o < l;
|
|
5460
5461
|
} else
|
|
5461
|
-
return Math.abs(m) >= Math.abs(_) ? m > 0 ?
|
|
5462
|
+
return Math.abs(m) >= Math.abs(_) ? m > 0 ? a <= s && s <= h : h <= s && s <= a : _ > 0 ? l <= o && o <= p : p <= o && o <= l;
|
|
5462
5463
|
return !1;
|
|
5463
5464
|
}
|
|
5464
|
-
function
|
|
5465
|
+
function Dc(t, e) {
|
|
5465
5466
|
var r = Nt(t), i = Nt(e), n = r.type, s = i.type;
|
|
5466
5467
|
switch (n) {
|
|
5467
5468
|
case "Point":
|
|
5468
5469
|
switch (s) {
|
|
5469
5470
|
case "MultiPoint":
|
|
5470
|
-
return
|
|
5471
|
+
return Nc(r, i);
|
|
5471
5472
|
case "LineString":
|
|
5472
5473
|
return Pr(r, i, { ignoreEndVertices: !0 });
|
|
5473
5474
|
case "Polygon":
|
|
@@ -5479,22 +5480,22 @@ function Oc(t, e) {
|
|
|
5479
5480
|
case "MultiPoint":
|
|
5480
5481
|
switch (s) {
|
|
5481
5482
|
case "MultiPoint":
|
|
5482
|
-
return
|
|
5483
|
+
return Ic(r, i);
|
|
5483
5484
|
case "LineString":
|
|
5484
|
-
return
|
|
5485
|
+
return qc(r, i);
|
|
5485
5486
|
case "Polygon":
|
|
5486
5487
|
case "MultiPolygon":
|
|
5487
|
-
return
|
|
5488
|
+
return Bc(r, i);
|
|
5488
5489
|
default:
|
|
5489
5490
|
throw new Error("feature2 " + s + " geometry not supported");
|
|
5490
5491
|
}
|
|
5491
5492
|
case "LineString":
|
|
5492
5493
|
switch (s) {
|
|
5493
5494
|
case "LineString":
|
|
5494
|
-
return
|
|
5495
|
+
return Uc(r, i);
|
|
5495
5496
|
case "Polygon":
|
|
5496
5497
|
case "MultiPolygon":
|
|
5497
|
-
return
|
|
5498
|
+
return Hc(r, i);
|
|
5498
5499
|
default:
|
|
5499
5500
|
throw new Error("feature2 " + s + " geometry not supported");
|
|
5500
5501
|
}
|
|
@@ -5502,7 +5503,7 @@ function Oc(t, e) {
|
|
|
5502
5503
|
switch (s) {
|
|
5503
5504
|
case "Polygon":
|
|
5504
5505
|
case "MultiPolygon":
|
|
5505
|
-
return
|
|
5506
|
+
return Fc(r, i);
|
|
5506
5507
|
default:
|
|
5507
5508
|
throw new Error("feature2 " + s + " geometry not supported");
|
|
5508
5509
|
}
|
|
@@ -5510,25 +5511,25 @@ function Oc(t, e) {
|
|
|
5510
5511
|
throw new Error("feature1 " + n + " geometry not supported");
|
|
5511
5512
|
}
|
|
5512
5513
|
}
|
|
5513
|
-
function
|
|
5514
|
+
function Nc(t, e) {
|
|
5514
5515
|
var r, i = !1;
|
|
5515
5516
|
for (r = 0; r < e.coordinates.length; r++)
|
|
5516
|
-
if (
|
|
5517
|
+
if (Ks(e.coordinates[r], t.coordinates)) {
|
|
5517
5518
|
i = !0;
|
|
5518
5519
|
break;
|
|
5519
5520
|
}
|
|
5520
5521
|
return i;
|
|
5521
5522
|
}
|
|
5522
|
-
function
|
|
5523
|
+
function Ic(t, e) {
|
|
5523
5524
|
for (var r = 0; r < t.coordinates.length; r++) {
|
|
5524
5525
|
for (var i = !1, n = 0; n < e.coordinates.length; n++)
|
|
5525
|
-
|
|
5526
|
+
Ks(t.coordinates[r], e.coordinates[n]) && (i = !0);
|
|
5526
5527
|
if (!i)
|
|
5527
5528
|
return !1;
|
|
5528
5529
|
}
|
|
5529
5530
|
return !0;
|
|
5530
5531
|
}
|
|
5531
|
-
function
|
|
5532
|
+
function qc(t, e) {
|
|
5532
5533
|
for (var r = !1, i = 0; i < t.coordinates.length; i++) {
|
|
5533
5534
|
if (!Pr(t.coordinates[i], e))
|
|
5534
5535
|
return !1;
|
|
@@ -5536,7 +5537,7 @@ function Cc(t, e) {
|
|
|
5536
5537
|
}
|
|
5537
5538
|
return r;
|
|
5538
5539
|
}
|
|
5539
|
-
function
|
|
5540
|
+
function Bc(t, e) {
|
|
5540
5541
|
for (var r = !0, i = !1, n = 0; n < t.coordinates.length; n++) {
|
|
5541
5542
|
if (i = Te(t.coordinates[1], e), !i) {
|
|
5542
5543
|
r = !1;
|
|
@@ -5548,21 +5549,21 @@ function Rc(t, e) {
|
|
|
5548
5549
|
}
|
|
5549
5550
|
return r && i;
|
|
5550
5551
|
}
|
|
5551
|
-
function
|
|
5552
|
+
function Uc(t, e) {
|
|
5552
5553
|
for (var r = 0; r < t.coordinates.length; r++)
|
|
5553
5554
|
if (!Pr(t.coordinates[r], e))
|
|
5554
5555
|
return !1;
|
|
5555
5556
|
return !0;
|
|
5556
5557
|
}
|
|
5557
|
-
function
|
|
5558
|
+
function Hc(t, e) {
|
|
5558
5559
|
var r = $t(e), i = $t(t);
|
|
5559
|
-
if (!
|
|
5560
|
+
if (!Vs(r, i))
|
|
5560
5561
|
return !1;
|
|
5561
5562
|
for (var n = !1, s = 0; s < t.coordinates.length - 1; s++) {
|
|
5562
5563
|
if (!Te(t.coordinates[s], e))
|
|
5563
5564
|
return !1;
|
|
5564
5565
|
if (n || (n = Te(t.coordinates[s], e, { ignoreBoundary: !0 })), !n) {
|
|
5565
|
-
var o =
|
|
5566
|
+
var o = zc(t.coordinates[s], t.coordinates[s + 1]);
|
|
5566
5567
|
n = Te(o, e, {
|
|
5567
5568
|
ignoreBoundary: !0
|
|
5568
5569
|
});
|
|
@@ -5570,30 +5571,30 @@ function Tc(t, e) {
|
|
|
5570
5571
|
}
|
|
5571
5572
|
return n;
|
|
5572
5573
|
}
|
|
5573
|
-
function
|
|
5574
|
+
function Fc(t, e) {
|
|
5574
5575
|
var r = $t(t), i = $t(e);
|
|
5575
|
-
if (!
|
|
5576
|
+
if (!Vs(i, r))
|
|
5576
5577
|
return !1;
|
|
5577
5578
|
for (var n = 0; n < t.coordinates[0].length; n++)
|
|
5578
5579
|
if (!Te(t.coordinates[0][n], e))
|
|
5579
5580
|
return !1;
|
|
5580
5581
|
return !0;
|
|
5581
5582
|
}
|
|
5582
|
-
function
|
|
5583
|
+
function Vs(t, e) {
|
|
5583
5584
|
return !(t[0] > e[0] || t[2] < e[2] || t[1] > e[1] || t[3] < e[3]);
|
|
5584
5585
|
}
|
|
5585
|
-
function
|
|
5586
|
+
function Ks(t, e) {
|
|
5586
5587
|
return t[0] === e[0] && t[1] === e[1];
|
|
5587
5588
|
}
|
|
5588
|
-
function
|
|
5589
|
+
function zc(t, e) {
|
|
5589
5590
|
return [(t[0] + e[0]) / 2, (t[1] + e[1]) / 2];
|
|
5590
5591
|
}
|
|
5591
|
-
var
|
|
5592
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
5592
|
+
var Wc = Object.defineProperty, Yc = Object.getOwnPropertyDescriptor, or = (t, e, r, i) => {
|
|
5593
|
+
for (var n = i > 1 ? void 0 : i ? Yc(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5593
5594
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
5594
|
-
return i && n &&
|
|
5595
|
+
return i && n && Wc(e, r, n), n;
|
|
5595
5596
|
};
|
|
5596
|
-
const
|
|
5597
|
+
const Xc = (t, e) => e ? jc(t, e) : !0, Vc = (t, e) => e ? Dc(t, e) : !0;
|
|
5597
5598
|
let xi = class extends _e {
|
|
5598
5599
|
reset() {
|
|
5599
5600
|
qt(this.filterObject), this.renderRoot.querySelector(
|
|
@@ -5618,7 +5619,7 @@ let xi = class extends _e {
|
|
|
5618
5619
|
<input
|
|
5619
5620
|
type="radio"
|
|
5620
5621
|
name="mode"
|
|
5621
|
-
.checked="${this.filterObject.state.mode === e ||
|
|
5622
|
+
.checked="${this.filterObject.state.mode === e || le}
|
|
5622
5623
|
"
|
|
5623
5624
|
value="${e}"
|
|
5624
5625
|
@click="${() => {
|
|
@@ -5752,10 +5753,10 @@ or([
|
|
|
5752
5753
|
Lr = or([
|
|
5753
5754
|
Re("eox-itemfilter-spatial-filter")
|
|
5754
5755
|
], Lr);
|
|
5755
|
-
var
|
|
5756
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
5756
|
+
var Kc = Object.defineProperty, Jc = Object.getOwnPropertyDescriptor, Js = (t, e, r, i) => {
|
|
5757
|
+
for (var n = i > 1 ? void 0 : i ? Jc(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5757
5758
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
5758
|
-
return i && n &&
|
|
5759
|
+
return i && n && Kc(e, r, n), n;
|
|
5759
5760
|
};
|
|
5760
5761
|
let wi = class extends _e {
|
|
5761
5762
|
constructor() {
|
|
@@ -5764,7 +5765,7 @@ let wi = class extends _e {
|
|
|
5764
5765
|
this.filterObject.keys.forEach((e) => {
|
|
5765
5766
|
this.filterObject.state[e] = t.value;
|
|
5766
5767
|
}), this.filterObject.dirty = !0, this.filterObject.stringifiedState = t.value, this.dispatchEvent(new CustomEvent("filter"));
|
|
5767
|
-
}, this.debouncedInputHandler =
|
|
5768
|
+
}, this.debouncedInputHandler = Rs(this.inputHandler, 500, {
|
|
5768
5769
|
leading: !0
|
|
5769
5770
|
});
|
|
5770
5771
|
}
|
|
@@ -5800,16 +5801,16 @@ let wi = class extends _e {
|
|
|
5800
5801
|
);
|
|
5801
5802
|
}
|
|
5802
5803
|
};
|
|
5803
|
-
|
|
5804
|
+
Js([
|
|
5804
5805
|
G()
|
|
5805
5806
|
], wi.prototype, "filterObject", 2);
|
|
5806
|
-
wi =
|
|
5807
|
+
wi = Js([
|
|
5807
5808
|
Re("eox-itemfilter-text")
|
|
5808
5809
|
], wi);
|
|
5809
|
-
var
|
|
5810
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
5810
|
+
var Zc = Object.defineProperty, Gc = Object.getOwnPropertyDescriptor, _t = (t, e, r, i) => {
|
|
5811
|
+
for (var n = i > 1 ? void 0 : i ? Gc(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
5811
5812
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
5812
|
-
return i && n &&
|
|
5813
|
+
return i && n && Zc(e, r, n), n;
|
|
5813
5814
|
};
|
|
5814
5815
|
let ht = class extends _e {
|
|
5815
5816
|
constructor() {
|
|
@@ -5825,11 +5826,11 @@ let ht = class extends _e {
|
|
|
5825
5826
|
var e, r, i, n, s, o;
|
|
5826
5827
|
if (this.clientHeight === 0)
|
|
5827
5828
|
return;
|
|
5828
|
-
const
|
|
5829
|
+
const a = this.items.find((g) => g._inProgress), l = a?.type === "text" && a?.dirty, h = this.renderRoot.querySelector(
|
|
5829
5830
|
"#inline-input"
|
|
5830
5831
|
), p = (o = (s = (n = (i = (r = (e = this.renderRoot) == null ? void 0 : e.querySelector("[data-filter]")) == null ? void 0 : r.querySelector("eox-autocomplete")) == null ? void 0 : i.renderRoot) == null ? void 0 : n.querySelector("eox-selectionlist")) == null ? void 0 : s.renderRoot) == null ? void 0 : o.querySelector("li.highlighted");
|
|
5831
|
-
if (t == "Enter" && p && h.selectionStart && (p.querySelector("input[type=checkbox]").dispatchEvent(new Event("change")), h.selectionStart = 0, h.value = "", h.focus()), ["Escape", "Space"].includes(t) || t == "Enter" &&
|
|
5832
|
-
|
|
5832
|
+
if (t == "Enter" && p && h.selectionStart && (p.querySelector("input[type=checkbox]").dispatchEvent(new Event("change")), h.selectionStart = 0, h.value = "", h.focus()), ["Escape", "Space"].includes(t) || t == "Enter" && l) {
|
|
5833
|
+
a && (delete a._inProgress, this.requestUpdate(), this.inputText = "", this.renderRoot.querySelector("input").value = "", this.renderRoot.querySelector("input").focus()), this.renderRoot.querySelector("[slot=content]").classList.remove("hidden");
|
|
5833
5834
|
return;
|
|
5834
5835
|
}
|
|
5835
5836
|
}
|
|
@@ -5854,7 +5855,7 @@ let ht = class extends _e {
|
|
|
5854
5855
|
.container {
|
|
5855
5856
|
display: flex;
|
|
5856
5857
|
}
|
|
5857
|
-
${this.unstyled ?
|
|
5858
|
+
${this.unstyled ? le : F`
|
|
5858
5859
|
${Ti} :host { position: relative; } .container { width: 100%;
|
|
5859
5860
|
position: relative; border: 1px solid #00417066; border-radius:
|
|
5860
5861
|
4px; height: 24px; padding: 5px; flex: 1; justify-content:
|
|
@@ -6018,32 +6019,32 @@ ht = _t([
|
|
|
6018
6019
|
Re("eox-itemfilter-inline")
|
|
6019
6020
|
], ht);
|
|
6020
6021
|
function tt(t) {
|
|
6021
|
-
return Array.isArray ? Array.isArray(t) :
|
|
6022
|
+
return Array.isArray ? Array.isArray(t) : Qs(t) === "[object Array]";
|
|
6022
6023
|
}
|
|
6023
|
-
const
|
|
6024
|
-
function
|
|
6024
|
+
const Qc = 1 / 0;
|
|
6025
|
+
function eh(t) {
|
|
6025
6026
|
if (typeof t == "string")
|
|
6026
6027
|
return t;
|
|
6027
6028
|
let e = t + "";
|
|
6028
|
-
return e == "0" && 1 / t == -
|
|
6029
|
+
return e == "0" && 1 / t == -Qc ? "-0" : e;
|
|
6029
6030
|
}
|
|
6030
|
-
function
|
|
6031
|
-
return t == null ? "" :
|
|
6031
|
+
function th(t) {
|
|
6032
|
+
return t == null ? "" : eh(t);
|
|
6032
6033
|
}
|
|
6033
6034
|
function Ye(t) {
|
|
6034
6035
|
return typeof t == "string";
|
|
6035
6036
|
}
|
|
6036
|
-
function
|
|
6037
|
+
function Zs(t) {
|
|
6037
6038
|
return typeof t == "number";
|
|
6038
6039
|
}
|
|
6039
|
-
function
|
|
6040
|
-
return t === !0 || t === !1 ||
|
|
6040
|
+
function rh(t) {
|
|
6041
|
+
return t === !0 || t === !1 || ih(t) && Qs(t) == "[object Boolean]";
|
|
6041
6042
|
}
|
|
6042
|
-
function
|
|
6043
|
+
function Gs(t) {
|
|
6043
6044
|
return typeof t == "object";
|
|
6044
6045
|
}
|
|
6045
|
-
function
|
|
6046
|
-
return
|
|
6046
|
+
function ih(t) {
|
|
6047
|
+
return Gs(t) && t !== null;
|
|
6047
6048
|
}
|
|
6048
6049
|
function Le(t) {
|
|
6049
6050
|
return t != null;
|
|
@@ -6051,16 +6052,16 @@ function Le(t) {
|
|
|
6051
6052
|
function pi(t) {
|
|
6052
6053
|
return !t.trim().length;
|
|
6053
6054
|
}
|
|
6054
|
-
function
|
|
6055
|
+
function Qs(t) {
|
|
6055
6056
|
return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(t);
|
|
6056
6057
|
}
|
|
6057
|
-
const
|
|
6058
|
-
class
|
|
6058
|
+
const nh = "Incorrect 'index' type", sh = (t) => `Invalid value for key ${t}`, oh = (t) => `Pattern length exceeds max of ${t}.`, lh = (t) => `Missing ${t} property in key`, ah = (t) => `Property 'weight' in key '${t}' must be a positive integer`, es = Object.prototype.hasOwnProperty;
|
|
6059
|
+
class ch {
|
|
6059
6060
|
constructor(e) {
|
|
6060
6061
|
this._keys = [], this._keyMap = {};
|
|
6061
6062
|
let r = 0;
|
|
6062
6063
|
e.forEach((i) => {
|
|
6063
|
-
let n =
|
|
6064
|
+
let n = eo(i);
|
|
6064
6065
|
this._keys.push(n), this._keyMap[n.id] = n, r += n.weight;
|
|
6065
6066
|
}), this._keys.forEach((i) => {
|
|
6066
6067
|
i.weight /= r;
|
|
@@ -6076,50 +6077,50 @@ class rh {
|
|
|
6076
6077
|
return JSON.stringify(this._keys);
|
|
6077
6078
|
}
|
|
6078
6079
|
}
|
|
6079
|
-
function
|
|
6080
|
+
function eo(t) {
|
|
6080
6081
|
let e = null, r = null, i = null, n = 1, s = null;
|
|
6081
6082
|
if (Ye(t) || tt(t))
|
|
6082
|
-
i = t, e =
|
|
6083
|
+
i = t, e = ts(t), r = $i(t);
|
|
6083
6084
|
else {
|
|
6084
|
-
if (!
|
|
6085
|
-
throw new Error(
|
|
6085
|
+
if (!es.call(t, "name"))
|
|
6086
|
+
throw new Error(lh("name"));
|
|
6086
6087
|
const o = t.name;
|
|
6087
|
-
if (i = o,
|
|
6088
|
-
throw new Error(
|
|
6089
|
-
e =
|
|
6088
|
+
if (i = o, es.call(t, "weight") && (n = t.weight, n <= 0))
|
|
6089
|
+
throw new Error(ah(o));
|
|
6090
|
+
e = ts(o), r = $i(o), s = t.getFn;
|
|
6090
6091
|
}
|
|
6091
6092
|
return { path: e, id: r, weight: n, src: i, getFn: s };
|
|
6092
6093
|
}
|
|
6093
|
-
function
|
|
6094
|
+
function ts(t) {
|
|
6094
6095
|
return tt(t) ? t : t.split(".");
|
|
6095
6096
|
}
|
|
6096
6097
|
function $i(t) {
|
|
6097
6098
|
return tt(t) ? t.join(".") : t;
|
|
6098
6099
|
}
|
|
6099
|
-
function
|
|
6100
|
+
function hh(t, e) {
|
|
6100
6101
|
let r = [], i = !1;
|
|
6101
|
-
const n = (s, o,
|
|
6102
|
+
const n = (s, o, a) => {
|
|
6102
6103
|
if (Le(s))
|
|
6103
|
-
if (!o[
|
|
6104
|
+
if (!o[a])
|
|
6104
6105
|
r.push(s);
|
|
6105
6106
|
else {
|
|
6106
|
-
let
|
|
6107
|
-
const h = s[
|
|
6107
|
+
let l = o[a];
|
|
6108
|
+
const h = s[l];
|
|
6108
6109
|
if (!Le(h))
|
|
6109
6110
|
return;
|
|
6110
|
-
if (
|
|
6111
|
-
r.push(
|
|
6111
|
+
if (a === o.length - 1 && (Ye(h) || Zs(h) || rh(h)))
|
|
6112
|
+
r.push(th(h));
|
|
6112
6113
|
else if (tt(h)) {
|
|
6113
6114
|
i = !0;
|
|
6114
6115
|
for (let p = 0, g = h.length; p < g; p += 1)
|
|
6115
|
-
n(h[p], o,
|
|
6116
|
+
n(h[p], o, a + 1);
|
|
6116
6117
|
} else
|
|
6117
|
-
o.length && n(h, o,
|
|
6118
|
+
o.length && n(h, o, a + 1);
|
|
6118
6119
|
}
|
|
6119
6120
|
};
|
|
6120
6121
|
return n(t, Ye(e) ? e.split(".") : e, 0), i ? r : r[0];
|
|
6121
6122
|
}
|
|
6122
|
-
const
|
|
6123
|
+
const uh = {
|
|
6123
6124
|
// Whether the matches should be included in the result set. When `true`, each record in the result
|
|
6124
6125
|
// set will include the indices of the matched characters.
|
|
6125
6126
|
// These can consequently be used for highlighting purposes.
|
|
@@ -6129,7 +6130,7 @@ const nh = {
|
|
|
6129
6130
|
findAllMatches: !1,
|
|
6130
6131
|
// Minimum number of characters that must be matched before a result is considered a match
|
|
6131
6132
|
minMatchCharLength: 1
|
|
6132
|
-
},
|
|
6133
|
+
}, dh = {
|
|
6133
6134
|
// When `true`, the algorithm continues searching to the end of the input even if a perfect
|
|
6134
6135
|
// match is found before the end of the same input.
|
|
6135
6136
|
isCaseSensitive: !1,
|
|
@@ -6141,7 +6142,7 @@ const nh = {
|
|
|
6141
6142
|
shouldSort: !0,
|
|
6142
6143
|
// Default sort function: sort by ascending score, ascending index
|
|
6143
6144
|
sortFn: (t, e) => t.score === e.score ? t.idx < e.idx ? -1 : 1 : t.score < e.score ? -1 : 1
|
|
6144
|
-
},
|
|
6145
|
+
}, ph = {
|
|
6145
6146
|
// Approximately where in the text is the pattern expected to be found?
|
|
6146
6147
|
location: 0,
|
|
6147
6148
|
// At what point does the match algorithm give up. A threshold of '0.0' requires a perfect match
|
|
@@ -6153,12 +6154,12 @@ const nh = {
|
|
|
6153
6154
|
// the exact location specified, a threshold of '1000' would require a perfect match
|
|
6154
6155
|
// to be within 800 characters of the fuzzy location to be found using a 0.8 threshold.
|
|
6155
6156
|
distance: 100
|
|
6156
|
-
},
|
|
6157
|
+
}, fh = {
|
|
6157
6158
|
// When `true`, it enables the use of unix-like search commands
|
|
6158
6159
|
useExtendedSearch: !1,
|
|
6159
6160
|
// The get function to use when fetching an object's properties.
|
|
6160
6161
|
// The default will search nested paths *ie foo.bar.baz*
|
|
6161
|
-
getFn:
|
|
6162
|
+
getFn: hh,
|
|
6162
6163
|
// When `true`, search will ignore `location` and `distance`, so it won't matter
|
|
6163
6164
|
// where in the string the pattern appears.
|
|
6164
6165
|
// More info: https://fusejs.io/concepts/scoring-theory.html#fuzziness-score
|
|
@@ -6171,21 +6172,21 @@ const nh = {
|
|
|
6171
6172
|
fieldNormWeight: 1
|
|
6172
6173
|
};
|
|
6173
6174
|
var J = {
|
|
6174
|
-
...
|
|
6175
|
-
...
|
|
6176
|
-
...
|
|
6177
|
-
...
|
|
6175
|
+
...dh,
|
|
6176
|
+
...uh,
|
|
6177
|
+
...ph,
|
|
6178
|
+
...fh
|
|
6178
6179
|
};
|
|
6179
|
-
const
|
|
6180
|
-
function
|
|
6180
|
+
const gh = /[^ ]+/g;
|
|
6181
|
+
function yh(t = 1, e = 3) {
|
|
6181
6182
|
const r = /* @__PURE__ */ new Map(), i = Math.pow(10, e);
|
|
6182
6183
|
return {
|
|
6183
6184
|
get(n) {
|
|
6184
|
-
const s = n.match(
|
|
6185
|
+
const s = n.match(gh).length;
|
|
6185
6186
|
if (r.has(s))
|
|
6186
6187
|
return r.get(s);
|
|
6187
|
-
const o = 1 / Math.pow(s, 0.5 * t),
|
|
6188
|
-
return r.set(s,
|
|
6188
|
+
const o = 1 / Math.pow(s, 0.5 * t), a = parseFloat(Math.round(o * i) / i);
|
|
6189
|
+
return r.set(s, a), a;
|
|
6189
6190
|
},
|
|
6190
6191
|
clear() {
|
|
6191
6192
|
r.clear();
|
|
@@ -6197,7 +6198,7 @@ class Ji {
|
|
|
6197
6198
|
getFn: e = J.getFn,
|
|
6198
6199
|
fieldNormWeight: r = J.fieldNormWeight
|
|
6199
6200
|
} = {}) {
|
|
6200
|
-
this.norm =
|
|
6201
|
+
this.norm = yh(r, 3), this.getFn = e, this.isCreated = !1, this.setIndexRecords();
|
|
6201
6202
|
}
|
|
6202
6203
|
setSources(e = []) {
|
|
6203
6204
|
this.docs = e;
|
|
@@ -6250,10 +6251,10 @@ class Ji {
|
|
|
6250
6251
|
let o = n.getFn ? n.getFn(e) : this.getFn(e, n.path);
|
|
6251
6252
|
if (Le(o)) {
|
|
6252
6253
|
if (tt(o)) {
|
|
6253
|
-
let
|
|
6254
|
-
const
|
|
6255
|
-
for (;
|
|
6256
|
-
const { nestedArrIndex: h, value: p } =
|
|
6254
|
+
let a = [];
|
|
6255
|
+
const l = [{ nestedArrIndex: -1, value: o }];
|
|
6256
|
+
for (; l.length; ) {
|
|
6257
|
+
const { nestedArrIndex: h, value: p } = l.pop();
|
|
6257
6258
|
if (Le(p))
|
|
6258
6259
|
if (Ye(p) && !pi(p)) {
|
|
6259
6260
|
let g = {
|
|
@@ -6261,22 +6262,22 @@ class Ji {
|
|
|
6261
6262
|
i: h,
|
|
6262
6263
|
n: this.norm.get(p)
|
|
6263
6264
|
};
|
|
6264
|
-
|
|
6265
|
+
a.push(g);
|
|
6265
6266
|
} else
|
|
6266
6267
|
tt(p) && p.forEach((g, b) => {
|
|
6267
|
-
|
|
6268
|
+
l.push({
|
|
6268
6269
|
nestedArrIndex: b,
|
|
6269
6270
|
value: g
|
|
6270
6271
|
});
|
|
6271
6272
|
});
|
|
6272
6273
|
}
|
|
6273
|
-
i.$[s] =
|
|
6274
|
+
i.$[s] = a;
|
|
6274
6275
|
} else if (Ye(o) && !pi(o)) {
|
|
6275
|
-
let
|
|
6276
|
+
let a = {
|
|
6276
6277
|
v: o,
|
|
6277
6278
|
n: this.norm.get(o)
|
|
6278
6279
|
};
|
|
6279
|
-
i.$[s] =
|
|
6280
|
+
i.$[s] = a;
|
|
6280
6281
|
}
|
|
6281
6282
|
}
|
|
6282
6283
|
}), this.records.push(i);
|
|
@@ -6288,11 +6289,11 @@ class Ji {
|
|
|
6288
6289
|
};
|
|
6289
6290
|
}
|
|
6290
6291
|
}
|
|
6291
|
-
function
|
|
6292
|
+
function to(t, e, { getFn: r = J.getFn, fieldNormWeight: i = J.fieldNormWeight } = {}) {
|
|
6292
6293
|
const n = new Ji({ getFn: r, fieldNormWeight: i });
|
|
6293
|
-
return n.setKeys(t.map(
|
|
6294
|
+
return n.setKeys(t.map(eo)), n.setSources(e), n.create(), n;
|
|
6294
6295
|
}
|
|
6295
|
-
function
|
|
6296
|
+
function mh(t, { getFn: e = J.getFn, fieldNormWeight: r = J.fieldNormWeight } = {}) {
|
|
6296
6297
|
const { keys: i, records: n } = t, s = new Ji({ getFn: e, fieldNormWeight: r });
|
|
6297
6298
|
return s.setKeys(i), s.setIndexRecords(n), s;
|
|
6298
6299
|
}
|
|
@@ -6306,32 +6307,32 @@ function xr(t, {
|
|
|
6306
6307
|
const o = e / t.length;
|
|
6307
6308
|
if (s)
|
|
6308
6309
|
return o;
|
|
6309
|
-
const
|
|
6310
|
-
return n ? o +
|
|
6310
|
+
const a = Math.abs(i - r);
|
|
6311
|
+
return n ? o + a / n : a ? 1 : o;
|
|
6311
6312
|
}
|
|
6312
|
-
function
|
|
6313
|
+
function vh(t = [], e = J.minMatchCharLength) {
|
|
6313
6314
|
let r = [], i = -1, n = -1, s = 0;
|
|
6314
6315
|
for (let o = t.length; s < o; s += 1) {
|
|
6315
|
-
let
|
|
6316
|
-
|
|
6316
|
+
let a = t[s];
|
|
6317
|
+
a && i === -1 ? i = s : !a && i !== -1 && (n = s - 1, n - i + 1 >= e && r.push([i, n]), i = -1);
|
|
6317
6318
|
}
|
|
6318
6319
|
return t[s - 1] && s - i >= e && r.push([i, s - 1]), r;
|
|
6319
6320
|
}
|
|
6320
6321
|
const mt = 32;
|
|
6321
|
-
function
|
|
6322
|
+
function bh(t, e, r, {
|
|
6322
6323
|
location: i = J.location,
|
|
6323
6324
|
distance: n = J.distance,
|
|
6324
6325
|
threshold: s = J.threshold,
|
|
6325
6326
|
findAllMatches: o = J.findAllMatches,
|
|
6326
|
-
minMatchCharLength:
|
|
6327
|
-
includeMatches:
|
|
6327
|
+
minMatchCharLength: a = J.minMatchCharLength,
|
|
6328
|
+
includeMatches: l = J.includeMatches,
|
|
6328
6329
|
ignoreLocation: h = J.ignoreLocation
|
|
6329
6330
|
} = {}) {
|
|
6330
6331
|
if (e.length > mt)
|
|
6331
|
-
throw new Error(
|
|
6332
|
+
throw new Error(oh(mt));
|
|
6332
6333
|
const p = e.length, g = t.length, b = Math.max(0, Math.min(i, g));
|
|
6333
6334
|
let m = s, _ = b;
|
|
6334
|
-
const k =
|
|
6335
|
+
const k = a > 1 || l, z = k ? Array(g) : [];
|
|
6335
6336
|
let I;
|
|
6336
6337
|
for (; (I = t.indexOf(e, _)) > -1; ) {
|
|
6337
6338
|
let M = xr(e, {
|
|
@@ -6392,12 +6393,12 @@ function dh(t, e, r, {
|
|
|
6392
6393
|
score: Math.max(1e-3, y)
|
|
6393
6394
|
};
|
|
6394
6395
|
if (k) {
|
|
6395
|
-
const M =
|
|
6396
|
-
M.length ?
|
|
6396
|
+
const M = vh(z, a);
|
|
6397
|
+
M.length ? l && (S.indices = M) : S.isMatch = !1;
|
|
6397
6398
|
}
|
|
6398
6399
|
return S;
|
|
6399
6400
|
}
|
|
6400
|
-
function
|
|
6401
|
+
function xh(t) {
|
|
6401
6402
|
let e = {};
|
|
6402
6403
|
for (let r = 0, i = t.length; r < i; r += 1) {
|
|
6403
6404
|
const n = t.charAt(r);
|
|
@@ -6405,15 +6406,15 @@ function ph(t) {
|
|
|
6405
6406
|
}
|
|
6406
6407
|
return e;
|
|
6407
6408
|
}
|
|
6408
|
-
class
|
|
6409
|
+
class ro {
|
|
6409
6410
|
constructor(e, {
|
|
6410
6411
|
location: r = J.location,
|
|
6411
6412
|
threshold: i = J.threshold,
|
|
6412
6413
|
distance: n = J.distance,
|
|
6413
6414
|
includeMatches: s = J.includeMatches,
|
|
6414
6415
|
findAllMatches: o = J.findAllMatches,
|
|
6415
|
-
minMatchCharLength:
|
|
6416
|
-
isCaseSensitive:
|
|
6416
|
+
minMatchCharLength: a = J.minMatchCharLength,
|
|
6417
|
+
isCaseSensitive: l = J.isCaseSensitive,
|
|
6417
6418
|
ignoreLocation: h = J.ignoreLocation
|
|
6418
6419
|
} = {}) {
|
|
6419
6420
|
if (this.options = {
|
|
@@ -6422,15 +6423,15 @@ class eo {
|
|
|
6422
6423
|
distance: n,
|
|
6423
6424
|
includeMatches: s,
|
|
6424
6425
|
findAllMatches: o,
|
|
6425
|
-
minMatchCharLength:
|
|
6426
|
-
isCaseSensitive:
|
|
6426
|
+
minMatchCharLength: a,
|
|
6427
|
+
isCaseSensitive: l,
|
|
6427
6428
|
ignoreLocation: h
|
|
6428
|
-
}, this.pattern =
|
|
6429
|
+
}, this.pattern = l ? e : e.toLowerCase(), this.chunks = [], !this.pattern.length)
|
|
6429
6430
|
return;
|
|
6430
6431
|
const p = (b, m) => {
|
|
6431
6432
|
this.chunks.push({
|
|
6432
6433
|
pattern: b,
|
|
6433
|
-
alphabet:
|
|
6434
|
+
alphabet: xh(b),
|
|
6434
6435
|
startIndex: m
|
|
6435
6436
|
});
|
|
6436
6437
|
}, g = this.pattern.length;
|
|
@@ -6459,18 +6460,18 @@ class eo {
|
|
|
6459
6460
|
location: n,
|
|
6460
6461
|
distance: s,
|
|
6461
6462
|
threshold: o,
|
|
6462
|
-
findAllMatches:
|
|
6463
|
-
minMatchCharLength:
|
|
6463
|
+
findAllMatches: a,
|
|
6464
|
+
minMatchCharLength: l,
|
|
6464
6465
|
ignoreLocation: h
|
|
6465
6466
|
} = this.options;
|
|
6466
6467
|
let p = [], g = 0, b = !1;
|
|
6467
6468
|
this.chunks.forEach(({ pattern: _, alphabet: k, startIndex: z }) => {
|
|
6468
|
-
const { isMatch: I, score: f, indices: y } =
|
|
6469
|
+
const { isMatch: I, score: f, indices: y } = bh(e, _, k, {
|
|
6469
6470
|
location: n + z,
|
|
6470
6471
|
distance: s,
|
|
6471
6472
|
threshold: o,
|
|
6472
|
-
findAllMatches:
|
|
6473
|
-
minMatchCharLength:
|
|
6473
|
+
findAllMatches: a,
|
|
6474
|
+
minMatchCharLength: l,
|
|
6474
6475
|
includeMatches: i,
|
|
6475
6476
|
ignoreLocation: h
|
|
6476
6477
|
});
|
|
@@ -6488,19 +6489,19 @@ class ut {
|
|
|
6488
6489
|
this.pattern = e;
|
|
6489
6490
|
}
|
|
6490
6491
|
static isMultiMatch(e) {
|
|
6491
|
-
return
|
|
6492
|
+
return rs(e, this.multiRegex);
|
|
6492
6493
|
}
|
|
6493
6494
|
static isSingleMatch(e) {
|
|
6494
|
-
return
|
|
6495
|
+
return rs(e, this.singleRegex);
|
|
6495
6496
|
}
|
|
6496
6497
|
search() {
|
|
6497
6498
|
}
|
|
6498
6499
|
}
|
|
6499
|
-
function
|
|
6500
|
+
function rs(t, e) {
|
|
6500
6501
|
const r = t.match(e);
|
|
6501
6502
|
return r ? r[1] : null;
|
|
6502
6503
|
}
|
|
6503
|
-
class
|
|
6504
|
+
class wh extends ut {
|
|
6504
6505
|
constructor(e) {
|
|
6505
6506
|
super(e);
|
|
6506
6507
|
}
|
|
@@ -6522,7 +6523,7 @@ class fh extends ut {
|
|
|
6522
6523
|
};
|
|
6523
6524
|
}
|
|
6524
6525
|
}
|
|
6525
|
-
class
|
|
6526
|
+
class $h extends ut {
|
|
6526
6527
|
constructor(e) {
|
|
6527
6528
|
super(e);
|
|
6528
6529
|
}
|
|
@@ -6544,7 +6545,7 @@ class gh extends ut {
|
|
|
6544
6545
|
};
|
|
6545
6546
|
}
|
|
6546
6547
|
}
|
|
6547
|
-
class
|
|
6548
|
+
class _h extends ut {
|
|
6548
6549
|
constructor(e) {
|
|
6549
6550
|
super(e);
|
|
6550
6551
|
}
|
|
@@ -6566,7 +6567,7 @@ class yh extends ut {
|
|
|
6566
6567
|
};
|
|
6567
6568
|
}
|
|
6568
6569
|
}
|
|
6569
|
-
class
|
|
6570
|
+
class Eh extends ut {
|
|
6570
6571
|
constructor(e) {
|
|
6571
6572
|
super(e);
|
|
6572
6573
|
}
|
|
@@ -6588,7 +6589,7 @@ class mh extends ut {
|
|
|
6588
6589
|
};
|
|
6589
6590
|
}
|
|
6590
6591
|
}
|
|
6591
|
-
class
|
|
6592
|
+
class Sh extends ut {
|
|
6592
6593
|
constructor(e) {
|
|
6593
6594
|
super(e);
|
|
6594
6595
|
}
|
|
@@ -6610,7 +6611,7 @@ class vh extends ut {
|
|
|
6610
6611
|
};
|
|
6611
6612
|
}
|
|
6612
6613
|
}
|
|
6613
|
-
class
|
|
6614
|
+
class Mh extends ut {
|
|
6614
6615
|
constructor(e) {
|
|
6615
6616
|
super(e);
|
|
6616
6617
|
}
|
|
@@ -6632,25 +6633,25 @@ class bh extends ut {
|
|
|
6632
6633
|
};
|
|
6633
6634
|
}
|
|
6634
6635
|
}
|
|
6635
|
-
class
|
|
6636
|
+
class io extends ut {
|
|
6636
6637
|
constructor(e, {
|
|
6637
6638
|
location: r = J.location,
|
|
6638
6639
|
threshold: i = J.threshold,
|
|
6639
6640
|
distance: n = J.distance,
|
|
6640
6641
|
includeMatches: s = J.includeMatches,
|
|
6641
6642
|
findAllMatches: o = J.findAllMatches,
|
|
6642
|
-
minMatchCharLength:
|
|
6643
|
-
isCaseSensitive:
|
|
6643
|
+
minMatchCharLength: a = J.minMatchCharLength,
|
|
6644
|
+
isCaseSensitive: l = J.isCaseSensitive,
|
|
6644
6645
|
ignoreLocation: h = J.ignoreLocation
|
|
6645
6646
|
} = {}) {
|
|
6646
|
-
super(e), this._bitapSearch = new
|
|
6647
|
+
super(e), this._bitapSearch = new ro(e, {
|
|
6647
6648
|
location: r,
|
|
6648
6649
|
threshold: i,
|
|
6649
6650
|
distance: n,
|
|
6650
6651
|
includeMatches: s,
|
|
6651
6652
|
findAllMatches: o,
|
|
6652
|
-
minMatchCharLength:
|
|
6653
|
-
isCaseSensitive:
|
|
6653
|
+
minMatchCharLength: a,
|
|
6654
|
+
isCaseSensitive: l,
|
|
6654
6655
|
ignoreLocation: h
|
|
6655
6656
|
});
|
|
6656
6657
|
}
|
|
@@ -6667,7 +6668,7 @@ class to extends ut {
|
|
|
6667
6668
|
return this._bitapSearch.searchIn(e);
|
|
6668
6669
|
}
|
|
6669
6670
|
}
|
|
6670
|
-
class
|
|
6671
|
+
class no extends ut {
|
|
6671
6672
|
constructor(e) {
|
|
6672
6673
|
super(e);
|
|
6673
6674
|
}
|
|
@@ -6694,30 +6695,30 @@ class ro extends ut {
|
|
|
6694
6695
|
}
|
|
6695
6696
|
}
|
|
6696
6697
|
const _i = [
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
],
|
|
6706
|
-
function
|
|
6707
|
-
return t.split(
|
|
6708
|
-
let i = r.trim().split(
|
|
6698
|
+
wh,
|
|
6699
|
+
no,
|
|
6700
|
+
_h,
|
|
6701
|
+
Eh,
|
|
6702
|
+
Mh,
|
|
6703
|
+
Sh,
|
|
6704
|
+
$h,
|
|
6705
|
+
io
|
|
6706
|
+
], is = _i.length, Ah = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, kh = "|";
|
|
6707
|
+
function Oh(t, e = {}) {
|
|
6708
|
+
return t.split(kh).map((r) => {
|
|
6709
|
+
let i = r.trim().split(Ah).filter((s) => s && !!s.trim()), n = [];
|
|
6709
6710
|
for (let s = 0, o = i.length; s < o; s += 1) {
|
|
6710
|
-
const
|
|
6711
|
-
let
|
|
6712
|
-
for (; !
|
|
6711
|
+
const a = i[s];
|
|
6712
|
+
let l = !1, h = -1;
|
|
6713
|
+
for (; !l && ++h < is; ) {
|
|
6713
6714
|
const p = _i[h];
|
|
6714
|
-
let g = p.isMultiMatch(
|
|
6715
|
-
g && (n.push(new p(g, e)),
|
|
6715
|
+
let g = p.isMultiMatch(a);
|
|
6716
|
+
g && (n.push(new p(g, e)), l = !0);
|
|
6716
6717
|
}
|
|
6717
|
-
if (!
|
|
6718
|
-
for (h = -1; ++h <
|
|
6718
|
+
if (!l)
|
|
6719
|
+
for (h = -1; ++h < is; ) {
|
|
6719
6720
|
const p = _i[h];
|
|
6720
|
-
let g = p.isSingleMatch(
|
|
6721
|
+
let g = p.isSingleMatch(a);
|
|
6721
6722
|
if (g) {
|
|
6722
6723
|
n.push(new p(g, e));
|
|
6723
6724
|
break;
|
|
@@ -6727,16 +6728,16 @@ function $h(t, e = {}) {
|
|
|
6727
6728
|
return n;
|
|
6728
6729
|
});
|
|
6729
6730
|
}
|
|
6730
|
-
const
|
|
6731
|
-
class
|
|
6731
|
+
const Ph = /* @__PURE__ */ new Set([io.type, no.type]);
|
|
6732
|
+
class Lh {
|
|
6732
6733
|
constructor(e, {
|
|
6733
6734
|
isCaseSensitive: r = J.isCaseSensitive,
|
|
6734
6735
|
includeMatches: i = J.includeMatches,
|
|
6735
6736
|
minMatchCharLength: n = J.minMatchCharLength,
|
|
6736
6737
|
ignoreLocation: s = J.ignoreLocation,
|
|
6737
6738
|
findAllMatches: o = J.findAllMatches,
|
|
6738
|
-
location:
|
|
6739
|
-
threshold:
|
|
6739
|
+
location: a = J.location,
|
|
6740
|
+
threshold: l = J.threshold,
|
|
6740
6741
|
distance: h = J.distance
|
|
6741
6742
|
} = {}) {
|
|
6742
6743
|
this.query = null, this.options = {
|
|
@@ -6745,10 +6746,10 @@ class Eh {
|
|
|
6745
6746
|
minMatchCharLength: n,
|
|
6746
6747
|
findAllMatches: o,
|
|
6747
6748
|
ignoreLocation: s,
|
|
6748
|
-
location:
|
|
6749
|
-
threshold:
|
|
6749
|
+
location: a,
|
|
6750
|
+
threshold: l,
|
|
6750
6751
|
distance: h
|
|
6751
|
-
}, this.pattern = r ? e : e.toLowerCase(), this.query =
|
|
6752
|
+
}, this.pattern = r ? e : e.toLowerCase(), this.query = Oh(this.pattern, this.options);
|
|
6752
6753
|
}
|
|
6753
6754
|
static condition(e, r) {
|
|
6754
6755
|
return r.useExtendedSearch;
|
|
@@ -6762,26 +6763,26 @@ class Eh {
|
|
|
6762
6763
|
};
|
|
6763
6764
|
const { includeMatches: i, isCaseSensitive: n } = this.options;
|
|
6764
6765
|
e = n ? e : e.toLowerCase();
|
|
6765
|
-
let s = 0, o = [],
|
|
6766
|
-
for (let
|
|
6767
|
-
const p = r[
|
|
6766
|
+
let s = 0, o = [], a = 0;
|
|
6767
|
+
for (let l = 0, h = r.length; l < h; l += 1) {
|
|
6768
|
+
const p = r[l];
|
|
6768
6769
|
o.length = 0, s = 0;
|
|
6769
6770
|
for (let g = 0, b = p.length; g < b; g += 1) {
|
|
6770
6771
|
const m = p[g], { isMatch: _, indices: k, score: z } = m.search(e);
|
|
6771
6772
|
if (_) {
|
|
6772
|
-
if (s += 1,
|
|
6773
|
+
if (s += 1, a += z, i) {
|
|
6773
6774
|
const I = m.constructor.type;
|
|
6774
|
-
|
|
6775
|
+
Ph.has(I) ? o = [...o, ...k] : o.push(k);
|
|
6775
6776
|
}
|
|
6776
6777
|
} else {
|
|
6777
|
-
|
|
6778
|
+
a = 0, s = 0, o.length = 0;
|
|
6778
6779
|
break;
|
|
6779
6780
|
}
|
|
6780
6781
|
}
|
|
6781
6782
|
if (s) {
|
|
6782
6783
|
let g = {
|
|
6783
6784
|
isMatch: !0,
|
|
6784
|
-
score:
|
|
6785
|
+
score: a / s
|
|
6785
6786
|
};
|
|
6786
6787
|
return i && (g.indices = o), g;
|
|
6787
6788
|
}
|
|
@@ -6793,7 +6794,7 @@ class Eh {
|
|
|
6793
6794
|
}
|
|
6794
6795
|
}
|
|
6795
6796
|
const Ei = [];
|
|
6796
|
-
function
|
|
6797
|
+
function Ch(...t) {
|
|
6797
6798
|
Ei.push(...t);
|
|
6798
6799
|
}
|
|
6799
6800
|
function Si(t, e) {
|
|
@@ -6802,7 +6803,7 @@ function Si(t, e) {
|
|
|
6802
6803
|
if (n.condition(t, e))
|
|
6803
6804
|
return new n(t, e);
|
|
6804
6805
|
}
|
|
6805
|
-
return new
|
|
6806
|
+
return new ro(t, e);
|
|
6806
6807
|
}
|
|
6807
6808
|
const Cr = {
|
|
6808
6809
|
AND: "$and",
|
|
@@ -6810,53 +6811,53 @@ const Cr = {
|
|
|
6810
6811
|
}, Mi = {
|
|
6811
6812
|
PATH: "$path",
|
|
6812
6813
|
PATTERN: "$val"
|
|
6813
|
-
}, Ai = (t) => !!(t[Cr.AND] || t[Cr.OR]),
|
|
6814
|
+
}, Ai = (t) => !!(t[Cr.AND] || t[Cr.OR]), Rh = (t) => !!t[Mi.PATH], jh = (t) => !tt(t) && Gs(t) && !Ai(t), ns = (t) => ({
|
|
6814
6815
|
[Cr.AND]: Object.keys(t).map((e) => ({
|
|
6815
6816
|
[e]: t[e]
|
|
6816
6817
|
}))
|
|
6817
6818
|
});
|
|
6818
|
-
function
|
|
6819
|
+
function so(t, e, { auto: r = !0 } = {}) {
|
|
6819
6820
|
const i = (n) => {
|
|
6820
6821
|
let s = Object.keys(n);
|
|
6821
|
-
const o =
|
|
6822
|
+
const o = Rh(n);
|
|
6822
6823
|
if (!o && s.length > 1 && !Ai(n))
|
|
6823
|
-
return i(
|
|
6824
|
-
if (
|
|
6825
|
-
const
|
|
6824
|
+
return i(ns(n));
|
|
6825
|
+
if (jh(n)) {
|
|
6826
|
+
const l = o ? n[Mi.PATH] : s[0], h = o ? n[Mi.PATTERN] : n[l];
|
|
6826
6827
|
if (!Ye(h))
|
|
6827
|
-
throw new Error(
|
|
6828
|
+
throw new Error(sh(l));
|
|
6828
6829
|
const p = {
|
|
6829
|
-
keyId: $i(
|
|
6830
|
+
keyId: $i(l),
|
|
6830
6831
|
pattern: h
|
|
6831
6832
|
};
|
|
6832
6833
|
return r && (p.searcher = Si(h, e)), p;
|
|
6833
6834
|
}
|
|
6834
|
-
let
|
|
6835
|
+
let a = {
|
|
6835
6836
|
children: [],
|
|
6836
6837
|
operator: s[0]
|
|
6837
6838
|
};
|
|
6838
|
-
return s.forEach((
|
|
6839
|
-
const h = n[
|
|
6839
|
+
return s.forEach((l) => {
|
|
6840
|
+
const h = n[l];
|
|
6840
6841
|
tt(h) && h.forEach((p) => {
|
|
6841
|
-
|
|
6842
|
+
a.children.push(i(p));
|
|
6842
6843
|
});
|
|
6843
|
-
}),
|
|
6844
|
+
}), a;
|
|
6844
6845
|
};
|
|
6845
|
-
return Ai(t) || (t =
|
|
6846
|
+
return Ai(t) || (t = ns(t)), i(t);
|
|
6846
6847
|
}
|
|
6847
|
-
function
|
|
6848
|
+
function Th(t, { ignoreFieldNorm: e = J.ignoreFieldNorm }) {
|
|
6848
6849
|
t.forEach((r) => {
|
|
6849
6850
|
let i = 1;
|
|
6850
6851
|
r.matches.forEach(({ key: n, norm: s, score: o }) => {
|
|
6851
|
-
const
|
|
6852
|
+
const a = n ? n.weight : null;
|
|
6852
6853
|
i *= Math.pow(
|
|
6853
|
-
o === 0 &&
|
|
6854
|
-
(
|
|
6854
|
+
o === 0 && a ? Number.EPSILON : o,
|
|
6855
|
+
(a || 1) * (e ? 1 : s)
|
|
6855
6856
|
);
|
|
6856
6857
|
}), r.score = i;
|
|
6857
6858
|
});
|
|
6858
6859
|
}
|
|
6859
|
-
function
|
|
6860
|
+
function Dh(t, e) {
|
|
6860
6861
|
const r = t.matches;
|
|
6861
6862
|
e.matches = [], Le(r) && r.forEach((i) => {
|
|
6862
6863
|
if (!Le(i.indices) || !i.indices.length)
|
|
@@ -6869,32 +6870,32 @@ function Oh(t, e) {
|
|
|
6869
6870
|
i.key && (o.key = i.key.src), i.idx > -1 && (o.refIndex = i.idx), e.matches.push(o);
|
|
6870
6871
|
});
|
|
6871
6872
|
}
|
|
6872
|
-
function
|
|
6873
|
+
function Nh(t, e) {
|
|
6873
6874
|
e.score = t.score;
|
|
6874
6875
|
}
|
|
6875
|
-
function
|
|
6876
|
+
function Ih(t, e, {
|
|
6876
6877
|
includeMatches: r = J.includeMatches,
|
|
6877
6878
|
includeScore: i = J.includeScore
|
|
6878
6879
|
} = {}) {
|
|
6879
6880
|
const n = [];
|
|
6880
|
-
return r && n.push(
|
|
6881
|
-
const { idx: o } = s,
|
|
6881
|
+
return r && n.push(Dh), i && n.push(Nh), t.map((s) => {
|
|
6882
|
+
const { idx: o } = s, a = {
|
|
6882
6883
|
item: e[o],
|
|
6883
6884
|
refIndex: o
|
|
6884
6885
|
};
|
|
6885
|
-
return n.length && n.forEach((
|
|
6886
|
-
|
|
6887
|
-
}),
|
|
6886
|
+
return n.length && n.forEach((l) => {
|
|
6887
|
+
l(s, a);
|
|
6888
|
+
}), a;
|
|
6888
6889
|
});
|
|
6889
6890
|
}
|
|
6890
6891
|
class Ht {
|
|
6891
6892
|
constructor(e, r = {}, i) {
|
|
6892
|
-
this.options = { ...J, ...r }, this.options.useExtendedSearch, this._keyStore = new
|
|
6893
|
+
this.options = { ...J, ...r }, this.options.useExtendedSearch, this._keyStore = new ch(this.options.keys), this.setCollection(e, i);
|
|
6893
6894
|
}
|
|
6894
6895
|
setCollection(e, r) {
|
|
6895
6896
|
if (this._docs = e, r && !(r instanceof Ji))
|
|
6896
|
-
throw new Error(
|
|
6897
|
-
this._myIndex = r ||
|
|
6897
|
+
throw new Error(nh);
|
|
6898
|
+
this._myIndex = r || to(this.options.keys, this._docs, {
|
|
6898
6899
|
getFn: this.options.getFn,
|
|
6899
6900
|
fieldNormWeight: this.options.fieldNormWeight
|
|
6900
6901
|
});
|
|
@@ -6922,80 +6923,80 @@ class Ht {
|
|
|
6922
6923
|
includeScore: n,
|
|
6923
6924
|
shouldSort: s,
|
|
6924
6925
|
sortFn: o,
|
|
6925
|
-
ignoreFieldNorm:
|
|
6926
|
+
ignoreFieldNorm: a
|
|
6926
6927
|
} = this.options;
|
|
6927
|
-
let
|
|
6928
|
-
return
|
|
6928
|
+
let l = Ye(e) ? Ye(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
|
|
6929
|
+
return Th(l, { ignoreFieldNorm: a }), s && l.sort(o), Zs(r) && r > -1 && (l = l.slice(0, r)), Ih(l, this._docs, {
|
|
6929
6930
|
includeMatches: i,
|
|
6930
6931
|
includeScore: n
|
|
6931
6932
|
});
|
|
6932
6933
|
}
|
|
6933
6934
|
_searchStringList(e) {
|
|
6934
6935
|
const r = Si(e, this.options), { records: i } = this._myIndex, n = [];
|
|
6935
|
-
return i.forEach(({ v: s, i: o, n:
|
|
6936
|
+
return i.forEach(({ v: s, i: o, n: a }) => {
|
|
6936
6937
|
if (!Le(s))
|
|
6937
6938
|
return;
|
|
6938
|
-
const { isMatch:
|
|
6939
|
-
|
|
6939
|
+
const { isMatch: l, score: h, indices: p } = r.searchIn(s);
|
|
6940
|
+
l && n.push({
|
|
6940
6941
|
item: s,
|
|
6941
6942
|
idx: o,
|
|
6942
|
-
matches: [{ score: h, value: s, norm:
|
|
6943
|
+
matches: [{ score: h, value: s, norm: a, indices: p }]
|
|
6943
6944
|
});
|
|
6944
6945
|
}), n;
|
|
6945
6946
|
}
|
|
6946
6947
|
_searchLogical(e) {
|
|
6947
|
-
const r =
|
|
6948
|
-
if (!
|
|
6949
|
-
const { keyId: g, searcher: b } =
|
|
6948
|
+
const r = so(e, this.options), i = (a, l, h) => {
|
|
6949
|
+
if (!a.children) {
|
|
6950
|
+
const { keyId: g, searcher: b } = a, m = this._findMatches({
|
|
6950
6951
|
key: this._keyStore.get(g),
|
|
6951
|
-
value: this._myIndex.getValueForItemAtKeyId(
|
|
6952
|
+
value: this._myIndex.getValueForItemAtKeyId(l, g),
|
|
6952
6953
|
searcher: b
|
|
6953
6954
|
});
|
|
6954
6955
|
return m && m.length ? [
|
|
6955
6956
|
{
|
|
6956
6957
|
idx: h,
|
|
6957
|
-
item:
|
|
6958
|
+
item: l,
|
|
6958
6959
|
matches: m
|
|
6959
6960
|
}
|
|
6960
6961
|
] : [];
|
|
6961
6962
|
}
|
|
6962
6963
|
const p = [];
|
|
6963
|
-
for (let g = 0, b =
|
|
6964
|
-
const m =
|
|
6964
|
+
for (let g = 0, b = a.children.length; g < b; g += 1) {
|
|
6965
|
+
const m = a.children[g], _ = i(m, l, h);
|
|
6965
6966
|
if (_.length)
|
|
6966
6967
|
p.push(..._);
|
|
6967
|
-
else if (
|
|
6968
|
+
else if (a.operator === Cr.AND)
|
|
6968
6969
|
return [];
|
|
6969
6970
|
}
|
|
6970
6971
|
return p;
|
|
6971
6972
|
}, n = this._myIndex.records, s = {}, o = [];
|
|
6972
|
-
return n.forEach(({ $:
|
|
6973
|
-
if (Le(
|
|
6974
|
-
let h = i(r,
|
|
6975
|
-
h.length && (s[
|
|
6976
|
-
s[
|
|
6973
|
+
return n.forEach(({ $: a, i: l }) => {
|
|
6974
|
+
if (Le(a)) {
|
|
6975
|
+
let h = i(r, a, l);
|
|
6976
|
+
h.length && (s[l] || (s[l] = { idx: l, item: a, matches: [] }, o.push(s[l])), h.forEach(({ matches: p }) => {
|
|
6977
|
+
s[l].matches.push(...p);
|
|
6977
6978
|
}));
|
|
6978
6979
|
}
|
|
6979
6980
|
}), o;
|
|
6980
6981
|
}
|
|
6981
6982
|
_searchObjectList(e) {
|
|
6982
6983
|
const r = Si(e, this.options), { keys: i, records: n } = this._myIndex, s = [];
|
|
6983
|
-
return n.forEach(({ $: o, i:
|
|
6984
|
+
return n.forEach(({ $: o, i: a }) => {
|
|
6984
6985
|
if (!Le(o))
|
|
6985
6986
|
return;
|
|
6986
|
-
let
|
|
6987
|
+
let l = [];
|
|
6987
6988
|
i.forEach((h, p) => {
|
|
6988
|
-
|
|
6989
|
+
l.push(
|
|
6989
6990
|
...this._findMatches({
|
|
6990
6991
|
key: h,
|
|
6991
6992
|
value: o[p],
|
|
6992
6993
|
searcher: r
|
|
6993
6994
|
})
|
|
6994
6995
|
);
|
|
6995
|
-
}),
|
|
6996
|
-
idx:
|
|
6996
|
+
}), l.length && s.push({
|
|
6997
|
+
idx: a,
|
|
6997
6998
|
item: o,
|
|
6998
|
-
matches:
|
|
6999
|
+
matches: l
|
|
6999
7000
|
});
|
|
7000
7001
|
}), s;
|
|
7001
7002
|
}
|
|
@@ -7004,70 +7005,70 @@ class Ht {
|
|
|
7004
7005
|
return [];
|
|
7005
7006
|
let n = [];
|
|
7006
7007
|
if (tt(r))
|
|
7007
|
-
r.forEach(({ v: s, i: o, n:
|
|
7008
|
+
r.forEach(({ v: s, i: o, n: a }) => {
|
|
7008
7009
|
if (!Le(s))
|
|
7009
7010
|
return;
|
|
7010
|
-
const { isMatch:
|
|
7011
|
-
|
|
7011
|
+
const { isMatch: l, score: h, indices: p } = i.searchIn(s);
|
|
7012
|
+
l && n.push({
|
|
7012
7013
|
score: h,
|
|
7013
7014
|
key: e,
|
|
7014
7015
|
value: s,
|
|
7015
7016
|
idx: o,
|
|
7016
|
-
norm:
|
|
7017
|
+
norm: a,
|
|
7017
7018
|
indices: p
|
|
7018
7019
|
});
|
|
7019
7020
|
});
|
|
7020
7021
|
else {
|
|
7021
|
-
const { v: s, n: o } = r, { isMatch:
|
|
7022
|
-
|
|
7022
|
+
const { v: s, n: o } = r, { isMatch: a, score: l, indices: h } = i.searchIn(s);
|
|
7023
|
+
a && n.push({ score: l, key: e, value: s, norm: o, indices: h });
|
|
7023
7024
|
}
|
|
7024
7025
|
return n;
|
|
7025
7026
|
}
|
|
7026
7027
|
}
|
|
7027
7028
|
Ht.version = "7.0.0";
|
|
7028
|
-
Ht.createIndex =
|
|
7029
|
-
Ht.parseIndex =
|
|
7029
|
+
Ht.createIndex = to;
|
|
7030
|
+
Ht.parseIndex = mh;
|
|
7030
7031
|
Ht.config = J;
|
|
7031
|
-
Ht.parseQuery =
|
|
7032
|
-
|
|
7033
|
-
const
|
|
7034
|
-
const i = (s, o,
|
|
7035
|
-
const
|
|
7032
|
+
Ht.parseQuery = so;
|
|
7033
|
+
Ch(Lh);
|
|
7034
|
+
const qh = (t, e = "highlight", r = "title") => {
|
|
7035
|
+
const i = (s, o, a) => {
|
|
7036
|
+
const l = o.split(".");
|
|
7036
7037
|
let h;
|
|
7037
|
-
for (h = 0; h <
|
|
7038
|
-
s = s[
|
|
7039
|
-
s[
|
|
7038
|
+
for (h = 0; h < l.length - 1; h++)
|
|
7039
|
+
s = s[l[h]];
|
|
7040
|
+
s[l[h]] = a;
|
|
7040
7041
|
}, n = (s, o = []) => {
|
|
7041
|
-
let
|
|
7042
|
+
let a = "", l = 0;
|
|
7042
7043
|
return o.forEach((h) => {
|
|
7043
7044
|
const p = h[1] + 1;
|
|
7044
|
-
|
|
7045
|
-
s.substring(
|
|
7045
|
+
a += [
|
|
7046
|
+
s.substring(l, h[0]),
|
|
7046
7047
|
`<mark class="${e}">`,
|
|
7047
7048
|
s.substring(h[0], p),
|
|
7048
7049
|
"</mark>"
|
|
7049
|
-
].join(""),
|
|
7050
|
-
}),
|
|
7050
|
+
].join(""), l = p;
|
|
7051
|
+
}), a += s.substring(l), a;
|
|
7051
7052
|
};
|
|
7052
7053
|
return t.filter(({ matches: s }) => s && s.length).map(({ item: s, matches: o }) => {
|
|
7053
|
-
const
|
|
7054
|
-
for (const [
|
|
7055
|
-
l
|
|
7056
|
-
return o.forEach((
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7054
|
+
const a = {};
|
|
7055
|
+
for (const [l, h] of Object.entries(s))
|
|
7056
|
+
a[l] = h;
|
|
7057
|
+
return o.forEach((l) => {
|
|
7058
|
+
l.key === r && i(
|
|
7059
|
+
a,
|
|
7060
|
+
l.key,
|
|
7060
7061
|
n(
|
|
7061
|
-
|
|
7062
|
-
|
|
7062
|
+
l.value,
|
|
7063
|
+
l.indices
|
|
7063
7064
|
)
|
|
7064
7065
|
);
|
|
7065
|
-
}),
|
|
7066
|
+
}), a;
|
|
7066
7067
|
});
|
|
7067
7068
|
};
|
|
7068
|
-
let
|
|
7069
|
-
const
|
|
7070
|
-
|
|
7069
|
+
let oo;
|
|
7070
|
+
const Bh = (t, e) => {
|
|
7071
|
+
oo = new Ht(t, {
|
|
7071
7072
|
// minMatchCharLength: 3,
|
|
7072
7073
|
// location: 0,
|
|
7073
7074
|
threshold: 0.4,
|
|
@@ -7076,89 +7077,89 @@ const Rh = (t, e) => {
|
|
|
7076
7077
|
useExtendedSearch: !0,
|
|
7077
7078
|
...e
|
|
7078
7079
|
});
|
|
7079
|
-
},
|
|
7080
|
+
}, Uh = async (t, e, r) => {
|
|
7080
7081
|
const i = Object.entries(e).filter(
|
|
7081
|
-
([,
|
|
7082
|
-
).reduce((
|
|
7082
|
+
([, a]) => a.type === "text" || a.type === "select" || a.type === "multiselect"
|
|
7083
|
+
).reduce((a, [l, h]) => {
|
|
7083
7084
|
const p = "$or", g = [], b = (m, _) => {
|
|
7084
7085
|
const k = {};
|
|
7085
|
-
h.type === "text" ? k[m] = `${_}` : k[
|
|
7086
|
+
h.type === "text" ? k[m] = `${_}` : k[l] = `="${m}"`, g.push(k);
|
|
7086
7087
|
};
|
|
7087
|
-
return Object.entries(h.state).filter(([, m]) => m).forEach(([m, _]) => b(m, _)), g.length > 0 &&
|
|
7088
|
+
return Object.entries(h.state).filter(([, m]) => m).forEach(([m, _]) => b(m, _)), g.length > 0 && a.push({
|
|
7088
7089
|
[p]: g
|
|
7089
|
-
}),
|
|
7090
|
+
}), a;
|
|
7090
7091
|
}, []);
|
|
7091
7092
|
let n;
|
|
7092
7093
|
if (!(i.length > 0) && r.matchAllWhenEmpty !== !1)
|
|
7093
7094
|
n = t;
|
|
7094
7095
|
else {
|
|
7095
|
-
const
|
|
7096
|
+
const a = {
|
|
7096
7097
|
$and: [...i]
|
|
7097
|
-
},
|
|
7098
|
-
n = r.enableHighlighting ?
|
|
7098
|
+
}, l = oo.search(a);
|
|
7099
|
+
n = r.enableHighlighting ? qh(l, "highlight", r.titleProperty) : l.map((h) => h.item);
|
|
7099
7100
|
}
|
|
7100
|
-
const s = Object.entries(e).filter(([,
|
|
7101
|
+
const s = Object.entries(e).filter(([, a]) => a.type === "range").reduce((a, [l, h]) => (a[l] = {
|
|
7101
7102
|
min: h.state.min,
|
|
7102
7103
|
max: h.state.max,
|
|
7103
7104
|
format: h.format
|
|
7104
|
-
},
|
|
7105
|
+
}, a), {});
|
|
7105
7106
|
if (Object.keys(s).length > 0) {
|
|
7106
|
-
const
|
|
7107
|
-
for (let
|
|
7107
|
+
const a = [];
|
|
7108
|
+
for (let l = 0; l < n.length; l++) {
|
|
7108
7109
|
const h = {};
|
|
7109
7110
|
for (const [p, g] of Object.entries(s)) {
|
|
7110
7111
|
const b = (m) => g.format === "date" ? Lt(m).unix() : m;
|
|
7111
|
-
Object.prototype.hasOwnProperty.call(n[
|
|
7112
|
-
s[p].min <= b(n[
|
|
7113
|
-
b(n[
|
|
7112
|
+
Object.prototype.hasOwnProperty.call(n[l], p) ? Array.isArray(n[l][p]) ? h[p] = // @ts-ignore
|
|
7113
|
+
s[p].min <= b(n[l][p][1]) && // @ts-ignore
|
|
7114
|
+
b(n[l][p][0]) <= s[p].max : (
|
|
7114
7115
|
/* @ts-ignore */
|
|
7115
|
-
b(n[
|
|
7116
|
-
b(n[
|
|
7116
|
+
b(n[l][p]) >= s[p].min && // @ts-ignore
|
|
7117
|
+
b(n[l][p]) <= s[p].max ? h[p] = !0 : h[p] = !1
|
|
7117
7118
|
) : h[p] = !0;
|
|
7118
7119
|
}
|
|
7119
|
-
Object.values(h).every((p) => !!p) &&
|
|
7120
|
+
Object.values(h).every((p) => !!p) && a.push(n[l]);
|
|
7120
7121
|
}
|
|
7121
|
-
n = [...
|
|
7122
|
+
n = [...a];
|
|
7122
7123
|
}
|
|
7123
|
-
const o = Object.entries(e).filter(([,
|
|
7124
|
+
const o = Object.entries(e).filter(([, a]) => a.type === "spatial").reduce((a, [l, h]) => (a[l] = {
|
|
7124
7125
|
geometry: h.state.geometry,
|
|
7125
7126
|
mode: h.state.mode
|
|
7126
|
-
},
|
|
7127
|
-
if (Object.values(o).map((
|
|
7128
|
-
const
|
|
7129
|
-
for (let
|
|
7127
|
+
}, a), {});
|
|
7128
|
+
if (Object.values(o).map((a) => a.geometry).filter((a) => !!a).length > 0) {
|
|
7129
|
+
const a = [];
|
|
7130
|
+
for (let l = 0; l < n.length; l++) {
|
|
7130
7131
|
const h = {};
|
|
7131
7132
|
for (const p of Object.keys(o)) {
|
|
7132
7133
|
const g = o[p].mode || "within";
|
|
7133
|
-
Object.prototype.hasOwnProperty.call(n[
|
|
7134
|
+
Object.prototype.hasOwnProperty.call(n[l], p) && (g === "within" ? (
|
|
7134
7135
|
// @ts-ignore
|
|
7135
|
-
|
|
7136
|
+
Vc(n[l][p], o[p].geometry)
|
|
7136
7137
|
) : (
|
|
7137
7138
|
// @ts-ignore
|
|
7138
|
-
|
|
7139
|
+
Xc(n[l][p], o[p].geometry)
|
|
7139
7140
|
)) ? h[p] = !0 : h[p] = !1;
|
|
7140
7141
|
}
|
|
7141
|
-
Object.values(h).every((p) => !!p) &&
|
|
7142
|
+
Object.values(h).every((p) => !!p) && a.push(n[l]);
|
|
7142
7143
|
}
|
|
7143
|
-
n = [...
|
|
7144
|
+
n = [...a];
|
|
7144
7145
|
}
|
|
7145
7146
|
return n;
|
|
7146
|
-
},
|
|
7147
|
-
var
|
|
7148
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
7147
|
+
}, Hh = async (t, e, r) => (await (await fetch(`${r.externalFilter(t, e)}`)).json()).features;
|
|
7148
|
+
var Fh = Object.defineProperty, zh = Object.getOwnPropertyDescriptor, nt = (t, e, r, i) => {
|
|
7149
|
+
for (var n = i > 1 ? void 0 : i ? zh(e, r) : e, s = t.length - 1, o; s >= 0; s--)
|
|
7149
7150
|
(o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
|
|
7150
|
-
return i && n &&
|
|
7151
|
+
return i && n && Fh(e, r, n), n;
|
|
7151
7152
|
};
|
|
7152
|
-
class
|
|
7153
|
+
class ss {
|
|
7153
7154
|
constructor() {
|
|
7154
7155
|
this.aggregateResults = void 0, this.autoSpreadSingle = !1, this.enableHighlighting = !1, this.filterProperties = [], this.inlineMode = !1, this.matchAllWhenEmpty = !0, this.onFilter = () => {
|
|
7155
7156
|
}, this.onSelect = () => {
|
|
7156
7157
|
}, this.showResults = !0, this.titleProperty = "title", this.expandMultipleFilters = !0, this.expandResults = !0, this.expandMultipleResults = !0;
|
|
7157
7158
|
}
|
|
7158
7159
|
}
|
|
7159
|
-
let Ke = class extends
|
|
7160
|
+
let Ke = class extends Rl {
|
|
7160
7161
|
constructor() {
|
|
7161
|
-
super(...arguments), this._resultAggregation = [], this._items = [], this.filters = {}, this._config = new
|
|
7162
|
+
super(...arguments), this._resultAggregation = [], this._items = [], this.filters = {}, this._config = new ss(), this.apply = (t) => {
|
|
7162
7163
|
this._items = t.map((r, i) => ({
|
|
7163
7164
|
id: `item-${i}`,
|
|
7164
7165
|
...r
|
|
@@ -7225,7 +7226,7 @@ let Ke = class extends Ma {
|
|
|
7225
7226
|
r.type === "text" ? r.keys.forEach((i) => {
|
|
7226
7227
|
e.includes(i) || e.push(i);
|
|
7227
7228
|
}) : (r.type === "select" || r.type === "multiselect") && (e.includes(r.key) || e.push(r.key));
|
|
7228
|
-
}),
|
|
7229
|
+
}), Bh(this._items, {
|
|
7229
7230
|
keys: e,
|
|
7230
7231
|
...this._config.fuseConfig
|
|
7231
7232
|
}), this.search();
|
|
@@ -7240,7 +7241,7 @@ let Ke = class extends Ma {
|
|
|
7240
7241
|
set config(t) {
|
|
7241
7242
|
const e = this._config;
|
|
7242
7243
|
this._config = {
|
|
7243
|
-
...new
|
|
7244
|
+
...new ss(),
|
|
7244
7245
|
...t
|
|
7245
7246
|
}, this.requestUpdate("config", e);
|
|
7246
7247
|
}
|
|
@@ -7249,7 +7250,7 @@ let Ke = class extends Ma {
|
|
|
7249
7250
|
}
|
|
7250
7251
|
async search() {
|
|
7251
7252
|
let t;
|
|
7252
|
-
this.config.externalFilter ? t = await
|
|
7253
|
+
this.config.externalFilter ? t = await Hh(this._items, this.filters, this._config) : t = await Uh(this._items, this.filters, this._config), this.results = this.sortResults(t), this._config.onFilter(this.results, this.filters);
|
|
7253
7254
|
}
|
|
7254
7255
|
aggregateResults(t, e) {
|
|
7255
7256
|
return t.filter((r) => {
|
|
@@ -7263,14 +7264,14 @@ let Ke = class extends Ma {
|
|
|
7263
7264
|
createItemList(t) {
|
|
7264
7265
|
return F`
|
|
7265
7266
|
<ul>
|
|
7266
|
-
${
|
|
7267
|
+
${xs(
|
|
7267
7268
|
this.aggregateResults(this.results, t),
|
|
7268
7269
|
(e) => e.id,
|
|
7269
7270
|
(e) => {
|
|
7270
7271
|
var r, i;
|
|
7271
7272
|
return F`
|
|
7272
7273
|
<li
|
|
7273
|
-
class=${((r = this.selectedResult) == null ? void 0 : r[this._config.titleProperty]) === e[this._config.titleProperty] ? "highlighted" :
|
|
7274
|
+
class=${((r = this.selectedResult) == null ? void 0 : r[this._config.titleProperty]) === e[this._config.titleProperty] ? "highlighted" : le}
|
|
7274
7275
|
>
|
|
7275
7276
|
<label>
|
|
7276
7277
|
<input
|
|
@@ -7279,7 +7280,7 @@ let Ke = class extends Ma {
|
|
|
7279
7280
|
class="result-radio"
|
|
7280
7281
|
name="result"
|
|
7281
7282
|
id="${e.id}"
|
|
7282
|
-
?checked=${((i = this.selectedResult) == null ? void 0 : i[this._config.titleProperty]) === e[this._config.titleProperty] ||
|
|
7283
|
+
?checked=${((i = this.selectedResult) == null ? void 0 : i[this._config.titleProperty]) === e[this._config.titleProperty] || le}
|
|
7283
7284
|
@click=${() => {
|
|
7284
7285
|
this.selectedResult = e, this._config.onSelect(e);
|
|
7285
7286
|
}}
|
|
@@ -7289,7 +7290,7 @@ let Ke = class extends Ma {
|
|
|
7289
7290
|
() => this.renderTemplate("result", e, `result-${e.id}`),
|
|
7290
7291
|
() => F`
|
|
7291
7292
|
<span class="title"
|
|
7292
|
-
>${
|
|
7293
|
+
>${Bn(
|
|
7293
7294
|
e[this._config.titleProperty]
|
|
7294
7295
|
)}</span
|
|
7295
7296
|
>
|
|
@@ -7358,7 +7359,7 @@ let Ke = class extends Ma {
|
|
|
7358
7359
|
this._config.filterProperties.length,
|
|
7359
7360
|
() => F`
|
|
7360
7361
|
<section
|
|
7361
|
-
class="${this.config.inlineMode ? "inline" :
|
|
7362
|
+
class="${this.config.inlineMode ? "inline" : le}"
|
|
7362
7363
|
>
|
|
7363
7364
|
${de(
|
|
7364
7365
|
!this.config.inlineMode,
|
|
@@ -7401,7 +7402,7 @@ let Ke = class extends Ma {
|
|
|
7401
7402
|
).reset(), this.search(), this.requestUpdate();
|
|
7402
7403
|
}}
|
|
7403
7404
|
>
|
|
7404
|
-
${this.unstyled ? "Reset" :
|
|
7405
|
+
${this.unstyled ? "Reset" : le}
|
|
7405
7406
|
</button>
|
|
7406
7407
|
`
|
|
7407
7408
|
)}
|
|
@@ -7449,7 +7450,7 @@ let Ke = class extends Ma {
|
|
|
7449
7450
|
<div id="container-results" class="scroll">
|
|
7450
7451
|
${this.results.length < 1 ? F`
|
|
7451
7452
|
<small class="no-results">No matching items</small>
|
|
7452
|
-
` :
|
|
7453
|
+
` : le}
|
|
7453
7454
|
<ul id="results" part="results">
|
|
7454
7455
|
${this._config.aggregateResults ? Kt(
|
|
7455
7456
|
this._resultAggregation.filter(
|
|
@@ -7470,7 +7471,7 @@ let Ke = class extends Ma {
|
|
|
7470
7471
|
<details
|
|
7471
7472
|
class="details-results"
|
|
7472
7473
|
@toggle=${this.toggleAccordion}
|
|
7473
|
-
?open=${this._config.expandResults ||
|
|
7474
|
+
?open=${this._config.expandResults || le}
|
|
7474
7475
|
>
|
|
7475
7476
|
<summary>
|
|
7476
7477
|
<span class="title">
|
|
@@ -7512,7 +7513,7 @@ let Ke = class extends Ma {
|
|
|
7512
7513
|
),
|
|
7513
7514
|
() => F`
|
|
7514
7515
|
<span class="title"
|
|
7515
|
-
>${
|
|
7516
|
+
>${Bn(
|
|
7516
7517
|
t[this._config.titleProperty]
|
|
7517
7518
|
)}</span
|
|
7518
7519
|
>
|
|
@@ -7559,7 +7560,112 @@ nt([
|
|
|
7559
7560
|
Ke = nt([
|
|
7560
7561
|
Re("eox-itemfilter")
|
|
7561
7562
|
], Ke);
|
|
7563
|
+
const Wh = {
|
|
7564
|
+
slot: "filterstitle",
|
|
7565
|
+
style: { margin: "14px 8px" }
|
|
7566
|
+
}, Yh = {
|
|
7567
|
+
slot: "resultstitle",
|
|
7568
|
+
style: { margin: "14px 8px" }
|
|
7569
|
+
}, Vh = {
|
|
7570
|
+
__name: "EodashItemFilter",
|
|
7571
|
+
props: {
|
|
7572
|
+
filtersTitle: {
|
|
7573
|
+
type: String,
|
|
7574
|
+
default: "Indicators"
|
|
7575
|
+
},
|
|
7576
|
+
resultsTitle: {
|
|
7577
|
+
type: String,
|
|
7578
|
+
default: ""
|
|
7579
|
+
},
|
|
7580
|
+
titleProperty: {
|
|
7581
|
+
type: String,
|
|
7582
|
+
default: "title"
|
|
7583
|
+
},
|
|
7584
|
+
aggregateResults: {
|
|
7585
|
+
type: String,
|
|
7586
|
+
default: "themes"
|
|
7587
|
+
},
|
|
7588
|
+
enableHighlighting: { type: Boolean, default: !0 },
|
|
7589
|
+
expandMultipleFilters: { type: Boolean, default: !1 },
|
|
7590
|
+
expandMultipleResults: { type: Boolean, default: !1 },
|
|
7591
|
+
filterProperties: {
|
|
7592
|
+
/** @type {import("vue").PropType<{
|
|
7593
|
+
* keys:string[];
|
|
7594
|
+
* title:string;
|
|
7595
|
+
* type:string;
|
|
7596
|
+
* expanded?:boolean
|
|
7597
|
+
* }[]> }*/
|
|
7598
|
+
type: Array,
|
|
7599
|
+
default: () => [
|
|
7600
|
+
{
|
|
7601
|
+
keys: ["title", "themes", "description"],
|
|
7602
|
+
title: "Search",
|
|
7603
|
+
type: "text"
|
|
7604
|
+
},
|
|
7605
|
+
{
|
|
7606
|
+
key: "themes",
|
|
7607
|
+
title: "Theme Filter",
|
|
7608
|
+
type: "multiselect"
|
|
7609
|
+
}
|
|
7610
|
+
]
|
|
7611
|
+
}
|
|
7612
|
+
},
|
|
7613
|
+
setup(t) {
|
|
7614
|
+
const e = t, r = {
|
|
7615
|
+
titleProperty: e.titleProperty,
|
|
7616
|
+
filterProperties: e.filterProperties,
|
|
7617
|
+
aggregateResults: e.aggregateResults,
|
|
7618
|
+
enableHighlighting: e.enableHighlighting,
|
|
7619
|
+
expandMultipleFilters: e.expandMultipleFilters,
|
|
7620
|
+
expandMultipleResults: e.expandMultipleResults
|
|
7621
|
+
}, i = sl(null), n = ol();
|
|
7622
|
+
return ll(() => {
|
|
7623
|
+
const s = document.createElement("style");
|
|
7624
|
+
s.innerHTML = `
|
|
7625
|
+
section {
|
|
7626
|
+
margin: 0 !important;
|
|
7627
|
+
}
|
|
7628
|
+
section button#filter-reset {
|
|
7629
|
+
padding: 0 8px;
|
|
7630
|
+
top: 8px;
|
|
7631
|
+
right: 8px;
|
|
7632
|
+
}
|
|
7633
|
+
`, i.value?.shadowRoot?.appendChild(s), i.value?.apply(
|
|
7634
|
+
// Only list child elements in list
|
|
7635
|
+
n.stac?.filter((o) => o.rel === "child")
|
|
7636
|
+
), i.value.config.onSelect = /** @param {import('stac-ts').StacLink} item */
|
|
7637
|
+
async (o) => {
|
|
7638
|
+
await n.loadSelectedSTAC(o.href), console.log(o, n.selectedStac);
|
|
7639
|
+
};
|
|
7640
|
+
}), (s, o) => (al(), cl(
|
|
7641
|
+
"eox-itemfilter",
|
|
7642
|
+
{
|
|
7643
|
+
class: "fill-height",
|
|
7644
|
+
config: r,
|
|
7645
|
+
ref_key: "eoxItemFilter",
|
|
7646
|
+
ref: i
|
|
7647
|
+
},
|
|
7648
|
+
[
|
|
7649
|
+
$n(
|
|
7650
|
+
"h4",
|
|
7651
|
+
Wh,
|
|
7652
|
+
_n(t.filtersTitle),
|
|
7653
|
+
1
|
|
7654
|
+
/* TEXT */
|
|
7655
|
+
),
|
|
7656
|
+
$n(
|
|
7657
|
+
"h4",
|
|
7658
|
+
Yh,
|
|
7659
|
+
_n(t.resultsTitle),
|
|
7660
|
+
1
|
|
7661
|
+
/* TEXT */
|
|
7662
|
+
)
|
|
7663
|
+
],
|
|
7664
|
+
512
|
|
7665
|
+
/* NEED_PATCH */
|
|
7666
|
+
));
|
|
7667
|
+
}
|
|
7668
|
+
};
|
|
7562
7669
|
export {
|
|
7563
|
-
|
|
7564
|
-
is as ElementConfig
|
|
7670
|
+
Vh as default
|
|
7565
7671
|
};
|