@famibee/skynovel 2.0.2 → 2.0.3
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 +985 -950
- 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 +2631 -2593
- 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 +418 -418
- 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 +985 -950
- 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 +11 -11
- 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 -21
package/dist/web.js
CHANGED
|
@@ -1,430 +1,427 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime.js";
|
|
2
2
|
import { l as argChk_Num, s as argChk_Boolean, t as CmnLib, u as getDateStr } from "./CmnLib.js";
|
|
3
|
-
import "./CmnInterface.js";
|
|
4
|
-
import "./pixi.js";
|
|
5
|
-
import "./EventListenerCtn.js";
|
|
6
|
-
import "./ConfigBase.js";
|
|
7
3
|
import { t as SysBase } from "./SysBase.js";
|
|
8
4
|
import { t as Layer } from "./Layer.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
5
|
+
//#region node_modules/store/src/util.js
|
|
6
|
+
var require_util = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
7
|
+
var n = r();
|
|
8
|
+
t.exports = {
|
|
9
|
+
assign: n,
|
|
10
|
+
create: i(),
|
|
11
|
+
trim: a(),
|
|
12
|
+
bind: o,
|
|
13
|
+
slice: s,
|
|
14
|
+
each: c,
|
|
15
|
+
map: l,
|
|
16
|
+
pluck: u,
|
|
17
|
+
isList: d,
|
|
18
|
+
isFunction: p,
|
|
19
|
+
isObject: m,
|
|
23
20
|
Global: typeof window < "u" ? window : global
|
|
24
21
|
};
|
|
25
|
-
function
|
|
26
|
-
return Object.assign ? Object.assign : function(
|
|
27
|
-
for (var i = 1; i < arguments.length; i++)
|
|
28
|
-
|
|
22
|
+
function r() {
|
|
23
|
+
return Object.assign ? Object.assign : function(e, t, n, r) {
|
|
24
|
+
for (var i = 1; i < arguments.length; i++) c(Object(arguments[i]), function(t, n) {
|
|
25
|
+
e[n] = t;
|
|
29
26
|
});
|
|
30
|
-
return
|
|
27
|
+
return e;
|
|
31
28
|
};
|
|
32
29
|
}
|
|
33
|
-
function
|
|
34
|
-
if (Object.create) return function(
|
|
35
|
-
var
|
|
36
|
-
return
|
|
30
|
+
function i() {
|
|
31
|
+
if (Object.create) return function(e, t, r, i) {
|
|
32
|
+
var a = s(arguments, 1);
|
|
33
|
+
return n.apply(this, [Object.create(e)].concat(a));
|
|
37
34
|
};
|
|
38
35
|
{
|
|
39
|
-
function
|
|
40
|
-
return function(
|
|
41
|
-
var
|
|
42
|
-
return
|
|
36
|
+
function e() {}
|
|
37
|
+
return function(t, r, i, a) {
|
|
38
|
+
var o = s(arguments, 1);
|
|
39
|
+
return e.prototype = t, n.apply(this, [new e()].concat(o));
|
|
43
40
|
};
|
|
44
41
|
}
|
|
45
42
|
}
|
|
46
|
-
function
|
|
47
|
-
return String.prototype.trim ? function(
|
|
48
|
-
return String.prototype.trim.call(
|
|
49
|
-
} : function(
|
|
50
|
-
return
|
|
43
|
+
function a() {
|
|
44
|
+
return String.prototype.trim ? function(e) {
|
|
45
|
+
return String.prototype.trim.call(e);
|
|
46
|
+
} : function(e) {
|
|
47
|
+
return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
51
48
|
};
|
|
52
49
|
}
|
|
53
|
-
function
|
|
50
|
+
function o(e, t) {
|
|
54
51
|
return function() {
|
|
55
|
-
return
|
|
52
|
+
return t.apply(e, Array.prototype.slice.call(arguments, 0));
|
|
56
53
|
};
|
|
57
54
|
}
|
|
58
|
-
function
|
|
59
|
-
return Array.prototype.slice.call(
|
|
55
|
+
function s(e, t) {
|
|
56
|
+
return Array.prototype.slice.call(e, t || 0);
|
|
60
57
|
}
|
|
61
|
-
function
|
|
62
|
-
|
|
63
|
-
return
|
|
58
|
+
function c(e, t) {
|
|
59
|
+
u(e, function(e, n) {
|
|
60
|
+
return t(e, n), !1;
|
|
64
61
|
});
|
|
65
62
|
}
|
|
66
|
-
function
|
|
67
|
-
var
|
|
68
|
-
return
|
|
69
|
-
return
|
|
70
|
-
}),
|
|
63
|
+
function l(e, t) {
|
|
64
|
+
var n = d(e) ? [] : {};
|
|
65
|
+
return u(e, function(e, r) {
|
|
66
|
+
return n[r] = t(e, r), !1;
|
|
67
|
+
}), n;
|
|
71
68
|
}
|
|
72
|
-
function
|
|
73
|
-
if (
|
|
74
|
-
for (var
|
|
75
|
-
} else for (var
|
|
69
|
+
function u(e, t) {
|
|
70
|
+
if (d(e)) {
|
|
71
|
+
for (var n = 0; n < e.length; n++) if (t(e[n], n)) return e[n];
|
|
72
|
+
} else for (var r in e) if (e.hasOwnProperty(r) && t(e[r], r)) return e[r];
|
|
76
73
|
}
|
|
77
|
-
function
|
|
78
|
-
return
|
|
74
|
+
function d(e) {
|
|
75
|
+
return e != null && typeof e != "function" && typeof e.length == "number";
|
|
79
76
|
}
|
|
80
|
-
function
|
|
81
|
-
return
|
|
77
|
+
function p(e) {
|
|
78
|
+
return e && {}.toString.call(e) === "[object Function]";
|
|
82
79
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
80
|
+
function m(e) {
|
|
81
|
+
return e && {}.toString.call(e) === "[object Object]";
|
|
85
82
|
}
|
|
86
|
-
})), require_store_engine = /* @__PURE__ */ __commonJSMin(((
|
|
87
|
-
var
|
|
88
|
-
|
|
89
|
-
var
|
|
83
|
+
})), require_store_engine = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
84
|
+
var n = require_util(), r = n.slice, i = n.pluck, a = n.each, o = n.bind, s = n.create, c = n.isList, l = n.isFunction, u = n.isObject;
|
|
85
|
+
t.exports = { createStore: m };
|
|
86
|
+
var d = {
|
|
90
87
|
version: "2.0.12",
|
|
91
88
|
enabled: !1,
|
|
92
|
-
get: function(
|
|
93
|
-
var
|
|
94
|
-
return this._deserialize(
|
|
89
|
+
get: function(e, t) {
|
|
90
|
+
var n = this.storage.read(this._namespacePrefix + e);
|
|
91
|
+
return this._deserialize(n, t);
|
|
95
92
|
},
|
|
96
|
-
set: function(
|
|
97
|
-
return
|
|
93
|
+
set: function(e, t) {
|
|
94
|
+
return t === void 0 ? this.remove(e) : (this.storage.write(this._namespacePrefix + e, this._serialize(t)), t);
|
|
98
95
|
},
|
|
99
|
-
remove: function(
|
|
100
|
-
this.storage.remove(this._namespacePrefix +
|
|
96
|
+
remove: function(e) {
|
|
97
|
+
this.storage.remove(this._namespacePrefix + e);
|
|
101
98
|
},
|
|
102
|
-
each: function(
|
|
103
|
-
var
|
|
104
|
-
this.storage.each(function(
|
|
105
|
-
|
|
99
|
+
each: function(e) {
|
|
100
|
+
var t = this;
|
|
101
|
+
this.storage.each(function(n, r) {
|
|
102
|
+
e.call(t, t._deserialize(n), (r || "").replace(t._namespaceRegexp, ""));
|
|
106
103
|
});
|
|
107
104
|
},
|
|
108
105
|
clearAll: function() {
|
|
109
106
|
this.storage.clearAll();
|
|
110
107
|
},
|
|
111
|
-
hasNamespace: function(
|
|
112
|
-
return this._namespacePrefix == "__storejs_" +
|
|
108
|
+
hasNamespace: function(e) {
|
|
109
|
+
return this._namespacePrefix == "__storejs_" + e + "_";
|
|
113
110
|
},
|
|
114
111
|
createStore: function() {
|
|
115
|
-
return
|
|
112
|
+
return m.apply(this, arguments);
|
|
116
113
|
},
|
|
117
|
-
addPlugin: function(
|
|
118
|
-
this._addPlugin(
|
|
114
|
+
addPlugin: function(e) {
|
|
115
|
+
this._addPlugin(e);
|
|
119
116
|
},
|
|
120
|
-
namespace: function(
|
|
121
|
-
return
|
|
117
|
+
namespace: function(e) {
|
|
118
|
+
return m(this.storage, this.plugins, e);
|
|
122
119
|
}
|
|
123
120
|
};
|
|
124
|
-
function
|
|
125
|
-
var
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
function
|
|
129
|
-
|
|
130
|
-
var
|
|
131
|
-
if (!/^[a-zA-Z0-9_\-]*$/.test(
|
|
132
|
-
var
|
|
133
|
-
_namespacePrefix:
|
|
134
|
-
_namespaceRegexp:
|
|
135
|
-
_testStorage: function(
|
|
121
|
+
function p() {
|
|
122
|
+
var e = typeof console > "u" ? null : console;
|
|
123
|
+
e && (e.warn ? e.warn : e.log).apply(e, arguments);
|
|
124
|
+
}
|
|
125
|
+
function m(e, t, n) {
|
|
126
|
+
n ||= "", e && !c(e) && (e = [e]), t && !c(t) && (t = [t]);
|
|
127
|
+
var m = n ? "__storejs_" + n + "_" : "", h = n ? RegExp("^" + m) : null;
|
|
128
|
+
if (!/^[a-zA-Z0-9_\-]*$/.test(n)) throw Error("store.js namespaces can only have alphanumerics + underscores and dashes");
|
|
129
|
+
var g = s({
|
|
130
|
+
_namespacePrefix: m,
|
|
131
|
+
_namespaceRegexp: h,
|
|
132
|
+
_testStorage: function(e) {
|
|
136
133
|
try {
|
|
137
|
-
var
|
|
138
|
-
|
|
139
|
-
var
|
|
140
|
-
return
|
|
134
|
+
var t = "__storejs__test__";
|
|
135
|
+
e.write(t, t);
|
|
136
|
+
var n = e.read(t) === t;
|
|
137
|
+
return e.remove(t), n;
|
|
141
138
|
} catch {
|
|
142
139
|
return !1;
|
|
143
140
|
}
|
|
144
141
|
},
|
|
145
|
-
_assignPluginFnProp: function(
|
|
146
|
-
var
|
|
147
|
-
this[
|
|
148
|
-
var
|
|
149
|
-
function
|
|
150
|
-
if (
|
|
151
|
-
|
|
152
|
-
}),
|
|
142
|
+
_assignPluginFnProp: function(e, t) {
|
|
143
|
+
var n = this[t];
|
|
144
|
+
this[t] = function() {
|
|
145
|
+
var t = r(arguments, 0), i = this;
|
|
146
|
+
function o() {
|
|
147
|
+
if (n) return a(arguments, function(e, n) {
|
|
148
|
+
t[n] = e;
|
|
149
|
+
}), n.apply(i, t);
|
|
153
150
|
}
|
|
154
|
-
var
|
|
155
|
-
return
|
|
151
|
+
var s = [o].concat(t);
|
|
152
|
+
return e.apply(i, s);
|
|
156
153
|
};
|
|
157
154
|
},
|
|
158
|
-
_serialize: function(
|
|
159
|
-
return JSON.stringify(
|
|
155
|
+
_serialize: function(e) {
|
|
156
|
+
return JSON.stringify(e);
|
|
160
157
|
},
|
|
161
|
-
_deserialize: function(
|
|
162
|
-
if (!
|
|
163
|
-
var
|
|
158
|
+
_deserialize: function(e, t) {
|
|
159
|
+
if (!e) return t;
|
|
160
|
+
var n = "";
|
|
164
161
|
try {
|
|
165
|
-
|
|
162
|
+
n = JSON.parse(e);
|
|
166
163
|
} catch {
|
|
167
|
-
|
|
164
|
+
n = e;
|
|
168
165
|
}
|
|
169
|
-
return
|
|
166
|
+
return n === void 0 ? t : n;
|
|
170
167
|
},
|
|
171
|
-
_addStorage: function(
|
|
172
|
-
this.enabled || this._testStorage(
|
|
168
|
+
_addStorage: function(e) {
|
|
169
|
+
this.enabled || this._testStorage(e) && (this.storage = e, this.enabled = !0);
|
|
173
170
|
},
|
|
174
|
-
_addPlugin: function(
|
|
175
|
-
var
|
|
176
|
-
if (
|
|
177
|
-
|
|
178
|
-
|
|
171
|
+
_addPlugin: function(e) {
|
|
172
|
+
var t = this;
|
|
173
|
+
if (c(e)) {
|
|
174
|
+
a(e, function(e) {
|
|
175
|
+
t._addPlugin(e);
|
|
179
176
|
});
|
|
180
177
|
return;
|
|
181
178
|
}
|
|
182
|
-
if (!
|
|
183
|
-
return
|
|
179
|
+
if (!i(this.plugins, function(t) {
|
|
180
|
+
return e === t;
|
|
184
181
|
})) {
|
|
185
|
-
if (this.plugins.push(
|
|
186
|
-
var
|
|
187
|
-
if (!
|
|
188
|
-
|
|
189
|
-
if (!
|
|
190
|
-
|
|
182
|
+
if (this.plugins.push(e), !l(e)) throw Error("Plugins must be function values that return objects");
|
|
183
|
+
var n = e.call(this);
|
|
184
|
+
if (!u(n)) throw Error("Plugins must return an object of function properties");
|
|
185
|
+
a(n, function(n, r) {
|
|
186
|
+
if (!l(n)) throw Error("Bad plugin property: " + r + " from plugin " + e.name + ". Plugins should only return functions.");
|
|
187
|
+
t._assignPluginFnProp(n, r);
|
|
191
188
|
});
|
|
192
189
|
}
|
|
193
190
|
},
|
|
194
|
-
addStorage: function(
|
|
195
|
-
|
|
191
|
+
addStorage: function(e) {
|
|
192
|
+
p("store.addStorage(storage) is deprecated. Use createStore([storages])"), this._addStorage(e);
|
|
196
193
|
}
|
|
197
|
-
},
|
|
198
|
-
return
|
|
199
|
-
|
|
200
|
-
}),
|
|
201
|
-
|
|
202
|
-
}),
|
|
203
|
-
|
|
204
|
-
}),
|
|
205
|
-
}
|
|
206
|
-
})), require_localStorage = /* @__PURE__ */ __commonJSMin(((
|
|
207
|
-
var
|
|
208
|
-
|
|
194
|
+
}, d, { plugins: [] });
|
|
195
|
+
return g.raw = {}, a(g, function(e, t) {
|
|
196
|
+
l(e) && (g.raw[t] = o(g, e));
|
|
197
|
+
}), a(e, function(e) {
|
|
198
|
+
g._addStorage(e);
|
|
199
|
+
}), a(t, function(e) {
|
|
200
|
+
g._addPlugin(e);
|
|
201
|
+
}), g;
|
|
202
|
+
}
|
|
203
|
+
})), require_localStorage = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
204
|
+
var n = require_util().Global;
|
|
205
|
+
t.exports = {
|
|
209
206
|
name: "localStorage",
|
|
210
|
-
read,
|
|
211
|
-
write,
|
|
212
|
-
each,
|
|
213
|
-
remove,
|
|
214
|
-
clearAll
|
|
207
|
+
read: i,
|
|
208
|
+
write: a,
|
|
209
|
+
each: o,
|
|
210
|
+
remove: s,
|
|
211
|
+
clearAll: c
|
|
215
212
|
};
|
|
216
|
-
function
|
|
217
|
-
return
|
|
213
|
+
function r() {
|
|
214
|
+
return n.localStorage;
|
|
218
215
|
}
|
|
219
|
-
function
|
|
220
|
-
return
|
|
216
|
+
function i(e) {
|
|
217
|
+
return r().getItem(e);
|
|
221
218
|
}
|
|
222
|
-
function
|
|
223
|
-
return
|
|
219
|
+
function a(e, t) {
|
|
220
|
+
return r().setItem(e, t);
|
|
224
221
|
}
|
|
225
|
-
function
|
|
226
|
-
for (var
|
|
227
|
-
var
|
|
228
|
-
|
|
222
|
+
function o(e) {
|
|
223
|
+
for (var t = r().length - 1; t >= 0; t--) {
|
|
224
|
+
var n = r().key(t);
|
|
225
|
+
e(i(n), n);
|
|
229
226
|
}
|
|
230
227
|
}
|
|
231
|
-
function
|
|
232
|
-
return
|
|
228
|
+
function s(e) {
|
|
229
|
+
return r().removeItem(e);
|
|
233
230
|
}
|
|
234
|
-
function
|
|
235
|
-
return
|
|
231
|
+
function c() {
|
|
232
|
+
return r().clear();
|
|
236
233
|
}
|
|
237
|
-
})), require_oldFF_globalStorage = /* @__PURE__ */ __commonJSMin(((
|
|
238
|
-
var
|
|
239
|
-
|
|
234
|
+
})), require_oldFF_globalStorage = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
235
|
+
var n = require_util().Global;
|
|
236
|
+
t.exports = {
|
|
240
237
|
name: "oldFF-globalStorage",
|
|
241
|
-
read,
|
|
242
|
-
write,
|
|
243
|
-
each,
|
|
244
|
-
remove,
|
|
245
|
-
clearAll
|
|
238
|
+
read: i,
|
|
239
|
+
write: a,
|
|
240
|
+
each: o,
|
|
241
|
+
remove: s,
|
|
242
|
+
clearAll: c
|
|
246
243
|
};
|
|
247
|
-
var
|
|
248
|
-
function
|
|
249
|
-
return
|
|
244
|
+
var r = n.globalStorage;
|
|
245
|
+
function i(e) {
|
|
246
|
+
return r[e];
|
|
250
247
|
}
|
|
251
|
-
function
|
|
252
|
-
|
|
248
|
+
function a(e, t) {
|
|
249
|
+
r[e] = t;
|
|
253
250
|
}
|
|
254
|
-
function
|
|
255
|
-
for (var
|
|
256
|
-
var
|
|
257
|
-
|
|
251
|
+
function o(e) {
|
|
252
|
+
for (var t = r.length - 1; t >= 0; t--) {
|
|
253
|
+
var n = r.key(t);
|
|
254
|
+
e(r[n], n);
|
|
258
255
|
}
|
|
259
256
|
}
|
|
260
|
-
function
|
|
261
|
-
return
|
|
257
|
+
function s(e) {
|
|
258
|
+
return r.removeItem(e);
|
|
262
259
|
}
|
|
263
|
-
function
|
|
264
|
-
|
|
265
|
-
delete
|
|
260
|
+
function c() {
|
|
261
|
+
o(function(e, t) {
|
|
262
|
+
delete r[e];
|
|
266
263
|
});
|
|
267
264
|
}
|
|
268
|
-
})), require_oldIE_userDataStorage = /* @__PURE__ */ __commonJSMin(((
|
|
269
|
-
var
|
|
270
|
-
|
|
265
|
+
})), require_oldIE_userDataStorage = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
266
|
+
var n = require_util().Global;
|
|
267
|
+
t.exports = {
|
|
271
268
|
name: "oldIE-userDataStorage",
|
|
272
|
-
write,
|
|
273
|
-
read,
|
|
274
|
-
each,
|
|
275
|
-
remove,
|
|
276
|
-
clearAll
|
|
269
|
+
write: s,
|
|
270
|
+
read: c,
|
|
271
|
+
each: l,
|
|
272
|
+
remove: u,
|
|
273
|
+
clearAll: d
|
|
277
274
|
};
|
|
278
|
-
var
|
|
279
|
-
function
|
|
280
|
-
if (!
|
|
281
|
-
var
|
|
282
|
-
|
|
283
|
-
|
|
275
|
+
var r = "storejs", i = n.document, a = h(), o = (n.navigator ? n.navigator.userAgent : "").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);
|
|
276
|
+
function s(e, t) {
|
|
277
|
+
if (!o) {
|
|
278
|
+
var n = m(e);
|
|
279
|
+
a(function(e) {
|
|
280
|
+
e.setAttribute(n, t), e.save(r);
|
|
284
281
|
});
|
|
285
282
|
}
|
|
286
283
|
}
|
|
287
|
-
function
|
|
288
|
-
if (!
|
|
289
|
-
var
|
|
290
|
-
return
|
|
291
|
-
|
|
292
|
-
}),
|
|
284
|
+
function c(e) {
|
|
285
|
+
if (!o) {
|
|
286
|
+
var t = m(e), n = null;
|
|
287
|
+
return a(function(e) {
|
|
288
|
+
n = e.getAttribute(t);
|
|
289
|
+
}), n;
|
|
293
290
|
}
|
|
294
291
|
}
|
|
295
|
-
function
|
|
296
|
-
|
|
297
|
-
for (var
|
|
298
|
-
var
|
|
299
|
-
|
|
292
|
+
function l(e) {
|
|
293
|
+
a(function(t) {
|
|
294
|
+
for (var n = t.XMLDocument.documentElement.attributes, r = n.length - 1; r >= 0; r--) {
|
|
295
|
+
var i = n[r];
|
|
296
|
+
e(t.getAttribute(i.name), i.name);
|
|
300
297
|
}
|
|
301
298
|
});
|
|
302
299
|
}
|
|
303
|
-
function
|
|
304
|
-
var
|
|
305
|
-
|
|
306
|
-
|
|
300
|
+
function u(e) {
|
|
301
|
+
var t = m(e);
|
|
302
|
+
a(function(e) {
|
|
303
|
+
e.removeAttribute(t), e.save(r);
|
|
307
304
|
});
|
|
308
305
|
}
|
|
309
|
-
function
|
|
310
|
-
|
|
311
|
-
var
|
|
312
|
-
|
|
313
|
-
for (var
|
|
314
|
-
|
|
306
|
+
function d() {
|
|
307
|
+
a(function(e) {
|
|
308
|
+
var t = e.XMLDocument.documentElement.attributes;
|
|
309
|
+
e.load(r);
|
|
310
|
+
for (var n = t.length - 1; n >= 0; n--) e.removeAttribute(t[n].name);
|
|
311
|
+
e.save(r);
|
|
315
312
|
});
|
|
316
313
|
}
|
|
317
|
-
var
|
|
318
|
-
function
|
|
319
|
-
return
|
|
314
|
+
var p = /* @__PURE__ */ RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]", "g");
|
|
315
|
+
function m(e) {
|
|
316
|
+
return e.replace(/^\d/, "___$&").replace(p, "___");
|
|
320
317
|
}
|
|
321
|
-
function
|
|
322
|
-
if (!
|
|
323
|
-
var
|
|
318
|
+
function h() {
|
|
319
|
+
if (!i || !i.documentElement || !i.documentElement.addBehavior) return null;
|
|
320
|
+
var e = "script", t, n, a;
|
|
324
321
|
try {
|
|
325
|
-
|
|
322
|
+
n = new ActiveXObject("htmlfile"), n.open(), n.write("<" + e + ">document.w=window</" + e + "><iframe src=\"/favicon.ico\"></iframe>"), n.close(), t = n.w.frames[0].document, a = t.createElement("div");
|
|
326
323
|
} catch {
|
|
327
|
-
|
|
324
|
+
a = i.createElement("div"), t = i.body;
|
|
328
325
|
}
|
|
329
|
-
return function(
|
|
330
|
-
var
|
|
331
|
-
|
|
326
|
+
return function(e) {
|
|
327
|
+
var n = [].slice.call(arguments, 0);
|
|
328
|
+
n.unshift(a), t.appendChild(a), a.addBehavior("#default#userData"), a.load(r), e.apply(this, n), t.removeChild(a);
|
|
332
329
|
};
|
|
333
330
|
}
|
|
334
|
-
})), require_cookieStorage = /* @__PURE__ */ __commonJSMin(((
|
|
335
|
-
var
|
|
336
|
-
|
|
331
|
+
})), require_cookieStorage = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
332
|
+
var n = require_util(), r = n.Global, i = n.trim;
|
|
333
|
+
t.exports = {
|
|
337
334
|
name: "cookieStorage",
|
|
338
|
-
read,
|
|
339
|
-
write,
|
|
340
|
-
each,
|
|
341
|
-
remove,
|
|
342
|
-
clearAll
|
|
335
|
+
read: o,
|
|
336
|
+
write: c,
|
|
337
|
+
each: s,
|
|
338
|
+
remove: l,
|
|
339
|
+
clearAll: u
|
|
343
340
|
};
|
|
344
|
-
var
|
|
345
|
-
function
|
|
346
|
-
if (!
|
|
347
|
-
var
|
|
348
|
-
return unescape(
|
|
349
|
-
}
|
|
350
|
-
function
|
|
351
|
-
for (var
|
|
352
|
-
var
|
|
353
|
-
|
|
341
|
+
var a = r.document;
|
|
342
|
+
function o(e) {
|
|
343
|
+
if (!e || !d(e)) return null;
|
|
344
|
+
var t = "(?:^|.*;\\s*)" + escape(e).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";
|
|
345
|
+
return unescape(a.cookie.replace(new RegExp(t), "$1"));
|
|
346
|
+
}
|
|
347
|
+
function s(e) {
|
|
348
|
+
for (var t = a.cookie.split(/; ?/g), n = t.length - 1; n >= 0; n--) if (i(t[n])) {
|
|
349
|
+
var r = t[n].split("="), o = unescape(r[0]);
|
|
350
|
+
e(unescape(r[1]), o);
|
|
354
351
|
}
|
|
355
352
|
}
|
|
356
|
-
function
|
|
357
|
-
|
|
353
|
+
function c(e, t) {
|
|
354
|
+
e && (a.cookie = escape(e) + "=" + escape(t) + "; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/");
|
|
358
355
|
}
|
|
359
|
-
function
|
|
360
|
-
!
|
|
356
|
+
function l(e) {
|
|
357
|
+
!e || !d(e) || (a.cookie = escape(e) + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/");
|
|
361
358
|
}
|
|
362
|
-
function
|
|
363
|
-
|
|
364
|
-
|
|
359
|
+
function u() {
|
|
360
|
+
s(function(e, t) {
|
|
361
|
+
l(t);
|
|
365
362
|
});
|
|
366
363
|
}
|
|
367
|
-
function
|
|
368
|
-
return
|
|
364
|
+
function d(e) {
|
|
365
|
+
return RegExp("(?:^|;\\s*)" + escape(e).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=").test(a.cookie);
|
|
369
366
|
}
|
|
370
|
-
})), require_sessionStorage = /* @__PURE__ */ __commonJSMin(((
|
|
371
|
-
var
|
|
372
|
-
|
|
367
|
+
})), require_sessionStorage = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
368
|
+
var n = require_util().Global;
|
|
369
|
+
t.exports = {
|
|
373
370
|
name: "sessionStorage",
|
|
374
|
-
read,
|
|
375
|
-
write,
|
|
376
|
-
each,
|
|
377
|
-
remove,
|
|
378
|
-
clearAll
|
|
371
|
+
read: i,
|
|
372
|
+
write: a,
|
|
373
|
+
each: o,
|
|
374
|
+
remove: s,
|
|
375
|
+
clearAll: c
|
|
379
376
|
};
|
|
380
|
-
function
|
|
381
|
-
return
|
|
377
|
+
function r() {
|
|
378
|
+
return n.sessionStorage;
|
|
382
379
|
}
|
|
383
|
-
function
|
|
384
|
-
return
|
|
380
|
+
function i(e) {
|
|
381
|
+
return r().getItem(e);
|
|
385
382
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
383
|
+
function a(e, t) {
|
|
384
|
+
return r().setItem(e, t);
|
|
388
385
|
}
|
|
389
|
-
function
|
|
390
|
-
for (var
|
|
391
|
-
var
|
|
392
|
-
|
|
386
|
+
function o(e) {
|
|
387
|
+
for (var t = r().length - 1; t >= 0; t--) {
|
|
388
|
+
var n = r().key(t);
|
|
389
|
+
e(i(n), n);
|
|
393
390
|
}
|
|
394
391
|
}
|
|
395
|
-
function
|
|
396
|
-
return
|
|
392
|
+
function s(e) {
|
|
393
|
+
return r().removeItem(e);
|
|
397
394
|
}
|
|
398
|
-
function
|
|
399
|
-
return
|
|
395
|
+
function c() {
|
|
396
|
+
return r().clear();
|
|
400
397
|
}
|
|
401
|
-
})), require_memoryStorage = /* @__PURE__ */ __commonJSMin(((
|
|
402
|
-
|
|
398
|
+
})), require_memoryStorage = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
399
|
+
t.exports = {
|
|
403
400
|
name: "memoryStorage",
|
|
404
|
-
read,
|
|
405
|
-
write,
|
|
406
|
-
each,
|
|
407
|
-
remove,
|
|
408
|
-
clearAll
|
|
401
|
+
read: r,
|
|
402
|
+
write: i,
|
|
403
|
+
each: a,
|
|
404
|
+
remove: o,
|
|
405
|
+
clearAll: s
|
|
409
406
|
};
|
|
410
|
-
var
|
|
411
|
-
function
|
|
412
|
-
return
|
|
407
|
+
var n = {};
|
|
408
|
+
function r(e) {
|
|
409
|
+
return n[e];
|
|
413
410
|
}
|
|
414
|
-
function
|
|
415
|
-
|
|
411
|
+
function i(e, t) {
|
|
412
|
+
n[e] = t;
|
|
416
413
|
}
|
|
417
|
-
function
|
|
418
|
-
for (var
|
|
414
|
+
function a(e) {
|
|
415
|
+
for (var t in n) n.hasOwnProperty(t) && e(n[t], t);
|
|
419
416
|
}
|
|
420
|
-
function
|
|
421
|
-
delete
|
|
417
|
+
function o(e) {
|
|
418
|
+
delete n[e];
|
|
422
419
|
}
|
|
423
|
-
function
|
|
424
|
-
|
|
420
|
+
function s(e) {
|
|
421
|
+
n = {};
|
|
425
422
|
}
|
|
426
|
-
})), require_all = /* @__PURE__ */ __commonJSMin(((
|
|
427
|
-
|
|
423
|
+
})), require_all = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
424
|
+
t.exports = [
|
|
428
425
|
require_localStorage(),
|
|
429
426
|
require_oldFF_globalStorage(),
|
|
430
427
|
require_oldIE_userDataStorage(),
|
|
@@ -435,8 +432,8 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
435
432
|
})), require_json2$1 = /* @__PURE__ */ __commonJSMin((() => {
|
|
436
433
|
typeof JSON != "object" && (JSON = {}), (function() {
|
|
437
434
|
var rx_one = /^[\],:{}\s]*$/, rx_two = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, rx_three = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, rx_four = /(?:^|:|,)(?:\s*\[)+/g, rx_escapable = /[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, rx_dangerous = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
|
|
438
|
-
function f(
|
|
439
|
-
return
|
|
435
|
+
function f(e) {
|
|
436
|
+
return e < 10 ? "0" + e : e;
|
|
440
437
|
}
|
|
441
438
|
function this_value() {
|
|
442
439
|
return this.valueOf();
|
|
@@ -445,28 +442,28 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
445
442
|
return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + f(this.getUTCMonth() + 1) + "-" + f(this.getUTCDate()) + "T" + f(this.getUTCHours()) + ":" + f(this.getUTCMinutes()) + ":" + f(this.getUTCSeconds()) + "Z" : null;
|
|
446
443
|
}, Boolean.prototype.toJSON = this_value, Number.prototype.toJSON = this_value, String.prototype.toJSON = this_value);
|
|
447
444
|
var gap, indent, meta, rep;
|
|
448
|
-
function quote(
|
|
449
|
-
return rx_escapable.lastIndex = 0, rx_escapable.test(
|
|
450
|
-
var
|
|
451
|
-
return typeof
|
|
452
|
-
}) + "\"" : "\"" +
|
|
445
|
+
function quote(e) {
|
|
446
|
+
return rx_escapable.lastIndex = 0, rx_escapable.test(e) ? "\"" + e.replace(rx_escapable, function(e) {
|
|
447
|
+
var t = meta[e];
|
|
448
|
+
return typeof t == "string" ? t : "\\u" + ("0000" + e.charCodeAt(0).toString(16)).slice(-4);
|
|
449
|
+
}) + "\"" : "\"" + e + "\"";
|
|
453
450
|
}
|
|
454
|
-
function str(
|
|
455
|
-
var
|
|
456
|
-
switch (
|
|
457
|
-
case "string": return quote(
|
|
458
|
-
case "number": return isFinite(
|
|
451
|
+
function str(e, t) {
|
|
452
|
+
var n, r, i, a, o = gap, s, c = t[e];
|
|
453
|
+
switch (c && typeof c == "object" && typeof c.toJSON == "function" && (c = c.toJSON(e)), typeof rep == "function" && (c = rep.call(t, e, c)), typeof c) {
|
|
454
|
+
case "string": return quote(c);
|
|
455
|
+
case "number": return isFinite(c) ? String(c) : "null";
|
|
459
456
|
case "boolean":
|
|
460
|
-
case "null": return String(
|
|
457
|
+
case "null": return String(c);
|
|
461
458
|
case "object":
|
|
462
|
-
if (!
|
|
463
|
-
if (gap += indent,
|
|
464
|
-
for (
|
|
465
|
-
return
|
|
459
|
+
if (!c) return "null";
|
|
460
|
+
if (gap += indent, s = [], Object.prototype.toString.apply(c) === "[object Array]") {
|
|
461
|
+
for (a = c.length, n = 0; n < a; n += 1) s[n] = str(n, c) || "null";
|
|
462
|
+
return i = s.length === 0 ? "[]" : gap ? "[\n" + gap + s.join(",\n" + gap) + "\n" + o + "]" : "[" + s.join(",") + "]", gap = o, i;
|
|
466
463
|
}
|
|
467
|
-
if (rep && typeof rep == "object") for (
|
|
468
|
-
else for (
|
|
469
|
-
return
|
|
464
|
+
if (rep && typeof rep == "object") for (a = rep.length, n = 0; n < a; n += 1) typeof rep[n] == "string" && (r = rep[n], i = str(r, c), i && s.push(quote(r) + (gap ? ": " : ":") + i));
|
|
465
|
+
else for (r in c) Object.prototype.hasOwnProperty.call(c, r) && (i = str(r, c), i && s.push(quote(r) + (gap ? ": " : ":") + i));
|
|
466
|
+
return i = s.length === 0 ? "{}" : gap ? "{\n" + gap + s.join(",\n" + gap) + "\n" + o + "}" : "{" + s.join(",") + "}", gap = o, i;
|
|
470
467
|
}
|
|
471
468
|
}
|
|
472
469
|
typeof JSON.stringify != "function" && (meta = {
|
|
@@ -477,117 +474,119 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
477
474
|
"\r": "\\r",
|
|
478
475
|
"\"": "\\\"",
|
|
479
476
|
"\\": "\\\\"
|
|
480
|
-
}, JSON.stringify = function(
|
|
481
|
-
var
|
|
482
|
-
if (gap = "", indent = "", typeof
|
|
483
|
-
else typeof
|
|
484
|
-
if (rep =
|
|
485
|
-
return str("", { "":
|
|
477
|
+
}, JSON.stringify = function(e, t, n) {
|
|
478
|
+
var r;
|
|
479
|
+
if (gap = "", indent = "", typeof n == "number") for (r = 0; r < n; r += 1) indent += " ";
|
|
480
|
+
else typeof n == "string" && (indent = n);
|
|
481
|
+
if (rep = t, t && typeof t != "function" && (typeof t != "object" || typeof t.length != "number")) throw Error("JSON.stringify");
|
|
482
|
+
return str("", { "": e });
|
|
486
483
|
}), typeof JSON.parse != "function" && (JSON.parse = function(text, reviver) {
|
|
487
484
|
var j;
|
|
488
|
-
function walk(
|
|
489
|
-
var
|
|
490
|
-
if (
|
|
491
|
-
return reviver.call(
|
|
485
|
+
function walk(e, t) {
|
|
486
|
+
var n, r, i = e[t];
|
|
487
|
+
if (i && typeof i == "object") for (n in i) Object.prototype.hasOwnProperty.call(i, n) && (r = walk(i, n), r === void 0 ? delete i[n] : i[n] = r);
|
|
488
|
+
return reviver.call(e, t, i);
|
|
492
489
|
}
|
|
493
|
-
if (text = String(text), rx_dangerous.lastIndex = 0, rx_dangerous.test(text) && (text = text.replace(rx_dangerous, function(
|
|
494
|
-
return "\\u" + ("0000" +
|
|
490
|
+
if (text = String(text), rx_dangerous.lastIndex = 0, rx_dangerous.test(text) && (text = text.replace(rx_dangerous, function(e) {
|
|
491
|
+
return "\\u" + ("0000" + e.charCodeAt(0).toString(16)).slice(-4);
|
|
495
492
|
})), rx_one.test(text.replace(rx_two, "@").replace(rx_three, "]").replace(rx_four, ""))) return j = eval("(" + text + ")"), typeof reviver == "function" ? walk({ "": j }, "") : j;
|
|
496
493
|
throw SyntaxError("JSON.parse");
|
|
497
494
|
});
|
|
498
495
|
})();
|
|
499
|
-
})), require_json2 = /* @__PURE__ */ __commonJSMin(((
|
|
500
|
-
|
|
501
|
-
function
|
|
496
|
+
})), require_json2 = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
497
|
+
t.exports = n;
|
|
498
|
+
function n() {
|
|
502
499
|
return require_json2$1(), {};
|
|
503
500
|
}
|
|
504
|
-
})), require_store_legacy = /* @__PURE__ */ __commonJSMin(((
|
|
505
|
-
var
|
|
506
|
-
|
|
501
|
+
})), require_store_legacy = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
502
|
+
var n = require_store_engine(), r = require_all(), i = [require_json2()];
|
|
503
|
+
t.exports = n.createStore(r, i);
|
|
507
504
|
})), import_store_legacy = /* @__PURE__ */ __toESM(require_store_legacy()), devtools = {
|
|
508
505
|
isOpen: !1,
|
|
509
506
|
orientation: void 0
|
|
510
|
-
}, threshold = 170, emitEvent = (
|
|
507
|
+
}, threshold = 170, emitEvent = (e, t) => {
|
|
511
508
|
globalThis.dispatchEvent(new globalThis.CustomEvent("devtoolschange", { detail: {
|
|
512
|
-
isOpen,
|
|
513
|
-
orientation
|
|
509
|
+
isOpen: e,
|
|
510
|
+
orientation: t
|
|
514
511
|
} }));
|
|
515
|
-
}, main = ({ emitEvents = !0 } = {}) => {
|
|
516
|
-
let
|
|
517
|
-
!(
|
|
512
|
+
}, main = ({ emitEvents: e = !0 } = {}) => {
|
|
513
|
+
let t = globalThis.outerWidth - globalThis.innerWidth > threshold, n = globalThis.outerHeight - globalThis.innerHeight > threshold, r = t ? "vertical" : "horizontal";
|
|
514
|
+
!(n && t) && (globalThis.Firebug && globalThis.Firebug.chrome && globalThis.Firebug.chrome.isInitialized || t || n) ? ((!devtools.isOpen || devtools.orientation !== r) && e && emitEvent(!0, r), devtools.isOpen = !0, devtools.orientation = r) : (devtools.isOpen && e && emitEvent(!1, void 0), devtools.isOpen = !1, devtools.orientation = void 0);
|
|
518
515
|
};
|
|
519
516
|
main({ emitEvents: !1 }), setInterval(main, 500);
|
|
517
|
+
//#endregion
|
|
518
|
+
//#region src/sn/SysWeb.ts
|
|
520
519
|
var SysWeb = class extends SysBase {
|
|
521
520
|
#e;
|
|
522
|
-
constructor(...[
|
|
521
|
+
constructor(...[e = {}, t = {
|
|
523
522
|
cur: "prj/",
|
|
524
523
|
crypto: !1,
|
|
525
524
|
dip: ""
|
|
526
525
|
}]) {
|
|
527
|
-
super(
|
|
528
|
-
let
|
|
529
|
-
this.#e =
|
|
530
|
-
}
|
|
531
|
-
async loaded(...[
|
|
532
|
-
await super.loaded(
|
|
533
|
-
let
|
|
534
|
-
|
|
535
|
-
this.runSN(
|
|
526
|
+
super(e, t);
|
|
527
|
+
let n = t.cur.split("/");
|
|
528
|
+
this.#e = n.length > 2 ? n.slice(0, -2).join("/") + "/" : "", this.loaded(e, t);
|
|
529
|
+
}
|
|
530
|
+
async loaded(...[e, t]) {
|
|
531
|
+
await super.loaded(e, t), document.querySelectorAll("[data-prj]").forEach((e) => {
|
|
532
|
+
let t = e.attributes.getNamedItem("data-prj");
|
|
533
|
+
t && e.addEventListener("click", () => {
|
|
534
|
+
this.runSN(t.value);
|
|
536
535
|
}, { passive: !0 });
|
|
537
|
-
}), document.querySelectorAll("[data-reload]").forEach((
|
|
536
|
+
}), document.querySelectorAll("[data-reload]").forEach((e) => e.addEventListener("click", () => {
|
|
538
537
|
this.run();
|
|
539
|
-
}, { passive: !0 })),
|
|
540
|
-
let
|
|
541
|
-
if (
|
|
538
|
+
}, { passive: !0 })), t.dip && (CmnLib.hDip = JSON.parse(t.dip));
|
|
539
|
+
let n = new URLSearchParams(location.search), r = n.get("dip");
|
|
540
|
+
if (r && (CmnLib.hDip = {
|
|
542
541
|
...CmnLib.hDip,
|
|
543
|
-
...JSON.parse(
|
|
542
|
+
...JSON.parse(r.replaceAll("%2C", ","))
|
|
544
543
|
}), !argChk_Boolean(CmnLib.hDip, "oninit_run", !0)) return;
|
|
545
|
-
argChk_Boolean(CmnLib.hDip, "dbg", !1) && (CmnLib.isDbg = !0, this.fetch = (
|
|
546
|
-
...
|
|
544
|
+
argChk_Boolean(CmnLib.hDip, "dbg", !1) && (CmnLib.isDbg = !0, this.fetch = (e, t) => fetch(e, {
|
|
545
|
+
...t,
|
|
547
546
|
mode: "cors"
|
|
548
547
|
})), this.extPort = argChk_Num(CmnLib.hDip, "port", this.extPort);
|
|
549
|
-
let
|
|
550
|
-
|
|
548
|
+
let i = n.get("cur");
|
|
549
|
+
i && (t.cur = this.#e + i + "/"), await this.run();
|
|
551
550
|
}
|
|
552
551
|
#t = ":";
|
|
553
|
-
async runSN(
|
|
554
|
-
this.arg.cur = this.#e +
|
|
552
|
+
async runSN(e) {
|
|
553
|
+
this.arg.cur = this.#e + e + "/", this.#t !== this.arg.cur && (this.#t = this.arg.cur, await this.run());
|
|
555
554
|
}
|
|
556
|
-
async initVal(
|
|
557
|
-
let
|
|
558
|
-
|
|
559
|
-
let
|
|
555
|
+
async initVal(e, t) {
|
|
556
|
+
let n = encodeURIComponent(document.location.hostname);
|
|
557
|
+
e["const.sn.isDebugger"] = n === "localhost" || n === "127.0.0.1";
|
|
558
|
+
let r = this.cfg.headNs;
|
|
560
559
|
this.flushSub = this.arg.crypto ? async () => {
|
|
561
|
-
import_store_legacy.default.set(
|
|
560
|
+
import_store_legacy.default.set(r + "sys_", await this.enc(JSON.stringify(this.data.sys))), import_store_legacy.default.set(r + "mark_", await this.enc(JSON.stringify(this.data.mark))), import_store_legacy.default.set(r + "kidoku_", await this.enc(JSON.stringify(this.data.kidoku)));
|
|
562
561
|
} : () => {
|
|
563
|
-
import_store_legacy.default.set(
|
|
562
|
+
import_store_legacy.default.set(r + "sys", this.data.sys), import_store_legacy.default.set(r + "mark", this.data.mark), import_store_legacy.default.set(r + "kidoku", this.data.kidoku);
|
|
564
563
|
};
|
|
565
|
-
let
|
|
566
|
-
if (
|
|
567
|
-
this.data.sys = {}, this.data.mark = {}, this.data.kidoku = {},
|
|
564
|
+
let i = r + (this.arg.crypto ? "sys_" : "sys");
|
|
565
|
+
if (e["const.sn.isFirstBoot"] = import_store_legacy.default.get(i) === void 0) {
|
|
566
|
+
this.data.sys = {}, this.data.mark = {}, this.data.kidoku = {}, t(this.data);
|
|
568
567
|
return;
|
|
569
568
|
}
|
|
570
569
|
if (!this.arg.crypto) {
|
|
571
|
-
this.data.sys = import_store_legacy.default.get(
|
|
570
|
+
this.data.sys = import_store_legacy.default.get(r + "sys"), this.data.mark = import_store_legacy.default.get(r + "mark"), this.data.kidoku = import_store_legacy.default.get(r + "kidoku"), t(this.data);
|
|
572
571
|
return;
|
|
573
572
|
}
|
|
574
|
-
let
|
|
573
|
+
let a = "";
|
|
575
574
|
try {
|
|
576
|
-
|
|
575
|
+
a = "sys", this.data.sys = JSON.parse(await this.dec("json", import_store_legacy.default.get(r + "sys_"))), a += String(this.val.getVal("sys:TextLayer.Back.Alpha", 1)), a = "mark", this.data.mark = JSON.parse(await this.dec("json", import_store_legacy.default.get(r + "mark_"))), a = "kidoku", this.data.kidoku = JSON.parse(await this.dec("json", import_store_legacy.default.get(r + "kidoku_")));
|
|
577
576
|
} catch (e) {
|
|
578
|
-
console.error(`セーブデータ(${
|
|
577
|
+
console.error(`セーブデータ(${a})が壊れています。一度クリアする必要があります(a) %o`, e);
|
|
579
578
|
}
|
|
580
|
-
|
|
579
|
+
t(this.data);
|
|
581
580
|
}
|
|
582
|
-
init(
|
|
583
|
-
let
|
|
584
|
-
if ("requestFullscreen" in document.body) this.tglFlscr_sub = this.isFullScr ? () => document.exitFullscreen() : () =>
|
|
581
|
+
init(e, t, n) {
|
|
582
|
+
let r = super.init(e, t, n), i = t.view.parentElement;
|
|
583
|
+
if ("requestFullscreen" in document.body) this.tglFlscr_sub = this.isFullScr ? () => document.exitFullscreen() : () => i.requestFullscreen(), this.elc.add(document, "fullscreenchange", () => {
|
|
585
584
|
this.isFullScr = !!document.fullscreenElement;
|
|
586
585
|
});
|
|
587
586
|
else {
|
|
588
|
-
let
|
|
589
|
-
this.tglFlscr_sub = this.isFullScr ? () =>
|
|
590
|
-
this.isFullScr = !!
|
|
587
|
+
let e = document;
|
|
588
|
+
this.tglFlscr_sub = this.isFullScr ? () => e.webkitCancelFullScreen() : () => i.webkitRequestFullscreen(), this.elc.add(document, "fullscreenchange", () => {
|
|
589
|
+
this.isFullScr = !!e.webkitFullscreenElement;
|
|
591
590
|
});
|
|
592
591
|
}
|
|
593
592
|
return this.cfg.oCfg.debug.devtool || this.elc.add(globalThis, "devtoolschange", (e) => {
|
|
@@ -595,60 +594,61 @@ var SysWeb = class extends SysBase {
|
|
|
595
594
|
}, {
|
|
596
595
|
once: !0,
|
|
597
596
|
passive: !0
|
|
598
|
-
}),
|
|
597
|
+
}), r;
|
|
599
598
|
}
|
|
600
599
|
cvsResize() {
|
|
601
600
|
if (super.cvsResize(), !this.isFullScr || !this.main) return;
|
|
602
|
-
let
|
|
603
|
-
|
|
601
|
+
let e = this.main.cvs.style;
|
|
602
|
+
e.width = e.height = "";
|
|
604
603
|
}
|
|
605
604
|
pathBaseCnvSnPath4Dbg = "${pathbase}/";
|
|
606
605
|
_export = () => ((async () => {
|
|
607
|
-
let
|
|
606
|
+
let e = JSON.stringify({
|
|
608
607
|
sys: this.data.sys,
|
|
609
608
|
mark: this.data.mark,
|
|
610
609
|
kidoku: this.data.kidoku
|
|
611
|
-
}),
|
|
612
|
-
|
|
610
|
+
}), t = this.arg.crypto ? await this.enc(e) : e, n = new Blob([t], { type: "text/json" }), r = document.createElement("a");
|
|
611
|
+
r.href = URL.createObjectURL(n), r.download = (this.arg.crypto ? "" : "no_crypto_") + this.cfg.headNs + getDateStr("-", "_", "") + ".swpd", r.click(), CmnLib.debugLog && console.log("プレイデータをエクスポートしました"), setTimeout(() => this.fire("sn:exported", new MouseEvent("click")), 10);
|
|
613
612
|
})(), !1);
|
|
614
|
-
_import = () => (new Promise((
|
|
615
|
-
let
|
|
616
|
-
|
|
617
|
-
let
|
|
618
|
-
|
|
619
|
-
},
|
|
620
|
-
}).then(async (
|
|
621
|
-
let
|
|
622
|
-
if (
|
|
623
|
-
console.error(`別のゲーム【プロジェクト名=${
|
|
613
|
+
_import = () => (new Promise((e, t) => {
|
|
614
|
+
let n = document.createElement("input");
|
|
615
|
+
n.type = "file", n.accept = ".swpd, text/plain", n.onchange = () => {
|
|
616
|
+
let r = n.files?.[0];
|
|
617
|
+
r ? e(r) : t(/* @__PURE__ */ Error("ファイル選択に失敗しました"));
|
|
618
|
+
}, n.click();
|
|
619
|
+
}).then(async (e) => {
|
|
620
|
+
let t = await e.text(), n = JSON.parse(this.arg.crypto ? await this.dec("json", t) : t);
|
|
621
|
+
if (n.sys["const.sn.cfg.ns"] !== this.cfg.oCfg.save_ns) {
|
|
622
|
+
console.error(`別のゲーム【プロジェクト名=${n.sys["const.sn.cfg.ns"]}】のプレイデータです`);
|
|
624
623
|
return;
|
|
625
624
|
}
|
|
626
|
-
this.data.sys =
|
|
625
|
+
this.data.sys = n.sys, this.data.mark = n.mark, this.data.kidoku = n.kidoku, this.flush(), this.val.updateData(n), CmnLib.debugLog && console.log("プレイデータをインポートしました"), this.fire("sn:imported", new MouseEvent("click"));
|
|
627
626
|
}).catch((e) => console.error(`異常なプレイデータです ${String(e)}`)), !1);
|
|
628
|
-
navigate_to = (
|
|
629
|
-
let { url } =
|
|
630
|
-
if (!
|
|
631
|
-
return globalThis.open(
|
|
627
|
+
navigate_to = (e) => {
|
|
628
|
+
let { url: t } = e;
|
|
629
|
+
if (!t) throw "[navigate_to] urlは必須です";
|
|
630
|
+
return globalThis.open(t, "_blank"), !1;
|
|
632
631
|
};
|
|
633
|
-
titleSub(
|
|
634
|
-
document.title =
|
|
635
|
-
|
|
632
|
+
titleSub(e) {
|
|
633
|
+
document.title = e, document.querySelectorAll("[data-title]").forEach((t) => {
|
|
634
|
+
t.textContent = e;
|
|
636
635
|
});
|
|
637
636
|
}
|
|
638
|
-
async savePic(
|
|
639
|
-
let
|
|
640
|
-
|
|
637
|
+
async savePic(e, t) {
|
|
638
|
+
let n = document.createElement("a");
|
|
639
|
+
n.href = t, n.download = e, n.click(), CmnLib.debugLog && console.log("画像ファイルをダウンロードします");
|
|
641
640
|
}
|
|
642
641
|
#n = {};
|
|
643
|
-
async appendFile(
|
|
644
|
-
let
|
|
645
|
-
this.#n[
|
|
642
|
+
async appendFile(e, t) {
|
|
643
|
+
let n = (this.#n[e] ?? "") + t;
|
|
644
|
+
this.#n[e] = n, await this.outputFile(e, n);
|
|
646
645
|
}
|
|
647
|
-
async outputFile(
|
|
648
|
-
let
|
|
649
|
-
|
|
646
|
+
async outputFile(e, t) {
|
|
647
|
+
let n = new Blob([t], { type: "text/json" }), r = document.createElement("a");
|
|
648
|
+
r.href = URL.createObjectURL(n), r.download = e, r.click();
|
|
650
649
|
}
|
|
651
650
|
};
|
|
651
|
+
//#endregion
|
|
652
652
|
export { CmnLib, Layer, SysWeb, argChk_Boolean, argChk_Num };
|
|
653
653
|
|
|
654
654
|
//# sourceMappingURL=web.js.map
|