@searchcraft/vue-sdk 0.7.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/components/SearchcraftBaseSearchResults.d.ts +36 -30
  2. package/dist/components/SearchcraftBaseSearchResults.d.ts.map +1 -1
  3. package/dist/components/SearchcraftFilterPanel.d.ts +23 -7
  4. package/dist/components/SearchcraftFilterPanel.d.ts.map +1 -1
  5. package/dist/components/SearchcraftInputForm.d.ts +43 -36
  6. package/dist/components/SearchcraftInputForm.d.ts.map +1 -1
  7. package/dist/components/SearchcraftPagination.d.ts +24 -0
  8. package/dist/components/SearchcraftPagination.d.ts.map +1 -0
  9. package/dist/components/SearchcraftPopoverButton.d.ts +23 -3
  10. package/dist/components/SearchcraftPopoverButton.d.ts.map +1 -1
  11. package/dist/components/SearchcraftPopoverForm.d.ts +30 -15
  12. package/dist/components/SearchcraftPopoverForm.d.ts.map +1 -1
  13. package/dist/components/SearchcraftResultsInfo.d.ts +24 -3
  14. package/dist/components/SearchcraftResultsInfo.d.ts.map +1 -1
  15. package/dist/components/SearchcraftSearchResultsPerPage.d.ts +23 -0
  16. package/dist/components/SearchcraftSearchResultsPerPage.d.ts.map +1 -0
  17. package/dist/components/SearchcraftSelect.d.ts +25 -0
  18. package/dist/components/SearchcraftSelect.d.ts.map +1 -0
  19. package/dist/components/SearchcraftTheme.d.ts +22 -3
  20. package/dist/components/SearchcraftTheme.d.ts.map +1 -1
  21. package/dist/components/index.d.ts +9 -7
  22. package/dist/components/index.d.ts.map +1 -1
  23. package/dist/index.es.js +371 -491
  24. package/dist/index.es.js.map +1 -1
  25. package/dist/index.umd.js +1 -1
  26. package/dist/index.umd.js.map +1 -1
  27. package/dist/stencil-web-components.d.ts +5 -0
  28. package/dist/stencil-web-components.d.ts.map +1 -1
  29. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -1,59 +1,56 @@
1
- import { defineComponent as L, ref as Fe, getCurrentInstance as je, inject as Ne, h as De, createVNode as x, mergeProps as Be } from "vue";
2
- const W = "routerLink", ie = "navManager", Ue = "router", ze = "aria", j = Symbol(), ce = { default: j }, ue = (e) => (e == null ? void 0 : e.split(" ")) || [], He = (e, t, n = []) => {
3
- var s;
4
- return [...Array.from(((s = e.value) == null ? void 0 : s.classList) || []), ...n].filter((r, i, l) => !t.has(r) && l.indexOf(r) === i);
5
- }, A = (e, t, n = [], s = [], r, i) => {
6
- const l = L((a, { attrs: o, slots: u, emit: $ }) => {
1
+ import { defineComponent as Ie, ref as Ae, getCurrentInstance as Fe, inject as De, h as je } from "vue";
2
+ const B = "routerLink", oe = "navManager", Ne = "router", Ue = "aria", A = Symbol(), le = { default: A }, ie = (e) => (e == null ? void 0 : e.split(" ")) || [], ze = (e, t, s = []) => {
3
+ var n;
4
+ return [...Array.from(((n = e.value) == null ? void 0 : n.classList) || []), ...s].filter((r, i, l) => !t.has(r) && l.indexOf(r) === i);
5
+ }, E = (e, t, s = [], n = [], r, i) => {
6
+ const l = Ie((a, { attrs: o, slots: f, emit: $ }) => {
7
7
  var y;
8
- const c = Fe(), f = new Set(ue(o.class)), d = je(), g = ((y = d == null ? void 0 : d.appContext) == null ? void 0 : y.provides[ie]) ? Ne(ie) : void 0, S = (h) => {
9
- const { routerLink: F } = a;
10
- if (F !== j)
8
+ const c = Ae(), u = new Set(ie(o.class)), d = Fe(), g = ((y = d == null ? void 0 : d.appContext) == null ? void 0 : y.provides[oe]) ? De(oe) : void 0, S = (p) => {
9
+ const { routerLink: I } = a;
10
+ if (I !== A)
11
11
  if (g !== void 0) {
12
- h.preventDefault();
13
- let m = { event: h };
14
- for (const T in a) {
15
- const b = a[T];
16
- a.hasOwnProperty(T) && T.startsWith(Ue) && b !== j && (m[T] = b);
12
+ p.preventDefault();
13
+ let b = { event: p };
14
+ for (const P in a) {
15
+ const m = a[P];
16
+ a.hasOwnProperty(P) && P.startsWith(Ne) && m !== A && (b[P] = m);
17
17
  }
18
- g.navigate(m);
18
+ g.navigate(b);
19
19
  } else
20
20
  console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.");
21
21
  };
22
22
  return () => {
23
- a[r], ue(o.class).forEach((b) => {
24
- f.add(b);
23
+ a[r], ie(o.class).forEach((m) => {
24
+ u.add(m);
25
25
  });
26
- const h = a.onClick, F = (b) => {
27
- h !== void 0 && h(b), b.defaultPrevented || S(b);
26
+ const p = a.onClick, I = (m) => {
27
+ p !== void 0 && p(m), m.defaultPrevented || S(m);
28
28
  };
29
- let m = {
29
+ let b = {
30
30
  ref: c,
31
- class: He(c, f),
32
- onClick: F
31
+ class: ze(c, u),
32
+ onClick: I
33
33
  };
34
- for (const b in a) {
35
- const oe = a[b];
36
- (a.hasOwnProperty(b) && oe !== j || b.startsWith(ze)) && (m[b] = oe);
37
- const le = "on" + b.slice(0, 1).toUpperCase() + b.slice(1), Ie = o[le];
38
- c.value && o.hasOwnProperty(le) && "addEventListener" in c.value && c.value.addEventListener(b, Ie);
34
+ for (const m in a) {
35
+ const re = a[m];
36
+ (a.hasOwnProperty(m) && re !== A || m.startsWith(Ue)) && (b[m] = re);
37
+ const ae = "on" + m.slice(0, 1).toUpperCase() + m.slice(1), Oe = o[ae];
38
+ c.value && o.hasOwnProperty(ae) && "addEventListener" in c.value && c.value.addEventListener(m, Oe);
39
39
  }
40
- return W in a && a[W] !== j && (m = {
41
- ...m,
42
- href: a[W]
43
- }), De(e, m, u.default && u.default());
40
+ return B in a && a[B] !== A && (b = {
41
+ ...b,
42
+ href: a[B]
43
+ }), je(e, b, f.default && f.default());
44
44
  };
45
45
  });
46
46
  if (typeof l != "function") {
47
47
  let a = [], o = {};
48
- o.ROUTER_LINK_VALUE = ce, n.forEach((u) => o[u] = ce), a = s, l.name = e, l.emits = a, l.props = o;
48
+ o.ROUTER_LINK_VALUE = le, s.forEach((f) => o[f] = le), a = n, l.name = e, l.emits = a, l.props = o;
49
49
  }
50
50
  return l;
51
- }, Me = /* @__PURE__ */ A("searchcraft-base-search-results", void 0, [
52
- "adInterval",
51
+ }, He = /* @__PURE__ */ E("searchcraft-base-search-results", void 0, [
53
52
  "customStylesForResults",
54
53
  "searchResultMappings",
55
- "placeAdAtEnd",
56
- "placeAdAtStart",
57
54
  "resultImagePlacement",
58
55
  "buttonLabel",
59
56
  "buttonTarget",
@@ -63,9 +60,9 @@ const W = "routerLink", ie = "navManager", Ue = "router", ze = "aria", j = Symbo
63
60
  "noResults"
64
61
  ], [
65
62
  "noResults"
66
- ]), qe = /* @__PURE__ */ A("searchcraft-filter-panel", void 0, [
63
+ ]), Me = /* @__PURE__ */ E("searchcraft-filter-panel", void 0, [
67
64
  "items"
68
- ]), We = /* @__PURE__ */ A("searchcraft-input-form", void 0, [
65
+ ]), Be = /* @__PURE__ */ E("searchcraft-input-form", void 0, [
69
66
  "config",
70
67
  "autoSearch",
71
68
  "buttonPlacement",
@@ -87,164 +84,45 @@ const W = "routerLink", ie = "navManager", Ue = "router", ze = "aria", j = Symbo
87
84
  "inputBlur",
88
85
  "inputInit",
89
86
  "querySubmit"
90
- ]), Qe = /* @__PURE__ */ A("searchcraft-popover-button"), Ge = /* @__PURE__ */ A("searchcraft-popover-form", void 0, [
87
+ ]), We = /* @__PURE__ */ E("searchcraft-pagination", void 0, [
88
+ "customStyles"
89
+ ]), qe = /* @__PURE__ */ E("searchcraft-popover-button"), Ge = /* @__PURE__ */ E("searchcraft-popover-form", void 0, [
91
90
  "config",
92
91
  "type",
93
92
  "popoverResultMappings",
94
93
  "hotkey",
95
94
  "hotkeyModifier"
96
- ]), Xe = /* @__PURE__ */ A("searchcraft-results-info"), Ke = /* @__PURE__ */ A("searchcraft-theme"), Bt = /* @__PURE__ */ L({
97
- name: "SearchcraftBaseSearchResults",
98
- props: {
99
- adInterval: Number,
100
- customStylesForResults: Object,
101
- searchResultMappings: Object,
102
- placeAdAtEnd: Boolean,
103
- placeAdAtStart: Boolean,
104
- resultImagePlacement: String,
105
- buttonLabel: String,
106
- buttonTarget: String,
107
- buttonRel: String,
108
- containerTarget: String,
109
- containerRel: String,
110
- noResults: String
111
- },
112
- setup(e) {
113
- return () => x(Me, e, null);
114
- }
115
- }), Ut = /* @__PURE__ */ L({
116
- name: "SearchcraftFilterPanel",
117
- props: {
118
- items: {
119
- type: Array,
120
- required: !0
121
- }
122
- },
123
- setup(e) {
124
- return () => x(qe, e, null);
125
- }
126
- }), zt = /* @__PURE__ */ L({
127
- name: "SearchcraftInputForm",
128
- props: {
129
- config: {
130
- type: Object,
131
- required: !1
132
- },
133
- autoSearch: {
134
- type: Boolean,
135
- default: !1
136
- },
137
- buttonPlacement: {
138
- type: String,
139
- default: "right"
140
- },
141
- buttonLabel: {
142
- type: String,
143
- default: "Search"
144
- },
145
- inputLabel: {
146
- type: String,
147
- default: ""
148
- },
149
- customStyles: {
150
- type: Object,
151
- default: () => ({})
152
- },
153
- placeholderValue: {
154
- type: String,
155
- default: "Enter a search term..."
156
- },
157
- searchTerm: {
158
- type: String,
159
- default: ""
160
- },
161
- debounceDelay: {
162
- type: Number,
163
- default: 300
164
- }
165
- },
166
- emits: ["inputCleared", "noResultsReceived", "querySubmit", "inputFocus", "inputBlur"],
167
- setup(e, {
168
- emit: t
169
- }) {
170
- const n = (s) => (r) => {
171
- t(s, r);
172
- };
173
- return () => x(We, Be(e, {
174
- onInputCleared: n("inputCleared"),
175
- onNoResultsReceived: n("noResultsReceived"),
176
- onQuerySubmit: n("querySubmit"),
177
- onInputFocus: n("inputFocus"),
178
- onInputBlur: n("inputBlur")
179
- }), null);
180
- }
181
- }), Ht = /* @__PURE__ */ L({
182
- name: "SearchcraftPopoverButton",
183
- props: {},
184
- setup(e) {
185
- return () => x(Qe, e, null);
186
- }
187
- }), Mt = /* @__PURE__ */ L({
188
- name: "SearchcraftPopoverForm",
189
- props: {
190
- type: {
191
- type: String,
192
- required: !1
193
- },
194
- hotkey: {
195
- type: String,
196
- required: !1
197
- },
198
- hotkeyModifier: {
199
- type: String,
200
- required: !1
201
- },
202
- config: {
203
- type: Object,
204
- required: !1
205
- },
206
- popoverResultMappings: {
207
- type: Object,
208
- required: !1
209
- }
210
- },
211
- setup(e) {
212
- return () => x(Ge, e, null);
213
- }
214
- }), qt = /* @__PURE__ */ L({
215
- name: "SearchcraftResultsInfo",
216
- props: {},
217
- setup(e) {
218
- return () => x(Xe, e, null);
219
- }
220
- }), Wt = /* @__PURE__ */ L({
221
- name: "SearchcraftTheme",
222
- props: {},
223
- setup(e) {
224
- return () => x(Ke, e, null);
225
- }
226
- }), Ye = "searchcraft-javascript-sdk", w = (
95
+ ]), Xe = /* @__PURE__ */ E("searchcraft-results-info", void 0, [
96
+ "customFormatter",
97
+ "customStyles"
98
+ ]), Ke = /* @__PURE__ */ E("searchcraft-search-results-per-page", void 0, [
99
+ "increment",
100
+ "customStyles"
101
+ ]), Ye = /* @__PURE__ */ E("searchcraft-theme", void 0, [
102
+ "theme",
103
+ "customTheme"
104
+ ]), Ut = He, zt = Me, Ht = Be, Mt = qe, Bt = Ge, Wt = Xe, qt = Ye, Gt = We, Xt = Ke, Qe = "searchcraft-javascript-sdk", w = (
227
105
  /* searchcraft-javascript-sdk */
228
106
  { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !1, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !1, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !0, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !0, element: !1, event: !0, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, modernPropertyDecls: !0, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !1, propNumber: !0, propString: !0, reflect: !1, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !1, slot: !0, slotChildNodesFix: !1, slotRelocation: !0, state: !0, style: !1, svg: !0, taskQueue: !0, transformTagName: !1, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !0, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !1, vdomRender: !0, vdomStyle: !0, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
229
107
  );
230
108
  var Je = Object.defineProperty, Ze = (e, t) => {
231
- for (var n in t)
232
- Je(e, n, { get: t[n], enumerable: !0 });
233
- }, Ve = "http://www.w3.org/2000/svg", et = "http://www.w3.org/1999/xhtml", Se = /* @__PURE__ */ new WeakMap(), k = (e) => Se.get(e), tt = (e, t) => {
234
- const n = {
109
+ for (var s in t)
110
+ Je(e, s, { get: t[s], enumerable: !0 });
111
+ }, Ve = "http://www.w3.org/2000/svg", et = "http://www.w3.org/1999/xhtml", ye = /* @__PURE__ */ new WeakMap(), k = (e) => ye.get(e), tt = (e, t) => {
112
+ const s = {
235
113
  $flags$: 0,
236
114
  $hostElement$: e,
237
115
  $cmpMeta$: t,
238
116
  $instanceValues$: /* @__PURE__ */ new Map()
239
117
  };
240
- return n.$onReadyPromise$ = new Promise((r) => n.$onReadyResolve$ = r), e["s-p"] = [], e["s-rc"] = [], Se.set(e, n);
241
- }, fe = (e, t) => t in e, I = (e, t) => (0, console.error)(e, t), $e = /* @__PURE__ */ new Map(), nt = (e, t, n) => {
242
- const s = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
118
+ return s.$onReadyPromise$ = new Promise((r) => s.$onReadyResolve$ = r), e["s-p"] = [], e["s-rc"] = [], ye.set(e, s);
119
+ }, ce = (e, t) => t in e, O = (e, t) => (0, console.error)(e, t), fe = /* @__PURE__ */ new Map(), st = (e, t, s) => {
120
+ const n = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
243
121
  if (!r)
244
122
  return;
245
- const i = $e.get(r);
123
+ const i = fe.get(r);
246
124
  if (i)
247
- return i[s];
125
+ return i[n];
248
126
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
249
127
  return import(
250
128
  /* @vite-ignore */
@@ -253,61 +131,61 @@ var Je = Object.defineProperty, Ze = (e, t) => {
253
131
  /* webpackMode: "lazy" */
254
132
  `./${r}.entry.js`
255
133
  ).then(
256
- (l) => ($e.set(r, l), l[s]),
134
+ (l) => (fe.set(r, l), l[n]),
257
135
  (l) => {
258
- I(l, t.$hostElement$);
136
+ O(l, t.$hostElement$);
259
137
  }
260
138
  );
261
- }, st = "{visibility:hidden}.hydrated{visibility:inherit}", rt = "slot-fb{display:contents}slot-fb[hidden]{display:none}", q = typeof window < "u" ? window : {}, E = q.document || { head: {} }, v = {
139
+ }, nt = "{visibility:hidden}.hydrated{visibility:inherit}", rt = "slot-fb{display:contents}slot-fb[hidden]{display:none}", M = typeof window < "u" ? window : {}, T = M.document || { head: {} }, v = {
262
140
  $flags$: 0,
263
141
  $resourcesUrl$: "",
264
142
  jmp: (e) => e(),
265
143
  raf: (e) => requestAnimationFrame(e),
266
- ael: (e, t, n, s) => e.addEventListener(t, n, s),
267
- rel: (e, t, n, s) => e.removeEventListener(t, n, s),
144
+ ael: (e, t, s, n) => e.addEventListener(t, s, n),
145
+ rel: (e, t, s, n) => e.removeEventListener(t, s, n),
268
146
  ce: (e, t) => new CustomEvent(e, t)
269
- }, at = w.shadowDom, ot = (e) => Promise.resolve(e), G = !1, de = [], me = [], lt = (e, t) => (n) => {
270
- e.push(n), G || (G = !0, v.$flags$ & 4 ? ee(X) : v.raf(X));
271
- }, pe = (e) => {
147
+ }, at = w.shadowDom, ot = (e) => Promise.resolve(e), q = !1, ue = [], me = [], lt = (e, t) => (s) => {
148
+ e.push(s), q || (q = !0, v.$flags$ & 4 ? Z(G) : v.raf(G));
149
+ }, $e = (e) => {
272
150
  for (let t = 0; t < e.length; t++)
273
151
  try {
274
152
  e[t](performance.now());
275
- } catch (n) {
276
- I(n);
153
+ } catch (s) {
154
+ O(s);
277
155
  }
278
156
  e.length = 0;
279
- }, X = () => {
280
- pe(de), pe(me), (G = de.length > 0) && v.raf(X);
281
- }, ee = (e) => ot().then(e), it = /* @__PURE__ */ lt(me), te = (e) => (e = typeof e, e === "object" || e === "function");
157
+ }, G = () => {
158
+ $e(ue), $e(me), (q = ue.length > 0) && v.raf(G);
159
+ }, Z = (e) => ot().then(e), it = /* @__PURE__ */ lt(me), V = (e) => (e = typeof e, e === "object" || e === "function");
282
160
  function ct(e) {
283
- var t, n, s;
284
- return (s = (n = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : n.getAttribute("content")) != null ? s : void 0;
161
+ var t, s, n;
162
+ return (n = (s = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : s.getAttribute("content")) != null ? n : void 0;
285
163
  }
286
- var ut = {};
287
- Ze(ut, {
288
- err: () => Re,
289
- map: () => ft,
290
- ok: () => K,
164
+ var ft = {};
165
+ Ze(ft, {
166
+ err: () => Se,
167
+ map: () => ut,
168
+ ok: () => X,
291
169
  unwrap: () => $t,
292
170
  unwrapErr: () => dt
293
171
  });
294
- var K = (e) => ({
172
+ var X = (e) => ({
295
173
  isOk: !0,
296
174
  isErr: !1,
297
175
  value: e
298
- }), Re = (e) => ({
176
+ }), Se = (e) => ({
299
177
  isOk: !1,
300
178
  isErr: !0,
301
179
  value: e
302
180
  });
303
- function ft(e, t) {
181
+ function ut(e, t) {
304
182
  if (e.isOk) {
305
- const n = t(e.value);
306
- return n instanceof Promise ? n.then((s) => K(s)) : K(n);
183
+ const s = t(e.value);
184
+ return s instanceof Promise ? s.then((n) => X(n)) : X(s);
307
185
  }
308
186
  if (e.isErr) {
309
- const n = e.value;
310
- return Re(n);
187
+ const s = e.value;
188
+ return Se(s);
311
189
  }
312
190
  throw "should never get here";
313
191
  }
@@ -319,91 +197,91 @@ var $t = (e) => {
319
197
  if (e.isErr)
320
198
  return e.value;
321
199
  throw e.value;
322
- }, Te = (e) => {
200
+ }, be = (e) => {
323
201
  const t = e.__childNodes || e.childNodes;
324
- e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Ee(t, e.tagName).forEach((n) => {
325
- var s;
326
- n.nodeType === 1 && n.tagName === "SLOT-FB" && ((s = pt(n, n["s-sn"], !1)) != null && s.length ? n.hidden = !0 : n.hidden = !1);
202
+ e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Re(t, e.tagName).forEach((s) => {
203
+ var n;
204
+ s.nodeType === 1 && s.tagName === "SLOT-FB" && ((n = ht(s, s["s-sn"], !1)) != null && n.length ? s.hidden = !0 : s.hidden = !1);
327
205
  });
328
- for (const n of t)
329
- n.nodeType === 1 && (n.__childNodes || n.childNodes).length && Te(n);
206
+ for (const s of t)
207
+ s.nodeType === 1 && (s.__childNodes || s.childNodes).length && be(s);
330
208
  };
331
- function Ee(e, t, n) {
332
- let s = 0, r = [], i;
333
- for (; s < e.length; s++)
334
- i = e[s], i["s-sr"] && i["s-hn"] === t && n === void 0 && r.push(i), r = [...r, ...Ee(i.childNodes, t, n)];
209
+ function Re(e, t, s) {
210
+ let n = 0, r = [], i;
211
+ for (; n < e.length; n++)
212
+ i = e[n], i["s-sr"] && i["s-hn"] === t && s === void 0 && r.push(i), r = [...r, ...Re(i.childNodes, t, s)];
335
213
  return r;
336
214
  }
337
- var pt = (e, t, n = !0) => {
338
- const s = [];
339
- for ((n && e["s-sr"] || !e["s-sr"]) && s.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
340
- s.push(e);
341
- return s;
342
- }, he = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", _ = (e, t = "") => () => {
343
- }, ht = (e, t) => () => {
344
- }, gt = (e, t, ...n) => {
345
- let s = null, r = null, i = null, l = !1, a = !1;
346
- const o = [], u = (c) => {
347
- for (let f = 0; f < c.length; f++)
348
- s = c[f], Array.isArray(s) ? u(s) : s != null && typeof s != "boolean" && ((l = !te(s)) && (s = String(s)), l && a ? o[o.length - 1].$text$ += s : o.push(l ? Y(null, s) : s), a = l);
215
+ var ht = (e, t, s = !0) => {
216
+ const n = [];
217
+ for ((s && e["s-sr"] || !e["s-sr"]) && n.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
218
+ n.push(e);
219
+ return n;
220
+ }, de = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", L = (e, t = "") => () => {
221
+ }, pt = (e, t) => () => {
222
+ }, gt = (e, t, ...s) => {
223
+ let n = null, r = null, i = null, l = !1, a = !1;
224
+ const o = [], f = (c) => {
225
+ for (let u = 0; u < c.length; u++)
226
+ n = c[u], Array.isArray(n) ? f(n) : n != null && typeof n != "boolean" && ((l = !V(n)) && (n = String(n)), l && a ? o[o.length - 1].$text$ += n : o.push(l ? K(null, n) : n), a = l);
349
227
  };
350
- u(n);
351
- const $ = Y(e, null);
228
+ f(s);
229
+ const $ = K(e, null);
352
230
  return $.$attrs$ = t, o.length > 0 && ($.$children$ = o), $.$key$ = r, $.$name$ = i, $;
353
- }, Y = (e, t) => {
354
- const n = {
231
+ }, K = (e, t) => {
232
+ const s = {
355
233
  $flags$: 0,
356
234
  $tag$: e,
357
235
  $text$: t,
358
236
  $elm$: null,
359
237
  $children$: null
360
238
  };
361
- return n.$attrs$ = null, n.$key$ = null, n.$name$ = null, n;
362
- }, vt = {}, yt = (e) => e && e.$tag$ === vt, J = (e, t) => e != null && !te(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, bt = (e, t, n) => {
363
- const s = v.ce(t, n);
364
- return e.dispatchEvent(s), s;
365
- }, B = /* @__PURE__ */ new WeakMap(), ge = (e, t, n, s, r, i) => {
366
- if (n !== s) {
367
- let l = fe(e, t), a = t.toLowerCase();
239
+ return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;
240
+ }, vt = {}, yt = (e) => e && e.$tag$ === vt, Y = (e, t) => e != null && !V(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, mt = (e, t, s) => {
241
+ const n = v.ce(t, s);
242
+ return e.dispatchEvent(n), n;
243
+ }, j = /* @__PURE__ */ new WeakMap(), he = (e, t, s, n, r, i) => {
244
+ if (s !== n) {
245
+ let l = ce(e, t), a = t.toLowerCase();
368
246
  if (t === "class") {
369
- const o = e.classList, u = ve(n);
370
- let $ = ve(s);
371
- e["s-si"] ? ($.push(e["s-si"]), u.forEach((c) => {
247
+ const o = e.classList, f = pe(s);
248
+ let $ = pe(n);
249
+ e["s-si"] ? ($.push(e["s-si"]), f.forEach((c) => {
372
250
  c.startsWith(e["s-si"]) && $.push(c);
373
- }), $ = [...new Set($)], o.add(...$), delete e["s-si"]) : (o.remove(...u.filter((c) => c && !$.includes(c))), o.add(...$.filter((c) => c && !u.includes(c))));
251
+ }), $ = [...new Set($)], o.add(...$), delete e["s-si"]) : (o.remove(...f.filter((c) => c && !$.includes(c))), o.add(...$.filter((c) => c && !f.includes(c))));
374
252
  } else if (t === "style") {
375
- for (const o in n)
376
- (!s || s[o] == null) && (o.includes("-") ? e.style.removeProperty(o) : e.style[o] = "");
377
253
  for (const o in s)
378
- (!n || s[o] !== n[o]) && (o.includes("-") ? e.style.setProperty(o, s[o]) : e.style[o] = s[o]);
254
+ (!n || n[o] == null) && (o.includes("-") ? e.style.removeProperty(o) : e.style[o] = "");
255
+ for (const o in n)
256
+ (!s || n[o] !== s[o]) && (o.includes("-") ? e.style.setProperty(o, n[o]) : e.style[o] = n[o]);
379
257
  } else if (t !== "key") if (!l && t[0] === "o" && t[1] === "n") {
380
- if (t[2] === "-" ? t = t.slice(3) : fe(q, a) ? t = a.slice(2) : t = a[2] + t.slice(3), n || s) {
381
- const o = t.endsWith(ke);
382
- t = t.replace(mt, ""), n && v.rel(e, t, n, o), s && v.ael(e, t, s, o);
258
+ if (t[2] === "-" ? t = t.slice(3) : ce(M, a) ? t = a.slice(2) : t = a[2] + t.slice(3), s || n) {
259
+ const o = t.endsWith(Pe);
260
+ t = t.replace(bt, ""), s && v.rel(e, t, s, o), n && v.ael(e, t, n, o);
383
261
  }
384
262
  } else {
385
- const o = te(s);
386
- if ((l || o && s !== null) && !r)
263
+ const o = V(n);
264
+ if ((l || o && n !== null) && !r)
387
265
  try {
388
266
  if (e.tagName.includes("-"))
389
- e[t] !== s && (e[t] = s);
267
+ e[t] !== n && (e[t] = n);
390
268
  else {
391
- const u = s ?? "";
392
- t === "list" ? l = !1 : (n == null || e[t] != u) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = u : e.setAttribute(t, u));
269
+ const f = n ?? "";
270
+ t === "list" ? l = !1 : (s == null || e[t] != f) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = f : e.setAttribute(t, f));
393
271
  }
394
272
  } catch {
395
273
  }
396
- s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!l || i & 4 || r) && !o && (s = s === !0 ? "" : s, e.setAttribute(t, s));
274
+ n == null || n === !1 ? (n !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!l || i & 4 || r) && !o && (n = n === !0 ? "" : n, e.setAttribute(t, n));
397
275
  }
398
276
  }
399
- }, St = /\s/, ve = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(St) : []), ke = "Capture", mt = new RegExp(ke + "$"), Pe = (e, t, n) => {
400
- const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || {}, i = t.$attrs$ || {};
401
- for (const l of ye(Object.keys(r)))
402
- l in i || ge(s, l, r[l], void 0, n, t.$flags$);
403
- for (const l of ye(Object.keys(i)))
404
- ge(s, l, r[l], i[l], n, t.$flags$);
277
+ }, St = /\s/, pe = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(St) : []), Pe = "Capture", bt = new RegExp(Pe + "$"), Te = (e, t, s) => {
278
+ const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || {}, i = t.$attrs$ || {};
279
+ for (const l of ge(Object.keys(r)))
280
+ l in i || he(n, l, r[l], void 0, s, t.$flags$);
281
+ for (const l of ge(Object.keys(i)))
282
+ he(n, l, r[l], i[l], s, t.$flags$);
405
283
  };
406
- function ye(e) {
284
+ function ge(e) {
407
285
  return e.includes("ref") ? (
408
286
  // we need to sort these to ensure that `'ref'` is the last attr
409
287
  [...e.filter((t) => t !== "ref"), "ref"]
@@ -412,11 +290,11 @@ function ye(e) {
412
290
  e
413
291
  );
414
292
  }
415
- var Z, ne, z = !1, H = !1, se = !1, R = !1, M = (e, t, n) => {
416
- var s;
417
- const r = t.$children$[n];
293
+ var Q, ee, U = !1, z = !1, te = !1, R = !1, H = (e, t, s) => {
294
+ var n;
295
+ const r = t.$children$[s];
418
296
  let i = 0, l, a, o;
419
- if (z || (se = !0, r.$tag$ === "slot" && (r.$flags$ |= r.$children$ ? (
297
+ if (U || (te = !0, r.$tag$ === "slot" && (r.$flags$ |= r.$children$ ? (
420
298
  // slot element has fallback content
421
299
  // still create an element that "mocks" the slot element
422
300
  2
@@ -426,140 +304,140 @@ var Z, ne, z = !1, H = !1, se = !1, R = !1, M = (e, t, n) => {
426
304
  // where actual slot content should sit next to
427
305
  1
428
306
  ))), r.$text$ !== null)
429
- l = r.$elm$ = E.createTextNode(r.$text$);
307
+ l = r.$elm$ = T.createTextNode(r.$text$);
430
308
  else if (r.$flags$ & 1)
431
- l = r.$elm$ = E.createTextNode("");
309
+ l = r.$elm$ = T.createTextNode("");
432
310
  else {
433
- if (R || (R = r.$tag$ === "svg"), l = r.$elm$ = E.createElementNS(
311
+ if (R || (R = r.$tag$ === "svg"), l = r.$elm$ = T.createElementNS(
434
312
  R ? Ve : et,
435
- !z && w.slotRelocation && r.$flags$ & 2 ? "slot-fb" : r.$tag$
436
- ), R && r.$tag$ === "foreignObject" && (R = !1), Pe(null, r, R), r.$children$)
313
+ !U && w.slotRelocation && r.$flags$ & 2 ? "slot-fb" : r.$tag$
314
+ ), R && r.$tag$ === "foreignObject" && (R = !1), Te(null, r, R), r.$children$)
437
315
  for (i = 0; i < r.$children$.length; ++i)
438
- a = M(e, r, i), a && l.appendChild(a);
316
+ a = H(e, r, i), a && l.appendChild(a);
439
317
  r.$tag$ === "svg" ? R = !1 : l.tagName === "foreignObject" && (R = !0);
440
318
  }
441
- return l["s-hn"] = ne, r.$flags$ & 3 && (l["s-sr"] = !0, l["s-cr"] = Z, l["s-sn"] = r.$name$ || "", l["s-rf"] = (s = r.$attrs$) == null ? void 0 : s.ref, o = e && e.$children$ && e.$children$[n], o && o.$tag$ === r.$tag$ && e.$elm$ && N(e.$elm$, !1)), l;
442
- }, N = (e, t) => {
319
+ return l["s-hn"] = ee, r.$flags$ & 3 && (l["s-sr"] = !0, l["s-cr"] = Q, l["s-sn"] = r.$name$ || "", l["s-rf"] = (n = r.$attrs$) == null ? void 0 : n.ref, o = e && e.$children$ && e.$children$[s], o && o.$tag$ === r.$tag$ && e.$elm$ && F(e.$elm$, !1)), l;
320
+ }, F = (e, t) => {
443
321
  v.$flags$ |= 1;
444
- const n = Array.from(e.__childNodes || e.childNodes);
322
+ const s = Array.from(e.__childNodes || e.childNodes);
445
323
  e["s-sr"] && w.experimentalSlotFixes;
446
- for (let s = n.length - 1; s >= 0; s--) {
447
- const r = n[s];
448
- r["s-hn"] !== ne && r["s-ol"] && (C(D(r).parentNode, r, D(r)), r["s-ol"].remove(), r["s-ol"] = void 0, r["s-sh"] = void 0, se = !0), t && N(r, t);
324
+ for (let n = s.length - 1; n >= 0; n--) {
325
+ const r = s[n];
326
+ r["s-hn"] !== ee && r["s-ol"] && (_(D(r).parentNode, r, D(r)), r["s-ol"].remove(), r["s-ol"] = void 0, r["s-sh"] = void 0, te = !0), t && F(r, t);
449
327
  }
450
328
  v.$flags$ &= -2;
451
- }, Ce = (e, t, n, s, r, i) => {
329
+ }, ke = (e, t, s, n, r, i) => {
452
330
  let l = e["s-cr"] && e["s-cr"].parentNode || e, a;
453
331
  for (; r <= i; ++r)
454
- s[r] && (a = M(null, n, r), a && (s[r].$elm$ = a, C(l, a, D(t))));
455
- }, Le = (e, t, n) => {
456
- for (let s = t; s <= n; ++s) {
457
- const r = e[s];
332
+ n[r] && (a = H(null, s, r), a && (n[r].$elm$ = a, _(l, a, D(t))));
333
+ }, Ce = (e, t, s) => {
334
+ for (let n = t; n <= s; ++n) {
335
+ const r = e[n];
458
336
  if (r) {
459
337
  const i = r.$elm$;
460
- i && (H = !0, i["s-ol"] ? i["s-ol"].remove() : N(i, !0), i.remove());
338
+ i && (z = !0, i["s-ol"] ? i["s-ol"].remove() : F(i, !0), i.remove());
461
339
  }
462
340
  }
463
- }, Rt = (e, t, n, s, r = !1) => {
464
- let i = 0, l = 0, a = 0, o = 0, u = t.length - 1, $ = t[0], c = t[u], f = s.length - 1, d = s[0], p = s[f], g, S;
465
- for (; i <= u && l <= f; )
341
+ }, Rt = (e, t, s, n, r = !1) => {
342
+ let i = 0, l = 0, a = 0, o = 0, f = t.length - 1, $ = t[0], c = t[f], u = n.length - 1, d = n[0], h = n[u], g, S;
343
+ for (; i <= f && l <= u; )
466
344
  if ($ == null)
467
345
  $ = t[++i];
468
346
  else if (c == null)
469
- c = t[--u];
347
+ c = t[--f];
470
348
  else if (d == null)
471
- d = s[++l];
472
- else if (p == null)
473
- p = s[--f];
474
- else if (U($, d, r))
475
- O($, d, r), $ = t[++i], d = s[++l];
476
- else if (U(c, p, r))
477
- O(c, p, r), c = t[--u], p = s[--f];
478
- else if (U($, p, r))
479
- ($.$tag$ === "slot" || p.$tag$ === "slot") && N($.$elm$.parentNode, !1), O($, p, r), C(e, $.$elm$, c.$elm$.nextSibling), $ = t[++i], p = s[--f];
480
- else if (U(c, d, r))
481
- ($.$tag$ === "slot" || p.$tag$ === "slot") && N(c.$elm$.parentNode, !1), O(c, d, r), C(e, c.$elm$, $.$elm$), c = t[--u], d = s[++l];
349
+ d = n[++l];
350
+ else if (h == null)
351
+ h = n[--u];
352
+ else if (N($, d, r))
353
+ x($, d, r), $ = t[++i], d = n[++l];
354
+ else if (N(c, h, r))
355
+ x(c, h, r), c = t[--f], h = n[--u];
356
+ else if (N($, h, r))
357
+ ($.$tag$ === "slot" || h.$tag$ === "slot") && F($.$elm$.parentNode, !1), x($, h, r), _(e, $.$elm$, c.$elm$.nextSibling), $ = t[++i], h = n[--u];
358
+ else if (N(c, d, r))
359
+ ($.$tag$ === "slot" || h.$tag$ === "slot") && F(c.$elm$.parentNode, !1), x(c, d, r), _(e, c.$elm$, $.$elm$), c = t[--f], d = n[++l];
482
360
  else {
483
- for (a = -1, o = i; o <= u; ++o)
361
+ for (a = -1, o = i; o <= f; ++o)
484
362
  if (t[o] && t[o].$key$ !== null && t[o].$key$ === d.$key$) {
485
363
  a = o;
486
364
  break;
487
365
  }
488
- a >= 0 ? (S = t[a], S.$tag$ !== d.$tag$ ? g = M(t && t[l], n, a) : (O(S, d, r), t[a] = void 0, g = S.$elm$), d = s[++l]) : (g = M(t && t[l], n, l), d = s[++l]), g && C(
366
+ a >= 0 ? (S = t[a], S.$tag$ !== d.$tag$ ? g = H(t && t[l], s, a) : (x(S, d, r), t[a] = void 0, g = S.$elm$), d = n[++l]) : (g = H(t && t[l], s, l), d = n[++l]), g && _(
489
367
  D($.$elm$).parentNode,
490
368
  g,
491
369
  D($.$elm$)
492
370
  );
493
371
  }
494
- i > u ? Ce(
372
+ i > f ? ke(
495
373
  e,
496
- s[f + 1] == null ? null : s[f + 1].$elm$,
497
- n,
374
+ n[u + 1] == null ? null : n[u + 1].$elm$,
498
375
  s,
376
+ n,
499
377
  l,
500
- f
501
- ) : l > f && Le(t, i, u);
502
- }, U = (e, t, n = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : n ? (n && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, D = (e) => e && e["s-ol"] || e, O = (e, t, n = !1) => {
503
- const s = t.$elm$ = e.$elm$, r = e.$children$, i = t.$children$, l = t.$tag$, a = t.$text$;
378
+ u
379
+ ) : l > u && Ce(t, i, f);
380
+ }, N = (e, t, s = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : s ? (s && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, D = (e) => e && e["s-ol"] || e, x = (e, t, s = !1) => {
381
+ const n = t.$elm$ = e.$elm$, r = e.$children$, i = t.$children$, l = t.$tag$, a = t.$text$;
504
382
  let o;
505
- a === null ? (R = l === "svg" ? !0 : l === "foreignObject" ? !1 : R, l === "slot" && !z || Pe(e, t, R), r !== null && i !== null ? Rt(s, r, t, i, n) : i !== null ? (e.$text$ !== null && (s.textContent = ""), Ce(s, null, t, i, 0, i.length - 1)) : (
383
+ a === null ? (R = l === "svg" ? !0 : l === "foreignObject" ? !1 : R, l === "slot" && !U || Te(e, t, R), r !== null && i !== null ? Rt(n, r, t, i, s) : i !== null ? (e.$text$ !== null && (n.textContent = ""), ke(n, null, t, i, 0, i.length - 1)) : (
506
384
  // don't do this on initial render as it can cause non-hydrated content to be removed
507
- !n && w.updatable && r !== null && Le(r, 0, r.length - 1)
508
- ), R && l === "svg" && (R = !1)) : (o = s["s-cr"]) ? o.parentNode.textContent = a : e.$text$ !== a && (s.data = a);
509
- }, P = [], _e = (e) => {
510
- let t, n, s;
385
+ !s && w.updatable && r !== null && Ce(r, 0, r.length - 1)
386
+ ), R && l === "svg" && (R = !1)) : (o = n["s-cr"]) ? o.parentNode.textContent = a : e.$text$ !== a && (n.data = a);
387
+ }, C = [], Ee = (e) => {
388
+ let t, s, n;
511
389
  const r = e.__childNodes || e.childNodes;
512
390
  for (const i of r) {
513
391
  if (i["s-sr"] && (t = i["s-cr"]) && t.parentNode) {
514
- n = t.parentNode.__childNodes || t.parentNode.childNodes;
392
+ s = t.parentNode.__childNodes || t.parentNode.childNodes;
515
393
  const l = i["s-sn"];
516
- for (s = n.length - 1; s >= 0; s--)
517
- if (t = n[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== i["s-hn"])
518
- if (he(t, l)) {
519
- let a = P.find((o) => o.$nodeToRelocate$ === t);
520
- H = !0, t["s-sn"] = t["s-sn"] || l, a ? (a.$nodeToRelocate$["s-sh"] = i["s-hn"], a.$slotRefNode$ = i) : (t["s-sh"] = i["s-hn"], P.push({
394
+ for (n = s.length - 1; n >= 0; n--)
395
+ if (t = s[n], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== i["s-hn"])
396
+ if (de(t, l)) {
397
+ let a = C.find((o) => o.$nodeToRelocate$ === t);
398
+ z = !0, t["s-sn"] = t["s-sn"] || l, a ? (a.$nodeToRelocate$["s-sh"] = i["s-hn"], a.$slotRefNode$ = i) : (t["s-sh"] = i["s-hn"], C.push({
521
399
  $slotRefNode$: i,
522
400
  $nodeToRelocate$: t
523
- })), t["s-sr"] && P.map((o) => {
524
- he(o.$nodeToRelocate$, t["s-sn"]) && (a = P.find((u) => u.$nodeToRelocate$ === t), a && !o.$slotRefNode$ && (o.$slotRefNode$ = a.$slotRefNode$));
401
+ })), t["s-sr"] && C.map((o) => {
402
+ de(o.$nodeToRelocate$, t["s-sn"]) && (a = C.find((f) => f.$nodeToRelocate$ === t), a && !o.$slotRefNode$ && (o.$slotRefNode$ = a.$slotRefNode$));
525
403
  });
526
- } else P.some((a) => a.$nodeToRelocate$ === t) || P.push({
404
+ } else C.some((a) => a.$nodeToRelocate$ === t) || C.push({
527
405
  $nodeToRelocate$: t
528
406
  });
529
407
  }
530
- i.nodeType === 1 && _e(i);
408
+ i.nodeType === 1 && Ee(i);
531
409
  }
532
- }, C = (e, t, n) => e == null ? void 0 : e.insertBefore(t, n), Tt = (e, t, n = !1) => {
533
- var s, r, i, l;
534
- const a = e.$hostElement$, o = e.$vnode$ || Y(null, null), u = yt(t) ? t : gt(null, null, t);
535
- if (ne = a.tagName, n && u.$attrs$)
536
- for (const $ of Object.keys(u.$attrs$))
537
- a.hasAttribute($) && !["key", "ref", "style", "class"].includes($) && (u.$attrs$[$] = a[$]);
538
- u.$tag$ = null, u.$flags$ |= 4, e.$vnode$ = u, u.$elm$ = o.$elm$ = a, z = at, Z = a["s-cr"], H = !1, O(o, u, n);
410
+ }, _ = (e, t, s) => e == null ? void 0 : e.insertBefore(t, s), Pt = (e, t, s = !1) => {
411
+ var n, r, i, l;
412
+ const a = e.$hostElement$, o = e.$vnode$ || K(null, null), f = yt(t) ? t : gt(null, null, t);
413
+ if (ee = a.tagName, s && f.$attrs$)
414
+ for (const $ of Object.keys(f.$attrs$))
415
+ a.hasAttribute($) && !["key", "ref", "style", "class"].includes($) && (f.$attrs$[$] = a[$]);
416
+ f.$tag$ = null, f.$flags$ |= 4, e.$vnode$ = f, f.$elm$ = o.$elm$ = a, U = at, Q = a["s-cr"], z = !1, x(o, f, s);
539
417
  {
540
- if (v.$flags$ |= 1, se) {
541
- _e(u.$elm$);
542
- for (const $ of P) {
418
+ if (v.$flags$ |= 1, te) {
419
+ Ee(f.$elm$);
420
+ for (const $ of C) {
543
421
  const c = $.$nodeToRelocate$;
544
422
  if (!c["s-ol"]) {
545
- const f = E.createTextNode("");
546
- f["s-nr"] = c, C(c.parentNode, c["s-ol"] = f, c);
423
+ const u = T.createTextNode("");
424
+ u["s-nr"] = c, _(c.parentNode, c["s-ol"] = u, c);
547
425
  }
548
426
  }
549
- for (const $ of P) {
550
- const c = $.$nodeToRelocate$, f = $.$slotRefNode$;
551
- if (f) {
552
- const d = f.parentNode;
553
- let p = f.nextSibling;
427
+ for (const $ of C) {
428
+ const c = $.$nodeToRelocate$, u = $.$slotRefNode$;
429
+ if (u) {
430
+ const d = u.parentNode;
431
+ let h = u.nextSibling;
554
432
  {
555
- let y = (s = c["s-ol"]) == null ? void 0 : s.previousSibling;
433
+ let y = (n = c["s-ol"]) == null ? void 0 : n.previousSibling;
556
434
  for (; y; ) {
557
- let h = (r = y["s-nr"]) != null ? r : null;
558
- if (h && h["s-sn"] === c["s-sn"] && d === (h.__parentNode || h.parentNode)) {
559
- for (h = h.nextSibling; h === c || h != null && h["s-sr"]; )
560
- h = h == null ? void 0 : h.nextSibling;
561
- if (!h || !h["s-nr"]) {
562
- p = h;
435
+ let p = (r = y["s-nr"]) != null ? r : null;
436
+ if (p && p["s-sn"] === c["s-sn"] && d === (p.__parentNode || p.parentNode)) {
437
+ for (p = p.nextSibling; p === c || p != null && p["s-sr"]; )
438
+ p = p == null ? void 0 : p.nextSibling;
439
+ if (!p || !p["s-nr"]) {
440
+ h = p;
563
441
  break;
564
442
  }
565
443
  }
@@ -567,170 +445,170 @@ var Z, ne, z = !1, H = !1, se = !1, R = !1, M = (e, t, n) => {
567
445
  }
568
446
  }
569
447
  const g = c.__parentNode || c.parentNode, S = c.__nextSibling || c.nextSibling;
570
- (!p && d !== g || S !== p) && c !== p && (!c["s-hn"] && c["s-ol"] && (c["s-hn"] = c["s-ol"].parentNode.nodeName), C(d, c, p), c.nodeType === 1 && c.tagName !== "SLOT-FB" && (c.hidden = (i = c["s-ih"]) != null ? i : !1)), c && typeof f["s-rf"] == "function" && f["s-rf"](c);
448
+ (!h && d !== g || S !== h) && c !== h && (!c["s-hn"] && c["s-ol"] && (c["s-hn"] = c["s-ol"].parentNode.nodeName), _(d, c, h), c.nodeType === 1 && c.tagName !== "SLOT-FB" && (c.hidden = (i = c["s-ih"]) != null ? i : !1)), c && typeof u["s-rf"] == "function" && u["s-rf"](c);
571
449
  } else
572
- c.nodeType === 1 && (n && (c["s-ih"] = (l = c.hidden) != null ? l : !1), c.hidden = !0);
450
+ c.nodeType === 1 && (s && (c["s-ih"] = (l = c.hidden) != null ? l : !1), c.hidden = !0);
573
451
  }
574
452
  }
575
- H && Te(u.$elm$), v.$flags$ &= -2, P.length = 0;
453
+ z && be(f.$elm$), v.$flags$ &= -2, C.length = 0;
576
454
  }
577
- Z = void 0;
578
- }, xe = (e, t) => {
455
+ Q = void 0;
456
+ }, _e = (e, t) => {
579
457
  if (t && !e.$onRenderResolve$ && t["s-p"]) {
580
- const n = t["s-p"].push(
458
+ const s = t["s-p"].push(
581
459
  new Promise(
582
- (s) => e.$onRenderResolve$ = () => {
583
- t["s-p"].splice(n - 1, 1), s();
460
+ (n) => e.$onRenderResolve$ = () => {
461
+ t["s-p"].splice(s - 1, 1), n();
584
462
  }
585
463
  )
586
464
  );
587
465
  }
588
- }, re = (e, t) => {
466
+ }, se = (e, t) => {
589
467
  if (e.$flags$ |= 16, e.$flags$ & 4) {
590
468
  e.$flags$ |= 512;
591
469
  return;
592
470
  }
593
- return xe(e, e.$ancestorComponent$), it(() => Et(e, t));
594
- }, Et = (e, t) => {
595
- const n = e.$hostElement$, s = _("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
471
+ return _e(e, e.$ancestorComponent$), it(() => Tt(e, t));
472
+ }, Tt = (e, t) => {
473
+ const s = e.$hostElement$, n = L("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
596
474
  if (!r)
597
475
  throw new Error(
598
- `Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
476
+ `Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
599
477
  );
600
478
  let i;
601
- return s(), kt(i, () => Ct(e, r, t));
602
- }, kt = (e, t) => Pt(e) ? e.then(t).catch((n) => {
603
- console.error(n), t();
604
- }) : t(), Pt = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Ct = async (e, t, n) => {
605
- var s;
606
- const r = e.$hostElement$, i = _("update", e.$cmpMeta$.$tagName$), l = r["s-rc"], a = _("render", e.$cmpMeta$.$tagName$);
607
- Lt(e, t, r, n), l && (l.map((o) => o()), r["s-rc"] = void 0), a(), i();
479
+ return n(), kt(i, () => Et(e, r, t));
480
+ }, kt = (e, t) => Ct(e) ? e.then(t).catch((s) => {
481
+ console.error(s), t();
482
+ }) : t(), Ct = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Et = async (e, t, s) => {
483
+ var n;
484
+ const r = e.$hostElement$, i = L("update", e.$cmpMeta$.$tagName$), l = r["s-rc"], a = L("render", e.$cmpMeta$.$tagName$);
485
+ _t(e, t, r, s), l && (l.map((o) => o()), r["s-rc"] = void 0), a(), i();
608
486
  {
609
- const o = (s = r["s-p"]) != null ? s : [], u = () => _t(e);
610
- o.length === 0 ? u() : (Promise.all(o).then(u), e.$flags$ |= 4, o.length = 0);
487
+ const o = (n = r["s-p"]) != null ? n : [], f = () => Lt(e);
488
+ o.length === 0 ? f() : (Promise.all(o).then(f), e.$flags$ |= 4, o.length = 0);
611
489
  }
612
- }, Lt = (e, t, n, s) => {
490
+ }, _t = (e, t, s, n) => {
613
491
  try {
614
- t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Tt(e, t, s);
492
+ t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Pt(e, t, n);
615
493
  } catch (r) {
616
- I(r, e.$hostElement$);
494
+ O(r, e.$hostElement$);
617
495
  }
618
496
  return null;
619
- }, _t = (e) => {
620
- const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, s = _("postUpdate", t), r = e.$lazyInstance$, i = e.$ancestorComponent$;
621
- e.$flags$ & 64 ? s() : (e.$flags$ |= 64, Oe(n), ae(r, "componentDidLoad", void 0, n), s(), e.$onReadyResolve$(n), i || Ae()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && ee(() => re(e, !1)), e.$flags$ &= -517;
622
- }, Ae = (e) => {
623
- Oe(E.documentElement), ee(() => bt(q, "appload", { detail: { namespace: Ye } }));
624
- }, ae = (e, t, n, s) => {
497
+ }, Lt = (e) => {
498
+ const t = e.$cmpMeta$.$tagName$, s = e.$hostElement$, n = L("postUpdate", t), r = e.$lazyInstance$, i = e.$ancestorComponent$;
499
+ e.$flags$ & 64 ? n() : (e.$flags$ |= 64, xe(s), ne(r, "componentDidLoad", void 0, s), n(), e.$onReadyResolve$(s), i || Le()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && Z(() => se(e, !1)), e.$flags$ &= -517;
500
+ }, Le = (e) => {
501
+ xe(T.documentElement), Z(() => mt(M, "appload", { detail: { namespace: Qe } }));
502
+ }, ne = (e, t, s, n) => {
625
503
  if (e && e[t])
626
504
  try {
627
- return e[t](n);
505
+ return e[t](s);
628
506
  } catch (r) {
629
- I(r, s);
507
+ O(r, n);
630
508
  }
631
- }, Oe = (e) => {
509
+ }, xe = (e) => {
632
510
  var t;
633
511
  return e.classList.add((t = w.hydratedSelectorName) != null ? t : "hydrated");
634
- }, xt = (e, t) => k(e).$instanceValues$.get(t), Q = (e, t, n, s) => {
512
+ }, xt = (e, t) => k(e).$instanceValues$.get(t), W = (e, t, s, n) => {
635
513
  const r = k(e);
636
514
  if (!r)
637
515
  throw new Error(
638
- `Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
516
+ `Couldn't find host element for "${n.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
639
517
  );
640
518
  const i = r.$hostElement$, l = r.$instanceValues$.get(t), a = r.$flags$, o = r.$lazyInstance$;
641
- n = J(n, s.$members$[t][0]);
642
- const u = Number.isNaN(l) && Number.isNaN(n), $ = n !== l && !u;
643
- if ((!(a & 8) || l === void 0) && $ && (r.$instanceValues$.set(t, n), o)) {
644
- if (s.$watchers$ && a & 128) {
645
- const c = s.$watchers$[t];
646
- c && c.map((f) => {
519
+ s = Y(s, n.$members$[t][0]);
520
+ const f = Number.isNaN(l) && Number.isNaN(s), $ = s !== l && !f;
521
+ if ((!(a & 8) || l === void 0) && $ && (r.$instanceValues$.set(t, s), o)) {
522
+ if (n.$watchers$ && a & 128) {
523
+ const c = n.$watchers$[t];
524
+ c && c.map((u) => {
647
525
  try {
648
- o[f](n, l, t);
526
+ o[u](s, l, t);
649
527
  } catch (d) {
650
- I(d, i);
528
+ O(d, i);
651
529
  }
652
530
  });
653
531
  }
654
- (a & 18) === 2 && re(r, !1);
532
+ (a & 18) === 2 && se(r, !1);
655
533
  }
656
- }, we = (e, t, n) => {
657
- var s, r;
534
+ }, we = (e, t, s) => {
535
+ var n, r;
658
536
  const i = e.prototype;
659
537
  if (t.$members$ || t.$watchers$ || e.watchers) {
660
538
  e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
661
- const l = Object.entries((s = t.$members$) != null ? s : {});
539
+ const l = Object.entries((n = t.$members$) != null ? n : {});
662
540
  if (l.map(([a, [o]]) => {
663
- if (o & 31 || n & 2 && o & 32) {
664
- const { get: u, set: $ } = Object.getOwnPropertyDescriptor(i, a) || {};
665
- u && (t.$members$[a][0] |= 2048), $ && (t.$members$[a][0] |= 4096), (n & 1 || !u) && Object.defineProperty(i, a, {
541
+ if (o & 31 || s & 2 && o & 32) {
542
+ const { get: f, set: $ } = Object.getOwnPropertyDescriptor(i, a) || {};
543
+ f && (t.$members$[a][0] |= 2048), $ && (t.$members$[a][0] |= 4096), (s & 1 || !f) && Object.defineProperty(i, a, {
666
544
  get() {
667
545
  {
668
546
  if (!(t.$members$[a][0] & 2048))
669
547
  return xt(this, a);
670
- const c = k(this), f = c ? c.$lazyInstance$ : i;
671
- return f ? f[a] : void 0;
548
+ const c = k(this), u = c ? c.$lazyInstance$ : i;
549
+ return u ? u[a] : void 0;
672
550
  }
673
551
  },
674
552
  configurable: !0,
675
553
  enumerable: !0
676
554
  }), Object.defineProperty(i, a, {
677
555
  set(c) {
678
- const f = k(this);
556
+ const u = k(this);
679
557
  if ($) {
680
- const d = o & 32 ? this[a] : f.$hostElement$[a];
681
- typeof d > "u" && f.$instanceValues$.get(a) ? c = f.$instanceValues$.get(a) : !f.$instanceValues$.get(a) && d && f.$instanceValues$.set(a, d), $.apply(this, [J(c, o)]), c = o & 32 ? this[a] : f.$hostElement$[a], Q(this, a, c, t);
558
+ const d = o & 32 ? this[a] : u.$hostElement$[a];
559
+ typeof d > "u" && u.$instanceValues$.get(a) ? c = u.$instanceValues$.get(a) : !u.$instanceValues$.get(a) && d && u.$instanceValues$.set(a, d), $.apply(this, [Y(c, o)]), c = o & 32 ? this[a] : u.$hostElement$[a], W(this, a, c, t);
682
560
  return;
683
561
  }
684
562
  {
685
- if (!(n & 1) || !(t.$members$[a][0] & 4096)) {
686
- Q(this, a, c, t), n & 1 && !f.$lazyInstance$ && f.$onReadyPromise$.then(() => {
687
- t.$members$[a][0] & 4096 && f.$lazyInstance$[a] !== f.$instanceValues$.get(a) && (f.$lazyInstance$[a] = c);
563
+ if (!(s & 1) || !(t.$members$[a][0] & 4096)) {
564
+ W(this, a, c, t), s & 1 && !u.$lazyInstance$ && u.$onReadyPromise$.then(() => {
565
+ t.$members$[a][0] & 4096 && u.$lazyInstance$[a] !== u.$instanceValues$.get(a) && (u.$lazyInstance$[a] = c);
688
566
  });
689
567
  return;
690
568
  }
691
569
  const d = () => {
692
- const p = f.$lazyInstance$[a];
693
- !f.$instanceValues$.get(a) && p && f.$instanceValues$.set(a, p), f.$lazyInstance$[a] = J(c, o), Q(this, a, f.$lazyInstance$[a], t);
570
+ const h = u.$lazyInstance$[a];
571
+ !u.$instanceValues$.get(a) && h && u.$instanceValues$.set(a, h), u.$lazyInstance$[a] = Y(c, o), W(this, a, u.$lazyInstance$[a], t);
694
572
  };
695
- f.$lazyInstance$ ? d() : f.$onReadyPromise$.then(() => d());
573
+ u.$lazyInstance$ ? d() : u.$onReadyPromise$.then(() => d());
696
574
  }
697
575
  }
698
576
  });
699
577
  }
700
- }), n & 1) {
578
+ }), s & 1) {
701
579
  const a = /* @__PURE__ */ new Map();
702
- i.attributeChangedCallback = function(o, u, $) {
580
+ i.attributeChangedCallback = function(o, f, $) {
703
581
  v.jmp(() => {
704
582
  var c;
705
- const f = a.get(o);
706
- if (this.hasOwnProperty(f) && w.lazyLoad)
707
- $ = this[f], delete this[f];
583
+ const u = a.get(o);
584
+ if (this.hasOwnProperty(u) && w.lazyLoad)
585
+ $ = this[u], delete this[u];
708
586
  else {
709
- if (i.hasOwnProperty(f) && typeof this[f] == "number" && // cast type to number to avoid TS compiler issues
710
- this[f] == $)
587
+ if (i.hasOwnProperty(u) && typeof this[u] == "number" && // cast type to number to avoid TS compiler issues
588
+ this[u] == $)
711
589
  return;
712
- if (f == null) {
713
- const p = k(this), g = p == null ? void 0 : p.$flags$;
714
- if (g && !(g & 8) && g & 128 && $ !== u) {
715
- const S = p.$lazyInstance$, y = (c = t.$watchers$) == null ? void 0 : c[o];
716
- y == null || y.forEach((h) => {
717
- S[h] != null && S[h].call(S, $, u, o);
590
+ if (u == null) {
591
+ const h = k(this), g = h == null ? void 0 : h.$flags$;
592
+ if (g && !(g & 8) && g & 128 && $ !== f) {
593
+ const S = h.$lazyInstance$, y = (c = t.$watchers$) == null ? void 0 : c[o];
594
+ y == null || y.forEach((p) => {
595
+ S[p] != null && S[p].call(S, $, f, o);
718
596
  });
719
597
  }
720
598
  return;
721
599
  }
722
600
  }
723
- const d = Object.getOwnPropertyDescriptor(i, f);
724
- $ = $ === null && typeof this[f] == "boolean" ? !1 : $, $ !== this[f] && (!d.get || d.set) && (this[f] = $);
601
+ const d = Object.getOwnPropertyDescriptor(i, u);
602
+ $ = $ === null && typeof this[u] == "boolean" ? !1 : $, $ !== this[u] && (!d.get || d.set) && (this[u] = $);
725
603
  });
726
604
  }, e.observedAttributes = Array.from(
727
605
  /* @__PURE__ */ new Set([
728
606
  ...Object.keys((r = t.$watchers$) != null ? r : {}),
729
607
  ...l.filter(
730
- ([o, u]) => u[0] & 15
608
+ ([o, f]) => f[0] & 15
731
609
  /* HasAttribute */
732
- ).map(([o, u]) => {
733
- const $ = u[1] || o;
610
+ ).map(([o, f]) => {
611
+ const $ = f[1] || o;
734
612
  return a.set($, o), $;
735
613
  })
736
614
  ])
@@ -738,85 +616,85 @@ var Z, ne, z = !1, H = !1, se = !1, R = !1, M = (e, t, n) => {
738
616
  }
739
617
  }
740
618
  return e;
741
- }, At = async (e, t, n, s) => {
619
+ }, wt = async (e, t, s, n) => {
742
620
  let r;
743
621
  if (!(t.$flags$ & 32)) {
744
622
  t.$flags$ |= 32;
745
623
  {
746
- const a = nt(n, t);
624
+ const a = st(s, t);
747
625
  if (a && "then" in a) {
748
- const u = ht();
749
- r = await a, u();
626
+ const f = pt();
627
+ r = await a, f();
750
628
  } else
751
629
  r = a;
752
630
  if (!r)
753
- throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);
754
- r.isProxied || (n.$watchers$ = r.watchers, we(
631
+ throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);
632
+ r.isProxied || (s.$watchers$ = r.watchers, we(
755
633
  r,
756
- n,
634
+ s,
757
635
  2
758
636
  /* proxyState */
759
637
  ), r.isProxied = !0);
760
- const o = _("createInstance", n.$tagName$);
638
+ const o = L("createInstance", s.$tagName$);
761
639
  t.$flags$ |= 8;
762
640
  try {
763
641
  new r(t);
764
- } catch (u) {
765
- I(u, e);
642
+ } catch (f) {
643
+ O(f, e);
766
644
  }
767
- t.$flags$ &= -9, t.$flags$ |= 128, o(), V(t.$lazyInstance$, e);
645
+ t.$flags$ &= -9, t.$flags$ |= 128, o(), J(t.$lazyInstance$, e);
768
646
  }
769
647
  }
770
- const i = t.$ancestorComponent$, l = () => re(t, !0);
648
+ const i = t.$ancestorComponent$, l = () => se(t, !0);
771
649
  i && i["s-rc"] ? i["s-rc"].push(l) : l();
772
- }, V = (e, t) => {
773
- ae(e, "connectedCallback", void 0, t);
650
+ }, J = (e, t) => {
651
+ ne(e, "connectedCallback", void 0, t);
774
652
  }, Ot = (e) => {
775
653
  if (!(v.$flags$ & 1)) {
776
- const t = k(e), n = t.$cmpMeta$, s = _("connectedCallback", n.$tagName$);
654
+ const t = k(e), s = t.$cmpMeta$, n = L("connectedCallback", s.$tagName$);
777
655
  if (t.$flags$ & 1)
778
- t != null && t.$lazyInstance$ ? V(t.$lazyInstance$, e) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => V(t.$lazyInstance$, e));
656
+ t != null && t.$lazyInstance$ ? J(t.$lazyInstance$, e) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => J(t.$lazyInstance$, e));
779
657
  else {
780
658
  t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
781
- n.$flags$ & 12 && wt(e);
659
+ s.$flags$ & 12 && It(e);
782
660
  {
783
661
  let r = e;
784
662
  for (; r = r.parentNode || r.host; )
785
663
  if (r["s-p"]) {
786
- xe(t, t.$ancestorComponent$ = r);
664
+ _e(t, t.$ancestorComponent$ = r);
787
665
  break;
788
666
  }
789
667
  }
790
- n.$members$ && Object.entries(n.$members$).map(([r, [i]]) => {
668
+ s.$members$ && Object.entries(s.$members$).map(([r, [i]]) => {
791
669
  if (i & 31 && e.hasOwnProperty(r)) {
792
670
  const l = e[r];
793
671
  delete e[r], e[r] = l;
794
672
  }
795
- }), At(e, t, n);
673
+ }), wt(e, t, s);
796
674
  }
797
- s();
675
+ n();
798
676
  }
799
- }, wt = (e) => {
800
- const t = e["s-cr"] = E.createComment(
677
+ }, It = (e) => {
678
+ const t = e["s-cr"] = T.createComment(
801
679
  ""
802
680
  );
803
- t["s-cn"] = !0, C(e, t, e.firstChild);
804
- }, be = (e, t) => {
805
- ae(e, "disconnectedCallback", void 0, t || e);
806
- }, It = async (e) => {
681
+ t["s-cn"] = !0, _(e, t, e.firstChild);
682
+ }, ve = (e, t) => {
683
+ ne(e, "disconnectedCallback", void 0, t || e);
684
+ }, At = async (e) => {
807
685
  if (!(v.$flags$ & 1)) {
808
686
  const t = k(e);
809
- t != null && t.$lazyInstance$ ? be(t.$lazyInstance$, e) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => be(t.$lazyInstance$, e));
687
+ t != null && t.$lazyInstance$ ? ve(t.$lazyInstance$, e) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => ve(t.$lazyInstance$, e));
810
688
  }
811
- B.has(e) && B.delete(e), e.shadowRoot && B.has(e.shadowRoot) && B.delete(e.shadowRoot);
689
+ j.has(e) && j.delete(e), e.shadowRoot && j.has(e.shadowRoot) && j.delete(e.shadowRoot);
812
690
  }, Ft = (e, t = {}) => {
813
- var n;
814
- const s = _(), r = [], i = t.exclude || [], l = q.customElements, a = E.head, o = /* @__PURE__ */ a.querySelector("meta[charset]"), u = /* @__PURE__ */ E.createElement("style"), $ = [];
815
- let c, f = !0;
816
- Object.assign(v, t), v.$resourcesUrl$ = new URL(t.resourcesUrl || "./", E.baseURI).href;
691
+ var s;
692
+ const n = L(), r = [], i = t.exclude || [], l = M.customElements, a = T.head, o = /* @__PURE__ */ a.querySelector("meta[charset]"), f = /* @__PURE__ */ T.createElement("style"), $ = [];
693
+ let c, u = !0;
694
+ Object.assign(v, t), v.$resourcesUrl$ = new URL(t.resourcesUrl || "./", T.baseURI).href;
817
695
  let d = !1;
818
- if (e.map((p) => {
819
- p[1].map((g) => {
696
+ if (e.map((h) => {
697
+ h[1].map((g) => {
820
698
  var S;
821
699
  const y = {
822
700
  $flags$: g[0],
@@ -825,46 +703,46 @@ var Z, ne, z = !1, H = !1, se = !1, R = !1, M = (e, t, n) => {
825
703
  $listeners$: g[3]
826
704
  };
827
705
  y.$flags$ & 4 && (d = !0), y.$members$ = g[2], y.$watchers$ = (S = g[4]) != null ? S : {};
828
- const h = y.$tagName$, F = class extends HTMLElement {
706
+ const p = y.$tagName$, I = class extends HTMLElement {
829
707
  // StencilLazyHost
830
- constructor(m) {
831
- super(m), this.hasRegisteredEventListeners = !1, m = this, tt(m, y);
708
+ constructor(b) {
709
+ super(b), this.hasRegisteredEventListeners = !1, b = this, tt(b, y);
832
710
  }
833
711
  connectedCallback() {
834
- k(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), c && (clearTimeout(c), c = null), f ? $.push(this) : v.jmp(() => Ot(this));
712
+ k(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), c && (clearTimeout(c), c = null), u ? $.push(this) : v.jmp(() => Ot(this));
835
713
  }
836
714
  disconnectedCallback() {
837
- v.jmp(() => It(this)), v.raf(() => {
838
- var m;
839
- const T = k(this);
840
- ((m = T == null ? void 0 : T.$vnode$) == null ? void 0 : m.$elm$) instanceof Node && !T.$vnode$.$elm$.isConnected && delete T.$vnode$.$elm$;
715
+ v.jmp(() => At(this)), v.raf(() => {
716
+ var b;
717
+ const P = k(this);
718
+ ((b = P == null ? void 0 : P.$vnode$) == null ? void 0 : b.$elm$) instanceof Node && !P.$vnode$.$elm$.isConnected && delete P.$vnode$.$elm$;
841
719
  });
842
720
  }
843
721
  componentOnReady() {
844
722
  return k(this).$onReadyPromise$;
845
723
  }
846
724
  };
847
- y.$lazyBundleId$ = p[0], !i.includes(h) && !l.get(h) && (r.push(h), l.define(
848
- h,
725
+ y.$lazyBundleId$ = h[0], !i.includes(p) && !l.get(p) && (r.push(p), l.define(
726
+ p,
849
727
  we(
850
- F,
728
+ I,
851
729
  y,
852
730
  1
853
731
  /* isElementConstructor */
854
732
  )
855
733
  ));
856
734
  });
857
- }), r.length > 0 && (d && (u.textContent += rt), u.textContent += r.sort() + st, u.innerHTML.length)) {
858
- u.setAttribute("data-styles", "");
859
- const p = (n = v.$nonce$) != null ? n : ct(E);
860
- p != null && u.setAttribute("nonce", p), a.insertBefore(u, o ? o.nextSibling : a.firstChild);
735
+ }), r.length > 0 && (d && (f.textContent += rt), f.textContent += r.sort() + nt, f.innerHTML.length)) {
736
+ f.setAttribute("data-styles", "");
737
+ const h = (s = v.$nonce$) != null ? s : ct(T);
738
+ h != null && f.setAttribute("nonce", h), a.insertBefore(f, o ? o.nextSibling : a.firstChild);
861
739
  }
862
- f = !1, $.length ? $.map((p) => p.connectedCallback()) : v.jmp(() => c = setTimeout(Ae, 30)), s();
740
+ u = !1, $.length ? $.map((h) => h.connectedCallback()) : v.jmp(() => c = setTimeout(Le, 30)), n();
863
741
  };
864
- const jt = () => {
865
- }, Nt = async (e, t) => {
742
+ const Dt = () => {
743
+ }, jt = async (e, t) => {
866
744
  if (!(typeof window > "u"))
867
- return await jt(), Ft([["searchcraft-filter-panel", [[0, "searchcraft-filter-panel", { items: [16], unsubscribe: [32], lastQuery: [32] }]]], ["searchcraft-base-search-results", [[4, "searchcraft-base-search-results", { adInterval: [2, "ad-interval"], customStylesForResults: [1, "custom-styles-for-results"], searchResultMappings: [16], placeAdAtEnd: [4, "place-ad-at-end"], placeAdAtStart: [4, "place-ad-at-start"], resultImagePlacement: [1, "result-image-placement"], buttonLabel: [1, "button-label"], buttonTarget: [1, "button-target"], buttonRel: [1, "button-rel"], containerTarget: [1, "container-target"], containerRel: [1, "container-rel"], hasSearched: [32], query: [32], searchResults: [32] }]]], ["searchcraft-popover-button", [[4, "searchcraft-popover-button"]]], ["searchcraft-results-info", [[0, "searchcraft-results-info", { isRequesting: [32], resultsCount: [32], responseTime: [32], query: [32] }]]], ["searchcraft-theme", [[0, "searchcraft-theme"]]], ["searchcraft-base-search-result", [[0, "searchcraft-base-search-result", { titleContent: [1, "title-content"], subtitleContent: [1, "subtitle-content"], bodyContent: [1, "body-content"], footerContent: [1, "footer-content"], buttonLabel: [1, "button-label"], buttonHref: [1, "button-href"], buttonTarget: [1, "button-target"], buttonRel: [1, "button-rel"], containerHref: [1, "container-href"], containerTarget: [1, "container-target"], containerRel: [1, "container-rel"], imageSrc: [1, "image-src"], imageAlt: [1, "image-alt"], imagePlacement: [1, "image-placement"], customStyles: [1, "custom-styles"], documentPosition: [2, "document-position"] }]]], ["searchcraft-popover-list-item", [[0, "searchcraft-popover-list-item", { titleContent: [1, "title-content"], subtitleContent: [1, "subtitle-content"], imageSrc: [1, "image-src"], imageAlt: [1, "image-alt"], href: [1], documentPosition: [2, "document-position"] }]]], ["searchcraft-button_3", [[0, "searchcraft-button", { iconElement: [16], iconOnly: [4, "icon-only"], iconPosition: [1, "icon-position"], label: [1], isRequesting: [32] }], [0, "searchcraft-input-label", { inputLabelClassName: [1, "input-label-class-name"], label: [1] }], [0, "searchcraft-error-message", { errorMessage: [1, "error-message"] }]]], ["searchcraft-input-form_2", [[0, "searchcraft-input-form", { config: [16], autoSearch: [4, "auto-search"], buttonPlacement: [1, "button-placement"], buttonLabel: [1, "button-label"], inputLabel: [1, "input-label"], customStyles: [1, "custom-styles"], placeholderValue: [1, "placeholder-value"], searchTerm: [1, "search-term"], inputValue: [32], error: [32], isSearchcraftInitialized: [32] }, null, { config: ["onConfigChange"] }], [0, "searchcraft-popover-list-view", { popoverResultMappings: [16], documents: [16] }]]], ["searchcraft-popover-form", [[0, "searchcraft-popover-form", { config: [16], type: [1], popoverResultMappings: [16], hotkey: [1], hotkeyModifier: [1, "hotkey-modifier"], isPopoverVisibleInState: [32], unsubscribe: [32], searchResults: [32], searchTerm: [32], isFocused: [32], breakpointSm: [32], breakpointMd: [32], breakpointLg: [32], modalElement: [32] }]]], ["searchcraft-facet-list_3", [[0, "searchcraft-facet-list", { fieldName: [1, "field-name"], baseFacetRoot: [32], facetRoot: [32], selectedPaths: [32], lastTimeTaken: [32], hasNewSearchTerm: [32], lastQuery: [32], lastSearchMode: [32], lastSortType: [32], unsubscribe: [32] }], [0, "searchcraft-slider", { max: [2], min: [2], granularity: [2], dataType: [1, "data-type"], endValue: [32], startValue: [32], lastFocusedHandle: [32] }], [0, "searchcraft-toggle-button", { label: [1], subLabel: [1, "sub-label"], isActive: [32], unsubscribe: [32], lastQuery: [32] }]]]], t);
745
+ return await Dt(), Ft([["searchcraft-base-search-results", [[4, "searchcraft-base-search-results", { customStylesForResults: [1, "custom-styles-for-results"], searchResultMappings: [16], resultImagePlacement: [1, "result-image-placement"], buttonLabel: [1, "button-label"], buttonTarget: [1, "button-target"], buttonRel: [1, "button-rel"], containerTarget: [1, "container-target"], containerRel: [1, "container-rel"], searchTerm: [32], searchClientResponseItems: [32], adClientResponseItems: [32], searchResultsPerPage: [32], searchResultsPage: [32] }]]], ["searchcraft-filter-panel", [[0, "searchcraft-filter-panel", { items: [16], unsubscribe: [32], lastSearchTerm: [32] }]]], ["searchcraft-pagination", [[0, "searchcraft-pagination", { customStyles: [1, "custom-styles"], searchTerm: [32], searchResultsPerPage: [32], searchResultsPage: [32], searchResultsCount: [32], searchResultsPagesCount: [32], searchResultsRangeMin: [32], searchResultsRangeMax: [32], setSearchResultsPage: [32] }]]], ["searchcraft-search-results-per-page", [[0, "searchcraft-search-results-per-page", { increment: [8], customStyles: [1, "custom-styles"], searchTerm: [32], searchResultsPage: [32], searchResultsPerPage: [32], searchResultsCount: [32], searchResultsPagesCount: [32], initialSearchResultsPerPage: [32], setSearchResultsPerPage: [32], setSearchResultsPage: [32] }]]], ["searchcraft-popover-button", [[4, "searchcraft-popover-button"]]], ["searchcraft-results-info", [[0, "searchcraft-results-info", { customFormatter: [16], customStyles: [1, "custom-styles"], searchTerm: [32], searchResultsPage: [32], searchResultsPerPage: [32], searchResultsCount: [32], count: [32], range: [32], responseTime: [32] }]]], ["searchcraft-theme", [[0, "searchcraft-theme", { theme: [1], customTheme: [1, "custom-theme"] }]]], ["searchcraft-input-form_2", [[0, "searchcraft-input-form", { config: [16], autoSearch: [4, "auto-search"], buttonPlacement: [1, "button-placement"], buttonLabel: [1, "button-label"], inputLabel: [1, "input-label"], customStyles: [1, "custom-styles"], placeholderValue: [1, "placeholder-value"], searchTerm: [1, "search-term"], inputValue: [32], error: [32], isSearchcraftInitialized: [32] }, null, { config: ["onConfigChange"] }], [0, "searchcraft-popover-list-view", { popoverResultMappings: [16], searchClientResponseItems: [16], adClientResponseItems: [16], searchResultsPage: [2, "search-results-page"], searchResultsPerPage: [2, "search-results-per-page"] }]]], ["searchcraft-popover-form", [[0, "searchcraft-popover-form", { config: [16], type: [1], popoverResultMappings: [16], hotkey: [1], hotkeyModifier: [1, "hotkey-modifier"], isPopoverVisibleInState: [32], unsubscribe: [32], searchClientResponseItems: [32], adClientResponseItems: [32], searchTerm: [32], isFocused: [32], breakpointSm: [32], breakpointMd: [32], breakpointLg: [32], searchResultsPage: [32], searchResultsPerPage: [32], modalElement: [32] }]]], ["searchcraft-select", [[0, "searchcraft-select", { caption: [1], disabled: [4], inputId: [1, "input-id"], label: [1], labelId: [1, "label-id"], name: [1], options: [1], customStyles: [1, "custom-styles"], searchResultsPerPage: [32], setSearchResultsPage: [32], setSearchResultsPerPage: [32] }]]], ["searchcraft-base-search-result_2", [[0, "searchcraft-base-search-result", { item: [16], searchResultMappings: [16], containerTarget: [1, "container-target"], containerRel: [1, "container-rel"], buttonTarget: [1, "button-target"], buttonRel: [1, "button-rel"], imagePlacement: [1, "image-placement"], customStyles: [1, "custom-styles"], documentPosition: [2, "document-position"], titleContent: [32], subtitleContent: [32], bodyContent: [32], footerContent: [32], buttonLabel: [32], buttonHref: [32], containerHref: [32], imageSrc: [32], imageAlt: [32] }], [0, "searchcraft-base-search-result-ad", { adClientResponseItem: [16] }]]], ["searchcraft-facet-list_3", [[0, "searchcraft-facet-list", { fieldName: [1, "field-name"], baseFacetRoot: [32], facetRoot: [32], selectedPaths: [32], lastTimeTaken: [32], hasNewSearchTerm: [32], lastSearchTerm: [32], lastSearchMode: [32], lastSortType: [32], unsubscribe: [32] }], [0, "searchcraft-slider", { max: [2], min: [2], granularity: [2], dataType: [1, "data-type"], endValue: [32], startValue: [32], lastFocusedHandle: [32] }], [0, "searchcraft-toggle-button", { label: [1], subLabel: [1, "sub-label"], isActive: [32], unsubscribe: [32], lastSearchTerm: [32] }]]], ["searchcraft-popover-list-item_2", [[0, "searchcraft-popover-list-item", { item: [16], popoverResultMappings: [16], documentPosition: [2, "document-position"], href: [32], imageSrc: [32], imageAlt: [32], titleContent: [32], subtitleContent: [32] }], [0, "searchcraft-popover-list-item-ad", { adClientResponseItem: [16] }]]], ["searchcraft-button_3", [[0, "searchcraft-input-label", { inputLabelClassName: [1, "input-label-class-name"], label: [1] }], [0, "searchcraft-button", { hierarchy: [1], disabled: [4], icon: [16], iconOnly: [4, "icon-only"], iconPosition: [1, "icon-position"], label: [1], type: [1] }], [0, "searchcraft-error-message", { errorMessage: [1, "error-message"] }]]]], t);
868
746
  };
869
747
  (function() {
870
748
  if (typeof window < "u" && window.Reflect !== void 0 && window.customElements !== void 0) {
@@ -874,19 +752,21 @@ const jt = () => {
874
752
  }, HTMLElement.prototype = e.prototype, HTMLElement.prototype.constructor = HTMLElement, Object.setPrototypeOf(HTMLElement, e);
875
753
  }
876
754
  })();
877
- const Qt = {
755
+ const Kt = {
878
756
  async install() {
879
- Nt();
757
+ jt();
880
758
  }
881
759
  };
882
760
  export {
883
- Qt as ComponentLibrary,
884
- Bt as SearchcraftBaseSearchResults,
885
- Ut as SearchcraftFilterPanel,
886
- zt as SearchcraftInputForm,
887
- Ht as SearchcraftPopoverButton,
888
- Mt as SearchcraftPopoverForm,
889
- qt as SearchcraftResultsInfo,
890
- Wt as SearchcraftTheme
761
+ Kt as ComponentLibrary,
762
+ Ut as SearchcraftBaseSearchResults,
763
+ zt as SearchcraftFilterPanel,
764
+ Ht as SearchcraftInputForm,
765
+ Gt as SearchcraftPagination,
766
+ Mt as SearchcraftPopoverButton,
767
+ Bt as SearchcraftPopoverForm,
768
+ Wt as SearchcraftResultsInfo,
769
+ Xt as SearchcraftSearchResultsPerPage,
770
+ qt as SearchcraftTheme
891
771
  };
892
772
  //# sourceMappingURL=index.es.js.map