@spectric/ui 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -3,18 +3,18 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const Ht = globalThis, Tr = Ht.ShadowRoot && (Ht.ShadyCSS === void 0 || Ht.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Lr = Symbol(), es = /* @__PURE__ */ new WeakMap();
6
+ const Ht = globalThis, Dr = Ht.ShadowRoot && (Ht.ShadyCSS === void 0 || Ht.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, zr = Symbol(), ts = /* @__PURE__ */ new WeakMap();
7
7
  let ws = class {
8
8
  constructor(t, o, s) {
9
- if (this._$cssResult$ = !0, s !== Lr) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
9
+ if (this._$cssResult$ = !0, s !== zr) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
10
  this.cssText = t, this.t = o;
11
11
  }
12
12
  get styleSheet() {
13
13
  let t = this.o;
14
14
  const o = this.t;
15
- if (Tr && t === void 0) {
15
+ if (Dr && t === void 0) {
16
16
  const s = o !== void 0 && o.length === 1;
17
- s && (t = es.get(o)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && es.set(o, t));
17
+ s && (t = ts.get(o)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && ts.set(o, t));
18
18
  }
19
19
  return t;
20
20
  }
@@ -22,20 +22,20 @@ let ws = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const Rn = (e) => new ws(typeof e == "string" ? e : e + "", void 0, Lr), X = (e, ...t) => {
25
+ const Rn = (e) => new ws(typeof e == "string" ? e : e + "", void 0, zr), X = (e, ...t) => {
26
26
  const o = e.length === 1 ? e[0] : t.reduce((s, n, r) => s + ((c) => {
27
27
  if (c._$cssResult$ === !0) return c.cssText;
28
28
  if (typeof c == "number") return c;
29
29
  throw Error("Value passed to 'css' function must be a 'css' function result: " + c + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
30
  })(n) + e[r + 1], e[0]);
31
- return new ws(o, e, Lr);
31
+ return new ws(o, e, zr);
32
32
  }, Bn = (e, t) => {
33
- if (Tr) e.adoptedStyleSheets = t.map((o) => o instanceof CSSStyleSheet ? o : o.styleSheet);
33
+ if (Dr) e.adoptedStyleSheets = t.map((o) => o instanceof CSSStyleSheet ? o : o.styleSheet);
34
34
  else for (const o of t) {
35
35
  const s = document.createElement("style"), n = Ht.litNonce;
36
36
  n !== void 0 && s.setAttribute("nonce", n), s.textContent = o.cssText, e.appendChild(s);
37
37
  }
38
- }, ts = Tr ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
38
+ }, rs = Dr ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
39
39
  let o = "";
40
40
  for (const s of t.cssRules) o += s.cssText;
41
41
  return Rn(o);
@@ -45,7 +45,7 @@ const Rn = (e) => new ws(typeof e == "string" ? e : e + "", void 0, Lr), X = (e,
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Un, defineProperty: Fn, getOwnPropertyDescriptor: Hn, getOwnPropertyNames: In, getOwnPropertySymbols: qn, getPrototypeOf: Qn } = Object, me = globalThis, rs = me.trustedTypes, Wn = rs ? rs.emptyScript : "", yr = me.reactiveElementPolyfillSupport, ht = (e, t) => e, It = { toAttribute(e, t) {
48
+ const { is: Un, defineProperty: Fn, getOwnPropertyDescriptor: Hn, getOwnPropertyNames: In, getOwnPropertySymbols: qn, getPrototypeOf: Qn } = Object, me = globalThis, is = me.trustedTypes, Wn = is ? is.emptyScript : "", mr = me.reactiveElementPolyfillSupport, dt = (e, t) => e, It = { toAttribute(e, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
51
  e = e ? Wn : null;
@@ -73,16 +73,16 @@ const { is: Un, defineProperty: Fn, getOwnPropertyDescriptor: Hn, getOwnProperty
73
73
  }
74
74
  }
75
75
  return o;
76
- } }, Dr = (e, t) => !Un(e, t), is = { attribute: !0, type: String, converter: It, reflect: !1, hasChanged: Dr };
76
+ } }, Nr = (e, t) => !Un(e, t), ss = { attribute: !0, type: String, converter: It, reflect: !1, hasChanged: Nr };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), me.litPropertyMetadata ?? (me.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
- class Ye extends HTMLElement {
78
+ class Ke extends HTMLElement {
79
79
  static addInitializer(t) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
81
81
  }
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(t, o = is) {
85
+ static createProperty(t, o = ss) {
86
86
  if (o.state && (o.attribute = !1), this._$Ei(), this.elementProperties.set(t, o), !o.noAccessor) {
87
87
  const s = Symbol(), n = this.getPropertyDescriptor(t, s, o);
88
88
  n !== void 0 && Fn(this.prototype, t, n);
@@ -102,16 +102,16 @@ class Ye extends HTMLElement {
102
102
  }, configurable: !0, enumerable: !0 };
103
103
  }
104
104
  static getPropertyOptions(t) {
105
- return this.elementProperties.get(t) ?? is;
105
+ return this.elementProperties.get(t) ?? ss;
106
106
  }
107
107
  static _$Ei() {
108
- if (this.hasOwnProperty(ht("elementProperties"))) return;
108
+ if (this.hasOwnProperty(dt("elementProperties"))) return;
109
109
  const t = Qn(this);
110
110
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
111
111
  }
112
112
  static finalize() {
113
- if (this.hasOwnProperty(ht("finalized"))) return;
114
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ht("properties"))) {
113
+ if (this.hasOwnProperty(dt("finalized"))) return;
114
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(dt("properties"))) {
115
115
  const o = this.properties, s = [...In(o), ...qn(o)];
116
116
  for (const n of s) this.createProperty(n, o[n]);
117
117
  }
@@ -131,8 +131,8 @@ class Ye extends HTMLElement {
131
131
  const o = [];
132
132
  if (Array.isArray(t)) {
133
133
  const s = new Set(t.flat(1 / 0).reverse());
134
- for (const n of s) o.unshift(ts(n));
135
- } else t !== void 0 && o.push(ts(t));
134
+ for (const n of s) o.unshift(rs(n));
135
+ } else t !== void 0 && o.push(rs(t));
136
136
  return o;
137
137
  }
138
138
  static _$Eu(t, o) {
@@ -200,7 +200,7 @@ class Ye extends HTMLElement {
200
200
  }
201
201
  requestUpdate(t, o, s) {
202
202
  if (t !== void 0) {
203
- if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? Dr)(this[t], o)) return;
203
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? Nr)(this[t], o)) return;
204
204
  this.P(t, o, s);
205
205
  }
206
206
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
@@ -273,56 +273,56 @@ class Ye extends HTMLElement {
273
273
  firstUpdated(t) {
274
274
  }
275
275
  }
276
- Ye.elementStyles = [], Ye.shadowRootOptions = { mode: "open" }, Ye[ht("elementProperties")] = /* @__PURE__ */ new Map(), Ye[ht("finalized")] = /* @__PURE__ */ new Map(), yr == null || yr({ ReactiveElement: Ye }), (me.reactiveElementVersions ?? (me.reactiveElementVersions = [])).push("2.0.4");
276
+ Ke.elementStyles = [], Ke.shadowRootOptions = { mode: "open" }, Ke[dt("elementProperties")] = /* @__PURE__ */ new Map(), Ke[dt("finalized")] = /* @__PURE__ */ new Map(), mr == null || mr({ ReactiveElement: Ke }), (me.reactiveElementVersions ?? (me.reactiveElementVersions = [])).push("2.0.4");
277
277
  /**
278
278
  * @license
279
279
  * Copyright 2017 Google LLC
280
280
  * SPDX-License-Identifier: BSD-3-Clause
281
281
  */
282
- const dt = globalThis, qt = dt.trustedTypes, ss = qt ? qt.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, zr = "$lit$", he = `lit$${Math.random().toFixed(9).slice(2)}$`, Nr = "?" + he, Yn = `<${Nr}>`, Te = document, yt = () => Te.createComment(""), mt = (e) => e === null || typeof e != "object" && typeof e != "function", Mr = Array.isArray, _s = (e) => Mr(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", mr = `[
283
- \f\r]`, ut = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, os = /-->/g, ns = />/g, ke = RegExp(`>|${mr}(?:([^\\s"'>=/]+)(${mr}*=${mr}*(?:[^
284
- \f\r"'\`<>=]|("|')|))|$)`, "g"), as = /'/g, ls = /"/g, xs = /^(?:script|style|textarea|title)$/i, Zn = (e) => (t, ...o) => ({ _$litType$: e, strings: t, values: o }), $ = Zn(1), $e = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), cs = /* @__PURE__ */ new WeakMap(), Pe = Te.createTreeWalker(Te, 129);
282
+ const ft = globalThis, qt = ft.trustedTypes, os = qt ? qt.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Mr = "$lit$", he = `lit$${Math.random().toFixed(9).slice(2)}$`, jr = "?" + he, Yn = `<${jr}>`, Le = document, mt = () => Le.createComment(""), $t = (e) => e === null || typeof e != "object" && typeof e != "function", Rr = Array.isArray, _s = (e) => Rr(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", $r = `[
283
+ \f\r]`, ht = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ns = /-->/g, as = />/g, Ee = RegExp(`>|${$r}(?:([^\\s"'>=/]+)(${$r}*=${$r}*(?:[^
284
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ls = /'/g, cs = /"/g, xs = /^(?:script|style|textarea|title)$/i, Zn = (e) => (t, ...o) => ({ _$litType$: e, strings: t, values: o }), $ = Zn(1), $e = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), ps = /* @__PURE__ */ new WeakMap(), Te = Le.createTreeWalker(Le, 129);
285
285
  function Ss(e, t) {
286
- if (!Mr(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
- return ss !== void 0 ? ss.createHTML(t) : t;
286
+ if (!Rr(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
+ return os !== void 0 ? os.createHTML(t) : t;
288
288
  }
289
289
  const As = (e, t) => {
290
290
  const o = e.length - 1, s = [];
291
- let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", c = ut;
291
+ let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", c = ht;
292
292
  for (let h = 0; h < o; h++) {
293
293
  const d = e[h];
294
294
  let m, A, y = -1, C = 0;
295
- for (; C < d.length && (c.lastIndex = C, A = c.exec(d), A !== null); ) C = c.lastIndex, c === ut ? A[1] === "!--" ? c = os : A[1] !== void 0 ? c = ns : A[2] !== void 0 ? (xs.test(A[2]) && (n = RegExp("</" + A[2], "g")), c = ke) : A[3] !== void 0 && (c = ke) : c === ke ? A[0] === ">" ? (c = n ?? ut, y = -1) : A[1] === void 0 ? y = -2 : (y = c.lastIndex - A[2].length, m = A[1], c = A[3] === void 0 ? ke : A[3] === '"' ? ls : as) : c === ls || c === as ? c = ke : c === os || c === ns ? c = ut : (c = ke, n = void 0);
296
- const S = c === ke && e[h + 1].startsWith("/>") ? " " : "";
297
- r += c === ut ? d + Yn : y >= 0 ? (s.push(m), d.slice(0, y) + zr + d.slice(y) + he + S) : d + he + (y === -2 ? h : S);
295
+ for (; C < d.length && (c.lastIndex = C, A = c.exec(d), A !== null); ) C = c.lastIndex, c === ht ? A[1] === "!--" ? c = ns : A[1] !== void 0 ? c = as : A[2] !== void 0 ? (xs.test(A[2]) && (n = RegExp("</" + A[2], "g")), c = Ee) : A[3] !== void 0 && (c = Ee) : c === Ee ? A[0] === ">" ? (c = n ?? ht, y = -1) : A[1] === void 0 ? y = -2 : (y = c.lastIndex - A[2].length, m = A[1], c = A[3] === void 0 ? Ee : A[3] === '"' ? cs : ls) : c === cs || c === ls ? c = Ee : c === ns || c === as ? c = ht : (c = Ee, n = void 0);
296
+ const S = c === Ee && e[h + 1].startsWith("/>") ? " " : "";
297
+ r += c === ht ? d + Yn : y >= 0 ? (s.push(m), d.slice(0, y) + Mr + d.slice(y) + he + S) : d + he + (y === -2 ? h : S);
298
298
  }
299
299
  return [Ss(e, r + (e[o] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
300
300
  };
301
- class $t {
301
+ class wt {
302
302
  constructor({ strings: t, _$litType$: o }, s) {
303
303
  let n;
304
304
  this.parts = [];
305
305
  let r = 0, c = 0;
306
306
  const h = t.length - 1, d = this.parts, [m, A] = As(t, o);
307
- if (this.el = $t.createElement(m, s), Pe.currentNode = this.el.content, o === 2 || o === 3) {
307
+ if (this.el = wt.createElement(m, s), Te.currentNode = this.el.content, o === 2 || o === 3) {
308
308
  const y = this.el.content.firstChild;
309
309
  y.replaceWith(...y.childNodes);
310
310
  }
311
- for (; (n = Pe.nextNode()) !== null && d.length < h; ) {
311
+ for (; (n = Te.nextNode()) !== null && d.length < h; ) {
312
312
  if (n.nodeType === 1) {
313
- if (n.hasAttributes()) for (const y of n.getAttributeNames()) if (y.endsWith(zr)) {
313
+ if (n.hasAttributes()) for (const y of n.getAttributeNames()) if (y.endsWith(Mr)) {
314
314
  const C = A[c++], S = n.getAttribute(y).split(he), k = /([.?@])?(.*)/.exec(C);
315
- d.push({ type: 1, index: r, name: k[2], strings: S, ctor: k[1] === "." ? ks : k[1] === "?" ? Es : k[1] === "@" ? Os : _t }), n.removeAttribute(y);
315
+ d.push({ type: 1, index: r, name: k[2], strings: S, ctor: k[1] === "." ? ks : k[1] === "?" ? Es : k[1] === "@" ? Os : St }), n.removeAttribute(y);
316
316
  } else y.startsWith(he) && (d.push({ type: 6, index: r }), n.removeAttribute(y));
317
317
  if (xs.test(n.tagName)) {
318
318
  const y = n.textContent.split(he), C = y.length - 1;
319
319
  if (C > 0) {
320
320
  n.textContent = qt ? qt.emptyScript : "";
321
- for (let S = 0; S < C; S++) n.append(y[S], yt()), Pe.nextNode(), d.push({ type: 2, index: ++r });
322
- n.append(y[C], yt());
321
+ for (let S = 0; S < C; S++) n.append(y[S], mt()), Te.nextNode(), d.push({ type: 2, index: ++r });
322
+ n.append(y[C], mt());
323
323
  }
324
324
  }
325
- } else if (n.nodeType === 8) if (n.data === Nr) d.push({ type: 2, index: r });
325
+ } else if (n.nodeType === 8) if (n.data === jr) d.push({ type: 2, index: r });
326
326
  else {
327
327
  let y = -1;
328
328
  for (; (y = n.data.indexOf(he, y + 1)) !== -1; ) d.push({ type: 7, index: r }), y += he.length - 1;
@@ -331,16 +331,16 @@ class $t {
331
331
  }
332
332
  }
333
333
  static createElement(t, o) {
334
- const s = Te.createElement("template");
334
+ const s = Le.createElement("template");
335
335
  return s.innerHTML = t, s;
336
336
  }
337
337
  }
338
- function Le(e, t, o = e, s) {
338
+ function De(e, t, o = e, s) {
339
339
  var c, h;
340
340
  if (t === $e) return t;
341
341
  let n = s !== void 0 ? (c = o._$Co) == null ? void 0 : c[s] : o._$Cl;
342
- const r = mt(t) ? void 0 : t._$litDirective$;
343
- return (n == null ? void 0 : n.constructor) !== r && ((h = n == null ? void 0 : n._$AO) == null || h.call(n, !1), r === void 0 ? n = void 0 : (n = new r(e), n._$AT(e, o, s)), s !== void 0 ? (o._$Co ?? (o._$Co = []))[s] = n : o._$Cl = n), n !== void 0 && (t = Le(e, n._$AS(e, t.values), n, s)), t;
342
+ const r = $t(t) ? void 0 : t._$litDirective$;
343
+ return (n == null ? void 0 : n.constructor) !== r && ((h = n == null ? void 0 : n._$AO) == null || h.call(n, !1), r === void 0 ? n = void 0 : (n = new r(e), n._$AT(e, o, s)), s !== void 0 ? (o._$Co ?? (o._$Co = []))[s] = n : o._$Cl = n), n !== void 0 && (t = De(e, n._$AS(e, t.values), n, s)), t;
344
344
  }
345
345
  let Cs = class {
346
346
  constructor(t, o) {
@@ -353,24 +353,24 @@ let Cs = class {
353
353
  return this._$AM._$AU;
354
354
  }
355
355
  u(t) {
356
- const { el: { content: o }, parts: s } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? Te).importNode(o, !0);
357
- Pe.currentNode = n;
358
- let r = Pe.nextNode(), c = 0, h = 0, d = s[0];
356
+ const { el: { content: o }, parts: s } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? Le).importNode(o, !0);
357
+ Te.currentNode = n;
358
+ let r = Te.nextNode(), c = 0, h = 0, d = s[0];
359
359
  for (; d !== void 0; ) {
360
360
  if (c === d.index) {
361
361
  let m;
362
- d.type === 2 ? m = new tt(r, r.nextSibling, this, t) : d.type === 1 ? m = new d.ctor(r, d.name, d.strings, this, t) : d.type === 6 && (m = new Ps(r, this, t)), this._$AV.push(m), d = s[++h];
362
+ d.type === 2 ? m = new rt(r, r.nextSibling, this, t) : d.type === 1 ? m = new d.ctor(r, d.name, d.strings, this, t) : d.type === 6 && (m = new Ps(r, this, t)), this._$AV.push(m), d = s[++h];
363
363
  }
364
- c !== (d == null ? void 0 : d.index) && (r = Pe.nextNode(), c++);
364
+ c !== (d == null ? void 0 : d.index) && (r = Te.nextNode(), c++);
365
365
  }
366
- return Pe.currentNode = Te, n;
366
+ return Te.currentNode = Le, n;
367
367
  }
368
368
  p(t) {
369
369
  let o = 0;
370
370
  for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, o), o += s.strings.length - 2) : s._$AI(t[o])), o++;
371
371
  }
372
372
  };
373
- class tt {
373
+ class rt {
374
374
  get _$AU() {
375
375
  var t;
376
376
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -390,7 +390,7 @@ class tt {
390
390
  return this._$AB;
391
391
  }
392
392
  _$AI(t, o = this) {
393
- t = Le(this, t, o), mt(t) ? t === E || t == null || t === "" ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== $e && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : _s(t) ? this.k(t) : this._(t);
393
+ t = De(this, t, o), $t(t) ? t === E || t == null || t === "" ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== $e && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : _s(t) ? this.k(t) : this._(t);
394
394
  }
395
395
  O(t) {
396
396
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -399,11 +399,11 @@ class tt {
399
399
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
400
400
  }
401
401
  _(t) {
402
- this._$AH !== E && mt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Te.createTextNode(t)), this._$AH = t;
402
+ this._$AH !== E && $t(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Le.createTextNode(t)), this._$AH = t;
403
403
  }
404
404
  $(t) {
405
405
  var r;
406
- const { values: o, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = $t.createElement(Ss(s.h, s.h[0]), this.options)), s);
406
+ const { values: o, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = wt.createElement(Ss(s.h, s.h[0]), this.options)), s);
407
407
  if (((r = this._$AH) == null ? void 0 : r._$AD) === n) this._$AH.p(o);
408
408
  else {
409
409
  const c = new Cs(n, this), h = c.u(this.options);
@@ -411,14 +411,14 @@ class tt {
411
411
  }
412
412
  }
413
413
  _$AC(t) {
414
- let o = cs.get(t.strings);
415
- return o === void 0 && cs.set(t.strings, o = new $t(t)), o;
414
+ let o = ps.get(t.strings);
415
+ return o === void 0 && ps.set(t.strings, o = new wt(t)), o;
416
416
  }
417
417
  k(t) {
418
- Mr(this._$AH) || (this._$AH = [], this._$AR());
418
+ Rr(this._$AH) || (this._$AH = [], this._$AR());
419
419
  const o = this._$AH;
420
420
  let s, n = 0;
421
- for (const r of t) n === o.length ? o.push(s = new tt(this.O(yt()), this.O(yt()), this, this.options)) : s = o[n], s._$AI(r), n++;
421
+ for (const r of t) n === o.length ? o.push(s = new rt(this.O(mt()), this.O(mt()), this, this.options)) : s = o[n], s._$AI(r), n++;
422
422
  n < o.length && (this._$AR(s && s._$AB.nextSibling, n), o.length = n);
423
423
  }
424
424
  _$AR(t = this._$AA.nextSibling, o) {
@@ -433,7 +433,7 @@ class tt {
433
433
  this._$AM === void 0 && (this._$Cv = t, (o = this._$AP) == null || o.call(this, t));
434
434
  }
435
435
  }
436
- class _t {
436
+ class St {
437
437
  get tagName() {
438
438
  return this.element.tagName;
439
439
  }
@@ -446,11 +446,11 @@ class _t {
446
446
  _$AI(t, o = this, s, n) {
447
447
  const r = this.strings;
448
448
  let c = !1;
449
- if (r === void 0) t = Le(this, t, o, 0), c = !mt(t) || t !== this._$AH && t !== $e, c && (this._$AH = t);
449
+ if (r === void 0) t = De(this, t, o, 0), c = !$t(t) || t !== this._$AH && t !== $e, c && (this._$AH = t);
450
450
  else {
451
451
  const h = t;
452
452
  let d, m;
453
- for (t = r[0], d = 0; d < r.length - 1; d++) m = Le(this, h[s + d], o, d), m === $e && (m = this._$AH[d]), c || (c = !mt(m) || m !== this._$AH[d]), m === E ? t = E : t !== E && (t += (m ?? "") + r[d + 1]), this._$AH[d] = m;
453
+ for (t = r[0], d = 0; d < r.length - 1; d++) m = De(this, h[s + d], o, d), m === $e && (m = this._$AH[d]), c || (c = !$t(m) || m !== this._$AH[d]), m === E ? t = E : t !== E && (t += (m ?? "") + r[d + 1]), this._$AH[d] = m;
454
454
  }
455
455
  c && !n && this.j(t);
456
456
  }
@@ -458,7 +458,7 @@ class _t {
458
458
  t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
459
459
  }
460
460
  }
461
- class ks extends _t {
461
+ class ks extends St {
462
462
  constructor() {
463
463
  super(...arguments), this.type = 3;
464
464
  }
@@ -466,7 +466,7 @@ class ks extends _t {
466
466
  this.element[this.name] = t === E ? void 0 : t;
467
467
  }
468
468
  }
469
- class Es extends _t {
469
+ class Es extends St {
470
470
  constructor() {
471
471
  super(...arguments), this.type = 4;
472
472
  }
@@ -474,12 +474,12 @@ class Es extends _t {
474
474
  this.element.toggleAttribute(this.name, !!t && t !== E);
475
475
  }
476
476
  }
477
- class Os extends _t {
477
+ class Os extends St {
478
478
  constructor(t, o, s, n, r) {
479
479
  super(t, o, s, n, r), this.type = 5;
480
480
  }
481
481
  _$AI(t, o = this) {
482
- if ((t = Le(this, t, o, 0) ?? E) === $e) return;
482
+ if ((t = De(this, t, o, 0) ?? E) === $e) return;
483
483
  const s = this._$AH, n = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== E && (s === E || n);
484
484
  n && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
485
485
  }
@@ -496,17 +496,17 @@ class Ps {
496
496
  return this._$AM._$AU;
497
497
  }
498
498
  _$AI(t) {
499
- Le(this, t);
499
+ De(this, t);
500
500
  }
501
501
  }
502
- const Kn = { M: zr, P: he, A: Nr, C: 1, L: As, R: Cs, D: _s, V: Le, I: tt, H: _t, N: Es, U: Os, B: ks, F: Ps }, $r = dt.litHtmlPolyfillSupport;
503
- $r == null || $r($t, tt), (dt.litHtmlVersions ?? (dt.litHtmlVersions = [])).push("3.2.1");
504
- const xt = (e, t, o) => {
502
+ const Kn = { M: Mr, P: he, A: jr, C: 1, L: As, R: Cs, D: _s, V: De, I: rt, H: St, N: Es, U: Os, B: ks, F: Ps }, wr = ft.litHtmlPolyfillSupport;
503
+ wr == null || wr(wt, rt), (ft.litHtmlVersions ?? (ft.litHtmlVersions = [])).push("3.2.1");
504
+ const Xt = (e, t, o) => {
505
505
  const s = (o == null ? void 0 : o.renderBefore) ?? t;
506
506
  let n = s._$litPart$;
507
507
  if (n === void 0) {
508
508
  const r = (o == null ? void 0 : o.renderBefore) ?? null;
509
- s._$litPart$ = n = new tt(t.insertBefore(yt(), r), r, void 0, o ?? {});
509
+ s._$litPart$ = n = new rt(t.insertBefore(mt(), r), r, void 0, o ?? {});
510
510
  }
511
511
  return n._$AI(e), n;
512
512
  };
@@ -515,7 +515,7 @@ const xt = (e, t, o) => {
515
515
  * Copyright 2017 Google LLC
516
516
  * SPDX-License-Identifier: BSD-3-Clause
517
517
  */
518
- let z = class extends Ye {
518
+ let z = class extends Ke {
519
519
  constructor() {
520
520
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
521
521
  }
@@ -526,7 +526,7 @@ let z = class extends Ye {
526
526
  }
527
527
  update(t) {
528
528
  const o = this.render();
529
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = xt(o, this.renderRoot, this.renderOptions);
529
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Xt(o, this.renderRoot, this.renderOptions);
530
530
  }
531
531
  connectedCallback() {
532
532
  var t;
@@ -542,15 +542,15 @@ let z = class extends Ye {
542
542
  };
543
543
  var $s;
544
544
  z._$litElement$ = !0, z.finalized = !0, ($s = globalThis.litElementHydrateSupport) == null || $s.call(globalThis, { LitElement: z });
545
- const wr = globalThis.litElementPolyfillSupport;
546
- wr == null || wr({ LitElement: z });
545
+ const _r = globalThis.litElementPolyfillSupport;
546
+ _r == null || _r({ LitElement: z });
547
547
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
548
548
  /**
549
549
  * @license
550
550
  * Copyright 2017 Google LLC
551
551
  * SPDX-License-Identifier: BSD-3-Clause
552
552
  */
553
- const jr = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, St = (e) => (...t) => ({ _$litDirective$: e, values: t });
553
+ const Br = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, At = (e) => (...t) => ({ _$litDirective$: e, values: t });
554
554
  let Vt = class {
555
555
  constructor(t) {
556
556
  }
@@ -572,10 +572,10 @@ let Vt = class {
572
572
  * Copyright 2018 Google LLC
573
573
  * SPDX-License-Identifier: BSD-3-Clause
574
574
  */
575
- const Ts = "important", Xn = " !" + Ts, Rr = St(class extends Vt {
575
+ const Ts = "important", Xn = " !" + Ts, Ur = At(class extends Vt {
576
576
  constructor(e) {
577
577
  var t;
578
- if (super(e), e.type !== jr.ATTRIBUTE || e.name !== "style" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
578
+ if (super(e), e.type !== Br.ATTRIBUTE || e.name !== "style" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
579
579
  }
580
580
  render(e) {
581
581
  return Object.keys(e).reduce((t, o) => {
@@ -867,7 +867,7 @@ const P = (e) => (t, o) => {
867
867
  * Copyright 2017 Google LLC
868
868
  * SPDX-License-Identifier: BSD-3-Clause
869
869
  */
870
- const Gn = { attribute: !0, type: String, converter: It, reflect: !1, hasChanged: Dr }, Jn = (e = Gn, t, o) => {
870
+ const Gn = { attribute: !0, type: String, converter: It, reflect: !1, hasChanged: Nr }, Jn = (e = Gn, t, o) => {
871
871
  const { kind: s, metadata: n } = o;
872
872
  let r = globalThis.litPropertyMetadata.get(n);
873
873
  if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), r.set(o.name, e), s === "accessor") {
@@ -907,7 +907,7 @@ function V(e) {
907
907
  * Copyright 2017 Google LLC
908
908
  * SPDX-License-Identifier: BSD-3-Clause
909
909
  */
910
- function je(e) {
910
+ function Re(e) {
911
911
  return (t, o) => {
912
912
  const s = typeof t == "function" ? t : t[o];
913
913
  Object.assign(s, e);
@@ -924,7 +924,7 @@ const Ls = (e, t, o) => (o.configurable = !0, o.enumerable = !0, Reflect.decorat
924
924
  * Copyright 2017 Google LLC
925
925
  * SPDX-License-Identifier: BSD-3-Clause
926
926
  */
927
- function xe(e, t) {
927
+ function Se(e, t) {
928
928
  return (o, s, n) => {
929
929
  const r = (c) => {
930
930
  var h;
@@ -940,22 +940,22 @@ function xe(e, t) {
940
940
  * Copyright 2017 Google LLC
941
941
  * SPDX-License-Identifier: BSD-3-Clause
942
942
  */
943
- function At(e) {
943
+ function Ct(e) {
944
944
  return (t, o) => Ls(t, o, { async get() {
945
945
  var s;
946
946
  return await this.updateComplete, ((s = this.renderRoot) == null ? void 0 : s.querySelector(e)) ?? null;
947
947
  } });
948
948
  }
949
- let Sr = 0;
950
- const ea = () => Sr;
951
- class ps {
949
+ let Cr = 0;
950
+ const ea = () => Cr;
951
+ class us {
952
952
  constructor(t, o, s, n) {
953
953
  this._handler = s, this._type = o, this._handler = s, this._options = n || !1, t instanceof Promise ? t.then((r) => {
954
954
  this._handler && (this._node = r, this._node.addEventListener(this._type, this._handler, this._options));
955
- }) : typeof t == "function" ? (this._node = t(), this._node.addEventListener(this._type, this._handler, this._options)) : (this._node = t, this._node.addEventListener(this._type, this._handler, this._options)), Sr += 1;
955
+ }) : typeof t == "function" ? (this._node = t(), this._node.addEventListener(this._type, this._handler, this._options)) : (this._node = t, this._node.addEventListener(this._type, this._handler, this._options)), Cr += 1;
956
956
  }
957
957
  dispose() {
958
- this._handler && (this._node && (Sr -= 1, this._node.removeEventListener(this._type, this._handler, this._options)), this._node = void 0, this._handler = void 0);
958
+ this._handler && (this._node && (Cr -= 1, this._node.removeEventListener(this._type, this._handler, this._options)), this._node = void 0, this._handler = void 0);
959
959
  }
960
960
  }
961
961
  class ve extends z {
@@ -967,7 +967,7 @@ class ve extends z {
967
967
  console.warn("Event handler already exists best practice is to add the this in the constructor");
968
968
  return;
969
969
  }
970
- this._disposableListeners.push({ target: t, event: o, handler: s, options: n }), this._connected && this.registerDisposable(new ps(t, o, s, n));
970
+ this._disposableListeners.push({ target: t, event: o, handler: s, options: n }), this._connected && this.registerDisposable(new us(t, o, s, n));
971
971
  }
972
972
  registerDisposable(t) {
973
973
  if (!t)
@@ -978,7 +978,7 @@ class ve extends z {
978
978
  }
979
979
  connectedCallback() {
980
980
  super.connectedCallback(), this._connected = !0, this._isDisposed = !1, this._disposableListeners.forEach(({ target: t, event: o, handler: s, options: n }) => {
981
- this.registerDisposable(new ps(t, o, s, n));
981
+ this.registerDisposable(new us(t, o, s, n));
982
982
  });
983
983
  }
984
984
  disconnectedCallback() {
@@ -1009,7 +1009,7 @@ let I = class extends ve {
1009
1009
  }
1010
1010
  }
1011
1011
  updated(e) {
1012
- this.tooltip && this.tooltip !== "" && xt($`<spectric-tooltip slot="tooltip" .text=${this.tooltip} .position=${this.tooltipPosition || "right"}></spectric-tooltip>`, this);
1012
+ this.tooltip && this.tooltip !== "" && Xt($`<spectric-tooltip slot="tooltip" .text=${this.tooltip} .position=${this.tooltipPosition || "right"}></spectric-tooltip>`, this);
1013
1013
  }
1014
1014
  render() {
1015
1015
  const e = ia[this.variant] || "spectric-button--primary";
@@ -1019,7 +1019,7 @@ let I = class extends ve {
1019
1019
  type="button"
1020
1020
  ?disabled=${this.disabled}
1021
1021
  class=${["spectric-button", `spectric-button-danger--${this.danger || !1}`, `spectric-button--${this.size || "medium"}`, e].join(" ")}
1022
- style=${Rr({ backgroundColor: this.backgroundColor })}
1022
+ style=${Ur({ backgroundColor: this.backgroundColor })}
1023
1023
  >
1024
1024
  <span class="animation"></span>
1025
1025
  <slot>${this.label}</slot>
@@ -1063,14 +1063,14 @@ I = ae([
1063
1063
  * Copyright 2020 Google LLC
1064
1064
  * SPDX-License-Identifier: BSD-3-Clause
1065
1065
  */
1066
- const { I: sa } = Kn, us = (e, t) => (e == null ? void 0 : e._$litType$) !== void 0, oa = (e) => {
1066
+ const { I: sa } = Kn, hs = (e, t) => (e == null ? void 0 : e._$litType$) !== void 0, oa = (e) => {
1067
1067
  var t;
1068
1068
  return ((t = e == null ? void 0 : e._$litType$) == null ? void 0 : t.h) != null;
1069
- }, na = (e) => e.strings === void 0, hs = () => document.createComment(""), Oe = (e, t, o) => {
1069
+ }, na = (e) => e.strings === void 0, ds = () => document.createComment(""), Pe = (e, t, o) => {
1070
1070
  var r;
1071
1071
  const s = e._$AA.parentNode, n = t === void 0 ? e._$AB : t._$AA;
1072
1072
  if (o === void 0) {
1073
- const c = s.insertBefore(hs(), n), h = s.insertBefore(hs(), n);
1073
+ const c = s.insertBefore(ds(), n), h = s.insertBefore(ds(), n);
1074
1074
  o = new sa(c, h, e, e.options);
1075
1075
  } else {
1076
1076
  const c = o._$AB.nextSibling, h = o._$AM, d = h !== e;
@@ -1087,7 +1087,7 @@ const { I: sa } = Kn, us = (e, t) => (e == null ? void 0 : e._$litType$) !== voi
1087
1087
  }
1088
1088
  }
1089
1089
  return o;
1090
- }, Ee = (e, t, o = e) => (e._$AI(t, o), e), aa = {}, Ar = (e, t = aa) => e._$AH = t, Cr = (e) => e._$AH, _r = (e) => {
1090
+ }, Oe = (e, t, o = e) => (e._$AI(t, o), e), aa = {}, kr = (e, t = aa) => e._$AH = t, Er = (e) => e._$AH, xr = (e) => {
1091
1091
  var s;
1092
1092
  (s = e._$AP) == null || s.call(e, !1, !0);
1093
1093
  let t = e._$AA;
@@ -1104,11 +1104,11 @@ const { I: sa } = Kn, us = (e, t) => (e == null ? void 0 : e._$litType$) !== voi
1104
1104
  * Copyright 2017 Google LLC
1105
1105
  * SPDX-License-Identifier: BSD-3-Clause
1106
1106
  */
1107
- const ft = (e, t) => {
1107
+ const gt = (e, t) => {
1108
1108
  var s;
1109
1109
  const o = e._$AN;
1110
1110
  if (o === void 0) return !1;
1111
- for (const n of o) (s = n._$AO) == null || s.call(n, t, !1), ft(n, t);
1111
+ for (const n of o) (s = n._$AO) == null || s.call(n, t, !1), gt(n, t);
1112
1112
  return !0;
1113
1113
  }, Qt = (e) => {
1114
1114
  let t, o;
@@ -1129,12 +1129,12 @@ function ca(e) {
1129
1129
  }
1130
1130
  function pa(e, t = !1, o = 0) {
1131
1131
  const s = this._$AH, n = this._$AN;
1132
- if (n !== void 0 && n.size !== 0) if (t) if (Array.isArray(s)) for (let r = o; r < s.length; r++) ft(s[r], !1), Qt(s[r]);
1133
- else s != null && (ft(s, !1), Qt(s));
1134
- else ft(this, e);
1132
+ if (n !== void 0 && n.size !== 0) if (t) if (Array.isArray(s)) for (let r = o; r < s.length; r++) gt(s[r], !1), Qt(s[r]);
1133
+ else s != null && (gt(s, !1), Qt(s));
1134
+ else gt(this, e);
1135
1135
  }
1136
1136
  const ua = (e) => {
1137
- e.type == jr.CHILD && (e._$AP ?? (e._$AP = pa), e._$AQ ?? (e._$AQ = ca));
1137
+ e.type == Br.CHILD && (e._$AP ?? (e._$AP = pa), e._$AQ ?? (e._$AQ = ca));
1138
1138
  };
1139
1139
  class Ms extends Vt {
1140
1140
  constructor() {
@@ -1145,7 +1145,7 @@ class Ms extends Vt {
1145
1145
  }
1146
1146
  _$AO(t, o = !0) {
1147
1147
  var s, n;
1148
- t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (n = this.disconnected) == null || n.call(this)), o && (ft(this, t), Qt(this));
1148
+ t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (n = this.disconnected) == null || n.call(this)), o && (gt(this, t), Qt(this));
1149
1149
  }
1150
1150
  setValue(t) {
1151
1151
  if (na(this._$Ct)) this._$Ct._$AI(t, this);
@@ -1164,10 +1164,10 @@ class Ms extends Vt {
1164
1164
  * Copyright 2020 Google LLC
1165
1165
  * SPDX-License-Identifier: BSD-3-Clause
1166
1166
  */
1167
- const gt = () => new ha();
1167
+ const vt = () => new ha();
1168
1168
  let ha = class {
1169
1169
  };
1170
- const xr = /* @__PURE__ */ new WeakMap(), vt = St(class extends Ms {
1170
+ const Sr = /* @__PURE__ */ new WeakMap(), bt = At(class extends Ms {
1171
1171
  render(e) {
1172
1172
  return E;
1173
1173
  }
@@ -1179,13 +1179,13 @@ const xr = /* @__PURE__ */ new WeakMap(), vt = St(class extends Ms {
1179
1179
  rt(e) {
1180
1180
  if (this.isConnected || (e = void 0), typeof this.Y == "function") {
1181
1181
  const t = this.ht ?? globalThis;
1182
- let o = xr.get(t);
1183
- o === void 0 && (o = /* @__PURE__ */ new WeakMap(), xr.set(t, o)), o.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), o.set(this.Y, e), e !== void 0 && this.Y.call(this.ht, e);
1182
+ let o = Sr.get(t);
1183
+ o === void 0 && (o = /* @__PURE__ */ new WeakMap(), Sr.set(t, o)), o.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), o.set(this.Y, e), e !== void 0 && this.Y.call(this.ht, e);
1184
1184
  } else this.Y.value = e;
1185
1185
  }
1186
1186
  get lt() {
1187
1187
  var e, t;
1188
- return typeof this.Y == "function" ? (e = xr.get(this.ht ?? globalThis)) == null ? void 0 : e.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
1188
+ return typeof this.Y == "function" ? (e = Sr.get(this.ht ?? globalThis)) == null ? void 0 : e.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
1189
1189
  }
1190
1190
  disconnected() {
1191
1191
  this.lt === this.ct && this.rt(void 0);
@@ -1236,7 +1236,7 @@ const xr = /* @__PURE__ */ new WeakMap(), vt = St(class extends Ms {
1236
1236
  });
1237
1237
  };
1238
1238
  };
1239
- var fa = Object.defineProperty, ga = Object.getOwnPropertyDescriptor, Re = (e, t, o, s) => {
1239
+ var fa = Object.defineProperty, ga = Object.getOwnPropertyDescriptor, Be = (e, t, o, s) => {
1240
1240
  for (var n = s > 1 ? void 0 : s ? ga(t, o) : t, r = e.length - 1, c; r >= 0; r--)
1241
1241
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
1242
1242
  return s && n && fa(t, o, n), n;
@@ -1245,9 +1245,9 @@ const va = ["mousemove", "click", "dblclick", "mousedown", "mouseup", "contextme
1245
1245
  let ne = class extends ve {
1246
1246
  constructor() {
1247
1247
  super(), this.arrayBuffer = new ArrayBuffer(0), this.frameWidth = 100, this.scale = 1, this.width = 200, this.height = 200, this.state = {}, this.yStart = 0, this.xStart = 0, this.refs = {
1248
- viewport: gt(),
1249
- canvas: gt(),
1250
- scrollDiv: gt()
1248
+ viewport: vt(),
1249
+ canvas: vt(),
1250
+ scrollDiv: vt()
1251
1251
  }, this.color = "#000000", this.onThemeChange = () => {
1252
1252
  let o = getComputedStyle(this);
1253
1253
  this.color != o.color && (this.color = o.color, this.paint());
@@ -1344,18 +1344,18 @@ let ne = class extends ve {
1344
1344
  return $`
1345
1345
  <div
1346
1346
  id="viewport"
1347
- ${vt(this.refs.viewport)}
1347
+ ${bt(this.refs.viewport)}
1348
1348
  @scroll=${this.handleScroll}
1349
1349
  style=${`width:${t + Wt.width}px;height:${e + Wt.height}px;overflow:auto;position:relative`}
1350
1350
  >
1351
1351
  <div
1352
1352
  id="fakescrolldiv"
1353
- ${vt(this.refs.scrollDiv)}
1353
+ ${bt(this.refs.scrollDiv)}
1354
1354
  >
1355
1355
  </div>
1356
1356
  </div>
1357
1357
  <canvas
1358
- ${vt(this.refs.canvas)}
1358
+ ${bt(this.refs.canvas)}
1359
1359
  width=${t}
1360
1360
  height=${e}
1361
1361
  ></canvas>
@@ -1459,25 +1459,25 @@ ne.styles = X`
1459
1459
  }
1460
1460
 
1461
1461
  `;
1462
- Re([
1462
+ Be([
1463
1463
  g({ type: Object, attribute: !1 })
1464
1464
  ], ne.prototype, "arrayBuffer", 2);
1465
- Re([
1465
+ Be([
1466
1466
  g({ type: Number })
1467
1467
  ], ne.prototype, "frameWidth", 2);
1468
- Re([
1468
+ Be([
1469
1469
  g({ type: Number })
1470
1470
  ], ne.prototype, "scale", 2);
1471
- Re([
1471
+ Be([
1472
1472
  g({ type: Number })
1473
1473
  ], ne.prototype, "width", 2);
1474
- Re([
1474
+ Be([
1475
1475
  g({ type: Number })
1476
1476
  ], ne.prototype, "height", 2);
1477
- Re([
1478
- At("canvas")
1477
+ Be([
1478
+ Ct("canvas")
1479
1479
  ], ne.prototype, "_canvas", 2);
1480
- ne = Re([
1480
+ ne = Be([
1481
1481
  P("spectric-bit-display")
1482
1482
  ], ne);
1483
1483
  const ba = X`.spectric-header {
@@ -1521,7 +1521,7 @@ var ya = Object.defineProperty, ma = Object.getOwnPropertyDescriptor, Jt = (e, t
1521
1521
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
1522
1522
  return s && n && ya(t, o, n), n;
1523
1523
  };
1524
- let De = class extends z {
1524
+ let ze = class extends z {
1525
1525
  constructor() {
1526
1526
  super(...arguments), this.showCreateAccount = !1, this.showLoginButton = !1, this.username = "", this.onLogout = () => {
1527
1527
  const e = {
@@ -1566,20 +1566,20 @@ let De = class extends z {
1566
1566
  `;
1567
1567
  }
1568
1568
  };
1569
- De.styles = ba;
1569
+ ze.styles = ba;
1570
1570
  Jt([
1571
1571
  g({ type: Boolean, reflect: !0 })
1572
- ], De.prototype, "showCreateAccount", 2);
1572
+ ], ze.prototype, "showCreateAccount", 2);
1573
1573
  Jt([
1574
1574
  g({ type: Boolean, reflect: !0 })
1575
- ], De.prototype, "showLoginButton", 2);
1575
+ ], ze.prototype, "showLoginButton", 2);
1576
1576
  Jt([
1577
1577
  g({ type: String, reflect: !0 })
1578
- ], De.prototype, "username", 2);
1579
- De = Jt([
1578
+ ], ze.prototype, "username", 2);
1579
+ ze = Jt([
1580
1580
  P("spectric-header")
1581
- ], De);
1582
- var $a = Object.defineProperty, wa = Object.getOwnPropertyDescriptor, rt = (e, t, o, s) => {
1581
+ ], ze);
1582
+ var $a = Object.defineProperty, wa = Object.getOwnPropertyDescriptor, it = (e, t, o, s) => {
1583
1583
  for (var n = s > 1 ? void 0 : s ? wa(t, o) : t, r = e.length - 1, c; r >= 0; r--)
1584
1584
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
1585
1585
  return s && n && $a(t, o, n), n;
@@ -1591,7 +1591,7 @@ const _a = {
1591
1591
  color: "white",
1592
1592
  textAlign: "center"
1593
1593
  };
1594
- let ze = class extends z {
1594
+ let Ne = class extends z {
1595
1595
  constructor() {
1596
1596
  super(...arguments), this.dismissable = !1, this.text = "", this.bannerId = "", this.headerStyle = {}, this._dismissed = !1, this.onDismiss = (e) => {
1597
1597
  e.preventDefault(), e.stopPropagation();
@@ -1601,40 +1601,46 @@ let ze = class extends z {
1601
1601
  };
1602
1602
  this._dismissed = !0;
1603
1603
  let { bannerId: o, text: s, headerStyle: n, dismissable: r } = this;
1604
- this.dispatchEvent(new CustomEvent("bannerDismissed", {
1605
- detail: { bannerId: o, text: s, headerStyle: n, dismissable: r },
1606
- ...t
1607
- }));
1604
+ this.dispatchEvent(
1605
+ new CustomEvent("bannerDismissed", {
1606
+ detail: { bannerId: o, text: s, headerStyle: n, dismissable: r },
1607
+ ...t
1608
+ })
1609
+ );
1608
1610
  };
1609
1611
  }
1610
1612
  render() {
1611
1613
  if (!this._dismissed)
1612
1614
  return $`
1613
- <header style=${Rr({ ..._a, ...this.headerStyle })}>
1614
- <div style="flex-grow:1"><slot name="text">${this.text}</slot><slot></slot></div>
1615
- ${this.dismissable ? $`<spectric-button size="small" @click=${this.onDismiss}>X</spectric-button>` : null}
1616
- </header>
1615
+ <header style=${Ur({ ..._a, ...this.headerStyle })}>
1616
+ <div style="flex-grow:1">
1617
+ <slot name="text">${this.text}</slot><slot></slot>
1618
+ </div>
1619
+ ${this.dismissable ? $`<spectric-button size="small" @click=${this.onDismiss} icon
1620
+ >X</spectric-button
1621
+ >` : null}
1622
+ </header>
1617
1623
  `;
1618
1624
  }
1619
1625
  };
1620
- rt([
1626
+ it([
1621
1627
  g({ type: Boolean, reflect: !0 })
1622
- ], ze.prototype, "dismissable", 2);
1623
- rt([
1628
+ ], Ne.prototype, "dismissable", 2);
1629
+ it([
1624
1630
  g({ type: String, reflect: !0 })
1625
- ], ze.prototype, "text", 2);
1626
- rt([
1631
+ ], Ne.prototype, "text", 2);
1632
+ it([
1627
1633
  g({ type: String, reflect: !0 })
1628
- ], ze.prototype, "bannerId", 2);
1629
- rt([
1634
+ ], Ne.prototype, "bannerId", 2);
1635
+ it([
1630
1636
  g({ type: Object })
1631
- ], ze.prototype, "headerStyle", 2);
1632
- rt([
1637
+ ], Ne.prototype, "headerStyle", 2);
1638
+ it([
1633
1639
  g({ state: !0, type: Boolean, attribute: !1 })
1634
- ], ze.prototype, "_dismissed", 2);
1635
- ze = rt([
1640
+ ], Ne.prototype, "_dismissed", 2);
1641
+ Ne = it([
1636
1642
  P("spectric-banner")
1637
- ], ze);
1643
+ ], Ne);
1638
1644
  const xa = X`
1639
1645
 
1640
1646
  :host {
@@ -1797,7 +1803,7 @@ article{
1797
1803
  * Copyright 2018 Google LLC
1798
1804
  * SPDX-License-Identifier: BSD-3-Clause
1799
1805
  */
1800
- const kr = (e) => e ?? E;
1806
+ const Or = (e) => e ?? E;
1801
1807
  class Rs extends Ms {
1802
1808
  constructor() {
1803
1809
  super(...arguments), this.prevData = {};
@@ -1824,8 +1830,8 @@ class Rs extends Ms {
1824
1830
  (!t || !(n in t) && s[n] === o[n]) && (s[n] = void 0);
1825
1831
  }
1826
1832
  }
1827
- const Ke = St(Rs);
1828
- var Er = /* @__PURE__ */ ((e) => (e.None = "none", e.Uscui = "us.cui", e.Usclassified = "us.classified", e.Usunclassified = "us.unclassified", e.Usconfidential = "us.confidential", e.Ussecret = "us.secret", e.Ustopsecret = "us.topsecret", e.UstopsecretSi = "us.topsecret.si", e.Uknotset = "uk.notset", e.Ukofficial = "uk.official", e.Uksecret = "uk.secret", e.Uktopsecret = "uk.topsecret", e.Caprotected_a = "ca.protected_a", e.Caprotected_b = "ca.protected_b", e.Caprotected_c = "ca.protected_c", e.Caconfidential = "ca.confidential", e.Casecret = "ca.secret", e.Catopsecret = "ca.topsecret", e.Auunofficial = "au.unofficial", e.Auofficial = "au.official", e.Auofficialsensitive = "au.officialsensitive", e.Auconfidential = "au.confidential", e.Ausecret = "au.secret", e.Autopsecret = "au.topsecret", e))(Er || {});
1833
+ const Ve = At(Rs);
1834
+ var Pr = /* @__PURE__ */ ((e) => (e.None = "none", e.Uscui = "us.cui", e.Usclassified = "us.classified", e.Usunclassified = "us.unclassified", e.Usconfidential = "us.confidential", e.Ussecret = "us.secret", e.Ustopsecret = "us.topsecret", e.UstopsecretSi = "us.topsecret.si", e.Uknotset = "uk.notset", e.Ukofficial = "uk.official", e.Uksecret = "uk.secret", e.Uktopsecret = "uk.topsecret", e.Caprotected_a = "ca.protected_a", e.Caprotected_b = "ca.protected_b", e.Caprotected_c = "ca.protected_c", e.Caconfidential = "ca.confidential", e.Casecret = "ca.secret", e.Catopsecret = "ca.topsecret", e.Auunofficial = "au.unofficial", e.Auofficial = "au.official", e.Auofficialsensitive = "au.officialsensitive", e.Auconfidential = "au.confidential", e.Ausecret = "au.secret", e.Autopsecret = "au.topsecret", e))(Pr || {});
1829
1835
  const Ft = {
1830
1836
  none: {},
1831
1837
  //US Department of Defense spec CFR-2002-title31-vol1-sec2-7
@@ -1953,14 +1959,14 @@ var Sa = Object.defineProperty, Aa = Object.getOwnPropertyDescriptor, le = (e, t
1953
1959
  };
1954
1960
  let q = class extends z {
1955
1961
  constructor() {
1956
- super(...arguments), this.showHeader = !0, this.headerSticky = !0, this.classificationLevel = Er.None, this.classificationText = "", this.notifications = [], this.showCreateAccount = !1, this.showLoginButton = !0, this.username = "";
1962
+ super(...arguments), this.showHeader = !0, this.headerSticky = !0, this.classificationLevel = Pr.None, this.classificationText = "", this.notifications = [], this.showCreateAccount = !1, this.showLoginButton = !0, this.username = "";
1957
1963
  }
1958
1964
  // protected createRenderRoot(): HTMLElement | DocumentFragment {
1959
1965
  // return this
1960
1966
  // }
1961
1967
  render() {
1962
- this.classificationLevel && !Ft[this.classificationLevel] && (console.warn("Unknown classification", this.classificationLevel), this.classificationLevel = Er.None);
1963
- const e = this.classificationLevel ? this.classificationText || Ft[this.classificationLevel].content : "", t = this.showHeader ? $`<spectric-header ?showCreateAccount=${this.showCreateAccount} .showLoginButton=${this.showLoginButton} username=${kr(this.username)}>
1968
+ this.classificationLevel && !Ft[this.classificationLevel] && (console.warn("Unknown classification", this.classificationLevel), this.classificationLevel = Pr.None);
1969
+ const e = this.classificationLevel ? this.classificationText || Ft[this.classificationLevel].content : "", t = this.showHeader ? $`<spectric-header ?showCreateAccount=${this.showCreateAccount} .showLoginButton=${this.showLoginButton} username=${Or(this.username)}>
1964
1970
  <slot name="branding" slot="branding"></slot>
1965
1971
  <slot name="name" slot="name"></slot>
1966
1972
  <slot name="center" slot="center"></slot>
@@ -1969,10 +1975,10 @@ let q = class extends z {
1969
1975
  return $`
1970
1976
  ${this.classificationLevel && e ? $`
1971
1977
  <!-- Classification Banner -->
1972
- <spectric-banner ${Ke({ text: e, headerStyle: Ft[this.classificationLevel] })}></spectric-banner>
1978
+ <spectric-banner ${Ve({ text: e, headerStyle: Ft[this.classificationLevel] })}></spectric-banner>
1973
1979
  ` : null}
1974
- <spectric-theme theme=${kr(this.theme)}>
1975
- ${this.notifications ? this.notifications.map((o) => $`<spectric-banner ${Ke(o)} ></spectric-banner>`) : null}
1980
+ <spectric-theme theme=${Or(this.theme)}>
1981
+ ${this.notifications ? this.notifications.map((o) => $`<spectric-banner ${Ve(o)} ></spectric-banner>`) : null}
1976
1982
  ${this.headerSticky ? t : null}
1977
1983
  <article>
1978
1984
  ${this.headerSticky ? null : t}
@@ -1982,7 +1988,7 @@ let q = class extends z {
1982
1988
  </section>
1983
1989
  </article>
1984
1990
  </spectric-theme>
1985
- ${this.classificationLevel && e ? $`<spectric-banner ${Ke({ text: e, headerStyle: Ft[this.classificationLevel] })}></spectric-banner>` : null}
1991
+ ${this.classificationLevel && e ? $`<spectric-banner ${Ve({ text: e, headerStyle: Ft[this.classificationLevel] })}></spectric-banner>` : null}
1986
1992
 
1987
1993
  `;
1988
1994
  }
@@ -2095,18 +2101,18 @@ let O = class extends z {
2095
2101
  ?disabled="${this.disabled}"
2096
2102
  aria-describedby="helper-text"
2097
2103
  id="input"
2098
- name="${We(this.name)}"
2099
- pattern="${We(this.pattern)}"
2100
- placeholder="${We(this.placeholder)}"
2101
- autocomplete="${We(this.autocomplete)}"
2104
+ name="${Ze(this.name)}"
2105
+ pattern="${Ze(this.pattern)}"
2106
+ placeholder="${Ze(this.placeholder)}"
2107
+ autocomplete="${Ze(this.autocomplete)}"
2102
2108
  ?readonly="${this.readonly}"
2103
2109
  ?required="${this.required}"
2104
- type="${We(
2110
+ type="${Ze(
2105
2111
  this.variant !== "password" ? this.variant !== "date" ? this.variant : "text" : this._showPassword ? "text" : "password"
2106
2112
  /* password */
2107
2113
  )}"
2108
2114
  .value="${this._value}"
2109
- maxlength="${We(
2115
+ maxlength="${Ze(
2110
2116
  this.maxCount > 0 ? this.maxCount : void 0
2111
2117
  )}"
2112
2118
  @input="${this._handleInput}"
@@ -2242,15 +2248,15 @@ T([
2242
2248
  g({ reflect: !0 })
2243
2249
  ], O.prototype, "value", 1);
2244
2250
  T([
2245
- xe("input")
2251
+ Se("input")
2246
2252
  ], O.prototype, "_input", 2);
2247
2253
  T([
2248
- je({ capture: !0 })
2254
+ Re({ capture: !0 })
2249
2255
  ], O.prototype, "_handleChange", 1);
2250
2256
  O = T([
2251
2257
  P("spectric-input")
2252
2258
  ], O);
2253
- const We = (e) => kr(e === "" ? void 0 : e ?? void 0), Ea = "end of input", Oa = {
2259
+ const Ze = (e) => Or(e === "" ? void 0 : e ?? void 0), Ea = "end of input", Oa = {
2254
2260
  fieldName: "field name",
2255
2261
  value: "value",
2256
2262
  literal: "literal",
@@ -2271,21 +2277,21 @@ class Us extends Error {
2271
2277
  super(n), this.name = "DQLSyntaxError", this.shortMessage = s;
2272
2278
  }
2273
2279
  }
2274
- function Xe(e) {
2280
+ function Ge(e) {
2275
2281
  return {
2276
2282
  type: "literal",
2277
2283
  value: e
2278
2284
  };
2279
2285
  }
2280
- function Br(e) {
2286
+ function Fr(e) {
2281
2287
  return e.value;
2282
2288
  }
2283
2289
  const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2284
2290
  __proto__: null,
2285
- buildNode: Xe,
2286
- toOpenSearchQuery: Br
2291
+ buildNode: Ge,
2292
+ toOpenSearchQuery: Fr
2287
2293
  }, Symbol.toStringTag, { value: "Module" })), {
2288
- SyntaxError: Hc,
2294
+ SyntaxError: Ic,
2289
2295
  parse: er
2290
2296
  } = function() {
2291
2297
  function e(s, n) {
@@ -2299,11 +2305,11 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2299
2305
  }
2300
2306
  e(t, Error);
2301
2307
  function o(s) {
2302
- var n = arguments.length > 1 ? arguments[1] : {}, r = {}, c = { start: Ni, Literal: gr }, h = Ni, d = function(i, a) {
2308
+ var n = arguments.length > 1 ? arguments[1] : {}, r = {}, c = { start: Mi, Literal: vr }, h = Mi, d = function(i, a) {
2303
2309
  return a.type === "cursor" ? {
2304
2310
  ...a,
2305
2311
  suggestionTypes: ["conjunction"]
2306
- } : i !== null ? i : Ce.function.buildNode("is", "*", "*");
2312
+ } : i !== null ? i : ke.function.buildNode("is", "*", "*");
2307
2313
  }, m = function() {
2308
2314
  return Tn;
2309
2315
  }, A = function(i, a) {
@@ -2319,7 +2325,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2319
2325
  ...a,
2320
2326
  suggestionTypes: ["conjunction"]
2321
2327
  } : i;
2322
- }, ie = ":", W = { type: "literal", value: ":", description: '":"' }, Ue = "{", tr = { type: "literal", value: "{", description: '"{"' }, rr = "}", ir = { type: "literal", value: "}", description: '"}"' }, ro = function(i, a, p) {
2328
+ }, ie = ":", W = { type: "literal", value: ":", description: '":"' }, He = "{", rr = { type: "literal", value: "{", description: '"{"' }, ir = "}", sr = { type: "literal", value: "}", description: '"}"' }, ro = function(i, a, p) {
2323
2329
  return a.type === "cursor" ? {
2324
2330
  ...a,
2325
2331
  nestedPath: a.nestedPath ? `${i.value}.${a.nestedPath}` : i.value
@@ -2380,10 +2386,10 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2380
2386
  return (p) => oe("is", [p, i, a]);
2381
2387
  }, fo = function(i) {
2382
2388
  if (i.type === "cursor") return i;
2383
- !zn && i.type === "wildcard" && Ce.wildcard.hasLeadingWildcard(i) && J("Leading wildcards are disabled. See query:allowLeadingWildcards in Advanced Settings.");
2389
+ !zn && i.type === "wildcard" && ke.wildcard.hasLeadingWildcard(i) && J("Leading wildcards are disabled. See query:allowLeadingWildcards in Advanced Settings.");
2384
2390
  const a = be(!1);
2385
2391
  return (p) => oe("is", [p, i, a]);
2386
- }, go = { type: "other", description: "OR" }, Yr = "or", Zr = { type: "literal", value: "or", description: '"or"' }, vo = { type: "other", description: "AND" }, Kr = "and", Xr = { type: "literal", value: "and", description: '"and"' }, bo = { type: "other", description: "NOT" }, Vr = "not", Gr = { type: "literal", value: "not", description: '"not"' }, yo = { type: "other", description: "literal" }, ot = '"', nt = { type: "literal", value: '"', description: '"\\""' }, sr = function(i, a, p) {
2392
+ }, go = { type: "other", description: "OR" }, Zr = "or", Kr = { type: "literal", value: "or", description: '"or"' }, vo = { type: "other", description: "AND" }, Xr = "and", Vr = { type: "literal", value: "and", description: '"and"' }, bo = { type: "other", description: "NOT" }, Gr = "not", Jr = { type: "literal", value: "not", description: '"not"' }, yo = { type: "other", description: "literal" }, nt = '"', at = { type: "literal", value: '"', description: '"\\""' }, or = function(i, a, p) {
2387
2393
  const { start: u, end: v } = cn();
2388
2394
  return {
2389
2395
  type: "cursor",
@@ -2395,59 +2401,59 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2395
2401
  };
2396
2402
  }, mo = function(i) {
2397
2403
  return be(i.join(""));
2398
- }, at = "\\", lt = { type: "literal", value: "\\", description: '"\\\\"' }, $o = /^[\\"]/, wo = { type: "class", value: '[\\\\"]', description: '[\\\\"]' }, kt = function(i) {
2404
+ }, lt = "\\", ct = { type: "literal", value: "\\", description: '"\\\\"' }, $o = /^[\\"]/, wo = { type: "class", value: '[\\\\"]', description: '[\\\\"]' }, kt = function(i) {
2399
2405
  return i;
2400
2406
  }, _o = /^[^"]/, xo = { type: "class", value: '[^"]', description: '[^"]' }, So = function(i) {
2401
2407
  const a = i.join("").trim();
2402
- return a === "null" ? be(null) : a === "true" ? be(!0) : a === "false" ? be(!1) : i.includes(Vi) ? Nn(a) : be(
2408
+ return a === "null" ? be(null) : a === "true" ? be(!0) : a === "false" ? be(!1) : i.includes(Gi) ? Nn(a) : be(
2403
2409
  /^(-?[1-9]+\d*([.]\d+)?)$|^(-?0[.]\d*[1-9]+)$|^0$|^0.0$|^[.]\d{1,}$/.test(a) ? isFinite(a) && (a > Number.MAX_SAFE_INTEGER || a < Number.MIN_SAFE_INTEGER) ? BigInt(a) : Number(a) : a
2404
2410
  );
2405
- }, Jr = { type: "any", description: "any character" }, Et = "*", Ot = { type: "literal", value: "*", description: '"*"' }, Ao = function() {
2406
- return Vi;
2407
- }, ei = "\\t", Co = { type: "literal", value: "\\t", description: '"\\\\t"' }, ko = function() {
2411
+ }, ei = { type: "any", description: "any character" }, Et = "*", Ot = { type: "literal", value: "*", description: '"*"' }, Ao = function() {
2412
+ return Gi;
2413
+ }, ti = "\\t", Co = { type: "literal", value: "\\t", description: '"\\\\t"' }, ko = function() {
2408
2414
  return " ";
2409
- }, ti = "\\r", Eo = { type: "literal", value: "\\r", description: '"\\\\r"' }, Oo = function() {
2415
+ }, ri = "\\r", Eo = { type: "literal", value: "\\r", description: '"\\\\r"' }, Oo = function() {
2410
2416
  return "\r";
2411
- }, ri = "\\n", Po = { type: "literal", value: "\\n", description: '"\\\\n"' }, To = function() {
2417
+ }, ii = "\\n", Po = { type: "literal", value: "\\n", description: '"\\\\n"' }, To = function() {
2412
2418
  return `
2413
2419
  `;
2414
2420
  }, Lo = function(i) {
2415
2421
  return i;
2416
- }, Do = /^[\\():<>"*{}]/, zo = { type: "class", value: '[\\\\():<>"*{}]', description: '[\\\\():<>"*{}]' }, ii = "<=", No = { type: "literal", value: "<=", description: '"<="' }, Mo = function() {
2422
+ }, Do = /^[\\():<>"*{}]/, zo = { type: "class", value: '[\\\\():<>"*{}]', description: '[\\\\():<>"*{}]' }, si = "<=", No = { type: "literal", value: "<=", description: '"<="' }, Mo = function() {
2417
2423
  return "lte";
2418
- }, si = ">=", jo = { type: "literal", value: ">=", description: '">="' }, Ro = function() {
2424
+ }, oi = ">=", jo = { type: "literal", value: ">=", description: '">="' }, Ro = function() {
2419
2425
  return "gte";
2420
- }, oi = "<", ni = { type: "literal", value: "<", description: '"<"' }, Bo = function() {
2426
+ }, ni = "<", ai = { type: "literal", value: "<", description: '"<"' }, Bo = function() {
2421
2427
  return "lt";
2422
- }, ai = ">", li = { type: "literal", value: ">", description: '">"' }, Uo = function() {
2428
+ }, li = ">", ci = { type: "literal", value: ">", description: '">"' }, Uo = function() {
2423
2429
  return "gt";
2424
2430
  }, Fo = { type: "other", description: "whitespace" }, Ho = /^[ \t\r\n]/, Io = { type: "class", value: "[\\ \\t\\r\\n]", description: "[\\ \\t\\r\\n]" }, qo = function() {
2425
2431
  return Ln;
2426
- }, ci = "@kuery-cursor@", Qo = { type: "literal", value: "@kuery-cursor@", description: '"@kuery-cursor@"' }, Wo = function() {
2432
+ }, pi = "@kuery-cursor@", Qo = { type: "literal", value: "@kuery-cursor@", description: '"@kuery-cursor@"' }, Wo = function() {
2427
2433
  return Dn;
2428
- }, pi = "||", Yo = { type: "literal", value: "||", description: '"||"' }, Zo = function() {
2434
+ }, ui = "||", Yo = { type: "literal", value: "||", description: '"||"' }, Zo = function() {
2429
2435
  J("LuceneOr");
2430
- }, ui = "&&", Ko = { type: "literal", value: "&&", description: '"&&"' }, hi = function() {
2436
+ }, hi = "&&", Ko = { type: "literal", value: "&&", description: '"&&"' }, di = function() {
2431
2437
  J("LuceneAnd");
2432
- }, di = "+", fi = { type: "literal", value: "+", description: '"+"' }, gi = "-", vi = { type: "literal", value: "-", description: '"-"' }, bi = function() {
2438
+ }, fi = "+", gi = { type: "literal", value: "+", description: '"+"' }, vi = "-", bi = { type: "literal", value: "-", description: '"-"' }, yi = function() {
2433
2439
  J("LuceneNot");
2434
- }, yi = "!", mi = { type: "literal", value: "!", description: '"!"' }, $i = "_exists_", Xo = { type: "literal", value: "_exists_", description: '"_exists_"' }, Vo = function() {
2440
+ }, mi = "!", $i = { type: "literal", value: "!", description: '"!"' }, wi = "_exists_", Xo = { type: "literal", value: "_exists_", description: '"_exists_"' }, Vo = function() {
2435
2441
  J("LuceneExists");
2436
- }, wi = function() {
2442
+ }, _i = function() {
2437
2443
  J("LuceneRange");
2438
- }, _i = "?", xi = { type: "literal", value: "?", description: '"?"' }, Go = function() {
2444
+ }, xi = "?", Si = { type: "literal", value: "?", description: '"?"' }, Go = function() {
2439
2445
  J("LuceneWildcard");
2440
- }, or = "/", nr = { type: "literal", value: "/", description: '"/"' }, Si = /^[^\/]/, Ai = { type: "class", value: "[^/]", description: "[^/]" }, Jo = function() {
2446
+ }, nr = "/", ar = { type: "literal", value: "/", description: '"/"' }, Ai = /^[^\/]/, Ci = { type: "class", value: "[^/]", description: "[^/]" }, Jo = function() {
2441
2447
  J("LuceneRegex");
2442
- }, ar = "~", lr = { type: "literal", value: "~", description: '"~"' }, Fe = /^[0-9]/, He = { type: "class", value: "[0-9]", description: "[0-9]" }, en = function() {
2448
+ }, lr = "~", cr = { type: "literal", value: "~", description: '"~"' }, Ie = /^[0-9]/, qe = { type: "class", value: "[0-9]", description: "[0-9]" }, en = function() {
2443
2449
  J("LuceneFuzzy");
2444
2450
  }, tn = function() {
2445
2451
  J("LuceneProximity");
2446
- }, Ci = "^", ki = { type: "literal", value: "^", description: '"^"' }, rn = function() {
2452
+ }, ki = "^", Ei = { type: "literal", value: "^", description: '"^"' }, rn = function() {
2447
2453
  J("LuceneBoost");
2448
2454
  }, sn = function() {
2449
2455
  return char;
2450
- }, on = "=", nn = { type: "literal", value: "=", description: '"="' }, Ei = "[", Oi = { type: "literal", value: "[", description: '"["' }, Pi = "]", Ti = { type: "literal", value: "]", description: '"]"' }, Li = "TO", an = { type: "literal", value: "TO", description: '"TO"' }, l = 0, x = 0, Pt = [{ line: 1, column: 1, seenCR: !1 }], se = 0, cr = [], f = 0, Tt;
2456
+ }, on = "=", nn = { type: "literal", value: "=", description: '"="' }, Oi = "[", Pi = { type: "literal", value: "[", description: '"["' }, Ti = "]", Li = { type: "literal", value: "]", description: '"]"' }, Di = "TO", an = { type: "literal", value: "TO", description: '"TO"' }, l = 0, x = 0, Pt = [{ line: 1, column: 1, seenCR: !1 }], se = 0, pr = [], f = 0, Tt;
2451
2457
  if ("startRule" in n) {
2452
2458
  if (!(n.startRule in c))
2453
2459
  throw new Error(`Can't start parsing from rule "` + n.startRule + '".');
@@ -2460,14 +2466,14 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2460
2466
  return Lt(x, l);
2461
2467
  }
2462
2468
  function J(i) {
2463
- throw zi(
2469
+ throw Ni(
2464
2470
  i,
2465
2471
  null,
2466
2472
  s.substring(x, l),
2467
2473
  Lt(x, l)
2468
2474
  );
2469
2475
  }
2470
- function Di(i) {
2476
+ function zi(i) {
2471
2477
  var a = Pt[i], p, u;
2472
2478
  if (a)
2473
2479
  return a;
@@ -2483,7 +2489,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2483
2489
  return Pt[i] = a, a;
2484
2490
  }
2485
2491
  function Lt(i, a) {
2486
- var p = Di(i), u = Di(a);
2492
+ var p = zi(i), u = zi(a);
2487
2493
  return {
2488
2494
  start: {
2489
2495
  offset: i,
@@ -2498,9 +2504,9 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2498
2504
  };
2499
2505
  }
2500
2506
  function b(i) {
2501
- l < se || (l > se && (se = l, cr = []), cr.push(i));
2507
+ l < se || (l > se && (se = l, pr = []), pr.push(i));
2502
2508
  }
2503
- function zi(i, a, p, u) {
2509
+ function Ni(i, a, p, u) {
2504
2510
  function v(L) {
2505
2511
  var N = 1;
2506
2512
  for (L.sort(function(ye, ee) {
@@ -2523,10 +2529,10 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2523
2529
  return "\\u" + Bt(ue);
2524
2530
  });
2525
2531
  }
2526
- var ee = new Array(L.length), Gi, Ji, pt;
2527
- for (pt = 0; pt < L.length; pt++)
2528
- ee[pt] = L[pt].description;
2529
- return Gi = L.length > 1 ? ee.slice(0, -1).join(", ") + " or " + ee[L.length - 1] : ee[0], Ji = N ? '"' + ye(N) + '"' : "end of input", "Expected " + Gi + " but " + Ji + " found.";
2532
+ var ee = new Array(L.length), Ji, es, ut;
2533
+ for (ut = 0; ut < L.length; ut++)
2534
+ ee[ut] = L[ut].description;
2535
+ return Ji = L.length > 1 ? ee.slice(0, -1).join(", ") + " or " + ee[L.length - 1] : ee[0], es = N ? '"' + ye(N) + '"' : "end of input", "Expected " + Ji + " but " + es + " found.";
2530
2536
  }
2531
2537
  return a !== null && v(a), new t(
2532
2538
  i !== null ? i : _(a, p),
@@ -2535,7 +2541,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2535
2541
  u
2536
2542
  );
2537
2543
  }
2538
- function Ni() {
2544
+ function Mi() {
2539
2545
  var i, a, p, u;
2540
2546
  for (i = l, a = [], p = w(); p !== r; )
2541
2547
  a.push(p), p = w();
@@ -2543,17 +2549,17 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2543
2549
  }
2544
2550
  function Dt() {
2545
2551
  var i, a, p, u;
2546
- return i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p = mn(), p !== r ? (a = [a, p], i = a) : (l = i, i = r)) : (l = i, i = r), i === r && (i = l, a = pr(), a !== r ? (p = zt(), p !== r ? (u = Dt(), u !== r ? (x = i, a = A(a, u), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r), i === r && (i = pr())), i;
2552
+ return i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p = mn(), p !== r ? (a = [a, p], i = a) : (l = i, i = r)) : (l = i, i = r), i === r && (i = l, a = ur(), a !== r ? (p = zt(), p !== r ? (u = Dt(), u !== r ? (x = i, a = A(a, u), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r), i === r && (i = ur())), i;
2547
2553
  }
2548
- function pr() {
2554
+ function ur() {
2549
2555
  var i, a, p, u;
2550
- return i = l, a = Mi(), a !== r ? (p = Nt(), p !== r ? (u = pr(), u !== r ? (x = i, a = y(a, u), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r), i === r && (i = Mi()), i;
2556
+ return i = l, a = ji(), a !== r ? (p = Nt(), p !== r ? (u = ur(), u !== r ? (x = i, a = y(a, u), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r), i === r && (i = ji()), i;
2551
2557
  }
2552
- function Mi() {
2558
+ function ji() {
2553
2559
  var i, a, p;
2554
- return i = l, a = fr(), a !== r ? (p = ji(), p !== r ? (x = i, a = C(p), i = a) : (l = i, i = r)) : (l = i, i = r), i === r && (i = ji()), i;
2560
+ return i = l, a = gr(), a !== r ? (p = Ri(), p !== r ? (x = i, a = C(p), i = a) : (l = i, i = r)) : (l = i, i = r), i === r && (i = Ri()), i;
2555
2561
  }
2556
- function ji() {
2562
+ function Ri() {
2557
2563
  var i, a, p, u, v, _;
2558
2564
  if (i = l, s.charCodeAt(l) === 40 ? (a = S, l++) : (a = r, f === 0 && b(k)), a !== r) {
2559
2565
  for (p = [], u = w(); u !== r; )
@@ -2565,7 +2571,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2565
2571
  }
2566
2572
  function pn() {
2567
2573
  var i, a, p, u, v, _, L, N, ye, ee;
2568
- if (i = l, a = ur(), a !== r) {
2574
+ if (i = l, a = hr(), a !== r) {
2569
2575
  for (p = [], u = w(); u !== r; )
2570
2576
  p.push(u), u = w();
2571
2577
  if (p !== r)
@@ -2573,10 +2579,10 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2573
2579
  for (v = [], _ = w(); _ !== r; )
2574
2580
  v.push(_), _ = w();
2575
2581
  if (v !== r)
2576
- if (s.charCodeAt(l) === 123 ? (_ = Ue, l++) : (_ = r, f === 0 && b(tr)), _ !== r) {
2582
+ if (s.charCodeAt(l) === 123 ? (_ = He, l++) : (_ = r, f === 0 && b(rr)), _ !== r) {
2577
2583
  for (L = [], N = w(); N !== r; )
2578
2584
  L.push(N), N = w();
2579
- L !== r ? (N = Dt(), N !== r ? (ye = jt(), ye !== r ? (s.charCodeAt(l) === 125 ? (ee = rr, l++) : (ee = r, f === 0 && b(ir)), ee !== r ? (x = i, a = ro(a, N, ye), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r);
2585
+ L !== r ? (N = Dt(), N !== r ? (ye = jt(), ye !== r ? (s.charCodeAt(l) === 125 ? (ee = ir, l++) : (ee = r, f === 0 && b(sr)), ee !== r ? (x = i, a = ro(a, N, ye), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r);
2580
2586
  } else
2581
2587
  l = i, i = r;
2582
2588
  else
@@ -2593,20 +2599,20 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2593
2599
  var i;
2594
2600
  return i = hn(), i === r && (i = dn(), i === r && (i = fn())), i;
2595
2601
  }
2596
- function ur() {
2602
+ function hr() {
2597
2603
  var i;
2598
- return f++, i = gr(), f--, i === r && f === 0 && b(io), i;
2604
+ return f++, i = vr(), f--, i === r && f === 0 && b(io), i;
2599
2605
  }
2600
2606
  function hn() {
2601
2607
  var i, a, p, u, v, _;
2602
- if (i = l, a = ur(), a !== r) {
2608
+ if (i = l, a = hr(), a !== r) {
2603
2609
  for (p = [], u = w(); u !== r; )
2604
2610
  p.push(u), u = w();
2605
2611
  if (p !== r)
2606
- if (u = Ii(), u !== r) {
2612
+ if (u = qi(), u !== r) {
2607
2613
  for (v = [], _ = w(); _ !== r; )
2608
2614
  v.push(_), _ = w();
2609
- v !== r ? (_ = gr(), _ !== r ? (x = i, a = so(a, u, _), i = a) : (l = i, i = r)) : (l = i, i = r);
2615
+ v !== r ? (_ = vr(), _ !== r ? (x = i, a = so(a, u, _), i = a) : (l = i, i = r)) : (l = i, i = r);
2610
2616
  } else
2611
2617
  l = i, i = r;
2612
2618
  else
@@ -2617,14 +2623,14 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2617
2623
  }
2618
2624
  function dn() {
2619
2625
  var i, a, p, u, v, _;
2620
- if (i = l, a = ur(), a !== r) {
2626
+ if (i = l, a = hr(), a !== r) {
2621
2627
  for (p = [], u = w(); u !== r; )
2622
2628
  p.push(u), u = w();
2623
2629
  if (p !== r)
2624
2630
  if (s.charCodeAt(l) === 58 ? (u = ie, l++) : (u = r, f === 0 && b(W)), u !== r) {
2625
2631
  for (v = [], _ = w(); _ !== r; )
2626
2632
  v.push(_), _ = w();
2627
- v !== r ? (_ = hr(), _ !== r ? (x = i, a = oo(a, _), i = a) : (l = i, i = r)) : (l = i, i = r);
2633
+ v !== r ? (_ = dr(), _ !== r ? (x = i, a = oo(a, _), i = a) : (l = i, i = r)) : (l = i, i = r);
2628
2634
  } else
2629
2635
  l = i, i = r;
2630
2636
  else
@@ -2635,33 +2641,33 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2635
2641
  }
2636
2642
  function fn() {
2637
2643
  var i, a;
2638
- return i = l, a = Ui(), a !== r && (x = i, a = no(a)), i = a, i;
2644
+ return i = l, a = Fi(), a !== r && (x = i, a = no(a)), i = a, i;
2639
2645
  }
2640
- function hr() {
2646
+ function dr() {
2641
2647
  var i, a, p, u, v, _;
2642
2648
  if (i = l, s.charCodeAt(l) === 40 ? (a = S, l++) : (a = r, f === 0 && b(k)), a !== r) {
2643
2649
  for (p = [], u = w(); u !== r; )
2644
2650
  p.push(u), u = w();
2645
- p !== r ? (u = Ri(), u !== r ? (v = jt(), v !== r ? (s.charCodeAt(l) === 41 ? (_ = D, l++) : (_ = r, f === 0 && b(j)), _ !== r ? (x = i, a = ao(u, v), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r);
2651
+ p !== r ? (u = Bi(), u !== r ? (v = jt(), v !== r ? (s.charCodeAt(l) === 41 ? (_ = D, l++) : (_ = r, f === 0 && b(j)), _ !== r ? (x = i, a = ao(u, v), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r);
2646
2652
  } else
2647
2653
  l = i, i = r;
2648
- return i === r && (i = Ui()), i;
2654
+ return i === r && (i = Fi()), i;
2649
2655
  }
2650
- function Ri() {
2656
+ function Bi() {
2651
2657
  var i, a, p, u;
2652
- return i = l, a = dr(), a !== r ? (p = zt(), p !== r ? (u = Ri(), u !== r ? (x = i, a = lo(a, u), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r), i === r && (i = dr()), i;
2658
+ return i = l, a = fr(), a !== r ? (p = zt(), p !== r ? (u = Bi(), u !== r ? (x = i, a = lo(a, u), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r), i === r && (i = fr()), i;
2653
2659
  }
2654
- function dr() {
2660
+ function fr() {
2655
2661
  var i, a, p, u;
2656
- return i = l, a = Bi(), a !== r ? (p = Nt(), p !== r ? (u = dr(), u !== r ? (x = i, a = co(a, u), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r), i === r && (i = Bi()), i;
2662
+ return i = l, a = Ui(), a !== r ? (p = Nt(), p !== r ? (u = fr(), u !== r ? (x = i, a = co(a, u), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r), i === r && (i = Ui()), i;
2657
2663
  }
2658
- function Bi() {
2664
+ function Ui() {
2659
2665
  var i, a, p;
2660
- return i = l, a = fr(), a !== r ? (p = hr(), p !== r ? (x = i, a = po(p), i = a) : (l = i, i = r)) : (l = i, i = r), i === r && (i = hr()), i;
2666
+ return i = l, a = gr(), a !== r ? (p = dr(), p !== r ? (x = i, a = po(p), i = a) : (l = i, i = r)) : (l = i, i = r), i === r && (i = dr()), i;
2661
2667
  }
2662
- function Ui() {
2668
+ function Fi() {
2663
2669
  var i, a;
2664
- return f++, i = l, a = Mt(), a !== r && (x = i, a = ho(a)), i = a, i === r && (i = l, a = Fi(), a !== r && (x = i, a = fo(a)), i = a), f--, i === r && (a = r, f === 0 && b(uo)), i;
2670
+ return f++, i = l, a = Mt(), a !== r && (x = i, a = ho(a)), i = a, i === r && (i = l, a = Hi(), a !== r && (x = i, a = fo(a)), i = a), f--, i === r && (a = r, f === 0 && b(uo)), i;
2665
2671
  }
2666
2672
  function zt() {
2667
2673
  var i, a, p, u, v;
@@ -2671,7 +2677,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2671
2677
  else
2672
2678
  a = r;
2673
2679
  if (a !== r)
2674
- if (s.substr(l, 2).toLowerCase() === Yr ? (p = s.substr(l, 2), l += 2) : (p = r, f === 0 && b(Zr)), p !== r) {
2680
+ if (s.substr(l, 2).toLowerCase() === Zr ? (p = s.substr(l, 2), l += 2) : (p = r, f === 0 && b(Kr)), p !== r) {
2675
2681
  if (u = [], v = w(), v !== r)
2676
2682
  for (; v !== r; )
2677
2683
  u.push(v), v = w();
@@ -2682,7 +2688,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2682
2688
  l = i, i = r;
2683
2689
  else
2684
2690
  l = i, i = r;
2685
- return i === r && (i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p = qi(), p !== r ? (a = [a, p], i = a) : (l = i, i = r)) : (l = i, i = r)), f--, i === r && (a = r, f === 0 && b(go)), i;
2691
+ return i === r && (i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p = Qi(), p !== r ? (a = [a, p], i = a) : (l = i, i = r)) : (l = i, i = r)), f--, i === r && (a = r, f === 0 && b(go)), i;
2686
2692
  }
2687
2693
  function Nt() {
2688
2694
  var i, a, p, u, v;
@@ -2692,7 +2698,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2692
2698
  else
2693
2699
  a = r;
2694
2700
  if (a !== r)
2695
- if (s.substr(l, 3).toLowerCase() === Kr ? (p = s.substr(l, 3), l += 3) : (p = r, f === 0 && b(Xr)), p !== r) {
2701
+ if (s.substr(l, 3).toLowerCase() === Xr ? (p = s.substr(l, 3), l += 3) : (p = r, f === 0 && b(Vr)), p !== r) {
2696
2702
  if (u = [], v = w(), v !== r)
2697
2703
  for (; v !== r; )
2698
2704
  u.push(v), v = w();
@@ -2703,11 +2709,11 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2703
2709
  l = i, i = r;
2704
2710
  else
2705
2711
  l = i, i = r;
2706
- return i === r && (i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p = Qi(), p !== r ? (a = [a, p], i = a) : (l = i, i = r)) : (l = i, i = r)), f--, i === r && (a = r, f === 0 && b(vo)), i;
2712
+ return i === r && (i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p = Wi(), p !== r ? (a = [a, p], i = a) : (l = i, i = r)) : (l = i, i = r)), f--, i === r && (a = r, f === 0 && b(vo)), i;
2707
2713
  }
2708
- function fr() {
2714
+ function gr() {
2709
2715
  var i, a, p, u;
2710
- if (f++, i = l, s.substr(l, 3).toLowerCase() === Vr ? (a = s.substr(l, 3), l += 3) : (a = r, f === 0 && b(Gr)), a !== r) {
2716
+ if (f++, i = l, s.substr(l, 3).toLowerCase() === Gr ? (a = s.substr(l, 3), l += 3) : (a = r, f === 0 && b(Jr)), a !== r) {
2711
2717
  if (p = [], u = w(), u !== r)
2712
2718
  for (; u !== r; )
2713
2719
  p.push(u), u = w();
@@ -2716,22 +2722,22 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2716
2722
  p !== r ? (a = [a, p], i = a) : (l = i, i = r);
2717
2723
  } else
2718
2724
  l = i, i = r;
2719
- return i === r && (i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p = Wi(), p !== r ? (a = [a, p], i = a) : (l = i, i = r)) : (l = i, i = r)), f--, i === r && (a = r, f === 0 && b(bo)), i;
2725
+ return i === r && (i = l, x = l, a = m(), a ? a = void 0 : a = r, a !== r ? (p = Yi(), p !== r ? (a = [a, p], i = a) : (l = i, i = r)) : (l = i, i = r)), f--, i === r && (a = r, f === 0 && b(bo)), i;
2720
2726
  }
2721
- function gr() {
2727
+ function vr() {
2722
2728
  var i;
2723
- return f++, i = Mt(), i === r && (i = Fi()), f--, i === r && f === 0 && b(yo), i;
2729
+ return f++, i = Mt(), i === r && (i = Hi()), f--, i === r && f === 0 && b(yo), i;
2724
2730
  }
2725
2731
  function Mt() {
2726
2732
  var i, a, p, u, v, _;
2727
- if (i = l, s.charCodeAt(l) === 34 ? (a = ot, l++) : (a = r, f === 0 && b(nt)), a !== r) {
2728
- for (p = [], u = Ie(); u !== r; )
2729
- p.push(u), u = Ie();
2733
+ if (i = l, s.charCodeAt(l) === 34 ? (a = nt, l++) : (a = r, f === 0 && b(at)), a !== r) {
2734
+ for (p = [], u = Qe(); u !== r; )
2735
+ p.push(u), u = Qe();
2730
2736
  if (p !== r)
2731
- if (u = ct(), u !== r) {
2732
- for (v = [], _ = Ie(); _ !== r; )
2733
- v.push(_), _ = Ie();
2734
- v !== r ? (s.charCodeAt(l) === 34 ? (_ = ot, l++) : (_ = r, f === 0 && b(nt)), _ !== r ? (x = i, a = sr(p, u, v), i = a) : (l = i, i = r)) : (l = i, i = r);
2737
+ if (u = pt(), u !== r) {
2738
+ for (v = [], _ = Qe(); _ !== r; )
2739
+ v.push(_), _ = Qe();
2740
+ v !== r ? (s.charCodeAt(l) === 34 ? (_ = nt, l++) : (_ = r, f === 0 && b(at)), _ !== r ? (x = i, a = or(p, u, v), i = a) : (l = i, i = r)) : (l = i, i = r);
2735
2741
  } else
2736
2742
  l = i, i = r;
2737
2743
  else
@@ -2739,44 +2745,44 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2739
2745
  } else
2740
2746
  l = i, i = r;
2741
2747
  if (i === r)
2742
- if (i = l, s.charCodeAt(l) === 34 ? (a = ot, l++) : (a = r, f === 0 && b(nt)), a !== r) {
2743
- for (p = [], u = Ie(); u !== r; )
2744
- p.push(u), u = Ie();
2745
- p !== r ? (s.charCodeAt(l) === 34 ? (u = ot, l++) : (u = r, f === 0 && b(nt)), u !== r ? (x = i, a = mo(p), i = a) : (l = i, i = r)) : (l = i, i = r);
2748
+ if (i = l, s.charCodeAt(l) === 34 ? (a = nt, l++) : (a = r, f === 0 && b(at)), a !== r) {
2749
+ for (p = [], u = Qe(); u !== r; )
2750
+ p.push(u), u = Qe();
2751
+ p !== r ? (s.charCodeAt(l) === 34 ? (u = nt, l++) : (u = r, f === 0 && b(at)), u !== r ? (x = i, a = mo(p), i = a) : (l = i, i = r)) : (l = i, i = r);
2746
2752
  } else
2747
2753
  l = i, i = r;
2748
2754
  return i;
2749
2755
  }
2750
- function Ie() {
2756
+ function Qe() {
2751
2757
  var i, a, p;
2752
- return i = vr(), i === r && (i = l, s.charCodeAt(l) === 92 ? (a = at, l++) : (a = r, f === 0 && b(lt)), a !== r ? ($o.test(s.charAt(l)) ? (p = s.charAt(l), l++) : (p = r, f === 0 && b(wo)), p !== r ? (x = i, a = kt(p), i = a) : (l = i, i = r)) : (l = i, i = r), i === r && (i = l, a = l, f++, p = ct(), f--, p === r ? a = void 0 : (l = a, a = r), a !== r ? (_o.test(s.charAt(l)) ? (p = s.charAt(l), l++) : (p = r, f === 0 && b(xo)), p !== r ? (x = i, a = kt(p), i = a) : (l = i, i = r)) : (l = i, i = r))), i;
2758
+ return i = br(), i === r && (i = l, s.charCodeAt(l) === 92 ? (a = lt, l++) : (a = r, f === 0 && b(ct)), a !== r ? ($o.test(s.charAt(l)) ? (p = s.charAt(l), l++) : (p = r, f === 0 && b(wo)), p !== r ? (x = i, a = kt(p), i = a) : (l = i, i = r)) : (l = i, i = r), i === r && (i = l, a = l, f++, p = pt(), f--, p === r ? a = void 0 : (l = a, a = r), a !== r ? (_o.test(s.charAt(l)) ? (p = s.charAt(l), l++) : (p = r, f === 0 && b(xo)), p !== r ? (x = i, a = kt(p), i = a) : (l = i, i = r)) : (l = i, i = r))), i;
2753
2759
  }
2754
- function Fi() {
2760
+ function Hi() {
2755
2761
  var i, a, p, u, v;
2756
- for (i = l, a = [], p = qe(); p !== r; )
2757
- a.push(p), p = qe();
2762
+ for (i = l, a = [], p = We(); p !== r; )
2763
+ a.push(p), p = We();
2758
2764
  if (a !== r)
2759
- if (p = ct(), p !== r) {
2760
- for (u = [], v = qe(); v !== r; )
2761
- u.push(v), v = qe();
2762
- u !== r ? (x = i, a = sr(a, p, u), i = a) : (l = i, i = r);
2765
+ if (p = pt(), p !== r) {
2766
+ for (u = [], v = We(); v !== r; )
2767
+ u.push(v), v = We();
2768
+ u !== r ? (x = i, a = or(a, p, u), i = a) : (l = i, i = r);
2763
2769
  } else
2764
2770
  l = i, i = r;
2765
2771
  else
2766
2772
  l = i, i = r;
2767
2773
  if (i === r) {
2768
- if (i = l, a = [], p = qe(), p !== r)
2774
+ if (i = l, a = [], p = We(), p !== r)
2769
2775
  for (; p !== r; )
2770
- a.push(p), p = qe();
2776
+ a.push(p), p = We();
2771
2777
  else
2772
2778
  a = r;
2773
2779
  a !== r && (x = i, a = So(a)), i = a;
2774
2780
  }
2775
2781
  return i;
2776
2782
  }
2777
- function qe() {
2783
+ function We() {
2778
2784
  var i, a, p, u, v;
2779
- return i = vr(), i === r && (i = vn(), i === r && (i = bn(), i === r && (i = gn(), i === r && (i = l, a = l, f++, p = Hi(), f--, p === r ? a = void 0 : (l = a, a = r), a !== r ? (p = l, f++, u = yn(), f--, u === r ? p = void 0 : (l = p, p = r), p !== r ? (u = l, f++, v = ct(), f--, v === r ? u = void 0 : (l = u, u = r), u !== r ? (s.length > l ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(Jr)), v !== r ? (x = i, a = kt(v), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r))))), i;
2785
+ return i = br(), i === r && (i = vn(), i === r && (i = bn(), i === r && (i = gn(), i === r && (i = l, a = l, f++, p = Ii(), f--, p === r ? a = void 0 : (l = a, a = r), a !== r ? (p = l, f++, u = yn(), f--, u === r ? p = void 0 : (l = p, p = r), p !== r ? (u = l, f++, v = pt(), f--, v === r ? u = void 0 : (l = u, u = r), u !== r ? (s.length > l ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(ei)), v !== r ? (x = i, a = kt(v), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r))))), i;
2780
2786
  }
2781
2787
  function gn() {
2782
2788
  var i, a;
@@ -2787,10 +2793,10 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2787
2793
  for (i = l, a = [], p = w(); p !== r; )
2788
2794
  a.push(p), p = w();
2789
2795
  if (a !== r)
2790
- if (p = ct(), p !== r) {
2796
+ if (p = pt(), p !== r) {
2791
2797
  for (u = [], v = w(); v !== r; )
2792
2798
  u.push(v), v = w();
2793
- u !== r ? (x = i, a = sr(a, p, u), i = a) : (l = i, i = r);
2799
+ u !== r ? (x = i, a = or(a, p, u), i = a) : (l = i, i = r);
2794
2800
  } else
2795
2801
  l = i, i = r;
2796
2802
  else
@@ -2800,44 +2806,44 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2800
2806
  i.push(a), a = w();
2801
2807
  return i;
2802
2808
  }
2803
- function vr() {
2809
+ function br() {
2804
2810
  var i, a;
2805
- return i = l, s.substr(l, 2) === ei ? (a = ei, l += 2) : (a = r, f === 0 && b(Co)), a !== r && (x = i, a = ko()), i = a, i === r && (i = l, s.substr(l, 2) === ti ? (a = ti, l += 2) : (a = r, f === 0 && b(Eo)), a !== r && (x = i, a = Oo()), i = a, i === r && (i = l, s.substr(l, 2) === ri ? (a = ri, l += 2) : (a = r, f === 0 && b(Po)), a !== r && (x = i, a = To()), i = a)), i;
2811
+ return i = l, s.substr(l, 2) === ti ? (a = ti, l += 2) : (a = r, f === 0 && b(Co)), a !== r && (x = i, a = ko()), i = a, i === r && (i = l, s.substr(l, 2) === ri ? (a = ri, l += 2) : (a = r, f === 0 && b(Eo)), a !== r && (x = i, a = Oo()), i = a, i === r && (i = l, s.substr(l, 2) === ii ? (a = ii, l += 2) : (a = r, f === 0 && b(Po)), a !== r && (x = i, a = To()), i = a)), i;
2806
2812
  }
2807
2813
  function vn() {
2808
2814
  var i, a, p;
2809
- return i = l, s.charCodeAt(l) === 92 ? (a = at, l++) : (a = r, f === 0 && b(lt)), a !== r ? (p = Hi(), p !== r ? (x = i, a = kt(p), i = a) : (l = i, i = r)) : (l = i, i = r), i;
2815
+ return i = l, s.charCodeAt(l) === 92 ? (a = lt, l++) : (a = r, f === 0 && b(ct)), a !== r ? (p = Ii(), p !== r ? (x = i, a = kt(p), i = a) : (l = i, i = r)) : (l = i, i = r), i;
2810
2816
  }
2811
2817
  function bn() {
2812
2818
  var i, a, p;
2813
- return i = l, s.charCodeAt(l) === 92 ? (a = at, l++) : (a = r, f === 0 && b(lt)), a !== r ? (s.substr(l, 2).toLowerCase() === Yr ? (p = s.substr(l, 2), l += 2) : (p = r, f === 0 && b(Zr)), p === r && (s.substr(l, 3).toLowerCase() === Kr ? (p = s.substr(l, 3), l += 3) : (p = r, f === 0 && b(Xr)), p === r && (s.substr(l, 3).toLowerCase() === Vr ? (p = s.substr(l, 3), l += 3) : (p = r, f === 0 && b(Gr)))), p !== r ? (x = i, a = Lo(p), i = a) : (l = i, i = r)) : (l = i, i = r), i;
2819
+ return i = l, s.charCodeAt(l) === 92 ? (a = lt, l++) : (a = r, f === 0 && b(ct)), a !== r ? (s.substr(l, 2).toLowerCase() === Zr ? (p = s.substr(l, 2), l += 2) : (p = r, f === 0 && b(Kr)), p === r && (s.substr(l, 3).toLowerCase() === Xr ? (p = s.substr(l, 3), l += 3) : (p = r, f === 0 && b(Vr)), p === r && (s.substr(l, 3).toLowerCase() === Gr ? (p = s.substr(l, 3), l += 3) : (p = r, f === 0 && b(Jr)))), p !== r ? (x = i, a = Lo(p), i = a) : (l = i, i = r)) : (l = i, i = r), i;
2814
2820
  }
2815
2821
  function yn() {
2816
2822
  var i;
2817
- return i = zt(), i === r && (i = Nt(), i === r && (i = fr())), i;
2823
+ return i = zt(), i === r && (i = Nt(), i === r && (i = gr())), i;
2818
2824
  }
2819
- function Hi() {
2825
+ function Ii() {
2820
2826
  var i;
2821
2827
  return Do.test(s.charAt(l)) ? (i = s.charAt(l), l++) : (i = r, f === 0 && b(zo)), i;
2822
2828
  }
2823
- function Ii() {
2829
+ function qi() {
2824
2830
  var i, a;
2825
- return i = l, s.substr(l, 2) === ii ? (a = ii, l += 2) : (a = r, f === 0 && b(No)), a !== r && (x = i, a = Mo()), i = a, i === r && (i = l, s.substr(l, 2) === si ? (a = si, l += 2) : (a = r, f === 0 && b(jo)), a !== r && (x = i, a = Ro()), i = a, i === r && (i = l, s.charCodeAt(l) === 60 ? (a = oi, l++) : (a = r, f === 0 && b(ni)), a !== r && (x = i, a = Bo()), i = a, i === r && (i = l, s.charCodeAt(l) === 62 ? (a = ai, l++) : (a = r, f === 0 && b(li)), a !== r && (x = i, a = Uo()), i = a))), i;
2831
+ return i = l, s.substr(l, 2) === si ? (a = si, l += 2) : (a = r, f === 0 && b(No)), a !== r && (x = i, a = Mo()), i = a, i === r && (i = l, s.substr(l, 2) === oi ? (a = oi, l += 2) : (a = r, f === 0 && b(jo)), a !== r && (x = i, a = Ro()), i = a, i === r && (i = l, s.charCodeAt(l) === 60 ? (a = ni, l++) : (a = r, f === 0 && b(ai)), a !== r && (x = i, a = Bo()), i = a, i === r && (i = l, s.charCodeAt(l) === 62 ? (a = li, l++) : (a = r, f === 0 && b(ci)), a !== r && (x = i, a = Uo()), i = a))), i;
2826
2832
  }
2827
2833
  function w() {
2828
2834
  var i;
2829
2835
  return f++, Ho.test(s.charAt(l)) ? (i = s.charAt(l), l++) : (i = r, f === 0 && b(Io)), f--, i === r && f === 0 && b(Fo), i;
2830
2836
  }
2831
- function ct() {
2837
+ function pt() {
2832
2838
  var i, a, p;
2833
- return i = l, x = l, a = qo(), a ? a = void 0 : a = r, a !== r ? (s.substr(l, 14) === ci ? (p = ci, l += 14) : (p = r, f === 0 && b(Qo)), p !== r ? (x = i, a = Wo(), i = a) : (l = i, i = r)) : (l = i, i = r), i;
2839
+ return i = l, x = l, a = qo(), a ? a = void 0 : a = r, a !== r ? (s.substr(l, 14) === pi ? (p = pi, l += 14) : (p = r, f === 0 && b(Qo)), p !== r ? (x = i, a = Wo(), i = a) : (l = i, i = r)) : (l = i, i = r), i;
2834
2840
  }
2835
- function qi() {
2841
+ function Qi() {
2836
2842
  var i, a, p, u, v;
2837
2843
  for (i = l, a = [], p = w(); p !== r; )
2838
2844
  a.push(p), p = w();
2839
2845
  if (a !== r)
2840
- if (s.substr(l, 2) === pi ? (p = pi, l += 2) : (p = r, f === 0 && b(Yo)), p !== r) {
2846
+ if (s.substr(l, 2) === ui ? (p = ui, l += 2) : (p = r, f === 0 && b(Yo)), p !== r) {
2841
2847
  for (u = [], v = w(); v !== r; )
2842
2848
  u.push(v), v = w();
2843
2849
  u !== r ? (x = i, a = Zo(), i = a) : (l = i, i = r);
@@ -2847,39 +2853,39 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2847
2853
  l = i, i = r;
2848
2854
  return i;
2849
2855
  }
2850
- function Qi() {
2856
+ function Wi() {
2851
2857
  var i, a, p, u, v;
2852
2858
  for (i = l, a = [], p = w(); p !== r; )
2853
2859
  a.push(p), p = w();
2854
2860
  if (a !== r)
2855
- if (s.substr(l, 2) === ui ? (p = ui, l += 2) : (p = r, f === 0 && b(Ko)), p !== r) {
2861
+ if (s.substr(l, 2) === hi ? (p = hi, l += 2) : (p = r, f === 0 && b(Ko)), p !== r) {
2856
2862
  for (u = [], v = w(); v !== r; )
2857
2863
  u.push(v), v = w();
2858
- u !== r ? (x = i, a = hi(), i = a) : (l = i, i = r);
2864
+ u !== r ? (x = i, a = di(), i = a) : (l = i, i = r);
2859
2865
  } else
2860
2866
  l = i, i = r;
2861
2867
  else
2862
2868
  l = i, i = r;
2863
- return i === r && (i = l, s.charCodeAt(l) === 43 ? (a = di, l++) : (a = r, f === 0 && b(fi)), a !== r && (x = i, a = hi()), i = a), i;
2869
+ return i === r && (i = l, s.charCodeAt(l) === 43 ? (a = fi, l++) : (a = r, f === 0 && b(gi)), a !== r && (x = i, a = di()), i = a), i;
2864
2870
  }
2865
- function Wi() {
2871
+ function Yi() {
2866
2872
  var i, a;
2867
- return i = l, s.charCodeAt(l) === 45 ? (a = gi, l++) : (a = r, f === 0 && b(vi)), a !== r && (x = i, a = bi()), i = a, i === r && (i = l, s.charCodeAt(l) === 33 ? (a = yi, l++) : (a = r, f === 0 && b(mi)), a !== r && (x = i, a = bi()), i = a), i;
2873
+ return i = l, s.charCodeAt(l) === 45 ? (a = vi, l++) : (a = r, f === 0 && b(bi)), a !== r && (x = i, a = yi()), i = a, i === r && (i = l, s.charCodeAt(l) === 33 ? (a = mi, l++) : (a = r, f === 0 && b($i)), a !== r && (x = i, a = yi()), i = a), i;
2868
2874
  }
2869
2875
  function mn() {
2870
2876
  var i;
2871
- return i = $n(), i === r && (i = Yi(), i === r && (i = wn())), i;
2877
+ return i = $n(), i === r && (i = Zi(), i === r && (i = wn())), i;
2872
2878
  }
2873
2879
  function $n() {
2874
2880
  var i, a, p, u, v, _;
2875
- if (i = l, a = Qe(), a !== r) {
2881
+ if (i = l, a = Ye(), a !== r) {
2876
2882
  for (p = [], u = w(); u !== r; )
2877
2883
  p.push(u), u = w();
2878
2884
  if (p !== r)
2879
2885
  if (s.charCodeAt(l) === 58 ? (u = ie, l++) : (u = r, f === 0 && b(W)), u !== r) {
2880
2886
  for (v = [], _ = w(); _ !== r; )
2881
2887
  v.push(_), _ = w();
2882
- v !== r ? (_ = Yi(), _ !== r ? (a = [a, p, u, v, _], i = a) : (l = i, i = r)) : (l = i, i = r);
2888
+ v !== r ? (_ = Zi(), _ !== r ? (a = [a, p, u, v, _], i = a) : (l = i, i = r)) : (l = i, i = r);
2883
2889
  } else
2884
2890
  l = i, i = r;
2885
2891
  else
@@ -2888,20 +2894,20 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2888
2894
  l = i, i = r;
2889
2895
  return i;
2890
2896
  }
2891
- function Yi() {
2897
+ function Zi() {
2892
2898
  var i;
2893
- return i = _n(), i === r && (i = br(), i === r && (i = xn(), i === r && (i = Sn(), i === r && (i = An(), i === r && (i = Cn()))))), i;
2899
+ return i = _n(), i === r && (i = yr(), i === r && (i = xn(), i === r && (i = Sn(), i === r && (i = An(), i === r && (i = Cn()))))), i;
2894
2900
  }
2895
2901
  function wn() {
2896
2902
  var i, a, p, u, v, _;
2897
- if (i = l, s.substr(l, 8) === $i ? (a = $i, l += 8) : (a = r, f === 0 && b(Xo)), a !== r) {
2903
+ if (i = l, s.substr(l, 8) === wi ? (a = wi, l += 8) : (a = r, f === 0 && b(Xo)), a !== r) {
2898
2904
  for (p = [], u = w(); u !== r; )
2899
2905
  p.push(u), u = w();
2900
2906
  if (p !== r)
2901
2907
  if (s.charCodeAt(l) === 58 ? (u = ie, l++) : (u = r, f === 0 && b(W)), u !== r) {
2902
2908
  for (v = [], _ = w(); _ !== r; )
2903
2909
  v.push(_), _ = w();
2904
- v !== r ? (_ = Qe(), _ !== r ? (x = i, a = Vo(), i = a) : (l = i, i = r)) : (l = i, i = r);
2910
+ v !== r ? (_ = Ye(), _ !== r ? (x = i, a = Vo(), i = a) : (l = i, i = r)) : (l = i, i = r);
2905
2911
  } else
2906
2912
  l = i, i = r;
2907
2913
  else
@@ -2912,29 +2918,29 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2912
2918
  }
2913
2919
  function _n() {
2914
2920
  var i, a, p, u, v, _, L;
2915
- if (i = l, a = Ii(), a !== r) {
2921
+ if (i = l, a = qi(), a !== r) {
2916
2922
  for (p = [], u = w(); u !== r; )
2917
2923
  p.push(u), u = w();
2918
- p !== r ? (u = Qe(), u !== r ? (x = i, a = wi(), i = a) : (l = i, i = r)) : (l = i, i = r);
2924
+ p !== r ? (u = Ye(), u !== r ? (x = i, a = _i(), i = a) : (l = i, i = r)) : (l = i, i = r);
2919
2925
  } else
2920
2926
  l = i, i = r;
2921
2927
  if (i === r)
2922
2928
  if (i = l, a = On(), a !== r) {
2923
2929
  for (p = [], u = w(); u !== r; )
2924
2930
  p.push(u), u = w();
2925
- p !== r ? (u = Qe(), u !== r ? (v = Xi(), v !== r ? (_ = Qe(), _ !== r ? (L = Pn(), L !== r ? (x = i, a = wi(), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r);
2931
+ p !== r ? (u = Ye(), u !== r ? (v = Vi(), v !== r ? (_ = Ye(), _ !== r ? (L = Pn(), L !== r ? (x = i, a = _i(), i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r);
2926
2932
  } else
2927
2933
  l = i, i = r;
2928
2934
  return i;
2929
2935
  }
2930
- function br() {
2936
+ function yr() {
2931
2937
  var i, a, p, u, v;
2932
2938
  for (i = l, a = [], p = Rt(), p === r && (s.charCodeAt(l) === 42 ? (p = Et, l++) : (p = r, f === 0 && b(Ot))); p !== r; )
2933
2939
  a.push(p), p = Rt(), p === r && (s.charCodeAt(l) === 42 ? (p = Et, l++) : (p = r, f === 0 && b(Ot)));
2934
2940
  if (a !== r)
2935
- if (s.charCodeAt(l) === 63 ? (p = _i, l++) : (p = r, f === 0 && b(xi)), p !== r) {
2936
- for (u = [], v = br(); v !== r; )
2937
- u.push(v), v = br();
2941
+ if (s.charCodeAt(l) === 63 ? (p = xi, l++) : (p = r, f === 0 && b(Si)), p !== r) {
2942
+ for (u = [], v = yr(); v !== r; )
2943
+ u.push(v), v = yr();
2938
2944
  u !== r ? (x = i, a = Go(), i = a) : (l = i, i = r);
2939
2945
  } else
2940
2946
  l = i, i = r;
@@ -2944,20 +2950,20 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2944
2950
  }
2945
2951
  function xn() {
2946
2952
  var i, a, p, u;
2947
- if (i = l, s.charCodeAt(l) === 47 ? (a = or, l++) : (a = r, f === 0 && b(nr)), a !== r) {
2948
- for (p = [], Si.test(s.charAt(l)) ? (u = s.charAt(l), l++) : (u = r, f === 0 && b(Ai)); u !== r; )
2949
- p.push(u), Si.test(s.charAt(l)) ? (u = s.charAt(l), l++) : (u = r, f === 0 && b(Ai));
2950
- p !== r ? (s.charCodeAt(l) === 47 ? (u = or, l++) : (u = r, f === 0 && b(nr)), u !== r ? (x = i, a = Jo(), i = a) : (l = i, i = r)) : (l = i, i = r);
2953
+ if (i = l, s.charCodeAt(l) === 47 ? (a = nr, l++) : (a = r, f === 0 && b(ar)), a !== r) {
2954
+ for (p = [], Ai.test(s.charAt(l)) ? (u = s.charAt(l), l++) : (u = r, f === 0 && b(Ci)); u !== r; )
2955
+ p.push(u), Ai.test(s.charAt(l)) ? (u = s.charAt(l), l++) : (u = r, f === 0 && b(Ci));
2956
+ p !== r ? (s.charCodeAt(l) === 47 ? (u = nr, l++) : (u = r, f === 0 && b(ar)), u !== r ? (x = i, a = Jo(), i = a) : (l = i, i = r)) : (l = i, i = r);
2951
2957
  } else
2952
2958
  l = i, i = r;
2953
2959
  return i;
2954
2960
  }
2955
2961
  function Sn() {
2956
2962
  var i, a, p, u, v;
2957
- if (i = l, a = Zi(), a !== r)
2958
- if (s.charCodeAt(l) === 126 ? (p = ar, l++) : (p = r, f === 0 && b(lr)), p !== r) {
2959
- for (u = [], Fe.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(He)); v !== r; )
2960
- u.push(v), Fe.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(He));
2963
+ if (i = l, a = Ki(), a !== r)
2964
+ if (s.charCodeAt(l) === 126 ? (p = lr, l++) : (p = r, f === 0 && b(cr)), p !== r) {
2965
+ for (u = [], Ie.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(qe)); v !== r; )
2966
+ u.push(v), Ie.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(qe));
2961
2967
  u !== r ? (x = i, a = en(), i = a) : (l = i, i = r);
2962
2968
  } else
2963
2969
  l = i, i = r;
@@ -2968,9 +2974,9 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2968
2974
  function An() {
2969
2975
  var i, a, p, u, v;
2970
2976
  if (i = l, a = Mt(), a !== r)
2971
- if (s.charCodeAt(l) === 126 ? (p = ar, l++) : (p = r, f === 0 && b(lr)), p !== r) {
2972
- for (u = [], Fe.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(He)); v !== r; )
2973
- u.push(v), Fe.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(He));
2977
+ if (s.charCodeAt(l) === 126 ? (p = lr, l++) : (p = r, f === 0 && b(cr)), p !== r) {
2978
+ for (u = [], Ie.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(qe)); v !== r; )
2979
+ u.push(v), Ie.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(qe));
2974
2980
  u !== r ? (x = i, a = tn(), i = a) : (l = i, i = r);
2975
2981
  } else
2976
2982
  l = i, i = r;
@@ -2980,10 +2986,10 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2980
2986
  }
2981
2987
  function Cn() {
2982
2988
  var i, a, p, u, v;
2983
- if (i = l, a = Qe(), a !== r)
2984
- if (s.charCodeAt(l) === 94 ? (p = Ci, l++) : (p = r, f === 0 && b(ki)), p !== r) {
2985
- for (u = [], Fe.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(He)); v !== r; )
2986
- u.push(v), Fe.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(He));
2989
+ if (i = l, a = Ye(), a !== r)
2990
+ if (s.charCodeAt(l) === 94 ? (p = ki, l++) : (p = r, f === 0 && b(Ei)), p !== r) {
2991
+ for (u = [], Ie.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(qe)); v !== r; )
2992
+ u.push(v), Ie.test(s.charAt(l)) ? (v = s.charAt(l), l++) : (v = r, f === 0 && b(qe));
2987
2993
  u !== r ? (x = i, a = rn(), i = a) : (l = i, i = r);
2988
2994
  } else
2989
2995
  l = i, i = r;
@@ -2991,11 +2997,11 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2991
2997
  l = i, i = r;
2992
2998
  return i;
2993
2999
  }
2994
- function Qe() {
3000
+ function Ye() {
2995
3001
  var i;
2996
- return i = Mt(), i === r && (i = Zi()), i;
3002
+ return i = Mt(), i === r && (i = Ki()), i;
2997
3003
  }
2998
- function Zi() {
3004
+ function Ki() {
2999
3005
  var i, a;
3000
3006
  if (i = [], a = Rt(), a !== r)
3001
3007
  for (; a !== r; )
@@ -3006,21 +3012,21 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3006
3012
  }
3007
3013
  function Rt() {
3008
3014
  var i, a, p, u;
3009
- return i = vr(), i === r && (i = En(), i === r && (i = l, a = l, f++, p = Ki(), f--, p === r ? a = void 0 : (l = a, a = r), a !== r ? (p = l, f++, u = kn(), f--, u === r ? p = void 0 : (l = p, p = r), p !== r ? (s.length > l ? (u = s.charAt(l), l++) : (u = r, f === 0 && b(Jr)), u !== r ? (a = [a, p, u], i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r))), i;
3015
+ return i = br(), i === r && (i = En(), i === r && (i = l, a = l, f++, p = Xi(), f--, p === r ? a = void 0 : (l = a, a = r), a !== r ? (p = l, f++, u = kn(), f--, u === r ? p = void 0 : (l = p, p = r), p !== r ? (s.length > l ? (u = s.charAt(l), l++) : (u = r, f === 0 && b(ei)), u !== r ? (a = [a, p, u], i = a) : (l = i, i = r)) : (l = i, i = r)) : (l = i, i = r))), i;
3010
3016
  }
3011
3017
  function kn() {
3012
3018
  var i;
3013
- return i = zt(), i === r && (i = Nt(), i === r && (i = qi(), i === r && (i = Qi(), i === r && (i = Wi(), i === r && (i = Xi()))))), i;
3019
+ return i = zt(), i === r && (i = Nt(), i === r && (i = Qi(), i === r && (i = Wi(), i === r && (i = Yi(), i === r && (i = Vi()))))), i;
3014
3020
  }
3015
3021
  function En() {
3016
3022
  var i, a, p;
3017
- return i = l, s.charCodeAt(l) === 92 ? (a = at, l++) : (a = r, f === 0 && b(lt)), a !== r ? (p = Ki(), p !== r ? (x = i, a = sn(), i = a) : (l = i, i = r)) : (l = i, i = r), i;
3023
+ return i = l, s.charCodeAt(l) === 92 ? (a = lt, l++) : (a = r, f === 0 && b(ct)), a !== r ? (p = Xi(), p !== r ? (x = i, a = sn(), i = a) : (l = i, i = r)) : (l = i, i = r), i;
3018
3024
  }
3019
- function Ki() {
3025
+ function Xi() {
3020
3026
  var i;
3021
- return s.charCodeAt(l) === 43 ? (i = di, l++) : (i = r, f === 0 && b(fi)), i === r && (s.charCodeAt(l) === 45 ? (i = gi, l++) : (i = r, f === 0 && b(vi)), i === r && (s.charCodeAt(l) === 61 ? (i = on, l++) : (i = r, f === 0 && b(nn)), i === r && (s.charCodeAt(l) === 62 ? (i = ai, l++) : (i = r, f === 0 && b(li)), i === r && (s.charCodeAt(l) === 60 ? (i = oi, l++) : (i = r, f === 0 && b(ni)), i === r && (s.charCodeAt(l) === 33 ? (i = yi, l++) : (i = r, f === 0 && b(mi)), i === r && (s.charCodeAt(l) === 40 ? (i = S, l++) : (i = r, f === 0 && b(k)), i === r && (s.charCodeAt(l) === 41 ? (i = D, l++) : (i = r, f === 0 && b(j)), i === r && (s.charCodeAt(l) === 123 ? (i = Ue, l++) : (i = r, f === 0 && b(tr)), i === r && (s.charCodeAt(l) === 125 ? (i = rr, l++) : (i = r, f === 0 && b(ir)), i === r && (s.charCodeAt(l) === 91 ? (i = Ei, l++) : (i = r, f === 0 && b(Oi)), i === r && (s.charCodeAt(l) === 93 ? (i = Pi, l++) : (i = r, f === 0 && b(Ti)), i === r && (s.charCodeAt(l) === 94 ? (i = Ci, l++) : (i = r, f === 0 && b(ki)), i === r && (s.charCodeAt(l) === 34 ? (i = ot, l++) : (i = r, f === 0 && b(nt)), i === r && (s.charCodeAt(l) === 126 ? (i = ar, l++) : (i = r, f === 0 && b(lr)), i === r && (s.charCodeAt(l) === 42 ? (i = Et, l++) : (i = r, f === 0 && b(Ot)), i === r && (s.charCodeAt(l) === 63 ? (i = _i, l++) : (i = r, f === 0 && b(xi)), i === r && (s.charCodeAt(l) === 58 ? (i = ie, l++) : (i = r, f === 0 && b(W)), i === r && (s.charCodeAt(l) === 92 ? (i = at, l++) : (i = r, f === 0 && b(lt)), i === r && (s.charCodeAt(l) === 47 ? (i = or, l++) : (i = r, f === 0 && b(nr))))))))))))))))))))), i;
3027
+ return s.charCodeAt(l) === 43 ? (i = fi, l++) : (i = r, f === 0 && b(gi)), i === r && (s.charCodeAt(l) === 45 ? (i = vi, l++) : (i = r, f === 0 && b(bi)), i === r && (s.charCodeAt(l) === 61 ? (i = on, l++) : (i = r, f === 0 && b(nn)), i === r && (s.charCodeAt(l) === 62 ? (i = li, l++) : (i = r, f === 0 && b(ci)), i === r && (s.charCodeAt(l) === 60 ? (i = ni, l++) : (i = r, f === 0 && b(ai)), i === r && (s.charCodeAt(l) === 33 ? (i = mi, l++) : (i = r, f === 0 && b($i)), i === r && (s.charCodeAt(l) === 40 ? (i = S, l++) : (i = r, f === 0 && b(k)), i === r && (s.charCodeAt(l) === 41 ? (i = D, l++) : (i = r, f === 0 && b(j)), i === r && (s.charCodeAt(l) === 123 ? (i = He, l++) : (i = r, f === 0 && b(rr)), i === r && (s.charCodeAt(l) === 125 ? (i = ir, l++) : (i = r, f === 0 && b(sr)), i === r && (s.charCodeAt(l) === 91 ? (i = Oi, l++) : (i = r, f === 0 && b(Pi)), i === r && (s.charCodeAt(l) === 93 ? (i = Ti, l++) : (i = r, f === 0 && b(Li)), i === r && (s.charCodeAt(l) === 94 ? (i = ki, l++) : (i = r, f === 0 && b(Ei)), i === r && (s.charCodeAt(l) === 34 ? (i = nt, l++) : (i = r, f === 0 && b(at)), i === r && (s.charCodeAt(l) === 126 ? (i = lr, l++) : (i = r, f === 0 && b(cr)), i === r && (s.charCodeAt(l) === 42 ? (i = Et, l++) : (i = r, f === 0 && b(Ot)), i === r && (s.charCodeAt(l) === 63 ? (i = xi, l++) : (i = r, f === 0 && b(Si)), i === r && (s.charCodeAt(l) === 58 ? (i = ie, l++) : (i = r, f === 0 && b(W)), i === r && (s.charCodeAt(l) === 92 ? (i = lt, l++) : (i = r, f === 0 && b(ct)), i === r && (s.charCodeAt(l) === 47 ? (i = nr, l++) : (i = r, f === 0 && b(ar))))))))))))))))))))), i;
3022
3028
  }
3023
- function Xi() {
3029
+ function Vi() {
3024
3030
  var i, a, p, u, v;
3025
3031
  if (i = l, a = [], p = w(), p !== r)
3026
3032
  for (; p !== r; )
@@ -3028,7 +3034,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3028
3034
  else
3029
3035
  a = r;
3030
3036
  if (a !== r)
3031
- if (s.substr(l, 2) === Li ? (p = Li, l += 2) : (p = r, f === 0 && b(an)), p !== r) {
3037
+ if (s.substr(l, 2) === Di ? (p = Di, l += 2) : (p = r, f === 0 && b(an)), p !== r) {
3032
3038
  if (u = [], v = w(), v !== r)
3033
3039
  for (; v !== r; )
3034
3040
  u.push(v), v = w();
@@ -3043,18 +3049,18 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3043
3049
  }
3044
3050
  function On() {
3045
3051
  var i;
3046
- return s.charCodeAt(l) === 91 ? (i = Ei, l++) : (i = r, f === 0 && b(Oi)), i === r && (s.charCodeAt(l) === 123 ? (i = Ue, l++) : (i = r, f === 0 && b(tr))), i;
3052
+ return s.charCodeAt(l) === 91 ? (i = Oi, l++) : (i = r, f === 0 && b(Pi)), i === r && (s.charCodeAt(l) === 123 ? (i = He, l++) : (i = r, f === 0 && b(rr))), i;
3047
3053
  }
3048
3054
  function Pn() {
3049
3055
  var i;
3050
- return s.charCodeAt(l) === 93 ? (i = Pi, l++) : (i = r, f === 0 && b(Ti)), i === r && (s.charCodeAt(l) === 125 ? (i = rr, l++) : (i = r, f === 0 && b(ir))), i;
3056
+ return s.charCodeAt(l) === 93 ? (i = Ti, l++) : (i = r, f === 0 && b(Li)), i === r && (s.charCodeAt(l) === 125 ? (i = ir, l++) : (i = r, f === 0 && b(sr))), i;
3051
3057
  }
3052
- const { errorOnLuceneSyntax: Tn, parseCursor: Ln, cursorSymbol: Dn, allowLeadingWildcards: zn = !0, helpers: { nodeTypes: Ce } } = n, oe = Ce.function.buildNodeWithArgumentNodes, be = Ce.literal.buildNode, Nn = Ce.wildcard.buildNode, Mn = Ce.namedArg.buildNode, { wildcardSymbol: Vi } = Ce.wildcard;
3058
+ const { errorOnLuceneSyntax: Tn, parseCursor: Ln, cursorSymbol: Dn, allowLeadingWildcards: zn = !0, helpers: { nodeTypes: ke } } = n, oe = ke.function.buildNodeWithArgumentNodes, be = ke.literal.buildNode, Nn = ke.wildcard.buildNode, Mn = ke.namedArg.buildNode, { wildcardSymbol: Gi } = ke.wildcard;
3053
3059
  if (Tt = h(), Tt !== r && l === s.length)
3054
3060
  return Tt;
3055
- throw Tt !== r && l < s.length && b({ type: "end", description: "end of input" }), zi(
3061
+ throw Tt !== r && l < s.length && b({ type: "end", description: "end of input" }), Ni(
3056
3062
  null,
3057
- cr,
3063
+ pr,
3058
3064
  se < s.length ? s.charAt(se) : null,
3059
3065
  se < s.length ? Lt(se, se + 1) : Lt(se, se)
3060
3066
  );
@@ -3063,11 +3069,11 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3063
3069
  SyntaxError: t,
3064
3070
  parse: o
3065
3071
  };
3066
- }(), Ur = (e, t = {}, o = er) => {
3072
+ }(), Hr = (e, t = {}, o = er) => {
3067
3073
  if (typeof e > "u")
3068
3074
  throw new Error("expression must be a string, got undefined instead");
3069
3075
  return o(e, { ...t, helpers: { nodeTypes: de } });
3070
- }, Ge = (e, t = {}) => Ur(
3076
+ }, et = (e, t = {}) => Hr(
3071
3077
  e,
3072
3078
  {
3073
3079
  ...t,
@@ -3076,13 +3082,13 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3076
3082
  er
3077
3083
  ), Yt = (e, t = {}) => {
3078
3084
  try {
3079
- return Ur(e, t, er);
3085
+ return Hr(e, t, er);
3080
3086
  } catch (o) {
3081
3087
  throw o.name === "SyntaxError" ? new Us(o, e) : o;
3082
3088
  }
3083
3089
  }, Ta = (e) => {
3084
3090
  try {
3085
- return Ur(e, { errorOnLuceneSyntax: !0 }, er), !1;
3091
+ return Hr(e, { errorOnLuceneSyntax: !0 }, er), !1;
3086
3092
  } catch (t) {
3087
3093
  return t.message.startsWith("Lucene");
3088
3094
  }
@@ -3097,7 +3103,7 @@ function za(e) {
3097
3103
  return e.includes(fe) ? {
3098
3104
  type: "wildcard",
3099
3105
  value: e
3100
- } : Ge(e);
3106
+ } : et(e);
3101
3107
  }
3102
3108
  function Fs(e, t) {
3103
3109
  const { value: o } = e, s = o.split(fe).map(La).join("[\\s\\S]*");
@@ -3107,7 +3113,7 @@ function Na(e) {
3107
3113
  const { value: t } = e;
3108
3114
  return t.split(fe).join("*");
3109
3115
  }
3110
- function Or(e) {
3116
+ function Tr(e) {
3111
3117
  const { value: t } = e;
3112
3118
  return t.split(fe).map(Da).join("*");
3113
3119
  }
@@ -3121,13 +3127,13 @@ const ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3121
3127
  hasLeadingWildcard: Ma,
3122
3128
  test: Fs,
3123
3129
  toOpenSearchQuery: Na,
3124
- toQueryStringQuery: Or,
3130
+ toQueryStringQuery: Tr,
3125
3131
  wildcardSymbol: fe
3126
3132
  }, Symbol.toStringTag, { value: "Module" }));
3127
- function Fr(e, t) {
3133
+ function Ir(e, t) {
3128
3134
  if (!t) return [];
3129
3135
  if (e.type === "literal") {
3130
- const o = Br(e), s = t.fields.find((n) => n.name === o);
3136
+ const o = Fr(e), s = t.fields.find((n) => n.name === o);
3131
3137
  return s ? [s] : [];
3132
3138
  } else if (e.type === "wildcard")
3133
3139
  return t.fields.filter((s) => Fs(e, s.name));
@@ -3139,7 +3145,7 @@ function Hs(e, t, o) {
3139
3145
  };
3140
3146
  if (!t || s.type === "wildcard" && !o)
3141
3147
  return s;
3142
- const r = Fr(s, t).reduce((c, h) => {
3148
+ const r = Ir(s, t).reduce((c, h) => {
3143
3149
  const d = h.subType && h.subType.nested ? h.subType.nested.path : void 0;
3144
3150
  return o && !d ? [
3145
3151
  ...c,
@@ -3162,7 +3168,7 @@ function Ra(e, t, o = !1) {
3162
3168
  throw new Error("fieldName is a required argument");
3163
3169
  if (t === void 0)
3164
3170
  throw new Error("value is a required argument");
3165
- const s = typeof e == "string" ? Ge(e) : Xe(e), n = typeof t == "string" ? Ge(t) : Xe(t), r = Xe(o);
3171
+ const s = typeof e == "string" ? et(e) : Ge(e), n = typeof t == "string" ? et(t) : Ge(t), r = Ge(o);
3166
3172
  return {
3167
3173
  arguments: [s, n, r]
3168
3174
  };
@@ -3178,7 +3184,7 @@ function Ba(e, t, o = {}, s = {}) {
3178
3184
  if (h.value === null)
3179
3185
  return r.type === "wildcard" ? {
3180
3186
  query_string: {
3181
- query: Or(r)
3187
+ query: Tr(r)
3182
3188
  }
3183
3189
  } : {
3184
3190
  multi_match: {
@@ -3187,7 +3193,7 @@ function Ba(e, t, o = {}, s = {}) {
3187
3193
  lenient: !0
3188
3194
  }
3189
3195
  };
3190
- const y = t ? Fr(h, t) : [];
3196
+ const y = t ? Ir(h, t) : [];
3191
3197
  y && y.length === 0 && y.push({
3192
3198
  name: R(h),
3193
3199
  scripted: !1,
@@ -3198,8 +3204,8 @@ function Ba(e, t, o = {}, s = {}) {
3198
3204
  bool: {
3199
3205
  should: y.reduce((j, F) => {
3200
3206
  const ie = (W) => {
3201
- var Ue;
3202
- return h.type !== "wildcard" || !((Ue = F.subType) != null && Ue.nested) || s != null && s.nested ? W : {
3207
+ var He;
3208
+ return h.type !== "wildcard" || !((He = F.subType) != null && He.nested) || s != null && s.nested ? W : {
3203
3209
  nested: {
3204
3210
  path: F.subType.nested.path,
3205
3211
  query: W,
@@ -3224,7 +3230,7 @@ function Ba(e, t, o = {}, s = {}) {
3224
3230
  ie({
3225
3231
  query_string: {
3226
3232
  fields: [F.name],
3227
- query: Or(r)
3233
+ query: Tr(r)
3228
3234
  }
3229
3235
  })
3230
3236
  ];
@@ -3323,7 +3329,7 @@ function Xa(e, ...t) {
3323
3329
  return o;
3324
3330
  }
3325
3331
  function Va(e, t) {
3326
- const o = Xa(t, "gt", "lt", "gte", "lte", "format"), s = typeof e == "string" ? Ge(e) : de.literal.buildNode(e), n = Object.entries(o).map((r) => {
3332
+ const o = Xa(t, "gt", "lt", "gte", "lte", "format"), s = typeof e == "string" ? et(e) : de.literal.buildNode(e), n = Object.entries(o).map((r) => {
3327
3333
  let [c, h] = r;
3328
3334
  return de.namedArg.buildNode(c, h);
3329
3335
  });
@@ -3336,7 +3342,7 @@ function Ga(e, t, o = {}, s = {}) {
3336
3342
  n,
3337
3343
  t,
3338
3344
  s != null && s.nested ? s.nested.path : void 0
3339
- ), h = t ? Fr(c, t) : [], d = Ja(r), m = Object.fromEntries(Object.entries(d).map(([y, C]) => [y, R(C)]));
3345
+ ), h = t ? Ir(c, t) : [], d = Ja(r), m = Object.fromEntries(Object.entries(d).map(([y, C]) => [y, R(C)]));
3340
3346
  return h && h.length === 0 && h.push({
3341
3347
  name: R(c),
3342
3348
  scripted: !1,
@@ -3390,7 +3396,7 @@ const el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3390
3396
  }, Symbol.toStringTag, { value: "Module" }));
3391
3397
  function tl(e) {
3392
3398
  return {
3393
- arguments: [Xe(e)]
3399
+ arguments: [Ge(e)]
3394
3400
  };
3395
3401
  }
3396
3402
  function rl(e, t, o = {}, s = {}) {
@@ -3399,7 +3405,7 @@ function rl(e, t, o = {}, s = {}) {
3399
3405
  } = e, r = {
3400
3406
  ...n,
3401
3407
  value: s != null && s.nested ? `${s.nested.path}.${n.value}` : n.value
3402
- }, c = Br(r), h = ((t == null ? void 0 : t.fields) || []).find((d) => d.name === c);
3408
+ }, c = Fr(r), h = ((t == null ? void 0 : t.fields) || []).find((d) => d.name === c);
3403
3409
  if (h && h.scripted)
3404
3410
  throw new Error("Exists query does not support scripted fields");
3405
3411
  return {
@@ -3413,7 +3419,7 @@ const il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3413
3419
  }, Symbol.toStringTag, { value: "Module" }));
3414
3420
  function sl(e, t) {
3415
3421
  return {
3416
- arguments: [typeof e == "string" ? Ge(e) : Xe(e), t]
3422
+ arguments: [typeof e == "string" ? et(e) : Ge(e), t]
3417
3423
  };
3418
3424
  }
3419
3425
  function ol(e, t, o = {}, s = {}) {
@@ -3434,7 +3440,7 @@ const nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3434
3440
  __proto__: null,
3435
3441
  buildNodeParams: sl,
3436
3442
  toOpenSearchQuery: ol
3437
- }, Symbol.toStringTag, { value: "Module" })), Hr = {
3443
+ }, Symbol.toStringTag, { value: "Module" })), qr = {
3438
3444
  is: Ua,
3439
3445
  and: Ia,
3440
3446
  or: Wa,
@@ -3444,7 +3450,7 @@ const nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3444
3450
  nested: nl
3445
3451
  };
3446
3452
  function al(e, ...t) {
3447
- const o = Hr[e];
3453
+ const o = qr[e];
3448
3454
  if (o === void 0)
3449
3455
  throw new Error(`Unknown function "${e}"`);
3450
3456
  return {
@@ -3456,7 +3462,7 @@ function al(e, ...t) {
3456
3462
  };
3457
3463
  }
3458
3464
  function ll(e, t) {
3459
- if (Hr[e] === void 0)
3465
+ if (qr[e] === void 0)
3460
3466
  throw new Error(`Unknown function "${e}"`);
3461
3467
  return {
3462
3468
  type: "function",
@@ -3465,7 +3471,7 @@ function ll(e, t) {
3465
3471
  };
3466
3472
  }
3467
3473
  function cl(e, t, o, s) {
3468
- return Hr[e.function].toOpenSearchQuery(e, t, o, s);
3474
+ return qr[e.function].toOpenSearchQuery(e, t, o, s);
3469
3475
  }
3470
3476
  const pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3471
3477
  __proto__: null,
@@ -3495,19 +3501,19 @@ const dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3495
3501
  literal: Pa,
3496
3502
  namedArg: dl,
3497
3503
  wildcard: ja
3498
- }, fl = fe, gl = (e, t) => "(" + (e.arguments || []).map((s) => Ne(s, t)).join(" AND ") + ")", vl = (e, t) => {
3504
+ }, fl = fe, gl = (e, t) => "(" + (e.arguments || []).map((s) => Me(s, t)).join(" AND ") + ")", vl = (e, t) => {
3499
3505
  var {
3500
3506
  arguments: [o, s, n]
3501
3507
  } = e;
3502
3508
  let r = "=";
3503
3509
  s.type === "wildcard" && (r = "");
3504
- let c = Ne(s);
3510
+ let c = Me(s);
3505
3511
  n = n.value || typeof c == "string", s.type === "literal" && n && (c = `'${c}'`), s.type === "literal" && !n && (c = `${c}`);
3506
- let h = Ne(o);
3512
+ let h = Me(o);
3507
3513
  return h == null ? t && n ? `(${t.filter((d) => d.type === "string").map((d) => `${d.name} ILIKE '%${s.value}%'`).join(" OR ")})` : t && !n && (s.value === !0 || s.value === !1) ? `(${t.filter((d) => d.type === "boolean").map((d) => `${d.name}=${s.value}`).join(" OR ")})` : "" : h + r + c;
3508
- }, bl = (e, t) => "(" + (e.arguments || []).map((s) => Ne(s, t)).join(" OR ") + ")", yl = (e, t) => {
3514
+ }, bl = (e, t) => "(" + (e.arguments || []).map((s) => Me(s, t)).join(" OR ") + ")", yl = (e, t) => {
3509
3515
  const [o] = e.arguments;
3510
- return "NOT (" + Ne(o, t) + ")";
3516
+ return "NOT (" + Me(o, t) + ")";
3511
3517
  }, ml = {
3512
3518
  gt: ">",
3513
3519
  lt: "<",
@@ -3517,7 +3523,7 @@ const dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3517
3523
  const [t, o] = e.arguments;
3518
3524
  let s = o.value;
3519
3525
  const n = ml[o.name];
3520
- let r = Ne(s);
3526
+ let r = Me(s);
3521
3527
  return s.type === "literal" && (r = `${r}`), `${t.value} ${n} ${r}`;
3522
3528
  }, wl = (e) => {
3523
3529
  const [t] = e.arguments;
@@ -3537,7 +3543,7 @@ const dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3537
3543
  const { value: t } = e;
3538
3544
  return ` LIKE '${t.split(fl).join("%")}'`;
3539
3545
  }
3540
- }, Ne = (e, t) => {
3546
+ }, Me = (e, t) => {
3541
3547
  const o = Sl[e.type];
3542
3548
  return o(e, t);
3543
3549
  }, Al = fe, Cl = (e) => ({ $and: (e.arguments || []).map((s) => we(s)) }), kl = (e) => {
@@ -3592,10 +3598,10 @@ const dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3592
3598
  DQLSyntaxError: Us,
3593
3599
  doesKueryExpressionHaveLuceneSyntaxError: Ta,
3594
3600
  fromKueryExpression: Yt,
3595
- fromLiteralExpression: Ge,
3601
+ fromLiteralExpression: et,
3596
3602
  nodeTypes: de,
3597
3603
  parse: Yt,
3598
- toCql: Ne,
3604
+ toCql: Me,
3599
3605
  toDSL: R,
3600
3606
  toMongo: we,
3601
3607
  toOpenSearchQuery: R
@@ -3647,12 +3653,12 @@ spectric-button{
3647
3653
  top: 0;
3648
3654
  }
3649
3655
  `;
3650
- var jl = Object.defineProperty, Rl = Object.getOwnPropertyDescriptor, Se = (e, t, o, s) => {
3656
+ var jl = Object.defineProperty, Rl = Object.getOwnPropertyDescriptor, Ae = (e, t, o, s) => {
3651
3657
  for (var n = s > 1 ? void 0 : s ? Rl(t, o) : t, r = e.length - 1, c; r >= 0; r--)
3652
3658
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
3653
3659
  return s && n && jl(t, o, n), n;
3654
3660
  };
3655
- const Ir = "spectric-dialog";
3661
+ const Qr = "spectric-dialog";
3656
3662
  let Y = class extends z {
3657
3663
  constructor() {
3658
3664
  super(...arguments), this.open = !1, this.dismissable = !0, this.hideBackdrop = !1, this.title = "", this.closeOnEscape = !0, this.closeOnOutsideClick = !0, this.clickHandler = async (e) => {
@@ -3661,27 +3667,33 @@ let Y = class extends z {
3661
3667
  }, this._handleKeyDown = (e) => {
3662
3668
  this.closeOnEscape || e.preventDefault(), this.open && this.closeOnEscape && e.key === "Escape" && (this.open = !1);
3663
3669
  }, this._onClose = (e) => {
3664
- e.preventDefault(), e.stopPropagation(), this.open = !1, this.dispatchEvent(new CustomEvent("close", {
3665
- bubbles: !0,
3666
- composed: !0
3667
- }));
3670
+ e.preventDefault(), e.stopPropagation(), this.open = !1, this.dispatchEvent(
3671
+ new CustomEvent("close", {
3672
+ bubbles: !0,
3673
+ composed: !0
3674
+ })
3675
+ );
3668
3676
  };
3669
3677
  }
3670
3678
  static display(e, t) {
3671
- let o = document.createElement(Ir);
3679
+ let o = document.createElement(Qr);
3672
3680
  o.addEventListener("close", () => {
3673
3681
  o.remove();
3674
3682
  });
3675
3683
  for (let n in e)
3676
3684
  o[n] = e[n];
3677
3685
  let s = document.createDocumentFragment();
3678
- return xt(t, s), o.appendChild(s), o.open = !0, document.body.appendChild(o), o;
3686
+ return Xt(t, s), o.appendChild(s), o.open = !0, document.body.appendChild(o), o;
3679
3687
  }
3680
3688
  connectedCallback() {
3681
- super.connectedCallback(), this.dialogElement.then((e) => e.addEventListener("keydown", this._handleKeyDown));
3689
+ super.connectedCallback(), this.dialogElement.then(
3690
+ (e) => e.addEventListener("keydown", this._handleKeyDown)
3691
+ );
3682
3692
  }
3683
3693
  disconnectedCallback() {
3684
- super.disconnectedCallback(), this.dialogElement.then((e) => e.removeEventListener("keydown", this._handleKeyDown));
3694
+ super.disconnectedCallback(), this.dialogElement.then(
3695
+ (e) => e.removeEventListener("keydown", this._handleKeyDown)
3696
+ );
3685
3697
  }
3686
3698
  updated(e) {
3687
3699
  e.has("open") && this.dialogElement.then((t) => {
@@ -3690,50 +3702,60 @@ let Y = class extends z {
3690
3702
  }
3691
3703
  render() {
3692
3704
  return $`
3693
- <dialog class=${this.hideBackdrop ? "" : "backdrop"} @close=${this._onClose} @click=${this.clickHandler}>
3694
- <spectric-panel>
3695
- <div class="modal">
3696
- ${this.dismissable ? $`<spectric-button variant="text" size="small" @click=${() => {
3705
+ <dialog
3706
+ class=${this.hideBackdrop ? "" : "backdrop"}
3707
+ @close=${this._onClose}
3708
+ @click=${this.clickHandler}
3709
+ >
3710
+ <spectric-panel>
3711
+ <div class="modal">
3712
+ ${this.dismissable ? $`<spectric-button
3713
+ variant="text"
3714
+ size="small"
3715
+ @click=${() => {
3697
3716
  this.open = !1;
3698
- }}>X</spectric-button>` : null}
3699
- <h3 >
3700
- <slot name="title">
3701
- ${this.title.length ? this.title : null}
3702
- </slot>
3703
- </h3>
3717
+ }}
3718
+ icon
3719
+ >X</spectric-button
3720
+ >` : null}
3721
+ <h3>
3722
+ <slot name="title">
3723
+ ${this.title.length ? this.title : null}
3724
+ </slot>
3725
+ </h3>
3704
3726
 
3705
- <div class="content"><slot></slot></div>
3706
- <div class="footer"><slot name="footer"></slot></div>
3707
- </div>
3708
- </spectric-panel>
3709
- </dialog>
3710
- `;
3727
+ <div class="content"><slot></slot></div>
3728
+ <div class="footer"><slot name="footer"></slot></div>
3729
+ </div>
3730
+ </spectric-panel>
3731
+ </dialog>
3732
+ `;
3711
3733
  }
3712
3734
  };
3713
3735
  Y.styles = Ml;
3714
- Se([
3736
+ Ae([
3715
3737
  g({ type: Boolean, reflect: !0 })
3716
3738
  ], Y.prototype, "open", 2);
3717
- Se([
3739
+ Ae([
3718
3740
  g({ type: Boolean, reflect: !0 })
3719
3741
  ], Y.prototype, "dismissable", 2);
3720
- Se([
3742
+ Ae([
3721
3743
  g({ type: Boolean, reflect: !0 })
3722
3744
  ], Y.prototype, "hideBackdrop", 2);
3723
- Se([
3745
+ Ae([
3724
3746
  g({ type: String, reflect: !0 })
3725
3747
  ], Y.prototype, "title", 2);
3726
- Se([
3748
+ Ae([
3727
3749
  g({ type: Boolean, reflect: !0 })
3728
3750
  ], Y.prototype, "closeOnEscape", 2);
3729
- Se([
3751
+ Ae([
3730
3752
  g({ type: Boolean, reflect: !0 })
3731
3753
  ], Y.prototype, "closeOnOutsideClick", 2);
3732
- Se([
3733
- At("dialog")
3754
+ Ae([
3755
+ Ct("dialog")
3734
3756
  ], Y.prototype, "dialogElement", 2);
3735
- Y = Se([
3736
- P(Ir)
3757
+ Y = Ae([
3758
+ P(Qr)
3737
3759
  ], Y);
3738
3760
  var Bl = Object.defineProperty, Ul = Object.getOwnPropertyDescriptor, ce = (e, t, o, s) => {
3739
3761
  for (var n = s > 1 ? void 0 : s ? Ul(t, o) : t, r = e.length - 1, c; r >= 0; r--)
@@ -3747,12 +3769,14 @@ const Qs = {
3747
3769
  gte: { value: " >= ", label: " is greater than or equal to some value" },
3748
3770
  lte: { value: " <= ", label: " is less than or equal to some value" }
3749
3771
  }, Fl = {
3772
+ exists: { value: ": *", label: " exists in any form" }
3773
+ }, Hl = {
3750
3774
  eq: { value: ": ", label: " equals some value" },
3751
3775
  exists: { value: ": *", label: " exists in any form" }
3752
- }, Hl = [
3776
+ }, Il = [
3753
3777
  { value: ": true", label: " value is true" },
3754
3778
  { value: ": false", label: "value is false" }
3755
- ], Il = Object.fromEntries(Object.entries(Qs).map(([e, t]) => [e, { value: t.value, label: (t.label || "").replace("value", "date-time") }]));
3779
+ ], ql = Object.fromEntries(Object.entries(Qs).map(([e, t]) => [e, { value: t.value, label: (t.label || "").replace("value", "date-time") }]));
3756
3780
  let Z = class extends z {
3757
3781
  constructor() {
3758
3782
  super(), this.placeholder = "", this._value = "", this.value = "", this.outputLanguage = "AST", this.completions = [], this.completionIndex = 0, this.fields = [], this._parseQuery = (e = void 0) => {
@@ -3812,7 +3836,7 @@ let Z = class extends z {
3812
3836
  }
3813
3837
  if (r === "operator") {
3814
3838
  let c = this.fields.find((h) => h.name === e.fieldName);
3815
- c && (c.type === "number" ? t.push(...Object.values(Qs).map((h) => ({ type: r, ...h, start: s, end: s }))) : c.type === "string" ? c.format === "date-time" ? t.push(...Object.values(Il).map((h) => ({
3839
+ c && (["number", "integer"].includes(c.type) ? t.push(...Object.values(Qs).map((h) => ({ type: r, ...h, start: s, end: s }))) : c.type === "object" ? t.push(...Object.values(Fl).map((h) => ({ type: r, ...h, start: s, end: s }))) : c.type === "string" ? c.format === "date-time" ? t.push(...Object.values(ql).map((h) => ({
3816
3840
  type: r,
3817
3841
  ...h,
3818
3842
  start: s,
@@ -3820,7 +3844,7 @@ let Z = class extends z {
3820
3844
  onSelect: async () => {
3821
3845
  let d = await this.getValuesForField(e.fieldName, e.prefix);
3822
3846
  d.length === 0 && (d = ["now-1m", "now-1d", "now-1M"]);
3823
- let m, A = gt();
3847
+ let m, A = vt();
3824
3848
  return await new Promise((y) => {
3825
3849
  let C = Y.display({}, $`
3826
3850
  <div class="query-bar-date-quick-select">
@@ -3833,13 +3857,13 @@ let Z = class extends z {
3833
3857
  return;
3834
3858
  m = `"${(/* @__PURE__ */ new Date(S.target.value + ":00.000Z")).toISOString()}"`, A.value.disabled = m === void 0;
3835
3859
  }}></spectric-input>
3836
- <spectric-button ${vt(A)} .disabled=${!0} @click=${() => {
3860
+ <spectric-button ${bt(A)} .disabled=${!0} @click=${() => {
3837
3861
  y(m), C.open = !1;
3838
3862
  }}>Submit</spectric-button>
3839
3863
  `);
3840
3864
  }), m;
3841
3865
  }
3842
- }))) : t.push(...Object.values(Fl).map((h) => ({ type: r, ...h, start: s, end: s }))) : c.type === "boolean" && t.push(...Hl.map((h) => ({ type: r, ...h, start: s, end: s }))));
3866
+ }))) : t.push(...Object.values(Hl).map((h) => ({ type: r, ...h, start: s, end: s }))) : c.type === "boolean" && t.push(...Il.map((h) => ({ type: r, ...h, start: s, end: s }))));
3843
3867
  }
3844
3868
  if (r === "value") {
3845
3869
  let c = this.fields.find((h) => h.name === e.fieldName);
@@ -3901,18 +3925,18 @@ ce([
3901
3925
  g({ type: Array, reflect: !0 })
3902
3926
  ], Z.prototype, "fields", 2);
3903
3927
  ce([
3904
- xe(".autocomplete")
3928
+ Se(".autocomplete")
3905
3929
  ], Z.prototype, "_autocomplete", 2);
3906
3930
  ce([
3907
- At(".autocomplete")
3931
+ Ct(".autocomplete")
3908
3932
  ], Z.prototype, "_asyncAutocomplete", 2);
3909
3933
  ce([
3910
- xe("spectric-input")
3934
+ Se("spectric-input")
3911
3935
  ], Z.prototype, "_input", 2);
3912
3936
  Z = ce([
3913
3937
  P("spectric-query")
3914
3938
  ], Z);
3915
- const ds = X`
3939
+ const fs = X`
3916
3940
  --panel-color: var(--spectric-background,#f4f4f4);
3917
3941
  --panel-color-inverse: var(--spectric-background-inverse,#ffffff);
3918
3942
  border-color: color-mix(in hsl, var(--panel-color, #0b0b0b), var(--spectric-input-color, #000000) 3%);
@@ -3922,7 +3946,7 @@ const ds = X`
3922
3946
  --spectric-text-primary:var(--text-primary,#161616);
3923
3947
  --spectric-text-secondary:var(--text-secondary,#525252);
3924
3948
  filter: drop-shadow(0px 1px 3px color-mix(in srgb, var(--text-secondary, #3c4c5b), transparent 50%));
3925
- `, fs = X`
3949
+ `, gs = X`
3926
3950
  border-color: color-mix(in hsl, var(--panel-color-inverse,#f4f4f4), var(--spectric-input-color, #000000) 3%);
3927
3951
  background-color: var(--panel-color-inverse,#0b0b0b);
3928
3952
  color:var(--text-primary,#3c4c5b);
@@ -3930,7 +3954,7 @@ const ds = X`
3930
3954
  --spectric-text-primary:var(--text-secondary,#525252);
3931
3955
  --spectric-text-secondary:var(--text-primary,#161616);
3932
3956
  filter: drop-shadow(0px 1px 3px color-mix(in srgb, var(--text-primary, #3c4c5b), transparent 70%));
3933
- `, ql = X`
3957
+ `, Ql = X`
3934
3958
  :host{
3935
3959
  display:block;
3936
3960
  border:2px solid black;
@@ -3940,26 +3964,26 @@ const ds = X`
3940
3964
 
3941
3965
  }
3942
3966
  :host(spectric-panel[level='0']) {
3943
- ${ds};
3967
+ ${fs};
3944
3968
  }
3945
3969
 
3946
3970
  :host(spectric-panel[level='1']) {
3947
- ${fs};
3971
+ ${gs};
3948
3972
  }
3949
3973
 
3950
3974
  :host(spectric-panel[level='2']) {
3951
- ${ds};
3975
+ ${fs};
3952
3976
  }
3953
3977
  :host(spectric-panel[level='3']) {
3954
- ${fs};
3978
+ ${gs};
3955
3979
  }
3956
3980
  `;
3957
- var Ql = Object.defineProperty, Wl = Object.getOwnPropertyDescriptor, qr = (e, t, o, s) => {
3958
- for (var n = s > 1 ? void 0 : s ? Wl(t, o) : t, r = e.length - 1, c; r >= 0; r--)
3981
+ var Wl = Object.defineProperty, Yl = Object.getOwnPropertyDescriptor, Wr = (e, t, o, s) => {
3982
+ for (var n = s > 1 ? void 0 : s ? Yl(t, o) : t, r = e.length - 1, c; r >= 0; r--)
3959
3983
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
3960
- return s && n && Ql(t, o, n), n;
3984
+ return s && n && Wl(t, o, n), n;
3961
3985
  };
3962
- let Je = class extends ve {
3986
+ let tt = class extends ve {
3963
3987
  constructor() {
3964
3988
  super(), this.level = 0, this.addDisposableListener(this, "layer-add", () => {
3965
3989
  this.layers = this.querySelectorAll("spectric-panel");
@@ -3992,22 +4016,22 @@ let Je = class extends ve {
3992
4016
  return $` <slot></slot> `;
3993
4017
  }
3994
4018
  };
3995
- Je.styles = ql;
3996
- qr([
4019
+ tt.styles = Ql;
4020
+ Wr([
3997
4021
  g({ type: Number, reflect: !0 })
3998
- ], Je.prototype, "level", 2);
3999
- qr([
4022
+ ], tt.prototype, "level", 2);
4023
+ Wr([
4000
4024
  g({ attribute: !1 })
4001
- ], Je.prototype, "layers", 2);
4002
- Je = qr([
4025
+ ], tt.prototype, "layers", 2);
4026
+ tt = Wr([
4003
4027
  P("spectric-panel")
4004
- ], Je);
4005
- var Yl = Object.defineProperty, Zl = Object.getOwnPropertyDescriptor, Ws = (e, t, o, s) => {
4006
- for (var n = s > 1 ? void 0 : s ? Zl(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4028
+ ], tt);
4029
+ var Zl = Object.defineProperty, Kl = Object.getOwnPropertyDescriptor, Ws = (e, t, o, s) => {
4030
+ for (var n = s > 1 ? void 0 : s ? Kl(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4007
4031
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
4008
- return s && n && Yl(t, o, n), n;
4032
+ return s && n && Zl(t, o, n), n;
4009
4033
  };
4010
- const Kl = {
4034
+ const Xl = {
4011
4035
  "--primary": { control: "color" },
4012
4036
  "--secondary": { control: "color" },
4013
4037
  "--tertiary": { control: "color" },
@@ -4027,20 +4051,20 @@ const Kl = {
4027
4051
  "--text-on-color": "#ededed",
4028
4052
  "--background": "#181818",
4029
4053
  "--background-inverse": "#37373d"
4030
- }, gs = {
4054
+ }, vs = {
4031
4055
  ...Ys,
4032
4056
  "--primary": "#ffd45a",
4033
4057
  "--text-on-color": "#4f4f4f"
4034
- }, Pr = {
4058
+ }, Lr = {
4035
4059
  undefined: {},
4036
4060
  light: {},
4037
4061
  dark: Ys,
4038
- spectric: gs,
4062
+ spectric: vs,
4039
4063
  spectricFlat: {
4040
- ...gs,
4064
+ ...vs,
4041
4065
  "--border-radius": "1px"
4042
4066
  }
4043
- }, Xl = Object.fromEntries(Object.keys(Pr).map((e) => [e, e])), Vl = [
4067
+ }, Vl = Object.fromEntries(Object.keys(Lr).map((e) => [e, e])), Gl = [
4044
4068
  "--spectric-background",
4045
4069
  "--spectric-background-hover",
4046
4070
  "--spectric-background-inverse",
@@ -4075,7 +4099,7 @@ const Kl = {
4075
4099
  "--spectric-button-secondary-hover",
4076
4100
  "--spectric-button-tertiary-hover",
4077
4101
  "--spectric-text-on-color-disabled"
4078
- ], Gl = `
4102
+ ], Jl = `
4079
4103
  --spectric-background: var(--background,#ffffff);
4080
4104
  --spectric-background-hover:var(--background-hover,rgba(141, 141, 141, 0.12));
4081
4105
  --spectric-background-inverse: var(--background-inverse,#f4f4f4);
@@ -4119,7 +4143,7 @@ const Kl = {
4119
4143
  --spectric-button-disabled: #c6c6c6;
4120
4144
  color: var(--spectric-text-primary);
4121
4145
  `;
4122
- let wt = class extends z {
4146
+ let _t = class extends z {
4123
4147
  constructor() {
4124
4148
  super(...arguments), this.theme = "undefined";
4125
4149
  }
@@ -4133,15 +4157,15 @@ let wt = class extends z {
4133
4157
  }
4134
4158
  }
4135
4159
  render() {
4136
- let e = Object.keys(Pr).includes(this.theme) ? this.theme : "undefined", t = Object.entries(
4137
- Pr[e]
4160
+ let e = Object.keys(Lr).includes(this.theme) ? this.theme : "undefined", t = Object.entries(
4161
+ Lr[e]
4138
4162
  ).map((o) => `${o[0]}:${o[1]};`).join(`
4139
4163
  `);
4140
4164
  return $`
4141
4165
  ${this.theme && this.theme !== "light" ? $`
4142
4166
  <style>:host{
4143
4167
  ${t};
4144
- ${Gl}
4168
+ ${Jl}
4145
4169
  }
4146
4170
  /* Webkit psudo elements don't pick up variables defined by the host */
4147
4171
  ::-webkit-scrollbar-thumb {
@@ -4215,16 +4239,16 @@ let wt = class extends z {
4215
4239
  `;
4216
4240
  }
4217
4241
  };
4218
- wt.styles = X`:host{
4242
+ _t.styles = X`:host{
4219
4243
  display:contents;
4220
4244
  }`;
4221
4245
  Ws([
4222
4246
  g({ reflect: !0 })
4223
- ], wt.prototype, "theme", 2);
4224
- wt = Ws([
4247
+ ], _t.prototype, "theme", 2);
4248
+ _t = Ws([
4225
4249
  P("spectric-theme")
4226
- ], wt);
4227
- const Jl = X`
4250
+ ], _t);
4251
+ const ec = X`
4228
4252
  :host {
4229
4253
  display: block;
4230
4254
  height: 100%;
@@ -4288,10 +4312,10 @@ const Jl = X`
4288
4312
  cursor: ew-resize;
4289
4313
  }
4290
4314
  `;
4291
- var ec = Object.defineProperty, tc = Object.getOwnPropertyDescriptor, G = (e, t, o, s) => {
4292
- for (var n = s > 1 ? void 0 : s ? tc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4315
+ var tc = Object.defineProperty, rc = Object.getOwnPropertyDescriptor, G = (e, t, o, s) => {
4316
+ for (var n = s > 1 ? void 0 : s ? rc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4293
4317
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
4294
- return s && n && ec(t, o, n), n;
4318
+ return s && n && tc(t, o, n), n;
4295
4319
  }, Zs = /* @__PURE__ */ ((e) => (e.horizontal = "horizontal", e.vertical = "vertical", e))(Zs || {});
4296
4320
  const Ks = "spectric-splitview";
4297
4321
  let M = class extends ve {
@@ -4355,7 +4379,7 @@ let M = class extends ve {
4355
4379
  `;
4356
4380
  }
4357
4381
  };
4358
- M.styles = Jl;
4382
+ M.styles = ec;
4359
4383
  G([
4360
4384
  g({ type: String })
4361
4385
  ], M.prototype, "orientation", 2);
@@ -4381,21 +4405,21 @@ G([
4381
4405
  V()
4382
4406
  ], M.prototype, "_error", 2);
4383
4407
  G([
4384
- At(".splitter")
4408
+ Ct(".splitter")
4385
4409
  ], M.prototype, "_splitter", 2);
4386
4410
  G([
4387
- xe("slot[name='panel1']")
4411
+ Se("slot[name='panel1']")
4388
4412
  ], M.prototype, "_panel1", 2);
4389
4413
  G([
4390
- xe("slot[name='panel2']")
4414
+ Se("slot[name='panel2']")
4391
4415
  ], M.prototype, "_panel2", 2);
4392
4416
  M = G([
4393
4417
  P(Ks)
4394
4418
  ], M);
4395
- var rc = Object.defineProperty, ic = Object.getOwnPropertyDescriptor, Be = (e, t, o, s) => {
4396
- for (var n = s > 1 ? void 0 : s ? ic(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4419
+ var ic = Object.defineProperty, sc = Object.getOwnPropertyDescriptor, Ue = (e, t, o, s) => {
4420
+ for (var n = s > 1 ? void 0 : s ? sc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4397
4421
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
4398
- return s && n && rc(t, o, n), n;
4422
+ return s && n && ic(t, o, n), n;
4399
4423
  };
4400
4424
  const Xs = "spectric-pagination";
4401
4425
  let ge = class extends z {
@@ -4449,40 +4473,40 @@ let ge = class extends z {
4449
4473
  `;
4450
4474
  }
4451
4475
  };
4452
- Be([
4476
+ Ue([
4453
4477
  g({ type: Number, reflect: !0 })
4454
4478
  ], ge.prototype, "page", 2);
4455
- Be([
4479
+ Ue([
4456
4480
  g({ type: Number, reflect: !0 })
4457
4481
  ], ge.prototype, "pageSize", 2);
4458
- Be([
4482
+ Ue([
4459
4483
  g({ type: Number, reflect: !0 })
4460
4484
  ], ge.prototype, "totalItems", 2);
4461
- Be([
4485
+ Ue([
4462
4486
  g({ type: Array })
4463
4487
  ], ge.prototype, "pageSizeOptions", 2);
4464
- Be([
4465
- xe("select")
4488
+ Ue([
4489
+ Se("select")
4466
4490
  ], ge.prototype, "select", 2);
4467
- Be([
4491
+ Ue([
4468
4492
  g({ type: String, reflect: !0 })
4469
4493
  ], ge.prototype, "size", 2);
4470
- ge = Be([
4494
+ ge = Ue([
4471
4495
  P(Xs)
4472
4496
  ], ge);
4473
- const sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4497
+ const oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4474
4498
  __proto__: null,
4475
4499
  BitArray: js,
4476
4500
  DisposableElement: ve,
4477
4501
  getListeners: ea
4478
4502
  }, Symbol.toStringTag, { value: "Module" }));
4479
- var oc = Object.defineProperty, nc = Object.getOwnPropertyDescriptor, Qr = (e, t, o, s) => {
4480
- for (var n = s > 1 ? void 0 : s ? nc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4503
+ var nc = Object.defineProperty, ac = Object.getOwnPropertyDescriptor, tr = (e, t, o, s) => {
4504
+ for (var n = s > 1 ? void 0 : s ? ac(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4481
4505
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
4482
- return s && n && oc(t, o, n), n;
4506
+ return s && n && nc(t, o, n), n;
4483
4507
  };
4484
- const ac = "spectric-table-header";
4485
- let Zt = class extends ve {
4508
+ const lc = "spectric-table-header";
4509
+ let xt = class extends ve {
4486
4510
  constructor() {
4487
4511
  super(), this.columns = [], this._handleSortChange = (e) => {
4488
4512
  this._resizeStart || (e = JSON.parse(JSON.stringify(e)), e.sortable && (e.sortDirection === H.none || e.sortDirection === void 0 ? e.sortDirection = H.ascending : e.sortDirection === H.ascending ? e.sortDirection = H.descending : e.sortDirection === H.descending && (e.sortDirection = H.none), this.dispatchEvent(
@@ -4535,39 +4559,42 @@ let Zt = class extends ve {
4535
4559
  let t = ["header-contents"];
4536
4560
  e.filterable, e.sortable && t.push("sortable"), this._resizeStart && t.push("resizing");
4537
4561
  let o = e.width ? `min-width:${e.width}px;max-width:${e.width}px;` : "", s = e.sortDirection === H.ascending ? "🠉" : e.sortDirection == H.descending ? "🠋" : "", n = e.sortDirection || H.none, c = e.allowResize || e.allowResize === void 0 ? $`<div
4538
- class="header-resize-handle"
4539
- @mousedown=${(h) => {
4540
- this._handleResizeStart(h, e);
4562
+ class="header-resize-handle"
4563
+ @mousedown=${(d) => {
4564
+ this._handleResizeStart(d, e);
4541
4565
  }}
4542
- @mouseup=${this._handleResizeEnd}
4543
- ></div>` : null;
4544
- return $` <td
4545
- @click=${() => this._handleSortChange(e)}
4546
- style="${o}"
4547
- >
4548
- ${c}
4549
- <div class=${t.join(" ")}>
4550
- ${e.title || e.key}
4551
- <span class="sort-direction ${n}">${s}</span>
4552
- </div>
4553
- </td>`;
4566
+ @mouseup=${this._handleResizeEnd}
4567
+ ></div>` : null, h = e.title || e.key;
4568
+ return typeof h == "function" && (h = h(this.table) || void 0), $` <td
4569
+ @click=${() => this._handleSortChange(e)}
4570
+ style="${o}"
4571
+ >
4572
+ ${c}
4573
+ <div class=${t.join(" ")}>
4574
+ ${h}
4575
+ <span class="sort-direction ${n}">${s}</span>
4576
+ </div>
4577
+ </td>`;
4554
4578
  }
4555
4579
  };
4556
- Qr([
4580
+ tr([
4557
4581
  g({ type: Array, attribute: !1 })
4558
- ], Zt.prototype, "columns", 2);
4559
- Qr([
4582
+ ], xt.prototype, "columns", 2);
4583
+ tr([
4560
4584
  V()
4561
- ], Zt.prototype, "_resizeStart", 2);
4562
- Zt = Qr([
4563
- P(ac)
4564
- ], Zt);
4585
+ ], xt.prototype, "_resizeStart", 2);
4586
+ tr([
4587
+ g({ type: Object, attribute: !1 })
4588
+ ], xt.prototype, "table", 2);
4589
+ xt = tr([
4590
+ P(lc)
4591
+ ], xt);
4565
4592
  /**
4566
4593
  * @license
4567
4594
  * Copyright 2017 Google LLC
4568
4595
  * SPDX-License-Identifier: BSD-3-Clause
4569
4596
  */
4570
- const vs = (e) => oa(e) ? e._$litType$.h : e.strings, lc = St(class extends Vt {
4597
+ const bs = (e) => oa(e) ? e._$litType$.h : e.strings, cc = At(class extends Vt {
4571
4598
  constructor(e) {
4572
4599
  super(e), this.et = /* @__PURE__ */ new WeakMap();
4573
4600
  }
@@ -4575,22 +4602,22 @@ const vs = (e) => oa(e) ? e._$litType$.h : e.strings, lc = St(class extends Vt {
4575
4602
  return [e];
4576
4603
  }
4577
4604
  update(e, [t]) {
4578
- const o = us(this.it) ? vs(this.it) : null, s = us(t) ? vs(t) : null;
4605
+ const o = hs(this.it) ? bs(this.it) : null, s = hs(t) ? bs(t) : null;
4579
4606
  if (o !== null && (s === null || o !== s)) {
4580
- const n = Cr(e).pop();
4607
+ const n = Er(e).pop();
4581
4608
  let r = this.et.get(o);
4582
4609
  if (r === void 0) {
4583
4610
  const c = document.createDocumentFragment();
4584
- r = xt(E, c), r.setConnected(!1), this.et.set(o, r);
4611
+ r = Xt(E, c), r.setConnected(!1), this.et.set(o, r);
4585
4612
  }
4586
- Ar(r, [n]), Oe(r, void 0, n);
4613
+ kr(r, [n]), Pe(r, void 0, n);
4587
4614
  }
4588
4615
  if (s !== null) {
4589
4616
  if (o === null || o !== s) {
4590
4617
  const n = this.et.get(s);
4591
4618
  if (n !== void 0) {
4592
- const r = Cr(n).pop();
4593
- la(e), Oe(e, void 0, r), Ar(e, [r]);
4619
+ const r = Er(n).pop();
4620
+ la(e), Pe(e, void 0, r), kr(e, [r]);
4594
4621
  }
4595
4622
  }
4596
4623
  this.it = t;
@@ -4598,17 +4625,17 @@ const vs = (e) => oa(e) ? e._$litType$.h : e.strings, lc = St(class extends Vt {
4598
4625
  return this.render(t);
4599
4626
  }
4600
4627
  });
4601
- var cc = Object.defineProperty, pc = Object.getOwnPropertyDescriptor, it = (e, t, o, s) => {
4602
- for (var n = s > 1 ? void 0 : s ? pc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4628
+ var pc = Object.defineProperty, uc = Object.getOwnPropertyDescriptor, Fe = (e, t, o, s) => {
4629
+ for (var n = s > 1 ? void 0 : s ? uc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4603
4630
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
4604
- return s && n && cc(t, o, n), n;
4631
+ return s && n && pc(t, o, n), n;
4605
4632
  };
4606
- const uc = "spectric-table-cell";
4607
- let Me = class extends z {
4633
+ const hc = "spectric-table-cell";
4634
+ let _e = class extends z {
4608
4635
  constructor() {
4609
4636
  super(...arguments), this.overflow = "", this.styleRules = { whiteSpace: "", width: "" }, this._handleFilterOut = () => {
4610
4637
  let e;
4611
- this.column.key && typeof this.row == "object" && (e = Ve(this.row, this.column.key)), this._emitFilter({
4638
+ this.column.key && typeof this.row == "object" && (e = Je(this.row, this.column.key)), this._emitFilter({
4612
4639
  include: !1,
4613
4640
  row: this.row,
4614
4641
  value: e,
@@ -4616,7 +4643,7 @@ let Me = class extends z {
4616
4643
  });
4617
4644
  }, this._handleFilterFor = () => {
4618
4645
  let e;
4619
- this.column.key && typeof this.row == "object" && (e = Ve(this.row, this.column.key)), this._emitFilter({
4646
+ this.column.key && typeof this.row == "object" && (e = Je(this.row, this.column.key)), this._emitFilter({
4620
4647
  include: !0,
4621
4648
  row: this.row,
4622
4649
  value: e,
@@ -4626,7 +4653,9 @@ let Me = class extends z {
4626
4653
  let e = this.querySelector("div.cell-contents"), t = this.querySelector("span");
4627
4654
  if (e && t) {
4628
4655
  let o = t.getBoundingClientRect(), s = e.getBoundingClientRect();
4629
- o.width * o.height > s.width * s.height ? (console.log("We need to show a tooltip witht he content because we are overflowing"), this.overflow = this.getRenderedValue(), this.updateComplete.then(() => {
4656
+ o.width * o.height > s.width * s.height ? (console.log(
4657
+ "We need to show a tooltip witht he content because we are overflowing"
4658
+ ), this.overflow = this.getRenderedValue(), this.updateComplete.then(() => {
4630
4659
  let n = this.querySelector("spectric-tooltip");
4631
4660
  n && n.showToolTip();
4632
4661
  })) : this.overflow = "";
@@ -4639,69 +4668,94 @@ let Me = class extends z {
4639
4668
  updated(e) {
4640
4669
  }
4641
4670
  _emitFilter(e) {
4642
- this.dispatchEvent(new CustomEvent("filter", {
4643
- composed: !0,
4644
- bubbles: !0,
4645
- detail: e
4646
- }));
4671
+ this.dispatchEvent(
4672
+ new CustomEvent("filter", {
4673
+ composed: !0,
4674
+ bubbles: !0,
4675
+ detail: e
4676
+ })
4677
+ );
4647
4678
  }
4648
4679
  getRenderedValue() {
4649
4680
  let e;
4650
- return this.column.render ? e = this.column.render(this.row, this.index, this.table) : this.column.key && typeof this.row == "object" ? e = Ve(this.row, this.column.key) : e = $`error`, e;
4681
+ return this.column.render ? e = this.column.render(this.row, this.index, this.table) : this.column.key && typeof this.row == "object" ? e = Je(this.row, this.column.key) : e = $`error`, e;
4651
4682
  }
4652
4683
  render() {
4653
4684
  let e = this.getRenderedValue(), t = ["cell-contents"];
4654
4685
  this.column.filterable && t.push("filterable");
4655
- let o = lc(
4686
+ let o = cc(
4656
4687
  this.column.filterable ? $`<div class="table-cell-actions">
4657
- <spectric-button @click=${this._handleFilterOut} size="tiny" variant="text" icon tooltip="Filter Out Value">-</spectric-button>
4658
- <spectric-button @click=${this._handleFilterFor} size="tiny" variant="text" icon tooltip="Filter For Value">+</spectric-button></div>` : null
4688
+ <spectric-button
4689
+ @click=${this._handleFilterOut}
4690
+ size="tiny"
4691
+ variant="text"
4692
+ icon
4693
+ tooltip="Filter Out Value"
4694
+ >-</spectric-button
4695
+ >
4696
+ <spectric-button
4697
+ @click=${this._handleFilterFor}
4698
+ size="tiny"
4699
+ variant="text"
4700
+ icon
4701
+ tooltip="Filter For Value"
4702
+ >+</spectric-button
4703
+ >
4704
+ </div>` : null
4659
4705
  );
4660
4706
  return this.styleRules = {
4661
4707
  width: this.column.width ? this.column.width + "px" : null,
4662
4708
  whiteSpace: this.column.whiteSpace || null
4663
4709
  }, $`
4664
- <td style=${Rr(this.styleRules)} @mouseenter=${this._displayTooltip}>
4665
- ${o}
4666
- <div class=${t.join(" ")}>${this.overflow ? $`<spectric-tooltip .text=${this.overflow}></spectric-tooltip>` : null}<span>${e}</span></div>
4667
- </td>
4668
- `;
4710
+ <td
4711
+ style=${Ur(this.styleRules)}
4712
+ @mouseenter=${this._displayTooltip}
4713
+ >
4714
+ ${o}
4715
+ <div class=${t.join(" ")}>
4716
+ ${this.overflow ? $`<spectric-tooltip .text=${this.overflow}></spectric-tooltip>` : null}<span>${e}</span>
4717
+ </div>
4718
+ </td>
4719
+ `;
4669
4720
  }
4670
4721
  };
4671
- it([
4722
+ Fe([
4672
4723
  g({ type: Object, attribute: !1 })
4673
- ], Me.prototype, "row", 2);
4674
- it([
4724
+ ], _e.prototype, "row", 2);
4725
+ Fe([
4675
4726
  g({ type: Number, attribute: !1 })
4676
- ], Me.prototype, "index", 2);
4677
- it([
4727
+ ], _e.prototype, "index", 2);
4728
+ Fe([
4678
4729
  g({ type: Object, attribute: !1 })
4679
- ], Me.prototype, "column", 2);
4680
- it([
4730
+ ], _e.prototype, "column", 2);
4731
+ Fe([
4732
+ g({ type: Object, attribute: !1 })
4733
+ ], _e.prototype, "table", 2);
4734
+ Fe([
4681
4735
  V()
4682
- ], Me.prototype, "overflow", 2);
4683
- it([
4684
- xe("td")
4685
- ], Me.prototype, "td", 2);
4686
- Me = it([
4687
- P(uc)
4688
- ], Me);
4689
- const Ve = (e, t) => {
4736
+ ], _e.prototype, "overflow", 2);
4737
+ Fe([
4738
+ Se("td")
4739
+ ], _e.prototype, "td", 2);
4740
+ _e = Fe([
4741
+ P(hc)
4742
+ ], _e);
4743
+ const Je = (e, t) => {
4690
4744
  let o = t.split("."), s = e[o[0]];
4691
- return s == null || o.length > 1 && (s = Ve(s, o.slice(1).join("."))), s;
4745
+ return s == null || o.length > 1 && (s = Je(s, o.slice(1).join("."))), s;
4692
4746
  };
4693
4747
  /**
4694
4748
  * @license
4695
4749
  * Copyright 2017 Google LLC
4696
4750
  * SPDX-License-Identifier: BSD-3-Clause
4697
4751
  */
4698
- const bs = (e, t, o) => {
4752
+ const ys = (e, t, o) => {
4699
4753
  const s = /* @__PURE__ */ new Map();
4700
4754
  for (let n = t; n <= o; n++) s.set(e[n], n);
4701
4755
  return s;
4702
- }, Kt = St(class extends Vt {
4756
+ }, Zt = At(class extends Vt {
4703
4757
  constructor(e) {
4704
- if (super(e), e.type !== jr.CHILD) throw Error("repeat() can only be used in text expressions");
4758
+ if (super(e), e.type !== Br.CHILD) throw Error("repeat() can only be used in text expressions");
4705
4759
  }
4706
4760
  dt(e, t, o) {
4707
4761
  let s;
@@ -4715,43 +4769,43 @@ const bs = (e, t, o) => {
4715
4769
  return this.dt(e, t, o).values;
4716
4770
  }
4717
4771
  update(e, [t, o, s]) {
4718
- const n = Cr(e), { values: r, keys: c } = this.dt(t, o, s);
4772
+ const n = Er(e), { values: r, keys: c } = this.dt(t, o, s);
4719
4773
  if (!Array.isArray(n)) return this.ut = c, r;
4720
4774
  const h = this.ut ?? (this.ut = []), d = [];
4721
4775
  let m, A, y = 0, C = n.length - 1, S = 0, k = r.length - 1;
4722
4776
  for (; y <= C && S <= k; ) if (n[y] === null) y++;
4723
4777
  else if (n[C] === null) C--;
4724
- else if (h[y] === c[S]) d[S] = Ee(n[y], r[S]), y++, S++;
4725
- else if (h[C] === c[k]) d[k] = Ee(n[C], r[k]), C--, k--;
4726
- else if (h[y] === c[k]) d[k] = Ee(n[y], r[k]), Oe(e, d[k + 1], n[y]), y++, k--;
4727
- else if (h[C] === c[S]) d[S] = Ee(n[C], r[S]), Oe(e, n[y], n[C]), C--, S++;
4728
- else if (m === void 0 && (m = bs(c, S, k), A = bs(h, y, C)), m.has(h[y])) if (m.has(h[C])) {
4778
+ else if (h[y] === c[S]) d[S] = Oe(n[y], r[S]), y++, S++;
4779
+ else if (h[C] === c[k]) d[k] = Oe(n[C], r[k]), C--, k--;
4780
+ else if (h[y] === c[k]) d[k] = Oe(n[y], r[k]), Pe(e, d[k + 1], n[y]), y++, k--;
4781
+ else if (h[C] === c[S]) d[S] = Oe(n[C], r[S]), Pe(e, n[y], n[C]), C--, S++;
4782
+ else if (m === void 0 && (m = ys(c, S, k), A = ys(h, y, C)), m.has(h[y])) if (m.has(h[C])) {
4729
4783
  const D = A.get(c[S]), j = D !== void 0 ? n[D] : null;
4730
4784
  if (j === null) {
4731
- const F = Oe(e, n[y]);
4732
- Ee(F, r[S]), d[S] = F;
4733
- } else d[S] = Ee(j, r[S]), Oe(e, n[y], j), n[D] = null;
4785
+ const F = Pe(e, n[y]);
4786
+ Oe(F, r[S]), d[S] = F;
4787
+ } else d[S] = Oe(j, r[S]), Pe(e, n[y], j), n[D] = null;
4734
4788
  S++;
4735
- } else _r(n[C]), C--;
4736
- else _r(n[y]), y++;
4789
+ } else xr(n[C]), C--;
4790
+ else xr(n[y]), y++;
4737
4791
  for (; S <= k; ) {
4738
- const D = Oe(e, d[k + 1]);
4739
- Ee(D, r[S]), d[S++] = D;
4792
+ const D = Pe(e, d[k + 1]);
4793
+ Oe(D, r[S]), d[S++] = D;
4740
4794
  }
4741
4795
  for (; y <= C; ) {
4742
4796
  const D = n[y++];
4743
- D !== null && _r(D);
4797
+ D !== null && xr(D);
4744
4798
  }
4745
- return this.ut = c, Ar(e, d), $e;
4799
+ return this.ut = c, kr(e, d), $e;
4746
4800
  }
4747
4801
  });
4748
- var hc = Object.defineProperty, dc = Object.getOwnPropertyDescriptor, Wr = (e, t, o, s) => {
4749
- for (var n = s > 1 ? void 0 : s ? dc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4802
+ var dc = Object.defineProperty, fc = Object.getOwnPropertyDescriptor, Yr = (e, t, o, s) => {
4803
+ for (var n = s > 1 ? void 0 : s ? fc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4750
4804
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
4751
- return s && n && hc(t, o, n), n;
4805
+ return s && n && dc(t, o, n), n;
4752
4806
  };
4753
- const fc = "spectric-table-body";
4754
- let Xt = class extends z {
4807
+ const gc = "spectric-table-body";
4808
+ let Kt = class extends z {
4755
4809
  constructor() {
4756
4810
  super(...arguments), this.data = [], this.columns = [];
4757
4811
  }
@@ -4764,38 +4818,42 @@ let Xt = class extends z {
4764
4818
  render() {
4765
4819
  return $`
4766
4820
  <body>
4767
- ${Kt(this.data, (e, t) => $`
4821
+ ${Zt(this.data, (e, t) => $`
4768
4822
  <tr class="${t % 2 === 0 ? "odd" : ""}">
4769
- ${Kt(this.columns, (o) => $`<spectric-table-cell .column=${o} .index=${t} .row=${e} .columns=${this.columns}></spectric-table-cell>`)}
4823
+ ${Zt(this.columns, (o) => $`<spectric-table-cell .column=${o} .index=${t} .row=${e} .columns=${this.columns}></spectric-table-cell>`)}
4770
4824
  </tr>`)}
4771
4825
 
4772
4826
  </body>
4773
4827
  `;
4774
4828
  }
4775
4829
  };
4776
- Wr([
4830
+ Yr([
4777
4831
  g({ type: Array, attribute: !1 })
4778
- ], Xt.prototype, "data", 2);
4779
- Wr([
4832
+ ], Kt.prototype, "data", 2);
4833
+ Yr([
4780
4834
  g({ type: Array, attribute: !1 })
4781
- ], Xt.prototype, "columns", 2);
4782
- Xt = Wr([
4783
- P(fc)
4784
- ], Xt);
4785
- var gc = Object.defineProperty, vc = Object.getOwnPropertyDescriptor, Ct = (e, t, o, s) => {
4786
- for (var n = s > 1 ? void 0 : s ? vc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4835
+ ], Kt.prototype, "columns", 2);
4836
+ Kt = Yr([
4837
+ P(gc)
4838
+ ], Kt);
4839
+ var vc = Object.defineProperty, bc = Object.getOwnPropertyDescriptor, st = (e, t, o, s) => {
4840
+ for (var n = s > 1 ? void 0 : s ? bc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4787
4841
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
4788
- return s && n && gc(t, o, n), n;
4842
+ return s && n && vc(t, o, n), n;
4789
4843
  };
4790
- const bc = "spectric-table-virtual-body";
4791
- let et = class extends ve {
4844
+ const yc = "spectric-table-virtual-body";
4845
+ let je = class extends ve {
4792
4846
  constructor() {
4793
- super(), this.data = [], this.columns = [], this.rowHeight = 30, this.startIndex = 0, this.columnsMeasured = !1, this.addDisposableListener(() => this.table.querySelector(".table-wrapper"), "scroll", () => {
4794
- const e = this.table.querySelector(".table-wrapper").scrollTop;
4795
- requestAnimationFrame(() => {
4796
- this.startIndex = Math.floor(e / this.rowHeight);
4797
- });
4798
- });
4847
+ super(), this.data = [], this.columns = [], this.rowHeight = 30, this.startIndex = 0, this.columnsMeasured = !1, this.addDisposableListener(
4848
+ () => this.table.querySelector(".table-wrapper"),
4849
+ "scroll",
4850
+ () => {
4851
+ const e = this.table.querySelector(".table-wrapper").scrollTop;
4852
+ requestAnimationFrame(() => {
4853
+ this.startIndex = Math.floor(e / this.rowHeight);
4854
+ });
4855
+ }
4856
+ );
4799
4857
  }
4800
4858
  updated() {
4801
4859
  if (this.columnsMeasured === !1) {
@@ -4803,68 +4861,93 @@ let et = class extends ve {
4803
4861
  e && t && t.length && (this.columns.forEach((o, s) => {
4804
4862
  if (!o.width || o.width === 0) {
4805
4863
  let n = t[s].getBoundingClientRect();
4806
- n.width > 0 && (this.columnsMeasured = !0, o.width = n.width - bt);
4864
+ n.width > 0 && (this.columnsMeasured = !0, o.width = n.width - yt);
4807
4865
  }
4808
- }), this.columns = [...this.columns]);
4866
+ }), this.columnsMeasured && (this.columns = [...this.columns]));
4809
4867
  }
4810
4868
  }
4811
4869
  createRenderRoot() {
4812
4870
  return this;
4813
4871
  }
4814
4872
  render() {
4815
- let e = this.data.length, t = 10, o = this.table.querySelector("spectric-table-header").clientHeight, s = this.table.querySelector(".table-wrapper"), n = Math.max(this.startIndex, 0);
4816
- const r = Math.ceil((s.clientHeight - o) / this.rowHeight), c = Math.min(n + r + t, e), h = c - n;
4873
+ let e = this.data.length, t = 10, o = this.table.querySelector(
4874
+ "spectric-table-header"
4875
+ ).clientHeight, s = this.table.querySelector(".table-wrapper"), n = Math.max(this.startIndex, 0);
4876
+ const r = Math.ceil(
4877
+ (s.clientHeight - o) / this.rowHeight
4878
+ ), c = Math.min(n + r + t, e), h = c - n;
4817
4879
  let d = e * this.rowHeight, m = n * this.rowHeight + (s.scrollTop - n * this.rowHeight);
4818
4880
  c === e && (m = n * this.rowHeight);
4819
- let A = h * this.rowHeight, y = d - m - A, C = n != 0 ? $`
4820
- <tr style="height:${m}px" class="virtual-scroll-spacer">
4821
- <td colspan="${this.columns.length}"></td></tr>` : null, S = $`
4822
- <tr style="height:${y}px" class="virtual-scroll-spacer">
4823
- <td colspan="${this.columns.length}"></td></tr>`;
4881
+ let A = h * this.rowHeight, y = d - m - A, C = n != 0 ? $` <tr
4882
+ style="height:${m}px"
4883
+ class="virtual-scroll-spacer"
4884
+ >
4885
+ <td colspan="${this.columns.length}"></td>
4886
+ </tr>` : null, S = $` <tr
4887
+ style="height:${y}px"
4888
+ class="virtual-scroll-spacer"
4889
+ >
4890
+ <td colspan="${this.columns.length}"></td>
4891
+ </tr>`;
4824
4892
  return $`
4825
- <div style="height:${d}px;position: absolute;overflow-x: hidden;overflow-y: hidden;z-index:-1;width:1px;"></div>
4826
- <tbody>
4827
- ${C}
4828
- </tbody>
4829
- <div style="display:table-row-group;max-height:${A}px; overflow:hidden;">
4830
-
4831
- ${Kt(this.data.slice(Math.max(n, 0), c), (k, D) => $`
4832
- <tr class="${(D + n) % 2 === 0 ? "odd" : ""}">
4833
- ${Kt(this.columns, (j) => $`<spectric-table-cell .column=${j} .row=${k} .index=${D + n} .columns=${this.columns}></spectric-table-cell>`)}
4834
- </tr>`)}
4835
- </div>
4836
- <tbody>
4837
- ${y > 0 ? S : null}
4838
- </tbody>
4839
-
4893
+ <div
4894
+ style="height:${d}px;position: absolute;overflow-x: hidden;overflow-y: hidden;z-index:-1;width:1px;"
4895
+ ></div>
4896
+ <tbody>
4897
+ ${C}
4898
+ </tbody>
4899
+ <div
4900
+ style="display:table-row-group;max-height:${A}px; overflow:hidden;"
4901
+ >
4902
+ ${Zt(
4903
+ this.data.slice(Math.max(n, 0), c),
4904
+ (k, D) => $` <tr
4905
+ class="${(D + n) % 2 === 0 ? "odd" : ""}"
4906
+ >
4907
+ ${Zt(this.columns, (j) => $`<spectric-table-cell
4908
+ .column=${j}
4909
+ .row=${k}
4910
+ .index=${D + n}
4911
+ .columns=${this.columns}
4912
+ .table=${this.table}
4913
+ ></spectric-table-cell>`)}
4914
+ </tr>`
4915
+ )}
4916
+ </div>
4917
+ <tbody>
4918
+ ${y > 0 ? S : null}
4919
+ </tbody>
4840
4920
  `;
4841
4921
  }
4842
4922
  };
4843
- Ct([
4923
+ st([
4844
4924
  g({ type: Array, attribute: !1 })
4845
- ], et.prototype, "data", 2);
4846
- Ct([
4925
+ ], je.prototype, "data", 2);
4926
+ st([
4847
4927
  g({ type: Array, attribute: !1 })
4848
- ], et.prototype, "columns", 2);
4849
- Ct([
4928
+ ], je.prototype, "columns", 2);
4929
+ st([
4850
4930
  g({ type: Number, attribute: !1 })
4851
- ], et.prototype, "rowHeight", 2);
4852
- Ct([
4931
+ ], je.prototype, "rowHeight", 2);
4932
+ st([
4853
4933
  g({ type: Number, state: !0 })
4854
- ], et.prototype, "startIndex", 2);
4855
- et = Ct([
4856
- P(bc)
4857
- ], et);
4858
- function yc(e) {
4934
+ ], je.prototype, "startIndex", 2);
4935
+ st([
4936
+ g({ type: Object, attribute: !1 })
4937
+ ], je.prototype, "table", 2);
4938
+ je = st([
4939
+ P(yc)
4940
+ ], je);
4941
+ function mc(e) {
4859
4942
  let t = !1, o;
4860
4943
  return function(...s) {
4861
4944
  return t || (t = !0, o = e.apply(this, s)), o;
4862
4945
  };
4863
4946
  }
4864
- const mc = (e) => e.map(({ key: t, sortDirection: o, compareFn: s }) => (n, r) => {
4947
+ const $c = (e) => e.map(({ key: t, sortDirection: o, compareFn: s }) => (n, r) => {
4865
4948
  if (!t)
4866
4949
  return;
4867
- let c = Ve(n, t), h = Ve(r, t);
4950
+ let c = Je(n, t), h = Je(r, t);
4868
4951
  if (s)
4869
4952
  return s(n, r);
4870
4953
  if (typeof c == "number" || typeof c == "bigint" || typeof c == "boolean") {
@@ -4873,14 +4956,16 @@ const mc = (e) => e.map(({ key: t, sortDirection: o, compareFn: s }) => (n, r) =
4873
4956
  } else if (typeof c == "string")
4874
4957
  return c.localeCompare(h) * (o === H.descending ? -1 : 1);
4875
4958
  });
4876
- var $c = Object.defineProperty, wc = Object.getOwnPropertyDescriptor, pe = (e, t, o, s) => {
4877
- for (var n = s > 1 ? void 0 : s ? wc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4959
+ var wc = Object.defineProperty, _c = Object.getOwnPropertyDescriptor, pe = (e, t, o, s) => {
4960
+ for (var n = s > 1 ? void 0 : s ? _c(t, o) : t, r = e.length - 1, c; r >= 0; r--)
4878
4961
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
4879
- return s && n && $c(t, o, n), n;
4962
+ return s && n && wc(t, o, n), n;
4880
4963
  };
4881
4964
  const Vs = "spectric-table";
4882
4965
  var Gs = /* @__PURE__ */ ((e) => (e.multi = "multi", e.single = "single", e.none = "none", e))(Gs || {}), Js = /* @__PURE__ */ ((e) => (e.multi = "multi", e.single = "single", e))(Js || {}), H = /* @__PURE__ */ ((e) => (e.ascending = "ascending", e.descending = "descending", e.none = "none", e))(H || {});
4883
- const bt = 4, ys = Symbol("spectric-table-selection-column");
4966
+ const yt = 4, Ar = Symbol(
4967
+ "spectric-table-selection-column"
4968
+ );
4884
4969
  let K = class extends z {
4885
4970
  constructor() {
4886
4971
  super(...arguments), this.data = [], this.columns = [], this.select = "none", this.sort = "single", this.sortOrder = [], this.rowHeight = 25, this.fontSize = 16, this._handlePaginationChange = (e) => {
@@ -4888,7 +4973,11 @@ let K = class extends z {
4888
4973
  let t = { ...this.pagination, ...e.detail }, { totalItems: o, page: s, pageSize: n } = t;
4889
4974
  o && s && n && (s - 1) * n > o && (t.page = 1), this.pagination = t;
4890
4975
  }
4891
- this.dispatchEvent(new CustomEvent("paginationChange", { detail: e.detail })), this._emitChange();
4976
+ this.dispatchEvent(
4977
+ new CustomEvent("paginationChange", {
4978
+ detail: e.detail
4979
+ })
4980
+ ), this._emitChange();
4892
4981
  }, this._handleSortChange = (e) => {
4893
4982
  let t = e.detail, o = this.columns.find((s) => s.key == t.key);
4894
4983
  if (!o || o.key === void 0) {
@@ -4908,18 +4997,55 @@ let K = class extends z {
4908
4997
  this.columns[o] = { ...this.columns[o] }, this.columns = [...this.columns], this._emitChange();
4909
4998
  }, this._emitChange = () => {
4910
4999
  let { pagination: e, columns: t, sortOrder: o } = this;
4911
- this.dispatchEvent(new CustomEvent("change", { detail: { pagination: e, columns: t, sortOrder: o } }));
5000
+ this.dispatchEvent(
5001
+ new CustomEvent("change", {
5002
+ detail: { pagination: e, columns: t, sortOrder: o }
5003
+ })
5004
+ );
4912
5005
  }, this.__DO_NOT_USE_filter = () => {
4913
5006
  this.dispatchEvent(new CustomEvent("filter")), this.dispatchEvent(new CustomEvent("sortChange"));
4914
5007
  }, this.selected = [], this._handleSelectAllChange = (e) => {
4915
5008
  e.stopPropagation(), e.target.checked ? this.selectAll() : this.deselectAll();
5009
+ }, this.selectColumnConfig = {
5010
+ [Ar]: !0,
5011
+ width: 39,
5012
+ title: (e) => e.select === "multi" ? $`<spectric-input
5013
+ variant="checkbox"
5014
+ @change=${e._handleSelectAllChange}
5015
+ .helperText=${"Select All"}
5016
+ ></spectric-input>` : null,
5017
+ render: (e, t, o) => {
5018
+ let s = o.selected.includes(e);
5019
+ return $`<spectric-input
5020
+ variant="checkbox"
5021
+ class="table-checkbox-${o.select}"
5022
+ .helperText=${""}
5023
+ ${Ve({ checked: s })}
5024
+ @change=${(r) => {
5025
+ r.stopPropagation();
5026
+ let c = o.selected.findIndex((h) => h === e);
5027
+ if (!(r.target.checked && c !== -1)) {
5028
+ {
5029
+ if (!r.target.checked && c === -1)
5030
+ return;
5031
+ !r.target.checked && c !== -1 && o.selected.splice(c, 1);
5032
+ }
5033
+ r.target.checked && (o.select === "single" && (o.selected = [], o.forceRefreshofSelectionColumn()), o.selected.push(e)), o.dispatchEvent(
5034
+ new CustomEvent("selected", { detail: [...o.selected] })
5035
+ );
5036
+ }
5037
+ }}
5038
+ ></spectric-input>`;
5039
+ }
4916
5040
  };
4917
5041
  }
4918
5042
  static getDefaultDataSorterAndPaginatior(e) {
4919
5043
  return (t) => {
4920
- let o = (t.sortOrder || []).map((c) => t.columns.find((h) => h.key === c)), s = [...e];
5044
+ let o = (t.sortOrder || []).map(
5045
+ (c) => t.columns.find((h) => h.key === c)
5046
+ ), s = [...e];
4921
5047
  if (o.length) {
4922
- let c = mc(o);
5048
+ let c = $c(o);
4923
5049
  s.sort((h, d) => {
4924
5050
  for (let m of c) {
4925
5051
  let A = m(h, d);
@@ -4938,44 +5064,53 @@ let K = class extends z {
4938
5064
  createRenderRoot() {
4939
5065
  return this;
4940
5066
  }
5067
+ forceRefreshofSelectionColumn() {
5068
+ let e = this.columns.findIndex(
5069
+ (t) => t[Ar]
5070
+ );
5071
+ e !== -1 && (this.columns[e] = { ...this.selectColumnConfig });
5072
+ }
5073
+ setSelected(e) {
5074
+ this.selected = e, this.forceRefreshofSelectionColumn();
5075
+ }
4941
5076
  deselectAll() {
4942
- this.selected = [], this.dispatchEvent(new CustomEvent("selected", { detail: this.selected }));
5077
+ this.selected = [], this.forceRefreshofSelectionColumn(), this.dispatchEvent(new CustomEvent("selected", { detail: this.selected }));
4943
5078
  }
4944
5079
  selectAll() {
4945
- this.selected = [...this.data], this.dispatchEvent(new CustomEvent("selected", { detail: this.selected }));
5080
+ this.selected = [...this.data], this.forceRefreshofSelectionColumn(), this.dispatchEvent(new CustomEvent("selected", { detail: this.selected }));
4946
5081
  }
4947
5082
  update(e) {
4948
- e.has("columns") && this.select !== "none" && (this.columns.find((t) => t[ys]) || this.columns.unshift({
4949
- [ys]: !0,
4950
- title: this.select === "multi" ? $`<spectric-input variant="checkbox" @change=${this._handleSelectAllChange} .helperText=${"Select All"}></spectric-input>` : null,
4951
- render: (t) => {
4952
- let o = document.createElement("div"), s = this.selected.includes(t), n = $`<spectric-input variant="checkbox" class="table-checkbox-${this.select}" .helperText=${""} ${Ke({ checked: s })} @change=${(r) => {
4953
- r.stopPropagation();
4954
- let c = this.selected.findIndex((h) => h === t);
4955
- if (!(r.target.checked && c !== -1)) {
4956
- {
4957
- if (!r.target.checked && c === -1)
4958
- return;
4959
- !r.target.checked && c !== -1 && this.selected.splice(c, 1);
4960
- }
4961
- r.target.checked && (this.select === "single" && (this.selected = []), this.selected.push(t)), this.dispatchEvent(new CustomEvent("selected", { detail: [...this.selected] }));
4962
- }
4963
- }}></spectric-input>`;
4964
- return xt(n, o), n;
4965
- }
4966
- })), e.has("select") && this.select === "single" && this.selected.length > 1 && (this.selected = [this.selected[0]], this.dispatchEvent(new CustomEvent("selected", { detail: [...this.selected] }))), super.update(e);
5083
+ e.has("columns") && this.select !== "none" && (this.columns.find((t) => t[Ar]) || this.columns.unshift(this.selectColumnConfig)), e.has("select") && this.select === "single" && this.selected.length > 1 && (this.selected = [this.selected[0]], this.dispatchEvent(
5084
+ new CustomEvent("selected", { detail: [...this.selected] })
5085
+ )), super.update(e);
4967
5086
  }
4968
5087
  render() {
4969
- let e = this.columns.filter((o) => !o.hidden), t = this.rowHeight - bt;
4970
- return t < this.fontSize + bt && (t = this.fontSize + bt), $`
4971
- <div class="table-wrapper" style="--rowHeight:${t}px;--fontSize:${this.fontSize}px;--lineClamp:${Math.floor(t / this.fontSize)}">
4972
- <div role="table">
4973
- <spectric-table-header .columns=${e} @sortChange=${this._handleSortChange} @columnResize=${this._handleColumnResize}></spectric-table-header>
4974
- <spectric-table-virtual-body .columns=${e} .data=${this.data} .table=${this} .rowHeight=${t}></spectric-table-virtual-body>
4975
- </div>
5088
+ let e = this.columns.filter((o) => !o.hidden), t = this.rowHeight - yt;
5089
+ return t < this.fontSize + yt && (t = this.fontSize + yt), $`
5090
+ <div
5091
+ class="table-wrapper"
5092
+ style="--rowHeight:${t}px;--fontSize:${this.fontSize}px;--lineClamp:${Math.floor(t / this.fontSize)}"
5093
+ >
5094
+ <div role="table">
5095
+ <spectric-table-header
5096
+ .columns=${e}
5097
+ .table=${this}
5098
+ @sortChange=${this._handleSortChange}
5099
+ @columnResize=${this._handleColumnResize}
5100
+ ></spectric-table-header>
5101
+ <spectric-table-virtual-body
5102
+ .columns=${e}
5103
+ .data=${this.data}
5104
+ .table=${this}
5105
+ .rowHeight=${t}
5106
+ ></spectric-table-virtual-body>
4976
5107
  </div>
4977
- ${this.pagination ? $`<spectric-pagination ${Ke(this.pagination)} @change=${this._handlePaginationChange}></spectric-pagination>` : null}
4978
- `;
5108
+ </div>
5109
+ ${this.pagination ? $`<spectric-pagination
5110
+ ${Ve(this.pagination)}
5111
+ @change=${this._handlePaginationChange}
5112
+ ></spectric-pagination>` : null}
5113
+ `;
4979
5114
  }
4980
5115
  };
4981
5116
  pe([
@@ -5008,12 +5143,12 @@ pe([
5008
5143
  K = pe([
5009
5144
  P(Vs)
5010
5145
  ], K);
5011
- var _c = Object.defineProperty, xc = Object.getOwnPropertyDescriptor, re = (e, t, o, s) => {
5012
- for (var n = s > 1 ? void 0 : s ? xc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
5146
+ var xc = Object.defineProperty, Sc = Object.getOwnPropertyDescriptor, re = (e, t, o, s) => {
5147
+ for (var n = s > 1 ? void 0 : s ? Sc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
5013
5148
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
5014
- return s && n && _c(t, o, n), n;
5149
+ return s && n && xc(t, o, n), n;
5015
5150
  };
5016
- const Sc = "spectric-popover";
5151
+ const Ac = "spectric-popover";
5017
5152
  let B = class extends ve {
5018
5153
  constructor() {
5019
5154
  super(), this.delay = 100, this.animationDuration = 0, this.text = "", this.position = "right", this.maxWidth = 300, this.mouseOffsetX = 10, this.mouseOffsetY = 0, this.portalTarget = document.body, this.open = !1, this._getMousePosition = (e) => {
@@ -5112,7 +5247,7 @@ re([
5112
5247
  g({ type: Number, reflect: !1 })
5113
5248
  ], B.prototype, "mouseOffsetY", 2);
5114
5249
  re([
5115
- xe(".spectric-popover-portal")
5250
+ Se(".spectric-popover-portal")
5116
5251
  ], B.prototype, "portalElement", 2);
5117
5252
  re([
5118
5253
  g({ attribute: !1 })
@@ -5121,12 +5256,12 @@ re([
5121
5256
  g({ attribute: !1 })
5122
5257
  ], B.prototype, "triggerTarget", 2);
5123
5258
  B = re([
5124
- P(Sc)
5259
+ P(Ac)
5125
5260
  ], B);
5126
- var Ac = Object.defineProperty, Cc = Object.getOwnPropertyDescriptor, Ae = (e, t, o, s) => {
5127
- for (var n = s > 1 ? void 0 : s ? Cc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
5261
+ var Cc = Object.defineProperty, kc = Object.getOwnPropertyDescriptor, Ce = (e, t, o, s) => {
5262
+ for (var n = s > 1 ? void 0 : s ? kc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
5128
5263
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
5129
- return s && n && Ac(t, o, n), n;
5264
+ return s && n && Cc(t, o, n), n;
5130
5265
  };
5131
5266
  const eo = "spectric-tooltip";
5132
5267
  var to = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.left = "left", e.right = "right", e.mouse = "mouse", e))(to || {});
@@ -5145,40 +5280,40 @@ te.styles = X`:host{max-height: 0px;
5145
5280
  max-width: 0px;
5146
5281
  display: none;
5147
5282
  pointer-events:none;}`;
5148
- Ae([
5283
+ Ce([
5149
5284
  g({ type: Number, reflect: !0 })
5150
5285
  ], te.prototype, "delay", 2);
5151
- Ae([
5286
+ Ce([
5152
5287
  g({ type: Number, reflect: !0 })
5153
5288
  ], te.prototype, "animationDuration", 2);
5154
- Ae([
5289
+ Ce([
5155
5290
  g({ type: String, reflect: !1 })
5156
5291
  ], te.prototype, "text", 2);
5157
- Ae([
5292
+ Ce([
5158
5293
  g({ type: String, reflect: !0 })
5159
5294
  ], te.prototype, "position", 2);
5160
- Ae([
5295
+ Ce([
5161
5296
  g({ type: Number, reflect: !0 })
5162
5297
  ], te.prototype, "maxWidth", 2);
5163
- Ae([
5298
+ Ce([
5164
5299
  g({ attribute: !1 })
5165
5300
  ], te.prototype, "portalTarget", 2);
5166
- Ae([
5301
+ Ce([
5167
5302
  g({ attribute: !1 })
5168
5303
  ], te.prototype, "triggerTarget", 2);
5169
- te = Ae([
5304
+ te = Ce([
5170
5305
  P(eo)
5171
5306
  ], te);
5172
- var kc = Object.defineProperty, Ec = Object.getOwnPropertyDescriptor, Q = (e, t, o, s) => {
5173
- for (var n = s > 1 ? void 0 : s ? Ec(t, o) : t, r = e.length - 1, c; r >= 0; r--)
5307
+ var Ec = Object.defineProperty, Oc = Object.getOwnPropertyDescriptor, Q = (e, t, o, s) => {
5308
+ for (var n = s > 1 ? void 0 : s ? Oc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
5174
5309
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
5175
- return s && n && kc(t, o, n), n;
5310
+ return s && n && Ec(t, o, n), n;
5176
5311
  };
5177
- let Ze;
5178
- window.hasOwnProperty("EyeDropper") && (Ze = new EyeDropper());
5312
+ let Xe;
5313
+ window.hasOwnProperty("EyeDropper") && (Xe = new EyeDropper());
5179
5314
  let U = class extends z {
5180
5315
  constructor() {
5181
- super(), this.value = "#FF0000FF", this.showAlpha = !0, this.hue = 0, this.alpha = 1, this.saturation = 1, this.lightness = 1, this.canvas = gt(), this.sldown = !1, this._handleAlphaChange = this._handleAlphaChange.bind(this), this._handleHueChange = this._handleHueChange.bind(this), this._handleApply = this._handleApply.bind(this), this._cancel = this._cancel.bind(this), this._handleSaturationLightnessClick = this._handleSaturationLightnessClick.bind(this);
5316
+ super(), this.value = "#FF0000FF", this.showAlpha = !0, this.hue = 0, this.alpha = 1, this.saturation = 1, this.lightness = 1, this.canvas = vt(), this.sldown = !1, this._handleAlphaChange = this._handleAlphaChange.bind(this), this._handleHueChange = this._handleHueChange.bind(this), this._handleApply = this._handleApply.bind(this), this._cancel = this._cancel.bind(this), this._handleSaturationLightnessClick = this._handleSaturationLightnessClick.bind(this);
5182
5317
  }
5183
5318
  createRenderRoot() {
5184
5319
  return this;
@@ -5197,7 +5332,7 @@ let U = class extends z {
5197
5332
  if (!t)
5198
5333
  return;
5199
5334
  let o = this.canvas.value.width / 100, s = this.canvas.value.height / 100, n = 0, r = 0;
5200
- for (let c of Pc(this.hue))
5335
+ for (let c of Tc(this.hue))
5201
5336
  t.fillStyle = c, t.fillRect(n, r, o, s), n += o, n = n % (o * 101), n || (r += s);
5202
5337
  }
5203
5338
  _handleSaturationLightnessClick(e) {
@@ -5210,7 +5345,7 @@ let U = class extends z {
5210
5345
  e.stopPropagation(), this.hue = parseInt(String(e.target.value)) / 100 * 360, e.target.style.setProperty("accent-color", `hsl(${this.hue}deg 100% 50%)`), this.renderHueSaturationGrid(), this.updateValue();
5211
5346
  }
5212
5347
  updateValue() {
5213
- let e = Tc(this.hue, this.saturation * 100, this.lightness * 100) + Math.round(this.alpha * 255).toString(16).padStart(2, "0");
5348
+ let e = Lc(this.hue, this.saturation * 100, this.lightness * 100) + Math.round(this.alpha * 255).toString(16).padStart(2, "0");
5214
5349
  this.value = e;
5215
5350
  }
5216
5351
  _handleAlphaChange(e) {
@@ -5236,7 +5371,7 @@ let U = class extends z {
5236
5371
  getPopover() {
5237
5372
  return $`
5238
5373
  <spectric-input label="Hue" class="hue-gradient" variant="range" .value=${this.hue || 0} style="accent-color:hsl(${this.hue}deg 100% 50%)" @change=${this._handleHueChange}></spectric-input>
5239
- <canvas ${vt(this.canvas)} width=200 height=100 class="color-picker-saturation-lightness-grid" @click=${this._handleSaturationLightnessClick}
5374
+ <canvas ${bt(this.canvas)} width=200 height=100 class="color-picker-saturation-lightness-grid" @click=${this._handleSaturationLightnessClick}
5240
5375
  @mousedown=${(e) => {
5241
5376
  this.sldown = !0, e.preventDefault(), e.stopPropagation();
5242
5377
  }}
@@ -5249,12 +5384,12 @@ let U = class extends z {
5249
5384
  ></canvas>
5250
5385
  <spectric-input class="alpha-gradient" ?hidden=${!this.showAlpha} label="Opacity" variant="range" .value=${(this.alpha || 1) * 100} @change=${this._handleAlphaChange}></spectric-input>
5251
5386
  <div class="color-picker-footer">
5252
- <spectric-button icon class="color-picker-eyedropper ${Ze === void 0 ? "hidden" : ""}" @click=${async () => {
5253
- if (Ze) {
5254
- let e = await (Ze == null ? void 0 : Ze.open()), { h: t, s: o, l: s, a: n } = ms(e.sRGBHex);
5387
+ <spectric-button icon class="color-picker-eyedropper ${Xe === void 0 ? "hidden" : ""}" @click=${async () => {
5388
+ if (Xe) {
5389
+ let e = await (Xe == null ? void 0 : Xe.open()), { h: t, s: o, l: s, a: n } = ms(e.sRGBHex);
5255
5390
  this.hue = t, this.saturation = o, this.lightness = s, this.alpha = n, this.updateValue();
5256
5391
  }
5257
- }}>${Oc}</spectric-button>
5392
+ }}>${Pc}</spectric-button>
5258
5393
  <spectric-button @click=${this._handleApply}>Apply</spectric-button>
5259
5394
  <spectric-button variant="secondary" @click=${this._cancel}>Cancel</spectric-button>
5260
5395
  </div>
@@ -5288,33 +5423,33 @@ Q([
5288
5423
  V()
5289
5424
  ], U.prototype, "lightness", 2);
5290
5425
  Q([
5291
- je({ capture: !0 })
5426
+ Re({ capture: !0 })
5292
5427
  ], U.prototype, "_handleSaturationLightnessClick", 1);
5293
5428
  Q([
5294
- je({ capture: !0 })
5429
+ Re({ capture: !0 })
5295
5430
  ], U.prototype, "_handleHueChange", 1);
5296
5431
  Q([
5297
- je({ capture: !0 })
5432
+ Re({ capture: !0 })
5298
5433
  ], U.prototype, "_handleAlphaChange", 1);
5299
5434
  Q([
5300
- je({ capture: !0 })
5435
+ Re({ capture: !0 })
5301
5436
  ], U.prototype, "_handleApply", 1);
5302
5437
  Q([
5303
- je({ capture: !0 })
5438
+ Re({ capture: !0 })
5304
5439
  ], U.prototype, "_cancel", 1);
5305
5440
  Q([
5306
- je({ capture: !0 })
5441
+ Re({ capture: !0 })
5307
5442
  ], U.prototype, "_openPopover", 1);
5308
5443
  U = Q([
5309
5444
  P("spectric-colorpicker")
5310
5445
  ], U);
5311
- const Oc = $`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" height="15" width="15" fill="currentColor"><path d="M222,67.34a33.81,33.81,0,0,0-10.64-24.25C198.12,30.56,176.68,31,163.54,44.18L142.82,65l-.63-.63a22,22,0,0,0-31.11,0l-9,9a14,14,0,0,0,0,19.81l3.47,3.47L53.14,149.1a37.79,37.79,0,0,0-9.84,36.73l-8.31,19a11.68,11.68,0,0,0,2.46,13A13.91,13.91,0,0,0,47.32,222,14.15,14.15,0,0,0,53,220.82L71,212.92a37.92,37.92,0,0,0,35.84-10.07l52.44-52.46,3.47,3.48a14,14,0,0,0,19.8,0l9-9a22,22,0,0,0,0-31.12l-.66-.66L212,91.85A33.76,33.76,0,0,0,222,67.34Zm-123.61,127a26,26,0,0,1-26,6.47,6,6,0,0,0-4.16.24l-20,8.75a2,2,0,0,1-2.09-.31l9.12-20.9a5.94,5.94,0,0,0,.19-4.31,25.88,25.88,0,0,1,6.26-26.72l52.44-52.45,36.76,36.78Zm105.16-111L178.17,108.9a6,6,0,0,0,0,8.47l4.88,4.89a10,10,0,0,1,0,14.15l-9,9a2,2,0,0,1-2.82,0l-60.69-60.7a2,2,0,0,1,0-2.83l9-9a10,10,0,0,1,14.14,0l4.89,4.89a6,6,0,0,0,4.24,1.75h0a6,6,0,0,0,4.25-1.77L172,52.66c8.58-8.58,22.52-9,31.08-.85a22,22,0,0,1,.44,31.57Z"/></svg>`;
5312
- function* Pc(e) {
5446
+ const Pc = $`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" height="15" width="15" fill="currentColor"><path d="M222,67.34a33.81,33.81,0,0,0-10.64-24.25C198.12,30.56,176.68,31,163.54,44.18L142.82,65l-.63-.63a22,22,0,0,0-31.11,0l-9,9a14,14,0,0,0,0,19.81l3.47,3.47L53.14,149.1a37.79,37.79,0,0,0-9.84,36.73l-8.31,19a11.68,11.68,0,0,0,2.46,13A13.91,13.91,0,0,0,47.32,222,14.15,14.15,0,0,0,53,220.82L71,212.92a37.92,37.92,0,0,0,35.84-10.07l52.44-52.46,3.47,3.48a14,14,0,0,0,19.8,0l9-9a22,22,0,0,0,0-31.12l-.66-.66L212,91.85A33.76,33.76,0,0,0,222,67.34Zm-123.61,127a26,26,0,0,1-26,6.47,6,6,0,0,0-4.16.24l-20,8.75a2,2,0,0,1-2.09-.31l9.12-20.9a5.94,5.94,0,0,0,.19-4.31,25.88,25.88,0,0,1,6.26-26.72l52.44-52.45,36.76,36.78Zm105.16-111L178.17,108.9a6,6,0,0,0,0,8.47l4.88,4.89a10,10,0,0,1,0,14.15l-9,9a2,2,0,0,1-2.82,0l-60.69-60.7a2,2,0,0,1,0-2.83l9-9a10,10,0,0,1,14.14,0l4.89,4.89a6,6,0,0,0,4.24,1.75h0a6,6,0,0,0,4.25-1.77L172,52.66c8.58-8.58,22.52-9,31.08-.85a22,22,0,0,1,.44,31.57Z"/></svg>`;
5447
+ function* Tc(e) {
5313
5448
  for (let t = 100; t >= 0; t--)
5314
5449
  for (let o = 0; o <= 100; o++)
5315
5450
  yield `hsl(${e}, ${o}%, ${t}%)`;
5316
5451
  }
5317
- function Tc(e, t, o) {
5452
+ function Lc(e, t, o) {
5318
5453
  o /= 100;
5319
5454
  const s = t * Math.min(o, 1 - o) / 100, n = (r) => {
5320
5455
  const c = (r + e / 30) % 12, h = o - s * Math.max(Math.min(c - 3, 9 - c, 1), -1);
@@ -5346,20 +5481,20 @@ function ms(e) {
5346
5481
  }
5347
5482
  return h = Math.round(h * 360), { h, s: d, l: m, a: n };
5348
5483
  }
5349
- const Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5484
+ const Dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5350
5485
  __proto__: null,
5351
5486
  SpreadPropsDirective: Rs,
5352
5487
  debounce: da,
5353
5488
  debounceAnimation: Gt,
5354
- once: yc,
5355
- spreadProps: Ke
5489
+ once: mc,
5490
+ spreadProps: Ve
5356
5491
  }, Symbol.toStringTag, { value: "Module" }));
5357
- var Dc = Object.defineProperty, zc = Object.getOwnPropertyDescriptor, st = (e, t, o, s) => {
5358
- for (var n = s > 1 ? void 0 : s ? zc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
5492
+ var zc = Object.defineProperty, Nc = Object.getOwnPropertyDescriptor, ot = (e, t, o, s) => {
5493
+ for (var n = s > 1 ? void 0 : s ? Nc(t, o) : t, r = e.length - 1, c; r >= 0; r--)
5359
5494
  (c = e[r]) && (n = (s ? c(t, o, n) : c(n)) || n);
5360
- return s && n && Dc(t, o, n), n;
5495
+ return s && n && zc(t, o, n), n;
5361
5496
  };
5362
- let _e = class extends ve {
5497
+ let xe = class extends ve {
5363
5498
  constructor() {
5364
5499
  super(), this.currentDate = /* @__PURE__ */ new Date(), this.date = /* @__PURE__ */ new Date(), this.popup = !1, this.disabled = !1, this.handleMouseMove = Gt(async (e) => {
5365
5500
  const t = await this.calendarElement, o = t.getBoundingClientRect(), s = (e.clientX - o.left) / o.width * 100, n = (e.clientY - o.top) / o.height * 100;
@@ -5508,39 +5643,39 @@ let _e = class extends ve {
5508
5643
  ` : c;
5509
5644
  }
5510
5645
  };
5511
- st([
5512
- At(".days")
5513
- ], _e.prototype, "calendarElement", 2);
5514
- st([
5646
+ ot([
5647
+ Ct(".days")
5648
+ ], xe.prototype, "calendarElement", 2);
5649
+ ot([
5515
5650
  g({ attribute: !1 })
5516
- ], _e.prototype, "currentDate", 2);
5517
- st([
5651
+ ], xe.prototype, "currentDate", 2);
5652
+ ot([
5518
5653
  V()
5519
- ], _e.prototype, "date", 2);
5520
- st([
5654
+ ], xe.prototype, "date", 2);
5655
+ ot([
5521
5656
  g({ type: Boolean, reflect: !0 })
5522
- ], _e.prototype, "popup", 2);
5523
- st([
5657
+ ], xe.prototype, "popup", 2);
5658
+ ot([
5524
5659
  g({ type: Boolean, reflect: !0 })
5525
- ], _e.prototype, "disabled", 2);
5526
- _e = st([
5660
+ ], xe.prototype, "disabled", 2);
5661
+ xe = ot([
5527
5662
  P("spectric-calendar")
5528
- ], _e);
5529
- const Nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5663
+ ], xe);
5664
+ const Mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5530
5665
  __proto__: null,
5531
5666
  get BitDisplayCanvas() {
5532
5667
  return ne;
5533
5668
  },
5534
5669
  ButtonSizes: Ds,
5535
5670
  ButtonVariants: zs,
5536
- CSSPropsControls: Kl,
5671
+ CSSPropsControls: Xl,
5537
5672
  get DialogElement() {
5538
5673
  return Y;
5539
5674
  },
5540
- DialogElementTag: Ir,
5675
+ DialogElementTag: Qr,
5541
5676
  ElementTag: Ks,
5542
5677
  get Header() {
5543
- return De;
5678
+ return ze;
5544
5679
  },
5545
5680
  InputVariants: Bs,
5546
5681
  Orientations: Zs,
@@ -5548,12 +5683,12 @@ const Nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5548
5683
  return ge;
5549
5684
  },
5550
5685
  PaginationElementTag: Xs,
5551
- SPECTRIC_CSS_VARIABLES: Vl,
5686
+ SPECTRIC_CSS_VARIABLES: Gl,
5552
5687
  get SpectricButton() {
5553
5688
  return I;
5554
5689
  },
5555
5690
  get SpectricCalendar() {
5556
- return _e;
5691
+ return xe;
5557
5692
  },
5558
5693
  get SpectricInput() {
5559
5694
  return O;
@@ -5562,7 +5697,7 @@ const Nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5562
5697
  return q;
5563
5698
  },
5564
5699
  get SpectricPanel() {
5565
- return Je;
5700
+ return tt;
5566
5701
  },
5567
5702
  get SpectricQuery() {
5568
5703
  return Z;
@@ -5571,67 +5706,67 @@ const Nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5571
5706
  return K;
5572
5707
  },
5573
5708
  get SpectricThemeProvider() {
5574
- return wt;
5709
+ return _t;
5575
5710
  },
5576
5711
  get SplitView() {
5577
5712
  return M;
5578
5713
  },
5579
5714
  SupportedLanguages: qs,
5580
- TD_BorderAndPadding: bt,
5715
+ TD_BorderAndPadding: yt,
5581
5716
  TableElementTag: Vs,
5582
5717
  TableSelectOptions: Gs,
5583
5718
  TableSortDirection: H,
5584
5719
  TableSortOption: Js,
5585
- ThemeSelections: Xl,
5720
+ ThemeSelections: Vl,
5586
5721
  get TooltipElement() {
5587
5722
  return te;
5588
5723
  },
5589
5724
  TooltipElementTag: eo,
5590
5725
  TooltipPostions: to,
5591
5726
  nodeTypes: de
5592
- }, Symbol.toStringTag, { value: "Module" })), Ic = { ...sc, ...Nc, ...Lc };
5727
+ }, Symbol.toStringTag, { value: "Module" })), qc = { ...oc, ...Mc, ...Dc };
5593
5728
  export {
5594
5729
  js as BitArray,
5595
5730
  ne as BitDisplayCanvas,
5596
5731
  Ds as ButtonSizes,
5597
5732
  zs as ButtonVariants,
5598
- Kl as CSSPropsControls,
5733
+ Xl as CSSPropsControls,
5599
5734
  Y as DialogElement,
5600
- Ir as DialogElementTag,
5735
+ Qr as DialogElementTag,
5601
5736
  ve as DisposableElement,
5602
5737
  Ks as ElementTag,
5603
- De as Header,
5738
+ ze as Header,
5604
5739
  Bs as InputVariants,
5605
5740
  Zs as Orientations,
5606
5741
  ge as PaginationElement,
5607
5742
  Xs as PaginationElementTag,
5608
- Vl as SPECTRIC_CSS_VARIABLES,
5743
+ Gl as SPECTRIC_CSS_VARIABLES,
5609
5744
  I as SpectricButton,
5610
- _e as SpectricCalendar,
5745
+ xe as SpectricCalendar,
5611
5746
  O as SpectricInput,
5612
5747
  q as SpectricPage,
5613
- Je as SpectricPanel,
5748
+ tt as SpectricPanel,
5614
5749
  Z as SpectricQuery,
5615
5750
  K as SpectricTableElement,
5616
- wt as SpectricThemeProvider,
5751
+ _t as SpectricThemeProvider,
5617
5752
  M as SplitView,
5618
5753
  Rs as SpreadPropsDirective,
5619
5754
  qs as SupportedLanguages,
5620
- bt as TD_BorderAndPadding,
5755
+ yt as TD_BorderAndPadding,
5621
5756
  Vs as TableElementTag,
5622
5757
  Gs as TableSelectOptions,
5623
5758
  H as TableSortDirection,
5624
5759
  Js as TableSortOption,
5625
- Xl as ThemeSelections,
5760
+ Vl as ThemeSelections,
5626
5761
  te as TooltipElement,
5627
5762
  eo as TooltipElementTag,
5628
5763
  to as TooltipPostions,
5629
5764
  da as debounce,
5630
5765
  Gt as debounceAnimation,
5631
- Ic as default,
5766
+ qc as default,
5632
5767
  ea as getListeners,
5633
5768
  de as nodeTypes,
5634
- yc as once,
5635
- Ke as spreadProps
5769
+ mc as once,
5770
+ Ve as spreadProps
5636
5771
  };
5637
5772
  //# sourceMappingURL=index.es.js.map