chbim-plugins 0.0.16 → 0.0.18
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/chbim-plugins.js +429 -425
- package/chbim-plugins.umd.cjs +8 -8
- package/package.json +2 -5
- package/vite.svg +0 -1
package/chbim-plugins.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { openBlock as $o, createElementBlock as Ko, normalizeClass as Ia, renderSlot as Da, defineComponent as Hs, ref as Gs, onMounted as ks, createElementVNode as Oi, toDisplayString as th, createApp as Oa } from "vue";
|
|
2
|
-
const eh = (p,
|
|
3
|
-
const
|
|
4
|
-
for (const [ft, at] of
|
|
5
|
-
|
|
6
|
-
return
|
|
2
|
+
const eh = (p, pt) => {
|
|
3
|
+
const Y = p.__vccOpts || p;
|
|
4
|
+
for (const [ft, at] of pt)
|
|
5
|
+
Y[ft] = at;
|
|
6
|
+
return Y;
|
|
7
7
|
}, ih = {
|
|
8
8
|
name: "MukButton"
|
|
9
9
|
}, rh = /* @__PURE__ */ Object.assign(ih, {
|
|
@@ -18,10 +18,10 @@ const eh = (p, dt) => {
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
setup(p) {
|
|
21
|
-
return (
|
|
21
|
+
return (pt, Y) => ($o(), Ko("button", {
|
|
22
22
|
class: Ia(["muk-btn", [p.size, p.type]])
|
|
23
23
|
}, [
|
|
24
|
-
Da(
|
|
24
|
+
Da(pt.$slots, "default", {}, void 0, !0)
|
|
25
25
|
], 2));
|
|
26
26
|
}
|
|
27
27
|
}), nh = /* @__PURE__ */ eh(rh, [["__scopeId", "data-v-0e6d93cd"]]);
|
|
@@ -165,15 +165,15 @@ const sh = { class: "mask js-mask" }, ah = /* @__PURE__ */ Oi("div", { class: "m
|
|
|
165
165
|
default: "CHBIM云平台"
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
|
-
setup(p, { expose:
|
|
169
|
-
const
|
|
170
|
-
|
|
168
|
+
setup(p, { expose: pt }) {
|
|
169
|
+
const Y = Gs(null), ft = () => {
|
|
170
|
+
Y.value === null && (Y.value = new oh());
|
|
171
171
|
}, at = () => {
|
|
172
|
-
ft(),
|
|
172
|
+
ft(), Y.value.continuation();
|
|
173
173
|
};
|
|
174
174
|
return ks(() => {
|
|
175
175
|
ft();
|
|
176
|
-
}),
|
|
176
|
+
}), pt({
|
|
177
177
|
continuation: at
|
|
178
178
|
}), (x, mt) => ($o(), Ko("div", sh, [
|
|
179
179
|
ah,
|
|
@@ -206,7 +206,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
206
206
|
Ke._gsDefine(
|
|
207
207
|
"TweenMax",
|
|
208
208
|
["core.Animation", "core.SimpleTimeline", "TweenLite"],
|
|
209
|
-
function(p,
|
|
209
|
+
function(p, pt, Y) {
|
|
210
210
|
var ft = function(Q) {
|
|
211
211
|
var H, m = [], f = Q.length;
|
|
212
212
|
for (H = 0; H !== f; m.push(Q[H++]))
|
|
@@ -218,10 +218,10 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
218
218
|
C = M[f], Q[f] = typeof C == "function" ? C(m, H[m]) : C[m % C.length];
|
|
219
219
|
delete Q.cycle;
|
|
220
220
|
}, x = function(Q, H, m) {
|
|
221
|
-
|
|
222
|
-
}, mt = 1e-10, Ct =
|
|
223
|
-
x.version = "2.0.2", wt.constructor = x, wt.kill()._gc = !1, x.killTweensOf = x.killDelayedCallsTo =
|
|
224
|
-
return this._yoyo = this.vars.yoyo === !0 || !!this.vars.yoyoEase, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._yoyoEase = null, this._uncache(!0),
|
|
221
|
+
Y.call(this, Q, H, m), this._cycle = 0, this._yoyo = this.vars.yoyo === !0 || !!this.vars.yoyoEase, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._repeat && this._uncache(!0), this.render = x.prototype.render;
|
|
222
|
+
}, mt = 1e-10, Ct = Y._internals, Z = Ct.isSelector, ht = Ct.isArray, wt = x.prototype = Y.to({}, 0.1, {}), ct = [];
|
|
223
|
+
x.version = "2.0.2", wt.constructor = x, wt.kill()._gc = !1, x.killTweensOf = x.killDelayedCallsTo = Y.killTweensOf, x.getTweensOf = Y.getTweensOf, x.lagSmoothing = Y.lagSmoothing, x.ticker = Y.ticker, x.render = Y.render, wt.invalidate = function() {
|
|
224
|
+
return this._yoyo = this.vars.yoyo === !0 || !!this.vars.yoyoEase, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._yoyoEase = null, this._uncache(!0), Y.prototype.invalidate.call(this);
|
|
225
225
|
}, wt.updateTo = function(Q, H) {
|
|
226
226
|
var m, f = this.ratio, C = this.vars.immediateRender || Q.immediateRender;
|
|
227
227
|
H && this._startTime < this._timeline._time && (this._startTime = this._timeline._time, this._uncache(!1), this._gc ? this._enabled(!0, !1) : this._timeline.insert(this, this._startTime - this._delay));
|
|
@@ -230,7 +230,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
230
230
|
if (this._initted || C) {
|
|
231
231
|
if (H)
|
|
232
232
|
this._initted = !1, C && this.render(0, !0, !0);
|
|
233
|
-
else if (this._gc && this._enabled(!0, !1), this._notifyPluginsOfEnabled && this._firstPT &&
|
|
233
|
+
else if (this._gc && this._enabled(!0, !1), this._notifyPluginsOfEnabled && this._firstPT && Y._onPluginEvent("_onDisable", this), this._time / this._duration > 0.998) {
|
|
234
234
|
var M = this._totalTime;
|
|
235
235
|
this.render(0, !0, !1), this._initted = !1, this.render(M, !0, !1);
|
|
236
236
|
} else if (this._initted = !1, this._init(), this._time > 0 || C)
|
|
@@ -241,7 +241,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
241
241
|
}, wt.render = function(Q, H, m) {
|
|
242
242
|
this._initted || this._duration === 0 && this.vars.repeat && this.invalidate();
|
|
243
243
|
var f, C, M, G, b, F, q, st, it, Lt = this._dirty ? this.totalDuration() : this._totalDuration, bt = this._time, Gt = this._totalTime, Vt = this._cycle, ie = this._duration, ut = this._rawPrevTime;
|
|
244
|
-
if (Q >= Lt - 1e-7 && Q >= 0 ? (this._totalTime = Lt, this._cycle = this._repeat, this._yoyo && 1 & this._cycle ? (this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0) : (this._time = ie, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1), this._reversed || (f = !0, C = "onComplete", m = m || this._timeline.autoRemoveChildren), ie === 0 && (this._initted || !this.vars.lazy || m) && (this._startTime === this._timeline._duration && (Q = 0), (0 > ut || 0 >= Q && Q >= -1e-7 || ut === mt && this.data !== "isPause") && ut !== Q && (m = !0, ut > mt && (C = "onReverseComplete")), this._rawPrevTime = st = !H || Q || ut === Q ? Q : mt)) : 1e-7 > Q ? (this._totalTime = this._time = this._cycle = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (Gt !== 0 || ie === 0 && ut > 0) && (C = "onReverseComplete", f = this._reversed), 0 > Q && (this._active = !1, ie === 0 && (this._initted || !this.vars.lazy || m) && (ut >= 0 && (m = !0), this._rawPrevTime = st = !H || Q || ut === Q ? Q : mt)), this._initted || (m = !0)) : (this._totalTime = this._time = Q, this._repeat !== 0 && (G = ie + this._repeatDelay, this._cycle = this._totalTime / G >> 0, this._cycle !== 0 && this._cycle === this._totalTime / G && Q >= Gt && this._cycle--, this._time = this._totalTime - this._cycle * G, this._yoyo && 1 & this._cycle && (this._time = ie - this._time, it = this._yoyoEase || this.vars.yoyoEase, it && (this._yoyoEase || (it !== !0 || this._initted ? this._yoyoEase = it = it === !0 ? this._ease : it instanceof Ease ? it : Ease.map[it] : (it = this.vars.ease, this._yoyoEase = it = it ? it instanceof Ease ? it : typeof it == "function" ? new Ease(it, this.vars.easeParams) : Ease.map[it] ||
|
|
244
|
+
if (Q >= Lt - 1e-7 && Q >= 0 ? (this._totalTime = Lt, this._cycle = this._repeat, this._yoyo && 1 & this._cycle ? (this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0) : (this._time = ie, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1), this._reversed || (f = !0, C = "onComplete", m = m || this._timeline.autoRemoveChildren), ie === 0 && (this._initted || !this.vars.lazy || m) && (this._startTime === this._timeline._duration && (Q = 0), (0 > ut || 0 >= Q && Q >= -1e-7 || ut === mt && this.data !== "isPause") && ut !== Q && (m = !0, ut > mt && (C = "onReverseComplete")), this._rawPrevTime = st = !H || Q || ut === Q ? Q : mt)) : 1e-7 > Q ? (this._totalTime = this._time = this._cycle = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (Gt !== 0 || ie === 0 && ut > 0) && (C = "onReverseComplete", f = this._reversed), 0 > Q && (this._active = !1, ie === 0 && (this._initted || !this.vars.lazy || m) && (ut >= 0 && (m = !0), this._rawPrevTime = st = !H || Q || ut === Q ? Q : mt)), this._initted || (m = !0)) : (this._totalTime = this._time = Q, this._repeat !== 0 && (G = ie + this._repeatDelay, this._cycle = this._totalTime / G >> 0, this._cycle !== 0 && this._cycle === this._totalTime / G && Q >= Gt && this._cycle--, this._time = this._totalTime - this._cycle * G, this._yoyo && 1 & this._cycle && (this._time = ie - this._time, it = this._yoyoEase || this.vars.yoyoEase, it && (this._yoyoEase || (it !== !0 || this._initted ? this._yoyoEase = it = it === !0 ? this._ease : it instanceof Ease ? it : Ease.map[it] : (it = this.vars.ease, this._yoyoEase = it = it ? it instanceof Ease ? it : typeof it == "function" ? new Ease(it, this.vars.easeParams) : Ease.map[it] || Y.defaultEase : Y.defaultEase)), this.ratio = it ? 1 - it.getRatio((ie - this._time) / ie) : 0)), this._time > ie ? this._time = ie : this._time < 0 && (this._time = 0)), this._easeType && !it ? (b = this._time / ie, F = this._easeType, q = this._easePower, (F === 1 || F === 3 && b >= 0.5) && (b = 1 - b), F === 3 && (b *= 2), q === 1 ? b *= b : q === 2 ? b *= b * b : q === 3 ? b *= b * b * b : q === 4 && (b *= b * b * b * b), F === 1 ? this.ratio = 1 - b : F === 2 ? this.ratio = b : this._time / ie < 0.5 ? this.ratio = b / 2 : this.ratio = 1 - b / 2) : it || (this.ratio = this._ease.getRatio(this._time / ie))), bt === this._time && !m && Vt === this._cycle)
|
|
245
245
|
return void (Gt !== this._totalTime && this._onUpdate && (H || this._callback("onUpdate")));
|
|
246
246
|
if (!this._initted) {
|
|
247
247
|
if (this._init(), !this._initted || this._gc)
|
|
@@ -264,7 +264,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
264
264
|
var b, F, q, st, it = 0, Lt = [], bt = function() {
|
|
265
265
|
m.onComplete && m.onComplete.apply(m.onCompleteScope || this, arguments), C.apply(G || m.callbackScope || this, M || ct);
|
|
266
266
|
}, Gt = m.cycle, Vt = m.startAt && m.startAt.cycle;
|
|
267
|
-
for (ht(Q) || (typeof Q == "string" && (Q =
|
|
267
|
+
for (ht(Q) || (typeof Q == "string" && (Q = Y.selector(Q) || Q), Z(Q) && (Q = ft(Q))), Q = Q || [], 0 > f && (Q = ft(Q), Q.reverse(), f *= -1), b = Q.length - 1, q = 0; b >= q; q++) {
|
|
268
268
|
F = {};
|
|
269
269
|
for (st in m)
|
|
270
270
|
F[st] = m[st];
|
|
@@ -296,11 +296,11 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
296
296
|
}, x.set = function(Q, H) {
|
|
297
297
|
return new x(Q, 0, H);
|
|
298
298
|
}, x.isTweening = function(Q) {
|
|
299
|
-
return
|
|
299
|
+
return Y.getTweensOf(Q, !0).length > 0;
|
|
300
300
|
};
|
|
301
301
|
var Pt = function(Q, H) {
|
|
302
302
|
for (var m = [], f = 0, C = Q._first; C; )
|
|
303
|
-
C instanceof
|
|
303
|
+
C instanceof Y ? m[f++] = C : (H && (m[f++] = C), m = m.concat(Pt(C, H)), f = m.length), C = C._next;
|
|
304
304
|
return m;
|
|
305
305
|
}, Ot = x.getAllTweens = function(Q) {
|
|
306
306
|
return Pt(p._rootTimeline, Q).concat(Pt(p._rootFramesTimeline, Q));
|
|
@@ -309,11 +309,11 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
309
309
|
H == null && (H = !0), m == null && (m = !0);
|
|
310
310
|
var C, M, G, b = Ot(f != 0), F = b.length, q = H && m && f;
|
|
311
311
|
for (G = 0; F > G; G++)
|
|
312
|
-
M = b[G], (q || M instanceof
|
|
312
|
+
M = b[G], (q || M instanceof pt || (C = M.target === M.vars.onComplete) && m || H && !C) && (Q ? M.totalTime(M._reversed ? 0 : M.totalDuration()) : M._enabled(!1, !1));
|
|
313
313
|
}, x.killChildTweensOf = function(Q, H) {
|
|
314
314
|
if (Q != null) {
|
|
315
315
|
var m, f, C, M, G, b = Ct.tweenLookup;
|
|
316
|
-
if (typeof Q == "string" && (Q =
|
|
316
|
+
if (typeof Q == "string" && (Q = Y.selector(Q) || Q), Z(Q) && (Q = ft(Q)), ht(Q))
|
|
317
317
|
for (M = Q.length; --M > -1; )
|
|
318
318
|
x.killChildTweensOf(Q[M], H);
|
|
319
319
|
else {
|
|
@@ -329,15 +329,15 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
329
329
|
var xt = function(Q, H, m, f) {
|
|
330
330
|
H = H !== !1, m = m !== !1, f = f !== !1;
|
|
331
331
|
for (var C, M, G = Ot(f), b = H && m && f, F = G.length; --F > -1; )
|
|
332
|
-
M = G[F], (b || M instanceof
|
|
332
|
+
M = G[F], (b || M instanceof pt || (C = M.target === M.vars.onComplete) && m || H && !C) && M.paused(Q);
|
|
333
333
|
};
|
|
334
334
|
return x.pauseAll = function(Q, H, m) {
|
|
335
335
|
xt(!0, Q, H, m);
|
|
336
336
|
}, x.resumeAll = function(Q, H, m) {
|
|
337
337
|
xt(!1, Q, H, m);
|
|
338
338
|
}, x.globalTimeScale = function(Q) {
|
|
339
|
-
var H = p._rootTimeline, m =
|
|
340
|
-
return arguments.length ? (Q = Q || mt, H._startTime = m - (m - H._startTime) * H._timeScale / Q, H = p._rootFramesTimeline, m =
|
|
339
|
+
var H = p._rootTimeline, m = Y.ticker.time;
|
|
340
|
+
return arguments.length ? (Q = Q || mt, H._startTime = m - (m - H._startTime) * H._timeScale / Q, H = p._rootFramesTimeline, m = Y.ticker.frame, H._startTime = m - (m - H._startTime) * H._timeScale / Q, H._timeScale = p._rootTimeline._timeScale = Q, Q) : H._timeScale;
|
|
341
341
|
}, wt.progress = function(Q, H) {
|
|
342
342
|
return arguments.length ? this.totalTime(
|
|
343
343
|
this.duration() * (this._yoyo && 1 & this._cycle ? 1 - Q : Q) + this._cycle * (this._duration + this._repeatDelay),
|
|
@@ -365,14 +365,14 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
365
365
|
), Ke._gsDefine(
|
|
366
366
|
"TimelineLite",
|
|
367
367
|
["core.Animation", "core.SimpleTimeline", "TweenLite"],
|
|
368
|
-
function(p,
|
|
368
|
+
function(p, pt, Y) {
|
|
369
369
|
var ft = function(m) {
|
|
370
|
-
|
|
370
|
+
pt.call(this, m), this._labels = {}, this.autoRemoveChildren = this.vars.autoRemoveChildren === !0, this.smoothChildTiming = this.vars.smoothChildTiming === !0, this._sortChildren = !0, this._onUpdate = this.vars.onUpdate;
|
|
371
371
|
var f, C, M = this.vars;
|
|
372
372
|
for (C in M)
|
|
373
|
-
f = M[C],
|
|
374
|
-
|
|
375
|
-
}, at = 1e-10, x =
|
|
373
|
+
f = M[C], Z(f) && f.join("").indexOf("{self}") !== -1 && (M[C] = this._swapSelfInParams(f));
|
|
374
|
+
Z(M.tweens) && this.add(M.tweens, 0, M.align, M.stagger);
|
|
375
|
+
}, at = 1e-10, x = Y._internals, mt = ft._internals = {}, Ct = x.isSelector, Z = x.isArray, ht = x.lazyTweens, wt = x.lazyRender, ct = Ke._gsDefine.globals, Pt = function(m) {
|
|
376
376
|
var f, C = {};
|
|
377
377
|
for (f in m)
|
|
378
378
|
C[f] = m[f];
|
|
@@ -388,14 +388,14 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
388
388
|
for (f = 0; f !== M; C.push(m[f++]))
|
|
389
389
|
;
|
|
390
390
|
return C;
|
|
391
|
-
}, H = ft.prototype = new
|
|
391
|
+
}, H = ft.prototype = new pt();
|
|
392
392
|
return ft.version = "2.0.2", H.constructor = ft, H.kill()._gc = H._forcingPlayhead = H._hasPause = !1, H.to = function(m, f, C, M) {
|
|
393
|
-
var G = C.repeat && ct.TweenMax ||
|
|
393
|
+
var G = C.repeat && ct.TweenMax || Y;
|
|
394
394
|
return f ? this.add(new G(m, f, C), M) : this.set(m, C, M);
|
|
395
395
|
}, H.from = function(m, f, C, M) {
|
|
396
|
-
return this.add((C.repeat && ct.TweenMax ||
|
|
396
|
+
return this.add((C.repeat && ct.TweenMax || Y).from(m, f, C), M);
|
|
397
397
|
}, H.fromTo = function(m, f, C, M, G) {
|
|
398
|
-
var b = M.repeat && ct.TweenMax ||
|
|
398
|
+
var b = M.repeat && ct.TweenMax || Y;
|
|
399
399
|
return f ? this.add(b.fromTo(m, f, C, M), G) : this.set(m, M, G);
|
|
400
400
|
}, H.staggerTo = function(m, f, C, M, G, b, F, q) {
|
|
401
401
|
var st, it, Lt = new ft({
|
|
@@ -404,7 +404,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
404
404
|
callbackScope: q,
|
|
405
405
|
smoothChildTiming: this.smoothChildTiming
|
|
406
406
|
}), bt = C.cycle;
|
|
407
|
-
for (typeof m == "string" && (m =
|
|
407
|
+
for (typeof m == "string" && (m = Y.selector(m) || m), m = m || [], Ct(m) && (m = Q(m)), M = M || 0, 0 > M && (m = Q(m), m.reverse(), M *= -1), it = 0; it < m.length; it++)
|
|
408
408
|
st = Pt(C), st.startAt && (st.startAt = Pt(st.startAt), st.startAt.cycle && Ot(st.startAt, m, it)), bt && (Ot(st, m, it), st.duration != null && (f = st.duration, delete st.duration)), Lt.to(m[it], f, st, it * M);
|
|
409
409
|
return this.add(Lt, G);
|
|
410
410
|
}, H.staggerFrom = function(m, f, C, M, G, b, F, q) {
|
|
@@ -412,30 +412,30 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
412
412
|
}, H.staggerFromTo = function(m, f, C, M, G, b, F, q, st) {
|
|
413
413
|
return M.startAt = C, M.immediateRender = M.immediateRender != 0 && C.immediateRender != 0, this.staggerTo(m, f, M, G, b, F, q, st);
|
|
414
414
|
}, H.call = function(m, f, C, M) {
|
|
415
|
-
return this.add(
|
|
415
|
+
return this.add(Y.delayedCall(0, m, f, C), M);
|
|
416
416
|
}, H.set = function(m, f, C) {
|
|
417
|
-
return C = this._parseTimeOrLabel(C, 0, !0), f.immediateRender == null && (f.immediateRender = C === this._time && !this._paused), this.add(new
|
|
417
|
+
return C = this._parseTimeOrLabel(C, 0, !0), f.immediateRender == null && (f.immediateRender = C === this._time && !this._paused), this.add(new Y(m, 0, f), C);
|
|
418
418
|
}, ft.exportRoot = function(m, f) {
|
|
419
419
|
m = m || {}, m.smoothChildTiming == null && (m.smoothChildTiming = !0);
|
|
420
420
|
var C, M, G, b, F = new ft(m), q = F._timeline;
|
|
421
421
|
for (f == null && (f = !0), q._remove(F, !0), F._startTime = 0, F._rawPrevTime = F._time = F._totalTime = q._time, G = q._first; G; )
|
|
422
|
-
b = G._next, f && G instanceof
|
|
422
|
+
b = G._next, f && G instanceof Y && G.target === G.vars.onComplete || (M = G._startTime - G._delay, 0 > M && (C = 1), F.add(G, M)), G = b;
|
|
423
423
|
return q.add(F, 0), C && F.totalDuration(), F;
|
|
424
424
|
}, H.add = function(m, f, C, M) {
|
|
425
425
|
var G, b, F, q, st, it;
|
|
426
426
|
if (typeof f != "number" && (f = this._parseTimeOrLabel(f, 0, !0, m)), !(m instanceof p)) {
|
|
427
|
-
if (m instanceof Array || m && m.push &&
|
|
427
|
+
if (m instanceof Array || m && m.push && Z(m)) {
|
|
428
428
|
for (C = C || "normal", M = M || 0, G = f, b = m.length, F = 0; b > F; F++)
|
|
429
|
-
|
|
429
|
+
Z(q = m[F]) && (q = new ft({ tweens: q })), this.add(q, G), typeof q != "string" && typeof q != "function" && (C === "sequence" ? G = q._startTime + q.totalDuration() / q._timeScale : C === "start" && (q._startTime -= q.delay())), G += M;
|
|
430
430
|
return this._uncache(!0);
|
|
431
431
|
}
|
|
432
432
|
if (typeof m == "string")
|
|
433
433
|
return this.addLabel(m, f);
|
|
434
434
|
if (typeof m != "function")
|
|
435
435
|
throw "Cannot add " + m + " into the timeline; it is not a tween, timeline, function, or string.";
|
|
436
|
-
m =
|
|
436
|
+
m = Y.delayedCall(0, m);
|
|
437
437
|
}
|
|
438
|
-
if (
|
|
438
|
+
if (pt.prototype.add.call(this, m, f), m._time && (G = Math.max(
|
|
439
439
|
0,
|
|
440
440
|
Math.min(
|
|
441
441
|
m.totalDuration(),
|
|
@@ -451,14 +451,14 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
451
451
|
var f = m._timeline = m.vars.useFrames ? p._rootFramesTimeline : p._rootTimeline;
|
|
452
452
|
return m._startTime = (m._paused ? m._pauseTime : f._time) - (m._reversed ? m.totalDuration() - m._totalTime : m._totalTime) / m._timeScale, this;
|
|
453
453
|
}
|
|
454
|
-
if (m instanceof Array || m && m.push &&
|
|
454
|
+
if (m instanceof Array || m && m.push && Z(m)) {
|
|
455
455
|
for (var C = m.length; --C > -1; )
|
|
456
456
|
this.remove(m[C]);
|
|
457
457
|
return this;
|
|
458
458
|
}
|
|
459
459
|
return typeof m == "string" ? this.removeLabel(m) : this.kill(null, m);
|
|
460
460
|
}, H._remove = function(m, f) {
|
|
461
|
-
|
|
461
|
+
pt.prototype._remove.call(this, m, f);
|
|
462
462
|
var C = this._last;
|
|
463
463
|
return C ? this._time > this.duration() && (this._time = this._duration, this._totalTime = this._totalDuration) : this._time = this._totalTime = this._duration = this._totalDuration = 0, this;
|
|
464
464
|
}, H.append = function(m, f) {
|
|
@@ -470,7 +470,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
470
470
|
}, H.addLabel = function(m, f) {
|
|
471
471
|
return this._labels[m] = this._parseTimeOrLabel(f), this;
|
|
472
472
|
}, H.addPause = function(m, f, C, M) {
|
|
473
|
-
var G =
|
|
473
|
+
var G = Y.delayedCall(0, xt, C, M || this);
|
|
474
474
|
return G.vars.onComplete = G.vars.onReverseComplete = f, G.data = "isPause", this._hasPause = !0, this.add(G, m);
|
|
475
475
|
}, H.removeLabel = function(m) {
|
|
476
476
|
return delete this._labels[m], this;
|
|
@@ -480,7 +480,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
480
480
|
var G, b;
|
|
481
481
|
if (M instanceof p && M.timeline === this)
|
|
482
482
|
this.remove(M);
|
|
483
|
-
else if (M && (M instanceof Array || M.push &&
|
|
483
|
+
else if (M && (M instanceof Array || M.push && Z(M)))
|
|
484
484
|
for (b = M.length; --b > -1; )
|
|
485
485
|
M[b] instanceof p && M[b].timeline === this && this.remove(M[b]);
|
|
486
486
|
if (G = typeof m != "number" || f ? this.duration() > 99999999999 ? this.recent().endTime(!1) : this._duration : 0, typeof f == "string")
|
|
@@ -574,11 +574,11 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
574
574
|
}, H.getChildren = function(m, f, C, M) {
|
|
575
575
|
M = M || -9999999999;
|
|
576
576
|
for (var G = [], b = this._first, F = 0; b; )
|
|
577
|
-
b._startTime < M || (b instanceof
|
|
577
|
+
b._startTime < M || (b instanceof Y ? f !== !1 && (G[F++] = b) : (C !== !1 && (G[F++] = b), m !== !1 && (G = G.concat(b.getChildren(!0, f, C)), F = G.length))), b = b._next;
|
|
578
578
|
return G;
|
|
579
579
|
}, H.getTweensOf = function(m, f) {
|
|
580
580
|
var C, M, G = this._gc, b = [], F = 0;
|
|
581
|
-
for (G && this._enabled(!0, !0), C =
|
|
581
|
+
for (G && this._enabled(!0, !0), C = Y.getTweensOf(m), M = C.length; --M > -1; )
|
|
582
582
|
(C[M].timeline === this || f && this._contains(C[M])) && (b[F++] = C[M]);
|
|
583
583
|
return G && this._enabled(!1, !0), b;
|
|
584
584
|
}, H.recent = function() {
|
|
@@ -617,7 +617,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
617
617
|
if (m === this._gc)
|
|
618
618
|
for (var C = this._first; C; )
|
|
619
619
|
C._enabled(m, !0), C = C._next;
|
|
620
|
-
return
|
|
620
|
+
return pt.prototype._enabled.call(this, m, f);
|
|
621
621
|
}, H.totalTime = function(m, f, C) {
|
|
622
622
|
this._forcingPlayhead = !0;
|
|
623
623
|
var M = p.prototype.totalTime.apply(this, arguments);
|
|
@@ -651,14 +651,14 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
651
651
|
), Ke._gsDefine(
|
|
652
652
|
"TimelineMax",
|
|
653
653
|
["TimelineLite", "TweenLite", "easing.Ease"],
|
|
654
|
-
function(p,
|
|
654
|
+
function(p, pt, Y) {
|
|
655
655
|
var ft = function(ct) {
|
|
656
656
|
p.call(this, ct), this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._cycle = 0, this._yoyo = this.vars.yoyo === !0, this._dirty = !0;
|
|
657
|
-
}, at = 1e-10, x =
|
|
657
|
+
}, at = 1e-10, x = pt._internals, mt = x.lazyTweens, Ct = x.lazyRender, Z = Ke._gsDefine.globals, ht = new Y(null, null, 1, 0), wt = ft.prototype = new p();
|
|
658
658
|
return wt.constructor = ft, wt.kill()._gc = !1, ft.version = "2.0.2", wt.invalidate = function() {
|
|
659
659
|
return this._yoyo = this.vars.yoyo === !0, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._uncache(!0), p.prototype.invalidate.call(this);
|
|
660
660
|
}, wt.addCallback = function(ct, Pt, Ot, xt) {
|
|
661
|
-
return this.add(
|
|
661
|
+
return this.add(pt.delayedCall(0, ct, Ot, xt), Pt);
|
|
662
662
|
}, wt.removeCallback = function(ct, Pt) {
|
|
663
663
|
if (ct)
|
|
664
664
|
if (Pt == null)
|
|
@@ -676,7 +676,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
676
676
|
useFrames: this.usesFrames(),
|
|
677
677
|
immediateRender: !1,
|
|
678
678
|
lazy: !1
|
|
679
|
-
}, m = Pt.repeat &&
|
|
679
|
+
}, m = Pt.repeat && Z.TweenMax || pt;
|
|
680
680
|
for (xt in Pt)
|
|
681
681
|
H[xt] = Pt[xt];
|
|
682
682
|
return H.time = this._parseTimeOrLabel(ct), Ot = Math.abs(Number(H.time) - this._time) / this._timeScale || 1e-3, Q = new m(this, Ot, H), H.onStart = function() {
|
|
@@ -805,16 +805,16 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
805
805
|
},
|
|
806
806
|
!0
|
|
807
807
|
), function() {
|
|
808
|
-
var p = 180 / Math.PI,
|
|
808
|
+
var p = 180 / Math.PI, pt = [], Y = [], ft = [], at = {}, x = Ke._gsDefine.globals, mt = function(m, f, C, M) {
|
|
809
809
|
C === M && (C = M - (M - f) / 1e6), m === f && (f = m + (C - m) / 1e6), this.a = m, this.b = f, this.c = C, this.d = M, this.da = M - m, this.ca = C - m, this.ba = f - m;
|
|
810
|
-
}, Ct = ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",
|
|
810
|
+
}, Ct = ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,", Z = function(m, f, C, M) {
|
|
811
811
|
var G = { a: m }, b = {}, F = {}, q = { c: M }, st = (m + f) / 2, it = (f + C) / 2, Lt = (C + M) / 2, bt = (st + it) / 2, Gt = (it + Lt) / 2, Vt = (Gt - bt) / 8;
|
|
812
812
|
return G.b = st + (m - st) / 4, b.b = bt + Vt, G.c = b.a = (G.b + b.b) / 2, b.c = F.a = (bt + Gt) / 2, F.b = Gt - Vt, q.b = Lt + (M - Lt) / 4, F.c = q.a = (F.b + q.b) / 2, [G, b, F, q];
|
|
813
813
|
}, ht = function(m, f, C, M, G) {
|
|
814
814
|
var b, F, q, st, it, Lt, bt, Gt, Vt, ie, ut, kt, Me, mi = m.length - 1, Rt = 0, Ue = m[0].a;
|
|
815
815
|
for (b = 0; mi > b; b++)
|
|
816
|
-
it = m[Rt], F = it.a, q = it.d, st = m[Rt + 1].d, G ? (ut =
|
|
817
|
-
it = m[Rt], it.b = Ue, it.c = Ue + 0.4 * (it.d - Ue), it.da = it.d - it.a, it.ca = it.c - it.a, it.ba = Ue - it.a, C && (ie =
|
|
816
|
+
it = m[Rt], F = it.a, q = it.d, st = m[Rt + 1].d, G ? (ut = pt[b], kt = Y[b], Me = (kt + ut) * f * 0.25 / (M ? 0.5 : ft[b] || 0.5), Lt = q - (q - F) * (M ? 0.5 * f : ut !== 0 ? Me / ut : 0), bt = q + (st - q) * (M ? 0.5 * f : kt !== 0 ? Me / kt : 0), Gt = q - (Lt + ((bt - Lt) * (3 * ut / (ut + kt) + 0.5) / 4 || 0))) : (Lt = q - (q - F) * f * 0.5, bt = q + (st - q) * f * 0.5, Gt = q - (Lt + bt) / 2), Lt += Gt, bt += Gt, it.c = Vt = Lt, b !== 0 ? it.b = Ue : it.b = Ue = it.a + 0.6 * (it.c - it.a), it.da = q - F, it.ca = Vt - F, it.ba = Ue - F, C ? (ie = Z(F, Ue, Vt, q), m.splice(Rt, 1, ie[0], ie[1], ie[2], ie[3]), Rt += 4) : Rt++, Ue = bt;
|
|
817
|
+
it = m[Rt], it.b = Ue, it.c = Ue + 0.4 * (it.d - Ue), it.da = it.d - it.a, it.ca = it.c - it.a, it.ba = Ue - it.a, C && (ie = Z(it.a, Ue, it.c, it.d), m.splice(Rt, 1, ie[0], ie[1], ie[2], ie[3]));
|
|
818
818
|
}, wt = function(m, f, C, M) {
|
|
819
819
|
var G, b, F, q, st, it, Lt = [];
|
|
820
820
|
if (M)
|
|
@@ -823,7 +823,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
823
823
|
if (G = m.length - 2, 0 > G)
|
|
824
824
|
return Lt[0] = new mt(m[0][f], 0, 0, m[0][f]), Lt;
|
|
825
825
|
for (b = 0; G > b; b++)
|
|
826
|
-
F = m[b][f], q = m[b + 1][f], Lt[b] = new mt(F, 0, 0, q), C && (st = m[b + 2][f],
|
|
826
|
+
F = m[b][f], q = m[b + 1][f], Lt[b] = new mt(F, 0, 0, q), C && (st = m[b + 2][f], pt[b] = (pt[b] || 0) + (q - F) * (q - F), Y[b] = (Y[b] || 0) + (st - q) * (st - q));
|
|
827
827
|
return Lt[b] = new mt(m[b][f], 0, 0, m[b + 1][f]), Lt;
|
|
828
828
|
}, ct = function(m, f, C, M, G, b) {
|
|
829
829
|
var F, q, st, it, Lt, bt, Gt, Vt, ie = {}, ut = [], kt = b || m[0];
|
|
@@ -838,15 +838,15 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
838
838
|
}
|
|
839
839
|
Gt && (m = m.concat(), b && m.unshift(b), m.push(m[1]), b = m[m.length - 3]);
|
|
840
840
|
}
|
|
841
|
-
for (
|
|
841
|
+
for (pt.length = Y.length = ft.length = 0, F = ut.length; --F > -1; )
|
|
842
842
|
q = ut[F], at[q] = G.indexOf("," + q + ",") !== -1, ie[q] = wt(m, q, at[q], b);
|
|
843
|
-
for (F =
|
|
844
|
-
|
|
843
|
+
for (F = pt.length; --F > -1; )
|
|
844
|
+
pt[F] = Math.sqrt(pt[F]), Y[F] = Math.sqrt(Y[F]);
|
|
845
845
|
if (!M) {
|
|
846
846
|
for (F = ut.length; --F > -1; )
|
|
847
847
|
if (at[q])
|
|
848
848
|
for (st = ie[ut[F]], bt = st.length - 1, it = 0; bt > it; it++)
|
|
849
|
-
Lt = st[it + 1].da /
|
|
849
|
+
Lt = st[it + 1].da / Y[it] + st[it].da / pt[it] || 0, ft[it] = (ft[it] || 0) + Lt * Lt;
|
|
850
850
|
for (F = ft.length; --F > -1; )
|
|
851
851
|
ft[F] = Math.sqrt(ft[F]);
|
|
852
852
|
}
|
|
@@ -946,7 +946,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
}), H = Q.prototype;
|
|
949
|
-
Q.bezierThrough = ct, Q.cubicToQuadratic =
|
|
949
|
+
Q.bezierThrough = ct, Q.cubicToQuadratic = Z, Q._autoCSS = !0, Q.quadraticToCubic = function(m, f, C) {
|
|
950
950
|
return new mt(m, (2 * f + m) / 3, (2 * f + C) / 3, C);
|
|
951
951
|
}, Q._cssRegister = function() {
|
|
952
952
|
var m = x.CSSPlugin;
|
|
@@ -983,10 +983,10 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
983
983
|
}(), Ke._gsDefine(
|
|
984
984
|
"plugins.CSSPlugin",
|
|
985
985
|
["plugins.TweenPlugin", "TweenLite"],
|
|
986
|
-
function(p,
|
|
987
|
-
var
|
|
986
|
+
function(p, pt) {
|
|
987
|
+
var Y, ft, at, x, mt = function() {
|
|
988
988
|
p.call(this, "css"), this._overwriteProps.length = 0, this.setRatio = mt.prototype.setRatio;
|
|
989
|
-
}, Ct = Ke._gsDefine.globals,
|
|
989
|
+
}, Ct = Ke._gsDefine.globals, Z = {}, ht = mt.prototype = new p("css");
|
|
990
990
|
ht.constructor = mt, mt.version = "2.0.2", mt.API = 2, mt.defaultTransformPerspective = 0, mt.defaultSkewType = "compensated", mt.defaultSmoothOrigin = !0, ht = "px", mt.suffixMap = {
|
|
991
991
|
top: ht,
|
|
992
992
|
right: ht,
|
|
@@ -1008,7 +1008,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1008
1008
|
}
|
|
1009
1009
|
}, fe = function(v, E) {
|
|
1010
1010
|
return ni.createElementNS ? ni.createElementNS(E || "http://www.w3.org/1999/xhtml", v) : ni.createElement(v);
|
|
1011
|
-
}, Ze = fe("div"), Li = fe("img"), Re = mt._internals = { _specialProps:
|
|
1011
|
+
}, Ze = fe("div"), Li = fe("img"), Re = mt._internals = { _specialProps: Z }, ke = (Ke.navigator || {}).userAgent || "", Qe = function() {
|
|
1012
1012
|
var v = ke.indexOf("Android"), E = fe("a");
|
|
1013
1013
|
return Pt = ke.indexOf("Safari") !== -1 && ke.indexOf("Chrome") === -1 && (v === -1 || parseFloat(ke.substr(v + 8, 2)) > 3), xt = Pt && parseFloat(ke.substr(ke.indexOf("Version/") + 8, 2)) < 6, Ot = ke.indexOf("Firefox") !== -1, (/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(ke) || /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(ke)) && (Q = parseFloat(RegExp.$1)), E ? (E.style.cssText = "top:1px;opacity:.55;", /^0.55/.test(E.style.opacity)) : !1;
|
|
1014
1014
|
}(), xr = function(v) {
|
|
@@ -1042,7 +1042,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1042
1042
|
if (W.cssText = "border:0 solid red;position:" + Ce(v, "position") + ";line-height:0;", L !== "%" && et.appendChild && L.charAt(0) !== "v" && L !== "rem")
|
|
1043
1043
|
W[nt ? "borderLeftWidth" : "borderTopWidth"] = R + L;
|
|
1044
1044
|
else {
|
|
1045
|
-
if (et = v.parentNode || ni.body, Ce(et, "display").indexOf("flex") !== -1 && (W.position = "absolute"), O = et._gsCache, K =
|
|
1045
|
+
if (et = v.parentNode || ni.body, Ce(et, "display").indexOf("flex") !== -1 && (W.position = "absolute"), O = et._gsCache, K = pt.ticker.frame, O && nt && O.time === K)
|
|
1046
1046
|
return O.width * R / 100;
|
|
1047
1047
|
W[nt ? "width" : "height"] = R + L;
|
|
1048
1048
|
}
|
|
@@ -1106,7 +1106,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1106
1106
|
}, Tt = function(v, E, R, L) {
|
|
1107
1107
|
var y, X, O, K, nt, et = 1e-6;
|
|
1108
1108
|
return typeof v == "function" && (v = v(m, H)), v == null ? K = E : typeof v == "number" ? K = v : (y = 360, X = v.split("_"), nt = v.charAt(1) === "=", O = (nt ? parseInt(v.charAt(0) + "1", 10) * parseFloat(X[0].substr(2)) : parseFloat(X[0])) * (v.indexOf("rad") === -1 ? 1 : Ue) - (nt ? 0 : E), X.length && (L && (L[R] = E + O), v.indexOf("short") !== -1 && (O %= y, O !== O % (y / 2) && (O = 0 > O ? O + y : O - y)), v.indexOf("_cw") !== -1 && 0 > O ? O = (O + 9999999999 * y) % y - (O / y | 0) * y : v.indexOf("ccw") !== -1 && O > 0 && (O = (O - 9999999999 * y) % y - (O / y | 0) * y)), K = E + O), et > K && K > -et && (K = 0), K;
|
|
1109
|
-
},
|
|
1109
|
+
}, dt = {
|
|
1110
1110
|
aqua: [0, 255, 255],
|
|
1111
1111
|
lime: [0, 255, 0],
|
|
1112
1112
|
silver: [192, 192, 192],
|
|
@@ -1135,8 +1135,8 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1135
1135
|
if (typeof v == "number")
|
|
1136
1136
|
R = [v >> 16, v >> 8 & 255, 255 & v];
|
|
1137
1137
|
else {
|
|
1138
|
-
if (v.charAt(v.length - 1) === "," && (v = v.substr(0, v.length - 1)),
|
|
1139
|
-
R =
|
|
1138
|
+
if (v.charAt(v.length - 1) === "," && (v = v.substr(0, v.length - 1)), dt[v])
|
|
1139
|
+
R = dt[v];
|
|
1140
1140
|
else if (v.charAt(0) === "#")
|
|
1141
1141
|
v.length === 4 && (L = v.charAt(1), y = v.charAt(2), X = v.charAt(3), v = "#" + L + L + y + y + X + X), v = parseInt(v.substr(1), 16), R = [v >> 16, v >> 8 & 255, 255 & v];
|
|
1142
1142
|
else if (v.substr(0, 3) === "hsl")
|
|
@@ -1146,11 +1146,11 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1146
1146
|
} else
|
|
1147
1147
|
O = Number(R[0]) % 360 / 360, K = Number(R[1]) / 100, nt = Number(R[2]) / 100, y = 0.5 >= nt ? nt * (K + 1) : nt + K - nt * K, L = 2 * nt - y, R.length > 3 && (R[3] = Number(R[3])), R[0] = ae(O + 1 / 3, L, y), R[1] = ae(O, L, y), R[2] = ae(O - 1 / 3, L, y);
|
|
1148
1148
|
else
|
|
1149
|
-
R = v.match(f) ||
|
|
1149
|
+
R = v.match(f) || dt.transparent;
|
|
1150
1150
|
R[0] = Number(R[0]), R[1] = Number(R[1]), R[2] = Number(R[2]), R.length > 3 && (R[3] = Number(R[3]));
|
|
1151
1151
|
}
|
|
1152
1152
|
else
|
|
1153
|
-
R =
|
|
1153
|
+
R = dt.black;
|
|
1154
1154
|
return E && !Et && (L = R[0] / 255, y = R[1] / 255, X = R[2] / 255, et = Math.max(L, y, X), W = Math.min(L, y, X), nt = (et + W) / 2, et === W ? O = K = 0 : (St = et - W, K = nt > 0.5 ? St / (2 - et - W) : St / (et + W), O = et === L ? (y - X) / St + (X > y ? 6 : 0) : et === y ? (X - L) / St + 2 : (L - y) / St + 4, O *= 60), R[0] = O + 0.5 | 0, R[1] = 100 * K + 0.5 | 0, R[2] = 100 * nt + 0.5 | 0), R;
|
|
1155
1155
|
}, Ut = function(v, E) {
|
|
1156
1156
|
var R, L, y, X = v.match(he) || [], O = 0, K = "";
|
|
@@ -1160,12 +1160,12 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1160
1160
|
L = X[R], y = v.substr(O, v.indexOf(L, O) - O), O += y.length + L.length, L = se(L, E), L.length === 3 && L.push(1), K += y + (E ? "hsla(" + L[0] + "," + L[1] + "%," + L[2] + "%," + L[3] : "rgba(" + L.join(",")) + ")";
|
|
1161
1161
|
return K + v.substr(O);
|
|
1162
1162
|
}, he = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";
|
|
1163
|
-
for (ht in
|
|
1163
|
+
for (ht in dt)
|
|
1164
1164
|
he += "|" + ht + "\\b";
|
|
1165
1165
|
he = new RegExp(he + ")", "gi"), mt.colorStringFilter = function(v) {
|
|
1166
1166
|
var E, R = v[0] + " " + v[1];
|
|
1167
1167
|
he.test(R) && (E = R.indexOf("hsl(") !== -1 || R.indexOf("hsla(") !== -1, v[0] = Ut(v[0], E), v[1] = Ut(v[1], E)), he.lastIndex = 0;
|
|
1168
|
-
},
|
|
1168
|
+
}, pt.defaultStringFilter || (pt.defaultStringFilter = mt.colorStringFilter);
|
|
1169
1169
|
var De = function(v, E, R, L) {
|
|
1170
1170
|
if (v == null)
|
|
1171
1171
|
return function(Et) {
|
|
@@ -1236,7 +1236,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1236
1236
|
}
|
|
1237
1237
|
return { proxy: Et, end: yt, firstMPT: et, pt: W };
|
|
1238
1238
|
}, Re.CSSPropTween = function(v, E, R, L, y, X, O, K, nt, et, W) {
|
|
1239
|
-
this.t = v, this.p = E, this.s = R, this.c = L, this.n = O || E, v instanceof je || x.push(this.n), this.r = K && (typeof K == "function" ? K : Math.round), this.type = X || 0, nt && (this.pr = nt,
|
|
1239
|
+
this.t = v, this.p = E, this.s = R, this.c = L, this.n = O || E, v instanceof je || x.push(this.n), this.r = K && (typeof K == "function" ? K : Math.round), this.type = X || 0, nt && (this.pr = nt, Y = !0), this.b = et === void 0 ? R : et, this.e = W === void 0 ? R + L : W, y && (this._next = y, y._prev = this);
|
|
1240
1240
|
}), fr = function(v, E, R, L, y, X) {
|
|
1241
1241
|
var O = new je(v, E, R, L - R, y, -1, X);
|
|
1242
1242
|
return O.b = R, O.e = O.xs0 = L, O;
|
|
@@ -1326,19 +1326,19 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1326
1326
|
), O.xfirst.xs0 = 0), O) : (O.data = { s: E + R }, O.rxp = {}, O.s = E, O.c = R, O.r = y, O)) : (O["xs" + K] += E + (L || ""), O);
|
|
1327
1327
|
};
|
|
1328
1328
|
var In = function(v, E) {
|
|
1329
|
-
E = E || {}, this.p = E.prefix && tr(v) || v,
|
|
1329
|
+
E = E || {}, this.p = E.prefix && tr(v) || v, Z[v] = Z[this.p] = this, this.format = E.formatter || De(E.defaultValue, E.color, E.collapsible, E.multi), E.parser && (this.parse = E.parser), this.clrs = E.color, this.multi = E.multi, this.keyword = E.keyword, this.dflt = E.defaultValue, this.pr = E.priority || 0;
|
|
1330
1330
|
}, Je = Re._registerComplexSpecialProp = function(v, E, R) {
|
|
1331
1331
|
typeof E != "object" && (E = { parser: R });
|
|
1332
1332
|
var L, y = v.split(","), X = E.defaultValue;
|
|
1333
1333
|
for (R = R || [X], L = 0; L < y.length; L++)
|
|
1334
1334
|
E.prefix = L === 0 && E.prefix, E.defaultValue = R[L] || X, new In(y[L], E);
|
|
1335
1335
|
}, ts = Re._registerPluginProp = function(v) {
|
|
1336
|
-
if (!
|
|
1336
|
+
if (!Z[v]) {
|
|
1337
1337
|
var E = v.charAt(0).toUpperCase() + v.substr(1) + "Plugin";
|
|
1338
1338
|
Je(v, {
|
|
1339
1339
|
parser: function(R, L, y, X, O, K, nt) {
|
|
1340
1340
|
var et = Ct.com.greensock.plugins[E];
|
|
1341
|
-
return et ? (et._cssRegister(),
|
|
1341
|
+
return et ? (et._cssRegister(), Z[y].parse(R, L, y, X, O, K, nt)) : (Lr("Error: " + E + " js file not loaded."), O);
|
|
1342
1342
|
}
|
|
1343
1343
|
});
|
|
1344
1344
|
}
|
|
@@ -1451,9 +1451,9 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1451
1451
|
for (X in W)
|
|
1452
1452
|
W[X] < Et && W[X] > -Et && (W[X] = 0);
|
|
1453
1453
|
}
|
|
1454
|
-
return R && (v._gsTransform = W, W.svg && (ir && v.style[ci] ?
|
|
1454
|
+
return R && (v._gsTransform = W, W.svg && (ir && v.style[ci] ? pt.delayedCall(1e-3, function() {
|
|
1455
1455
|
Rr(v.style, ci);
|
|
1456
|
-
}) : !ir && v.getAttribute("transform") &&
|
|
1456
|
+
}) : !ir && v.getAttribute("transform") && pt.delayedCall(1e-3, function() {
|
|
1457
1457
|
v.removeAttribute("transform");
|
|
1458
1458
|
}))), W;
|
|
1459
1459
|
}, rs = function(v) {
|
|
@@ -1722,7 +1722,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1722
1722
|
Je("className", {
|
|
1723
1723
|
parser: function(v, E, R, L, y, X, O) {
|
|
1724
1724
|
var K, nt, et, W, St, Et = v.getAttribute("class") || "", yt = v.style.cssText;
|
|
1725
|
-
if (y = L._classNamePT = new je(v, R, 0, 0, y, 2), y.setRatio = Cr, y.pr = -11,
|
|
1725
|
+
if (y = L._classNamePT = new je(v, R, 0, 0, y, 2), y.setRatio = Cr, y.pr = -11, Y = !0, y.b = Et, nt = er(v, at), et = v._gsClassPT) {
|
|
1726
1726
|
for (W = {}, St = et.data; St; )
|
|
1727
1727
|
W[St.p] = 1, St = St._next;
|
|
1728
1728
|
et.setRatio(1);
|
|
@@ -1735,27 +1735,27 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1735
1735
|
});
|
|
1736
1736
|
var To = function(v) {
|
|
1737
1737
|
if ((v === 1 || v === 0) && this.data._totalTime === this.data._totalDuration && this.data.data !== "isFromStart") {
|
|
1738
|
-
var E, R, L, y, X, O = this.t.style, K =
|
|
1738
|
+
var E, R, L, y, X, O = this.t.style, K = Z.transform.parse;
|
|
1739
1739
|
if (this.e === "all")
|
|
1740
1740
|
O.cssText = "", y = !0;
|
|
1741
1741
|
else
|
|
1742
1742
|
for (E = this.e.split(" ").join("").split(","), L = E.length; --L > -1; )
|
|
1743
|
-
R = E[L],
|
|
1743
|
+
R = E[L], Z[R] && (Z[R].parse === K ? y = !0 : R = R === "transformOrigin" ? br : Z[R].p), Rr(O, R);
|
|
1744
1744
|
y && (Rr(O, ci), X = this.t._gsTransform, X && (X.svg && (this.t.removeAttribute("data-svg-origin"), this.t.removeAttribute("transform")), delete this.t._gsTransform));
|
|
1745
1745
|
}
|
|
1746
1746
|
};
|
|
1747
1747
|
for (Je("clearProps", {
|
|
1748
1748
|
parser: function(v, E, R, L, y) {
|
|
1749
|
-
return y = new je(v, R, 0, 0, y, 2), y.setRatio = To, y.e = E, y.pr = -10, y.data = L._tween,
|
|
1749
|
+
return y = new je(v, R, 0, 0, y, 2), y.setRatio = To, y.e = E, y.pr = -10, y.data = L._tween, Y = !0, y;
|
|
1750
1750
|
}
|
|
1751
1751
|
}), ht = "bezier,throwProps,physicsProps,physics2D".split(","), oi = ht.length; oi--; )
|
|
1752
1752
|
ts(ht[oi]);
|
|
1753
1753
|
ht = mt.prototype, ht._firstPT = ht._lastParsedTransform = ht._transform = null, ht._onInitTween = function(v, E, R, L) {
|
|
1754
1754
|
if (!v.nodeType)
|
|
1755
1755
|
return !1;
|
|
1756
|
-
this._target = H = v, this._tween = R, this._vars = E, m = L, wt = E.autoRound,
|
|
1756
|
+
this._target = H = v, this._tween = R, this._vars = E, m = L, wt = E.autoRound, Y = !1, ft = E.suffixMap || mt.suffixMap, at = li(v, ""), x = this._overwriteProps;
|
|
1757
1757
|
var y, X, O, K, nt, et, W, St, Et, yt = v.style;
|
|
1758
|
-
if (ct && yt.zIndex === "" && (y = Ce(v, "zIndex", at), (y === "auto" || y === "") && this._addLazySet(yt, "zIndex", 0)), typeof E == "string" && (K = yt.cssText, y = er(v, at), yt.cssText = K + ";" + E, y = bi(v, y, er(v)).difs, !Qe && q.test(E) && (y.opacity = parseFloat(RegExp.$1)), E = y, yt.cssText = K), E.className ? this._firstPT = X =
|
|
1758
|
+
if (ct && yt.zIndex === "" && (y = Ce(v, "zIndex", at), (y === "auto" || y === "") && this._addLazySet(yt, "zIndex", 0)), typeof E == "string" && (K = yt.cssText, y = er(v, at), yt.cssText = K + ";" + E, y = bi(v, y, er(v)).difs, !Qe && q.test(E) && (y.opacity = parseFloat(RegExp.$1)), E = y, yt.cssText = K), E.className ? this._firstPT = X = Z.className.parse(
|
|
1759
1759
|
v,
|
|
1760
1760
|
E.className,
|
|
1761
1761
|
"className",
|
|
@@ -1772,7 +1772,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1772
1772
|
O = O._next;
|
|
1773
1773
|
St = new je(v, "transform", 0, 0, null, 2), this._linkCSSP(St, null, O), St.setRatio = ci ? ns : rs, St.data = this._transform || nr(v, at, !0), St.tween = R, St.pr = -1, x.pop();
|
|
1774
1774
|
}
|
|
1775
|
-
if (
|
|
1775
|
+
if (Y) {
|
|
1776
1776
|
for (; X; ) {
|
|
1777
1777
|
for (et = X._next, O = K; O && O.pr > X.pr; )
|
|
1778
1778
|
O = O._next;
|
|
@@ -1784,7 +1784,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1784
1784
|
}, ht.parse = function(v, E, R, L) {
|
|
1785
1785
|
var y, X, O, K, nt, et, W, St, Et, yt, Nt = v.style;
|
|
1786
1786
|
for (y in E) {
|
|
1787
|
-
if (et = E[y], typeof et == "function" && (et = et(m, H)), X =
|
|
1787
|
+
if (et = E[y], typeof et == "function" && (et = et(m, H)), X = Z[y])
|
|
1788
1788
|
R = X.parse(v, et, y, this, R, L, E);
|
|
1789
1789
|
else {
|
|
1790
1790
|
if (y.substr(0, 2) === "--") {
|
|
@@ -1912,7 +1912,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1912
1912
|
X = L[y], O = X.type, X.style && (E.push(er(X)), R && R.push(X)), O !== 1 && O !== 9 && O !== 11 || !X.childNodes.length || Tr(X, E, R);
|
|
1913
1913
|
};
|
|
1914
1914
|
return mt.cascadeTo = function(v, E, R) {
|
|
1915
|
-
var L, y, X, O, K =
|
|
1915
|
+
var L, y, X, O, K = pt.to(v, E, R), nt = [K], et = [], W = [], St = [], Et = pt._internals.reservedProps;
|
|
1916
1916
|
for (v = K._targets || K.target, Tr(v, et, St), K.render(E, !0, !0), Tr(v, W), K.render(0, !0, !0), K._enabled(!0), L = St.length; --L > -1; )
|
|
1917
1917
|
if (y = bi(St[L], et[L], W[L]), y.firstMPT) {
|
|
1918
1918
|
y = y.difs;
|
|
@@ -1921,7 +1921,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1921
1921
|
O = {};
|
|
1922
1922
|
for (X in y)
|
|
1923
1923
|
O[X] = et[L][X];
|
|
1924
|
-
nt.push(
|
|
1924
|
+
nt.push(pt.fromTo(St[L], E, O, y));
|
|
1925
1925
|
}
|
|
1926
1926
|
return nt;
|
|
1927
1927
|
}, p.activate([mt]), mt;
|
|
@@ -1936,41 +1936,41 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1936
1936
|
init: function(at, x, mt) {
|
|
1937
1937
|
return this._tween = mt, !0;
|
|
1938
1938
|
}
|
|
1939
|
-
}),
|
|
1939
|
+
}), pt = function(at) {
|
|
1940
1940
|
var x = 1 > at ? Math.pow(10, (at + "").length - 2) : 1;
|
|
1941
1941
|
return function(mt) {
|
|
1942
1942
|
return (Math.round(mt / at) * at * x | 0) / x;
|
|
1943
1943
|
};
|
|
1944
|
-
},
|
|
1944
|
+
}, Y = function(at, x) {
|
|
1945
1945
|
for (; at; )
|
|
1946
1946
|
at.f || at.blob || (at.m = x || Math.round), at = at._next;
|
|
1947
1947
|
}, ft = p.prototype;
|
|
1948
1948
|
ft._onInitAllProps = function() {
|
|
1949
|
-
var at, x, mt, Ct,
|
|
1949
|
+
var at, x, mt, Ct, Z = this._tween, ht = Z.vars.roundProps, wt = {}, ct = Z._propLookup.roundProps;
|
|
1950
1950
|
if (typeof ht != "object" || ht.push)
|
|
1951
1951
|
for (typeof ht == "string" && (ht = ht.split(",")), mt = ht.length; --mt > -1; )
|
|
1952
1952
|
wt[ht[mt]] = Math.round;
|
|
1953
1953
|
else
|
|
1954
1954
|
for (Ct in ht)
|
|
1955
|
-
wt[Ct] =
|
|
1955
|
+
wt[Ct] = pt(ht[Ct]);
|
|
1956
1956
|
for (Ct in wt)
|
|
1957
|
-
for (at =
|
|
1958
|
-
x = at._next, at.pg ? at.t._mod(wt) : at.n === Ct && (at.f === 2 && at.t ?
|
|
1957
|
+
for (at = Z._firstPT; at; )
|
|
1958
|
+
x = at._next, at.pg ? at.t._mod(wt) : at.n === Ct && (at.f === 2 && at.t ? Y(at.t._firstPT, wt[Ct]) : (this._add(at.t, Ct, at.s, at.c, wt[Ct]), x && (x._prev = at._prev), at._prev ? at._prev._next = x : Z._firstPT === at && (Z._firstPT = x), at._next = at._prev = null, Z._propLookup[Ct] = ct)), at = x;
|
|
1959
1959
|
return !1;
|
|
1960
|
-
}, ft._add = function(at, x, mt, Ct,
|
|
1961
|
-
this._addTween(at, x, mt, mt + Ct, x,
|
|
1960
|
+
}, ft._add = function(at, x, mt, Ct, Z) {
|
|
1961
|
+
this._addTween(at, x, mt, mt + Ct, x, Z || Math.round), this._overwriteProps.push(x);
|
|
1962
1962
|
};
|
|
1963
1963
|
}(), function() {
|
|
1964
1964
|
Ke._gsDefine.plugin({
|
|
1965
1965
|
propName: "attr",
|
|
1966
1966
|
API: 2,
|
|
1967
1967
|
version: "0.6.1",
|
|
1968
|
-
init: function(p,
|
|
1968
|
+
init: function(p, pt, Y, ft) {
|
|
1969
1969
|
var at, x;
|
|
1970
1970
|
if (typeof p.setAttribute != "function")
|
|
1971
1971
|
return !1;
|
|
1972
|
-
for (at in
|
|
1973
|
-
x =
|
|
1972
|
+
for (at in pt)
|
|
1973
|
+
x = pt[at], typeof x == "function" && (x = x(ft, p)), this._addTween(
|
|
1974
1974
|
p,
|
|
1975
1975
|
"setAttribute",
|
|
1976
1976
|
p.getAttribute(at) + "",
|
|
@@ -1986,28 +1986,28 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1986
1986
|
propName: "directionalRotation",
|
|
1987
1987
|
version: "0.3.1",
|
|
1988
1988
|
API: 2,
|
|
1989
|
-
init: function(p,
|
|
1990
|
-
typeof
|
|
1991
|
-
var at, x, mt, Ct,
|
|
1992
|
-
for (at in
|
|
1993
|
-
at !== "useRadians" && (Ct =
|
|
1989
|
+
init: function(p, pt, Y, ft) {
|
|
1990
|
+
typeof pt != "object" && (pt = { rotation: pt }), this.finals = {};
|
|
1991
|
+
var at, x, mt, Ct, Z, ht, wt = pt.useRadians === !0 ? 2 * Math.PI : 360, ct = 1e-6;
|
|
1992
|
+
for (at in pt)
|
|
1993
|
+
at !== "useRadians" && (Ct = pt[at], typeof Ct == "function" && (Ct = Ct(ft, p)), ht = (Ct + "").split("_"), x = ht[0], mt = parseFloat(
|
|
1994
1994
|
typeof p[at] != "function" ? p[at] : p[at.indexOf("set") || typeof p["get" + at.substr(3)] != "function" ? at : "get" + at.substr(3)]()
|
|
1995
|
-
), Ct = this.finals[at] = typeof x == "string" && x.charAt(1) === "=" ? mt + parseInt(x.charAt(0) + "1", 10) * Number(x.substr(2)) : Number(x) || 0,
|
|
1995
|
+
), Ct = this.finals[at] = typeof x == "string" && x.charAt(1) === "=" ? mt + parseInt(x.charAt(0) + "1", 10) * Number(x.substr(2)) : Number(x) || 0, Z = Ct - mt, ht.length && (x = ht.join("_"), x.indexOf("short") !== -1 && (Z %= wt, Z !== Z % (wt / 2) && (Z = 0 > Z ? Z + wt : Z - wt)), x.indexOf("_cw") !== -1 && 0 > Z ? Z = (Z + 9999999999 * wt) % wt - (Z / wt | 0) * wt : x.indexOf("ccw") !== -1 && Z > 0 && (Z = (Z - 9999999999 * wt) % wt - (Z / wt | 0) * wt)), (Z > ct || -ct > Z) && (this._addTween(p, at, mt, mt + Z, at), this._overwriteProps.push(at)));
|
|
1996
1996
|
return !0;
|
|
1997
1997
|
},
|
|
1998
1998
|
set: function(p) {
|
|
1999
|
-
var
|
|
1999
|
+
var pt;
|
|
2000
2000
|
if (p !== 1)
|
|
2001
2001
|
this._super.setRatio.call(this, p);
|
|
2002
2002
|
else
|
|
2003
|
-
for (
|
|
2004
|
-
|
|
2003
|
+
for (pt = this._firstPT; pt; )
|
|
2004
|
+
pt.f ? pt.t[pt.p](this.finals[pt.p]) : pt.t[pt.p] = this.finals[pt.p], pt = pt._next;
|
|
2005
2005
|
}
|
|
2006
2006
|
})._autoCSS = !0, Ke._gsDefine(
|
|
2007
2007
|
"easing.Back",
|
|
2008
2008
|
["easing.Ease"],
|
|
2009
2009
|
function(p) {
|
|
2010
|
-
var
|
|
2010
|
+
var pt, Y, ft, at, x = Ke.GreenSockGlobals || Ke, mt = x.com.greensock, Ct = 2 * Math.PI, Z = Math.PI / 2, ht = mt._class, wt = function(f, C) {
|
|
2011
2011
|
var M = ht("easing." + f, function() {
|
|
2012
2012
|
}, !0), G = M.prototype = new p();
|
|
2013
2013
|
return G.constructor = M, G.getRatio = C, M;
|
|
@@ -2055,26 +2055,26 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2055
2055
|
return f < this._p1 ? this._calcEnd ? 1 - (f = 1 - f / this._p1) * f : C - (f = 1 - f / this._p1) * f * f * f * C : f > this._p3 ? this._calcEnd ? f === 1 ? 0 : 1 - (f = (f - this._p3) / this._p1) * f : C + (f - C) * (f = (f - this._p3) / this._p1) * f * f * f : this._calcEnd ? 1 : C;
|
|
2056
2056
|
}, H.ease = new H(0.7, 0.7), m.config = H.config = function(f, C, M) {
|
|
2057
2057
|
return new H(f, C, M);
|
|
2058
|
-
},
|
|
2058
|
+
}, pt = ht(
|
|
2059
2059
|
"easing.SteppedEase",
|
|
2060
2060
|
function(f, C) {
|
|
2061
2061
|
f = f || 1, this._p1 = 1 / f, this._p2 = f + (C ? 0 : 1), this._p3 = C ? 1 : 0;
|
|
2062
2062
|
},
|
|
2063
2063
|
!0
|
|
2064
|
-
), m =
|
|
2064
|
+
), m = pt.prototype = new p(), m.constructor = pt, m.getRatio = function(f) {
|
|
2065
2065
|
return 0 > f ? f = 0 : f >= 1 && (f = 0.999999999), ((this._p2 * f | 0) + this._p3) * this._p1;
|
|
2066
|
-
}, m.config =
|
|
2067
|
-
return new
|
|
2068
|
-
},
|
|
2066
|
+
}, m.config = pt.config = function(f, C) {
|
|
2067
|
+
return new pt(f, C);
|
|
2068
|
+
}, Y = ht(
|
|
2069
2069
|
"easing.ExpoScaleEase",
|
|
2070
2070
|
function(f, C, M) {
|
|
2071
2071
|
this._p1 = Math.log(C / f), this._p2 = C - f, this._p3 = f, this._ease = M;
|
|
2072
2072
|
},
|
|
2073
2073
|
!0
|
|
2074
|
-
), m =
|
|
2074
|
+
), m = Y.prototype = new p(), m.constructor = Y, m.getRatio = function(f) {
|
|
2075
2075
|
return this._ease && (f = this._ease.getRatio(f)), (this._p3 * Math.exp(this._p1 * f) - this._p3) / this._p2;
|
|
2076
|
-
}, m.config =
|
|
2077
|
-
return new
|
|
2076
|
+
}, m.config = Y.config = function(f, C, M) {
|
|
2077
|
+
return new Y(f, C, M);
|
|
2078
2078
|
}, ft = ht(
|
|
2079
2079
|
"easing.RoughEase",
|
|
2080
2080
|
function(f) {
|
|
@@ -2171,10 +2171,10 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2171
2171
|
), Pt(
|
|
2172
2172
|
"Sine",
|
|
2173
2173
|
wt("SineOut", function(f) {
|
|
2174
|
-
return Math.sin(f *
|
|
2174
|
+
return Math.sin(f * Z);
|
|
2175
2175
|
}),
|
|
2176
2176
|
wt("SineIn", function(f) {
|
|
2177
|
-
return -Math.cos(f *
|
|
2177
|
+
return -Math.cos(f * Z) + 1;
|
|
2178
2178
|
}),
|
|
2179
2179
|
wt("SineInOut", function(f) {
|
|
2180
2180
|
return -0.5 * (Math.cos(Math.PI * f) - 1);
|
|
@@ -2187,15 +2187,15 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2187
2187
|
}
|
|
2188
2188
|
},
|
|
2189
2189
|
!0
|
|
2190
|
-
), ct(x.SlowMo, "SlowMo", "ease,"), ct(ft, "RoughEase", "ease,"), ct(
|
|
2190
|
+
), ct(x.SlowMo, "SlowMo", "ease,"), ct(ft, "RoughEase", "ease,"), ct(pt, "SteppedEase", "ease,"), Q;
|
|
2191
2191
|
},
|
|
2192
2192
|
!0
|
|
2193
2193
|
);
|
|
2194
|
-
}), Ke._gsDefine && Ke._gsQueue.pop()(), function(p,
|
|
2195
|
-
var
|
|
2194
|
+
}), Ke._gsDefine && Ke._gsQueue.pop()(), function(p, pt) {
|
|
2195
|
+
var Y = {}, ft = p.document, at = p.GreenSockGlobals = p.GreenSockGlobals || p, x = at[pt];
|
|
2196
2196
|
if (x)
|
|
2197
2197
|
return typeof module < "u" && module.exports && (module.exports = x), x;
|
|
2198
|
-
var mt, Ct,
|
|
2198
|
+
var mt, Ct, Z, ht, wt, ct = function(_) {
|
|
2199
2199
|
var D, B = _.split("."), U = at;
|
|
2200
2200
|
for (D = 0; D < B.length; D++)
|
|
2201
2201
|
U[B[D]] = U = U[B[D]] || {};
|
|
@@ -2215,17 +2215,17 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2215
2215
|
this.sc = m[_] ? m[_].sc : [], m[_] = this, this.gsClass = null, this.func = B;
|
|
2216
2216
|
var $ = [];
|
|
2217
2217
|
this.check = function(gt) {
|
|
2218
|
-
for (var Tt,
|
|
2218
|
+
for (var Tt, dt, ae, se, Ut = D.length, he = Ut; --Ut > -1; )
|
|
2219
2219
|
(Tt = m[D[Ut]] || new f(D[Ut], [])).gsClass ? ($[Ut] = Tt.gsClass, he--) : gt && Tt.sc.push(this);
|
|
2220
2220
|
if (he === 0 && B) {
|
|
2221
|
-
if (
|
|
2222
|
-
if (at[ae] =
|
|
2223
|
-
if (_ ===
|
|
2224
|
-
module.exports =
|
|
2225
|
-
for (Ut in
|
|
2226
|
-
se[Ut] =
|
|
2221
|
+
if (dt = ("com.greensock." + _).split("."), ae = dt.pop(), se = ct(dt.join("."))[ae] = this.gsClass = B.apply(B, $), U)
|
|
2222
|
+
if (at[ae] = Y[ae] = se, typeof module < "u" && module.exports)
|
|
2223
|
+
if (_ === pt) {
|
|
2224
|
+
module.exports = Y[pt] = se;
|
|
2225
|
+
for (Ut in Y)
|
|
2226
|
+
se[Ut] = Y[Ut];
|
|
2227
2227
|
} else
|
|
2228
|
-
|
|
2228
|
+
Y[pt] && (Y[pt][ae] = se);
|
|
2229
2229
|
else
|
|
2230
2230
|
typeof define == "function" && define.amd && define(
|
|
2231
2231
|
(p.GreenSockAMDPath ? p.GreenSockAMDPath + "/" : "") + _.split(".").pop(),
|
|
@@ -2259,35 +2259,35 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2259
2259
|
},
|
|
2260
2260
|
!0
|
|
2261
2261
|
), F = b.map = {}, q = b.register = function(_, D, B, U) {
|
|
2262
|
-
for (var $, gt, Tt,
|
|
2262
|
+
for (var $, gt, Tt, dt, ae = D.split(","), se = ae.length, Ut = (B || "easeIn,easeOut,easeInOut").split(","); --se > -1; )
|
|
2263
2263
|
for (gt = ae[se], $ = U ? M("easing." + gt, null, !0) : Pt.easing[gt] || {}, Tt = Ut.length; --Tt > -1; )
|
|
2264
|
-
|
|
2264
|
+
dt = Ut[Tt], F[gt + "." + dt] = F[dt + gt] = $[dt] = _.getRatio ? _ : _[dt] || new _();
|
|
2265
2265
|
};
|
|
2266
|
-
for (
|
|
2266
|
+
for (Z = b.prototype, Z._calcEnd = !1, Z.getRatio = function(_) {
|
|
2267
2267
|
if (this._func)
|
|
2268
2268
|
return this._params[0] = _, this._func.apply(null, this._params);
|
|
2269
2269
|
var D = this._type, B = this._power, U = D === 1 ? 1 - _ : D === 2 ? _ : 0.5 > _ ? 2 * _ : 2 * (1 - _);
|
|
2270
2270
|
return B === 1 ? U *= U : B === 2 ? U *= U * U : B === 3 ? U *= U * U * U : B === 4 && (U *= U * U * U * U), D === 1 ? 1 - U : D === 2 ? U : 0.5 > _ ? U / 2 : 1 - U / 2;
|
|
2271
2271
|
}, mt = ["Linear", "Quad", "Cubic", "Quart", "Quint,Strong"], Ct = mt.length; --Ct > -1; )
|
|
2272
|
-
|
|
2272
|
+
Z = mt[Ct] + ",Power" + Ct, q(new b(null, null, 1, Ct), Z, "easeOut", !0), q(new b(null, null, 2, Ct), Z, "easeIn" + (Ct === 0 ? ",easeNone" : "")), q(new b(null, null, 3, Ct), Z, "easeInOut");
|
|
2273
2273
|
F.linear = Pt.easing.Linear.easeIn, F.swing = Pt.easing.Quad.easeInOut;
|
|
2274
2274
|
var st = M("events.EventDispatcher", function(_) {
|
|
2275
2275
|
this._listeners = {}, this._eventTarget = _ || this;
|
|
2276
2276
|
});
|
|
2277
|
-
|
|
2277
|
+
Z = st.prototype, Z.addEventListener = function(_, D, B, U, $) {
|
|
2278
2278
|
$ = $ || 0;
|
|
2279
|
-
var gt, Tt,
|
|
2280
|
-
for (this !== ht || wt || ht.wake(),
|
|
2281
|
-
gt =
|
|
2282
|
-
|
|
2283
|
-
},
|
|
2279
|
+
var gt, Tt, dt = this._listeners[_], ae = 0;
|
|
2280
|
+
for (this !== ht || wt || ht.wake(), dt == null && (this._listeners[_] = dt = []), Tt = dt.length; --Tt > -1; )
|
|
2281
|
+
gt = dt[Tt], gt.c === D && gt.s === B ? dt.splice(Tt, 1) : ae === 0 && gt.pr < $ && (ae = Tt + 1);
|
|
2282
|
+
dt.splice(ae, 0, { c: D, s: B, up: U, pr: $ });
|
|
2283
|
+
}, Z.removeEventListener = function(_, D) {
|
|
2284
2284
|
var B, U = this._listeners[_];
|
|
2285
2285
|
if (U) {
|
|
2286
2286
|
for (B = U.length; --B > -1; )
|
|
2287
2287
|
if (U[B].c === D)
|
|
2288
2288
|
return void U.splice(B, 1);
|
|
2289
2289
|
}
|
|
2290
|
-
},
|
|
2290
|
+
}, Z.dispatchEvent = function(_) {
|
|
2291
2291
|
var D, B, U, $ = this._listeners[_];
|
|
2292
2292
|
if ($)
|
|
2293
2293
|
for (D = $.length, D > 1 && ($ = $.slice(0)), B = this._eventTarget; --D > -1; )
|
|
@@ -2299,28 +2299,28 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2299
2299
|
for (mt = ["ms", "moz", "webkit", "o"], Ct = mt.length; --Ct > -1 && !it; )
|
|
2300
2300
|
it = p[mt[Ct] + "RequestAnimationFrame"], Lt = p[mt[Ct] + "CancelAnimationFrame"] || p[mt[Ct] + "CancelRequestAnimationFrame"];
|
|
2301
2301
|
M("Ticker", function(_, D) {
|
|
2302
|
-
var B, U, $, gt, Tt,
|
|
2302
|
+
var B, U, $, gt, Tt, dt = this, ae = bt(), se = D !== !1 && it ? "auto" : !1, Ut = 500, he = 33, De = "tick", We = function(be) {
|
|
2303
2303
|
var je, fr, Vi = bt() - Gt;
|
|
2304
|
-
Vi > Ut && (ae += Vi - he), Gt += Vi,
|
|
2304
|
+
Vi > Ut && (ae += Vi - he), Gt += Vi, dt.time = (Gt - ae) / 1e3, je = dt.time - Tt, (!B || je > 0 || be === !0) && (dt.frame++, Tt += je + (je >= gt ? 4e-3 : gt - je), fr = !0), be !== !0 && ($ = U(We)), fr && dt.dispatchEvent(De);
|
|
2305
2305
|
};
|
|
2306
|
-
st.call(
|
|
2306
|
+
st.call(dt), dt.time = dt.frame = 0, dt.tick = function() {
|
|
2307
2307
|
We(!0);
|
|
2308
|
-
},
|
|
2308
|
+
}, dt.lagSmoothing = function(be, je) {
|
|
2309
2309
|
return arguments.length ? (Ut = be || 1 / Ot, void (he = Math.min(je, Ut, 0))) : 1 / Ot > Ut;
|
|
2310
|
-
},
|
|
2311
|
-
$ != null && (se && Lt ? Lt($) : clearTimeout($), U = Q, $ = null,
|
|
2312
|
-
},
|
|
2313
|
-
$ !== null ?
|
|
2314
|
-
return setTimeout(je, 1e3 * (Tt -
|
|
2315
|
-
},
|
|
2316
|
-
},
|
|
2317
|
-
return arguments.length ? (B = be, gt = 1 / (B || 60), Tt = this.time + gt, void
|
|
2318
|
-
},
|
|
2319
|
-
return arguments.length ? (
|
|
2320
|
-
},
|
|
2321
|
-
se === "auto" &&
|
|
2310
|
+
}, dt.sleep = function() {
|
|
2311
|
+
$ != null && (se && Lt ? Lt($) : clearTimeout($), U = Q, $ = null, dt === ht && (wt = !1));
|
|
2312
|
+
}, dt.wake = function(be) {
|
|
2313
|
+
$ !== null ? dt.sleep() : be ? ae += -Gt + (Gt = bt()) : dt.frame > 10 && (Gt = bt() - Ut + 5), U = B === 0 ? Q : se && it ? it : function(je) {
|
|
2314
|
+
return setTimeout(je, 1e3 * (Tt - dt.time) + 1 | 0);
|
|
2315
|
+
}, dt === ht && (wt = !0), We(2);
|
|
2316
|
+
}, dt.fps = function(be) {
|
|
2317
|
+
return arguments.length ? (B = be, gt = 1 / (B || 60), Tt = this.time + gt, void dt.wake()) : B;
|
|
2318
|
+
}, dt.useRAF = function(be) {
|
|
2319
|
+
return arguments.length ? (dt.sleep(), se = be, void dt.fps(B)) : se;
|
|
2320
|
+
}, dt.fps(_), setTimeout(function() {
|
|
2321
|
+
se === "auto" && dt.frame < 5 && (ft || {}).visibilityState !== "hidden" && dt.useRAF(!1);
|
|
2322
2322
|
}, 1500);
|
|
2323
|
-
}),
|
|
2323
|
+
}), Z = Pt.Ticker.prototype = new Pt.events.EventDispatcher(), Z.constructor = Pt.Ticker;
|
|
2324
2324
|
var Vt = M("core.Animation", function(_, D) {
|
|
2325
2325
|
if (this.vars = D = D || {}, this._duration = this._totalDuration = _ || 0, this._delay = Number(D.delay) || 0, this._timeScale = 1, this._active = D.immediateRender === !0, this.data = D.data, this._reversed = D.reversed === !0, Ii) {
|
|
2326
2326
|
wt || ht.wake();
|
|
@@ -2328,45 +2328,45 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2328
2328
|
B.add(this, B._time), this.vars.paused && this.paused(!0);
|
|
2329
2329
|
}
|
|
2330
2330
|
});
|
|
2331
|
-
ht = Vt.ticker = new Pt.Ticker(),
|
|
2331
|
+
ht = Vt.ticker = new Pt.Ticker(), Z = Vt.prototype, Z._dirty = Z._gc = Z._initted = Z._paused = !1, Z._totalTime = Z._time = 0, Z._rawPrevTime = -1, Z._next = Z._last = Z._onUpdate = Z._timeline = Z.timeline = null, Z._paused = !1;
|
|
2332
2332
|
var ie = function() {
|
|
2333
2333
|
wt && bt() - Gt > 2e3 && ((ft || {}).visibilityState !== "hidden" || !ht.lagSmoothing()) && ht.wake();
|
|
2334
2334
|
var _ = setTimeout(ie, 2e3);
|
|
2335
2335
|
_.unref && _.unref();
|
|
2336
2336
|
};
|
|
2337
|
-
ie(),
|
|
2337
|
+
ie(), Z.play = function(_, D) {
|
|
2338
2338
|
return _ != null && this.seek(_, D), this.reversed(!1).paused(!1);
|
|
2339
|
-
},
|
|
2339
|
+
}, Z.pause = function(_, D) {
|
|
2340
2340
|
return _ != null && this.seek(_, D), this.paused(!0);
|
|
2341
|
-
},
|
|
2341
|
+
}, Z.resume = function(_, D) {
|
|
2342
2342
|
return _ != null && this.seek(_, D), this.paused(!1);
|
|
2343
|
-
},
|
|
2343
|
+
}, Z.seek = function(_, D) {
|
|
2344
2344
|
return this.totalTime(Number(_), D !== !1);
|
|
2345
|
-
},
|
|
2345
|
+
}, Z.restart = function(_, D) {
|
|
2346
2346
|
return this.reversed(!1).paused(!1).totalTime(_ ? -this._delay : 0, D !== !1, !0);
|
|
2347
|
-
},
|
|
2347
|
+
}, Z.reverse = function(_, D) {
|
|
2348
2348
|
return _ != null && this.seek(_ || this.totalDuration(), D), this.reversed(!0).paused(!1);
|
|
2349
|
-
},
|
|
2350
|
-
},
|
|
2349
|
+
}, Z.render = function(_, D, B) {
|
|
2350
|
+
}, Z.invalidate = function() {
|
|
2351
2351
|
return this._time = this._totalTime = 0, this._initted = this._gc = !1, this._rawPrevTime = -1, (this._gc || !this.timeline) && this._enabled(!0), this;
|
|
2352
|
-
},
|
|
2352
|
+
}, Z.isActive = function() {
|
|
2353
2353
|
var _, D = this._timeline, B = this._startTime;
|
|
2354
2354
|
return !D || !this._gc && !this._paused && D.isActive() && (_ = D.rawTime(!0)) >= B && _ < B + this.totalDuration() / this._timeScale - 1e-7;
|
|
2355
|
-
},
|
|
2355
|
+
}, Z._enabled = function(_, D) {
|
|
2356
2356
|
return wt || ht.wake(), this._gc = !_, this._active = this.isActive(), D !== !0 && (_ && !this.timeline ? this._timeline.add(this, this._startTime - this._delay) : !_ && this.timeline && this._timeline._remove(this, !0)), !1;
|
|
2357
|
-
},
|
|
2357
|
+
}, Z._kill = function(_, D) {
|
|
2358
2358
|
return this._enabled(!1, !1);
|
|
2359
|
-
},
|
|
2359
|
+
}, Z.kill = function(_, D) {
|
|
2360
2360
|
return this._kill(_, D), this;
|
|
2361
|
-
},
|
|
2361
|
+
}, Z._uncache = function(_) {
|
|
2362
2362
|
for (var D = _ ? this : this.timeline; D; )
|
|
2363
2363
|
D._dirty = !0, D = D.timeline;
|
|
2364
2364
|
return this;
|
|
2365
|
-
},
|
|
2365
|
+
}, Z._swapSelfInParams = function(_) {
|
|
2366
2366
|
for (var D = _.length, B = _.concat(); --D > -1; )
|
|
2367
2367
|
_[D] === "{self}" && (B[D] = this);
|
|
2368
2368
|
return B;
|
|
2369
|
-
},
|
|
2369
|
+
}, Z._callback = function(_) {
|
|
2370
2370
|
var D = this.vars, B = D[_], U = D[_ + "Params"], $ = D[_ + "Scope"] || D.callbackScope || this, gt = U ? U.length : 0;
|
|
2371
2371
|
switch (gt) {
|
|
2372
2372
|
case 0:
|
|
@@ -2381,7 +2381,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2381
2381
|
default:
|
|
2382
2382
|
B.apply($, U);
|
|
2383
2383
|
}
|
|
2384
|
-
},
|
|
2384
|
+
}, Z.eventCallback = function(_, D, B, U) {
|
|
2385
2385
|
if ((_ || "").substr(0, 2) === "on") {
|
|
2386
2386
|
var $ = this.vars;
|
|
2387
2387
|
if (arguments.length === 1)
|
|
@@ -2389,15 +2389,15 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2389
2389
|
D == null ? delete $[_] : ($[_] = D, $[_ + "Params"] = H(B) && B.join("").indexOf("{self}") !== -1 ? this._swapSelfInParams(B) : B, $[_ + "Scope"] = U), _ === "onUpdate" && (this._onUpdate = D);
|
|
2390
2390
|
}
|
|
2391
2391
|
return this;
|
|
2392
|
-
},
|
|
2392
|
+
}, Z.delay = function(_) {
|
|
2393
2393
|
return arguments.length ? (this._timeline.smoothChildTiming && this.startTime(this._startTime + _ - this._delay), this._delay = _, this) : this._delay;
|
|
2394
|
-
},
|
|
2394
|
+
}, Z.duration = function(_) {
|
|
2395
2395
|
return arguments.length ? (this._duration = this._totalDuration = _, this._uncache(!0), this._timeline.smoothChildTiming && this._time > 0 && this._time < this._duration && _ !== 0 && this.totalTime(this._totalTime * (_ / this._duration), !0), this) : (this._dirty = !1, this._duration);
|
|
2396
|
-
},
|
|
2396
|
+
}, Z.totalDuration = function(_) {
|
|
2397
2397
|
return this._dirty = !1, arguments.length ? this.duration(_) : this._totalDuration;
|
|
2398
|
-
},
|
|
2398
|
+
}, Z.time = function(_, D) {
|
|
2399
2399
|
return arguments.length ? (this._dirty && this.totalDuration(), this.totalTime(_ > this._duration ? this._duration : _, D)) : this._time;
|
|
2400
|
-
},
|
|
2400
|
+
}, Z.totalTime = function(_, D, B) {
|
|
2401
2401
|
if (wt || ht.wake(), !arguments.length)
|
|
2402
2402
|
return this._totalTime;
|
|
2403
2403
|
if (this._timeline) {
|
|
@@ -2411,26 +2411,26 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2411
2411
|
this._gc && this._enabled(!0, !1), (this._totalTime !== _ || this._duration === 0) && (Rt.length && li(), this.render(_, D, !1), Rt.length && li());
|
|
2412
2412
|
}
|
|
2413
2413
|
return this;
|
|
2414
|
-
},
|
|
2414
|
+
}, Z.progress = Z.totalProgress = function(_, D) {
|
|
2415
2415
|
var B = this.duration();
|
|
2416
2416
|
return arguments.length ? this.totalTime(B * _, D) : B ? this._time / B : this.ratio;
|
|
2417
|
-
},
|
|
2417
|
+
}, Z.startTime = function(_) {
|
|
2418
2418
|
return arguments.length ? (_ !== this._startTime && (this._startTime = _, this.timeline && this.timeline._sortChildren && this.timeline.add(this, _ - this._delay)), this) : this._startTime;
|
|
2419
|
-
},
|
|
2419
|
+
}, Z.endTime = function(_) {
|
|
2420
2420
|
return this._startTime + (_ != 0 ? this.totalDuration() : this.duration()) / this._timeScale;
|
|
2421
|
-
},
|
|
2421
|
+
}, Z.timeScale = function(_) {
|
|
2422
2422
|
if (!arguments.length)
|
|
2423
2423
|
return this._timeScale;
|
|
2424
2424
|
var D, B;
|
|
2425
2425
|
for (_ = _ || Ot, this._timeline && this._timeline.smoothChildTiming && (D = this._pauseTime, B = D || D === 0 ? D : this._timeline.totalTime(), this._startTime = B - (B - this._startTime) * this._timeScale / _), this._timeScale = _, B = this.timeline; B && B.timeline; )
|
|
2426
2426
|
B._dirty = !0, B.totalDuration(), B = B.timeline;
|
|
2427
2427
|
return this;
|
|
2428
|
-
},
|
|
2428
|
+
}, Z.reversed = function(_) {
|
|
2429
2429
|
return arguments.length ? (_ != this._reversed && (this._reversed = _, this.totalTime(
|
|
2430
2430
|
this._timeline && !this._timeline.smoothChildTiming ? this.totalDuration() - this._totalTime : this._totalTime,
|
|
2431
2431
|
!0
|
|
2432
2432
|
)), this) : this._reversed;
|
|
2433
|
-
},
|
|
2433
|
+
}, Z.paused = function(_) {
|
|
2434
2434
|
if (!arguments.length)
|
|
2435
2435
|
return this._paused;
|
|
2436
2436
|
var D, B, U = this._timeline;
|
|
@@ -2439,15 +2439,15 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2439
2439
|
var ut = M("core.SimpleTimeline", function(_) {
|
|
2440
2440
|
Vt.call(this, 0, _), this.autoRemoveChildren = this.smoothChildTiming = !0;
|
|
2441
2441
|
});
|
|
2442
|
-
|
|
2442
|
+
Z = ut.prototype = new Vt(), Z.constructor = ut, Z.kill()._gc = !1, Z._first = Z._last = Z._recent = null, Z._sortChildren = !1, Z.add = Z.insert = function(_, D, B, U) {
|
|
2443
2443
|
var $, gt;
|
|
2444
2444
|
if (_._startTime = Number(D || 0) + _._delay, _._paused && this !== _._timeline && (_._pauseTime = this.rawTime() - (_._timeline.rawTime() - _._pauseTime)), _.timeline && _.timeline._remove(_, !0), _.timeline = _._timeline = this, _._gc && _._enabled(!0, !0), $ = this._last, this._sortChildren)
|
|
2445
2445
|
for (gt = _._startTime; $ && $._startTime > gt; )
|
|
2446
2446
|
$ = $._prev;
|
|
2447
2447
|
return $ ? (_._next = $._next, $._next = _) : (_._next = this._first, this._first = _), _._next ? _._next._prev = _ : this._last = _, _._prev = $, this._recent = _, this._timeline && this._uncache(!0), this;
|
|
2448
|
-
},
|
|
2448
|
+
}, Z._remove = function(_, D) {
|
|
2449
2449
|
return _.timeline === this && (D || _._enabled(!1, !0), _._prev ? _._prev._next = _._next : this._first === _ && (this._first = _._next), _._next ? _._next._prev = _._prev : this._last === _ && (this._last = _._prev), _._next = _._prev = _.timeline = null, _ === this._recent && (this._recent = this._last), this._timeline && this._uncache(!0)), this;
|
|
2450
|
-
},
|
|
2450
|
+
}, Z.render = function(_, D, B) {
|
|
2451
2451
|
var U, $ = this._first;
|
|
2452
2452
|
for (this._totalTime = this._time = this._rawPrevTime = _; $; )
|
|
2453
2453
|
U = $._next, ($._active || _ >= $._startTime && !$._paused && !$._gc) && ($._reversed ? $.render(
|
|
@@ -2455,7 +2455,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2455
2455
|
D,
|
|
2456
2456
|
B
|
|
2457
2457
|
) : $.render((_ - $._startTime) * $._timeScale, D, B)), $ = U;
|
|
2458
|
-
},
|
|
2458
|
+
}, Z.rawTime = function() {
|
|
2459
2459
|
return wt || ht.wake(), this._totalTime;
|
|
2460
2460
|
};
|
|
2461
2461
|
var kt = M(
|
|
@@ -2464,12 +2464,12 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2464
2464
|
if (Vt.call(this, D, B), this.render = kt.prototype.render, _ == null)
|
|
2465
2465
|
throw "Cannot tween a null target.";
|
|
2466
2466
|
this.target = _ = typeof _ != "string" ? _ : kt.selector(_) || _;
|
|
2467
|
-
var U, $, gt, Tt = _.jquery || _.length && _ !== p && _[0] && (_[0] === p || _[0].nodeType && _[0].style && !_.nodeType),
|
|
2468
|
-
if (this._overwrite =
|
|
2467
|
+
var U, $, gt, Tt = _.jquery || _.length && _ !== p && _[0] && (_[0] === p || _[0].nodeType && _[0].style && !_.nodeType), dt = this.vars.overwrite;
|
|
2468
|
+
if (this._overwrite = dt = dt == null ? Lr[kt.defaultOverwrite] : typeof dt == "number" ? dt >> 0 : Lr[dt], (Tt || _ instanceof Array || _.push && H(_)) && typeof _[0] != "number")
|
|
2469
2469
|
for (this._targets = gt = xt(_), this._propLookup = [], this._siblings = [], U = 0; U < gt.length; U++)
|
|
2470
|
-
$ = gt[U], $ ? typeof $ != "string" ? $.length && $ !== p && $[0] && ($[0] === p || $[0].nodeType && $[0].style && !$.nodeType) ? (gt.splice(U--, 1), this._targets = gt = gt.concat(xt($))) : (this._siblings[U] = Ce($, this, !1),
|
|
2470
|
+
$ = gt[U], $ ? typeof $ != "string" ? $.length && $ !== p && $[0] && ($[0] === p || $[0].nodeType && $[0].style && !$.nodeType) ? (gt.splice(U--, 1), this._targets = gt = gt.concat(xt($))) : (this._siblings[U] = Ce($, this, !1), dt === 1 && this._siblings[U].length > 1 && wr($, this, null, 1, this._siblings[U])) : ($ = gt[U--] = kt.selector($), typeof $ == "string" && gt.splice(U + 1, 1)) : gt.splice(U--, 1);
|
|
2471
2471
|
else
|
|
2472
|
-
this._propLookup = {}, this._siblings = Ce(_, this, !1),
|
|
2472
|
+
this._propLookup = {}, this._siblings = Ce(_, this, !1), dt === 1 && this._siblings.length > 1 && wr(_, this, null, 1, this._siblings);
|
|
2473
2473
|
(this.vars.immediateRender || D === 0 && this._delay === 0 && this.vars.immediateRender !== !1) && (this._time = -Ot, this.render(Math.min(0, -this._delay)));
|
|
2474
2474
|
},
|
|
2475
2475
|
!0
|
|
@@ -2481,7 +2481,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2481
2481
|
xr[B] || B in D && B !== "transform" && B !== "x" && B !== "y" && B !== "width" && B !== "height" && B !== "className" && B !== "border" || !(!Re[B] || Re[B] && Re[B]._autoCSS) || (U[B] = _[B], delete _[B]);
|
|
2482
2482
|
_.css = U;
|
|
2483
2483
|
};
|
|
2484
|
-
|
|
2484
|
+
Z = kt.prototype = new Vt(), Z.constructor = kt, Z.kill()._gc = !1, Z.ratio = 0, Z._firstPT = Z._targets = Z._overwrittenProps = Z._startAt = null, Z._notifyPluginsOfEnabled = Z._lazy = !1, kt.version = "2.0.2", kt.defaultEase = Z._ease = new b(null, null, 1, 1), kt.defaultOverwrite = "auto", kt.ticker = ht, kt.autoSleep = 120, kt.lagSmoothing = function(_, D) {
|
|
2485
2485
|
ht.lagSmoothing(_, D);
|
|
2486
2486
|
}, kt.selector = p.$ || p.jQuery || function(_) {
|
|
2487
2487
|
var D = p.$ || p.jQuery;
|
|
@@ -2491,9 +2491,9 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2491
2491
|
for (var D, B = this._firstPT, U = 1e-6; B; )
|
|
2492
2492
|
D = B.blob ? _ === 1 && this.end != null ? this.end : _ ? this.join("") : this.start : B.c * _ + B.s, B.m ? D = B.m.call(this._tween, D, this._target || B.t, this._tween) : U > D && D > -U && !B.blob && (D = 0), B.f ? B.fp ? B.t[B.p](B.fp, D) : B.t[B.p](D) : B.t[B.p] = D, B = B._next;
|
|
2493
2493
|
}, fe = function(_, D, B, U) {
|
|
2494
|
-
var $, gt, Tt,
|
|
2495
|
-
for (he.start = _, he.end = D, _ = he[0] = _ + "", D = he[1] = D + "", B && (B(he), _ = he[0], D = he[1]), he.length = 0, $ = _.match(gi) || [], gt = D.match(gi) || [], U && (U._next = null, U.blob = 1, he._firstPT = he._applyPT = U), ae = gt.length,
|
|
2496
|
-
Ut = gt[
|
|
2494
|
+
var $, gt, Tt, dt, ae, se, Ut, he = [], De = 0, We = "", be = 0;
|
|
2495
|
+
for (he.start = _, he.end = D, _ = he[0] = _ + "", D = he[1] = D + "", B && (B(he), _ = he[0], D = he[1]), he.length = 0, $ = _.match(gi) || [], gt = D.match(gi) || [], U && (U._next = null, U.blob = 1, he._firstPT = he._applyPT = U), ae = gt.length, dt = 0; ae > dt; dt++)
|
|
2496
|
+
Ut = gt[dt], se = D.substr(De, D.indexOf(Ut, De) - De), We += se || !dt ? se : ",", De += se.length, be ? be = (be + 1) % 5 : se.substr(-5) === "rgba(" && (be = 1), Ut === $[dt] || $.length <= dt ? We += Ut : (We && (he.push(We), We = ""), Tt = parseFloat($[dt]), he.push(Tt), he._firstPT = {
|
|
2497
2497
|
_next: he._firstPT,
|
|
2498
2498
|
t: he,
|
|
2499
2499
|
p: he.length - 1,
|
|
@@ -2503,7 +2503,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2503
2503
|
m: be && 4 > be ? Math.round : 0
|
|
2504
2504
|
}), De += Ut.length;
|
|
2505
2505
|
return We += D.substr(De), We && he.push(We), he.setRatio = ni, Mi.test(D) && (he.end = null), he;
|
|
2506
|
-
}, Ze = function(_, D, B, U, $, gt, Tt,
|
|
2506
|
+
}, Ze = function(_, D, B, U, $, gt, Tt, dt, ae) {
|
|
2507
2507
|
typeof U == "function" && (U = U(ae || 0, _));
|
|
2508
2508
|
var se, Ut = typeof _[D], he = Ut !== "function" ? "" : D.indexOf("set") || typeof _["get" + D.substr(3)] != "function" ? D : "get" + D.substr(3), De = B !== "get" ? B : he ? Tt ? _[he](Tt) : _[he]() : _[D], We = typeof U == "string" && U.charAt(1) === "=", be = {
|
|
2509
2509
|
t: _,
|
|
@@ -2519,7 +2519,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2519
2519
|
return (typeof De != "number" || typeof U != "number" && !We) && (Tt || isNaN(De) || !We && isNaN(U) || typeof De == "boolean" || typeof U == "boolean" ? (be.fp = Tt, se = fe(
|
|
2520
2520
|
De,
|
|
2521
2521
|
We ? parseFloat(be.s) + be.c + (be.s + "").replace(/[0-9\-\.]/g, "") : U,
|
|
2522
|
-
|
|
2522
|
+
dt || kt.defaultStringFilter,
|
|
2523
2523
|
be
|
|
2524
2524
|
), be = {
|
|
2525
2525
|
t: se,
|
|
@@ -2615,23 +2615,23 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2615
2615
|
var $, gt, Tt = _.vars.onOverwrite;
|
|
2616
2616
|
return Tt && ($ = Tt(_, D, B, U)), Tt = kt.onOverwrite, Tt && (gt = Tt(_, D, B, U)), $ !== !1 && gt !== !1;
|
|
2617
2617
|
}, wr = function(_, D, B, U, $) {
|
|
2618
|
-
var gt, Tt,
|
|
2618
|
+
var gt, Tt, dt, ae;
|
|
2619
2619
|
if (U === 1 || U >= 4) {
|
|
2620
2620
|
for (ae = $.length, gt = 0; ae > gt; gt++)
|
|
2621
|
-
if ((
|
|
2622
|
-
|
|
2621
|
+
if ((dt = $[gt]) !== D)
|
|
2622
|
+
dt._gc || dt._kill(null, _, D) && (Tt = !0);
|
|
2623
2623
|
else if (U === 5)
|
|
2624
2624
|
break;
|
|
2625
2625
|
return Tt;
|
|
2626
2626
|
}
|
|
2627
2627
|
var se, Ut = D._startTime + Ot, he = [], De = 0, We = D._duration === 0;
|
|
2628
2628
|
for (gt = $.length; --gt > -1; )
|
|
2629
|
-
(
|
|
2629
|
+
(dt = $[gt]) === D || dt._gc || dt._paused || (dt._timeline !== D._timeline ? (se = se || er(D, 0, We), er(dt, se, We) === 0 && (he[De++] = dt)) : dt._startTime <= Ut && dt._startTime + dt.totalDuration() / dt._timeScale > Ut && ((We || !dt._initted) && Ut - dt._startTime <= 2e-10 || (he[De++] = dt)));
|
|
2630
2630
|
for (gt = De; --gt > -1; )
|
|
2631
|
-
if (
|
|
2632
|
-
if (U !== 2 && !Ti(
|
|
2631
|
+
if (dt = he[gt], ae = dt._firstPT, U === 2 && dt._kill(B, _, D) && (Tt = !0), U !== 2 || !dt._firstPT && dt._initted && ae) {
|
|
2632
|
+
if (U !== 2 && !Ti(dt, D))
|
|
2633
2633
|
continue;
|
|
2634
|
-
|
|
2634
|
+
dt._enabled(!1, !1) && (Tt = !0);
|
|
2635
2635
|
}
|
|
2636
2636
|
return Tt;
|
|
2637
2637
|
}, er = function(_, D, B) {
|
|
@@ -2642,8 +2642,8 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2642
2642
|
}
|
|
2643
2643
|
return gt /= $, gt > D ? gt - D : B && gt === D || !_._initted && 2 * Ot > gt - D ? Ot : (gt += _.totalDuration() / _._timeScale / $) > D + Ot ? 0 : gt - D - Ot;
|
|
2644
2644
|
};
|
|
2645
|
-
|
|
2646
|
-
var _, D, B, U, $, gt, Tt = this.vars,
|
|
2645
|
+
Z._init = function() {
|
|
2646
|
+
var _, D, B, U, $, gt, Tt = this.vars, dt = this._overwrittenProps, ae = this._duration, se = !!Tt.immediateRender, Ut = Tt.ease;
|
|
2647
2647
|
if (Tt.startAt) {
|
|
2648
2648
|
this._startAt && (this._startAt.render(-1, !0), this._startAt.kill()), $ = {};
|
|
2649
2649
|
for (U in Tt.startAt)
|
|
@@ -2673,7 +2673,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2673
2673
|
this._targets[_],
|
|
2674
2674
|
this._propLookup[_] = {},
|
|
2675
2675
|
this._siblings[_],
|
|
2676
|
-
|
|
2676
|
+
dt ? dt[_] : null,
|
|
2677
2677
|
_
|
|
2678
2678
|
) && (D = !0);
|
|
2679
2679
|
else
|
|
@@ -2681,15 +2681,15 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2681
2681
|
this.target,
|
|
2682
2682
|
this._propLookup,
|
|
2683
2683
|
this._siblings,
|
|
2684
|
-
|
|
2684
|
+
dt,
|
|
2685
2685
|
0
|
|
2686
2686
|
);
|
|
2687
|
-
if (D && kt._onPluginEvent("_onInitAllProps", this),
|
|
2687
|
+
if (D && kt._onPluginEvent("_onInitAllProps", this), dt && (this._firstPT || typeof this.target != "function" && this._enabled(!1, !1)), Tt.runBackwards)
|
|
2688
2688
|
for (B = this._firstPT; B; )
|
|
2689
2689
|
B.s += B.c, B.c = -B.c, B = B._next;
|
|
2690
2690
|
this._onUpdate = Tt.onUpdate, this._initted = !0;
|
|
2691
|
-
},
|
|
2692
|
-
var gt, Tt,
|
|
2691
|
+
}, Z._initProps = function(_, D, B, U, $) {
|
|
2692
|
+
var gt, Tt, dt, ae, se, Ut;
|
|
2693
2693
|
if (_ == null)
|
|
2694
2694
|
return !1;
|
|
2695
2695
|
Ue[_._gsTweenID] && li(), this.vars.css || _.style && _ !== p && _.nodeType && Re.css && this.vars.autoCSS !== !1 && mi(this.vars, _);
|
|
@@ -2710,7 +2710,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2710
2710
|
m: 0
|
|
2711
2711
|
}, Tt = ae._overwriteProps.length; --Tt > -1; )
|
|
2712
2712
|
D[ae._overwriteProps[Tt]] = this._firstPT;
|
|
2713
|
-
(ae._priority || ae._onInitAllProps) && (
|
|
2713
|
+
(ae._priority || ae._onInitAllProps) && (dt = !0), (ae._onDisable || ae._onEnable) && (this._notifyPluginsOfEnabled = !0), se._next && (se._next._prev = se);
|
|
2714
2714
|
} else
|
|
2715
2715
|
D[gt] = Ze.call(
|
|
2716
2716
|
this,
|
|
@@ -2724,35 +2724,35 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2724
2724
|
this.vars.stringFilter,
|
|
2725
2725
|
$
|
|
2726
2726
|
);
|
|
2727
|
-
return U && this._kill(U, _) ? this._initProps(_, D, B, U, $) : this._overwrite > 1 && this._firstPT && B.length > 1 && wr(_, this, D, this._overwrite, B) ? (this._kill(D, _), this._initProps(_, D, B, U, $)) : (this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration) && (Ue[_._gsTweenID] = !0),
|
|
2728
|
-
},
|
|
2729
|
-
var U, $, gt, Tt,
|
|
2727
|
+
return U && this._kill(U, _) ? this._initProps(_, D, B, U, $) : this._overwrite > 1 && this._firstPT && B.length > 1 && wr(_, this, D, this._overwrite, B) ? (this._kill(D, _), this._initProps(_, D, B, U, $)) : (this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration) && (Ue[_._gsTweenID] = !0), dt);
|
|
2728
|
+
}, Z.render = function(_, D, B) {
|
|
2729
|
+
var U, $, gt, Tt, dt = this._time, ae = this._duration, se = this._rawPrevTime;
|
|
2730
2730
|
if (_ >= ae - 1e-7 && _ >= 0)
|
|
2731
2731
|
this._totalTime = this._time = ae, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1, this._reversed || (U = !0, $ = "onComplete", B = B || this._timeline.autoRemoveChildren), ae === 0 && (this._initted || !this.vars.lazy || B) && (this._startTime === this._timeline._duration && (_ = 0), (0 > se || 0 >= _ && _ >= -1e-7 || se === Ot && this.data !== "isPause") && se !== _ && (B = !0, se > Ot && ($ = "onReverseComplete")), this._rawPrevTime = Tt = !D || _ || se === _ ? _ : Ot);
|
|
2732
2732
|
else if (1e-7 > _)
|
|
2733
|
-
this._totalTime = this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (
|
|
2733
|
+
this._totalTime = this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (dt !== 0 || ae === 0 && se > 0) && ($ = "onReverseComplete", U = this._reversed), 0 > _ && (this._active = !1, ae === 0 && (this._initted || !this.vars.lazy || B) && (se >= 0 && (se !== Ot || this.data !== "isPause") && (B = !0), this._rawPrevTime = Tt = !D || _ || se === _ ? _ : Ot)), (!this._initted || this._startAt && this._startAt.progress()) && (B = !0);
|
|
2734
2734
|
else if (this._totalTime = this._time = _, this._easeType) {
|
|
2735
2735
|
var Ut = _ / ae, he = this._easeType, De = this._easePower;
|
|
2736
2736
|
(he === 1 || he === 3 && Ut >= 0.5) && (Ut = 1 - Ut), he === 3 && (Ut *= 2), De === 1 ? Ut *= Ut : De === 2 ? Ut *= Ut * Ut : De === 3 ? Ut *= Ut * Ut * Ut : De === 4 && (Ut *= Ut * Ut * Ut * Ut), he === 1 ? this.ratio = 1 - Ut : he === 2 ? this.ratio = Ut : 0.5 > _ / ae ? this.ratio = Ut / 2 : this.ratio = 1 - Ut / 2;
|
|
2737
2737
|
} else
|
|
2738
2738
|
this.ratio = this._ease.getRatio(_ / ae);
|
|
2739
|
-
if (this._time !==
|
|
2739
|
+
if (this._time !== dt || B) {
|
|
2740
2740
|
if (!this._initted) {
|
|
2741
2741
|
if (this._init(), !this._initted || this._gc)
|
|
2742
2742
|
return;
|
|
2743
2743
|
if (!B && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration))
|
|
2744
|
-
return this._time = this._totalTime =
|
|
2744
|
+
return this._time = this._totalTime = dt, this._rawPrevTime = se, Rt.push(this), void (this._lazy = [_, D]);
|
|
2745
2745
|
this._time && !U ? this.ratio = this._ease.getRatio(this._time / ae) : U && this._ease._calcEnd && (this.ratio = this._ease.getRatio(this._time === 0 ? 0 : 1));
|
|
2746
2746
|
}
|
|
2747
|
-
for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !==
|
|
2747
|
+
for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== dt && _ >= 0 && (this._active = !0), dt === 0 && (this._startAt && (_ >= 0 ? this._startAt.render(_, !0, B) : $ || ($ = "_dummyGS")), this.vars.onStart && (this._time !== 0 || ae === 0) && (D || this._callback("onStart"))), gt = this._firstPT; gt; )
|
|
2748
2748
|
gt.f ? gt.t[gt.p](gt.c * this.ratio + gt.s) : gt.t[gt.p] = gt.c * this.ratio + gt.s, gt = gt._next;
|
|
2749
|
-
this._onUpdate && (0 > _ && this._startAt && _ !== -1e-4 && this._startAt.render(_, !0, B), D || (this._time !==
|
|
2749
|
+
this._onUpdate && (0 > _ && this._startAt && _ !== -1e-4 && this._startAt.render(_, !0, B), D || (this._time !== dt || U || B) && this._callback("onUpdate")), $ && (!this._gc || B) && (0 > _ && this._startAt && !this._onUpdate && _ !== -1e-4 && this._startAt.render(_, !0, B), U && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !D && this.vars[$] && this._callback($), ae === 0 && this._rawPrevTime === Ot && Tt !== Ot && (this._rawPrevTime = 0));
|
|
2750
2750
|
}
|
|
2751
|
-
},
|
|
2751
|
+
}, Z._kill = function(_, D, B) {
|
|
2752
2752
|
if (_ === "all" && (_ = null), _ == null && (D == null || D === this.target))
|
|
2753
2753
|
return this._lazy = !1, this._enabled(!1, !1);
|
|
2754
2754
|
D = typeof D != "string" ? D || this._targets || this.target : kt.selector(D) || D;
|
|
2755
|
-
var U, $, gt, Tt,
|
|
2755
|
+
var U, $, gt, Tt, dt, ae, se, Ut, he, De = B && this._time && B._startTime === this._startTime && this._timeline === B._timeline, We = this._firstPT;
|
|
2756
2756
|
if ((H(D) || Me(D)) && typeof D[0] != "number")
|
|
2757
2757
|
for (U = D.length; --U > -1; )
|
|
2758
2758
|
this._kill(_, D[U], B) && (ae = !0);
|
|
@@ -2760,30 +2760,30 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2760
2760
|
if (this._targets) {
|
|
2761
2761
|
for (U = this._targets.length; --U > -1; )
|
|
2762
2762
|
if (D === this._targets[U]) {
|
|
2763
|
-
|
|
2763
|
+
dt = this._propLookup[U] || {}, this._overwrittenProps = this._overwrittenProps || [], $ = this._overwrittenProps[U] = _ ? this._overwrittenProps[U] || {} : "all";
|
|
2764
2764
|
break;
|
|
2765
2765
|
}
|
|
2766
2766
|
} else {
|
|
2767
2767
|
if (D !== this.target)
|
|
2768
2768
|
return !1;
|
|
2769
|
-
|
|
2769
|
+
dt = this._propLookup, $ = this._overwrittenProps = _ ? this._overwrittenProps || {} : "all";
|
|
2770
2770
|
}
|
|
2771
|
-
if (
|
|
2772
|
-
if (se = _ ||
|
|
2771
|
+
if (dt) {
|
|
2772
|
+
if (se = _ || dt, Ut = _ !== $ && $ !== "all" && _ !== dt && (typeof _ != "object" || !_._tempKill), B && (kt.onOverwrite || this.vars.onOverwrite)) {
|
|
2773
2773
|
for (gt in se)
|
|
2774
|
-
|
|
2774
|
+
dt[gt] && (he || (he = []), he.push(gt));
|
|
2775
2775
|
if ((he || !_) && !Ti(this, B, D, he))
|
|
2776
2776
|
return !1;
|
|
2777
2777
|
}
|
|
2778
2778
|
for (gt in se)
|
|
2779
|
-
(Tt =
|
|
2779
|
+
(Tt = dt[gt]) && (De && (Tt.f ? Tt.t[Tt.p](Tt.s) : Tt.t[Tt.p] = Tt.s, ae = !0), Tt.pg && Tt.t._kill(se) && (ae = !0), Tt.pg && Tt.t._overwriteProps.length !== 0 || (Tt._prev ? Tt._prev._next = Tt._next : Tt === this._firstPT && (this._firstPT = Tt._next), Tt._next && (Tt._next._prev = Tt._prev), Tt._next = Tt._prev = null), delete dt[gt]), Ut && ($[gt] = 1);
|
|
2780
2780
|
!this._firstPT && this._initted && We && this._enabled(!1, !1);
|
|
2781
2781
|
}
|
|
2782
2782
|
}
|
|
2783
2783
|
return ae;
|
|
2784
|
-
},
|
|
2784
|
+
}, Z.invalidate = function() {
|
|
2785
2785
|
return this._notifyPluginsOfEnabled && kt._onPluginEvent("_onDisable", this), this._firstPT = this._overwrittenProps = this._startAt = this._onUpdate = null, this._notifyPluginsOfEnabled = this._active = this._lazy = !1, this._propLookup = this._targets ? {} : [], Vt.prototype.invalidate.call(this), this.vars.immediateRender && (this._time = -Ot, this.render(Math.min(0, -this._delay))), this;
|
|
2786
|
-
},
|
|
2786
|
+
}, Z._enabled = function(_, D) {
|
|
2787
2787
|
if (wt || ht.wake(), _ && this._gc) {
|
|
2788
2788
|
var B, U = this._targets;
|
|
2789
2789
|
if (U)
|
|
@@ -2841,7 +2841,7 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2841
2841
|
},
|
|
2842
2842
|
!0
|
|
2843
2843
|
);
|
|
2844
|
-
if (
|
|
2844
|
+
if (Z = bi.prototype, bi.version = "1.19.0", bi.API = 2, Z._firstPT = null, Z._addTween = Ze, Z.setRatio = ni, Z._kill = function(_) {
|
|
2845
2845
|
var D, B = this._overwriteProps, U = this._firstPT;
|
|
2846
2846
|
if (_[this._propName] != null)
|
|
2847
2847
|
this._overwriteProps = [];
|
|
@@ -2851,21 +2851,21 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2851
2851
|
for (; U; )
|
|
2852
2852
|
_[U.n] != null && (U._next && (U._next._prev = U._prev), U._prev ? (U._prev._next = U._next, U._prev = null) : this._firstPT === U && (this._firstPT = U._next)), U = U._next;
|
|
2853
2853
|
return !1;
|
|
2854
|
-
},
|
|
2854
|
+
}, Z._mod = Z._roundProps = function(_) {
|
|
2855
2855
|
for (var D, B = this._firstPT; B; )
|
|
2856
2856
|
D = _[this._propName] || B.n != null && _[B.n.split(this._propName + "_").join("")], D && typeof D == "function" && (B.f === 2 ? B.t._applyPT.m = D : B.m = D), B = B._next;
|
|
2857
2857
|
}, kt._onPluginEvent = function(_, D) {
|
|
2858
|
-
var B, U, $, gt, Tt,
|
|
2858
|
+
var B, U, $, gt, Tt, dt = D._firstPT;
|
|
2859
2859
|
if (_ === "_onInitAllProps") {
|
|
2860
|
-
for (;
|
|
2861
|
-
for (Tt =
|
|
2860
|
+
for (; dt; ) {
|
|
2861
|
+
for (Tt = dt._next, U = $; U && U.pr > dt.pr; )
|
|
2862
2862
|
U = U._next;
|
|
2863
|
-
(
|
|
2863
|
+
(dt._prev = U ? U._prev : gt) ? dt._prev._next = dt : $ = dt, (dt._next = U) ? U._prev = dt : gt = dt, dt = Tt;
|
|
2864
2864
|
}
|
|
2865
|
-
|
|
2865
|
+
dt = D._firstPT = $;
|
|
2866
2866
|
}
|
|
2867
|
-
for (;
|
|
2868
|
-
|
|
2867
|
+
for (; dt; )
|
|
2868
|
+
dt.pg && typeof dt.t[_] == "function" && dt.t[_]() && (B = !0), dt = dt._next;
|
|
2869
2869
|
return B;
|
|
2870
2870
|
}, bi.activate = function(_) {
|
|
2871
2871
|
for (var D = _.length; --D > -1; )
|
|
@@ -2887,16 +2887,16 @@ var Ke = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2887
2887
|
bi.call(this, B, U), this._overwriteProps = $ || [];
|
|
2888
2888
|
},
|
|
2889
2889
|
_.global === !0
|
|
2890
|
-
),
|
|
2891
|
-
|
|
2890
|
+
), dt = Tt.prototype = new bi(B);
|
|
2891
|
+
dt.constructor = Tt, Tt.API = _.API;
|
|
2892
2892
|
for (D in gt)
|
|
2893
|
-
typeof _[D] == "function" && (
|
|
2893
|
+
typeof _[D] == "function" && (dt[gt[D]] = _[D]);
|
|
2894
2894
|
return Tt.version = _.version, bi.activate([Tt]), Tt;
|
|
2895
2895
|
}, mt = p._gsQueue) {
|
|
2896
2896
|
for (Ct = 0; Ct < mt.length; Ct++)
|
|
2897
2897
|
mt[Ct]();
|
|
2898
|
-
for (
|
|
2899
|
-
m[
|
|
2898
|
+
for (Z in m)
|
|
2899
|
+
m[Z].func || p.console.log("GSAP encountered missing dependency: " + Z);
|
|
2900
2900
|
}
|
|
2901
2901
|
wt = !1;
|
|
2902
2902
|
}(
|
|
@@ -2913,27 +2913,27 @@ const gh = { class: "modal-background" }, vh = ["innerHTML"], yh = {
|
|
|
2913
2913
|
// default: "CHBIM云平台",
|
|
2914
2914
|
// },
|
|
2915
2915
|
},
|
|
2916
|
-
setup(p, { expose:
|
|
2917
|
-
const
|
|
2918
|
-
ft.value = mt,
|
|
2916
|
+
setup(p, { expose: pt }) {
|
|
2917
|
+
const Y = Gs(""), ft = Gs(""), at = (mt) => {
|
|
2918
|
+
ft.value = mt, Y.value = "five";
|
|
2919
2919
|
}, x = () => {
|
|
2920
|
-
|
|
2920
|
+
Y.value = Y.value + " out";
|
|
2921
2921
|
};
|
|
2922
2922
|
return ks(() => {
|
|
2923
|
-
}),
|
|
2923
|
+
}), pt({
|
|
2924
2924
|
text: ft,
|
|
2925
2925
|
show: at,
|
|
2926
2926
|
hide: x
|
|
2927
2927
|
}), (mt, Ct) => ($o(), Ko("div", {
|
|
2928
2928
|
id: "modal-container",
|
|
2929
|
-
class: Ia(
|
|
2929
|
+
class: Ia(Y.value),
|
|
2930
2930
|
onClick: x
|
|
2931
2931
|
}, [
|
|
2932
2932
|
Oi("div", gh, [
|
|
2933
2933
|
Oi("div", {
|
|
2934
2934
|
class: "modal",
|
|
2935
|
-
onClick: Ct[0] || (Ct[0] = (
|
|
2936
|
-
|
|
2935
|
+
onClick: Ct[0] || (Ct[0] = (Z) => {
|
|
2936
|
+
Z.stopPropagation();
|
|
2937
2937
|
})
|
|
2938
2938
|
}, [
|
|
2939
2939
|
Oi("p", {
|
|
@@ -2950,7 +2950,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
2950
2950
|
}, Ph = /* @__PURE__ */ Hs({
|
|
2951
2951
|
...Eh,
|
|
2952
2952
|
setup(p) {
|
|
2953
|
-
const
|
|
2953
|
+
const pt = () => {
|
|
2954
2954
|
let at = `
|
|
2955
2955
|
vec3 mod289(vec3 x)
|
|
2956
2956
|
{
|
|
@@ -3190,7 +3190,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
3190
3190
|
gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
|
|
3191
3191
|
#endif
|
|
3192
3192
|
}`;
|
|
3193
|
-
var mt = document.querySelector(".landscape"), Ct = window.innerWidth,
|
|
3193
|
+
var mt = document.querySelector(".landscape"), Ct = window.innerWidth, Z = window.innerHeight, ht, wt, ct, Pt, Ot = { x: 0, y: 0, xDamped: 0, yDamped: 0 }, xt = typeof window.orientation < "u";
|
|
3194
3194
|
Q();
|
|
3195
3195
|
function Q() {
|
|
3196
3196
|
H(), m(), f(), b(), xt ? window.addEventListener("touchmove", G, { passive: !1 }) : window.addEventListener("mousemove", G), window.addEventListener("resize", M), M();
|
|
@@ -3198,12 +3198,12 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
3198
3198
|
function H() {
|
|
3199
3199
|
ht = new THREE.Scene();
|
|
3200
3200
|
var st = new THREE.Color(3355443);
|
|
3201
|
-
ht.background = st, ht.fog = new THREE.Fog(st, 0, 400), C(), ct = new THREE.PerspectiveCamera(60, Ct /
|
|
3201
|
+
ht.background = st, ht.fog = new THREE.Fog(st, 0, 400), C(), ct = new THREE.PerspectiveCamera(60, Ct / Z, 0.1, 1e4), ct.position.y = 8, ct.position.z = 4;
|
|
3202
3202
|
let it = new THREE.AmbientLight(16777215, 1);
|
|
3203
3203
|
ht.add(it), wt = new THREE.WebGLRenderer({
|
|
3204
3204
|
canvas: mt,
|
|
3205
3205
|
antialias: !0
|
|
3206
|
-
}), wt.setPixelRatio = devicePixelRatio, wt.setSize(Ct,
|
|
3206
|
+
}), wt.setPixelRatio = devicePixelRatio, wt.setSize(Ct, Z);
|
|
3207
3207
|
}
|
|
3208
3208
|
function m() {
|
|
3209
3209
|
var st = new THREE.PlaneBufferGeometry(100, 400, 400, 400), it = {
|
|
@@ -3243,7 +3243,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
3243
3243
|
st.position.x = 4e5 * Math.cos(Lt), st.position.y = 4e5 * Math.sin(Lt) * Math.sin(it), st.position.z = 4e5 * Math.sin(Lt) * Math.cos(it), C.material.uniforms.sunPosition.value.copy(st.position);
|
|
3244
3244
|
}
|
|
3245
3245
|
function M() {
|
|
3246
|
-
Ct = window.innerWidth,
|
|
3246
|
+
Ct = window.innerWidth, Z = window.innerHeight, ct.aspect = Ct / Z, ct.updateProjectionMatrix(), wt.setSize(Ct, Z);
|
|
3247
3247
|
}
|
|
3248
3248
|
function G(st) {
|
|
3249
3249
|
st.preventDefault();
|
|
@@ -3253,13 +3253,13 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
3253
3253
|
function b() {
|
|
3254
3254
|
requestAnimationFrame(b), Ot.xDamped = q(Ot.xDamped, Ot.x, 0.1), Ot.yDamped = q(Ot.yDamped, Ot.y, 0.1);
|
|
3255
3255
|
var st = performance.now() * 1e-3;
|
|
3256
|
-
Pt.material.uniforms.time.value = st, Pt.material.uniforms.scroll.value = st + F(Ot.yDamped, 0,
|
|
3256
|
+
Pt.material.uniforms.time.value = st, Pt.material.uniforms.scroll.value = st + F(Ot.yDamped, 0, Z, 0, 4), Pt.material.uniforms.distortCenter.value = Math.sin(st) * 0.1, Pt.material.uniforms.roadWidth.value = F(
|
|
3257
3257
|
Ot.xDamped,
|
|
3258
3258
|
0,
|
|
3259
3259
|
Ct,
|
|
3260
3260
|
1,
|
|
3261
3261
|
4.5
|
|
3262
|
-
), ct.position.y = F(Ot.yDamped, 0,
|
|
3262
|
+
), ct.position.y = F(Ot.yDamped, 0, Z, 4, 11), wt.render(ht, ct);
|
|
3263
3263
|
}
|
|
3264
3264
|
function F(st, it, Lt, bt, Gt) {
|
|
3265
3265
|
return bt + (Gt - bt) * ((st - it) / (Lt - it));
|
|
@@ -3267,7 +3267,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
3267
3267
|
function q(st, it, Lt) {
|
|
3268
3268
|
return (1 - Lt) * st + Lt * it;
|
|
3269
3269
|
}
|
|
3270
|
-
},
|
|
3270
|
+
}, Y = () => {
|
|
3271
3271
|
const at = document.querySelector(".overlay"), x = document.querySelector(".content__title");
|
|
3272
3272
|
charming(x);
|
|
3273
3273
|
const mt = Array.from(x.querySelectorAll("span"));
|
|
@@ -3287,7 +3287,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
3287
3287
|
0.1
|
|
3288
3288
|
);
|
|
3289
3289
|
}, ft = () => {
|
|
3290
|
-
|
|
3290
|
+
pt(), Y();
|
|
3291
3291
|
};
|
|
3292
3292
|
return ks(() => {
|
|
3293
3293
|
ft();
|
|
@@ -3302,12 +3302,12 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
3302
3302
|
]));
|
|
3303
3303
|
}
|
|
3304
3304
|
});
|
|
3305
|
-
(function(p,
|
|
3306
|
-
typeof exports == "object" && typeof module < "u" ?
|
|
3305
|
+
(function(p, pt) {
|
|
3306
|
+
typeof exports == "object" && typeof module < "u" ? pt(exports) : typeof define == "function" && define.amd ? define(["exports"], pt) : pt(p.THREE = {});
|
|
3307
3307
|
})(window, function(p) {
|
|
3308
|
-
function
|
|
3308
|
+
function pt() {
|
|
3309
3309
|
}
|
|
3310
|
-
function
|
|
3310
|
+
function Y(t, e) {
|
|
3311
3311
|
this.x = t || 0, this.y = e || 0;
|
|
3312
3312
|
}
|
|
3313
3313
|
function ft() {
|
|
@@ -3327,13 +3327,13 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
3327
3327
|
);
|
|
3328
3328
|
}
|
|
3329
3329
|
function Ct(t, e, i, r, n, o, s, a, h, l) {
|
|
3330
|
-
Object.defineProperty(this, "id", { value: Ga++ }), this.uuid = Se.generateUUID(), this.name = "", this.image = t !== void 0 ? t : Ct.DEFAULT_IMAGE, this.mipmaps = [], this.mapping = e !== void 0 ? e : Ct.DEFAULT_MAPPING, this.wrapS = i !== void 0 ? i : 1001, this.wrapT = r !== void 0 ? r : 1001, this.magFilter = n !== void 0 ? n : 1006, this.minFilter = o !== void 0 ? o : 1008, this.anisotropy = h !== void 0 ? h : 1, this.format = s !== void 0 ? s : 1023, this.type = a !== void 0 ? a : 1009, this.offset = new
|
|
3330
|
+
Object.defineProperty(this, "id", { value: Ga++ }), this.uuid = Se.generateUUID(), this.name = "", this.image = t !== void 0 ? t : Ct.DEFAULT_IMAGE, this.mipmaps = [], this.mapping = e !== void 0 ? e : Ct.DEFAULT_MAPPING, this.wrapS = i !== void 0 ? i : 1001, this.wrapT = r !== void 0 ? r : 1001, this.magFilter = n !== void 0 ? n : 1006, this.minFilter = o !== void 0 ? o : 1008, this.anisotropy = h !== void 0 ? h : 1, this.format = s !== void 0 ? s : 1023, this.type = a !== void 0 ? a : 1009, this.offset = new Y(0, 0), this.repeat = new Y(1, 1), this.center = new Y(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new mt(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.encoding = l !== void 0 ? l : 3e3, this.version = 0, this.onUpdate = null;
|
|
3331
3331
|
}
|
|
3332
|
-
function
|
|
3332
|
+
function Z(t, e, i, r) {
|
|
3333
3333
|
this.x = t || 0, this.y = e || 0, this.z = i || 0, this.w = r !== void 0 ? r : 1;
|
|
3334
3334
|
}
|
|
3335
3335
|
function ht(t, e, i) {
|
|
3336
|
-
this.width = t, this.height = e, this.scissor = new
|
|
3336
|
+
this.width = t, this.height = e, this.scissor = new Z(0, 0, t, e), this.scissorTest = !1, this.viewport = new Z(0, 0, t, e), i = i || {}, i.minFilter === void 0 && (i.minFilter = 1006), this.texture = new Ct(
|
|
3337
3337
|
void 0,
|
|
3338
3338
|
void 0,
|
|
3339
3339
|
i.wrapS,
|
|
@@ -3971,7 +3971,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
3971
3971
|
var i = this.cache;
|
|
3972
3972
|
i[0] !== e && (t.uniform1f(this.addr, e), i[0] = e);
|
|
3973
3973
|
}
|
|
3974
|
-
function
|
|
3974
|
+
function dt(t, e) {
|
|
3975
3975
|
var i = this.cache;
|
|
3976
3976
|
i[0] !== e && (t.uniform1i(this.addr, e), i[0] = e);
|
|
3977
3977
|
}
|
|
@@ -4048,7 +4048,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
4048
4048
|
return fr;
|
|
4049
4049
|
case 5124:
|
|
4050
4050
|
case 35670:
|
|
4051
|
-
return
|
|
4051
|
+
return dt;
|
|
4052
4052
|
case 35667:
|
|
4053
4053
|
case 35671:
|
|
4054
4054
|
return Vi;
|
|
@@ -4718,7 +4718,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
4718
4718
|
shadow: !1,
|
|
4719
4719
|
shadowBias: 0,
|
|
4720
4720
|
shadowRadius: 1,
|
|
4721
|
-
shadowMapSize: new
|
|
4721
|
+
shadowMapSize: new Y()
|
|
4722
4722
|
};
|
|
4723
4723
|
break;
|
|
4724
4724
|
case "SpotLight":
|
|
@@ -4733,7 +4733,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
4733
4733
|
shadow: !1,
|
|
4734
4734
|
shadowBias: 0,
|
|
4735
4735
|
shadowRadius: 1,
|
|
4736
|
-
shadowMapSize: new
|
|
4736
|
+
shadowMapSize: new Y()
|
|
4737
4737
|
};
|
|
4738
4738
|
break;
|
|
4739
4739
|
case "PointLight":
|
|
@@ -4745,7 +4745,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
4745
4745
|
shadow: !1,
|
|
4746
4746
|
shadowBias: 0,
|
|
4747
4747
|
shadowRadius: 1,
|
|
4748
|
-
shadowMapSize: new
|
|
4748
|
+
shadowMapSize: new Y(),
|
|
4749
4749
|
shadowCameraNear: 1,
|
|
4750
4750
|
shadowCameraFar: 1e3
|
|
4751
4751
|
};
|
|
@@ -4877,7 +4877,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
4877
4877
|
n(T[vt], A, tt, _t);
|
|
4878
4878
|
}
|
|
4879
4879
|
}
|
|
4880
|
-
var o = new Q(), s = new ft(), a = new
|
|
4880
|
+
var o = new Q(), s = new ft(), a = new Y(), h = new Y(i, i), l = new x(), c = new x(), u = Array(4), d = Array(4), g = {}, w = { 0: 1, 1: 0, 2: 2 }, S = [
|
|
4881
4881
|
new x(1, 0, 0),
|
|
4882
4882
|
new x(-1, 0, 0),
|
|
4883
4883
|
new x(0, 0, 1),
|
|
@@ -4891,7 +4891,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
4891
4891
|
new x(0, 1, 0),
|
|
4892
4892
|
new x(0, 0, 1),
|
|
4893
4893
|
new x(0, 0, -1)
|
|
4894
|
-
], k = [new
|
|
4894
|
+
], k = [new Z(), new Z(), new Z(), new Z(), new Z(), new Z()];
|
|
4895
4895
|
for (i = 0; i !== 4; ++i) {
|
|
4896
4896
|
var N = (i & 1) !== 0, J = (i & 2) !== 0, V = new Et({ depthPacking: 3201, morphTargets: N, skinning: J });
|
|
4897
4897
|
u[i] = V, N = new yt({ morphTargets: N, skinning: J }), d[i] = N;
|
|
@@ -5020,7 +5020,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
5020
5020
|
rt === void 0 && (rt = 33984 + hi - 1), ui !== rt && (t.activeTexture(rt), ui = rt);
|
|
5021
5021
|
}
|
|
5022
5022
|
var g = new function() {
|
|
5023
|
-
var rt = !1, ye = new
|
|
5023
|
+
var rt = !1, ye = new Z(), Te = null, Ye = new Z(0, 0, 0, 0);
|
|
5024
5024
|
return {
|
|
5025
5025
|
setMask: function(Yt) {
|
|
5026
5026
|
Te === Yt || rt || (t.colorMask(Yt, Yt, Yt, Yt), Te = Yt);
|
|
@@ -5117,7 +5117,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
5117
5117
|
};
|
|
5118
5118
|
}(), P = t.getParameter(34921), k = new Uint8Array(P), N = new Uint8Array(P), J = new Uint8Array(P), V = {}, ot = null, T = null, A = null, tt = null, _t = null, vt = null, lt = null, Ht = null, Dt = null, $t = null, Xt = !1, Qt = null, ne = null, me = null, Pe = null, di = null, hi = t.getParameter(35661), qe = !1;
|
|
5119
5119
|
P = 0, P = t.getParameter(7938), P.indexOf("WebGL") !== -1 ? (P = parseFloat(/^WebGL ([0-9])/.exec(P)[1]), qe = 1 <= P) : P.indexOf("OpenGL ES") !== -1 && (P = parseFloat(/^OpenGL ES ([0-9])/.exec(P)[1]), qe = 2 <= P);
|
|
5120
|
-
var ui = null, $e = {}, wi = new
|
|
5120
|
+
var ui = null, $e = {}, wi = new Z(), qt = new Z(), ge = {};
|
|
5121
5121
|
return ge[3553] = n(3553, 3553, 1), ge[34067] = n(34067, 34069, 6), g.setClear(0, 0, 0, 1), w.setClear(1), S.setClear(0), s(2929), w.setFunc(3), l(!1), c(1), s(2884), h(0), {
|
|
5122
5122
|
buffers: { color: g, depth: w, stencil: S },
|
|
5123
5123
|
initAttributes: function() {
|
|
@@ -5686,9 +5686,9 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
5686
5686
|
var r = this, n = null, o = null, s = null, a = [], h = new ft(), l = new ft(), c = 1, u = "stage";
|
|
5687
5687
|
typeof window < "u" && "VRFrameData" in window && (o = new window.VRFrameData(), window.addEventListener("vrdisplaypresentchange", i, !1));
|
|
5688
5688
|
var d = new ft(), g = new at(), w = new x(), S = new Bt();
|
|
5689
|
-
S.bounds = new
|
|
5689
|
+
S.bounds = new Z(0, 0, 0.5, 1), S.layers.enable(1);
|
|
5690
5690
|
var P = new Bt();
|
|
5691
|
-
P.bounds = new
|
|
5691
|
+
P.bounds = new Z(0.5, 0, 0.5, 1), P.layers.enable(2);
|
|
5692
5692
|
var k = new te([S, P]);
|
|
5693
5693
|
k.layers.enable(1), k.layers.enable(2);
|
|
5694
5694
|
var N, J, V = [];
|
|
@@ -5768,9 +5768,9 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
5768
5768
|
V === null ? J.matrixWorld.copy(J.matrix) : J.matrixWorld.multiplyMatrices(V.matrixWorld, J.matrix), J.matrixWorldInverse.getInverse(J.matrixWorld);
|
|
5769
5769
|
}
|
|
5770
5770
|
var o = t.context, s = null, a = null, h = 1, l = null, c = "stage", u = null, d = [], g = [], w = new Bt();
|
|
5771
|
-
w.layers.enable(1), w.viewport = new
|
|
5771
|
+
w.layers.enable(1), w.viewport = new Z();
|
|
5772
5772
|
var S = new Bt();
|
|
5773
|
-
S.layers.enable(2), S.viewport = new
|
|
5773
|
+
S.layers.enable(2), S.viewport = new Z();
|
|
5774
5774
|
var P = new te([w, S]);
|
|
5775
5775
|
P.layers.enable(1), P.layers.enable(2), this.enabled = !1, this.getController = function(J) {
|
|
5776
5776
|
var V = d[J];
|
|
@@ -5994,7 +5994,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
5994
5994
|
console.log("THREE.WebGLRenderer", "98"), t = t || {};
|
|
5995
5995
|
var P = t.canvas !== void 0 ? t.canvas : document.createElementNS("http://www.w3.org/1999/xhtml", "canvas"), k = t.context !== void 0 ? t.context : null, N = t.alpha !== void 0 ? t.alpha : !1, J = t.depth !== void 0 ? t.depth : !0, V = t.stencil !== void 0 ? t.stencil : !0, ot = t.antialias !== void 0 ? t.antialias : !1, T = t.premultipliedAlpha !== void 0 ? t.premultipliedAlpha : !0, A = t.preserveDrawingBuffer !== void 0 ? t.preserveDrawingBuffer : !1, tt = t.powerPreference !== void 0 ? t.powerPreference : "default", _t = null, vt = null;
|
|
5996
5996
|
this.domElement = P, this.context = null, this.sortObjects = this.autoClearStencil = this.autoClearDepth = this.autoClearColor = this.autoClear = !0, this.clippingPlanes = [], this.localClippingEnabled = !1, this.gammaFactor = 2, this.physicallyCorrectLights = this.gammaOutput = this.gammaInput = !1, this.toneMappingWhitePoint = this.toneMappingExposure = this.toneMapping = 1, this.maxMorphTargets = 8, this.maxMorphNormals = 4;
|
|
5997
|
-
var lt = this, Ht = !1, Dt = null, $t = null, Xt = null, Qt = -1, ne = e = null, me = !1, Pe = null, di = null, hi = new
|
|
5997
|
+
var lt = this, Ht = !1, Dt = null, $t = null, Xt = null, Qt = -1, ne = e = null, me = !1, Pe = null, di = null, hi = new Z(), qe = new Z(), ui = null, $e = 0, wi = P.width, qt = P.height, ge = 1, rt = new Z(0, 0, wi, qt), ye = new Z(0, 0, wi, qt), Te = !1, Ye = new Q(), Yt = new Ii(), ue = !1, _e = !1, Ne = new ft(), Ie = new x();
|
|
5998
5998
|
try {
|
|
5999
5999
|
N = {
|
|
6000
6000
|
alpha: N,
|
|
@@ -6308,7 +6308,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
6308
6308
|
]);
|
|
6309
6309
|
e = new Fe(e, 5), bn.setIndex([0, 1, 2, 0, 2, 3]), bn.addAttribute("position", new Ge(e, 3, 0, !1)), bn.addAttribute("uv", new Ge(e, 2, 3, !1));
|
|
6310
6310
|
}
|
|
6311
|
-
this.geometry = bn, this.material = t !== void 0 ? t : new Ve(), this.center = new
|
|
6311
|
+
this.geometry = bn, this.material = t !== void 0 ? t : new Ve(), this.center = new Y(0.5, 0.5);
|
|
6312
6312
|
}
|
|
6313
6313
|
function ei() {
|
|
6314
6314
|
b.call(this), this.type = "LOD", Object.defineProperties(this, { levels: { enumerable: !0, value: [] } });
|
|
@@ -6455,7 +6455,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
6455
6455
|
1 - (Math.atan2(-l.y, Math.sqrt(l.x * l.x + l.z * l.z)) / Math.PI + 0.5)
|
|
6456
6456
|
);
|
|
6457
6457
|
l = new x(), c = new x();
|
|
6458
|
-
for (var u = new x(), d = new x(), g = new
|
|
6458
|
+
for (var u = new x(), d = new x(), g = new Y(), w = new Y(), S = new Y(), P = 0, k = 0; P < a.length; P += 9, k += 6) {
|
|
6459
6459
|
l.set(a[P + 0], a[P + 1], a[P + 2]), c.set(a[P + 3], a[P + 4], a[P + 5]), u.set(a[P + 6], a[P + 7], a[P + 8]), g.set(h[k + 0], h[k + 1]), w.set(h[k + 2], h[k + 3]), S.set(h[k + 4], h[k + 5]), d.copy(l).add(c).add(u).divideScalar(3);
|
|
6460
6460
|
var N = Math.atan2(d.z, -d.x);
|
|
6461
6461
|
s(g, k + 0, l, N), s(w, k + 2, c, N), s(S, k + 4, u, N);
|
|
@@ -6809,7 +6809,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
6809
6809
|
}, e = e || 64, i = i || 1, r = r || 8, n = n || !1;
|
|
6810
6810
|
var s = t.computeFrenetFrames(e, n);
|
|
6811
6811
|
this.tangents = s.tangents, this.normals = s.normals, this.binormals = s.binormals;
|
|
6812
|
-
var a = new x(), h = new x(), l = new
|
|
6812
|
+
var a = new x(), h = new x(), l = new Y(), c = new x(), u, d, g = [], w = [], S = [], P = [];
|
|
6813
6813
|
for (u = 0; u < e; u++)
|
|
6814
6814
|
o(u);
|
|
6815
6815
|
for (o(n === !1 ? e : 0), u = 0; u <= e; u++)
|
|
@@ -7134,11 +7134,11 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
7134
7134
|
if (Math.abs(Ie * ve - Mt * xe) > Number.EPSILON) {
|
|
7135
7135
|
var Bi = Math.sqrt(we), fi = Math.sqrt(xe * xe + ve * ve);
|
|
7136
7136
|
if (we = _e.x - Mt / Bi, _e = _e.y + Ie / Bi, ve = ((Ne.x - ve / fi - we) * ve - (Ne.y + xe / fi - _e) * xe) / (Ie * ve - Mt * xe), xe = we + Ie * ve - ue.x, Ie = _e + Mt * ve - ue.y, Mt = xe * xe + Ie * Ie, 2 >= Mt)
|
|
7137
|
-
return new
|
|
7137
|
+
return new Y(xe, Ie);
|
|
7138
7138
|
Mt = Math.sqrt(Mt / 2);
|
|
7139
7139
|
} else
|
|
7140
7140
|
ue = !1, Ie > Number.EPSILON ? xe > Number.EPSILON && (ue = !0) : Ie < -Number.EPSILON ? xe < -Number.EPSILON && (ue = !0) : Math.sign(Mt) === Math.sign(ve) && (ue = !0), ue ? (xe = -Mt, Mt = Math.sqrt(we)) : (xe = Ie, Ie = Mt, Mt = Math.sqrt(we / 2));
|
|
7141
|
-
return new
|
|
7141
|
+
return new Y(xe / Mt, Ie / Mt);
|
|
7142
7142
|
}
|
|
7143
7143
|
function u(ue, _e) {
|
|
7144
7144
|
for (qt = ue.length; 0 <= --qt; ) {
|
|
@@ -7326,7 +7326,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
7326
7326
|
thetaStart: n,
|
|
7327
7327
|
thetaLength: o
|
|
7328
7328
|
}, t = t || 0.5, e = e || 1, n = n !== void 0 ? n : 0, o = o !== void 0 ? o : 2 * Math.PI, i = i !== void 0 ? Math.max(3, i) : 8, r = r !== void 0 ? Math.max(1, r) : 1;
|
|
7329
|
-
var s = [], a = [], h = [], l = [], c = t, u = (e - t) / r, d = new x(), g = new
|
|
7329
|
+
var s = [], a = [], h = [], l = [], c = t, u = (e - t) / r, d = new x(), g = new Y(), w, S;
|
|
7330
7330
|
for (w = 0; w <= r; w++) {
|
|
7331
7331
|
for (S = 0; S <= i; S++)
|
|
7332
7332
|
t = n + S / i * o, d.x = c * Math.cos(t), d.y = c * Math.sin(t), a.push(d.x, d.y, d.z), h.push(0, 0, 1), g.x = (d.x / e + 1) / 2, g.y = (d.y / e + 1) / 2, l.push(g.x, g.y);
|
|
@@ -7342,7 +7342,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
7342
7342
|
}
|
|
7343
7343
|
function fn(t, e, i, r) {
|
|
7344
7344
|
Rt.call(this), this.type = "LatheBufferGeometry", this.parameters = { points: t, segments: e, phiStart: i, phiLength: r }, e = Math.floor(e) || 12, i = i || 0, r = r || 2 * Math.PI, r = Se.clamp(r, 0, 2 * Math.PI);
|
|
7345
|
-
var n = [], o = [], s = [], a = 1 / e, h = new x(), l = new
|
|
7345
|
+
var n = [], o = [], s = [], a = 1 / e, h = new x(), l = new Y(), c;
|
|
7346
7346
|
for (c = 0; c <= e; c++) {
|
|
7347
7347
|
var u = i + c * a * r, d = Math.sin(u), g = Math.cos(u);
|
|
7348
7348
|
for (u = 0; u <= t.length - 1; u++)
|
|
@@ -7427,7 +7427,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
7427
7427
|
}
|
|
7428
7428
|
function mr(t, e, i, r, n, o, s, a) {
|
|
7429
7429
|
function h(N) {
|
|
7430
|
-
var J, V = new
|
|
7430
|
+
var J, V = new Y(), ot = new x(), T = 0, A = N === !0 ? t : e, tt = N === !0 ? 1 : -1, _t = w;
|
|
7431
7431
|
for (J = 1; J <= r; J++)
|
|
7432
7432
|
u.push(0, P * tt, 0), d.push(0, tt, 0), g.push(0.5, 0.5), w++;
|
|
7433
7433
|
var vt = w;
|
|
@@ -7495,7 +7495,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
7495
7495
|
}
|
|
7496
7496
|
function gn(t, e, i, r) {
|
|
7497
7497
|
Rt.call(this), this.type = "CircleBufferGeometry", this.parameters = { radius: t, segments: e, thetaStart: i, thetaLength: r }, t = t || 1, e = e !== void 0 ? Math.max(3, e) : 8, i = i !== void 0 ? i : 0, r = r !== void 0 ? r : 2 * Math.PI;
|
|
7498
|
-
var n = [], o = [], s = [], a = [], h, l = new x(), c = new
|
|
7498
|
+
var n = [], o = [], s = [], a = [], h, l = new x(), c = new Y();
|
|
7499
7499
|
o.push(0, 0, 0), s.push(0, 0, 1), a.push(0.5, 0.5);
|
|
7500
7500
|
var u = 0;
|
|
7501
7501
|
for (h = 3; u <= e; u++, h += 3) {
|
|
@@ -7513,25 +7513,25 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
7513
7513
|
Ze.call(this, t), this.type = "RawShaderMaterial";
|
|
7514
7514
|
}
|
|
7515
7515
|
function ar(t) {
|
|
7516
|
-
fe.call(this), this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new H(16777215), this.metalness = this.roughness = 0.5, this.lightMap = this.map = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new H(0), this.emissiveIntensity = 1, this.bumpMap = this.emissiveMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new
|
|
7516
|
+
fe.call(this), this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new H(16777215), this.metalness = this.roughness = 0.5, this.lightMap = this.map = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new H(0), this.emissiveIntensity = 1, this.bumpMap = this.emissiveMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new Y(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.envMap = this.alphaMap = this.metalnessMap = this.roughnessMap = null, this.envMapIntensity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinejoin = this.wireframeLinecap = "round", this.morphNormals = this.morphTargets = this.skinning = !1, this.setValues(t);
|
|
7517
7517
|
}
|
|
7518
7518
|
function Gr(t) {
|
|
7519
7519
|
ar.call(this), this.defines = { PHYSICAL: "" }, this.type = "MeshPhysicalMaterial", this.reflectivity = 0.5, this.clearCoatRoughness = this.clearCoat = 0, this.setValues(t);
|
|
7520
7520
|
}
|
|
7521
7521
|
function qi(t) {
|
|
7522
|
-
fe.call(this), this.type = "MeshPhongMaterial", this.color = new H(16777215), this.specular = new H(1118481), this.shininess = 30, this.lightMap = this.map = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new H(0), this.emissiveIntensity = 1, this.bumpMap = this.emissiveMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new
|
|
7522
|
+
fe.call(this), this.type = "MeshPhongMaterial", this.color = new H(16777215), this.specular = new H(1118481), this.shininess = 30, this.lightMap = this.map = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new H(0), this.emissiveIntensity = 1, this.bumpMap = this.emissiveMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new Y(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.envMap = this.alphaMap = this.specularMap = null, this.combine = 0, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinejoin = this.wireframeLinecap = "round", this.morphNormals = this.morphTargets = this.skinning = !1, this.setValues(t);
|
|
7523
7523
|
}
|
|
7524
7524
|
function Hr(t) {
|
|
7525
7525
|
qi.call(this), this.defines = { TOON: "" }, this.type = "MeshToonMaterial", this.gradientMap = null, this.setValues(t);
|
|
7526
7526
|
}
|
|
7527
7527
|
function kr(t) {
|
|
7528
|
-
fe.call(this), this.type = "MeshNormalMaterial", this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new
|
|
7528
|
+
fe.call(this), this.type = "MeshNormalMaterial", this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new Y(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.morphNormals = this.morphTargets = this.skinning = this.lights = this.fog = !1, this.setValues(t);
|
|
7529
7529
|
}
|
|
7530
7530
|
function jr(t) {
|
|
7531
7531
|
fe.call(this), this.type = "MeshLambertMaterial", this.color = new H(16777215), this.lightMap = this.map = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new H(0), this.emissiveIntensity = 1, this.envMap = this.alphaMap = this.specularMap = this.emissiveMap = null, this.combine = 0, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinejoin = this.wireframeLinecap = "round", this.morphNormals = this.morphTargets = this.skinning = !1, this.setValues(t);
|
|
7532
7532
|
}
|
|
7533
7533
|
function Vr(t) {
|
|
7534
|
-
if (fe.call(this), this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new H(16777215), this.bumpMap = this.map = this.matcap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new
|
|
7534
|
+
if (fe.call(this), this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new H(16777215), this.bumpMap = this.map = this.matcap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new Y(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.lights = this.morphNormals = this.morphTargets = this.skinning = !1, this.setValues(t), this.matcap === null) {
|
|
7535
7535
|
t = document.createElement("canvas"), t.width = 1, t.height = 1;
|
|
7536
7536
|
var e = t.getContext("2d");
|
|
7537
7537
|
e.fillStyle = "#fff", e.fillRect(0, 0, 1, 1), this.matcap = new THREE.CanvasTexture(t);
|
|
@@ -7694,19 +7694,19 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
7694
7694
|
return o * o * o * e + 3 * s * s * t * i + 3 * (1 - t) * t * t * r + t * t * t * n;
|
|
7695
7695
|
}
|
|
7696
7696
|
function Yi(t, e, i, r) {
|
|
7697
|
-
pe.call(this), this.type = "CubicBezierCurve", this.v0 = t || new
|
|
7697
|
+
pe.call(this), this.type = "CubicBezierCurve", this.v0 = t || new Y(), this.v1 = e || new Y(), this.v2 = i || new Y(), this.v3 = r || new Y();
|
|
7698
7698
|
}
|
|
7699
7699
|
function hr(t, e, i, r) {
|
|
7700
7700
|
pe.call(this), this.type = "CubicBezierCurve3", this.v0 = t || new x(), this.v1 = e || new x(), this.v2 = i || new x(), this.v3 = r || new x();
|
|
7701
7701
|
}
|
|
7702
7702
|
function zi(t, e) {
|
|
7703
|
-
pe.call(this), this.type = "LineCurve", this.v1 = t || new
|
|
7703
|
+
pe.call(this), this.type = "LineCurve", this.v1 = t || new Y(), this.v2 = e || new Y();
|
|
7704
7704
|
}
|
|
7705
7705
|
function Zi(t, e) {
|
|
7706
7706
|
pe.call(this), this.type = "LineCurve3", this.v1 = t || new x(), this.v2 = e || new x();
|
|
7707
7707
|
}
|
|
7708
7708
|
function Ji(t, e, i) {
|
|
7709
|
-
pe.call(this), this.type = "QuadraticBezierCurve", this.v0 = t || new
|
|
7709
|
+
pe.call(this), this.type = "QuadraticBezierCurve", this.v0 = t || new Y(), this.v1 = e || new Y(), this.v2 = i || new Y();
|
|
7710
7710
|
}
|
|
7711
7711
|
function lr(t, e, i) {
|
|
7712
7712
|
pe.call(this), this.type = "QuadraticBezierCurve3", this.v0 = t || new x(), this.v1 = e || new x(), this.v2 = i || new x();
|
|
@@ -7718,7 +7718,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
7718
7718
|
pe.call(this), this.type = "CurvePath", this.curves = [], this.autoClose = !1;
|
|
7719
7719
|
}
|
|
7720
7720
|
function $i(t) {
|
|
7721
|
-
gr.call(this), this.type = "Path", this.currentPoint = new
|
|
7721
|
+
gr.call(this), this.type = "Path", this.currentPoint = new Y(), t && this.setFromPoints(t);
|
|
7722
7722
|
}
|
|
7723
7723
|
function Sr(t) {
|
|
7724
7724
|
$i.call(this, t), this.uuid = Se.generateUUID(), this.type = "Shape", this.holes = [];
|
|
@@ -7730,7 +7730,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
7730
7730
|
ri.call(this, t, i), this.type = "HemisphereLight", this.castShadow = void 0, this.position.copy(b.DefaultUp), this.updateMatrix(), this.groundColor = new H(e);
|
|
7731
7731
|
}
|
|
7732
7732
|
function Xr(t) {
|
|
7733
|
-
this.camera = t, this.bias = 0, this.radius = 1, this.mapSize = new
|
|
7733
|
+
this.camera = t, this.bias = 0, this.radius = 1, this.mapSize = new Y(512, 512), this.map = null, this.matrix = new ft();
|
|
7734
7734
|
}
|
|
7735
7735
|
function Do() {
|
|
7736
7736
|
Xr.call(this, new Bt(50, 1, 0.5, 500));
|
|
@@ -7945,7 +7945,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
7945
7945
|
return this.radius = t !== void 0 ? t : 1, this.theta = e !== void 0 ? e : 0, this.y = i !== void 0 ? i : 0, this;
|
|
7946
7946
|
}
|
|
7947
7947
|
function bs(t, e) {
|
|
7948
|
-
this.min = t !== void 0 ? t : new
|
|
7948
|
+
this.min = t !== void 0 ? t : new Y(1 / 0, 1 / 0), this.max = e !== void 0 ? e : new Y(-1 / 0, -1 / 0);
|
|
7949
7949
|
}
|
|
7950
7950
|
function Rs(t, e) {
|
|
7951
7951
|
this.start = t !== void 0 ? t : new x(), this.end = e !== void 0 ? e : new x();
|
|
@@ -8258,7 +8258,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
8258
8258
|
}
|
|
8259
8259
|
return e;
|
|
8260
8260
|
};
|
|
8261
|
-
}(), Object.assign(
|
|
8261
|
+
}(), Object.assign(pt.prototype, {
|
|
8262
8262
|
addEventListener: function(t, e) {
|
|
8263
8263
|
this._listeners === void 0 && (this._listeners = {});
|
|
8264
8264
|
var i = this._listeners;
|
|
@@ -8338,7 +8338,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
8338
8338
|
return Math.pow(2, Math.floor(Math.log(t) / Math.LN2));
|
|
8339
8339
|
}
|
|
8340
8340
|
};
|
|
8341
|
-
Object.defineProperties(
|
|
8341
|
+
Object.defineProperties(Y.prototype, {
|
|
8342
8342
|
width: {
|
|
8343
8343
|
get: function() {
|
|
8344
8344
|
return this.x;
|
|
@@ -8355,7 +8355,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
8355
8355
|
this.y = t;
|
|
8356
8356
|
}
|
|
8357
8357
|
}
|
|
8358
|
-
}), Object.assign(
|
|
8358
|
+
}), Object.assign(Y.prototype, {
|
|
8359
8359
|
isVector2: !0,
|
|
8360
8360
|
set: function(t, e) {
|
|
8361
8361
|
return this.x = t, this.y = e, this;
|
|
@@ -8449,7 +8449,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
8449
8449
|
return this.x = Math.max(t.x, Math.min(e.x, this.x)), this.y = Math.max(t.y, Math.min(e.y, this.y)), this;
|
|
8450
8450
|
},
|
|
8451
8451
|
clampScalar: function() {
|
|
8452
|
-
var t = new
|
|
8452
|
+
var t = new Y(), e = new Y();
|
|
8453
8453
|
return function(i, r) {
|
|
8454
8454
|
return t.set(i, i), e.set(r, r), this.clamp(t, e);
|
|
8455
8455
|
};
|
|
@@ -9362,7 +9362,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
9362
9362
|
return 2048 < e.width || 2048 < e.height ? e.toDataURL("image/jpeg", 0.6) : e.toDataURL("image/png");
|
|
9363
9363
|
}
|
|
9364
9364
|
}, Ga = 0;
|
|
9365
|
-
Ct.DEFAULT_IMAGE = void 0, Ct.DEFAULT_MAPPING = 300, Ct.prototype = Object.assign(Object.create(
|
|
9365
|
+
Ct.DEFAULT_IMAGE = void 0, Ct.DEFAULT_MAPPING = 300, Ct.prototype = Object.assign(Object.create(pt.prototype), {
|
|
9366
9366
|
constructor: Ct,
|
|
9367
9367
|
isTexture: !0,
|
|
9368
9368
|
updateMatrix: function() {
|
|
@@ -9454,7 +9454,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
9454
9454
|
set: function(t) {
|
|
9455
9455
|
t === !0 && this.version++;
|
|
9456
9456
|
}
|
|
9457
|
-
}), Object.assign(
|
|
9457
|
+
}), Object.assign(Z.prototype, {
|
|
9458
9458
|
isVector4: !0,
|
|
9459
9459
|
set: function(t, e, i, r) {
|
|
9460
9460
|
return this.x = t, this.y = e, this.z = i, this.w = r, this;
|
|
@@ -9570,7 +9570,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
9570
9570
|
clampScalar: function() {
|
|
9571
9571
|
var t, e;
|
|
9572
9572
|
return function(i, r) {
|
|
9573
|
-
return t === void 0 && (t = new
|
|
9573
|
+
return t === void 0 && (t = new Z(), e = new Z()), t.set(i, i, i, i), e.set(r, r, r, r), this.clamp(t, e);
|
|
9574
9574
|
};
|
|
9575
9575
|
}(),
|
|
9576
9576
|
clampLength: function(t, e) {
|
|
@@ -9634,7 +9634,7 @@ const xh = { class: "bim_background_plate" }, wh = { class: "content" }, Mh = /*
|
|
|
9634
9634
|
"THREE.Vector4: offset has been removed from .fromBufferAttribute()."
|
|
9635
9635
|
), this.x = t.getX(e), this.y = t.getY(e), this.z = t.getZ(e), this.w = t.getW(e), this;
|
|
9636
9636
|
}
|
|
9637
|
-
}), ht.prototype = Object.assign(Object.create(
|
|
9637
|
+
}), ht.prototype = Object.assign(Object.create(pt.prototype), {
|
|
9638
9638
|
constructor: ht,
|
|
9639
9639
|
isWebGLRenderTarget: !0,
|
|
9640
9640
|
setSize: function(t, e) {
|
|
@@ -12811,7 +12811,7 @@ void main() {
|
|
|
12811
12811
|
bumpmap: { bumpMap: { value: null }, bumpScale: { value: 1 } },
|
|
12812
12812
|
normalmap: {
|
|
12813
12813
|
normalMap: { value: null },
|
|
12814
|
-
normalScale: { value: new
|
|
12814
|
+
normalScale: { value: new Y(1, 1) }
|
|
12815
12815
|
},
|
|
12816
12816
|
displacementmap: {
|
|
12817
12817
|
displacementMap: { value: null },
|
|
@@ -12897,7 +12897,7 @@ void main() {
|
|
|
12897
12897
|
sprite: {
|
|
12898
12898
|
diffuse: { value: new H(15658734) },
|
|
12899
12899
|
opacity: { value: 1 },
|
|
12900
|
-
center: { value: new
|
|
12900
|
+
center: { value: new Y(0.5, 0.5) },
|
|
12901
12901
|
rotation: { value: 0 },
|
|
12902
12902
|
map: { value: null },
|
|
12903
12903
|
uvTransform: { value: new mt() }
|
|
@@ -13191,7 +13191,7 @@ void main() {
|
|
|
13191
13191
|
}
|
|
13192
13192
|
});
|
|
13193
13193
|
var ka = 0;
|
|
13194
|
-
b.DefaultUp = new x(0, 1, 0), b.DefaultMatrixAutoUpdate = !0, b.prototype = Object.assign(Object.create(
|
|
13194
|
+
b.DefaultUp = new x(0, 1, 0), b.DefaultMatrixAutoUpdate = !0, b.prototype = Object.assign(Object.create(pt.prototype), {
|
|
13195
13195
|
constructor: b,
|
|
13196
13196
|
isObject3D: !0,
|
|
13197
13197
|
onBeforeRender: function() {
|
|
@@ -13451,7 +13451,7 @@ void main() {
|
|
|
13451
13451
|
}
|
|
13452
13452
|
});
|
|
13453
13453
|
var ja = 0;
|
|
13454
|
-
F.prototype = Object.assign(Object.create(
|
|
13454
|
+
F.prototype = Object.assign(Object.create(pt.prototype), {
|
|
13455
13455
|
constructor: F,
|
|
13456
13456
|
isGeometry: !0,
|
|
13457
13457
|
applyMatrix: function(t) {
|
|
@@ -13508,13 +13508,13 @@ void main() {
|
|
|
13508
13508
|
new x().fromArray(s, 3 * P)
|
|
13509
13509
|
];
|
|
13510
13510
|
k = new C(w, S, P, J, N, k), i.faces.push(k), h !== void 0 && i.faceVertexUvs[0].push([
|
|
13511
|
-
new
|
|
13512
|
-
new
|
|
13513
|
-
new
|
|
13511
|
+
new Y().fromArray(h, 2 * w),
|
|
13512
|
+
new Y().fromArray(h, 2 * S),
|
|
13513
|
+
new Y().fromArray(h, 2 * P)
|
|
13514
13514
|
]), l !== void 0 && i.faceVertexUvs[1].push([
|
|
13515
|
-
new
|
|
13516
|
-
new
|
|
13517
|
-
new
|
|
13515
|
+
new Y().fromArray(l, 2 * w),
|
|
13516
|
+
new Y().fromArray(l, 2 * S),
|
|
13517
|
+
new Y().fromArray(l, 2 * P)
|
|
13518
13518
|
]);
|
|
13519
13519
|
}
|
|
13520
13520
|
var i = this, r = t.index !== null ? t.index.array : void 0, n = t.attributes, o = n.position.array, s = n.normal !== void 0 ? n.normal.array : void 0, a = n.color !== void 0 ? n.color.array : void 0, h = n.uv !== void 0 ? n.uv.array : void 0, l = n.uv2 !== void 0 ? n.uv2.array : void 0;
|
|
@@ -13848,7 +13848,7 @@ void main() {
|
|
|
13848
13848
|
o === void 0 && (console.warn(
|
|
13849
13849
|
"THREE.BufferAttribute.copyVector2sArray(): vector is undefined",
|
|
13850
13850
|
r
|
|
13851
|
-
), o = new
|
|
13851
|
+
), o = new Y()), e[i++] = o.x, e[i++] = o.y;
|
|
13852
13852
|
}
|
|
13853
13853
|
return this;
|
|
13854
13854
|
},
|
|
@@ -13868,7 +13868,7 @@ void main() {
|
|
|
13868
13868
|
o === void 0 && (console.warn(
|
|
13869
13869
|
"THREE.BufferAttribute.copyVector4sArray(): vector is undefined",
|
|
13870
13870
|
r
|
|
13871
|
-
), o = new
|
|
13871
|
+
), o = new Z()), e[i++] = o.x, e[i++] = o.y, e[i++] = o.z, e[i++] = o.w;
|
|
13872
13872
|
}
|
|
13873
13873
|
return this;
|
|
13874
13874
|
},
|
|
@@ -13951,10 +13951,10 @@ void main() {
|
|
|
13951
13951
|
for (N.length === 3 ? this.normals.push(N[0], N[1], N[2]) : (N = k.normal, this.normals.push(N, N, N)), N = k.vertexColors, N.length === 3 ? this.colors.push(N[0], N[1], N[2]) : (N = k.color, this.colors.push(N, N, N)), n === !0 && (N = r[0][l], N !== void 0 ? this.uvs.push(N[0], N[1], N[2]) : (console.warn(
|
|
13952
13952
|
"THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",
|
|
13953
13953
|
l
|
|
13954
|
-
), this.uvs.push(new
|
|
13954
|
+
), this.uvs.push(new Y(), new Y(), new Y()))), o === !0 && (N = r[1][l], N !== void 0 ? this.uvs2.push(N[0], N[1], N[2]) : (console.warn(
|
|
13955
13955
|
"THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",
|
|
13956
13956
|
l
|
|
13957
|
-
), this.uvs2.push(new
|
|
13957
|
+
), this.uvs2.push(new Y(), new Y(), new Y()))), N = 0; N < a; N++) {
|
|
13958
13958
|
var J = s[N].vertices;
|
|
13959
13959
|
h[N].data.push(J[k.a], J[k.b], J[k.c]);
|
|
13960
13960
|
}
|
|
@@ -13966,7 +13966,7 @@ void main() {
|
|
|
13966
13966
|
}
|
|
13967
13967
|
});
|
|
13968
13968
|
var Va = 1;
|
|
13969
|
-
Rt.prototype = Object.assign(Object.create(
|
|
13969
|
+
Rt.prototype = Object.assign(Object.create(pt.prototype), {
|
|
13970
13970
|
constructor: Rt,
|
|
13971
13971
|
isBufferGeometry: !0,
|
|
13972
13972
|
getIndex: function() {
|
|
@@ -14244,7 +14244,7 @@ void main() {
|
|
|
14244
14244
|
}
|
|
14245
14245
|
}), Ue.prototype = Object.create(F.prototype), Ue.prototype.constructor = Ue, gi.prototype = Object.create(Rt.prototype), gi.prototype.constructor = gi, Mi.prototype = Object.create(F.prototype), Mi.prototype.constructor = Mi, ni.prototype = Object.create(Rt.prototype), ni.prototype.constructor = ni;
|
|
14246
14246
|
var Wa = 0;
|
|
14247
|
-
fe.prototype = Object.assign(Object.create(
|
|
14247
|
+
fe.prototype = Object.assign(Object.create(pt.prototype), {
|
|
14248
14248
|
constructor: fe,
|
|
14249
14249
|
isMaterial: !0,
|
|
14250
14250
|
onBeforeCompile: function() {
|
|
@@ -14560,9 +14560,9 @@ void main() {
|
|
|
14560
14560
|
return (k.side === 1 ? J.intersectTriangle(T, ot, V, !0, A) : J.intersectTriangle(V, ot, T, k.side !== 2, A)) === null ? null : (S.copy(A), S.applyMatrix4(P.matrixWorld), k = N.ray.origin.distanceTo(S), k < N.near || k > N.far ? null : { distance: k, point: S.clone(), object: P });
|
|
14561
14561
|
}
|
|
14562
14562
|
function e(P, k, N, J, V, ot, T, A, tt) {
|
|
14563
|
-
return o.fromBufferAttribute(V, T), s.fromBufferAttribute(V, A), a.fromBufferAttribute(V, tt), (P = t(P, k, N, J, o, s, a, w)) && (ot && (u.fromBufferAttribute(ot, T), d.fromBufferAttribute(ot, A), g.fromBufferAttribute(ot, tt), P.uv = Re.getUV(w, o, s, a, u, d, g, new
|
|
14563
|
+
return o.fromBufferAttribute(V, T), s.fromBufferAttribute(V, A), a.fromBufferAttribute(V, tt), (P = t(P, k, N, J, o, s, a, w)) && (ot && (u.fromBufferAttribute(ot, T), d.fromBufferAttribute(ot, A), g.fromBufferAttribute(ot, tt), P.uv = Re.getUV(w, o, s, a, u, d, g, new Y())), ot = new C(T, A, tt), Re.getNormal(o, s, a, ot.normal), P.face = ot), P;
|
|
14564
14564
|
}
|
|
14565
|
-
var i = new ft(), r = new Li(), n = new Ot(), o = new x(), s = new x(), a = new x(), h = new x(), l = new x(), c = new x(), u = new
|
|
14565
|
+
var i = new ft(), r = new Li(), n = new Ot(), o = new x(), s = new x(), a = new x(), h = new x(), l = new x(), c = new x(), u = new Y(), d = new Y(), g = new Y(), w = new x(), S = new x();
|
|
14566
14566
|
return function(P, k) {
|
|
14567
14567
|
var N = this.geometry, J = this.material, V = this.matrixWorld;
|
|
14568
14568
|
if (J !== void 0 && (N.boundingSphere === null && N.computeBoundingSphere(), n.copy(N.boundingSphere), n.applyMatrix4(V), P.ray.intersectsSphere(n) !== !1 && (i.getInverse(V), r.copy(P.ray).applyMatrix4(i), N.boundingBox === null || r.intersectsBox(N.boundingBox) !== !1))) {
|
|
@@ -14610,7 +14610,7 @@ void main() {
|
|
|
14610
14610
|
}
|
|
14611
14611
|
o.add(vt), s.add(_t), a.add(Ht), vt = o, _t = s, Ht = a;
|
|
14612
14612
|
}
|
|
14613
|
-
(V = t(this, V, P, r, vt, _t, Ht, w)) && (ot && ot[lt] && (Xt = ot[lt], u.copy(Xt[0]), d.copy(Xt[1]), g.copy(Xt[2]), V.uv = Re.getUV(w, vt, _t, Ht, u, d, g, new
|
|
14613
|
+
(V = t(this, V, P, r, vt, _t, Ht, w)) && (ot && ot[lt] && (Xt = ot[lt], u.copy(Xt[0]), d.copy(Xt[1]), g.copy(Xt[2]), V.uv = Re.getUV(w, vt, _t, Ht, u, d, g, new Y())), V.face = $t, V.faceIndex = lt, k.push(V));
|
|
14614
14614
|
}
|
|
14615
14615
|
}
|
|
14616
14616
|
}
|
|
@@ -14852,7 +14852,7 @@ void main() {
|
|
|
14852
14852
|
function t(g, w, S, P, k, N) {
|
|
14853
14853
|
n.subVectors(g, S).addScalar(0.5).multiply(P), k !== void 0 ? (o.x = N * n.x - k * n.y, o.y = k * n.x + N * n.y) : o.copy(n), g.copy(w), g.x += o.x, g.y += o.y, g.applyMatrix4(s);
|
|
14854
14854
|
}
|
|
14855
|
-
var e = new x(), i = new x(), r = new x(), n = new
|
|
14855
|
+
var e = new x(), i = new x(), r = new x(), n = new Y(), o = new Y(), s = new ft(), a = new x(), h = new x(), l = new x(), c = new Y(), u = new Y(), d = new Y();
|
|
14856
14856
|
return function(g, w) {
|
|
14857
14857
|
i.setFromMatrixScale(this.matrixWorld), s.getInverse(this.modelViewMatrix).premultiply(this.matrixWorld), r.setFromMatrixPosition(this.modelViewMatrix);
|
|
14858
14858
|
var S = this.material.rotation;
|
|
@@ -14863,7 +14863,7 @@ void main() {
|
|
|
14863
14863
|
N === null && (t(h.set(-0.5, 0.5, 0), r, S, i, k, P), u.set(0, 1), N = g.ray.intersectTriangle(a, l, h, !1, e), N === null) || (k = g.ray.origin.distanceTo(e), k < g.near || k > g.far || w.push({
|
|
14864
14864
|
distance: k,
|
|
14865
14865
|
point: e.clone(),
|
|
14866
|
-
uv: Re.getUV(e, a, h, l, c, u, d, new
|
|
14866
|
+
uv: Re.getUV(e, a, h, l, c, u, d, new Y()),
|
|
14867
14867
|
face: null,
|
|
14868
14868
|
object: this
|
|
14869
14869
|
}));
|
|
@@ -14991,7 +14991,7 @@ void main() {
|
|
|
14991
14991
|
i !== 1 / 0 ? e.multiplyScalar(i) : e.set(1, 0, 0, 0);
|
|
14992
14992
|
}
|
|
14993
14993
|
else if (this.geometry && this.geometry.isBufferGeometry) {
|
|
14994
|
-
e = new
|
|
14994
|
+
e = new Z();
|
|
14995
14995
|
var r = this.geometry.attributes.skinWeight;
|
|
14996
14996
|
for (t = 0; t < r.count; t++)
|
|
14997
14997
|
e.x = r.getX(t), e.y = r.getY(t), e.z = r.getZ(t), e.w = r.getW(t), i = 1 / e.manhattanLength(), i !== 1 / 0 ? e.multiplyScalar(i) : e.set(1, 0, 0, 0), r.setXYZW(t, e.x, e.y, e.z, e.w);
|
|
@@ -15218,7 +15218,7 @@ void main() {
|
|
|
15218
15218
|
generateTopUV: function(t, e, i, r, n) {
|
|
15219
15219
|
t = e[3 * r], r = e[3 * r + 1];
|
|
15220
15220
|
var o = e[3 * n];
|
|
15221
|
-
return n = e[3 * n + 1], [new
|
|
15221
|
+
return n = e[3 * n + 1], [new Y(e[3 * i], e[3 * i + 1]), new Y(t, r), new Y(o, n)];
|
|
15222
15222
|
},
|
|
15223
15223
|
generateSideWallUV: function(t, e, i, r, n, o) {
|
|
15224
15224
|
t = e[3 * i];
|
|
@@ -15229,7 +15229,7 @@ void main() {
|
|
|
15229
15229
|
var l = e[3 * n], c = e[3 * n + 1];
|
|
15230
15230
|
n = e[3 * n + 2];
|
|
15231
15231
|
var u = e[3 * o], d = e[3 * o + 1];
|
|
15232
|
-
return e = e[3 * o + 2], 0.01 > Math.abs(s - h) ? [new
|
|
15232
|
+
return e = e[3 * o + 2], 0.01 > Math.abs(s - h) ? [new Y(t, 1 - i), new Y(a, 1 - r), new Y(l, 1 - n), new Y(u, 1 - e)] : [new Y(s, 1 - i), new Y(h, 1 - r), new Y(c, 1 - n), new Y(d, 1 - e)];
|
|
15233
15233
|
}
|
|
15234
15234
|
};
|
|
15235
15235
|
$n.prototype = Object.create(F.prototype), $n.prototype.constructor = $n, pn.prototype = Object.create(sr.prototype), pn.prototype.constructor = pn, Kn.prototype = Object.create(F.prototype), Kn.prototype.constructor = Kn, zr.prototype = Object.create(Rt.prototype), zr.prototype.constructor = zr, to.prototype = Object.create(F.prototype), to.prototype.constructor = to, dn.prototype = Object.create(Rt.prototype), dn.prototype.constructor = dn, eo.prototype = Object.create(F.prototype), eo.prototype.constructor = eo, fn.prototype = Object.create(Rt.prototype), fn.prototype.constructor = fn, Nr.prototype = Object.create(F.prototype), Nr.prototype.constructor = Nr, Nr.prototype.toJSON = function() {
|
|
@@ -16165,7 +16165,7 @@ void main() {
|
|
|
16165
16165
|
return this.arcLengthDivisions = t.arcLengthDivisions, this;
|
|
16166
16166
|
}
|
|
16167
16167
|
}), ki.prototype = Object.create(pe.prototype), ki.prototype.constructor = ki, ki.prototype.isEllipseCurve = !0, ki.prototype.getPoint = function(t, e) {
|
|
16168
|
-
e = e || new
|
|
16168
|
+
e = e || new Y();
|
|
16169
16169
|
for (var i = 2 * Math.PI, r = this.aEndAngle - this.aStartAngle, n = Math.abs(r) < Number.EPSILON; 0 > r; )
|
|
16170
16170
|
r += i;
|
|
16171
16171
|
for (; r > i; )
|
|
@@ -16217,7 +16217,7 @@ void main() {
|
|
|
16217
16217
|
}
|
|
16218
16218
|
return this.closed = t.closed, this.curveType = t.curveType, this.tension = t.tension, this;
|
|
16219
16219
|
}, Yi.prototype = Object.create(pe.prototype), Yi.prototype.constructor = Yi, Yi.prototype.isCubicBezierCurve = !0, Yi.prototype.getPoint = function(t, e) {
|
|
16220
|
-
e = e || new
|
|
16220
|
+
e = e || new Y();
|
|
16221
16221
|
var i = this.v0, r = this.v1, n = this.v2, o = this.v3;
|
|
16222
16222
|
return e.set(lo(t, i.x, r.x, n.x, o.x), lo(t, i.y, r.y, n.y, o.y)), e;
|
|
16223
16223
|
}, Yi.prototype.copy = function(t) {
|
|
@@ -16243,7 +16243,7 @@ void main() {
|
|
|
16243
16243
|
}, hr.prototype.fromJSON = function(t) {
|
|
16244
16244
|
return pe.prototype.fromJSON.call(this, t), this.v0.fromArray(t.v0), this.v1.fromArray(t.v1), this.v2.fromArray(t.v2), this.v3.fromArray(t.v3), this;
|
|
16245
16245
|
}, zi.prototype = Object.create(pe.prototype), zi.prototype.constructor = zi, zi.prototype.isLineCurve = !0, zi.prototype.getPoint = function(t, e) {
|
|
16246
|
-
return e = e || new
|
|
16246
|
+
return e = e || new Y(), t === 1 ? e.copy(this.v2) : (e.copy(this.v2).sub(this.v1), e.multiplyScalar(t).add(this.v1)), e;
|
|
16247
16247
|
}, zi.prototype.getPointAt = function(t, e) {
|
|
16248
16248
|
return this.getPoint(t, e);
|
|
16249
16249
|
}, zi.prototype.getTangent = function() {
|
|
@@ -16267,7 +16267,7 @@ void main() {
|
|
|
16267
16267
|
}, Zi.prototype.fromJSON = function(t) {
|
|
16268
16268
|
return pe.prototype.fromJSON.call(this, t), this.v1.fromArray(t.v1), this.v2.fromArray(t.v2), this;
|
|
16269
16269
|
}, Ji.prototype = Object.create(pe.prototype), Ji.prototype.constructor = Ji, Ji.prototype.isQuadraticBezierCurve = !0, Ji.prototype.getPoint = function(t, e) {
|
|
16270
|
-
e = e || new
|
|
16270
|
+
e = e || new Y();
|
|
16271
16271
|
var i = this.v0, r = this.v1, n = this.v2;
|
|
16272
16272
|
return e.set(ho(t, i.x, r.x, n.x), ho(t, i.y, r.y, n.y)), e;
|
|
16273
16273
|
}, Ji.prototype.copy = function(t) {
|
|
@@ -16289,7 +16289,7 @@ void main() {
|
|
|
16289
16289
|
}, lr.prototype.fromJSON = function(t) {
|
|
16290
16290
|
return pe.prototype.fromJSON.call(this, t), this.v0.fromArray(t.v0), this.v1.fromArray(t.v1), this.v2.fromArray(t.v2), this;
|
|
16291
16291
|
}, Qi.prototype = Object.create(pe.prototype), Qi.prototype.constructor = Qi, Qi.prototype.isSplineCurve = !0, Qi.prototype.getPoint = function(t, e) {
|
|
16292
|
-
e = e || new
|
|
16292
|
+
e = e || new Y();
|
|
16293
16293
|
var i = this.points, r = (i.length - 1) * t;
|
|
16294
16294
|
t = Math.floor(r), r -= t;
|
|
16295
16295
|
var n = i[t === 0 ? t : t - 1], o = i[t], s = i[t > i.length - 2 ? i.length - 1 : t + 1];
|
|
@@ -16309,7 +16309,7 @@ void main() {
|
|
|
16309
16309
|
pe.prototype.fromJSON.call(this, t), this.points = [];
|
|
16310
16310
|
for (var e = 0, i = t.points.length; e < i; e++) {
|
|
16311
16311
|
var r = t.points[e];
|
|
16312
|
-
this.points.push(new
|
|
16312
|
+
this.points.push(new Y().fromArray(r));
|
|
16313
16313
|
}
|
|
16314
16314
|
return this;
|
|
16315
16315
|
};
|
|
@@ -16409,18 +16409,18 @@ void main() {
|
|
|
16409
16409
|
this.currentPoint.set(t, e);
|
|
16410
16410
|
},
|
|
16411
16411
|
lineTo: function(t, e) {
|
|
16412
|
-
var i = new zi(this.currentPoint.clone(), new
|
|
16412
|
+
var i = new zi(this.currentPoint.clone(), new Y(t, e));
|
|
16413
16413
|
this.curves.push(i), this.currentPoint.set(t, e);
|
|
16414
16414
|
},
|
|
16415
16415
|
quadraticCurveTo: function(t, e, i, r) {
|
|
16416
|
-
t = new Ji(this.currentPoint.clone(), new
|
|
16416
|
+
t = new Ji(this.currentPoint.clone(), new Y(t, e), new Y(i, r)), this.curves.push(t), this.currentPoint.set(i, r);
|
|
16417
16417
|
},
|
|
16418
16418
|
bezierCurveTo: function(t, e, i, r, n, o) {
|
|
16419
16419
|
t = new Yi(
|
|
16420
16420
|
this.currentPoint.clone(),
|
|
16421
|
-
new
|
|
16422
|
-
new
|
|
16423
|
-
new
|
|
16421
|
+
new Y(t, e),
|
|
16422
|
+
new Y(i, r),
|
|
16423
|
+
new Y(n, o)
|
|
16424
16424
|
), this.curves.push(t), this.currentPoint.set(n, o);
|
|
16425
16425
|
},
|
|
16426
16426
|
splineThru: function(t) {
|
|
@@ -16614,13 +16614,13 @@ void main() {
|
|
|
16614
16614
|
r.uniforms[n].value = new H().setHex(o.value);
|
|
16615
16615
|
break;
|
|
16616
16616
|
case "v2":
|
|
16617
|
-
r.uniforms[n].value = new
|
|
16617
|
+
r.uniforms[n].value = new Y().fromArray(o.value);
|
|
16618
16618
|
break;
|
|
16619
16619
|
case "v3":
|
|
16620
16620
|
r.uniforms[n].value = new x().fromArray(o.value);
|
|
16621
16621
|
break;
|
|
16622
16622
|
case "v4":
|
|
16623
|
-
r.uniforms[n].value = new
|
|
16623
|
+
r.uniforms[n].value = new Z().fromArray(o.value);
|
|
16624
16624
|
break;
|
|
16625
16625
|
case "m4":
|
|
16626
16626
|
r.uniforms[n].value = new ft().fromArray(o.value);
|
|
@@ -16629,7 +16629,7 @@ void main() {
|
|
|
16629
16629
|
r.uniforms[n].value = o.value;
|
|
16630
16630
|
}
|
|
16631
16631
|
}
|
|
16632
|
-
return t.defines !== void 0 && (r.defines = t.defines), t.vertexShader !== void 0 && (r.vertexShader = t.vertexShader), t.fragmentShader !== void 0 && (r.fragmentShader = t.fragmentShader), t.shading !== void 0 && (r.flatShading = t.shading === 1), t.size !== void 0 && (r.size = t.size), t.sizeAttenuation !== void 0 && (r.sizeAttenuation = t.sizeAttenuation), t.map !== void 0 && (r.map = e(t.map)), t.alphaMap !== void 0 && (r.alphaMap = e(t.alphaMap), r.transparent = !0), t.bumpMap !== void 0 && (r.bumpMap = e(t.bumpMap)), t.bumpScale !== void 0 && (r.bumpScale = t.bumpScale), t.normalMap !== void 0 && (r.normalMap = e(t.normalMap)), t.normalMapType !== void 0 && (r.normalMapType = t.normalMapType), t.normalScale !== void 0 && (n = t.normalScale, Array.isArray(n) === !1 && (n = [n, n]), r.normalScale = new
|
|
16632
|
+
return t.defines !== void 0 && (r.defines = t.defines), t.vertexShader !== void 0 && (r.vertexShader = t.vertexShader), t.fragmentShader !== void 0 && (r.fragmentShader = t.fragmentShader), t.shading !== void 0 && (r.flatShading = t.shading === 1), t.size !== void 0 && (r.size = t.size), t.sizeAttenuation !== void 0 && (r.sizeAttenuation = t.sizeAttenuation), t.map !== void 0 && (r.map = e(t.map)), t.alphaMap !== void 0 && (r.alphaMap = e(t.alphaMap), r.transparent = !0), t.bumpMap !== void 0 && (r.bumpMap = e(t.bumpMap)), t.bumpScale !== void 0 && (r.bumpScale = t.bumpScale), t.normalMap !== void 0 && (r.normalMap = e(t.normalMap)), t.normalMapType !== void 0 && (r.normalMapType = t.normalMapType), t.normalScale !== void 0 && (n = t.normalScale, Array.isArray(n) === !1 && (n = [n, n]), r.normalScale = new Y().fromArray(n)), t.displacementMap !== void 0 && (r.displacementMap = e(t.displacementMap)), t.displacementScale !== void 0 && (r.displacementScale = t.displacementScale), t.displacementBias !== void 0 && (r.displacementBias = t.displacementBias), t.roughnessMap !== void 0 && (r.roughnessMap = e(t.roughnessMap)), t.metalnessMap !== void 0 && (r.metalnessMap = e(t.metalnessMap)), t.emissiveMap !== void 0 && (r.emissiveMap = e(t.emissiveMap)), t.emissiveIntensity !== void 0 && (r.emissiveIntensity = t.emissiveIntensity), t.specularMap !== void 0 && (r.specularMap = e(t.specularMap)), t.envMap !== void 0 && (r.envMap = e(t.envMap)), t.envMapIntensity !== void 0 && (r.envMapIntensity = t.envMapIntensity), t.reflectivity !== void 0 && (r.reflectivity = t.reflectivity), t.lightMap !== void 0 && (r.lightMap = e(t.lightMap)), t.lightMapIntensity !== void 0 && (r.lightMapIntensity = t.lightMapIntensity), t.aoMap !== void 0 && (r.aoMap = e(t.aoMap)), t.aoMapIntensity !== void 0 && (r.aoMapIntensity = t.aoMapIntensity), t.gradientMap !== void 0 && (r.gradientMap = e(t.gradientMap)), r;
|
|
16633
16633
|
},
|
|
16634
16634
|
setPath: function(t) {
|
|
16635
16635
|
return this.path = t, this;
|
|
@@ -17004,7 +17004,7 @@ void main() {
|
|
|
17004
17004
|
var J = r.uvs[n];
|
|
17005
17005
|
for (i.faceVertexUvs[n][S] = [], i.faceVertexUvs[n][S + 1] = [], o = 0; 4 > o; o++) {
|
|
17006
17006
|
var V = a[g++], ot = J[2 * V];
|
|
17007
|
-
V = J[2 * V + 1], ot = new
|
|
17007
|
+
V = J[2 * V + 1], ot = new Y(ot, V), o !== 2 && i.faceVertexUvs[n][S].push(ot), o !== 0 && i.faceVertexUvs[n][S + 1].push(ot);
|
|
17008
17008
|
}
|
|
17009
17009
|
}
|
|
17010
17010
|
if (P && (P = 3 * a[g++], w.normal.set(l[P++], l[P++], l[P]), N.normal.copy(w.normal)), k)
|
|
@@ -17018,7 +17018,7 @@ void main() {
|
|
|
17018
17018
|
if (w = new C(), w.a = a[g++], w.b = a[g++], w.c = a[g++], S && (S = a[g++], w.materialIndex = S), S = i.faces.length, n)
|
|
17019
17019
|
for (n = 0; n < d; n++)
|
|
17020
17020
|
for (J = r.uvs[n], i.faceVertexUvs[n][S] = [], o = 0; 3 > o; o++)
|
|
17021
|
-
V = a[g++], ot = J[2 * V], V = J[2 * V + 1], ot = new
|
|
17021
|
+
V = a[g++], ot = J[2 * V], V = J[2 * V + 1], ot = new Y(ot, V), i.faceVertexUvs[n][S].push(ot);
|
|
17022
17022
|
if (P && (P = 3 * a[g++], w.normal.set(l[P++], l[P++], l[P])), k)
|
|
17023
17023
|
for (n = 0; 3 > n; n++)
|
|
17024
17024
|
P = 3 * a[g++], k = new x(l[P++], l[P++], l[P]), w.vertexNormals.push(k);
|
|
@@ -17031,7 +17031,7 @@ void main() {
|
|
|
17031
17031
|
if (r = t, g = r.influencesPerVertex !== void 0 ? r.influencesPerVertex : 2, r.skinWeights)
|
|
17032
17032
|
for (s = 0, a = r.skinWeights.length; s < a; s += g)
|
|
17033
17033
|
i.skinWeights.push(
|
|
17034
|
-
new
|
|
17034
|
+
new Z(
|
|
17035
17035
|
r.skinWeights[s],
|
|
17036
17036
|
1 < g ? r.skinWeights[s + 1] : 0,
|
|
17037
17037
|
2 < g ? r.skinWeights[s + 2] : 0,
|
|
@@ -17041,7 +17041,7 @@ void main() {
|
|
|
17041
17041
|
if (r.skinIndices)
|
|
17042
17042
|
for (s = 0, a = r.skinIndices.length; s < a; s += g)
|
|
17043
17043
|
i.skinIndices.push(
|
|
17044
|
-
new
|
|
17044
|
+
new Z(
|
|
17045
17045
|
r.skinIndices[s],
|
|
17046
17046
|
1 < g ? r.skinIndices[s + 1] : 0,
|
|
17047
17047
|
2 < g ? r.skinIndices[s + 2] : 0,
|
|
@@ -18461,7 +18461,7 @@ void main() {
|
|
|
18461
18461
|
var r = this._mixer, n = r.time, o = this._weightInterpolant;
|
|
18462
18462
|
return o === null && (this._weightInterpolant = o = r._lendControlInterpolant()), r = o.parameterPositions, o = o.sampleValues, r[0] = n, o[0] = e, r[1] = n + t, o[1] = i, this;
|
|
18463
18463
|
}
|
|
18464
|
-
}), Ss.prototype = Object.assign(Object.create(
|
|
18464
|
+
}), Ss.prototype = Object.assign(Object.create(pt.prototype), {
|
|
18465
18465
|
constructor: Ss,
|
|
18466
18466
|
_bindAction: function(t, e) {
|
|
18467
18467
|
var i = t._localRoot || this._root, r = t._clip.tracks, n = r.length, o = t._propertyBindings;
|
|
@@ -18754,7 +18754,7 @@ void main() {
|
|
|
18754
18754
|
return this;
|
|
18755
18755
|
},
|
|
18756
18756
|
setFromCenterAndSize: function() {
|
|
18757
|
-
var t = new
|
|
18757
|
+
var t = new Y();
|
|
18758
18758
|
return function(e, i) {
|
|
18759
18759
|
return i = t.copy(i).multiplyScalar(0.5), this.min.copy(e).sub(i), this.max.copy(e).add(i), this;
|
|
18760
18760
|
};
|
|
@@ -18772,10 +18772,10 @@ void main() {
|
|
|
18772
18772
|
return this.max.x < this.min.x || this.max.y < this.min.y;
|
|
18773
18773
|
},
|
|
18774
18774
|
getCenter: function(t) {
|
|
18775
|
-
return t === void 0 && (console.warn("THREE.Box2: .getCenter() target is now required"), t = new
|
|
18775
|
+
return t === void 0 && (console.warn("THREE.Box2: .getCenter() target is now required"), t = new Y()), this.isEmpty() ? t.set(0, 0) : t.addVectors(this.min, this.max).multiplyScalar(0.5);
|
|
18776
18776
|
},
|
|
18777
18777
|
getSize: function(t) {
|
|
18778
|
-
return t === void 0 && (console.warn("THREE.Box2: .getSize() target is now required"), t = new
|
|
18778
|
+
return t === void 0 && (console.warn("THREE.Box2: .getSize() target is now required"), t = new Y()), this.isEmpty() ? t.set(0, 0) : t.subVectors(this.max, this.min);
|
|
18779
18779
|
},
|
|
18780
18780
|
expandByPoint: function(t) {
|
|
18781
18781
|
return this.min.min(t), this.max.max(t), this;
|
|
@@ -18793,7 +18793,7 @@ void main() {
|
|
|
18793
18793
|
return this.min.x <= t.min.x && t.max.x <= this.max.x && this.min.y <= t.min.y && t.max.y <= this.max.y;
|
|
18794
18794
|
},
|
|
18795
18795
|
getParameter: function(t, e) {
|
|
18796
|
-
return e === void 0 && (console.warn("THREE.Box2: .getParameter() target is now required"), e = new
|
|
18796
|
+
return e === void 0 && (console.warn("THREE.Box2: .getParameter() target is now required"), e = new Y()), e.set(
|
|
18797
18797
|
(t.x - this.min.x) / (this.max.x - this.min.x),
|
|
18798
18798
|
(t.y - this.min.y) / (this.max.y - this.min.y)
|
|
18799
18799
|
);
|
|
@@ -18802,10 +18802,10 @@ void main() {
|
|
|
18802
18802
|
return !(t.max.x < this.min.x || t.min.x > this.max.x || t.max.y < this.min.y || t.min.y > this.max.y);
|
|
18803
18803
|
},
|
|
18804
18804
|
clampPoint: function(t, e) {
|
|
18805
|
-
return e === void 0 && (console.warn("THREE.Box2: .clampPoint() target is now required"), e = new
|
|
18805
|
+
return e === void 0 && (console.warn("THREE.Box2: .clampPoint() target is now required"), e = new Y()), e.copy(t).clamp(this.min, this.max);
|
|
18806
18806
|
},
|
|
18807
18807
|
distanceToPoint: function() {
|
|
18808
|
-
var t = new
|
|
18808
|
+
var t = new Y();
|
|
18809
18809
|
return function(e) {
|
|
18810
18810
|
return t.copy(e).clamp(this.min, this.max).sub(e).length();
|
|
18811
18811
|
};
|
|
@@ -19287,7 +19287,7 @@ void main() {
|
|
|
19287
19287
|
"THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."
|
|
19288
19288
|
), new Nr(this, t);
|
|
19289
19289
|
}
|
|
19290
|
-
}), Object.assign(
|
|
19290
|
+
}), Object.assign(Y.prototype, {
|
|
19291
19291
|
fromAttribute: function(t, e, i) {
|
|
19292
19292
|
return console.warn(
|
|
19293
19293
|
"THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."
|
|
@@ -19349,7 +19349,7 @@ void main() {
|
|
|
19349
19349
|
"THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."
|
|
19350
19350
|
), this.manhattanLength();
|
|
19351
19351
|
}
|
|
19352
|
-
}), Object.assign(
|
|
19352
|
+
}), Object.assign(Z.prototype, {
|
|
19353
19353
|
fromAttribute: function(t, e, i) {
|
|
19354
19354
|
return console.warn(
|
|
19355
19355
|
"THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."
|
|
@@ -19981,7 +19981,7 @@ void main() {
|
|
|
19981
19981
|
console.error(
|
|
19982
19982
|
"THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead."
|
|
19983
19983
|
);
|
|
19984
|
-
}, p.WebGLRenderTargetCube = wt, p.WebGLRenderTarget = ht, p.WebGLRenderer = Ft, p.ShaderLib = cr, p.UniformsLib = le, p.UniformsUtils = yi, p.ShaderChunk = Oe, p.FogExp2 = Jt, p.Fog = vi, p.Scene = Xi, p.Sprite = ti, p.LOD = ei, p.SkinnedMesh = He, p.Skeleton = si, p.Bone = ai, p.Mesh = Qe, p.LineSegments = Le, p.LineLoop = or, p.Line = Xe, p.Points = en, p.Group = Ee, p.VideoTexture = ss, p.DataTexture = ct, p.DataTexture3D = D, p.CompressedTexture = rn, p.CubeTexture = _, p.CanvasTexture = Bn, p.DepthTexture = Un, p.Texture = Ct, p.AnimationLoader = Qs, p.CompressedTextureLoader = $s, p.DataTextureLoader = cs, p.CubeTextureLoader = us, p.TextureLoader = Oo, p.ObjectLoader = fs, p.MaterialLoader = Ho, p.BufferGeometryLoader = ds, p.DefaultLoadingManager = Ci, p.LoadingManager = ls, p.JSONLoader = ko, p.ImageLoader = ao, p.ImageBitmapLoader = ms, p.FontLoader = ta, p.FileLoader = Wi, p.Loader = wn, p.LoaderUtils = Xo, p.Cache = qr, p.AudioLoader = ys, p.SpotLightShadow = Do, p.SpotLight = zo, p.PointLight = No, p.RectAreaLight = Go, p.HemisphereLight = Io, p.DirectionalLightShadow = Bo, p.DirectionalLight = Uo, p.AmbientLight = Fo, p.LightShadow = Xr, p.Light = ri, p.StereoCamera = ea, p.PerspectiveCamera = Bt, p.OrthographicCamera = co, p.CubeCamera = uo, p.ArrayCamera = te, p.Camera = Kt, p.AudioListener = xs, p.PositionalAudio = ws, p.AudioContext = Ns, p.AudioAnalyser = Ms, p.Audio = Mn, p.VectorKeyframeTrack = _n, p.StringKeyframeTrack = Co, p.QuaternionKeyframeTrack = so, p.NumberKeyframeTrack = yn, p.ColorKeyframeTrack = bo, p.BooleanKeyframeTrack = Lo, p.PropertyMixer = Ts, p.PropertyBinding = Ei, p.KeyframeTrack = xi, p.AnimationUtils = Pi, p.AnimationObjectGroup = ra, p.AnimationMixer = Ss, p.AnimationClip = Hi, p.Uniform = jo, p.InstancedBufferGeometry = Es, p.BufferGeometry = Rt, p.Geometry = F, p.InterleavedBufferAttribute = Ge, p.InstancedInterleavedBuffer = Ps, p.InterleavedBuffer = Fe, p.InstancedBufferAttribute = As, p.Face3 = C, p.Object3D = b, p.Raycaster = oa, p.Layers = G, p.EventDispatcher =
|
|
19984
|
+
}, p.WebGLRenderTargetCube = wt, p.WebGLRenderTarget = ht, p.WebGLRenderer = Ft, p.ShaderLib = cr, p.UniformsLib = le, p.UniformsUtils = yi, p.ShaderChunk = Oe, p.FogExp2 = Jt, p.Fog = vi, p.Scene = Xi, p.Sprite = ti, p.LOD = ei, p.SkinnedMesh = He, p.Skeleton = si, p.Bone = ai, p.Mesh = Qe, p.LineSegments = Le, p.LineLoop = or, p.Line = Xe, p.Points = en, p.Group = Ee, p.VideoTexture = ss, p.DataTexture = ct, p.DataTexture3D = D, p.CompressedTexture = rn, p.CubeTexture = _, p.CanvasTexture = Bn, p.DepthTexture = Un, p.Texture = Ct, p.AnimationLoader = Qs, p.CompressedTextureLoader = $s, p.DataTextureLoader = cs, p.CubeTextureLoader = us, p.TextureLoader = Oo, p.ObjectLoader = fs, p.MaterialLoader = Ho, p.BufferGeometryLoader = ds, p.DefaultLoadingManager = Ci, p.LoadingManager = ls, p.JSONLoader = ko, p.ImageLoader = ao, p.ImageBitmapLoader = ms, p.FontLoader = ta, p.FileLoader = Wi, p.Loader = wn, p.LoaderUtils = Xo, p.Cache = qr, p.AudioLoader = ys, p.SpotLightShadow = Do, p.SpotLight = zo, p.PointLight = No, p.RectAreaLight = Go, p.HemisphereLight = Io, p.DirectionalLightShadow = Bo, p.DirectionalLight = Uo, p.AmbientLight = Fo, p.LightShadow = Xr, p.Light = ri, p.StereoCamera = ea, p.PerspectiveCamera = Bt, p.OrthographicCamera = co, p.CubeCamera = uo, p.ArrayCamera = te, p.Camera = Kt, p.AudioListener = xs, p.PositionalAudio = ws, p.AudioContext = Ns, p.AudioAnalyser = Ms, p.Audio = Mn, p.VectorKeyframeTrack = _n, p.StringKeyframeTrack = Co, p.QuaternionKeyframeTrack = so, p.NumberKeyframeTrack = yn, p.ColorKeyframeTrack = bo, p.BooleanKeyframeTrack = Lo, p.PropertyMixer = Ts, p.PropertyBinding = Ei, p.KeyframeTrack = xi, p.AnimationUtils = Pi, p.AnimationObjectGroup = ra, p.AnimationMixer = Ss, p.AnimationClip = Hi, p.Uniform = jo, p.InstancedBufferGeometry = Es, p.BufferGeometry = Rt, p.Geometry = F, p.InterleavedBufferAttribute = Ge, p.InstancedInterleavedBuffer = Ps, p.InterleavedBuffer = Fe, p.InstancedBufferAttribute = As, p.Face3 = C, p.Object3D = b, p.Raycaster = oa, p.Layers = G, p.EventDispatcher = pt, p.Clock = _s, p.QuaternionLinearInterpolant = Ro, p.LinearInterpolant = oo, p.DiscreteInterpolant = Ao, p.CubicInterpolant = Po, p.Interpolant = Gi, p.Triangle = Re, p.Math = Se, p.Spherical = aa, p.Cylindrical = ha, p.Plane = xt, p.Frustum = Q, p.Sphere = Ot, p.Ray = Li, p.Matrix4 = ft, p.Matrix3 = mt, p.Box3 = Pt, p.Box2 = bs, p.Line3 = Rs, p.Euler = M, p.Vector4 = Z, p.Vector3 = x, p.Vector2 = Y, p.Quaternion = at, p.Color = H, p.ImmediateRenderObject = po, p.VertexNormalsHelper = fo, p.SpotLightHelper = Tn, p.SkeletonHelper = Sn, p.PointLightHelper = En, p.RectAreaLightHelper = Pn, p.HemisphereLightHelper = An, p.GridHelper = mo, p.PolarGridHelper = Vo, p.FaceNormalsHelper = go, p.DirectionalLightHelper = Ln, p.CameraHelper = vo, p.BoxHelper = vr, p.Box3Helper = yo, p.PlaneHelper = _o, p.ArrowHelper = yr, p.AxesHelper = xo, p.Shape = Sr, p.Path = $i, p.ShapePath = gs, p.Font = vs, p.CurvePath = gr, p.Curve = pe, p.ImageUtils = Er, p.ShapeUtils = _r, p.WebGLUtils = re, p.WireframeGeometry = nn, p.ParametricGeometry = Fn, p.ParametricBufferGeometry = on, p.TetrahedronGeometry = Hn, p.TetrahedronBufferGeometry = sn, p.OctahedronGeometry = kn, p.OctahedronBufferGeometry = Or, p.IcosahedronGeometry = jn, p.IcosahedronBufferGeometry = an, p.DodecahedronGeometry = Vn, p.DodecahedronBufferGeometry = hn, p.PolyhedronGeometry = Gn, p.PolyhedronBufferGeometry = Di, p.TubeGeometry = Wn, p.TubeBufferGeometry = ln, p.TorusKnotGeometry = Xn, p.TorusKnotBufferGeometry = cn, p.TorusGeometry = qn, p.TorusBufferGeometry = un, p.TextGeometry = $n, p.TextBufferGeometry = pn, p.SphereGeometry = Kn, p.SphereBufferGeometry = zr, p.RingGeometry = to, p.RingBufferGeometry = dn, p.PlaneGeometry = Mi, p.PlaneBufferGeometry = ni, p.LatheGeometry = eo, p.LatheBufferGeometry = fn, p.ShapeGeometry = Nr, p.ShapeBufferGeometry = Br, p.ExtrudeGeometry = Dr, p.ExtrudeBufferGeometry = sr, p.EdgesGeometry = mn, p.ConeGeometry = io, p.ConeBufferGeometry = ro, p.CylinderGeometry = Ur, p.CylinderBufferGeometry = mr, p.CircleGeometry = no, p.CircleBufferGeometry = gn, p.BoxGeometry = Ue, p.BoxBufferGeometry = gi, p.ShadowMaterial = Fr, p.SpriteMaterial = Ve, p.RawShaderMaterial = vn, p.ShaderMaterial = Ze, p.PointsMaterial = _i, p.MeshPhysicalMaterial = Gr, p.MeshStandardMaterial = ar, p.MeshPhongMaterial = qi, p.MeshToonMaterial = Hr, p.MeshNormalMaterial = kr, p.MeshLambertMaterial = jr, p.MeshDepthMaterial = Et, p.MeshDistanceMaterial = yt, p.MeshBasicMaterial = ke, p.MeshMatcapMaterial = Vr, p.LineDashedMaterial = Wr, p.LineBasicMaterial = ze, p.Material = fe, p.Float64BufferAttribute = kt, p.Float32BufferAttribute = ut, p.Uint32BufferAttribute = ie, p.Int32BufferAttribute = Vt, p.Uint16BufferAttribute = Gt, p.Int16BufferAttribute = bt, p.Uint8ClampedBufferAttribute = Lt, p.Uint8BufferAttribute = it, p.Int8BufferAttribute = st, p.BufferAttribute = q, p.ArcCurve = xn, p.CatmullRomCurve3 = Si, p.CubicBezierCurve = Yi, p.CubicBezierCurve3 = hr, p.EllipseCurve = ki, p.LineCurve = zi, p.LineCurve3 = Zi, p.QuadraticBezierCurve = Ji, p.QuadraticBezierCurve3 = lr, p.SplineCurve = Qi, p.REVISION = "98", p.MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2 }, p.CullFaceNone = 0, p.CullFaceBack = 1, p.CullFaceFront = 2, p.CullFaceFrontBack = 3, p.FrontFaceDirectionCW = 0, p.FrontFaceDirectionCCW = 1, p.BasicShadowMap = 0, p.PCFShadowMap = 1, p.PCFSoftShadowMap = 2, p.FrontSide = 0, p.BackSide = 1, p.DoubleSide = 2, p.FlatShading = 1, p.SmoothShading = 2, p.NoColors = 0, p.FaceColors = 1, p.VertexColors = 2, p.NoBlending = 0, p.NormalBlending = 1, p.AdditiveBlending = 2, p.SubtractiveBlending = 3, p.MultiplyBlending = 4, p.CustomBlending = 5, p.AddEquation = 100, p.SubtractEquation = 101, p.ReverseSubtractEquation = 102, p.MinEquation = 103, p.MaxEquation = 104, p.ZeroFactor = 200, p.OneFactor = 201, p.SrcColorFactor = 202, p.OneMinusSrcColorFactor = 203, p.SrcAlphaFactor = 204, p.OneMinusSrcAlphaFactor = 205, p.DstAlphaFactor = 206, p.OneMinusDstAlphaFactor = 207, p.DstColorFactor = 208, p.OneMinusDstColorFactor = 209, p.SrcAlphaSaturateFactor = 210, p.NeverDepth = 0, p.AlwaysDepth = 1, p.LessDepth = 2, p.LessEqualDepth = 3, p.EqualDepth = 4, p.GreaterEqualDepth = 5, p.GreaterDepth = 6, p.NotEqualDepth = 7, p.MultiplyOperation = 0, p.MixOperation = 1, p.AddOperation = 2, p.NoToneMapping = 0, p.LinearToneMapping = 1, p.ReinhardToneMapping = 2, p.Uncharted2ToneMapping = 3, p.CineonToneMapping = 4, p.UVMapping = 300, p.CubeReflectionMapping = 301, p.CubeRefractionMapping = 302, p.EquirectangularReflectionMapping = 303, p.EquirectangularRefractionMapping = 304, p.SphericalReflectionMapping = 305, p.CubeUVReflectionMapping = 306, p.CubeUVRefractionMapping = 307, p.RepeatWrapping = 1e3, p.ClampToEdgeWrapping = 1001, p.MirroredRepeatWrapping = 1002, p.NearestFilter = 1003, p.NearestMipMapNearestFilter = 1004, p.NearestMipMapLinearFilter = 1005, p.LinearFilter = 1006, p.LinearMipMapNearestFilter = 1007, p.LinearMipMapLinearFilter = 1008, p.UnsignedByteType = 1009, p.ByteType = 1010, p.ShortType = 1011, p.UnsignedShortType = 1012, p.IntType = 1013, p.UnsignedIntType = 1014, p.FloatType = 1015, p.HalfFloatType = 1016, p.UnsignedShort4444Type = 1017, p.UnsignedShort5551Type = 1018, p.UnsignedShort565Type = 1019, p.UnsignedInt248Type = 1020, p.AlphaFormat = 1021, p.RGBFormat = 1022, p.RGBAFormat = 1023, p.LuminanceFormat = 1024, p.LuminanceAlphaFormat = 1025, p.RGBEFormat = 1023, p.DepthFormat = 1026, p.DepthStencilFormat = 1027, p.RedFormat = 1028, p.RGB_S3TC_DXT1_Format = 33776, p.RGBA_S3TC_DXT1_Format = 33777, p.RGBA_S3TC_DXT3_Format = 33778, p.RGBA_S3TC_DXT5_Format = 33779, p.RGB_PVRTC_4BPPV1_Format = 35840, p.RGB_PVRTC_2BPPV1_Format = 35841, p.RGBA_PVRTC_4BPPV1_Format = 35842, p.RGBA_PVRTC_2BPPV1_Format = 35843, p.RGB_ETC1_Format = 36196, p.RGBA_ASTC_4x4_Format = 37808, p.RGBA_ASTC_5x4_Format = 37809, p.RGBA_ASTC_5x5_Format = 37810, p.RGBA_ASTC_6x5_Format = 37811, p.RGBA_ASTC_6x6_Format = 37812, p.RGBA_ASTC_8x5_Format = 37813, p.RGBA_ASTC_8x6_Format = 37814, p.RGBA_ASTC_8x8_Format = 37815, p.RGBA_ASTC_10x5_Format = 37816, p.RGBA_ASTC_10x6_Format = 37817, p.RGBA_ASTC_10x8_Format = 37818, p.RGBA_ASTC_10x10_Format = 37819, p.RGBA_ASTC_12x10_Format = 37820, p.RGBA_ASTC_12x12_Format = 37821, p.LoopOnce = 2200, p.LoopRepeat = 2201, p.LoopPingPong = 2202, p.InterpolateDiscrete = 2300, p.InterpolateLinear = 2301, p.InterpolateSmooth = 2302, p.ZeroCurvatureEnding = 2400, p.ZeroSlopeEnding = 2401, p.WrapAroundEnding = 2402, p.TrianglesDrawMode = 0, p.TriangleStripDrawMode = 1, p.TriangleFanDrawMode = 2, p.LinearEncoding = 3e3, p.sRGBEncoding = 3001, p.GammaEncoding = 3007, p.RGBEEncoding = 3002, p.LogLuvEncoding = 3003, p.RGBM7Encoding = 3004, p.RGBM16Encoding = 3005, p.RGBDEncoding = 3006, p.BasicDepthPacking = 3200, p.RGBADepthPacking = 3201, p.TangentSpaceNormalMap = 0, p.ObjectSpaceNormalMap = 1, p.CubeGeometry = Ue, p.Face4 = function(t, e, i, r, n, o, s) {
|
|
19985
19985
|
return console.warn(
|
|
19986
19986
|
"THREE.Face4 has been removed. A THREE.Face3 will be created instead."
|
|
19987
19987
|
), new C(t, e, i, n, o, s);
|
|
@@ -20136,13 +20136,13 @@ void main() {
|
|
|
20136
20136
|
}, Object.defineProperty(p, "__esModule", { value: !0 });
|
|
20137
20137
|
});
|
|
20138
20138
|
THREE.Sky = function() {
|
|
20139
|
-
var p = THREE.Sky.SkyShader,
|
|
20139
|
+
var p = THREE.Sky.SkyShader, pt = new THREE.ShaderMaterial({
|
|
20140
20140
|
fragmentShader: p.fragmentShader,
|
|
20141
20141
|
vertexShader: p.vertexShader,
|
|
20142
20142
|
uniforms: THREE.UniformsUtils.clone(p.uniforms),
|
|
20143
20143
|
side: THREE.BackSide
|
|
20144
20144
|
});
|
|
20145
|
-
THREE.Mesh.call(this, new THREE.BoxBufferGeometry(1, 1, 1),
|
|
20145
|
+
THREE.Mesh.call(this, new THREE.BoxBufferGeometry(1, 1, 1), pt);
|
|
20146
20146
|
};
|
|
20147
20147
|
THREE.Sky.prototype = Object.create(THREE.Mesh.prototype);
|
|
20148
20148
|
THREE.Sky.SkyShader = {
|
|
@@ -20295,24 +20295,24 @@ THREE.Sky.SkyShader = {
|
|
|
20295
20295
|
};
|
|
20296
20296
|
(function(p) {
|
|
20297
20297
|
typeof module > "u" ? window.charming = p : module.exports = p;
|
|
20298
|
-
})(function(p,
|
|
20299
|
-
|
|
20300
|
-
var
|
|
20301
|
-
for (var Ct = mt.parentNode,
|
|
20302
|
-
var ct = document.createElement(
|
|
20303
|
-
ft && (ct.className = ft + at, at++), ct.appendChild(document.createTextNode(
|
|
20298
|
+
})(function(p, pt) {
|
|
20299
|
+
pt = pt || {};
|
|
20300
|
+
var Y = pt.tagName || "span", ft = pt.classPrefix != null ? pt.classPrefix : "char", at = 1, x = function(mt) {
|
|
20301
|
+
for (var Ct = mt.parentNode, Z = mt.nodeValue, ht = Z.length, wt = -1; ++wt < ht; ) {
|
|
20302
|
+
var ct = document.createElement(Y);
|
|
20303
|
+
ft && (ct.className = ft + at, at++), ct.appendChild(document.createTextNode(Z[wt])), Ct.insertBefore(ct, mt);
|
|
20304
20304
|
}
|
|
20305
20305
|
Ct.removeChild(mt);
|
|
20306
20306
|
};
|
|
20307
20307
|
return function mt(Ct) {
|
|
20308
|
-
for (var
|
|
20309
|
-
mt(
|
|
20308
|
+
for (var Z = [].slice.call(Ct.childNodes), ht = Z.length, wt = -1; ++wt < ht; )
|
|
20309
|
+
mt(Z[wt]);
|
|
20310
20310
|
Ct.nodeType === Node.TEXT_NODE && x(Ct);
|
|
20311
20311
|
}(p), p;
|
|
20312
20312
|
});
|
|
20313
20313
|
class bh {
|
|
20314
|
-
constructor(
|
|
20315
|
-
mars3d ? (this.map =
|
|
20314
|
+
constructor(pt, Y = []) {
|
|
20315
|
+
mars3d ? (this.map = pt, this.tilesetLayer, this.modelArr = Y, this.bimObliquePhotographyId = [], this.editDate = {
|
|
20316
20316
|
id: null
|
|
20317
20317
|
}) : console.error("未引入指定插件");
|
|
20318
20318
|
}
|
|
@@ -20320,37 +20320,37 @@ class bh {
|
|
|
20320
20320
|
* 给 modelArr 添加数据
|
|
20321
20321
|
* @param { Object } mode 模型数据
|
|
20322
20322
|
*/
|
|
20323
|
-
pushModel(
|
|
20324
|
-
this.modelArr.push(
|
|
20323
|
+
pushModel(pt) {
|
|
20324
|
+
this.modelArr.push(pt);
|
|
20325
20325
|
}
|
|
20326
20326
|
/**
|
|
20327
20327
|
* add 模型方法
|
|
20328
20328
|
* @param { Object || String } modelParameter 模型属性 或者 模型id
|
|
20329
20329
|
* @param { Object } fn 自定义注册事件
|
|
20330
20330
|
*/
|
|
20331
|
-
add(
|
|
20331
|
+
add(pt, Y) {
|
|
20332
20332
|
const ft = /* @__PURE__ */ new Map([["click", mars3d.EventType.click]]);
|
|
20333
20333
|
return new Promise((at, x) => {
|
|
20334
|
-
let mt, Ct,
|
|
20335
|
-
if (typeof
|
|
20336
|
-
let H = this.query(
|
|
20334
|
+
let mt, Ct, Z, ht, wt, ct, Pt, Ot, xt;
|
|
20335
|
+
if (typeof pt != "object") {
|
|
20336
|
+
let H = this.query(pt);
|
|
20337
20337
|
H || x("缺少树结构");
|
|
20338
20338
|
let { id: m, bimModelExcavationDetails: f, bimModel: C } = H;
|
|
20339
|
-
mt = m, Ct = C.modelType,
|
|
20339
|
+
mt = m, Ct = C.modelType, Z = C.tender, ht = C.releasedDistance, wt = C.modelName, ct = C.isDynamicReleased, Pt = {
|
|
20340
20340
|
bimModelExcavationDetails: f
|
|
20341
20341
|
}, Ot = H.url, xt = C.modelColor;
|
|
20342
20342
|
} else
|
|
20343
|
-
mt =
|
|
20344
|
-
let Q = this.map.getLayer(
|
|
20343
|
+
mt = pt.modelId, Ct = pt.modelType, Z = pt.tender, ht = pt.releasedDistance, wt = pt.modelTitle, ct = pt.permission, Pt = pt.customize, Ot = pt.url, xt = pt.color;
|
|
20344
|
+
let Q = this.map.getLayer(pt, "modelId");
|
|
20345
20345
|
if (Q)
|
|
20346
20346
|
return at(Q), !1;
|
|
20347
20347
|
if (Ot.indexOf("tileset.json") < 0)
|
|
20348
|
-
return
|
|
20348
|
+
return console.error("链接不完整", wt), at({
|
|
20349
20349
|
tite: "【模型】" + wt + "数据地址有误",
|
|
20350
20350
|
type: "error",
|
|
20351
20351
|
id: mt,
|
|
20352
20352
|
url: Ot
|
|
20353
|
-
}),
|
|
20353
|
+
}), !1;
|
|
20354
20354
|
new Cesium.Resource({
|
|
20355
20355
|
url: Ot
|
|
20356
20356
|
}).fetchJson().then((m) => {
|
|
@@ -20366,7 +20366,7 @@ class bh {
|
|
|
20366
20366
|
}), M.length > 0 && (C.area = M)), this.tilesetLayer = new mars3d.layer.TilesetLayer({
|
|
20367
20367
|
modelId: mt,
|
|
20368
20368
|
modelType: Ct,
|
|
20369
|
-
tender:
|
|
20369
|
+
tender: Z,
|
|
20370
20370
|
releasedDistance: ht,
|
|
20371
20371
|
modelTitle: wt,
|
|
20372
20372
|
permission: ct,
|
|
@@ -20389,6 +20389,10 @@ class bh {
|
|
|
20389
20389
|
// 1024MB = 1024*1024*1024
|
|
20390
20390
|
maximumCacheOverflowBytes: 2147483648 * 2
|
|
20391
20391
|
// 2048MB = 2048*1024*1024
|
|
20392
|
+
// 1.04版本
|
|
20393
|
+
// customShader: new Cesium.CustomShader({
|
|
20394
|
+
// lightingModel: Cesium.LightingModel.UNLIT,
|
|
20395
|
+
// }),
|
|
20392
20396
|
}), this.tilesetLayer.bindPopup((G) => {
|
|
20393
20397
|
if (G.graphic) {
|
|
20394
20398
|
const b = G.graphic.attr;
|
|
@@ -20410,19 +20414,19 @@ class bh {
|
|
|
20410
20414
|
color: "rgba(255,0,0,1)"
|
|
20411
20415
|
},
|
|
20412
20416
|
!0
|
|
20413
|
-
)
|
|
20414
|
-
}),
|
|
20417
|
+
);
|
|
20418
|
+
}), Y && Object.keys(Y).forEach((G) => {
|
|
20415
20419
|
this.tilesetLayer.on(ft.get(G), (b) => {
|
|
20416
|
-
|
|
20420
|
+
Y[G](b);
|
|
20417
20421
|
});
|
|
20418
20422
|
}), Ct == 0 && this.bimObliquePhotographyId.push(mt), this.map.addLayer(this.tilesetLayer);
|
|
20419
20423
|
}).catch((m) => {
|
|
20420
|
-
console.
|
|
20424
|
+
console.error("数据加载失败", wt), at({
|
|
20421
20425
|
tite: "【模型】" + wt + "数据加载失败",
|
|
20422
20426
|
type: "error",
|
|
20423
20427
|
id: mt,
|
|
20424
20428
|
url: Ot
|
|
20425
|
-
})
|
|
20429
|
+
});
|
|
20426
20430
|
});
|
|
20427
20431
|
});
|
|
20428
20432
|
}
|
|
@@ -20431,29 +20435,29 @@ class bh {
|
|
|
20431
20435
|
* @param { String } id 模型id
|
|
20432
20436
|
*
|
|
20433
20437
|
*/
|
|
20434
|
-
remove(
|
|
20435
|
-
this.map.removeLayer(this.map.getLayer(
|
|
20438
|
+
remove(pt) {
|
|
20439
|
+
this.map.getLayer(pt, "modelId") && (this.map.getLayer(pt, "modelId").closeHighlight(), this.map.removeLayer(this.map.getLayer(pt, "modelId")));
|
|
20436
20440
|
}
|
|
20437
20441
|
/**
|
|
20438
20442
|
* 选中模型
|
|
20439
20443
|
* @param { String } id 模型id
|
|
20440
20444
|
*
|
|
20441
20445
|
*/
|
|
20442
|
-
selected(
|
|
20446
|
+
selected(pt, Y = !0) {
|
|
20443
20447
|
return new Promise((ft, at) => {
|
|
20444
|
-
let x = this.map.getLayer(
|
|
20445
|
-
x ? (
|
|
20448
|
+
let x = this.map.getLayer(pt, "modelId");
|
|
20449
|
+
x ? (Y && x.flyTo(), x.style == null && x.openHighlight(
|
|
20446
20450
|
{
|
|
20447
20451
|
color: "rgba(255,0,0,1)"
|
|
20448
20452
|
},
|
|
20449
20453
|
!0
|
|
20450
|
-
),
|
|
20451
|
-
mt && (
|
|
20454
|
+
), ft(x)) : this.add(pt).then((mt) => {
|
|
20455
|
+
mt && (Y && mt.flyTo(), mt.style == null && mt.openHighlight(
|
|
20452
20456
|
{
|
|
20453
20457
|
color: "rgba(255,0,0,1)"
|
|
20454
20458
|
},
|
|
20455
20459
|
!0
|
|
20456
|
-
),
|
|
20460
|
+
), ft(mt));
|
|
20457
20461
|
});
|
|
20458
20462
|
});
|
|
20459
20463
|
}
|
|
@@ -20470,16 +20474,16 @@ class bh {
|
|
|
20470
20474
|
* @param { String } id 模型属性
|
|
20471
20475
|
* @returns { Object || Boolean } 查询出来的树对象 或者 false
|
|
20472
20476
|
*/
|
|
20473
|
-
query(
|
|
20474
|
-
return this.modelArr.length == 0 ? !1 : this.modelArr.find((
|
|
20477
|
+
query(pt) {
|
|
20478
|
+
return this.modelArr.length == 0 ? !1 : this.modelArr.find((Y) => Y.id == pt);
|
|
20475
20479
|
}
|
|
20476
20480
|
/**
|
|
20477
20481
|
* 用户操作的模型
|
|
20478
20482
|
* @param { String } id 模型属性
|
|
20479
20483
|
*/
|
|
20480
|
-
postEditDate(
|
|
20484
|
+
postEditDate(pt) {
|
|
20481
20485
|
this.editDate = {
|
|
20482
|
-
id:
|
|
20486
|
+
id: pt
|
|
20483
20487
|
};
|
|
20484
20488
|
}
|
|
20485
20489
|
/**
|
|
@@ -20488,16 +20492,16 @@ class bh {
|
|
|
20488
20492
|
* @param { String | Number } newColor 需要着色的颜色
|
|
20489
20493
|
* @param { String } selectcontent 判断逻辑 默认是全部染色
|
|
20490
20494
|
*/
|
|
20491
|
-
editColor(
|
|
20492
|
-
let at = this.map.getLayer(
|
|
20493
|
-
if (this.postEditDate(
|
|
20495
|
+
editColor(pt, Y, ft = "true") {
|
|
20496
|
+
let at = this.map.getLayer(pt, "modelId");
|
|
20497
|
+
if (this.postEditDate(pt), Y)
|
|
20494
20498
|
at.style = {
|
|
20495
20499
|
color: {
|
|
20496
|
-
conditions: [[ft,
|
|
20500
|
+
conditions: [[ft, Y]]
|
|
20497
20501
|
}
|
|
20498
20502
|
};
|
|
20499
20503
|
else {
|
|
20500
|
-
let x = this.query(
|
|
20504
|
+
let x = this.query(pt).modelColor;
|
|
20501
20505
|
x ? at.style = {
|
|
20502
20506
|
color: { conditions: [[ft, x]] }
|
|
20503
20507
|
} : at.style = null;
|
|
@@ -20508,22 +20512,22 @@ class bh {
|
|
|
20508
20512
|
* @param { String } id 模型属性
|
|
20509
20513
|
* @param { String | Number } opacity 透明度值
|
|
20510
20514
|
*/
|
|
20511
|
-
editOpacity(
|
|
20512
|
-
this.map.getLayer(
|
|
20515
|
+
editOpacity(pt, Y) {
|
|
20516
|
+
this.map.getLayer(pt, "modelId").opacity = Y;
|
|
20513
20517
|
}
|
|
20514
20518
|
/**
|
|
20515
20519
|
* 模型挖洞
|
|
20516
20520
|
*/
|
|
20517
|
-
addClip(
|
|
20518
|
-
return new Promise((
|
|
20519
|
-
window.bimClip ?
|
|
20521
|
+
addClip(pt) {
|
|
20522
|
+
return new Promise((Y, ft) => {
|
|
20523
|
+
window.bimClip ? Y(bimClip.clipModelAdd(pt)) : ft("挖洞工具未初始化");
|
|
20520
20524
|
});
|
|
20521
20525
|
}
|
|
20522
20526
|
/**
|
|
20523
20527
|
* 模型挖洞 移除
|
|
20524
20528
|
*/
|
|
20525
|
-
removeClip(
|
|
20526
|
-
window.bimClip ? window.bimClip.clipModelremoveClip(
|
|
20529
|
+
removeClip(pt) {
|
|
20530
|
+
window.bimClip ? window.bimClip.clipModelremoveClip(pt) : console.log("挖洞工具未初始化");
|
|
20527
20531
|
}
|
|
20528
20532
|
// tilesetLayer.clip.clear()
|
|
20529
20533
|
}
|
|
@@ -20537,8 +20541,8 @@ const Ah = [nh, Ph], Rh = {
|
|
|
20537
20541
|
p.config.globalProperties.$continuation = this.continuation;
|
|
20538
20542
|
return;
|
|
20539
20543
|
}
|
|
20540
|
-
let
|
|
20541
|
-
if (ft.appendChild(
|
|
20544
|
+
let pt = Oa(mh), Y = document.createElement("div"), ft = document.body;
|
|
20545
|
+
if (ft.appendChild(Y), this.loading = pt.mount(Y), p.config.globalProperties.$loading = this.loading, window.$continuation = this.loading, this.mapModali) {
|
|
20542
20546
|
p.config.globalProperties.$mapModali = this.mapModali;
|
|
20543
20547
|
return;
|
|
20544
20548
|
}
|