@spectric/ui 0.0.25 → 0.0.27

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,7 +3,7 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const ur = globalThis, es = ur.ShadowRoot && (ur.ShadyCSS === void 0 || ur.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ts = Symbol(), Bs = /* @__PURE__ */ new WeakMap();
6
+ const hr = globalThis, es = hr.ShadowRoot && (hr.ShadyCSS === void 0 || hr.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ts = Symbol(), Bs = /* @__PURE__ */ new WeakMap();
7
7
  let li = class {
8
8
  constructor(t, s, i) {
9
9
  if (this._$cssResult$ = !0, i !== ts) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -32,7 +32,7 @@ const En = (e) => new li(typeof e == "string" ? e : e + "", void 0, ts), oe = (e
32
32
  }, Pn = (e, t) => {
33
33
  if (es) e.adoptedStyleSheets = t.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet);
34
34
  else for (const s of t) {
35
- const i = document.createElement("style"), r = ur.litNonce;
35
+ const i = document.createElement("style"), r = hr.litNonce;
36
36
  r !== void 0 && i.setAttribute("nonce", r), i.textContent = s.cssText, e.appendChild(i);
37
37
  }
38
38
  }, Us = es ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
@@ -45,7 +45,7 @@ const En = (e) => new li(typeof e == "string" ? e : e + "", void 0, ts), oe = (e
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Tn, defineProperty: Ln, getOwnPropertyDescriptor: Nn, getOwnPropertyNames: Dn, getOwnPropertySymbols: Mn, getPrototypeOf: zn } = Object, Ee = globalThis, Hs = Ee.trustedTypes, Rn = Hs ? Hs.emptyScript : "", Ir = Ee.reactiveElementPolyfillSupport, Bt = (e, t) => e, hr = { toAttribute(e, t) {
48
+ const { is: Tn, defineProperty: Ln, getOwnPropertyDescriptor: Nn, getOwnPropertyNames: Dn, getOwnPropertySymbols: Mn, getPrototypeOf: zn } = Object, Ee = globalThis, Fs = Ee.trustedTypes, Rn = Fs ? Fs.emptyScript : "", Br = Ee.reactiveElementPolyfillSupport, Ut = (e, t) => e, dr = { toAttribute(e, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
51
  e = e ? Rn : null;
@@ -73,16 +73,16 @@ const { is: Tn, defineProperty: Ln, getOwnPropertyDescriptor: Nn, getOwnProperty
73
73
  }
74
74
  }
75
75
  return s;
76
- } }, rs = (e, t) => !Tn(e, t), Fs = { attribute: !0, type: String, converter: hr, reflect: !1, hasChanged: rs };
76
+ } }, rs = (e, t) => !Tn(e, t), Hs = { attribute: !0, type: String, converter: dr, reflect: !1, hasChanged: rs };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Ee.litPropertyMetadata ?? (Ee.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
- class bt extends HTMLElement {
78
+ class vt 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, s = Fs) {
85
+ static createProperty(t, s = Hs) {
86
86
  if (s.state && (s.attribute = !1), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
87
87
  const i = Symbol(), r = this.getPropertyDescriptor(t, i, s);
88
88
  r !== void 0 && Ln(this.prototype, t, r);
@@ -102,16 +102,16 @@ class bt extends HTMLElement {
102
102
  }, configurable: !0, enumerable: !0 };
103
103
  }
104
104
  static getPropertyOptions(t) {
105
- return this.elementProperties.get(t) ?? Fs;
105
+ return this.elementProperties.get(t) ?? Hs;
106
106
  }
107
107
  static _$Ei() {
108
- if (this.hasOwnProperty(Bt("elementProperties"))) return;
108
+ if (this.hasOwnProperty(Ut("elementProperties"))) return;
109
109
  const t = zn(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(Bt("finalized"))) return;
114
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Bt("properties"))) {
113
+ if (this.hasOwnProperty(Ut("finalized"))) return;
114
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ut("properties"))) {
115
115
  const s = this.properties, i = [...Dn(s), ...Mn(s)];
116
116
  for (const r of i) this.createProperty(r, s[r]);
117
117
  }
@@ -186,7 +186,7 @@ class bt extends HTMLElement {
186
186
  var a;
187
187
  const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
188
188
  if (r !== void 0 && i.reflect === !0) {
189
- const n = (((a = i.converter) == null ? void 0 : a.toAttribute) !== void 0 ? i.converter : hr).toAttribute(s, i.type);
189
+ const n = (((a = i.converter) == null ? void 0 : a.toAttribute) !== void 0 ? i.converter : dr).toAttribute(s, i.type);
190
190
  this._$Em = t, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
191
191
  }
192
192
  }
@@ -194,7 +194,7 @@ class bt extends HTMLElement {
194
194
  var a;
195
195
  const i = this.constructor, r = i._$Eh.get(t);
196
196
  if (r !== void 0 && this._$Em !== r) {
197
- const n = i.getPropertyOptions(r), h = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((a = n.converter) == null ? void 0 : a.fromAttribute) !== void 0 ? n.converter : hr;
197
+ const n = i.getPropertyOptions(r), h = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((a = n.converter) == null ? void 0 : a.fromAttribute) !== void 0 ? n.converter : dr;
198
198
  this._$Em = r, this[r] = h.fromAttribute(s, n.type), this._$Em = null;
199
199
  }
200
200
  }
@@ -273,53 +273,53 @@ class bt extends HTMLElement {
273
273
  firstUpdated(t) {
274
274
  }
275
275
  }
276
- bt.elementStyles = [], bt.shadowRootOptions = { mode: "open" }, bt[Bt("elementProperties")] = /* @__PURE__ */ new Map(), bt[Bt("finalized")] = /* @__PURE__ */ new Map(), Ir == null || Ir({ ReactiveElement: bt }), (Ee.reactiveElementVersions ?? (Ee.reactiveElementVersions = [])).push("2.0.4");
276
+ vt.elementStyles = [], vt.shadowRootOptions = { mode: "open" }, vt[Ut("elementProperties")] = /* @__PURE__ */ new Map(), vt[Ut("finalized")] = /* @__PURE__ */ new Map(), Br == null || Br({ ReactiveElement: vt }), (Ee.reactiveElementVersions ?? (Ee.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 Ut = globalThis, dr = Ut.trustedTypes, qs = dr ? dr.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, ss = "$lit$", $e = `lit$${Math.random().toFixed(9).slice(2)}$`, is = "?" + $e, jn = `<${is}>`, Qe = document, Qt = () => Qe.createComment(""), Wt = (e) => e === null || typeof e != "object" && typeof e != "function", os = Array.isArray, ci = (e) => os(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", Br = `[
283
- \f\r]`, zt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Qs = /-->/g, Ws = />/g, Be = RegExp(`>|${Br}(?:([^\\s"'>=/]+)(${Br}*=${Br}*(?:[^
284
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Vs = /'/g, Ys = /"/g, pi = /^(?:script|style|textarea|title)$/i, In = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }), m = In(1), we = Symbol.for("lit-noChange"), L = Symbol.for("lit-nothing"), Gs = /* @__PURE__ */ new WeakMap(), Fe = Qe.createTreeWalker(Qe, 129);
282
+ const Ft = globalThis, fr = Ft.trustedTypes, qs = fr ? fr.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, ss = "$lit$", $e = `lit$${Math.random().toFixed(9).slice(2)}$`, is = "?" + $e, jn = `<${is}>`, We = document, Wt = () => We.createComment(""), Vt = (e) => e === null || typeof e != "object" && typeof e != "function", os = Array.isArray, ci = (e) => os(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", Ur = `[
283
+ \f\r]`, Rt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Qs = /-->/g, Ws = />/g, Ue = RegExp(`>|${Ur}(?:([^\\s"'>=/]+)(${Ur}*=${Ur}*(?:[^
284
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Vs = /'/g, Ys = /"/g, pi = /^(?:script|style|textarea|title)$/i, In = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }), m = In(1), we = Symbol.for("lit-noChange"), T = Symbol.for("lit-nothing"), Gs = /* @__PURE__ */ new WeakMap(), qe = We.createTreeWalker(We, 129);
285
285
  function ui(e, t) {
286
286
  if (!os(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
287
  return qs !== void 0 ? qs.createHTML(t) : t;
288
288
  }
289
289
  const hi = (e, t) => {
290
290
  const s = e.length - 1, i = [];
291
- let r, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = zt;
291
+ let r, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = Rt;
292
292
  for (let h = 0; h < s; h++) {
293
293
  const u = e[h];
294
- let g, S, v = -1, O = 0;
295
- for (; O < u.length && (n.lastIndex = O, S = n.exec(u), S !== null); ) O = n.lastIndex, n === zt ? S[1] === "!--" ? n = Qs : S[1] !== void 0 ? n = Ws : S[2] !== void 0 ? (pi.test(S[2]) && (r = RegExp("</" + S[2], "g")), n = Be) : S[3] !== void 0 && (n = Be) : n === Be ? S[0] === ">" ? (n = r ?? zt, v = -1) : S[1] === void 0 ? v = -2 : (v = n.lastIndex - S[2].length, g = S[1], n = S[3] === void 0 ? Be : S[3] === '"' ? Ys : Vs) : n === Ys || n === Vs ? n = Be : n === Qs || n === Ws ? n = zt : (n = Be, r = void 0);
296
- const $ = n === Be && e[h + 1].startsWith("/>") ? " " : "";
297
- a += n === zt ? u + jn : v >= 0 ? (i.push(g), u.slice(0, v) + ss + u.slice(v) + $e + $) : u + $e + (v === -2 ? h : $);
294
+ let g, $, v = -1, A = 0;
295
+ for (; A < u.length && (n.lastIndex = A, $ = n.exec(u), $ !== null); ) A = n.lastIndex, n === Rt ? $[1] === "!--" ? n = Qs : $[1] !== void 0 ? n = Ws : $[2] !== void 0 ? (pi.test($[2]) && (r = RegExp("</" + $[2], "g")), n = Ue) : $[3] !== void 0 && (n = Ue) : n === Ue ? $[0] === ">" ? (n = r ?? Rt, v = -1) : $[1] === void 0 ? v = -2 : (v = n.lastIndex - $[2].length, g = $[1], n = $[3] === void 0 ? Ue : $[3] === '"' ? Ys : Vs) : n === Ys || n === Vs ? n = Ue : n === Qs || n === Ws ? n = Rt : (n = Ue, r = void 0);
296
+ const _ = n === Ue && e[h + 1].startsWith("/>") ? " " : "";
297
+ a += n === Rt ? u + jn : v >= 0 ? (i.push(g), u.slice(0, v) + ss + u.slice(v) + $e + _) : u + $e + (v === -2 ? h : _);
298
298
  }
299
299
  return [ui(e, a + (e[s] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
300
300
  };
301
- class Vt {
301
+ class Yt {
302
302
  constructor({ strings: t, _$litType$: s }, i) {
303
303
  let r;
304
304
  this.parts = [];
305
305
  let a = 0, n = 0;
306
- const h = t.length - 1, u = this.parts, [g, S] = hi(t, s);
307
- if (this.el = Vt.createElement(g, i), Fe.currentNode = this.el.content, s === 2 || s === 3) {
306
+ const h = t.length - 1, u = this.parts, [g, $] = hi(t, s);
307
+ if (this.el = Yt.createElement(g, i), qe.currentNode = this.el.content, s === 2 || s === 3) {
308
308
  const v = this.el.content.firstChild;
309
309
  v.replaceWith(...v.childNodes);
310
310
  }
311
- for (; (r = Fe.nextNode()) !== null && u.length < h; ) {
311
+ for (; (r = qe.nextNode()) !== null && u.length < h; ) {
312
312
  if (r.nodeType === 1) {
313
313
  if (r.hasAttributes()) for (const v of r.getAttributeNames()) if (v.endsWith(ss)) {
314
- const O = S[n++], $ = r.getAttribute(v).split($e), _ = /([.?@])?(.*)/.exec(O);
315
- u.push({ type: 1, index: a, name: _[2], strings: $, ctor: _[1] === "." ? fi : _[1] === "?" ? gi : _[1] === "@" ? bi : Zt }), r.removeAttribute(v);
314
+ const A = $[n++], _ = r.getAttribute(v).split($e), w = /([.?@])?(.*)/.exec(A);
315
+ u.push({ type: 1, index: a, name: w[2], strings: _, ctor: w[1] === "." ? fi : w[1] === "?" ? gi : w[1] === "@" ? bi : Jt }), r.removeAttribute(v);
316
316
  } else v.startsWith($e) && (u.push({ type: 6, index: a }), r.removeAttribute(v));
317
317
  if (pi.test(r.tagName)) {
318
- const v = r.textContent.split($e), O = v.length - 1;
319
- if (O > 0) {
320
- r.textContent = dr ? dr.emptyScript : "";
321
- for (let $ = 0; $ < O; $++) r.append(v[$], Qt()), Fe.nextNode(), u.push({ type: 2, index: ++a });
322
- r.append(v[O], Qt());
318
+ const v = r.textContent.split($e), A = v.length - 1;
319
+ if (A > 0) {
320
+ r.textContent = fr ? fr.emptyScript : "";
321
+ for (let _ = 0; _ < A; _++) r.append(v[_], Wt()), qe.nextNode(), u.push({ type: 2, index: ++a });
322
+ r.append(v[A], Wt());
323
323
  }
324
324
  }
325
325
  } else if (r.nodeType === 8) if (r.data === is) u.push({ type: 2, index: a });
@@ -331,16 +331,16 @@ class Vt {
331
331
  }
332
332
  }
333
333
  static createElement(t, s) {
334
- const i = Qe.createElement("template");
334
+ const i = We.createElement("template");
335
335
  return i.innerHTML = t, i;
336
336
  }
337
337
  }
338
- function We(e, t, s = e, i) {
338
+ function Ve(e, t, s = e, i) {
339
339
  var n, h;
340
340
  if (t === we) return t;
341
341
  let r = i !== void 0 ? (n = s._$Co) == null ? void 0 : n[i] : s._$Cl;
342
- const a = Wt(t) ? void 0 : t._$litDirective$;
343
- return (r == null ? void 0 : r.constructor) !== a && ((h = r == null ? void 0 : r._$AO) == null || h.call(r, !1), a === void 0 ? r = void 0 : (r = new a(e), r._$AT(e, s, i)), i !== void 0 ? (s._$Co ?? (s._$Co = []))[i] = r : s._$Cl = r), r !== void 0 && (t = We(e, r._$AS(e, t.values), r, i)), t;
342
+ const a = Vt(t) ? void 0 : t._$litDirective$;
343
+ return (r == null ? void 0 : r.constructor) !== a && ((h = r == null ? void 0 : r._$AO) == null || h.call(r, !1), a === void 0 ? r = void 0 : (r = new a(e), r._$AT(e, s, i)), i !== void 0 ? (s._$Co ?? (s._$Co = []))[i] = r : s._$Cl = r), r !== void 0 && (t = Ve(e, r._$AS(e, t.values), r, i)), t;
344
344
  }
345
345
  let di = class {
346
346
  constructor(t, s) {
@@ -353,30 +353,30 @@ let di = class {
353
353
  return this._$AM._$AU;
354
354
  }
355
355
  u(t) {
356
- const { el: { content: s }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? Qe).importNode(s, !0);
357
- Fe.currentNode = r;
358
- let a = Fe.nextNode(), n = 0, h = 0, u = i[0];
356
+ const { el: { content: s }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? We).importNode(s, !0);
357
+ qe.currentNode = r;
358
+ let a = qe.nextNode(), n = 0, h = 0, u = i[0];
359
359
  for (; u !== void 0; ) {
360
360
  if (n === u.index) {
361
361
  let g;
362
- u.type === 2 ? g = new St(a, a.nextSibling, this, t) : u.type === 1 ? g = new u.ctor(a, u.name, u.strings, this, t) : u.type === 6 && (g = new vi(a, this, t)), this._$AV.push(g), u = i[++h];
362
+ u.type === 2 ? g = new At(a, a.nextSibling, this, t) : u.type === 1 ? g = new u.ctor(a, u.name, u.strings, this, t) : u.type === 6 && (g = new vi(a, this, t)), this._$AV.push(g), u = i[++h];
363
363
  }
364
- n !== (u == null ? void 0 : u.index) && (a = Fe.nextNode(), n++);
364
+ n !== (u == null ? void 0 : u.index) && (a = qe.nextNode(), n++);
365
365
  }
366
- return Fe.currentNode = Qe, r;
366
+ return qe.currentNode = We, r;
367
367
  }
368
368
  p(t) {
369
369
  let s = 0;
370
370
  for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, s), s += i.strings.length - 2) : i._$AI(t[s])), s++;
371
371
  }
372
372
  };
373
- class St {
373
+ class At {
374
374
  get _$AU() {
375
375
  var t;
376
376
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
377
377
  }
378
378
  constructor(t, s, i, r) {
379
- this.type = 2, this._$AH = L, this._$AN = void 0, this._$AA = t, this._$AB = s, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
379
+ this.type = 2, this._$AH = T, this._$AN = void 0, this._$AA = t, this._$AB = s, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
380
380
  }
381
381
  get parentNode() {
382
382
  let t = this._$AA.parentNode;
@@ -390,7 +390,7 @@ class St {
390
390
  return this._$AB;
391
391
  }
392
392
  _$AI(t, s = this) {
393
- t = We(this, t, s), Wt(t) ? t === L || t == null || t === "" ? (this._$AH !== L && this._$AR(), this._$AH = L) : t !== this._$AH && t !== we && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : ci(t) ? this.k(t) : this._(t);
393
+ t = Ve(this, t, s), Vt(t) ? t === T || t == null || t === "" ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== we && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : ci(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 St {
399
399
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
400
400
  }
401
401
  _(t) {
402
- this._$AH !== L && Wt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Qe.createTextNode(t)), this._$AH = t;
402
+ this._$AH !== T && Vt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(We.createTextNode(t)), this._$AH = t;
403
403
  }
404
404
  $(t) {
405
405
  var a;
406
- const { values: s, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Vt.createElement(ui(i.h, i.h[0]), this.options)), i);
406
+ const { values: s, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Yt.createElement(ui(i.h, i.h[0]), this.options)), i);
407
407
  if (((a = this._$AH) == null ? void 0 : a._$AD) === r) this._$AH.p(s);
408
408
  else {
409
409
  const n = new di(r, this), h = n.u(this.options);
@@ -412,13 +412,13 @@ class St {
412
412
  }
413
413
  _$AC(t) {
414
414
  let s = Gs.get(t.strings);
415
- return s === void 0 && Gs.set(t.strings, s = new Vt(t)), s;
415
+ return s === void 0 && Gs.set(t.strings, s = new Yt(t)), s;
416
416
  }
417
417
  k(t) {
418
418
  os(this._$AH) || (this._$AH = [], this._$AR());
419
419
  const s = this._$AH;
420
420
  let i, r = 0;
421
- for (const a of t) r === s.length ? s.push(i = new St(this.O(Qt()), this.O(Qt()), this, this.options)) : i = s[r], i._$AI(a), r++;
421
+ for (const a of t) r === s.length ? s.push(i = new At(this.O(Wt()), this.O(Wt()), this, this.options)) : i = s[r], i._$AI(a), r++;
422
422
  r < s.length && (this._$AR(i && i._$AB.nextSibling, r), s.length = r);
423
423
  }
424
424
  _$AR(t = this._$AA.nextSibling, s) {
@@ -433,7 +433,7 @@ class St {
433
433
  this._$AM === void 0 && (this._$Cv = t, (s = this._$AP) == null || s.call(this, t));
434
434
  }
435
435
  }
436
- class Zt {
436
+ class Jt {
437
437
  get tagName() {
438
438
  return this.element.tagName;
439
439
  }
@@ -441,46 +441,46 @@ class Zt {
441
441
  return this._$AM._$AU;
442
442
  }
443
443
  constructor(t, s, i, r, a) {
444
- this.type = 1, this._$AH = L, this._$AN = void 0, this.element = t, this.name = s, this._$AM = r, this.options = a, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = L;
444
+ this.type = 1, this._$AH = T, this._$AN = void 0, this.element = t, this.name = s, this._$AM = r, this.options = a, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = T;
445
445
  }
446
446
  _$AI(t, s = this, i, r) {
447
447
  const a = this.strings;
448
448
  let n = !1;
449
- if (a === void 0) t = We(this, t, s, 0), n = !Wt(t) || t !== this._$AH && t !== we, n && (this._$AH = t);
449
+ if (a === void 0) t = Ve(this, t, s, 0), n = !Vt(t) || t !== this._$AH && t !== we, n && (this._$AH = t);
450
450
  else {
451
451
  const h = t;
452
452
  let u, g;
453
- for (t = a[0], u = 0; u < a.length - 1; u++) g = We(this, h[i + u], s, u), g === we && (g = this._$AH[u]), n || (n = !Wt(g) || g !== this._$AH[u]), g === L ? t = L : t !== L && (t += (g ?? "") + a[u + 1]), this._$AH[u] = g;
453
+ for (t = a[0], u = 0; u < a.length - 1; u++) g = Ve(this, h[i + u], s, u), g === we && (g = this._$AH[u]), n || (n = !Vt(g) || g !== this._$AH[u]), g === T ? t = T : t !== T && (t += (g ?? "") + a[u + 1]), this._$AH[u] = g;
454
454
  }
455
455
  n && !r && this.j(t);
456
456
  }
457
457
  j(t) {
458
- t === L ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
458
+ t === T ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
459
459
  }
460
460
  }
461
- class fi extends Zt {
461
+ class fi extends Jt {
462
462
  constructor() {
463
463
  super(...arguments), this.type = 3;
464
464
  }
465
465
  j(t) {
466
- this.element[this.name] = t === L ? void 0 : t;
466
+ this.element[this.name] = t === T ? void 0 : t;
467
467
  }
468
468
  }
469
- class gi extends Zt {
469
+ class gi extends Jt {
470
470
  constructor() {
471
471
  super(...arguments), this.type = 4;
472
472
  }
473
473
  j(t) {
474
- this.element.toggleAttribute(this.name, !!t && t !== L);
474
+ this.element.toggleAttribute(this.name, !!t && t !== T);
475
475
  }
476
476
  }
477
- class bi extends Zt {
477
+ class bi extends Jt {
478
478
  constructor(t, s, i, r, a) {
479
479
  super(t, s, i, r, a), this.type = 5;
480
480
  }
481
481
  _$AI(t, s = this) {
482
- if ((t = We(this, t, s, 0) ?? L) === we) return;
483
- const i = this._$AH, r = t === L && i !== L || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, a = t !== L && (i === L || r);
482
+ if ((t = Ve(this, t, s, 0) ?? T) === we) return;
483
+ const i = this._$AH, r = t === T && i !== T || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, a = t !== T && (i === T || r);
484
484
  r && this.element.removeEventListener(this.name, this, i), a && this.element.addEventListener(this.name, this, t), this._$AH = t;
485
485
  }
486
486
  handleEvent(t) {
@@ -496,17 +496,17 @@ class vi {
496
496
  return this._$AM._$AU;
497
497
  }
498
498
  _$AI(t) {
499
- We(this, t);
499
+ Ve(this, t);
500
500
  }
501
501
  }
502
- const Bn = { M: ss, P: $e, A: is, C: 1, L: hi, R: di, D: ci, V: We, I: St, H: Zt, N: gi, U: bi, B: fi, F: vi }, Ur = Ut.litHtmlPolyfillSupport;
503
- Ur == null || Ur(Vt, St), (Ut.litHtmlVersions ?? (Ut.litHtmlVersions = [])).push("3.2.1");
504
- const mr = (e, t, s) => {
502
+ const Bn = { M: ss, P: $e, A: is, C: 1, L: hi, R: di, D: ci, V: Ve, I: At, H: Jt, N: gi, U: bi, B: fi, F: vi }, Fr = Ft.litHtmlPolyfillSupport;
503
+ Fr == null || Fr(Yt, At), (Ft.litHtmlVersions ?? (Ft.litHtmlVersions = [])).push("3.2.1");
504
+ const $r = (e, t, s) => {
505
505
  const i = (s == null ? void 0 : s.renderBefore) ?? t;
506
506
  let r = i._$litPart$;
507
507
  if (r === void 0) {
508
508
  const a = (s == null ? void 0 : s.renderBefore) ?? null;
509
- i._$litPart$ = r = new St(t.insertBefore(Qt(), a), a, void 0, s ?? {});
509
+ i._$litPart$ = r = new At(t.insertBefore(Wt(), a), a, void 0, s ?? {});
510
510
  }
511
511
  return r._$AI(e), r;
512
512
  };
@@ -515,7 +515,7 @@ const mr = (e, t, s) => {
515
515
  * Copyright 2017 Google LLC
516
516
  * SPDX-License-Identifier: BSD-3-Clause
517
517
  */
518
- let B = class extends bt {
518
+ let B = class extends vt {
519
519
  constructor() {
520
520
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
521
521
  }
@@ -526,7 +526,7 @@ let B = class extends bt {
526
526
  }
527
527
  update(t) {
528
528
  const s = this.render();
529
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = mr(s, this.renderRoot, this.renderOptions);
529
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = $r(s, this.renderRoot, this.renderOptions);
530
530
  }
531
531
  connectedCallback() {
532
532
  var t;
@@ -550,8 +550,8 @@ Hr == null || Hr({ LitElement: B });
550
550
  * Copyright 2017 Google LLC
551
551
  * SPDX-License-Identifier: BSD-3-Clause
552
552
  */
553
- const $r = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, kt = (e) => (...t) => ({ _$litDirective$: e, values: t });
554
- let Jt = class {
553
+ const _r = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ct = (e) => (...t) => ({ _$litDirective$: e, values: t });
554
+ let Kt = class {
555
555
  constructor(t) {
556
556
  }
557
557
  get _$AU() {
@@ -572,10 +572,10 @@ let Jt = class {
572
572
  * Copyright 2018 Google LLC
573
573
  * SPDX-License-Identifier: BSD-3-Clause
574
574
  */
575
- const yi = "important", Un = " !" + yi, ns = kt(class extends Jt {
575
+ const yi = "important", Un = " !" + yi, ns = Ct(class extends Kt {
576
576
  constructor(e) {
577
577
  var t;
578
- if (super(e), e.type !== $r.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 !== _r.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, s) => {
@@ -597,7 +597,7 @@ const yi = "important", Un = " !" + yi, ns = kt(class extends Jt {
597
597
  }
598
598
  return we;
599
599
  }
600
- }), Hn = oe`
600
+ }), Fn = oe`
601
601
  :host{
602
602
  display: inline-block;
603
603
  --text-on-color: var(--spectric-text-on-color, #ffffff);
@@ -857,7 +857,7 @@ opacity:1
857
857
  * Copyright 2017 Google LLC
858
858
  * SPDX-License-Identifier: BSD-3-Clause
859
859
  */
860
- const j = (e) => (t, s) => {
860
+ const I = (e) => (t, s) => {
861
861
  s !== void 0 ? s.addInitializer(() => {
862
862
  customElements.define(e, t);
863
863
  }) : customElements.define(e, t);
@@ -867,7 +867,7 @@ const j = (e) => (t, s) => {
867
867
  * Copyright 2017 Google LLC
868
868
  * SPDX-License-Identifier: BSD-3-Clause
869
869
  */
870
- const Fn = { attribute: !0, type: String, converter: hr, reflect: !1, hasChanged: rs }, qn = (e = Fn, t, s) => {
870
+ const Hn = { attribute: !0, type: String, converter: dr, reflect: !1, hasChanged: rs }, qn = (e = Hn, t, s) => {
871
871
  const { kind: i, metadata: r } = s;
872
872
  let a = globalThis.litPropertyMetadata.get(r);
873
873
  if (a === void 0 && globalThis.litPropertyMetadata.set(r, a = /* @__PURE__ */ new Map()), a.set(s.name, e), i === "accessor") {
@@ -899,7 +899,7 @@ function f(e) {
899
899
  * Copyright 2017 Google LLC
900
900
  * SPDX-License-Identifier: BSD-3-Clause
901
901
  */
902
- function Y(e) {
902
+ function G(e) {
903
903
  return f({ ...e, state: !0, attribute: !1 });
904
904
  }
905
905
  /**
@@ -940,22 +940,22 @@ function Se(e, t) {
940
940
  * Copyright 2017 Google LLC
941
941
  * SPDX-License-Identifier: BSD-3-Clause
942
942
  */
943
- function Kt(e) {
943
+ function Xt(e) {
944
944
  return (t, s) => mi(t, s, { async get() {
945
945
  var i;
946
946
  return await this.updateComplete, ((i = this.renderRoot) == null ? void 0 : i.querySelector(e)) ?? null;
947
947
  } });
948
948
  }
949
- let Qr = 0;
950
- const Qn = () => Qr;
949
+ let Wr = 0;
950
+ const Qn = () => Wr;
951
951
  class Zs {
952
952
  constructor(t, s, i, r) {
953
953
  this._handler = i, this._type = s, this._handler = i, this._options = r || !1, t instanceof Promise ? t.then((a) => {
954
954
  this._handler && (this._node = a, 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)), Qr += 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)), Wr += 1;
956
956
  }
957
957
  dispose() {
958
- this._handler && (this._node && (Qr -= 1, this._node.removeEventListener(this._type, this._handler, this._options)), this._node = void 0, this._handler = void 0);
958
+ this._handler && (this._node && (Wr -= 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 ke extends B {
@@ -987,7 +987,7 @@ class ke extends B {
987
987
  }), this._isDisposed = !0;
988
988
  }
989
989
  }
990
- var Wn = Object.defineProperty, Vn = Object.getOwnPropertyDescriptor, fe = (e, t, s, i) => {
990
+ var Wn = Object.defineProperty, Vn = Object.getOwnPropertyDescriptor, ge = (e, t, s, i) => {
991
991
  for (var r = i > 1 ? void 0 : i ? Vn(t, s) : t, a = e.length - 1, n; a >= 0; a--)
992
992
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
993
993
  return i && r && Wn(t, s, r), r;
@@ -997,7 +997,7 @@ const Yn = {
997
997
  secondary: "spectric-button--secondary",
998
998
  text: "spectric-button--text"
999
999
  };
1000
- let J = class extends ke {
1000
+ let K = class extends ke {
1001
1001
  constructor() {
1002
1002
  super(), this.variant = "primary", this.disabled = !1, this.size = "small", this.label = "", this.danger = !1, this.icon = !1, this.tooltipPosition = "right", this.addDisposableListener(this, "click", this._onClick, { capture: !0 }), this._onClick = this._onClick.bind(this);
1003
1003
  }
@@ -1009,7 +1009,7 @@ let J = class extends ke {
1009
1009
  }
1010
1010
  }
1011
1011
  updated(e) {
1012
- this.tooltip && this.tooltip !== "" && mr(m`<spectric-tooltip slot="tooltip" .text=${this.tooltip} .position=${this.tooltipPosition || "right"}></spectric-tooltip>`, this);
1012
+ this.tooltip && this.tooltip !== "" && $r(m`<spectric-tooltip slot="tooltip" .text=${this.tooltip} .position=${this.tooltipPosition || "right"}></spectric-tooltip>`, this);
1013
1013
  }
1014
1014
  render() {
1015
1015
  const e = Yn[this.variant] || "spectric-button--primary";
@@ -1027,37 +1027,37 @@ let J = class extends ke {
1027
1027
  `;
1028
1028
  }
1029
1029
  };
1030
- J.styles = Hn;
1031
- fe([
1030
+ K.styles = Fn;
1031
+ ge([
1032
1032
  f({ type: String, reflect: !0 })
1033
- ], J.prototype, "variant", 2);
1034
- fe([
1033
+ ], K.prototype, "variant", 2);
1034
+ ge([
1035
1035
  f({ type: Boolean, reflect: !0 })
1036
- ], J.prototype, "disabled", 2);
1037
- fe([
1036
+ ], K.prototype, "disabled", 2);
1037
+ ge([
1038
1038
  f({ type: String, reflect: !0 })
1039
- ], J.prototype, "backgroundColor", 2);
1040
- fe([
1039
+ ], K.prototype, "backgroundColor", 2);
1040
+ ge([
1041
1041
  f({ type: String, reflect: !0 })
1042
- ], J.prototype, "size", 2);
1043
- fe([
1042
+ ], K.prototype, "size", 2);
1043
+ ge([
1044
1044
  f({ type: String, reflect: !0 })
1045
- ], J.prototype, "label", 2);
1046
- fe([
1045
+ ], K.prototype, "label", 2);
1046
+ ge([
1047
1047
  f({ type: Boolean, reflect: !0 })
1048
- ], J.prototype, "danger", 2);
1049
- fe([
1048
+ ], K.prototype, "danger", 2);
1049
+ ge([
1050
1050
  f({ type: Boolean, reflect: !0 })
1051
- ], J.prototype, "icon", 2);
1052
- fe([
1051
+ ], K.prototype, "icon", 2);
1052
+ ge([
1053
1053
  f({ type: String, reflect: !0 })
1054
- ], J.prototype, "tooltip", 2);
1055
- fe([
1054
+ ], K.prototype, "tooltip", 2);
1055
+ ge([
1056
1056
  f({ type: String, reflect: !0 })
1057
- ], J.prototype, "tooltipPosition", 2);
1058
- J = fe([
1059
- j("spectric-button")
1060
- ], J);
1057
+ ], K.prototype, "tooltipPosition", 2);
1058
+ K = ge([
1059
+ I("spectric-button")
1060
+ ], K);
1061
1061
  /**
1062
1062
  * @license
1063
1063
  * Copyright 2020 Google LLC
@@ -1081,13 +1081,13 @@ const { I: Gn } = Bn, Js = (e, t) => (e == null ? void 0 : e._$litType$) !== voi
1081
1081
  if (n !== r || u) {
1082
1082
  let g = s._$AA;
1083
1083
  for (; g !== n; ) {
1084
- const S = g.nextSibling;
1085
- i.insertBefore(g, r), g = S;
1084
+ const $ = g.nextSibling;
1085
+ i.insertBefore(g, r), g = $;
1086
1086
  }
1087
1087
  }
1088
1088
  }
1089
1089
  return s;
1090
- }, Ue = (e, t, s = e) => (e._$AI(t, s), e), Kn = {}, Wr = (e, t = Kn) => e._$AH = t, Vr = (e) => e._$AH, Fr = (e) => {
1090
+ }, Fe = (e, t, s = e) => (e._$AI(t, s), e), Kn = {}, Vr = (e, t = Kn) => e._$AH = t, Yr = (e) => e._$AH, qr = (e) => {
1091
1091
  var i;
1092
1092
  (i = e._$AP) == null || i.call(e, !1, !0);
1093
1093
  let t = e._$AA;
@@ -1110,7 +1110,7 @@ const Ht = (e, t) => {
1110
1110
  if (s === void 0) return !1;
1111
1111
  for (const r of s) (i = r._$AO) == null || i.call(r, t, !1), Ht(r, t);
1112
1112
  return !0;
1113
- }, fr = (e) => {
1113
+ }, gr = (e) => {
1114
1114
  let t, s;
1115
1115
  do {
1116
1116
  if ((t = e._$AM) === void 0) break;
@@ -1125,18 +1125,18 @@ const Ht = (e, t) => {
1125
1125
  }
1126
1126
  };
1127
1127
  function ea(e) {
1128
- this._$AN !== void 0 ? (fr(this), this._$AM = e, wi(this)) : this._$AM = e;
1128
+ this._$AN !== void 0 ? (gr(this), this._$AM = e, wi(this)) : this._$AM = e;
1129
1129
  }
1130
1130
  function ta(e, t = !1, s = 0) {
1131
1131
  const i = this._$AH, r = this._$AN;
1132
- if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let a = s; a < i.length; a++) Ht(i[a], !1), fr(i[a]);
1133
- else i != null && (Ht(i, !1), fr(i));
1132
+ if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let a = s; a < i.length; a++) Ht(i[a], !1), gr(i[a]);
1133
+ else i != null && (Ht(i, !1), gr(i));
1134
1134
  else Ht(this, e);
1135
1135
  }
1136
1136
  const ra = (e) => {
1137
- e.type == $r.CHILD && (e._$AP ?? (e._$AP = ta), e._$AQ ?? (e._$AQ = ea));
1137
+ e.type == _r.CHILD && (e._$AP ?? (e._$AP = ta), e._$AQ ?? (e._$AQ = ea));
1138
1138
  };
1139
- class xi extends Jt {
1139
+ class xi extends Kt {
1140
1140
  constructor() {
1141
1141
  super(...arguments), this._$AN = void 0;
1142
1142
  }
@@ -1145,7 +1145,7 @@ class xi extends Jt {
1145
1145
  }
1146
1146
  _$AO(t, s = !0) {
1147
1147
  var i, r;
1148
- t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), s && (Ht(this, t), fr(this));
1148
+ t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), s && (Ht(this, t), gr(this));
1149
1149
  }
1150
1150
  setValue(t) {
1151
1151
  if (Jn(this._$Ct)) this._$Ct._$AI(t, this);
@@ -1164,28 +1164,28 @@ class xi extends Jt {
1164
1164
  * Copyright 2020 Google LLC
1165
1165
  * SPDX-License-Identifier: BSD-3-Clause
1166
1166
  */
1167
- const yt = () => new sa();
1167
+ const mt = () => new sa();
1168
1168
  let sa = class {
1169
1169
  };
1170
- const qr = /* @__PURE__ */ new WeakMap(), mt = kt(class extends xi {
1170
+ const Qr = /* @__PURE__ */ new WeakMap(), $t = Ct(class extends xi {
1171
1171
  render(e) {
1172
- return L;
1172
+ return T;
1173
1173
  }
1174
1174
  update(e, [t]) {
1175
1175
  var i;
1176
1176
  const s = t !== this.Y;
1177
- return s && this.Y !== void 0 && this.rt(void 0), (s || this.lt !== this.ct) && (this.Y = t, this.ht = (i = e.options) == null ? void 0 : i.host, this.rt(this.ct = e.element)), L;
1177
+ return s && this.Y !== void 0 && this.rt(void 0), (s || this.lt !== this.ct) && (this.Y = t, this.ht = (i = e.options) == null ? void 0 : i.host, this.rt(this.ct = e.element)), T;
1178
1178
  }
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 s = qr.get(t);
1183
- s === void 0 && (s = /* @__PURE__ */ new WeakMap(), qr.set(t, s)), s.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), s.set(this.Y, e), e !== void 0 && this.Y.call(this.ht, e);
1182
+ let s = Qr.get(t);
1183
+ s === void 0 && (s = /* @__PURE__ */ new WeakMap(), Qr.set(t, s)), s.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), s.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 = qr.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 = Qr.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);
@@ -1228,7 +1228,7 @@ const qr = /* @__PURE__ */ new WeakMap(), mt = kt(class extends xi {
1228
1228
  return (...i) => {
1229
1229
  clearTimeout(s), s = window.setTimeout(() => e.apply(void 0, i), t);
1230
1230
  };
1231
- }, _r = (e) => {
1231
+ }, wr = (e) => {
1232
1232
  var t;
1233
1233
  return (...s) => {
1234
1234
  t && cancelAnimationFrame(t), t = requestAnimationFrame(() => {
@@ -1241,13 +1241,13 @@ var oa = Object.defineProperty, na = Object.getOwnPropertyDescriptor, Ke = (e, t
1241
1241
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
1242
1242
  return i && r && oa(t, s, r), r;
1243
1243
  };
1244
- const aa = ["mousemove", "click", "dblclick", "mousedown", "mouseup", "contextmenu"], ar = { width: 200, height: 200 }, gr = { width: 10, height: 10 };
1245
- let he = class extends ke {
1244
+ const aa = ["mousemove", "click", "dblclick", "mousedown", "mouseup", "contextmenu"], lr = { width: 200, height: 200 }, br = { width: 10, height: 10 };
1245
+ let de = class extends ke {
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: yt(),
1249
- canvas: yt(),
1250
- scrollDiv: yt()
1248
+ viewport: mt(),
1249
+ canvas: mt(),
1250
+ scrollDiv: mt()
1251
1251
  }, this.color = "#000000", this.onThemeChange = () => {
1252
1252
  let s = getComputedStyle(this);
1253
1253
  this.color != s.color && (this.color = s.color, this.paint());
@@ -1265,7 +1265,7 @@ let he = class extends ke {
1265
1265
  }, this.resizeObserver = e, this.addDisposableListener(document.body, "theme-change", this.onThemeChange);
1266
1266
  var t = {};
1267
1267
  aa.forEach((s) => {
1268
- this.addDisposableListener(this._canvas, s, _r(async (i) => {
1268
+ this.addDisposableListener(this._canvas, s, wr(async (i) => {
1269
1269
  i.stopImmediatePropagation(), i.stopPropagation(), i.preventDefault();
1270
1270
  var r = await this._canvas;
1271
1271
  let a = r.getBoundingClientRect(), n = {
@@ -1308,7 +1308,7 @@ let he = class extends ke {
1308
1308
  if (e <= 0)
1309
1309
  return;
1310
1310
  this.calculateViewport();
1311
- const { width: s = ar.width, height: i = ar.height } = this, r = this.getPxPerBit(), a = this.refs.canvas.value.getContext("2d");
1311
+ const { width: s = lr.width, height: i = lr.height } = this, r = this.getPxPerBit(), a = this.refs.canvas.value.getContext("2d");
1312
1312
  if (!a)
1313
1313
  return;
1314
1314
  this.state.scale != r && (a.reset(), a.scale(r, r));
@@ -1316,15 +1316,15 @@ let he = class extends ke {
1316
1316
  a.fillStyle = n.color, a.clearRect(0, 0, s, i);
1317
1317
  let h = 0;
1318
1318
  for (let u = this.yStart * e + this.xStart, g = t.length; u < g; u++) {
1319
- let S = u % e - this.xStart;
1320
- if (!(S < 0)) {
1321
- if (Math.floor(S * r) > s) {
1319
+ let $ = u % e - this.xStart;
1320
+ if (!($ < 0)) {
1321
+ if (Math.floor($ * r) > s) {
1322
1322
  h++, u = h * e + this.yStart * e + this.xStart - 1;
1323
1323
  continue;
1324
1324
  }
1325
1325
  if (Math.floor(h * r) > i)
1326
1326
  break;
1327
- t.getBit(u) === 1 && a.fillRect(S, h, 1, 1), (u + 1) % e === 0 && u >= e - 1 && h++;
1327
+ t.getBit(u) === 1 && a.fillRect($, h, 1, 1), (u + 1) % e === 0 && u >= e - 1 && h++;
1328
1328
  }
1329
1329
  }
1330
1330
  }
@@ -1340,29 +1340,29 @@ let he = class extends ke {
1340
1340
  }
1341
1341
  }
1342
1342
  render() {
1343
- const { height: e = ar.height, width: t = ar.width } = this;
1343
+ const { height: e = lr.height, width: t = lr.width } = this;
1344
1344
  return m`
1345
1345
  <div
1346
1346
  id="viewport"
1347
- ${mt(this.refs.viewport)}
1347
+ ${$t(this.refs.viewport)}
1348
1348
  @scroll=${this.handleScroll}
1349
- style=${`width:${t + gr.width}px;height:${e + gr.height}px;overflow:auto;position:relative`}
1349
+ style=${`width:${t + br.width}px;height:${e + br.height}px;overflow:auto;position:relative`}
1350
1350
  >
1351
1351
  <div
1352
1352
  id="fakescrolldiv"
1353
- ${mt(this.refs.scrollDiv)}
1353
+ ${$t(this.refs.scrollDiv)}
1354
1354
  >
1355
1355
  </div>
1356
1356
  </div>
1357
1357
  <canvas
1358
- ${mt(this.refs.canvas)}
1358
+ ${$t(this.refs.canvas)}
1359
1359
  width=${t}
1360
1360
  height=${e}
1361
1361
  ></canvas>
1362
1362
  `;
1363
1363
  }
1364
1364
  };
1365
- he.styles = oe`
1365
+ de.styles = oe`
1366
1366
  :host{
1367
1367
  position: relative;
1368
1368
  --border-radius: var(--spectric-border-radius,4em);
@@ -1386,8 +1386,8 @@ he.styles = oe`
1386
1386
  background-color:var(--background-color);
1387
1387
  }
1388
1388
  ::-webkit-scrollbar {
1389
- height: ${gr.height}px;
1390
- width: ${gr.width}px;
1389
+ height: ${br.height}px;
1390
+ width: ${br.width}px;
1391
1391
 
1392
1392
  }
1393
1393
 
@@ -1461,25 +1461,25 @@ he.styles = oe`
1461
1461
  `;
1462
1462
  Ke([
1463
1463
  f({ type: Object, attribute: !1 })
1464
- ], he.prototype, "arrayBuffer", 2);
1464
+ ], de.prototype, "arrayBuffer", 2);
1465
1465
  Ke([
1466
1466
  f({ type: Number })
1467
- ], he.prototype, "frameWidth", 2);
1467
+ ], de.prototype, "frameWidth", 2);
1468
1468
  Ke([
1469
1469
  f({ type: Number })
1470
- ], he.prototype, "scale", 2);
1470
+ ], de.prototype, "scale", 2);
1471
1471
  Ke([
1472
1472
  f({ type: Number })
1473
- ], he.prototype, "width", 2);
1473
+ ], de.prototype, "width", 2);
1474
1474
  Ke([
1475
1475
  f({ type: Number })
1476
- ], he.prototype, "height", 2);
1476
+ ], de.prototype, "height", 2);
1477
1477
  Ke([
1478
- Kt("canvas")
1479
- ], he.prototype, "_canvas", 2);
1480
- he = Ke([
1481
- j("spectric-bit-display")
1482
- ], he);
1478
+ Xt("canvas")
1479
+ ], de.prototype, "_canvas", 2);
1480
+ de = Ke([
1481
+ I("spectric-bit-display")
1482
+ ], de);
1483
1483
  const la = oe`.spectric-header {
1484
1484
  display: flex;
1485
1485
  justify-content: space-between;
@@ -1516,12 +1516,12 @@ const la = oe`.spectric-header {
1516
1516
  font-size: 14px;
1517
1517
  }
1518
1518
  `;
1519
- var ca = Object.defineProperty, pa = Object.getOwnPropertyDescriptor, wr = (e, t, s, i) => {
1519
+ var ca = Object.defineProperty, pa = Object.getOwnPropertyDescriptor, xr = (e, t, s, i) => {
1520
1520
  for (var r = i > 1 ? void 0 : i ? pa(t, s) : t, a = e.length - 1, n; a >= 0; a--)
1521
1521
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
1522
1522
  return i && r && ca(t, s, r), r;
1523
1523
  };
1524
- let Ve = class extends B {
1524
+ let Ye = class extends B {
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 Ve = class extends B {
1566
1566
  `;
1567
1567
  }
1568
1568
  };
1569
- Ve.styles = la;
1570
- wr([
1569
+ Ye.styles = la;
1570
+ xr([
1571
1571
  f({ type: Boolean, reflect: !0 })
1572
- ], Ve.prototype, "showCreateAccount", 2);
1573
- wr([
1572
+ ], Ye.prototype, "showCreateAccount", 2);
1573
+ xr([
1574
1574
  f({ type: Boolean, reflect: !0 })
1575
- ], Ve.prototype, "showLoginButton", 2);
1576
- wr([
1575
+ ], Ye.prototype, "showLoginButton", 2);
1576
+ xr([
1577
1577
  f({ type: String, reflect: !0 })
1578
- ], Ve.prototype, "username", 2);
1579
- Ve = wr([
1580
- j("spectric-header")
1581
- ], Ve);
1582
- var ua = Object.defineProperty, ha = Object.getOwnPropertyDescriptor, At = (e, t, s, i) => {
1578
+ ], Ye.prototype, "username", 2);
1579
+ Ye = xr([
1580
+ I("spectric-header")
1581
+ ], Ye);
1582
+ var ua = Object.defineProperty, ha = Object.getOwnPropertyDescriptor, Ot = (e, t, s, i) => {
1583
1583
  for (var r = i > 1 ? void 0 : i ? ha(t, s) : t, a = e.length - 1, n; a >= 0; a--)
1584
1584
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
1585
1585
  return i && r && ua(t, s, r), r;
@@ -1591,7 +1591,7 @@ const da = {
1591
1591
  color: "white",
1592
1592
  textAlign: "center"
1593
1593
  };
1594
- let Ye = class extends B {
1594
+ let Ge = class extends B {
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();
@@ -1623,24 +1623,24 @@ let Ye = class extends B {
1623
1623
  `;
1624
1624
  }
1625
1625
  };
1626
- At([
1626
+ Ot([
1627
1627
  f({ type: Boolean, reflect: !0 })
1628
- ], Ye.prototype, "dismissable", 2);
1629
- At([
1628
+ ], Ge.prototype, "dismissable", 2);
1629
+ Ot([
1630
1630
  f({ type: String, reflect: !0 })
1631
- ], Ye.prototype, "text", 2);
1632
- At([
1631
+ ], Ge.prototype, "text", 2);
1632
+ Ot([
1633
1633
  f({ type: String, reflect: !0 })
1634
- ], Ye.prototype, "bannerId", 2);
1635
- At([
1634
+ ], Ge.prototype, "bannerId", 2);
1635
+ Ot([
1636
1636
  f({ type: Object })
1637
- ], Ye.prototype, "headerStyle", 2);
1638
- At([
1637
+ ], Ge.prototype, "headerStyle", 2);
1638
+ Ot([
1639
1639
  f({ state: !0, type: Boolean, attribute: !1 })
1640
- ], Ye.prototype, "_dismissed", 2);
1641
- Ye = At([
1642
- j("spectric-banner")
1643
- ], Ye);
1640
+ ], Ge.prototype, "_dismissed", 2);
1641
+ Ge = Ot([
1642
+ I("spectric-banner")
1643
+ ], Ge);
1644
1644
  const fa = oe`
1645
1645
 
1646
1646
  :host {
@@ -1803,13 +1803,13 @@ article{
1803
1803
  * Copyright 2018 Google LLC
1804
1804
  * SPDX-License-Identifier: BSD-3-Clause
1805
1805
  */
1806
- const Yr = (e) => e ?? L;
1806
+ const Gr = (e) => e ?? T;
1807
1807
  class ki extends xi {
1808
1808
  constructor() {
1809
1809
  super(...arguments), this.prevData = {};
1810
1810
  }
1811
1811
  render(t) {
1812
- return L;
1812
+ return T;
1813
1813
  }
1814
1814
  update(t, [s]) {
1815
1815
  var i;
@@ -1830,9 +1830,9 @@ class ki extends xi {
1830
1830
  (!t || !(r in t) && i[r] === s[r]) && (i[r] = void 0);
1831
1831
  }
1832
1832
  }
1833
- const qe = kt(ki);
1834
- var Gr = /* @__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))(Gr || {});
1835
- const lr = {
1833
+ const Qe = Ct(ki);
1834
+ var Zr = /* @__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))(Zr || {});
1835
+ const cr = {
1836
1836
  none: {},
1837
1837
  //US Department of Defense spec CFR-2002-title31-vol1-sec2-7
1838
1838
  "us.cui": {
@@ -1952,21 +1952,21 @@ const lr = {
1952
1952
  content: "Top Secret"
1953
1953
  }
1954
1954
  };
1955
- var ga = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, ge = (e, t, s, i) => {
1955
+ var ga = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, be = (e, t, s, i) => {
1956
1956
  for (var r = i > 1 ? void 0 : i ? ba(t, s) : t, a = e.length - 1, n; a >= 0; a--)
1957
1957
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
1958
1958
  return i && r && ga(t, s, r), r;
1959
1959
  };
1960
- let K = class extends B {
1960
+ let X = class extends B {
1961
1961
  constructor() {
1962
- super(...arguments), this.showHeader = !0, this.headerSticky = !0, this.classificationLevel = Gr.None, this.classificationText = "", this.notifications = [], this.showCreateAccount = !1, this.showLoginButton = !0, this.username = "";
1962
+ super(...arguments), this.showHeader = !0, this.headerSticky = !0, this.classificationLevel = Zr.None, this.classificationText = "", this.notifications = [], this.showCreateAccount = !1, this.showLoginButton = !0, this.username = "";
1963
1963
  }
1964
1964
  // protected createRenderRoot(): HTMLElement | DocumentFragment {
1965
1965
  // return this
1966
1966
  // }
1967
1967
  render() {
1968
- this.classificationLevel && !lr[this.classificationLevel] && (console.warn("Unknown classification", this.classificationLevel), this.classificationLevel = Gr.None);
1969
- const e = this.classificationLevel ? this.classificationText || lr[this.classificationLevel].content : "", t = this.showHeader ? m`<spectric-header ?showCreateAccount=${this.showCreateAccount} .showLoginButton=${this.showLoginButton} username=${Yr(this.username)}>
1968
+ this.classificationLevel && !cr[this.classificationLevel] && (console.warn("Unknown classification", this.classificationLevel), this.classificationLevel = Zr.None);
1969
+ const e = this.classificationLevel ? this.classificationText || cr[this.classificationLevel].content : "", t = this.showHeader ? m`<spectric-header ?showCreateAccount=${this.showCreateAccount} .showLoginButton=${this.showLoginButton} username=${Gr(this.username)}>
1970
1970
  <slot name="branding" slot="branding"></slot>
1971
1971
  <slot name="name" slot="name"></slot>
1972
1972
  <slot name="center" slot="center"></slot>
@@ -1975,10 +1975,10 @@ let K = class extends B {
1975
1975
  return m`
1976
1976
  ${this.classificationLevel && e ? m`
1977
1977
  <!-- Classification Banner -->
1978
- <spectric-banner ${qe({ text: e, headerStyle: lr[this.classificationLevel] })}></spectric-banner>
1978
+ <spectric-banner ${Qe({ text: e, headerStyle: cr[this.classificationLevel] })}></spectric-banner>
1979
1979
  ` : null}
1980
- <spectric-theme theme=${Yr(this.theme)}>
1981
- ${this.notifications ? this.notifications.map((s) => m`<spectric-banner ${qe(s)} ></spectric-banner>`) : null}
1980
+ <spectric-theme theme=${Gr(this.theme)}>
1981
+ ${this.notifications ? this.notifications.map((s) => m`<spectric-banner ${Qe(s)} ></spectric-banner>`) : null}
1982
1982
  ${this.headerSticky ? t : null}
1983
1983
  <article>
1984
1984
  ${this.headerSticky ? null : t}
@@ -1988,50 +1988,50 @@ let K = class extends B {
1988
1988
  </section>
1989
1989
  </article>
1990
1990
  </spectric-theme>
1991
- ${this.classificationLevel && e ? m`<spectric-banner ${qe({ text: e, headerStyle: lr[this.classificationLevel] })}></spectric-banner>` : null}
1991
+ ${this.classificationLevel && e ? m`<spectric-banner ${Qe({ text: e, headerStyle: cr[this.classificationLevel] })}></spectric-banner>` : null}
1992
1992
 
1993
1993
  `;
1994
1994
  }
1995
1995
  };
1996
- K.styles = fa;
1997
- ge([
1996
+ X.styles = fa;
1997
+ be([
1998
1998
  f({ type: Boolean, reflect: !0 })
1999
- ], K.prototype, "showHeader", 2);
2000
- ge([
1999
+ ], X.prototype, "showHeader", 2);
2000
+ be([
2001
2001
  f({ type: Boolean, reflect: !0 })
2002
- ], K.prototype, "headerSticky", 2);
2003
- ge([
2002
+ ], X.prototype, "headerSticky", 2);
2003
+ be([
2004
2004
  f({ type: String, reflect: !0 })
2005
- ], K.prototype, "classificationLevel", 2);
2006
- ge([
2005
+ ], X.prototype, "classificationLevel", 2);
2006
+ be([
2007
2007
  f({ type: String, reflect: !0 })
2008
- ], K.prototype, "classificationText", 2);
2009
- ge([
2008
+ ], X.prototype, "classificationText", 2);
2009
+ be([
2010
2010
  f({ type: Array, reflect: !0 })
2011
- ], K.prototype, "notifications", 2);
2012
- ge([
2011
+ ], X.prototype, "notifications", 2);
2012
+ be([
2013
2013
  f({ type: Boolean, reflect: !0 })
2014
- ], K.prototype, "showCreateAccount", 2);
2015
- ge([
2014
+ ], X.prototype, "showCreateAccount", 2);
2015
+ be([
2016
2016
  f({ type: Boolean, reflect: !0 })
2017
- ], K.prototype, "showLoginButton", 2);
2018
- ge([
2017
+ ], X.prototype, "showLoginButton", 2);
2018
+ be([
2019
2019
  f({ type: String, reflect: !0 })
2020
- ], K.prototype, "username", 2);
2021
- ge([
2020
+ ], X.prototype, "username", 2);
2021
+ be([
2022
2022
  f({ type: String, reflect: !0 })
2023
- ], K.prototype, "theme", 2);
2024
- K = ge([
2025
- j("spectric-page")
2026
- ], K);
2027
- var va = Object.defineProperty, ya = Object.getOwnPropertyDescriptor, I = (e, t, s, i) => {
2023
+ ], X.prototype, "theme", 2);
2024
+ X = be([
2025
+ I("spectric-page")
2026
+ ], X);
2027
+ var va = Object.defineProperty, ya = Object.getOwnPropertyDescriptor, R = (e, t, s, i) => {
2028
2028
  for (var r = i > 1 ? void 0 : i ? ya(t, s) : t, a = e.length - 1, n; a >= 0; a--)
2029
2029
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
2030
2030
  return i && r && va(t, s, r), r;
2031
2031
  }, Ai = /* @__PURE__ */ ((e) => (e.Text = "text", e.TextArea = "text-area", e.number = "number", e.color = "color", e.date = "date", e.datePopup = "popup-date", e.datetime = "datetime-local", e.email = "email", e.file = "file", e.hidden = "hidden", e.password = "password", e.checkbox = "checkbox", e.range = "range", e))(Ai || {});
2032
- let z = class extends B {
2032
+ let D = class extends B {
2033
2033
  constructor() {
2034
- super(...arguments), this.checked = !1, this.files = null, this.placeholder = "", this.readonly = !1, this.variant = "text", this.disabled = !1, this.label = "", this.hidePasswordLabel = "Hide", this.showPasswordLabel = "Show", this.showPasswordVisibilityToggle = !0, this.helperText = "", this.invalid = !1, this.required = !1, this.invalidText = "", this.name = "", this.pattern = "", this.maxCount = 0, this._value = "", this._showPassword = !1, this.autocomplete = "off", this._handleInput = ({ target: e }) => {
2034
+ super(...arguments), this.checked = !1, this.files = null, this.placeholder = "", this.readonly = !1, this.variant = "text", this.disabled = !1, this.label = "", this.hidePasswordLabel = "Hide", this.showPasswordLabel = "Show", this.showPasswordVisibilityToggle = !0, this.helperText = "", this.invalid = !1, this.required = !1, this.invalidText = "", this.name = "", this.pattern = "", this.maxCount = 0, this._value = "", this._showPassword = !1, this.autocomplete = "off", this.spellcheck = !0, this._handleInput = ({ target: e }) => {
2035
2035
  const t = e;
2036
2036
  this.variant == "file" ? this.files = t.files : this.value = t.value, this.invalid = !t.validity.valid;
2037
2037
  }, this.handleTogglePasswordVisibility = () => {
@@ -2102,18 +2102,19 @@ let z = class extends B {
2102
2102
  ?disabled="${this.disabled}"
2103
2103
  aria-describedby="helper-text"
2104
2104
  id="input"
2105
- name="${lt(this.name)}"
2106
- pattern="${lt(this.pattern)}"
2107
- placeholder="${lt(this.placeholder)}"
2108
- autocomplete="${lt(this.autocomplete)}"
2105
+ name="${ct(this.name)}"
2106
+ pattern="${ct(this.pattern)}"
2107
+ placeholder="${ct(this.placeholder)}"
2108
+ autocomplete="${ct(this.autocomplete)}"
2109
+ spellcheck=${this.spellcheck}
2109
2110
  ?readonly="${this.readonly}"
2110
2111
  ?required="${this.required}"
2111
- type="${lt(
2112
+ type="${ct(
2112
2113
  this.variant !== "password" ? this.variant !== "date" ? this.variant : "text" : this._showPassword ? "text" : "password"
2113
2114
  /* password */
2114
2115
  )}"
2115
2116
  .value="${this._value}"
2116
- maxlength="${lt(
2117
+ maxlength="${ct(
2117
2118
  this.maxCount > 0 ? this.maxCount : void 0
2118
2119
  )}"
2119
2120
  @input="${this._handleInput}"
@@ -2190,79 +2191,82 @@ let z = class extends B {
2190
2191
  return `Not yet implemented ${this.variant}`;
2191
2192
  }
2192
2193
  };
2193
- I([
2194
+ R([
2194
2195
  f({ type: Boolean, reflect: !0 })
2195
- ], z.prototype, "checked", 2);
2196
- I([
2196
+ ], D.prototype, "checked", 2);
2197
+ R([
2197
2198
  f({ type: String, reflect: !0 })
2198
- ], z.prototype, "placeholder", 2);
2199
- I([
2199
+ ], D.prototype, "placeholder", 2);
2200
+ R([
2200
2201
  f({ type: Boolean, reflect: !0 })
2201
- ], z.prototype, "readonly", 2);
2202
- I([
2202
+ ], D.prototype, "readonly", 2);
2203
+ R([
2203
2204
  f({ type: String, reflect: !0 })
2204
- ], z.prototype, "variant", 2);
2205
- I([
2205
+ ], D.prototype, "variant", 2);
2206
+ R([
2206
2207
  f({ type: Boolean, reflect: !0 })
2207
- ], z.prototype, "disabled", 2);
2208
- I([
2208
+ ], D.prototype, "disabled", 2);
2209
+ R([
2209
2210
  f({ type: String, reflect: !0 })
2210
- ], z.prototype, "label", 2);
2211
- I([
2211
+ ], D.prototype, "label", 2);
2212
+ R([
2212
2213
  f()
2213
- ], z.prototype, "hidePasswordLabel", 2);
2214
- I([
2214
+ ], D.prototype, "hidePasswordLabel", 2);
2215
+ R([
2215
2216
  f()
2216
- ], z.prototype, "showPasswordLabel", 2);
2217
- I([
2217
+ ], D.prototype, "showPasswordLabel", 2);
2218
+ R([
2218
2219
  f({
2219
2220
  type: Boolean,
2220
2221
  reflect: !0
2221
2222
  })
2222
- ], z.prototype, "showPasswordVisibilityToggle", 2);
2223
- I([
2223
+ ], D.prototype, "showPasswordVisibilityToggle", 2);
2224
+ R([
2224
2225
  f({ type: String, reflect: !0 })
2225
- ], z.prototype, "helperText", 2);
2226
- I([
2226
+ ], D.prototype, "helperText", 2);
2227
+ R([
2227
2228
  f({ type: Boolean, reflect: !0 })
2228
- ], z.prototype, "invalid", 2);
2229
- I([
2229
+ ], D.prototype, "invalid", 2);
2230
+ R([
2230
2231
  f({ type: Boolean, reflect: !0 })
2231
- ], z.prototype, "required", 2);
2232
- I([
2232
+ ], D.prototype, "required", 2);
2233
+ R([
2233
2234
  f({ type: String, reflect: !0 })
2234
- ], z.prototype, "invalidText", 2);
2235
- I([
2235
+ ], D.prototype, "invalidText", 2);
2236
+ R([
2236
2237
  f()
2237
- ], z.prototype, "name", 2);
2238
- I([
2238
+ ], D.prototype, "name", 2);
2239
+ R([
2239
2240
  f()
2240
- ], z.prototype, "pattern", 2);
2241
- I([
2241
+ ], D.prototype, "pattern", 2);
2242
+ R([
2242
2243
  f({ type: Number, reflect: !0 })
2243
- ], z.prototype, "maxCount", 2);
2244
- I([
2244
+ ], D.prototype, "maxCount", 2);
2245
+ R([
2245
2246
  f({ reflect: !0 })
2246
- ], z.prototype, "autocomplete", 2);
2247
- I([
2247
+ ], D.prototype, "autocomplete", 2);
2248
+ R([
2249
+ f({ reflect: !0, type: Boolean })
2250
+ ], D.prototype, "spellcheck", 2);
2251
+ R([
2248
2252
  f({ reflect: !0 })
2249
- ], z.prototype, "value", 1);
2250
- I([
2253
+ ], D.prototype, "value", 1);
2254
+ R([
2251
2255
  Se("input")
2252
- ], z.prototype, "_input", 2);
2253
- I([
2256
+ ], D.prototype, "_input", 2);
2257
+ R([
2254
2258
  Je({ capture: !0 })
2255
- ], z.prototype, "_handleChange", 1);
2256
- z = I([
2257
- j("spectric-input")
2258
- ], z);
2259
- const lt = (e) => Yr(e === "" ? void 0 : e ?? void 0), ma = "end of input", $a = {
2259
+ ], D.prototype, "_handleChange", 1);
2260
+ D = R([
2261
+ I("spectric-input")
2262
+ ], D);
2263
+ const ct = (e) => Gr(e === "" ? void 0 : e ?? void 0), ma = "end of input", $a = {
2260
2264
  fieldName: "field name",
2261
2265
  value: "value",
2262
2266
  literal: "literal",
2263
2267
  whitespace: "whitespace"
2264
2268
  };
2265
- class Oi extends Error {
2269
+ class Ci extends Error {
2266
2270
  constructor(t, s) {
2267
2271
  let i = t.message;
2268
2272
  if (t.expected) {
@@ -2277,7 +2281,7 @@ class Oi extends Error {
2277
2281
  super(r), this.name = "DQLSyntaxError", this.shortMessage = i;
2278
2282
  }
2279
2283
  }
2280
- function $t(e) {
2284
+ function _t(e) {
2281
2285
  return {
2282
2286
  type: "literal",
2283
2287
  value: e
@@ -2288,10 +2292,10 @@ function as(e) {
2288
2292
  }
2289
2293
  const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2290
2294
  __proto__: null,
2291
- buildNode: $t,
2295
+ buildNode: _t,
2292
2296
  toOpenSearchQuery: as
2293
2297
  }, Symbol.toStringTag, { value: "Module" })), {
2294
- parse: xr
2298
+ parse: Sr
2295
2299
  } = (
2296
2300
  // @generated by Peggy 5.0.6.
2297
2301
  //
@@ -2305,16 +2309,16 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2305
2309
  let r = "Error: " + this.message;
2306
2310
  if (this.location) {
2307
2311
  let a = null;
2308
- const n = i.find((S) => S.source === this.location.source);
2312
+ const n = i.find(($) => $.source === this.location.source);
2309
2313
  n && (a = n.text.split(/\r\n|\n|\r/g));
2310
2314
  const h = this.location.start, u = this.location.source && typeof this.location.source.offset == "function" ? this.location.source.offset(h) : h, g = this.location.source + ":" + u.line + ":" + u.column;
2311
2315
  if (a) {
2312
- const S = this.location.end, v = "".padEnd(u.line.toString().length, " "), O = a[h.line - 1], _ = (h.line === S.line ? S.column : O.length + 1) - h.column || 1;
2316
+ const $ = this.location.end, v = "".padEnd(u.line.toString().length, " "), A = a[h.line - 1], w = (h.line === $.line ? $.column : A.length + 1) - h.column || 1;
2313
2317
  r += `
2314
2318
  --> ` + g + `
2315
2319
  ` + v + ` |
2316
- ` + u.line + " | " + O + `
2317
- ` + v + " | " + "".padEnd(h.column - 1, " ") + "".padEnd(_, "^");
2320
+ ` + u.line + " | " + A + `
2321
+ ` + v + " | " + "".padEnd(h.column - 1, " ") + "".padEnd(w, "^");
2318
2322
  } else
2319
2323
  r += `
2320
2324
  at ` + g;
@@ -2322,28 +2326,28 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2322
2326
  return r;
2323
2327
  }
2324
2328
  static buildMessage(i, r) {
2325
- function a(_) {
2326
- return _.codePointAt(0).toString(16).toUpperCase();
2329
+ function a(w) {
2330
+ return w.codePointAt(0).toString(16).toUpperCase();
2327
2331
  }
2328
2332
  const n = Object.prototype.hasOwnProperty.call(RegExp.prototype, "unicode") ? new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]", "gu") : null;
2329
- function h(_) {
2330
- return n ? _.replace(n, (A) => "\\u{" + a(A) + "}") : _;
2333
+ function h(w) {
2334
+ return n ? w.replace(n, (C) => "\\u{" + a(C) + "}") : w;
2331
2335
  }
2332
- function u(_) {
2333
- return h(_.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (A) => "\\x0" + a(A)).replace(/[\x10-\x1F\x7F-\x9F]/g, (A) => "\\x" + a(A)));
2336
+ function u(w) {
2337
+ return h(w.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (C) => "\\x0" + a(C)).replace(/[\x10-\x1F\x7F-\x9F]/g, (C) => "\\x" + a(C)));
2334
2338
  }
2335
- function g(_) {
2336
- return h(_.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (A) => "\\x0" + a(A)).replace(/[\x10-\x1F\x7F-\x9F]/g, (A) => "\\x" + a(A)));
2339
+ function g(w) {
2340
+ return h(w.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (C) => "\\x0" + a(C)).replace(/[\x10-\x1F\x7F-\x9F]/g, (C) => "\\x" + a(C)));
2337
2341
  }
2338
- const S = {
2339
- literal(_) {
2340
- return '"' + u(_.text) + '"';
2342
+ const $ = {
2343
+ literal(w) {
2344
+ return '"' + u(w.text) + '"';
2341
2345
  },
2342
- class(_) {
2343
- const A = _.parts.map(
2344
- (T) => Array.isArray(T) ? g(T[0]) + "-" + g(T[1]) : g(T)
2346
+ class(w) {
2347
+ const C = w.parts.map(
2348
+ (M) => Array.isArray(M) ? g(M[0]) + "-" + g(M[1]) : g(M)
2345
2349
  );
2346
- return "[" + (_.inverted ? "^" : "") + A.join("") + "]" + (_.unicode ? "u" : "");
2350
+ return "[" + (w.inverted ? "^" : "") + C.join("") + "]" + (w.unicode ? "u" : "");
2347
2351
  },
2348
2352
  any() {
2349
2353
  return "any character";
@@ -2351,80 +2355,80 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2351
2355
  end() {
2352
2356
  return "end of input";
2353
2357
  },
2354
- other(_) {
2355
- return _.description;
2358
+ other(w) {
2359
+ return w.description;
2356
2360
  }
2357
2361
  };
2358
- function v(_) {
2359
- return S[_.type](_);
2362
+ function v(w) {
2363
+ return $[w.type](w);
2360
2364
  }
2361
- function O(_) {
2362
- const A = _.map(v);
2363
- if (A.sort(), A.length > 0) {
2364
- let T = 1;
2365
- for (let N = 1; N < A.length; N++)
2366
- A[N - 1] !== A[N] && (A[T] = A[N], T++);
2367
- A.length = T;
2365
+ function A(w) {
2366
+ const C = w.map(v);
2367
+ if (C.sort(), C.length > 0) {
2368
+ let M = 1;
2369
+ for (let L = 1; L < C.length; L++)
2370
+ C[L - 1] !== C[L] && (C[M] = C[L], M++);
2371
+ C.length = M;
2368
2372
  }
2369
- switch (A.length) {
2373
+ switch (C.length) {
2370
2374
  case 1:
2371
- return A[0];
2375
+ return C[0];
2372
2376
  case 2:
2373
- return A[0] + " or " + A[1];
2377
+ return C[0] + " or " + C[1];
2374
2378
  default:
2375
- return A.slice(0, -1).join(", ") + ", or " + A[A.length - 1];
2379
+ return C.slice(0, -1).join(", ") + ", or " + C[C.length - 1];
2376
2380
  }
2377
2381
  }
2378
- function $(_) {
2379
- return _ ? '"' + u(_) + '"' : "end of input";
2382
+ function _(w) {
2383
+ return w ? '"' + u(w) + '"' : "end of input";
2380
2384
  }
2381
- return "Expected " + O(i) + " but " + $(r) + " found.";
2385
+ return "Expected " + A(i) + " but " + _(r) + " found.";
2382
2386
  }
2383
2387
  }
2384
2388
  function t(s, i) {
2385
2389
  i = i !== void 0 ? i : {};
2386
2390
  const r = {}, a = i.grammarSource, n = {
2387
2391
  start: As,
2388
- Literal: Nr
2392
+ Literal: Dr
2389
2393
  };
2390
2394
  let h = As;
2391
- const u = "(", g = ")", S = ":", v = "{", O = "}", $ = "or", _ = "and", A = "not", T = ".", N = '"', pe = "\\", M = "*", G = "\\t", H = "\\r", tt = "\\n", ve = "<@", ze = "<=", re = ">=", er = "<", rt = ">", st = "©kuery-cursor©", Et = /^[0-9]/, Ae = /^[\\"]/, Vi = /^[^"]/, Yi = /^[\\():<>"*{}]/, Gi = /^[ \t\r\n]/, ms = R("(", !1), $s = R(")", !1), _s = R(":", !1), Zi = R("{", !1), Ji = R("}", !1), Ki = Re("fieldName"), Xi = Re("value"), eo = Re("OR"), ws = R("or", !0), to = Re("AND"), xs = R("and", !0), ro = Re("NOT"), Ss = R("not", !0), so = Re("literal"), io = R(".", !1), tr = Lt([["0", "9"]], !1, !1, !1), rr = R('"', !1), Ar = R("\\", !1), oo = Lt(["\\", '"'], !1, !1, !1), no = Lt(['"'], !0, !1, !1), ao = nn(), lo = R("*", !1), co = R("\\t", !1), po = R("\\r", !1), uo = R("\\n", !1), ho = Lt(["\\", "(", ")", ":", "<", ">", '"', "*", "{", "}"], !1, !1, !1), fo = R("<@", !1), go = R("<=", !1), bo = R(">=", !1), vo = R("<", !1), yo = R(">", !1), mo = Re("whitespace"), $o = Lt([" ", " ", "\r", `
2392
- `], !1, !1, !1), _o = R("©kuery-cursor©", !1);
2395
+ const u = "(", g = ")", $ = ":", v = "{", A = "}", _ = "or", w = "and", C = "not", M = ".", L = '"', ue = "\\", z = "*", Z = "\\t", F = "\\r", rt = "\\n", ve = "<@", Re = "<=", se = ">=", tr = "<", st = ">", it = "©kuery-cursor©", Pt = /^[0-9]/, Ae = /^[\\"]/, Vi = /^[^"]/, Yi = /^[\\():<>"*{}]/, Gi = /^[ \t\r\n]/, ms = j("(", !1), $s = j(")", !1), _s = j(":", !1), Zi = j("{", !1), Ji = j("}", !1), Ki = je("fieldName"), Xi = je("value"), eo = je("OR"), ws = j("or", !0), to = je("AND"), xs = j("and", !0), ro = je("NOT"), Ss = j("not", !0), so = je("literal"), io = j(".", !1), rr = Nt([["0", "9"]], !1, !1, !1), sr = j('"', !1), Cr = j("\\", !1), oo = Nt(["\\", '"'], !1, !1, !1), no = Nt(['"'], !0, !1, !1), ao = nn(), lo = j("*", !1), co = j("\\t", !1), po = j("\\r", !1), uo = j("\\n", !1), ho = Nt(["\\", "(", ")", ":", "<", ">", '"', "*", "{", "}"], !1, !1, !1), fo = j("<@", !1), go = j("<=", !1), bo = j(">=", !1), vo = j("<", !1), yo = j(">", !1), mo = je("whitespace"), $o = Nt([" ", " ", "\r", `
2396
+ `], !1, !1, !1), _o = j("©kuery-cursor©", !1);
2393
2397
  function wo(o, l) {
2394
2398
  return l.type === "cursor" ? {
2395
2399
  ...l,
2396
2400
  suggestionTypes: ["conjunction"],
2397
2401
  rule: "start"
2398
- } : o !== null ? o : je.function.buildNode("is", "*", "*");
2402
+ } : o !== null ? o : Ie.function.buildNode("is", "*", "*");
2399
2403
  }
2400
2404
  function xo(o, l) {
2401
2405
  const p = [o, l].find((d) => d.type === "cursor");
2402
- return p || se("or", [o, l]);
2406
+ return p || ie("or", [o, l]);
2403
2407
  }
2404
2408
  function So(o, l) {
2405
2409
  const p = [o, l].find((d) => d.type === "cursor");
2406
- return p || se("and", [o, l]);
2410
+ return p || ie("and", [o, l]);
2407
2411
  }
2408
2412
  function ko(o) {
2409
- return o.type === "cursor" ? o : se("not", [o]);
2413
+ return o.type === "cursor" ? o : ie("not", [o]);
2410
2414
  }
2411
2415
  function Ao(o, l) {
2412
2416
  return l.type === "cursor" ? {
2413
2417
  ...l,
2414
2418
  suggestionTypes: ["conjunction"],
2415
2419
  rule: "SubQuery"
2416
- } : (at++, { ...o, group: at });
2420
+ } : (lt++, { ...o, group: lt });
2417
2421
  }
2418
- function Oo(o, l, p) {
2422
+ function Co(o, l, p) {
2419
2423
  return l.type === "cursor" ? {
2420
2424
  ...l,
2421
2425
  nestedPath: l.nestedPath ? `${o.value}.${l.nestedPath}` : o.value
2422
2426
  } : p.type === "cursor" ? {
2423
2427
  ...p,
2424
2428
  suggestionTypes: ["conjunction"]
2425
- } : se("nested", [o, l]);
2429
+ } : ie("nested", [o, l]);
2426
2430
  }
2427
- function Co(o, l, p) {
2431
+ function Oo(o, l, p) {
2428
2432
  return p.type === "cursor" ? {
2429
2433
  ...p,
2430
2434
  fieldName: o.value,
@@ -2446,7 +2450,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2446
2450
  };
2447
2451
  Rs(l, p(o));
2448
2452
  const d = p(o);
2449
- return d.function == "is" ? se("geospatial", [o, l, d.arguments[1]]) : { ...d, arguments: d.arguments.map((b) => se("geospatial", {
2453
+ return d.function == "is" ? ie("geospatial", [o, l, d.arguments[1]]) : { ...d, arguments: d.arguments.map((b) => ie("geospatial", {
2450
2454
  type: "function",
2451
2455
  function: "geospatial",
2452
2456
  arguments: [o, l, b.arguments[1]]
@@ -2461,10 +2465,10 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2461
2465
  rule: "FieldRangeExpression"
2462
2466
  };
2463
2467
  const d = Rs(l, p);
2464
- return se("range", [o, d]);
2468
+ return ie("range", [o, d]);
2465
2469
  }
2466
2470
  function To(o, l) {
2467
- return l.type === "cursor" ? l.prefix.includes(Mr) ? {
2471
+ return l.type === "cursor" ? l.prefix.includes(zr) ? {
2468
2472
  ...l,
2469
2473
  fieldName: o.value,
2470
2474
  suggestionTypes: ["conjunction"],
@@ -2486,7 +2490,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2486
2490
  rule: "ValueExpression"
2487
2491
  };
2488
2492
  }
2489
- const l = Oe(null);
2493
+ const l = Ce(null);
2490
2494
  return o(l);
2491
2495
  }
2492
2496
  function No(o, l) {
@@ -2502,7 +2506,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2502
2506
  ...p,
2503
2507
  suggestionTypes: ["value"],
2504
2508
  rule: "OrListOfValues"
2505
- } : (at++, (d) => ({ ...se("or", [o(d), l(d)]), group: at }));
2509
+ } : (lt++, (d) => ({ ...ie("or", [o(d), l(d)]), group: lt }));
2506
2510
  }
2507
2511
  function Mo(o, l) {
2508
2512
  const p = [o, l].find((d) => d.type === "cursor");
@@ -2510,31 +2514,31 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2510
2514
  ...p,
2511
2515
  suggestionTypes: ["value"],
2512
2516
  rule: "AndListOfValues"
2513
- } : (at++, (d) => ({ ...se("and", [o(d), l(d)]), group: at }));
2517
+ } : (lt++, (d) => ({ ...ie("and", [o(d), l(d)]), group: lt }));
2514
2518
  }
2515
2519
  function zo(o) {
2516
2520
  return o.type === "cursor" ? {
2517
2521
  ...list,
2518
2522
  suggestionTypes: ["value"],
2519
2523
  rule: "NotListOfValues"
2520
- } : (l) => se("not", [o(l)]);
2524
+ } : (l) => ie("not", [o(l)]);
2521
2525
  }
2522
2526
  function Ro(o) {
2523
2527
  if (o.type === "cursor") return o;
2524
- const l = Oe(!0);
2525
- return (p) => se("is", [p, o, l]);
2528
+ const l = Ce(!0);
2529
+ return (p) => ie("is", [p, o, l]);
2526
2530
  }
2527
2531
  function jo(o) {
2528
2532
  if (o.type === "cursor") return o;
2529
- !On && o.type === "wildcard" && je.wildcard.hasLeadingWildcard(o) && sn("Leading wildcards are disabled. See query:allowLeadingWildcards in Advanced Settings.");
2530
- const l = Oe(!1);
2531
- return (p) => se("is", [p, o, l]);
2533
+ !Cn && o.type === "wildcard" && Ie.wildcard.hasLeadingWildcard(o) && sn("Leading wildcards are disabled. See query:allowLeadingWildcards in Advanced Settings.");
2534
+ const l = Ce(!1);
2535
+ return (p) => ie("is", [p, o, l]);
2532
2536
  }
2533
2537
  function Io() {
2534
- return parseFloat(Tt());
2538
+ return parseFloat(Lt());
2535
2539
  }
2536
2540
  function Bo() {
2537
- return parseInt(Tt(), 10);
2541
+ return parseInt(Lt(), 10);
2538
2542
  }
2539
2543
  function Uo(o, l, p) {
2540
2544
  const { start: d, end: b } = Or();
@@ -2544,12 +2548,12 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2544
2548
  end: b.offset - l.length,
2545
2549
  prefix: o.join(""),
2546
2550
  suffix: p.join(""),
2547
- text: Tt().replace(l, ""),
2551
+ text: Lt().replace(l, ""),
2548
2552
  rule: "QuotedString"
2549
2553
  };
2550
2554
  }
2551
- function Ho(o) {
2552
- return Oe(o.join(""));
2555
+ function Fo(o) {
2556
+ return Ce(o.join(""));
2553
2557
  }
2554
2558
  function Kc(o) {
2555
2559
  return o;
@@ -2557,7 +2561,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2557
2561
  function Xc(o) {
2558
2562
  return o;
2559
2563
  }
2560
- function Fo(o, l, p) {
2564
+ function Ho(o, l, p) {
2561
2565
  const { start: d, end: b } = Or();
2562
2566
  return {
2563
2567
  type: "cursor",
@@ -2565,13 +2569,13 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2565
2569
  end: b.offset - l.length,
2566
2570
  prefix: o.join(""),
2567
2571
  suffix: p.join(""),
2568
- text: Tt().replace(l, ""),
2572
+ text: Lt().replace(l, ""),
2569
2573
  rule: "UnquotedLiteral"
2570
2574
  };
2571
2575
  }
2572
2576
  function qo(o) {
2573
2577
  const l = o.join("").trim();
2574
- return l === "null" ? Oe(null) : l === "true" ? Oe(!0) : l === "false" ? Oe(!1) : o.includes(Mr) ? Cn(l) : Oe(
2578
+ return l === "null" ? Ce(null) : l === "true" ? Ce(!0) : l === "false" ? Ce(!1) : o.includes(zr) ? On(l) : Ce(
2575
2579
  /^(-?[1-9]+\d*([.]\d+)?)$|^(-?0[.]\d*[1-9]+)$|^0$|^0.0$|^[.]\d{1,}$/.test(l) ? isFinite(l) && (l > Number.MAX_SAFE_INTEGER || l < Number.MIN_SAFE_INTEGER) ? BigInt(l) : Number(l) : l
2576
2580
  );
2577
2581
  }
@@ -2579,7 +2583,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2579
2583
  return o;
2580
2584
  }
2581
2585
  function Qo() {
2582
- return Mr;
2586
+ return zr;
2583
2587
  }
2584
2588
  function Wo(o, l, p) {
2585
2589
  const { start: d, end: b } = Or();
@@ -2589,7 +2593,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2589
2593
  end: b.offset - l.length,
2590
2594
  prefix: o.join(""),
2591
2595
  suffix: p.join(""),
2592
- text: Tt().replace(l, ""),
2596
+ text: Lt().replace(l, ""),
2593
2597
  rule: "OptionalSpace"
2594
2598
  };
2595
2599
  }
@@ -2631,30 +2635,30 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2631
2635
  return An;
2632
2636
  }
2633
2637
  let c = i.peg$currPos | 0, E = c;
2634
- const it = [{ line: 1, column: 1 }];
2635
- let ae = c, sr = i.peg$maxFailExpected || [], y = i.peg$silentFails | 0, Pt;
2638
+ const ot = [{ line: 1, column: 1 }];
2639
+ let le = c, ir = i.peg$maxFailExpected || [], y = i.peg$silentFails | 0, Tt;
2636
2640
  if (i.startRule) {
2637
2641
  if (!(i.startRule in n))
2638
2642
  throw new Error(`Can't start parsing from rule "` + i.startRule + '".');
2639
2643
  h = n[i.startRule];
2640
2644
  }
2641
- function Tt() {
2645
+ function Lt() {
2642
2646
  return s.substring(E, c);
2643
2647
  }
2644
2648
  function Or() {
2645
- return ir(E, c);
2649
+ return or(E, c);
2646
2650
  }
2647
2651
  function sn(o, l) {
2648
- throw l = l !== void 0 ? l : ir(E, c), ln(o, l);
2652
+ throw l = l !== void 0 ? l : or(E, c), ln(o, l);
2649
2653
  }
2650
2654
  function on(o = c) {
2651
2655
  const l = s.codePointAt(o);
2652
2656
  return l === void 0 ? "" : String.fromCodePoint(l);
2653
2657
  }
2654
- function R(o, l) {
2658
+ function j(o, l) {
2655
2659
  return { type: "literal", text: o, ignoreCase: l };
2656
2660
  }
2657
- function Lt(o, l, p, d) {
2661
+ function Nt(o, l, p, d) {
2658
2662
  return { type: "class", parts: o, inverted: l, ignoreCase: p, unicode: d };
2659
2663
  }
2660
2664
  function nn() {
@@ -2663,26 +2667,26 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2663
2667
  function an() {
2664
2668
  return { type: "end" };
2665
2669
  }
2666
- function Re(o) {
2670
+ function je(o) {
2667
2671
  return { type: "other", description: o };
2668
2672
  }
2669
2673
  function ks(o) {
2670
- let l = it[o], p;
2674
+ let l = ot[o], p;
2671
2675
  if (l)
2672
2676
  return l;
2673
- if (o >= it.length)
2674
- p = it.length - 1;
2677
+ if (o >= ot.length)
2678
+ p = ot.length - 1;
2675
2679
  else
2676
- for (p = o; !it[--p]; )
2680
+ for (p = o; !ot[--p]; )
2677
2681
  ;
2678
- for (l = it[p], l = {
2682
+ for (l = ot[p], l = {
2679
2683
  line: l.line,
2680
2684
  column: l.column
2681
2685
  }; p < o; )
2682
2686
  s.charCodeAt(p) === 10 ? (l.line++, l.column = 1) : l.column++, p++;
2683
- return it[o] = l, l;
2687
+ return ot[o] = l, l;
2684
2688
  }
2685
- function ir(o, l, p) {
2689
+ function or(o, l, p) {
2686
2690
  const d = ks(o), b = ks(l);
2687
2691
  return {
2688
2692
  source: a,
@@ -2699,7 +2703,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2699
2703
  };
2700
2704
  }
2701
2705
  function k(o) {
2702
- c < ae || (c > ae && (ae = c, sr = []), sr.push(o));
2706
+ c < le || (c > le && (le = c, ir = []), ir.push(o));
2703
2707
  }
2704
2708
  function ln(o, l) {
2705
2709
  return new e(o, null, null, l);
@@ -2714,44 +2718,44 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2714
2718
  }
2715
2719
  function As() {
2716
2720
  let o, l, p, d;
2717
- for (o = c, l = [], p = C(); p !== r; )
2718
- l.push(p), p = C();
2719
- return p = or(), p === r && (p = null), d = Dt(), d !== r ? (E = o, o = wo(p, d)) : (c = o, o = r), o;
2721
+ for (o = c, l = [], p = O(); p !== r; )
2722
+ l.push(p), p = O();
2723
+ return p = nr(), p === r && (p = null), d = Mt(), d !== r ? (E = o, o = wo(p, d)) : (c = o, o = r), o;
2720
2724
  }
2721
- function or() {
2725
+ function nr() {
2722
2726
  let o, l, p, d;
2723
- return o = c, l = Cr(), l !== r ? (p = Pr(), p !== r ? (d = or(), d !== r ? (E = o, o = xo(l, d)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = Cr()), o;
2727
+ return o = c, l = Er(), l !== r ? (p = Tr(), p !== r ? (d = nr(), d !== r ? (E = o, o = xo(l, d)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = Er()), o;
2724
2728
  }
2725
- function Cr() {
2729
+ function Er() {
2726
2730
  let o, l, p, d;
2727
- return o = c, l = Os(), l !== r ? (p = Tr(), p !== r ? (d = Cr(), d !== r ? (E = o, o = So(l, d)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = Os()), o;
2731
+ return o = c, l = Cs(), l !== r ? (p = Lr(), p !== r ? (d = Er(), d !== r ? (E = o, o = So(l, d)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = Cs()), o;
2728
2732
  }
2729
- function Os() {
2733
+ function Cs() {
2730
2734
  let o, l, p;
2731
- return o = c, l = Lr(), l !== r ? (p = Cs(), p !== r ? (E = o, o = ko(p)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = Cs()), o;
2735
+ return o = c, l = Nr(), l !== r ? (p = Os(), p !== r ? (E = o, o = ko(p)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = Os()), o;
2732
2736
  }
2733
- function Cs() {
2734
- let o, l, p, d, b, x;
2737
+ function Os() {
2738
+ let o, l, p, d, b, S;
2735
2739
  if (o = c, s.charCodeAt(c) === 40 ? (l = u, c++) : (l = r, y === 0 && k(ms)), l !== r) {
2736
- for (p = [], d = C(); d !== r; )
2737
- p.push(d), d = C();
2738
- d = or(), d !== r ? (b = Dt(), b !== r ? (s.charCodeAt(c) === 41 ? (x = g, c++) : (x = r, y === 0 && k($s)), x !== r ? (E = o, o = Ao(d, b)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r);
2740
+ for (p = [], d = O(); d !== r; )
2741
+ p.push(d), d = O();
2742
+ d = nr(), d !== r ? (b = Mt(), b !== r ? (s.charCodeAt(c) === 41 ? (S = g, c++) : (S = r, y === 0 && k($s)), S !== r ? (E = o, o = Ao(d, b)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r);
2739
2743
  } else
2740
2744
  c = o, o = r;
2741
2745
  return o === r && (o = pn()), o;
2742
2746
  }
2743
2747
  function pn() {
2744
- let o, l, p, d, b, x, Is, Ie, Rr, jr;
2745
- if (o = c, l = Nt(), l !== r) {
2746
- for (p = [], d = C(); d !== r; )
2747
- p.push(d), d = C();
2748
- if (s.charCodeAt(c) === 58 ? (d = S, c++) : (d = r, y === 0 && k(_s)), d !== r) {
2749
- for (b = [], x = C(); x !== r; )
2750
- b.push(x), x = C();
2751
- if (s.charCodeAt(c) === 123 ? (x = v, c++) : (x = r, y === 0 && k(Zi)), x !== r) {
2752
- for (Is = [], Ie = C(); Ie !== r; )
2753
- Is.push(Ie), Ie = C();
2754
- Ie = or(), Ie !== r ? (Rr = Dt(), Rr !== r ? (s.charCodeAt(c) === 125 ? (jr = O, c++) : (jr = r, y === 0 && k(Ji)), jr !== r ? (E = o, o = Oo(l, Ie, Rr)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r);
2748
+ let o, l, p, d, b, S, Is, Be, jr, Ir;
2749
+ if (o = c, l = Dt(), l !== r) {
2750
+ for (p = [], d = O(); d !== r; )
2751
+ p.push(d), d = O();
2752
+ if (s.charCodeAt(c) === 58 ? (d = $, c++) : (d = r, y === 0 && k(_s)), d !== r) {
2753
+ for (b = [], S = O(); S !== r; )
2754
+ b.push(S), S = O();
2755
+ if (s.charCodeAt(c) === 123 ? (S = v, c++) : (S = r, y === 0 && k(Zi)), S !== r) {
2756
+ for (Is = [], Be = O(); Be !== r; )
2757
+ Is.push(Be), Be = O();
2758
+ Be = nr(), Be !== r ? (jr = Mt(), jr !== r ? (s.charCodeAt(c) === 125 ? (Ir = A, c++) : (Ir = r, y === 0 && k(Ji)), Ir !== r ? (E = o, o = Co(l, Be, jr)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r);
2755
2759
  } else
2756
2760
  c = o, o = r;
2757
2761
  } else
@@ -2764,19 +2768,19 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2764
2768
  let o;
2765
2769
  return o = hn(), o === r && (o = dn(), o === r && (o = fn(), o === r && (o = gn(), o === r && (o = bn())))), o;
2766
2770
  }
2767
- function Nt() {
2771
+ function Dt() {
2768
2772
  let o;
2769
- return y++, o = Nr(), y--, o === r && y === 0 && k(Ki), o;
2773
+ return y++, o = Dr(), y--, o === r && y === 0 && k(Ki), o;
2770
2774
  }
2771
2775
  function hn() {
2772
- let o, l, p, d, b, x;
2773
- if (o = c, l = Nt(), l !== r) {
2774
- for (p = [], d = C(); d !== r; )
2775
- p.push(d), d = C();
2776
+ let o, l, p, d, b, S;
2777
+ if (o = c, l = Dt(), l !== r) {
2778
+ for (p = [], d = O(); d !== r; )
2779
+ p.push(d), d = O();
2776
2780
  if (d = zs(), d !== r) {
2777
- for (b = [], x = C(); x !== r; )
2778
- b.push(x), x = C();
2779
- x = Nr(), x !== r ? (E = o, o = Co(l, d, x)) : (c = o, o = r);
2781
+ for (b = [], S = O(); S !== r; )
2782
+ b.push(S), S = O();
2783
+ S = Dr(), S !== r ? (E = o, o = Oo(l, d, S)) : (c = o, o = r);
2780
2784
  } else
2781
2785
  c = o, o = r;
2782
2786
  } else
@@ -2784,14 +2788,14 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2784
2788
  return o;
2785
2789
  }
2786
2790
  function dn() {
2787
- let o, l, p, d, b, x;
2788
- if (o = c, l = Nt(), l !== r) {
2789
- for (p = [], d = C(); d !== r; )
2790
- p.push(d), d = C();
2791
+ let o, l, p, d, b, S;
2792
+ if (o = c, l = Dt(), l !== r) {
2793
+ for (p = [], d = O(); d !== r; )
2794
+ p.push(d), d = O();
2791
2795
  if (d = zs(), d !== r) {
2792
- for (b = [], x = C(); x !== r; )
2793
- b.push(x), x = C();
2794
- x = nr(), x !== r ? (E = o, o = Eo(l, d, x)) : (c = o, o = r);
2796
+ for (b = [], S = O(); S !== r; )
2797
+ b.push(S), S = O();
2798
+ S = ar(), S !== r ? (E = o, o = Eo(l, d, S)) : (c = o, o = r);
2795
2799
  } else
2796
2800
  c = o, o = r;
2797
2801
  } else
@@ -2799,14 +2803,14 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2799
2803
  return o;
2800
2804
  }
2801
2805
  function fn() {
2802
- let o, l, p, d, b, x;
2803
- if (o = c, l = Nt(), l !== r) {
2804
- for (p = [], d = C(); d !== r; )
2805
- p.push(d), d = C();
2806
+ let o, l, p, d, b, S;
2807
+ if (o = c, l = Dt(), l !== r) {
2808
+ for (p = [], d = O(); d !== r; )
2809
+ p.push(d), d = O();
2806
2810
  if (d = Sn(), d !== r) {
2807
- for (b = [], x = C(); x !== r; )
2808
- b.push(x), x = C();
2809
- x = mn(), x !== r ? (E = o, o = Po(l, d, x)) : (c = o, o = r);
2811
+ for (b = [], S = O(); S !== r; )
2812
+ b.push(S), S = O();
2813
+ S = mn(), S !== r ? (E = o, o = Po(l, d, S)) : (c = o, o = r);
2810
2814
  } else
2811
2815
  c = o, o = r;
2812
2816
  } else
@@ -2814,14 +2818,14 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2814
2818
  return o;
2815
2819
  }
2816
2820
  function gn() {
2817
- let o, l, p, d, b, x;
2818
- if (o = c, l = Nt(), l !== r) {
2819
- for (p = [], d = C(); d !== r; )
2820
- p.push(d), d = C();
2821
- if (s.charCodeAt(c) === 58 ? (d = S, c++) : (d = r, y === 0 && k(_s)), d !== r) {
2822
- for (b = [], x = C(); x !== r; )
2823
- b.push(x), x = C();
2824
- x = nr(), x !== r ? (E = o, o = To(l, x)) : (c = o, o = r);
2821
+ let o, l, p, d, b, S;
2822
+ if (o = c, l = Dt(), l !== r) {
2823
+ for (p = [], d = O(); d !== r; )
2824
+ p.push(d), d = O();
2825
+ if (s.charCodeAt(c) === 58 ? (d = $, c++) : (d = r, y === 0 && k(_s)), d !== r) {
2826
+ for (b = [], S = O(); S !== r; )
2827
+ b.push(S), S = O();
2828
+ S = ar(), S !== r ? (E = o, o = To(l, S)) : (c = o, o = r);
2825
2829
  } else
2826
2830
  c = o, o = r;
2827
2831
  } else
@@ -2832,44 +2836,44 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2832
2836
  let o, l;
2833
2837
  return o = c, l = Ts(), l !== r && (E = o, l = Lo(l)), o = l, o;
2834
2838
  }
2835
- function nr() {
2836
- let o, l, p, d, b, x;
2839
+ function ar() {
2840
+ let o, l, p, d, b, S;
2837
2841
  if (o = c, s.charCodeAt(c) === 40 ? (l = u, c++) : (l = r, y === 0 && k(ms)), l !== r) {
2838
- for (p = [], d = C(); d !== r; )
2839
- p.push(d), d = C();
2840
- d = Es(), d !== r ? (b = Dt(), b !== r ? (s.charCodeAt(c) === 41 ? (x = g, c++) : (x = r, y === 0 && k($s)), x !== r ? (E = o, o = No(d, b)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r);
2842
+ for (p = [], d = O(); d !== r; )
2843
+ p.push(d), d = O();
2844
+ d = Es(), d !== r ? (b = Mt(), b !== r ? (s.charCodeAt(c) === 41 ? (S = g, c++) : (S = r, y === 0 && k($s)), S !== r ? (E = o, o = No(d, b)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r);
2841
2845
  } else
2842
2846
  c = o, o = r;
2843
2847
  return o === r && (o = Ts()), o;
2844
2848
  }
2845
2849
  function Es() {
2846
2850
  let o, l, p, d;
2847
- return o = c, l = Er(), l !== r ? (p = Pr(), p !== r ? (d = Es(), d !== r ? (E = o, o = Do(l, d)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = Er()), o;
2851
+ return o = c, l = Pr(), l !== r ? (p = Tr(), p !== r ? (d = Es(), d !== r ? (E = o, o = Do(l, d)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = Pr()), o;
2848
2852
  }
2849
- function Er() {
2853
+ function Pr() {
2850
2854
  let o, l, p, d;
2851
- return o = c, l = Ps(), l !== r ? (p = Tr(), p !== r ? (d = Er(), d !== r ? (E = o, o = Mo(l, d)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = Ps()), o;
2855
+ return o = c, l = Ps(), l !== r ? (p = Lr(), p !== r ? (d = Pr(), d !== r ? (E = o, o = Mo(l, d)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = Ps()), o;
2852
2856
  }
2853
2857
  function Ps() {
2854
2858
  let o, l, p;
2855
- return o = c, l = Lr(), l !== r ? (p = nr(), p !== r ? (E = o, o = zo(p)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = nr()), o;
2859
+ return o = c, l = Nr(), l !== r ? (p = ar(), p !== r ? (E = o, o = zo(p)) : (c = o, o = r)) : (c = o, o = r), o === r && (o = ar()), o;
2856
2860
  }
2857
2861
  function Ts() {
2858
2862
  let o, l;
2859
- return y++, o = c, l = Dr(), l !== r && (E = o, l = Ro(l)), o = l, o === r && (o = c, l = Ns(), l !== r && (E = o, l = jo(l)), o = l), y--, o === r && (l = r, y === 0 && k(Xi)), o;
2863
+ return y++, o = c, l = Mr(), l !== r && (E = o, l = Ro(l)), o = l, o === r && (o = c, l = Ns(), l !== r && (E = o, l = jo(l)), o = l), y--, o === r && (l = r, y === 0 && k(Xi)), o;
2860
2864
  }
2861
- function Pr() {
2865
+ function Tr() {
2862
2866
  let o, l, p, d, b;
2863
- if (y++, o = c, l = [], p = C(), p !== r)
2867
+ if (y++, o = c, l = [], p = O(), p !== r)
2864
2868
  for (; p !== r; )
2865
- l.push(p), p = C();
2869
+ l.push(p), p = O();
2866
2870
  else
2867
2871
  l = r;
2868
2872
  if (l !== r)
2869
- if (p = s.substr(c, 2), p.toLowerCase() === $ ? c += 2 : (p = r, y === 0 && k(ws)), p !== r) {
2870
- if (d = [], b = C(), b !== r)
2873
+ if (p = s.substr(c, 2), p.toLowerCase() === _ ? c += 2 : (p = r, y === 0 && k(ws)), p !== r) {
2874
+ if (d = [], b = O(), b !== r)
2871
2875
  for (; b !== r; )
2872
- d.push(b), b = C();
2876
+ d.push(b), b = O();
2873
2877
  else
2874
2878
  d = r;
2875
2879
  d !== r ? (l = [l, p, d], o = l) : (c = o, o = r);
@@ -2879,18 +2883,18 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2879
2883
  c = o, o = r;
2880
2884
  return y--, o === r && (l = r, y === 0 && k(eo)), o;
2881
2885
  }
2882
- function Tr() {
2886
+ function Lr() {
2883
2887
  let o, l, p, d, b;
2884
- if (y++, o = c, l = [], p = C(), p !== r)
2888
+ if (y++, o = c, l = [], p = O(), p !== r)
2885
2889
  for (; p !== r; )
2886
- l.push(p), p = C();
2890
+ l.push(p), p = O();
2887
2891
  else
2888
2892
  l = r;
2889
2893
  if (l !== r)
2890
- if (p = s.substr(c, 3), p.toLowerCase() === _ ? c += 3 : (p = r, y === 0 && k(xs)), p !== r) {
2891
- if (d = [], b = C(), b !== r)
2894
+ if (p = s.substr(c, 3), p.toLowerCase() === w ? c += 3 : (p = r, y === 0 && k(xs)), p !== r) {
2895
+ if (d = [], b = O(), b !== r)
2892
2896
  for (; b !== r; )
2893
- d.push(b), b = C();
2897
+ d.push(b), b = O();
2894
2898
  else
2895
2899
  d = r;
2896
2900
  d !== r ? (l = [l, p, d], o = l) : (c = o, o = r);
@@ -2900,12 +2904,12 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2900
2904
  c = o, o = r;
2901
2905
  return y--, o === r && (l = r, y === 0 && k(to)), o;
2902
2906
  }
2903
- function Lr() {
2907
+ function Nr() {
2904
2908
  let o, l, p, d;
2905
- if (y++, o = c, l = s.substr(c, 3), l.toLowerCase() === A ? c += 3 : (l = r, y === 0 && k(Ss)), l !== r) {
2906
- if (p = [], d = C(), d !== r)
2909
+ if (y++, o = c, l = s.substr(c, 3), l.toLowerCase() === C ? c += 3 : (l = r, y === 0 && k(Ss)), l !== r) {
2910
+ if (p = [], d = O(), d !== r)
2907
2911
  for (; d !== r; )
2908
- p.push(d), d = C();
2912
+ p.push(d), d = O();
2909
2913
  else
2910
2914
  p = r;
2911
2915
  p !== r ? (l = [l, p], o = l) : (c = o, o = r);
@@ -2913,9 +2917,9 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2913
2917
  c = o, o = r;
2914
2918
  return y--, o === r && (l = r, y === 0 && k(ro)), o;
2915
2919
  }
2916
- function Nr() {
2920
+ function Dr() {
2917
2921
  let o;
2918
- return y++, o = Dr(), o === r && (o = Ns()), y--, o === r && y === 0 && k(so), o;
2922
+ return y++, o = Mr(), o === r && (o = Ns()), y--, o === r && y === 0 && k(so), o;
2919
2923
  }
2920
2924
  function vn() {
2921
2925
  let o;
@@ -2924,10 +2928,10 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2924
2928
  function yn() {
2925
2929
  let o, l, p, d, b;
2926
2930
  if (o = c, l = Ls(), l !== r)
2927
- if (s.charCodeAt(c) === 46 ? (p = T, c++) : (p = r, y === 0 && k(io)), p !== r) {
2928
- if (d = [], b = s.charAt(c), Et.test(b) ? c++ : (b = r, y === 0 && k(tr)), b !== r)
2931
+ if (s.charCodeAt(c) === 46 ? (p = M, c++) : (p = r, y === 0 && k(io)), p !== r) {
2932
+ if (d = [], b = s.charAt(c), Pt.test(b) ? c++ : (b = r, y === 0 && k(rr)), b !== r)
2929
2933
  for (; b !== r; )
2930
- d.push(b), b = s.charAt(c), Et.test(b) ? c++ : (b = r, y === 0 && k(tr));
2934
+ d.push(b), b = s.charAt(c), Pt.test(b) ? c++ : (b = r, y === 0 && k(rr));
2931
2935
  else
2932
2936
  d = r;
2933
2937
  d !== r ? (E = o, o = Io()) : (c = o, o = r);
@@ -2939,101 +2943,101 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2939
2943
  }
2940
2944
  function Ls() {
2941
2945
  let o, l, p;
2942
- if (o = c, l = [], p = s.charAt(c), Et.test(p) ? c++ : (p = r, y === 0 && k(tr)), p !== r)
2946
+ if (o = c, l = [], p = s.charAt(c), Pt.test(p) ? c++ : (p = r, y === 0 && k(rr)), p !== r)
2943
2947
  for (; p !== r; )
2944
- l.push(p), p = s.charAt(c), Et.test(p) ? c++ : (p = r, y === 0 && k(tr));
2948
+ l.push(p), p = s.charAt(c), Pt.test(p) ? c++ : (p = r, y === 0 && k(rr));
2945
2949
  else
2946
2950
  l = r;
2947
2951
  return l !== r && (E = o, l = Bo()), o = l, o;
2948
2952
  }
2949
- function Dr() {
2950
- let o, l, p, d, b, x;
2951
- if (o = c, s.charCodeAt(c) === 34 ? (l = N, c++) : (l = r, y === 0 && k(rr)), l !== r) {
2952
- for (p = [], d = ot(); d !== r; )
2953
- p.push(d), d = ot();
2954
- if (d = Mt(), d !== r) {
2955
- for (b = [], x = ot(); x !== r; )
2956
- b.push(x), x = ot();
2957
- s.charCodeAt(c) === 34 ? (x = N, c++) : (x = r, y === 0 && k(rr)), x !== r ? (E = o, o = Uo(p, d, b)) : (c = o, o = r);
2953
+ function Mr() {
2954
+ let o, l, p, d, b, S;
2955
+ if (o = c, s.charCodeAt(c) === 34 ? (l = L, c++) : (l = r, y === 0 && k(sr)), l !== r) {
2956
+ for (p = [], d = nt(); d !== r; )
2957
+ p.push(d), d = nt();
2958
+ if (d = zt(), d !== r) {
2959
+ for (b = [], S = nt(); S !== r; )
2960
+ b.push(S), S = nt();
2961
+ s.charCodeAt(c) === 34 ? (S = L, c++) : (S = r, y === 0 && k(sr)), S !== r ? (E = o, o = Uo(p, d, b)) : (c = o, o = r);
2958
2962
  } else
2959
2963
  c = o, o = r;
2960
2964
  } else
2961
2965
  c = o, o = r;
2962
2966
  if (o === r)
2963
- if (o = c, s.charCodeAt(c) === 34 ? (l = N, c++) : (l = r, y === 0 && k(rr)), l !== r) {
2964
- for (p = [], d = ot(); d !== r; )
2965
- p.push(d), d = ot();
2966
- s.charCodeAt(c) === 34 ? (d = N, c++) : (d = r, y === 0 && k(rr)), d !== r ? (E = o, o = Ho(p)) : (c = o, o = r);
2967
+ if (o = c, s.charCodeAt(c) === 34 ? (l = L, c++) : (l = r, y === 0 && k(sr)), l !== r) {
2968
+ for (p = [], d = nt(); d !== r; )
2969
+ p.push(d), d = nt();
2970
+ s.charCodeAt(c) === 34 ? (d = L, c++) : (d = r, y === 0 && k(sr)), d !== r ? (E = o, o = Fo(p)) : (c = o, o = r);
2967
2971
  } else
2968
2972
  c = o, o = r;
2969
2973
  return o;
2970
2974
  }
2971
2975
  function mn() {
2972
2976
  let o;
2973
- return o = vn(), o === r && (o = Dr(), o === r && (o = Dt())), o;
2977
+ return o = vn(), o === r && (o = Mr(), o === r && (o = Mt())), o;
2974
2978
  }
2975
- function ot() {
2979
+ function nt() {
2976
2980
  let o, l, p;
2977
- return o = Ds(), o === r && (o = c, s.charCodeAt(c) === 92 ? (l = pe, c++) : (l = r, y === 0 && k(Ar)), l !== r ? (p = s.charAt(c), Ae.test(p) ? c++ : (p = r, y === 0 && k(oo)), p !== r ? (E = o, o = p) : (c = o, o = r)) : (c = o, o = r), o === r && (o = c, l = c, y++, p = Mt(), y--, p === r ? l = void 0 : (c = l, l = r), l !== r ? (p = s.charAt(c), Vi.test(p) ? c++ : (p = r, y === 0 && k(no)), p !== r ? (E = o, o = p) : (c = o, o = r)) : (c = o, o = r))), o;
2981
+ return o = Ds(), o === r && (o = c, s.charCodeAt(c) === 92 ? (l = ue, c++) : (l = r, y === 0 && k(Cr)), l !== r ? (p = s.charAt(c), Ae.test(p) ? c++ : (p = r, y === 0 && k(oo)), p !== r ? (E = o, o = p) : (c = o, o = r)) : (c = o, o = r), o === r && (o = c, l = c, y++, p = zt(), y--, p === r ? l = void 0 : (c = l, l = r), l !== r ? (p = s.charAt(c), Vi.test(p) ? c++ : (p = r, y === 0 && k(no)), p !== r ? (E = o, o = p) : (c = o, o = r)) : (c = o, o = r))), o;
2978
2982
  }
2979
2983
  function Ns() {
2980
2984
  let o, l, p, d, b;
2981
- for (o = c, l = [], p = nt(); p !== r; )
2982
- l.push(p), p = nt();
2983
- if (p = Mt(), p !== r) {
2984
- for (d = [], b = nt(); b !== r; )
2985
- d.push(b), b = nt();
2986
- E = o, o = Fo(l, p, d);
2985
+ for (o = c, l = [], p = at(); p !== r; )
2986
+ l.push(p), p = at();
2987
+ if (p = zt(), p !== r) {
2988
+ for (d = [], b = at(); b !== r; )
2989
+ d.push(b), b = at();
2990
+ E = o, o = Ho(l, p, d);
2987
2991
  } else
2988
2992
  c = o, o = r;
2989
2993
  if (o === r) {
2990
- if (o = c, l = [], p = nt(), p !== r)
2994
+ if (o = c, l = [], p = at(), p !== r)
2991
2995
  for (; p !== r; )
2992
- l.push(p), p = nt();
2996
+ l.push(p), p = at();
2993
2997
  else
2994
2998
  l = r;
2995
2999
  l !== r && (E = o, l = qo(l)), o = l;
2996
3000
  }
2997
3001
  return o;
2998
3002
  }
2999
- function nt() {
3003
+ function at() {
3000
3004
  let o, l, p, d, b;
3001
- return o = Ds(), o === r && (o = _n(), o === r && (o = wn(), o === r && (o = $n(), o === r && (o = c, l = c, y++, p = Ms(), y--, p === r ? l = void 0 : (c = l, l = r), l !== r ? (p = c, y++, d = xn(), y--, d === r ? p = void 0 : (c = p, p = r), p !== r ? (d = c, y++, b = Mt(), y--, b === r ? d = void 0 : (c = d, d = r), d !== r ? (s.length > c ? (b = s.charAt(c), c++) : (b = r, y === 0 && k(ao)), b !== r ? (E = o, o = b) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r))))), o;
3005
+ return o = Ds(), o === r && (o = _n(), o === r && (o = wn(), o === r && (o = $n(), o === r && (o = c, l = c, y++, p = Ms(), y--, p === r ? l = void 0 : (c = l, l = r), l !== r ? (p = c, y++, d = xn(), y--, d === r ? p = void 0 : (c = p, p = r), p !== r ? (d = c, y++, b = zt(), y--, b === r ? d = void 0 : (c = d, d = r), d !== r ? (s.length > c ? (b = s.charAt(c), c++) : (b = r, y === 0 && k(ao)), b !== r ? (E = o, o = b) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r)) : (c = o, o = r))))), o;
3002
3006
  }
3003
3007
  function $n() {
3004
3008
  let o, l;
3005
- return o = c, s.charCodeAt(c) === 42 ? (l = M, c++) : (l = r, y === 0 && k(lo)), l !== r && (E = o, l = Qo()), o = l, o;
3009
+ return o = c, s.charCodeAt(c) === 42 ? (l = z, c++) : (l = r, y === 0 && k(lo)), l !== r && (E = o, l = Qo()), o = l, o;
3006
3010
  }
3007
- function Dt() {
3011
+ function Mt() {
3008
3012
  let o, l, p, d, b;
3009
- for (o = c, l = [], p = C(); p !== r; )
3010
- l.push(p), p = C();
3011
- if (p = Mt(), p !== r) {
3012
- for (d = [], b = C(); b !== r; )
3013
- d.push(b), b = C();
3013
+ for (o = c, l = [], p = O(); p !== r; )
3014
+ l.push(p), p = O();
3015
+ if (p = zt(), p !== r) {
3016
+ for (d = [], b = O(); b !== r; )
3017
+ d.push(b), b = O();
3014
3018
  E = o, o = Wo(l, p, d);
3015
3019
  } else
3016
3020
  c = o, o = r;
3017
3021
  if (o === r)
3018
- for (o = [], l = C(); l !== r; )
3019
- o.push(l), l = C();
3022
+ for (o = [], l = O(); l !== r; )
3023
+ o.push(l), l = O();
3020
3024
  return o;
3021
3025
  }
3022
3026
  function Ds() {
3023
3027
  let o, l;
3024
- return o = c, s.substr(c, 2) === G ? (l = G, c += 2) : (l = r, y === 0 && k(co)), l !== r && (E = o, l = Vo()), o = l, o === r && (o = c, s.substr(c, 2) === H ? (l = H, c += 2) : (l = r, y === 0 && k(po)), l !== r && (E = o, l = Yo()), o = l, o === r && (o = c, s.substr(c, 2) === tt ? (l = tt, c += 2) : (l = r, y === 0 && k(uo)), l !== r && (E = o, l = Go()), o = l)), o;
3028
+ return o = c, s.substr(c, 2) === Z ? (l = Z, c += 2) : (l = r, y === 0 && k(co)), l !== r && (E = o, l = Vo()), o = l, o === r && (o = c, s.substr(c, 2) === F ? (l = F, c += 2) : (l = r, y === 0 && k(po)), l !== r && (E = o, l = Yo()), o = l, o === r && (o = c, s.substr(c, 2) === rt ? (l = rt, c += 2) : (l = r, y === 0 && k(uo)), l !== r && (E = o, l = Go()), o = l)), o;
3025
3029
  }
3026
3030
  function _n() {
3027
3031
  let o, l, p;
3028
- return o = c, s.charCodeAt(c) === 92 ? (l = pe, c++) : (l = r, y === 0 && k(Ar)), l !== r ? (p = Ms(), p !== r ? (E = o, o = p) : (c = o, o = r)) : (c = o, o = r), o;
3032
+ return o = c, s.charCodeAt(c) === 92 ? (l = ue, c++) : (l = r, y === 0 && k(Cr)), l !== r ? (p = Ms(), p !== r ? (E = o, o = p) : (c = o, o = r)) : (c = o, o = r), o;
3029
3033
  }
3030
3034
  function wn() {
3031
3035
  let o, l, p;
3032
- return o = c, s.charCodeAt(c) === 92 ? (l = pe, c++) : (l = r, y === 0 && k(Ar)), l !== r ? (p = s.substr(c, 2), p.toLowerCase() === $ ? c += 2 : (p = r, y === 0 && k(ws)), p === r && (p = s.substr(c, 3), p.toLowerCase() === _ ? c += 3 : (p = r, y === 0 && k(xs)), p === r && (p = s.substr(c, 3), p.toLowerCase() === A ? c += 3 : (p = r, y === 0 && k(Ss)))), p !== r ? (E = o, o = p) : (c = o, o = r)) : (c = o, o = r), o;
3036
+ return o = c, s.charCodeAt(c) === 92 ? (l = ue, c++) : (l = r, y === 0 && k(Cr)), l !== r ? (p = s.substr(c, 2), p.toLowerCase() === _ ? c += 2 : (p = r, y === 0 && k(ws)), p === r && (p = s.substr(c, 3), p.toLowerCase() === w ? c += 3 : (p = r, y === 0 && k(xs)), p === r && (p = s.substr(c, 3), p.toLowerCase() === C ? c += 3 : (p = r, y === 0 && k(Ss)))), p !== r ? (E = o, o = p) : (c = o, o = r)) : (c = o, o = r), o;
3033
3037
  }
3034
3038
  function xn() {
3035
3039
  let o;
3036
- return o = Pr(), o === r && (o = Tr(), o === r && (o = Lr())), o;
3040
+ return o = Tr(), o === r && (o = Lr(), o === r && (o = Nr())), o;
3037
3041
  }
3038
3042
  function Ms() {
3039
3043
  let o;
@@ -3045,42 +3049,42 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3045
3049
  }
3046
3050
  function Sn() {
3047
3051
  let o, l;
3048
- return o = c, s.substr(c, 2) === ze ? (l = ze, c += 2) : (l = r, y === 0 && k(go)), l !== r && (E = o, l = Jo()), o = l, o === r && (o = c, s.substr(c, 2) === re ? (l = re, c += 2) : (l = r, y === 0 && k(bo)), l !== r && (E = o, l = Ko()), o = l, o === r && (o = c, s.charCodeAt(c) === 60 ? (l = er, c++) : (l = r, y === 0 && k(vo)), l !== r && (E = o, l = Xo()), o = l, o === r && (o = c, s.charCodeAt(c) === 62 ? (l = rt, c++) : (l = r, y === 0 && k(yo)), l !== r && (E = o, l = en()), o = l))), o;
3052
+ return o = c, s.substr(c, 2) === Re ? (l = Re, c += 2) : (l = r, y === 0 && k(go)), l !== r && (E = o, l = Jo()), o = l, o === r && (o = c, s.substr(c, 2) === se ? (l = se, c += 2) : (l = r, y === 0 && k(bo)), l !== r && (E = o, l = Ko()), o = l, o === r && (o = c, s.charCodeAt(c) === 60 ? (l = tr, c++) : (l = r, y === 0 && k(vo)), l !== r && (E = o, l = Xo()), o = l, o === r && (o = c, s.charCodeAt(c) === 62 ? (l = st, c++) : (l = r, y === 0 && k(yo)), l !== r && (E = o, l = en()), o = l))), o;
3049
3053
  }
3050
- function C() {
3054
+ function O() {
3051
3055
  let o;
3052
3056
  return y++, o = s.charAt(c), Gi.test(o) ? c++ : (o = r, y === 0 && k($o)), y--, o === r && y === 0 && k(mo), o;
3053
3057
  }
3054
- function Mt() {
3058
+ function zt() {
3055
3059
  let o, l, p;
3056
- return o = c, E = c, l = tn(), l ? l = void 0 : l = r, l !== r ? (s.substr(c, 14) === st ? (p = st, c += 14) : (p = r, y === 0 && k(_o)), p !== r ? (E = o, o = rn()) : (c = o, o = r)) : (c = o, o = r), o;
3060
+ return o = c, E = c, l = tn(), l ? l = void 0 : l = r, l !== r ? (s.substr(c, 14) === it ? (p = it, c += 14) : (p = r, y === 0 && k(_o)), p !== r ? (E = o, o = rn()) : (c = o, o = r)) : (c = o, o = r), o;
3057
3061
  }
3058
- const { errorOnLuceneSyntax: sp, parseCursor: kn, cursorSymbol: An, allowLeadingWildcards: On = !0, helpers: { nodeTypes: je } } = i, se = je.function.buildNodeWithArgumentNodes, Oe = je.literal.buildNode, Cn = je.wildcard.buildNode, Rs = je.namedArg.buildNode, { wildcardSymbol: Mr } = je.wildcard;
3059
- var at = 0;
3060
- Pt = h();
3061
- const zr = Pt !== r && c === s.length;
3062
+ const { errorOnLuceneSyntax: sp, parseCursor: kn, cursorSymbol: An, allowLeadingWildcards: Cn = !0, helpers: { nodeTypes: Ie } } = i, ie = Ie.function.buildNodeWithArgumentNodes, Ce = Ie.literal.buildNode, On = Ie.wildcard.buildNode, Rs = Ie.namedArg.buildNode, { wildcardSymbol: zr } = Ie.wildcard;
3063
+ var lt = 0;
3064
+ Tt = h();
3065
+ const Rr = Tt !== r && c === s.length;
3062
3066
  function js() {
3063
- throw Pt !== r && c < s.length && k(an()), cn(
3064
- sr,
3065
- ae < s.length ? on(ae) : null,
3066
- ae < s.length ? ir(ae, ae + 1) : ir(ae, ae)
3067
+ throw Tt !== r && c < s.length && k(an()), cn(
3068
+ ir,
3069
+ le < s.length ? on(le) : null,
3070
+ le < s.length ? or(le, le + 1) : or(le, le)
3067
3071
  );
3068
3072
  }
3069
3073
  if (i.peg$library)
3070
3074
  return (
3071
3075
  /** @type {any} */
3072
3076
  {
3073
- peg$result: Pt,
3077
+ peg$result: Tt,
3074
3078
  peg$currPos: c,
3075
3079
  peg$FAILED: r,
3076
- peg$maxFailExpected: sr,
3077
- peg$maxFailPos: ae,
3078
- peg$success: zr,
3079
- peg$throw: zr ? void 0 : js
3080
+ peg$maxFailExpected: ir,
3081
+ peg$maxFailPos: le,
3082
+ peg$success: Rr,
3083
+ peg$throw: Rr ? void 0 : js
3080
3084
  }
3081
3085
  );
3082
- if (zr)
3083
- return Pt;
3086
+ if (Rr)
3087
+ return Tt;
3084
3088
  js();
3085
3089
  }
3086
3090
  return {
@@ -3089,33 +3093,33 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3089
3093
  parse: t
3090
3094
  };
3091
3095
  }()
3092
- ), ls = (e, t = {}, s = xr) => {
3096
+ ), ls = (e, t = {}, s = Sr) => {
3093
3097
  if (typeof e > "u")
3094
3098
  throw new Error("expression must be a string, got undefined instead");
3095
3099
  return s(e, { ...t, helpers: { nodeTypes: _e } });
3096
- }, wt = (e, t = {}) => ls(
3100
+ }, xt = (e, t = {}) => ls(
3097
3101
  e,
3098
3102
  {
3099
3103
  ...t,
3100
3104
  startRule: "Literal"
3101
3105
  },
3102
- xr
3103
- ), br = (e, t = {}) => {
3106
+ Sr
3107
+ ), vr = (e, t = {}) => {
3104
3108
  try {
3105
- return ls(e, t, xr);
3109
+ return ls(e, t, Sr);
3106
3110
  } catch (s) {
3107
- throw s.name === "SyntaxError" ? new Oi(s, e) : s;
3111
+ throw s.name === "SyntaxError" ? new Ci(s, e) : s;
3108
3112
  }
3109
3113
  }, wa = (e) => {
3110
3114
  try {
3111
- return ls(e, { errorOnLuceneSyntax: !0 }, xr), !1;
3115
+ return ls(e, { errorOnLuceneSyntax: !0 }, Sr), !1;
3112
3116
  } catch (t) {
3113
3117
  return t.message.startsWith("Lucene");
3114
3118
  }
3115
3119
  }, Q = (e, t, s, i) => (t = void 0, !e || !e.type || !_e[e.type] ? Q(
3116
3120
  _e.function.buildNode("and", []),
3117
3121
  t
3118
- ) : _e[e.type].toOpenSearchQuery(e, t, s, i)), de = "@kuery-wildcard@";
3122
+ ) : _e[e.type].toOpenSearchQuery(e, t, s, i)), fe = "@kuery-wildcard@";
3119
3123
  function xa(e) {
3120
3124
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3121
3125
  }
@@ -3123,35 +3127,35 @@ function Sa(e) {
3123
3127
  return e.replace(/[+-=&|><!(){}[\]^"~*?:\\/]/g, "\\$&");
3124
3128
  }
3125
3129
  function ka(e) {
3126
- return e.includes(de) ? {
3130
+ return e.includes(fe) ? {
3127
3131
  type: "wildcard",
3128
3132
  value: e
3129
- } : wt(e);
3133
+ } : xt(e);
3130
3134
  }
3131
- function Ci(e, t) {
3132
- const { value: s } = e, i = s.split(de).map(xa).join("[\\s\\S]*");
3135
+ function Oi(e, t) {
3136
+ const { value: s } = e, i = s.split(fe).map(xa).join("[\\s\\S]*");
3133
3137
  return new RegExp(`^${i}$`).test(t);
3134
3138
  }
3135
3139
  function Aa(e) {
3136
3140
  const { value: t } = e;
3137
- return t.split(de).join("*");
3141
+ return t.split(fe).join("*");
3138
3142
  }
3139
- function Zr(e) {
3143
+ function Jr(e) {
3140
3144
  const { value: t } = e;
3141
- return t.split(de).map(Sa).join("*");
3145
+ return t.split(fe).map(Sa).join("*");
3142
3146
  }
3143
- function Oa(e) {
3147
+ function Ca(e) {
3144
3148
  const { value: t } = e;
3145
- return t.startsWith(de) && t.replace(de, "").length > 0;
3149
+ return t.startsWith(fe) && t.replace(fe, "").length > 0;
3146
3150
  }
3147
- const Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3151
+ const Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3148
3152
  __proto__: null,
3149
3153
  buildNode: ka,
3150
- hasLeadingWildcard: Oa,
3151
- test: Ci,
3154
+ hasLeadingWildcard: Ca,
3155
+ test: Oi,
3152
3156
  toOpenSearchQuery: Aa,
3153
- toQueryStringQuery: Zr,
3154
- wildcardSymbol: de
3157
+ toQueryStringQuery: Jr,
3158
+ wildcardSymbol: fe
3155
3159
  }, Symbol.toStringTag, { value: "Module" }));
3156
3160
  function cs(e, t) {
3157
3161
  if (!t) return [];
@@ -3159,7 +3163,7 @@ function cs(e, t) {
3159
3163
  const s = as(e), i = t.fields.find((r) => r.name === s);
3160
3164
  return i ? [i] : [];
3161
3165
  } else if (e.type === "wildcard")
3162
- return t.fields.filter((i) => Ci(e, i.name));
3166
+ return t.fields.filter((i) => Oi(e, i.name));
3163
3167
  }
3164
3168
  function Ei(e, t, s) {
3165
3169
  const i = {
@@ -3191,7 +3195,7 @@ function Ea(e, t, s = !1) {
3191
3195
  throw new Error("fieldName is a required argument");
3192
3196
  if (t === void 0)
3193
3197
  throw new Error("value is a required argument");
3194
- const i = typeof e == "string" ? wt(e) : $t(e), r = typeof t == "string" ? wt(t) : $t(t), a = $t(s);
3198
+ const i = typeof e == "string" ? xt(e) : _t(e), r = typeof t == "string" ? xt(t) : _t(t), a = _t(s);
3195
3199
  return {
3196
3200
  arguments: [i, r, a]
3197
3201
  };
@@ -3203,15 +3207,15 @@ function Pa(e, t, s = {}, i = {}) {
3203
3207
  r,
3204
3208
  t,
3205
3209
  i != null && i.nested ? i.nested.path : void 0
3206
- ), u = Q(h), g = a !== void 0 ? Q(a) : a, S = n.value ? "phrase" : "best_fields";
3210
+ ), u = Q(h), g = a !== void 0 ? Q(a) : a, $ = n.value ? "phrase" : "best_fields";
3207
3211
  if (h.value === null)
3208
3212
  return a.type === "wildcard" ? {
3209
3213
  query_string: {
3210
- query: Zr(a)
3214
+ query: Jr(a)
3211
3215
  }
3212
3216
  } : {
3213
3217
  multi_match: {
3214
- type: S,
3218
+ type: $,
3215
3219
  query: g,
3216
3220
  lenient: !0
3217
3221
  }
@@ -3222,62 +3226,62 @@ function Pa(e, t, s = {}, i = {}) {
3222
3226
  scripted: !1,
3223
3227
  type: ""
3224
3228
  });
3225
- const O = a.type === "wildcard" && g === "*", $ = h.type === "wildcard" && u === "*" || v && t && v.length === t.fields.length;
3226
- return O && $ ? { match_all: {} } : {
3229
+ const A = a.type === "wildcard" && g === "*", _ = h.type === "wildcard" && u === "*" || v && t && v.length === t.fields.length;
3230
+ return A && _ ? { match_all: {} } : {
3227
3231
  bool: {
3228
- should: v.reduce((T, N) => {
3229
- const pe = (M) => {
3230
- var G;
3231
- return h.type !== "wildcard" || !((G = N.subType) != null && G.nested) || i != null && i.nested ? M : {
3232
+ should: v.reduce((M, L) => {
3233
+ const ue = (z) => {
3234
+ var Z;
3235
+ return h.type !== "wildcard" || !((Z = L.subType) != null && Z.nested) || i != null && i.nested ? z : {
3232
3236
  nested: {
3233
- path: N.subType.nested.path,
3234
- query: M,
3237
+ path: L.subType.nested.path,
3238
+ query: z,
3235
3239
  score_mode: "none"
3236
3240
  }
3237
3241
  };
3238
3242
  };
3239
- if (N.scripted)
3243
+ if (L.scripted)
3240
3244
  return [];
3241
- if (O)
3245
+ if (A)
3242
3246
  return [
3243
- ...T,
3244
- pe({
3247
+ ...M,
3248
+ ue({
3245
3249
  exists: {
3246
- field: N.name
3250
+ field: L.name
3247
3251
  }
3248
3252
  })
3249
3253
  ];
3250
3254
  if (a.type === "wildcard")
3251
3255
  return [
3252
- ...T,
3253
- pe({
3256
+ ...M,
3257
+ ue({
3254
3258
  query_string: {
3255
- fields: [N.name],
3256
- query: Zr(a)
3259
+ fields: [L.name],
3260
+ query: Jr(a)
3257
3261
  }
3258
3262
  })
3259
3263
  ];
3260
- if (N.type === "date") {
3261
- const M = s.dateFormatTZ ? { time_zone: s.dateFormatTZ } : {};
3264
+ if (L.type === "date") {
3265
+ const z = s.dateFormatTZ ? { time_zone: s.dateFormatTZ } : {};
3262
3266
  return [
3263
- ...T,
3264
- pe({
3267
+ ...M,
3268
+ ue({
3265
3269
  range: {
3266
- [N.name]: {
3270
+ [L.name]: {
3267
3271
  gte: g,
3268
3272
  lte: g,
3269
- ...M
3273
+ ...z
3270
3274
  }
3271
3275
  }
3272
3276
  })
3273
3277
  ];
3274
3278
  } else {
3275
- const M = S === "phrase" ? "match_phrase" : "match";
3279
+ const z = $ === "phrase" ? "match_phrase" : "match";
3276
3280
  return [
3277
- ...T,
3278
- pe({
3279
- [M]: {
3280
- [N.name]: g
3281
+ ...M,
3282
+ ue({
3283
+ [z]: {
3284
+ [L.name]: g
3281
3285
  }
3282
3286
  })
3283
3287
  ];
@@ -3351,8 +3355,8 @@ function Ua(e, ...t) {
3351
3355
  s[i] = e[i];
3352
3356
  return s;
3353
3357
  }
3354
- function Ha(e, t) {
3355
- const s = Ua(t, "gt", "lt", "gte", "lte", "format"), i = typeof e == "string" ? wt(e) : _e.literal.buildNode(e), r = Object.entries(s).map((a) => {
3358
+ function Fa(e, t) {
3359
+ const s = Ua(t, "gt", "lt", "gte", "lte", "format"), i = typeof e == "string" ? xt(e) : _e.literal.buildNode(e), r = Object.entries(s).map((a) => {
3356
3360
  let [n, h] = a;
3357
3361
  return _e.namedArg.buildNode(n, h);
3358
3362
  });
@@ -3360,12 +3364,12 @@ function Ha(e, t) {
3360
3364
  arguments: [i, ...r]
3361
3365
  };
3362
3366
  }
3363
- function Fa(e, t, s = {}, i = {}) {
3367
+ function Ha(e, t, s = {}, i = {}) {
3364
3368
  const [r, ...a] = e.arguments, n = Ei(
3365
3369
  r,
3366
3370
  t,
3367
3371
  i != null && i.nested ? i.nested.path : void 0
3368
- ), h = t ? cs(n, t) : [], u = qa(a), g = Object.fromEntries(Object.entries(u).map(([v, O]) => [v, Q(O)]));
3372
+ ), h = t ? cs(n, t) : [], u = qa(a), g = Object.fromEntries(Object.entries(u).map(([v, A]) => [v, Q(A)]));
3369
3373
  return h && h.length === 0 && h.push({
3370
3374
  name: Q(n),
3371
3375
  scripted: !1,
@@ -3373,12 +3377,12 @@ function Fa(e, t, s = {}, i = {}) {
3373
3377
  }), {
3374
3378
  bool: {
3375
3379
  should: h.map((v) => {
3376
- const O = ($) => {
3377
- var _;
3378
- return n.type !== "wildcard" || !((_ = v.subType) != null && _.nested) || i.nested ? $ : {
3380
+ const A = (_) => {
3381
+ var w;
3382
+ return n.type !== "wildcard" || !((w = v.subType) != null && w.nested) || i.nested ? _ : {
3379
3383
  nested: {
3380
3384
  path: v.subType.nested.path,
3381
- query: $,
3385
+ query: _,
3382
3386
  score_mode: "none"
3383
3387
  }
3384
3388
  };
@@ -3386,17 +3390,17 @@ function Fa(e, t, s = {}, i = {}) {
3386
3390
  if (v.scripted)
3387
3391
  return {};
3388
3392
  if (v.type === "date") {
3389
- const $ = s.dateFormatTZ ? { time_zone: s.dateFormatTZ } : {};
3390
- return O({
3393
+ const _ = s.dateFormatTZ ? { time_zone: s.dateFormatTZ } : {};
3394
+ return A({
3391
3395
  range: {
3392
3396
  [v.name]: {
3393
3397
  ...g,
3394
- ...$
3398
+ ..._
3395
3399
  }
3396
3400
  }
3397
3401
  });
3398
3402
  }
3399
- return O({
3403
+ return A({
3400
3404
  range: {
3401
3405
  [v.name]: g
3402
3406
  }
@@ -3414,12 +3418,12 @@ function qa(e) {
3414
3418
  }
3415
3419
  const Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3416
3420
  __proto__: null,
3417
- buildNodeParams: Ha,
3418
- toOpenSearchQuery: Fa
3421
+ buildNodeParams: Fa,
3422
+ toOpenSearchQuery: Ha
3419
3423
  }, Symbol.toStringTag, { value: "Module" }));
3420
3424
  function Wa(e) {
3421
3425
  return {
3422
- arguments: [$t(e)]
3426
+ arguments: [_t(e)]
3423
3427
  };
3424
3428
  }
3425
3429
  function Va(e, t, s = {}, i = {}) {
@@ -3442,7 +3446,7 @@ const Ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3442
3446
  }, Symbol.toStringTag, { value: "Module" }));
3443
3447
  function Ga(e, t) {
3444
3448
  return {
3445
- arguments: [typeof e == "string" ? wt(e) : $t(e), t]
3449
+ arguments: [typeof e == "string" ? xt(e) : _t(e), t]
3446
3450
  };
3447
3451
  }
3448
3452
  function Za(e, t, s = {}, i = {}) {
@@ -3469,10 +3473,10 @@ const Ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3469
3473
  * Copyright (c) 2012-2024 Environmental Systems Research Institute, Inc.
3470
3474
  * Wed May 15 2024 14:35:51 GMT-0700 (Pacific Daylight Time)
3471
3475
  */
3472
- var w = function(t, s, i, r) {
3476
+ var x = function(t, s, i, r) {
3473
3477
  for (i = i || {}, r = t.length; r--; i[t[r]] = s) ;
3474
3478
  return i;
3475
- }, ct = [1, 9], pt = [1, 10], ut = [1, 11], ht = [1, 12], dt = [1, 13], ft = [1, 14], gt = [1, 15], U = [1, 60], P = [5, 15, 19], ye = [1, 67], ue = [1, 73], Rt = [1, 87], jt = [1, 104], D = [15, 19], Ce = [1, 110], me = [1, 116], cr = [1, 130], pr = [1, 136], Xt = {
3479
+ }, pt = [1, 9], ut = [1, 10], ht = [1, 11], dt = [1, 12], ft = [1, 13], gt = [1, 14], bt = [1, 15], U = [1, 60], P = [5, 15, 19], ye = [1, 67], he = [1, 73], jt = [1, 87], It = [1, 104], N = [15, 19], Oe = [1, 110], me = [1, 116], pr = [1, 130], ur = [1, 136], er = {
3476
3480
  trace: function() {
3477
3481
  },
3478
3482
  yy: {},
@@ -3547,13 +3551,13 @@ var w = function(t, s, i, r) {
3547
3551
  case 7:
3548
3552
  return n[u - 1];
3549
3553
  case 8:
3550
- this.$ = new Ft([Number(n[u - 1]), Number(n[u])]);
3554
+ this.$ = new qt([Number(n[u - 1]), Number(n[u])]);
3551
3555
  break;
3552
3556
  case 9:
3553
- this.$ = new Ft([Number(n[u - 2]), Number(n[u - 1]), Number(n[u])]);
3557
+ this.$ = new qt([Number(n[u - 2]), Number(n[u - 1]), Number(n[u])]);
3554
3558
  break;
3555
3559
  case 10:
3556
- this.$ = new Ft([Number(n[u - 3]), Number(n[u - 2]), Number(n[u - 1]), Number(n[u])]);
3560
+ this.$ = new qt([Number(n[u - 3]), Number(n[u - 2]), Number(n[u - 1]), Number(n[u])]);
3557
3561
  break;
3558
3562
  case 11:
3559
3563
  case 26:
@@ -3887,13 +3891,13 @@ var w = function(t, s, i, r) {
3887
3891
  9: 6,
3888
3892
  10: 7,
3889
3893
  11: 8,
3890
- 20: ct,
3891
- 29: pt,
3892
- 30: ut,
3893
- 31: ht,
3894
- 32: dt,
3895
- 33: ft,
3896
- 36: gt
3894
+ 20: pt,
3895
+ 29: ut,
3896
+ 30: ht,
3897
+ 31: dt,
3898
+ 32: ft,
3899
+ 33: gt,
3900
+ 36: bt
3897
3901
  }, {
3898
3902
  1: [3]
3899
3903
  }, {
@@ -3976,7 +3980,7 @@ var w = function(t, s, i, r) {
3976
3980
  18: [1, 62]
3977
3981
  }, {
3978
3982
  18: [1, 63]
3979
- }, w(P, [2, 20]), {
3983
+ }, x(P, [2, 20]), {
3980
3984
  12: 66,
3981
3985
  13: U,
3982
3986
  18: ye,
@@ -3988,17 +3992,17 @@ var w = function(t, s, i, r) {
3988
3992
  18: [1, 69]
3989
3993
  }, {
3990
3994
  18: [1, 70]
3991
- }, w(P, [2, 32]), {
3995
+ }, x(P, [2, 32]), {
3992
3996
  16: 71,
3993
3997
  17: 72,
3994
- 18: ue
3998
+ 18: he
3995
3999
  }, {
3996
4000
  18: [1, 74]
3997
4001
  }, {
3998
4002
  18: [1, 75]
3999
4003
  }, {
4000
4004
  18: [1, 76]
4001
- }, w(P, [2, 37]), {
4005
+ }, x(P, [2, 37]), {
4002
4006
  12: 66,
4003
4007
  13: U,
4004
4008
  18: ye,
@@ -4010,18 +4014,18 @@ var w = function(t, s, i, r) {
4010
4014
  18: [1, 79]
4011
4015
  }, {
4012
4016
  18: [1, 80]
4013
- }, w(P, [2, 42]), {
4017
+ }, x(P, [2, 42]), {
4014
4018
  16: 81,
4015
4019
  17: 72,
4016
- 18: ue
4020
+ 18: he
4017
4021
  }, {
4018
4022
  18: [1, 82]
4019
4023
  }, {
4020
4024
  18: [1, 83]
4021
4025
  }, {
4022
4026
  18: [1, 84]
4023
- }, w(P, [2, 47]), {
4024
- 18: Rt,
4027
+ }, x(P, [2, 47]), {
4028
+ 18: jt,
4025
4029
  26: 85,
4026
4030
  27: 86
4027
4031
  }, {
@@ -4030,7 +4034,7 @@ var w = function(t, s, i, r) {
4030
4034
  18: [1, 89]
4031
4035
  }, {
4032
4036
  18: [1, 90]
4033
- }, w(P, [2, 52]), {
4037
+ }, x(P, [2, 52]), {
4034
4038
  4: 93,
4035
4039
  6: 94,
4036
4040
  7: 95,
@@ -4038,25 +4042,25 @@ var w = function(t, s, i, r) {
4038
4042
  9: 97,
4039
4043
  10: 98,
4040
4044
  11: 99,
4041
- 20: ct,
4042
- 29: pt,
4043
- 30: ut,
4044
- 31: ht,
4045
- 32: dt,
4046
- 33: ft,
4045
+ 20: pt,
4046
+ 29: ut,
4047
+ 30: ht,
4048
+ 31: dt,
4049
+ 32: ft,
4050
+ 33: gt,
4047
4051
  34: 92,
4048
4052
  35: 91,
4049
- 36: gt
4053
+ 36: bt
4050
4054
  }, {
4051
4055
  18: [1, 100]
4052
4056
  }, {
4053
4057
  18: [1, 101]
4054
4058
  }, {
4055
4059
  18: [1, 102]
4056
- }, w(P, [2, 66]), {
4057
- 15: jt,
4060
+ }, x(P, [2, 66]), {
4061
+ 15: It,
4058
4062
  19: [1, 103]
4059
- }, w(D, [2, 12]), {
4063
+ }, x(N, [2, 12]), {
4060
4064
  13: [1, 105]
4061
4065
  }, {
4062
4066
  12: 59,
@@ -4071,9 +4075,9 @@ var w = function(t, s, i, r) {
4071
4075
  13: U,
4072
4076
  14: 108
4073
4077
  }, {
4074
- 15: Ce,
4078
+ 15: Oe,
4075
4079
  19: [1, 109]
4076
- }, w(D, [2, 27]), w(D, [2, 21]), {
4080
+ }, x(N, [2, 27]), x(N, [2, 21]), {
4077
4081
  12: 111,
4078
4082
  13: U
4079
4083
  }, {
@@ -4097,24 +4101,24 @@ var w = function(t, s, i, r) {
4097
4101
  }, {
4098
4102
  15: me,
4099
4103
  19: [1, 115]
4100
- }, w(D, [2, 14]), {
4104
+ }, x(N, [2, 14]), {
4101
4105
  12: 59,
4102
4106
  13: U,
4103
4107
  14: 117
4104
4108
  }, {
4105
4109
  16: 118,
4106
4110
  17: 72,
4107
- 18: ue
4111
+ 18: he
4108
4112
  }, {
4109
4113
  16: 119,
4110
4114
  17: 72,
4111
- 18: ue
4115
+ 18: he
4112
4116
  }, {
4113
4117
  16: 120,
4114
4118
  17: 72,
4115
- 18: ue
4119
+ 18: he
4116
4120
  }, {
4117
- 15: Ce,
4121
+ 15: Oe,
4118
4122
  19: [1, 121]
4119
4123
  }, {
4120
4124
  12: 66,
@@ -4140,38 +4144,38 @@ var w = function(t, s, i, r) {
4140
4144
  }, {
4141
4145
  16: 126,
4142
4146
  17: 72,
4143
- 18: ue
4147
+ 18: he
4144
4148
  }, {
4145
4149
  16: 127,
4146
4150
  17: 72,
4147
- 18: ue
4151
+ 18: he
4148
4152
  }, {
4149
4153
  16: 128,
4150
4154
  17: 72,
4151
- 18: ue
4155
+ 18: he
4152
4156
  }, {
4153
- 15: cr,
4157
+ 15: pr,
4154
4158
  19: [1, 129]
4155
- }, w(D, [2, 24]), {
4159
+ }, x(N, [2, 24]), {
4156
4160
  16: 131,
4157
4161
  17: 72,
4158
- 18: ue
4162
+ 18: he
4159
4163
  }, {
4160
- 18: Rt,
4164
+ 18: jt,
4161
4165
  26: 132,
4162
4166
  27: 86
4163
4167
  }, {
4164
- 18: Rt,
4168
+ 18: jt,
4165
4169
  26: 133,
4166
4170
  27: 86
4167
4171
  }, {
4168
- 18: Rt,
4172
+ 18: jt,
4169
4173
  26: 134,
4170
4174
  27: 86
4171
4175
  }, {
4172
- 15: pr,
4176
+ 15: ur,
4173
4177
  19: [1, 135]
4174
- }, w(D, [2, 61]), w(D, [2, 53]), w(D, [2, 54]), w(D, [2, 55]), w(D, [2, 56]), w(D, [2, 57]), w(D, [2, 58]), w(D, [2, 59]), {
4178
+ }, x(N, [2, 61]), x(N, [2, 53]), x(N, [2, 54]), x(N, [2, 55]), x(N, [2, 56]), x(N, [2, 57]), x(N, [2, 58]), x(N, [2, 59]), {
4175
4179
  4: 93,
4176
4180
  6: 94,
4177
4181
  7: 95,
@@ -4179,15 +4183,15 @@ var w = function(t, s, i, r) {
4179
4183
  9: 97,
4180
4184
  10: 98,
4181
4185
  11: 99,
4182
- 20: ct,
4183
- 29: pt,
4184
- 30: ut,
4185
- 31: ht,
4186
- 32: dt,
4187
- 33: ft,
4186
+ 20: pt,
4187
+ 29: ut,
4188
+ 30: ht,
4189
+ 31: dt,
4190
+ 32: ft,
4191
+ 33: gt,
4188
4192
  34: 92,
4189
4193
  35: 137,
4190
- 36: gt
4194
+ 36: bt
4191
4195
  }, {
4192
4196
  4: 93,
4193
4197
  6: 94,
@@ -4196,15 +4200,15 @@ var w = function(t, s, i, r) {
4196
4200
  9: 97,
4197
4201
  10: 98,
4198
4202
  11: 99,
4199
- 20: ct,
4200
- 29: pt,
4201
- 30: ut,
4202
- 31: ht,
4203
- 32: dt,
4204
- 33: ft,
4203
+ 20: pt,
4204
+ 29: ut,
4205
+ 30: ht,
4206
+ 31: dt,
4207
+ 32: ft,
4208
+ 33: gt,
4205
4209
  34: 92,
4206
4210
  35: 138,
4207
- 36: gt
4211
+ 36: bt
4208
4212
  }, {
4209
4213
  4: 93,
4210
4214
  6: 94,
@@ -4213,30 +4217,30 @@ var w = function(t, s, i, r) {
4213
4217
  9: 97,
4214
4218
  10: 98,
4215
4219
  11: 99,
4216
- 20: ct,
4217
- 29: pt,
4218
- 30: ut,
4219
- 31: ht,
4220
- 32: dt,
4221
- 33: ft,
4220
+ 20: pt,
4221
+ 29: ut,
4222
+ 30: ht,
4223
+ 31: dt,
4224
+ 32: ft,
4225
+ 33: gt,
4222
4226
  34: 92,
4223
4227
  35: 139,
4224
- 36: gt
4225
- }, w(P, [2, 16]), {
4228
+ 36: bt
4229
+ }, x(P, [2, 16]), {
4226
4230
  12: 140,
4227
4231
  13: U
4228
- }, w(D, [2, 8], {
4232
+ }, x(N, [2, 8], {
4229
4233
  13: [1, 141]
4230
4234
  }), {
4231
- 15: jt,
4235
+ 15: It,
4232
4236
  19: [1, 142]
4233
4237
  }, {
4234
- 15: jt,
4238
+ 15: It,
4235
4239
  19: [1, 143]
4236
4240
  }, {
4237
- 15: jt,
4241
+ 15: It,
4238
4242
  19: [1, 144]
4239
- }, w(P, [2, 28]), {
4243
+ }, x(P, [2, 28]), {
4240
4244
  12: 66,
4241
4245
  13: U,
4242
4246
  18: ye,
@@ -4244,19 +4248,19 @@ var w = function(t, s, i, r) {
4244
4248
  }, {
4245
4249
  19: [1, 146]
4246
4250
  }, {
4247
- 15: Ce,
4251
+ 15: Oe,
4248
4252
  19: [1, 147]
4249
4253
  }, {
4250
- 15: Ce,
4254
+ 15: Oe,
4251
4255
  19: [1, 148]
4252
4256
  }, {
4253
- 15: Ce,
4257
+ 15: Oe,
4254
4258
  19: [1, 149]
4255
- }, w(P, [2, 33]), {
4259
+ }, x(P, [2, 33]), {
4256
4260
  17: 150,
4257
- 18: ue
4261
+ 18: he
4258
4262
  }, {
4259
- 15: jt,
4263
+ 15: It,
4260
4264
  19: [1, 151]
4261
4265
  }, {
4262
4266
  15: me,
@@ -4267,16 +4271,16 @@ var w = function(t, s, i, r) {
4267
4271
  }, {
4268
4272
  15: me,
4269
4273
  19: [1, 154]
4270
- }, w(P, [2, 38]), {
4271
- 15: Ce,
4274
+ }, x(P, [2, 38]), {
4275
+ 15: Oe,
4272
4276
  19: [1, 155]
4273
4277
  }, {
4274
- 15: Ce,
4278
+ 15: Oe,
4275
4279
  19: [1, 156]
4276
4280
  }, {
4277
- 15: Ce,
4281
+ 15: Oe,
4278
4282
  19: [1, 157]
4279
- }, w(P, [2, 43]), {
4283
+ }, x(P, [2, 43]), {
4280
4284
  15: me,
4281
4285
  19: [1, 158]
4282
4286
  }, {
@@ -4285,22 +4289,22 @@ var w = function(t, s, i, r) {
4285
4289
  }, {
4286
4290
  15: me,
4287
4291
  19: [1, 160]
4288
- }, w(P, [2, 48]), {
4289
- 18: Rt,
4292
+ }, x(P, [2, 48]), {
4293
+ 18: jt,
4290
4294
  27: 161
4291
4295
  }, {
4292
4296
  15: me,
4293
4297
  19: [1, 162]
4294
4298
  }, {
4295
- 15: cr,
4299
+ 15: pr,
4296
4300
  19: [1, 163]
4297
4301
  }, {
4298
- 15: cr,
4302
+ 15: pr,
4299
4303
  19: [1, 164]
4300
4304
  }, {
4301
- 15: cr,
4305
+ 15: pr,
4302
4306
  19: [1, 165]
4303
- }, w(P, [2, 62]), {
4307
+ }, x(P, [2, 62]), {
4304
4308
  4: 93,
4305
4309
  6: 94,
4306
4310
  7: 95,
@@ -4308,26 +4312,26 @@ var w = function(t, s, i, r) {
4308
4312
  9: 97,
4309
4313
  10: 98,
4310
4314
  11: 99,
4311
- 20: ct,
4312
- 29: pt,
4313
- 30: ut,
4314
- 31: ht,
4315
- 32: dt,
4316
- 33: ft,
4315
+ 20: pt,
4316
+ 29: ut,
4317
+ 30: ht,
4318
+ 31: dt,
4319
+ 32: ft,
4320
+ 33: gt,
4317
4321
  34: 166,
4318
- 36: gt
4322
+ 36: bt
4319
4323
  }, {
4320
- 15: pr,
4324
+ 15: ur,
4321
4325
  19: [1, 167]
4322
4326
  }, {
4323
- 15: pr,
4327
+ 15: ur,
4324
4328
  19: [1, 168]
4325
4329
  }, {
4326
- 15: pr,
4330
+ 15: ur,
4327
4331
  19: [1, 169]
4328
- }, w(D, [2, 11]), w(D, [2, 9], {
4332
+ }, x(N, [2, 11]), x(N, [2, 9], {
4329
4333
  13: [1, 170]
4330
- }), w(P, [2, 17]), w(P, [2, 18]), w(P, [2, 19]), w(D, [2, 26]), w(D, [2, 22]), w(P, [2, 29]), w(P, [2, 30]), w(P, [2, 31]), w(D, [2, 13]), w(D, [2, 15]), w(P, [2, 34]), w(P, [2, 35]), w(P, [2, 36]), w(P, [2, 39]), w(P, [2, 40]), w(P, [2, 41]), w(P, [2, 44]), w(P, [2, 45]), w(P, [2, 46]), w(D, [2, 23]), w(D, [2, 25]), w(P, [2, 49]), w(P, [2, 50]), w(P, [2, 51]), w(D, [2, 60]), w(P, [2, 63]), w(P, [2, 64]), w(P, [2, 65]), w(D, [2, 10])],
4334
+ }), x(P, [2, 17]), x(P, [2, 18]), x(P, [2, 19]), x(N, [2, 26]), x(N, [2, 22]), x(P, [2, 29]), x(P, [2, 30]), x(P, [2, 31]), x(N, [2, 13]), x(N, [2, 15]), x(P, [2, 34]), x(P, [2, 35]), x(P, [2, 36]), x(P, [2, 39]), x(P, [2, 40]), x(P, [2, 41]), x(P, [2, 44]), x(P, [2, 45]), x(P, [2, 46]), x(N, [2, 23]), x(N, [2, 25]), x(P, [2, 49]), x(P, [2, 50]), x(P, [2, 51]), x(N, [2, 60]), x(P, [2, 63]), x(P, [2, 64]), x(P, [2, 65]), x(N, [2, 10])],
4331
4335
  defaultActions: {
4332
4336
  16: [2, 1],
4333
4337
  17: [2, 2],
@@ -4346,50 +4350,50 @@ var w = function(t, s, i, r) {
4346
4350
  }
4347
4351
  },
4348
4352
  parse: function(t) {
4349
- var s = this, i = [0], r = [null], a = [], n = this.table, h = "", u = 0, g = 0, S = 2, v = 1, O = a.slice.call(arguments, 1), $ = Object.create(this.lexer), _ = {
4353
+ var s = this, i = [0], r = [null], a = [], n = this.table, h = "", u = 0, g = 0, $ = 2, v = 1, A = a.slice.call(arguments, 1), _ = Object.create(this.lexer), w = {
4350
4354
  yy: {}
4351
4355
  };
4352
- for (var A in this.yy)
4353
- Object.prototype.hasOwnProperty.call(this.yy, A) && (_.yy[A] = this.yy[A]);
4354
- $.setInput(t, _.yy), _.yy.lexer = $, _.yy.parser = this, typeof $.yylloc > "u" && ($.yylloc = {});
4355
- var T = $.yylloc;
4356
- a.push(T);
4357
- var N = $.options && $.options.ranges;
4358
- typeof _.yy.parseError == "function" ? this.parseError = _.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
4359
- for (var pe = function() {
4356
+ for (var C in this.yy)
4357
+ Object.prototype.hasOwnProperty.call(this.yy, C) && (w.yy[C] = this.yy[C]);
4358
+ _.setInput(t, w.yy), w.yy.lexer = _, w.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
4359
+ var M = _.yylloc;
4360
+ a.push(M);
4361
+ var L = _.options && _.options.ranges;
4362
+ typeof w.yy.parseError == "function" ? this.parseError = w.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
4363
+ for (var ue = function() {
4360
4364
  var Ae;
4361
- return Ae = $.lex() || v, typeof Ae != "number" && (Ae = s.symbols_[Ae] || Ae), Ae;
4362
- }, M, G, H, tt, ve = {}, ze, re, er, rt; ; ) {
4363
- if (G = i[i.length - 1], this.defaultActions[G] ? H = this.defaultActions[G] : ((M === null || typeof M > "u") && (M = pe()), H = n[G] && n[G][M]), typeof H > "u" || !H.length || !H[0]) {
4364
- var st = "";
4365
- rt = [];
4366
- for (ze in n[G])
4367
- this.terminals_[ze] && ze > S && rt.push("'" + this.terminals_[ze] + "'");
4368
- $.showPosition ? st = "Parse error on line " + (u + 1) + `:
4369
- ` + $.showPosition() + `
4370
- Expecting ` + rt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : st = "Parse error on line " + (u + 1) + ": Unexpected " + (M == v ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(st, {
4371
- text: $.match,
4372
- token: this.terminals_[M] || M,
4373
- line: $.yylineno,
4374
- loc: T,
4375
- expected: rt
4365
+ return Ae = _.lex() || v, typeof Ae != "number" && (Ae = s.symbols_[Ae] || Ae), Ae;
4366
+ }, z, Z, F, rt, ve = {}, Re, se, tr, st; ; ) {
4367
+ if (Z = i[i.length - 1], this.defaultActions[Z] ? F = this.defaultActions[Z] : ((z === null || typeof z > "u") && (z = ue()), F = n[Z] && n[Z][z]), typeof F > "u" || !F.length || !F[0]) {
4368
+ var it = "";
4369
+ st = [];
4370
+ for (Re in n[Z])
4371
+ this.terminals_[Re] && Re > $ && st.push("'" + this.terminals_[Re] + "'");
4372
+ _.showPosition ? it = "Parse error on line " + (u + 1) + `:
4373
+ ` + _.showPosition() + `
4374
+ Expecting ` + st.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : it = "Parse error on line " + (u + 1) + ": Unexpected " + (z == v ? "end of input" : "'" + (this.terminals_[z] || z) + "'"), this.parseError(it, {
4375
+ text: _.match,
4376
+ token: this.terminals_[z] || z,
4377
+ line: _.yylineno,
4378
+ loc: M,
4379
+ expected: st
4376
4380
  });
4377
4381
  }
4378
- if (H[0] instanceof Array && H.length > 1)
4379
- throw new Error("Parse Error: multiple actions possible at state: " + G + ", token: " + M);
4380
- switch (H[0]) {
4382
+ if (F[0] instanceof Array && F.length > 1)
4383
+ throw new Error("Parse Error: multiple actions possible at state: " + Z + ", token: " + z);
4384
+ switch (F[0]) {
4381
4385
  case 1:
4382
- i.push(M), r.push($.yytext), a.push($.yylloc), i.push(H[1]), M = null, g = $.yyleng, h = $.yytext, u = $.yylineno, T = $.yylloc;
4386
+ i.push(z), r.push(_.yytext), a.push(_.yylloc), i.push(F[1]), z = null, g = _.yyleng, h = _.yytext, u = _.yylineno, M = _.yylloc;
4383
4387
  break;
4384
4388
  case 2:
4385
- if (re = this.productions_[H[1]][1], ve.$ = r[r.length - re], ve._$ = {
4386
- first_line: a[a.length - (re || 1)].first_line,
4389
+ if (se = this.productions_[F[1]][1], ve.$ = r[r.length - se], ve._$ = {
4390
+ first_line: a[a.length - (se || 1)].first_line,
4387
4391
  last_line: a[a.length - 1].last_line,
4388
- first_column: a[a.length - (re || 1)].first_column,
4392
+ first_column: a[a.length - (se || 1)].first_column,
4389
4393
  last_column: a[a.length - 1].last_column
4390
- }, N && (ve._$.range = [a[a.length - (re || 1)].range[0], a[a.length - 1].range[1]]), tt = this.performAction.apply(ve, [h, g, u, _.yy, H[1], r, a].concat(O)), typeof tt < "u")
4391
- return tt;
4392
- re && (i = i.slice(0, -1 * re * 2), r = r.slice(0, -1 * re), a = a.slice(0, -1 * re)), i.push(this.productions_[H[1]][0]), r.push(ve.$), a.push(ve._$), er = n[i[i.length - 2]][i[i.length - 1]], i.push(er);
4394
+ }, L && (ve._$.range = [a[a.length - (se || 1)].range[0], a[a.length - 1].range[1]]), rt = this.performAction.apply(ve, [h, g, u, w.yy, F[1], r, a].concat(A)), typeof rt < "u")
4395
+ return rt;
4396
+ se && (i = i.slice(0, -1 * se * 2), r = r.slice(0, -1 * se), a = a.slice(0, -1 * se)), i.push(this.productions_[F[1]][0]), r.push(ve.$), a.push(ve._$), tr = n[i[i.length - 2]][i[i.length - 1]], i.push(tr);
4393
4397
  break;
4394
4398
  case 3:
4395
4399
  return !0;
@@ -4617,22 +4621,22 @@ Expecting ` + rt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : st =
4617
4621
  };
4618
4622
  return e;
4619
4623
  }();
4620
- Xt.lexer = Ka;
4624
+ er.lexer = Ka;
4621
4625
  function Pi() {
4622
4626
  this.yy = {};
4623
4627
  }
4624
- Pi.prototype = Xt;
4625
- Xt.Parser = Pi;
4626
- Xt.yy.parseError = function(e) {
4628
+ Pi.prototype = er;
4629
+ er.Parser = Pi;
4630
+ er.yy.parseError = function(e) {
4627
4631
  throw e;
4628
4632
  };
4629
- function Ft(e) {
4633
+ function qt(e) {
4630
4634
  this.data = [e], this.type = "PointArray";
4631
4635
  }
4632
- Ft.prototype.addPoint = function(e) {
4636
+ qt.prototype.addPoint = function(e) {
4633
4637
  return e.type === "PointArray" ? this.data = this.data.concat(e.data) : this.data.push(e), this;
4634
4638
  };
4635
- Ft.prototype.toJSON = function() {
4639
+ qt.prototype.toJSON = function() {
4636
4640
  return this.data;
4637
4641
  };
4638
4642
  function Ti(e) {
@@ -4677,7 +4681,7 @@ hs.prototype.toJSON = function() {
4677
4681
  var Li = function(t) {
4678
4682
  var s;
4679
4683
  try {
4680
- s = Xt.parse(t);
4684
+ s = er.parse(t);
4681
4685
  } catch (i) {
4682
4686
  throw Error("Unable to parse: " + i);
4683
4687
  }
@@ -4769,20 +4773,20 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4769
4773
  function: il,
4770
4774
  literal: _a,
4771
4775
  namedArg: al,
4772
- wildcard: Ca
4773
- }, ll = de, cl = (e, t) => "(" + (e.arguments || []).map((i) => Ge(i, t)).join(" AND ") + ")", pl = (e, t) => {
4776
+ wildcard: Oa
4777
+ }, ll = fe, cl = (e, t) => "(" + (e.arguments || []).map((i) => Ze(i, t)).join(" AND ") + ")", pl = (e, t) => {
4774
4778
  var {
4775
4779
  arguments: [s, i, r]
4776
4780
  } = e;
4777
4781
  let a = "=";
4778
4782
  i.type === "wildcard" && (a = "");
4779
- let n = Ge(i);
4783
+ let n = Ze(i);
4780
4784
  r = r.value || typeof n == "string", i.type === "literal" && r && (n = `'${n}'`), i.type === "literal" && !r && (n = `${n}`);
4781
- let h = Ge(s);
4785
+ let h = Ze(s);
4782
4786
  return h == null ? t && r ? `(${t.filter((u) => u.type === "string").map((u) => `${u.name} ILIKE '%${i.value}%'`).join(" OR ")})` : t && !r && (i.value === !0 || i.value === !1) ? `(${t.filter((u) => u.type === "boolean").map((u) => `${u.name}=${i.value}`).join(" OR ")})` : "" : h + a + n;
4783
- }, ul = (e, t) => "(" + (e.arguments || []).map((i) => Ge(i, t)).join(" OR ") + ")", hl = (e, t) => {
4787
+ }, ul = (e, t) => "(" + (e.arguments || []).map((i) => Ze(i, t)).join(" OR ") + ")", hl = (e, t) => {
4784
4788
  const [s] = e.arguments;
4785
- return "NOT (" + Ge(s, t) + ")";
4789
+ return "NOT (" + Ze(s, t) + ")";
4786
4790
  }, dl = {
4787
4791
  gt: ">",
4788
4792
  lt: "<",
@@ -4792,7 +4796,7 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4792
4796
  const [t, s] = e.arguments;
4793
4797
  let i = s.value;
4794
4798
  const r = dl[s.name];
4795
- let a = Ge(i);
4799
+ let a = Ze(i);
4796
4800
  return i.type === "literal" && (a = `${a}`), `${t.value} ${r} ${a}`;
4797
4801
  }, gl = (e) => {
4798
4802
  const [t] = e.arguments;
@@ -4817,10 +4821,10 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4817
4821
  const { value: t } = e;
4818
4822
  return ` LIKE '${t.split(ll).join("%")}'`;
4819
4823
  }
4820
- }, Ge = (e, t) => {
4824
+ }, Ze = (e, t) => {
4821
4825
  const s = ml[e.type];
4822
4826
  return s(e, t);
4823
- }, $l = de, _l = (e) => ({ $and: (e.arguments || []).map((i) => Pe(i)) }), wl = (e) => {
4827
+ }, $l = fe, _l = (e) => ({ $and: (e.arguments || []).map((i) => Pe(i)) }), wl = (e) => {
4824
4828
  const {
4825
4829
  arguments: [t, s]
4826
4830
  } = e;
@@ -4849,7 +4853,7 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4849
4853
  }, Ni = (e) => {
4850
4854
  const [t] = e.arguments;
4851
4855
  return { [Pe(t)]: { $ne: null } };
4852
- }, Ol = (e) => (console.warn("TODO Implement nested search", e), ""), Cl = (e) => {
4856
+ }, Cl = (e) => (console.warn("TODO Implement nested search", e), ""), Ol = (e) => {
4853
4857
  const [t, s, i] = e.arguments;
4854
4858
  if (s == "within")
4855
4859
  return { [t.value]: { $geoWithin: Li(i.value) } };
@@ -4860,8 +4864,8 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4860
4864
  not: Sl,
4861
4865
  range: Al,
4862
4866
  exists: Ni,
4863
- nested: Ol,
4864
- geospatial: Cl
4867
+ nested: Cl,
4868
+ geospatial: Ol
4865
4869
  }, Pl = {
4866
4870
  function: (e) => El[e.function](e),
4867
4871
  literal: (e) => e.value,
@@ -4872,14 +4876,14 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4872
4876
  }, Pe = (e, t) => {
4873
4877
  const s = Pl[e.type];
4874
4878
  return s(e, t);
4875
- }, Tl = de, Ll = (e, t) => {
4879
+ }, Tl = fe, Ll = (e, t) => {
4876
4880
  const s = e.arguments || [];
4877
- let i = "<span class='and-expression'>" + s.map((r) => Ne(r, t)).join(" AND ") + "</span>";
4881
+ let i = "<span class='and-expression'>" + s.map((r) => De(r, t)).join(" AND ") + "</span>";
4878
4882
  if (e.group !== void 0) {
4879
4883
  try {
4880
- let { fieldName: r, values: a } = fs(s);
4881
- return `<span class="or-expression">${r}:(${a.join(
4882
- " OR "
4884
+ let { fieldName: r, values: a } = fs(s), n = ":";
4885
+ return r === St({ type: "literal", value: null }) && (r = "", n = ""), `<span class="and-expression">${r}${n}(${a.join(
4886
+ " AND "
4883
4887
  )})</span>`;
4884
4888
  } catch (r) {
4885
4889
  console.log(r);
@@ -4889,11 +4893,11 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4889
4893
  return i;
4890
4894
  }, Nl = (e, t) => {
4891
4895
  const s = e.arguments || [];
4892
- let r = `<span class="or-expression">${s.map((a) => Ne(a, t)).join(" OR ")}</span>`;
4896
+ let r = `<span class="or-expression">${s.map((a) => De(a, t)).join(" OR ")}</span>`;
4893
4897
  if (e.group !== void 0) {
4894
4898
  try {
4895
- let { fieldName: a, values: n } = fs(s);
4896
- return `<span class="or-expression">${a}:(${n.join(
4899
+ let { fieldName: a, values: n } = fs(s), h = ":";
4900
+ return a === St({ type: "literal", value: null }) && (a = "", h = ""), `<span class="or-expression">${a}${h}(${n.join(
4897
4901
  " OR "
4898
4902
  )})</span>`;
4899
4903
  } catch (a) {
@@ -4904,20 +4908,22 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4904
4908
  return r;
4905
4909
  }, Di = (e, t, s, i) => {
4906
4910
  var a;
4907
- let r = Ne(t);
4911
+ let r = De(t);
4908
4912
  return s.value && (r = `"${r}"`), i && ((a = i.find((n) => n.name === e)) == null ? void 0 : a.type) === "boolean" && (r = `<span class="value-constant">${t.value}</span>`), `<span class="expression-value">${r}</span>`;
4909
- }, Jr = (e) => `<span class="field-name">${Ne(e)}</span>`, Dl = (e, t) => {
4913
+ }, St = (e) => `<span class="field-name">${De(e)}</span>`, Dl = (e, t) => {
4910
4914
  var {
4911
4915
  arguments: [s, i, r]
4912
4916
  } = e;
4913
- let a = ":", n = Jr(s), h = Di(n, i, r, t);
4917
+ let a = ":", n = St(s);
4918
+ n === St({ type: "literal", value: null }) && (n = "", a = "");
4919
+ let h = Di(n, i, r, t);
4914
4920
  return `<span class="is-expression">${n}${a}${h}</span>`;
4915
4921
  }, Ml = (e, t) => {
4916
4922
  const [s] = e.arguments;
4917
- return `<span class="not-expression">not ${Ne(s, t)}</span>`;
4923
+ return `<span class="not-expression">not ${De(s, t)}</span>`;
4918
4924
  }, fs = (e, t = void 0, s) => {
4919
4925
  let i = [];
4920
- if (!t && e[0].function == "is" && (t = Jr(e[0].arguments[0])), !t)
4926
+ if (!t && e[0].function == "is" && (t = St(e[0].arguments[0])), !t)
4921
4927
  throw Error(
4922
4928
  "Cannot group variables because they don't have a groupable field"
4923
4929
  );
@@ -4926,7 +4932,7 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4926
4932
  arguments: [r, a, n]
4927
4933
  } = h;
4928
4934
  if (h.function == "is") {
4929
- if (Jr(r) !== t)
4935
+ if (St(r) !== t)
4930
4936
  throw Error(
4931
4937
  "Cannot group variables because they aren't for the same field"
4932
4938
  );
@@ -4950,8 +4956,8 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4950
4956
  const [t, s] = e.arguments;
4951
4957
  let i = s.value;
4952
4958
  const r = zl[s.name];
4953
- let a = Ne(i);
4954
- return i.type === "literal" && (a = `${a}`), Number.isNaN(parseFloat(a)) && (a = `<span class="expression-value">"${a}"</span>`), `<span class="range-expression"><span class="field-name">${t.value}</span> ${r} <span class="field-numeric">${a}</span></span>`;
4959
+ let a = De(i);
4960
+ return i.type === "literal" && (a = `${a}`), (Number.isNaN(parseFloat(a)) || !a.match(/^[-+]?([0-9]*\.[0-9]+|[0-9]+(\.[0-9]*)?)$/)) && (a = `<span class="expression-value">"${a}"</span>`), `<span class="range-expression"><span class="field-name">${t.value}</span> ${r} <span class="field-numeric">${a}</span></span>`;
4955
4961
  }, jl = (e) => {
4956
4962
  const [t] = e.arguments;
4957
4963
  return `<span class="exists-expression"><span class="field-name">${t.value}</span>: *</span>`;
@@ -4969,27 +4975,27 @@ const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4969
4975
  exists: jl,
4970
4976
  nested: Il,
4971
4977
  geospatial: Bl
4972
- }, Hl = {
4978
+ }, Fl = {
4973
4979
  function: (e, t) => Ul[e.function](e, t),
4974
4980
  literal: (e) => e.value,
4975
4981
  wildcard: (e) => {
4976
4982
  const { value: t } = e;
4977
4983
  return `<span class="wild-card">${t.split(Tl).join("*")}</span>`;
4978
4984
  }
4979
- }, Ne = (e, t) => {
4980
- const s = Hl[e.type];
4985
+ }, De = (e, t) => {
4986
+ const s = Fl[e.type];
4981
4987
  return s(e, t);
4982
- }, Fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4988
+ }, Hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4983
4989
  __proto__: null,
4984
- DQLSyntaxError: Oi,
4990
+ DQLSyntaxError: Ci,
4985
4991
  doesKueryExpressionHaveLuceneSyntaxError: wa,
4986
- fromKueryExpression: br,
4987
- fromLiteralExpression: wt,
4992
+ fromKueryExpression: vr,
4993
+ fromLiteralExpression: xt,
4988
4994
  nodeTypes: _e,
4989
- parse: br,
4990
- toCql: Ge,
4995
+ parse: vr,
4996
+ toCql: Ze,
4991
4997
  toDSL: Q,
4992
- toHTML: Ne,
4998
+ toHTML: De,
4993
4999
  toMongo: Pe,
4994
5000
  toOpenSearchQuery: Q
4995
5001
  }, Symbol.toStringTag, { value: "Module" })), ql = oe`
@@ -5086,7 +5092,7 @@ var Wl = Object.defineProperty, Vl = Object.getOwnPropertyDescriptor, gs = (e, t
5086
5092
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
5087
5093
  return i && r && Wl(t, s, r), r;
5088
5094
  };
5089
- let xt = class extends ke {
5095
+ let kt = class extends ke {
5090
5096
  constructor() {
5091
5097
  super(), this.level = 0, this.addDisposableListener(this, "layer-add", () => {
5092
5098
  this.layers = this.querySelectorAll("spectric-panel");
@@ -5119,23 +5125,23 @@ let xt = class extends ke {
5119
5125
  return m` <slot></slot> `;
5120
5126
  }
5121
5127
  };
5122
- xt.styles = Ql;
5128
+ kt.styles = Ql;
5123
5129
  gs([
5124
5130
  f({ type: Number, reflect: !0 })
5125
- ], xt.prototype, "level", 2);
5131
+ ], kt.prototype, "level", 2);
5126
5132
  gs([
5127
5133
  f({ attribute: !1 })
5128
- ], xt.prototype, "layers", 2);
5129
- xt = gs([
5130
- j("spectric-panel")
5131
- ], xt);
5132
- var Yl = Object.defineProperty, Gl = Object.getOwnPropertyDescriptor, De = (e, t, s, i) => {
5134
+ ], kt.prototype, "layers", 2);
5135
+ kt = gs([
5136
+ I("spectric-panel")
5137
+ ], kt);
5138
+ var Yl = Object.defineProperty, Gl = Object.getOwnPropertyDescriptor, Me = (e, t, s, i) => {
5133
5139
  for (var r = i > 1 ? void 0 : i ? Gl(t, s) : t, a = e.length - 1, n; a >= 0; a--)
5134
5140
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
5135
5141
  return i && r && Yl(t, s, r), r;
5136
5142
  };
5137
5143
  const bs = "spectric-dialog";
5138
- let X = class extends B {
5144
+ let ee = class extends B {
5139
5145
  constructor() {
5140
5146
  super(...arguments), this.open = !1, this.dismissable = !0, this.hideBackdrop = !1, this.title = "", this.closeOnEscape = !0, this.closeOnOutsideClick = !0, this.clickHandler = async (e) => {
5141
5147
  const t = await this.dialogElement;
@@ -5159,7 +5165,7 @@ let X = class extends B {
5159
5165
  for (let r in e)
5160
5166
  s[r] = e[r];
5161
5167
  let i = document.createDocumentFragment();
5162
- return mr(t, i), s.appendChild(i), s.open = !0, document.body.appendChild(s), s;
5168
+ return $r(t, i), s.appendChild(i), s.open = !0, document.body.appendChild(s), s;
5163
5169
  }
5164
5170
  connectedCallback() {
5165
5171
  super.connectedCallback(), this.dialogElement.then(
@@ -5208,40 +5214,40 @@ let X = class extends B {
5208
5214
  `;
5209
5215
  }
5210
5216
  };
5211
- X.styles = ql;
5212
- De([
5217
+ ee.styles = ql;
5218
+ Me([
5213
5219
  f({ type: Boolean, reflect: !0 })
5214
- ], X.prototype, "open", 2);
5215
- De([
5220
+ ], ee.prototype, "open", 2);
5221
+ Me([
5216
5222
  f({ type: Boolean, reflect: !0 })
5217
- ], X.prototype, "dismissable", 2);
5218
- De([
5223
+ ], ee.prototype, "dismissable", 2);
5224
+ Me([
5219
5225
  f({ type: Boolean, reflect: !0 })
5220
- ], X.prototype, "hideBackdrop", 2);
5221
- De([
5226
+ ], ee.prototype, "hideBackdrop", 2);
5227
+ Me([
5222
5228
  f({ type: String, reflect: !0 })
5223
- ], X.prototype, "title", 2);
5224
- De([
5229
+ ], ee.prototype, "title", 2);
5230
+ Me([
5225
5231
  f({ type: Boolean, reflect: !0 })
5226
- ], X.prototype, "closeOnEscape", 2);
5227
- De([
5232
+ ], ee.prototype, "closeOnEscape", 2);
5233
+ Me([
5228
5234
  f({ type: Boolean, reflect: !0 })
5229
- ], X.prototype, "closeOnOutsideClick", 2);
5230
- De([
5231
- Kt("dialog")
5232
- ], X.prototype, "dialogElement", 2);
5233
- X = De([
5234
- j(bs)
5235
- ], X);
5235
+ ], ee.prototype, "closeOnOutsideClick", 2);
5236
+ Me([
5237
+ Xt("dialog")
5238
+ ], ee.prototype, "dialogElement", 2);
5239
+ ee = Me([
5240
+ I(bs)
5241
+ ], ee);
5236
5242
  const ti = async (e) => {
5237
- let t, s = yt();
5243
+ let t, s = mt();
5238
5244
  return await new Promise((i) => {
5239
- let r = X.display(
5245
+ let r = ee.display(
5240
5246
  {},
5241
5247
  m`
5242
5248
  <div class="query-bar-date-quick-select">
5243
5249
  ${e.map((a) => {
5244
- let n = Sr(a);
5250
+ let n = kr(a);
5245
5251
  return m`<a
5246
5252
  href="#"
5247
5253
  @click=${(h) => {
@@ -5260,7 +5266,7 @@ const ti = async (e) => {
5260
5266
  }}
5261
5267
  ></spectric-input>
5262
5268
  <spectric-button
5263
- ${mt(s)}
5269
+ ${$t(s)}
5264
5270
  .disabled=${!0}
5265
5271
  @click=${() => {
5266
5272
  i(t), r.open = !1;
@@ -5271,14 +5277,14 @@ const ti = async (e) => {
5271
5277
  );
5272
5278
  }), t;
5273
5279
  }, ri = async (e) => {
5274
- let t, s = yt();
5280
+ let t, s = mt();
5275
5281
  return await new Promise((i) => {
5276
- let r = X.display(
5282
+ let r = ee.display(
5277
5283
  {},
5278
5284
  m`
5279
5285
  <div class="query-bar-date-quick-select">
5280
5286
  ${e.map((a) => {
5281
- let n = Sr(a);
5287
+ let n = kr(a);
5282
5288
  return m`<a
5283
5289
  href="#"
5284
5290
  @click=${(h) => {
@@ -5290,7 +5296,7 @@ const ti = async (e) => {
5290
5296
  </div>
5291
5297
  <div>TODO DISPLAY MAP with drawing tools HERE!!</div>
5292
5298
  <spectric-button
5293
- ${mt(s)}
5299
+ ${$t(s)}
5294
5300
  .disabled=${!0}
5295
5301
  @click=${() => {
5296
5302
  i(t), r.open = !1;
@@ -5306,12 +5312,12 @@ const ti = async (e) => {
5306
5312
  * Copyright 2017 Google LLC
5307
5313
  * SPDX-License-Identifier: BSD-3-Clause
5308
5314
  */
5309
- class Kr extends Jt {
5315
+ class Kr extends Kt {
5310
5316
  constructor(t) {
5311
- if (super(t), this.it = L, t.type !== $r.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
5317
+ if (super(t), this.it = T, t.type !== _r.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
5312
5318
  }
5313
5319
  render(t) {
5314
- if (t === L || t == null) return this._t = void 0, this.it = t;
5320
+ if (t === T || t == null) return this._t = void 0, this.it = t;
5315
5321
  if (t === we) return t;
5316
5322
  if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
5317
5323
  if (t === this.it) return this._t;
@@ -5321,13 +5327,13 @@ class Kr extends Jt {
5321
5327
  }
5322
5328
  }
5323
5329
  Kr.directiveName = "unsafeHTML", Kr.resultType = 1;
5324
- const rc = kt(Kr);
5325
- var sc = Object.defineProperty, ic = Object.getOwnPropertyDescriptor, ee = (e, t, s, i) => {
5330
+ const rc = Ct(Kr);
5331
+ var sc = Object.defineProperty, ic = Object.getOwnPropertyDescriptor, te = (e, t, s, i) => {
5326
5332
  for (var r = i > 1 ? void 0 : i ? ic(t, s) : t, a = e.length - 1, n; a >= 0; a--)
5327
5333
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
5328
5334
  return i && r && sc(t, s, r), r;
5329
5335
  }, Mi = /* @__PURE__ */ ((e) => (e.MONGO = "toMongo", e.CQL = "toCql", e.DSL = "toDSL", e.AST = "AST", e))(Mi || {});
5330
- const Sr = (e) => typeof e == "string" ? { label: e, value: e } : { label: e.label || e.value, value: e.value }, zi = {
5336
+ const kr = (e) => typeof e == "string" ? { label: e, value: e } : { label: e.label || e.value, value: e.value }, zi = {
5331
5337
  eq: { value: " : ", label: " equals some value" },
5332
5338
  gt: { value: " > ", label: " is greater than some value" },
5333
5339
  lt: { value: " < ", label: " is less than some value" },
@@ -5352,15 +5358,16 @@ const Sr = (e) => typeof e == "string" ? { label: e, value: e } : { label: e.lab
5352
5358
  }
5353
5359
  ])
5354
5360
  );
5355
- let F = class extends B {
5361
+ let H = class extends B {
5356
5362
  constructor() {
5357
5363
  super(), this.placeholder = "", this._value = "", this.value = "", this.outputLanguage = "AST", this.completions = [], this.completionIndex = 0, this.fields = [], this._checkClickLocation = async (e) => {
5364
+ var s;
5358
5365
  console.log(e);
5359
5366
  let t = null;
5360
5367
  try {
5361
5368
  t = this._getSuggestion();
5362
- } catch (s) {
5363
- console.log(s);
5369
+ } catch (i) {
5370
+ console.log(i), (s = this._autocomplete) == null || s.hidePopover();
5364
5371
  }
5365
5372
  t && this._showValueHelper(t);
5366
5373
  }, this._setValue = (e, t) => {
@@ -5369,21 +5376,19 @@ let F = class extends B {
5369
5376
  t.start + e.length
5370
5377
  ), this._valueHelper && this._valueHelper.hidePopover());
5371
5378
  }, this._showValueHelper = async (e) => {
5372
- var r, a;
5379
+ var a, n;
5373
5380
  if (this.valueHelper = void 0, !e || e.start === e.end)
5374
5381
  return;
5375
- let t = this.fields.find(
5376
- (n) => n.name === e.fieldName
5377
- );
5378
- if (!t)
5382
+ let s = (this.fields || []).find((h) => h.name === e.fieldName);
5383
+ if (!s)
5379
5384
  return;
5380
- let s = await this.getValuesForField(
5385
+ let i = await this.getValuesForField(
5381
5386
  e.fieldName,
5382
5387
  e.prefix
5383
5388
  );
5384
- t.format === "date-time" && !s.length && (s = ["now-1m", "now-1d", "now-1M"]);
5385
- let i;
5386
- t.format == "date-time" ? i = ti : t.format == "geojson" && (i = ri), !this.completions.length && !((r = this._autocomplete) != null && r.isOpen()) && (this.valueHelper = m`<div>
5389
+ s.format === "date-time" && !i.length && (i = ["now-1m", "now-1d", "now-1M"]);
5390
+ let r;
5391
+ s.format == "date-time" ? r = ti : s.format == "geojson" && (r = ri), !this.completions.length && !((a = this._autocomplete) != null && a.isOpen()) && (this.valueHelper = m`<div>
5387
5392
  <spectric-button
5388
5393
  tooltip="Delete Value"
5389
5394
  tooltipPosition="top"
@@ -5394,27 +5399,28 @@ let F = class extends B {
5394
5399
  }}
5395
5400
  >${Jl}</spectric-button
5396
5401
  >
5397
- ${i ? m`<spectric-button
5402
+ ${r ? m`<spectric-button
5398
5403
  icon
5399
5404
  tooltip="Edit Value"
5400
5405
  tooltipPosition="top"
5401
5406
  size="xsmall"
5402
5407
  @click=${async () => {
5403
- this._setValue(await i(s), e);
5408
+ this._setValue(await r(i), e);
5404
5409
  }}
5405
5410
  >${Zl}</spectric-button
5406
5411
  >` : null}
5407
- </div>`, (a = this._valueHelper) == null || a.showPopover());
5412
+ </div>`, (n = this._valueHelper) == null || n.showPopover());
5408
5413
  }, this._getSuggestion = () => {
5409
5414
  let e = this.value;
5410
5415
  this._input.selectionStart !== null && (e = e.substring(0, this._input.selectionStart) + "©kuery-cursor©" + e.substring(this._input.selectionStart));
5411
- let t = br(e, {
5416
+ let t = vr(e, {
5412
5417
  parseCursor: !0,
5413
5418
  cursorSymbol: "©kuery-cursor©",
5414
5419
  allowLeadingWildcards: !1
5415
5420
  });
5416
5421
  return this._showValueHelper(t), t;
5417
5422
  }, this._parseQuery = (e = void 0) => {
5423
+ var r;
5418
5424
  let t;
5419
5425
  if (e && (e != null && e.currentTarget) && (this.value = e.currentTarget.value), this.value)
5420
5426
  try {
@@ -5422,20 +5428,20 @@ let F = class extends B {
5422
5428
  this.value.length - 2,
5423
5429
  this.value.length - 2
5424
5430
  ));
5425
- let r = this._getSuggestion();
5426
- this.autoComplete(r);
5431
+ let a = this._getSuggestion();
5432
+ this.autoComplete(a);
5427
5433
  } catch {
5428
- return;
5434
+ this.completions = [], (r = this._autocomplete) == null || r.hidePopover();
5429
5435
  }
5430
5436
  try {
5431
- t = br(this.value, { allowLeadingWildcards: !1 });
5437
+ t = vr(this.value, { allowLeadingWildcards: !1 });
5432
5438
  } catch {
5433
5439
  return;
5434
5440
  }
5435
5441
  let s;
5436
- this.outputLanguage == "AST" ? s = t : s = Fl[this.outputLanguage](t, this.fields);
5442
+ this.outputLanguage == "AST" ? s = t : s = Hl[this.outputLanguage || "toDSL"](t, this.fields);
5437
5443
  let i = new CustomEvent("change", { detail: s });
5438
- this.value.trim().length ? this.highlightedSyntax = rc(Ne(t, this.fields)) : this.highlightedSyntax = "", this.dispatchEvent(i);
5444
+ this.value.trim().length ? this.highlightedSyntax = rc(De(t, this.fields)) : this.highlightedSyntax = "", this.dispatchEvent(i);
5439
5445
  }, this.getValuesForField = async (e, t) => (console.log("getValuesForField isn't set no values returned", e, t), []), this._selectCompletion = async () => {
5440
5446
  var r;
5441
5447
  if (!this.suggestion)
@@ -5470,86 +5476,88 @@ let F = class extends B {
5470
5476
  this.suggestion = e;
5471
5477
  let { start: s, end: i } = e;
5472
5478
  for (let n of e.suggestionTypes) {
5473
- if (n == "conjunction" && e.text.endsWith(" ") && t.push(
5474
- ...["and ", "or "].map((h) => ({
5479
+ n == "conjunction" && e.text.endsWith(" ") && t.push(
5480
+ ...["and ", "or "].map((u) => ({
5475
5481
  type: n,
5476
- value: h,
5482
+ value: u,
5477
5483
  start: i,
5478
5484
  end: i
5479
5485
  }))
5480
- ), n === "field") {
5481
- let h = this.fields.filter(
5482
- (u) => u.name.includes(e.fieldName) || u.name.includes(e.prefix)
5483
- ).map((u) => [{ type: n, value: u.name, start: s, end: i }]).flat();
5484
- t.push(...h);
5486
+ );
5487
+ let h = this.fields || [];
5488
+ if (n === "field") {
5489
+ let u = h.filter(
5490
+ (g) => g.name.includes(e.fieldName) || g.name.includes(e.prefix)
5491
+ ).map((g) => [{ type: n, value: g.name, start: s, end: i }]).flat();
5492
+ t.push(...u);
5485
5493
  }
5486
5494
  if (n === "operator") {
5487
- let h = this.fields.find(
5488
- (u) => u.name === e.fieldName
5495
+ let u = h.find(
5496
+ (g) => g.name === e.fieldName
5489
5497
  );
5490
- h && (["number", "integer"].includes(h.type) ? t.push(
5491
- ...Object.values(zi).map((u) => ({
5498
+ u && (["number", "integer"].includes(u.type) ? t.push(
5499
+ ...Object.values(zi).map((g) => ({
5492
5500
  type: n,
5493
- ...u,
5501
+ ...g,
5494
5502
  start: i,
5495
5503
  end: i
5496
5504
  }))
5497
- ) : h.type === "object" ? (h.format == "geojson" && t.push(
5498
- ...Object.values(vs).map((u) => ({
5505
+ ) : u.type === "object" ? (u.format == "geojson" && t.push(
5506
+ ...Object.values(vs).map((g) => ({
5499
5507
  type: n,
5500
- ...u,
5508
+ ...g,
5501
5509
  start: i,
5502
5510
  end: i,
5503
5511
  onSelect: async () => {
5504
- let g = await this.getValuesForField(
5512
+ let $ = await this.getValuesForField(
5505
5513
  e.fieldName,
5506
5514
  e.prefix
5507
5515
  );
5508
- return await ri(g);
5516
+ return await ri($);
5509
5517
  }
5510
5518
  }))
5511
5519
  ), t.push(
5512
- ...Object.values(oc).map((u) => ({
5520
+ ...Object.values(oc).map((g) => ({
5513
5521
  type: n,
5514
- ...u,
5522
+ ...g,
5515
5523
  start: i,
5516
5524
  end: i
5517
5525
  }))
5518
- )) : h.type === "string" ? h.format === "date-time" ? t.push(
5519
- ...Object.values(lc).map((u) => ({
5526
+ )) : u.type === "string" ? u.format === "date-time" ? t.push(
5527
+ ...Object.values(lc).map((g) => ({
5520
5528
  type: n,
5521
- ...u,
5529
+ ...g,
5522
5530
  start: i,
5523
5531
  end: i,
5524
5532
  onSelect: async () => {
5525
- let g = await this.getValuesForField(
5533
+ let $ = await this.getValuesForField(
5526
5534
  e.fieldName,
5527
5535
  e.prefix
5528
5536
  );
5529
- return g.length === 0 && (g = ["now-1m", "now-1d", "now-1M"]), await ti(g);
5537
+ return $.length === 0 && ($ = ["now-1m", "now-1d", "now-1M"]), await ti($);
5530
5538
  }
5531
5539
  }))
5532
5540
  ) : t.push(
5533
- ...Object.values(nc).map((u) => ({
5541
+ ...Object.values(nc).map((g) => ({
5534
5542
  type: n,
5535
- ...u,
5543
+ ...g,
5536
5544
  start: i,
5537
5545
  end: i
5538
5546
  }))
5539
- ) : h.type === "boolean" && t.push(
5540
- ...ac.map((u) => ({
5547
+ ) : u.type === "boolean" && t.push(
5548
+ ...ac.map((g) => ({
5541
5549
  type: n,
5542
- ...u,
5550
+ ...g,
5543
5551
  start: i,
5544
5552
  end: i
5545
5553
  }))
5546
5554
  ));
5547
5555
  }
5548
5556
  if (n === "value") {
5549
- let h = this.fields.find(
5550
- (u) => u.name === e.fieldName
5557
+ let u = (this.fields || []).find(
5558
+ (g) => g.name === e.fieldName
5551
5559
  );
5552
- if (!(h && h.type == "number" || (h == null ? void 0 : h.type) == "integer")) if (h && h.type == "boolean")
5560
+ if (!(u && u.type == "number" || (u == null ? void 0 : u.type) == "integer")) if (u && u.type == "boolean")
5553
5561
  t.push(
5554
5562
  { type: n, value: "true", start: s, end: i },
5555
5563
  { type: n, value: "false", start: s, end: i }
@@ -5558,12 +5566,12 @@ let F = class extends B {
5558
5566
  console.log(
5559
5567
  `invoke callback to get values for ${e.fieldName}`
5560
5568
  );
5561
- let u = await this.getValuesForField(
5569
+ let g = await this.getValuesForField(
5562
5570
  e.fieldName,
5563
5571
  e.prefix
5564
5572
  );
5565
- (h == null ? void 0 : h.type) === "string" && (u = u.map((g) => `"${g}"`)), t.push(
5566
- ...u.map(Sr).map((g) => ({ type: n, value: g.value, start: s, end: i }))
5573
+ (u == null ? void 0 : u.type) === "string" && (g = g.map(($) => `"${$}"`)), t.push(
5574
+ ...g.map(kr).map(($) => ({ type: n, value: $.value, start: s, end: i }))
5567
5575
  );
5568
5576
  }
5569
5577
  }
@@ -5577,8 +5585,8 @@ let F = class extends B {
5577
5585
  } else
5578
5586
  (a = this._autocomplete) == null || a.hidePopover();
5579
5587
  }
5580
- updated(e) {
5581
- e.has("outputLanguage") && this._parseQuery();
5588
+ update(e) {
5589
+ e.has("outputLanguage") && this._parseQuery(), e.has("value") && this._parseQuery(), super.update(e);
5582
5590
  }
5583
5591
  render() {
5584
5592
  return m`
@@ -5588,10 +5596,15 @@ let F = class extends B {
5588
5596
  .placeholder=${this.placeholder}
5589
5597
  style=${`anchor-name:--${this.uuid};`}
5590
5598
  autocomplete="off"
5599
+ .spellcheck=${!1}
5591
5600
  @input=${this._parseQuery}
5592
5601
  @keydown=${this._handleArrows}
5593
5602
  @change=${(e) => e.stopPropagation()}
5594
5603
  @click=${this._checkClickLocation}
5604
+ @blur=${() => {
5605
+ var e;
5606
+ (e = this._autocomplete) == null || e.hidePopover();
5607
+ }}
5595
5608
  ></spectric-input>
5596
5609
  <spectric-popover
5597
5610
  class="valueHelper"
@@ -5618,45 +5631,45 @@ let F = class extends B {
5618
5631
  `;
5619
5632
  }
5620
5633
  };
5621
- ee([
5634
+ te([
5622
5635
  f({ type: String, reflect: !0 })
5623
- ], F.prototype, "placeholder", 2);
5624
- ee([
5625
- Y()
5626
- ], F.prototype, "valueHelper", 2);
5627
- ee([
5628
- Y()
5629
- ], F.prototype, "highlightedSyntax", 2);
5630
- ee([
5636
+ ], H.prototype, "placeholder", 2);
5637
+ te([
5638
+ G()
5639
+ ], H.prototype, "valueHelper", 2);
5640
+ te([
5641
+ G()
5642
+ ], H.prototype, "highlightedSyntax", 2);
5643
+ te([
5631
5644
  f({ type: String, reflect: !0 })
5632
- ], F.prototype, "value", 2);
5633
- ee([
5645
+ ], H.prototype, "value", 2);
5646
+ te([
5634
5647
  f({ type: String, reflect: !0 })
5635
- ], F.prototype, "outputLanguage", 2);
5636
- ee([
5637
- Y()
5638
- ], F.prototype, "completions", 2);
5639
- ee([
5640
- Y()
5641
- ], F.prototype, "completionIndex", 2);
5642
- ee([
5648
+ ], H.prototype, "outputLanguage", 2);
5649
+ te([
5650
+ G()
5651
+ ], H.prototype, "completions", 2);
5652
+ te([
5653
+ G()
5654
+ ], H.prototype, "completionIndex", 2);
5655
+ te([
5643
5656
  f({ type: Array, reflect: !0 })
5644
- ], F.prototype, "fields", 2);
5645
- ee([
5657
+ ], H.prototype, "fields", 2);
5658
+ te([
5646
5659
  Se(".autocomplete")
5647
- ], F.prototype, "_autocomplete", 2);
5648
- ee([
5660
+ ], H.prototype, "_autocomplete", 2);
5661
+ te([
5649
5662
  Se(".valueHelper")
5650
- ], F.prototype, "_valueHelper", 2);
5651
- ee([
5652
- Kt(".autocomplete")
5653
- ], F.prototype, "_asyncAutocomplete", 2);
5654
- ee([
5663
+ ], H.prototype, "_valueHelper", 2);
5664
+ te([
5665
+ Xt(".autocomplete")
5666
+ ], H.prototype, "_asyncAutocomplete", 2);
5667
+ te([
5655
5668
  Se("spectric-input")
5656
- ], F.prototype, "_input", 2);
5657
- F = ee([
5658
- j("spectric-query")
5659
- ], F);
5669
+ ], H.prototype, "_input", 2);
5670
+ H = te([
5671
+ I("spectric-query")
5672
+ ], H);
5660
5673
  var cc = Object.defineProperty, pc = Object.getOwnPropertyDescriptor, Ri = (e, t, s, i) => {
5661
5674
  for (var r = i > 1 ? void 0 : i ? pc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
5662
5675
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
@@ -5774,7 +5787,7 @@ const uc = {
5774
5787
  --spectric-button-disabled: #c6c6c6;
5775
5788
  color: var(--spectric-text-primary);
5776
5789
  `;
5777
- let Yt = class extends B {
5790
+ let Gt = class extends B {
5778
5791
  constructor() {
5779
5792
  super(...arguments), this.theme = "undefined";
5780
5793
  }
@@ -5870,15 +5883,15 @@ let Yt = class extends B {
5870
5883
  `;
5871
5884
  }
5872
5885
  };
5873
- Yt.styles = oe`:host{
5886
+ Gt.styles = oe`:host{
5874
5887
  display:contents;
5875
5888
  }`;
5876
5889
  Ri([
5877
5890
  f({ reflect: !0 })
5878
- ], Yt.prototype, "theme", 2);
5879
- Yt = Ri([
5880
- j("spectric-theme")
5881
- ], Yt);
5891
+ ], Gt.prototype, "theme", 2);
5892
+ Gt = Ri([
5893
+ I("spectric-theme")
5894
+ ], Gt);
5882
5895
  const gc = oe`
5883
5896
  :host {
5884
5897
  display: block;
@@ -5954,7 +5967,7 @@ let q = class extends ke {
5954
5967
  super(), this.orientation = "horizontal", this.percentage = 50, this.invisible = !1, this.min = 10, this.max = 90, this.useSavedState = !0, this.isDragging = !1, this._error = !1, this._emitChange = () => {
5955
5968
  let { percentage: t, orientation: s, invisible: i, min: r, max: a, useSavedState: n } = this, h = this.getAttribute("id");
5956
5969
  h && this.useSavedState && localStorage.setItem(`splitview-${h}`, String(t)), this.dispatchEvent(new CustomEvent("change", { detail: { orientation: s, percentage: t, invisible: i, min: r, max: a, useSavedState: n } }));
5957
- }, this._onMouseMove = _r((t) => {
5970
+ }, this._onMouseMove = wr((t) => {
5958
5971
  if (this.isDragging) {
5959
5972
  const s = this.getBoundingClientRect();
5960
5973
  let i, r;
@@ -6030,13 +6043,13 @@ ne([
6030
6043
  f({ type: Boolean, reflect: !0 })
6031
6044
  ], q.prototype, "useSavedState", 2);
6032
6045
  ne([
6033
- Y()
6046
+ G()
6034
6047
  ], q.prototype, "isDragging", 2);
6035
6048
  ne([
6036
- Y()
6049
+ G()
6037
6050
  ], q.prototype, "_error", 2);
6038
6051
  ne([
6039
- Kt(".splitter")
6052
+ Xt(".splitter")
6040
6053
  ], q.prototype, "_splitter", 2);
6041
6054
  ne([
6042
6055
  Se("slot[name='panel1']")
@@ -6045,7 +6058,7 @@ ne([
6045
6058
  Se("slot[name='panel2']")
6046
6059
  ], q.prototype, "_panel2", 2);
6047
6060
  q = ne([
6048
- j(Bi)
6061
+ I(Bi)
6049
6062
  ], q);
6050
6063
  var yc = Object.defineProperty, mc = Object.getOwnPropertyDescriptor, Xe = (e, t, s, i) => {
6051
6064
  for (var r = i > 1 ? void 0 : i ? mc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
@@ -6156,7 +6169,7 @@ Xe([
6156
6169
  f({ type: String, reflect: !0 })
6157
6170
  ], xe.prototype, "size", 2);
6158
6171
  xe = Xe([
6159
- j(Ui)
6172
+ I(Ui)
6160
6173
  ], xe);
6161
6174
  const $c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6162
6175
  __proto__: null,
@@ -6164,16 +6177,16 @@ const $c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6164
6177
  DisposableElement: ke,
6165
6178
  getListeners: Qn
6166
6179
  }, Symbol.toStringTag, { value: "Module" }));
6167
- var _c = Object.defineProperty, wc = Object.getOwnPropertyDescriptor, kr = (e, t, s, i) => {
6180
+ var _c = Object.defineProperty, wc = Object.getOwnPropertyDescriptor, Ar = (e, t, s, i) => {
6168
6181
  for (var r = i > 1 ? void 0 : i ? wc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
6169
6182
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
6170
6183
  return i && r && _c(t, s, r), r;
6171
6184
  };
6172
6185
  const xc = "spectric-table-header";
6173
- let Gt = class extends ke {
6186
+ let Zt = class extends ke {
6174
6187
  constructor() {
6175
6188
  super(), this.columns = [], this._handleSortChange = (e) => {
6176
- this._resizeStart || (e = JSON.parse(JSON.stringify(e)), e.sortable && (e.sortDirection === Z.none || e.sortDirection === void 0 ? e.sortDirection = Z.ascending : e.sortDirection === Z.ascending ? e.sortDirection = Z.descending : e.sortDirection === Z.descending && (e.sortDirection = Z.none), this.dispatchEvent(
6189
+ this._resizeStart || (e = JSON.parse(JSON.stringify(e)), e.sortable && (e.sortDirection === J.none || e.sortDirection === void 0 ? e.sortDirection = J.ascending : e.sortDirection === J.ascending ? e.sortDirection = J.descending : e.sortDirection === J.descending && (e.sortDirection = J.none), this.dispatchEvent(
6177
6190
  new CustomEvent("sortChange", {
6178
6191
  composed: !0,
6179
6192
  bubbles: !0,
@@ -6191,7 +6204,7 @@ let Gt = class extends ke {
6191
6204
  this._resizeStart.column.width = this._resizeStart.column.width + t;
6192
6205
  else {
6193
6206
  let i = this._resizeStart.event.target.closest(
6194
- "td"
6207
+ "th"
6195
6208
  );
6196
6209
  this._resizeStart.column.width = i.getBoundingClientRect().width + t;
6197
6210
  }
@@ -6222,14 +6235,14 @@ let Gt = class extends ke {
6222
6235
  renderCell(e) {
6223
6236
  let t = ["header-contents"];
6224
6237
  e.filterable, e.sortable && t.push("sortable"), this._resizeStart && t.push("resizing");
6225
- let s = e.width ? `min-width:${e.width}px;max-width:${e.width}px;` : "", i = e.sortDirection === Z.ascending ? ec : e.sortDirection == Z.descending ? tc : "", r = e.sortDirection || Z.none, n = e.allowResize || e.allowResize === void 0 ? m`<div
6238
+ let s = e.width ? `min-width:${e.width}px;max-width:${e.width}px;` : "", i = e.sortDirection === J.ascending ? ec : e.sortDirection == J.descending ? tc : "", r = e.sortDirection || J.none, n = e.allowResize || e.allowResize === void 0 ? m`<div
6226
6239
  class="header-resize-handle"
6227
6240
  @mousedown=${(u) => {
6228
6241
  this._handleResizeStart(u, e);
6229
6242
  }}
6230
6243
  @mouseup=${this._handleResizeEnd}
6231
6244
  ></div>` : null, h = e.title || e.key;
6232
- return typeof h == "function" && (h = h(this.table) || void 0), m` <td
6245
+ return typeof h == "function" && (h = h(this.table) || void 0), m` <th
6233
6246
  @click=${() => this._handleSortChange(e)}
6234
6247
  style="${s}"
6235
6248
  >
@@ -6238,27 +6251,27 @@ let Gt = class extends ke {
6238
6251
  ${h}
6239
6252
  <span class="sort-direction ${r}">${i}</span>
6240
6253
  </div>
6241
- </td>`;
6254
+ </th>`;
6242
6255
  }
6243
6256
  };
6244
- kr([
6257
+ Ar([
6245
6258
  f({ type: Array, attribute: !1 })
6246
- ], Gt.prototype, "columns", 2);
6247
- kr([
6248
- Y()
6249
- ], Gt.prototype, "_resizeStart", 2);
6250
- kr([
6259
+ ], Zt.prototype, "columns", 2);
6260
+ Ar([
6261
+ G()
6262
+ ], Zt.prototype, "_resizeStart", 2);
6263
+ Ar([
6251
6264
  f({ type: Object, attribute: !1 })
6252
- ], Gt.prototype, "table", 2);
6253
- Gt = kr([
6254
- j(xc)
6255
- ], Gt);
6265
+ ], Zt.prototype, "table", 2);
6266
+ Zt = Ar([
6267
+ I(xc)
6268
+ ], Zt);
6256
6269
  /**
6257
6270
  * @license
6258
6271
  * Copyright 2017 Google LLC
6259
6272
  * SPDX-License-Identifier: BSD-3-Clause
6260
6273
  */
6261
- const ii = (e) => Zn(e) ? e._$litType$.h : e.strings, Sc = kt(class extends Jt {
6274
+ const ii = (e) => Zn(e) ? e._$litType$.h : e.strings, Sc = Ct(class extends Kt {
6262
6275
  constructor(e) {
6263
6276
  super(e), this.et = /* @__PURE__ */ new WeakMap();
6264
6277
  }
@@ -6268,20 +6281,20 @@ const ii = (e) => Zn(e) ? e._$litType$.h : e.strings, Sc = kt(class extends Jt {
6268
6281
  update(e, [t]) {
6269
6282
  const s = Js(this.it) ? ii(this.it) : null, i = Js(t) ? ii(t) : null;
6270
6283
  if (s !== null && (i === null || s !== i)) {
6271
- const r = Vr(e).pop();
6284
+ const r = Yr(e).pop();
6272
6285
  let a = this.et.get(s);
6273
6286
  if (a === void 0) {
6274
6287
  const n = document.createDocumentFragment();
6275
- a = mr(L, n), a.setConnected(!1), this.et.set(s, a);
6288
+ a = $r(T, n), a.setConnected(!1), this.et.set(s, a);
6276
6289
  }
6277
- Wr(a, [r]), He(a, void 0, r);
6290
+ Vr(a, [r]), He(a, void 0, r);
6278
6291
  }
6279
6292
  if (i !== null) {
6280
6293
  if (s === null || s !== i) {
6281
6294
  const r = this.et.get(i);
6282
6295
  if (r !== void 0) {
6283
- const a = Vr(r).pop();
6284
- Xn(e), He(e, void 0, a), Wr(e, [a]);
6296
+ const a = Yr(r).pop();
6297
+ Xn(e), He(e, void 0, a), Vr(e, [a]);
6285
6298
  }
6286
6299
  }
6287
6300
  this.it = t;
@@ -6294,12 +6307,12 @@ var kc = Object.defineProperty, Ac = Object.getOwnPropertyDescriptor, et = (e, t
6294
6307
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
6295
6308
  return i && r && kc(t, s, r), r;
6296
6309
  };
6297
- const Oc = "spectric-table-cell";
6310
+ const Cc = "spectric-table-cell";
6298
6311
  let Te = class extends B {
6299
6312
  constructor() {
6300
6313
  super(...arguments), this.overflow = "", this.styleRules = { whiteSpace: "", width: "" }, this._handleFilterOut = () => {
6301
6314
  let e;
6302
- this.column.key && typeof this.row == "object" && (e = _t(this.row, this.column.key)), this._emitFilter({
6315
+ this.column.key && typeof this.row == "object" && (e = wt(this.row, this.column.key)), this._emitFilter({
6303
6316
  include: !1,
6304
6317
  row: this.row,
6305
6318
  value: e,
@@ -6307,7 +6320,7 @@ let Te = class extends B {
6307
6320
  });
6308
6321
  }, this._handleFilterFor = () => {
6309
6322
  let e;
6310
- this.column.key && typeof this.row == "object" && (e = _t(this.row, this.column.key)), this._emitFilter({
6323
+ this.column.key && typeof this.row == "object" && (e = wt(this.row, this.column.key)), this._emitFilter({
6311
6324
  include: !0,
6312
6325
  row: this.row,
6313
6326
  value: e,
@@ -6346,7 +6359,7 @@ let Te = class extends B {
6346
6359
  }
6347
6360
  getRenderedValue() {
6348
6361
  let e;
6349
- return this.column.render ? e = this.column.render(this.row, this.index, this.table) : this.column.key && typeof this.row == "object" ? e = _t(this.row, this.column.key) : e = m`error`, e;
6362
+ return this.column.render ? e = this.column.render(this.row, this.index, this.table) : this.column.key && typeof this.row == "object" ? e = wt(this.row, this.column.key) : e = m`error`, e;
6350
6363
  }
6351
6364
  render() {
6352
6365
  var a;
@@ -6411,17 +6424,17 @@ et([
6411
6424
  f({ type: Object, attribute: !1 })
6412
6425
  ], Te.prototype, "table", 2);
6413
6426
  et([
6414
- Y()
6427
+ G()
6415
6428
  ], Te.prototype, "overflow", 2);
6416
6429
  et([
6417
6430
  Se("td")
6418
6431
  ], Te.prototype, "td", 2);
6419
6432
  Te = et([
6420
- j(Oc)
6433
+ I(Cc)
6421
6434
  ], Te);
6422
- const _t = (e, t) => {
6435
+ const wt = (e, t) => {
6423
6436
  let s = t.split("."), i = e[s[0]];
6424
- return i == null || s.length > 1 && (i = _t(i, s.slice(1).join("."))), i;
6437
+ return i == null || s.length > 1 && (i = wt(i, s.slice(1).join("."))), i;
6425
6438
  };
6426
6439
  /**
6427
6440
  * @license
@@ -6432,9 +6445,9 @@ const oi = (e, t, s) => {
6432
6445
  const i = /* @__PURE__ */ new Map();
6433
6446
  for (let r = t; r <= s; r++) i.set(e[r], r);
6434
6447
  return i;
6435
- }, vr = kt(class extends Jt {
6448
+ }, yr = Ct(class extends Kt {
6436
6449
  constructor(e) {
6437
- if (super(e), e.type !== $r.CHILD) throw Error("repeat() can only be used in text expressions");
6450
+ if (super(e), e.type !== _r.CHILD) throw Error("repeat() can only be used in text expressions");
6438
6451
  }
6439
6452
  dt(e, t, s) {
6440
6453
  let i;
@@ -6448,43 +6461,43 @@ const oi = (e, t, s) => {
6448
6461
  return this.dt(e, t, s).values;
6449
6462
  }
6450
6463
  update(e, [t, s, i]) {
6451
- const r = Vr(e), { values: a, keys: n } = this.dt(t, s, i);
6464
+ const r = Yr(e), { values: a, keys: n } = this.dt(t, s, i);
6452
6465
  if (!Array.isArray(r)) return this.ut = n, a;
6453
6466
  const h = this.ut ?? (this.ut = []), u = [];
6454
- let g, S, v = 0, O = r.length - 1, $ = 0, _ = a.length - 1;
6455
- for (; v <= O && $ <= _; ) if (r[v] === null) v++;
6456
- else if (r[O] === null) O--;
6457
- else if (h[v] === n[$]) u[$] = Ue(r[v], a[$]), v++, $++;
6458
- else if (h[O] === n[_]) u[_] = Ue(r[O], a[_]), O--, _--;
6459
- else if (h[v] === n[_]) u[_] = Ue(r[v], a[_]), He(e, u[_ + 1], r[v]), v++, _--;
6460
- else if (h[O] === n[$]) u[$] = Ue(r[O], a[$]), He(e, r[v], r[O]), O--, $++;
6461
- else if (g === void 0 && (g = oi(n, $, _), S = oi(h, v, O)), g.has(h[v])) if (g.has(h[O])) {
6462
- const A = S.get(n[$]), T = A !== void 0 ? r[A] : null;
6463
- if (T === null) {
6464
- const N = He(e, r[v]);
6465
- Ue(N, a[$]), u[$] = N;
6466
- } else u[$] = Ue(T, a[$]), He(e, r[v], T), r[A] = null;
6467
- $++;
6468
- } else Fr(r[O]), O--;
6469
- else Fr(r[v]), v++;
6470
- for (; $ <= _; ) {
6471
- const A = He(e, u[_ + 1]);
6472
- Ue(A, a[$]), u[$++] = A;
6467
+ let g, $, v = 0, A = r.length - 1, _ = 0, w = a.length - 1;
6468
+ for (; v <= A && _ <= w; ) if (r[v] === null) v++;
6469
+ else if (r[A] === null) A--;
6470
+ else if (h[v] === n[_]) u[_] = Fe(r[v], a[_]), v++, _++;
6471
+ else if (h[A] === n[w]) u[w] = Fe(r[A], a[w]), A--, w--;
6472
+ else if (h[v] === n[w]) u[w] = Fe(r[v], a[w]), He(e, u[w + 1], r[v]), v++, w--;
6473
+ else if (h[A] === n[_]) u[_] = Fe(r[A], a[_]), He(e, r[v], r[A]), A--, _++;
6474
+ else if (g === void 0 && (g = oi(n, _, w), $ = oi(h, v, A)), g.has(h[v])) if (g.has(h[A])) {
6475
+ const C = $.get(n[_]), M = C !== void 0 ? r[C] : null;
6476
+ if (M === null) {
6477
+ const L = He(e, r[v]);
6478
+ Fe(L, a[_]), u[_] = L;
6479
+ } else u[_] = Fe(M, a[_]), He(e, r[v], M), r[C] = null;
6480
+ _++;
6481
+ } else qr(r[A]), A--;
6482
+ else qr(r[v]), v++;
6483
+ for (; _ <= w; ) {
6484
+ const C = He(e, u[w + 1]);
6485
+ Fe(C, a[_]), u[_++] = C;
6473
6486
  }
6474
- for (; v <= O; ) {
6475
- const A = r[v++];
6476
- A !== null && Fr(A);
6487
+ for (; v <= A; ) {
6488
+ const C = r[v++];
6489
+ C !== null && qr(C);
6477
6490
  }
6478
- return this.ut = n, Wr(e, u), we;
6491
+ return this.ut = n, Vr(e, u), we;
6479
6492
  }
6480
6493
  });
6481
- var Cc = Object.defineProperty, Ec = Object.getOwnPropertyDescriptor, ys = (e, t, s, i) => {
6494
+ var Oc = Object.defineProperty, Ec = Object.getOwnPropertyDescriptor, ys = (e, t, s, i) => {
6482
6495
  for (var r = i > 1 ? void 0 : i ? Ec(t, s) : t, a = e.length - 1, n; a >= 0; a--)
6483
6496
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
6484
- return i && r && Cc(t, s, r), r;
6497
+ return i && r && Oc(t, s, r), r;
6485
6498
  };
6486
6499
  const Pc = "spectric-table-body";
6487
- let yr = class extends B {
6500
+ let mr = class extends B {
6488
6501
  constructor() {
6489
6502
  super(...arguments), this.data = [], this.columns = [];
6490
6503
  }
@@ -6497,9 +6510,9 @@ let yr = class extends B {
6497
6510
  render() {
6498
6511
  return m`
6499
6512
  <body>
6500
- ${vr(this.data, (e, t) => m`
6513
+ ${yr(this.data, (e, t) => m`
6501
6514
  <tr class="${t % 2 === 0 ? "odd" : ""}">
6502
- ${vr(this.columns, (s) => m`<spectric-table-cell .column=${s} .index=${t} .row=${e} .columns=${this.columns}></spectric-table-cell>`)}
6515
+ ${yr(this.columns, (s) => m`<spectric-table-cell .column=${s} .index=${t} .row=${e} .columns=${this.columns}></spectric-table-cell>`)}
6503
6516
  </tr>`)}
6504
6517
 
6505
6518
  </body>
@@ -6508,22 +6521,22 @@ let yr = class extends B {
6508
6521
  };
6509
6522
  ys([
6510
6523
  f({ type: Array, attribute: !1 })
6511
- ], yr.prototype, "data", 2);
6524
+ ], mr.prototype, "data", 2);
6512
6525
  ys([
6513
6526
  f({ type: Array, attribute: !1 })
6514
- ], yr.prototype, "columns", 2);
6515
- yr = ys([
6516
- j(Pc)
6517
- ], yr);
6518
- var Tc = Object.defineProperty, Lc = Object.getOwnPropertyDescriptor, Ot = (e, t, s, i) => {
6527
+ ], mr.prototype, "columns", 2);
6528
+ mr = ys([
6529
+ I(Pc)
6530
+ ], mr);
6531
+ var Tc = Object.defineProperty, Lc = Object.getOwnPropertyDescriptor, tt = (e, t, s, i) => {
6519
6532
  for (var r = i > 1 ? void 0 : i ? Lc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
6520
6533
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
6521
6534
  return i && r && Tc(t, s, r), r;
6522
6535
  };
6523
6536
  const Nc = "spectric-table-virtual-body";
6524
- let Ze = class extends ke {
6537
+ let Le = class extends ke {
6525
6538
  constructor() {
6526
- super(), this.data = [], this.columns = [], this.rowHeight = 30, this.startIndex = 0, this.columnsMeasured = !1;
6539
+ super(), this.data = [], this.columns = [], this.rowHeight = 30, this.startIndex = 0, this.columnsMeasured = !1, this.buffer = 100;
6527
6540
  let e = 0;
6528
6541
  this.addDisposableListener(
6529
6542
  () => this.table.querySelector(".table-wrapper"),
@@ -6534,89 +6547,82 @@ let Ze = class extends ke {
6534
6547
  }
6535
6548
  );
6536
6549
  }
6537
- updated() {
6550
+ update(e) {
6538
6551
  if (this.columnsMeasured === !1) {
6539
- let e = this.querySelector("tr"), t = e == null ? void 0 : e.querySelectorAll("spectric-table-cell td");
6540
- e && t && t.length && (this.columns.forEach((s, i) => {
6541
- if (!s.width || s.width === 0) {
6542
- let r = t[i].getBoundingClientRect();
6543
- r.width > 0 && (this.columnsMeasured = !0, s.width = r.width - qt);
6552
+ let t = this.querySelector("tr"), s = t == null ? void 0 : t.querySelectorAll("spectric-table-cell td");
6553
+ t && s && s.length && (this.columns.forEach((i, r) => {
6554
+ if (!i.width || i.width === 0) {
6555
+ let a = s[r].getBoundingClientRect();
6556
+ a.width > 0 && (this.columnsMeasured = !0, i.width = a.width - Qt);
6544
6557
  }
6545
6558
  }), this.columnsMeasured && (this.columns = [...this.columns]));
6546
6559
  }
6560
+ super.update(e);
6547
6561
  }
6548
6562
  createRenderRoot() {
6549
6563
  return this;
6550
6564
  }
6551
6565
  render() {
6552
- let e = this.data.length, t = 10, s = this.table.querySelector(
6553
- "spectric-table-header"
6554
- ).clientHeight, i = this.table.querySelector(".table-wrapper"), r = Math.max(this.startIndex, 0);
6555
- const a = Math.ceil(
6556
- (i.clientHeight - s) / this.rowHeight
6557
- ), n = Math.min(r + a + t, e), h = n - r;
6558
- let u = e * this.rowHeight, g = r * this.rowHeight + (i.scrollTop - r * this.rowHeight);
6559
- n === e && (g = r * this.rowHeight);
6560
- let S = h * this.rowHeight, v = u - g - S, O = r != 0 ? m` <tr
6561
- style="height:${g}px"
6562
- class="virtual-scroll-spacer"
6563
- >
6564
- <td colspan="${this.columns.length}"></td>
6565
- </tr>` : null, $ = m` <tr
6566
- style="height:${v}px"
6566
+ let e = this.data.length, t = this.buffer / 2, s = this.table.querySelector(".table-wrapper");
6567
+ const i = s.scrollTop, r = Math.max(0, Math.floor(i / this.rowHeight) - t), a = Math.min(
6568
+ e,
6569
+ Math.ceil((i + s.clientHeight) / this.rowHeight) + t
6570
+ );
6571
+ let n = e * this.rowHeight, h = r * this.rowHeight, u = (e - a) * this.rowHeight, g = m` <tr
6572
+ style="height:${h}px"
6567
6573
  class="virtual-scroll-spacer"
6568
- >
6569
- <td colspan="${this.columns.length}"></td>
6570
- </tr>`;
6574
+ ></tr>`, $ = m` <tr
6575
+ style="height:${u}px"
6576
+ class="virtual-scroll-spacer"
6577
+ ></tr>`;
6571
6578
  return m`
6572
6579
  <div
6573
- style="height:${u}px;position: absolute;overflow-x: hidden;overflow-y: hidden;z-index:-1;width:1px;"
6580
+ style="height:${n}px;position: absolute;overflow-x: hidden;overflow-y: hidden;z-index:-1;width:1px;"
6574
6581
  ></div>
6575
6582
  <tbody>
6576
- ${O}
6583
+ ${g}
6577
6584
  </tbody>
6578
- <div
6579
- style="display:table-row-group;max-height:${S}px; overflow:hidden;"
6580
- >
6581
- ${vr(
6582
- this.data.slice(Math.max(r, 0), n),
6583
- (_, A) => m` <tr
6584
- class="${(A + r) % 2 === 0 ? "odd" : ""}"
6585
- >
6586
- ${vr(this.columns, (T) => m`<spectric-table-cell
6587
- .column=${T}
6588
- .row=${_}
6589
- .index=${A + r}
6590
- .columns=${this.columns}
6591
- .table=${this.table}
6592
- ></spectric-table-cell>`)}
6593
- </tr>`
6585
+ <div style="display:table-row-group;overflow:hidden;">
6586
+ ${yr(
6587
+ this.data.slice(Math.max(r, 0), a),
6588
+ (v, A) => m` <tr class="${this.table.getRowClass(v, A + r)}">
6589
+ ${yr(this.columns, (_) => m`<spectric-table-cell
6590
+ .column=${_}
6591
+ .row=${v}
6592
+ .index=${A + r}
6593
+ .columns=${this.columns}
6594
+ .table=${this.table}
6595
+ ></spectric-table-cell>`)}
6596
+ </tr>`
6594
6597
  )}
6595
6598
  </div>
6596
6599
  <tbody>
6597
- ${v > 0 ? $ : null}
6600
+ ${$}
6598
6601
  </tbody>
6599
6602
  `;
6600
6603
  }
6601
6604
  };
6602
- Ot([
6605
+ tt([
6603
6606
  f({ type: Array, attribute: !1 })
6604
- ], Ze.prototype, "data", 2);
6605
- Ot([
6607
+ ], Le.prototype, "data", 2);
6608
+ tt([
6606
6609
  f({ type: Array, attribute: !1 })
6607
- ], Ze.prototype, "columns", 2);
6608
- Ot([
6610
+ ], Le.prototype, "columns", 2);
6611
+ tt([
6609
6612
  f({ type: Number, attribute: !1 })
6610
- ], Ze.prototype, "rowHeight", 2);
6611
- Ot([
6613
+ ], Le.prototype, "rowHeight", 2);
6614
+ tt([
6612
6615
  f({ type: Number, state: !0 })
6613
- ], Ze.prototype, "startIndex", 2);
6614
- Ot([
6616
+ ], Le.prototype, "startIndex", 2);
6617
+ tt([
6615
6618
  f({ type: Object, attribute: !1 })
6616
- ], Ze.prototype, "table", 2);
6617
- Ze = Ot([
6618
- j(Nc)
6619
- ], Ze);
6619
+ ], Le.prototype, "table", 2);
6620
+ tt([
6621
+ f({ type: Number, attribute: !1 })
6622
+ ], Le.prototype, "buffer", 2);
6623
+ Le = tt([
6624
+ I(Nc)
6625
+ ], Le);
6620
6626
  function Dc(e) {
6621
6627
  let t = !1, s;
6622
6628
  return function(...i) {
@@ -6626,28 +6632,28 @@ function Dc(e) {
6626
6632
  const Mc = (e) => e.map(({ key: t, sortDirection: s, compareFn: i }) => (r, a) => {
6627
6633
  if (!t)
6628
6634
  return;
6629
- let n = _t(r, t), h = _t(a, t);
6635
+ let n = wt(r, t), h = wt(a, t);
6630
6636
  if (i)
6631
6637
  return i(r, a);
6632
6638
  if (typeof n == "number" || typeof n == "bigint" || typeof n == "boolean") {
6633
6639
  let u = n - h;
6634
- return s === Z.descending && (u = u * -1), u;
6640
+ return s === J.descending && (u = u * -1), u;
6635
6641
  } else if (typeof n == "string")
6636
- return n.localeCompare(h) * (s === Z.descending ? -1 : 1);
6642
+ return n.localeCompare(h) * (s === J.descending ? -1 : 1);
6637
6643
  });
6638
- var zc = Object.defineProperty, Rc = Object.getOwnPropertyDescriptor, be = (e, t, s, i) => {
6644
+ var zc = Object.defineProperty, Rc = Object.getOwnPropertyDescriptor, ae = (e, t, s, i) => {
6639
6645
  for (var r = i > 1 ? void 0 : i ? Rc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
6640
6646
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
6641
6647
  return i && r && zc(t, s, r), r;
6642
6648
  };
6643
- const Hi = "spectric-table";
6644
- var Fi = /* @__PURE__ */ ((e) => (e.multi = "multi", e.single = "single", e.none = "none", e))(Fi || {}), qi = /* @__PURE__ */ ((e) => (e.multi = "multi", e.single = "single", e))(qi || {}), Z = /* @__PURE__ */ ((e) => (e.ascending = "ascending", e.descending = "descending", e.none = "none", e))(Z || {});
6645
- const qt = 4, It = Symbol(
6649
+ const Fi = "spectric-table";
6650
+ var Hi = /* @__PURE__ */ ((e) => (e.multi = "multi", e.single = "single", e.none = "none", e))(Hi || {}), qi = /* @__PURE__ */ ((e) => (e.multi = "multi", e.single = "single", e))(qi || {}), J = /* @__PURE__ */ ((e) => (e.ascending = "ascending", e.descending = "descending", e.none = "none", e))(J || {});
6651
+ const Qt = 4, Bt = Symbol(
6646
6652
  "spectric-table-selection-column"
6647
6653
  );
6648
- let ie = class extends B {
6654
+ let W = class extends B {
6649
6655
  constructor() {
6650
- super(...arguments), this.data = [], this.columns = [], this.select = "none", this.sort = "single", this.sortOrder = [], this.rowHeight = 25, this.fontSize = 16, this.cellActionButtonSize = "xxsmall", this._handlePaginationChange = (e) => {
6656
+ super(...arguments), this.data = [], this.columns = [], this.select = "none", this.sort = "single", this.sortOrder = [], this.rowHeight = 25, this.fontSize = 16, this.virtualBodyBuffer = 100, this.getRowClass = (e, t) => t % 2 === 0 ? "odd" : "", this.cellActionButtonSize = "xxsmall", this._handlePaginationChange = (e) => {
6651
6657
  if (this.pagination) {
6652
6658
  let t = { ...this.pagination, ...e.detail }, { totalItems: s, page: i, pageSize: r } = t;
6653
6659
  s && i && r && (i - 1) * r > s && (t.page = 1), this.pagination = t;
@@ -6684,19 +6690,19 @@ let ie = class extends B {
6684
6690
  }, this.__DO_NOT_USE_filter = () => {
6685
6691
  this.dispatchEvent(new CustomEvent("filter")), this.dispatchEvent(new CustomEvent("sortChange"));
6686
6692
  }, this.selected = [], this._getRowHeight = () => {
6687
- let e = this.rowHeight - qt;
6688
- return e < this.fontSize + qt && (e = this.fontSize + qt), e;
6693
+ let e = this.rowHeight - Qt;
6694
+ return e < this.fontSize + Qt && (e = this.fontSize + Qt), e;
6689
6695
  }, this._handleSelectAllChange = (e) => {
6690
6696
  e.stopPropagation(), e.target.checked ? this.selectAll() : this.deselectAll();
6691
6697
  }, this.selectColumnConfig = {
6692
- [It]: !0,
6698
+ [Bt]: !0,
6693
6699
  allowResize: !1,
6694
6700
  filterable: !1,
6695
6701
  width: 39,
6696
6702
  title: (e) => e.select === "multi" ? m`<spectric-input
6697
6703
  variant="checkbox"
6698
6704
  @change=${e._handleSelectAllChange}
6699
- ${qe({
6705
+ ${Qe({
6700
6706
  checked: e.selected.length === e.data.length
6701
6707
  })}
6702
6708
  .helperText=${"Select All"}
@@ -6707,7 +6713,7 @@ let ie = class extends B {
6707
6713
  variant="checkbox"
6708
6714
  class="table-checkbox-${s.select}"
6709
6715
  .helperText=${""}
6710
- ${qe({ checked: i })}
6716
+ ${Qe({ checked: i })}
6711
6717
  @change=${(a) => {
6712
6718
  a.stopPropagation();
6713
6719
  let n = s.selected.findIndex((h) => h === e);
@@ -6738,9 +6744,9 @@ let ie = class extends B {
6738
6744
  let n = Mc(s);
6739
6745
  i.sort((h, u) => {
6740
6746
  for (let g of n) {
6741
- let S = g(h, u);
6742
- if (S)
6743
- return S;
6747
+ let $ = g(h, u);
6748
+ if ($)
6749
+ return $;
6744
6750
  }
6745
6751
  return 0;
6746
6752
  });
@@ -6756,7 +6762,7 @@ let ie = class extends B {
6756
6762
  }
6757
6763
  forceRefreshofSelectionColumn() {
6758
6764
  let e = this.columns.findIndex(
6759
- (t) => t[It]
6765
+ (t) => t[Bt]
6760
6766
  );
6761
6767
  e !== -1 && (this.columns[e] = { ...this.selectColumnConfig }, this.columns = [...this.columns]);
6762
6768
  }
@@ -6781,7 +6787,7 @@ let ie = class extends B {
6781
6787
  behavior: "smooth"
6782
6788
  });
6783
6789
  for (let a = 0; a < 100; a++)
6784
- if (await new Promise((n) => setTimeout(n, 10)), i.scrollTop == r) {
6790
+ if (await new Promise((n) => requestAnimationFrame(n)), i.scrollTop == r) {
6785
6791
  console.log("Scroll complete");
6786
6792
  break;
6787
6793
  }
@@ -6800,11 +6806,11 @@ let ie = class extends B {
6800
6806
  }
6801
6807
  }
6802
6808
  update(e) {
6803
- if (e.has("data") && (this.selected = this.data.reduce((t, s) => (this.selected.includes(s) && t.push(s), t), [])), e.has("columns") && this.select !== "none" && (this.columns.find((t) => t[It]) || this.columns.unshift(this.selectColumnConfig)), e.has("select")) {
6809
+ if (e.has("data") && (this.selected = this.data.reduce((t, s) => (this.selected.includes(s) && t.push(s), t), [])), e.has("columns") && this.select !== "none" && (this.columns.find((t) => t[Bt]) || this.columns.unshift(this.selectColumnConfig)), e.has("select")) {
6804
6810
  let t = this.columns.findIndex(
6805
- (s) => s[It]
6811
+ (s) => s[Bt]
6806
6812
  );
6807
- this.select !== "none" ? (this.forceRefreshofSelectionColumn(), this.columns.find((s) => s[It]) || (this.columns.unshift(this.selectColumnConfig), this.columns = [...this.columns])) : t !== -1 && (this.columns.splice(t, 1), this.columns = [...this.columns], this.setSelected([])), this.select === "single" && this.selected.length > 1 && (this.setSelected([this.selected[0]]), this.dispatchEvent(
6813
+ this.select !== "none" ? (this.forceRefreshofSelectionColumn(), this.columns.find((s) => s[Bt]) || (this.columns.unshift(this.selectColumnConfig), this.columns = [...this.columns])) : t !== -1 && (this.columns.splice(t, 1), this.columns = [...this.columns], this.setSelected([])), this.select === "single" && this.selected.length > 1 && (this.setSelected([this.selected[0]]), this.dispatchEvent(
6808
6814
  new CustomEvent("selected", { detail: [this.selected[0]] })
6809
6815
  ));
6810
6816
  }
@@ -6825,6 +6831,7 @@ let ie = class extends B {
6825
6831
  @columnResize=${this._handleColumnResize}
6826
6832
  ></spectric-table-header>
6827
6833
  <spectric-table-virtual-body
6834
+ .buffer=${this.virtualBodyBuffer}
6828
6835
  .columns=${e}
6829
6836
  .data=${this.data}
6830
6837
  .table=${this}
@@ -6833,49 +6840,55 @@ let ie = class extends B {
6833
6840
  </div>
6834
6841
  </div>
6835
6842
  ${this.pagination ? m`<spectric-pagination
6836
- ${qe(this.pagination)}
6843
+ ${Qe(this.pagination)}
6837
6844
  @change=${this._handlePaginationChange}
6838
6845
  ></spectric-pagination>` : null}
6839
6846
  `;
6840
6847
  }
6841
6848
  };
6842
- be([
6849
+ ae([
6843
6850
  f({ type: Array, attribute: !1 })
6844
- ], ie.prototype, "data", 2);
6845
- be([
6851
+ ], W.prototype, "data", 2);
6852
+ ae([
6846
6853
  f({ type: Object, attribute: !1 })
6847
- ], ie.prototype, "pagination", 2);
6848
- be([
6854
+ ], W.prototype, "pagination", 2);
6855
+ ae([
6849
6856
  f({ attribute: !1 })
6850
- ], ie.prototype, "columns", 2);
6851
- be([
6857
+ ], W.prototype, "columns", 2);
6858
+ ae([
6852
6859
  f({ type: String, reflect: !0 })
6853
- ], ie.prototype, "select", 2);
6854
- be([
6860
+ ], W.prototype, "select", 2);
6861
+ ae([
6855
6862
  f({ type: String, reflect: !0 })
6856
- ], ie.prototype, "sort", 2);
6857
- be([
6863
+ ], W.prototype, "sort", 2);
6864
+ ae([
6858
6865
  f({ type: Array, reflect: !1 })
6859
- ], ie.prototype, "sortOrder", 2);
6860
- be([
6866
+ ], W.prototype, "sortOrder", 2);
6867
+ ae([
6861
6868
  f({ type: Number, reflect: !0 })
6862
- ], ie.prototype, "rowHeight", 2);
6863
- be([
6869
+ ], W.prototype, "rowHeight", 2);
6870
+ ae([
6864
6871
  f({ type: Number, reflect: !0 })
6865
- ], ie.prototype, "fontSize", 2);
6866
- be([
6867
- Y()
6868
- ], ie.prototype, "selected", 2);
6869
- ie = be([
6870
- j(Hi)
6871
- ], ie);
6872
- var jc = Object.defineProperty, Ic = Object.getOwnPropertyDescriptor, ce = (e, t, s, i) => {
6872
+ ], W.prototype, "fontSize", 2);
6873
+ ae([
6874
+ f({ type: Number, reflect: !1 })
6875
+ ], W.prototype, "virtualBodyBuffer", 2);
6876
+ ae([
6877
+ f({ type: Object, attribute: !1 })
6878
+ ], W.prototype, "getRowClass", 2);
6879
+ ae([
6880
+ G()
6881
+ ], W.prototype, "selected", 2);
6882
+ W = ae([
6883
+ I(Fi)
6884
+ ], W);
6885
+ var jc = Object.defineProperty, Ic = Object.getOwnPropertyDescriptor, pe = (e, t, s, i) => {
6873
6886
  for (var r = i > 1 ? void 0 : i ? Ic(t, s) : t, a = e.length - 1, n; a >= 0; a--)
6874
6887
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
6875
6888
  return i && r && jc(t, s, r), r;
6876
6889
  };
6877
6890
  const Bc = "spectric-popover";
6878
- let W = class extends ke {
6891
+ let V = class extends ke {
6879
6892
  constructor() {
6880
6893
  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) => {
6881
6894
  this.mouseLocation = {
@@ -6963,7 +6976,7 @@ let W = class extends ke {
6963
6976
  </div>`;
6964
6977
  }
6965
6978
  };
6966
- W.styles = oe`
6979
+ V.styles = oe`
6967
6980
  :host {
6968
6981
  max-height: 0px;
6969
6982
  max-width: 0px;
@@ -6971,47 +6984,47 @@ W.styles = oe`
6971
6984
  pointer-events: none;
6972
6985
  }
6973
6986
  `;
6974
- ce([
6987
+ pe([
6975
6988
  f({ type: Number, reflect: !0 })
6976
- ], W.prototype, "delay", 2);
6977
- ce([
6989
+ ], V.prototype, "delay", 2);
6990
+ pe([
6978
6991
  f({ type: Number, reflect: !0 })
6979
- ], W.prototype, "animationDuration", 2);
6980
- ce([
6992
+ ], V.prototype, "animationDuration", 2);
6993
+ pe([
6981
6994
  f({ type: String, reflect: !1 })
6982
- ], W.prototype, "text", 2);
6983
- ce([
6995
+ ], V.prototype, "text", 2);
6996
+ pe([
6984
6997
  f({ type: String, reflect: !0 })
6985
- ], W.prototype, "position", 2);
6986
- ce([
6998
+ ], V.prototype, "position", 2);
6999
+ pe([
6987
7000
  f({ type: Number, reflect: !0 })
6988
- ], W.prototype, "maxWidth", 2);
6989
- ce([
7001
+ ], V.prototype, "maxWidth", 2);
7002
+ pe([
6990
7003
  f({ type: Number, reflect: !1 })
6991
- ], W.prototype, "mouseOffsetX", 2);
6992
- ce([
7004
+ ], V.prototype, "mouseOffsetX", 2);
7005
+ pe([
6993
7006
  f({ type: Number, reflect: !1 })
6994
- ], W.prototype, "mouseOffsetY", 2);
6995
- ce([
7007
+ ], V.prototype, "mouseOffsetY", 2);
7008
+ pe([
6996
7009
  Se(".spectric-popover-portal")
6997
- ], W.prototype, "portalElement", 2);
6998
- ce([
7010
+ ], V.prototype, "portalElement", 2);
7011
+ pe([
6999
7012
  f({ attribute: !1 })
7000
- ], W.prototype, "portalTarget", 2);
7001
- ce([
7013
+ ], V.prototype, "portalTarget", 2);
7014
+ pe([
7002
7015
  f({ attribute: !1 })
7003
- ], W.prototype, "triggerTarget", 2);
7004
- W = ce([
7005
- j(Bc)
7006
- ], W);
7007
- var Uc = Object.defineProperty, Hc = Object.getOwnPropertyDescriptor, Me = (e, t, s, i) => {
7008
- for (var r = i > 1 ? void 0 : i ? Hc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
7016
+ ], V.prototype, "triggerTarget", 2);
7017
+ V = pe([
7018
+ I(Bc)
7019
+ ], V);
7020
+ var Uc = Object.defineProperty, Fc = Object.getOwnPropertyDescriptor, ze = (e, t, s, i) => {
7021
+ for (var r = i > 1 ? void 0 : i ? Fc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
7009
7022
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
7010
7023
  return i && r && Uc(t, s, r), r;
7011
7024
  };
7012
7025
  const Qi = "spectric-tooltip";
7013
7026
  var Wi = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.left = "left", e.right = "right", e.mouse = "mouse", e))(Wi || {});
7014
- let le = class extends W {
7027
+ let ce = class extends V {
7015
7028
  constructor() {
7016
7029
  super(), this.delay = 100, this.animationDuration = 0, this.text = "", this.position = "right", this.maxWidth = 300, this.portalTarget = document.body, this.open = !1, this.showToolTip = this.showToolTip.bind(this), this.addDisposableListener(() => this.target, "mouseover", this.showToolTip), this.addDisposableListener(() => this.target, "mouseleave", this.hidePopover);
7017
7030
  }
@@ -7022,44 +7035,44 @@ let le = class extends W {
7022
7035
  await super.showPopover(), this.portalElement.classList.add("spectric-tooltip-portal");
7023
7036
  }
7024
7037
  };
7025
- le.styles = oe`:host{max-height: 0px;
7038
+ ce.styles = oe`:host{max-height: 0px;
7026
7039
  max-width: 0px;
7027
7040
  display: none;
7028
7041
  pointer-events:none;}`;
7029
- Me([
7042
+ ze([
7030
7043
  f({ type: Number, reflect: !0 })
7031
- ], le.prototype, "delay", 2);
7032
- Me([
7044
+ ], ce.prototype, "delay", 2);
7045
+ ze([
7033
7046
  f({ type: Number, reflect: !0 })
7034
- ], le.prototype, "animationDuration", 2);
7035
- Me([
7047
+ ], ce.prototype, "animationDuration", 2);
7048
+ ze([
7036
7049
  f({ type: String, reflect: !1 })
7037
- ], le.prototype, "text", 2);
7038
- Me([
7050
+ ], ce.prototype, "text", 2);
7051
+ ze([
7039
7052
  f({ type: String, reflect: !0 })
7040
- ], le.prototype, "position", 2);
7041
- Me([
7053
+ ], ce.prototype, "position", 2);
7054
+ ze([
7042
7055
  f({ type: Number, reflect: !0 })
7043
- ], le.prototype, "maxWidth", 2);
7044
- Me([
7056
+ ], ce.prototype, "maxWidth", 2);
7057
+ ze([
7045
7058
  f({ attribute: !1 })
7046
- ], le.prototype, "portalTarget", 2);
7047
- Me([
7059
+ ], ce.prototype, "portalTarget", 2);
7060
+ ze([
7048
7061
  f({ attribute: !1 })
7049
- ], le.prototype, "triggerTarget", 2);
7050
- le = Me([
7051
- j(Qi)
7052
- ], le);
7053
- var Fc = Object.defineProperty, qc = Object.getOwnPropertyDescriptor, te = (e, t, s, i) => {
7062
+ ], ce.prototype, "triggerTarget", 2);
7063
+ ce = ze([
7064
+ I(Qi)
7065
+ ], ce);
7066
+ var Hc = Object.defineProperty, qc = Object.getOwnPropertyDescriptor, re = (e, t, s, i) => {
7054
7067
  for (var r = i > 1 ? void 0 : i ? qc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
7055
7068
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
7056
- return i && r && Fc(t, s, r), r;
7069
+ return i && r && Hc(t, s, r), r;
7057
7070
  };
7058
- let vt;
7059
- window.hasOwnProperty("EyeDropper") && (vt = new EyeDropper());
7060
- let V = class extends B {
7071
+ let yt;
7072
+ window.hasOwnProperty("EyeDropper") && (yt = new EyeDropper());
7073
+ let Y = class extends B {
7061
7074
  constructor() {
7062
- super(), this.value = "#FF0000FF", this.showAlpha = !0, this.hue = 0, this.alpha = 1, this.saturation = 1, this.lightness = 1, this.canvas = yt(), 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);
7075
+ super(), this.value = "#FF0000FF", this.showAlpha = !0, this.hue = 0, this.alpha = 1, this.saturation = 1, this.lightness = 1, this.canvas = mt(), 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);
7063
7076
  }
7064
7077
  createRenderRoot() {
7065
7078
  return this;
@@ -7117,7 +7130,7 @@ let V = class extends B {
7117
7130
  getPopover() {
7118
7131
  return m`
7119
7132
  <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>
7120
- <canvas ${mt(this.canvas)} width=200 height=100 class="color-picker-saturation-lightness-grid" @click=${this._handleSaturationLightnessClick}
7133
+ <canvas ${$t(this.canvas)} width=200 height=100 class="color-picker-saturation-lightness-grid" @click=${this._handleSaturationLightnessClick}
7121
7134
  @mousedown=${(e) => {
7122
7135
  this.sldown = !0, e.preventDefault(), e.stopPropagation();
7123
7136
  }}
@@ -7130,9 +7143,9 @@ let V = class extends B {
7130
7143
  ></canvas>
7131
7144
  <spectric-input class="alpha-gradient" ?hidden=${!this.showAlpha} label="Opacity" variant="range" .value=${(this.alpha || 1) * 100} @change=${this._handleAlphaChange}></spectric-input>
7132
7145
  <div class="color-picker-footer">
7133
- <spectric-button icon class="color-picker-eyedropper ${vt === void 0 ? "hidden" : ""}" @click=${async () => {
7134
- if (vt) {
7135
- let e = await (vt == null ? void 0 : vt.open()), { h: t, s, l: i, a: r } = ni(e.sRGBHex);
7146
+ <spectric-button icon class="color-picker-eyedropper ${yt === void 0 ? "hidden" : ""}" @click=${async () => {
7147
+ if (yt) {
7148
+ let e = await (yt == null ? void 0 : yt.open()), { h: t, s, l: i, a: r } = ni(e.sRGBHex);
7136
7149
  this.hue = t, this.saturation = s, this.lightness = i, this.alpha = r, this.updateValue();
7137
7150
  }
7138
7151
  }}>${Qc}</spectric-button>
@@ -7150,45 +7163,45 @@ let V = class extends B {
7150
7163
  `;
7151
7164
  }
7152
7165
  };
7153
- te([
7166
+ re([
7154
7167
  f({ type: String, reflect: !0 })
7155
- ], V.prototype, "value", 2);
7156
- te([
7168
+ ], Y.prototype, "value", 2);
7169
+ re([
7157
7170
  f({ type: Boolean, reflect: !0 })
7158
- ], V.prototype, "showAlpha", 2);
7159
- te([
7160
- Y()
7161
- ], V.prototype, "hue", 2);
7162
- te([
7163
- Y()
7164
- ], V.prototype, "alpha", 2);
7165
- te([
7166
- Y()
7167
- ], V.prototype, "saturation", 2);
7168
- te([
7169
- Y()
7170
- ], V.prototype, "lightness", 2);
7171
- te([
7171
+ ], Y.prototype, "showAlpha", 2);
7172
+ re([
7173
+ G()
7174
+ ], Y.prototype, "hue", 2);
7175
+ re([
7176
+ G()
7177
+ ], Y.prototype, "alpha", 2);
7178
+ re([
7179
+ G()
7180
+ ], Y.prototype, "saturation", 2);
7181
+ re([
7182
+ G()
7183
+ ], Y.prototype, "lightness", 2);
7184
+ re([
7172
7185
  Je({ capture: !0 })
7173
- ], V.prototype, "_handleSaturationLightnessClick", 1);
7174
- te([
7186
+ ], Y.prototype, "_handleSaturationLightnessClick", 1);
7187
+ re([
7175
7188
  Je({ capture: !0 })
7176
- ], V.prototype, "_handleHueChange", 1);
7177
- te([
7189
+ ], Y.prototype, "_handleHueChange", 1);
7190
+ re([
7178
7191
  Je({ capture: !0 })
7179
- ], V.prototype, "_handleAlphaChange", 1);
7180
- te([
7192
+ ], Y.prototype, "_handleAlphaChange", 1);
7193
+ re([
7181
7194
  Je({ capture: !0 })
7182
- ], V.prototype, "_handleApply", 1);
7183
- te([
7195
+ ], Y.prototype, "_handleApply", 1);
7196
+ re([
7184
7197
  Je({ capture: !0 })
7185
- ], V.prototype, "_cancel", 1);
7186
- te([
7198
+ ], Y.prototype, "_cancel", 1);
7199
+ re([
7187
7200
  Je({ capture: !0 })
7188
- ], V.prototype, "_openPopover", 1);
7189
- V = te([
7190
- j("spectric-colorpicker")
7191
- ], V);
7201
+ ], Y.prototype, "_openPopover", 1);
7202
+ Y = re([
7203
+ I("spectric-colorpicker")
7204
+ ], Y);
7192
7205
  const Qc = m`<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>`;
7193
7206
  function* Wc(e) {
7194
7207
  for (let t = 100; t >= 0; t--)
@@ -7211,16 +7224,16 @@ function ni(e) {
7211
7224
  if (a === n)
7212
7225
  h = 0, u = 0;
7213
7226
  else {
7214
- const S = a - n;
7215
- switch (u = g > 0.5 ? S / (2 - a - n) : S / (a + n), a) {
7227
+ const $ = a - n;
7228
+ switch (u = g > 0.5 ? $ / (2 - a - n) : $ / (a + n), a) {
7216
7229
  case t:
7217
- h = (s - i) / S + (s < i ? 6 : 0);
7230
+ h = (s - i) / $ + (s < i ? 6 : 0);
7218
7231
  break;
7219
7232
  case s:
7220
- h = (i - t) / S + 2;
7233
+ h = (i - t) / $ + 2;
7221
7234
  break;
7222
7235
  case i:
7223
- h = (t - s) / S + 4;
7236
+ h = (t - s) / $ + 4;
7224
7237
  break;
7225
7238
  }
7226
7239
  h /= 6;
@@ -7231,18 +7244,18 @@ const Yc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7231
7244
  __proto__: null,
7232
7245
  SpreadPropsDirective: ki,
7233
7246
  debounce: ia,
7234
- debounceAnimation: _r,
7247
+ debounceAnimation: wr,
7235
7248
  once: Dc,
7236
- spreadProps: qe
7249
+ spreadProps: Qe
7237
7250
  }, Symbol.toStringTag, { value: "Module" }));
7238
- var Gc = Object.defineProperty, Zc = Object.getOwnPropertyDescriptor, Ct = (e, t, s, i) => {
7251
+ var Gc = Object.defineProperty, Zc = Object.getOwnPropertyDescriptor, Et = (e, t, s, i) => {
7239
7252
  for (var r = i > 1 ? void 0 : i ? Zc(t, s) : t, a = e.length - 1, n; a >= 0; a--)
7240
7253
  (n = e[a]) && (r = (i ? n(t, s, r) : n(r)) || r);
7241
7254
  return i && r && Gc(t, s, r), r;
7242
7255
  };
7243
- let Le = class extends ke {
7256
+ let Ne = class extends ke {
7244
7257
  constructor() {
7245
- super(), this.currentDate = /* @__PURE__ */ new Date(), this.date = /* @__PURE__ */ new Date(), this.popup = !1, this.disabled = !1, this.handleMouseMove = _r(async (e) => {
7258
+ super(), this.currentDate = /* @__PURE__ */ new Date(), this.date = /* @__PURE__ */ new Date(), this.popup = !1, this.disabled = !1, this.handleMouseMove = wr(async (e) => {
7246
7259
  const t = await this.calendarElement, s = t.getBoundingClientRect(), i = (e.clientX - s.left) / s.width * 100, r = (e.clientY - s.top) / s.height * 100;
7247
7260
  t.style.setProperty("--x", `${i}%`), t.style.setProperty("--y", `${r}%`);
7248
7261
  }), this.resetMouseMove = async () => {
@@ -7389,40 +7402,40 @@ let Le = class extends ke {
7389
7402
  ` : n;
7390
7403
  }
7391
7404
  };
7392
- Ct([
7393
- Kt(".days")
7394
- ], Le.prototype, "calendarElement", 2);
7395
- Ct([
7405
+ Et([
7406
+ Xt(".days")
7407
+ ], Ne.prototype, "calendarElement", 2);
7408
+ Et([
7396
7409
  f({ attribute: !1 })
7397
- ], Le.prototype, "currentDate", 2);
7398
- Ct([
7399
- Y()
7400
- ], Le.prototype, "date", 2);
7401
- Ct([
7410
+ ], Ne.prototype, "currentDate", 2);
7411
+ Et([
7412
+ G()
7413
+ ], Ne.prototype, "date", 2);
7414
+ Et([
7402
7415
  f({ type: Boolean, reflect: !0 })
7403
- ], Le.prototype, "popup", 2);
7404
- Ct([
7416
+ ], Ne.prototype, "popup", 2);
7417
+ Et([
7405
7418
  f({ type: Boolean, reflect: !0 })
7406
- ], Le.prototype, "disabled", 2);
7407
- Le = Ct([
7408
- j("spectric-calendar")
7409
- ], Le);
7419
+ ], Ne.prototype, "disabled", 2);
7420
+ Ne = Et([
7421
+ I("spectric-calendar")
7422
+ ], Ne);
7410
7423
  const Jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7411
7424
  __proto__: null,
7412
7425
  get BitDisplayCanvas() {
7413
- return he;
7426
+ return de;
7414
7427
  },
7415
7428
  ButtonSizes: $i,
7416
7429
  ButtonVariants: _i,
7417
7430
  CSSPropsControls: uc,
7418
7431
  get DialogElement() {
7419
- return X;
7432
+ return ee;
7420
7433
  },
7421
7434
  DialogElementTag: bs,
7422
7435
  ElementTag: Bi,
7423
7436
  GeospatialOperators: vs,
7424
7437
  get Header() {
7425
- return Ve;
7438
+ return Ye;
7426
7439
  },
7427
7440
  InputVariants: Ai,
7428
7441
  Orientations: Ii,
@@ -7432,91 +7445,91 @@ const Jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7432
7445
  PaginationElementTag: Ui,
7433
7446
  SPECTRIC_CSS_VARIABLES: dc,
7434
7447
  get SpectricButton() {
7435
- return J;
7448
+ return K;
7436
7449
  },
7437
7450
  get SpectricCalendar() {
7438
- return Le;
7451
+ return Ne;
7439
7452
  },
7440
7453
  get SpectricInput() {
7441
- return z;
7454
+ return D;
7442
7455
  },
7443
7456
  get SpectricPage() {
7444
- return K;
7457
+ return X;
7445
7458
  },
7446
7459
  get SpectricPanel() {
7447
- return xt;
7460
+ return kt;
7448
7461
  },
7449
7462
  get SpectricQuery() {
7450
- return F;
7463
+ return H;
7451
7464
  },
7452
7465
  get SpectricTableElement() {
7453
- return ie;
7466
+ return W;
7454
7467
  },
7455
7468
  get SpectricThemeProvider() {
7456
- return Yt;
7469
+ return Gt;
7457
7470
  },
7458
7471
  get SplitView() {
7459
7472
  return q;
7460
7473
  },
7461
7474
  SupportedLanguages: Mi,
7462
- TD_BorderAndPadding: qt,
7463
- TableElementTag: Hi,
7464
- TableSelectOptions: Fi,
7465
- TableSortDirection: Z,
7475
+ TD_BorderAndPadding: Qt,
7476
+ TableElementTag: Fi,
7477
+ TableSelectOptions: Hi,
7478
+ TableSortDirection: J,
7466
7479
  TableSortOption: qi,
7467
7480
  ThemeSelections: hc,
7468
7481
  get TooltipElement() {
7469
- return le;
7482
+ return ce;
7470
7483
  },
7471
7484
  TooltipElementTag: Qi,
7472
7485
  TooltipPostions: Wi,
7473
7486
  nodeTypes: _e,
7474
- toLabelValue: Sr
7487
+ toLabelValue: kr
7475
7488
  }, Symbol.toStringTag, { value: "Module" })), pp = { ...$c, ...Jc, ...Yc };
7476
7489
  export {
7477
7490
  Si as BitArray,
7478
- he as BitDisplayCanvas,
7491
+ de as BitDisplayCanvas,
7479
7492
  $i as ButtonSizes,
7480
7493
  _i as ButtonVariants,
7481
7494
  uc as CSSPropsControls,
7482
- X as DialogElement,
7495
+ ee as DialogElement,
7483
7496
  bs as DialogElementTag,
7484
7497
  ke as DisposableElement,
7485
7498
  Bi as ElementTag,
7486
7499
  vs as GeospatialOperators,
7487
- Ve as Header,
7500
+ Ye as Header,
7488
7501
  Ai as InputVariants,
7489
7502
  Ii as Orientations,
7490
7503
  xe as PaginationElement,
7491
7504
  Ui as PaginationElementTag,
7492
7505
  dc as SPECTRIC_CSS_VARIABLES,
7493
- J as SpectricButton,
7494
- Le as SpectricCalendar,
7495
- z as SpectricInput,
7496
- K as SpectricPage,
7497
- xt as SpectricPanel,
7498
- F as SpectricQuery,
7499
- ie as SpectricTableElement,
7500
- Yt as SpectricThemeProvider,
7506
+ K as SpectricButton,
7507
+ Ne as SpectricCalendar,
7508
+ D as SpectricInput,
7509
+ X as SpectricPage,
7510
+ kt as SpectricPanel,
7511
+ H as SpectricQuery,
7512
+ W as SpectricTableElement,
7513
+ Gt as SpectricThemeProvider,
7501
7514
  q as SplitView,
7502
7515
  ki as SpreadPropsDirective,
7503
7516
  Mi as SupportedLanguages,
7504
- qt as TD_BorderAndPadding,
7505
- Hi as TableElementTag,
7506
- Fi as TableSelectOptions,
7507
- Z as TableSortDirection,
7517
+ Qt as TD_BorderAndPadding,
7518
+ Fi as TableElementTag,
7519
+ Hi as TableSelectOptions,
7520
+ J as TableSortDirection,
7508
7521
  qi as TableSortOption,
7509
7522
  hc as ThemeSelections,
7510
- le as TooltipElement,
7523
+ ce as TooltipElement,
7511
7524
  Qi as TooltipElementTag,
7512
7525
  Wi as TooltipPostions,
7513
7526
  ia as debounce,
7514
- _r as debounceAnimation,
7527
+ wr as debounceAnimation,
7515
7528
  pp as default,
7516
7529
  Qn as getListeners,
7517
7530
  _e as nodeTypes,
7518
7531
  Dc as once,
7519
- qe as spreadProps,
7520
- Sr as toLabelValue
7532
+ Qe as spreadProps,
7533
+ kr as toLabelValue
7521
7534
  };
7522
7535
  //# sourceMappingURL=index.es.js.map