@solostylist/ui-kit 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/AppAutocomplete/AppAutocomplete.js +1 -1
  2. package/dist/AppAvatar/AppAvatar.js +1 -1
  3. package/dist/AppBox/AppBox.js +1 -1
  4. package/dist/AppBreadcrumbsSeparator/AppBreadcrumbsSeparator.js +2 -2
  5. package/dist/AppButton/AppButton.js +1 -1
  6. package/dist/AppButtonLink/AppButtonLink.js +1 -1
  7. package/dist/AppCard/AppCard.js +1 -1
  8. package/dist/AppCardActions/AppCardActions.js +1 -1
  9. package/dist/AppCardContent/AppCardContent.js +1 -1
  10. package/dist/AppCardHeader/AppCardHeader.js +1 -1
  11. package/dist/AppCheckbox/AppCheckbox.js +1 -1
  12. package/dist/AppChip/AppChip.js +4 -4
  13. package/dist/AppChips/AppChips.js +1 -1
  14. package/dist/AppDataTable/AppDataTable.js +403 -323
  15. package/dist/AppDialog/AppDialog.js +2 -2
  16. package/dist/AppDialogConfirm/AppDialogConfirm.js +3 -3
  17. package/dist/AppDialogMessage/AppDialogMessage.js +3 -3
  18. package/dist/AppEmpty/AppEmpty.js +1 -1
  19. package/dist/AppError/AppError.js +1 -1
  20. package/dist/AppFileDropzone/AppFileDropzone.js +21 -21
  21. package/dist/AppFileIcon/AppFileIcon.js +2 -2
  22. package/dist/AppFormControl/AppFormControl.js +1 -1
  23. package/dist/AppGallery/AppGallery.js +1060 -1064
  24. package/dist/AppI18nProvider/AppI18nProvider.js +1 -1
  25. package/dist/AppIconButton/AppIconButton.js +1 -1
  26. package/dist/AppIcons/AppIcons.js +185 -185
  27. package/dist/AppLabel/AppLabel.js +1 -1
  28. package/dist/AppLink/AppLink.js +1 -1
  29. package/dist/AppMultiSelect/AppMultiSelect.js +4 -4
  30. package/dist/AppNoData/AppNoData.js +1 -1
  31. package/dist/AppNoSsr/AppNoSsr.js +1 -1
  32. package/dist/AppOption/AppOption.js +2 -2
  33. package/dist/AppPagination/AppPagination.js +1 -1
  34. package/dist/AppRating/AppRating.d.ts +1 -1
  35. package/dist/AppRating/AppRating.js +4 -5
  36. package/dist/AppSelect/AppSelect.js +2 -2
  37. package/dist/AppSkeleton/AppSkeleton.js +1 -1
  38. package/dist/AppSnackbarMessage/AppSnackbarMessage.js +1 -1
  39. package/dist/AppStack/AppStack.js +1 -1
  40. package/dist/AppTextEditor/AppTextEditor.js +2 -2
  41. package/dist/AppTextEditor/TextEditorToolbar.js +1652 -1316
  42. package/dist/AppTextTruncation/AppTextTruncation.js +1 -1
  43. package/dist/AppThemeProvider/AppThemeProvider.js +4 -4
  44. package/dist/AppTip/AppTip.js +4 -4
  45. package/dist/{Box-yxuKPTCX.js → Box-MNdIcw0w.js} +7 -7
  46. package/dist/{ButtonBase-p_uz8ITC.js → ButtonBase-D7WZejV5.js} +238 -225
  47. package/dist/{CaretDown-CgrRY9__.js → CaretDown-CZu0drmJ.js} +6 -6
  48. package/dist/{DefaultPropsProvider-BV4t9fEW.js → DefaultPropsProvider-Cw67t9bx.js} +2 -2
  49. package/dist/{Lightbulb-1rDyOsPk.js → Lightbulb-BLT-jnYA.js} +5 -5
  50. package/dist/{Menu-B0R91i07.js → Menu-BymLGoMc.js} +1154 -1209
  51. package/dist/{MenuItem-BjjYkRmW.js → MenuItem-l3xZOND-.js} +14 -14
  52. package/dist/SForm/SForm.d.ts +9 -0
  53. package/dist/SForm/SForm.js +10 -0
  54. package/dist/SForm/index.d.ts +1 -0
  55. package/dist/SForm/index.js +4 -0
  56. package/dist/{SSRBase-B9xq2wUG.js → SSRBase-BSdFRe_j.js} +11 -11
  57. package/dist/STextField/STextField.d.ts +11 -0
  58. package/dist/STextField/STextField.js +28 -0
  59. package/dist/STextField/index.d.ts +1 -0
  60. package/dist/STextField/index.js +4 -0
  61. package/dist/STextField/package.json +5 -0
  62. package/dist/{Stack-D9qNbbkC.js → Stack-CxKx2YGj.js} +11 -11
  63. package/dist/{Typography-BYkXNa-U.js → Typography-QQx_YSAW.js} +9 -9
  64. package/dist/{User-Bx-HYRxI.js → User-X5-swnIn.js} +9 -9
  65. package/dist/{X-DETrowOy.js → X-Cw1SQcRJ.js} +9 -9
  66. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  67. package/dist/assets/AppGallery.css +1 -1
  68. package/dist/clsx-DfguY6FT.js +232 -0
  69. package/dist/createTheme-dX0MILsf.js +2899 -0
  70. package/dist/{extendSxProp-CKQgGYDd.js → extendSxProp-CTBBOYHX.js} +3 -3
  71. package/dist/{index-Btrukby7.js → index-f-gkJ93Q.js} +11 -11
  72. package/dist/jsx-runtime-C5mzlN2N.js +284 -0
  73. package/dist/main.d.ts +1 -1
  74. package/dist/main.js +28 -28
  75. package/dist/memoTheme-DOlCkXD8.js +223 -0
  76. package/dist/outlinedInputClasses-rXE3T3sa.js +13 -0
  77. package/dist/styles/theme/color-schemes.js +61 -109
  78. package/dist/styles/theme/components/autocomplete.js +1 -1
  79. package/dist/styles/theme/components/avatar.js +2 -2
  80. package/dist/styles/theme/components/button.d.ts +12 -36
  81. package/dist/styles/theme/components/button.js +3 -3
  82. package/dist/styles/theme/components/card.d.ts +3 -965
  83. package/dist/styles/theme/components/checkbox.js +1 -1
  84. package/dist/styles/theme/components/chip.d.ts +3 -1067
  85. package/dist/styles/theme/components/chip.js +23 -67
  86. package/dist/styles/theme/components/components.d.ts +18 -2074
  87. package/dist/styles/theme/components/components.js +24 -26
  88. package/dist/styles/theme/components/outlined-input.js +1 -1
  89. package/dist/styles/theme/components/radio.js +1 -1
  90. package/dist/styles/theme/components/select.js +2 -2
  91. package/dist/styles/theme/components/table-pagination.js +2 -2
  92. package/dist/styles/theme/components/tabs.js +1 -1
  93. package/dist/styles/theme/shadows.d.ts +3 -4
  94. package/dist/{useControlled-CYUofcJ9.js → useControlled-DyL3m721.js} +53 -53
  95. package/dist/useSlot-Tj9CW-Xc.js +184 -0
  96. package/dist/{useTheme-DYc4rgBb.js → useTheme-CNZ6Hnpo.js} +1 -1
  97. package/dist/utils/dayjs.js +89 -83
  98. package/package.json +40 -42
  99. package/dist/AppOutlinedInput/AppOutlinedInput.d.ts +0 -10
  100. package/dist/AppOutlinedInput/AppOutlinedInput.js +0 -40
  101. package/dist/AppOutlinedInput/index.d.ts +0 -1
  102. package/dist/AppOutlinedInput/index.js +0 -4
  103. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  104. package/dist/clsx-C-FXfxyk.js +0 -236
  105. package/dist/createTheme-C97xvI-s.js +0 -2789
  106. package/dist/jsx-runtime-B6kdoens.js +0 -634
  107. package/dist/memoTheme-B2qvAi64.js +0 -404
  108. package/dist/outlinedInputClasses-R7dmh7eW.js +0 -13
  109. package/dist/styles/theme/components/timeline-connector.d.ts +0 -7
  110. package/dist/styles/theme/components/timeline-connector.js +0 -6
  111. /package/dist/{AppOutlinedInput → SForm}/package.json +0 -0
@@ -1,1089 +1,1085 @@
1
- import { j as $t } from "../jsx-runtime-B6kdoens.js";
2
- import { c as de, g as Yt } from "../_commonjsHelpers-DaMA6jEr.js";
3
- import Jt from "react";
4
- import '../assets/AppGallery.css';var ht = { exports: {} };
5
- (function(ye, en) {
6
- (function(We, we) {
7
- ye.exports = we(Jt);
8
- })(de, (We) => (() => {
9
- var we = { 703: (k, P, L) => {
10
- var f = L(414);
11
- function G() {
1
+ import { j as it } from "../jsx-runtime-C5mzlN2N.js";
2
+ import * as oe from "react";
3
+ import '../assets/AppGallery.css';var at = { 694: (r, e, t) => {
4
+ var n = t(925);
5
+ function a() {
6
+ }
7
+ function s() {
8
+ }
9
+ s.resetWarningCache = a, r.exports = function() {
10
+ function i(c, m, p, v, O, w) {
11
+ if (w !== n) {
12
+ var y = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
13
+ throw y.name = "Invariant Violation", y;
12
14
  }
13
- function U() {
14
- }
15
- U.resetWarningCache = G, k.exports = function() {
16
- function v(j, B, q, ie, Te, Oe) {
17
- if (Oe !== f) {
18
- var pe = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
19
- throw pe.name = "Invariant Violation", pe;
20
- }
21
- }
22
- function O() {
23
- return v;
24
- }
25
- v.isRequired = v;
26
- var W = { array: v, bool: v, func: v, number: v, object: v, string: v, symbol: v, any: v, arrayOf: O, element: v, elementType: v, instanceOf: O, node: v, objectOf: O, oneOf: O, oneOfType: O, shape: O, exact: O, checkPropTypes: U, resetWarningCache: G };
27
- return W.PropTypes = W, W;
28
- };
29
- }, 697: (k, P, L) => {
30
- k.exports = L(703)();
31
- }, 414: (k) => {
32
- k.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
33
- }, 590: (k) => {
34
- var P = typeof Element < "u", L = typeof Map == "function", f = typeof Set == "function", G = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
35
- function U(v, O) {
36
- if (v === O) return !0;
37
- if (v && O && typeof v == "object" && typeof O == "object") {
38
- if (v.constructor !== O.constructor) return !1;
39
- var W, j, B, q;
40
- if (Array.isArray(v)) {
41
- if ((W = v.length) != O.length) return !1;
42
- for (j = W; j-- != 0; ) if (!U(v[j], O[j])) return !1;
43
- return !0;
44
- }
45
- if (L && v instanceof Map && O instanceof Map) {
46
- if (v.size !== O.size) return !1;
47
- for (q = v.entries(); !(j = q.next()).done; ) if (!O.has(j.value[0])) return !1;
48
- for (q = v.entries(); !(j = q.next()).done; ) if (!U(j.value[1], O.get(j.value[0]))) return !1;
49
- return !0;
50
- }
51
- if (f && v instanceof Set && O instanceof Set) {
52
- if (v.size !== O.size) return !1;
53
- for (q = v.entries(); !(j = q.next()).done; ) if (!O.has(j.value[0])) return !1;
54
- return !0;
55
- }
56
- if (G && ArrayBuffer.isView(v) && ArrayBuffer.isView(O)) {
57
- if ((W = v.length) != O.length) return !1;
58
- for (j = W; j-- != 0; ) if (v[j] !== O[j]) return !1;
59
- return !0;
60
- }
61
- if (v.constructor === RegExp) return v.source === O.source && v.flags === O.flags;
62
- if (v.valueOf !== Object.prototype.valueOf) return v.valueOf() === O.valueOf();
63
- if (v.toString !== Object.prototype.toString) return v.toString() === O.toString();
64
- if ((W = (B = Object.keys(v)).length) !== Object.keys(O).length) return !1;
65
- for (j = W; j-- != 0; ) if (!Object.prototype.hasOwnProperty.call(O, B[j])) return !1;
66
- if (P && v instanceof Element) return !1;
67
- for (j = W; j-- != 0; ) if ((B[j] !== "_owner" && B[j] !== "__v" && B[j] !== "__o" || !v.$$typeof) && !U(v[B[j]], O[B[j]])) return !1;
68
- return !0;
69
- }
70
- return v != v && O != O;
71
- }
72
- k.exports = function(v, O) {
73
- try {
74
- return U(v, O);
75
- } catch (W) {
76
- if ((W.message || "").match(/stack|recursion/i)) return console.warn("react-fast-compare cannot handle circular refs"), !1;
77
- throw W;
78
- }
79
- };
80
- }, 359: (k) => {
81
- k.exports = We;
82
- } }, Ce = {};
83
- function D(k) {
84
- var P = Ce[k];
85
- if (P !== void 0) return P.exports;
86
- var L = Ce[k] = { exports: {} };
87
- return we[k](L, L.exports, D), L.exports;
88
15
  }
89
- D.n = (k) => {
90
- var P = k && k.__esModule ? () => k.default : () => k;
91
- return D.d(P, { a: P }), P;
92
- }, D.d = (k, P) => {
93
- for (var L in P) D.o(P, L) && !D.o(k, L) && Object.defineProperty(k, L, { enumerable: !0, get: P[L] });
94
- }, D.g = function() {
95
- if (typeof globalThis == "object") return globalThis;
96
- try {
97
- return this || new Function("return this")();
98
- } catch {
99
- if (typeof window == "object") return window;
100
- }
101
- }(), D.o = (k, P) => Object.prototype.hasOwnProperty.call(k, P), D.r = (k) => {
102
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(k, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(k, "__esModule", { value: !0 });
103
- };
104
- var Se = {};
105
- return (() => {
106
- function k(i) {
107
- var e, r, a = "";
108
- if (typeof i == "string" || typeof i == "number") a += i;
109
- else if (typeof i == "object") if (Array.isArray(i)) for (e = 0; e < i.length; e++) i[e] && (r = k(i[e])) && (a && (a += " "), a += r);
110
- else for (e in i) i[e] && (a && (a += " "), a += e);
111
- return a;
112
- }
113
- function P() {
114
- for (var i, e, r = 0, a = ""; r < arguments.length; ) (i = arguments[r++]) && (e = k(i)) && (a && (a += " "), a += e);
115
- return a;
116
- }
117
- D.r(Se), D.d(Se, { default: () => Vt });
118
- var L = D(359), f = D.n(L);
119
- const G = function(i) {
120
- var e = typeof i;
121
- return i != null && (e == "object" || e == "function");
122
- }, U = typeof de == "object" && de && de.Object === Object && de;
123
- var v = typeof self == "object" && self && self.Object === Object && self;
124
- const O = U || v || Function("return this")(), W = function() {
125
- return O.Date.now();
126
- };
127
- var j = /\s/, B = /^\s+/;
128
- const q = function(i) {
129
- return i && i.slice(0, function(e) {
130
- for (var r = e.length; r-- && j.test(e.charAt(r)); ) ;
131
- return r;
132
- }(i) + 1).replace(B, "");
133
- }, ie = O.Symbol;
134
- var Te = Object.prototype, Oe = Te.hasOwnProperty, pe = Te.toString, re = ie ? ie.toStringTag : void 0, dt = Object.prototype.toString, Fe = ie ? ie.toStringTag : void 0;
135
- const pt = function(i) {
136
- return i == null ? i === void 0 ? "[object Undefined]" : "[object Null]" : Fe && Fe in Object(i) ? function(e) {
137
- var r = Oe.call(e, re), a = e[re];
138
- try {
139
- e[re] = void 0;
140
- var c = !0;
141
- } catch {
142
- }
143
- var g = pe.call(e);
144
- return c && (r ? e[re] = a : delete e[re]), g;
145
- }(i) : function(e) {
146
- return dt.call(e);
147
- }(i);
148
- };
149
- var ft = /^[-+]0x[0-9a-f]+$/i, mt = /^0b[01]+$/i, gt = /^0o[0-7]+$/i, bt = parseInt;
150
- const ze = function(i) {
151
- if (typeof i == "number") return i;
152
- if (function(a) {
153
- return typeof a == "symbol" || function(c) {
154
- return c != null && typeof c == "object";
155
- }(a) && pt(a) == "[object Symbol]";
156
- }(i)) return NaN;
157
- if (G(i)) {
158
- var e = typeof i.valueOf == "function" ? i.valueOf() : i;
159
- i = G(e) ? e + "" : e;
160
- }
161
- if (typeof i != "string") return i === 0 ? i : +i;
162
- i = q(i);
163
- var r = mt.test(i);
164
- return r || gt.test(i) ? bt(i.slice(2), r ? 2 : 8) : ft.test(i) ? NaN : +i;
165
- };
166
- var vt = Math.max, yt = Math.min;
167
- const Ee = function(i, e, r) {
168
- var a, c, g, E, n, t, s = 0, l = !1, h = !1, u = !0;
169
- if (typeof i != "function") throw new TypeError("Expected a function");
170
- function w(b) {
171
- var T = a, I = c;
172
- return a = c = void 0, s = b, E = i.apply(I, T);
173
- }
174
- function y(b) {
175
- return s = b, n = setTimeout(d, e), l ? w(b) : E;
176
- }
177
- function S(b) {
178
- var T = b - t;
179
- return t === void 0 || T >= e || T < 0 || h && b - s >= g;
180
- }
181
- function d() {
182
- var b = W();
183
- if (S(b)) return p(b);
184
- n = setTimeout(d, function(T) {
185
- var I = e - (T - t);
186
- return h ? yt(I, g - (T - s)) : I;
187
- }(b));
188
- }
189
- function p(b) {
190
- return n = void 0, u && a ? w(b) : (a = c = void 0, E);
191
- }
192
- function m() {
193
- var b = W(), T = S(b);
194
- if (a = arguments, c = this, t = b, T) {
195
- if (n === void 0) return y(t);
196
- if (h) return clearTimeout(n), n = setTimeout(d, e), w(t);
197
- }
198
- return n === void 0 && (n = setTimeout(d, e)), E;
199
- }
200
- return e = ze(e) || 0, G(r) && (l = !!r.leading, g = (h = "maxWait" in r) ? vt(ze(r.maxWait) || 0, e) : g, u = "trailing" in r ? !!r.trailing : u), m.cancel = function() {
201
- n !== void 0 && clearTimeout(n), s = 0, a = t = c = n = void 0;
202
- }, m.flush = function() {
203
- return n === void 0 ? E : p(W());
204
- }, m;
205
- }, Ne = function(i, e, r) {
206
- var a = !0, c = !0;
207
- if (typeof i != "function") throw new TypeError("Expected a function");
208
- return G(r) && (a = "leading" in r ? !!r.leading : a, c = "trailing" in r ? !!r.trailing : c), Ee(i, e, { leading: a, maxWait: e, trailing: c });
209
- };
210
- var wt = D(590), St = D.n(wt), Be = function() {
211
- if (typeof Map < "u") return Map;
212
- function i(e, r) {
213
- var a = -1;
214
- return e.some(function(c, g) {
215
- return c[0] === r && (a = g, !0);
216
- }), a;
217
- }
218
- return function() {
219
- function e() {
220
- this.__entries__ = [];
221
- }
222
- return Object.defineProperty(e.prototype, "size", { get: function() {
223
- return this.__entries__.length;
224
- }, enumerable: !0, configurable: !0 }), e.prototype.get = function(r) {
225
- var a = i(this.__entries__, r), c = this.__entries__[a];
226
- return c && c[1];
227
- }, e.prototype.set = function(r, a) {
228
- var c = i(this.__entries__, r);
229
- ~c ? this.__entries__[c][1] = a : this.__entries__.push([r, a]);
230
- }, e.prototype.delete = function(r) {
231
- var a = this.__entries__, c = i(a, r);
232
- ~c && a.splice(c, 1);
233
- }, e.prototype.has = function(r) {
234
- return !!~i(this.__entries__, r);
235
- }, e.prototype.clear = function() {
236
- this.__entries__.splice(0);
237
- }, e.prototype.forEach = function(r, a) {
238
- a === void 0 && (a = null);
239
- for (var c = 0, g = this.__entries__; c < g.length; c++) {
240
- var E = g[c];
241
- r.call(a, E[1], E[0]);
242
- }
243
- }, e;
244
- }();
245
- }(), ke = typeof window < "u" && typeof document < "u" && window.document === document, fe = D.g !== void 0 && D.g.Math === Math ? D.g : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")(), Tt = typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(fe) : function(i) {
246
- return setTimeout(function() {
247
- return i(Date.now());
248
- }, 1e3 / 60);
249
- }, Ot = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], Et = typeof MutationObserver < "u", kt = function() {
250
- function i() {
251
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = /* @__PURE__ */ function(e, r) {
252
- var a = !1, c = !1, g = 0;
253
- function E() {
254
- a && (a = !1, e()), c && t();
255
- }
256
- function n() {
257
- Tt(E);
258
- }
259
- function t() {
260
- var s = Date.now();
261
- if (a) {
262
- if (s - g < 2) return;
263
- c = !0;
264
- } else a = !0, c = !1, setTimeout(n, 20);
265
- g = s;
266
- }
267
- return t;
268
- }(this.refresh.bind(this));
269
- }
270
- return i.prototype.addObserver = function(e) {
271
- ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
272
- }, i.prototype.removeObserver = function(e) {
273
- var r = this.observers_, a = r.indexOf(e);
274
- ~a && r.splice(a, 1), !r.length && this.connected_ && this.disconnect_();
275
- }, i.prototype.refresh = function() {
276
- this.updateObservers_() && this.refresh();
277
- }, i.prototype.updateObservers_ = function() {
278
- var e = this.observers_.filter(function(r) {
279
- return r.gatherActive(), r.hasActive();
280
- });
281
- return e.forEach(function(r) {
282
- return r.broadcastActive();
283
- }), e.length > 0;
284
- }, i.prototype.connect_ = function() {
285
- ke && !this.connected_ && (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), Et ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, { attributes: !0, childList: !0, characterData: !0, subtree: !0 })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
286
- }, i.prototype.disconnect_ = function() {
287
- ke && this.connected_ && (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
288
- }, i.prototype.onTransitionEnd_ = function(e) {
289
- var r = e.propertyName, a = r === void 0 ? "" : r;
290
- Ot.some(function(c) {
291
- return !!~a.indexOf(c);
292
- }) && this.refresh();
293
- }, i.getInstance = function() {
294
- return this.instance_ || (this.instance_ = new i()), this.instance_;
295
- }, i.instance_ = null, i;
296
- }(), Ae = function(i, e) {
297
- for (var r = 0, a = Object.keys(e); r < a.length; r++) {
298
- var c = a[r];
299
- Object.defineProperty(i, c, { value: e[c], enumerable: !1, writable: !1, configurable: !0 });
300
- }
301
- return i;
302
- }, Y = function(i) {
303
- return i && i.ownerDocument && i.ownerDocument.defaultView || fe;
304
- }, Ge = ge(0, 0, 0, 0);
305
- function me(i) {
306
- return parseFloat(i) || 0;
307
- }
308
- function Ue(i) {
309
- for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r];
310
- return e.reduce(function(a, c) {
311
- return a + me(i["border-" + c + "-width"]);
312
- }, 0);
313
- }
314
- var It = typeof SVGGraphicsElement < "u" ? function(i) {
315
- return i instanceof Y(i).SVGGraphicsElement;
316
- } : function(i) {
317
- return i instanceof Y(i).SVGElement && typeof i.getBBox == "function";
318
- };
319
- function xt(i) {
320
- return ke ? It(i) ? function(e) {
321
- var r = e.getBBox();
322
- return ge(0, 0, r.width, r.height);
323
- }(i) : function(e) {
324
- var r = e.clientWidth, a = e.clientHeight;
325
- if (!r && !a) return Ge;
326
- var c = Y(e).getComputedStyle(e), g = function(u) {
327
- for (var w = {}, y = 0, S = ["top", "right", "bottom", "left"]; y < S.length; y++) {
328
- var d = S[y], p = u["padding-" + d];
329
- w[d] = me(p);
330
- }
331
- return w;
332
- }(c), E = g.left + g.right, n = g.top + g.bottom, t = me(c.width), s = me(c.height);
333
- if (c.boxSizing === "border-box" && (Math.round(t + E) !== r && (t -= Ue(c, "left", "right") + E), Math.round(s + n) !== a && (s -= Ue(c, "top", "bottom") + n)), !function(u) {
334
- return u === Y(u).document.documentElement;
335
- }(e)) {
336
- var l = Math.round(t + E) - r, h = Math.round(s + n) - a;
337
- Math.abs(l) !== 1 && (t -= l), Math.abs(h) !== 1 && (s -= h);
338
- }
339
- return ge(g.left, g.top, t, s);
340
- }(i) : Ge;
341
- }
342
- function ge(i, e, r, a) {
343
- return { x: i, y: e, width: r, height: a };
344
- }
345
- var jt = function() {
346
- function i(e) {
347
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = ge(0, 0, 0, 0), this.target = e;
348
- }
349
- return i.prototype.isActive = function() {
350
- var e = xt(this.target);
351
- return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
352
- }, i.prototype.broadcastRect = function() {
353
- var e = this.contentRect_;
354
- return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
355
- }, i;
356
- }(), Pt = function(i, e) {
357
- var r, a, c, g, E, n, t, s = (a = (r = e).x, c = r.y, g = r.width, E = r.height, n = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, t = Object.create(n.prototype), Ae(t, { x: a, y: c, width: g, height: E, top: c, right: a + g, bottom: E + c, left: a }), t);
358
- Ae(this, { target: i, contentRect: s });
359
- }, _t = function() {
360
- function i(e, r, a) {
361
- if (this.activeObservations_ = [], this.observations_ = new Be(), typeof e != "function") throw new TypeError("The callback provided as parameter 1 is not a function.");
362
- this.callback_ = e, this.controller_ = r, this.callbackCtx_ = a;
363
- }
364
- return i.prototype.observe = function(e) {
365
- if (!arguments.length) throw new TypeError("1 argument required, but only 0 present.");
366
- if (typeof Element < "u" && Element instanceof Object) {
367
- if (!(e instanceof Y(e).Element)) throw new TypeError('parameter 1 is not of type "Element".');
368
- var r = this.observations_;
369
- r.has(e) || (r.set(e, new jt(e)), this.controller_.addObserver(this), this.controller_.refresh());
370
- }
371
- }, i.prototype.unobserve = function(e) {
372
- if (!arguments.length) throw new TypeError("1 argument required, but only 0 present.");
373
- if (typeof Element < "u" && Element instanceof Object) {
374
- if (!(e instanceof Y(e).Element)) throw new TypeError('parameter 1 is not of type "Element".');
375
- var r = this.observations_;
376
- r.has(e) && (r.delete(e), r.size || this.controller_.removeObserver(this));
377
- }
378
- }, i.prototype.disconnect = function() {
379
- this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
380
- }, i.prototype.gatherActive = function() {
381
- var e = this;
382
- this.clearActive(), this.observations_.forEach(function(r) {
383
- r.isActive() && e.activeObservations_.push(r);
384
- });
385
- }, i.prototype.broadcastActive = function() {
386
- if (this.hasActive()) {
387
- var e = this.callbackCtx_, r = this.activeObservations_.map(function(a) {
388
- return new Pt(a.target, a.broadcastRect());
389
- });
390
- this.callback_.call(e, r, e), this.clearActive();
391
- }
392
- }, i.prototype.clearActive = function() {
393
- this.activeObservations_.splice(0);
394
- }, i.prototype.hasActive = function() {
395
- return this.activeObservations_.length > 0;
396
- }, i;
397
- }(), qe = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Be(), He = function i(e) {
398
- if (!(this instanceof i)) throw new TypeError("Cannot call a class as a function.");
399
- if (!arguments.length) throw new TypeError("1 argument required, but only 0 present.");
400
- var r = kt.getInstance(), a = new _t(e, r, this);
401
- qe.set(this, a);
402
- };
403
- ["observe", "unobserve", "disconnect"].forEach(function(i) {
404
- He.prototype[i] = function() {
405
- var e;
406
- return (e = qe.get(this))[i].apply(e, arguments);
407
- };
408
- });
409
- const Ke = fe.ResizeObserver !== void 0 ? fe.ResizeObserver : He, J = "Left", V = "Right", Q = "Up", X = "Down", Z = { delta: 10, preventScrollOnSwipe: !1, rotationAngle: 0, trackMouse: !1, trackTouch: !0, swipeDuration: 1 / 0, touchEventOptions: { passive: !0 } }, Ie = { first: !0, initial: [0, 0], start: 0, swiping: !1, xy: [0, 0] }, Ve = "mousemove", Xe = "mouseup";
410
- function $e(i, e) {
411
- if (e === 0) return i;
412
- const r = Math.PI / 180 * e;
413
- return [i[0] * Math.cos(r) + i[1] * Math.sin(r), i[1] * Math.cos(r) - i[0] * Math.sin(r)];
414
- }
415
- function Rt(i) {
416
- const { trackMouse: e } = i, r = L.useRef(Object.assign({}, Ie)), a = L.useRef(Object.assign({}, Z)), c = L.useRef(Object.assign({}, a.current));
417
- let g;
418
- for (g in c.current = Object.assign({}, a.current), a.current = Object.assign(Object.assign({}, Z), i), Z) a.current[g] === void 0 && (a.current[g] = Z[g]);
419
- const [E, n] = L.useMemo(() => function(t, s) {
420
- const l = (d) => {
421
- const p = "touches" in d;
422
- p && d.touches.length > 1 || t((m, b) => {
423
- b.trackMouse && !p && (document.addEventListener(Ve, h), document.addEventListener(Xe, w));
424
- const { clientX: T, clientY: I } = p ? d.touches[0] : d, R = $e([T, I], b.rotationAngle);
425
- return b.onTouchStartOrOnMouseDown && b.onTouchStartOrOnMouseDown({ event: d }), Object.assign(Object.assign(Object.assign({}, m), Ie), { initial: R.slice(), xy: R, start: d.timeStamp || 0 });
426
- });
427
- }, h = (d) => {
428
- t((p, m) => {
429
- const b = "touches" in d;
430
- if (b && d.touches.length > 1) return p;
431
- if (d.timeStamp - p.start > m.swipeDuration) return p.swiping ? Object.assign(Object.assign({}, p), { swiping: !1 }) : p;
432
- const { clientX: T, clientY: I } = b ? d.touches[0] : d, [R, z] = $e([T, I], m.rotationAngle), F = R - p.xy[0], C = z - p.xy[1], _ = Math.abs(F), x = Math.abs(C), K = (d.timeStamp || 0) - p.start, le = Math.sqrt(_ * _ + x * x) / (K || 1), ue = [F / (K || 1), C / (K || 1)], H = function(ce, ne, he, N) {
433
- return ce > ne ? he > 0 ? V : J : N > 0 ? X : Q;
434
- }(_, x, F, C), $ = typeof m.delta == "number" ? m.delta : m.delta[H.toLowerCase()] || Z.delta;
435
- if (_ < $ && x < $ && !p.swiping) return p;
436
- const A = { absX: _, absY: x, deltaX: F, deltaY: C, dir: H, event: d, first: p.first, initial: p.initial, velocity: le, vxvy: ue };
437
- A.first && m.onSwipeStart && m.onSwipeStart(A), m.onSwiping && m.onSwiping(A);
438
- let te = !1;
439
- return (m.onSwiping || m.onSwiped || m[`onSwiped${H}`]) && (te = !0), te && m.preventScrollOnSwipe && m.trackTouch && d.cancelable && d.preventDefault(), Object.assign(Object.assign({}, p), { first: !1, eventData: A, swiping: !0 });
440
- });
441
- }, u = (d) => {
442
- t((p, m) => {
443
- let b;
444
- if (p.swiping && p.eventData) {
445
- if (d.timeStamp - p.start < m.swipeDuration) {
446
- b = Object.assign(Object.assign({}, p.eventData), { event: d }), m.onSwiped && m.onSwiped(b);
447
- const T = m[`onSwiped${b.dir}`];
448
- T && T(b);
449
- }
450
- } else m.onTap && m.onTap({ event: d });
451
- return m.onTouchEndOrOnMouseUp && m.onTouchEndOrOnMouseUp({ event: d }), Object.assign(Object.assign(Object.assign({}, p), Ie), { eventData: b });
452
- });
453
- }, w = (d) => {
454
- document.removeEventListener(Ve, h), document.removeEventListener(Xe, w), u(d);
455
- }, y = (d, p) => {
456
- let m = () => {
457
- };
458
- if (d && d.addEventListener) {
459
- const b = Object.assign(Object.assign({}, Z.touchEventOptions), p.touchEventOptions), T = [["touchstart", l, b], ["touchmove", h, Object.assign(Object.assign({}, b), p.preventScrollOnSwipe ? { passive: !1 } : {})], ["touchend", u, b]];
460
- T.forEach(([I, R, z]) => d.addEventListener(I, R, z)), m = () => T.forEach(([I, R]) => d.removeEventListener(I, R));
461
- }
462
- return m;
463
- }, S = { ref: (d) => {
464
- d !== null && t((p, m) => {
465
- if (p.el === d) return p;
466
- const b = {};
467
- return p.el && p.el !== d && p.cleanUpTouch && (p.cleanUpTouch(), b.cleanUpTouch = void 0), m.trackTouch && d && (b.cleanUpTouch = y(d, m)), Object.assign(Object.assign(Object.assign({}, p), { el: d }), b);
468
- });
469
- } };
470
- return s.trackMouse && (S.onMouseDown = l), [S, y];
471
- }((t) => r.current = t(r.current, a.current), { trackMouse: e }), [e]);
472
- return r.current = function(t, s, l, h) {
473
- return s.trackTouch && t.el ? t.cleanUpTouch ? s.preventScrollOnSwipe !== l.preventScrollOnSwipe || s.touchEventOptions.passive !== l.touchEventOptions.passive ? (t.cleanUpTouch(), Object.assign(Object.assign({}, t), { cleanUpTouch: h(t.el, s) })) : t : Object.assign(Object.assign({}, t), { cleanUpTouch: h(t.el, s) }) : (t.cleanUpTouch && t.cleanUpTouch(), Object.assign(Object.assign({}, t), { cleanUpTouch: void 0 }));
474
- }(r.current, a.current, c.current, n), E;
16
+ function o() {
17
+ return i;
18
+ }
19
+ i.isRequired = i;
20
+ var u = { array: i, bigint: i, bool: i, func: i, number: i, object: i, string: i, symbol: i, any: i, arrayOf: o, element: i, elementType: i, instanceOf: o, node: i, objectOf: o, oneOf: o, oneOfType: o, shape: o, exact: o, checkPropTypes: s, resetWarningCache: a };
21
+ return u.PropTypes = u, u;
22
+ };
23
+ }, 556: (r, e, t) => {
24
+ r.exports = t(694)();
25
+ }, 925: (r) => {
26
+ r.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
27
+ }, 115: (r) => {
28
+ var e = typeof Element < "u", t = typeof Map == "function", n = typeof Set == "function", a = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
29
+ function s(i, o) {
30
+ if (i === o) return !0;
31
+ if (i && o && typeof i == "object" && typeof o == "object") {
32
+ if (i.constructor !== o.constructor) return !1;
33
+ var u, c, m, p;
34
+ if (Array.isArray(i)) {
35
+ if ((u = i.length) != o.length) return !1;
36
+ for (c = u; c-- != 0; ) if (!s(i[c], o[c])) return !1;
37
+ return !0;
475
38
  }
476
- var o = D(697);
477
- function ae(i) {
478
- return ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
479
- return typeof e;
480
- } : function(e) {
481
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
482
- }, ae(i);
39
+ if (t && i instanceof Map && o instanceof Map) {
40
+ if (i.size !== o.size) return !1;
41
+ for (p = i.entries(); !(c = p.next()).done; ) if (!o.has(c.value[0])) return !1;
42
+ for (p = i.entries(); !(c = p.next()).done; ) if (!s(c.value[1], o.get(c.value[0]))) return !1;
43
+ return !0;
483
44
  }
484
- function Ye(i, e) {
485
- var r = Object.keys(i);
486
- if (Object.getOwnPropertySymbols) {
487
- var a = Object.getOwnPropertySymbols(i);
488
- e && (a = a.filter(function(c) {
489
- return Object.getOwnPropertyDescriptor(i, c).enumerable;
490
- })), r.push.apply(r, a);
491
- }
492
- return r;
45
+ if (n && i instanceof Set && o instanceof Set) {
46
+ if (i.size !== o.size) return !1;
47
+ for (p = i.entries(); !(c = p.next()).done; ) if (!o.has(c.value[0])) return !1;
48
+ return !0;
493
49
  }
494
- function Je(i) {
495
- for (var e = 1; e < arguments.length; e++) {
496
- var r = arguments[e] != null ? arguments[e] : {};
497
- e % 2 ? Ye(Object(r), !0).forEach(function(a) {
498
- Mt(i, a, r[a]);
499
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(r)) : Ye(Object(r)).forEach(function(a) {
500
- Object.defineProperty(i, a, Object.getOwnPropertyDescriptor(r, a));
501
- });
502
- }
503
- return i;
50
+ if (a && ArrayBuffer.isView(i) && ArrayBuffer.isView(o)) {
51
+ if ((u = i.length) != o.length) return !1;
52
+ for (c = u; c-- != 0; ) if (i[c] !== o[c]) return !1;
53
+ return !0;
504
54
  }
505
- function Mt(i, e, r) {
506
- return (e = function(a) {
507
- var c = function(g, E) {
508
- if (ae(g) !== "object" || g === null) return g;
509
- var n = g[Symbol.toPrimitive];
510
- if (n !== void 0) {
511
- var t = n.call(g, E);
512
- if (ae(t) !== "object") return t;
513
- throw new TypeError("@@toPrimitive must return a primitive value.");
514
- }
515
- return String(g);
516
- }(a, "string");
517
- return ae(c) === "symbol" ? c : String(c);
518
- }(e)) in i ? Object.defineProperty(i, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = r, i;
55
+ if (i.constructor === RegExp) return i.source === o.source && i.flags === o.flags;
56
+ if (i.valueOf !== Object.prototype.valueOf && typeof i.valueOf == "function" && typeof o.valueOf == "function") return i.valueOf() === o.valueOf();
57
+ if (i.toString !== Object.prototype.toString && typeof i.toString == "function" && typeof o.toString == "function") return i.toString() === o.toString();
58
+ if ((u = (m = Object.keys(i)).length) !== Object.keys(o).length) return !1;
59
+ for (c = u; c-- != 0; ) if (!Object.prototype.hasOwnProperty.call(o, m[c])) return !1;
60
+ if (e && i instanceof Element) return !1;
61
+ for (c = u; c-- != 0; ) if ((m[c] !== "_owner" && m[c] !== "__v" && m[c] !== "__o" || !i.$$typeof) && !s(i[m[c]], o[m[c]])) return !1;
62
+ return !0;
63
+ }
64
+ return i != i && o != o;
65
+ }
66
+ r.exports = function(i, o) {
67
+ try {
68
+ return s(i, o);
69
+ } catch (u) {
70
+ if ((u.message || "").match(/stack|recursion/i)) return console.warn("react-fast-compare cannot handle circular refs"), !1;
71
+ throw u;
72
+ }
73
+ };
74
+ } }, Oe = {};
75
+ function E(r) {
76
+ var e = Oe[r];
77
+ if (e !== void 0) return e.exports;
78
+ var t = Oe[r] = { exports: {} };
79
+ return at[r](t, t.exports, E), t.exports;
80
+ }
81
+ E.n = (r) => {
82
+ var e = r && r.__esModule ? () => r.default : () => r;
83
+ return E.d(e, { a: e }), e;
84
+ }, E.d = (r, e) => {
85
+ for (var t in e) E.o(e, t) && !E.o(r, t) && Object.defineProperty(r, t, { enumerable: !0, get: e[t] });
86
+ }, E.g = function() {
87
+ if (typeof globalThis == "object") return globalThis;
88
+ try {
89
+ return this || new Function("return this")();
90
+ } catch {
91
+ if (typeof window == "object") return window;
92
+ }
93
+ }(), E.o = (r, e) => Object.prototype.hasOwnProperty.call(r, e);
94
+ var Ve = {};
95
+ function Ke(r) {
96
+ var e, t, n = "";
97
+ if (typeof r == "string" || typeof r == "number") n += r;
98
+ else if (typeof r == "object") if (Array.isArray(r)) {
99
+ var a = r.length;
100
+ for (e = 0; e < a; e++) r[e] && (t = Ke(r[e])) && (n && (n += " "), n += t);
101
+ } else for (t in r) r[t] && (n && (n += " "), n += t);
102
+ return n;
103
+ }
104
+ E.d(Ve, { A: () => $t });
105
+ const F = function() {
106
+ for (var r, e, t = 0, n = "", a = arguments.length; t < a; t++) (r = arguments[t]) && (e = Ke(r)) && (n && (n += " "), n += e);
107
+ return n;
108
+ }, h = (Ee = { default: () => oe.default, useMemo: () => oe.useMemo, useRef: () => oe.useRef }, le = {}, E.d(le, Ee), le);
109
+ var Ee, le;
110
+ const Z = function(r) {
111
+ var e = typeof r;
112
+ return r != null && (e == "object" || e == "function");
113
+ }, st = typeof global == "object" && global && global.Object === Object && global;
114
+ var ot = typeof self == "object" && self && self.Object === Object && self;
115
+ const Xe = st || ot || Function("return this")(), ue = function() {
116
+ return Xe.Date.now();
117
+ };
118
+ var lt = /\s/, ut = /^\s+/;
119
+ const ct = function(r) {
120
+ return r && r.slice(0, function(e) {
121
+ for (var t = e.length; t-- && lt.test(e.charAt(t)); ) ;
122
+ return t;
123
+ }(r) + 1).replace(ut, "");
124
+ }, ee = Xe.Symbol;
125
+ var $e = Object.prototype, ht = $e.hasOwnProperty, dt = $e.toString, X = ee ? ee.toStringTag : void 0, ft = Object.prototype.toString, ke = ee ? ee.toStringTag : void 0;
126
+ const pt = function(r) {
127
+ return r == null ? r === void 0 ? "[object Undefined]" : "[object Null]" : ke && ke in Object(r) ? function(e) {
128
+ var t = ht.call(e, X), n = e[X];
129
+ try {
130
+ e[X] = void 0;
131
+ var a = !0;
132
+ } catch {
133
+ }
134
+ var s = dt.call(e);
135
+ return a && (t ? e[X] = n : delete e[X]), s;
136
+ }(r) : function(e) {
137
+ return ft.call(e);
138
+ }(r);
139
+ };
140
+ var mt = /^[-+]0x[0-9a-f]+$/i, gt = /^0b[01]+$/i, bt = /^0o[0-7]+$/i, vt = parseInt;
141
+ const Ie = function(r) {
142
+ if (typeof r == "number") return r;
143
+ if (function(n) {
144
+ return typeof n == "symbol" || function(a) {
145
+ return a != null && typeof a == "object";
146
+ }(n) && pt(n) == "[object Symbol]";
147
+ }(r)) return NaN;
148
+ if (Z(r)) {
149
+ var e = typeof r.valueOf == "function" ? r.valueOf() : r;
150
+ r = Z(e) ? e + "" : e;
151
+ }
152
+ if (typeof r != "string") return r === 0 ? r : +r;
153
+ r = ct(r);
154
+ var t = gt.test(r);
155
+ return t || bt.test(r) ? vt(r.slice(2), t ? 2 : 8) : mt.test(r) ? NaN : +r;
156
+ };
157
+ var yt = Math.max, wt = Math.min;
158
+ const he = function(r, e, t) {
159
+ var n, a, s, i, o, u, c = 0, m = !1, p = !1, v = !0;
160
+ if (typeof r != "function") throw new TypeError("Expected a function");
161
+ function O(d) {
162
+ var b = n, S = a;
163
+ return n = a = void 0, c = d, i = r.apply(S, b);
164
+ }
165
+ function w(d) {
166
+ var b = d - u;
167
+ return u === void 0 || b >= e || b < 0 || p && d - c >= s;
168
+ }
169
+ function y() {
170
+ var d = ue();
171
+ if (w(d)) return f(d);
172
+ o = setTimeout(y, function(b) {
173
+ var S = e - (b - u);
174
+ return p ? wt(S, s - (b - c)) : S;
175
+ }(d));
176
+ }
177
+ function f(d) {
178
+ return o = void 0, v && n ? O(d) : (n = a = void 0, i);
179
+ }
180
+ function g() {
181
+ var d = ue(), b = w(d);
182
+ if (n = arguments, a = this, u = d, b) {
183
+ if (o === void 0) return function(S) {
184
+ return c = S, o = setTimeout(y, e), m ? O(S) : i;
185
+ }(u);
186
+ if (p) return clearTimeout(o), o = setTimeout(y, e), O(u);
187
+ }
188
+ return o === void 0 && (o = setTimeout(y, e)), i;
189
+ }
190
+ return e = Ie(e) || 0, Z(t) && (m = !!t.leading, s = (p = "maxWait" in t) ? yt(Ie(t.maxWait) || 0, e) : s, v = "trailing" in t ? !!t.trailing : v), g.cancel = function() {
191
+ o !== void 0 && clearTimeout(o), c = 0, n = u = a = o = void 0;
192
+ }, g.flush = function() {
193
+ return o === void 0 ? i : f(ue());
194
+ }, g;
195
+ }, xe = function(r, e, t) {
196
+ var n = !0, a = !0;
197
+ if (typeof r != "function") throw new TypeError("Expected a function");
198
+ return Z(t) && (n = "leading" in t ? !!t.leading : n, a = "trailing" in t ? !!t.trailing : a), he(r, e, { leading: n, maxWait: e, trailing: a });
199
+ };
200
+ var St = E(115), Tt = E.n(St), Ye = function() {
201
+ if (typeof Map < "u") return Map;
202
+ function r(e, t) {
203
+ var n = -1;
204
+ return e.some(function(a, s) {
205
+ return a[0] === t && (n = s, !0);
206
+ }), n;
207
+ }
208
+ return function() {
209
+ function e() {
210
+ this.__entries__ = [];
211
+ }
212
+ return Object.defineProperty(e.prototype, "size", { get: function() {
213
+ return this.__entries__.length;
214
+ }, enumerable: !0, configurable: !0 }), e.prototype.get = function(t) {
215
+ var n = r(this.__entries__, t), a = this.__entries__[n];
216
+ return a && a[1];
217
+ }, e.prototype.set = function(t, n) {
218
+ var a = r(this.__entries__, t);
219
+ ~a ? this.__entries__[a][1] = n : this.__entries__.push([t, n]);
220
+ }, e.prototype.delete = function(t) {
221
+ var n = this.__entries__, a = r(n, t);
222
+ ~a && n.splice(a, 1);
223
+ }, e.prototype.has = function(t) {
224
+ return !!~r(this.__entries__, t);
225
+ }, e.prototype.clear = function() {
226
+ this.__entries__.splice(0);
227
+ }, e.prototype.forEach = function(t, n) {
228
+ n === void 0 && (n = null);
229
+ for (var a = 0, s = this.__entries__; a < s.length; a++) {
230
+ var i = s[a];
231
+ t.call(n, i[1], i[0]);
519
232
  }
520
- var Lt = { description: "", fullscreen: "", isFullscreen: !1, originalAlt: "", originalHeight: "", originalWidth: "", originalTitle: "", sizes: "", srcSet: "", loading: "eager" }, xe = f().memo(function(i) {
521
- var e = Je(Je({}, Lt), i), r = e.description, a = e.fullscreen, c = e.handleImageLoaded, g = e.isFullscreen, E = e.onImageError, n = e.original, t = e.originalAlt, s = e.originalHeight, l = e.originalWidth, h = e.originalTitle, u = e.sizes, w = e.srcSet, y = e.loading, S = g && a || n;
522
- return f().createElement(f().Fragment, null, f().createElement("img", { className: "image-gallery-image", src: S, alt: t, srcSet: w, height: s, width: l, sizes: u, title: h, onLoad: function(d) {
523
- return c(d, n);
524
- }, onError: E, loading: y }), r && f().createElement("span", { className: "image-gallery-description" }, r));
525
- });
526
- xe.displayName = "Item", xe.propTypes = { description: o.string, fullscreen: o.string, handleImageLoaded: o.func.isRequired, isFullscreen: o.bool, onImageError: o.func.isRequired, original: o.string.isRequired, originalAlt: o.string, originalHeight: o.string, originalWidth: o.string, originalTitle: o.string, sizes: o.string, srcSet: o.string, loading: o.string };
527
- const Dt = xe;
528
- function se(i) {
529
- return se = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
530
- return typeof e;
531
- } : function(e) {
532
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
533
- }, se(i);
233
+ }, e;
234
+ }();
235
+ }(), de = typeof window < "u" && typeof document < "u" && window.document === document, te = E.g !== void 0 && E.g.Math === Math ? E.g : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")(), Ot = typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(te) : function(r) {
236
+ return setTimeout(function() {
237
+ return r(Date.now());
238
+ }, 1e3 / 60);
239
+ }, Et = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], kt = typeof MutationObserver < "u", It = function() {
240
+ function r() {
241
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = /* @__PURE__ */ function(e) {
242
+ var t = !1, n = !1, a = 0;
243
+ function s() {
244
+ t && (t = !1, e()), n && o();
534
245
  }
535
- function Qe(i, e) {
536
- var r = Object.keys(i);
537
- if (Object.getOwnPropertySymbols) {
538
- var a = Object.getOwnPropertySymbols(i);
539
- e && (a = a.filter(function(c) {
540
- return Object.getOwnPropertyDescriptor(i, c).enumerable;
541
- })), r.push.apply(r, a);
542
- }
543
- return r;
246
+ function i() {
247
+ Ot(s);
544
248
  }
545
- function Ze(i) {
546
- for (var e = 1; e < arguments.length; e++) {
547
- var r = arguments[e] != null ? arguments[e] : {};
548
- e % 2 ? Qe(Object(r), !0).forEach(function(a) {
549
- Wt(i, a, r[a]);
550
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(r)) : Qe(Object(r)).forEach(function(a) {
551
- Object.defineProperty(i, a, Object.getOwnPropertyDescriptor(r, a));
552
- });
553
- }
554
- return i;
249
+ function o() {
250
+ var u = Date.now();
251
+ if (t) {
252
+ if (u - a < 2) return;
253
+ n = !0;
254
+ } else t = !0, n = !1, setTimeout(i, 20);
255
+ a = u;
555
256
  }
556
- function Wt(i, e, r) {
557
- return (e = function(a) {
558
- var c = function(g, E) {
559
- if (se(g) !== "object" || g === null) return g;
560
- var n = g[Symbol.toPrimitive];
561
- if (n !== void 0) {
562
- var t = n.call(g, E);
563
- if (se(t) !== "object") return t;
564
- throw new TypeError("@@toPrimitive must return a primitive value.");
565
- }
566
- return String(g);
567
- }(a, "string");
568
- return se(c) === "symbol" ? c : String(c);
569
- }(e)) in i ? Object.defineProperty(i, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = r, i;
257
+ return o;
258
+ }(this.refresh.bind(this));
259
+ }
260
+ return r.prototype.addObserver = function(e) {
261
+ ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
262
+ }, r.prototype.removeObserver = function(e) {
263
+ var t = this.observers_, n = t.indexOf(e);
264
+ ~n && t.splice(n, 1), !t.length && this.connected_ && this.disconnect_();
265
+ }, r.prototype.refresh = function() {
266
+ this.updateObservers_() && this.refresh();
267
+ }, r.prototype.updateObservers_ = function() {
268
+ var e = this.observers_.filter(function(t) {
269
+ return t.gatherActive(), t.hasActive();
270
+ });
271
+ return e.forEach(function(t) {
272
+ return t.broadcastActive();
273
+ }), e.length > 0;
274
+ }, r.prototype.connect_ = function() {
275
+ de && !this.connected_ && (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), kt ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, { attributes: !0, childList: !0, characterData: !0, subtree: !0 })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
276
+ }, r.prototype.disconnect_ = function() {
277
+ de && this.connected_ && (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
278
+ }, r.prototype.onTransitionEnd_ = function(e) {
279
+ var t = e.propertyName, n = t === void 0 ? "" : t;
280
+ Et.some(function(a) {
281
+ return !!~n.indexOf(a);
282
+ }) && this.refresh();
283
+ }, r.getInstance = function() {
284
+ return this.instance_ || (this.instance_ = new r()), this.instance_;
285
+ }, r.instance_ = null, r;
286
+ }(), Pe = function(r, e) {
287
+ for (var t = 0, n = Object.keys(e); t < n.length; t++) {
288
+ var a = n[t];
289
+ Object.defineProperty(r, a, { value: e[a], enumerable: !1, writable: !1, configurable: !0 });
290
+ }
291
+ return r;
292
+ }, H = function(r) {
293
+ return r && r.ownerDocument && r.ownerDocument.defaultView || te;
294
+ }, je = ne(0, 0, 0, 0);
295
+ function Q(r) {
296
+ return parseFloat(r) || 0;
297
+ }
298
+ function _e(r) {
299
+ for (var e = [], t = 1; t < arguments.length; t++) e[t - 1] = arguments[t];
300
+ return e.reduce(function(n, a) {
301
+ return n + Q(r["border-" + a + "-width"]);
302
+ }, 0);
303
+ }
304
+ var xt = typeof SVGGraphicsElement < "u" ? function(r) {
305
+ return r instanceof H(r).SVGGraphicsElement;
306
+ } : function(r) {
307
+ return r instanceof H(r).SVGElement && typeof r.getBBox == "function";
308
+ };
309
+ function Pt(r) {
310
+ return de ? xt(r) ? function(e) {
311
+ var t = e.getBBox();
312
+ return ne(0, 0, t.width, t.height);
313
+ }(r) : function(e) {
314
+ var t = e.clientWidth, n = e.clientHeight;
315
+ if (!t && !n) return je;
316
+ var a = H(e).getComputedStyle(e), s = function(v) {
317
+ for (var O = {}, w = 0, y = ["top", "right", "bottom", "left"]; w < y.length; w++) {
318
+ var f = y[w], g = v["padding-" + f];
319
+ O[f] = Q(g);
570
320
  }
571
- var Ct = { left: f().createElement("polyline", { points: "15 18 9 12 15 6" }), right: f().createElement("polyline", { points: "9 18 15 12 9 6" }), maximize: f().createElement("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" }), minimize: f().createElement("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }), play: f().createElement("polygon", { points: "5 3 19 12 5 21 5 3" }), pause: f().createElement(f().Fragment, null, f().createElement("rect", { x: "6", y: "4", width: "4", height: "16" }), f().createElement("rect", { x: "14", y: "4", width: "4", height: "16" })) }, Ft = { strokeWidth: 1, viewBox: "0 0 24 24" }, et = function(i) {
572
- var e = Ze(Ze({}, Ft), i), r = e.strokeWidth, a = e.viewBox, c = e.icon;
573
- return f().createElement("svg", { className: "image-gallery-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: a, fill: "none", stroke: "currentColor", strokeWidth: r, strokeLinecap: "round", strokeLinejoin: "round" }, Ct[c]);
574
- };
575
- et.propTypes = { strokeWidth: o.number, viewBox: o.string, icon: (0, o.oneOf)(["left", "right", "maximize", "minimize", "play", "pause"]).isRequired };
576
- const be = et;
577
- var je = f().memo(function(i) {
578
- var e = i.isFullscreen, r = i.onClick;
579
- return f().createElement("button", { type: "button", className: "image-gallery-icon image-gallery-fullscreen-button", onClick: r, "aria-label": "Open Fullscreen" }, f().createElement(be, { strokeWidth: 2, icon: e ? "minimize" : "maximize" }));
580
- });
581
- je.displayName = "Fullscreen", je.propTypes = { isFullscreen: o.bool.isRequired, onClick: o.func.isRequired };
582
- const zt = je;
583
- var Pe = f().memo(function(i) {
584
- var e = i.disabled, r = i.onClick;
585
- return f().createElement("button", { type: "button", className: "image-gallery-icon image-gallery-left-nav", disabled: e, onClick: r, "aria-label": "Previous Slide" }, f().createElement(be, { icon: "left", viewBox: "6 0 12 24" }));
321
+ return O;
322
+ }(a), i = s.left + s.right, o = s.top + s.bottom, u = Q(a.width), c = Q(a.height);
323
+ if (a.boxSizing === "border-box" && (Math.round(u + i) !== t && (u -= _e(a, "left", "right") + i), Math.round(c + o) !== n && (c -= _e(a, "top", "bottom") + o)), !function(v) {
324
+ return v === H(v).document.documentElement;
325
+ }(e)) {
326
+ var m = Math.round(u + i) - t, p = Math.round(c + o) - n;
327
+ Math.abs(m) !== 1 && (u -= m), Math.abs(p) !== 1 && (c -= p);
328
+ }
329
+ return ne(s.left, s.top, u, c);
330
+ }(r) : je;
331
+ }
332
+ function ne(r, e, t, n) {
333
+ return { x: r, y: e, width: t, height: n };
334
+ }
335
+ var jt = function() {
336
+ function r(e) {
337
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = ne(0, 0, 0, 0), this.target = e;
338
+ }
339
+ return r.prototype.isActive = function() {
340
+ var e = Pt(this.target);
341
+ return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
342
+ }, r.prototype.broadcastRect = function() {
343
+ var e = this.contentRect_;
344
+ return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
345
+ }, r;
346
+ }(), _t = function(r, e) {
347
+ var t = function(n) {
348
+ var a = n.x, s = n.y, i = n.width, o = n.height, u = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, c = Object.create(u.prototype);
349
+ return Pe(c, { x: a, y: s, width: i, height: o, top: s, right: a + i, bottom: o + s, left: a }), c;
350
+ }(e);
351
+ Pe(this, { target: r, contentRect: t });
352
+ }, Rt = function() {
353
+ function r(e, t, n) {
354
+ if (this.activeObservations_ = [], this.observations_ = new Ye(), typeof e != "function") throw new TypeError("The callback provided as parameter 1 is not a function.");
355
+ this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
356
+ }
357
+ return r.prototype.observe = function(e) {
358
+ if (!arguments.length) throw new TypeError("1 argument required, but only 0 present.");
359
+ if (typeof Element < "u" && Element instanceof Object) {
360
+ if (!(e instanceof H(e).Element)) throw new TypeError('parameter 1 is not of type "Element".');
361
+ var t = this.observations_;
362
+ t.has(e) || (t.set(e, new jt(e)), this.controller_.addObserver(this), this.controller_.refresh());
363
+ }
364
+ }, r.prototype.unobserve = function(e) {
365
+ if (!arguments.length) throw new TypeError("1 argument required, but only 0 present.");
366
+ if (typeof Element < "u" && Element instanceof Object) {
367
+ if (!(e instanceof H(e).Element)) throw new TypeError('parameter 1 is not of type "Element".');
368
+ var t = this.observations_;
369
+ t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
370
+ }
371
+ }, r.prototype.disconnect = function() {
372
+ this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
373
+ }, r.prototype.gatherActive = function() {
374
+ var e = this;
375
+ this.clearActive(), this.observations_.forEach(function(t) {
376
+ t.isActive() && e.activeObservations_.push(t);
377
+ });
378
+ }, r.prototype.broadcastActive = function() {
379
+ if (this.hasActive()) {
380
+ var e = this.callbackCtx_, t = this.activeObservations_.map(function(n) {
381
+ return new _t(n.target, n.broadcastRect());
586
382
  });
587
- Pe.displayName = "LeftNav", Pe.propTypes = { disabled: o.bool.isRequired, onClick: o.func.isRequired };
588
- const Nt = Pe;
589
- var _e = f().memo(function(i) {
590
- var e = i.disabled, r = i.onClick;
591
- return f().createElement("button", { type: "button", className: "image-gallery-icon image-gallery-right-nav", disabled: e, onClick: r, "aria-label": "Next Slide" }, f().createElement(be, { icon: "right", viewBox: "6 0 12 24" }));
383
+ this.callback_.call(e, t, e), this.clearActive();
384
+ }
385
+ }, r.prototype.clearActive = function() {
386
+ this.activeObservations_.splice(0);
387
+ }, r.prototype.hasActive = function() {
388
+ return this.activeObservations_.length > 0;
389
+ }, r;
390
+ }(), Je = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Ye(), Qe = function r(e) {
391
+ if (!(this instanceof r)) throw new TypeError("Cannot call a class as a function.");
392
+ if (!arguments.length) throw new TypeError("1 argument required, but only 0 present.");
393
+ var t = It.getInstance(), n = new Rt(e, t, this);
394
+ Je.set(this, n);
395
+ };
396
+ ["observe", "unobserve", "disconnect"].forEach(function(r) {
397
+ Qe.prototype[r] = function() {
398
+ var e;
399
+ return (e = Je.get(this))[r].apply(e, arguments);
400
+ };
401
+ });
402
+ const Re = te.ResizeObserver !== void 0 ? te.ResizeObserver : Qe, R = "Left", L = "Right", M = "Up", D = "Down", U = { delta: 10, preventScrollOnSwipe: !1, rotationAngle: 0, trackMouse: !1, trackTouch: !0, swipeDuration: 1 / 0, touchEventOptions: { passive: !0 } }, ce = { first: !0, initial: [0, 0], start: 0, swiping: !1, xy: [0, 0] }, Le = "mousemove", Me = "mouseup";
403
+ function De(r, e) {
404
+ if (e === 0) return r;
405
+ const t = Math.PI / 180 * e;
406
+ return [r[0] * Math.cos(t) + r[1] * Math.sin(t), r[1] * Math.cos(t) - r[0] * Math.sin(t)];
407
+ }
408
+ function Lt(r) {
409
+ const { trackMouse: e } = r, t = h.useRef(Object.assign({}, ce)), n = h.useRef(Object.assign({}, U)), a = h.useRef(Object.assign({}, n.current));
410
+ let s;
411
+ for (s in a.current = Object.assign({}, n.current), n.current = Object.assign(Object.assign({}, U), r), U) n.current[s] === void 0 && (n.current[s] = U[s]);
412
+ const [i, o] = h.useMemo(() => function(u, c) {
413
+ const m = (f) => {
414
+ const g = "touches" in f;
415
+ g && f.touches.length > 1 || u((d, b) => {
416
+ b.trackMouse && !g && (document.addEventListener(Le, p), document.addEventListener(Me, O));
417
+ const { clientX: S, clientY: T } = g ? f.touches[0] : f, I = De([S, T], b.rotationAngle);
418
+ return b.onTouchStartOrOnMouseDown && b.onTouchStartOrOnMouseDown({ event: f }), Object.assign(Object.assign(Object.assign({}, d), ce), { initial: I.slice(), xy: I, start: f.timeStamp || 0 });
592
419
  });
593
- _e.displayName = "RightNav", _e.propTypes = { disabled: o.bool.isRequired, onClick: o.func.isRequired };
594
- const Bt = _e;
595
- var Re = f().memo(function(i) {
596
- var e = i.isPlaying, r = i.onClick;
597
- return f().createElement("button", { type: "button", className: "image-gallery-icon image-gallery-play-button", onClick: r, "aria-label": "Play or Pause Slideshow" }, f().createElement(be, { strokeWidth: 2, icon: e ? "pause" : "play" }));
420
+ }, p = (f) => {
421
+ u((g, d) => {
422
+ const b = "touches" in f;
423
+ if (b && f.touches.length > 1) return g;
424
+ if (f.timeStamp - g.start > d.swipeDuration) return g.swiping ? Object.assign(Object.assign({}, g), { swiping: !1 }) : g;
425
+ const { clientX: S, clientY: T } = b ? f.touches[0] : f, [I, W] = De([S, T], d.rotationAngle), C = I - g.xy[0], x = W - g.xy[1], j = Math.abs(C), P = Math.abs(x), _ = (f.timeStamp || 0) - g.start, z = Math.sqrt(j * j + P * P) / (_ || 1), B = [C / (_ || 1), x / (_ || 1)], N = function(ie, ae, se, rt) {
426
+ return ie > ae ? se > 0 ? L : R : rt > 0 ? D : M;
427
+ }(j, P, C, x), k = typeof d.delta == "number" ? d.delta : d.delta[N.toLowerCase()] || U.delta;
428
+ if (j < k && P < k && !g.swiping) return g;
429
+ const A = { absX: j, absY: P, deltaX: C, deltaY: x, dir: N, event: f, first: g.first, initial: g.initial, velocity: z, vxvy: B };
430
+ A.first && d.onSwipeStart && d.onSwipeStart(A), d.onSwiping && d.onSwiping(A);
431
+ let K = !1;
432
+ return (d.onSwiping || d.onSwiped || d[`onSwiped${N}`]) && (K = !0), K && d.preventScrollOnSwipe && d.trackTouch && f.cancelable && f.preventDefault(), Object.assign(Object.assign({}, g), { first: !1, eventData: A, swiping: !0 });
598
433
  });
599
- Re.displayName = "PlayPause", Re.propTypes = { isPlaying: o.bool.isRequired, onClick: o.func.isRequired };
600
- const At = Re;
601
- function oe(i) {
602
- return oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
603
- return typeof e;
604
- } : function(e) {
605
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
606
- }, oe(i);
607
- }
608
- function Me() {
609
- return Me = Object.assign ? Object.assign.bind() : function(i) {
610
- for (var e = 1; e < arguments.length; e++) {
611
- var r = arguments[e];
612
- for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (i[a] = r[a]);
434
+ }, v = (f) => {
435
+ u((g, d) => {
436
+ let b;
437
+ if (g.swiping && g.eventData) {
438
+ if (f.timeStamp - g.start < d.swipeDuration) {
439
+ b = Object.assign(Object.assign({}, g.eventData), { event: f }), d.onSwiped && d.onSwiped(b);
440
+ const S = d[`onSwiped${b.dir}`];
441
+ S && S(b);
613
442
  }
614
- return i;
615
- }, Me.apply(this, arguments);
616
- }
617
- function tt(i, e) {
618
- var r = Object.keys(i);
619
- if (Object.getOwnPropertySymbols) {
620
- var a = Object.getOwnPropertySymbols(i);
621
- e && (a = a.filter(function(c) {
622
- return Object.getOwnPropertyDescriptor(i, c).enumerable;
623
- })), r.push.apply(r, a);
624
- }
625
- return r;
626
- }
627
- function nt(i) {
628
- for (var e = 1; e < arguments.length; e++) {
629
- var r = arguments[e] != null ? arguments[e] : {};
630
- e % 2 ? tt(Object(r), !0).forEach(function(a) {
631
- Gt(i, a, r[a]);
632
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(r)) : tt(Object(r)).forEach(function(a) {
633
- Object.defineProperty(i, a, Object.getOwnPropertyDescriptor(r, a));
634
- });
635
- }
636
- return i;
637
- }
638
- function Gt(i, e, r) {
639
- return (e = function(a) {
640
- var c = function(g, E) {
641
- if (oe(g) !== "object" || g === null) return g;
642
- var n = g[Symbol.toPrimitive];
643
- if (n !== void 0) {
644
- var t = n.call(g, E);
645
- if (oe(t) !== "object") return t;
646
- throw new TypeError("@@toPrimitive must return a primitive value.");
647
- }
648
- return String(g);
649
- }(a, "string");
650
- return oe(c) === "symbol" ? c : String(c);
651
- }(e)) in i ? Object.defineProperty(i, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = r, i;
652
- }
653
- var Ut = { className: "", delta: 0, onSwiping: function() {
654
- }, onSwiped: function() {
655
- } }, it = function(i) {
656
- var e = nt(nt({}, Ut), i), r = e.children, a = e.className, c = Rt({ delta: e.delta, onSwiping: e.onSwiping, onSwiped: e.onSwiped });
657
- return f().createElement("div", Me({}, c, { className: a }), r);
443
+ } else d.onTap && d.onTap({ event: f });
444
+ return d.onTouchEndOrOnMouseUp && d.onTouchEndOrOnMouseUp({ event: f }), Object.assign(Object.assign(Object.assign({}, g), ce), { eventData: b });
445
+ });
446
+ }, O = (f) => {
447
+ document.removeEventListener(Le, p), document.removeEventListener(Me, O), v(f);
448
+ }, w = (f, g) => {
449
+ let d = () => {
658
450
  };
659
- it.propTypes = { children: o.node.isRequired, className: o.string, delta: o.number, onSwiped: o.func, onSwiping: o.func };
660
- const rt = it;
661
- function ee(i) {
662
- return ee = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
663
- return typeof e;
664
- } : function(e) {
665
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
666
- }, ee(i);
667
- }
668
- function at(i, e) {
669
- var r = Object.keys(i);
670
- if (Object.getOwnPropertySymbols) {
671
- var a = Object.getOwnPropertySymbols(i);
672
- e && (a = a.filter(function(c) {
673
- return Object.getOwnPropertyDescriptor(i, c).enumerable;
674
- })), r.push.apply(r, a);
675
- }
676
- return r;
677
- }
678
- function st(i) {
679
- for (var e = 1; e < arguments.length; e++) {
680
- var r = arguments[e] != null ? arguments[e] : {};
681
- e % 2 ? at(Object(r), !0).forEach(function(a) {
682
- ot(i, a, r[a]);
683
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(r)) : at(Object(r)).forEach(function(a) {
684
- Object.defineProperty(i, a, Object.getOwnPropertyDescriptor(r, a));
685
- });
686
- }
687
- return i;
451
+ if (f && f.addEventListener) {
452
+ const b = Object.assign(Object.assign({}, U.touchEventOptions), g.touchEventOptions), S = [["touchstart", m, b], ["touchmove", p, Object.assign(Object.assign({}, b), g.preventScrollOnSwipe ? { passive: !1 } : {})], ["touchend", v, b]];
453
+ S.forEach(([T, I, W]) => f.addEventListener(T, I, W)), d = () => S.forEach(([T, I]) => f.removeEventListener(T, I));
688
454
  }
689
- function qt(i, e) {
690
- for (var r = 0; r < e.length; r++) {
691
- var a = e[r];
692
- a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(i, lt(a.key), a);
693
- }
694
- }
695
- function Le(i, e) {
696
- return Le = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, a) {
697
- return r.__proto__ = a, r;
698
- }, Le(i, e);
699
- }
700
- function Ht(i, e) {
701
- if (e && (ee(e) === "object" || typeof e == "function")) return e;
702
- if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
703
- return M(i);
455
+ return d;
456
+ }, y = { ref: (f) => {
457
+ f !== null && u((g, d) => {
458
+ if (g.el === f) return g;
459
+ const b = {};
460
+ return g.el && g.el !== f && g.cleanUpTouch && (g.cleanUpTouch(), b.cleanUpTouch = void 0), d.trackTouch && f && (b.cleanUpTouch = w(f, d)), Object.assign(Object.assign(Object.assign({}, g), { el: f }), b);
461
+ });
462
+ } };
463
+ return c.trackMouse && (y.onMouseDown = m), [y, w];
464
+ }((u) => t.current = u(t.current, n.current), { trackMouse: e }), [e]);
465
+ return t.current = function(u, c, m, p) {
466
+ return c.trackTouch && u.el ? u.cleanUpTouch ? c.preventScrollOnSwipe !== m.preventScrollOnSwipe || c.touchEventOptions.passive !== m.touchEventOptions.passive ? (u.cleanUpTouch(), Object.assign(Object.assign({}, u), { cleanUpTouch: p(u.el, c) })) : u : Object.assign(Object.assign({}, u), { cleanUpTouch: p(u.el, c) }) : (u.cleanUpTouch && u.cleanUpTouch(), Object.assign(Object.assign({}, u), { cleanUpTouch: void 0 }));
467
+ }(t.current, n.current, a.current, o), i;
468
+ }
469
+ var l = E(556);
470
+ function $(r) {
471
+ return $ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
472
+ return typeof e;
473
+ } : function(e) {
474
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
475
+ }, $(r);
476
+ }
477
+ function Ce(r, e) {
478
+ var t = Object.keys(r);
479
+ if (Object.getOwnPropertySymbols) {
480
+ var n = Object.getOwnPropertySymbols(r);
481
+ e && (n = n.filter(function(a) {
482
+ return Object.getOwnPropertyDescriptor(r, a).enumerable;
483
+ })), t.push.apply(t, n);
484
+ }
485
+ return t;
486
+ }
487
+ function We(r) {
488
+ for (var e = 1; e < arguments.length; e++) {
489
+ var t = arguments[e] != null ? arguments[e] : {};
490
+ e % 2 ? Ce(Object(t), !0).forEach(function(n) {
491
+ Mt(r, n, t[n]);
492
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Ce(Object(t)).forEach(function(n) {
493
+ Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
494
+ });
495
+ }
496
+ return r;
497
+ }
498
+ function Mt(r, e, t) {
499
+ return (e = function(n) {
500
+ var a = function(s) {
501
+ if ($(s) != "object" || !s) return s;
502
+ var i = s[Symbol.toPrimitive];
503
+ if (i !== void 0) {
504
+ var o = i.call(s, "string");
505
+ if ($(o) != "object") return o;
506
+ throw new TypeError("@@toPrimitive must return a primitive value.");
704
507
  }
705
- function M(i) {
706
- if (i === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
707
- return i;
508
+ return String(s);
509
+ }(n);
510
+ return $(a) == "symbol" ? a : a + "";
511
+ }(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
512
+ }
513
+ var Dt = { description: "", fullscreen: "", isFullscreen: !1, originalAlt: "", originalHeight: "", originalWidth: "", originalTitle: "", sizes: "", srcSet: "", loading: "eager" }, fe = h.default.memo(function(r) {
514
+ var e = We(We({}, Dt), r), t = e.description, n = e.fullscreen, a = e.handleImageLoaded, s = e.isFullscreen, i = e.onImageError, o = e.original, u = e.originalAlt, c = e.originalHeight, m = e.originalWidth, p = e.originalTitle, v = e.sizes, O = e.srcSet, w = e.loading, y = s && n || o;
515
+ return h.default.createElement(h.default.Fragment, null, h.default.createElement("img", { className: "image-gallery-image", src: y, alt: u, srcSet: O, height: c, width: m, sizes: v, title: p, onLoad: function(f) {
516
+ return a(f, o);
517
+ }, onError: i, loading: w }), t && h.default.createElement("span", { className: "image-gallery-description" }, t));
518
+ });
519
+ fe.displayName = "Item", fe.propTypes = { description: l.string, fullscreen: l.string, handleImageLoaded: l.func.isRequired, isFullscreen: l.bool, onImageError: l.func.isRequired, original: l.string.isRequired, originalAlt: l.string, originalHeight: l.string, originalWidth: l.string, originalTitle: l.string, sizes: l.string, srcSet: l.string, loading: l.string };
520
+ const Ct = fe;
521
+ function Y(r) {
522
+ return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
523
+ return typeof e;
524
+ } : function(e) {
525
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
526
+ }, Y(r);
527
+ }
528
+ function Ne(r, e) {
529
+ var t = Object.keys(r);
530
+ if (Object.getOwnPropertySymbols) {
531
+ var n = Object.getOwnPropertySymbols(r);
532
+ e && (n = n.filter(function(a) {
533
+ return Object.getOwnPropertyDescriptor(r, a).enumerable;
534
+ })), t.push.apply(t, n);
535
+ }
536
+ return t;
537
+ }
538
+ function Fe(r) {
539
+ for (var e = 1; e < arguments.length; e++) {
540
+ var t = arguments[e] != null ? arguments[e] : {};
541
+ e % 2 ? Ne(Object(t), !0).forEach(function(n) {
542
+ Wt(r, n, t[n]);
543
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Ne(Object(t)).forEach(function(n) {
544
+ Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
545
+ });
546
+ }
547
+ return r;
548
+ }
549
+ function Wt(r, e, t) {
550
+ return (e = function(n) {
551
+ var a = function(s) {
552
+ if (Y(s) != "object" || !s) return s;
553
+ var i = s[Symbol.toPrimitive];
554
+ if (i !== void 0) {
555
+ var o = i.call(s, "string");
556
+ if (Y(o) != "object") return o;
557
+ throw new TypeError("@@toPrimitive must return a primitive value.");
708
558
  }
709
- function ve(i) {
710
- return ve = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
711
- return e.__proto__ || Object.getPrototypeOf(e);
712
- }, ve(i);
559
+ return String(s);
560
+ }(n);
561
+ return Y(a) == "symbol" ? a : a + "";
562
+ }(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
563
+ }
564
+ var Nt = { left: h.default.createElement("polyline", { points: "15 18 9 12 15 6" }), right: h.default.createElement("polyline", { points: "9 18 15 12 9 6" }), top: h.default.createElement("polyline", { points: "6 15 12 9 18 15" }), bottom: h.default.createElement("polyline", { points: "6 9 12 15 18 9" }), maximize: h.default.createElement("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" }), minimize: h.default.createElement("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }), play: h.default.createElement("polygon", { points: "5 3 19 12 5 21 5 3" }), pause: h.default.createElement(h.default.Fragment, null, h.default.createElement("rect", { x: "6", y: "4", width: "4", height: "16" }), h.default.createElement("rect", { x: "14", y: "4", width: "4", height: "16" })) }, Ft = { strokeWidth: 1, viewBox: "0 0 24 24" }, Ze = function(r) {
565
+ var e = Fe(Fe({}, Ft), r), t = e.strokeWidth, n = e.viewBox, a = e.icon;
566
+ return h.default.createElement("svg", { className: "image-gallery-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: n, fill: "none", stroke: "currentColor", strokeWidth: t, strokeLinecap: "round", strokeLinejoin: "round" }, Nt[a]);
567
+ };
568
+ Ze.propTypes = { strokeWidth: l.number, viewBox: l.string, icon: (0, l.oneOf)(["left", "right", "top", "bottom", "maximize", "minimize", "play", "pause"]).isRequired };
569
+ const V = Ze;
570
+ var pe = h.default.memo(function(r) {
571
+ var e = r.isFullscreen, t = r.onClick;
572
+ return h.default.createElement("button", { type: "button", className: "image-gallery-icon image-gallery-fullscreen-button", onClick: t, "aria-label": "Open Fullscreen" }, h.default.createElement(V, { strokeWidth: 2, icon: e ? "minimize" : "maximize" }));
573
+ });
574
+ pe.displayName = "Fullscreen", pe.propTypes = { isFullscreen: l.bool.isRequired, onClick: l.func.isRequired };
575
+ const zt = pe;
576
+ var me = h.default.memo(function(r) {
577
+ var e = r.disabled, t = r.onClick;
578
+ return h.default.createElement("button", { type: "button", className: "image-gallery-icon image-gallery-left-nav", disabled: e, onClick: t, "aria-label": "Previous Slide" }, h.default.createElement(V, { icon: "left", viewBox: "6 0 12 24" }));
579
+ });
580
+ me.displayName = "LeftNav", me.propTypes = { disabled: l.bool.isRequired, onClick: l.func.isRequired };
581
+ const Bt = me;
582
+ var ge = h.default.memo(function(r) {
583
+ var e = r.disabled, t = r.onClick;
584
+ return h.default.createElement("button", { type: "button", className: "image-gallery-icon image-gallery-right-nav", disabled: e, onClick: t, "aria-label": "Next Slide" }, h.default.createElement(V, { icon: "right", viewBox: "6 0 12 24" }));
585
+ });
586
+ ge.displayName = "RightNav", ge.propTypes = { disabled: l.bool.isRequired, onClick: l.func.isRequired };
587
+ const At = ge;
588
+ var be = h.default.memo(function(r) {
589
+ var e = r.isPlaying, t = r.onClick;
590
+ return h.default.createElement("button", { type: "button", className: "image-gallery-icon image-gallery-play-button", onClick: t, "aria-label": "Play or Pause Slideshow" }, h.default.createElement(V, { strokeWidth: 2, icon: e ? "pause" : "play" }));
591
+ });
592
+ be.displayName = "PlayPause", be.propTypes = { isPlaying: l.bool.isRequired, onClick: l.func.isRequired };
593
+ const Ut = be;
594
+ function J(r) {
595
+ return J = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
596
+ return typeof e;
597
+ } : function(e) {
598
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
599
+ }, J(r);
600
+ }
601
+ function ve() {
602
+ return ve = Object.assign ? Object.assign.bind() : function(r) {
603
+ for (var e = 1; e < arguments.length; e++) {
604
+ var t = arguments[e];
605
+ for (var n in t) ({}).hasOwnProperty.call(t, n) && (r[n] = t[n]);
606
+ }
607
+ return r;
608
+ }, ve.apply(null, arguments);
609
+ }
610
+ function ze(r, e) {
611
+ var t = Object.keys(r);
612
+ if (Object.getOwnPropertySymbols) {
613
+ var n = Object.getOwnPropertySymbols(r);
614
+ e && (n = n.filter(function(a) {
615
+ return Object.getOwnPropertyDescriptor(r, a).enumerable;
616
+ })), t.push.apply(t, n);
617
+ }
618
+ return t;
619
+ }
620
+ function Be(r) {
621
+ for (var e = 1; e < arguments.length; e++) {
622
+ var t = arguments[e] != null ? arguments[e] : {};
623
+ e % 2 ? ze(Object(t), !0).forEach(function(n) {
624
+ Gt(r, n, t[n]);
625
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : ze(Object(t)).forEach(function(n) {
626
+ Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
627
+ });
628
+ }
629
+ return r;
630
+ }
631
+ function Gt(r, e, t) {
632
+ return (e = function(n) {
633
+ var a = function(s) {
634
+ if (J(s) != "object" || !s) return s;
635
+ var i = s[Symbol.toPrimitive];
636
+ if (i !== void 0) {
637
+ var o = i.call(s, "string");
638
+ if (J(o) != "object") return o;
639
+ throw new TypeError("@@toPrimitive must return a primitive value.");
713
640
  }
714
- function ot(i, e, r) {
715
- return (e = lt(e)) in i ? Object.defineProperty(i, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = r, i;
641
+ return String(s);
642
+ }(n);
643
+ return J(a) == "symbol" ? a : a + "";
644
+ }(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
645
+ }
646
+ var qt = { className: "", delta: 0, onSwiping: function() {
647
+ }, onSwiped: function() {
648
+ } }, et = function(r) {
649
+ var e = Be(Be({}, qt), r), t = e.children, n = e.className, a = Lt({ delta: e.delta, onSwiping: e.onSwiping, onSwiped: e.onSwiped });
650
+ return h.default.createElement("div", ve({}, a, { className: n }), t);
651
+ };
652
+ et.propTypes = { children: l.node.isRequired, className: l.string, delta: l.number, onSwiped: l.func, onSwiping: l.func };
653
+ const Ae = et;
654
+ var ye = h.default.memo(function(r) {
655
+ var e = r.disabled, t = r.onClick;
656
+ return h.default.createElement("button", { type: "button", className: "image-gallery-icon image-gallery-top-nav", disabled: e, onClick: t, "aria-label": "Previous Slide" }, h.default.createElement(V, { icon: "top", viewBox: "6 0 12 24" }));
657
+ });
658
+ ye.displayName = "TopNav", ye.propTypes = { disabled: l.bool.isRequired, onClick: l.func.isRequired };
659
+ const Ht = ye;
660
+ var we = h.default.memo(function(r) {
661
+ var e = r.disabled, t = r.onClick;
662
+ return h.default.createElement("button", { type: "button", className: "image-gallery-icon image-gallery-bottom-nav", disabled: e, onClick: t, "aria-label": "Next Slide" }, h.default.createElement(V, { icon: "bottom", viewBox: "6 0 12 24" }));
663
+ });
664
+ we.displayName = "BottomNav", we.propTypes = { disabled: l.bool.isRequired, onClick: l.func.isRequired };
665
+ const Vt = we;
666
+ function q(r) {
667
+ return q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
668
+ return typeof e;
669
+ } : function(e) {
670
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
671
+ }, q(r);
672
+ }
673
+ function Ue(r, e) {
674
+ var t = Object.keys(r);
675
+ if (Object.getOwnPropertySymbols) {
676
+ var n = Object.getOwnPropertySymbols(r);
677
+ e && (n = n.filter(function(a) {
678
+ return Object.getOwnPropertyDescriptor(r, a).enumerable;
679
+ })), t.push.apply(t, n);
680
+ }
681
+ return t;
682
+ }
683
+ function Ge(r) {
684
+ for (var e = 1; e < arguments.length; e++) {
685
+ var t = arguments[e] != null ? arguments[e] : {};
686
+ e % 2 ? Ue(Object(t), !0).forEach(function(n) {
687
+ G(r, n, t[n]);
688
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Ue(Object(t)).forEach(function(n) {
689
+ Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
690
+ });
691
+ }
692
+ return r;
693
+ }
694
+ function Kt(r, e) {
695
+ for (var t = 0; t < e.length; t++) {
696
+ var n = e[t];
697
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, nt(n.key), n);
698
+ }
699
+ }
700
+ function tt() {
701
+ try {
702
+ var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
703
+ }));
704
+ } catch {
705
+ }
706
+ return (tt = function() {
707
+ return !!r;
708
+ })();
709
+ }
710
+ function re(r) {
711
+ return re = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
712
+ return e.__proto__ || Object.getPrototypeOf(e);
713
+ }, re(r);
714
+ }
715
+ function Se(r, e) {
716
+ return Se = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
717
+ return t.__proto__ = n, t;
718
+ }, Se(r, e);
719
+ }
720
+ function G(r, e, t) {
721
+ return (e = nt(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
722
+ }
723
+ function nt(r) {
724
+ var e = function(t) {
725
+ if (q(t) != "object" || !t) return t;
726
+ var n = t[Symbol.toPrimitive];
727
+ if (n !== void 0) {
728
+ var a = n.call(t, "string");
729
+ if (q(a) != "object") return a;
730
+ throw new TypeError("@@toPrimitive must return a primitive value.");
731
+ }
732
+ return String(t);
733
+ }(r);
734
+ return q(e) == "symbol" ? e : e + "";
735
+ }
736
+ var qe = ["fullscreenchange", "MSFullscreenChange", "mozfullscreenchange", "webkitfullscreenchange"], Xt = (0, l.arrayOf)((0, l.shape)({ srcSet: l.string, media: l.string }));
737
+ function He(r) {
738
+ var e = parseInt(r.keyCode || r.which || 0, 10);
739
+ return e === 66 || e === 62;
740
+ }
741
+ var Te = function() {
742
+ function r(e) {
743
+ var t, n, a, s;
744
+ return function(i, o) {
745
+ if (!(i instanceof o)) throw new TypeError("Cannot call a class as a function");
746
+ }(this, r), G((n = this, s = [e], a = re(a = r), t = function(i, o) {
747
+ if (o && (q(o) == "object" || typeof o == "function")) return o;
748
+ if (o !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
749
+ return function(u) {
750
+ if (u === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
751
+ return u;
752
+ }(i);
753
+ }(n, tt() ? Reflect.construct(a, s || [], re(n).constructor) : a.apply(n, s))), "onBulletClick", function(i, o) {
754
+ var u = t.props, c = u.onBulletClick, m = u.items, p = t.state.currentIndex;
755
+ i.target.blur(), p !== o && (m.length === 2 ? t.slideToIndexWithStyleReset(o, i) : t.slideToIndex(o, i)), c && c(i, o);
756
+ }), t.state = { currentIndex: e.startIndex, thumbsTranslate: 0, thumbsSwipedTranslate: 0, currentSlideOffset: 0, galleryWidth: 0, galleryHeight: 0, thumbnailsWrapperWidth: 0, thumbnailsWrapperHeight: 0, thumbsStyle: { transition: "all ".concat(e.slideDuration, "ms ease-out") }, isFullscreen: !1, isSwipingThumbnail: !1, isPlaying: !1 }, t.loadedImages = {}, t.imageGallery = h.default.createRef(), t.thumbnailsWrapper = h.default.createRef(), t.thumbnails = h.default.createRef(), t.imageGallerySlideWrapper = h.default.createRef(), t.handleImageLoaded = t.handleImageLoaded.bind(t), t.handleKeyDown = t.handleKeyDown.bind(t), t.handleMouseDown = t.handleMouseDown.bind(t), t.handleResize = t.handleResize.bind(t), t.handleOnSwiped = t.handleOnSwiped.bind(t), t.handleScreenChange = t.handleScreenChange.bind(t), t.handleSwiping = t.handleSwiping.bind(t), t.handleThumbnailSwiping = t.handleThumbnailSwiping.bind(t), t.handleOnThumbnailSwiped = t.handleOnThumbnailSwiped.bind(t), t.onThumbnailMouseLeave = t.onThumbnailMouseLeave.bind(t), t.handleImageError = t.handleImageError.bind(t), t.pauseOrPlay = t.pauseOrPlay.bind(t), t.renderThumbInner = t.renderThumbInner.bind(t), t.renderItem = t.renderItem.bind(t), t.slideLeft = t.slideLeft.bind(t), t.slideRight = t.slideRight.bind(t), t.toggleFullScreen = t.toggleFullScreen.bind(t), t.togglePlay = t.togglePlay.bind(t), t.unthrottledSlideToIndex = t.slideToIndex, t.slideToIndex = xe(t.unthrottledSlideToIndex, e.slideDuration, { trailing: !1 }), e.lazyLoad && (t.lazyLoaded = []), t;
757
+ }
758
+ return function(e, t) {
759
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
760
+ e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Se(e, t);
761
+ }(r, h.default.Component), function(e, t) {
762
+ return t && Kt(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
763
+ }(r, [{ key: "componentDidMount", value: function() {
764
+ var e = this.props, t = e.autoPlay, n = e.useWindowKeyDown;
765
+ t && this.play(), n ? window.addEventListener("keydown", this.handleKeyDown) : this.imageGallery.current.addEventListener("keydown", this.handleKeyDown), window.addEventListener("mousedown", this.handleMouseDown), this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper), this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper), this.addScreenChangeEvent();
766
+ } }, { key: "componentDidUpdate", value: function(e, t) {
767
+ var n = this.props, a = n.items, s = n.lazyLoad, i = n.slideDuration, o = n.slideInterval, u = n.startIndex, c = n.thumbnailPosition, m = n.showThumbnails, p = n.useWindowKeyDown, v = this.state, O = v.currentIndex, w = v.isPlaying, y = e.items.length !== a.length, f = !Tt()(e.items, a), g = e.startIndex !== u, d = e.thumbnailPosition !== c, b = e.showThumbnails !== m;
768
+ o === e.slideInterval && i === e.slideDuration || w && (this.pause(), this.play()), d && (this.removeResizeObserver(), this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper), this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)), b && m && this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper), b && !m && this.removeThumbnailsResizeObserver(), (y || b) && this.handleResize(), t.currentIndex !== O && this.slideThumbnailBar(), e.slideDuration !== i && (this.slideToIndex = xe(this.unthrottledSlideToIndex, i, { trailing: !1 })), !s || e.lazyLoad && !f || (this.lazyLoaded = []), p !== e.useWindowKeyDown && (p ? (this.imageGallery.current.removeEventListener("keydown", this.handleKeyDown), window.addEventListener("keydown", this.handleKeyDown)) : (window.removeEventListener("keydown", this.handleKeyDown), this.imageGallery.current.addEventListener("keydown", this.handleKeyDown))), (g || f) && this.setState({ currentIndex: u, slideStyle: { transition: "none" } });
769
+ } }, { key: "componentWillUnmount", value: function() {
770
+ var e = this.props.useWindowKeyDown;
771
+ window.removeEventListener("mousedown", this.handleMouseDown), this.removeScreenChangeEvent(), this.removeResizeObserver(), this.playPauseIntervalId && (window.clearInterval(this.playPauseIntervalId), this.playPauseIntervalId = null), this.transitionTimer && window.clearTimeout(this.transitionTimer), e ? window.removeEventListener("keydown", this.handleKeyDown) : this.imageGallery.current.removeEventListener("keydown", this.handleKeyDown);
772
+ } }, { key: "onSliding", value: function() {
773
+ var e = this, t = this.state, n = t.currentIndex, a = t.isTransitioning, s = this.props, i = s.onSlide, o = s.slideDuration;
774
+ this.transitionTimer = window.setTimeout(function() {
775
+ a && (e.setState({ isTransitioning: !a, isSwipingThumbnail: !1 }), i && i(n));
776
+ }, o + 50);
777
+ } }, { key: "onThumbnailClick", value: function(e, t) {
778
+ var n = this.props, a = n.onThumbnailClick, s = n.items, i = this.state.currentIndex;
779
+ e.target.parentNode.parentNode.blur(), i !== t && (s.length === 2 ? this.slideToIndexWithStyleReset(t, e) : this.slideToIndex(t, e)), a && a(e, t);
780
+ } }, { key: "onThumbnailMouseOver", value: function(e, t) {
781
+ var n = this;
782
+ this.thumbnailMouseOverTimer && (window.clearTimeout(this.thumbnailMouseOverTimer), this.thumbnailMouseOverTimer = null), this.thumbnailMouseOverTimer = window.setTimeout(function() {
783
+ n.slideToIndex(t), n.pause();
784
+ }, 300);
785
+ } }, { key: "onThumbnailMouseLeave", value: function() {
786
+ if (this.thumbnailMouseOverTimer) {
787
+ var e = this.props.autoPlay;
788
+ window.clearTimeout(this.thumbnailMouseOverTimer), this.thumbnailMouseOverTimer = null, e && this.play();
789
+ }
790
+ } }, { key: "setThumbsTranslate", value: function(e) {
791
+ this.setState({ thumbsTranslate: e });
792
+ } }, { key: "setModalFullscreen", value: function(e) {
793
+ var t = this.props.onScreenChange;
794
+ this.setState({ modalFullscreen: e }), t && t(e);
795
+ } }, { key: "getThumbsTranslate", value: function(e) {
796
+ var t, n = this.props, a = n.disableThumbnailScroll, s = n.items, i = this.state, o = i.thumbnailsWrapperWidth, u = i.thumbnailsWrapperHeight, c = this.thumbnails && this.thumbnails.current;
797
+ if (a) return 0;
798
+ if (c) {
799
+ if (this.isThumbnailVertical()) {
800
+ if (c.scrollHeight <= u) return 0;
801
+ t = c.scrollHeight - u;
802
+ } else {
803
+ if (c.scrollWidth <= o || o <= 0) return 0;
804
+ t = c.scrollWidth - o;
716
805
  }
717
- function lt(i) {
718
- var e = function(r, a) {
719
- if (ee(r) !== "object" || r === null) return r;
720
- var c = r[Symbol.toPrimitive];
721
- if (c !== void 0) {
722
- var g = c.call(r, a);
723
- if (ee(g) !== "object") return g;
724
- throw new TypeError("@@toPrimitive must return a primitive value.");
725
- }
726
- return String(r);
727
- }(i, "string");
728
- return ee(e) === "symbol" ? e : String(e);
806
+ return e * (t / (s.length - 1));
807
+ }
808
+ return 0;
809
+ } }, { key: "getThumbnailPositionClassName", value: function(e) {
810
+ switch (e) {
811
+ case "left":
812
+ e = " ".concat("image-gallery-thumbnails-left");
813
+ break;
814
+ case "right":
815
+ e = " ".concat("image-gallery-thumbnails-right");
816
+ break;
817
+ case "bottom":
818
+ e = " ".concat("image-gallery-thumbnails-bottom");
819
+ break;
820
+ case "top":
821
+ e = " ".concat("image-gallery-thumbnails-top");
822
+ }
823
+ return e;
824
+ } }, { key: "getAlignmentClassName", value: function(e) {
825
+ var t = this.state.currentIndex, n = this.props, a = n.infinite, s = n.items, i = "", o = "image-gallery-left", u = "image-gallery-right";
826
+ switch (e) {
827
+ case t - 1:
828
+ i = " ".concat(o);
829
+ break;
830
+ case t:
831
+ i = " ".concat("image-gallery-center");
832
+ break;
833
+ case t + 1:
834
+ i = " ".concat(u);
835
+ }
836
+ return s.length >= 3 && a && (e === 0 && t === s.length - 1 ? i = " ".concat(u) : e === s.length - 1 && t === 0 && (i = " ".concat(o))), i;
837
+ } }, { key: "getTranslateXForTwoSlide", value: function(e) {
838
+ var t = this.state, n = t.currentIndex, a = t.currentSlideOffset, s = t.previousIndex, i = n !== s, o = e === 0 && s === 0, u = e === 1 && s === 1, c = e === 0 && n === 1, m = e === 1 && n === 0, p = a === 0, v = -100 * n + 100 * e + a;
839
+ return a > 0 ? this.direction = "left" : a < 0 && (this.direction = "right"), m && a > 0 && (v = -100 + a), c && a < 0 && (v = 100 + a), i ? o && p && this.direction === "left" ? v = 100 : u && p && this.direction === "right" && (v = -100) : (m && p && this.direction === "left" && (v = -100), c && p && this.direction === "right" && (v = 100)), v;
840
+ } }, { key: "getThumbnailBarHeight", value: function() {
841
+ return this.isThumbnailVertical() ? { height: this.state.gallerySlideWrapperHeight } : {};
842
+ } }, { key: "getSlideStyle", value: function(e) {
843
+ var t = this.state, n = t.currentIndex, a = t.currentSlideOffset, s = t.slideStyle, i = this.props, o = i.infinite, u = i.items, c = i.useTranslate3D, m = i.isRTL, p = i.slideVertically, v = -100 * n, O = u.length - 1, w = (v + 100 * e) * (m ? -1 : 1) + a;
844
+ o && u.length > 2 && (n === 0 && e === O ? w = -100 * (m ? -1 : 1) + a : n === O && e === 0 && (w = 100 * (m ? -1 : 1) + a)), o && u.length === 2 && (w = this.getTranslateXForTwoSlide(e));
845
+ var y = p ? "translate(0, ".concat(w, "%)") : "translate(".concat(w, "%, 0)");
846
+ return c && (y = p ? "translate3d(0, ".concat(w, "%, 0)") : "translate3d(".concat(w, "%, 0, 0)")), Ge({ display: this.isSlideVisible(e) ? "inherit" : "none", WebkitTransform: y, MozTransform: y, msTransform: y, OTransform: y, transform: y }, s);
847
+ } }, { key: "getCurrentIndex", value: function() {
848
+ return this.state.currentIndex;
849
+ } }, { key: "getThumbnailStyle", value: function() {
850
+ var e, t = this.props, n = t.useTranslate3D, a = t.isRTL, s = this.state, i = s.thumbsTranslate, o = s.thumbsStyle, u = a ? -1 * i : i;
851
+ return this.isThumbnailVertical() ? (e = "translate(0, ".concat(i, "px)"), n && (e = "translate3d(0, ".concat(i, "px, 0)"))) : (e = "translate(".concat(u, "px, 0)"), n && (e = "translate3d(".concat(u, "px, 0, 0)"))), Ge({ WebkitTransform: e, MozTransform: e, msTransform: e, OTransform: e, transform: e }, o);
852
+ } }, { key: "getSlideItems", value: function() {
853
+ var e = this, t = this.state.currentIndex, n = this.props, a = n.items, s = n.slideOnThumbnailOver, i = n.onClick, o = n.lazyLoad, u = n.onTouchMove, c = n.onTouchEnd, m = n.onTouchStart, p = n.onMouseOver, v = n.onMouseLeave, O = n.renderItem, w = n.renderThumbInner, y = n.showThumbnails, f = n.showBullets, g = [], d = [], b = [];
854
+ return a.forEach(function(S, T) {
855
+ var I = e.getAlignmentClassName(T), W = S.originalClass ? " ".concat(S.originalClass) : "", C = S.thumbnailClass ? " ".concat(S.thumbnailClass) : "", x = S.renderItem || O || e.renderItem, j = S.renderThumbInner || w || e.renderThumbInner, P = !o || I || e.lazyLoaded[T];
856
+ P && o && !e.lazyLoaded[T] && (e.lazyLoaded[T] = !0);
857
+ var _ = e.getSlideStyle(T), z = h.default.createElement("div", { "aria-label": "Go to Slide ".concat(T + 1), key: "slide-".concat(T), tabIndex: "-1", className: "image-gallery-slide ".concat(I, " ").concat(W), style: _, onClick: i, onKeyUp: e.handleSlideKeyUp, onTouchMove: u, onTouchEnd: c, onTouchStart: m, onMouseOver: p, onFocus: p, onMouseLeave: v, role: "button" }, P ? x(S) : h.default.createElement("div", { style: { height: "100%" } }));
858
+ if (g.push(z), y && S.thumbnail) {
859
+ var B = F("image-gallery-thumbnail", C, { active: t === T });
860
+ d.push(h.default.createElement("button", { key: "thumbnail-".concat(T), type: "button", tabIndex: "0", "aria-pressed": t === T ? "true" : "false", "aria-label": "Go to Slide ".concat(T + 1), className: B, onMouseLeave: s ? e.onThumbnailMouseLeave : null, onMouseOver: function(k) {
861
+ return e.handleThumbnailMouseOver(k, T);
862
+ }, onFocus: function(k) {
863
+ return e.handleThumbnailMouseOver(k, T);
864
+ }, onKeyUp: function(k) {
865
+ return e.handleThumbnailKeyUp(k, T);
866
+ }, onClick: function(k) {
867
+ return e.onThumbnailClick(k, T);
868
+ } }, j(S)));
729
869
  }
730
- var ut = ["fullscreenchange", "MSFullscreenChange", "mozfullscreenchange", "webkitfullscreenchange"], Kt = (0, o.arrayOf)((0, o.shape)({ srcSet: o.string, media: o.string }));
731
- function ct(i) {
732
- var e = parseInt(i.keyCode || i.which || 0, 10);
733
- return e === 66 || e === 62;
870
+ if (f) {
871
+ var N = F("image-gallery-bullet", S.bulletClass, { active: t === T });
872
+ b.push(h.default.createElement("button", { type: "button", key: "bullet-".concat(T), className: N, onClick: function(k) {
873
+ return e.onBulletClick(k, T);
874
+ }, "aria-pressed": t === T ? "true" : "false", "aria-label": "Go to Slide ".concat(T + 1) }));
734
875
  }
735
- var De = function(i) {
736
- (function(n, t) {
737
- if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
738
- n.prototype = Object.create(t && t.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), t && Le(n, t);
739
- })(E, i);
740
- var e, r, a, c, g = (a = E, c = function() {
741
- if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
742
- if (typeof Proxy == "function") return !0;
743
- try {
744
- return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
745
- })), !0;
746
- } catch {
747
- return !1;
748
- }
749
- }(), function() {
750
- var n, t = ve(a);
751
- if (c) {
752
- var s = ve(this).constructor;
753
- n = Reflect.construct(t, arguments, s);
754
- } else n = t.apply(this, arguments);
755
- return Ht(this, n);
756
- });
757
- function E(n) {
758
- var t;
759
- return function(s, l) {
760
- if (!(s instanceof l)) throw new TypeError("Cannot call a class as a function");
761
- }(this, E), ot(M(t = g.call(this, n)), "onBulletClick", function(s, l) {
762
- var h = t.props, u = h.onBulletClick, w = h.items, y = t.state.currentIndex;
763
- s.target.blur(), y !== l && (w.length === 2 ? t.slideToIndexWithStyleReset(l, s) : t.slideToIndex(l, s)), u && u(s, l);
764
- }), t.state = { currentIndex: n.startIndex, thumbsTranslate: 0, thumbsSwipedTranslate: 0, currentSlideOffset: 0, galleryWidth: 0, thumbnailsWrapperWidth: 0, thumbnailsWrapperHeight: 0, thumbsStyle: { transition: "all ".concat(n.slideDuration, "ms ease-out") }, isFullscreen: !1, isSwipingThumbnail: !1, isPlaying: !1 }, t.loadedImages = {}, t.imageGallery = f().createRef(), t.thumbnailsWrapper = f().createRef(), t.thumbnails = f().createRef(), t.imageGallerySlideWrapper = f().createRef(), t.handleImageLoaded = t.handleImageLoaded.bind(M(t)), t.handleKeyDown = t.handleKeyDown.bind(M(t)), t.handleMouseDown = t.handleMouseDown.bind(M(t)), t.handleResize = t.handleResize.bind(M(t)), t.handleTouchMove = t.handleTouchMove.bind(M(t)), t.handleOnSwiped = t.handleOnSwiped.bind(M(t)), t.handleScreenChange = t.handleScreenChange.bind(M(t)), t.handleSwiping = t.handleSwiping.bind(M(t)), t.handleThumbnailSwiping = t.handleThumbnailSwiping.bind(M(t)), t.handleOnThumbnailSwiped = t.handleOnThumbnailSwiped.bind(M(t)), t.onThumbnailMouseLeave = t.onThumbnailMouseLeave.bind(M(t)), t.handleImageError = t.handleImageError.bind(M(t)), t.pauseOrPlay = t.pauseOrPlay.bind(M(t)), t.renderThumbInner = t.renderThumbInner.bind(M(t)), t.renderItem = t.renderItem.bind(M(t)), t.slideLeft = t.slideLeft.bind(M(t)), t.slideRight = t.slideRight.bind(M(t)), t.toggleFullScreen = t.toggleFullScreen.bind(M(t)), t.togglePlay = t.togglePlay.bind(M(t)), t.unthrottledSlideToIndex = t.slideToIndex, t.slideToIndex = Ne(t.unthrottledSlideToIndex, n.slideDuration, { trailing: !1 }), n.lazyLoad && (t.lazyLoaded = []), t;
765
- }
766
- return e = E, r = [{ key: "componentDidMount", value: function() {
767
- var n = this.props, t = n.autoPlay, s = n.useWindowKeyDown;
768
- t && this.play(), s ? window.addEventListener("keydown", this.handleKeyDown) : this.imageGallery.current.addEventListener("keydown", this.handleKeyDown), window.addEventListener("mousedown", this.handleMouseDown), window.addEventListener("touchmove", this.handleTouchMove, { passive: !1 }), this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper), this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper), this.addScreenChangeEvent();
769
- } }, { key: "componentDidUpdate", value: function(n, t) {
770
- var s = this.props, l = s.items, h = s.lazyLoad, u = s.slideDuration, w = s.slideInterval, y = s.startIndex, S = s.thumbnailPosition, d = s.showThumbnails, p = s.useWindowKeyDown, m = this.state, b = m.currentIndex, T = m.isPlaying, I = n.items.length !== l.length, R = !St()(n.items, l), z = n.startIndex !== y, F = n.thumbnailPosition !== S, C = n.showThumbnails !== d;
771
- w === n.slideInterval && u === n.slideDuration || T && (this.pause(), this.play()), F && (this.removeResizeObserver(), this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper), this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)), C && d && this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper), C && !d && this.removeThumbnailsResizeObserver(), (I || C) && this.handleResize(), t.currentIndex !== b && this.slideThumbnailBar(), n.slideDuration !== u && (this.slideToIndex = Ne(this.unthrottledSlideToIndex, u, { trailing: !1 })), !h || n.lazyLoad && !R || (this.lazyLoaded = []), p !== n.useWindowKeyDown && (p ? (this.imageGallery.current.removeEventListener("keydown", this.handleKeyDown), window.addEventListener("keydown", this.handleKeyDown)) : (window.removeEventListener("keydown", this.handleKeyDown), this.imageGallery.current.addEventListener("keydown", this.handleKeyDown))), (z || R) && this.setState({ currentIndex: y, slideStyle: { transition: "none" } });
772
- } }, { key: "componentWillUnmount", value: function() {
773
- var n = this.props.useWindowKeyDown;
774
- window.removeEventListener("mousedown", this.handleMouseDown), window.removeEventListener("touchmove", this.handleTouchMove), this.removeScreenChangeEvent(), this.removeResizeObserver(), this.playPauseIntervalId && (window.clearInterval(this.playPauseIntervalId), this.playPauseIntervalId = null), this.transitionTimer && window.clearTimeout(this.transitionTimer), n ? window.removeEventListener("keydown", this.handleKeyDown) : this.imageGallery.current.removeEventListener("keydown", this.handleKeyDown);
775
- } }, { key: "onSliding", value: function() {
776
- var n = this, t = this.state, s = t.currentIndex, l = t.isTransitioning, h = this.props, u = h.onSlide, w = h.slideDuration;
777
- this.transitionTimer = window.setTimeout(function() {
778
- l && (n.setState({ isTransitioning: !l, isSwipingThumbnail: !1 }), u && u(s));
779
- }, w + 50);
780
- } }, { key: "onThumbnailClick", value: function(n, t) {
781
- var s = this.props, l = s.onThumbnailClick, h = s.items, u = this.state.currentIndex;
782
- n.target.parentNode.parentNode.blur(), u !== t && (h.length === 2 ? this.slideToIndexWithStyleReset(t, n) : this.slideToIndex(t, n)), l && l(n, t);
783
- } }, { key: "onThumbnailMouseOver", value: function(n, t) {
784
- var s = this;
785
- this.thumbnailMouseOverTimer && (window.clearTimeout(this.thumbnailMouseOverTimer), this.thumbnailMouseOverTimer = null), this.thumbnailMouseOverTimer = window.setTimeout(function() {
786
- s.slideToIndex(t), s.pause();
787
- }, 300);
788
- } }, { key: "onThumbnailMouseLeave", value: function() {
789
- if (this.thumbnailMouseOverTimer) {
790
- var n = this.props.autoPlay;
791
- window.clearTimeout(this.thumbnailMouseOverTimer), this.thumbnailMouseOverTimer = null, n && this.play();
792
- }
793
- } }, { key: "setThumbsTranslate", value: function(n) {
794
- this.setState({ thumbsTranslate: n });
795
- } }, { key: "setModalFullscreen", value: function(n) {
796
- var t = this.props.onScreenChange;
797
- this.setState({ modalFullscreen: n }), t && t(n);
798
- } }, { key: "getThumbsTranslate", value: function(n) {
799
- var t, s = this.props, l = s.disableThumbnailScroll, h = s.items, u = this.state, w = u.thumbnailsWrapperWidth, y = u.thumbnailsWrapperHeight, S = this.thumbnails && this.thumbnails.current;
800
- if (l) return 0;
801
- if (S) {
802
- if (this.isThumbnailVertical()) {
803
- if (S.scrollHeight <= y) return 0;
804
- t = S.scrollHeight - y;
805
- } else {
806
- if (S.scrollWidth <= w || w <= 0) return 0;
807
- t = S.scrollWidth - w;
808
- }
809
- return n * (t / (h.length - 1));
810
- }
811
- return 0;
812
- } }, { key: "getThumbnailPositionClassName", value: function(n) {
813
- switch (n) {
814
- case "left":
815
- n = " ".concat("image-gallery-thumbnails-left");
816
- break;
817
- case "right":
818
- n = " ".concat("image-gallery-thumbnails-right");
819
- break;
820
- case "bottom":
821
- n = " ".concat("image-gallery-thumbnails-bottom");
822
- break;
823
- case "top":
824
- n = " ".concat("image-gallery-thumbnails-top");
825
- }
826
- return n;
827
- } }, { key: "getAlignmentClassName", value: function(n) {
828
- var t = this.state.currentIndex, s = this.props, l = s.infinite, h = s.items, u = "", w = "image-gallery-left", y = "image-gallery-right";
829
- switch (n) {
830
- case t - 1:
831
- u = " ".concat(w);
832
- break;
833
- case t:
834
- u = " ".concat("image-gallery-center");
835
- break;
836
- case t + 1:
837
- u = " ".concat(y);
838
- }
839
- return h.length >= 3 && l && (n === 0 && t === h.length - 1 ? u = " ".concat(y) : n === h.length - 1 && t === 0 && (u = " ".concat(w))), u;
840
- } }, { key: "getTranslateXForTwoSlide", value: function(n) {
841
- var t = this.state, s = t.currentIndex, l = t.currentSlideOffset, h = t.previousIndex, u = s !== h, w = n === 0 && h === 0, y = n === 1 && h === 1, S = n === 0 && s === 1, d = n === 1 && s === 0, p = l === 0, m = -100 * s + 100 * n + l;
842
- return l > 0 ? this.direction = "left" : l < 0 && (this.direction = "right"), d && l > 0 && (m = -100 + l), S && l < 0 && (m = 100 + l), u ? w && p && this.direction === "left" ? m = 100 : y && p && this.direction === "right" && (m = -100) : (d && p && this.direction === "left" && (m = -100), S && p && this.direction === "right" && (m = 100)), m;
843
- } }, { key: "getThumbnailBarHeight", value: function() {
844
- return this.isThumbnailVertical() ? { height: this.state.gallerySlideWrapperHeight } : {};
845
- } }, { key: "getSlideStyle", value: function(n) {
846
- var t = this.state, s = t.currentIndex, l = t.currentSlideOffset, h = t.slideStyle, u = this.props, w = u.infinite, y = u.items, S = u.useTranslate3D, d = u.isRTL, p = -100 * s, m = y.length - 1, b = (p + 100 * n) * (d ? -1 : 1) + l;
847
- w && y.length > 2 && (s === 0 && n === m ? b = -100 * (d ? -1 : 1) + l : s === m && n === 0 && (b = 100 * (d ? -1 : 1) + l)), w && y.length === 2 && (b = this.getTranslateXForTwoSlide(n));
848
- var T = "translate(".concat(b, "%, 0)");
849
- return S && (T = "translate3d(".concat(b, "%, 0, 0)")), st({ display: this.isSlideVisible(n) ? "inherit" : "none", WebkitTransform: T, MozTransform: T, msTransform: T, OTransform: T, transform: T }, h);
850
- } }, { key: "getCurrentIndex", value: function() {
851
- return this.state.currentIndex;
852
- } }, { key: "getThumbnailStyle", value: function() {
853
- var n, t = this.props, s = t.useTranslate3D, l = t.isRTL, h = this.state, u = h.thumbsTranslate, w = h.thumbsStyle, y = l ? -1 * u : u;
854
- return this.isThumbnailVertical() ? (n = "translate(0, ".concat(u, "px)"), s && (n = "translate3d(0, ".concat(u, "px, 0)"))) : (n = "translate(".concat(y, "px, 0)"), s && (n = "translate3d(".concat(y, "px, 0, 0)"))), st({ WebkitTransform: n, MozTransform: n, msTransform: n, OTransform: n, transform: n }, w);
855
- } }, { key: "getSlideItems", value: function() {
856
- var n = this, t = this.state.currentIndex, s = this.props, l = s.items, h = s.slideOnThumbnailOver, u = s.onClick, w = s.lazyLoad, y = s.onTouchMove, S = s.onTouchEnd, d = s.onTouchStart, p = s.onMouseOver, m = s.onMouseLeave, b = s.renderItem, T = s.renderThumbInner, I = s.showThumbnails, R = s.showBullets, z = [], F = [], C = [];
857
- return l.forEach(function(_, x) {
858
- var K = n.getAlignmentClassName(x), le = _.originalClass ? " ".concat(_.originalClass) : "", ue = _.thumbnailClass ? " ".concat(_.thumbnailClass) : "", H = _.renderItem || b || n.renderItem, $ = _.renderThumbInner || T || n.renderThumbInner, A = !w || K || n.lazyLoaded[x];
859
- A && w && !n.lazyLoaded[x] && (n.lazyLoaded[x] = !0);
860
- var te = n.getSlideStyle(x), ce = f().createElement("div", { "aria-label": "Go to Slide ".concat(x + 1), key: "slide-".concat(x), tabIndex: "-1", className: "image-gallery-slide ".concat(K, " ").concat(le), style: te, onClick: u, onKeyUp: n.handleSlideKeyUp, onTouchMove: y, onTouchEnd: S, onTouchStart: d, onMouseOver: p, onFocus: p, onMouseLeave: m, role: "button" }, A ? H(_) : f().createElement("div", { style: { height: "100%" } }));
861
- if (z.push(ce), I && _.thumbnail) {
862
- var ne = P("image-gallery-thumbnail", ue, { active: t === x });
863
- F.push(f().createElement("button", { key: "thumbnail-".concat(x), type: "button", tabIndex: "0", "aria-pressed": t === x ? "true" : "false", "aria-label": "Go to Slide ".concat(x + 1), className: ne, onMouseLeave: h ? n.onThumbnailMouseLeave : null, onMouseOver: function(N) {
864
- return n.handleThumbnailMouseOver(N, x);
865
- }, onFocus: function(N) {
866
- return n.handleThumbnailMouseOver(N, x);
867
- }, onKeyUp: function(N) {
868
- return n.handleThumbnailKeyUp(N, x);
869
- }, onClick: function(N) {
870
- return n.onThumbnailClick(N, x);
871
- } }, $(_)));
872
- }
873
- if (R) {
874
- var he = P("image-gallery-bullet", _.bulletClass, { active: t === x });
875
- C.push(f().createElement("button", { type: "button", key: "bullet-".concat(x), className: he, onClick: function(N) {
876
- return n.onBulletClick(N, x);
877
- }, "aria-pressed": t === x ? "true" : "false", "aria-label": "Go to Slide ".concat(x + 1) }));
878
- }
879
- }), { slides: z, thumbnails: F, bullets: C };
880
- } }, { key: "ignoreIsTransitioning", value: function() {
881
- var n = this.props.items, t = this.state, s = t.previousIndex, l = t.currentIndex, h = n.length - 1;
882
- return Math.abs(s - l) > 1 && !(s === 0 && l === h) && !(s === h && l === 0);
883
- } }, { key: "isFirstOrLastSlide", value: function(n) {
884
- return n === this.props.items.length - 1 || n === 0;
885
- } }, { key: "slideIsTransitioning", value: function(n) {
886
- var t = this.state, s = t.isTransitioning, l = t.previousIndex, h = t.currentIndex;
887
- return s && !(n === l || n === h);
888
- } }, { key: "isSlideVisible", value: function(n) {
889
- return !this.slideIsTransitioning(n) || this.ignoreIsTransitioning() && !this.isFirstOrLastSlide(n);
890
- } }, { key: "slideThumbnailBar", value: function() {
891
- var n = this.state, t = n.currentIndex, s = n.isSwipingThumbnail, l = -this.getThumbsTranslate(t);
892
- s || (t === 0 ? this.setState({ thumbsTranslate: 0, thumbsSwipedTranslate: 0 }) : this.setState({ thumbsTranslate: l, thumbsSwipedTranslate: l }));
893
- } }, { key: "canSlide", value: function() {
894
- return this.props.items.length >= 2;
895
- } }, { key: "canSlideLeft", value: function() {
896
- return this.props.infinite || this.canSlidePrevious();
897
- } }, { key: "canSlideRight", value: function() {
898
- return this.props.infinite || this.canSlideNext();
899
- } }, { key: "canSlidePrevious", value: function() {
900
- return this.state.currentIndex > 0;
901
- } }, { key: "canSlideNext", value: function() {
902
- return this.state.currentIndex < this.props.items.length - 1;
903
- } }, { key: "handleSwiping", value: function(n) {
904
- var t = n.event, s = n.absX, l = n.dir, h = this.props, u = h.disableSwipe, w = h.stopPropagation, y = this.state, S = y.galleryWidth, d = y.isTransitioning, p = y.swipingUpDown, m = y.swipingLeftRight;
905
- if (l !== Q && l !== X && !p || m) {
906
- if (l !== J && l !== V || m || this.setState({ swipingLeftRight: !0 }), !u) {
907
- var b = this.props.swipingTransitionDuration;
908
- if (w && t.preventDefault(), d) this.setState({ currentSlideOffset: 0 });
909
- else {
910
- var T = l === V ? 1 : -1, I = s / S * 100;
911
- Math.abs(I) >= 100 && (I = 100);
912
- var R = { transition: "transform ".concat(b, "ms ease-out") };
913
- this.setState({ currentSlideOffset: T * I, slideStyle: R });
914
- }
915
- }
916
- } else p || this.setState({ swipingUpDown: !0 });
917
- } }, { key: "handleThumbnailSwiping", value: function(n) {
918
- var t = n.event, s = n.absX, l = n.absY, h = n.dir, u = this.props, w = u.stopPropagation, y = u.swipingThumbnailTransitionDuration, S = this.state, d = S.thumbsSwipedTranslate, p = S.thumbnailsWrapperHeight, m = S.thumbnailsWrapperWidth, b = S.swipingUpDown, T = S.swipingLeftRight;
919
- if (this.isThumbnailVertical()) {
920
- if ((h === J || h === V || T) && !b) return void (T || this.setState({ swipingLeftRight: !0 }));
921
- h !== Q && h !== X || b || this.setState({ swipingUpDown: !0 });
922
- } else {
923
- if ((h === Q || h === X || b) && !T) return void (b || this.setState({ swipingUpDown: !0 }));
924
- h !== J && h !== V || T || this.setState({ swipingLeftRight: !0 });
925
- }
926
- var I, R, z, F, C, _ = this.thumbnails && this.thumbnails.current;
927
- if (this.isThumbnailVertical() ? (I = d + (h === X ? l : -l), R = _.scrollHeight - p + 20, z = Math.abs(I) > R, F = I > 20, C = _.scrollHeight <= p) : (I = d + (h === V ? s : -s), R = _.scrollWidth - m + 20, z = Math.abs(I) > R, F = I > 20, C = _.scrollWidth <= m), !C && (h !== J && h !== Q || !z) && (h !== V && h !== X || !F)) {
928
- w && t.stopPropagation();
929
- var x = { transition: "transform ".concat(y, "ms ease-out") };
930
- this.setState({ thumbsTranslate: I, thumbsStyle: x });
931
- }
932
- } }, { key: "handleOnThumbnailSwiped", value: function() {
933
- var n = this.state.thumbsTranslate, t = this.props.slideDuration;
934
- this.resetSwipingDirection(), this.setState({ isSwipingThumbnail: !0, thumbsSwipedTranslate: n, thumbsStyle: { transition: "all ".concat(t, "ms ease-out") } });
935
- } }, { key: "sufficientSwipe", value: function() {
936
- var n = this.state.currentSlideOffset, t = this.props.swipeThreshold;
937
- return Math.abs(n) > t;
938
- } }, { key: "resetSwipingDirection", value: function() {
939
- var n = this.state, t = n.swipingUpDown, s = n.swipingLeftRight;
940
- t && this.setState({ swipingUpDown: !1 }), s && this.setState({ swipingLeftRight: !1 });
941
- } }, { key: "handleOnSwiped", value: function(n) {
942
- var t = n.event, s = n.dir, l = n.velocity, h = this.props, u = h.disableSwipe, w = h.stopPropagation, y = h.flickThreshold;
943
- if (!u) {
944
- var S = this.props.isRTL;
945
- w && t.stopPropagation(), this.resetSwipingDirection();
946
- var d = (s === J ? 1 : -1) * (S ? -1 : 1), p = l > y && !(s === Q || s === X);
947
- this.handleOnSwipedTo(d, p);
948
- }
949
- } }, { key: "handleOnSwipedTo", value: function(n, t) {
950
- var s = this.state, l = s.currentIndex, h = s.isTransitioning, u = l;
951
- !this.sufficientSwipe() && !t || h || (u += n), (n === -1 && !this.canSlideLeft() || n === 1 && !this.canSlideRight()) && (u = l), this.unthrottledSlideToIndex(u);
952
- } }, { key: "handleTouchMove", value: function(n) {
953
- this.state.swipingLeftRight && n.preventDefault();
954
- } }, { key: "handleMouseDown", value: function() {
955
- this.imageGallery.current.classList.add("image-gallery-using-mouse");
956
- } }, { key: "handleKeyDown", value: function(n) {
957
- var t = this.props, s = t.disableKeyDown, l = t.useBrowserFullscreen, h = this.state.isFullscreen;
958
- if (this.imageGallery.current.classList.remove("image-gallery-using-mouse"), !s) switch (parseInt(n.keyCode || n.which || 0, 10)) {
959
- case 37:
960
- this.canSlideLeft() && !this.playPauseIntervalId && this.slideLeft(n);
961
- break;
962
- case 39:
963
- this.canSlideRight() && !this.playPauseIntervalId && this.slideRight(n);
964
- break;
965
- case 27:
966
- h && !l && this.exitFullScreen();
967
- }
968
- } }, { key: "handleImageError", value: function(n) {
969
- var t = this.props.onErrorImageURL;
970
- t && n.target.src.indexOf(t) === -1 && (n.target.src = t);
971
- } }, { key: "removeThumbnailsResizeObserver", value: function() {
972
- this.resizeThumbnailWrapperObserver && this.thumbnailsWrapper && this.thumbnailsWrapper.current && (this.resizeThumbnailWrapperObserver.unobserve(this.thumbnailsWrapper.current), this.resizeThumbnailWrapperObserver = null);
973
- } }, { key: "removeResizeObserver", value: function() {
974
- this.resizeSlideWrapperObserver && this.imageGallerySlideWrapper && this.imageGallerySlideWrapper.current && (this.resizeSlideWrapperObserver.unobserve(this.imageGallerySlideWrapper.current), this.resizeSlideWrapperObserver = null), this.removeThumbnailsResizeObserver();
975
- } }, { key: "handleResize", value: function() {
976
- var n = this.state.currentIndex;
977
- this.imageGallery && (this.imageGallery && this.imageGallery.current && this.setState({ galleryWidth: this.imageGallery.current.offsetWidth }), this.imageGallerySlideWrapper && this.imageGallerySlideWrapper.current && this.setState({ gallerySlideWrapperHeight: this.imageGallerySlideWrapper.current.offsetHeight }), this.setThumbsTranslate(-this.getThumbsTranslate(n)));
978
- } }, { key: "initSlideWrapperResizeObserver", value: function(n) {
979
- var t = this;
980
- n && !n.current || (this.resizeSlideWrapperObserver = new Ke(Ee(function(s) {
981
- s && s.forEach(function(l) {
982
- t.setState({ thumbnailsWrapperWidth: l.contentRect.width }, t.handleResize);
983
- });
984
- }, 50)), this.resizeSlideWrapperObserver.observe(n.current));
985
- } }, { key: "initThumbnailWrapperResizeObserver", value: function(n) {
986
- var t = this;
987
- n && !n.current || (this.resizeThumbnailWrapperObserver = new Ke(Ee(function(s) {
988
- s && s.forEach(function(l) {
989
- t.setState({ thumbnailsWrapperHeight: l.contentRect.height }, t.handleResize);
990
- });
991
- }, 50)), this.resizeThumbnailWrapperObserver.observe(n.current));
992
- } }, { key: "toggleFullScreen", value: function() {
993
- this.state.isFullscreen ? this.exitFullScreen() : this.fullScreen();
994
- } }, { key: "togglePlay", value: function() {
995
- this.playPauseIntervalId ? this.pause() : this.play();
996
- } }, { key: "handleScreenChange", value: function() {
997
- var n = this.props, t = n.onScreenChange, s = n.useBrowserFullscreen, l = document.fullscreenElement || document.msFullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement, h = this.imageGallery.current === l;
998
- t && t(h), s && this.setState({ isFullscreen: h });
999
- } }, { key: "slideToIndex", value: function(n, t) {
1000
- var s = this.state, l = s.currentIndex, h = s.isTransitioning, u = this.props, w = u.items, y = u.slideDuration, S = u.onBeforeSlide;
1001
- if (!h) {
1002
- t && this.playPauseIntervalId && (this.pause(!1), this.play(!1));
1003
- var d = w.length - 1, p = n;
1004
- n < 0 ? p = d : n > d && (p = 0), S && p !== l && S(p), this.setState({ previousIndex: l, currentIndex: p, isTransitioning: p !== l, currentSlideOffset: 0, slideStyle: { transition: "all ".concat(y, "ms ease-out") } }, this.onSliding);
1005
- }
1006
- } }, { key: "slideLeft", value: function(n) {
1007
- var t = this.props.isRTL;
1008
- this.slideTo(n, t ? "right" : "left");
1009
- } }, { key: "slideRight", value: function(n) {
1010
- var t = this.props.isRTL;
1011
- this.slideTo(n, t ? "left" : "right");
1012
- } }, { key: "slideTo", value: function(n, t) {
1013
- var s = this.state, l = s.currentIndex, h = s.isTransitioning, u = this.props.items, w = l + (t === "left" ? -1 : 1);
1014
- h || (u.length === 2 ? this.slideToIndexWithStyleReset(w, n) : this.slideToIndex(w, n));
1015
- } }, { key: "slideToIndexWithStyleReset", value: function(n, t) {
1016
- var s = this, l = this.state, h = l.currentIndex, u = l.currentSlideOffset;
1017
- this.setState({ currentSlideOffset: u + (h > n ? 1e-3 : -1e-3), slideStyle: { transition: "none" } }, function() {
1018
- window.setTimeout(function() {
1019
- return s.slideToIndex(n, t);
1020
- }, 25);
1021
- });
1022
- } }, { key: "handleThumbnailMouseOver", value: function(n, t) {
1023
- this.props.slideOnThumbnailOver && this.onThumbnailMouseOver(n, t);
1024
- } }, { key: "handleThumbnailKeyUp", value: function(n, t) {
1025
- ct(n) && this.onThumbnailClick(n, t);
1026
- } }, { key: "handleSlideKeyUp", value: function(n) {
1027
- ct(n) && (0, this.props.onClick)(n);
1028
- } }, { key: "isThumbnailVertical", value: function() {
1029
- var n = this.props.thumbnailPosition;
1030
- return n === "left" || n === "right";
1031
- } }, { key: "addScreenChangeEvent", value: function() {
1032
- var n = this;
1033
- ut.forEach(function(t) {
1034
- document.addEventListener(t, n.handleScreenChange);
1035
- });
1036
- } }, { key: "removeScreenChangeEvent", value: function() {
1037
- var n = this;
1038
- ut.forEach(function(t) {
1039
- document.removeEventListener(t, n.handleScreenChange);
1040
- });
1041
- } }, { key: "fullScreen", value: function() {
1042
- var n = this.props.useBrowserFullscreen, t = this.imageGallery.current;
1043
- n ? t.requestFullscreen ? t.requestFullscreen() : t.msRequestFullscreen ? t.msRequestFullscreen() : t.mozRequestFullScreen ? t.mozRequestFullScreen() : t.webkitRequestFullscreen ? t.webkitRequestFullscreen() : this.setModalFullscreen(!0) : this.setModalFullscreen(!0), this.setState({ isFullscreen: !0 });
1044
- } }, { key: "exitFullScreen", value: function() {
1045
- var n = this.state.isFullscreen, t = this.props.useBrowserFullscreen;
1046
- n && (t ? document.exitFullscreen ? document.exitFullscreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.msExitFullscreen ? document.msExitFullscreen() : this.setModalFullscreen(!1) : this.setModalFullscreen(!1), this.setState({ isFullscreen: !1 }));
1047
- } }, { key: "pauseOrPlay", value: function() {
1048
- var n = this.props.infinite, t = this.state.currentIndex;
1049
- n || this.canSlideRight() ? this.slideToIndex(t + 1) : this.pause();
1050
- } }, { key: "play", value: function() {
1051
- var n = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0], t = this.props, s = t.onPlay, l = t.slideInterval, h = t.slideDuration, u = this.state.currentIndex;
1052
- this.playPauseIntervalId || (this.setState({ isPlaying: !0 }), this.playPauseIntervalId = window.setInterval(this.pauseOrPlay, Math.max(l, h)), s && n && s(u));
1053
- } }, { key: "pause", value: function() {
1054
- var n = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0], t = this.props.onPause, s = this.state.currentIndex;
1055
- this.playPauseIntervalId && (window.clearInterval(this.playPauseIntervalId), this.playPauseIntervalId = null, this.setState({ isPlaying: !1 }), t && n && t(s));
1056
- } }, { key: "isImageLoaded", value: function(n) {
1057
- return !!this.loadedImages[n.original] || (this.loadedImages[n.original] = !0, !1);
1058
- } }, { key: "handleImageLoaded", value: function(n, t) {
1059
- var s = this.props.onImageLoad;
1060
- !this.loadedImages[t] && s && (this.loadedImages[t] = !0, s(n));
1061
- } }, { key: "renderItem", value: function(n) {
1062
- var t = this.state.isFullscreen, s = this.props.onImageError || this.handleImageError;
1063
- return f().createElement(Dt, { description: n.description, fullscreen: n.fullscreen, handleImageLoaded: this.handleImageLoaded, isFullscreen: t, onImageError: s, original: n.original, originalAlt: n.originalAlt, originalHeight: n.originalHeight, originalWidth: n.originalWidth, originalTitle: n.originalTitle, sizes: n.sizes, loading: n.loading, srcSet: n.srcSet });
1064
- } }, { key: "renderThumbInner", value: function(n) {
1065
- var t = this.props.onThumbnailError || this.handleImageError;
1066
- return f().createElement("span", { className: "image-gallery-thumbnail-inner" }, f().createElement("img", { className: "image-gallery-thumbnail-image", src: n.thumbnail, height: n.thumbnailHeight, width: n.thumbnailWidth, alt: n.thumbnailAlt, title: n.thumbnailTitle, loading: n.thumbnailLoading, onError: t }), n.thumbnailLabel && f().createElement("div", { className: "image-gallery-thumbnail-label" }, n.thumbnailLabel));
1067
- } }, { key: "render", value: function() {
1068
- var n = this.state, t = n.currentIndex, s = n.isFullscreen, l = n.modalFullscreen, h = n.isPlaying, u = this.props, w = u.additionalClass, y = u.disableThumbnailSwipe, S = u.indexSeparator, d = u.isRTL, p = u.items, m = u.thumbnailPosition, b = u.renderFullscreenButton, T = u.renderCustomControls, I = u.renderLeftNav, R = u.renderRightNav, z = u.showBullets, F = u.showFullscreenButton, C = u.showIndex, _ = u.showThumbnails, x = u.showNav, K = u.showPlayButton, le = u.renderPlayPauseButton, ue = this.getThumbnailStyle(), H = this.getSlideItems(), $ = H.slides, A = H.thumbnails, te = H.bullets, ce = P("image-gallery-slide-wrapper", this.getThumbnailPositionClassName(m), { "image-gallery-rtl": d }), ne = f().createElement("div", { ref: this.imageGallerySlideWrapper, className: ce }, T && T(), this.canSlide() ? f().createElement(f().Fragment, null, x && f().createElement(f().Fragment, null, I(this.slideLeft, !this.canSlideLeft()), R(this.slideRight, !this.canSlideRight())), f().createElement(rt, { className: "image-gallery-swipe", delta: 0, onSwiping: this.handleSwiping, onSwiped: this.handleOnSwiped }, f().createElement("div", { className: "image-gallery-slides" }, $))) : f().createElement("div", { className: "image-gallery-slides" }, $), K && le(this.togglePlay, h), z && f().createElement("div", { className: "image-gallery-bullets" }, f().createElement("div", { className: "image-gallery-bullets-container", role: "navigation", "aria-label": "Bullet Navigation" }, te)), F && b(this.toggleFullScreen, s), C && f().createElement("div", { className: "image-gallery-index" }, f().createElement("span", { className: "image-gallery-index-current" }, t + 1), f().createElement("span", { className: "image-gallery-index-separator" }, S), f().createElement("span", { className: "image-gallery-index-total" }, p.length))), he = P("image-gallery", w, { "fullscreen-modal": l }), N = P("image-gallery-content", this.getThumbnailPositionClassName(m), { fullscreen: s }), Xt = P("image-gallery-thumbnails-wrapper", this.getThumbnailPositionClassName(m), { "thumbnails-wrapper-rtl": !this.isThumbnailVertical() && d }, { "thumbnails-swipe-horizontal": !this.isThumbnailVertical() && !y }, { "thumbnails-swipe-vertical": this.isThumbnailVertical() && !y });
1069
- return f().createElement("div", { ref: this.imageGallery, className: he, "aria-live": "polite" }, f().createElement("div", { className: N }, (m === "bottom" || m === "right") && ne, _ && A.length > 0 ? f().createElement(rt, { className: Xt, delta: 0, onSwiping: !y && this.handleThumbnailSwiping, onSwiped: !y && this.handleOnThumbnailSwiped }, f().createElement("div", { className: "image-gallery-thumbnails", ref: this.thumbnailsWrapper, style: this.getThumbnailBarHeight() }, f().createElement("nav", { ref: this.thumbnails, className: "image-gallery-thumbnails-container", style: ue, "aria-label": "Thumbnail Navigation" }, A))) : null, (m === "top" || m === "left") && ne));
1070
- } }], r && qt(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), E;
1071
- }(f().Component);
1072
- De.propTypes = { flickThreshold: o.number, items: (0, o.arrayOf)((0, o.shape)({ bulletClass: o.string, bulletOnClick: o.func, description: o.string, original: o.string, originalHeight: o.number, originalWidth: o.number, loading: o.string, thumbnailHeight: o.number, thumbnailWidth: o.number, thumbnailLoading: o.string, fullscreen: o.string, originalAlt: o.string, originalTitle: o.string, thumbnail: o.string, thumbnailAlt: o.string, thumbnailLabel: o.string, thumbnailTitle: o.string, originalClass: o.string, thumbnailClass: o.string, renderItem: o.func, renderThumbInner: o.func, imageSet: Kt, srcSet: o.string, sizes: o.string })).isRequired, showNav: o.bool, autoPlay: o.bool, lazyLoad: o.bool, infinite: o.bool, showIndex: o.bool, showBullets: o.bool, showThumbnails: o.bool, showPlayButton: o.bool, showFullscreenButton: o.bool, disableThumbnailScroll: o.bool, disableKeyDown: o.bool, disableSwipe: o.bool, disableThumbnailSwipe: o.bool, useBrowserFullscreen: o.bool, onErrorImageURL: o.string, indexSeparator: o.string, thumbnailPosition: (0, o.oneOf)(["top", "bottom", "left", "right"]), startIndex: o.number, slideDuration: o.number, slideInterval: o.number, slideOnThumbnailOver: o.bool, swipeThreshold: o.number, swipingTransitionDuration: o.number, swipingThumbnailTransitionDuration: o.number, onSlide: o.func, onBeforeSlide: o.func, onScreenChange: o.func, onPause: o.func, onPlay: o.func, onClick: o.func, onImageLoad: o.func, onImageError: o.func, onTouchMove: o.func, onTouchEnd: o.func, onTouchStart: o.func, onMouseOver: o.func, onMouseLeave: o.func, onBulletClick: o.func, onThumbnailError: o.func, onThumbnailClick: o.func, renderCustomControls: o.func, renderLeftNav: o.func, renderRightNav: o.func, renderPlayPauseButton: o.func, renderFullscreenButton: o.func, renderItem: o.func, renderThumbInner: o.func, stopPropagation: o.bool, additionalClass: o.string, useTranslate3D: o.bool, isRTL: o.bool, useWindowKeyDown: o.bool }, De.defaultProps = { onErrorImageURL: "", additionalClass: "", showNav: !0, autoPlay: !1, lazyLoad: !1, infinite: !0, showIndex: !1, showBullets: !1, showThumbnails: !0, showPlayButton: !0, showFullscreenButton: !0, disableThumbnailScroll: !1, disableKeyDown: !1, disableSwipe: !1, disableThumbnailSwipe: !1, useTranslate3D: !0, isRTL: !1, useBrowserFullscreen: !0, flickThreshold: 0.4, stopPropagation: !1, indexSeparator: " / ", thumbnailPosition: "bottom", startIndex: 0, slideDuration: 450, swipingTransitionDuration: 0, swipingThumbnailTransitionDuration: 0, onSlide: null, onBeforeSlide: null, onScreenChange: null, onPause: null, onPlay: null, onClick: null, onImageLoad: null, onImageError: null, onTouchMove: null, onTouchEnd: null, onTouchStart: null, onMouseOver: null, onMouseLeave: null, onBulletClick: null, onThumbnailError: null, onThumbnailClick: null, renderCustomControls: null, renderThumbInner: null, renderItem: null, slideInterval: 3e3, slideOnThumbnailOver: !1, swipeThreshold: 30, renderLeftNav: function(i, e) {
1073
- return f().createElement(Nt, { onClick: i, disabled: e });
1074
- }, renderRightNav: function(i, e) {
1075
- return f().createElement(Bt, { onClick: i, disabled: e });
1076
- }, renderPlayPauseButton: function(i, e) {
1077
- return f().createElement(At, { onClick: i, isPlaying: e });
1078
- }, renderFullscreenButton: function(i, e) {
1079
- return f().createElement(zt, { onClick: i, isFullscreen: e });
1080
- }, useWindowKeyDown: !0 };
1081
- const Vt = De;
1082
- })(), Se;
1083
- })());
1084
- })(ht);
1085
- var Qt = ht.exports;
1086
- const Zt = /* @__PURE__ */ Yt(Qt), an = ({ ...ye }) => /* @__PURE__ */ $t.jsx(Zt, { ...ye });
876
+ }), { slides: g, thumbnails: d, bullets: b };
877
+ } }, { key: "ignoreIsTransitioning", value: function() {
878
+ var e = this.props.items, t = this.state, n = t.previousIndex, a = t.currentIndex, s = e.length - 1;
879
+ return Math.abs(n - a) > 1 && !(n === 0 && a === s) && !(n === s && a === 0);
880
+ } }, { key: "isFirstOrLastSlide", value: function(e) {
881
+ return e === this.props.items.length - 1 || e === 0;
882
+ } }, { key: "slideIsTransitioning", value: function(e) {
883
+ var t = this.state, n = t.isTransitioning, a = t.previousIndex, s = t.currentIndex;
884
+ return n && !(e === a || e === s);
885
+ } }, { key: "isSlideVisible", value: function(e) {
886
+ return !this.slideIsTransitioning(e) || this.ignoreIsTransitioning() && !this.isFirstOrLastSlide(e);
887
+ } }, { key: "slideThumbnailBar", value: function() {
888
+ var e = this.state, t = e.currentIndex, n = e.isSwipingThumbnail, a = -this.getThumbsTranslate(t);
889
+ n || (t === 0 ? this.setState({ thumbsTranslate: 0, thumbsSwipedTranslate: 0 }) : this.setState({ thumbsTranslate: a, thumbsSwipedTranslate: a }));
890
+ } }, { key: "canSlide", value: function() {
891
+ return this.props.items.length >= 2;
892
+ } }, { key: "canSlideLeft", value: function() {
893
+ var e = this.props, t = e.infinite, n = e.isRTL;
894
+ return t || (n ? this.canSlideNext() : this.canSlidePrevious());
895
+ } }, { key: "canSlideRight", value: function() {
896
+ var e = this.props, t = e.infinite, n = e.isRTL;
897
+ return t || (n ? this.canSlidePrevious() : this.canSlideNext());
898
+ } }, { key: "canSlidePrevious", value: function() {
899
+ return this.state.currentIndex > 0;
900
+ } }, { key: "canSlideNext", value: function() {
901
+ return this.state.currentIndex < this.props.items.length - 1;
902
+ } }, { key: "handleSwiping", value: function(e) {
903
+ var t = e.event, n = e.absX, a = e.absY, s = e.dir, i = this.props, o = i.disableSwipe, u = i.stopPropagation, c = i.swipingTransitionDuration, m = this.state, p = m.galleryWidth, v = m.galleryHeight, O = m.isTransitioning, w = m.swipingUpDown, y = m.swipingLeftRight, f = this.props.slideVertically;
904
+ if ((s !== M && s !== D && !w || y || (w || this.setState({ swipingUpDown: !0 }), f)) && (s !== R && s !== L || y || this.setState({ swipingLeftRight: !0 }), !o)) if (u && t.preventDefault(), O) this.setState({ currentSlideOffset: 0 });
905
+ else {
906
+ if ((s === R || s === L) && f || (s === M || s === D) && !f) return;
907
+ var g = G(G(G(G({}, R, -1), L, 1), M, -1), D, 1)[s], d = n / p * 100;
908
+ f && (d = a / v * 100), Math.abs(d) >= 100 && (d = 100);
909
+ var b = { transition: "transform ".concat(c, "ms ease-out") };
910
+ this.setState({ currentSlideOffset: g * d, slideStyle: b });
911
+ }
912
+ } }, { key: "handleThumbnailSwiping", value: function(e) {
913
+ var t = e.event, n = e.absX, a = e.absY, s = e.dir, i = this.props, o = i.stopPropagation, u = i.swipingThumbnailTransitionDuration, c = this.state, m = c.thumbsSwipedTranslate, p = c.thumbnailsWrapperHeight, v = c.thumbnailsWrapperWidth, O = c.swipingUpDown, w = c.swipingLeftRight;
914
+ if (this.isThumbnailVertical()) {
915
+ if ((s === R || s === L || w) && !O) return void (w || this.setState({ swipingLeftRight: !0 }));
916
+ s !== M && s !== D || O || this.setState({ swipingUpDown: !0 });
917
+ } else {
918
+ if ((s === M || s === D || O) && !w) return void (O || this.setState({ swipingUpDown: !0 }));
919
+ s !== R && s !== L || w || this.setState({ swipingLeftRight: !0 });
920
+ }
921
+ var y, f, g, d, b, S = this.thumbnails && this.thumbnails.current;
922
+ if (this.isThumbnailVertical() ? (y = m + (s === D ? a : -a), f = S.scrollHeight - p + 20, g = Math.abs(y) > f, d = y > 20, b = S.scrollHeight <= p) : (y = m + (s === L ? n : -n), f = S.scrollWidth - v + 20, g = Math.abs(y) > f, d = y > 20, b = S.scrollWidth <= v), !b && (s !== R && s !== M || !g) && (s !== L && s !== D || !d)) {
923
+ o && t.stopPropagation();
924
+ var T = { transition: "transform ".concat(u, "ms ease-out") };
925
+ this.setState({ thumbsTranslate: y, thumbsStyle: T });
926
+ }
927
+ } }, { key: "handleOnThumbnailSwiped", value: function() {
928
+ var e = this.state.thumbsTranslate, t = this.props.slideDuration;
929
+ this.resetSwipingDirection(), this.setState({ isSwipingThumbnail: !0, thumbsSwipedTranslate: e, thumbsStyle: { transition: "all ".concat(t, "ms ease-out") } });
930
+ } }, { key: "sufficientSwipe", value: function() {
931
+ var e = this.state.currentSlideOffset, t = this.props.swipeThreshold;
932
+ return Math.abs(e) > t;
933
+ } }, { key: "resetSwipingDirection", value: function() {
934
+ var e = this.state, t = e.swipingUpDown, n = e.swipingLeftRight;
935
+ t && this.setState({ swipingUpDown: !1 }), n && this.setState({ swipingLeftRight: !1 });
936
+ } }, { key: "handleOnSwiped", value: function(e) {
937
+ var t = e.event, n = e.dir, a = e.velocity, s = this.props, i = s.disableSwipe, o = s.stopPropagation, u = s.flickThreshold, c = this.props.slideVertically;
938
+ if (!i) {
939
+ var m = this.props.isRTL;
940
+ o && t.stopPropagation(), this.resetSwipingDirection();
941
+ var p = (n === R ? 1 : -1) * (m ? -1 : 1);
942
+ c && (p = n === M ? 1 : -1);
943
+ var v = c ? a > u && !(n === R || n === L) : a > u && !(n === M || n === D);
944
+ this.handleOnSwipedTo(p, v);
945
+ }
946
+ } }, { key: "handleOnSwipedTo", value: function(e, t) {
947
+ var n = this.state, a = n.currentIndex, s = n.isTransitioning, i = a;
948
+ !this.sufficientSwipe() && !t || s || (i += e), (e === -1 && !this.canSlideLeft() || e === 1 && !this.canSlideRight()) && (i = a), this.unthrottledSlideToIndex(i);
949
+ } }, { key: "handleMouseDown", value: function() {
950
+ this.imageGallery.current.classList.add("image-gallery-using-mouse");
951
+ } }, { key: "handleKeyDown", value: function(e) {
952
+ var t = this.props, n = t.disableKeyDown, a = t.useBrowserFullscreen, s = this.state.isFullscreen;
953
+ if (this.imageGallery.current.classList.remove("image-gallery-using-mouse"), !n) switch (parseInt(e.keyCode || e.which || 0, 10)) {
954
+ case 37:
955
+ this.canSlideLeft() && !this.playPauseIntervalId && this.slideLeft(e);
956
+ break;
957
+ case 39:
958
+ this.canSlideRight() && !this.playPauseIntervalId && this.slideRight(e);
959
+ break;
960
+ case 27:
961
+ s && !a && this.exitFullScreen();
962
+ }
963
+ } }, { key: "handleImageError", value: function(e) {
964
+ var t = this.props.onErrorImageURL;
965
+ t && e.target.src.indexOf(t) === -1 && (e.target.src = t);
966
+ } }, { key: "removeThumbnailsResizeObserver", value: function() {
967
+ this.resizeThumbnailWrapperObserver && this.thumbnailsWrapper && this.thumbnailsWrapper.current && (this.resizeThumbnailWrapperObserver.unobserve(this.thumbnailsWrapper.current), this.resizeThumbnailWrapperObserver = null);
968
+ } }, { key: "removeResizeObserver", value: function() {
969
+ this.resizeSlideWrapperObserver && this.imageGallerySlideWrapper && this.imageGallerySlideWrapper.current && (this.resizeSlideWrapperObserver.unobserve(this.imageGallerySlideWrapper.current), this.resizeSlideWrapperObserver = null), this.removeThumbnailsResizeObserver();
970
+ } }, { key: "handleResize", value: function() {
971
+ var e = this.state.currentIndex;
972
+ this.imageGallery && (this.imageGallery && this.imageGallery.current && this.setState({ galleryWidth: this.imageGallery.current.offsetWidth, galleryHeight: this.imageGallery.current.offsetHeight }), this.imageGallerySlideWrapper && this.imageGallerySlideWrapper.current && this.setState({ gallerySlideWrapperHeight: this.imageGallerySlideWrapper.current.offsetHeight }), this.setThumbsTranslate(-this.getThumbsTranslate(e)));
973
+ } }, { key: "initSlideWrapperResizeObserver", value: function(e) {
974
+ var t = this;
975
+ e && !e.current || (this.resizeSlideWrapperObserver = new Re(he(function(n) {
976
+ n && n.forEach(function(a) {
977
+ t.setState({ thumbnailsWrapperWidth: a.contentRect.width }, t.handleResize);
978
+ });
979
+ }, 50)), this.resizeSlideWrapperObserver.observe(e.current));
980
+ } }, { key: "initThumbnailWrapperResizeObserver", value: function(e) {
981
+ var t = this;
982
+ e && !e.current || (this.resizeThumbnailWrapperObserver = new Re(he(function(n) {
983
+ n && n.forEach(function(a) {
984
+ t.setState({ thumbnailsWrapperHeight: a.contentRect.height }, t.handleResize);
985
+ });
986
+ }, 50)), this.resizeThumbnailWrapperObserver.observe(e.current));
987
+ } }, { key: "toggleFullScreen", value: function() {
988
+ this.state.isFullscreen ? this.exitFullScreen() : this.fullScreen();
989
+ } }, { key: "togglePlay", value: function() {
990
+ this.playPauseIntervalId ? this.pause() : this.play();
991
+ } }, { key: "handleScreenChange", value: function() {
992
+ var e = this.props, t = e.onScreenChange, n = e.useBrowserFullscreen, a = document.fullscreenElement || document.msFullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement, s = this.imageGallery.current === a;
993
+ t && t(s), n && this.setState({ isFullscreen: s });
994
+ } }, { key: "slideToIndex", value: function(e, t) {
995
+ var n = this.state, a = n.currentIndex, s = n.isTransitioning, i = this.props, o = i.items, u = i.slideDuration, c = i.onBeforeSlide;
996
+ if (!s) {
997
+ t && this.playPauseIntervalId && (this.pause(!1), this.play(!1));
998
+ var m = o.length - 1, p = e;
999
+ e < 0 ? p = m : e > m && (p = 0), c && p !== a && c(p), this.setState({ previousIndex: a, currentIndex: p, isTransitioning: p !== a, currentSlideOffset: 0, slideStyle: { transition: "all ".concat(u, "ms ease-out") } }, this.onSliding);
1000
+ }
1001
+ } }, { key: "slideLeft", value: function(e) {
1002
+ var t = this.props.isRTL;
1003
+ this.slideTo(e, t ? "right" : "left");
1004
+ } }, { key: "slideRight", value: function(e) {
1005
+ var t = this.props.isRTL;
1006
+ this.slideTo(e, t ? "left" : "right");
1007
+ } }, { key: "slideTo", value: function(e, t) {
1008
+ var n = this.state, a = n.currentIndex, s = n.isTransitioning, i = this.props.items, o = a + (t === "left" ? -1 : 1);
1009
+ s || (i.length === 2 ? this.slideToIndexWithStyleReset(o, e) : this.slideToIndex(o, e));
1010
+ } }, { key: "slideToIndexWithStyleReset", value: function(e, t) {
1011
+ var n = this, a = this.state, s = a.currentIndex, i = a.currentSlideOffset;
1012
+ this.setState({ currentSlideOffset: i + (s > e ? 1e-3 : -1e-3), slideStyle: { transition: "none" } }, function() {
1013
+ window.setTimeout(function() {
1014
+ return n.slideToIndex(e, t);
1015
+ }, 25);
1016
+ });
1017
+ } }, { key: "handleThumbnailMouseOver", value: function(e, t) {
1018
+ this.props.slideOnThumbnailOver && this.onThumbnailMouseOver(e, t);
1019
+ } }, { key: "handleThumbnailKeyUp", value: function(e, t) {
1020
+ He(e) && this.onThumbnailClick(e, t);
1021
+ } }, { key: "handleSlideKeyUp", value: function(e) {
1022
+ He(e) && (0, this.props.onClick)(e);
1023
+ } }, { key: "isThumbnailVertical", value: function() {
1024
+ var e = this.props.thumbnailPosition;
1025
+ return e === "left" || e === "right";
1026
+ } }, { key: "addScreenChangeEvent", value: function() {
1027
+ var e = this;
1028
+ qe.forEach(function(t) {
1029
+ document.addEventListener(t, e.handleScreenChange);
1030
+ });
1031
+ } }, { key: "removeScreenChangeEvent", value: function() {
1032
+ var e = this;
1033
+ qe.forEach(function(t) {
1034
+ document.removeEventListener(t, e.handleScreenChange);
1035
+ });
1036
+ } }, { key: "fullScreen", value: function() {
1037
+ var e = this.props.useBrowserFullscreen, t = this.imageGallery.current;
1038
+ e ? t.requestFullscreen ? t.requestFullscreen() : t.msRequestFullscreen ? t.msRequestFullscreen() : t.mozRequestFullScreen ? t.mozRequestFullScreen() : t.webkitRequestFullscreen ? t.webkitRequestFullscreen() : this.setModalFullscreen(!0) : this.setModalFullscreen(!0), this.setState({ isFullscreen: !0 });
1039
+ } }, { key: "exitFullScreen", value: function() {
1040
+ var e = this.state.isFullscreen, t = this.props.useBrowserFullscreen;
1041
+ e && (t ? document.exitFullscreen ? document.exitFullscreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.msExitFullscreen ? document.msExitFullscreen() : this.setModalFullscreen(!1) : this.setModalFullscreen(!1), this.setState({ isFullscreen: !1 }));
1042
+ } }, { key: "pauseOrPlay", value: function() {
1043
+ var e = this.props.infinite, t = this.state.currentIndex;
1044
+ e || this.canSlideRight() ? this.slideToIndex(t + 1) : this.pause();
1045
+ } }, { key: "play", value: function() {
1046
+ var e = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0], t = this.props, n = t.onPlay, a = t.slideInterval, s = t.slideDuration, i = this.state.currentIndex;
1047
+ this.playPauseIntervalId || (this.setState({ isPlaying: !0 }), this.playPauseIntervalId = window.setInterval(this.pauseOrPlay, Math.max(a, s)), n && e && n(i));
1048
+ } }, { key: "pause", value: function() {
1049
+ var e = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0], t = this.props.onPause, n = this.state.currentIndex;
1050
+ this.playPauseIntervalId && (window.clearInterval(this.playPauseIntervalId), this.playPauseIntervalId = null, this.setState({ isPlaying: !1 }), t && e && t(n));
1051
+ } }, { key: "isImageLoaded", value: function(e) {
1052
+ return !!this.loadedImages[e.original] || (this.loadedImages[e.original] = !0, !1);
1053
+ } }, { key: "handleImageLoaded", value: function(e, t) {
1054
+ var n = this.props.onImageLoad;
1055
+ !this.loadedImages[t] && n && (this.loadedImages[t] = !0, n(e));
1056
+ } }, { key: "renderItem", value: function(e) {
1057
+ var t = this.state.isFullscreen, n = this.props.onImageError || this.handleImageError;
1058
+ return h.default.createElement(Ct, { description: e.description, fullscreen: e.fullscreen, handleImageLoaded: this.handleImageLoaded, isFullscreen: t, onImageError: n, original: e.original, originalAlt: e.originalAlt, originalHeight: e.originalHeight, originalWidth: e.originalWidth, originalTitle: e.originalTitle, sizes: e.sizes, loading: e.loading, srcSet: e.srcSet });
1059
+ } }, { key: "renderThumbInner", value: function(e) {
1060
+ var t = this.props.onThumbnailError || this.handleImageError;
1061
+ return h.default.createElement("span", { className: "image-gallery-thumbnail-inner" }, h.default.createElement("img", { className: "image-gallery-thumbnail-image", src: e.thumbnail, height: e.thumbnailHeight, width: e.thumbnailWidth, alt: e.thumbnailAlt, title: e.thumbnailTitle, loading: e.thumbnailLoading, onError: t }), e.thumbnailLabel && h.default.createElement("div", { className: "image-gallery-thumbnail-label" }, e.thumbnailLabel));
1062
+ } }, { key: "render", value: function() {
1063
+ var e = this.state, t = e.currentIndex, n = e.isFullscreen, a = e.modalFullscreen, s = e.isPlaying, i = this.props, o = i.additionalClass, u = i.disableThumbnailSwipe, c = i.indexSeparator, m = i.isRTL, p = i.items, v = i.thumbnailPosition, O = i.renderFullscreenButton, w = i.renderCustomControls, y = i.renderLeftNav, f = i.renderRightNav, g = i.renderTopNav, d = i.renderBottomNav, b = i.showBullets, S = i.showFullscreenButton, T = i.showIndex, I = i.showThumbnails, W = i.showNav, C = i.showPlayButton, x = i.slideVertically, j = i.renderPlayPauseButton, P = this.getThumbnailStyle(), _ = this.getSlideItems(), z = _.slides, B = _.thumbnails, N = _.bullets, k = F("image-gallery-slide-wrapper", this.getThumbnailPositionClassName(v), { "image-gallery-rtl": m }), A = F("image-gallery-bullets", { "image-gallery-bullets-vertical": x }), K = h.default.createElement("div", { ref: this.imageGallerySlideWrapper, className: k }, w && w(), this.canSlide() ? h.default.createElement(h.default.Fragment, null, W && h.default.createElement(h.default.Fragment, null, x ? g(this.slideLeft, !this.canSlideLeft()) : y(this.slideLeft, !this.canSlideLeft()), x ? d(this.slideRight, !this.canSlideRight()) : f(this.slideRight, !this.canSlideRight())), h.default.createElement(Ae, { className: "image-gallery-swipe", delta: 0, onSwiping: this.handleSwiping, onSwiped: this.handleOnSwiped }, h.default.createElement("div", { className: "image-gallery-slides" }, z))) : h.default.createElement("div", { className: "image-gallery-slides" }, z), C && j(this.togglePlay, s), b && h.default.createElement("div", { className: A }, h.default.createElement("div", { className: "image-gallery-bullets-container", role: "navigation", "aria-label": "Bullet Navigation" }, N)), S && O(this.toggleFullScreen, n), T && h.default.createElement("div", { className: "image-gallery-index" }, h.default.createElement("span", { className: "image-gallery-index-current" }, t + 1), h.default.createElement("span", { className: "image-gallery-index-separator" }, c), h.default.createElement("span", { className: "image-gallery-index-total" }, p.length))), ie = F("image-gallery", o, { "fullscreen-modal": a }), ae = F("image-gallery-content", this.getThumbnailPositionClassName(v), { fullscreen: n }), se = F("image-gallery-thumbnails-wrapper", this.getThumbnailPositionClassName(v), { "thumbnails-wrapper-rtl": !this.isThumbnailVertical() && m }, { "thumbnails-swipe-horizontal": !this.isThumbnailVertical() && !u }, { "thumbnails-swipe-vertical": this.isThumbnailVertical() && !u });
1064
+ return h.default.createElement("div", { ref: this.imageGallery, className: ie, "aria-live": "polite" }, h.default.createElement("div", { className: ae }, (v === "bottom" || v === "right") && K, I && B.length > 0 ? h.default.createElement(Ae, { className: se, delta: 0, onSwiping: !u && this.handleThumbnailSwiping, onSwiped: !u && this.handleOnThumbnailSwiped }, h.default.createElement("div", { className: "image-gallery-thumbnails", ref: this.thumbnailsWrapper, style: this.getThumbnailBarHeight() }, h.default.createElement("nav", { ref: this.thumbnails, className: "image-gallery-thumbnails-container", style: P, "aria-label": "Thumbnail Navigation" }, B))) : null, (v === "top" || v === "left") && K));
1065
+ } }]);
1066
+ }();
1067
+ Te.propTypes = { flickThreshold: l.number, items: (0, l.arrayOf)((0, l.shape)({ bulletClass: l.string, bulletOnClick: l.func, description: l.string, original: l.string, originalHeight: l.number, originalWidth: l.number, loading: l.string, thumbnailHeight: l.number, thumbnailWidth: l.number, thumbnailLoading: l.string, fullscreen: l.string, originalAlt: l.string, originalTitle: l.string, thumbnail: l.string, thumbnailAlt: l.string, thumbnailLabel: l.string, thumbnailTitle: l.string, originalClass: l.string, thumbnailClass: l.string, renderItem: l.func, renderThumbInner: l.func, imageSet: Xt, srcSet: l.string, sizes: l.string })).isRequired, showNav: l.bool, autoPlay: l.bool, lazyLoad: l.bool, infinite: l.bool, showIndex: l.bool, showBullets: l.bool, showThumbnails: l.bool, showPlayButton: l.bool, showFullscreenButton: l.bool, disableThumbnailScroll: l.bool, disableKeyDown: l.bool, disableSwipe: l.bool, disableThumbnailSwipe: l.bool, useBrowserFullscreen: l.bool, onErrorImageURL: l.string, indexSeparator: l.string, thumbnailPosition: (0, l.oneOf)(["top", "bottom", "left", "right"]), startIndex: l.number, slideDuration: l.number, slideInterval: l.number, slideOnThumbnailOver: l.bool, swipeThreshold: l.number, swipingTransitionDuration: l.number, swipingThumbnailTransitionDuration: l.number, onSlide: l.func, onBeforeSlide: l.func, onScreenChange: l.func, onPause: l.func, onPlay: l.func, onClick: l.func, onImageLoad: l.func, onImageError: l.func, onTouchMove: l.func, onTouchEnd: l.func, onTouchStart: l.func, onMouseOver: l.func, onMouseLeave: l.func, onBulletClick: l.func, onThumbnailError: l.func, onThumbnailClick: l.func, renderCustomControls: l.func, renderLeftNav: l.func, renderRightNav: l.func, renderTopNav: l.func, renderBottomNav: l.func, renderPlayPauseButton: l.func, renderFullscreenButton: l.func, renderItem: l.func, renderThumbInner: l.func, stopPropagation: l.bool, additionalClass: l.string, useTranslate3D: l.bool, isRTL: l.bool, useWindowKeyDown: l.bool, slideVertically: l.bool }, Te.defaultProps = { onErrorImageURL: "", additionalClass: "", showNav: !0, autoPlay: !1, lazyLoad: !1, infinite: !0, showIndex: !1, showBullets: !1, showThumbnails: !0, showPlayButton: !0, showFullscreenButton: !0, disableThumbnailScroll: !1, disableKeyDown: !1, disableSwipe: !1, disableThumbnailSwipe: !1, useTranslate3D: !0, isRTL: !1, useBrowserFullscreen: !0, flickThreshold: 0.4, stopPropagation: !1, indexSeparator: " / ", thumbnailPosition: "bottom", startIndex: 0, slideDuration: 450, swipingTransitionDuration: 0, swipingThumbnailTransitionDuration: 0, onSlide: null, onBeforeSlide: null, onScreenChange: null, onPause: null, onPlay: null, onClick: null, onImageLoad: null, onImageError: null, onTouchMove: null, onTouchEnd: null, onTouchStart: null, onMouseOver: null, onMouseLeave: null, onBulletClick: null, onThumbnailError: null, onThumbnailClick: null, renderCustomControls: null, renderThumbInner: null, renderItem: null, slideInterval: 3e3, slideOnThumbnailOver: !1, swipeThreshold: 30, slideVertically: !1, renderLeftNav: function(r, e) {
1068
+ return h.default.createElement(Bt, { onClick: r, disabled: e });
1069
+ }, renderRightNav: function(r, e) {
1070
+ return h.default.createElement(At, { onClick: r, disabled: e });
1071
+ }, renderTopNav: function(r, e) {
1072
+ return h.default.createElement(Ht, { onClick: r, disabled: e });
1073
+ }, renderBottomNav: function(r, e) {
1074
+ return h.default.createElement(Vt, { onClick: r, disabled: e });
1075
+ }, renderPlayPauseButton: function(r, e) {
1076
+ return h.default.createElement(Ut, { onClick: r, isPlaying: e });
1077
+ }, renderFullscreenButton: function(r, e) {
1078
+ return h.default.createElement(zt, { onClick: r, isFullscreen: e });
1079
+ }, useWindowKeyDown: !0 };
1080
+ const $t = Te;
1081
+ var Yt = Ve.A;
1082
+ const Qt = ({ ...r }) => /* @__PURE__ */ it.jsx(Yt, { ...r });
1087
1083
  export {
1088
- an as default
1084
+ Qt as default
1089
1085
  };