@design.estate/dees-domtools 2.3.6 → 2.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_bundle/bundle.js +492 -280
- package/dist_bundle/bundle.js.map +4 -4
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/domtools.classes.domtools.js +40 -41
- package/dist_ts/domtools.classes.keyboard.js +12 -11
- package/dist_ts/domtools.classes.scroller.js +14 -13
- package/dist_ts/domtools.classes.thememanager.js +5 -4
- package/dist_ts/domtools.plugins.d.ts +1 -1
- package/dist_ts/domtools.plugins.js +2 -2
- package/npmextra.json +12 -6
- package/package.json +17 -16
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/domtools.classes.domtools.ts +1 -1
- package/ts/domtools.plugins.ts +1 -1
- package/dist_ts/csstools.breakpoints.d.ts +0 -9
- package/dist_ts/csstools.breakpoints.js +0 -60
- package/dist_ts/csstools.elementbasicsetup.d.ts +0 -5
- package/dist_ts/csstools.elementbasicsetup.js +0 -43
- package/dist_ts/csstools.elementbasicstyles.d.ts +0 -1
- package/dist_ts/csstools.elementbasicstyles.js +0 -13
- package/dist_ts/domtools.breakpoints.d.ts +0 -9
- package/dist_ts/domtools.breakpoints.js +0 -71
- package/dist_ts/domtools.classes.elementinstrumenter.d.ts +0 -6
- package/dist_ts/domtools.classes.elementinstrumenter.js +0 -50
- package/dist_ts/domtools.classes.router.d.ts +0 -1
- package/dist_ts/domtools.classes.router.js +0 -3
- package/dist_ts/domtools.css.theme.d.ts +0 -4
- package/dist_ts/domtools.css.theme.js +0 -32
- package/dist_ts/domtools.elementbasicsetup.d.ts +0 -5
- package/dist_ts/domtools.elementbasicsetup.js +0 -67
- package/dist_ts/domtools.elementbasicstyles.d.ts +0 -1
- package/dist_ts/domtools.elementbasicstyles.js +0 -13
- package/dist_ts/domtools.move.d.ts +0 -1
- package/dist_ts/domtools.move.js +0 -3
package/dist_bundle/bundle.js
CHANGED
|
@@ -77,8 +77,8 @@ var require_dayjs_min = __commonJS({
|
|
|
77
77
|
return { M: c4, y: h4, w: o6, d: a3, D: d4, h: u3, m: s4, s: i5, ms: r4, Q: f4 }[t4] || String(t4 || "").toLowerCase().replace(/s$/, "");
|
|
78
78
|
}, u: function(t4) {
|
|
79
79
|
return void 0 === t4;
|
|
80
|
-
} }, g3 = "en",
|
|
81
|
-
|
|
80
|
+
} }, g3 = "en", D3 = {};
|
|
81
|
+
D3[g3] = M2;
|
|
82
82
|
var p5 = "$isDayjsObject", S4 = function(t4) {
|
|
83
83
|
return t4 instanceof _3 || !(!t4 || !t4[p5]);
|
|
84
84
|
}, w2 = function t4(e5, n7, r5) {
|
|
@@ -86,12 +86,12 @@ var require_dayjs_min = __commonJS({
|
|
|
86
86
|
if (!e5) return g3;
|
|
87
87
|
if ("string" == typeof e5) {
|
|
88
88
|
var s5 = e5.toLowerCase();
|
|
89
|
-
|
|
89
|
+
D3[s5] && (i6 = s5), n7 && (D3[s5] = n7, i6 = s5);
|
|
90
90
|
var u4 = e5.split("-");
|
|
91
91
|
if (!i6 && u4.length > 1) return t4(u4[0]);
|
|
92
92
|
} else {
|
|
93
93
|
var a4 = e5.name;
|
|
94
|
-
|
|
94
|
+
D3[a4] = e5, i6 = a4;
|
|
95
95
|
}
|
|
96
96
|
return !r5 && i6 && (g3 = i6), i6 || !r5 && g3;
|
|
97
97
|
}, O2 = function(t4, e5) {
|
|
@@ -155,8 +155,8 @@ var require_dayjs_min = __commonJS({
|
|
|
155
155
|
case c4:
|
|
156
156
|
return r5 ? l4(1, M4) : l4(0, M4 + 1);
|
|
157
157
|
case o6:
|
|
158
|
-
var g4 = this.$locale().weekStart || 0,
|
|
159
|
-
return l4(r5 ? m5 -
|
|
158
|
+
var g4 = this.$locale().weekStart || 0, D4 = (y5 < g4 ? y5 + 7 : y5) - g4;
|
|
159
|
+
return l4(r5 ? m5 - D4 : m5 + (6 - D4), M4);
|
|
160
160
|
case a3:
|
|
161
161
|
case d4:
|
|
162
162
|
return $3(v4 + "Hours", 0);
|
|
@@ -266,18 +266,18 @@ var require_dayjs_min = __commonJS({
|
|
|
266
266
|
}, m4.utcOffset = function() {
|
|
267
267
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
268
268
|
}, m4.diff = function(r5, d5, l4) {
|
|
269
|
-
var $3, y5 = this, M4 = b4.p(d5), m5 = O2(r5), v4 = (m5.utcOffset() - this.utcOffset()) * e4, g4 = this - m5,
|
|
269
|
+
var $3, y5 = this, M4 = b4.p(d5), m5 = O2(r5), v4 = (m5.utcOffset() - this.utcOffset()) * e4, g4 = this - m5, D4 = function() {
|
|
270
270
|
return b4.m(y5, m5);
|
|
271
271
|
};
|
|
272
272
|
switch (M4) {
|
|
273
273
|
case h4:
|
|
274
|
-
$3 =
|
|
274
|
+
$3 = D4() / 12;
|
|
275
275
|
break;
|
|
276
276
|
case c4:
|
|
277
|
-
$3 =
|
|
277
|
+
$3 = D4();
|
|
278
278
|
break;
|
|
279
279
|
case f4:
|
|
280
|
-
$3 =
|
|
280
|
+
$3 = D4() / 3;
|
|
281
281
|
break;
|
|
282
282
|
case o6:
|
|
283
283
|
$3 = (g4 - v4) / 6048e5;
|
|
@@ -301,7 +301,7 @@ var require_dayjs_min = __commonJS({
|
|
|
301
301
|
}, m4.daysInMonth = function() {
|
|
302
302
|
return this.endOf(c4).$D;
|
|
303
303
|
}, m4.$locale = function() {
|
|
304
|
-
return
|
|
304
|
+
return D3[this.$L];
|
|
305
305
|
}, m4.locale = function(t4, e5) {
|
|
306
306
|
if (!t4) return this.$L;
|
|
307
307
|
var n7 = this.clone(), r5 = w2(t4, e5, true);
|
|
@@ -326,7 +326,7 @@ var require_dayjs_min = __commonJS({
|
|
|
326
326
|
return t4.$i || (t4(e5, _3, O2), t4.$i = true), O2;
|
|
327
327
|
}, O2.locale = w2, O2.isDayjs = S4, O2.unix = function(t4) {
|
|
328
328
|
return O2(1e3 * t4);
|
|
329
|
-
}, O2.en =
|
|
329
|
+
}, O2.en = D3[g3], O2.Ls = D3, O2.p = {}, O2;
|
|
330
330
|
}));
|
|
331
331
|
}
|
|
332
332
|
});
|
|
@@ -408,10 +408,10 @@ var require_TreePosition = __commonJS({
|
|
|
408
408
|
var require_TreeIterator = __commonJS({
|
|
409
409
|
"node_modules/.pnpm/symbol-tree@3.2.4/node_modules/symbol-tree/lib/TreeIterator.js"(exports, module) {
|
|
410
410
|
"use strict";
|
|
411
|
-
var TREE = Symbol();
|
|
412
|
-
var ROOT = Symbol();
|
|
413
|
-
var NEXT = Symbol();
|
|
414
|
-
var ITERATE_FUNC = Symbol();
|
|
411
|
+
var TREE = /* @__PURE__ */ Symbol();
|
|
412
|
+
var ROOT = /* @__PURE__ */ Symbol();
|
|
413
|
+
var NEXT = /* @__PURE__ */ Symbol();
|
|
414
|
+
var ITERATE_FUNC = /* @__PURE__ */ Symbol();
|
|
415
415
|
var TreeIterator = class {
|
|
416
416
|
constructor(tree, root6, firstResult, iterateFunction) {
|
|
417
417
|
this[TREE] = tree;
|
|
@@ -5843,7 +5843,7 @@ __export(domtools_elementbasic_exports, {
|
|
|
5843
5843
|
styles: () => styles
|
|
5844
5844
|
});
|
|
5845
5845
|
|
|
5846
|
-
// node_modules/.pnpm/@design.estate+dees-comms@1.0.
|
|
5846
|
+
// node_modules/.pnpm/@design.estate+dees-comms@1.0.30/node_modules/@design.estate/dees-comms/dist_ts/index.js
|
|
5847
5847
|
var dist_ts_exports17 = {};
|
|
5848
5848
|
__export(dist_ts_exports17, {
|
|
5849
5849
|
DeesComms: () => DeesComms
|
|
@@ -6046,7 +6046,7 @@ var Timeout = class {
|
|
|
6046
6046
|
// node_modules/.pnpm/@api.global+typedrequest-interfaces@3.0.19/node_modules/@api.global/typedrequest-interfaces/dist_ts/index.js
|
|
6047
6047
|
var dist_ts_exports3 = {};
|
|
6048
6048
|
|
|
6049
|
-
// node_modules/.pnpm/@api.global+typedrequest@3.
|
|
6049
|
+
// node_modules/.pnpm/@api.global+typedrequest@3.2.5/node_modules/@api.global/typedrequest/dist_ts/index.js
|
|
6050
6050
|
var dist_ts_exports16 = {};
|
|
6051
6051
|
__export(dist_ts_exports16, {
|
|
6052
6052
|
TypedHandler: () => TypedHandler,
|
|
@@ -9533,7 +9533,7 @@ var secondsInWeek = secondsInDay * 7;
|
|
|
9533
9533
|
var secondsInYear = secondsInDay * daysInYear;
|
|
9534
9534
|
var secondsInMonth = secondsInYear / 12;
|
|
9535
9535
|
var secondsInQuarter = secondsInMonth * 3;
|
|
9536
|
-
var constructFromSymbol = Symbol.for("constructDateFrom");
|
|
9536
|
+
var constructFromSymbol = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
9537
9537
|
|
|
9538
9538
|
// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js
|
|
9539
9539
|
function constructFrom(date, value2) {
|
|
@@ -17177,7 +17177,7 @@ var Tree = class {
|
|
|
17177
17177
|
}
|
|
17178
17178
|
};
|
|
17179
17179
|
|
|
17180
|
-
// node_modules/.pnpm/@push.rocks+smartbuffer@3.0.
|
|
17180
|
+
// node_modules/.pnpm/@push.rocks+smartbuffer@3.0.5/node_modules/@push.rocks/smartbuffer/dist_ts/index.js
|
|
17181
17181
|
var dist_ts_exports8 = {};
|
|
17182
17182
|
__export(dist_ts_exports8, {
|
|
17183
17183
|
base64ToUint8Array: () => base64ToUint8Array2,
|
|
@@ -17188,17 +17188,19 @@ __export(dist_ts_exports8, {
|
|
|
17188
17188
|
uInt8ArrayToBase64: () => uInt8ArrayToBase64
|
|
17189
17189
|
});
|
|
17190
17190
|
|
|
17191
|
-
// node_modules/.pnpm/uint8array-extras@1.
|
|
17191
|
+
// node_modules/.pnpm/uint8array-extras@1.5.0/node_modules/uint8array-extras/index.js
|
|
17192
17192
|
var uint8array_extras_exports = {};
|
|
17193
17193
|
__export(uint8array_extras_exports, {
|
|
17194
17194
|
areUint8ArraysEqual: () => areUint8ArraysEqual,
|
|
17195
17195
|
assertUint8Array: () => assertUint8Array,
|
|
17196
|
+
assertUint8ArrayOrArrayBuffer: () => assertUint8ArrayOrArrayBuffer,
|
|
17196
17197
|
base64ToString: () => base64ToString,
|
|
17197
17198
|
base64ToUint8Array: () => base64ToUint8Array,
|
|
17198
17199
|
compareUint8Arrays: () => compareUint8Arrays,
|
|
17199
17200
|
concatUint8Arrays: () => concatUint8Arrays,
|
|
17200
17201
|
getUintBE: () => getUintBE,
|
|
17201
17202
|
hexToUint8Array: () => hexToUint8Array,
|
|
17203
|
+
includes: () => includes,
|
|
17202
17204
|
indexOf: () => indexOf,
|
|
17203
17205
|
isUint8Array: () => isUint8Array,
|
|
17204
17206
|
stringToBase64: () => stringToBase64,
|
|
@@ -17210,20 +17212,35 @@ __export(uint8array_extras_exports, {
|
|
|
17210
17212
|
});
|
|
17211
17213
|
var objectToString = Object.prototype.toString;
|
|
17212
17214
|
var uint8ArrayStringified = "[object Uint8Array]";
|
|
17213
|
-
|
|
17215
|
+
var arrayBufferStringified = "[object ArrayBuffer]";
|
|
17216
|
+
function isType(value2, typeConstructor, typeStringified) {
|
|
17214
17217
|
if (!value2) {
|
|
17215
17218
|
return false;
|
|
17216
17219
|
}
|
|
17217
|
-
if (value2.constructor ===
|
|
17220
|
+
if (value2.constructor === typeConstructor) {
|
|
17218
17221
|
return true;
|
|
17219
17222
|
}
|
|
17220
|
-
return objectToString.call(value2) ===
|
|
17223
|
+
return objectToString.call(value2) === typeStringified;
|
|
17224
|
+
}
|
|
17225
|
+
function isUint8Array(value2) {
|
|
17226
|
+
return isType(value2, Uint8Array, uint8ArrayStringified);
|
|
17227
|
+
}
|
|
17228
|
+
function isArrayBuffer(value2) {
|
|
17229
|
+
return isType(value2, ArrayBuffer, arrayBufferStringified);
|
|
17230
|
+
}
|
|
17231
|
+
function isUint8ArrayOrArrayBuffer(value2) {
|
|
17232
|
+
return isUint8Array(value2) || isArrayBuffer(value2);
|
|
17221
17233
|
}
|
|
17222
17234
|
function assertUint8Array(value2) {
|
|
17223
17235
|
if (!isUint8Array(value2)) {
|
|
17224
17236
|
throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof value2}\``);
|
|
17225
17237
|
}
|
|
17226
17238
|
}
|
|
17239
|
+
function assertUint8ArrayOrArrayBuffer(value2) {
|
|
17240
|
+
if (!isUint8ArrayOrArrayBuffer(value2)) {
|
|
17241
|
+
throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof value2}\``);
|
|
17242
|
+
}
|
|
17243
|
+
}
|
|
17227
17244
|
function toUint8Array(value2) {
|
|
17228
17245
|
if (value2 instanceof ArrayBuffer) {
|
|
17229
17246
|
return new Uint8Array(value2);
|
|
@@ -17279,7 +17296,7 @@ var cachedDecoders = {
|
|
|
17279
17296
|
utf8: new globalThis.TextDecoder("utf8")
|
|
17280
17297
|
};
|
|
17281
17298
|
function uint8ArrayToString(array, encoding = "utf8") {
|
|
17282
|
-
|
|
17299
|
+
assertUint8ArrayOrArrayBuffer(array);
|
|
17283
17300
|
cachedDecoders[encoding] ??= new globalThis.TextDecoder(encoding);
|
|
17284
17301
|
return cachedDecoders[encoding].decode(array);
|
|
17285
17302
|
}
|
|
@@ -17297,20 +17314,17 @@ function base64ToBase64Url(base642) {
|
|
|
17297
17314
|
return base642.replaceAll("+", "-").replaceAll("/", "_").replace(/=+$/, "");
|
|
17298
17315
|
}
|
|
17299
17316
|
function base64UrlToBase64(base64url) {
|
|
17300
|
-
|
|
17317
|
+
const base642 = base64url.replaceAll("-", "+").replaceAll("_", "/");
|
|
17318
|
+
const padding = (4 - base642.length % 4) % 4;
|
|
17319
|
+
return base642 + "=".repeat(padding);
|
|
17301
17320
|
}
|
|
17302
17321
|
var MAX_BLOCK_SIZE = 65535;
|
|
17303
17322
|
function uint8ArrayToBase64(array, { urlSafe = false } = {}) {
|
|
17304
17323
|
assertUint8Array(array);
|
|
17305
|
-
let base642;
|
|
17306
|
-
|
|
17307
|
-
|
|
17308
|
-
|
|
17309
|
-
base642 = "";
|
|
17310
|
-
for (const value2 of array) {
|
|
17311
|
-
base642 += String.fromCodePoint(value2);
|
|
17312
|
-
}
|
|
17313
|
-
base642 = globalThis.btoa(base642);
|
|
17324
|
+
let base642 = "";
|
|
17325
|
+
for (let index2 = 0; index2 < array.length; index2 += MAX_BLOCK_SIZE) {
|
|
17326
|
+
const chunk = array.subarray(index2, index2 + MAX_BLOCK_SIZE);
|
|
17327
|
+
base642 += globalThis.btoa(String.fromCodePoint.apply(void 0, chunk));
|
|
17314
17328
|
}
|
|
17315
17329
|
return urlSafe ? base64ToBase64Url(base642) : base642;
|
|
17316
17330
|
}
|
|
@@ -17421,8 +17435,11 @@ function indexOf(array, value2) {
|
|
|
17421
17435
|
}
|
|
17422
17436
|
return -1;
|
|
17423
17437
|
}
|
|
17438
|
+
function includes(array, value2) {
|
|
17439
|
+
return indexOf(array, value2) !== -1;
|
|
17440
|
+
}
|
|
17424
17441
|
|
|
17425
|
-
// node_modules/.pnpm/@push.rocks+smartbuffer@3.0.
|
|
17442
|
+
// node_modules/.pnpm/@push.rocks+smartbuffer@3.0.5/node_modules/@push.rocks/smartbuffer/dist_ts/index.js
|
|
17426
17443
|
var uInt8ArrayExtras = uint8array_extras_exports;
|
|
17427
17444
|
function uInt8ArrayToBase64(uInt8Array) {
|
|
17428
17445
|
return uint8array_extras_exports.uint8ArrayToBase64(uInt8Array);
|
|
@@ -19095,10 +19112,10 @@ var WebRequest = class {
|
|
|
19095
19112
|
}
|
|
19096
19113
|
};
|
|
19097
19114
|
|
|
19098
|
-
// node_modules/.pnpm/@api.global+typedrequest@3.
|
|
19115
|
+
// node_modules/.pnpm/@api.global+typedrequest@3.2.5/node_modules/@api.global/typedrequest/dist_ts/plugins.js
|
|
19099
19116
|
var isounique2 = __toESM(require_dist_ts(), 1);
|
|
19100
19117
|
|
|
19101
|
-
// node_modules/.pnpm/@api.global+typedrequest@3.
|
|
19118
|
+
// node_modules/.pnpm/@api.global+typedrequest@3.2.5/node_modules/@api.global/typedrequest/dist_ts/classes.typedresponseerror.js
|
|
19102
19119
|
var TypedResponseError = class {
|
|
19103
19120
|
constructor(errorTextArg, errorDataArg) {
|
|
19104
19121
|
this.errorText = errorTextArg;
|
|
@@ -19106,8 +19123,11 @@ var TypedResponseError = class {
|
|
|
19106
19123
|
}
|
|
19107
19124
|
};
|
|
19108
19125
|
|
|
19109
|
-
// node_modules/.pnpm/@api.global+typedrequest@3.
|
|
19126
|
+
// node_modules/.pnpm/@api.global+typedrequest@3.2.5/node_modules/@api.global/typedrequest/dist_ts/classes.typedtools.js
|
|
19110
19127
|
var TypedTools = class {
|
|
19128
|
+
constructor() {
|
|
19129
|
+
this.localData = {};
|
|
19130
|
+
}
|
|
19111
19131
|
async passGuards(guardsArg, dataArg) {
|
|
19112
19132
|
const guardSet = new dist_ts_exports9.GuardSet(guardsArg);
|
|
19113
19133
|
const guardResult = await guardSet.allGuardsPass(dataArg);
|
|
@@ -19118,7 +19138,7 @@ var TypedTools = class {
|
|
|
19118
19138
|
}
|
|
19119
19139
|
};
|
|
19120
19140
|
|
|
19121
|
-
// node_modules/.pnpm/@api.global+typedrequest@3.
|
|
19141
|
+
// node_modules/.pnpm/@api.global+typedrequest@3.2.5/node_modules/@api.global/typedrequest/dist_ts/classes.typedhandler.js
|
|
19122
19142
|
var TypedHandler = class {
|
|
19123
19143
|
constructor(methodArg, handlerFunctionArg) {
|
|
19124
19144
|
this.method = methodArg;
|
|
@@ -19134,6 +19154,9 @@ var TypedHandler = class {
|
|
|
19134
19154
|
}
|
|
19135
19155
|
let typedResponseError;
|
|
19136
19156
|
const typedtoolsInstance = new TypedTools();
|
|
19157
|
+
if (typedRequestArg.localData) {
|
|
19158
|
+
typedtoolsInstance.localData = typedRequestArg.localData;
|
|
19159
|
+
}
|
|
19137
19160
|
const response = await this.handlerFunction(typedRequestArg.request, typedtoolsInstance).catch((e4) => {
|
|
19138
19161
|
if (e4 instanceof TypedResponseError) {
|
|
19139
19162
|
typedResponseError = e4;
|
|
@@ -19155,14 +19178,56 @@ var TypedHandler = class {
|
|
|
19155
19178
|
}
|
|
19156
19179
|
};
|
|
19157
19180
|
|
|
19158
|
-
// node_modules/.pnpm/@api.global+typedrequest@3.
|
|
19159
|
-
var TypedRouter = class {
|
|
19181
|
+
// node_modules/.pnpm/@api.global+typedrequest@3.2.5/node_modules/@api.global/typedrequest/dist_ts/classes.typedrouter.js
|
|
19182
|
+
var TypedRouter = class _TypedRouter {
|
|
19160
19183
|
constructor() {
|
|
19184
|
+
this.hooks = {};
|
|
19161
19185
|
this.routerMap = new dist_ts_exports6.ObjectMap();
|
|
19162
19186
|
this.handlerMap = new dist_ts_exports6.ObjectMap();
|
|
19163
19187
|
this.registeredVirtualStreams = new dist_ts_exports6.ObjectMap();
|
|
19164
19188
|
this.fireEventInterestMap = new dist_ts_exports6.InterestMap((correlationId) => correlationId);
|
|
19165
19189
|
}
|
|
19190
|
+
// Use globalThis for cross-bundle hook sharing
|
|
19191
|
+
static get globalHooks() {
|
|
19192
|
+
if (!globalThis.__typedRouterGlobalHooks) {
|
|
19193
|
+
globalThis.__typedRouterGlobalHooks = {};
|
|
19194
|
+
}
|
|
19195
|
+
return globalThis.__typedRouterGlobalHooks;
|
|
19196
|
+
}
|
|
19197
|
+
static set globalHooks(value2) {
|
|
19198
|
+
globalThis.__typedRouterGlobalHooks = value2;
|
|
19199
|
+
}
|
|
19200
|
+
/**
|
|
19201
|
+
* Set global hooks for monitoring all TypedRequest traffic
|
|
19202
|
+
* Hooks are shared across all bundles via globalThis
|
|
19203
|
+
*/
|
|
19204
|
+
static setGlobalHooks(hooks) {
|
|
19205
|
+
const current = _TypedRouter.globalHooks;
|
|
19206
|
+
_TypedRouter.globalHooks = { ...current, ...hooks };
|
|
19207
|
+
}
|
|
19208
|
+
/**
|
|
19209
|
+
* Clear all global hooks
|
|
19210
|
+
*/
|
|
19211
|
+
static clearGlobalHooks() {
|
|
19212
|
+
globalThis.__typedRouterGlobalHooks = {};
|
|
19213
|
+
}
|
|
19214
|
+
/**
|
|
19215
|
+
* Set instance-level hooks for monitoring traffic through this router
|
|
19216
|
+
*/
|
|
19217
|
+
setHooks(hooks) {
|
|
19218
|
+
this.hooks = { ...this.hooks, ...hooks };
|
|
19219
|
+
}
|
|
19220
|
+
/**
|
|
19221
|
+
* Helper to call both global and instance hooks
|
|
19222
|
+
*/
|
|
19223
|
+
callHook(hookName, entry) {
|
|
19224
|
+
try {
|
|
19225
|
+
_TypedRouter.globalHooks[hookName]?.(entry);
|
|
19226
|
+
this.hooks[hookName]?.(entry);
|
|
19227
|
+
} catch (err) {
|
|
19228
|
+
console.error(`TypedRouter hook error (${hookName}):`, err);
|
|
19229
|
+
}
|
|
19230
|
+
}
|
|
19166
19231
|
/**
|
|
19167
19232
|
* adds the handler to the routing map
|
|
19168
19233
|
* @param typedHandlerArg
|
|
@@ -19208,12 +19273,22 @@ var TypedRouter = class {
|
|
|
19208
19273
|
}
|
|
19209
19274
|
return typedHandler;
|
|
19210
19275
|
}
|
|
19276
|
+
static {
|
|
19277
|
+
this.defaultRouteOptions = {
|
|
19278
|
+
localRequest: false,
|
|
19279
|
+
skipHooks: false
|
|
19280
|
+
};
|
|
19281
|
+
}
|
|
19211
19282
|
/**
|
|
19212
19283
|
* if typedrequest object has correlation.phase === 'request' -> routes a typed request object to a handler
|
|
19213
19284
|
* if typedrequest object has correlation.phase === 'response' -> routes a typed request object to request fire event
|
|
19214
19285
|
* @param typedRequestArg
|
|
19286
|
+
* @param optionsArg - Options object with:
|
|
19287
|
+
* - localRequest: treat as local request (default: false)
|
|
19288
|
+
* - skipHooks: skip calling hooks for this routing (default: false, use for broadcast-received messages)
|
|
19215
19289
|
*/
|
|
19216
|
-
async routeAndAddResponse(typedRequestArg,
|
|
19290
|
+
async routeAndAddResponse(typedRequestArg, optionsArg = {}) {
|
|
19291
|
+
const options = { ..._TypedRouter.defaultRouteOptions, ...optionsArg };
|
|
19217
19292
|
typedRequestArg = VirtualStream.decodePayloadFromNetwork(typedRequestArg, {
|
|
19218
19293
|
typedrouter: this
|
|
19219
19294
|
});
|
|
@@ -19224,7 +19299,18 @@ var TypedRouter = class {
|
|
|
19224
19299
|
result.localData = null;
|
|
19225
19300
|
return result;
|
|
19226
19301
|
}
|
|
19227
|
-
if (typedRequestArg?.correlation?.phase === "request" ||
|
|
19302
|
+
if (typedRequestArg?.correlation?.phase === "request" || options.localRequest) {
|
|
19303
|
+
const requestStartTime = Date.now();
|
|
19304
|
+
if (!options.skipHooks) {
|
|
19305
|
+
this.callHook("onIncomingRequest", {
|
|
19306
|
+
correlationId: typedRequestArg.correlation?.id || "unknown",
|
|
19307
|
+
method: typedRequestArg.method,
|
|
19308
|
+
direction: "incoming",
|
|
19309
|
+
phase: "request",
|
|
19310
|
+
timestamp: requestStartTime,
|
|
19311
|
+
payload: typedRequestArg.request
|
|
19312
|
+
});
|
|
19313
|
+
}
|
|
19228
19314
|
const typedHandler = this.getTypedHandlerForMethod(typedRequestArg.method);
|
|
19229
19315
|
if (!typedHandler) {
|
|
19230
19316
|
console.log(`Cannot find handler for methodname ${typedRequestArg.method}`);
|
|
@@ -19237,6 +19323,18 @@ var TypedRouter = class {
|
|
|
19237
19323
|
typedRequestArg = VirtualStream.encodePayloadForNetwork(typedRequestArg, {
|
|
19238
19324
|
typedrouter: this
|
|
19239
19325
|
});
|
|
19326
|
+
if (!options.skipHooks) {
|
|
19327
|
+
this.callHook("onOutgoingResponse", {
|
|
19328
|
+
correlationId: typedRequestArg.correlation?.id || "unknown",
|
|
19329
|
+
method: typedRequestArg.method,
|
|
19330
|
+
direction: "outgoing",
|
|
19331
|
+
phase: "response",
|
|
19332
|
+
timestamp: Date.now(),
|
|
19333
|
+
durationMs: Date.now() - requestStartTime,
|
|
19334
|
+
payload: typedRequestArg.response,
|
|
19335
|
+
error: typedRequestArg.error?.text
|
|
19336
|
+
});
|
|
19337
|
+
}
|
|
19240
19338
|
return typedRequestArg;
|
|
19241
19339
|
}
|
|
19242
19340
|
typedRequestArg = await typedHandler.addResponse(typedRequestArg);
|
|
@@ -19244,8 +19342,31 @@ var TypedRouter = class {
|
|
|
19244
19342
|
typedRequestArg = VirtualStream.encodePayloadForNetwork(typedRequestArg, {
|
|
19245
19343
|
typedrouter: this
|
|
19246
19344
|
});
|
|
19345
|
+
if (!options.skipHooks) {
|
|
19346
|
+
this.callHook("onOutgoingResponse", {
|
|
19347
|
+
correlationId: typedRequestArg.correlation?.id || "unknown",
|
|
19348
|
+
method: typedRequestArg.method,
|
|
19349
|
+
direction: "outgoing",
|
|
19350
|
+
phase: "response",
|
|
19351
|
+
timestamp: Date.now(),
|
|
19352
|
+
durationMs: Date.now() - requestStartTime,
|
|
19353
|
+
payload: typedRequestArg.response,
|
|
19354
|
+
error: typedRequestArg.error?.text
|
|
19355
|
+
});
|
|
19356
|
+
}
|
|
19247
19357
|
return typedRequestArg;
|
|
19248
19358
|
} else if (typedRequestArg?.correlation?.phase === "response") {
|
|
19359
|
+
if (!options.skipHooks) {
|
|
19360
|
+
this.callHook("onIncomingResponse", {
|
|
19361
|
+
correlationId: typedRequestArg.correlation?.id || "unknown",
|
|
19362
|
+
method: typedRequestArg.method,
|
|
19363
|
+
direction: "incoming",
|
|
19364
|
+
phase: "response",
|
|
19365
|
+
timestamp: Date.now(),
|
|
19366
|
+
payload: typedRequestArg.response,
|
|
19367
|
+
error: typedRequestArg.error?.text
|
|
19368
|
+
});
|
|
19369
|
+
}
|
|
19249
19370
|
this.fireEventInterestMap.findInterest(typedRequestArg.correlation.id)?.fullfillInterest(typedRequestArg);
|
|
19250
19371
|
return null;
|
|
19251
19372
|
} else {
|
|
@@ -19274,7 +19395,7 @@ var TypedRouter = class {
|
|
|
19274
19395
|
}
|
|
19275
19396
|
};
|
|
19276
19397
|
|
|
19277
|
-
// node_modules/.pnpm/@api.global+typedrequest@3.
|
|
19398
|
+
// node_modules/.pnpm/@api.global+typedrequest@3.2.5/node_modules/@api.global/typedrequest/dist_ts/classes.virtualstream.js
|
|
19278
19399
|
var closingBit = "#############CLOSING BIT#############";
|
|
19279
19400
|
var VirtualStream = class _VirtualStream {
|
|
19280
19401
|
// STATIC
|
|
@@ -19330,6 +19451,9 @@ var VirtualStream = class _VirtualStream {
|
|
|
19330
19451
|
return objectPayload;
|
|
19331
19452
|
}
|
|
19332
19453
|
if (objectPayload !== null && typeof objectPayload === "object") {
|
|
19454
|
+
if (objectPayload instanceof Set || objectPayload instanceof Map || objectPayload instanceof Date || objectPayload instanceof RegExp || objectPayload instanceof Error || objectPayload instanceof Promise || typeof objectPayload.then === "function") {
|
|
19455
|
+
return objectPayload;
|
|
19456
|
+
}
|
|
19333
19457
|
if (objectPayload._isVirtualStream) {
|
|
19334
19458
|
const virtualStream = new _VirtualStream();
|
|
19335
19459
|
virtualStream.streamId = objectPayload.streamId;
|
|
@@ -19615,7 +19739,7 @@ var VirtualStream = class _VirtualStream {
|
|
|
19615
19739
|
}
|
|
19616
19740
|
};
|
|
19617
19741
|
|
|
19618
|
-
// node_modules/.pnpm/@api.global+typedrequest@3.
|
|
19742
|
+
// node_modules/.pnpm/@api.global+typedrequest@3.2.5/node_modules/@api.global/typedrequest/dist_ts/classes.typedtarget.js
|
|
19619
19743
|
var TypedTarget = class {
|
|
19620
19744
|
constructor(optionsArg) {
|
|
19621
19745
|
if (optionsArg.postMethodWithTypedRouter && !optionsArg.typedRouterRef) {
|
|
@@ -19642,14 +19766,22 @@ var TypedTarget = class {
|
|
|
19642
19766
|
}
|
|
19643
19767
|
};
|
|
19644
19768
|
|
|
19645
|
-
// node_modules/.pnpm/@api.global+typedrequest@3.
|
|
19769
|
+
// node_modules/.pnpm/@api.global+typedrequest@3.2.5/node_modules/@api.global/typedrequest/dist_ts/classes.typedrequest.js
|
|
19646
19770
|
var webrequestInstance = new dist_ts_exports15.WebRequest();
|
|
19771
|
+
function callGlobalHook(hookName, entry) {
|
|
19772
|
+
try {
|
|
19773
|
+
TypedRouter.globalHooks[hookName]?.(entry);
|
|
19774
|
+
} catch (err) {
|
|
19775
|
+
console.error(`TypedRequest hook error (${hookName}):`, err);
|
|
19776
|
+
}
|
|
19777
|
+
}
|
|
19647
19778
|
var TypedRequest = class {
|
|
19648
19779
|
/**
|
|
19649
19780
|
* @param postEndPointArg
|
|
19650
19781
|
* @param methodArg
|
|
19651
19782
|
*/
|
|
19652
19783
|
constructor(postTarget, methodArg) {
|
|
19784
|
+
this.skipHooks = false;
|
|
19653
19785
|
if (typeof postTarget === "string") {
|
|
19654
19786
|
this.urlEndPoint = postTarget;
|
|
19655
19787
|
} else {
|
|
@@ -19661,6 +19793,7 @@ var TypedRequest = class {
|
|
|
19661
19793
|
* fires the request
|
|
19662
19794
|
*/
|
|
19663
19795
|
async fire(fireArg, useCacheArg = false) {
|
|
19796
|
+
const requestStartTime = Date.now();
|
|
19664
19797
|
let payloadSending = {
|
|
19665
19798
|
method: this.method,
|
|
19666
19799
|
request: fireArg,
|
|
@@ -19675,6 +19808,16 @@ var TypedRequest = class {
|
|
|
19675
19808
|
return this.postTrObject(payloadArg);
|
|
19676
19809
|
}
|
|
19677
19810
|
});
|
|
19811
|
+
if (!this.skipHooks) {
|
|
19812
|
+
callGlobalHook("onOutgoingRequest", {
|
|
19813
|
+
correlationId: payloadSending.correlation.id,
|
|
19814
|
+
method: this.method,
|
|
19815
|
+
direction: "outgoing",
|
|
19816
|
+
phase: "request",
|
|
19817
|
+
timestamp: requestStartTime,
|
|
19818
|
+
payload: fireArg
|
|
19819
|
+
});
|
|
19820
|
+
}
|
|
19678
19821
|
let payloadReceiving;
|
|
19679
19822
|
payloadReceiving = await this.postTrObject(payloadSending, useCacheArg);
|
|
19680
19823
|
payloadReceiving = VirtualStream.decodePayloadFromNetwork(payloadReceiving, {
|
|
@@ -19682,6 +19825,18 @@ var TypedRequest = class {
|
|
|
19682
19825
|
return this.postTrObject(payloadArg);
|
|
19683
19826
|
}
|
|
19684
19827
|
});
|
|
19828
|
+
if (!this.skipHooks) {
|
|
19829
|
+
callGlobalHook("onIncomingResponse", {
|
|
19830
|
+
correlationId: payloadSending.correlation.id,
|
|
19831
|
+
method: this.method,
|
|
19832
|
+
direction: "incoming",
|
|
19833
|
+
phase: "response",
|
|
19834
|
+
timestamp: Date.now(),
|
|
19835
|
+
durationMs: Date.now() - requestStartTime,
|
|
19836
|
+
payload: payloadReceiving?.response,
|
|
19837
|
+
error: payloadReceiving?.error?.text
|
|
19838
|
+
});
|
|
19839
|
+
}
|
|
19685
19840
|
return payloadReceiving.response;
|
|
19686
19841
|
}
|
|
19687
19842
|
async postTrObject(payloadSendingArg, useCacheArg = false) {
|
|
@@ -19708,7 +19863,7 @@ var TypedRequest = class {
|
|
|
19708
19863
|
}
|
|
19709
19864
|
};
|
|
19710
19865
|
|
|
19711
|
-
// node_modules/.pnpm/broadcast-channel@7.
|
|
19866
|
+
// node_modules/.pnpm/broadcast-channel@7.2.0/node_modules/broadcast-channel/dist/esbrowser/util.js
|
|
19712
19867
|
function isPromise2(obj) {
|
|
19713
19868
|
return obj && typeof obj.then === "function";
|
|
19714
19869
|
}
|
|
@@ -19746,7 +19901,7 @@ function supportsWebLockAPI() {
|
|
|
19746
19901
|
}
|
|
19747
19902
|
}
|
|
19748
19903
|
|
|
19749
|
-
// node_modules/.pnpm/broadcast-channel@7.
|
|
19904
|
+
// node_modules/.pnpm/broadcast-channel@7.2.0/node_modules/broadcast-channel/dist/esbrowser/methods/native.js
|
|
19750
19905
|
var microSeconds2 = microSeconds;
|
|
19751
19906
|
var type = "native";
|
|
19752
19907
|
function create(channelName) {
|
|
@@ -19806,7 +19961,7 @@ var NativeMethod = {
|
|
|
19806
19961
|
microSeconds: microSeconds2
|
|
19807
19962
|
};
|
|
19808
19963
|
|
|
19809
|
-
// node_modules/.pnpm/oblivious-set@
|
|
19964
|
+
// node_modules/.pnpm/oblivious-set@2.0.0/node_modules/oblivious-set/dist/esm/src/index.js
|
|
19810
19965
|
var ObliviousSet = class {
|
|
19811
19966
|
ttl;
|
|
19812
19967
|
map = /* @__PURE__ */ new Map();
|
|
@@ -19819,9 +19974,18 @@ var ObliviousSet = class {
|
|
|
19819
19974
|
this.ttl = ttl;
|
|
19820
19975
|
}
|
|
19821
19976
|
has(value2) {
|
|
19822
|
-
|
|
19977
|
+
const valueTime = this.map.get(value2);
|
|
19978
|
+
if (typeof valueTime === "undefined") {
|
|
19979
|
+
return false;
|
|
19980
|
+
}
|
|
19981
|
+
if (valueTime < now() - this.ttl) {
|
|
19982
|
+
this.map.delete(value2);
|
|
19983
|
+
return false;
|
|
19984
|
+
}
|
|
19985
|
+
return true;
|
|
19823
19986
|
}
|
|
19824
19987
|
add(value2) {
|
|
19988
|
+
this.map.delete(value2);
|
|
19825
19989
|
this.map.set(value2, now());
|
|
19826
19990
|
if (!this._to) {
|
|
19827
19991
|
this._to = true;
|
|
@@ -19841,14 +20005,14 @@ function removeTooOldValues(obliviousSet) {
|
|
|
19841
20005
|
while (true) {
|
|
19842
20006
|
const next2 = iterator2.next().value;
|
|
19843
20007
|
if (!next2) {
|
|
19844
|
-
|
|
20008
|
+
break;
|
|
19845
20009
|
}
|
|
19846
20010
|
const value2 = next2[0];
|
|
19847
20011
|
const time = next2[1];
|
|
19848
20012
|
if (time < olderThen) {
|
|
19849
20013
|
obliviousSet.map.delete(value2);
|
|
19850
20014
|
} else {
|
|
19851
|
-
|
|
20015
|
+
break;
|
|
19852
20016
|
}
|
|
19853
20017
|
}
|
|
19854
20018
|
}
|
|
@@ -19856,7 +20020,7 @@ function now() {
|
|
|
19856
20020
|
return Date.now();
|
|
19857
20021
|
}
|
|
19858
20022
|
|
|
19859
|
-
// node_modules/.pnpm/broadcast-channel@7.
|
|
20023
|
+
// node_modules/.pnpm/broadcast-channel@7.2.0/node_modules/broadcast-channel/dist/esbrowser/options.js
|
|
19860
20024
|
function fillOptionsWithDefaults() {
|
|
19861
20025
|
var originalOptions = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
19862
20026
|
var options = JSON.parse(JSON.stringify(originalOptions));
|
|
@@ -19875,7 +20039,7 @@ function fillOptionsWithDefaults() {
|
|
|
19875
20039
|
return options;
|
|
19876
20040
|
}
|
|
19877
20041
|
|
|
19878
|
-
// node_modules/.pnpm/broadcast-channel@7.
|
|
20042
|
+
// node_modules/.pnpm/broadcast-channel@7.2.0/node_modules/broadcast-channel/dist/esbrowser/methods/indexed-db.js
|
|
19879
20043
|
var microSeconds3 = microSeconds;
|
|
19880
20044
|
var DB_PREFIX = "pubkey.broadcast-channel-0-";
|
|
19881
20045
|
var OBJECT_STORE_ID = "messages";
|
|
@@ -20148,7 +20312,7 @@ var IndexedDBMethod = {
|
|
|
20148
20312
|
microSeconds: microSeconds3
|
|
20149
20313
|
};
|
|
20150
20314
|
|
|
20151
|
-
// node_modules/.pnpm/broadcast-channel@7.
|
|
20315
|
+
// node_modules/.pnpm/broadcast-channel@7.2.0/node_modules/broadcast-channel/dist/esbrowser/methods/localstorage.js
|
|
20152
20316
|
var microSeconds4 = microSeconds;
|
|
20153
20317
|
var KEY_PREFIX = "pubkey.broadcastChannel-";
|
|
20154
20318
|
var type3 = "localstorage";
|
|
@@ -20260,7 +20424,7 @@ var LocalstorageMethod = {
|
|
|
20260
20424
|
microSeconds: microSeconds4
|
|
20261
20425
|
};
|
|
20262
20426
|
|
|
20263
|
-
// node_modules/.pnpm/broadcast-channel@7.
|
|
20427
|
+
// node_modules/.pnpm/broadcast-channel@7.2.0/node_modules/broadcast-channel/dist/esbrowser/methods/simulate.js
|
|
20264
20428
|
var microSeconds5 = microSeconds;
|
|
20265
20429
|
var type4 = "simulate";
|
|
20266
20430
|
var SIMULATE_CHANNELS = /* @__PURE__ */ new Set();
|
|
@@ -20313,7 +20477,7 @@ var SimulateMethod = {
|
|
|
20313
20477
|
microSeconds: microSeconds5
|
|
20314
20478
|
};
|
|
20315
20479
|
|
|
20316
|
-
// node_modules/.pnpm/broadcast-channel@7.
|
|
20480
|
+
// node_modules/.pnpm/broadcast-channel@7.2.0/node_modules/broadcast-channel/dist/esbrowser/method-chooser.js
|
|
20317
20481
|
var METHODS = [
|
|
20318
20482
|
NativeMethod,
|
|
20319
20483
|
// fastest
|
|
@@ -20349,7 +20513,7 @@ function chooseMethod(options) {
|
|
|
20349
20513
|
}
|
|
20350
20514
|
}
|
|
20351
20515
|
|
|
20352
|
-
// node_modules/.pnpm/broadcast-channel@7.
|
|
20516
|
+
// node_modules/.pnpm/broadcast-channel@7.2.0/node_modules/broadcast-channel/dist/esbrowser/broadcast-channel.js
|
|
20353
20517
|
var OPEN_BROADCAST_CHANNELS = /* @__PURE__ */ new Set();
|
|
20354
20518
|
var lastId = 0;
|
|
20355
20519
|
var BroadcastChannel2 = function BroadcastChannel3(name, options) {
|
|
@@ -20530,7 +20694,7 @@ function _stopListening(channel) {
|
|
|
20530
20694
|
}
|
|
20531
20695
|
}
|
|
20532
20696
|
|
|
20533
|
-
// node_modules/.pnpm/@design.estate+dees-comms@1.0.
|
|
20697
|
+
// node_modules/.pnpm/@design.estate+dees-comms@1.0.30/node_modules/@design.estate/dees-comms/dist_ts/dees-comms.classes.deescomms.js
|
|
20534
20698
|
var BroadcastChannel4 = globalThis.BroadcastChannel;
|
|
20535
20699
|
if (!BroadcastChannel4) {
|
|
20536
20700
|
BroadcastChannel4 = BroadcastChannel2;
|
|
@@ -20549,7 +20713,7 @@ var DeesComms = class {
|
|
|
20549
20713
|
this.broadcastChannel.onmessage = async (eventArg) => {
|
|
20550
20714
|
const message2 = eventArg.method ? eventArg : eventArg.data;
|
|
20551
20715
|
console.log(JSON.stringify(message2));
|
|
20552
|
-
const response = await this.typedrouter.routeAndAddResponse(message2);
|
|
20716
|
+
const response = await this.typedrouter.routeAndAddResponse(message2, { skipHooks: true });
|
|
20553
20717
|
if (response && !response.error) {
|
|
20554
20718
|
this.postMessage(response);
|
|
20555
20719
|
} else {
|
|
@@ -38409,8 +38573,8 @@ var Stringmap2 = class {
|
|
|
38409
38573
|
}
|
|
38410
38574
|
};
|
|
38411
38575
|
|
|
38412
|
-
// node_modules/.pnpm
|
|
38413
|
-
var version = "1.3.
|
|
38576
|
+
// node_modules/.pnpm/@tempfix+lenis@1.3.17/node_modules/@tempfix/lenis/dist/lenis.mjs
|
|
38577
|
+
var version = "1.3.17";
|
|
38414
38578
|
function clamp2(min3, input, max3) {
|
|
38415
38579
|
return Math.max(min3, Math.min(input, max3));
|
|
38416
38580
|
}
|
|
@@ -38734,7 +38898,7 @@ var Lenis = class {
|
|
|
38734
38898
|
// same as isStopped but enabled/disabled when scroll reaches target
|
|
38735
38899
|
_preventNextNativeScrollEvent = false;
|
|
38736
38900
|
_resetVelocityTimeout = null;
|
|
38737
|
-
|
|
38901
|
+
_rafId = null;
|
|
38738
38902
|
/**
|
|
38739
38903
|
* Whether or not the user is touching the screen
|
|
38740
38904
|
*/
|
|
@@ -38792,7 +38956,7 @@ var Lenis = class {
|
|
|
38792
38956
|
smoothWheel = true,
|
|
38793
38957
|
syncTouch = false,
|
|
38794
38958
|
syncTouchLerp = 0.075,
|
|
38795
|
-
|
|
38959
|
+
touchInertiaExponent = 1.7,
|
|
38796
38960
|
duration,
|
|
38797
38961
|
// in seconds
|
|
38798
38962
|
easing,
|
|
@@ -38800,7 +38964,7 @@ var Lenis = class {
|
|
|
38800
38964
|
infinite = false,
|
|
38801
38965
|
orientation = "vertical",
|
|
38802
38966
|
// vertical, horizontal
|
|
38803
|
-
gestureOrientation = "vertical",
|
|
38967
|
+
gestureOrientation = orientation === "horizontal" ? "both" : "vertical",
|
|
38804
38968
|
// vertical, horizontal, both
|
|
38805
38969
|
touchMultiplier = 1,
|
|
38806
38970
|
wheelMultiplier = 1,
|
|
@@ -38813,7 +38977,10 @@ var Lenis = class {
|
|
|
38813
38977
|
autoToggle = false,
|
|
38814
38978
|
// https://caniuse.com/?search=transition-behavior
|
|
38815
38979
|
allowNestedScroll = false,
|
|
38816
|
-
|
|
38980
|
+
// @ts-ignore: this will be deprecated in the future
|
|
38981
|
+
__experimental__naiveDimensions = false,
|
|
38982
|
+
naiveDimensions = __experimental__naiveDimensions,
|
|
38983
|
+
stopInertiaOnNavigate = false
|
|
38817
38984
|
} = {}) {
|
|
38818
38985
|
window.lenisVersion = version;
|
|
38819
38986
|
if (!wrapper || wrapper === document.documentElement) {
|
|
@@ -38831,7 +38998,7 @@ var Lenis = class {
|
|
|
38831
38998
|
smoothWheel,
|
|
38832
38999
|
syncTouch,
|
|
38833
39000
|
syncTouchLerp,
|
|
38834
|
-
|
|
39001
|
+
touchInertiaExponent,
|
|
38835
39002
|
duration,
|
|
38836
39003
|
easing,
|
|
38837
39004
|
lerp: lerp2,
|
|
@@ -38848,7 +39015,8 @@ var Lenis = class {
|
|
|
38848
39015
|
anchors,
|
|
38849
39016
|
autoToggle,
|
|
38850
39017
|
allowNestedScroll,
|
|
38851
|
-
|
|
39018
|
+
naiveDimensions,
|
|
39019
|
+
stopInertiaOnNavigate
|
|
38852
39020
|
};
|
|
38853
39021
|
this.dimensions = new Dimensions(wrapper, content3, { autoResize });
|
|
38854
39022
|
this.updateClassName();
|
|
@@ -38857,7 +39025,7 @@ var Lenis = class {
|
|
|
38857
39025
|
this.options.wrapper.addEventListener("scrollend", this.onScrollEnd, {
|
|
38858
39026
|
capture: true
|
|
38859
39027
|
});
|
|
38860
|
-
if (this.options.anchors
|
|
39028
|
+
if (this.options.anchors || this.options.stopInertiaOnNavigate) {
|
|
38861
39029
|
this.options.wrapper.addEventListener(
|
|
38862
39030
|
"click",
|
|
38863
39031
|
this.onClick,
|
|
@@ -38875,12 +39043,13 @@ var Lenis = class {
|
|
|
38875
39043
|
});
|
|
38876
39044
|
this.virtualScroll.on("scroll", this.onVirtualScroll);
|
|
38877
39045
|
if (this.options.autoToggle) {
|
|
39046
|
+
this.checkOverflow();
|
|
38878
39047
|
this.rootElement.addEventListener("transitionend", this.onTransitionEnd, {
|
|
38879
39048
|
passive: true
|
|
38880
39049
|
});
|
|
38881
39050
|
}
|
|
38882
39051
|
if (this.options.autoRaf) {
|
|
38883
|
-
this.
|
|
39052
|
+
this._rafId = requestAnimationFrame(this.raf);
|
|
38884
39053
|
}
|
|
38885
39054
|
}
|
|
38886
39055
|
/**
|
|
@@ -38901,7 +39070,7 @@ var Lenis = class {
|
|
|
38901
39070
|
this.onPointerDown,
|
|
38902
39071
|
false
|
|
38903
39072
|
);
|
|
38904
|
-
if (this.options.anchors
|
|
39073
|
+
if (this.options.anchors || this.options.stopInertiaOnNavigate) {
|
|
38905
39074
|
this.options.wrapper.removeEventListener(
|
|
38906
39075
|
"click",
|
|
38907
39076
|
this.onClick,
|
|
@@ -38911,8 +39080,8 @@ var Lenis = class {
|
|
|
38911
39080
|
this.virtualScroll.destroy();
|
|
38912
39081
|
this.dimensions.destroy();
|
|
38913
39082
|
this.cleanUpClassName();
|
|
38914
|
-
if (this.
|
|
38915
|
-
cancelAnimationFrame(this.
|
|
39083
|
+
if (this._rafId) {
|
|
39084
|
+
cancelAnimationFrame(this._rafId);
|
|
38916
39085
|
}
|
|
38917
39086
|
}
|
|
38918
39087
|
on(event, callback) {
|
|
@@ -38939,15 +39108,20 @@ var Lenis = class {
|
|
|
38939
39108
|
})
|
|
38940
39109
|
);
|
|
38941
39110
|
};
|
|
39111
|
+
get overflow() {
|
|
39112
|
+
const property = this.isHorizontal ? "overflow-x" : "overflow-y";
|
|
39113
|
+
return getComputedStyle(this.rootElement)[property];
|
|
39114
|
+
}
|
|
39115
|
+
checkOverflow() {
|
|
39116
|
+
if (["hidden", "clip"].includes(this.overflow)) {
|
|
39117
|
+
this.internalStop();
|
|
39118
|
+
} else {
|
|
39119
|
+
this.internalStart();
|
|
39120
|
+
}
|
|
39121
|
+
}
|
|
38942
39122
|
onTransitionEnd = (event) => {
|
|
38943
39123
|
if (event.propertyName.includes("overflow")) {
|
|
38944
|
-
|
|
38945
|
-
const overflow = getComputedStyle(this.rootElement)[property];
|
|
38946
|
-
if (["hidden", "clip"].includes(overflow)) {
|
|
38947
|
-
this.stop();
|
|
38948
|
-
} else {
|
|
38949
|
-
this.start();
|
|
38950
|
-
}
|
|
39124
|
+
this.checkOverflow();
|
|
38951
39125
|
}
|
|
38952
39126
|
};
|
|
38953
39127
|
setScroll(scroll) {
|
|
@@ -38959,18 +39133,28 @@ var Lenis = class {
|
|
|
38959
39133
|
}
|
|
38960
39134
|
onClick = (event) => {
|
|
38961
39135
|
const path3 = event.composedPath();
|
|
38962
|
-
const
|
|
38963
|
-
(node2) => node2 instanceof HTMLAnchorElement &&
|
|
39136
|
+
const anchorElements = path3.filter(
|
|
39137
|
+
(node2) => node2 instanceof HTMLAnchorElement && node2.getAttribute("href")
|
|
38964
39138
|
);
|
|
38965
|
-
if (
|
|
38966
|
-
const
|
|
38967
|
-
|
|
38968
|
-
|
|
38969
|
-
|
|
38970
|
-
|
|
38971
|
-
|
|
39139
|
+
if (this.options.anchors) {
|
|
39140
|
+
const anchor = anchorElements.find(
|
|
39141
|
+
(node2) => node2.getAttribute("href")?.includes("#")
|
|
39142
|
+
);
|
|
39143
|
+
if (anchor) {
|
|
39144
|
+
const href = anchor.getAttribute("href");
|
|
39145
|
+
if (href) {
|
|
39146
|
+
const options = typeof this.options.anchors === "object" && this.options.anchors ? this.options.anchors : void 0;
|
|
39147
|
+
const target = `#${href.split("#")[1]}`;
|
|
39148
|
+
this.scrollTo(target, options);
|
|
38972
39149
|
}
|
|
38973
|
-
|
|
39150
|
+
}
|
|
39151
|
+
}
|
|
39152
|
+
if (this.options.stopInertiaOnNavigate) {
|
|
39153
|
+
const internalLink = anchorElements.find(
|
|
39154
|
+
(node2) => node2.host === window.location.host
|
|
39155
|
+
);
|
|
39156
|
+
if (internalLink) {
|
|
39157
|
+
this.reset();
|
|
38974
39158
|
}
|
|
38975
39159
|
}
|
|
38976
39160
|
};
|
|
@@ -39007,7 +39191,9 @@ var Lenis = class {
|
|
|
39007
39191
|
))
|
|
39008
39192
|
return;
|
|
39009
39193
|
if (this.isStopped || this.isLocked) {
|
|
39010
|
-
event.
|
|
39194
|
+
if (event.cancelable) {
|
|
39195
|
+
event.preventDefault();
|
|
39196
|
+
}
|
|
39011
39197
|
return;
|
|
39012
39198
|
}
|
|
39013
39199
|
const isSmooth = this.options.syncTouch && isTouch || this.options.smoothWheel && isWheel;
|
|
@@ -39023,21 +39209,22 @@ var Lenis = class {
|
|
|
39023
39209
|
} else if (this.options.gestureOrientation === "horizontal") {
|
|
39024
39210
|
delta = deltaX;
|
|
39025
39211
|
}
|
|
39026
|
-
if (!this.options.overscroll || this.options.infinite || this.options.wrapper !== window && (this.animatedScroll > 0 && this.animatedScroll < this.limit || this.animatedScroll === 0 && deltaY > 0 || this.animatedScroll === this.limit && deltaY < 0)) {
|
|
39212
|
+
if (!this.options.overscroll || this.options.infinite || this.options.wrapper !== window && this.limit > 0 && (this.animatedScroll > 0 && this.animatedScroll < this.limit || this.animatedScroll === 0 && deltaY > 0 || this.animatedScroll === this.limit && deltaY < 0)) {
|
|
39027
39213
|
event.lenisStopPropagation = true;
|
|
39028
39214
|
}
|
|
39029
|
-
event.
|
|
39215
|
+
if (event.cancelable) {
|
|
39216
|
+
event.preventDefault();
|
|
39217
|
+
}
|
|
39030
39218
|
const isSyncTouch = isTouch && this.options.syncTouch;
|
|
39031
39219
|
const isTouchEnd = isTouch && event.type === "touchend";
|
|
39032
|
-
const hasTouchInertia = isTouchEnd
|
|
39220
|
+
const hasTouchInertia = isTouchEnd;
|
|
39033
39221
|
if (hasTouchInertia) {
|
|
39034
|
-
delta = this.velocity * this.options.
|
|
39222
|
+
delta = Math.sign(this.velocity) * Math.pow(Math.abs(this.velocity), this.options.touchInertiaExponent);
|
|
39035
39223
|
}
|
|
39036
39224
|
this.scrollTo(this.targetScroll + delta, {
|
|
39037
39225
|
programmatic: false,
|
|
39038
39226
|
...isSyncTouch ? {
|
|
39039
39227
|
lerp: hasTouchInertia ? this.options.syncTouchLerp : 1
|
|
39040
|
-
// immediate: !hasTouchInertia,
|
|
39041
39228
|
} : {
|
|
39042
39229
|
lerp: this.options.lerp,
|
|
39043
39230
|
duration: this.options.duration,
|
|
@@ -39098,6 +39285,14 @@ var Lenis = class {
|
|
|
39098
39285
|
* Start lenis scroll after it has been stopped
|
|
39099
39286
|
*/
|
|
39100
39287
|
start() {
|
|
39288
|
+
if (!this.isStopped) return;
|
|
39289
|
+
if (this.options.autoToggle) {
|
|
39290
|
+
this.rootElement.style.removeProperty("overflow");
|
|
39291
|
+
return;
|
|
39292
|
+
}
|
|
39293
|
+
this.internalStart();
|
|
39294
|
+
}
|
|
39295
|
+
internalStart() {
|
|
39101
39296
|
if (!this.isStopped) return;
|
|
39102
39297
|
this.reset();
|
|
39103
39298
|
this.isStopped = false;
|
|
@@ -39107,6 +39302,14 @@ var Lenis = class {
|
|
|
39107
39302
|
* Stop lenis scroll
|
|
39108
39303
|
*/
|
|
39109
39304
|
stop() {
|
|
39305
|
+
if (this.isStopped) return;
|
|
39306
|
+
if (this.options.autoToggle) {
|
|
39307
|
+
this.rootElement.style.setProperty("overflow", "clip");
|
|
39308
|
+
return;
|
|
39309
|
+
}
|
|
39310
|
+
this.internalStop();
|
|
39311
|
+
}
|
|
39312
|
+
internalStop() {
|
|
39110
39313
|
if (this.isStopped) return;
|
|
39111
39314
|
this.reset();
|
|
39112
39315
|
this.isStopped = true;
|
|
@@ -39122,7 +39325,7 @@ var Lenis = class {
|
|
|
39122
39325
|
this.time = time;
|
|
39123
39326
|
this.animate.advance(deltaTime * 1e-3);
|
|
39124
39327
|
if (this.options.autoRaf) {
|
|
39125
|
-
this.
|
|
39328
|
+
this._rafId = requestAnimationFrame(this.raf);
|
|
39126
39329
|
}
|
|
39127
39330
|
};
|
|
39128
39331
|
/**
|
|
@@ -39149,19 +39352,19 @@ var Lenis = class {
|
|
|
39149
39352
|
offset = 0,
|
|
39150
39353
|
immediate = false,
|
|
39151
39354
|
lock = false,
|
|
39152
|
-
|
|
39153
|
-
|
|
39154
|
-
lerp: lerp2 = this.options.lerp,
|
|
39355
|
+
programmatic = true,
|
|
39356
|
+
// called from outside of the class
|
|
39357
|
+
lerp: lerp2 = programmatic ? this.options.lerp : void 0,
|
|
39358
|
+
duration = programmatic ? this.options.duration : void 0,
|
|
39359
|
+
easing = programmatic ? this.options.easing : void 0,
|
|
39155
39360
|
onStart,
|
|
39156
39361
|
onComplete,
|
|
39157
39362
|
force = false,
|
|
39158
39363
|
// scroll even if stopped
|
|
39159
|
-
programmatic = true,
|
|
39160
|
-
// called from outside of the class
|
|
39161
39364
|
userData
|
|
39162
39365
|
} = {}) {
|
|
39163
39366
|
if ((this.isStopped || this.isLocked) && !force) return;
|
|
39164
|
-
if (typeof target === "string" && ["top", "left", "start"].includes(target)) {
|
|
39367
|
+
if (typeof target === "string" && ["top", "left", "start", "#"].includes(target)) {
|
|
39165
39368
|
target = 0;
|
|
39166
39369
|
} else if (typeof target === "string" && ["bottom", "right", "end"].includes(target)) {
|
|
39167
39370
|
target = this.limit;
|
|
@@ -39169,6 +39372,13 @@ var Lenis = class {
|
|
|
39169
39372
|
let node2;
|
|
39170
39373
|
if (typeof target === "string") {
|
|
39171
39374
|
node2 = document.querySelector(target);
|
|
39375
|
+
if (!node2) {
|
|
39376
|
+
if (target === "#top") {
|
|
39377
|
+
target = 0;
|
|
39378
|
+
} else {
|
|
39379
|
+
console.warn("Lenis: Target not found", target);
|
|
39380
|
+
}
|
|
39381
|
+
}
|
|
39172
39382
|
} else if (target instanceof HTMLElement && target?.nodeType) {
|
|
39173
39383
|
node2 = target;
|
|
39174
39384
|
}
|
|
@@ -39355,7 +39565,7 @@ var Lenis = class {
|
|
|
39355
39565
|
* The limit which is the maximum scroll value
|
|
39356
39566
|
*/
|
|
39357
39567
|
get limit() {
|
|
39358
|
-
if (this.options.
|
|
39568
|
+
if (this.options.naiveDimensions) {
|
|
39359
39569
|
if (this.isHorizontal) {
|
|
39360
39570
|
return this.rootElement.scrollWidth - this.rootElement.clientWidth;
|
|
39361
39571
|
} else {
|
|
@@ -39463,22 +39673,23 @@ var lik = {
|
|
|
39463
39673
|
|
|
39464
39674
|
// ts/domtools.classes.scroller.ts
|
|
39465
39675
|
var Scroller = class {
|
|
39676
|
+
domtoolsInstance;
|
|
39677
|
+
// Array to store scroll callback functions.
|
|
39678
|
+
scrollCallbacks = [];
|
|
39679
|
+
// Lenis instance (if activated) or null.
|
|
39680
|
+
lenisInstance = null;
|
|
39681
|
+
// Bound handlers to allow removal from event listeners.
|
|
39682
|
+
handleNativeScroll = (event) => {
|
|
39683
|
+
this.executeScrollCallbacks();
|
|
39684
|
+
};
|
|
39685
|
+
handleLenisScroll = (info) => {
|
|
39686
|
+
this.executeScrollCallbacks();
|
|
39687
|
+
};
|
|
39466
39688
|
constructor(domtoolsInstanceArg) {
|
|
39467
|
-
// Array to store scroll callback functions.
|
|
39468
|
-
this.scrollCallbacks = [];
|
|
39469
|
-
// Lenis instance (if activated) or null.
|
|
39470
|
-
this.lenisInstance = null;
|
|
39471
|
-
// Bound handlers to allow removal from event listeners.
|
|
39472
|
-
this.handleNativeScroll = (event) => {
|
|
39473
|
-
this.executeScrollCallbacks();
|
|
39474
|
-
};
|
|
39475
|
-
this.handleLenisScroll = (info) => {
|
|
39476
|
-
this.executeScrollCallbacks();
|
|
39477
|
-
};
|
|
39478
|
-
this.sweetScroller = new import_sweet_scroll.default({});
|
|
39479
39689
|
this.domtoolsInstance = domtoolsInstanceArg;
|
|
39480
39690
|
this.attachNativeScrollListener();
|
|
39481
39691
|
}
|
|
39692
|
+
sweetScroller = new import_sweet_scroll.default({});
|
|
39482
39693
|
/**
|
|
39483
39694
|
* Scrolls to a given element with options.
|
|
39484
39695
|
*/
|
|
@@ -39600,10 +39811,11 @@ var Scroller = class {
|
|
|
39600
39811
|
|
|
39601
39812
|
// ts/domtools.classes.thememanager.ts
|
|
39602
39813
|
var ThemeManager = class {
|
|
39814
|
+
domtoolsRef;
|
|
39815
|
+
goBrightBoolean = false;
|
|
39816
|
+
preferredColorSchemeMediaMatch = window.matchMedia("(prefers-color-scheme: light)");
|
|
39817
|
+
themeObservable = new dist_ts_exports5.rxjs.ReplaySubject(1);
|
|
39603
39818
|
constructor(domtoolsRefArg) {
|
|
39604
|
-
this.goBrightBoolean = false;
|
|
39605
|
-
this.preferredColorSchemeMediaMatch = window.matchMedia("(prefers-color-scheme: light)");
|
|
39606
|
-
this.themeObservable = new dist_ts_exports5.rxjs.ReplaySubject(1);
|
|
39607
39819
|
this.domtoolsRef = domtoolsRefArg;
|
|
39608
39820
|
this.goBrightBoolean = this.preferredColorSchemeMediaMatch.matches;
|
|
39609
39821
|
this.preferredColorSchemeMediaMatch.addEventListener("change", (eventArg) => {
|
|
@@ -39768,18 +39980,11 @@ var Key = /* @__PURE__ */ ((Key2) => {
|
|
|
39768
39980
|
var Keyboard = class {
|
|
39769
39981
|
constructor(domNode) {
|
|
39770
39982
|
this.domNode = domNode;
|
|
39771
|
-
this.mapCombosToHandlers = /* @__PURE__ */ new Map();
|
|
39772
|
-
this.pressedKeys = /* @__PURE__ */ new Set();
|
|
39773
|
-
this.keyEnum = Key;
|
|
39774
|
-
this.handleKeyDown = (event) => {
|
|
39775
|
-
this.pressedKeys.add(event.keyCode);
|
|
39776
|
-
this.checkMatchingKeyboardSubjects(event);
|
|
39777
|
-
};
|
|
39778
|
-
this.handleKeyUp = (event) => {
|
|
39779
|
-
this.pressedKeys.delete(event.keyCode);
|
|
39780
|
-
};
|
|
39781
39983
|
this.startListening();
|
|
39782
39984
|
}
|
|
39985
|
+
mapCombosToHandlers = /* @__PURE__ */ new Map();
|
|
39986
|
+
pressedKeys = /* @__PURE__ */ new Set();
|
|
39987
|
+
keyEnum = Key;
|
|
39783
39988
|
on(keys2) {
|
|
39784
39989
|
const subject = new dist_ts_exports5.rxjs.Subject();
|
|
39785
39990
|
this.registerKeys(keys2, subject);
|
|
@@ -39807,6 +40012,10 @@ var Keyboard = class {
|
|
|
39807
40012
|
this.mapCombosToHandlers.clear();
|
|
39808
40013
|
this.pressedKeys.clear();
|
|
39809
40014
|
}
|
|
40015
|
+
handleKeyDown = (event) => {
|
|
40016
|
+
this.pressedKeys.add(event.keyCode);
|
|
40017
|
+
this.checkMatchingKeyboardSubjects(event);
|
|
40018
|
+
};
|
|
39810
40019
|
checkMatchingKeyboardSubjects(payloadArg) {
|
|
39811
40020
|
this.mapCombosToHandlers.forEach((subjectArg, keysArg) => {
|
|
39812
40021
|
if (this.areAllKeysPressed(keysArg)) {
|
|
@@ -39814,6 +40023,9 @@ var Keyboard = class {
|
|
|
39814
40023
|
}
|
|
39815
40024
|
});
|
|
39816
40025
|
}
|
|
40026
|
+
handleKeyUp = (event) => {
|
|
40027
|
+
this.pressedKeys.delete(event.keyCode);
|
|
40028
|
+
};
|
|
39817
40029
|
areAllKeysPressed(keysArg) {
|
|
39818
40030
|
let result = true;
|
|
39819
40031
|
keysArg.forEach((key2) => {
|
|
@@ -39835,52 +40047,10 @@ var Keyboard = class {
|
|
|
39835
40047
|
|
|
39836
40048
|
// ts/domtools.classes.domtools.ts
|
|
39837
40049
|
var DomTools2 = class _DomTools {
|
|
39838
|
-
|
|
39839
|
-
|
|
39840
|
-
|
|
39841
|
-
|
|
39842
|
-
// elements
|
|
39843
|
-
this.elements = {
|
|
39844
|
-
headElement: null,
|
|
39845
|
-
bodyElement: null
|
|
39846
|
-
};
|
|
39847
|
-
this.websetup = new WebSetup({
|
|
39848
|
-
metaObject: {
|
|
39849
|
-
title: "loading..."
|
|
39850
|
-
}
|
|
39851
|
-
});
|
|
39852
|
-
this.smartstate = new dist_ts_exports20.Smartstate();
|
|
39853
|
-
this.domToolsStatePart = this.smartstate.getStatePart("domtools", {
|
|
39854
|
-
virtualViewport: "native",
|
|
39855
|
-
jwt: null
|
|
39856
|
-
});
|
|
39857
|
-
this.router = new dist_ts_exports19.SmartRouter({
|
|
39858
|
-
debug: false
|
|
39859
|
-
});
|
|
39860
|
-
this.convenience = {
|
|
39861
|
-
typedrequest: dist_ts_exports16,
|
|
39862
|
-
smartdelay: dist_ts_exports2,
|
|
39863
|
-
smartjson: dist_ts_exports13,
|
|
39864
|
-
smarturl: dist_ts_exports21
|
|
39865
|
-
};
|
|
39866
|
-
this.deesComms = new dist_ts_exports17.DeesComms();
|
|
39867
|
-
this.scroller = new Scroller(this);
|
|
39868
|
-
this.themeManager = new ThemeManager(this);
|
|
39869
|
-
this.keyboard = null;
|
|
39870
|
-
// Initialized after DOM ready to avoid accessing document.body before it exists
|
|
39871
|
-
this.domToolsReady = dist_ts_exports.defer();
|
|
39872
|
-
this.domReady = dist_ts_exports.defer();
|
|
39873
|
-
this.globalStylesReady = dist_ts_exports.defer();
|
|
39874
|
-
this.runOnceTrackerStringMap = new lik.Stringmap();
|
|
39875
|
-
this.runOnceResultMap = new lik.FastMap();
|
|
39876
|
-
this.runOnceErrorMap = new lik.FastMap();
|
|
39877
|
-
}
|
|
39878
|
-
static {
|
|
39879
|
-
// ======
|
|
39880
|
-
// STATIC
|
|
39881
|
-
// ======
|
|
39882
|
-
this.initializationPromise = null;
|
|
39883
|
-
}
|
|
40050
|
+
// ======
|
|
40051
|
+
// STATIC
|
|
40052
|
+
// ======
|
|
40053
|
+
static initializationPromise = null;
|
|
39884
40054
|
/**
|
|
39885
40055
|
* setups domtools
|
|
39886
40056
|
*/
|
|
@@ -39930,6 +40100,46 @@ var DomTools2 = class _DomTools {
|
|
|
39930
40100
|
}
|
|
39931
40101
|
return globalThis.deesDomTools;
|
|
39932
40102
|
}
|
|
40103
|
+
// ========
|
|
40104
|
+
// INSTANCE
|
|
40105
|
+
// ========
|
|
40106
|
+
// elements
|
|
40107
|
+
elements = {
|
|
40108
|
+
headElement: null,
|
|
40109
|
+
bodyElement: null
|
|
40110
|
+
};
|
|
40111
|
+
websetup = new WebSetup({
|
|
40112
|
+
metaObject: {
|
|
40113
|
+
title: ""
|
|
40114
|
+
}
|
|
40115
|
+
});
|
|
40116
|
+
smartstate = new dist_ts_exports20.Smartstate();
|
|
40117
|
+
domToolsStatePart = this.smartstate.getStatePart("domtools", {
|
|
40118
|
+
virtualViewport: "native",
|
|
40119
|
+
jwt: null
|
|
40120
|
+
});
|
|
40121
|
+
router = new dist_ts_exports19.SmartRouter({
|
|
40122
|
+
debug: false
|
|
40123
|
+
});
|
|
40124
|
+
convenience = {
|
|
40125
|
+
typedrequest: dist_ts_exports16,
|
|
40126
|
+
smartdelay: dist_ts_exports2,
|
|
40127
|
+
smartjson: dist_ts_exports13,
|
|
40128
|
+
smarturl: dist_ts_exports21
|
|
40129
|
+
};
|
|
40130
|
+
deesComms = new dist_ts_exports17.DeesComms();
|
|
40131
|
+
scroller = new Scroller(this);
|
|
40132
|
+
themeManager = new ThemeManager(this);
|
|
40133
|
+
keyboard = null;
|
|
40134
|
+
// Initialized after DOM ready to avoid accessing document.body before it exists
|
|
40135
|
+
domToolsReady = dist_ts_exports.defer();
|
|
40136
|
+
domReady = dist_ts_exports.defer();
|
|
40137
|
+
globalStylesReady = dist_ts_exports.defer();
|
|
40138
|
+
constructor(optionsArg) {
|
|
40139
|
+
}
|
|
40140
|
+
runOnceTrackerStringMap = new lik.Stringmap();
|
|
40141
|
+
runOnceResultMap = new lik.FastMap();
|
|
40142
|
+
runOnceErrorMap = new lik.FastMap();
|
|
39933
40143
|
/**
|
|
39934
40144
|
* run a function once and always get the Promise of the first execution
|
|
39935
40145
|
* @param identifierArg the indentifier arg identifies functions. functions with the same identifier are considered equal
|
|
@@ -40011,8 +40221,8 @@ var DomTools2 = class _DomTools {
|
|
|
40011
40221
|
}
|
|
40012
40222
|
};
|
|
40013
40223
|
|
|
40014
|
-
// node_modules/.pnpm/@lit+reactive-element@2.1.
|
|
40015
|
-
var t = globalThis, e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s = Symbol(), o = /* @__PURE__ */ new WeakMap();
|
|
40224
|
+
// node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js
|
|
40225
|
+
var t = globalThis, e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s = /* @__PURE__ */ Symbol(), o = /* @__PURE__ */ new WeakMap();
|
|
40016
40226
|
var n2 = class {
|
|
40017
40227
|
constructor(t3, e4, o6) {
|
|
40018
40228
|
if (this._$cssResult$ = true, o6 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -40032,14 +40242,14 @@ var n2 = class {
|
|
|
40032
40242
|
}
|
|
40033
40243
|
};
|
|
40034
40244
|
var r = (t3) => new n2("string" == typeof t3 ? t3 : t3 + "", void 0, s), i = (t3, ...e4) => {
|
|
40035
|
-
const o6 = 1 === t3.length ? t3[0] : e4.reduce((
|
|
40245
|
+
const o6 = 1 === t3.length ? t3[0] : e4.reduce((e5, s4, o7) => e5 + ((t4) => {
|
|
40036
40246
|
if (true === t4._$cssResult$) return t4.cssText;
|
|
40037
40247
|
if ("number" == typeof t4) return t4;
|
|
40038
40248
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + t4 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
40039
|
-
})(s4) + t3[o7 + 1]
|
|
40249
|
+
})(s4) + t3[o7 + 1], t3[0]);
|
|
40040
40250
|
return new n2(o6, t3, s);
|
|
40041
40251
|
}, S2 = (s4, o6) => {
|
|
40042
|
-
if (e) s4.adoptedStyleSheets = o6.map((
|
|
40252
|
+
if (e) s4.adoptedStyleSheets = o6.map((t3) => t3 instanceof CSSStyleSheet ? t3 : t3.styleSheet);
|
|
40043
40253
|
else for (const e4 of o6) {
|
|
40044
40254
|
const o7 = document.createElement("style"), n6 = t.litNonce;
|
|
40045
40255
|
void 0 !== n6 && o7.setAttribute("nonce", n6), o7.textContent = e4.cssText, s4.appendChild(o7);
|
|
@@ -40050,7 +40260,7 @@ var r = (t3) => new n2("string" == typeof t3 ? t3 : t3 + "", void 0, s), i = (t3
|
|
|
40050
40260
|
return r(e4);
|
|
40051
40261
|
})(t3) : t3;
|
|
40052
40262
|
|
|
40053
|
-
// node_modules/.pnpm/@lit+reactive-element@2.1.
|
|
40263
|
+
// node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js
|
|
40054
40264
|
var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: h2, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n3 } = Object, a = globalThis, c2 = a.trustedTypes, l = c2 ? c2.emptyScript : "", p3 = a.reactiveElementPolyfillSupport, d2 = (t3, s4) => t3, u = { toAttribute(t3, s4) {
|
|
40055
40265
|
switch (s4) {
|
|
40056
40266
|
case Boolean:
|
|
@@ -40080,7 +40290,7 @@ var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: h2, getOwnPropertyNa
|
|
|
40080
40290
|
}
|
|
40081
40291
|
return i5;
|
|
40082
40292
|
} }, f2 = (t3, s4) => !i2(t3, s4), b2 = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f2 };
|
|
40083
|
-
Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
40293
|
+
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
40084
40294
|
var y2 = class extends HTMLElement {
|
|
40085
40295
|
static addInitializer(t3) {
|
|
40086
40296
|
this._$Ei(), (this.l ??= []).push(t3);
|
|
@@ -40090,7 +40300,7 @@ var y2 = class extends HTMLElement {
|
|
|
40090
40300
|
}
|
|
40091
40301
|
static createProperty(t3, s4 = b2) {
|
|
40092
40302
|
if (s4.state && (s4.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t3) && ((s4 = Object.create(s4)).wrapped = true), this.elementProperties.set(t3, s4), !s4.noAccessor) {
|
|
40093
|
-
const i5 = Symbol(), h4 = this.getPropertyDescriptor(t3, i5, s4);
|
|
40303
|
+
const i5 = /* @__PURE__ */ Symbol(), h4 = this.getPropertyDescriptor(t3, i5, s4);
|
|
40094
40304
|
void 0 !== h4 && e2(this.prototype, t3, h4);
|
|
40095
40305
|
}
|
|
40096
40306
|
}
|
|
@@ -40147,7 +40357,7 @@ var y2 = class extends HTMLElement {
|
|
|
40147
40357
|
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
40148
40358
|
}
|
|
40149
40359
|
_$Ev() {
|
|
40150
|
-
this._$ES = new Promise((
|
|
40360
|
+
this._$ES = new Promise((t3) => this.enableUpdating = t3), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t3) => t3(this));
|
|
40151
40361
|
}
|
|
40152
40362
|
addController(t3) {
|
|
40153
40363
|
(this._$EO ??= /* @__PURE__ */ new Set()).add(t3), void 0 !== this.renderRoot && this.isConnected && t3.hostConnected?.();
|
|
@@ -40165,12 +40375,12 @@ var y2 = class extends HTMLElement {
|
|
|
40165
40375
|
return S2(t3, this.constructor.elementStyles), t3;
|
|
40166
40376
|
}
|
|
40167
40377
|
connectedCallback() {
|
|
40168
|
-
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((
|
|
40378
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t3) => t3.hostConnected?.());
|
|
40169
40379
|
}
|
|
40170
40380
|
enableUpdating(t3) {
|
|
40171
40381
|
}
|
|
40172
40382
|
disconnectedCallback() {
|
|
40173
|
-
this._$EO?.forEach((
|
|
40383
|
+
this._$EO?.forEach((t3) => t3.hostDisconnected?.());
|
|
40174
40384
|
}
|
|
40175
40385
|
attributeChangedCallback(t3, s4, i5) {
|
|
40176
40386
|
this._$AK(t3, i5);
|
|
@@ -40186,13 +40396,15 @@ var y2 = class extends HTMLElement {
|
|
|
40186
40396
|
const i5 = this.constructor, e4 = i5._$Eh.get(t3);
|
|
40187
40397
|
if (void 0 !== e4 && this._$Em !== e4) {
|
|
40188
40398
|
const t4 = i5.getPropertyOptions(e4), h4 = "function" == typeof t4.converter ? { fromAttribute: t4.converter } : void 0 !== t4.converter?.fromAttribute ? t4.converter : u;
|
|
40189
|
-
this._$Em = e4
|
|
40399
|
+
this._$Em = e4;
|
|
40400
|
+
const r4 = h4.fromAttribute(s4, t4.type);
|
|
40401
|
+
this[e4] = r4 ?? this._$Ej?.get(e4) ?? r4, this._$Em = null;
|
|
40190
40402
|
}
|
|
40191
40403
|
}
|
|
40192
|
-
requestUpdate(t3, s4, i5) {
|
|
40404
|
+
requestUpdate(t3, s4, i5, e4 = false, h4) {
|
|
40193
40405
|
if (void 0 !== t3) {
|
|
40194
|
-
const
|
|
40195
|
-
if (i5 ??=
|
|
40406
|
+
const r4 = this.constructor;
|
|
40407
|
+
if (false === e4 && (h4 = this[t3]), i5 ??= r4.getPropertyOptions(t3), !((i5.hasChanged ?? f2)(h4, s4) || i5.useDefault && i5.reflect && h4 === this._$Ej?.get(t3) && !this.hasAttribute(r4._$Eu(t3, i5)))) return;
|
|
40196
40408
|
this.C(t3, s4, i5);
|
|
40197
40409
|
}
|
|
40198
40410
|
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
@@ -40229,7 +40441,7 @@ var y2 = class extends HTMLElement {
|
|
|
40229
40441
|
let t3 = false;
|
|
40230
40442
|
const s4 = this._$AL;
|
|
40231
40443
|
try {
|
|
40232
|
-
t3 = this.shouldUpdate(s4), t3 ? (this.willUpdate(s4), this._$EO?.forEach((
|
|
40444
|
+
t3 = this.shouldUpdate(s4), t3 ? (this.willUpdate(s4), this._$EO?.forEach((t4) => t4.hostUpdate?.()), this.update(s4)) : this._$EM();
|
|
40233
40445
|
} catch (s5) {
|
|
40234
40446
|
throw t3 = false, this._$EM(), s5;
|
|
40235
40447
|
}
|
|
@@ -40238,7 +40450,7 @@ var y2 = class extends HTMLElement {
|
|
|
40238
40450
|
willUpdate(t3) {
|
|
40239
40451
|
}
|
|
40240
40452
|
_$AE(t3) {
|
|
40241
|
-
this._$EO?.forEach((
|
|
40453
|
+
this._$EO?.forEach((t4) => t4.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t3)), this.updated(t3);
|
|
40242
40454
|
}
|
|
40243
40455
|
_$EM() {
|
|
40244
40456
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
@@ -40253,78 +40465,78 @@ var y2 = class extends HTMLElement {
|
|
|
40253
40465
|
return true;
|
|
40254
40466
|
}
|
|
40255
40467
|
update(t3) {
|
|
40256
|
-
this._$Eq &&= this._$Eq.forEach((
|
|
40468
|
+
this._$Eq &&= this._$Eq.forEach((t4) => this._$ET(t4, this[t4])), this._$EM();
|
|
40257
40469
|
}
|
|
40258
40470
|
updated(t3) {
|
|
40259
40471
|
}
|
|
40260
40472
|
firstUpdated(t3) {
|
|
40261
40473
|
}
|
|
40262
40474
|
};
|
|
40263
|
-
y2.elementStyles = [], y2.shadowRootOptions = { mode: "open" }, y2[d2("elementProperties")] = /* @__PURE__ */ new Map(), y2[d2("finalized")] = /* @__PURE__ */ new Map(), p3?.({ ReactiveElement: y2 }), (a.reactiveElementVersions ??= []).push("2.1.
|
|
40475
|
+
y2.elementStyles = [], y2.shadowRootOptions = { mode: "open" }, y2[d2("elementProperties")] = /* @__PURE__ */ new Map(), y2[d2("finalized")] = /* @__PURE__ */ new Map(), p3?.({ ReactiveElement: y2 }), (a.reactiveElementVersions ??= []).push("2.1.2");
|
|
40264
40476
|
|
|
40265
|
-
// node_modules/.pnpm/lit-html@3.3.
|
|
40266
|
-
var t2 = globalThis, i3 = t2.trustedTypes,
|
|
40267
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
40268
|
-
function
|
|
40269
|
-
if (!
|
|
40270
|
-
return void 0 !==
|
|
40477
|
+
// node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js
|
|
40478
|
+
var t2 = globalThis, i3 = (t3) => t3, s2 = t2.trustedTypes, e3 = s2 ? s2.createPolicy("lit-html", { createHTML: (t3) => t3 }) : void 0, h3 = "$lit$", o3 = `lit$${Math.random().toFixed(9).slice(2)}$`, n4 = "?" + o3, r3 = `<${n4}>`, l2 = document, c3 = () => l2.createComment(""), a2 = (t3) => null === t3 || "object" != typeof t3 && "function" != typeof t3, u2 = Array.isArray, d3 = (t3) => u2(t3) || "function" == typeof t3?.[Symbol.iterator], f3 = "[ \n\f\r]", v2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _2 = /-->/g, m2 = />/g, p4 = RegExp(`>|${f3}(?:([^\\s"'>=/]+)(${f3}*=${f3}*(?:[^
|
|
40479
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), g2 = /'/g, $ = /"/g, y3 = /^(?:script|style|textarea|title)$/i, x = (t3) => (i5, ...s4) => ({ _$litType$: t3, strings: i5, values: s4 }), b3 = x(1), w = x(2), T = x(3), E = /* @__PURE__ */ Symbol.for("lit-noChange"), A = /* @__PURE__ */ Symbol.for("lit-nothing"), C = /* @__PURE__ */ new WeakMap(), P2 = l2.createTreeWalker(l2, 129);
|
|
40480
|
+
function V(t3, i5) {
|
|
40481
|
+
if (!u2(t3) || !t3.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
40482
|
+
return void 0 !== e3 ? e3.createHTML(i5) : i5;
|
|
40271
40483
|
}
|
|
40272
|
-
var
|
|
40273
|
-
const s4 = t3.length - 1,
|
|
40274
|
-
let
|
|
40484
|
+
var N2 = (t3, i5) => {
|
|
40485
|
+
const s4 = t3.length - 1, e4 = [];
|
|
40486
|
+
let n6, l3 = 2 === i5 ? "<svg>" : 3 === i5 ? "<math>" : "", c4 = v2;
|
|
40275
40487
|
for (let i6 = 0; i6 < s4; i6++) {
|
|
40276
40488
|
const s5 = t3[i6];
|
|
40277
|
-
let a3, u3, d4 = -1,
|
|
40278
|
-
for (;
|
|
40279
|
-
const x2 = c4 ===
|
|
40280
|
-
l3 += c4 ===
|
|
40489
|
+
let a3, u3, d4 = -1, f4 = 0;
|
|
40490
|
+
for (; f4 < s5.length && (c4.lastIndex = f4, u3 = c4.exec(s5), null !== u3); ) f4 = c4.lastIndex, c4 === v2 ? "!--" === u3[1] ? c4 = _2 : void 0 !== u3[1] ? c4 = m2 : void 0 !== u3[2] ? (y3.test(u3[2]) && (n6 = RegExp("</" + u3[2], "g")), c4 = p4) : void 0 !== u3[3] && (c4 = p4) : c4 === p4 ? ">" === u3[0] ? (c4 = n6 ?? v2, d4 = -1) : void 0 === u3[1] ? d4 = -2 : (d4 = c4.lastIndex - u3[2].length, a3 = u3[1], c4 = void 0 === u3[3] ? p4 : '"' === u3[3] ? $ : g2) : c4 === $ || c4 === g2 ? c4 = p4 : c4 === _2 || c4 === m2 ? c4 = v2 : (c4 = p4, n6 = void 0);
|
|
40491
|
+
const x2 = c4 === p4 && t3[i6 + 1].startsWith("/>") ? " " : "";
|
|
40492
|
+
l3 += c4 === v2 ? s5 + r3 : d4 >= 0 ? (e4.push(a3), s5.slice(0, d4) + h3 + s5.slice(d4) + o3 + x2) : s5 + o3 + (-2 === d4 ? i6 : x2);
|
|
40281
40493
|
}
|
|
40282
|
-
return [
|
|
40494
|
+
return [V(t3, l3 + (t3[s4] || "<?>") + (2 === i5 ? "</svg>" : 3 === i5 ? "</math>" : "")), e4];
|
|
40283
40495
|
};
|
|
40284
|
-
var
|
|
40285
|
-
constructor({ strings: t3, _$litType$:
|
|
40496
|
+
var S3 = class _S {
|
|
40497
|
+
constructor({ strings: t3, _$litType$: i5 }, e4) {
|
|
40286
40498
|
let r4;
|
|
40287
40499
|
this.parts = [];
|
|
40288
|
-
let
|
|
40289
|
-
const u3 = t3.length - 1, d4 = this.parts, [f4, v3] =
|
|
40290
|
-
if (this.el =
|
|
40500
|
+
let l3 = 0, a3 = 0;
|
|
40501
|
+
const u3 = t3.length - 1, d4 = this.parts, [f4, v3] = N2(t3, i5);
|
|
40502
|
+
if (this.el = _S.createElement(f4, e4), P2.currentNode = this.el.content, 2 === i5 || 3 === i5) {
|
|
40291
40503
|
const t4 = this.el.content.firstChild;
|
|
40292
40504
|
t4.replaceWith(...t4.childNodes);
|
|
40293
40505
|
}
|
|
40294
|
-
for (; null !== (r4 =
|
|
40506
|
+
for (; null !== (r4 = P2.nextNode()) && d4.length < u3; ) {
|
|
40295
40507
|
if (1 === r4.nodeType) {
|
|
40296
|
-
if (r4.hasAttributes()) for (const t4 of r4.getAttributeNames()) if (t4.endsWith(
|
|
40297
|
-
const
|
|
40298
|
-
d4.push({ type: 1, index:
|
|
40299
|
-
} else t4.startsWith(
|
|
40300
|
-
if (
|
|
40301
|
-
const t4 = r4.textContent.split(
|
|
40302
|
-
if (
|
|
40303
|
-
r4.textContent =
|
|
40304
|
-
for (let
|
|
40305
|
-
r4.append(t4[
|
|
40508
|
+
if (r4.hasAttributes()) for (const t4 of r4.getAttributeNames()) if (t4.endsWith(h3)) {
|
|
40509
|
+
const i6 = v3[a3++], s4 = r4.getAttribute(t4).split(o3), e5 = /([.?@])?(.*)/.exec(i6);
|
|
40510
|
+
d4.push({ type: 1, index: l3, name: e5[2], strings: s4, ctor: "." === e5[1] ? I : "?" === e5[1] ? L : "@" === e5[1] ? z : H2 }), r4.removeAttribute(t4);
|
|
40511
|
+
} else t4.startsWith(o3) && (d4.push({ type: 6, index: l3 }), r4.removeAttribute(t4));
|
|
40512
|
+
if (y3.test(r4.tagName)) {
|
|
40513
|
+
const t4 = r4.textContent.split(o3), i6 = t4.length - 1;
|
|
40514
|
+
if (i6 > 0) {
|
|
40515
|
+
r4.textContent = s2 ? s2.emptyScript : "";
|
|
40516
|
+
for (let s4 = 0; s4 < i6; s4++) r4.append(t4[s4], c3()), P2.nextNode(), d4.push({ type: 2, index: ++l3 });
|
|
40517
|
+
r4.append(t4[i6], c3());
|
|
40306
40518
|
}
|
|
40307
40519
|
}
|
|
40308
|
-
} else if (8 === r4.nodeType) if (r4.data ===
|
|
40520
|
+
} else if (8 === r4.nodeType) if (r4.data === n4) d4.push({ type: 2, index: l3 });
|
|
40309
40521
|
else {
|
|
40310
40522
|
let t4 = -1;
|
|
40311
|
-
for (; -1 !== (t4 = r4.data.indexOf(
|
|
40523
|
+
for (; -1 !== (t4 = r4.data.indexOf(o3, t4 + 1)); ) d4.push({ type: 7, index: l3 }), t4 += o3.length - 1;
|
|
40312
40524
|
}
|
|
40313
|
-
|
|
40525
|
+
l3++;
|
|
40314
40526
|
}
|
|
40315
40527
|
}
|
|
40316
40528
|
static createElement(t3, i5) {
|
|
40317
|
-
const s4 =
|
|
40529
|
+
const s4 = l2.createElement("template");
|
|
40318
40530
|
return s4.innerHTML = t3, s4;
|
|
40319
40531
|
}
|
|
40320
40532
|
};
|
|
40321
|
-
function
|
|
40322
|
-
if (i5 ===
|
|
40533
|
+
function M(t3, i5, s4 = t3, e4) {
|
|
40534
|
+
if (i5 === E) return i5;
|
|
40323
40535
|
let h4 = void 0 !== e4 ? s4._$Co?.[e4] : s4._$Cl;
|
|
40324
|
-
const o6 =
|
|
40325
|
-
return h4?.constructor !== o6 && (h4?._$AO?.(false), void 0 === o6 ? h4 = void 0 : (h4 = new o6(t3), h4._$AT(t3, s4, e4)), void 0 !== e4 ? (s4._$Co ??= [])[e4] = h4 : s4._$Cl = h4), void 0 !== h4 && (i5 =
|
|
40536
|
+
const o6 = a2(i5) ? void 0 : i5._$litDirective$;
|
|
40537
|
+
return h4?.constructor !== o6 && (h4?._$AO?.(false), void 0 === o6 ? h4 = void 0 : (h4 = new o6(t3), h4._$AT(t3, s4, e4)), void 0 !== e4 ? (s4._$Co ??= [])[e4] = h4 : s4._$Cl = h4), void 0 !== h4 && (i5 = M(t3, h4._$AS(t3, i5.values), h4, e4)), i5;
|
|
40326
40538
|
}
|
|
40327
|
-
var
|
|
40539
|
+
var R2 = class {
|
|
40328
40540
|
constructor(t3, i5) {
|
|
40329
40541
|
this._$AV = [], this._$AN = void 0, this._$AD = t3, this._$AM = i5;
|
|
40330
40542
|
}
|
|
@@ -40335,29 +40547,29 @@ var M = class {
|
|
|
40335
40547
|
return this._$AM._$AU;
|
|
40336
40548
|
}
|
|
40337
40549
|
u(t3) {
|
|
40338
|
-
const { el: { content: i5 }, parts: s4 } = this._$AD, e4 = (t3?.creationScope ??
|
|
40339
|
-
|
|
40340
|
-
let h4 =
|
|
40341
|
-
for (; void 0 !==
|
|
40342
|
-
if (o6 ===
|
|
40550
|
+
const { el: { content: i5 }, parts: s4 } = this._$AD, e4 = (t3?.creationScope ?? l2).importNode(i5, true);
|
|
40551
|
+
P2.currentNode = e4;
|
|
40552
|
+
let h4 = P2.nextNode(), o6 = 0, n6 = 0, r4 = s4[0];
|
|
40553
|
+
for (; void 0 !== r4; ) {
|
|
40554
|
+
if (o6 === r4.index) {
|
|
40343
40555
|
let i6;
|
|
40344
|
-
2 ===
|
|
40556
|
+
2 === r4.type ? i6 = new k2(h4, h4.nextSibling, this, t3) : 1 === r4.type ? i6 = new r4.ctor(h4, r4.name, r4.strings, this, t3) : 6 === r4.type && (i6 = new Z(h4, this, t3)), this._$AV.push(i6), r4 = s4[++n6];
|
|
40345
40557
|
}
|
|
40346
|
-
o6 !==
|
|
40558
|
+
o6 !== r4?.index && (h4 = P2.nextNode(), o6++);
|
|
40347
40559
|
}
|
|
40348
|
-
return
|
|
40560
|
+
return P2.currentNode = l2, e4;
|
|
40349
40561
|
}
|
|
40350
40562
|
p(t3) {
|
|
40351
40563
|
let i5 = 0;
|
|
40352
40564
|
for (const s4 of this._$AV) void 0 !== s4 && (void 0 !== s4.strings ? (s4._$AI(t3, s4, i5), i5 += s4.strings.length - 2) : s4._$AI(t3[i5])), i5++;
|
|
40353
40565
|
}
|
|
40354
40566
|
};
|
|
40355
|
-
var
|
|
40567
|
+
var k2 = class _k {
|
|
40356
40568
|
get _$AU() {
|
|
40357
40569
|
return this._$AM?._$AU ?? this._$Cv;
|
|
40358
40570
|
}
|
|
40359
40571
|
constructor(t3, i5, s4, e4) {
|
|
40360
|
-
this.type = 2, this._$AH =
|
|
40572
|
+
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t3, this._$AB = i5, this._$AM = s4, this.options = e4, this._$Cv = e4?.isConnected ?? true;
|
|
40361
40573
|
}
|
|
40362
40574
|
get parentNode() {
|
|
40363
40575
|
let t3 = this._$AA.parentNode;
|
|
@@ -40371,7 +40583,7 @@ var R2 = class _R {
|
|
|
40371
40583
|
return this._$AB;
|
|
40372
40584
|
}
|
|
40373
40585
|
_$AI(t3, i5 = this) {
|
|
40374
|
-
t3 =
|
|
40586
|
+
t3 = M(this, t3, i5), a2(t3) ? t3 === A || null == t3 || "" === t3 ? (this._$AH !== A && this._$AR(), this._$AH = A) : t3 !== this._$AH && t3 !== E && this._(t3) : void 0 !== t3._$litType$ ? this.$(t3) : void 0 !== t3.nodeType ? this.T(t3) : d3(t3) ? this.k(t3) : this._(t3);
|
|
40375
40587
|
}
|
|
40376
40588
|
O(t3) {
|
|
40377
40589
|
return this._$AA.parentNode.insertBefore(t3, this._$AB);
|
|
@@ -40380,38 +40592,38 @@ var R2 = class _R {
|
|
|
40380
40592
|
this._$AH !== t3 && (this._$AR(), this._$AH = this.O(t3));
|
|
40381
40593
|
}
|
|
40382
40594
|
_(t3) {
|
|
40383
|
-
this._$AH !==
|
|
40595
|
+
this._$AH !== A && a2(this._$AH) ? this._$AA.nextSibling.data = t3 : this.T(l2.createTextNode(t3)), this._$AH = t3;
|
|
40384
40596
|
}
|
|
40385
40597
|
$(t3) {
|
|
40386
|
-
const { values: i5, _$litType$: s4 } = t3, e4 = "number" == typeof s4 ? this._$AC(t3) : (void 0 === s4.el && (s4.el =
|
|
40598
|
+
const { values: i5, _$litType$: s4 } = t3, e4 = "number" == typeof s4 ? this._$AC(t3) : (void 0 === s4.el && (s4.el = S3.createElement(V(s4.h, s4.h[0]), this.options)), s4);
|
|
40387
40599
|
if (this._$AH?._$AD === e4) this._$AH.p(i5);
|
|
40388
40600
|
else {
|
|
40389
|
-
const t4 = new
|
|
40601
|
+
const t4 = new R2(e4, this), s5 = t4.u(this.options);
|
|
40390
40602
|
t4.p(i5), this.T(s5), this._$AH = t4;
|
|
40391
40603
|
}
|
|
40392
40604
|
}
|
|
40393
40605
|
_$AC(t3) {
|
|
40394
|
-
let i5 =
|
|
40395
|
-
return void 0 === i5 &&
|
|
40606
|
+
let i5 = C.get(t3.strings);
|
|
40607
|
+
return void 0 === i5 && C.set(t3.strings, i5 = new S3(t3)), i5;
|
|
40396
40608
|
}
|
|
40397
40609
|
k(t3) {
|
|
40398
|
-
|
|
40610
|
+
u2(this._$AH) || (this._$AH = [], this._$AR());
|
|
40399
40611
|
const i5 = this._$AH;
|
|
40400
40612
|
let s4, e4 = 0;
|
|
40401
|
-
for (const h4 of t3) e4 === i5.length ? i5.push(s4 = new
|
|
40613
|
+
for (const h4 of t3) e4 === i5.length ? i5.push(s4 = new _k(this.O(c3()), this.O(c3()), this, this.options)) : s4 = i5[e4], s4._$AI(h4), e4++;
|
|
40402
40614
|
e4 < i5.length && (this._$AR(s4 && s4._$AB.nextSibling, e4), i5.length = e4);
|
|
40403
40615
|
}
|
|
40404
|
-
_$AR(t3 = this._$AA.nextSibling,
|
|
40405
|
-
for (this._$AP?.(false, true,
|
|
40406
|
-
const
|
|
40407
|
-
t3.remove(), t3 =
|
|
40616
|
+
_$AR(t3 = this._$AA.nextSibling, s4) {
|
|
40617
|
+
for (this._$AP?.(false, true, s4); t3 !== this._$AB; ) {
|
|
40618
|
+
const s5 = i3(t3).nextSibling;
|
|
40619
|
+
i3(t3).remove(), t3 = s5;
|
|
40408
40620
|
}
|
|
40409
40621
|
}
|
|
40410
40622
|
setConnected(t3) {
|
|
40411
40623
|
void 0 === this._$AM && (this._$Cv = t3, this._$AP?.(t3));
|
|
40412
40624
|
}
|
|
40413
40625
|
};
|
|
40414
|
-
var
|
|
40626
|
+
var H2 = class {
|
|
40415
40627
|
get tagName() {
|
|
40416
40628
|
return this.element.tagName;
|
|
40417
40629
|
}
|
|
@@ -40419,53 +40631,53 @@ var k2 = class {
|
|
|
40419
40631
|
return this._$AM._$AU;
|
|
40420
40632
|
}
|
|
40421
40633
|
constructor(t3, i5, s4, e4, h4) {
|
|
40422
|
-
this.type = 1, this._$AH =
|
|
40634
|
+
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t3, this.name = i5, this._$AM = e4, this.options = h4, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = A;
|
|
40423
40635
|
}
|
|
40424
40636
|
_$AI(t3, i5 = this, s4, e4) {
|
|
40425
40637
|
const h4 = this.strings;
|
|
40426
40638
|
let o6 = false;
|
|
40427
|
-
if (void 0 === h4) t3 =
|
|
40639
|
+
if (void 0 === h4) t3 = M(this, t3, i5, 0), o6 = !a2(t3) || t3 !== this._$AH && t3 !== E, o6 && (this._$AH = t3);
|
|
40428
40640
|
else {
|
|
40429
40641
|
const e5 = t3;
|
|
40430
40642
|
let n6, r4;
|
|
40431
|
-
for (t3 = h4[0], n6 = 0; n6 < h4.length - 1; n6++) r4 =
|
|
40643
|
+
for (t3 = h4[0], n6 = 0; n6 < h4.length - 1; n6++) r4 = M(this, e5[s4 + n6], i5, n6), r4 === E && (r4 = this._$AH[n6]), o6 ||= !a2(r4) || r4 !== this._$AH[n6], r4 === A ? t3 = A : t3 !== A && (t3 += (r4 ?? "") + h4[n6 + 1]), this._$AH[n6] = r4;
|
|
40432
40644
|
}
|
|
40433
40645
|
o6 && !e4 && this.j(t3);
|
|
40434
40646
|
}
|
|
40435
40647
|
j(t3) {
|
|
40436
|
-
t3 ===
|
|
40648
|
+
t3 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t3 ?? "");
|
|
40437
40649
|
}
|
|
40438
40650
|
};
|
|
40439
|
-
var
|
|
40651
|
+
var I = class extends H2 {
|
|
40440
40652
|
constructor() {
|
|
40441
40653
|
super(...arguments), this.type = 3;
|
|
40442
40654
|
}
|
|
40443
40655
|
j(t3) {
|
|
40444
|
-
this.element[this.name] = t3 ===
|
|
40656
|
+
this.element[this.name] = t3 === A ? void 0 : t3;
|
|
40445
40657
|
}
|
|
40446
40658
|
};
|
|
40447
|
-
var
|
|
40659
|
+
var L = class extends H2 {
|
|
40448
40660
|
constructor() {
|
|
40449
40661
|
super(...arguments), this.type = 4;
|
|
40450
40662
|
}
|
|
40451
40663
|
j(t3) {
|
|
40452
|
-
this.element.toggleAttribute(this.name, !!t3 && t3 !==
|
|
40664
|
+
this.element.toggleAttribute(this.name, !!t3 && t3 !== A);
|
|
40453
40665
|
}
|
|
40454
40666
|
};
|
|
40455
|
-
var
|
|
40667
|
+
var z = class extends H2 {
|
|
40456
40668
|
constructor(t3, i5, s4, e4, h4) {
|
|
40457
40669
|
super(t3, i5, s4, e4, h4), this.type = 5;
|
|
40458
40670
|
}
|
|
40459
40671
|
_$AI(t3, i5 = this) {
|
|
40460
|
-
if ((t3 =
|
|
40461
|
-
const s4 = this._$AH, e4 = t3 ===
|
|
40672
|
+
if ((t3 = M(this, t3, i5, 0) ?? A) === E) return;
|
|
40673
|
+
const s4 = this._$AH, e4 = t3 === A && s4 !== A || t3.capture !== s4.capture || t3.once !== s4.once || t3.passive !== s4.passive, h4 = t3 !== A && (s4 === A || e4);
|
|
40462
40674
|
e4 && this.element.removeEventListener(this.name, this, s4), h4 && this.element.addEventListener(this.name, this, t3), this._$AH = t3;
|
|
40463
40675
|
}
|
|
40464
40676
|
handleEvent(t3) {
|
|
40465
40677
|
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t3) : this._$AH.handleEvent(t3);
|
|
40466
40678
|
}
|
|
40467
40679
|
};
|
|
40468
|
-
var
|
|
40680
|
+
var Z = class {
|
|
40469
40681
|
constructor(t3, i5, s4) {
|
|
40470
40682
|
this.element = t3, this.type = 6, this._$AN = void 0, this._$AM = i5, this.options = s4;
|
|
40471
40683
|
}
|
|
@@ -40473,22 +40685,22 @@ var z = class {
|
|
|
40473
40685
|
return this._$AM._$AU;
|
|
40474
40686
|
}
|
|
40475
40687
|
_$AI(t3) {
|
|
40476
|
-
|
|
40688
|
+
M(this, t3);
|
|
40477
40689
|
}
|
|
40478
40690
|
};
|
|
40479
|
-
var
|
|
40480
|
-
|
|
40481
|
-
var
|
|
40691
|
+
var j = { M: h3, P: o3, A: n4, C: 1, L: N2, R: R2, D: d3, V: M, I: k2, H: H2, N: L, U: z, B: I, F: Z }, B = t2.litHtmlPolyfillSupport;
|
|
40692
|
+
B?.(S3, k2), (t2.litHtmlVersions ??= []).push("3.3.2");
|
|
40693
|
+
var D2 = (t3, i5, s4) => {
|
|
40482
40694
|
const e4 = s4?.renderBefore ?? i5;
|
|
40483
40695
|
let h4 = e4._$litPart$;
|
|
40484
40696
|
if (void 0 === h4) {
|
|
40485
40697
|
const t4 = s4?.renderBefore ?? null;
|
|
40486
|
-
e4._$litPart$ = h4 = new
|
|
40698
|
+
e4._$litPart$ = h4 = new k2(i5.insertBefore(c3(), t4), t4, void 0, s4 ?? {});
|
|
40487
40699
|
}
|
|
40488
40700
|
return h4._$AI(t3), h4;
|
|
40489
40701
|
};
|
|
40490
40702
|
|
|
40491
|
-
// node_modules/.pnpm/lit-element@4.2.
|
|
40703
|
+
// node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js
|
|
40492
40704
|
var s3 = globalThis;
|
|
40493
40705
|
var i4 = class extends y2 {
|
|
40494
40706
|
constructor() {
|
|
@@ -40500,7 +40712,7 @@ var i4 = class extends y2 {
|
|
|
40500
40712
|
}
|
|
40501
40713
|
update(t3) {
|
|
40502
40714
|
const r4 = this.render();
|
|
40503
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t3), this._$Do =
|
|
40715
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t3), this._$Do = D2(r4, this.renderRoot, this.renderOptions);
|
|
40504
40716
|
}
|
|
40505
40717
|
connectedCallback() {
|
|
40506
40718
|
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
@@ -40509,7 +40721,7 @@ var i4 = class extends y2 {
|
|
|
40509
40721
|
super.disconnectedCallback(), this._$Do?.setConnected(false);
|
|
40510
40722
|
}
|
|
40511
40723
|
render() {
|
|
40512
|
-
return
|
|
40724
|
+
return E;
|
|
40513
40725
|
}
|
|
40514
40726
|
};
|
|
40515
40727
|
i4._$litElement$ = true, i4["finalized"] = true, s3.litElementHydrateSupport?.({ LitElement: i4 });
|
|
@@ -40518,9 +40730,9 @@ o4?.({ LitElement: i4 });
|
|
|
40518
40730
|
var n5 = { _$AK: (t3, e4, r4) => {
|
|
40519
40731
|
t3._$AK(e4, r4);
|
|
40520
40732
|
}, _$AL: (t3) => t3._$AL };
|
|
40521
|
-
(s3.litElementVersions ??= []).push("4.2.
|
|
40733
|
+
(s3.litElementVersions ??= []).push("4.2.2");
|
|
40522
40734
|
|
|
40523
|
-
// node_modules/.pnpm/lit-html@3.3.
|
|
40735
|
+
// node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/is-server.js
|
|
40524
40736
|
var o5 = false;
|
|
40525
40737
|
|
|
40526
40738
|
// ts/domtools.css.basestyles.ts
|
|
@@ -40572,7 +40784,7 @@ var staticStyles = i`
|
|
|
40572
40784
|
|
|
40573
40785
|
${r(scrollBarStyles)}
|
|
40574
40786
|
`;
|
|
40575
|
-
var styles =
|
|
40787
|
+
var styles = b3`
|
|
40576
40788
|
<style>
|
|
40577
40789
|
* {
|
|
40578
40790
|
transition: background 0.1s, color 0.1s;
|