1!(function (n, e) { 2 "object" == typeof exports && "undefined" != typeof module 3 ? (module.exports = e(require("embla-carousel"))) 4 : "function" == typeof define && define.amd 5 ? define(["embla-carousel"], e) 6 : ((n = 7 "undefined" != typeof globalThis 8 ? globalThis 9 : n || self).EmblaCarouselAutoplay = e(n.EmblaCarousel)); 10})(this, function (n) { 11 "use strict"; 12 function e(n) { 13 return n && "object" == typeof n && "default" in n ? n : { default: n }; 14 } 15 var o = e(n), 16 t = { 17 active: !0, 18 breakpoints: {}, 19 delay: 4e3, 20 jump: !1, 21 playOnInit: !0, 22 stopOnInteraction: !0, 23 stopOnMouseEnter: !1, 24 stopOnLastSnap: !1, 25 rootNode: null, 26 }; 27 function i(n) { 28 var e, 29 a, 30 r, 31 l = o.default.optionsHandler(), 32 u = l.merge(t, i.globalOptions), 33 s = 0, 34 d = !1; 35 function p() { 36 a.off("pointerDown", r), 37 e.stopOnInteraction || a.off("pointerUp", m), 38 c(), 39 (s = 0); 40 } 41 function f(n) { 42 c(), void 0 !== n && (d = n), (s = window.setTimeout(y, e.delay)); 43 } 44 function c() { 45 s && window.clearTimeout(s); 46 } 47 function m() { 48 s && (c(), f()); 49 } 50 function y() { 51 var n = a.internalEngine().index; 52 if (e.stopOnLastSnap && n.get() === n.max) return p(); 53 a.canScrollNext() ? a.scrollNext(d) : a.scrollTo(0, d), f(); 54 } 55 var b = { 56 name: "autoplay", 57 options: l.merge(u, n), 58 init: function (n) { 59 (a = n), 60 (e = l.atMedia(b.options)), 61 (d = e.jump), 62 (r = e.stopOnInteraction ? p : c); 63 var o = a.internalEngine().eventStore, 64 t = a.rootNode(), 65 i = (e.rootNode && e.rootNode(t)) || t; 66 a.on("pointerDown", r), 67 e.stopOnInteraction || a.on("pointerUp", m), 68 e.stopOnMouseEnter && 69 (o.add(i, "mouseenter", r), 70 e.stopOnInteraction || o.add(i, "mouseleave", m)), 71 o.add(document, "visibilitychange", function () { 72 if ("hidden" === document.visibilityState) return c(); 73 m(); 74 }), 75 o.add(window, "pagehide", function (n) { 76 n.persisted && c(); 77 }), 78 e.playOnInit && f(); 79 }, 80 destroy: p, 81 play: f, 82 stop: c, 83 reset: m, 84 }; 85 return b; 86 } 87 return (i.globalOptions = void 0), i; 88});
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.