@attraccess/plugins-frontend-ui 0.0.16 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,15 +1,4582 @@
1
- import { H as e, I as r, J as t, L as o, R as i, U as u, Q as m, K as D, N as c, O as l, S as n, P as p } from "./index-BrgOHbDI.js";
1
+ import { jsx as M, jsxs as ie } from "react/jsx-runtime";
2
+ import * as V from "react";
3
+ import se, { useRef as Cr, useMemo as T, useCallback as G, useEffect as nr, useState as ze } from "react";
4
+ import { User as kr, Autocomplete as Pr, AutocompleteItem as wr, Input as Er, Spinner as Lr, Table as xr, TableHeader as Or, TableColumn as Ar, TableBody as Mr, TableRow as Nr, TableCell as Ir } from "@heroui/react";
5
+ import { useUsersServiceFindMany as Rr, useUsersServiceGetOneUserById as Dr, useResourcesServiceGetAllResources as Br } from "@attraccess/react-query-client";
6
+ const rt = (n) => {
7
+ let i;
8
+ const s = /* @__PURE__ */ new Set(), c = (a, o) => {
9
+ const d = typeof a == "function" ? a(i) : a;
10
+ if (!Object.is(d, i)) {
11
+ const r = i;
12
+ i = o ?? (typeof d != "object" || d === null) ? d : Object.assign({}, i, d), s.forEach((t) => t(i, r));
13
+ }
14
+ }, m = () => i, h = { setState: c, getState: m, getInitialState: () => u, subscribe: (a) => (s.add(a), () => s.delete(a)) }, u = i = n(c, m, h);
15
+ return h;
16
+ }, Tr = (n) => n ? rt(n) : rt, Hr = (n) => n;
17
+ function qr(n, i = Hr) {
18
+ const s = se.useSyncExternalStore(
19
+ n.subscribe,
20
+ () => i(n.getState()),
21
+ () => i(n.getInitialState())
22
+ );
23
+ return se.useDebugValue(s), s;
24
+ }
25
+ const nt = (n) => {
26
+ const i = Tr(n), s = (c) => qr(i, c);
27
+ return Object.assign(s, i), s;
28
+ }, Fr = (n) => n ? nt(n) : nt;
29
+ var Vr = typeof global == "object" && global && global.Object === Object && global, Gr = typeof self == "object" && self && self.Object === Object && self, Qe = Vr || Gr || Function("return this")(), Q = Qe.Symbol, ir = Object.prototype, Ur = ir.hasOwnProperty, Wr = ir.toString, X = Q ? Q.toStringTag : void 0;
30
+ function Kr(n) {
31
+ var i = Ur.call(n, X), s = n[X];
32
+ try {
33
+ n[X] = void 0;
34
+ var c = !0;
35
+ } catch {
36
+ }
37
+ var m = Wr.call(n);
38
+ return c && (i ? n[X] = s : delete n[X]), m;
39
+ }
40
+ var zr = Object.prototype, jr = zr.toString;
41
+ function Jr(n) {
42
+ return jr.call(n);
43
+ }
44
+ var Qr = "[object Null]", Zr = "[object Undefined]", it = Q ? Q.toStringTag : void 0;
45
+ function sr(n) {
46
+ return n == null ? n === void 0 ? Zr : Qr : it && it in Object(n) ? Kr(n) : Jr(n);
47
+ }
48
+ function Yr(n) {
49
+ return n != null && typeof n == "object";
50
+ }
51
+ var Xr = "[object Symbol]";
52
+ function Ze(n) {
53
+ return typeof n == "symbol" || Yr(n) && sr(n) == Xr;
54
+ }
55
+ function $r(n, i) {
56
+ for (var s = -1, c = n == null ? 0 : n.length, m = Array(c); ++s < c; )
57
+ m[s] = i(n[s], s, n);
58
+ return m;
59
+ }
60
+ var Ye = Array.isArray, st = Q ? Q.prototype : void 0, ot = st ? st.toString : void 0;
61
+ function or(n) {
62
+ if (typeof n == "string")
63
+ return n;
64
+ if (Ye(n))
65
+ return $r(n, or) + "";
66
+ if (Ze(n))
67
+ return ot ? ot.call(n) : "";
68
+ var i = n + "";
69
+ return i == "0" && 1 / n == -1 / 0 ? "-0" : i;
70
+ }
71
+ function ar(n) {
72
+ var i = typeof n;
73
+ return n != null && (i == "object" || i == "function");
74
+ }
75
+ var en = "[object AsyncFunction]", tn = "[object Function]", rn = "[object GeneratorFunction]", nn = "[object Proxy]";
76
+ function sn(n) {
77
+ if (!ar(n))
78
+ return !1;
79
+ var i = sr(n);
80
+ return i == tn || i == rn || i == en || i == nn;
81
+ }
82
+ var Te = Qe["__core-js_shared__"], at = function() {
83
+ var n = /[^.]+$/.exec(Te && Te.keys && Te.keys.IE_PROTO || "");
84
+ return n ? "Symbol(src)_1." + n : "";
85
+ }();
86
+ function on(n) {
87
+ return !!at && at in n;
88
+ }
89
+ var an = Function.prototype, un = an.toString;
90
+ function ln(n) {
91
+ if (n != null) {
92
+ try {
93
+ return un.call(n);
94
+ } catch {
95
+ }
96
+ try {
97
+ return n + "";
98
+ } catch {
99
+ }
100
+ }
101
+ return "";
102
+ }
103
+ var cn = /[\\^$.*+?()[\]{}|]/g, hn = /^\[object .+?Constructor\]$/, pn = Function.prototype, fn = Object.prototype, dn = pn.toString, gn = fn.hasOwnProperty, mn = RegExp(
104
+ "^" + dn.call(gn).replace(cn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
105
+ );
106
+ function vn(n) {
107
+ if (!ar(n) || on(n))
108
+ return !1;
109
+ var i = sn(n) ? mn : hn;
110
+ return i.test(ln(n));
111
+ }
112
+ function _n(n, i) {
113
+ return n == null ? void 0 : n[i];
114
+ }
115
+ function ur(n, i) {
116
+ var s = _n(n, i);
117
+ return vn(s) ? s : void 0;
118
+ }
119
+ function Sn(n, i) {
120
+ return n === i || n !== n && i !== i;
121
+ }
122
+ var yn = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, bn = /^\w*$/;
123
+ function Cn(n, i) {
124
+ if (Ye(n))
125
+ return !1;
126
+ var s = typeof n;
127
+ return s == "number" || s == "symbol" || s == "boolean" || n == null || Ze(n) ? !0 : bn.test(n) || !yn.test(n) || i != null && n in Object(i);
128
+ }
129
+ var oe = ur(Object, "create");
130
+ function kn() {
131
+ this.__data__ = oe ? oe(null) : {}, this.size = 0;
132
+ }
133
+ function Pn(n) {
134
+ var i = this.has(n) && delete this.__data__[n];
135
+ return this.size -= i ? 1 : 0, i;
136
+ }
137
+ var wn = "__lodash_hash_undefined__", En = Object.prototype, Ln = En.hasOwnProperty;
138
+ function xn(n) {
139
+ var i = this.__data__;
140
+ if (oe) {
141
+ var s = i[n];
142
+ return s === wn ? void 0 : s;
143
+ }
144
+ return Ln.call(i, n) ? i[n] : void 0;
145
+ }
146
+ var On = Object.prototype, An = On.hasOwnProperty;
147
+ function Mn(n) {
148
+ var i = this.__data__;
149
+ return oe ? i[n] !== void 0 : An.call(i, n);
150
+ }
151
+ var Nn = "__lodash_hash_undefined__";
152
+ function In(n, i) {
153
+ var s = this.__data__;
154
+ return this.size += this.has(n) ? 0 : 1, s[n] = oe && i === void 0 ? Nn : i, this;
155
+ }
156
+ function U(n) {
157
+ var i = -1, s = n == null ? 0 : n.length;
158
+ for (this.clear(); ++i < s; ) {
159
+ var c = n[i];
160
+ this.set(c[0], c[1]);
161
+ }
162
+ }
163
+ U.prototype.clear = kn;
164
+ U.prototype.delete = Pn;
165
+ U.prototype.get = xn;
166
+ U.prototype.has = Mn;
167
+ U.prototype.set = In;
168
+ function Rn() {
169
+ this.__data__ = [], this.size = 0;
170
+ }
171
+ function De(n, i) {
172
+ for (var s = n.length; s--; )
173
+ if (Sn(n[s][0], i))
174
+ return s;
175
+ return -1;
176
+ }
177
+ var Dn = Array.prototype, Bn = Dn.splice;
178
+ function Tn(n) {
179
+ var i = this.__data__, s = De(i, n);
180
+ if (s < 0)
181
+ return !1;
182
+ var c = i.length - 1;
183
+ return s == c ? i.pop() : Bn.call(i, s, 1), --this.size, !0;
184
+ }
185
+ function Hn(n) {
186
+ var i = this.__data__, s = De(i, n);
187
+ return s < 0 ? void 0 : i[s][1];
188
+ }
189
+ function qn(n) {
190
+ return De(this.__data__, n) > -1;
191
+ }
192
+ function Fn(n, i) {
193
+ var s = this.__data__, c = De(s, n);
194
+ return c < 0 ? (++this.size, s.push([n, i])) : s[c][1] = i, this;
195
+ }
196
+ function Z(n) {
197
+ var i = -1, s = n == null ? 0 : n.length;
198
+ for (this.clear(); ++i < s; ) {
199
+ var c = n[i];
200
+ this.set(c[0], c[1]);
201
+ }
202
+ }
203
+ Z.prototype.clear = Rn;
204
+ Z.prototype.delete = Tn;
205
+ Z.prototype.get = Hn;
206
+ Z.prototype.has = qn;
207
+ Z.prototype.set = Fn;
208
+ var Vn = ur(Qe, "Map");
209
+ function Gn() {
210
+ this.size = 0, this.__data__ = {
211
+ hash: new U(),
212
+ map: new (Vn || Z)(),
213
+ string: new U()
214
+ };
215
+ }
216
+ function Un(n) {
217
+ var i = typeof n;
218
+ return i == "string" || i == "number" || i == "symbol" || i == "boolean" ? n !== "__proto__" : n === null;
219
+ }
220
+ function Be(n, i) {
221
+ var s = n.__data__;
222
+ return Un(i) ? s[typeof i == "string" ? "string" : "hash"] : s.map;
223
+ }
224
+ function Wn(n) {
225
+ var i = Be(this, n).delete(n);
226
+ return this.size -= i ? 1 : 0, i;
227
+ }
228
+ function Kn(n) {
229
+ return Be(this, n).get(n);
230
+ }
231
+ function zn(n) {
232
+ return Be(this, n).has(n);
233
+ }
234
+ function jn(n, i) {
235
+ var s = Be(this, n), c = s.size;
236
+ return s.set(n, i), this.size += s.size == c ? 0 : 1, this;
237
+ }
238
+ function W(n) {
239
+ var i = -1, s = n == null ? 0 : n.length;
240
+ for (this.clear(); ++i < s; ) {
241
+ var c = n[i];
242
+ this.set(c[0], c[1]);
243
+ }
244
+ }
245
+ W.prototype.clear = Gn;
246
+ W.prototype.delete = Wn;
247
+ W.prototype.get = Kn;
248
+ W.prototype.has = zn;
249
+ W.prototype.set = jn;
250
+ var Jn = "Expected a function";
251
+ function Xe(n, i) {
252
+ if (typeof n != "function" || i != null && typeof i != "function")
253
+ throw new TypeError(Jn);
254
+ var s = function() {
255
+ var c = arguments, m = i ? i.apply(this, c) : c[0], f = s.cache;
256
+ if (f.has(m))
257
+ return f.get(m);
258
+ var g = n.apply(this, c);
259
+ return s.cache = f.set(m, g) || f, g;
260
+ };
261
+ return s.cache = new (Xe.Cache || W)(), s;
262
+ }
263
+ Xe.Cache = W;
264
+ var Qn = 500;
265
+ function Zn(n) {
266
+ var i = Xe(n, function(c) {
267
+ return s.size === Qn && s.clear(), c;
268
+ }), s = i.cache;
269
+ return i;
270
+ }
271
+ var Yn = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Xn = /\\(\\)?/g, $n = Zn(function(n) {
272
+ var i = [];
273
+ return n.charCodeAt(0) === 46 && i.push(""), n.replace(Yn, function(s, c, m, f) {
274
+ i.push(m ? f.replace(Xn, "$1") : c || s);
275
+ }), i;
276
+ });
277
+ function ei(n) {
278
+ return n == null ? "" : or(n);
279
+ }
280
+ function ti(n, i) {
281
+ return Ye(n) ? n : Cn(n, i) ? [n] : $n(ei(n));
282
+ }
283
+ function ri(n) {
284
+ if (typeof n == "string" || Ze(n))
285
+ return n;
286
+ var i = n + "";
287
+ return i == "0" && 1 / n == -1 / 0 ? "-0" : i;
288
+ }
289
+ function ni(n, i) {
290
+ i = ti(i, n);
291
+ for (var s = 0, c = i.length; n != null && s < c; )
292
+ n = n[ri(i[s++])];
293
+ return s && s == c ? n : void 0;
294
+ }
295
+ function ut(n, i, s) {
296
+ var c = n == null ? void 0 : ni(n, i);
297
+ return c === void 0 ? s : c;
298
+ }
299
+ var le = { exports: {} }, ce = { exports: {} }, H = {}, I = {}, lt;
300
+ function R() {
301
+ if (lt) return I;
302
+ lt = 1, I.__esModule = !0, I.extend = m, I.indexOf = u, I.escapeExpression = a, I.isEmpty = o, I.createFrame = d, I.blockParams = r, I.appendContextPath = t;
303
+ var n = {
304
+ "&": "&amp;",
305
+ "<": "&lt;",
306
+ ">": "&gt;",
307
+ '"': "&quot;",
308
+ "'": "&#x27;",
309
+ "`": "&#x60;",
310
+ "=": "&#x3D;"
311
+ }, i = /[&<>"'`=]/g, s = /[&<>"'`=]/;
312
+ function c(e) {
313
+ return n[e];
314
+ }
315
+ function m(e) {
316
+ for (var l = 1; l < arguments.length; l++)
317
+ for (var p in arguments[l])
318
+ Object.prototype.hasOwnProperty.call(arguments[l], p) && (e[p] = arguments[l][p]);
319
+ return e;
320
+ }
321
+ var f = Object.prototype.toString;
322
+ I.toString = f;
323
+ var g = function(l) {
324
+ return typeof l == "function";
325
+ };
326
+ g(/x/) && (I.isFunction = g = function(e) {
327
+ return typeof e == "function" && f.call(e) === "[object Function]";
328
+ }), I.isFunction = g;
329
+ var h = Array.isArray || function(e) {
330
+ return e && typeof e == "object" ? f.call(e) === "[object Array]" : !1;
331
+ };
332
+ I.isArray = h;
333
+ function u(e, l) {
334
+ for (var p = 0, _ = e.length; p < _; p++)
335
+ if (e[p] === l)
336
+ return p;
337
+ return -1;
338
+ }
339
+ function a(e) {
340
+ if (typeof e != "string") {
341
+ if (e && e.toHTML)
342
+ return e.toHTML();
343
+ if (e == null)
344
+ return "";
345
+ if (!e)
346
+ return e + "";
347
+ e = "" + e;
348
+ }
349
+ return s.test(e) ? e.replace(i, c) : e;
350
+ }
351
+ function o(e) {
352
+ return !e && e !== 0 ? !0 : !!(h(e) && e.length === 0);
353
+ }
354
+ function d(e) {
355
+ var l = m({}, e);
356
+ return l._parent = e, l;
357
+ }
358
+ function r(e, l) {
359
+ return e.path = l, e;
360
+ }
361
+ function t(e, l) {
362
+ return (e ? e + "." : "") + l;
363
+ }
364
+ return I;
365
+ }
366
+ var he = { exports: {} }, ct;
367
+ function q() {
368
+ return ct || (ct = 1, function(n, i) {
369
+ i.__esModule = !0;
370
+ var s = ["description", "fileName", "lineNumber", "endLineNumber", "message", "name", "number", "stack"];
371
+ function c(m, f) {
372
+ var g = f && f.loc, h = void 0, u = void 0, a = void 0, o = void 0;
373
+ g && (h = g.start.line, u = g.end.line, a = g.start.column, o = g.end.column, m += " - " + h + ":" + a);
374
+ for (var d = Error.prototype.constructor.call(this, m), r = 0; r < s.length; r++)
375
+ this[s[r]] = d[s[r]];
376
+ Error.captureStackTrace && Error.captureStackTrace(this, c);
377
+ try {
378
+ g && (this.lineNumber = h, this.endLineNumber = u, Object.defineProperty ? (Object.defineProperty(this, "column", {
379
+ value: a,
380
+ enumerable: !0
381
+ }), Object.defineProperty(this, "endColumn", {
382
+ value: o,
383
+ enumerable: !0
384
+ })) : (this.column = a, this.endColumn = o));
385
+ } catch {
386
+ }
387
+ }
388
+ c.prototype = new Error(), i.default = c, n.exports = i.default;
389
+ }(he, he.exports)), he.exports;
390
+ }
391
+ var $ = {}, pe = { exports: {} }, ht;
392
+ function ii() {
393
+ return ht || (ht = 1, function(n, i) {
394
+ i.__esModule = !0;
395
+ var s = R();
396
+ i.default = function(c) {
397
+ c.registerHelper("blockHelperMissing", function(m, f) {
398
+ var g = f.inverse, h = f.fn;
399
+ if (m === !0)
400
+ return h(this);
401
+ if (m === !1 || m == null)
402
+ return g(this);
403
+ if (s.isArray(m))
404
+ return m.length > 0 ? (f.ids && (f.ids = [f.name]), c.helpers.each(m, f)) : g(this);
405
+ if (f.data && f.ids) {
406
+ var u = s.createFrame(f.data);
407
+ u.contextPath = s.appendContextPath(f.data.contextPath, f.name), f = { data: u };
408
+ }
409
+ return h(m, f);
410
+ });
411
+ }, n.exports = i.default;
412
+ }(pe, pe.exports)), pe.exports;
413
+ }
414
+ var fe = { exports: {} }, pt;
415
+ function si() {
416
+ return pt || (pt = 1, function(n, i) {
417
+ i.__esModule = !0;
418
+ function s(g) {
419
+ return g && g.__esModule ? g : { default: g };
420
+ }
421
+ var c = R(), m = q(), f = s(m);
422
+ i.default = function(g) {
423
+ g.registerHelper("each", function(h, u) {
424
+ if (!u)
425
+ throw new f.default("Must pass iterator to #each");
426
+ var a = u.fn, o = u.inverse, d = 0, r = "", t = void 0, e = void 0;
427
+ u.data && u.ids && (e = c.appendContextPath(u.data.contextPath, u.ids[0]) + "."), c.isFunction(h) && (h = h.call(this)), u.data && (t = c.createFrame(u.data));
428
+ function l(v, y, C) {
429
+ t && (t.key = v, t.index = y, t.first = y === 0, t.last = !!C, e && (t.contextPath = e + v)), r = r + a(h[v], {
430
+ data: t,
431
+ blockParams: c.blockParams([h[v], v], [e + v, null])
432
+ });
433
+ }
434
+ if (h && typeof h == "object")
435
+ if (c.isArray(h))
436
+ for (var p = h.length; d < p; d++)
437
+ d in h && l(d, d, d === h.length - 1);
438
+ else if (typeof Symbol == "function" && h[Symbol.iterator]) {
439
+ for (var _ = [], S = h[Symbol.iterator](), b = S.next(); !b.done; b = S.next())
440
+ _.push(b.value);
441
+ h = _;
442
+ for (var p = h.length; d < p; d++)
443
+ l(d, d, d === h.length - 1);
444
+ } else
445
+ (function() {
446
+ var v = void 0;
447
+ Object.keys(h).forEach(function(y) {
448
+ v !== void 0 && l(v, d - 1), v = y, d++;
449
+ }), v !== void 0 && l(v, d - 1, !0);
450
+ })();
451
+ return d === 0 && (r = o(this)), r;
452
+ });
453
+ }, n.exports = i.default;
454
+ }(fe, fe.exports)), fe.exports;
455
+ }
456
+ var de = { exports: {} }, ft;
457
+ function oi() {
458
+ return ft || (ft = 1, function(n, i) {
459
+ i.__esModule = !0;
460
+ function s(f) {
461
+ return f && f.__esModule ? f : { default: f };
462
+ }
463
+ var c = q(), m = s(c);
464
+ i.default = function(f) {
465
+ f.registerHelper("helperMissing", function() {
466
+ if (arguments.length !== 1)
467
+ throw new m.default('Missing helper: "' + arguments[arguments.length - 1].name + '"');
468
+ });
469
+ }, n.exports = i.default;
470
+ }(de, de.exports)), de.exports;
471
+ }
472
+ var ge = { exports: {} }, dt;
473
+ function ai() {
474
+ return dt || (dt = 1, function(n, i) {
475
+ i.__esModule = !0;
476
+ function s(g) {
477
+ return g && g.__esModule ? g : { default: g };
478
+ }
479
+ var c = R(), m = q(), f = s(m);
480
+ i.default = function(g) {
481
+ g.registerHelper("if", function(h, u) {
482
+ if (arguments.length != 2)
483
+ throw new f.default("#if requires exactly one argument");
484
+ return c.isFunction(h) && (h = h.call(this)), !u.hash.includeZero && !h || c.isEmpty(h) ? u.inverse(this) : u.fn(this);
485
+ }), g.registerHelper("unless", function(h, u) {
486
+ if (arguments.length != 2)
487
+ throw new f.default("#unless requires exactly one argument");
488
+ return g.helpers.if.call(this, h, {
489
+ fn: u.inverse,
490
+ inverse: u.fn,
491
+ hash: u.hash
492
+ });
493
+ });
494
+ }, n.exports = i.default;
495
+ }(ge, ge.exports)), ge.exports;
496
+ }
497
+ var me = { exports: {} }, gt;
498
+ function ui() {
499
+ return gt || (gt = 1, function(n, i) {
500
+ i.__esModule = !0, i.default = function(s) {
501
+ s.registerHelper("log", function() {
502
+ for (var c = [void 0], m = arguments[arguments.length - 1], f = 0; f < arguments.length - 1; f++)
503
+ c.push(arguments[f]);
504
+ var g = 1;
505
+ m.hash.level != null ? g = m.hash.level : m.data && m.data.level != null && (g = m.data.level), c[0] = g, s.log.apply(s, c);
506
+ });
507
+ }, n.exports = i.default;
508
+ }(me, me.exports)), me.exports;
509
+ }
510
+ var ve = { exports: {} }, mt;
511
+ function li() {
512
+ return mt || (mt = 1, function(n, i) {
513
+ i.__esModule = !0, i.default = function(s) {
514
+ s.registerHelper("lookup", function(c, m, f) {
515
+ return c && f.lookupProperty(c, m);
516
+ });
517
+ }, n.exports = i.default;
518
+ }(ve, ve.exports)), ve.exports;
519
+ }
520
+ var _e = { exports: {} }, vt;
521
+ function ci() {
522
+ return vt || (vt = 1, function(n, i) {
523
+ i.__esModule = !0;
524
+ function s(g) {
525
+ return g && g.__esModule ? g : { default: g };
526
+ }
527
+ var c = R(), m = q(), f = s(m);
528
+ i.default = function(g) {
529
+ g.registerHelper("with", function(h, u) {
530
+ if (arguments.length != 2)
531
+ throw new f.default("#with requires exactly one argument");
532
+ c.isFunction(h) && (h = h.call(this));
533
+ var a = u.fn;
534
+ if (c.isEmpty(h))
535
+ return u.inverse(this);
536
+ var o = u.data;
537
+ return u.data && u.ids && (o = c.createFrame(u.data), o.contextPath = c.appendContextPath(u.data.contextPath, u.ids[0])), a(h, {
538
+ data: o,
539
+ blockParams: c.blockParams([h], [o && o.contextPath])
540
+ });
541
+ });
542
+ }, n.exports = i.default;
543
+ }(_e, _e.exports)), _e.exports;
544
+ }
545
+ var _t;
546
+ function lr() {
547
+ if (_t) return $;
548
+ _t = 1, $.__esModule = !0, $.registerDefaultHelpers = l, $.moveHelperToHooks = p;
549
+ function n(_) {
550
+ return _ && _.__esModule ? _ : { default: _ };
551
+ }
552
+ var i = ii(), s = n(i), c = si(), m = n(c), f = oi(), g = n(f), h = ai(), u = n(h), a = ui(), o = n(a), d = li(), r = n(d), t = ci(), e = n(t);
553
+ function l(_) {
554
+ s.default(_), m.default(_), g.default(_), u.default(_), o.default(_), r.default(_), e.default(_);
555
+ }
556
+ function p(_, S, b) {
557
+ _.helpers[S] && (_.hooks[S] = _.helpers[S], b || delete _.helpers[S]);
558
+ }
559
+ return $;
560
+ }
561
+ var Se = {}, ye = { exports: {} }, St;
562
+ function hi() {
563
+ return St || (St = 1, function(n, i) {
564
+ i.__esModule = !0;
565
+ var s = R();
566
+ i.default = function(c) {
567
+ c.registerDecorator("inline", function(m, f, g, h) {
568
+ var u = m;
569
+ return f.partials || (f.partials = {}, u = function(a, o) {
570
+ var d = g.partials;
571
+ g.partials = s.extend({}, d, f.partials);
572
+ var r = m(a, o);
573
+ return g.partials = d, r;
574
+ }), f.partials[h.args[0]] = h.fn, u;
575
+ });
576
+ }, n.exports = i.default;
577
+ }(ye, ye.exports)), ye.exports;
578
+ }
579
+ var yt;
580
+ function pi() {
581
+ if (yt) return Se;
582
+ yt = 1, Se.__esModule = !0, Se.registerDefaultDecorators = c;
583
+ function n(m) {
584
+ return m && m.__esModule ? m : { default: m };
585
+ }
586
+ var i = hi(), s = n(i);
587
+ function c(m) {
588
+ s.default(m);
589
+ }
590
+ return Se;
591
+ }
592
+ var be = { exports: {} }, bt;
593
+ function cr() {
594
+ return bt || (bt = 1, function(n, i) {
595
+ i.__esModule = !0;
596
+ var s = R(), c = {
597
+ methodMap: ["debug", "info", "warn", "error"],
598
+ level: "info",
599
+ // Maps a given level value to the `methodMap` indexes above.
600
+ lookupLevel: function(f) {
601
+ if (typeof f == "string") {
602
+ var g = s.indexOf(c.methodMap, f.toLowerCase());
603
+ g >= 0 ? f = g : f = parseInt(f, 10);
604
+ }
605
+ return f;
606
+ },
607
+ // Can be overridden in the host environment
608
+ log: function(f) {
609
+ if (f = c.lookupLevel(f), typeof console < "u" && c.lookupLevel(c.level) <= f) {
610
+ var g = c.methodMap[f];
611
+ console[g] || (g = "log");
612
+ for (var h = arguments.length, u = Array(h > 1 ? h - 1 : 0), a = 1; a < h; a++)
613
+ u[a - 1] = arguments[a];
614
+ console[g].apply(console, u);
615
+ }
616
+ }
617
+ };
618
+ i.default = c, n.exports = i.default;
619
+ }(be, be.exports)), be.exports;
620
+ }
621
+ var K = {}, Ce = {}, Ct;
622
+ function fi() {
623
+ if (Ct) return Ce;
624
+ Ct = 1, Ce.__esModule = !0, Ce.createNewLookupObject = i;
625
+ var n = R();
626
+ function i() {
627
+ for (var s = arguments.length, c = Array(s), m = 0; m < s; m++)
628
+ c[m] = arguments[m];
629
+ return n.extend.apply(void 0, [/* @__PURE__ */ Object.create(null)].concat(c));
630
+ }
631
+ return Ce;
632
+ }
633
+ var kt;
634
+ function hr() {
635
+ if (kt) return K;
636
+ kt = 1, K.__esModule = !0, K.createProtoAccessControl = f, K.resultIsAllowed = g, K.resetLoggedProperties = a;
637
+ function n(o) {
638
+ return o && o.__esModule ? o : { default: o };
639
+ }
640
+ var i = fi(), s = cr(), c = n(s), m = /* @__PURE__ */ Object.create(null);
641
+ function f(o) {
642
+ var d = /* @__PURE__ */ Object.create(null);
643
+ d.constructor = !1, d.__defineGetter__ = !1, d.__defineSetter__ = !1, d.__lookupGetter__ = !1;
644
+ var r = /* @__PURE__ */ Object.create(null);
645
+ return r.__proto__ = !1, {
646
+ properties: {
647
+ whitelist: i.createNewLookupObject(r, o.allowedProtoProperties),
648
+ defaultValue: o.allowProtoPropertiesByDefault
649
+ },
650
+ methods: {
651
+ whitelist: i.createNewLookupObject(d, o.allowedProtoMethods),
652
+ defaultValue: o.allowProtoMethodsByDefault
653
+ }
654
+ };
655
+ }
656
+ function g(o, d, r) {
657
+ return h(typeof o == "function" ? d.methods : d.properties, r);
658
+ }
659
+ function h(o, d) {
660
+ return o.whitelist[d] !== void 0 ? o.whitelist[d] === !0 : o.defaultValue !== void 0 ? o.defaultValue : (u(d), !1);
661
+ }
662
+ function u(o) {
663
+ m[o] !== !0 && (m[o] = !0, c.default.log("error", 'Handlebars: Access has been denied to resolve the property "' + o + `" because it is not an "own property" of its parent.
664
+ You can add a runtime option to disable the check or this warning:
665
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`));
666
+ }
667
+ function a() {
668
+ Object.keys(m).forEach(function(o) {
669
+ delete m[o];
670
+ });
671
+ }
672
+ return K;
673
+ }
674
+ var Pt;
675
+ function $e() {
676
+ if (Pt) return H;
677
+ Pt = 1, H.__esModule = !0, H.HandlebarsEnvironment = e;
678
+ function n(p) {
679
+ return p && p.__esModule ? p : { default: p };
680
+ }
681
+ var i = R(), s = q(), c = n(s), m = lr(), f = pi(), g = cr(), h = n(g), u = hr(), a = "4.7.8";
682
+ H.VERSION = a;
683
+ var o = 8;
684
+ H.COMPILER_REVISION = o;
685
+ var d = 7;
686
+ H.LAST_COMPATIBLE_COMPILER_REVISION = d;
687
+ var r = {
688
+ 1: "<= 1.0.rc.2",
689
+ // 1.0.rc.2 is actually rev2 but doesn't report it
690
+ 2: "== 1.0.0-rc.3",
691
+ 3: "== 1.0.0-rc.4",
692
+ 4: "== 1.x.x",
693
+ 5: "== 2.0.0-alpha.x",
694
+ 6: ">= 2.0.0-beta.1",
695
+ 7: ">= 4.0.0 <4.3.0",
696
+ 8: ">= 4.3.0"
697
+ };
698
+ H.REVISION_CHANGES = r;
699
+ var t = "[object Object]";
700
+ function e(p, _, S) {
701
+ this.helpers = p || {}, this.partials = _ || {}, this.decorators = S || {}, m.registerDefaultHelpers(this), f.registerDefaultDecorators(this);
702
+ }
703
+ e.prototype = {
704
+ constructor: e,
705
+ logger: h.default,
706
+ log: h.default.log,
707
+ registerHelper: function(_, S) {
708
+ if (i.toString.call(_) === t) {
709
+ if (S)
710
+ throw new c.default("Arg not supported with multiple helpers");
711
+ i.extend(this.helpers, _);
712
+ } else
713
+ this.helpers[_] = S;
714
+ },
715
+ unregisterHelper: function(_) {
716
+ delete this.helpers[_];
717
+ },
718
+ registerPartial: function(_, S) {
719
+ if (i.toString.call(_) === t)
720
+ i.extend(this.partials, _);
721
+ else {
722
+ if (typeof S > "u")
723
+ throw new c.default('Attempting to register a partial called "' + _ + '" as undefined');
724
+ this.partials[_] = S;
725
+ }
726
+ },
727
+ unregisterPartial: function(_) {
728
+ delete this.partials[_];
729
+ },
730
+ registerDecorator: function(_, S) {
731
+ if (i.toString.call(_) === t) {
732
+ if (S)
733
+ throw new c.default("Arg not supported with multiple decorators");
734
+ i.extend(this.decorators, _);
735
+ } else
736
+ this.decorators[_] = S;
737
+ },
738
+ unregisterDecorator: function(_) {
739
+ delete this.decorators[_];
740
+ },
741
+ /**
742
+ * Reset the memory of illegal property accesses that have already been logged.
743
+ * @deprecated should only be used in handlebars test-cases
744
+ */
745
+ resetLoggedPropertyAccesses: function() {
746
+ u.resetLoggedProperties();
747
+ }
748
+ };
749
+ var l = h.default.log;
750
+ return H.log = l, H.createFrame = i.createFrame, H.logger = h.default, H;
751
+ }
752
+ var ke = { exports: {} }, wt;
753
+ function di() {
754
+ return wt || (wt = 1, function(n, i) {
755
+ i.__esModule = !0;
756
+ function s(c) {
757
+ this.string = c;
758
+ }
759
+ s.prototype.toString = s.prototype.toHTML = function() {
760
+ return "" + this.string;
761
+ }, i.default = s, n.exports = i.default;
762
+ }(ke, ke.exports)), ke.exports;
763
+ }
764
+ var F = {}, Pe = {}, Et;
765
+ function gi() {
766
+ if (Et) return Pe;
767
+ Et = 1, Pe.__esModule = !0, Pe.wrapHelper = n;
768
+ function n(i, s) {
769
+ if (typeof i != "function")
770
+ return i;
771
+ var c = function() {
772
+ var f = arguments[arguments.length - 1];
773
+ return arguments[arguments.length - 1] = s(f), i.apply(this, arguments);
774
+ };
775
+ return c;
776
+ }
777
+ return Pe;
778
+ }
779
+ var Lt;
780
+ function mi() {
781
+ if (Lt) return F;
782
+ Lt = 1, F.__esModule = !0, F.checkRevision = o, F.template = d, F.wrapProgram = r, F.resolvePartial = t, F.invokePartial = e, F.noop = l;
783
+ function n(v) {
784
+ return v && v.__esModule ? v : { default: v };
785
+ }
786
+ function i(v) {
787
+ if (v && v.__esModule)
788
+ return v;
789
+ var y = {};
790
+ if (v != null)
791
+ for (var C in v)
792
+ Object.prototype.hasOwnProperty.call(v, C) && (y[C] = v[C]);
793
+ return y.default = v, y;
794
+ }
795
+ var s = R(), c = i(s), m = q(), f = n(m), g = $e(), h = lr(), u = gi(), a = hr();
796
+ function o(v) {
797
+ var y = v && v[0] || 1, C = g.COMPILER_REVISION;
798
+ if (!(y >= g.LAST_COMPATIBLE_COMPILER_REVISION && y <= g.COMPILER_REVISION))
799
+ if (y < g.LAST_COMPATIBLE_COMPILER_REVISION) {
800
+ var k = g.REVISION_CHANGES[C], E = g.REVISION_CHANGES[y];
801
+ throw new f.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + k + ") or downgrade your runtime to an older version (" + E + ").");
802
+ } else
803
+ throw new f.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + v[1] + ").");
804
+ }
805
+ function d(v, y) {
806
+ if (!y)
807
+ throw new f.default("No environment passed to template");
808
+ if (!v || !v.main)
809
+ throw new f.default("Unknown template object: " + typeof v);
810
+ v.main.decorator = v.main_d, y.VM.checkRevision(v.compiler);
811
+ var C = v.compiler && v.compiler[0] === 7;
812
+ function k(w, P, L) {
813
+ L.hash && (P = c.extend({}, P, L.hash), L.ids && (L.ids[0] = !0)), w = y.VM.resolvePartial.call(this, w, P, L);
814
+ var O = c.extend({}, L, {
815
+ hooks: this.hooks,
816
+ protoAccessControl: this.protoAccessControl
817
+ }), A = y.VM.invokePartial.call(this, w, P, O);
818
+ if (A == null && y.compile && (L.partials[L.name] = y.compile(w, v.compilerOptions, y), A = L.partials[L.name](P, O)), A != null) {
819
+ if (L.indent) {
820
+ for (var N = A.split(`
821
+ `), D = 0, Y = N.length; D < Y && !(!N[D] && D + 1 === Y); D++)
822
+ N[D] = L.indent + N[D];
823
+ A = N.join(`
824
+ `);
825
+ }
826
+ return A;
827
+ } else
828
+ throw new f.default("The partial " + L.name + " could not be compiled when running in runtime-only mode");
829
+ }
830
+ var E = {
831
+ strict: function(P, L, O) {
832
+ if (!P || !(L in P))
833
+ throw new f.default('"' + L + '" not defined in ' + P, {
834
+ loc: O
835
+ });
836
+ return E.lookupProperty(P, L);
837
+ },
838
+ lookupProperty: function(P, L) {
839
+ var O = P[L];
840
+ if (O == null || Object.prototype.hasOwnProperty.call(P, L) || a.resultIsAllowed(O, E.protoAccessControl, L))
841
+ return O;
842
+ },
843
+ lookup: function(P, L) {
844
+ for (var O = P.length, A = 0; A < O; A++) {
845
+ var N = P[A] && E.lookupProperty(P[A], L);
846
+ if (N != null)
847
+ return P[A][L];
848
+ }
849
+ },
850
+ lambda: function(P, L) {
851
+ return typeof P == "function" ? P.call(L) : P;
852
+ },
853
+ escapeExpression: c.escapeExpression,
854
+ invokePartial: k,
855
+ fn: function(P) {
856
+ var L = v[P];
857
+ return L.decorator = v[P + "_d"], L;
858
+ },
859
+ programs: [],
860
+ program: function(P, L, O, A, N) {
861
+ var D = this.programs[P], Y = this.fn(P);
862
+ return L || N || A || O ? D = r(this, P, Y, L, O, A, N) : D || (D = this.programs[P] = r(this, P, Y)), D;
863
+ },
864
+ data: function(P, L) {
865
+ for (; P && L--; )
866
+ P = P._parent;
867
+ return P;
868
+ },
869
+ mergeIfNeeded: function(P, L) {
870
+ var O = P || L;
871
+ return P && L && P !== L && (O = c.extend({}, L, P)), O;
872
+ },
873
+ // An empty object to use as replacement for null-contexts
874
+ nullContext: Object.seal({}),
875
+ noop: y.VM.noop,
876
+ compilerInfo: v.compiler
877
+ };
878
+ function x(w) {
879
+ var P = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], L = P.data;
880
+ x._setup(P), !P.partial && v.useData && (L = p(w, L));
881
+ var O = void 0, A = v.useBlockParams ? [] : void 0;
882
+ v.useDepths && (P.depths ? O = w != P.depths[0] ? [w].concat(P.depths) : P.depths : O = [w]);
883
+ function N(D) {
884
+ return "" + v.main(E, D, E.helpers, E.partials, L, A, O);
885
+ }
886
+ return N = _(v.main, N, E, P.depths || [], L, A), N(w, P);
887
+ }
888
+ return x.isTop = !0, x._setup = function(w) {
889
+ if (w.partial)
890
+ E.protoAccessControl = w.protoAccessControl, E.helpers = w.helpers, E.partials = w.partials, E.decorators = w.decorators, E.hooks = w.hooks;
891
+ else {
892
+ var P = c.extend({}, y.helpers, w.helpers);
893
+ S(P, E), E.helpers = P, v.usePartial && (E.partials = E.mergeIfNeeded(w.partials, y.partials)), (v.usePartial || v.useDecorators) && (E.decorators = c.extend({}, y.decorators, w.decorators)), E.hooks = {}, E.protoAccessControl = a.createProtoAccessControl(w);
894
+ var L = w.allowCallsToHelperMissing || C;
895
+ h.moveHelperToHooks(E, "helperMissing", L), h.moveHelperToHooks(E, "blockHelperMissing", L);
896
+ }
897
+ }, x._child = function(w, P, L, O) {
898
+ if (v.useBlockParams && !L)
899
+ throw new f.default("must pass block params");
900
+ if (v.useDepths && !O)
901
+ throw new f.default("must pass parent depths");
902
+ return r(E, w, v[w], P, 0, L, O);
903
+ }, x;
904
+ }
905
+ function r(v, y, C, k, E, x, w) {
906
+ function P(L) {
907
+ var O = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], A = w;
908
+ return w && L != w[0] && !(L === v.nullContext && w[0] === null) && (A = [L].concat(w)), C(v, L, v.helpers, v.partials, O.data || k, x && [O.blockParams].concat(x), A);
909
+ }
910
+ return P = _(C, P, v, w, k, x), P.program = y, P.depth = w ? w.length : 0, P.blockParams = E || 0, P;
911
+ }
912
+ function t(v, y, C) {
913
+ return v ? !v.call && !C.name && (C.name = v, v = C.partials[v]) : C.name === "@partial-block" ? v = C.data["partial-block"] : v = C.partials[C.name], v;
914
+ }
915
+ function e(v, y, C) {
916
+ var k = C.data && C.data["partial-block"];
917
+ C.partial = !0, C.ids && (C.data.contextPath = C.ids[0] || C.data.contextPath);
918
+ var E = void 0;
919
+ if (C.fn && C.fn !== l && function() {
920
+ C.data = g.createFrame(C.data);
921
+ var x = C.fn;
922
+ E = C.data["partial-block"] = function(P) {
923
+ var L = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1];
924
+ return L.data = g.createFrame(L.data), L.data["partial-block"] = k, x(P, L);
925
+ }, x.partials && (C.partials = c.extend({}, C.partials, x.partials));
926
+ }(), v === void 0 && E && (v = E), v === void 0)
927
+ throw new f.default("The partial " + C.name + " could not be found");
928
+ if (v instanceof Function)
929
+ return v(y, C);
930
+ }
931
+ function l() {
932
+ return "";
933
+ }
934
+ function p(v, y) {
935
+ return (!y || !("root" in y)) && (y = y ? g.createFrame(y) : {}, y.root = v), y;
936
+ }
937
+ function _(v, y, C, k, E, x) {
938
+ if (v.decorator) {
939
+ var w = {};
940
+ y = v.decorator(y, w, C, k && k[0], E, x, k), c.extend(y, w);
941
+ }
942
+ return y;
943
+ }
944
+ function S(v, y) {
945
+ Object.keys(v).forEach(function(C) {
946
+ var k = v[C];
947
+ v[C] = b(k, y);
948
+ });
949
+ }
950
+ function b(v, y) {
951
+ var C = y.lookupProperty;
952
+ return u.wrapHelper(v, function(k) {
953
+ return c.extend({ lookupProperty: C }, k);
954
+ });
955
+ }
956
+ return F;
957
+ }
958
+ var we = { exports: {} }, xt;
959
+ function pr() {
960
+ return xt || (xt = 1, function(n, i) {
961
+ i.__esModule = !0, i.default = function(s) {
962
+ (function() {
963
+ typeof globalThis != "object" && (Object.prototype.__defineGetter__("__magic__", function() {
964
+ return this;
965
+ }), __magic__.globalThis = __magic__, delete Object.prototype.__magic__);
966
+ })();
967
+ var c = globalThis.Handlebars;
968
+ s.noConflict = function() {
969
+ return globalThis.Handlebars === s && (globalThis.Handlebars = c), s;
970
+ };
971
+ }, n.exports = i.default;
972
+ }(we, we.exports)), we.exports;
973
+ }
974
+ var Ot;
975
+ function vi() {
976
+ return Ot || (Ot = 1, function(n, i) {
977
+ i.__esModule = !0;
978
+ function s(S) {
979
+ return S && S.__esModule ? S : { default: S };
980
+ }
981
+ function c(S) {
982
+ if (S && S.__esModule)
983
+ return S;
984
+ var b = {};
985
+ if (S != null)
986
+ for (var v in S)
987
+ Object.prototype.hasOwnProperty.call(S, v) && (b[v] = S[v]);
988
+ return b.default = S, b;
989
+ }
990
+ var m = $e(), f = c(m), g = di(), h = s(g), u = q(), a = s(u), o = R(), d = c(o), r = mi(), t = c(r), e = pr(), l = s(e);
991
+ function p() {
992
+ var S = new f.HandlebarsEnvironment();
993
+ return d.extend(S, f), S.SafeString = h.default, S.Exception = a.default, S.Utils = d, S.escapeExpression = d.escapeExpression, S.VM = t, S.template = function(b) {
994
+ return t.template(b, S);
995
+ }, S;
996
+ }
997
+ var _ = p();
998
+ _.create = p, l.default(_), _.default = _, i.default = _, n.exports = i.default;
999
+ }(ce, ce.exports)), ce.exports;
1000
+ }
1001
+ var Ee = { exports: {} }, At;
1002
+ function fr() {
1003
+ return At || (At = 1, function(n, i) {
1004
+ i.__esModule = !0;
1005
+ var s = {
1006
+ // Public API used to evaluate derived attributes regarding AST nodes
1007
+ helpers: {
1008
+ // a mustache is definitely a helper if:
1009
+ // * it is an eligible helper, and
1010
+ // * it has at least one parameter or hash segment
1011
+ helperExpression: function(m) {
1012
+ return m.type === "SubExpression" || (m.type === "MustacheStatement" || m.type === "BlockStatement") && !!(m.params && m.params.length || m.hash);
1013
+ },
1014
+ scopedId: function(m) {
1015
+ return /^\.|this\b/.test(m.original);
1016
+ },
1017
+ // an ID is simple if it only has one part, and that part is not
1018
+ // `..` or `this`.
1019
+ simpleId: function(m) {
1020
+ return m.parts.length === 1 && !s.helpers.scopedId(m) && !m.depth;
1021
+ }
1022
+ }
1023
+ };
1024
+ i.default = s, n.exports = i.default;
1025
+ }(Ee, Ee.exports)), Ee.exports;
1026
+ }
1027
+ var z = {}, Le = { exports: {} }, Mt;
1028
+ function _i() {
1029
+ return Mt || (Mt = 1, function(n, i) {
1030
+ i.__esModule = !0;
1031
+ var s = function() {
1032
+ var c = {
1033
+ trace: function() {
1034
+ },
1035
+ yy: {},
1036
+ symbols_: { error: 2, root: 3, program: 4, EOF: 5, program_repetition0: 6, statement: 7, mustache: 8, block: 9, rawBlock: 10, partial: 11, partialBlock: 12, content: 13, COMMENT: 14, CONTENT: 15, openRawBlock: 16, rawBlock_repetition0: 17, END_RAW_BLOCK: 18, OPEN_RAW_BLOCK: 19, helperName: 20, openRawBlock_repetition0: 21, openRawBlock_option0: 22, CLOSE_RAW_BLOCK: 23, openBlock: 24, block_option0: 25, closeBlock: 26, openInverse: 27, block_option1: 28, OPEN_BLOCK: 29, openBlock_repetition0: 30, openBlock_option0: 31, openBlock_option1: 32, CLOSE: 33, OPEN_INVERSE: 34, openInverse_repetition0: 35, openInverse_option0: 36, openInverse_option1: 37, openInverseChain: 38, OPEN_INVERSE_CHAIN: 39, openInverseChain_repetition0: 40, openInverseChain_option0: 41, openInverseChain_option1: 42, inverseAndProgram: 43, INVERSE: 44, inverseChain: 45, inverseChain_option0: 46, OPEN_ENDBLOCK: 47, OPEN: 48, mustache_repetition0: 49, mustache_option0: 50, OPEN_UNESCAPED: 51, mustache_repetition1: 52, mustache_option1: 53, CLOSE_UNESCAPED: 54, OPEN_PARTIAL: 55, partialName: 56, partial_repetition0: 57, partial_option0: 58, openPartialBlock: 59, OPEN_PARTIAL_BLOCK: 60, openPartialBlock_repetition0: 61, openPartialBlock_option0: 62, param: 63, sexpr: 64, OPEN_SEXPR: 65, sexpr_repetition0: 66, sexpr_option0: 67, CLOSE_SEXPR: 68, hash: 69, hash_repetition_plus0: 70, hashSegment: 71, ID: 72, EQUALS: 73, blockParams: 74, OPEN_BLOCK_PARAMS: 75, blockParams_repetition_plus0: 76, CLOSE_BLOCK_PARAMS: 77, path: 78, dataName: 79, STRING: 80, NUMBER: 81, BOOLEAN: 82, UNDEFINED: 83, NULL: 84, DATA: 85, pathSegments: 86, SEP: 87, $accept: 0, $end: 1 },
1037
+ terminals_: { 2: "error", 5: "EOF", 14: "COMMENT", 15: "CONTENT", 18: "END_RAW_BLOCK", 19: "OPEN_RAW_BLOCK", 23: "CLOSE_RAW_BLOCK", 29: "OPEN_BLOCK", 33: "CLOSE", 34: "OPEN_INVERSE", 39: "OPEN_INVERSE_CHAIN", 44: "INVERSE", 47: "OPEN_ENDBLOCK", 48: "OPEN", 51: "OPEN_UNESCAPED", 54: "CLOSE_UNESCAPED", 55: "OPEN_PARTIAL", 60: "OPEN_PARTIAL_BLOCK", 65: "OPEN_SEXPR", 68: "CLOSE_SEXPR", 72: "ID", 73: "EQUALS", 75: "OPEN_BLOCK_PARAMS", 77: "CLOSE_BLOCK_PARAMS", 80: "STRING", 81: "NUMBER", 82: "BOOLEAN", 83: "UNDEFINED", 84: "NULL", 85: "DATA", 87: "SEP" },
1038
+ productions_: [0, [3, 2], [4, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [13, 1], [10, 3], [16, 5], [9, 4], [9, 4], [24, 6], [27, 6], [38, 6], [43, 2], [45, 3], [45, 1], [26, 3], [8, 5], [8, 5], [11, 5], [12, 3], [59, 5], [63, 1], [63, 1], [64, 5], [69, 1], [71, 3], [74, 3], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [56, 1], [56, 1], [79, 2], [78, 1], [86, 3], [86, 1], [6, 0], [6, 2], [17, 0], [17, 2], [21, 0], [21, 2], [22, 0], [22, 1], [25, 0], [25, 1], [28, 0], [28, 1], [30, 0], [30, 2], [31, 0], [31, 1], [32, 0], [32, 1], [35, 0], [35, 2], [36, 0], [36, 1], [37, 0], [37, 1], [40, 0], [40, 2], [41, 0], [41, 1], [42, 0], [42, 1], [46, 0], [46, 1], [49, 0], [49, 2], [50, 0], [50, 1], [52, 0], [52, 2], [53, 0], [53, 1], [57, 0], [57, 2], [58, 0], [58, 1], [61, 0], [61, 2], [62, 0], [62, 1], [66, 0], [66, 2], [67, 0], [67, 1], [70, 1], [70, 2], [76, 1], [76, 2]],
1039
+ performAction: function(h, u, a, o, d, r, t) {
1040
+ var e = r.length - 1;
1041
+ switch (d) {
1042
+ case 1:
1043
+ return r[e - 1];
1044
+ case 2:
1045
+ this.$ = o.prepareProgram(r[e]);
1046
+ break;
1047
+ case 3:
1048
+ this.$ = r[e];
1049
+ break;
1050
+ case 4:
1051
+ this.$ = r[e];
1052
+ break;
1053
+ case 5:
1054
+ this.$ = r[e];
1055
+ break;
1056
+ case 6:
1057
+ this.$ = r[e];
1058
+ break;
1059
+ case 7:
1060
+ this.$ = r[e];
1061
+ break;
1062
+ case 8:
1063
+ this.$ = r[e];
1064
+ break;
1065
+ case 9:
1066
+ this.$ = {
1067
+ type: "CommentStatement",
1068
+ value: o.stripComment(r[e]),
1069
+ strip: o.stripFlags(r[e], r[e]),
1070
+ loc: o.locInfo(this._$)
1071
+ };
1072
+ break;
1073
+ case 10:
1074
+ this.$ = {
1075
+ type: "ContentStatement",
1076
+ original: r[e],
1077
+ value: r[e],
1078
+ loc: o.locInfo(this._$)
1079
+ };
1080
+ break;
1081
+ case 11:
1082
+ this.$ = o.prepareRawBlock(r[e - 2], r[e - 1], r[e], this._$);
1083
+ break;
1084
+ case 12:
1085
+ this.$ = { path: r[e - 3], params: r[e - 2], hash: r[e - 1] };
1086
+ break;
1087
+ case 13:
1088
+ this.$ = o.prepareBlock(r[e - 3], r[e - 2], r[e - 1], r[e], !1, this._$);
1089
+ break;
1090
+ case 14:
1091
+ this.$ = o.prepareBlock(r[e - 3], r[e - 2], r[e - 1], r[e], !0, this._$);
1092
+ break;
1093
+ case 15:
1094
+ this.$ = { open: r[e - 5], path: r[e - 4], params: r[e - 3], hash: r[e - 2], blockParams: r[e - 1], strip: o.stripFlags(r[e - 5], r[e]) };
1095
+ break;
1096
+ case 16:
1097
+ this.$ = { path: r[e - 4], params: r[e - 3], hash: r[e - 2], blockParams: r[e - 1], strip: o.stripFlags(r[e - 5], r[e]) };
1098
+ break;
1099
+ case 17:
1100
+ this.$ = { path: r[e - 4], params: r[e - 3], hash: r[e - 2], blockParams: r[e - 1], strip: o.stripFlags(r[e - 5], r[e]) };
1101
+ break;
1102
+ case 18:
1103
+ this.$ = { strip: o.stripFlags(r[e - 1], r[e - 1]), program: r[e] };
1104
+ break;
1105
+ case 19:
1106
+ var l = o.prepareBlock(r[e - 2], r[e - 1], r[e], r[e], !1, this._$), p = o.prepareProgram([l], r[e - 1].loc);
1107
+ p.chained = !0, this.$ = { strip: r[e - 2].strip, program: p, chain: !0 };
1108
+ break;
1109
+ case 20:
1110
+ this.$ = r[e];
1111
+ break;
1112
+ case 21:
1113
+ this.$ = { path: r[e - 1], strip: o.stripFlags(r[e - 2], r[e]) };
1114
+ break;
1115
+ case 22:
1116
+ this.$ = o.prepareMustache(r[e - 3], r[e - 2], r[e - 1], r[e - 4], o.stripFlags(r[e - 4], r[e]), this._$);
1117
+ break;
1118
+ case 23:
1119
+ this.$ = o.prepareMustache(r[e - 3], r[e - 2], r[e - 1], r[e - 4], o.stripFlags(r[e - 4], r[e]), this._$);
1120
+ break;
1121
+ case 24:
1122
+ this.$ = {
1123
+ type: "PartialStatement",
1124
+ name: r[e - 3],
1125
+ params: r[e - 2],
1126
+ hash: r[e - 1],
1127
+ indent: "",
1128
+ strip: o.stripFlags(r[e - 4], r[e]),
1129
+ loc: o.locInfo(this._$)
1130
+ };
1131
+ break;
1132
+ case 25:
1133
+ this.$ = o.preparePartialBlock(r[e - 2], r[e - 1], r[e], this._$);
1134
+ break;
1135
+ case 26:
1136
+ this.$ = { path: r[e - 3], params: r[e - 2], hash: r[e - 1], strip: o.stripFlags(r[e - 4], r[e]) };
1137
+ break;
1138
+ case 27:
1139
+ this.$ = r[e];
1140
+ break;
1141
+ case 28:
1142
+ this.$ = r[e];
1143
+ break;
1144
+ case 29:
1145
+ this.$ = {
1146
+ type: "SubExpression",
1147
+ path: r[e - 3],
1148
+ params: r[e - 2],
1149
+ hash: r[e - 1],
1150
+ loc: o.locInfo(this._$)
1151
+ };
1152
+ break;
1153
+ case 30:
1154
+ this.$ = { type: "Hash", pairs: r[e], loc: o.locInfo(this._$) };
1155
+ break;
1156
+ case 31:
1157
+ this.$ = { type: "HashPair", key: o.id(r[e - 2]), value: r[e], loc: o.locInfo(this._$) };
1158
+ break;
1159
+ case 32:
1160
+ this.$ = o.id(r[e - 1]);
1161
+ break;
1162
+ case 33:
1163
+ this.$ = r[e];
1164
+ break;
1165
+ case 34:
1166
+ this.$ = r[e];
1167
+ break;
1168
+ case 35:
1169
+ this.$ = { type: "StringLiteral", value: r[e], original: r[e], loc: o.locInfo(this._$) };
1170
+ break;
1171
+ case 36:
1172
+ this.$ = { type: "NumberLiteral", value: Number(r[e]), original: Number(r[e]), loc: o.locInfo(this._$) };
1173
+ break;
1174
+ case 37:
1175
+ this.$ = { type: "BooleanLiteral", value: r[e] === "true", original: r[e] === "true", loc: o.locInfo(this._$) };
1176
+ break;
1177
+ case 38:
1178
+ this.$ = { type: "UndefinedLiteral", original: void 0, value: void 0, loc: o.locInfo(this._$) };
1179
+ break;
1180
+ case 39:
1181
+ this.$ = { type: "NullLiteral", original: null, value: null, loc: o.locInfo(this._$) };
1182
+ break;
1183
+ case 40:
1184
+ this.$ = r[e];
1185
+ break;
1186
+ case 41:
1187
+ this.$ = r[e];
1188
+ break;
1189
+ case 42:
1190
+ this.$ = o.preparePath(!0, r[e], this._$);
1191
+ break;
1192
+ case 43:
1193
+ this.$ = o.preparePath(!1, r[e], this._$);
1194
+ break;
1195
+ case 44:
1196
+ r[e - 2].push({ part: o.id(r[e]), original: r[e], separator: r[e - 1] }), this.$ = r[e - 2];
1197
+ break;
1198
+ case 45:
1199
+ this.$ = [{ part: o.id(r[e]), original: r[e] }];
1200
+ break;
1201
+ case 46:
1202
+ this.$ = [];
1203
+ break;
1204
+ case 47:
1205
+ r[e - 1].push(r[e]);
1206
+ break;
1207
+ case 48:
1208
+ this.$ = [];
1209
+ break;
1210
+ case 49:
1211
+ r[e - 1].push(r[e]);
1212
+ break;
1213
+ case 50:
1214
+ this.$ = [];
1215
+ break;
1216
+ case 51:
1217
+ r[e - 1].push(r[e]);
1218
+ break;
1219
+ case 58:
1220
+ this.$ = [];
1221
+ break;
1222
+ case 59:
1223
+ r[e - 1].push(r[e]);
1224
+ break;
1225
+ case 64:
1226
+ this.$ = [];
1227
+ break;
1228
+ case 65:
1229
+ r[e - 1].push(r[e]);
1230
+ break;
1231
+ case 70:
1232
+ this.$ = [];
1233
+ break;
1234
+ case 71:
1235
+ r[e - 1].push(r[e]);
1236
+ break;
1237
+ case 78:
1238
+ this.$ = [];
1239
+ break;
1240
+ case 79:
1241
+ r[e - 1].push(r[e]);
1242
+ break;
1243
+ case 82:
1244
+ this.$ = [];
1245
+ break;
1246
+ case 83:
1247
+ r[e - 1].push(r[e]);
1248
+ break;
1249
+ case 86:
1250
+ this.$ = [];
1251
+ break;
1252
+ case 87:
1253
+ r[e - 1].push(r[e]);
1254
+ break;
1255
+ case 90:
1256
+ this.$ = [];
1257
+ break;
1258
+ case 91:
1259
+ r[e - 1].push(r[e]);
1260
+ break;
1261
+ case 94:
1262
+ this.$ = [];
1263
+ break;
1264
+ case 95:
1265
+ r[e - 1].push(r[e]);
1266
+ break;
1267
+ case 98:
1268
+ this.$ = [r[e]];
1269
+ break;
1270
+ case 99:
1271
+ r[e - 1].push(r[e]);
1272
+ break;
1273
+ case 100:
1274
+ this.$ = [r[e]];
1275
+ break;
1276
+ case 101:
1277
+ r[e - 1].push(r[e]);
1278
+ break;
1279
+ }
1280
+ },
1281
+ table: [{ 3: 1, 4: 2, 5: [2, 46], 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 1: [3] }, { 5: [1, 4] }, { 5: [2, 2], 7: 5, 8: 6, 9: 7, 10: 8, 11: 9, 12: 10, 13: 11, 14: [1, 12], 15: [1, 20], 16: 17, 19: [1, 23], 24: 15, 27: 16, 29: [1, 21], 34: [1, 22], 39: [2, 2], 44: [2, 2], 47: [2, 2], 48: [1, 13], 51: [1, 14], 55: [1, 18], 59: 19, 60: [1, 24] }, { 1: [2, 1] }, { 5: [2, 47], 14: [2, 47], 15: [2, 47], 19: [2, 47], 29: [2, 47], 34: [2, 47], 39: [2, 47], 44: [2, 47], 47: [2, 47], 48: [2, 47], 51: [2, 47], 55: [2, 47], 60: [2, 47] }, { 5: [2, 3], 14: [2, 3], 15: [2, 3], 19: [2, 3], 29: [2, 3], 34: [2, 3], 39: [2, 3], 44: [2, 3], 47: [2, 3], 48: [2, 3], 51: [2, 3], 55: [2, 3], 60: [2, 3] }, { 5: [2, 4], 14: [2, 4], 15: [2, 4], 19: [2, 4], 29: [2, 4], 34: [2, 4], 39: [2, 4], 44: [2, 4], 47: [2, 4], 48: [2, 4], 51: [2, 4], 55: [2, 4], 60: [2, 4] }, { 5: [2, 5], 14: [2, 5], 15: [2, 5], 19: [2, 5], 29: [2, 5], 34: [2, 5], 39: [2, 5], 44: [2, 5], 47: [2, 5], 48: [2, 5], 51: [2, 5], 55: [2, 5], 60: [2, 5] }, { 5: [2, 6], 14: [2, 6], 15: [2, 6], 19: [2, 6], 29: [2, 6], 34: [2, 6], 39: [2, 6], 44: [2, 6], 47: [2, 6], 48: [2, 6], 51: [2, 6], 55: [2, 6], 60: [2, 6] }, { 5: [2, 7], 14: [2, 7], 15: [2, 7], 19: [2, 7], 29: [2, 7], 34: [2, 7], 39: [2, 7], 44: [2, 7], 47: [2, 7], 48: [2, 7], 51: [2, 7], 55: [2, 7], 60: [2, 7] }, { 5: [2, 8], 14: [2, 8], 15: [2, 8], 19: [2, 8], 29: [2, 8], 34: [2, 8], 39: [2, 8], 44: [2, 8], 47: [2, 8], 48: [2, 8], 51: [2, 8], 55: [2, 8], 60: [2, 8] }, { 5: [2, 9], 14: [2, 9], 15: [2, 9], 19: [2, 9], 29: [2, 9], 34: [2, 9], 39: [2, 9], 44: [2, 9], 47: [2, 9], 48: [2, 9], 51: [2, 9], 55: [2, 9], 60: [2, 9] }, { 20: 25, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 36, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 4: 37, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 39: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 4: 38, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 15: [2, 48], 17: 39, 18: [2, 48] }, { 20: 41, 56: 40, 64: 42, 65: [1, 43], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 4: 44, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 5: [2, 10], 14: [2, 10], 15: [2, 10], 18: [2, 10], 19: [2, 10], 29: [2, 10], 34: [2, 10], 39: [2, 10], 44: [2, 10], 47: [2, 10], 48: [2, 10], 51: [2, 10], 55: [2, 10], 60: [2, 10] }, { 20: 45, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 46, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 47, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 41, 56: 48, 64: 42, 65: [1, 43], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 33: [2, 78], 49: 49, 65: [2, 78], 72: [2, 78], 80: [2, 78], 81: [2, 78], 82: [2, 78], 83: [2, 78], 84: [2, 78], 85: [2, 78] }, { 23: [2, 33], 33: [2, 33], 54: [2, 33], 65: [2, 33], 68: [2, 33], 72: [2, 33], 75: [2, 33], 80: [2, 33], 81: [2, 33], 82: [2, 33], 83: [2, 33], 84: [2, 33], 85: [2, 33] }, { 23: [2, 34], 33: [2, 34], 54: [2, 34], 65: [2, 34], 68: [2, 34], 72: [2, 34], 75: [2, 34], 80: [2, 34], 81: [2, 34], 82: [2, 34], 83: [2, 34], 84: [2, 34], 85: [2, 34] }, { 23: [2, 35], 33: [2, 35], 54: [2, 35], 65: [2, 35], 68: [2, 35], 72: [2, 35], 75: [2, 35], 80: [2, 35], 81: [2, 35], 82: [2, 35], 83: [2, 35], 84: [2, 35], 85: [2, 35] }, { 23: [2, 36], 33: [2, 36], 54: [2, 36], 65: [2, 36], 68: [2, 36], 72: [2, 36], 75: [2, 36], 80: [2, 36], 81: [2, 36], 82: [2, 36], 83: [2, 36], 84: [2, 36], 85: [2, 36] }, { 23: [2, 37], 33: [2, 37], 54: [2, 37], 65: [2, 37], 68: [2, 37], 72: [2, 37], 75: [2, 37], 80: [2, 37], 81: [2, 37], 82: [2, 37], 83: [2, 37], 84: [2, 37], 85: [2, 37] }, { 23: [2, 38], 33: [2, 38], 54: [2, 38], 65: [2, 38], 68: [2, 38], 72: [2, 38], 75: [2, 38], 80: [2, 38], 81: [2, 38], 82: [2, 38], 83: [2, 38], 84: [2, 38], 85: [2, 38] }, { 23: [2, 39], 33: [2, 39], 54: [2, 39], 65: [2, 39], 68: [2, 39], 72: [2, 39], 75: [2, 39], 80: [2, 39], 81: [2, 39], 82: [2, 39], 83: [2, 39], 84: [2, 39], 85: [2, 39] }, { 23: [2, 43], 33: [2, 43], 54: [2, 43], 65: [2, 43], 68: [2, 43], 72: [2, 43], 75: [2, 43], 80: [2, 43], 81: [2, 43], 82: [2, 43], 83: [2, 43], 84: [2, 43], 85: [2, 43], 87: [1, 50] }, { 72: [1, 35], 86: 51 }, { 23: [2, 45], 33: [2, 45], 54: [2, 45], 65: [2, 45], 68: [2, 45], 72: [2, 45], 75: [2, 45], 80: [2, 45], 81: [2, 45], 82: [2, 45], 83: [2, 45], 84: [2, 45], 85: [2, 45], 87: [2, 45] }, { 52: 52, 54: [2, 82], 65: [2, 82], 72: [2, 82], 80: [2, 82], 81: [2, 82], 82: [2, 82], 83: [2, 82], 84: [2, 82], 85: [2, 82] }, { 25: 53, 38: 55, 39: [1, 57], 43: 56, 44: [1, 58], 45: 54, 47: [2, 54] }, { 28: 59, 43: 60, 44: [1, 58], 47: [2, 56] }, { 13: 62, 15: [1, 20], 18: [1, 61] }, { 33: [2, 86], 57: 63, 65: [2, 86], 72: [2, 86], 80: [2, 86], 81: [2, 86], 82: [2, 86], 83: [2, 86], 84: [2, 86], 85: [2, 86] }, { 33: [2, 40], 65: [2, 40], 72: [2, 40], 80: [2, 40], 81: [2, 40], 82: [2, 40], 83: [2, 40], 84: [2, 40], 85: [2, 40] }, { 33: [2, 41], 65: [2, 41], 72: [2, 41], 80: [2, 41], 81: [2, 41], 82: [2, 41], 83: [2, 41], 84: [2, 41], 85: [2, 41] }, { 20: 64, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 26: 65, 47: [1, 66] }, { 30: 67, 33: [2, 58], 65: [2, 58], 72: [2, 58], 75: [2, 58], 80: [2, 58], 81: [2, 58], 82: [2, 58], 83: [2, 58], 84: [2, 58], 85: [2, 58] }, { 33: [2, 64], 35: 68, 65: [2, 64], 72: [2, 64], 75: [2, 64], 80: [2, 64], 81: [2, 64], 82: [2, 64], 83: [2, 64], 84: [2, 64], 85: [2, 64] }, { 21: 69, 23: [2, 50], 65: [2, 50], 72: [2, 50], 80: [2, 50], 81: [2, 50], 82: [2, 50], 83: [2, 50], 84: [2, 50], 85: [2, 50] }, { 33: [2, 90], 61: 70, 65: [2, 90], 72: [2, 90], 80: [2, 90], 81: [2, 90], 82: [2, 90], 83: [2, 90], 84: [2, 90], 85: [2, 90] }, { 20: 74, 33: [2, 80], 50: 71, 63: 72, 64: 75, 65: [1, 43], 69: 73, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 72: [1, 79] }, { 23: [2, 42], 33: [2, 42], 54: [2, 42], 65: [2, 42], 68: [2, 42], 72: [2, 42], 75: [2, 42], 80: [2, 42], 81: [2, 42], 82: [2, 42], 83: [2, 42], 84: [2, 42], 85: [2, 42], 87: [1, 50] }, { 20: 74, 53: 80, 54: [2, 84], 63: 81, 64: 75, 65: [1, 43], 69: 82, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 26: 83, 47: [1, 66] }, { 47: [2, 55] }, { 4: 84, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 39: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 47: [2, 20] }, { 20: 85, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 4: 86, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 26: 87, 47: [1, 66] }, { 47: [2, 57] }, { 5: [2, 11], 14: [2, 11], 15: [2, 11], 19: [2, 11], 29: [2, 11], 34: [2, 11], 39: [2, 11], 44: [2, 11], 47: [2, 11], 48: [2, 11], 51: [2, 11], 55: [2, 11], 60: [2, 11] }, { 15: [2, 49], 18: [2, 49] }, { 20: 74, 33: [2, 88], 58: 88, 63: 89, 64: 75, 65: [1, 43], 69: 90, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 65: [2, 94], 66: 91, 68: [2, 94], 72: [2, 94], 80: [2, 94], 81: [2, 94], 82: [2, 94], 83: [2, 94], 84: [2, 94], 85: [2, 94] }, { 5: [2, 25], 14: [2, 25], 15: [2, 25], 19: [2, 25], 29: [2, 25], 34: [2, 25], 39: [2, 25], 44: [2, 25], 47: [2, 25], 48: [2, 25], 51: [2, 25], 55: [2, 25], 60: [2, 25] }, { 20: 92, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 74, 31: 93, 33: [2, 60], 63: 94, 64: 75, 65: [1, 43], 69: 95, 70: 76, 71: 77, 72: [1, 78], 75: [2, 60], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 74, 33: [2, 66], 36: 96, 63: 97, 64: 75, 65: [1, 43], 69: 98, 70: 76, 71: 77, 72: [1, 78], 75: [2, 66], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 74, 22: 99, 23: [2, 52], 63: 100, 64: 75, 65: [1, 43], 69: 101, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 74, 33: [2, 92], 62: 102, 63: 103, 64: 75, 65: [1, 43], 69: 104, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 33: [1, 105] }, { 33: [2, 79], 65: [2, 79], 72: [2, 79], 80: [2, 79], 81: [2, 79], 82: [2, 79], 83: [2, 79], 84: [2, 79], 85: [2, 79] }, { 33: [2, 81] }, { 23: [2, 27], 33: [2, 27], 54: [2, 27], 65: [2, 27], 68: [2, 27], 72: [2, 27], 75: [2, 27], 80: [2, 27], 81: [2, 27], 82: [2, 27], 83: [2, 27], 84: [2, 27], 85: [2, 27] }, { 23: [2, 28], 33: [2, 28], 54: [2, 28], 65: [2, 28], 68: [2, 28], 72: [2, 28], 75: [2, 28], 80: [2, 28], 81: [2, 28], 82: [2, 28], 83: [2, 28], 84: [2, 28], 85: [2, 28] }, { 23: [2, 30], 33: [2, 30], 54: [2, 30], 68: [2, 30], 71: 106, 72: [1, 107], 75: [2, 30] }, { 23: [2, 98], 33: [2, 98], 54: [2, 98], 68: [2, 98], 72: [2, 98], 75: [2, 98] }, { 23: [2, 45], 33: [2, 45], 54: [2, 45], 65: [2, 45], 68: [2, 45], 72: [2, 45], 73: [1, 108], 75: [2, 45], 80: [2, 45], 81: [2, 45], 82: [2, 45], 83: [2, 45], 84: [2, 45], 85: [2, 45], 87: [2, 45] }, { 23: [2, 44], 33: [2, 44], 54: [2, 44], 65: [2, 44], 68: [2, 44], 72: [2, 44], 75: [2, 44], 80: [2, 44], 81: [2, 44], 82: [2, 44], 83: [2, 44], 84: [2, 44], 85: [2, 44], 87: [2, 44] }, { 54: [1, 109] }, { 54: [2, 83], 65: [2, 83], 72: [2, 83], 80: [2, 83], 81: [2, 83], 82: [2, 83], 83: [2, 83], 84: [2, 83], 85: [2, 83] }, { 54: [2, 85] }, { 5: [2, 13], 14: [2, 13], 15: [2, 13], 19: [2, 13], 29: [2, 13], 34: [2, 13], 39: [2, 13], 44: [2, 13], 47: [2, 13], 48: [2, 13], 51: [2, 13], 55: [2, 13], 60: [2, 13] }, { 38: 55, 39: [1, 57], 43: 56, 44: [1, 58], 45: 111, 46: 110, 47: [2, 76] }, { 33: [2, 70], 40: 112, 65: [2, 70], 72: [2, 70], 75: [2, 70], 80: [2, 70], 81: [2, 70], 82: [2, 70], 83: [2, 70], 84: [2, 70], 85: [2, 70] }, { 47: [2, 18] }, { 5: [2, 14], 14: [2, 14], 15: [2, 14], 19: [2, 14], 29: [2, 14], 34: [2, 14], 39: [2, 14], 44: [2, 14], 47: [2, 14], 48: [2, 14], 51: [2, 14], 55: [2, 14], 60: [2, 14] }, { 33: [1, 113] }, { 33: [2, 87], 65: [2, 87], 72: [2, 87], 80: [2, 87], 81: [2, 87], 82: [2, 87], 83: [2, 87], 84: [2, 87], 85: [2, 87] }, { 33: [2, 89] }, { 20: 74, 63: 115, 64: 75, 65: [1, 43], 67: 114, 68: [2, 96], 69: 116, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 33: [1, 117] }, { 32: 118, 33: [2, 62], 74: 119, 75: [1, 120] }, { 33: [2, 59], 65: [2, 59], 72: [2, 59], 75: [2, 59], 80: [2, 59], 81: [2, 59], 82: [2, 59], 83: [2, 59], 84: [2, 59], 85: [2, 59] }, { 33: [2, 61], 75: [2, 61] }, { 33: [2, 68], 37: 121, 74: 122, 75: [1, 120] }, { 33: [2, 65], 65: [2, 65], 72: [2, 65], 75: [2, 65], 80: [2, 65], 81: [2, 65], 82: [2, 65], 83: [2, 65], 84: [2, 65], 85: [2, 65] }, { 33: [2, 67], 75: [2, 67] }, { 23: [1, 123] }, { 23: [2, 51], 65: [2, 51], 72: [2, 51], 80: [2, 51], 81: [2, 51], 82: [2, 51], 83: [2, 51], 84: [2, 51], 85: [2, 51] }, { 23: [2, 53] }, { 33: [1, 124] }, { 33: [2, 91], 65: [2, 91], 72: [2, 91], 80: [2, 91], 81: [2, 91], 82: [2, 91], 83: [2, 91], 84: [2, 91], 85: [2, 91] }, { 33: [2, 93] }, { 5: [2, 22], 14: [2, 22], 15: [2, 22], 19: [2, 22], 29: [2, 22], 34: [2, 22], 39: [2, 22], 44: [2, 22], 47: [2, 22], 48: [2, 22], 51: [2, 22], 55: [2, 22], 60: [2, 22] }, { 23: [2, 99], 33: [2, 99], 54: [2, 99], 68: [2, 99], 72: [2, 99], 75: [2, 99] }, { 73: [1, 108] }, { 20: 74, 63: 125, 64: 75, 65: [1, 43], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 5: [2, 23], 14: [2, 23], 15: [2, 23], 19: [2, 23], 29: [2, 23], 34: [2, 23], 39: [2, 23], 44: [2, 23], 47: [2, 23], 48: [2, 23], 51: [2, 23], 55: [2, 23], 60: [2, 23] }, { 47: [2, 19] }, { 47: [2, 77] }, { 20: 74, 33: [2, 72], 41: 126, 63: 127, 64: 75, 65: [1, 43], 69: 128, 70: 76, 71: 77, 72: [1, 78], 75: [2, 72], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 5: [2, 24], 14: [2, 24], 15: [2, 24], 19: [2, 24], 29: [2, 24], 34: [2, 24], 39: [2, 24], 44: [2, 24], 47: [2, 24], 48: [2, 24], 51: [2, 24], 55: [2, 24], 60: [2, 24] }, { 68: [1, 129] }, { 65: [2, 95], 68: [2, 95], 72: [2, 95], 80: [2, 95], 81: [2, 95], 82: [2, 95], 83: [2, 95], 84: [2, 95], 85: [2, 95] }, { 68: [2, 97] }, { 5: [2, 21], 14: [2, 21], 15: [2, 21], 19: [2, 21], 29: [2, 21], 34: [2, 21], 39: [2, 21], 44: [2, 21], 47: [2, 21], 48: [2, 21], 51: [2, 21], 55: [2, 21], 60: [2, 21] }, { 33: [1, 130] }, { 33: [2, 63] }, { 72: [1, 132], 76: 131 }, { 33: [1, 133] }, { 33: [2, 69] }, { 15: [2, 12], 18: [2, 12] }, { 14: [2, 26], 15: [2, 26], 19: [2, 26], 29: [2, 26], 34: [2, 26], 47: [2, 26], 48: [2, 26], 51: [2, 26], 55: [2, 26], 60: [2, 26] }, { 23: [2, 31], 33: [2, 31], 54: [2, 31], 68: [2, 31], 72: [2, 31], 75: [2, 31] }, { 33: [2, 74], 42: 134, 74: 135, 75: [1, 120] }, { 33: [2, 71], 65: [2, 71], 72: [2, 71], 75: [2, 71], 80: [2, 71], 81: [2, 71], 82: [2, 71], 83: [2, 71], 84: [2, 71], 85: [2, 71] }, { 33: [2, 73], 75: [2, 73] }, { 23: [2, 29], 33: [2, 29], 54: [2, 29], 65: [2, 29], 68: [2, 29], 72: [2, 29], 75: [2, 29], 80: [2, 29], 81: [2, 29], 82: [2, 29], 83: [2, 29], 84: [2, 29], 85: [2, 29] }, { 14: [2, 15], 15: [2, 15], 19: [2, 15], 29: [2, 15], 34: [2, 15], 39: [2, 15], 44: [2, 15], 47: [2, 15], 48: [2, 15], 51: [2, 15], 55: [2, 15], 60: [2, 15] }, { 72: [1, 137], 77: [1, 136] }, { 72: [2, 100], 77: [2, 100] }, { 14: [2, 16], 15: [2, 16], 19: [2, 16], 29: [2, 16], 34: [2, 16], 44: [2, 16], 47: [2, 16], 48: [2, 16], 51: [2, 16], 55: [2, 16], 60: [2, 16] }, { 33: [1, 138] }, { 33: [2, 75] }, { 33: [2, 32] }, { 72: [2, 101], 77: [2, 101] }, { 14: [2, 17], 15: [2, 17], 19: [2, 17], 29: [2, 17], 34: [2, 17], 39: [2, 17], 44: [2, 17], 47: [2, 17], 48: [2, 17], 51: [2, 17], 55: [2, 17], 60: [2, 17] }],
1282
+ defaultActions: { 4: [2, 1], 54: [2, 55], 56: [2, 20], 60: [2, 57], 73: [2, 81], 82: [2, 85], 86: [2, 18], 90: [2, 89], 101: [2, 53], 104: [2, 93], 110: [2, 19], 111: [2, 77], 116: [2, 97], 119: [2, 63], 122: [2, 69], 135: [2, 75], 136: [2, 32] },
1283
+ parseError: function(h, u) {
1284
+ throw new Error(h);
1285
+ },
1286
+ parse: function(h) {
1287
+ var u = this, a = [0], o = [null], d = [], r = this.table, t = "", e = 0, l = 0;
1288
+ this.lexer.setInput(h), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, this.yy.parser = this, typeof this.lexer.yylloc > "u" && (this.lexer.yylloc = {});
1289
+ var p = this.lexer.yylloc;
1290
+ d.push(p);
1291
+ var _ = this.lexer.options && this.lexer.options.ranges;
1292
+ typeof this.yy.parseError == "function" && (this.parseError = this.yy.parseError);
1293
+ function S() {
1294
+ var O;
1295
+ return O = u.lexer.lex() || 1, typeof O != "number" && (O = u.symbols_[O] || O), O;
1296
+ }
1297
+ for (var b, v, y, C, k = {}, E, x, w, P; ; ) {
1298
+ if (v = a[a.length - 1], this.defaultActions[v] ? y = this.defaultActions[v] : ((b === null || typeof b > "u") && (b = S()), y = r[v] && r[v][b]), typeof y > "u" || !y.length || !y[0]) {
1299
+ var L = "";
1300
+ {
1301
+ P = [];
1302
+ for (E in r[v]) this.terminals_[E] && E > 2 && P.push("'" + this.terminals_[E] + "'");
1303
+ this.lexer.showPosition ? L = "Parse error on line " + (e + 1) + `:
1304
+ ` + this.lexer.showPosition() + `
1305
+ Expecting ` + P.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : L = "Parse error on line " + (e + 1) + ": Unexpected " + (b == 1 ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(L, { text: this.lexer.match, token: this.terminals_[b] || b, line: this.lexer.yylineno, loc: p, expected: P });
1306
+ }
1307
+ }
1308
+ if (y[0] instanceof Array && y.length > 1)
1309
+ throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + b);
1310
+ switch (y[0]) {
1311
+ case 1:
1312
+ a.push(b), o.push(this.lexer.yytext), d.push(this.lexer.yylloc), a.push(y[1]), b = null, l = this.lexer.yyleng, t = this.lexer.yytext, e = this.lexer.yylineno, p = this.lexer.yylloc;
1313
+ break;
1314
+ case 2:
1315
+ if (x = this.productions_[y[1]][1], k.$ = o[o.length - x], k._$ = { first_line: d[d.length - (x || 1)].first_line, last_line: d[d.length - 1].last_line, first_column: d[d.length - (x || 1)].first_column, last_column: d[d.length - 1].last_column }, _ && (k._$.range = [d[d.length - (x || 1)].range[0], d[d.length - 1].range[1]]), C = this.performAction.call(k, t, l, e, this.yy, y[1], o, d), typeof C < "u")
1316
+ return C;
1317
+ x && (a = a.slice(0, -1 * x * 2), o = o.slice(0, -1 * x), d = d.slice(0, -1 * x)), a.push(this.productions_[y[1]][0]), o.push(k.$), d.push(k._$), w = r[a[a.length - 2]][a[a.length - 1]], a.push(w);
1318
+ break;
1319
+ case 3:
1320
+ return !0;
1321
+ }
1322
+ }
1323
+ return !0;
1324
+ }
1325
+ }, m = function() {
1326
+ var g = {
1327
+ EOF: 1,
1328
+ parseError: function(u, a) {
1329
+ if (this.yy.parser)
1330
+ this.yy.parser.parseError(u, a);
1331
+ else
1332
+ throw new Error(u);
1333
+ },
1334
+ setInput: function(u) {
1335
+ return this._input = u, this._more = this._less = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1336
+ },
1337
+ input: function() {
1338
+ var u = this._input[0];
1339
+ this.yytext += u, this.yyleng++, this.offset++, this.match += u, this.matched += u;
1340
+ var a = u.match(/(?:\r\n?|\n).*/g);
1341
+ return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), u;
1342
+ },
1343
+ unput: function(u) {
1344
+ var a = u.length, o = u.split(/(?:\r\n?|\n)/g);
1345
+ this._input = u + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a - 1), this.offset -= a;
1346
+ var d = this.match.split(/(?:\r\n?|\n)/g);
1347
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
1348
+ var r = this.yylloc.range;
1349
+ return this.yylloc = {
1350
+ first_line: this.yylloc.first_line,
1351
+ last_line: this.yylineno + 1,
1352
+ first_column: this.yylloc.first_column,
1353
+ last_column: o ? (o.length === d.length ? this.yylloc.first_column : 0) + d[d.length - o.length].length - o[0].length : this.yylloc.first_column - a
1354
+ }, this.options.ranges && (this.yylloc.range = [r[0], r[0] + this.yyleng - a]), this;
1355
+ },
1356
+ more: function() {
1357
+ return this._more = !0, this;
1358
+ },
1359
+ less: function(u) {
1360
+ this.unput(this.match.slice(u));
1361
+ },
1362
+ pastInput: function() {
1363
+ var u = this.matched.substr(0, this.matched.length - this.match.length);
1364
+ return (u.length > 20 ? "..." : "") + u.substr(-20).replace(/\n/g, "");
1365
+ },
1366
+ upcomingInput: function() {
1367
+ var u = this.match;
1368
+ return u.length < 20 && (u += this._input.substr(0, 20 - u.length)), (u.substr(0, 20) + (u.length > 20 ? "..." : "")).replace(/\n/g, "");
1369
+ },
1370
+ showPosition: function() {
1371
+ var u = this.pastInput(), a = new Array(u.length + 1).join("-");
1372
+ return u + this.upcomingInput() + `
1373
+ ` + a + "^";
1374
+ },
1375
+ next: function() {
1376
+ if (this.done)
1377
+ return this.EOF;
1378
+ this._input || (this.done = !0);
1379
+ var u, a, o, d, r;
1380
+ this._more || (this.yytext = "", this.match = "");
1381
+ for (var t = this._currentRules(), e = 0; e < t.length && (o = this._input.match(this.rules[t[e]]), !(o && (!a || o[0].length > a[0].length) && (a = o, d = e, !this.options.flex))); e++)
1382
+ ;
1383
+ return a ? (r = a[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
1384
+ first_line: this.yylloc.last_line,
1385
+ last_line: this.yylineno + 1,
1386
+ first_column: this.yylloc.last_column,
1387
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + a[0].length
1388
+ }, this.yytext += a[0], this.match += a[0], this.matches = a, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._input = this._input.slice(a[0].length), this.matched += a[0], u = this.performAction.call(this, this.yy, this, t[d], this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), u || void 0) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1389
+ ` + this.showPosition(), { text: "", token: null, line: this.yylineno });
1390
+ },
1391
+ lex: function() {
1392
+ var u = this.next();
1393
+ return typeof u < "u" ? u : this.lex();
1394
+ },
1395
+ begin: function(u) {
1396
+ this.conditionStack.push(u);
1397
+ },
1398
+ popState: function() {
1399
+ return this.conditionStack.pop();
1400
+ },
1401
+ _currentRules: function() {
1402
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
1403
+ },
1404
+ topState: function() {
1405
+ return this.conditionStack[this.conditionStack.length - 2];
1406
+ },
1407
+ pushState: function(u) {
1408
+ this.begin(u);
1409
+ }
1410
+ };
1411
+ return g.options = {}, g.performAction = function(u, a, o, d) {
1412
+ function r(t, e) {
1413
+ return a.yytext = a.yytext.substring(t, a.yyleng - e + t);
1414
+ }
1415
+ switch (o) {
1416
+ case 0:
1417
+ if (a.yytext.slice(-2) === "\\\\" ? (r(0, 1), this.begin("mu")) : a.yytext.slice(-1) === "\\" ? (r(0, 1), this.begin("emu")) : this.begin("mu"), a.yytext) return 15;
1418
+ break;
1419
+ case 1:
1420
+ return 15;
1421
+ case 2:
1422
+ return this.popState(), 15;
1423
+ case 3:
1424
+ return this.begin("raw"), 15;
1425
+ case 4:
1426
+ return this.popState(), this.conditionStack[this.conditionStack.length - 1] === "raw" ? 15 : (r(5, 9), "END_RAW_BLOCK");
1427
+ case 5:
1428
+ return 15;
1429
+ case 6:
1430
+ return this.popState(), 14;
1431
+ case 7:
1432
+ return 65;
1433
+ case 8:
1434
+ return 68;
1435
+ case 9:
1436
+ return 19;
1437
+ case 10:
1438
+ return this.popState(), this.begin("raw"), 23;
1439
+ case 11:
1440
+ return 55;
1441
+ case 12:
1442
+ return 60;
1443
+ case 13:
1444
+ return 29;
1445
+ case 14:
1446
+ return 47;
1447
+ case 15:
1448
+ return this.popState(), 44;
1449
+ case 16:
1450
+ return this.popState(), 44;
1451
+ case 17:
1452
+ return 34;
1453
+ case 18:
1454
+ return 39;
1455
+ case 19:
1456
+ return 51;
1457
+ case 20:
1458
+ return 48;
1459
+ case 21:
1460
+ this.unput(a.yytext), this.popState(), this.begin("com");
1461
+ break;
1462
+ case 22:
1463
+ return this.popState(), 14;
1464
+ case 23:
1465
+ return 48;
1466
+ case 24:
1467
+ return 73;
1468
+ case 25:
1469
+ return 72;
1470
+ case 26:
1471
+ return 72;
1472
+ case 27:
1473
+ return 87;
1474
+ case 28:
1475
+ break;
1476
+ case 29:
1477
+ return this.popState(), 54;
1478
+ case 30:
1479
+ return this.popState(), 33;
1480
+ case 31:
1481
+ return a.yytext = r(1, 2).replace(/\\"/g, '"'), 80;
1482
+ case 32:
1483
+ return a.yytext = r(1, 2).replace(/\\'/g, "'"), 80;
1484
+ case 33:
1485
+ return 85;
1486
+ case 34:
1487
+ return 82;
1488
+ case 35:
1489
+ return 82;
1490
+ case 36:
1491
+ return 83;
1492
+ case 37:
1493
+ return 84;
1494
+ case 38:
1495
+ return 81;
1496
+ case 39:
1497
+ return 75;
1498
+ case 40:
1499
+ return 77;
1500
+ case 41:
1501
+ return 72;
1502
+ case 42:
1503
+ return a.yytext = a.yytext.replace(/\\([\\\]])/g, "$1"), 72;
1504
+ case 43:
1505
+ return "INVALID";
1506
+ case 44:
1507
+ return 5;
1508
+ }
1509
+ }, g.rules = [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]+?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/], g.conditions = { mu: { rules: [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], inclusive: !1 }, emu: { rules: [2], inclusive: !1 }, com: { rules: [6], inclusive: !1 }, raw: { rules: [3, 4, 5], inclusive: !1 }, INITIAL: { rules: [0, 1, 44], inclusive: !0 } }, g;
1510
+ }();
1511
+ c.lexer = m;
1512
+ function f() {
1513
+ this.yy = {};
1514
+ }
1515
+ return f.prototype = c, c.Parser = f, new f();
1516
+ }();
1517
+ i.default = s, n.exports = i.default;
1518
+ }(Le, Le.exports)), Le.exports;
1519
+ }
1520
+ var xe = { exports: {} }, Oe = { exports: {} }, Nt;
1521
+ function dr() {
1522
+ return Nt || (Nt = 1, function(n, i) {
1523
+ i.__esModule = !0;
1524
+ function s(a) {
1525
+ return a && a.__esModule ? a : { default: a };
1526
+ }
1527
+ var c = q(), m = s(c);
1528
+ function f() {
1529
+ this.parents = [];
1530
+ }
1531
+ f.prototype = {
1532
+ constructor: f,
1533
+ mutating: !1,
1534
+ // Visits a given value. If mutating, will replace the value if necessary.
1535
+ acceptKey: function(o, d) {
1536
+ var r = this.accept(o[d]);
1537
+ if (this.mutating) {
1538
+ if (r && !f.prototype[r.type])
1539
+ throw new m.default('Unexpected node type "' + r.type + '" found when accepting ' + d + " on " + o.type);
1540
+ o[d] = r;
1541
+ }
1542
+ },
1543
+ // Performs an accept operation with added sanity check to ensure
1544
+ // required keys are not removed.
1545
+ acceptRequired: function(o, d) {
1546
+ if (this.acceptKey(o, d), !o[d])
1547
+ throw new m.default(o.type + " requires " + d);
1548
+ },
1549
+ // Traverses a given array. If mutating, empty respnses will be removed
1550
+ // for child elements.
1551
+ acceptArray: function(o) {
1552
+ for (var d = 0, r = o.length; d < r; d++)
1553
+ this.acceptKey(o, d), o[d] || (o.splice(d, 1), d--, r--);
1554
+ },
1555
+ accept: function(o) {
1556
+ if (o) {
1557
+ if (!this[o.type])
1558
+ throw new m.default("Unknown type: " + o.type, o);
1559
+ this.current && this.parents.unshift(this.current), this.current = o;
1560
+ var d = this[o.type](o);
1561
+ if (this.current = this.parents.shift(), !this.mutating || d)
1562
+ return d;
1563
+ if (d !== !1)
1564
+ return o;
1565
+ }
1566
+ },
1567
+ Program: function(o) {
1568
+ this.acceptArray(o.body);
1569
+ },
1570
+ MustacheStatement: g,
1571
+ Decorator: g,
1572
+ BlockStatement: h,
1573
+ DecoratorBlock: h,
1574
+ PartialStatement: u,
1575
+ PartialBlockStatement: function(o) {
1576
+ u.call(this, o), this.acceptKey(o, "program");
1577
+ },
1578
+ ContentStatement: function() {
1579
+ },
1580
+ CommentStatement: function() {
1581
+ },
1582
+ SubExpression: g,
1583
+ PathExpression: function() {
1584
+ },
1585
+ StringLiteral: function() {
1586
+ },
1587
+ NumberLiteral: function() {
1588
+ },
1589
+ BooleanLiteral: function() {
1590
+ },
1591
+ UndefinedLiteral: function() {
1592
+ },
1593
+ NullLiteral: function() {
1594
+ },
1595
+ Hash: function(o) {
1596
+ this.acceptArray(o.pairs);
1597
+ },
1598
+ HashPair: function(o) {
1599
+ this.acceptRequired(o, "value");
1600
+ }
1601
+ };
1602
+ function g(a) {
1603
+ this.acceptRequired(a, "path"), this.acceptArray(a.params), this.acceptKey(a, "hash");
1604
+ }
1605
+ function h(a) {
1606
+ g.call(this, a), this.acceptKey(a, "program"), this.acceptKey(a, "inverse");
1607
+ }
1608
+ function u(a) {
1609
+ this.acceptRequired(a, "name"), this.acceptArray(a.params), this.acceptKey(a, "hash");
1610
+ }
1611
+ i.default = f, n.exports = i.default;
1612
+ }(Oe, Oe.exports)), Oe.exports;
1613
+ }
1614
+ var It;
1615
+ function Si() {
1616
+ return It || (It = 1, function(n, i) {
1617
+ i.__esModule = !0;
1618
+ function s(o) {
1619
+ return o && o.__esModule ? o : { default: o };
1620
+ }
1621
+ var c = dr(), m = s(c);
1622
+ function f() {
1623
+ var o = arguments.length <= 0 || arguments[0] === void 0 ? {} : arguments[0];
1624
+ this.options = o;
1625
+ }
1626
+ f.prototype = new m.default(), f.prototype.Program = function(o) {
1627
+ var d = !this.options.ignoreStandalone, r = !this.isRootSeen;
1628
+ this.isRootSeen = !0;
1629
+ for (var t = o.body, e = 0, l = t.length; e < l; e++) {
1630
+ var p = t[e], _ = this.accept(p);
1631
+ if (_) {
1632
+ var S = g(t, e, r), b = h(t, e, r), v = _.openStandalone && S, y = _.closeStandalone && b, C = _.inlineStandalone && S && b;
1633
+ _.close && u(t, e, !0), _.open && a(t, e, !0), d && C && (u(t, e), a(t, e) && p.type === "PartialStatement" && (p.indent = /([ \t]+$)/.exec(t[e - 1].original)[1])), d && v && (u((p.program || p.inverse).body), a(t, e)), d && y && (u(t, e), a((p.inverse || p.program).body));
1634
+ }
1635
+ }
1636
+ return o;
1637
+ }, f.prototype.BlockStatement = f.prototype.DecoratorBlock = f.prototype.PartialBlockStatement = function(o) {
1638
+ this.accept(o.program), this.accept(o.inverse);
1639
+ var d = o.program || o.inverse, r = o.program && o.inverse, t = r, e = r;
1640
+ if (r && r.chained)
1641
+ for (t = r.body[0].program; e.chained; )
1642
+ e = e.body[e.body.length - 1].program;
1643
+ var l = {
1644
+ open: o.openStrip.open,
1645
+ close: o.closeStrip.close,
1646
+ // Determine the standalone candiacy. Basically flag our content as being possibly standalone
1647
+ // so our parent can determine if we actually are standalone
1648
+ openStandalone: h(d.body),
1649
+ closeStandalone: g((t || d).body)
1650
+ };
1651
+ if (o.openStrip.close && u(d.body, null, !0), r) {
1652
+ var p = o.inverseStrip;
1653
+ p.open && a(d.body, null, !0), p.close && u(t.body, null, !0), o.closeStrip.open && a(e.body, null, !0), !this.options.ignoreStandalone && g(d.body) && h(t.body) && (a(d.body), u(t.body));
1654
+ } else o.closeStrip.open && a(d.body, null, !0);
1655
+ return l;
1656
+ }, f.prototype.Decorator = f.prototype.MustacheStatement = function(o) {
1657
+ return o.strip;
1658
+ }, f.prototype.PartialStatement = f.prototype.CommentStatement = function(o) {
1659
+ var d = o.strip || {};
1660
+ return {
1661
+ inlineStandalone: !0,
1662
+ open: d.open,
1663
+ close: d.close
1664
+ };
1665
+ };
1666
+ function g(o, d, r) {
1667
+ d === void 0 && (d = o.length);
1668
+ var t = o[d - 1], e = o[d - 2];
1669
+ if (!t)
1670
+ return r;
1671
+ if (t.type === "ContentStatement")
1672
+ return (e || !r ? /\r?\n\s*?$/ : /(^|\r?\n)\s*?$/).test(t.original);
1673
+ }
1674
+ function h(o, d, r) {
1675
+ d === void 0 && (d = -1);
1676
+ var t = o[d + 1], e = o[d + 2];
1677
+ if (!t)
1678
+ return r;
1679
+ if (t.type === "ContentStatement")
1680
+ return (e || !r ? /^\s*?\r?\n/ : /^\s*?(\r?\n|$)/).test(t.original);
1681
+ }
1682
+ function u(o, d, r) {
1683
+ var t = o[d == null ? 0 : d + 1];
1684
+ if (!(!t || t.type !== "ContentStatement" || !r && t.rightStripped)) {
1685
+ var e = t.value;
1686
+ t.value = t.value.replace(r ? /^\s+/ : /^[ \t]*\r?\n?/, ""), t.rightStripped = t.value !== e;
1687
+ }
1688
+ }
1689
+ function a(o, d, r) {
1690
+ var t = o[d == null ? o.length - 1 : d - 1];
1691
+ if (!(!t || t.type !== "ContentStatement" || !r && t.leftStripped)) {
1692
+ var e = t.value;
1693
+ return t.value = t.value.replace(r ? /\s+$/ : /[ \t]+$/, ""), t.leftStripped = t.value !== e, t.leftStripped;
1694
+ }
1695
+ }
1696
+ i.default = f, n.exports = i.default;
1697
+ }(xe, xe.exports)), xe.exports;
1698
+ }
1699
+ var B = {}, Rt;
1700
+ function yi() {
1701
+ if (Rt) return B;
1702
+ Rt = 1, B.__esModule = !0, B.SourceLocation = m, B.id = f, B.stripFlags = g, B.stripComment = h, B.preparePath = u, B.prepareMustache = a, B.prepareRawBlock = o, B.prepareBlock = d, B.prepareProgram = r, B.preparePartialBlock = t;
1703
+ function n(e) {
1704
+ return e && e.__esModule ? e : { default: e };
1705
+ }
1706
+ var i = q(), s = n(i);
1707
+ function c(e, l) {
1708
+ if (l = l.path ? l.path.original : l, e.path.original !== l) {
1709
+ var p = { loc: e.path.loc };
1710
+ throw new s.default(e.path.original + " doesn't match " + l, p);
1711
+ }
1712
+ }
1713
+ function m(e, l) {
1714
+ this.source = e, this.start = {
1715
+ line: l.first_line,
1716
+ column: l.first_column
1717
+ }, this.end = {
1718
+ line: l.last_line,
1719
+ column: l.last_column
1720
+ };
1721
+ }
1722
+ function f(e) {
1723
+ return /^\[.*\]$/.test(e) ? e.substring(1, e.length - 1) : e;
1724
+ }
1725
+ function g(e, l) {
1726
+ return {
1727
+ open: e.charAt(2) === "~",
1728
+ close: l.charAt(l.length - 3) === "~"
1729
+ };
1730
+ }
1731
+ function h(e) {
1732
+ return e.replace(/^\{\{~?!-?-?/, "").replace(/-?-?~?\}\}$/, "");
1733
+ }
1734
+ function u(e, l, p) {
1735
+ p = this.locInfo(p);
1736
+ for (var _ = e ? "@" : "", S = [], b = 0, v = 0, y = l.length; v < y; v++) {
1737
+ var C = l[v].part, k = l[v].original !== C;
1738
+ if (_ += (l[v].separator || "") + C, !k && (C === ".." || C === "." || C === "this")) {
1739
+ if (S.length > 0)
1740
+ throw new s.default("Invalid path: " + _, { loc: p });
1741
+ C === ".." && b++;
1742
+ } else
1743
+ S.push(C);
1744
+ }
1745
+ return {
1746
+ type: "PathExpression",
1747
+ data: e,
1748
+ depth: b,
1749
+ parts: S,
1750
+ original: _,
1751
+ loc: p
1752
+ };
1753
+ }
1754
+ function a(e, l, p, _, S, b) {
1755
+ var v = _.charAt(3) || _.charAt(2), y = v !== "{" && v !== "&", C = /\*/.test(_);
1756
+ return {
1757
+ type: C ? "Decorator" : "MustacheStatement",
1758
+ path: e,
1759
+ params: l,
1760
+ hash: p,
1761
+ escaped: y,
1762
+ strip: S,
1763
+ loc: this.locInfo(b)
1764
+ };
1765
+ }
1766
+ function o(e, l, p, _) {
1767
+ c(e, p), _ = this.locInfo(_);
1768
+ var S = {
1769
+ type: "Program",
1770
+ body: l,
1771
+ strip: {},
1772
+ loc: _
1773
+ };
1774
+ return {
1775
+ type: "BlockStatement",
1776
+ path: e.path,
1777
+ params: e.params,
1778
+ hash: e.hash,
1779
+ program: S,
1780
+ openStrip: {},
1781
+ inverseStrip: {},
1782
+ closeStrip: {},
1783
+ loc: _
1784
+ };
1785
+ }
1786
+ function d(e, l, p, _, S, b) {
1787
+ _ && _.path && c(e, _);
1788
+ var v = /\*/.test(e.open);
1789
+ l.blockParams = e.blockParams;
1790
+ var y = void 0, C = void 0;
1791
+ if (p) {
1792
+ if (v)
1793
+ throw new s.default("Unexpected inverse block on decorator", p);
1794
+ p.chain && (p.program.body[0].closeStrip = _.strip), C = p.strip, y = p.program;
1795
+ }
1796
+ return S && (S = y, y = l, l = S), {
1797
+ type: v ? "DecoratorBlock" : "BlockStatement",
1798
+ path: e.path,
1799
+ params: e.params,
1800
+ hash: e.hash,
1801
+ program: l,
1802
+ inverse: y,
1803
+ openStrip: e.strip,
1804
+ inverseStrip: C,
1805
+ closeStrip: _ && _.strip,
1806
+ loc: this.locInfo(b)
1807
+ };
1808
+ }
1809
+ function r(e, l) {
1810
+ if (!l && e.length) {
1811
+ var p = e[0].loc, _ = e[e.length - 1].loc;
1812
+ p && _ && (l = {
1813
+ source: p.source,
1814
+ start: {
1815
+ line: p.start.line,
1816
+ column: p.start.column
1817
+ },
1818
+ end: {
1819
+ line: _.end.line,
1820
+ column: _.end.column
1821
+ }
1822
+ });
1823
+ }
1824
+ return {
1825
+ type: "Program",
1826
+ body: e,
1827
+ strip: {},
1828
+ loc: l
1829
+ };
1830
+ }
1831
+ function t(e, l, p, _) {
1832
+ return c(e, p), {
1833
+ type: "PartialBlockStatement",
1834
+ name: e.path,
1835
+ params: e.params,
1836
+ hash: e.hash,
1837
+ program: l,
1838
+ openStrip: e.strip,
1839
+ closeStrip: p && p.strip,
1840
+ loc: this.locInfo(_)
1841
+ };
1842
+ }
1843
+ return B;
1844
+ }
1845
+ var Dt;
1846
+ function bi() {
1847
+ if (Dt) return z;
1848
+ Dt = 1, z.__esModule = !0, z.parseWithoutProcessing = o, z.parse = d;
1849
+ function n(r) {
1850
+ if (r && r.__esModule)
1851
+ return r;
1852
+ var t = {};
1853
+ if (r != null)
1854
+ for (var e in r)
1855
+ Object.prototype.hasOwnProperty.call(r, e) && (t[e] = r[e]);
1856
+ return t.default = r, t;
1857
+ }
1858
+ function i(r) {
1859
+ return r && r.__esModule ? r : { default: r };
1860
+ }
1861
+ var s = _i(), c = i(s), m = Si(), f = i(m), g = yi(), h = n(g), u = R();
1862
+ z.parser = c.default;
1863
+ var a = {};
1864
+ u.extend(a, h);
1865
+ function o(r, t) {
1866
+ if (r.type === "Program")
1867
+ return r;
1868
+ c.default.yy = a, a.locInfo = function(l) {
1869
+ return new a.SourceLocation(t && t.srcName, l);
1870
+ };
1871
+ var e = c.default.parse(r);
1872
+ return e;
1873
+ }
1874
+ function d(r, t) {
1875
+ var e = o(r, t), l = new f.default(t);
1876
+ return l.accept(e);
1877
+ }
1878
+ return z;
1879
+ }
1880
+ var j = {}, Bt;
1881
+ function Ci() {
1882
+ if (Bt) return j;
1883
+ Bt = 1, j.__esModule = !0, j.Compiler = h, j.precompile = u, j.compile = a;
1884
+ function n(r) {
1885
+ return r && r.__esModule ? r : { default: r };
1886
+ }
1887
+ var i = q(), s = n(i), c = R(), m = fr(), f = n(m), g = [].slice;
1888
+ function h() {
1889
+ }
1890
+ h.prototype = {
1891
+ compiler: h,
1892
+ equals: function(t) {
1893
+ var e = this.opcodes.length;
1894
+ if (t.opcodes.length !== e)
1895
+ return !1;
1896
+ for (var l = 0; l < e; l++) {
1897
+ var p = this.opcodes[l], _ = t.opcodes[l];
1898
+ if (p.opcode !== _.opcode || !o(p.args, _.args))
1899
+ return !1;
1900
+ }
1901
+ e = this.children.length;
1902
+ for (var l = 0; l < e; l++)
1903
+ if (!this.children[l].equals(t.children[l]))
1904
+ return !1;
1905
+ return !0;
1906
+ },
1907
+ guid: 0,
1908
+ compile: function(t, e) {
1909
+ return this.sourceNode = [], this.opcodes = [], this.children = [], this.options = e, this.stringParams = e.stringParams, this.trackIds = e.trackIds, e.blockParams = e.blockParams || [], e.knownHelpers = c.extend(/* @__PURE__ */ Object.create(null), {
1910
+ helperMissing: !0,
1911
+ blockHelperMissing: !0,
1912
+ each: !0,
1913
+ if: !0,
1914
+ unless: !0,
1915
+ with: !0,
1916
+ log: !0,
1917
+ lookup: !0
1918
+ }, e.knownHelpers), this.accept(t);
1919
+ },
1920
+ compileProgram: function(t) {
1921
+ var e = new this.compiler(), l = e.compile(t, this.options), p = this.guid++;
1922
+ return this.usePartial = this.usePartial || l.usePartial, this.children[p] = l, this.useDepths = this.useDepths || l.useDepths, p;
1923
+ },
1924
+ accept: function(t) {
1925
+ if (!this[t.type])
1926
+ throw new s.default("Unknown type: " + t.type, t);
1927
+ this.sourceNode.unshift(t);
1928
+ var e = this[t.type](t);
1929
+ return this.sourceNode.shift(), e;
1930
+ },
1931
+ Program: function(t) {
1932
+ this.options.blockParams.unshift(t.blockParams);
1933
+ for (var e = t.body, l = e.length, p = 0; p < l; p++)
1934
+ this.accept(e[p]);
1935
+ return this.options.blockParams.shift(), this.isSimple = l === 1, this.blockParams = t.blockParams ? t.blockParams.length : 0, this;
1936
+ },
1937
+ BlockStatement: function(t) {
1938
+ d(t);
1939
+ var e = t.program, l = t.inverse;
1940
+ e = e && this.compileProgram(e), l = l && this.compileProgram(l);
1941
+ var p = this.classifySexpr(t);
1942
+ p === "helper" ? this.helperSexpr(t, e, l) : p === "simple" ? (this.simpleSexpr(t), this.opcode("pushProgram", e), this.opcode("pushProgram", l), this.opcode("emptyHash"), this.opcode("blockValue", t.path.original)) : (this.ambiguousSexpr(t, e, l), this.opcode("pushProgram", e), this.opcode("pushProgram", l), this.opcode("emptyHash"), this.opcode("ambiguousBlockValue")), this.opcode("append");
1943
+ },
1944
+ DecoratorBlock: function(t) {
1945
+ var e = t.program && this.compileProgram(t.program), l = this.setupFullMustacheParams(t, e, void 0), p = t.path;
1946
+ this.useDecorators = !0, this.opcode("registerDecorator", l.length, p.original);
1947
+ },
1948
+ PartialStatement: function(t) {
1949
+ this.usePartial = !0;
1950
+ var e = t.program;
1951
+ e && (e = this.compileProgram(t.program));
1952
+ var l = t.params;
1953
+ if (l.length > 1)
1954
+ throw new s.default("Unsupported number of partial arguments: " + l.length, t);
1955
+ l.length || (this.options.explicitPartialContext ? this.opcode("pushLiteral", "undefined") : l.push({ type: "PathExpression", parts: [], depth: 0 }));
1956
+ var p = t.name.original, _ = t.name.type === "SubExpression";
1957
+ _ && this.accept(t.name), this.setupFullMustacheParams(t, e, void 0, !0);
1958
+ var S = t.indent || "";
1959
+ this.options.preventIndent && S && (this.opcode("appendContent", S), S = ""), this.opcode("invokePartial", _, p, S), this.opcode("append");
1960
+ },
1961
+ PartialBlockStatement: function(t) {
1962
+ this.PartialStatement(t);
1963
+ },
1964
+ MustacheStatement: function(t) {
1965
+ this.SubExpression(t), t.escaped && !this.options.noEscape ? this.opcode("appendEscaped") : this.opcode("append");
1966
+ },
1967
+ Decorator: function(t) {
1968
+ this.DecoratorBlock(t);
1969
+ },
1970
+ ContentStatement: function(t) {
1971
+ t.value && this.opcode("appendContent", t.value);
1972
+ },
1973
+ CommentStatement: function() {
1974
+ },
1975
+ SubExpression: function(t) {
1976
+ d(t);
1977
+ var e = this.classifySexpr(t);
1978
+ e === "simple" ? this.simpleSexpr(t) : e === "helper" ? this.helperSexpr(t) : this.ambiguousSexpr(t);
1979
+ },
1980
+ ambiguousSexpr: function(t, e, l) {
1981
+ var p = t.path, _ = p.parts[0], S = e != null || l != null;
1982
+ this.opcode("getContext", p.depth), this.opcode("pushProgram", e), this.opcode("pushProgram", l), p.strict = !0, this.accept(p), this.opcode("invokeAmbiguous", _, S);
1983
+ },
1984
+ simpleSexpr: function(t) {
1985
+ var e = t.path;
1986
+ e.strict = !0, this.accept(e), this.opcode("resolvePossibleLambda");
1987
+ },
1988
+ helperSexpr: function(t, e, l) {
1989
+ var p = this.setupFullMustacheParams(t, e, l), _ = t.path, S = _.parts[0];
1990
+ if (this.options.knownHelpers[S])
1991
+ this.opcode("invokeKnownHelper", p.length, S);
1992
+ else {
1993
+ if (this.options.knownHelpersOnly)
1994
+ throw new s.default("You specified knownHelpersOnly, but used the unknown helper " + S, t);
1995
+ _.strict = !0, _.falsy = !0, this.accept(_), this.opcode("invokeHelper", p.length, _.original, f.default.helpers.simpleId(_));
1996
+ }
1997
+ },
1998
+ PathExpression: function(t) {
1999
+ this.addDepth(t.depth), this.opcode("getContext", t.depth);
2000
+ var e = t.parts[0], l = f.default.helpers.scopedId(t), p = !t.depth && !l && this.blockParamIndex(e);
2001
+ p ? this.opcode("lookupBlockParam", p, t.parts) : e ? t.data ? (this.options.data = !0, this.opcode("lookupData", t.depth, t.parts, t.strict)) : this.opcode("lookupOnContext", t.parts, t.falsy, t.strict, l) : this.opcode("pushContext");
2002
+ },
2003
+ StringLiteral: function(t) {
2004
+ this.opcode("pushString", t.value);
2005
+ },
2006
+ NumberLiteral: function(t) {
2007
+ this.opcode("pushLiteral", t.value);
2008
+ },
2009
+ BooleanLiteral: function(t) {
2010
+ this.opcode("pushLiteral", t.value);
2011
+ },
2012
+ UndefinedLiteral: function() {
2013
+ this.opcode("pushLiteral", "undefined");
2014
+ },
2015
+ NullLiteral: function() {
2016
+ this.opcode("pushLiteral", "null");
2017
+ },
2018
+ Hash: function(t) {
2019
+ var e = t.pairs, l = 0, p = e.length;
2020
+ for (this.opcode("pushHash"); l < p; l++)
2021
+ this.pushParam(e[l].value);
2022
+ for (; l--; )
2023
+ this.opcode("assignToHash", e[l].key);
2024
+ this.opcode("popHash");
2025
+ },
2026
+ // HELPERS
2027
+ opcode: function(t) {
2028
+ this.opcodes.push({
2029
+ opcode: t,
2030
+ args: g.call(arguments, 1),
2031
+ loc: this.sourceNode[0].loc
2032
+ });
2033
+ },
2034
+ addDepth: function(t) {
2035
+ t && (this.useDepths = !0);
2036
+ },
2037
+ classifySexpr: function(t) {
2038
+ var e = f.default.helpers.simpleId(t.path), l = e && !!this.blockParamIndex(t.path.parts[0]), p = !l && f.default.helpers.helperExpression(t), _ = !l && (p || e);
2039
+ if (_ && !p) {
2040
+ var S = t.path.parts[0], b = this.options;
2041
+ b.knownHelpers[S] ? p = !0 : b.knownHelpersOnly && (_ = !1);
2042
+ }
2043
+ return p ? "helper" : _ ? "ambiguous" : "simple";
2044
+ },
2045
+ pushParams: function(t) {
2046
+ for (var e = 0, l = t.length; e < l; e++)
2047
+ this.pushParam(t[e]);
2048
+ },
2049
+ pushParam: function(t) {
2050
+ var e = t.value != null ? t.value : t.original || "";
2051
+ if (this.stringParams)
2052
+ e.replace && (e = e.replace(/^(\.?\.\/)*/g, "").replace(/\//g, ".")), t.depth && this.addDepth(t.depth), this.opcode("getContext", t.depth || 0), this.opcode("pushStringParam", e, t.type), t.type === "SubExpression" && this.accept(t);
2053
+ else {
2054
+ if (this.trackIds) {
2055
+ var l = void 0;
2056
+ if (t.parts && !f.default.helpers.scopedId(t) && !t.depth && (l = this.blockParamIndex(t.parts[0])), l) {
2057
+ var p = t.parts.slice(1).join(".");
2058
+ this.opcode("pushId", "BlockParam", l, p);
2059
+ } else
2060
+ e = t.original || e, e.replace && (e = e.replace(/^this(?:\.|$)/, "").replace(/^\.\//, "").replace(/^\.$/, "")), this.opcode("pushId", t.type, e);
2061
+ }
2062
+ this.accept(t);
2063
+ }
2064
+ },
2065
+ setupFullMustacheParams: function(t, e, l, p) {
2066
+ var _ = t.params;
2067
+ return this.pushParams(_), this.opcode("pushProgram", e), this.opcode("pushProgram", l), t.hash ? this.accept(t.hash) : this.opcode("emptyHash", p), _;
2068
+ },
2069
+ blockParamIndex: function(t) {
2070
+ for (var e = 0, l = this.options.blockParams.length; e < l; e++) {
2071
+ var p = this.options.blockParams[e], _ = p && c.indexOf(p, t);
2072
+ if (p && _ >= 0)
2073
+ return [e, _];
2074
+ }
2075
+ }
2076
+ };
2077
+ function u(r, t, e) {
2078
+ if (r == null || typeof r != "string" && r.type !== "Program")
2079
+ throw new s.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + r);
2080
+ t = t || {}, "data" in t || (t.data = !0), t.compat && (t.useDepths = !0);
2081
+ var l = e.parse(r, t), p = new e.Compiler().compile(l, t);
2082
+ return new e.JavaScriptCompiler().compile(p, t);
2083
+ }
2084
+ function a(r, t, e) {
2085
+ if (t === void 0 && (t = {}), r == null || typeof r != "string" && r.type !== "Program")
2086
+ throw new s.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed " + r);
2087
+ t = c.extend({}, t), "data" in t || (t.data = !0), t.compat && (t.useDepths = !0);
2088
+ var l = void 0;
2089
+ function p() {
2090
+ var S = e.parse(r, t), b = new e.Compiler().compile(S, t), v = new e.JavaScriptCompiler().compile(b, t, void 0, !0);
2091
+ return e.template(v);
2092
+ }
2093
+ function _(S, b) {
2094
+ return l || (l = p()), l.call(this, S, b);
2095
+ }
2096
+ return _._setup = function(S) {
2097
+ return l || (l = p()), l._setup(S);
2098
+ }, _._child = function(S, b, v, y) {
2099
+ return l || (l = p()), l._child(S, b, v, y);
2100
+ }, _;
2101
+ }
2102
+ function o(r, t) {
2103
+ if (r === t)
2104
+ return !0;
2105
+ if (c.isArray(r) && c.isArray(t) && r.length === t.length) {
2106
+ for (var e = 0; e < r.length; e++)
2107
+ if (!o(r[e], t[e]))
2108
+ return !1;
2109
+ return !0;
2110
+ }
2111
+ }
2112
+ function d(r) {
2113
+ if (!r.path.parts) {
2114
+ var t = r.path;
2115
+ r.path = {
2116
+ type: "PathExpression",
2117
+ data: !1,
2118
+ depth: 0,
2119
+ parts: [t.original + ""],
2120
+ original: t.original + "",
2121
+ loc: t.loc
2122
+ };
2123
+ }
2124
+ }
2125
+ return j;
2126
+ }
2127
+ var Ae = { exports: {} }, Me = { exports: {} }, ee = {}, He = {}, Ne = {}, Ie = {}, Tt;
2128
+ function ki() {
2129
+ if (Tt) return Ie;
2130
+ Tt = 1;
2131
+ var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
2132
+ return Ie.encode = function(i) {
2133
+ if (0 <= i && i < n.length)
2134
+ return n[i];
2135
+ throw new TypeError("Must be between 0 and 63: " + i);
2136
+ }, Ie.decode = function(i) {
2137
+ var s = 65, c = 90, m = 97, f = 122, g = 48, h = 57, u = 43, a = 47, o = 26, d = 52;
2138
+ return s <= i && i <= c ? i - s : m <= i && i <= f ? i - m + o : g <= i && i <= h ? i - g + d : i == u ? 62 : i == a ? 63 : -1;
2139
+ }, Ie;
2140
+ }
2141
+ var Ht;
2142
+ function gr() {
2143
+ if (Ht) return Ne;
2144
+ Ht = 1;
2145
+ var n = ki(), i = 5, s = 1 << i, c = s - 1, m = s;
2146
+ function f(h) {
2147
+ return h < 0 ? (-h << 1) + 1 : (h << 1) + 0;
2148
+ }
2149
+ function g(h) {
2150
+ var u = (h & 1) === 1, a = h >> 1;
2151
+ return u ? -a : a;
2152
+ }
2153
+ return Ne.encode = function(u) {
2154
+ var a = "", o, d = f(u);
2155
+ do
2156
+ o = d & c, d >>>= i, d > 0 && (o |= m), a += n.encode(o);
2157
+ while (d > 0);
2158
+ return a;
2159
+ }, Ne.decode = function(u, a, o) {
2160
+ var d = u.length, r = 0, t = 0, e, l;
2161
+ do {
2162
+ if (a >= d)
2163
+ throw new Error("Expected more digits in base 64 VLQ value.");
2164
+ if (l = n.decode(u.charCodeAt(a++)), l === -1)
2165
+ throw new Error("Invalid base64 digit: " + u.charAt(a - 1));
2166
+ e = !!(l & m), l &= c, r = r + (l << t), t += i;
2167
+ } while (e);
2168
+ o.value = g(r), o.rest = a;
2169
+ }, Ne;
2170
+ }
2171
+ var qe = {}, qt;
2172
+ function ae() {
2173
+ return qt || (qt = 1, function(n) {
2174
+ function i(v, y, C) {
2175
+ if (y in v)
2176
+ return v[y];
2177
+ if (arguments.length === 3)
2178
+ return C;
2179
+ throw new Error('"' + y + '" is a required argument.');
2180
+ }
2181
+ n.getArg = i;
2182
+ var s = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/, c = /^data:.+\,.+$/;
2183
+ function m(v) {
2184
+ var y = v.match(s);
2185
+ return y ? {
2186
+ scheme: y[1],
2187
+ auth: y[2],
2188
+ host: y[3],
2189
+ port: y[4],
2190
+ path: y[5]
2191
+ } : null;
2192
+ }
2193
+ n.urlParse = m;
2194
+ function f(v) {
2195
+ var y = "";
2196
+ return v.scheme && (y += v.scheme + ":"), y += "//", v.auth && (y += v.auth + "@"), v.host && (y += v.host), v.port && (y += ":" + v.port), v.path && (y += v.path), y;
2197
+ }
2198
+ n.urlGenerate = f;
2199
+ function g(v) {
2200
+ var y = v, C = m(v);
2201
+ if (C) {
2202
+ if (!C.path)
2203
+ return v;
2204
+ y = C.path;
2205
+ }
2206
+ for (var k = n.isAbsolute(y), E = y.split(/\/+/), x, w = 0, P = E.length - 1; P >= 0; P--)
2207
+ x = E[P], x === "." ? E.splice(P, 1) : x === ".." ? w++ : w > 0 && (x === "" ? (E.splice(P + 1, w), w = 0) : (E.splice(P, 2), w--));
2208
+ return y = E.join("/"), y === "" && (y = k ? "/" : "."), C ? (C.path = y, f(C)) : y;
2209
+ }
2210
+ n.normalize = g;
2211
+ function h(v, y) {
2212
+ v === "" && (v = "."), y === "" && (y = ".");
2213
+ var C = m(y), k = m(v);
2214
+ if (k && (v = k.path || "/"), C && !C.scheme)
2215
+ return k && (C.scheme = k.scheme), f(C);
2216
+ if (C || y.match(c))
2217
+ return y;
2218
+ if (k && !k.host && !k.path)
2219
+ return k.host = y, f(k);
2220
+ var E = y.charAt(0) === "/" ? y : g(v.replace(/\/+$/, "") + "/" + y);
2221
+ return k ? (k.path = E, f(k)) : E;
2222
+ }
2223
+ n.join = h, n.isAbsolute = function(v) {
2224
+ return v.charAt(0) === "/" || s.test(v);
2225
+ };
2226
+ function u(v, y) {
2227
+ v === "" && (v = "."), v = v.replace(/\/$/, "");
2228
+ for (var C = 0; y.indexOf(v + "/") !== 0; ) {
2229
+ var k = v.lastIndexOf("/");
2230
+ if (k < 0 || (v = v.slice(0, k), v.match(/^([^\/]+:\/)?\/*$/)))
2231
+ return y;
2232
+ ++C;
2233
+ }
2234
+ return Array(C + 1).join("../") + y.substr(v.length + 1);
2235
+ }
2236
+ n.relative = u;
2237
+ var a = function() {
2238
+ var v = /* @__PURE__ */ Object.create(null);
2239
+ return !("__proto__" in v);
2240
+ }();
2241
+ function o(v) {
2242
+ return v;
2243
+ }
2244
+ function d(v) {
2245
+ return t(v) ? "$" + v : v;
2246
+ }
2247
+ n.toSetString = a ? o : d;
2248
+ function r(v) {
2249
+ return t(v) ? v.slice(1) : v;
2250
+ }
2251
+ n.fromSetString = a ? o : r;
2252
+ function t(v) {
2253
+ if (!v)
2254
+ return !1;
2255
+ var y = v.length;
2256
+ if (y < 9 || v.charCodeAt(y - 1) !== 95 || v.charCodeAt(y - 2) !== 95 || v.charCodeAt(y - 3) !== 111 || v.charCodeAt(y - 4) !== 116 || v.charCodeAt(y - 5) !== 111 || v.charCodeAt(y - 6) !== 114 || v.charCodeAt(y - 7) !== 112 || v.charCodeAt(y - 8) !== 95 || v.charCodeAt(y - 9) !== 95)
2257
+ return !1;
2258
+ for (var C = y - 10; C >= 0; C--)
2259
+ if (v.charCodeAt(C) !== 36)
2260
+ return !1;
2261
+ return !0;
2262
+ }
2263
+ function e(v, y, C) {
2264
+ var k = p(v.source, y.source);
2265
+ return k !== 0 || (k = v.originalLine - y.originalLine, k !== 0) || (k = v.originalColumn - y.originalColumn, k !== 0 || C) || (k = v.generatedColumn - y.generatedColumn, k !== 0) || (k = v.generatedLine - y.generatedLine, k !== 0) ? k : p(v.name, y.name);
2266
+ }
2267
+ n.compareByOriginalPositions = e;
2268
+ function l(v, y, C) {
2269
+ var k = v.generatedLine - y.generatedLine;
2270
+ return k !== 0 || (k = v.generatedColumn - y.generatedColumn, k !== 0 || C) || (k = p(v.source, y.source), k !== 0) || (k = v.originalLine - y.originalLine, k !== 0) || (k = v.originalColumn - y.originalColumn, k !== 0) ? k : p(v.name, y.name);
2271
+ }
2272
+ n.compareByGeneratedPositionsDeflated = l;
2273
+ function p(v, y) {
2274
+ return v === y ? 0 : v === null ? 1 : y === null ? -1 : v > y ? 1 : -1;
2275
+ }
2276
+ function _(v, y) {
2277
+ var C = v.generatedLine - y.generatedLine;
2278
+ return C !== 0 || (C = v.generatedColumn - y.generatedColumn, C !== 0) || (C = p(v.source, y.source), C !== 0) || (C = v.originalLine - y.originalLine, C !== 0) || (C = v.originalColumn - y.originalColumn, C !== 0) ? C : p(v.name, y.name);
2279
+ }
2280
+ n.compareByGeneratedPositionsInflated = _;
2281
+ function S(v) {
2282
+ return JSON.parse(v.replace(/^\)]}'[^\n]*\n/, ""));
2283
+ }
2284
+ n.parseSourceMapInput = S;
2285
+ function b(v, y, C) {
2286
+ if (y = y || "", v && (v[v.length - 1] !== "/" && y[0] !== "/" && (v += "/"), y = v + y), C) {
2287
+ var k = m(C);
2288
+ if (!k)
2289
+ throw new Error("sourceMapURL could not be parsed");
2290
+ if (k.path) {
2291
+ var E = k.path.lastIndexOf("/");
2292
+ E >= 0 && (k.path = k.path.substring(0, E + 1));
2293
+ }
2294
+ y = h(f(k), y);
2295
+ }
2296
+ return g(y);
2297
+ }
2298
+ n.computeSourceURL = b;
2299
+ }(qe)), qe;
2300
+ }
2301
+ var Fe = {}, Ft;
2302
+ function mr() {
2303
+ if (Ft) return Fe;
2304
+ Ft = 1;
2305
+ var n = ae(), i = Object.prototype.hasOwnProperty, s = typeof Map < "u";
2306
+ function c() {
2307
+ this._array = [], this._set = s ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
2308
+ }
2309
+ return c.fromArray = function(f, g) {
2310
+ for (var h = new c(), u = 0, a = f.length; u < a; u++)
2311
+ h.add(f[u], g);
2312
+ return h;
2313
+ }, c.prototype.size = function() {
2314
+ return s ? this._set.size : Object.getOwnPropertyNames(this._set).length;
2315
+ }, c.prototype.add = function(f, g) {
2316
+ var h = s ? f : n.toSetString(f), u = s ? this.has(f) : i.call(this._set, h), a = this._array.length;
2317
+ (!u || g) && this._array.push(f), u || (s ? this._set.set(f, a) : this._set[h] = a);
2318
+ }, c.prototype.has = function(f) {
2319
+ if (s)
2320
+ return this._set.has(f);
2321
+ var g = n.toSetString(f);
2322
+ return i.call(this._set, g);
2323
+ }, c.prototype.indexOf = function(f) {
2324
+ if (s) {
2325
+ var g = this._set.get(f);
2326
+ if (g >= 0)
2327
+ return g;
2328
+ } else {
2329
+ var h = n.toSetString(f);
2330
+ if (i.call(this._set, h))
2331
+ return this._set[h];
2332
+ }
2333
+ throw new Error('"' + f + '" is not in the set.');
2334
+ }, c.prototype.at = function(f) {
2335
+ if (f >= 0 && f < this._array.length)
2336
+ return this._array[f];
2337
+ throw new Error("No element indexed by " + f);
2338
+ }, c.prototype.toArray = function() {
2339
+ return this._array.slice();
2340
+ }, Fe.ArraySet = c, Fe;
2341
+ }
2342
+ var Ve = {}, Vt;
2343
+ function Pi() {
2344
+ if (Vt) return Ve;
2345
+ Vt = 1;
2346
+ var n = ae();
2347
+ function i(c, m) {
2348
+ var f = c.generatedLine, g = m.generatedLine, h = c.generatedColumn, u = m.generatedColumn;
2349
+ return g > f || g == f && u >= h || n.compareByGeneratedPositionsInflated(c, m) <= 0;
2350
+ }
2351
+ function s() {
2352
+ this._array = [], this._sorted = !0, this._last = { generatedLine: -1, generatedColumn: 0 };
2353
+ }
2354
+ return s.prototype.unsortedForEach = function(m, f) {
2355
+ this._array.forEach(m, f);
2356
+ }, s.prototype.add = function(m) {
2357
+ i(this._last, m) ? (this._last = m, this._array.push(m)) : (this._sorted = !1, this._array.push(m));
2358
+ }, s.prototype.toArray = function() {
2359
+ return this._sorted || (this._array.sort(n.compareByGeneratedPositionsInflated), this._sorted = !0), this._array;
2360
+ }, Ve.MappingList = s, Ve;
2361
+ }
2362
+ var Gt;
2363
+ function vr() {
2364
+ if (Gt) return He;
2365
+ Gt = 1;
2366
+ var n = gr(), i = ae(), s = mr().ArraySet, c = Pi().MappingList;
2367
+ function m(f) {
2368
+ f || (f = {}), this._file = i.getArg(f, "file", null), this._sourceRoot = i.getArg(f, "sourceRoot", null), this._skipValidation = i.getArg(f, "skipValidation", !1), this._sources = new s(), this._names = new s(), this._mappings = new c(), this._sourcesContents = null;
2369
+ }
2370
+ return m.prototype._version = 3, m.fromSourceMap = function(g) {
2371
+ var h = g.sourceRoot, u = new m({
2372
+ file: g.file,
2373
+ sourceRoot: h
2374
+ });
2375
+ return g.eachMapping(function(a) {
2376
+ var o = {
2377
+ generated: {
2378
+ line: a.generatedLine,
2379
+ column: a.generatedColumn
2380
+ }
2381
+ };
2382
+ a.source != null && (o.source = a.source, h != null && (o.source = i.relative(h, o.source)), o.original = {
2383
+ line: a.originalLine,
2384
+ column: a.originalColumn
2385
+ }, a.name != null && (o.name = a.name)), u.addMapping(o);
2386
+ }), g.sources.forEach(function(a) {
2387
+ var o = a;
2388
+ h !== null && (o = i.relative(h, a)), u._sources.has(o) || u._sources.add(o);
2389
+ var d = g.sourceContentFor(a);
2390
+ d != null && u.setSourceContent(a, d);
2391
+ }), u;
2392
+ }, m.prototype.addMapping = function(g) {
2393
+ var h = i.getArg(g, "generated"), u = i.getArg(g, "original", null), a = i.getArg(g, "source", null), o = i.getArg(g, "name", null);
2394
+ this._skipValidation || this._validateMapping(h, u, a, o), a != null && (a = String(a), this._sources.has(a) || this._sources.add(a)), o != null && (o = String(o), this._names.has(o) || this._names.add(o)), this._mappings.add({
2395
+ generatedLine: h.line,
2396
+ generatedColumn: h.column,
2397
+ originalLine: u != null && u.line,
2398
+ originalColumn: u != null && u.column,
2399
+ source: a,
2400
+ name: o
2401
+ });
2402
+ }, m.prototype.setSourceContent = function(g, h) {
2403
+ var u = g;
2404
+ this._sourceRoot != null && (u = i.relative(this._sourceRoot, u)), h != null ? (this._sourcesContents || (this._sourcesContents = /* @__PURE__ */ Object.create(null)), this._sourcesContents[i.toSetString(u)] = h) : this._sourcesContents && (delete this._sourcesContents[i.toSetString(u)], Object.keys(this._sourcesContents).length === 0 && (this._sourcesContents = null));
2405
+ }, m.prototype.applySourceMap = function(g, h, u) {
2406
+ var a = h;
2407
+ if (h == null) {
2408
+ if (g.file == null)
2409
+ throw new Error(
2410
+ `SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`
2411
+ );
2412
+ a = g.file;
2413
+ }
2414
+ var o = this._sourceRoot;
2415
+ o != null && (a = i.relative(o, a));
2416
+ var d = new s(), r = new s();
2417
+ this._mappings.unsortedForEach(function(t) {
2418
+ if (t.source === a && t.originalLine != null) {
2419
+ var e = g.originalPositionFor({
2420
+ line: t.originalLine,
2421
+ column: t.originalColumn
2422
+ });
2423
+ e.source != null && (t.source = e.source, u != null && (t.source = i.join(u, t.source)), o != null && (t.source = i.relative(o, t.source)), t.originalLine = e.line, t.originalColumn = e.column, e.name != null && (t.name = e.name));
2424
+ }
2425
+ var l = t.source;
2426
+ l != null && !d.has(l) && d.add(l);
2427
+ var p = t.name;
2428
+ p != null && !r.has(p) && r.add(p);
2429
+ }, this), this._sources = d, this._names = r, g.sources.forEach(function(t) {
2430
+ var e = g.sourceContentFor(t);
2431
+ e != null && (u != null && (t = i.join(u, t)), o != null && (t = i.relative(o, t)), this.setSourceContent(t, e));
2432
+ }, this);
2433
+ }, m.prototype._validateMapping = function(g, h, u, a) {
2434
+ if (h && typeof h.line != "number" && typeof h.column != "number")
2435
+ throw new Error(
2436
+ "original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values."
2437
+ );
2438
+ if (!(g && "line" in g && "column" in g && g.line > 0 && g.column >= 0 && !h && !u && !a)) {
2439
+ if (g && "line" in g && "column" in g && h && "line" in h && "column" in h && g.line > 0 && g.column >= 0 && h.line > 0 && h.column >= 0 && u)
2440
+ return;
2441
+ throw new Error("Invalid mapping: " + JSON.stringify({
2442
+ generated: g,
2443
+ source: u,
2444
+ original: h,
2445
+ name: a
2446
+ }));
2447
+ }
2448
+ }, m.prototype._serializeMappings = function() {
2449
+ for (var g = 0, h = 1, u = 0, a = 0, o = 0, d = 0, r = "", t, e, l, p, _ = this._mappings.toArray(), S = 0, b = _.length; S < b; S++) {
2450
+ if (e = _[S], t = "", e.generatedLine !== h)
2451
+ for (g = 0; e.generatedLine !== h; )
2452
+ t += ";", h++;
2453
+ else if (S > 0) {
2454
+ if (!i.compareByGeneratedPositionsInflated(e, _[S - 1]))
2455
+ continue;
2456
+ t += ",";
2457
+ }
2458
+ t += n.encode(e.generatedColumn - g), g = e.generatedColumn, e.source != null && (p = this._sources.indexOf(e.source), t += n.encode(p - d), d = p, t += n.encode(e.originalLine - 1 - a), a = e.originalLine - 1, t += n.encode(e.originalColumn - u), u = e.originalColumn, e.name != null && (l = this._names.indexOf(e.name), t += n.encode(l - o), o = l)), r += t;
2459
+ }
2460
+ return r;
2461
+ }, m.prototype._generateSourcesContent = function(g, h) {
2462
+ return g.map(function(u) {
2463
+ if (!this._sourcesContents)
2464
+ return null;
2465
+ h != null && (u = i.relative(h, u));
2466
+ var a = i.toSetString(u);
2467
+ return Object.prototype.hasOwnProperty.call(this._sourcesContents, a) ? this._sourcesContents[a] : null;
2468
+ }, this);
2469
+ }, m.prototype.toJSON = function() {
2470
+ var g = {
2471
+ version: this._version,
2472
+ sources: this._sources.toArray(),
2473
+ names: this._names.toArray(),
2474
+ mappings: this._serializeMappings()
2475
+ };
2476
+ return this._file != null && (g.file = this._file), this._sourceRoot != null && (g.sourceRoot = this._sourceRoot), this._sourcesContents && (g.sourcesContent = this._generateSourcesContent(g.sources, g.sourceRoot)), g;
2477
+ }, m.prototype.toString = function() {
2478
+ return JSON.stringify(this.toJSON());
2479
+ }, He.SourceMapGenerator = m, He;
2480
+ }
2481
+ var te = {}, Ge = {}, Ut;
2482
+ function wi() {
2483
+ return Ut || (Ut = 1, function(n) {
2484
+ n.GREATEST_LOWER_BOUND = 1, n.LEAST_UPPER_BOUND = 2;
2485
+ function i(s, c, m, f, g, h) {
2486
+ var u = Math.floor((c - s) / 2) + s, a = g(m, f[u], !0);
2487
+ return a === 0 ? u : a > 0 ? c - u > 1 ? i(u, c, m, f, g, h) : h == n.LEAST_UPPER_BOUND ? c < f.length ? c : -1 : u : u - s > 1 ? i(s, u, m, f, g, h) : h == n.LEAST_UPPER_BOUND ? u : s < 0 ? -1 : s;
2488
+ }
2489
+ n.search = function(c, m, f, g) {
2490
+ if (m.length === 0)
2491
+ return -1;
2492
+ var h = i(
2493
+ -1,
2494
+ m.length,
2495
+ c,
2496
+ m,
2497
+ f,
2498
+ g || n.GREATEST_LOWER_BOUND
2499
+ );
2500
+ if (h < 0)
2501
+ return -1;
2502
+ for (; h - 1 >= 0 && f(m[h], m[h - 1], !0) === 0; )
2503
+ --h;
2504
+ return h;
2505
+ };
2506
+ }(Ge)), Ge;
2507
+ }
2508
+ var Ue = {}, Wt;
2509
+ function Ei() {
2510
+ if (Wt) return Ue;
2511
+ Wt = 1;
2512
+ function n(c, m, f) {
2513
+ var g = c[m];
2514
+ c[m] = c[f], c[f] = g;
2515
+ }
2516
+ function i(c, m) {
2517
+ return Math.round(c + Math.random() * (m - c));
2518
+ }
2519
+ function s(c, m, f, g) {
2520
+ if (f < g) {
2521
+ var h = i(f, g), u = f - 1;
2522
+ n(c, h, g);
2523
+ for (var a = c[g], o = f; o < g; o++)
2524
+ m(c[o], a) <= 0 && (u += 1, n(c, u, o));
2525
+ n(c, u + 1, o);
2526
+ var d = u + 1;
2527
+ s(c, m, f, d - 1), s(c, m, d + 1, g);
2528
+ }
2529
+ }
2530
+ return Ue.quickSort = function(c, m) {
2531
+ s(c, m, 0, c.length - 1);
2532
+ }, Ue;
2533
+ }
2534
+ var Kt;
2535
+ function Li() {
2536
+ if (Kt) return te;
2537
+ Kt = 1;
2538
+ var n = ae(), i = wi(), s = mr().ArraySet, c = gr(), m = Ei().quickSort;
2539
+ function f(a, o) {
2540
+ var d = a;
2541
+ return typeof a == "string" && (d = n.parseSourceMapInput(a)), d.sections != null ? new u(d, o) : new g(d, o);
2542
+ }
2543
+ f.fromSourceMap = function(a, o) {
2544
+ return g.fromSourceMap(a, o);
2545
+ }, f.prototype._version = 3, f.prototype.__generatedMappings = null, Object.defineProperty(f.prototype, "_generatedMappings", {
2546
+ configurable: !0,
2547
+ enumerable: !0,
2548
+ get: function() {
2549
+ return this.__generatedMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__generatedMappings;
2550
+ }
2551
+ }), f.prototype.__originalMappings = null, Object.defineProperty(f.prototype, "_originalMappings", {
2552
+ configurable: !0,
2553
+ enumerable: !0,
2554
+ get: function() {
2555
+ return this.__originalMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__originalMappings;
2556
+ }
2557
+ }), f.prototype._charIsMappingSeparator = function(o, d) {
2558
+ var r = o.charAt(d);
2559
+ return r === ";" || r === ",";
2560
+ }, f.prototype._parseMappings = function(o, d) {
2561
+ throw new Error("Subclasses must implement _parseMappings");
2562
+ }, f.GENERATED_ORDER = 1, f.ORIGINAL_ORDER = 2, f.GREATEST_LOWER_BOUND = 1, f.LEAST_UPPER_BOUND = 2, f.prototype.eachMapping = function(o, d, r) {
2563
+ var t = d || null, e = r || f.GENERATED_ORDER, l;
2564
+ switch (e) {
2565
+ case f.GENERATED_ORDER:
2566
+ l = this._generatedMappings;
2567
+ break;
2568
+ case f.ORIGINAL_ORDER:
2569
+ l = this._originalMappings;
2570
+ break;
2571
+ default:
2572
+ throw new Error("Unknown order of iteration.");
2573
+ }
2574
+ var p = this.sourceRoot;
2575
+ l.map(function(_) {
2576
+ var S = _.source === null ? null : this._sources.at(_.source);
2577
+ return S = n.computeSourceURL(p, S, this._sourceMapURL), {
2578
+ source: S,
2579
+ generatedLine: _.generatedLine,
2580
+ generatedColumn: _.generatedColumn,
2581
+ originalLine: _.originalLine,
2582
+ originalColumn: _.originalColumn,
2583
+ name: _.name === null ? null : this._names.at(_.name)
2584
+ };
2585
+ }, this).forEach(o, t);
2586
+ }, f.prototype.allGeneratedPositionsFor = function(o) {
2587
+ var d = n.getArg(o, "line"), r = {
2588
+ source: n.getArg(o, "source"),
2589
+ originalLine: d,
2590
+ originalColumn: n.getArg(o, "column", 0)
2591
+ };
2592
+ if (r.source = this._findSourceIndex(r.source), r.source < 0)
2593
+ return [];
2594
+ var t = [], e = this._findMapping(
2595
+ r,
2596
+ this._originalMappings,
2597
+ "originalLine",
2598
+ "originalColumn",
2599
+ n.compareByOriginalPositions,
2600
+ i.LEAST_UPPER_BOUND
2601
+ );
2602
+ if (e >= 0) {
2603
+ var l = this._originalMappings[e];
2604
+ if (o.column === void 0)
2605
+ for (var p = l.originalLine; l && l.originalLine === p; )
2606
+ t.push({
2607
+ line: n.getArg(l, "generatedLine", null),
2608
+ column: n.getArg(l, "generatedColumn", null),
2609
+ lastColumn: n.getArg(l, "lastGeneratedColumn", null)
2610
+ }), l = this._originalMappings[++e];
2611
+ else
2612
+ for (var _ = l.originalColumn; l && l.originalLine === d && l.originalColumn == _; )
2613
+ t.push({
2614
+ line: n.getArg(l, "generatedLine", null),
2615
+ column: n.getArg(l, "generatedColumn", null),
2616
+ lastColumn: n.getArg(l, "lastGeneratedColumn", null)
2617
+ }), l = this._originalMappings[++e];
2618
+ }
2619
+ return t;
2620
+ }, te.SourceMapConsumer = f;
2621
+ function g(a, o) {
2622
+ var d = a;
2623
+ typeof a == "string" && (d = n.parseSourceMapInput(a));
2624
+ var r = n.getArg(d, "version"), t = n.getArg(d, "sources"), e = n.getArg(d, "names", []), l = n.getArg(d, "sourceRoot", null), p = n.getArg(d, "sourcesContent", null), _ = n.getArg(d, "mappings"), S = n.getArg(d, "file", null);
2625
+ if (r != this._version)
2626
+ throw new Error("Unsupported version: " + r);
2627
+ l && (l = n.normalize(l)), t = t.map(String).map(n.normalize).map(function(b) {
2628
+ return l && n.isAbsolute(l) && n.isAbsolute(b) ? n.relative(l, b) : b;
2629
+ }), this._names = s.fromArray(e.map(String), !0), this._sources = s.fromArray(t, !0), this._absoluteSources = this._sources.toArray().map(function(b) {
2630
+ return n.computeSourceURL(l, b, o);
2631
+ }), this.sourceRoot = l, this.sourcesContent = p, this._mappings = _, this._sourceMapURL = o, this.file = S;
2632
+ }
2633
+ g.prototype = Object.create(f.prototype), g.prototype.consumer = f, g.prototype._findSourceIndex = function(a) {
2634
+ var o = a;
2635
+ if (this.sourceRoot != null && (o = n.relative(this.sourceRoot, o)), this._sources.has(o))
2636
+ return this._sources.indexOf(o);
2637
+ var d;
2638
+ for (d = 0; d < this._absoluteSources.length; ++d)
2639
+ if (this._absoluteSources[d] == a)
2640
+ return d;
2641
+ return -1;
2642
+ }, g.fromSourceMap = function(o, d) {
2643
+ var r = Object.create(g.prototype), t = r._names = s.fromArray(o._names.toArray(), !0), e = r._sources = s.fromArray(o._sources.toArray(), !0);
2644
+ r.sourceRoot = o._sourceRoot, r.sourcesContent = o._generateSourcesContent(
2645
+ r._sources.toArray(),
2646
+ r.sourceRoot
2647
+ ), r.file = o._file, r._sourceMapURL = d, r._absoluteSources = r._sources.toArray().map(function(C) {
2648
+ return n.computeSourceURL(r.sourceRoot, C, d);
2649
+ });
2650
+ for (var l = o._mappings.toArray().slice(), p = r.__generatedMappings = [], _ = r.__originalMappings = [], S = 0, b = l.length; S < b; S++) {
2651
+ var v = l[S], y = new h();
2652
+ y.generatedLine = v.generatedLine, y.generatedColumn = v.generatedColumn, v.source && (y.source = e.indexOf(v.source), y.originalLine = v.originalLine, y.originalColumn = v.originalColumn, v.name && (y.name = t.indexOf(v.name)), _.push(y)), p.push(y);
2653
+ }
2654
+ return m(r.__originalMappings, n.compareByOriginalPositions), r;
2655
+ }, g.prototype._version = 3, Object.defineProperty(g.prototype, "sources", {
2656
+ get: function() {
2657
+ return this._absoluteSources.slice();
2658
+ }
2659
+ });
2660
+ function h() {
2661
+ this.generatedLine = 0, this.generatedColumn = 0, this.source = null, this.originalLine = null, this.originalColumn = null, this.name = null;
2662
+ }
2663
+ g.prototype._parseMappings = function(o, d) {
2664
+ for (var r = 1, t = 0, e = 0, l = 0, p = 0, _ = 0, S = o.length, b = 0, v = {}, y = {}, C = [], k = [], E, x, w, P, L; b < S; )
2665
+ if (o.charAt(b) === ";")
2666
+ r++, b++, t = 0;
2667
+ else if (o.charAt(b) === ",")
2668
+ b++;
2669
+ else {
2670
+ for (E = new h(), E.generatedLine = r, P = b; P < S && !this._charIsMappingSeparator(o, P); P++)
2671
+ ;
2672
+ if (x = o.slice(b, P), w = v[x], w)
2673
+ b += x.length;
2674
+ else {
2675
+ for (w = []; b < P; )
2676
+ c.decode(o, b, y), L = y.value, b = y.rest, w.push(L);
2677
+ if (w.length === 2)
2678
+ throw new Error("Found a source, but no line and column");
2679
+ if (w.length === 3)
2680
+ throw new Error("Found a source and line, but no column");
2681
+ v[x] = w;
2682
+ }
2683
+ E.generatedColumn = t + w[0], t = E.generatedColumn, w.length > 1 && (E.source = p + w[1], p += w[1], E.originalLine = e + w[2], e = E.originalLine, E.originalLine += 1, E.originalColumn = l + w[3], l = E.originalColumn, w.length > 4 && (E.name = _ + w[4], _ += w[4])), k.push(E), typeof E.originalLine == "number" && C.push(E);
2684
+ }
2685
+ m(k, n.compareByGeneratedPositionsDeflated), this.__generatedMappings = k, m(C, n.compareByOriginalPositions), this.__originalMappings = C;
2686
+ }, g.prototype._findMapping = function(o, d, r, t, e, l) {
2687
+ if (o[r] <= 0)
2688
+ throw new TypeError("Line must be greater than or equal to 1, got " + o[r]);
2689
+ if (o[t] < 0)
2690
+ throw new TypeError("Column must be greater than or equal to 0, got " + o[t]);
2691
+ return i.search(o, d, e, l);
2692
+ }, g.prototype.computeColumnSpans = function() {
2693
+ for (var o = 0; o < this._generatedMappings.length; ++o) {
2694
+ var d = this._generatedMappings[o];
2695
+ if (o + 1 < this._generatedMappings.length) {
2696
+ var r = this._generatedMappings[o + 1];
2697
+ if (d.generatedLine === r.generatedLine) {
2698
+ d.lastGeneratedColumn = r.generatedColumn - 1;
2699
+ continue;
2700
+ }
2701
+ }
2702
+ d.lastGeneratedColumn = 1 / 0;
2703
+ }
2704
+ }, g.prototype.originalPositionFor = function(o) {
2705
+ var d = {
2706
+ generatedLine: n.getArg(o, "line"),
2707
+ generatedColumn: n.getArg(o, "column")
2708
+ }, r = this._findMapping(
2709
+ d,
2710
+ this._generatedMappings,
2711
+ "generatedLine",
2712
+ "generatedColumn",
2713
+ n.compareByGeneratedPositionsDeflated,
2714
+ n.getArg(o, "bias", f.GREATEST_LOWER_BOUND)
2715
+ );
2716
+ if (r >= 0) {
2717
+ var t = this._generatedMappings[r];
2718
+ if (t.generatedLine === d.generatedLine) {
2719
+ var e = n.getArg(t, "source", null);
2720
+ e !== null && (e = this._sources.at(e), e = n.computeSourceURL(this.sourceRoot, e, this._sourceMapURL));
2721
+ var l = n.getArg(t, "name", null);
2722
+ return l !== null && (l = this._names.at(l)), {
2723
+ source: e,
2724
+ line: n.getArg(t, "originalLine", null),
2725
+ column: n.getArg(t, "originalColumn", null),
2726
+ name: l
2727
+ };
2728
+ }
2729
+ }
2730
+ return {
2731
+ source: null,
2732
+ line: null,
2733
+ column: null,
2734
+ name: null
2735
+ };
2736
+ }, g.prototype.hasContentsOfAllSources = function() {
2737
+ return this.sourcesContent ? this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(o) {
2738
+ return o == null;
2739
+ }) : !1;
2740
+ }, g.prototype.sourceContentFor = function(o, d) {
2741
+ if (!this.sourcesContent)
2742
+ return null;
2743
+ var r = this._findSourceIndex(o);
2744
+ if (r >= 0)
2745
+ return this.sourcesContent[r];
2746
+ var t = o;
2747
+ this.sourceRoot != null && (t = n.relative(this.sourceRoot, t));
2748
+ var e;
2749
+ if (this.sourceRoot != null && (e = n.urlParse(this.sourceRoot))) {
2750
+ var l = t.replace(/^file:\/\//, "");
2751
+ if (e.scheme == "file" && this._sources.has(l))
2752
+ return this.sourcesContent[this._sources.indexOf(l)];
2753
+ if ((!e.path || e.path == "/") && this._sources.has("/" + t))
2754
+ return this.sourcesContent[this._sources.indexOf("/" + t)];
2755
+ }
2756
+ if (d)
2757
+ return null;
2758
+ throw new Error('"' + t + '" is not in the SourceMap.');
2759
+ }, g.prototype.generatedPositionFor = function(o) {
2760
+ var d = n.getArg(o, "source");
2761
+ if (d = this._findSourceIndex(d), d < 0)
2762
+ return {
2763
+ line: null,
2764
+ column: null,
2765
+ lastColumn: null
2766
+ };
2767
+ var r = {
2768
+ source: d,
2769
+ originalLine: n.getArg(o, "line"),
2770
+ originalColumn: n.getArg(o, "column")
2771
+ }, t = this._findMapping(
2772
+ r,
2773
+ this._originalMappings,
2774
+ "originalLine",
2775
+ "originalColumn",
2776
+ n.compareByOriginalPositions,
2777
+ n.getArg(o, "bias", f.GREATEST_LOWER_BOUND)
2778
+ );
2779
+ if (t >= 0) {
2780
+ var e = this._originalMappings[t];
2781
+ if (e.source === r.source)
2782
+ return {
2783
+ line: n.getArg(e, "generatedLine", null),
2784
+ column: n.getArg(e, "generatedColumn", null),
2785
+ lastColumn: n.getArg(e, "lastGeneratedColumn", null)
2786
+ };
2787
+ }
2788
+ return {
2789
+ line: null,
2790
+ column: null,
2791
+ lastColumn: null
2792
+ };
2793
+ }, te.BasicSourceMapConsumer = g;
2794
+ function u(a, o) {
2795
+ var d = a;
2796
+ typeof a == "string" && (d = n.parseSourceMapInput(a));
2797
+ var r = n.getArg(d, "version"), t = n.getArg(d, "sections");
2798
+ if (r != this._version)
2799
+ throw new Error("Unsupported version: " + r);
2800
+ this._sources = new s(), this._names = new s();
2801
+ var e = {
2802
+ line: -1,
2803
+ column: 0
2804
+ };
2805
+ this._sections = t.map(function(l) {
2806
+ if (l.url)
2807
+ throw new Error("Support for url field in sections not implemented.");
2808
+ var p = n.getArg(l, "offset"), _ = n.getArg(p, "line"), S = n.getArg(p, "column");
2809
+ if (_ < e.line || _ === e.line && S < e.column)
2810
+ throw new Error("Section offsets must be ordered and non-overlapping.");
2811
+ return e = p, {
2812
+ generatedOffset: {
2813
+ // The offset fields are 0-based, but we use 1-based indices when
2814
+ // encoding/decoding from VLQ.
2815
+ generatedLine: _ + 1,
2816
+ generatedColumn: S + 1
2817
+ },
2818
+ consumer: new f(n.getArg(l, "map"), o)
2819
+ };
2820
+ });
2821
+ }
2822
+ return u.prototype = Object.create(f.prototype), u.prototype.constructor = f, u.prototype._version = 3, Object.defineProperty(u.prototype, "sources", {
2823
+ get: function() {
2824
+ for (var a = [], o = 0; o < this._sections.length; o++)
2825
+ for (var d = 0; d < this._sections[o].consumer.sources.length; d++)
2826
+ a.push(this._sections[o].consumer.sources[d]);
2827
+ return a;
2828
+ }
2829
+ }), u.prototype.originalPositionFor = function(o) {
2830
+ var d = {
2831
+ generatedLine: n.getArg(o, "line"),
2832
+ generatedColumn: n.getArg(o, "column")
2833
+ }, r = i.search(
2834
+ d,
2835
+ this._sections,
2836
+ function(e, l) {
2837
+ var p = e.generatedLine - l.generatedOffset.generatedLine;
2838
+ return p || e.generatedColumn - l.generatedOffset.generatedColumn;
2839
+ }
2840
+ ), t = this._sections[r];
2841
+ return t ? t.consumer.originalPositionFor({
2842
+ line: d.generatedLine - (t.generatedOffset.generatedLine - 1),
2843
+ column: d.generatedColumn - (t.generatedOffset.generatedLine === d.generatedLine ? t.generatedOffset.generatedColumn - 1 : 0),
2844
+ bias: o.bias
2845
+ }) : {
2846
+ source: null,
2847
+ line: null,
2848
+ column: null,
2849
+ name: null
2850
+ };
2851
+ }, u.prototype.hasContentsOfAllSources = function() {
2852
+ return this._sections.every(function(o) {
2853
+ return o.consumer.hasContentsOfAllSources();
2854
+ });
2855
+ }, u.prototype.sourceContentFor = function(o, d) {
2856
+ for (var r = 0; r < this._sections.length; r++) {
2857
+ var t = this._sections[r], e = t.consumer.sourceContentFor(o, !0);
2858
+ if (e)
2859
+ return e;
2860
+ }
2861
+ if (d)
2862
+ return null;
2863
+ throw new Error('"' + o + '" is not in the SourceMap.');
2864
+ }, u.prototype.generatedPositionFor = function(o) {
2865
+ for (var d = 0; d < this._sections.length; d++) {
2866
+ var r = this._sections[d];
2867
+ if (r.consumer._findSourceIndex(n.getArg(o, "source")) !== -1) {
2868
+ var t = r.consumer.generatedPositionFor(o);
2869
+ if (t) {
2870
+ var e = {
2871
+ line: t.line + (r.generatedOffset.generatedLine - 1),
2872
+ column: t.column + (r.generatedOffset.generatedLine === t.line ? r.generatedOffset.generatedColumn - 1 : 0)
2873
+ };
2874
+ return e;
2875
+ }
2876
+ }
2877
+ }
2878
+ return {
2879
+ line: null,
2880
+ column: null
2881
+ };
2882
+ }, u.prototype._parseMappings = function(o, d) {
2883
+ this.__generatedMappings = [], this.__originalMappings = [];
2884
+ for (var r = 0; r < this._sections.length; r++)
2885
+ for (var t = this._sections[r], e = t.consumer._generatedMappings, l = 0; l < e.length; l++) {
2886
+ var p = e[l], _ = t.consumer._sources.at(p.source);
2887
+ _ = n.computeSourceURL(t.consumer.sourceRoot, _, this._sourceMapURL), this._sources.add(_), _ = this._sources.indexOf(_);
2888
+ var S = null;
2889
+ p.name && (S = t.consumer._names.at(p.name), this._names.add(S), S = this._names.indexOf(S));
2890
+ var b = {
2891
+ source: _,
2892
+ generatedLine: p.generatedLine + (t.generatedOffset.generatedLine - 1),
2893
+ generatedColumn: p.generatedColumn + (t.generatedOffset.generatedLine === p.generatedLine ? t.generatedOffset.generatedColumn - 1 : 0),
2894
+ originalLine: p.originalLine,
2895
+ originalColumn: p.originalColumn,
2896
+ name: S
2897
+ };
2898
+ this.__generatedMappings.push(b), typeof b.originalLine == "number" && this.__originalMappings.push(b);
2899
+ }
2900
+ m(this.__generatedMappings, n.compareByGeneratedPositionsDeflated), m(this.__originalMappings, n.compareByOriginalPositions);
2901
+ }, te.IndexedSourceMapConsumer = u, te;
2902
+ }
2903
+ var We = {}, zt;
2904
+ function xi() {
2905
+ if (zt) return We;
2906
+ zt = 1;
2907
+ var n = vr().SourceMapGenerator, i = ae(), s = /(\r?\n)/, c = 10, m = "$$$isSourceNode$$$";
2908
+ function f(g, h, u, a, o) {
2909
+ this.children = [], this.sourceContents = {}, this.line = g ?? null, this.column = h ?? null, this.source = u ?? null, this.name = o ?? null, this[m] = !0, a != null && this.add(a);
2910
+ }
2911
+ return f.fromStringWithSourceMap = function(h, u, a) {
2912
+ var o = new f(), d = h.split(s), r = 0, t = function() {
2913
+ var S = v(), b = v() || "";
2914
+ return S + b;
2915
+ function v() {
2916
+ return r < d.length ? d[r++] : void 0;
2917
+ }
2918
+ }, e = 1, l = 0, p = null;
2919
+ return u.eachMapping(function(S) {
2920
+ if (p !== null)
2921
+ if (e < S.generatedLine)
2922
+ _(p, t()), e++, l = 0;
2923
+ else {
2924
+ var b = d[r] || "", v = b.substr(0, S.generatedColumn - l);
2925
+ d[r] = b.substr(S.generatedColumn - l), l = S.generatedColumn, _(p, v), p = S;
2926
+ return;
2927
+ }
2928
+ for (; e < S.generatedLine; )
2929
+ o.add(t()), e++;
2930
+ if (l < S.generatedColumn) {
2931
+ var b = d[r] || "";
2932
+ o.add(b.substr(0, S.generatedColumn)), d[r] = b.substr(S.generatedColumn), l = S.generatedColumn;
2933
+ }
2934
+ p = S;
2935
+ }, this), r < d.length && (p && _(p, t()), o.add(d.splice(r).join(""))), u.sources.forEach(function(S) {
2936
+ var b = u.sourceContentFor(S);
2937
+ b != null && (a != null && (S = i.join(a, S)), o.setSourceContent(S, b));
2938
+ }), o;
2939
+ function _(S, b) {
2940
+ if (S === null || S.source === void 0)
2941
+ o.add(b);
2942
+ else {
2943
+ var v = a ? i.join(a, S.source) : S.source;
2944
+ o.add(new f(
2945
+ S.originalLine,
2946
+ S.originalColumn,
2947
+ v,
2948
+ b,
2949
+ S.name
2950
+ ));
2951
+ }
2952
+ }
2953
+ }, f.prototype.add = function(h) {
2954
+ if (Array.isArray(h))
2955
+ h.forEach(function(u) {
2956
+ this.add(u);
2957
+ }, this);
2958
+ else if (h[m] || typeof h == "string")
2959
+ h && this.children.push(h);
2960
+ else
2961
+ throw new TypeError(
2962
+ "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + h
2963
+ );
2964
+ return this;
2965
+ }, f.prototype.prepend = function(h) {
2966
+ if (Array.isArray(h))
2967
+ for (var u = h.length - 1; u >= 0; u--)
2968
+ this.prepend(h[u]);
2969
+ else if (h[m] || typeof h == "string")
2970
+ this.children.unshift(h);
2971
+ else
2972
+ throw new TypeError(
2973
+ "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + h
2974
+ );
2975
+ return this;
2976
+ }, f.prototype.walk = function(h) {
2977
+ for (var u, a = 0, o = this.children.length; a < o; a++)
2978
+ u = this.children[a], u[m] ? u.walk(h) : u !== "" && h(u, {
2979
+ source: this.source,
2980
+ line: this.line,
2981
+ column: this.column,
2982
+ name: this.name
2983
+ });
2984
+ }, f.prototype.join = function(h) {
2985
+ var u, a, o = this.children.length;
2986
+ if (o > 0) {
2987
+ for (u = [], a = 0; a < o - 1; a++)
2988
+ u.push(this.children[a]), u.push(h);
2989
+ u.push(this.children[a]), this.children = u;
2990
+ }
2991
+ return this;
2992
+ }, f.prototype.replaceRight = function(h, u) {
2993
+ var a = this.children[this.children.length - 1];
2994
+ return a[m] ? a.replaceRight(h, u) : typeof a == "string" ? this.children[this.children.length - 1] = a.replace(h, u) : this.children.push("".replace(h, u)), this;
2995
+ }, f.prototype.setSourceContent = function(h, u) {
2996
+ this.sourceContents[i.toSetString(h)] = u;
2997
+ }, f.prototype.walkSourceContents = function(h) {
2998
+ for (var u = 0, a = this.children.length; u < a; u++)
2999
+ this.children[u][m] && this.children[u].walkSourceContents(h);
3000
+ for (var o = Object.keys(this.sourceContents), u = 0, a = o.length; u < a; u++)
3001
+ h(i.fromSetString(o[u]), this.sourceContents[o[u]]);
3002
+ }, f.prototype.toString = function() {
3003
+ var h = "";
3004
+ return this.walk(function(u) {
3005
+ h += u;
3006
+ }), h;
3007
+ }, f.prototype.toStringWithSourceMap = function(h) {
3008
+ var u = {
3009
+ code: "",
3010
+ line: 1,
3011
+ column: 0
3012
+ }, a = new n(h), o = !1, d = null, r = null, t = null, e = null;
3013
+ return this.walk(function(l, p) {
3014
+ u.code += l, p.source !== null && p.line !== null && p.column !== null ? ((d !== p.source || r !== p.line || t !== p.column || e !== p.name) && a.addMapping({
3015
+ source: p.source,
3016
+ original: {
3017
+ line: p.line,
3018
+ column: p.column
3019
+ },
3020
+ generated: {
3021
+ line: u.line,
3022
+ column: u.column
3023
+ },
3024
+ name: p.name
3025
+ }), d = p.source, r = p.line, t = p.column, e = p.name, o = !0) : o && (a.addMapping({
3026
+ generated: {
3027
+ line: u.line,
3028
+ column: u.column
3029
+ }
3030
+ }), d = null, o = !1);
3031
+ for (var _ = 0, S = l.length; _ < S; _++)
3032
+ l.charCodeAt(_) === c ? (u.line++, u.column = 0, _ + 1 === S ? (d = null, o = !1) : o && a.addMapping({
3033
+ source: p.source,
3034
+ original: {
3035
+ line: p.line,
3036
+ column: p.column
3037
+ },
3038
+ generated: {
3039
+ line: u.line,
3040
+ column: u.column
3041
+ },
3042
+ name: p.name
3043
+ })) : u.column++;
3044
+ }), this.walkSourceContents(function(l, p) {
3045
+ a.setSourceContent(l, p);
3046
+ }), { code: u.code, map: a };
3047
+ }, We.SourceNode = f, We;
3048
+ }
3049
+ var jt;
3050
+ function Oi() {
3051
+ return jt || (jt = 1, ee.SourceMapGenerator = vr().SourceMapGenerator, ee.SourceMapConsumer = Li().SourceMapConsumer, ee.SourceNode = xi().SourceNode), ee;
3052
+ }
3053
+ var Jt;
3054
+ function Ai() {
3055
+ return Jt || (Jt = 1, function(n, i) {
3056
+ i.__esModule = !0;
3057
+ var s = R(), c = void 0;
3058
+ try {
3059
+ var m = Oi();
3060
+ c = m.SourceNode;
3061
+ } catch {
3062
+ }
3063
+ c || (c = function(h, u, a, o) {
3064
+ this.src = "", o && this.add(o);
3065
+ }, c.prototype = {
3066
+ add: function(u) {
3067
+ s.isArray(u) && (u = u.join("")), this.src += u;
3068
+ },
3069
+ prepend: function(u) {
3070
+ s.isArray(u) && (u = u.join("")), this.src = u + this.src;
3071
+ },
3072
+ toStringWithSourceMap: function() {
3073
+ return { code: this.toString() };
3074
+ },
3075
+ toString: function() {
3076
+ return this.src;
3077
+ }
3078
+ });
3079
+ function f(h, u, a) {
3080
+ if (s.isArray(h)) {
3081
+ for (var o = [], d = 0, r = h.length; d < r; d++)
3082
+ o.push(u.wrap(h[d], a));
3083
+ return o;
3084
+ } else if (typeof h == "boolean" || typeof h == "number")
3085
+ return h + "";
3086
+ return h;
3087
+ }
3088
+ function g(h) {
3089
+ this.srcFile = h, this.source = [];
3090
+ }
3091
+ g.prototype = {
3092
+ isEmpty: function() {
3093
+ return !this.source.length;
3094
+ },
3095
+ prepend: function(u, a) {
3096
+ this.source.unshift(this.wrap(u, a));
3097
+ },
3098
+ push: function(u, a) {
3099
+ this.source.push(this.wrap(u, a));
3100
+ },
3101
+ merge: function() {
3102
+ var u = this.empty();
3103
+ return this.each(function(a) {
3104
+ u.add([" ", a, `
3105
+ `]);
3106
+ }), u;
3107
+ },
3108
+ each: function(u) {
3109
+ for (var a = 0, o = this.source.length; a < o; a++)
3110
+ u(this.source[a]);
3111
+ },
3112
+ empty: function() {
3113
+ var u = this.currentLocation || { start: {} };
3114
+ return new c(u.start.line, u.start.column, this.srcFile);
3115
+ },
3116
+ wrap: function(u) {
3117
+ var a = arguments.length <= 1 || arguments[1] === void 0 ? this.currentLocation || { start: {} } : arguments[1];
3118
+ return u instanceof c ? u : (u = f(u, this, a), new c(a.start.line, a.start.column, this.srcFile, u));
3119
+ },
3120
+ functionCall: function(u, a, o) {
3121
+ return o = this.generateList(o), this.wrap([u, a ? "." + a + "(" : "(", o, ")"]);
3122
+ },
3123
+ quotedString: function(u) {
3124
+ return '"' + (u + "").replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029") + '"';
3125
+ },
3126
+ objectLiteral: function(u) {
3127
+ var a = this, o = [];
3128
+ Object.keys(u).forEach(function(r) {
3129
+ var t = f(u[r], a);
3130
+ t !== "undefined" && o.push([a.quotedString(r), ":", t]);
3131
+ });
3132
+ var d = this.generateList(o);
3133
+ return d.prepend("{"), d.add("}"), d;
3134
+ },
3135
+ generateList: function(u) {
3136
+ for (var a = this.empty(), o = 0, d = u.length; o < d; o++)
3137
+ o && a.add(","), a.add(f(u[o], this));
3138
+ return a;
3139
+ },
3140
+ generateArray: function(u) {
3141
+ var a = this.generateList(u);
3142
+ return a.prepend("["), a.add("]"), a;
3143
+ }
3144
+ }, i.default = g, n.exports = i.default;
3145
+ }(Me, Me.exports)), Me.exports;
3146
+ }
3147
+ var Qt;
3148
+ function Mi() {
3149
+ return Qt || (Qt = 1, function(n, i) {
3150
+ i.__esModule = !0;
3151
+ function s(r) {
3152
+ return r && r.__esModule ? r : { default: r };
3153
+ }
3154
+ var c = $e(), m = q(), f = s(m), g = R(), h = Ai(), u = s(h);
3155
+ function a(r) {
3156
+ this.value = r;
3157
+ }
3158
+ function o() {
3159
+ }
3160
+ o.prototype = {
3161
+ // PUBLIC API: You can override these methods in a subclass to provide
3162
+ // alternative compiled forms for name lookup and buffering semantics
3163
+ nameLookup: function(t, e) {
3164
+ return this.internalNameLookup(t, e);
3165
+ },
3166
+ depthedLookup: function(t) {
3167
+ return [this.aliasable("container.lookup"), "(depths, ", JSON.stringify(t), ")"];
3168
+ },
3169
+ compilerInfo: function() {
3170
+ var t = c.COMPILER_REVISION, e = c.REVISION_CHANGES[t];
3171
+ return [t, e];
3172
+ },
3173
+ appendToBuffer: function(t, e, l) {
3174
+ return g.isArray(t) || (t = [t]), t = this.source.wrap(t, e), this.environment.isSimple ? ["return ", t, ";"] : l ? ["buffer += ", t, ";"] : (t.appendToBuffer = !0, t);
3175
+ },
3176
+ initializeBuffer: function() {
3177
+ return this.quotedString("");
3178
+ },
3179
+ // END PUBLIC API
3180
+ internalNameLookup: function(t, e) {
3181
+ return this.lookupPropertyFunctionIsUsed = !0, ["lookupProperty(", t, ",", JSON.stringify(e), ")"];
3182
+ },
3183
+ lookupPropertyFunctionIsUsed: !1,
3184
+ compile: function(t, e, l, p) {
3185
+ this.environment = t, this.options = e, this.stringParams = this.options.stringParams, this.trackIds = this.options.trackIds, this.precompile = !p, this.name = this.environment.name, this.isChild = !!l, this.context = l || {
3186
+ decorators: [],
3187
+ programs: [],
3188
+ environments: []
3189
+ }, this.preamble(), this.stackSlot = 0, this.stackVars = [], this.aliases = {}, this.registers = { list: [] }, this.hashes = [], this.compileStack = [], this.inlineStack = [], this.blockParams = [], this.compileChildren(t, e), this.useDepths = this.useDepths || t.useDepths || t.useDecorators || this.options.compat, this.useBlockParams = this.useBlockParams || t.useBlockParams;
3190
+ var _ = t.opcodes, S = void 0, b = void 0, v = void 0, y = void 0;
3191
+ for (v = 0, y = _.length; v < y; v++)
3192
+ S = _[v], this.source.currentLocation = S.loc, b = b || S.loc, this[S.opcode].apply(this, S.args);
3193
+ if (this.source.currentLocation = b, this.pushSource(""), this.stackSlot || this.inlineStack.length || this.compileStack.length)
3194
+ throw new f.default("Compile completed with content left on stack");
3195
+ this.decorators.isEmpty() ? this.decorators = void 0 : (this.useDecorators = !0, this.decorators.prepend(["var decorators = container.decorators, ", this.lookupPropertyFunctionVarDeclaration(), `;
3196
+ `]), this.decorators.push("return fn;"), p ? this.decorators = Function.apply(this, ["fn", "props", "container", "depth0", "data", "blockParams", "depths", this.decorators.merge()]) : (this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
3197
+ `), this.decorators.push(`}
3198
+ `), this.decorators = this.decorators.merge()));
3199
+ var C = this.createFunctionContext(p);
3200
+ if (this.isChild)
3201
+ return C;
3202
+ var k = {
3203
+ compiler: this.compilerInfo(),
3204
+ main: C
3205
+ };
3206
+ this.decorators && (k.main_d = this.decorators, k.useDecorators = !0);
3207
+ var E = this.context, x = E.programs, w = E.decorators;
3208
+ for (v = 0, y = x.length; v < y; v++)
3209
+ x[v] && (k[v] = x[v], w[v] && (k[v + "_d"] = w[v], k.useDecorators = !0));
3210
+ return this.environment.usePartial && (k.usePartial = !0), this.options.data && (k.useData = !0), this.useDepths && (k.useDepths = !0), this.useBlockParams && (k.useBlockParams = !0), this.options.compat && (k.compat = !0), p ? k.compilerOptions = this.options : (k.compiler = JSON.stringify(k.compiler), this.source.currentLocation = { start: { line: 1, column: 0 } }, k = this.objectLiteral(k), e.srcName ? (k = k.toStringWithSourceMap({ file: e.destName }), k.map = k.map && k.map.toString()) : k = k.toString()), k;
3211
+ },
3212
+ preamble: function() {
3213
+ this.lastContext = 0, this.source = new u.default(this.options.srcName), this.decorators = new u.default(this.options.srcName);
3214
+ },
3215
+ createFunctionContext: function(t) {
3216
+ var e = this, l = "", p = this.stackVars.concat(this.registers.list);
3217
+ p.length > 0 && (l += ", " + p.join(", "));
3218
+ var _ = 0;
3219
+ Object.keys(this.aliases).forEach(function(v) {
3220
+ var y = e.aliases[v];
3221
+ y.children && y.referenceCount > 1 && (l += ", alias" + ++_ + "=" + v, y.children[0] = "alias" + _);
3222
+ }), this.lookupPropertyFunctionIsUsed && (l += ", " + this.lookupPropertyFunctionVarDeclaration());
3223
+ var S = ["container", "depth0", "helpers", "partials", "data"];
3224
+ (this.useBlockParams || this.useDepths) && S.push("blockParams"), this.useDepths && S.push("depths");
3225
+ var b = this.mergeSource(l);
3226
+ return t ? (S.push(b), Function.apply(this, S)) : this.source.wrap(["function(", S.join(","), `) {
3227
+ `, b, "}"]);
3228
+ },
3229
+ mergeSource: function(t) {
3230
+ var e = this.environment.isSimple, l = !this.forceBuffer, p = void 0, _ = void 0, S = void 0, b = void 0;
3231
+ return this.source.each(function(v) {
3232
+ v.appendToBuffer ? (S ? v.prepend(" + ") : S = v, b = v) : (S && (_ ? S.prepend("buffer += ") : p = !0, b.add(";"), S = b = void 0), _ = !0, e || (l = !1));
3233
+ }), l ? S ? (S.prepend("return "), b.add(";")) : _ || this.source.push('return "";') : (t += ", buffer = " + (p ? "" : this.initializeBuffer()), S ? (S.prepend("return buffer + "), b.add(";")) : this.source.push("return buffer;")), t && this.source.prepend("var " + t.substring(2) + (p ? "" : `;
3234
+ `)), this.source.merge();
3235
+ },
3236
+ lookupPropertyFunctionVarDeclaration: function() {
3237
+ return `
3238
+ lookupProperty = container.lookupProperty || function(parent, propertyName) {
3239
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
3240
+ return parent[propertyName];
3241
+ }
3242
+ return undefined
3243
+ }
3244
+ `.trim();
3245
+ },
3246
+ // [blockValue]
3247
+ //
3248
+ // On stack, before: hash, inverse, program, value
3249
+ // On stack, after: return value of blockHelperMissing
3250
+ //
3251
+ // The purpose of this opcode is to take a block of the form
3252
+ // `{{#this.foo}}...{{/this.foo}}`, resolve the value of `foo`, and
3253
+ // replace it on the stack with the result of properly
3254
+ // invoking blockHelperMissing.
3255
+ blockValue: function(t) {
3256
+ var e = this.aliasable("container.hooks.blockHelperMissing"), l = [this.contextName(0)];
3257
+ this.setupHelperArgs(t, 0, l);
3258
+ var p = this.popStack();
3259
+ l.splice(1, 0, p), this.push(this.source.functionCall(e, "call", l));
3260
+ },
3261
+ // [ambiguousBlockValue]
3262
+ //
3263
+ // On stack, before: hash, inverse, program, value
3264
+ // Compiler value, before: lastHelper=value of last found helper, if any
3265
+ // On stack, after, if no lastHelper: same as [blockValue]
3266
+ // On stack, after, if lastHelper: value
3267
+ ambiguousBlockValue: function() {
3268
+ var t = this.aliasable("container.hooks.blockHelperMissing"), e = [this.contextName(0)];
3269
+ this.setupHelperArgs("", 0, e, !0), this.flushInline();
3270
+ var l = this.topStack();
3271
+ e.splice(1, 0, l), this.pushSource(["if (!", this.lastHelper, ") { ", l, " = ", this.source.functionCall(t, "call", e), "}"]);
3272
+ },
3273
+ // [appendContent]
3274
+ //
3275
+ // On stack, before: ...
3276
+ // On stack, after: ...
3277
+ //
3278
+ // Appends the string value of `content` to the current buffer
3279
+ appendContent: function(t) {
3280
+ this.pendingContent ? t = this.pendingContent + t : this.pendingLocation = this.source.currentLocation, this.pendingContent = t;
3281
+ },
3282
+ // [append]
3283
+ //
3284
+ // On stack, before: value, ...
3285
+ // On stack, after: ...
3286
+ //
3287
+ // Coerces `value` to a String and appends it to the current buffer.
3288
+ //
3289
+ // If `value` is truthy, or 0, it is coerced into a string and appended
3290
+ // Otherwise, the empty string is appended
3291
+ append: function() {
3292
+ if (this.isInline())
3293
+ this.replaceStack(function(e) {
3294
+ return [" != null ? ", e, ' : ""'];
3295
+ }), this.pushSource(this.appendToBuffer(this.popStack()));
3296
+ else {
3297
+ var t = this.popStack();
3298
+ this.pushSource(["if (", t, " != null) { ", this.appendToBuffer(t, void 0, !0), " }"]), this.environment.isSimple && this.pushSource(["else { ", this.appendToBuffer("''", void 0, !0), " }"]);
3299
+ }
3300
+ },
3301
+ // [appendEscaped]
3302
+ //
3303
+ // On stack, before: value, ...
3304
+ // On stack, after: ...
3305
+ //
3306
+ // Escape `value` and append it to the buffer
3307
+ appendEscaped: function() {
3308
+ this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"), "(", this.popStack(), ")"]));
3309
+ },
3310
+ // [getContext]
3311
+ //
3312
+ // On stack, before: ...
3313
+ // On stack, after: ...
3314
+ // Compiler value, after: lastContext=depth
3315
+ //
3316
+ // Set the value of the `lastContext` compiler value to the depth
3317
+ getContext: function(t) {
3318
+ this.lastContext = t;
3319
+ },
3320
+ // [pushContext]
3321
+ //
3322
+ // On stack, before: ...
3323
+ // On stack, after: currentContext, ...
3324
+ //
3325
+ // Pushes the value of the current context onto the stack.
3326
+ pushContext: function() {
3327
+ this.pushStackLiteral(this.contextName(this.lastContext));
3328
+ },
3329
+ // [lookupOnContext]
3330
+ //
3331
+ // On stack, before: ...
3332
+ // On stack, after: currentContext[name], ...
3333
+ //
3334
+ // Looks up the value of `name` on the current context and pushes
3335
+ // it onto the stack.
3336
+ lookupOnContext: function(t, e, l, p) {
3337
+ var _ = 0;
3338
+ !p && this.options.compat && !this.lastContext ? this.push(this.depthedLookup(t[_++])) : this.pushContext(), this.resolvePath("context", t, _, e, l);
3339
+ },
3340
+ // [lookupBlockParam]
3341
+ //
3342
+ // On stack, before: ...
3343
+ // On stack, after: blockParam[name], ...
3344
+ //
3345
+ // Looks up the value of `parts` on the given block param and pushes
3346
+ // it onto the stack.
3347
+ lookupBlockParam: function(t, e) {
3348
+ this.useBlockParams = !0, this.push(["blockParams[", t[0], "][", t[1], "]"]), this.resolvePath("context", e, 1);
3349
+ },
3350
+ // [lookupData]
3351
+ //
3352
+ // On stack, before: ...
3353
+ // On stack, after: data, ...
3354
+ //
3355
+ // Push the data lookup operator
3356
+ lookupData: function(t, e, l) {
3357
+ t ? this.pushStackLiteral("container.data(data, " + t + ")") : this.pushStackLiteral("data"), this.resolvePath("data", e, 0, !0, l);
3358
+ },
3359
+ resolvePath: function(t, e, l, p, _) {
3360
+ var S = this;
3361
+ if (this.options.strict || this.options.assumeObjects) {
3362
+ this.push(d(this.options.strict && _, this, e, l, t));
3363
+ return;
3364
+ }
3365
+ for (var b = e.length; l < b; l++)
3366
+ this.replaceStack(function(v) {
3367
+ var y = S.nameLookup(v, e[l], t);
3368
+ return p ? [" && ", y] : [" != null ? ", y, " : ", v];
3369
+ });
3370
+ },
3371
+ // [resolvePossibleLambda]
3372
+ //
3373
+ // On stack, before: value, ...
3374
+ // On stack, after: resolved value, ...
3375
+ //
3376
+ // If the `value` is a lambda, replace it on the stack by
3377
+ // the return value of the lambda
3378
+ resolvePossibleLambda: function() {
3379
+ this.push([this.aliasable("container.lambda"), "(", this.popStack(), ", ", this.contextName(0), ")"]);
3380
+ },
3381
+ // [pushStringParam]
3382
+ //
3383
+ // On stack, before: ...
3384
+ // On stack, after: string, currentContext, ...
3385
+ //
3386
+ // This opcode is designed for use in string mode, which
3387
+ // provides the string value of a parameter along with its
3388
+ // depth rather than resolving it immediately.
3389
+ pushStringParam: function(t, e) {
3390
+ this.pushContext(), this.pushString(e), e !== "SubExpression" && (typeof t == "string" ? this.pushString(t) : this.pushStackLiteral(t));
3391
+ },
3392
+ emptyHash: function(t) {
3393
+ this.trackIds && this.push("{}"), this.stringParams && (this.push("{}"), this.push("{}")), this.pushStackLiteral(t ? "undefined" : "{}");
3394
+ },
3395
+ pushHash: function() {
3396
+ this.hash && this.hashes.push(this.hash), this.hash = { values: {}, types: [], contexts: [], ids: [] };
3397
+ },
3398
+ popHash: function() {
3399
+ var t = this.hash;
3400
+ this.hash = this.hashes.pop(), this.trackIds && this.push(this.objectLiteral(t.ids)), this.stringParams && (this.push(this.objectLiteral(t.contexts)), this.push(this.objectLiteral(t.types))), this.push(this.objectLiteral(t.values));
3401
+ },
3402
+ // [pushString]
3403
+ //
3404
+ // On stack, before: ...
3405
+ // On stack, after: quotedString(string), ...
3406
+ //
3407
+ // Push a quoted version of `string` onto the stack
3408
+ pushString: function(t) {
3409
+ this.pushStackLiteral(this.quotedString(t));
3410
+ },
3411
+ // [pushLiteral]
3412
+ //
3413
+ // On stack, before: ...
3414
+ // On stack, after: value, ...
3415
+ //
3416
+ // Pushes a value onto the stack. This operation prevents
3417
+ // the compiler from creating a temporary variable to hold
3418
+ // it.
3419
+ pushLiteral: function(t) {
3420
+ this.pushStackLiteral(t);
3421
+ },
3422
+ // [pushProgram]
3423
+ //
3424
+ // On stack, before: ...
3425
+ // On stack, after: program(guid), ...
3426
+ //
3427
+ // Push a program expression onto the stack. This takes
3428
+ // a compile-time guid and converts it into a runtime-accessible
3429
+ // expression.
3430
+ pushProgram: function(t) {
3431
+ t != null ? this.pushStackLiteral(this.programExpression(t)) : this.pushStackLiteral(null);
3432
+ },
3433
+ // [registerDecorator]
3434
+ //
3435
+ // On stack, before: hash, program, params..., ...
3436
+ // On stack, after: ...
3437
+ //
3438
+ // Pops off the decorator's parameters, invokes the decorator,
3439
+ // and inserts the decorator into the decorators list.
3440
+ registerDecorator: function(t, e) {
3441
+ var l = this.nameLookup("decorators", e, "decorator"), p = this.setupHelperArgs(e, t);
3442
+ this.decorators.push(["fn = ", this.decorators.functionCall(l, "", ["fn", "props", "container", p]), " || fn;"]);
3443
+ },
3444
+ // [invokeHelper]
3445
+ //
3446
+ // On stack, before: hash, inverse, program, params..., ...
3447
+ // On stack, after: result of helper invocation
3448
+ //
3449
+ // Pops off the helper's parameters, invokes the helper,
3450
+ // and pushes the helper's return value onto the stack.
3451
+ //
3452
+ // If the helper is not found, `helperMissing` is called.
3453
+ invokeHelper: function(t, e, l) {
3454
+ var p = this.popStack(), _ = this.setupHelper(t, e), S = [];
3455
+ l && S.push(_.name), S.push(p), this.options.strict || S.push(this.aliasable("container.hooks.helperMissing"));
3456
+ var b = ["(", this.itemsSeparatedBy(S, "||"), ")"], v = this.source.functionCall(b, "call", _.callParams);
3457
+ this.push(v);
3458
+ },
3459
+ itemsSeparatedBy: function(t, e) {
3460
+ var l = [];
3461
+ l.push(t[0]);
3462
+ for (var p = 1; p < t.length; p++)
3463
+ l.push(e, t[p]);
3464
+ return l;
3465
+ },
3466
+ // [invokeKnownHelper]
3467
+ //
3468
+ // On stack, before: hash, inverse, program, params..., ...
3469
+ // On stack, after: result of helper invocation
3470
+ //
3471
+ // This operation is used when the helper is known to exist,
3472
+ // so a `helperMissing` fallback is not required.
3473
+ invokeKnownHelper: function(t, e) {
3474
+ var l = this.setupHelper(t, e);
3475
+ this.push(this.source.functionCall(l.name, "call", l.callParams));
3476
+ },
3477
+ // [invokeAmbiguous]
3478
+ //
3479
+ // On stack, before: hash, inverse, program, params..., ...
3480
+ // On stack, after: result of disambiguation
3481
+ //
3482
+ // This operation is used when an expression like `{{foo}}`
3483
+ // is provided, but we don't know at compile-time whether it
3484
+ // is a helper or a path.
3485
+ //
3486
+ // This operation emits more code than the other options,
3487
+ // and can be avoided by passing the `knownHelpers` and
3488
+ // `knownHelpersOnly` flags at compile-time.
3489
+ invokeAmbiguous: function(t, e) {
3490
+ this.useRegister("helper");
3491
+ var l = this.popStack();
3492
+ this.emptyHash();
3493
+ var p = this.setupHelper(0, t, e), _ = this.lastHelper = this.nameLookup("helpers", t, "helper"), S = ["(", "(helper = ", _, " || ", l, ")"];
3494
+ this.options.strict || (S[0] = "(helper = ", S.push(" != null ? helper : ", this.aliasable("container.hooks.helperMissing"))), this.push(["(", S, p.paramsInit ? ["),(", p.paramsInit] : [], "),", "(typeof helper === ", this.aliasable('"function"'), " ? ", this.source.functionCall("helper", "call", p.callParams), " : helper))"]);
3495
+ },
3496
+ // [invokePartial]
3497
+ //
3498
+ // On stack, before: context, ...
3499
+ // On stack after: result of partial invocation
3500
+ //
3501
+ // This operation pops off a context, invokes a partial with that context,
3502
+ // and pushes the result of the invocation back.
3503
+ invokePartial: function(t, e, l) {
3504
+ var p = [], _ = this.setupParams(e, 1, p);
3505
+ t && (e = this.popStack(), delete _.name), l && (_.indent = JSON.stringify(l)), _.helpers = "helpers", _.partials = "partials", _.decorators = "container.decorators", t ? p.unshift(e) : p.unshift(this.nameLookup("partials", e, "partial")), this.options.compat && (_.depths = "depths"), _ = this.objectLiteral(_), p.push(_), this.push(this.source.functionCall("container.invokePartial", "", p));
3506
+ },
3507
+ // [assignToHash]
3508
+ //
3509
+ // On stack, before: value, ..., hash, ...
3510
+ // On stack, after: ..., hash, ...
3511
+ //
3512
+ // Pops a value off the stack and assigns it to the current hash
3513
+ assignToHash: function(t) {
3514
+ var e = this.popStack(), l = void 0, p = void 0, _ = void 0;
3515
+ this.trackIds && (_ = this.popStack()), this.stringParams && (p = this.popStack(), l = this.popStack());
3516
+ var S = this.hash;
3517
+ l && (S.contexts[t] = l), p && (S.types[t] = p), _ && (S.ids[t] = _), S.values[t] = e;
3518
+ },
3519
+ pushId: function(t, e, l) {
3520
+ t === "BlockParam" ? this.pushStackLiteral("blockParams[" + e[0] + "].path[" + e[1] + "]" + (l ? " + " + JSON.stringify("." + l) : "")) : t === "PathExpression" ? this.pushString(e) : t === "SubExpression" ? this.pushStackLiteral("true") : this.pushStackLiteral("null");
3521
+ },
3522
+ // HELPERS
3523
+ compiler: o,
3524
+ compileChildren: function(t, e) {
3525
+ for (var l = t.children, p = void 0, _ = void 0, S = 0, b = l.length; S < b; S++) {
3526
+ p = l[S], _ = new this.compiler();
3527
+ var v = this.matchExistingProgram(p);
3528
+ if (v == null) {
3529
+ this.context.programs.push("");
3530
+ var y = this.context.programs.length;
3531
+ p.index = y, p.name = "program" + y, this.context.programs[y] = _.compile(p, e, this.context, !this.precompile), this.context.decorators[y] = _.decorators, this.context.environments[y] = p, this.useDepths = this.useDepths || _.useDepths, this.useBlockParams = this.useBlockParams || _.useBlockParams, p.useDepths = this.useDepths, p.useBlockParams = this.useBlockParams;
3532
+ } else
3533
+ p.index = v.index, p.name = "program" + v.index, this.useDepths = this.useDepths || v.useDepths, this.useBlockParams = this.useBlockParams || v.useBlockParams;
3534
+ }
3535
+ },
3536
+ matchExistingProgram: function(t) {
3537
+ for (var e = 0, l = this.context.environments.length; e < l; e++) {
3538
+ var p = this.context.environments[e];
3539
+ if (p && p.equals(t))
3540
+ return p;
3541
+ }
3542
+ },
3543
+ programExpression: function(t) {
3544
+ var e = this.environment.children[t], l = [e.index, "data", e.blockParams];
3545
+ return (this.useBlockParams || this.useDepths) && l.push("blockParams"), this.useDepths && l.push("depths"), "container.program(" + l.join(", ") + ")";
3546
+ },
3547
+ useRegister: function(t) {
3548
+ this.registers[t] || (this.registers[t] = !0, this.registers.list.push(t));
3549
+ },
3550
+ push: function(t) {
3551
+ return t instanceof a || (t = this.source.wrap(t)), this.inlineStack.push(t), t;
3552
+ },
3553
+ pushStackLiteral: function(t) {
3554
+ this.push(new a(t));
3555
+ },
3556
+ pushSource: function(t) {
3557
+ this.pendingContent && (this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent), this.pendingLocation)), this.pendingContent = void 0), t && this.source.push(t);
3558
+ },
3559
+ replaceStack: function(t) {
3560
+ var e = ["("], l = void 0, p = void 0, _ = void 0;
3561
+ if (!this.isInline())
3562
+ throw new f.default("replaceStack on non-inline");
3563
+ var S = this.popStack(!0);
3564
+ if (S instanceof a)
3565
+ l = [S.value], e = ["(", l], _ = !0;
3566
+ else {
3567
+ p = !0;
3568
+ var b = this.incrStack();
3569
+ e = ["((", this.push(b), " = ", S, ")"], l = this.topStack();
3570
+ }
3571
+ var v = t.call(this, l);
3572
+ _ || this.popStack(), p && this.stackSlot--, this.push(e.concat(v, ")"));
3573
+ },
3574
+ incrStack: function() {
3575
+ return this.stackSlot++, this.stackSlot > this.stackVars.length && this.stackVars.push("stack" + this.stackSlot), this.topStackName();
3576
+ },
3577
+ topStackName: function() {
3578
+ return "stack" + this.stackSlot;
3579
+ },
3580
+ flushInline: function() {
3581
+ var t = this.inlineStack;
3582
+ this.inlineStack = [];
3583
+ for (var e = 0, l = t.length; e < l; e++) {
3584
+ var p = t[e];
3585
+ if (p instanceof a)
3586
+ this.compileStack.push(p);
3587
+ else {
3588
+ var _ = this.incrStack();
3589
+ this.pushSource([_, " = ", p, ";"]), this.compileStack.push(_);
3590
+ }
3591
+ }
3592
+ },
3593
+ isInline: function() {
3594
+ return this.inlineStack.length;
3595
+ },
3596
+ popStack: function(t) {
3597
+ var e = this.isInline(), l = (e ? this.inlineStack : this.compileStack).pop();
3598
+ if (!t && l instanceof a)
3599
+ return l.value;
3600
+ if (!e) {
3601
+ if (!this.stackSlot)
3602
+ throw new f.default("Invalid stack pop");
3603
+ this.stackSlot--;
3604
+ }
3605
+ return l;
3606
+ },
3607
+ topStack: function() {
3608
+ var t = this.isInline() ? this.inlineStack : this.compileStack, e = t[t.length - 1];
3609
+ return e instanceof a ? e.value : e;
3610
+ },
3611
+ contextName: function(t) {
3612
+ return this.useDepths && t ? "depths[" + t + "]" : "depth" + t;
3613
+ },
3614
+ quotedString: function(t) {
3615
+ return this.source.quotedString(t);
3616
+ },
3617
+ objectLiteral: function(t) {
3618
+ return this.source.objectLiteral(t);
3619
+ },
3620
+ aliasable: function(t) {
3621
+ var e = this.aliases[t];
3622
+ return e ? (e.referenceCount++, e) : (e = this.aliases[t] = this.source.wrap(t), e.aliasable = !0, e.referenceCount = 1, e);
3623
+ },
3624
+ setupHelper: function(t, e, l) {
3625
+ var p = [], _ = this.setupHelperArgs(e, t, p, l), S = this.nameLookup("helpers", e, "helper"), b = this.aliasable(this.contextName(0) + " != null ? " + this.contextName(0) + " : (container.nullContext || {})");
3626
+ return {
3627
+ params: p,
3628
+ paramsInit: _,
3629
+ name: S,
3630
+ callParams: [b].concat(p)
3631
+ };
3632
+ },
3633
+ setupParams: function(t, e, l) {
3634
+ var p = {}, _ = [], S = [], b = [], v = !l, y = void 0;
3635
+ v && (l = []), p.name = this.quotedString(t), p.hash = this.popStack(), this.trackIds && (p.hashIds = this.popStack()), this.stringParams && (p.hashTypes = this.popStack(), p.hashContexts = this.popStack());
3636
+ var C = this.popStack(), k = this.popStack();
3637
+ (k || C) && (p.fn = k || "container.noop", p.inverse = C || "container.noop");
3638
+ for (var E = e; E--; )
3639
+ y = this.popStack(), l[E] = y, this.trackIds && (b[E] = this.popStack()), this.stringParams && (S[E] = this.popStack(), _[E] = this.popStack());
3640
+ return v && (p.args = this.source.generateArray(l)), this.trackIds && (p.ids = this.source.generateArray(b)), this.stringParams && (p.types = this.source.generateArray(S), p.contexts = this.source.generateArray(_)), this.options.data && (p.data = "data"), this.useBlockParams && (p.blockParams = "blockParams"), p;
3641
+ },
3642
+ setupHelperArgs: function(t, e, l, p) {
3643
+ var _ = this.setupParams(t, e, l);
3644
+ return _.loc = JSON.stringify(this.source.currentLocation), _ = this.objectLiteral(_), p ? (this.useRegister("options"), l.push("options"), ["options=", _]) : l ? (l.push(_), "") : _;
3645
+ }
3646
+ }, function() {
3647
+ for (var r = "break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "), t = o.RESERVED_WORDS = {}, e = 0, l = r.length; e < l; e++)
3648
+ t[r[e]] = !0;
3649
+ }(), o.isValidJavaScriptVariableName = function(r) {
3650
+ return !o.RESERVED_WORDS[r] && /^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(r);
3651
+ };
3652
+ function d(r, t, e, l, p) {
3653
+ var _ = t.popStack(), S = e.length;
3654
+ for (r && S--; l < S; l++)
3655
+ _ = t.nameLookup(_, e[l], p);
3656
+ return r ? [t.aliasable("container.strict"), "(", _, ", ", t.quotedString(e[l]), ", ", JSON.stringify(t.source.currentLocation), " )"] : _;
3657
+ }
3658
+ i.default = o, n.exports = i.default;
3659
+ }(Ae, Ae.exports)), Ae.exports;
3660
+ }
3661
+ var Zt;
3662
+ function Ni() {
3663
+ return Zt || (Zt = 1, function(n, i) {
3664
+ i.__esModule = !0;
3665
+ function s(S) {
3666
+ return S && S.__esModule ? S : { default: S };
3667
+ }
3668
+ var c = vi(), m = s(c), f = fr(), g = s(f), h = bi(), u = Ci(), a = Mi(), o = s(a), d = dr(), r = s(d), t = pr(), e = s(t), l = m.default.create;
3669
+ function p() {
3670
+ var S = l();
3671
+ return S.compile = function(b, v) {
3672
+ return u.compile(b, v, S);
3673
+ }, S.precompile = function(b, v) {
3674
+ return u.precompile(b, v, S);
3675
+ }, S.AST = g.default, S.Compiler = u.Compiler, S.JavaScriptCompiler = o.default, S.Parser = h.parser, S.parse = h.parse, S.parseWithoutProcessing = h.parseWithoutProcessing, S;
3676
+ }
3677
+ var _ = p();
3678
+ _.create = p, e.default(_), _.Visitor = r.default, _.default = _, i.default = _, n.exports = i.default;
3679
+ }(le, le.exports)), le.exports;
3680
+ }
3681
+ var _r = Ni();
3682
+ _r.Utils.escapeExpression = (n) => String(n ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
3683
+ const je = "language", ue = Fr((n) => ({
3684
+ language: "en",
3685
+ setLanguage: (i) => {
3686
+ n({ language: i }), localStorage.setItem(je, i);
3687
+ }
3688
+ }));
3689
+ function et(n) {
3690
+ const { language: i, setLanguage: s } = ue(), c = Cr(n), m = T(() => c.current[i], [i]), f = T(() => c.current.en, []), g = G(
3691
+ (d) => {
3692
+ const r = ut(f, d);
3693
+ return ut(m, d, r);
3694
+ },
3695
+ [m, f]
3696
+ ), h = G(
3697
+ (d) => {
3698
+ const r = g(d);
3699
+ if (r !== void 0)
3700
+ return _r.compile(r);
3701
+ },
3702
+ [g]
3703
+ ), u = G(
3704
+ (d, r) => {
3705
+ const t = `!!! ${d} !!!`, e = h(d);
3706
+ return e === void 0 ? (console.error(`Missing translation for key: ${d}`), t) : e(r);
3707
+ },
3708
+ [h]
3709
+ ), a = G(
3710
+ (d) => g(d) !== void 0,
3711
+ [g]
3712
+ ), o = (d) => {
3713
+ const r = [], t = (e, l) => {
3714
+ Object.entries(e).forEach(([p, _]) => {
3715
+ const S = l ? `${l}.${p}` : p;
3716
+ _ !== null && typeof _ == "object" && !Array.isArray(_) ? t(_, S) : r.push(S);
3717
+ });
3718
+ };
3719
+ return t(d, ""), r;
3720
+ };
3721
+ return nr(() => {
3722
+ if (process.env.NODE_ENV !== "development")
3723
+ return;
3724
+ const d = /* @__PURE__ */ new Map();
3725
+ Object.entries(c.current).forEach(([t, e]) => {
3726
+ o(e).forEach((p) => {
3727
+ let _ = d.get(p);
3728
+ _ || (_ = /* @__PURE__ */ new Set(), d.set(p, _)), _.add(t);
3729
+ });
3730
+ });
3731
+ const r = Object.keys(c.current);
3732
+ d.forEach((t, e) => {
3733
+ if (t.size === r.length)
3734
+ return;
3735
+ const l = r.filter((p) => !t.has(p));
3736
+ console.error("Missing i18n Translation Key:", e, "in languages:", l);
3737
+ });
3738
+ }, []), {
3739
+ t: u,
3740
+ tExists: a,
3741
+ language: i,
3742
+ setLanguage: s
3743
+ };
3744
+ }
3745
+ function Ts() {
3746
+ const n = localStorage.getItem(je), i = sessionStorage.getItem(je);
3747
+ let s = navigator.language;
3748
+ s.includes("-") && (s = s.split("-")[0]);
3749
+ const c = n || i || s;
3750
+ ue.getState().setLanguage(c);
3751
+ }
3752
+ function ne(n, i, s) {
3753
+ return parseInt(n.substr(i, s), 16);
3754
+ }
3755
+ function Sr(n) {
3756
+ return n |= 0, n < 0 ? "00" : n < 16 ? "0" + n.toString(16) : n < 256 ? n.toString(16) : "ff";
3757
+ }
3758
+ function Ke(n, i, s) {
3759
+ return s = s < 0 ? s + 6 : s > 6 ? s - 6 : s, Sr(255 * (s < 1 ? n + (i - n) * s : s < 3 ? i : s < 4 ? n + (i - n) * (4 - s) : n));
3760
+ }
3761
+ function Ii(n) {
3762
+ if (/^#[0-9a-f]{3,8}$/i.test(n)) {
3763
+ let i;
3764
+ const s = n.length;
3765
+ if (s < 6) {
3766
+ const c = n[1], m = n[2], f = n[3], g = n[4] || "";
3767
+ i = "#" + c + c + m + m + f + f + g + g;
3768
+ }
3769
+ return (s == 7 || s > 8) && (i = n), i;
3770
+ }
3771
+ }
3772
+ function Ri(n, i, s) {
3773
+ let c;
3774
+ if (i == 0) {
3775
+ const m = Sr(s * 255);
3776
+ c = m + m + m;
3777
+ } else {
3778
+ const m = s <= 0.5 ? s * (i + 1) : s + i - s * i, f = s * 2 - m;
3779
+ c = Ke(f, m, n * 6 + 2) + Ke(f, m, n * 6) + Ke(f, m, n * 6 - 2);
3780
+ }
3781
+ return "#" + c;
3782
+ }
3783
+ function re(n, i, s) {
3784
+ const c = [0.55, 0.5, 0.5, 0.46, 0.6, 0.55, 0.55], m = c[n * 6 + 0.5 | 0];
3785
+ return s = s < 0.5 ? s * m * 2 : m + (s - 0.5) * (1 - m) * 2, Ri(n, i, s);
3786
+ }
3787
+ const Di = typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {}, Yt = {
3788
+ V: "jdenticon_config",
3789
+ n: "config"
3790
+ };
3791
+ var Bi = {};
3792
+ function Ti(n, i) {
3793
+ const s = Bi[
3794
+ Yt.n
3795
+ /*MODULE*/
3796
+ ] || Di[
3797
+ Yt.V
3798
+ /*GLOBAL*/
3799
+ ] || {}, c = s.lightness || {}, m = s.saturation || {}, f = "color" in m ? m.color : m, g = m.grayscale, h = s.backColor, u = s.padding;
3800
+ function a(d, r) {
3801
+ let t = c[d];
3802
+ return t && t.length > 1 || (t = r), function(e) {
3803
+ return e = t[0] + e * (t[1] - t[0]), e < 0 ? 0 : e > 1 ? 1 : e;
3804
+ };
3805
+ }
3806
+ function o(d) {
3807
+ const r = s.hues;
3808
+ let t;
3809
+ return r && r.length > 0 && (t = r[0 | 0.999 * d * r.length]), typeof t == "number" ? (
3810
+ // A hue was specified. We need to convert the hue from
3811
+ // degrees on any turn - e.g. 746° is a perfectly valid hue -
3812
+ // to turns in the range [0, 1).
3813
+ (t / 360 % 1 + 1) % 1
3814
+ ) : (
3815
+ // No hue configured => use original hue
3816
+ d
3817
+ );
3818
+ }
3819
+ return {
3820
+ W: o,
3821
+ o: typeof f == "number" ? f : 0.5,
3822
+ D: typeof g == "number" ? g : 0,
3823
+ p: a("color", [0.4, 0.8]),
3824
+ F: a("grayscale", [0.3, 0.9]),
3825
+ G: Ii(h),
3826
+ X: typeof u == "number" ? u : i
3827
+ };
3828
+ }
3829
+ class Re {
3830
+ /**
3831
+ * @param {number} x
3832
+ * @param {number} y
3833
+ */
3834
+ constructor(i, s) {
3835
+ this.x = i, this.y = s;
3836
+ }
3837
+ }
3838
+ class yr {
3839
+ /**
3840
+ * @param {number} x The x-coordinate of the upper left corner of the transformed rectangle.
3841
+ * @param {number} y The y-coordinate of the upper left corner of the transformed rectangle.
3842
+ * @param {number} size The size of the transformed rectangle.
3843
+ * @param {number} rotation Rotation specified as 0 = 0 rad, 1 = 0.5π rad, 2 = π rad, 3 = 1.5π rad
3844
+ */
3845
+ constructor(i, s, c, m) {
3846
+ this.q = i, this.t = s, this.H = c, this.Y = m;
3847
+ }
3848
+ /**
3849
+ * Transforms the specified point based on the translation and rotation specification for this Transform.
3850
+ * @param {number} x x-coordinate
3851
+ * @param {number} y y-coordinate
3852
+ * @param {number=} w The width of the transformed rectangle. If greater than 0, this will ensure the returned point is of the upper left corner of the transformed rectangle.
3853
+ * @param {number=} h The height of the transformed rectangle. If greater than 0, this will ensure the returned point is of the upper left corner of the transformed rectangle.
3854
+ */
3855
+ I(i, s, c, m) {
3856
+ const f = this.q + this.H, g = this.t + this.H, h = this.Y;
3857
+ return h === 1 ? new Re(f - s - (m || 0), this.t + i) : h === 2 ? new Re(f - i - (c || 0), g - s - (m || 0)) : h === 3 ? new Re(this.q + s, g - i - (c || 0)) : new Re(this.q + i, this.t + s);
3858
+ }
3859
+ }
3860
+ const Hi = new yr(0, 0, 0, 0);
3861
+ class qi {
3862
+ /**
3863
+ * @param {Renderer} renderer
3864
+ */
3865
+ constructor(i) {
3866
+ this.J = i, this.u = Hi;
3867
+ }
3868
+ /**
3869
+ * Adds a polygon to the underlying renderer.
3870
+ * @param {Array<number>} points The points of the polygon clockwise on the format [ x0, y0, x1, y1, ..., xn, yn ]
3871
+ * @param {boolean=} invert Specifies if the polygon will be inverted.
3872
+ */
3873
+ g(i, s) {
3874
+ const c = s ? -2 : 2, m = [];
3875
+ for (let f = s ? i.length - 2 : 0; f < i.length && f >= 0; f += c)
3876
+ m.push(this.u.I(i[f], i[f + 1]));
3877
+ this.J.g(m);
3878
+ }
3879
+ /**
3880
+ * Adds a polygon to the underlying renderer.
3881
+ * Source: http://stackoverflow.com/a/2173084
3882
+ * @param {number} x The x-coordinate of the upper left corner of the rectangle holding the entire ellipse.
3883
+ * @param {number} y The y-coordinate of the upper left corner of the rectangle holding the entire ellipse.
3884
+ * @param {number} size The size of the ellipse.
3885
+ * @param {boolean=} invert Specifies if the ellipse will be inverted.
3886
+ */
3887
+ h(i, s, c, m) {
3888
+ const f = this.u.I(i, s, c, c);
3889
+ this.J.h(f, c, m);
3890
+ }
3891
+ /**
3892
+ * Adds a rectangle to the underlying renderer.
3893
+ * @param {number} x The x-coordinate of the upper left corner of the rectangle.
3894
+ * @param {number} y The y-coordinate of the upper left corner of the rectangle.
3895
+ * @param {number} w The width of the rectangle.
3896
+ * @param {number} h The height of the rectangle.
3897
+ * @param {boolean=} invert Specifies if the rectangle will be inverted.
3898
+ */
3899
+ i(i, s, c, m, f) {
3900
+ this.g([
3901
+ i,
3902
+ s,
3903
+ i + c,
3904
+ s,
3905
+ i + c,
3906
+ s + m,
3907
+ i,
3908
+ s + m
3909
+ ], f);
3910
+ }
3911
+ /**
3912
+ * Adds a right triangle to the underlying renderer.
3913
+ * @param {number} x The x-coordinate of the upper left corner of the rectangle holding the triangle.
3914
+ * @param {number} y The y-coordinate of the upper left corner of the rectangle holding the triangle.
3915
+ * @param {number} w The width of the triangle.
3916
+ * @param {number} h The height of the triangle.
3917
+ * @param {number} r The rotation of the triangle (clockwise). 0 = right corner of the triangle in the lower left corner of the bounding rectangle.
3918
+ * @param {boolean=} invert Specifies if the triangle will be inverted.
3919
+ */
3920
+ j(i, s, c, m, f, g) {
3921
+ const h = [
3922
+ i + c,
3923
+ s,
3924
+ i + c,
3925
+ s + m,
3926
+ i,
3927
+ s + m,
3928
+ i,
3929
+ s
3930
+ ];
3931
+ h.splice((f || 0) % 4 * 2, 2), this.g(h, g);
3932
+ }
3933
+ /**
3934
+ * Adds a rhombus to the underlying renderer.
3935
+ * @param {number} x The x-coordinate of the upper left corner of the rectangle holding the rhombus.
3936
+ * @param {number} y The y-coordinate of the upper left corner of the rectangle holding the rhombus.
3937
+ * @param {number} w The width of the rhombus.
3938
+ * @param {number} h The height of the rhombus.
3939
+ * @param {boolean=} invert Specifies if the rhombus will be inverted.
3940
+ */
3941
+ K(i, s, c, m, f) {
3942
+ this.g([
3943
+ i + c / 2,
3944
+ s,
3945
+ i + c,
3946
+ s + m / 2,
3947
+ i + c / 2,
3948
+ s + m,
3949
+ i,
3950
+ s + m / 2
3951
+ ], f);
3952
+ }
3953
+ }
3954
+ function Fi(n, i, s, c) {
3955
+ n = n % 14;
3956
+ let m, f, g, h, u, a;
3957
+ n ? n == 1 ? (g = 0 | s * 0.5, h = 0 | s * 0.8, i.j(s - g, 0, g, h, 2)) : n == 2 ? (g = 0 | s / 3, i.i(g, g, s - g, s - g)) : n == 3 ? (u = s * 0.1, // Use fixed outer border widths in small icons to ensure the border is drawn
3958
+ a = s < 6 ? 1 : s < 8 ? 2 : 0 | s * 0.25, u = u > 1 ? 0 | u : (
3959
+ // large icon => truncate decimals
3960
+ u > 0.5 ? 1 : (
3961
+ // medium size icon => fixed width
3962
+ u
3963
+ )
3964
+ ), // small icon => anti-aliased border
3965
+ i.i(a, a, s - u - a, s - u - a)) : n == 4 ? (f = 0 | s * 0.15, g = 0 | s * 0.5, i.h(s - g - f, s - g - f, g)) : n == 5 ? (u = s * 0.1, a = u * 4, // Align edge to nearest pixel in large icons
3966
+ a > 3 && (a = 0 | a), i.i(0, 0, s, s), i.g([
3967
+ a,
3968
+ a,
3969
+ s - u,
3970
+ a,
3971
+ a + (s - a - u) / 2,
3972
+ s - u
3973
+ ], !0)) : n == 6 ? i.g([
3974
+ 0,
3975
+ 0,
3976
+ s,
3977
+ 0,
3978
+ s,
3979
+ s * 0.7,
3980
+ s * 0.4,
3981
+ s * 0.4,
3982
+ s * 0.7,
3983
+ s,
3984
+ 0,
3985
+ s
3986
+ ]) : n == 7 ? i.j(s / 2, s / 2, s / 2, s / 2, 3) : n == 8 ? (i.i(0, 0, s, s / 2), i.i(0, s / 2, s / 2, s / 2), i.j(s / 2, s / 2, s / 2, s / 2, 1)) : n == 9 ? (u = s * 0.14, // Use fixed outer border widths in small icons to ensure the border is drawn
3987
+ a = s < 4 ? 1 : s < 6 ? 2 : 0 | s * 0.35, u = s < 8 ? u : (
3988
+ // small icon => anti-aliased border
3989
+ 0 | u
3990
+ ), // large icon => truncate decimals
3991
+ i.i(0, 0, s, s), i.i(a, a, s - a - u, s - a - u, !0)) : n == 10 ? (u = s * 0.12, a = u * 3, i.i(0, 0, s, s), i.h(a, a, s - u - a, !0)) : n == 11 ? i.j(s / 2, s / 2, s / 2, s / 2, 3) : n == 12 ? (f = s * 0.25, i.i(0, 0, s, s), i.K(f, f, s - f, s - f, !0)) : (
3992
+ // 13
3993
+ !c && (f = s * 0.4, g = s * 1.2, i.h(f, f, g))
3994
+ ) : (m = s * 0.42, i.g([
3995
+ 0,
3996
+ 0,
3997
+ s,
3998
+ 0,
3999
+ s,
4000
+ s - m * 2,
4001
+ s - m,
4002
+ s,
4003
+ 0,
4004
+ s
4005
+ ]));
4006
+ }
4007
+ function Xt(n, i, s) {
4008
+ n = n % 4;
4009
+ let c;
4010
+ n ? n == 1 ? i.j(0, s / 2, s, s / 2, 0) : n == 2 ? i.K(0, 0, s, s) : (
4011
+ // 3
4012
+ (c = s / 6, i.h(c, c, s - 2 * c))
4013
+ ) : i.j(0, 0, s, s, 0);
4014
+ }
4015
+ function Vi(n, i) {
4016
+ return n = i.W(n), [
4017
+ // Dark gray
4018
+ re(n, i.D, i.F(0)),
4019
+ // Mid color
4020
+ re(n, i.o, i.p(0.5)),
4021
+ // Light gray
4022
+ re(n, i.D, i.F(1)),
4023
+ // Light color
4024
+ re(n, i.o, i.p(1)),
4025
+ // Dark color
4026
+ re(n, i.o, i.p(0))
4027
+ ];
4028
+ }
4029
+ function Gi(n, i, s) {
4030
+ const c = Ti(s, 0.08);
4031
+ c.G && n.m(
4032
+ c.G
4033
+ /*backColor*/
4034
+ );
4035
+ let m = n.k;
4036
+ const f = 0.5 + m * c.X | 0;
4037
+ m -= f * 2;
4038
+ const g = new qi(n), h = 0 | m / 4, u = 0 | f + m / 2 - h * 2, a = 0 | f + m / 2 - h * 2;
4039
+ function o(p, _, S, b, v) {
4040
+ const y = ne(i, S, 1);
4041
+ let C = b ? ne(i, b, 1) : 0;
4042
+ n.L(r[t[p]]);
4043
+ for (let k = 0; k < v.length; k++)
4044
+ g.u = new yr(u + v[k][0] * h, a + v[k][1] * h, h, C++ % 4), _(y, g, h, k);
4045
+ n.M();
4046
+ }
4047
+ const d = ne(i, -7) / 268435455, r = Vi(d, c), t = [];
4048
+ let e;
4049
+ function l(p) {
4050
+ if (p.indexOf(e) >= 0) {
4051
+ for (let _ = 0; _ < p.length; _++)
4052
+ if (t.indexOf(p[_]) >= 0)
4053
+ return !0;
4054
+ }
4055
+ }
4056
+ for (let p = 0; p < 3; p++)
4057
+ e = ne(i, 8 + p, 1) % r.length, (l([0, 4]) || // Disallow dark gray and dark color combo
4058
+ l([2, 3])) && (e = 1), t.push(e);
4059
+ o(0, Xt, 2, 3, [[1, 0], [2, 0], [2, 3], [1, 3], [0, 1], [3, 1], [3, 2], [0, 2]]), o(1, Xt, 4, 5, [[0, 0], [3, 0], [3, 3], [0, 3]]), o(2, Fi, 1, null, [[1, 1], [2, 1], [2, 2], [1, 2]]), n.finish();
4060
+ }
4061
+ function Ui(n) {
4062
+ var c = 0, m = 0, f = encodeURI(n) + "%80", g = [], h, u = [], a = 1732584193, o = 4023233417, d = ~a, r = ~o, t = 3285377520, e = [a, o, d, r, t], l = 0, p = "";
4063
+ function _(S, b) {
4064
+ return S << b | S >>> 32 - b;
4065
+ }
4066
+ for (; c < f.length; m++)
4067
+ g[m >> 2] = g[m >> 2] | (f[c] == "%" ? parseInt(f.substring(c + 1, c += 3), 16) : f.charCodeAt(c++)) << (3 - (m & 3)) * 8;
4068
+ for (h = ((m + 7 >> 6) + 1) * 16, g[h - 1] = m * 8 - 8; l < h; l += 16) {
4069
+ for (c = 0; c < 80; c++)
4070
+ m = _(a, 5) + t + // Ch
4071
+ (c < 20 ? (o & d ^ ~o & r) + 1518500249 : (
4072
+ // Parity
4073
+ c < 40 ? (o ^ d ^ r) + 1859775393 : (
4074
+ // Maj
4075
+ c < 60 ? (o & d ^ o & r ^ d & r) + 2400959708 : (
4076
+ // Parity
4077
+ (o ^ d ^ r) + 3395469782
4078
+ )
4079
+ )
4080
+ )) + (u[c] = c < 16 ? g[l + c] | 0 : _(u[c - 3] ^ u[c - 8] ^ u[c - 14] ^ u[c - 16], 1)), t = r, r = d, d = _(o, 30), o = a, a = m;
4081
+ e[0] = a = e[0] + a | 0, e[1] = o = e[1] + o | 0, e[2] = d = e[2] + d | 0, e[3] = r = e[3] + r | 0, e[4] = t = e[4] + t | 0;
4082
+ }
4083
+ for (c = 0; c < 40; c++)
4084
+ p += // Get word (2^3 half-bytes per word)
4085
+ (e[c >> 3] >>> // Append half-bytes in reverse order
4086
+ (7 - (c & 7)) * 4 & 15).toString(16);
4087
+ return p;
4088
+ }
4089
+ function Wi(n) {
4090
+ return /^[0-9a-f]{11,}$/i.test(n) && n;
4091
+ }
4092
+ function Ki(n) {
4093
+ return Ui(n == null ? "" : "" + n);
4094
+ }
4095
+ typeof document < "u" && document.querySelectorAll.bind(document);
4096
+ function J(n) {
4097
+ return (n * 10 + 0.5 | 0) / 10;
4098
+ }
4099
+ class zi {
4100
+ constructor() {
4101
+ this.v = "";
4102
+ }
4103
+ /**
4104
+ * Adds a polygon with the current fill color to the SVG path.
4105
+ * @param points An array of Point objects.
4106
+ */
4107
+ g(i) {
4108
+ let s = "";
4109
+ for (let c = 0; c < i.length; c++)
4110
+ s += (c ? "L" : "M") + J(i[c].x) + " " + J(i[c].y);
4111
+ this.v += s + "Z";
4112
+ }
4113
+ /**
4114
+ * Adds a circle with the current fill color to the SVG path.
4115
+ * @param {Point} point The upper left corner of the circle bounding box.
4116
+ * @param {number} diameter The diameter of the circle.
4117
+ * @param {boolean} counterClockwise True if the circle is drawn counter-clockwise (will result in a hole if rendered on a clockwise path).
4118
+ */
4119
+ h(i, s, c) {
4120
+ const m = c ? 0 : 1, f = J(s / 2), g = J(s), h = "a" + f + "," + f + " 0 1," + m + " ";
4121
+ this.v += "M" + J(i.x) + " " + J(i.y + s / 2) + h + g + ",0" + h + -g + ",0";
4122
+ }
4123
+ }
4124
+ class ji {
4125
+ /**
4126
+ * @param {SvgElement|SvgWriter} target
4127
+ */
4128
+ constructor(i) {
4129
+ this.A, this.B = {}, this.O = i, this.k = i.k;
4130
+ }
4131
+ /**
4132
+ * Fills the background with the specified color.
4133
+ * @param {string} fillColor Fill color on the format #rrggbb[aa].
4134
+ */
4135
+ m(i) {
4136
+ const s = /^(#......)(..)?/.exec(i), c = s[2] ? ne(s[2], 0) / 255 : 1;
4137
+ this.O.m(s[1], c);
4138
+ }
4139
+ /**
4140
+ * Marks the beginning of a new shape of the specified color. Should be ended with a call to endShape.
4141
+ * @param {string} color Fill color on format #xxxxxx.
4142
+ */
4143
+ L(i) {
4144
+ this.A = this.B[i] || (this.B[i] = new zi());
4145
+ }
4146
+ /**
4147
+ * Marks the end of the currently drawn shape.
4148
+ */
4149
+ M() {
4150
+ }
4151
+ /**
4152
+ * Adds a polygon with the current fill color to the SVG.
4153
+ * @param points An array of Point objects.
4154
+ */
4155
+ g(i) {
4156
+ this.A.g(i);
4157
+ }
4158
+ /**
4159
+ * Adds a circle with the current fill color to the SVG.
4160
+ * @param {Point} point The upper left corner of the circle bounding box.
4161
+ * @param {number} diameter The diameter of the circle.
4162
+ * @param {boolean} counterClockwise True if the circle is drawn counter-clockwise (will result in a hole if rendered on a clockwise path).
4163
+ */
4164
+ h(i, s, c) {
4165
+ this.A.h(i, s, c);
4166
+ }
4167
+ /**
4168
+ * Called when the icon has been completely drawn.
4169
+ */
4170
+ finish() {
4171
+ const i = this.B;
4172
+ for (let s in i)
4173
+ i.hasOwnProperty(s) && this.O.P(
4174
+ s,
4175
+ i[s].v
4176
+ /*dataString*/
4177
+ );
4178
+ }
4179
+ }
4180
+ const Ji = {
4181
+ R: "http://www.w3.org/2000/svg"
4182
+ };
4183
+ class Qi {
4184
+ /**
4185
+ * @param {number} iconSize - Icon width and height in pixels.
4186
+ */
4187
+ constructor(i) {
4188
+ this.k = i, this.C = '<svg xmlns="' + Ji.R + '" width="' + i + '" height="' + i + '" viewBox="0 0 ' + i + " " + i + '">';
4189
+ }
4190
+ /**
4191
+ * Fills the background with the specified color.
4192
+ * @param {string} fillColor Fill color on the format #rrggbb.
4193
+ * @param {number} opacity Opacity in the range [0.0, 1.0].
4194
+ */
4195
+ m(i, s) {
4196
+ s && (this.C += '<rect width="100%" height="100%" fill="' + i + '" opacity="' + s.toFixed(2) + '"/>');
4197
+ }
4198
+ /**
4199
+ * Writes a path to the SVG string.
4200
+ * @param {string} color Fill color on format #rrggbb.
4201
+ * @param {string} dataString The SVG path data string.
4202
+ */
4203
+ P(i, s) {
4204
+ this.C += '<path fill="' + i + '" d="' + s + '"/>';
4205
+ }
4206
+ /**
4207
+ * Gets the rendered image as an SVG string.
4208
+ */
4209
+ toString() {
4210
+ return this.C + "</svg>";
4211
+ }
4212
+ }
4213
+ function Zi(n, i, s) {
4214
+ const c = new Qi(i);
4215
+ return Gi(
4216
+ new ji(c),
4217
+ Wi(n) || Ki(n),
4218
+ s
4219
+ ), c.toString();
4220
+ }
4221
+ const Yi = "Unknown", Xi = {
4222
+ unknown: Yi
4223
+ }, $i = "Unbekannt", es = {
4224
+ unknown: $i
4225
+ };
4226
+ function $t(n) {
4227
+ const { user: i, description: s, ...c } = n, { t: m } = et({ en: Xi, de: es }), f = T(() => {
4228
+ const g = Zi((i == null ? void 0 : i.id) || "unknown", 100);
4229
+ return `data:image/svg+xml;base64,${btoa(g)}`;
4230
+ }, [i]);
4231
+ return /* @__PURE__ */ M(
4232
+ kr,
4233
+ {
4234
+ ...c,
4235
+ avatarProps: {
4236
+ src: f
4237
+ },
4238
+ description: s,
4239
+ name: (i == null ? void 0 : i.username) || m("unknown")
4240
+ }
4241
+ );
4242
+ }
4243
+ function ts(n) {
4244
+ const { showTime: i = !0, showDate: s = !0, showSeconds: c = !1 } = n ?? {}, { language: m } = ue(), f = T(() => {
4245
+ const g = {};
4246
+ return i && (g.hour12 = !1, g.hour = "2-digit", g.minute = "2-digit", c && (g.second = "2-digit")), s && (g.day = "2-digit", g.month = "2-digit", g.year = "numeric"), new Intl.DateTimeFormat(m, g);
4247
+ }, [s, i, c, m]);
4248
+ return G(
4249
+ (g, h) => {
4250
+ if (g == null)
4251
+ return h ?? "-";
4252
+ const u = new Date(g);
4253
+ return isNaN(u.getTime()) ? h ?? "-" : f.format(u);
4254
+ },
4255
+ [f]
4256
+ );
4257
+ }
4258
+ function rs(n, i) {
4259
+ return ts(i)(n);
4260
+ }
4261
+ function ns(n) {
4262
+ const { language: i } = ue(), s = G(
4263
+ (m) => {
4264
+ const h = Math.floor(m / 1440), u = Math.floor((m - h * 1440) / 60), a = m - h * 1440 - u * 60;
4265
+ try {
4266
+ if (typeof Intl.DurationFormat == "function") {
4267
+ const o = [];
4268
+ return h > 0 && o.push("days"), o.push("hours"), o.push("minutes"), new Intl.DurationFormat(i, {
4269
+ style: "narrow",
4270
+ fields: o,
4271
+ minutesDisplay: "always"
4272
+ }).format({
4273
+ days: h,
4274
+ hours: u,
4275
+ minutes: Math.round(a)
4276
+ });
4277
+ }
4278
+ throw new Error("Intl.DurationFormat not supported");
4279
+ } catch (o) {
4280
+ return console.warn("Intl.DurationFormat not supported", o), i.startsWith("de") ? `${h}T ${u}Std. ${a}Min.` : `${h}T ${u}h ${a}m`;
4281
+ }
4282
+ },
4283
+ [i]
4284
+ );
4285
+ return T(() => s(n), [n, s]);
4286
+ }
4287
+ /**
4288
+ * @remix-run/router v1.22.0
4289
+ *
4290
+ * Copyright (c) Remix Software Inc.
4291
+ *
4292
+ * This source code is licensed under the MIT license found in the
4293
+ * LICENSE.md file in the root directory of this source tree.
4294
+ *
4295
+ * @license MIT
4296
+ */
4297
+ var er;
4298
+ (function(n) {
4299
+ n.Pop = "POP", n.Push = "PUSH", n.Replace = "REPLACE";
4300
+ })(er || (er = {}));
4301
+ function tr(n, i) {
4302
+ throw new Error(i);
4303
+ }
4304
+ var rr;
4305
+ (function(n) {
4306
+ n.data = "data", n.deferred = "deferred", n.redirect = "redirect", n.error = "error";
4307
+ })(rr || (rr = {}));
4308
+ const br = ["post", "put", "patch", "delete"];
4309
+ new Set(br);
4310
+ const is = ["get", ...br];
4311
+ new Set(is);
4312
+ /**
4313
+ * React Router v6.29.0
4314
+ *
4315
+ * Copyright (c) Remix Software Inc.
4316
+ *
4317
+ * This source code is licensed under the MIT license found in the
4318
+ * LICENSE.md file in the root directory of this source tree.
4319
+ *
4320
+ * @license MIT
4321
+ */
4322
+ const ss = /* @__PURE__ */ V.createContext(null);
4323
+ process.env.NODE_ENV !== "production" && (ss.displayName = "DataRouter");
4324
+ const os = /* @__PURE__ */ V.createContext(null);
4325
+ process.env.NODE_ENV !== "production" && (os.displayName = "DataRouterState");
4326
+ const as = /* @__PURE__ */ V.createContext(null);
4327
+ process.env.NODE_ENV !== "production" && (as.displayName = "Await");
4328
+ const us = /* @__PURE__ */ V.createContext(null);
4329
+ process.env.NODE_ENV !== "production" && (us.displayName = "Navigation");
4330
+ const tt = /* @__PURE__ */ V.createContext(null);
4331
+ process.env.NODE_ENV !== "production" && (tt.displayName = "Location");
4332
+ const ls = /* @__PURE__ */ V.createContext({
4333
+ outlet: null,
4334
+ matches: [],
4335
+ isDataRoute: !1
4336
+ });
4337
+ process.env.NODE_ENV !== "production" && (ls.displayName = "Route");
4338
+ const cs = /* @__PURE__ */ V.createContext(null);
4339
+ process.env.NODE_ENV !== "production" && (cs.displayName = "RouteError");
4340
+ function hs() {
4341
+ return V.useContext(tt) != null;
4342
+ }
4343
+ function ps() {
4344
+ return hs() || (process.env.NODE_ENV !== "production" ? tr(
4345
+ !1,
4346
+ // TODO: This error is probably because they somehow have 2 versions of the
4347
+ // router loaded. We can help them understand how to avoid that.
4348
+ "useLocation() may be used only in the context of a <Router> component."
4349
+ ) : tr()), V.useContext(tt).location;
4350
+ }
4351
+ new Promise(() => {
4352
+ });
4353
+ function Hs() {
4354
+ const { search: n } = ps();
4355
+ return T(() => new URLSearchParams(n), [n]);
4356
+ }
4357
+ function fs(n) {
4358
+ const { language: i } = ue(), s = T(() => new Intl.NumberFormat(i, n), [i, n]);
4359
+ return G(
4360
+ (c) => {
4361
+ if (c == null)
4362
+ return "-";
4363
+ const m = Number(c);
4364
+ return isNaN(m) ? "-" : s.format(m);
4365
+ },
4366
+ [s]
4367
+ );
4368
+ }
4369
+ function qs(n) {
4370
+ return fs()(n);
4371
+ }
4372
+ function Fs(n) {
4373
+ const { date: i, options: s, ...c } = n, m = rs(i, s);
4374
+ return /* @__PURE__ */ M("span", { ...c, children: m });
4375
+ }
4376
+ function Vs({
4377
+ minutes: n,
4378
+ alternativeText: i = "",
4379
+ ...s
4380
+ }) {
4381
+ const c = ns(n ?? 0);
4382
+ return n == null ? /* @__PURE__ */ M("span", { ...s, children: i }) : /* @__PURE__ */ M("span", { ...s, children: c });
4383
+ }
4384
+ const ds = "User", gs = "Search by username or email", ms = "No users found", vs = "Type to search for users", _s = {
4385
+ label: ds,
4386
+ placeholder: gs,
4387
+ noUsersFound: ms,
4388
+ typeToSearch: vs
4389
+ }, Ss = "Benutzer", ys = "Nach Benutzername oder E-Mail suchen", bs = "Keine Benutzer gefunden", Cs = "Tippen Sie, um nach Benutzern zu suchen", ks = {
4390
+ label: Ss,
4391
+ placeholder: ys,
4392
+ noUsersFound: bs,
4393
+ typeToSearch: Cs
4394
+ };
4395
+ function Gs(n) {
4396
+ const { label: i, placeholder: s, onSelectionChange: c, autocompleteProps: m, afterAutocomplete: f, wrapperProps: g, afterSelection: h } = n, { t: u } = et({
4397
+ en: _s,
4398
+ de: ks
4399
+ }), [a, o] = ze(""), [d, r] = ze(null), t = T(() => d ? Number(d) : null, [d]), e = Rr({ search: a, limit: 10, page: 1 }), l = T(() => {
4400
+ var S;
4401
+ return ((S = e.data) == null ? void 0 : S.data) ?? [];
4402
+ }, [e.data]), p = Dr({ id: t }, void 0, {
4403
+ enabled: !!t
4404
+ }), _ = T(() => {
4405
+ var b;
4406
+ if (!t)
4407
+ return null;
4408
+ if (((b = p.data) == null ? void 0 : b.id) === t)
4409
+ return p.data;
4410
+ const S = l.find((v) => v.id === t);
4411
+ return S || null;
4412
+ }, [t, p.data, l]);
4413
+ return nr(() => {
4414
+ if (typeof c != "function")
4415
+ return;
4416
+ const S = l.find((b) => b.id === t);
4417
+ c(S ?? null);
4418
+ }, [t, c, l]), /* @__PURE__ */ ie("div", { ...g, children: [
4419
+ /* @__PURE__ */ ie("div", { className: "flex gap-2 items-center", children: [
4420
+ /* @__PURE__ */ M(
4421
+ Pr,
4422
+ {
4423
+ inputValue: a,
4424
+ isLoading: e.isLoading,
4425
+ items: l,
4426
+ label: i ?? u("label"),
4427
+ placeholder: s ?? u("placeholder"),
4428
+ onInputChange: o,
4429
+ selectedKey: d,
4430
+ onSelectionChange: (S) => r(S),
4431
+ isClearable: !0,
4432
+ inputProps: { autoComplete: "off", type: "search" },
4433
+ onClear: () => {
4434
+ r(null), o("");
4435
+ },
4436
+ size: m == null ? void 0 : m.size,
4437
+ children: (S) => /* @__PURE__ */ M(wr, { children: /* @__PURE__ */ M($t, { user: S }) }, S.id)
4438
+ }
4439
+ ),
4440
+ f
4441
+ ] }),
4442
+ /* @__PURE__ */ ie("div", { className: "flex gap-2 items-center w-full justify-between", children: [
4443
+ _ && /* @__PURE__ */ M($t, { user: _, className: "my-2 mx-2" }),
4444
+ h
4445
+ ] })
4446
+ ] });
4447
+ }
4448
+ const Ps = { label: "Ressourcen", placeholder: "Tippe um zu suchen" }, ws = { columns: { name: { header: "Name" } } }, Es = { label: "Zugewiesen an" }, Ls = {
4449
+ search: Ps,
4450
+ table: ws,
4451
+ list: Es
4452
+ }, xs = { label: "Resources", placeholder: "Type to search" }, Os = { columns: { name: { header: "Name" } } }, As = { label: "Assigned to" }, Ms = {
4453
+ search: xs,
4454
+ table: Os,
4455
+ list: As
4456
+ }, Us = ({ children: n }) => /* @__PURE__ */ M("div", { className: "border-small px-1 py-2 rounded-small border-default-200 dark:border-default-100", children: n });
4457
+ function Ws(n) {
4458
+ const [i, s] = ze(""), { t: c } = et({
4459
+ de: Ls,
4460
+ en: Ms
4461
+ }), { data: m, isLoading: f } = Br({
4462
+ limit: 15,
4463
+ page: 1,
4464
+ search: i
4465
+ });
4466
+ return /* @__PURE__ */ ie("div", { className: "flex flex-col gap-2", children: [
4467
+ /* @__PURE__ */ M(
4468
+ Er,
4469
+ {
4470
+ value: i,
4471
+ onChange: (g) => s(g.target.value),
4472
+ label: c("search.label"),
4473
+ placeholder: c("search.placeholder"),
4474
+ className: "w-full",
4475
+ variant: "flat",
4476
+ endContent: f ? /* @__PURE__ */ M(Lr, {}) : null
4477
+ }
4478
+ ),
4479
+ /* @__PURE__ */ ie(
4480
+ xr,
4481
+ {
4482
+ selectedKeys: n.selection.map((g) => g.toString()),
4483
+ onSelectionChange: (g) => n.onSelectionChange(Array.from(g).map((h) => Number(h))),
4484
+ selectionMode: "multiple",
4485
+ color: "primary",
4486
+ removeWrapper: !0,
4487
+ children: [
4488
+ /* @__PURE__ */ M(Or, { children: /* @__PURE__ */ M(Ar, { align: "start", className: "w-full", children: c("table.columns.name.header") }) }),
4489
+ /* @__PURE__ */ M(Mr, { items: (m == null ? void 0 : m.data) ?? [], children: (g) => /* @__PURE__ */ M(Nr, { children: /* @__PURE__ */ M(Ir, { children: g.name }) }, g.id) })
4490
+ ]
4491
+ }
4492
+ )
4493
+ ] });
4494
+ }
4495
+ function Ns(n) {
4496
+ const i = { children: [] }, s = [], c = /<\/?([a-zA-Z0-9_]+)\s*\/?\s*>/g;
4497
+ let m = 0;
4498
+ const f = () => s.length === 0 ? i.children : s[s.length - 1].children;
4499
+ let g;
4500
+ for (; (g = c.exec(n)) !== null; ) {
4501
+ const h = g[0], u = g[1], a = h.startsWith("</"), o = /\/>\s*$/.test(h) || !a && h.endsWith("/>");
4502
+ if (g.index > m) {
4503
+ const d = n.slice(m, g.index);
4504
+ d && f().push({ type: "text", text: d });
4505
+ }
4506
+ if (o && !a)
4507
+ f().push({ type: "tag", name: u, children: [], selfClosing: !0 });
4508
+ else if (a) {
4509
+ let d = -1;
4510
+ for (let r = s.length - 1; r >= 0; r -= 1)
4511
+ if (s[r].name === u) {
4512
+ d = r;
4513
+ break;
4514
+ }
4515
+ if (d === -1)
4516
+ f().push({ type: "text", text: h });
4517
+ else
4518
+ for (let r = s.length - 1; r >= d; r -= 1) {
4519
+ const t = s.pop(), e = { type: "tag", name: t.name, children: t.children, selfClosing: !1 };
4520
+ r === d ? f().push(e) : (s.length === 0 ? i.children : s[s.length - 1].children).push(e);
4521
+ }
4522
+ } else
4523
+ s.push({ name: u, children: [] });
4524
+ m = c.lastIndex;
4525
+ }
4526
+ if (m < n.length) {
4527
+ const h = n.slice(m);
4528
+ h && f().push({ type: "text", text: h });
4529
+ }
4530
+ for (; s.length > 0; ) {
4531
+ const h = s.pop();
4532
+ i.children.push({
4533
+ type: "text",
4534
+ text: `<${h.name}>${h.children.map((u) => u.text || "").join("")}`
4535
+ });
4536
+ }
4537
+ return i.children;
4538
+ }
4539
+ function Je(n, i, s = "k") {
4540
+ const c = [];
4541
+ return n.forEach((m, f) => {
4542
+ const g = `${s}-${f}`;
4543
+ if (m.type === "text") {
4544
+ c.push(m.text);
4545
+ return;
4546
+ }
4547
+ const h = i == null ? void 0 : i[m.name];
4548
+ if (se.isValidElement(h)) {
4549
+ if (m.selfClosing)
4550
+ c.push(se.cloneElement(h, { key: g }));
4551
+ else {
4552
+ const u = Je(m.children, i, g);
4553
+ c.push(se.cloneElement(h, { key: g }, u));
4554
+ }
4555
+ return;
4556
+ }
4557
+ m.selfClosing || c.push(...Je(m.children, i, g));
4558
+ }), c;
4559
+ }
4560
+ function Ks(n) {
4561
+ const { i18nKey: i, values: s, components: c, t: m } = n, f = T(() => m(i, s), [m, i, s]), g = T(() => Ns(f), [f]);
4562
+ return T(() => Je(g, c), [g, c]);
4563
+ }
2
4564
  export {
3
- e as AttraccessUser,
4
- r as DateTimeDisplay,
5
- t as DurationDisplay,
6
- o as ListboxWrapper,
7
- i as ResourceSelector,
8
- u as UserSearch,
9
- m as i18n,
10
- D as useDateTimeFormatter,
11
- c as useFormatDateTime,
12
- l as useFormatedDuration,
13
- n as useTranslations,
14
- p as useUrlQuery
4565
+ $t as AttraccessUser,
4566
+ Fs as DateTimeDisplay,
4567
+ Vs as DurationDisplay,
4568
+ je as I18N_LANGUAGE_STORAGE_KEY,
4569
+ Ks as I18nTransComponent,
4570
+ Us as ListboxWrapper,
4571
+ Ws as ResourceSelector,
4572
+ Gs as UserSearch,
4573
+ Ts as detectAndSetLanguage,
4574
+ ts as useDateTimeFormatter,
4575
+ rs as useFormatDateTime,
4576
+ qs as useFormatNumber,
4577
+ ns as useFormatedDuration,
4578
+ fs as useNumberFormatter,
4579
+ ue as useTranslationState,
4580
+ et as useTranslations,
4581
+ Hs as useUrlQuery
15
4582
  };