PageSourceSearch

https://cdn.rk.dk/Assets/GoBasic/Plugins/fslightbox/fslightbox.js

js rk.dk collected 2026-10-02 10:01:06 UTC 51,693 bytes, 1,332 lines download raw bytes

1// ## The MIT License (MIT) ##
2
3// Copyright (c) Piotr Zdziarski
4
5// Permission is hereby granted, free of charge, to any person obtaining a copy
6// of this software and associated documentation files (the "Software"), to deal
7// in the Software without restriction, including without limitation the rights
8// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9// copies of the Software, and to permit persons to whom the Software is
10// furnished to do so, subject to the following conditions:
11
12// The above copyright notice and this permission notice shall be included in
13// all copies or substantial portions of the Software.
14
15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21// THE SOFTWARE.
22!(function (e, t) {
23  if ('object' == typeof exports && 'object' == typeof module) module.exports = t();
24  else if ('function' == typeof define && define.amd) define([], t);
25  else {
26    var n = t();
27    for (var o in n) ('object' == typeof exports ? exports : e)[o] = n[o];
28  }
29})(window, function () {
30  return (function (e) {
31    var t = {};
32    function n(o) {
33      if (t[o]) return t[o].exports;
34      var i = (t[o] = { i: o, l: !1, exports: {} });
35      return (e[o].call(i.exports, i, i.exports, n), (i.l = !0), i.exports);
36    }
37    return (
38      (n.m = e),
39      (n.c = t),
40      (n.d = function (e, t, o) {
41        n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: o });
42      }),
43      (n.r = function (e) {
44        ('undefined' != typeof Symbol &&
45          Symbol.toStringTag &&
46          Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }),
47          Object.defineProperty(e, '__esModule', { value: !0 }));
48      }),
49      (n.t = function (e, t) {
50        if ((1 & t && (e = n(e)), 8 & t)) return e;
51        if (4 & t && 'object' == typeof e && e && e.__esModule) return e;
52        var o = Object.create(null);
53        if (
54          (n.r(o),
55          Object.defineProperty(o, 'default', { enumerable: !0, value: e }),
56          2 & t && 'string' != typeof e)
57        )
58          for (var i in e)
59            n.d(
60              o,
61              i,
62              function (t) {
63                return e[t];
64              }.bind(null, i)
65            );
66        return o;
67      }),
68      (n.n = function (e) {
69        var t =
70          e && e.__esModule
71            ? function () {
72                return e.default;
73              }
74            : function () {
75                return e;
76              };
77        return (n.d(t, 'a', t), t);
78      }),
79      (n.o = function (e, t) {
80        return Object.prototype.hasOwnProperty.call(e, t);
81      }),
82      (n.p = ''),
83      n((n.s = 0))
84    );
85  })([
86    function (e, t, n) {
87      'use strict';
88      n.r(t);
89      var o,
90        i = 'fslightbox-',
91        r = ''.concat(i, 'styles'),
92        s = ''.concat(i, 'cursor-grabbing'),
93        a = ''.concat(i, 'full-dimension'),
94        c = ''.concat(i, 'flex-centered'),
95        l = ''.concat(i, 'open'),
96        u = ''.concat(i, 'transform-transition'),
97        d = ''.concat(i, 'absoluted'),
98        f = ''.concat(i, 'slide-btn'),
99        p = ''.concat(f, '-container'),
100        h = ''.concat(i, 'fade-in'),
101        m = ''.concat(i, 'fade-out'),
102        g = h + '-strong',
103        v = m + '-strong',
104        b = ''.concat(i, 'opacity-'),
105        x = ''.concat(b, '1'),
106        y = ''.concat(i, 'source');
107      function w(e) {
108        return (w =
109          'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
110            ? function (e) {
111                return typeof e;
112              }
113            : function (e) {
114                return e &&
115                  'function' == typeof Symbol &&
116                  e.constructor === Symbol &&
117                  e !== Symbol.prototype
118                  ? 'symbol'
119                  : typeof e;
120              })(e);
121      }
122      function S(e) {
123        var t = e.stageIndexes,
124          n = e.core.stageManager,
125          o = e.props.sources.length - 1;
126        ((n.getPreviousSlideIndex = function () {
127          return 0 === t.current ? o : t.current - 1;
128        }),
129          (n.getNextSlideIndex = function () {
130            return t.current === o ? 0 : t.current + 1;
131          }),
132          (n.updateStageIndexes =
133            0 === o
134              ? function () {}
135              : 1 === o
136                ? function () {
137                    0 === t.current
138                      ? ((t.next = 1), delete t.previous)
139                      : ((t.previous = 0), delete t.next);
140                  }
141                : function () {
142                    ((t.previous = n.getPreviousSlideIndex()), (t.next = n.getNextSlideIndex()));
143                  }),
144          (n.i =
145            o <= 2
146              ? function () {
147                  return !0;
148                }
149              : function (e) {
150                  var n = t.current;
151                  if ((0 === n && e === o) || (n === o && 0 === e)) return !0;
152                  var i = n - e;
153                  return -1 === i || 0 === i || 1 === i;
154                }));
155      }
156      'object' === ('undefined' == typeof document ? 'undefined' : w(document)) &&
157        (((o = document.createElement('style')).className = r),
158        o.appendChild(
159          document.createTextNode(
160            '.fslightbox-absoluted{position:absolute;top:0;left:0}.fslightbox-fade-in{animation:fslightbox-fade-in .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out{animation:fslightbox-fade-out .3s ease}.fslightbox-fade-in-strong{animation:fslightbox-fade-in-strong .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out-strong{animation:fslightbox-fade-out-strong .3s ease}@keyframes fslightbox-fade-in{from{opacity:.65}to{opacity:1}}@keyframes fslightbox-fade-out{from{opacity:.35}to{opacity:0}
160}@keyframes fslightbox-fade-in-strong{from{opacity:.3}to{opacity:1}}@keyframes fslightbox-fade-out-strong{from{opacity:1}to{opacity:0}}.fslightbox-cursor-grabbing{cursor:grabbing}.fslightbox-full-dimension{width:100%;height:100%}.fslightbox-open{overflow:hidden;height:100%}.fslightbox-flex-centered{display:flex;justify-content:center;align-items:center}.fslightbox-opacity-0{opacity:0!important}.fslightbox-opacity-1{opacity:1!important}.fslightbox-scrollbarfix{padding-right:17px}.fslightbox-transform-transition{transition:transform .3s}.fslightbox-container{font-family:Arial,sans-serif;position:fixed;top:0;left:0;background:linear-gradient(rgba(30,30,30,.9),#000 1810%);touch-action:pinch-zoom;z-index:1000000000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fslightbox-container *{box-sizing:border-box}.fslightbox-svg-path{transition:fill .15s ease;fill:#ddd}.fslightbox-nav{height:45px;width:100%;position:absolute;top:0;left:0}.fslightbox-slide-number-container{display:flex;justify-content:center;align-items:center;position:relative;height:100%;font-size:15px;color:#d7d7d7;z-index:0;max-width:55px;text-align:left}.fslightbox-slide-number-container .fslightbox-flex-centered{height:100%}.fslightbox-slash{display:block;margin:0 5px;width:1px;height:12px;transform:rotate(15deg);background:#fff}.fslightbox-toolbar{position:absolute;z-index:3;right:0;top:0;height:100%;display:flex;background:rgba(35,35,35,.65)}.fslightbox-toolbar-button{height:100%;width:45px;cursor:pointer}.fslightbox-toolbar-button:hover .fslightbox-svg-path{fill:#fff}.fslightbox-slide-btn-container{display:flex;align-items:center;padding:12px 12px 12px 6px;position:absolute;top:50%;cursor:pointer;z-index:3;transform:translateY(-50%)}@media (min-width:476px){.fslightbox-slide-btn-container{padding:22px 22px 22px 6px}}@media (min-width:768px){.fslightbox-slide-btn-container{padding:30px 30px 30px 6px}}.fslightbox-slide-btn-container:hover .fslightbox-svg-path{fill:#f1f1f1}.fslightbox-slide-btn{padding:9px;font-size:26px;background:rgba(35,35,35,.65)}@media (min-width:768px){.fslightbox-slide-btn{padding:10px}}@media (min-width:1600px){.fslightbox-slide-btn{padding:11px}}.fslightbox-slide-btn-container-previous{left:0}@media (max-width:475.99px){.fslightbox-slide-btn-container-previous{padding-left:3px}}.fslightbox-slide-btn-container-next{right:0;padding-left:12px;padding-right:3px}@media (min-width:476px){.fslightbox-slide-btn-container-next{padding-left:22px}}@media (min-width:768px){.fslightbox-slide-btn-container-next{padding-left:30px}}@media (min-width:476px){.fslightbox-slide-btn-container-next{padding-right:6px}}.fslightbox-down-event-detector{position:absolute;z-index:1}.fslightbox-slide-swiping-hoverer{z-index:4}.fslightbox-invalid-file-wrapper{font-size:22px;color:#eaebeb;margin:auto}.fslightbox-video{object-fit:cover}.fslightbox-youtube-iframe{border:0}.fslightboxl{display:block;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:67px;height:67px}.fslightboxl div{box-sizing:border-box;display:block;position:absolute;width:54px;height:54px;margin:6px;border:5px solid;border-color:#999 transparent transparent transparent;border-radius:50%;animation:fslightboxl 1.2s cubic-bezier(.5,0,.5,1) infinite}.fslightboxl div:nth-child(1){animation-delay:-.45s}.fslightboxl div:nth-child(2){animation-delay:-.3s}.fslightboxl div:nth-child(3){animation-delay:-.15s}@keyframes fslightboxl{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.fslightbox-source{position:relative;z-index:2;opacity:0}'
161          )
162        ),
163        document.head.appendChild(o));
164      function L(e) {
165        var t,
166          n = e.props,
167          o = 0,
168          i = {};
169        ((this.getSourceTypeFromLocalStorageByUrl = function (e) {
170          return t[e] ? t[e] : r(e);
171        }),
172          (this.handleReceivedSourceTypeForUrl = function (e, n) {
173            if (!1 === i[n] && (o--, 'invalid' !== e ? (i[n] = e) : delete i[n], 0 === o)) {
174              !(function (e, t) {
175                for (var n in t) e[n] = t[n];
176              })(t, i);
177              try {
178                localStorage.setItem('fslightbox-types', JSON.stringify(t));
179              } catch (e) {}
180            }
181          }));
182        var r = function (e) {
183          (o++, (i[e] = !1));
184        };
185        if (n.disableLocalStorage)
186          ((this.getSourceTypeFromLocalStorageByUrl = function () {}),
187            (this.handleReceivedSourceTypeForUrl = function () {}));
188        else {
189          try {
190            t = JSON.parse(localStorage.getItem('fslightbox-types'));
191          } catch (e) {}
192          t || ((t = {}), (this.getSourceTypeFromLocalStorageByUrl = r));
193        }
194      }
195      function A(e, t, n, o) {
196        var i = e.data,
197          r = e.elements.sources,
198          s = n / o,
199          a = 0;
200        this.adjustSize = function () {
201          if ((a = i.maxSourceWidth / s) < i.maxSourceHeight)
202            return (n < i.maxSourceWidth && (a = o), c());
203          ((a = o > i.maxSourceHeight ? i.maxSourceHeight : o), c());
204        };
205        var c = function () {
206          ((r[t].style.width = a * s + 'px'), (r[t].style.height = a + 'px'));
207        };
208      }
209      function C(e, t) {
210        var n = this,
211          o = e.collections.sourceSizers,
212          i = e.elements,
213          r = i.sourceAnimationWrappers,
214          s = i.sources,
215          a = e.isl,
216          c = e.resolve;
217        function l(e, n) {
218          ((o[t] = c(A, [t, e, n])), o[t].adjustSize());
219        }
220        this.runActions = function (e, o) {
221          ((a[t] = !0),
222            s[t].classList.add(x),
223            r[t].classList.add(g),
224            r[t].removeChild(r[t].firstChild),
225            l(e, o),
226            (n.runActions = l));
227        };
228      }
229      function E(e, t) {
230        var n,
231          o = this,
232          i = e.elements.sources,
233          r = e.props,
234          s = (0, e.resolve)(C, [t]);
235        ((this.handleImageLoad = function (e) {
236          var t = e.target,
237            n = t.naturalWidth,
238            o = t.naturalHeight;
239          s.runActions(n, o);
240        }),
241          (this.handleVideoLoad = function (e) {
242            var t = e.target,
243              o = t.videoWidth,
244              i = t.videoHeight;
245            ((n = !0), s.runActions(o, i));
246          }),
247          (this.handleNotMetaDatedVideoLoad = function () {
248            n || o.handleYoutubeLoad();
249          }),
250          (this.handleYoutubeLoad = function () {
251            var e = 1920,
252              t = 1080;
253            (r.maxYoutubeDimensions &&
254              ((e = r.maxYoutubeDimensions.width), (t = r.maxYoutubeDimensions.height)),
255              s.runActions(e, t));
256          }),
257          (this.handleCustomLoad = function () {
258            var e = i[t],
259              n = e.offsetWidth,
260              r = e.offsetHeight;
261            n && r ? s.runActions(n, r) : setTimeout(o.handleCustomLoad);
262          }));
263      }
264      function F(e, t, n) {
265        var o = e.elements.sources,
266          i = e.props.customClasses,
267          r = i[t] ? i[t] : '';
268        o[t].className = n + ' ' + r;
269      }
270      function I(e, t) {
271        var n = e.elements.sources,
272          o = e.props.customAttributes;
273        for (var i in o[t]) n[t].setAttribute(i, o[t][i]);
274      }
275      function T(e, t) {
276        var n = e.collections.sourceLoadHandlers,
277          o = e.elements,
278          i = o.sources,
279          r = o.sourceAnimationWrappers,
280          s = e.props.sources;
281        ((i[t] = document.createElement('img')),
282          F(e, t, y),
283          (i[t].src = s[t]),
284          (i[t].onload = n[t].handleImageLoad),
285          I(e, t),
286          r[t].appendChild(i[t]));
287      }
288      function N(e, t) {
289        var n = e.collections.sourceLoadHandlers,
290          o = e.elements,
291          i = o.sources,
292          r = o.sourceAnimationWrappers,
293          s = e.props,
294          a = s.sources,
295          c = s.videosPosters;
296        ((i[t] = document.createElement('video')),
297          F(e, t, y),
298          (i[t].src = a[t]),
299          (i[t].onloadedmetadata = function (e) {
300            n[t].handleVideoLoad(e);
301          }),
302          (i[t].controls = !0),
303          I(e, t),
304          c[t] && (i[t].poster = c[t]));
305        var l = document.createElement('source');
306        ((l.src = a[t]),
307          i[t].appendChild(l),
308          setTimeout(n[t].handleNotMetaDatedVideoLoad, 3e3),
309          r[t].appendChild(i[t]));
310      }
311      function z(e, t) {
312        var n = e.collections.sourceLoadHandlers,
313          o = e.elements,
314          r = o.sources,
315          s = o.sourceAnimationWrappers,
316          a = e.props.sources;
317        ((r[t] = document.createElement('iframe')),
318          F(e, t, ''.concat(y, ' ').concat(i, 'youtube-iframe')));
319        var c = a[t],
320          l = c.split('?')[1];
321        ((r[t].src = 'https://www.youtube.com/embed/'
322          .concat(
323            c.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)[2],
324            '?'
325          )
326          .concat(l || '')),
327          (r[t].allowFullscreen = !0),
328          I(e, t),
329          s[t].appendChild(r[t]),
330          n[t].handleYoutubeLoad());
331      }
332      function P(e, t) {
333        var n = e.collections.sourceLoadHandlers,
334          o = e.elements,
335          i = o.sources,
336          r = o.sourceAnimationWrappers,
337          s = e.props.sources;
338        ((i[t] = s[t]),
339          F(e, t, ''.concat(i[t].className, ' ').concat(y)),
340          r[t].appendChild(i[t]),
341          n[t].handleCustomLoad());
342      }
343      function k(e, t) {
344        var n = e.elements,
345          o = n.sources,
346          r = n.sourceAnimationWrappers;
347        e.props.sources;
348        ((o[t] = document.createElement('div')),
349          (o[t].className = ''.concat(i, 'invalid-file-wrapper ').concat(c)),
350          (o[t].innerHTML = 'Invalid source'),
351          r[t].classList.add(g),
352          r[t].removeChild(r[t].firstChild),
353          r[t].appendChild(o[t]));
354      }
355      function H(e) {
356        var t = e.collections,
357          n = t.sourceLoadHandlers,
358          o = t.sourcesRenderFunctions,
359          i = e.core.sourceDisplayFacade,
360          r = e.resolve;
361        this.runActionsForSourceTypeAndIndex = function (t, s) {
362          var a;
363          switch (('invalid' !== t && (n[s] = r(E, [s])), t)) {
364            case 'image':
365              a = T;
366              break;
367            case 'video':
368              a = N;
369              break;
370            case 'youtube':
371              a = z;
372              break;
373            case 'custom':
374              a = P;
375              break;
376            default:
377              a = k;
378          }
379          ((o[s] = function () {
380            return a(e, s);
381          }),
382            i.displaySourcesWhichShouldBeDisplayed());
383        };
384      }
385      function W() {
386        var e,
387          t,
388          n,
389          o = {
390            isUrlYoutubeOne: function (e) {
391              var t = document.createElement('a');
392              return ((t.href = e), 'www.youtube.com' === t.hostname || 'youtu.be' === t.hostname);
393            },
394            getTypeFromResponseContentType: function (e) {
395              return e.slice(0, e.indexOf('/'));
396            }
397          };
398        function i() {
399          if (4 !== n.readyState) {
400            if (2 === n.readyState) {
401              var e;
402              switch (o.getTypeFromResponseContentType(n.getResponseHeader('content-type'))) {
403                case 'image':
404                  e = 'image';
405                  break;
406                case 'video':
407                  e = 'video';
408                  break;
409                default:
410                  e = 'invalid';
411              }
412              ((n.onreadystatechange = null), n.abort(), t(e));
413            }
414          } else t('invalid');
415        }
416        ((this.setUrlToCheck = function (t) {
417          e = t;
418        }),
419          (this.getSourceType = function (r) {
420            if (o.isUrlYoutubeOne(e)) return r('youtube');
421            ((t = r),
422              ((n = new XMLHttpRequest()).onreadystatechange = i),
423              n.open('GET', e, !0),
424              n.send());
425          }));
426      }
427      function R(e, t, n) {
428        var o = e.props,
429          i = o.types,
430          r = o.type,
431          s = o.sources,
432          a = e.resolve;
433        ((this.getTypeSetByClientForIndex = function (e) {
434          var t;
435          return (i && i[e] ? (t = i[e]) : r && (t = r), t);
436        }),
437          (this.retrieveTypeWithXhrForIndex = function (e) {
438            var o = a(W);
439            (o.setUrlToCheck(s[e]),
440              o.getSourceType(function (o) {
441                (t.handleReceivedSourceTypeForUrl(o, s[e]),
442                  n.runActionsForSourceTypeAndIndex(o, e));
443              }));
444          }));
445      }
446      function D(e, t) {
447        var n = e.core.stageManager,
448          o = e.elements,
449          i = o.smw,
450          r = o.sourceWrappersContainer,
451          s = e.props,
452          l = 0,
453          f = document.createElement('div');
454        function p(e) {
455          ((f.style.transform = 'translateX('.concat(e + l, 'px)')), (l = 0));
456        }
457        function h() {
458          return (1 + s.slideDistance) * innerWidth;
459        }
460        ((f.className = ''.concat(d, ' ').concat(a, ' ').concat(c)),
461          (f.s = function () {
462            f.style.display = 'flex';
463          }),
464          (f.h = function () {
465            f.style.display = 'none';
466          }),
467          (f.a = function () {
468            f.classList.add(u);
469          }),
470          (f.d = function () {
471            f.classList.remove(u);
472          }),
473          (f.n = function () {
474            f.style.removeProperty('transform');
475          }),
476          (f.v = function (e) {
477            return ((l = e), f);
478          }),
479          (f.ne = function () {
480            p(-h());
481          }),
482          (f.z = function () {
483            p(0);
484          }),
485          (f.p = function () {
486            p(h());
487          }),
488          n.i(t) || f.h(),
489          (i[t] = f),
490          r.appendChild(f),
491          (function (e, t) {
492            var n = e.elements,
493              o = n.smw,
494              i = n.sourceAnimationWrappers,
495              r = document.createElement('div'),
496              s = document.createElement('div');
497            s.className = 'fslightboxl';
498            for (var a = 0; a < 3; a++) {
499              var c = document.createElement('div');
500              s.appendChild(c);
501            }
502            (r.appendChild(s), o[t].appendChild(r), (i[t] = r));
503          })(e, t));
504      }
505      function O(e, t, n, o) {
506        var r = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
507        (r.setAttributeNS(null, 'width', t),
508          r.setAttributeNS(null, 'height', t),
509          r.setAttributeNS(null, 'viewBox', n));
510        var s = document.createElementNS('http://www.w3.org/2000/svg', 'path');
511        return (
512          s.setAttributeNS(null, 'class', ''.concat(i, 'svg-path')),
513          s.setAttributeNS(null, 'd', o),
514          r.appendChild(s),
515          e.appendChild(r),
516          r
517        );
518      }
519      function M(e, t) {
520        var n = document.createElement('div');
521        return (
522          (n.className = ''.concat(i, 'toolbar-button ').concat(c)),
523          (n.title = t),
524          e.appendChild(n),
525          n
526        );
527      }
528      function j(e, t) {
529        var n = document.createElement('div');
530        ((n.className = ''.concat(i, 'toolbar')),
531          t.appendChild(n),
532          (function (e, t) {
533            var n = e.componentsServices,
534              o = e.data,
535              i = e.fs,
536              r =
537                'M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z',
538              s = M(t);
539            s.title = 'Enter fullscreen';
540            var a = O(s, '20px', '0 0 18 18', r);
541            ((n.ofs = function () {
542              ((o.ifs = !0),
543                (s.title = 'Exit fullscreen'),
544                a.setAttributeNS(null, 'width', '24px'),
545                a.setAttributeNS(null, 'height', '24px'),
546                a.setAttributeNS(null, 'viewBox', '0 0 950 1024'),
547                a.firstChild.setAttributeNS(
548                  null,
549                  'd',
550                  'M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z'
551                ));
552            }),
553              (n.xfs = function () {
554                ((o.ifs = !1),
555                  (s.title = 'Enter fullscreen'),
556                  a.setAttributeNS(null, 'width', '20px'),
557                  a.setAttributeNS(null, 'height', '20px'),
558                  a.setAttributeNS(null, 'viewBox', '0 0 18 18'),
559                  a.firstChild.setAttributeNS(null, 'd', r));
560              }),
561              (s.onclick = i.t));
562          })(e, n),
563          (function (e, t) {
564            var n = M(t, 'Close');
565            ((n.onclick = e.core.lightboxCloser.closeLightbox),
566              O(
567                n,
568                '20px',
569                '0 0 24 24',
570                'M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z'
571              ));
572          })(e, n));
573      }
574      function X(e) {
575        var t = e.props.sources,
576          n = e.elements.container,
577          o = document.createElement('div');
578        ((o.className = ''.concat(i, 'nav')),
579          n.appendChild(o),
580          j(e, o),
581          t.length > 1 &&
582            (function (e, t) {
583              var n = e.componentsServices,
584                o = e.props.sources,
585                r = (e.stageIndexes, document.createElement('div'));
586              r.className = ''.concat(i, 'slide-number-container');
587              var s = document.createElement('div');
588              s.className = c;
589              var a = document.createElement('span');
590              n.setSlideNumber = function (e) {
591                return (a.innerHTML = e);
592              };
593              var l = document.createElement('span');
594              l.className = ''.concat(i, 'slash');
595              var u = document.createElement('div');
596              ((u.innerHTML = o.length),
597                r.appendChild(s),
598                s.appendChild(a),
599                s.appendChild(l),
600                s.appendChild(u),
601                t.appendChild(r),
602                setTimeout(function () {
603                  s.offsetWidth > 55 && (r.style.justifyContent = 'flex-start');
604                }));
605            })(e, o));
606      }
607      function B(e, t, n, o) {
608        var i = e.elements.container,
609          r = n.charAt(0).toUpperCase() + n.slice(1),
610          s = document.createElement('div');
611        ((s.className = ''.concat(p, ' ').concat(p, '-').concat(n)),
612          (s.title = ''.concat(r, ' slide')),
613          (s.onclick = t),
614          (function (e, t) {
615            var n = document.createElement('div');
616            ((n.className = ''.concat(f, ' ').concat(c)),
617              O(n, '20px', '0 0 20 20', t),
618              e.appendChild(n));
619          })(s, o),
620          i.appendChild(s));
621      }
622      function U(e) {
623        var t = e.core,
624          n = t.lightboxCloser,
625          o = t.slideChangeFacade,
626          i = e.fs;
627        this.listener = function (e) {
628          switch (e.key) {
629            case 'Escape':
630              n.closeLightbox();
631              break;
632            case 'ArrowLeft':
633              o.changeToPrevious();
634              break;
635            case 'ArrowRight':
636              o.changeToNext();
637              break;
638            case 'F11':
639              (e.preventDefault(), i.t());
640          }
641        };
642      }
643      function q(e) {
644        var t = e.elements,
645          n = e.sourcePointerProps,
646          o = e.stageIndexes;
647        function i(e, o) {
648          t.smw[e].v(n.swipedX)[o]();
649        }
650        this.runActionsForEvent = function (e) {
651          var r, a, c;
652          (t.container.contains(t.slideSwipingHoverer) ||
653            t.container.appendChild(t.slideSwipingHoverer),
654            (r = t.container),
655            (a = s),
656            (c = r.classList).contains(a) || c.add(a),
657            (n.swipedX = e.screenX - n.downScreenX));
658          var l = o.previous,
659            u = o.next;
660          (i(o.current, 'z'),
661            void 0 !== l && n.swipedX > 0
662              ? i(l, 'ne')
663              : void 0 !== u && n.swipedX < 0 && i(u, 'p'));
664        };
665      }
666      function V(e) {
667        var t = e.props.sources,
668          n = e.resolve,
669          o = e.sourcePointerProps,
670          i = n(q);
671        1 === t.length
672          ? (this.listener = function () {
673              o.swipedX = 1;
674            })
675          : (this.listener = function (e) {
676              o.isPointering && i.runActionsForEvent(e);
677            });
678      }
679      function _(e) {
680        var t = e.core.slideIndexChanger,
681          n = e.elements.smw,
682          o = e.stageIndexes,
683          i = e.sws;
684        function r(e) {
685          var t = n[o.current];
686          (t.a(), t[e]());
687        }
688        function s(e, t) {
689          void 0 !== e && (n[e].s(), n[e][t]());
690        }
691        ((this.runPositiveSwipedXActions = function () {
692          var e = o.previous;
693          if (void 0 === e) r('z');
694          else {
695            r('p');
696            var n = o.next;
697            t.changeTo(e);
698            var a = o.previous;
699            (i.d(a), i.b(n), r('z'), s(a, 'ne'));
700          }
701        }),
702          (this.runNegativeSwipedXActions = function () {
703            var e = o.next;
704            if (void 0 === e) r('z');
705            else {
706              r('ne');
707              var n = o.previous;
708              t.changeTo(e);
709              var a = o.next;
710              (i.d(a), i.b(n), r('z'), s(a, 'p'));
711            }
712          }));
713      }
714      function Y(e, t) {
715        e.contains(t) && e.removeChild(t);
716      }
717      function J(e) {
718        var t = e.core.lightboxCloser,
719          n = e.elements,
720          o = e.resolve,
721          i = e.sourcePointerProps,
722          r = o(_);
723        ((this.runNoSwipeActions = function () {
724          (Y(n.container, n.slideSwipingHoverer),
725            i.isSourceDownEventTarget || t.closeLightbox(),
726            (i.isPointering = !1));
727        }),
728          (this.runActions = function () {
729            (i.swipedX > 0 ? r.runPositiveSwipedXActions() : r.runNegativeSwipedXActions(),
730              Y(n.container, n.slideSwipingHoverer),
731              n.container.classList.remove(s),
732              (i.isPointering = !1));
733          }));
734      }
735      function G(e) {
736        var t = e.resolve,
737          n = e.sourcePointerProps,
738          o = t(J);
739        this.listener = function () {
740          n.isPointering && (n.swipedX ? o.runActions() : o.runNoSwipeActions());
741        };
742      }
743      function $(e) {
744        var t = this,
745          n = e.core,
746          o = n.eventsDispatcher,
747          i = n.globalEventsController,
748          r = n.scrollbarRecompensor,
749          s = e.data,
750          a = e.elements,
751          c = e.fs,
752          u = e.props,
753          d = e.sourcePointerProps;
754        ((this.isLightboxFadingOut = !1),
755          (this.runActions = function () {
756            ((t.isLightboxFadingOut = !0),
757              a.container.classList.add(v),
758              i.removeListeners(),
759              u.exitFullscreenOnClose && s.ifs && c.x(),
760              setTimeout(function () {
761                ((t.isLightboxFadingOut = !1),
762                  (d.isPointering = !1),
763                  a.container.classList.remove(v),
764                  document.documentElement.classList.remove(l),
765                  r.removeRecompense(),
766                  document.body.removeChild(a.container),
767                  o.dispatch('onClose'));
768              }, 270));
769          }));
770      }
771      function K(e, t) {
772        var n = e.classList;
773        n.contains(t) && n.remove(t);
774      }
775      function Q(e) {
776        var t, n, o;
777        ((n = (t = e).core.eventsDispatcher),
778          (o = t.props),
779          (n.dispatch = function (e) {
780            o[e] && o[e]();
781          }),
782          (function (e) {
783            var t = e.componentsServices,
784              n = e.data,
785              o = e.fs,
786              i = [
787                'fullscreenchange',
788                'webkitfullscreenchange',
789                'mozfullscreenchange',
790                'MSFullscreenChange'
791              ];
792            function r(e) {
793              for (var t = 0; t < i.length; t++) document[e](i[t], s);
794            }
795            function s() {
796              document.fullscreenElement ||
797              document.webkitIsFullScreen ||
798              document.mozFullScreen ||
799              document.msFullscreenElement
800                ? t.ofs()
801                : t.xfs();
802            }
803            ((o.o = function () {
804              t.ofs();
805              var e = document.documentElement;
806              e.requestFullscreen
807                ? e.requestFullscreen()
808                : e.mozRequestFullScreen
809                  ? e.mozRequestFullScreen()
810                  : e.webkitRequestFullscreen
811                    ? e.webkitRequestFullscreen()
812                    : e.msRequestFullscreen && e.msRequestFullscreen();
813            }),
814              (o.x = function () {
815                (t.xfs(),
816                  document.exitFullscreen
817                    ? document.exitFullscreen()
818                    : document.mozCancelFullScreen
819                      ? document.mozCancelFullScreen()
820                      : document.webkitExitFullscreen
821                        ? document.webkitExitFullscreen()
822                        : document.msExitFullscreen && document.msExitFullscreen());
823              }),
824              (o.t = function () {
825                n.ifs ? o.x() : o.o();
826              }),
827              (o.l = function () {
828                r('addEventListener');
829              }),
830              (o.q = function () {
831                r('removeEventListener');
832              }));
833          })(e),
834          (function (e) {
835            var t = e.core,
836              n = t.globalEventsController,
837              o = t.windowResizeActioner,
838              i = e.fs,
839              r = e.resolve,
840              s = r(U),
841              a = r(V),
842              c = r(G);
843            ((n.attachListeners = function () {
844              (document.addEventListener('pointermove', a.listener),
845                document.addEventListener('pointerup', c.listener),
846                addEventListener('resize', o.runActions),
847                document.addEventListener('keydown', s.listener),
848                i.l());
849            }),
850              (n.removeListeners = function () {
851                (document.removeEventListener('pointermove', a.listener),
852                  document.removeEventListener('pointerup', c.listener),
853                  removeEventListener('resize', o.runActions),
854                  document.removeEventListener('keydown', s.listener),
855                  i.q());
856              }));
857          })(e),
858          (function (e) {
859            var t = e.core.lightboxCloser,
860              n = (0, e.resolve)($);
861            t.closeLightbox = function () {
862              n.isLightboxFadingOut || n.runActions();
863            };
864          })(e),
865          (function (e) {
866            var t = e.data,
867              n = e.core.scrollbarRecompensor;
868            function o() {
869              document.body.offsetHeight >
869 innerHeight &&
870                (document.body.style.marginRight = t.scrollbarWidth + 'px');
871            }
872            ((n.addRecompense = function () {
873              'complete' === document.readyState
874                ? o()
875                : addEventListener('load', function () {
876                    (o(), (n.addRecompense = o));
877                  });
878            }),
879              (n.removeRecompense = function () {
880                document.body.style.removeProperty('margin-right');
881              }));
882          })(e),
883          (function (e) {
884            var t = e.core,
885              n = t.slideChangeFacade,
886              o = t.slideIndexChanger,
887              i = t.stageManager;
888            e.props.sources.length > 1
889              ? ((n.changeToPrevious = function () {
890                  o.jumpTo(i.getPreviousSlideIndex());
891                }),
892                (n.changeToNext = function () {
893                  o.jumpTo(i.getNextSlideIndex());
894                }))
895              : ((n.changeToPrevious = function () {}), (n.changeToNext = function () {}));
896          })(e),
897          (function (e) {
898            var t = e.componentsServices,
899              n = e.core,
900              o = n.slideIndexChanger,
901              i = n.sourceDisplayFacade,
902              r = n.stageManager,
903              s = e.elements,
904              a = s.smw,
905              c = s.sourceAnimationWrappers,
906              l = e.isl,
907              u = e.stageIndexes,
908              d = e.sws;
909            ((o.changeTo = function (e) {
910              ((u.current = e),
911                r.updateStageIndexes(),
912                t.setSlideNumber(e + 1),
913                i.displaySourcesWhichShouldBeDisplayed());
914            }),
915              (o.jumpTo = function (e) {
916                var t = u.previous,
917                  n = u.current,
918                  i = u.next,
919                  s = l[n],
920                  f = l[e];
921                o.changeTo(e);
922                for (var p = 0; p < a.length; p++) a[p].d();
923                (d.d(n),
924                  d.c(),
925                  requestAnimationFrame(function () {
926                    requestAnimationFrame(function () {
927                      var e = u.previous,
928                        o = u.next;
929                      function p() {
930                        r.i(n)
931                          ? n === u.previous
932                            ? a[n].ne()
933                            : n === u.next && a[n].p()
934                          : (a[n].h(), a[n].n());
935                      }
936                      (s && c[n].classList.add(m),
937                        f && c[u.current].classList.add(h),
938                        d.a(),
939                        void 0 !== e && e !== n && a[e].ne(),
940                        a[u.current].n(),
941                        void 0 !== o && o !== n && a[o].p(),
942                        d.b(t),
943                        d.b(i),
944                        l[n] ? setTimeout(p, 260) : p());
945                    });
946                  }));
947              }));
948          })(e),
949          (function (e) {
950            var t = e.core.sourcesPointerDown,
951              n = e.elements,
952              o = n.smw,
953              i = n.sources,
954              r = e.sourcePointerProps,
955              s = e.stageIndexes;
956            t.listener = function (e) {
957              ('VIDEO' !== e.target.tagName && e.preventDefault(),
958                (r.isPointering = !0),
959                (r.downScreenX = e.screenX),
960                (r.swipedX = 0));
961              var t = i[s.current];
962              t && t.contains(e.target)
963                ? (r.isSourceDownEventTarget = !0)
964                : (r.isSourceDownEventTarget = !1);
965              for (var n = 0; n < o.length; n++) o[n].d();
966            };
967          })(e),
968          (function (e) {
969            var t = e.collections.sourcesRenderFunctions,
970              n = e.core.sourceDisplayFacade,
971              o = e.props,
972              i = e.stageIndexes;
973            function r(e) {
974              t[e] && (t[e](), delete t[e]);
975            }
976            n.displaySourcesWhichShouldBeDisplayed = function () {
977              if (o.loadOnlyCurrentSource) r(i.current);
978              else for (var e in i) r(i[e]);
979            };
980          })(e),
981          (function (e) {
982            var t = e.core.stageManager,
983              n = e.elements,
984              o = n.smw,
985              i = n.sourceAnimationWrappers,
986              r = e.isl,
987              s = e.stageIndexes,
988              a = e.sws;
989            ((a.a = function () {
990              for (var e in s) o[s[e]].s();
991            }),
992              (a.b = function (e) {
993                void 0 === e || t.i(e) || (o[e].h(), o[e].n());
994              }),
995              (a.c = function () {
996                for (var e in s) a.d(s[e]);
997              }),
998              (a.d = function (e) {
999                if (r[e]) {
1000                  var t = i[e];
1001                  (K(t, g), K(t, h), K(t, m));
1002                }
1003              }));
1004          })(e),
1005          (function (e) {
1006            var t = e.collections.sourceSizers,
1007              n = e.core.windowResizeActioner,
1008              o = e.data,
1009              i = e.elements.smw,
1010              r = e.stageIndexes;
1011            n.runActions = function () {
1012              (innerWidth < 992
1013                ? (o.maxSourceWidth = innerWidth)
1014                : (o.maxSourceWidth = 0.9 * innerWidth),
1015                (o.maxSourceHeight = 0.9 * innerHeight));
1016              for (var e = 0; e < i.length; e++) (i[e].d(), t[e] && t[e].adjustSize());
1017              var n = r.previous,
1018                s = r.next;
1019              (void 0 !== n && i[n].ne(), void 0 !== s && i[s].p());
1020            };
1021          })(e));
1022      }
1023      function Z(e) {
1024        var t = e.componentsServices,
1025          n = e.core,
1026          o = n.eventsDispatcher,
1027          r = n.globalEventsController,
1028          s = n.scrollbarRecompensor,
1029          c = n.sourceDisplayFacade,
1030          u = n.stageManager,
1031          f = n.windowResizeActioner,
1032          p = e.data,
1033          h = e.elements,
1034          m = (e.props, e.stageIndexes),
1035          v = e.sws;
1036        function b() {
1037          var t, n;
1038          ((p.i = !0),
1039            (p.scrollbarWidth = (function () {
1040              var e = document.createElement('div'),
1041                t = e.style,
1042                n = document.createElement('div');
1043              ((t.visibility = 'hidden'),
1044                (t.width = '100px'),
1045                (t.msOverflowStyle = 'scrollbar'),
1046                (t.overflow = 'scroll'),
1047                (n.style.width = '100%'),
1048                document.body.appendChild(e));
1049              var o = e.offsetWidth;
1050              e.appendChild(n);
1051              var i = n.offsetWidth;
1052              return (document.body.removeChild(e), o - i);
1053            })()),
1054            Q(e),
1055            (h.container = document.createElement('div')),
1056            (h.container.className = ''.concat(i, 'container ').concat(a, ' ').
1056concat(g)),
1057            (function (e) {
1058              var t = e.elements;
1059              ((t.slideSwipingHoverer = document.createElement('div')),
1060                (t.slideSwipingHoverer.className = ''
1061                  .concat(i, 'slide-swiping-hoverer ')
1062                  .concat(a, ' ')
1063                  .concat(d)));
1064            })(e),
1065            X(e),
1066            (function (e) {
1067              var t = e.core.sourcesPointerDown,
1068                n = e.elements,
1069                o = e.props.sources,
1070                i = document.createElement('div');
1071              ((i.className = ''.concat(d, ' ').concat(a)),
1072                n.container.appendChild(i),
1073                i.addEventListener('pointerdown', t.listener),
1074                (n.sourceWrappersContainer = i));
1075              for (var r = 0; r < o.length; r++) D(e, r);
1076            })(e),
1077            e.props.sources.length > 1 &&
1078              ((n = (t = e).core.slideChangeFacade),
1079              B(
1080                t,
1081                n.changeToPrevious,
1082                'previous',
1083                'M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z'
1084              ),
1085              B(
1086                t,
1087                n.changeToNext,
1088                'next',
1089                'M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z'
1090              )),
1091            (function (e) {
1092              for (
1093                var t = e.props.sources, n = e.resolve, o = n(L), i = n(H), r = n(R, [o, i]), s = 0;
1094                s < t.length;
1095                s++
1096              )
1097                if ('string' == typeof t[s]) {
1098                  var a = r.getTypeSetByClientForIndex(s);
1099                  if (a) i.runActionsForSourceTypeAndIndex(a, s);
1100                  else {
1101                    var c = o.getSourceTypeFromLocalStorageByUrl(t[s]);
1102                    c ? i.runActionsForSourceTypeAndIndex(c, s) : r.retrieveTypeWithXhrForIndex(s);
1103                  }
1104                } else i.runActionsForSourceTypeAndIndex('custom', s);
1105            })(e),
1106            o.dispatch('onInit'));
1107        }
1108        e.open = function () {
1109          var n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0,
1110            i = m.previous,
1111            a = m.current,
1112            d = m.next;
1113          ((m.current = n),
1114            p.i || S(e),
1115            u.updateStageIndexes(),
1116            p.i ? (v.c(), v.a(), v.b(i), v.b(a), v.b(d), o.dispatch('onShow')) : b(),
1117            c.displaySourcesWhichShouldBeDisplayed(),
1118            t.setSlideNumber(n + 1),
1119            document.body.appendChild(h.container),
1120            document.documentElement.classList.add(l),
1121            s.addRecompense(),
1122            r.attachListeners(),
1123            f.runActions(),
1124            h.smw[m.current].n(),
1125            o.dispatch('onOpen'));
1126        };
1127      }
1128      function ee(e, t, n) {
1129        return (ee = te()
1130          ? Reflect.construct.bind()
1131          : function (e, t, n) {
1132              var o = [null];
1133              o.push.apply(o, t);
1134              var i = new (Function.bind.apply(e, o))();
1135              return (n && ne(i, n.prototype), i);
1136            }).apply(null, arguments);
1137      }
1138      function te() {
1139        if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
1140        if (Reflect.construct.sham) return !1;
1141        if ('function' == typeof Proxy) return !0;
1142        try {
1143          return (
1144            Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})),
1145            !0
1146          );
1147        } catch (e) {
1148          return !1;
1149        }
1150      }
1151      function ne(e, t) {
1152        return (ne = Object.setPrototypeOf
1153          ? Object.setPrototypeOf.bind()
1154          : function (e, t) {
1155              return ((e.__proto__ = t), e);
1156            })(e, t);
1157      }
1158      function oe(e) {
1159        return (
1160          (function (e) {
1161            if (Array.isArray(e)) return ie(e);
1162          })(e) ||
1163          (function (e) {
1164            if (
1165              ('undefined' != typeof Symbol && null != e[Symbol.iterator]) ||
1166              null != e['@@iterator']
1167            )
1168              return Array.from(e);
1169          })(e) ||
1170          (function (e, t) {
1171            if (!e) return;
1172            if ('string' == typeof e) return ie(e, t);
1173            var n = Object.prototype.toString.call(e).slice(8, -1);
1174            'Object' === n && e.constructor && (n = e.constructor.name);
1175            if ('Map' === n || 'Set' === n) return Array.from(e);
1176            if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
1177              return ie(e, t);
1178          })(e) ||
1179          (function () {
1180            throw new TypeError(
1181              'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
1182            );
1183          })()
1184        );
1185      }
1186      function ie(e, t) {
1187        (null == t || t > e.length) && (t = e.length);
1188        for (var n = 0, o = new Array(t); n < t; n++) o[n] = e[n];
1189        return o;
1190      }
1191      function re() {
1192        for (
1193          var e = document.getElementsByTagName('a'),
1194            t = function (t) {
1195              if (!e[t].hasAttribute('data-fslightbox')) return 'continue';
1196              var n = e[t].hasAttribute('data-href')
1197                ? e[t].getAttribute('data-href')
1198                : e[t].getAttribute('href');
1199              if (!n)
1200                return (
1201                  console.warn(
1202                    'The "data-fslightbox" attribute was set without the "href" attribute.'
1203                  ),
1204                  'continue'
1205                );
1206              var o = e[t].getAttribute('data-fslightbox');
1207              fsLightboxInstances[o] || (fsLightboxInstances[o] = new FsLightbox());
1208              var i = null;
1209              ('#' === n.charAt(0)
1210                ? (i = document.getElementById(n.substring(1)).cloneNode(!0)).removeAttribute('id')
1211                : (i = n),
1212                fsLightboxInstances[o].props.sources.push(i),
1213                fsLightboxInstances[o].elements.a.push(e[t]));
1214              var r = fsLightboxInstances[o].props.sources.length - 1;
1215              ((e[t].onclick = function (e) {
1216                (e.preventDefault(), fsLightboxInstances[o].open(r));
1217              }),
1218                d('types', 'data-type'),
1219                d('videosPosters', 'data-video-poster'),
1220                d('customClasses', 'data-class'),
1221                d('customClasses', 'data-custom-class'));
1222              for (
1223                var s = [
1224                    'href',
1225                    'data-fslightbox',
1226                    'data-href',
1227                    'data-type',
1228                    'data-video-poster',
1229                    'data-class',
1230                    'data-custom-class'
1231                  ],
1232                  a = e[t].attributes,
1233                  c = fsLightboxInstances[o].props.customAttributes,
1234                  l = 0;
1235                l < a.length;
1236                l++
1237              )
1238                if (-1 === s.indexOf(a[l].name) && 'data-' === a[l].name.substr(0, 5)) {
1239                  c[r] || (c[r] = {});
1240                  var u = a[l].name.substr(5);
1241                  c[r][u] = a[l].value;
1242                }
1243              function d(n, i) {
1244                e[t].hasAttribute(i) && (fsLightboxInstances[o].props[n][r] = e[t].getAttribute(i));
1245              }
1246            },
1247            n = 0;
1248          n < e.length;
1249          n++
1250        )
1251          t(n);
1252        var o = Object.keys(fsLightboxInstances);
1253        window.fsLightbox = fsLightboxInstances[o[o.length - 1]];
1254      }
1255      ((window.FsLightbox = function () {
1256        var e = this;
1257        ((this.props = {
1258          sources: [],
1259          customAttributes: [],
1260          customClasses: [],
1261          types: [],
1262          videosPosters: [],
1263          slideDistance: 0.3
1264        }),
1265          (this.data = {
1266            isFullscreenOpen: !1,
1267            maxSourceWidth: 0,
1268            maxSourceHeight: 0,
1269            scrollbarWidth: 0
1270          }),
1271          (this.isl = []),
1272          (this.sourcePointerProps = {
1273            downScreenX: null,
1274            isPointering: !1,
1275            isSourceDownEventTarget: !1,
1276            swipedX: 0
1277          }),
1278          (this.stageIndexes = {}),
1279          (this.elements = {
1280            a: [],
1281            container: null,
1282            slideSwipingHoverer: null,
1283            smw: [],
1284            sourceWrappersContainer: null,
1285            sources: [],
1286            sourceAnimationWrappers: []
1287          }),
1288          (this.componentsServices = { setSlideNumber: function () {} }),
1289          (this.resolve = function (t) {
1290            var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [];
1291            return (n.unshift(e), ee(t, oe(n)));
1292          }),
1293          (this.collections = {
1294            sourceLoadHandlers: [],
1295            sourcesRenderFunctions: [],
1296            sourceSizers: []
1297          }),
1298          (this.core = {
1299            eventsDispatcher: {},
1300            globalEventsController: {},
1301            lightboxCloser: {},
1302            lightboxUpdater: {},
1303            scrollbarRecompensor: {},
1304            slideChangeFacade: {},
1305            slideIndexChanger: {},
1306            sourcesPointerDown: {},
1307            sourceDisplayFacade: {},
1308            stageManager: {},
1309            windowResizeActioner: {}
1310          }),
1311          (this.fs = {}),
1312          (this.sws = {}),
1313          Z(this),
1314          (this.close = function () {
1315            return e.core.lightboxCloser.closeLightbox();
1316          }));
1317      }),
1318        (window.fsLightboxInstances = {}),
1319        re(),
1320        (window.refreshFsLightbox = function () {
1321          for (var e in fsLightboxInstances) {
1322            var t = fsLightboxInstances[e].props;
1323            ((fsLightboxInstances[e] = new FsLightbox()),
1324              (fsLightboxInstances[e].props = t),
1325              (fsLightboxInstances[e].props.sources = []),
1326              (fsLightboxInstances[e].elements.a = []));
1327          }
1328          re();
1329        }));
1330    }
1331  ]);
1332});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.