js-cloudimage-360-view 4.3.1 → 4.3.3
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/README.md +1 -1
- package/dist/js-cloudimage-360-view.min.js +3 -3
- package/dist/react/{ci360-C-RVZ3Va.js → ci360-Bv2kRtqP.js} +4 -4
- package/dist/react/ci360-Bv2kRtqP.js.map +1 -0
- package/dist/react/{ci360-CzKohD8_.mjs → ci360-xUK7dmd6.mjs} +131 -128
- package/dist/react/ci360-xUK7dmd6.mjs.map +1 -0
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
- package/dist/react/ci360-C-RVZ3Va.js.map +0 -1
- package/dist/react/ci360-CzKohD8_.mjs.map +0 -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
|
});
|
|
@@ -617,6 +617,7 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
617
617
|
e && e.classList.remove("visible");
|
|
618
618
|
}, Qt = (e, t = []) => {
|
|
619
619
|
if (!e) return t;
|
|
620
|
+
if (Array.isArray(e)) return e;
|
|
620
621
|
try {
|
|
621
622
|
return JSON.parse(e);
|
|
622
623
|
} catch (i) {
|
|
@@ -712,7 +713,7 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
712
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`;
|
|
713
714
|
const p = (u - a) * l - o + r, I = (f - c) * l - n + r;
|
|
714
715
|
i.style.backgroundPosition = `-${p}px -${I}px`;
|
|
715
|
-
},
|
|
716
|
+
}, Ls = (e, t, i, s, o, n) => {
|
|
716
717
|
const { x: l = 0, y: r = 0 } = i || {}, a = (t.offsetWidth - l * 2) * n, c = (t.offsetHeight - r * 2) * n;
|
|
717
718
|
if (!o) return;
|
|
718
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`;
|
|
@@ -732,10 +733,10 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
732
733
|
v.preventDefault(), Jt(v, p, o);
|
|
733
734
|
};
|
|
734
735
|
o.addEventListener("mousemove", I), t.addEventListener("mousemove", I), t.addEventListener("touchmove", b);
|
|
735
|
-
},
|
|
736
|
+
}, ks = (e, t, i) => {
|
|
736
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;
|
|
737
738
|
return { offsetX: a, offsetY: c };
|
|
738
|
-
},
|
|
739
|
+
}, Ts = (e, t, i) => {
|
|
739
740
|
const s = e / i, o = t / i;
|
|
740
741
|
return { zoomedWidth: s, zoomedHeight: o };
|
|
741
742
|
}, Ms = ({
|
|
@@ -757,14 +758,14 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
757
758
|
e ? t() : i();
|
|
758
759
|
}, Ps = ({ autoplayBehavior: e, spinY: t, reversed: i, loopTriggers: s }) => {
|
|
759
760
|
switch (e) {
|
|
760
|
-
case
|
|
761
|
-
case
|
|
761
|
+
case X.SPIN_XY:
|
|
762
|
+
case X.SPIN_YX:
|
|
762
763
|
t ? Ae(i, s) : Se(i, s);
|
|
763
764
|
break;
|
|
764
|
-
case
|
|
765
|
+
case X.SPIN_Y:
|
|
765
766
|
Ae(i, s);
|
|
766
767
|
break;
|
|
767
|
-
case
|
|
768
|
+
case X.SPIN_X:
|
|
768
769
|
default:
|
|
769
770
|
Se(i, s);
|
|
770
771
|
}
|
|
@@ -781,15 +782,15 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
781
782
|
return n ? r === 0 : r === c;
|
|
782
783
|
};
|
|
783
784
|
switch (e) {
|
|
784
|
-
case
|
|
785
|
-
case
|
|
785
|
+
case X.SPIN_XY:
|
|
786
|
+
case X.SPIN_Y:
|
|
786
787
|
return l(i, o);
|
|
787
|
-
case
|
|
788
|
-
case
|
|
788
|
+
case X.SPIN_X:
|
|
789
|
+
case X.SPIN_YX:
|
|
789
790
|
default:
|
|
790
791
|
return l(t, s);
|
|
791
792
|
}
|
|
792
|
-
},
|
|
793
|
+
}, Rs = ({
|
|
793
794
|
autoplayBehavior: e,
|
|
794
795
|
activeImageX: t,
|
|
795
796
|
activeImageY: i,
|
|
@@ -799,25 +800,25 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
799
800
|
spinDirection: l
|
|
800
801
|
}) => {
|
|
801
802
|
const r = t === (n ? 0 : s - 1), a = i === (n ? 0 : o - 1);
|
|
802
|
-
return e ===
|
|
803
|
-
},
|
|
803
|
+
return e === X.SPIN_XY || e === X.SPIN_YX ? l === "x" && r || l === "y" && a : !1;
|
|
804
|
+
}, Xs = (e, t, i) => {
|
|
804
805
|
if (!i) return "x";
|
|
805
806
|
if (!t) return "y";
|
|
806
807
|
switch (e) {
|
|
807
|
-
case
|
|
808
|
+
case X.SPIN_XY:
|
|
808
809
|
return "x";
|
|
809
|
-
case
|
|
810
|
+
case X.SPIN_YX:
|
|
810
811
|
return "y";
|
|
811
|
-
case
|
|
812
|
+
case X.SPIN_Y:
|
|
812
813
|
return "y";
|
|
813
|
-
case
|
|
814
|
+
case X.SPIN_X:
|
|
814
815
|
default:
|
|
815
816
|
return "x";
|
|
816
817
|
}
|
|
817
|
-
}, Hs = (e) => e === "x" ? "y" : "x",
|
|
818
|
+
}, Hs = (e) => e === "x" ? "y" : "x", Le = (e, t) => {
|
|
818
819
|
const i = [...Si];
|
|
819
|
-
return t ? [...i, ...
|
|
820
|
-
},
|
|
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 }) => {
|
|
821
822
|
const l = s && !o || o && !s ? 0 : n, r = Math.abs(e), a = Math.abs(t);
|
|
822
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;
|
|
823
824
|
}, Zs = () => "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0, Ds = (e, t = 150) => {
|
|
@@ -827,11 +828,11 @@ const me = /* @__PURE__ */ ai(Ei), R = {
|
|
|
827
828
|
e.apply(this, s);
|
|
828
829
|
}, t);
|
|
829
830
|
};
|
|
830
|
-
}, $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" });
|
|
831
832
|
function Ws(e) {
|
|
832
833
|
let t;
|
|
833
834
|
try {
|
|
834
|
-
if (t =
|
|
835
|
+
if (t = Te && (self.URL || self.webkitURL).createObjectURL(Te), !t) throw "";
|
|
835
836
|
const i = new Worker(t, {
|
|
836
837
|
name: e == null ? void 0 : e.name
|
|
837
838
|
});
|
|
@@ -902,7 +903,7 @@ class Fs {
|
|
|
902
903
|
if (!this.canvas || !this.ctx || !n) return;
|
|
903
904
|
let l, r;
|
|
904
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) {
|
|
905
|
-
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({
|
|
906
907
|
pointerX: s,
|
|
907
908
|
pointerY: o,
|
|
908
909
|
imageData: t,
|
|
@@ -1128,9 +1129,9 @@ const Vs = /* @__PURE__ */ new Set([
|
|
|
1128
1129
|
}), { ...b, positions: v };
|
|
1129
1130
|
});
|
|
1130
1131
|
};
|
|
1131
|
-
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) {
|
|
1132
1133
|
return e.concat([t + "-" + mt, t + "-" + At]);
|
|
1133
|
-
}, []), _e = /* @__PURE__ */ [].concat(
|
|
1134
|
+
}, []), _e = /* @__PURE__ */ [].concat(Lt, [ie]).reduce(function(e, t) {
|
|
1134
1135
|
return e.concat([t, t + "-" + mt, t + "-" + At]);
|
|
1135
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];
|
|
1136
1137
|
function j(e) {
|
|
@@ -1297,7 +1298,7 @@ function vo(e) {
|
|
|
1297
1298
|
}
|
|
1298
1299
|
return null;
|
|
1299
1300
|
}
|
|
1300
|
-
function
|
|
1301
|
+
function kt(e) {
|
|
1301
1302
|
for (var t = B(e), i = Ye(e); i && fo(i) && J(i).position === "static"; )
|
|
1302
1303
|
i = Ye(i);
|
|
1303
1304
|
return i && (j(i) === "html" || j(i) === "body" && J(i).position === "static") ? t : i || vo(e) || t;
|
|
@@ -1331,12 +1332,12 @@ function Qe(e, t) {
|
|
|
1331
1332
|
var yo = function(t, i) {
|
|
1332
1333
|
return t = typeof t == "function" ? t(Object.assign({}, i.rects, {
|
|
1333
1334
|
placement: i.placement
|
|
1334
|
-
})) : t, qe(typeof t != "number" ? t : Qe(t,
|
|
1335
|
+
})) : t, qe(typeof t != "number" ? t : Qe(t, Lt));
|
|
1335
1336
|
};
|
|
1336
1337
|
function bo(e) {
|
|
1337
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";
|
|
1338
1339
|
if (!(!n || !l)) {
|
|
1339
|
-
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;
|
|
1340
1341
|
i.modifiersData[s] = (t = {}, t[C] = g, t.centerOffset = g - m, t);
|
|
1341
1342
|
}
|
|
1342
1343
|
}
|
|
@@ -1369,7 +1370,7 @@ function xo(e, t) {
|
|
|
1369
1370
|
y: ft(s * o) / o || 0
|
|
1370
1371
|
};
|
|
1371
1372
|
}
|
|
1372
|
-
function
|
|
1373
|
+
function Re(e) {
|
|
1373
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({
|
|
1374
1375
|
x: p,
|
|
1375
1376
|
y: b
|
|
@@ -1380,7 +1381,7 @@ function Xe(e) {
|
|
|
1380
1381
|
p = v.x, b = v.y;
|
|
1381
1382
|
var O = l.hasOwnProperty("x"), E = l.hasOwnProperty("y"), w = Z, y = H, x = window;
|
|
1382
1383
|
if (c) {
|
|
1383
|
-
var m =
|
|
1384
|
+
var m = kt(i), g = "clientHeight", C = "clientWidth";
|
|
1384
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) {
|
|
1385
1386
|
y = F;
|
|
1386
1387
|
var A = u && m === x && x.visualViewport ? x.visualViewport.height : (
|
|
@@ -1398,20 +1399,20 @@ function Xe(e) {
|
|
|
1398
1399
|
p -= S - s.width, p *= a ? 1 : -1;
|
|
1399
1400
|
}
|
|
1400
1401
|
}
|
|
1401
|
-
var
|
|
1402
|
+
var k = Object.assign({
|
|
1402
1403
|
position: r
|
|
1403
|
-
}, c && Co),
|
|
1404
|
+
}, c && Co), R = h === !0 ? xo({
|
|
1404
1405
|
x: p,
|
|
1405
1406
|
y: b
|
|
1406
1407
|
}, B(i)) : {
|
|
1407
1408
|
x: p,
|
|
1408
1409
|
y: b
|
|
1409
1410
|
};
|
|
1410
|
-
if (p =
|
|
1411
|
-
var
|
|
1412
|
-
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));
|
|
1413
1414
|
}
|
|
1414
|
-
return Object.assign({},
|
|
1415
|
+
return Object.assign({}, k, (t = {}, t[y] = E ? b + "px" : "", t[w] = O ? p + "px" : "", t.transform = "", t));
|
|
1415
1416
|
}
|
|
1416
1417
|
function Oo(e) {
|
|
1417
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 = {
|
|
@@ -1422,12 +1423,12 @@ function Oo(e) {
|
|
|
1422
1423
|
gpuAcceleration: o,
|
|
1423
1424
|
isFixed: t.options.strategy === "fixed"
|
|
1424
1425
|
};
|
|
1425
|
-
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, {
|
|
1426
1427
|
offsets: t.modifiersData.popperOffsets,
|
|
1427
1428
|
position: t.options.strategy,
|
|
1428
1429
|
adaptive: l,
|
|
1429
1430
|
roundOffsets: a
|
|
1430
|
-
})))), 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, {
|
|
1431
1432
|
offsets: t.modifiersData.arrow,
|
|
1432
1433
|
position: "absolute",
|
|
1433
1434
|
adaptive: !1,
|
|
@@ -1465,7 +1466,7 @@ const So = {
|
|
|
1465
1466
|
effect: Ao,
|
|
1466
1467
|
data: {}
|
|
1467
1468
|
};
|
|
1468
|
-
var
|
|
1469
|
+
var Lo = {
|
|
1469
1470
|
left: "right",
|
|
1470
1471
|
right: "left",
|
|
1471
1472
|
bottom: "top",
|
|
@@ -1473,16 +1474,16 @@ var ko = {
|
|
|
1473
1474
|
};
|
|
1474
1475
|
function Bt(e) {
|
|
1475
1476
|
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
1476
|
-
return
|
|
1477
|
+
return Lo[t];
|
|
1477
1478
|
});
|
|
1478
1479
|
}
|
|
1479
|
-
var
|
|
1480
|
+
var ko = {
|
|
1480
1481
|
start: "end",
|
|
1481
1482
|
end: "start"
|
|
1482
1483
|
};
|
|
1483
|
-
function
|
|
1484
|
+
function Xe(e) {
|
|
1484
1485
|
return e.replace(/start|end/g, function(t) {
|
|
1485
|
-
return
|
|
1486
|
+
return ko[t];
|
|
1486
1487
|
});
|
|
1487
1488
|
}
|
|
1488
1489
|
function re(e) {
|
|
@@ -1495,7 +1496,7 @@ function re(e) {
|
|
|
1495
1496
|
function ae(e) {
|
|
1496
1497
|
return vt(Q(e)).left + re(e).scrollLeft;
|
|
1497
1498
|
}
|
|
1498
|
-
function
|
|
1499
|
+
function To(e, t) {
|
|
1499
1500
|
var i = B(e), s = Q(e), o = i.visualViewport, n = s.clientWidth, l = s.clientHeight, r = 0, a = 0;
|
|
1500
1501
|
if (o) {
|
|
1501
1502
|
n = o.width, l = o.height;
|
|
@@ -1547,15 +1548,15 @@ function Po(e, t) {
|
|
|
1547
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;
|
|
1548
1549
|
}
|
|
1549
1550
|
function He(e, t, i) {
|
|
1550
|
-
return t === Ge ? ee(
|
|
1551
|
+
return t === Ge ? ee(To(e, i)) : st(t) ? Po(t, i) : ee(Mo(Q(e)));
|
|
1551
1552
|
}
|
|
1552
1553
|
function Yo(e) {
|
|
1553
|
-
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;
|
|
1554
1555
|
return st(s) ? t.filter(function(o) {
|
|
1555
1556
|
return st(o) && Ke(o, s) && j(o) !== "body";
|
|
1556
1557
|
}) : [];
|
|
1557
1558
|
}
|
|
1558
|
-
function
|
|
1559
|
+
function Ro(e, t, i, s) {
|
|
1559
1560
|
var o = t === "clippingParents" ? Yo(e) : [].concat(t), n = [].concat(o, [i]), l = n[0], r = n.reduce(function(a, c) {
|
|
1560
1561
|
var h = He(e, c, s);
|
|
1561
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;
|
|
@@ -1611,7 +1612,7 @@ function ei(e) {
|
|
|
1611
1612
|
}
|
|
1612
1613
|
function St(e, t) {
|
|
1613
1614
|
t === void 0 && (t = {});
|
|
1614
|
-
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({
|
|
1615
1616
|
reference: m,
|
|
1616
1617
|
element: w,
|
|
1617
1618
|
placement: o
|
|
@@ -1620,21 +1621,21 @@ function St(e, t) {
|
|
|
1620
1621
|
bottom: A.bottom - x.bottom + O.bottom,
|
|
1621
1622
|
left: x.left - A.left + O.left,
|
|
1622
1623
|
right: A.right - x.right + O.right
|
|
1623
|
-
},
|
|
1624
|
-
if (f === Ct &&
|
|
1625
|
-
var
|
|
1626
|
-
Object.keys(S).forEach(function(
|
|
1627
|
-
var $ = [V, F].indexOf(
|
|
1628
|
-
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] * $;
|
|
1629
1630
|
});
|
|
1630
1631
|
}
|
|
1631
1632
|
return S;
|
|
1632
1633
|
}
|
|
1633
|
-
function
|
|
1634
|
+
function Xo(e, t) {
|
|
1634
1635
|
t === void 0 && (t = {});
|
|
1635
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) {
|
|
1636
1637
|
return gt(I) === h;
|
|
1637
|
-
}) :
|
|
1638
|
+
}) : Lt, f = u.filter(function(I) {
|
|
1638
1639
|
return c.indexOf(I) >= 0;
|
|
1639
1640
|
});
|
|
1640
1641
|
f.length === 0 && (f = u);
|
|
@@ -1654,13 +1655,13 @@ function Ho(e) {
|
|
|
1654
1655
|
if (z(e) === ie)
|
|
1655
1656
|
return [];
|
|
1656
1657
|
var t = Bt(e);
|
|
1657
|
-
return [
|
|
1658
|
+
return [Xe(e), t, Xe(t)];
|
|
1658
1659
|
}
|
|
1659
1660
|
function Zo(e) {
|
|
1660
1661
|
var t = e.state, i = e.options, s = e.name;
|
|
1661
1662
|
if (!t.modifiersData[s]._skip) {
|
|
1662
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) {
|
|
1663
|
-
return q.concat(z(N) === ie ?
|
|
1664
|
+
return q.concat(z(N) === ie ? Xo(t, {
|
|
1664
1665
|
placement: N,
|
|
1665
1666
|
boundary: h,
|
|
1666
1667
|
rootBoundary: u,
|
|
@@ -1669,22 +1670,22 @@ function Zo(e) {
|
|
|
1669
1670
|
allowedAutoPlacements: b
|
|
1670
1671
|
}) : N);
|
|
1671
1672
|
}, []), x = t.rects.reference, m = t.rects.popper, g = /* @__PURE__ */ new Map(), C = !0, A = y[0], S = 0; S < y.length; S++) {
|
|
1672
|
-
var
|
|
1673
|
-
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,
|
|
1674
1675
|
boundary: h,
|
|
1675
1676
|
rootBoundary: u,
|
|
1676
1677
|
altBoundary: f,
|
|
1677
1678
|
padding: c
|
|
1678
|
-
}), D = $ ?
|
|
1679
|
+
}), D = $ ? T ? V : Z : T ? F : H;
|
|
1679
1680
|
x[G] > m[G] && (D = Bt(D));
|
|
1680
1681
|
var ot = Bt(D), _ = [];
|
|
1681
|
-
if (n && _.push(M[
|
|
1682
|
+
if (n && _.push(M[R] <= 0), r && _.push(M[D] <= 0, M[ot] <= 0), _.every(function(q) {
|
|
1682
1683
|
return q;
|
|
1683
1684
|
})) {
|
|
1684
|
-
A =
|
|
1685
|
+
A = k, C = !1;
|
|
1685
1686
|
break;
|
|
1686
1687
|
}
|
|
1687
|
-
g.set(
|
|
1688
|
+
g.set(k, _);
|
|
1688
1689
|
}
|
|
1689
1690
|
if (C)
|
|
1690
1691
|
for (var nt = I ? 3 : 1, yt = function(N) {
|
|
@@ -1810,23 +1811,23 @@ function Go(e) {
|
|
|
1810
1811
|
} : Object.assign({
|
|
1811
1812
|
mainAxis: 0,
|
|
1812
1813
|
altAxis: 0
|
|
1813
|
-
}, A),
|
|
1814
|
+
}, A), k = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, R = {
|
|
1814
1815
|
x: 0,
|
|
1815
1816
|
y: 0
|
|
1816
1817
|
};
|
|
1817
1818
|
if (m) {
|
|
1818
1819
|
if (n) {
|
|
1819
|
-
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) : {
|
|
1820
1821
|
width: 0,
|
|
1821
1822
|
height: 0
|
|
1822
|
-
}, 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 &&
|
|
1823
|
-
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;
|
|
1824
1825
|
}
|
|
1825
1826
|
if (r) {
|
|
1826
|
-
var Pt, _t = y === "x" ? H : Z, Ut = y === "x" ? F : V, K = m[x], ht = x === "y" ? "height" : "width", Yt = K + v[_t],
|
|
1827
|
-
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;
|
|
1828
1829
|
}
|
|
1829
|
-
t.modifiersData[s] =
|
|
1830
|
+
t.modifiersData[s] = R;
|
|
1830
1831
|
}
|
|
1831
1832
|
}
|
|
1832
1833
|
const _o = {
|
|
@@ -1966,7 +1967,7 @@ function on(e) {
|
|
|
1966
1967
|
var O = h.elements, E = O.reference, w = O.popper;
|
|
1967
1968
|
if (We(E, w)) {
|
|
1968
1969
|
h.rects = {
|
|
1969
|
-
reference: qo(E,
|
|
1970
|
+
reference: qo(E, kt(w), h.options.strategy === "fixed"),
|
|
1970
1971
|
popper: oe(w)
|
|
1971
1972
|
}, h.reset = !1, h.placement = h.options.placement, h.orderedModifiers.forEach(function(S) {
|
|
1972
1973
|
return h.modifiersData[S.name] = Object.assign({}, S.data);
|
|
@@ -2209,7 +2210,7 @@ class Vt {
|
|
|
2209
2210
|
this.inertiaAnimationId = null;
|
|
2210
2211
|
return;
|
|
2211
2212
|
}
|
|
2212
|
-
const a = this.velocityX * 16, c = this.velocityY * 16, h =
|
|
2213
|
+
const a = this.velocityX * 16, c = this.velocityY * 16, h = ke({
|
|
2213
2214
|
deltaX: a,
|
|
2214
2215
|
deltaY: c,
|
|
2215
2216
|
reversed: this.dragReverse,
|
|
@@ -2231,7 +2232,7 @@ class Vt {
|
|
|
2231
2232
|
const f = performance.now(), p = f - this.lastDragTime;
|
|
2232
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;
|
|
2233
2234
|
}
|
|
2234
|
-
this.draggingDirection =
|
|
2235
|
+
this.draggingDirection = ke({
|
|
2235
2236
|
deltaX: s,
|
|
2236
2237
|
deltaY: o,
|
|
2237
2238
|
reversed: this.dragReverse,
|
|
@@ -2241,7 +2242,7 @@ class Vt {
|
|
|
2241
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;
|
|
2242
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(() => {
|
|
2243
2244
|
this.isDragging || (this.isDragging = !0, this.emit("onDragStart"));
|
|
2244
|
-
},
|
|
2245
|
+
}, Ti));
|
|
2245
2246
|
}
|
|
2246
2247
|
mouseMove(t) {
|
|
2247
2248
|
!this.isReady || !this.isClicked && !this.isZoomed || this.glass || (this.isZoomed || this.hideAllIcons(), this.drag(t.pageX, t.pageY), this.isZoomed && this.applyZoom(t));
|
|
@@ -2325,7 +2326,7 @@ class Vt {
|
|
|
2325
2326
|
this.isZoomed && this.removeZoom();
|
|
2326
2327
|
}
|
|
2327
2328
|
applyZoom(t) {
|
|
2328
|
-
const { offsetX: i, offsetY: s } =
|
|
2329
|
+
const { offsetX: i, offsetY: s } = ks(t, this.canvas, this.devicePixelRatio);
|
|
2329
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);
|
|
2330
2331
|
}
|
|
2331
2332
|
touchOutside(t) {
|
|
@@ -2405,7 +2406,7 @@ class Vt {
|
|
|
2405
2406
|
keyDown(t) {
|
|
2406
2407
|
if (!this.isReady) return;
|
|
2407
2408
|
const { keyCode: i } = t, s = this.keysReverse;
|
|
2408
|
-
switch (this.autoplay && this.stopAutoplay(),
|
|
2409
|
+
switch (this.autoplay && this.stopAutoplay(), Le(i, this.allowSpinY) && (this.hasInteracted = !0, this.hideAllIcons(), this.hideHints()), i) {
|
|
2409
2410
|
case 37:
|
|
2410
2411
|
s ? this.moveLeft() : this.moveRight();
|
|
2411
2412
|
break;
|
|
@@ -2422,7 +2423,7 @@ class Vt {
|
|
|
2422
2423
|
}
|
|
2423
2424
|
keyUp(t) {
|
|
2424
2425
|
const { keyCode: i } = t;
|
|
2425
|
-
|
|
2426
|
+
Le(i, this.allowSpinY) && this.showAllIcons();
|
|
2426
2427
|
}
|
|
2427
2428
|
moveActiveXIndexUp(t) {
|
|
2428
2429
|
this.orientation = Y.X, this.activeImageX = (this.activeImageX + t) % this.amountX;
|
|
@@ -2518,7 +2519,7 @@ class Vt {
|
|
|
2518
2519
|
t.stopPropagation();
|
|
2519
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);
|
|
2520
2521
|
this.showLoadingSpinner(), this.createGlass(), As(n, (a) => {
|
|
2521
|
-
this.hideLoadingSpinner(), this.magnified = !0,
|
|
2522
|
+
this.hideLoadingSpinner(), this.magnified = !0, Ls(t, this.innerBox, this.offset, a, this.glass, this.magnifier);
|
|
2522
2523
|
}, (a) => {
|
|
2523
2524
|
this.hideLoadingSpinner(), this.removeGlass(), this.emit("onError", {
|
|
2524
2525
|
error: { message: a.message, url: a.url },
|
|
@@ -2531,12 +2532,14 @@ class Vt {
|
|
|
2531
2532
|
openFullscreenModal(t) {
|
|
2532
2533
|
t.stopPropagation(), this.hideHotspotPopper(), this.releaseMemory(), window.document.body.style.overflow = "hidden";
|
|
2533
2534
|
const i = os(this.container);
|
|
2534
|
-
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.");
|
|
2535
2538
|
}
|
|
2536
2539
|
closeFullscreenModal(t) {
|
|
2537
2540
|
t.stopPropagation();
|
|
2538
2541
|
const i = this.originalViewer || this, s = this.fullscreenView ? this : i.fullscreenInstance;
|
|
2539
|
-
if (s) {
|
|
2542
|
+
if (i.boundResizeHandler && (window.removeEventListener("resize", i.boundResizeHandler), i.boundResizeHandler = null), s) {
|
|
2540
2543
|
s.hideHotspotPopper();
|
|
2541
2544
|
const o = s.container.parentNode;
|
|
2542
2545
|
o && o.parentNode && o.parentNode.removeChild(o), s.destroy(), i.fullscreenInstance && (i.fullscreenInstance = null);
|
|
@@ -2564,7 +2567,7 @@ class Vt {
|
|
|
2564
2567
|
this.stopAutoplay();
|
|
2565
2568
|
return;
|
|
2566
2569
|
}
|
|
2567
|
-
|
|
2570
|
+
Rs({
|
|
2568
2571
|
autoplayBehavior: this.autoplayBehavior,
|
|
2569
2572
|
activeImageX: this.activeImageX,
|
|
2570
2573
|
activeImageY: this.activeImageY,
|
|
@@ -2808,7 +2811,7 @@ class Vt {
|
|
|
2808
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());
|
|
2809
2812
|
}
|
|
2810
2813
|
init(t, i, s) {
|
|
2811
|
-
const o = i ? Zi(i) :
|
|
2814
|
+
const o = i ? Zi(i) : Xi(t), {
|
|
2812
2815
|
folder: n,
|
|
2813
2816
|
apiVersion: l,
|
|
2814
2817
|
filenameX: r,
|
|
@@ -2831,9 +2834,9 @@ class Vt {
|
|
|
2831
2834
|
fullscreen: C,
|
|
2832
2835
|
magnifier: A,
|
|
2833
2836
|
ciToken: S,
|
|
2834
|
-
ciFilters:
|
|
2835
|
-
ciTransformation:
|
|
2836
|
-
lazyload:
|
|
2837
|
+
ciFilters: k,
|
|
2838
|
+
ciTransformation: R,
|
|
2839
|
+
lazyload: T,
|
|
2837
2840
|
dragSpeed: $,
|
|
2838
2841
|
stopAtEdges: G,
|
|
2839
2842
|
pointerZoom: M,
|
|
@@ -2854,7 +2857,7 @@ class Vt {
|
|
|
2854
2857
|
aspectRatio: ct,
|
|
2855
2858
|
// Event callbacks
|
|
2856
2859
|
onReady: jt,
|
|
2857
|
-
onLoad:
|
|
2860
|
+
onLoad: Tt,
|
|
2858
2861
|
onSpin: $t,
|
|
2859
2862
|
onAutoplayStart: Gt,
|
|
2860
2863
|
onAutoplayStop: Mt,
|
|
@@ -2864,9 +2867,9 @@ class Vt {
|
|
|
2864
2867
|
onZoomOut: K,
|
|
2865
2868
|
onDragStart: ht,
|
|
2866
2869
|
onDragEnd: Yt,
|
|
2867
|
-
onError:
|
|
2868
|
-
} = o, dt = { ciToken: S, ciFilters:
|
|
2869
|
-
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 = {
|
|
2870
2873
|
folder: n,
|
|
2871
2874
|
filename: r,
|
|
2872
2875
|
imageList: ut,
|
|
@@ -2874,7 +2877,7 @@ class Vt {
|
|
|
2874
2877
|
innerBox: this.innerBox,
|
|
2875
2878
|
apiVersion: l,
|
|
2876
2879
|
ciParams: dt,
|
|
2877
|
-
lazyload:
|
|
2880
|
+
lazyload: T,
|
|
2878
2881
|
amount: this.amountX,
|
|
2879
2882
|
indexZeroBase: u,
|
|
2880
2883
|
autoplayReverse: g,
|
|
@@ -2993,4 +2996,4 @@ class cn {
|
|
|
2993
2996
|
export {
|
|
2994
2997
|
cn as default
|
|
2995
2998
|
};
|
|
2996
|
-
//# sourceMappingURL=ci360-
|
|
2999
|
+
//# sourceMappingURL=ci360-xUK7dmd6.mjs.map
|