08559547bdc9c6c86ca13ac02574fea71d9a649c74ae53865c0420ebfa7bf394

Source Code:

(function(g){var f=window.AmazonUIPageJS||window.P,k=f._namespace||f.attributeErrors,c=k?k("AmazonHomepageCardAssets",""):f;c.guardFatal?c.guardFatal(g)(c,window):c.execute(function(){g(c,window)})})(function(g,f,k){g.register("gw-video-orchestrator",function(){function c(a){a=f(a);a!==e&&(e&&e.callback(!1),(e=a)&&e.callback(!0))}function f(a){if(a)for(var b=d.length;b--;)if(d[b].element===a)return d[b]}function l(a,b){return b.priority-a.priority}var d=[],e,h=function(){e||d.length&&90<=d[0].priority&&
c(d[0].element)};g.when("A","ready").execute(function(a){h=function(){if(d.length&&(!e||!a.onScreen(e.element))){var b=d.filter(function(b){return a.onScreen(b.element,b.buffer||0)});c(0<b.length?b[0].element:k)}};a.on("scroll resize orientationChange",h);h()});return{subscribe:function(a,b,c){if(!a||!b)throw Error("Subscribe required a valid element and callback function");c=c||{};b={element:a,callback:g.guardCurrent(b),buffer:"undefined"===typeof c.buffer?0:c.buffer,priority:"undefined"===typeof c.priority?
50:c.priority};if(f(a))throw Error("element is already subscribed");d.push(b);d.sort(l);h()},unsubscribe:function(a){if(!a)throw Error("unsubscribe requires a valid element");e&&e.element===a&&c();for(var b=d.length;b--;)d[b].element===a&&(d.splice(b,1),h())},elect:c}})});
/* ******** */
(function(m){var f=window.AmazonUIPageJS||window.P,q=f._namespace||f.attributeErrors,g=q?q("AmazonGatewayAuiAssets",""):f;g.guardFatal?g.guardFatal(m)(g,window):g.execute(function(){m(g,window)})})(function(m,f,q){m.register("gateway-asset-load",function(){f.uet&&f.uet("cf","gateway-asset-load",{wb:1});f.uex&&f.uex("ld","gateway-asset-load",{wb:1})});m.when("A","atfWidgetComponent","load").execute("ah-inst-img-size",function(g,n){function h(a){if(!a)return null;var b=a.src;a=c(a).data("a-hires");
return b===a?null:b}function k(a){"object"===typeof u.ue&&"function"===typeof u.ue.count&&u.ue&&u.ue.count(a,(u.ue.count(a)||0)+1)}function l(a,b){k("gw-img-size-invoke");c.ajax({type:"HEAD",async:!0,url:a,success:function(c,d,e){c=f.performance.getEntriesByName(a).filter(function(a){return"img"===a.initiatorType});0<c.length&&"decodedBodySize"in c[0]?(k("gw-img-size-success"),g.trigger(b,parseInt(c[0].decodedBodySize,10))):k("gw-img-size-error")},error:function(a,b,c){k("gw-img-size-error")}})}function b(b,
d,e){p[d]={count:b.length,totalSize:0,images:c.unique(b)};0==b.length?e&&a(d,e):c(p[d].images).each(function(b,c){b=d+"_"+b;g.on(b,function(b){isNaN(b)||(--p[d].count,p[d].totalSize+=b,0===p[d].count&&(u.ue&&u.ue.count(d,p[d].totalSize),e&&a(d,e)))});l(c,b)})}function a(b,a){--p[a].slotCount;p[a].totalSize+=p[b].totalSize;0==p[a].slotCount&&u.ue&&u.ue.count(a,p[a].totalSize)}function d(a,b){b=b||a.length;var d=[];c(a.slice(0,b)).each(function(a,b){a=h(b);if(!a)return[];d.push(a)});return d}function e(){return f.performance&&
f.performance.getEntriesByName?!1:(k("gw-img-size-error"),!0)}var c=g.$,u=f,p=[];m.execute("inst-cf-img",function(){if(!e()){k("gw-inst-img");var a=g.$(".gw-critical-content img");(a=0>=a.length?null:h(a[0]))&&b([a],"gw-cf-img-size")}});m.execute("inst-atf-img",function(){if(!e()){k("gw-atf-img");var a=n.getWidgets();a&&(a=a.filter(function(a){return a&&0<a.length}));a!=q&&0!=a.length&&(p["gw-atf-img-size"]={slotCount:a.length,totalSize:0},c.each(a,function(a,e){a="gw-"+e+"-img-size";var g;g=c("#"+
e+".desktop-row.gwi-row");g!=q&&0<g.length?(e="#"+e+" img",g=7):(e="#"+e+" .a-cardui-body img",g=q);e=d(c(e),g);b(e,a,"gw-atf-img-size")}))}})});"use strict";m.when("A").register("dombinder",function(g){function f(b,a){var d=0;a=a.split(".");for(var e=a.length;d<e;d++)b=b&&b[a[d]];return b}function h(b){return k.map(k(b).data("bind").split(","),function(a){a=a.split(":");var d=k.trim(a[0]),e=k.trim(a[1]),c=l[d];if(c)return c.init&&c.init(b,e),function(a){c.update(b,e,a)}})}var k=g.$,l={text:{update:function(b,
a,d){k(b).text(f(d,a)||"")}},html:{update:function(b,a,d){k(b).html(f(d,a)||"")}},href:{update:function(b,a,d){k(b).attr("href",f(d,a)||"")}},trimText:{update:function(b,a,d){b=k(b);d=b.text();if(d.length>a){for(var e=a-4;0<=e&&0<"[.,-/#!$%^\x26*;:{}\x3d-_`~()] ".indexOf(d[e]);)e--;b.text(d.substring(0,0<=e?e+1:a-3)+"...")}}},value:{update:function(b,a,d){k(b).val(f(d,a)||"")}},visible:{update:function(b,a,d){var e=!1;"!"===a.charAt(0)&&(e=!0,a=a.substring(1));a=!!f(d,a);e!==a?k(b).show():k(b).hide()}},
css:{init:function(b,a){b=k(b);var d=b.data("dombcss")||[];d[a]="";b.data("dombcss",d)},update:function(b,a,d){b=k(b);var e=b.data("dombcss"),c=e[a];d=f(d,a);c!==d&&(e[a]=d,c&&b.removeClass(c),d&&b.addClass(d))}},attr:{init:function(b,a){b=k(b);var d=b.data("dombattr")||[];d[a]={};b.data("dombattr",d)},update:function(b,a,d){var e=k(b);b=e.data("dombattr");var c=b[a];d=f(d,a);c!==d&&(b[a]=d,c&&k.each(c,function(a,b){e.removeAttr(a)}),d&&k.each(d,function(a,b){e.attr(a,b)}))}}};return{init:function(b){var a=
{$root:b,bindings:[]};b.find("[data-bind]").each(function(){k.each(h(this),function(b,e){a.bindings.push(e)})});return a},update:function(b,a){k.each(b.bindings,function(b,e){e(a)})}}});"use strict";m.when("jQuery").register("gwAjax",function(g){return function(n,h){function k(b,e,c){"object"===typeof f.ue&&"function"===typeof f.ue.count&&(l(h.errorCounter||"gwAjaxError"),h.id&&l("gwAjaxError:"+h.id));"function"===typeof f.ueLogError&&f.ueLogError({logLevel:"WARN",attribution:"gwAjax-"+(h.id||n),
message:"gwAjax call failed "+(JSON&&JSON.stringify?JSON.stringify({url:n,"params-data":h.params||h.data}):"")});"function"===typeof a&&a(b,e,c)}function l(a){"object"===typeof f.ue&&"function"===typeof f.ue.count&&f.ue.count(a,(f.ue.count(a)||0)+1)}h=g.extend(!0,{},h);var b=h.success,a=h.error;h.success=function(a,e,c){a.error?k(a,e,c):"function"===typeof b&&b(a,e,c)};h.error=k;h.data=h.params?h.params:h.data;l("gwAjaxCall");h.ajaxCounter&&l(h.ajaxCounter);return g.ajax(n,h)}});"use strict";m.when("jQuery",
"gw-hud-punt").execute("gw-hud-sidekick",function(g){g("#gw-hud-grid").css({display:"none"})});"use strict";m.register("gw/card-modal",function(){function g(g,k){if(f)return f(g,k);m.when("__gw-card-modal").execute(function(f){f(g,k)});return{show:function(){}}}var f;m.when("__gw-card-modal").execute(function(g){f=g});return{show:function(h,k){g(h,k).show()},preload:function(h,k){m.when("ready").execute(function(){g(h,k)})}}});m.when("A","a-modal","gw/card-loader").register("__gw-card-modal",function(g,
f,h){var k={},l=g.$;return function(b,a){if(k[b])return k[b];var d=h.decodeToken(b).name,e=l('\x3cspan style\x3d"display: none" /\x3e').appendTo("body");a=l.extend({name:d||"gw-card-popover",closeButton:!0,hideHeader:!0,style:"gw",content:l('\x3cdiv aria-hidden\x3d"true"\x3e\x3c/div\x3e').html(a&&a.loading||'\x3cdiv class\x3d"gw-modal-loading"\x3e\x3ci class\x3d"gw-spinner"\x3e\x3c/i\x3e\x3c/div\x3e')},a);var c=k[b]=f.create(e,a);if("gw"===a.style){var m="#a-popover-"+c.attrs("id"),e=l.map([" .a-popover-inner { overflow: hidden !important; height: 100% !important; min-width: 80px; min-height: 80px; }",
" .a-popover-wrapper { border: none; border-radius: 0; }"],function(a){return m+a}).join(" ");l("head").append("\x3cstyle\x3e"+e+"\x3c/style\x3e");if(a.closeButton)g.on("a:popover:show:"+a.name,function(a){a=l(m);a.find("button.a-button-close").addClass("gw-close-button");a.find(".a-icon.a-icon-close").attr("class","gw-icon gw-icon-close")})}h.request(b).then(function(a){c.update({content:a.html()})});return k[b]}});"use strict";m.when("gw-promise","urlb64decode").register("gw/card-loader",function(g,
f){function h(){try{var b=(new URL(document.location.href)).searchParams.get("cardOverrides");if(b)return"cardOverrides\x3d"+b}catch(a){if(b=document.location.href.match(/[?&](cardOverrides=.*?)([&#]|$)/),null!==b)return b[1]}}var k=Array.isArray||function(b){return"[object Array]"===Object.prototype.toString.call(b)},l={};return{decodeToken:function(b){return JSON.parse(f(b.substring(1)))},request:function(b){function a(a){for(var b=0,c=n.length;b<c;b++)n[b]&&n[b](a)}for(var d=k(b)?b:[b],e=h(),c=
"/homepage.html/ajax/card"+(e?"?"+e:""),e=[],f=[],n=[],x=[],r=0,q=d.length;r<q;r++){var w=d[r];l[w]?e[r]=l[w]:(e[r]=l[w]=g(function(a,b){f[r]=a;n[r]=b}),x[r]={t:w})}0<x.length&&m.when("A").execute(function(b){b.post(c,{chunk:function(a){var c=a[1];c&&(c.ok?f[c.i]&&f[c.i]({render:function(a){b.$(a).html(c.body)},html:function(){return c.body}}):n[c.i]&&n[c.i](c.body))},success:function(b,c,d){a("Not Found")},error:function(b,c,d){a(d)},abort:function(b){a("Aborted")},contentType:"application/json",
paramsFormat:"json",params:x})});return k(b)?e:e[0]}}});f.Promise?m.register("gw-promise",function(){return function(g){return new Promise(g)}}):m.when("jQuery").register("gw-promise",function(g){return function(f){var h=g.Deferred();f(h.resolve,h.reject);return{then:h.then,"catch":function(g){return h.fail(g)}}}});m.register("urlb64decode",function(){if(f.atob){var g={"-":"+",_:"/"};return function(n){return f.atob(n.replace(/[-_]/g,function(f){return g[f]}))}}return function(g){g=g.replace(/\s|=/g,
"");for(var f="",k=0,l=g.length;k<l;k+=4){for(var b=0,a=k,d=24;0<d&&a<l;)b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(g.charAt(a++))<<(d-=6);f+=String.fromCharCode(b>>>16&255,b>>>8&255,b&255)}return f}});f.P&&m.when("jQuery","afterLoad").register("gw-resource-logger",function(g){return{instrumentResources:function(n){var h;h=!1;if(g.isArray(n)&&!g.isEmptyObject(n)){h=!0;for(var k=0;k<n.length;k++){var l=n[k];if("id"in l&&"regex"in l&&"initiator"in l){if(!("string"===
typeof l.id&&"string"===typeof l.initiator&&l.regex instanceof RegExp)){h=!1;break}}else{h=!1;break}}}k=f.performance&&"function"===typeof f.performance.getEntriesByType&&"undefined"!==typeof f.performance.getEntriesByType("resource")&&"undefined"!==typeof f.ue;if(h&&k){h=Array(n.length);for(k=0;k<h.length;k++)h[k]=!1;for(l=k=0;l<f.performance.getEntriesByType("resource").length&&k<n.length;l++)for(var b=f.performance.getEntriesByType("resource")[l],a=b.name,d=b.initiatorType,e=0;e<n.length;e++)if(!h[e]){var c=
n[e].regex;if(d===n[e].initiator&&c.test(a)){a=n[e].id;d=b.duration;f.ue.count&&(f.ue.count(a+":duration",d),f.ue.count(a+":startTime",b.startTime));f.ue.tag&&f.ue.tag(50>d?a+":cached":a+":notCached");h[e]=!0;k++;break}}}}}});"use strict";m.when("jQuery","gwAjax").register("shogunProductDB",function(g,n){function h(b){var a=[];l[b]={loading:!0,pdb_observe:function(b){a.push(b)},pdb_unobserve:function(b){a=g.grep(a,function(a){return a!==b})},_trigger:function(){g.each(a,function(){this.call(l[b])})}};
return l[b]}function k(b,a){this.ajaxUrl=b;this.experienceStr=a;this._add=function(a){a.p&&g.each(a.p,function(a,b){b.asin&&(a=l[b.asin]||h(b.asin),g.extend(a,b,{loading:!1,error:!1}),a._trigger(b))})};this.addSims=function(a,b){if(b){var c=l[a]||h(a);g.extend(c,{sims:b});c._trigger(a)}};this._ajax=function(d,e,c){c=c||{};d=g.extend(!0,{},b,{params:{sa:d,oe:a}},c);f.ue_id&&(d.params.rrid=f.ue_id);return n(d.url,{method:d.method,params:d.params,success:e.success,error:e.error,id:"gw-jslibs-"+e.id})};
this.get=function(a){return a in l?l[a]:h(a)}}var l={};return function(b,a){return new k(b,a)}});"use strict";m.when("jQuery","p-detect").register("component-feed-carousel",function(g,n){var h=g.extend(!0,{},n);g.each({pointerPrefix:function(){return"onmspointerup"in document||"onpointerup"in document?"onpointerup"in document?"pointer":"MSPointer":!1},actionMode:function(){var b=h.capabilities.pointerPrefix;return b?b:h.capabilities.touch?"touch":"mouse"}},function(b,a){h.capabilities[b]=a()});var k=
{};g.each({start:{mouse:"down",touch:"start",pointer:"down",MSPointer:"Down"},end:{mouse:"up",touch:"end",pointer:"up",MSPointer:"Up"}},function(b,a){var d=h.capabilities.actionMode,e="string"===typeof a?a:a[d];k[b]=e?d+e:a.mouse===q?"":"mouse"+a.mouse});h.action=k;var l=function(b,a,d,e){this.init(b,a,d,e)};l.prototype={init:function(b,a,d,e){var c=this;g("html").hasClass("a-touch")&&b.addClass("feed-carousel-touch");c.config=e||{};c.adjustMarginOnChange=!1!==c.config.adjustMarginOnChange;c.defaultCssRightMargin=
null;c.minItems=a||10;c.imgClass=".product-image";c.$carousel=b;c.cfMinItems=d||6;c.cfFired=!1;c.shovelerReadyFired=!1;c.slotId=c.getSlotId();c.touch=c.$carousel.hasClass("feed-carousel-touch");c.ajaxSource=c.$carousel.parent().hasClass("ajaxSource");c.$shelf=c.$carousel.find(".feed-carousel-shelf");c.$viewport=c.$carousel.find(".feed-carousel-viewport");c.$spinner=c.$carousel.find(".spinner");c.$left=g(".feed-carousel-control.feed-left",b);c.$right=g(".feed-carousel-control.feed-right",b);c.$buttons=
g(".feed-carousel-control",b);c.$thumb=g(".feed-scrollbar-thumb",b);c.shelfLeft=-1*parseInt(c.$shelf.css("left"),10);c.calcWidth=g("html").hasClass("a-lt-ie9");c.noOpacity=g("html").hasClass("a-lt-ie9");c.uniqueId=c.getUniqueId();c.$left.attr("aria-hidden",!0);c.$right.attr("aria-hidden",!0);c.bindEvents();c.$carousel.data("Carousel",c);c.$carousel.trigger("change");c.token=!1;c.lock=function(){c.token=!0};c.unlock=function(){c.token=!1};c.locked=function(){return c.token};m.when("gw-first-carousel").execute(function(){c.first=
c.$carousel.hasClass("first-carousel");c.shouldControlsOn()?c.showControls():c.hideControls()});c.uniqueId&&m.when(c.uniqueId).execute(function(a){c.appendCards(a.cards);if(a.cards&&c.slotId&&"object"===typeof f.ue&&"function"===typeof f.ue.count){var b="gw-"+c.slotId.toString()+"-lazy-cards",d="gw-"+c.slotId.toString()+"-lazy";f.ue.count(b,(f.ue.count(b)||0)+a.cards.length);f.ue.count(d,(f.ue.count(d)||0)+1)}m.register(c.uniqueId+"-lazy-cards-loaded")})},getUniqueId:function(){if(this.$viewport){var b=
this.$viewport.closest(".shogun-widget");return 0<b.length?g(b[0]).attr("id"):null}},getSlotId:function(){var b=this.$carousel.closest(".gw-widget-instrument");return 0<b.length?g(b[0]).attr("id"):null},getMouseDirection:function(){return h.capabilities.rtl?-1:1},bindEvents:function(){function b(a){return h.capabilities.pointerPrefix&&-1<g.inArray(a.originalEvent.pointerType,[2,"touch"])||"touch"===h.capabilities.actionMode}var a=this,d=g("body");a.$buttons.ready(function(b){a.shovelerReadyFired||
(a.slotId&&(b=a.slotId.toString()+"-active",f.GWI&&f.GWI.recordLatency(b),f.GWI&&f.GWI.register(b)),a.shovelerReadyFired=!0)});a.$carousel.change(function(b){a.updateItems();a.updateSpinner();a.updateShelf();a.updateControls();null===a.defaultCssRightMargin&&a.$shelf.children("li").first()&&(b=parseInt(a.$shelf.children("li").first().css("margin-right"),10),a.defaultCssRightMargin=isNaN(b)?10:b);a.adjustMarginOnChange&&a.adjustCardMargin()});a.$left.click(function(b){b.preventDefault();a.changePage(-1);
a.slotId&&a.logCounter("gw-"+a.slotId.toString()+"-left")});a.$right.click(function(b){b.preventDefault();a.changePage(1);a.slotId&&a.logCounter("gw-"+a.slotId.toString()+"-right")});a.bindImageLoadEvents(a.$shelf);var e;g(f).resize(function(){clearTimeout(e);e=setTimeout(function(){var b=a.getDimensions();a.moveShelf(Math.max(Math.min(b.shelfLeft,b.maxLeft),0));a.updateShelf()},100)});a.$thumb.mousedown(function(b){var e=b.clientX;1===b.which&&(b.preventDefault(),a.$carousel.addClass("scrolling"),
d.bind("mousemove.feed-carousel",function(b){var c=a.getDimensions(),d=a.getMouseDirection()*(b.clientX-e),c=Math.max(Math.min(c.shelfLeft+1/c.pageRatio*d,c.maxLeft),0);e=b.clientX;a.moveShelf(c)}),g(document).bind("selectstart.feed-carousel",function(){return!1}))});d.add(f).mouseup(function(b){a.$carousel.removeClass("scrolling");a.$carousel.hasClass("hovering")||a.hideControls();d.unbind("mousemove.feed-carousel");g(document).unbind("selectstart.feed-carousel")});a.$carousel.hover(function(){a.$carousel.addClass("hovering");
clearTimeout(a.hoverTimer);a.hoverTimer=setTimeout(function(){a.$carousel.hasClass("hovering")&&!a.$carousel.hasClass("touching")?a.showControls():a.$carousel.removeClass("touching")},300)},function(){a.$carousel.removeClass("hovering touching");clearTimeout(a.hoverTimer);a.$carousel.hasClass("scrolling")||(a.hoverTimer=setTimeout(function(){a.$carousel.hasClass("hovering")||a.hideControls()},600))});a.$carousel.bind(h.action.start,function(c){b(c)&&(a.$carousel.addClass("touching"),clearTimeout(a.touchTimer),
a.touchTimer=setTimeout(function(){a.$carousel.removeClass("touching")},5E3))});a.$carousel.bind(h.action.end,function(c){b(c)&&(a.$carousel.removeClass("touching"),clearTimeout(a.touchTimer),clearTimeout(a.hoverTimer))});a.$viewport.scroll(function(){a.shelfLeft=a.$viewport.scrollLeft();a.updateControls()})},bindImageLoadEvents:function(b){var a=this;g(a.imgClass,b).one("load",function(){a.$carousel.trigger("change")})},getDimensions:function(){var b=this.$shelf.width(),a=this.shelfLeft,d=this.$carousel.width();
return{pageWidth:d,shelfWidth:b,shelfLeft:a,pageRatio:d/b,leftRatio:a/b,maxLeft:b-d}},updateItems:function(){var b=this,a=b.$shelf.find(".feed-carousel-card");a.each(function(a,e){e=g(e);if("none"!==e.css("display")&&!b.config.visibleBeforeLoad)return!0;e.attr("aria-posinset",a+1);e.attr("aria-hidden",!1);e.attr("role","listitem");return 0>=e.find(b.imgClass).filter(function(){return!this.complete}).length?(e.css("display","inline-block"),a+1>=b.cfMinItems&&!b.cfFired&&(b.slotId&&(a=b.slotId.toString()+
"-visible",f.GWI&&f.GWI.recordLatency(a),f.GWI&&f.GWI.register(a)),b.cfFired=!0),!0):!1});a.attr("aria-setsize",a.size());b.$items=a.filter(function(){return"none"!==g(this).css("display")})},updateShelf:function(){var b=0;this.calcWidth&&(this.$shelf.children().each(function(){b+=g(this).outerWidth(!0)}),this.$shelf.width(b));this.touch&&this.$carousel.not(".fresh-shoveler-tablet-app .feed-carousel").height(this.$shelf.outerHeight(!0))},updateSpinner:function(){this.size()<this.minItems&&this.ajaxSource?
this.$spinner.show():(this.size()<this.minItems&&"object"===typeof f.ue&&"function"===typeof f.ue.count&&f.ue.count("shovelerNotEnoughItem",(f.ue.count("shovelerNotEnoughItem")||0)+1),this.$spinner.hide())},updateControls:function(){this.updateArrows();this.updateScrollThumb()},shouldControlsOn:function(){return this.first&&!this.touch},showControls:function(b){this.$thumb.add(this.$buttons).stop(!0,!0).fadeIn({duration:300,complete:b,queue:!1})},hideControls:function(b){var a=this.$thumb;this.shouldControlsOn()||
(a=a.add(this.$buttons));a.stop(!0,!0).fadeOut({duration:300,complete:b,queue:!1})},appendCards:function(b){this.$shelf.append(b);this.bindImageLoadEvents(b);this.$carousel.trigger("change")},updateArrows:function(){var b=this,a=b.getDimensions();g.each([{$e:b.$left,enabled:0<a.shelfLeft},{$e:b.$right,enabled:a.shelfLeft<a.maxLeft}],function(a,e){a=e.$e;e.enabled?a.removeClass("feed-control-disabled"):a.addClass("feed-control-disabled");b.noOpacity&&(e.enabled?a.css("opacity","1"):a.css("opacity",
"0.5"))})},updateScrollThumb:function(){var b=this.getDimensions(),a=b.leftRatio*b.pageWidth;this.$thumb.width(Math.min(b.pageRatio*b.pageWidth,b.pageWidth)).each(function(){g(this).animate({left:a},0)})},logCounter:function(b){"object"===typeof f.ue&&"function"===typeof f.ue.count&&(f.ue.count(b,(f.ue.count(b)||0)+1),f.ue.count("gw-shoveler-click",1))},changePage:function(b){var a=this.getDimensions(),d=this.alignWithItem(a.shelfLeft+b*a.pageWidth),d=Math.min(0>b?d.right:d.left,a.maxLeft);this.locked()||
(this.lock(),a.shelfLeft===d?(this.bounce(this.$shelf,-30*b),this.bounce(this.$thumb,6*b)):this.moveShelf(d,400))},moveShelf:function(b,a){function d(){e.updateArrows();e.unlock()}var e=this;a=a||0;e.shelfLeft=b;if(e.touch)e.$viewport.animate({scrollLeft:b},a,"swing",d);else{var c=e.getDimensions(),c=b/c.shelfWidth*c.pageWidth;e.$shelf.animate({left:-b},a,"swing",d);e.$thumb.animate({left:c},a,"swing",function(){e.updateScrollThumb();e.unlock()})}},getItems:function(){return this.$items},size:function(){return this.getItems().length},
alignWithItem:function(b){if(0>b)return{left:0,right:0};var a=this,d=a.getItems(),e=d.map(function(){var c=a.cardPosition(g(this));if(b>=c.left&&b<=c.right)return c}).get(0);return e?e:a.cardPosition(d.last())},cardPosition:function(b){var a=(b.position()||{left:0,right:0}).left;b=a+b.outerWidth(!0);return{left:a,right:b}},bounce:function(b,a){function d(a){var b={};b[e.touch?"left":"marginLeft"]=a;return b}var e=this;b.each(function(){var b=g(this);b.animate(d(a),400,"swing",function(){b.animate(d(0),
100,"swing",e.unlock)})})},setCardMargin:function(b){this.$shelf.children("li").first()&&this.$shelf.children("li").first().css("margin-right")!==b+"px"&&(this.$shelf.children("li").css("margin-right",b+"px"),this.updateShelf())},adjustCardMargin:function(b){b=b===q||null===b?this.defaultCssRightMargin:b;this.setCardMargin(b);var a=this.getDimensions(),a=0>a.maxLeft?Math.ceil(-a.maxLeft/this.size()):b;this.setCardMargin(a<b?b:a)}};return{createCarousel:function(b,a,d,e){g(b).each(function(b,f){b=
g(f);new l(b,a,d,e)})}}});"use strict";m.when("jQuery","SafeP").execute("shoveler-lazy-non-visible-images",function(g,n){function h(b){"object"===typeof l.ue&&"function"===typeof l.ue.count&&l.ue.count(b,(l.ue.count(b)||0)+1)}function k(){l.GWData&&g.each(l.GWData,function(b,a){if(b&&a&&a.data&&!a.loaded){a.loaded=!0;h("gw-lazy-load-all");var d=[];g.each(a.data,function(a,b){g.each(g(b),function(a,b){d.push(b)})});d&&0<d.length&&h("gw-lazy-load-non-empty");n&&n.register(b,function(){return{cards:d}})}})}
var l=f;m.when("x1").execute(k);m.when("ready").execute(k);m.when("load").execute(k)});"use strict";m.register("SafeP",function(){var g={};return{register:function(f,h){"string"===typeof f&&"function"===typeof h&&(g[f]||(g[f]=function(f,h){m.register(f,h);g[f]=function(){}}),g[f]&&g[f](f,h))}}});"use strict";m.when("A").register("gw-count-down",function(g){return function(f,h,k,l,b){function a(a){a=a||{};return{update:a.update||y.noop,count:a.count||y.noop,transition:a.transition||y.noop}}function d(){return a({update:function(){if(l&&
l.dealState){var a=l.dealState.toUpperCase();t="AVAILABLE"===a&&86400<k/1E3?e(""):-1<a.indexOf("WAITLIST")?e(b.on_waitlist):"SOLDOUT"===a?e(b.sold_out,E):0<h?c():0<k?m():e(b.has_ended,B)}t.update();t.count()}})}function e(b,c){return a({update:function(){r(b);g.trigger(c)}})}function c(){A=b.starts_in;return a({update:function(){g.trigger(F);r(v)},transition:function(){t=e(b.started,G);t.update()},count:function(){z=g.interval(function(){h=C-Date.now();p(h,b.starts_in_timer)},1E3)}})}function m(){A=
b.ends_in;return a({update:function(){r(v)},transition:function(){t=e(b.has_ended,B);t.update()},count:function(){z=g.interval(function(){k=D-Date.now();p(k,b.ends_in_timer)},1E3)}})}function p(a,b){var c,d,e;c=Math.floor(a/36E5);d=Math.floor(a/1E3/60%60);e=Math.floor(a/1E3%60);var f=v,g;g=A+" "+q(c)+q(d,!0,!0)+q(e,!1,!0);f.timerString=g;f=v;b=b?b.replace("_hours_",c).replace("_minutes_",d).replace("_seconds_",e):"";f.readoutString=b;r(v);0>=a&&(clearInterval(z),t.transition())}function q(a,b,c){var d=
"";if(0<a||c)d=("0"+a).slice(-2);if(!c&&0<a||b)d+=":";return d}function r(a){a.readoutString?v=a:(v.readoutString=a,v.timerString=a);g.trigger(H,v)}if(b&&b.starts_in&&b.ends_in&&b.has_ended&&b.sold_out&&b.on_waitlist&&b.started&&b.starts_in_timer&&b.ends_in_timer){h=parseInt(h,10);k=parseInt(k,10);l=JSON.parse(l);var y=g.$,w=Date.now(),C=w+h,D=w+k,z,A="",v={timerString:"",readoutString:""},B=f+"ended",G=f+"started",H=f+"updateTimer",F=f+"countingDown",E=f+"soldOut",t=d();t.update();g.on(f,function(){t.update()})}}})});
/* ******** */