@tresjs/core 5.0.0-alpha.1 → 5.0.0-alpha.2
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/src/devtools/DevtoolsMessenger.d.ts +53 -0
- package/dist/src/devtools/index.d.ts +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/utils/is/three.d.ts +2 -2
- package/dist/tres.js +975 -915
- package/package.json +26 -26
package/dist/tres.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @tresjs/core
|
|
3
|
-
* version: v5.0.0-alpha.
|
|
3
|
+
* version: v5.0.0-alpha.2
|
|
4
4
|
* (c) 2025
|
|
5
5
|
* description: Declarative ThreeJS using Vue Components
|
|
6
6
|
* author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
|
|
7
7
|
*/
|
|
8
|
-
import { reactive as
|
|
8
|
+
import { reactive as Do, toValue as D, watch as At, onUnmounted as ie, defineComponent as ot, renderSlot as Io, unref as ke, ref as Ae, computed as J, watchEffect as $, readonly as zt, shallowRef as it, isRef as me, useSlots as ko, getCurrentInstance as $t, onMounted as Kt, createElementBlock as xo, openBlock as Ro, normalizeStyle as Lo, normalizeClass as Fo, createRenderer as Mo, h as Wt, provide as qe, Fragment as No } from "vue";
|
|
9
9
|
import * as vr from "three";
|
|
10
|
-
import { Layers as Vo, Scene as yr, MathUtils as Bo, Clock as Uo, WebGLRenderer as
|
|
11
|
-
import { useAsyncState as oi, whenever as qt, tryOnScopeDispose as ii, createEventHook as Ee, useRafFn as Tr, useDevicePixelRatio as si, useTimeout as
|
|
12
|
-
const _i = "@tresjs/core", mi = "module", gi = "5.0.0-alpha.
|
|
10
|
+
import { Layers as Vo, Scene as yr, MathUtils as Bo, Clock as Uo, WebGLRenderer as br, Mesh as He, Material as Ho, Vector3 as I, Vector2 as Y, Ray as st, SphereGeometry as jo, Object3D as je, Matrix4 as Te, BufferAttribute as Cr, Triangle as wr, Line3 as zo, Plane as ze, Raycaster as $o, Quaternion as ut, Sphere as Ko, MeshBasicMaterial as Ar, DoubleSide as Wo, Color as xe, PCFSoftShadowMap as Go, ACESFilmicToneMapping as Yo, PerspectiveCamera as qo, ArrowHelper as Xo, Line as Qo, BufferGeometry as Gt, Float32BufferAttribute as Yt, LineBasicMaterial as Zo, BackSide as Jo, HemisphereLightHelper as ei, SpotLightHelper as ti, PointLightHelper as ni, DirectionalLightHelper as ri } from "three";
|
|
11
|
+
import { useAsyncState as oi, whenever as qt, tryOnScopeDispose as ii, createEventHook as Ee, useRafFn as Tr, useDevicePixelRatio as si, useTimeout as ui, unrefElement as ai, useWindowSize as li, useElementSize as ci, refDebounced as Xt, createInjectionState as fi, useFps as di, useMemory as pi, promiseTimeout as hi } from "@vueuse/core";
|
|
12
|
+
const _i = "@tresjs/core", mi = "module", gi = "5.0.0-alpha.2", Ei = "pnpm@10.6.3", vi = "Declarative ThreeJS using Vue Components", yi = "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)", bi = "MIT", Ci = { type: "git", url: "git+https://github.com/Tresjs/tres.git" }, wi = ["vue", "3d", "threejs", "three", "threejs-vue"], Ai = !1, Ti = { ".": { types: "./dist/index.d.ts", import: "./dist/tres.js", require: "./dist/tres.js", default: "./dist/tres.js" }, "./components": { types: "./dist/src/components/index.d.ts" }, "./composables": { types: "./dist/src/composables/index.d.ts" }, "./types": { types: "./dist/src/types/index.d.ts" }, "./utils": { types: "./dist/src/utils/index.d.ts" }, "./*": "./*" }, Oi = "./dist/tres.js", Si = "./dist/tres.js", Pi = "./dist/index.d.ts", Di = ["*.d.ts", "dist"], Ii = { access: "public" }, ki = { dev: "pnpm --filter='./playground/vue' dev", "dev:nuxt": "pnpm --filter='./playground/nuxt' dev", build: "vite build", test: "vitest", "test:ci": "vitest run", "test:ui": "vitest --ui --coverage.enabled=true", release: "release-it", coverage: "vitest run --coverage", lint: "eslint .", "lint:fix": "eslint . --fix", typecheck: "vue-tsc --noEmit", "docs:dev": "pnpm --filter='./docs' dev", "docs:generate": "pnpm --filter='./docs' generate", "docs:prepare": "pnpm --filter='./docs' prepare", "docs:lint": "pnpm --filter='./docs' lint", "docs:typecheck": "pnpm --filter='./docs' typecheck", postinstall: "pnpm run build && pnpm --filter='./docs' prepare" }, xi = { three: ">=0.133", vue: ">=3.4" }, Ri = { "@pmndrs/pointer-events": "^6.6.17", "@vue/devtools-api": "^7.7.2", "@vueuse/core": "^13.9.0", radashi: "^12.6.2" }, Li = { "@release-it/conventional-changelog": "^10.0.0", "@stackblitz/sdk": "^1.11.0", "@tresjs/cientos": "5.0.0-next.0", "@tresjs/eslint-config": "^1.4.0", "@tresjs/leches": "1.0.0-next.0", "@types/three": "^0.179.0", "@typescript-eslint/eslint-plugin": "^8.42.0", "@typescript-eslint/parser": "^8.42.0", "@vitejs/plugin-vue": "^6.0.1", "@vitest/coverage-c8": "^0.33.0", "@vitest/coverage-v8": "^3.2.4", "@vitest/ui": "^3.2.4", "@vue/test-utils": "^2.4.6", eslint: "^9.34.0", "eslint-plugin-vue": "^10.4.0", esno: "^4.8.0", gsap: "^3.13.0", jsdom: "^26.1.0", kolorist: "^1.8.0", ohmyfetch: "^0.4.21", pathe: "^2.0.3", "release-it": "^19.0.4", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-copy": "^3.5.0", "rollup-plugin-visualizer": "^6.0.3", sponsorkit: "^17.0.0", three: "^0.179.1", unocss: "^65.5.0", unplugin: "^2.3.10", "unplugin-vue-components": "^29.0.0", vite: "^7.1.4", "vite-plugin-banner": "^0.8.1", "vite-plugin-dts": "4.5.4", "vite-plugin-inspect": "^11.3.3", "vite-plugin-require-transform": "^1.0.21", "vite-svg-loader": "^5.1.0", vitepress: "1.6.4", vitest: "3.2.4", vue: "3.5.21", "vue-demi": "^0.14.10", "vue-tsc": "^3.0.6" }, Fi = { onlyBuiltDependencies: ["better-sqlite3"], ignoredBuiltDependencies: ["vue-demi"], overrides: { vue: "^3.5.21", "vue-router": "^4.5.1" } }, Mi = { unimport: "4.1.1" }, Ni = {
|
|
13
13
|
name: _i,
|
|
14
14
|
type: mi,
|
|
15
15
|
version: gi,
|
|
16
16
|
packageManager: Ei,
|
|
17
17
|
description: vi,
|
|
18
18
|
author: yi,
|
|
19
|
-
license:
|
|
20
|
-
repository:
|
|
19
|
+
license: bi,
|
|
20
|
+
repository: Ci,
|
|
21
21
|
keywords: wi,
|
|
22
22
|
sideEffects: Ai,
|
|
23
23
|
exports: Ti,
|
|
24
24
|
main: Oi,
|
|
25
25
|
module: Si,
|
|
26
26
|
types: Pi,
|
|
27
|
-
files:
|
|
28
|
-
publishConfig:
|
|
27
|
+
files: Di,
|
|
28
|
+
publishConfig: Ii,
|
|
29
29
|
scripts: ki,
|
|
30
30
|
peerDependencies: xi,
|
|
31
31
|
dependencies: Ri,
|
|
32
|
-
devDependencies:
|
|
33
|
-
pnpm:
|
|
34
|
-
resolutions:
|
|
32
|
+
devDependencies: Li,
|
|
33
|
+
pnpm: Fi,
|
|
34
|
+
resolutions: Mi
|
|
35
35
|
};
|
|
36
36
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
37
37
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -42,7 +42,7 @@ function Vi(e) {
|
|
|
42
42
|
return (n) => n in t;
|
|
43
43
|
}
|
|
44
44
|
const Bi = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot", Ui = /* @__PURE__ */ Vi(Bi);
|
|
45
|
-
function
|
|
45
|
+
function Qt(e) {
|
|
46
46
|
var t;
|
|
47
47
|
const n = ((t = e?.replace(/([A-Z])+/g, Hi)) == null ? void 0 : t.split(/(?=[A-Z])|[\.\-\s_]/).map((r) => r.toLowerCase())) ?? [];
|
|
48
48
|
return n.length === 0 ? "" : n.length === 1 ? n[0] : n.reduce((r, o) => `${r}${o.charAt(0).toUpperCase()}${o.slice(1)}`);
|
|
@@ -70,7 +70,7 @@ function Or(e, t) {
|
|
|
70
70
|
return !1;
|
|
71
71
|
return !0;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Q(e) {
|
|
74
74
|
return typeof e == "function";
|
|
75
75
|
}
|
|
76
76
|
function Sr(e) {
|
|
@@ -85,32 +85,32 @@ function Ot(e) {
|
|
|
85
85
|
function ji(e, t) {
|
|
86
86
|
return Object.prototype.toString.call(e) === t;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function at(e) {
|
|
89
89
|
return typeof e > "u";
|
|
90
90
|
}
|
|
91
|
-
const B = (e) => (t) => Tt(t) && e in t && !!t[e], lt = B("isObject3D"),
|
|
91
|
+
const B = (e) => (t) => Tt(t) && e in t && !!t[e], lt = B("isObject3D"), $e = B("isMesh"), Pr = B("isCamera"), zi = B("isOrthographicCamera"), Dr = B("isPerspectiveCamera"), Ir = B("isColor"), $i = (e) => Ot(e) || Sr(e) || Ir(e), Zt = (e) => e instanceof Vo, kr = B("isBufferGeometry"), xr = B("isMaterial"), Rr = B("isLight"), Lr = B("isFog"), Fr = B("isScene"), dl = B("isGroup"), ct = (e) => e !== null && typeof e == "object" && "set" in e && typeof e.set == "function", Ki = (e) => ct(e) && "copy" in e && typeof e.copy == "function", Wi = (e) => !!e?.constructor, re = (e) => Pr(e) || zi(e) || Dr(e), Gi = (e) => (
|
|
92
92
|
// NOTE: TresObject is currently defined as
|
|
93
93
|
// TresObject3D | THREE.BufferGeometry | THREE.Material | THREE.Fog
|
|
94
|
-
lt(e) || kr(e) || xr(e) ||
|
|
94
|
+
lt(e) || kr(e) || xr(e) || Lr(e)
|
|
95
95
|
), Yi = B("isPrimitive"), qi = (e) => Gi(e) && "__tres" in e, Xi = (e, t) => {
|
|
96
96
|
let n = 0;
|
|
97
97
|
for (let r = 0; r < e.length; r++)
|
|
98
98
|
t(e[r], r) && (e[n] = e[r], n++);
|
|
99
99
|
return e.length = n, e;
|
|
100
|
-
},
|
|
100
|
+
}, pl = !0, Fe = "[TresJS ▲ ■ ●] ";
|
|
101
101
|
function Jt(...e) {
|
|
102
|
-
typeof e[0] == "string" ? e[0] =
|
|
102
|
+
typeof e[0] == "string" ? e[0] = Fe + e[0] : e.unshift(Fe), console.error(...e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
typeof e[0] == "string" ? e[0] =
|
|
104
|
+
function Me(...e) {
|
|
105
|
+
typeof e[0] == "string" ? e[0] = Fe + e[0] : e.unshift(Fe), console.warn(...e);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function hl(e, t) {
|
|
108
108
|
}
|
|
109
109
|
function en(e) {
|
|
110
110
|
((n) => "map" in n && !!n.map)(e) && e.map.dispose(), e.dispose();
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
if (e.parent && e.removeFromParent?.(), delete e.__tres, [...e.children].forEach((n) =>
|
|
112
|
+
function Ne(e) {
|
|
113
|
+
if (e.parent && e.removeFromParent?.(), delete e.__tres, [...e.children].forEach((n) => Ne(n)), !(e instanceof yr)) {
|
|
114
114
|
const n = e;
|
|
115
115
|
e && e.dispose?.(), n.geometry && n.geometry.dispose(), Array.isArray(n.material) ? n.material.forEach((r) => en(r)) : n.material && en(n.material);
|
|
116
116
|
}
|
|
@@ -129,16 +129,16 @@ function Ve(e, t) {
|
|
|
129
129
|
function tn(...e) {
|
|
130
130
|
return e.map((t, n) => n === 0 ? t : t.charAt(0).toUpperCase() + t.slice(1)).join("");
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Qi(e, t, n) {
|
|
133
133
|
const r = /-\d+$/;
|
|
134
134
|
if (Ot(n)) {
|
|
135
135
|
if (r.test(n)) {
|
|
136
|
-
const s = n.replace(r, ""), { target:
|
|
137
|
-
if (!Array.isArray(a
|
|
138
|
-
const l = a
|
|
136
|
+
const s = n.replace(r, ""), { target: u, key: a } = Ve(e, s);
|
|
137
|
+
if (!Array.isArray(u[a])) {
|
|
138
|
+
const l = u[a], c = [];
|
|
139
139
|
c.__tresDetach = () => {
|
|
140
|
-
c.every((f) =>
|
|
141
|
-
}, a
|
|
140
|
+
c.every((f) => at(f)) && (u[a] = l);
|
|
141
|
+
}, u[a] = c;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
const { target: o, key: i } = Ve(e, n);
|
|
@@ -146,7 +146,7 @@ function Zi(e, t, n) {
|
|
|
146
146
|
} else
|
|
147
147
|
t.__tres.previousAttach = n(e, t);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Zi(e, t, n) {
|
|
150
150
|
if (Ot(n)) {
|
|
151
151
|
const { target: r, key: o } = Ve(e, n), i = t.__tres.previousAttach;
|
|
152
152
|
i === void 0 ? delete r[o] : r[o] = i, "__tresDetach" in r && r.__tresDetach();
|
|
@@ -164,7 +164,7 @@ function X(e, t, n) {
|
|
|
164
164
|
parent: null,
|
|
165
165
|
previousAttach: null,
|
|
166
166
|
...t
|
|
167
|
-
}, r.__tres.attach || (xr(r) ? r.__tres.attach = "material" : kr(r) ? r.__tres.attach = "geometry" :
|
|
167
|
+
}, r.__tres.attach || (xr(r) ? r.__tres.attach = "material" : kr(r) ? r.__tres.attach = "geometry" : Lr(r) && (r.__tres.attach = "fog")), r;
|
|
168
168
|
}
|
|
169
169
|
function ft(e) {
|
|
170
170
|
const t = e?.__tres?.root;
|
|
@@ -174,14 +174,14 @@ function Ji(e, t, n, r, o) {
|
|
|
174
174
|
const i = [...t.__tres.objects], s = se(t);
|
|
175
175
|
if (e = se(e), s === e)
|
|
176
176
|
return !0;
|
|
177
|
-
const
|
|
177
|
+
const u = X(e, t.__tres ?? {}, o), a = t.parent ?? t.__tres.parent ?? null, l = { ...t.__tres.memoizedProps };
|
|
178
178
|
delete l.object;
|
|
179
179
|
for (const c of i)
|
|
180
|
-
|
|
180
|
+
Mr(c, o), Nr(c, o);
|
|
181
181
|
s.__tres.objects = [], r.remove(t);
|
|
182
182
|
for (const [c, f] of Object.entries(l))
|
|
183
|
-
r.patchProp(
|
|
184
|
-
n(e), r.insert(t,
|
|
183
|
+
r.patchProp(u, c, u[c], f);
|
|
184
|
+
n(e), r.insert(t, a);
|
|
185
185
|
for (const c of i)
|
|
186
186
|
r.insert(c, t);
|
|
187
187
|
return !0;
|
|
@@ -193,30 +193,31 @@ function se(e) {
|
|
|
193
193
|
} else
|
|
194
194
|
return e;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Mr(e, t) {
|
|
197
197
|
const n = e.__tres?.parent || t.scene.value;
|
|
198
|
-
e.__tres && (e.__tres.parent = null), n && n.__tres && "objects" in n.__tres && Xi(n.__tres.objects, (r) => r !== e), e.__tres?.attach ?
|
|
198
|
+
e.__tres && (e.__tres.parent = null), n && n.__tres && "objects" in n.__tres && Xi(n.__tres.objects, (r) => r !== e), e.__tres?.attach ? Zi(n, e, e.__tres.attach) : (e.parent?.remove?.(se(e)), e.parent = null);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Nr(e, t) {
|
|
201
201
|
e.traverse?.((n) => {
|
|
202
202
|
re(n) && t.camera.deregisterCamera(n);
|
|
203
203
|
}), re(e) && t.camera.deregisterCamera(e), ft(e);
|
|
204
204
|
}
|
|
205
205
|
function es(e, t, n) {
|
|
206
|
-
const r = new e(n?.manager), o =
|
|
206
|
+
const r = new e(n?.manager), o = Do({
|
|
207
207
|
loaded: 0,
|
|
208
208
|
total: 0,
|
|
209
209
|
percentage: 0
|
|
210
210
|
});
|
|
211
211
|
n?.extensions && n.extensions(r);
|
|
212
|
-
const i =
|
|
213
|
-
(
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
212
|
+
const i = D(t), s = oi(
|
|
213
|
+
(a) => new Promise((l, c) => {
|
|
214
|
+
const f = a || i || "";
|
|
215
|
+
r.load(f, (_) => {
|
|
216
|
+
l(_);
|
|
217
|
+
}, (_) => {
|
|
218
|
+
o.loaded = _.loaded, o.total = _.total, o.percentage = o.loaded / o.total * 100;
|
|
219
|
+
}, (_) => {
|
|
220
|
+
c(_);
|
|
220
221
|
});
|
|
221
222
|
}),
|
|
222
223
|
n?.initialValue ?? null,
|
|
@@ -224,25 +225,25 @@ function es(e, t, n) {
|
|
|
224
225
|
...n?.asyncOptions,
|
|
225
226
|
immediate: n?.asyncOptions?.immediate ?? !0
|
|
226
227
|
}
|
|
227
|
-
),
|
|
228
|
-
if (
|
|
228
|
+
), u = At(() => D(t), (a) => {
|
|
229
|
+
if (a) {
|
|
229
230
|
const l = s.state.value;
|
|
230
|
-
l && typeof l == "object" && "scene" in l && l.scene &&
|
|
231
|
+
l && typeof l == "object" && "scene" in l && l.scene && Ne(l.scene), s.execute(0, a);
|
|
231
232
|
}
|
|
232
233
|
});
|
|
233
234
|
return ie(() => {
|
|
234
|
-
|
|
235
|
-
const
|
|
236
|
-
|
|
235
|
+
u();
|
|
236
|
+
const a = s.state.value;
|
|
237
|
+
a && typeof a == "object" && "scene" in a && a.scene && Ne(a.scene);
|
|
237
238
|
}), {
|
|
238
239
|
...s,
|
|
239
|
-
load: (
|
|
240
|
-
s.execute(0,
|
|
240
|
+
load: (a) => {
|
|
241
|
+
s.execute(0, a);
|
|
241
242
|
},
|
|
242
243
|
progress: o
|
|
243
244
|
};
|
|
244
245
|
}
|
|
245
|
-
const
|
|
246
|
+
const _l = /* @__PURE__ */ ot({
|
|
246
247
|
__name: "component",
|
|
247
248
|
props: {
|
|
248
249
|
loader: {},
|
|
@@ -252,11 +253,11 @@ const pl = /* @__PURE__ */ ot({
|
|
|
252
253
|
emits: ["loaded", "error"],
|
|
253
254
|
setup(e, { emit: t }) {
|
|
254
255
|
const n = e, r = t, { state: o, isLoading: i, error: s } = es(n.loader, n.path, { manager: n.manager });
|
|
255
|
-
return qt(s, (
|
|
256
|
-
|
|
257
|
-
}), qt(o, (
|
|
258
|
-
|
|
259
|
-
}), (
|
|
256
|
+
return qt(s, (u) => {
|
|
257
|
+
u && r("error", u);
|
|
258
|
+
}), qt(o, (u) => {
|
|
259
|
+
u && r("loaded", u);
|
|
260
|
+
}), (u, a) => Io(u.$slots, "default", {
|
|
260
261
|
state: ke(o),
|
|
261
262
|
isLoading: ke(i),
|
|
262
263
|
error: ke(s)
|
|
@@ -264,19 +265,19 @@ const pl = /* @__PURE__ */ ot({
|
|
|
264
265
|
}
|
|
265
266
|
}), ts = ({ sizes: e }) => {
|
|
266
267
|
const t = Ae([]), n = J(() => t.value[0]), r = (s) => {
|
|
267
|
-
const
|
|
268
|
-
if (!
|
|
268
|
+
const u = Pr(s) ? s : t.value.find((l) => l.uuid === s);
|
|
269
|
+
if (!u)
|
|
269
270
|
return;
|
|
270
|
-
const
|
|
271
|
-
t.value = [
|
|
272
|
-
}, o = (s,
|
|
273
|
-
t.value.some(({ uuid:
|
|
271
|
+
const a = t.value.filter(({ uuid: l }) => l !== u.uuid);
|
|
272
|
+
t.value = [u, ...a];
|
|
273
|
+
}, o = (s, u = !1) => {
|
|
274
|
+
t.value.some(({ uuid: a }) => a === s.uuid) || (t.value.push(s), u && r(s.uuid));
|
|
274
275
|
}, i = (s) => {
|
|
275
|
-
t.value = t.value.filter(({ uuid:
|
|
276
|
+
t.value = t.value.filter(({ uuid: u }) => u !== s.uuid);
|
|
276
277
|
};
|
|
277
|
-
return
|
|
278
|
+
return $(() => {
|
|
278
279
|
e.aspectRatio.value && t.value.forEach((s) => {
|
|
279
|
-
|
|
280
|
+
Dr(s) && (s.aspect = e.aspectRatio.value, s.updateProjectionMatrix());
|
|
280
281
|
});
|
|
281
282
|
}), {
|
|
282
283
|
activeCamera: n,
|
|
@@ -289,13 +290,13 @@ const pl = /* @__PURE__ */ ot({
|
|
|
289
290
|
function ns(e) {
|
|
290
291
|
const t = { nodes: {}, materials: {}, meshes: {} };
|
|
291
292
|
return e && e.traverse((n) => {
|
|
292
|
-
n.name && (t.nodes[n.name] = n),
|
|
293
|
+
n.name && (t.nodes[n.name] = n), $e(n) && (t.meshes[n.name] || (t.meshes[n.name] = n), (Array.isArray(n.material) ? n.material : [n.material]).forEach((r) => {
|
|
293
294
|
r.name && !t.materials[r.name] && (t.materials[r.name] = r);
|
|
294
295
|
}));
|
|
295
296
|
}), t;
|
|
296
297
|
}
|
|
297
|
-
const
|
|
298
|
-
const t =
|
|
298
|
+
const ml = (e) => J(() => {
|
|
299
|
+
const t = D(e);
|
|
299
300
|
if (t)
|
|
300
301
|
return ns(t);
|
|
301
302
|
});
|
|
@@ -304,8 +305,8 @@ function nn() {
|
|
|
304
305
|
let n = 0, r = !1;
|
|
305
306
|
const o = () => {
|
|
306
307
|
const l = Array.from(e.entries()).sort((c, f) => {
|
|
307
|
-
const
|
|
308
|
-
return
|
|
308
|
+
const _ = c[1].priority - f[1].priority;
|
|
309
|
+
return _ === 0 ? c[1].addI - f[1].addI : _;
|
|
309
310
|
});
|
|
310
311
|
t.clear(), l.forEach((c) => t.add(c[0]));
|
|
311
312
|
}, i = (l) => {
|
|
@@ -326,7 +327,7 @@ function nn() {
|
|
|
326
327
|
} };
|
|
327
328
|
}
|
|
328
329
|
const dt = Ae({}), pt = (e) => Object.assign(dt.value, e), rs = (e, t, n) => {
|
|
329
|
-
if (!
|
|
330
|
+
if (!Q(e.setPixelRatio))
|
|
330
331
|
return;
|
|
331
332
|
let r = 0;
|
|
332
333
|
if (n && Array.isArray(n) && n.length >= 2) {
|
|
@@ -339,11 +340,11 @@ const dt = Ae({}), pt = (e) => Object.assign(dt.value, e), rs = (e, t, n) => {
|
|
|
339
340
|
before: Ee(),
|
|
340
341
|
after: Ee()
|
|
341
342
|
}, { pause: r, resume: o, isActive: i } = Tr(() => {
|
|
342
|
-
const
|
|
343
|
+
const a = () => ({
|
|
343
344
|
delta: t.getDelta(),
|
|
344
345
|
elapsed: t.elapsedTime
|
|
345
346
|
});
|
|
346
|
-
n.before.trigger(
|
|
347
|
+
n.before.trigger(a()), e(), n.after.trigger(a());
|
|
347
348
|
}, {
|
|
348
349
|
immediate: !1
|
|
349
350
|
});
|
|
@@ -365,37 +366,37 @@ function is({
|
|
|
365
366
|
options: n,
|
|
366
367
|
contextParts: { sizes: r, camera: o }
|
|
367
368
|
}) {
|
|
368
|
-
const s =
|
|
369
|
+
const s = Q(n.renderer) ? n.renderer({
|
|
369
370
|
sizes: r,
|
|
370
371
|
scene: e,
|
|
371
372
|
camera: o,
|
|
372
373
|
canvas: t
|
|
373
|
-
}) : new
|
|
374
|
+
}) : new br({
|
|
374
375
|
...n,
|
|
375
|
-
canvas:
|
|
376
|
-
}),
|
|
376
|
+
canvas: ai(t)
|
|
377
|
+
}), u = Ae(D(n.renderMode) === "manual" ? 0 : 1), a = 60, l = J(() => D(n.renderMode) === "on-demand" && u.value === 0), c = () => e.value.traverse((E) => {
|
|
377
378
|
E instanceof He && E.material instanceof Ho && (E.material.needsUpdate = !0);
|
|
378
379
|
}), f = (E = 1) => {
|
|
379
|
-
l.value && (
|
|
380
|
-
},
|
|
381
|
-
if (
|
|
380
|
+
l.value && (u.value = Math.min(a, u.value + E));
|
|
381
|
+
}, _ = () => {
|
|
382
|
+
if (D(n.renderMode) !== "manual")
|
|
382
383
|
throw new Error("advance can only be called in manual render mode.");
|
|
383
|
-
|
|
384
|
+
u.value = 1;
|
|
384
385
|
}, d = () => {
|
|
385
|
-
|
|
386
|
-
}, h = J(() =>
|
|
386
|
+
D(n.renderMode) === "on-demand" && f();
|
|
387
|
+
}, h = J(() => D(n.renderMode) === "always"), v = (E) => Tt(E) && "isRenderer" in E && !!E.isRenderer, p = Ee();
|
|
387
388
|
let g = !1;
|
|
388
389
|
v(s) && (s.init(), p.trigger(s));
|
|
389
|
-
const
|
|
390
|
-
|
|
390
|
+
const b = Ee(), C = () => {
|
|
391
|
+
u.value = h.value ? 1 : Math.max(0, u.value - 1), b.trigger(s);
|
|
391
392
|
};
|
|
392
393
|
let P = (E) => {
|
|
393
394
|
o.activeCamera.value && (s.render(e.value, o.activeCamera.value), E());
|
|
394
395
|
};
|
|
395
|
-
const
|
|
396
|
+
const M = (E) => {
|
|
396
397
|
P = E;
|
|
397
398
|
}, A = os(() => {
|
|
398
|
-
|
|
399
|
+
u.value && P(C);
|
|
399
400
|
});
|
|
400
401
|
p.on(A.start), At([r.width, r.height], () => {
|
|
401
402
|
s.setSize(r.width.value, r.height.value), !g && s.domElement.width && s.domElement.height && (p.trigger(s), g = !0), d();
|
|
@@ -403,14 +404,14 @@ function is({
|
|
|
403
404
|
immediate: !0
|
|
404
405
|
});
|
|
405
406
|
const { pixelRatio: O } = si();
|
|
406
|
-
|
|
407
|
-
rs(s, O.value,
|
|
408
|
-
}),
|
|
409
|
-
callback:
|
|
407
|
+
$(() => {
|
|
408
|
+
rs(s, O.value, D(n.dpr));
|
|
409
|
+
}), D(n.renderMode) === "on-demand" && f(), D(n.renderMode) === "manual" && ui(100, {
|
|
410
|
+
callback: _
|
|
410
411
|
});
|
|
411
412
|
const T = J(() => {
|
|
412
|
-
const E =
|
|
413
|
-
return R && x !== void 0 &&
|
|
413
|
+
const E = D(n.clearColor), x = D(n.clearAlpha), R = typeof E == "string" && E.length === 9 && E.startsWith("#");
|
|
414
|
+
return R && x !== void 0 && Me(`clearColor with alpha (e.g. ${E}) and clearAlpha cannot both be set, using clearColor as source of truth`), R ? {
|
|
414
415
|
alpha: Number.parseInt(E.slice(7, 9), 16) / 255,
|
|
415
416
|
color: E.slice(0, 7)
|
|
416
417
|
} : {
|
|
@@ -418,22 +419,22 @@ function is({
|
|
|
418
419
|
color: E
|
|
419
420
|
};
|
|
420
421
|
});
|
|
421
|
-
return
|
|
422
|
+
return $(() => {
|
|
422
423
|
const E = T.value;
|
|
423
424
|
E.color === void 0 || E.alpha === void 0 || s.setClearColor(E.color, E.alpha);
|
|
424
|
-
}),
|
|
425
|
+
}), $(() => {
|
|
425
426
|
const E = n.toneMapping;
|
|
426
427
|
E && (s.toneMapping = E);
|
|
427
|
-
}),
|
|
428
|
+
}), $(() => {
|
|
428
429
|
const E = n.toneMappingExposure;
|
|
429
430
|
E && (s.toneMappingExposure = E);
|
|
430
|
-
}),
|
|
431
|
+
}), $(() => {
|
|
431
432
|
const E = n.outputColorSpace;
|
|
432
433
|
E && (s.outputColorSpace = E);
|
|
433
|
-
}),
|
|
434
|
+
}), $(() => {
|
|
434
435
|
const E = n.shadows;
|
|
435
436
|
E !== void 0 && (s.shadowMap.enabled = E, c());
|
|
436
|
-
}),
|
|
437
|
+
}), $(() => {
|
|
437
438
|
const E = n.shadowMapType;
|
|
438
439
|
E !== void 0 && (s.shadowMap.type = E, c());
|
|
439
440
|
}), ie(() => {
|
|
@@ -441,24 +442,24 @@ function is({
|
|
|
441
442
|
}), {
|
|
442
443
|
loop: A,
|
|
443
444
|
instance: s,
|
|
444
|
-
advance:
|
|
445
|
+
advance: _,
|
|
445
446
|
onReady: p.on,
|
|
446
|
-
onRender:
|
|
447
|
+
onRender: b.on,
|
|
447
448
|
invalidate: f,
|
|
448
449
|
canBeInvalidated: l,
|
|
449
|
-
mode:
|
|
450
|
-
replaceRenderFunction:
|
|
450
|
+
mode: D(n.renderMode),
|
|
451
|
+
replaceRenderFunction: M
|
|
451
452
|
};
|
|
452
453
|
}
|
|
453
454
|
function ss(e, t, n = 10) {
|
|
454
|
-
const r =
|
|
455
|
+
const r = D(e) ? li() : ci(J(() => D(t).parentElement)), o = zt(Xt(r.width, n)), i = zt(Xt(r.height, n)), s = J(() => o.value / i.value);
|
|
455
456
|
return {
|
|
456
457
|
height: i,
|
|
457
458
|
width: o,
|
|
458
459
|
aspectRatio: s
|
|
459
460
|
};
|
|
460
461
|
}
|
|
461
|
-
class
|
|
462
|
+
class us {
|
|
462
463
|
nativeEvent;
|
|
463
464
|
NONE = 0;
|
|
464
465
|
CAPTURING_PHASE = 1;
|
|
@@ -565,8 +566,8 @@ class as {
|
|
|
565
566
|
return t in this.nativeEvent ? this.nativeEvent[t] : n;
|
|
566
567
|
}
|
|
567
568
|
}
|
|
568
|
-
const Xe = new
|
|
569
|
-
class
|
|
569
|
+
const Xe = new I();
|
|
570
|
+
class L extends us {
|
|
570
571
|
type;
|
|
571
572
|
bubbles;
|
|
572
573
|
internalPointer;
|
|
@@ -665,7 +666,7 @@ class F extends as {
|
|
|
665
666
|
case "screen-ray":
|
|
666
667
|
case "ray":
|
|
667
668
|
case "sphere":
|
|
668
|
-
return this._ray = new st(this.intersection.pointerPosition, new
|
|
669
|
+
return this._ray = new st(this.intersection.pointerPosition, new I(0, 0, -1).applyQuaternion(this.intersection.pointerQuaternion));
|
|
669
670
|
case "lines":
|
|
670
671
|
return this._ray = new st(this.intersection.details.line.start, this.intersection.details.line.end.clone().sub(this.intersection.details.line.start).normalize());
|
|
671
672
|
}
|
|
@@ -678,7 +679,7 @@ class F extends as {
|
|
|
678
679
|
get unprojectedPoint() {
|
|
679
680
|
if (this._unprojectedPoint == null) {
|
|
680
681
|
const t = this.pointer;
|
|
681
|
-
this._unprojectedPoint = new
|
|
682
|
+
this._unprojectedPoint = new I(t.x, t.y, 0).unproject(this.camera);
|
|
682
683
|
}
|
|
683
684
|
return this._unprojectedPoint;
|
|
684
685
|
}
|
|
@@ -691,11 +692,11 @@ class F extends as {
|
|
|
691
692
|
get delta() {
|
|
692
693
|
throw new Error("not supported");
|
|
693
694
|
}
|
|
694
|
-
constructor(t, n, r, o, i, s,
|
|
695
|
+
constructor(t, n, r, o, i, s, u = i.object, a = u, l = {
|
|
695
696
|
stopped: !n,
|
|
696
697
|
stoppedImmediate: !1
|
|
697
698
|
}) {
|
|
698
|
-
super(r), this.type = t, this.bubbles = n, this.internalPointer = o, this.intersection = i, this.camera = s, this.currentObject =
|
|
699
|
+
super(r), this.type = t, this.bubbles = n, this.internalPointer = o, this.intersection = i, this.camera = s, this.currentObject = u, this.object = a, this.propagationState = l;
|
|
699
700
|
}
|
|
700
701
|
stopPropagation() {
|
|
701
702
|
this.propagationState.stopped = !0;
|
|
@@ -707,10 +708,10 @@ class F extends as {
|
|
|
707
708
|
* for internal use
|
|
708
709
|
*/
|
|
709
710
|
retarget(t) {
|
|
710
|
-
return new
|
|
711
|
+
return new L(this.type, this.bubbles, this.nativeEvent, this.internalPointer, this.intersection, this.camera, t, this.target, this.propagationState);
|
|
711
712
|
}
|
|
712
713
|
}
|
|
713
|
-
class Be extends
|
|
714
|
+
class Be extends L {
|
|
714
715
|
get deltaX() {
|
|
715
716
|
return this.nativeEvent.deltaX;
|
|
716
717
|
}
|
|
@@ -730,7 +731,7 @@ class Be extends F {
|
|
|
730
731
|
return new Be(this.nativeEvent, this.internalPointer, this.intersection, this.camera, t, this.target);
|
|
731
732
|
}
|
|
732
733
|
}
|
|
733
|
-
function
|
|
734
|
+
function N(e) {
|
|
734
735
|
Vr(e, e.currentObject);
|
|
735
736
|
}
|
|
736
737
|
function Vr(e, t) {
|
|
@@ -757,7 +758,7 @@ const Br = {
|
|
|
757
758
|
pointerover: "onPointerOver",
|
|
758
759
|
pointerup: "onPointerUp",
|
|
759
760
|
wheel: "onWheel"
|
|
760
|
-
},
|
|
761
|
+
}, as = Object.keys(Br);
|
|
761
762
|
function ls(e, t) {
|
|
762
763
|
if (e._listeners != null && t in e._listeners)
|
|
763
764
|
return e._listeners[t];
|
|
@@ -780,7 +781,7 @@ function ps(e, t, n) {
|
|
|
780
781
|
if (n === "all")
|
|
781
782
|
return !0;
|
|
782
783
|
if (typeof n == "function")
|
|
783
|
-
return ({ id: i, type: s, state:
|
|
784
|
+
return ({ id: i, type: s, state: u }) => n(i, s, u);
|
|
784
785
|
let r, o;
|
|
785
786
|
return "deny" in n ? (o = !0, r = n.deny) : (o = !1, r = n.allow), Array.isArray(r) ? (i) => on(r.includes(i.type), o) : (i) => on(r === i.type, o);
|
|
786
787
|
}
|
|
@@ -788,22 +789,22 @@ function on(e, t) {
|
|
|
788
789
|
return t ? !e : e;
|
|
789
790
|
}
|
|
790
791
|
function Hr(e, t, n, r = !1, o, i, s) {
|
|
791
|
-
const
|
|
792
|
+
const u = r || hs(e, t), a = t.pointerEvents ?? o, l = a ?? t.defaultPointerEvents ?? "listener", c = t.pointerEventsType ?? i ?? "all", f = t.pointerEventsOrder ?? s ?? 0, _ = ps(u, l, c), d = n.length;
|
|
792
793
|
if (d === 1)
|
|
793
|
-
(
|
|
794
|
-
else if (
|
|
794
|
+
(_ === !0 || typeof _ == "function" && _(n[0])) && Qe(n[0], t, l, c, f);
|
|
795
|
+
else if (_ === !0)
|
|
795
796
|
for (let p = 0; p < d; p++)
|
|
796
|
-
|
|
797
|
-
else if (typeof
|
|
797
|
+
Qe(n[p], t, l, c, f);
|
|
798
|
+
else if (typeof _ == "function")
|
|
798
799
|
for (let p = 0; p < d; p++) {
|
|
799
800
|
const g = n[p];
|
|
800
|
-
|
|
801
|
+
_(g) && Qe(g, t, l, c, f);
|
|
801
802
|
}
|
|
802
803
|
if (t.children.length === 0 || t.intersectChildren === !1)
|
|
803
804
|
return;
|
|
804
805
|
const h = t.interactableDescendants ?? t.children, v = h.length;
|
|
805
806
|
for (let p = 0; p < v; p++)
|
|
806
|
-
Hr(e, h[p], n,
|
|
807
|
+
Hr(e, h[p], n, u, a, c, f);
|
|
807
808
|
}
|
|
808
809
|
function hs(e, t) {
|
|
809
810
|
if (t.ancestorsHaveListeners || e === "pointer" && t.ancestorsHavePointerListeners || e === "wheel" && t.ancestorsHaveWheelListeners || t.__r3f != null && t.__r3f?.eventCount > 0 && (e === "wheel" && t.__r3f.handlers.onWheel != null || e === "pointer" && Object.keys(t.__r3f.handlers).some((o) => o != "onWheel")))
|
|
@@ -817,20 +818,20 @@ function hs(e, t) {
|
|
|
817
818
|
const n = Object.entries(t._listeners), r = n.length;
|
|
818
819
|
for (let o = 0; o < r; o++) {
|
|
819
820
|
const i = n[o];
|
|
820
|
-
if (i[0] !== "wheel" &&
|
|
821
|
+
if (i[0] !== "wheel" && as.includes(i[0]) && i[1] != null && i[1].length > 0)
|
|
821
822
|
return !0;
|
|
822
823
|
}
|
|
823
824
|
return !1;
|
|
824
825
|
}
|
|
825
|
-
function
|
|
826
|
+
function Qe({ intersector: e, options: t }, n, r, o, i) {
|
|
826
827
|
t.filter?.(n, r, o, i) !== !1 && e.executeIntersection(n, i);
|
|
827
828
|
}
|
|
828
829
|
function _s(e, t, { customSort: n = ms } = {}, r) {
|
|
829
830
|
let o, i, s;
|
|
830
|
-
const
|
|
831
|
-
for (let
|
|
832
|
-
const l = e[
|
|
833
|
-
(o == null || n(l, c, o, i) < 0) && (s =
|
|
831
|
+
const u = e.length;
|
|
832
|
+
for (let a = 0; a < u; a++) {
|
|
833
|
+
const l = e[a], c = t?.[a];
|
|
834
|
+
(o == null || n(l, c, o, i) < 0) && (s = a, o = l, i = c);
|
|
834
835
|
}
|
|
835
836
|
return s;
|
|
836
837
|
}
|
|
@@ -839,13 +840,13 @@ function ms(e, t = 0, n, r = 0) {
|
|
|
839
840
|
}
|
|
840
841
|
const sn = 1e7;
|
|
841
842
|
function gs(e, t, n, r, o, i = 0) {
|
|
842
|
-
const s = t.direction.clone().multiplyScalar(sn),
|
|
843
|
+
const s = t.direction.clone().multiplyScalar(sn), u = sn;
|
|
843
844
|
return {
|
|
844
|
-
distance:
|
|
845
|
+
distance: u + i,
|
|
845
846
|
object: Ur(e),
|
|
846
847
|
point: s,
|
|
847
848
|
normal: t.origin.clone().sub(s).normalize(),
|
|
848
|
-
details: n(s,
|
|
849
|
+
details: n(s, u),
|
|
849
850
|
pointerPosition: r,
|
|
850
851
|
pointerQuaternion: o,
|
|
851
852
|
pointOnFace: s,
|
|
@@ -856,7 +857,7 @@ function Es(e, t, n) {
|
|
|
856
857
|
for (; n > 0; )
|
|
857
858
|
e.push(t), --n;
|
|
858
859
|
}
|
|
859
|
-
const
|
|
860
|
+
const Ze = Symbol("buttonsDownTime"), vs = Symbol("buttonsClickTime");
|
|
860
861
|
globalThis.pointerEventspointerMap ??= /* @__PURE__ */ new Map();
|
|
861
862
|
je.prototype.setPointerCapture = function(e) {
|
|
862
863
|
St(e)?.setCapture(this);
|
|
@@ -899,8 +900,8 @@ class ys {
|
|
|
899
900
|
//to handle interaction before first move (after exit)
|
|
900
901
|
wasMoved = !1;
|
|
901
902
|
onFirstMove = [];
|
|
902
|
-
constructor(t, n, r, o, i, s,
|
|
903
|
-
this.id = t, this.type = n, this.state = r, this.intersector = o, this.getCamera = i, this.onMoveCommited = s, this.parentSetPointerCapture =
|
|
903
|
+
constructor(t, n, r, o, i, s, u, a, l = {}) {
|
|
904
|
+
this.id = t, this.type = n, this.state = r, this.intersector = o, this.getCamera = i, this.onMoveCommited = s, this.parentSetPointerCapture = u, this.parentReleasePointerCapture = a, this.options = l, globalThis.pointerEventspointerMap?.set(t, this);
|
|
904
905
|
}
|
|
905
906
|
getPointerCapture() {
|
|
906
907
|
return this.pointerCapture;
|
|
@@ -934,23 +935,23 @@ class ys {
|
|
|
934
935
|
}
|
|
935
936
|
commit(t, n) {
|
|
936
937
|
const r = this.getCamera(), o = this.prevEnabled ? this.prevIntersection : void 0, i = this.enabled ? this.intersection : void 0;
|
|
937
|
-
o != null && o.object != i?.object &&
|
|
938
|
+
o != null && o.object != i?.object && N(new L("pointerout", !0, t, this, o, r));
|
|
938
939
|
const s = this.pointerEntered;
|
|
939
940
|
this.pointerEntered = [], this.pointerEnteredHelper.length = 0, jr(i?.object, this.pointerEntered, s, this.pointerEnteredHelper);
|
|
940
|
-
const
|
|
941
|
-
for (let
|
|
942
|
-
const l = s[
|
|
943
|
-
|
|
941
|
+
const u = s.length;
|
|
942
|
+
for (let a = 0; a < u; a++) {
|
|
943
|
+
const l = s[a];
|
|
944
|
+
N(new L("pointerleave", !1, t, this, o, r, l));
|
|
944
945
|
}
|
|
945
|
-
i != null && o?.object != i.object &&
|
|
946
|
-
for (let
|
|
947
|
-
const l = this.pointerEnteredHelper[
|
|
948
|
-
|
|
946
|
+
i != null && o?.object != i.object && N(new L("pointerover", !0, t, this, i, r));
|
|
947
|
+
for (let a = this.pointerEnteredHelper.length - 1; a >= 0; a--) {
|
|
948
|
+
const l = this.pointerEnteredHelper[a];
|
|
949
|
+
N(new L("pointerenter", !1, t, this, i, r, l));
|
|
949
950
|
}
|
|
950
|
-
if (n && i != null &&
|
|
951
|
+
if (n && i != null && N(new L("pointermove", !0, t, this, i, r)), this.prevIntersection = this.intersection, this.prevEnabled = this.enabled, !this.wasMoved && this.intersector.isReady()) {
|
|
951
952
|
this.wasMoved = !0;
|
|
952
|
-
const
|
|
953
|
-
for (let l = 0; l <
|
|
953
|
+
const a = this.onFirstMove.length;
|
|
954
|
+
for (let l = 0; l < a; l++)
|
|
954
955
|
this.onFirstMove[l](r);
|
|
955
956
|
this.onFirstMove.length = 0;
|
|
956
957
|
}
|
|
@@ -967,7 +968,7 @@ class ys {
|
|
|
967
968
|
* just emitting a move event to the current intersection
|
|
968
969
|
*/
|
|
969
970
|
emitMove(t) {
|
|
970
|
-
this.intersection != null &&
|
|
971
|
+
this.intersection != null && N(new L("pointermove", !0, t, this, this.intersection, this.getCamera()));
|
|
971
972
|
}
|
|
972
973
|
down(t) {
|
|
973
974
|
if (this.buttonsDown.add(t.button), !this.enabled)
|
|
@@ -978,9 +979,9 @@ class ys {
|
|
|
978
979
|
}
|
|
979
980
|
if (this.intersection == null)
|
|
980
981
|
return;
|
|
981
|
-
|
|
982
|
+
N(new L("pointerdown", !0, t, this, this.intersection, this.getCamera()));
|
|
982
983
|
const { object: n } = this.intersection;
|
|
983
|
-
n[
|
|
984
|
+
n[Ze] ??= /* @__PURE__ */ new Map(), n[Ze].set(t.button, t.timeStamp), this.buttonsDownTime.set(t.button, t.timeStamp);
|
|
984
985
|
}
|
|
985
986
|
up(t) {
|
|
986
987
|
if (this.buttonsDown.delete(t.button), !this.enabled)
|
|
@@ -993,16 +994,16 @@ class ys {
|
|
|
993
994
|
return;
|
|
994
995
|
const { clickThesholdMs: n, contextMenuButton: r = 2, dblClickThresholdMs: o = 500, clickThresholdMs: i = n ?? 300 } = this.options;
|
|
995
996
|
this.pointerCapture = void 0;
|
|
996
|
-
const s =
|
|
997
|
-
if (s && t.button === r &&
|
|
997
|
+
const s = bs(this.buttonsDownTime, this.intersection.object[Ze], t.button, t.timeStamp, i), u = this.getCamera();
|
|
998
|
+
if (s && t.button === r && N(new L("contextmenu", !0, t, this, this.intersection, u)), N(new L("pointerup", !0, t, this, this.intersection, u)), !s || t.button === r)
|
|
998
999
|
return;
|
|
999
|
-
|
|
1000
|
-
const { object:
|
|
1000
|
+
N(new L("click", !0, t, this, this.intersection, u));
|
|
1001
|
+
const { object: a } = this.intersection, l = a[vs] ??= /* @__PURE__ */ new Map(), c = l.get(t.button);
|
|
1001
1002
|
if (c == null || t.timeStamp - c > o) {
|
|
1002
1003
|
l.set(t.button, t.timeStamp);
|
|
1003
1004
|
return;
|
|
1004
1005
|
}
|
|
1005
|
-
|
|
1006
|
+
N(new L("dblclick", !0, t, this, this.intersection, u)), l.delete(t.button);
|
|
1006
1007
|
}
|
|
1007
1008
|
cancel(t) {
|
|
1008
1009
|
if (this.enabled) {
|
|
@@ -1010,7 +1011,7 @@ class ys {
|
|
|
1010
1011
|
this.onFirstMove.push(this.cancel.bind(this, t));
|
|
1011
1012
|
return;
|
|
1012
1013
|
}
|
|
1013
|
-
this.intersection != null &&
|
|
1014
|
+
this.intersection != null && N(new L("pointercancel", !0, t, this, this.intersection, this.getCamera()));
|
|
1014
1015
|
}
|
|
1015
1016
|
}
|
|
1016
1017
|
wheel(t, n, r = !1) {
|
|
@@ -1022,7 +1023,7 @@ class ys {
|
|
|
1022
1023
|
}
|
|
1023
1024
|
r || (this.wheelIntersection = this.computeIntersection("wheel", t, n));
|
|
1024
1025
|
const o = r ? this.intersection : this.wheelIntersection;
|
|
1025
|
-
o != null &&
|
|
1026
|
+
o != null && N(new Be(n, this, o, this.getCamera()));
|
|
1026
1027
|
}
|
|
1027
1028
|
emitWheel(t, n = !1) {
|
|
1028
1029
|
if (!this.enabled)
|
|
@@ -1032,7 +1033,7 @@ class ys {
|
|
|
1032
1033
|
return;
|
|
1033
1034
|
}
|
|
1034
1035
|
const r = n ? this.intersection : this.wheelIntersection;
|
|
1035
|
-
r != null &&
|
|
1036
|
+
r != null && N(new Be(t, this, r, this.getCamera()));
|
|
1036
1037
|
}
|
|
1037
1038
|
exit(t) {
|
|
1038
1039
|
this.wasMoved && (this.pointerCapture != null && (this.parentReleasePointerCapture?.(), this.pointerCapture = void 0), this.intersection = void 0, this.commit(t, !1)), this.onFirstMove.length = 0, this.wasMoved = !1;
|
|
@@ -1044,30 +1045,30 @@ function jr(e, t, n, r) {
|
|
|
1044
1045
|
const o = n.indexOf(e);
|
|
1045
1046
|
o != -1 ? n.splice(o, 1) : r.push(e), t.push(e), jr(e.parent, t, n, r);
|
|
1046
1047
|
}
|
|
1047
|
-
function
|
|
1048
|
+
function bs(e, t, n, r, o) {
|
|
1048
1049
|
if (t == null)
|
|
1049
1050
|
return !1;
|
|
1050
1051
|
const i = t.get(n);
|
|
1051
1052
|
return !(i == null || r - i > o || i != e.get(n));
|
|
1052
1053
|
}
|
|
1053
|
-
const he = new wr(), Je = new wr(),
|
|
1054
|
+
const he = new wr(), Je = new wr(), un = new Y(), an = new Y(), ln = new Y(), et = new I(), Cs = new Te(), Pe = new I();
|
|
1054
1055
|
function ws(e, t, n) {
|
|
1055
|
-
Pe.copy(t).applyMatrix4(
|
|
1056
|
+
Pe.copy(t).applyMatrix4(Cs.copy(n.matrixWorld).invert());
|
|
1056
1057
|
const r = n.geometry.attributes.uv;
|
|
1057
|
-
if (r == null || !(r instanceof
|
|
1058
|
+
if (r == null || !(r instanceof Cr))
|
|
1058
1059
|
return !1;
|
|
1059
1060
|
let o;
|
|
1060
|
-
return As(n, (i, s,
|
|
1061
|
-
n.getVertexPosition(i, he.a), n.getVertexPosition(s, he.b), n.getVertexPosition(
|
|
1062
|
-
const
|
|
1063
|
-
o != null &&
|
|
1064
|
-
}), o == null ? !1 : (Je.closestPointToPoint(Pe, et), Je.getInterpolation(et,
|
|
1061
|
+
return As(n, (i, s, u) => {
|
|
1062
|
+
n.getVertexPosition(i, he.a), n.getVertexPosition(s, he.b), n.getVertexPosition(u, he.c);
|
|
1063
|
+
const a = he.closestPointToPoint(Pe, et).distanceTo(Pe);
|
|
1064
|
+
o != null && a >= o || (o = a, Je.copy(he), un.fromBufferAttribute(r, i), an.fromBufferAttribute(r, s), ln.fromBufferAttribute(r, u));
|
|
1065
|
+
}), o == null ? !1 : (Je.closestPointToPoint(Pe, et), Je.getInterpolation(et, un, an, ln, e), !0);
|
|
1065
1066
|
}
|
|
1066
1067
|
function As(e, t) {
|
|
1067
1068
|
const n = e.geometry.drawRange;
|
|
1068
1069
|
if (e.geometry.index != null) {
|
|
1069
|
-
const s = e.geometry.index,
|
|
1070
|
-
for (let l =
|
|
1070
|
+
const s = e.geometry.index, u = Math.max(0, n.start), a = Math.min(s.count, n.start + n.count);
|
|
1071
|
+
for (let l = u; l < a; l += 3)
|
|
1071
1072
|
t(s.getX(l), s.getX(l + 1), s.getX(l + 2));
|
|
1072
1073
|
return;
|
|
1073
1074
|
}
|
|
@@ -1079,25 +1080,25 @@ function As(e, t) {
|
|
|
1079
1080
|
t(s, s + 1, s + 2);
|
|
1080
1081
|
}
|
|
1081
1082
|
new Te();
|
|
1082
|
-
new
|
|
1083
|
-
new
|
|
1084
|
-
new
|
|
1083
|
+
new zo();
|
|
1084
|
+
new I();
|
|
1085
|
+
new ze();
|
|
1085
1086
|
new st();
|
|
1086
1087
|
new Y();
|
|
1087
|
-
new
|
|
1088
|
-
const cn = new Te(), Ts = new
|
|
1089
|
-
new
|
|
1090
|
-
new
|
|
1091
|
-
const fn = new Y(), Os = new
|
|
1088
|
+
new I(0, 0, 0), new I(0, 0, 1);
|
|
1089
|
+
const cn = new Te(), Ts = new I();
|
|
1090
|
+
new I(0, 0, -1);
|
|
1091
|
+
new ze();
|
|
1092
|
+
const fn = new Y(), Os = new I();
|
|
1092
1093
|
class Ss {
|
|
1093
1094
|
prepareTransformation;
|
|
1094
1095
|
options;
|
|
1095
|
-
raycaster = new
|
|
1096
|
-
cameraQuaternion = new
|
|
1097
|
-
fromPosition = new
|
|
1098
|
-
fromQuaternion = new
|
|
1096
|
+
raycaster = new $o();
|
|
1097
|
+
cameraQuaternion = new ut();
|
|
1098
|
+
fromPosition = new I();
|
|
1099
|
+
fromQuaternion = new ut();
|
|
1099
1100
|
coords = new Y();
|
|
1100
|
-
viewPlane = new
|
|
1101
|
+
viewPlane = new ze();
|
|
1101
1102
|
intersects = [];
|
|
1102
1103
|
pointerEventsOrders = [];
|
|
1103
1104
|
constructor(t, n) {
|
|
@@ -1113,7 +1114,7 @@ class Ss {
|
|
|
1113
1114
|
if (!this.startIntersection(r))
|
|
1114
1115
|
return t;
|
|
1115
1116
|
this.viewPlane.constant -= o.distanceViewPlane;
|
|
1116
|
-
const i = this.raycaster.ray.intersectPlane(this.viewPlane, new
|
|
1117
|
+
const i = this.raycaster.ray.intersectPlane(this.viewPlane, new I());
|
|
1117
1118
|
if (i == null)
|
|
1118
1119
|
return t;
|
|
1119
1120
|
t.object.updateWorldMatrix(!0, !1), ds(this.viewPlane, t, t.object.matrixWorld);
|
|
@@ -1143,9 +1144,9 @@ class Ss {
|
|
|
1143
1144
|
}
|
|
1144
1145
|
finalizeIntersection(t) {
|
|
1145
1146
|
const n = this.fromPosition.clone(), r = this.cameraQuaternion.clone(), o = this.raycaster.ray.direction.clone(), i = _s(this.intersects, this.pointerEventsOrders, this.options), s = i == null ? void 0 : this.intersects[i];
|
|
1146
|
-
return this.intersects.length = 0, this.pointerEventsOrders.length = 0, s == null ? gs(t, this.raycaster.ray, (
|
|
1147
|
+
return this.intersects.length = 0, this.pointerEventsOrders.length = 0, s == null ? gs(t, this.raycaster.ray, (u, a) => ({
|
|
1147
1148
|
type: "screen-ray",
|
|
1148
|
-
distanceViewPlane:
|
|
1149
|
+
distanceViewPlane: a,
|
|
1149
1150
|
screenPoint: this.coords.clone(),
|
|
1150
1151
|
direction: o
|
|
1151
1152
|
}), n, r) : (s.object.updateWorldMatrix(!0, !1), cn.copy(s.object.matrixWorld).invert(), Object.assign(s, {
|
|
@@ -1162,27 +1163,27 @@ class Ss {
|
|
|
1162
1163
|
}));
|
|
1163
1164
|
}
|
|
1164
1165
|
}
|
|
1165
|
-
new
|
|
1166
|
+
new I();
|
|
1166
1167
|
new Y();
|
|
1167
1168
|
new Te();
|
|
1168
|
-
new
|
|
1169
|
-
new
|
|
1170
|
-
new
|
|
1169
|
+
new I();
|
|
1170
|
+
new ut();
|
|
1171
|
+
new ze();
|
|
1171
1172
|
new Ko();
|
|
1172
|
-
new
|
|
1173
|
-
new
|
|
1174
|
-
new
|
|
1175
|
-
new
|
|
1173
|
+
new I();
|
|
1174
|
+
new I();
|
|
1175
|
+
new I();
|
|
1176
|
+
new I(1e-4, 1e-4, 1e-4);
|
|
1176
1177
|
new Te();
|
|
1177
1178
|
let Ps = 23412;
|
|
1178
|
-
function
|
|
1179
|
+
function Ds() {
|
|
1179
1180
|
return Ps++;
|
|
1180
1181
|
}
|
|
1181
|
-
function
|
|
1182
|
+
function Is(e, t, n) {
|
|
1182
1183
|
if (!(t instanceof globalThis.MouseEvent))
|
|
1183
1184
|
return n.set(0, 0);
|
|
1184
|
-
const { width: r, height: o, top: i, left: s } = e.getBoundingClientRect(),
|
|
1185
|
-
return n.set(
|
|
1185
|
+
const { width: r, height: o, top: i, left: s } = e.getBoundingClientRect(), u = t.clientX - s, a = t.clientY - i;
|
|
1186
|
+
return n.set(u / r * 2 - 1, -(a / o) * 2 + 1);
|
|
1186
1187
|
}
|
|
1187
1188
|
function ks(e, t, n, r) {
|
|
1188
1189
|
return xs(
|
|
@@ -1190,7 +1191,7 @@ function ks(e, t, n, r) {
|
|
|
1190
1191
|
//backwards compatibility
|
|
1191
1192
|
typeof t == "function" ? t : () => t,
|
|
1192
1193
|
n,
|
|
1193
|
-
|
|
1194
|
+
Is.bind(null, e),
|
|
1194
1195
|
e.setPointerCapture.bind(e),
|
|
1195
1196
|
(o) => {
|
|
1196
1197
|
e.hasPointerCapture(o) && e.releasePointerCapture(o);
|
|
@@ -1202,10 +1203,10 @@ function ks(e, t, n, r) {
|
|
|
1202
1203
|
);
|
|
1203
1204
|
}
|
|
1204
1205
|
function xs(e, t, n, r, o, i, s = {}) {
|
|
1205
|
-
const
|
|
1206
|
-
let E =
|
|
1207
|
-
return E != null || (E = new ys(
|
|
1208
|
-
}, f = /* @__PURE__ */ new Map(),
|
|
1206
|
+
const u = s?.forwardPointerCapture ?? !0, a = /* @__PURE__ */ new Map(), l = s.pointerTypePrefix ?? "forward-", c = (O, T) => {
|
|
1207
|
+
let E = a.get(O.pointerId);
|
|
1208
|
+
return E != null || (E = new ys(Ds(), `${l}${O.pointerType}`, O.pointerState, new Ss((x, R) => (r(x, R), t()), s), t, void 0, u ? o.bind(null, O.pointerId) : void 0, u ? i.bind(null, O.pointerId) : void 0, s), T != "move" && T != "wheel" && (E.setIntersection(E.computeIntersection("pointer", n, O)), E.commit(O, !1)), a.set(O.pointerId, E)), E;
|
|
1209
|
+
}, f = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), d = [], h = [], v = (O, T, E) => {
|
|
1209
1210
|
switch (O) {
|
|
1210
1211
|
case "move":
|
|
1211
1212
|
E.move(n, T);
|
|
@@ -1227,22 +1228,22 @@ function xs(e, t, n, r, o, i, s = {}) {
|
|
|
1227
1228
|
E.up(T);
|
|
1228
1229
|
return;
|
|
1229
1230
|
case "exit":
|
|
1230
|
-
|
|
1231
|
+
_.delete(E), f.delete(E), E.exit(T);
|
|
1231
1232
|
return;
|
|
1232
1233
|
}
|
|
1233
1234
|
}, p = (O, T) => {
|
|
1234
1235
|
const E = c(T, O);
|
|
1235
|
-
O === "move" &&
|
|
1236
|
-
}, g = p.bind(null, "move"),
|
|
1237
|
-
return e.addEventListener("pointermove", g), e.addEventListener("pointercancel",
|
|
1236
|
+
O === "move" && _.set(E, T), O === "wheel" && f.set(E, T), s.batchEvents ?? !0 ? h.push({ type: O, event: T }) : v(O, T, E);
|
|
1237
|
+
}, g = p.bind(null, "move"), b = p.bind(null, "cancel"), C = p.bind(null, "down"), P = p.bind(null, "up"), M = p.bind(null, "wheel"), A = p.bind(null, "exit");
|
|
1238
|
+
return e.addEventListener("pointermove", g), e.addEventListener("pointercancel", b), e.addEventListener("pointerdown", C), e.addEventListener("pointerup", P), e.addEventListener("wheel", M), e.addEventListener("pointerleave", A), {
|
|
1238
1239
|
destroy() {
|
|
1239
|
-
e.removeEventListener("pointermove", g), e.removeEventListener("pointercancel",
|
|
1240
|
+
e.removeEventListener("pointermove", g), e.removeEventListener("pointercancel", b), e.removeEventListener("pointerdown", C), e.removeEventListener("pointerup", P), e.removeEventListener("wheel", M), e.removeEventListener("pointerleave", A), _.clear(), f.clear();
|
|
1240
1241
|
},
|
|
1241
1242
|
update() {
|
|
1242
1243
|
const O = h.length;
|
|
1243
1244
|
for (let T = 0; T < O; T++) {
|
|
1244
1245
|
const { type: E, event: x } = h[T], R = c(x, E);
|
|
1245
|
-
if (E === "move" && (d.push(R),
|
|
1246
|
+
if (E === "move" && (d.push(R), _.get(R) != x)) {
|
|
1246
1247
|
R.emitMove(x);
|
|
1247
1248
|
continue;
|
|
1248
1249
|
}
|
|
@@ -1253,7 +1254,7 @@ function xs(e, t, n, r, o, i, s = {}) {
|
|
|
1253
1254
|
v(E, x, R);
|
|
1254
1255
|
}
|
|
1255
1256
|
if (h.length = 0, s.intersectEveryFrame ?? !1)
|
|
1256
|
-
for (const [T, E] of
|
|
1257
|
+
for (const [T, E] of _.entries())
|
|
1257
1258
|
d.includes(T) || T.move(n, E);
|
|
1258
1259
|
d.length = 0;
|
|
1259
1260
|
}
|
|
@@ -1266,53 +1267,53 @@ function Rs({
|
|
|
1266
1267
|
canvas: e,
|
|
1267
1268
|
contextParts: { scene: t, camera: n, renderer: r }
|
|
1268
1269
|
}) {
|
|
1269
|
-
const { update: o, destroy: i } = ks(
|
|
1270
|
+
const { update: o, destroy: i } = ks(D(e), () => D(n.activeCamera), t.value), { off: s } = r.loop.onLoop(o);
|
|
1270
1271
|
ie(i), ie(s);
|
|
1271
|
-
const
|
|
1272
|
-
return
|
|
1273
|
-
onPointerMissed:
|
|
1272
|
+
const u = Ur(t.value), a = Ee();
|
|
1273
|
+
return u.addEventListener("click", a.trigger), {
|
|
1274
|
+
onPointerMissed: a.on
|
|
1274
1275
|
};
|
|
1275
1276
|
}
|
|
1276
|
-
const
|
|
1277
|
+
const Ls = "useTres", [Fs, Ms] = fi(({
|
|
1277
1278
|
scene: e,
|
|
1278
1279
|
canvas: t,
|
|
1279
1280
|
windowSize: n,
|
|
1280
1281
|
rendererOptions: r
|
|
1281
1282
|
}) => {
|
|
1282
|
-
const o = it(e), i = ss(n, t), s = ts({ sizes: i }),
|
|
1283
|
+
const o = it(e), i = ss(n, t), s = ts({ sizes: i }), u = is(
|
|
1283
1284
|
{
|
|
1284
1285
|
scene: o,
|
|
1285
1286
|
canvas: t,
|
|
1286
1287
|
options: r,
|
|
1287
1288
|
contextParts: { sizes: i, camera: s }
|
|
1288
1289
|
}
|
|
1289
|
-
),
|
|
1290
|
+
), a = Rs({
|
|
1290
1291
|
canvas: t,
|
|
1291
|
-
contextParts: { scene: o, camera: s, renderer:
|
|
1292
|
+
contextParts: { scene: o, camera: s, renderer: u }
|
|
1292
1293
|
}), l = {
|
|
1293
1294
|
sizes: i,
|
|
1294
1295
|
scene: o,
|
|
1295
1296
|
camera: s,
|
|
1296
|
-
renderer:
|
|
1297
|
+
renderer: u,
|
|
1297
1298
|
controls: Ae(null),
|
|
1298
1299
|
extend: pt,
|
|
1299
|
-
events:
|
|
1300
|
+
events: a
|
|
1300
1301
|
};
|
|
1301
1302
|
return l.scene.value.__tres = {
|
|
1302
1303
|
root: l
|
|
1303
1304
|
}, l;
|
|
1304
1305
|
}, {
|
|
1305
1306
|
injectionKey: "useTres"
|
|
1306
|
-
}),
|
|
1307
|
-
const e =
|
|
1307
|
+
}), zr = () => {
|
|
1308
|
+
const e = Ms();
|
|
1308
1309
|
if (!e)
|
|
1309
1310
|
throw new Error(`useTresContext must be used together with useTresContextProvider.
|
|
1310
1311
|
You probably tried to use it above or on the same level as a TresCanvas component.
|
|
1311
1312
|
It should be used in child components of a TresCanvas instance.`);
|
|
1312
1313
|
return e;
|
|
1313
1314
|
};
|
|
1314
|
-
function
|
|
1315
|
-
const { scene: e, renderer: t, camera: n, sizes: r, controls: o, extend: i, events: s } =
|
|
1315
|
+
function Ns() {
|
|
1316
|
+
const { scene: e, renderer: t, camera: n, sizes: r, controls: o, extend: i, events: s } = zr();
|
|
1316
1317
|
return {
|
|
1317
1318
|
scene: e,
|
|
1318
1319
|
renderer: t.instance,
|
|
@@ -1325,8 +1326,8 @@ function Ms() {
|
|
|
1325
1326
|
advance: t.advance
|
|
1326
1327
|
};
|
|
1327
1328
|
}
|
|
1328
|
-
const
|
|
1329
|
-
const e =
|
|
1329
|
+
const gl = () => {
|
|
1330
|
+
const e = Ns(), { renderer: t } = zr(), n = nn(), r = nn();
|
|
1330
1331
|
t.loop.onBeforeLoop((i) => {
|
|
1331
1332
|
n.trigger({ ...e, ...i });
|
|
1332
1333
|
}), t.loop.onLoop((i) => {
|
|
@@ -1344,19 +1345,19 @@ const _l = () => {
|
|
|
1344
1345
|
};
|
|
1345
1346
|
function Vs(e, t = {}, n = {}) {
|
|
1346
1347
|
let r = e;
|
|
1347
|
-
const o = (
|
|
1348
|
-
r =
|
|
1348
|
+
const o = (u) => {
|
|
1349
|
+
r = u;
|
|
1349
1350
|
};
|
|
1350
1351
|
let i = new Proxy({}, {});
|
|
1351
1352
|
const s = {
|
|
1352
|
-
has(
|
|
1353
|
-
return
|
|
1353
|
+
has(u, a) {
|
|
1354
|
+
return a in t || a in r;
|
|
1354
1355
|
},
|
|
1355
|
-
get(
|
|
1356
|
-
return
|
|
1356
|
+
get(u, a, l) {
|
|
1357
|
+
return a in t ? t[a](r) : r[a];
|
|
1357
1358
|
},
|
|
1358
|
-
set(
|
|
1359
|
-
return n[
|
|
1359
|
+
set(u, a, l) {
|
|
1360
|
+
return n[a] ? n[a](l, r, i, o) : r[a] = l, !0;
|
|
1360
1361
|
}
|
|
1361
1362
|
};
|
|
1362
1363
|
return i = new Proxy({}, s), i;
|
|
@@ -1391,7 +1392,7 @@ const Bs = [
|
|
|
1391
1392
|
onWheel: "wheel"
|
|
1392
1393
|
}, pn = (e) => Bs.includes(e), Hs = (e) => {
|
|
1393
1394
|
const t = e.scene.value;
|
|
1394
|
-
function n(c, f,
|
|
1395
|
+
function n(c, f, _, d) {
|
|
1395
1396
|
if (d || (d = {}), d.args || (d.args = []), Ui(c))
|
|
1396
1397
|
return null;
|
|
1397
1398
|
let h = c.replace("Tres", ""), v;
|
|
@@ -1403,16 +1404,16 @@ const Bs = [
|
|
|
1403
1404
|
v = Vs(
|
|
1404
1405
|
d.object,
|
|
1405
1406
|
{
|
|
1406
|
-
object: (
|
|
1407
|
+
object: (b) => b,
|
|
1407
1408
|
isPrimitive: () => !0,
|
|
1408
1409
|
__tres: () => p
|
|
1409
1410
|
},
|
|
1410
1411
|
{
|
|
1411
|
-
object: (
|
|
1412
|
-
Ji(
|
|
1412
|
+
object: (b, C, P, M) => {
|
|
1413
|
+
Ji(b, P, M, { patchProp: i, remove: o, insert: r }, e);
|
|
1413
1414
|
},
|
|
1414
|
-
__tres: (
|
|
1415
|
-
Object.assign(p,
|
|
1415
|
+
__tres: (b) => {
|
|
1416
|
+
Object.assign(p, b);
|
|
1416
1417
|
}
|
|
1417
1418
|
}
|
|
1418
1419
|
);
|
|
@@ -1434,20 +1435,20 @@ const Bs = [
|
|
|
1434
1435
|
if (!c)
|
|
1435
1436
|
return;
|
|
1436
1437
|
f = f || t;
|
|
1437
|
-
const
|
|
1438
|
-
c = se(
|
|
1438
|
+
const _ = c.__tres ? c : X(c, {}, e), d = f.__tres ? f : X(f, {}, e);
|
|
1439
|
+
c = se(_), f = se(d), re(c) && e.camera?.registerCamera(c), _.__tres.attach ? Qi(d, _, _.__tres.attach) : lt(c) && lt(d) && (d.add(c), c.dispatchEvent({ type: "added" })), _.__tres.parent = d, d.__tres.objects && !d.__tres.objects.includes(_) && d.__tres.objects.push(_);
|
|
1439
1440
|
}
|
|
1440
1441
|
function o(c, f) {
|
|
1441
1442
|
if (!c)
|
|
1442
1443
|
return;
|
|
1443
|
-
f =
|
|
1444
|
-
const
|
|
1445
|
-
|
|
1444
|
+
f = at(f) ? "default" : f;
|
|
1445
|
+
const _ = c.__tres?.dispose;
|
|
1446
|
+
at(_) || (_ === null ? f = !1 : f = _);
|
|
1446
1447
|
const d = c.__tres?.primitive, h = f === "default" ? !d : !!f;
|
|
1447
|
-
if (c.__tres && "objects" in c.__tres && [...c.__tres.objects].forEach((v) => o(v, f)), h && c.children && [...c.children].forEach((v) => o(v, f)),
|
|
1448
|
-
if (
|
|
1448
|
+
if (c.__tres && "objects" in c.__tres && [...c.__tres.objects].forEach((v) => o(v, f)), h && c.children && [...c.children].forEach((v) => o(v, f)), Mr(c, e), Nr(c, e), h && !Fr(c)) {
|
|
1449
|
+
if (Q(f))
|
|
1449
1450
|
f(c);
|
|
1450
|
-
else if (
|
|
1451
|
+
else if (Q(c.dispose))
|
|
1451
1452
|
try {
|
|
1452
1453
|
c.dispose();
|
|
1453
1454
|
} catch {
|
|
@@ -1455,34 +1456,34 @@ const Bs = [
|
|
|
1455
1456
|
}
|
|
1456
1457
|
"__tres" in c && delete c.__tres;
|
|
1457
1458
|
}
|
|
1458
|
-
function i(c, f,
|
|
1459
|
+
function i(c, f, _, d) {
|
|
1459
1460
|
if (!c)
|
|
1460
1461
|
return;
|
|
1461
1462
|
let h = c;
|
|
1462
1463
|
const v = f;
|
|
1463
1464
|
if (c.__tres && (c.__tres.memoizedProps[f] = d), f === "attach") {
|
|
1464
|
-
const
|
|
1465
|
-
o(c), X(c, { attach: d }, e),
|
|
1465
|
+
const C = c.__tres?.parent || c.parent;
|
|
1466
|
+
o(c), X(c, { attach: d }, e), C && r(c, C);
|
|
1466
1467
|
return;
|
|
1467
1468
|
}
|
|
1468
1469
|
if (f === "dispose") {
|
|
1469
1470
|
c.__tres || (c = X(c, {}, e)), c.__tres.dispose = d;
|
|
1470
1471
|
return;
|
|
1471
1472
|
}
|
|
1472
|
-
pn(f) &&
|
|
1473
|
-
let p =
|
|
1473
|
+
pn(f) && Q(d) && c.addEventListener(Us[f], d);
|
|
1474
|
+
let p = Qt(v), g = h?.[p];
|
|
1474
1475
|
if (v === "args") {
|
|
1475
|
-
const
|
|
1476
|
-
if (A && P.length && !Or(P,
|
|
1476
|
+
const C = c, P = _ ?? [], M = d ?? [], A = c.__tres?.type || c.type;
|
|
1477
|
+
if (A && P.length && !Or(P, M)) {
|
|
1477
1478
|
const O = new dt.value[A](...d), T = Object.getOwnPropertyDescriptors(O);
|
|
1478
1479
|
Object.entries(T).forEach(([E, x]) => {
|
|
1479
|
-
if (!(!x.writable && !x.set) && E in
|
|
1480
|
+
if (!(!x.writable && !x.set) && E in C)
|
|
1480
1481
|
try {
|
|
1481
|
-
|
|
1482
|
+
C[E] = O[E];
|
|
1482
1483
|
} catch (R) {
|
|
1483
1484
|
console.warn(`Could not set property ${E} on ${A}:`, R);
|
|
1484
1485
|
}
|
|
1485
|
-
}), h =
|
|
1486
|
+
}), h = C;
|
|
1486
1487
|
}
|
|
1487
1488
|
return;
|
|
1488
1489
|
}
|
|
@@ -1490,35 +1491,35 @@ const Bs = [
|
|
|
1490
1491
|
if (v === "args")
|
|
1491
1492
|
return;
|
|
1492
1493
|
h.setAttribute(
|
|
1493
|
-
|
|
1494
|
-
new
|
|
1494
|
+
Qt(v),
|
|
1495
|
+
new Cr(...d)
|
|
1495
1496
|
);
|
|
1496
1497
|
return;
|
|
1497
1498
|
}
|
|
1498
1499
|
if (v.includes("-") && g === void 0) {
|
|
1499
|
-
const
|
|
1500
|
-
if (g =
|
|
1500
|
+
const C = Ve(h, v);
|
|
1501
|
+
if (g = C.target, h = C.target, p = C.key, g && p) {
|
|
1501
1502
|
g[p] = d, re(c) && c.updateProjectionMatrix(), ft(c);
|
|
1502
1503
|
return;
|
|
1503
1504
|
}
|
|
1504
1505
|
}
|
|
1505
|
-
let
|
|
1506
|
-
if (
|
|
1507
|
-
pn(f) || (Array.isArray(
|
|
1506
|
+
let b = d;
|
|
1507
|
+
if (b === "" && (b = !0), Q(g)) {
|
|
1508
|
+
pn(f) || (Array.isArray(b) ? c[p](...b) : c[p](b)), p.startsWith("on") && Q(b) && (h[p] = b);
|
|
1508
1509
|
return;
|
|
1509
1510
|
}
|
|
1510
|
-
|
|
1511
|
+
Zt(g) && Zt(b) ? g.mask = b.mask : Ir(g) && $i(b) ? g.set(b) : Ki(g) && Wi(b) && g.constructor === b.constructor ? g.copy(b) : ct(g) && Array.isArray(b) ? "fromArray" in g && typeof g.fromArray == "function" ? g.fromArray(b) : g.set(...b) : ct(g) && typeof b == "number" ? "setScalar" in g && typeof g.setScalar == "function" ? g.setScalar(b) : g.set(b) : h[p] = b, re(c) && c.updateProjectionMatrix(), ft(c);
|
|
1511
1512
|
}
|
|
1512
1513
|
function s(c) {
|
|
1513
1514
|
return c?.__tres?.parent || null;
|
|
1514
1515
|
}
|
|
1515
|
-
function
|
|
1516
|
+
function u(c) {
|
|
1516
1517
|
const f = X(new je(), { type: "Comment" }, e);
|
|
1517
1518
|
return f.name = c, f;
|
|
1518
1519
|
}
|
|
1519
|
-
function
|
|
1520
|
-
const
|
|
1521
|
-
return d < 0 || d >=
|
|
1520
|
+
function a(c) {
|
|
1521
|
+
const _ = s(c)?.__tres?.objects || [], d = _.indexOf(c);
|
|
1522
|
+
return d < 0 || d >= _.length - 1 ? null : _[d + 1];
|
|
1522
1523
|
}
|
|
1523
1524
|
const l = () => {
|
|
1524
1525
|
};
|
|
@@ -1529,36 +1530,95 @@ const Bs = [
|
|
|
1529
1530
|
patchProp: i,
|
|
1530
1531
|
parentNode: s,
|
|
1531
1532
|
createText: l,
|
|
1532
|
-
createComment:
|
|
1533
|
+
createComment: u,
|
|
1533
1534
|
setText: l,
|
|
1534
1535
|
setElementText: l,
|
|
1535
|
-
nextSibling:
|
|
1536
|
+
nextSibling: a,
|
|
1536
1537
|
querySelector: l,
|
|
1537
1538
|
setScopeId: l,
|
|
1538
1539
|
cloneNode: l,
|
|
1539
1540
|
insertStaticContent: l
|
|
1540
1541
|
};
|
|
1541
|
-
};
|
|
1542
|
-
|
|
1542
|
+
}, js = ["asset-load"];
|
|
1543
|
+
class zs {
|
|
1544
|
+
subscribers = /* @__PURE__ */ new Set();
|
|
1545
|
+
messageQueue = [];
|
|
1546
|
+
maxQueueSize = 100;
|
|
1547
|
+
// Prevent memory leaks by limiting queue size
|
|
1548
|
+
/**
|
|
1549
|
+
* Send a message to devtools subscribers
|
|
1550
|
+
* If no subscribers are available, only queueable message types are queued
|
|
1551
|
+
*/
|
|
1552
|
+
send(t, n) {
|
|
1553
|
+
const r = {
|
|
1554
|
+
type: t,
|
|
1555
|
+
data: n,
|
|
1556
|
+
timestamp: Date.now()
|
|
1557
|
+
};
|
|
1558
|
+
this.subscribers.size > 0 ? this.subscribers.forEach((o) => o(r)) : js.includes(t) && this.queueMessage(r);
|
|
1559
|
+
}
|
|
1560
|
+
/**
|
|
1561
|
+
* Queue a message for later delivery
|
|
1562
|
+
*/
|
|
1563
|
+
queueMessage(t) {
|
|
1564
|
+
this.messageQueue.push(t), this.messageQueue.length > this.maxQueueSize && this.messageQueue.shift();
|
|
1565
|
+
}
|
|
1566
|
+
/**
|
|
1567
|
+
* Flush all queued messages to current subscribers
|
|
1568
|
+
*/
|
|
1569
|
+
flushQueue() {
|
|
1570
|
+
this.messageQueue.length === 0 || this.subscribers.size === 0 || (this.messageQueue.forEach((t) => {
|
|
1571
|
+
this.subscribers.forEach((n) => n(t));
|
|
1572
|
+
}), this.messageQueue = []);
|
|
1573
|
+
}
|
|
1574
|
+
/**
|
|
1575
|
+
* Subscribe to devtools messages
|
|
1576
|
+
* When a new subscriber is added, all queued messages (asset-load events) are immediately delivered
|
|
1577
|
+
*/
|
|
1578
|
+
subscribe(t) {
|
|
1579
|
+
return this.subscribers.add(t), this.flushQueue(), () => {
|
|
1580
|
+
this.subscribers.delete(t);
|
|
1581
|
+
};
|
|
1582
|
+
}
|
|
1583
|
+
/**
|
|
1584
|
+
* Check if there are any subscribers
|
|
1585
|
+
*/
|
|
1586
|
+
get hasSubscribers() {
|
|
1587
|
+
return this.subscribers.size > 0;
|
|
1588
|
+
}
|
|
1589
|
+
/**
|
|
1590
|
+
* Get the current queue size
|
|
1591
|
+
*/
|
|
1592
|
+
get queueSize() {
|
|
1593
|
+
return this.messageQueue.length;
|
|
1594
|
+
}
|
|
1595
|
+
/**
|
|
1596
|
+
* Clear all queued messages
|
|
1597
|
+
*/
|
|
1598
|
+
clearQueue() {
|
|
1599
|
+
this.messageQueue = [];
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
var $s = Object.create, $r = Object.defineProperty, Ks = Object.getOwnPropertyDescriptor, Pt = Object.getOwnPropertyNames, Ws = Object.getPrototypeOf, Gs = Object.prototype.hasOwnProperty, Ys = (e, t) => function() {
|
|
1543
1603
|
return e && (t = (0, e[Pt(e)[0]])(e = 0)), t;
|
|
1544
|
-
},
|
|
1604
|
+
}, qs = (e, t) => function() {
|
|
1545
1605
|
return t || (0, e[Pt(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
1546
|
-
},
|
|
1606
|
+
}, Xs = (e, t, n, r) => {
|
|
1547
1607
|
if (t && typeof t == "object" || typeof t == "function")
|
|
1548
1608
|
for (let o of Pt(t))
|
|
1549
|
-
!
|
|
1609
|
+
!Gs.call(e, o) && o !== n && $r(e, o, { get: () => t[o], enumerable: !(r = Ks(t, o)) || r.enumerable });
|
|
1550
1610
|
return e;
|
|
1551
|
-
},
|
|
1611
|
+
}, Qs = (e, t, n) => (n = e != null ? $s(Ws(e)) : {}, Xs(
|
|
1552
1612
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
1553
1613
|
// file that has been converted to a CommonJS file using a Babel-
|
|
1554
1614
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
1555
1615
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
1556
|
-
|
|
1616
|
+
$r(n, "default", { value: e, enumerable: !0 }),
|
|
1557
1617
|
e
|
|
1558
|
-
)), Oe =
|
|
1618
|
+
)), Oe = Ys({
|
|
1559
1619
|
"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
|
|
1560
1620
|
}
|
|
1561
|
-
}),
|
|
1621
|
+
}), Zs = qs({
|
|
1562
1622
|
"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e, t) {
|
|
1563
1623
|
Oe(), t.exports = r;
|
|
1564
1624
|
function n(i) {
|
|
@@ -1567,65 +1627,65 @@ var js = Object.create, zr = Object.defineProperty, $s = Object.getOwnPropertyDe
|
|
|
1567
1627
|
function r(i) {
|
|
1568
1628
|
if (i = i || {}, i.circles) return o(i);
|
|
1569
1629
|
const s = /* @__PURE__ */ new Map();
|
|
1570
|
-
if (s.set(Date, (f) => new Date(f)), s.set(Map, (f,
|
|
1630
|
+
if (s.set(Date, (f) => new Date(f)), s.set(Map, (f, _) => new Map(a(Array.from(f), _))), s.set(Set, (f, _) => new Set(a(Array.from(f), _))), i.constructorHandlers)
|
|
1571
1631
|
for (const f of i.constructorHandlers)
|
|
1572
1632
|
s.set(f[0], f[1]);
|
|
1573
|
-
let
|
|
1633
|
+
let u = null;
|
|
1574
1634
|
return i.proto ? c : l;
|
|
1575
|
-
function
|
|
1635
|
+
function a(f, _) {
|
|
1576
1636
|
const d = Object.keys(f), h = new Array(d.length);
|
|
1577
1637
|
for (let v = 0; v < d.length; v++) {
|
|
1578
1638
|
const p = d[v], g = f[p];
|
|
1579
|
-
typeof g != "object" || g === null ? h[p] = g : g.constructor !== Object && (
|
|
1639
|
+
typeof g != "object" || g === null ? h[p] = g : g.constructor !== Object && (u = s.get(g.constructor)) ? h[p] = u(g, _) : ArrayBuffer.isView(g) ? h[p] = n(g) : h[p] = _(g);
|
|
1580
1640
|
}
|
|
1581
1641
|
return h;
|
|
1582
1642
|
}
|
|
1583
1643
|
function l(f) {
|
|
1584
1644
|
if (typeof f != "object" || f === null) return f;
|
|
1585
|
-
if (Array.isArray(f)) return
|
|
1586
|
-
if (f.constructor !== Object && (
|
|
1587
|
-
return
|
|
1588
|
-
const
|
|
1645
|
+
if (Array.isArray(f)) return a(f, l);
|
|
1646
|
+
if (f.constructor !== Object && (u = s.get(f.constructor)))
|
|
1647
|
+
return u(f, l);
|
|
1648
|
+
const _ = {};
|
|
1589
1649
|
for (const d in f) {
|
|
1590
1650
|
if (Object.hasOwnProperty.call(f, d) === !1) continue;
|
|
1591
1651
|
const h = f[d];
|
|
1592
|
-
typeof h != "object" || h === null ?
|
|
1652
|
+
typeof h != "object" || h === null ? _[d] = h : h.constructor !== Object && (u = s.get(h.constructor)) ? _[d] = u(h, l) : ArrayBuffer.isView(h) ? _[d] = n(h) : _[d] = l(h);
|
|
1593
1653
|
}
|
|
1594
|
-
return
|
|
1654
|
+
return _;
|
|
1595
1655
|
}
|
|
1596
1656
|
function c(f) {
|
|
1597
1657
|
if (typeof f != "object" || f === null) return f;
|
|
1598
|
-
if (Array.isArray(f)) return
|
|
1599
|
-
if (f.constructor !== Object && (
|
|
1600
|
-
return
|
|
1601
|
-
const
|
|
1658
|
+
if (Array.isArray(f)) return a(f, c);
|
|
1659
|
+
if (f.constructor !== Object && (u = s.get(f.constructor)))
|
|
1660
|
+
return u(f, c);
|
|
1661
|
+
const _ = {};
|
|
1602
1662
|
for (const d in f) {
|
|
1603
1663
|
const h = f[d];
|
|
1604
|
-
typeof h != "object" || h === null ?
|
|
1664
|
+
typeof h != "object" || h === null ? _[d] = h : h.constructor !== Object && (u = s.get(h.constructor)) ? _[d] = u(h, c) : ArrayBuffer.isView(h) ? _[d] = n(h) : _[d] = c(h);
|
|
1605
1665
|
}
|
|
1606
|
-
return
|
|
1666
|
+
return _;
|
|
1607
1667
|
}
|
|
1608
1668
|
}
|
|
1609
1669
|
function o(i) {
|
|
1610
|
-
const s = [],
|
|
1611
|
-
if (
|
|
1670
|
+
const s = [], u = [], a = /* @__PURE__ */ new Map();
|
|
1671
|
+
if (a.set(Date, (d) => new Date(d)), a.set(Map, (d, h) => new Map(c(Array.from(d), h))), a.set(Set, (d, h) => new Set(c(Array.from(d), h))), i.constructorHandlers)
|
|
1612
1672
|
for (const d of i.constructorHandlers)
|
|
1613
|
-
|
|
1673
|
+
a.set(d[0], d[1]);
|
|
1614
1674
|
let l = null;
|
|
1615
|
-
return i.proto ?
|
|
1675
|
+
return i.proto ? _ : f;
|
|
1616
1676
|
function c(d, h) {
|
|
1617
1677
|
const v = Object.keys(d), p = new Array(v.length);
|
|
1618
1678
|
for (let g = 0; g < v.length; g++) {
|
|
1619
|
-
const
|
|
1620
|
-
if (typeof
|
|
1621
|
-
p[
|
|
1622
|
-
else if (
|
|
1623
|
-
p[
|
|
1624
|
-
else if (ArrayBuffer.isView(
|
|
1625
|
-
p[
|
|
1679
|
+
const b = v[g], C = d[b];
|
|
1680
|
+
if (typeof C != "object" || C === null)
|
|
1681
|
+
p[b] = C;
|
|
1682
|
+
else if (C.constructor !== Object && (l = a.get(C.constructor)))
|
|
1683
|
+
p[b] = l(C, h);
|
|
1684
|
+
else if (ArrayBuffer.isView(C))
|
|
1685
|
+
p[b] = n(C);
|
|
1626
1686
|
else {
|
|
1627
|
-
const P = s.indexOf(
|
|
1628
|
-
P !== -1 ? p[
|
|
1687
|
+
const P = s.indexOf(C);
|
|
1688
|
+
P !== -1 ? p[b] = u[P] : p[b] = h(C);
|
|
1629
1689
|
}
|
|
1630
1690
|
}
|
|
1631
1691
|
return p;
|
|
@@ -1633,47 +1693,47 @@ var js = Object.create, zr = Object.defineProperty, $s = Object.getOwnPropertyDe
|
|
|
1633
1693
|
function f(d) {
|
|
1634
1694
|
if (typeof d != "object" || d === null) return d;
|
|
1635
1695
|
if (Array.isArray(d)) return c(d, f);
|
|
1636
|
-
if (d.constructor !== Object && (l =
|
|
1696
|
+
if (d.constructor !== Object && (l = a.get(d.constructor)))
|
|
1637
1697
|
return l(d, f);
|
|
1638
1698
|
const h = {};
|
|
1639
|
-
s.push(d),
|
|
1699
|
+
s.push(d), u.push(h);
|
|
1640
1700
|
for (const v in d) {
|
|
1641
1701
|
if (Object.hasOwnProperty.call(d, v) === !1) continue;
|
|
1642
1702
|
const p = d[v];
|
|
1643
1703
|
if (typeof p != "object" || p === null)
|
|
1644
1704
|
h[v] = p;
|
|
1645
|
-
else if (p.constructor !== Object && (l =
|
|
1705
|
+
else if (p.constructor !== Object && (l = a.get(p.constructor)))
|
|
1646
1706
|
h[v] = l(p, f);
|
|
1647
1707
|
else if (ArrayBuffer.isView(p))
|
|
1648
1708
|
h[v] = n(p);
|
|
1649
1709
|
else {
|
|
1650
1710
|
const g = s.indexOf(p);
|
|
1651
|
-
g !== -1 ? h[v] =
|
|
1711
|
+
g !== -1 ? h[v] = u[g] : h[v] = f(p);
|
|
1652
1712
|
}
|
|
1653
1713
|
}
|
|
1654
|
-
return s.pop(),
|
|
1714
|
+
return s.pop(), u.pop(), h;
|
|
1655
1715
|
}
|
|
1656
|
-
function
|
|
1716
|
+
function _(d) {
|
|
1657
1717
|
if (typeof d != "object" || d === null) return d;
|
|
1658
|
-
if (Array.isArray(d)) return c(d,
|
|
1659
|
-
if (d.constructor !== Object && (l =
|
|
1660
|
-
return l(d,
|
|
1718
|
+
if (Array.isArray(d)) return c(d, _);
|
|
1719
|
+
if (d.constructor !== Object && (l = a.get(d.constructor)))
|
|
1720
|
+
return l(d, _);
|
|
1661
1721
|
const h = {};
|
|
1662
|
-
s.push(d),
|
|
1722
|
+
s.push(d), u.push(h);
|
|
1663
1723
|
for (const v in d) {
|
|
1664
1724
|
const p = d[v];
|
|
1665
1725
|
if (typeof p != "object" || p === null)
|
|
1666
1726
|
h[v] = p;
|
|
1667
|
-
else if (p.constructor !== Object && (l =
|
|
1668
|
-
h[v] = l(p,
|
|
1727
|
+
else if (p.constructor !== Object && (l = a.get(p.constructor)))
|
|
1728
|
+
h[v] = l(p, _);
|
|
1669
1729
|
else if (ArrayBuffer.isView(p))
|
|
1670
1730
|
h[v] = n(p);
|
|
1671
1731
|
else {
|
|
1672
1732
|
const g = s.indexOf(p);
|
|
1673
|
-
g !== -1 ? h[v] =
|
|
1733
|
+
g !== -1 ? h[v] = u[g] : h[v] = _(p);
|
|
1674
1734
|
}
|
|
1675
1735
|
}
|
|
1676
|
-
return s.pop(),
|
|
1736
|
+
return s.pop(), u.pop(), h;
|
|
1677
1737
|
}
|
|
1678
1738
|
}
|
|
1679
1739
|
}
|
|
@@ -1687,14 +1747,14 @@ Kr && (y.self, y.top);
|
|
|
1687
1747
|
var hn;
|
|
1688
1748
|
typeof navigator < "u" && ((hn = navigator.userAgent) == null || hn.toLowerCase().includes("electron"));
|
|
1689
1749
|
Oe();
|
|
1690
|
-
var
|
|
1691
|
-
function
|
|
1750
|
+
var Js = Qs(Zs()), eu = /(?:^|[-_/])(\w)/g;
|
|
1751
|
+
function tu(e, t) {
|
|
1692
1752
|
return t ? t.toUpperCase() : "";
|
|
1693
1753
|
}
|
|
1694
|
-
function
|
|
1695
|
-
return e && `${e}`.replace(
|
|
1754
|
+
function nu(e) {
|
|
1755
|
+
return e && `${e}`.replace(eu, tu);
|
|
1696
1756
|
}
|
|
1697
|
-
function
|
|
1757
|
+
function ru(e, t) {
|
|
1698
1758
|
let n = e.replace(/^[a-z]:/i, "").replace(/\\/g, "/");
|
|
1699
1759
|
n.endsWith(`index${t}`) && (n = n.replace(`/index${t}`, t));
|
|
1700
1760
|
const r = n.lastIndexOf("/"), o = n.substring(r + 1);
|
|
@@ -1703,34 +1763,34 @@ function ta(e, t) {
|
|
|
1703
1763
|
return o.substring(0, i);
|
|
1704
1764
|
}
|
|
1705
1765
|
}
|
|
1706
|
-
var _n = (0,
|
|
1707
|
-
const
|
|
1766
|
+
var _n = (0, Js.default)({ circles: !0 });
|
|
1767
|
+
const ou = {
|
|
1708
1768
|
trailing: !0
|
|
1709
1769
|
};
|
|
1710
|
-
function
|
|
1711
|
-
if (n = { ...
|
|
1770
|
+
function ue(e, t = 25, n = {}) {
|
|
1771
|
+
if (n = { ...ou, ...n }, !Number.isFinite(t))
|
|
1712
1772
|
throw new TypeError("Expected `wait` to be a finite number");
|
|
1713
|
-
let r, o, i = [], s,
|
|
1714
|
-
const
|
|
1715
|
-
if (s = null, n.trailing &&
|
|
1716
|
-
const f =
|
|
1717
|
-
return
|
|
1773
|
+
let r, o, i = [], s, u;
|
|
1774
|
+
const a = (l, c) => (s = iu(e, l, c), s.finally(() => {
|
|
1775
|
+
if (s = null, n.trailing && u && !o) {
|
|
1776
|
+
const f = a(l, u);
|
|
1777
|
+
return u = null, f;
|
|
1718
1778
|
}
|
|
1719
1779
|
}), s);
|
|
1720
1780
|
return function(...l) {
|
|
1721
|
-
return s ? (n.trailing && (
|
|
1781
|
+
return s ? (n.trailing && (u = l), s) : new Promise((c) => {
|
|
1722
1782
|
const f = !o && n.leading;
|
|
1723
1783
|
clearTimeout(o), o = setTimeout(() => {
|
|
1724
1784
|
o = null;
|
|
1725
|
-
const
|
|
1785
|
+
const _ = n.leading ? r : a(this, l);
|
|
1726
1786
|
for (const d of i)
|
|
1727
|
-
d(
|
|
1787
|
+
d(_);
|
|
1728
1788
|
i = [];
|
|
1729
|
-
}, t), f ? (r =
|
|
1789
|
+
}, t), f ? (r = a(this, l), c(r)) : i.push(c);
|
|
1730
1790
|
});
|
|
1731
1791
|
};
|
|
1732
1792
|
}
|
|
1733
|
-
async function
|
|
1793
|
+
async function iu(e, t, n) {
|
|
1734
1794
|
return await e.apply(t, n);
|
|
1735
1795
|
}
|
|
1736
1796
|
function ht(e, t = {}, n) {
|
|
@@ -1740,15 +1800,15 @@ function ht(e, t = {}, n) {
|
|
|
1740
1800
|
}
|
|
1741
1801
|
return t;
|
|
1742
1802
|
}
|
|
1743
|
-
const
|
|
1744
|
-
function
|
|
1803
|
+
const su = { run: (e) => e() }, uu = () => su, Wr = typeof console.createTask < "u" ? console.createTask : uu;
|
|
1804
|
+
function au(e, t) {
|
|
1745
1805
|
const n = t.shift(), r = Wr(n);
|
|
1746
1806
|
return e.reduce(
|
|
1747
1807
|
(o, i) => o.then(() => r.run(() => i(...t))),
|
|
1748
1808
|
Promise.resolve()
|
|
1749
1809
|
);
|
|
1750
1810
|
}
|
|
1751
|
-
function
|
|
1811
|
+
function lu(e, t) {
|
|
1752
1812
|
const n = t.shift(), r = Wr(n);
|
|
1753
1813
|
return Promise.all(e.map((o) => r.run(() => o(...t))));
|
|
1754
1814
|
}
|
|
@@ -1756,7 +1816,7 @@ function tt(e, t) {
|
|
|
1756
1816
|
for (const n of [...e])
|
|
1757
1817
|
n(t);
|
|
1758
1818
|
}
|
|
1759
|
-
class
|
|
1819
|
+
class cu {
|
|
1760
1820
|
constructor() {
|
|
1761
1821
|
this._hooks = {}, this._before = void 0, this._after = void 0, this._deprecatedMessages = void 0, this._deprecatedHooks = {}, this.hook = this.hook.bind(this), this.callHook = this.callHook.bind(this), this.callHookWith = this.callHookWith.bind(this);
|
|
1762
1822
|
}
|
|
@@ -1825,10 +1885,10 @@ class ua {
|
|
|
1825
1885
|
delete this._hooks[t];
|
|
1826
1886
|
}
|
|
1827
1887
|
callHook(t, ...n) {
|
|
1828
|
-
return n.unshift(t), this.callHookWith(
|
|
1888
|
+
return n.unshift(t), this.callHookWith(au, t, ...n);
|
|
1829
1889
|
}
|
|
1830
1890
|
callHookParallel(t, ...n) {
|
|
1831
|
-
return n.unshift(t), this.callHookWith(
|
|
1891
|
+
return n.unshift(t), this.callHookWith(lu, t, ...n);
|
|
1832
1892
|
}
|
|
1833
1893
|
callHookWith(t, n, ...r) {
|
|
1834
1894
|
const o = this._before || this._after ? { name: n, args: r, context: {} } : void 0;
|
|
@@ -1859,30 +1919,30 @@ class ua {
|
|
|
1859
1919
|
}
|
|
1860
1920
|
}
|
|
1861
1921
|
function Gr() {
|
|
1862
|
-
return new
|
|
1922
|
+
return new cu();
|
|
1863
1923
|
}
|
|
1864
|
-
var
|
|
1865
|
-
return e && (t = (0, e[
|
|
1924
|
+
var fu = Object.create, Yr = Object.defineProperty, du = Object.getOwnPropertyDescriptor, Dt = Object.getOwnPropertyNames, pu = Object.getPrototypeOf, hu = Object.prototype.hasOwnProperty, _u = (e, t) => function() {
|
|
1925
|
+
return e && (t = (0, e[Dt(e)[0]])(e = 0)), t;
|
|
1866
1926
|
}, qr = (e, t) => function() {
|
|
1867
|
-
return t || (0, e[
|
|
1868
|
-
},
|
|
1927
|
+
return t || (0, e[Dt(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
1928
|
+
}, mu = (e, t, n, r) => {
|
|
1869
1929
|
if (t && typeof t == "object" || typeof t == "function")
|
|
1870
|
-
for (let o of
|
|
1871
|
-
!
|
|
1930
|
+
for (let o of Dt(t))
|
|
1931
|
+
!hu.call(e, o) && o !== n && Yr(e, o, { get: () => t[o], enumerable: !(r = du(t, o)) || r.enumerable });
|
|
1872
1932
|
return e;
|
|
1873
|
-
},
|
|
1933
|
+
}, gu = (e, t, n) => (n = e != null ? fu(pu(e)) : {}, mu(
|
|
1874
1934
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
1875
1935
|
// file that has been converted to a CommonJS file using a Babel-
|
|
1876
1936
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
1877
1937
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
1878
1938
|
Yr(n, "default", { value: e, enumerable: !0 }),
|
|
1879
1939
|
e
|
|
1880
|
-
)),
|
|
1940
|
+
)), m = _u({
|
|
1881
1941
|
"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
|
|
1882
1942
|
}
|
|
1883
|
-
}),
|
|
1943
|
+
}), Eu = qr({
|
|
1884
1944
|
"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e, t) {
|
|
1885
|
-
|
|
1945
|
+
m(), function(n) {
|
|
1886
1946
|
var r = {
|
|
1887
1947
|
// latin
|
|
1888
1948
|
À: "A",
|
|
@@ -2936,7 +2996,7 @@ var la = Object.create, Yr = Object.defineProperty, ca = Object.getOwnPropertyDe
|
|
|
2936
2996
|
ü: "u",
|
|
2937
2997
|
ö: "o"
|
|
2938
2998
|
}
|
|
2939
|
-
},
|
|
2999
|
+
}, u = {
|
|
2940
3000
|
ar: {
|
|
2941
3001
|
"∆": "delta",
|
|
2942
3002
|
"∞": "la-nihaya",
|
|
@@ -3216,12 +3276,12 @@ var la = Object.create, Yr = Object.defineProperty, ca = Object.getOwnPropertyDe
|
|
|
3216
3276
|
"∑": "tong",
|
|
3217
3277
|
"¤": "tien te"
|
|
3218
3278
|
}
|
|
3219
|
-
},
|
|
3220
|
-
var
|
|
3279
|
+
}, a = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), l = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), c = [".", "!", "~", "*", "'", "(", ")"].join(""), f = function(p, g) {
|
|
3280
|
+
var b = "-", C = "", P = "", M = !0, A = {}, O, T, E, x, R, Ut, de, te, Ht, z, w, Se, H, ne, K = "";
|
|
3221
3281
|
if (typeof p != "string")
|
|
3222
3282
|
return "";
|
|
3223
|
-
if (typeof g == "string" && (
|
|
3224
|
-
O = g.maintainCase || !1, A = g.custom && typeof g.custom == "object" ? g.custom : A, E = +g.truncate > 1 && g.truncate || !1, x = g.uric || !1, R = g.uricNoSlash || !1, Ut = g.mark || !1,
|
|
3283
|
+
if (typeof g == "string" && (b = g), de = u.en, te = s.en, typeof g == "object") {
|
|
3284
|
+
O = g.maintainCase || !1, A = g.custom && typeof g.custom == "object" ? g.custom : A, E = +g.truncate > 1 && g.truncate || !1, x = g.uric || !1, R = g.uricNoSlash || !1, Ut = g.mark || !1, M = !(g.symbols === !1 || g.lang === !1), b = g.separator || b, x && (K += a), R && (K += l), Ut && (K += c), de = g.lang && u[g.lang] && M ? u[g.lang] : M ? u.en : {}, te = g.lang && s[g.lang] ? s[g.lang] : g.lang === !1 || g.lang === !0 ? {} : s.en, g.titleCase && typeof g.titleCase.length == "number" && Array.prototype.toString.call(g.titleCase) ? (g.titleCase.forEach(function(U) {
|
|
3225
3285
|
A[U + ""] = U + "";
|
|
3226
3286
|
}), T = !0) : T = !!g.titleCase, g.custom && typeof g.custom.length == "number" && Array.prototype.toString.call(g.custom) && g.custom.forEach(function(U) {
|
|
3227
3287
|
A[U + ""] = U + "";
|
|
@@ -3232,15 +3292,15 @@ var la = Object.create, Yr = Object.defineProperty, ca = Object.getOwnPropertyDe
|
|
|
3232
3292
|
for (w in A)
|
|
3233
3293
|
K += w;
|
|
3234
3294
|
}
|
|
3235
|
-
for (K +=
|
|
3236
|
-
w = p[
|
|
3237
|
-
return T && (
|
|
3295
|
+
for (K += b, K = d(K), p = p.replace(/(^\s+|\s+$)/g, ""), H = !1, ne = !1, z = 0, Se = p.length; z < Se; z++)
|
|
3296
|
+
w = p[z], h(w, A) ? H = !1 : te[w] ? (w = H && te[w].match(/[A-Za-z0-9]/) ? " " + te[w] : te[w], H = !1) : w in r ? (z + 1 < Se && o.indexOf(p[z + 1]) >= 0 ? (P += w, w = "") : ne === !0 ? (w = i[P] + r[w], P = "") : w = H && r[w].match(/[A-Za-z0-9]/) ? " " + r[w] : r[w], H = !1, ne = !1) : w in i ? (P += w, w = "", z === Se - 1 && (w = i[P]), ne = !0) : /* process symbol chars */ de[w] && !(x && a.indexOf(w) !== -1) && !(R && l.indexOf(w) !== -1) ? (w = H || C.substr(-1).match(/[A-Za-z0-9]/) ? b + de[w] : de[w], w += p[z + 1] !== void 0 && p[z + 1].match(/[A-Za-z0-9]/) ? b : "", H = !0) : (ne === !0 ? (w = i[P] + w, P = "", ne = !1) : H && (/[A-Za-z0-9]/.test(w) || C.substr(-1).match(/A-Za-z0-9]/)) && (w = " " + w), H = !1), C += w.replace(new RegExp("[^\\w\\s" + K + "_-]", "g"), b);
|
|
3297
|
+
return T && (C = C.replace(/(\w)(\S*)/g, function(U, pe, jt) {
|
|
3238
3298
|
var Ye = pe.toUpperCase() + (jt !== null ? jt : "");
|
|
3239
3299
|
return Object.keys(A).indexOf(Ye.toLowerCase()) < 0 ? Ye : Ye.toLowerCase();
|
|
3240
|
-
})),
|
|
3241
|
-
},
|
|
3242
|
-
return function(
|
|
3243
|
-
return f(
|
|
3300
|
+
})), C = C.replace(/\s+/g, b).replace(new RegExp("\\" + b + "+", "g"), b).replace(new RegExp("(^\\" + b + "+|\\" + b + "+$)", "g"), ""), E && C.length > E && (Ht = C.charAt(E) === b, C = C.slice(0, E), Ht || (C = C.slice(0, C.lastIndexOf(b)))), !O && !T && (C = C.toLowerCase()), C;
|
|
3301
|
+
}, _ = function(p) {
|
|
3302
|
+
return function(b) {
|
|
3303
|
+
return f(b, p);
|
|
3244
3304
|
};
|
|
3245
3305
|
}, d = function(p) {
|
|
3246
3306
|
return p.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
|
|
@@ -3250,7 +3310,7 @@ var la = Object.create, Yr = Object.defineProperty, ca = Object.getOwnPropertyDe
|
|
|
3250
3310
|
return !0;
|
|
3251
3311
|
};
|
|
3252
3312
|
if (typeof t < "u" && t.exports)
|
|
3253
|
-
t.exports = f, t.exports.createSlug =
|
|
3313
|
+
t.exports = f, t.exports.createSlug = _;
|
|
3254
3314
|
else if (typeof define < "u" && define.amd)
|
|
3255
3315
|
define([], function() {
|
|
3256
3316
|
return f;
|
|
@@ -3259,38 +3319,38 @@ var la = Object.create, Yr = Object.defineProperty, ca = Object.getOwnPropertyDe
|
|
|
3259
3319
|
try {
|
|
3260
3320
|
if (n.getSlug || n.createSlug)
|
|
3261
3321
|
throw "speakingurl: globals exists /(getSlug|createSlug)/";
|
|
3262
|
-
n.getSlug = f, n.createSlug =
|
|
3322
|
+
n.getSlug = f, n.createSlug = _;
|
|
3263
3323
|
} catch {
|
|
3264
3324
|
}
|
|
3265
3325
|
}(e);
|
|
3266
3326
|
}
|
|
3267
|
-
}),
|
|
3327
|
+
}), vu = qr({
|
|
3268
3328
|
"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e, t) {
|
|
3269
|
-
|
|
3329
|
+
m(), t.exports = Eu();
|
|
3270
3330
|
}
|
|
3271
3331
|
});
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
function
|
|
3332
|
+
m();
|
|
3333
|
+
m();
|
|
3334
|
+
m();
|
|
3335
|
+
m();
|
|
3336
|
+
m();
|
|
3337
|
+
m();
|
|
3338
|
+
m();
|
|
3339
|
+
m();
|
|
3340
|
+
function yu(e) {
|
|
3281
3341
|
var t;
|
|
3282
3342
|
const n = e.name || e._componentTag || e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || e.__name;
|
|
3283
3343
|
return n === "index" && ((t = e.__file) != null && t.endsWith("index.vue")) ? "" : n;
|
|
3284
3344
|
}
|
|
3285
|
-
function
|
|
3345
|
+
function bu(e) {
|
|
3286
3346
|
const t = e.__file;
|
|
3287
3347
|
if (t)
|
|
3288
|
-
return
|
|
3348
|
+
return nu(ru(t, ".vue"));
|
|
3289
3349
|
}
|
|
3290
3350
|
function mn(e, t) {
|
|
3291
3351
|
return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = t, t;
|
|
3292
3352
|
}
|
|
3293
|
-
function
|
|
3353
|
+
function It(e) {
|
|
3294
3354
|
if (e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)
|
|
3295
3355
|
return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
|
|
3296
3356
|
if (e.root)
|
|
@@ -3298,12 +3358,12 @@ function Dt(e) {
|
|
|
3298
3358
|
}
|
|
3299
3359
|
function Xr(e) {
|
|
3300
3360
|
var t, n;
|
|
3301
|
-
const r = (t = e.subTree) == null ? void 0 : t.type, o =
|
|
3361
|
+
const r = (t = e.subTree) == null ? void 0 : t.type, o = It(e);
|
|
3302
3362
|
return o ? ((n = o?.types) == null ? void 0 : n.Fragment) === r : !1;
|
|
3303
3363
|
}
|
|
3304
3364
|
function Ke(e) {
|
|
3305
3365
|
var t, n, r;
|
|
3306
|
-
const o =
|
|
3366
|
+
const o = yu(e?.type || {});
|
|
3307
3367
|
if (o)
|
|
3308
3368
|
return o;
|
|
3309
3369
|
if (e?.root === e)
|
|
@@ -3314,10 +3374,10 @@ function Ke(e) {
|
|
|
3314
3374
|
for (const s in (r = e.appContext) == null ? void 0 : r.components)
|
|
3315
3375
|
if (e.appContext.components[s] === e?.type)
|
|
3316
3376
|
return mn(e, s);
|
|
3317
|
-
const i =
|
|
3377
|
+
const i = bu(e?.type || {});
|
|
3318
3378
|
return i || "Anonymous Component";
|
|
3319
3379
|
}
|
|
3320
|
-
function
|
|
3380
|
+
function Cu(e) {
|
|
3321
3381
|
var t, n, r;
|
|
3322
3382
|
const o = (r = (n = (t = e?.appContext) == null ? void 0 : t.app) == null ? void 0 : n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__) != null ? r : 0, i = e === e?.root ? "root" : e.uid;
|
|
3323
3383
|
return `${o}:${i}`;
|
|
@@ -3325,7 +3385,7 @@ function ya(e) {
|
|
|
3325
3385
|
function _t(e, t) {
|
|
3326
3386
|
return t = t || `${e.id}:root`, e.instanceMap.get(t) || e.instanceMap.get(":root");
|
|
3327
3387
|
}
|
|
3328
|
-
function
|
|
3388
|
+
function wu() {
|
|
3329
3389
|
const e = {
|
|
3330
3390
|
top: 0,
|
|
3331
3391
|
bottom: 0,
|
|
@@ -3340,12 +3400,12 @@ function Ca() {
|
|
|
3340
3400
|
};
|
|
3341
3401
|
return e;
|
|
3342
3402
|
}
|
|
3343
|
-
var
|
|
3344
|
-
function
|
|
3345
|
-
return
|
|
3403
|
+
var De;
|
|
3404
|
+
function Au(e) {
|
|
3405
|
+
return De || (De = document.createRange()), De.selectNode(e), De.getBoundingClientRect();
|
|
3346
3406
|
}
|
|
3347
|
-
function
|
|
3348
|
-
const t =
|
|
3407
|
+
function Tu(e) {
|
|
3408
|
+
const t = wu();
|
|
3349
3409
|
if (!e.children)
|
|
3350
3410
|
return t;
|
|
3351
3411
|
for (let n = 0, r = e.children.length; n < r; n++) {
|
|
@@ -3355,13 +3415,13 @@ function wa(e) {
|
|
|
3355
3415
|
i = ee(o.component);
|
|
3356
3416
|
else if (o.el) {
|
|
3357
3417
|
const s = o.el;
|
|
3358
|
-
s.nodeType === 1 || s.getBoundingClientRect ? i = s.getBoundingClientRect() : s.nodeType === 3 && s.data.trim() && (i =
|
|
3418
|
+
s.nodeType === 1 || s.getBoundingClientRect ? i = s.getBoundingClientRect() : s.nodeType === 3 && s.data.trim() && (i = Au(s));
|
|
3359
3419
|
}
|
|
3360
|
-
i &&
|
|
3420
|
+
i && Ou(t, i);
|
|
3361
3421
|
}
|
|
3362
3422
|
return t;
|
|
3363
3423
|
}
|
|
3364
|
-
function
|
|
3424
|
+
function Ou(e, t) {
|
|
3365
3425
|
return (!e.top || t.top < e.top) && (e.top = t.top), (!e.bottom || t.bottom > e.bottom) && (e.bottom = t.bottom), (!e.left || t.left < e.left) && (e.left = t.left), (!e.right || t.right > e.right) && (e.right = t.right), e;
|
|
3366
3426
|
}
|
|
3367
3427
|
var gn = {
|
|
@@ -3374,13 +3434,13 @@ var gn = {
|
|
|
3374
3434
|
};
|
|
3375
3435
|
function ee(e) {
|
|
3376
3436
|
const t = e.subTree.el;
|
|
3377
|
-
return typeof window > "u" ? gn : Xr(e) ?
|
|
3437
|
+
return typeof window > "u" ? gn : Xr(e) ? Tu(e.subTree) : t?.nodeType === 1 ? t?.getBoundingClientRect() : e.subTree.component ? ee(e.subTree.component) : gn;
|
|
3378
3438
|
}
|
|
3379
|
-
|
|
3439
|
+
m();
|
|
3380
3440
|
function kt(e) {
|
|
3381
|
-
return Xr(e) ?
|
|
3441
|
+
return Xr(e) ? Su(e.subTree) : e.subTree ? [e.subTree.el] : [];
|
|
3382
3442
|
}
|
|
3383
|
-
function
|
|
3443
|
+
function Su(e) {
|
|
3384
3444
|
if (!e.children)
|
|
3385
3445
|
return [];
|
|
3386
3446
|
const t = [];
|
|
@@ -3388,7 +3448,7 @@ function Ta(e) {
|
|
|
3388
3448
|
n.component ? t.push(...kt(n.component)) : n?.el && t.push(n.el);
|
|
3389
3449
|
}), t;
|
|
3390
3450
|
}
|
|
3391
|
-
var
|
|
3451
|
+
var Qr = "__vue-devtools-component-inspector__", Zr = "__vue-devtools-component-inspector__card__", Jr = "__vue-devtools-component-inspector__name__", eo = "__vue-devtools-component-inspector__indicator__", to = {
|
|
3392
3452
|
display: "block",
|
|
3393
3453
|
zIndex: 2147483640,
|
|
3394
3454
|
position: "fixed",
|
|
@@ -3397,7 +3457,7 @@ var Zr = "__vue-devtools-component-inspector__", Qr = "__vue-devtools-component-
|
|
|
3397
3457
|
borderRadius: "5px",
|
|
3398
3458
|
transition: "all 0.1s ease-in",
|
|
3399
3459
|
pointerEvents: "none"
|
|
3400
|
-
},
|
|
3460
|
+
}, Pu = {
|
|
3401
3461
|
fontFamily: "Arial, Helvetica, sans-serif",
|
|
3402
3462
|
padding: "5px 8px",
|
|
3403
3463
|
borderRadius: "4px",
|
|
@@ -3410,7 +3470,7 @@ var Zr = "__vue-devtools-component-inspector__", Qr = "__vue-devtools-component-
|
|
|
3410
3470
|
lineHeight: "24px",
|
|
3411
3471
|
backgroundColor: "#42b883",
|
|
3412
3472
|
boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"
|
|
3413
|
-
},
|
|
3473
|
+
}, Du = {
|
|
3414
3474
|
display: "inline-block",
|
|
3415
3475
|
fontWeight: 400,
|
|
3416
3476
|
fontStyle: "normal",
|
|
@@ -3418,15 +3478,15 @@ var Zr = "__vue-devtools-component-inspector__", Qr = "__vue-devtools-component-
|
|
|
3418
3478
|
opacity: 0.7
|
|
3419
3479
|
};
|
|
3420
3480
|
function ce() {
|
|
3421
|
-
return document.getElementById(Zr);
|
|
3422
|
-
}
|
|
3423
|
-
function Pa() {
|
|
3424
3481
|
return document.getElementById(Qr);
|
|
3425
3482
|
}
|
|
3426
|
-
function
|
|
3483
|
+
function Iu() {
|
|
3484
|
+
return document.getElementById(Zr);
|
|
3485
|
+
}
|
|
3486
|
+
function ku() {
|
|
3427
3487
|
return document.getElementById(eo);
|
|
3428
3488
|
}
|
|
3429
|
-
function
|
|
3489
|
+
function xu() {
|
|
3430
3490
|
return document.getElementById(Jr);
|
|
3431
3491
|
}
|
|
3432
3492
|
function xt(e) {
|
|
@@ -3440,23 +3500,23 @@ function xt(e) {
|
|
|
3440
3500
|
function Rt(e) {
|
|
3441
3501
|
var t;
|
|
3442
3502
|
const n = document.createElement("div");
|
|
3443
|
-
n.id = (t = e.elementId) != null ? t :
|
|
3503
|
+
n.id = (t = e.elementId) != null ? t : Qr, Object.assign(n.style, {
|
|
3444
3504
|
...to,
|
|
3445
3505
|
...xt(e.bounds),
|
|
3446
3506
|
...e.style
|
|
3447
3507
|
});
|
|
3448
3508
|
const r = document.createElement("span");
|
|
3449
|
-
r.id =
|
|
3450
|
-
...
|
|
3509
|
+
r.id = Zr, Object.assign(r.style, {
|
|
3510
|
+
...Pu,
|
|
3451
3511
|
top: e.bounds.top < 35 ? 0 : "-35px"
|
|
3452
3512
|
});
|
|
3453
3513
|
const o = document.createElement("span");
|
|
3454
3514
|
o.id = Jr, o.innerHTML = `<${e.name}> `;
|
|
3455
3515
|
const i = document.createElement("i");
|
|
3456
|
-
return i.id = eo, i.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`, Object.assign(i.style,
|
|
3516
|
+
return i.id = eo, i.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`, Object.assign(i.style, Du), r.appendChild(o), r.appendChild(i), n.appendChild(r), document.body.appendChild(n), n;
|
|
3457
3517
|
}
|
|
3458
|
-
function
|
|
3459
|
-
const t = ce(), n =
|
|
3518
|
+
function Lt(e) {
|
|
3519
|
+
const t = ce(), n = Iu(), r = xu(), o = ku();
|
|
3460
3520
|
t && (Object.assign(t.style, {
|
|
3461
3521
|
...to,
|
|
3462
3522
|
...xt(e.bounds)
|
|
@@ -3464,12 +3524,12 @@ function Ft(e) {
|
|
|
3464
3524
|
top: e.bounds.top < 35 ? 0 : "-35px"
|
|
3465
3525
|
}), r.innerHTML = `<${e.name}> `, o.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`);
|
|
3466
3526
|
}
|
|
3467
|
-
function
|
|
3527
|
+
function Ru(e) {
|
|
3468
3528
|
const t = ee(e);
|
|
3469
3529
|
if (!t.width && !t.height)
|
|
3470
3530
|
return;
|
|
3471
3531
|
const n = Ke(e);
|
|
3472
|
-
ce() ?
|
|
3532
|
+
ce() ? Lt({ bounds: t, name: n }) : Rt({ bounds: t, name: n });
|
|
3473
3533
|
}
|
|
3474
3534
|
function no() {
|
|
3475
3535
|
const e = ce();
|
|
@@ -3482,24 +3542,24 @@ function gt(e) {
|
|
|
3482
3542
|
const n = t.__vueParentComponent;
|
|
3483
3543
|
if (n && (mt = n, n.vnode.el)) {
|
|
3484
3544
|
const o = ee(n), i = Ke(n);
|
|
3485
|
-
ce() ?
|
|
3545
|
+
ce() ? Lt({ bounds: o, name: i }) : Rt({ bounds: o, name: i });
|
|
3486
3546
|
}
|
|
3487
3547
|
}
|
|
3488
3548
|
}
|
|
3489
|
-
function
|
|
3549
|
+
function Lu(e, t) {
|
|
3490
3550
|
if (e.preventDefault(), e.stopPropagation(), mt) {
|
|
3491
|
-
const n =
|
|
3551
|
+
const n = Cu(mt);
|
|
3492
3552
|
t(n);
|
|
3493
3553
|
}
|
|
3494
3554
|
}
|
|
3495
3555
|
var Ue = null;
|
|
3496
|
-
function
|
|
3556
|
+
function Fu() {
|
|
3497
3557
|
no(), window.removeEventListener("mouseover", gt), window.removeEventListener("click", Ue, !0), Ue = null;
|
|
3498
3558
|
}
|
|
3499
|
-
function
|
|
3559
|
+
function Mu() {
|
|
3500
3560
|
return window.addEventListener("mouseover", gt), new Promise((e) => {
|
|
3501
3561
|
function t(n) {
|
|
3502
|
-
n.preventDefault(), n.stopPropagation(),
|
|
3562
|
+
n.preventDefault(), n.stopPropagation(), Lu(n, (r) => {
|
|
3503
3563
|
window.removeEventListener("click", t, !0), Ue = null, window.removeEventListener("mouseover", gt);
|
|
3504
3564
|
const o = ce();
|
|
3505
3565
|
o && (o.style.display = "none"), e(JSON.stringify({ id: r }));
|
|
@@ -3508,8 +3568,8 @@ function Fa() {
|
|
|
3508
3568
|
Ue = t, window.addEventListener("click", t, !0);
|
|
3509
3569
|
});
|
|
3510
3570
|
}
|
|
3511
|
-
function
|
|
3512
|
-
const t = _t(
|
|
3571
|
+
function Nu(e) {
|
|
3572
|
+
const t = _t(F.value, e.id);
|
|
3513
3573
|
if (t) {
|
|
3514
3574
|
const [n] = kt(t);
|
|
3515
3575
|
if (typeof n.scrollIntoView == "function")
|
|
@@ -3531,46 +3591,46 @@ function La(e) {
|
|
|
3531
3591
|
const r = ee(t);
|
|
3532
3592
|
if (r.width || r.height) {
|
|
3533
3593
|
const o = Ke(t), i = ce();
|
|
3534
|
-
i ?
|
|
3594
|
+
i ? Lt({ ...e, name: o, bounds: r }) : Rt({ ...e, name: o, bounds: r }), setTimeout(() => {
|
|
3535
3595
|
i && (i.style.display = "none");
|
|
3536
3596
|
}, 1500);
|
|
3537
3597
|
}
|
|
3538
3598
|
}, 1200);
|
|
3539
3599
|
}
|
|
3540
3600
|
}
|
|
3541
|
-
|
|
3601
|
+
m();
|
|
3542
3602
|
var En, vn;
|
|
3543
3603
|
(vn = (En = y).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__) != null || (En.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ = !0);
|
|
3544
|
-
function
|
|
3604
|
+
function Vu(e) {
|
|
3545
3605
|
let t = 0;
|
|
3546
3606
|
const n = setInterval(() => {
|
|
3547
3607
|
y.__VUE_INSPECTOR__ && (clearInterval(n), t += 30, e()), t >= /* 5s */
|
|
3548
3608
|
5e3 && clearInterval(n);
|
|
3549
3609
|
}, 30);
|
|
3550
3610
|
}
|
|
3551
|
-
function
|
|
3611
|
+
function Bu() {
|
|
3552
3612
|
const e = y.__VUE_INSPECTOR__, t = e.openInEditor;
|
|
3553
3613
|
e.openInEditor = async (...n) => {
|
|
3554
3614
|
e.disable(), t(...n);
|
|
3555
3615
|
};
|
|
3556
3616
|
}
|
|
3557
|
-
function
|
|
3617
|
+
function Uu() {
|
|
3558
3618
|
return new Promise((e) => {
|
|
3559
3619
|
function t() {
|
|
3560
|
-
|
|
3620
|
+
Bu(), e(y.__VUE_INSPECTOR__);
|
|
3561
3621
|
}
|
|
3562
|
-
y.__VUE_INSPECTOR__ ? t() :
|
|
3622
|
+
y.__VUE_INSPECTOR__ ? t() : Vu(() => {
|
|
3563
3623
|
t();
|
|
3564
3624
|
});
|
|
3565
3625
|
});
|
|
3566
3626
|
}
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
function
|
|
3627
|
+
m();
|
|
3628
|
+
m();
|
|
3629
|
+
function Hu(e) {
|
|
3570
3630
|
return !!(e && e.__v_isReadonly);
|
|
3571
3631
|
}
|
|
3572
3632
|
function ro(e) {
|
|
3573
|
-
return
|
|
3633
|
+
return Hu(e) ? ro(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
3574
3634
|
}
|
|
3575
3635
|
function nt(e) {
|
|
3576
3636
|
return !!(e && e.__v_isRef === !0);
|
|
@@ -3579,15 +3639,15 @@ function _e(e) {
|
|
|
3579
3639
|
const t = e && e.__v_raw;
|
|
3580
3640
|
return t ? _e(t) : e;
|
|
3581
3641
|
}
|
|
3582
|
-
var
|
|
3642
|
+
var ju = class {
|
|
3583
3643
|
constructor() {
|
|
3584
|
-
this.refEditor = new
|
|
3644
|
+
this.refEditor = new zu();
|
|
3585
3645
|
}
|
|
3586
3646
|
set(e, t, n, r) {
|
|
3587
3647
|
const o = Array.isArray(t) ? t : t.split(".");
|
|
3588
3648
|
for (; o.length > 1; ) {
|
|
3589
|
-
const
|
|
3590
|
-
e instanceof Map ? e = e.get(
|
|
3649
|
+
const u = o.shift();
|
|
3650
|
+
e instanceof Map ? e = e.get(u) : e instanceof Set ? e = Array.from(e.values())[u] : e = e[u], this.refEditor.isRef(e) && (e = this.refEditor.get(e));
|
|
3591
3651
|
}
|
|
3592
3652
|
const i = o[0], s = this.refEditor.get(e)[i];
|
|
3593
3653
|
r ? r(e, i, n) : this.refEditor.isRef(s) ? this.refEditor.set(s, n) : e[i] = n;
|
|
@@ -3617,7 +3677,7 @@ var Ua = class {
|
|
|
3617
3677
|
}
|
|
3618
3678
|
};
|
|
3619
3679
|
}
|
|
3620
|
-
},
|
|
3680
|
+
}, zu = class {
|
|
3621
3681
|
set(e, t) {
|
|
3622
3682
|
if (nt(e))
|
|
3623
3683
|
e.value = t;
|
|
@@ -3647,11 +3707,11 @@ var Ua = class {
|
|
|
3647
3707
|
return nt(e) || ro(e);
|
|
3648
3708
|
}
|
|
3649
3709
|
};
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
var
|
|
3654
|
-
function
|
|
3710
|
+
m();
|
|
3711
|
+
m();
|
|
3712
|
+
m();
|
|
3713
|
+
var $u = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
|
|
3714
|
+
function Ku() {
|
|
3655
3715
|
if (!Kr || typeof localStorage > "u" || localStorage === null)
|
|
3656
3716
|
return {
|
|
3657
3717
|
recordingState: !1,
|
|
@@ -3661,7 +3721,7 @@ function $a() {
|
|
|
3661
3721
|
performanceEventEnabled: !1,
|
|
3662
3722
|
selected: ""
|
|
3663
3723
|
};
|
|
3664
|
-
const e = localStorage.getItem(
|
|
3724
|
+
const e = localStorage.getItem($u);
|
|
3665
3725
|
return e ? JSON.parse(e) : {
|
|
3666
3726
|
recordingState: !1,
|
|
3667
3727
|
mouseEventEnabled: !1,
|
|
@@ -3671,46 +3731,46 @@ function $a() {
|
|
|
3671
3731
|
selected: ""
|
|
3672
3732
|
};
|
|
3673
3733
|
}
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
var yn,
|
|
3678
|
-
(
|
|
3679
|
-
var
|
|
3734
|
+
m();
|
|
3735
|
+
m();
|
|
3736
|
+
m();
|
|
3737
|
+
var yn, bn;
|
|
3738
|
+
(bn = (yn = y).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS) != null || (yn.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = []);
|
|
3739
|
+
var Wu = new Proxy(y.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, {
|
|
3680
3740
|
get(e, t, n) {
|
|
3681
3741
|
return Reflect.get(e, t, n);
|
|
3682
3742
|
}
|
|
3683
3743
|
});
|
|
3684
|
-
function
|
|
3685
|
-
k.timelineLayersState[t.id] = !1,
|
|
3744
|
+
function Gu(e, t) {
|
|
3745
|
+
k.timelineLayersState[t.id] = !1, Wu.push({
|
|
3686
3746
|
...e,
|
|
3687
3747
|
descriptorId: t.id,
|
|
3688
|
-
appRecord:
|
|
3748
|
+
appRecord: It(t.app)
|
|
3689
3749
|
});
|
|
3690
3750
|
}
|
|
3691
|
-
var
|
|
3692
|
-
(wn = (
|
|
3693
|
-
var
|
|
3751
|
+
var Cn, wn;
|
|
3752
|
+
(wn = (Cn = y).__VUE_DEVTOOLS_KIT_INSPECTOR__) != null || (Cn.__VUE_DEVTOOLS_KIT_INSPECTOR__ = []);
|
|
3753
|
+
var Ft = new Proxy(y.__VUE_DEVTOOLS_KIT_INSPECTOR__, {
|
|
3694
3754
|
get(e, t, n) {
|
|
3695
3755
|
return Reflect.get(e, t, n);
|
|
3696
3756
|
}
|
|
3697
|
-
}), oo =
|
|
3757
|
+
}), oo = ue(() => {
|
|
3698
3758
|
fe.hooks.callHook("sendInspectorToClient", io());
|
|
3699
3759
|
});
|
|
3700
|
-
function
|
|
3760
|
+
function Yu(e, t) {
|
|
3701
3761
|
var n, r;
|
|
3702
|
-
|
|
3762
|
+
Ft.push({
|
|
3703
3763
|
options: e,
|
|
3704
3764
|
descriptor: t,
|
|
3705
3765
|
treeFilterPlaceholder: (n = e.treeFilterPlaceholder) != null ? n : "Search tree...",
|
|
3706
3766
|
stateFilterPlaceholder: (r = e.stateFilterPlaceholder) != null ? r : "Search state...",
|
|
3707
3767
|
treeFilter: "",
|
|
3708
3768
|
selectedNodeId: "",
|
|
3709
|
-
appRecord:
|
|
3769
|
+
appRecord: It(t.app)
|
|
3710
3770
|
}), oo();
|
|
3711
3771
|
}
|
|
3712
3772
|
function io() {
|
|
3713
|
-
return
|
|
3773
|
+
return Ft.filter((e) => e.descriptor.app === F.value.app).filter((e) => e.descriptor.id !== "components").map((e) => {
|
|
3714
3774
|
var t;
|
|
3715
3775
|
const n = e.descriptor, r = e.options;
|
|
3716
3776
|
return {
|
|
@@ -3725,36 +3785,36 @@ function io() {
|
|
|
3725
3785
|
});
|
|
3726
3786
|
}
|
|
3727
3787
|
function Re(e, t) {
|
|
3728
|
-
return
|
|
3788
|
+
return Ft.find((n) => n.options.id === e && (t ? n.descriptor.app === t : !0));
|
|
3729
3789
|
}
|
|
3730
|
-
function
|
|
3790
|
+
function qu() {
|
|
3731
3791
|
const e = Gr();
|
|
3732
3792
|
e.hook("addInspector", ({ inspector: r, plugin: o }) => {
|
|
3733
|
-
|
|
3793
|
+
Yu(r, o.descriptor);
|
|
3734
3794
|
});
|
|
3735
|
-
const t =
|
|
3795
|
+
const t = ue(async ({ inspectorId: r, plugin: o }) => {
|
|
3736
3796
|
var i;
|
|
3737
3797
|
if (!r || !((i = o?.descriptor) != null && i.app) || k.highPerfModeEnabled)
|
|
3738
3798
|
return;
|
|
3739
|
-
const s = Re(r, o.descriptor.app),
|
|
3799
|
+
const s = Re(r, o.descriptor.app), u = {
|
|
3740
3800
|
app: o.descriptor.app,
|
|
3741
3801
|
inspectorId: r,
|
|
3742
3802
|
filter: s?.treeFilter || "",
|
|
3743
3803
|
rootNodes: []
|
|
3744
3804
|
};
|
|
3745
|
-
await new Promise((
|
|
3805
|
+
await new Promise((a) => {
|
|
3746
3806
|
e.callHookWith(
|
|
3747
3807
|
async (l) => {
|
|
3748
|
-
await Promise.all(l.map((c) => c(
|
|
3808
|
+
await Promise.all(l.map((c) => c(u))), a();
|
|
3749
3809
|
},
|
|
3750
3810
|
"getInspectorTree"
|
|
3751
3811
|
/* GET_INSPECTOR_TREE */
|
|
3752
3812
|
);
|
|
3753
3813
|
}), e.callHookWith(
|
|
3754
|
-
async (
|
|
3755
|
-
await Promise.all(
|
|
3814
|
+
async (a) => {
|
|
3815
|
+
await Promise.all(a.map((l) => l({
|
|
3756
3816
|
inspectorId: r,
|
|
3757
|
-
rootNodes:
|
|
3817
|
+
rootNodes: u.rootNodes
|
|
3758
3818
|
})));
|
|
3759
3819
|
},
|
|
3760
3820
|
"sendInspectorTreeToClient"
|
|
@@ -3762,22 +3822,22 @@ function Ga() {
|
|
|
3762
3822
|
);
|
|
3763
3823
|
}, 120);
|
|
3764
3824
|
e.hook("sendInspectorTree", t);
|
|
3765
|
-
const n =
|
|
3825
|
+
const n = ue(async ({ inspectorId: r, plugin: o }) => {
|
|
3766
3826
|
var i;
|
|
3767
3827
|
if (!r || !((i = o?.descriptor) != null && i.app) || k.highPerfModeEnabled)
|
|
3768
3828
|
return;
|
|
3769
|
-
const s = Re(r, o.descriptor.app),
|
|
3829
|
+
const s = Re(r, o.descriptor.app), u = {
|
|
3770
3830
|
app: o.descriptor.app,
|
|
3771
3831
|
inspectorId: r,
|
|
3772
3832
|
nodeId: s?.selectedNodeId || "",
|
|
3773
3833
|
state: null
|
|
3774
|
-
},
|
|
3834
|
+
}, a = {
|
|
3775
3835
|
currentTab: `custom-inspector:${r}`
|
|
3776
3836
|
};
|
|
3777
|
-
|
|
3837
|
+
u.nodeId && await new Promise((l) => {
|
|
3778
3838
|
e.callHookWith(
|
|
3779
3839
|
async (c) => {
|
|
3780
|
-
await Promise.all(c.map((f) => f(
|
|
3840
|
+
await Promise.all(c.map((f) => f(u, a))), l();
|
|
3781
3841
|
},
|
|
3782
3842
|
"getInspectorState"
|
|
3783
3843
|
/* GET_INSPECTOR_STATE */
|
|
@@ -3786,8 +3846,8 @@ function Ga() {
|
|
|
3786
3846
|
async (l) => {
|
|
3787
3847
|
await Promise.all(l.map((c) => c({
|
|
3788
3848
|
inspectorId: r,
|
|
3789
|
-
nodeId:
|
|
3790
|
-
state:
|
|
3849
|
+
nodeId: u.nodeId,
|
|
3850
|
+
state: u.state
|
|
3791
3851
|
})));
|
|
3792
3852
|
},
|
|
3793
3853
|
"sendInspectorStateToClient"
|
|
@@ -3798,13 +3858,13 @@ function Ga() {
|
|
|
3798
3858
|
const s = Re(r, i.descriptor.app);
|
|
3799
3859
|
s && (s.selectedNodeId = o);
|
|
3800
3860
|
}), e.hook("timelineLayerAdded", ({ options: r, plugin: o }) => {
|
|
3801
|
-
|
|
3861
|
+
Gu(r, o.descriptor);
|
|
3802
3862
|
}), e.hook("timelineEventAdded", ({ options: r, plugin: o }) => {
|
|
3803
3863
|
var i;
|
|
3804
3864
|
const s = ["performance", "component-event", "keyboard", "mouse"];
|
|
3805
3865
|
k.highPerfModeEnabled || !((i = k.timelineLayersState) != null && i[o.descriptor.id]) && !s.includes(r.layerId) || e.callHookWith(
|
|
3806
|
-
async (
|
|
3807
|
-
await Promise.all(
|
|
3866
|
+
async (u) => {
|
|
3867
|
+
await Promise.all(u.map((a) => a(r)));
|
|
3808
3868
|
},
|
|
3809
3869
|
"sendTimelineEventToClient"
|
|
3810
3870
|
/* SEND_TIMELINE_EVENT_TO_CLIENT */
|
|
@@ -3814,10 +3874,10 @@ function Ga() {
|
|
|
3814
3874
|
if (!o)
|
|
3815
3875
|
return null;
|
|
3816
3876
|
const i = o.id.toString();
|
|
3817
|
-
return [...o.instanceMap].filter(([
|
|
3877
|
+
return [...o.instanceMap].filter(([u]) => u.split(":")[0] === i).map(([, u]) => u);
|
|
3818
3878
|
}), e.hook("getComponentBounds", async ({ instance: r }) => ee(r)), e.hook("getComponentName", ({ instance: r }) => Ke(r)), e.hook("componentHighlight", ({ uid: r }) => {
|
|
3819
|
-
const o =
|
|
3820
|
-
o &&
|
|
3879
|
+
const o = F.value.instanceMap.get(r);
|
|
3880
|
+
o && Ru(o);
|
|
3821
3881
|
}), e.hook("componentUnhighlight", () => {
|
|
3822
3882
|
no();
|
|
3823
3883
|
}), e;
|
|
@@ -3826,14 +3886,14 @@ var An, Tn;
|
|
|
3826
3886
|
(Tn = (An = y).__VUE_DEVTOOLS_KIT_APP_RECORDS__) != null || (An.__VUE_DEVTOOLS_KIT_APP_RECORDS__ = []);
|
|
3827
3887
|
var On, Sn;
|
|
3828
3888
|
(Sn = (On = y).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__) != null || (On.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = {});
|
|
3829
|
-
var Pn,
|
|
3830
|
-
(
|
|
3831
|
-
var
|
|
3832
|
-
(kn = (
|
|
3889
|
+
var Pn, Dn;
|
|
3890
|
+
(Dn = (Pn = y).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__) != null || (Pn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = "");
|
|
3891
|
+
var In, kn;
|
|
3892
|
+
(kn = (In = y).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__) != null || (In.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ = []);
|
|
3833
3893
|
var xn, Rn;
|
|
3834
3894
|
(Rn = (xn = y).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__) != null || (xn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ = []);
|
|
3835
|
-
var
|
|
3836
|
-
function
|
|
3895
|
+
var Z = "__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";
|
|
3896
|
+
function Xu() {
|
|
3837
3897
|
return {
|
|
3838
3898
|
connected: !1,
|
|
3839
3899
|
clientConnected: !1,
|
|
@@ -3845,78 +3905,78 @@ function Ya() {
|
|
|
3845
3905
|
highPerfModeEnabled: !0,
|
|
3846
3906
|
devtoolsClientDetected: {},
|
|
3847
3907
|
perfUniqueGroupId: 0,
|
|
3848
|
-
timelineLayersState:
|
|
3908
|
+
timelineLayersState: Ku()
|
|
3849
3909
|
};
|
|
3850
3910
|
}
|
|
3851
|
-
var
|
|
3852
|
-
(
|
|
3853
|
-
var
|
|
3911
|
+
var Ln, Fn;
|
|
3912
|
+
(Fn = (Ln = y)[Z]) != null || (Ln[Z] = Xu());
|
|
3913
|
+
var Qu = ue((e) => {
|
|
3854
3914
|
fe.hooks.callHook("devtoolsStateUpdated", { state: e });
|
|
3855
3915
|
});
|
|
3856
|
-
|
|
3916
|
+
ue((e, t) => {
|
|
3857
3917
|
fe.hooks.callHook("devtoolsConnectedUpdated", { state: e, oldState: t });
|
|
3858
3918
|
});
|
|
3859
3919
|
var We = new Proxy(y.__VUE_DEVTOOLS_KIT_APP_RECORDS__, {
|
|
3860
3920
|
get(e, t, n) {
|
|
3861
3921
|
return t === "value" ? y.__VUE_DEVTOOLS_KIT_APP_RECORDS__ : y.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t];
|
|
3862
3922
|
}
|
|
3863
|
-
}),
|
|
3923
|
+
}), F = new Proxy(y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__, {
|
|
3864
3924
|
get(e, t, n) {
|
|
3865
3925
|
return t === "value" ? y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ : t === "id" ? y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ : y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t];
|
|
3866
3926
|
}
|
|
3867
3927
|
});
|
|
3868
3928
|
function so() {
|
|
3869
|
-
|
|
3870
|
-
...y[
|
|
3929
|
+
Qu({
|
|
3930
|
+
...y[Z],
|
|
3871
3931
|
appRecords: We.value,
|
|
3872
|
-
activeAppRecordId:
|
|
3932
|
+
activeAppRecordId: F.id,
|
|
3873
3933
|
tabs: y.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,
|
|
3874
3934
|
commands: y.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__
|
|
3875
3935
|
});
|
|
3876
3936
|
}
|
|
3877
|
-
function
|
|
3937
|
+
function Zu(e) {
|
|
3878
3938
|
y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = e, so();
|
|
3879
3939
|
}
|
|
3880
|
-
function
|
|
3940
|
+
function Ju(e) {
|
|
3881
3941
|
y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = e, so();
|
|
3882
3942
|
}
|
|
3883
|
-
var k = new Proxy(y[
|
|
3943
|
+
var k = new Proxy(y[Z], {
|
|
3884
3944
|
get(e, t) {
|
|
3885
|
-
return t === "appRecords" ? We : t === "activeAppRecordId" ?
|
|
3945
|
+
return t === "appRecords" ? We : t === "activeAppRecordId" ? F.id : t === "tabs" ? y.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ : t === "commands" ? y.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ : y[Z][t];
|
|
3886
3946
|
},
|
|
3887
3947
|
deleteProperty(e, t) {
|
|
3888
3948
|
return delete e[t], !0;
|
|
3889
3949
|
},
|
|
3890
3950
|
set(e, t, n) {
|
|
3891
|
-
return { ...y[
|
|
3951
|
+
return { ...y[Z] }, e[t] = n, y[Z][t] = n, !0;
|
|
3892
3952
|
}
|
|
3893
3953
|
});
|
|
3894
|
-
function
|
|
3954
|
+
function ea(e = {}) {
|
|
3895
3955
|
var t, n, r;
|
|
3896
|
-
const { file: o, host: i, baseUrl: s = window.location.origin, line:
|
|
3956
|
+
const { file: o, host: i, baseUrl: s = window.location.origin, line: u = 0, column: a = 0 } = e;
|
|
3897
3957
|
if (o) {
|
|
3898
3958
|
if (i === "chrome-extension") {
|
|
3899
3959
|
const l = o.replace(/\\/g, "\\\\"), c = (n = (t = window.VUE_DEVTOOLS_CONFIG) == null ? void 0 : t.openInEditorHost) != null ? n : "/";
|
|
3900
3960
|
fetch(`${c}__open-in-editor?file=${encodeURI(o)}`).then((f) => {
|
|
3901
3961
|
if (!f.ok) {
|
|
3902
|
-
const
|
|
3903
|
-
console.log(`%c${
|
|
3962
|
+
const _ = `Opening component ${l} failed`;
|
|
3963
|
+
console.log(`%c${_}`, "color:red");
|
|
3904
3964
|
}
|
|
3905
3965
|
});
|
|
3906
3966
|
} else if (k.vitePluginDetected) {
|
|
3907
3967
|
const l = (r = y.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__) != null ? r : s;
|
|
3908
|
-
y.__VUE_INSPECTOR__.openInEditor(l, o,
|
|
3968
|
+
y.__VUE_INSPECTOR__.openInEditor(l, o, u, a);
|
|
3909
3969
|
}
|
|
3910
3970
|
}
|
|
3911
3971
|
}
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
var
|
|
3918
|
-
(
|
|
3919
|
-
var
|
|
3972
|
+
m();
|
|
3973
|
+
m();
|
|
3974
|
+
m();
|
|
3975
|
+
m();
|
|
3976
|
+
m();
|
|
3977
|
+
var Mn, Nn;
|
|
3978
|
+
(Nn = (Mn = y).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__) != null || (Mn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = []);
|
|
3979
|
+
var Mt = new Proxy(y.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, {
|
|
3920
3980
|
get(e, t, n) {
|
|
3921
3981
|
return Reflect.get(e, t, n);
|
|
3922
3982
|
}
|
|
@@ -3927,43 +3987,43 @@ function Et(e) {
|
|
|
3927
3987
|
t[n] = e[n].defaultValue;
|
|
3928
3988
|
}), t;
|
|
3929
3989
|
}
|
|
3930
|
-
function
|
|
3990
|
+
function Nt(e) {
|
|
3931
3991
|
return `__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`;
|
|
3932
3992
|
}
|
|
3933
|
-
function
|
|
3993
|
+
function ta(e) {
|
|
3934
3994
|
var t, n, r;
|
|
3935
|
-
const o = (n = (t =
|
|
3995
|
+
const o = (n = (t = Mt.find((i) => {
|
|
3936
3996
|
var s;
|
|
3937
3997
|
return i[0].id === e && !!((s = i[0]) != null && s.settings);
|
|
3938
3998
|
})) == null ? void 0 : t[0]) != null ? n : null;
|
|
3939
3999
|
return (r = o?.settings) != null ? r : null;
|
|
3940
4000
|
}
|
|
3941
|
-
function
|
|
4001
|
+
function uo(e, t) {
|
|
3942
4002
|
var n, r, o;
|
|
3943
|
-
const i =
|
|
4003
|
+
const i = Nt(e);
|
|
3944
4004
|
if (i) {
|
|
3945
4005
|
const s = localStorage.getItem(i);
|
|
3946
4006
|
if (s)
|
|
3947
4007
|
return JSON.parse(s);
|
|
3948
4008
|
}
|
|
3949
4009
|
if (e) {
|
|
3950
|
-
const s = (r = (n =
|
|
4010
|
+
const s = (r = (n = Mt.find((u) => u[0].id === e)) == null ? void 0 : n[0]) != null ? r : null;
|
|
3951
4011
|
return Et((o = s?.settings) != null ? o : {});
|
|
3952
4012
|
}
|
|
3953
4013
|
return Et(t);
|
|
3954
4014
|
}
|
|
3955
|
-
function
|
|
3956
|
-
const n =
|
|
4015
|
+
function na(e, t) {
|
|
4016
|
+
const n = Nt(e);
|
|
3957
4017
|
localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(Et(t)));
|
|
3958
4018
|
}
|
|
3959
|
-
function
|
|
3960
|
-
const r =
|
|
4019
|
+
function ra(e, t, n) {
|
|
4020
|
+
const r = Nt(e), o = localStorage.getItem(r), i = JSON.parse(o || "{}"), s = {
|
|
3961
4021
|
...i,
|
|
3962
4022
|
[t]: n
|
|
3963
4023
|
};
|
|
3964
4024
|
localStorage.setItem(r, JSON.stringify(s)), fe.hooks.callHookWith(
|
|
3965
|
-
(
|
|
3966
|
-
|
|
4025
|
+
(u) => {
|
|
4026
|
+
u.forEach((a) => a({
|
|
3967
4027
|
pluginId: e,
|
|
3968
4028
|
key: t,
|
|
3969
4029
|
oldValue: i[t],
|
|
@@ -3975,18 +4035,18 @@ function tu(e, t, n) {
|
|
|
3975
4035
|
/* SET_PLUGIN_SETTINGS */
|
|
3976
4036
|
);
|
|
3977
4037
|
}
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVTOOLS_HOOK = Gr(),
|
|
4038
|
+
m();
|
|
4039
|
+
m();
|
|
4040
|
+
m();
|
|
4041
|
+
m();
|
|
4042
|
+
m();
|
|
4043
|
+
m();
|
|
4044
|
+
m();
|
|
4045
|
+
m();
|
|
4046
|
+
m();
|
|
4047
|
+
m();
|
|
4048
|
+
m();
|
|
4049
|
+
var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVTOOLS_HOOK = Gr(), oa = {
|
|
3990
4050
|
vueAppInit(e) {
|
|
3991
4051
|
V.hook("app:init", e);
|
|
3992
4052
|
},
|
|
@@ -4017,12 +4077,12 @@ var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVT
|
|
|
4017
4077
|
perfEnd(e) {
|
|
4018
4078
|
return V.hook("perf:end", e);
|
|
4019
4079
|
}
|
|
4020
|
-
},
|
|
4021
|
-
on:
|
|
4080
|
+
}, ao = {
|
|
4081
|
+
on: oa,
|
|
4022
4082
|
setupDevToolsPlugin(e, t) {
|
|
4023
4083
|
return V.callHook("devtools-plugin:setup", e, t);
|
|
4024
4084
|
}
|
|
4025
|
-
},
|
|
4085
|
+
}, ia = class {
|
|
4026
4086
|
constructor({ plugin: e, ctx: t }) {
|
|
4027
4087
|
this.hooks = t.hooks, this.plugin = e;
|
|
4028
4088
|
}
|
|
@@ -4086,7 +4146,7 @@ var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVT
|
|
|
4086
4146
|
}
|
|
4087
4147
|
// custom inspector
|
|
4088
4148
|
addInspector(e) {
|
|
4089
|
-
this.hooks.callHook("addInspector", { inspector: e, plugin: this.plugin }), this.plugin.descriptor.settings &&
|
|
4149
|
+
this.hooks.callHook("addInspector", { inspector: e, plugin: this.plugin }), this.plugin.descriptor.settings && na(e.id, this.plugin.descriptor.settings);
|
|
4090
4150
|
}
|
|
4091
4151
|
sendInspectorTree(e) {
|
|
4092
4152
|
k.highPerfModeEnabled || this.hooks.callHook("sendInspectorTree", { inspectorId: e, plugin: this.plugin });
|
|
@@ -4112,7 +4172,7 @@ var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVT
|
|
|
4112
4172
|
}
|
|
4113
4173
|
// settings
|
|
4114
4174
|
getSettings(e) {
|
|
4115
|
-
return
|
|
4175
|
+
return uo(e ?? this.plugin.descriptor.id, this.plugin.descriptor.settings);
|
|
4116
4176
|
}
|
|
4117
4177
|
// utilities
|
|
4118
4178
|
getComponentInstances(e) {
|
|
@@ -4134,36 +4194,36 @@ var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVT
|
|
|
4134
4194
|
/* COMPONENT_UNHIGHLIGHT */
|
|
4135
4195
|
);
|
|
4136
4196
|
}
|
|
4137
|
-
},
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
var
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
var
|
|
4146
|
-
[
|
|
4147
|
-
[
|
|
4148
|
-
[
|
|
4149
|
-
[
|
|
4197
|
+
}, sa = ia;
|
|
4198
|
+
m();
|
|
4199
|
+
m();
|
|
4200
|
+
m();
|
|
4201
|
+
m();
|
|
4202
|
+
var ua = "__vue_devtool_undefined__", aa = "__vue_devtool_infinity__", la = "__vue_devtool_negative_infinity__", ca = "__vue_devtool_nan__";
|
|
4203
|
+
m();
|
|
4204
|
+
m();
|
|
4205
|
+
var fa = {
|
|
4206
|
+
[ua]: "undefined",
|
|
4207
|
+
[ca]: "NaN",
|
|
4208
|
+
[aa]: "Infinity",
|
|
4209
|
+
[la]: "-Infinity"
|
|
4150
4210
|
};
|
|
4151
|
-
Object.entries(
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4211
|
+
Object.entries(fa).reduce((e, [t, n]) => (e[n] = t, e), {});
|
|
4212
|
+
m();
|
|
4213
|
+
m();
|
|
4214
|
+
m();
|
|
4215
|
+
m();
|
|
4216
|
+
m();
|
|
4157
4217
|
var Un, Hn;
|
|
4158
4218
|
(Hn = (Un = y).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__) != null || (Un.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ = /* @__PURE__ */ new Set());
|
|
4159
|
-
function
|
|
4160
|
-
return
|
|
4219
|
+
function da(e, t) {
|
|
4220
|
+
return ao.setupDevToolsPlugin(e, t);
|
|
4161
4221
|
}
|
|
4162
|
-
function
|
|
4222
|
+
function pa(e, t) {
|
|
4163
4223
|
const [n, r] = e;
|
|
4164
4224
|
if (n.app !== t)
|
|
4165
4225
|
return;
|
|
4166
|
-
const o = new
|
|
4226
|
+
const o = new sa({
|
|
4167
4227
|
plugin: {
|
|
4168
4228
|
setupFn: r,
|
|
4169
4229
|
descriptor: n
|
|
@@ -4175,22 +4235,22 @@ function fu(e, t) {
|
|
|
4175
4235
|
}), r(o);
|
|
4176
4236
|
}
|
|
4177
4237
|
function lo(e, t) {
|
|
4178
|
-
y.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || k.highPerfModeEnabled && !t?.inspectingComponent || (y.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),
|
|
4179
|
-
|
|
4238
|
+
y.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || k.highPerfModeEnabled && !t?.inspectingComponent || (y.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), Mt.forEach((n) => {
|
|
4239
|
+
pa(n, e);
|
|
4180
4240
|
}));
|
|
4181
4241
|
}
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
var ve = "__VUE_DEVTOOLS_ROUTER__",
|
|
4185
|
-
(
|
|
4242
|
+
m();
|
|
4243
|
+
m();
|
|
4244
|
+
var ve = "__VUE_DEVTOOLS_ROUTER__", ae = "__VUE_DEVTOOLS_ROUTER_INFO__", jn, zn;
|
|
4245
|
+
(zn = (jn = y)[ae]) != null || (jn[ae] = {
|
|
4186
4246
|
currentRoute: null,
|
|
4187
4247
|
routes: []
|
|
4188
4248
|
});
|
|
4189
|
-
var
|
|
4190
|
-
(Kn = (
|
|
4191
|
-
new Proxy(y[
|
|
4249
|
+
var $n, Kn;
|
|
4250
|
+
(Kn = ($n = y)[ve]) != null || ($n[ve] = {});
|
|
4251
|
+
new Proxy(y[ae], {
|
|
4192
4252
|
get(e, t) {
|
|
4193
|
-
return y[
|
|
4253
|
+
return y[ae][t];
|
|
4194
4254
|
}
|
|
4195
4255
|
});
|
|
4196
4256
|
new Proxy(y[ve], {
|
|
@@ -4199,7 +4259,7 @@ new Proxy(y[ve], {
|
|
|
4199
4259
|
return y[ve];
|
|
4200
4260
|
}
|
|
4201
4261
|
});
|
|
4202
|
-
function
|
|
4262
|
+
function ha(e) {
|
|
4203
4263
|
const t = /* @__PURE__ */ new Map();
|
|
4204
4264
|
return (e?.getRoutes() || []).filter((n) => !t.has(n.path) && t.set(n.path, 1));
|
|
4205
4265
|
}
|
|
@@ -4214,44 +4274,44 @@ function Vt(e) {
|
|
|
4214
4274
|
};
|
|
4215
4275
|
});
|
|
4216
4276
|
}
|
|
4217
|
-
function
|
|
4277
|
+
function _a(e) {
|
|
4218
4278
|
if (e) {
|
|
4219
|
-
const { fullPath: t, hash: n, href: r, path: o, name: i, matched: s, params:
|
|
4279
|
+
const { fullPath: t, hash: n, href: r, path: o, name: i, matched: s, params: u, query: a } = e;
|
|
4220
4280
|
return {
|
|
4221
4281
|
fullPath: t,
|
|
4222
4282
|
hash: n,
|
|
4223
4283
|
href: r,
|
|
4224
4284
|
path: o,
|
|
4225
4285
|
name: i,
|
|
4226
|
-
params:
|
|
4227
|
-
query:
|
|
4286
|
+
params: u,
|
|
4287
|
+
query: a,
|
|
4228
4288
|
matched: Vt(s)
|
|
4229
4289
|
};
|
|
4230
4290
|
}
|
|
4231
4291
|
return e;
|
|
4232
4292
|
}
|
|
4233
|
-
function
|
|
4293
|
+
function ma(e, t) {
|
|
4234
4294
|
function n() {
|
|
4235
4295
|
var r;
|
|
4236
|
-
const o = (r = e.app) == null ? void 0 : r.config.globalProperties.$router, i =
|
|
4296
|
+
const o = (r = e.app) == null ? void 0 : r.config.globalProperties.$router, i = _a(o?.currentRoute.value), s = Vt(ha(o)), u = console.warn;
|
|
4237
4297
|
console.warn = () => {
|
|
4238
|
-
}, y[
|
|
4298
|
+
}, y[ae] = {
|
|
4239
4299
|
currentRoute: i ? _n(i) : {},
|
|
4240
4300
|
routes: _n(s)
|
|
4241
|
-
}, y[ve] = o, console.warn =
|
|
4301
|
+
}, y[ve] = o, console.warn = u;
|
|
4242
4302
|
}
|
|
4243
|
-
n(),
|
|
4303
|
+
n(), ao.on.componentUpdated(ue(() => {
|
|
4244
4304
|
var r;
|
|
4245
|
-
((r = t.value) == null ? void 0 : r.app) === e.app && (n(), !k.highPerfModeEnabled && fe.hooks.callHook("routerInfoUpdated", { state: y[
|
|
4305
|
+
((r = t.value) == null ? void 0 : r.app) === e.app && (n(), !k.highPerfModeEnabled && fe.hooks.callHook("routerInfoUpdated", { state: y[ae] }));
|
|
4246
4306
|
}, 200));
|
|
4247
4307
|
}
|
|
4248
|
-
function
|
|
4308
|
+
function ga(e) {
|
|
4249
4309
|
return {
|
|
4250
4310
|
// get inspector tree
|
|
4251
4311
|
async getInspectorTree(t) {
|
|
4252
4312
|
const n = {
|
|
4253
4313
|
...t,
|
|
4254
|
-
app:
|
|
4314
|
+
app: F.value.app,
|
|
4255
4315
|
rootNodes: []
|
|
4256
4316
|
};
|
|
4257
4317
|
return await new Promise((r) => {
|
|
@@ -4268,7 +4328,7 @@ function _u(e) {
|
|
|
4268
4328
|
async getInspectorState(t) {
|
|
4269
4329
|
const n = {
|
|
4270
4330
|
...t,
|
|
4271
|
-
app:
|
|
4331
|
+
app: F.value.app,
|
|
4272
4332
|
state: null
|
|
4273
4333
|
}, r = {
|
|
4274
4334
|
currentTab: `custom-inspector:${t.inspectorId}`
|
|
@@ -4285,11 +4345,11 @@ function _u(e) {
|
|
|
4285
4345
|
},
|
|
4286
4346
|
// edit inspector state
|
|
4287
4347
|
editInspectorState(t) {
|
|
4288
|
-
const n = new
|
|
4348
|
+
const n = new ju(), r = {
|
|
4289
4349
|
...t,
|
|
4290
|
-
app:
|
|
4291
|
-
set: (o, i = t.path, s = t.state.value,
|
|
4292
|
-
n.set(o, i, s,
|
|
4350
|
+
app: F.value.app,
|
|
4351
|
+
set: (o, i = t.path, s = t.state.value, u) => {
|
|
4352
|
+
n.set(o, i, s, u || n.createDefaultSetCallback(t.state));
|
|
4293
4353
|
}
|
|
4294
4354
|
};
|
|
4295
4355
|
e.callHookWith(
|
|
@@ -4310,102 +4370,102 @@ function _u(e) {
|
|
|
4310
4370
|
},
|
|
4311
4371
|
// inspect component inspector
|
|
4312
4372
|
inspectComponentInspector() {
|
|
4313
|
-
return
|
|
4373
|
+
return Mu();
|
|
4314
4374
|
},
|
|
4315
4375
|
// cancel inspect component inspector
|
|
4316
4376
|
cancelInspectComponentInspector() {
|
|
4317
|
-
return
|
|
4377
|
+
return Fu();
|
|
4318
4378
|
},
|
|
4319
4379
|
// get component render code
|
|
4320
4380
|
getComponentRenderCode(t) {
|
|
4321
|
-
const n = _t(
|
|
4381
|
+
const n = _t(F.value, t);
|
|
4322
4382
|
if (n)
|
|
4323
4383
|
return typeof n?.type != "function" ? n.render.toString() : n.type.toString();
|
|
4324
4384
|
},
|
|
4325
4385
|
// scroll to component
|
|
4326
4386
|
scrollToComponent(t) {
|
|
4327
|
-
return
|
|
4387
|
+
return Nu({ id: t });
|
|
4328
4388
|
},
|
|
4329
4389
|
// open in editor
|
|
4330
|
-
openInEditor:
|
|
4390
|
+
openInEditor: ea,
|
|
4331
4391
|
// get vue inspector
|
|
4332
|
-
getVueInspector:
|
|
4392
|
+
getVueInspector: Uu,
|
|
4333
4393
|
// toggle app
|
|
4334
4394
|
toggleApp(t, n) {
|
|
4335
4395
|
const r = We.value.find((o) => o.id === t);
|
|
4336
|
-
r && (
|
|
4396
|
+
r && (Ju(t), Zu(r), ma(r, F), oo(), lo(r.app, n));
|
|
4337
4397
|
},
|
|
4338
4398
|
// inspect dom
|
|
4339
4399
|
inspectDOM(t) {
|
|
4340
|
-
const n = _t(
|
|
4400
|
+
const n = _t(F.value, t);
|
|
4341
4401
|
if (n) {
|
|
4342
4402
|
const [r] = kt(n);
|
|
4343
4403
|
r && (y.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__ = r);
|
|
4344
4404
|
}
|
|
4345
4405
|
},
|
|
4346
4406
|
updatePluginSettings(t, n, r) {
|
|
4347
|
-
|
|
4407
|
+
ra(t, n, r);
|
|
4348
4408
|
},
|
|
4349
4409
|
getPluginSettings(t) {
|
|
4350
4410
|
return {
|
|
4351
|
-
options:
|
|
4352
|
-
values:
|
|
4411
|
+
options: ta(t),
|
|
4412
|
+
values: uo(t)
|
|
4353
4413
|
};
|
|
4354
4414
|
}
|
|
4355
4415
|
};
|
|
4356
4416
|
}
|
|
4357
|
-
|
|
4417
|
+
m();
|
|
4358
4418
|
var Wn, Gn;
|
|
4359
4419
|
(Gn = (Wn = y).__VUE_DEVTOOLS_ENV__) != null || (Wn.__VUE_DEVTOOLS_ENV__ = {
|
|
4360
4420
|
vitePluginDetected: !1
|
|
4361
4421
|
});
|
|
4362
|
-
var Yn =
|
|
4422
|
+
var Yn = qu(), qn, Xn;
|
|
4363
4423
|
(Xn = (qn = y).__VUE_DEVTOOLS_KIT_CONTEXT__) != null || (qn.__VUE_DEVTOOLS_KIT_CONTEXT__ = {
|
|
4364
4424
|
hooks: Yn,
|
|
4365
4425
|
get state() {
|
|
4366
4426
|
return {
|
|
4367
4427
|
...k,
|
|
4368
|
-
activeAppRecordId:
|
|
4369
|
-
activeAppRecord:
|
|
4428
|
+
activeAppRecordId: F.id,
|
|
4429
|
+
activeAppRecord: F.value,
|
|
4370
4430
|
appRecords: We.value
|
|
4371
4431
|
};
|
|
4372
4432
|
},
|
|
4373
|
-
api:
|
|
4433
|
+
api: ga(Yn)
|
|
4374
4434
|
});
|
|
4375
4435
|
var fe = y.__VUE_DEVTOOLS_KIT_CONTEXT__;
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
var
|
|
4379
|
-
(
|
|
4436
|
+
m();
|
|
4437
|
+
gu(vu());
|
|
4438
|
+
var Qn, Zn;
|
|
4439
|
+
(Zn = (Qn = y).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__) != null || (Qn.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = {
|
|
4380
4440
|
id: 0,
|
|
4381
4441
|
appIds: /* @__PURE__ */ new Set()
|
|
4382
4442
|
});
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
function
|
|
4386
|
-
k.highPerfModeEnabled = e ?? !k.highPerfModeEnabled, !e &&
|
|
4387
|
-
}
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
function
|
|
4443
|
+
m();
|
|
4444
|
+
m();
|
|
4445
|
+
function Ea(e) {
|
|
4446
|
+
k.highPerfModeEnabled = e ?? !k.highPerfModeEnabled, !e && F.value && lo(F.value.app);
|
|
4447
|
+
}
|
|
4448
|
+
m();
|
|
4449
|
+
m();
|
|
4450
|
+
m();
|
|
4451
|
+
function va(e) {
|
|
4392
4452
|
k.devtoolsClientDetected = {
|
|
4393
4453
|
...k.devtoolsClientDetected,
|
|
4394
4454
|
...e
|
|
4395
4455
|
};
|
|
4396
4456
|
const t = Object.values(k.devtoolsClientDetected).some(Boolean);
|
|
4397
|
-
|
|
4457
|
+
Ea(!t);
|
|
4398
4458
|
}
|
|
4399
4459
|
var Jn, er;
|
|
4400
|
-
(er = (Jn = y).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null || (Jn.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ =
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
var
|
|
4460
|
+
(er = (Jn = y).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null || (Jn.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ = va);
|
|
4461
|
+
m();
|
|
4462
|
+
m();
|
|
4463
|
+
m();
|
|
4464
|
+
m();
|
|
4465
|
+
m();
|
|
4466
|
+
m();
|
|
4467
|
+
m();
|
|
4468
|
+
var ya = class {
|
|
4409
4469
|
constructor() {
|
|
4410
4470
|
this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
|
|
4411
4471
|
}
|
|
@@ -4423,7 +4483,7 @@ var Eu = class {
|
|
|
4423
4483
|
}
|
|
4424
4484
|
}, co = class {
|
|
4425
4485
|
constructor(e) {
|
|
4426
|
-
this.generateIdentifier = e, this.kv = new
|
|
4486
|
+
this.generateIdentifier = e, this.kv = new ya();
|
|
4427
4487
|
}
|
|
4428
4488
|
register(e, t) {
|
|
4429
4489
|
this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
|
|
@@ -4437,7 +4497,7 @@ var Eu = class {
|
|
|
4437
4497
|
getValue(e) {
|
|
4438
4498
|
return this.kv.getByKey(e);
|
|
4439
4499
|
}
|
|
4440
|
-
},
|
|
4500
|
+
}, ba = class extends co {
|
|
4441
4501
|
constructor() {
|
|
4442
4502
|
super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
4443
4503
|
}
|
|
@@ -4448,9 +4508,9 @@ var Eu = class {
|
|
|
4448
4508
|
return this.classToAllowedProps.get(e);
|
|
4449
4509
|
}
|
|
4450
4510
|
};
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
function
|
|
4511
|
+
m();
|
|
4512
|
+
m();
|
|
4513
|
+
function Ca(e) {
|
|
4454
4514
|
if ("values" in Object)
|
|
4455
4515
|
return Object.values(e);
|
|
4456
4516
|
const t = [];
|
|
@@ -4458,8 +4518,8 @@ function yu(e) {
|
|
|
4458
4518
|
e.hasOwnProperty(n) && t.push(e[n]);
|
|
4459
4519
|
return t;
|
|
4460
4520
|
}
|
|
4461
|
-
function
|
|
4462
|
-
const n =
|
|
4521
|
+
function wa(e, t) {
|
|
4522
|
+
const n = Ca(e);
|
|
4463
4523
|
if ("find" in n)
|
|
4464
4524
|
return n.find(t);
|
|
4465
4525
|
const r = n;
|
|
@@ -4472,7 +4532,7 @@ function Cu(e, t) {
|
|
|
4472
4532
|
function le(e, t) {
|
|
4473
4533
|
Object.entries(e).forEach(([n, r]) => t(r, n));
|
|
4474
4534
|
}
|
|
4475
|
-
function
|
|
4535
|
+
function Le(e, t) {
|
|
4476
4536
|
return e.indexOf(t) !== -1;
|
|
4477
4537
|
}
|
|
4478
4538
|
function tr(e, t) {
|
|
@@ -4482,7 +4542,7 @@ function tr(e, t) {
|
|
|
4482
4542
|
return r;
|
|
4483
4543
|
}
|
|
4484
4544
|
}
|
|
4485
|
-
var
|
|
4545
|
+
var Aa = class {
|
|
4486
4546
|
constructor() {
|
|
4487
4547
|
this.transfomers = {};
|
|
4488
4548
|
}
|
|
@@ -4490,16 +4550,16 @@ var bu = class {
|
|
|
4490
4550
|
this.transfomers[e.name] = e;
|
|
4491
4551
|
}
|
|
4492
4552
|
findApplicable(e) {
|
|
4493
|
-
return
|
|
4553
|
+
return wa(this.transfomers, (t) => t.isApplicable(e));
|
|
4494
4554
|
}
|
|
4495
4555
|
findByName(e) {
|
|
4496
4556
|
return this.transfomers[e];
|
|
4497
4557
|
}
|
|
4498
4558
|
};
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
var
|
|
4502
|
-
|
|
4559
|
+
m();
|
|
4560
|
+
m();
|
|
4561
|
+
var Ta = (e) => Object.prototype.toString.call(e).slice(8, -1), fo = (e) => typeof e > "u", Oa = (e) => e === null, ye = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, vt = (e) => ye(e) && Object.keys(e).length === 0, G = (e) => Array.isArray(e), Sa = (e) => typeof e == "string", Pa = (e) => typeof e == "number" && !isNaN(e), Da = (e) => typeof e == "boolean", Ia = (e) => e instanceof RegExp, be = (e) => e instanceof Map, Ce = (e) => e instanceof Set, po = (e) => Ta(e) === "Symbol", ka = (e) => e instanceof Date && !isNaN(e.valueOf()), xa = (e) => e instanceof Error, nr = (e) => typeof e == "number" && isNaN(e), Ra = (e) => Da(e) || Oa(e) || fo(e) || Pa(e) || Sa(e) || po(e), La = (e) => typeof e == "bigint", Fa = (e) => e === 1 / 0 || e === -1 / 0, Ma = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Na = (e) => e instanceof URL;
|
|
4562
|
+
m();
|
|
4503
4563
|
var ho = (e) => e.replace(/\./g, "\\."), rt = (e) => e.map(String).map(ho).join("."), ge = (e) => {
|
|
4504
4564
|
const t = [];
|
|
4505
4565
|
let n = "";
|
|
@@ -4518,7 +4578,7 @@ var ho = (e) => e.replace(/\./g, "\\."), rt = (e) => e.map(String).map(ho).join(
|
|
|
4518
4578
|
const r = n;
|
|
4519
4579
|
return t.push(r), t;
|
|
4520
4580
|
};
|
|
4521
|
-
|
|
4581
|
+
m();
|
|
4522
4582
|
function j(e, t, n, r) {
|
|
4523
4583
|
return {
|
|
4524
4584
|
isApplicable: e,
|
|
@@ -4530,9 +4590,9 @@ function j(e, t, n, r) {
|
|
|
4530
4590
|
var _o = [
|
|
4531
4591
|
j(fo, "undefined", () => null, () => {
|
|
4532
4592
|
}),
|
|
4533
|
-
j(
|
|
4534
|
-
j(
|
|
4535
|
-
j(
|
|
4593
|
+
j(La, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
|
|
4594
|
+
j(ka, "Date", (e) => e.toISOString(), (e) => new Date(e)),
|
|
4595
|
+
j(xa, "Error", (e, t) => {
|
|
4536
4596
|
const n = {
|
|
4537
4597
|
name: e.name,
|
|
4538
4598
|
message: e.message
|
|
@@ -4546,22 +4606,22 @@ var _o = [
|
|
|
4546
4606
|
n[r] = e[r];
|
|
4547
4607
|
}), n;
|
|
4548
4608
|
}),
|
|
4549
|
-
j(
|
|
4609
|
+
j(Ia, "regexp", (e) => "" + e, (e) => {
|
|
4550
4610
|
const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
|
|
4551
4611
|
return new RegExp(t, n);
|
|
4552
4612
|
}),
|
|
4553
4613
|
j(
|
|
4554
|
-
|
|
4614
|
+
Ce,
|
|
4555
4615
|
"set",
|
|
4556
4616
|
// (sets only exist in es6+)
|
|
4557
4617
|
// eslint-disable-next-line es5/no-es6-methods
|
|
4558
4618
|
(e) => [...e.values()],
|
|
4559
4619
|
(e) => new Set(e)
|
|
4560
4620
|
),
|
|
4561
|
-
j(
|
|
4562
|
-
j((e) => nr(e) ||
|
|
4621
|
+
j(be, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
|
4622
|
+
j((e) => nr(e) || Fa(e), "number", (e) => nr(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
|
4563
4623
|
j((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
|
4564
|
-
j(
|
|
4624
|
+
j(Na, "URL", (e) => e.toString(), (e) => new URL(e))
|
|
4565
4625
|
];
|
|
4566
4626
|
function Ge(e, t, n, r) {
|
|
4567
4627
|
return {
|
|
@@ -4576,7 +4636,7 @@ var mo = Ge((e, t) => po(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
|
|
|
4576
4636
|
if (!r)
|
|
4577
4637
|
throw new Error("Trying to deserialize unknown symbol");
|
|
4578
4638
|
return r;
|
|
4579
|
-
}),
|
|
4639
|
+
}), Va = [
|
|
4580
4640
|
Int8Array,
|
|
4581
4641
|
Uint8Array,
|
|
4582
4642
|
Int16Array,
|
|
@@ -4586,8 +4646,8 @@ var mo = Ge((e, t) => po(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
|
|
|
4586
4646
|
Float32Array,
|
|
4587
4647
|
Float64Array,
|
|
4588
4648
|
Uint8ClampedArray
|
|
4589
|
-
].reduce((e, t) => (e[t.name] = t, e), {}), go = Ge(
|
|
4590
|
-
const n =
|
|
4649
|
+
].reduce((e, t) => (e[t.name] = t, e), {}), go = Ge(Ma, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
|
|
4650
|
+
const n = Va[t[1]];
|
|
4591
4651
|
if (!n)
|
|
4592
4652
|
throw new Error("Trying to deserialize unknown typed array");
|
|
4593
4653
|
return new n(e);
|
|
@@ -4613,8 +4673,8 @@ var vo = Ge(Eo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
|
4613
4673
|
if (!r)
|
|
4614
4674
|
throw new Error("Trying to deserialize unknown custom value");
|
|
4615
4675
|
return r.deserialize(e);
|
|
4616
|
-
}),
|
|
4617
|
-
const n = tr(
|
|
4676
|
+
}), Ba = [vo, mo, yo, go], rr = (e, t) => {
|
|
4677
|
+
const n = tr(Ba, (o) => o.isApplicable(e, t));
|
|
4618
4678
|
if (n)
|
|
4619
4679
|
return {
|
|
4620
4680
|
value: n.transform(e, t),
|
|
@@ -4626,11 +4686,11 @@ var vo = Ge(Eo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
|
4626
4686
|
value: r.transform(e, t),
|
|
4627
4687
|
type: r.annotation
|
|
4628
4688
|
};
|
|
4629
|
-
},
|
|
4689
|
+
}, bo = {};
|
|
4630
4690
|
_o.forEach((e) => {
|
|
4631
|
-
|
|
4691
|
+
bo[e.annotation] = e;
|
|
4632
4692
|
});
|
|
4633
|
-
var
|
|
4693
|
+
var Ua = (e, t, n) => {
|
|
4634
4694
|
if (G(t))
|
|
4635
4695
|
switch (t[0]) {
|
|
4636
4696
|
case "symbol":
|
|
@@ -4645,13 +4705,13 @@ var Vu = (e, t, n) => {
|
|
|
4645
4705
|
throw new Error("Unknown transformation: " + t);
|
|
4646
4706
|
}
|
|
4647
4707
|
else {
|
|
4648
|
-
const r =
|
|
4708
|
+
const r = bo[t];
|
|
4649
4709
|
if (!r)
|
|
4650
4710
|
throw new Error("Unknown transformation: " + t);
|
|
4651
4711
|
return r.untransform(e, n);
|
|
4652
4712
|
}
|
|
4653
4713
|
};
|
|
4654
|
-
|
|
4714
|
+
m();
|
|
4655
4715
|
var oe = (e, t) => {
|
|
4656
4716
|
if (t > e.size)
|
|
4657
4717
|
throw new Error("index out of bounds");
|
|
@@ -4660,21 +4720,21 @@ var oe = (e, t) => {
|
|
|
4660
4720
|
n.next(), t--;
|
|
4661
4721
|
return n.next().value;
|
|
4662
4722
|
};
|
|
4663
|
-
function
|
|
4664
|
-
if (
|
|
4723
|
+
function Co(e) {
|
|
4724
|
+
if (Le(e, "__proto__"))
|
|
4665
4725
|
throw new Error("__proto__ is not allowed as a property");
|
|
4666
|
-
if (
|
|
4726
|
+
if (Le(e, "prototype"))
|
|
4667
4727
|
throw new Error("prototype is not allowed as a property");
|
|
4668
|
-
if (
|
|
4728
|
+
if (Le(e, "constructor"))
|
|
4669
4729
|
throw new Error("constructor is not allowed as a property");
|
|
4670
4730
|
}
|
|
4671
|
-
var
|
|
4672
|
-
|
|
4731
|
+
var Ha = (e, t) => {
|
|
4732
|
+
Co(t);
|
|
4673
4733
|
for (let n = 0; n < t.length; n++) {
|
|
4674
4734
|
const r = t[n];
|
|
4675
|
-
if (
|
|
4735
|
+
if (Ce(e))
|
|
4676
4736
|
e = oe(e, +r);
|
|
4677
|
-
else if (
|
|
4737
|
+
else if (be(e)) {
|
|
4678
4738
|
const o = +r, i = +t[++n] == 0 ? "key" : "value", s = oe(e, o);
|
|
4679
4739
|
switch (i) {
|
|
4680
4740
|
case "key":
|
|
@@ -4689,23 +4749,23 @@ var Bu = (e, t) => {
|
|
|
4689
4749
|
}
|
|
4690
4750
|
return e;
|
|
4691
4751
|
}, yt = (e, t, n) => {
|
|
4692
|
-
if (
|
|
4752
|
+
if (Co(t), t.length === 0)
|
|
4693
4753
|
return n(e);
|
|
4694
4754
|
let r = e;
|
|
4695
4755
|
for (let i = 0; i < t.length - 1; i++) {
|
|
4696
4756
|
const s = t[i];
|
|
4697
4757
|
if (G(r)) {
|
|
4698
|
-
const
|
|
4699
|
-
r = r[
|
|
4758
|
+
const u = +s;
|
|
4759
|
+
r = r[u];
|
|
4700
4760
|
} else if (ye(r))
|
|
4701
4761
|
r = r[s];
|
|
4702
|
-
else if (
|
|
4703
|
-
const
|
|
4704
|
-
r = oe(r,
|
|
4705
|
-
} else if (
|
|
4762
|
+
else if (Ce(r)) {
|
|
4763
|
+
const u = +s;
|
|
4764
|
+
r = oe(r, u);
|
|
4765
|
+
} else if (be(r)) {
|
|
4706
4766
|
if (i === t.length - 2)
|
|
4707
4767
|
break;
|
|
4708
|
-
const
|
|
4768
|
+
const a = +s, l = +t[++i] == 0 ? "key" : "value", c = oe(r, a);
|
|
4709
4769
|
switch (l) {
|
|
4710
4770
|
case "key":
|
|
4711
4771
|
r = c;
|
|
@@ -4717,16 +4777,16 @@ var Bu = (e, t) => {
|
|
|
4717
4777
|
}
|
|
4718
4778
|
}
|
|
4719
4779
|
const o = t[t.length - 1];
|
|
4720
|
-
if (G(r) ? r[+o] = n(r[+o]) : ye(r) && (r[o] = n(r[o])),
|
|
4780
|
+
if (G(r) ? r[+o] = n(r[+o]) : ye(r) && (r[o] = n(r[o])), Ce(r)) {
|
|
4721
4781
|
const i = oe(r, +o), s = n(i);
|
|
4722
4782
|
i !== s && (r.delete(i), r.add(s));
|
|
4723
4783
|
}
|
|
4724
|
-
if (
|
|
4784
|
+
if (be(r)) {
|
|
4725
4785
|
const i = +t[t.length - 2], s = oe(r, i);
|
|
4726
4786
|
switch (+o == 0 ? "key" : "value") {
|
|
4727
4787
|
case "key": {
|
|
4728
|
-
const
|
|
4729
|
-
r.set(
|
|
4788
|
+
const a = n(s);
|
|
4789
|
+
r.set(a, r.get(s)), a !== s && r.delete(s);
|
|
4730
4790
|
break;
|
|
4731
4791
|
}
|
|
4732
4792
|
case "value": {
|
|
@@ -4737,26 +4797,26 @@ var Bu = (e, t) => {
|
|
|
4737
4797
|
}
|
|
4738
4798
|
return e;
|
|
4739
4799
|
};
|
|
4740
|
-
function
|
|
4800
|
+
function bt(e, t, n = []) {
|
|
4741
4801
|
if (!e)
|
|
4742
4802
|
return;
|
|
4743
4803
|
if (!G(e)) {
|
|
4744
|
-
le(e, (i, s) =>
|
|
4804
|
+
le(e, (i, s) => bt(i, t, [...n, ...ge(s)]));
|
|
4745
4805
|
return;
|
|
4746
4806
|
}
|
|
4747
4807
|
const [r, o] = e;
|
|
4748
4808
|
o && le(o, (i, s) => {
|
|
4749
|
-
|
|
4809
|
+
bt(i, t, [...n, ...ge(s)]);
|
|
4750
4810
|
}), t(r, n);
|
|
4751
4811
|
}
|
|
4752
|
-
function
|
|
4753
|
-
return
|
|
4754
|
-
e = yt(e, o, (i) =>
|
|
4812
|
+
function ja(e, t, n) {
|
|
4813
|
+
return bt(t, (r, o) => {
|
|
4814
|
+
e = yt(e, o, (i) => Ua(i, r, n));
|
|
4755
4815
|
}), e;
|
|
4756
4816
|
}
|
|
4757
|
-
function
|
|
4817
|
+
function za(e, t) {
|
|
4758
4818
|
function n(r, o) {
|
|
4759
|
-
const i =
|
|
4819
|
+
const i = Ha(e, ge(o));
|
|
4760
4820
|
r.map(ge).forEach((s) => {
|
|
4761
4821
|
e = yt(e, s, () => i);
|
|
4762
4822
|
});
|
|
@@ -4770,79 +4830,79 @@ function Hu(e, t) {
|
|
|
4770
4830
|
le(t, n);
|
|
4771
4831
|
return e;
|
|
4772
4832
|
}
|
|
4773
|
-
var
|
|
4774
|
-
function
|
|
4833
|
+
var $a = (e, t) => ye(e) || G(e) || be(e) || Ce(e) || Eo(e, t);
|
|
4834
|
+
function Ka(e, t, n) {
|
|
4775
4835
|
const r = n.get(e);
|
|
4776
4836
|
r ? r.push(t) : n.set(e, [t]);
|
|
4777
4837
|
}
|
|
4778
|
-
function
|
|
4838
|
+
function Wa(e, t) {
|
|
4779
4839
|
const n = {};
|
|
4780
4840
|
let r;
|
|
4781
4841
|
return e.forEach((o) => {
|
|
4782
4842
|
if (o.length <= 1)
|
|
4783
4843
|
return;
|
|
4784
|
-
t || (o = o.map((
|
|
4844
|
+
t || (o = o.map((u) => u.map(String)).sort((u, a) => u.length - a.length));
|
|
4785
4845
|
const [i, ...s] = o;
|
|
4786
4846
|
i.length === 0 ? r = s.map(rt) : n[rt(i)] = s.map(rt);
|
|
4787
4847
|
}), r ? vt(n) ? [r] : [r, n] : vt(n) ? void 0 : n;
|
|
4788
4848
|
}
|
|
4789
4849
|
var wo = (e, t, n, r, o = [], i = [], s = /* @__PURE__ */ new Map()) => {
|
|
4790
|
-
var
|
|
4791
|
-
const
|
|
4792
|
-
if (!
|
|
4793
|
-
|
|
4850
|
+
var u;
|
|
4851
|
+
const a = Ra(e);
|
|
4852
|
+
if (!a) {
|
|
4853
|
+
Ka(e, o, t);
|
|
4794
4854
|
const h = s.get(e);
|
|
4795
4855
|
if (h)
|
|
4796
4856
|
return r ? {
|
|
4797
4857
|
transformedValue: null
|
|
4798
4858
|
} : h;
|
|
4799
4859
|
}
|
|
4800
|
-
if (
|
|
4860
|
+
if (!$a(e, n)) {
|
|
4801
4861
|
const h = rr(e, n), v = h ? {
|
|
4802
4862
|
transformedValue: h.value,
|
|
4803
4863
|
annotations: [h.type]
|
|
4804
4864
|
} : {
|
|
4805
4865
|
transformedValue: e
|
|
4806
4866
|
};
|
|
4807
|
-
return
|
|
4867
|
+
return a || s.set(e, v), v;
|
|
4808
4868
|
}
|
|
4809
|
-
if (
|
|
4869
|
+
if (Le(i, e))
|
|
4810
4870
|
return {
|
|
4811
4871
|
transformedValue: null
|
|
4812
4872
|
};
|
|
4813
|
-
const l = rr(e, n), c = (
|
|
4873
|
+
const l = rr(e, n), c = (u = l?.value) != null ? u : e, f = G(c) ? [] : {}, _ = {};
|
|
4814
4874
|
le(c, (h, v) => {
|
|
4815
4875
|
if (v === "__proto__" || v === "constructor" || v === "prototype")
|
|
4816
4876
|
throw new Error(`Detected property ${v}. This is a prototype pollution risk, please remove it from your object.`);
|
|
4817
4877
|
const p = wo(h, t, n, r, [...o, v], [...i, e], s);
|
|
4818
|
-
f[v] = p.transformedValue, G(p.annotations) ?
|
|
4819
|
-
|
|
4878
|
+
f[v] = p.transformedValue, G(p.annotations) ? _[v] = p.annotations : ye(p.annotations) && le(p.annotations, (g, b) => {
|
|
4879
|
+
_[ho(v) + "." + b] = g;
|
|
4820
4880
|
});
|
|
4821
4881
|
});
|
|
4822
|
-
const d = vt(
|
|
4882
|
+
const d = vt(_) ? {
|
|
4823
4883
|
transformedValue: f,
|
|
4824
4884
|
annotations: l ? [l.type] : void 0
|
|
4825
4885
|
} : {
|
|
4826
4886
|
transformedValue: f,
|
|
4827
|
-
annotations: l ? [l.type,
|
|
4887
|
+
annotations: l ? [l.type, _] : _
|
|
4828
4888
|
};
|
|
4829
|
-
return
|
|
4889
|
+
return a || s.set(e, d), d;
|
|
4830
4890
|
};
|
|
4831
|
-
|
|
4832
|
-
|
|
4891
|
+
m();
|
|
4892
|
+
m();
|
|
4833
4893
|
function Ao(e) {
|
|
4834
4894
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
4835
4895
|
}
|
|
4836
4896
|
function or(e) {
|
|
4837
4897
|
return Ao(e) === "Array";
|
|
4838
4898
|
}
|
|
4839
|
-
function
|
|
4899
|
+
function Ga(e) {
|
|
4840
4900
|
if (Ao(e) !== "Object")
|
|
4841
4901
|
return !1;
|
|
4842
4902
|
const t = Object.getPrototypeOf(e);
|
|
4843
4903
|
return !!t && t.constructor === Object && t === Object.prototype;
|
|
4844
4904
|
}
|
|
4845
|
-
function
|
|
4905
|
+
function Ya(e, t, n, r, o) {
|
|
4846
4906
|
const i = {}.propertyIsEnumerable.call(r, t) ? "enumerable" : "nonenumerable";
|
|
4847
4907
|
i === "enumerable" && (e[t] = n), o && i === "nonenumerable" && Object.defineProperty(e, t, {
|
|
4848
4908
|
value: n,
|
|
@@ -4851,17 +4911,17 @@ function Wu(e, t, n, r, o) {
|
|
|
4851
4911
|
configurable: !0
|
|
4852
4912
|
});
|
|
4853
4913
|
}
|
|
4854
|
-
function
|
|
4914
|
+
function Ct(e, t = {}) {
|
|
4855
4915
|
if (or(e))
|
|
4856
|
-
return e.map((o) =>
|
|
4857
|
-
if (!
|
|
4916
|
+
return e.map((o) => Ct(o, t));
|
|
4917
|
+
if (!Ga(e))
|
|
4858
4918
|
return e;
|
|
4859
4919
|
const n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
|
|
4860
4920
|
return [...n, ...r].reduce((o, i) => {
|
|
4861
4921
|
if (or(t.props) && !t.props.includes(i))
|
|
4862
4922
|
return o;
|
|
4863
|
-
const s = e[i],
|
|
4864
|
-
return
|
|
4923
|
+
const s = e[i], u = Ct(s, t);
|
|
4924
|
+
return Ya(o, i, u, e, t.nonenumerable), o;
|
|
4865
4925
|
}, {});
|
|
4866
4926
|
}
|
|
4867
4927
|
var S = class {
|
|
@@ -4869,10 +4929,10 @@ var S = class {
|
|
|
4869
4929
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
4870
4930
|
*/
|
|
4871
4931
|
constructor({ dedupe: e = !1 } = {}) {
|
|
4872
|
-
this.classRegistry = new
|
|
4932
|
+
this.classRegistry = new ba(), this.symbolRegistry = new co((t) => {
|
|
4873
4933
|
var n;
|
|
4874
4934
|
return (n = t.description) != null ? n : "";
|
|
4875
|
-
}), this.customTransformerRegistry = new
|
|
4935
|
+
}), this.customTransformerRegistry = new Aa(), this.allowedErrorProps = [], this.dedupe = e;
|
|
4876
4936
|
}
|
|
4877
4937
|
serialize(e) {
|
|
4878
4938
|
const t = /* @__PURE__ */ new Map(), n = wo(e, t, this, this.dedupe), r = {
|
|
@@ -4882,7 +4942,7 @@ var S = class {
|
|
|
4882
4942
|
...r.meta,
|
|
4883
4943
|
values: n.annotations
|
|
4884
4944
|
});
|
|
4885
|
-
const o =
|
|
4945
|
+
const o = Wa(t, this.dedupe);
|
|
4886
4946
|
return o && (r.meta = {
|
|
4887
4947
|
...r.meta,
|
|
4888
4948
|
referentialEqualities: o
|
|
@@ -4890,8 +4950,8 @@ var S = class {
|
|
|
4890
4950
|
}
|
|
4891
4951
|
deserialize(e) {
|
|
4892
4952
|
const { json: t, meta: n } = e;
|
|
4893
|
-
let r =
|
|
4894
|
-
return n?.values && (r =
|
|
4953
|
+
let r = Ct(t);
|
|
4954
|
+
return n?.values && (r = ja(r, n.values, this)), n?.referentialEqualities && (r = za(r, n.referentialEqualities)), r;
|
|
4895
4955
|
}
|
|
4896
4956
|
stringify(e) {
|
|
4897
4957
|
return JSON.stringify(this.serialize(e));
|
|
@@ -4924,33 +4984,33 @@ S.registerClass = S.defaultInstance.registerClass.bind(S.defaultInstance);
|
|
|
4924
4984
|
S.registerSymbol = S.defaultInstance.registerSymbol.bind(S.defaultInstance);
|
|
4925
4985
|
S.registerCustom = S.defaultInstance.registerCustom.bind(S.defaultInstance);
|
|
4926
4986
|
S.allowErrorProps = S.defaultInstance.allowErrorProps.bind(S.defaultInstance);
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4987
|
+
m();
|
|
4988
|
+
m();
|
|
4989
|
+
m();
|
|
4990
|
+
m();
|
|
4991
|
+
m();
|
|
4992
|
+
m();
|
|
4993
|
+
m();
|
|
4994
|
+
m();
|
|
4995
|
+
m();
|
|
4996
|
+
m();
|
|
4997
|
+
m();
|
|
4998
|
+
m();
|
|
4999
|
+
m();
|
|
5000
|
+
m();
|
|
5001
|
+
m();
|
|
5002
|
+
m();
|
|
5003
|
+
m();
|
|
5004
|
+
m();
|
|
5005
|
+
m();
|
|
5006
|
+
m();
|
|
5007
|
+
m();
|
|
5008
|
+
m();
|
|
5009
|
+
m();
|
|
4950
5010
|
var ir, sr;
|
|
4951
5011
|
(sr = (ir = y).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__) != null || (ir.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ = []);
|
|
4952
|
-
var
|
|
4953
|
-
(
|
|
5012
|
+
var ur, ar;
|
|
5013
|
+
(ar = (ur = y).__VUE_DEVTOOLS_KIT_RPC_CLIENT__) != null || (ur.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = null);
|
|
4954
5014
|
var lr, cr;
|
|
4955
5015
|
(cr = (lr = y).__VUE_DEVTOOLS_KIT_RPC_SERVER__) != null || (lr.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = null);
|
|
4956
5016
|
var fr, dr;
|
|
@@ -4959,14 +5019,14 @@ var pr, hr;
|
|
|
4959
5019
|
(hr = (pr = y).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__) != null || (pr.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = null);
|
|
4960
5020
|
var _r, mr;
|
|
4961
5021
|
(mr = (_r = y).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__) != null || (_r.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ = null);
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
function
|
|
5022
|
+
m();
|
|
5023
|
+
m();
|
|
5024
|
+
m();
|
|
5025
|
+
m();
|
|
5026
|
+
m();
|
|
5027
|
+
m();
|
|
5028
|
+
m();
|
|
5029
|
+
function qa(e, t) {
|
|
4970
5030
|
const n = `▲ ■ ●${e}`;
|
|
4971
5031
|
typeof gr == "function" ? gr(n, t) : console.log(n);
|
|
4972
5032
|
}
|
|
@@ -4976,21 +5036,22 @@ function gr(e, t) {
|
|
|
4976
5036
|
function Bt(e) {
|
|
4977
5037
|
let t = 0;
|
|
4978
5038
|
return e.traverse((n) => {
|
|
4979
|
-
if (
|
|
4980
|
-
const r = n.geometry, o = r.attributes.position.count * 3 * Float32Array.BYTES_PER_ELEMENT, i = r.index ? r.index.count * Uint32Array.BYTES_PER_ELEMENT : 0, s = r.attributes.normal ? r.attributes.normal.count * 3 * Float32Array.BYTES_PER_ELEMENT : 0,
|
|
4981
|
-
t +=
|
|
5039
|
+
if ($e(n) && n.type !== "HightlightMesh") {
|
|
5040
|
+
const r = n.geometry, o = r.attributes.position.count * 3 * Float32Array.BYTES_PER_ELEMENT, i = r.index ? r.index.count * Uint32Array.BYTES_PER_ELEMENT : 0, s = r.attributes.normal ? r.attributes.normal.count * 3 * Float32Array.BYTES_PER_ELEMENT : 0, u = r.attributes.uv ? r.attributes.uv.count * 2 * Float32Array.BYTES_PER_ELEMENT : 0, a = o + i + s + u;
|
|
5041
|
+
t += a;
|
|
4982
5042
|
}
|
|
4983
5043
|
}), t;
|
|
4984
5044
|
}
|
|
4985
5045
|
function Er(e, t, n) {
|
|
4986
5046
|
e.push(t), e.length > n && e.shift();
|
|
4987
5047
|
}
|
|
4988
|
-
function
|
|
5048
|
+
function Xa(e) {
|
|
4989
5049
|
return (e / 1024).toFixed(2);
|
|
4990
5050
|
}
|
|
4991
|
-
function
|
|
5051
|
+
function Qa(e) {
|
|
4992
5052
|
if (!e)
|
|
4993
5053
|
return;
|
|
5054
|
+
typeof window < "u" && !window.__TRES__DEVTOOLS__ && (window.__TRES__DEVTOOLS__ = new zs());
|
|
4994
5055
|
const t = {
|
|
4995
5056
|
maxFrames: 160,
|
|
4996
5057
|
fps: {
|
|
@@ -5003,14 +5064,11 @@ function qu(e) {
|
|
|
5003
5064
|
accumulator: []
|
|
5004
5065
|
}
|
|
5005
5066
|
}, n = 100, r = di({ every: n }), { isSupported: o, memory: i } = pi({ interval: n }), s = 160;
|
|
5006
|
-
let
|
|
5007
|
-
const l = 1, c = ({ timestamp:
|
|
5008
|
-
e.scene.value && (t.memory.allocatedMem = Bt(e.scene.value)),
|
|
5009
|
-
}, { pause: f } = Tr(({ delta:
|
|
5010
|
-
window.__TRES__DEVTOOLS__ && (c({ timestamp: performance.now() }),
|
|
5011
|
-
context: e,
|
|
5012
|
-
performance: t
|
|
5013
|
-
}), u = 0));
|
|
5067
|
+
let u = performance.now(), a = 0;
|
|
5068
|
+
const l = 1, c = ({ timestamp: _ }) => {
|
|
5069
|
+
e.scene.value && (t.memory.allocatedMem = Bt(e.scene.value)), _ - u >= n && (u = _, Er(t.fps.accumulator, r.value, s), t.fps.value = r.value, o.value && i.value?.usedJSHeapSize && (Er(t.memory.accumulator, i.value.usedJSHeapSize / 1024 / 1024, s), t.memory.accumulator.length > 0 && (t.memory.currentMem = t.memory.accumulator.reduce((d, h) => d + h, 0) / t.memory.accumulator.length)));
|
|
5070
|
+
}, { pause: f } = Tr(({ delta: _ }) => {
|
|
5071
|
+
window.__TRES__DEVTOOLS__ && (c({ timestamp: performance.now() }), a += _, a >= l && (window.__TRES__DEVTOOLS__.send("context", e), window.__TRES__DEVTOOLS__.send("performance", t), a = 0));
|
|
5014
5072
|
}, { immediate: !0 });
|
|
5015
5073
|
ie(() => {
|
|
5016
5074
|
f();
|
|
@@ -5025,7 +5083,7 @@ const To = (e, t) => {
|
|
|
5025
5083
|
return r;
|
|
5026
5084
|
}
|
|
5027
5085
|
};
|
|
5028
|
-
class
|
|
5086
|
+
class Za extends vr.Mesh {
|
|
5029
5087
|
type = "HightlightMesh";
|
|
5030
5088
|
createTime;
|
|
5031
5089
|
constructor(...t) {
|
|
@@ -5050,7 +5108,7 @@ const Oo = (e) => {
|
|
|
5050
5108
|
});
|
|
5051
5109
|
const n = Bt(e);
|
|
5052
5110
|
return n > 0 && t.tags.push({
|
|
5053
|
-
label: `${
|
|
5111
|
+
label: `${Xa(n)} KB`,
|
|
5054
5112
|
textColor: 15707189,
|
|
5055
5113
|
backgroundColor: 16775644,
|
|
5056
5114
|
tooltip: "Memory usage"
|
|
@@ -5076,7 +5134,7 @@ const Oo = (e) => {
|
|
|
5076
5134
|
tooltip: "Position"
|
|
5077
5135
|
})), t;
|
|
5078
5136
|
};
|
|
5079
|
-
function
|
|
5137
|
+
function Ja(e, t, n = "") {
|
|
5080
5138
|
const r = n ? `${n}.${e}` : e;
|
|
5081
5139
|
return {
|
|
5082
5140
|
id: `context-${t}-${r}`,
|
|
@@ -5096,27 +5154,27 @@ function So(e, t, n = "") {
|
|
|
5096
5154
|
function wt(e, t, n = /* @__PURE__ */ new WeakSet(), r = 0, o = 4, i, s = "") {
|
|
5097
5155
|
if (r >= o || !e || n.has(e))
|
|
5098
5156
|
return;
|
|
5099
|
-
const
|
|
5100
|
-
n.add(e), Object.entries(e).forEach(([
|
|
5101
|
-
if (
|
|
5157
|
+
const u = r === 0 ? e?.scene?.value?.uuid || Math.random().toString(36).slice(2, 11) : i;
|
|
5158
|
+
n.add(e), Object.entries(e).forEach(([a, l]) => {
|
|
5159
|
+
if (a.startsWith("_") || typeof l == "function")
|
|
5102
5160
|
return;
|
|
5103
|
-
const c = s ? `${s}.${
|
|
5104
|
-
|
|
5161
|
+
const c = s ? `${s}.${a}` : a, f = Ja(a, u, s);
|
|
5162
|
+
a !== "scene" && (me(l) ? (f.tags.push({
|
|
5105
5163
|
label: `Ref<${typeof l.value}>`,
|
|
5106
5164
|
textColor: 4372611,
|
|
5107
5165
|
backgroundColor: 15793395
|
|
5108
|
-
}), l.value && typeof l.value == "object" ? wt(l.value, f, n, r + 1, o,
|
|
5166
|
+
}), l.value && typeof l.value == "object" ? wt(l.value, f, n, r + 1, o, u, c) : f.label = `${a}: ${JSON.stringify(l.value)}`) : l && typeof l == "object" && !Array.isArray(l) ? Object.keys(l).length > 0 ? n.has(l) ? f.tags.push({
|
|
5109
5167
|
label: "Circular",
|
|
5110
5168
|
textColor: 16711680,
|
|
5111
5169
|
backgroundColor: 16773360
|
|
5112
|
-
}) : wt(l, f, n, r + 1, o,
|
|
5170
|
+
}) : wt(l, f, n, r + 1, o, u, c) : f.label = `${a}: {}` : Array.isArray(l) ? (f.label = `${a}: Array(${l.length})`, f.tags.push({
|
|
5113
5171
|
label: `length: ${l.length}`,
|
|
5114
5172
|
textColor: 9738662,
|
|
5115
5173
|
backgroundColor: 16316922
|
|
5116
|
-
})) : f.label = `${
|
|
5174
|
+
})) : f.label = `${a}: ${JSON.stringify(l)}`, t.children.push(f));
|
|
5117
5175
|
});
|
|
5118
5176
|
}
|
|
5119
|
-
const
|
|
5177
|
+
const el = (e) => (t) => {
|
|
5120
5178
|
if (t.inspectorId === we) {
|
|
5121
5179
|
const n = Oo(e.scene.value);
|
|
5122
5180
|
So(e.scene.value, n, t.filter);
|
|
@@ -5128,7 +5186,7 @@ const Qu = (e) => (t) => {
|
|
|
5128
5186
|
};
|
|
5129
5187
|
wt(e, r), t.rootNodes = [n, r];
|
|
5130
5188
|
}
|
|
5131
|
-
},
|
|
5189
|
+
}, tl = (e, { highlightMesh: t, prevInstance: n }) => (r) => {
|
|
5132
5190
|
if (r.inspectorId !== we)
|
|
5133
5191
|
return;
|
|
5134
5192
|
const o = new Ar({
|
|
@@ -5145,24 +5203,24 @@ const Qu = (e) => (t) => {
|
|
|
5145
5203
|
const i = r.nodeId.match(/^scene-(.+)$/), s = i ? i[1] : null;
|
|
5146
5204
|
if (!s)
|
|
5147
5205
|
return;
|
|
5148
|
-
const [
|
|
5149
|
-
if (!
|
|
5206
|
+
const [u] = e.scene.value.getObjectsByProperty("uuid", s);
|
|
5207
|
+
if (!u)
|
|
5150
5208
|
return;
|
|
5151
|
-
if (n && t && t.parent && n.remove(t),
|
|
5152
|
-
const
|
|
5153
|
-
|
|
5209
|
+
if (n && t && t.parent && n.remove(t), $e(u)) {
|
|
5210
|
+
const a = new Za(u.geometry.clone(), o);
|
|
5211
|
+
u.add(a), t = a, n = u;
|
|
5154
5212
|
}
|
|
5155
5213
|
if (r.state = {
|
|
5156
|
-
object: Object.entries(
|
|
5157
|
-
},
|
|
5158
|
-
const
|
|
5214
|
+
object: Object.entries(u).map(([a, l]) => a === "children" ? { key: a, value: l.filter((c) => c.type !== "HightlightMesh") } : { key: a, value: l, editable: !0 }).filter(({ key: a }) => a !== "parent")
|
|
5215
|
+
}, Fr(u)) {
|
|
5216
|
+
const a = {
|
|
5159
5217
|
...r.state,
|
|
5160
5218
|
state: [
|
|
5161
5219
|
{
|
|
5162
5220
|
key: "Scene Info",
|
|
5163
5221
|
value: {
|
|
5164
|
-
objects:
|
|
5165
|
-
memory: Bt(
|
|
5222
|
+
objects: u.children.length,
|
|
5223
|
+
memory: Bt(u),
|
|
5166
5224
|
calls: e.renderer.instance.info.render.calls,
|
|
5167
5225
|
triangles: e.renderer.instance.info.render.triangles,
|
|
5168
5226
|
points: e.renderer.instance.info.render.points,
|
|
@@ -5171,13 +5229,13 @@ const Qu = (e) => (t) => {
|
|
|
5171
5229
|
}
|
|
5172
5230
|
]
|
|
5173
5231
|
};
|
|
5174
|
-
"programs" in e.renderer.instance.info &&
|
|
5232
|
+
"programs" in e.renderer.instance.info && a.state.push({
|
|
5175
5233
|
key: "Programs",
|
|
5176
5234
|
value: e.renderer.instance.info.programs?.map((l) => ({
|
|
5177
5235
|
...l,
|
|
5178
5236
|
programName: l.name
|
|
5179
5237
|
}))
|
|
5180
|
-
}), r.state =
|
|
5238
|
+
}), r.state = a;
|
|
5181
5239
|
}
|
|
5182
5240
|
} else if (r.nodeId.includes("context")) {
|
|
5183
5241
|
const i = r.nodeId.match(/^context-([^-]+(?:-[^-]+)*)-(.+)$/), s = i ? i[2] : "context";
|
|
@@ -5191,15 +5249,15 @@ const Qu = (e) => (t) => {
|
|
|
5191
5249
|
};
|
|
5192
5250
|
return;
|
|
5193
5251
|
}
|
|
5194
|
-
const
|
|
5195
|
-
let
|
|
5196
|
-
for (const l of
|
|
5197
|
-
if (!
|
|
5252
|
+
const u = s.split(".");
|
|
5253
|
+
let a = e;
|
|
5254
|
+
for (const l of u) {
|
|
5255
|
+
if (!a || typeof a != "object")
|
|
5198
5256
|
break;
|
|
5199
|
-
|
|
5257
|
+
a = me(a[l]) ? a[l].value : a[l];
|
|
5200
5258
|
}
|
|
5201
|
-
|
|
5202
|
-
object: Object.entries(
|
|
5259
|
+
a !== void 0 && (r.state = {
|
|
5260
|
+
object: Object.entries(a).filter(([l]) => !l.startsWith("_") && l !== "parent").map(([l, c]) => me(c) ? {
|
|
5203
5261
|
key: l,
|
|
5204
5262
|
value: c.value,
|
|
5205
5263
|
editable: !1
|
|
@@ -5218,31 +5276,31 @@ const Qu = (e) => (t) => {
|
|
|
5218
5276
|
})
|
|
5219
5277
|
});
|
|
5220
5278
|
}
|
|
5221
|
-
},
|
|
5279
|
+
}, nl = (e, t, n, r) => {
|
|
5222
5280
|
const o = To(e, t);
|
|
5223
5281
|
if (!o) {
|
|
5224
5282
|
console.warn("Object with UUID not found in the scene.");
|
|
5225
5283
|
return;
|
|
5226
5284
|
}
|
|
5227
5285
|
let i = o;
|
|
5228
|
-
for (let
|
|
5229
|
-
if (i[n[
|
|
5230
|
-
i = i[n[
|
|
5286
|
+
for (let u = 0; u < n.length - 1; u++)
|
|
5287
|
+
if (i[n[u]] !== void 0)
|
|
5288
|
+
i = i[n[u]];
|
|
5231
5289
|
else {
|
|
5232
5290
|
console.warn(`Property path is not valid: ${n.join(".")}`);
|
|
5233
5291
|
return;
|
|
5234
5292
|
}
|
|
5235
5293
|
const s = n[n.length - 1];
|
|
5236
5294
|
i[s] !== void 0 ? i[s] = r : console.warn(`Property path is not valid: ${n.join(".")}`);
|
|
5237
|
-
},
|
|
5295
|
+
}, rl = (e) => (t) => {
|
|
5238
5296
|
if (t.inspectorId === we && t.nodeId.includes("scene")) {
|
|
5239
5297
|
const n = t.nodeId.match(/^scene-(.+)$/), r = n ? n[1] : null;
|
|
5240
5298
|
if (!r)
|
|
5241
5299
|
return;
|
|
5242
|
-
|
|
5300
|
+
nl(e.scene.value, r, t.path, t.state.value);
|
|
5243
5301
|
}
|
|
5244
5302
|
}, we = "tres:inspector";
|
|
5245
|
-
function
|
|
5303
|
+
function ol(e, t) {
|
|
5246
5304
|
const n = {
|
|
5247
5305
|
id: "dev.esm.tres",
|
|
5248
5306
|
label: "TresJS 🪐",
|
|
@@ -5251,10 +5309,10 @@ function nl(e, t) {
|
|
|
5251
5309
|
homepage: "https://docs.tresjs.org",
|
|
5252
5310
|
app: e
|
|
5253
5311
|
}, r = null, o = null;
|
|
5254
|
-
|
|
5312
|
+
Qa(t), da(
|
|
5255
5313
|
n,
|
|
5256
5314
|
(i) => {
|
|
5257
|
-
typeof i.now != "function" &&
|
|
5315
|
+
typeof i.now != "function" && qa(
|
|
5258
5316
|
"You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."
|
|
5259
5317
|
), i.addInspector({
|
|
5260
5318
|
id: we,
|
|
@@ -5265,14 +5323,14 @@ function nl(e, t) {
|
|
|
5265
5323
|
i.sendInspectorTree(we);
|
|
5266
5324
|
}, 1e3), setInterval(() => {
|
|
5267
5325
|
i.notifyComponentUpdate();
|
|
5268
|
-
}, 5e3), i.on.getInspectorTree(
|
|
5326
|
+
}, 5e3), i.on.getInspectorTree(el(t)), i.on.getInspectorState(tl(t, {
|
|
5269
5327
|
highlightMesh: r,
|
|
5270
5328
|
prevInstance: o
|
|
5271
|
-
})), i.on.editInspectorState(
|
|
5329
|
+
})), i.on.editInspectorState(rl(t));
|
|
5272
5330
|
}
|
|
5273
5331
|
);
|
|
5274
5332
|
}
|
|
5275
|
-
const
|
|
5333
|
+
const il = ["data-scene", "data-tres"], sl = /* @__PURE__ */ ot({
|
|
5276
5334
|
__name: "TresCanvas",
|
|
5277
5335
|
props: {
|
|
5278
5336
|
camera: {},
|
|
@@ -5302,43 +5360,43 @@ const rl = ["data-scene", "data-tres"], ol = /* @__PURE__ */ ot({
|
|
|
5302
5360
|
},
|
|
5303
5361
|
emits: ["ready", "pointermissed", "render", "beforeLoop", "loop", "click", "contextmenu", "pointermove", "pointerenter", "pointerleave", "pointerover", "pointerout", "dblclick", "pointerdown", "pointerup", "pointercancel", "lostpointercapture", "wheel"],
|
|
5304
5362
|
setup(e, { expose: t, emit: n }) {
|
|
5305
|
-
const r = e, o = n, i = ko(), s = Ae(),
|
|
5363
|
+
const r = e, o = n, i = ko(), s = Ae(), u = it(new yr()), a = $t();
|
|
5306
5364
|
pt(vr);
|
|
5307
5365
|
const l = (h, v = !1) => ot({
|
|
5308
5366
|
setup() {
|
|
5309
|
-
const p =
|
|
5310
|
-
p && (p.app =
|
|
5367
|
+
const p = $t()?.appContext;
|
|
5368
|
+
p && (p.app = a?.appContext.app);
|
|
5311
5369
|
const g = {};
|
|
5312
|
-
function C
|
|
5313
|
-
|
|
5370
|
+
function b(C) {
|
|
5371
|
+
C && (C.parent && b(C.parent), C.provides && Object.assign(g, C.provides));
|
|
5314
5372
|
}
|
|
5315
|
-
return
|
|
5316
|
-
qe(
|
|
5317
|
-
})), qe(
|
|
5373
|
+
return a?.parent && r.enableProvideBridge && (b(a.parent), Reflect.ownKeys(g).forEach((C) => {
|
|
5374
|
+
qe(C, g[C]);
|
|
5375
|
+
})), qe(Ls, h), qe("extend", pt), typeof window < "u" && p?.app && ol(p?.app, h), () => Wt(No, null, v ? [] : i.default());
|
|
5318
5376
|
}
|
|
5319
5377
|
}), c = (h, v = !1) => {
|
|
5320
|
-
const p = l(h, v), { render: g } =
|
|
5321
|
-
g(Wt(p),
|
|
5378
|
+
const p = l(h, v), { render: g } = Mo(Hs(h));
|
|
5379
|
+
g(Wt(p), u.value);
|
|
5322
5380
|
}, f = (h, v = !1) => {
|
|
5323
|
-
|
|
5381
|
+
Ne(h.scene.value), v && (h.renderer.instance.dispose(), h.renderer.instance instanceof br && (h.renderer.instance.renderLists.dispose(), h.renderer.instance.forceContextLoss())), u.value.__tres = {
|
|
5324
5382
|
root: h
|
|
5325
5383
|
};
|
|
5326
|
-
},
|
|
5327
|
-
t({ context:
|
|
5384
|
+
}, _ = it(null);
|
|
5385
|
+
t({ context: _, dispose: () => f(_.value, !0) });
|
|
5328
5386
|
const d = () => {
|
|
5329
|
-
f(
|
|
5387
|
+
f(_.value), c(_.value, !0);
|
|
5330
5388
|
};
|
|
5331
5389
|
return Kt(() => {
|
|
5332
5390
|
const h = s;
|
|
5333
|
-
|
|
5334
|
-
scene:
|
|
5391
|
+
_.value = Fs({
|
|
5392
|
+
scene: u.value,
|
|
5335
5393
|
canvas: h,
|
|
5336
5394
|
windowSize: r.windowSize ?? !1,
|
|
5337
5395
|
rendererOptions: r
|
|
5338
5396
|
});
|
|
5339
|
-
const { camera: v, renderer: p } =
|
|
5340
|
-
c(
|
|
5341
|
-
const
|
|
5397
|
+
const { camera: v, renderer: p } = _.value, { registerCamera: g, cameras: b, activeCamera: C, deregisterCamera: P } = v;
|
|
5398
|
+
c(_.value);
|
|
5399
|
+
const M = () => {
|
|
5342
5400
|
const A = new qo(
|
|
5343
5401
|
45,
|
|
5344
5402
|
window.innerWidth / window.innerHeight,
|
|
@@ -5346,38 +5404,38 @@ const rl = ["data-scene", "data-tres"], ol = /* @__PURE__ */ ot({
|
|
|
5346
5404
|
1e3
|
|
5347
5405
|
);
|
|
5348
5406
|
A.position.set(3, 3, 3), A.lookAt(0, 0, 0), g(A);
|
|
5349
|
-
const O =
|
|
5350
|
-
|
|
5407
|
+
const O = $(() => {
|
|
5408
|
+
b.value.length >= 2 && (A.removeFromParent(), P(A), O?.());
|
|
5351
5409
|
});
|
|
5352
5410
|
};
|
|
5353
|
-
|
|
5411
|
+
_.value.events.onPointerMissed((A) => {
|
|
5354
5412
|
o("pointermissed", A);
|
|
5355
5413
|
}), At(
|
|
5356
5414
|
() => r.camera,
|
|
5357
5415
|
(A, O) => {
|
|
5358
|
-
A && g(
|
|
5416
|
+
A && g(D(A), !0), O && (D(O).removeFromParent(), P(D(O)));
|
|
5359
5417
|
},
|
|
5360
5418
|
{
|
|
5361
5419
|
immediate: !0
|
|
5362
5420
|
}
|
|
5363
|
-
),
|
|
5364
|
-
|
|
5421
|
+
), C.value || M(), p.onRender(() => {
|
|
5422
|
+
_.value && o("render", _.value);
|
|
5365
5423
|
}), p.loop.onLoop((A) => {
|
|
5366
|
-
|
|
5424
|
+
_.value && o("loop", { ..._.value, ...A });
|
|
5367
5425
|
}), p.loop.onBeforeLoop((A) => {
|
|
5368
|
-
|
|
5426
|
+
_.value && o("beforeLoop", { ..._.value, ...A });
|
|
5369
5427
|
}), p.onReady(() => {
|
|
5370
|
-
o("ready",
|
|
5428
|
+
o("ready", _.value);
|
|
5371
5429
|
});
|
|
5372
5430
|
}), Kt(async () => {
|
|
5373
|
-
await hi(3e3),
|
|
5431
|
+
await hi(3e3), _.value && (!_.value.sizes.width || !_.value.sizes.height.value) && console.warn("TresCanvas: The canvas has no area, so nothing can be rendered. Set it manually on the parent element or use the prop windowSize.");
|
|
5374
5432
|
}), ie(d), (h, v) => (Ro(), xo("canvas", {
|
|
5375
5433
|
ref_key: "canvasRef",
|
|
5376
5434
|
ref: s,
|
|
5377
|
-
"data-scene":
|
|
5378
|
-
class:
|
|
5379
|
-
"data-tres": `tresjs ${ke(
|
|
5380
|
-
style:
|
|
5435
|
+
"data-scene": u.value.uuid,
|
|
5436
|
+
class: Fo(h.$attrs.class),
|
|
5437
|
+
"data-tres": `tresjs ${ke(Ni).version}`,
|
|
5438
|
+
style: Lo({
|
|
5381
5439
|
display: "block",
|
|
5382
5440
|
width: "100%",
|
|
5383
5441
|
height: "100%",
|
|
@@ -5388,35 +5446,35 @@ const rl = ["data-scene", "data-tres"], ol = /* @__PURE__ */ ot({
|
|
|
5388
5446
|
touchAction: "none",
|
|
5389
5447
|
...h.$attrs.style
|
|
5390
5448
|
})
|
|
5391
|
-
}, null, 14,
|
|
5449
|
+
}, null, 14, il));
|
|
5392
5450
|
}
|
|
5393
5451
|
});
|
|
5394
|
-
function
|
|
5395
|
-
return typeof e == "number" ? [e, e, e] : e instanceof
|
|
5452
|
+
function El(e) {
|
|
5453
|
+
return typeof e == "number" ? [e, e, e] : e instanceof I ? [e.x, e.y, e.z] : e;
|
|
5396
5454
|
}
|
|
5397
|
-
function
|
|
5455
|
+
function vl(e) {
|
|
5398
5456
|
return e instanceof xe ? e : Array.isArray(e) ? new xe(...e) : new xe(e);
|
|
5399
5457
|
}
|
|
5400
|
-
const
|
|
5458
|
+
const ul = [
|
|
5401
5459
|
"TresCanvas",
|
|
5402
5460
|
"TresLeches",
|
|
5403
5461
|
"TresScene"
|
|
5404
|
-
],
|
|
5462
|
+
], yl = {
|
|
5405
5463
|
template: {
|
|
5406
5464
|
compilerOptions: {
|
|
5407
|
-
isCustomElement: (e) => e.startsWith("Tres") && !
|
|
5465
|
+
isCustomElement: (e) => e.startsWith("Tres") && !ul.includes(e) || e === "primitive"
|
|
5408
5466
|
}
|
|
5409
5467
|
}
|
|
5410
5468
|
};
|
|
5411
5469
|
let q = null;
|
|
5412
|
-
const
|
|
5470
|
+
const bl = {
|
|
5413
5471
|
updated: (e, t) => {
|
|
5414
5472
|
const r = ((i) => {
|
|
5415
5473
|
let s = i.value;
|
|
5416
|
-
return i.value &&
|
|
5474
|
+
return i.value && $e(i.value) && (s = i.value.position), Array.isArray(i.value) && (s = new I(...s)), s;
|
|
5417
5475
|
})(t);
|
|
5418
5476
|
if (!r) {
|
|
5419
|
-
|
|
5477
|
+
Me(`v-distance-to: problem with binding value: ${t.value}`);
|
|
5420
5478
|
return;
|
|
5421
5479
|
}
|
|
5422
5480
|
q && (q.dispose(), e.parent.remove(q));
|
|
@@ -5433,14 +5491,14 @@ const vl = {
|
|
|
5433
5491
|
q?.dispose(), e.parent && e.parent.remove(q);
|
|
5434
5492
|
}
|
|
5435
5493
|
};
|
|
5436
|
-
class Po extends
|
|
5494
|
+
class Po extends Qo {
|
|
5437
5495
|
constructor(t, n) {
|
|
5438
5496
|
const r = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, 1, 1, 0], o = new Gt();
|
|
5439
5497
|
o.setAttribute("position", new Yt(r, 3)), o.computeBoundingSphere();
|
|
5440
|
-
const i = new
|
|
5498
|
+
const i = new Zo({ fog: !1 });
|
|
5441
5499
|
super(o, i), this.light = t, this.color = n, this.type = "RectAreaLightHelper";
|
|
5442
|
-
const s = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0],
|
|
5443
|
-
|
|
5500
|
+
const s = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0], u = new Gt();
|
|
5501
|
+
u.setAttribute("position", new Yt(s, 3)), u.computeBoundingSphere(), this.add(new He(u, new Ar({ side: Jo, fog: !1 })));
|
|
5444
5502
|
}
|
|
5445
5503
|
updateMatrixWorld() {
|
|
5446
5504
|
if (this.scale.set(0.5 * this.light.width, 0.5 * this.light.height, 1), this.color !== void 0)
|
|
@@ -5456,32 +5514,32 @@ class Po extends Zo {
|
|
|
5456
5514
|
this.geometry.dispose(), this.material.dispose(), this.children[0].geometry.dispose(), this.children[0].material.dispose();
|
|
5457
5515
|
}
|
|
5458
5516
|
}
|
|
5459
|
-
let
|
|
5460
|
-
const
|
|
5517
|
+
let Ie, W;
|
|
5518
|
+
const al = {
|
|
5461
5519
|
DirectionalLight: ri,
|
|
5462
5520
|
PointLight: ni,
|
|
5463
5521
|
SpotLight: ti,
|
|
5464
5522
|
HemisphereLight: ei,
|
|
5465
5523
|
RectAreaLight: Po
|
|
5466
|
-
},
|
|
5524
|
+
}, Cl = {
|
|
5467
5525
|
mounted: (e) => {
|
|
5468
5526
|
if (!Rr(e)) {
|
|
5469
|
-
|
|
5527
|
+
Me(`${e.type} is not a light`);
|
|
5470
5528
|
return;
|
|
5471
5529
|
}
|
|
5472
|
-
|
|
5530
|
+
Ie = al[e.type], e.parent?.add(new Ie(e, 1, e.color.getHex()));
|
|
5473
5531
|
},
|
|
5474
5532
|
updated: (e) => {
|
|
5475
|
-
W = e.parent.children.find((t) => t instanceof
|
|
5533
|
+
W = e.parent.children.find((t) => t instanceof Ie), !(W instanceof Po) && W.update();
|
|
5476
5534
|
},
|
|
5477
5535
|
unmounted: (e) => {
|
|
5478
5536
|
if (!e.isLight) {
|
|
5479
|
-
|
|
5537
|
+
Me(`${e.type} is not a light`);
|
|
5480
5538
|
return;
|
|
5481
5539
|
}
|
|
5482
|
-
W = e.parent.children.find((t) => t instanceof
|
|
5540
|
+
W = e.parent.children.find((t) => t instanceof Ie), W && W.dispose && W.dispose(), e.parent && e.parent.remove(W);
|
|
5483
5541
|
}
|
|
5484
|
-
},
|
|
5542
|
+
}, wl = {
|
|
5485
5543
|
mounted: (e, t) => {
|
|
5486
5544
|
if (t.arg) {
|
|
5487
5545
|
console.log(`v-log:${t.arg}`, e[t.arg]);
|
|
@@ -5489,56 +5547,58 @@ const sl = {
|
|
|
5489
5547
|
}
|
|
5490
5548
|
console.log("v-log", e);
|
|
5491
5549
|
}
|
|
5492
|
-
},
|
|
5550
|
+
}, Al = {
|
|
5493
5551
|
install(e) {
|
|
5494
|
-
e.component("TresCanvas",
|
|
5552
|
+
e.component("TresCanvas", sl);
|
|
5495
5553
|
}
|
|
5496
5554
|
};
|
|
5497
5555
|
export {
|
|
5498
|
-
|
|
5499
|
-
|
|
5556
|
+
zs as DevtoolsMessenger,
|
|
5557
|
+
sl as TresCanvas,
|
|
5558
|
+
_l as UseLoader,
|
|
5500
5559
|
ns as buildGraph,
|
|
5501
5560
|
dt as catalogue,
|
|
5502
|
-
|
|
5503
|
-
|
|
5561
|
+
Al as default,
|
|
5562
|
+
Ne as dispose,
|
|
5504
5563
|
pt as extend,
|
|
5505
5564
|
kr as isBufferGeometry,
|
|
5506
5565
|
Pr as isCamera,
|
|
5507
5566
|
Wi as isClassInstance,
|
|
5508
|
-
|
|
5509
|
-
|
|
5567
|
+
Ir as isColor,
|
|
5568
|
+
$i as isColorRepresentation,
|
|
5510
5569
|
Ki as isCopyable,
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5570
|
+
Lr as isFog,
|
|
5571
|
+
dl as isGroup,
|
|
5572
|
+
Zt as isLayers,
|
|
5514
5573
|
Rr as isLight,
|
|
5515
5574
|
xr as isMaterial,
|
|
5516
|
-
|
|
5575
|
+
$e as isMesh,
|
|
5517
5576
|
lt as isObject3D,
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5577
|
+
zi as isOrthographicCamera,
|
|
5578
|
+
Dr as isPerspectiveCamera,
|
|
5579
|
+
pl as isProd,
|
|
5580
|
+
Fr as isScene,
|
|
5522
5581
|
re as isTresCamera,
|
|
5523
5582
|
qi as isTresInstance,
|
|
5524
5583
|
Gi as isTresObject,
|
|
5525
5584
|
Yi as isTresPrimitive,
|
|
5526
5585
|
ct as isVectorLike,
|
|
5527
5586
|
Jt as logError,
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5587
|
+
hl as logMessage,
|
|
5588
|
+
Me as logWarning,
|
|
5589
|
+
vl as normalizeColor,
|
|
5590
|
+
El as normalizeVectorFlexibleParam,
|
|
5591
|
+
ol as registerTresDevtools,
|
|
5592
|
+
yl as templateCompilerOptions,
|
|
5533
5593
|
ts as useCameraManager,
|
|
5534
|
-
|
|
5594
|
+
ml as useGraph,
|
|
5535
5595
|
es as useLoader,
|
|
5536
|
-
|
|
5596
|
+
gl as useLoop,
|
|
5537
5597
|
is as useRendererManager,
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5598
|
+
Ns as useTres,
|
|
5599
|
+
zr as useTresContext,
|
|
5600
|
+
Fs as useTresContextProvider,
|
|
5601
|
+
bl as vDistanceTo,
|
|
5602
|
+
Cl as vLightHelper,
|
|
5603
|
+
wl as vLog
|
|
5544
5604
|
};
|