@streamlayer/react 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/app.d.ts +1 -0
- package/lib/app/masters.d.ts +11 -18
- package/lib/app/provider.d.ts +2 -0
- package/lib/app/useStreamLayerApp.d.ts +3 -1
- package/lib/cjs/advertisement.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/gamification-feature2.js +1 -1
- package/lib/cjs/index2.js +6 -2
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +3 -3
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/provider.js +28 -162
- package/lib/cjs/useStreamLayerApp2.js +9 -9
- package/lib/classic/app/app.d.ts +1 -0
- package/lib/classic/app/masters.d.ts +11 -18
- package/lib/classic/app/provider.d.ts +2 -0
- package/lib/classic/app/useStreamLayerApp.d.ts +3 -1
- package/lib/classic/cjs/advertisement.js +1 -1
- package/lib/classic/cjs/bet-pack.js +1 -1
- package/lib/classic/cjs/gamification-feature2.js +1 -1
- package/lib/classic/cjs/index2.js +6 -2
- package/lib/classic/cjs/masters.js +1 -1
- package/lib/classic/cjs/masters2.js +3 -3
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/provider.js +28 -162
- package/lib/classic/cjs/useStreamLayerApp2.js +9 -9
- package/lib/classic/es/advertisement.js +30 -30
- package/lib/classic/es/bet-pack.js +1 -1
- package/lib/classic/es/gamification-feature2.js +1 -1
- package/lib/classic/es/index.js +1 -1
- package/lib/classic/es/index2.js +1160 -1055
- package/lib/classic/es/masters.js +5 -4
- package/lib/classic/es/masters2.js +467 -580
- package/lib/classic/es/notification.js +42 -42
- package/lib/classic/es/points.js +5 -5
- package/lib/classic/es/provider.js +8535 -22157
- package/lib/classic/es/useStreamLayerApp2.js +2321 -2232
- package/lib/classic/style.css +1 -1
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/gamification-feature2.js +1 -1
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +53 -183
- package/lib/dist/es/gamification-feature.js +1 -1
- package/lib/dist/es/gamification-feature2.js +231 -77
- package/lib/dist/es/index.js +3 -2
- package/lib/dist/es/masters.js +19314 -32998
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +30 -30
- package/lib/es/bet-pack.js +1 -1
- package/lib/es/gamification-feature2.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/index2.js +1160 -1055
- package/lib/es/masters.js +5 -4
- package/lib/es/masters2.js +467 -580
- package/lib/es/notification.js +42 -42
- package/lib/es/points.js +5 -5
- package/lib/es/provider.js +8524 -22146
- package/lib/es/useStreamLayerApp2.js +2321 -2232
- package/lib/style.css +1 -1
- package/package.json +17 -15
package/lib/cjs/index2.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const v=require("react/jsx-runtime"),m=require("./provider.js"),I=require("react"),V=require("./useStreamLayerApp2.js"),Ee="16px",hr=17,yr=21,gr=24,rt=r=>r<.9?gr:r<1.17?yr:hr,jt=r=>{const[e,n]=I.useState(Ee),i=I.useRef(null);return I.useEffect(()=>{const t=m.c(()=>{const{offsetWidth:a,offsetHeight:o}=i.current||{};if(!a||!o)return;const s=o/a;n(a?`${a/rt(s)}px`:Ee)},200);return window.screen.orientation.addEventListener("change",t),window.addEventListener("orientationchange",t),window.addEventListener("resize",t),t(),()=>{window.screen.orientation.removeEventListener("change",t),window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}},[]),I.useEffect(()=>{const{offsetWidth:t,offsetHeight:a}=i.current||{};if(!t||!a)return;const o=a/t;n(t?`${t/rt(o)}px`:Ee)},[r]),{container:i,fontSize:e}},Ve=m.styled_default("button")({name:"ScreenButton",class:"s1pdy82n",propsAsIs:!1}),Tt=m.styled_default("div")({name:"ScreenTitle",class:"spc0iwi",propsAsIs:!1}),Ze=m.styled_default("div")({name:"ScreenDescription",class:"s18vssq2",propsAsIs:!1}),mr=m.styled_default("div")({name:"BetPackContainer",class:"blelwov",propsAsIs:!1}),br=m.styled_default("div")({name:"EmergencyContainer",class:"e1f9mu2m",propsAsIs:!1}),Sr=m.styled_default("div")({name:"EmergencyScreenTitle",class:"e1n10yo1",propsAsIs:!1}),wr=m.styled_default("div")({name:"EmergencyScreenDescription",class:"e1xecypc",propsAsIs:!1}),Or=()=>Ve,_r=m.styled_default(Or())({name:"EmergencyScreenButton",class:"e1k6zoyu",propsAsIs:!0}),Ne=({actionFn:r,description:e})=>{const{container:n,fontSize:i}=jt();return v.jsxs(br,{style:{fontSize:i},ref:n,children:[v.jsx(Sr,{children:"Something went wrong."}),v.jsx(wr,{children:e}),v.jsx(_r,{onClick:r,children:"Try again"})]})},Pr=m.styled_default("div")({name:"ScreenContainerBox",class:"s28ooi9",propsAsIs:!1}),fe=({children:r,height:e})=>{const{container:n,fontSize:i}=jt(e);return v.jsx(Pr,{style:{height:e,fontSize:i},ref:n,children:v.jsx("div",{children:r})})},nt=m.styled_default("div")({name:"ScreenWrap",class:"s8s3kc9",propsAsIs:!1}),kr=()=>m.Z1,xr=m.styled_default(kr())({name:"SponsorIcon",class:"s1uswib2",propsAsIs:!0}),Et=m.styled_default("div")({name:"EndScreenWrap",class:"el0dbzn",propsAsIs:!1}),jr=()=>Et,Tr=m.styled_default(jr())({name:"EndFirstScreenWrap",class:"e11do4i1",propsAsIs:!0}),Er=()=>Et,Cr=m.styled_default(Er())({name:"EndLastScreenWrap",class:"ef67yx9",propsAsIs:!0}),it=m.styled_default("div")({name:"EndScreenMain",class:"enw6fxs",propsAsIs:!1}),Lr=()=>Tt,Mr=m.styled_default(Lr())({name:"EndScreenTitle",class:"euaws9b",propsAsIs:!0}),Rr=()=>Ze,zr=m.styled_default(Rr())({name:"EndScreenDescription",class:"e9uqaot",propsAsIs:!0}),Ir=()=>Ze,Ar=m.styled_default(Ir())({name:"EndLastScreenDescription",class:"etyeg2m",propsAsIs:!0}),Dr=()=>Ve,ot=m.styled_default(Dr())({name:"EndScreenButton",class:"e177v9in",propsAsIs:!0}),$r=m.styled_default("img")({name:"EndScreenMedia",class:"ehp7lor",propsAsIs:!1}),Hr=({height:r,onEvent:e})=>{const[n,i]=I.useState(0);return n===0?v.jsx(fe,{height:r,children:v.jsx(nt,{children:v.jsxs(Tr,{children:[v.jsxs(it,{children:[v.jsx(xr,{name:"icon-masters-logo"}),v.jsx(Mr,{children:"Great picks!"}),v.jsxs(zr,{children:["As results come in we’ll send you",v.jsx("br",{}),"live updates right here."]})]}),v.jsx(ot,{onClick:()=>{i(1)},children:"Continue"})]})})},"end"):v.jsx(fe,{height:r,children:v.jsx(nt,{children:v.jsxs(Cr,{children:[v.jsxs(it,{children:[v.jsx($r,{src:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png"}),v.jsxs(Ar,{children:["Look for more live match insights,",v.jsx("br",{}),"predictions and more."]})]}),v.jsx(ot,{onClick:()=>e({type:"slOpenGameCenter"}),children:"Open Game Center"})]})})},"end")},Nr=({height:r="37px",width:e="37px"})=>v.jsx("div",{style:{height:r,width:e},children:v.jsx(m.Z1,{name:"loader"})}),Wr=m.styled_default("div")({name:"Container",class:"cv31tt7",propsAsIs:!1}),Ct=()=>v.jsx(Wr,{children:v.jsx(Nr,{})}),qr=({question:r,vote:e})=>r?v.jsx(m.Ht,{close:()=>{},openedQuestion:r,vote:e,isLoading:!1,isEarlyPrediction:!0}):null,Fr=m.styled_default("div")({name:"ScreenWrap",class:"s991vvm",propsAsIs:!1}),Br=m.styled_default("div")({name:"Main",class:"mnbj36g",propsAsIs:!1}),Gr=()=>m.Z1,Ur=m.styled_default(Gr())({name:"IconArrowRight",class:"izrvgt",propsAsIs:!0}),Qr=()=>m.Z1,Xr=m.styled_default(Qr())({name:"SponsorIcon",class:"swqs2ju",propsAsIs:!0}),Yr=m.styled_default("div")({name:"StartScreenSponsor",class:"s1oq8jlq",propsAsIs:!1}),Kr=()=>Tt,Vr=m.styled_default(Kr())({name:"StartScreenTitle",class:"se4nn9a",propsAsIs:!0}),Zr=()=>Ze,Jr=m.styled_default(Zr())({name:"StartScreenDescription",class:"sofug8s",propsAsIs:!0}),en=()=>Ve,tn=m.styled_default(en())({name:"StartScreenButton",class:"s18s0pjp",propsAsIs:!0}),rn=({height:r,countQuestionsAvailable:e,sliderRef:n})=>v.jsx(fe,{height:r,children:v.jsxs(Fr,{children:[v.jsxs(Br,{children:[v.jsx(Xr,{name:"icon-masters-logo"}),v.jsx(Yr,{children:"MASTERS PRESENTS"}),v.jsxs(Vr,{children:["Tee time predictions:",v.jsx("br",{}),"share your expertise"]}),v.jsxs(Jr,{children:["Swipe to answer today’s",v.jsx("br",{}),"question cards."]})]}),v.jsxs(tn,{onClick:()=>{var i;(i=n.current)==null||i.slickNext()},children:[e?`${e} questions available`:"See all questions",v.jsx(Ur,{name:"iconArrowRight"})]})]})},"start");var Lt={},Mt={},_e={},Rt={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};r.default=e})(Rt);var nn="Expected a function",at=NaN,on="[object Symbol]",an=/^\s+|\s+$/g,sn=/^[-+]0x[0-9a-f]+$/i,ln=/^0b[01]+$/i,un=/^0o[0-7]+$/i,cn=parseInt,fn=typeof m.commonjsGlobal=="object"&&m.commonjsGlobal&&m.commonjsGlobal.Object===Object&&m.commonjsGlobal,dn=typeof self=="object"&&self&&self.Object===Object&&self,pn=fn||dn||Function("return this")(),vn=Object.prototype,hn=vn.toString,yn=Math.max,gn=Math.min,Ce=function(){return pn.Date.now()};function mn(r,e,n){var i,t,a,o,s,l,c=0,d=!1,u=!1,b=!0;if(typeof r!="function")throw new TypeError(nn);e=st(e)||0,We(n)&&(d=!!n.leading,u="maxWait"in n,a=u?yn(st(n.maxWait)||0,e):a,b="trailing"in n?!!n.trailing:b);function j(L){var D=i,q=t;return i=t=void 0,c=L,o=r.apply(q,D),o}function O(L){return c=L,s=setTimeout(x,e),d?j(L):o}function S(L){var D=L-l,q=L-c,g=e-D;return u?gn(g,a-q):g}function w(L){var D=L-l,q=L-c;return l===void 0||D>=e||D<0||u&&q>=a}function x(){var L=Ce();if(w(L))return h(L);s=setTimeout(x,S(L))}function h(L){return s=void 0,b&&i?j(L):(i=t=void 0,o)}function p(){s!==void 0&&clearTimeout(s),c=0,i=l=t=s=void 0}function k(){return s===void 0?o:h(Ce())}function C(){var L=Ce(),D=w(L);if(i=arguments,t=this,l=L,D){if(s===void 0)return O(l);if(u)return s=setTimeout(x,e),j(l)}return s===void 0&&(s=setTimeout(x,e)),o}return C.cancel=p,C.flush=k,C}function We(r){var e=typeof r;return!!r&&(e=="object"||e=="function")}function bn(r){return!!r&&typeof r=="object"}function Sn(r){return typeof r=="symbol"||bn(r)&&hn.call(r)==on}function st(r){if(typeof r=="number")return r;if(Sn(r))return at;if(We(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=We(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=r.replace(an,"");var n=ln.test(r);return n||un.test(r)?cn(r.slice(2),n?2:8):sn.test(r)?at:+r}var wn=mn,zt={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(r){(function(){var e={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=t(a,i(s)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)e.call(a,s)&&a[s]&&(o=t(o,s));return o}function t(a,o){return o?a?a+" "+o:a+o:a}r.exports?(n.default=n,r.exports=n):window.classNames=n})()})(xt);var _e=xt.exports,f={},Ke={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=n(A);function n(t){return t&&t.__esModule?t:{default:t}}var i={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(a){return e.default.createElement("ul",{style:{display:"block"}},a)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(a){return e.default.createElement("button",null,a+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};r.default=i})(Ke);Object.defineProperty(f,"__esModule",{value:!0});f.checkSpecKeys=f.checkNavigable=f.changeSlide=f.canUseDOM=f.canGoNext=void 0;f.clamp=Et;f.extractObject=void 0;f.filterSettings=_n;f.validSettings=f.swipeStart=f.swipeMove=f.swipeEnd=f.slidesOnRight=f.slidesOnLeft=f.slideHandler=f.siblingDirection=f.safePreventDefault=f.lazyStartIndex=f.lazySlidesOnRight=f.lazySlidesOnLeft=f.lazyEndIndex=f.keyHandler=f.initializedState=f.getWidth=f.getTrackLeft=f.getTrackCSS=f.getTrackAnimateCSS=f.getTotalSlides=f.getSwipeDirection=f.getSlideCount=f.getRequiredLazySlides=f.getPreClones=f.getPostClones=f.getOnDemandLazySlides=f.getNavigableIndexes=f.getHeight=void 0;var un=jt(A),cn=jt(Ke);function jt(r){return r&&r.__esModule?r:{default:r}}function oe(r){"@babel/helpers - typeof";return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(r)}function tt(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})),n.push.apply(n,i)}return n}function I(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tt(Object(n),!0).forEach(function(i){fn(r,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(n,i))})}return r}function fn(r,e,n){return e=dn(e),e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function dn(r){var e=pn(r,"string");return oe(e)=="symbol"?e:String(e)}function pn(r,e){if(oe(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,e||"default");if(oe(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Et(r,e,n){return Math.max(e,Math.min(r,n))}var V=f.safePreventDefault=function(e){var n=["onTouchStart","onTouchMove","onWheel"];n.includes(e._reactName)||e.preventDefault()},Ct=f.getOnDemandLazySlides=function(e){for(var n=[],i=Lt(e),t=Mt(e),a=i;a<t;a++)e.lazyLoadedList.indexOf(a)<0&&n.push(a);return n};f.getRequiredLazySlides=function(e){for(var n=[],i=Lt(e),t=Mt(e),a=i;a<t;a++)n.push(a);return n};var Lt=f.lazyStartIndex=function(e){return e.currentSlide-vn(e)},Mt=f.lazyEndIndex=function(e){return e.currentSlide+hn(e)},vn=f.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},hn=f.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},He=f.getWidth=function(e){return e&&e.offsetWidth||0},Rt=f.getHeight=function(e){return e&&e.offsetHeight||0},zt=f.getSwipeDirection=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i,t,a,o;return i=e.startX-e.curX,t=e.startY-e.curY,a=Math.atan2(t,i),o=Math.round(a*180/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":n===!0?o>=35&&o<=135?"up":"down":"vertical"},It=f.canGoNext=function(e){var n=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(n=!1),n};f.extractObject=function(e,n){var i={};return n.forEach(function(t){return i[t]=e[t]}),i};f.initializedState=function(e){var n=un.default.Children.count(e.children),i=e.listRef,t=Math.ceil(He(i)),a=e.trackRef&&e.trackRef.node,o=Math.ceil(He(a)),s;if(e.vertical)s=t;else{var l=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(l*=t/100),s=Math.ceil((t-l)/e.slidesToShow)}var u=i&&Rt(i.querySelector('[data-index="0"]')),d=u*e.slidesToShow,c=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(c=n-1-e.initialSlide);var b=e.lazyLoadedList||[],j=Ct(I(I({},e),{},{currentSlide:c,lazyLoadedList:b}));b=b.concat(j);var P={slideCount:n,slideWidth:s,listWidth:t,trackWidth:o,currentSlide:c,slideHeight:u,listHeight:d,lazyLoadedList:b};return e.autoplaying===null&&e.autoplay&&(P.autoplaying="playing"),P};f.slideHandler=function(e){var n=e.waitForAnimate,i=e.animating,t=e.fade,a=e.infinite,o=e.index,s=e.slideCount,l=e.lazyLoad,u=e.currentSlide,d=e.centerMode,c=e.slidesToScroll,b=e.slidesToShow,j=e.useCSS,P=e.lazyLoadedList;if(n&&i)return{};var g=o,S,y,p,_={},C={},L=a?o:Et(o,0,s-1);if(t){if(!a&&(o<0||o>=s))return{};o<0?g=o+s:o>=s&&(g=o-s),l&&P.indexOf(g)<0&&(P=P.concat(g)),_={animating:!0,currentSlide:g,lazyLoadedList:P,targetSlide:g},C={animating:!1,targetSlide:g}}else S=g,g<0?(S=g+s,a?s%c!==0&&(S=s-s%c):S=0):!It(e)&&g>u?g=S=u:d&&g>=s?(g=a?s:s-1,S=a?0:s-1):g>=s&&(S=g-s,a?s%c!==0&&(S=0):S=s-b),!a&&g+b>=s&&(S=s-b),y=de(I(I({},e),{},{slideIndex:g})),p=de(I(I({},e),{},{slideIndex:S})),a||(y===p&&(g=S),y=p),l&&(P=P.concat(Ct(I(I({},e),{},{currentSlide:g})))),j?(_={animating:!0,currentSlide:S,trackStyle:At(I(I({},e),{},{left:y})),lazyLoadedList:P,targetSlide:L},C={animating:!1,currentSlide:S,trackStyle:fe(I(I({},e),{},{left:p})),swipeLeft:null,targetSlide:L}):_={currentSlide:S,trackStyle:fe(I(I({},e),{},{left:p})),lazyLoadedList:P,targetSlide:L};return{state:_,nextState:C}};f.changeSlide=function(e,n){var i,t,a,o,s,l=e.slidesToScroll,u=e.slidesToShow,d=e.slideCount,c=e.currentSlide,b=e.targetSlide,j=e.lazyLoad,P=e.infinite;if(o=d%l!==0,i=o?0:(d-c)%l,n.message==="previous")a=i===0?l:u-i,s=c-a,j&&!P&&(t=c-a,s=t===-1?d-1:t),P||(s=b-l);else if(n.message==="next")a=i===0?l:i,s=c+a,j&&!P&&(s=(c+l)%d+i),P||(s=b+l);else if(n.message==="dots")s=n.index*n.slidesToScroll;else if(n.message==="children"){if(s=n.index,P){var g=bn(I(I({},e),{},{targetSlide:s}));s>n.currentSlide&&g==="left"?s=s-d:s<n.currentSlide&&g==="right"&&(s=s+d)}}else n.message==="index"&&(s=Number(n.index));return s};f.keyHandler=function(e,n,i){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!n?"":e.keyCode===37?i?"next":"previous":e.keyCode===39?i?"previous":"next":""};f.swipeStart=function(e,n,i){return e.target.tagName==="IMG"&&V(e),!n||!i&&e.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}};f.swipeMove=function(e,n){var i=n.scrolling,t=n.animating,a=n.vertical,o=n.swipeToSlide,s=n.verticalSwiping,l=n.rtl,u=n.currentSlide,d=n.edgeFriction,c=n.edgeDragged,b=n.onEdge,j=n.swiped,P=n.swiping,g=n.slideCount,S=n.slidesToScroll,y=n.infinite,p=n.touchObject,_=n.swipeEvent,C=n.listHeight,L=n.listWidth;if(!i){if(t)return V(e);a&&o&&s&&V(e);var E,D={},F=de(n);p.curX=e.touches?e.touches[0].pageX:e.clientX,p.curY=e.touches?e.touches[0].pageY:e.clientY,p.swipeLength=Math.round(Math.sqrt(Math.pow(p.curX-p.startX,2)));var h=Math.round(Math.sqrt(Math.pow(p.curY-p.startY,2)));if(!s&&!P&&h>10)return{scrolling:!0};s&&(p.swipeLength=h);var v=(l?-1:1)*(p.curX>p.startX?1:-1);s&&(v=p.curY>p.startY?1:-1);var M=Math.ceil(g/S),k=zt(n.touchObject,s),T=p.swipeLength;return y||(u===0&&(k==="right"||k==="down")||u+1>=M&&(k==="left"||k==="up")||!It(n)&&(k==="left"||k==="up"))&&(T=p.swipeLength*d,c===!1&&b&&(b(k),D.edgeDragged=!0)),!j&&_&&(_(k),D.swiped=!0),a?E=F+T*(C/L)*v:l?E=F-T*v:E=F+T*v,s&&(E=F+T*v),D=I(I({},D),{},{touchObject:p,swipeLeft:E,trackStyle:fe(I(I({},n),{},{left:E}))}),Math.abs(p.curX-p.startX)<Math.abs(p.curY-p.startY)*.8||p.swipeLength>10&&(D.swiping=!0,V(e)),D}};f.swipeEnd=function(e,n){var i=n.dragging,t=n.swipe,a=n.touchObject,o=n.listWidth,s=n.touchThreshold,l=n.verticalSwiping,u=n.listHeight,d=n.swipeToSlide,c=n.scrolling,b=n.onSwipe,j=n.targetSlide,P=n.currentSlide,g=n.infinite;if(!i)return t&&V(e),{};var S=l?u/s:o/s,y=zt(a,l),p={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(c||!a.swipeLength)return p;if(a.swipeLength>S){V(e),b&&b(y);var _,C,L=g?P:j;switch(y){case"left":case"up":C=L+nt(n),_=d?rt(n,C):C,p.currentDirection=0;break;case"right":case"down":C=L-nt(n),_=d?rt(n,C):C,p.currentDirection=1;break;default:_=L}p.triggerSlideHandler=_}else{var E=de(n);p.trackStyle=At(I(I({},n),{},{left:E}))}return p};var yn=f.getNavigableIndexes=function(e){for(var n=e.infinite?e.slideCount*2:e.slideCount,i=e.infinite?e.slidesToShow*-1:0,t=e.infinite?e.slidesToShow*-1:0,a=[];i<n;)a.push(i),i=t+e.slidesToScroll,t+=Math.min(e.slidesToScroll,e.slidesToShow);return a},rt=f.checkNavigable=function(e,n){var i=yn(e),t=0;if(n>i[i.length-1])n=i[i.length-1];else for(var a in i){if(n<i[a]){n=t;break}t=i[a]}return n},nt=f.getSlideCount=function(e){var n=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var i,t=e.listRef,a=t.querySelectorAll&&t.querySelectorAll(".slick-slide")||[];if(Array.from(a).every(function(l){if(e.vertical){if(l.offsetTop+Rt(l)/2>e.swipeLeft*-1)return i=l,!1}else if(l.offsetLeft-n+He(l)/2>e.swipeLeft*-1)return i=l,!1;return!0}),!i)return 0;var o=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide,s=Math.abs(i.dataset.index-o)||1;return s}else return e.slidesToScroll},Ve=f.checkSpecKeys=function(e,n){return n.reduce(function(i,t){return i&&e.hasOwnProperty(t)},!0)?null:console.error("Keys Missing:",e)},fe=f.getTrackCSS=function(e){Ve(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var n,i,t=e.slideCount+2*e.slidesToShow;e.vertical?i=t*e.slideHeight:n=mn(e)*e.slideWidth;var a={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";a=I(I({},a),{},{WebkitTransform:o,transform:s,msTransform:l})}else e.vertical?a.top=e.left:a.left=e.left;return e.fade&&(a={opacity:1}),n&&(a.width=n),i&&(a.height=i),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?a.marginTop=e.left+"px":a.marginLeft=e.left+"px"),a},At=f.getTrackAnimateCSS=function(e){Ve(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var n=fe(e);return e.useTransform?(n.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,n.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?n.transition="top "+e.speed+"ms "+e.cssEase:n.transition="left "+e.speed+"ms "+e.cssEase,n},de=f.getTrackLeft=function(e){if(e.unslick)return 0;Ve(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var n=e.slideIndex,i=e.trackRef,t=e.infinite,a=e.centerMode,o=e.slideCount,s=e.slidesToShow,l=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,c=e.variableWidth,b=e.slideHeight,j=e.fade,P=e.vertical,g=0,S,y,p=0;if(j||e.slideCount===1)return 0;var _=0;if(t?(_=-ce(e),o%l!==0&&n+l>o&&(_=-(n>o?s-(n-o):o%l)),a&&(_+=parseInt(s/2))):(o%l!==0&&n+l>o&&(_=s-o%l),a&&(_=parseInt(s/2))),g=_*u,p=_*b,P?S=n*b*-1+p:S=n*u*-1+g,c===!0){var C,L=i&&i.node;if(C=n+ce(e),y=L&&L.childNodes[C],S=y?y.offsetLeft*-1:0,a===!0){C=t?n+ce(e):n,y=L&&L.children[C],S=0;for(var E=0;E<C;E++)S-=L&&L.children[E]&&L.children[E].offsetWidth;S-=parseInt(e.centerPadding),S+=y&&(d-y.offsetWidth)/2}}return S},ce=f.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},gn=f.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},mn=f.getTotalSlides=function(e){return e.slideCount===1?1:ce(e)+e.slideCount+gn(e)},bn=f.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+Sn(e)?"left":"right":e.targetSlide<e.currentSlide-wn(e)?"right":"left"},Sn=f.slidesOnRight=function(e){var n=e.slidesToShow,i=e.centerMode,t=e.rtl,a=e.centerPadding;if(i){var o=(n-1)/2+1;return parseInt(a)>0&&(o+=1),t&&n%2===0&&(o+=1),o}return t?0:n-1},wn=f.slidesOnLeft=function(e){var n=e.slidesToShow,i=e.centerMode,t=e.rtl,a=e.centerPadding;if(i){var o=(n-1)/2+1;return parseInt(a)>0&&(o+=1),!t&&n%2===0&&(o+=1),o}return t?n-1:0};f.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var On=f.validSettings=Object.keys(cn.default);function _n(r){return On.reduce(function(e,n){return r.hasOwnProperty(n)&&(e[n]=r[n]),e},{})}var Pe={};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.Track=void 0;var G=Dt(A),Ee=Dt(_e),Ce=f;function Dt(r){return r&&r.__esModule?r:{default:r}}function Z(r){"@babel/helpers - typeof";return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(r)}function Ne(){return Ne=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])}return r},Ne.apply(this,arguments)}function Pn(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function kn(r,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Ht(i.key),i)}}function Tn(r,e,n){return e&&kn(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function xn(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&We(r,e)}function We(r,e){return We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,t){return i.__proto__=t,i},We(r,e)}function jn(r){var e=$t();return function(){var i=pe(r),t;if(e){var a=pe(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return En(this,t)}}function En(r,e){if(e&&(Z(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fe(r)}function Fe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function $t(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($t=function(){return!!r})()}function pe(r){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pe(r)}function it(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})),n.push.apply(n,i)}return n}function W(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?it(Object(n),!0).forEach(function(i){qe(r,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(n,i))})}return r}function qe(r,e,n){return e=Ht(e),e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function Ht(r){var e=Cn(r,"string");return Z(e)=="symbol"?e:String(e)}function Cn(r,e){if(Z(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,e||"default");if(Z(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Le=function(e){var n,i,t,a,o;e.rtl?o=e.slideCount-1-e.index:o=e.index,t=o<0||o>=e.slideCount,e.centerMode?(a=Math.floor(e.slidesToShow/2),i=(o-e.currentSlide)%e.slideCount===0,o>e.currentSlide-a-1&&o<=e.currentSlide+a&&(n=!0)):n=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow;var s;e.targetSlide<0?s=e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?s=e.targetSlide-e.slideCount:s=e.targetSlide;var l=o===s;return{"slick-slide":!0,"slick-active":n,"slick-center":i,"slick-cloned":t,"slick-current":l}},Ln=function(e){var n={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(n.width=e.slideWidth),e.fade&&(n.position="relative",e.vertical?n.top=-e.index*parseInt(e.slideHeight):n.left=-e.index*parseInt(e.slideWidth),n.opacity=e.currentSlide===e.index?1:0,n.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(n.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),n},Me=function(e,n){return e.key||n},Mn=function(e){var n,i=[],t=[],a=[],o=G.default.Children.count(e.children),s=(0,Ce.lazyStartIndex)(e),l=(0,Ce.lazyEndIndex)(e);return G.default.Children.forEach(e.children,function(u,d){var c,b={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?c=u:c=G.default.createElement("div",null);var j=Ln(W(W({},e),{},{index:d})),P=c.props.className||"",g=Le(W(W({},e),{},{index:d}));if(i.push(G.default.cloneElement(c,{key:"original"+Me(c,d),"data-index":d,className:(0,Ee.default)(g,P),tabIndex:"-1","aria-hidden":!g["slick-active"],style:W(W({outline:"none"},c.props.style||{}),j),onClick:function(p){c.props&&c.props.onClick&&c.props.onClick(p),e.focusOnSelect&&e.focusOnSelect(b)}})),e.infinite&&e.fade===!1){var S=o-d;S<=(0,Ce.getPreClones)(e)&&(n=-S,n>=s&&(c=u),g=Le(W(W({},e),{},{index:n})),t.push(G.default.cloneElement(c,{key:"precloned"+Me(c,n),"data-index":n,tabIndex:"-1",className:(0,Ee.default)(g,P),"aria-hidden":!g["slick-active"],style:W(W({},c.props.style||{}),j),onClick:function(p){c.props&&c.props.onClick&&c.props.onClick(p),e.focusOnSelect&&e.focusOnSelect(b)}}))),n=o+d,n<l&&(c=u),g=Le(W(W({},e),{},{index:n})),a.push(G.default.cloneElement(c,{key:"postcloned"+Me(c,n),"data-index":n,tabIndex:"-1",className:(0,Ee.default)(g,P),"aria-hidden":!g["slick-active"],style:W(W({},c.props.style||{}),j),onClick:function(p){c.props&&c.props.onClick&&c.props.onClick(p),e.focusOnSelect&&e.focusOnSelect(b)}}))}}),e.rtl?t.concat(i,a).reverse():t.concat(i,a)};Pe.Track=function(r){xn(n,r);var e=jn(n);function n(){var i;Pn(this,n);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return i=e.call.apply(e,[this].concat(a)),qe(Fe(i),"node",null),qe(Fe(i),"handleRef",function(s){i.node=s}),i}return Tn(n,[{key:"render",value:function(){var t=Mn(this.props),a=this.props,o=a.onMouseEnter,s=a.onMouseOver,l=a.onMouseLeave,u={onMouseEnter:o,onMouseOver:s,onMouseLeave:l};return G.default.createElement("div",Ne({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},u),t)}}]),n}(G.default.PureComponent);var ke={};function ee(r){"@babel/helpers - typeof";return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(r)}Object.defineProperty(ke,"__esModule",{value:!0});ke.Dots=void 0;var se=Nt(A),Rn=Nt(_e),ot=f;function Nt(r){return r&&r.__esModule?r:{default:r}}function at(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})),n.push.apply(n,i)}return n}function zn(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?at(Object(n),!0).forEach(function(i){In(r,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(n,i))})}return r}function In(r,e,n){return e=Wt(e),e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function An(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Dn(r,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Wt(i.key),i)}}function $n(r,e,n){return e&&Dn(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function Wt(r){var e=Hn(r,"string");return ee(e)=="symbol"?e:String(e)}function Hn(r,e){if(ee(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,e||"default");if(ee(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Nn(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Be(r,e)}function Be(r,e){return Be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,t){return i.__proto__=t,i},Be(r,e)}function Wn(r){var e=Ft();return function(){var i=ve(r),t;if(e){var a=ve(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return Fn(this,t)}}function Fn(r,e){if(e&&(ee(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qn(r)}function qn(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Ft(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ft=function(){return!!r})()}function ve(r){return ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ve(r)}var Bn=function(e){var n;return e.infinite?n=Math.ceil(e.slideCount/e.slidesToScroll):n=Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,n};ke.Dots=function(r){Nn(n,r);var e=Wn(n);function n(){return An(this,n),e.apply(this,arguments)}return $n(n,[{key:"clickHandler",value:function(t,a){a.preventDefault(),this.props.clickHandler(t)}},{key:"render",value:function(){for(var t=this.props,a=t.onMouseEnter,o=t.onMouseOver,s=t.onMouseLeave,l=t.infinite,u=t.slidesToScroll,d=t.slidesToShow,c=t.slideCount,b=t.currentSlide,j=Bn({slideCount:c,slidesToScroll:u,slidesToShow:d,infinite:l}),P={onMouseEnter:a,onMouseOver:o,onMouseLeave:s},g=[],S=0;S<j;S++){var y=(S+1)*u-1,p=l?y:(0,ot.clamp)(y,0,c-1),_=p-(u-1),C=l?_:(0,ot.clamp)(_,0,c-1),L=(0,Rn.default)({"slick-active":l?b>=C&&b<=p:b===C}),E={message:"dots",index:S,slidesToScroll:u,currentSlide:b},D=this.clickHandler.bind(this,E);g=g.concat(se.default.createElement("li",{key:S,className:L},se.default.cloneElement(this.props.customPaging(S),{onClick:D})))}return se.default.cloneElement(this.props.appendDots(g),zn({className:this.props.dotsClass},P))}}]),n}(se.default.PureComponent);var te={};function re(r){"@babel/helpers - typeof";return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(r)}Object.defineProperty(te,"__esModule",{value:!0});te.PrevArrow=te.NextArrow=void 0;var J=Bt(A),qt=Bt(_e),Gn=f;function Bt(r){return r&&r.__esModule?r:{default:r}}function he(){return he=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])}return r},he.apply(this,arguments)}function st(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})),n.push.apply(n,i)}return n}function ye(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?st(Object(n),!0).forEach(function(i){Un(r,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(n,i))})}return r}function Un(r,e,n){return e=Qt(e),e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function Gt(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Qn(r,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Qt(i.key),i)}}function Ut(r,e,n){return e&&Qn(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function Qt(r){var e=Yn(r,"string");return re(e)=="symbol"?e:String(e)}function Yn(r,e){if(re(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,e||"default");if(re(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Yt(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Ge(r,e)}function Ge(r,e){return Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,t){return i.__proto__=t,i},Ge(r,e)}function Xt(r){var e=Kt();return function(){var i=ge(r),t;if(e){var a=ge(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return Xn(this,t)}}function Xn(r,e){if(e&&(re(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kn(r)}function Kn(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Kt(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kt=function(){return!!r})()}function ge(r){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ge(r)}te.PrevArrow=function(r){Yt(n,r);var e=Xt(n);function n(){return Gt(this,n),e.apply(this,arguments)}return Ut(n,[{key:"clickHandler",value:function(t,a){a&&a.preventDefault(),this.props.clickHandler(t,a)}},{key:"render",value:function(){var t={"slick-arrow":!0,"slick-prev":!0},a=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(t["slick-disabled"]=!0,a=null);var o={key:"0","data-role":"none",className:(0,qt.default)(t),style:{display:"block"},onClick:a},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},l;return this.props.prevArrow?l=J.default.cloneElement(this.props.prevArrow,ye(ye({},o),s)):l=J.default.createElement("button",he({key:"0",type:"button"},o)," ","Previous"),l}}]),n}(J.default.PureComponent);te.NextArrow=function(r){Yt(n,r);var e=Xt(n);function n(){return Gt(this,n),e.apply(this,arguments)}return Ut(n,[{key:"clickHandler",value:function(t,a){a&&a.preventDefault(),this.props.clickHandler(t,a)}},{key:"render",value:function(){var t={"slick-arrow":!0,"slick-next":!0},a=this.clickHandler.bind(this,{message:"next"});(0,Gn.canGoNext)(this.props)||(t["slick-disabled"]=!0,a=null);var o={key:"1","data-role":"none",className:(0,qt.default)(t),style:{display:"block"},onClick:a},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},l;return this.props.nextArrow?l=J.default.cloneElement(this.props.nextArrow,ye(ye({},o),s)):l=J.default.createElement("button",he({key:"1",type:"button"},o)," ","Next"),l}}]),n}(J.default.PureComponent);var Vt=function(){if(typeof Map<"u")return Map;function r(e,n){var i=-1;return e.some(function(t,a){return t[0]===n?(i=a,!0):!1}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var i=r(this.__entries__,n),t=this.__entries__[i];return t&&t[1]},e.prototype.set=function(n,i){var t=r(this.__entries__,n);~t?this.__entries__[t][1]=i:this.__entries__.push([n,i])},e.prototype.delete=function(n){var i=this.__entries__,t=r(i,n);~t&&i.splice(t,1)},e.prototype.has=function(n){return!!~r(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,i){i===void 0&&(i=null);for(var t=0,a=this.__entries__;t<a.length;t++){var o=a[t];n.call(i,o[1],o[0])}},e}()}(),Ue=typeof window<"u"&&typeof document<"u"&&window.document===document,me=function(){return typeof ue.global<"u"&&ue.global.Math===Math?ue.global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Vn=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(me):function(r){return setTimeout(function(){return r(Date.now())},1e3/60)}}(),Jn=2;function Zn(r,e){var n=!1,i=!1,t=0;function a(){n&&(n=!1,r()),i&&s()}function o(){Vn(a)}function s(){var l=Date.now();if(n){if(l-t<Jn)return;i=!0}else n=!0,i=!1,setTimeout(o,e);t=l}return s}var ei=20,ti=["top","right","bottom","left","width","height","size","weight"],ri=typeof MutationObserver<"u",ni=function(){function r(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Zn(this.refresh.bind(this),ei)}return r.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},r.prototype.removeObserver=function(e){var n=this.observers_,i=n.indexOf(e);~i&&n.splice(i,1),!n.length&&this.connected_&&this.disconnect_()},r.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},r.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},r.prototype.connect_=function(){!Ue||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ri?(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)},r.prototype.disconnect_=function(){!Ue||!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)},r.prototype.onTransitionEnd_=function(e){var n=e.propertyName,i=n===void 0?"":n,t=ti.some(function(a){return!!~i.indexOf(a)});t&&this.refresh()},r.getInstance=function(){return this.instance_||(this.instance_=new r),this.instance_},r.instance_=null,r}(),Jt=function(r,e){for(var n=0,i=Object.keys(e);n<i.length;n++){var t=i[n];Object.defineProperty(r,t,{value:e[t],enumerable:!1,writable:!1,configurable:!0})}return r},ne=function(r){var e=r&&r.ownerDocument&&r.ownerDocument.defaultView;return e||me},Zt=Te(0,0,0,0);function be(r){return parseFloat(r)||0}function lt(r){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(i,t){var a=r["border-"+t+"-width"];return i+be(a)},0)}function ii(r){for(var e=["top","right","bottom","left"],n={},i=0,t=e;i<t.length;i++){var a=t[i],o=r["padding-"+a];n[a]=be(o)}return n}function oi(r){var e=r.getBBox();return Te(0,0,e.width,e.height)}function ai(r){var e=r.clientWidth,n=r.clientHeight;if(!e&&!n)return Zt;var i=ne(r).getComputedStyle(r),t=ii(i),a=t.left+t.right,o=t.top+t.bottom,s=be(i.width),l=be(i.height);if(i.boxSizing==="border-box"&&(Math.round(s+a)!==e&&(s-=lt(i,"left","right")+a),Math.round(l+o)!==n&&(l-=lt(i,"top","bottom")+o)),!li(r)){var u=Math.round(s+a)-e,d=Math.round(l+o)-n;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(l-=d)}return Te(t.left,t.top,s,l)}var si=function(){return typeof SVGGraphicsElement<"u"?function(r){return r instanceof ne(r).SVGGraphicsElement}:function(r){return r instanceof ne(r).SVGElement&&typeof r.getBBox=="function"}}();function li(r){return r===ne(r).document.documentElement}function ui(r){return Ue?si(r)?oi(r):ai(r):Zt}function ci(r){var e=r.x,n=r.y,i=r.width,t=r.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return Jt(o,{x:e,y:n,width:i,height:t,top:n,right:e+i,bottom:t+n,left:e}),o}function Te(r,e,n,i){return{x:r,y:e,width:n,height:i}}var fi=function(){function r(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Te(0,0,0,0),this.target=e}return r.prototype.isActive=function(){var e=ui(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},r.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},r}(),di=function(){function r(e,n){var i=ci(n);Jt(this,{target:e,contentRect:i})}return r}(),pi=function(){function r(e,n,i){if(this.activeObservations_=[],this.observations_=new Vt,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=i}return r.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ne(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new fi(e)),this.controller_.addObserver(this),this.controller_.refresh())}},r.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ne(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},r.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},r.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},r.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(i){return new di(i.target,i.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},r.prototype.clearActive=function(){this.activeObservations_.splice(0)},r.prototype.hasActive=function(){return this.activeObservations_.length>0},r}(),er=typeof WeakMap<"u"?new WeakMap:new Vt,tr=function(){function r(e){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ni.getInstance(),i=new pi(e,n,this);er.set(this,i)}return r}();["observe","unobserve","disconnect"].forEach(function(r){tr.prototype[r]=function(){var e;return(e=er.get(this))[r].apply(e,arguments)}});var vi=function(){return typeof me.ResizeObserver<"u"?me.ResizeObserver:tr}();const hi=Object.freeze(Object.defineProperty({__proto__:null,default:vi},Symbol.toStringTag,{value:"Module"})),yi=w.getAugmentedNamespace(hi);Object.defineProperty(Oe,"__esModule",{value:!0});Oe.InnerSlider=void 0;var N=ae(A),gi=ae(Tt),mi=ae(ln),bi=ae(_e),$=f,Si=Pe,wi=ke,ut=te,Oi=ae(yi);function ae(r){return r&&r.__esModule?r:{default:r}}function Y(r){"@babel/helpers - typeof";return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(r)}function Se(){return Se=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])}return r},Se.apply(this,arguments)}function _i(r,e){if(r==null)return{};var n=Pi(r,e),i,t;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);for(t=0;t<a.length;t++)i=a[t],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(n[i]=r[i])}return n}function Pi(r,e){if(r==null)return{};var n={},i=Object.keys(r),t,a;for(a=0;a<i.length;a++)t=i[a],!(e.indexOf(t)>=0)&&(n[t]=r[t]);return n}function ct(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})),n.push.apply(n,i)}return n}function O(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ct(Object(n),!0).forEach(function(i){z(r,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(n,i))})}return r}function ki(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Ti(r,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,nr(i.key),i)}}function xi(r,e,n){return e&&Ti(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function ji(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Qe(r,e)}function Qe(r,e){return Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,t){return i.__proto__=t,i},Qe(r,e)}function Ei(r){var e=rr();return function(){var i=we(r),t;if(e){var a=we(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return Ci(this,t)}}function Ci(r,e){if(e&&(Y(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R(r)}function R(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function rr(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rr=function(){return!!r})()}function we(r){return we=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},we(r)}function z(r,e,n){return e=nr(e),e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function nr(r){var e=Li(r,"string");return Y(e)=="symbol"?e:String(e)}function Li(r,e){if(Y(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,e||"default");if(Y(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}Oe.InnerSlider=function(r){ji(n,r);var e=Ei(n);function n(i){var t;ki(this,n),t=e.call(this,i),z(R(t),"listRefHandler",function(o){return t.list=o}),z(R(t),"trackRefHandler",function(o){return t.track=o}),z(R(t),"adaptHeight",function(){if(t.props.adaptiveHeight&&t.list){var o=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,$.getHeight)(o)+"px"}}),z(R(t),"componentDidMount",function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var o=(0,$.getOnDemandLazySlides)(O(O({},t.props),t.state));o.length>0&&(t.setState(function(l){return{lazyLoadedList:l.lazyLoadedList.concat(o)}}),t.props.onLazyLoad&&t.props.onLazyLoad(o))}var s=O({listRef:t.list,trackRef:t.track},t.props);t.updateState(s,!0,function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")}),t.props.lazyLoad==="progressive"&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new Oi.default(function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout(function(){return t.onWindowResized()},t.props.speed))):t.onWindowResized()}),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(l){l.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,l.onblur=t.props.pauseOnFocus?t.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)}),z(R(t),"componentWillUnmount",function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach(function(o){return clearTimeout(o)}),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()}),z(R(t),"componentDidUpdate",function(o){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var s=(0,$.getOnDemandLazySlides)(O(O({},t.props),t.state));s.length>0&&(t.setState(function(d){return{lazyLoadedList:d.lazyLoadedList.concat(s)}}),t.props.onLazyLoad&&t.props.onLazyLoad(s))}t.adaptHeight();var l=O(O({listRef:t.list,trackRef:t.track},t.props),t.state),u=t.didPropsChange(o);u&&t.updateState(l,u,function(){t.state.currentSlide>=N.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:N.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")})}),z(R(t),"onWindowResized",function(o){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,mi.default)(function(){return t.resizeWindow(o)},50),t.debouncedResize()}),z(R(t),"resizeWindow",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=!!(t.track&&t.track.node);if(s){var l=O(O({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(l,o,function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")}),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}}),z(R(t),"updateState",function(o,s,l){var u=(0,$.initializedState)(o);o=O(O(O({},o),u),{},{slideIndex:u.currentSlide});var d=(0,$.getTrackLeft)(o);o=O(O({},o),{},{left:d});var c=(0,$.getTrackCSS)(o);(s||N.default.Children.count(t.props.children)!==N.default.Children.count(o.children))&&(u.trackStyle=c),t.setState(u,l)}),z(R(t),"ssrInit",function(){if(t.props.variableWidth){var o=0,s=0,l=[],u=(0,$.getPreClones)(O(O(O({},t.props),t.state),{},{slideCount:t.props.children.length})),d=(0,$.getPostClones)(O(O(O({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach(function(D){l.push(D.props.style.width),o+=D.props.style.width});for(var c=0;c<u;c++)s+=l[l.length-1-c],o+=l[l.length-1-c];for(var b=0;b<d;b++)o+=l[b];for(var j=0;j<t.state.currentSlide;j++)s+=l[j];var P={width:o+"px",left:-s+"px"};if(t.props.centerMode){var g="".concat(l[t.state.currentSlide],"px");P.left="calc(".concat(P.left," + (100% - ").concat(g,") / 2 ) ")}return{trackStyle:P}}var S=N.default.Children.count(t.props.children),y=O(O(O({},t.props),t.state),{},{slideCount:S}),p=(0,$.getPreClones)(y)+(0,$.getPostClones)(y)+S,_=100/t.props.slidesToShow*p,C=100/p,L=-C*((0,$.getPreClones)(y)+t.state.currentSlide)*_/100;t.props.centerMode&&(L+=(100-C*_/100)/2);var E={width:_+"%",left:L+"%"};return{slideWidth:C+"%",trackStyle:E}}),z(R(t),"checkImagesLoad",function(){var o=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],s=o.length,l=0;Array.prototype.forEach.call(o,function(u){var d=function(){return++l&&l>=s&&t.onWindowResized()};if(!u.onclick)u.onclick=function(){return u.parentNode.focus()};else{var c=u.onclick;u.onclick=function(b){c(b),u.parentNode.focus()}}u.onload||(t.props.lazyLoad?u.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(u.onload=d,u.onerror=function(){d(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))})}),z(R(t),"progressiveLazyLoad",function(){for(var o=[],s=O(O({},t.props),t.state),l=t.state.currentSlide;l<t.state.slideCount+(0,$.getPostClones)(s);l++)if(t.state.lazyLoadedList.indexOf(l)<0){o.push(l);break}for(var u=t.state.currentSlide-1;u>=-(0,$.getPreClones)(s);u--)if(t.state.lazyLoadedList.indexOf(u)<0){o.push(u);break}o.length>0?(t.setState(function(d){return{lazyLoadedList:d.lazyLoadedList.concat(o)}}),t.props.onLazyLoad&&t.props.onLazyLoad(o)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)}),z(R(t),"slideHandler",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=t.props,u=l.asNavFor,d=l.beforeChange,c=l.onLazyLoad,b=l.speed,j=l.afterChange,P=t.state.currentSlide,g=(0,$.slideHandler)(O(O(O({index:o},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!s})),S=g.state,y=g.nextState;if(S){d&&d(P,S.currentSlide);var p=S.lazyLoadedList.filter(function(_){return t.state.lazyLoadedList.indexOf(_)<0});c&&p.length>0&&c(p),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),j&&j(P),delete t.animationEndCallback),t.setState(S,function(){u&&t.asNavForIndex!==o&&(t.asNavForIndex=o,u.innerSlider.slideHandler(o)),y&&(t.animationEndCallback=setTimeout(function(){var _=y.animating,C=_i(y,["animating"]);t.setState(C,function(){t.callbackTimers.push(setTimeout(function(){return t.setState({animating:_})},10)),j&&j(S.currentSlide),delete t.animationEndCallback})},b))})}}),z(R(t),"changeSlide",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=O(O({},t.props),t.state),u=(0,$.changeSlide)(l,o);if(!(u!==0&&!u)&&(s===!0?t.slideHandler(u,s):t.slideHandler(u),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var d=t.list.querySelectorAll(".slick-current");d[0]&&d[0].focus()}}),z(R(t),"clickHandler",function(o){t.clickable===!1&&(o.stopPropagation(),o.preventDefault()),t.clickable=!0}),z(R(t),"keyHandler",function(o){var s=(0,$.keyHandler)(o,t.props.accessibility,t.props.rtl);s!==""&&t.changeSlide({message:s})}),z(R(t),"selectHandler",function(o){t.changeSlide(o)}),z(R(t),"disableBodyScroll",function(){var o=function(l){l=l||window.event,l.preventDefault&&l.preventDefault(),l.returnValue=!1};window.ontouchmove=o}),z(R(t),"enableBodyScroll",function(){window.ontouchmove=null}),z(R(t),"swipeStart",function(o){t.props.verticalSwiping&&t.disableBodyScroll();var s=(0,$.swipeStart)(o,t.props.swipe,t.props.draggable);s!==""&&t.setState(s)}),z(R(t),"swipeMove",function(o){var s=(0,$.swipeMove)(o,O(O(O({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));s&&(s.swiping&&(t.clickable=!1),t.setState(s))}),z(R(t),"swipeEnd",function(o){var s=(0,$.swipeEnd)(o,O(O(O({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(s){var l=s.triggerSlideHandler;delete s.triggerSlideHandler,t.setState(s),l!==void 0&&(t.slideHandler(l),t.props.verticalSwiping&&t.enableBodyScroll())}}),z(R(t),"touchEnd",function(o){t.swipeEnd(o),t.clickable=!0}),z(R(t),"slickPrev",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"previous"})},0))}),z(R(t),"slickNext",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"next"})},0))}),z(R(t),"slickGoTo",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o=Number(o),isNaN(o))return"";t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"index",index:o,currentSlide:t.state.currentSlide},s)},0))}),z(R(t),"play",function(){var o;if(t.props.rtl)o=t.state.currentSlide-t.props.slidesToScroll;else if((0,$.canGoNext)(O(O({},t.props),t.state)))o=t.state.currentSlide+t.props.slidesToScroll;else return!1;t.slideHandler(o)}),z(R(t),"autoPlay",function(o){t.autoplayTimer&&clearInterval(t.autoplayTimer);var s=t.state.autoplaying;if(o==="update"){if(s==="hovered"||s==="focused"||s==="paused")return}else if(o==="leave"){if(s==="paused"||s==="focused")return}else if(o==="blur"&&(s==="paused"||s==="hovered"))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})}),z(R(t),"pause",function(o){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var s=t.state.autoplaying;o==="paused"?t.setState({autoplaying:"paused"}):o==="focused"?(s==="hovered"||s==="playing")&&t.setState({autoplaying:"focused"}):s==="playing"&&t.setState({autoplaying:"hovered"})}),z(R(t),"onDotsOver",function(){return t.props.autoplay&&t.pause("hovered")}),z(R(t),"onDotsLeave",function(){return t.props.autoplay&&t.state.autoplaying==="hovered"&&t.autoPlay("leave")}),z(R(t),"onTrackOver",function(){return t.props.autoplay&&t.pause("hovered")}),z(R(t),"onTrackLeave",function(){return t.props.autoplay&&t.state.autoplaying==="hovered"&&t.autoPlay("leave")}),z(R(t),"onSlideFocus",function(){return t.props.autoplay&&t.pause("focused")}),z(R(t),"onSlideBlur",function(){return t.props.autoplay&&t.state.autoplaying==="focused"&&t.autoPlay("blur")}),z(R(t),"render",function(){var o=(0,bi.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),s=O(O({},t.props),t.state),l=(0,$.extractObject)(s,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),u=t.props.pauseOnHover;l=O(O({},l),{},{onMouseEnter:u?t.onTrackOver:null,onMouseLeave:u?t.onTrackLeave:null,onMouseOver:u?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null});var d;if(t.props.dots===!0&&t.state.slideCount>=t.props.slidesToShow){var c=(0,$.extractObject)(s,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),b=t.props.pauseOnDotsHover;c=O(O({},c),{},{clickHandler:t.changeSlide,onMouseEnter:b?t.onDotsLeave:null,onMouseOver:b?t.onDotsOver:null,onMouseLeave:b?t.onDotsLeave:null}),d=N.default.createElement(wi.Dots,c)}var j,P,g=(0,$.extractObject)(s,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);g.clickHandler=t.changeSlide,t.props.arrows&&(j=N.default.createElement(ut.PrevArrow,g),P=N.default.createElement(ut.NextArrow,g));var S=null;t.props.vertical&&(S={height:t.state.listHeight});var y=null;t.props.vertical===!1?t.props.centerMode===!0&&(y={padding:"0px "+t.props.centerPadding}):t.props.centerMode===!0&&(y={padding:t.props.centerPadding+" 0px"});var p=O(O({},S),y),_=t.props.touchMove,C={className:"slick-list",style:p,onClick:t.clickHandler,onMouseDown:_?t.swipeStart:null,onMouseMove:t.state.dragging&&_?t.swipeMove:null,onMouseUp:_?t.swipeEnd:null,onMouseLeave:t.state.dragging&&_?t.swipeEnd:null,onTouchStart:_?t.swipeStart:null,onTouchMove:t.state.dragging&&_?t.swipeMove:null,onTouchEnd:_?t.touchEnd:null,onTouchCancel:t.state.dragging&&_?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},L={className:o,dir:"ltr",style:t.props.style};return t.props.unslick&&(C={className:"slick-list"},L={className:o}),N.default.createElement("div",L,t.props.unslick?"":j,N.default.createElement("div",Se({ref:t.listRefHandler},C),N.default.createElement(Si.Track,Se({ref:t.trackRefHandler},l),t.props.children)),t.props.unslick?"":P,t.props.unslick?"":d)}),t.list=null,t.track=null,t.state=O(O({},gi.default),{},{currentSlide:t.props.initialSlide,targetSlide:t.props.initialSlide?t.props.initialSlide:0,slideCount:N.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var a=t.ssrInit();return t.state=O(O({},t.state),a),t}return xi(n,[{key:"didPropsChange",value:function(t){for(var a=!1,o=0,s=Object.keys(this.props);o<s.length;o++){var l=s[o];if(!t.hasOwnProperty(l)){a=!0;break}if(!(Y(t[l])==="object"||typeof t[l]=="function"||isNaN(t[l]))&&t[l]!==this.props[l]){a=!0;break}}return a||N.default.Children.count(this.props.children)!==N.default.Children.count(t.children)}}]),n}(N.default.Component);var Mi=function(r){return r.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()},Ri=Mi,zi=Ri,Ii=function(r){var e=/[height|width]$/;return e.test(r)},ft=function(r){var e="",n=Object.keys(r);return n.forEach(function(i,t){var a=r[i];i=zi(i),Ii(i)&&typeof a=="number"&&(a=a+"px"),a===!0?e+=i:a===!1?e+="not "+i:e+="("+i+": "+a+")",t<n.length-1&&(e+=" and ")}),e},Ai=function(r){var e="";return typeof r=="string"?r:r instanceof Array?(r.forEach(function(n,i){e+=ft(n),i<r.length-1&&(e+=", ")}),e):ft(r)},Di=Ai,Re,dt;function $i(){if(dt)return Re;dt=1;function r(e){this.options=e,!e.deferSetup&&this.setup()}return r.prototype={constructor:r,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},Re=r,Re}var ze,pt;function ir(){if(pt)return ze;pt=1;function r(i,t){var a=0,o=i.length,s;for(a;a<o&&(s=t(i[a],a),s!==!1);a++);}function e(i){return Object.prototype.toString.apply(i)==="[object Array]"}function n(i){return typeof i=="function"}return ze={isFunction:n,isArray:e,each:r},ze}var Ie,vt;function Hi(){if(vt)return Ie;vt=1;var r=$i(),e=ir().each;function n(i,t){this.query=i,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(i);var a=this;this.listener=function(o){a.mql=o.currentTarget||o,a.assess()},this.mql.addListener(this.listener)}return n.prototype={constuctor:n,addHandler:function(i){var t=new r(i);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(i){var t=this.handlers;e(t,function(a,o){if(a.equals(i))return a.destroy(),!t.splice(o,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){e(this.handlers,function(i){i.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var i=this.matches()?"on":"off";e(this.handlers,function(t){t[i]()})}},Ie=n,Ie}var Ae,ht;function Ni(){if(ht)return Ae;ht=1;var r=Hi(),e=ir(),n=e.each,i=e.isFunction,t=e.isArray;function a(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return a.prototype={constructor:a,register:function(o,s,l){var u=this.queries,d=l&&this.browserIsIncapable;return u[o]||(u[o]=new r(o,d)),i(s)&&(s={match:s}),t(s)||(s=[s]),n(s,function(c){i(c)&&(c={match:c}),u[o].addHandler(c)}),this},unregister:function(o,s){var l=this.queries[o];return l&&(s?l.removeHandler(s):(l.clear(),delete this.queries[o])),this}},Ae=a,Ae}var De,yt;function Wi(){if(yt)return De;yt=1;var r=Ni();return De=new r,De}(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=o(A),n=Oe,i=o(Di),t=o(Ke),a=f;function o(h){return h&&h.__esModule?h:{default:h}}function s(h){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},s(h)}function l(){return l=Object.assign?Object.assign.bind():function(h){for(var v=1;v<arguments.length;v++){var M=arguments[v];for(var k in M)Object.prototype.hasOwnProperty.call(M,k)&&(h[k]=M[k])}return h},l.apply(this,arguments)}function u(h,v){var M=Object.keys(h);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(h);v&&(k=k.filter(function(T){return Object.getOwnPropertyDescriptor(h,T).enumerable})),M.push.apply(M,k)}return M}function d(h){for(var v=1;v<arguments.length;v++){var M=arguments[v]!=null?arguments[v]:{};v%2?u(Object(M),!0).forEach(function(k){L(h,k,M[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(M)):u(Object(M)).forEach(function(k){Object.defineProperty(h,k,Object.getOwnPropertyDescriptor(M,k))})}return h}function c(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}function b(h,v){for(var M=0;M<v.length;M++){var k=v[M];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(h,E(k.key),k)}}function j(h,v,M){return v&&b(h.prototype,v),Object.defineProperty(h,"prototype",{writable:!1}),h}function P(h,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(v&&v.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),Object.defineProperty(h,"prototype",{writable:!1}),v&&g(h,v)}function g(h,v){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,T){return k.__proto__=T,k},g(h,v)}function S(h){var v=_();return function(){var k=C(h),T;if(v){var x=C(this).constructor;T=Reflect.construct(k,arguments,x)}else T=k.apply(this,arguments);return y(this,T)}}function y(h,v){if(v&&(s(v)==="object"||typeof v=="function"))return v;if(v!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(h)}function p(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function _(){try{var h=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_=function(){return!!h})()}function C(h){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},C(h)}function L(h,v,M){return v=E(v),v in h?Object.defineProperty(h,v,{value:M,enumerable:!0,configurable:!0,writable:!0}):h[v]=M,h}function E(h){var v=D(h,"string");return s(v)=="symbol"?v:String(v)}function D(h,v){if(s(h)!="object"||!h)return h;var M=h[Symbol.toPrimitive];if(M!==void 0){var k=M.call(h,v||"default");if(s(k)!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(h)}var F=(0,a.canUseDOM)()&&Wi();r.default=function(h){P(M,h);var v=S(M);function M(k){var T;return c(this,M),T=v.call(this,k),L(p(T),"innerSliderRefHandler",function(x){return T.innerSlider=x}),L(p(T),"slickPrev",function(){return T.innerSlider.slickPrev()}),L(p(T),"slickNext",function(){return T.innerSlider.slickNext()}),L(p(T),"slickGoTo",function(x){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return T.innerSlider.slickGoTo(x,U)}),L(p(T),"slickPause",function(){return T.innerSlider.pause("paused")}),L(p(T),"slickPlay",function(){return T.innerSlider.autoPlay("play")}),T.state={breakpoint:null},T._responsiveMediaHandlers=[],T}return j(M,[{key:"media",value:function(T,x){F.register(T,x),this._responsiveMediaHandlers.push({query:T,handler:x})}},{key:"componentDidMount",value:function(){var T=this;if(this.props.responsive){var x=this.props.responsive.map(function(H){return H.breakpoint});x.sort(function(H,q){return H-q}),x.forEach(function(H,q){var X;q===0?X=(0,i.default)({minWidth:0,maxWidth:H}):X=(0,i.default)({minWidth:x[q-1]+1,maxWidth:H}),(0,a.canUseDOM)()&&T.media(X,function(){T.setState({breakpoint:H})})});var U=(0,i.default)({minWidth:x.slice(-1)[0]});(0,a.canUseDOM)()&&this.media(U,function(){T.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(T){F.unregister(T.query,T.handler)})}},{key:"render",value:function(){var T=this,x,U;this.state.breakpoint?(U=this.props.responsive.filter(function(ie){return ie.breakpoint===T.state.breakpoint}),x=U[0].settings==="unslick"?"unslick":d(d(d({},t.default),this.props),U[0].settings)):x=d(d({},t.default),this.props),x.centerMode&&(x.slidesToScroll>1,x.slidesToScroll=1),x.fade&&(x.slidesToShow>1,x.slidesToScroll>1,x.slidesToShow=1,x.slidesToScroll=1);var H=e.default.Children.toArray(this.props.children);H=H.filter(function(ie){return typeof ie=="string"?!!ie.trim():!!ie}),x.variableWidth&&(x.rows>1||x.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),x.variableWidth=!1);for(var q=[],X=null,B=0;B<H.length;B+=x.rows*x.slidesPerRow){for(var xe=[],K=B;K<B+x.rows*x.slidesPerRow;K+=x.slidesPerRow){for(var Je=[],Q=K;Q<K+x.slidesPerRow&&(x.variableWidth&&H[Q].props.style&&(X=H[Q].props.style.width),!(Q>=H.length));Q+=1)Je.push(e.default.cloneElement(H[Q],{key:100*B+10*K+Q,tabIndex:-1,style:{width:"".concat(100/x.slidesPerRow,"%"),display:"inline-block"}}));xe.push(e.default.createElement("div",{key:10*B+K},Je))}x.variableWidth?q.push(e.default.createElement("div",{key:B,style:{width:X}},xe)):q.push(e.default.createElement("div",{key:B},xe))}if(x==="unslick"){var sr="regular slider "+(this.props.className||"");return e.default.createElement("div",{className:sr},H)}else q.length<=x.slidesToShow&&!x.infinite&&(x.unslick=!0);return e.default.createElement(n.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},(0,a.filterSettings)(x)),q)}}]),M}(e.default.Component)})(kt);(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=n(kt);function n(i){return i&&i.__esModule?i:{default:i}}r.default=e.default})(Pt);const Fi=w.getDefaultExportFromCjs(Pt),qi=()=>Fi,Bi=w.styled_default(qi())({name:"Carousel",class:"c1f9jjsn",propsAsIs:!0}),Gi=w.styled_default("div")({name:"Dot",class:"d25r51y",propsAsIs:!1}),Ui=w.styled_default("div")({name:"Dots",class:"d1lvrmx8",propsAsIs:!1}),gt={dots:!0,infinite:!1,arrows:!1,centerMode:!0,centerPadding:"19px",speed:500,rows:1,slidesToShow:1,slidesToScroll:1,appendDots:r=>m.jsxs(Ui,{children:[" ",r," "]}),customPaging:r=>m.jsx(Gi,{children:m.jsx("div",{})},r)};function Qi(r,e,n){let i=new Set([...e,void 0]);return r.listen((t,a,o)=>{i.has(o)&&n(t,a,o)})}function Yi(r,e={}){let n=A.useCallback(t=>e.keys?Qi(r,e.keys,t):r.listen(t),[e.keys,r]),i=r.get.bind(r);return A.useSyncExternalStore(n,i,i)}const Xi=({gamification:r,autoplay:e,swipeable:n,changeHeightOnInit:i,height:t,onEvent:a,centerPadding:o})=>{const s=A.useRef(),l=A.useRef(null),{data:u,error:d,loading:c}=Yi(r.betPack.getStore()),{listOfQuestions:b,countQuestionsAvailable:j}=A.useMemo(()=>{const y=u?Object.values(u):[];return{listOfQuestions:y,countQuestionsAvailable:y.filter(({marketClosed:p})=>!p).length}},[u]);A.useEffect(()=>{!d&&!c&&u!==void 0&&a({type:"slBetPackReady",payload:{next:()=>{var y;return(y=l.current)==null?void 0:y.slickNext()},prev:()=>{var y;return(y=l.current)==null?void 0:y.slickPrev()},current:0,canNext:!0,canPrev:!1}})},[u,d,c,a]);const P=A.useCallback(async(y,p)=>{try{await r.betPackVote(y,p)}finally{s.current&&clearTimeout(s.current),e&&(s.current=setTimeout(()=>{var _;(_=l.current)==null||_.slickNext()},2e3))}},[r,l,e]);if(A.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),c||u===void 0)return m.jsx(_t,{});if(d||u===null||!Object.keys(u).length)return m.jsx(Ot,{actionFn:()=>a({type:"slHardRefresh"}),description:"It looks like we couldn't load the questions."});const g=y=>{var p;if(a({type:"slBetPackChangeCard",payload:{current:y,canNext:y<Object.keys(u).length+1,canPrev:y>=1}}),y!==0&&y!==Object.keys(u).length+1&&(p=b[y-1])!=null&&p.id){r.openQuestion(b[y-1].id);return}r.closeQuestion()},S=y=>y?m.jsx(Xe,{height:t,children:m.jsx(Cr,{question:y,vote:P})},y.id):null;return m.jsxs(Bi,{...gt,swipe:n,onInit:i,centerPadding:o||gt.centerPadding,afterChange:g,beforeChange:()=>{s.current&&clearTimeout(s.current)},ref:l,children:[m.jsx(qr,{height:t,sliderRef:l,countQuestionsAvailable:j}),Object.values(u).map(S),m.jsx(Tr,{onEvent:a,height:t})]})},le="slBetPackCb",Ki=w.createLogger("betPack-ui"),Vi=(r,e={})=>{var n,i;Ki.debug({id:le,type:r,...e}),(n=window.top)==null||n.postMessage({id:le,type:r,...e},"*"),window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers[le]&&window.webkit.messageHandlers[le].postMessage({type:r,...e}),(i=window.slBetPackCb)!=null&&i.postMessage&&window.slBetPackCb.postMessage(JSON.stringify({type:r,...e,from:"base"}))},Ji=r=>{Vi(r.type)},Zi=w.styled_default("div")({name:"Container",class:"c1mj28sn",propsAsIs:!1}),eo=w.styled_default("button")({name:"CloseButton",class:"coc9f01",propsAsIs:!1}),mt="b590k5k",to=()=>w.E1,or=w.styled_default(to())({name:"IconArrowPrev",class:"i1tkem14",propsAsIs:!0}),ro=()=>or,no=w.styled_default(ro())({name:"IconArrowNext",class:"i175qlj5",propsAsIs:!0}),io=w.styled_default("div")({name:"Header",class:"h1foi3kz",propsAsIs:!1}),oo=w.styled_default("div")({name:"HeaderTitle",class:"hc2d48a",propsAsIs:!1}),ao=w.styled_default("div")({name:"Main",class:"mgfyjlp",propsAsIs:!1}),so=w.styled_default("div")({name:"Footer",class:"f1vakhu9",propsAsIs:!1}),bt=w.styled_default("button")({name:"SlideSwitchButton",class:"spp13y7",propsAsIs:!1}),lo=({sdk:r,onEvent:e,close:n,isMobile:i})=>{const[t,a]=A.useState(),[o,s]=A.useState(),l=A.useCallback(u=>{if(u.type==="slBetPackReady"){const{next:d,prev:c,current:b,canNext:j,canPrev:P}=u.payload||{};a({next:d,prev:c}),s({current:b,canNext:j,canPrev:P})}if(u.type==="slBetPackChangeCard"){const{current:d,canNext:c,canPrev:b}=u.payload||{};s({current:d,canNext:c,canPrev:b})}e==null||e(u)},[e]);return m.jsxs(Zi,{children:[m.jsxs(io,{children:[m.jsxs(oo,{children:[m.jsx(w.E1,{name:"icon-trophy-bet-pack"}),"LiveMatch Experience"," "]}),m.jsx(eo,{onClick:n,children:m.jsx(w.E1,{name:"icon-close-btn-gray"})})]}),m.jsx(ao,{children:m.jsx(ar,{sdk:r,onEvent:l,swipeable:!!i,centerPadding:i?"18px":"50px",heightOffset:i?0:35})}),!i&&m.jsxs(so,{children:[m.jsx(bt,{onClick:t==null?void 0:t.prev,disabled:!(o!=null&&o.canPrev),children:m.jsx(or,{name:"iconArrowPrev",className:w.cx_default((o==null?void 0:o.canPrev)&&mt)})}),m.jsx(bt,{onClick:t==null?void 0:t.next,disabled:!(o!=null&&o.canNext),children:m.jsx(no,{name:"iconArrowPrev",className:w.cx_default((o==null?void 0:o.canNext)&&mt)})})]})]})},ar=A.memo(({sdk:r,swipeable:e=!0,heightOffset:n=65,onEvent:i=Ji,centerPadding:t})=>{const a=w.useStore(r.featuresList.getStore()),o=A.useMemo(()=>r.getFeature(ue.SdkOverlayType.GAMES),[a]),s=w.useStore(r.getUserStore()),l=A.useRef(null),[u,d]=A.useState(),c=A.useCallback(()=>{l.current&&d(l.current.clientHeight)},[]);return A.useEffect(()=>{const b=()=>{l.current&&d(l.current.clientHeight)};return window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[]),s.data?o?m.jsx(lr,{ref:l,children:m.jsx(Xi,{gamification:o,onEvent:i,swipeable:e,centerPadding:t,changeHeightOnInit:c,height:u?u-n:void 0})}):m.jsx("div",{children:"no gamification"}):s.error&&!s.loading?m.jsx(Ot,{actionFn:()=>i({type:"slHardRefresh"}),description:"You are not authorized to view this resource."}):m.jsx(_t,{})});exports.Y=ar;exports.re=lo;
|
|
5
|
+
*/(function(r){(function(){var e={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=t(a,i(s)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)e.call(a,s)&&a[s]&&(o=t(o,s));return o}function t(a,o){return o?a?a+" "+o:a+o:a}r.exports?(n.default=n,r.exports=n):window.classNames=n})()})(zt);var Pe=zt.exports,f={},Je={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=n(I);function n(t){return t&&t.__esModule?t:{default:t}}var i={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(a){return e.default.createElement("ul",{style:{display:"block"}},a)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(a){return e.default.createElement("button",null,a+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};r.default=i})(Je);Object.defineProperty(f,"__esModule",{value:!0});f.checkSpecKeys=f.checkNavigable=f.changeSlide=f.canUseDOM=f.canGoNext=void 0;f.clamp=At;f.extractObject=void 0;f.filterSettings=An;f.validSettings=f.swipeStart=f.swipeMove=f.swipeEnd=f.slidesOnRight=f.slidesOnLeft=f.slideHandler=f.siblingDirection=f.safePreventDefault=f.lazyStartIndex=f.lazySlidesOnRight=f.lazySlidesOnLeft=f.lazyEndIndex=f.keyHandler=f.initializedState=f.getWidth=f.getTrackLeft=f.getTrackCSS=f.getTrackAnimateCSS=f.getTotalSlides=f.getSwipeDirection=f.getSlideCount=f.getRequiredLazySlides=f.getPreClones=f.getPostClones=f.getOnDemandLazySlides=f.getNavigableIndexes=f.getHeight=void 0;var On=It(I),_n=It(Je);function It(r){return r&&r.__esModule?r:{default:r}}function ae(r){"@babel/helpers - typeof";return ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(r)}function lt(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})),n.push.apply(n,i)}return n}function A(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lt(Object(n),!0).forEach(function(i){Pn(r,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(n,i))})}return r}function Pn(r,e,n){return e=kn(e),e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function kn(r){var e=xn(r,"string");return ae(e)=="symbol"?e:String(e)}function xn(r,e){if(ae(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,e||"default");if(ae(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function At(r,e,n){return Math.max(e,Math.min(r,n))}var Z=f.safePreventDefault=function(e){var n=["onTouchStart","onTouchMove","onWheel"];n.includes(e._reactName)||e.preventDefault()},Dt=f.getOnDemandLazySlides=function(e){for(var n=[],i=$t(e),t=Ht(e),a=i;a<t;a++)e.lazyLoadedList.indexOf(a)<0&&n.push(a);return n};f.getRequiredLazySlides=function(e){for(var n=[],i=$t(e),t=Ht(e),a=i;a<t;a++)n.push(a);return n};var $t=f.lazyStartIndex=function(e){return e.currentSlide-jn(e)},Ht=f.lazyEndIndex=function(e){return e.currentSlide+Tn(e)},jn=f.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},Tn=f.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},qe=f.getWidth=function(e){return e&&e.offsetWidth||0},Nt=f.getHeight=function(e){return e&&e.offsetHeight||0},Wt=f.getSwipeDirection=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i,t,a,o;return i=e.startX-e.curX,t=e.startY-e.curY,a=Math.atan2(t,i),o=Math.round(a*180/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":n===!0?o>=35&&o<=135?"up":"down":"vertical"},qt=f.canGoNext=function(e){var n=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(n=!1),n};f.extractObject=function(e,n){var i={};return n.forEach(function(t){return i[t]=e[t]}),i};f.initializedState=function(e){var n=On.default.Children.count(e.children),i=e.listRef,t=Math.ceil(qe(i)),a=e.trackRef&&e.trackRef.node,o=Math.ceil(qe(a)),s;if(e.vertical)s=t;else{var l=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(l*=t/100),s=Math.ceil((t-l)/e.slidesToShow)}var c=i&&Nt(i.querySelector('[data-index="0"]')),d=c*e.slidesToShow,u=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(u=n-1-e.initialSlide);var b=e.lazyLoadedList||[],j=Dt(A(A({},e),{},{currentSlide:u,lazyLoadedList:b}));b=b.concat(j);var O={slideCount:n,slideWidth:s,listWidth:t,trackWidth:o,currentSlide:u,slideHeight:c,listHeight:d,lazyLoadedList:b};return e.autoplaying===null&&e.autoplay&&(O.autoplaying="playing"),O};f.slideHandler=function(e){var n=e.waitForAnimate,i=e.animating,t=e.fade,a=e.infinite,o=e.index,s=e.slideCount,l=e.lazyLoad,c=e.currentSlide,d=e.centerMode,u=e.slidesToScroll,b=e.slidesToShow,j=e.useCSS,O=e.lazyLoadedList;if(n&&i)return{};var S=o,w,x,h,p={},k={},C=a?o:At(o,0,s-1);if(t){if(!a&&(o<0||o>=s))return{};o<0?S=o+s:o>=s&&(S=o-s),l&&O.indexOf(S)<0&&(O=O.concat(S)),p={animating:!0,currentSlide:S,lazyLoadedList:O,targetSlide:S},k={animating:!1,targetSlide:S}}else w=S,S<0?(w=S+s,a?s%u!==0&&(w=s-s%u):w=0):!qt(e)&&S>c?S=w=c:d&&S>=s?(S=a?s:s-1,w=a?0:s-1):S>=s&&(w=S-s,a?s%u!==0&&(w=0):w=s-b),!a&&S+b>=s&&(w=s-b),x=pe(A(A({},e),{},{slideIndex:S})),h=pe(A(A({},e),{},{slideIndex:w})),a||(x===h&&(S=w),x=h),l&&(O=O.concat(Dt(A(A({},e),{},{currentSlide:S})))),j?(p={animating:!0,currentSlide:w,trackStyle:Ft(A(A({},e),{},{left:x})),lazyLoadedList:O,targetSlide:C},k={animating:!1,currentSlide:w,trackStyle:de(A(A({},e),{},{left:h})),swipeLeft:null,targetSlide:C}):p={currentSlide:w,trackStyle:de(A(A({},e),{},{left:h})),lazyLoadedList:O,targetSlide:C};return{state:p,nextState:k}};f.changeSlide=function(e,n){var i,t,a,o,s,l=e.slidesToScroll,c=e.slidesToShow,d=e.slideCount,u=e.currentSlide,b=e.targetSlide,j=e.lazyLoad,O=e.infinite;if(o=d%l!==0,i=o?0:(d-u)%l,n.message==="previous")a=i===0?l:c-i,s=u-a,j&&!O&&(t=u-a,s=t===-1?d-1:t),O||(s=b-l);else if(n.message==="next")a=i===0?l:i,s=u+a,j&&!O&&(s=(u+l)%d+i),O||(s=b+l);else if(n.message==="dots")s=n.index*n.slidesToScroll;else if(n.message==="children"){if(s=n.index,O){var S=Mn(A(A({},e),{},{targetSlide:s}));s>n.currentSlide&&S==="left"?s=s-d:s<n.currentSlide&&S==="right"&&(s=s+d)}}else n.message==="index"&&(s=Number(n.index));return s};f.keyHandler=function(e,n,i){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!n?"":e.keyCode===37?i?"next":"previous":e.keyCode===39?i?"previous":"next":""};f.swipeStart=function(e,n,i){return e.target.tagName==="IMG"&&Z(e),!n||!i&&e.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}};f.swipeMove=function(e,n){var i=n.scrolling,t=n.animating,a=n.vertical,o=n.swipeToSlide,s=n.verticalSwiping,l=n.rtl,c=n.currentSlide,d=n.edgeFriction,u=n.edgeDragged,b=n.onEdge,j=n.swiped,O=n.swiping,S=n.slideCount,w=n.slidesToScroll,x=n.infinite,h=n.touchObject,p=n.swipeEvent,k=n.listHeight,C=n.listWidth;if(!i){if(t)return Z(e);a&&o&&s&&Z(e);var L,D={},q=pe(n);h.curX=e.touches?e.touches[0].pageX:e.clientX,h.curY=e.touches?e.touches[0].pageY:e.clientY,h.swipeLength=Math.round(Math.sqrt(Math.pow(h.curX-h.startX,2)));var g=Math.round(Math.sqrt(Math.pow(h.curY-h.startY,2)));if(!s&&!O&&g>10)return{scrolling:!0};s&&(h.swipeLength=g);var y=(l?-1:1)*(h.curX>h.startX?1:-1);s&&(y=h.curY>h.startY?1:-1);var M=Math.ceil(S/w),P=Wt(n.touchObject,s),T=h.swipeLength;return x||(c===0&&(P==="right"||P==="down")||c+1>=M&&(P==="left"||P==="up")||!qt(n)&&(P==="left"||P==="up"))&&(T=h.swipeLength*d,u===!1&&b&&(b(P),D.edgeDragged=!0)),!j&&p&&(p(P),D.swiped=!0),a?L=q+T*(k/C)*y:l?L=q-T*y:L=q+T*y,s&&(L=q+T*y),D=A(A({},D),{},{touchObject:h,swipeLeft:L,trackStyle:de(A(A({},n),{},{left:L}))}),Math.abs(h.curX-h.startX)<Math.abs(h.curY-h.startY)*.8||h.swipeLength>10&&(D.swiping=!0,Z(e)),D}};f.swipeEnd=function(e,n){var i=n.dragging,t=n.swipe,a=n.touchObject,o=n.listWidth,s=n.touchThreshold,l=n.verticalSwiping,c=n.listHeight,d=n.swipeToSlide,u=n.scrolling,b=n.onSwipe,j=n.targetSlide,O=n.currentSlide,S=n.infinite;if(!i)return t&&Z(e),{};var w=l?c/s:o/s,x=Wt(a,l),h={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u||!a.swipeLength)return h;if(a.swipeLength>w){Z(e),b&&b(x);var p,k,C=S?O:j;switch(x){case"left":case"up":k=C+ct(n),p=d?ut(n,k):k,h.currentDirection=0;break;case"right":case"down":k=C-ct(n),p=d?ut(n,k):k,h.currentDirection=1;break;default:p=C}h.triggerSlideHandler=p}else{var L=pe(n);h.trackStyle=Ft(A(A({},n),{},{left:L}))}return h};var En=f.getNavigableIndexes=function(e){for(var n=e.infinite?e.slideCount*2:e.slideCount,i=e.infinite?e.slidesToShow*-1:0,t=e.infinite?e.slidesToShow*-1:0,a=[];i<n;)a.push(i),i=t+e.slidesToScroll,t+=Math.min(e.slidesToScroll,e.slidesToShow);return a},ut=f.checkNavigable=function(e,n){var i=En(e),t=0;if(n>i[i.length-1])n=i[i.length-1];else for(var a in i){if(n<i[a]){n=t;break}t=i[a]}return n},ct=f.getSlideCount=function(e){var n=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var i,t=e.listRef,a=t.querySelectorAll&&t.querySelectorAll(".slick-slide")||[];if(Array.from(a).every(function(l){if(e.vertical){if(l.offsetTop+Nt(l)/2>e.swipeLeft*-1)return i=l,!1}else if(l.offsetLeft-n+qe(l)/2>e.swipeLeft*-1)return i=l,!1;return!0}),!i)return 0;var o=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide,s=Math.abs(i.dataset.index-o)||1;return s}else return e.slidesToScroll},et=f.checkSpecKeys=function(e,n){return n.reduce(function(i,t){return i&&e.hasOwnProperty(t)},!0)?null:console.error("Keys Missing:",e)},de=f.getTrackCSS=function(e){et(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var n,i,t=e.slideCount+2*e.slidesToShow;e.vertical?i=t*e.slideHeight:n=Ln(e)*e.slideWidth;var a={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";a=A(A({},a),{},{WebkitTransform:o,transform:s,msTransform:l})}else e.vertical?a.top=e.left:a.left=e.left;return e.fade&&(a={opacity:1}),n&&(a.width=n),i&&(a.height=i),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?a.marginTop=e.left+"px":a.marginLeft=e.left+"px"),a},Ft=f.getTrackAnimateCSS=function(e){et(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var n=de(e);return e.useTransform?(n.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,n.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?n.transition="top "+e.speed+"ms "+e.cssEase:n.transition="left "+e.speed+"ms "+e.cssEase,n},pe=f.getTrackLeft=function(e){if(e.unslick)return 0;et(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var n=e.slideIndex,i=e.trackRef,t=e.infinite,a=e.centerMode,o=e.slideCount,s=e.slidesToShow,l=e.slidesToScroll,c=e.slideWidth,d=e.listWidth,u=e.variableWidth,b=e.slideHeight,j=e.fade,O=e.vertical,S=0,w,x,h=0;if(j||e.slideCount===1)return 0;var p=0;if(t?(p=-ce(e),o%l!==0&&n+l>o&&(p=-(n>o?s-(n-o):o%l)),a&&(p+=parseInt(s/2))):(o%l!==0&&n+l>o&&(p=s-o%l),a&&(p=parseInt(s/2))),S=p*c,h=p*b,O?w=n*b*-1+h:w=n*c*-1+S,u===!0){var k,C=i&&i.node;if(k=n+ce(e),x=C&&C.childNodes[k],w=x?x.offsetLeft*-1:0,a===!0){k=t?n+ce(e):n,x=C&&C.children[k],w=0;for(var L=0;L<k;L++)w-=C&&C.children[L]&&C.children[L].offsetWidth;w-=parseInt(e.centerPadding),w+=x&&(d-x.offsetWidth)/2}}return w},ce=f.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},Cn=f.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},Ln=f.getTotalSlides=function(e){return e.slideCount===1?1:ce(e)+e.slideCount+Cn(e)},Mn=f.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+Rn(e)?"left":"right":e.targetSlide<e.currentSlide-zn(e)?"right":"left"},Rn=f.slidesOnRight=function(e){var n=e.slidesToShow,i=e.centerMode,t=e.rtl,a=e.centerPadding;if(i){var o=(n-1)/2+1;return parseInt(a)>0&&(o+=1),t&&n%2===0&&(o+=1),o}return t?0:n-1},zn=f.slidesOnLeft=function(e){var n=e.slidesToShow,i=e.centerMode,t=e.rtl,a=e.centerPadding;if(i){var o=(n-1)/2+1;return parseInt(a)>0&&(o+=1),!t&&n%2===0&&(o+=1),o}return t?n-1:0};f.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var In=f.validSettings=Object.keys(_n.default);function An(r){return In.reduce(function(e,n){return r.hasOwnProperty(n)&&(e[n]=r[n]),e},{})}var ke={};Object.defineProperty(ke,"__esModule",{value:!0});ke.Track=void 0;var G=Bt(I),Le=Bt(Pe),Me=f;function Bt(r){return r&&r.__esModule?r:{default:r}}function ee(r){"@babel/helpers - typeof";return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(r)}function Fe(){return Fe=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])}return r},Fe.apply(this,arguments)}function Dn(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function $n(r,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Ut(i.key),i)}}function Hn(r,e,n){return e&&$n(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function Nn(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Be(r,e)}function Be(r,e){return Be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,t){return i.__proto__=t,i},Be(r,e)}function Wn(r){var e=Gt();return function(){var i=ve(r),t;if(e){var a=ve(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return qn(this,t)}}function qn(r,e){if(e&&(ee(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ge(r)}function Ge(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Gt(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gt=function(){return!!r})()}function ve(r){return ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ve(r)}function ft(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})),n.push.apply(n,i)}return n}function W(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ft(Object(n),!0).forEach(function(i){Ue(r,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(n,i))})}return r}function Ue(r,e,n){return e=Ut(e),e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function Ut(r){var e=Fn(r,"string");return ee(e)=="symbol"?e:String(e)}function Fn(r,e){if(ee(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,e||"default");if(ee(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Re=function(e){var n,i,t,a,o;e.rtl?o=e.slideCount-1-e.index:o=e.index,t=o<0||o>=e.slideCount,e.centerMode?(a=Math.floor(e.slidesToShow/2),i=(o-e.currentSlide)%e.slideCount===0,o>e.currentSlide-a-1&&o<=e.currentSlide+a&&(n=!0)):n=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow;var s;e.targetSlide<0?s=e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?s=e.targetSlide-e.slideCount:s=e.targetSlide;var l=o===s;return{"slick-slide":!0,"slick-active":n,"slick-center":i,"slick-cloned":t,"slick-current":l}},Bn=function(e){var n={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(n.width=e.slideWidth),e.fade&&(n.position="relative",e.vertical?n.top=-e.index*parseInt(e.slideHeight):n.left=-e.index*parseInt(e.slideWidth),n.opacity=e.currentSlide===e.index?1:0,n.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(n.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),n},ze=function(e,n){return e.key||n},Gn=function(e){var n,i=[],t=[],a=[],o=G.default.Children.count(e.children),s=(0,Me.lazyStartIndex)(e),l=(0,Me.lazyEndIndex)(e);return G.default.Children.forEach(e.children,function(c,d){var u,b={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?u=c:u=G.default.createElement("div",null);var j=Bn(W(W({},e),{},{index:d})),O=u.props.className||"",S=Re(W(W({},e),{},{index:d}));if(i.push(G.default.cloneElement(u,{key:"original"+ze(u,d),"data-index":d,className:(0,Le.default)(S,O),tabIndex:"-1","aria-hidden":!S["slick-active"],style:W(W({outline:"none"},u.props.style||{}),j),onClick:function(h){u.props&&u.props.onClick&&u.props.onClick(h),e.focusOnSelect&&e.focusOnSelect(b)}})),e.infinite&&e.fade===!1){var w=o-d;w<=(0,Me.getPreClones)(e)&&(n=-w,n>=s&&(u=c),S=Re(W(W({},e),{},{index:n})),t.push(G.default.cloneElement(u,{key:"precloned"+ze(u,n),"data-index":n,tabIndex:"-1",className:(0,Le.default)(S,O),"aria-hidden":!S["slick-active"],style:W(W({},u.props.style||{}),j),onClick:function(h){u.props&&u.props.onClick&&u.props.onClick(h),e.focusOnSelect&&e.focusOnSelect(b)}}))),n=o+d,n<l&&(u=c),S=Re(W(W({},e),{},{index:n})),a.push(G.default.cloneElement(u,{key:"postcloned"+ze(u,n),"data-index":n,tabIndex:"-1",className:(0,Le.default)(S,O),"aria-hidden":!S["slick-active"],style:W(W({},u.props.style||{}),j),onClick:function(h){u.props&&u.props.onClick&&u.props.onClick(h),e.focusOnSelect&&e.focusOnSelect(b)}}))}}),e.rtl?t.concat(i,a).reverse():t.concat(i,a)};ke.Track=function(r){Nn(n,r);var e=Wn(n);function n(){var i;Dn(this,n);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return i=e.call.apply(e,[this].concat(a)),Ue(Ge(i),"node",null),Ue(Ge(i),"handleRef",function(s){i.node=s}),i}return Hn(n,[{key:"render",value:function(){var t=Gn(this.props),a=this.props,o=a.onMouseEnter,s=a.onMouseOver,l=a.onMouseLeave,c={onMouseEnter:o,onMouseOver:s,onMouseLeave:l};return G.default.createElement("div",Fe({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},c),t)}}]),n}(G.default.PureComponent);var xe={};function te(r){"@babel/helpers - typeof";return te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(r)}Object.defineProperty(xe,"__esModule",{value:!0});xe.Dots=void 0;var le=Qt(I),Un=Qt(Pe),dt=f;function Qt(r){return r&&r.__esModule?r:{default:r}}function pt(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})),n.push.apply(n,i)}return n}function Qn(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pt(Object(n),!0).forEach(function(i){Xn(r,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(n,i))})}return r}function Xn(r,e,n){return e=Xt(e),e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function Yn(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Kn(r,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,Xt(i.key),i)}}function Vn(r,e,n){return e&&Kn(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function Xt(r){var e=Zn(r,"string");return te(e)=="symbol"?e:String(e)}function Zn(r,e){if(te(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,e||"default");if(te(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Jn(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Qe(r,e)}function Qe(r,e){return Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,t){return i.__proto__=t,i},Qe(r,e)}function ei(r){var e=Yt();return function(){var i=he(r),t;if(e){var a=he(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return ti(this,t)}}function ti(r,e){if(e&&(te(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ri(r)}function ri(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Yt(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yt=function(){return!!r})()}function he(r){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},he(r)}var ni=function(e){var n;return e.infinite?n=Math.ceil(e.slideCount/e.slidesToScroll):n=Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,n};xe.Dots=function(r){Jn(n,r);var e=ei(n);function n(){return Yn(this,n),e.apply(this,arguments)}return Vn(n,[{key:"clickHandler",value:function(t,a){a.preventDefault(),this.props.clickHandler(t)}},{key:"render",value:function(){for(var t=this.props,a=t.onMouseEnter,o=t.onMouseOver,s=t.onMouseLeave,l=t.infinite,c=t.slidesToScroll,d=t.slidesToShow,u=t.slideCount,b=t.currentSlide,j=ni({slideCount:u,slidesToScroll:c,slidesToShow:d,infinite:l}),O={onMouseEnter:a,onMouseOver:o,onMouseLeave:s},S=[],w=0;w<j;w++){var x=(w+1)*c-1,h=l?x:(0,dt.clamp)(x,0,u-1),p=h-(c-1),k=l?p:(0,dt.clamp)(p,0,u-1),C=(0,Un.default)({"slick-active":l?b>=k&&b<=h:b===k}),L={message:"dots",index:w,slidesToScroll:c,currentSlide:b},D=this.clickHandler.bind(this,L);S=S.concat(le.default.createElement("li",{key:w,className:C},le.default.cloneElement(this.props.customPaging(w),{onClick:D})))}return le.default.cloneElement(this.props.appendDots(S),Qn({className:this.props.dotsClass},O))}}]),n}(le.default.PureComponent);var re={};function ne(r){"@babel/helpers - typeof";return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(r)}Object.defineProperty(re,"__esModule",{value:!0});re.PrevArrow=re.NextArrow=void 0;var J=Vt(I),Kt=Vt(Pe),ii=f;function Vt(r){return r&&r.__esModule?r:{default:r}}function ye(){return ye=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])}return r},ye.apply(this,arguments)}function vt(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})),n.push.apply(n,i)}return n}function ge(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vt(Object(n),!0).forEach(function(i){oi(r,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(n,i))})}return r}function oi(r,e,n){return e=er(e),e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function Zt(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function ai(r,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,er(i.key),i)}}function Jt(r,e,n){return e&&ai(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function er(r){var e=si(r,"string");return ne(e)=="symbol"?e:String(e)}function si(r,e){if(ne(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,e||"default");if(ne(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function tr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Xe(r,e)}function Xe(r,e){return Xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,t){return i.__proto__=t,i},Xe(r,e)}function rr(r){var e=nr();return function(){var i=me(r),t;if(e){var a=me(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return li(this,t)}}function li(r,e){if(e&&(ne(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ui(r)}function ui(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function nr(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nr=function(){return!!r})()}function me(r){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},me(r)}re.PrevArrow=function(r){tr(n,r);var e=rr(n);function n(){return Zt(this,n),e.apply(this,arguments)}return Jt(n,[{key:"clickHandler",value:function(t,a){a&&a.preventDefault(),this.props.clickHandler(t,a)}},{key:"render",value:function(){var t={"slick-arrow":!0,"slick-prev":!0},a=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(t["slick-disabled"]=!0,a=null);var o={key:"0","data-role":"none",className:(0,Kt.default)(t),style:{display:"block"},onClick:a},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},l;return this.props.prevArrow?l=J.default.cloneElement(this.props.prevArrow,ge(ge({},o),s)):l=J.default.createElement("button",ye({key:"0",type:"button"},o)," ","Previous"),l}}]),n}(J.default.PureComponent);re.NextArrow=function(r){tr(n,r);var e=rr(n);function n(){return Zt(this,n),e.apply(this,arguments)}return Jt(n,[{key:"clickHandler",value:function(t,a){a&&a.preventDefault(),this.props.clickHandler(t,a)}},{key:"render",value:function(){var t={"slick-arrow":!0,"slick-next":!0},a=this.clickHandler.bind(this,{message:"next"});(0,ii.canGoNext)(this.props)||(t["slick-disabled"]=!0,a=null);var o={key:"1","data-role":"none",className:(0,Kt.default)(t),style:{display:"block"},onClick:a},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},l;return this.props.nextArrow?l=J.default.cloneElement(this.props.nextArrow,ge(ge({},o),s)):l=J.default.createElement("button",ye({key:"1",type:"button"},o)," ","Next"),l}}]),n}(J.default.PureComponent);var ir=function(){if(typeof Map<"u")return Map;function r(e,n){var i=-1;return e.some(function(t,a){return t[0]===n?(i=a,!0):!1}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var i=r(this.__entries__,n),t=this.__entries__[i];return t&&t[1]},e.prototype.set=function(n,i){var t=r(this.__entries__,n);~t?this.__entries__[t][1]=i:this.__entries__.push([n,i])},e.prototype.delete=function(n){var i=this.__entries__,t=r(i,n);~t&&i.splice(t,1)},e.prototype.has=function(n){return!!~r(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,i){i===void 0&&(i=null);for(var t=0,a=this.__entries__;t<a.length;t++){var o=a[t];n.call(i,o[1],o[0])}},e}()}(),Ye=typeof window<"u"&&typeof document<"u"&&window.document===document,be=function(){return typeof V.global<"u"&&V.global.Math===Math?V.global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),ci=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(be):function(r){return setTimeout(function(){return r(Date.now())},1e3/60)}}(),fi=2;function di(r,e){var n=!1,i=!1,t=0;function a(){n&&(n=!1,r()),i&&s()}function o(){ci(a)}function s(){var l=Date.now();if(n){if(l-t<fi)return;i=!0}else n=!0,i=!1,setTimeout(o,e);t=l}return s}var pi=20,vi=["top","right","bottom","left","width","height","size","weight"],hi=typeof MutationObserver<"u",yi=function(){function r(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=di(this.refresh.bind(this),pi)}return r.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},r.prototype.removeObserver=function(e){var n=this.observers_,i=n.indexOf(e);~i&&n.splice(i,1),!n.length&&this.connected_&&this.disconnect_()},r.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},r.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},r.prototype.connect_=function(){!Ye||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),hi?(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)},r.prototype.disconnect_=function(){!Ye||!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)},r.prototype.onTransitionEnd_=function(e){var n=e.propertyName,i=n===void 0?"":n,t=vi.some(function(a){return!!~i.indexOf(a)});t&&this.refresh()},r.getInstance=function(){return this.instance_||(this.instance_=new r),this.instance_},r.instance_=null,r}(),or=function(r,e){for(var n=0,i=Object.keys(e);n<i.length;n++){var t=i[n];Object.defineProperty(r,t,{value:e[t],enumerable:!1,writable:!1,configurable:!0})}return r},ie=function(r){var e=r&&r.ownerDocument&&r.ownerDocument.defaultView;return e||be},ar=je(0,0,0,0);function Se(r){return parseFloat(r)||0}function ht(r){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(i,t){var a=r["border-"+t+"-width"];return i+Se(a)},0)}function gi(r){for(var e=["top","right","bottom","left"],n={},i=0,t=e;i<t.length;i++){var a=t[i],o=r["padding-"+a];n[a]=Se(o)}return n}function mi(r){var e=r.getBBox();return je(0,0,e.width,e.height)}function bi(r){var e=r.clientWidth,n=r.clientHeight;if(!e&&!n)return ar;var i=ie(r).getComputedStyle(r),t=gi(i),a=t.left+t.right,o=t.top+t.bottom,s=Se(i.width),l=Se(i.height);if(i.boxSizing==="border-box"&&(Math.round(s+a)!==e&&(s-=ht(i,"left","right")+a),Math.round(l+o)!==n&&(l-=ht(i,"top","bottom")+o)),!wi(r)){var c=Math.round(s+a)-e,d=Math.round(l+o)-n;Math.abs(c)!==1&&(s-=c),Math.abs(d)!==1&&(l-=d)}return je(t.left,t.top,s,l)}var Si=function(){return typeof SVGGraphicsElement<"u"?function(r){return r instanceof ie(r).SVGGraphicsElement}:function(r){return r instanceof ie(r).SVGElement&&typeof r.getBBox=="function"}}();function wi(r){return r===ie(r).document.documentElement}function Oi(r){return Ye?Si(r)?mi(r):bi(r):ar}function _i(r){var e=r.x,n=r.y,i=r.width,t=r.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return or(o,{x:e,y:n,width:i,height:t,top:n,right:e+i,bottom:t+n,left:e}),o}function je(r,e,n,i){return{x:r,y:e,width:n,height:i}}var Pi=function(){function r(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=je(0,0,0,0),this.target=e}return r.prototype.isActive=function(){var e=Oi(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},r.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},r}(),ki=function(){function r(e,n){var i=_i(n);or(this,{target:e,contentRect:i})}return r}(),xi=function(){function r(e,n,i){if(this.activeObservations_=[],this.observations_=new ir,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=i}return r.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ie(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new Pi(e)),this.controller_.addObserver(this),this.controller_.refresh())}},r.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ie(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},r.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},r.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},r.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(i){return new ki(i.target,i.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},r.prototype.clearActive=function(){this.activeObservations_.splice(0)},r.prototype.hasActive=function(){return this.activeObservations_.length>0},r}(),sr=typeof WeakMap<"u"?new WeakMap:new ir,lr=function(){function r(e){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=yi.getInstance(),i=new xi(e,n,this);sr.set(this,i)}return r}();["observe","unobserve","disconnect"].forEach(function(r){lr.prototype[r]=function(){var e;return(e=sr.get(this))[r].apply(e,arguments)}});var ji=function(){return typeof be.ResizeObserver<"u"?be.ResizeObserver:lr}();const Ti=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Ei=m.getAugmentedNamespace(Ti);Object.defineProperty(_e,"__esModule",{value:!0});_e.InnerSlider=void 0;var N=se(I),Ci=se(Rt),Li=se(wn),Mi=se(Pe),$=f,Ri=ke,zi=xe,yt=re,Ii=se(Ei);function se(r){return r&&r.__esModule?r:{default:r}}function X(r){"@babel/helpers - typeof";return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(r)}function we(){return we=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])}return r},we.apply(this,arguments)}function Ai(r,e){if(r==null)return{};var n=Di(r,e),i,t;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);for(t=0;t<a.length;t++)i=a[t],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(n[i]=r[i])}return n}function Di(r,e){if(r==null)return{};var n={},i=Object.keys(r),t,a;for(a=0;a<i.length;a++)t=i[a],!(e.indexOf(t)>=0)&&(n[t]=r[t]);return n}function gt(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})),n.push.apply(n,i)}return n}function _(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gt(Object(n),!0).forEach(function(i){z(r,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(n,i))})}return r}function $i(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Hi(r,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,cr(i.key),i)}}function Ni(r,e,n){return e&&Hi(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function Wi(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Ke(r,e)}function Ke(r,e){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,t){return i.__proto__=t,i},Ke(r,e)}function qi(r){var e=ur();return function(){var i=Oe(r),t;if(e){var a=Oe(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return Fi(this,t)}}function Fi(r,e){if(e&&(X(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R(r)}function R(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function ur(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ur=function(){return!!r})()}function Oe(r){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Oe(r)}function z(r,e,n){return e=cr(e),e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function cr(r){var e=Bi(r,"string");return X(e)=="symbol"?e:String(e)}function Bi(r,e){if(X(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var i=n.call(r,e||"default");if(X(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}_e.InnerSlider=function(r){Wi(n,r);var e=qi(n);function n(i){var t;$i(this,n),t=e.call(this,i),z(R(t),"listRefHandler",function(o){return t.list=o}),z(R(t),"trackRefHandler",function(o){return t.track=o}),z(R(t),"adaptHeight",function(){if(t.props.adaptiveHeight&&t.list){var o=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,$.getHeight)(o)+"px"}}),z(R(t),"componentDidMount",function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var o=(0,$.getOnDemandLazySlides)(_(_({},t.props),t.state));o.length>0&&(t.setState(function(l){return{lazyLoadedList:l.lazyLoadedList.concat(o)}}),t.props.onLazyLoad&&t.props.onLazyLoad(o))}var s=_({listRef:t.list,trackRef:t.track},t.props);t.updateState(s,!0,function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")}),t.props.lazyLoad==="progressive"&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new Ii.default(function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout(function(){return t.onWindowResized()},t.props.speed))):t.onWindowResized()}),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(l){l.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,l.onblur=t.props.pauseOnFocus?t.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)}),z(R(t),"componentWillUnmount",function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach(function(o){return clearTimeout(o)}),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()}),z(R(t),"componentDidUpdate",function(o){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var s=(0,$.getOnDemandLazySlides)(_(_({},t.props),t.state));s.length>0&&(t.setState(function(d){return{lazyLoadedList:d.lazyLoadedList.concat(s)}}),t.props.onLazyLoad&&t.props.onLazyLoad(s))}t.adaptHeight();var l=_(_({listRef:t.list,trackRef:t.track},t.props),t.state),c=t.didPropsChange(o);c&&t.updateState(l,c,function(){t.state.currentSlide>=N.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:N.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")})}),z(R(t),"onWindowResized",function(o){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,Li.default)(function(){return t.resizeWindow(o)},50),t.debouncedResize()}),z(R(t),"resizeWindow",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=!!(t.track&&t.track.node);if(s){var l=_(_({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(l,o,function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")}),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}}),z(R(t),"updateState",function(o,s,l){var c=(0,$.initializedState)(o);o=_(_(_({},o),c),{},{slideIndex:c.currentSlide});var d=(0,$.getTrackLeft)(o);o=_(_({},o),{},{left:d});var u=(0,$.getTrackCSS)(o);(s||N.default.Children.count(t.props.children)!==N.default.Children.count(o.children))&&(c.trackStyle=u),t.setState(c,l)}),z(R(t),"ssrInit",function(){if(t.props.variableWidth){var o=0,s=0,l=[],c=(0,$.getPreClones)(_(_(_({},t.props),t.state),{},{slideCount:t.props.children.length})),d=(0,$.getPostClones)(_(_(_({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach(function(D){l.push(D.props.style.width),o+=D.props.style.width});for(var u=0;u<c;u++)s+=l[l.length-1-u],o+=l[l.length-1-u];for(var b=0;b<d;b++)o+=l[b];for(var j=0;j<t.state.currentSlide;j++)s+=l[j];var O={width:o+"px",left:-s+"px"};if(t.props.centerMode){var S="".concat(l[t.state.currentSlide],"px");O.left="calc(".concat(O.left," + (100% - ").concat(S,") / 2 ) ")}return{trackStyle:O}}var w=N.default.Children.count(t.props.children),x=_(_(_({},t.props),t.state),{},{slideCount:w}),h=(0,$.getPreClones)(x)+(0,$.getPostClones)(x)+w,p=100/t.props.slidesToShow*h,k=100/h,C=-k*((0,$.getPreClones)(x)+t.state.currentSlide)*p/100;t.props.centerMode&&(C+=(100-k*p/100)/2);var L={width:p+"%",left:C+"%"};return{slideWidth:k+"%",trackStyle:L}}),z(R(t),"checkImagesLoad",function(){var o=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],s=o.length,l=0;Array.prototype.forEach.call(o,function(c){var d=function(){return++l&&l>=s&&t.onWindowResized()};if(!c.onclick)c.onclick=function(){return c.parentNode.focus()};else{var u=c.onclick;c.onclick=function(b){u(b),c.parentNode.focus()}}c.onload||(t.props.lazyLoad?c.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(c.onload=d,c.onerror=function(){d(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))})}),z(R(t),"progressiveLazyLoad",function(){for(var o=[],s=_(_({},t.props),t.state),l=t.state.currentSlide;l<t.state.slideCount+(0,$.getPostClones)(s);l++)if(t.state.lazyLoadedList.indexOf(l)<0){o.push(l);break}for(var c=t.state.currentSlide-1;c>=-(0,$.getPreClones)(s);c--)if(t.state.lazyLoadedList.indexOf(c)<0){o.push(c);break}o.length>0?(t.setState(function(d){return{lazyLoadedList:d.lazyLoadedList.concat(o)}}),t.props.onLazyLoad&&t.props.onLazyLoad(o)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)}),z(R(t),"slideHandler",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=t.props,c=l.asNavFor,d=l.beforeChange,u=l.onLazyLoad,b=l.speed,j=l.afterChange,O=t.state.currentSlide,S=(0,$.slideHandler)(_(_(_({index:o},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!s})),w=S.state,x=S.nextState;if(w){d&&d(O,w.currentSlide);var h=w.lazyLoadedList.filter(function(p){return t.state.lazyLoadedList.indexOf(p)<0});u&&h.length>0&&u(h),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),j&&j(O),delete t.animationEndCallback),t.setState(w,function(){c&&t.asNavForIndex!==o&&(t.asNavForIndex=o,c.innerSlider.slideHandler(o)),x&&(t.animationEndCallback=setTimeout(function(){var p=x.animating,k=Ai(x,["animating"]);t.setState(k,function(){t.callbackTimers.push(setTimeout(function(){return t.setState({animating:p})},10)),j&&j(w.currentSlide),delete t.animationEndCallback})},b))})}}),z(R(t),"changeSlide",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=_(_({},t.props),t.state),c=(0,$.changeSlide)(l,o);if(!(c!==0&&!c)&&(s===!0?t.slideHandler(c,s):t.slideHandler(c),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var d=t.list.querySelectorAll(".slick-current");d[0]&&d[0].focus()}}),z(R(t),"clickHandler",function(o){t.clickable===!1&&(o.stopPropagation(),o.preventDefault()),t.clickable=!0}),z(R(t),"keyHandler",function(o){var s=(0,$.keyHandler)(o,t.props.accessibility,t.props.rtl);s!==""&&t.changeSlide({message:s})}),z(R(t),"selectHandler",function(o){t.changeSlide(o)}),z(R(t),"disableBodyScroll",function(){var o=function(l){l=l||window.event,l.preventDefault&&l.preventDefault(),l.returnValue=!1};window.ontouchmove=o}),z(R(t),"enableBodyScroll",function(){window.ontouchmove=null}),z(R(t),"swipeStart",function(o){t.props.verticalSwiping&&t.disableBodyScroll();var s=(0,$.swipeStart)(o,t.props.swipe,t.props.draggable);s!==""&&t.setState(s)}),z(R(t),"swipeMove",function(o){var s=(0,$.swipeMove)(o,_(_(_({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));s&&(s.swiping&&(t.clickable=!1),t.setState(s))}),z(R(t),"swipeEnd",function(o){var s=(0,$.swipeEnd)(o,_(_(_({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(s){var l=s.triggerSlideHandler;delete s.triggerSlideHandler,t.setState(s),l!==void 0&&(t.slideHandler(l),t.props.verticalSwiping&&t.enableBodyScroll())}}),z(R(t),"touchEnd",function(o){t.swipeEnd(o),t.clickable=!0}),z(R(t),"slickPrev",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"previous"})},0))}),z(R(t),"slickNext",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"next"})},0))}),z(R(t),"slickGoTo",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o=Number(o),isNaN(o))return"";t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"index",index:o,currentSlide:t.state.currentSlide},s)},0))}),z(R(t),"play",function(){var o;if(t.props.rtl)o=t.state.currentSlide-t.props.slidesToScroll;else if((0,$.canGoNext)(_(_({},t.props),t.state)))o=t.state.currentSlide+t.props.slidesToScroll;else return!1;t.slideHandler(o)}),z(R(t),"autoPlay",function(o){t.autoplayTimer&&clearInterval(t.autoplayTimer);var s=t.state.autoplaying;if(o==="update"){if(s==="hovered"||s==="focused"||s==="paused")return}else if(o==="leave"){if(s==="paused"||s==="focused")return}else if(o==="blur"&&(s==="paused"||s==="hovered"))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})}),z(R(t),"pause",function(o){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var s=t.state.autoplaying;o==="paused"?t.setState({autoplaying:"paused"}):o==="focused"?(s==="hovered"||s==="playing")&&t.setState({autoplaying:"focused"}):s==="playing"&&t.setState({autoplaying:"hovered"})}),z(R(t),"onDotsOver",function(){return t.props.autoplay&&t.pause("hovered")}),z(R(t),"onDotsLeave",function(){return t.props.autoplay&&t.state.autoplaying==="hovered"&&t.autoPlay("leave")}),z(R(t),"onTrackOver",function(){return t.props.autoplay&&t.pause("hovered")}),z(R(t),"onTrackLeave",function(){return t.props.autoplay&&t.state.autoplaying==="hovered"&&t.autoPlay("leave")}),z(R(t),"onSlideFocus",function(){return t.props.autoplay&&t.pause("focused")}),z(R(t),"onSlideBlur",function(){return t.props.autoplay&&t.state.autoplaying==="focused"&&t.autoPlay("blur")}),z(R(t),"render",function(){var o=(0,Mi.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),s=_(_({},t.props),t.state),l=(0,$.extractObject)(s,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),c=t.props.pauseOnHover;l=_(_({},l),{},{onMouseEnter:c?t.onTrackOver:null,onMouseLeave:c?t.onTrackLeave:null,onMouseOver:c?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null});var d;if(t.props.dots===!0&&t.state.slideCount>=t.props.slidesToShow){var u=(0,$.extractObject)(s,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),b=t.props.pauseOnDotsHover;u=_(_({},u),{},{clickHandler:t.changeSlide,onMouseEnter:b?t.onDotsLeave:null,onMouseOver:b?t.onDotsOver:null,onMouseLeave:b?t.onDotsLeave:null}),d=N.default.createElement(zi.Dots,u)}var j,O,S=(0,$.extractObject)(s,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);S.clickHandler=t.changeSlide,t.props.arrows&&(j=N.default.createElement(yt.PrevArrow,S),O=N.default.createElement(yt.NextArrow,S));var w=null;t.props.vertical&&(w={height:t.state.listHeight});var x=null;t.props.vertical===!1?t.props.centerMode===!0&&(x={padding:"0px "+t.props.centerPadding}):t.props.centerMode===!0&&(x={padding:t.props.centerPadding+" 0px"});var h=_(_({},w),x),p=t.props.touchMove,k={className:"slick-list",style:h,onClick:t.clickHandler,onMouseDown:p?t.swipeStart:null,onMouseMove:t.state.dragging&&p?t.swipeMove:null,onMouseUp:p?t.swipeEnd:null,onMouseLeave:t.state.dragging&&p?t.swipeEnd:null,onTouchStart:p?t.swipeStart:null,onTouchMove:t.state.dragging&&p?t.swipeMove:null,onTouchEnd:p?t.touchEnd:null,onTouchCancel:t.state.dragging&&p?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},C={className:o,dir:"ltr",style:t.props.style};return t.props.unslick&&(k={className:"slick-list"},C={className:o}),N.default.createElement("div",C,t.props.unslick?"":j,N.default.createElement("div",we({ref:t.listRefHandler},k),N.default.createElement(Ri.Track,we({ref:t.trackRefHandler},l),t.props.children)),t.props.unslick?"":O,t.props.unslick?"":d)}),t.list=null,t.track=null,t.state=_(_({},Ci.default),{},{currentSlide:t.props.initialSlide,targetSlide:t.props.initialSlide?t.props.initialSlide:0,slideCount:N.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var a=t.ssrInit();return t.state=_(_({},t.state),a),t}return Ni(n,[{key:"didPropsChange",value:function(t){for(var a=!1,o=0,s=Object.keys(this.props);o<s.length;o++){var l=s[o];if(!t.hasOwnProperty(l)){a=!0;break}if(!(X(t[l])==="object"||typeof t[l]=="function"||isNaN(t[l]))&&t[l]!==this.props[l]){a=!0;break}}return a||N.default.Children.count(this.props.children)!==N.default.Children.count(t.children)}}]),n}(N.default.Component);var Gi=function(r){return r.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()},Ui=Gi,Qi=Ui,Xi=function(r){var e=/[height|width]$/;return e.test(r)},mt=function(r){var e="",n=Object.keys(r);return n.forEach(function(i,t){var a=r[i];i=Qi(i),Xi(i)&&typeof a=="number"&&(a=a+"px"),a===!0?e+=i:a===!1?e+="not "+i:e+="("+i+": "+a+")",t<n.length-1&&(e+=" and ")}),e},Yi=function(r){var e="";return typeof r=="string"?r:r instanceof Array?(r.forEach(function(n,i){e+=mt(n),i<r.length-1&&(e+=", ")}),e):mt(r)},Ki=Yi,Ie,bt;function Vi(){if(bt)return Ie;bt=1;function r(e){this.options=e,!e.deferSetup&&this.setup()}return r.prototype={constructor:r,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},Ie=r,Ie}var Ae,St;function fr(){if(St)return Ae;St=1;function r(i,t){var a=0,o=i.length,s;for(a;a<o&&(s=t(i[a],a),s!==!1);a++);}function e(i){return Object.prototype.toString.apply(i)==="[object Array]"}function n(i){return typeof i=="function"}return Ae={isFunction:n,isArray:e,each:r},Ae}var De,wt;function Zi(){if(wt)return De;wt=1;var r=Vi(),e=fr().each;function n(i,t){this.query=i,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(i);var a=this;this.listener=function(o){a.mql=o.currentTarget||o,a.assess()},this.mql.addListener(this.listener)}return n.prototype={constuctor:n,addHandler:function(i){var t=new r(i);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(i){var t=this.handlers;e(t,function(a,o){if(a.equals(i))return a.destroy(),!t.splice(o,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){e(this.handlers,function(i){i.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var i=this.matches()?"on":"off";e(this.handlers,function(t){t[i]()})}},De=n,De}var $e,Ot;function Ji(){if(Ot)return $e;Ot=1;var r=Zi(),e=fr(),n=e.each,i=e.isFunction,t=e.isArray;function a(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return a.prototype={constructor:a,register:function(o,s,l){var c=this.queries,d=l&&this.browserIsIncapable;return c[o]||(c[o]=new r(o,d)),i(s)&&(s={match:s}),t(s)||(s=[s]),n(s,function(u){i(u)&&(u={match:u}),c[o].addHandler(u)}),this},unregister:function(o,s){var l=this.queries[o];return l&&(s?l.removeHandler(s):(l.clear(),delete this.queries[o])),this}},$e=a,$e}var He,_t;function eo(){if(_t)return He;_t=1;var r=Ji();return He=new r,He}(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=o(I),n=_e,i=o(Ki),t=o(Je),a=f;function o(g){return g&&g.__esModule?g:{default:g}}function s(g){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},s(g)}function l(){return l=Object.assign?Object.assign.bind():function(g){for(var y=1;y<arguments.length;y++){var M=arguments[y];for(var P in M)Object.prototype.hasOwnProperty.call(M,P)&&(g[P]=M[P])}return g},l.apply(this,arguments)}function c(g,y){var M=Object.keys(g);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(g);y&&(P=P.filter(function(T){return Object.getOwnPropertyDescriptor(g,T).enumerable})),M.push.apply(M,P)}return M}function d(g){for(var y=1;y<arguments.length;y++){var M=arguments[y]!=null?arguments[y]:{};y%2?c(Object(M),!0).forEach(function(P){C(g,P,M[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(M)):c(Object(M)).forEach(function(P){Object.defineProperty(g,P,Object.getOwnPropertyDescriptor(M,P))})}return g}function u(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function b(g,y){for(var M=0;M<y.length;M++){var P=y[M];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(g,L(P.key),P)}}function j(g,y,M){return y&&b(g.prototype,y),Object.defineProperty(g,"prototype",{writable:!1}),g}function O(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),y&&S(g,y)}function S(g,y){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,T){return P.__proto__=T,P},S(g,y)}function w(g){var y=p();return function(){var P=k(g),T;if(y){var E=k(this).constructor;T=Reflect.construct(P,arguments,E)}else T=P.apply(this,arguments);return x(this,T)}}function x(g,y){if(y&&(s(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(g)}function h(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function p(){try{var g=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p=function(){return!!g})()}function k(g){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},k(g)}function C(g,y,M){return y=L(y),y in g?Object.defineProperty(g,y,{value:M,enumerable:!0,configurable:!0,writable:!0}):g[y]=M,g}function L(g){var y=D(g,"string");return s(y)=="symbol"?y:String(y)}function D(g,y){if(s(g)!="object"||!g)return g;var M=g[Symbol.toPrimitive];if(M!==void 0){var P=M.call(g,y||"default");if(s(P)!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(g)}var q=(0,a.canUseDOM)()&&eo();r.default=function(g){O(M,g);var y=w(M);function M(P){var T;return u(this,M),T=y.call(this,P),C(h(T),"innerSliderRefHandler",function(E){return T.innerSlider=E}),C(h(T),"slickPrev",function(){return T.innerSlider.slickPrev()}),C(h(T),"slickNext",function(){return T.innerSlider.slickNext()}),C(h(T),"slickGoTo",function(E){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return T.innerSlider.slickGoTo(E,U)}),C(h(T),"slickPause",function(){return T.innerSlider.pause("paused")}),C(h(T),"slickPlay",function(){return T.innerSlider.autoPlay("play")}),T.state={breakpoint:null},T._responsiveMediaHandlers=[],T}return j(M,[{key:"media",value:function(T,E){q.register(T,E),this._responsiveMediaHandlers.push({query:T,handler:E})}},{key:"componentDidMount",value:function(){var T=this;if(this.props.responsive){var E=this.props.responsive.map(function(H){return H.breakpoint});E.sort(function(H,F){return H-F}),E.forEach(function(H,F){var Y;F===0?Y=(0,i.default)({minWidth:0,maxWidth:H}):Y=(0,i.default)({minWidth:E[F-1]+1,maxWidth:H}),(0,a.canUseDOM)()&&T.media(Y,function(){T.setState({breakpoint:H})})});var U=(0,i.default)({minWidth:E.slice(-1)[0]});(0,a.canUseDOM)()&&this.media(U,function(){T.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(T){q.unregister(T.query,T.handler)})}},{key:"render",value:function(){var T=this,E,U;this.state.breakpoint?(U=this.props.responsive.filter(function(oe){return oe.breakpoint===T.state.breakpoint}),E=U[0].settings==="unslick"?"unslick":d(d(d({},t.default),this.props),U[0].settings)):E=d(d({},t.default),this.props),E.centerMode&&(E.slidesToScroll>1,E.slidesToScroll=1),E.fade&&(E.slidesToShow>1,E.slidesToScroll>1,E.slidesToShow=1,E.slidesToScroll=1);var H=e.default.Children.toArray(this.props.children);H=H.filter(function(oe){return typeof oe=="string"?!!oe.trim():!!oe}),E.variableWidth&&(E.rows>1||E.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),E.variableWidth=!1);for(var F=[],Y=null,B=0;B<H.length;B+=E.rows*E.slidesPerRow){for(var Te=[],K=B;K<B+E.rows*E.slidesPerRow;K+=E.slidesPerRow){for(var tt=[],Q=K;Q<K+E.slidesPerRow&&(E.variableWidth&&H[Q].props.style&&(Y=H[Q].props.style.width),!(Q>=H.length));Q+=1)tt.push(e.default.cloneElement(H[Q],{key:100*B+10*K+Q,tabIndex:-1,style:{width:"".concat(100/E.slidesPerRow,"%"),display:"inline-block"}}));Te.push(e.default.createElement("div",{key:10*B+K},tt))}E.variableWidth?F.push(e.default.createElement("div",{key:B,style:{width:Y}},Te)):F.push(e.default.createElement("div",{key:B},Te))}if(E==="unslick"){var vr="regular slider "+(this.props.className||"");return e.default.createElement("div",{className:vr},H)}else F.length<=E.slidesToShow&&!E.infinite&&(E.unslick=!0);return e.default.createElement(n.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},(0,a.filterSettings)(E)),F)}}]),M}(e.default.Component)})(Mt);(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=n(Mt);function n(i){return i&&i.__esModule?i:{default:i}}r.default=e.default})(Lt);const to=m.getDefaultExportFromCjs(Lt),ro=()=>to,no=m.styled_default(ro())({name:"Carousel",class:"c1f9jjsn",propsAsIs:!0}),io="d25r51y",oo=m.styled_default("div")({name:"Dot",class:"d1lvrmx8",propsAsIs:!1}),ao=m.styled_default("div")({name:"Dots",class:"d11xps29",propsAsIs:!1}),Pt={dots:!0,infinite:!1,arrows:!1,centerMode:!0,centerPadding:"19px",speed:500,rows:1,slidesToShow:1,slidesToScroll:1,appendDots:r=>v.jsxs(ao,{children:[" ",r," "]}),customPaging:r=>v.jsx(oo,{children:v.jsx("div",{})},r)};function so(r,e,n){let i=new Set([...e,void 0]);return r.listen((t,a,o)=>{i.has(o)&&n(t,a,o)})}function lo(r,e={}){let n=I.useCallback(t=>e.keys?so(r,e.keys,t):r.listen(t),[e.keys,r]),i=r.get.bind(r);return I.useSyncExternalStore(n,i,i)}const uo=({gamification:r,autoplay:e,swipeable:n,changeHeightOnInit:i,height:t,onEvent:a,centerPadding:o})=>{const s=I.useRef(),l=I.useRef(null),[c,d]=I.useState(!1),{data:u,error:b,loading:j}=lo(r.betPack.getStore()),{listOfQuestions:O,countQuestionsAvailable:S}=I.useMemo(()=>{const p=u?Object.values(u):[];return{listOfQuestions:p,countQuestionsAvailable:p.filter(({marketClosed:k})=>!k).length}},[u]);I.useEffect(()=>{!b&&!j&&u!==void 0&&!c&&a({type:"slBetPackReady",payload:{next:()=>{var p;return(p=l.current)==null?void 0:p.slickNext()},prev:()=>{var p;return(p=l.current)==null?void 0:p.slickPrev()},current:0,canNext:!0,canPrev:!1}})},[u,b,j,a]);const w=I.useCallback(async(p,k)=>{try{d(!0),await r.betPackVote(p,k)}finally{s.current&&clearTimeout(s.current),e&&(s.current=setTimeout(()=>{var C;(C=l.current)==null||C.slickNext()},2e3))}},[r,l,e]);if(I.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),j)return v.jsx(Ct,{});if(!b&&(u==null||!Object.keys(u).length))return v.jsx(Ne,{actionFn:()=>a({type:"slHardRefresh"}),description:`It looks like we couldn't
|
|
6
|
+
load the questions.`});if(b)return v.jsx(Ne,{actionFn:()=>a({type:"slHardRefresh"}),description:b instanceof V.ConnectError&&b.code!==V.Code.InvalidArgument?`The event ID was not
|
|
7
|
+
specified or is invalid.`:`The server is unable to
|
|
8
|
+
handle this request.`});const x=p=>{var k;if(a({type:"slBetPackChangeCard",payload:{current:p,canNext:p<Object.keys(u).length+1,canPrev:p>=1}}),p!==0&&p!==Object.keys(u).length+1&&(k=O[p-1])!=null&&k.id){r.openQuestion(O[p-1].id,{openedFrom:"list",attributes:{id:O[p-1].id,type:O[p-1].type,status:O[p-1].status,attributes:{case:void 0}}});return}r.closeQuestion()},h=p=>p?v.jsx(fe,{height:t,children:v.jsx(qr,{question:p,vote:w})},p.id):null;return v.jsxs(no,{...Pt,swipe:n,onInit:i,centerPadding:o||Pt.centerPadding,afterChange:x,beforeChange:()=>{s.current&&clearTimeout(s.current)},ref:l,className:m.cx_default(!n&&io),children:[v.jsx(rn,{height:t,sliderRef:l,countQuestionsAvailable:S}),Object.values(u).map(h),v.jsx(Hr,{onEvent:a,height:t})]})},ue="slBetPackCb",co=m.createLogger("betPack-ui"),fo=(r,e={})=>{var n,i;co.debug({id:ue,type:r,...e}),(n=window.top)==null||n.postMessage({id:ue,type:r,...e},"*"),window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers[ue]&&window.webkit.messageHandlers[ue].postMessage({type:r,...e}),(i=window.slBetPackCb)!=null&&i.postMessage&&window.slBetPackCb.postMessage(JSON.stringify({type:r,...e,from:"base"}))},po=r=>{fo(r.type)},vo=m.styled_default("div")({name:"Container",class:"c1mj28sn",propsAsIs:!1}),ho=m.styled_default("button")({name:"CloseButton",class:"coc9f01",propsAsIs:!1}),kt="b590k5k",yo=()=>m.Z1,dr=m.styled_default(yo())({name:"IconArrowPrev",class:"i1tkem14",propsAsIs:!0}),go=()=>dr,mo=m.styled_default(go())({name:"IconArrowNext",class:"i175qlj5",propsAsIs:!0}),bo=m.styled_default("div")({name:"Header",class:"h1foi3kz",propsAsIs:!1}),So=m.styled_default("div")({name:"HeaderTitle",class:"hc2d48a",propsAsIs:!1}),wo=m.styled_default("div")({name:"Main",class:"mgfyjlp",propsAsIs:!1}),Oo=m.styled_default("div")({name:"Footer",class:"f1vakhu9",propsAsIs:!1}),xt=m.styled_default("button")({name:"SlideSwitchButton",class:"spp13y7",propsAsIs:!1}),_o=({sdk:r,onEvent:e,close:n,isMobile:i})=>{const[t,a]=I.useState(),[o,s]=I.useState(),l=I.useCallback(c=>{if(c.type==="slBetPackReady"){const{next:d,prev:u,current:b,canNext:j,canPrev:O}=c.payload||{};a({next:d,prev:u}),s({current:b,canPrev:O,canNext:j})}if(c.type==="slBetPackChangeCard"){const{current:d,canNext:u,canPrev:b}=c.payload||{};s({current:d,canNext:u,canPrev:b})}e==null||e(c)},[e]);return v.jsxs(vo,{children:[v.jsxs(bo,{children:[v.jsxs(So,{children:[v.jsx(m.Z1,{name:"icon-trophy-bet-pack"}),"LiveMatch Experience"," "]}),v.jsx(ho,{onClick:n,children:v.jsx(m.Z1,{name:"icon-close-btn-gray"})})]}),v.jsx(wo,{children:v.jsx(pr,{sdk:r,onEvent:l,swipeable:!!i,centerPadding:i?"18px":"30px",heightOffset:i?0:48})}),!i&&v.jsxs(Oo,{children:[v.jsx(xt,{onClick:t==null?void 0:t.prev,disabled:!(o!=null&&o.canPrev),children:v.jsx(dr,{name:"iconArrowPrev",className:m.cx_default((o==null?void 0:o.canPrev)&&kt)})}),v.jsx(xt,{onClick:t==null?void 0:t.next,disabled:!(o!=null&&o.canNext),children:v.jsx(mo,{name:"iconArrowPrev",className:m.cx_default((o==null?void 0:o.canNext)&&kt)})})]})]})},pr=I.memo(({sdk:r,swipeable:e=!0,heightOffset:n=65,onEvent:i=po,centerPadding:t})=>{const a=m.useStore(r.featuresList.getStore()),o=I.useMemo(()=>r.getFeature(V.SdkOverlayType.GAMES),[a]),s=m.useStore(r.getUserStore()),l=I.useRef(null),[c,d]=I.useState(),u=I.useCallback(()=>{l.current&&d(l.current.clientHeight)},[]);return I.useEffect(()=>{const b=m.c(()=>{l.current&&d(l.current.clientHeight)},200);return window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[]),s.data?o?v.jsx(mr,{ref:l,className:m.cx_default("betPack",e&&"isMobile"),children:v.jsx(uo,{gamification:o,onEvent:i,swipeable:e,centerPadding:t,changeHeightOnInit:u,height:c?c-n:void 0})}):v.jsx("div",{children:"no gamification"}):s.error&&!s.loading?v.jsx(Ne,{actionFn:()=>i({type:"slHardRefresh"}),description:`You are not authorized to
|
|
9
|
+
view this resource.`}):v.jsx(Ct,{})});exports.ne=_o;exports.q=pr;
|
package/lib/cjs/masters.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");const e=require("./masters2.js");require("react");require("./provider.js");exports.MastersStreamLayerProvider=e.MastersStreamLayerProvider;exports.MastersStreamLayerSDKReact=e.MastersStreamLayerSDKReact;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");const e=require("./masters2.js");require("react");const r=require("./provider.js");exports.MastersStreamLayerProvider=e.MastersStreamLayerProvider;exports.MastersStreamLayerSDKReact=e.MastersStreamLayerSDKReact;exports.useStreamLayer=r.useStreamLayer;
|