@limetech/lime-web-components 6.13.1 → 6.13.2-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,1109 +1,1023 @@
1
- import { getElement as q, setErrorHandler as it } from "@stencil/core";
2
- const c = {
3
- Route: "route"
4
- }, Qe = "idle-state";
5
- function Ye(t) {
6
- return t && [
7
- "belongsto",
8
- "hasone",
9
- "hasmany",
10
- "hasandbelongstomany"
11
- ].includes(t.type);
12
- }
13
- function qe(t) {
14
- return t && ["belongsto", "hasone"].includes(t.type);
15
- }
16
- function Ke(t) {
17
- return t && [
18
- "time",
19
- "timeofday",
20
- "date",
21
- "year",
22
- "quarter",
23
- "month"
24
- ].includes(t.type);
25
- }
26
- function Xe(t) {
27
- return t && ["string", "text", "phone", "link"].includes(t.type);
28
- }
29
- function Je(t) {
30
- return t && ["decimal", "percent"].includes(t.type);
31
- }
32
- const st = "state.limetypes";
33
- c.LimeTypeRepository = st;
34
- var A = function(t, e) {
35
- return A = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
36
- r.__proto__ = n;
37
- } || function(r, n) {
38
- for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
39
- }, A(t, e);
1
+ import { getElement as e, setErrorHandler as t } from "@stencil/core";
2
+ //#region src/core/platform.ts
3
+ var n = { Route: "route" }, r = "idle-state";
4
+ //#endregion
5
+ //#region src/limetype/property.ts
6
+ function i(e) {
7
+ return e && [
8
+ "belongsto",
9
+ "hasone",
10
+ "hasmany",
11
+ "hasandbelongstomany"
12
+ ].includes(e.type);
13
+ }
14
+ function a(e) {
15
+ return e && ["belongsto", "hasone"].includes(e.type);
16
+ }
17
+ function o(e) {
18
+ return e && [
19
+ "time",
20
+ "timeofday",
21
+ "date",
22
+ "year",
23
+ "quarter",
24
+ "month"
25
+ ].includes(e.type);
26
+ }
27
+ function s(e) {
28
+ return e && [
29
+ "string",
30
+ "text",
31
+ "phone",
32
+ "link"
33
+ ].includes(e.type);
34
+ }
35
+ function c(e) {
36
+ return e && ["decimal", "percent"].includes(e.type);
37
+ }
38
+ //#endregion
39
+ //#region src/limetype/types.ts
40
+ n.LimeTypeRepository = "state.limetypes";
41
+ //#endregion
42
+ //#region node_modules/tslib/tslib.es6.mjs
43
+ var l = function(e, t) {
44
+ return l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
45
+ e.__proto__ = t;
46
+ } || function(e, t) {
47
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
48
+ }, l(e, t);
40
49
  };
41
- function m(t, e) {
42
- if (typeof e != "function" && e !== null)
43
- throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
44
- A(t, e);
45
- function r() {
46
- this.constructor = t;
47
- }
48
- t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
49
- }
50
- function O(t) {
51
- var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
52
- if (r) return r.call(t);
53
- if (t && typeof t.length == "number") return {
54
- next: function() {
55
- return t && n >= t.length && (t = void 0), { value: t && t[n++], done: !t };
56
- }
57
- };
58
- throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
59
- }
60
- function P(t, e) {
61
- var r = typeof Symbol == "function" && t[Symbol.iterator];
62
- if (!r) return t;
63
- var n = r.call(t), o, i = [], s;
64
- try {
65
- for (; (e === void 0 || e-- > 0) && !(o = n.next()).done; ) i.push(o.value);
66
- } catch (u) {
67
- s = { error: u };
68
- } finally {
69
- try {
70
- o && !o.done && (r = n.return) && r.call(n);
71
- } finally {
72
- if (s) throw s.error;
73
- }
74
- }
75
- return i;
76
- }
77
- function I(t, e, r) {
78
- if (r || arguments.length === 2) for (var n = 0, o = e.length, i; n < o; n++)
79
- (i || !(n in e)) && (i || (i = Array.prototype.slice.call(e, 0, n)), i[n] = e[n]);
80
- return t.concat(i || Array.prototype.slice.call(e));
81
- }
82
- function p(t) {
83
- return typeof t == "function";
84
- }
85
- function K(t) {
86
- var e = function(n) {
87
- Error.call(n), n.stack = new Error().stack;
88
- }, r = t(e);
89
- return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
90
- }
91
- var w = K(function(t) {
92
- return function(r) {
93
- t(this), this.message = r ? r.length + ` errors occurred during unsubscription:
94
- ` + r.map(function(n, o) {
95
- return o + 1 + ") " + n.toString();
96
- }).join(`
97
- `) : "", this.name = "UnsubscriptionError", this.errors = r;
98
- };
50
+ function u(e, t) {
51
+ if (typeof t != "function" && t !== null) throw TypeError("Class extends value " + String(t) + " is not a constructor or null");
52
+ l(e, t);
53
+ function n() {
54
+ this.constructor = e;
55
+ }
56
+ e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
57
+ }
58
+ function d(e) {
59
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
60
+ if (n) return n.call(e);
61
+ if (e && typeof e.length == "number") return { next: function() {
62
+ return e && r >= e.length && (e = void 0), {
63
+ value: e && e[r++],
64
+ done: !e
65
+ };
66
+ } };
67
+ throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
68
+ }
69
+ function f(e, t) {
70
+ var n = typeof Symbol == "function" && e[Symbol.iterator];
71
+ if (!n) return e;
72
+ var r = n.call(e), i, a = [], o;
73
+ try {
74
+ for (; (t === void 0 || t-- > 0) && !(i = r.next()).done;) a.push(i.value);
75
+ } catch (e) {
76
+ o = { error: e };
77
+ } finally {
78
+ try {
79
+ i && !i.done && (n = r.return) && n.call(r);
80
+ } finally {
81
+ if (o) throw o.error;
82
+ }
83
+ }
84
+ return a;
85
+ }
86
+ function p(e, t, n) {
87
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
88
+ return e.concat(a || Array.prototype.slice.call(t));
89
+ }
90
+ //#endregion
91
+ //#region node_modules/rxjs/dist/esm5/internal/util/isFunction.js
92
+ function m(e) {
93
+ return typeof e == "function";
94
+ }
95
+ //#endregion
96
+ //#region node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js
97
+ function h(e) {
98
+ var t = e(function(e) {
99
+ Error.call(e), e.stack = (/* @__PURE__ */ Error()).stack;
100
+ });
101
+ return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
102
+ }
103
+ //#endregion
104
+ //#region node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js
105
+ var g = h(function(e) {
106
+ return function(t) {
107
+ e(this), this.message = t ? t.length + " errors occurred during unsubscription:\n" + t.map(function(e, t) {
108
+ return t + 1 + ") " + e.toString();
109
+ }).join("\n ") : "", this.name = "UnsubscriptionError", this.errors = t;
110
+ };
99
111
  });
100
- function j(t, e) {
101
- if (t) {
102
- var r = t.indexOf(e);
103
- 0 <= r && t.splice(r, 1);
104
- }
105
- }
106
- var _ = (function() {
107
- function t(e) {
108
- this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
109
- }
110
- return t.prototype.unsubscribe = function() {
111
- var e, r, n, o, i;
112
- if (!this.closed) {
113
- this.closed = !0;
114
- var s = this._parentage;
115
- if (s)
116
- if (this._parentage = null, Array.isArray(s))
117
- try {
118
- for (var u = O(s), a = u.next(); !a.done; a = u.next()) {
119
- var C = a.value;
120
- C.remove(this);
121
- }
122
- } catch (f) {
123
- e = { error: f };
124
- } finally {
125
- try {
126
- a && !a.done && (r = u.return) && r.call(u);
127
- } finally {
128
- if (e) throw e.error;
129
- }
130
- }
131
- else
132
- s.remove(this);
133
- var M = this.initialTeardown;
134
- if (p(M))
135
- try {
136
- M();
137
- } catch (f) {
138
- i = f instanceof w ? f.errors : [f];
139
- }
140
- var N = this._finalizers;
141
- if (N) {
142
- this._finalizers = null;
143
- try {
144
- for (var b = O(N), y = b.next(); !y.done; y = b.next()) {
145
- var ot = y.value;
146
- try {
147
- D(ot);
148
- } catch (f) {
149
- i = i ?? [], f instanceof w ? i = I(I([], P(i)), P(f.errors)) : i.push(f);
150
- }
151
- }
152
- } catch (f) {
153
- n = { error: f };
154
- } finally {
155
- try {
156
- y && !y.done && (o = b.return) && o.call(b);
157
- } finally {
158
- if (n) throw n.error;
159
- }
160
- }
161
- }
162
- if (i)
163
- throw new w(i);
164
- }
165
- }, t.prototype.add = function(e) {
166
- var r;
167
- if (e && e !== this)
168
- if (this.closed)
169
- D(e);
170
- else {
171
- if (e instanceof t) {
172
- if (e.closed || e._hasParent(this))
173
- return;
174
- e._addParent(this);
175
- }
176
- (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(e);
177
- }
178
- }, t.prototype._hasParent = function(e) {
179
- var r = this._parentage;
180
- return r === e || Array.isArray(r) && r.includes(e);
181
- }, t.prototype._addParent = function(e) {
182
- var r = this._parentage;
183
- this._parentage = Array.isArray(r) ? (r.push(e), r) : r ? [r, e] : e;
184
- }, t.prototype._removeParent = function(e) {
185
- var r = this._parentage;
186
- r === e ? this._parentage = null : Array.isArray(r) && j(r, e);
187
- }, t.prototype.remove = function(e) {
188
- var r = this._finalizers;
189
- r && j(r, e), e instanceof t && e._removeParent(this);
190
- }, t.EMPTY = (function() {
191
- var e = new t();
192
- return e.closed = !0, e;
193
- })(), t;
194
- })(), X = _.EMPTY;
195
- function J(t) {
196
- return t instanceof _ || t && "closed" in t && p(t.remove) && p(t.add) && p(t.unsubscribe);
197
- }
198
- function D(t) {
199
- p(t) ? t() : t.unsubscribe();
200
- }
201
- var ct = {
202
- Promise: void 0
203
- }, ut = {
204
- setTimeout: function(t, e) {
205
- for (var r = [], n = 2; n < arguments.length; n++)
206
- r[n - 2] = arguments[n];
207
- return setTimeout.apply(void 0, I([t, e], P(r)));
208
- },
209
- clearTimeout: function(t) {
210
- return clearTimeout(t);
211
- },
212
- delegate: void 0
112
+ //#endregion
113
+ //#region node_modules/rxjs/dist/esm5/internal/util/arrRemove.js
114
+ function _(e, t) {
115
+ if (e) {
116
+ var n = e.indexOf(t);
117
+ 0 <= n && e.splice(n, 1);
118
+ }
119
+ }
120
+ //#endregion
121
+ //#region node_modules/rxjs/dist/esm5/internal/Subscription.js
122
+ var v = function() {
123
+ function e(e) {
124
+ this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
125
+ }
126
+ return e.prototype.unsubscribe = function() {
127
+ var e, t, n, r, i;
128
+ if (!this.closed) {
129
+ this.closed = !0;
130
+ var a = this._parentage;
131
+ if (a) if (this._parentage = null, Array.isArray(a)) try {
132
+ for (var o = d(a), s = o.next(); !s.done; s = o.next()) s.value.remove(this);
133
+ } catch (t) {
134
+ e = { error: t };
135
+ } finally {
136
+ try {
137
+ s && !s.done && (t = o.return) && t.call(o);
138
+ } finally {
139
+ if (e) throw e.error;
140
+ }
141
+ }
142
+ else a.remove(this);
143
+ var c = this.initialTeardown;
144
+ if (m(c)) try {
145
+ c();
146
+ } catch (e) {
147
+ i = e instanceof g ? e.errors : [e];
148
+ }
149
+ var l = this._finalizers;
150
+ if (l) {
151
+ this._finalizers = null;
152
+ try {
153
+ for (var u = d(l), h = u.next(); !h.done; h = u.next()) {
154
+ var _ = h.value;
155
+ try {
156
+ b(_);
157
+ } catch (e) {
158
+ i ??= [], e instanceof g ? i = p(p([], f(i)), f(e.errors)) : i.push(e);
159
+ }
160
+ }
161
+ } catch (e) {
162
+ n = { error: e };
163
+ } finally {
164
+ try {
165
+ h && !h.done && (r = u.return) && r.call(u);
166
+ } finally {
167
+ if (n) throw n.error;
168
+ }
169
+ }
170
+ }
171
+ if (i) throw new g(i);
172
+ }
173
+ }, e.prototype.add = function(t) {
174
+ if (t && t !== this) if (this.closed) b(t);
175
+ else {
176
+ if (t instanceof e) {
177
+ if (t.closed || t._hasParent(this)) return;
178
+ t._addParent(this);
179
+ }
180
+ (this._finalizers = this._finalizers ?? []).push(t);
181
+ }
182
+ }, e.prototype._hasParent = function(e) {
183
+ var t = this._parentage;
184
+ return t === e || Array.isArray(t) && t.includes(e);
185
+ }, e.prototype._addParent = function(e) {
186
+ var t = this._parentage;
187
+ this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
188
+ }, e.prototype._removeParent = function(e) {
189
+ var t = this._parentage;
190
+ t === e ? this._parentage = null : Array.isArray(t) && _(t, e);
191
+ }, e.prototype.remove = function(t) {
192
+ var n = this._finalizers;
193
+ n && _(n, t), t instanceof e && t._removeParent(this);
194
+ }, e.EMPTY = (function() {
195
+ var t = new e();
196
+ return t.closed = !0, t;
197
+ })(), e;
198
+ }(), ee = v.EMPTY;
199
+ function y(e) {
200
+ return e instanceof v || e && "closed" in e && m(e.remove) && m(e.add) && m(e.unsubscribe);
201
+ }
202
+ function b(e) {
203
+ m(e) ? e() : e.unsubscribe();
204
+ }
205
+ //#endregion
206
+ //#region node_modules/rxjs/dist/esm5/internal/config.js
207
+ var x = {
208
+ onUnhandledError: null,
209
+ onStoppedNotification: null,
210
+ Promise: void 0,
211
+ useDeprecatedSynchronousErrorHandling: !1,
212
+ useDeprecatedNextContext: !1
213
+ }, S = {
214
+ setTimeout: function(e, t) {
215
+ var n = [...arguments].slice(2), r = S.delegate;
216
+ return r?.setTimeout ? r.setTimeout.apply(r, p([e, t], f(n))) : setTimeout.apply(void 0, p([e, t], f(n)));
217
+ },
218
+ clearTimeout: function(e) {
219
+ return (S.delegate?.clearTimeout || clearTimeout)(e);
220
+ },
221
+ delegate: void 0
213
222
  };
214
- function at(t) {
215
- ut.setTimeout(function() {
216
- throw t;
217
- });
218
- }
219
- function $() {
220
- }
221
- function E(t) {
222
- t();
223
- }
224
- var Z = (function(t) {
225
- m(e, t);
226
- function e(r) {
227
- var n = t.call(this) || this;
228
- return n.isStopped = !1, r ? (n.destination = r, J(r) && r.add(n)) : n.destination = pt, n;
229
- }
230
- return e.create = function(r, n, o) {
231
- return new x(r, n, o);
232
- }, e.prototype.next = function(r) {
233
- this.isStopped || this._next(r);
234
- }, e.prototype.error = function(r) {
235
- this.isStopped || (this.isStopped = !0, this._error(r));
236
- }, e.prototype.complete = function() {
237
- this.isStopped || (this.isStopped = !0, this._complete());
238
- }, e.prototype.unsubscribe = function() {
239
- this.closed || (this.isStopped = !0, t.prototype.unsubscribe.call(this), this.destination = null);
240
- }, e.prototype._next = function(r) {
241
- this.destination.next(r);
242
- }, e.prototype._error = function(r) {
243
- try {
244
- this.destination.error(r);
245
- } finally {
246
- this.unsubscribe();
247
- }
248
- }, e.prototype._complete = function() {
249
- try {
250
- this.destination.complete();
251
- } finally {
252
- this.unsubscribe();
253
- }
254
- }, e;
255
- })(_), lt = (function() {
256
- function t(e) {
257
- this.partialObserver = e;
258
- }
259
- return t.prototype.next = function(e) {
260
- var r = this.partialObserver;
261
- if (r.next)
262
- try {
263
- r.next(e);
264
- } catch (n) {
265
- v(n);
266
- }
267
- }, t.prototype.error = function(e) {
268
- var r = this.partialObserver;
269
- if (r.error)
270
- try {
271
- r.error(e);
272
- } catch (n) {
273
- v(n);
274
- }
275
- else
276
- v(e);
277
- }, t.prototype.complete = function() {
278
- var e = this.partialObserver;
279
- if (e.complete)
280
- try {
281
- e.complete();
282
- } catch (r) {
283
- v(r);
284
- }
285
- }, t;
286
- })(), x = (function(t) {
287
- m(e, t);
288
- function e(r, n, o) {
289
- var i = t.call(this) || this, s;
290
- return p(r) || !r ? s = {
291
- next: r ?? void 0,
292
- error: n ?? void 0,
293
- complete: o ?? void 0
294
- } : s = r, i.destination = new lt(s), i;
295
- }
296
- return e;
297
- })(Z);
298
- function v(t) {
299
- at(t);
300
- }
301
- function ft(t) {
302
- throw t;
303
- }
304
- var pt = {
305
- closed: !0,
306
- next: $,
307
- error: ft,
308
- complete: $
309
- }, ht = (function() {
310
- return typeof Symbol == "function" && Symbol.observable || "@@observable";
223
+ //#endregion
224
+ //#region node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js
225
+ function te(e) {
226
+ S.setTimeout(function() {
227
+ var t = x.onUnhandledError;
228
+ if (t) t(e);
229
+ else throw e;
230
+ });
231
+ }
232
+ //#endregion
233
+ //#region node_modules/rxjs/dist/esm5/internal/util/noop.js
234
+ function C() {}
235
+ //#endregion
236
+ //#region node_modules/rxjs/dist/esm5/internal/NotificationFactories.js
237
+ var ne = (function() {
238
+ return w("C", void 0, void 0);
311
239
  })();
312
- function dt(t) {
313
- return t;
314
- }
315
- function yt(t) {
316
- return t.length === 0 ? dt : t.length === 1 ? t[0] : function(r) {
317
- return t.reduce(function(n, o) {
318
- return o(n);
319
- }, r);
320
- };
321
- }
322
- var L = (function() {
323
- function t(e) {
324
- e && (this._subscribe = e);
325
- }
326
- return t.prototype.lift = function(e) {
327
- var r = new t();
328
- return r.source = this, r.operator = e, r;
329
- }, t.prototype.subscribe = function(e, r, n) {
330
- var o = this, i = bt(e) ? e : new x(e, r, n);
331
- return E(function() {
332
- var s = o, u = s.operator, a = s.source;
333
- i.add(u ? u.call(i, a) : a ? o._subscribe(i) : o._trySubscribe(i));
334
- }), i;
335
- }, t.prototype._trySubscribe = function(e) {
336
- try {
337
- return this._subscribe(e);
338
- } catch (r) {
339
- e.error(r);
340
- }
341
- }, t.prototype.forEach = function(e, r) {
342
- var n = this;
343
- return r = T(r), new r(function(o, i) {
344
- var s = new x({
345
- next: function(u) {
346
- try {
347
- e(u);
348
- } catch (a) {
349
- i(a), s.unsubscribe();
350
- }
351
- },
352
- error: i,
353
- complete: o
354
- });
355
- n.subscribe(s);
356
- });
357
- }, t.prototype._subscribe = function(e) {
358
- var r;
359
- return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e);
360
- }, t.prototype[ht] = function() {
361
- return this;
362
- }, t.prototype.pipe = function() {
363
- for (var e = [], r = 0; r < arguments.length; r++)
364
- e[r] = arguments[r];
365
- return yt(e)(this);
366
- }, t.prototype.toPromise = function(e) {
367
- var r = this;
368
- return e = T(e), new e(function(n, o) {
369
- var i;
370
- r.subscribe(function(s) {
371
- return i = s;
372
- }, function(s) {
373
- return o(s);
374
- }, function() {
375
- return n(i);
376
- });
377
- });
378
- }, t.create = function(e) {
379
- return new t(e);
380
- }, t;
240
+ function re(e) {
241
+ return w("E", void 0, e);
242
+ }
243
+ function ie(e) {
244
+ return w("N", e, void 0);
245
+ }
246
+ function w(e, t, n) {
247
+ return {
248
+ kind: e,
249
+ value: t,
250
+ error: n
251
+ };
252
+ }
253
+ //#endregion
254
+ //#region node_modules/rxjs/dist/esm5/internal/util/errorContext.js
255
+ var T = null;
256
+ function E(e) {
257
+ if (x.useDeprecatedSynchronousErrorHandling) {
258
+ var t = !T;
259
+ if (t && (T = {
260
+ errorThrown: !1,
261
+ error: null
262
+ }), e(), t) {
263
+ var n = T, r = n.errorThrown, i = n.error;
264
+ if (T = null, r) throw i;
265
+ }
266
+ } else e();
267
+ }
268
+ function ae(e) {
269
+ x.useDeprecatedSynchronousErrorHandling && T && (T.errorThrown = !0, T.error = e);
270
+ }
271
+ //#endregion
272
+ //#region node_modules/rxjs/dist/esm5/internal/Subscriber.js
273
+ var oe = function(e) {
274
+ u(t, e);
275
+ function t(t) {
276
+ var n = e.call(this) || this;
277
+ return n.isStopped = !1, t ? (n.destination = t, y(t) && t.add(n)) : n.destination = ue, n;
278
+ }
279
+ return t.create = function(e, t, n) {
280
+ return new O(e, t, n);
281
+ }, t.prototype.next = function(e) {
282
+ this.isStopped ? A(ie(e), this) : this._next(e);
283
+ }, t.prototype.error = function(e) {
284
+ this.isStopped ? A(re(e), this) : (this.isStopped = !0, this._error(e));
285
+ }, t.prototype.complete = function() {
286
+ this.isStopped ? A(ne, this) : (this.isStopped = !0, this._complete());
287
+ }, t.prototype.unsubscribe = function() {
288
+ this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
289
+ }, t.prototype._next = function(e) {
290
+ this.destination.next(e);
291
+ }, t.prototype._error = function(e) {
292
+ try {
293
+ this.destination.error(e);
294
+ } finally {
295
+ this.unsubscribe();
296
+ }
297
+ }, t.prototype._complete = function() {
298
+ try {
299
+ this.destination.complete();
300
+ } finally {
301
+ this.unsubscribe();
302
+ }
303
+ }, t;
304
+ }(v), se = Function.prototype.bind;
305
+ function D(e, t) {
306
+ return se.call(e, t);
307
+ }
308
+ var ce = function() {
309
+ function e(e) {
310
+ this.partialObserver = e;
311
+ }
312
+ return e.prototype.next = function(e) {
313
+ var t = this.partialObserver;
314
+ if (t.next) try {
315
+ t.next(e);
316
+ } catch (e) {
317
+ k(e);
318
+ }
319
+ }, e.prototype.error = function(e) {
320
+ var t = this.partialObserver;
321
+ if (t.error) try {
322
+ t.error(e);
323
+ } catch (e) {
324
+ k(e);
325
+ }
326
+ else k(e);
327
+ }, e.prototype.complete = function() {
328
+ var e = this.partialObserver;
329
+ if (e.complete) try {
330
+ e.complete();
331
+ } catch (e) {
332
+ k(e);
333
+ }
334
+ }, e;
335
+ }(), O = function(e) {
336
+ u(t, e);
337
+ function t(t, n, r) {
338
+ var i = e.call(this) || this, a;
339
+ if (m(t) || !t) a = {
340
+ next: t ?? void 0,
341
+ error: n ?? void 0,
342
+ complete: r ?? void 0
343
+ };
344
+ else {
345
+ var o;
346
+ i && x.useDeprecatedNextContext ? (o = Object.create(t), o.unsubscribe = function() {
347
+ return i.unsubscribe();
348
+ }, a = {
349
+ next: t.next && D(t.next, o),
350
+ error: t.error && D(t.error, o),
351
+ complete: t.complete && D(t.complete, o)
352
+ }) : a = t;
353
+ }
354
+ return i.destination = new ce(a), i;
355
+ }
356
+ return t;
357
+ }(oe);
358
+ function k(e) {
359
+ x.useDeprecatedSynchronousErrorHandling ? ae(e) : te(e);
360
+ }
361
+ function le(e) {
362
+ throw e;
363
+ }
364
+ function A(e, t) {
365
+ var n = x.onStoppedNotification;
366
+ n && S.setTimeout(function() {
367
+ return n(e, t);
368
+ });
369
+ }
370
+ var ue = {
371
+ closed: !0,
372
+ next: C,
373
+ error: le,
374
+ complete: C
375
+ }, de = (function() {
376
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
381
377
  })();
382
- function T(t) {
383
- var e;
384
- return (e = t ?? ct.Promise) !== null && e !== void 0 ? e : Promise;
385
- }
386
- function mt(t) {
387
- return t && p(t.next) && p(t.error) && p(t.complete);
388
- }
389
- function bt(t) {
390
- return t && t instanceof Z || mt(t) && J(t);
391
- }
392
- var vt = K(function(t) {
393
- return function() {
394
- t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
395
- };
396
- }), z = (function(t) {
397
- m(e, t);
398
- function e() {
399
- var r = t.call(this) || this;
400
- return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
401
- }
402
- return e.prototype.lift = function(r) {
403
- var n = new V(this, this);
404
- return n.operator = r, n;
405
- }, e.prototype._throwIfClosed = function() {
406
- if (this.closed)
407
- throw new vt();
408
- }, e.prototype.next = function(r) {
409
- var n = this;
410
- E(function() {
411
- var o, i;
412
- if (n._throwIfClosed(), !n.isStopped) {
413
- n.currentObservers || (n.currentObservers = Array.from(n.observers));
414
- try {
415
- for (var s = O(n.currentObservers), u = s.next(); !u.done; u = s.next()) {
416
- var a = u.value;
417
- a.next(r);
418
- }
419
- } catch (C) {
420
- o = { error: C };
421
- } finally {
422
- try {
423
- u && !u.done && (i = s.return) && i.call(s);
424
- } finally {
425
- if (o) throw o.error;
426
- }
427
- }
428
- }
429
- });
430
- }, e.prototype.error = function(r) {
431
- var n = this;
432
- E(function() {
433
- if (n._throwIfClosed(), !n.isStopped) {
434
- n.hasError = n.isStopped = !0, n.thrownError = r;
435
- for (var o = n.observers; o.length; )
436
- o.shift().error(r);
437
- }
438
- });
439
- }, e.prototype.complete = function() {
440
- var r = this;
441
- E(function() {
442
- if (r._throwIfClosed(), !r.isStopped) {
443
- r.isStopped = !0;
444
- for (var n = r.observers; n.length; )
445
- n.shift().complete();
446
- }
447
- });
448
- }, e.prototype.unsubscribe = function() {
449
- this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
450
- }, Object.defineProperty(e.prototype, "observed", {
451
- get: function() {
452
- var r;
453
- return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
454
- },
455
- enumerable: !1,
456
- configurable: !0
457
- }), e.prototype._trySubscribe = function(r) {
458
- return this._throwIfClosed(), t.prototype._trySubscribe.call(this, r);
459
- }, e.prototype._subscribe = function(r) {
460
- return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
461
- }, e.prototype._innerSubscribe = function(r) {
462
- var n = this, o = this, i = o.hasError, s = o.isStopped, u = o.observers;
463
- return i || s ? X : (this.currentObservers = null, u.push(r), new _(function() {
464
- n.currentObservers = null, j(u, r);
465
- }));
466
- }, e.prototype._checkFinalizedStatuses = function(r) {
467
- var n = this, o = n.hasError, i = n.thrownError, s = n.isStopped;
468
- o ? r.error(i) : s && r.complete();
469
- }, e.prototype.asObservable = function() {
470
- var r = new L();
471
- return r.source = this, r;
472
- }, e.create = function(r, n) {
473
- return new V(r, n);
474
- }, e;
475
- })(L), V = (function(t) {
476
- m(e, t);
477
- function e(r, n) {
478
- var o = t.call(this) || this;
479
- return o.destination = r, o.source = n, o;
480
- }
481
- return e.prototype.next = function(r) {
482
- var n, o;
483
- (o = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || o === void 0 || o.call(n, r);
484
- }, e.prototype.error = function(r) {
485
- var n, o;
486
- (o = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || o === void 0 || o.call(n, r);
487
- }, e.prototype.complete = function() {
488
- var r, n;
489
- (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
490
- }, e.prototype._subscribe = function(r) {
491
- var n, o;
492
- return (o = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && o !== void 0 ? o : X;
493
- }, e;
494
- })(z), gt = (function(t) {
495
- m(e, t);
496
- function e(r) {
497
- var n = t.call(this) || this;
498
- return n._value = r, n;
499
- }
500
- return Object.defineProperty(e.prototype, "value", {
501
- get: function() {
502
- return this.getValue();
503
- },
504
- enumerable: !1,
505
- configurable: !0
506
- }), e.prototype._subscribe = function(r) {
507
- var n = t.prototype._subscribe.call(this, r);
508
- return !n.closed && r.next(this._value), n;
509
- }, e.prototype.getValue = function() {
510
- var r = this, n = r.hasError, o = r.thrownError, i = r._value;
511
- if (n)
512
- throw o;
513
- return this._throwIfClosed(), i;
514
- }, e.prototype.next = function(r) {
515
- t.prototype.next.call(this, this._value = r);
516
- }, e;
517
- })(z);
518
- function Et(t) {
519
- return t;
520
- }
521
- function l(t, e) {
522
- return (r, n) => {
523
- const o = St(
524
- r,
525
- n,
526
- t,
527
- e
528
- );
529
- o.length === 1 && _t(r, o);
530
- };
531
- }
532
- const F = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap();
533
- function St(t, e, r, n) {
534
- let o = F.get(t);
535
- return o || (o = [], F.set(t, o)), o.push({
536
- options: r,
537
- name: e,
538
- optionFactory: n.optionFactory || Et,
539
- service: {
540
- name: n.name,
541
- method: n.method || "subscribe"
542
- }
543
- }), o;
544
- }
545
- function _t(t, e) {
546
- t.connectedCallback = et(
547
- t.connectedCallback,
548
- e
549
- ), t.componentWillLoad = Ct(
550
- t.componentWillLoad,
551
- e
552
- ), t.componentDidUnload = U(
553
- t.componentDidUnload
554
- ), t.disconnectedCallback = U(
555
- t.disconnectedCallback
556
- );
557
- }
558
- function et(t, e) {
559
- return async function(...r) {
560
- tt.set(this, !0), S.set(this, []), await rt(this);
561
- const n = new gt(this.context);
562
- Rt(this, "context", n);
563
- for (const o of e)
564
- o.options = o.optionFactory(o.options, this), wt(o.options) && (o.options.context = n), At(this, o);
565
- if (t)
566
- return t.apply(this, r);
567
- };
568
- }
569
- function Ct(t, e) {
570
- return async function(...r) {
571
- return tt.get(this) === !0 ? (await rt(this), t ? t.apply(this, r) : void 0) : et(t, e).apply(this, r);
572
- };
573
- }
574
- function U(t) {
575
- return async function(...e) {
576
- let r;
577
- return t && (r = t.apply(this, e)), Ot(this), r;
578
- };
579
- }
580
- function wt(t) {
581
- return "context" in t;
582
- }
583
- function rt(t) {
584
- const e = [];
585
- return t.platform || e.push(k(t, "platform")), t.context || e.push(k(t, "context")), e.length === 0 ? Promise.resolve() : Promise.all(e);
586
- }
587
- function k(t, e) {
588
- const r = q(t);
589
- return new Promise((n) => {
590
- Object.defineProperty(r, e, {
591
- configurable: !0,
592
- set: (o) => {
593
- delete r[e], r[e] = o, n();
594
- }
595
- });
596
- });
597
- }
598
- function Rt(t, e, r) {
599
- const n = q(t), { get: o, set: i } = Object.getOwnPropertyDescriptor(
600
- Object.getPrototypeOf(n),
601
- e
602
- );
603
- Object.defineProperty(n, e, {
604
- configurable: !0,
605
- get: o,
606
- set: function(s) {
607
- i.call(this, s), r.next(s);
608
- }
609
- });
610
- }
611
- function At(t, e) {
612
- const r = It(t, e);
613
- if (typeof r != "function")
614
- return;
615
- S.get(t).push(r);
616
- }
617
- function Ot(t) {
618
- const e = S.get(t);
619
- for (const r of e) r();
620
- S.set(t, []);
621
- }
622
- function Pt(t, e) {
623
- return (r) => {
624
- t[e] = r;
625
- };
626
- }
627
- function It(t, e) {
628
- const r = { ...e.options };
629
- jt(r, t);
630
- const n = e.service.name, o = t.platform;
631
- if (!o.has(n))
632
- throw new Error(`Service ${n} does not exist`);
633
- return o.get(n)[e.service.method](
634
- Pt(t, e.name),
635
- r
636
- );
637
- }
638
- function jt(t, e) {
639
- t.filter && (t.filter = t.filter.map((r) => r.bind(e))), t.map && (t.map = t.map.map((r) => r.bind(e)));
640
- }
641
- function Ze(t = {}) {
642
- const e = {
643
- name: c.LimeTypeRepository
644
- };
645
- return l(t, e);
646
- }
647
- function ze(t = {}) {
648
- const e = {
649
- name: c.LimeTypeRepository
650
- };
651
- return t.map = [xt, ...t.map || []], t.context = null, l(t, e);
652
- }
653
- function xt(t) {
654
- const { limetype: e } = this.context;
655
- return t[e];
656
- }
657
- const tr = (t) => (e) => Object.values(e).find(nt(t));
658
- function er(t, e) {
659
- return Object.values(t.properties).filter(
660
- (r) => r.type === e
661
- );
662
- }
663
- function rr(t, e) {
664
- return Object.values(t.properties).find(nt(e));
665
- }
666
- function nr(t, e) {
667
- return t.properties[e];
668
- }
669
- const nt = (t) => (e) => e?.label === t, Mt = "state.limeobjects";
670
- c.LimeObjectRepository = Mt;
671
- function or(t = {}) {
672
- const e = {
673
- name: c.LimeObjectRepository,
674
- optionFactory: Dt
675
- };
676
- return l(t, e);
677
- }
678
- function ir(t = {}) {
679
- const e = {
680
- name: c.LimeObjectRepository
681
- };
682
- return t.map = [Nt, ...t.map || []], t.context = null, l(t, e);
683
- }
684
- function Nt(t) {
685
- const { limetype: e, id: r } = this.context;
686
- if (t[e])
687
- return t[e].find((n) => n.id === r);
688
- }
689
- function Dt(t, e) {
690
- return t.getLimetype && (t.limetype = t.getLimetype(e)), t;
691
- }
692
- var $t = /* @__PURE__ */ ((t) => (t.Received = "command.received", t.Handled = "command.handled", t.Failed = "command.failed", t))($t || {});
693
- function d(t) {
694
- return (e) => {
695
- Lt(e, t.id), Tt(e, t.id);
696
- };
697
- }
698
- function Lt(t, e) {
699
- t.commandId = e;
700
- }
701
- function Tt(t, e) {
702
- Object.defineProperty(t, Symbol.hasInstance, {
703
- value: (r) => Ft(r).includes(e)
704
- });
705
- }
706
- function Vt(t) {
707
- return typeof t == "string" ? t : t && t.constructor && t.constructor.commandId ? t.constructor.commandId : t && t.commandId ? t.commandId : null;
708
- }
709
- function Ft(t) {
710
- let e = [], r, n = t;
711
- for (; r = Vt(n); )
712
- e = [...e, r], n = Object.getPrototypeOf(n);
713
- return [...new Set(e)];
714
- }
715
- const Ut = "commandBus";
716
- c.CommandBus = Ut;
717
- var kt = Object.getOwnPropertyDescriptor, Bt = (t, e, r, n) => {
718
- for (var o = n > 1 ? void 0 : n ? kt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
719
- (s = t[i]) && (o = s(o) || o);
720
- return o;
378
+ //#endregion
379
+ //#region node_modules/rxjs/dist/esm5/internal/util/identity.js
380
+ function fe(e) {
381
+ return e;
382
+ }
383
+ //#endregion
384
+ //#region node_modules/rxjs/dist/esm5/internal/util/pipe.js
385
+ function pe(e) {
386
+ return e.length === 0 ? fe : e.length === 1 ? e[0] : function(t) {
387
+ return e.reduce(function(e, t) {
388
+ return t(e);
389
+ }, t);
390
+ };
391
+ }
392
+ //#endregion
393
+ //#region node_modules/rxjs/dist/esm5/internal/Observable.js
394
+ var j = function() {
395
+ function e(e) {
396
+ e && (this._subscribe = e);
397
+ }
398
+ return e.prototype.lift = function(t) {
399
+ var n = new e();
400
+ return n.source = this, n.operator = t, n;
401
+ }, e.prototype.subscribe = function(e, t, n) {
402
+ var r = this, i = he(e) ? e : new O(e, t, n);
403
+ return E(function() {
404
+ var e = r, t = e.operator, n = e.source;
405
+ i.add(t ? t.call(i, n) : n ? r._subscribe(i) : r._trySubscribe(i));
406
+ }), i;
407
+ }, e.prototype._trySubscribe = function(e) {
408
+ try {
409
+ return this._subscribe(e);
410
+ } catch (t) {
411
+ e.error(t);
412
+ }
413
+ }, e.prototype.forEach = function(e, t) {
414
+ var n = this;
415
+ return t = M(t), new t(function(t, r) {
416
+ var i = new O({
417
+ next: function(t) {
418
+ try {
419
+ e(t);
420
+ } catch (e) {
421
+ r(e), i.unsubscribe();
422
+ }
423
+ },
424
+ error: r,
425
+ complete: t
426
+ });
427
+ n.subscribe(i);
428
+ });
429
+ }, e.prototype._subscribe = function(e) {
430
+ return this.source?.subscribe(e);
431
+ }, e.prototype[de] = function() {
432
+ return this;
433
+ }, e.prototype.pipe = function() {
434
+ return pe([...arguments])(this);
435
+ }, e.prototype.toPromise = function(e) {
436
+ var t = this;
437
+ return e = M(e), new e(function(e, n) {
438
+ var r;
439
+ t.subscribe(function(e) {
440
+ return r = e;
441
+ }, function(e) {
442
+ return n(e);
443
+ }, function() {
444
+ return e(r);
445
+ });
446
+ });
447
+ }, e.create = function(t) {
448
+ return new e(t);
449
+ }, e;
450
+ }();
451
+ function M(e) {
452
+ return e ?? x.Promise ?? Promise;
453
+ }
454
+ function me(e) {
455
+ return e && m(e.next) && m(e.error) && m(e.complete);
456
+ }
457
+ function he(e) {
458
+ return e && e instanceof oe || me(e) && y(e);
459
+ }
460
+ //#endregion
461
+ //#region node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js
462
+ var ge = h(function(e) {
463
+ return function() {
464
+ e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
465
+ };
466
+ }), N = function(e) {
467
+ u(t, e);
468
+ function t() {
469
+ var t = e.call(this) || this;
470
+ return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
471
+ }
472
+ return t.prototype.lift = function(e) {
473
+ var t = new P(this, this);
474
+ return t.operator = e, t;
475
+ }, t.prototype._throwIfClosed = function() {
476
+ if (this.closed) throw new ge();
477
+ }, t.prototype.next = function(e) {
478
+ var t = this;
479
+ E(function() {
480
+ var n, r;
481
+ if (t._throwIfClosed(), !t.isStopped) {
482
+ t.currentObservers ||= Array.from(t.observers);
483
+ try {
484
+ for (var i = d(t.currentObservers), a = i.next(); !a.done; a = i.next()) a.value.next(e);
485
+ } catch (e) {
486
+ n = { error: e };
487
+ } finally {
488
+ try {
489
+ a && !a.done && (r = i.return) && r.call(i);
490
+ } finally {
491
+ if (n) throw n.error;
492
+ }
493
+ }
494
+ }
495
+ });
496
+ }, t.prototype.error = function(e) {
497
+ var t = this;
498
+ E(function() {
499
+ if (t._throwIfClosed(), !t.isStopped) {
500
+ t.hasError = t.isStopped = !0, t.thrownError = e;
501
+ for (var n = t.observers; n.length;) n.shift().error(e);
502
+ }
503
+ });
504
+ }, t.prototype.complete = function() {
505
+ var e = this;
506
+ E(function() {
507
+ if (e._throwIfClosed(), !e.isStopped) {
508
+ e.isStopped = !0;
509
+ for (var t = e.observers; t.length;) t.shift().complete();
510
+ }
511
+ });
512
+ }, t.prototype.unsubscribe = function() {
513
+ this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
514
+ }, Object.defineProperty(t.prototype, "observed", {
515
+ get: function() {
516
+ return this.observers?.length > 0;
517
+ },
518
+ enumerable: !1,
519
+ configurable: !0
520
+ }), t.prototype._trySubscribe = function(t) {
521
+ return this._throwIfClosed(), e.prototype._trySubscribe.call(this, t);
522
+ }, t.prototype._subscribe = function(e) {
523
+ return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
524
+ }, t.prototype._innerSubscribe = function(e) {
525
+ var t = this, n = this, r = n.hasError, i = n.isStopped, a = n.observers;
526
+ return r || i ? ee : (this.currentObservers = null, a.push(e), new v(function() {
527
+ t.currentObservers = null, _(a, e);
528
+ }));
529
+ }, t.prototype._checkFinalizedStatuses = function(e) {
530
+ var t = this, n = t.hasError, r = t.thrownError, i = t.isStopped;
531
+ n ? e.error(r) : i && e.complete();
532
+ }, t.prototype.asObservable = function() {
533
+ var e = new j();
534
+ return e.source = this, e;
535
+ }, t.create = function(e, t) {
536
+ return new P(e, t);
537
+ }, t;
538
+ }(j), P = function(e) {
539
+ u(t, e);
540
+ function t(t, n) {
541
+ var r = e.call(this) || this;
542
+ return r.destination = t, r.source = n, r;
543
+ }
544
+ return t.prototype.next = function(e) {
545
+ var t, n;
546
+ (n = (t = this.destination)?.next) == null || n.call(t, e);
547
+ }, t.prototype.error = function(e) {
548
+ var t, n;
549
+ (n = (t = this.destination)?.error) == null || n.call(t, e);
550
+ }, t.prototype.complete = function() {
551
+ var e, t;
552
+ (t = (e = this.destination)?.complete) == null || t.call(e);
553
+ }, t.prototype._subscribe = function(e) {
554
+ return this.source?.subscribe(e) ?? ee;
555
+ }, t;
556
+ }(N), _e = function(e) {
557
+ u(t, e);
558
+ function t(t) {
559
+ var n = e.call(this) || this;
560
+ return n._value = t, n;
561
+ }
562
+ return Object.defineProperty(t.prototype, "value", {
563
+ get: function() {
564
+ return this.getValue();
565
+ },
566
+ enumerable: !1,
567
+ configurable: !0
568
+ }), t.prototype._subscribe = function(t) {
569
+ var n = e.prototype._subscribe.call(this, t);
570
+ return !n.closed && t.next(this._value), n;
571
+ }, t.prototype.getValue = function() {
572
+ var e = this, t = e.hasError, n = e.thrownError, r = e._value;
573
+ if (t) throw n;
574
+ return this._throwIfClosed(), r;
575
+ }, t.prototype.next = function(t) {
576
+ e.prototype.next.call(this, this._value = t);
577
+ }, t;
578
+ }(N);
579
+ //#endregion
580
+ //#region src/core/decorators/factory.ts
581
+ function ve(e) {
582
+ return e;
583
+ }
584
+ function F(e, t) {
585
+ return (n, r) => {
586
+ let i = be(n, r, e, t);
587
+ i.length === 1 && xe(n, i);
588
+ };
589
+ }
590
+ var I = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap();
591
+ function be(e, t, n, r) {
592
+ let i = I.get(e);
593
+ return i || (i = [], I.set(e, i)), i.push({
594
+ options: n,
595
+ name: t,
596
+ optionFactory: r.optionFactory || ve,
597
+ service: {
598
+ name: r.name,
599
+ method: r.method || "subscribe"
600
+ }
601
+ }), i;
602
+ }
603
+ function xe(e, t) {
604
+ e.connectedCallback = Se(e.connectedCallback, t), e.componentWillLoad = Ce(e.componentWillLoad, t), e.componentDidUnload = R(e.componentDidUnload), e.disconnectedCallback = R(e.disconnectedCallback);
605
+ }
606
+ function Se(e, t) {
607
+ return async function(...n) {
608
+ ye.set(this, !0), L.set(this, []), await z(this);
609
+ let r = new _e(this.context);
610
+ Te(this, "context", r);
611
+ for (let e of t) e.options = e.optionFactory(e.options, this), we(e.options) && (e.options.context = r), Ee(this, e);
612
+ if (e) return e.apply(this, n);
613
+ };
614
+ }
615
+ function Ce(e, t) {
616
+ return async function(...n) {
617
+ return ye.get(this) === !0 ? (await z(this), e ? e.apply(this, n) : void 0) : Se(e, t).apply(this, n);
618
+ };
619
+ }
620
+ function R(e) {
621
+ return async function(...t) {
622
+ let n;
623
+ return e && (n = e.apply(this, t)), De(this), n;
624
+ };
625
+ }
626
+ function we(e) {
627
+ return "context" in e;
628
+ }
629
+ function z(e) {
630
+ let t = [];
631
+ return e.platform || t.push(B(e, "platform")), e.context || t.push(B(e, "context")), t.length === 0 ? Promise.resolve() : Promise.all(t);
632
+ }
633
+ function B(t, n) {
634
+ let r = e(t);
635
+ return new Promise((e) => {
636
+ Object.defineProperty(r, n, {
637
+ configurable: !0,
638
+ set: (t) => {
639
+ delete r[n], r[n] = t, e();
640
+ }
641
+ });
642
+ });
643
+ }
644
+ function Te(t, n, r) {
645
+ let i = e(t), { get: a, set: o } = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i), n);
646
+ Object.defineProperty(i, n, {
647
+ configurable: !0,
648
+ get: a,
649
+ set: function(e) {
650
+ o.call(this, e), r.next(e);
651
+ }
652
+ });
653
+ }
654
+ function Ee(e, t) {
655
+ let n = ke(e, t);
656
+ typeof n == "function" && L.get(e).push(n);
657
+ }
658
+ function De(e) {
659
+ let t = L.get(e);
660
+ for (let e of t) e();
661
+ L.set(e, []);
662
+ }
663
+ function Oe(e, t) {
664
+ return (n) => {
665
+ e[t] = n;
666
+ };
667
+ }
668
+ function ke(e, t) {
669
+ let n = { ...t.options };
670
+ Ae(n, e);
671
+ let r = t.service.name, i = e.platform;
672
+ if (!i.has(r)) throw Error(`Service ${r} does not exist`);
673
+ return i.get(r)[t.service.method](Oe(e, t.name), n);
674
+ }
675
+ function Ae(e, t) {
676
+ e.filter &&= e.filter.map((e) => e.bind(t)), e.map &&= e.map.map((e) => e.bind(t));
677
+ }
678
+ //#endregion
679
+ //#region src/limetype/decorator.ts
680
+ function je(e = {}) {
681
+ return F(e, { name: n.LimeTypeRepository });
682
+ }
683
+ function Me(e = {}) {
684
+ let t = { name: n.LimeTypeRepository };
685
+ return e.map = [Ne, ...e.map || []], e.context = null, F(e, t);
686
+ }
687
+ function Ne(e) {
688
+ let { limetype: t } = this.context;
689
+ return e[t];
690
+ }
691
+ //#endregion
692
+ //#region src/limetype/find-limetype-by-label.ts
693
+ var Pe = (e) => (t) => Object.values(t).find(V(e));
694
+ //#endregion
695
+ //#region src/limetype/get-properties-by-type.ts
696
+ function Fe(e, t) {
697
+ return Object.values(e.properties).filter((e) => e.type === t);
698
+ }
699
+ //#endregion
700
+ //#region src/limetype/get-property-by-label.ts
701
+ function Ie(e, t) {
702
+ return Object.values(e.properties).find(V(t));
703
+ }
704
+ //#endregion
705
+ //#region src/limetype/get-property-by-name.ts
706
+ function Le(e, t) {
707
+ return e.properties[t];
708
+ }
709
+ //#endregion
710
+ //#region src/limetype/has-label.ts
711
+ var V = (e) => (t) => t?.label === e;
712
+ //#endregion
713
+ //#region src/limeobject/types.ts
714
+ n.LimeObjectRepository = "state.limeobjects";
715
+ //#endregion
716
+ //#region src/limeobject/decorator.ts
717
+ function Re(e = {}) {
718
+ return F(e, {
719
+ name: n.LimeObjectRepository,
720
+ optionFactory: Ve
721
+ });
722
+ }
723
+ function ze(e = {}) {
724
+ let t = { name: n.LimeObjectRepository };
725
+ return e.map = [Be, ...e.map || []], e.context = null, F(e, t);
726
+ }
727
+ function Be(e) {
728
+ let { limetype: t, id: n } = this.context;
729
+ if (e[t]) return e[t].find((e) => e.id === n);
730
+ }
731
+ function Ve(e, t) {
732
+ return e.getLimetype && (e.limetype = e.getLimetype(t)), e;
733
+ }
734
+ //#endregion
735
+ //#region src/commandbus/commandbus.ts
736
+ var He = /* @__PURE__ */ function(e) {
737
+ return e.Received = "command.received", e.Handled = "command.handled", e.Failed = "command.failed", e;
738
+ }({});
739
+ function H(e) {
740
+ return (t) => {
741
+ Ue(t, e.id), We(t, e.id);
742
+ };
743
+ }
744
+ function Ue(e, t) {
745
+ e.commandId = t;
746
+ }
747
+ function We(e, t) {
748
+ Object.defineProperty(e, Symbol.hasInstance, { value: (e) => W(e).includes(t) });
749
+ }
750
+ function U(e) {
751
+ return typeof e == "string" ? e : e && e.constructor && e.constructor.commandId ? e.constructor.commandId : e && e.commandId ? e.commandId : null;
752
+ }
753
+ function W(e) {
754
+ let t = [], n, r = e;
755
+ for (; n = U(r);) t = [...t, n], r = Object.getPrototypeOf(r);
756
+ return [...new Set(t)];
757
+ }
758
+ //#endregion
759
+ //#region src/commandbus/types.ts
760
+ n.CommandBus = "commandBus";
761
+ //#endregion
762
+ //#region \0@oxc-project+runtime@0.122.0/helpers/decorate.js
763
+ function G(e, t, n, r) {
764
+ var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
765
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
766
+ else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
767
+ return i > 3 && a && Object.defineProperty(t, n, a), a;
768
+ }
769
+ //#endregion
770
+ //#region src/limeobject/commands/bulk-create-dialog.ts
771
+ var Ge = "limeobject.bulk-create-dialog", K = class {
772
+ context;
773
+ filter;
774
+ relation;
721
775
  };
722
- const Ht = "limeobject.bulk-create-dialog";
723
- let B = class {
724
- context;
725
- /**
726
- * A query describing what limeobjects to create new limeobjects from. Each object from the result will result in a
727
- * new related limeobject to be created
728
- */
729
- filter;
730
- /**
731
- * The name of the relation on the limetype to create objects of
732
- */
733
- relation;
776
+ K = G([H({ id: Ge })], K);
777
+ //#endregion
778
+ //#region src/limeobject/commands/create-dialog.ts
779
+ var Ke = "limeobject.create-dialog", q = class {
780
+ limetype;
781
+ limeobject;
782
+ route = !1;
783
+ title;
784
+ subtitle;
785
+ context;
786
+ autoAttachRelation;
787
+ saveCommand;
734
788
  };
735
- B = Bt([
736
- d({
737
- id: Ht
738
- })
739
- ], B);
740
- var Wt = Object.getOwnPropertyDescriptor, Gt = (t, e, r, n) => {
741
- for (var o = n > 1 ? void 0 : n ? Wt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
742
- (s = t[i]) && (o = s(o) || o);
743
- return o;
789
+ q = G([H({ id: Ke })], q);
790
+ //#endregion
791
+ //#region src/limeobject/commands/delete-object.ts
792
+ var qe = "limeobject.delete-object", J = class {
793
+ context;
744
794
  };
745
- const Qt = "limeobject.create-dialog";
746
- let H = class {
747
- /**
748
- * The limetype of the object to create
749
- */
750
- limetype;
751
- /**
752
- * Default data to populate the form with
753
- */
754
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
755
- limeobject;
756
- /**
757
- * Specifies if routing to limeobject should be done after confirmation
758
- */
759
- route = !1;
760
- /*
761
- * Title of the dialog
762
- */
763
- title;
764
- /*
765
- * Subtitle of the dialog
766
- */
767
- subtitle;
768
- /*
769
- * Current context
770
- */
771
- context;
772
- /**
773
- * When `context` is used, this is the name of the relation on the
774
- * reference {@link LimeObject} to use when auto attaching the new object.
775
- *
776
- */
777
- autoAttachRelation;
778
- /**
779
- * Specifies any command that can be used to save the result of the dialog.
780
- * If not specified, it will default to the {@link SaveLimeObjectCommand}
781
- */
782
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
783
- saveCommand;
795
+ J = G([H({ id: qe })], J);
796
+ //#endregion
797
+ //#region src/limeobject/commands/object-access.ts
798
+ var Je = "limeobject.object-access", Y = class {
799
+ context;
784
800
  };
785
- H = Gt([
786
- d({
787
- id: Qt
788
- })
789
- ], H);
790
- var Yt = Object.getOwnPropertyDescriptor, qt = (t, e, r, n) => {
791
- for (var o = n > 1 ? void 0 : n ? Yt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
792
- (s = t[i]) && (o = s(o) || o);
793
- return o;
801
+ Y = G([H({ id: Je })], Y);
802
+ //#endregion
803
+ //#region src/limeobject/commands/save-object.ts
804
+ var Ye = "limeobject.save-object", X = class {
805
+ context;
806
+ limeobject;
807
+ route = !1;
808
+ label;
794
809
  };
795
- const Kt = "limeobject.delete-object";
796
- let W = class {
797
- context;
810
+ X = G([H({ id: Ye })], X);
811
+ //#endregion
812
+ //#region src/query/query.ts
813
+ var Xe = /* @__PURE__ */ function(e) {
814
+ return e.AND = "AND", e.OR = "OR", e.NOT = "!", e.EQUALS = "=", e.NOT_EQUALS = "!=", e.GREATER = ">", e.LESS = "<", e.IN = "IN", e.BEGINS = "=?", e.LIKE = "?", e.LESS_OR_EQUAL = "<=", e.GREATER_OR_EQUAL = ">=", e.ENDS = "=$", e;
815
+ }({}), Ze = {
816
+ Count: "COUNT",
817
+ Sum: "SUM",
818
+ Average: "AVG",
819
+ Maximum: "MAX",
820
+ Minimum: "MIN"
798
821
  };
799
- W = qt([
800
- d({
801
- id: Kt
802
- })
803
- ], W);
804
- var Xt = Object.getOwnPropertyDescriptor, Jt = (t, e, r, n) => {
805
- for (var o = n > 1 ? void 0 : n ? Xt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
806
- (s = t[i]) && (o = s(o) || o);
807
- return o;
822
+ //#endregion
823
+ //#region src/query/types.ts
824
+ n.Query = "query";
825
+ //#endregion
826
+ //#region src/http/http.ts
827
+ var Qe = {
828
+ Get: "GET",
829
+ Post: "POST",
830
+ Put: "PUT",
831
+ Delete: "DELETE",
832
+ Patch: "PATCH"
808
833
  };
809
- const Zt = "limeobject.object-access";
810
- let G = class {
811
- context;
834
+ //#endregion
835
+ //#region src/navigator/types.ts
836
+ n.Http = "http", n.EventDispatcher = "eventDispatcher", n.Translate = "translate", n.Dialog = "dialog", n.KeybindingRegistry = "keybindingRegistry", n.Navigator = "navigator";
837
+ //#endregion
838
+ //#region src/navigator/decorator.ts
839
+ function $e(e) {
840
+ let t = { name: n.Navigator };
841
+ return F({
842
+ context: null,
843
+ ...e
844
+ }, t);
845
+ }
846
+ //#endregion
847
+ //#region src/navigator/command.ts
848
+ var et = "navigator.navigate", Z = class {
849
+ path;
850
+ query;
851
+ hash;
852
+ state;
812
853
  };
813
- G = Jt([
814
- d({
815
- id: Zt
816
- })
817
- ], G);
818
- var zt = Object.getOwnPropertyDescriptor, te = (t, e, r, n) => {
819
- for (var o = n > 1 ? void 0 : n ? zt(e, r) : e, i = t.length - 1, s; i >= 0; i--)
820
- (s = t[i]) && (o = s(o) || o);
821
- return o;
854
+ //#endregion
855
+ //#region src/routeregistry/types.ts
856
+ Z = G([H({ id: et })], Z), n.Notification = "notifications", n.RouteRegistry = "routeRegistry";
857
+ //#endregion
858
+ //#region src/task/repository.ts
859
+ var tt = /* @__PURE__ */ function(e) {
860
+ return e.Pending = "PENDING", e.Started = "STARTED", e.Retry = "RETRY", e.Success = "SUCCESS", e.Failure = "FAILURE", e;
861
+ }({}), nt = /* @__PURE__ */ function(e) {
862
+ return e.Created = "task.created", e.Success = "task.success", e.Failed = "task.failed", e;
863
+ }({});
864
+ //#endregion
865
+ //#region src/config/types.ts
866
+ n.TaskRepository = "state.tasks", n.ConfigRepository = "state.configs";
867
+ //#endregion
868
+ //#region src/config/decorator.ts
869
+ function rt(e) {
870
+ return F(e, { name: n.ConfigRepository });
871
+ }
872
+ //#endregion
873
+ //#region src/device/types.ts
874
+ n.Device = "state.device";
875
+ //#endregion
876
+ //#region src/device/decorator.ts
877
+ function it(e = {}) {
878
+ return F(e, { name: n.Device });
879
+ }
880
+ //#endregion
881
+ //#region src/filter/types.ts
882
+ n.FilterRepository = "state.filters";
883
+ //#endregion
884
+ //#region src/filter/decorator.ts
885
+ function at(e = {}) {
886
+ return F(e, { name: n.FilterRepository });
887
+ }
888
+ //#endregion
889
+ //#region src/userdata/types.ts
890
+ n.UserDataRepository = "state.user-data";
891
+ //#endregion
892
+ //#region src/userdata/decorator.ts
893
+ function ot(e = {}) {
894
+ return F(e, { name: n.UserDataRepository });
895
+ }
896
+ //#endregion
897
+ //#region src/application/types.ts
898
+ n.Application = "state.application";
899
+ //#endregion
900
+ //#region src/application/decorators/application.ts
901
+ function st(e = {}) {
902
+ let t = { name: n.Application };
903
+ return e.map = [ct, ...e.map || []], F(e, t);
904
+ }
905
+ function ct(e) {
906
+ return e.applicationName;
907
+ }
908
+ //#endregion
909
+ //#region src/application/decorators/user.ts
910
+ function lt(e = {}) {
911
+ let t = { name: n.Application };
912
+ return e.map = [ut, ...e.map || []], F(e, t);
913
+ }
914
+ function ut(e) {
915
+ return e.currentUser;
916
+ }
917
+ //#endregion
918
+ //#region src/application/decorators/session.ts
919
+ function dt(e = {}) {
920
+ let t = { name: n.Application };
921
+ return e.map = [ft, ...e.map || []], F(e, t);
922
+ }
923
+ function ft(e) {
924
+ return e.session;
925
+ }
926
+ //#endregion
927
+ //#region src/datetimeformatter/types.ts
928
+ n.UserPreferencesRepository = "userPreferences", n.DateTimeFormatter = "datetimeformatter";
929
+ //#endregion
930
+ //#region src/conditionregistry/conditionregistry.ts
931
+ function pt(e) {
932
+ return e.type === "limeobject";
933
+ }
934
+ function mt(e) {
935
+ return e.type === "action";
936
+ }
937
+ //#endregion
938
+ //#region src/poller/types.ts
939
+ n.ConditionRegistry = "conditionRegistry", n.ViewFactoryRegistry = "viewFactoryRegistry", n.WebComponentRegistry = "webComponentRegistry", n.NotificationRepository = "state.notifications", n.PollerFactory = "pollerFactory";
940
+ //#endregion
941
+ //#region src/logger/logger.ts
942
+ var ht = {
943
+ Debug: "debug",
944
+ Info: "info",
945
+ Warn: "warn",
946
+ Error: "error"
822
947
  };
823
- const ee = "limeobject.save-object";
824
- let Q = class {
825
- context;
826
- /**
827
- * The limeobject to save
828
- */
829
- limeobject;
830
- /**
831
- * Specifies if routing to limeobject should be done after confirmation
832
- */
833
- route = !1;
834
- /**
835
- * @beta
836
- * Specifies an optional save label to be displayed in the create-object dialog
837
- */
838
- label;
948
+ //#endregion
949
+ //#region src/logger/types.ts
950
+ n.Logger = "logger";
951
+ //#endregion
952
+ //#region src/logger/factory.ts
953
+ var Q, $;
954
+ function gt(e) {
955
+ let t = window.Lime?.logger?.createLogger;
956
+ return typeof t == "function" ? ($ === void 0 && ($ = yt(_t())), $ && (e = `${$}:${e}`), t(e)) : (console.warn(`Logger factory is not configured. Returning console logger for scope "${e}".`), console);
957
+ }
958
+ function _t() {
959
+ return Q === void 0 ? typeof import.meta.url == "string" ? (Q = import.meta.url, Q) : (Q = vt(), Q) : Q;
960
+ }
961
+ function vt() {
962
+ try {
963
+ let e = (/* @__PURE__ */ Error(".")).stack;
964
+ if (!e) return null;
965
+ let t = e.split("\n");
966
+ for (let e of t) {
967
+ let t = e.match(/(https?:\/\/[^)\s:]+)/);
968
+ if (t) return t[1];
969
+ }
970
+ return null;
971
+ } catch {
972
+ return null;
973
+ }
974
+ }
975
+ function yt(e) {
976
+ return e && (bt(e) || xt(e) || St(e) || Ct(e)) || null;
977
+ }
978
+ function bt(e) {
979
+ let t = e.match(/\/([^/]+)-lwc-components\//);
980
+ return t ? t[1] : null;
981
+ }
982
+ function xt(e) {
983
+ let t = e.match(/\/packages\/(?:@[^/]+\/)?([^/]+)/);
984
+ return t ? t[1] : null;
985
+ }
986
+ function St(e) {
987
+ let t = e.indexOf("+");
988
+ if (t === -1) return null;
989
+ let n = e.slice(0, t), r = n.lastIndexOf("/");
990
+ return r === -1 ? null : n.slice(r + 1);
991
+ }
992
+ function Ct(e) {
993
+ let t = e.match(/\/static\/([^/]+)\//);
994
+ return t ? t[1] : null;
995
+ }
996
+ //#endregion
997
+ //#region src/problem/problem.ts
998
+ var wt = {
999
+ Low: "low",
1000
+ Medium: "medium",
1001
+ High: "high",
1002
+ Critical: "critical"
839
1003
  };
840
- Q = te([
841
- d({
842
- id: ee
843
- })
844
- ], Q);
845
- var re = /* @__PURE__ */ ((t) => (t.AND = "AND", t.OR = "OR", t.NOT = "!", t.EQUALS = "=", t.NOT_EQUALS = "!=", t.GREATER = ">", t.LESS = "<", t.IN = "IN", t.BEGINS = "=?", t.LIKE = "?", t.LESS_OR_EQUAL = "<=", t.GREATER_OR_EQUAL = ">=", t.ENDS = "=$", t))(re || {});
846
- const sr = {
847
- Count: "COUNT",
848
- Sum: "SUM",
849
- Average: "AVG",
850
- Maximum: "MAX",
851
- Minimum: "MIN"
852
- }, ne = "query";
853
- c.Query = ne;
854
- const cr = {
855
- Get: "GET",
856
- Post: "POST",
857
- Put: "PUT",
858
- Delete: "DELETE",
859
- Patch: "PATCH"
860
- }, oe = "http";
861
- c.Http = oe;
862
- const ie = "eventDispatcher";
863
- c.EventDispatcher = ie;
864
- const se = "translate";
865
- c.Translate = se;
866
- const ce = "dialog";
867
- c.Dialog = ce;
868
- const ue = "keybindingRegistry";
869
- c.KeybindingRegistry = ue;
870
- const ae = "navigator";
871
- c.Navigator = ae;
872
- function ur(t) {
873
- const e = {
874
- name: c.Navigator
875
- };
876
- return l({ context: null, ...t }, e);
877
- }
878
- var le = Object.getOwnPropertyDescriptor, fe = (t, e, r, n) => {
879
- for (var o = n > 1 ? void 0 : n ? le(e, r) : e, i = t.length - 1, s; i >= 0; i--)
880
- (s = t[i]) && (o = s(o) || o);
881
- return o;
882
- };
883
- const pe = "navigator.navigate";
884
- let Y = class {
885
- path;
886
- query;
887
- hash;
888
- state;
889
- };
890
- Y = fe([
891
- d({
892
- id: pe
893
- })
894
- ], Y);
895
- const he = "notifications";
896
- c.Notification = he;
897
- const de = "routeRegistry";
898
- c.RouteRegistry = de;
899
- var ye = /* @__PURE__ */ ((t) => (t.Pending = "PENDING", t.Started = "STARTED", t.Retry = "RETRY", t.Success = "SUCCESS", t.Failure = "FAILURE", t))(ye || {}), me = /* @__PURE__ */ ((t) => (t.Created = "task.created", t.Success = "task.success", t.Failed = "task.failed", t))(me || {});
900
- const be = "state.tasks";
901
- c.TaskRepository = be;
902
- const ve = "state.configs";
903
- c.ConfigRepository = ve;
904
- function ar(t) {
905
- const e = {
906
- name: c.ConfigRepository
907
- };
908
- return l(t, e);
909
- }
910
- const ge = "state.device";
911
- c.Device = ge;
912
- function lr(t = {}) {
913
- const e = {
914
- name: c.Device
915
- };
916
- return l(t, e);
917
- }
918
- const Ee = "state.filters";
919
- c.FilterRepository = Ee;
920
- function fr(t = {}) {
921
- const e = {
922
- name: c.FilterRepository
923
- };
924
- return l(t, e);
925
- }
926
- const Se = "state.user-data";
927
- c.UserDataRepository = Se;
928
- function pr(t = {}) {
929
- const e = {
930
- name: c.UserDataRepository
931
- };
932
- return l(t, e);
933
- }
934
- const _e = "state.application";
935
- c.Application = _e;
936
- function hr(t = {}) {
937
- const e = {
938
- name: c.Application
939
- };
940
- return t.map = [Ce, ...t.map || []], l(t, e);
941
- }
942
- function Ce(t) {
943
- return t.applicationName;
944
- }
945
- function dr(t = {}) {
946
- const e = {
947
- name: c.Application
948
- };
949
- return t.map = [we, ...t.map || []], l(t, e);
950
- }
951
- function we(t) {
952
- return t.currentUser;
953
- }
954
- function yr(t = {}) {
955
- const e = {
956
- name: c.Application
957
- };
958
- return t.map = [Re, ...t.map || []], l(t, e);
959
- }
960
- function Re(t) {
961
- return t.session;
962
- }
963
- const Ae = "userPreferences";
964
- c.UserPreferencesRepository = Ae;
965
- const Oe = "datetimeformatter";
966
- c.DateTimeFormatter = Oe;
967
- function mr(t) {
968
- return t.type === "limeobject";
969
- }
970
- function br(t) {
971
- return t.type === "action";
972
- }
973
- const Pe = "conditionRegistry";
974
- c.ConditionRegistry = Pe;
975
- const Ie = "viewFactoryRegistry";
976
- c.ViewFactoryRegistry = Ie;
977
- const je = "webComponentRegistry";
978
- c.WebComponentRegistry = je;
979
- const xe = "state.notifications";
980
- c.NotificationRepository = xe;
981
- const Me = "pollerFactory";
982
- c.PollerFactory = Me;
983
- const vr = {
984
- Debug: "debug",
985
- Info: "info",
986
- Warn: "warn",
987
- Error: "error"
988
- }, Ne = "logger";
989
- c.Logger = Ne;
990
- let h, g;
991
- function De(t) {
992
- const e = window.Lime?.logger?.createLogger;
993
- return typeof e != "function" ? (console.warn(
994
- `Logger factory is not configured. Returning console logger for scope "${t}".`
995
- ), console) : (g === void 0 && (g = Te($e())), g && (t = `${g}:${t}`), e(t));
996
- }
997
- function $e() {
998
- return h !== void 0 ? h : import.meta !== void 0 && typeof import.meta.url == "string" ? (h = import.meta.url, h) : (h = Le(), h);
999
- }
1000
- function Le() {
1001
- try {
1002
- const t = new Error(".").stack;
1003
- if (!t)
1004
- return null;
1005
- const e = t.split(`
1006
- `);
1007
- for (const r of e) {
1008
- const n = r.match(/(https?:\/\/[^)\s:]+)/);
1009
- if (n)
1010
- return n[1];
1011
- }
1012
- return null;
1013
- } catch {
1014
- return null;
1015
- }
1016
- }
1017
- function Te(t) {
1018
- if (!t) return null;
1019
- const e = Ve(t) || Fe(t) || Ue(t) || ke(t);
1020
- return e || null;
1021
- }
1022
- function Ve(t) {
1023
- const e = /\/([^/]+)-lwc-components\//, r = t.match(e);
1024
- return r ? r[1] : null;
1025
- }
1026
- function Fe(t) {
1027
- const e = /\/packages\/(?:@[^/]+\/)?([^/]+)/, r = t.match(e);
1028
- return r ? r[1] : null;
1029
- }
1030
- function Ue(t) {
1031
- const e = t.indexOf("+");
1032
- if (e === -1)
1033
- return null;
1034
- const r = t.slice(0, e), n = r.lastIndexOf("/");
1035
- return n === -1 ? null : r.slice(n + 1);
1036
- }
1037
- function ke(t) {
1038
- const e = /\/static\/([^/]+)\//, r = t.match(e);
1039
- return r ? r[1] : null;
1040
- }
1041
- const gr = {
1042
- Low: "low",
1043
- Medium: "medium",
1044
- High: "high",
1045
- Critical: "critical"
1046
- }, Be = "problemRepository";
1047
- c.ProblemRepository = Be;
1048
- const He = "aiContextRegistry";
1049
- c.AIContextRegistry = He;
1050
- let R = null;
1051
- function We(t, e) {
1052
- R || (R = De("uncaught-error"));
1053
- const r = {};
1054
- e && (r.element = e.tagName, e.id && (r.elementId = e.id));
1055
- const n = t instanceof Error ? t.message : String(t), o = t instanceof Error ? t : void 0;
1056
- R.error(n, o, r);
1004
+ //#endregion
1005
+ //#region src/ai-context/types.ts
1006
+ n.ProblemRepository = "problemRepository", n.AIContextRegistry = "aiContextRegistry";
1007
+ //#endregion
1008
+ //#region src/error/error.ts
1009
+ var Tt = null;
1010
+ function Et(e, t) {
1011
+ Tt ||= gt("uncaught-error");
1012
+ let n = {};
1013
+ t && (n.element = t.tagName, t.id && (n.elementId = t.id));
1014
+ let r = e instanceof Error ? e.message : String(e), i = e instanceof Error ? e : void 0;
1015
+ Tt.error(r, i, n);
1057
1016
  }
1058
1017
  try {
1059
- it(We);
1060
- } catch {
1061
- }
1062
- export {
1063
- sr as AggregateOperator,
1064
- B as BulkCreateDialogCommand,
1065
- d as Command,
1066
- $t as CommandEventName,
1067
- H as CreateLimeobjectDialogCommand,
1068
- W as DeleteObjectCommand,
1069
- cr as HttpMethod,
1070
- Qe as IdleStateEventName,
1071
- vr as LogLevel,
1072
- Y as NavigateCommand,
1073
- G as OpenObjectAccessDialogCommand,
1074
- re as Operator,
1075
- c as PlatformServiceName,
1076
- gr as ProblemSeverity,
1077
- Q as SaveLimeObjectCommand,
1078
- hr as SelectApplicationName,
1079
- ar as SelectConfig,
1080
- ir as SelectCurrentLimeObject,
1081
- ze as SelectCurrentLimeType,
1082
- dr as SelectCurrentUser,
1083
- lr as SelectDevice,
1084
- fr as SelectFilters,
1085
- or as SelectLimeObjects,
1086
- Ze as SelectLimeTypes,
1087
- ur as SelectQueryParam,
1088
- yr as SelectSession,
1089
- pr as SelectUserData,
1090
- me as TaskEventType,
1091
- ye as TaskState,
1092
- De as createLogger,
1093
- tr as findLimetypeByLabel,
1094
- Vt as getCommandId,
1095
- Ft as getCommandIds,
1096
- Te as getPackageNameFromUrl,
1097
- er as getPropertiesByType,
1098
- rr as getPropertyByLabel,
1099
- nr as getPropertyByName,
1100
- nt as hasLabel,
1101
- br as isActionCondition,
1102
- Ke as isDate,
1103
- Je as isFloat,
1104
- mr as isLimeObjectCondition,
1105
- Ye as isRelation,
1106
- qe as isSingleRelation,
1107
- Xe as isString
1108
- };
1109
- //# sourceMappingURL=index.esm.js.map
1018
+ t(Et);
1019
+ } catch {}
1020
+ //#endregion
1021
+ export { Ze as AggregateOperator, K as BulkCreateDialogCommand, H as Command, He as CommandEventName, q as CreateLimeobjectDialogCommand, J as DeleteObjectCommand, Qe as HttpMethod, r as IdleStateEventName, ht as LogLevel, Z as NavigateCommand, Y as OpenObjectAccessDialogCommand, Xe as Operator, n as PlatformServiceName, wt as ProblemSeverity, X as SaveLimeObjectCommand, st as SelectApplicationName, rt as SelectConfig, ze as SelectCurrentLimeObject, Me as SelectCurrentLimeType, lt as SelectCurrentUser, it as SelectDevice, at as SelectFilters, Re as SelectLimeObjects, je as SelectLimeTypes, $e as SelectQueryParam, dt as SelectSession, ot as SelectUserData, nt as TaskEventType, tt as TaskState, gt as createLogger, Pe as findLimetypeByLabel, U as getCommandId, W as getCommandIds, yt as getPackageNameFromUrl, Fe as getPropertiesByType, Ie as getPropertyByLabel, Le as getPropertyByName, V as hasLabel, mt as isActionCondition, o as isDate, c as isFloat, pt as isLimeObjectCondition, i as isRelation, a as isSingleRelation, s as isString };
1022
+
1023
+ //# sourceMappingURL=index.esm.js.map