Meet the new shape of sound, completely redesigned to bring you deeper into your audio than ever before.

Save up to $150+. Get up to $150 instant trade-in creditθ or $50 off without trade-in.

A single, silver colored Galaxy Buds3 Pro earbud

Lucky you. Get $50 off.

Spend $500 or more on your first Shop Samsung app purchase#

Shop Android Store or Apple Store

REVIEWS

See what fans of
Galaxy Buds3 Pro are saying

"Robust, enveloping sound that rivals some of the best"

"I love my new Galaxy
Buds3 Pro!"

"They fit great, they sound great and they look amazing! This is my 4th pair of Galaxy Buds and I like these way better than all the others that I have had."§

"New ear bliss"

"I love the galaxy buds3 pro. They sound great and love the voice acting also. The extreme comfortable and the don't fall out when I'm working out."§

"The must have Buds
of 2024"

"So many amazing things to say about the Samsung Galaxy Buds3 Pro. From audio to noise cancelation I truly love this product. Mobile Calls are amazing too!"§

AUDIO

Refreshed look.
Revolutionary sound.

Designed for true audio lovers. A comfortable, new shape and improved hardware deliver the high-resolution audio experience your ears have been craving.

Multiple lines create wave-like shapes and particles, representing different aspects of sound. The particles disappear in a flash of light, transforming into the Blade Light and showing the Galaxy Buds3 Pro.

Our best and most immersive audio

  • Wind Shield
  • Blade Light
  • Swipe
  • Pinch Control
A single, Galaxy Buds3 Pro earbud in silver.
  • Dual Amplifier

    Powered by our first-ever, independently controlled woofer and tweeter, Galaxy Buds3 Pro allow you to experience a broad spectrum of sound.

  • Enhanced 2-Way Speaker

    An enhanced woofer and tweeter with wide frequency response unveil the minute details in your music.

An x-ray showing parts of a single, Galaxy Buds3 Pro earbud.

GALAXY AI

Galaxy AIis here


for your all-new Galaxy Buds

Audio tailored to best fit you

Adaptive Equalizer with Galaxy AI adjusts audio based on how your Buds sit in your ears. That means every time you put Buds in, you can bring out the best in every playlist.

A man using Galaxy Buds3 Pro in silver.

Tune into what’s important

With Adaptive Noise Control with Galaxy AI, you can immerse yourself in
sound while staying alert to your surroundings.

A Galaxy Buds3 Pro earbud in silver with 'Galaxy AI is here' above the earbud. Large particles, representing noise are on one side of the earbud and sans particles on the other. 3 images appear. An image of New York City with several taxis, people having a conversation and an ambulance with the siren on.

  • ANC

    Choose your level of Active Noise Cancellation to filter out unwanted noise and let in just the right amount of ambient sound.

  • Voice Detect

    If someone starts speaking to you while you're jamming out, your Buds will automatically adapt to help you hear what matters.

  • Siren Detect

    Reduce unnecessary external noise, except for alarms and sirens to warn you to steer clear of harm's way.

Choose your level of Active Noise Cancellation to filter out unwanted noise and let in just the right amount of ambient sound.

They say “hola,” you hear “hello”

Hear translations through your Galaxy Buds during conversations using Real-Time Interpreter with Galaxy AI.

Samsung Galaxy device with Interpreter open Hola todos. La lección de hoy será sobre el impresionismo.

Spanish source text open through Interpreter Hello everyone. Today's lesson will be about Impressionism.

To access listening mode, simply pinch and hold your earbuds and your Galaxy Buds3 Pro will continue to interpret as the speaker is talking.

Your voice is 
the command

Your voice is the command

Control your compatible phone with simple voice commands. Simply say a command, such as "answer call" or "volume up."

A single, Galaxy Buds3 Pro earbud in silver next to the voice command 'Answer Call' with various voice commands above and below 'Answer Call'.

DESIGN

Improved comfort for immersive listening

Listen in comfort with a redesigned shape that delivers our snuggest fit ever. And because your Buds should shine as much as you do, we’ve added Blade Lights to stand out from the crowd and glow up your listening experience.

Color

Silver Case
A silver Galaxy Buds3 Pro device with the earbuds in a case.
A single, Galaxy Buds3 Pro earbud in silver.

Controls with a personal touch

Tap into convenience with touch controls customized by you, for you. Intuitive Touch Control lets you pause, skip tracks, accept calls and more.

Swipe Content

A finger swipes across the blade of a single, Galaxy Buds3 Pro earbud.

CONNECTED EXPERIENCE

Bring entertainment
and gaming to life

Find your sound sanctuary

Mindfulness comes with daily practice. At the press of a button, teleport to a worry-free world of your own with Samsung Health powered by Calm. Alleviate stress with peaceful melodies from nature, improve your focus with white noise or relax with ASMR for a happier, healthier you.

Galaxy Z Fold6 is open with a Galaxy Buds3 Pro earbud on the right and Samsung Health powered by Calm application icons on the bottom. By pressing Galaxy Buds3 Pro, the app activates and at the same time, the office image changes to 5 images of nature. An image of trees, a river, raindrops falling, palm trees and a bonfire.

Seamless sounds across Android smartphones​

Galaxy Buds3 Pro pairs easily with almost any Android phone. Download the Galaxy Wearable app to access advanced sound settings wherever the music takes you. ,

In the back is an Android smartphone with the Android logo, Google Play logo and icons of Galaxy Wearable and Samsung Health apps. In the front is Galaxy Buds3 Pro.

Long-lasting battery life

Stay in your groove for hours with a battery that rocks. With the charging case,
 Galaxy Buds3 Pro provide up to 30 hours of listening time.

A new, unopened pair of Galaxy Buds3 Pro in silver.

COMPARE

Find the best Galaxy Buds for you

Spec
Buds3 Pro
Buds3

Audio

Speaker
Enhanced 2 way
Speaker
1 way

Audio

Amplifier
Dual Amplifier
Amplifier
Single Amplifier

Audio

Lossless
Ultra High Quality audio
support
(24bit / 96kHz)
Lossless
Ultra High Quality audio
support
(24bit / 96kHz)

Audio

Super Wideband Call
support
Super Wideband Call
support

Audio

360 Audio
support
360 Audio
support

Intelligent Audio Technology

Adaptive Noise Control
support
Adaptive Noise Control
not support

Intelligent Audio Technology

Adaptive EQ, ANC
support
Adaptive EQ, ANC
support

Intelligent Audio Technology

Ambient Sound
support
Ambient Sound
not support

Controls

Swipe/Pinch and Voice
support
Swipe/Pinch and Voice
support

Controls

Blade Lights
support
Blade Lights
not support

Battery and durability

Durability
IP57
Durability
IP57

Battery and durability

Play time
Up to 7.0/30hr(ANC Off)
Up to 6.0/26hr(ANC On)
Play time
Up to 6.0/30hr(ANC Off)
Up to 5.0/24hr(ANC On)

Connectivity

SmartThings Find
Yes
SmartThings Find
Yes

Connectivity

Bluetooth Ver.
5.4
Bluetooth Ver.
5.4

Connectivity

Auto Switch
Yes
Auto Switch
Yes
  1. Select Galaxy AI features require compatible Samsung Galaxy phone.
  2. Requires initial set up via Samsung Wear app on compatible device.
  3. Requires compatible Galaxy device. Samsung account login and language preset (English and Spanish pre-installed; other languages require free download). Results may vary.
  4. Requires compatible smartphone.
  5. Requires compatible smartphone. Feature supported on Galaxy Book series PCs launched 2020 or later and TV models launched 2022 or later.
  6. Requires initial set up via Samsung Wear app and with compatible Galaxy phone, tablet or TV. The number of Galaxy Buds users that can connect may vary depending on the surrounding circumstances such as distance and obstruction.
  7. Actual battery life may vary and depend on usage conditions such as function settings, play back file type and Bluetooth signal strength. Play time may vary based on settings.
  8. IP rated for submersion in up to 3 feet of fresh water for up to 30 minutes (charging case is not water resistant). Not advised for beach or pool use. If the earbuds or your hands are wet, they must be dried thoroughly prior to handling. Damaged earbuds are not guaranteed to be water resistant.
  9. Requires a smartphone with the SmartThings app and a Wi-Fi or Bluetooth connection. Compatible smart devices must be initially set up in the SmartThings app.
  10. Auto Switch feature is only available on Samsung Galaxy Book series with One UI 6.0 or later, Samsung Galaxy smartphones and Galaxy Tab devices with One UI 4.1.1 or later and Galaxy Watch4 series or later. Samsung Galaxy devices must be logged in to Samsung Account to enable the Auto Switch feature. Auto Switch feature for Samsung TV is only available on Samsung TVs launched Feb ’22 or later after getting a firmware update from Jul ’22. Auto Switch with TV is only available for making and receiving phone calls.
  11. Consistent with 10ATM water-resistance classification (up to 100m of water for up to 10 minutes) and IP68 rating (up to 6 feet of water for up to 30 minutes). Rinse residue / dry after wet.
  12. Connecting Galaxy Buds as Bluetooth Audio is available regardless of OS but to configure advanced settings on the Galaxy Wearable app, Galaxy Buds must be paired with a smartphone with Android 10.0 or above and minimum 1.5GB Memory.​
    Advanced settings on the Galaxy Wearable app include Noise Control, Adaptive EQ, Pinch Control and software update.​
    Some features are only available on selected Samsung Galaxy smartphones.​
    Android is a trademark of Google LCC.​

  13. θFor a limited time only, on Samsung.com/Shop Samsung App, purchase a new qualifying Galaxy device (“Qualifying Purchase”), send in your qualifying trade-in device to Samsung through the Samsung Trade-In Program, and if Samsung determines your trade-in device meets all eligibility requirements, you will receive a trade-in credit specific to your qualifying trade-in device to apply toward your Qualifying Purchase. Device models that currently qualify for trade-in and trade-in credit amounts associated with those models are available on Samsung.com and the Shop Samsung App; eligible models and amounts may change at Samsung’s sole discretion. To be eligible for trade-in, your qualifying device must meet all Trade-In Program eligibility requirements, which include, but are not limited to, that the device powers on, holds a charge, and does not power off unexpectedly; has a functioning display; has no breaks or cracks in the screen (unless a cracked screen offer applies); has no breaks or cracks in the case; has no liquid damage (whether visible or not); has no other defects that go beyond normal wear and tear; is not on a black list; has a verified FCC ID; has been reset to factory settings; has all personal information removed; has all software locks disabled; and is owned by you (leased devices are not eligible). Anticipated trade-in value will be applied as a credit at time of purchase, but, if you do not send in your trade-in device within 15 days of receipt of your Qualifying Purchase, you will be charged back for the trade-in credit applied to your purchase, or if you send in your trade-in device within 15 days of receipt of your Qualifying Purchase but Samsung determines your device does not meet all eligibility requirements, you will be charged back for the trade-in credit applied to your purchase minus $25. Participation in this program does not excuse you from contracts with your carrier or retailer (or any related payments or fees) for the device that was traded in. Limit 1 trade-in per Qualifying Purchase. Samsung reserves the right to modify or discontinue this offer at any time. The Trade-In Program cannot be combined with any other Samsung, carrier or retailer promotions, discounts, or offers unless specifically provided for in the terms and conditions of such offers. Additional terms, including terms that govern the resolution of disputes, apply. Click here to learn more.

  14. #6/15/24 – 3/31/25, Promotional discount applies while supplies last when making your first qualifying purchase in the Shop Samsung App ($500 first order minimum). This offer is available to direct consumers only, Business customer accounts are not eligible. Void where prohibited or restricted by law. Samsung reserves the right to modify or discontinue offers at any time by posting notice on the app or website.

  15. 0% APR for 12, 18, or 24 Months with Equal Payments: Available on purchases of select products charged to a Samsung Financing account. Minimum purchase: $50. 0% APR from date of eligible purchase until paid in full. Estimated monthly payment equals the eligible purchase amount multiplied by a repayment factor and rounded up to the nearest penny (repayment factors: .08333 for 12 month, .05556 for 18 month, .04167 for 24 month). Last payment may vary due to rounding. Total amount of payments will not exceed eligible purchase amount. Other transactions and fees affect overall minimum payment amount. Advertised payment amount, if any, is an estimate and may change once taxes, delivery or other charges are added. Limited time offer. Regular account terms apply to non-promo purchases. Standard Purchase APR: 29.99%. Minimum interest charge: $1. Prior purchases excluded. Account must be in good standing. Subject to credit approval. Samsung Financing account issued by TD Bank, N.A.

");return n.attr("data-swiper-slide-index")||n.attr("data-swiper-slide-index",e),i.cache&&(this.virtual.cache[e]=n),n},appendSlide:function(t){if("object"==typeof t&&"length"in t)for(var e=0;e=0;i-=1)this.virtual.slides.splice(t[i],1),this.params.virtual.cache&&delete this.virtual.cache[t[i]],t[i]0&&0===this.$el.parents("."+this.params.slideActiveClass).length)return;var o=e.innerWidth,l=e.innerHeight,h=this.$el.offset();s&&(h.left-=this.$el[0].scrollLeft);for(var d=[[h.left,h.top],[h.left+this.width,h.top],[h.left,h.top+this.height],[h.left+this.width,h.top+this.height]],c=0;c=0&&u[0]<=o&&u[1]>=0&&u[1]<=l&&(r=!0)}if(!r)return}this.isHorizontal()?(33!==a&&34!==a&&37!==a&&39!==a||(n.preventDefault?n.preventDefault():n.returnValue=!1),(34!==a&&39!==a||s)&&(33!==a&&37!==a||!s)||this.slideNext(),(33!==a&&37!==a||s)&&(34!==a&&39!==a||!s)||this.slidePrev()):(33!==a&&34!==a&&38!==a&&40!==a||(n.preventDefault?n.preventDefault():n.returnValue=!1),34!==a&&40!==a||this.slideNext(),33!==a&&38!==a||this.slidePrev()),this.emit("keyPress",a)}},enable:function(){this.keyboard.enabled||(s(t).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(s(t).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},tt={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){r.extend(this,{keyboard:{enabled:!1,enable:J.enable.bind(this),disable:J.disable.bind(this),handle:J.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}},et={lastScrollTime:r.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return e.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var e="onwheel"in t;if(!e){var i=t.createElement("div");i.setAttribute("onwheel","return;"),e="function"==typeof i.onwheel}return!e&&t.implementation&&t.implementation.hasFeature&&!0!==t.implementation.hasFeature("","")&&(e=t.implementation.hasFeature("Events.wheel","3.0")),e}()?"wheel":"mousewheel"},normalize:function(t){var e=0,i=0,s=0,n=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),s=10*e,n=10*i,"deltaY"in t&&(n=t.deltaY),"deltaX"in t&&(s=t.deltaX),t.shiftKey&&!s&&(s=n,n=0),(s||n)&&t.deltaMode&&(1===t.deltaMode?(s*=40,n*=40):(s*=800,n*=800)),s&&!e&&(e=s<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:e,spinY:i,pixelX:s,pixelY:n}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(t){var e=t,i=this,s=i.params.mousewheel;if(i.params.cssMode&&e.preventDefault(),!i.mouseEntered&&!s.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);var n=0,a=i.rtlTranslate?-1:1,o=et.normalize(e);if(s.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(o.pixelX)>Math.abs(o.pixelY)))return!0;n=o.pixelX*a}else{if(!(Math.abs(o.pixelY)>Math.abs(o.pixelX)))return!0;n=o.pixelY}else n=Math.abs(o.pixelX)>Math.abs(o.pixelY)?-o.pixelX*a:-o.pixelY;if(0===n)return!0;if(s.invert&&(n=-n),i.params.freeMode){var l={time:r.now(),delta:Math.abs(n),direction:Math.sign(n)},h=i.mousewheel.lastEventBeforeSnap,d=h&&l.time=i.minTranslate()&&(c=i.minTranslate()),c<=i.maxTranslate()&&(c=i.maxTranslate()),i.setTransition(0),i.setTranslate(c),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!u&&i.isBeginning||!p&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky){clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0;var f=i.mousewheel.recentWheelEvents;f.length>=15&&f.shift();var m=f.length?f[f.length-1]:void 0,v=f[0];if(f.push(l),m&&(l.delta>m.delta||l.direction!==m.direction))f.splice(0);else if(f.length>=15&&l.time-v.time<500&&v.delta-l.delta>=1&&l.delta<=6){var g=n>0?.8:.2;i.mousewheel.lastEventBeforeSnap=l,f.splice(0),i.mousewheel.timeout=r.nextTick((function(){i.slideToClosest(i.params.speed,!0,void 0,g)}),0)}i.mousewheel.timeout||(i.mousewheel.timeout=r.nextTick((function(){i.mousewheel.lastEventBeforeSnap=l,f.splice(0),i.slideToClosest(i.params.speed,!0,void 0,.5)}),500))}if(d||i.emit("scroll",e),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),c===i.minTranslate()||c===i.maxTranslate())return!0}}else{var w={time:r.now(),delta:Math.abs(n),direction:Math.sign(n),raw:t},y=i.mousewheel.recentWheelEvents;y.length>=2&&y.shift();var b=y.length?y[y.length-1]:void 0;if(y.push(w),b?(w.direction!==b.direction||w.delta>b.delta)&&i.mousewheel.animateSlider(w):i.mousewheel.animateSlider(w),i.mousewheel.releaseScroll(w))return!0}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},animateSlider:function(t){return t.delta>=6&&r.now()-this.mousewheel.lastScrollTime<60||(t.direction<0?this.isEnd&&!this.params.loop||this.animating||(this.slideNext(),this.emit("scroll",t.raw)):this.isBeginning&&!this.params.loop||this.animating||(this.slidePrev(),this.emit("scroll",t.raw)),this.mousewheel.lastScrollTime=(new e.Date).getTime(),!1)},releaseScroll:function(t){var e=this.params.mousewheel;if(t.direction<0){if(this.isEnd&&!this.params.loop&&e.releaseOnEdges)return!0}else if(this.isBeginning&&!this.params.loop&&e.releaseOnEdges)return!0;return!1},enable:function(){var t=et.event();if(this.params.cssMode)return this.wrapperEl.removeEventListener(t,this.mousewheel.handle),!0;if(!t)return!1;if(this.mousewheel.enabled)return!1;var e=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(e=s(this.params.mousewheel.eventsTarged)),e.on("mouseenter",this.mousewheel.handleMouseEnter),e.on("mouseleave",this.mousewheel.handleMouseLeave),e.on(t,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){var t=et.event();if(this.params.cssMode)return this.wrapperEl.addEventListener(t,this.mousewheel.handle),!0;if(!t)return!1;if(!this.mousewheel.enabled)return!1;var e=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(e=s(this.params.mousewheel.eventsTarged)),e.off(t,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},it={update:function(){var t=this.params.navigation;if(!this.params.loop){var e=this.navigation,i=e.$nextEl,s=e.$prevEl;s&&s.length>0&&(this.isBeginning?s.addClass(t.disabledClass):s.removeClass(t.disabledClass),s[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)),i&&i.length>0&&(this.isEnd?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(t){t.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(t){t.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var t,e,i=this.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(t=s(i.nextEl),this.params.uniqueNavElements&&"string"==typeof i.nextEl&&t.length>1&&1===this.$el.find(i.nextEl).length&&(t=this.$el.find(i.nextEl))),i.prevEl&&(e=s(i.prevEl),this.params.uniqueNavElements&&"string"==typeof i.prevEl&&e.length>1&&1===this.$el.find(i.prevEl).length&&(e=this.$el.find(i.prevEl))),t&&t.length>0&&t.on("click",this.navigation.onNextClick),e&&e.length>0&&e.on("click",this.navigation.onPrevClick),r.extend(this.navigation,{$nextEl:t,nextEl:t&&t[0],$prevEl:e,prevEl:e&&e[0]}))},destroy:function(){var t=this.navigation,e=t.$nextEl,i=t.$prevEl;e&&e.length&&(e.off("click",this.navigation.onNextClick),e.removeClass(this.params.navigation.disabledClass)),i&&i.length&&(i.off("click",this.navigation.onPrevClick),i.removeClass(this.params.navigation.disabledClass))}},st={update:function(){var t=this.rtl,e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var i,n=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,a=this.pagination.$el,r=this.params.loop?Math.ceil((n-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((i=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>n-1-2*this.loopedSlides&&(i-=n-2*this.loopedSlides),i>r-1&&(i-=r),i<0&&"bullets"!==this.params.paginationType&&(i=r+i)):i=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===e.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var o,l,h,d=this.pagination.bullets;if(e.dynamicBullets&&(this.pagination.bulletSize=d.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),a.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(e.dynamicMainBullets+4)+"px"),e.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=i-this.previousIndex,this.pagination.dynamicBulletIndex>e.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=e.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),o=i-this.pagination.dynamicBulletIndex,h=((l=o+(Math.min(d.length,e.dynamicMainBullets)-1))+o)/2),d.removeClass(e.bulletActiveClass+" "+e.bulletActiveClass+"-next "+e.bulletActiveClass+"-next-next "+e.bulletActiveClass+"-prev "+e.bulletActiveClass+"-prev-prev "+e.bulletActiveClass+"-main"),a.length>1)d.each((function(t,n){var a=s(n),r=a.index();r===i&&a.addClass(e.bulletActiveClass),e.dynamicBullets&&(r>=o&&r<=l&&a.addClass(e.bulletActiveClass+"-main"),r===o&&a.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),r===l&&a.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next"))}));else{var c=d.eq(i),u=c.index();if(c.addClass(e.bulletActiveClass),e.dynamicBullets){for(var p=d.eq(o),f=d.eq(l),m=o;m<=l;m+=1)d.eq(m).addClass(e.bulletActiveClass+"-main");if(this.params.loop)if(u>=d.length-e.dynamicMainBullets){for(var v=e.dynamicMainBullets;v>=0;v-=1)d.eq(d.length-v).addClass(e.bulletActiveClass+"-main");d.eq(d.length-e.dynamicMainBullets-1).addClass(e.bulletActiveClass+"-prev")}else p.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),f.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next");else p.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),f.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next")}}if(e.dynamicBullets){var g=Math.min(d.length,e.dynamicMainBullets+4),w=(this.pagination.bulletSize*g-this.pagination.bulletSize)/2-h*this.pagination.bulletSize,y=t?"right":"left";d.css(this.isHorizontal()?y:"top",w+"px")}}if("fraction"===e.type&&(a.find("."+e.currentClass).text(e.formatFractionCurrent(i+1)),a.find("."+e.totalClass).text(e.formatFractionTotal(r))),"progressbar"===e.type){var b;b=e.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var _=(i+1)/r,x=1,T=1;"horizontal"===b?x=_:T=_,a.find("."+e.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+x+") scaleY("+T+")").transition(this.params.speed)}"custom"===e.type&&e.renderCustom?(a.html(e.renderCustom(this,i+1,r)),this.emit("paginationRender",this,a[0])):this.emit("paginationUpdate",this,a[0]),a[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)}},render:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,s="";if("bullets"===t.type){for(var n=this.params.loop?Math.ceil((e-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,a=0;a'+t.bulletElement+">";i.html(s),this.pagination.bullets=i.find("."+t.bulletClass)}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(this,t.currentClass,t.totalClass):' / ',i.html(s)),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(this,t.progressbarFillClass):'',i.html(s)),"custom"!==t.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var t=this,e=t.params.pagination;if(e.el){var i=s(e.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&i.length>1&&1===t.$el.find(e.el).length&&(i=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&i.addClass(e.clickableClass),i.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(i.addClass(""+e.modifierClass+e.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.addClass(e.progressbarOppositeClass),e.clickable&&i.on("click","."+e.bulletClass,(function(e){e.preventDefault();var i=s(this).index()*t.params.slidesPerGroup;t.params.loop&&(i+=t.loopedSlides),t.slideTo(i)})),r.extend(t.pagination,{$el:i,el:i[0]}))}},destroy:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.pagination.$el;e.removeClass(t.hiddenClass),e.removeClass(t.modifierClass+t.type),this.pagination.bullets&&this.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&e.off("click","."+t.bulletClass)}}},nt={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=this.rtlTranslate,i=this.progress,s=t.dragSize,n=t.trackSize,a=t.$dragEl,r=t.$el,o=this.params.scrollbar,l=s,h=(n-s)*i;e?(h=-h)>0?(l=s-h,h=0):-h+s>n&&(l=n+h):h<0?(l=s+h,h=0):h+s>n&&(l=n-h),this.isHorizontal()?(a.transform("translate3d("+h+"px, 0, 0)"),a[0].style.width=l+"px"):(a.transform("translate3d(0px, "+h+"px, 0)"),a[0].style.height=l+"px"),o.hide&&(clearTimeout(this.scrollbar.timeout),r[0].style.opacity=1,this.scrollbar.timeout=setTimeout((function(){r[0].style.opacity=0,r.transition(400)}),1e3))}},setTransition:function(t){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(t)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=t.$dragEl,i=t.$el;e[0].style.width="",e[0].style.height="";var s,n=this.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,a=this.size/(this.size*this.snapGrid.length),o=a*(n/this.size);s="auto"===this.params.scrollbar.dragSize?n*a:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?e[0].style.width=s+"px":e[0].style.height=s+"px",i[0].style.display=a>=1?"none":"",this.params.scrollbar.hide&&(i[0].style.opacity=0),r.extend(t,{trackSize:n,divider:a,moveDivider:o,dragSize:s}),t.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(t){return this.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientX:t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientY:t.clientY},setDragPosition:function(t){var e,i=this.scrollbar,s=this.rtlTranslate,n=i.$el,a=i.dragSize,r=i.trackSize,o=i.dragStartPos;e=(i.getPointerPosition(t)-n.offset()[this.isHorizontal()?"left":"top"]-(null!==o?o:a/2))/(r-a),e=Math.max(Math.min(e,1),0),s&&(e=1-e);var l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*e;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(t){var e=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperEl,n=i.$el,a=i.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=t.target===a[0]||t.target===a?i.getPointerPosition(t)-t.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),s.transition(100),a.transition(100),i.setDragPosition(t),clearTimeout(this.scrollbar.dragTimeout),n.transition(0),e.hide&&n.css("opacity",1),this.params.cssMode&&this.$wrapperEl.css("scroll-snap-type","none"),this.emit("scrollbarDragStart",t)},onDragMove:function(t){var e=this.scrollbar,i=this.$wrapperEl,s=e.$el,n=e.$dragEl;this.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,e.setDragPosition(t),i.transition(0),s.transition(0),n.transition(0),this.emit("scrollbarDragMove",t))},onDragEnd:function(t){var e=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperEl,n=i.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,this.params.cssMode&&(this.$wrapperEl.css("scroll-snap-type",""),s.transition("")),e.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=r.nextTick((function(){n.css("opacity",0),n.transition(400)}),1e3)),this.emit("scrollbarDragEnd",t),e.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,i=this.touchEventsTouch,s=this.touchEventsDesktop,n=this.params,a=e.$el[0],r=!(!o.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},l=!(!o.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o.touch?(a.addEventListener(i.start,this.scrollbar.onDragStart,r),a.addEventListener(i.move,this.scrollbar.onDragMove,r),a.addEventListener(i.end,this.scrollbar.onDragEnd,l)):(a.addEventListener(s.start,this.scrollbar.onDragStart,r),t.addEventListener(s.move,this.scrollbar.onDragMove,r),t.addEventListener(s.end,this.scrollbar.onDragEnd,l))}},disableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,i=this.touchEventsTouch,s=this.touchEventsDesktop,n=this.params,a=e.$el[0],r=!(!o.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},l=!(!o.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o.touch?(a.removeEventListener(i.start,this.scrollbar.onDragStart,r),a.removeEventListener(i.move,this.scrollbar.onDragMove,r),a.removeEventListener(i.end,this.scrollbar.onDragEnd,l)):(a.removeEventListener(s.start,this.scrollbar.onDragStart,r),t.removeEventListener(s.move,this.scrollbar.onDragMove,r),t.removeEventListener(s.end,this.scrollbar.onDragEnd,l))}},init:function(){if(this.params.scrollbar.el){var t=this.scrollbar,e=this.$el,i=this.params.scrollbar,n=s(i.el);this.params.uniqueNavElements&&"string"==typeof i.el&&n.length>1&&1===e.find(i.el).length&&(n=e.find(i.el));var a=n.find("."+this.params.scrollbar.dragClass);0===a.length&&(a=s('
'),n.append(a)),r.extend(t,{$el:n,el:n[0],$dragEl:a,dragEl:a[0]}),i.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},at={setTransform:function(t,e){var i=this.rtl,n=s(t),a=i?-1:1,r=n.attr("data-swiper-parallax")||"0",o=n.attr("data-swiper-parallax-x"),l=n.attr("data-swiper-parallax-y"),h=n.attr("data-swiper-parallax-scale"),d=n.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):this.isHorizontal()?(o=r,l="0"):(l=r,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*e*a+"%":o*e*a+"px",l=l.indexOf("%")>=0?parseInt(l,10)*e+"%":l*e+"px",null!=d){var c=d-(d-1)*(1-Math.abs(e));n[0].style.opacity=c}if(null==h)n.transform("translate3d("+o+", "+l+", 0px)");else{var u=h-(h-1)*(1-Math.abs(e));n.transform("translate3d("+o+", "+l+", 0px) scale("+u+")")}},setTranslate:function(){var t=this,e=t.$el,i=t.slides,n=t.progress,a=t.snapGrid;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e,i){t.parallax.setTransform(i,n)})),i.each((function(e,i){var r=i.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(r+=Math.ceil(e/2)-n*(a.length-1)),r=Math.min(Math.max(r,-1),1),s(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e,i){t.parallax.setTransform(i,r)}))}))},setTransition:function(t){void 0===t&&(t=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e,i){var n=s(i),a=parseInt(n.attr("data-swiper-parallax-duration"),10)||t;0===t&&(a=0),n.transition(a)}))}},rt={getDistanceBetweenTouches:function(t){if(t.targetTouches.length<2)return 1;var e=t.targetTouches[0].pageX,i=t.targetTouches[0].pageY,s=t.targetTouches[1].pageX,n=t.targetTouches[1].pageY;return Math.sqrt(Math.pow(s-e,2)+Math.pow(n-i,2))},onGestureStart:function(t){var e=this.params.zoom,i=this.zoom,n=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!o.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;i.fakeGestureTouched=!0,n.scaleStart=rt.getDistanceBetweenTouches(t)}n.$slideEl&&n.$slideEl.length||(n.$slideEl=s(t.target).closest(".swiper-slide"),0===n.$slideEl.length&&(n.$slideEl=this.slides.eq(this.activeIndex)),n.$imageEl=n.$slideEl.find("img, svg, canvas"),n.$imageWrapEl=n.$imageEl.parent("."+e.containerClass),n.maxRatio=n.$imageWrapEl.attr("data-swiper-zoom")||e.maxRatio,0!==n.$imageWrapEl.length)?(n.$imageEl.transition(0),this.zoom.isScaling=!0):n.$imageEl=void 0},onGestureChange:function(t){var e=this.params.zoom,i=this.zoom,s=i.gesture;if(!o.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;i.fakeGestureMoved=!0,s.scaleMove=rt.getDistanceBetweenTouches(t)}s.$imageEl&&0!==s.$imageEl.length&&(i.scale=o.gestures?t.scale*i.currentScale:s.scaleMove/s.scaleStart*i.currentScale,i.scale>s.maxRatio&&(i.scale=s.maxRatio-1+Math.pow(i.scale-s.maxRatio+1,.5)),i.scales.touchesStart.x))return void(s.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(s.minY)===Math.floor(s.startY)&&s.touchesCurrent.ys.touchesStart.y))return void(s.isTouched=!1)}t.preventDefault(),t.stopPropagation(),s.isMoved=!0,s.currentX=s.touchesCurrent.x-s.touchesStart.x+s.startX,s.currentY=s.touchesCurrent.y-s.touchesStart.y+s.startY,s.currentXs.maxX&&(s.currentX=s.maxX-1+Math.pow(s.currentX-s.maxX+1,.8)),s.currentYs.maxY&&(s.currentY=s.maxY-1+Math.pow(s.currentY-s.maxY+1,.8)),n.prevPositionX||(n.prevPositionX=s.touchesCurrent.x),n.prevPositionY||(n.prevPositionY=s.touchesCurrent.y),n.prevTime||(n.prevTime=Date.now()),n.x=(s.touchesCurrent.x-n.prevPositionX)/(Date.now()-n.prevTime)/2,n.y=(s.touchesCurrent.y-n.prevPositionY)/(Date.now()-n.prevTime)/2,Math.abs(s.touchesCurrent.x-n.prevPositionX)<2&&(n.x=0),Math.abs(s.touchesCurrent.y-n.prevPositionY)<2&&(n.y=0),n.prevPositionX=s.touchesCurrent.x,n.prevPositionY=s.touchesCurrent.y,n.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+s.currentX+"px, "+s.currentY+"px,0)")}}},onTouchEnd:function(){var t=this.zoom,e=t.gesture,i=t.image,s=t.velocity;if(e.$imageEl&&0!==e.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var n=300,a=300,r=s.x*n,o=i.currentX+r,l=s.y*a,h=i.currentY+l;0!==s.x&&(n=Math.abs((o-i.currentX)/s.x)),0!==s.y&&(a=Math.abs((h-i.currentY)/s.y));var d=Math.max(n,a);i.currentX=o,i.currentY=h;var c=i.width*t.scale,u=i.height*t.scale;i.minX=Math.min(e.slideWidth/2-c/2,0),i.maxX=-i.minX,i.minY=Math.min(e.slideHeight/2-u/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),e.$imageWrapEl.transition(d).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var t=this.zoom,e=t.gesture;e.$slideEl&&this.previousIndex!==this.activeIndex&&(e.$imageEl.transform("translate3d(0,0,0) scale(1)"),e.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,e.$slideEl=void 0,e.$imageEl=void 0,e.$imageWrapEl=void 0)},toggle:function(t){var e=this.zoom;e.scale&&1!==e.scale?e.out():e.in(t)},in:function(t){var e,i,n,a,r,o,l,h,d,c,u,p,f,m,v,g,w=this.zoom,y=this.params.zoom,b=w.gesture,_=w.image;b.$slideEl||(b.$slideEl=this.clickedSlide?s(this.clickedSlide):this.slides.eq(this.activeIndex),b.$imageEl=b.$slideEl.find("img, svg, canvas"),b.$imageWrapEl=b.$imageEl.parent("."+y.containerClass)),b.$imageEl&&0!==b.$imageEl.length&&(b.$slideEl.addClass(""+y.zoomedSlideClass),void 0===_.touchesStart.x&&t?(e="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,i="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(e=_.touchesStart.x,i=_.touchesStart.y),w.scale=b.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,w.currentScale=b.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,t?(v=b.$slideEl[0].offsetWidth,g=b.$slideEl[0].offsetHeight,n=b.$slideEl.offset().left+v/2-e,a=b.$slideEl.offset().top+g/2-i,l=b.$imageEl[0].offsetWidth,h=b.$imageEl[0].offsetHeight,d=l*w.scale,c=h*w.scale,f=-(u=Math.min(v/2-d/2,0)),m=-(p=Math.min(g/2-c/2,0)),(r=n*w.scale)f&&(r=f),(o=a*w.scale)

m&&(o=m)):(r=0,o=0),b.$imageWrapEl.transition(300).transform("translate3d("+r+"px, "+o+"px,0)"),b.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+w.scale+")"))},out:function(){var t=this.zoom,e=this.params.zoom,i=t.gesture;i.$slideEl||(i.$slideEl=this.clickedSlide?s(this.clickedSlide):this.slides.eq(this.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+e.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(t.scale=1,t.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+e.zoomedSlideClass),i.$slideEl=void 0)},enable:function(){var t=this.zoom;if(!t.enabled){t.enabled=!0;var e=!("touchstart"!==this.touchEvents.start||!o.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},i=!o.passiveListener||{passive:!1,capture:!0};o.gestures?(this.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,e),this.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,e),this.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,e)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,".swiper-slide",t.onGestureStart,e),this.$wrapperEl.on(this.touchEvents.move,".swiper-slide",t.onGestureChange,i),this.$wrapperEl.on(this.touchEvents.end,".swiper-slide",t.onGestureEnd,e),this.touchEvents.cancel&&this.$wrapperEl.on(this.touchEvents.cancel,".swiper-slide",t.onGestureEnd,e)),this.$wrapperEl.on(this.touchEvents.move,"."+this.params.zoom.containerClass,t.onTouchMove,i)}},disable:function(){var t=this.zoom;if(t.enabled){this.zoom.enabled=!1;var e=!("touchstart"!==this.touchEvents.start||!o.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},i=!o.passiveListener||{passive:!1,capture:!0};o.gestures?(this.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,e),this.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,e),this.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,e)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,".swiper-slide",t.onGestureStart,e),this.$wrapperEl.off(this.touchEvents.move,".swiper-slide",t.onGestureChange,i),this.$wrapperEl.off(this.touchEvents.end,".swiper-slide",t.onGestureEnd,e),this.touchEvents.cancel&&this.$wrapperEl.off(this.touchEvents.cancel,".swiper-slide",t.onGestureEnd,e)),this.$wrapperEl.off(this.touchEvents.move,"."+this.params.zoom.containerClass,t.onTouchMove,i)}}},ot={loadInSlide:function(t,e){void 0===e&&(e=!0);var i=this,n=i.params.lazy;if(void 0!==t&&0!==i.slides.length){var a=i.virtual&&i.params.virtual.enabled?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):i.slides.eq(t),r=a.find("."+n.elementClass+":not(."+n.loadedClass+"):not(."+n.loadingClass+")");!a.hasClass(n.elementClass)||a.hasClass(n.loadedClass)||a.hasClass(n.loadingClass)||(r=r.add(a[0])),0!==r.length&&r.each((function(t,r){var o=s(r);o.addClass(n.loadingClass);var l=o.attr("data-background"),h=o.attr("data-src"),d=o.attr("data-srcset"),c=o.attr("data-sizes");i.loadImage(o[0],h||l,d,c,!1,(function(){if(null!=i&&i&&(!i||i.params)&&!i.destroyed){if(l?(o.css("background-image",'url("'+l+'")'),o.removeAttr("data-background")):(d&&(o.attr("srcset",d),o.removeAttr("data-srcset")),c&&(o.attr("sizes",c),o.removeAttr("data-sizes")),h&&(o.attr("src",h),o.removeAttr("data-src"))),o.addClass(n.loadedClass).removeClass(n.loadingClass),a.find("."+n.preloaderClass).remove(),i.params.loop&&e){var t=a.attr("data-swiper-slide-index");if(a.hasClass(i.params.slideDuplicateClass)){var s=i.$wrapperEl.children('[data-swiper-slide-index="'+t+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(s.index(),!1)}else{var r=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');i.lazy.loadInSlide(r.index(),!1)}}i.emit("lazyImageReady",a[0],o[0])}})),i.emit("lazyImageLoad",a[0],o[0])}))}},load:function(){var t=this,e=t.$wrapperEl,i=t.params,n=t.slides,a=t.activeIndex,r=t.virtual&&i.virtual.enabled,o=i.lazy,l=i.slidesPerView;function h(t){if(r){if(e.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]').length)return!0}else if(n[t])return!0;return!1}function d(t){return r?s(t).attr("data-swiper-slide-index"):s(t).index()}if("auto"===l&&(l=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children("."+i.slideVisibleClass).each((function(e,i){var n=r?s(i).attr("data-swiper-slide-index"):s(i).index();t.lazy.loadInSlide(n)}));else if(l>1)for(var c=a;c1||o.loadPrevNextAmount&&o.loadPrevNextAmount>1){for(var u=o.loadPrevNextAmount,p=l,f=Math.min(a+p+Math.max(u,p),n.length),m=Math.max(a-Math.max(p,u),0),v=a+l;v0&&t.lazy.loadInSlide(d(w));var y=e.children("."+i.slidePrevClass);y.length>0&&t.lazy.loadInSlide(d(y))}}},lt={LinearSpline:function(t,e){var i,s,n,a,r;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(r=function(t,e){for(s=-1,i=t.length;i-s>1;)t[n=i+s>>1]<=e?s=n:i=n;return i}(this.x,t),a=r-1,(t-this.x[a])*(this.y[r]-this.y[a])/(this.x[r]-this.x[a])+this.y[a]):0},this},getInterpolateFunction:function(t){this.controller.spline||(this.controller.spline=this.params.loop?new lt.LinearSpline(this.slidesGrid,t.slidesGrid):new lt.LinearSpline(this.snapGrid,t.snapGrid))},setTranslate:function(t,e){var i,s,n=this,a=n.controller.control;function r(t){var e=n.rtlTranslate?-n.translate:n.translate;"slide"===n.params.controller.by&&(n.controller.getInterpolateFunction(t),s=-n.controller.spline.interpolate(-e)),s&&"container"!==n.params.controller.by||(i=(t.maxTranslate()-t.minTranslate())/(n.maxTranslate()-n.minTranslate()),s=(e-n.minTranslate())*i+t.minTranslate()),n.params.controller.inverse&&(s=t.maxTranslate()-s),t.updateProgress(s),t.setTranslate(s,n),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(a))for(var o=0;o0&&(this.isBeginning?this.a11y.disableEl(i):this.a11y.enableEl(i)),e&&e.length>0&&(this.isEnd?this.a11y.disableEl(e):this.a11y.enableEl(e))}},updatePagination:function(){var t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((function(i,n){var a=s(n);t.a11y.makeElFocusable(a),t.a11y.addElRole(a,"button"),t.a11y.addElLabel(a,e.paginationBulletMessage.replace(/{{index}}/,a.index()+1))}))},init:function(){this.$el.append(this.a11y.liveRegion);var t,e,i=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(t=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(e=this.navigation.$prevEl),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,i.nextSlideMessage),t.on("keydown",this.a11y.onEnterKey)),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,i.prevSlideMessage),e.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)},destroy:function(){var t,e;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(t=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(e=this.navigation.$prevEl),t&&t.off("keydown",this.a11y.onEnterKey),e&&e.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)}},dt={init:function(){if(this.params.history){if(!e.history||!e.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var t=this.history;t.initialized=!0,t.paths=dt.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||e.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||e.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=dt.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var t=e.location.pathname.slice(1).split("/").filter((function(t){return""!==t})),i=t.length;return{key:t[i-2],value:t[i-1]}},setHistory:function(t,i){if(this.history.initialized&&this.params.history.enabled){var s=this.slides.eq(i),n=dt.slugify(s.attr("data-history"));e.location.pathname.includes(t)||(n=t+"/"+n);var a=e.history.state;a&&a.value===n||(this.params.history.replaceState?e.history.replaceState({value:n},null,n):e.history.pushState({value:n},null,n))}},slugify:function(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(t,e,i){if(e)for(var s=0,n=this.slides.length;s

'),i.append(t)),t.css({height:a+"px"})):0===(t=e.find(".swiper-cube-shadow")).length&&(t=s('
'),e.append(t)));for(var p=0;p-1&&(u=90*m+90*w,o&&(u=90*-m-90*w)),f.transform(x),h.slideShadows){var T=d?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),S=d?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===T.length&&(T=s('
'),f.append(T)),0===S.length&&(S=s('
'),f.append(S)),T.length&&(T[0].style.opacity=Math.max(-w,0)),S.length&&(S[0].style.opacity=Math.max(w,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),h.shadow)if(d)t.transform("translate3d(0px, "+(a/2+h.shadowOffset)+"px, "+-a/2+"px) rotateX(90deg) rotateZ(0deg) scale("+h.shadowScale+")");else{var E=Math.abs(u)-90*Math.floor(Math.abs(u)/90),C=1.5-(Math.sin(2*E*Math.PI/360)/2+Math.cos(2*E*Math.PI/360)/2),A=h.shadowScale,P=h.shadowScale/C,L=h.shadowOffset;t.transform("scale3d("+A+", 1, "+P+") translate3d(0px, "+(r/2+L)+"px, "+-r/2/P+"px) rotateX(-90deg)")}var k=W.isSafari||W.isUiWebView?-l/2:0;i.transform("translate3d(0px,0,"+k+"px) rotateX("+(this.isHorizontal()?0:u)+"deg) rotateY("+(this.isHorizontal()?-u:0)+"deg)")},setTransition:function(t){var e=this.$el;this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),this.params.cubeEffect.shadow&&!this.isHorizontal()&&e.find(".swiper-cube-shadow").transition(t)}},mt={setTranslate:function(){for(var t=this.slides,e=this.rtlTranslate,i=0;i
'),n.append(d)),0===c.length&&(c=s('
'),n.append(c)),d.length&&(d[0].style.opacity=Math.max(-a,0)),c.length&&(c[0].style.opacity=Math.max(a,0))}n.transform("translate3d("+l+"px, "+h+"px, 0px) rotateX("+o+"deg) rotateY("+r+"deg)")}},setTransition:function(t){var e=this,i=e.slides,s=e.activeIndex,n=e.$wrapperEl;if(i.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){var a=!1;i.eq(s).transitionEnd((function(){if(!a&&e&&!e.destroyed){a=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],i=0;i
'),m.append(S)),0===E.length&&(E=s('
'),m.append(E)),S.length&&(S[0].style.opacity=g>0?g:0),E.length&&(E[0].style.opacity=-g>0?-g:0)}}(o.pointerEvents||o.prefixedPointerEvents)&&(n[0].style.perspectiveOrigin=d+"px 50%")},setTransition:function(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}},gt={init:function(){var t=this.params.thumbs,e=this.constructor;t.swiper instanceof e?(this.thumbs.swiper=t.swiper,r.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),r.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):r.isObject(t.swiper)&&(this.thumbs.swiper=new e(r.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick)},onThumbClick:function(){var t=this.thumbs.swiper;if(t){var e=t.clickedIndex,i=t.clickedSlide;if(!(i&&s(i).hasClass(this.params.thumbs.slideThumbActiveClass)||null==e)){var n;if(n=t.params.loop?parseInt(s(t.clickedSlide).attr("data-swiper-slide-index"),10):e,this.params.loop){var a=this.activeIndex;this.slides.eq(a).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,a=this.activeIndex);var r=this.slides.eq(a).prevAll('[data-swiper-slide-index="'+n+'"]').eq(0).index(),o=this.slides.eq(a).nextAll('[data-swiper-slide-index="'+n+'"]').eq(0).index();n=void 0===r?o:void 0===o?r:o-an?s-Math.floor(i/2)+1:s+Math.floor(i/2)-1:s>n&&(s=s-i+1),e.slideTo(s,t?0:void 0))}var o=1,l=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(o=this.params.slidesPerView),this.params.thumbs.multipleActiveThumbs||(o=1),o=Math.floor(o),e.slides.removeClass(l),e.params.loop||e.params.virtual&&e.params.virtual.enabled)for(var h=0;h0&&!s(t.target).hasClass(this.params.pagination.bulletClass)&&(!0===this.pagination.$el.hasClass(this.params.pagination.hiddenClass)?this.emit("paginationShow",this):this.emit("paginationHide",this),this.pagination.$el.toggleClass(this.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){r.extend(this,{scrollbar:{init:nt.init.bind(this),destroy:nt.destroy.bind(this),updateSize:nt.updateSize.bind(this),setTranslate:nt.setTranslate.bind(this),setTransition:nt.setTransition.bind(this),enableDraggable:nt.enableDraggable.bind(this),disableDraggable:nt.disableDraggable.bind(this),setDragPosition:nt.setDragPosition.bind(this),getPointerPosition:nt.getPointerPosition.bind(this),onDragStart:nt.onDragStart.bind(this),onDragMove:nt.onDragMove.bind(this),onDragEnd:nt.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(t){this.scrollbar.setTransition(t)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){r.extend(this,{parallax:{setTransform:at.setTransform.bind(this),setTranslate:at.setTranslate.bind(this),setTransition:at.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(t){this.params.parallax.enabled&&this.parallax.setTransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var t=this,e={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(i){e[i]=rt[i].bind(t)})),r.extend(t,{zoom:e});var i=1;Object.defineProperty(t.zoom,"scale",{get:function(){return i},set:function(e){if(i!==e){var s=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,n=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",e,s,n)}i=e}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(t){this.zoom.enabled&&this.zoom.onTouchStart(t)},touchEnd:function(t){this.zoom.enabled&&this.zoom.onTouchEnd(t)},doubleTap:function(t){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(t)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()},slideChange:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.params.cssMode&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){r.extend(this,{lazy:{initialImageLoaded:!1,load:ot.load.bind(this),loadInSlide:ot.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()},slideChange:function(){this.params.lazy.enabled&&this.params.cssMode&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){r.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:lt.getInterpolateFunction.bind(this),setTranslate:lt.setTranslate.bind(this),setTransition:lt.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(t,e){this.controller.control&&this.controller.setTranslate(t,e)},setTransition:function(t,e){this.controller.control&&this.controller.setTransition(t,e)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var t=this;r.extend(t,{a11y:{liveRegion:s('')}}),Object.keys(ht).forEach((function(e){t.a11y[e]=ht[e].bind(t)}))},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){r.extend(this,{history:{init:dt.init.bind(this),setHistory:dt.setHistory.bind(this),setHistoryPopState:dt.setHistoryPopState.bind(this),scrollToSlide:dt.scrollToSlide.bind(this),destroy:dt.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)},slideChange:function(){this.history.initialized&&this.params.cssMode&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){r.extend(this,{hashNavigation:{initialized:!1,init:ct.init.bind(this),destroy:ct.destroy.bind(this),setHash:ct.setHash.bind(this),onHashCange:ct.onHashCange.bind(this)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()},slideChange:function(){this.hashNavigation.initialized&&this.params.cssMode&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var t=this;r.extend(t,{autoplay:{running:!1,paused:!1,run:ut.run.bind(t),start:ut.start.bind(t),stop:ut.stop.bind(t),pause:ut.pause.bind(t),onVisibilityChange:function(){"hidden"===document.visibilityState&&t.autoplay.running&&t.autoplay.pause(),"visible"===document.visibilityState&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},onTransitionEnd:function(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addEventListener("visibilitychange",this.autoplay.onVisibilityChange))},beforeTransitionStart:function(t,e){this.autoplay.running&&(e||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(t):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},touchEnd:function(){this.params.cssMode&&this.autoplay.paused&&!this.params.autoplay.disableOnInteraction&&this.autoplay.run()},destroy:function(){this.autoplay.running&&this.autoplay.stop(),document.removeEventListener("visibilitychange",this.autoplay.onVisibilityChange)}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){r.extend(this,{fadeEffect:{setTranslate:pt.setTranslate.bind(this),setTransition:pt.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};r.extend(this.params,t),r.extend(this.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(t){"fade"===this.params.effect&&this.fadeEffect.setTransition(t)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){r.extend(this,{cubeEffect:{setTranslate:ft.setTranslate.bind(this),setTransition:ft.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};r.extend(this.params,t),r.extend(this.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(t){"cube"===this.params.effect&&this.cubeEffect.setTransition(t)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){r.extend(this,{flipEffect:{setTranslate:mt.setTranslate.bind(this),setTransition:mt.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};r.extend(this.params,t),r.extend(this.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(t){"flip"===this.params.effect&&this.flipEffect.setTransition(t)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){r.extend(this,{coverflowEffect:{setTranslate:vt.setTranslate.bind(this),setTransition:vt.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(t){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(t)}}},{name:"thumbs",params:{thumbs:{multipleActiveThumbs:!0,swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){r.extend(this,{thumbs:{swiper:null,init:gt.init.bind(this),update:gt.update.bind(this),onThumbClick:gt.onThumbClick.bind(this)}})},on:{beforeInit:function(){var t=this.params.thumbs;t&&t.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(t){var e=this.thumbs.swiper;e&&e.setTransition(t)},beforeDestroy:function(){var t=this.thumbs.swiper;t&&this.thumbs.swiperCreated&&t&&t.destroy()}}}];return void 0===V.use&&(V.use=V.Class.use,V.installModule=V.Class.installModule),V.use(wt),V},"object"==typeof exports&&"undefined"!=typeof module?module.exports=s():"function"==typeof define&&define.amd?define(s):(i=i||self).Swiper=s(); /*! * ANI-Util JavaScript Library v1.0 * * Copyright 2021. Yoon jae-ho * Released under the MIT license * * Date: 2021-02-09 */ const n={scrollController:function(){let t,e,i,s,n={},a=navigator.userAgent.toLowerCase(),r=a.indexOf("mac os")>-1,o=document.scrollingElement||document.documentElement||document.body.parentNode||document.body,l=r?60:120,h=o===document.body&&document.documentElement?document.documentElement:o,d=!1,c=null;const u=function(s){t=s.speed?r?s.speed/2:s.speed:l,e=s.duration?s.duration:.6,i=o.scrollTop},p={wheel:function(){"Netscape"==navigator.appName&&-1!=navigator.userAgent.search("Trident")||-1!=a.indexOf("msie")?document.documentElement.addEventListener("mousewheel",f.scrollEvent,{passive:!1}):document.documentElement.addEventListener("wheel",f.scrollEvent,{passive:!1})},scroll:function(){window.addEventListener("scroll",(function(){"hidden"!=document.documentElement.style.overflow&&"hidden"!=document.body.style.overflow&&(d||(i=o.scrollTop))}))}},f={scrollEvent:function(e){if("hidden"==document.documentElement.style.overflow||"hidden"==document.body.style.overflow)return;e.preventDefault();const a=document.body.getAttribute("data-scroll-speed"),r=f.normalizeWheelDelta(e),l=n.currDelta&&a?a:a||t?t:120;i+=-r*l,s=Math.max(0,Math.min(i,o.scrollHeight-h.clientHeight)),f.update()},normalizeWheelDelta:function(t){return t.detail?t.wheelDelta?t.wheelDelta/t.detail/40*(t.detail>0?1:-1):-t.detail/3:t.wheelDelta/120},update:function(){let t=s-o.scrollTop,n=0>=Math.ceil(o.scrollTop+t)?0:i>s?s:Math.ceil(o.scrollTop+t);d=!0,TweenMax.to(o,e,{ease:"circ.out",scrollTop:n,onComplete:function(){clearTimeout(c),c=null,c=setTimeout((function(){d=!1,i=o.scrollTop}),500)}}),i<=0?i=0:i>=s&&(i=s)}};return{init:function(t){return u(t),p.wheel(),p.scroll(),this.opt=t},destroy:function(t){document.documentElement.removeEventListener("mousewheel",f.scrollEvent),document.documentElement.removeEventListener("wheel",f.scrollEvent),t&&(n={})}}}};window.BUDS=window.BUDS||{};const a={isIosDevice:function(){const t=/iPad|iPhone|iPod/.test(navigator.userAgent);return t?document.documentElement.classList.add("isIosDevice"):document.documentElement.classList.add("isNotIosDevice"),t}(),checkGlobal:void(0===location.pathname.indexOf("/global/galaxy")||!0===window.IS_CAMPAIGN?document.documentElement.classList.add("global"):document.documentElement.classList.add("dotcom")),checkOS:function(){let t=navigator.appVersion.match(/(mac|win|linux)/i);t=t?t[1].toLowerCase():"",document.documentElement.classList.add(t)}(),isFireFox:void(/firefox/i.test(navigator.userAgent)&&document.documentElement.classList.add("firefox")),isWebkit:void(/applewebkit/i.test(navigator.userAgent)&&document.documentElement.classList.add("webkit")),isChrome:void(/chrome/i.test(navigator.userAgent)&&document.documentElement.classList.add("chrome")),isOpera:void(/opera/i.test(navigator.userAgent)&&document.documentElement.classList.add("opera")),isIos:void(/ip(ad|hone|od)/i.test(navigator.userAgent)&&document.documentElement.classList.add("ios")),isCrIos:void(/crios/i.test(navigator.userAgent)&&document.documentElement.classList.add("crios")),isAndroid:void(/android/i.test(navigator.userAgent)&&document.documentElement.classList.add("android")),isSafari:function(){const t=/applewebkit/i.test(navigator.userAgent),e=/chrome/i.test(navigator.userAgent);t&&!e&&document.documentElement.classList.add("safari")}(),isHuawei:void(/HUAWEICLT/i.test(navigator.userAgent)&&document.documentElement.classList.add("huawei")),isUCBrowser:void(/UCBrowser/i.test(navigator.userAgent)&&document.documentElement.classList.add("ucbrowser")),winSize:function(){let t="Netscape"===navigator.appName,e=-1!==navigator.appVersion.indexOf("Mac"),i=-1!==navigator.userAgent.indexOf("Safari"),s=-1!==navigator.userAgent.indexOf("Chrome");return t&&!e&&i&&!s}()?function(){return{w:e(t).width(),h:e(t).height()}}:function(){return{w:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}},requestAFrame:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},cancelAFrame:window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){window.clearTimeout(t)},isObject:function(t){return"object"==typeof t&&null!==t&&t.constructor&&t.constructor===Object},def:function(){let t=[],e=arguments.length;for(;e--;)t[e]=arguments[e];let i=Object(t[0]);for(let e=1;e-1?"global":"jp"},isLowNetwork:function(){var t=a.getCookie("___GALAXY_SPEED")||a.getCookie("__COM_SPEED");return null!=t&&null!=t&&("L"==t||"H"!=t&&void 0)},getNavHeight:function(){let t=0;const e=document.querySelector(".pd-g-header-navigation")||document.querySelector("#subnav")||document.querySelector(".sticky-menu")||document.querySelector(".pd-g-floating-nav");if(e)if(e.classList.contains("pd-g-header-navigation")){const i=e.querySelector(".pd-header-navigation"),s=i.querySelector(".pd-header-navigation__menu-wrap");t=i.clientHeight+s.clientHeight}else t=e.clientHeight;return t},isBrokenFixed:function(){const t=window.innerWidth,e=window.innerHeight,i=!1;return document.documentElement.classList.remove("is-broken-fixed"),t>=1440&&e<=540||t<=810&&e/t<.5277||e-1)t="trident/.*rv:";else{if(!(e.search("edge/")>-1))return-1;t="edge/"}return null!=new RegExp(t+"([0-9]{1,})(\\.{0,}[0-9]{0,1})").exec(e)?(document.documentElement.classList.add("isIEorEdge"),parseFloat(RegExp.$1+RegExp.$2)):-1}(),page:{scrollLock:{className:"is-no-scroll",barWidth:function(){return window.innerWidth-document.documentElement.clientWidth},el:e("html"),run:function(t){document.documentElement.style.paddingRight=t+"px"},off:function(){this.barWidth(),this.el.removeClass(this.className),this.el.removeClass("hive-layer-scroll-lock"),this.run(0)},on:function(){const t=this.barWidth();this.el.addClass(this.className),this.run(t)}}},MIN_VIEW_HEIGHT:400,RESPONSIVE:{PC:{NAME:"pc",WIDTH:1440},TABLET:{NAME:"tablet",WIDTH:1024},MOBILE:{NAME:"mobile",WIDTH:767}}};BUDS.UTILS=a,function(){"use strict";window.BUDS=window.BUDS||{};const t=BUDS.UTILS;BUDS.ImageLoader=class{constructor(t=container,e){const i={el:t,lazyClass:".js-img-src",lazyCompleteClass:"load-complete",responsiveClass:e.responsiveClass||".js-res-img",loadOption:e.loadOption,visiblePoint:e.visiblePoint?e.visiblePoint:0,useDefaultImg:e.useDefaultImg,resizeStart:null};this.opts=i,this.classes=i.classes,this.events={load:this.onLoadHandler.bind(this),resize:this.onResizeHandler.bind(this),scroll:this.lazyEvent.bind(this)},this.el=document.querySelector(t),this.init()}init(){this.initOpts(),this.getLazyImage(),this.getResponsiveImage(),this.bindEvents()}initOpts(){this.targetAttr=this.opts.loadOption[0].attribute,this.responsiveCheck=this.opts.loadOption,this.dynamicCallCount=0,this.dynamicLoadedComplate=!1,this.opts.useDefaultImg&&this.setDefaultImage()}getLazyImage(){let t=[];const e=this.el.children;Array.from(e).forEach((e=>{if(!e.classList.contains("is-feature-hide")){const i=e.querySelectorAll(this.opts.lazyClass);t.push(...i)}})),this.lazyImages=t,this.lazyLength=t.length}getResponsiveImage(){const t=this.el.querySelectorAll(this.opts.responsiveClass);this.responsiveImages=t,this.responsiveLength=t.length}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("scroll",this.events.scroll),this.responsiveCheck&&window.addEventListener("resize",this.events.resize)}onLoadHandler(){this.events.resize(),this.events.scroll(),setTimeout((()=>{this.responsiveHandler(),this.lazyEvent()}),300),window.removeEventListener("load",this.events.load)}onResizeHandler(){clearTimeout(this.opts.resizeStart),this.opts.resizeStart=setTimeout((()=>{this.responsiveHandler(),this.lazyEvent()}),150)}lazyEvent(){this.setLazyImage(),this.lazyLength===this.lazyCompleteLength&&window.removeEventListener("scroll",this.events.scroll)}responsiveHandler(){this.windowWidth=window.innerWidth;let t=this.opts.loadOption.length;for(let e=0;es,n&&this.opts.loadOption[e].attribute!==this.oldAttr&&(this.targetAttr=this.opts.loadOption[e].attribute,this.oldAttr=this.targetAttr,this.attrIndex=e,this.dynamicCallCount=0,this.setResponsiveImage())}}setResponsiveImage(t){if(t)for(let e=0;e-1||s.indexOf(".png")>-1)&&(s=`${s}?imbypass=true`),t[e].classList.contains(this.opts.lazyCompleteClass)||(t[e].setAttribute("src",s),t[e].classList.add(this.opts.lazyCompleteClass))}else for(let t=0;t-1||i.indexOf(".png")>-1)&&(i=`${i}?imbypass=true`),e.classList.contains(this.opts.lazyCompleteClass)&&e.setAttribute("src",i)}}checkCompleteImage(){let t=this.el.querySelectorAll("."+this.opts.lazyCompleteClass);this.lazyCompleteLength=t.length}setDefaultImage(){for(var t=0;tl&&r<=l||rh||rh||r>l&&o-1||t.indexOf(".png")>-1)&&(t=`${t}?imbypass=true`),!n.classList.contains(this.opts.lazyCompleteClass)){n.setAttribute("src",t);var e=()=>{1==this.opts.lazyClass.split(" ").length&&n.classList.remove(c),this.checkCompleteImage(),n.removeEventListener("load",e)};n.addEventListener("load",e),n.classList.add(this.opts.lazyCompleteClass)}}}}findRemainingImageAttr(t){for(var e=this.opts.loadOption.length,i=0;i=0;e--){let i=t.getAttribute(this.opts.loadOption[e].attribute);if(i)return i;if(0==e&&null==i)return this.findRemainingImageAttr(t)}}findImageHandler(t){return 0!==this.attrIndex?this.findNextImageAttr(t):this.findRemainingImageAttr(t)}}}(),function(){"use strict";window.BUDS=window.BUDS||{};const t=BUDS.UTILS,e=t.RESPONSIVE;BUDS.VideoLoader=class{constructor(t=container,e){const i={el:t,lazyClass:e.lazyClass||".js-video-src",responsiveClass:e.responsiveClass||".js-res-video",imageLazyCompleteClass:"load-complete",notLoadElement:e.notLoadElement||[],loadOption:e.loadOption,visiblePoint:e.visiblePoint?e.visiblePoint:0,resizeStart:null,classes:{loaded:"loaded",ended:"ended"}};this.opts=i,this.classes=i.classes,this.el=document.querySelector(t),this.init()}init(){this.initOpts(),this.getLazyVideo(),this.getResponsiveVideo(),this.bindEvents()}initOpts(){this.getCurrentDevice();const t="mobile"!==this.currentDevice?0:1;this.prevSrcArray=[],this.targetAttr=this.opts.loadOption[t].attribute,this.responsiveCheck=this.opts.loadOption,this.videoCallStack=[]}getLazyVideo(){let t=Array.from(this.el.querySelectorAll(this.opts.lazyClass)).filter((t=>{t.isVideoInit=!1;for(let e=0;e{if(t.querySelector("video")&&!t.closest(".is-feature-hide"))return t})),this.lazyVideos=t,this.lazyLength=t.length}getResponsiveVideo(){let t=Array.from(this.el.querySelectorAll(this.opts.responsiveClass)).filter((t=>{for(let e=0;e=e.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>e.MOBILE.WIDTH&&this.winWidth{this.getCurrentDevice(),this.responsiveHandler(),this.lazyEvent()}),80)}lazyEvent(){this.setLazyVideo(),this.lazyLength===this.lazyCompleteLength&&window.removeEventListener("scroll",this.lazyEvent.bind(this))}responsiveHandler(){this.windowWidth=window.innerWidth;let t=this.opts.loadOption.length;for(let e=0;es,n&&this.opts.loadOption[e].attribute!==this.oldAttr&&(this.targetAttr=this.opts.loadOption[e].attribute,this.oldAttr=this.targetAttr,this.attrIndex=e,this.setResponsiveVideo())}}setResponsiveVideo(){for(let t=0;t{const e=t.getAttribute("type");e.indexOf("webm")>-1&&(t.src=s+".webm"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true")),e.indexOf("mp4")>-1&&(t.src=s+".mp4"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true"))})),i.isCanplayThrough=!1,i.load(),i.addEventListener("canplaythrough",(()=>{window.setTimeout((()=>{i.isCanplayThrough=!0,e.classList.add(this.classes.loaded)}),500),this.checkCompleteVideo()}),{once:!0}))}}setLazyVideo(){for(let t=0;ta-window.innerHeight*(0!=window.pageYOffset?this.opts.visiblePoint:0)&&e{this.checkCompleteVideo(),this.videoCallStack.splice(0,1),this.videoCallStack.length>0&&this.setVideoSrc()},l=()=>{window.fetch(s+".webm"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true"),{mode:"no-cors"}).then((t=>{if(404===t.status)return fetch(s+".mp4"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true"),{mode:"no-cors"})})).then((t=>{404===t.status&&o()})).catch((()=>{o()}))},h=()=>{window.setTimeout((()=>{i.isCanplayThrough=!0,e.classList.add(this.classes.loaded)}),500),1==this.opts.lazyClass.split(" ").length&&e.classList.remove(a),o()};this.prevSrcArray[t]!==r&&(i.querySelectorAll("source").forEach((t=>{const e=t.getAttribute("type");e.indexOf("webm")>-1&&(t.src=s+".webm"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true")),e.indexOf("mp4")>-1&&(t.src=s+".mp4"+(void 0!==window.GALAXY||window.GALAXY?"":"?imbypass=true"))})),i.isCanplayThrough=!1,i.load(),i.addEventListener("canplaythrough",h,{once:!0}),i.addEventListener("error",l,!0),e.isVideoInit=!0,this.prevSrcArray[t]=r)}checkCompleteVideo(){let t=Array.from(this.el.querySelectorAll("."+this.classes.loaded)).filter((t=>{for(let e=0;e=e.TABLET.WIDTH?this.currentDevice="desktop":this.winWidth>e.MOBILE.WIDTH&&this.winWidth{const e=t.getAttribute("type");e.indexOf("webm")>-1&&(t.src=i+".webm"),e.indexOf("mp4")>-1&&(t.src=i+".mp4"),this.video.load()})),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.remove(this.classes.paused),this.video.addEventListener("canplaythrough",(()=>{t.isLowNetwork()||this.onPlay()}),{once:!0})),this.prevVideoSrc=s}}onLoad(e){if(e===this.videoElement){const e="mobile"!==this.currentDevice?"data-media-pc":"data-media-mo",i=this.videoElement.getAttribute(e);this.videoElement.playState=!1,this.video.querySelectorAll("source").forEach((t=>{const e=t.getAttribute("type");e.indexOf("webm")>-1&&(t.src=i+".webm"),e.indexOf("mp4")>-1&&(t.src=i+".mp4"),this.video.load()})),this.video.isCanplayThrough=!1,this.video.addEventListener("canplaythrough",(()=>{this.video.isCanplayThrough=!0,t.isLowNetwork()||this.onPlay()}),{once:!0})}}onPlay(t){const e=()=>{if(!this.videoElement.playState){this.video.currentTime===this.video.duration&&(this.video.currentTime=0),this.autoPlay&&(this.videoElement.autoPlayState=!0),this.videoElement.playState=!0,this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.paused);const t=()=>{this.video.isCanplayThrough&&this.video.readyState>3?(cancelAnimationFrame(this.opts.videoFrame),clearTimeout(this.opts.videoPlayTimeout),this.opts.videoPlayTimeout=setTimeout((()=>{this.video.play(),this.updateController(),this.outCallback("updatePlayState",!0),this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.paused),this.videoElement.classList.add(this.classes.playing)}),250)):this.opts.videoFrame=requestAnimationFrame(t)};this.opts.videoFrame=requestAnimationFrame(t),this.video.addEventListener("ended",this.updatePlayEnded.bind(this),{once:!0})}};t?t===this.videoElement&&e():e()}onPause(){this.video.paused||this.video.pause(),this.videoElement.playState=!1,this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.add(this.classes.paused),this.updateController()}onEnded(){this.video.readyState>3&&(this.video.ended||this.video.pause(),this.video.currentTime=this.video.duration,this.videoElement.playState=!1,this.videoElement.classList.add(this.classes.ended),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.remove(this.classes.paused),this.updateController())}onReset(t){this.videoElement.playState||(cancelAnimationFrame(this.opts.videoFrame),clearTimeout(this.opts.videoPlayTimeout));const e=()=>{this.video.pause(),this.video.currentTime=0,this.videoElement.playState=!1,this.autoPlay&&(this.videoElement.autoPlayState=!1),this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.remove(this.classes.paused),this.updateController()};t?t===this.videoElement&&e():e()}onCanplayThrough(){const t=this.opts.videoLazyClass.split("."),e=t[t.length-1];this.useController&&window.setTimeout((()=>{this.videoController.style.display="block"}),500),this.videoElement.classList.add(this.classes.loaded),1==this.opts.videoLazyClass.split(" ").length&&this.videoElement.classList.remove(e),this.isCanplay=!0,this.onScrollHandler(),this.isCanplay=!1}onTimeUpdate(){const t={el:this.videoElement,duration:this.video.duration,currentTime:this.video.currentTime,playState:this.videoElement.playState,controller:this.videoController};this.outCallback("updateTime",t)}onClickController(t){t.preventDefault(),this.videoElement.playState?this.onPause():this.onPlay()}onVideoPlay(){this.videoElement.playState=!0,this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.add(this.classes.playing),this.videoElement.classList.remove(this.classes.paused),this.updateController(),this.outCallback("updatePlayState",!0)}onVideoPause(){this.videoElement.playState=!1,this.videoElement.classList.remove(this.classes.ended),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.add(this.classes.paused),this.updateController(),this.outCallback("updatePlayState",!1)}onVideoEnded(){this.videoElement.playState=!1,this.videoElement.classList.add(this.classes.ended),this.videoElement.classList.remove(this.classes.playing),this.videoElement.classList.remove(this.classes.paused),this.updateController(),this.outCallback("updatePlayState",!1)}updatePlayEnded(){this.onPause()}updateController(){if(!this.useController)return;this.videoElement.playState?this.videoController.classList.add(this.classes.isPaused):this.videoController.classList.remove(this.classes.isPaused);const t={el:this.videoController,playState:this.videoElement.playState};this.outCallback("updateController",t),this.outCallback("updatePlayState",this.videoElement.playState)}onScrollHandler(){if(this.videoElement.closest(".cm-layer"))return;const e=scrollY>this.lastScrollY?"down":"up",i=t.getHeight(this.videoElement)*this.opts.playOffset,s=t.getScroll().top,n=t.getScroll().bottom,a=t.getOffset(this.videoElement).top,r=t.getOffset(this.videoElement).bottom,o=this.videoElement.classList.contains(this.classes.playing)&&this.videoElement.playState,l=this.videoElement.classList.contains(this.classes.paused)&&!this.videoElement.playState,h=this.videoElement.classList.contains(this.classes.ended)&&!this.videoElement.playState;if("oneWay"===this.opts.playType)if(n>=a+i&&s<=r){(this.isCanplay||"down"===e)&&(!this.autoPlay||this.videoElement.playState||this.videoElement.autoPlayState||t.isLowNetwork()||this.onPlay())}else nr&&this.autoPlay&&(this.videoElement.autoPlayState?(o||l)&&this.onEnded():this.videoElement.classList.add(this.classes.ended));else"reverse"===this.opts.playType&&(n>=a+i&&s<=r-i?!this.autoPlay||this.videoElement.playState||this.videoElement.autoPlayState||t.isLowNetwork()||this.onPlay():(s>r||n{this.isCanplay=!0,this.onReset(),this.onScrollHandler(),this.isCanplay=!1}),100)}onResizeHandler(){t.winSize().w!==this.winWidth&&(this.winWidth=t.winSize().w,null==this.opts.resizeStart&&(this.opts.resizeStart=this.winWidth,this.resizeAnimateFunc()),window.clearTimeout(this.resizeEndTime),this.resizeEndTime=window.setTimeout(this.resizeEndFunc.bind(this),150))}resizeAnimateFunc(){this.setLayout(),this.resizeRequestFrame=t.requestAFrame.call(window,this.resizeAnimateFunc.bind(this))}resizeEndFunc(){this.opts.resizeStart=null,t.cancelAFrame.call(window,this.resizeRequestFrame)}setLayout(){this.onScrollHandler(),this.winWidth>=e.MOBILE.WIDTH?this.currentDevice="desktop":this.currentDevice="mobile",this.currentDevice!==this.prevDevice&&this.onResponsiveChange(),this.prevDevice=this.currentDevice}outCallback(t,e){var i=this.opts.on[t];null!=i&&i(e)}}}(),function(){"use strict";window.BUDS=window.BUDS||{};const t=function(){const t={};let i=!1,s=null,r=null;const o=function(){t.resizeTimeout=null,t.supClicker=document.querySelectorAll("a.click_sup"),t.supTopBtn=document.querySelectorAll("button.click_disclaimer"),t.contents=document.getElementById("contents")||document.getElementById("content"),t.allClickable=t.contents.querySelectorAll("a, button, input, select")},l=function(){let e=0;for(window.addEventListener("load",h),window.addEventListener("resize",c),window.addEventListener("scroll",u),e=0;e{const t=document.querySelectorAll(".click_sup"),e=document.querySelectorAll("li.common-bottom-disclaimer__list-item"),i=Array.from(e).map((t=>t.getAttribute("data-sup")));Array.from(t).map((t=>{const e=t.getAttribute("data-sup-tag");if(i.indexOf(e)>-1&&(t.innerText=i.indexOf(e)+1),-1===i.indexOf(e)){const e=t.parentElement,i=t.parentElement?.children.length??0;1===i&&e.remove(),i>1&&(e.removeChild(t.nextSibling),t.remove(),3===e.childNodes.length&&e.removeChild(e.childNodes[2]))}}))},c=function(){i=window.innerWidth>=1024?"desktop":window.innerWidth>=768&&window.innerWidth<1024?"tablet":"mobile",clearTimeout(t.resizeTimeout),t.resizeTimeout=setTimeout((function(){a.isBrokenFixed()}),100),i!=s&&(document.documentElement.classList.add(i),document.documentElement.classList.remove(s),s=i)},u=function(){const e=window.pageYOffset,i=e+window.innerHeight;for(let s=0;s=o&&r<=i?n.isVisible=!0:(ri)&&(n.isVisible=!1)}},p=function(i){i.preventDefault(),i.stopPropagation();const s=this,n=parseFloat(this.innerText);let a=document.querySelectorAll("#desc-section ol");a.forEach((t=>{"block"===window.getComputedStyle(t).display&&(a=t)}));const o=a.querySelectorAll("li"),l=a.querySelectorAll("li")[n-1],h=l.querySelector("span"),d=h.innerHTML,c=`${d}`;h.innerHTML=c,r=i.currentTarget;const u=l.querySelectorAll("img.js-res-img:not(.load-complete)");u.length>0&&t.opts.updateImageLoader(u);const p=function(){m.call(s),h.removeEventListener("focusin",p)},f=function(){h.innerHTML=d,h.removeAttribute("tabindex"),h.removeEventListener("focusout",f)};if(i.currentTarget.closest(".cm-layer")){const t=i.currentTarget.closest(".cm-layer");e(t).trigger("closeLayer",!1)}h.addEventListener("focusin",p),h.addEventListener("focusout",f),setTimeout((()=>{l.querySelector("a").focus()}),0),o.forEach((t=>t.classList.remove("is-active"))),l.classList.add("is-active")},f=function(t){const e=t.target.closest("li"),i=e.getAttribute("data-sup"),s=document.querySelectorAll(".click_sup");for(let t=0;t0?`, ${this.opts.ariaNotHidden.join(",")}`:"";a.def(this,{aria:{notHidden:Array(n+r),focusType:["A","BUTTON","INPUT","SELECT","TEXTAREA"],dataAttr:{ariaHidden:"trapfocusariahidden",ariaDisabled:"trapfocusariadisabled",tabIndex:"trapfocustabindex",role:"trapfocusrole"},destroy:s.proxy((function(){for(var s,n,a,r,o=this.aria.dataAttr,l=this.aria.hiddenEls,h=this.aria.focusEls,d=this.aria.tabindexEls,c=0,u=l.length;c"),v=s(""),g=0,w=p.length;g{n.attr(i.tabIndex,-1)}))}(_);for(var T=0,S=(v=v.add(f.find("["+i.tabIndex+"]"))).length;T=0;e--){var i=t.childNodes[e];if(this.attemptFocus(i)||this.focusLastDescendant(i))return!0}return!1},isFocusable:function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!=t.rel;case"INPUT":return"hidden"!=t.type&&"file"!=t.type;case"BUTTON":case"SELECT":case"TEXTAREA":case"VIDEO":case"SOURCE":case"IFRAME":return!0;default:return!1}},attemptFocus:function(t){if(!this.opts.isDestroy){if(!this.isFocusable(t))return!1;this.opts.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(t){}return this.opts.IgnoreUtilFocusChanges=!1,document.activeElement===t}},trapFocus:function(t){if(!this.opts.isDestroy&&!this.opts.IgnoreUtilFocusChanges){document;this.dynamicComponentFocus()}},loadComponent:function(){this.dynamicComponentFocus(),setTimeout((()=>{this.dynamicComponentFocus()}),3e3),this.focusFirstDescendant(this.obj[0]),this.lastFocus=document.activeElement,this.aria.build()},dynamicComponentFocus:function(){const t=this.opts.ariaAttr,e=this.opts.elAttr;setTimeout((()=>{var i=document.getElementById("QSIFeedbackButton-btn"),s=(document.getElementById("QSIFeedbackButton-close-btn"),document.getElementById("nebula_div_btn")),n=document.getElementById("spr-live-chat-app"),a=document.getElementById("teconsent");if(i){var r=i.parentElement;i.setAttribute(t.disabled,"true"),i.setAttribute(e.tabIndex,"-1"),r.setAttribute(t.disabled,"true"),r.setAttribute(t.hidden,"true"),r.setAttribute(e.tabIndex,"-1"),r.setAttribute(e.role,"none presentation")}if(s){var o=s.parentElement;s.setAttribute(t.disabled,"true"),s.setAttribute(e.tabIndex,"0"),o.setAttribute(t.disabled,"true"),o.setAttribute(t.hidden,"true"),o.setAttribute(e.tabIndex,"-1"),o.setAttribute(e.role,"none presentation")}n&&(n.setAttribute(t.disabled,"true"),n.setAttribute(t.hidden,"true"),n.setAttribute(e.tabIndex,"-1"),n.setAttribute(e.role,"none presentation")),a&&a.hasAttribute("aria-label")&&setTimeout((()=>{var i=a.querySelector("a");i.setAttribute(e.tabIndex,"-1"),i.setAttribute(t.disabled,"true"),i.setAttribute(t.hidden,"true")}))}))},destroy:function(){n=null,this.opts.isDestroy=!0;var t=this.opts.ariaAttr;this.opts.elAttr;this.bindEvents(!1),this.aria.destroy(),this.obj.removeAttr(t.modal)}},r}();return t}()}(window),function(){"use strict";window.BUDS=window.BUDS||{};const t=BUDS.UTILS;BUDS.SubNav=class{constructor(t=container,e){const i={navItems:"ul li>a",navDests:'[class*="js-nav-"]',visSections:".js-visible",resizeStart:null,classes:{isOn:"on"}};this.opts=i,this.classes=i.classes,this.el=document.querySelector(t),this.init()}init(){null!==this.el&&(this.setElements(),this.initOpts(),this.bindEvents())}setElements(){this.navItems=t.convertArray(this.el.querySelectorAll(this.opts.navItems)),this.navDests=document.querySelectorAll(this.opts.navDests),this.visSections=t.convertArray(document.querySelectorAll(this.opts.visSections))}initOpts(){this.visCount=-1,this.visSections.forEach((t=>{t.dataset.visIndex=t.classList.contains("js-count")?++this.visCount:this.visCount})),this.winOffsetTop=window.pageYOffset}bindEvents(){this.onScrollHandler(),window.addEventListener("resize",this.onResizeHandler.bind(this)),window.addEventListener("scroll",this.onScrollHandler.bind(this));const t=window.location.hash;this.navItems.forEach(((e,i)=>{e.getAttribute("href").indexOf("#")>-1&&(e.dataset.navIndex=i,e.addEventListener("click",this.onNavItemClickEvent.bind(this))),t&&e.getAttribute("href").indexOf(t)>-1&&(e.parentNode.classList.remove(this.classes.isOn),e.click())}))}onNavItemClickEvent(e){e.preventDefault();const i=e.target,s=i.parentNode;if(!this.el.classList.contains("hold")&&!s.classList.contains(this.classes.isOn)){this.navItems.forEach((t=>{t.parentNode.classList.remove(this.classes.isOn)})),s.classList.contains(this.classes.isOn)||s.classList.add(this.classes.isOn);const e=i.dataset.navIndex;let n=0;if("nav"===i.dataset.type){const i=this.navDests[e],s=i.getBoundingClientRect(),a=parseInt(window.getComputedStyle(i).paddingTop),r=(window.innerHeight-(s.height-a)+t.getNavHeight())/2;if(i.classList.contains("js-nav-center")){n=this.winOffsetTop+s.top+a-r}else{n=this.winOffsetTop+s.top-t.getNavHeight()}n<150&&(n=0),this.el.classList.add("hold"),GALAXY.setSmoothScrollTop(n,1500,(()=>{this.el.classList.contains("hold")&&this.el.classList.remove("hold"),GALAXY.header&&GALAXY.header.resetSubNav()}))}else{n=this.visSections[e].dataset.rectTop,n<150&&(n=0),this.el.classList.add("hold"),GALAXY.setSmoothScrollTop(n,1500,(()=>{this.el.classList.contains("hold")&&this.el.classList.remove("hold"),GALAXY.header&&GALAXY.header.resetSubNav()}))}}}onScrollHandler(){this.winOffsetTop=window.pageYOffset;var e=(window.innerHeight+t.getNavHeight())/2;this.visSections.forEach((t=>{var i,s,n=t.getBoundingClientRect();if(t.dataset.rectTop&&t.dataset.rectBottom?(i=JSON.parse(t.dataset.rectTop),s=JSON.parse(t.dataset.rectBottom)):(i=this.winOffsetTop+n.top,s=this.winOffsetTop+n.bottom),!this.el.classList.contains("hold")&&this.winOffsetTop+e>=i&&this.winOffsetTop+e<=s){var a=t.dataset.visIndex;this.navItems.forEach(((t,e)=>{e!=a&&t.parentNode.classList.contains(this.classes.isOn)&&t.parentNode.classList.remove(this.classes.isOn)}));var r=this.navItems[a].parentNode;r.classList.contains(this.classes.isOn)||(r.classList.add(this.classes.isOn),!this.el.classList.contains("hold")&&r.classList.contains(this.classes.isOn)&&GALAXY.header&&GALAXY.header.resetSubNav())}}))}onResizeHandler(){t.winSize().w!==this.winWidth&&(this.winWidth=t.winSize().w,null==this.opts.resizeStart&&(this.opts.resizeStart=this.winWidth,this.resizeAnimateFunc()),window.clearTimeout(this.resizeEndTime),this.resizeEndTime=window.setTimeout(this.resizeEndFunc.bind(this),150))}resizeAnimateFunc(){this.onScrollHandler(),this.resizeRequestFrame=t.requestAFrame.call(window,this.resizeAnimateFunc.bind(this))}resizeEndFunc(){this.opts.resizeStart=null,t.cancelAFrame.call(window,this.resizeRequestFrame)}}}(),function(){"use strict";window.BUDS=window.BUDS||{};BUDS.ImageTab=class{constructor(t,e={}){this.opts={currentIndex:0,...e},this.selector={section:t,tabList:".common__tab-list",tab:".common__tab-cta",tabPanel:".common__tab-panel",...e.selector},this.class={isActive:"is-active",featureHide:"is-feature-hide",...e.class},this.el={section:document.querySelector(this.selector.section)||null},this.events={click:this.onClickHandler.bind(this)},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.bindEvents())}setElements(){this.el.tabs=this.el.section.querySelectorAll(this.selector.tab),this.el.tabPanels=this.el.section.querySelectorAll(this.selector.tabPanel)}bindEvents(){Array.from(this.el.tabs).forEach(((t,e)=>{t.addEventListener("click",(t=>this.events.click(t,e)))}))}onClickHandler(t,e){this.opts.currentIndex=e,Array.from(this.el.tabs).forEach(((t,e)=>{this.opts.currentIndex===e&&this.setActive(t,e),this.opts.currentIndex!==e&&this.setInactive(t,e)}))}setActive(t,e){this.addClass(t),t.setAttribute("aria-selected",!0),this.addClass(this.el.tabPanels[e]),this.el.tabPanels[e].setAttribute("aria-hidden",!1),this.el.tabPanels[e].removeAttribute("tabindex"),this.el.tabPanels[e].style.zIndex=1}setInactive(t,e){this.el.tabPanels[e].classList.contains(this.class.isActive)&&(this.removeClass(t),t.setAttribute("aria-selected",!1),this.el.tabPanels[e].setAttribute("aria-hidden",!0),this.el.tabPanels[e].setAttribute("tabindex",-1),this.el.tabPanels[e].style.zIndex="",setTimeout((()=>{this.opts.currentIndex!==e&&(this.removeClass(this.el.tabPanels[e]),this.el.tabPanels[e].style.zIndex=-1)}),300))}addClass(t){t.classList.add(this.class.isActive)}removeClass(t){t.classList.remove(this.class.isActive)}}}(),function(){"use strict";window.BUDS=window.BUDS||{};BUDS.UTILS;BUDS.CommonVideo=class{constructor(t,e){this.opts={useController:!1,controlTagging:{play:"movi-play",pause:"movi-pause"},...e},this.selector={section:t,videoElement:".video__container"},this.class={featureHide:"is-feature-hide"},this.el={section:document.querySelector(this.selector.section)||null,videoElement:null,videoPlayer:null},this.events={},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.buildVideoPlayer())}setElements(){this.el.videoElement=this.el.section.querySelector(this.selector.videoElement)}buildVideoPlayer(){this.el.videoPlayer={instance:null,build:()=>{null===this.el.videoPlayer.instance&&(this.el.videoPlayer.instance=new BUDS.VideoPlayer(this.el.videoElement,{sectionElement:this.selector.section,playType:"reverse",on:{updateController:t=>{if(!this.opts.useController)return;let e=t.playState?"pause":"play";const i=t.el,s=this.opts.controlTagging;if(i){i.setAttribute("data-omni",`${s[e]}:#`),i.setAttribute("an-la",`${s[e]}:#`);const t=i.querySelector(".blind");t&&("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI&&void 0!==LOCAL_VARI[e]&&LOCAL_VARI[e]?t.innerText=LOCAL_VARI[e]:t.innerText=e)}}}}))}},this.el.videoPlayer.build()}}}(),function(){"use strict";window.BUDS=window.BUDS||{};const t=BUDS.UTILS;BUDS.ScrollToggle=class{constructor(t,e){this.opts={direction:"reverse",motionStart:0,...e},this.selector={section:t,wrap:"#wrap",target:".charging__content",...e.selector},this.class={scrollEffect:"scroll-effect",featureHide:"is-feature-hide",...e.class},this.el={wrap:document.querySelector(this.selector.wrap)||null,section:document.querySelector(this.selector.section)||null},this.events={load:this.onLoadHandler.bind(this),scroll:this.onScrollHandler.bind(this)},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.bindEvents())}setElements(){this.el.target=this.el.section.querySelector(this.selector.target)}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("scroll",this.events.scroll)}onLoadHandler(){this.events.scroll(),window.removeEventListener("load",this.events.load)}onScrollHandler(){const e=t.getNavHeight(),i=scrollY+e,s=scrollY+window.innerHeight,n=(window.innerHeight-e)*this.opts.motionStart,a=i+n,r=scrollY+window.innerHeight-n,o=this.el.target.getBoundingClientRect(),l=scrollY+o.top,h=scrollY+o.bottom;0!=this.opts.direction&&"oneWay"!=this.opts.direction||(r>=l&&a<=h||a<=h&&r>=l?this.el.target.classList.add(this.class.scrollEffect):s=l&&a<=h||a<=h&&r>=l?this.el.target.classList.add(this.class.scrollEffect):(sh)&&this.el.target.classList.remove(this.class.scrollEffect))}}}(),function(){"use strict";window.BUDS=window.BUDS||{};const t=BUDS.UTILS;BUDS.HighlightCarousel=class{constructor(t,e={}){this.opts={currDevice:null,prevDevice:null,resizeTimeout:null,clickTimeout:null,focusMoveTimeout:null,tagging:{pagination:{"data-omni-type":"microsite_pcontentinter","data-omni":"gbuds:highlights:catch-the-highlights^design:sldr-dots","an-ca":"indication","an-ac":"carousel","an-la":"gbuds:highlights:catch-the-highlights^design:sldr-dots"},navigation:{"data-omni-type":"microsite_pcontentinter","data-omni":"gbuds:highlights:catch-the-highlights:sldr-arrow:","an-ca":"indication","an-ac":"carousel","an-la":"gbuds:highlights:catch-the-highlights:sldr-arrow:"}},taggingIdList:["design","sound","anc"],prevIndex:-1,activeIndex:0,videoCanPlay:!0,videoAnimationFrame:null,videoCircleSize:266,isFocusPrevArrow:!1,isFocusNextArrow:!1,isCarouselAutoPlay:!0,isVideoAutoPlay:!0,isBlindAutoPlay:!1,prevState:!0,startX:0,startY:0,endX:0,endY:0,isPointerMoving:!1,...e},this.selector={section:t,frontSlider:".front-slider",backSlider:".background-slider",swiper:".swiper",swiperSlide:".swiper-slide",swiperSlideTitle:".wearable-common__carousel-tit",swiperPrevArrow:".wearable-common__carousel-prev",swiperNextArrow:".wearable-common__carousel-next",swiperPagination:".wearable-common__carousel-pagination",swiperScrollbar:".swiper-scrollbar",videoContainer:".video__container",videoController:".video__controller",blindController:".js-blind-controller"},this.class={featureHide:"is-feature-hide"},this.el={section:document.querySelector(this.selector.section)||null,frontSlider:null,frontSwiper:null,frontSwiperEl:null,frontSwiperSlides:null,backSlider:null,backSwiper:null,backSwiperEl:null,swiperPrevArrow:null,swiperNextArrow:null,swiperPagination:null,swiperScrollbar:null,videoContainers:null,videoControllers:null,blindController:null},this.events={load:this.onLoadHandler.bind(this),scroll:this.onScrollHandler.bind(this),resize:this.onResizeHandler.bind(this),prevArrow:{click:this.onClickPrevArrow.bind(this),keyDown:this.onKeyDownPrevArrow.bind(this),focusin:this.onFocusinPrevArrow.bind(this),focusout:this.onFocusoutPrevArrow.bind(this)},nextArrow:{click:this.onClickNextArrow.bind(this),keyDown:this.onKeyDownNextArrow.bind(this),focusin:this.onFocusinNextArrow.bind(this),focusout:this.onFocusoutNextArrow.bind(this)},controller:{click:this.onClickControllButton.bind(this)},blindController:{click:this.onClickBlindController.bind(this)},click:{down:this.onClickDownHandler.bind(this),up:this.onClickUpHandler.bind(this)}},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.setVideoPlayer(),this.setSwiper(),this.bindEvents())}setElements(){this.el.frontSlider=this.el.section.querySelector(this.selector.frontSlider),this.el.frontSwiperEl=this.el.frontSlider.querySelector(this.selector.swiper),this.el.frontSwiperSlides=this.el.frontSlider.querySelectorAll(this.selector.swiperSlide),this.el.swiperPrevArrow=this.el.frontSlider.querySelector(this.selector.swiperPrevArrow),this.el.swiperNextArrow=this.el.frontSlider.querySelector(this.selector.swiperNextArrow),this.el.swiperPagination=this.el.frontSlider.querySelector(this.selector.swiperPagination),this.el.swiperScrollbar=this.el.frontSlider.querySelector(this.selector.swiperScrollbar),this.el.blindController=this.el.frontSlider.querySelector(this.selector.blindController),this.el.backSlider=this.el.section.querySelector(this.selector.backSlider),this.el.backSwiperEl=this.el.backSlider.querySelector(this.selector.swiper),this.el.videoContainers=this.el.section.querySelectorAll(this.selector.videoContainer),this.el.videoControllers=this.el.section.querySelectorAll(this.selector.videoController)}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("scroll",this.events.scroll),window.addEventListener("resize",this.events.resize),this.el.frontSwiperEl.addEventListener("mousedown",this.events.click.down),this.el.frontSwiperEl.addEventListener("mouseup",this.events.click.up),this.el.frontSwiperEl.addEventListener("touchstart",this.events.click.down),this.el.frontSwiperEl.addEventListener("touchend",this.events.click.up),Array.from(this.el.videoControllers).forEach((t=>{t.addEventListener("click",this.events.controller.click)})),this.el.blindController.addEventListener("click",this.events.blindController.click)}onLoadHandler(){this.events.resize(),this.events.scroll(),window.removeEventListener("load",this.events.load)}onResizeHandler(){this.opts.currDevice=innerWidth>767?"desktop":"mobile",this.opts.currDevice!==this.opts.prevDevice&&(this.opts.activeIndex=0,this.opts.videoCanPlay=!0,clearTimeout(this.opts.resizeTimeout),this.opts.resizeTimeout=setTimeout((()=>{this.opts.videoCanPlay=!0,this.events.scroll(),this.onResponsiveChange()}),150),this.opts.prevDevice=this.opts.currDevice)}onResponsiveChange(){this.resetVideo(),this.setSwiper()}onScrollHandler(){const e=this.el.frontSwiperEl.getBoundingClientRect(),i=e.height,s=.15*e.height,n=scrollY,a=n+innerHeight,r=n+e.top,o=n+e.bottom;if(a>=r+i&&n+t.getNavHeight()<=o-s){if(!this.opts.videoCanPlay)return;this.opts.videoCanPlay=!1;const t=this.el.frontSwiperSlides[this.opts.activeIndex].querySelector(this.selector.videoContainer);t&&this.playVideo(t)}else if(ao-s){if(this.opts.videoCanPlay)return;this.onFocusoutNextArrow(),this.onFocusoutPrevArrow(),this.opts.videoCanPlay=!0,this.resetVideo(!0)}}setSwiper(){this.destroyFrontSwiper(),this.setFrontSwiper(),this.destroyBackSwiper(),this.setBackSwiper()}setFrontSwiper(){if(null!==this.el.frontSwiper)return;const t=this;this.el.frontSwiper=new Swiper(this.el.frontSwiperEl,{init:!1,a11y:!1,speed:400,allowTouchMove:!0,centeredSlides:!0,centeresSlidesBounds:!0,slidesPerView:"auto",navigation:{nextEl:t.el.swiperNextArrow,prevEl:t.el.swiperPrevArrow},scrollbar:{el:t.el.swiperScrollbar,draggable:!0},pagination:{el:t.el.swiperPagination,bulletActiveClass:"is-active",renderBullet:function(e){const i=t.opts.tagging.pagination,s=t.opts.taggingIdList[e];return`\n\n`}}}),this.el.frontSwiper.on("transitionEnd",(function(){if(this.slides[this.activeIndex].classList.contains("js-active-slide"))return;if(t.opts.activeIndex=this.activeIndex,t.resetVideo(),t.opts.videoCanPlay)return;const e=this.slides[this.activeIndex].querySelector(t.selector.videoContainer);e&&t.playVideo(e),t.setSwiperActiveClass.call(this)})),this.el.frontSwiper.on("scrollbarDragEnd",(function(){if(t.opts.isCarouselAutoPlay=!1,this.slides[this.activeIndex].classList.contains("js-active-slide"))return;if(t.opts.activeIndex=this.activeIndex,t.resetVideo(),t.opts.videoCanPlay)return;const e=this.slides[this.activeIndex].querySelector(t.selector.videoContainer);e&&t.playVideo(e),t.setSwiperActiveClass.call(this)})),this.el.frontSwiper.on("snapIndexChange",(function(){t.setNavigationDisabled()})),this.el.frontSwiper.on("slideChange",(function(){t.opts.activeIndex=this.activeIndex,t.setSlideA11y(),t.setNavigationDisabled(),t.setPaginationLabel();const e=this.slides[this.activeIndex].querySelector(t.selector.videoContainer).querySelector(t.selector.videoController);t.opts.isCarouselAutoPlay&&(clearTimeout(t.opts.focusMoveTimeout),t.opts.focusMoveTimeout=setTimeout((()=>{e&&e.focus()}),300)),t.opts.activeIndex===this.slides.length-1&&(t.opts.isCarouselAutoPlay=!1),null!==t.el.backSwiper&&t.el.backSwiper.slideTo(this.realIndex)})),this.el.frontSwiper.on("init",(function(){t.opts.activeIndex=this.activeIndex,t.setSlideA11y(),t.setNavigationLabel(),t.setPaginationLabel(),t.setNavigationDisabled(),t.el.swiperPrevArrow.addEventListener("click",t.events.prevArrow.click),t.el.swiperNextArrow.addEventListener("click",t.events.nextArrow.click),t.el.swiperPrevArrow.addEventListener("keydown",t.events.prevArrow.keyDown),t.el.swiperNextArrow.addEventListener("keydown",t.events.nextArrow.keyDown),t.el.swiperPrevArrow.addEventListener("focusin",t.events.prevArrow.focusin),t.el.swiperNextArrow.addEventListener("focusin",t.events.nextArrow.focusin),t.el.swiperPrevArrow.addEventListener("focusout",t.events.prevArrow.focusout),t.el.swiperNextArrow.addEventListener("focusout",t.events.nextArrow.focusout);const e=this,i=e.pagination.bullets;Array.from(i).forEach(((t,i)=>{t.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.slideTo(i)}))}))})),this.el.frontSwiper.init()}destroyFrontSwiper(){null!==this.el.frontSwiper&&(this.el.swiperPrevArrow.removeEventListener("click",this.events.prevArrow.click),this.el.swiperNextArrow.removeEventListener("click",this.events.nextArrow.click),this.el.swiperPrevArrow.removeEventListener("keydown",this.events.prevArrow.keyDown),this.el.swiperNextArrow.removeEventListener("keydown",this.events.nextArrow.keyDown),this.el.frontSwiper.destroy(!0,!0),this.el.frontSwiper=null)}setBackSwiper(){null===this.el.backSwiper&&(this.el.backSwiper=new Swiper(this.el.backSwiperEl,{init:!1,a11y:!1,speed:600,allowTouchMove:!1,centeredSlides:!0,centeresSlidesBounds:!0,slidesPerView:"auto"}),this.el.backSwiper.on("init",(function(){Array.from(this.slides).forEach((t=>{t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")}))})),this.el.backSwiper.init())}destroyBackSwiper(){null!==this.el.backSwiper&&(this.el.backSwiper.destroy(!0,!0),this.el.backSwiper=null)}slideTo(t=300){null!==this.el.frontSwiper&&this.el.frontSwiper.slideTo(this.opts.activeIndex,t)}setSwiperActiveClass(){Array.from(this.slides).forEach(((t,e)=>{this.activeIndex!==e?t.classList.remove("js-active-slide"):t.classList.add("js-active-slide")}))}setSlideA11y(){if(null===this.el.frontSwiper)return;const t=this.el.frontSwiper,e=t.slides,i=t.activeIndex;Array.from(e).forEach(((t,e)=>{const s=t.querySelectorAll("a, button, input, select, iframe");i===e?(t.setAttribute("aria-hidden",!1),s.length>0&&s.forEach((t=>{t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex")}))):(t.setAttribute("aria-hidden",!0),s.length>0&&s.forEach((t=>{t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")})))}))}setNavigationLabel(){const t=this.opts.tagging.navigation;if("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI){const t=void 0!==LOCAL_VARI.previous&&LOCAL_VARI.previous?LOCAL_VARI.previous:"Previous",e=void 0!==LOCAL_VARI.next&&LOCAL_VARI.next?LOCAL_VARI.next:"Next";this.el.swiperPrevArrow.querySelector(".blind").innerText=t,this.el.swiperNextArrow.querySelector(".blind").innerText=e}else this.el.swiperPrevArrow.querySelector(".blind").innerText="Previous",this.el.swiperNextArrow.querySelector(".blind").innerText="Next";Object.keys(t).forEach((e=>{"data-omni"===e||"an-la"===e?this.el.swiperPrevArrow.setAttribute(e,`${t[e]}left`):this.el.swiperPrevArrow.setAttribute(e,t[e])})),Object.keys(t).forEach((e=>{"data-omni"===e||"an-la"===e?this.el.swiperNextArrow.setAttribute(e,`${t[e]}right`):this.el.swiperNextArrow.setAttribute(e,t[e])}))}setNavigationDisabled(){if(null===this.el.frontSwiper)return;const t=this.el.frontSwiper;0===t.activeIndex&&t.activeIndex0&&t.activeIndex===t.slides.length-1?(this.el.swiperPrevArrow.disabled=!1,this.el.swiperNextArrow.disabled=!0,this.offA11y(this.el.swiperPrevArrow),this.onA11y(this.el.swiperNextArrow)):t.activeIndex>0&&t.activeIndex{const n=e[i].querySelector(this.selector.swiperSlideTitle)?.innerText??"";if("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI){const e=void 0!==LOCAL_VARI.slide&&LOCAL_VARI.slide?LOCAL_VARI.slide:"Slide",a=void 0!==LOCAL_VARI.selected&&LOCAL_VARI.selected?LOCAL_VARI.selected:"selected";s===i?t.setAttribute("aria-label",`${e}${i+1}: ${n} ${a}`):t.setAttribute("aria-label",`${e}${i+1}: ${n}`)}else s===i?t.setAttribute("aria-label",`Slide${i+1}: ${n} selected`):t.setAttribute("aria-label",`Slide${i+1}: ${n}`)}))}onA11y(t){const e=t.querySelectorAll("a, button, input, select, iframe");t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1");for(var i=0;i{this.el.frontSwiper.isBeginning&&this.el.swiperNextArrow.focus()}),100),this.opts.isCarouselAutoPlay=!1)}onClickNextArrow(){clearTimeout(this.opts.clickTimeout),this.opts.clickTimeout=setTimeout((()=>{this.el.frontSwiper.isEnd&&this.el.swiperPrevArrow.focus()}),100),this.opts.isCarouselAutoPlay=!1}onKeyDownPrevArrow(t){"enter"===t.key.toLowerCase()&&this.onClickPrevArrow()}onKeyDownNextArrow(t){"enter"===t.key.toLowerCase()&&this.onClickNextArrow()}onFocusinPrevArrow(){this.opts.isFocusPrevArrow=!0}onFocusinNextArrow(){this.opts.isFocusNextArrow=!0}onFocusoutPrevArrow(){this.el.frontSwiper.isBeginning&&this.opts.isFocusPrevArrow&&this.onClickPrevArrow(),this.opts.isFocusPrevArrow=!1}onFocusoutNextArrow(){this.el.frontSwiper.isEnd&&this.opts.isFocusNextArrow&&this.onClickNextArrow(),this.opts.isFocusNextArrow=!1}onClickControllButton(){this.opts.isCarouselAutoPlay&&(this.opts.isCarouselAutoPlay=!1),this.opts.isVideoAutoPlay=!this.opts.isVideoAutoPlay}onClickBlindController(){const t=this.el.frontSwiperSlides[this.opts.activeIndex].querySelector(this.selector.videoContainer);this.opts.isVideoAutoPlay=!this.opts.isVideoAutoPlay,this.opts.isVideoAutoPlay?this.el.videoPlayer.pause(t):this.el.videoPlayer.play(t),this.opts.isBlindAutoPlay=!0,this.opts.isCarouselAutoPlay=!1}onClickDownHandler(t){this.opts.isPointerMoving||(this.opts.isPointerMoving=!0,this.opts.startX=0,this.opts.endX=0,this.opts.startX=this.getMovePointerX(t))}onClickUpHandler(t){if(!this.opts.isPointerMoving)return;this.opts.isPointerMoving=!1,this.opts.endX=this.getMovePointerX(t);const e="mobile"!==this.opts.currDevice?80:50;this.el.frontSwiper&&Math.abs(this.opts.startX-this.opts.endX)>e&&(this.opts.isCarouselAutoPlay=!1)}getMovePointerX(t){return t.touches&&t.touches.length>0?t.touches[0].clientX:t.changedTouches&&t.changedTouches.length>0?t.changedTouches[0].clientX:t.clientX}setVideoPlayer(){this.el.videoPlayer={instance:[],load:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onLoad(t)}))},reset:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onReset(t)}))},play:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onPlay(t)}))},pause:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onPause(t)}))},ended:t=>{this.el.videoPlayer.instance.length&&this.el.videoPlayer.instance.forEach((e=>{e.onEnded(t)}))},init:()=>{this.el.videoPlayer.instance.length||0===this.el.videoContainers.length||this.el.videoContainers.forEach(((t,e)=>{this.el.videoPlayer.instance.push(new BUDS.VideoPlayer(t,{sectionElement:this.selector.section,playType:"others",on:{updateController:i=>{let s=i.playState?"pause":"play";const n=i.el,a=this.opts.taggingIdList[e];n.setAttribute("data-omni",`gbuds:highlights:catch-the-highlights^${a}:movi-${s}:#`),n.setAttribute("an-la",`gbuds:highlights:catch-the-highlights^${a}:movi-${s}:#`);const r=n.querySelector(".blind");r&&("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI&&void 0!==LOCAL_VARI[s]&&LOCAL_VARI[s]?(r.innerText=LOCAL_VARI[s],s!==this.opts.prevState&&(this.el.blindController.innerText=LOCAL_VARI[s],this.opts.prevState=s)):(r.innerText=s,s!==this.opts.prevState&&(this.el.blindController.innerText=s,this.opts.prevState=s))),i.playState&&this.playProgress(t)}}}))}))}},this.el.videoPlayer.init()}playVideo(e){const i=()=>{e.classList.contains("loaded")?(cancelAnimationFrame(this.opts.videoAnimationFrame),t.isLowNetwork()||!this.opts.isBlindAutoPlay&&this.opts.isVideoAutoPlay&&this.el.videoPlayer.play(e)):this.opts.videoAnimationFrame=requestAnimationFrame(i)};this.opts.videoAnimationFrame=requestAnimationFrame(i)}resetVideo(t=!1){if(null===this.el.frontSwiper)return;const e=this.el.frontSwiper,i=e.slides;t?Array.from(i).forEach((t=>{const e=t.querySelector(this.selector.videoContainer);this.el.videoPlayer.reset(e),this.resetProgress(e)})):Array.from(i).forEach(((t,i)=>{const s=t.querySelector(this.selector.videoContainer);i!==e.activeIndex&&s&&(this.el.videoPlayer.reset(s),this.resetProgress(s))}))}playProgress(e){let i=this.opts.videoCircleSize;const s=e.querySelector("video"),n=s.duration,a=e.querySelector(".video__controller").querySelector(".progress-icon"),r=a.querySelector(".draw-line"),o=()=>{if(a&&n){if(!s.paused&&!s.ended){const t=s.currentTime/n*100;let e=this.opts.videoCircleSize*(100-t)/100;e=e<8?0:e,e=a+s&&e<=r){const t=(i.top+s-window.innerHeight)/(i.height-s-(i.height-n))*-100;this.opts.progress=this.opts.useInteger?Math.round(t):t}else er&&(this.opts.progress=100);this.opacityMotion(),this.opts.progress!==this.opts.prevress&&(this.opts.prevress=this.opts.progress)}opacityMotion(){let t=.01*this.opts.progress;this.el.target.style.opacity=t}}}(),function(){"use strict";window.BUDS=window.BUDS||{};BUDS.NewDesign=class{constructor(t,e={}){this.opts={currentIndex:0},this.selector={section:t,tabList:".common__tab-list",tab:".common__tab-cta",tabPanel:".common__tab-panel",tabCTAText:".tab-cta__text",...e.selector},this.class={isActive:"is-active",featureHide:"is-feature-hide",...e.class},this.el={section:document.querySelector(this.selector.section)||null},this.events={click:this.onClickHandler.bind(this)},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.bindEvents())}setElements(){this.el.tabs=this.el.section.querySelectorAll(this.selector.tab),this.el.tabPanels=this.el.section.querySelectorAll(this.selector.tabPanel),this.el.tabCTATexts=this.el.section.querySelectorAll(this.selector.tabCTAText)}bindEvents(){Array.from(this.el.tabs).forEach(((t,e)=>{t.addEventListener("click",(t=>this.events.click(t,e)))}))}onClickHandler(t,e){this.opts.currentIndex=e,Array.from(this.el.tabs).forEach(((t,e)=>{this.opts.currentIndex===e&&this.setActive(t,e),this.opts.currentIndex!==e&&this.setInactive(t,e)}))}setActive(t,e){this.addClass(this.el.tabCTATexts[e]),this.addClass(t),t.setAttribute("aria-selected",!0),this.addClass(this.el.tabPanels[e]),this.el.tabPanels[e].setAttribute("aria-hidden",!1),this.el.tabPanels[e].style.zIndex=5}setInactive(t,e){this.el.tabPanels[e].classList.contains(this.class.isActive)&&(this.removeClass(this.el.tabCTATexts[e]),this.removeClass(t),t.setAttribute("aria-selected",!1),this.el.tabPanels[e].setAttribute("aria-hidden",!0),this.el.tabPanels[e].style.zIndex="",setTimeout((()=>{this.opts.currentIndex!==e&&this.removeClass(this.el.tabPanels[e])}),300))}addClass(t){t.classList.add(this.class.isActive)}removeClass(t){t.classList.remove(this.class.isActive)}}}(),function(){"use strict";window.BUDS=window.BUDS||{};const t=BUDS.UTILS;BUDS.Intuitive=class{constructor(t,e={}){this.opts={currDevice:"desktop",prevDevice:null,prevIndex:null,currentIndex:0,isPlaying:!1},this.selector={section:t,tabList:".common__tab-list",tab:".common__tab-cta",tabPanels:".common__tab-panels",tabPanel:".common__tab-panel",videoContainer:".video__container",videoController:".video__controller",play:".play",pause:".pause",...e.selector},this.class={featureHide:"is-feature-hide",isActive:"is-active",tabPanel:"common__tab-panel",loaded:"loaded",ended:"ended",paused:"paused",playing:"playing",isPaused:"is-paused",videoController:"video__controller",...e.class},this.el={section:document.querySelector(this.selector.section)||null},this.tagging={swipe:{play:"gbuds:highlights:design^swipe:movi-play:#",pause:"gbuds:highlights:design^swipe:movi-pause:#"},pinch:{play:"gbuds:highlights:design^pinch:movi-play:#",pause:"gbuds:highlights:design^pinch:movi-pause:#"}},this.events={load:this.onLoadHandler.bind(this),canplaythrough:this.onCanplaythrough.bind(this),click:this.onClickHandler.bind(this),scroll:this.onScrollHandler.bind(this),resize:this.onResizeHandler.bind(this)},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.initVideoPlayer(),this.bindEvents())}setElements(){this.el.tabs=this.el.section.querySelectorAll(this.selector.tab),this.el.tabPanelWrapper=this.el.section.querySelector(this.selector.tabPanels),this.el.tabPanels=this.el.section.querySelectorAll(this.selector.tabPanel),this.el.videoContainers=this.el.section.querySelectorAll(this.selector.videoContainer),this.el.videoControllers=this.el.section.querySelectorAll(this.selector.videoController),this.el.videos=this.el.section.querySelectorAll("video")}bindEvents(){window.addEventListener("load",this.events.load),Array.from(this.el.tabs).forEach(((t,e)=>{t.addEventListener("click",(t=>this.events.click(t,e)))})),window.addEventListener("resize",this.events.resize)}onLoadHandler(){this.el.videoContainers[this.opts.currentIndex].querySelector("video").addEventListener("canplaythrough",this.events.canplaythrough,{once:!0}),window.removeEventListener("load",this.events.load)}onCanplaythrough(e){t.isLowNetwork()||(this.events.scroll(),window.addEventListener("scroll",this.events.scroll))}onResizeHandler(){this.opts.currDevice=innerWidth>767?"desktop":"mobile",this.opts.currDevice!==this.opts.prevDevice&&(this.onResponsiveChange(),this.opts.prevDevice=this.opts.currDevice)}onResponsiveChange(){t.isLowNetwork()||this.events.scroll()}onClickHandler(t,e){this.opts.prevIndex=this.opts.currentIndex,this.opts.currentIndex=e,this.opts.prevIndex!==this.opts.currentIndex&&(Array.from(this.el.tabs).forEach(((t,i)=>{e===i&&this.setActive(t,i),e!==i&&this.setInactive(t,i)})),this.opts.isPlaying=!0)}onScrollHandler(){const t=window.scrollY,e=this.el.videoContainers[this.opts.currentIndex],i=.5*e.getBoundingClientRect().height,s=t,n=t+window.innerHeight,a=s+e.getBoundingClientRect().top,r=s+e.getBoundingClientRect().bottom;if(n>a+i&&s{e.classList.contains(this.class.playing)?(cancelAnimationFrame(this.opts.videoPlayTime),this.videoPlayer.play(e),this.opts.isPlaying=!0):(this.opts.videoPlayTime=requestAnimationFrame(t),this.videoPlayer.play(e),this.opts.isPlaying=!0)};this.opts.videoPlayTime=requestAnimationFrame(t)}else if(nr){if(0==this.opts.isPlaying)return;this.videoPlayer.reset(e),this.opts.isPlaying=!1}}setActive(e,i){this.addClass(e),e.setAttribute("aria-selected",!0),this.addClass(this.el.tabPanels[i]),this.el.tabPanels[i].setAttribute("aria-hidden",!1),this.el.tabPanels[i].style.zIndex=5,this.el.videoControllers.length>0&&this.el.videoControllers[i].removeAttribute("tabindex"),t.isLowNetwork()||(this.videoPlayer.play(this.el.videoContainers[i]),this.opts.isPlaying=!0)}setInactive(t,e){this.el.tabPanels[e].classList.contains(this.class.isActive)&&(this.removeClass(t),t.setAttribute("aria-selected",!1),this.el.tabPanels[e].setAttribute("aria-hidden",!0),this.el.tabPanels[e].style.zIndex="",this.el.videoControllers.length>0&&this.el.videoControllers[e].setAttribute("tabindex",-1),setTimeout((()=>{this.opts.currentIndex!==e&&(this.removeClass(this.el.tabPanels[e]),this.videoPlayer.reset(this.el.videoContainers[e]))}),300))}addClass(t){t.classList.add(this.class.isActive)}removeClass(t){t.classList.remove(this.class.isActive)}setControllerLocalVari(t){const e=t.querySelector(this.selector.play),i=t.querySelector(this.selector.pause);e.setAttribute("alt",LOCAL_VARI.play),i.setAttribute("alt",LOCAL_VARI.pause)}initVideoPlayer(){this.videoPlayer={instance:[],load:t=>{this.videoPlayer.instance.length&&this.videoPlayer.instance.forEach((e=>{e.onLoad(t)}))},reset:t=>{this.videoPlayer.instance.length&&this.videoPlayer.instance.forEach((e=>{e.onReset(t)}))},play:t=>{this.videoPlayer.instance.length&&this.videoPlayer.instance[this.opts.currentIndex].onPlay(t)},pause:t=>{this.videoPlayer.instance.length&&this.videoPlayer.instance[this.opts.currentIndex].onPause(t)},ended:t=>{this.videoPlayer.instance.length&&this.videoPlayer.instance[this.opts.currentIndex].onEnded(t)},init:()=>{this.videoPlayer.instance.length||this.el.videoContainers.forEach((t=>{t.closest(this.class.tabPanel);const e=t.querySelector(this.selector.videoController);e&&this.setControllerLocalVari(e),this.videoPlayer.instance.push(new BUDS.VideoPlayer(t,{sectionElement:this.selector.section,on:{updateController:t=>{if(e){const e=t.playState?"pause":"play",i=t.el,s=i.dataset.tagging;i.setAttribute("data-omni",`${this.tagging[s][e]}:#`),i.setAttribute("an-la",`${this.tagging[s][e]}:#`);const n=i.querySelector(".blind");n&&("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI&&void 0!==LOCAL_VARI[e]&&LOCAL_VARI[e]?n.innerText=LOCAL_VARI[e]:n.innerText=e)}}}}))}))}},this.videoPlayer.init()}}}(),function(){"use strict";window.BUDS=window.BUDS||{};const t=BUDS.UTILS;BUDS.Amplifier=class{constructor(t,e){this.opts={...e},this.selector={section:t,wrap:"#wrap",target:".charging__content",...e.selector},this.class={frame01:"frame01",frame02:"frame02",featureHide:"is-feature-hide",...e.class},this.el={wrap:document.querySelector(this.selector.wrap)||null,section:document.querySelector(this.selector.section)||null},this.events={load:this.onLoadHandler.bind(this),scroll:this.onScrollHandler.bind(this)},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.bindEvents())}setElements(){this.el.target=this.el.section.querySelector(this.selector.target)}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("scroll",this.events.scroll)}onLoadHandler(){this.events.scroll(),window.removeEventListener("load",this.events.load)}onScrollHandler(){let e=0;const i=t.getNavHeight(),s=scrollY+i,n=scrollY+window.innerHeight,a=s,r=scrollY+window.innerHeight,o=this.el.target.getBoundingClientRect(),l=scrollY+o.top,h=scrollY+o.bottom;(r>=l&&a<=h||a<=h&&r>=l)&&(e=(o.top-window.innerHeight)/o.height*-100),e>=50&&e<80?this.el.target.classList.add(this.class.frame01):e>=80?(this.el.target.classList.add(this.class.frame01),this.el.target.classList.add(this.class.frame02)):n{this.opts.currentIndex===e&&this.setActive(t,e),this.opts.currentIndex!==e&&this.setInactive(t,e)}))}bindEvents(){Array.from(this.el.tabs).forEach(((t,e)=>{t.addEventListener("click",(t=>this.events.click(t,e)))}))}onClickHandler(t,e){this.opts.currentIndex=e,Array.from(this.el.tabs).forEach(((t,e)=>{this.opts.currentIndex===e&&this.setActive(t,e),this.opts.currentIndex!==e&&this.setInactive(t,e)}))}setActive(t,e){this.addClass(t),t.setAttribute("aria-selected",!0),this.addClass(this.el.tabPanels[e]),this.el.tabPanels[e].setAttribute("aria-hidden",!1),this.el.tabPanels[e].removeAttribute("tabindex"),this.el.tabPanels[e].style.zIndex=1;const i=this.el.tabPanels[e].querySelectorAll("a, button, input, select, iframe");i.length>0&&i.forEach((t=>{t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex")}))}setInactive(t,e){this.removeClass(t),t.setAttribute("aria-selected",!1),this.el.tabPanels[e].setAttribute("aria-hidden",!0),this.el.tabPanels[e].setAttribute("tabindex",-1),this.el.tabPanels[e].style.zIndex="";const i=this.el.tabPanels[e].querySelectorAll("a, button, input, select, iframe");i.length>0&&i.forEach((t=>{t.setAttribute("aria-hidden","false"),t.setAttribute("tabindex",-1)})),setTimeout((()=>{this.opts.currentIndex!==e&&(this.removeClass(this.el.tabPanels[e]),this.el.tabPanels[e].style.zIndex=-1)}),300)}addClass(t){t.classList.add(this.class.isActive)}removeClass(t){t.classList.remove(this.class.isActive)}}}(),function(){"use strict";window.BUDS=window.BUDS||{};const t=BUDS.UTILS;BUDS.Compare=class{constructor(t,e){this.opts={currDevice:"",prevDevice:"",tagging:{buyNow:{"data-omni-type":"microsite_buyAction","data-omni":"gbuds:highlights:compare:conv-pdt:buy-now|;","an-ca":"buy cta","an-ac":"buy now","an-la":"gbuds:highlights:compare:conv-pdt:buy-now"},viewMore:{"data-omni-type":"microsite_contentinter","data-omni":"gbuds:highlights:compare:slct-item:","an-ca":"content click","an-ac":"feature","an-la":"gbuds:highlights:compare:slct-item:"},navigation:{"data-omni-type":"microsite_pcontentinter","data-omni":"gbuds:highlights:compare:sldr-arrow:","an-ca":"indication","an-ac":"carousel","an-la":"gbuds:highlights:compare:sldr-arrow:"},pagination:{"data-omni-type":"microsite_pcontentinter","data-omni":"gbuds:highlights:compare:sldr-dots","an-ca":"indication","an-ac":"carousel","an-la":"gbuds:highlights:compare:sldr-dots"}},startX:0,startY:0,endX:0,endY:0,isPointerMoving:!1,filledTexts:[],...e},this.selector={section:t,arrowWrap:".compare__list-arrow",prevArrow:".compare__list-arrow-prev",nextArrow:".compare__list-arrow-next",swiperEl:".compare__container",swiperSlide:".compare__list-item",swiperScrollbar:".swiper-scrollbar",swiperPagination:".wearable-common__carousel-pagination",compareListWrap:".compare__list-wrap",compareFigure:".compare__list-figure",compareFigureItem:".compare__list-product-item",compareColors:".compare__list",compareColorItem:".compare__color",CtaWrap:".compare__cta",buyNowCta:".buy__cta",specsTable:".compare__table-wrapper",specsTableWrap:".compare__table-wrap",specsTableHeaderGroup:".compare__headergroup",specsTableHeader:".compare__header",specsTableRowGroup:".compare__rowgroup",specsTableRow:".compare__row",specsTableColumnWrap:".compare__column-wrap",specsTableName:".compare__table-specs-name",specsTableColumn:".compare__column",fillingText:".js-text-fill",navWrap:".compare__list-nav-wrap",navSticky:".compare__list-nav",navTitle:".compare__list-nav-title",viewMoreWrap:".compare__view-more-button",viewMoreButton:".view-more__cta"},this.class={featureHide:"is-feature-hide",buyNow:"buy__cta",activeFill:"js-text-active"},this.el={section:document.querySelector(this.selector.section)||null,arrowWrap:null,prevArrow:null,nextArrow:null,swiper:null,swiperEl:null,swiperSlides:null,swiperScrollbar:null,swiperPagination:null,compareListWrap:null,compareColorItems:null,specsTable:null,specsTableWrap:null,specsTableRowGroup:null,specsTableRows:null,specsTableHeaderGroup:null,specsTableHeaders:null,specsTableNames:null,fillingTexts:null,navWrap:null,navSticky:null,navTitles:null,viewMoreWrap:null,viewMoreButton:null},this.events={load:this.onLoadHandler.bind(this),nameStickyScroll:this.onNameStickyScroll.bind(this),fillTextScroll:this.onFillTextScroll.bind(this),resize:this.onResizeHandler.bind(this),colorButton:this.onClickColorButton.bind(this),prevArrow:this.onClickPrevArrow.bind(this),nextArrow:this.onClickNextArrow.bind(this),viewMore:this.onClickViewMore.bind(this),mouse:{down:this.onMouseDownHandler.bind(this),move:this.onMouseMoveHandler.bind(this),up:this.onMouseUpHandler.bind(this)},touch:{down:this.onTouchDownHandler.bind(this),move:this.onTouchMoveHandler.bind(this),up:this.onTouchUpHandler.bind(this)}},this.compare={},this.init()}init(){null===this.el.section||this.el.section.classList.contains(this.class.featureHide)||(this.setElements(),this.bindEvents())}setElements(){this.el.arrowWrap=this.el.section.querySelector(this.selector.arrowWrap),this.el.prevArrow=this.el.arrowWrap.querySelector(this.selector.prevArrow),this.el.nextArrow=this.el.arrowWrap.querySelector(this.selector.nextArrow),this.el.swiperEl=this.el.section.querySelector(this.selector.swiperEl),this.el.swiperSlides=this.el.swiperEl.querySelectorAll(this.selector.swiperSlide),this.el.swiperScrollbar=this.el.swiperEl.querySelector(this.selector.swiperScrollbar),this.el.swiperPagination=this.el.swiperEl.querySelector(this.selector.swiperPagination),this.el.compareListWrap=this.el.section.querySelector(this.selector.compareListWrap),this.el.compareColorItems=this.el.swiperEl.querySelectorAll(this.selector.compareColorItem),this.el.buyNowCtaWraps=this.el.swiperEl.querySelectorAll(this.selector.buyNowCtaWrap),this.el.specsTable=this.el.section.querySelector(this.selector.specsTable),this.el.specsTableWrap=this.el.specsTable.querySelector(this.selector.specsTableWrap),this.el.specsTableRowGroup=this.el.specsTable.querySelector(this.selector.specsTableRowGroup),this.el.specsTableRows=this.el.specsTable.querySelectorAll(this.selector.specsTableRow),this.el.specsTableHeaderGroup=this.el.specsTable.querySelector(this.selector.specsTableHeaderGroup),this.el.specsTableHeaders=this.el.specsTableHeaderGroup.querySelectorAll(this.selector.specsTableHeader),this.el.specsTableNames=this.el.specsTableRowGroup.querySelectorAll(this.selector.specsTableName),this.el.fillingTexts=this.el.section.querySelectorAll(this.selector.fillingText),this.el.navWrap=this.el.section.querySelector(this.selector.navWrap),this.el.navSticky=this.el.navWrap.querySelector(this.selector.navSticky),this.el.navTitles=this.el.navSticky.querySelectorAll(this.selector.navTitle),this.el.viewMoreWrap=this.el.section.querySelector(this.selector.viewMoreWrap),this.el.viewMoreButton=this.el.viewMoreWrap.querySelector(this.selector.viewMoreButton)}bindEvents(){window.addEventListener("load",this.events.load),window.addEventListener("scroll",this.events.nameStickyScroll),window.addEventListener("scroll",this.events.fillTextScroll),window.addEventListener("resize",this.events.resize),this.el.prevArrow.addEventListener("click",this.events.prevArrow),this.el.nextArrow.addEventListener("click",this.events.nextArrow),Array.from(this.el.compareColorItems).forEach((t=>{t.addEventListener("click",this.events.colorButton)})),this.el.viewMoreButton.addEventListener("click",this.events.viewMore)}onLoadHandler(){this.events.nameStickyScroll(),this.events.fillTextScroll(),this.events.resize(),window.removeEventListener("load",this.events.load)}onNameStickyScroll(){const e=t.getNavHeight(),i=scrollY,s=this.el.navWrap.getBoundingClientRect(),n=this.el.swiperEl.getBoundingClientRect(),a=this.el.navSticky.clientHeight,r=i+s.top,o=i+n.top,l=i+n.bottom,h=n.height-a-(r-o);i+e>=r&&i+e+a<=l?(this.el.navSticky.style.position="fixed",this.el.navSticky.style.top=`${e}px`):i+el&&(this.el.navSticky.style.position="",this.el.navSticky.style.top=`${h}px`)}onFillTextScroll(){if(this.el.fillingTexts.length===this.opts.filledTexts.length)return void window.removeEventListener("scroll",this.events.fillTextScroll);const t=.2*innerHeight,e=scrollY,i=e+innerHeight;this.el.fillingTexts.forEach((s=>{const n=s.getBoundingClientRect(),a=e+n.top,r=e+n.bottom;e+tr&&(s.classList.contains(this.class.activeFill)||(s.classList.add(this.class.activeFill),this.opts.filledTexts.push(s)))}))}onResizeHandler(){this.opts.currDevice=innerWidth>767?"desktop":"mobile",this.opts.resizeTimeout=setTimeout((()=>{this.events.nameStickyScroll(),this.events.fillTextScroll(),this.opts.currDevice!==this.opts.prevDevice&&(this.onResponsiveChange(),this.opts.prevDevice=this.opts.currDevice),null!==this.el.swiper&&this.el.swiper.update()}),150)}onResponsiveChange(){this.destroySwiper(),this.initColumnsA11y(),this.initCompareItemA11y(),this.initNavTitleA11y(),"desktop"===this.opts.currDevice&&this.el.swiperSlides.length<5||this.setSwiper()}setSwiper(){if(null!==this.el.swiper)return;const e=this;this.el.swiper=new Swiper(this.el.swiperEl,{init:!1,loop:!1,speed:0,allowTouchMove:!1,slidesPerView:"mobile"!==this.opts.currDevice?"auto":2,scrollbar:{el:this.el.swiperScrollbar,draggable:!0},pagination:{el:e.el.swiperPagination,bulletActiveClass:"is-active",renderBullet:function(t){const i=e.opts.tagging.pagination;return`\n \n `}}}),this.el.swiper.on("scrollbarDragStart",(function(){e.opts.scrollbarDrag=!0})),this.el.swiper.on("scrollbarDragMove",(function(){const t=this.translate;TweenMax.to(e.el.specsTableWrap,0,{x:t})})),this.el.swiper.on("scrollbarDragEnd",(function(){e.opts.scrollbarDrag=!1;const i=this.snapGrid[this.snapIndex];TweenMax.to(e.el.specsTableWrap,0,{x:t.isRTL()?i:-i})})),this.el.swiper.on("slideChange",(function(){e.setCompareItemA11y(),e.setArrowA11y(),e.setColumnsA11y(),e.setPaginationLabel(),e.setNavTitleA11y()})),this.el.swiper.on("snapIndexChange",(function(){if(e.opts.scrollbarDrag)return;const i=this.snapGrid[this.snapIndex];e.el.specsTableWrap.style.transform=`translateX(${t.isRTL()?i:-i}px)`,e.el.navSticky.style.transform=`translateX(${t.isRTL()?i:-i}px)`,e.el.specsTableNames.forEach((e=>{e.style.transform=`translateX(${t.isRTL()?-i:i}px)`}))})),this.el.swiper.on("init",(function(){const t=this.el.querySelector(".swiper-notification");t&&this.el.removeChild(t),e.setCompareItemA11y(),e.setArrowA11y(),e.setColumnsA11y(),e.setNavigationLabel(),e.setPaginationLabel(),e.setNavTitleA11y();const i=this,s=i.pagination.bullets;Array.from(s).forEach(((t,e)=>{t.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),i.slideTo(e)}))})),e.el.compareListWrap.classList.contains("slide-on")||e.el.compareListWrap.classList.add("slide-on")})),this.el.swiperEl.addEventListener("mousedown",this.events.mouse.down),this.el.swiperEl.addEventListener("mouseup",this.events.mouse.up),this.el.swiperEl.addEventListener("touchstart",this.events.touch.down),this.el.swiperEl.addEventListener("touchend",this.events.touch.up),this.el.swiper.init()}destroySwiper(){null!==this.el.swiper&&(this.el.swiper.destroy(!0,!0),this.el.swiper=null,this.el.compareListWrap.classList.contains("slide-on")&&this.el.compareListWrap.classList.remove("slide-on"),this.el.swiperSlides.forEach((t=>{this.offA11y(t)})),this.el.swiperEl.removeEventListener("mousedown",this.events.mouse.down),this.el.swiperEl.removeEventListener("mouseup",this.events.mouse.up),this.el.swiperEl.removeEventListener("touchstart",this.events.touch.down),this.el.swiperEl.removeEventListener("touchend",this.events.touch.up),TweenMax.to(this.el.specsTableWrap,0,{x:0}),this.el.specsTableNames.forEach((t=>{t.style.transform=""})),this.el.navSticky.style.transform="")}onClickPrevArrow(){if(null===this.el.swiper)return;const t=this.el.swiper,e=t.snapIndex-1;0===e&&setTimeout((()=>{this.el.nextArrow.focus()}),100),t.slideTo(e)}onClickNextArrow(){if(null===this.el.swiper)return;const t=this.el.swiper,e=t.snapIndex+1;e===t.snapGrid.length-1&&setTimeout((()=>{this.el.prevArrow.focus()}),100),t.slideTo(e)}onMouseDownHandler(t){this.opts.isPointerMoving||(this.opts.isPointerMoving=!0,this.opts.startX=0,this.opts.endX=0,this.opts.startY=0,this.opts.endY=0,this.opts.startX=this.getMovePointerX(t),this.opts.startY=this.getMovePointerY(t),this.el.swiperEl.addEventListener("mousemove",this.events.mouse.move))}onMouseMoveHandler(t){this.opts.endX=this.getMovePointerX(t),this.opts.endY=this.getMovePointerY(t)}onMouseUpHandler(e){if(e.target.closest(".swiper-scrollbar"))return;if(!this.opts.isPointerMoving)return;this.opts.isPointerMoving=!1,this.opts.endX=this.getMovePointerX(e);const i="mobile"!==this.opts.currDevice?80:50;this.el.swiper&&Math.abs(this.opts.startX-this.opts.endX)>i&&(this.opts.startX>this.opts.endX?t.isRTL()?this.el.swiper.slidePrev():this.el.swiper.slideNext():t.isRTL()?this.el.swiper.slideNext():this.el.swiper.slidePrev(),this.opts.isAutoPlay=!1),this.el.swiperEl.removeEventListener("mousemove",this.events.mouse.move)}onTouchDownHandler(t){this.opts.isPointerMoving||(this.opts.isPointerMoving=!0,this.opts.startX=0,this.opts.endX=0,this.opts.startY=0,this.opts.endY=0,this.opts.startX=this.getMovePointerX(t),this.opts.startY=this.getMovePointerY(t),this.el.swiperEl.addEventListener("touchmove",this.events.touch.move))}onTouchMoveHandler(t){this.opts.endX=this.getMovePointerX(t),this.opts.endY=this.getMovePointerY(t)}onTouchUpHandler(e){if(e.target.closest(".swiper-scrollbar"))return;if(!this.opts.isPointerMoving)return;this.opts.isPointerMoving=!1,this.opts.endX=this.getMovePointerX(e);const i="mobile"!==this.opts.currDevice?80:50;this.el.swiper&&Math.abs(this.opts.startX-this.opts.endX)>i&&(this.opts.startX>this.opts.endX?t.isRTL()?this.el.swiper.slidePrev():this.el.swiper.slideNext():t.isRTL()?this.el.swiper.slideNext():this.el.swiper.slidePrev(),this.opts.isAutoPlay=!1),this.el.swiperEl.removeEventListener("touchmove",this.events.touch.move)}getMovePointerX(t){return t.touches&&t.touches.length>0?t.touches[0].clientX:t.changedTouches&&t.changedTouches.length>0?t.changedTouches[0].clientX:t.clientX}getMovePointerY(t){return t.touches&&t.touches.length>0?t.touches[0].clientY:t.changedTouches&&t.changedTouches.length>0?t.changedTouches[0].clientY:t.clientY}onClickColorButton(t){const e=t.currentTarget,i=e.getAttribute("data-color"),s=e.closest(this.selector.swiperSlide),n=s.getAttribute("data-product");let a=`${n}-${i}`;s.setAttribute("data-color",i);const r=s.querySelector(this.selector.compareFigure).querySelectorAll(this.selector.compareFigureItem);this.updateCompareFigure(r,a,n);const o=s.querySelector(this.selector.compareColors).querySelectorAll(this.selector.compareColorItem);this.updateCompareColors(o,i);const l=s.querySelector(this.selector.CtaWrap);this.updateCta(l,n,i),r.forEach((t=>{if(t.classList.contains("is-active")){const e=t.querySelectorAll("img.js-res-img:not(.load-complete)");e.length>0&&this.opts.on.updateImageLoader(e)}}))}onClickViewMore(){if(this.el.compareListWrap.classList.contains("is-expanded")){this.el.compareListWrap.classList.remove("is-expanded"),this.changeViewMoreTagging("view-more");const e=t.getNavHeight(),i=scrollY,s=i+innerHeight,n=this.el.viewMoreButton.getBoundingClientRect(),a=(innerHeight-e)/2,r=i+n.top,o=r-e+n.height/2,l=r+n.height;r{const i=t.getAttribute("data-product");e===i?t.classList.add("is-active"):t.classList.remove("is-active")}))}updateCompareColors(t,e){t.forEach((t=>{t.getAttribute("data-color")===e?(t.classList.add("is-active"),t.setAttribute("title","selected")):(t.classList.remove("is-active"),t.removeAttribute("title"))}))}updateCta(t,e,i){const s=t.querySelector(this.selector.buyNowCta),n=LOCAL_DATA[e][i];n&&(n.buynow&&""!==n.buynow&&s?(s.parentElement.style.display="block",s.setAttribute("href",n.buynow),this.updateCtaTagging(s,n,e)):s.parentElement.style.display="none")}initColumnsA11y(){Array.from(this.el.specsTableRows).forEach(((t,e)=>{const i=t.querySelectorAll(this.selector.specsTableColumn);Array.from(i).forEach(((t,i)=>{this.el.compareListWrap.classList.contains("is-expanded")||e<4?this.offA11y(t):this.onA11y(t)}))})),Array.from(this.el.specsTableHeaders).forEach((t=>{this.offA11y(t)}))}setColumnsA11y(){if(null===this.el.swiper)return;const t=this.el.swiper.snapIndex,e="desktop"===this.opts.currDevice?4:2;Array.from(this.el.specsTableRows).forEach((i=>{const s=i.querySelectorAll(this.selector.specsTableColumnWrap);Array.from(s).forEach(((i,s)=>{const n=i.querySelectorAll(this.selector.specsTableColumn);Array.from(n).forEach(((i,n)=>{this.el.compareListWrap.classList.contains("is-expanded")?n>=t&&n=t&&n{s>=t&&s{this.offA11y(t)}))}setNavTitleA11y(){if(null===this.el.swiper)return;const t=this.el.swiper.snapIndex,e="desktop"===this.opts.currDevice?4:2;Array.from(this.el.navTitles).forEach(((i,s)=>{s>=t&&s0&&t.snapIndex===t.snapGrid.length-1?(this.offA11y(this.el.prevArrow),this.onA11y(this.el.nextArrow),this.el.prevArrow.classList.remove("swiper-button-disabled"),this.el.nextArrow.classList.add("swiper-button-disabled")):t.snapIndex>0&&t.snapIndex{const e=JSON.parse(t.getAttribute("data-info"));this.compare[e.product]={color:e["default-color"]},t.setAttribute("data-product",e.product),t.setAttribute("data-color",e["default-color"])})),this.setCompareItemA11y()}setCompareItemA11y(){Array.from(this.el.swiperSlides).forEach(((t,e)=>{const i=t.getAttribute("data-product"),s=t.getAttribute("data-color"),n=`${i}-${s}`,a=t.querySelector(this.selector.compareFigure).querySelectorAll(this.selector.compareFigureItem);this.updateCompareFigure(a,n,i);const r=t.querySelector(this.selector.compareColors).querySelectorAll(this.selector.compareColorItem);this.updateCompareColors(r,s);const o=t.querySelector(this.selector.CtaWrap);if(this.updateCta(o,i,s),this.setCompareCtaText(o),null===this.el.swiper)return;const l=this.el.swiper.snapIndex,h="desktop"===this.opts.currDevice?4:2;e>=l&&e{"data-omni"===e||"an-la"===e?this.el.prevArrow.setAttribute(e,`${t[e]}left`):this.el.prevArrow.setAttribute(e,t[e])})),Object.keys(t).forEach((e=>{"data-omni"===e||"an-la"===e?this.el.nextArrow.setAttribute(e,`${t[e]}right`):this.el.nextArrow.setAttribute(e,t[e])}))}setPaginationLabel(){if(null===this.el.swiper)return;const t=this.el.swiper,e=t.pagination.bullets,i=t.activeIndex,s=["Buds3 Pro, Buds3","Buds3, Buds FE"];Array.from(e).forEach(((t,e)=>{const n=s[e];if("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI){const s=void 0!==LOCAL_VARI.slide&&LOCAL_VARI.slide?LOCAL_VARI.slide:"Slide",a=void 0!==LOCAL_VARI.selected&&LOCAL_VARI.selected?LOCAL_VARI.selected:"selected";i===e?t.setAttribute("aria-label",`${s}${e+1}: ${n} ${a}`):t.setAttribute("aria-label",`${s}${e+1}: ${n}`)}else i===e?t.setAttribute("aria-label",`Slide${e+1}: ${n} selected`):t.setAttribute("aria-label",`Slide${e+1}: ${n}`)}))}setCompareCtaText(t){if("undefined"!=typeof LOCAL_VARI&&LOCAL_VARI){const e=void 0!==LOCAL_VARI.buyNow&&LOCAL_VARI.buyNow?LOCAL_VARI.buyNow:"Buy Now";t.querySelector(`${this.selector.buyNowCta} span`).innerText=e}else t.querySelector(`${this.selector.buyNowCta} span`).innerText="Buy Now"}updateCtaTagging(t,e,i){const s=this.opts.tagging.buyNow;if(e.buynow&&""!==e.buynow&&t.classList.contains(this.class.buyNow)){let n="",a="";"galaxy-buds3-pro"===i?(n=`gbuds:highlights:compare:conv-pdt:buy-now|;${e.sku}|${e.sku}`,a="gbuds:highlights:compare:conv-pdt:buy-now"):(n=`gbuds:highlights:compare:conv-oth:${i}`,a=`gbuds:highlights:compare:conv-oth:${i}`),Object.keys(s).forEach((e=>{"data-omni"===e?t.setAttribute(e,n):"an-la"===e&&t.setAttribute(e,a)}))}}changeViewMoreTagging(t){const e=this.opts.tagging.viewMore;Object.keys(e).forEach((i=>{"data-omni"===i||"an-la"===i?this.el.viewMoreButton.setAttribute(i,`${e[i]}${t}`):this.el.viewMoreButton.setAttribute(i,e[i])}))}onA11y(t){const e=t.querySelectorAll("a, button, input, select, iframe");t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1");for(var i=0;i{this.imageLoader.setResponsiveImage(t)}}}),new BUDS.Contrast(".cp-high-contrast"),BUDS.Disclaimer.init({updateImageLoader:t=>{this.imageLoader.setResponsiveImage(t)}}),window.addEventListener("load",(()=>{setTimeout((()=>{window.GALAXY&&window.GALAXY.isGalaxy&&(this.subNav=new BUDS.SubNav("#subnav"))}),5)}))}}(".wearable-buds")}(),new class{constructor(t){this.container=t,this.containerEl=document.querySelector(this.container),this.setElements(),this.init()}setElements(){this.swiperPagination=this.containerEl.querySelector(".wearable-buds3-review-pagination"),this.swiperSlider=this.containerEl.querySelector(".wearable-buds3-review__wrap"),this.swiper=null}init(){this.containerEl&&this.swiperPagination&&this.swiperSlider&&(this.swiper=new Swiper(this.containerEl,{slidesPerView:3,spaceBetween:30,pagination:{el:this.swiperPagination,clickable:!0,bulletActiveClass:"is-active"},breakpoints:{300:{slidesPerView:1},767:{slidesPerView:3,spaceBetween:30}}}),this.swiper.on("init",(function(){const t=this,e=t.pagination.bullets;Array.from(e).forEach(((e,i)=>{e.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),t.slideTo(i)}))}))})),this.swiper.init())}}(".wearable-buds3-swiper")}));const detailtabButton2=document.getElementById("detailtabButton2"),detailtabButton3=document.getElementById("detailtabButton3"),detailtab2=document.getElementById("detailtab2"),detailtab3=document.getElementById("detailtab3");detailtabButton2.addEventListener("click",(function(){detailtab2.classList.toggle("is-active"),detailtab3.classList.remove("is-active"),detailtabButton2.classList.toggle("is-active"),detailtabButton3.classList.remove("is-active")})),detailtabButton3.addEventListener("click",(function(){detailtab3.classList.toggle("is-active"),detailtab2.classList.remove("is-active"),detailtabButton3.classList.toggle("is-active"),detailtabButton2.classList.remove("is-active")}))