@famibee/skynovel 2.0.2 → 2.0.4
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/Button.js +36 -34
- package/dist/Button.js.map +1 -1
- package/dist/CallStack.js +11 -6
- package/dist/CallStack.js.map +1 -1
- package/dist/CmnInterface.js +13 -11
- package/dist/CmnInterface.js.map +1 -1
- package/dist/CmnLib.js +58 -56
- package/dist/CmnLib.js.map +1 -1
- package/dist/Config.js +9 -7
- package/dist/Config.js.map +1 -1
- package/dist/ConfigBase.js +52 -49
- package/dist/ConfigBase.js.map +1 -1
- package/dist/DebugMng.js +9 -6
- package/dist/DebugMng.js.map +1 -1
- package/dist/EventListenerCtn.js +6 -4
- package/dist/EventListenerCtn.js.map +1 -1
- package/dist/EventMng.js +522 -417
- package/dist/EventMng.js.map +1 -1
- package/dist/Grammar.js +22 -20
- package/dist/Grammar.js.map +1 -1
- package/dist/GrpLayer.js +58 -57
- package/dist/GrpLayer.js.map +1 -1
- package/dist/Layer.js +66 -64
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMng.js +461 -441
- package/dist/LayerMng.js.map +1 -1
- package/dist/Main.js +69 -67
- package/dist/Main.js.map +1 -1
- package/dist/PropParser.js +23 -19
- package/dist/PropParser.js.map +1 -1
- package/dist/Reading.js +422 -418
- package/dist/Reading.js.map +1 -1
- package/dist/RubySpliter.js +4 -2
- package/dist/RubySpliter.js.map +1 -1
- package/dist/ScriptIterator.js +374 -370
- package/dist/ScriptIterator.js.map +1 -1
- package/dist/SndBuf.js +643 -622
- package/dist/SndBuf.js.map +1 -1
- package/dist/SoundMng.js +59 -60
- package/dist/SoundMng.js.map +1 -1
- package/dist/SpritesMng.js +135 -129
- package/dist/SpritesMng.js.map +1 -1
- package/dist/SysBase.js +1019 -955
- package/dist/SysBase.js.map +1 -1
- package/dist/TxtLayer.js +558 -551
- package/dist/TxtLayer.js.map +1 -1
- package/dist/Variable.js +47 -45
- package/dist/Variable.js.map +1 -1
- package/dist/chunk.js +11 -9
- package/dist/gamepad.js +396 -660
- package/dist/gamepad.js.map +1 -1
- package/dist/pixi.js +3044 -3648
- package/dist/pixi.js.map +1 -1
- package/dist/platform.js +6 -4
- package/dist/platform.js.map +1 -1
- package/dist/rolldown-runtime.js +20 -0
- package/dist/web.js +106 -590
- package/dist/web.js.map +1 -1
- package/dist_app/Button.js +36 -34
- package/dist_app/Button.js.map +1 -1
- package/dist_app/CallStack.js +11 -6
- package/dist_app/CallStack.js.map +1 -1
- package/dist_app/CmnInterface.js +13 -11
- package/dist_app/CmnInterface.js.map +1 -1
- package/dist_app/CmnLib.js +58 -56
- package/dist_app/CmnLib.js.map +1 -1
- package/dist_app/Config.js +9 -7
- package/dist_app/Config.js.map +1 -1
- package/dist_app/ConfigBase.js +52 -49
- package/dist_app/ConfigBase.js.map +1 -1
- package/dist_app/DebugMng.js +9 -6
- package/dist_app/DebugMng.js.map +1 -1
- package/dist_app/EventListenerCtn.js +6 -4
- package/dist_app/EventListenerCtn.js.map +1 -1
- package/dist_app/EventMng.js +522 -417
- package/dist_app/EventMng.js.map +1 -1
- package/dist_app/Grammar.js +22 -20
- package/dist_app/Grammar.js.map +1 -1
- package/dist_app/GrpLayer.js +58 -57
- package/dist_app/GrpLayer.js.map +1 -1
- package/dist_app/Layer.js +66 -64
- package/dist_app/Layer.js.map +1 -1
- package/dist_app/LayerMng.js +461 -441
- package/dist_app/LayerMng.js.map +1 -1
- package/dist_app/Main.js +69 -67
- package/dist_app/Main.js.map +1 -1
- package/dist_app/PropParser.js +23 -19
- package/dist_app/PropParser.js.map +1 -1
- package/dist_app/Reading.js +422 -418
- package/dist_app/Reading.js.map +1 -1
- package/dist_app/RubySpliter.js +4 -2
- package/dist_app/RubySpliter.js.map +1 -1
- package/dist_app/ScriptIterator.js +374 -370
- package/dist_app/ScriptIterator.js.map +1 -1
- package/dist_app/SndBuf.js +643 -622
- package/dist_app/SndBuf.js.map +1 -1
- package/dist_app/SoundMng.js +59 -60
- package/dist_app/SoundMng.js.map +1 -1
- package/dist_app/SpritesMng.js +135 -129
- package/dist_app/SpritesMng.js.map +1 -1
- package/dist_app/SysBase.js +1019 -955
- package/dist_app/SysBase.js.map +1 -1
- package/dist_app/TxtLayer.js +558 -551
- package/dist_app/TxtLayer.js.map +1 -1
- package/dist_app/Variable.js +47 -45
- package/dist_app/Variable.js.map +1 -1
- package/dist_app/app.js +62 -63
- package/dist_app/app.js.map +1 -1
- package/dist_app/appMain.js +1 -21
- package/dist_app/appMain.js.map +1 -1
- package/dist_app/chunk.js +11 -9
- package/dist_app/gamepad.js +396 -660
- package/dist_app/gamepad.js.map +1 -1
- package/dist_app/pixi.js +2028 -1990
- package/dist_app/pixi.js.map +1 -1
- package/dist_app/platform.js +6 -4
- package/dist_app/platform.js.map +1 -1
- package/dist_app/preload.js +1 -1
- package/dist_app/preload.js.map +1 -1
- package/dist_app/rolldown-runtime.js +20 -0
- package/package.json +20 -47
package/dist/EventMng.js
CHANGED
|
@@ -1,50 +1,46 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import {
|
|
8
|
-
import "./
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import "./SpritesMng.js";
|
|
12
|
-
import { Button } from "./Button.js";
|
|
13
|
-
import { TxtLayer } from "./TxtLayer.js";
|
|
14
|
-
var FocusMng = class {
|
|
1
|
+
import { i as e, m as t, n, o as r, r as i, s as a, t as o } from "./CmnLib.js";
|
|
2
|
+
import { _ as s, m as c } from "./pixi.js";
|
|
3
|
+
import { t as l } from "./EventListenerCtn.js";
|
|
4
|
+
import { n as u } from "./ConfigBase.js";
|
|
5
|
+
import { t as d } from "./SysBase.js";
|
|
6
|
+
import { n as f, t as p } from "./Reading.js";
|
|
7
|
+
import { Button as m } from "./Button.js";
|
|
8
|
+
import { TxtLayer as h } from "./TxtLayer.js";
|
|
9
|
+
//#region src/sn/FocusMng.ts
|
|
10
|
+
var g = class {
|
|
15
11
|
#e = [];
|
|
16
12
|
#t = -1;
|
|
17
|
-
#n = new
|
|
13
|
+
#n = new l();
|
|
18
14
|
constructor(e, t) {
|
|
19
15
|
this.#a = t.isApp ? () => e.focus() : () => globalThis.focus();
|
|
20
16
|
}
|
|
21
17
|
destroy() {
|
|
22
18
|
this.#e = [], this.#t = -1, this.#n.clear();
|
|
23
19
|
}
|
|
24
|
-
add(
|
|
25
|
-
if (this.#e.findIndex((
|
|
26
|
-
if (
|
|
27
|
-
|
|
28
|
-
for (let
|
|
29
|
-
this.#t =
|
|
20
|
+
add(t, n, r) {
|
|
21
|
+
if (this.#e.findIndex((e) => e.btn === t) >= 0) return;
|
|
22
|
+
if (t instanceof c) {
|
|
23
|
+
t.on("pointerdown", () => {
|
|
24
|
+
for (let e = this.#e.length - 1; e >= 0; --e) if (this.#e[e].btn === t) {
|
|
25
|
+
this.#t = e;
|
|
30
26
|
return;
|
|
31
27
|
}
|
|
32
28
|
this.#t = -1;
|
|
33
29
|
}), this.#e.push({
|
|
34
|
-
btn:
|
|
30
|
+
btn: t,
|
|
35
31
|
on: n,
|
|
36
32
|
off: r
|
|
37
33
|
});
|
|
38
34
|
return;
|
|
39
35
|
}
|
|
40
|
-
this.#n.add(
|
|
41
|
-
for (let
|
|
42
|
-
this.#t =
|
|
36
|
+
this.#n.add(t, "focus", () => {
|
|
37
|
+
for (let e = this.#e.length - 1; e >= 0; --e) if (this.#e[e].btn === t) {
|
|
38
|
+
this.#t = e;
|
|
43
39
|
return;
|
|
44
40
|
}
|
|
45
41
|
this.#t = -1;
|
|
46
42
|
});
|
|
47
|
-
let i = (e) => {}, a =
|
|
43
|
+
let i = (e) => {}, a = t.localName === "button" || t.localName === "a" ? (e) => !e.isTrusted && e.key === "Enter" : (e) => e.key === "Enter", o = t;
|
|
48
44
|
switch (o.type ?? "") {
|
|
49
45
|
case "checkbox":
|
|
50
46
|
i = () => {
|
|
@@ -52,7 +48,7 @@ var FocusMng = class {
|
|
|
52
48
|
};
|
|
53
49
|
break;
|
|
54
50
|
case "":
|
|
55
|
-
|
|
51
|
+
t.querySelectorAll("input[type]").length > 0 && (i = (e) => this.#r(t, e.key), a = () => !1);
|
|
56
52
|
break;
|
|
57
53
|
case "range":
|
|
58
54
|
i = (e) => {
|
|
@@ -68,16 +64,16 @@ var FocusMng = class {
|
|
|
68
64
|
};
|
|
69
65
|
break;
|
|
70
66
|
}
|
|
71
|
-
this.#n.add(
|
|
72
|
-
if (!(
|
|
73
|
-
if (
|
|
74
|
-
|
|
67
|
+
this.#n.add(t, e, (e) => {
|
|
68
|
+
if (!(e.key !== "ArrowUp" && e.key !== "ArrowDown" && e.key !== "Enter")) {
|
|
69
|
+
if (e.stopImmediatePropagation(), a(e)) {
|
|
70
|
+
t.dispatchEvent(new MouseEvent("click"));
|
|
75
71
|
return;
|
|
76
72
|
}
|
|
77
|
-
i(
|
|
73
|
+
i(e);
|
|
78
74
|
}
|
|
79
|
-
}, { passive: !0 }),
|
|
80
|
-
btn:
|
|
75
|
+
}, { passive: !0 }), t.hasAttribute("tabindex") || (t.tabIndex = 0), this.#e.push({
|
|
76
|
+
btn: t,
|
|
81
77
|
on: n,
|
|
82
78
|
off: r
|
|
83
79
|
});
|
|
@@ -126,7 +122,7 @@ var FocusMng = class {
|
|
|
126
122
|
this.#t = -1;
|
|
127
123
|
}
|
|
128
124
|
}
|
|
129
|
-
#i =
|
|
125
|
+
#i = o.debugLog ? (e) => console.log(`👾 <FocusMng idx:${String(e)} btn:%o`, this.#e[e].btn) : () => {};
|
|
130
126
|
getFocus() {
|
|
131
127
|
if (this.#t < 0) return null;
|
|
132
128
|
this.#o(), this.#t >= this.#e.length && (this.#t = 0);
|
|
@@ -140,23 +136,23 @@ var FocusMng = class {
|
|
|
140
136
|
#o() {
|
|
141
137
|
for (let e = this.#e.length - 1; e >= 0; --e) {
|
|
142
138
|
let t = this.#e[e];
|
|
143
|
-
!(t.btn instanceof
|
|
139
|
+
!(t.btn instanceof c) || t.btn.parent ? t.off() : this.#e.splice(e, 1);
|
|
144
140
|
}
|
|
145
141
|
}
|
|
146
|
-
},
|
|
142
|
+
}, _ = "bottom", v = "right", y = "left", b = "auto", x = [
|
|
147
143
|
"top",
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
],
|
|
152
|
-
return e.concat([t + "-" +
|
|
153
|
-
}, []),
|
|
144
|
+
_,
|
|
145
|
+
v,
|
|
146
|
+
y
|
|
147
|
+
], S = "start", C = "clippingParents", w = "viewport", T = "popper", E = "reference", D = /*#__PURE__*/ x.reduce(function(e, t) {
|
|
148
|
+
return e.concat([t + "-" + S, t + "-end"]);
|
|
149
|
+
}, []), O = /*#__PURE__*/ [].concat(x, [b]).reduce(function(e, t) {
|
|
154
150
|
return e.concat([
|
|
155
151
|
t,
|
|
156
|
-
t + "-" +
|
|
152
|
+
t + "-" + S,
|
|
157
153
|
t + "-end"
|
|
158
154
|
]);
|
|
159
|
-
}, []),
|
|
155
|
+
}, []), k = [
|
|
160
156
|
"beforeRead",
|
|
161
157
|
"read",
|
|
162
158
|
"afterRead",
|
|
@@ -167,10 +163,14 @@ var FocusMng = class {
|
|
|
167
163
|
"write",
|
|
168
164
|
"afterWrite"
|
|
169
165
|
];
|
|
170
|
-
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getNodeName.js
|
|
168
|
+
function A(e) {
|
|
171
169
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
172
170
|
}
|
|
173
|
-
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getWindow.js
|
|
173
|
+
function j(e) {
|
|
174
174
|
if (e == null) return window;
|
|
175
175
|
if (e.toString() !== "[object Window]") {
|
|
176
176
|
var t = e.ownerDocument;
|
|
@@ -178,26 +178,30 @@ function getWindow(e) {
|
|
|
178
178
|
}
|
|
179
179
|
return e;
|
|
180
180
|
}
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/instanceOf.js
|
|
183
|
+
function M(e) {
|
|
184
|
+
return e instanceof j(e).Element || e instanceof Element;
|
|
183
185
|
}
|
|
184
|
-
function
|
|
185
|
-
return e instanceof
|
|
186
|
+
function N(e) {
|
|
187
|
+
return e instanceof j(e).HTMLElement || e instanceof HTMLElement;
|
|
186
188
|
}
|
|
187
|
-
function
|
|
188
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof
|
|
189
|
+
function P(e) {
|
|
190
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof j(e).ShadowRoot || e instanceof ShadowRoot;
|
|
189
191
|
}
|
|
190
|
-
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region node_modules/@popperjs/core/lib/modifiers/applyStyles.js
|
|
194
|
+
function F(e) {
|
|
191
195
|
var t = e.state;
|
|
192
196
|
Object.keys(t.elements).forEach(function(e) {
|
|
193
197
|
var n = t.styles[e] || {}, r = t.attributes[e] || {}, i = t.elements[e];
|
|
194
|
-
!
|
|
198
|
+
!N(i) || !A(i) || (Object.assign(i.style, n), Object.keys(r).forEach(function(e) {
|
|
195
199
|
var t = r[e];
|
|
196
200
|
t === !1 ? i.removeAttribute(e) : i.setAttribute(e, t === !0 ? "" : t);
|
|
197
201
|
}));
|
|
198
202
|
});
|
|
199
203
|
}
|
|
200
|
-
function
|
|
204
|
+
function I(e) {
|
|
201
205
|
var t = e.state, n = {
|
|
202
206
|
popper: {
|
|
203
207
|
position: t.options.strategy,
|
|
@@ -213,38 +217,48 @@ function effect$2(e) {
|
|
|
213
217
|
var r = t.elements[e], i = t.attributes[e] || {}, a = Object.keys(t.styles.hasOwnProperty(e) ? t.styles[e] : n[e]).reduce(function(e, t) {
|
|
214
218
|
return e[t] = "", e;
|
|
215
219
|
}, {});
|
|
216
|
-
!
|
|
220
|
+
!N(r) || !A(r) || (Object.assign(r.style, a), Object.keys(i).forEach(function(e) {
|
|
217
221
|
r.removeAttribute(e);
|
|
218
222
|
}));
|
|
219
223
|
});
|
|
220
224
|
};
|
|
221
225
|
}
|
|
222
|
-
var
|
|
226
|
+
var ee = {
|
|
223
227
|
name: "applyStyles",
|
|
224
228
|
enabled: !0,
|
|
225
229
|
phase: "write",
|
|
226
|
-
fn:
|
|
227
|
-
effect:
|
|
230
|
+
fn: F,
|
|
231
|
+
effect: I,
|
|
228
232
|
requires: ["computeStyles"]
|
|
229
233
|
};
|
|
230
|
-
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region node_modules/@popperjs/core/lib/utils/getBasePlacement.js
|
|
236
|
+
function L(e) {
|
|
231
237
|
return e.split("-")[0];
|
|
232
238
|
}
|
|
233
|
-
|
|
234
|
-
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region node_modules/@popperjs/core/lib/utils/math.js
|
|
241
|
+
var R = Math.max, te = Math.min, z = Math.round;
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region node_modules/@popperjs/core/lib/utils/userAgent.js
|
|
244
|
+
function B() {
|
|
235
245
|
var e = navigator.userAgentData;
|
|
236
246
|
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(e) {
|
|
237
247
|
return e.brand + "/" + e.version;
|
|
238
248
|
}).join(" ") : navigator.userAgent;
|
|
239
249
|
}
|
|
240
|
-
|
|
241
|
-
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js
|
|
252
|
+
function ne() {
|
|
253
|
+
return !/^((?!chrome|android).)*safari/i.test(B());
|
|
242
254
|
}
|
|
243
|
-
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
|
|
257
|
+
function V(e, t, n) {
|
|
244
258
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
245
259
|
var r = e.getBoundingClientRect(), i = 1, a = 1;
|
|
246
|
-
t &&
|
|
247
|
-
var o = (
|
|
260
|
+
t && N(e) && (i = e.offsetWidth > 0 && z(r.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && z(r.height) / e.offsetHeight || 1);
|
|
261
|
+
var o = (M(e) ? j(e) : window).visualViewport, s = !ne() && n, c = (r.left + (s && o ? o.offsetLeft : 0)) / i, l = (r.top + (s && o ? o.offsetTop : 0)) / a, u = r.width / i, d = r.height / a;
|
|
248
262
|
return {
|
|
249
263
|
width: u,
|
|
250
264
|
height: d,
|
|
@@ -256,8 +270,10 @@ function getBoundingClientRect(e, t, n) {
|
|
|
256
270
|
y: l
|
|
257
271
|
};
|
|
258
272
|
}
|
|
259
|
-
|
|
260
|
-
|
|
273
|
+
//#endregion
|
|
274
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
|
|
275
|
+
function re(e) {
|
|
276
|
+
var t = V(e), n = e.offsetWidth, r = e.offsetHeight;
|
|
261
277
|
return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
|
|
262
278
|
x: e.offsetLeft,
|
|
263
279
|
y: e.offsetTop,
|
|
@@ -265,10 +281,12 @@ function getLayoutRect(e) {
|
|
|
265
281
|
height: r
|
|
266
282
|
};
|
|
267
283
|
}
|
|
268
|
-
|
|
284
|
+
//#endregion
|
|
285
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/contains.js
|
|
286
|
+
function ie(e, t) {
|
|
269
287
|
var n = t.getRootNode && t.getRootNode();
|
|
270
288
|
if (e.contains(t)) return !0;
|
|
271
|
-
if (n &&
|
|
289
|
+
if (n && P(n)) {
|
|
272
290
|
var r = t;
|
|
273
291
|
do {
|
|
274
292
|
if (r && e.isSameNode(r)) return !0;
|
|
@@ -277,51 +295,67 @@ function contains(e, t) {
|
|
|
277
295
|
}
|
|
278
296
|
return !1;
|
|
279
297
|
}
|
|
280
|
-
|
|
281
|
-
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js
|
|
300
|
+
function H(e) {
|
|
301
|
+
return j(e).getComputedStyle(e);
|
|
282
302
|
}
|
|
283
|
-
|
|
303
|
+
//#endregion
|
|
304
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/isTableElement.js
|
|
305
|
+
function ae(e) {
|
|
284
306
|
return [
|
|
285
307
|
"table",
|
|
286
308
|
"td",
|
|
287
309
|
"th"
|
|
288
|
-
].indexOf(
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
310
|
+
].indexOf(A(e)) >= 0;
|
|
311
|
+
}
|
|
312
|
+
//#endregion
|
|
313
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js
|
|
314
|
+
function U(e) {
|
|
315
|
+
return ((M(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
316
|
+
}
|
|
317
|
+
//#endregion
|
|
318
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getParentNode.js
|
|
319
|
+
function W(e) {
|
|
320
|
+
return A(e) === "html" ? e : e.assignedSlot || e.parentNode || (P(e) ? e.host : null) || U(e);
|
|
321
|
+
}
|
|
322
|
+
//#endregion
|
|
323
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js
|
|
324
|
+
function oe(e) {
|
|
325
|
+
return !N(e) || H(e).position === "fixed" ? null : e.offsetParent;
|
|
326
|
+
}
|
|
327
|
+
function se(e) {
|
|
328
|
+
var t = /firefox/i.test(B());
|
|
329
|
+
if (/Trident/i.test(B()) && N(e) && H(e).position === "fixed") return null;
|
|
330
|
+
var n = W(e);
|
|
331
|
+
for (P(n) && (n = n.host); N(n) && ["html", "body"].indexOf(A(n)) < 0;) {
|
|
332
|
+
var r = H(n);
|
|
305
333
|
if (r.transform !== "none" || r.perspective !== "none" || r.contain === "paint" || ["transform", "perspective"].indexOf(r.willChange) !== -1 || t && r.willChange === "filter" || t && r.filter && r.filter !== "none") return n;
|
|
306
334
|
n = n.parentNode;
|
|
307
335
|
}
|
|
308
336
|
return null;
|
|
309
337
|
}
|
|
310
|
-
function
|
|
311
|
-
for (var t =
|
|
312
|
-
return n && (
|
|
338
|
+
function G(e) {
|
|
339
|
+
for (var t = j(e), n = oe(e); n && ae(n) && H(n).position === "static";) n = oe(n);
|
|
340
|
+
return n && (A(n) === "html" || A(n) === "body" && H(n).position === "static") ? t : n || se(e) || t;
|
|
313
341
|
}
|
|
314
|
-
|
|
342
|
+
//#endregion
|
|
343
|
+
//#region node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js
|
|
344
|
+
function ce(e) {
|
|
315
345
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
316
346
|
}
|
|
317
|
-
|
|
318
|
-
|
|
347
|
+
//#endregion
|
|
348
|
+
//#region node_modules/@popperjs/core/lib/utils/within.js
|
|
349
|
+
function K(e, t, n) {
|
|
350
|
+
return R(e, te(t, n));
|
|
319
351
|
}
|
|
320
|
-
function
|
|
321
|
-
var r =
|
|
352
|
+
function le(e, t, n) {
|
|
353
|
+
var r = K(e, t, n);
|
|
322
354
|
return r > n ? n : r;
|
|
323
355
|
}
|
|
324
|
-
|
|
356
|
+
//#endregion
|
|
357
|
+
//#region node_modules/@popperjs/core/lib/utils/getFreshSideObject.js
|
|
358
|
+
function ue() {
|
|
325
359
|
return {
|
|
326
360
|
top: 0,
|
|
327
361
|
right: 0,
|
|
@@ -329,54 +363,64 @@ function getFreshSideObject() {
|
|
|
329
363
|
left: 0
|
|
330
364
|
};
|
|
331
365
|
}
|
|
332
|
-
|
|
333
|
-
|
|
366
|
+
//#endregion
|
|
367
|
+
//#region node_modules/@popperjs/core/lib/utils/mergePaddingObject.js
|
|
368
|
+
function q(e) {
|
|
369
|
+
return Object.assign({}, ue(), e);
|
|
334
370
|
}
|
|
335
|
-
|
|
371
|
+
//#endregion
|
|
372
|
+
//#region node_modules/@popperjs/core/lib/utils/expandToHashMap.js
|
|
373
|
+
function de(e, t) {
|
|
336
374
|
return t.reduce(function(t, n) {
|
|
337
375
|
return t[n] = e, t;
|
|
338
376
|
}, {});
|
|
339
377
|
}
|
|
340
|
-
|
|
341
|
-
|
|
378
|
+
//#endregion
|
|
379
|
+
//#region node_modules/@popperjs/core/lib/modifiers/arrow.js
|
|
380
|
+
var fe = function(e, t) {
|
|
381
|
+
return e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e, q(typeof e == "number" ? de(e, x) : e);
|
|
342
382
|
};
|
|
343
|
-
function
|
|
344
|
-
var t, n = e.state, r = e.name, i = e.options, a = n.elements.arrow, o = n.modifiersData.popperOffsets, s =
|
|
383
|
+
function pe(e) {
|
|
384
|
+
var t, n = e.state, r = e.name, i = e.options, a = n.elements.arrow, o = n.modifiersData.popperOffsets, s = L(n.placement), c = ce(s), l = ["left", "right"].indexOf(s) >= 0 ? "height" : "width";
|
|
345
385
|
if (!(!a || !o)) {
|
|
346
|
-
var u =
|
|
386
|
+
var u = fe(i.padding, n), d = re(a), f = c === "y" ? "top" : y, p = c === "y" ? _ : v, m = n.rects.reference[l] + n.rects.reference[c] - o[c] - n.rects.popper[l], h = o[c] - n.rects.reference[c], g = G(a), b = g ? c === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, x = m / 2 - h / 2, S = u[f], C = b - d[l] - u[p], w = b / 2 - d[l] / 2 + x, T = K(S, w, C), E = c;
|
|
347
387
|
n.modifiersData[r] = (t = {}, t[E] = T, t.centerOffset = T - w, t);
|
|
348
388
|
}
|
|
349
389
|
}
|
|
350
|
-
function
|
|
390
|
+
function me(e) {
|
|
351
391
|
var t = e.state, n = e.options.element, r = n === void 0 ? "[data-popper-arrow]" : n;
|
|
352
|
-
r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) ||
|
|
392
|
+
r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || ie(t.elements.popper, r) && (t.elements.arrow = r));
|
|
353
393
|
}
|
|
354
|
-
var
|
|
394
|
+
var he = {
|
|
355
395
|
name: "arrow",
|
|
356
396
|
enabled: !0,
|
|
357
397
|
phase: "main",
|
|
358
|
-
fn:
|
|
359
|
-
effect:
|
|
398
|
+
fn: pe,
|
|
399
|
+
effect: me,
|
|
360
400
|
requires: ["popperOffsets"],
|
|
361
401
|
requiresIfExists: ["preventOverflow"]
|
|
362
402
|
};
|
|
363
|
-
|
|
403
|
+
//#endregion
|
|
404
|
+
//#region node_modules/@popperjs/core/lib/utils/getVariation.js
|
|
405
|
+
function J(e) {
|
|
364
406
|
return e.split("-")[1];
|
|
365
407
|
}
|
|
366
|
-
|
|
408
|
+
//#endregion
|
|
409
|
+
//#region node_modules/@popperjs/core/lib/modifiers/computeStyles.js
|
|
410
|
+
var ge = {
|
|
367
411
|
top: "auto",
|
|
368
412
|
right: "auto",
|
|
369
413
|
bottom: "auto",
|
|
370
414
|
left: "auto"
|
|
371
415
|
};
|
|
372
|
-
function
|
|
416
|
+
function _e(e, t) {
|
|
373
417
|
var n = e.x, r = e.y, i = t.devicePixelRatio || 1;
|
|
374
418
|
return {
|
|
375
|
-
x:
|
|
376
|
-
y:
|
|
419
|
+
x: z(n * i) / i || 0,
|
|
420
|
+
y: z(r * i) / i || 0
|
|
377
421
|
};
|
|
378
422
|
}
|
|
379
|
-
function
|
|
423
|
+
function Y(e) {
|
|
380
424
|
var t, n = e.popper, r = e.popperRect, i = e.placement, a = e.variation, o = e.offsets, s = e.position, c = e.gpuAcceleration, l = e.adaptive, u = e.roundOffsets, d = e.isFixed, f = o.x, p = f === void 0 ? 0 : f, m = o.y, h = m === void 0 ? 0 : m, g = typeof u == "function" ? u({
|
|
381
425
|
x: p,
|
|
382
426
|
y: h
|
|
@@ -385,148 +429,166 @@ function mapToStyles(e) {
|
|
|
385
429
|
y: h
|
|
386
430
|
};
|
|
387
431
|
p = g.x, h = g.y;
|
|
388
|
-
var
|
|
432
|
+
var b = o.hasOwnProperty("x"), x = o.hasOwnProperty("y"), S = y, C = "top", w = window;
|
|
389
433
|
if (l) {
|
|
390
|
-
var T =
|
|
391
|
-
if (T ===
|
|
392
|
-
C =
|
|
434
|
+
var T = G(n), E = "clientHeight", D = "clientWidth";
|
|
435
|
+
if (T === j(n) && (T = U(n), H(T).position !== "static" && s === "absolute" && (E = "scrollHeight", D = "scrollWidth")), T = T, i === "top" || (i === "left" || i === "right") && a === "end") {
|
|
436
|
+
C = _;
|
|
393
437
|
var O = d && T === w && w.visualViewport ? w.visualViewport.height : T[E];
|
|
394
438
|
h -= O - r.height, h *= c ? 1 : -1;
|
|
395
439
|
}
|
|
396
440
|
if (i === "left" || (i === "top" || i === "bottom") && a === "end") {
|
|
397
|
-
S =
|
|
441
|
+
S = v;
|
|
398
442
|
var k = d && T === w && w.visualViewport ? w.visualViewport.width : T[D];
|
|
399
443
|
p -= k - r.width, p *= c ? 1 : -1;
|
|
400
444
|
}
|
|
401
445
|
}
|
|
402
|
-
var A = Object.assign({ position: s }, l &&
|
|
446
|
+
var A = Object.assign({ position: s }, l && ge), M = u === !0 ? _e({
|
|
403
447
|
x: p,
|
|
404
448
|
y: h
|
|
405
|
-
},
|
|
449
|
+
}, j(n)) : {
|
|
406
450
|
x: p,
|
|
407
451
|
y: h
|
|
408
452
|
};
|
|
409
|
-
if (p =
|
|
453
|
+
if (p = M.x, h = M.y, c) {
|
|
410
454
|
var N;
|
|
411
|
-
return Object.assign({}, A, (N = {}, N[C] = x ? "0" : "", N[S] =
|
|
455
|
+
return Object.assign({}, A, (N = {}, N[C] = x ? "0" : "", N[S] = b ? "0" : "", N.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", N));
|
|
412
456
|
}
|
|
413
|
-
return Object.assign({}, A, (t = {}, t[C] = x ? h + "px" : "", t[S] =
|
|
457
|
+
return Object.assign({}, A, (t = {}, t[C] = x ? h + "px" : "", t[S] = b ? p + "px" : "", t.transform = "", t));
|
|
414
458
|
}
|
|
415
|
-
function
|
|
416
|
-
var t = e.state, n = e.options, r = n.gpuAcceleration, i = r === void 0
|
|
417
|
-
placement:
|
|
418
|
-
variation:
|
|
459
|
+
function ve(e) {
|
|
460
|
+
var t = e.state, n = e.options, r = n.gpuAcceleration, i = r === void 0 || r, a = n.adaptive, o = a === void 0 || a, s = n.roundOffsets, c = s === void 0 || s, l = {
|
|
461
|
+
placement: L(t.placement),
|
|
462
|
+
variation: J(t.placement),
|
|
419
463
|
popper: t.elements.popper,
|
|
420
464
|
popperRect: t.rects.popper,
|
|
421
465
|
gpuAcceleration: i,
|
|
422
466
|
isFixed: t.options.strategy === "fixed"
|
|
423
467
|
};
|
|
424
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper,
|
|
468
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Y(Object.assign({}, l, {
|
|
425
469
|
offsets: t.modifiersData.popperOffsets,
|
|
426
470
|
position: t.options.strategy,
|
|
427
471
|
adaptive: o,
|
|
428
472
|
roundOffsets: c
|
|
429
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow,
|
|
473
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Y(Object.assign({}, l, {
|
|
430
474
|
offsets: t.modifiersData.arrow,
|
|
431
475
|
position: "absolute",
|
|
432
476
|
adaptive: !1,
|
|
433
477
|
roundOffsets: c
|
|
434
478
|
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement });
|
|
435
479
|
}
|
|
436
|
-
var
|
|
480
|
+
var ye = {
|
|
437
481
|
name: "computeStyles",
|
|
438
482
|
enabled: !0,
|
|
439
483
|
phase: "beforeWrite",
|
|
440
|
-
fn:
|
|
484
|
+
fn: ve,
|
|
441
485
|
data: {}
|
|
442
|
-
},
|
|
443
|
-
function
|
|
444
|
-
var t = e.state, n = e.instance, r = e.options, i = r.scroll, a = i === void 0
|
|
486
|
+
}, X = { passive: !0 };
|
|
487
|
+
function be(e) {
|
|
488
|
+
var t = e.state, n = e.instance, r = e.options, i = r.scroll, a = i === void 0 || i, o = r.resize, s = o === void 0 || o, c = j(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
445
489
|
return a && l.forEach(function(e) {
|
|
446
|
-
e.addEventListener("scroll", n.update,
|
|
447
|
-
}), s && c.addEventListener("resize", n.update,
|
|
490
|
+
e.addEventListener("scroll", n.update, X);
|
|
491
|
+
}), s && c.addEventListener("resize", n.update, X), function() {
|
|
448
492
|
a && l.forEach(function(e) {
|
|
449
|
-
e.removeEventListener("scroll", n.update,
|
|
450
|
-
}), s && c.removeEventListener("resize", n.update,
|
|
493
|
+
e.removeEventListener("scroll", n.update, X);
|
|
494
|
+
}), s && c.removeEventListener("resize", n.update, X);
|
|
451
495
|
};
|
|
452
496
|
}
|
|
453
|
-
var
|
|
497
|
+
var xe = {
|
|
454
498
|
name: "eventListeners",
|
|
455
499
|
enabled: !0,
|
|
456
500
|
phase: "write",
|
|
457
501
|
fn: function() {},
|
|
458
|
-
effect,
|
|
502
|
+
effect: be,
|
|
459
503
|
data: {}
|
|
460
|
-
},
|
|
504
|
+
}, Se = {
|
|
461
505
|
left: "right",
|
|
462
506
|
right: "left",
|
|
463
507
|
bottom: "top",
|
|
464
508
|
top: "bottom"
|
|
465
509
|
};
|
|
466
|
-
function
|
|
510
|
+
function Z(e) {
|
|
467
511
|
return e.replace(/left|right|bottom|top/g, function(e) {
|
|
468
|
-
return
|
|
512
|
+
return Se[e];
|
|
469
513
|
});
|
|
470
514
|
}
|
|
471
|
-
|
|
515
|
+
//#endregion
|
|
516
|
+
//#region node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js
|
|
517
|
+
var Ce = {
|
|
472
518
|
start: "end",
|
|
473
519
|
end: "start"
|
|
474
520
|
};
|
|
475
|
-
function
|
|
521
|
+
function we(e) {
|
|
476
522
|
return e.replace(/start|end/g, function(e) {
|
|
477
|
-
return
|
|
523
|
+
return Ce[e];
|
|
478
524
|
});
|
|
479
525
|
}
|
|
480
|
-
|
|
481
|
-
|
|
526
|
+
//#endregion
|
|
527
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js
|
|
528
|
+
function Te(e) {
|
|
529
|
+
var t = j(e);
|
|
482
530
|
return {
|
|
483
531
|
scrollLeft: t.pageXOffset,
|
|
484
532
|
scrollTop: t.pageYOffset
|
|
485
533
|
};
|
|
486
534
|
}
|
|
487
|
-
|
|
488
|
-
|
|
535
|
+
//#endregion
|
|
536
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js
|
|
537
|
+
function Ee(e) {
|
|
538
|
+
return V(U(e)).left + Te(e).scrollLeft;
|
|
489
539
|
}
|
|
490
|
-
|
|
491
|
-
|
|
540
|
+
//#endregion
|
|
541
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js
|
|
542
|
+
function De(e, t) {
|
|
543
|
+
var n = j(e), r = U(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
492
544
|
if (i) {
|
|
493
545
|
a = i.width, o = i.height;
|
|
494
|
-
var l =
|
|
546
|
+
var l = ne();
|
|
495
547
|
(l || !l && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
496
548
|
}
|
|
497
549
|
return {
|
|
498
550
|
width: a,
|
|
499
551
|
height: o,
|
|
500
|
-
x: s +
|
|
552
|
+
x: s + Ee(e),
|
|
501
553
|
y: c
|
|
502
554
|
};
|
|
503
555
|
}
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
556
|
+
//#endregion
|
|
557
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js
|
|
558
|
+
function Oe(e) {
|
|
559
|
+
var t = U(e), n = Te(e), r = e.ownerDocument?.body, i = R(t.scrollWidth, t.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), a = R(t.scrollHeight, t.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), o = -n.scrollLeft + Ee(e), s = -n.scrollTop;
|
|
560
|
+
return H(r || t).direction === "rtl" && (o += R(t.clientWidth, r ? r.clientWidth : 0) - i), {
|
|
507
561
|
width: i,
|
|
508
562
|
height: a,
|
|
509
563
|
x: o,
|
|
510
564
|
y: s
|
|
511
565
|
};
|
|
512
566
|
}
|
|
513
|
-
|
|
514
|
-
|
|
567
|
+
//#endregion
|
|
568
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js
|
|
569
|
+
function ke(e) {
|
|
570
|
+
var t = H(e), n = t.overflow, r = t.overflowX, i = t.overflowY;
|
|
515
571
|
return /auto|scroll|overlay|hidden/.test(n + i + r);
|
|
516
572
|
}
|
|
517
|
-
|
|
573
|
+
//#endregion
|
|
574
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js
|
|
575
|
+
function Ae(e) {
|
|
518
576
|
return [
|
|
519
577
|
"html",
|
|
520
578
|
"body",
|
|
521
579
|
"#document"
|
|
522
|
-
].indexOf(
|
|
580
|
+
].indexOf(A(e)) >= 0 ? e.ownerDocument.body : N(e) && ke(e) ? e : Ae(W(e));
|
|
523
581
|
}
|
|
524
|
-
|
|
582
|
+
//#endregion
|
|
583
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js
|
|
584
|
+
function je(e, t) {
|
|
525
585
|
t === void 0 && (t = []);
|
|
526
|
-
var n =
|
|
527
|
-
return r ? o : o.concat(
|
|
586
|
+
var n = Ae(e), r = n === e.ownerDocument?.body, i = j(n), a = r ? [i].concat(i.visualViewport || [], ke(n) ? n : []) : n, o = t.concat(a);
|
|
587
|
+
return r ? o : o.concat(je(W(a)));
|
|
528
588
|
}
|
|
529
|
-
|
|
589
|
+
//#endregion
|
|
590
|
+
//#region node_modules/@popperjs/core/lib/utils/rectToClientRect.js
|
|
591
|
+
function Me(e) {
|
|
530
592
|
return Object.assign({}, e, {
|
|
531
593
|
left: e.x,
|
|
532
594
|
top: e.y,
|
|
@@ -534,28 +596,32 @@ function rectToClientRect(e) {
|
|
|
534
596
|
bottom: e.y + e.height
|
|
535
597
|
});
|
|
536
598
|
}
|
|
537
|
-
|
|
538
|
-
|
|
599
|
+
//#endregion
|
|
600
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js
|
|
601
|
+
function Ne(e, t) {
|
|
602
|
+
var n = V(e, !1, t === "fixed");
|
|
539
603
|
return n.top += e.clientTop, n.left += e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
540
604
|
}
|
|
541
|
-
function
|
|
542
|
-
return t === "viewport" ?
|
|
605
|
+
function Pe(e, t, n) {
|
|
606
|
+
return t === "viewport" ? Me(De(e, n)) : M(t) ? Ne(t, n) : Me(Oe(U(e)));
|
|
543
607
|
}
|
|
544
|
-
function
|
|
545
|
-
var t =
|
|
546
|
-
return
|
|
547
|
-
return
|
|
608
|
+
function Fe(e) {
|
|
609
|
+
var t = je(W(e)), n = ["absolute", "fixed"].indexOf(H(e).position) >= 0 && N(e) ? G(e) : e;
|
|
610
|
+
return M(n) ? t.filter(function(e) {
|
|
611
|
+
return M(e) && ie(e, n) && A(e) !== "body";
|
|
548
612
|
}) : [];
|
|
549
613
|
}
|
|
550
|
-
function
|
|
551
|
-
var i = t === "clippingParents" ?
|
|
552
|
-
var i =
|
|
553
|
-
return t.top =
|
|
554
|
-
},
|
|
614
|
+
function Ie(e, t, n, r) {
|
|
615
|
+
var i = t === "clippingParents" ? Fe(e) : [].concat(t), a = [].concat(i, [n]), o = a[0], s = a.reduce(function(t, n) {
|
|
616
|
+
var i = Pe(e, n, r);
|
|
617
|
+
return t.top = R(i.top, t.top), t.right = te(i.right, t.right), t.bottom = te(i.bottom, t.bottom), t.left = R(i.left, t.left), t;
|
|
618
|
+
}, Pe(e, o, r));
|
|
555
619
|
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
|
556
620
|
}
|
|
557
|
-
|
|
558
|
-
|
|
621
|
+
//#endregion
|
|
622
|
+
//#region node_modules/@popperjs/core/lib/utils/computeOffsets.js
|
|
623
|
+
function Le(e) {
|
|
624
|
+
var t = e.reference, n = e.element, r = e.placement, i = r ? L(r) : null, a = r ? J(r) : null, o = t.x + t.width / 2 - n.width / 2, s = t.y + t.height / 2 - n.height / 2, c;
|
|
559
625
|
switch (i) {
|
|
560
626
|
case "top":
|
|
561
627
|
c = {
|
|
@@ -563,19 +629,19 @@ function computeOffsets(e) {
|
|
|
563
629
|
y: t.y - n.height
|
|
564
630
|
};
|
|
565
631
|
break;
|
|
566
|
-
case
|
|
632
|
+
case _:
|
|
567
633
|
c = {
|
|
568
634
|
x: o,
|
|
569
635
|
y: t.y + t.height
|
|
570
636
|
};
|
|
571
637
|
break;
|
|
572
|
-
case
|
|
638
|
+
case v:
|
|
573
639
|
c = {
|
|
574
640
|
x: t.x + t.width,
|
|
575
641
|
y: s
|
|
576
642
|
};
|
|
577
643
|
break;
|
|
578
|
-
case
|
|
644
|
+
case y:
|
|
579
645
|
c = {
|
|
580
646
|
x: t.x - n.width,
|
|
581
647
|
y: s
|
|
@@ -586,11 +652,11 @@ function computeOffsets(e) {
|
|
|
586
652
|
y: t.y
|
|
587
653
|
};
|
|
588
654
|
}
|
|
589
|
-
var l = i ?
|
|
655
|
+
var l = i ? ce(i) : null;
|
|
590
656
|
if (l != null) {
|
|
591
657
|
var u = l === "y" ? "height" : "width";
|
|
592
658
|
switch (a) {
|
|
593
|
-
case
|
|
659
|
+
case S:
|
|
594
660
|
c[l] = c[l] - (t[u] / 2 - n[u] / 2);
|
|
595
661
|
break;
|
|
596
662
|
case "end":
|
|
@@ -601,21 +667,23 @@ function computeOffsets(e) {
|
|
|
601
667
|
}
|
|
602
668
|
return c;
|
|
603
669
|
}
|
|
604
|
-
|
|
670
|
+
//#endregion
|
|
671
|
+
//#region node_modules/@popperjs/core/lib/utils/detectOverflow.js
|
|
672
|
+
function Q(e, t) {
|
|
605
673
|
t === void 0 && (t = {});
|
|
606
|
-
var n = t, r = n.placement, i = r === void 0 ? e.placement : r, a = n.strategy, o = a === void 0 ? e.strategy : a, s = n.boundary, c = s === void 0 ?
|
|
607
|
-
reference:
|
|
674
|
+
var n = t, r = n.placement, i = r === void 0 ? e.placement : r, a = n.strategy, o = a === void 0 ? e.strategy : a, s = n.boundary, c = s === void 0 ? C : s, l = n.rootBoundary, u = l === void 0 ? w : l, d = n.elementContext, f = d === void 0 ? T : d, p = n.altBoundary, m = p !== void 0 && p, h = n.padding, g = h === void 0 ? 0 : h, _ = q(typeof g == "number" ? de(g, x) : g), v = f === "popper" ? E : T, y = e.rects.popper, b = e.elements[m ? v : f], S = Ie(M(b) ? b : b.contextElement || U(e.elements.popper), c, u, o), D = V(e.elements.reference), O = Le({
|
|
675
|
+
reference: D,
|
|
608
676
|
element: y,
|
|
609
677
|
strategy: "absolute",
|
|
610
678
|
placement: i
|
|
611
|
-
}), k =
|
|
612
|
-
top:
|
|
613
|
-
bottom: A.bottom -
|
|
614
|
-
left:
|
|
615
|
-
right: A.right -
|
|
616
|
-
},
|
|
617
|
-
if (f === "popper" &&
|
|
618
|
-
var P =
|
|
679
|
+
}), k = Me(Object.assign({}, y, O)), A = f === "popper" ? k : D, j = {
|
|
680
|
+
top: S.top - A.top + _.top,
|
|
681
|
+
bottom: A.bottom - S.bottom + _.bottom,
|
|
682
|
+
left: S.left - A.left + _.left,
|
|
683
|
+
right: A.right - S.right + _.right
|
|
684
|
+
}, N = e.modifiersData.offset;
|
|
685
|
+
if (f === "popper" && N) {
|
|
686
|
+
var P = N[i];
|
|
619
687
|
Object.keys(j).forEach(function(e) {
|
|
620
688
|
var t = ["right", "bottom"].indexOf(e) >= 0 ? 1 : -1, n = ["top", "bottom"].indexOf(e) >= 0 ? "y" : "x";
|
|
621
689
|
j[e] += P[n] * t;
|
|
@@ -623,40 +691,44 @@ function detectOverflow(e, t) {
|
|
|
623
691
|
}
|
|
624
692
|
return j;
|
|
625
693
|
}
|
|
626
|
-
|
|
694
|
+
//#endregion
|
|
695
|
+
//#region node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js
|
|
696
|
+
function Re(e, t) {
|
|
627
697
|
t === void 0 && (t = {});
|
|
628
|
-
var n = t, r = n.placement, i = n.boundary, a = n.rootBoundary, o = n.padding, s = n.flipVariations, c = n.allowedAutoPlacements, l = c === void 0 ?
|
|
629
|
-
return
|
|
630
|
-
}) :
|
|
698
|
+
var n = t, r = n.placement, i = n.boundary, a = n.rootBoundary, o = n.padding, s = n.flipVariations, c = n.allowedAutoPlacements, l = c === void 0 ? O : c, u = J(r), d = u ? s ? D : D.filter(function(e) {
|
|
699
|
+
return J(e) === u;
|
|
700
|
+
}) : x, f = d.filter(function(e) {
|
|
631
701
|
return l.indexOf(e) >= 0;
|
|
632
702
|
});
|
|
633
703
|
f.length === 0 && (f = d);
|
|
634
704
|
var p = f.reduce(function(t, n) {
|
|
635
|
-
return t[n] =
|
|
705
|
+
return t[n] = Q(e, {
|
|
636
706
|
placement: n,
|
|
637
707
|
boundary: i,
|
|
638
708
|
rootBoundary: a,
|
|
639
709
|
padding: o
|
|
640
|
-
})[
|
|
710
|
+
})[L(n)], t;
|
|
641
711
|
}, {});
|
|
642
712
|
return Object.keys(p).sort(function(e, t) {
|
|
643
713
|
return p[e] - p[t];
|
|
644
714
|
});
|
|
645
715
|
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
716
|
+
//#endregion
|
|
717
|
+
//#region node_modules/@popperjs/core/lib/modifiers/flip.js
|
|
718
|
+
function ze(e) {
|
|
719
|
+
if (L(e) === "auto") return [];
|
|
720
|
+
var t = Z(e);
|
|
649
721
|
return [
|
|
650
|
-
|
|
722
|
+
we(e),
|
|
651
723
|
t,
|
|
652
|
-
|
|
724
|
+
we(t)
|
|
653
725
|
];
|
|
654
726
|
}
|
|
655
|
-
function
|
|
727
|
+
function Be(e) {
|
|
656
728
|
var t = e.state, n = e.options, r = e.name;
|
|
657
729
|
if (!t.modifiersData[r]._skip) {
|
|
658
|
-
for (var i = n.mainAxis, a = i === void 0
|
|
659
|
-
return e.concat(
|
|
730
|
+
for (var i = n.mainAxis, a = i === void 0 || i, o = n.altAxis, s = o === void 0 || o, c = n.fallbackPlacements, l = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, m = p === void 0 || p, h = n.allowedAutoPlacements, g = t.options.placement, b = L(g) === g, x = c || (b || !m ? [Z(g)] : ze(g)), C = [g].concat(x).reduce(function(e, n) {
|
|
731
|
+
return e.concat(L(n) === "auto" ? Re(t, {
|
|
660
732
|
placement: n,
|
|
661
733
|
boundary: u,
|
|
662
734
|
rootBoundary: d,
|
|
@@ -664,17 +736,17 @@ function flip(e) {
|
|
|
664
736
|
flipVariations: m,
|
|
665
737
|
allowedAutoPlacements: h
|
|
666
738
|
}) : n);
|
|
667
|
-
}, []), w = t.rects.reference, T = t.rects.popper, E = /* @__PURE__ */ new Map(), D = !0, O =
|
|
668
|
-
var A =
|
|
739
|
+
}, []), w = t.rects.reference, T = t.rects.popper, E = /* @__PURE__ */ new Map(), D = !0, O = C[0], k = 0; k < C.length; k++) {
|
|
740
|
+
var A = C[k], j = L(A), M = J(A) === S, N = ["top", _].indexOf(j) >= 0, P = N ? "width" : "height", F = Q(t, {
|
|
669
741
|
placement: A,
|
|
670
742
|
boundary: u,
|
|
671
743
|
rootBoundary: d,
|
|
672
744
|
altBoundary: f,
|
|
673
745
|
padding: l
|
|
674
|
-
}), I = N ? M ?
|
|
675
|
-
w[P] > T[P] && (I =
|
|
676
|
-
var
|
|
677
|
-
if (a && R.push(F[j] <= 0), s && R.push(F[I] <= 0, F[
|
|
746
|
+
}), I = N ? M ? v : y : M ? _ : "top";
|
|
747
|
+
w[P] > T[P] && (I = Z(I));
|
|
748
|
+
var ee = Z(I), R = [];
|
|
749
|
+
if (a && R.push(F[j] <= 0), s && R.push(F[I] <= 0, F[ee] <= 0), R.every(function(e) {
|
|
678
750
|
return e;
|
|
679
751
|
})) {
|
|
680
752
|
O = A, D = !1;
|
|
@@ -682,27 +754,29 @@ function flip(e) {
|
|
|
682
754
|
}
|
|
683
755
|
E.set(A, R);
|
|
684
756
|
}
|
|
685
|
-
if (D) for (var
|
|
686
|
-
var t =
|
|
757
|
+
if (D) for (var te = m ? 3 : 1, z = function(e) {
|
|
758
|
+
var t = C.find(function(t) {
|
|
687
759
|
var n = E.get(t);
|
|
688
760
|
if (n) return n.slice(0, e).every(function(e) {
|
|
689
761
|
return e;
|
|
690
762
|
});
|
|
691
763
|
});
|
|
692
764
|
if (t) return O = t, "break";
|
|
693
|
-
},
|
|
765
|
+
}, B = te; B > 0 && z(B) !== "break"; B--);
|
|
694
766
|
t.placement !== O && (t.modifiersData[r]._skip = !0, t.placement = O, t.reset = !0);
|
|
695
767
|
}
|
|
696
768
|
}
|
|
697
|
-
var
|
|
769
|
+
var Ve = {
|
|
698
770
|
name: "flip",
|
|
699
771
|
enabled: !0,
|
|
700
772
|
phase: "main",
|
|
701
|
-
fn:
|
|
773
|
+
fn: Be,
|
|
702
774
|
requiresIfExists: ["offset"],
|
|
703
775
|
data: { _skip: !1 }
|
|
704
776
|
};
|
|
705
|
-
|
|
777
|
+
//#endregion
|
|
778
|
+
//#region node_modules/@popperjs/core/lib/modifiers/hide.js
|
|
779
|
+
function He(e, t, n) {
|
|
706
780
|
return n === void 0 && (n = {
|
|
707
781
|
x: 0,
|
|
708
782
|
y: 0
|
|
@@ -713,18 +787,18 @@ function getSideOffsets(e, t, n) {
|
|
|
713
787
|
left: e.left - t.width - n.x
|
|
714
788
|
};
|
|
715
789
|
}
|
|
716
|
-
function
|
|
790
|
+
function Ue(e) {
|
|
717
791
|
return [
|
|
718
792
|
"top",
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
793
|
+
v,
|
|
794
|
+
_,
|
|
795
|
+
y
|
|
722
796
|
].some(function(t) {
|
|
723
797
|
return e[t] >= 0;
|
|
724
798
|
});
|
|
725
799
|
}
|
|
726
|
-
function
|
|
727
|
-
var t = e.state, n = e.name, r = t.rects.reference, i = t.rects.popper, a = t.modifiersData.preventOverflow, o =
|
|
800
|
+
function We(e) {
|
|
801
|
+
var t = e.state, n = e.name, r = t.rects.reference, i = t.rects.popper, a = t.modifiersData.preventOverflow, o = Q(t, { elementContext: "reference" }), s = Q(t, { altBoundary: !0 }), c = He(o, r), l = He(s, i, a), u = Ue(c), d = Ue(l);
|
|
728
802
|
t.modifiersData[n] = {
|
|
729
803
|
referenceClippingOffsets: c,
|
|
730
804
|
popperEscapeOffsets: l,
|
|
@@ -735,15 +809,17 @@ function hide(e) {
|
|
|
735
809
|
"data-popper-escaped": d
|
|
736
810
|
});
|
|
737
811
|
}
|
|
738
|
-
var
|
|
812
|
+
var Ge = {
|
|
739
813
|
name: "hide",
|
|
740
814
|
enabled: !0,
|
|
741
815
|
phase: "main",
|
|
742
816
|
requiresIfExists: ["preventOverflow"],
|
|
743
|
-
fn:
|
|
817
|
+
fn: We
|
|
744
818
|
};
|
|
745
|
-
|
|
746
|
-
|
|
819
|
+
//#endregion
|
|
820
|
+
//#region node_modules/@popperjs/core/lib/modifiers/offset.js
|
|
821
|
+
function Ke(e, t, n) {
|
|
822
|
+
var r = L(e), i = ["left", "top"].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n, o = a[0], s = a[1];
|
|
747
823
|
return o ||= 0, s = (s || 0) * i, ["left", "right"].indexOf(r) >= 0 ? {
|
|
748
824
|
x: s,
|
|
749
825
|
y: o
|
|
@@ -752,45 +828,51 @@ function distanceAndSkiddingToXY(e, t, n) {
|
|
|
752
828
|
y: s
|
|
753
829
|
};
|
|
754
830
|
}
|
|
755
|
-
function
|
|
756
|
-
var t = e.state, n = e.options, r = e.name, i = n.offset, a = i === void 0 ? [0, 0] : i, o =
|
|
757
|
-
return e[n] =
|
|
831
|
+
function qe(e) {
|
|
832
|
+
var t = e.state, n = e.options, r = e.name, i = n.offset, a = i === void 0 ? [0, 0] : i, o = O.reduce(function(e, n) {
|
|
833
|
+
return e[n] = Ke(n, t.rects, a), e;
|
|
758
834
|
}, {}), s = o[t.placement], c = s.x, l = s.y;
|
|
759
835
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += l), t.modifiersData[r] = o;
|
|
760
836
|
}
|
|
761
|
-
var
|
|
837
|
+
var Je = {
|
|
762
838
|
name: "offset",
|
|
763
839
|
enabled: !0,
|
|
764
840
|
phase: "main",
|
|
765
841
|
requires: ["popperOffsets"],
|
|
766
|
-
fn:
|
|
842
|
+
fn: qe
|
|
767
843
|
};
|
|
768
|
-
|
|
844
|
+
//#endregion
|
|
845
|
+
//#region node_modules/@popperjs/core/lib/modifiers/popperOffsets.js
|
|
846
|
+
function Ye(e) {
|
|
769
847
|
var t = e.state, n = e.name;
|
|
770
|
-
t.modifiersData[n] =
|
|
848
|
+
t.modifiersData[n] = Le({
|
|
771
849
|
reference: t.rects.reference,
|
|
772
850
|
element: t.rects.popper,
|
|
773
851
|
strategy: "absolute",
|
|
774
852
|
placement: t.placement
|
|
775
853
|
});
|
|
776
854
|
}
|
|
777
|
-
var
|
|
855
|
+
var Xe = {
|
|
778
856
|
name: "popperOffsets",
|
|
779
857
|
enabled: !0,
|
|
780
858
|
phase: "read",
|
|
781
|
-
fn:
|
|
859
|
+
fn: Ye,
|
|
782
860
|
data: {}
|
|
783
861
|
};
|
|
784
|
-
|
|
862
|
+
//#endregion
|
|
863
|
+
//#region node_modules/@popperjs/core/lib/utils/getAltAxis.js
|
|
864
|
+
function Ze(e) {
|
|
785
865
|
return e === "x" ? "y" : "x";
|
|
786
866
|
}
|
|
787
|
-
|
|
788
|
-
|
|
867
|
+
//#endregion
|
|
868
|
+
//#region node_modules/@popperjs/core/lib/modifiers/preventOverflow.js
|
|
869
|
+
function Qe(e) {
|
|
870
|
+
var t = e.state, n = e.options, r = e.name, i = n.mainAxis, a = i === void 0 || i, o = n.altAxis, s = o !== void 0 && o, c = n.boundary, l = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, p = f === void 0 || f, m = n.tetherOffset, h = m === void 0 ? 0 : m, g = Q(t, {
|
|
789
871
|
boundary: c,
|
|
790
872
|
rootBoundary: l,
|
|
791
873
|
padding: d,
|
|
792
874
|
altBoundary: u
|
|
793
|
-
}),
|
|
875
|
+
}), b = L(t.placement), x = J(t.placement), S = !x, C = ce(b), w = Ze(C), T = t.modifiersData.popperOffsets, E = t.rects.reference, D = t.rects.popper, O = typeof h == "function" ? h(Object.assign({}, t.rects, { placement: t.placement })) : h, k = typeof O == "number" ? {
|
|
794
876
|
mainAxis: O,
|
|
795
877
|
altAxis: O
|
|
796
878
|
} : Object.assign({
|
|
@@ -802,56 +884,64 @@ function preventOverflow(e) {
|
|
|
802
884
|
};
|
|
803
885
|
if (T) {
|
|
804
886
|
if (a) {
|
|
805
|
-
var M = C === "y" ? "top" :
|
|
887
|
+
var M = C === "y" ? "top" : y, N = C === "y" ? _ : v, P = C === "y" ? "height" : "width", F = T[C], I = F + g[M], ee = F - g[N], z = p ? -D[P] / 2 : 0, B = x === "start" ? E[P] : D[P], ne = x === "start" ? -D[P] : -E[P], V = t.elements.arrow, ie = p && V ? re(V) : {
|
|
806
888
|
width: 0,
|
|
807
889
|
height: 0
|
|
808
|
-
},
|
|
809
|
-
T[C] =
|
|
890
|
+
}, H = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ue(), ae = H[M], U = H[N], W = K(0, E[P], ie[P]), oe = S ? E[P] / 2 - z - W - ae - k.mainAxis : B - W - ae - k.mainAxis, se = S ? -E[P] / 2 + z + W + U + k.mainAxis : ne + W + U + k.mainAxis, q = t.elements.arrow && G(t.elements.arrow), de = q ? C === "y" ? q.clientTop || 0 : q.clientLeft || 0 : 0, fe = A?.[C] ?? 0, pe = F + oe - fe - de, me = F + se - fe, he = K(p ? te(I, pe) : I, F, p ? R(ee, me) : ee);
|
|
891
|
+
T[C] = he, j[C] = he - F;
|
|
810
892
|
}
|
|
811
893
|
if (s) {
|
|
812
|
-
var
|
|
813
|
-
T[w] =
|
|
894
|
+
var ge = C === "x" ? "top" : y, _e = C === "x" ? _ : v, Y = T[w], ve = w === "y" ? "height" : "width", ye = Y + g[ge], X = Y - g[_e], be = ["top", y].indexOf(b) !== -1, xe = A?.[w] ?? 0, Se = be ? ye : Y - E[ve] - D[ve] - xe + k.altAxis, Z = be ? Y + E[ve] + D[ve] - xe - k.altAxis : X, Ce = p && be ? le(Se, Y, Z) : K(p ? Se : ye, Y, p ? Z : X);
|
|
895
|
+
T[w] = Ce, j[w] = Ce - Y;
|
|
814
896
|
}
|
|
815
897
|
t.modifiersData[r] = j;
|
|
816
898
|
}
|
|
817
899
|
}
|
|
818
|
-
var
|
|
900
|
+
var $e = {
|
|
819
901
|
name: "preventOverflow",
|
|
820
902
|
enabled: !0,
|
|
821
903
|
phase: "main",
|
|
822
|
-
fn:
|
|
904
|
+
fn: Qe,
|
|
823
905
|
requiresIfExists: ["offset"]
|
|
824
906
|
};
|
|
825
|
-
|
|
907
|
+
//#endregion
|
|
908
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js
|
|
909
|
+
function et(e) {
|
|
826
910
|
return {
|
|
827
911
|
scrollLeft: e.scrollLeft,
|
|
828
912
|
scrollTop: e.scrollTop
|
|
829
913
|
};
|
|
830
914
|
}
|
|
831
|
-
|
|
832
|
-
|
|
915
|
+
//#endregion
|
|
916
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js
|
|
917
|
+
function tt(e) {
|
|
918
|
+
return e === j(e) || !N(e) ? Te(e) : et(e);
|
|
833
919
|
}
|
|
834
|
-
|
|
835
|
-
|
|
920
|
+
//#endregion
|
|
921
|
+
//#region node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js
|
|
922
|
+
function nt(e) {
|
|
923
|
+
var t = e.getBoundingClientRect(), n = z(t.width) / e.offsetWidth || 1, r = z(t.height) / e.offsetHeight || 1;
|
|
836
924
|
return n !== 1 || r !== 1;
|
|
837
925
|
}
|
|
838
|
-
function
|
|
926
|
+
function rt(e, t, n) {
|
|
839
927
|
n === void 0 && (n = !1);
|
|
840
|
-
var r =
|
|
928
|
+
var r = N(t), i = N(t) && nt(t), a = U(t), o = V(e, i, n), s = {
|
|
841
929
|
scrollLeft: 0,
|
|
842
930
|
scrollTop: 0
|
|
843
931
|
}, c = {
|
|
844
932
|
x: 0,
|
|
845
933
|
y: 0
|
|
846
934
|
};
|
|
847
|
-
return (r || !r && !n) && ((
|
|
935
|
+
return (r || !r && !n) && ((A(t) !== "body" || ke(a)) && (s = tt(t)), N(t) ? (c = V(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : a && (c.x = Ee(a))), {
|
|
848
936
|
x: o.left + s.scrollLeft - c.x,
|
|
849
937
|
y: o.top + s.scrollTop - c.y,
|
|
850
938
|
width: o.width,
|
|
851
939
|
height: o.height
|
|
852
940
|
};
|
|
853
941
|
}
|
|
854
|
-
|
|
942
|
+
//#endregion
|
|
943
|
+
//#region node_modules/@popperjs/core/lib/utils/orderModifiers.js
|
|
944
|
+
function it(e) {
|
|
855
945
|
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
|
|
856
946
|
e.forEach(function(e) {
|
|
857
947
|
t.set(e.name, e);
|
|
@@ -868,15 +958,17 @@ function order(e) {
|
|
|
868
958
|
n.has(e.name) || i(e);
|
|
869
959
|
}), r;
|
|
870
960
|
}
|
|
871
|
-
function
|
|
872
|
-
var t =
|
|
873
|
-
return
|
|
961
|
+
function at(e) {
|
|
962
|
+
var t = it(e);
|
|
963
|
+
return k.reduce(function(e, n) {
|
|
874
964
|
return e.concat(t.filter(function(e) {
|
|
875
965
|
return e.phase === n;
|
|
876
966
|
}));
|
|
877
967
|
}, []);
|
|
878
968
|
}
|
|
879
|
-
|
|
969
|
+
//#endregion
|
|
970
|
+
//#region node_modules/@popperjs/core/lib/utils/debounce.js
|
|
971
|
+
function ot(e) {
|
|
880
972
|
var t;
|
|
881
973
|
return function() {
|
|
882
974
|
return t ||= new Promise(function(n) {
|
|
@@ -886,7 +978,9 @@ function debounce(e) {
|
|
|
886
978
|
}), t;
|
|
887
979
|
};
|
|
888
980
|
}
|
|
889
|
-
|
|
981
|
+
//#endregion
|
|
982
|
+
//#region node_modules/@popperjs/core/lib/utils/mergeByName.js
|
|
983
|
+
function st(e) {
|
|
890
984
|
var t = e.reduce(function(e, t) {
|
|
891
985
|
var n = e[t.name];
|
|
892
986
|
return e[t.name] = n ? Object.assign({}, n, t, {
|
|
@@ -898,25 +992,27 @@ function mergeByName(e) {
|
|
|
898
992
|
return t[e];
|
|
899
993
|
});
|
|
900
994
|
}
|
|
901
|
-
|
|
995
|
+
//#endregion
|
|
996
|
+
//#region node_modules/@popperjs/core/lib/createPopper.js
|
|
997
|
+
var ct = {
|
|
902
998
|
placement: "bottom",
|
|
903
999
|
modifiers: [],
|
|
904
1000
|
strategy: "absolute"
|
|
905
1001
|
};
|
|
906
|
-
function
|
|
1002
|
+
function lt() {
|
|
907
1003
|
return ![...arguments].some(function(e) {
|
|
908
1004
|
return !(e && typeof e.getBoundingClientRect == "function");
|
|
909
1005
|
});
|
|
910
1006
|
}
|
|
911
|
-
function
|
|
1007
|
+
function ut(e) {
|
|
912
1008
|
e === void 0 && (e = {});
|
|
913
|
-
var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, i = t.defaultOptions, a = i === void 0 ?
|
|
1009
|
+
var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, i = t.defaultOptions, a = i === void 0 ? ct : i;
|
|
914
1010
|
return function(e, t, n) {
|
|
915
1011
|
n === void 0 && (n = a);
|
|
916
1012
|
var i = {
|
|
917
1013
|
placement: "bottom",
|
|
918
1014
|
orderedModifiers: [],
|
|
919
|
-
options: Object.assign({},
|
|
1015
|
+
options: Object.assign({}, ct, a),
|
|
920
1016
|
modifiersData: {},
|
|
921
1017
|
elements: {
|
|
922
1018
|
reference: e,
|
|
@@ -929,10 +1025,10 @@ function popperGenerator(e) {
|
|
|
929
1025
|
setOptions: function(n) {
|
|
930
1026
|
var o = typeof n == "function" ? n(i.options) : n;
|
|
931
1027
|
u(), i.options = Object.assign({}, a, i.options, o), i.scrollParents = {
|
|
932
|
-
reference:
|
|
933
|
-
popper:
|
|
1028
|
+
reference: M(e) ? je(e) : e.contextElement ? je(e.contextElement) : [],
|
|
1029
|
+
popper: je(t)
|
|
934
1030
|
};
|
|
935
|
-
var s =
|
|
1031
|
+
var s = at(st([].concat(r, i.options.modifiers)));
|
|
936
1032
|
return i.orderedModifiers = s.filter(function(e) {
|
|
937
1033
|
return e.enabled;
|
|
938
1034
|
}), l(), c.update();
|
|
@@ -940,10 +1036,10 @@ function popperGenerator(e) {
|
|
|
940
1036
|
forceUpdate: function() {
|
|
941
1037
|
if (!s) {
|
|
942
1038
|
var e = i.elements, t = e.reference, n = e.popper;
|
|
943
|
-
if (
|
|
1039
|
+
if (lt(t, n)) {
|
|
944
1040
|
i.rects = {
|
|
945
|
-
reference:
|
|
946
|
-
popper:
|
|
1041
|
+
reference: rt(t, G(n), i.options.strategy === "fixed"),
|
|
1042
|
+
popper: re(n)
|
|
947
1043
|
}, i.reset = !1, i.placement = i.options.placement, i.orderedModifiers.forEach(function(e) {
|
|
948
1044
|
return i.modifiersData[e.name] = Object.assign({}, e.data);
|
|
949
1045
|
});
|
|
@@ -963,7 +1059,7 @@ function popperGenerator(e) {
|
|
|
963
1059
|
}
|
|
964
1060
|
}
|
|
965
1061
|
},
|
|
966
|
-
update:
|
|
1062
|
+
update: ot(function() {
|
|
967
1063
|
return new Promise(function(e) {
|
|
968
1064
|
c.forceUpdate(), e(i);
|
|
969
1065
|
});
|
|
@@ -972,7 +1068,7 @@ function popperGenerator(e) {
|
|
|
972
1068
|
u(), s = !0;
|
|
973
1069
|
}
|
|
974
1070
|
};
|
|
975
|
-
if (!
|
|
1071
|
+
if (!lt(e, t)) return c;
|
|
976
1072
|
c.setOptions(n).then(function(e) {
|
|
977
1073
|
!s && n.onFirstUpdate && n.onFirstUpdate(e);
|
|
978
1074
|
});
|
|
@@ -998,17 +1094,17 @@ function popperGenerator(e) {
|
|
|
998
1094
|
return c;
|
|
999
1095
|
};
|
|
1000
1096
|
}
|
|
1001
|
-
var
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
] }),
|
|
1097
|
+
var dt = /*#__PURE__*/ ut({ defaultModifiers: [
|
|
1098
|
+
xe,
|
|
1099
|
+
Xe,
|
|
1100
|
+
ye,
|
|
1101
|
+
ee,
|
|
1102
|
+
Je,
|
|
1103
|
+
Ve,
|
|
1104
|
+
$e,
|
|
1105
|
+
he,
|
|
1106
|
+
Ge
|
|
1107
|
+
] }), ft = class e {
|
|
1012
1108
|
constructor(t, n) {
|
|
1013
1109
|
this.element = t, this.touch1 = null, this.touch2 = null, this.touchStartX = null, this.touchStartY = null, this.touchEndX = null, this.touchEndY = null, this.touchMove1 = null, this.touchMove2 = null, this.touchMoveX = null, this.touchMoveY = null, this.velocityX = null, this.velocityY = null, this.longPressTimer = null, this.doubleTapTimer = null, this.doubleTapWaiting = !1, this.thresholdX = 0, this.thresholdY = 0, this.disregardVelocityThresholdX = 0, this.disregardVelocityThresholdY = 0, this.swipingHorizontal = !1, this.swipingVertical = !1, this.swipingDirection = null, this.swipedHorizontal = !1, this.swipedVertical = !1, this.originalDistance = null, this.newDistance = null, this.scale = null, this.originalAngle = null, this.newAngle = null, this.rotation = null, this.handlers = {
|
|
1014
1110
|
panstart: [],
|
|
@@ -1025,7 +1121,7 @@ var createPopper = /* @__PURE__ */ popperGenerator({ defaultModifiers: [
|
|
|
1025
1121
|
pinchend: [],
|
|
1026
1122
|
rotate: [],
|
|
1027
1123
|
rotateend: []
|
|
1028
|
-
}, this._onTouchStart = this.onTouchStart.bind(this), this._onTouchMove = this.onTouchMove.bind(this), this._onTouchEnd = this.onTouchEnd.bind(this), this.opts = Object.assign({}, e.defaults, n), this.element.addEventListener("touchstart", this._onTouchStart,
|
|
1124
|
+
}, this._onTouchStart = this.onTouchStart.bind(this), this._onTouchMove = this.onTouchMove.bind(this), this._onTouchEnd = this.onTouchEnd.bind(this), this.opts = Object.assign({}, e.defaults, n), this.element.addEventListener("touchstart", this._onTouchStart, $), this.element.addEventListener("touchmove", this._onTouchMove, $), this.element.addEventListener("touchend", this._onTouchEnd, $), this.opts.mouseSupport && !("ontouchstart" in window) && (this.element.addEventListener("mousedown", this._onTouchStart, $), document.addEventListener("mousemove", this._onTouchMove, $), document.addEventListener("mouseup", this._onTouchEnd, $));
|
|
1029
1125
|
}
|
|
1030
1126
|
destroy() {
|
|
1031
1127
|
this.element.removeEventListener("touchstart", this._onTouchStart), this.element.removeEventListener("touchmove", this._onTouchMove), this.element.removeEventListener("touchend", this._onTouchEnd), this.element.removeEventListener("mousedown", this._onTouchStart), document.removeEventListener("mousemove", this._onTouchMove), document.removeEventListener("mouseup", this._onTouchEnd), clearTimeout(this.longPressTimer ?? void 0), clearTimeout(this.doubleTapTimer ?? void 0);
|
|
@@ -1076,13 +1172,13 @@ var createPopper = /* @__PURE__ */ popperGenerator({ defaultModifiers: [
|
|
|
1076
1172
|
if (e.type === "mouseup" || t) {
|
|
1077
1173
|
this.touchEndX = e.type === "mouseup" ? e.screenX : t?.screenX ?? 0, this.touchEndY = e.type === "mouseup" ? e.screenY : t?.screenY ?? 0, this.fire("panend", e), clearTimeout(this.longPressTimer ?? void 0);
|
|
1078
1174
|
let n = this.touchEndX - (this.touchStartX ?? 0), r = Math.abs(n), i = this.touchEndY - (this.touchStartY ?? 0), a = Math.abs(i), o = Math.sqrt(n ** 2 + i ** 2), s = Math.abs(o), c = a / r;
|
|
1079
|
-
r > this.thresholdX || a > this.thresholdY || this.opts.diagonalSwipes && (s > this.thresholdX || s > this.thresholdY) ? (this.swipedHorizontal = r > this.thresholdX || this.opts.diagonalSwipes && s > this.thresholdX, this.swipedVertical = a > this.thresholdY || this.opts.diagonalSwipes && s > this.thresholdY, (!this.opts.diagonalSwipes || c < Math.tan((45 - this.opts.diagonalLimit) * Math.PI / 180) || c > Math.tan((45 + this.opts.diagonalLimit) * Math.PI / 180)) && (r >= a && (this.swipedVertical = !1), a > r && (this.swipedHorizontal = !1)), this.swipedHorizontal && (n < 0 ? ((this.velocityX ?? 0) < -this.opts.velocityThreshold || o
|
|
1175
|
+
r > this.thresholdX || a > this.thresholdY || this.opts.diagonalSwipes && (s > this.thresholdX || s > this.thresholdY) ? (this.swipedHorizontal = r > this.thresholdX || this.opts.diagonalSwipes && s > this.thresholdX, this.swipedVertical = a > this.thresholdY || this.opts.diagonalSwipes && s > this.thresholdY, (!this.opts.diagonalSwipes || c < Math.tan((45 - this.opts.diagonalLimit) * Math.PI / 180) || c > Math.tan((45 + this.opts.diagonalLimit) * Math.PI / 180)) && (r >= a && (this.swipedVertical = !1), a > r && (this.swipedHorizontal = !1)), this.swipedHorizontal && (n < 0 ? ((this.velocityX ?? 0) < -this.opts.velocityThreshold || o > this.disregardVelocityThresholdX) && this.fire("swipeleft", e) : ((this.velocityX ?? 0) > this.opts.velocityThreshold || o > this.disregardVelocityThresholdX) && this.fire("swiperight", e)), this.swipedVertical && (i < 0 ? ((this.velocityY ?? 0) < -this.opts.velocityThreshold || o > this.disregardVelocityThresholdY) && this.fire("swipeup", e) : ((this.velocityY ?? 0) > this.opts.velocityThreshold || o > this.disregardVelocityThresholdY) && this.fire("swipedown", e))) : r < this.opts.pressThreshold && a < this.opts.pressThreshold && (this.doubleTapWaiting ? (this.doubleTapWaiting = !1, clearTimeout(this.doubleTapTimer ?? void 0), this.fire("doubletap", e)) : (this.doubleTapWaiting = !0, this.doubleTapTimer = setTimeout(() => this.doubleTapWaiting = !1, this.opts.doubleTapTime), this.fire("tap", e)));
|
|
1080
1176
|
}
|
|
1081
1177
|
!this.touch1 && !this.touch2 && (this.fire("pinchend", e), this.fire("rotateend", e), this.originalDistance = null, this.newDistance = null, this.scale = null, this.originalAngle = null, this.newAngle = null, this.rotation = null);
|
|
1082
1178
|
}
|
|
1083
1179
|
}
|
|
1084
1180
|
};
|
|
1085
|
-
|
|
1181
|
+
ft.defaults = {
|
|
1086
1182
|
threshold: (e, t) => Math.max(25, Math.floor(.15 * (e === "x" ? window.innerWidth || document.body.clientWidth : window.innerHeight || document.body.clientHeight))),
|
|
1087
1183
|
velocityThreshold: 10,
|
|
1088
1184
|
disregardVelocityThreshold: (e, t) => Math.floor(.5 * (e === "x" ? t.element.clientWidth : t.element.clientHeight)),
|
|
@@ -1093,57 +1189,65 @@ TinyGesture.defaults = {
|
|
|
1093
1189
|
doubleTapTime: 300,
|
|
1094
1190
|
mouseSupport: !0
|
|
1095
1191
|
};
|
|
1096
|
-
var
|
|
1192
|
+
var $ = !1;
|
|
1097
1193
|
try {
|
|
1098
1194
|
window.addEventListener("test", null, Object.defineProperty({}, "passive", { get: function() {
|
|
1099
|
-
|
|
1195
|
+
$ = { passive: !0 };
|
|
1100
1196
|
} }));
|
|
1101
1197
|
} catch {}
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1198
|
+
//#endregion
|
|
1199
|
+
//#region src/sn/EventMng.ts
|
|
1200
|
+
var pt = class {
|
|
1201
|
+
cfg;
|
|
1202
|
+
hTag;
|
|
1203
|
+
appPixi;
|
|
1204
|
+
main;
|
|
1205
|
+
layMng;
|
|
1206
|
+
val;
|
|
1207
|
+
scrItr;
|
|
1208
|
+
sys;
|
|
1209
|
+
#e = new l();
|
|
1106
1210
|
#t;
|
|
1107
1211
|
#n;
|
|
1108
|
-
#r = new Map([[0, ""], [1, "middle"]]);
|
|
1109
|
-
constructor(n,
|
|
1110
|
-
if (this.cfg =
|
|
1212
|
+
#r = /* @__PURE__ */ new Map([[0, ""], [1, "middle"]]);
|
|
1213
|
+
constructor(t, n, i, a, l, u, d, m, _) {
|
|
1214
|
+
if (this.cfg = t, this.hTag = n, this.appPixi = i, this.main = a, this.layMng = l, this.val = u, this.scrItr = m, this.sys = _, n.clear_event = (e) => f.clear_event(e), n.event = (e) => this.#_(e), n.set_cancel_skip = () => !1, n.set_focus = (e) => this.#y(e), this.#t = new g(i.view, _), d.setEvtMng(this), m.setOtherObj(this, l), h.setEvtMng(this, _, m), l.setEvtMng(this), p.setFcs(this.#t), _.setFire((e, t) => p.fire(e, t)), o.isDbg) {
|
|
1111
1215
|
let e = { pause: () => {
|
|
1112
|
-
if (!
|
|
1216
|
+
if (!p.isWait) return;
|
|
1113
1217
|
let e = {};
|
|
1114
|
-
|
|
1218
|
+
m.recodeDesign(e), _.callHook("_enterDesign", e), _.send2Dbg("_enterDesign", e);
|
|
1115
1219
|
} };
|
|
1116
|
-
e.attach = e.stopOnEntry = e.stopOnStep = e.stopOnStepIn = e.stopOnStepOut = e.stopOnBackstep = e.pause,
|
|
1220
|
+
e.attach = e.stopOnEntry = e.stopOnStep = e.stopOnStepIn = e.stopOnStepOut = e.stopOnBackstep = e.pause, _.addHook((t) => e[t]?.());
|
|
1117
1221
|
}
|
|
1118
|
-
|
|
1222
|
+
r("\n.sn_hint {\n background-color: #3c3225;\n color: white;\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 1.2em;\n z-index: 10000;\n pointer-events: none;\n user-select: none;\n}\n\n.sn_hint_ar,\n.sn_hint_ar::before {\n position: absolute;\n width: 8px;\n height: 8px;\n background: inherit;\n}\n.sn_hint_ar {\n visibility: hidden;\n}\n.sn_hint_ar::before {\n visibility: visible;\n content: '';\n transform: rotate(45deg);\n}\n\n.sn_hint[data-popper-placement^='top'] > .sn_hint_ar {bottom: -4px;}\n.sn_hint[data-popper-placement^='bottom'] > .sn_hint_ar {top: -4px;}\n.sn_hint[data-popper-placement^='left'] > .sn_hint_ar {right: -4px;}\n.sn_hint[data-popper-placement^='right'] > .sn_hint_ar {left: -4px;}\n"), a.cvs.parentElement?.insertAdjacentHTML("beforeend", "\n<div class=\"sn_hint\" role=\"tooltip\">\n <span>Dummy</span>\n <div class=\"sn_hint_ar\" data-popper-arrow></div>\n</div>"), this.#f = document.querySelector(".sn_hint"), this.#p = this.#f.querySelector("span"), this.#m = dt(this.#d, this.#f), this.#f.hidden = !0, i.stage.interactive = !0, this.#e.add(document.body, e, (e) => this.#a(e)), this.#e.add(document.body, "keyup", () => f.resetFired()), this.#e.add(a.cvs, "contextmenu", (e) => {
|
|
1119
1223
|
let t = this.#o(e) + "rightclick";
|
|
1120
|
-
|
|
1224
|
+
p.fire(t, e, !0), e.preventDefault();
|
|
1121
1225
|
});
|
|
1122
|
-
let { width:
|
|
1123
|
-
this.#n = new
|
|
1226
|
+
let { width: v, height: y } = t.oCfg.window, b = Math.floor(v > y ? y / 3 : v / 3);
|
|
1227
|
+
this.#n = new ft(a.cvs, {
|
|
1124
1228
|
velocityThreshold: 0,
|
|
1125
|
-
disregardVelocityThreshold: (e) => Math.floor(
|
|
1229
|
+
disregardVelocityThreshold: (e) => Math.floor(b * (e === "x" ? 1 : .5))
|
|
1126
1230
|
});
|
|
1127
|
-
let
|
|
1231
|
+
let x = !1;
|
|
1128
1232
|
this.#n.on("tap", (e) => {
|
|
1129
|
-
if (
|
|
1233
|
+
if (x) return;
|
|
1130
1234
|
if (e instanceof TouchEvent) {
|
|
1131
|
-
|
|
1235
|
+
p.fire("click", e, !0), f.resetFired();
|
|
1132
1236
|
return;
|
|
1133
1237
|
}
|
|
1134
1238
|
if (e.button > 1) return;
|
|
1135
1239
|
let t = this.#o(e) + `${this.#r.get(e.button) ?? ""}click`;
|
|
1136
|
-
|
|
1137
|
-
}), this.#e.add(window, "pointerout", () =>
|
|
1138
|
-
if (
|
|
1139
|
-
|
|
1240
|
+
p.fire(t, e, !0), f.resetFired();
|
|
1241
|
+
}), this.#e.add(window, "pointerout", () => f.resetFired()), this.#n.on("longpress", (e) => {
|
|
1242
|
+
if (x = !0, e instanceof TouchEvent) {
|
|
1243
|
+
p.fire("longpress", e, !0);
|
|
1140
1244
|
return;
|
|
1141
1245
|
}
|
|
1142
1246
|
let t = this.#o(e) + `${this.#r.get(e.button) ?? ""}longpress`;
|
|
1143
|
-
|
|
1247
|
+
p.fire(t, e, !0);
|
|
1144
1248
|
}), this.#n.on("panend", () => {
|
|
1145
|
-
|
|
1146
|
-
|
|
1249
|
+
x && queueMicrotask(() => {
|
|
1250
|
+
x = !1;
|
|
1147
1251
|
});
|
|
1148
1252
|
}), [
|
|
1149
1253
|
"swiperight",
|
|
@@ -1153,32 +1257,32 @@ var eDownKeys = /* @__PURE__ */ function(e) {
|
|
|
1153
1257
|
].forEach((e) => {
|
|
1154
1258
|
this.#n.on(e, (t) => {
|
|
1155
1259
|
if (t instanceof TouchEvent) {
|
|
1156
|
-
|
|
1260
|
+
p.fire(e, t, !0);
|
|
1157
1261
|
return;
|
|
1158
1262
|
}
|
|
1159
1263
|
let n = this.#o(t) + e;
|
|
1160
|
-
|
|
1264
|
+
p.fire(n, t, !0);
|
|
1161
1265
|
});
|
|
1162
1266
|
});
|
|
1163
|
-
let
|
|
1267
|
+
let S = () => u.setVal_Nochk("tmp", "const.sn.navigator.language", navigator.language);
|
|
1164
1268
|
this.#e.add(globalThis, "languagechange", (e) => {
|
|
1165
|
-
|
|
1166
|
-
}),
|
|
1167
|
-
let
|
|
1168
|
-
|
|
1169
|
-
},
|
|
1170
|
-
w
|
|
1171
|
-
|
|
1269
|
+
S(), p.fire("sn:chgNavLang", e), s();
|
|
1270
|
+
}), S();
|
|
1271
|
+
let C = (e) => {
|
|
1272
|
+
o.isDarkMode = e.matches, u.setVal_Nochk("tmp", "const.sn.isDarkMode", o.isDarkMode);
|
|
1273
|
+
}, w = globalThis.matchMedia("(prefers-color-scheme: dark)");
|
|
1274
|
+
C(w), this.#e.add(w, "change", (e) => {
|
|
1275
|
+
C(e), p.fire("sn:chgDarkMode", e);
|
|
1172
1276
|
});
|
|
1173
|
-
let
|
|
1174
|
-
"WheelEvent" in globalThis && (this.#e.add(
|
|
1277
|
+
let T = (e, t) => {};
|
|
1278
|
+
"WheelEvent" in globalThis && (this.#e.add(a.cvs, "wheel", (e) => this.#s(e), { passive: !0 }), this.#i = (e) => this.#e.add(e, "wheel", (e) => this.#s(e), { passive: !0 }), T = (e, t) => e.add(a.cvs, "wheel", (e) => {
|
|
1175
1279
|
e.deltaY <= 0 || (e.stopPropagation(), t());
|
|
1176
|
-
})),
|
|
1177
|
-
let n = new
|
|
1280
|
+
})), p.init(t, n, a, u, m, l, this, d, T), import("./gamepad.js").then(({ GamepadListener: t }) => {
|
|
1281
|
+
let n = new t({
|
|
1178
1282
|
analog: !1,
|
|
1179
1283
|
deadZone: .3
|
|
1180
1284
|
});
|
|
1181
|
-
|
|
1285
|
+
o.debugLog && (n.on("gamepad:connected", ({ detail: e }) => console.log(`👺<'gamepad:connected' index:${String(e.index)} id:${e.gamepad.id}`)), n.on("gamepad:disconnected", ({ detail: e }) => console.log(`👺<'gamepad:disconnected' index:${String(e.index)} id:${e.gamepad.id}`)));
|
|
1182
1286
|
let r = [
|
|
1183
1287
|
"",
|
|
1184
1288
|
"ArrowUp",
|
|
@@ -1190,46 +1294,46 @@ var eDownKeys = /* @__PURE__ */ function(e) {
|
|
|
1190
1294
|
"ArrowDown",
|
|
1191
1295
|
""
|
|
1192
1296
|
], i = [0, 0];
|
|
1193
|
-
n.on("gamepad:axis", ({ detail:
|
|
1297
|
+
n.on("gamepad:axis", ({ detail: t }) => {
|
|
1194
1298
|
if (!document.hasFocus()) return;
|
|
1195
|
-
i[
|
|
1196
|
-
let [n = 0, a = 0] = i, o =
|
|
1197
|
-
if (!
|
|
1198
|
-
let
|
|
1199
|
-
(!
|
|
1200
|
-
key:
|
|
1299
|
+
i[t.axis] = t.value;
|
|
1300
|
+
let [n = 0, a = 0] = i, o = (a + 1) * 3 + (n + 1), s = r[o];
|
|
1301
|
+
if (!s) return;
|
|
1302
|
+
let l = this.#t.getFocus();
|
|
1303
|
+
(!l || l instanceof c ? globalThis : l).dispatchEvent(new KeyboardEvent(e, {
|
|
1304
|
+
key: s,
|
|
1201
1305
|
bubbles: !0
|
|
1202
|
-
})), !(!
|
|
1203
|
-
}), n.on("gamepad:button", (
|
|
1204
|
-
if (document.hasFocus()) if (
|
|
1205
|
-
|
|
1206
|
-
let
|
|
1207
|
-
(!
|
|
1306
|
+
})), !(!l || l instanceof c) && (p.cancelAutoSkip(), l.getAttribute("type") === "range" && l.dispatchEvent(new InputEvent("input", { bubbles: !0 })));
|
|
1307
|
+
}), n.on("gamepad:button", (t) => {
|
|
1308
|
+
if (document.hasFocus()) if (t.detail.button % 2 == 0) {
|
|
1309
|
+
p.cancelAutoSkip();
|
|
1310
|
+
let t = this.#t.getFocus();
|
|
1311
|
+
(!t || t instanceof c ? document.body : t).dispatchEvent(new KeyboardEvent(e, {
|
|
1208
1312
|
key: "Enter",
|
|
1209
1313
|
bubbles: !0
|
|
1210
1314
|
}));
|
|
1211
|
-
} else
|
|
1315
|
+
} else p.fire("middleclick", t, !0);
|
|
1212
1316
|
}), n.start();
|
|
1213
1317
|
}), this.#e.add(document, "keyup", (e) => {
|
|
1214
|
-
e.isComposing || e.key in this.#b && (this.#b[e.key] =
|
|
1215
|
-
}),
|
|
1318
|
+
e.isComposing || e.key in this.#b && (this.#b[e.key] = 0);
|
|
1319
|
+
}), u.defTmp("const.sn.key.alternate", () => this.#b.Alt > 0), u.defTmp("const.sn.key.command", () => this.#b.Meta > 0), u.defTmp("const.sn.key.control", () => this.#b.Control > 0), u.defTmp("const.sn.key.end", () => this.#b.End > 0), u.defTmp("const.sn.key.escape", () => this.#b.Escape > 0), u.defTmp("const.sn.key.back", () => this.#b.GoBack > 0);
|
|
1216
1320
|
}
|
|
1217
|
-
resvFlameEvent(
|
|
1218
|
-
this.#e.add(
|
|
1219
|
-
|
|
1220
|
-
}), this.#i(
|
|
1321
|
+
resvFlameEvent(t) {
|
|
1322
|
+
this.#e.add(t, e, (e) => this.#a(e)), this.#e.add(t, "contextmenu", (e) => {
|
|
1323
|
+
p.fire(this.#o(e) + "rightclick", e, !0), e.preventDefault();
|
|
1324
|
+
}), this.#i(t), this.#e.add(t, i, (e) => {
|
|
1221
1325
|
if (e instanceof TouchEvent) {
|
|
1222
|
-
|
|
1326
|
+
p.fire("click", e, !0);
|
|
1223
1327
|
return;
|
|
1224
1328
|
}
|
|
1225
1329
|
if (e.button > 1) return;
|
|
1226
1330
|
let t = this.#o(e) + `${this.#r.get(e.button) ?? ""}click`;
|
|
1227
|
-
|
|
1228
|
-
}), this.#e.add(
|
|
1331
|
+
p.fire(t, e, !0);
|
|
1332
|
+
}), this.#e.add(t, "pointerup", () => f.resetFired()), this.#e.add(t, "pointerout", () => f.resetFired());
|
|
1229
1333
|
}
|
|
1230
1334
|
#i = (e) => {};
|
|
1231
1335
|
#a(e) {
|
|
1232
|
-
e.isComposing || (e.key in this.#b && (this.#b[e.key] = e.repeat ?
|
|
1336
|
+
e.isComposing || (e.key in this.#b && (this.#b[e.key] = e.repeat ? 2 : 1), e.preventDefault(), p.fire(d.modKey(e) + e.key, e, !0));
|
|
1233
1337
|
}
|
|
1234
1338
|
#o(e) {
|
|
1235
1339
|
return (e.altKey ? "alt+" : "") + (e.ctrlKey ? "ctrl+" : "") + (e.metaKey ? "meta+" : "") + (e.shiftKey ? "shift+" : "");
|
|
@@ -1241,7 +1345,7 @@ var eDownKeys = /* @__PURE__ */ function(e) {
|
|
|
1241
1345
|
}
|
|
1242
1346
|
this.#c = !0, this.#u();
|
|
1243
1347
|
let t = this.#o(e) + (e.deltaY > 0 ? "downwheel" : "upwheel");
|
|
1244
|
-
|
|
1348
|
+
p.fire(t, e, !0);
|
|
1245
1349
|
}
|
|
1246
1350
|
#c = !1;
|
|
1247
1351
|
#l = !1;
|
|
@@ -1256,37 +1360,37 @@ var eDownKeys = /* @__PURE__ */ function(e) {
|
|
|
1256
1360
|
}
|
|
1257
1361
|
destroy() {
|
|
1258
1362
|
for (let e of Array.from(document.getElementsByClassName("sn_hint"))) e.parentElement?.removeChild(e);
|
|
1259
|
-
this.#n.destroy(),
|
|
1363
|
+
this.#n.destroy(), p.destroy(), this.#t.destroy(), this.#e.clear();
|
|
1260
1364
|
}
|
|
1261
1365
|
unButton(e) {
|
|
1262
1366
|
this.#t.remove(e);
|
|
1263
1367
|
}
|
|
1264
|
-
button(e, t,
|
|
1368
|
+
button(e, t, r, i, s) {
|
|
1265
1369
|
!e.fn && !e.label && !e.url && this.main.errScript("fnまたはlabelまたはurlは必須です"), e.fn ??= this.scrItr.scriptFn, t.interactive = !0, t.cursor = "pointer";
|
|
1266
|
-
let c = e.key?.toLowerCase() ?? " ", l =
|
|
1267
|
-
|
|
1268
|
-
e.preventDefault?.(),
|
|
1370
|
+
let c = e.key?.toLowerCase() ?? " ", l = a(e, "global", !1);
|
|
1371
|
+
f.setEvt2Fnc(l, c, () => this.main.resumeByJumpOrCall(e)), t.on(n, (e) => {
|
|
1372
|
+
e.preventDefault?.(), p.fire(c, e, !0);
|
|
1269
1373
|
});
|
|
1270
|
-
let
|
|
1271
|
-
|
|
1272
|
-
}, g = () => (
|
|
1374
|
+
let d = e.hint ? () => this.#g(e, t) : () => {}, h = () => {
|
|
1375
|
+
r(), this.#f.hidden = !0;
|
|
1376
|
+
}, g = () => (d(), i());
|
|
1273
1377
|
if (t.on("pointerover", g), t.on("pointerout", () => {
|
|
1274
|
-
this.#t.isFocus(t) ? g() :
|
|
1378
|
+
this.#t.isFocus(t) ? g() : h();
|
|
1275
1379
|
}), t.on("pointerdown", () => {
|
|
1276
1380
|
this.#f.hidden = !0;
|
|
1277
1381
|
let e = this.#t.getFocus();
|
|
1278
|
-
|
|
1279
|
-
}), t.on("pointerup",
|
|
1280
|
-
this.#t.isFocus(t) ? g() :
|
|
1281
|
-
}), this.#t.add(t, g,
|
|
1382
|
+
s(), e instanceof m && e.normal();
|
|
1383
|
+
}), t.on("pointerup", o.isMobile ? h : () => {
|
|
1384
|
+
this.#t.isFocus(t) ? g() : h();
|
|
1385
|
+
}), this.#t.add(t, g, h), e.clickse && (e.clicksebuf ??= "SYS", this.cfg.searchPath(e.clickse, u.SOUND), t.on("pointerdown", () => this.hTag.playse({
|
|
1282
1386
|
fn: e.clickse,
|
|
1283
1387
|
...e.clicksebuf ? { buf: e.clicksebuf } : {},
|
|
1284
1388
|
join: !1
|
|
1285
|
-
}))), e.enterse && (e.entersebuf ??= "SYS", this.cfg.searchPath(e.enterse,
|
|
1389
|
+
}))), e.enterse && (e.entersebuf ??= "SYS", this.cfg.searchPath(e.enterse, u.SOUND), t.on("pointerover", () => this.hTag.playse({
|
|
1286
1390
|
fn: e.enterse,
|
|
1287
1391
|
...e.entersebuf ? { buf: e.entersebuf } : {},
|
|
1288
1392
|
join: !1
|
|
1289
|
-
}))), e.leavese && (e.leavesebuf ??= "SYS", this.cfg.searchPath(e.leavese,
|
|
1393
|
+
}))), e.leavese && (e.leavesebuf ??= "SYS", this.cfg.searchPath(e.leavese, u.SOUND), t.on("pointerout", () => this.hTag.playse({
|
|
1290
1394
|
fn: e.leavese,
|
|
1291
1395
|
...e.leavesebuf ? { buf: e.leavesebuf } : {},
|
|
1292
1396
|
join: !1
|
|
@@ -1297,7 +1401,7 @@ var eDownKeys = /* @__PURE__ */ function(e) {
|
|
|
1297
1401
|
call: !0,
|
|
1298
1402
|
key: n
|
|
1299
1403
|
};
|
|
1300
|
-
|
|
1404
|
+
f.setEvt2Fnc(l, n, () => this.main.resumeByJumpOrCall(r)), t.on("pointerover", (e) => p.fire(n, e));
|
|
1301
1405
|
}
|
|
1302
1406
|
if (e.onleave) {
|
|
1303
1407
|
let n = c + e.onleave.toLowerCase(), r = {
|
|
@@ -1306,7 +1410,7 @@ var eDownKeys = /* @__PURE__ */ function(e) {
|
|
|
1306
1410
|
call: !0,
|
|
1307
1411
|
key: n
|
|
1308
1412
|
};
|
|
1309
|
-
|
|
1413
|
+
f.setEvt2Fnc(l, n, () => this.main.resumeByJumpOrCall(r)), t.on("pointerout", (e) => p.fire(n, e));
|
|
1310
1414
|
}
|
|
1311
1415
|
}
|
|
1312
1416
|
#d = { getBoundingClientRect: (e = 0, t = 0) => DOMRect.fromRect({
|
|
@@ -1325,10 +1429,10 @@ var eDownKeys = /* @__PURE__ */ function(e) {
|
|
|
1325
1429
|
options: { fallbackPlacements: ["top", "bottom"] }
|
|
1326
1430
|
}]
|
|
1327
1431
|
};
|
|
1328
|
-
#g(e,
|
|
1329
|
-
let r =
|
|
1432
|
+
#g(e, n) {
|
|
1433
|
+
let r = n instanceof m ? n.getBtnBounds() : n.getBounds();
|
|
1330
1434
|
if (e[":タグ名"] !== "link") {
|
|
1331
|
-
let e =
|
|
1435
|
+
let e = n.parent.parent;
|
|
1332
1436
|
r.x += e.x, r.y += e.y;
|
|
1333
1437
|
}
|
|
1334
1438
|
if (!e.hint) {
|
|
@@ -1345,7 +1449,7 @@ var eDownKeys = /* @__PURE__ */ function(e) {
|
|
|
1345
1449
|
...JSON.parse(e.hint_opt)
|
|
1346
1450
|
} : this.#h).then(async () => {
|
|
1347
1451
|
await this.#m.update(), this.#f.hidden = !1;
|
|
1348
|
-
}).catch((
|
|
1452
|
+
}).catch((n) => console.error(t(e, "hint_opt", `dispHint 引数 hint_opt エラー ${n instanceof SyntaxError ? n.message : ""}`)));
|
|
1349
1453
|
}
|
|
1350
1454
|
hideHint() {
|
|
1351
1455
|
this.#f.hidden = !0;
|
|
@@ -1353,22 +1457,22 @@ var eDownKeys = /* @__PURE__ */ function(e) {
|
|
|
1353
1457
|
cvsResize() {
|
|
1354
1458
|
this.hideHint();
|
|
1355
1459
|
}
|
|
1356
|
-
#_(
|
|
1357
|
-
let n =
|
|
1460
|
+
#_(t) {
|
|
1461
|
+
let n = t.key;
|
|
1358
1462
|
if (!n) throw "keyは必須です";
|
|
1359
|
-
let r = n.toLowerCase(), i =
|
|
1360
|
-
if (
|
|
1463
|
+
let r = n.toLowerCase(), i = a(t, "call", !1), o = a(t, "global", !1), { fn: s, label: c, url: l } = t;
|
|
1464
|
+
if (a(t, "del", !1)) {
|
|
1361
1465
|
if (s || c || i || l) throw "fn/label/callとdelは同時指定できません";
|
|
1362
|
-
return
|
|
1466
|
+
return f.clear_eventer(n, o, r), !1;
|
|
1363
1467
|
}
|
|
1364
1468
|
if (!s && !c && !l) throw "fn,label,url いずれかは必須です";
|
|
1365
|
-
if (
|
|
1366
|
-
let r =
|
|
1469
|
+
if (t.fn ??= this.scrItr.scriptFn, n.startsWith("dom=")) {
|
|
1470
|
+
let r = f.getHtmlElmList(n);
|
|
1367
1471
|
if (r.el.length === 0) {
|
|
1368
|
-
if (
|
|
1472
|
+
if (a(t, "need_err", !0)) throw `HTML内にセレクタ(${r.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
|
|
1369
1473
|
return !1;
|
|
1370
1474
|
}
|
|
1371
|
-
let i = ["click",
|
|
1475
|
+
let i = ["click", e];
|
|
1372
1476
|
switch (r.el[0].type ?? "") {
|
|
1373
1477
|
case "checkbox":
|
|
1374
1478
|
i = ["input"];
|
|
@@ -1381,20 +1485,20 @@ var eDownKeys = /* @__PURE__ */ function(e) {
|
|
|
1381
1485
|
i = ["input", "change"];
|
|
1382
1486
|
break;
|
|
1383
1487
|
}
|
|
1384
|
-
let
|
|
1385
|
-
for (let e = 0; e <
|
|
1488
|
+
let o = i.length;
|
|
1489
|
+
for (let e = 0; e < o; ++e) {
|
|
1386
1490
|
let t = i[e];
|
|
1387
1491
|
r.el.forEach((i) => {
|
|
1388
1492
|
this.#e.add(i, t, (e) => {
|
|
1389
|
-
if (!
|
|
1493
|
+
if (!p.isWait || this.layMng.getFrmDisabled(r.id) || t === "keydown" && e.key !== "Enter") return;
|
|
1390
1494
|
let a = i.dataset;
|
|
1391
1495
|
for (let [e, t] of Object.entries(a)) this.val.setVal_Nochk("tmp", `sn.event.domdata.${e}`, t);
|
|
1392
|
-
|
|
1496
|
+
p.fire(n, e);
|
|
1393
1497
|
}), e === 0 && this.#t.add(i, () => this.#v(i) ? (i.focus(), !0) : !1, () => {});
|
|
1394
1498
|
});
|
|
1395
1499
|
}
|
|
1396
1500
|
}
|
|
1397
|
-
return
|
|
1501
|
+
return f.setEvt2Fnc(o, r, () => this.main.resumeByJumpOrCall(t)), !1;
|
|
1398
1502
|
}
|
|
1399
1503
|
#v(e) {
|
|
1400
1504
|
if (!e || e.offsetParent === null) return !1;
|
|
@@ -1408,13 +1512,13 @@ var eDownKeys = /* @__PURE__ */ function(e) {
|
|
|
1408
1512
|
#y(e) {
|
|
1409
1513
|
let { add: t, del: n, to: r } = e;
|
|
1410
1514
|
if (t?.startsWith("dom=")) {
|
|
1411
|
-
let n =
|
|
1412
|
-
if (n.el.length === 0 &&
|
|
1515
|
+
let n = f.getHtmlElmList(t);
|
|
1516
|
+
if (n.el.length === 0 && a(e, "need_err", !0)) throw `HTML内にセレクタ(${n.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
|
|
1413
1517
|
return n.el.forEach((e) => this.#t.add(e, () => this.#v(e) ? (e.focus(), !0) : !1, () => {})), !1;
|
|
1414
1518
|
}
|
|
1415
1519
|
if (n?.startsWith("dom=")) {
|
|
1416
|
-
let t =
|
|
1417
|
-
if (t.el.length === 0 &&
|
|
1520
|
+
let t = f.getHtmlElmList(n);
|
|
1521
|
+
if (t.el.length === 0 && a(e, "need_err", !0)) throw `HTML内にセレクタ(${t.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
|
|
1418
1522
|
return t.el.forEach((e) => this.#t.remove(e)), !1;
|
|
1419
1523
|
}
|
|
1420
1524
|
if (!r) throw "[set_focus] add か to は必須です";
|
|
@@ -1432,20 +1536,21 @@ var eDownKeys = /* @__PURE__ */ function(e) {
|
|
|
1432
1536
|
return !1;
|
|
1433
1537
|
}
|
|
1434
1538
|
get isSkipping() {
|
|
1435
|
-
return
|
|
1539
|
+
return p.isSkipping ? !0 : Object.keys(this.#b).some((e) => this.#b[e] === 2);
|
|
1436
1540
|
}
|
|
1437
1541
|
#b = {
|
|
1438
|
-
Alt:
|
|
1439
|
-
Meta:
|
|
1440
|
-
Control:
|
|
1441
|
-
ArrowDown:
|
|
1442
|
-
End:
|
|
1443
|
-
Enter:
|
|
1444
|
-
Escape:
|
|
1445
|
-
" ":
|
|
1446
|
-
GoBack:
|
|
1542
|
+
Alt: 0,
|
|
1543
|
+
Meta: 0,
|
|
1544
|
+
Control: 0,
|
|
1545
|
+
ArrowDown: 0,
|
|
1546
|
+
End: 0,
|
|
1547
|
+
Enter: 0,
|
|
1548
|
+
Escape: 0,
|
|
1549
|
+
" ": 0,
|
|
1550
|
+
GoBack: 0
|
|
1447
1551
|
};
|
|
1448
1552
|
};
|
|
1449
|
-
|
|
1553
|
+
//#endregion
|
|
1554
|
+
export { pt as EventMng };
|
|
1450
1555
|
|
|
1451
1556
|
//# sourceMappingURL=EventMng.js.map
|