@telia-ace/widget-runtime-flamingo 1.0.9 → 1.0.11

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.
@@ -1,16 +1,16 @@
1
- var Br = Object.defineProperty, Vr = Object.defineProperties;
2
- var zr = Object.getOwnPropertyDescriptors;
3
- var on = Object.getOwnPropertySymbols, Wr = Object.getPrototypeOf, Fr = Object.prototype.hasOwnProperty, qr = Object.prototype.propertyIsEnumerable, Jr = Reflect.get;
4
- var an = (n, t, e) => t in n ? Br(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, st = (n, t) => {
1
+ var qr = Object.defineProperty, Jr = Object.defineProperties;
2
+ var Kr = Object.getOwnPropertyDescriptors;
3
+ var un = Object.getOwnPropertySymbols, Gr = Object.getPrototypeOf, Yr = Object.prototype.hasOwnProperty, Zr = Object.prototype.propertyIsEnumerable, Qr = Reflect.get;
4
+ var dn = (n, t, e) => t in n ? qr(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, tt = (n, t) => {
5
5
  for (var e in t || (t = {}))
6
- Fr.call(t, e) && an(n, e, t[e]);
7
- if (on)
8
- for (var e of on(t))
9
- qr.call(t, e) && an(n, e, t[e]);
6
+ Yr.call(t, e) && dn(n, e, t[e]);
7
+ if (un)
8
+ for (var e of un(t))
9
+ Zr.call(t, e) && dn(n, e, t[e]);
10
10
  return n;
11
- }, zt = (n, t) => Vr(n, zr(t));
12
- var cn = (n, t, e) => Jr(Wr(n), e, t);
13
- var z = (n, t, e) => new Promise((r, s) => {
11
+ }, Mt = (n, t) => Jr(n, Kr(t));
12
+ var pn = (n, t, e) => Qr(Gr(n), e, t);
13
+ var B = (n, t, e) => new Promise((r, s) => {
14
14
  var i = (c) => {
15
15
  try {
16
16
  a(e.next(c));
@@ -26,7 +26,7 @@ var z = (n, t, e) => new Promise((r, s) => {
26
26
  }, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(i, o);
27
27
  a((e = e.apply(n, t)).next());
28
28
  });
29
- const Ee = (n, t, e, ...r) => {
29
+ const Pe = (n, t, e, ...r) => {
30
30
  const s = `[${n.get("$environment").name || "webprovisions"}] ${e}`;
31
31
  switch (t) {
32
32
  case "info":
@@ -39,16 +39,16 @@ const Ee = (n, t, e, ...r) => {
39
39
  console.error(s, ...r);
40
40
  break;
41
41
  }
42
- }, Kr = (n) => {
42
+ }, Xr = (n) => {
43
43
  const t = n.container || n;
44
44
  return {
45
- info: (e, ...r) => Ee(t, "info", e, ...r),
46
- warn: (e, ...r) => Ee(t, "warning", e, ...r),
47
- error: (e, ...r) => Ee(t, "error", e, ...r)
45
+ info: (e, ...r) => Pe(t, "info", e, ...r),
46
+ warn: (e, ...r) => Pe(t, "warning", e, ...r),
47
+ error: (e, ...r) => Pe(t, "error", e, ...r)
48
48
  };
49
49
  };
50
- var se = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(se || {}), pt = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(pt || {});
51
- const Gr = (n, t, e, r) => {
50
+ var he = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(he || {}), mt = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(mt || {});
51
+ const ts = (n, t, e, r) => {
52
52
  try {
53
53
  const s = new t(e, r);
54
54
  return {
@@ -72,23 +72,23 @@ const Gr = (n, t, e, r) => {
72
72
  throw s;
73
73
  }
74
74
  };
75
- function hn(n, t) {
75
+ function gn(n, t) {
76
76
  return typeof n == "undefined" ? t : n;
77
77
  }
78
- let Yr = class {
78
+ let es = class {
79
79
  constructor(t = {}) {
80
80
  this.part = t;
81
81
  }
82
82
  createCommand(t, e, r) {
83
83
  let s;
84
84
  typeof e == "function" ? s = {
85
- scope: se.Widget,
86
- stage: pt.Post,
85
+ scope: he.Widget,
86
+ stage: mt.Post,
87
87
  defaultArgs: void 0,
88
88
  handlerResolver: e
89
89
  } : s = {
90
- scope: hn(e.scope, se.Widget),
91
- stage: hn(e.stage, pt.Post),
90
+ scope: gn(e.scope, he.Widget),
91
+ stage: gn(e.stage, mt.Post),
92
92
  defaultArgs: e.defaultArgs,
93
93
  handlerResolver: r
94
94
  };
@@ -102,26 +102,26 @@ let Yr = class {
102
102
  return this.part;
103
103
  }
104
104
  };
105
- const Je = (n) => {
106
- const t = new Yr({});
105
+ const Xe = (n) => {
106
+ const t = new es({});
107
107
  return n(t), t.get();
108
108
  };
109
- Je((n) => {
109
+ Xe((n) => {
110
110
  n.createCommand(
111
111
  "types.register",
112
- { scope: se.Implementation, stage: pt.Pre },
112
+ { scope: he.Implementation, stage: mt.Pre },
113
113
  (t) => (e, r) => {
114
114
  t.container.get("$types")[e] = r;
115
115
  }
116
116
  ).createCommand(
117
117
  "type",
118
- { stage: pt.Pre },
118
+ { stage: mt.Pre },
119
119
  (t) => (e) => {
120
120
  t.container.register("$type", e);
121
121
  }
122
122
  ).createCommand(
123
123
  "settings",
124
- { stage: pt.Pre, defaultArgs: [null] },
124
+ { stage: mt.Pre, defaultArgs: [null] },
125
125
  (t) => (e) => {
126
126
  t.events.dispatch(
127
127
  "settings:change",
@@ -131,7 +131,7 @@ Je((n) => {
131
131
  }
132
132
  ).createCommand(
133
133
  "plugin",
134
- { stage: pt.Pre },
134
+ { stage: mt.Pre },
135
135
  (t) => (e, r, s) => {
136
136
  const { container: i } = t;
137
137
  let o = null, a = e, c = r;
@@ -144,7 +144,7 @@ Je((n) => {
144
144
  a
145
145
  ) : r;
146
146
  try {
147
- const p = Gr(
147
+ const p = ts(
148
148
  o,
149
149
  a,
150
150
  i,
@@ -152,7 +152,7 @@ Je((n) => {
152
152
  );
153
153
  i.get("$plugins").push(p), l && p.invoke("initialize", null);
154
154
  } catch (p) {
155
- Kr(t).warn("Error when initializing plugin", p);
155
+ Xr(t).warn("Error when initializing plugin", p);
156
156
  }
157
157
  };
158
158
  t.container.get("$instance") ? h(!0) : t.events.subscribeOnce("widget:instance-created", () => h(!1));
@@ -185,8 +185,8 @@ Je((n) => {
185
185
  }
186
186
  );
187
187
  });
188
- var Qn = /* @__PURE__ */ ((n) => (n.Activating = "activating", n.Loading = "loading", n.Activated = "activated", n.Deactivating = "deactivating", n.Deactivated = "deactivated", n))(Qn || {});
189
- let Zr = class {
188
+ var nr = /* @__PURE__ */ ((n) => (n.Activating = "activating", n.Loading = "loading", n.Activated = "activated", n.Deactivating = "deactivating", n.Deactivated = "deactivated", n))(nr || {});
189
+ let ns = class {
190
190
  /**
191
191
  * Creates a new `Widget` instance.
192
192
  * @param container The `Container` instance to base the widget upon.
@@ -197,16 +197,16 @@ let Zr = class {
197
197
  });
198
198
  }
199
199
  };
200
- var ln = Object.getOwnPropertySymbols, Qr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable, ts = (n, t) => {
200
+ var fn = Object.getOwnPropertySymbols, rs = Object.prototype.hasOwnProperty, ss = Object.prototype.propertyIsEnumerable, is = (n, t) => {
201
201
  var e = {};
202
202
  for (var r in n)
203
- Qr.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);
204
- if (n != null && ln)
205
- for (var r of ln(n))
206
- t.indexOf(r) < 0 && Xr.call(n, r) && (e[r] = n[r]);
203
+ rs.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);
204
+ if (n != null && fn)
205
+ for (var r of fn(n))
206
+ t.indexOf(r) < 0 && ss.call(n, r) && (e[r] = n[r]);
207
207
  return e;
208
208
  };
209
- function es(n = {}) {
209
+ function os(n = {}) {
210
210
  const t = n, {
211
211
  phrase: e = "",
212
212
  category: r,
@@ -221,7 +221,7 @@ function es(n = {}) {
221
221
  tag: d,
222
222
  tagId: p,
223
223
  tagTitle: b
224
- } = t, v = ts(t, [
224
+ } = t, v = is(t, [
225
225
  "phrase",
226
226
  "category",
227
227
  "guideCategory",
@@ -236,33 +236,33 @@ function es(n = {}) {
236
236
  "tagId",
237
237
  "tagTitle"
238
238
  ]), g = {};
239
- return Object.keys(v).forEach((O) => {
240
- typeof n[O] == "string" && (g[O] = n[O]);
239
+ return Object.keys(v).forEach((E) => {
240
+ typeof n[E] == "string" && (g[E] = n[E]);
241
241
  }), typeof e == "string" && e.length && (g.phrase = e), e === null && (g.phrase = e), typeof s == "string" && s !== "0" && (g.guideCategory = s), typeof s == "number" && s !== 0 && (g.guideCategory = s), typeof s == "object" && s !== null && (typeof s.id == "string" && s.id !== "0" && (g.guideCategory = s.id), typeof s.id == "number" && s.id !== 0 && (g.guideCategory = s.id)), typeof i == "string" && i !== "0" && (g.contactCategory = i), typeof i == "number" && i !== 0 && (g.contactCategory = i), typeof i == "object" && i !== null && (typeof i.id == "string" && i.id !== "0" && (g.contactCategory = i.id), typeof i.id == "number" && i.id !== 0 && (g.contactCategory = i.id)), typeof r == "string" && r !== "0" && (g.category = r), typeof r == "number" && r !== 0 && (g.category = r), typeof r == "object" && r !== null && (typeof r.id == "string" && r.id !== "0" && (g.category = r.id), typeof r.id == "number" && r.id !== 0 && (g.category = r.id)), h && (g.id = h), l && (+g.category || +g.guideCategory || +g.guide || +g.contactCategory || +g.contactMethod) && (g.uriName = l), a && (g.connectionKey = a), o && (g.take = o), u && (g.sorting = u), typeof c == "string" && c.length > 0 && (g.accordion = c), typeof d == "string" && d !== "0" && (g.tag = d), typeof d == "number" && d !== 0 && (g.tag = d), Array.isArray(d) && d.length && (g.tag = d), (typeof p == "string" || typeof p == "number") && (g.tagId = p), typeof b == "string" && (g.tagTitle = b), typeof g.tag == "string" && (g.tag = g.tag.split(",")), g;
242
242
  }
243
- const pe = (n, t, ...e) => typeof t == "string" ? n(`[humany] ${t}`, ...e) : n(t, ...e), Nt = class {
243
+ const be = (n, t, ...e) => typeof t == "string" ? n(`[humany] ${t}`, ...e) : n(t, ...e), Rt = class {
244
244
  constructor() {
245
- this.keys = [], this.log = (t, ...e) => this.lookup(t, () => Nt.log(...e)), this.warn = (t, ...e) => this.lookup(t, () => Nt.warn(...e)), this.error = (t, ...e) => this.lookup(t, () => Nt.error(...e)), this.info = (t, ...e) => this.lookup(t, () => Nt.info(...e));
245
+ this.keys = [], this.log = (t, ...e) => this.lookup(t, () => Rt.log(...e)), this.warn = (t, ...e) => this.lookup(t, () => Rt.warn(...e)), this.error = (t, ...e) => this.lookup(t, () => Rt.error(...e)), this.info = (t, ...e) => this.lookup(t, () => Rt.info(...e));
246
246
  }
247
247
  lookup(t, e) {
248
248
  this.keys.indexOf(t) === -1 && (this.keys.push(t), e());
249
249
  }
250
250
  };
251
- let I = Nt;
252
- I.log = (...n) => pe(console.log, ...n);
253
- I.warn = (...n) => pe(console.warn, ...n);
254
- I.error = (...n) => pe(console.error, ...n);
255
- I.info = (...n) => pe(console.info, ...n);
256
- const Xn = (n) => {
251
+ let I = Rt;
252
+ I.log = (...n) => be(console.log, ...n);
253
+ I.warn = (...n) => be(console.warn, ...n);
254
+ I.error = (...n) => be(console.error, ...n);
255
+ I.info = (...n) => be(console.info, ...n);
256
+ const rr = (n) => {
257
257
  let t = {}, e, r;
258
258
  if (typeof n != "object" || n === null)
259
259
  return n;
260
260
  t = Array.isArray(n) ? [] : {};
261
261
  for (r in n)
262
- e = n[r], t[r] = typeof e == "object" && e !== null ? Xn(e) : e;
262
+ e = n[r], t[r] = typeof e == "object" && e !== null ? rr(e) : e;
263
263
  return t;
264
- }, ns = Xn;
265
- function un(n) {
264
+ }, as = rr;
265
+ function mn(n) {
266
266
  let t = 0;
267
267
  if (n.length === 0)
268
268
  return t.toString();
@@ -272,7 +272,7 @@ function un(n) {
272
272
  }
273
273
  return t.toString();
274
274
  }
275
- let rs = class {
275
+ let cs = class {
276
276
  constructor(t, e) {
277
277
  this.lockWarningTime = t, this.lockErrorTime = e, this.tasks = [], this.current = Promise.resolve(), this.next = this.next.bind(this);
278
278
  }
@@ -302,16 +302,16 @@ let rs = class {
302
302
  });
303
303
  }
304
304
  };
305
- const Wt = /* @__PURE__ */ new WeakMap();
306
- function Q(n, t = 5e3, e = 1e3) {
307
- return Wt.has(n) || Wt.set(n, new rs(t, e)), (r) => new Promise((s, i) => {
308
- const o = Wt.get(n);
305
+ const Gt = /* @__PURE__ */ new WeakMap();
306
+ function X(n, t = 5e3, e = 1e3) {
307
+ return Gt.has(n) || Gt.set(n, new cs(t, e)), (r) => new Promise((s, i) => {
308
+ const o = Gt.get(n);
309
309
  o.add(r, s, i, () => {
310
- o.tasks.length || Wt.delete(n);
310
+ o.tasks.length || Gt.delete(n);
311
311
  });
312
312
  });
313
313
  }
314
- const ss = (n, t) => {
314
+ const hs = (n, t) => {
315
315
  const e = () => t.querySelectorAll("[data-loading=true]").length > 0, r = (() => {
316
316
  let s = !1;
317
317
  return () => {
@@ -331,7 +331,7 @@ const ss = (n, t) => {
331
331
  childList: !0,
332
332
  subtree: !0
333
333
  });
334
- }, is = (n, t) => {
334
+ }, ls = (n, t) => {
335
335
  n.get("$widget").container.getAsync("components").then((e) => {
336
336
  e.events.subscribeOnce("components:component-model-initialized", () => {
337
337
  let r = e.nodes.visible.reduce(
@@ -347,7 +347,7 @@ const ss = (n, t) => {
347
347
  const u = l.getAttribute && l.getAttribute("data-name");
348
348
  return u && r.indexOf(u) > -1 && h.push(u), h;
349
349
  }, []);
350
- r = r.filter((h) => c.indexOf(h) === -1), !s && r.length === 0 && (s = !0, ss(n, t), o.disconnect());
350
+ r = r.filter((h) => c.indexOf(h) === -1), !s && r.length === 0 && (s = !0, hs(n, t), o.disconnect());
351
351
  }
352
352
  });
353
353
  }).observe(t, {
@@ -360,9 +360,9 @@ const ss = (n, t) => {
360
360
  });
361
361
  });
362
362
  });
363
- }, os = is, as = (n = {}) => (Object.keys(n).forEach((t) => {
363
+ }, us = ls, ds = (n = {}) => (Object.keys(n).forEach((t) => {
364
364
  (n[t] === null || typeof n[t] == "undefined") && delete n[t];
365
- }), n), yt = as, dn = (n, t) => {
365
+ }), n), $t = ds, vn = (n, t) => {
366
366
  let e = !0;
367
367
  return Object.keys(n).length !== Object.keys(t).length || Object.keys(n).some((r) => !Object.keys(t).some((s) => r === s)) ? !1 : (Object.keys(n).forEach((r) => {
368
368
  if (e) {
@@ -370,19 +370,19 @@ const ss = (n, t) => {
370
370
  e = s.toString() === i.toString();
371
371
  }
372
372
  }), e);
373
- }, it = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
374
- function Bt() {
375
- return it() + it() + "-" + it() + "-" + it() + "-" + it() + "-" + it() + it() + it();
373
+ }, ot = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
374
+ function qt() {
375
+ return ot() + ot() + "-" + ot() + "-" + ot() + "-" + ot() + "-" + ot() + ot() + ot();
376
376
  }
377
- var cs = Object.defineProperty, hs = Object.defineProperties, ls = Object.getOwnPropertyDescriptors, pn = Object.getOwnPropertySymbols, us = Object.prototype.hasOwnProperty, ds = Object.prototype.propertyIsEnumerable, gn = (n, t, e) => t in n ? cs(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, ps = (n, t) => {
377
+ var ps = Object.defineProperty, gs = Object.defineProperties, fs = Object.getOwnPropertyDescriptors, yn = Object.getOwnPropertySymbols, ms = Object.prototype.hasOwnProperty, vs = Object.prototype.propertyIsEnumerable, bn = (n, t, e) => t in n ? ps(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, ys = (n, t) => {
378
378
  for (var e in t || (t = {}))
379
- us.call(t, e) && gn(n, e, t[e]);
380
- if (pn)
381
- for (var e of pn(t))
382
- ds.call(t, e) && gn(n, e, t[e]);
379
+ ms.call(t, e) && bn(n, e, t[e]);
380
+ if (yn)
381
+ for (var e of yn(t))
382
+ vs.call(t, e) && bn(n, e, t[e]);
383
383
  return n;
384
- }, gs = (n, t) => hs(n, ls(t));
385
- class fs {
384
+ }, bs = (n, t) => gs(n, fs(t));
385
+ class ws {
386
386
  constructor(t) {
387
387
  const { events: e } = t.get("$widget");
388
388
  this.events = e.createChild(this);
@@ -397,7 +397,7 @@ class fs {
397
397
  );
398
398
  }
399
399
  }
400
- const tr = (n) => {
400
+ const sr = (n) => {
401
401
  const t = [];
402
402
  return [
403
403
  (e, r) => {
@@ -410,7 +410,7 @@ const tr = (n) => {
410
410
  }
411
411
  ];
412
412
  };
413
- let Pt = class {
413
+ let Nt = class {
414
414
  constructor(t, e = []) {
415
415
  this.platform = t, this.rules = e;
416
416
  }
@@ -424,16 +424,16 @@ let Pt = class {
424
424
  return this.rules.push({ id: t }), this;
425
425
  }
426
426
  select() {
427
- return new ms(this.platform, this);
427
+ return new $s(this.platform, this);
428
428
  }
429
- }, Ke = class {
429
+ }, tn = class {
430
430
  constructor(t, e, r) {
431
- this.platform = t, this.node = e, this.actions = new ge(
431
+ this.platform = t, this.node = e, this.actions = new we(
432
432
  t,
433
- new Pt(t).withId(e.id),
433
+ new Nt(t).withId(e.id),
434
434
  r
435
435
  );
436
- const [s, i] = tr(this.platform.events);
436
+ const [s, i] = sr(this.platform.events);
437
437
  this.subscribe = s, this.unsubscribe = i;
438
438
  }
439
439
  properties(t) {
@@ -462,9 +462,9 @@ let Pt = class {
462
462
  this.unsubscribe(), this.actions.dispose();
463
463
  }
464
464
  };
465
- class ms {
465
+ class $s {
466
466
  constructor(t, e, r = !0) {
467
- this.platform = t, this.target = e, this.clearOnDispose = r, this.removes = [], this.actions = new ge(this.platform, this.target);
467
+ this.platform = t, this.target = e, this.clearOnDispose = r, this.removes = [], this.actions = new we(this.platform, this.target);
468
468
  }
469
469
  writeProperties(t, e) {
470
470
  this.removes.push(
@@ -502,12 +502,12 @@ class ms {
502
502
  }), this.actions.dispose();
503
503
  }
504
504
  }
505
- const vs = (n, t, e) => {
505
+ const Os = (n, t, e) => {
506
506
  const r = n.concat(), s = (i, o, a) => {
507
507
  let c = !0;
508
508
  if (r.length) {
509
509
  const h = r.shift(), l = (u, d) => (c = !1, s(u, Object.assign({}, o, d), a));
510
- return Promise.resolve(h(i, l, a)).then((u) => gs(ps({}, u), {
510
+ return Promise.resolve(h(i, l, a)).then((u) => bs(ys({}, u), {
511
511
  cancelled: c
512
512
  }));
513
513
  }
@@ -515,7 +515,7 @@ const vs = (n, t, e) => {
515
515
  };
516
516
  return s(t, {}, e);
517
517
  };
518
- let ge = class {
518
+ let we = class {
519
519
  constructor(t, e, r) {
520
520
  this.platform = t, this.target = e, this.ns = r, this.subscriptions = [], this.create = this.create.bind(this);
521
521
  }
@@ -547,12 +547,12 @@ let ge = class {
547
547
  ), c = this.platform.actionsState.watchers.filter((h) => h.key === t && (!h.ns || !this.ns || h.ns === this.ns) && a.some((l) => h.target.match(l))).map((h) => h.fn);
548
548
  return Promise.all(
549
549
  a.map((h) => {
550
- const l = new Ke(
550
+ const l = new tn(
551
551
  this.platform,
552
552
  h,
553
553
  this.ns
554
554
  );
555
- return vs(c, e, l).then((u) => {
555
+ return Os(c, e, l).then((u) => {
556
556
  const { data: d = {}, options: p, cancelled: b } = u;
557
557
  return Promise.resolve(
558
558
  b ? {} : o.fn(d, p, l)
@@ -586,7 +586,7 @@ let ge = class {
586
586
  this.subscriptions.forEach((t) => t());
587
587
  }
588
588
  };
589
- Je((n) => {
589
+ Xe((n) => {
590
590
  n.createCommand("components", (t) => (e) => {
591
591
  t.events.subscribeOnce("components:platform-created", (r, { platform: s }) => {
592
592
  e.handlers && e.handlers.forEach(([i, o]) => {
@@ -595,9 +595,9 @@ Je((n) => {
595
595
  });
596
596
  });
597
597
  });
598
- let Be = class {
598
+ let qe = class {
599
599
  constructor(t, e) {
600
- this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = Bt(), this.type = e, this.attributes = {
600
+ this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = qt(), this.type = e, this.attributes = {
601
601
  context: {},
602
602
  properties: {},
603
603
  layout: {},
@@ -680,49 +680,49 @@ let Be = class {
680
680
  }), delete t.parent;
681
681
  }
682
682
  };
683
- const er = (n, t, e) => {
683
+ const ir = (n, t, e) => {
684
684
  for (let r = 0, s = n.length; r < s && e(n[r]) !== !0; r++) {
685
685
  const i = t[n[r].id] || "default", o = n[r].getChildren(i);
686
- er(o, t, e);
686
+ ir(o, t, e);
687
687
  }
688
- }, fe = (n, t, e) => {
688
+ }, $e = (n, t, e) => {
689
689
  if (e(n) !== !0) {
690
690
  const r = t[n.id] || "default", s = n.children[r];
691
- er(s, t, e);
691
+ ir(s, t, e);
692
692
  }
693
- }, Zt = (n, t) => {
693
+ }, ne = (n, t) => {
694
694
  const e = [];
695
- return fe(n, t, (r) => {
695
+ return $e(n, t, (r) => {
696
696
  e.push(r);
697
697
  }), e;
698
- }, nr = (n, t, e) => {
698
+ }, or = (n, t, e) => {
699
699
  let r;
700
- return fe(n, t, (s) => {
700
+ return $e(n, t, (s) => {
701
701
  if (e(s))
702
702
  return r = s, !0;
703
703
  }), r;
704
704
  };
705
- let ys = class {
705
+ let Es = class {
706
706
  constructor(t, e, r) {
707
707
  this.root = t, this.switches = e, this.all = [], this.visible = [], this.detached = [], r.subscribe("components:node-appended", (s, i) => {
708
- this.all.push(i.node), this.visible = Zt(t, e);
708
+ this.all.push(i.node), this.visible = ne(t, e);
709
709
  }), r.subscribe("components:node-removed", (s, i) => {
710
710
  let o = this.all.indexOf(i.node);
711
- o > -1 && this.all.splice(o, 1), o = this.visible.indexOf(i.node), o > -1 && this.visible.splice(o, 1), this.visible = Zt(t, e);
711
+ o > -1 && this.all.splice(o, 1), o = this.visible.indexOf(i.node), o > -1 && this.visible.splice(o, 1), this.visible = ne(t, e);
712
712
  }), r.subscribe("components:node-switched", (s, i) => {
713
- this.visible = Zt(t, e);
713
+ this.visible = ne(t, e);
714
714
  });
715
715
  }
716
716
  query(t = {}) {
717
717
  const e = [];
718
- return fe(this.root, this.switches, (r) => {
718
+ return $e(this.root, this.switches, (r) => {
719
719
  Object.keys(t).every((s) => t[s] === r[s]) && e.push(r);
720
720
  }), e;
721
721
  }
722
722
  get(t) {
723
- return nr(this.root, this.switches, (e) => e.id === t) || this.detached.find((e) => e.id === t);
723
+ return or(this.root, this.switches, (e) => e.id === t) || this.detached.find((e) => e.id === t);
724
724
  }
725
- }, bs = class {
725
+ }, xs = class {
726
726
  constructor() {
727
727
  this.handlers = /* @__PURE__ */ new Map();
728
728
  }
@@ -733,43 +733,43 @@ let ys = class {
733
733
  return this.handlers.get(t);
734
734
  }
735
735
  };
736
- const ws = (n) => {
736
+ const _s = (n) => {
737
737
  let t = n, e = 0;
738
738
  for (; t.parent; )
739
739
  e = e + 1, t = t.parent;
740
740
  return e;
741
- }, $s = (n) => n.map(([t, e]) => [ws(t), t, e]).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), Oe = (n) => n instanceof Date ? !1 : n && typeof n == "object" && !Array.isArray(n), X = (n, ...t) => {
741
+ }, As = (n) => n.map(([t, e]) => [_s(t), t, e]).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), Ce = (n) => n instanceof Date ? !1 : n && typeof n == "object" && !Array.isArray(n), et = (n, ...t) => {
742
742
  if (!t.length)
743
743
  return n;
744
744
  const e = t.shift();
745
- if (Oe(n) && Oe(e))
745
+ if (Ce(n) && Ce(e))
746
746
  for (const r in e)
747
- Oe(e[r]) ? (n[r] || Object.assign(n, { [r]: {} }), X(n[r], e[r])) : Object.assign(n, { [r]: e[r] });
748
- return X(n, ...t);
749
- }, Es = (n, t) => !n || n === "all" ? !0 : n.some((e) => t.indexOf(e) > -1), Os = (n, t) => {
747
+ Ce(e[r]) ? (n[r] || Object.assign(n, { [r]: {} }), et(n[r], e[r])) : Object.assign(n, { [r]: e[r] });
748
+ return et(n, ...t);
749
+ }, Ps = (n, t) => !n || n === "all" ? !0 : n.some((e) => t.indexOf(e) > -1), Cs = (n, t) => {
750
750
  let e = [], r = [], s;
751
751
  const i = () => {
752
752
  process.env.NODE_ENV !== "production" && console.time("state-processor.flush");
753
- const a = /* @__PURE__ */ new Map(), c = $s(e.map((l, u) => [l, r[u]])), h = (l, u) => {
753
+ const a = /* @__PURE__ */ new Map(), c = As(e.map((l, u) => [l, r[u]])), h = (l, u) => {
754
754
  var d;
755
755
  const p = a.get(l) || {}, b = u.context && !p.context, v = u.properties && !p.properties, g = u.layout && !p.layout;
756
756
  a.set(l, {
757
757
  context: p.context || b,
758
758
  properties: p.properties || v,
759
759
  layout: p.layout || g
760
- }), v && (l.attributes.properties = {}), g && (l.attributes.layout = {}), b && (l.attributes.context = X({}, (d = l.parent) == null ? void 0 : d.attributes.context));
761
- const O = [], j = [], W = [];
760
+ }), v && (l.attributes.properties = {}), g && (l.attributes.layout = {}), b && (l.attributes.context = et({}, (d = l.parent) == null ? void 0 : d.attributes.context));
761
+ const E = [], R = [], F = [];
762
762
  if (l.changesets.forEach((H) => {
763
763
  const [k, U] = H;
764
- Es(U.breakpoints, n.breakpoints) && (v && (typeof k.properties == "function" ? O.push(
764
+ Ps(U.breakpoints, n.breakpoints) && (v && (typeof k.properties == "function" ? E.push(
765
765
  k.properties
766
- ) : X(l.attributes.properties, k.properties)), g && (typeof k.layout == "function" ? j.push(k.layout) : X(l.attributes.layout, k.layout)), b && (typeof k.context == "function" ? W.push(k.context) : X(l.attributes.context, k.context)));
767
- }), O.forEach((H) => {
768
- X(l.attributes.properties, H(l.attributes.properties));
769
- }), j.forEach((H) => {
770
- X(l.attributes.layout, H(l.attributes.layout));
771
- }), W.forEach((H) => {
772
- X(l.attributes.context, H(l.attributes.context));
766
+ ) : et(l.attributes.properties, k.properties)), g && (typeof k.layout == "function" ? R.push(k.layout) : et(l.attributes.layout, k.layout)), b && (typeof k.context == "function" ? F.push(k.context) : et(l.attributes.context, k.context)));
767
+ }), E.forEach((H) => {
768
+ et(l.attributes.properties, H(l.attributes.properties));
769
+ }), R.forEach((H) => {
770
+ et(l.attributes.layout, H(l.attributes.layout));
771
+ }), F.forEach((H) => {
772
+ et(l.attributes.context, H(l.attributes.context));
773
773
  }), b || u.recursive) {
774
774
  const H = n.getBranch(l), k = u.recursive ? u : {
775
775
  context: !!b
@@ -794,12 +794,12 @@ const ws = (n) => {
794
794
  return e.push(a), r.push(c), o();
795
795
  };
796
796
  };
797
- let me = class {
797
+ let Jt = class {
798
798
  constructor(t, e = {}) {
799
- this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new bs(), this.events = t.events.createChild(this);
800
- const r = new Be(this.events, "root");
801
- r.name = `root-${t.name}`, this.nodes = new ys(r, this.switches, this.events);
802
- const s = this.processNode = Os(this, (i) => {
799
+ this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new xs(), this.events = t.events.createChild(this);
800
+ const r = new qe(this.events, "root");
801
+ r.name = `root-${t.name}`, this.nodes = new Es(r, this.switches, this.events);
802
+ const s = this.processNode = Cs(this, (i) => {
803
803
  const o = Array.from(i.keys());
804
804
  process.env.NODE_ENV !== "production" && console.info(`STATE PROCESSOR: ${o.length} node(s) processed:
805
805
  ${o.map(
@@ -904,17 +904,17 @@ ${o.map(
904
904
  * @param type Type of node.
905
905
  */
906
906
  createNode(t, e = {}) {
907
- const r = new Be(this.events, t);
907
+ const r = new qe(this.events, t);
908
908
  return e.detached && this.nodes.detached.push(r), r;
909
909
  }
910
910
  components() {
911
- return new Pt(this);
911
+ return new Nt(this);
912
912
  }
913
913
  actions(t, e) {
914
- return new ge(this, t, e);
914
+ return new we(this, t, e);
915
915
  }
916
916
  write(t) {
917
- const { provider: e, target: r, attributes: s, options: i = {}, removable: o } = t, a = t.key || Bt(), c = { changeset: [s, i], target: r, removes: [] };
917
+ const { provider: e, target: r, attributes: s, options: i = {}, removable: o } = t, a = t.key || qt(), c = { changeset: [s, i], target: r, removes: [] };
918
918
  if (e) {
919
919
  const h = this.providers[e];
920
920
  h.write(a, r, s, i), c.removes.push(() => {
@@ -945,7 +945,7 @@ ${o.map(
945
945
  this.subscriptions.forEach((t) => t());
946
946
  }
947
947
  };
948
- const As = (n) => {
948
+ const Ss = (n) => {
949
949
  if (Array.isArray(n)) {
950
950
  const [t, ...e] = n;
951
951
  return {
@@ -957,14 +957,14 @@ const As = (n) => {
957
957
  definitionId: n,
958
958
  overrides: []
959
959
  };
960
- }, ie = (n, t, e, r, s, i) => {
960
+ }, le = (n, t, e, r, s, i) => {
961
961
  e.forEach((o) => {
962
- const a = As(o), c = r[a.definitionId];
962
+ const a = Ss(o), c = r[a.definitionId];
963
963
  if (a.definitionId === "view") {
964
964
  const h = n.createNode("view");
965
965
  h.name = "view", Object.keys(s).forEach((l) => {
966
966
  const u = s[l];
967
- ie(n, h, [u.entry], r, s, l);
967
+ le(n, h, [u.entry], r, s, l);
968
968
  }), t.appendChild(h), a.overrides.forEach((l) => {
969
969
  l.properties && h.writeProperties(l.properties, {
970
970
  breakpoints: l.breakpoints
@@ -992,10 +992,10 @@ const As = (n) => {
992
992
  l.name = a.definitionId, l.tags = h.tags || [], h.properties && l.writeProperties(h.properties), h.context && l.writeContext(h.context), h.layout && l.writeLayout(h.layout), t.appendChild(l, i), a.overrides.forEach((u) => {
993
993
  const d = { breakpoints: u.breakpoints };
994
994
  u.properties && l.writeProperties(u.properties, d), u.context && l.writeContext(u.context, d), u.layout && l.writeLayout(u.layout, d);
995
- }), h.children && ie(n, l, h.children, r, s);
995
+ }), h.children && le(n, l, h.children, r, s);
996
996
  }
997
997
  });
998
- }, rr = (n, t) => {
998
+ }, ar = (n, t) => {
999
999
  const { entry: e, components: r, breakpoints: s, views: i } = t, o = [];
1000
1000
  return Object.keys(s).forEach((a) => {
1001
1001
  const c = s[a], h = window.matchMedia(c);
@@ -1004,24 +1004,24 @@ const As = (n) => {
1004
1004
  u.matches ? n.addBreakpoint(a) : n.removeBreakpoint(a);
1005
1005
  };
1006
1006
  h.addListener(l), o.push(() => h.removeListener(l));
1007
- }), ie(n, n.nodes.root, [e], r, i), () => o.forEach((a) => {
1007
+ }), le(n, n.nodes.root, [e], r, i), () => o.forEach((a) => {
1008
1008
  a();
1009
1009
  });
1010
- }, xs = (n, t) => ({
1010
+ }, Je = (n, t) => ({
1011
1011
  id: n.id,
1012
1012
  type: n.type,
1013
1013
  name: n.name,
1014
1014
  branch: t || "default"
1015
- }), sr = (n, t, e, r = Bt(), s = {}) => n.getAsync("components").then((i) => {
1015
+ }), cr = (n, t, e, r = qt(), s = {}) => n.getAsync("components").then((i) => {
1016
1016
  let o;
1017
1017
  if (typeof t == "string") {
1018
- const h = new Pt(i);
1018
+ const h = new Nt(i);
1019
1019
  h.ofType(t), o = h;
1020
1020
  } else
1021
1021
  o = t;
1022
1022
  const a = {}, c = (h) => {
1023
1023
  const l = a[h.id];
1024
- return l ? Promise.resolve(l.controller) : me.getInstance(n).then((u) => new Ke(u, h, r));
1024
+ return l ? Promise.resolve(l.controller) : Jt.getInstance(n).then((u) => new tn(u, h, r));
1025
1025
  };
1026
1026
  i.events.subscribe(
1027
1027
  "components:node-enter",
@@ -1043,7 +1043,7 @@ const As = (n) => {
1043
1043
  }
1044
1044
  );
1045
1045
  });
1046
- class _s {
1046
+ class ks {
1047
1047
  constructor(t) {
1048
1048
  this.aliases = /* @__PURE__ */ new Map(), this.components = /* @__PURE__ */ new Map(), this.logger = new I();
1049
1049
  const { events: e } = t.get("$widget");
@@ -1075,32 +1075,32 @@ class _s {
1075
1075
  };
1076
1076
  }
1077
1077
  }
1078
- var q = /* @__PURE__ */ ((n) => (n.open = "open", n.closed = "closed", n.hidden = "hidden", n))(q || {});
1079
- const Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1078
+ var J = /* @__PURE__ */ ((n) => (n.open = "open", n.closed = "closed", n.hidden = "hidden", n))(J || {});
1079
+ const en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1080
1080
  __proto__: null,
1081
- ActionResolver: fs,
1082
- ActionsController: ge,
1083
- ComponentNode: Be,
1084
- ComponentNodeController: Ke,
1085
- ComponentPlatform: me,
1086
- ComponentQuery: Pt,
1087
- ComponentResolver: _s,
1088
- WidgetRenderState: q,
1089
- asDescriptor: xs,
1090
- createChildren: ie,
1091
- createComponentModel: rr,
1092
- createEventSubscriber: tr,
1093
- extendComponent: sr,
1094
- findComponent: nr,
1095
- findVisibleComponents: Zt,
1096
- traverseComponents: fe
1081
+ ActionResolver: ws,
1082
+ ActionsController: we,
1083
+ ComponentNode: qe,
1084
+ ComponentNodeController: tn,
1085
+ ComponentPlatform: Jt,
1086
+ ComponentQuery: Nt,
1087
+ ComponentResolver: ks,
1088
+ WidgetRenderState: J,
1089
+ asDescriptor: Je,
1090
+ createChildren: le,
1091
+ createComponentModel: ar,
1092
+ createEventSubscriber: sr,
1093
+ extendComponent: cr,
1094
+ findComponent: or,
1095
+ findVisibleComponents: ne,
1096
+ traverseComponents: $e
1097
1097
  }, Symbol.toStringTag, { value: "Module" }));
1098
- function ir(n) {
1098
+ function hr(n) {
1099
1099
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
1100
1100
  }
1101
- var or = function() {
1101
+ var lr = function() {
1102
1102
  };
1103
- process.env.NODE_ENV !== "production" && (or = function(n, t, e) {
1103
+ process.env.NODE_ENV !== "production" && (lr = function(n, t, e) {
1104
1104
  var r = arguments.length;
1105
1105
  e = new Array(r > 2 ? r - 2 : 0);
1106
1106
  for (var s = 2; s < r; s++)
@@ -1124,9 +1124,9 @@ process.env.NODE_ENV !== "production" && (or = function(n, t, e) {
1124
1124
  }
1125
1125
  }
1126
1126
  });
1127
- var Ss = or;
1128
- const tt = /* @__PURE__ */ ir(Ss);
1129
- var Ps = function(n, t, e, r, s, i, o, a) {
1127
+ var Ns = lr;
1128
+ const nt = /* @__PURE__ */ hr(Ns);
1129
+ var Ls = function(n, t, e, r, s, i, o, a) {
1130
1130
  if (process.env.NODE_ENV !== "production" && t === void 0)
1131
1131
  throw new Error("invariant requires an error message argument");
1132
1132
  if (!n) {
@@ -1145,19 +1145,19 @@ var Ps = function(n, t, e, r, s, i, o, a) {
1145
1145
  }
1146
1146
  throw c.framesToPop = 1, c;
1147
1147
  }
1148
- }, Cs = Ps;
1149
- const ks = /* @__PURE__ */ ir(Cs);
1150
- function Ft(n) {
1148
+ }, Ms = Ls;
1149
+ const Ds = /* @__PURE__ */ hr(Ms);
1150
+ function Yt(n) {
1151
1151
  return n.charAt(0) === "/";
1152
1152
  }
1153
- function Ae(n, t) {
1153
+ function Se(n, t) {
1154
1154
  for (var e = t, r = e + 1, s = n.length; r < s; e += 1, r += 1)
1155
1155
  n[e] = n[r];
1156
1156
  n.pop();
1157
1157
  }
1158
- function Ns(n) {
1159
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", e = n && n.split("/") || [], r = t && t.split("/") || [], s = n && Ft(n), i = t && Ft(t), o = s || i;
1160
- if (n && Ft(n) ? r = e : e.length && (r.pop(), r = r.concat(e)), !r.length)
1158
+ function js(n) {
1159
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", e = n && n.split("/") || [], r = t && t.split("/") || [], s = n && Yt(n), i = t && Yt(t), o = s || i;
1160
+ if (n && Yt(n) ? r = e : e.length && (r.pop(), r = r.concat(e)), !r.length)
1161
1161
  return "/";
1162
1162
  var a = void 0;
1163
1163
  if (r.length) {
@@ -1167,24 +1167,24 @@ function Ns(n) {
1167
1167
  a = !1;
1168
1168
  for (var h = 0, l = r.length; l >= 0; l--) {
1169
1169
  var u = r[l];
1170
- u === "." ? Ae(r, l) : u === ".." ? (Ae(r, l), h++) : h && (Ae(r, l), h--);
1170
+ u === "." ? Se(r, l) : u === ".." ? (Se(r, l), h++) : h && (Se(r, l), h--);
1171
1171
  }
1172
1172
  if (!o)
1173
1173
  for (; h--; h)
1174
1174
  r.unshift("..");
1175
- o && r[0] !== "" && (!r[0] || !Ft(r[0])) && r.unshift("");
1175
+ o && r[0] !== "" && (!r[0] || !Yt(r[0])) && r.unshift("");
1176
1176
  var d = r.join("/");
1177
1177
  return a && d.substr(-1) !== "/" && (d += "/"), d;
1178
1178
  }
1179
- var Ms = function(t) {
1179
+ var Rs = function(t) {
1180
1180
  return t.charAt(0) === "/" ? t : "/" + t;
1181
- }, ar = function(t, e) {
1181
+ }, ur = function(t, e) {
1182
1182
  return new RegExp("^" + e + "(\\/|\\?|#|$)", "i").test(t);
1183
- }, Ls = function(t, e) {
1184
- return ar(t, e) ? t.substr(e.length) : t;
1185
- }, Ds = function(t) {
1183
+ }, Ts = function(t, e) {
1184
+ return ur(t, e) ? t.substr(e.length) : t;
1185
+ }, Is = function(t) {
1186
1186
  return t.charAt(t.length - 1) === "/" ? t.slice(0, -1) : t;
1187
- }, Ts = function(t) {
1187
+ }, Hs = function(t) {
1188
1188
  var e = t || "/", r = "", s = "", i = e.indexOf("#");
1189
1189
  i !== -1 && (s = e.substr(i), e = e.substr(0, i));
1190
1190
  var o = e.indexOf("?");
@@ -1193,34 +1193,34 @@ var Ms = function(t) {
1193
1193
  search: r === "?" ? "" : r,
1194
1194
  hash: s === "#" ? "" : s
1195
1195
  };
1196
- }, cr = function(t) {
1196
+ }, dr = function(t) {
1197
1197
  var e = t.pathname, r = t.search, s = t.hash, i = e || "/";
1198
1198
  return r && r !== "?" && (i += r.charAt(0) === "?" ? r : "?" + r), s && s !== "#" && (i += s.charAt(0) === "#" ? s : "#" + s), i;
1199
- }, js = Object.assign || function(n) {
1199
+ }, Us = Object.assign || function(n) {
1200
1200
  for (var t = 1; t < arguments.length; t++) {
1201
1201
  var e = arguments[t];
1202
1202
  for (var r in e)
1203
1203
  Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
1204
1204
  }
1205
1205
  return n;
1206
- }, gt = function(t, e, r, s) {
1206
+ }, vt = function(t, e, r, s) {
1207
1207
  var i = void 0;
1208
- typeof t == "string" ? (i = Ts(t), i.state = e) : (i = js({}, t), i.pathname === void 0 && (i.pathname = ""), i.search ? i.search.charAt(0) !== "?" && (i.search = "?" + i.search) : i.search = "", i.hash ? i.hash.charAt(0) !== "#" && (i.hash = "#" + i.hash) : i.hash = "", e !== void 0 && i.state === void 0 && (i.state = e));
1208
+ typeof t == "string" ? (i = Hs(t), i.state = e) : (i = Us({}, t), i.pathname === void 0 && (i.pathname = ""), i.search ? i.search.charAt(0) !== "?" && (i.search = "?" + i.search) : i.search = "", i.hash ? i.hash.charAt(0) !== "#" && (i.hash = "#" + i.hash) : i.hash = "", e !== void 0 && i.state === void 0 && (i.state = e));
1209
1209
  try {
1210
1210
  i.pathname = decodeURI(i.pathname);
1211
1211
  } catch (o) {
1212
1212
  throw o instanceof URIError ? new URIError('Pathname "' + i.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.') : o;
1213
1213
  }
1214
- return r && (i.key = r), s ? i.pathname ? i.pathname.charAt(0) !== "/" && (i.pathname = Ns(i.pathname, s.pathname)) : i.pathname = s.pathname : i.pathname || (i.pathname = "/"), i;
1215
- }, hr = function() {
1214
+ return r && (i.key = r), s ? i.pathname ? i.pathname.charAt(0) !== "/" && (i.pathname = js(i.pathname, s.pathname)) : i.pathname = s.pathname : i.pathname || (i.pathname = "/"), i;
1215
+ }, pr = function() {
1216
1216
  var t = null, e = function(c) {
1217
- return tt(t == null, "A history supports only one prompt at a time"), t = c, function() {
1217
+ return nt(t == null, "A history supports only one prompt at a time"), t = c, function() {
1218
1218
  t === c && (t = null);
1219
1219
  };
1220
1220
  }, r = function(c, h, l, u) {
1221
1221
  if (t != null) {
1222
1222
  var d = typeof t == "function" ? t(c, h) : t;
1223
- typeof d == "string" ? typeof l == "function" ? l(d, u) : (tt(!1, "A history needs a getUserConfirmation function in order to use a prompt message"), u(!0)) : u(d !== !1);
1223
+ typeof d == "string" ? typeof l == "function" ? l(d, u) : (nt(!1, "A history needs a getUserConfirmation function in order to use a prompt message"), u(!0)) : u(d !== !1);
1224
1224
  } else
1225
1225
  u(!0);
1226
1226
  }, s = [], i = function(c) {
@@ -1245,196 +1245,196 @@ var Ms = function(t) {
1245
1245
  appendListener: i,
1246
1246
  notifyListeners: o
1247
1247
  };
1248
- }, Rs = !!(typeof window != "undefined" && window.document && window.document.createElement), fn = function(t, e, r) {
1248
+ }, Vs = !!(typeof window != "undefined" && window.document && window.document.createElement), wn = function(t, e, r) {
1249
1249
  return t.addEventListener ? t.addEventListener(e, r, !1) : t.attachEvent("on" + e, r);
1250
- }, mn = function(t, e, r) {
1250
+ }, $n = function(t, e, r) {
1251
1251
  return t.removeEventListener ? t.removeEventListener(e, r, !1) : t.detachEvent("on" + e, r);
1252
- }, Is = function(t, e) {
1252
+ }, Bs = function(t, e) {
1253
1253
  return e(window.confirm(t));
1254
- }, Hs = function() {
1254
+ }, zs = function() {
1255
1255
  var t = window.navigator.userAgent;
1256
1256
  return (t.indexOf("Android 2.") !== -1 || t.indexOf("Android 4.0") !== -1) && t.indexOf("Mobile Safari") !== -1 && t.indexOf("Chrome") === -1 && t.indexOf("Windows Phone") === -1 ? !1 : window.history && "pushState" in window.history;
1257
- }, Us = function() {
1257
+ }, Ws = function() {
1258
1258
  return window.navigator.userAgent.indexOf("Trident") === -1;
1259
- }, Bs = function(t) {
1259
+ }, Fs = function(t) {
1260
1260
  return t.state === void 0 && navigator.userAgent.indexOf("CriOS") === -1;
1261
- }, vn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
1261
+ }, On = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
1262
1262
  return typeof n;
1263
1263
  } : function(n) {
1264
1264
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
1265
- }, Vs = Object.assign || function(n) {
1265
+ }, qs = Object.assign || function(n) {
1266
1266
  for (var t = 1; t < arguments.length; t++) {
1267
1267
  var e = arguments[t];
1268
1268
  for (var r in e)
1269
1269
  Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
1270
1270
  }
1271
1271
  return n;
1272
- }, yn = "popstate", bn = "hashchange", wn = function() {
1272
+ }, En = "popstate", xn = "hashchange", _n = function() {
1273
1273
  try {
1274
1274
  return window.history.state || {};
1275
1275
  } catch (t) {
1276
1276
  return {};
1277
1277
  }
1278
- }, zs = function() {
1278
+ }, Js = function() {
1279
1279
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1280
- ks(Rs, "Browser history needs a DOM");
1281
- var e = window.history, r = Hs(), s = !Us(), i = t.forceRefresh, o = i === void 0 ? !1 : i, a = t.getUserConfirmation, c = a === void 0 ? Is : a, h = t.keyLength, l = h === void 0 ? 6 : h, u = t.basename ? Ds(Ms(t.basename)) : "", d = function(m) {
1282
- var E = m || {}, M = E.key, L = E.state, J = window.location, K = J.pathname, rt = J.search, Z = J.hash, F = K + rt + Z;
1283
- return tt(!u || ar(F, u), 'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "' + F + '" to begin with "' + u + '".'), u && (F = Ls(F, u)), gt(F, L, M);
1280
+ Ds(Vs, "Browser history needs a DOM");
1281
+ var e = window.history, r = zs(), s = !Ws(), i = t.forceRefresh, o = i === void 0 ? !1 : i, a = t.getUserConfirmation, c = a === void 0 ? Bs : a, h = t.keyLength, l = h === void 0 ? 6 : h, u = t.basename ? Is(Rs(t.basename)) : "", d = function(m) {
1282
+ var O = m || {}, L = O.key, M = O.state, K = window.location, G = K.pathname, it = K.search, Q = K.hash, q = G + it + Q;
1283
+ return nt(!u || ur(q, u), 'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "' + q + '" to begin with "' + u + '".'), u && (q = Ts(q, u)), vt(q, M, L);
1284
1284
  }, p = function() {
1285
1285
  return Math.random().toString(36).substr(2, l);
1286
- }, b = hr(), v = function(m) {
1287
- Vs(_, m), _.length = e.length, b.notifyListeners(_.location, _.action);
1286
+ }, b = pr(), v = function(m) {
1287
+ qs(A, m), A.length = e.length, b.notifyListeners(A.location, A.action);
1288
1288
  }, g = function(m) {
1289
- Bs(m) || W(d(m.state));
1290
- }, O = function() {
1291
- W(d(wn()));
1292
- }, j = !1, W = function(m) {
1293
- if (j)
1294
- j = !1, v();
1289
+ Fs(m) || F(d(m.state));
1290
+ }, E = function() {
1291
+ F(d(_n()));
1292
+ }, R = !1, F = function(m) {
1293
+ if (R)
1294
+ R = !1, v();
1295
1295
  else {
1296
- var E = "POP";
1297
- b.confirmTransitionTo(m, E, c, function(M) {
1298
- M ? v({ action: E, location: m }) : H(m);
1296
+ var O = "POP";
1297
+ b.confirmTransitionTo(m, O, c, function(L) {
1298
+ L ? v({ action: O, location: m }) : H(m);
1299
1299
  });
1300
1300
  }
1301
1301
  }, H = function(m) {
1302
- var E = _.location, M = U.indexOf(E.key);
1303
- M === -1 && (M = 0);
1304
- var L = U.indexOf(m.key);
1302
+ var O = A.location, L = U.indexOf(O.key);
1305
1303
  L === -1 && (L = 0);
1306
- var J = M - L;
1307
- J && (j = !0, D(J));
1308
- }, k = d(wn()), U = [k.key], A = function(m) {
1309
- return u + cr(m);
1310
- }, N = function(m, E) {
1311
- tt(!((typeof m == "undefined" ? "undefined" : vn(m)) === "object" && m.state !== void 0 && E !== void 0), "You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");
1312
- var M = "PUSH", L = gt(m, E, p(), _.location);
1313
- b.confirmTransitionTo(L, M, c, function(J) {
1314
- if (J) {
1315
- var K = A(L), rt = L.key, Z = L.state;
1304
+ var M = U.indexOf(m.key);
1305
+ M === -1 && (M = 0);
1306
+ var K = L - M;
1307
+ K && (R = !0, D(K));
1308
+ }, k = d(_n()), U = [k.key], x = function(m) {
1309
+ return u + dr(m);
1310
+ }, N = function(m, O) {
1311
+ nt(!((typeof m == "undefined" ? "undefined" : On(m)) === "object" && m.state !== void 0 && O !== void 0), "You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");
1312
+ var L = "PUSH", M = vt(m, O, p(), A.location);
1313
+ b.confirmTransitionTo(M, L, c, function(K) {
1314
+ if (K) {
1315
+ var G = x(M), it = M.key, Q = M.state;
1316
1316
  if (r)
1317
- if (e.pushState({ key: rt, state: Z }, null, K), o)
1318
- window.location.href = K;
1317
+ if (e.pushState({ key: it, state: Q }, null, G), o)
1318
+ window.location.href = G;
1319
1319
  else {
1320
- var F = U.indexOf(_.location.key), sn = U.slice(0, F === -1 ? 0 : F + 1);
1321
- sn.push(L.key), U = sn, v({ action: M, location: L });
1320
+ var q = U.indexOf(A.location.key), ln = U.slice(0, q === -1 ? 0 : q + 1);
1321
+ ln.push(M.key), U = ln, v({ action: L, location: M });
1322
1322
  }
1323
1323
  else
1324
- tt(Z === void 0, "Browser history cannot push state in browsers that do not support HTML5 history"), window.location.href = K;
1324
+ nt(Q === void 0, "Browser history cannot push state in browsers that do not support HTML5 history"), window.location.href = G;
1325
1325
  }
1326
1326
  });
1327
- }, C = function(m, E) {
1328
- tt(!((typeof m == "undefined" ? "undefined" : vn(m)) === "object" && m.state !== void 0 && E !== void 0), "You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");
1329
- var M = "REPLACE", L = gt(m, E, p(), _.location);
1330
- b.confirmTransitionTo(L, M, c, function(J) {
1331
- if (J) {
1332
- var K = A(L), rt = L.key, Z = L.state;
1327
+ }, S = function(m, O) {
1328
+ nt(!((typeof m == "undefined" ? "undefined" : On(m)) === "object" && m.state !== void 0 && O !== void 0), "You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");
1329
+ var L = "REPLACE", M = vt(m, O, p(), A.location);
1330
+ b.confirmTransitionTo(M, L, c, function(K) {
1331
+ if (K) {
1332
+ var G = x(M), it = M.key, Q = M.state;
1333
1333
  if (r)
1334
- if (e.replaceState({ key: rt, state: Z }, null, K), o)
1335
- window.location.replace(K);
1334
+ if (e.replaceState({ key: it, state: Q }, null, G), o)
1335
+ window.location.replace(G);
1336
1336
  else {
1337
- var F = U.indexOf(_.location.key);
1338
- F !== -1 && (U[F] = L.key), v({ action: M, location: L });
1337
+ var q = U.indexOf(A.location.key);
1338
+ q !== -1 && (U[q] = M.key), v({ action: L, location: M });
1339
1339
  }
1340
1340
  else
1341
- tt(Z === void 0, "Browser history cannot replace state in browsers that do not support HTML5 history"), window.location.replace(K);
1341
+ nt(Q === void 0, "Browser history cannot replace state in browsers that do not support HTML5 history"), window.location.replace(G);
1342
1342
  }
1343
1343
  });
1344
1344
  }, D = function(m) {
1345
1345
  e.go(m);
1346
- }, V = function() {
1346
+ }, z = function() {
1347
1347
  return D(-1);
1348
- }, B = function() {
1348
+ }, V = function() {
1349
1349
  return D(1);
1350
- }, R = 0, f = function(m) {
1351
- R += m, R === 1 ? (fn(window, yn, g), s && fn(window, bn, O)) : R === 0 && (mn(window, yn, g), s && mn(window, bn, O));
1350
+ }, T = 0, f = function(m) {
1351
+ T += m, T === 1 ? (wn(window, En, g), s && wn(window, xn, E)) : T === 0 && ($n(window, En, g), s && $n(window, xn, E));
1352
1352
  }, w = !1, y = function() {
1353
- var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, E = b.setPrompt(m);
1353
+ var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, O = b.setPrompt(m);
1354
1354
  return w || (f(1), w = !0), function() {
1355
- return w && (w = !1, f(-1)), E();
1355
+ return w && (w = !1, f(-1)), O();
1356
1356
  };
1357
1357
  }, $ = function(m) {
1358
- var E = b.appendListener(m);
1358
+ var O = b.appendListener(m);
1359
1359
  return f(1), function() {
1360
- f(-1), E();
1360
+ f(-1), O();
1361
1361
  };
1362
- }, _ = {
1362
+ }, A = {
1363
1363
  length: e.length,
1364
1364
  action: "POP",
1365
1365
  location: k,
1366
- createHref: A,
1366
+ createHref: x,
1367
1367
  push: N,
1368
- replace: C,
1368
+ replace: S,
1369
1369
  go: D,
1370
- goBack: V,
1371
- goForward: B,
1370
+ goBack: z,
1371
+ goForward: V,
1372
1372
  block: y,
1373
1373
  listen: $
1374
1374
  };
1375
- return _;
1376
- }, $n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
1375
+ return A;
1376
+ }, An = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
1377
1377
  return typeof n;
1378
1378
  } : function(n) {
1379
1379
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
1380
- }, Ws = Object.assign || function(n) {
1380
+ }, Ks = Object.assign || function(n) {
1381
1381
  for (var t = 1; t < arguments.length; t++) {
1382
1382
  var e = arguments[t];
1383
1383
  for (var r in e)
1384
1384
  Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
1385
1385
  }
1386
1386
  return n;
1387
- }, En = function(t, e, r) {
1387
+ }, Pn = function(t, e, r) {
1388
1388
  return Math.min(Math.max(t, e), r);
1389
- }, Fs = function() {
1390
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.getUserConfirmation, r = t.initialEntries, s = r === void 0 ? ["/"] : r, i = t.initialIndex, o = i === void 0 ? 0 : i, a = t.keyLength, c = a === void 0 ? 6 : a, h = hr(), l = function(C) {
1391
- Ws(A, C), A.length = A.entries.length, h.notifyListeners(A.location, A.action);
1389
+ }, Gs = function() {
1390
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.getUserConfirmation, r = t.initialEntries, s = r === void 0 ? ["/"] : r, i = t.initialIndex, o = i === void 0 ? 0 : i, a = t.keyLength, c = a === void 0 ? 6 : a, h = pr(), l = function(S) {
1391
+ Ks(x, S), x.length = x.entries.length, h.notifyListeners(x.location, x.action);
1392
1392
  }, u = function() {
1393
1393
  return Math.random().toString(36).substr(2, c);
1394
- }, d = En(o, 0, s.length - 1), p = s.map(function(N) {
1395
- return typeof N == "string" ? gt(N, void 0, u()) : gt(N, void 0, N.key || u());
1396
- }), b = cr, v = function(C, D) {
1397
- tt(!((typeof C == "undefined" ? "undefined" : $n(C)) === "object" && C.state !== void 0 && D !== void 0), "You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");
1398
- var V = "PUSH", B = gt(C, D, u(), A.location);
1399
- h.confirmTransitionTo(B, V, e, function(R) {
1400
- if (R) {
1401
- var f = A.index, w = f + 1, y = A.entries.slice(0);
1402
- y.length > w ? y.splice(w, y.length - w, B) : y.push(B), l({
1403
- action: V,
1404
- location: B,
1394
+ }, d = Pn(o, 0, s.length - 1), p = s.map(function(N) {
1395
+ return typeof N == "string" ? vt(N, void 0, u()) : vt(N, void 0, N.key || u());
1396
+ }), b = dr, v = function(S, D) {
1397
+ nt(!((typeof S == "undefined" ? "undefined" : An(S)) === "object" && S.state !== void 0 && D !== void 0), "You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");
1398
+ var z = "PUSH", V = vt(S, D, u(), x.location);
1399
+ h.confirmTransitionTo(V, z, e, function(T) {
1400
+ if (T) {
1401
+ var f = x.index, w = f + 1, y = x.entries.slice(0);
1402
+ y.length > w ? y.splice(w, y.length - w, V) : y.push(V), l({
1403
+ action: z,
1404
+ location: V,
1405
1405
  index: w,
1406
1406
  entries: y
1407
1407
  });
1408
1408
  }
1409
1409
  });
1410
- }, g = function(C, D) {
1411
- tt(!((typeof C == "undefined" ? "undefined" : $n(C)) === "object" && C.state !== void 0 && D !== void 0), "You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");
1412
- var V = "REPLACE", B = gt(C, D, u(), A.location);
1413
- h.confirmTransitionTo(B, V, e, function(R) {
1414
- R && (A.entries[A.index] = B, l({ action: V, location: B }));
1410
+ }, g = function(S, D) {
1411
+ nt(!((typeof S == "undefined" ? "undefined" : An(S)) === "object" && S.state !== void 0 && D !== void 0), "You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");
1412
+ var z = "REPLACE", V = vt(S, D, u(), x.location);
1413
+ h.confirmTransitionTo(V, z, e, function(T) {
1414
+ T && (x.entries[x.index] = V, l({ action: z, location: V }));
1415
1415
  });
1416
- }, O = function(C) {
1417
- var D = En(A.index + C, 0, A.entries.length - 1), V = "POP", B = A.entries[D];
1418
- h.confirmTransitionTo(B, V, e, function(R) {
1419
- R ? l({
1420
- action: V,
1421
- location: B,
1416
+ }, E = function(S) {
1417
+ var D = Pn(x.index + S, 0, x.entries.length - 1), z = "POP", V = x.entries[D];
1418
+ h.confirmTransitionTo(V, z, e, function(T) {
1419
+ T ? l({
1420
+ action: z,
1421
+ location: V,
1422
1422
  index: D
1423
1423
  }) : l();
1424
1424
  });
1425
- }, j = function() {
1426
- return O(-1);
1427
- }, W = function() {
1428
- return O(1);
1429
- }, H = function(C) {
1430
- var D = A.index + C;
1431
- return D >= 0 && D < A.entries.length;
1425
+ }, R = function() {
1426
+ return E(-1);
1427
+ }, F = function() {
1428
+ return E(1);
1429
+ }, H = function(S) {
1430
+ var D = x.index + S;
1431
+ return D >= 0 && D < x.entries.length;
1432
1432
  }, k = function() {
1433
- var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
1434
- return h.setPrompt(C);
1435
- }, U = function(C) {
1436
- return h.appendListener(C);
1437
- }, A = {
1433
+ var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
1434
+ return h.setPrompt(S);
1435
+ }, U = function(S) {
1436
+ return h.appendListener(S);
1437
+ }, x = {
1438
1438
  length: p.length,
1439
1439
  action: "POP",
1440
1440
  location: p[d],
@@ -1443,22 +1443,22 @@ var Ms = function(t) {
1443
1443
  createHref: b,
1444
1444
  push: v,
1445
1445
  replace: g,
1446
- go: O,
1447
- goBack: j,
1448
- goForward: W,
1446
+ go: E,
1447
+ goBack: R,
1448
+ goForward: F,
1449
1449
  canGo: H,
1450
1450
  block: k,
1451
1451
  listen: U
1452
1452
  };
1453
- return A;
1454
- }, qs = Object.defineProperty, On = Object.getOwnPropertySymbols, Js = Object.prototype.hasOwnProperty, Ks = Object.prototype.propertyIsEnumerable, An = (n, t, e) => t in n ? qs(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, $t = (n, t) => {
1453
+ return x;
1454
+ }, Ys = Object.defineProperty, Cn = Object.getOwnPropertySymbols, Zs = Object.prototype.hasOwnProperty, Qs = Object.prototype.propertyIsEnumerable, Sn = (n, t, e) => t in n ? Ys(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, xt = (n, t) => {
1455
1455
  for (var e in t || (t = {}))
1456
- Js.call(t, e) && An(n, e, t[e]);
1457
- if (On)
1458
- for (var e of On(t))
1459
- Ks.call(t, e) && An(n, e, t[e]);
1456
+ Zs.call(t, e) && Sn(n, e, t[e]);
1457
+ if (Cn)
1458
+ for (var e of Cn(t))
1459
+ Qs.call(t, e) && Sn(n, e, t[e]);
1460
1460
  return n;
1461
- }, qt = (n, t, e) => new Promise((r, s) => {
1461
+ }, Zt = (n, t, e) => new Promise((r, s) => {
1462
1462
  var i = (c) => {
1463
1463
  try {
1464
1464
  a(e.next(c));
@@ -1473,13 +1473,13 @@ var Ms = function(t) {
1473
1473
  }
1474
1474
  }, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(i, o);
1475
1475
  a((e = e.apply(n, t)).next());
1476
- }), S = /* @__PURE__ */ ((n) => (n.Cookie = "cookie", n.Local = "local", n.Session = "session", n))(S || {}), Ct = /* @__PURE__ */ ((n) => (n.Tenant = "tenant", n.Implementation = "implementation", n.Widget = "widget", n))(Ct || {}), P = /* @__PURE__ */ ((n) => (n.Necessary = "necessary", n.Functional = "functional", n.Analytical = "analytical", n.Marketing = "marketing", n))(P || {});
1477
- const et = (n, t, e, r = {}) => xn(n, e).then((s) => (process.env.NODE_ENV !== "production" && s && I.warn(
1476
+ }), P = /* @__PURE__ */ ((n) => (n.Cookie = "cookie", n.Local = "local", n.Session = "session", n))(P || {}), Lt = /* @__PURE__ */ ((n) => (n.Tenant = "tenant", n.Implementation = "implementation", n.Widget = "widget", n))(Lt || {}), C = /* @__PURE__ */ ((n) => (n.Necessary = "necessary", n.Functional = "functional", n.Analytical = "analytical", n.Marketing = "marketing", n))(C || {});
1477
+ const rt = (n, t, e, r = {}) => kn(n, e).then((s) => (process.env.NODE_ENV !== "production" && s && I.warn(
1478
1478
  `createStorageWriter: Attempted to create storage writer using unallowed category.
1479
1479
  Key: ${t}
1480
1480
  Category: ${JSON.stringify(e)}
1481
1481
  Options: ${JSON.stringify(r)}`
1482
- ), (i) => (Qe(n), xn(n, e).then((o) => {
1482
+ ), (i) => (sn(n), kn(n, e).then((o) => {
1483
1483
  if (o) {
1484
1484
  process.env.NODE_ENV !== "production" && I.warn(
1485
1485
  `storageWriter: Attempted to write to storage using unallowed category.
@@ -1491,104 +1491,104 @@ const et = (n, t, e, r = {}) => xn(n, e).then((s) => (process.env.NODE_ENV !== "
1491
1491
  return;
1492
1492
  }
1493
1493
  const {
1494
- scope: a = Ct.Widget,
1495
- medium: c = S.Session,
1494
+ scope: a = Lt.Widget,
1495
+ medium: c = P.Session,
1496
1496
  duration: h
1497
- } = r, l = Ys();
1498
- return l[a][t] = Ze(i, e, h), c === S.Cookie ? ti(n, l) : ni(n, c, l);
1499
- })))), Y = (n, t, e = S.Session) => (Qe(n), typeof t == "undefined" ? (process.env.NODE_ENV !== "production" && I.warn("readStorage: Undefined key passed when reading storage. ", t, e), Promise.resolve(void 0)) : e === S.Cookie ? Xs(n).then((r) => ae(r, t)) : ei(n, e).then((r) => ae(r, t))), xt = (n) => !!Object.entries(n).filter(([t, e]) => typeof e != "undefined").length, xe = (n) => Object.entries(n).filter(([t, e]) => typeof e != "undefined").forEach(([t, { value: e }]) => {
1497
+ } = r, l = ti();
1498
+ return l[a][t] = rn(i, e, h), c === P.Cookie ? si(n, l) : oi(n, c, l);
1499
+ })))), Z = (n, t, e = P.Session) => (sn(n), typeof t == "undefined" ? (process.env.NODE_ENV !== "production" && I.warn("readStorage: Undefined key passed when reading storage. ", t, e), Promise.resolve(void 0)) : e === P.Cookie ? ri(n).then((r) => de(r, t)) : ii(n, e).then((r) => de(r, t))), Ct = (n) => !!Object.entries(n).filter(([t, e]) => typeof e != "undefined").length, ke = (n) => Object.entries(n).filter(([t, e]) => typeof e != "undefined").forEach(([t, { value: e }]) => {
1500
1500
  typeof e == "undefined" && delete n[t];
1501
- }), lr = (n, t) => {
1501
+ }), gr = (n, t) => {
1502
1502
  const e = {
1503
- tenant: $t($t({}, n.tenant), t.tenant),
1504
- implementation: $t($t({}, n.implementation), t.implementation),
1505
- widget: $t($t({}, n.widget), t.widget)
1503
+ tenant: xt(xt({}, n.tenant), t.tenant),
1504
+ implementation: xt(xt({}, n.implementation), t.implementation),
1505
+ widget: xt(xt({}, n.widget), t.widget)
1506
1506
  };
1507
- return xe(e.tenant), xe(e.implementation), xe(e.widget), e;
1508
- }, Gs = (n) => Object.entries(n).reduce((t, e) => {
1507
+ return ke(e.tenant), ke(e.implementation), ke(e.widget), e;
1508
+ }, Xs = (n) => Object.entries(n).reduce((t, e) => {
1509
1509
  const [r, s] = e;
1510
1510
  return Object.entries(s).forEach((i) => {
1511
1511
  const [o, { expiration: a }] = i;
1512
1512
  a && t.push(a);
1513
1513
  }), t;
1514
- }, []).slice().sort((t, e) => new Date(e).valueOf() - new Date(t).valueOf()).shift() || ye(), ve = (n) => {
1514
+ }, []).slice().sort((t, e) => new Date(e).valueOf() - new Date(t).valueOf()).shift() || Ee(), Oe = (n) => {
1515
1515
  const {
1516
1516
  name: t,
1517
1517
  implementation: { name: e, tenant: r }
1518
1518
  } = n.get("$widget");
1519
1519
  return [
1520
1520
  `humany_${r}`,
1521
- `humany_${un(r + e)}`,
1522
- `humany_${un(r + e + t)}`
1521
+ `humany_${mn(r + e)}`,
1522
+ `humany_${mn(r + e + t)}`
1523
1523
  ];
1524
- }, _e = (n) => {
1524
+ }, Ne = (n) => {
1525
1525
  const t = new RegExp(`(?:^|;)\\s?${n}=(.*?)(?:;|$)`, "i"), e = document.cookie.match(t);
1526
1526
  return e && e[1] && JSON.parse(e[1]) || void 0;
1527
- }, Se = (n, t, e) => {
1527
+ }, Le = (n, t, e) => {
1528
1528
  const r = `${n}=${JSON.stringify(t).trim()}`, s = `expires=${new Date(e).toUTCString()}`, i = "path=/", o = "SameSite=None;Secure";
1529
1529
  return document.cookie = `${r}; ${s}; ${i}; ${o}`;
1530
- }, Ye = (n) => {
1531
- const [t, e, r] = ve(n), s = _e(t) || {}, i = _e(e) || {}, o = _e(r) || {};
1530
+ }, nn = (n) => {
1531
+ const [t, e, r] = Oe(n), s = Ne(t) || {}, i = Ne(e) || {}, o = Ne(r) || {};
1532
1532
  return {
1533
1533
  tenant: s,
1534
1534
  implementation: i,
1535
1535
  widget: o
1536
1536
  };
1537
- }, ur = (n, t) => {
1538
- const e = Ye(n), r = lr(e, t), [s, i, o] = ve(n), { tenant: a, implementation: c, widget: h } = r, l = Gs(t), u = ye({ days: -1 });
1539
- Se(s, a, xt(a) ? l : u), Se(
1537
+ }, fr = (n, t) => {
1538
+ const e = nn(n), r = gr(e, t), [s, i, o] = Oe(n), { tenant: a, implementation: c, widget: h } = r, l = Xs(t), u = Ee({ days: -1 });
1539
+ Le(s, a, Ct(a) ? l : u), Le(
1540
1540
  i,
1541
1541
  c,
1542
- xt(c) ? l : u
1543
- ), Se(o, h, xt(h) ? l : u);
1544
- }, oe = (n, t) => {
1545
- const [e, r, s] = ve(n), i = t.getItem(e) || "{}", o = t.getItem(r) || "{}", a = t.getItem(s) || "{}";
1542
+ Ct(c) ? l : u
1543
+ ), Le(o, h, Ct(h) ? l : u);
1544
+ }, ue = (n, t) => {
1545
+ const [e, r, s] = Oe(n), i = t.getItem(e) || "{}", o = t.getItem(r) || "{}", a = t.getItem(s) || "{}";
1546
1546
  return {
1547
1547
  tenant: JSON.parse(i),
1548
1548
  implementation: JSON.parse(o),
1549
1549
  widget: JSON.parse(a)
1550
1550
  };
1551
- }, Ve = (n, t, e) => {
1552
- const r = oe(n, t), s = lr(r, e), [i, o, a] = ve(n), { tenant: c, implementation: h, widget: l } = s;
1553
- xt(c) ? t.setItem(i, JSON.stringify(c)) : t.removeItem(i), xt(h) ? t.setItem(o, JSON.stringify(h)) : t.removeItem(o), xt(l) ? t.setItem(a, JSON.stringify(l)) : t.removeItem(a);
1554
- }, Ys = () => ({ tenant: {}, implementation: {}, widget: {} }), Zs = (n) => n ? !!n && /* @__PURE__ */ new Date() > new Date(n) : !1, ae = (n, t) => {
1551
+ }, Ke = (n, t, e) => {
1552
+ const r = ue(n, t), s = gr(r, e), [i, o, a] = Oe(n), { tenant: c, implementation: h, widget: l } = s;
1553
+ Ct(c) ? t.setItem(i, JSON.stringify(c)) : t.removeItem(i), Ct(h) ? t.setItem(o, JSON.stringify(h)) : t.removeItem(o), Ct(l) ? t.setItem(a, JSON.stringify(l)) : t.removeItem(a);
1554
+ }, ti = () => ({ tenant: {}, implementation: {}, widget: {} }), ei = (n) => n ? !!n && /* @__PURE__ */ new Date() > new Date(n) : !1, de = (n, t) => {
1555
1555
  const e = n.widget[t] || n.implementation[t] || n.tenant[t];
1556
1556
  return e == null ? void 0 : e.value;
1557
- }, Ze = (n, t, e) => e ? {
1557
+ }, rn = (n, t, e) => e ? {
1558
1558
  value: n,
1559
1559
  category: t,
1560
- expiration: typeof e == "object" ? ye(e) : e
1560
+ expiration: typeof e == "object" ? Ee(e) : e
1561
1561
  } : {
1562
1562
  value: n,
1563
1563
  category: t
1564
- }, Qt = (n, t) => {
1565
- const e = ns(n);
1564
+ }, re = (n, t) => {
1565
+ const e = as(n);
1566
1566
  return Object.entries(e).forEach(([r, s]) => {
1567
1567
  Object.entries(s).forEach(([i, o]) => {
1568
1568
  const { expiration: a, category: c } = o;
1569
- (Zs(a) || Qs(t, c)) && (s[i] = Ze(void 0, c, a));
1569
+ (ei(a) || ni(t, c)) && (s[i] = rn(void 0, c, a));
1570
1570
  });
1571
1571
  }), e;
1572
- }, xn = (n, t) => Y(n, "storagePolicy", S.Cookie).then(
1573
- (e = [P.Necessary]) => !!t && e.indexOf(t) === -1
1574
- ), Qs = (n = [P.Necessary], t) => !!t && n.indexOf(t) === -1, Qe = (n) => {
1575
- const t = Ye(n), e = oe(n, window.localStorage), r = oe(n, sessionStorage), s = ae(t, "storagePolicy"), [i, o, a] = [
1572
+ }, kn = (n, t) => Z(n, "storagePolicy", P.Cookie).then(
1573
+ (e = [C.Necessary]) => !!t && e.indexOf(t) === -1
1574
+ ), ni = (n = [C.Necessary], t) => !!t && n.indexOf(t) === -1, sn = (n) => {
1575
+ const t = nn(n), e = ue(n, window.localStorage), r = ue(n, sessionStorage), s = de(t, "storagePolicy"), [i, o, a] = [
1576
1576
  t,
1577
1577
  e,
1578
1578
  r
1579
- ].map((c) => Qt(c, s));
1580
- ur(n, i), Ve(n, window.localStorage, o), Ve(n, window.sessionStorage, a);
1581
- }, ye = (n = { days: 30 }) => {
1579
+ ].map((c) => re(c, s));
1580
+ fr(n, i), Ke(n, window.localStorage, o), Ke(n, window.sessionStorage, a);
1581
+ }, Ee = (n = { days: 30 }) => {
1582
1582
  const { days: t = 0, hours: e = 0, minutes: r = 0, seconds: s = 0 } = n, i = /* @__PURE__ */ new Date();
1583
1583
  return i.setTime(i.getTime() + e * 60 * 60 * 1e3), i.setTime(i.getTime() + t * 24 * 60 * 60 * 1e3), i.setTime(i.getTime() + r * 60 * 1e3), i.setTime(i.getTime() + s * 1e3), i.toISOString();
1584
- }, Xs = (n) => Q(document)(() => Ye(n)), ti = (n, t) => Q(document)(() => ur(n, t)), ei = (n, t) => {
1585
- const e = t === S.Local ? window.localStorage : window.sessionStorage;
1586
- return Q(e)(() => oe(n, e));
1587
- }, ni = (n, t, e) => {
1588
- const r = t === S.Local ? window.localStorage : window.sessionStorage;
1589
- return Q(r)(() => Ve(n, r, e));
1584
+ }, ri = (n) => X(document)(() => nn(n)), si = (n, t) => X(document)(() => fr(n, t)), ii = (n, t) => {
1585
+ const e = t === P.Local ? window.localStorage : window.sessionStorage;
1586
+ return X(e)(() => ue(n, e));
1587
+ }, oi = (n, t, e) => {
1588
+ const r = t === P.Local ? window.localStorage : window.sessionStorage;
1589
+ return X(r)(() => Ke(n, r, e));
1590
1590
  };
1591
- let Xt = class {
1591
+ let se = class {
1592
1592
  constructor() {
1593
1593
  this.memory = {
1594
1594
  tenant: {},
@@ -1597,13 +1597,13 @@ let Xt = class {
1597
1597
  };
1598
1598
  }
1599
1599
  setItem(t, e) {
1600
- return qt(this, arguments, function* (r, s, i = {}) {
1601
- return Q(this)(() => {
1602
- const o = Qt(this.memory, [P.Necessary]), { scope: a = Ct.Tenant, expiration: c } = i;
1603
- o[a][r] = Ze(
1600
+ return Zt(this, arguments, function* (r, s, i = {}) {
1601
+ return X(this)(() => {
1602
+ const o = re(this.memory, [C.Necessary]), { scope: a = Lt.Tenant, expiration: c } = i;
1603
+ o[a][r] = rn(
1604
1604
  s,
1605
- P.Necessary,
1606
- (c == null ? void 0 : c.toISOString()) || ye()
1605
+ C.Necessary,
1606
+ (c == null ? void 0 : c.toISOString()) || Ee()
1607
1607
  ), this.memory = o, process.env.NODE_ENV !== "production" && I.warn(
1608
1608
  `StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value stored temporarily in memory.
1609
1609
  Key: ${r}
@@ -1615,23 +1615,23 @@ let Xt = class {
1615
1615
  });
1616
1616
  }
1617
1617
  getItem(t) {
1618
- return qt(this, null, function* () {
1619
- return Q(this)(() => {
1620
- const e = Qt(this.memory, [P.Necessary]);
1618
+ return Zt(this, null, function* () {
1619
+ return X(this)(() => {
1620
+ const e = re(this.memory, [C.Necessary]);
1621
1621
  process.env.NODE_ENV !== "production" && I.warn(
1622
1622
  `StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value fetched from legacy memory storage.
1623
1623
  Key: ${t}
1624
1624
  Memory: ${JSON.stringify(e)}`
1625
1625
  );
1626
- const r = ae(e, t);
1626
+ const r = de(e, t);
1627
1627
  return this.memory = e, r;
1628
1628
  });
1629
1629
  });
1630
1630
  }
1631
1631
  removeItem(t) {
1632
- return qt(this, null, function* () {
1633
- return Q(this)(() => {
1634
- const e = Qt(this.memory, [P.Necessary]);
1632
+ return Zt(this, null, function* () {
1633
+ return X(this)(() => {
1634
+ const e = re(this.memory, [C.Necessary]);
1635
1635
  delete e.tenant[t], delete e.implementation[t], delete e.widget[t], this.memory = e, process.env.NODE_ENV !== "production" && I.warn(
1636
1636
  `StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value removed from memory.
1637
1637
  Key: ${t}
@@ -1641,16 +1641,16 @@ let Xt = class {
1641
1641
  });
1642
1642
  }
1643
1643
  clear() {
1644
- return qt(this, null, function* () {
1644
+ return Zt(this, null, function* () {
1645
1645
  return Promise.resolve();
1646
1646
  });
1647
1647
  }
1648
- }, ri = class {
1648
+ }, ai = class {
1649
1649
  constructor() {
1650
- this.cookies = new Xt(), this.session = new Xt(), this.local = new Xt();
1650
+ this.cookies = new se(), this.session = new se(), this.local = new se();
1651
1651
  }
1652
1652
  };
1653
- const Pe = (n, t, e, ...r) => {
1653
+ const Me = (n, t, e, ...r) => {
1654
1654
  const s = `[${n.get("$environment").name || "webprovisions"}] ${e}`;
1655
1655
  switch (t) {
1656
1656
  case "info":
@@ -1663,16 +1663,16 @@ const Pe = (n, t, e, ...r) => {
1663
1663
  console.error(s, ...r);
1664
1664
  break;
1665
1665
  }
1666
- }, si = (n) => {
1666
+ }, ci = (n) => {
1667
1667
  const t = n.container || n;
1668
1668
  return {
1669
- info: (e, ...r) => Pe(t, "info", e, ...r),
1670
- warn: (e, ...r) => Pe(t, "warning", e, ...r),
1671
- error: (e, ...r) => Pe(t, "error", e, ...r)
1669
+ info: (e, ...r) => Me(t, "info", e, ...r),
1670
+ warn: (e, ...r) => Me(t, "warning", e, ...r),
1671
+ error: (e, ...r) => Me(t, "error", e, ...r)
1672
1672
  };
1673
1673
  };
1674
- var ce = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(ce || {}), ft = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(ft || {});
1675
- const ii = (n, t, e, r) => {
1674
+ var pe = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(pe || {}), yt = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(yt || {});
1675
+ const hi = (n, t, e, r) => {
1676
1676
  try {
1677
1677
  const s = new t(e, r);
1678
1678
  return {
@@ -1696,23 +1696,23 @@ const ii = (n, t, e, r) => {
1696
1696
  throw s;
1697
1697
  }
1698
1698
  };
1699
- function _n(n, t) {
1699
+ function Nn(n, t) {
1700
1700
  return typeof n == "undefined" ? t : n;
1701
1701
  }
1702
- let oi = class {
1702
+ let li = class {
1703
1703
  constructor(t = {}) {
1704
1704
  this.part = t;
1705
1705
  }
1706
1706
  createCommand(t, e, r) {
1707
1707
  let s;
1708
1708
  typeof e == "function" ? s = {
1709
- scope: ce.Widget,
1710
- stage: ft.Post,
1709
+ scope: pe.Widget,
1710
+ stage: yt.Post,
1711
1711
  defaultArgs: void 0,
1712
1712
  handlerResolver: e
1713
1713
  } : s = {
1714
- scope: _n(e.scope, ce.Widget),
1715
- stage: _n(e.stage, ft.Post),
1714
+ scope: Nn(e.scope, pe.Widget),
1715
+ stage: Nn(e.stage, yt.Post),
1716
1716
  defaultArgs: e.defaultArgs,
1717
1717
  handlerResolver: r
1718
1718
  };
@@ -1726,26 +1726,26 @@ let oi = class {
1726
1726
  return this.part;
1727
1727
  }
1728
1728
  };
1729
- const dr = (n) => {
1730
- const t = new oi({});
1729
+ const mr = (n) => {
1730
+ const t = new li({});
1731
1731
  return n(t), t.get();
1732
1732
  };
1733
- dr((n) => {
1733
+ mr((n) => {
1734
1734
  n.createCommand(
1735
1735
  "types.register",
1736
- { scope: ce.Implementation, stage: ft.Pre },
1736
+ { scope: pe.Implementation, stage: yt.Pre },
1737
1737
  (t) => (e, r) => {
1738
1738
  t.container.get("$types")[e] = r;
1739
1739
  }
1740
1740
  ).createCommand(
1741
1741
  "type",
1742
- { stage: ft.Pre },
1742
+ { stage: yt.Pre },
1743
1743
  (t) => (e) => {
1744
1744
  t.container.register("$type", e);
1745
1745
  }
1746
1746
  ).createCommand(
1747
1747
  "settings",
1748
- { stage: ft.Pre, defaultArgs: [null] },
1748
+ { stage: yt.Pre, defaultArgs: [null] },
1749
1749
  (t) => (e) => {
1750
1750
  t.events.dispatch(
1751
1751
  "settings:change",
@@ -1755,7 +1755,7 @@ dr((n) => {
1755
1755
  }
1756
1756
  ).createCommand(
1757
1757
  "plugin",
1758
- { stage: ft.Pre },
1758
+ { stage: yt.Pre },
1759
1759
  (t) => (e, r, s) => {
1760
1760
  const { container: i } = t;
1761
1761
  let o = null, a = e, c = r;
@@ -1768,7 +1768,7 @@ dr((n) => {
1768
1768
  a
1769
1769
  ) : r;
1770
1770
  try {
1771
- const p = ii(
1771
+ const p = hi(
1772
1772
  o,
1773
1773
  a,
1774
1774
  i,
@@ -1776,7 +1776,7 @@ dr((n) => {
1776
1776
  );
1777
1777
  i.get("$plugins").push(p), l && p.invoke("initialize", null);
1778
1778
  } catch (p) {
1779
- si(t).warn("Error when initializing plugin", p);
1779
+ ci(t).warn("Error when initializing plugin", p);
1780
1780
  }
1781
1781
  };
1782
1782
  t.container.get("$instance") ? h(!0) : t.events.subscribeOnce("widget:instance-created", () => h(!1));
@@ -1809,7 +1809,7 @@ dr((n) => {
1809
1809
  }
1810
1810
  );
1811
1811
  });
1812
- dr((n) => {
1812
+ mr((n) => {
1813
1813
  n.createCommand("storage", (t) => (e = {}) => {
1814
1814
  const { consent: r } = e;
1815
1815
  if (typeof r != "undefined") {
@@ -1830,56 +1830,56 @@ dr((n) => {
1830
1830
  return;
1831
1831
  }
1832
1832
  const s = [
1833
- P.Necessary,
1834
- P.Functional,
1835
- P.Analytical,
1836
- P.Marketing
1833
+ C.Necessary,
1834
+ C.Functional,
1835
+ C.Analytical,
1836
+ C.Marketing
1837
1837
  ].filter((i, o, a) => typeof r == "number" ? r > o : typeof r == "string" ? a.indexOf(r) + 1 > o : Array.isArray(r) ? r.findIndex((c) => c === o + 1 || c === i) > -1 : !0);
1838
- return s.indexOf(P.Necessary) === -1 && (process.env.NODE_ENV !== "production" && I.warn(
1839
- `storagePolicyConfigurationApi: passed consent does not include category: '${P.Necessary}'. Consent has to atleast include the '${P.Necessary}' category.
1838
+ return s.indexOf(C.Necessary) === -1 && (process.env.NODE_ENV !== "production" && I.warn(
1839
+ `storagePolicyConfigurationApi: passed consent does not include category: '${C.Necessary}'. Consent has to atleast include the '${C.Necessary}' category.
1840
1840
  Passed consent: ${JSON.stringify(r)}`
1841
- ), s.unshift(P.Necessary)), et(
1841
+ ), s.unshift(C.Necessary)), rt(
1842
1842
  t.container,
1843
1843
  "storagePolicy",
1844
- P.Necessary,
1844
+ C.Necessary,
1845
1845
  {
1846
- medium: S.Cookie,
1847
- scope: Ct.Tenant,
1846
+ medium: P.Cookie,
1847
+ scope: Lt.Tenant,
1848
1848
  duration: { days: 365 }
1849
1849
  }
1850
1850
  ).then((i) => i(s)).then(() => {
1851
- Qe(t.container), t.events.dispatch("storage:policy-changed", s);
1851
+ sn(t.container), t.events.dispatch("storage:policy-changed", s);
1852
1852
  });
1853
1853
  }
1854
1854
  });
1855
1855
  });
1856
- const ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1856
+ const ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1857
1857
  __proto__: null,
1858
- StorageCategory: P,
1859
- StorageMedium: S,
1860
- StorageProvider: ri,
1861
- StorageScope: Ct,
1862
- StorageService: Xt,
1863
- createStorageWriter: et,
1864
- readStorage: Y
1858
+ StorageCategory: C,
1859
+ StorageMedium: P,
1860
+ StorageProvider: ai,
1861
+ StorageScope: Lt,
1862
+ StorageService: se,
1863
+ createStorageWriter: rt,
1864
+ readStorage: Z
1865
1865
  }, Symbol.toStringTag, { value: "Module" }));
1866
- var ci = Object.defineProperty, hi = Object.defineProperties, li = Object.getOwnPropertyDescriptors, he = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, Sn = (n, t, e) => t in n ? ci(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, Ot = (n, t) => {
1866
+ var di = Object.defineProperty, pi = Object.defineProperties, gi = Object.getOwnPropertyDescriptors, ge = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, yr = Object.prototype.propertyIsEnumerable, Ln = (n, t, e) => t in n ? di(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, At = (n, t) => {
1867
1867
  for (var e in t || (t = {}))
1868
- pr.call(t, e) && Sn(n, e, t[e]);
1869
- if (he)
1870
- for (var e of he(t))
1871
- gr.call(t, e) && Sn(n, e, t[e]);
1868
+ vr.call(t, e) && Ln(n, e, t[e]);
1869
+ if (ge)
1870
+ for (var e of ge(t))
1871
+ yr.call(t, e) && Ln(n, e, t[e]);
1872
1872
  return n;
1873
- }, fr = (n, t) => hi(n, li(t)), ui = (n, t) => {
1873
+ }, br = (n, t) => pi(n, gi(t)), fi = (n, t) => {
1874
1874
  var e = {};
1875
1875
  for (var r in n)
1876
- pr.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);
1877
- if (n != null && he)
1878
- for (var r of he(n))
1879
- t.indexOf(r) < 0 && gr.call(n, r) && (e[r] = n[r]);
1876
+ vr.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);
1877
+ if (n != null && ge)
1878
+ for (var r of ge(n))
1879
+ t.indexOf(r) < 0 && yr.call(n, r) && (e[r] = n[r]);
1880
1880
  return e;
1881
1881
  };
1882
- function mr(n) {
1882
+ function wr(n) {
1883
1883
  if (n.__esModule)
1884
1884
  return n;
1885
1885
  var t = n.default;
@@ -1906,9 +1906,9 @@ function mr(n) {
1906
1906
  });
1907
1907
  }), e;
1908
1908
  }
1909
- var vr = function() {
1909
+ var $r = function() {
1910
1910
  };
1911
- process.env.NODE_ENV !== "production" && (vr = function(n, t, e) {
1911
+ process.env.NODE_ENV !== "production" && ($r = function(n, t, e) {
1912
1912
  var r = arguments.length;
1913
1913
  e = new Array(r > 2 ? r - 2 : 0);
1914
1914
  for (var s = 2; s < r; s++)
@@ -1932,19 +1932,19 @@ process.env.NODE_ENV !== "production" && (vr = function(n, t, e) {
1932
1932
  }
1933
1933
  }
1934
1934
  });
1935
- var di = vr, pi = di, Pn = gi(pi);
1936
- function gi(n) {
1935
+ var mi = $r, vi = mi, Mn = yi(vi);
1936
+ function yi(n) {
1937
1937
  return n && n.__esModule ? n : { default: n };
1938
1938
  }
1939
- var fi = function() {
1939
+ var bi = function() {
1940
1940
  var n = null, t = function(o) {
1941
- return (0, Pn.default)(n == null, "A history supports only one prompt at a time"), n = o, function() {
1941
+ return (0, Mn.default)(n == null, "A history supports only one prompt at a time"), n = o, function() {
1942
1942
  n === o && (n = null);
1943
1943
  };
1944
1944
  }, e = function(o, a, c, h) {
1945
1945
  if (n != null) {
1946
1946
  var l = typeof n == "function" ? n(o, a) : n;
1947
- typeof l == "string" ? typeof c == "function" ? c(l, h) : ((0, Pn.default)(!1, "A history needs a getUserConfirmation function in order to use a prompt message"), h(!0)) : h(l !== !1);
1947
+ typeof l == "string" ? typeof c == "function" ? c(l, h) : ((0, Mn.default)(!1, "A history needs a getUserConfirmation function in order to use a prompt message"), h(!0)) : h(l !== !1);
1948
1948
  } else
1949
1949
  h(!0);
1950
1950
  }, r = [], s = function(o) {
@@ -1969,21 +1969,21 @@ var fi = function() {
1969
1969
  appendListener: s,
1970
1970
  notifyListeners: i
1971
1971
  };
1972
- }, yr = fi, br;
1973
- br = function(n, t) {
1972
+ }, Or = bi, Er;
1973
+ Er = function(n, t) {
1974
1974
  return t(window.confirm(n));
1975
1975
  };
1976
- function Jt(n) {
1976
+ function Qt(n) {
1977
1977
  return n.charAt(0) === "/";
1978
1978
  }
1979
- function Ce(n, t) {
1979
+ function De(n, t) {
1980
1980
  for (var e = t, r = e + 1, s = n.length; r < s; e += 1, r += 1)
1981
1981
  n[e] = n[r];
1982
1982
  n.pop();
1983
1983
  }
1984
- function mi(n) {
1985
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", e = n && n.split("/") || [], r = t && t.split("/") || [], s = n && Jt(n), i = t && Jt(t), o = s || i;
1986
- if (n && Jt(n) ? r = e : e.length && (r.pop(), r = r.concat(e)), !r.length)
1984
+ function wi(n) {
1985
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", e = n && n.split("/") || [], r = t && t.split("/") || [], s = n && Qt(n), i = t && Qt(t), o = s || i;
1986
+ if (n && Qt(n) ? r = e : e.length && (r.pop(), r = r.concat(e)), !r.length)
1987
1987
  return "/";
1988
1988
  var a = void 0;
1989
1989
  if (r.length) {
@@ -1993,69 +1993,69 @@ function mi(n) {
1993
1993
  a = !1;
1994
1994
  for (var h = 0, l = r.length; l >= 0; l--) {
1995
1995
  var u = r[l];
1996
- u === "." ? Ce(r, l) : u === ".." ? (Ce(r, l), h++) : h && (Ce(r, l), h--);
1996
+ u === "." ? De(r, l) : u === ".." ? (De(r, l), h++) : h && (De(r, l), h--);
1997
1997
  }
1998
1998
  if (!o)
1999
1999
  for (; h--; h)
2000
2000
  r.unshift("..");
2001
- o && r[0] !== "" && (!r[0] || !Jt(r[0])) && r.unshift("");
2001
+ o && r[0] !== "" && (!r[0] || !Qt(r[0])) && r.unshift("");
2002
2002
  var d = r.join("/");
2003
2003
  return a && d.substr(-1) !== "/" && (d += "/"), d;
2004
2004
  }
2005
- const vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2005
+ const $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2006
2006
  __proto__: null,
2007
- default: mi
2008
- }, Symbol.toStringTag, { value: "Module" })), yi = /* @__PURE__ */ mr(vi);
2009
- var Cn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
2007
+ default: wi
2008
+ }, Symbol.toStringTag, { value: "Module" })), Oi = /* @__PURE__ */ wr($i);
2009
+ var Dn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
2010
2010
  return typeof n;
2011
2011
  } : function(n) {
2012
2012
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
2013
2013
  };
2014
- function te(n, t) {
2014
+ function ie(n, t) {
2015
2015
  if (n === t)
2016
2016
  return !0;
2017
2017
  if (n == null || t == null)
2018
2018
  return !1;
2019
2019
  if (Array.isArray(n))
2020
2020
  return Array.isArray(t) && n.length === t.length && n.every(function(c, h) {
2021
- return te(c, t[h]);
2021
+ return ie(c, t[h]);
2022
2022
  });
2023
- var e = typeof n == "undefined" ? "undefined" : Cn(n), r = typeof t == "undefined" ? "undefined" : Cn(t);
2023
+ var e = typeof n == "undefined" ? "undefined" : Dn(n), r = typeof t == "undefined" ? "undefined" : Dn(t);
2024
2024
  if (e !== r)
2025
2025
  return !1;
2026
2026
  if (e === "object") {
2027
2027
  var s = n.valueOf(), i = t.valueOf();
2028
2028
  if (s !== n || i !== t)
2029
- return te(s, i);
2029
+ return ie(s, i);
2030
2030
  var o = Object.keys(n), a = Object.keys(t);
2031
2031
  return o.length !== a.length ? !1 : o.every(function(c) {
2032
- return te(n[c], t[c]);
2032
+ return ie(n[c], t[c]);
2033
2033
  });
2034
2034
  }
2035
2035
  return !1;
2036
2036
  }
2037
- const bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2037
+ const Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2038
2038
  __proto__: null,
2039
- default: te
2040
- }, Symbol.toStringTag, { value: "Module" })), wi = /* @__PURE__ */ mr(bi);
2041
- var nt = {}, ot, wr, ze, Tt;
2042
- nt.__esModule = !0;
2043
- Tt = nt.addLeadingSlash = function(n) {
2039
+ default: ie
2040
+ }, Symbol.toStringTag, { value: "Module" })), xi = /* @__PURE__ */ wr(Ei);
2041
+ var st = {}, at, xr, Ge, Ut;
2042
+ st.__esModule = !0;
2043
+ Ut = st.addLeadingSlash = function(n) {
2044
2044
  return n.charAt(0) === "/" ? n : "/" + n;
2045
2045
  };
2046
- ze = nt.stripLeadingSlash = function(n) {
2046
+ Ge = st.stripLeadingSlash = function(n) {
2047
2047
  return n.charAt(0) === "/" ? n.substr(1) : n;
2048
2048
  };
2049
- var $i = nt.hasBasename = function(n, t) {
2049
+ var _i = st.hasBasename = function(n, t) {
2050
2050
  return new RegExp("^" + t + "(\\/|\\?|#|$)", "i").test(n);
2051
2051
  };
2052
- nt.stripBasename = function(n, t) {
2053
- return $i(n, t) ? n.substr(t.length) : n;
2052
+ st.stripBasename = function(n, t) {
2053
+ return _i(n, t) ? n.substr(t.length) : n;
2054
2054
  };
2055
- wr = nt.stripTrailingSlash = function(n) {
2055
+ xr = st.stripTrailingSlash = function(n) {
2056
2056
  return n.charAt(n.length - 1) === "/" ? n.slice(0, -1) : n;
2057
2057
  };
2058
- nt.parsePath = function(n) {
2058
+ st.parsePath = function(n) {
2059
2059
  var t = n || "/", e = "", r = "", s = t.indexOf("#");
2060
2060
  s !== -1 && (r = t.substr(s), t = t.substr(0, s));
2061
2061
  var i = t.indexOf("?");
@@ -2065,35 +2065,35 @@ nt.parsePath = function(n) {
2065
2065
  hash: r === "#" ? "" : r
2066
2066
  };
2067
2067
  };
2068
- ot = nt.createPath = function(n) {
2068
+ at = st.createPath = function(n) {
2069
2069
  var t = n.pathname, e = n.search, r = n.hash, s = t || "/";
2070
2070
  return e && e !== "?" && (s += e.charAt(0) === "?" ? e : "?" + e), r && r !== "#" && (s += r.charAt(0) === "#" ? r : "#" + r), s;
2071
2071
  };
2072
- var be, $r = be = void 0, Ei = Object.assign || function(n) {
2072
+ var xe, _r = xe = void 0, Ai = Object.assign || function(n) {
2073
2073
  for (var t = 1; t < arguments.length; t++) {
2074
2074
  var e = arguments[t];
2075
2075
  for (var r in e)
2076
2076
  Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
2077
2077
  }
2078
2078
  return n;
2079
- }, Oi = yi, Ai = Er(Oi), xi = wi, _i = Er(xi), Si = nt;
2080
- function Er(n) {
2079
+ }, Pi = Oi, Ci = Ar(Pi), Si = xi, ki = Ar(Si), Ni = st;
2080
+ function Ar(n) {
2081
2081
  return n && n.__esModule ? n : { default: n };
2082
2082
  }
2083
- be = function(n, t, e, r) {
2083
+ xe = function(n, t, e, r) {
2084
2084
  var s = void 0;
2085
- typeof n == "string" ? (s = (0, Si.parsePath)(n), s.state = t) : (s = Ei({}, n), s.pathname === void 0 && (s.pathname = ""), s.search ? s.search.charAt(0) !== "?" && (s.search = "?" + s.search) : s.search = "", s.hash ? s.hash.charAt(0) !== "#" && (s.hash = "#" + s.hash) : s.hash = "", t !== void 0 && s.state === void 0 && (s.state = t));
2085
+ typeof n == "string" ? (s = (0, Ni.parsePath)(n), s.state = t) : (s = Ai({}, n), s.pathname === void 0 && (s.pathname = ""), s.search ? s.search.charAt(0) !== "?" && (s.search = "?" + s.search) : s.search = "", s.hash ? s.hash.charAt(0) !== "#" && (s.hash = "#" + s.hash) : s.hash = "", t !== void 0 && s.state === void 0 && (s.state = t));
2086
2086
  try {
2087
2087
  s.pathname = decodeURI(s.pathname);
2088
2088
  } catch (i) {
2089
2089
  throw i instanceof URIError ? new URIError('Pathname "' + s.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.') : i;
2090
2090
  }
2091
- return e && (s.key = e), r ? s.pathname ? s.pathname.charAt(0) !== "/" && (s.pathname = (0, Ai.default)(s.pathname, r.pathname)) : s.pathname = r.pathname : s.pathname || (s.pathname = "/"), s;
2091
+ return e && (s.key = e), r ? s.pathname ? s.pathname.charAt(0) !== "/" && (s.pathname = (0, Ci.default)(s.pathname, r.pathname)) : s.pathname = r.pathname : s.pathname || (s.pathname = "/"), s;
2092
2092
  };
2093
- $r = function(n, t) {
2094
- return n.pathname === t.pathname && n.search === t.search && n.hash === t.hash && n.key === t.key && (0, _i.default)(n.state, t.state);
2093
+ _r = function(n, t) {
2094
+ return n.pathname === t.pathname && n.search === t.search && n.hash === t.hash && n.key === t.key && (0, ki.default)(n.state, t.state);
2095
2095
  };
2096
- const Or = "/", Ar = "./", Pi = new RegExp(
2096
+ const Pr = "/", Cr = "./", Li = new RegExp(
2097
2097
  [
2098
2098
  // Match escaped characters that would otherwise appear in future matches.
2099
2099
  // This allows the user to escape special characters that won't transform.
@@ -2106,38 +2106,38 @@ const Or = "/", Ar = "./", Pi = new RegExp(
2106
2106
  "(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"
2107
2107
  ].join("|"),
2108
2108
  "g"
2109
- ), xr = (n, t) => {
2109
+ ), Sr = (n, t) => {
2110
2110
  const e = [];
2111
2111
  let r = 0, s = 0, i = "";
2112
- const o = t && t.delimiter || Or, a = t && t.delimiters || Ar;
2112
+ const o = t && t.delimiter || Pr, a = t && t.delimiters || Cr;
2113
2113
  let c = !1, h;
2114
- for (; (h = Pi.exec(n)) !== null; ) {
2114
+ for (; (h = Li.exec(n)) !== null; ) {
2115
2115
  const l = h[0], u = h[1], d = h.index;
2116
2116
  if (i += n.slice(s, d), s = d + l.length, u) {
2117
2117
  i += u[1], c = !0;
2118
2118
  continue;
2119
2119
  }
2120
2120
  let p = "";
2121
- const b = n[s], v = h[2], g = h[3], O = h[4], j = h[5];
2121
+ const b = n[s], v = h[2], g = h[3], E = h[4], R = h[5];
2122
2122
  if (!c && i.length) {
2123
2123
  const N = i.length - 1;
2124
2124
  a.indexOf(i[N]) > -1 && (p = i[N], i = i.slice(0, N));
2125
2125
  }
2126
2126
  i && (e.push(i), i = "", c = !1);
2127
- const W = p !== "" && b !== void 0 && b !== p, H = j === "+" || j === "*", k = j === "?" || j === "*", U = p || o, A = g || O;
2127
+ const F = p !== "" && b !== void 0 && b !== p, H = R === "+" || R === "*", k = R === "?" || R === "*", U = p || o, x = g || E;
2128
2128
  e.push({
2129
2129
  delimiter: U,
2130
2130
  optional: k,
2131
2131
  repeat: H,
2132
- partial: W,
2132
+ partial: F,
2133
2133
  name: v || r++,
2134
2134
  // tslint:disable-line:no-increment-decrement
2135
2135
  prefix: p,
2136
- pattern: A ? Ni(A) : "[^" + Mt(U) + "]+?"
2136
+ pattern: x ? ji(x) : "[^" + Tt(U) + "]+?"
2137
2137
  });
2138
2138
  }
2139
2139
  return (i || s < n.length) && e.push(i + n.substr(s)), e;
2140
- }, Ci = (n, t) => ki(xr(n, t)), ki = (n) => {
2140
+ }, Mi = (n, t) => Di(Sr(n, t)), Di = (n) => {
2141
2141
  const t = new Array(n.length);
2142
2142
  for (let e = 0; e < n.length; e++)
2143
2143
  typeof n[e] == "object" && (t[e] = new RegExp("^(?:" + n[e].pattern + ")$"));
@@ -2189,7 +2189,7 @@ const Or = "/", Ar = "./", Pi = new RegExp(
2189
2189
  }
2190
2190
  return s;
2191
2191
  };
2192
- }, Mt = (n) => n.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1"), Ni = (n) => n.replace(/([=!:$/()])/g, "\\$1"), _r = (n) => n && n.sensitive ? "" : "i", Mi = (n, t) => {
2192
+ }, Tt = (n) => n.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1"), ji = (n) => n.replace(/([=!:$/()])/g, "\\$1"), kr = (n) => n && n.sensitive ? "" : "i", Ri = (n, t) => {
2193
2193
  if (!t)
2194
2194
  return n;
2195
2195
  const e = n.source.match(/\((?!\?)/g);
@@ -2205,56 +2205,56 @@ const Or = "/", Ar = "./", Pi = new RegExp(
2205
2205
  pattern: ""
2206
2206
  });
2207
2207
  return n;
2208
- }, Li = (n, t, e) => {
2208
+ }, Ti = (n, t, e) => {
2209
2209
  const r = [];
2210
2210
  for (let s = 0; s < n.length; s++)
2211
- r.push(Sr(n[s], t, e).source);
2212
- return new RegExp("(?:" + r.join("|") + ")", _r(e));
2213
- }, Di = (n, t, e) => Ti(xr(n, e), t, e), Ti = (n, t, e) => {
2211
+ r.push(Nr(n[s], t, e).source);
2212
+ return new RegExp("(?:" + r.join("|") + ")", kr(e));
2213
+ }, Ii = (n, t, e) => Hi(Sr(n, e), t, e), Hi = (n, t, e) => {
2214
2214
  e = e || {};
2215
- const r = e.strict, s = e.end !== !1, i = Mt(e.delimiter || Or), o = e.delimiters || Ar, a = [].concat(e.endsWith || []).map(Mt).concat("$").join("|");
2215
+ const r = e.strict, s = e.end !== !1, i = Tt(e.delimiter || Pr), o = e.delimiters || Cr, a = [].concat(e.endsWith || []).map(Tt).concat("$").join("|");
2216
2216
  let c = "", h = !1;
2217
2217
  for (let l = 0; l < n.length; l++) {
2218
2218
  const u = n[l];
2219
2219
  if (typeof u == "string")
2220
- c += Mt(u), h = l === n.length - 1 && o.indexOf(u[u.length - 1]) > -1;
2220
+ c += Tt(u), h = l === n.length - 1 && o.indexOf(u[u.length - 1]) > -1;
2221
2221
  else {
2222
- const d = Mt(u.prefix), p = u.repeat ? "(?:" + u.pattern + ")(?:" + d + "(?:" + u.pattern + "))*" : u.pattern;
2222
+ const d = Tt(u.prefix), p = u.repeat ? "(?:" + u.pattern + ")(?:" + d + "(?:" + u.pattern + "))*" : u.pattern;
2223
2223
  t && t.push(u), u.optional ? u.partial ? c += d + "(" + p + ")?" : c += "(?:" + d + "(" + p + "))?" : c += d + "(" + p + ")";
2224
2224
  }
2225
2225
  }
2226
- return s ? (r || (c += "(?:" + i + ")?"), c += a === "$" ? "$" : "(?=" + a + ")") : (r || (c += "(?:" + i + "(?=" + a + "))?"), h || (c += "(?=" + i + "|" + a + ")")), new RegExp("^" + c, _r(e));
2227
- }, Sr = (n, t, e) => n instanceof RegExp ? Mi(n, t || []) : Array.isArray(n) ? Li(n, t, e) : Di(n, t, e), le = Sr;
2228
- var G = /* @__PURE__ */ ((n) => (n.scopedHash = "scopedHash", n.hash = "hash", n.browser = "browser", n.memory = "memory", n))(G || {}), dt = /* @__PURE__ */ ((n) => (n.storage = "storage", n.path = "path", n.initialPath = "initial", n))(dt || {});
2229
- const Lt = (n, t) => {
2230
- const e = [], r = le(t, e).exec(n);
2226
+ return s ? (r || (c += "(?:" + i + ")?"), c += a === "$" ? "$" : "(?=" + a + ")") : (r || (c += "(?:" + i + "(?=" + a + "))?"), h || (c += "(?=" + i + "|" + a + ")")), new RegExp("^" + c, kr(e));
2227
+ }, Nr = (n, t, e) => n instanceof RegExp ? Ri(n, t || []) : Array.isArray(n) ? Ti(n, t, e) : Ii(n, t, e), fe = Nr;
2228
+ var Y = /* @__PURE__ */ ((n) => (n.scopedHash = "scopedHash", n.hash = "hash", n.browser = "browser", n.memory = "memory", n))(Y || {}), ft = /* @__PURE__ */ ((n) => (n.storage = "storage", n.path = "path", n.initialPath = "initial", n))(ft || {});
2229
+ const It = (n, t) => {
2230
+ const e = [], r = fe(t, e).exec(n);
2231
2231
  if (!r)
2232
2232
  return {};
2233
2233
  const [s, ...i] = r;
2234
2234
  return e.reduce((o, a, c) => (o[a.name] = i[c], o), {});
2235
- }, ji = (n) => Object.keys(n).reduce((t, e) => {
2235
+ }, Ui = (n) => Object.keys(n).reduce((t, e) => {
2236
2236
  const r = typeof n[e] == "string" ? n[e].replace("&", "%20") : n[e];
2237
2237
  let s = `${e}=${r}`;
2238
2238
  return t.length > 1 && (s = "&".concat(s)), t.concat(s);
2239
- }, "?"), ke = (n, t) => {
2239
+ }, "?"), je = (n, t) => {
2240
2240
  const e = t.find((r) => r.name === n);
2241
2241
  if (!e) {
2242
2242
  process.env.NODE_ENV !== "production" && I.warn(`Unable to find route with specified name: ${n}`);
2243
2243
  return;
2244
2244
  }
2245
2245
  return e;
2246
- }, Pr = (n) => n.length ? n.slice(1).split("&").map((t) => t.split("=")).reduce((t, e) => {
2246
+ }, Lr = (n) => n.length ? n.slice(1).split("&").map((t) => t.split("=")).reduce((t, e) => {
2247
2247
  const [r, s] = e.map(encodeURI).map(decodeURIComponent);
2248
- return fr(Ot({}, t), { [r]: decodeURIComponent(s).replace("%20", "&") });
2249
- }, {}) : {}, Ri = (n, t) => {
2250
- const e = t.map((r) => ee(n, r)).reduce(
2248
+ return br(At({}, t), { [r]: decodeURIComponent(s).replace("%20", "&") });
2249
+ }, {}) : {}, Vi = (n, t) => {
2250
+ const e = t.map((r) => oe(n, r)).reduce(
2251
2251
  (r, s) => {
2252
2252
  if (s === null)
2253
2253
  return r;
2254
2254
  const i = s.split("?")[1];
2255
2255
  let o = 0;
2256
2256
  if (i) {
2257
- const a = Pr(`?${i}`);
2257
+ const a = Lr(`?${i}`);
2258
2258
  o = Object.keys(a).length;
2259
2259
  }
2260
2260
  return !r.path || r.count && o < r.count ? {
@@ -2265,15 +2265,15 @@ const Lt = (n, t) => {
2265
2265
  { count: void 0, path: void 0 }
2266
2266
  );
2267
2267
  return e ? e.path : t[0];
2268
- }, ee = (n, t) => {
2269
- const e = yt(n);
2268
+ }, oe = (n, t) => {
2269
+ const e = $t(n);
2270
2270
  if (Array.isArray(t)) {
2271
- const c = Ri(e, t);
2271
+ const c = Vi(e, t);
2272
2272
  if (!c)
2273
2273
  throw new Error("Unable to match path.");
2274
2274
  return c;
2275
2275
  }
2276
- const r = Ci(t);
2276
+ const r = Mi(t);
2277
2277
  let s = t;
2278
2278
  try {
2279
2279
  s = r(e);
@@ -2281,28 +2281,28 @@ const Lt = (n, t) => {
2281
2281
  return null;
2282
2282
  }
2283
2283
  const i = [];
2284
- le(t, i);
2284
+ fe(t, i);
2285
2285
  const o = Object.keys(e).reduce((c, h) => (i.find((l) => l.name === h) || c.push(h), c), []), a = {};
2286
- return o.forEach((c) => a[c] = e[c]), Object.keys(a).forEach((c) => a[c] === null && delete a[c]), Object.keys(a).length > 0 ? `${s}${ji(a)}` : s;
2287
- }, Et = (n, t) => {
2286
+ return o.forEach((c) => a[c] = e[c]), Object.keys(a).forEach((c) => a[c] === null && delete a[c]), Object.keys(a).length > 0 ? `${s}${Ui(a)}` : s;
2287
+ }, _t = (n, t) => {
2288
2288
  let e = n;
2289
2289
  return e.indexOf("?") > -1 && (e = e.substring(0, e.indexOf("?"))), e.indexOf(";") > -1 && (e = e.substring(0, e.indexOf(";"))), e === "" && (e = "/"), t.reduce((r, s) => {
2290
2290
  if (Array.isArray(s.path))
2291
- return s.path.reduce((o, a) => le(a, []).exec(e || "") && !o ? e : o, void 0) && !r ? s : r;
2291
+ return s.path.reduce((o, a) => fe(a, []).exec(e || "") && !o ? e : o, void 0) && !r ? s : r;
2292
2292
  if (!s.path)
2293
2293
  return r;
2294
2294
  const i = [];
2295
- return le(s.path, i).exec(e || "") && !r ? s : r;
2295
+ return fe(s.path, i).exec(e || "") && !r ? s : r;
2296
2296
  }, void 0);
2297
- }, Ii = (n) => {
2297
+ }, Bi = (n) => {
2298
2298
  let t = n.get("historyTransitionManager");
2299
- return t || (t = yr(), n.parent && n.parent.register("historyTransitionManager", t)), t;
2300
- }, Dt = (n, t = null) => n ? be(t ? t(n) : n) : {
2299
+ return t || (t = Or(), n.parent && n.parent.register("historyTransitionManager", t)), t;
2300
+ }, Ht = (n, t = null) => n ? xe(t ? t(n) : n) : {
2301
2301
  pathname: "",
2302
2302
  search: "",
2303
2303
  hash: ""
2304
- }, Hi = (n, t) => {
2305
- if (yt(n), yt(t), Object.keys(n).length !== Object.keys(t).length)
2304
+ }, zi = (n, t) => {
2305
+ if ($t(n), $t(t), Object.keys(n).length !== Object.keys(t).length)
2306
2306
  return !1;
2307
2307
  if (Object.keys(n).length === 0 && Object.keys(t).length === 0)
2308
2308
  return !0;
@@ -2310,44 +2310,44 @@ const Lt = (n, t) => {
2310
2310
  return Object.keys(t).forEach((r) => {
2311
2311
  t[r] !== n[r] && (e = !1);
2312
2312
  }), e;
2313
- }, Ui = (n) => {
2313
+ }, Wi = (n) => {
2314
2314
  if (typeof n.mode == "string") {
2315
- if (n.mode === G.memory)
2315
+ if (n.mode === Y.memory)
2316
2316
  return !0;
2317
2317
  } else if (n.mode[1]) {
2318
2318
  const [t, { sticky: e }] = n.mode;
2319
- if (t === G.memory)
2319
+ if (t === Y.memory)
2320
2320
  return typeof e == "undefined" ? !0 : e;
2321
2321
  }
2322
2322
  return !1;
2323
- }, Ne = (n) => {
2323
+ }, Re = (n) => {
2324
2324
  const { views: t } = n.get("$settings"), e = Object.keys(t).reduce((r, s) => typeof t[s].path == "undefined" ? s : r, void 0);
2325
2325
  return e ? {
2326
2326
  name: e,
2327
2327
  params: {}
2328
2328
  } : null;
2329
- }, kn = "hashchange", Bi = {
2329
+ }, jn = "hashchange", Fi = {
2330
2330
  hashbang: {
2331
- encodePath: (n) => n.charAt(0) === "!" ? n : "!/" + ze(n),
2331
+ encodePath: (n) => n.charAt(0) === "!" ? n : "!/" + Ge(n),
2332
2332
  decodePath: (n) => n.charAt(0) === "!" ? n.substr(1) : n
2333
2333
  },
2334
2334
  noslash: {
2335
- encodePath: ze,
2336
- decodePath: Tt
2335
+ encodePath: Ge,
2336
+ decodePath: Ut
2337
2337
  },
2338
2338
  slash: {
2339
- encodePath: Tt,
2340
- decodePath: Tt
2339
+ encodePath: Ut,
2340
+ decodePath: Ut
2341
2341
  }
2342
- }, at = () => {
2342
+ }, ct = () => {
2343
2343
  const n = window.location.href, t = n.indexOf("#");
2344
2344
  return t === -1 ? "" : n.substring(t + 1);
2345
- }, Nn = (n) => window.location.hash = n, Mn = (n) => {
2345
+ }, Rn = (n) => window.location.hash = n, Tn = (n) => {
2346
2346
  const t = window.location.href.indexOf("#");
2347
2347
  window.location.replace(
2348
2348
  window.location.href.slice(0, t >= 0 ? t : 0) + "#" + n
2349
2349
  );
2350
- }, ne = (n = "") => {
2350
+ }, ae = (n = "") => {
2351
2351
  const t = n.replace(";", "?"), e = [
2352
2352
  { from: /\;+/gi, to: "&" },
2353
2353
  { from: /:+/gi, to: "=" }
@@ -2356,29 +2356,29 @@ const Lt = (n, t) => {
2356
2356
  return e.forEach(({ to: s, from: i }) => {
2357
2357
  r = r.replace(i, s);
2358
2358
  }), r;
2359
- }, Vi = (n = {}) => {
2360
- const t = window.history, { getUserConfirmation: e = br, hashType: r = "slash" } = n, s = n.basename ? wr(Tt(n.basename)) : "", { encodePath: i } = Bi[r], o = () => {
2361
- const f = at(), w = l(f);
2362
- return Dt(w, ne);
2363
- }, a = n.transitionManager || yr(), c = (f) => {
2364
- Object.assign(R, f), R.length = t.length, a.notifyListeners(R.location, R.action, n.widgetName);
2359
+ }, qi = (n = {}) => {
2360
+ const t = window.history, { getUserConfirmation: e = Er, hashType: r = "slash" } = n, s = n.basename ? xr(Ut(n.basename)) : "", { encodePath: i } = Fi[r], o = () => {
2361
+ const f = ct(), w = l(f);
2362
+ return Ht(w, ae);
2363
+ }, a = n.transitionManager || Or(), c = (f) => {
2364
+ Object.assign(T, f), T.length = t.length, a.notifyListeners(T.location, T.action, n.widgetName);
2365
2365
  };
2366
2366
  let h = !1;
2367
2367
  const l = (f) => {
2368
2368
  const w = ($) => {
2369
- function _(x, m) {
2370
- const E = {};
2371
- let M;
2372
- for (; M = m.exec(x); )
2373
- E[M[1]] = M[2];
2374
- return E;
2369
+ function A(_, m) {
2370
+ const O = {};
2371
+ let L;
2372
+ for (; L = m.exec(_); )
2373
+ O[L[1]] = L[2];
2374
+ return O;
2375
2375
  }
2376
- return _($, /([^#?&=]+)=([^&#]*)(?!.*?\#)/gi) || null;
2376
+ return A($, /([^#?&=]+)=([^&#]*)(?!.*?\#)/gi) || null;
2377
2377
  }, y = "humany-" + n.widgetName;
2378
2378
  return w(f)[y];
2379
2379
  }, u = () => {
2380
- const f = o(), w = R.location;
2381
- !h && $r(w, f) || d(f);
2380
+ const f = o(), w = T.location;
2381
+ !h && _r(w, f) || d(f);
2382
2382
  }, d = (f) => {
2383
2383
  if (h)
2384
2384
  h = !1, c();
@@ -2394,19 +2394,19 @@ const Lt = (n, t) => {
2394
2394
  );
2395
2395
  }
2396
2396
  }, p = (f) => {
2397
- const w = R.location;
2398
- let y = g.lastIndexOf(ot(w));
2397
+ const w = T.location;
2398
+ let y = g.lastIndexOf(at(w));
2399
2399
  y === -1 && (y = 0);
2400
- let $ = g.lastIndexOf(ot(f));
2400
+ let $ = g.lastIndexOf(at(f));
2401
2401
  $ === -1 && ($ = 0);
2402
- const _ = y - $;
2403
- _ && (h = !0, A(_));
2404
- }, b = at(), v = i(b);
2405
- b !== v && Mn(v);
2402
+ const A = y - $;
2403
+ A && (h = !0, x(A));
2404
+ }, b = ct(), v = i(b);
2405
+ b !== v && Tn(v);
2406
2406
  let g = [];
2407
- const O = o();
2408
- O.pathname !== null && g.push(ot(O));
2409
- const j = (f = "") => {
2407
+ const E = o();
2408
+ E.pathname !== null && g.push(at(E));
2409
+ const R = (f = "") => {
2410
2410
  const w = [
2411
2411
  { from: /\?+/gi, to: ";" },
2412
2412
  { from: /\&amp;+/gi, to: ";" },
@@ -2414,87 +2414,87 @@ const Lt = (n, t) => {
2414
2414
  { from: /=+/gi, to: ":" }
2415
2415
  ];
2416
2416
  let y = f;
2417
- return w.forEach(({ to: $, from: _ }) => {
2418
- y = y.replace(_, $);
2417
+ return w.forEach(({ to: $, from: A }) => {
2418
+ y = y.replace(A, $);
2419
2419
  }), y;
2420
- }, W = (f, w, y) => {
2421
- let $ = "", _ = !1;
2422
- return f.split("&").forEach((x) => {
2423
- const m = x.split("="), E = m[0], M = m[1];
2424
- if (E === w) {
2425
- if (_ = !0, y === null)
2420
+ }, F = (f, w, y) => {
2421
+ let $ = "", A = !1;
2422
+ return f.split("&").forEach((_) => {
2423
+ const m = _.split("="), O = m[0], L = m[1];
2424
+ if (O === w) {
2425
+ if (A = !0, y === null)
2426
2426
  return;
2427
- $.length > 0 && ($ += "&"), typeof y != "undefined" ? $ += E + "=" + y : $ += E;
2427
+ $.length > 0 && ($ += "&"), typeof y != "undefined" ? $ += O + "=" + y : $ += O;
2428
2428
  } else
2429
- E && ($.length > 0 && ($ += "&"), $ += E + "=" + M);
2430
- }), !_ && y !== null && ($.length > 0 && ($ += "&"), typeof y != "undefined" ? $ += w + "=" + y : $ += w), $;
2429
+ O && ($.length > 0 && ($ += "&"), $ += O + "=" + L);
2430
+ }), !A && y !== null && ($.length > 0 && ($ += "&"), typeof y != "undefined" ? $ += w + "=" + y : $ += w), $;
2431
2431
  }, H = (f) => {
2432
- const w = f.pathname, y = j(f.search), $ = w + (y ? `;${y}` : ""), _ = `humany-${n.widgetName}`, x = at();
2433
- return `#${W(x, _, $).replace(";;", ";")}`;
2432
+ const w = f.pathname, y = R(f.search), $ = w + (y ? `;${y}` : ""), A = `humany-${n.widgetName}`, _ = ct();
2433
+ return `#${F(_, A, $).replace(";;", ";")}`;
2434
2434
  }, k = (f, w) => {
2435
- const y = "PUSH", $ = Dt(f, ne), _ = $.pathname, x = j($.search), m = _ + (x ? `${x}` : ""), E = `humany-${n.widgetName}`, M = at(), L = W(M, E, m);
2436
- a.confirmTransitionTo($, y, e, (J) => {
2437
- if (!J)
2435
+ const y = "PUSH", $ = Ht(f, ae), A = $.pathname, _ = R($.search), m = A + (_ ? `${_}` : ""), O = `humany-${n.widgetName}`, L = ct(), M = F(L, O, m);
2436
+ a.confirmTransitionTo($, y, e, (K) => {
2437
+ if (!K)
2438
2438
  return;
2439
- const K = ot($), rt = i(L);
2440
- if (at() !== rt) {
2441
- Nn(rt);
2442
- const Z = g.lastIndexOf(ot(R.location)), F = g.slice(0, Z === -1 ? 0 : Z + 1);
2443
- F.push(K), g = F, c({ action: y, location: $ });
2439
+ const G = at($), it = i(M);
2440
+ if (ct() !== it) {
2441
+ Rn(it);
2442
+ const Q = g.lastIndexOf(at(T.location)), q = g.slice(0, Q === -1 ? 0 : Q + 1);
2443
+ q.push(G), g = q, c({ action: y, location: $ });
2444
2444
  } else
2445
2445
  c();
2446
2446
  });
2447
2447
  }, U = (f, w) => {
2448
- const y = "REPLACE", $ = Dt(f, ne);
2449
- a.confirmTransitionTo($, y, e, (_) => {
2450
- if (!_)
2448
+ const y = "REPLACE", $ = Ht(f, ae);
2449
+ a.confirmTransitionTo($, y, e, (A) => {
2450
+ if (!A)
2451
2451
  return;
2452
- const x = ot($), m = i(s + x);
2453
- at() !== m && Mn(m);
2454
- const E = g.indexOf(ot(R.location));
2455
- E !== -1 && (g[E] = x), c({ action: y, location: $ });
2452
+ const _ = at($), m = i(s + _);
2453
+ ct() !== m && Tn(m);
2454
+ const O = g.indexOf(at(T.location));
2455
+ O !== -1 && (g[O] = _), c({ action: y, location: $ });
2456
2456
  });
2457
- }, A = (f) => {
2457
+ }, x = (f) => {
2458
2458
  t.go(f);
2459
- }, N = () => A(-1), C = () => A(1);
2459
+ }, N = () => x(-1), S = () => x(1);
2460
2460
  let D = 0;
2461
- const V = (f) => {
2462
- D += f, D === 1 ? window.addEventListener(kn, u) : D === 0 && window.removeEventListener(kn, u);
2461
+ const z = (f) => {
2462
+ D += f, D === 1 ? window.addEventListener(jn, u) : D === 0 && window.removeEventListener(jn, u);
2463
2463
  };
2464
- let B = !1;
2465
- const R = {
2464
+ let V = !1;
2465
+ const T = {
2466
2466
  createHref: H,
2467
- createLocation: Dt,
2467
+ createLocation: Ht,
2468
2468
  push: k,
2469
2469
  replace: U,
2470
- go: A,
2470
+ go: x,
2471
2471
  goBack: N,
2472
- goForward: C,
2472
+ goForward: S,
2473
2473
  block: (f = !1) => {
2474
2474
  const w = a.setPrompt(f);
2475
- return B || (V(1), B = !0), () => (B && (B = !1, V(-1)), w());
2475
+ return V || (z(1), V = !0), () => (V && (V = !1, z(-1)), w());
2476
2476
  },
2477
2477
  listen: (f) => {
2478
2478
  const w = a.appendListener(f);
2479
- return V(1), () => {
2480
- V(-1), w();
2479
+ return z(1), () => {
2480
+ z(-1), w();
2481
2481
  };
2482
2482
  },
2483
2483
  stop: () => {
2484
- const f = at(), w = W(f, `humany-${n.widgetName}`, null), y = i(w);
2485
- Nn(y);
2484
+ const f = ct(), w = F(f, `humany-${n.widgetName}`, null), y = i(w);
2485
+ Rn(y);
2486
2486
  },
2487
2487
  length: t.length,
2488
2488
  action: "POP",
2489
- location: O
2489
+ location: E
2490
2490
  };
2491
- return R;
2492
- }, Cr = Vi, zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2491
+ return T;
2492
+ }, Mr = qi, Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2493
2493
  __proto__: null,
2494
- decodeSearch: ne,
2495
- default: Cr,
2496
- getHashPath: at
2497
- }, Symbol.toStringTag, { value: "Module" })), Wi = (n, t) => {
2494
+ decodeSearch: ae,
2495
+ default: Mr,
2496
+ getHashPath: ct
2497
+ }, Symbol.toStringTag, { value: "Module" })), Ki = (n, t) => {
2498
2498
  const e = (s) => {
2499
2499
  function i(o, a) {
2500
2500
  const c = {};
@@ -2506,10 +2506,10 @@ const Lt = (n, t) => {
2506
2506
  return i(s, /([^#?&=]+)=([^&#]*)(?!.*?\#)/gi) || null;
2507
2507
  }, r = `humany-${t}`;
2508
2508
  return e(n)[r];
2509
- }, Fi = () => {
2509
+ }, Gi = () => {
2510
2510
  const n = window.location.href, t = n.indexOf("#");
2511
2511
  return t === -1 ? "" : n.substring(t + 1);
2512
- }, qi = (n = "") => {
2512
+ }, Yi = (n = "") => {
2513
2513
  const t = n.replace(";", "?"), e = [
2514
2514
  { from: /\;+/gi, to: "&" },
2515
2515
  { from: /:+/gi, to: "=" }
@@ -2518,18 +2518,18 @@ const Lt = (n, t) => {
2518
2518
  return e.forEach(({ to: s, from: i }) => {
2519
2519
  r = r.replace(i, s);
2520
2520
  }), r;
2521
- }, Ji = (n, t = null) => n ? be(t ? t(n) : n) : {
2521
+ }, Zi = (n, t = null) => n ? xe(t ? t(n) : n) : {
2522
2522
  pathname: "",
2523
2523
  search: "",
2524
2524
  hash: ""
2525
- }, kr = (n) => {
2526
- const t = Fi(), e = Wi(t, n);
2527
- return Ji(e, qi);
2528
- }, Xe = (n) => {
2525
+ }, Dr = (n) => {
2526
+ const t = Gi(), e = Ki(t, n);
2527
+ return Zi(e, Yi);
2528
+ }, on = (n) => {
2529
2529
  const { name: t } = n.get("$widget");
2530
- return !!kr(t).pathname;
2530
+ return !!Dr(t).pathname;
2531
2531
  };
2532
- Je((n) => {
2532
+ Xe((n) => {
2533
2533
  n.createCommand("routing", (t) => (e) => {
2534
2534
  const r = {
2535
2535
  mode: e.mode
@@ -2537,13 +2537,13 @@ Je((n) => {
2537
2537
  e.basePath && (r.basePath = e.basePath), t.container.register("routingSettings", r);
2538
2538
  });
2539
2539
  });
2540
- const Ln = "routeData";
2541
- class Ki {
2540
+ const In = "routeData";
2541
+ class Qi {
2542
2542
  constructor(t, e) {
2543
2543
  this.container = t, this.steps = [], this.historyListenSubscription = () => {
2544
2544
  }, this.sticky = !1, this.storageWriter = null, this.widget = t.get("$widget");
2545
- const r = e, { routes: s } = r, i = ui(r, ["routes"]);
2546
- this.settings = Ot(Ot({}, i), t.get("routingSettings")), this.sticky = Ui(this.settings), this.storageMedium = this.sticky ? S.Local : S.Session, et(t, Ln, P.Necessary, {
2545
+ const r = e, { routes: s } = r, i = fi(r, ["routes"]);
2546
+ this.settings = At(At({}, i), t.get("routingSettings")), this.sticky = Wi(this.settings), this.storageMedium = this.sticky ? P.Local : P.Session, rt(t, In, C.Necessary, {
2547
2547
  medium: this.storageMedium
2548
2548
  }).then((o) => this.storageWriter = o), this.routes = s;
2549
2549
  }
@@ -2559,7 +2559,7 @@ class Ki {
2559
2559
  const e = this.getRouteData(), r = {
2560
2560
  routeData: e,
2561
2561
  location: this.location
2562
- }, s = this.steps[0], i = e.name === (s == null ? void 0 : s.routeData.name), o = dn(
2562
+ }, s = this.steps[0], i = e.name === (s == null ? void 0 : s.routeData.name), o = vn(
2563
2563
  e.params,
2564
2564
  (s == null ? void 0 : s.routeData.params) || {}
2565
2565
  );
@@ -2578,13 +2578,13 @@ class Ki {
2578
2578
  * @param params Optional: route params
2579
2579
  */
2580
2580
  generate(t, e = {}) {
2581
- const r = ke(t, this.routes);
2581
+ const r = je(t, this.routes);
2582
2582
  if (!r || !this.history)
2583
2583
  throw `No route found for ${t}`;
2584
- const s = ee(e, r.path);
2584
+ const s = oe(e, r.path);
2585
2585
  if (!s)
2586
2586
  throw `Unable to generate path for "${t}".`;
2587
- const i = Dt(s, this.settings.decodeSearch);
2587
+ const i = Ht(s, this.settings.decodeSearch);
2588
2588
  let o = this.history.createHref(i);
2589
2589
  const { mode: a, basePath: c } = this.settings;
2590
2590
  return a === "browser" && c && (o = o.replace(c, "")), o.charAt(0) !== "/" && (o = `/${o}`), o;
@@ -2595,13 +2595,13 @@ class Ki {
2595
2595
  * @param params Optional: route params
2596
2596
  */
2597
2597
  navigate(t, e = {}) {
2598
- const r = ke(t, this.routes);
2598
+ const r = je(t, this.routes);
2599
2599
  if (!r || !this.history)
2600
2600
  return;
2601
- const s = ee(e, r.path);
2601
+ const s = oe(e, r.path);
2602
2602
  if (!s)
2603
2603
  return;
2604
- const i = this.getRouteData(), o = i && i.name === t && Hi(i.params, e);
2604
+ const i = this.getRouteData(), o = i && i.name === t && zi(i.params, e);
2605
2605
  if (this.steps[0] && o)
2606
2606
  return;
2607
2607
  const { decodeSearch: a } = this.settings, c = a ? a(s) : s;
@@ -2616,7 +2616,7 @@ class Ki {
2616
2616
  hasBack() {
2617
2617
  if (this.steps.length > 1)
2618
2618
  return !0;
2619
- const t = this.getRouteData(this.settings.initialPath), e = this.getRouteData(), r = e.name === t.name, s = dn(e.params, t.params);
2619
+ const t = this.getRouteData(this.settings.initialPath), e = this.getRouteData(), r = e.name === t.name, s = vn(e.params, t.params);
2620
2620
  return !r || !s;
2621
2621
  }
2622
2622
  /**
@@ -2628,7 +2628,7 @@ class Ki {
2628
2628
  e && e.name && (this.navigate(e.name, e.params), this.steps = []);
2629
2629
  } else {
2630
2630
  const e = t >= this.steps.length ? this.steps.length - 1 : t, { routeData: r } = this.steps[e];
2631
- this.steps = [...this.steps.slice(e + 1)], this.navigate(r.name, es(r.params));
2631
+ this.steps = [...this.steps.slice(e + 1)], this.navigate(r.name, os(r.params));
2632
2632
  }
2633
2633
  }
2634
2634
  /**
@@ -2652,11 +2652,11 @@ class Ki {
2652
2652
  return this.routes.find((r) => r.name === t) || (this.routes.length > 0 ? this.routes[0] : (process.env.NODE_ENV !== "production" && I.warn("Unable to get initial route as no routes are defined."), null));
2653
2653
  }
2654
2654
  getRouteData(t) {
2655
- const e = Ne(this.container);
2655
+ const e = Re(this.container);
2656
2656
  if (t) {
2657
- const r = Et(t, this.routes);
2657
+ const r = _t(t, this.routes);
2658
2658
  return r ? {
2659
- params: yt(Lt(t, r.path)),
2659
+ params: $t(It(t, r.path)),
2660
2660
  name: r.name
2661
2661
  } : e || {
2662
2662
  name: "",
@@ -2665,15 +2665,15 @@ class Ki {
2665
2665
  }
2666
2666
  if (this.location) {
2667
2667
  const { pathname: r, search: s } = this.location;
2668
- if (this.currentRoute = this.currentRoute || Et(r, this.routes), this.currentRoute) {
2668
+ if (this.currentRoute = this.currentRoute || _t(r, this.routes), this.currentRoute) {
2669
2669
  const { path: i, name: o } = this.currentRoute;
2670
2670
  this.match || (this.match = {
2671
- params: Lt(r, i),
2671
+ params: It(r, i),
2672
2672
  isExact: !0,
2673
2673
  path: i,
2674
2674
  url: r
2675
2675
  });
2676
- const a = yt(Ot(Ot({}, this.match.params), s.length > 0 && Pr(s)));
2676
+ const a = $t(At(At({}, this.match.params), s.length > 0 && Lr(s)));
2677
2677
  return {
2678
2678
  name: o,
2679
2679
  params: a
@@ -2692,31 +2692,31 @@ class Ki {
2692
2692
  * Setup and load the initial route based on router configuration
2693
2693
  */
2694
2694
  setupInitialRoute() {
2695
- return Y(this.container, Ln, this.storageMedium).then(
2695
+ return Z(this.container, In, this.storageMedium).then(
2696
2696
  (t) => {
2697
2697
  if (!this.location || !this.history)
2698
2698
  return;
2699
2699
  const { initialPath: e, mode: r } = this.settings;
2700
2700
  switch ((() => {
2701
- const s = Xe(this.container);
2702
- return r === G.browser || s ? dt.path : r === G.memory && t ? dt.storage : dt.initialPath;
2701
+ const s = on(this.container);
2702
+ return r === Y.browser || s ? ft.path : r === Y.memory && t ? ft.storage : ft.initialPath;
2703
2703
  })()) {
2704
- case dt.initialPath: {
2704
+ case ft.initialPath: {
2705
2705
  const s = this.getRouteData(e);
2706
2706
  return s && s.name ? this.navigate(s.name, s.params) : void 0;
2707
2707
  }
2708
- case dt.path: {
2708
+ case ft.path: {
2709
2709
  const { pathname: s } = this.location;
2710
- if (this.currentRoute = Et(s, this.routes), this.currentRoute) {
2710
+ if (this.currentRoute = _t(s, this.routes), this.currentRoute) {
2711
2711
  const { path: o } = this.currentRoute;
2712
2712
  return this.setMatch({
2713
- params: Lt(s, o),
2713
+ params: It(s, o),
2714
2714
  isExact: !0,
2715
2715
  path: o,
2716
2716
  url: s
2717
2717
  });
2718
2718
  }
2719
- const i = Ne(this.container);
2719
+ const i = Re(this.container);
2720
2720
  return i ? this.setMatch({
2721
2721
  params: {},
2722
2722
  isExact: !0,
@@ -2724,14 +2724,14 @@ class Ki {
2724
2724
  url: s
2725
2725
  }) : void 0;
2726
2726
  }
2727
- case dt.storage: {
2727
+ case ft.storage: {
2728
2728
  const { pathname: s } = this.location;
2729
- this.currentRoute = Et(s, this.routes);
2730
- const { name: i = "", params: o = {} } = t || {}, a = ke(i, this.routes);
2729
+ this.currentRoute = _t(s, this.routes);
2730
+ const { name: i = "", params: o = {} } = t || {}, a = je(i, this.routes);
2731
2731
  if (a) {
2732
- const c = ee(o, a.path);
2732
+ const c = oe(o, a.path);
2733
2733
  if (c)
2734
- return this.history.push(c), this.location = fr(Ot({}, this.location), { pathname: c }), this.currentRoute = Et(c, this.routes), this.setMatch({
2734
+ return this.history.push(c), this.location = br(At({}, this.location), { pathname: c }), this.currentRoute = _t(c, this.routes), this.setMatch({
2735
2735
  params: o,
2736
2736
  isExact: !0,
2737
2737
  path: a.path,
@@ -2748,18 +2748,18 @@ class Ki {
2748
2748
  return this.setupInitialRoute();
2749
2749
  }
2750
2750
  stop() {
2751
- return this.history && (this.settings.mode === G.scopedHash && this.history.stop(), this.steps = [], this.storageWriter) ? this.storageWriter() : Promise.resolve();
2751
+ return this.history && (this.settings.mode === Y.scopedHash && this.history.stop(), this.steps = [], this.storageWriter) ? this.storageWriter() : Promise.resolve();
2752
2752
  }
2753
2753
  handleLocationChange(t, e) {
2754
2754
  const { pathname: r } = t, { mode: s } = this.settings;
2755
- if (r.indexOf("?") > -1 || r.indexOf(";") > -1 || s === G.scopedHash && e !== this.widget.name)
2755
+ if (r.indexOf("?") > -1 || r.indexOf(";") > -1 || s === Y.scopedHash && e !== this.widget.name)
2756
2756
  return;
2757
- this.location = t, this.currentRoute = Et(r, this.routes);
2758
- const i = Ne(this.container);
2757
+ this.location = t, this.currentRoute = _t(r, this.routes);
2758
+ const i = Re(this.container);
2759
2759
  if (this.currentRoute) {
2760
2760
  const { path: o } = this.currentRoute;
2761
2761
  this.setMatch({
2762
- params: Lt(r, o),
2762
+ params: It(r, o),
2763
2763
  isExact: !0,
2764
2764
  path: o,
2765
2765
  url: r
@@ -2775,9 +2775,9 @@ class Ki {
2775
2775
  createHistory() {
2776
2776
  return new Promise((t) => {
2777
2777
  const { mode: e, basePath: r } = this.settings;
2778
- if (e === G.scopedHash) {
2779
- const s = this.widget.name, i = Ii(this.container);
2780
- return Promise.resolve().then(() => zi).then((o) => {
2778
+ if (e === Y.scopedHash) {
2779
+ const s = this.widget.name, i = Bi(this.container);
2780
+ return Promise.resolve().then(() => Ji).then((o) => {
2781
2781
  const a = o.default({
2782
2782
  widgetName: s,
2783
2783
  transitionManager: i,
@@ -2786,23 +2786,23 @@ class Ki {
2786
2786
  return t(a);
2787
2787
  });
2788
2788
  }
2789
- if (e === G.memory)
2790
- return t(Fs());
2791
- if (e === G.browser)
2792
- return t(zs({ basename: r }));
2789
+ if (e === Y.memory)
2790
+ return t(Gs());
2791
+ if (e === Y.browser)
2792
+ return t(Js({ basename: r }));
2793
2793
  throw "RoutingService: History could not be created.";
2794
2794
  });
2795
2795
  }
2796
2796
  }
2797
- const Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2797
+ const Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2798
2798
  __proto__: null,
2799
- HistoryMode: G,
2800
- RoutingService: Ki,
2801
- createHashHistory: Cr,
2802
- getScopedHashDOMLocation: kr,
2803
- matchParams: Lt,
2804
- onWidgetUrl: Xe
2805
- }, Symbol.toStringTag, { value: "Module" })), Me = (n, t, e, ...r) => {
2799
+ HistoryMode: Y,
2800
+ RoutingService: Qi,
2801
+ createHashHistory: Mr,
2802
+ getScopedHashDOMLocation: Dr,
2803
+ matchParams: It,
2804
+ onWidgetUrl: on
2805
+ }, Symbol.toStringTag, { value: "Module" })), Te = (n, t, e, ...r) => {
2806
2806
  const s = `[${n.get("$environment").name || "webprovisions"}] ${e}`;
2807
2807
  switch (t) {
2808
2808
  case "info":
@@ -2815,16 +2815,16 @@ const Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2815
2815
  console.error(s, ...r);
2816
2816
  break;
2817
2817
  }
2818
- }, Yi = (n) => {
2818
+ }, to = (n) => {
2819
2819
  const t = n.container || n;
2820
2820
  return {
2821
- info: (e, ...r) => Me(t, "info", e, ...r),
2822
- warn: (e, ...r) => Me(t, "warning", e, ...r),
2823
- error: (e, ...r) => Me(t, "error", e, ...r)
2821
+ info: (e, ...r) => Te(t, "info", e, ...r),
2822
+ warn: (e, ...r) => Te(t, "warning", e, ...r),
2823
+ error: (e, ...r) => Te(t, "error", e, ...r)
2824
2824
  };
2825
2825
  };
2826
- var Rt = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(Rt || {}), ht = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(ht || {});
2827
- const Zi = (n, t, e, r) => {
2826
+ var Bt = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(Bt || {}), ut = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(ut || {});
2827
+ const eo = (n, t, e, r) => {
2828
2828
  try {
2829
2829
  const s = new t(e, r);
2830
2830
  return {
@@ -2848,23 +2848,23 @@ const Zi = (n, t, e, r) => {
2848
2848
  throw s;
2849
2849
  }
2850
2850
  };
2851
- function Dn(n, t) {
2851
+ function Hn(n, t) {
2852
2852
  return typeof n == "undefined" ? t : n;
2853
2853
  }
2854
- class Qi {
2854
+ class no {
2855
2855
  constructor(t = {}) {
2856
2856
  this.part = t;
2857
2857
  }
2858
2858
  createCommand(t, e, r) {
2859
2859
  let s;
2860
2860
  typeof e == "function" ? s = {
2861
- scope: Rt.Widget,
2862
- stage: ht.Post,
2861
+ scope: Bt.Widget,
2862
+ stage: ut.Post,
2863
2863
  defaultArgs: void 0,
2864
2864
  handlerResolver: e
2865
2865
  } : s = {
2866
- scope: Dn(e.scope, Rt.Widget),
2867
- stage: Dn(e.stage, ht.Post),
2866
+ scope: Hn(e.scope, Bt.Widget),
2867
+ stage: Hn(e.stage, ut.Post),
2868
2868
  defaultArgs: e.defaultArgs,
2869
2869
  handlerResolver: r
2870
2870
  };
@@ -2878,26 +2878,26 @@ class Qi {
2878
2878
  return this.part;
2879
2879
  }
2880
2880
  }
2881
- const Nr = (n) => {
2882
- const t = new Qi({});
2881
+ const jr = (n) => {
2882
+ const t = new no({});
2883
2883
  return n(t), t.get();
2884
2884
  };
2885
- Nr((n) => {
2885
+ jr((n) => {
2886
2886
  n.createCommand(
2887
2887
  "types.register",
2888
- { scope: Rt.Implementation, stage: ht.Pre },
2888
+ { scope: Bt.Implementation, stage: ut.Pre },
2889
2889
  (t) => (e, r) => {
2890
2890
  t.container.get("$types")[e] = r;
2891
2891
  }
2892
2892
  ).createCommand(
2893
2893
  "type",
2894
- { stage: ht.Pre },
2894
+ { stage: ut.Pre },
2895
2895
  (t) => (e) => {
2896
2896
  t.container.register("$type", e);
2897
2897
  }
2898
2898
  ).createCommand(
2899
2899
  "settings",
2900
- { stage: ht.Pre, defaultArgs: [null] },
2900
+ { stage: ut.Pre, defaultArgs: [null] },
2901
2901
  (t) => (e) => {
2902
2902
  t.events.dispatch(
2903
2903
  "settings:change",
@@ -2907,7 +2907,7 @@ Nr((n) => {
2907
2907
  }
2908
2908
  ).createCommand(
2909
2909
  "plugin",
2910
- { stage: ht.Pre },
2910
+ { stage: ut.Pre },
2911
2911
  (t) => (e, r, s) => {
2912
2912
  const { container: i } = t;
2913
2913
  let o = null, a = e, c = r;
@@ -2920,7 +2920,7 @@ Nr((n) => {
2920
2920
  a
2921
2921
  ) : r;
2922
2922
  try {
2923
- const p = Zi(
2923
+ const p = eo(
2924
2924
  o,
2925
2925
  a,
2926
2926
  i,
@@ -2928,7 +2928,7 @@ Nr((n) => {
2928
2928
  );
2929
2929
  i.get("$plugins").push(p), l && p.invoke("initialize", null);
2930
2930
  } catch (p) {
2931
- Yi(t).warn("Error when initializing plugin", p);
2931
+ to(t).warn("Error when initializing plugin", p);
2932
2932
  }
2933
2933
  };
2934
2934
  t.container.get("$instance") ? h(!0) : t.events.subscribeOnce("widget:instance-created", () => h(!1));
@@ -2961,45 +2961,45 @@ Nr((n) => {
2961
2961
  }
2962
2962
  );
2963
2963
  });
2964
- function Xi(n) {
2964
+ function ro(n) {
2965
2965
  const t = {};
2966
2966
  return [].filter.call(n.attributes, (e) => /^data-/.test(e.name)).map((e) => e.name).forEach((e) => t[e.substr(5)] = n.getAttribute(e)), t;
2967
2967
  }
2968
- const Tn = (n, t, e) => {
2969
- const r = Xi(n);
2968
+ const Un = (n, t, e) => {
2969
+ const r = ro(n);
2970
2970
  e({
2971
2971
  sourceDOMElement: n,
2972
2972
  eventType: t,
2973
2973
  data: r
2974
2974
  });
2975
2975
  };
2976
- function jn(n, t, e) {
2976
+ function Vn(n, t, e) {
2977
2977
  n.forEach((r) => {
2978
- r.dataset.attached !== "true" && (t === "load" ? Tn(r, t, e) : r.addEventListener(t, (s) => {
2979
- s.preventDefault(), Tn(r, t, e);
2978
+ r.dataset.attached !== "true" && (t === "load" ? Un(r, t, e) : r.addEventListener(t, (s) => {
2979
+ s.preventDefault(), Un(r, t, e);
2980
2980
  }), r.dataset.monitored = "true");
2981
2981
  });
2982
2982
  }
2983
- function to(n, t, e) {
2983
+ function so(n, t, e) {
2984
2984
  const r = n.container.get("bootstrapping.monitor");
2985
2985
  r && r.events.subscribe("bootstrap:trigger-elements-updated", (i, o) => {
2986
- jn(
2986
+ Vn(
2987
2987
  o.triggerElements,
2988
2988
  t,
2989
2989
  e
2990
2990
  );
2991
2991
  });
2992
2992
  const s = n.container.get("triggerElements");
2993
- s && jn(
2993
+ s && Vn(
2994
2994
  s,
2995
2995
  t,
2996
2996
  e
2997
2997
  );
2998
2998
  }
2999
- Nr((n) => {
2999
+ jr((n) => {
3000
3000
  n.createCommand(
3001
3001
  "ready",
3002
- { scope: Rt.Implementation, stage: ht.Pre },
3002
+ { scope: Bt.Implementation, stage: ut.Pre },
3003
3003
  (t) => (e) => {
3004
3004
  const { container: r } = t, s = r.owner;
3005
3005
  r.get("bootstrapping").ready ? e(s) : s.events.subscribeOnce("bootstrap:ready", () => {
@@ -3008,7 +3008,7 @@ Nr((n) => {
3008
3008
  }
3009
3009
  );
3010
3010
  });
3011
- const eo = (n) => {
3011
+ const io = (n) => {
3012
3012
  const t = (s, i) => {
3013
3013
  s && (i ? s.classList.add("ace-tabbing") : s.classList.remove("ace-tabbing"));
3014
3014
  }, e = (s) => {
@@ -3020,7 +3020,7 @@ const eo = (n) => {
3020
3020
  document.removeEventListener("keydown", e), document.removeEventListener("click", r);
3021
3021
  };
3022
3022
  };
3023
- function no(n, t) {
3023
+ function oo(n, t) {
3024
3024
  const {
3025
3025
  // symbol,
3026
3026
  widgetName: e,
@@ -3028,19 +3028,19 @@ function no(n, t) {
3028
3028
  ariaLabel: s = "",
3029
3029
  tooltip: i = ""
3030
3030
  } = t;
3031
- return n.classList.add("ace-widget-trigger"), n.classList.add(`ace-widget_${e}`), r.length && n.classList.add("trigger-has-text"), s.length && !n.getAttribute("aria-label") && n.setAttribute("aria-label", s), s.length && !n.getAttribute("tabindex") && n.setAttribute("tabindex", "0"), i.length && !n.getAttribute("title") && n.setAttribute("title", i), eo(n);
3031
+ return n.classList.add("ace-widget-trigger"), n.classList.add(`ace-widget_${e}`), r.length && n.classList.add("trigger-has-text"), s.length && !n.getAttribute("aria-label") && n.setAttribute("aria-label", s), s.length && !n.getAttribute("tabindex") && n.setAttribute("tabindex", "0"), i.length && !n.getAttribute("title") && n.setAttribute("title", i), io(n);
3032
3032
  }
3033
- function ro(n, t) {
3033
+ function ao(n, t) {
3034
3034
  n instanceof HTMLElement ? (t && n.setAttribute("title", t), n.classList.remove("ace-trigger-active"), n.classList.remove("ace-trigger-loading")) : n instanceof Array && n.forEach((e) => {
3035
3035
  t && e.setAttribute("title", t), e.classList.remove("ace-trigger-active"), e.classList.remove("ace-trigger-loading");
3036
3036
  });
3037
3037
  }
3038
- function so(n) {
3038
+ function co(n) {
3039
3039
  n instanceof HTMLElement ? (n.classList.remove("ace-trigger-active"), n.classList.add("ace-trigger-loading")) : n instanceof Array && n.forEach((t) => {
3040
3040
  t.classList.remove("ace-trigger-active"), t.classList.add("ace-trigger-loading");
3041
3041
  });
3042
3042
  }
3043
- function Mr(n, t) {
3043
+ function Rr(n, t) {
3044
3044
  n instanceof HTMLElement ? (t && n.setAttribute("title", t), n.classList.add("ace-trigger-active"), n.classList.remove("ace-trigger-loading")) : n instanceof Array && n.forEach((e) => {
3045
3045
  t && e.setAttribute("title", t), e.classList.add("ace-trigger-active"), e.classList.remove("ace-trigger-loading");
3046
3046
  });
@@ -3050,19 +3050,19 @@ function Mr(n, t) {
3050
3050
  * Copyright 2019 Google LLC
3051
3051
  * SPDX-License-Identifier: BSD-3-Clause
3052
3052
  */
3053
- const re = window, tn = re.ShadowRoot && (re.ShadyCSS === void 0 || re.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, en = Symbol(), Rn = /* @__PURE__ */ new WeakMap();
3054
- let Lr = class {
3053
+ const ce = window, an = ce.ShadowRoot && (ce.ShadyCSS === void 0 || ce.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, cn = Symbol(), Bn = /* @__PURE__ */ new WeakMap();
3054
+ let Tr = class {
3055
3055
  constructor(t, e, r) {
3056
- if (this._$cssResult$ = !0, r !== en)
3056
+ if (this._$cssResult$ = !0, r !== cn)
3057
3057
  throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
3058
3058
  this.cssText = t, this.t = e;
3059
3059
  }
3060
3060
  get styleSheet() {
3061
3061
  let t = this.o;
3062
3062
  const e = this.t;
3063
- if (tn && t === void 0) {
3063
+ if (an && t === void 0) {
3064
3064
  const r = e !== void 0 && e.length === 1;
3065
- r && (t = Rn.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Rn.set(e, t));
3065
+ r && (t = Bn.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Bn.set(e, t));
3066
3066
  }
3067
3067
  return t;
3068
3068
  }
@@ -3070,7 +3070,7 @@ let Lr = class {
3070
3070
  return this.cssText;
3071
3071
  }
3072
3072
  };
3073
- const io = (n) => new Lr(typeof n == "string" ? n : n + "", void 0, en), oo = (n, ...t) => {
3073
+ const ho = (n) => new Tr(typeof n == "string" ? n : n + "", void 0, cn), Ir = (n, ...t) => {
3074
3074
  const e = n.length === 1 ? n[0] : t.reduce((r, s, i) => r + ((o) => {
3075
3075
  if (o._$cssResult$ === !0)
3076
3076
  return o.cssText;
@@ -3078,28 +3078,28 @@ const io = (n) => new Lr(typeof n == "string" ? n : n + "", void 0, en), oo = (n
3078
3078
  return o;
3079
3079
  throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
3080
3080
  })(s) + n[i + 1], n[0]);
3081
- return new Lr(e, n, en);
3082
- }, ao = (n, t) => {
3083
- tn ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
3084
- const r = document.createElement("style"), s = re.litNonce;
3081
+ return new Tr(e, n, cn);
3082
+ }, lo = (n, t) => {
3083
+ an ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
3084
+ const r = document.createElement("style"), s = ce.litNonce;
3085
3085
  s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, n.appendChild(r);
3086
3086
  });
3087
- }, In = tn ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
3087
+ }, zn = an ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
3088
3088
  let e = "";
3089
3089
  for (const r of t.cssRules)
3090
3090
  e += r.cssText;
3091
- return io(e);
3091
+ return ho(e);
3092
3092
  })(n) : n;
3093
3093
  /**
3094
3094
  * @license
3095
3095
  * Copyright 2017 Google LLC
3096
3096
  * SPDX-License-Identifier: BSD-3-Clause
3097
3097
  */
3098
- var Le;
3099
- const ue = window, Hn = ue.trustedTypes, co = Hn ? Hn.emptyScript : "", Un = ue.reactiveElementPolyfillSupport, We = { toAttribute(n, t) {
3098
+ var Ie;
3099
+ const me = window, Wn = me.trustedTypes, uo = Wn ? Wn.emptyScript : "", Fn = me.reactiveElementPolyfillSupport, Ye = { toAttribute(n, t) {
3100
3100
  switch (t) {
3101
3101
  case Boolean:
3102
- n = n ? co : null;
3102
+ n = n ? uo : null;
3103
3103
  break;
3104
3104
  case Object:
3105
3105
  case Array:
@@ -3124,8 +3124,8 @@ const ue = window, Hn = ue.trustedTypes, co = Hn ? Hn.emptyScript : "", Un = ue.
3124
3124
  }
3125
3125
  }
3126
3126
  return e;
3127
- } }, Dr = (n, t) => t !== n && (t == t || n == n), De = { attribute: !0, type: String, converter: We, reflect: !1, hasChanged: Dr }, Fe = "finalized";
3128
- let At = class extends HTMLElement {
3127
+ } }, Hr = (n, t) => t !== n && (t == t || n == n), He = { attribute: !0, type: String, converter: Ye, reflect: !1, hasChanged: Hr }, Ze = "finalized";
3128
+ let Pt = class extends HTMLElement {
3129
3129
  constructor() {
3130
3130
  super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
3131
3131
  }
@@ -3141,7 +3141,7 @@ let At = class extends HTMLElement {
3141
3141
  s !== void 0 && (this._$Ev.set(s, r), t.push(s));
3142
3142
  }), t;
3143
3143
  }
3144
- static createProperty(t, e = De) {
3144
+ static createProperty(t, e = He) {
3145
3145
  if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
3146
3146
  const r = typeof t == "symbol" ? Symbol() : "__" + t, s = this.getPropertyDescriptor(t, r, e);
3147
3147
  s !== void 0 && Object.defineProperty(this.prototype, t, s);
@@ -3156,12 +3156,12 @@ let At = class extends HTMLElement {
3156
3156
  }, configurable: !0, enumerable: !0 };
3157
3157
  }
3158
3158
  static getPropertyOptions(t) {
3159
- return this.elementProperties.get(t) || De;
3159
+ return this.elementProperties.get(t) || He;
3160
3160
  }
3161
3161
  static finalize() {
3162
- if (this.hasOwnProperty(Fe))
3162
+ if (this.hasOwnProperty(Ze))
3163
3163
  return !1;
3164
- this[Fe] = !0;
3164
+ this[Ze] = !0;
3165
3165
  const t = Object.getPrototypeOf(this);
3166
3166
  if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
3167
3167
  const e = this.properties, r = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
@@ -3175,9 +3175,9 @@ let At = class extends HTMLElement {
3175
3175
  if (Array.isArray(t)) {
3176
3176
  const r = new Set(t.flat(1 / 0).reverse());
3177
3177
  for (const s of r)
3178
- e.unshift(In(s));
3178
+ e.unshift(zn(s));
3179
3179
  } else
3180
- t !== void 0 && e.push(In(t));
3180
+ t !== void 0 && e.push(zn(t));
3181
3181
  return e;
3182
3182
  }
3183
3183
  static _$Ep(t, e) {
@@ -3204,7 +3204,7 @@ let At = class extends HTMLElement {
3204
3204
  createRenderRoot() {
3205
3205
  var t;
3206
3206
  const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
3207
- return ao(e, this.constructor.elementStyles), e;
3207
+ return lo(e, this.constructor.elementStyles), e;
3208
3208
  }
3209
3209
  connectedCallback() {
3210
3210
  var t;
@@ -3225,11 +3225,11 @@ let At = class extends HTMLElement {
3225
3225
  attributeChangedCallback(t, e, r) {
3226
3226
  this._$AK(t, r);
3227
3227
  }
3228
- _$EO(t, e, r = De) {
3228
+ _$EO(t, e, r = He) {
3229
3229
  var s;
3230
3230
  const i = this.constructor._$Ep(t, r);
3231
3231
  if (i !== void 0 && r.reflect === !0) {
3232
- const o = (((s = r.converter) === null || s === void 0 ? void 0 : s.toAttribute) !== void 0 ? r.converter : We).toAttribute(e, r.type);
3232
+ const o = (((s = r.converter) === null || s === void 0 ? void 0 : s.toAttribute) !== void 0 ? r.converter : Ye).toAttribute(e, r.type);
3233
3233
  this._$El = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$El = null;
3234
3234
  }
3235
3235
  }
@@ -3237,16 +3237,16 @@ let At = class extends HTMLElement {
3237
3237
  var r;
3238
3238
  const s = this.constructor, i = s._$Ev.get(t);
3239
3239
  if (i !== void 0 && this._$El !== i) {
3240
- const o = s.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) === null || r === void 0 ? void 0 : r.fromAttribute) !== void 0 ? o.converter : We;
3240
+ const o = s.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) === null || r === void 0 ? void 0 : r.fromAttribute) !== void 0 ? o.converter : Ye;
3241
3241
  this._$El = i, this[i] = a.fromAttribute(e, o.type), this._$El = null;
3242
3242
  }
3243
3243
  }
3244
3244
  requestUpdate(t, e, r) {
3245
3245
  let s = !0;
3246
- t !== void 0 && (((r = r || this.constructor.getPropertyOptions(t)).hasChanged || Dr)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), r.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, r))) : s = !1), !this.isUpdatePending && s && (this._$E_ = this._$Ej());
3246
+ t !== void 0 && (((r = r || this.constructor.getPropertyOptions(t)).hasChanged || Hr)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), r.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, r))) : s = !1), !this.isUpdatePending && s && (this._$E_ = this._$Ej());
3247
3247
  }
3248
3248
  _$Ej() {
3249
- return z(this, null, function* () {
3249
+ return B(this, null, function* () {
3250
3250
  this.isUpdatePending = !0;
3251
3251
  try {
3252
3252
  yield this._$E_;
@@ -3306,94 +3306,94 @@ let At = class extends HTMLElement {
3306
3306
  firstUpdated(t) {
3307
3307
  }
3308
3308
  };
3309
- At[Fe] = !0, At.elementProperties = /* @__PURE__ */ new Map(), At.elementStyles = [], At.shadowRootOptions = { mode: "open" }, Un == null || Un({ ReactiveElement: At }), ((Le = ue.reactiveElementVersions) !== null && Le !== void 0 ? Le : ue.reactiveElementVersions = []).push("1.6.3");
3309
+ Pt[Ze] = !0, Pt.elementProperties = /* @__PURE__ */ new Map(), Pt.elementStyles = [], Pt.shadowRootOptions = { mode: "open" }, Fn == null || Fn({ ReactiveElement: Pt }), ((Ie = me.reactiveElementVersions) !== null && Ie !== void 0 ? Ie : me.reactiveElementVersions = []).push("1.6.3");
3310
3310
  /**
3311
3311
  * @license
3312
3312
  * Copyright 2017 Google LLC
3313
3313
  * SPDX-License-Identifier: BSD-3-Clause
3314
3314
  */
3315
- var Te;
3316
- const de = window, _t = de.trustedTypes, Bn = _t ? _t.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, qe = "$lit$", ct = `lit$${(Math.random() + "").slice(9)}$`, Tr = "?" + ct, ho = `<${Tr}>`, bt = document, It = () => bt.createComment(""), Ht = (n) => n === null || typeof n != "object" && typeof n != "function", jr = Array.isArray, lo = (n) => jr(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", je = `[
3317
- \f\r]`, kt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Vn = /-->/g, zn = />/g, ut = RegExp(`>|${je}(?:([^\\s"'>=/]+)(${je}*=${je}*(?:[^
3318
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Wn = /'/g, Fn = /"/g, Rr = /^(?:script|style|textarea|title)$/i, uo = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Kt = uo(1), wt = Symbol.for("lit-noChange"), T = Symbol.for("lit-nothing"), qn = /* @__PURE__ */ new WeakMap(), mt = bt.createTreeWalker(bt, 129, null, !1);
3319
- function Ir(n, t) {
3315
+ var Ue;
3316
+ const ve = window, St = ve.trustedTypes, qn = St ? St.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Qe = "$lit$", ht = `lit$${(Math.random() + "").slice(9)}$`, Ur = "?" + ht, po = `<${Ur}>`, Ot = document, zt = () => Ot.createComment(""), Wt = (n) => n === null || typeof n != "object" && typeof n != "function", Vr = Array.isArray, go = (n) => Vr(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Ve = `[
3317
+ \f\r]`, Dt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Jn = /-->/g, Kn = />/g, pt = RegExp(`>|${Ve}(?:([^\\s"'>=/]+)(${Ve}*=${Ve}*(?:[^
3318
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Gn = /'/g, Yn = /"/g, Br = /^(?:script|style|textarea|title)$/i, fo = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Xt = fo(1), Et = Symbol.for("lit-noChange"), j = Symbol.for("lit-nothing"), Zn = /* @__PURE__ */ new WeakMap(), bt = Ot.createTreeWalker(Ot, 129, null, !1);
3319
+ function zr(n, t) {
3320
3320
  if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
3321
3321
  throw Error("invalid template strings array");
3322
- return Bn !== void 0 ? Bn.createHTML(t) : t;
3322
+ return qn !== void 0 ? qn.createHTML(t) : t;
3323
3323
  }
3324
- const po = (n, t) => {
3324
+ const mo = (n, t) => {
3325
3325
  const e = n.length - 1, r = [];
3326
- let s, i = t === 2 ? "<svg>" : "", o = kt;
3326
+ let s, i = t === 2 ? "<svg>" : "", o = Dt;
3327
3327
  for (let a = 0; a < e; a++) {
3328
3328
  const c = n[a];
3329
3329
  let h, l, u = -1, d = 0;
3330
3330
  for (; d < c.length && (o.lastIndex = d, l = o.exec(c), l !== null); )
3331
- d = o.lastIndex, o === kt ? l[1] === "!--" ? o = Vn : l[1] !== void 0 ? o = zn : l[2] !== void 0 ? (Rr.test(l[2]) && (s = RegExp("</" + l[2], "g")), o = ut) : l[3] !== void 0 && (o = ut) : o === ut ? l[0] === ">" ? (o = s != null ? s : kt, u = -1) : l[1] === void 0 ? u = -2 : (u = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? ut : l[3] === '"' ? Fn : Wn) : o === Fn || o === Wn ? o = ut : o === Vn || o === zn ? o = kt : (o = ut, s = void 0);
3332
- const p = o === ut && n[a + 1].startsWith("/>") ? " " : "";
3333
- i += o === kt ? c + ho : u >= 0 ? (r.push(h), c.slice(0, u) + qe + c.slice(u) + ct + p) : c + ct + (u === -2 ? (r.push(void 0), a) : p);
3331
+ d = o.lastIndex, o === Dt ? l[1] === "!--" ? o = Jn : l[1] !== void 0 ? o = Kn : l[2] !== void 0 ? (Br.test(l[2]) && (s = RegExp("</" + l[2], "g")), o = pt) : l[3] !== void 0 && (o = pt) : o === pt ? l[0] === ">" ? (o = s != null ? s : Dt, u = -1) : l[1] === void 0 ? u = -2 : (u = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? pt : l[3] === '"' ? Yn : Gn) : o === Yn || o === Gn ? o = pt : o === Jn || o === Kn ? o = Dt : (o = pt, s = void 0);
3332
+ const p = o === pt && n[a + 1].startsWith("/>") ? " " : "";
3333
+ i += o === Dt ? c + po : u >= 0 ? (r.push(h), c.slice(0, u) + Qe + c.slice(u) + ht + p) : c + ht + (u === -2 ? (r.push(void 0), a) : p);
3334
3334
  }
3335
- return [Ir(n, i + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), r];
3335
+ return [zr(n, i + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), r];
3336
3336
  };
3337
- class Ut {
3337
+ class Ft {
3338
3338
  constructor({ strings: t, _$litType$: e }, r) {
3339
3339
  let s;
3340
3340
  this.parts = [];
3341
3341
  let i = 0, o = 0;
3342
- const a = t.length - 1, c = this.parts, [h, l] = po(t, e);
3343
- if (this.el = Ut.createElement(h, r), mt.currentNode = this.el.content, e === 2) {
3342
+ const a = t.length - 1, c = this.parts, [h, l] = mo(t, e);
3343
+ if (this.el = Ft.createElement(h, r), bt.currentNode = this.el.content, e === 2) {
3344
3344
  const u = this.el.content, d = u.firstChild;
3345
3345
  d.remove(), u.append(...d.childNodes);
3346
3346
  }
3347
- for (; (s = mt.nextNode()) !== null && c.length < a; ) {
3347
+ for (; (s = bt.nextNode()) !== null && c.length < a; ) {
3348
3348
  if (s.nodeType === 1) {
3349
3349
  if (s.hasAttributes()) {
3350
3350
  const u = [];
3351
3351
  for (const d of s.getAttributeNames())
3352
- if (d.endsWith(qe) || d.startsWith(ct)) {
3352
+ if (d.endsWith(Qe) || d.startsWith(ht)) {
3353
3353
  const p = l[o++];
3354
3354
  if (u.push(d), p !== void 0) {
3355
- const b = s.getAttribute(p.toLowerCase() + qe).split(ct), v = /([.?@])?(.*)/.exec(p);
3356
- c.push({ type: 1, index: i, name: v[2], strings: b, ctor: v[1] === "." ? fo : v[1] === "?" ? vo : v[1] === "@" ? yo : we });
3355
+ const b = s.getAttribute(p.toLowerCase() + Qe).split(ht), v = /([.?@])?(.*)/.exec(p);
3356
+ c.push({ type: 1, index: i, name: v[2], strings: b, ctor: v[1] === "." ? yo : v[1] === "?" ? wo : v[1] === "@" ? $o : _e });
3357
3357
  } else
3358
3358
  c.push({ type: 6, index: i });
3359
3359
  }
3360
3360
  for (const d of u)
3361
3361
  s.removeAttribute(d);
3362
3362
  }
3363
- if (Rr.test(s.tagName)) {
3364
- const u = s.textContent.split(ct), d = u.length - 1;
3363
+ if (Br.test(s.tagName)) {
3364
+ const u = s.textContent.split(ht), d = u.length - 1;
3365
3365
  if (d > 0) {
3366
- s.textContent = _t ? _t.emptyScript : "";
3366
+ s.textContent = St ? St.emptyScript : "";
3367
3367
  for (let p = 0; p < d; p++)
3368
- s.append(u[p], It()), mt.nextNode(), c.push({ type: 2, index: ++i });
3369
- s.append(u[d], It());
3368
+ s.append(u[p], zt()), bt.nextNode(), c.push({ type: 2, index: ++i });
3369
+ s.append(u[d], zt());
3370
3370
  }
3371
3371
  }
3372
3372
  } else if (s.nodeType === 8)
3373
- if (s.data === Tr)
3373
+ if (s.data === Ur)
3374
3374
  c.push({ type: 2, index: i });
3375
3375
  else {
3376
3376
  let u = -1;
3377
- for (; (u = s.data.indexOf(ct, u + 1)) !== -1; )
3378
- c.push({ type: 7, index: i }), u += ct.length - 1;
3377
+ for (; (u = s.data.indexOf(ht, u + 1)) !== -1; )
3378
+ c.push({ type: 7, index: i }), u += ht.length - 1;
3379
3379
  }
3380
3380
  i++;
3381
3381
  }
3382
3382
  }
3383
3383
  static createElement(t, e) {
3384
- const r = bt.createElement("template");
3384
+ const r = Ot.createElement("template");
3385
3385
  return r.innerHTML = t, r;
3386
3386
  }
3387
3387
  }
3388
- function St(n, t, e = n, r) {
3388
+ function kt(n, t, e = n, r) {
3389
3389
  var s, i, o, a;
3390
- if (t === wt)
3390
+ if (t === Et)
3391
3391
  return t;
3392
3392
  let c = r !== void 0 ? (s = e._$Co) === null || s === void 0 ? void 0 : s[r] : e._$Cl;
3393
- const h = Ht(t) ? void 0 : t._$litDirective$;
3394
- return (c == null ? void 0 : c.constructor) !== h && ((i = c == null ? void 0 : c._$AO) === null || i === void 0 || i.call(c, !1), h === void 0 ? c = void 0 : (c = new h(n), c._$AT(n, e, r)), r !== void 0 ? ((o = (a = e)._$Co) !== null && o !== void 0 ? o : a._$Co = [])[r] = c : e._$Cl = c), c !== void 0 && (t = St(n, c._$AS(n, t.values), c, r)), t;
3393
+ const h = Wt(t) ? void 0 : t._$litDirective$;
3394
+ return (c == null ? void 0 : c.constructor) !== h && ((i = c == null ? void 0 : c._$AO) === null || i === void 0 || i.call(c, !1), h === void 0 ? c = void 0 : (c = new h(n), c._$AT(n, e, r)), r !== void 0 ? ((o = (a = e)._$Co) !== null && o !== void 0 ? o : a._$Co = [])[r] = c : e._$Cl = c), c !== void 0 && (t = kt(n, c._$AS(n, t.values), c, r)), t;
3395
3395
  }
3396
- class go {
3396
+ class vo {
3397
3397
  constructor(t, e) {
3398
3398
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
3399
3399
  }
@@ -3405,17 +3405,17 @@ class go {
3405
3405
  }
3406
3406
  u(t) {
3407
3407
  var e;
3408
- const { el: { content: r }, parts: s } = this._$AD, i = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : bt).importNode(r, !0);
3409
- mt.currentNode = i;
3410
- let o = mt.nextNode(), a = 0, c = 0, h = s[0];
3408
+ const { el: { content: r }, parts: s } = this._$AD, i = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : Ot).importNode(r, !0);
3409
+ bt.currentNode = i;
3410
+ let o = bt.nextNode(), a = 0, c = 0, h = s[0];
3411
3411
  for (; h !== void 0; ) {
3412
3412
  if (a === h.index) {
3413
3413
  let l;
3414
- h.type === 2 ? l = new Vt(o, o.nextSibling, this, t) : h.type === 1 ? l = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (l = new bo(o, this, t)), this._$AV.push(l), h = s[++c];
3414
+ h.type === 2 ? l = new Kt(o, o.nextSibling, this, t) : h.type === 1 ? l = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (l = new Oo(o, this, t)), this._$AV.push(l), h = s[++c];
3415
3415
  }
3416
- a !== (h == null ? void 0 : h.index) && (o = mt.nextNode(), a++);
3416
+ a !== (h == null ? void 0 : h.index) && (o = bt.nextNode(), a++);
3417
3417
  }
3418
- return mt.currentNode = bt, i;
3418
+ return bt.currentNode = Ot, i;
3419
3419
  }
3420
3420
  v(t) {
3421
3421
  let e = 0;
@@ -3423,10 +3423,10 @@ class go {
3423
3423
  r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, e), e += r.strings.length - 2) : r._$AI(t[e])), e++;
3424
3424
  }
3425
3425
  }
3426
- class Vt {
3426
+ class Kt {
3427
3427
  constructor(t, e, r, s) {
3428
3428
  var i;
3429
- this.type = 2, this._$AH = T, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = r, this.options = s, this._$Cp = (i = s == null ? void 0 : s.isConnected) === null || i === void 0 || i;
3429
+ this.type = 2, this._$AH = j, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = r, this.options = s, this._$Cp = (i = s == null ? void 0 : s.isConnected) === null || i === void 0 || i;
3430
3430
  }
3431
3431
  get _$AU() {
3432
3432
  var t, e;
@@ -3444,7 +3444,7 @@ class Vt {
3444
3444
  return this._$AB;
3445
3445
  }
3446
3446
  _$AI(t, e = this) {
3447
- t = St(this, t, e), Ht(t) ? t === T || t == null || t === "" ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== wt && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : lo(t) ? this.T(t) : this._(t);
3447
+ t = kt(this, t, e), Wt(t) ? t === j || t == null || t === "" ? (this._$AH !== j && this._$AR(), this._$AH = j) : t !== this._$AH && t !== Et && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : go(t) ? this.T(t) : this._(t);
3448
3448
  }
3449
3449
  k(t) {
3450
3450
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -3453,28 +3453,28 @@ class Vt {
3453
3453
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
3454
3454
  }
3455
3455
  _(t) {
3456
- this._$AH !== T && Ht(this._$AH) ? this._$AA.nextSibling.data = t : this.$(bt.createTextNode(t)), this._$AH = t;
3456
+ this._$AH !== j && Wt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(Ot.createTextNode(t)), this._$AH = t;
3457
3457
  }
3458
3458
  g(t) {
3459
3459
  var e;
3460
- const { values: r, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = Ut.createElement(Ir(s.h, s.h[0]), this.options)), s);
3460
+ const { values: r, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = Ft.createElement(zr(s.h, s.h[0]), this.options)), s);
3461
3461
  if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === i)
3462
3462
  this._$AH.v(r);
3463
3463
  else {
3464
- const o = new go(i, this), a = o.u(this.options);
3464
+ const o = new vo(i, this), a = o.u(this.options);
3465
3465
  o.v(r), this.$(a), this._$AH = o;
3466
3466
  }
3467
3467
  }
3468
3468
  _$AC(t) {
3469
- let e = qn.get(t.strings);
3470
- return e === void 0 && qn.set(t.strings, e = new Ut(t)), e;
3469
+ let e = Zn.get(t.strings);
3470
+ return e === void 0 && Zn.set(t.strings, e = new Ft(t)), e;
3471
3471
  }
3472
3472
  T(t) {
3473
- jr(this._$AH) || (this._$AH = [], this._$AR());
3473
+ Vr(this._$AH) || (this._$AH = [], this._$AR());
3474
3474
  const e = this._$AH;
3475
3475
  let r, s = 0;
3476
3476
  for (const i of t)
3477
- s === e.length ? e.push(r = new Vt(this.k(It()), this.k(It()), this, this.options)) : r = e[s], r._$AI(i), s++;
3477
+ s === e.length ? e.push(r = new Kt(this.k(zt()), this.k(zt()), this, this.options)) : r = e[s], r._$AI(i), s++;
3478
3478
  s < e.length && (this._$AR(r && r._$AB.nextSibling, s), e.length = s);
3479
3479
  }
3480
3480
  _$AR(t = this._$AA.nextSibling, e) {
@@ -3489,9 +3489,9 @@ class Vt {
3489
3489
  this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
3490
3490
  }
3491
3491
  }
3492
- class we {
3492
+ class _e {
3493
3493
  constructor(t, e, r, s, i) {
3494
- this.type = 1, this._$AH = T, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = i, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = T;
3494
+ this.type = 1, this._$AH = j, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = i, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = j;
3495
3495
  }
3496
3496
  get tagName() {
3497
3497
  return this.element.tagName;
@@ -3503,45 +3503,45 @@ class we {
3503
3503
  const i = this.strings;
3504
3504
  let o = !1;
3505
3505
  if (i === void 0)
3506
- t = St(this, t, e, 0), o = !Ht(t) || t !== this._$AH && t !== wt, o && (this._$AH = t);
3506
+ t = kt(this, t, e, 0), o = !Wt(t) || t !== this._$AH && t !== Et, o && (this._$AH = t);
3507
3507
  else {
3508
3508
  const a = t;
3509
3509
  let c, h;
3510
3510
  for (t = i[0], c = 0; c < i.length - 1; c++)
3511
- h = St(this, a[r + c], e, c), h === wt && (h = this._$AH[c]), o || (o = !Ht(h) || h !== this._$AH[c]), h === T ? t = T : t !== T && (t += (h != null ? h : "") + i[c + 1]), this._$AH[c] = h;
3511
+ h = kt(this, a[r + c], e, c), h === Et && (h = this._$AH[c]), o || (o = !Wt(h) || h !== this._$AH[c]), h === j ? t = j : t !== j && (t += (h != null ? h : "") + i[c + 1]), this._$AH[c] = h;
3512
3512
  }
3513
3513
  o && !s && this.j(t);
3514
3514
  }
3515
3515
  j(t) {
3516
- t === T ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t != null ? t : "");
3516
+ t === j ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t != null ? t : "");
3517
3517
  }
3518
3518
  }
3519
- class fo extends we {
3519
+ class yo extends _e {
3520
3520
  constructor() {
3521
3521
  super(...arguments), this.type = 3;
3522
3522
  }
3523
3523
  j(t) {
3524
- this.element[this.name] = t === T ? void 0 : t;
3524
+ this.element[this.name] = t === j ? void 0 : t;
3525
3525
  }
3526
3526
  }
3527
- const mo = _t ? _t.emptyScript : "";
3528
- class vo extends we {
3527
+ const bo = St ? St.emptyScript : "";
3528
+ class wo extends _e {
3529
3529
  constructor() {
3530
3530
  super(...arguments), this.type = 4;
3531
3531
  }
3532
3532
  j(t) {
3533
- t && t !== T ? this.element.setAttribute(this.name, mo) : this.element.removeAttribute(this.name);
3533
+ t && t !== j ? this.element.setAttribute(this.name, bo) : this.element.removeAttribute(this.name);
3534
3534
  }
3535
3535
  }
3536
- class yo extends we {
3536
+ class $o extends _e {
3537
3537
  constructor(t, e, r, s, i) {
3538
3538
  super(t, e, r, s, i), this.type = 5;
3539
3539
  }
3540
3540
  _$AI(t, e = this) {
3541
3541
  var r;
3542
- if ((t = (r = St(this, t, e, 0)) !== null && r !== void 0 ? r : T) === wt)
3542
+ if ((t = (r = kt(this, t, e, 0)) !== null && r !== void 0 ? r : j) === Et)
3543
3543
  return;
3544
- const s = this._$AH, i = t === T && s !== T || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== T && (s === T || i);
3544
+ const s = this._$AH, i = t === j && s !== j || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== j && (s === j || i);
3545
3545
  i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
3546
3546
  }
3547
3547
  handleEvent(t) {
@@ -3549,7 +3549,7 @@ class yo extends we {
3549
3549
  typeof this._$AH == "function" ? this._$AH.call((r = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && r !== void 0 ? r : this.element, t) : this._$AH.handleEvent(t);
3550
3550
  }
3551
3551
  }
3552
- class bo {
3552
+ class Oo {
3553
3553
  constructor(t, e, r) {
3554
3554
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
3555
3555
  }
@@ -3557,18 +3557,18 @@ class bo {
3557
3557
  return this._$AM._$AU;
3558
3558
  }
3559
3559
  _$AI(t) {
3560
- St(this, t);
3560
+ kt(this, t);
3561
3561
  }
3562
3562
  }
3563
- const Jn = de.litHtmlPolyfillSupport;
3564
- Jn == null || Jn(Ut, Vt), ((Te = de.litHtmlVersions) !== null && Te !== void 0 ? Te : de.litHtmlVersions = []).push("2.8.0");
3565
- const wo = (n, t, e) => {
3563
+ const Qn = ve.litHtmlPolyfillSupport;
3564
+ Qn == null || Qn(Ft, Kt), ((Ue = ve.litHtmlVersions) !== null && Ue !== void 0 ? Ue : ve.litHtmlVersions = []).push("2.8.0");
3565
+ const Eo = (n, t, e) => {
3566
3566
  var r, s;
3567
3567
  const i = (r = e == null ? void 0 : e.renderBefore) !== null && r !== void 0 ? r : t;
3568
3568
  let o = i._$litPart$;
3569
3569
  if (o === void 0) {
3570
3570
  const a = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : null;
3571
- i._$litPart$ = o = new Vt(t.insertBefore(It(), a), a, void 0, e != null ? e : {});
3571
+ i._$litPart$ = o = new Kt(t.insertBefore(zt(), a), a, void 0, e != null ? e : {});
3572
3572
  }
3573
3573
  return o._$AI(n), o;
3574
3574
  };
@@ -3577,8 +3577,8 @@ const wo = (n, t, e) => {
3577
3577
  * Copyright 2017 Google LLC
3578
3578
  * SPDX-License-Identifier: BSD-3-Clause
3579
3579
  */
3580
- var Re, Ie;
3581
- let jt = class extends At {
3580
+ var Be, ze;
3581
+ let Vt = class extends Pt {
3582
3582
  constructor() {
3583
3583
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
3584
3584
  }
@@ -3589,7 +3589,7 @@ let jt = class extends At {
3589
3589
  }
3590
3590
  update(t) {
3591
3591
  const e = this.render();
3592
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = wo(e, this.renderRoot, this.renderOptions);
3592
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Eo(e, this.renderRoot, this.renderOptions);
3593
3593
  }
3594
3594
  connectedCallback() {
3595
3595
  var t;
@@ -3600,52 +3600,70 @@ let jt = class extends At {
3600
3600
  super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
3601
3601
  }
3602
3602
  render() {
3603
- return wt;
3603
+ return Et;
3604
3604
  }
3605
3605
  };
3606
- jt.finalized = !0, jt._$litElement$ = !0, (Re = globalThis.litElementHydrateSupport) === null || Re === void 0 || Re.call(globalThis, { LitElement: jt });
3607
- const Kn = globalThis.litElementPolyfillSupport;
3608
- Kn == null || Kn({ LitElement: jt });
3609
- ((Ie = globalThis.litElementVersions) !== null && Ie !== void 0 ? Ie : globalThis.litElementVersions = []).push("3.3.3");
3606
+ Vt.finalized = !0, Vt._$litElement$ = !0, (Be = globalThis.litElementHydrateSupport) === null || Be === void 0 || Be.call(globalThis, { LitElement: Vt });
3607
+ const Xn = globalThis.litElementPolyfillSupport;
3608
+ Xn == null || Xn({ LitElement: Vt });
3609
+ ((ze = globalThis.litElementVersions) !== null && ze !== void 0 ? ze : globalThis.litElementVersions = []).push("3.3.3");
3610
3610
  /**
3611
3611
  * @license
3612
3612
  * Copyright 2017 Google LLC
3613
3613
  * SPDX-License-Identifier: BSD-3-Clause
3614
3614
  */
3615
- const $o = (n, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? zt(st({}, t), { finisher(e) {
3615
+ const xo = (n, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? Mt(tt({}, t), { finisher(e) {
3616
3616
  e.createProperty(t.key, n);
3617
3617
  } }) : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
3618
3618
  typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
3619
3619
  }, finisher(e) {
3620
3620
  e.createProperty(t.key, n);
3621
- } }, Eo = (n, t, e) => {
3621
+ } }, _o = (n, t, e) => {
3622
3622
  t.constructor.createProperty(e, n);
3623
3623
  };
3624
- function Hr(n) {
3625
- return (t, e) => e !== void 0 ? Eo(n, t, e) : $o(n, t);
3624
+ function ye(n) {
3625
+ return (t, e) => e !== void 0 ? _o(n, t, e) : xo(n, t);
3626
3626
  }
3627
3627
  /**
3628
3628
  * @license
3629
3629
  * Copyright 2017 Google LLC
3630
3630
  * SPDX-License-Identifier: BSD-3-Clause
3631
3631
  */
3632
- function nn(n) {
3633
- return Hr(zt(st({}, n), { state: !0 }));
3632
+ function lt(n) {
3633
+ return ye(Mt(tt({}, n), { state: !0 }));
3634
3634
  }
3635
+ /**
3636
+ * @license
3637
+ * Copyright 2017 Google LLC
3638
+ * SPDX-License-Identifier: BSD-3-Clause
3639
+ */
3640
+ const Ao = ({ finisher: n, descriptor: t }) => (e, r) => {
3641
+ var s;
3642
+ if (r === void 0) {
3643
+ const i = (s = e.originalKey) !== null && s !== void 0 ? s : e.key, o = t != null ? { kind: "method", placement: "prototype", key: i, descriptor: t(e.key) } : Mt(tt({}, e), { key: i });
3644
+ return n != null && (o.finisher = function(a) {
3645
+ n(a, i);
3646
+ }), o;
3647
+ }
3648
+ {
3649
+ const i = e.constructor;
3650
+ t !== void 0 && Object.defineProperty(e, r, t(r)), n == null || n(i, r);
3651
+ }
3652
+ };
3635
3653
  /**
3636
3654
  * @license
3637
3655
  * Copyright 2021 Google LLC
3638
3656
  * SPDX-License-Identifier: BSD-3-Clause
3639
3657
  */
3640
- var He;
3641
- ((He = window.HTMLSlotElement) === null || He === void 0 ? void 0 : He.prototype.assignedElements) != null;
3658
+ var We;
3659
+ ((We = window.HTMLSlotElement) === null || We === void 0 ? void 0 : We.prototype.assignedElements) != null;
3642
3660
  /**
3643
3661
  * @license
3644
3662
  * Copyright 2017 Google LLC
3645
3663
  * SPDX-License-Identifier: BSD-3-Clause
3646
3664
  */
3647
- const Oo = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ao = (n) => (...t) => ({ _$litDirective$: n, values: t });
3648
- class xo {
3665
+ const Po = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Co = (n) => (...t) => ({ _$litDirective$: n, values: t });
3666
+ let So = class {
3649
3667
  constructor(t) {
3650
3668
  }
3651
3669
  get _$AU() {
@@ -3660,16 +3678,16 @@ class xo {
3660
3678
  update(t, e) {
3661
3679
  return this.render(...e);
3662
3680
  }
3663
- }
3681
+ };
3664
3682
  /**
3665
3683
  * @license
3666
3684
  * Copyright 2018 Google LLC
3667
3685
  * SPDX-License-Identifier: BSD-3-Clause
3668
3686
  */
3669
- const _o = Ao(class extends xo {
3687
+ const ko = Co(class extends So {
3670
3688
  constructor(n) {
3671
3689
  var t;
3672
- if (super(n), n.type !== Oo.ATTRIBUTE || n.name !== "class" || ((t = n.strings) === null || t === void 0 ? void 0 : t.length) > 2)
3690
+ if (super(n), n.type !== Po.ATTRIBUTE || n.name !== "class" || ((t = n.strings) === null || t === void 0 ? void 0 : t.length) > 2)
3673
3691
  throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
3674
3692
  }
3675
3693
  render(n) {
@@ -3691,29 +3709,29 @@ const _o = Ao(class extends xo {
3691
3709
  const o = !!t[i];
3692
3710
  o === this.it.has(i) || !((r = this.nt) === null || r === void 0) && r.has(i) || (o ? (s.add(i), this.it.add(i)) : (s.remove(i), this.it.delete(i)));
3693
3711
  }
3694
- return wt;
3712
+ return Et;
3695
3713
  }
3696
3714
  });
3697
- var So = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, $e = (n, t, e, r) => {
3698
- for (var s = r > 1 ? void 0 : r ? Po(t, e) : t, i = n.length - 1, o; i >= 0; i--)
3715
+ var No = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, Ae = (n, t, e, r) => {
3716
+ for (var s = r > 1 ? void 0 : r ? Lo(t, e) : t, i = n.length - 1, o; i >= 0; i--)
3699
3717
  (o = n[i]) && (s = (r ? o(t, e, s) : o(s)) || s);
3700
- return r && s && So(t, e, s), s;
3718
+ return r && s && No(t, e, s), s;
3701
3719
  };
3702
- class lt extends jt {
3720
+ class dt extends Vt {
3703
3721
  constructor() {
3704
3722
  super(...arguments), this.active = !1, this.loaded = !1;
3705
3723
  }
3706
3724
  connectedCallback() {
3707
- return z(this, null, function* () {
3708
- cn(lt.prototype, this, "connectedCallback").call(this), this.icon = yield this._renderSymbol(this.symbol), this.loaded = !0;
3725
+ return B(this, null, function* () {
3726
+ pn(dt.prototype, this, "connectedCallback").call(this), this.icon = yield this._renderSymbol(this.symbol), this.loaded = !0;
3709
3727
  });
3710
3728
  }
3711
3729
  _toggleActive() {
3712
3730
  this.active = !this.active;
3713
3731
  }
3714
3732
  _renderSymbol(t) {
3715
- return z(this, null, function* () {
3716
- const e = (r) => z(this, null, function* () {
3733
+ return B(this, null, function* () {
3734
+ const e = (r) => B(this, null, function* () {
3717
3735
  return yield import("./index-9688347a.js").then((i) => i[r]);
3718
3736
  });
3719
3737
  if (t) {
@@ -3721,28 +3739,28 @@ class lt extends jt {
3721
3739
  switch (r) {
3722
3740
  case "Telia": {
3723
3741
  const i = yield e(s);
3724
- return i ? Kt`<telia-icon
3742
+ return i ? Xt`<telia-icon
3725
3743
  class="trigger-icon"
3726
3744
  svg=${i.svg}
3727
3745
  size="lg"
3728
- ></telia-icon>` : T;
3746
+ ></telia-icon>` : j;
3729
3747
  }
3730
3748
  case "FontAwesome":
3731
- return Kt`<i class="trigger-fa-icon fa fa-${s}"></i>`;
3749
+ return Xt`<i class="trigger-fa-icon fa fa-${s}"></i>`;
3732
3750
  case "Uri":
3733
- return Kt`<i
3751
+ return Xt`<i
3734
3752
  class="trigger-custom-icon"
3735
3753
  style="background: url(${s}) no-repeat center center;background-size: contain;"
3736
3754
  ></i>`;
3737
3755
  default:
3738
- return T;
3756
+ return j;
3739
3757
  }
3740
3758
  }
3741
3759
  });
3742
3760
  }
3743
3761
  render() {
3744
- return Kt`<button
3745
- class=${_o({
3762
+ return Xt`<button
3763
+ class=${ko({
3746
3764
  trigger: !0,
3747
3765
  active: this.active,
3748
3766
  rendered: this.loaded
@@ -3780,8 +3798,8 @@ class lt extends jt {
3780
3798
  </button>`;
3781
3799
  }
3782
3800
  }
3783
- lt.styles = [
3784
- oo`
3801
+ dt.styles = [
3802
+ Ir`
3785
3803
  :host {
3786
3804
  --voca-rem-multiplier: 0.625;
3787
3805
  display: block;
@@ -3853,25 +3871,25 @@ lt.styles = [
3853
3871
  }
3854
3872
  `
3855
3873
  ];
3856
- $e([
3857
- Hr({ attribute: !1 })
3858
- ], lt.prototype, "symbol", 2);
3859
- $e([
3860
- nn()
3861
- ], lt.prototype, "active", 2);
3862
- $e([
3863
- nn()
3864
- ], lt.prototype, "loaded", 2);
3865
- $e([
3866
- nn()
3867
- ], lt.prototype, "icon", 2);
3868
- var vt = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Link = "link", n.Badge = "badge", n.Unsupported = "unsupported", n))(vt || {});
3869
- const Co = (n, t) => n && t ? "both" : n ? "widgetDOM" : t ? "triggerDOM" : "none", Ur = (n) => n ? typeof n == "boolean" && n ? "link" : typeof n == "object" && !Array.isArray(n) ? "badge" : "unsupported" : "inline", ko = (n, t, e, r, s = !1) => z(void 0, null, function* () {
3874
+ Ae([
3875
+ ye({ attribute: !1 })
3876
+ ], dt.prototype, "symbol", 2);
3877
+ Ae([
3878
+ lt()
3879
+ ], dt.prototype, "active", 2);
3880
+ Ae([
3881
+ lt()
3882
+ ], dt.prototype, "loaded", 2);
3883
+ Ae([
3884
+ lt()
3885
+ ], dt.prototype, "icon", 2);
3886
+ var wt = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Link = "link", n.Badge = "badge", n.Unsupported = "unsupported", n))(wt || {});
3887
+ const Mo = (n, t) => n && t ? "both" : n ? "widgetDOM" : t ? "triggerDOM" : "none", Wr = (n) => n ? typeof n == "boolean" && n ? "link" : typeof n == "object" && !Array.isArray(n) ? "badge" : "unsupported" : "inline", Do = (n, t, e, r, s = !1) => B(void 0, null, function* () {
3870
3888
  var h, l;
3871
- const i = Co(
3889
+ const i = Mo(
3872
3890
  t,
3873
3891
  e
3874
- ), o = Ur(r), a = {
3892
+ ), o = Wr(r), a = {
3875
3893
  widgetDOMElement: t ? t.cloneNode(!0) : void 0,
3876
3894
  triggerDOMElement: e ? e.cloneNode(!0) : void 0
3877
3895
  }, c = {
@@ -3912,7 +3930,7 @@ const Co = (n, t) => n && t ? "both" : n ? "widgetDOM" : t ? "triggerDOM" : "non
3912
3930
  document.createElement("div")
3913
3931
  );
3914
3932
  if (c.widgetDOMElement = u, o !== "inline") {
3915
- customElements.get("ace-widget-trigger") || customElements.define("ace-widget-trigger", lt);
3933
+ customElements.get("ace-widget-trigger") || customElements.define("ace-widget-trigger", dt);
3916
3934
  const d = document.createElement("ace-widget-trigger");
3917
3935
  d.symbol = r.symbol, document.body.appendChild(d), console.log("Created trigger"), c.triggerDOMElement = d;
3918
3936
  }
@@ -3920,8 +3938,8 @@ const Co = (n, t) => n && t ? "both" : n ? "widgetDOM" : t ? "triggerDOM" : "non
3920
3938
  }
3921
3939
  }
3922
3940
  return c;
3923
- }), No = "modals";
3924
- class Mo {
3941
+ }), jo = "modals";
3942
+ class Ro {
3925
3943
  constructor(t, e) {
3926
3944
  this.options = e, this.unsubscribe = [], this.container = t.createChild(this), this.container.register("widgetDOMElement", this.options.widgetDOMElement), this.container.register(
3927
3945
  "triggerDOMElement",
@@ -3940,17 +3958,17 @@ class Mo {
3940
3958
  */
3941
3959
  render() {
3942
3960
  const { widgetDOMElement: t, triggerDOMElement: e } = this.options, r = this.container.get("$widget");
3943
- return t.getAttribute("data-rendered") === "true" ? Promise.resolve() : (e && this.options.triggerType === vt.Badge && so(e), import("./render-500e6f90.js").then((s) => s.default(this.container, t)).then(() => {
3944
- if (t.setAttribute("data-rendered", "true"), e && this.options.triggerType === vt.Badge) {
3961
+ return t.getAttribute("data-rendered") === "true" ? Promise.resolve() : (e && this.options.triggerType === wt.Badge && co(e), import("./render-2f9819b1.js").then((s) => s.default(this.container, t)).then(() => {
3962
+ if (t.setAttribute("data-rendered", "true"), e && this.options.triggerType === wt.Badge) {
3945
3963
  const i = this.options.triggerOptions.openTooltip;
3946
- Mr(e, i);
3964
+ Rr(e, i);
3947
3965
  }
3948
- os(this.container, t);
3966
+ us(this.container, t);
3949
3967
  const s = this.container.get("$environment").widgets.all();
3950
- Y(
3968
+ Z(
3951
3969
  this.container,
3952
- No,
3953
- S.Session
3970
+ jo,
3971
+ P.Session
3954
3972
  ).then((i) => {
3955
3973
  i && i.forEach((o) => {
3956
3974
  s.find(
@@ -3967,7 +3985,7 @@ class Mo {
3967
3985
  e.getAttribute("role") || e.setAttribute("role", "button");
3968
3986
  const { name: r } = this.container.get("$widget"), { label: s, symbol: i, ariaLabel: o, closedTooltip: a, openTooltip: c } = t, h = { closedTooltip: a, openTooltip: c };
3969
3987
  this.options.triggerOptions = h;
3970
- const l = no(e, {
3988
+ const l = oo(e, {
3971
3989
  label: s,
3972
3990
  symbol: i,
3973
3991
  ariaLabel: o,
@@ -3977,7 +3995,7 @@ class Mo {
3977
3995
  this.unsubscribe.push(l);
3978
3996
  }
3979
3997
  dispose() {
3980
- return z(this, null, function* () {
3998
+ return B(this, null, function* () {
3981
3999
  var r, s, i, o;
3982
4000
  const { triggerDOMElement: t, widgetDOMElement: e } = this.options;
3983
4001
  this.options.cachedOriginals.widgetDOMElement && e && ((r = e.parentNode) == null || r.replaceChild(
@@ -3992,45 +4010,45 @@ class Mo {
3992
4010
  });
3993
4011
  }
3994
4012
  }
3995
- const Gt = "changesets", Lo = (n) => {
4013
+ const te = "changesets", To = (n) => {
3996
4014
  const t = { tags: n.tags };
3997
4015
  return n.context && typeof n.context != "function" && (t.context = n.context), n.properties && typeof n.properties != "function" && (t.properties = n.properties), n.layout && typeof n.layout != "function" && (t.layout = n.layout), t;
3998
4016
  };
3999
- class rn {
4017
+ class hn {
4000
4018
  constructor(t, e) {
4001
4019
  this.container = t, this.storageWriter = e;
4002
4020
  }
4003
4021
  static create(t) {
4004
- return et(
4022
+ return rt(
4005
4023
  t,
4006
- Gt,
4007
- P.Necessary,
4024
+ te,
4025
+ C.Necessary,
4008
4026
  {
4009
- medium: S.Local
4027
+ medium: P.Local
4010
4028
  }
4011
4029
  ).then(
4012
- (e) => new rn(t, e)
4030
+ (e) => new hn(t, e)
4013
4031
  );
4014
4032
  }
4015
4033
  write(t, e, r, s) {
4016
- return Q(this)(() => Y(
4034
+ return X(this)(() => Z(
4017
4035
  this.container,
4018
- Gt,
4019
- S.Local
4036
+ te,
4037
+ P.Local
4020
4038
  ).then((i = {}) => {
4021
4039
  const { keys: o = [], items: a = {} } = i, c = o.indexOf(t);
4022
4040
  return c > -1 && o.splice(c, 1), o.push(t), a[t] = {
4023
4041
  options: s,
4024
- attributes: Lo(r),
4042
+ attributes: To(r),
4025
4043
  rules: e.rules
4026
4044
  }, this.storageWriter({ keys: o, items: a });
4027
4045
  }));
4028
4046
  }
4029
4047
  remove(t) {
4030
- return Q(this)(() => Y(
4048
+ return X(this)(() => Z(
4031
4049
  this.container,
4032
- Gt,
4033
- S.Local
4050
+ te,
4051
+ P.Local
4034
4052
  ).then((e = {}) => {
4035
4053
  const { keys: r = [], items: s = {} } = e, i = r.indexOf(t);
4036
4054
  if (i > -1)
@@ -4038,10 +4056,10 @@ class rn {
4038
4056
  }));
4039
4057
  }
4040
4058
  load(t) {
4041
- return Q(this)(() => Y(
4059
+ return X(this)(() => Z(
4042
4060
  this.container,
4043
- Gt,
4044
- S.Local
4061
+ te,
4062
+ P.Local
4045
4063
  ).then((e = {}) => {
4046
4064
  const { keys: r = [], items: s = {} } = e;
4047
4065
  r.forEach((i) => {
@@ -4051,27 +4069,27 @@ class rn {
4051
4069
  t.write({
4052
4070
  attributes: c,
4053
4071
  options: h,
4054
- target: new Pt(t, a)
4072
+ target: new Nt(t, a)
4055
4073
  });
4056
4074
  }
4057
4075
  });
4058
4076
  }));
4059
4077
  }
4060
4078
  }
4061
- const Do = (n) => {
4079
+ const Io = (n) => {
4062
4080
  const { container: t } = n;
4063
- return rn.create(t).then(
4081
+ return hn.create(t).then(
4064
4082
  (e) => {
4065
- const r = t.get("$settings"), s = { localStorage: e }, i = new me(n, s), o = rr(i, r);
4083
+ const r = t.get("$settings"), s = { localStorage: e }, i = new Jt(n, s), o = ar(i, r);
4066
4084
  return n.events.subscribe(
4067
4085
  "widget:state-change",
4068
4086
  (a, c) => {
4069
- c.state === Qn.Deactivating && o();
4087
+ c.state === nr.Deactivating && o();
4070
4088
  }
4071
4089
  ), i;
4072
4090
  }
4073
4091
  );
4074
- }, To = (n) => Promise.resolve().then(() => Gi).then(
4092
+ }, Ho = (n) => Promise.resolve().then(() => Xi).then(
4075
4093
  ({ RoutingService: t, HistoryMode: e }) => n.get("settings").then((r) => {
4076
4094
  const {
4077
4095
  routing: {
@@ -4091,8 +4109,8 @@ const Do = (n) => {
4091
4109
  basePath: o
4092
4110
  });
4093
4111
  })
4094
- ), jo = (n) => Promise.resolve().then(() => ai).then(({ StorageProvider: t }) => new t()), Ro = (n) => Promise.resolve().then(() => Ge).then(({ ActionResolver: t }) => new t(n)), Io = (n) => Promise.resolve().then(() => Ge).then(({ ComponentResolver: t }) => new t(n)), Ho = (n) => Promise.resolve().then(() => Ge).then(() => Do(n.get("$widget"))), Ue = "$settings", Yt = "open", Gn = "activeStickyWidget";
4095
- class la extends Zr {
4112
+ ), Uo = (n) => Promise.resolve().then(() => ui).then(({ StorageProvider: t }) => new t()), Vo = (n) => Promise.resolve().then(() => en).then(({ ActionResolver: t }) => new t(n)), Bo = (n) => Promise.resolve().then(() => en).then(({ ComponentResolver: t }) => new t(n)), zo = (n) => Promise.resolve().then(() => en).then(() => Io(n.get("$widget"))), Fe = "$settings", ee = "open", tr = "activeStickyWidget";
4113
+ class Ca extends ns {
4096
4114
  constructor(t) {
4097
4115
  super(t), this.outlets = /* @__PURE__ */ new Map(), this.activated = void 0, this.subs = [], this.handleBootstrapping = (e) => {
4098
4116
  const r = {
@@ -4108,23 +4126,23 @@ class la extends Zr {
4108
4126
  });
4109
4127
  }, this.container.registerAsync(
4110
4128
  "storage",
4111
- () => jo(this.container)
4112
- ), this.container.registerFactory("settings", () => Y(
4129
+ () => Uo(this.container)
4130
+ ), this.container.registerFactory("settings", () => Z(
4113
4131
  this.container,
4114
- Ue,
4115
- S.Local
4116
- ).then((e = {}) => st(st({}, this.container.get("$settings")), e))), to(this, "load", this.handleBootstrapping), this.container.registerAsync(
4132
+ Fe,
4133
+ P.Local
4134
+ ).then((e = {}) => tt(tt({}, this.container.get("$settings")), e))), so(this, "load", this.handleBootstrapping), this.container.registerAsync(
4117
4135
  "componentResolver",
4118
- () => Io(this.container)
4136
+ () => Bo(this.container)
4119
4137
  ), this.container.registerAsync(
4120
4138
  "router",
4121
- () => To(this.container)
4139
+ () => Ho(this.container)
4122
4140
  ), this.container.registerAsync(
4123
4141
  "actionResolver",
4124
- () => Ro(this.container)
4142
+ () => Vo(this.container)
4125
4143
  ), this.container.register("matchMedia", window.matchMedia), this.container.registerAsync(
4126
4144
  "components",
4127
- () => Ho(this.container)
4145
+ () => zo(this.container)
4128
4146
  );
4129
4147
  }
4130
4148
  initialize() {
@@ -4153,10 +4171,10 @@ class la extends Zr {
4153
4171
  "router:change",
4154
4172
  (l, { previous: u = { routeData: {} }, next: d = { routeData: {} } }) => {
4155
4173
  const { routeData: p } = u, { routeData: b } = d, v = Object.keys(o.views).reduce(
4156
- (g, O) => typeof o.views[O].path == "undefined" ? O : g,
4174
+ (g, E) => typeof o.views[E].path == "undefined" ? E : g,
4157
4175
  ""
4158
4176
  );
4159
- !b.name && v ? a(v) : a(b.name), yt(p && p.params), yt(b && b.params), this.container.getAsync("actionResolver").then((g) => {
4177
+ !b.name && v ? a(v) : a(b.name), $t(p && p.params), $t(b && b.params), this.container.getAsync("actionResolver").then((g) => {
4160
4178
  g.action(this.widget.name, "routeChange", {
4161
4179
  next: b,
4162
4180
  previous: p
@@ -4168,14 +4186,14 @@ class la extends Zr {
4168
4186
  );
4169
4187
  }
4170
4188
  attach(t = {}) {
4171
- return this.container.get("settings").then((r) => z(this, [r], function* ({ trigger: e }) {
4189
+ return this.container.get("settings").then((r) => B(this, [r], function* ({ trigger: e }) {
4172
4190
  var p, b;
4173
4191
  const {
4174
4192
  widgetDOMElement: s,
4175
- key: i = Bt(),
4193
+ key: i = qt(),
4176
4194
  triggerDOMElement: o,
4177
4195
  withRenderState: a
4178
- } = t, h = Ur(e) === vt.Inline && ((o == null ? void 0 : o.childElementCount) || 0) > 0, l = yield ko(
4196
+ } = t, h = Wr(e) === wt.Inline && ((o == null ? void 0 : o.childElementCount) || 0) > 0, l = yield Do(
4179
4197
  this.widget.name,
4180
4198
  s,
4181
4199
  o,
@@ -4184,32 +4202,32 @@ class la extends Zr {
4184
4202
  );
4185
4203
  this.outlets.size < 1 && !a && this.setRenderState("unset");
4186
4204
  const u = () => {
4187
- const v = () => g.querySelectorAll("[data-loading=true]").length === 0, [g] = this.widget.container.get("widgetDOMElements"), O = (H, k) => {
4205
+ const v = () => g.querySelectorAll("[data-loading=true]").length === 0, [g] = this.widget.container.get("widgetDOMElements"), E = (H, k) => {
4188
4206
  v() && (l.callback && l.callback(), k.disconnect());
4189
- }, j = {
4207
+ }, R = {
4190
4208
  attributes: !0,
4191
4209
  subtree: !0,
4192
4210
  childList: !0
4193
4211
  };
4194
- v() && l.callback && l.callback(), new MutationObserver(O).observe(g, j);
4212
+ v() && l.callback && l.callback(), new MutationObserver(E).observe(g, R);
4195
4213
  };
4196
4214
  h && this.widget.container.getAsync("dataClient").then(({ events: v }) => {
4197
4215
  v.subscribe(
4198
4216
  "data-client:fetched",
4199
- (g, O) => {
4200
- O.unresolvedQueries === 0 && u();
4217
+ (g, E) => {
4218
+ E.unresolvedQueries === 0 && u();
4201
4219
  }
4202
4220
  );
4203
4221
  });
4204
4222
  const d = this.getOrCreateViewOutlet(i, l);
4205
- if (this.outlets.set(i, d), this.widget.events.dispatch("widget:attached", {}, { bubbles: !0 }), l.triggerType === vt.Badge && e && ((p = l.triggerDOMElement) == null || p.setAttribute(
4223
+ if (this.outlets.set(i, d), this.widget.events.dispatch("widget:attached", {}, { bubbles: !0 }), l.triggerType === wt.Badge && e && ((p = l.triggerDOMElement) == null || p.setAttribute(
4206
4224
  "aria-expanded",
4207
4225
  "false"
4208
- ), d == null || d.renderBadge(e)), l.triggerType !== vt.Inline && ((b = l.triggerDOMElement) == null || b.addEventListener(
4226
+ ), d == null || d.renderBadge(e)), l.triggerType !== wt.Inline && ((b = l.triggerDOMElement) == null || b.addEventListener(
4209
4227
  "click",
4210
4228
  (v) => {
4211
4229
  v.preventDefault(), this.container.get("settings").then(({ trigger: g }) => {
4212
- d.render().then(() => this.renderState()).then((O) => g && g.action && g.action === "hide" ? O === q.open ? this.hide() : this.open() : O === q.open ? this.close() : this.open());
4230
+ d.render().then(() => this.renderState()).then((E) => g && g.action && g.action === "hide" ? E === J.open ? this.hide() : this.open() : E === J.open ? this.close() : this.open());
4213
4231
  });
4214
4232
  }
4215
4233
  )), this.outlets.size > 1)
@@ -4218,7 +4236,7 @@ class la extends Zr {
4218
4236
  });
4219
4237
  if (a)
4220
4238
  return a === "storage" ? this.renderState().then((v) => {
4221
- if (l.triggerType === vt.Inline) {
4239
+ if (l.triggerType === wt.Inline) {
4222
4240
  this.triggerStateIfApplicable("open");
4223
4241
  return;
4224
4242
  }
@@ -4258,13 +4276,13 @@ class la extends Zr {
4258
4276
  });
4259
4277
  }
4260
4278
  getOrCreateViewOutlet(t, e) {
4261
- return this.outlets.has(t) ? this.outlets.get(t) : new Mo(this.container, e);
4279
+ return this.outlets.has(t) ? this.outlets.get(t) : new Ro(this.container, e);
4262
4280
  }
4263
4281
  render(t = {}) {
4264
4282
  if (process.env.NODE_ENV !== "production" && console.warn(
4265
4283
  "widget.render() is deprecated. Use widget.attach() instead."
4266
4284
  ), t.open) {
4267
- const e = zt(st({}, t), {
4285
+ const e = Mt(tt({}, t), {
4268
4286
  withRenderState: "open"
4269
4287
  /* Open */
4270
4288
  });
@@ -4281,25 +4299,25 @@ class la extends Zr {
4281
4299
  setSettings(t) {
4282
4300
  return Promise.all([
4283
4301
  this.container.get("settings"),
4284
- et(
4302
+ rt(
4285
4303
  this.container,
4286
- Ue,
4287
- P.Necessary,
4304
+ Fe,
4305
+ C.Necessary,
4288
4306
  {
4289
- medium: S.Local
4307
+ medium: P.Local
4290
4308
  }
4291
4309
  )
4292
4310
  ]).then(([e, r]) => Promise.resolve(t(e)).then((s) => r(s).then(() => {
4293
- const i = st(st({}, e), s);
4311
+ const i = tt(tt({}, e), s);
4294
4312
  return this.widget.events.dispatch("widget:settings-updated", i), i;
4295
4313
  })));
4296
4314
  }
4297
4315
  clearSettings() {
4298
- return et(
4316
+ return rt(
4299
4317
  this.container,
4300
- Ue,
4301
- P.Necessary,
4302
- { medium: S.Local }
4318
+ Fe,
4319
+ C.Necessary,
4320
+ { medium: P.Local }
4303
4321
  ).then((t) => t()).then(() => this.container.get("settings")).then((t) => {
4304
4322
  this.widget.events.dispatch("widget:settings-updated", t);
4305
4323
  });
@@ -4310,18 +4328,18 @@ class la extends Zr {
4310
4328
  });
4311
4329
  }
4312
4330
  renderState() {
4313
- if (Xe(this.container))
4314
- return Promise.resolve(q.open);
4315
- const t = () => Y(
4331
+ if (on(this.container))
4332
+ return Promise.resolve(J.open);
4333
+ const t = () => Z(
4316
4334
  this.container,
4317
- Yt,
4318
- S.Session
4319
- ).then((r = q.closed) => r), e = () => Y(
4335
+ ee,
4336
+ P.Session
4337
+ ).then((r = J.closed) => r), e = () => Z(
4320
4338
  this.container,
4321
- Yt,
4322
- S.Session
4323
- ).then((r = q.closed) => r);
4324
- return this.container.getAsync("router").then((r) => r.isSticky() ? e().then((s) => s === q.open ? s : t()) : t());
4339
+ ee,
4340
+ P.Session
4341
+ ).then((r = J.closed) => r);
4342
+ return this.container.getAsync("router").then((r) => r.isSticky() ? e().then((s) => s === J.open ? s : t()) : t());
4325
4343
  }
4326
4344
  hide() {
4327
4345
  return this.outlets.size < 1 ? (process.env.NODE_ENV !== "production" && console.warn(
@@ -4350,9 +4368,9 @@ class la extends Zr {
4350
4368
  case "close":
4351
4369
  case "open":
4352
4370
  case "hide":
4353
- const r = t === "open" ? q.open : t === "close" ? q.closed : q.hidden;
4371
+ const r = t === "open" ? J.open : t === "close" ? J.closed : J.hidden;
4354
4372
  return this.setRenderState(r).then(() => {
4355
- this.setTriggerState(r === q.open), r !== q.hidden ? r === q.open ? this.onOpen() : this.onClose() : this.outlets.forEach(
4373
+ this.setTriggerState(r === J.open), r !== J.hidden ? r === J.open ? this.onOpen() : this.onClose() : this.outlets.forEach(
4356
4374
  (s) => {
4357
4375
  var i;
4358
4376
  return (i = s.options.triggerDOMElement) == null ? void 0 : i.setAttribute(
@@ -4367,20 +4385,20 @@ class la extends Zr {
4367
4385
  setRenderState(t) {
4368
4386
  const { invoke: e, events: r } = this.container.get("$widget");
4369
4387
  return Promise.all([
4370
- et(
4388
+ rt(
4371
4389
  this.container,
4372
- Yt,
4373
- P.Necessary,
4390
+ ee,
4391
+ C.Necessary,
4374
4392
  {
4375
- medium: S.Session
4393
+ medium: P.Session
4376
4394
  }
4377
4395
  ),
4378
- et(
4396
+ rt(
4379
4397
  this.container,
4380
- Yt,
4381
- P.Necessary,
4398
+ ee,
4399
+ C.Necessary,
4382
4400
  {
4383
- medium: S.Local,
4401
+ medium: P.Local,
4384
4402
  duration: { minutes: 5 }
4385
4403
  }
4386
4404
  ),
@@ -4443,23 +4461,23 @@ class la extends Zr {
4443
4461
  const {
4444
4462
  options: { triggerDOMElement: r, triggerOptions: s }
4445
4463
  } = e, { openTooltip: i, closedTooltip: o } = s || {};
4446
- r && (t ? Mr(r, i) : ro(r, o));
4464
+ r && (t ? Rr(r, i) : ao(r, o));
4447
4465
  });
4448
4466
  }
4449
4467
  deactivate() {
4450
4468
  this.subs.forEach((e) => e());
4451
4469
  const t = [];
4452
- return this.outlets.forEach((e) => t.push(e.dispose())), Y(
4470
+ return this.outlets.forEach((e) => t.push(e.dispose())), Z(
4453
4471
  this.container,
4454
- Gn,
4455
- S.Local
4456
- ).then((e) => e === this.widget.name ? et(
4472
+ tr,
4473
+ P.Local
4474
+ ).then((e) => e === this.widget.name ? rt(
4457
4475
  this.container,
4458
- Gn,
4459
- P.Necessary,
4476
+ tr,
4477
+ C.Necessary,
4460
4478
  {
4461
- medium: S.Local,
4462
- scope: Ct.Implementation
4479
+ medium: P.Local,
4480
+ scope: Lt.Implementation
4463
4481
  }
4464
4482
  ).then((r) => r()).then(() => Promise.all(t)) : Promise.all(t));
4465
4483
  }
@@ -4469,7 +4487,7 @@ class la extends Zr {
4469
4487
  * Copyright 2021 Google LLC
4470
4488
  * SPDX-License-Identifier: BSD-3-Clause
4471
4489
  */
4472
- let Uo = class extends Event {
4490
+ let Fr = class extends Event {
4473
4491
  constructor(t, e, r) {
4474
4492
  super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = r != null && r;
4475
4493
  }
@@ -4484,7 +4502,7 @@ let Uo = class extends Event {
4484
4502
  * Copyright 2021 Google LLC
4485
4503
  * SPDX-License-Identifier: BSD-3-Clause
4486
4504
  */
4487
- class Yn {
4505
+ let Wo = class {
4488
4506
  constructor(t, e, r, s) {
4489
4507
  var i;
4490
4508
  if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (o, a) => {
@@ -4503,49 +4521,121 @@ class Yn {
4503
4521
  this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
4504
4522
  }
4505
4523
  dispatchRequest() {
4506
- this.host.dispatchEvent(new Uo(this.context, this.t, this.subscribe));
4524
+ this.host.dispatchEvent(new Fr(this.context, this.t, this.subscribe));
4525
+ }
4526
+ };
4527
+ /**
4528
+ * @license
4529
+ * Copyright 2021 Google LLC
4530
+ * SPDX-License-Identifier: BSD-3-Clause
4531
+ */
4532
+ class Fo {
4533
+ constructor(t) {
4534
+ this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
4535
+ for (const [e, { disposer: r }] of this.subscriptions)
4536
+ e(this.o, r);
4537
+ }, t !== void 0 && (this.value = t);
4538
+ }
4539
+ get value() {
4540
+ return this.o;
4541
+ }
4542
+ set value(t) {
4543
+ this.setValue(t);
4544
+ }
4545
+ setValue(t, e = !1) {
4546
+ const r = e || !Object.is(t, this.o);
4547
+ this.o = t, r && this.updateObservers();
4548
+ }
4549
+ addCallback(t, e, r) {
4550
+ if (!r)
4551
+ return void t(this.value);
4552
+ this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
4553
+ this.subscriptions.delete(t);
4554
+ }, consumerHost: e });
4555
+ const { disposer: s } = this.subscriptions.get(t);
4556
+ t(this.value, s);
4557
+ }
4558
+ clearCallbacks() {
4559
+ this.subscriptions.clear();
4560
+ }
4561
+ }
4562
+ /**
4563
+ * @license
4564
+ * Copyright 2021 Google LLC
4565
+ * SPDX-License-Identifier: BSD-3-Clause
4566
+ */
4567
+ class qo extends Event {
4568
+ constructor(t) {
4569
+ super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
4570
+ }
4571
+ }
4572
+ class jt extends Fo {
4573
+ constructor(t, e, r) {
4574
+ super(e.context !== void 0 ? e.initialValue : r), this.onContextRequest = (s) => {
4575
+ const i = s.composedPath()[0];
4576
+ s.context === this.context && i !== this.host && (s.stopPropagation(), this.addCallback(s.callback, i, s.subscribe));
4577
+ }, this.onProviderRequest = (s) => {
4578
+ const i = s.composedPath()[0];
4579
+ if (s.context === this.context && i !== this.host) {
4580
+ for (const [o, { consumerHost: a }] of this.subscriptions)
4581
+ a.dispatchEvent(new Fr(this.context, o, !0));
4582
+ s.stopPropagation();
4583
+ }
4584
+ }, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), this.host.addController(this);
4585
+ }
4586
+ attachListeners() {
4587
+ this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
4588
+ }
4589
+ hostConnected() {
4590
+ this.host.dispatchEvent(new qo(this.context));
4507
4591
  }
4508
4592
  }
4509
- const da = "children", Bo = "descriptor", Vo = "container", pa = "context", ga = "layout", fa = "properties";
4510
- class ma {
4593
+ /**
4594
+ * @license
4595
+ * Copyright 2022 Google LLC
4596
+ * SPDX-License-Identifier: BSD-3-Clause
4597
+ */
4598
+ function Jo({ context: n, subscribe: t }) {
4599
+ return Ao({ finisher: (e, r) => {
4600
+ e.addInitializer((s) => {
4601
+ new Wo(s, { context: n, callback: (i) => {
4602
+ s[r] = i;
4603
+ }, subscribe: t });
4604
+ });
4605
+ } });
4606
+ }
4607
+ const Ko = "children", Go = "descriptor", Yo = "container", Zo = "context", Qo = "layout", Xo = "properties";
4608
+ class ta {
4511
4609
  constructor(t) {
4512
- (this.host = t).addController(this), new Yn(
4513
- t,
4514
- Vo,
4515
- (e) => {
4516
- this._container = e, this.host.requestUpdate();
4517
- },
4518
- !0
4519
- ), new Yn(
4520
- t,
4521
- Bo,
4522
- (e) => {
4523
- this._descriptor = e, this.host.requestUpdate();
4524
- },
4525
- !0
4526
- );
4610
+ (this.host = t).addController(this);
4527
4611
  }
4528
4612
  hostConnected() {
4529
4613
  }
4530
4614
  hostDisconnected() {
4531
4615
  }
4616
+ setDescriptor(t) {
4617
+ this._descriptor = t;
4618
+ }
4619
+ setContainer(t) {
4620
+ this._container = t;
4621
+ }
4532
4622
  dispatch(t, e) {
4533
- return z(this, null, function* () {
4623
+ return B(this, null, function* () {
4534
4624
  if (!this._container || !this._descriptor)
4535
4625
  return;
4536
- const r = yield me.getInstance(
4626
+ const r = yield Jt.getInstance(
4537
4627
  this._container
4538
- ), s = new Pt(r).withId(
4628
+ ), s = new Nt(r).withId(
4539
4629
  this._descriptor.id
4540
4630
  );
4541
4631
  yield r.actions(
4542
4632
  s,
4543
- this._descriptor.type || Bt()
4633
+ this._descriptor.type || qt()
4544
4634
  ).dispatch(t, e);
4545
4635
  });
4546
4636
  }
4547
4637
  }
4548
- const zo = (n, t) => z(void 0, null, function* () {
4638
+ const ea = (n, t) => B(void 0, null, function* () {
4549
4639
  const e = n.properties().provider;
4550
4640
  let r = {}, s = "";
4551
4641
  Array.isArray(e) ? (s = e[0], r = e[1]) : s = e || "";
@@ -4553,19 +4643,19 @@ const zo = (n, t) => z(void 0, null, function* () {
4553
4643
  if (!i)
4554
4644
  throw new Error("No provider defined in ListComponent");
4555
4645
  return i.applyComponentNodeSettings(n.node.id, r), { provider: i, settings: r };
4556
- }), va = (n, t) => z(void 0, null, function* () {
4557
- const { provider: e, settings: r = {} } = yield zo(n, t);
4646
+ }), Na = (n, t) => B(void 0, null, function* () {
4647
+ const { provider: e, settings: r = {} } = yield ea(n, t);
4558
4648
  return {
4559
4649
  addResource: (s, i) => e.addResource(s, i),
4560
4650
  getData: (s, i) => e.getData(s, i, r)
4561
4651
  };
4562
4652
  });
4563
- class Wo {
4653
+ class na {
4564
4654
  constructor(t) {
4565
4655
  this.container = t, this.resources = /* @__PURE__ */ new Map(), this.nodeConfiguration = /* @__PURE__ */ new Map();
4566
4656
  }
4567
4657
  getData(t, e, r) {
4568
- return z(this, null, function* () {
4658
+ return B(this, null, function* () {
4569
4659
  const s = this.resources.get(t);
4570
4660
  if (!s)
4571
4661
  throw new Error(`Unable to get EntityProvider for "${t}"`);
@@ -4579,62 +4669,202 @@ class Wo {
4579
4669
  this.nodeConfiguration.set(t, e);
4580
4670
  }
4581
4671
  }
4582
- const Zn = (n) => ({
4672
+ const er = (n) => ({
4583
4673
  title: n.Title,
4584
4674
  id: n.Id.toString()
4585
4675
  });
4586
- class Fo extends Wo {
4676
+ class ra extends na {
4587
4677
  constructor(t) {
4588
4678
  super(t), this.addResource("item", {
4589
- query: (e, r) => z(this, null, function* () {
4679
+ query: (e, r) => B(this, null, function* () {
4590
4680
  const s = e.itemId, i = "78aacc09-ae6f-5485-5ca3-9dacebb95825", o = t.get("$widget").name, a = r.projection || "", h = yield (yield fetch(
4591
4681
  `${a}/guides/${s}?client=${i}&funnel=${o}&site=%2F%2Fdemo.humany.cc%2Fadmin%2Finterfaces&phrase=&connectionId=&p.LastGuideId=2857`
4592
4682
  )).json();
4593
- return h ? Zn(h) : null;
4683
+ return h ? er(h) : null;
4594
4684
  })
4595
4685
  }), this.addResource("items", {
4596
- query: (e, r) => z(this, null, function* () {
4686
+ query: (e, r) => B(this, null, function* () {
4597
4687
  const s = "", i = t.get("$widget").name, o = r.projection || "", u = yield (yield fetch(
4598
4688
  `${o}/guides?client=${s}&funnel=${i}&site=&phrase=&skip=0&take=10&sorting.type=popularity&sorting.direction=descending`
4599
4689
  )).json();
4600
4690
  return {
4601
- items: (u.Matches || []).map((d) => Zn(d)),
4691
+ items: (u.Matches || []).map((d) => er(d)),
4602
4692
  totalItems: (u == null ? void 0 : u.TotalMatches) || 0
4603
4693
  };
4604
4694
  })
4605
4695
  });
4606
4696
  }
4607
4697
  }
4608
- const ya = (n) => z(void 0, null, function* () {
4609
- n.registerAsync("guideProvider", () => new Fo(n));
4610
- }), ba = (n, t, e, r, s) => n.getAsync("componentResolver").then((i) => (i.registerComponent(t, e), sr(n, t, r || (() => {
4611
- }), t, s)));
4698
+ const La = (n) => B(void 0, null, function* () {
4699
+ n.registerAsync("guideProvider", () => new ra(n));
4700
+ }), Ma = (n, t, e, r, s) => n.getAsync("componentResolver").then((i) => (i.registerComponent(t, e), cr(n, t, r || (() => {
4701
+ }), t, s))), W = (n, t, e) => {
4702
+ n && e.style.setProperty(t, n);
4703
+ }, sa = (n, t) => {
4704
+ var e, r, s, i, o, a, c, h, l, u, d;
4705
+ W((e = n.colors) == null ? void 0 : e.primary, "--primary-color", t), W((r = n.colors) == null ? void 0 : r.secondary, "--secondary-color", t), W((s = n.colors) == null ? void 0 : s.text, "--text-color", t), W((i = n.colors) == null ? void 0 : i.link, "--link-color", t), W((o = n.colors) == null ? void 0 : o.gray, "--gray-color", t), W((a = n.colors) == null ? void 0 : a.grayDark, "--gray-dark-color", t), W((c = n.spacing) == null ? void 0 : c.xs, "--spacing-xs", t), W((h = n.spacing) == null ? void 0 : h.sm, "--spacing-sm", t), W((l = n.spacing) == null ? void 0 : l.md, "--spacing-md", t), W((u = n.spacing) == null ? void 0 : u.lg, "--spacing-lg", t), W((d = n.spacing) == null ? void 0 : d.xl, "--spacing-xl", t), W(n.boxShadow, "--box-shadow", t), W(n.borderRadius, "--border-radius", t), W(n.borderRadiusSm, "--border-radius-sm", t), W(n.fontFamily, "--font-family", t);
4706
+ }, ia = (n) => {
4707
+ const t = {};
4708
+ return Object.keys(n).forEach((e) => {
4709
+ e.indexOf("css-") > -1 && (t[e] = n[e]);
4710
+ }), t;
4711
+ }, oa = (n, t) => {
4712
+ const e = ia(t);
4713
+ Object.entries(e).forEach(([r, s]) => {
4714
+ n.style.setProperty(r.replace("css-", ""), s);
4715
+ });
4716
+ };
4717
+ var aa = Object.defineProperty, ca = Object.getOwnPropertyDescriptor, gt = (n, t, e, r) => {
4718
+ for (var s = r > 1 ? void 0 : r ? ca(t, e) : t, i = n.length - 1, o; i >= 0; i--)
4719
+ (o = n[i]) && (s = (r ? o(t, e, s) : o(s)) || s);
4720
+ return r && s && aa(t, e, s), s;
4721
+ };
4722
+ const Da = (n) => {
4723
+ var e;
4724
+ class t extends n {
4725
+ constructor() {
4726
+ super(...arguments), this.entry = "", this._descriptorProvider = new jt(
4727
+ this,
4728
+ Go,
4729
+ void 0
4730
+ ), this._childrenProvider = new jt(this, Ko, []), this._propertiesProvider = new jt(this, Xo, {}), this._contextProvider = new jt(this, Zo, {}), this._layoutProvider = new jt(this, Qo, {}), this.actions = new ta(this), this.context = {}, this.layout = {}, this.properties = {};
4731
+ }
4732
+ connectedCallback() {
4733
+ super.connectedCallback(), this.container && (this.actions.setContainer(this.container), Jt.getInstance(this.container).then(
4734
+ (s) => B(this, null, function* () {
4735
+ var o;
4736
+ const i = s.nodes.get(this.entry);
4737
+ if (i) {
4738
+ this._propertyChangeListener = s.events.subscribe(
4739
+ "components:properties-changed",
4740
+ (u, d) => {
4741
+ i.id === d.node.id && this._setProperties(d.node.attributes.properties);
4742
+ }
4743
+ ), this._contextChangeListener = s.events.subscribe(
4744
+ "components:context-changed",
4745
+ (u, d) => {
4746
+ i.id === d.node.id && this._setContext(d.node.attributes.context);
4747
+ }
4748
+ ), this._layoutChangeListener = s.events.subscribe(
4749
+ "components:layout-changed",
4750
+ (u, d) => {
4751
+ i.id === d.node.id && this._setLayout(d.node.attributes.layout);
4752
+ }
4753
+ );
4754
+ const a = "default";
4755
+ this._unmountNode = i.mount(this.container), this._setDescriptor(Je(i, a)), this._setProperties(i.attributes.properties), this._setContext(i.attributes.context), this._setLayout(this.layout);
4756
+ const c = i.getChildren(a).map((u) => Je(u));
4757
+ this._childrenProvider.setValue(c);
4758
+ const l = (yield this.container.getAsync("componentResolver")).getComponent(
4759
+ ((o = this.descriptor) == null ? void 0 : o.type) || ""
4760
+ );
4761
+ l.then && l.then((u) => {
4762
+ this.component = u.default;
4763
+ });
4764
+ }
4765
+ })
4766
+ ));
4767
+ }
4768
+ disconnectedCallback() {
4769
+ super.disconnectedCallback(), this._propertyChangeListener && this._propertyChangeListener(), this._contextChangeListener && this._contextChangeListener(), this._layoutChangeListener && this._layoutChangeListener(), this._unmountNode && this._unmountNode();
4770
+ }
4771
+ updated() {
4772
+ sa(this.context, this.renderRoot.host), this.renderRoot.host.style.setProperty(
4773
+ "--width",
4774
+ this.layout.size === "full" ? "var(--columns, 1)" : `min(${this.layout.size || "var(--columns)"}, var(--columns))`
4775
+ ), oa(this.renderRoot.host, this.properties);
4776
+ }
4777
+ _setProperties(s) {
4778
+ this._propertiesProvider.setValue(s), this.properties = s;
4779
+ }
4780
+ _setContext(s) {
4781
+ this._contextProvider.setValue(s), this.context = s;
4782
+ }
4783
+ _setLayout(s) {
4784
+ this._layoutProvider.setValue(s), this.layout = s;
4785
+ }
4786
+ _setDescriptor(s) {
4787
+ this.descriptor = s, this._descriptorProvider.setValue(s), this.actions.setDescriptor(s);
4788
+ }
4789
+ }
4790
+ return t.styles = [
4791
+ (e = n.styles) != null ? e : [],
4792
+ Ir`
4793
+ :host {
4794
+ --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
4795
+ --spacing-xs: 0.2rem;
4796
+ --spacing-sm: 0.5rem;
4797
+ --spacing-md: 1rem;
4798
+ --spacing-lg: 1.2rem;
4799
+ --spacing-xl: 1.8rem;
4800
+
4801
+ --primary-color: #29003e;
4802
+ --secondary-color: #00558f;
4803
+ --text-color: #222222;
4804
+ --link-color: #990ae3;
4805
+ --gray-color: #efefef;
4806
+ --gray-dark-color: #a6a6a6;
4807
+
4808
+ --box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
4809
+ --border-radius: 1rem;
4810
+ --border-radius-sm: 0.3rem;
4811
+
4812
+ font-family: var(--font-family);
4813
+ grid-column: span var(--width);
4814
+ max-width: 100%;
4815
+ overflow: hidden;
4816
+ box-sizing: border-box;
4817
+ display: block;
4818
+ }
4819
+ * {
4820
+ box-sizing: border-box;
4821
+ }
4822
+ `
4823
+ ], gt([
4824
+ Jo({ context: Yo }),
4825
+ ye({ attribute: !1 })
4826
+ ], t.prototype, "container", 2), gt([
4827
+ ye()
4828
+ ], t.prototype, "entry", 2), gt([
4829
+ lt()
4830
+ ], t.prototype, "descriptor", 2), gt([
4831
+ lt()
4832
+ ], t.prototype, "component", 2), gt([
4833
+ lt()
4834
+ ], t.prototype, "context", 2), gt([
4835
+ lt()
4836
+ ], t.prototype, "layout", 2), gt([
4837
+ lt()
4838
+ ], t.prototype, "properties", 2), t;
4839
+ };
4612
4840
  export {
4613
- T as A,
4614
- Wo as D,
4615
- xs as E,
4616
- ya as G,
4617
- la as W,
4618
- Yn as a,
4619
- jt as b,
4620
- Vo as c,
4621
- oo as d,
4622
- Ao as e,
4623
- nn as f,
4624
- Bo as g,
4625
- da as h,
4626
- xo as i,
4627
- fa as j,
4628
- pa as k,
4629
- ga as l,
4630
- q as m,
4631
- Hr as n,
4632
- ma as o,
4633
- me as p,
4634
- va as q,
4635
- ba as r,
4636
- Uo as s,
4637
- Oo as t,
4638
- Kt as x
4841
+ j as A,
4842
+ na as D,
4843
+ La as G,
4844
+ Et as T,
4845
+ Da as W,
4846
+ jt as a,
4847
+ Ir as b,
4848
+ Yo as c,
4849
+ lt as d,
4850
+ Co as e,
4851
+ sa as f,
4852
+ oa as g,
4853
+ Ca as h,
4854
+ So as i,
4855
+ Ko as j,
4856
+ Go as k,
4857
+ Zo as l,
4858
+ J as m,
4859
+ ye as n,
4860
+ Qo as o,
4861
+ Jt as p,
4862
+ Xo as q,
4863
+ ta as r,
4864
+ Vt as s,
4865
+ Po as t,
4866
+ Na as u,
4867
+ Ma as v,
4868
+ Xt as x
4639
4869
  };
4640
- //# sourceMappingURL=index-7657bfd2.js.map
4870
+ //# sourceMappingURL=index-212dab55.js.map