You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
28 KiB
JavaScript
1 line
28 KiB
JavaScript
(()=>{var t={1474:(t,e,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){var t="undefined"!=typeof window?window:this,e=t.Glider=function(e,r){var o=this;if(e._glider)return e._glider;if(o.ele=e,o.ele.classList.add("glider"),o.ele._glider=o,o.opt=Object.assign({},{slidesToScroll:1,slidesToShow:1,resizeLock:!0,duration:.5,easing:function(t,e,r,o,i){return o*(e/=i)*e+r}},r),o.animate_id=o.page=o.slide=0,o.arrows={},o._opt=o.opt,o.opt.skipTrack)o.track=o.ele.children[0];else for(o.track=document.createElement("div"),o.ele.appendChild(o.track);1!==o.ele.children.length;)o.track.appendChild(o.ele.children[0]);o.track.classList.add("glider-track"),o.init(),o.resize=o.init.bind(o,!0),o.event(o.ele,"add",{scroll:o.updateControls.bind(o)}),o.event(t,"add",{resize:o.resize})},r=e.prototype;return r.init=function(t,e){var r=this,o=0,i=0;r.slides=r.track.children,[].forEach.call(r.slides,(function(t,e){t.classList.add("glider-slide"),t.setAttribute("data-gslide",e)})),r.containerWidth=r.ele.clientWidth;var n=r.settingsBreakpoint();if(e||(e=n),"auto"===r.opt.slidesToShow||void 0!==r.opt._autoSlide){var s=r.containerWidth/r.opt.itemWidth;r.opt._autoSlide=r.opt.slidesToShow=r.opt.exactWidth?s:Math.max(1,Math.floor(s))}"auto"===r.opt.slidesToScroll&&(r.opt.slidesToScroll=Math.floor(r.opt.slidesToShow)),r.itemWidth=r.opt.exactWidth?r.opt.itemWidth:r.containerWidth/r.opt.slidesToShow,[].forEach.call(r.slides,(function(t){t.style.height="auto",t.style.width=r.itemWidth+"px",o+=r.itemWidth,i=Math.max(t.offsetHeight,i)})),r.track.style.width=o+"px",r.trackWidth=o,r.isDrag=!1,r.preventClick=!1,r.move=!1,r.opt.resizeLock&&r.scrollTo(r.slide*r.itemWidth,0),(n||e)&&(r.bindArrows(),r.buildDots(),r.bindDrag()),r.updateControls(),r.emit(t?"refresh":"loaded")},r.bindDrag=function(){var t=this;t.mouse=t.mouse||t.handleMouse.bind(t);var e=function(){t.mouseDown=void 0,t.ele.classList.remove("drag"),t.isDrag&&(t.preventClick=!0),t.isDrag=!1};const r=function(){t.move=!0};var o={mouseup:e,mouseleave:e,mousedown:function(e){e.preventDefault(),e.stopPropagation(),t.mouseDown=e.clientX,t.ele.classList.add("drag"),t.move=!1,setTimeout(r,300)},touchstart:function(e){t.ele.classList.add("drag"),t.move=!1,setTimeout(r,300)},mousemove:t.mouse,click:function(e){t.preventClick&&t.move&&(e.preventDefault(),e.stopPropagation()),t.preventClick=!1,t.move=!1}};t.ele.classList.toggle("draggable",!0===t.opt.draggable),t.event(t.ele,"remove",o),t.opt.draggable&&t.event(t.ele,"add",o)},r.buildDots=function(){var t=this;if(t.opt.dots){if("string"==typeof t.opt.dots?t.dots=document.querySelector(t.opt.dots):t.dots=t.opt.dots,t.dots){t.dots.innerHTML="",t.dots.setAttribute("role","tablist"),t.dots.classList.add("glider-dots");for(var e=0;e<Math.ceil(t.slides.length/t.opt.slidesToShow);++e){var r=document.createElement("button");r.dataset.index=e,r.setAttribute("aria-label","Page "+(e+1)),r.setAttribute("role","tab"),r.className="glider-dot "+(e?"":"active"),t.event(r,"add",{click:t.scrollItem.bind(t,e,!0)}),t.dots.appendChild(r)}}}else t.dots&&(t.dots.innerHTML="")},r.bindArrows=function(){var t=this;t.opt.arrows?["prev","next"].forEach((function(e){var r=t.opt.arrows[e];r&&("string"==typeof r&&(r=document.querySelector(r)),r&&(r._func=r._func||t.scrollItem.bind(t,e),t.event(r,"remove",{click:r._func}),t.event(r,"add",{click:r._func}),t.arrows[e]=r))})):Object.keys(t.arrows).forEach((function(e){var r=t.arrows[e];t.event(r,"remove",{click:r._func})}))},r.updateControls=function(t){var e=this;t&&!e.opt.scrollPropagate&&t.stopPropagation();var r=e.containerWidth>=e.trackWidth;e.opt.rewind||(e.arrows.prev&&(e.arrows.prev.classList.toggle("disabled",e.ele.scrollLeft<=0||r),e.arrows.prev.setAttribute("aria-disabled",e.arrows.prev.classList.contains("disabled"))),e.arrows.next&&(e.arrows.next.classList.toggle("disabled",Math.ceil(e.ele.scrollLeft+e.containerWidth)>=Math.floor(e.trackWidth)||r),e.arrows.next.setAttribute("aria-disabled",e.arrows.next.classList.contains("disabled")))),e.slide=Math.round(e.ele.scrollLeft/e.itemWidth),e.page=Math.round(e.ele.scrollLeft/e.containerWidth);var o=e.slide+Math.floor(Math.floor(e.opt.slidesToShow)/2),i=Math.floor(e.opt.slidesToShow)%2?0:o+1;1===Math.floor(e.opt.slidesToShow)&&(i=0),e.ele.scrollLeft+e.containerWidth>=Math.floor(e.trackWidth)&&(e.page=e.dots?e.dots.children.length-1:0),[].forEach.call(e.slides,(function(t,r){var n=t.classList,s=n.contains("visible"),a=e.ele.scrollLeft,c=e.ele.scrollLeft+e.containerWidth,u=e.itemWidth*r,l=u+e.itemWidth;[].forEach.call(n,(function(t){/^left|right/.test(t)&&n.remove(t)})),n.toggle("active",e.slide===r),o===r||i&&i===r?n.add("center"):(n.remove("center"),n.add([r<o?"left":"right",Math.abs(r-(r<o?o:i||o))].join("-")));var p=Math.ceil(u)>=Math.floor(a)&&Math.floor(l)<=Math.ceil(c);n.toggle("visible",p),p!==s&&e.emit("slide-"+(p?"visible":"hidden"),{slide:r})})),e.dots&&[].forEach.call(e.dots.children,(function(t,r){t.classList.toggle("active",e.page===r)})),t&&e.opt.scrollLock&&(clearTimeout(e.scrollLock),e.scrollLock=setTimeout((function(){clearTimeout(e.scrollLock),Math.abs(e.ele.scrollLeft/e.itemWidth-e.slide)>.02&&(e.mouseDown||e.trackWidth>e.containerWidth+e.ele.scrollLeft&&e.scrollItem(e.getCurrentSlide()))}),e.opt.scrollLockDelay||250))},r.getCurrentSlide=function(){var t=this;return t.round(t.ele.scrollLeft/t.itemWidth)},r.scrollItem=function(t,e,r){r&&r.preventDefault();var o=this,i=t;++o.animate_id;var n,s=o.slide;if(!0===e)n=(t=Math.round(t*o.containerWidth/o.itemWidth))*o.itemWidth;else{if("string"==typeof t){var a="prev"===t;if(t=o.opt.slidesToScroll%1||o.opt.slidesToShow%1?o.getCurrentSlide():o.slide,a?t-=o.opt.slidesToScroll:t+=o.opt.slidesToScroll,o.opt.rewind){var c=o.ele.scrollLeft;t=a&&!c?o.slides.length:!a&&c+o.containerWidth>=Math.floor(o.trackWidth)?0:t}}t=Math.max(Math.min(t,o.slides.length),0),o.slide=t,n=o.itemWidth*t}return o.emit("scroll-item",{prevSlide:s,slide:t}),o.scrollTo(n,o.opt.duration*Math.abs(o.ele.scrollLeft-n),(function(){o.updateControls(),o.emit("animated",{value:i,type:"string"==typeof i?"arrow":e?"dot":"slide"})})),!1},r.settingsBreakpoint=function(){var e=this,r=e._opt.responsive;if(r){r.sort((function(t,e){return e.breakpoint-t.breakpoint}));for(var o=0;o<r.length;++o){var i=r[o];if(t.innerWidth>=i.breakpoint)return e.breakpoint!==i.breakpoint&&(e.opt=Object.assign({},e._opt,i.settings),e.breakpoint=i.breakpoint,!0)}}var n=0!==e.breakpoint;return e.opt=Object.assign({},e._opt),e.breakpoint=0,n},r.scrollTo=function(e,r,o){var i=this,n=(new Date).getTime(),s=i.animate_id,a=function(){var c=(new Date).getTime()-n;i.ele.scrollLeft=i.ele.scrollLeft+(e-i.ele.scrollLeft)*i.opt.easing(0,c,0,1,r),c<r&&s===i.animate_id?t.requestAnimationFrame(a):(i.ele.scrollLeft=e,o&&o.call(i))};t.requestAnimationFrame(a)},r.removeItem=function(t){var e=this;e.slides.length&&(e.track.removeChild(e.slides[t]),e.refresh(!0),e.emit("remove"))},r.addItem=function(t){var e=this;e.track.appendChild(t),e.refresh(!0),e.emit("add")},r.handleMouse=function(t){var e=this;e.mouseDown&&(e.isDrag=!0,e.ele.scrollLeft+=(e.mouseDown-t.clientX)*(e.opt.dragVelocity||3.3),e.mouseDown=t.clientX)},r.round=function(t){var e=1/(this.opt.slidesToScroll%1||1);return Math.round(t*e)/e},r.refresh=function(t){this.init(!0,t)},r.setOption=function(t,e){var r=this;r.breakpoint&&!e?r._opt.responsive.forEach((function(e){e.breakpoint===r.breakpoint&&(e.settings=Object.assign({},e.settings,t))})):r._opt=Object.assign({},r._opt,t),r.breakpoint=0,r.settingsBreakpoint()},r.destroy=function(){var e=this,r=e.ele.cloneNode(!0),o=function(t){t.removeAttribute("style"),[].forEach.call(t.classList,(function(e){/^glider/.test(e)&&t.classList.remove(e)}))};e.opt.skipTrack||(r.children[0].outerHTML=r.children[0].innerHTML),o(r),[].forEach.call(r.getElementsByTagName("*"),o),e.ele.parentNode.replaceChild(r,e.ele),e.event(t,"remove",{resize:e.resize}),e.emit("destroy")},r.emit=function(e,r){var o=this,i=new t.CustomEvent("glider-"+e,{bubbles:!o.opt.eventPropagate,detail:r});o.ele.dispatchEvent(i)},r.event=function(t,e,r){var o=t[e+"EventListener"].bind(t);Object.keys(r).forEach((function(t){o(t,r[t])}))},e})?o.call(e,r,e,t):o)||(t.exports=i)},509:(t,e,r)=>{"use strict";var o=r(9985),i=r(3691),n=TypeError;t.exports=function(t){if(o(t))return t;throw new n(i(t)+" is not a function")}},767:(t,e,r)=>{"use strict";var o=r(3622),i=TypeError;t.exports=function(t,e){if(o(e,t))return t;throw new i("Incorrect invocation")}},5027:(t,e,r)=>{"use strict";var o=r(8999),i=String,n=TypeError;t.exports=function(t){if(o(t))return t;throw new n(i(t)+" is not an object")}},4328:(t,e,r)=>{"use strict";var o=r(5290),i=r(7578),n=r(6310),s=function(t){return function(e,r,s){var a,c=o(e),u=n(c),l=i(s,u);if(t&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},6648:(t,e,r)=>{"use strict";var o=r(8844),i=o({}.toString),n=o("".slice);t.exports=function(t){return n(i(t),8,-1)}},926:(t,e,r)=>{"use strict";var o=r(3043),i=r(9985),n=r(6648),s=r(4201)("toStringTag"),a=Object,c="Arguments"===n(function(){return arguments}());t.exports=o?n:function(t){var e,r,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?r:c?n(e):"Object"===(o=n(e))&&i(e.callee)?"Arguments":o}},8758:(t,e,r)=>{"use strict";var o=r(6812),i=r(9152),n=r(2474),s=r(2560);t.exports=function(t,e,r){for(var a=i(e),c=s.f,u=n.f,l=0;l<a.length;l++){var p=a[l];o(t,p)||r&&o(r,p)||c(t,p,u(e,p))}}},1748:(t,e,r)=>{"use strict";var o=r(3689);t.exports=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},5773:(t,e,r)=>{"use strict";var o=r(7697),i=r(2560),n=r(5684);t.exports=o?function(t,e,r){return i.f(t,e,n(1,r))}:function(t,e,r){return t[e]=r,t}},5684:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},1880:(t,e,r)=>{"use strict";var o=r(9985),i=r(2560),n=r(8702),s=r(5014);t.exports=function(t,e,r,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:e;if(o(r)&&n(r,u,a),a.global)c?t[e]=r:s(e,r);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=r:i.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},5014:(t,e,r)=>{"use strict";var o=r(9037),i=Object.defineProperty;t.exports=function(t,e){try{i(o,t,{value:e,configurable:!0,writable:!0})}catch(r){o[t]=e}return e}},7697:(t,e,r)=>{"use strict";var o=r(3689);t.exports=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},2659:t=>{"use strict";var e="object"==typeof document&&document.all,r=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:r}},6420:(t,e,r)=>{"use strict";var o=r(9037),i=r(8999),n=o.document,s=i(n)&&i(n.createElement);t.exports=function(t){return s?n.createElement(t):{}}},71:t=>{"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:(t,e,r)=>{"use strict";var o,i,n=r(9037),s=r(71),a=n.process,c=n.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(i=(o=l.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&s&&(!(o=s.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=s.match(/Chrome\/(\d+)/))&&(i=+o[1]),t.exports=i},2739:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9989:(t,e,r)=>{"use strict";var o=r(9037),i=r(2474).f,n=r(5773),s=r(1880),a=r(5014),c=r(8758),u=r(5266);t.exports=function(t,e){var r,l,p,f,d,h=t.target,v=t.global,g=t.stat;if(r=v?o:g?o[h]||a(h,{}):(o[h]||{}).prototype)for(l in e){if(f=e[l],p=t.dontCallGetSet?(d=i(r,l))&&d.value:r[l],!u(v?l:h+(g?".":"#")+l,t.forced)&&void 0!==p){if(typeof f==typeof p)continue;c(f,p)}(t.sham||p&&p.sham)&&n(f,"sham",!0),s(r,l,f,t)}}},3689:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},4071:(t,e,r)=>{"use strict";var o=r(6576),i=r(509),n=r(7215),s=o(o.bind);t.exports=function(t,e){return i(t),void 0===e?t:n?s(t,e):function(){return t.apply(e,arguments)}}},7215:(t,e,r)=>{"use strict";var o=r(3689);t.exports=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},2615:(t,e,r)=>{"use strict";var o=r(7215),i=Function.prototype.call;t.exports=o?i.bind(i):function(){return i.apply(i,arguments)}},1236:(t,e,r)=>{"use strict";var o=r(7697),i=r(6812),n=Function.prototype,s=o&&Object.getOwnPropertyDescriptor,a=i(n,"name"),c=a&&"something"===function(){}.name,u=a&&(!o||o&&s(n,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},6576:(t,e,r)=>{"use strict";var o=r(6648),i=r(8844);t.exports=function(t){if("Function"===o(t))return i(t)}},8844:(t,e,r)=>{"use strict";var o=r(7215),i=Function.prototype,n=i.call,s=o&&i.bind.bind(n,n);t.exports=o?s:function(t){return function(){return n.apply(t,arguments)}}},6058:(t,e,r)=>{"use strict";var o=r(9037),i=r(9985);t.exports=function(t,e){return arguments.length<2?(r=o[t],i(r)?r:void 0):o[t]&&o[t][e];var r}},2302:t=>{"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1664:(t,e,r)=>{"use strict";var o=r(926),i=r(4849),n=r(981),s=r(9478),a=r(4201)("iterator");t.exports=function(t){if(!n(t))return i(t,a)||i(t,"@@iterator")||s[o(t)]}},5185:(t,e,r)=>{"use strict";var o=r(2615),i=r(509),n=r(5027),s=r(3691),a=r(1664),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(i(r))return n(o(r,t));throw new c(s(t)+" is not iterable")}},4849:(t,e,r)=>{"use strict";var o=r(509),i=r(981);t.exports=function(t,e){var r=t[e];return i(r)?void 0:o(r)}},9037:function(t,e,r){"use strict";var o=function(t){return t&&t.Math===Math&&t};t.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},6812:(t,e,r)=>{"use strict";var o=r(8844),i=r(690),n=o({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return n(i(t),e)}},7248:t=>{"use strict";t.exports={}},2688:(t,e,r)=>{"use strict";var o=r(6058);t.exports=o("document","documentElement")},8506:(t,e,r)=>{"use strict";var o=r(7697),i=r(3689),n=r(6420);t.exports=!o&&!i((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))},4413:(t,e,r)=>{"use strict";var o=r(8844),i=r(3689),n=r(6648),s=Object,a=o("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===n(t)?a(t,""):s(t)}:s},6738:(t,e,r)=>{"use strict";var o=r(8844),i=r(9985),n=r(4091),s=o(Function.toString);i(n.inspectSource)||(n.inspectSource=function(t){return s(t)}),t.exports=n.inspectSource},618:(t,e,r)=>{"use strict";var o,i,n,s=r(9834),a=r(9037),c=r(8999),u=r(5773),l=r(6812),p=r(4091),f=r(2713),d=r(7248),h="Object already initialized",v=a.TypeError,g=a.WeakMap;if(s||p.state){var m=p.state||(p.state=new g);m.get=m.get,m.has=m.has,m.set=m.set,o=function(t,e){if(m.has(t))throw new v(h);return e.facade=t,m.set(t,e),e},i=function(t){return m.get(t)||{}},n=function(t){return m.has(t)}}else{var b=f("state");d[b]=!0,o=function(t,e){if(l(t,b))throw new v(h);return e.facade=t,u(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},n=function(t){return l(t,b)}}t.exports={set:o,get:i,has:n,enforce:function(t){return n(t)?i(t):o(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=i(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return r}}}},3292:(t,e,r)=>{"use strict";var o=r(4201),i=r(9478),n=o("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||s[n]===t)}},9985:(t,e,r)=>{"use strict";var o=r(2659),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},5266:(t,e,r)=>{"use strict";var o=r(3689),i=r(9985),n=/#|\.prototype\./,s=function(t,e){var r=c[a(t)];return r===l||r!==u&&(i(e)?o(e):!!e)},a=s.normalize=function(t){return String(t).replace(n,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},981:t=>{"use strict";t.exports=function(t){return null==t}},8999:(t,e,r)=>{"use strict";var o=r(9985),i=r(2659),n=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:o(t)||t===n}:function(t){return"object"==typeof t?null!==t:o(t)}},3931:t=>{"use strict";t.exports=!1},734:(t,e,r)=>{"use strict";var o=r(6058),i=r(9985),n=r(3622),s=r(9525),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&n(e.prototype,a(t))}},8734:(t,e,r)=>{"use strict";var o=r(4071),i=r(2615),n=r(5027),s=r(3691),a=r(3292),c=r(6310),u=r(3622),l=r(5185),p=r(1664),f=r(2125),d=TypeError,Result=function(t,e){this.stopped=t,this.result=e},h=Result.prototype;t.exports=function(t,e,r){var v,g,m,b,y,w,x,S=r&&r.that,T=!(!r||!r.AS_ENTRIES),_=!(!r||!r.IS_RECORD),k=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),L=o(e,S),j=function(t){return v&&f(v,"normal",t),new Result(!0,t)},E=function(t){return T?(n(t),O?L(t[0],t[1],j):L(t[0],t[1])):O?L(t,j):L(t)};if(_)v=t.iterator;else if(k)v=t;else{if(!(g=p(t)))throw new d(s(t)+" is not iterable");if(a(g)){for(m=0,b=c(t);b>m;m++)if((y=E(t[m]))&&u(h,y))return y;return new Result(!1)}v=l(t,g)}for(w=_?t.next:v.next;!(x=i(w,v)).done;){try{y=E(x.value)}catch(t){f(v,"throw",t)}if("object"==typeof y&&y&&u(h,y))return y}return new Result(!1)}},2125:(t,e,r)=>{"use strict";var o=r(2615),i=r(5027),n=r(4849);t.exports=function(t,e,r){var s,a;i(t);try{if(!(s=n(t,"return"))){if("throw"===e)throw r;return r}s=o(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw r;if(a)throw s;return i(s),r}},2013:(t,e,r)=>{"use strict";var o,i,n,s=r(3689),a=r(9985),c=r(8999),u=r(5391),l=r(1868),p=r(1880),f=r(4201),d=r(3931),h=f("iterator"),v=!1;[].keys&&("next"in(n=[].keys())?(i=l(l(n)))!==Object.prototype&&(o=i):v=!0),!c(o)||s((function(){var t={};return o[h].call(t)!==t}))?o={}:d&&(o=u(o)),a(o[h])||p(o,h,(function(){return this})),t.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:v}},9478:t=>{"use strict";t.exports={}},6310:(t,e,r)=>{"use strict";var o=r(3126);t.exports=function(t){return o(t.length)}},8702:(t,e,r)=>{"use strict";var o=r(8844),i=r(3689),n=r(9985),s=r(6812),a=r(7697),c=r(1236).CONFIGURABLE,u=r(6738),l=r(618),p=l.enforce,f=l.get,d=String,h=Object.defineProperty,v=o("".slice),g=o("".replace),m=o([].join),b=a&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),y=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===v(d(e),0,7)&&(e="["+g(d(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!s(t,"name")||c&&t.name!==e)&&(a?h(t,"name",{value:e,configurable:!0}):t.name=e),b&&r&&s(r,"arity")&&t.length!==r.arity&&h(t,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var o=p(t);return s(o,"source")||(o.source=m(y,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return n(this)&&f(this).source||u(this)}),"toString")},8828:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var o=+t;return(o>0?r:e)(o)}},5391:(t,e,r)=>{"use strict";var o,i=r(5027),n=r(8920),s=r(2739),a=r(7248),c=r(2688),u=r(6420),l=r(2713),p="prototype",f="script",d=l("IE_PROTO"),EmptyConstructor=function(){},h=function(t){return"<"+f+">"+t+"</"+f+">"},NullProtoObjectViaActiveX=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},NullProtoObject=function(){try{o=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;NullProtoObject="undefined"!=typeof document?document.domain&&o?NullProtoObjectViaActiveX(o):(e=u("iframe"),r="java"+f+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):NullProtoObjectViaActiveX(o);for(var i=s.length;i--;)delete NullProtoObject[p][s[i]];return NullProtoObject()};a[d]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(EmptyConstructor[p]=i(t),r=new EmptyConstructor,EmptyConstructor[p]=null,r[d]=t):r=NullProtoObject(),void 0===e?r:n.f(r,e)}},8920:(t,e,r)=>{"use strict";var o=r(7697),i=r(5648),n=r(2560),s=r(5027),a=r(5290),c=r(300);e.f=o&&!i?Object.defineProperties:function(t,e){s(t);for(var r,o=a(e),i=c(e),u=i.length,l=0;u>l;)n.f(t,r=i[l++],o[r]);return t}},2560:(t,e,r)=>{"use strict";var o=r(7697),i=r(8506),n=r(5648),s=r(5027),a=r(8360),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",f="configurable",d="writable";e.f=o?n?function(t,e,r){if(s(t),e=a(e),s(r),"function"==typeof t&&"prototype"===e&&"value"in r&&d in r&&!r[d]){var o=l(t,e);o&&o[d]&&(t[e]=r.value,r={configurable:f in r?r[f]:o[f],enumerable:p in r?r[p]:o[p],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(s(t),e=a(e),s(r),i)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},2474:(t,e,r)=>{"use strict";var o=r(7697),i=r(2615),n=r(9556),s=r(5684),a=r(5290),c=r(8360),u=r(6812),l=r(8506),p=Object.getOwnPropertyDescriptor;e.f=o?p:function(t,e){if(t=a(t),e=c(e),l)try{return p(t,e)}catch(t){}if(u(t,e))return s(!i(n.f,t,e),t[e])}},2741:(t,e,r)=>{"use strict";var o=r(4948),i=r(2739).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,i)}},7518:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},1868:(t,e,r)=>{"use strict";var o=r(6812),i=r(9985),n=r(690),s=r(2713),a=r(1748),c=s("IE_PROTO"),u=Object,l=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=n(t);if(o(e,c))return e[c];var r=e.constructor;return i(r)&&e instanceof r?r.prototype:e instanceof u?l:null}},3622:(t,e,r)=>{"use strict";var o=r(8844);t.exports=o({}.isPrototypeOf)},4948:(t,e,r)=>{"use strict";var o=r(8844),i=r(6812),n=r(5290),s=r(4328).indexOf,a=r(7248),c=o([].push);t.exports=function(t,e){var r,o=n(t),u=0,l=[];for(r in o)!i(a,r)&&i(o,r)&&c(l,r);for(;e.length>u;)i(o,r=e[u++])&&(~s(l,r)||c(l,r));return l}},300:(t,e,r)=>{"use strict";var o=r(4948),i=r(2739);t.exports=Object.keys||function(t){return o(t,i)}},9556:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},5899:(t,e,r)=>{"use strict";var o=r(2615),i=r(9985),n=r(8999),s=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&i(r=t.toString)&&!n(a=o(r,t)))return a;if(i(r=t.valueOf)&&!n(a=o(r,t)))return a;if("string"!==e&&i(r=t.toString)&&!n(a=o(r,t)))return a;throw new s("Can't convert object to primitive value")}},9152:(t,e,r)=>{"use strict";var o=r(6058),i=r(8844),n=r(2741),s=r(7518),a=r(5027),c=i([].concat);t.exports=o("Reflect","ownKeys")||function(t){var e=n.f(a(t)),r=s.f;return r?c(e,r(t)):e}},4684:(t,e,r)=>{"use strict";var o=r(981),i=TypeError;t.exports=function(t){if(o(t))throw new i("Can't call method on "+t);return t}},2713:(t,e,r)=>{"use strict";var o=r(3430),i=r(4630),n=o("keys");t.exports=function(t){return n[t]||(n[t]=i(t))}},4091:(t,e,r)=>{"use strict";var o=r(9037),i=r(5014),n="__core-js_shared__",s=o[n]||i(n,{});t.exports=s},3430:(t,e,r)=>{"use strict";var o=r(3931),i=r(4091);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.2",mode:o?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"})},146:(t,e,r)=>{"use strict";var o=r(3615),i=r(3689),n=r(9037).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},7578:(t,e,r)=>{"use strict";var o=r(8700),i=Math.max,n=Math.min;t.exports=function(t,e){var r=o(t);return r<0?i(r+e,0):n(r,e)}},5290:(t,e,r)=>{"use strict";var o=r(4413),i=r(4684);t.exports=function(t){return o(i(t))}},8700:(t,e,r)=>{"use strict";var o=r(8828);t.exports=function(t){var e=+t;return e!=e||0===e?0:o(e)}},3126:(t,e,r)=>{"use strict";var o=r(8700),i=Math.min;t.exports=function(t){return t>0?i(o(t),9007199254740991):0}},690:(t,e,r)=>{"use strict";var o=r(4684),i=Object;t.exports=function(t){return i(o(t))}},8732:(t,e,r)=>{"use strict";var o=r(2615),i=r(8999),n=r(734),s=r(4849),a=r(5899),c=r(4201),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!i(t)||n(t))return t;var r,c=s(t,l);if(c){if(void 0===e&&(e="default"),r=o(c,t,e),!i(r)||n(r))return r;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},8360:(t,e,r)=>{"use strict";var o=r(8732),i=r(734);t.exports=function(t){var e=o(t,"string");return i(e)?e:e+""}},3043:(t,e,r)=>{"use strict";var o={};o[r(4201)("toStringTag")]="z",t.exports="[object z]"===String(o)},3691:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},4630:(t,e,r)=>{"use strict";var o=r(8844),i=0,n=Math.random(),s=o(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+n,36)}},9525:(t,e,r)=>{"use strict";var o=r(146);t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5648:(t,e,r)=>{"use strict";var o=r(7697),i=r(3689);t.exports=o&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},9834:(t,e,r)=>{"use strict";var o=r(9037),i=r(9985),n=o.WeakMap;t.exports=i(n)&&/native code/.test(String(n))},4201:(t,e,r)=>{"use strict";var o=r(9037),i=r(3430),n=r(6812),s=r(4630),a=r(146),c=r(9525),u=o.Symbol,l=i("wks"),p=c?u.for||u:u&&u.withoutSetter||s;t.exports=function(t){return n(l,t)||(l[t]=a&&n(u,t)?u[t]:p("Symbol."+t)),l[t]}},7602:(t,e,r)=>{"use strict";var o=r(9989),i=r(9037),n=r(767),s=r(9985),a=r(1868),c=r(5773),u=r(3689),l=r(6812),p=r(4201),f=r(2013).IteratorPrototype,d=r(3931),h=p("toStringTag"),v=TypeError,g=i.Iterator,m=d||!s(g)||g.prototype!==f||!u((function(){g({})})),b=function Iterator(){if(n(this,f),a(this)===f)throw new v("Abstract class Iterator not directly constructable")};l(f,h)||c(f,h,"Iterator"),!m&&l(f,"constructor")&&f.constructor!==Object||c(f,"constructor",b),b.prototype=f,o({global:!0,constructor:!0,forced:m},{Iterator:b})},5:(t,e,r)=>{"use strict";var o=r(9989),i=r(8734),n=r(509),s=r(5027),a=r(2302);o({target:"Iterator",proto:!0,real:!0},{forEach:function(t){s(this),n(t);var e=a(this),r=0;i(e,(function(e){t(e,r++)}),{IS_RECORD:!0})}})}},e={};function __webpack_require__(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,__webpack_require__),i.exports}__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),(()=>{"use strict";__webpack_require__(7602),__webpack_require__(5);var t=__webpack_require__(1474);t.prototype.scrollItem=function(t,e,r){if(void 0===r&&e?.target&&(r=e,e=!1),void 0===r)return!1;if(r&&r.preventDefault(),this.opt.slidesToScroll=Math.max(1,this.opt.slidesToScroll),this.opt.slidesToShow=Math.max(1,this.opt.slidesToShow),this.itemWidth===1/0){const t=r.target.parentElement.querySelector(".web-stories-list__carousel"),e=window.getComputedStyle(t.querySelector(".web-stories-list__story"));this.itemWidth=parseFloat(e.width)+(parseFloat(e.marginLeft)+parseFloat(e.marginRight))}const o=t;if(++this.animate_id,!0===e)t*=this.containerWidth,t=Math.round(t/this.itemWidth)*this.itemWidth;else{if("string"==typeof t){const e="prev"===t;if(t=this.opt.slidesToScroll%1||this.opt.slidesToShow%1?this.getCurrentSlide():isNaN(this.slide)?0:this.slide,e?t-=this.opt.slidesToScroll:t+=this.opt.slidesToScroll,this.opt.rewind){const r=this.ele.scrollLeft;t=e&&!r?this.slides.length:!e&&r+this.containerWidth>=Math.floor(this.trackWidth)?0:t}}t=Math.min(t,this.slides.length),this.slide=t,t=this.itemWidth*t}return this.scrollTo(t,this.opt.duration*Math.abs(this.ele.scrollLeft-t),(function(){this.updateControls(),this.emit("animated",{value:o,type:"string"==typeof o?"arrow":e?"dot":"slide"})})),!1};const e=t;(0,window.wp.domReady)((()=>{const t=document.querySelectorAll(".web-stories-list__carousel"),r=window.webStoriesCarouselSettings.config.isRTL||"rtl"===document.documentElement.getAttribute("dir");t.length&&Array.from(t).forEach((t=>{const o=t.dataset.id,i=r?{prev:`.${o} .glider-next`,next:`.${o} .glider-prev`}:{prev:`.${o} .glider-prev`,next:`.${o} .glider-next`},n=t.classList.contains("circles"),s=window.getComputedStyle(t.querySelector(".web-stories-list__story")),a=parseFloat(s.width)+(parseFloat(s.marginLeft)+parseFloat(s.marginRight));new e(t,n?{slidesToShow:"auto",slidesToScroll:"auto",itemWidth:a,duration:.25,scrollLock:!0,arrows:i}:{slidesToShow:1,slidesToScroll:1,scrollLock:!0,arrows:i,responsive:[{breakpoint:775,settings:{slidesToShow:"auto",slidesToScroll:"auto",itemWidth:a,duration:.25}}]})}))}))})()})(); |