| Server IP : 167.235.67.158 / Your IP : 216.73.216.95 Web Server : Apache System : Linux ubuntu-8gb-nbg1-1 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : upstairsbar.co.uk ( 982) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/bc.the-word.com/_next/static/chunks/ |
Upload File : |
"use strict";
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[613], {
92839: function(t, e, n) {
n.d(e, {
Vx: function() {
return h
},
kX: function() {
return p
},
oY: function() {
return o
}
});
var i, r = n(34406),
o = {
Linear: {
None: function(t) {
return t
}
},
Quadratic: {
In: function(t) {
return t * t
},
Out: function(t) {
return t * (2 - t)
},
InOut: function(t) {
return (t *= 2) < 1 ? .5 * t * t : -.5 * (--t * (t - 2) - 1)
}
},
Cubic: {
In: function(t) {
return t * t * t
},
Out: function(t) {
return --t * t * t + 1
},
InOut: function(t) {
return (t *= 2) < 1 ? .5 * t * t * t : .5 * ((t -= 2) * t * t + 2)
}
},
Quartic: {
In: function(t) {
return t * t * t * t
},
Out: function(t) {
return 1 - --t * t * t * t
},
InOut: function(t) {
return (t *= 2) < 1 ? .5 * t * t * t * t : -.5 * ((t -= 2) * t * t * t - 2)
}
},
Quintic: {
In: function(t) {
return t * t * t * t * t
},
Out: function(t) {
return --t * t * t * t * t + 1
},
InOut: function(t) {
return (t *= 2) < 1 ? .5 * t * t * t * t * t : .5 * ((t -= 2) * t * t * t * t + 2)
}
},
Sinusoidal: {
In: function(t) {
return 1 - Math.cos(t * Math.PI / 2)
},
Out: function(t) {
return Math.sin(t * Math.PI / 2)
},
InOut: function(t) {
return .5 * (1 - Math.cos(Math.PI * t))
}
},
Exponential: {
In: function(t) {
return 0 === t ? 0 : Math.pow(1024, t - 1)
},
Out: function(t) {
return 1 === t ? 1 : 1 - Math.pow(2, -10 * t)
},
InOut: function(t) {
return 0 === t ? 0 : 1 === t ? 1 : (t *= 2) < 1 ? .5 * Math.pow(1024, t - 1) : .5 * (-Math.pow(2, -10 * (t - 1)) + 2)
}
},
Circular: {
In: function(t) {
return 1 - Math.sqrt(1 - t * t)
},
Out: function(t) {
return Math.sqrt(1 - --t * t)
},
InOut: function(t) {
return (t *= 2) < 1 ? -.5 * (Math.sqrt(1 - t * t) - 1) : .5 * (Math.sqrt(1 - (t -= 2) * t) + 1)
}
},
Elastic: {
In: function(t) {
return 0 === t ? 0 : 1 === t ? 1 : -Math.pow(2, 10 * (t - 1)) * Math.sin((t - 1.1) * 5 * Math.PI)
},
Out: function(t) {
return 0 === t ? 0 : 1 === t ? 1 : Math.pow(2, -10 * t) * Math.sin((t - .1) * 5 * Math.PI) + 1
},
InOut: function(t) {
return 0 === t ? 0 : 1 === t ? 1 : (t *= 2) < 1 ? -.5 * Math.pow(2, 10 * (t - 1)) * Math.sin((t - 1.1) * 5 * Math.PI) : .5 * Math.pow(2, -10 * (t - 1)) * Math.sin((t - 1.1) * 5 * Math.PI) + 1
}
},
Back: {
In: function(t) {
return t * t * (2.70158 * t - 1.70158)
},
Out: function(t) {
return --t * t * (2.70158 * t + 1.70158) + 1
},
InOut: function(t) {
return (t *= 2) < 1 ? .5 * (t * t * (3.5949095 * t - 2.5949095)) : .5 * ((t -= 2) * t * (3.5949095 * t + 2.5949095) + 2)
}
},
Bounce: {
In: function(t) {
return 1 - o.Bounce.Out(1 - t)
},
Out: function(t) {
return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375
},
InOut: function(t) {
return t < .5 ? .5 * o.Bounce.In(2 * t) : .5 * o.Bounce.Out(2 * t - 1) + .5
}
}
},
a = "undefined" == typeof self && void 0 !== r && r.hrtime ? function() {
var t = r.hrtime();
return 1e3 * t[0] + t[1] / 1e6
} : "undefined" != typeof self && void 0 !== self.performance && void 0 !== self.performance.now ? self.performance.now.bind(self.performance) : void 0 !== Date.now ? Date.now : function() {
return new Date().getTime()
},
s = function() {
function t() {
this._tweens = {}, this._tweensAddedDuringUpdate = {}
}
return t.prototype.getAll = function() {
var t = this;
return Object.keys(this._tweens).map(function(e) {
return t._tweens[e]
})
}, t.prototype.removeAll = function() {
this._tweens = {}
}, t.prototype.add = function(t) {
this._tweens[t.getId()] = t, this._tweensAddedDuringUpdate[t.getId()] = t
}, t.prototype.remove = function(t) {
delete this._tweens[t.getId()], delete this._tweensAddedDuringUpdate[t.getId()]
}, t.prototype.update = function(t, e) {
void 0 === t && (t = a()), void 0 === e && (e = !1);
var n = Object.keys(this._tweens);
if (0 === n.length) return !1;
for (; n.length > 0;) {
this._tweensAddedDuringUpdate = {};
for (var i = 0; i < n.length; i++) {
var r = this._tweens[n[i]],
o = !e;
r && !1 === r.update(t, o) && !e && delete this._tweens[n[i]]
}
n = Object.keys(this._tweensAddedDuringUpdate)
}
return !0
}, t
}(),
u = {
Linear: function(t, e) {
var n = t.length - 1,
i = n * e,
r = Math.floor(i),
o = u.Utils.Linear;
return e < 0 ? o(t[0], t[1], i) : e > 1 ? o(t[n], t[n - 1], n - i) : o(t[r], t[r + 1 > n ? n : r + 1], i - r)
},
Bezier: function(t, e) {
for (var n = 0, i = t.length - 1, r = Math.pow, o = u.Utils.Bernstein, a = 0; a <= i; a++) n += r(1 - e, i - a) * r(e, a) * t[a] * o(i, a);
return n
},
CatmullRom: function(t, e) {
var n = t.length - 1,
i = n * e,
r = Math.floor(i),
o = u.Utils.CatmullRom;
return t[0] === t[n] ? (e < 0 && (r = Math.floor(i = n * (1 + e))), o(t[(r - 1 + n) % n], t[r], t[(r + 1) % n], t[(r + 2) % n], i - r)) : e < 0 ? t[0] - (o(t[0], t[0], t[1], t[1], -i) - t[0]) : e > 1 ? t[n] - (o(t[n], t[n], t[n - 1], t[n - 1], i - n) - t[n]) : o(t[r ? r - 1 : 0], t[r], t[n < r + 1 ? n : r + 1], t[n < r + 2 ? n : r + 2], i - r)
},
Utils: {
Linear: function(t, e, n) {
return (e - t) * n + t
},
Bernstein: function(t, e) {
var n = u.Utils.Factorial;
return n(t) / n(e) / n(t - e)
},
Factorial: (i = [1], function(t) {
var e = 1;
if (i[t]) return i[t];
for (var n = t; n > 1; n--) e *= n;
return i[t] = e, e
}),
CatmullRom: function(t, e, n, i, r) {
var o = (n - t) * .5,
a = (i - e) * .5,
s = r * r;
return (2 * e - 2 * n + o + a) * (r * s) + (-3 * e + 3 * n - 2 * o - a) * s + o * r + e
}
}
},
c = function() {
function t() {}
return t.nextId = function() {
return t._nextId++
}, t._nextId = 0, t
}(),
l = new s,
p = function() {
function t(t, e) {
void 0 === e && (e = l), this._object = t, this._group = e, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = o.Linear.None, this._interpolationFunction = u.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._id = c.nextId(), this._isChainStopped = !1, this._goToEnd = !1
}
return t.prototype.getId = function() {
return this._id
}, t.prototype.isPlaying = function() {
return this._isPlaying
}, t.prototype.isPaused = function() {
return this._isPaused
}, t.prototype.to = function(t, e) {
return this._valuesEnd = Object.create(t), void 0 !== e && (this._duration = e), this
}, t.prototype.duration = function(t) {
return this._duration = t, this
}, t.prototype.start = function(t) {
if (this._isPlaying) return this;
if (this._group && this._group.add(this), this._repeat = this._initialRepeat, this._reversed)
for (var e in this._reversed = !1, this._valuesStartRepeat) this._swapEndStartRepeatValues(e), this._valuesStart[e] = this._valuesStartRepeat[e];
return this._isPlaying = !0, this._isPaused = !1, this._onStartCallbackFired = !1, this._isChainStopped = !1, this._startTime = void 0 !== t ? "string" == typeof t ? a() + parseFloat(t) : t : a(), this._startTime += this._delayTime, this._setupProperties(this._object, this._valuesStart, this._valuesEnd, this._valuesStartRepeat), this
}, t.prototype._setupProperties = function(t, e, n, i) {
for (var r in n) {
var o = t[r],
a = Array.isArray(o),
s = a ? "array" : typeof o,
u = !a && Array.isArray(n[r]);
if ("undefined" !== s && "function" !== s) {
if (u) {
var c = n[r];
if (0 === c.length) continue;
c = c.map(this._handleRelativeValue.bind(this, o)), n[r] = [o].concat(c)
}
if (("object" === s || a) && o && !u) {
for (var l in e[r] = a ? [] : {}, o) e[r][l] = o[l];
i[r] = a ? [] : {}, this._setupProperties(o, e[r], n[r], i[r])
} else void 0 === e[r] && (e[r] = o), a || (e[r] *= 1), u ? i[r] = n[r].slice().reverse() : i[r] = e[r] || 0
}
}
}, t.prototype.stop = function() {
return this._isChainStopped || (this._isChainStopped = !0, this.stopChainedTweens()), this._isPlaying && (this._group && this._group.remove(this), this._isPlaying = !1, this._isPaused = !1, this._onStopCallback && this._onStopCallback(this._object)), this
}, t.prototype.end = function() {
return this._goToEnd = !0, this.update(1 / 0), this
}, t.prototype.pause = function(t) {
return void 0 === t && (t = a()), this._isPaused || !this._isPlaying || (this._isPaused = !0, this._pauseStart = t, this._group && this._group.remove(this)), this
}, t.prototype.resume = function(t) {
return void 0 === t && (t = a()), this._isPaused && this._isPlaying && (this._isPaused = !1, this._startTime += t - this._pauseStart, this._pauseStart = 0, this._group && this._group.add(this)), this
}, t.prototype.stopChainedTweens = function() {
for (var t = 0, e = this._chainedTweens.length; t < e; t++) this._chainedTweens[t].stop();
return this
}, t.prototype.group = function(t) {
return this._group = t, this
}, t.prototype.delay = function(t) {
return this._delayTime = t, this
}, t.prototype.repeat = function(t) {
return this._initialRepeat = t, this._repeat = t, this
}, t.prototype.repeatDelay = function(t) {
return this._repeatDelayTime = t, this
}, t.prototype.yoyo = function(t) {
return this._yoyo = t, this
}, t.prototype.easing = function(t) {
return this._easingFunction = t, this
}, t.prototype.interpolation = function(t) {
return this._interpolationFunction = t, this
}, t.prototype.chain = function() {
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
return this._chainedTweens = t, this
}, t.prototype.onStart = function(t) {
return this._onStartCallback = t, this
}, t.prototype.onUpdate = function(t) {
return this._onUpdateCallback = t, this
}, t.prototype.onRepeat = function(t) {
return this._onRepeatCallback = t, this
}, t.prototype.onComplete = function(t) {
return this._onCompleteCallback = t, this
}, t.prototype.onStop = function(t) {
return this._onStopCallback = t, this
}, t.prototype.update = function(t, e) {
if (void 0 === t && (t = a()), void 0 === e && (e = !0), this._isPaused) return !0;
var n, i, r = this._startTime + this._duration;
if (!this._goToEnd && !this._isPlaying) {
if (t > r) return !1;
e && this.start(t)
}
if (this._goToEnd = !1, t < this._startTime) return !0;
!1 === this._onStartCallbackFired && (this._onStartCallback && this._onStartCallback(this._object), this._onStartCallbackFired = !0), i = (t - this._startTime) / this._duration, i = 0 === this._duration || i > 1 ? 1 : i;
var o = this._easingFunction(i);
if (this._updateProperties(this._object, this._valuesStart, this._valuesEnd, o), this._onUpdateCallback && this._onUpdateCallback(this._object, i), 1 === i) {
if (this._repeat > 0) {
for (n in isFinite(this._repeat) && this._repeat--, this._valuesStartRepeat) this._yoyo || "string" != typeof this._valuesEnd[n] || (this._valuesStartRepeat[n] = this._valuesStartRepeat[n] + parseFloat(this._valuesEnd[n])), this._yoyo && this._swapEndStartRepeatValues(n), this._valuesStart[n] = this._valuesStartRepeat[n];
this._yoyo && (this._reversed = !this._reversed), void 0 !== this._repeatDelayTime ? this._startTime = t + this._repeatDelayTime : this._startTime = t + this._delayTime, this._onRepeatCallback && this._onRepeatCallback(this._object)
} else {
this._onCompleteCallback && this._onCompleteCallback(this._object);
for (var s = 0, u = this._chainedTweens.length; s < u; s++) this._chainedTweens[s].start(this._startTime + this._duration);
return this._isPlaying = !1, !1
}
}
return !0
}, t.prototype._updateProperties = function(t, e, n, i) {
for (var r in n)
if (void 0 !== e[r]) {
var o = e[r] || 0,
a = n[r],
s = Array.isArray(t[r]),
u = Array.isArray(a);
!s && u ? t[r] = this._interpolationFunction(a, i) : "object" == typeof a && a ? this._updateProperties(t[r], o, a, i) : "number" == typeof(a = this._handleRelativeValue(o, a)) && (t[r] = o + (a - o) * i)
}
}, t.prototype._handleRelativeValue = function(t, e) {
return "string" != typeof e ? e : "+" === e.charAt(0) || "-" === e.charAt(0) ? t + parseFloat(e) : parseFloat(e)
}, t.prototype._swapEndStartRepeatValues = function(t) {
var e = this._valuesStartRepeat[t],
n = this._valuesEnd[t];
"string" == typeof n ? this._valuesStartRepeat[t] = this._valuesStartRepeat[t] + parseFloat(n) : this._valuesStartRepeat[t] = this._valuesEnd[t], this._valuesEnd[t] = e
}, t
}();
c.nextId, l.getAll.bind(l), l.removeAll.bind(l), l.add.bind(l), l.remove.bind(l);
var h = l.update.bind(l)
},
88405: function(t, e, n) {
n.d(e, {
J: function() {
return s
},
c: function() {
return a
}
});
for (var i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", r = "undefined" == typeof Uint8Array ? [] : new Uint8Array(256), o = 0; o < i.length; o++) r[i.charCodeAt(o)] = o;
var a = function(t) {
var e, n = new Uint8Array(t),
r = n.length,
o = "";
for (e = 0; e < r; e += 3) o += i[n[e] >> 2] + i[(3 & n[e]) << 4 | n[e + 1] >> 4] + i[(15 & n[e + 1]) << 2 | n[e + 2] >> 6] + i[63 & n[e + 2]];
return r % 3 == 2 ? o = o.substring(0, o.length - 1) + "=" : r % 3 == 1 && (o = o.substring(0, o.length - 2) + "=="), o
},
s = function(t) {
var e, n, i, o, a, s = .75 * t.length,
u = t.length,
c = 0;
"=" === t[t.length - 1] && (s--, "=" === t[t.length - 2] && s--);
var l = new ArrayBuffer(s),
p = new Uint8Array(l);
for (e = 0; e < u; e += 4) n = r[t.charCodeAt(e)], i = r[t.charCodeAt(e + 1)], o = r[t.charCodeAt(e + 2)], a = r[t.charCodeAt(e + 3)], p[c++] = n << 2 | i >> 4, p[c++] = (15 & i) << 4 | o >> 2, p[c++] = (3 & o) << 6 | 63 & a;
return l
}
},
38184: function(t, e, n) {
var i = n(34406),
r = Object.assign || function(t) {
for (var e, n = 1, i = arguments.length; n < i; n++)
for (var r in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
return t
},
o = [
["firefox", /Firefox\/([0-9\.]+)(?:\s|$)/],
["opera", /Opera\/([0-9\.]+)(?:\s|$)/],
["opera", /OPR\/([0-9\.]+)(:?\s|$)$/],
["edge", /Edge\/([0-9\._]+)/],
["ie", /Trident\/7\.0.*rv\:([0-9\.]+)\).*Gecko$/],
["ie", /MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],
["ie", /MSIE\s(7\.0)/],
["safari", /Version\/([0-9\._]+).*Safari/],
["chrome", /(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],
["bb10", /BB10;\sTouch.*Version\/([0-9\.]+)/],
["android", /Android\s([0-9\.]+)/],
["ios", /Version\/([0-9\._]+).*Mobile.*Safari.*/],
["yandexbrowser", /YaBrowser\/([0-9\._]+)/],
["crios", /CriOS\/([0-9\.]+)(:?\s|$)/]
],
a = ["Windows Phone", "Android", "CentOS", {
name: "Chrome OS",
pattern: "CrOS"
}, "Debian", "Fedora", "FreeBSD", "Gentoo", "Haiku", "Kubuntu", "Linux Mint", "OpenBSD", "Red Hat", "SuSE", "Ubuntu", "Xubuntu", "Cygwin", "Symbian OS", "hpwOS", "webOS ", "webOS", "Tablet OS", "Tizen", "Linux", "Mac OS X", "Macintosh", "Mac", "Windows 98;", "Windows "],
s = {
"10.0": "10",
"6.4": "10 Technical Preview",
"6.3": "8.1",
"6.2": "8",
"6.1": "Server 2008 R2 / 7",
"6.0": "Server 2008 / Vista",
"5.2": "Server 2003 / XP 64-bit",
"5.1": "XP",
"5.01": "2000 SP1",
"5.0": "2000",
"4.0": "NT",
"4.90": "ME"
},
u = RegExp("(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino", "i"),
c = RegExp("1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|k\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-", "i"),
l = function() {
function t(t, e, n) {
this.navigator = e, this.process = n, this.userAgent = t || (this.navigator ? e.userAgent || e.vendor : "")
}
return t.prototype.detect = function() {
if (this.process && !this.userAgent) {
var t = this.process.version.slice(1).split(".").slice(0, 3),
e = Array.prototype.slice.call(t, 1).join("") || "0";
return {
name: "node",
version: t.join("."),
versionNumber: parseFloat(t[0] + "." + e),
mobile: !1,
os: this.process.platform
}
}
return this.userAgent || this.handleMissingError(), r({}, this.checkBrowser(), this.checkMobile(), this.checkOs())
}, t.prototype.checkBrowser = function() {
var t = this;
return o.filter(function(e) {
return e[1].test(t.userAgent)
}).map(function(e) {
var n = e[1].exec(t.userAgent),
i = n && n[1].split(/[._]/).slice(0, 3),
r = Array.prototype.slice.call(i, 1).join("") || "0";
return i && i.length < 3 && Array.prototype.push.apply(i, 1 === i.length ? [0, 0] : [0]), {
name: String(e[0]),
version: i.join("."),
versionNumber: Number(i[0] + "." + r)
}
}).shift()
}, t.prototype.checkMobile = function() {
var t = this.userAgent.substr(0, 4);
return {
mobile: u.test(this.userAgent) || c.test(t)
}
}, t.prototype.checkOs = function() {
var t = this;
return a.map(function(e) {
var n = e.name || e,
i = t.getOsPattern(e);
return {
name: n,
pattern: i,
value: RegExp("\\b" + i.replace(/([ -])(?!$)/g, "$1?") + "(?:x?[\\d._]+|[ \\w.]*)", "i").exec(t.userAgent)
}
}).filter(function(t) {
return t.value
}).map(function(t) {
var e, n = t.value[0] || "";
return t.pattern && t.name && /^Win/i.test(n) && !/^Windows Phone /i.test(n) && (e = s[n.replace(/[^\d.]/g, "")]) && (n = "Windows " + e), t.pattern && t.name && (n = n.replace(RegExp(t.pattern, "i"), t.name)), n = n.replace(/ ce$/i, " CE").replace(/\bhpw/i, "web").replace(/\bMacintosh\b/, "Mac OS").replace(/_PowerPC\b/i, " OS").replace(/\b(OS X) [^ \d]+/i, "$1").replace(/\bMac (OS X)\b/, "$1").replace(/\/(\d)/, " $1").replace(/_/g, ".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i, "").replace(/\bx86\.64\b/gi, "x86_64").replace(/\b(Windows Phone) OS\b/, "$1").replace(/\b(Chrome OS \w+) [\d.]+\b/, "$1").split(" on ")[0].trim(), {
os: n = /^(?:webOS|i(?:OS|P))/.test(n) ? n : n.charAt(0).toUpperCase() + n.slice(1)
}
}).shift()
}, t.prototype.getOsPattern = function(t) {
return ("string" == typeof t ? t : void 0) || t.pattern || t.name
}, t.prototype.handleMissingError = function() {
throw Error("Please give user-agent.\n> browser(navigator.userAgent or res.headers['user-agent']).")
}, t
}();
function p(t, e) {
return t(e = {
exports: {}
}, e.exports), e.exports
}
var h = p(function(t) {
var e = t.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")();
"number" == typeof __g && (__g = e)
}),
d = p(function(t) {
var e = t.exports = {
version: "2.5.7"
};
"number" == typeof __e && (__e = e)
});
d.version;
var f = function(t) {
return "object" == typeof t ? null !== t : "function" == typeof t
},
m = function(t) {
if (!f(t)) throw TypeError(t + " is not an object!");
return t
},
b = function(t) {
try {
return !!t()
} catch (e) {
return !0
}
},
y = !b(function() {
return 7 != Object.defineProperty({}, "a", {
get: function() {
return 7
}
}).a
}),
v = h.document,
g = f(v) && f(v.createElement),
_ = !y && !b(function() {
return 7 != Object.defineProperty(g ? v.createElement("div") : {}, "a", {
get: function() {
return 7
}
}).a
}),
w = function(t, e) {
var n, i;
if (!f(t)) return t;
if (e && "function" == typeof(n = t.toString) && !f(i = n.call(t)) || "function" == typeof(n = t.valueOf) && !f(i = n.call(t)) || !e && "function" == typeof(n = t.toString) && !f(i = n.call(t))) return i;
throw TypeError("Can't convert object to primitive value")
},
E = Object.defineProperty,
O = {
f: y ? Object.defineProperty : function(t, e, n) {
if (m(t), e = w(e, !0), m(n), _) try {
return E(t, e, n)
} catch (i) {}
if ("get" in n || "set" in n) throw TypeError("Accessors not supported!");
return "value" in n && (t[e] = n.value), t
}
},
P = y ? function(t, e, n) {
return O.f(t, e, {
enumerable: !1,
configurable: !0,
writable: !0,
value: n
})
} : function(t, e, n) {
return t[e] = n, t
},
S = {}.hasOwnProperty,
A = function(t, e) {
return S.call(t, e)
},
M = 0,
k = Math.random(),
T = function(t) {
return "Symbol(".concat(void 0 === t ? "" : t, ")_", (++M + k).toString(36))
},
x = p(function(t) {
var e = T("src"),
n = "toString",
i = Function[n],
r = ("" + i).split(n);
d.inspectSource = function(t) {
return i.call(t)
}, (t.exports = function(t, n, i, o) {
var a = "function" == typeof i;
a && (A(i, "name") || P(i, "name", n)), t[n] !== i && (a && (A(i, e) || P(i, e, t[n] ? "" + t[n] : r.join(String(n)))), t === h ? t[n] = i : o ? t[n] ? t[n] = i : P(t, n, i) : (delete t[n], P(t, n, i)))
})(Function.prototype, n, function() {
return "function" == typeof this && this[e] || i.call(this)
})
}),
C = function(t) {
if ("function" != typeof t) throw TypeError(t + " is not a function!");
return t
},
j = function(t, e, n) {
if (C(t), void 0 === e) return t;
switch (n) {
case 1:
return function(n) {
return t.call(e, n)
};
case 2:
return function(n, i) {
return t.call(e, n, i)
};
case 3:
return function(n, i, r) {
return t.call(e, n, i, r)
}
}
return function() {
return t.apply(e, arguments)
}
},
R = "prototype",
I = function(t, e, n) {
var i, r, o, a, s = t & I.F,
u = t & I.G,
c = t & I.S,
l = t & I.P,
p = t & I.B,
f = u ? h : c ? h[e] || (h[e] = {}) : (h[e] || {})[R],
m = u ? d : d[e] || (d[e] = {}),
b = m[R] || (m[R] = {});
for (i in u && (n = e), n) o = ((r = !s && f && void 0 !== f[i]) ? f : n)[i], a = p && r ? j(o, h) : l && "function" == typeof o ? j(Function.call, o) : o, f && x(f, i, o, t & I.U), m[i] != o && P(m, i, a), l && b[i] != o && (b[i] = o)
};
h.core = d, I.F = 1, I.G = 2, I.S = 4, I.P = 8, I.B = 16, I.W = 32, I.U = 64, I.R = 128;
var N = {}.toString,
F = function(t) {
return N.call(t).slice(8, -1)
},
L = Object("z").propertyIsEnumerable(0) ? Object : function(t) {
return "String" == F(t) ? t.split("") : Object(t)
},
D = function(t) {
if (void 0 == t) throw TypeError("Can't call method on " + t);
return t
},
z = Math.ceil,
U = Math.floor,
Y = Math.min,
X = function(t) {
var e;
return t > 0 ? Y(isNaN(e = +(e = t)) ? 0 : (e > 0 ? U : z)(e), 9007199254740991) : 0
},
B = Array.isArray || function(t) {
return "Array" == F(t)
},
H = p(function(t) {
var e = "__core-js_shared__",
n = h[e] || (h[e] = {});
(t.exports = function(t, e) {
return n[t] || (n[t] = void 0 !== e ? e : {})
})("versions", []).push({
version: d.version,
mode: "global",
copyright: "\xa9 2018 Denis Pushkarev (zloirock.ru)"
})
}),
V = p(function(t) {
var e = H("wks"),
n = h.Symbol,
i = "function" == typeof n;
(t.exports = function(t) {
return e[t] || (e[t] = i && n[t] || (i ? n : T)("Symbol." + t))
}).store = e
})("species"),
Z = function(t) {
var e;
return B(t) && ("function" == typeof(e = t.constructor) && (e === Array || B(e.prototype)) && (e = void 0), f(e) && null === (e = e[V]) && (e = void 0)), void 0 === e ? Array : e
},
$ = function(t, e) {
return new(Z(t))(e)
},
q = function(t, e) {
var n = 1 == t,
i = 2 == t,
r = 3 == t,
o = 4 == t,
a = 6 == t,
s = 5 == t || a,
u = e || $;
return function(e, c, l) {
for (var p, h, d = Object(D(e)), f = L(d), m = j(c, l, 3), b = X(f.length), y = 0, v = n ? u(e, b) : i ? u(e, 0) : void 0; b > y; y++)
if ((s || y in f) && (h = m(p = f[y], y, d), t)) {
if (n) v[y] = h;
else if (h) switch (t) {
case 3:
return !0;
case 5:
return p;
case 6:
return y;
case 2:
v.push(p)
} else if (o) return !1
} return a ? -1 : r || o ? o : v
}
},
W = function(t, e) {
return !!t && b(function() {
e ? t.call(null, function() {}, 1) : t.call(null)
})
},
K = q(2);
I(I.P + !W([].filter, !0) * I.F, "Array", {
filter: function(t) {
return K(this, t, arguments[1])
}
}), d.Array.filter;
var G = q(1);
I(I.P + !W([].map, !0) * I.F, "Array", {
map: function(t) {
return G(this, t, arguments[1])
}
}), d.Array.map;
var Q = " \n\v\f\r \xa0 \u2028\u2029\uFEFF",
J = "[" + Q + "]",
tt = "\x85",
te = RegExp("^" + J + J + "*"),
tn = RegExp(J + J + "*$"),
ti = function(t, e, n) {
var i = {},
r = b(function() {
return !!Q[t]() || tt[t]() != tt
}),
o = i[t] = r ? e(tr) : Q[t];
n && (i[n] = o), I(I.P + I.F * r, "String", i)
},
tr = ti.trim = function(t, e) {
return t = String(D(t)), 1 & e && (t = t.replace(te, "")), 2 & e && (t = t.replace(tn, "")), t
};
ti("trim", function(t) {
return function() {
return t(this, 3)
}
}), d.String.trim;
var to = "undefined" != typeof window ? window.navigator : void 0,
ta = void 0 !== i ? i : void 0;
e.Z = function(t) {
return new l(t, to, ta).detect()
}
},
78249: function(t, e) {
var n = function() {
function t(e) {
this._value = NaN, "string" == typeof e ? this._seed = this.hashCode(e) : "number" == typeof e ? this._seed = this.getSafeSeed(e) : this._seed = this.getSafeSeed(t.MIN + Math.floor((t.MAX - t.MIN) * Math.random())), this.reset()
}
return t.prototype.next = function(e, n) {
return void 0 === e && (e = 0), void 0 === n && (n = 1), this.recalculate(), this.map(this._value, t.MIN, t.MAX, e, n)
}, t.prototype.nextInt = function(e, n) {
return void 0 === e && (e = 10), void 0 === n && (n = 100), this.recalculate(), Math.floor(this.map(this._value, t.MIN, t.MAX, e, n + 1))
}, t.prototype.nextString = function(t, e) {
void 0 === t && (t = 16), void 0 === e && (e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
for (var n = ""; n.length < t;) n += this.nextChar(e);
return n
}, t.prototype.nextChar = function(t) {
return void 0 === t && (t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"), t.substr(this.nextInt(0, t.length - 1), 1)
}, t.prototype.nextArrayItem = function(t) {
return t[this.nextInt(0, t.length - 1)]
}, t.prototype.nextBoolean = function() {
return this.recalculate(), this._value > .5
}, t.prototype.skip = function(t) {
for (void 0 === t && (t = 1); t-- > 0;) this.recalculate()
}, t.prototype.reset = function() {
this._value = this._seed
}, t.prototype.recalculate = function() {
this._value = this.xorshift(this._value)
}, t.prototype.xorshift = function(t) {
return t ^= t << 13, t ^= t >> 17, t ^= t << 5
}, t.prototype.map = function(t, e, n, i, r) {
return (t - e) / (n - e) * (r - i) + i
}, t.prototype.hashCode = function(t) {
var e = 0;
if (t)
for (var n = t.length, i = 0; i < n; i++) e = (e << 5) - e + t.charCodeAt(i) | 0, e = this.xorshift(e);
return this.getSafeSeed(e)
}, t.prototype.getSafeSeed = function(t) {
return 0 === t ? 1 : t
}, t.MIN = -2147483648, t.MAX = 2147483647, t
}();
e.Z = n
},
79432: function(t, e, n) {
n.d(e, {
zz: function() {
return s
}
});
let i = 1 / 3,
r = 1 / 6,
o = t => 0 | Math.floor(t),
a = new Float64Array([1, 1, 0, -1, 1, 0, 1, -1, 0, -1, -1, 0, 1, 0, 1, -1, 0, 1, 1, 0, -1, -1, 0, -1, 0, 1, 1, 0, -1, 1, 0, 1, -1, 0, -1, -1]);
function s(t = Math.random) {
let e = function(t) {
let e = new Uint8Array(512);
for (let n = 0; n < 256; n++) e[n] = n;
for (let i = 0; i < 255; i++) {
let r = i + ~~(t() * (256 - i)),
o = e[i];
e[i] = e[r], e[r] = o
}
for (let a = 256; a < 512; a++) e[a] = e[a - 256];
return e
}(t),
n = new Float64Array(e).map(t => a[t % 12 * 3]),
s = new Float64Array(e).map(t => a[t % 12 * 3 + 1]),
u = new Float64Array(e).map(t => a[t % 12 * 3 + 2]);
return function(t, a, c) {
let l, p, h, d, f, m, b, y, v, g;
let _ = (t + a + c) * i,
w = o(t + _),
E = o(a + _),
O = o(c + _),
P = (w + E + O) * r,
S = t - (w - P),
A = a - (E - P),
M = c - (O - P);
S >= A ? A >= M ? (f = 1, m = 0, b = 0, y = 1, v = 1, g = 0) : S >= M ? (f = 1, m = 0, b = 0, y = 1, v = 0, g = 1) : (f = 0, m = 0, b = 1, y = 1, v = 0, g = 1) : A < M ? (f = 0, m = 0, b = 1, y = 0, v = 1, g = 1) : S < M ? (f = 0, m = 1, b = 0, y = 0, v = 1, g = 1) : (f = 0, m = 1, b = 0, y = 1, v = 1, g = 0);
let k = S - f + r,
T = A - m + r,
x = M - b + r,
C = S - y + 2 * r,
j = A - v + 2 * r,
R = M - g + 2 * r,
I = S - 1 + 3 * r,
N = A - 1 + 3 * r,
F = M - 1 + 3 * r,
L = 255 & w,
D = 255 & E,
z = 255 & O,
U = .6 - S * S - A * A - M * M;
if (U < 0) l = 0;
else {
let Y = L + e[D + e[z]];
U *= U, l = U * U * (n[Y] * S + s[Y] * A + u[Y] * M)
}
let X = .6 - k * k - T * T - x * x;
if (X < 0) p = 0;
else {
let B = L + f + e[D + m + e[z + b]];
X *= X, p = X * X * (n[B] * k + s[B] * T + u[B] * x)
}
let H = .6 - C * C - j * j - R * R;
if (H < 0) h = 0;
else {
let V = L + y + e[D + v + e[z + g]];
H *= H, h = H * H * (n[V] * C + s[V] * j + u[V] * R)
}
let Z = .6 - I * I - N * N - F * F;
if (Z < 0) d = 0;
else {
let $ = L + 1 + e[D + 1 + e[z + 1]];
Z *= Z, d = Z * Z * (n[$] * I + s[$] * N + u[$] * F)
}
return 32 * (l + p + h + d)
}
}
},
22041: function(t, e, n) {
n.d(e, {
z: function() {
return s
}
});
var i = n(96995);
let r = {
type: "change"
},
o = {
type: "start"
},
a = {
type: "end"
};
class s extends i.pBf {
constructor(t, e) {
super(), this.object = t, this.domElement = e, this.domElement.style.touchAction = "none", this.enabled = !0, this.target = new i.Pa4, this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = .05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = {
LEFT: "ArrowLeft",
UP: "ArrowUp",
RIGHT: "ArrowRight",
BOTTOM: "ArrowDown"
}, this.mouseButtons = {
LEFT: i.RsA.ROTATE,
MIDDLE: i.RsA.DOLLY,
RIGHT: i.RsA.PAN
}, this.touches = {
ONE: i.QmN.ROTATE,
TWO: i.QmN.DOLLY_PAN
}, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this.getPolarAngle = function() {
return l.phi
}, this.getAzimuthalAngle = function() {
return l.theta
}, this.getDistance = function() {
return this.object.position.distanceTo(this.target)
}, this.listenToKeyEvents = function(t) {
t.addEventListener("keydown", Z), this._domElementKeyEvents = t
}, this.saveState = function() {
n.target0.copy(n.target), n.position0.copy(n.object.position), n.zoom0 = n.object.zoom
}, this.reset = function() {
n.target.copy(n.target0), n.object.position.copy(n.position0), n.object.zoom = n.zoom0, n.object.updateProjectionMatrix(), n.dispatchEvent(r), n.update(), u = s.NONE
}, this.update = function() {
let e = new i.Pa4,
o = new i._fP().setFromUnitVectors(t.up, new i.Pa4(0, 1, 0)),
a = o.clone().invert(),
m = new i.Pa4,
b = new i._fP,
y = 2 * Math.PI;
return function() {
let t = n.object.position;
e.copy(t).sub(n.target), e.applyQuaternion(o), l.setFromVector3(e), n.autoRotate && u === s.NONE && M(2 * Math.PI / 60 / 60 * n.autoRotateSpeed), n.enableDamping ? (l.theta += p.theta * n.dampingFactor, l.phi += p.phi * n.dampingFactor) : (l.theta += p.theta, l.phi += p.phi);
let i = n.minAzimuthAngle,
v = n.maxAzimuthAngle;
return isFinite(i) && isFinite(v) && (i < -Math.PI ? i += y : i > Math.PI && (i -= y), v < -Math.PI ? v += y : v > Math.PI && (v -= y), i <= v ? l.theta = Math.max(i, Math.min(v, l.theta)) : l.theta = l.theta > (i + v) / 2 ? Math.max(i, l.theta) : Math.min(v, l.theta)), l.phi = Math.max(n.minPolarAngle, Math.min(n.maxPolarAngle, l.phi)), l.makeSafe(), l.radius *= h, l.radius = Math.max(n.minDistance, Math.min(n.maxDistance, l.radius)), !0 === n.enableDamping ? n.target.addScaledVector(d, n.dampingFactor) : n.target.add(d), e.setFromSpherical(l), e.applyQuaternion(a), t.copy(n.target).add(e), n.object.lookAt(n.target), !0 === n.enableDamping ? (p.theta *= 1 - n.dampingFactor, p.phi *= 1 - n.dampingFactor, d.multiplyScalar(1 - n.dampingFactor)) : (p.set(0, 0, 0), d.set(0, 0, 0)), h = 1, !!(f || m.distanceToSquared(n.object.position) > c || 8 * (1 - b.dot(n.object.quaternion)) > c) && (n.dispatchEvent(r), m.copy(n.object.position), b.copy(n.object.quaternion), f = !1, !0)
}
}(), this.dispose = function() {
n.domElement.removeEventListener("contextmenu", $), n.domElement.removeEventListener("pointerdown", Y), n.domElement.removeEventListener("pointercancel", H), n.domElement.removeEventListener("wheel", V), n.domElement.removeEventListener("pointermove", X), n.domElement.removeEventListener("pointerup", B), null !== n._domElementKeyEvents && n._domElementKeyEvents.removeEventListener("keydown", Z)
};
let n = this,
s = {
NONE: -1,
ROTATE: 0,
DOLLY: 1,
PAN: 2,
TOUCH_ROTATE: 3,
TOUCH_PAN: 4,
TOUCH_DOLLY_PAN: 5,
TOUCH_DOLLY_ROTATE: 6
},
u = s.NONE,
c = 1e-6,
l = new i.$V,
p = new i.$V,
h = 1,
d = new i.Pa4,
f = !1,
m = new i.FM8,
b = new i.FM8,
y = new i.FM8,
v = new i.FM8,
g = new i.FM8,
_ = new i.FM8,
w = new i.FM8,
E = new i.FM8,
O = new i.FM8,
P = [],
S = {};
function A() {
return Math.pow(.95, n.zoomSpeed)
}
function M(t) {
p.theta -= t
}
let k = function() {
let t = new i.Pa4;
return function(e, n) {
t.setFromMatrixColumn(n, 0), t.multiplyScalar(-e), d.add(t)
}
}(),
T = function() {
let t = new i.Pa4;
return function(e, i) {
!0 === n.screenSpacePanning ? t.setFromMatrixColumn(i, 1) : (t.setFromMatrixColumn(i, 0), t.crossVectors(n.object.up, t)), t.multiplyScalar(e), d.add(t)
}
}(),
x = function() {
let t = new i.Pa4;
return function(e, i) {
let r = n.domElement;
if (n.object.isPerspectiveCamera) {
let o = n.object.position;
t.copy(o).sub(n.target);
let a = t.length();
k(2 * e * (a *= Math.tan(n.object.fov / 2 * Math.PI / 180)) / r.clientHeight, n.object.matrix), T(2 * i * a / r.clientHeight, n.object.matrix)
} else n.object.isOrthographicCamera ? (k(e * (n.object.right - n.object.left) / n.object.zoom / r.clientWidth, n.object.matrix), T(i * (n.object.top - n.object.bottom) / n.object.zoom / r.clientHeight, n.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), n.enablePan = !1)
}
}();
function C(t) {
n.object.isPerspectiveCamera ? h /= t : n.object.isOrthographicCamera ? (n.object.zoom = Math.max(n.minZoom, Math.min(n.maxZoom, n.object.zoom * t)), n.object.updateProjectionMatrix(), f = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), n.enableZoom = !1)
}
function j(t) {
n.object.isPerspectiveCamera ? h *= t : n.object.isOrthographicCamera ? (n.object.zoom = Math.max(n.minZoom, Math.min(n.maxZoom, n.object.zoom / t)), n.object.updateProjectionMatrix(), f = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), n.enableZoom = !1)
}
function R(t) {
m.set(t.clientX, t.clientY)
}
function I(t) {
v.set(t.clientX, t.clientY)
}
function N() {
if (1 === P.length) m.set(P[0].pageX, P[0].pageY);
else {
let t = .5 * (P[0].pageX + P[1].pageX),
e = .5 * (P[0].pageY + P[1].pageY);
m.set(t, e)
}
}
function F() {
if (1 === P.length) v.set(P[0].pageX, P[0].pageY);
else {
let t = .5 * (P[0].pageX + P[1].pageX),
e = .5 * (P[0].pageY + P[1].pageY);
v.set(t, e)
}
}
function L() {
let t = P[0].pageX - P[1].pageX,
e = P[0].pageY - P[1].pageY;
w.set(0, Math.sqrt(t * t + e * e))
}
function D(t) {
var e;
if (1 == P.length) b.set(t.pageX, t.pageY);
else {
let i = K(t),
r = .5 * (t.pageX + i.x),
o = .5 * (t.pageY + i.y);
b.set(r, o)
}
y.subVectors(b, m).multiplyScalar(n.rotateSpeed);
let a = n.domElement;
M(2 * Math.PI * y.x / a.clientHeight), e = 2 * Math.PI * y.y / a.clientHeight, p.phi -= e, m.copy(b)
}
function z(t) {
if (1 === P.length) g.set(t.pageX, t.pageY);
else {
let e = K(t),
i = .5 * (t.pageX + e.x),
r = .5 * (t.pageY + e.y);
g.set(i, r)
}
_.subVectors(g, v).multiplyScalar(n.panSpeed), x(_.x, _.y), v.copy(g)
}
function U(t) {
let e = K(t),
i = t.pageX - e.x,
r = t.pageY - e.y;
E.set(0, Math.sqrt(i * i + r * r)), O.set(0, Math.pow(E.y / w.y, n.zoomSpeed)), C(O.y), w.copy(E)
}
function Y(t) {
!1 !== n.enabled && (0 === P.length && (n.domElement.setPointerCapture(t.pointerId), n.domElement.addEventListener("pointermove", X), n.domElement.addEventListener("pointerup", B)), P.push(t), "touch" === t.pointerType ? function(t) {
switch (W(t), P.length) {
case 1:
switch (n.touches.ONE) {
case i.QmN.ROTATE:
if (!1 === n.enableRotate) return;
N(), u = s.TOUCH_ROTATE;
break;
case i.QmN.PAN:
if (!1 === n.enablePan) return;
F(), u = s.TOUCH_PAN;
break;
default:
u = s.NONE
}
break;
case 2:
switch (n.touches.TWO) {
case i.QmN.DOLLY_PAN:
if (!1 === n.enableZoom && !1 === n.enablePan) return;
n.enableZoom && L(), n.enablePan && F(), u = s.TOUCH_DOLLY_PAN;
break;
case i.QmN.DOLLY_ROTATE:
if (!1 === n.enableZoom && !1 === n.enableRotate) return;
n.enableZoom && L(), n.enableRotate && N(), u = s.TOUCH_DOLLY_ROTATE;
break;
default:
u = s.NONE
}
break;
default:
u = s.NONE
}
u !== s.NONE && n.dispatchEvent(o)
}(t) : function(t) {
let e;
switch (t.button) {
case 0:
e = n.mouseButtons.LEFT;
break;
case 1:
e = n.mouseButtons.MIDDLE;
break;
case 2:
e = n.mouseButtons.RIGHT;
break;
default:
e = -1
}
switch (e) {
case i.RsA.DOLLY:
if (!1 === n.enableZoom) return;
w.set(t.clientX, t.clientY), u = s.DOLLY;
break;
case i.RsA.ROTATE:
if (t.ctrlKey || t.metaKey || t.shiftKey) {
if (!1 === n.enablePan) return;
I(t), u = s.PAN
} else {
if (!1 === n.enableRotate) return;
R(t), u = s.ROTATE
}
break;
case i.RsA.PAN:
if (t.ctrlKey || t.metaKey || t.shiftKey) {
if (!1 === n.enableRotate) return;
R(t), u = s.ROTATE
} else {
if (!1 === n.enablePan) return;
I(t), u = s.PAN
}
break;
default:
u = s.NONE
}
u !== s.NONE && n.dispatchEvent(o)
}(t))
}
function X(t) {
!1 !== n.enabled && ("touch" === t.pointerType ? function(t) {
switch (W(t), u) {
case s.TOUCH_ROTATE:
if (!1 === n.enableRotate) return;
D(t), n.update();
break;
case s.TOUCH_PAN:
if (!1 === n.enablePan) return;
z(t), n.update();
break;
case s.TOUCH_DOLLY_PAN:
if (!1 === n.enableZoom && !1 === n.enablePan) return;
n.enableZoom && U(t), n.enablePan && z(t), n.update();
break;
case s.TOUCH_DOLLY_ROTATE:
if (!1 === n.enableZoom && !1 === n.enableRotate) return;
n.enableZoom && U(t), n.enableRotate && D(t), n.update();
break;
default:
u = s.NONE
}
}(t) : function(t) {
switch (u) {
case s.ROTATE:
if (!1 === n.enableRotate) return;
! function(t) {
var e;
b.set(t.clientX, t.clientY), y.subVectors(b, m).multiplyScalar(n.rotateSpeed);
let i = n.domElement;
M(2 * Math.PI * y.x / i.clientHeight), e = 2 * Math.PI * y.y / i.clientHeight, p.phi -= e, m.copy(b), n.update()
}(t);
break;
case s.DOLLY:
if (!1 === n.enableZoom) return;
E.set(t.clientX, t.clientY), O.subVectors(E, w), O.y > 0 ? C(A()) : O.y < 0 && j(A()), w.copy(E), n.update();
break;
case s.PAN:
if (!1 === n.enablePan) return;
g.set(t.clientX, t.clientY), _.subVectors(g, v).multiplyScalar(n.panSpeed), x(_.x, _.y), v.copy(g), n.update()
}
}(t))
}
function B(t) {
q(t), 0 === P.length && (n.domElement.releasePointerCapture(t.pointerId), n.domElement.removeEventListener("pointermove", X), n.domElement.removeEventListener("pointerup", B)), n.dispatchEvent(a), u = s.NONE
}
function H(t) {
q(t)
}
function V(t) {
!1 !== n.enabled && !1 !== n.enableZoom && u === s.NONE && (t.preventDefault(), n.dispatchEvent(o), t.deltaY < 0 ? j(A()) : t.deltaY > 0 && C(A()), n.update(), n.dispatchEvent(a))
}
function Z(t) {
!1 !== n.enabled && !1 !== n.enablePan && function(t) {
let e = !1;
switch (t.code) {
case n.keys.UP:
x(0, n.keyPanSpeed), e = !0;
break;
case n.keys.BOTTOM:
x(0, -n.keyPanSpeed), e = !0;
break;
case n.keys.LEFT:
x(n.keyPanSpeed, 0), e = !0;
break;
case n.keys.RIGHT:
x(-n.keyPanSpeed, 0), e = !0
}
e && (t.preventDefault(), n.update())
}(t)
}
function $(t) {
!1 !== n.enabled && t.preventDefault()
}
function q(t) {
delete S[t.pointerId];
for (let e = 0; e < P.length; e++)
if (P[e].pointerId == t.pointerId) {
P.splice(e, 1);
return
}
}
function W(t) {
let e = S[t.pointerId];
void 0 === e && (e = new i.FM8, S[t.pointerId] = e), e.set(t.pageX, t.pageY)
}
function K(t) {
let e = t.pointerId === P[0].pointerId ? P[1] : P[0];
return S[e.pointerId]
}
n.domElement.addEventListener("contextmenu", $), n.domElement.addEventListener("pointerdown", Y), n.domElement.addEventListener("pointercancel", H), n.domElement.addEventListener("wheel", V, {
passive: !1
}), this.update()
}
}
}
}
]);