next-flow-interface 0.23.5 → 0.23.7
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/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +60 -59
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +298 -277
- package/dist/service/sync/attribute/attribute-service-api.d.ts +104 -0
- package/dist/service/sync/attribute/attribute-service-api.d.ts.map +1 -0
- package/dist/service/sync/attribute/dto/attribute-type.enum.d.ts +6 -0
- package/dist/service/sync/attribute/dto/attribute-type.enum.d.ts.map +1 -0
- package/dist/service/sync/attribute/dto/instance/attribute.interface.d.ts +5 -0
- package/dist/service/sync/attribute/dto/instance/attribute.interface.d.ts.map +1 -0
- package/dist/service/sync/attribute/dto/instance/base-attribute.interface.d.ts +9 -0
- package/dist/service/sync/attribute/dto/instance/base-attribute.interface.d.ts.map +1 -0
- package/dist/service/sync/attribute/dto/instance/global-attribute.interface.d.ts +5 -0
- package/dist/service/sync/attribute/dto/instance/global-attribute.interface.d.ts.map +1 -0
- package/dist/service/sync/attribute/dto/instance/node-attribute.interface.d.ts +5 -0
- package/dist/service/sync/attribute/dto/instance/node-attribute.interface.d.ts.map +1 -0
- package/dist/service/sync/attribute/dto/instance/step-attribute.interface.d.ts +5 -0
- package/dist/service/sync/attribute/dto/instance/step-attribute.interface.d.ts.map +1 -0
- package/dist/utils/rv-utils.d.ts +6 -0
- package/dist/utils/rv-utils.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { BaseTexture as
|
|
2
|
-
import { fileTypeFromBlob as
|
|
3
|
-
class
|
|
1
|
+
import { BaseTexture as vt, Material as tr, AbstractMesh as rr, Quaternion as M, Vector3 as nr } from "@babylonjs/core";
|
|
2
|
+
import { fileTypeFromBlob as er, fileTypeFromStream as Y, fileTypeFromBuffer as or } from "file-type";
|
|
3
|
+
class ur extends Error {
|
|
4
4
|
constructor(n) {
|
|
5
5
|
super(n), this.name = "NotFoundError";
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
class
|
|
8
|
+
class He extends ur {
|
|
9
9
|
constructor(n) {
|
|
10
10
|
super(n), this.name = "DomNotFoundError";
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
class
|
|
13
|
+
class Ve extends Error {
|
|
14
14
|
constructor(n) {
|
|
15
15
|
super(`${n} is a static class and cannot be instantiated.`), this.name = "StaticClassInstantiationError";
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
class
|
|
18
|
+
var sr = /* @__PURE__ */ ((t) => (t[t.TOP = 0] = "TOP", t[t.RIGHT = 1] = "RIGHT", t[t.BOTTOM = 2] = "BOTTOM", t[t.LEFT = 3] = "LEFT", t[t.TOP_LEFT = 4] = "TOP_LEFT", t[t.BOTTOM_LEFT = 5] = "BOTTOM_LEFT", t[t.TOP_RIGHT = 6] = "TOP_RIGHT", t[t.BOTTOM_RIGHT = 7] = "BOTTOM_RIGHT", t[t.UNKNOWN = 8] = "UNKNOWN", t))(sr || {}), ir = /* @__PURE__ */ ((t) => (t.BUTTON = "BUTTON", t.SWITCH = "SWITCH", t.DRAWER = "DRAWER", t.DIALOG = "DIALOG", t.CONTENT = "CONTENT", t.WINDOW = "WINDOW", t.SERVICE = "SERVICE", t))(ir || {}), j = /* @__PURE__ */ ((t) => (t.Default = "Default", t))(j || {});
|
|
19
|
+
class _e {
|
|
20
20
|
constructor(n, r = null, e = "", o = j.Default, s = 0, i = 0) {
|
|
21
21
|
this.nid = n, this.node = r, this.text = e, this.theme = o, this.x = s, this.y = i;
|
|
22
22
|
}
|
|
@@ -31,10 +31,10 @@ class be {
|
|
|
31
31
|
lastClickTime = 0;
|
|
32
32
|
lastSp = null;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var cr = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t.START = "START", t.PROGRESS = "PROGRESS", t.PAUSE = "PAUSE", t.RESUME = "RESUME", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(cr || {}), fr = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(fr || {}), ar = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(ar || {}), Er = /* @__PURE__ */ ((t) => (t.START = "START", t.PROGRESS = "PROGRESS", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(Er || {});
|
|
35
35
|
class K {
|
|
36
|
-
constructor(n, r, e = [], o = !1, s = 0, i = 0, a = !1, l, E = null,
|
|
37
|
-
this.options = n, this.id = r, this.lines = e, this.showIcon = o, this.x = s, this.y = i, this.closeOnOutsideClick = a, this.theme = l, this.controller = E, this.createTime =
|
|
36
|
+
constructor(n, r, e = [], o = !1, s = 0, i = 0, a = !1, l, E = null, h = /* @__PURE__ */ new Date()) {
|
|
37
|
+
this.options = n, this.id = r, this.lines = e, this.showIcon = o, this.x = s, this.y = i, this.closeOnOutsideClick = a, this.theme = l, this.controller = E, this.createTime = h;
|
|
38
38
|
}
|
|
39
39
|
static fromOptions(n, r, e) {
|
|
40
40
|
let { showIcon: o } = r;
|
|
@@ -54,12 +54,12 @@ class K {
|
|
|
54
54
|
}
|
|
55
55
|
var V = /* @__PURE__ */ ((t) => (t.BUTTON = "BUTTON", t.DIVIDER = "DIVIDER", t.CHECKBOX = "CHECKBOX", t.SUB = "SUB", t.VIEW = "VIEW", t))(V || {});
|
|
56
56
|
class $ {
|
|
57
|
-
constructor(n, r, e = V.BUTTON, o = "", s = "", i = void 0, a = void 0, l = "", E = !1,
|
|
58
|
-
}, T = () => {
|
|
57
|
+
constructor(n, r, e = V.BUTTON, o = "", s = "", i = void 0, a = void 0, l = "", E = !1, h = "", T = () => {
|
|
59
58
|
}, L = () => {
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
|
|
59
|
+
}, S = () => {
|
|
60
|
+
}, B = e === V.BUTTON, b = !1, U = () => {
|
|
61
|
+
}, m = void 0, G = /* @__PURE__ */ new Date()) {
|
|
62
|
+
this.options = n, this.id = r, this.type = e, this.text = o, this.tip = s, this.icon = i, this.view = a, this.color = l, this.disabled = E, this.shortcut = h, this.onClick = T, this.onMouseOver = L, this.onMouseOut = S, this.closeAllOnClick = B, this.checkboxDefaultValue = b, this.onCheckboxChange = U, this.sub = m, this.createTime = G;
|
|
63
63
|
}
|
|
64
64
|
static fromOptions(n, r) {
|
|
65
65
|
return new $(
|
|
@@ -83,21 +83,21 @@ class $ {
|
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
var J = /* @__PURE__ */ ((t) => (t.GREEN = "GREEN", t.PURPLE = "PURPLE", t.BLUE = "BLUE", t.PINK = "PINK", t))(J || {}),
|
|
86
|
+
var J = /* @__PURE__ */ ((t) => (t.GREEN = "GREEN", t.PURPLE = "PURPLE", t.BLUE = "BLUE", t.PINK = "PINK", t))(J || {}), lr = /* @__PURE__ */ ((t) => (t.LEFT = "LEFT", t.CENTER = "CENTER", t.RIGHT = "RIGHT", t))(lr || {});
|
|
87
87
|
class Q {
|
|
88
|
-
constructor(n, r, e = "", o = void 0, s = "", i = "LEFT", a = void 0, l = void 0, E = void 0,
|
|
89
|
-
},
|
|
90
|
-
}, Ht = () => {
|
|
91
|
-
}, Vt = () => {
|
|
88
|
+
constructor(n, r, e = "", o = void 0, s = "", i = "LEFT", a = void 0, l = void 0, E = void 0, h = J.BLUE, T = !1, L = "", S = {}, B = "", b = "", U = !1, m = "", G = "", xt = U, Bt = !1, bt = () => {
|
|
89
|
+
}, Gt = () => !0, Ht = !0, Vt = () => {
|
|
92
90
|
}, _t = () => {
|
|
93
91
|
}, Mt = () => {
|
|
94
92
|
}, Ft = () => {
|
|
95
93
|
}, Wt = () => {
|
|
96
94
|
}, yt = () => {
|
|
97
|
-
}, kt = () =>
|
|
98
|
-
}, zt =
|
|
99
|
-
},
|
|
100
|
-
|
|
95
|
+
}, kt = () => {
|
|
96
|
+
}, zt = () => {
|
|
97
|
+
}, Xt = () => () => {
|
|
98
|
+
}, Yt = !0, jt = !0, Kt = !1, $t = !0, Jt = !1, Qt = m, qt = /* @__PURE__ */ new Date(), Zt = () => {
|
|
99
|
+
}, pt = /* @__PURE__ */ new Map()) {
|
|
100
|
+
this.options = n, this.id = r, this.title = e, this.titleIcon = o, this.content = s, this.contentAlign = i, this.contentView = a, this.icon = l, this.view = E, this.theme = h, this.leftMode = T, this.className = L, this.style = S, this.confirmText = B, this.cancelText = b, this.enableInput = U, this.defaultValue = m, this.inputPlaceholder = G, this.autoFocus = xt, this.allowEmpty = Bt, this.onChange = bt, this.onCheck = Gt, this.enableCloseButton = Ht, this.onConfirm = Vt, this.onCancel = _t, this.onClose = Mt, this.onConfirmButtonClick = Ft, this.onCancelButtonClick = Wt, this.onOutsideClick = yt, this.onCloseButtonClick = kt, this.onRender = zt, this.onEffect = Xt, this.closeOnConfirm = Yt, this.closeOnCancel = jt, this.closeOnOutsideClick = Kt, this.closeOnCloseButtonClick = $t, this.alignButton = Jt, this.inputValue = Qt, this.createTime = qt, this.focusInput = Zt, this.elements = pt;
|
|
101
101
|
}
|
|
102
102
|
static fromOptions(n, r) {
|
|
103
103
|
return new Q(
|
|
@@ -143,45 +143,45 @@ class Q {
|
|
|
143
143
|
setHide = () => {
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
var
|
|
147
|
-
const f = "*/*", u = "unknown/unknown",
|
|
148
|
-
...D,
|
|
149
|
-
...d,
|
|
146
|
+
var hr = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(hr || {}), Ar = /* @__PURE__ */ ((t) => (t.START = "START", t.PROGRESS = "PROGRESS", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(Ar || {});
|
|
147
|
+
const f = "*/*", u = "unknown/unknown", O = "babylonjs/scene", F = "babylonjs/mesh", q = "babylonjs/light", Z = "babylonjs/camera", D = "babylonjs/texture", C = "babylonjs/material", w = "babylonjs/uv", p = "babylonjs/animation", v = "model/gltf-binary", tt = "model/gltf+json", W = "model/stl", rt = "model/obj", nt = "audio/mpeg", et = "audio/wav", Or = "audio/aac", Dr = "audio/ogg", Rr = "audio/flac", Nr = "audio/opus", ot = "image/jpeg", ut = "image/png", Tr = "image/gif", Lr = "image/bmp", Sr = "image/webp", Ir = "image/svg+xml", Cr = "image/tiff", dr = "image/x-icon", Pr = "image/heif", Ur = "image/avif", st = "video/mp4", mr = "video/webm", wr = "video/x-msvideo", gr = "video/mpeg", xr = "video/quicktime", Br = "video/x-ms-wmv", br = "video/x-flv", Gr = "video/ogg", Hr = "video/3gpp", Vr = "video/x-matroska", it = "application/json", ct = "nextflow/sync", ft = "text/plain", _r = "text/markdown", R = [ot, ut], d = [O, v, tt, W, rt], N = [st], y = [O, F, q, Z, D, C, w, p], g = [nt, et], P = [ft], x = [it], Mr = [ct], at = [
|
|
150
148
|
...R,
|
|
149
|
+
...d,
|
|
150
|
+
...N,
|
|
151
151
|
...y,
|
|
152
|
-
...
|
|
153
|
-
...
|
|
154
|
-
...
|
|
152
|
+
...g,
|
|
153
|
+
...P,
|
|
154
|
+
...x
|
|
155
155
|
], Et = [
|
|
156
|
-
...D,
|
|
157
|
-
...d,
|
|
158
156
|
...R,
|
|
159
|
-
...x,
|
|
160
|
-
...U,
|
|
161
|
-
...g
|
|
162
|
-
], lt = [
|
|
163
|
-
...D,
|
|
164
157
|
...d,
|
|
158
|
+
...N,
|
|
159
|
+
...g,
|
|
160
|
+
...P,
|
|
161
|
+
...x
|
|
162
|
+
], lt = [
|
|
165
163
|
...R,
|
|
166
|
-
...
|
|
167
|
-
|
|
164
|
+
...d,
|
|
165
|
+
...N,
|
|
166
|
+
...P
|
|
167
|
+
], ht = [...R, ...N, D], At = [D, C, w];
|
|
168
168
|
async function Ot(t) {
|
|
169
169
|
if (t && t instanceof Blob) {
|
|
170
170
|
if (t instanceof File && t.name.endsWith(".babylon"))
|
|
171
|
-
return
|
|
172
|
-
const n = await
|
|
171
|
+
return O;
|
|
172
|
+
const n = await er(t);
|
|
173
173
|
return !n && t instanceof File && t.name.endsWith(".stl") ? W : n?.mime ?? u;
|
|
174
174
|
}
|
|
175
175
|
return u;
|
|
176
176
|
}
|
|
177
177
|
async function k(t) {
|
|
178
|
-
return t ? t.endsWith(".babylon") ?
|
|
178
|
+
return t ? t.endsWith(".babylon") ? O : (await import("mime")).default.getType(t) ?? u : u;
|
|
179
179
|
}
|
|
180
180
|
async function Dt(t) {
|
|
181
181
|
if (!t)
|
|
182
182
|
return u;
|
|
183
183
|
if (t.endsWith(".babylon"))
|
|
184
|
-
return
|
|
184
|
+
return O;
|
|
185
185
|
try {
|
|
186
186
|
const n = await fetch(t);
|
|
187
187
|
if (!n.body)
|
|
@@ -197,12 +197,12 @@ async function Dt(t) {
|
|
|
197
197
|
return u;
|
|
198
198
|
}
|
|
199
199
|
async function Rt(t) {
|
|
200
|
-
return t ? (await
|
|
200
|
+
return t ? (await or(t))?.mime ?? u : u;
|
|
201
201
|
}
|
|
202
202
|
async function Nt(t) {
|
|
203
203
|
return (await Y(t))?.mime ?? u;
|
|
204
204
|
}
|
|
205
|
-
async function
|
|
205
|
+
async function Fr(t) {
|
|
206
206
|
if (t) {
|
|
207
207
|
if (typeof ReadableStream < "u" && t instanceof ReadableStream)
|
|
208
208
|
return Nt(t);
|
|
@@ -212,66 +212,66 @@ async function _r(t) {
|
|
|
212
212
|
return t.startsWith("http://") || t.startsWith("https://") ? Dt(t) : k(t);
|
|
213
213
|
if (t instanceof ArrayBuffer || t instanceof Uint8Array)
|
|
214
214
|
return Rt(t);
|
|
215
|
-
if (t instanceof Zt)
|
|
216
|
-
return O;
|
|
217
|
-
if (t instanceof pt)
|
|
218
|
-
return C;
|
|
219
215
|
if (t instanceof vt)
|
|
216
|
+
return D;
|
|
217
|
+
if (t instanceof tr)
|
|
218
|
+
return C;
|
|
219
|
+
if (t instanceof rr)
|
|
220
220
|
return F;
|
|
221
221
|
} else return u;
|
|
222
222
|
return u;
|
|
223
223
|
}
|
|
224
|
-
async function
|
|
225
|
-
return t ===
|
|
226
|
-
}
|
|
227
|
-
function Fr(t = u) {
|
|
228
|
-
return t == f ? !0 : t == u ? !1 : at.includes(t);
|
|
229
|
-
}
|
|
230
|
-
function Wr(t = u) {
|
|
231
|
-
return t == f ? !0 : t == u ? !1 : Et.includes(t);
|
|
224
|
+
async function Wr(t = u) {
|
|
225
|
+
return t === O ? "babylon" : Tt(t) || Lt(t) ? t : t === f || t === u ? "" : (await import("mime")).default.getExtension(t) ?? "";
|
|
232
226
|
}
|
|
233
227
|
function yr(t = u) {
|
|
234
|
-
return t == f ? !0 : t == u ? !1 :
|
|
228
|
+
return t == f ? !0 : t == u ? !1 : at.includes(t);
|
|
235
229
|
}
|
|
236
230
|
function kr(t = u) {
|
|
237
|
-
return t == f ? !0 : t == u ? !1 :
|
|
231
|
+
return t == f ? !0 : t == u ? !1 : Et.includes(t);
|
|
238
232
|
}
|
|
239
233
|
function zr(t = u) {
|
|
240
234
|
return t == f ? !0 : t == u ? !1 : R.includes(t);
|
|
241
235
|
}
|
|
242
236
|
function Xr(t = u) {
|
|
243
|
-
return t == f ? !0 : t == u ? !1 :
|
|
237
|
+
return t == f ? !0 : t == u ? !1 : d.includes(t);
|
|
244
238
|
}
|
|
245
239
|
function Yr(t = u) {
|
|
246
|
-
return t == f ? !0 : t == u ? !1 :
|
|
247
|
-
}
|
|
248
|
-
function Tt(t = u) {
|
|
249
|
-
return t == f ? !0 : t == u ? !1 : y.includes(t);
|
|
240
|
+
return t == f ? !0 : t == u ? !1 : N.includes(t);
|
|
250
241
|
}
|
|
251
242
|
function jr(t = u) {
|
|
252
|
-
return t == f ? !0 : t == u ? !1 :
|
|
243
|
+
return t == f ? !0 : t == u ? !1 : P.includes(t);
|
|
253
244
|
}
|
|
254
245
|
function Kr(t = u) {
|
|
255
|
-
return t == f ? !0 : t == u ? !1 :
|
|
246
|
+
return t == f ? !0 : t == u ? !1 : x.includes(t);
|
|
247
|
+
}
|
|
248
|
+
function Tt(t = u) {
|
|
249
|
+
return t == f ? !0 : t == u ? !1 : y.includes(t);
|
|
256
250
|
}
|
|
257
251
|
function $r(t = u) {
|
|
258
|
-
return t == f ? !0 : t == u ? !1 :
|
|
252
|
+
return t == f ? !0 : t == u ? !1 : g.includes(t);
|
|
259
253
|
}
|
|
260
254
|
function Jr(t = u) {
|
|
261
|
-
return t == f ? !0 : t == u ? !1 : t
|
|
255
|
+
return t == f ? !0 : t == u ? !1 : lt.includes(t);
|
|
262
256
|
}
|
|
263
257
|
function Qr(t = u) {
|
|
264
|
-
return t == f ? !0 : t == u ? !1 : t
|
|
258
|
+
return t == f ? !0 : t == u ? !1 : ht.includes(t);
|
|
265
259
|
}
|
|
266
260
|
function qr(t = u) {
|
|
267
|
-
return t == f ? !0 : t == u ? !1 : t ==
|
|
261
|
+
return t == f ? !0 : t == u ? !1 : t == D;
|
|
262
|
+
}
|
|
263
|
+
function Zr(t = u) {
|
|
264
|
+
return t == f ? !0 : t == u ? !1 : t == C;
|
|
265
|
+
}
|
|
266
|
+
function pr(t = u) {
|
|
267
|
+
return t == f ? !0 : t == u ? !1 : t == w;
|
|
268
268
|
}
|
|
269
269
|
function Lt(t = u) {
|
|
270
|
-
return t == f ? !0 : t == u ? !1 :
|
|
270
|
+
return t == f ? !0 : t == u ? !1 : At.includes(t);
|
|
271
271
|
}
|
|
272
|
-
const
|
|
273
|
-
var
|
|
274
|
-
class
|
|
272
|
+
const Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, AAC: Or, ANIMATION: p, ANY: f, ATTACH_LIST: At, AVI: wr, AVIF: Ur, BMP: Lr, CAMERA: Z, FLAC: Rr, FLV: br, GIF: Tr, GLB: v, GLTF: tt, GP3: Hr, HEIF: Pr, ICO: dr, JPG: ot, JSON: it, LIGHT: q, MARKDOWN: _r, MATERIAL: C, MESH: F, MKV: Vr, MOV: xr, MP3: nt, MP4: st, MPEG: gr, NF: ct, OBJ: rt, OGG: Dr, OGV: Gr, OPUS: Nr, PNG: ut, SCENE: O, STL: W, SUPPORT_ALL_LIST: at, SUPPORT_AUDIO_LIST: g, SUPPORT_BABYLON_LIST: y, SUPPORT_FILE_LIST: Et, SUPPORT_IMAGE_LIST: R, SUPPORT_JSON_LIST: x, SUPPORT_MODEL_LIST: d, SUPPORT_NEXTFLOW_LIST: Mr, SUPPORT_RENDER_LIST: lt, SUPPORT_TEXTURE_LIST: ht, SUPPORT_TEXT_LIST: P, SUPPORT_VIDEO_LIST: N, SVG: Ir, TEXTURE: D, TIFF: Cr, TXT: ft, UNKNOWN: u, UV: w, WAV: et, WMV: Br, WebM: mr, WebP: Sr, getExtension: Wr, getMime: Fr, getMimeByBlob: Ot, getMimeByBuffer: Rt, getMimeByPath: k, getMimeByStream: Nt, getMimeByUrl: Dt, isAttach: Lt, isBabylon: Tt, isMaterial: Zr, isSupport: yr, isSupportAudio: $r, isSupportFile: kr, isSupportImage: zr, isSupportJson: Kr, isSupportModel: Xr, isSupportRender: Jr, isSupportText: jr, isSupportTexture: Qr, isSupportVideo: Yr, isTexture: qr, isUV: pr }, Symbol.toStringTag, { value: "Module" }));
|
|
273
|
+
var vr = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t.START = "START", t.PROGRESS = "PROGRESS", t.PAUSE = "PAUSE", t.RESUME = "RESUME", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(vr || {}), tn = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.PAUSED = "PAUSED", t.LOADED = "LOADED", t.FAILED = "FAILED", t.CANCELED = "CANCELED", t))(tn || {}), rn = /* @__PURE__ */ ((t) => (t.BLOB = "BLOB", t.OBJECT = "OBJECT", t))(rn || {}), nn = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.UPLOADING = "UPLOADING", t.PAUSED = "PAUSED", t.COMPLETED = "COMPLETED", t.FAILED = "FAILED", t.CANCELED = "CANCELED", t))(nn || {}), en = /* @__PURE__ */ ((t) => (t.START = "START", t.PROGRESS = "PROGRESS", t.PAUSE = "PAUSE", t.RESUME = "RESUME", t.UPLOADED = "UPLOADED", t.FAILED = "FAILED", t.CANCELED = "CANCELED", t))(en || {}), on = /* @__PURE__ */ ((t) => (t.ZH = "zh", t.EN = "en", t))(on || {}), un = /* @__PURE__ */ ((t) => (t.PENDING = "PENDING", t.PROGRESSING = "PROGRESSING", t.ENDED = "ENDED", t.CANCELED = "CANCELED", t.BANNED = "BANNED", t))(un || {}), sn = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.SELF = "SELF", t.ALL = "ALL", t))(sn || {});
|
|
274
|
+
class Fe {
|
|
275
275
|
constructor(n, r, e, o) {
|
|
276
276
|
this.text = n, this.type = r, this.duration = e, this.id = o;
|
|
277
277
|
}
|
|
@@ -279,41 +279,41 @@ class He {
|
|
|
279
279
|
height = 20;
|
|
280
280
|
opacity = 0;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
async function
|
|
282
|
+
var cn = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.INSTALL = "INSTALL", t.ENABLE = "ENABLE", t.OPEN = "OPEN", t.CLOSE = "CLOSE", t.DISABLE = "DISABLE", t.UNINSTALL = "UNINSTALL", t.DEBUG = "DEBUG", t))(cn || {}), fn = /* @__PURE__ */ ((t) => (t.DISPLAY = "DISPLAY", t.FULL = "FULL", t.HP_BOX = "HP_BOX", t.VR = "VR", t.MR = "MR", t))(fn || {}), I = /* @__PURE__ */ ((t) => (t.EDITOR = "EDITOR", t.VIEWER = "VIEWER", t.VISITOR = "VISITOR", t))(I || {}), an = /* @__PURE__ */ ((t) => (t.DEFAULT = "DEFAULT", t.DESCRIPTION = "DESCRIPTION", t))(an || {}), En = /* @__PURE__ */ ((t) => (t.XS = "XS", t.SM = "SM", t.MD = "MD", t.LG = "LG", t.XL = "XL", t))(En || {}), ln = /* @__PURE__ */ ((t) => (t.DEFAULT = "DEFAULT", t.BACKGROUND = "BACKGROUND", t.LIGHT = "LIGHT", t.DARK = "DARK", t))(ln || {}), hn = /* @__PURE__ */ ((t) => (t.GENERAL = "GENERAL", t.RHINE = "RHINE", t))(hn || {}), An = /* @__PURE__ */ ((t) => (t.Global = "GLOBAL", t.Step = "STEP", t.Node = "NODE", t))(An || {}), On = /* @__PURE__ */ ((t) => (t.UNDO = "UNDO", t.REDO = "REDO", t))(On || {}), Dn = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t))(Dn || {}), Rn = /* @__PURE__ */ ((t) => (t.OSS = "OSS", t.URL = "URL", t))(Rn || {}), Nn = /* @__PURE__ */ ((t) => (t.TEXT = "TEXT", t.CUBE = "CUBE", t.SPHERE = "SPHERE", t.CONE = "CONE", t.PRISM = "PRISM", t.POLYHEDRON = "POLYHEDRON", t.TORUS = "TORUS", t.CYLINDER = "CYLINDER", t.ICO_SPHERE = "ICO_SPHERE", t.CAPSULE = "CAPSULE", t.PLANE = "PLANE", t))(Nn || {}), Tn = /* @__PURE__ */ ((t) => (t.BASIC = "BASIC", t.PROVIDE = "PROVIDE", t.UPLOAD = "UPLOAD", t))(Tn || {}), Ln = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.INSTALL = "INSTALL", t.ENABLE = "ENABLE", t.OPEN = "OPEN", t))(Ln || {}), Sn = /* @__PURE__ */ ((t) => (t.LATEST_STABLE = "LATEST_STABLE", t.LATEST_NIGHTLY = "LATEST_NIGHTLY", t.LATEST_CANARY = "LATEST_CANARY", t))(Sn || {}), In = /* @__PURE__ */ ((t) => (t.TEXTURE = "TEXTURE", t.MATERIAL = "MATERIAL", t.UV = "UV", t))(In || {}), Cn = /* @__PURE__ */ ((t) => (t.FILE = "FILE", t.ATTACH = "ATTACH", t))(Cn || {}), dn = /* @__PURE__ */ ((t) => (t.OPAQUE = "OPAQUE", t.ALPHA_TEST = "ALPHA_TEST", t.ALPHA_BLEND = "ALPHA_BLEND", t.ALPHA_TEST_AND_BLEND = "ALPHA_TEST_AND_BLEND", t))(dn || {}), Pn = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.PBR = "PBR", t.STANDARD = "STANDARD", t.NODE = "NODE", t.OTHER = "OTHER", t.TERRAIN = "TERRAIN", t.FUR = "FUR", t.WATER = "WATER", t.LAVA = "LAVA", t.SKY = "SKY", t.BACKGROUND = "BACKGROUND", t.MULTI = "MULTI", t.SHADER = "SHADER", t))(Pn || {}), Un = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.METAL = "METAL", t.PLASTIC = "PLASTIC", t.GLASS = "GLASS", t.WOOD = "WOOD", t.MIRROR = "MIRROR", t.CRYSTAL = "CRYSTAL", t.PAINT = "PAINT", t.CLOTH = "CLOTH", t))(Un || {}), mn = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t))(mn || {}), wn = /* @__PURE__ */ ((t) => (t.SYNC = "SYNC", t.STEP = "STEP", t.SELECT = "SELECT", t.ADD = "ADD", t.UPDATE = "UPDATE", t.DELETE = "DELETE", t))(wn || {});
|
|
283
|
+
async function gn(t) {
|
|
284
284
|
const n = await crypto.subtle.digest("SHA-256", t);
|
|
285
285
|
return Array.from(new Uint8Array(n)).map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
286
286
|
}
|
|
287
287
|
const H = {
|
|
288
|
-
computeSHA256:
|
|
288
|
+
computeSHA256: gn
|
|
289
289
|
};
|
|
290
|
-
function
|
|
290
|
+
function xn(t, n) {
|
|
291
291
|
const r = [];
|
|
292
292
|
return r.push({ path: t, value: n }), r;
|
|
293
293
|
}
|
|
294
|
-
const
|
|
295
|
-
recursPathValue:
|
|
294
|
+
const We = {
|
|
295
|
+
recursPathValue: xn
|
|
296
296
|
};
|
|
297
|
-
function
|
|
297
|
+
function St(t) {
|
|
298
298
|
const n = Math.floor(t).toString().length, r = n <= 1 ? 2 : 1;
|
|
299
299
|
return t.toFixed(r);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function Bn(t) {
|
|
302
302
|
const n = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
|
303
303
|
let r = 0;
|
|
304
304
|
for (; t >= 1024 && r < n.length - 1; )
|
|
305
305
|
t /= 1024, r++;
|
|
306
|
-
let e =
|
|
306
|
+
let e = St(t);
|
|
307
307
|
return e.endsWith(".0") && (e = e.slice(0, -2)), e.endsWith(".00") && (e = e.slice(0, -3)), `${e} ${n[r]}`;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function bn(t) {
|
|
310
310
|
const n = t.lastIndexOf(".");
|
|
311
311
|
return n === -1 ? [t, ""] : [t.substring(0, n), t.substring(n + 1)];
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function Gn(t) {
|
|
314
314
|
return t ? t instanceof File ? [t] : t instanceof FileList ? Array.from(t) : t : [];
|
|
315
315
|
}
|
|
316
|
-
async function
|
|
316
|
+
async function It(t) {
|
|
317
317
|
const n = [0.25, 0.5, 0.75], r = 64 * 1024, e = 1024 * 1024;
|
|
318
318
|
if (t.size <= e) {
|
|
319
319
|
const E = await t.arrayBuffer();
|
|
@@ -321,22 +321,22 @@ async function St(t) {
|
|
|
321
321
|
}
|
|
322
322
|
const o = n.map((E) => Math.floor(t.size * E)), s = await Promise.all(
|
|
323
323
|
o.map(async (E) => {
|
|
324
|
-
const
|
|
325
|
-
return H.computeSHA256(
|
|
324
|
+
const h = E, T = Math.min(h + r, t.size), L = t.slice(h, T), S = await L.arrayBuffer();
|
|
325
|
+
return H.computeSHA256(S);
|
|
326
326
|
})
|
|
327
327
|
), i = new TextEncoder(), a = s.join(""), l = i.encode(a);
|
|
328
328
|
return H.computeSHA256(l);
|
|
329
329
|
}
|
|
330
|
-
async function
|
|
330
|
+
async function Hn(t, n, r, e) {
|
|
331
331
|
if (n === t.name && r === t.size)
|
|
332
332
|
if (e) {
|
|
333
|
-
if (e === await
|
|
333
|
+
if (e === await It(t))
|
|
334
334
|
return !0;
|
|
335
335
|
} else
|
|
336
336
|
return !0;
|
|
337
337
|
return !1;
|
|
338
338
|
}
|
|
339
|
-
async function
|
|
339
|
+
async function Vn(t) {
|
|
340
340
|
const n = await fetch(t, { method: "HEAD" });
|
|
341
341
|
if (!n.ok)
|
|
342
342
|
throw new Error(`HEAD request failed with status: ${String(n.status)}`);
|
|
@@ -353,31 +353,31 @@ async function bn(t) {
|
|
|
353
353
|
}
|
|
354
354
|
return { name: new URL(t).pathname.split("/").pop() ?? "unknown", size: e };
|
|
355
355
|
}
|
|
356
|
-
const
|
|
357
|
-
to3n:
|
|
358
|
-
convertBytesToHigherUnit:
|
|
359
|
-
splitName:
|
|
360
|
-
ensureFileArray:
|
|
361
|
-
chunkHash:
|
|
362
|
-
isSameFile:
|
|
363
|
-
getFileInfo:
|
|
356
|
+
const ye = {
|
|
357
|
+
to3n: St,
|
|
358
|
+
convertBytesToHigherUnit: Bn,
|
|
359
|
+
splitName: bn,
|
|
360
|
+
ensureFileArray: Gn,
|
|
361
|
+
chunkHash: It,
|
|
362
|
+
isSameFile: Hn,
|
|
363
|
+
getFileInfo: Vn
|
|
364
364
|
};
|
|
365
|
-
function
|
|
365
|
+
function _n(t) {
|
|
366
366
|
return t * (180 / Math.PI);
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function Mn(t) {
|
|
369
369
|
return t * (Math.PI / 180);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function Fn(t, n, r = 1e-6) {
|
|
372
372
|
return Math.abs(t - n) < r;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Wn(t, n, r, e) {
|
|
375
375
|
return Math.sqrt((r - t) ** 2 + (e - n) ** 2);
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function yn(t, n, r, e, o, s) {
|
|
378
378
|
return Math.sqrt((e - t) ** 2 + (o - n) ** 2 + (s - r) ** 2);
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function kn(t, n) {
|
|
381
381
|
let r = 1 / 0, e = -1;
|
|
382
382
|
for (let o = 0; o < n.length; o++) {
|
|
383
383
|
const s = Math.abs(t - n[o]);
|
|
@@ -385,13 +385,13 @@ function Fn(t, n) {
|
|
|
385
385
|
}
|
|
386
386
|
return e;
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
toDegrees:
|
|
390
|
-
toRadians:
|
|
391
|
-
approximatelyEqual:
|
|
392
|
-
getDistance:
|
|
393
|
-
getDistance3d:
|
|
394
|
-
getNearestNumberIndex:
|
|
388
|
+
const zn = {
|
|
389
|
+
toDegrees: _n,
|
|
390
|
+
toRadians: Mn,
|
|
391
|
+
approximatelyEqual: Fn,
|
|
392
|
+
getDistance: Wn,
|
|
393
|
+
getDistance3d: yn,
|
|
394
|
+
getNearestNumberIndex: kn
|
|
395
395
|
};
|
|
396
396
|
function _(t) {
|
|
397
397
|
if (t.type.includes("touch")) {
|
|
@@ -406,27 +406,27 @@ function _(t) {
|
|
|
406
406
|
const n = t;
|
|
407
407
|
return [n.clientX, n.clientY];
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function Xn(t, n) {
|
|
410
410
|
const [r, e] = _(t), [o, s] = _(n);
|
|
411
|
-
return
|
|
411
|
+
return zn.getDistance(r, e, o, s);
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Yn(t) {
|
|
414
414
|
t.preventDefault();
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function jn(t) {
|
|
417
417
|
t.stopPropagation();
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Kn(t) {
|
|
420
420
|
t.preventDefault(), t.stopPropagation();
|
|
421
421
|
}
|
|
422
|
-
const
|
|
422
|
+
const ke = {
|
|
423
423
|
getEventPosition: _,
|
|
424
|
-
getDistanceBetweenEvents:
|
|
425
|
-
preventDefaultListener:
|
|
426
|
-
stopPropagationListener:
|
|
427
|
-
preventDefaultStopPropagationListener:
|
|
424
|
+
getDistanceBetweenEvents: Xn,
|
|
425
|
+
preventDefaultListener: Yn,
|
|
426
|
+
stopPropagationListener: jn,
|
|
427
|
+
preventDefaultStopPropagationListener: Kn
|
|
428
428
|
};
|
|
429
|
-
async function
|
|
429
|
+
async function $n(t, n = 3) {
|
|
430
430
|
let r;
|
|
431
431
|
for (let e = 0; e < n; e++)
|
|
432
432
|
try {
|
|
@@ -440,7 +440,7 @@ ${t}`);
|
|
|
440
440
|
}
|
|
441
441
|
throw r;
|
|
442
442
|
}
|
|
443
|
-
async function
|
|
443
|
+
async function Jn(t, n = 3) {
|
|
444
444
|
let r;
|
|
445
445
|
for (let e = 0; e < n; e++)
|
|
446
446
|
try {
|
|
@@ -454,38 +454,38 @@ ${t}`);
|
|
|
454
454
|
}
|
|
455
455
|
throw r;
|
|
456
456
|
}
|
|
457
|
-
const
|
|
458
|
-
fetchJsonWithRetry:
|
|
459
|
-
fetchBlobWithRetry:
|
|
457
|
+
const ze = {
|
|
458
|
+
fetchJsonWithRetry: $n,
|
|
459
|
+
fetchBlobWithRetry: Jn
|
|
460
460
|
};
|
|
461
461
|
function z(t, n) {
|
|
462
462
|
const r = 10 ** n;
|
|
463
463
|
return Math.round(t * r) / r;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function Qn(t) {
|
|
466
466
|
return z(t, 2);
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function qn(t) {
|
|
469
469
|
return z(t, 3);
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Zn(t) {
|
|
472
472
|
return typeof t == "number" && !isNaN(t) && isFinite(t);
|
|
473
473
|
}
|
|
474
474
|
const c = {
|
|
475
475
|
roundToX: z,
|
|
476
|
-
r2:
|
|
477
|
-
r3:
|
|
478
|
-
isValidNumber:
|
|
476
|
+
r2: Qn,
|
|
477
|
+
r3: qn,
|
|
478
|
+
isValidNumber: Zn
|
|
479
479
|
};
|
|
480
|
-
function
|
|
480
|
+
function pn(t) {
|
|
481
481
|
return t === "space" ? I.EDITOR : t === "m" ? I.VISITOR : I.VIEWER;
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function vn(t) {
|
|
484
484
|
return new URLSearchParams(window.location.search).get(t) ?? void 0;
|
|
485
485
|
}
|
|
486
|
-
const
|
|
487
|
-
getPageTypeBySpaceText:
|
|
488
|
-
getSearchParams:
|
|
486
|
+
const Xe = {
|
|
487
|
+
getPageTypeBySpaceText: pn,
|
|
488
|
+
getSearchParams: vn
|
|
489
489
|
};
|
|
490
490
|
function Ct(t) {
|
|
491
491
|
const n = [];
|
|
@@ -498,14 +498,14 @@ function Ct(t) {
|
|
|
498
498
|
function dt(t) {
|
|
499
499
|
return t.join(".");
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function A(t) {
|
|
502
502
|
return typeof t == "string" ? Ct(t) : t;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function te(t) {
|
|
505
505
|
return typeof t != "string" ? dt(t) : t;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
const r =
|
|
507
|
+
function re(t, n) {
|
|
508
|
+
const r = A(n);
|
|
509
509
|
let e = t;
|
|
510
510
|
for (const o of r) {
|
|
511
511
|
if (e == null)
|
|
@@ -514,35 +514,55 @@ function pn(t, n) {
|
|
|
514
514
|
}
|
|
515
515
|
return e;
|
|
516
516
|
}
|
|
517
|
-
function
|
|
518
|
-
const e =
|
|
517
|
+
function ne(t, n, r) {
|
|
518
|
+
const e = A(n);
|
|
519
519
|
let o = t;
|
|
520
520
|
for (let s = 0; s < e.length - 1; s++)
|
|
521
521
|
o = o[e[s]];
|
|
522
522
|
o[e[e.length - 1]] = r;
|
|
523
523
|
}
|
|
524
|
-
function
|
|
525
|
-
const r =
|
|
524
|
+
function Pt(t, n) {
|
|
525
|
+
const r = A(t), e = A(n), o = r.length > e.length ? e.length : r.length;
|
|
526
526
|
for (let s = 0; s < o; s++)
|
|
527
527
|
if (r[s] != e[s])
|
|
528
528
|
return !1;
|
|
529
529
|
return !0;
|
|
530
530
|
}
|
|
531
|
-
|
|
531
|
+
function ee(t, n) {
|
|
532
|
+
const r = A(t);
|
|
533
|
+
return n.some((e) => Pt(r, e));
|
|
534
|
+
}
|
|
535
|
+
function Ut(t, n) {
|
|
536
|
+
const r = A(t), e = A(n);
|
|
537
|
+
if (r.length !== e.length)
|
|
538
|
+
return !1;
|
|
539
|
+
for (let o = 0; o < r.length; o++)
|
|
540
|
+
if (r[o] !== e[o])
|
|
541
|
+
return !1;
|
|
542
|
+
return !0;
|
|
543
|
+
}
|
|
544
|
+
function oe(t, n) {
|
|
545
|
+
const r = A(t);
|
|
546
|
+
return n.some((e) => Ut(r, e));
|
|
547
|
+
}
|
|
548
|
+
const Ye = {
|
|
532
549
|
makeRvPath: Ct,
|
|
533
550
|
makeRvPathString: dt,
|
|
534
|
-
ensureRvPath:
|
|
535
|
-
ensureRvPathString:
|
|
536
|
-
getByRvPath:
|
|
537
|
-
setByRvPath:
|
|
538
|
-
|
|
551
|
+
ensureRvPath: A,
|
|
552
|
+
ensureRvPathString: te,
|
|
553
|
+
getByRvPath: re,
|
|
554
|
+
setByRvPath: ne,
|
|
555
|
+
checkRvPathSame: Ut,
|
|
556
|
+
checkAnyRvPathSame: oe,
|
|
557
|
+
checkRvPathOverlay: Pt,
|
|
558
|
+
checkAnyRvPathOverlay: ee
|
|
539
559
|
};
|
|
540
|
-
function
|
|
560
|
+
function je(t) {
|
|
541
561
|
return new Promise((n) => {
|
|
542
562
|
setTimeout(n, t);
|
|
543
563
|
});
|
|
544
564
|
}
|
|
545
|
-
function
|
|
565
|
+
function Ke(t, n) {
|
|
546
566
|
if (n === 0)
|
|
547
567
|
return t;
|
|
548
568
|
let r, e = 0, o, s = null;
|
|
@@ -550,17 +570,17 @@ function ze(t, n) {
|
|
|
550
570
|
e = Date.now(), r && t.apply(o, r);
|
|
551
571
|
}
|
|
552
572
|
return function(...l) {
|
|
553
|
-
const E = Date.now(),
|
|
573
|
+
const E = Date.now(), h = E - e;
|
|
554
574
|
if (r = l, o = this, e === 0) {
|
|
555
575
|
setTimeout(i, 1);
|
|
556
576
|
return;
|
|
557
577
|
}
|
|
558
|
-
s && (clearTimeout(s), s = null),
|
|
578
|
+
s && (clearTimeout(s), s = null), h < n ? s = setTimeout(() => {
|
|
559
579
|
i(), s = null;
|
|
560
|
-
}, n -
|
|
580
|
+
}, n - h) : i();
|
|
561
581
|
};
|
|
562
582
|
}
|
|
563
|
-
function
|
|
583
|
+
function ue(t) {
|
|
564
584
|
const n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), e = Math.floor(t % 60);
|
|
565
585
|
return [
|
|
566
586
|
n > 0 ? String(n).padStart(2, "0") : null,
|
|
@@ -568,52 +588,52 @@ function re(t) {
|
|
|
568
588
|
String(e).padStart(2, "0")
|
|
569
589
|
].filter(Boolean).join(":");
|
|
570
590
|
}
|
|
571
|
-
function
|
|
591
|
+
function se(t = /* @__PURE__ */ new Date()) {
|
|
572
592
|
const n = t.getFullYear().toString(), r = (t.getMonth() + 1).toString().padStart(2, "0"), e = t.getDate().toString().padStart(2, "0"), o = t.getHours().toString().padStart(2, "0"), s = t.getMinutes().toString().padStart(2, "0"), i = t.getSeconds().toString().padStart(2, "0"), a = t.getMilliseconds().toString().padStart(3, "0");
|
|
573
593
|
return n + r + e + o + s + i + a;
|
|
574
594
|
}
|
|
575
|
-
function
|
|
595
|
+
function ie(t, n) {
|
|
576
596
|
const r = n - t, e = Math.floor(r / 1e3), o = Math.floor(e / 3600), s = Math.floor(e % 3600 / 60), i = e % 60;
|
|
577
597
|
return `${o > 0 ? `${o.toString().padStart(2, "0")}:` : ""}${s.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}`;
|
|
578
598
|
}
|
|
579
|
-
const
|
|
580
|
-
convertTimeText:
|
|
581
|
-
formatDateTo17Digits:
|
|
582
|
-
formatDuration:
|
|
599
|
+
const $e = {
|
|
600
|
+
convertTimeText: ue,
|
|
601
|
+
formatDateTo17Digits: se,
|
|
602
|
+
formatDuration: ie
|
|
583
603
|
};
|
|
584
|
-
function
|
|
604
|
+
function ce(t) {
|
|
585
605
|
const n = new RegExp(`(^|&)${t}=([^&]*)(&|$)`, "i"), r = window.location.search.substring(1).match(n);
|
|
586
606
|
return r != null ? decodeURIComponent(r[2]) : "";
|
|
587
607
|
}
|
|
588
|
-
function
|
|
608
|
+
function fe(t) {
|
|
589
609
|
const n = new RegExp(`(^|&)${t}=([^&]*)(&|$)`, "i"), r = window.location.hash.substring(1).match(n);
|
|
590
610
|
return r != null ? decodeURIComponent(r[2]) : "";
|
|
591
611
|
}
|
|
592
|
-
function
|
|
612
|
+
function ae(t) {
|
|
593
613
|
return new RegExp(
|
|
594
614
|
"^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?:\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",
|
|
595
615
|
"i"
|
|
596
616
|
).test(t);
|
|
597
617
|
}
|
|
598
|
-
async function
|
|
618
|
+
async function Ee() {
|
|
599
619
|
const t = window.location.href;
|
|
600
|
-
return
|
|
620
|
+
return mt(t);
|
|
601
621
|
}
|
|
602
|
-
async function
|
|
622
|
+
async function le(t) {
|
|
603
623
|
try {
|
|
604
624
|
return await navigator.clipboard.writeText(t), !0;
|
|
605
625
|
} catch {
|
|
606
626
|
return !1;
|
|
607
627
|
}
|
|
608
628
|
}
|
|
609
|
-
async function
|
|
629
|
+
async function mt(t) {
|
|
610
630
|
try {
|
|
611
631
|
return await navigator.clipboard.writeText(t), !0;
|
|
612
632
|
} catch {
|
|
613
633
|
return !1;
|
|
614
634
|
}
|
|
615
635
|
}
|
|
616
|
-
function
|
|
636
|
+
function he(t, n = !0) {
|
|
617
637
|
try {
|
|
618
638
|
const o = new URL(t).pathname.split("/").pop() ?? "";
|
|
619
639
|
return !n && o.includes(".") ? o.substring(0, o.lastIndexOf(".")) : o;
|
|
@@ -621,26 +641,26 @@ function fe(t, n = !0) {
|
|
|
621
641
|
return "";
|
|
622
642
|
}
|
|
623
643
|
}
|
|
624
|
-
const
|
|
625
|
-
getParam:
|
|
626
|
-
getHashParam:
|
|
627
|
-
check:
|
|
628
|
-
copyCurrentUrlToClipboard:
|
|
629
|
-
copyText:
|
|
630
|
-
trySetClipboard:
|
|
631
|
-
extractFilenameFromUrl:
|
|
644
|
+
const Je = {
|
|
645
|
+
getParam: ce,
|
|
646
|
+
getHashParam: fe,
|
|
647
|
+
check: ae,
|
|
648
|
+
copyCurrentUrlToClipboard: Ee,
|
|
649
|
+
copyText: le,
|
|
650
|
+
trySetClipboard: mt,
|
|
651
|
+
extractFilenameFromUrl: he
|
|
632
652
|
};
|
|
633
|
-
function
|
|
653
|
+
function Ae(t, n = -1, r = [0, 0]) {
|
|
634
654
|
return t ? n === -1 ? [t.x, t.y] : [c.roundToX(t.x, n), c.roundToX(t.y, n)] : r;
|
|
635
655
|
}
|
|
636
|
-
function
|
|
656
|
+
function Oe(t, n = -1, r = [0, 0, 0]) {
|
|
637
657
|
return t ? n === -1 ? [t.x, t.y, t.z] : [
|
|
638
658
|
c.roundToX(t.x, n),
|
|
639
659
|
c.roundToX(t.y, n),
|
|
640
660
|
c.roundToX(t.z, n)
|
|
641
661
|
] : r;
|
|
642
662
|
}
|
|
643
|
-
function
|
|
663
|
+
function De(t, n = -1, r = [0, 0, 0, 0]) {
|
|
644
664
|
return t ? n === -1 ? [t.x, t.y, t.z, t.w] : [
|
|
645
665
|
c.roundToX(t.x, n),
|
|
646
666
|
c.roundToX(t.y, n),
|
|
@@ -648,159 +668,160 @@ function le(t, n = -1, r = [0, 0, 0, 0]) {
|
|
|
648
668
|
c.roundToX(t.w, n)
|
|
649
669
|
] : r;
|
|
650
670
|
}
|
|
651
|
-
function
|
|
671
|
+
function Re(t, n) {
|
|
652
672
|
return { x: n.x * t, y: n.y * t, z: n.z * t };
|
|
653
673
|
}
|
|
654
674
|
function wt(t) {
|
|
655
675
|
return { x: t.x * 180 / Math.PI, y: t.y * 180 / Math.PI, z: t.z * 180 / Math.PI };
|
|
656
676
|
}
|
|
657
|
-
function
|
|
677
|
+
function Ne(t) {
|
|
658
678
|
return { x: t.x * Math.PI / 180, y: t.y * Math.PI / 180, z: t.z * Math.PI / 180 };
|
|
659
679
|
}
|
|
660
|
-
function
|
|
680
|
+
function Te(t) {
|
|
661
681
|
return M.RotationYawPitchRoll(t.y, t.x, t.z);
|
|
662
682
|
}
|
|
663
|
-
function
|
|
683
|
+
function Le(t) {
|
|
664
684
|
return M.RotationYawPitchRoll(
|
|
665
685
|
t.y * Math.PI / 180,
|
|
666
686
|
t.x * Math.PI / 180,
|
|
667
687
|
t.z * Math.PI / 180
|
|
668
688
|
);
|
|
669
689
|
}
|
|
670
|
-
function
|
|
671
|
-
return new
|
|
690
|
+
function Se(t) {
|
|
691
|
+
return new nr(t.x, t.y, t.z);
|
|
672
692
|
}
|
|
673
|
-
function
|
|
693
|
+
function Ie(t) {
|
|
674
694
|
return { x: t.x, y: t.y, z: t.z };
|
|
675
695
|
}
|
|
676
|
-
function
|
|
696
|
+
function Ce(t, n = 0) {
|
|
677
697
|
return {
|
|
678
698
|
x: c.roundToX(t.x, n),
|
|
679
699
|
y: c.roundToX(t.y, n),
|
|
680
700
|
z: c.roundToX(t.z, n)
|
|
681
701
|
};
|
|
682
702
|
}
|
|
683
|
-
function
|
|
703
|
+
function de(t) {
|
|
684
704
|
return isFinite(t.x) && isFinite(t.y) && isFinite(t.z);
|
|
685
705
|
}
|
|
686
|
-
function
|
|
706
|
+
function Pe(t) {
|
|
687
707
|
return t.x !== 0 && t.y !== 0 && t.z !== 0;
|
|
688
708
|
}
|
|
689
|
-
function
|
|
709
|
+
function Ue(t, n) {
|
|
690
710
|
return { x: n.x * t, y: n.y * t, z: n.z * t, w: n.w * t };
|
|
691
711
|
}
|
|
692
712
|
function X(t) {
|
|
693
713
|
return new M(t.x, t.y, t.z, t.w);
|
|
694
714
|
}
|
|
695
|
-
function
|
|
715
|
+
function me(t) {
|
|
696
716
|
return X(t).toEulerAngles();
|
|
697
717
|
}
|
|
698
|
-
function
|
|
718
|
+
function we(t) {
|
|
699
719
|
const n = X(t);
|
|
700
720
|
return wt(n.toEulerAngles());
|
|
701
721
|
}
|
|
702
|
-
function
|
|
722
|
+
function gt(t) {
|
|
703
723
|
return "w" in t;
|
|
704
724
|
}
|
|
705
|
-
function
|
|
706
|
-
return
|
|
725
|
+
function ge(t) {
|
|
726
|
+
return gt(t) ? [t.x, t.y, t.z, t.w] : [t.x, t.y, t.z];
|
|
707
727
|
}
|
|
708
|
-
function
|
|
728
|
+
function xe(t) {
|
|
709
729
|
return { x: t.x, y: t.y, z: t.z, w: t.w };
|
|
710
730
|
}
|
|
711
|
-
function
|
|
712
|
-
return
|
|
731
|
+
function Be(t, n = 0) {
|
|
732
|
+
return gt(t) ? [
|
|
713
733
|
c.roundToX(t.x, n),
|
|
714
734
|
c.roundToX(t.y, n),
|
|
715
735
|
c.roundToX(t.z, n),
|
|
716
736
|
c.roundToX(t.w, n)
|
|
717
737
|
] : [c.roundToX(t.x, n), c.roundToX(t.y, n), c.roundToX(t.z, n)];
|
|
718
738
|
}
|
|
719
|
-
const
|
|
720
|
-
xyToArray:
|
|
721
|
-
xyzToArray:
|
|
722
|
-
xyzwToArray:
|
|
723
|
-
scaleV3:
|
|
739
|
+
const Qe = {
|
|
740
|
+
xyToArray: Ae,
|
|
741
|
+
xyzToArray: Oe,
|
|
742
|
+
xyzwToArray: De,
|
|
743
|
+
scaleV3: Re,
|
|
724
744
|
radiansToDegrees: wt,
|
|
725
|
-
degreeToRadians:
|
|
726
|
-
radiansToQuaternion:
|
|
727
|
-
degreesToQuaternion:
|
|
728
|
-
toVector3:
|
|
729
|
-
fromVector3:
|
|
730
|
-
withRound:
|
|
731
|
-
isFiniteVector:
|
|
732
|
-
noZero:
|
|
733
|
-
scaleV4:
|
|
745
|
+
degreeToRadians: Ne,
|
|
746
|
+
radiansToQuaternion: Te,
|
|
747
|
+
degreesToQuaternion: Le,
|
|
748
|
+
toVector3: Se,
|
|
749
|
+
fromVector3: Ie,
|
|
750
|
+
withRound: Ce,
|
|
751
|
+
isFiniteVector: de,
|
|
752
|
+
noZero: Pe,
|
|
753
|
+
scaleV4: Ue,
|
|
734
754
|
toQuaternionVector: X,
|
|
735
|
-
toEulerRadians:
|
|
736
|
-
toEulerDegrees:
|
|
737
|
-
toArray:
|
|
738
|
-
fromQuaternion:
|
|
739
|
-
toArrayWithRound4:
|
|
755
|
+
toEulerRadians: me,
|
|
756
|
+
toEulerDegrees: we,
|
|
757
|
+
toArray: ge,
|
|
758
|
+
fromQuaternion: xe,
|
|
759
|
+
toArrayWithRound4: Be
|
|
740
760
|
};
|
|
741
761
|
export {
|
|
742
|
-
|
|
762
|
+
Me as AcceptMime,
|
|
763
|
+
An as AttributeType,
|
|
743
764
|
K as ContextMenu,
|
|
744
765
|
H as CryptoUtils,
|
|
745
|
-
|
|
766
|
+
We as DataUtils,
|
|
746
767
|
Q as Dialog,
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
768
|
+
lr as DialogContentAlign,
|
|
769
|
+
He as DomNotFoundError,
|
|
770
|
+
Ln as EnableLevel,
|
|
771
|
+
ye as FileUtils,
|
|
772
|
+
Er as FirstLoadModelServiceEventType,
|
|
773
|
+
ar as FirstLoadModelServiceStatus,
|
|
774
|
+
Ar as FirstLoadServiceEventType,
|
|
775
|
+
hr as FirstLoadServiceStatus,
|
|
776
|
+
an as FocusMode,
|
|
777
|
+
On as HistoryServiceEventType,
|
|
778
|
+
sr as IconPluginPosition,
|
|
779
|
+
_e as LabelInfo,
|
|
759
780
|
j as LabelTheme,
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
781
|
+
vr as LocalDataServiceEventType,
|
|
782
|
+
tn as LocalDataStatus,
|
|
783
|
+
rn as LocalDataType,
|
|
784
|
+
on as Locale,
|
|
785
|
+
zn as MathUtils,
|
|
786
|
+
un as MeetingStatus,
|
|
766
787
|
$ as MenuLine,
|
|
767
788
|
V as MenuLineType,
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
789
|
+
Fe as Message,
|
|
790
|
+
ke as NativeEventUtils,
|
|
791
|
+
ze as NetworkUtils,
|
|
792
|
+
ur as NotFoundError,
|
|
772
793
|
c as NumberUtils,
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
794
|
+
nn as OssUploadInstanceStatus,
|
|
795
|
+
en as OssUploadServiceEventType,
|
|
796
|
+
fn as PageMode,
|
|
776
797
|
I as PageType,
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
798
|
+
Xe as PageUtils,
|
|
799
|
+
cn as PluginEventType,
|
|
800
|
+
ir as PluginType,
|
|
801
|
+
cr as RsModelServiceEventType,
|
|
802
|
+
fr as RsModelStatus,
|
|
803
|
+
In as RvAttachType,
|
|
804
|
+
Nn as RvBasicType,
|
|
805
|
+
Dn as RvFileServiceEventType,
|
|
806
|
+
Rn as RvFileType,
|
|
807
|
+
Pn as RvMaterialType,
|
|
808
|
+
Tn as RvModelOrigin,
|
|
809
|
+
Un as RvPresetType,
|
|
810
|
+
mn as RvResourceServiceEventType,
|
|
811
|
+
Cn as RvResourceType,
|
|
812
|
+
Ye as RvUtils,
|
|
813
|
+
En as ScreenSize,
|
|
814
|
+
sn as ShareMode,
|
|
815
|
+
Ve as StaticClassInstantiationError,
|
|
816
|
+
wn as TChangeType,
|
|
817
|
+
ln as ThemeBackground,
|
|
797
818
|
J as ThemeColor,
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
819
|
+
hn as ThemeShape,
|
|
820
|
+
$e as TimeUtils,
|
|
821
|
+
dn as TransparencyMode,
|
|
822
|
+
Je as UrlUtils,
|
|
823
|
+
Qe as VectorUtils,
|
|
824
|
+
Sn as VersionPoint,
|
|
825
|
+
je as sleep,
|
|
826
|
+
Ke as throttle
|
|
806
827
|
};
|