js-cloudimage-360-view 4.3.2 → 4.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/js-cloudimage-360-view.min.js +2 -2
- package/dist/react/{ci360-B5m0D5w8.js → ci360-Bv2kRtqP.js} +3 -3
- package/dist/react/{ci360-B5m0D5w8.js.map → ci360-Bv2kRtqP.js.map} +1 -1
- package/dist/react/{ci360-CX3RAC_t.mjs → ci360-xUK7dmd6.mjs} +130 -128
- package/dist/react/{ci360-CX3RAC_t.mjs.map → ci360-xUK7dmd6.mjs.map} +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var ni = Object.defineProperty;
|
|
2
2
|
var ri = (e, t, i) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
3
3
|
var de = (e, t, i) => ri(e, typeof t != "symbol" ? t + "" : t, i);
|
|
4
|
-
var
|
|
4
|
+
var Xt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
5
|
function ai(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
|
-
var Ne = "Expected a function", ue = NaN, li = "[object Symbol]", ci = /^\s+|\s+$/g, hi = /^[-+]0x[0-9a-f]+$/i, di = /^0b[01]+$/i, ui = /^0o[0-7]+$/i, pi = parseInt, mi = typeof
|
|
8
|
+
var Ne = "Expected a function", ue = NaN, li = "[object Symbol]", ci = /^\s+|\s+$/g, hi = /^[-+]0x[0-9a-f]+$/i, di = /^0b[01]+$/i, ui = /^0o[0-7]+$/i, pi = parseInt, mi = typeof Xt == "object" && Xt && Xt.Object === Object && Xt, fi = typeof self == "object" && self && self.Object === Object && self, vi = mi || fi || Function("return this")(), gi = Object.prototype, yi = gi.toString, bi = Math.max, wi = Math.min, Kt = function() {
|
|
9
9
|
return vi.Date.now();
|
|
10
10
|
};
|
|
11
11
|
function Ii(e, t, i) {
|
|
@@ -91,7 +91,7 @@ function pe(e) {
|
|
|
91
91
|
return i || ui.test(e) ? pi(e.slice(2), i ? 2 : 8) : hi.test(e) ? ue : +e;
|
|
92
92
|
}
|
|
93
93
|
var Ei = Ci;
|
|
94
|
-
const me = /* @__PURE__ */ ai(Ei),
|
|
94
|
+
const me = /* @__PURE__ */ ai(Ei), X = {
|
|
95
95
|
SPIN_X: "spin-x",
|
|
96
96
|
SPIN_Y: "spin-y",
|
|
97
97
|
SPIN_XY: "spin-xy",
|
|
@@ -99,7 +99,7 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
99
99
|
}, Ai = [!1, 0, null, void 0, "false", "0", "null", "undefined"], Y = {
|
|
100
100
|
X: "x-axis",
|
|
101
101
|
Y: "y-axis"
|
|
102
|
-
}, Si = [37, 39],
|
|
102
|
+
}, Si = [37, 39], Li = [38, 40], ki = typeof navigator < "u" && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), fe = ki ? 32 : 10, Ti = 150, Ht = 800, Mi = 150, Pi = 200, ve = 50, Yi = 50, Ri = 5, ge = 5, d = {
|
|
103
103
|
folder: "/",
|
|
104
104
|
apiVersion: "v7",
|
|
105
105
|
filenameX: "image-{index}.jpg",
|
|
@@ -116,7 +116,7 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
116
116
|
keys: !1,
|
|
117
117
|
keysReverse: !1,
|
|
118
118
|
autoplay: !1,
|
|
119
|
-
autoplayBehavior:
|
|
119
|
+
autoplayBehavior: X.SPIN_X,
|
|
120
120
|
playOnce: !1,
|
|
121
121
|
autoplayReverse: !1,
|
|
122
122
|
pointerZoom: 0,
|
|
@@ -155,37 +155,37 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
155
155
|
onZoomOut: null,
|
|
156
156
|
onDragStart: null,
|
|
157
157
|
onDragEnd: null
|
|
158
|
-
},
|
|
159
|
-
folder:
|
|
160
|
-
apiVersion:
|
|
161
|
-
filenameX:
|
|
162
|
-
filenameY:
|
|
163
|
-
imageListX:
|
|
164
|
-
imageListY:
|
|
165
|
-
indexZeroBase: parseInt(
|
|
166
|
-
amountX: parseInt(
|
|
167
|
-
amountY: parseInt(
|
|
168
|
-
speed: parseInt(
|
|
169
|
-
dragSpeed: parseInt(
|
|
158
|
+
}, Xi = (e) => ({
|
|
159
|
+
folder: L(e, "folder", d.folder),
|
|
160
|
+
apiVersion: L(e, "api-version", d.apiVersion),
|
|
161
|
+
filenameX: L(e, "filename") || L(e, "filename-x") || d.filenameX,
|
|
162
|
+
filenameY: L(e, "filename-y", d.filenameY),
|
|
163
|
+
imageListX: L(e, "image-list-x", d.imageListX),
|
|
164
|
+
imageListY: L(e, "image-list-y", d.imageListY),
|
|
165
|
+
indexZeroBase: parseInt(L(e, "index-zero-base", d.indexZeroBase), 10),
|
|
166
|
+
amountX: parseInt(L(e, "amount-x", d.amountX), 10),
|
|
167
|
+
amountY: parseInt(L(e, "amount-y", d.amountY), 10),
|
|
168
|
+
speed: parseInt(L(e, "speed", d.speed), 10),
|
|
169
|
+
dragSpeed: parseInt(L(e, "drag-speed", d.dragSpeed), 10),
|
|
170
170
|
draggable: P(e, "draggable", d.draggable),
|
|
171
171
|
swipeable: P(e, "swipeable", d.swipeable),
|
|
172
172
|
keys: P(e, "keys", d.keys),
|
|
173
173
|
keysReverse: P(e, "keys-reverse", d.keysReverse),
|
|
174
174
|
autoplay: P(e, "autoplay", d.autoplay),
|
|
175
|
-
autoplayBehavior:
|
|
175
|
+
autoplayBehavior: L(e, "autoplay-behavior", d.autoplayBehavior),
|
|
176
176
|
playOnce: P(e, "play-once", d.playOnce),
|
|
177
177
|
autoplayReverse: P(e, "autoplay-reverse", d.autoplayReverse),
|
|
178
|
-
pointerZoom: parseFloat(
|
|
179
|
-
pointerZoomTrigger:
|
|
178
|
+
pointerZoom: parseFloat(L(e, "pointer-zoom", d.pointerZoom)),
|
|
179
|
+
pointerZoomTrigger: L(e, "pointer-zoom-trigger", d.pointerZoomTrigger),
|
|
180
180
|
fullscreen: P(e, "fullscreen") || P(e, "full-screen", d.fullscreen),
|
|
181
|
-
magnifier: parseFloat(
|
|
181
|
+
magnifier: parseFloat(L(e, "magnifier", d.magnifier)),
|
|
182
182
|
bottomCircleOffset: parseInt(
|
|
183
|
-
|
|
183
|
+
L(e, "bottom-circle-offset", d.bottomCircleOffset),
|
|
184
184
|
10
|
|
185
185
|
),
|
|
186
|
-
ciToken:
|
|
187
|
-
ciFilters:
|
|
188
|
-
ciTransformation:
|
|
186
|
+
ciToken: L(e, "responsive", d.ciToken),
|
|
187
|
+
ciFilters: L(e, "filters", d.ciFilters),
|
|
188
|
+
ciTransformation: L(e, "transformation", d.ciTransformation),
|
|
189
189
|
lazyload: P(e, "lazyload", d.lazyload),
|
|
190
190
|
dragReverse: P(e, "drag-reverse", d.dragReverse),
|
|
191
191
|
stopAtEdges: P(e, "stop-at-edges", d.stopAtEdges),
|
|
@@ -193,14 +193,14 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
193
193
|
initialIconShown: !Zt(e, "initial-icon"),
|
|
194
194
|
bottomCircle: !Zt(e, "bottom-circle"),
|
|
195
195
|
hide360Logo: P(e, "hide-360-logo", d.hide360Logo),
|
|
196
|
-
logoSrc:
|
|
196
|
+
logoSrc: L(e, "logo-src", d.logoSrc),
|
|
197
197
|
inertia: P(e, "inertia", d.inertia),
|
|
198
198
|
pinchZoom: P(e, "pinch-zoom", d.pinchZoom),
|
|
199
199
|
hints: !Zt(e, "hints"),
|
|
200
|
-
theme:
|
|
201
|
-
hotspotTrigger:
|
|
200
|
+
theme: L(e, "theme", d.theme),
|
|
201
|
+
hotspotTrigger: L(e, "hotspot-trigger", d.hotspotTrigger),
|
|
202
202
|
hotspotTimelineOnClick: !Zt(e, "hotspot-timeline-on-click"),
|
|
203
|
-
aspectRatio:
|
|
203
|
+
aspectRatio: L(e, "aspect-ratio", d.aspectRatio)
|
|
204
204
|
}), Hi = (e) => {
|
|
205
205
|
const t = [];
|
|
206
206
|
e.amountX !== void 0 && e.amountX < 0 && t.push("amountX should be a positive number"), e.amountY !== void 0 && e.amountY < 0 && t.push("amountY should be a positive number"), e.speed !== void 0 && e.speed <= 0 && t.push("speed should be a positive number"), e.dragSpeed !== void 0 && e.dragSpeed <= 0 && t.push("dragSpeed should be a positive number"), e.pointerZoom !== void 0 && e.pointerZoom !== 0 && (e.pointerZoom < 1 || e.pointerZoom > 5) && t.push("pointerZoom should be between 1 and 5 (or 0 to disable)"), e.magnifier !== void 0 && e.magnifier !== null && e.magnifier !== 0 && (e.magnifier < 1 || e.magnifier > 5) && t.push("magnifier should be between 1 and 5 (or 0/null to disable)"), !e.folder && !e.imageListX && !e.imageListY && t.push("Either folder or imageListX/imageListY is required"), e.folder && !e.amountX && !e.imageListX && t.push("amountX is required when using folder (unless imageListX is provided)");
|
|
@@ -264,11 +264,11 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
264
264
|
onZoomOut: e.onZoomOut ?? d.onZoomOut,
|
|
265
265
|
onDragStart: e.onDragStart ?? d.onDragStart,
|
|
266
266
|
onDragEnd: e.onDragEnd ?? d.onDragEnd
|
|
267
|
-
}),
|
|
267
|
+
}), L = (e, t, i) => e.getAttribute(t) || e.getAttribute(`data-${t}`) || i, P = (e, t, i) => {
|
|
268
268
|
if (!(e.hasAttribute(t) || e.hasAttribute(`data-${t}`))) return i;
|
|
269
|
-
const o =
|
|
269
|
+
const o = L(e, t, null);
|
|
270
270
|
return o !== "false" && o !== "0";
|
|
271
|
-
}, Zt = (e, t) =>
|
|
271
|
+
}, Zt = (e, t) => L(e, t, null) === "false", Di = (e = 1) => {
|
|
272
272
|
const t = Math.round(window.devicePixelRatio || 1);
|
|
273
273
|
return parseInt(e) * t;
|
|
274
274
|
}, Bi = (e, t, i) => new URL(e).origin.includes("cloudimg") ? e : `https://${t}.cloudimg.io/${i}${e}`, Wi = ({ ciTransformation: e, responsiveWidth: t, ciFilters: i }) => {
|
|
@@ -389,9 +389,9 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
389
389
|
r == null || r({ ...A, orientation: w });
|
|
390
390
|
},
|
|
391
391
|
onAllImagesLoad: (A, S) => {
|
|
392
|
-
y.length = 0, A.forEach((
|
|
393
|
-
|
|
394
|
-
}), x.errorCount = S.errorCount, x.errors = S.errors.map((
|
|
392
|
+
y.length = 0, A.forEach((k, R) => {
|
|
393
|
+
k && (y[R] = k);
|
|
394
|
+
}), x.errorCount = S.errorCount, x.errors = S.errors.map((k) => ({ ...k, orientation: w })), a[g ? "x" : "y"] = !0, b();
|
|
395
395
|
},
|
|
396
396
|
autoplayReverse: E.autoplayReverse
|
|
397
397
|
});
|
|
@@ -713,7 +713,7 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
713
713
|
u = Math.max(o / l, Math.min(u, s.offsetWidth - o / l)), f = Math.max(n / l, Math.min(f, s.offsetHeight - n / l)), i.style.left = `${u - o}px`, i.style.top = `${f - n}px`;
|
|
714
714
|
const p = (u - a) * l - o + r, I = (f - c) * l - n + r;
|
|
715
715
|
i.style.backgroundPosition = `-${p}px -${I}px`;
|
|
716
|
-
},
|
|
716
|
+
}, Ls = (e, t, i, s, o, n) => {
|
|
717
717
|
const { x: l = 0, y: r = 0 } = i || {}, a = (t.offsetWidth - l * 2) * n, c = (t.offsetHeight - r * 2) * n;
|
|
718
718
|
if (!o) return;
|
|
719
719
|
o.setAttribute("class", "cloudimage-360-img-magnifier-glass"), t.prepend(o), o.style.backgroundImage = `url('${s.src}')`, o.style.backgroundSize = `${a}px ${c}px`;
|
|
@@ -733,10 +733,10 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
733
733
|
v.preventDefault(), Jt(v, p, o);
|
|
734
734
|
};
|
|
735
735
|
o.addEventListener("mousemove", I), t.addEventListener("mousemove", I), t.addEventListener("touchmove", b);
|
|
736
|
-
},
|
|
736
|
+
}, ks = (e, t, i) => {
|
|
737
737
|
const { clientX: s, clientY: o } = e, n = t.getBoundingClientRect(), l = t.width / (n.width * i), r = t.height / (n.height * i), a = (s - n.left) * l, c = (o - n.top) * r;
|
|
738
738
|
return { offsetX: a, offsetY: c };
|
|
739
|
-
},
|
|
739
|
+
}, Ts = (e, t, i) => {
|
|
740
740
|
const s = e / i, o = t / i;
|
|
741
741
|
return { zoomedWidth: s, zoomedHeight: o };
|
|
742
742
|
}, Ms = ({
|
|
@@ -758,14 +758,14 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
758
758
|
e ? t() : i();
|
|
759
759
|
}, Ps = ({ autoplayBehavior: e, spinY: t, reversed: i, loopTriggers: s }) => {
|
|
760
760
|
switch (e) {
|
|
761
|
-
case
|
|
762
|
-
case
|
|
761
|
+
case X.SPIN_XY:
|
|
762
|
+
case X.SPIN_YX:
|
|
763
763
|
t ? Ae(i, s) : Se(i, s);
|
|
764
764
|
break;
|
|
765
|
-
case
|
|
765
|
+
case X.SPIN_Y:
|
|
766
766
|
Ae(i, s);
|
|
767
767
|
break;
|
|
768
|
-
case
|
|
768
|
+
case X.SPIN_X:
|
|
769
769
|
default:
|
|
770
770
|
Se(i, s);
|
|
771
771
|
}
|
|
@@ -782,15 +782,15 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
782
782
|
return n ? r === 0 : r === c;
|
|
783
783
|
};
|
|
784
784
|
switch (e) {
|
|
785
|
-
case
|
|
786
|
-
case
|
|
785
|
+
case X.SPIN_XY:
|
|
786
|
+
case X.SPIN_Y:
|
|
787
787
|
return l(i, o);
|
|
788
|
-
case
|
|
789
|
-
case
|
|
788
|
+
case X.SPIN_X:
|
|
789
|
+
case X.SPIN_YX:
|
|
790
790
|
default:
|
|
791
791
|
return l(t, s);
|
|
792
792
|
}
|
|
793
|
-
},
|
|
793
|
+
}, Rs = ({
|
|
794
794
|
autoplayBehavior: e,
|
|
795
795
|
activeImageX: t,
|
|
796
796
|
activeImageY: i,
|
|
@@ -800,25 +800,25 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
800
800
|
spinDirection: l
|
|
801
801
|
}) => {
|
|
802
802
|
const r = t === (n ? 0 : s - 1), a = i === (n ? 0 : o - 1);
|
|
803
|
-
return e ===
|
|
804
|
-
},
|
|
803
|
+
return e === X.SPIN_XY || e === X.SPIN_YX ? l === "x" && r || l === "y" && a : !1;
|
|
804
|
+
}, Xs = (e, t, i) => {
|
|
805
805
|
if (!i) return "x";
|
|
806
806
|
if (!t) return "y";
|
|
807
807
|
switch (e) {
|
|
808
|
-
case
|
|
808
|
+
case X.SPIN_XY:
|
|
809
809
|
return "x";
|
|
810
|
-
case
|
|
810
|
+
case X.SPIN_YX:
|
|
811
811
|
return "y";
|
|
812
|
-
case
|
|
812
|
+
case X.SPIN_Y:
|
|
813
813
|
return "y";
|
|
814
|
-
case
|
|
814
|
+
case X.SPIN_X:
|
|
815
815
|
default:
|
|
816
816
|
return "x";
|
|
817
817
|
}
|
|
818
|
-
}, Hs = (e) => e === "x" ? "y" : "x",
|
|
818
|
+
}, Hs = (e) => e === "x" ? "y" : "x", Le = (e, t) => {
|
|
819
819
|
const i = [...Si];
|
|
820
|
-
return t ? [...i, ...
|
|
821
|
-
},
|
|
820
|
+
return t ? [...i, ...Li].includes(e) : i.includes(e);
|
|
821
|
+
}, ke = ({ deltaX: e, deltaY: t, reversed: i, allowSpinX: s, allowSpinY: o, threshold: n = 0 }) => {
|
|
822
822
|
const l = s && !o || o && !s ? 0 : n, r = Math.abs(e), a = Math.abs(t);
|
|
823
823
|
return s && r - l > a ? i ? e > 0 ? "left" : "right" : e > 0 ? "right" : "left" : o && a - l > r ? i ? t > 0 ? "up" : "down" : t > 0 ? "down" : "up" : null;
|
|
824
824
|
}, Zs = () => "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0, Ds = (e, t = 150) => {
|
|
@@ -828,11 +828,11 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
828
828
|
e.apply(this, s);
|
|
829
829
|
}, t);
|
|
830
830
|
};
|
|
831
|
-
}, $e = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0IHY9KHQsYSxlKT0+e2NvbnN0IHM9dC9lLG49YS9lO3JldHVybnt6b29tZWRXaWR0aDpzLHpvb21lZEhlaWdodDpufX0sej0oe3BvaW50ZXJYOnQscG9pbnRlclk6YSxpbWFnZURhdGE6ZSx6b29tZWRXaWR0aDpzLHpvb21lZEhlaWdodDpuLGRyYXdXaWR0aDppLGRyYXdIZWlnaHQ6Y30pPT57Y29uc3R7bmF0dXJhbFdpZHRoOmcsbmF0dXJhbEhlaWdodDp1fT1lO2xldCBmPXQvaSpnLXMvMixtPWEvYyp1LW4vMjtjb25zdCB4PU1hdGgubWF4KDAsZy1zKSxPPU1hdGgubWF4KDAsdS1uKTtyZXR1cm4gZj1NYXRoLm1heCgwLE1hdGgubWluKGYseCkpLG09TWF0aC5tYXgoMCxNYXRoLm1pbihtLE8pKSx7em9vbU9mZnNldFg6Zix6b29tT2Zmc2V0WTptfX07bGV0IG8saCxyLGQsbCx3O3NlbGYub25tZXNzYWdlPWFzeW5jIHQ9Pntjb25zdHthY3Rpb246YSxvZmZzY3JlZW46ZSxkZXZpY2VQaXhlbFJhdGlvOnMsaW1hZ2VEYXRhOm4sem9vbVNjYWxlOmkscG9pbnRlclg6Yyxwb2ludGVyWTpnLGltYWdlQXNwZWN0UmF0aW86dSxjb250YWluZXJXaWR0aDpmLGNvbnRhaW5lckhlaWdodDptfT10LmRhdGE7c3dpdGNoKGEpe2Nhc2UiaW5pdENhbnZhcyI6QyhlLHMpO2JyZWFrO2Nhc2UiYWRhcHRDYW52YXNTaXplIjpwKHUsZixtKTticmVhaztjYXNlImRyYXdJbWFnZU9uQ2FudmFzIjpJKG4saSxjLGcpO2JyZWFrfX07Y29uc3QgQz0odCxhKT0+e289dCxoPW8uZ2V0Q29udGV4dCgiMmQiKSxyPWF9LHA9KHQsYSxlKT0+e2NvbnN0IHM9YS9lO3c9dD5zLG8ud2lkdGg9YSpyLG8uaGVpZ2h0PWUqcixoLnNjYWxlKHIsciksdz8oZD1hLGw9YS90KToobD1lLGQ9ZSp0KSxoLmltYWdlU21vb3RoaW5nRW5hYmxlZD0hMCxoLmltYWdlU21vb3RoaW5nUXVhbGl0eT0iaGlnaCJ9LEk9KHQ9e30sYT0xLGU9MCxzPTApPT57Y29uc3R7Yml0bWFwSW1hZ2U6bn09dDtpZighb3x8IW4pcmV0dXJuO2xldCBpLGM7aWYodz8oaT0wLGM9KG8uaGVpZ2h0L3ItbCkvMik6KGk9KG8ud2lkdGgvci1kKS8yLGM9MCksaC5jbGVhclJlY3QoMCwwLG8ud2lkdGgsby5oZWlnaHQpLGEhPT0xKXtjb25zdHtuYXR1cmFsV2lkdGg6ZyxuYXR1cmFsSGVpZ2h0OnV9PXQse3pvb21lZFdpZHRoOmYsem9vbWVkSGVpZ2h0Om19PXYoZyx1LGEpLHt6b29tT2Zmc2V0WDp4LHpvb21PZmZzZXRZOk99PXooe3BvaW50ZXJYOmUscG9pbnRlclk6cyxpbWFnZURhdGE6dCx6b29tZWRXaWR0aDpmLHpvb21lZEhlaWdodDptLGRyYXdXaWR0aDpkLGRyYXdIZWlnaHQ6bH0pO2guZHJhd0ltYWdlKG4seCxPLGYsbSxpLGMsZCxsKX1lbHNlIGguZHJhd0ltYWdlKG4saSxjLGQsbCl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9Y2FudmFzLndvcmtlci1DZzBma3BEMS5qcy5tYXAK", Bs = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)),
|
|
831
|
+
}, $e = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0IHY9KHQsYSxlKT0+e2NvbnN0IHM9dC9lLG49YS9lO3JldHVybnt6b29tZWRXaWR0aDpzLHpvb21lZEhlaWdodDpufX0sej0oe3BvaW50ZXJYOnQscG9pbnRlclk6YSxpbWFnZURhdGE6ZSx6b29tZWRXaWR0aDpzLHpvb21lZEhlaWdodDpuLGRyYXdXaWR0aDppLGRyYXdIZWlnaHQ6Y30pPT57Y29uc3R7bmF0dXJhbFdpZHRoOmcsbmF0dXJhbEhlaWdodDp1fT1lO2xldCBmPXQvaSpnLXMvMixtPWEvYyp1LW4vMjtjb25zdCB4PU1hdGgubWF4KDAsZy1zKSxPPU1hdGgubWF4KDAsdS1uKTtyZXR1cm4gZj1NYXRoLm1heCgwLE1hdGgubWluKGYseCkpLG09TWF0aC5tYXgoMCxNYXRoLm1pbihtLE8pKSx7em9vbU9mZnNldFg6Zix6b29tT2Zmc2V0WTptfX07bGV0IG8saCxyLGQsbCx3O3NlbGYub25tZXNzYWdlPWFzeW5jIHQ9Pntjb25zdHthY3Rpb246YSxvZmZzY3JlZW46ZSxkZXZpY2VQaXhlbFJhdGlvOnMsaW1hZ2VEYXRhOm4sem9vbVNjYWxlOmkscG9pbnRlclg6Yyxwb2ludGVyWTpnLGltYWdlQXNwZWN0UmF0aW86dSxjb250YWluZXJXaWR0aDpmLGNvbnRhaW5lckhlaWdodDptfT10LmRhdGE7c3dpdGNoKGEpe2Nhc2UiaW5pdENhbnZhcyI6QyhlLHMpO2JyZWFrO2Nhc2UiYWRhcHRDYW52YXNTaXplIjpwKHUsZixtKTticmVhaztjYXNlImRyYXdJbWFnZU9uQ2FudmFzIjpJKG4saSxjLGcpO2JyZWFrfX07Y29uc3QgQz0odCxhKT0+e289dCxoPW8uZ2V0Q29udGV4dCgiMmQiKSxyPWF9LHA9KHQsYSxlKT0+e2NvbnN0IHM9YS9lO3c9dD5zLG8ud2lkdGg9YSpyLG8uaGVpZ2h0PWUqcixoLnNjYWxlKHIsciksdz8oZD1hLGw9YS90KToobD1lLGQ9ZSp0KSxoLmltYWdlU21vb3RoaW5nRW5hYmxlZD0hMCxoLmltYWdlU21vb3RoaW5nUXVhbGl0eT0iaGlnaCJ9LEk9KHQ9e30sYT0xLGU9MCxzPTApPT57Y29uc3R7Yml0bWFwSW1hZ2U6bn09dDtpZighb3x8IW4pcmV0dXJuO2xldCBpLGM7aWYodz8oaT0wLGM9KG8uaGVpZ2h0L3ItbCkvMik6KGk9KG8ud2lkdGgvci1kKS8yLGM9MCksaC5jbGVhclJlY3QoMCwwLG8ud2lkdGgsby5oZWlnaHQpLGEhPT0xKXtjb25zdHtuYXR1cmFsV2lkdGg6ZyxuYXR1cmFsSGVpZ2h0OnV9PXQse3pvb21lZFdpZHRoOmYsem9vbWVkSGVpZ2h0Om19PXYoZyx1LGEpLHt6b29tT2Zmc2V0WDp4LHpvb21PZmZzZXRZOk99PXooe3BvaW50ZXJYOmUscG9pbnRlclk6cyxpbWFnZURhdGE6dCx6b29tZWRXaWR0aDpmLHpvb21lZEhlaWdodDptLGRyYXdXaWR0aDpkLGRyYXdIZWlnaHQ6bH0pO2guZHJhd0ltYWdlKG4seCxPLGYsbSxpLGMsZCxsKX1lbHNlIGguZHJhd0ltYWdlKG4saSxjLGQsbCl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9Y2FudmFzLndvcmtlci1DZzBma3BEMS5qcy5tYXAK", Bs = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), Te = typeof self < "u" && self.Blob && new Blob([Bs($e)], { type: "text/javascript;charset=utf-8" });
|
|
832
832
|
function Ws(e) {
|
|
833
833
|
let t;
|
|
834
834
|
try {
|
|
835
|
-
if (t =
|
|
835
|
+
if (t = Te && (self.URL || self.webkitURL).createObjectURL(Te), !t) throw "";
|
|
836
836
|
const i = new Worker(t, {
|
|
837
837
|
name: e == null ? void 0 : e.name
|
|
838
838
|
});
|
|
@@ -903,7 +903,7 @@ class Fs {
|
|
|
903
903
|
if (!this.canvas || !this.ctx || !n) return;
|
|
904
904
|
let l, r;
|
|
905
905
|
if (this.wideImage ? (l = 0, r = (this.canvas.height / this.dpr - this.drawHeight) / 2) : (l = (this.canvas.width / this.dpr - this.drawWidth) / 2, r = 0), this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height), i !== 1) {
|
|
906
|
-
const { naturalWidth: a, naturalHeight: c } = t, { zoomedWidth: h, zoomedHeight: u } =
|
|
906
|
+
const { naturalWidth: a, naturalHeight: c } = t, { zoomedWidth: h, zoomedHeight: u } = Ts(a, c, i), { zoomOffsetX: f, zoomOffsetY: p } = Ms({
|
|
907
907
|
pointerX: s,
|
|
908
908
|
pointerY: o,
|
|
909
909
|
imageData: t,
|
|
@@ -1129,9 +1129,9 @@ const Vs = /* @__PURE__ */ new Set([
|
|
|
1129
1129
|
}), { ...b, positions: v };
|
|
1130
1130
|
});
|
|
1131
1131
|
};
|
|
1132
|
-
var H = "top", F = "bottom", V = "right", Z = "left", ie = "auto",
|
|
1132
|
+
var H = "top", F = "bottom", V = "right", Z = "left", ie = "auto", Lt = [H, F, V, Z], mt = "start", At = "end", Qs = "clippingParents", Ge = "viewport", Ct = "popper", to = "reference", Pe = /* @__PURE__ */ Lt.reduce(function(e, t) {
|
|
1133
1133
|
return e.concat([t + "-" + mt, t + "-" + At]);
|
|
1134
|
-
}, []), _e = /* @__PURE__ */ [].concat(
|
|
1134
|
+
}, []), _e = /* @__PURE__ */ [].concat(Lt, [ie]).reduce(function(e, t) {
|
|
1135
1135
|
return e.concat([t, t + "-" + mt, t + "-" + At]);
|
|
1136
1136
|
}, []), eo = "beforeRead", io = "read", so = "afterRead", oo = "beforeMain", no = "main", ro = "afterMain", ao = "beforeWrite", lo = "write", co = "afterWrite", ho = [eo, io, so, oo, no, ro, ao, lo, co];
|
|
1137
1137
|
function j(e) {
|
|
@@ -1298,7 +1298,7 @@ function vo(e) {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
return null;
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function kt(e) {
|
|
1302
1302
|
for (var t = B(e), i = Ye(e); i && fo(i) && J(i).position === "static"; )
|
|
1303
1303
|
i = Ye(i);
|
|
1304
1304
|
return i && (j(i) === "html" || j(i) === "body" && J(i).position === "static") ? t : i || vo(e) || t;
|
|
@@ -1332,12 +1332,12 @@ function Qe(e, t) {
|
|
|
1332
1332
|
var yo = function(t, i) {
|
|
1333
1333
|
return t = typeof t == "function" ? t(Object.assign({}, i.rects, {
|
|
1334
1334
|
placement: i.placement
|
|
1335
|
-
})) : t, qe(typeof t != "number" ? t : Qe(t,
|
|
1335
|
+
})) : t, qe(typeof t != "number" ? t : Qe(t, Lt));
|
|
1336
1336
|
};
|
|
1337
1337
|
function bo(e) {
|
|
1338
1338
|
var t, i = e.state, s = e.name, o = e.options, n = i.elements.arrow, l = i.modifiersData.popperOffsets, r = z(i.placement), a = ne(r), c = [Z, V].indexOf(r) >= 0, h = c ? "height" : "width";
|
|
1339
1339
|
if (!(!n || !l)) {
|
|
1340
|
-
var u = yo(o.padding, i), f = oe(n), p = a === "y" ? H : Z, I = a === "y" ? F : V, b = i.rects.reference[h] + i.rects.reference[a] - l[a] - i.rects.popper[h], v = l[a] - i.rects.reference[a], O =
|
|
1340
|
+
var u = yo(o.padding, i), f = oe(n), p = a === "y" ? H : Z, I = a === "y" ? F : V, b = i.rects.reference[h] + i.rects.reference[a] - l[a] - i.rects.popper[h], v = l[a] - i.rects.reference[a], O = kt(n), E = O ? a === "y" ? O.clientHeight || 0 : O.clientWidth || 0 : 0, w = b / 2 - v / 2, y = u[p], x = E - f[h] - u[I], m = E / 2 - f[h] / 2 + w, g = Ot(y, m, x), C = a;
|
|
1341
1341
|
i.modifiersData[s] = (t = {}, t[C] = g, t.centerOffset = g - m, t);
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
@@ -1370,7 +1370,7 @@ function xo(e, t) {
|
|
|
1370
1370
|
y: ft(s * o) / o || 0
|
|
1371
1371
|
};
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Re(e) {
|
|
1374
1374
|
var t, i = e.popper, s = e.popperRect, o = e.placement, n = e.variation, l = e.offsets, r = e.position, a = e.gpuAcceleration, c = e.adaptive, h = e.roundOffsets, u = e.isFixed, f = l.x, p = f === void 0 ? 0 : f, I = l.y, b = I === void 0 ? 0 : I, v = typeof h == "function" ? h({
|
|
1375
1375
|
x: p,
|
|
1376
1376
|
y: b
|
|
@@ -1381,7 +1381,7 @@ function Xe(e) {
|
|
|
1381
1381
|
p = v.x, b = v.y;
|
|
1382
1382
|
var O = l.hasOwnProperty("x"), E = l.hasOwnProperty("y"), w = Z, y = H, x = window;
|
|
1383
1383
|
if (c) {
|
|
1384
|
-
var m =
|
|
1384
|
+
var m = kt(i), g = "clientHeight", C = "clientWidth";
|
|
1385
1385
|
if (m === B(i) && (m = Q(i), J(m).position !== "static" && r === "absolute" && (g = "scrollHeight", C = "scrollWidth")), m = m, o === H || (o === Z || o === V) && n === At) {
|
|
1386
1386
|
y = F;
|
|
1387
1387
|
var A = u && m === x && x.visualViewport ? x.visualViewport.height : (
|
|
@@ -1399,20 +1399,20 @@ function Xe(e) {
|
|
|
1399
1399
|
p -= S - s.width, p *= a ? 1 : -1;
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
|
-
var
|
|
1402
|
+
var k = Object.assign({
|
|
1403
1403
|
position: r
|
|
1404
|
-
}, c && Co),
|
|
1404
|
+
}, c && Co), R = h === !0 ? xo({
|
|
1405
1405
|
x: p,
|
|
1406
1406
|
y: b
|
|
1407
1407
|
}, B(i)) : {
|
|
1408
1408
|
x: p,
|
|
1409
1409
|
y: b
|
|
1410
1410
|
};
|
|
1411
|
-
if (p =
|
|
1412
|
-
var
|
|
1413
|
-
return Object.assign({},
|
|
1411
|
+
if (p = R.x, b = R.y, a) {
|
|
1412
|
+
var T;
|
|
1413
|
+
return Object.assign({}, k, (T = {}, T[y] = E ? "0" : "", T[w] = O ? "0" : "", T.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + b + "px)" : "translate3d(" + p + "px, " + b + "px, 0)", T));
|
|
1414
1414
|
}
|
|
1415
|
-
return Object.assign({},
|
|
1415
|
+
return Object.assign({}, k, (t = {}, t[y] = E ? b + "px" : "", t[w] = O ? p + "px" : "", t.transform = "", t));
|
|
1416
1416
|
}
|
|
1417
1417
|
function Oo(e) {
|
|
1418
1418
|
var t = e.state, i = e.options, s = i.gpuAcceleration, o = s === void 0 ? !0 : s, n = i.adaptive, l = n === void 0 ? !0 : n, r = i.roundOffsets, a = r === void 0 ? !0 : r, c = {
|
|
@@ -1423,12 +1423,12 @@ function Oo(e) {
|
|
|
1423
1423
|
gpuAcceleration: o,
|
|
1424
1424
|
isFixed: t.options.strategy === "fixed"
|
|
1425
1425
|
};
|
|
1426
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper,
|
|
1426
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Re(Object.assign({}, c, {
|
|
1427
1427
|
offsets: t.modifiersData.popperOffsets,
|
|
1428
1428
|
position: t.options.strategy,
|
|
1429
1429
|
adaptive: l,
|
|
1430
1430
|
roundOffsets: a
|
|
1431
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow,
|
|
1431
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Re(Object.assign({}, c, {
|
|
1432
1432
|
offsets: t.modifiersData.arrow,
|
|
1433
1433
|
position: "absolute",
|
|
1434
1434
|
adaptive: !1,
|
|
@@ -1466,7 +1466,7 @@ const So = {
|
|
|
1466
1466
|
effect: Ao,
|
|
1467
1467
|
data: {}
|
|
1468
1468
|
};
|
|
1469
|
-
var
|
|
1469
|
+
var Lo = {
|
|
1470
1470
|
left: "right",
|
|
1471
1471
|
right: "left",
|
|
1472
1472
|
bottom: "top",
|
|
@@ -1474,16 +1474,16 @@ var ko = {
|
|
|
1474
1474
|
};
|
|
1475
1475
|
function Bt(e) {
|
|
1476
1476
|
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
1477
|
-
return
|
|
1477
|
+
return Lo[t];
|
|
1478
1478
|
});
|
|
1479
1479
|
}
|
|
1480
|
-
var
|
|
1480
|
+
var ko = {
|
|
1481
1481
|
start: "end",
|
|
1482
1482
|
end: "start"
|
|
1483
1483
|
};
|
|
1484
|
-
function
|
|
1484
|
+
function Xe(e) {
|
|
1485
1485
|
return e.replace(/start|end/g, function(t) {
|
|
1486
|
-
return
|
|
1486
|
+
return ko[t];
|
|
1487
1487
|
});
|
|
1488
1488
|
}
|
|
1489
1489
|
function re(e) {
|
|
@@ -1496,7 +1496,7 @@ function re(e) {
|
|
|
1496
1496
|
function ae(e) {
|
|
1497
1497
|
return vt(Q(e)).left + re(e).scrollLeft;
|
|
1498
1498
|
}
|
|
1499
|
-
function
|
|
1499
|
+
function To(e, t) {
|
|
1500
1500
|
var i = B(e), s = Q(e), o = i.visualViewport, n = s.clientWidth, l = s.clientHeight, r = 0, a = 0;
|
|
1501
1501
|
if (o) {
|
|
1502
1502
|
n = o.width, l = o.height;
|
|
@@ -1548,15 +1548,15 @@ function Po(e, t) {
|
|
|
1548
1548
|
return i.top = i.top + e.clientTop, i.left = i.left + e.clientLeft, i.bottom = i.top + e.clientHeight, i.right = i.left + e.clientWidth, i.width = e.clientWidth, i.height = e.clientHeight, i.x = i.left, i.y = i.top, i;
|
|
1549
1549
|
}
|
|
1550
1550
|
function He(e, t, i) {
|
|
1551
|
-
return t === Ge ? ee(
|
|
1551
|
+
return t === Ge ? ee(To(e, i)) : st(t) ? Po(t, i) : ee(Mo(Q(e)));
|
|
1552
1552
|
}
|
|
1553
1553
|
function Yo(e) {
|
|
1554
|
-
var t = Et(Nt(e)), i = ["absolute", "fixed"].indexOf(J(e).position) >= 0, s = i && W(e) ?
|
|
1554
|
+
var t = Et(Nt(e)), i = ["absolute", "fixed"].indexOf(J(e).position) >= 0, s = i && W(e) ? kt(e) : e;
|
|
1555
1555
|
return st(s) ? t.filter(function(o) {
|
|
1556
1556
|
return st(o) && Ke(o, s) && j(o) !== "body";
|
|
1557
1557
|
}) : [];
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1559
|
+
function Ro(e, t, i, s) {
|
|
1560
1560
|
var o = t === "clippingParents" ? Yo(e) : [].concat(t), n = [].concat(o, [i]), l = n[0], r = n.reduce(function(a, c) {
|
|
1561
1561
|
var h = He(e, c, s);
|
|
1562
1562
|
return a.top = it(h.top, a.top), a.right = Ft(h.right, a.right), a.bottom = Ft(h.bottom, a.bottom), a.left = it(h.left, a.left), a;
|
|
@@ -1612,7 +1612,7 @@ function ei(e) {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
function St(e, t) {
|
|
1614
1614
|
t === void 0 && (t = {});
|
|
1615
|
-
var i = t, s = i.placement, o = s === void 0 ? e.placement : s, n = i.strategy, l = n === void 0 ? e.strategy : n, r = i.boundary, a = r === void 0 ? Qs : r, c = i.rootBoundary, h = c === void 0 ? Ge : c, u = i.elementContext, f = u === void 0 ? Ct : u, p = i.altBoundary, I = p === void 0 ? !1 : p, b = i.padding, v = b === void 0 ? 0 : b, O = qe(typeof v != "number" ? v : Qe(v,
|
|
1615
|
+
var i = t, s = i.placement, o = s === void 0 ? e.placement : s, n = i.strategy, l = n === void 0 ? e.strategy : n, r = i.boundary, a = r === void 0 ? Qs : r, c = i.rootBoundary, h = c === void 0 ? Ge : c, u = i.elementContext, f = u === void 0 ? Ct : u, p = i.altBoundary, I = p === void 0 ? !1 : p, b = i.padding, v = b === void 0 ? 0 : b, O = qe(typeof v != "number" ? v : Qe(v, Lt)), E = f === Ct ? to : Ct, w = e.rects.popper, y = e.elements[I ? E : f], x = Ro(st(y) ? y : y.contextElement || Q(e.elements.popper), a, h, l), m = vt(e.elements.reference), g = ei({
|
|
1616
1616
|
reference: m,
|
|
1617
1617
|
element: w,
|
|
1618
1618
|
placement: o
|
|
@@ -1621,21 +1621,21 @@ function St(e, t) {
|
|
|
1621
1621
|
bottom: A.bottom - x.bottom + O.bottom,
|
|
1622
1622
|
left: x.left - A.left + O.left,
|
|
1623
1623
|
right: A.right - x.right + O.right
|
|
1624
|
-
},
|
|
1625
|
-
if (f === Ct &&
|
|
1626
|
-
var
|
|
1627
|
-
Object.keys(S).forEach(function(
|
|
1628
|
-
var $ = [V, F].indexOf(
|
|
1629
|
-
S[
|
|
1624
|
+
}, k = e.modifiersData.offset;
|
|
1625
|
+
if (f === Ct && k) {
|
|
1626
|
+
var R = k[o];
|
|
1627
|
+
Object.keys(S).forEach(function(T) {
|
|
1628
|
+
var $ = [V, F].indexOf(T) >= 0 ? 1 : -1, G = [H, F].indexOf(T) >= 0 ? "y" : "x";
|
|
1629
|
+
S[T] += R[G] * $;
|
|
1630
1630
|
});
|
|
1631
1631
|
}
|
|
1632
1632
|
return S;
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function Xo(e, t) {
|
|
1635
1635
|
t === void 0 && (t = {});
|
|
1636
1636
|
var i = t, s = i.placement, o = i.boundary, n = i.rootBoundary, l = i.padding, r = i.flipVariations, a = i.allowedAutoPlacements, c = a === void 0 ? _e : a, h = gt(s), u = h ? r ? Pe : Pe.filter(function(I) {
|
|
1637
1637
|
return gt(I) === h;
|
|
1638
|
-
}) :
|
|
1638
|
+
}) : Lt, f = u.filter(function(I) {
|
|
1639
1639
|
return c.indexOf(I) >= 0;
|
|
1640
1640
|
});
|
|
1641
1641
|
f.length === 0 && (f = u);
|
|
@@ -1655,13 +1655,13 @@ function Ho(e) {
|
|
|
1655
1655
|
if (z(e) === ie)
|
|
1656
1656
|
return [];
|
|
1657
1657
|
var t = Bt(e);
|
|
1658
|
-
return [
|
|
1658
|
+
return [Xe(e), t, Xe(t)];
|
|
1659
1659
|
}
|
|
1660
1660
|
function Zo(e) {
|
|
1661
1661
|
var t = e.state, i = e.options, s = e.name;
|
|
1662
1662
|
if (!t.modifiersData[s]._skip) {
|
|
1663
1663
|
for (var o = i.mainAxis, n = o === void 0 ? !0 : o, l = i.altAxis, r = l === void 0 ? !0 : l, a = i.fallbackPlacements, c = i.padding, h = i.boundary, u = i.rootBoundary, f = i.altBoundary, p = i.flipVariations, I = p === void 0 ? !0 : p, b = i.allowedAutoPlacements, v = t.options.placement, O = z(v), E = O === v, w = a || (E || !I ? [Bt(v)] : Ho(v)), y = [v].concat(w).reduce(function(q, N) {
|
|
1664
|
-
return q.concat(z(N) === ie ?
|
|
1664
|
+
return q.concat(z(N) === ie ? Xo(t, {
|
|
1665
1665
|
placement: N,
|
|
1666
1666
|
boundary: h,
|
|
1667
1667
|
rootBoundary: u,
|
|
@@ -1670,22 +1670,22 @@ function Zo(e) {
|
|
|
1670
1670
|
allowedAutoPlacements: b
|
|
1671
1671
|
}) : N);
|
|
1672
1672
|
}, []), x = t.rects.reference, m = t.rects.popper, g = /* @__PURE__ */ new Map(), C = !0, A = y[0], S = 0; S < y.length; S++) {
|
|
1673
|
-
var
|
|
1674
|
-
placement:
|
|
1673
|
+
var k = y[S], R = z(k), T = gt(k) === mt, $ = [H, F].indexOf(R) >= 0, G = $ ? "width" : "height", M = St(t, {
|
|
1674
|
+
placement: k,
|
|
1675
1675
|
boundary: h,
|
|
1676
1676
|
rootBoundary: u,
|
|
1677
1677
|
altBoundary: f,
|
|
1678
1678
|
padding: c
|
|
1679
|
-
}), D = $ ?
|
|
1679
|
+
}), D = $ ? T ? V : Z : T ? F : H;
|
|
1680
1680
|
x[G] > m[G] && (D = Bt(D));
|
|
1681
1681
|
var ot = Bt(D), _ = [];
|
|
1682
|
-
if (n && _.push(M[
|
|
1682
|
+
if (n && _.push(M[R] <= 0), r && _.push(M[D] <= 0, M[ot] <= 0), _.every(function(q) {
|
|
1683
1683
|
return q;
|
|
1684
1684
|
})) {
|
|
1685
|
-
A =
|
|
1685
|
+
A = k, C = !1;
|
|
1686
1686
|
break;
|
|
1687
1687
|
}
|
|
1688
|
-
g.set(
|
|
1688
|
+
g.set(k, _);
|
|
1689
1689
|
}
|
|
1690
1690
|
if (C)
|
|
1691
1691
|
for (var nt = I ? 3 : 1, yt = function(N) {
|
|
@@ -1811,23 +1811,23 @@ function Go(e) {
|
|
|
1811
1811
|
} : Object.assign({
|
|
1812
1812
|
mainAxis: 0,
|
|
1813
1813
|
altAxis: 0
|
|
1814
|
-
}, A),
|
|
1814
|
+
}, A), k = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, R = {
|
|
1815
1815
|
x: 0,
|
|
1816
1816
|
y: 0
|
|
1817
1817
|
};
|
|
1818
1818
|
if (m) {
|
|
1819
1819
|
if (n) {
|
|
1820
|
-
var
|
|
1820
|
+
var T, $ = y === "y" ? H : Z, G = y === "y" ? F : V, M = y === "y" ? "height" : "width", D = m[y], ot = D + v[$], _ = D - v[G], nt = p ? -C[M] / 2 : 0, yt = E === mt ? g[M] : C[M], tt = E === mt ? -C[M] : -g[M], rt = t.elements.arrow, q = p && rt ? oe(rt) : {
|
|
1821
1821
|
width: 0,
|
|
1822
1822
|
height: 0
|
|
1823
|
-
}, N = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Je(), et = N[$], at = N[G], U = Ot(0, g[M], q[M]), lt = w ? g[M] / 2 - nt - U - et - S.mainAxis : yt - U - et - S.mainAxis, zt = w ? -g[M] / 2 + nt + U + at + S.mainAxis : tt + U + at + S.mainAxis, ct = t.elements.arrow &&
|
|
1824
|
-
m[y] = Mt,
|
|
1823
|
+
}, N = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Je(), et = N[$], at = N[G], U = Ot(0, g[M], q[M]), lt = w ? g[M] / 2 - nt - U - et - S.mainAxis : yt - U - et - S.mainAxis, zt = w ? -g[M] / 2 + nt + U + at + S.mainAxis : tt + U + at + S.mainAxis, ct = t.elements.arrow && kt(t.elements.arrow), jt = ct ? y === "y" ? ct.clientTop || 0 : ct.clientLeft || 0 : 0, Tt = (T = k == null ? void 0 : k[y]) != null ? T : 0, $t = D + lt - Tt - jt, Gt = D + zt - Tt, Mt = Ot(p ? Ft(ot, $t) : ot, D, p ? it(_, Gt) : _);
|
|
1824
|
+
m[y] = Mt, R[y] = Mt - D;
|
|
1825
1825
|
}
|
|
1826
1826
|
if (r) {
|
|
1827
|
-
var Pt, _t = y === "x" ? H : Z, Ut = y === "x" ? F : V, K = m[x], ht = x === "y" ? "height" : "width", Yt = K + v[_t],
|
|
1828
|
-
m[x] = wt,
|
|
1827
|
+
var Pt, _t = y === "x" ? H : Z, Ut = y === "x" ? F : V, K = m[x], ht = x === "y" ? "height" : "width", Yt = K + v[_t], Rt = K - v[Ut], dt = [H, Z].indexOf(O) !== -1, ut = (Pt = k == null ? void 0 : k[x]) != null ? Pt : 0, pt = dt ? Yt : K - g[ht] - C[ht] - ut + S.altAxis, bt = dt ? K + g[ht] + C[ht] - ut - S.altAxis : Rt, wt = p && dt ? go(pt, K, bt) : Ot(p ? pt : Yt, K, p ? bt : Rt);
|
|
1828
|
+
m[x] = wt, R[x] = wt - K;
|
|
1829
1829
|
}
|
|
1830
|
-
t.modifiersData[s] =
|
|
1830
|
+
t.modifiersData[s] = R;
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
1833
|
const _o = {
|
|
@@ -1967,7 +1967,7 @@ function on(e) {
|
|
|
1967
1967
|
var O = h.elements, E = O.reference, w = O.popper;
|
|
1968
1968
|
if (We(E, w)) {
|
|
1969
1969
|
h.rects = {
|
|
1970
|
-
reference: qo(E,
|
|
1970
|
+
reference: qo(E, kt(w), h.options.strategy === "fixed"),
|
|
1971
1971
|
popper: oe(w)
|
|
1972
1972
|
}, h.reset = !1, h.placement = h.options.placement, h.orderedModifiers.forEach(function(S) {
|
|
1973
1973
|
return h.modifiersData[S.name] = Object.assign({}, S.data);
|
|
@@ -2210,7 +2210,7 @@ class Vt {
|
|
|
2210
2210
|
this.inertiaAnimationId = null;
|
|
2211
2211
|
return;
|
|
2212
2212
|
}
|
|
2213
|
-
const a = this.velocityX * 16, c = this.velocityY * 16, h =
|
|
2213
|
+
const a = this.velocityX * 16, c = this.velocityY * 16, h = ke({
|
|
2214
2214
|
deltaX: a,
|
|
2215
2215
|
deltaY: c,
|
|
2216
2216
|
reversed: this.dragReverse,
|
|
@@ -2232,7 +2232,7 @@ class Vt {
|
|
|
2232
2232
|
const f = performance.now(), p = f - this.lastDragTime;
|
|
2233
2233
|
p > 0 && p < 100 && (this.velocityX = (t - this.lastDragX) / p, this.velocityY = (i - this.lastDragY) / p), this.lastDragTime = f, this.lastDragX = t, this.lastDragY = i;
|
|
2234
2234
|
}
|
|
2235
|
-
this.draggingDirection =
|
|
2235
|
+
this.draggingDirection = ke({
|
|
2236
2236
|
deltaX: s,
|
|
2237
2237
|
deltaY: o,
|
|
2238
2238
|
reversed: this.dragReverse,
|
|
@@ -2242,7 +2242,7 @@ class Vt {
|
|
|
2242
2242
|
const n = this.fullscreenView ? document.body : this.container, l = this.dragSpeed / ve, r = l * (this.amountX / n.offsetWidth), a = l * (this.amountY / n.offsetHeight), c = this.allowSpinX ? Math.abs(Math.round(s * r)) : 0, h = this.allowSpinY ? Math.abs(Math.round(o * a)) : 0;
|
|
2243
2243
|
(this.allowSpinX && c !== 0 || this.allowSpinY && h !== 0) && (this.hasInteracted = !0, this.hideHotspotPopper(), this.onMoveHandler(this.draggingDirection, c, h), this.movementStart = { x: t, y: i }, setTimeout(() => {
|
|
2244
2244
|
this.isDragging || (this.isDragging = !0, this.emit("onDragStart"));
|
|
2245
|
-
},
|
|
2245
|
+
}, Ti));
|
|
2246
2246
|
}
|
|
2247
2247
|
mouseMove(t) {
|
|
2248
2248
|
!this.isReady || !this.isClicked && !this.isZoomed || this.glass || (this.isZoomed || this.hideAllIcons(), this.drag(t.pageX, t.pageY), this.isZoomed && this.applyZoom(t));
|
|
@@ -2326,7 +2326,7 @@ class Vt {
|
|
|
2326
2326
|
this.isZoomed && this.removeZoom();
|
|
2327
2327
|
}
|
|
2328
2328
|
applyZoom(t) {
|
|
2329
|
-
const { offsetX: i, offsetY: s } =
|
|
2329
|
+
const { offsetX: i, offsetY: s } = ks(t, this.canvas, this.devicePixelRatio);
|
|
2330
2330
|
this.isZoomed || (this.isZoomed = !0, this.hideAllIcons(), this.hideLoadingSpinner(), this.hideTransitionOverlay(), this.showZoomOutIcon(), this.emit("onZoomIn", { zoomLevel: this.pointerZoom }), this.announce("Zoomed in. Move mouse to pan. Click to zoom out.")), this.updateView(this.pointerZoom, i, s);
|
|
2331
2331
|
}
|
|
2332
2332
|
touchOutside(t) {
|
|
@@ -2406,7 +2406,7 @@ class Vt {
|
|
|
2406
2406
|
keyDown(t) {
|
|
2407
2407
|
if (!this.isReady) return;
|
|
2408
2408
|
const { keyCode: i } = t, s = this.keysReverse;
|
|
2409
|
-
switch (this.autoplay && this.stopAutoplay(),
|
|
2409
|
+
switch (this.autoplay && this.stopAutoplay(), Le(i, this.allowSpinY) && (this.hasInteracted = !0, this.hideAllIcons(), this.hideHints()), i) {
|
|
2410
2410
|
case 37:
|
|
2411
2411
|
s ? this.moveLeft() : this.moveRight();
|
|
2412
2412
|
break;
|
|
@@ -2423,7 +2423,7 @@ class Vt {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
keyUp(t) {
|
|
2425
2425
|
const { keyCode: i } = t;
|
|
2426
|
-
|
|
2426
|
+
Le(i, this.allowSpinY) && this.showAllIcons();
|
|
2427
2427
|
}
|
|
2428
2428
|
moveActiveXIndexUp(t) {
|
|
2429
2429
|
this.orientation = Y.X, this.activeImageX = (this.activeImageX + t) % this.amountX;
|
|
@@ -2519,7 +2519,7 @@ class Vt {
|
|
|
2519
2519
|
t.stopPropagation();
|
|
2520
2520
|
const { src: i } = this.orientation === Y.Y ? this.imagesY[this.activeImageY] : this.imagesX[this.activeImageX], o = (this.fullscreenView ? document.body : this.container).offsetWidth * this.magnifier, n = Vi(i, o);
|
|
2521
2521
|
this.showLoadingSpinner(), this.createGlass(), As(n, (a) => {
|
|
2522
|
-
this.hideLoadingSpinner(), this.magnified = !0,
|
|
2522
|
+
this.hideLoadingSpinner(), this.magnified = !0, Ls(t, this.innerBox, this.offset, a, this.glass, this.magnifier);
|
|
2523
2523
|
}, (a) => {
|
|
2524
2524
|
this.hideLoadingSpinner(), this.removeGlass(), this.emit("onError", {
|
|
2525
2525
|
error: { message: a.message, url: a.url },
|
|
@@ -2532,12 +2532,14 @@ class Vt {
|
|
|
2532
2532
|
openFullscreenModal(t) {
|
|
2533
2533
|
t.stopPropagation(), this.hideHotspotPopper(), this.releaseMemory(), window.document.body.style.overflow = "hidden";
|
|
2534
2534
|
const i = os(this.container);
|
|
2535
|
-
this.fullscreenInstance = new Vt(i, this.viewerConfig, !0), this.fullscreenInstance.originalViewer = this, this.
|
|
2535
|
+
this.fullscreenInstance = new Vt(i, this.viewerConfig, !0), this.fullscreenInstance.originalViewer = this, this.boundResizeHandler = () => {
|
|
2536
|
+
this.fullscreenInstance && this.closeFullscreenModal(new Event("resize"));
|
|
2537
|
+
}, window.addEventListener("resize", this.boundResizeHandler), this.emit("onFullscreenOpen"), this.announce("Opened fullscreen mode. Press Escape to exit.");
|
|
2536
2538
|
}
|
|
2537
2539
|
closeFullscreenModal(t) {
|
|
2538
2540
|
t.stopPropagation();
|
|
2539
2541
|
const i = this.originalViewer || this, s = this.fullscreenView ? this : i.fullscreenInstance;
|
|
2540
|
-
if (s) {
|
|
2542
|
+
if (i.boundResizeHandler && (window.removeEventListener("resize", i.boundResizeHandler), i.boundResizeHandler = null), s) {
|
|
2541
2543
|
s.hideHotspotPopper();
|
|
2542
2544
|
const o = s.container.parentNode;
|
|
2543
2545
|
o && o.parentNode && o.parentNode.removeChild(o), s.destroy(), i.fullscreenInstance && (i.fullscreenInstance = null);
|
|
@@ -2565,7 +2567,7 @@ class Vt {
|
|
|
2565
2567
|
this.stopAutoplay();
|
|
2566
2568
|
return;
|
|
2567
2569
|
}
|
|
2568
|
-
|
|
2570
|
+
Rs({
|
|
2569
2571
|
autoplayBehavior: this.autoplayBehavior,
|
|
2570
2572
|
activeImageX: this.activeImageX,
|
|
2571
2573
|
activeImageY: this.activeImageY,
|
|
@@ -2809,7 +2811,7 @@ class Vt {
|
|
|
2809
2811
|
this.isReady && (this.stopAutoplay(), qt(this.innerBox, ".cloudimage-360-icons-container"), this.init(this.container, t, !0), this.iconsContainer = be(this.innerBox), this.onAllImagesLoaded());
|
|
2810
2812
|
}
|
|
2811
2813
|
init(t, i, s) {
|
|
2812
|
-
const o = i ? Zi(i) :
|
|
2814
|
+
const o = i ? Zi(i) : Xi(t), {
|
|
2813
2815
|
folder: n,
|
|
2814
2816
|
apiVersion: l,
|
|
2815
2817
|
filenameX: r,
|
|
@@ -2832,9 +2834,9 @@ class Vt {
|
|
|
2832
2834
|
fullscreen: C,
|
|
2833
2835
|
magnifier: A,
|
|
2834
2836
|
ciToken: S,
|
|
2835
|
-
ciFilters:
|
|
2836
|
-
ciTransformation:
|
|
2837
|
-
lazyload:
|
|
2837
|
+
ciFilters: k,
|
|
2838
|
+
ciTransformation: R,
|
|
2839
|
+
lazyload: T,
|
|
2838
2840
|
dragSpeed: $,
|
|
2839
2841
|
stopAtEdges: G,
|
|
2840
2842
|
pointerZoom: M,
|
|
@@ -2855,7 +2857,7 @@ class Vt {
|
|
|
2855
2857
|
aspectRatio: ct,
|
|
2856
2858
|
// Event callbacks
|
|
2857
2859
|
onReady: jt,
|
|
2858
|
-
onLoad:
|
|
2860
|
+
onLoad: Tt,
|
|
2859
2861
|
onSpin: $t,
|
|
2860
2862
|
onAutoplayStart: Gt,
|
|
2861
2863
|
onAutoplayStop: Mt,
|
|
@@ -2865,9 +2867,9 @@ class Vt {
|
|
|
2865
2867
|
onZoomOut: K,
|
|
2866
2868
|
onDragStart: ht,
|
|
2867
2869
|
onDragEnd: Yt,
|
|
2868
|
-
onError:
|
|
2869
|
-
} = o, dt = { ciToken: S, ciFilters:
|
|
2870
|
-
if (this.viewerConfig = o, this.amountX = ut.length || f, this.amountY = pt.length || p, this.allowSpinX = !!this.amountX, this.allowSpinY = !!this.amountY, this.activeImageX = g ? this.amountX - 1 : 0, this.activeImageY = g ? this.amountY - 1 : 0, this.bottomCircleOffset = E, this.autoplay = w, this.autoplayBehavior = y, this.playOnce = x, this.speed = m, this.autoplayReverse = g, this.fullscreen = C, this.magnifier = A > 1 ? Math.min(A,
|
|
2870
|
+
onError: Rt
|
|
2871
|
+
} = o, dt = { ciToken: S, ciFilters: k, ciTransformation: R }, ut = Qt(c, []), pt = Qt(h, []);
|
|
2872
|
+
if (this.viewerConfig = o, this.amountX = ut.length || f, this.amountY = pt.length || p, this.allowSpinX = !!this.amountX, this.allowSpinY = !!this.amountY, this.activeImageX = g ? this.amountX - 1 : 0, this.activeImageY = g ? this.amountY - 1 : 0, this.bottomCircleOffset = E, this.autoplay = w, this.autoplayBehavior = y, this.playOnce = x, this.speed = m, this.autoplayReverse = g, this.fullscreen = C, this.magnifier = A > 1 ? Math.min(A, Ri) : 0, this.dragSpeed = Math.max($, Yi), this.stopAtEdges = G, this.ciParams = dt, this.apiVersion = l, this.pointerZoom = M > 1 ? Math.min(M, ge) : null, this.pointerZoomTrigger = D, this.keysReverse = O, this.info = ot, this.keys = v, this.innerBox = this.innerBox ?? ts(this.container), ct && (this.container.style.aspectRatio = ct), this.initialIconShown = _, this.bottomCircle = nt, this.spinDirection = Xs(this.autoplayBehavior, this.allowSpinX, this.allowSpinY), this.dragReverse = rt, this.hotspots = yt, this.hotspotTrigger = tt, this.hide360Logo = q, this.logoSrc = N, this.inertia = et, this.pinchZoom = at, this.hints = U, this.hotspotTimelineOnClick = zt, lt === "dark" ? this.container.classList.add("ci360-theme-dark") : lt === "light" && this.container.classList.remove("ci360-theme-dark"), this.onReady = jt, this.onLoad = Tt, this.onSpin = $t, this.onAutoplayStart = Gt, this.onAutoplayStop = Mt, this.onFullscreenOpen = Pt, this.onFullscreenClose = _t, this.onZoomIn = Ut, this.onZoomOut = K, this.onDragStart = ht, this.onDragEnd = Yt, this.onError = Rt, this.srcXConfig = {
|
|
2871
2873
|
folder: n,
|
|
2872
2874
|
filename: r,
|
|
2873
2875
|
imageList: ut,
|
|
@@ -2875,7 +2877,7 @@ class Vt {
|
|
|
2875
2877
|
innerBox: this.innerBox,
|
|
2876
2878
|
apiVersion: l,
|
|
2877
2879
|
ciParams: dt,
|
|
2878
|
-
lazyload:
|
|
2880
|
+
lazyload: T,
|
|
2879
2881
|
amount: this.amountX,
|
|
2880
2882
|
indexZeroBase: u,
|
|
2881
2883
|
autoplayReverse: g,
|
|
@@ -2994,4 +2996,4 @@ class cn {
|
|
|
2994
2996
|
export {
|
|
2995
2997
|
cn as default
|
|
2996
2998
|
};
|
|
2997
|
-
//# sourceMappingURL=ci360-
|
|
2999
|
+
//# sourceMappingURL=ci360-xUK7dmd6.mjs.map
|